@websline/system-components 1.3.3 → 1.3.5
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/checkbox/Checkbox.svelte +1 -1
- package/dist/components/atoms/chip/Chip.svelte +4 -3
- package/dist/components/atoms/chip/chip.variants.d.ts +15 -15
- package/dist/components/atoms/chip/chip.variants.js +48 -29
- package/dist/components/atoms/radio/Radio.svelte +1 -1
- package/dist/components/atoms/switch/Switch.svelte +1 -1
- package/dist/components/atoms/tag/Tag.svelte +47 -0
- package/dist/components/atoms/tag/Tag.svelte.d.ts +73 -0
- package/dist/components/atoms/tag/tag.variants.d.ts +58 -0
- package/dist/components/atoms/tag/tag.variants.js +32 -0
- package/dist/components/molecules/richTextEditor/RichTextEditor.svelte +50 -63
- package/dist/components/molecules/richTextEditor/RichTextEditor.svelte.d.ts +15 -135
- package/dist/components/molecules/richTextEditor/toolbar/RichTextEditorToolbar.svelte +10 -11
- package/dist/components/molecules/richTextEditor/toolbar/RichTextEditorToolbar.svelte.d.ts +0 -2
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarBold.svelte +9 -2
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarBold.svelte.d.ts +2 -7
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarColor.svelte +7 -4
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarColor.svelte.d.ts +0 -2
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarItalic.svelte +9 -2
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarItalic.svelte.d.ts +2 -7
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarLink.svelte +11 -2
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarLink.svelte.d.ts +0 -2
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarList.svelte +9 -2
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarList.svelte.d.ts +2 -7
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarListOrdered.svelte +9 -2
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarListOrdered.svelte.d.ts +2 -7
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarRedo.svelte +2 -1
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarRedo.svelte.d.ts +2 -7
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarUnderline.svelte +9 -2
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarUnderline.svelte.d.ts +2 -7
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarUndo.svelte +2 -1
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarUndo.svelte.d.ts +2 -7
- package/dist/components/molecules/selectorCard/SelectorCard.svelte +1 -1
- package/dist/components/molecules/tagSelector/ValueList.svelte +5 -9
- package/dist/components/molecules/toggleGroup/ToggleGroup.svelte +21 -3
- package/dist/components/molecules/toggleGroup/ToggleGroup.svelte.d.ts +16 -0
- package/dist/components/molecules/toggleGroup/ToggleGroupItem.svelte +5 -3
- package/dist/components/molecules/toggleGroup/toggleGroup.variants.d.ts +32 -13
- package/dist/components/molecules/toggleGroup/toggleGroup.variants.js +12 -0
- package/dist/components/molecules/toggleGroup/toggleGroupItem.variants.d.ts +9 -0
- package/dist/components/molecules/toggleGroup/toggleGroupItem.variants.js +8 -5
- package/dist/components/organisms/dialog/DialogContent.svelte +2 -3
- package/dist/components/organisms/modal/ModalContent.svelte +2 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +21 -21
|
@@ -45,15 +45,17 @@
|
|
|
45
45
|
store.update(localeValue);
|
|
46
46
|
}}
|
|
47
47
|
type="button">
|
|
48
|
-
<
|
|
48
|
+
<div class={stylesByVariant.content()}>
|
|
49
49
|
{#if icon}
|
|
50
50
|
<Icon
|
|
51
51
|
class={stylesByVariant.icon()}
|
|
52
52
|
name={icon}
|
|
53
53
|
size={variant === "tabs" || size === "small" ? 16 : 24} />
|
|
54
54
|
{/if}
|
|
55
|
-
{
|
|
56
|
-
|
|
55
|
+
<span class={stylesByVariant.span()}>
|
|
56
|
+
{@render children?.()}
|
|
57
|
+
</span>
|
|
58
|
+
</div>
|
|
57
59
|
{#if isActive}
|
|
58
60
|
<div
|
|
59
61
|
class={stylesByVariant.trigger({ appearance })}
|
|
@@ -3,6 +3,11 @@ export const toggleGroupVariants: import("tailwind-variants").TVReturnType<{
|
|
|
3
3
|
default: string;
|
|
4
4
|
raised: string;
|
|
5
5
|
};
|
|
6
|
+
disabled: {
|
|
7
|
+
true: {
|
|
8
|
+
base: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
6
11
|
size: {
|
|
7
12
|
small: {
|
|
8
13
|
tabs: string;
|
|
@@ -19,6 +24,11 @@ export const toggleGroupVariants: import("tailwind-variants").TVReturnType<{
|
|
|
19
24
|
default: string;
|
|
20
25
|
raised: string;
|
|
21
26
|
};
|
|
27
|
+
disabled: {
|
|
28
|
+
true: {
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
22
32
|
size: {
|
|
23
33
|
small: {
|
|
24
34
|
tabs: string;
|
|
@@ -35,6 +45,11 @@ export const toggleGroupVariants: import("tailwind-variants").TVReturnType<{
|
|
|
35
45
|
default: string;
|
|
36
46
|
raised: string;
|
|
37
47
|
};
|
|
48
|
+
disabled: {
|
|
49
|
+
true: {
|
|
50
|
+
base: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
38
53
|
size: {
|
|
39
54
|
small: {
|
|
40
55
|
tabs: string;
|
|
@@ -48,26 +63,30 @@ export const toggleGroupVariants: import("tailwind-variants").TVReturnType<{
|
|
|
48
63
|
tabs: string;
|
|
49
64
|
}, undefined, unknown, unknown, undefined>>;
|
|
50
65
|
export const toggleGroupTabVariants: import("tailwind-variants").TVReturnType<{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
base
|
|
54
|
-
tabs?: import("tailwind-variants").ClassValue;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
} | {
|
|
58
|
-
[x: string]: {
|
|
59
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
60
|
-
base?: import("tailwind-variants").ClassValue;
|
|
61
|
-
tabs?: import("tailwind-variants").ClassValue;
|
|
66
|
+
disabled: {
|
|
67
|
+
true: {
|
|
68
|
+
base: string;
|
|
62
69
|
};
|
|
63
70
|
};
|
|
64
71
|
}, {
|
|
65
72
|
base: string;
|
|
66
73
|
tabs: string;
|
|
67
|
-
}, undefined,
|
|
74
|
+
}, undefined, {
|
|
75
|
+
disabled: {
|
|
76
|
+
true: {
|
|
77
|
+
base: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
}, {
|
|
68
81
|
base: string;
|
|
69
82
|
tabs: string;
|
|
70
|
-
}, import("tailwind-variants").TVReturnType<
|
|
83
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
84
|
+
disabled: {
|
|
85
|
+
true: {
|
|
86
|
+
base: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
71
90
|
base: string;
|
|
72
91
|
tabs: string;
|
|
73
92
|
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -10,6 +10,11 @@ const toggleGroupVariants = tv({
|
|
|
10
10
|
default: "text-neutral-100 dark:text-neutral-900",
|
|
11
11
|
raised: "text-neutral-300 dark:text-neutral-700",
|
|
12
12
|
},
|
|
13
|
+
disabled: {
|
|
14
|
+
true: {
|
|
15
|
+
base: "opacity-40",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
13
18
|
size: {
|
|
14
19
|
small: {
|
|
15
20
|
tabs: "h-9 p-1",
|
|
@@ -26,6 +31,13 @@ const toggleGroupTabVariants = tv({
|
|
|
26
31
|
base: "",
|
|
27
32
|
tabs: "flex h-9 gap-4 border-b border-neutral-300 dark:border-neutral-700",
|
|
28
33
|
},
|
|
34
|
+
variants: {
|
|
35
|
+
disabled: {
|
|
36
|
+
true: {
|
|
37
|
+
base: "opacity-40",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
29
41
|
});
|
|
30
42
|
|
|
31
43
|
export { toggleGroupVariants, toggleGroupTabVariants };
|
|
@@ -13,11 +13,13 @@ export const toggleGroupItemVariants: import("tailwind-variants").TVReturnType<{
|
|
|
13
13
|
};
|
|
14
14
|
medium: {
|
|
15
15
|
button: string;
|
|
16
|
+
span: string;
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
19
|
}, {
|
|
19
20
|
base: string;
|
|
20
21
|
button: string;
|
|
22
|
+
content: string;
|
|
21
23
|
icon: string;
|
|
22
24
|
span: string;
|
|
23
25
|
trigger: string;
|
|
@@ -36,11 +38,13 @@ export const toggleGroupItemVariants: import("tailwind-variants").TVReturnType<{
|
|
|
36
38
|
};
|
|
37
39
|
medium: {
|
|
38
40
|
button: string;
|
|
41
|
+
span: string;
|
|
39
42
|
};
|
|
40
43
|
};
|
|
41
44
|
}, {
|
|
42
45
|
base: string;
|
|
43
46
|
button: string;
|
|
47
|
+
content: string;
|
|
44
48
|
icon: string;
|
|
45
49
|
span: string;
|
|
46
50
|
trigger: string;
|
|
@@ -59,11 +63,13 @@ export const toggleGroupItemVariants: import("tailwind-variants").TVReturnType<{
|
|
|
59
63
|
};
|
|
60
64
|
medium: {
|
|
61
65
|
button: string;
|
|
66
|
+
span: string;
|
|
62
67
|
};
|
|
63
68
|
};
|
|
64
69
|
}, {
|
|
65
70
|
base: string;
|
|
66
71
|
button: string;
|
|
72
|
+
content: string;
|
|
67
73
|
icon: string;
|
|
68
74
|
span: string;
|
|
69
75
|
trigger: string;
|
|
@@ -80,6 +86,7 @@ export const toggleGroupItemTabVariants: import("tailwind-variants").TVReturnTyp
|
|
|
80
86
|
}, {
|
|
81
87
|
base: string;
|
|
82
88
|
button: string;
|
|
89
|
+
content: string;
|
|
83
90
|
icon: string;
|
|
84
91
|
span: string;
|
|
85
92
|
trigger: string;
|
|
@@ -95,6 +102,7 @@ export const toggleGroupItemTabVariants: import("tailwind-variants").TVReturnTyp
|
|
|
95
102
|
}, {
|
|
96
103
|
base: string;
|
|
97
104
|
button: string;
|
|
105
|
+
content: string;
|
|
98
106
|
icon: string;
|
|
99
107
|
span: string;
|
|
100
108
|
trigger: string;
|
|
@@ -110,6 +118,7 @@ export const toggleGroupItemTabVariants: import("tailwind-variants").TVReturnTyp
|
|
|
110
118
|
}, {
|
|
111
119
|
base: string;
|
|
112
120
|
button: string;
|
|
121
|
+
content: string;
|
|
113
122
|
icon: string;
|
|
114
123
|
span: string;
|
|
115
124
|
trigger: string;
|
|
@@ -4,15 +4,16 @@ 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 ui-
|
|
7
|
+
"block h-full w-full cursor-pointer rounded-sm bg-transparent ui-select-label font-medium transition-[background,color]",
|
|
8
|
+
content: "relative z-2 flex items-center justify-center",
|
|
8
9
|
icon: "shrink-0",
|
|
9
|
-
span: "
|
|
10
|
+
span: "",
|
|
10
11
|
trigger: "absolute inset-0 z-1 rounded-sm bg-white shadow-sm",
|
|
11
12
|
},
|
|
12
13
|
variants: {
|
|
13
14
|
isActive: {
|
|
14
15
|
true: {
|
|
15
|
-
button: "text-neutral-900 dark:text-
|
|
16
|
+
button: "text-neutral-900 dark:text-neutral-200",
|
|
16
17
|
},
|
|
17
18
|
false: {
|
|
18
19
|
button: "text-neutral-500",
|
|
@@ -23,7 +24,8 @@ const toggleGroupItemVariants = tv({
|
|
|
23
24
|
button: "px-1",
|
|
24
25
|
},
|
|
25
26
|
medium: {
|
|
26
|
-
button: "px-
|
|
27
|
+
button: "px-2.5",
|
|
28
|
+
span: "px-2",
|
|
27
29
|
},
|
|
28
30
|
},
|
|
29
31
|
},
|
|
@@ -51,8 +53,9 @@ const toggleGroupItemTabVariants = tv({
|
|
|
51
53
|
slots: {
|
|
52
54
|
base: "relative h-full w-full whitespace-nowrap text-neutral-900 dark:text-neutral-200",
|
|
53
55
|
button: "h-full w-full cursor-pointer ui-button-default transition-[color]",
|
|
56
|
+
content: "flex items-center justify-center gap-1",
|
|
54
57
|
icon: "shrink-0",
|
|
55
|
-
span: "
|
|
58
|
+
span: "",
|
|
56
59
|
trigger: "absolute -bottom-px left-0 h-0.5 w-full rounded-t-xs bg-current",
|
|
57
60
|
},
|
|
58
61
|
variants: {
|
|
@@ -37,16 +37,15 @@
|
|
|
37
37
|
{/snippet}
|
|
38
38
|
</Dialog.Overlay>
|
|
39
39
|
<Dialog.Content
|
|
40
|
-
class={styles.container({ class: className })}
|
|
41
40
|
escapeKeydownBehavior={closeOnEscape ? "close" : "ignore"}
|
|
42
41
|
forceMount
|
|
43
42
|
interactOutsideBehavior={closeOnOutsideClick ? "close" : "ignore"}
|
|
44
43
|
{...rest}>
|
|
45
44
|
{#snippet child({ props, open })}
|
|
46
45
|
{#if open}
|
|
47
|
-
<div class={styles.positioner()}>
|
|
46
|
+
<div class={styles.positioner()} {...props}>
|
|
48
47
|
<section
|
|
49
|
-
{
|
|
48
|
+
class={styles.container({ class: className })}
|
|
50
49
|
in:scale={{ duration: 300, easing: quintOut, start: 0.75 }}>
|
|
51
50
|
{@render children?.()}
|
|
52
51
|
</section>
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
{/snippet}
|
|
50
50
|
</Dialog.Overlay>
|
|
51
51
|
<Dialog.Content
|
|
52
|
-
class={styles.container({ class: className })}
|
|
53
52
|
escapeKeydownBehavior={closeOnEscape ? "close" : "ignore"}
|
|
54
53
|
forceMount
|
|
55
54
|
interactOutsideBehavior={closeOnOutsideClick ? "close" : "ignore"}
|
|
@@ -57,9 +56,9 @@
|
|
|
57
56
|
{...rest}>
|
|
58
57
|
{#snippet child({ props, open })}
|
|
59
58
|
{#if open}
|
|
60
|
-
<div class={styles.positioner()}
|
|
59
|
+
<div bind:this={ref} class={styles.positioner()} {...props}>
|
|
61
60
|
<section
|
|
62
|
-
{
|
|
61
|
+
class={styles.container({ class: className })}
|
|
63
62
|
in:scale={{ duration: 300, easing: quintOut, start: 0.75 }}>
|
|
64
63
|
{@render children?.()}
|
|
65
64
|
</section>
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { default as Radio } from "./components/atoms/radio/Radio.svelte";
|
|
|
17
17
|
export { default as Select } from "./components/atoms/select/Select.svelte";
|
|
18
18
|
export { default as Spinner } from "./components/atoms/feedback/spinner/Spinner.svelte";
|
|
19
19
|
export { default as Switch } from "./components/atoms/switch/Switch.svelte";
|
|
20
|
+
export { default as Tag } from "./components/atoms/tag/Tag.svelte";
|
|
20
21
|
export { default as Textarea } from "./components/atoms/textarea/Textarea.svelte";
|
|
21
22
|
export { default as XScroll } from "./components/atoms/utils/xScroll/XScroll.svelte";
|
|
22
23
|
export * as ColorSwatch from "./components/molecules/pickers/colorSwatch/index.js";
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ export { default as Radio } from "./components/atoms/radio/Radio.svelte";
|
|
|
22
22
|
export { default as Select } from "./components/atoms/select/Select.svelte";
|
|
23
23
|
export { default as Spinner } from "./components/atoms/feedback/spinner/Spinner.svelte";
|
|
24
24
|
export { default as Switch } from "./components/atoms/switch/Switch.svelte";
|
|
25
|
+
export { default as Tag } from "./components/atoms/tag/Tag.svelte";
|
|
25
26
|
export { default as Textarea } from "./components/atoms/textarea/Textarea.svelte";
|
|
26
27
|
export { default as XScroll } from "./components/atoms/utils/xScroll/XScroll.svelte";
|
|
27
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@websline/system-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@tiptap/core": "^3.
|
|
30
|
-
"@tiptap/extension-color": "^3.
|
|
31
|
-
"@tiptap/extension-highlight": "^3.
|
|
32
|
-
"@tiptap/extension-placeholder": "^3.
|
|
33
|
-
"@tiptap/extension-text-align": "^3.
|
|
34
|
-
"@tiptap/extension-text-style": "^3.
|
|
35
|
-
"@tiptap/pm": "^3.
|
|
36
|
-
"@tiptap/starter-kit": "^3.
|
|
37
|
-
"bits-ui": "^2.15.
|
|
29
|
+
"@tiptap/core": "^3.19.0",
|
|
30
|
+
"@tiptap/extension-color": "^3.19.0",
|
|
31
|
+
"@tiptap/extension-highlight": "^3.19.0",
|
|
32
|
+
"@tiptap/extension-placeholder": "^3.19.0",
|
|
33
|
+
"@tiptap/extension-text-align": "^3.19.0",
|
|
34
|
+
"@tiptap/extension-text-style": "^3.19.0",
|
|
35
|
+
"@tiptap/pm": "^3.19.0",
|
|
36
|
+
"@tiptap/starter-kit": "^3.19.0",
|
|
37
|
+
"bits-ui": "^2.15.5",
|
|
38
38
|
"dompurify": "^3.3.1",
|
|
39
39
|
"tailwind-variants": "^3.2.2",
|
|
40
40
|
"uuid": "^13.0.0"
|
|
@@ -43,34 +43,34 @@
|
|
|
43
43
|
"svelte": "^5.38.7"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@eslint/compat": "^2.0.
|
|
46
|
+
"@eslint/compat": "^2.0.2",
|
|
47
47
|
"@eslint/js": "^9.39.2",
|
|
48
|
-
"@storybook/addon-a11y": "^10.2.
|
|
49
|
-
"@storybook/addon-docs": "^10.2.
|
|
48
|
+
"@storybook/addon-a11y": "^10.2.8",
|
|
49
|
+
"@storybook/addon-docs": "^10.2.8",
|
|
50
50
|
"@storybook/addon-svelte-csf": "^5.0.10",
|
|
51
|
-
"@storybook/sveltekit": "^10.2.
|
|
51
|
+
"@storybook/sveltekit": "^10.2.8",
|
|
52
52
|
"@sveltejs/adapter-auto": "^7.0.0",
|
|
53
|
-
"@sveltejs/kit": "^2.50.
|
|
53
|
+
"@sveltejs/kit": "^2.50.2",
|
|
54
54
|
"@sveltejs/package": "^2.5.7",
|
|
55
55
|
"@sveltejs/vite-plugin-svelte": "^6.2.4",
|
|
56
56
|
"@tailwindcss/forms": "^0.5.11",
|
|
57
57
|
"@tailwindcss/typography": "^0.5.19",
|
|
58
58
|
"@tailwindcss/vite": "^4.1.18",
|
|
59
|
-
"@types/node": "^25.
|
|
59
|
+
"@types/node": "^25.2.2",
|
|
60
60
|
"@vitest/browser": "^4.0.18",
|
|
61
61
|
"eslint": "^9.39.2",
|
|
62
62
|
"eslint-config-prettier": "^10.1.8",
|
|
63
|
-
"eslint-plugin-storybook": "^10.2.
|
|
63
|
+
"eslint-plugin-storybook": "^10.2.8",
|
|
64
64
|
"eslint-plugin-svelte": "^3.14.0",
|
|
65
|
-
"globals": "^17.
|
|
66
|
-
"playwright": "^1.58.
|
|
65
|
+
"globals": "^17.3.0",
|
|
66
|
+
"playwright": "^1.58.2",
|
|
67
67
|
"postcss-url": "^10.1.3",
|
|
68
68
|
"prettier": "^3.8.1",
|
|
69
69
|
"prettier-plugin-svelte": "^3.4.1",
|
|
70
70
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
71
71
|
"publint": "^0.3.17",
|
|
72
|
-
"storybook": "^10.2.
|
|
73
|
-
"svelte": "^5.
|
|
72
|
+
"storybook": "^10.2.8",
|
|
73
|
+
"svelte": "^5.50.1",
|
|
74
74
|
"tailwindcss": "^4.1.18",
|
|
75
75
|
"typescript": "^5.9.3",
|
|
76
76
|
"vite": "^7.3.1",
|