Skip to content

Commit e6a37ab

Browse files
committed
Add radix-icons package
1 parent 59e67f7 commit e6a37ab

File tree

25 files changed

+415
-90
lines changed

25 files changed

+415
-90
lines changed

.changeset/neat-parents-nail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sjsf/radix-icons": minor
3+
---
4+
5+
Add radix-icons package

apps/docs/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"@sjsf/ajv8-validator": "workspace:*",
1414
"@sjsf/daisyui-theme": "workspace:*",
1515
"@sjsf/flowbite-theme": "workspace:*",
16-
"@sjsf/flowbite-icons": "workspace:*",
17-
"@sjsf/lucide-icons": "workspace:*",
1816
"@sjsf/form": "workspace:*",
1917
"@sjsf/skeleton-theme": "workspace:*",
2018
"@sjsf/shadcn-theme": "workspace:*",

apps/docs/src/content/docs/guides/labels-and-icons.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,32 @@ Usage:
105105
>
106106
Playground
107107
</LinkButton>
108+
109+
### Radic icons
110+
111+
Installation:
112+
113+
<Npm pkg="@sjsf/radix-icons" />
114+
115+
Usage:
116+
117+
```svelte
118+
<script lang="ts">
119+
import { useForm } from '@sjsf/form';
120+
import { icons } from '@sjsf/radix-icons';
121+
122+
const form = useForm({
123+
icons
124+
})
125+
</script>
126+
```
127+
128+
<LinkButton
129+
href="https://x0k.github.io/svelte-jsonschema-form/playground/?sample=Arrays&theme=skeleton&icons=radix&vevent=0&vafter=0"
130+
variant="secondary"
131+
icon="external"
132+
iconPlacement="end"
133+
target="_blank"
134+
>
135+
Playground
136+
</LinkButton>

apps/playground/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"@sjsf/flowbite-icons": "workspace:*",
2121
"@sjsf/skeleton-theme": "workspace:*",
2222
"@sjsf/lucide-icons": "workspace:*",
23-
"@sjsf/shadcn-theme": "workspace:*"
23+
"@sjsf/shadcn-theme": "workspace:*",
24+
"@sjsf/radix-icons": "workspace:*"
2425
},
2526
"devDependencies": {
2627
"@sveltejs/vite-plugin-svelte": "catalog:",

apps/playground/src/icons.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
import { icons as flowbite } from "@sjsf/flowbite-icons";
21
import { icons as lucide } from "@sjsf/lucide-icons";
2+
3+
import { icons as flowbite } from "@sjsf/flowbite-icons";
34
import flowbiteIconsStyles from "@sjsf/flowbite-icons/styles.css?inline";
5+
6+
import { icons as radix } from '@sjsf/radix-icons';
7+
48
export const icons = {
59
none: {},
610
flowbite,
711
lucide,
12+
radix,
813
};
14+
915
export const iconsStyles = {
1016
none: "",
1117
flowbite: flowbiteIconsStyles,
1218
lucide: "",
19+
radix: "",
1320
} satisfies Record<keyof typeof icons, string>;

mkfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ luci/:
9595
pnpm run dev
9696
popd
9797

98+
radi/:
99+
pushd packages/radix-icons
100+
c:
101+
pnpm run check
102+
b:
103+
pnpm run build
104+
d:
105+
pnpm run dev
106+
popd
107+
98108
shad/:
99109
pushd packages/shadcn-theme
100110
c:

packages/radix-icons/.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
node_modules
2+
3+
# Output
4+
.output
5+
.vercel
6+
/.svelte-kit
7+
/build
8+
/dist
9+
10+
# OS
11+
.DS_Store
12+
Thumbs.db
13+
14+
# Env
15+
.env
16+
.env.*
17+
!.env.example
18+
!.env.test
19+
20+
# Vite
21+
vite.config.js.timestamp-*
22+
vite.config.ts.timestamp-*

packages/radix-icons/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Package Managers
2+
package-lock.json
3+
pnpm-lock.yaml
4+
yarn.lock

packages/radix-icons/.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
8+
}

0 commit comments

Comments
 (0)