@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
|
@@ -4,10 +4,6 @@ type PopoverContent = {
|
|
|
4
4
|
$set?(props: Partial<Props>): void;
|
|
5
5
|
};
|
|
6
6
|
declare const PopoverContent: import("svelte").Component<{
|
|
7
|
-
/**
|
|
8
|
-
* Children content – can be text, HTML, or other Svelte components
|
|
9
|
-
*/
|
|
10
|
-
children?: import("svelte").Snippet;
|
|
11
7
|
/**
|
|
12
8
|
* The preferred alignment of the anchor to render the floating element against when open. This may change when collisions occur.
|
|
13
9
|
*/
|
|
@@ -16,6 +12,14 @@ declare const PopoverContent: import("svelte").Component<{
|
|
|
16
12
|
* The distance in pixels from the anchor to the floating element.
|
|
17
13
|
*/
|
|
18
14
|
alignOffset?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Children content – can be text, HTML, or other Svelte components
|
|
17
|
+
*/
|
|
18
|
+
children?: import("svelte").Snippet;
|
|
19
|
+
/**
|
|
20
|
+
* Additional CSS classes for the content
|
|
21
|
+
*/
|
|
22
|
+
class?: string;
|
|
19
23
|
/**
|
|
20
24
|
* When true, prevents the body from scrolling when the content is open. This is useful when you want to use the content as a modal.
|
|
21
25
|
*/
|
|
@@ -46,10 +50,6 @@ declare const PopoverContent: import("svelte").Component<{
|
|
|
46
50
|
title?: string;
|
|
47
51
|
}, {}, "">;
|
|
48
52
|
type Props = {
|
|
49
|
-
/**
|
|
50
|
-
* Children content – can be text, HTML, or other Svelte components
|
|
51
|
-
*/
|
|
52
|
-
children?: import("svelte").Snippet;
|
|
53
53
|
/**
|
|
54
54
|
* The preferred alignment of the anchor to render the floating element against when open. This may change when collisions occur.
|
|
55
55
|
*/
|
|
@@ -58,6 +58,14 @@ type Props = {
|
|
|
58
58
|
* The distance in pixels from the anchor to the floating element.
|
|
59
59
|
*/
|
|
60
60
|
alignOffset?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Children content – can be text, HTML, or other Svelte components
|
|
63
|
+
*/
|
|
64
|
+
children?: import("svelte").Snippet;
|
|
65
|
+
/**
|
|
66
|
+
* Additional CSS classes for the content
|
|
67
|
+
*/
|
|
68
|
+
class?: string;
|
|
61
69
|
/**
|
|
62
70
|
* When true, prevents the body from scrolling when the content is open. This is useful when you want to use the content as a modal.
|
|
63
71
|
*/
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
export const popoverVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
body?: import("tailwind-variants").ClassValue;
|
|
7
|
-
header?: import("tailwind-variants").ClassValue;
|
|
8
|
-
trigger?: import("tailwind-variants").ClassValue;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
} | {
|
|
12
|
-
[x: string]: {
|
|
13
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
14
|
-
close?: import("tailwind-variants").ClassValue;
|
|
15
|
-
content?: import("tailwind-variants").ClassValue;
|
|
16
|
-
body?: import("tailwind-variants").ClassValue;
|
|
17
|
-
header?: import("tailwind-variants").ClassValue;
|
|
18
|
-
trigger?: import("tailwind-variants").ClassValue;
|
|
2
|
+
noPadding: {
|
|
3
|
+
false: {
|
|
4
|
+
body: string;
|
|
5
|
+
header: string;
|
|
19
6
|
};
|
|
20
7
|
};
|
|
21
8
|
}, {
|
|
@@ -24,13 +11,27 @@ export const popoverVariants: import("tailwind-variants").TVReturnType<{
|
|
|
24
11
|
content: string;
|
|
25
12
|
header: string;
|
|
26
13
|
trigger: string;
|
|
27
|
-
}, undefined,
|
|
14
|
+
}, undefined, {
|
|
15
|
+
noPadding: {
|
|
16
|
+
false: {
|
|
17
|
+
body: string;
|
|
18
|
+
header: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
28
22
|
body: string;
|
|
29
23
|
close: string;
|
|
30
24
|
content: string;
|
|
31
25
|
header: string;
|
|
32
26
|
trigger: string;
|
|
33
|
-
}, import("tailwind-variants").TVReturnType<
|
|
27
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
28
|
+
noPadding: {
|
|
29
|
+
false: {
|
|
30
|
+
body: string;
|
|
31
|
+
header: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
34
35
|
body: string;
|
|
35
36
|
close: string;
|
|
36
37
|
content: string;
|
|
@@ -2,14 +2,22 @@ import { tv } from "tailwind-variants";
|
|
|
2
2
|
|
|
3
3
|
const popoverVariants = tv({
|
|
4
4
|
slots: {
|
|
5
|
-
body: "
|
|
5
|
+
body: "",
|
|
6
6
|
close: "ml-auto",
|
|
7
7
|
content:
|
|
8
|
-
"
|
|
8
|
+
"flex flex-col-reverse rounded-2xl bg-white shadow-sm dark:bg-neutral-800",
|
|
9
9
|
header:
|
|
10
|
-
"
|
|
10
|
+
"flex items-center justify-between gap-3 border-b border-gray-300 heading-h6 dark:text-neutral-200",
|
|
11
11
|
trigger: "cursor-pointer",
|
|
12
12
|
},
|
|
13
|
+
variants: {
|
|
14
|
+
noPadding: {
|
|
15
|
+
false: {
|
|
16
|
+
body: "p-3",
|
|
17
|
+
header: "p-3",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
13
21
|
});
|
|
14
22
|
|
|
15
23
|
export { popoverVariants };
|
package/package.json
CHANGED
|
@@ -1,31 +0,0 @@
|
|
|
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 20 20"
|
|
18
|
-
fill="none"
|
|
19
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
-
{...rest}>
|
|
21
|
-
<path
|
|
22
|
-
d="M7.6176 17.5001C6.22131 17.0892 4.97843 16.3264 3.99429 15.3157C4.36143 14.8857 4.58268 14.33 4.58268 13.7233C4.58268 12.3587 3.46339 11.2524 2.08268 11.2524C1.99916 11.2524 1.91659 11.2565 1.83518 11.2644C1.72426 10.7284 1.66602 10.1736 1.66602 9.60519C1.66602 8.74426 1.79967 7.91418 2.04759 7.13409C2.05927 7.13425 2.07097 7.13433 2.08268 7.13433C3.46339 7.13433 4.58268 6.02809 4.58268 4.66347C4.58268 4.27172 4.49043 3.90129 4.32627 3.57218C5.28997 2.68654 6.46622 2.02374 7.77106 1.66675C8.18452 2.46774 9.02714 3.01625 9.99935 3.01625C10.9716 3.01625 11.8142 2.46774 12.2276 1.66675C13.5325 2.02374 14.7087 2.68654 15.6724 3.57218C15.5083 3.90129 15.416 4.27172 15.416 4.66347C15.416 6.02809 16.5353 7.13433 17.916 7.13433C17.9277 7.13433 17.9394 7.13425 17.9511 7.13409C18.199 7.91418 18.3327 8.74426 18.3327 9.60519C18.3327 10.1736 18.2744 10.7284 18.1635 11.2644C18.0821 11.2565 17.9996 11.2524 17.916 11.2524C16.5353 11.2524 15.416 12.3587 15.416 13.7233C15.416 14.33 15.6373 14.8857 16.0044 15.3157C15.0203 16.3264 13.7774 17.0892 12.3811 17.5001C12.0588 16.5038 11.1143 15.7823 9.99935 15.7823C8.88435 15.7823 7.93985 16.5038 7.6176 17.5001Z"
|
|
23
|
-
stroke={color}
|
|
24
|
-
stroke-width={strokeWidth}
|
|
25
|
-
stroke-linejoin="round" />
|
|
26
|
-
<path
|
|
27
|
-
d="M9.99935 12.4878C11.6102 12.4878 12.916 11.1972 12.916 9.60515C12.916 8.01309 11.6102 6.72248 9.99935 6.72248C8.38852 6.72248 7.08268 8.01309 7.08268 9.60515C7.08268 11.1972 8.38852 12.4878 9.99935 12.4878Z"
|
|
28
|
-
stroke={color}
|
|
29
|
-
stroke-width={strokeWidth}
|
|
30
|
-
stroke-linejoin="round" />
|
|
31
|
-
</svg>
|