@websline/system-components 1.0.0 → 1.0.1
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.js +9 -9
- package/dist/components/atoms/actions/closeButton/closeButton.variants.js +2 -2
- package/dist/components/atoms/actions/iconButton/iconButton.variants.js +8 -8
- package/dist/components/atoms/avatar/avatar.variants.js +3 -3
- package/dist/components/atoms/badge/badge.variants.js +4 -4
- package/dist/components/atoms/chip/chip.variants.d.ts +2 -2
- package/dist/components/atoms/chip/chip.variants.js +14 -14
- package/dist/components/atoms/colorChip/colorChip.variants.d.ts +3 -3
- package/dist/components/atoms/colorChip/colorChip.variants.js +9 -7
- package/dist/components/atoms/icon/Icon.svelte +1 -1
- package/dist/components/atoms/icon/components/Calendar.svelte +27 -0
- package/dist/components/atoms/icon/components/Calendar.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/CheckboxStack.svelte +27 -0
- package/dist/components/atoms/icon/components/CheckboxStack.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Download.svelte +27 -0
- package/dist/components/atoms/icon/components/Download.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Dragger.svelte +6 -7
- package/dist/components/atoms/icon/components/FilePDF.svelte +53 -0
- package/dist/components/atoms/icon/components/FilePDF.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/History.svelte +27 -0
- package/dist/components/atoms/icon/components/History.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Out.svelte +27 -0
- package/dist/components/atoms/icon/components/{Cogs.svelte.d.ts → Out.svelte.d.ts} +3 -3
- package/dist/components/atoms/icon/components/Overflow.svelte +28 -0
- package/dist/components/atoms/icon/components/Overflow.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Unlink.svelte +27 -0
- package/dist/components/atoms/icon/components/Unlink.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/index.d.ts +686 -64
- package/dist/components/atoms/icon/index.js +16 -2
- package/dist/components/atoms/input/input.variants.d.ts +2 -2
- package/dist/components/atoms/input/input.variants.js +2 -2
- package/dist/components/atoms/select/select.variants.d.ts +9 -9
- package/dist/components/atoms/select/select.variants.js +25 -42
- package/dist/components/atoms/textarea/textarea.variants.d.ts +2 -2
- package/dist/components/atoms/textarea/textarea.variants.js +2 -2
- package/dist/components/molecules/formField/formField.variants.js +1 -1
- package/dist/components/molecules/notification/notification.variants.js +2 -2
- package/dist/components/molecules/pickers/colorSwatch/colorSwatch.variants.js +2 -2
- package/dist/components/molecules/richTextEditor/richTextEditor.variants.d.ts +3 -3
- package/dist/components/molecules/richTextEditor/richTextEditor.variants.js +14 -24
- package/dist/components/molecules/toggleGroup/toggleGroup.variants.d.ts +3 -3
- package/dist/components/molecules/toggleGroup/toggleGroup.variants.js +2 -2
- package/dist/components/molecules/toggleGroup/toggleGroupItem.variants.js +5 -5
- package/dist/components/organisms/dialog/dialog.variants.d.ts +3 -3
- package/dist/components/organisms/dialog/dialog.variants.js +5 -5
- package/dist/components/organisms/modal/modal.variants.js +1 -1
- package/dist/components/organisms/notificationGroup/notificationGroup.variants.js +2 -2
- package/dist/components/organisms/popover/PopoverContent.svelte +21 -17
- package/dist/components/organisms/popover/PopoverContent.svelte.d.ts +16 -8
- package/dist/components/organisms/popover/popover.variants.d.ts +20 -19
- package/dist/components/organisms/popover/popover.variants.js +11 -3
- package/package.json +1 -1
- package/dist/components/atoms/icon/components/Cogs.svelte +0 -31
|
@@ -9,7 +9,7 @@ const buttonVariants = tv({
|
|
|
9
9
|
variants: {
|
|
10
10
|
disabled: {
|
|
11
11
|
true: {
|
|
12
|
-
base: "
|
|
12
|
+
base: "pointer-events-none opacity-40",
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
15
|
fullWidth: {
|
|
@@ -29,27 +29,27 @@ const buttonVariants = tv({
|
|
|
29
29
|
},
|
|
30
30
|
size: {
|
|
31
31
|
small: {
|
|
32
|
-
base: "
|
|
32
|
+
base: "gap-2 px-3 py-1.25 button-small",
|
|
33
33
|
spinner: "w-4",
|
|
34
34
|
},
|
|
35
35
|
medium: {
|
|
36
|
-
base: "
|
|
36
|
+
base: "gap-2 px-3 py-1.5 button-default",
|
|
37
37
|
spinner: "w-5",
|
|
38
38
|
},
|
|
39
39
|
large: {
|
|
40
|
-
base: "
|
|
40
|
+
base: "gap-3 px-3 py-2.5 button-default",
|
|
41
41
|
spinner: "w-5",
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
variant: {
|
|
45
45
|
filled: {
|
|
46
|
-
base: "border-
|
|
46
|
+
base: "border-1 border-transparent",
|
|
47
47
|
},
|
|
48
48
|
outlined: {
|
|
49
49
|
base: "border-1",
|
|
50
50
|
},
|
|
51
51
|
text: {
|
|
52
|
-
base: "relative !px-0 after:
|
|
52
|
+
base: "relative !px-0 after:absolute after:bottom-0 after:left-0 after:h-[1.5px] after:w-0 after:transition-all after:duration-300 after:content-[''] hover:after:w-full",
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
55
|
},
|
|
@@ -65,7 +65,7 @@ const buttonVariants = tv({
|
|
|
65
65
|
color: "primary",
|
|
66
66
|
variant: "outlined",
|
|
67
67
|
class: {
|
|
68
|
-
base: "
|
|
68
|
+
base: "border-blue-500 text-blue-500 hover:border-blue-600 hover:bg-blue-600 hover:text-white dark:border-blue-400 dark:text-blue-400 dark:hover:border-blue-500 dark:hover:bg-blue-500",
|
|
69
69
|
},
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -78,7 +78,7 @@ const buttonVariants = tv({
|
|
|
78
78
|
color: "secondary",
|
|
79
79
|
variant: "outlined",
|
|
80
80
|
class: {
|
|
81
|
-
base: "text-neutral-900 hover:
|
|
81
|
+
base: "text-neutral-900 hover:border-neutral-700 hover:bg-neutral-700 hover:text-white dark:border-neutral-200 dark:text-neutral-200 dark:hover:border-neutral-500 dark:hover:bg-neutral-500 dark:hover:text-inherit",
|
|
82
82
|
},
|
|
83
83
|
},
|
|
84
84
|
{
|
|
@@ -92,7 +92,7 @@ const buttonVariants = tv({
|
|
|
92
92
|
color: "success",
|
|
93
93
|
variant: "outlined",
|
|
94
94
|
class: {
|
|
95
|
-
base: "
|
|
95
|
+
base: "border-green-500 text-green-500 hover:border-green-700 hover:bg-green-700 hover:text-white dark:border-green-500 dark:text-green-500 dark:hover:border-green-700 dark:hover:bg-green-700",
|
|
96
96
|
},
|
|
97
97
|
},
|
|
98
98
|
{
|
|
@@ -3,8 +3,8 @@ import { tv } from "tailwind-variants";
|
|
|
3
3
|
const closeButtonVariants = tv({
|
|
4
4
|
slots: {
|
|
5
5
|
button:
|
|
6
|
-
"cursor-pointer
|
|
7
|
-
bar: "absolute bg-gray-300 dark:bg-neutral-700
|
|
6
|
+
"relative cursor-pointer overflow-hidden bg-white p-1 transition duration-200 select-none dark:bg-neutral-800 dark:text-white",
|
|
7
|
+
bar: "absolute inset-[0px] z-0 bg-gray-300 dark:bg-neutral-700",
|
|
8
8
|
},
|
|
9
9
|
variants: {
|
|
10
10
|
shape: {
|
|
@@ -4,7 +4,7 @@ const iconButtonVariants = tv({
|
|
|
4
4
|
base: "inline-flex cursor-pointer transition duration-200 select-none",
|
|
5
5
|
variants: {
|
|
6
6
|
disabled: {
|
|
7
|
-
true: "
|
|
7
|
+
true: "pointer-events-none opacity-40",
|
|
8
8
|
},
|
|
9
9
|
loading: {
|
|
10
10
|
true: "pointer-events-none",
|
|
@@ -19,9 +19,9 @@ const iconButtonVariants = tv({
|
|
|
19
19
|
large: "p-2.75",
|
|
20
20
|
},
|
|
21
21
|
variant: {
|
|
22
|
-
filled: "border-
|
|
22
|
+
filled: "border-1 border-transparent",
|
|
23
23
|
outlined: "border-1",
|
|
24
|
-
transparent: "border-
|
|
24
|
+
transparent: "border-1 border-transparent",
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
compoundVariants: [
|
|
@@ -35,7 +35,7 @@ const iconButtonVariants = tv({
|
|
|
35
35
|
color: "primary",
|
|
36
36
|
variant: "outlined",
|
|
37
37
|
class:
|
|
38
|
-
"
|
|
38
|
+
"border-blue-500 text-blue-500 hover:border-blue-600 hover:bg-blue-600 hover:text-white dark:border-blue-400 dark:text-blue-400 dark:hover:border-blue-500 dark:hover:bg-blue-500",
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
color: "secondary",
|
|
@@ -47,7 +47,7 @@ const iconButtonVariants = tv({
|
|
|
47
47
|
color: "secondary",
|
|
48
48
|
variant: "outlined",
|
|
49
49
|
class:
|
|
50
|
-
"text-neutral-900 hover:
|
|
50
|
+
"text-neutral-900 hover:border-neutral-900 hover:bg-neutral-900 hover:text-white dark:border-white dark:text-white dark:hover:border-neutral-200 dark:hover:bg-neutral-200 dark:hover:text-inherit",
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
color: "success",
|
|
@@ -59,7 +59,7 @@ const iconButtonVariants = tv({
|
|
|
59
59
|
color: "success",
|
|
60
60
|
variant: "outlined",
|
|
61
61
|
class:
|
|
62
|
-
"
|
|
62
|
+
"border-green-500 text-green-500 hover:border-green-700 hover:bg-green-700 hover:text-white dark:border-green-500 dark:text-green-500 dark:hover:border-green-700 dark:hover:bg-green-700",
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
color: "danger",
|
|
@@ -71,7 +71,7 @@ const iconButtonVariants = tv({
|
|
|
71
71
|
color: "danger",
|
|
72
72
|
variant: "outlined",
|
|
73
73
|
class:
|
|
74
|
-
"
|
|
74
|
+
"border-red-500 text-red-500 hover:border-red-700 hover:bg-red-700 hover:text-white dark:border-red-500 dark:text-red-500 dark:hover:border-red-700 dark:hover:bg-red-700",
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
shape: "square",
|
|
@@ -83,7 +83,7 @@ const iconButtonVariants = tv({
|
|
|
83
83
|
shape: "square",
|
|
84
84
|
variant: "filled",
|
|
85
85
|
class:
|
|
86
|
-
"bg-neutral-100 hover:bg-neutral-300
|
|
86
|
+
"bg-neutral-100 text-neutral-900 hover:bg-neutral-300 dark:bg-neutral-900 dark:text-white dark:hover:bg-neutral-700",
|
|
87
87
|
},
|
|
88
88
|
],
|
|
89
89
|
});
|
|
@@ -2,9 +2,9 @@ import { tv } from "tailwind-variants";
|
|
|
2
2
|
|
|
3
3
|
const avatarVariants = tv({
|
|
4
4
|
slots: {
|
|
5
|
-
base: "overflow-hidden
|
|
6
|
-
image: "
|
|
7
|
-
fallback: "
|
|
5
|
+
base: "flex overflow-hidden",
|
|
6
|
+
image: "h-full w-full object-cover",
|
|
7
|
+
fallback: "flex h-full w-full items-center justify-center bg-blue-100 heading-h6",
|
|
8
8
|
},
|
|
9
9
|
variants: {
|
|
10
10
|
as: {
|
|
@@ -2,8 +2,8 @@ import { tv } from "tailwind-variants";
|
|
|
2
2
|
|
|
3
3
|
const badgeVariants = tv({
|
|
4
4
|
slots: {
|
|
5
|
-
base: "inline-flex
|
|
6
|
-
wrapper: "inline-flex gap-0.5
|
|
5
|
+
base: "absolute inline-flex items-center justify-center rounded-full body-extra-small select-none",
|
|
6
|
+
wrapper: "relative inline-flex gap-0.5",
|
|
7
7
|
},
|
|
8
8
|
variants: {
|
|
9
9
|
color: {
|
|
@@ -23,12 +23,12 @@ const badgeVariants = tv({
|
|
|
23
23
|
base: "bottom-0 translate-y-1/2",
|
|
24
24
|
},
|
|
25
25
|
inline: {
|
|
26
|
-
wrapper: "items-center
|
|
26
|
+
wrapper: "static items-center",
|
|
27
27
|
base: "static",
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
count: {
|
|
31
|
-
true: "px-1.5 py-0.5
|
|
31
|
+
true: "size-auto px-1.5 py-0.5",
|
|
32
32
|
false: "size-3",
|
|
33
33
|
},
|
|
34
34
|
},
|
|
@@ -18,7 +18,7 @@ export const chipVariants: import("tailwind-variants").TVReturnType<{
|
|
|
18
18
|
outline: string;
|
|
19
19
|
dashed: string;
|
|
20
20
|
};
|
|
21
|
-
}, undefined,
|
|
21
|
+
}, undefined, string[], {
|
|
22
22
|
color: {
|
|
23
23
|
default: string;
|
|
24
24
|
primary: string;
|
|
@@ -58,4 +58,4 @@ export const chipVariants: import("tailwind-variants").TVReturnType<{
|
|
|
58
58
|
outline: string;
|
|
59
59
|
dashed: string;
|
|
60
60
|
};
|
|
61
|
-
}, undefined,
|
|
61
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
|
|
3
3
|
const chipVariants = tv({
|
|
4
|
-
base:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
base: [
|
|
5
|
+
"relative inline-flex items-center gap-1 rounded border align-middle select-none [button]:cursor-pointer",
|
|
6
|
+
"ring-blue-500 ring-offset-1 ring-offset-transparent outline-0 focus-visible:ring-1 dark:ring-blue-400",
|
|
7
|
+
],
|
|
8
8
|
variants: {
|
|
9
9
|
color: {
|
|
10
10
|
default:
|
|
@@ -15,8 +15,8 @@ const chipVariants = tv({
|
|
|
15
15
|
warning: "bg-yellow-500 text-neutral-900",
|
|
16
16
|
},
|
|
17
17
|
size: {
|
|
18
|
-
small: "
|
|
19
|
-
big: "
|
|
18
|
+
small: "min-h-[20px] px-2 py-0.5 body-extra-small",
|
|
19
|
+
big: "min-h-[28px] px-3 py-1.5 body-small",
|
|
20
20
|
},
|
|
21
21
|
iconPosition: {
|
|
22
22
|
end: "flex-row-reverse",
|
|
@@ -24,7 +24,7 @@ const chipVariants = tv({
|
|
|
24
24
|
variant: {
|
|
25
25
|
filled: "border-transparent",
|
|
26
26
|
outline: "bg-transparent dark:bg-transparent",
|
|
27
|
-
dashed: "bg-transparent
|
|
27
|
+
dashed: "border-dashed bg-transparent dark:bg-transparent",
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
compoundVariants: [
|
|
@@ -38,7 +38,7 @@ const chipVariants = tv({
|
|
|
38
38
|
color: "primary",
|
|
39
39
|
variant: ["outline", "dashed"],
|
|
40
40
|
class:
|
|
41
|
-
"
|
|
41
|
+
"border-blue-500 text-blue-500 dark:border-blue-400 dark:text-neutral-100",
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
color: "error",
|
|
@@ -53,7 +53,7 @@ const chipVariants = tv({
|
|
|
53
53
|
{
|
|
54
54
|
color: "warning",
|
|
55
55
|
variant: ["outline", "dashed"],
|
|
56
|
-
class: "text-neutral-900
|
|
56
|
+
class: "border-yellow-500 text-neutral-900 dark:text-yellow-600",
|
|
57
57
|
},
|
|
58
58
|
// Selected
|
|
59
59
|
{
|
|
@@ -69,12 +69,12 @@ const chipVariants = tv({
|
|
|
69
69
|
{
|
|
70
70
|
selected: true,
|
|
71
71
|
color: "error",
|
|
72
|
-
class: "bg-red-700
|
|
72
|
+
class: "bg-red-700",
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
selected: true,
|
|
76
76
|
color: "success",
|
|
77
|
-
class: "bg-green-700
|
|
77
|
+
class: "bg-green-700",
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
selected: true,
|
|
@@ -92,19 +92,19 @@ const chipVariants = tv({
|
|
|
92
92
|
selected: true,
|
|
93
93
|
variant: ["outline", "dashed"],
|
|
94
94
|
color: "primary",
|
|
95
|
-
class: "
|
|
95
|
+
class: "border-blue-600 bg-blue-600 text-neutral-100 dark:border-blue-500",
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
selected: true,
|
|
99
99
|
variant: ["outline", "dashed"],
|
|
100
100
|
color: "error",
|
|
101
|
-
class: "text-neutral-100
|
|
101
|
+
class: "border-red-700 text-neutral-100 dark:bg-red-700",
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
selected: true,
|
|
105
105
|
variant: ["outline", "dashed"],
|
|
106
106
|
color: "success",
|
|
107
|
-
class: "text-neutral-100
|
|
107
|
+
class: "border-green-700 text-neutral-100 dark:bg-green-700",
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
selected: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const colorChipVariants: import("tailwind-variants").TVReturnType<{
|
|
2
2
|
clickable: {
|
|
3
|
-
true: string;
|
|
3
|
+
true: string[];
|
|
4
4
|
};
|
|
5
5
|
shape: {
|
|
6
6
|
circle: string;
|
|
@@ -13,7 +13,7 @@ export const colorChipVariants: import("tailwind-variants").TVReturnType<{
|
|
|
13
13
|
};
|
|
14
14
|
}, undefined, "border border-transparent", {
|
|
15
15
|
clickable: {
|
|
16
|
-
true: string;
|
|
16
|
+
true: string[];
|
|
17
17
|
};
|
|
18
18
|
shape: {
|
|
19
19
|
circle: string;
|
|
@@ -26,7 +26,7 @@ export const colorChipVariants: import("tailwind-variants").TVReturnType<{
|
|
|
26
26
|
};
|
|
27
27
|
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
28
28
|
clickable: {
|
|
29
|
-
true: string;
|
|
29
|
+
true: string[];
|
|
30
30
|
};
|
|
31
31
|
shape: {
|
|
32
32
|
circle: string;
|
|
@@ -4,13 +4,15 @@ const colorChipVariants = tv({
|
|
|
4
4
|
base: "border border-transparent",
|
|
5
5
|
variants: {
|
|
6
6
|
clickable: {
|
|
7
|
-
true:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
true: [
|
|
8
|
+
"cursor-pointer",
|
|
9
|
+
"hover:brightness-90 focus:outline-none",
|
|
10
|
+
"active:brightness-75",
|
|
11
|
+
"transition duration-150 ease-in-out",
|
|
12
|
+
"hover:ring-2 focus:ring-2",
|
|
13
|
+
"hover:ring-offset-1 focus:ring-offset-1",
|
|
14
|
+
"hover:ring-blue-500 focus:ring-blue-500",
|
|
15
|
+
],
|
|
14
16
|
},
|
|
15
17
|
shape: {
|
|
16
18
|
circle: "rounded-full",
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {Object} Props
|
|
4
|
+
* @property {string} [color=""] Icon color
|
|
5
|
+
* @property {number} [height=24] Icon height
|
|
6
|
+
* @property {number} [strokeWidth=24] Icon StrokeWidth
|
|
7
|
+
* @property {number} [width=24] Icon width
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** @type {Props} */
|
|
11
|
+
let { color, height, width, strokeWidth, ...rest } = $props();
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<svg
|
|
15
|
+
{height}
|
|
16
|
+
{width}
|
|
17
|
+
viewBox="0 0 24 24"
|
|
18
|
+
fill="none"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
{...rest}>
|
|
21
|
+
<path
|
|
22
|
+
d="M3 10.1053H21M3 10.1053V20.0526C3 20.5759 3.42415 21 3.94737 21H20.0526C20.5759 21 21 20.5759 21 20.0526V10.1053M3 10.1053V5.36842C3 4.8452 3.42415 4.42105 3.94737 4.42105H20.0526C20.5759 4.42105 21 4.8452 21 5.36842V10.1053M8.21053 3V6.78947M15.7895 3V6.78947M13.8947 17.2105H16.7368M7.26316 17.2105H10.1053M13.8947 13.4211H16.7368M7.26316 13.4211H10.1053"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width={strokeWidth}
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round" />
|
|
27
|
+
</svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default Calendar;
|
|
2
|
+
type Calendar = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Calendar: import("svelte").Component<{
|
|
7
|
+
/**
|
|
8
|
+
* Icon color
|
|
9
|
+
*/
|
|
10
|
+
color?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Icon height
|
|
13
|
+
*/
|
|
14
|
+
height?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Icon StrokeWidth
|
|
17
|
+
*/
|
|
18
|
+
strokeWidth?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Icon width
|
|
21
|
+
*/
|
|
22
|
+
width?: number;
|
|
23
|
+
}, {}, "">;
|
|
24
|
+
type Props = {
|
|
25
|
+
/**
|
|
26
|
+
* Icon color
|
|
27
|
+
*/
|
|
28
|
+
color?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Icon height
|
|
31
|
+
*/
|
|
32
|
+
height?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Icon StrokeWidth
|
|
35
|
+
*/
|
|
36
|
+
strokeWidth?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Icon width
|
|
39
|
+
*/
|
|
40
|
+
width?: number;
|
|
41
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {Object} Props
|
|
4
|
+
* @property {string} [color=""] Icon color
|
|
5
|
+
* @property {number} [height=24] Icon height
|
|
6
|
+
* @property {number} [strokeWidth=24] Icon StrokeWidth
|
|
7
|
+
* @property {number} [width=24] Icon width
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** @type {Props} */
|
|
11
|
+
let { color, height, width, strokeWidth, ...rest } = $props();
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<svg
|
|
15
|
+
{height}
|
|
16
|
+
{width}
|
|
17
|
+
viewBox="0 0 24 24"
|
|
18
|
+
fill="none"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
{...rest}>
|
|
21
|
+
<path
|
|
22
|
+
d="M21 6.10358V20.9744C21 21.5408 20.5867 22 20.0769 22H6.6939M6.69233 9.94142L9.46143 12.7748L14.077 7.49701M16.3847 2H4.38462C3.61992 2 3 2.68879 3 3.53846V16.8718C3 17.7214 3.61992 18.4102 4.38462 18.4102H16.3847C17.1494 18.4102 17.7693 17.7214 17.7693 16.8718V3.53846C17.7693 2.68879 17.1494 2 16.3847 2Z"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width={strokeWidth}
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round" />
|
|
27
|
+
</svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default CheckboxStack;
|
|
2
|
+
type CheckboxStack = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const CheckboxStack: import("svelte").Component<{
|
|
7
|
+
/**
|
|
8
|
+
* Icon color
|
|
9
|
+
*/
|
|
10
|
+
color?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Icon height
|
|
13
|
+
*/
|
|
14
|
+
height?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Icon StrokeWidth
|
|
17
|
+
*/
|
|
18
|
+
strokeWidth?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Icon width
|
|
21
|
+
*/
|
|
22
|
+
width?: number;
|
|
23
|
+
}, {}, "">;
|
|
24
|
+
type Props = {
|
|
25
|
+
/**
|
|
26
|
+
* Icon color
|
|
27
|
+
*/
|
|
28
|
+
color?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Icon height
|
|
31
|
+
*/
|
|
32
|
+
height?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Icon StrokeWidth
|
|
35
|
+
*/
|
|
36
|
+
strokeWidth?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Icon width
|
|
39
|
+
*/
|
|
40
|
+
width?: number;
|
|
41
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {Object} Props
|
|
4
|
+
* @property {string} [color=""] Icon color
|
|
5
|
+
* @property {number} [height=24] Icon height
|
|
6
|
+
* @property {number} [strokeWidth=24] Icon StrokeWidth
|
|
7
|
+
* @property {number} [width=24] Icon width
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** @type {Props} */
|
|
11
|
+
let { color, height, width, strokeWidth, ...rest } = $props();
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<svg
|
|
15
|
+
{height}
|
|
16
|
+
{width}
|
|
17
|
+
viewBox="0 0 24 24"
|
|
18
|
+
fill="none"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
{...rest}>
|
|
21
|
+
<path
|
|
22
|
+
d="M3 12.0042V21H21V12M16.5 11.5L12 16L7.5 11.5M11.9958 3V16"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width={strokeWidth}
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round" />
|
|
27
|
+
</svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default Download;
|
|
2
|
+
type Download = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Download: import("svelte").Component<{
|
|
7
|
+
/**
|
|
8
|
+
* Icon color
|
|
9
|
+
*/
|
|
10
|
+
color?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Icon height
|
|
13
|
+
*/
|
|
14
|
+
height?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Icon StrokeWidth
|
|
17
|
+
*/
|
|
18
|
+
strokeWidth?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Icon width
|
|
21
|
+
*/
|
|
22
|
+
width?: number;
|
|
23
|
+
}, {}, "">;
|
|
24
|
+
type Props = {
|
|
25
|
+
/**
|
|
26
|
+
* Icon color
|
|
27
|
+
*/
|
|
28
|
+
color?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Icon height
|
|
31
|
+
*/
|
|
32
|
+
height?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Icon StrokeWidth
|
|
35
|
+
*/
|
|
36
|
+
strokeWidth?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Icon width
|
|
39
|
+
*/
|
|
40
|
+
width?: number;
|
|
41
|
+
};
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
<svg
|
|
15
15
|
{height}
|
|
16
16
|
{width}
|
|
17
|
-
viewBox="0 0
|
|
17
|
+
viewBox="0 0 48 48"
|
|
18
18
|
fill="none"
|
|
19
19
|
xmlns="http://www.w3.org/2000/svg"
|
|
20
20
|
{...rest}>
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<circle cx="6.5" cy="12" r={strokeWidth} fill={color} />
|
|
21
|
+
<path
|
|
22
|
+
d="M18.25 10a3.25 3.25 0 10-6.5 0 3.25 3.25 0 106.5 0zm0 14a3.25 3.25 0 10-6.5 0 3.25 3.25 0 106.5 0zm0 14a3.25 3.25 0 10-6.5 0 3.25 3.25 0 106.5 0zm18-28a3.25 3.25 0 10-6.5 0 3.25 3.25 0 106.5 0zm0 14a3.25 3.25 0 10-6.5 0 3.25 3.25 0 106.5 0zm0 14a3.25 3.25 0 10-6.5 0 3.25 3.25 0 106.5 0z"
|
|
23
|
+
fill={color}
|
|
24
|
+
stroke={color}
|
|
25
|
+
stroke-width={strokeWidth} />
|
|
27
26
|
</svg>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {Object} Props
|
|
4
|
+
* @property {string} [color=""] Icon color
|
|
5
|
+
* @property {number} [height=24] Icon height
|
|
6
|
+
* @property {number} [strokeWidth=24] Icon StrokeWidth
|
|
7
|
+
* @property {number} [width=24] Icon width
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** @type {Props} */
|
|
11
|
+
let { color, height, width, strokeWidth, ...rest } = $props();
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<svg
|
|
15
|
+
{height}
|
|
16
|
+
{width}
|
|
17
|
+
viewBox="0 0 52 52"
|
|
18
|
+
fill="none"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
{...rest}>
|
|
21
|
+
<path
|
|
22
|
+
d="M10 38v6h28v-6m0-18v-6L30 4H10v16"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width={strokeWidth}
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round" /><path
|
|
27
|
+
d="M28 4v10h10"
|
|
28
|
+
stroke={color}
|
|
29
|
+
stroke-width={strokeWidth}
|
|
30
|
+
stroke-linecap="round"
|
|
31
|
+
stroke-linejoin="round" /><rect
|
|
32
|
+
x="4"
|
|
33
|
+
y="20"
|
|
34
|
+
width="40"
|
|
35
|
+
height="18"
|
|
36
|
+
rx="2"
|
|
37
|
+
stroke={color}
|
|
38
|
+
stroke-width={strokeWidth}
|
|
39
|
+
stroke-linejoin="round" /><path
|
|
40
|
+
d="M21 25v8m-11-8v8"
|
|
41
|
+
stroke={color}
|
|
42
|
+
stroke-width={strokeWidth}
|
|
43
|
+
stroke-linecap="round" /><path
|
|
44
|
+
d="M32 33v-8h5m-5 5h5m-27-5h3.5a2.5 2.5 0 012.5 2.5v0a2.5 2.5 0 01-2.5 2.5H10m11-5h2a4 4 0 014 4v0a4 4 0 01-4 4h-2"
|
|
45
|
+
stroke={color}
|
|
46
|
+
stroke-width={strokeWidth}
|
|
47
|
+
stroke-linecap="round"
|
|
48
|
+
stroke-linejoin="round" /><path
|
|
49
|
+
d="M16 12h4"
|
|
50
|
+
stroke={color}
|
|
51
|
+
stroke-width={strokeWidth}
|
|
52
|
+
stroke-linecap="round" />
|
|
53
|
+
</svg>
|