@websline/system-components 1.3.4 → 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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -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: {
|
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
|
|