@websline/system-components 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/actions/button/button.variants.d.ts +0 -9
- package/dist/components/atoms/actions/button/button.variants.js +10 -13
- package/dist/components/atoms/actions/closeButton/CloseButton.svelte +1 -1
- package/dist/components/atoms/actions/iconButton/iconButton.variants.js +3 -3
- package/dist/components/atoms/avatar/avatar.variants.js +2 -2
- package/dist/components/atoms/badge/badge.variants.js +1 -1
- package/dist/components/atoms/chip/chip.variants.js +2 -2
- package/dist/components/atoms/feedback/progressBar/progressBar.variants.js +2 -2
- package/dist/components/atoms/helperText/helperText.variants.d.ts +2 -2
- package/dist/components/atoms/helperText/helperText.variants.js +1 -1
- package/dist/components/atoms/icon/Icon.svelte +1 -1
- package/dist/components/atoms/input/input.variants.js +4 -4
- package/dist/components/atoms/label/label.variants.d.ts +2 -2
- package/dist/components/atoms/label/label.variants.js +1 -1
- package/dist/components/atoms/select/Select.svelte +0 -1
- package/dist/components/atoms/select/select.variants.js +2 -2
- package/dist/components/molecules/notification/notification.variants.js +4 -4
- package/dist/components/molecules/pickers/colorSwatch/colorSwatch.variants.js +2 -2
- package/dist/components/molecules/richTextEditor/richTextEditor.variants.js +1 -1
- package/dist/components/molecules/selectorCard/selectorCard.variants.js +6 -5
- package/dist/components/molecules/tagSelector/Dropdown.svelte +113 -0
- package/dist/components/molecules/tagSelector/Dropdown.svelte.d.ts +29 -0
- package/dist/components/molecules/tagSelector/TagSelector.svelte +241 -0
- package/dist/components/molecules/tagSelector/TagSelector.svelte.d.ts +87 -0
- package/dist/components/molecules/tagSelector/ValueList.svelte +52 -0
- package/dist/components/molecules/tagSelector/ValueList.svelte.d.ts +29 -0
- package/dist/components/molecules/tagSelector/tagSelector.variants.d.ts +79 -0
- package/dist/components/molecules/tagSelector/tagSelector.variants.js +44 -0
- package/dist/components/molecules/toggleGroup/ToggleGroupItem.svelte +16 -6
- package/dist/components/molecules/toggleGroup/ToggleGroupItem.svelte.d.ts +8 -0
- package/dist/components/molecules/toggleGroup/toggleGroup.variants.js +3 -3
- package/dist/components/molecules/toggleGroup/toggleGroupItem.variants.d.ts +6 -0
- package/dist/components/molecules/toggleGroup/toggleGroupItem.variants.js +11 -10
- package/dist/components/organisms/modal/modal.variants.js +4 -3
- package/dist/components/organisms/popover/popover.variants.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
|
@@ -4,8 +4,9 @@ const toggleGroupItemVariants = tv({
|
|
|
4
4
|
slots: {
|
|
5
5
|
base: "relative h-full w-full whitespace-nowrap",
|
|
6
6
|
button:
|
|
7
|
-
"block h-full w-full cursor-pointer rounded-sm bg-transparent button-small transition-[background,color]",
|
|
8
|
-
|
|
7
|
+
"block h-full w-full cursor-pointer rounded-sm bg-transparent ui-button-small transition-[background,color]",
|
|
8
|
+
icon: "shrink-0",
|
|
9
|
+
span: "relative z-2 flex items-center justify-center gap-2",
|
|
9
10
|
trigger: "absolute inset-0 z-1 rounded-sm bg-white shadow-sm",
|
|
10
11
|
},
|
|
11
12
|
variants: {
|
|
@@ -19,7 +20,7 @@ const toggleGroupItemVariants = tv({
|
|
|
19
20
|
},
|
|
20
21
|
size: {
|
|
21
22
|
small: {
|
|
22
|
-
button: "px-1
|
|
23
|
+
button: "px-1",
|
|
23
24
|
},
|
|
24
25
|
medium: {
|
|
25
26
|
button: "px-3",
|
|
@@ -48,19 +49,19 @@ const toggleGroupItemVariants = tv({
|
|
|
48
49
|
|
|
49
50
|
const toggleGroupItemTabVariants = tv({
|
|
50
51
|
slots: {
|
|
51
|
-
base: "relative h-full w-full
|
|
52
|
-
button: "h-full w-full cursor-pointer button-default transition-[color]",
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
base: "relative h-full w-full whitespace-nowrap text-neutral-900 dark:text-neutral-200",
|
|
53
|
+
button: "h-full w-full cursor-pointer ui-button-default transition-[color]",
|
|
54
|
+
icon: "shrink-0",
|
|
55
|
+
span: "flex items-center justify-center gap-1",
|
|
56
|
+
trigger: "absolute -bottom-px left-0 h-0.5 w-full rounded-t-xs bg-current",
|
|
56
57
|
},
|
|
57
58
|
variants: {
|
|
58
59
|
isActive: {
|
|
59
60
|
true: {
|
|
60
|
-
button: "text-
|
|
61
|
+
button: "text-current",
|
|
61
62
|
},
|
|
62
63
|
false: {
|
|
63
|
-
button: "text-neutral-500 hover:text-
|
|
64
|
+
button: "text-neutral-500 hover:text-current",
|
|
64
65
|
},
|
|
65
66
|
},
|
|
66
67
|
},
|
|
@@ -4,11 +4,12 @@ const modalVariants = tv({
|
|
|
4
4
|
slots: {
|
|
5
5
|
close: "ml-auto",
|
|
6
6
|
container:
|
|
7
|
-
"my-4 grid max-h-[calc(100vh-32px)] w-[calc(100vw-32px)] min-w-xs grid-rows-[auto_1fr] overflow-hidden rounded-
|
|
8
|
-
header:
|
|
7
|
+
"my-4 grid max-h-[calc(100vh-32px)] w-[calc(100vw-32px)] min-w-xs grid-rows-[auto_1fr] overflow-hidden rounded-lg bg-white body-small shadow-sm outline-8 outline-white/90 dark:bg-neutral-800 dark:text-neutral-200 dark:outline-neutral-800/90",
|
|
8
|
+
header:
|
|
9
|
+
"flex items-end border-b border-neutral-300 px-4 py-3 ui-title-2 dark:border-neutral-700",
|
|
9
10
|
body: "h-full overflow-auto",
|
|
10
11
|
overlay: "fixed inset-0 z-modal-backdrop bg-black/25",
|
|
11
|
-
positioner: "fixed inset-0 z-
|
|
12
|
+
positioner: "fixed inset-0 z-modal grid items-center justify-items-center",
|
|
12
13
|
trigger: "cursor-pointer",
|
|
13
14
|
},
|
|
14
15
|
variants: {
|
|
@@ -7,7 +7,7 @@ const popoverVariants = tv({
|
|
|
7
7
|
content:
|
|
8
8
|
"flex flex-col-reverse rounded-2xl bg-white shadow-sm dark:bg-neutral-800",
|
|
9
9
|
header:
|
|
10
|
-
"flex items-center justify-between gap-3 border-b border-gray-300
|
|
10
|
+
"flex items-center justify-between gap-3 border-b border-gray-300 ui-title-2 dark:text-neutral-200",
|
|
11
11
|
trigger: "cursor-pointer",
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export { default as FormLayout } from "./components/molecules/formLayout/FormLay
|
|
|
25
25
|
export { default as Notification } from "./components/molecules/notification/Notification.svelte";
|
|
26
26
|
export { default as RichTextEditor } from "./components/molecules/richTextEditor/RichTextEditor.svelte";
|
|
27
27
|
export { default as SelectorCard } from "./components/molecules/selectorCard/SelectorCard.svelte";
|
|
28
|
+
export { default as TagSelector } from "./components/molecules/tagSelector/TagSelector.svelte";
|
|
28
29
|
export { default as ToggleGroup } from "./components/molecules/toggleGroup/ToggleGroup.svelte";
|
|
29
30
|
export { default as ToggleGroupItem } from "./components/molecules/toggleGroup/ToggleGroupItem.svelte";
|
|
30
31
|
export * as Dialog from "./components/organisms/dialog/index.js";
|
package/dist/index.js
CHANGED
|
@@ -35,6 +35,7 @@ export { default as FormLayout } from "./components/molecules/formLayout/FormLay
|
|
|
35
35
|
export { default as Notification } from "./components/molecules/notification/Notification.svelte";
|
|
36
36
|
export { default as RichTextEditor } from "./components/molecules/richTextEditor/RichTextEditor.svelte";
|
|
37
37
|
export { default as SelectorCard } from "./components/molecules/selectorCard/SelectorCard.svelte";
|
|
38
|
+
export { default as TagSelector } from "./components/molecules/tagSelector/TagSelector.svelte";
|
|
38
39
|
export { default as ToggleGroup } from "./components/molecules/toggleGroup/ToggleGroup.svelte";
|
|
39
40
|
export { default as ToggleGroupItem } from "./components/molecules/toggleGroup/ToggleGroupItem.svelte";
|
|
40
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@websline/system-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@sveltejs/kit": "^2.49.2",
|
|
54
54
|
"@sveltejs/package": "^2.5.7",
|
|
55
55
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
56
|
-
"@tailwindcss/forms": "^0.5.
|
|
56
|
+
"@tailwindcss/forms": "^0.5.11",
|
|
57
57
|
"@tailwindcss/typography": "^0.5.19",
|
|
58
58
|
"@tailwindcss/vite": "^4.1.18",
|
|
59
59
|
"@types/node": "^25.0.3",
|