@websline/system-components 1.4.8 → 1.5.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.svelte.d.ts +24 -24
- package/dist/components/atoms/actions/closeButton/CloseButton.svelte.d.ts +10 -10
- package/dist/components/atoms/actions/iconButton/IconButton.svelte.d.ts +20 -20
- package/dist/components/atoms/avatar/Avatar.svelte.d.ts +14 -14
- package/dist/components/atoms/badge/Badge.svelte.d.ts +14 -14
- package/dist/components/atoms/checkbox/Checkbox.svelte.d.ts +16 -16
- package/dist/components/atoms/chip/Chip.svelte.d.ts +18 -18
- package/dist/components/atoms/colorChip/ColorChip.svelte.d.ts +14 -14
- package/dist/components/atoms/feedback/progressBar/ProgressBar.svelte.d.ts +8 -8
- package/dist/components/atoms/feedback/spinner/Spinner.svelte.d.ts +4 -4
- package/dist/components/atoms/helperText/HelperText.svelte.d.ts +6 -6
- package/dist/components/atoms/icon/components/Academy.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Add.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Ai.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/AiStars.svelte.d.ts +6 -6
- package/dist/components/atoms/icon/components/AlignBottom.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/AlignBottomOne.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/AlignCenter.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/AlignCenterOne.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/AlignLeft.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/AlignMiddle.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/AlignMiddleOne.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/AlignRight.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/AlignRightOne.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/AlignTop.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/AlignTopOne.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/ArrowDown.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/ArrowUp.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Attach.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Bed.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Block.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Bold.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/BoxIn.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/BoxOut.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Calendar.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Check.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/CheckboxStack.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/ChevronDoubleLeft.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/ChevronDoubleRight.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/ChevronDown.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Clipboard.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Close.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/CloseSmall.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Computer.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Connect.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/ConnectCrossed.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/ContactCard.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Controlling.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Coupons.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Crop.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Dashboard.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Database.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Download.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Dragger.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Envelope.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Envelopes.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Expand.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Eye.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/EyeCrossed.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/FilePDF.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Filter.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/FocalPoint.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/FolderPlus.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Food.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Funnel.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Globe.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/History.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Hourglass.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Inbox.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Info.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Intergration.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Italic.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Layout.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Lightning.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Link.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/LinkAi.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/ListOrdered.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/ListTasks.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/ListUnordered.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Lock.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Menu.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Minus.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Notifications.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Offer.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Out.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Overflow.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Page.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/PageClock.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/PageEdit.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/PageLayout.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Pages.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Payment.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Pencil.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Phone.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Picture.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Print.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Redo.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Refresh.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/RefreshCircle.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Replace.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Report.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Resource.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/SEO.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Search.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Settings.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Shop.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Smartphone.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Sort.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/SpacingL.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/SpacingM.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/SpacingNone.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/SpacingS.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/SpacingXL.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Star.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/StyleGuide.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Tablet.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Translate.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/TranslateCrossed.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Trash.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Underline.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Undo.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/WebslineSupport.svelte.d.ts +8 -8
- package/dist/components/atoms/icon/components/Width.svelte.d.ts +8 -8
- package/dist/components/atoms/input/Input.svelte.d.ts +27 -26
- package/dist/components/atoms/label/Label.svelte.d.ts +10 -10
- package/dist/components/atoms/radio/Radio.svelte.d.ts +16 -16
- package/dist/components/atoms/select/Select.svelte.d.ts +25 -24
- package/dist/components/atoms/switch/Switch.svelte.d.ts +16 -16
- package/dist/components/atoms/tag/Tag.svelte.d.ts +16 -16
- package/dist/components/atoms/textarea/Textarea.svelte.d.ts +20 -20
- package/dist/components/atoms/utils/xScroll/XScroll.svelte.d.ts +4 -4
- package/dist/components/molecules/calendar/Calendar.svelte.d.ts +8 -8
- package/dist/components/molecules/calendar/Container.svelte.d.ts +4 -4
- package/dist/components/molecules/calendar/Weekdays.svelte.d.ts +2 -2
- package/dist/components/molecules/calendar/calendar.variant.d.ts +6 -6
- package/dist/components/molecules/comboBox/ComboBox.svelte.d.ts +22 -22
- package/dist/components/molecules/formActions/FormActions.svelte.d.ts +8 -8
- package/dist/components/molecules/formField/FormField.svelte.d.ts +20 -20
- package/dist/components/molecules/formLayout/FormLayout.svelte.d.ts +6 -6
- package/dist/components/molecules/notifications/systemAlert/SystemAlert.svelte.d.ts +12 -12
- package/dist/components/molecules/notifications/toast/Toast.svelte +3 -0
- package/dist/components/molecules/notifications/toast/Toast.svelte.d.ts +18 -10
- package/dist/components/molecules/notifications/toast/toast.variants.js +1 -1
- package/dist/components/molecules/pickers/colorSwatch/ColorSwatch.svelte.d.ts +12 -12
- package/dist/components/molecules/richTextEditor/RichTextEditor.svelte +14 -5
- package/dist/components/molecules/richTextEditor/toolbar/ToolbarLink.svelte +2 -1
- package/dist/components/molecules/selectorCard/SelectorCard.svelte.d.ts +24 -24
- package/dist/components/molecules/tagSelector/TagSelector.svelte.d.ts +22 -22
- package/dist/components/molecules/toggleGroup/ToggleGroup.svelte.d.ts +18 -18
- package/dist/components/molecules/toggleGroup/ToggleGroupItem.svelte.d.ts +8 -8
- package/dist/components/organisms/dialog/Dialog.svelte.d.ts +6 -6
- package/dist/components/organisms/dialog/DialogAction.svelte +5 -9
- package/dist/components/organisms/dialog/DialogAction.svelte.d.ts +6 -6
- package/dist/components/organisms/dialog/DialogActions.svelte +18 -3
- package/dist/components/organisms/dialog/DialogActions.svelte.d.ts +4 -4
- package/dist/components/organisms/dialog/DialogBody.svelte.d.ts +4 -4
- package/dist/components/organisms/dialog/DialogContent.svelte.d.ts +12 -12
- package/dist/components/organisms/dialog/DialogTrigger.svelte.d.ts +2 -2
- package/dist/components/organisms/modal/Modal.svelte.d.ts +6 -6
- package/dist/components/organisms/modal/ModalBody.svelte.d.ts +6 -6
- package/dist/components/organisms/modal/ModalContent.svelte.d.ts +12 -12
- package/dist/components/organisms/modal/ModalHeader.svelte.d.ts +6 -6
- package/dist/components/organisms/modal/ModalTrigger.svelte.d.ts +2 -2
- package/dist/components/organisms/notificationGroup/NotificationGroup.svelte +14 -7
- package/dist/components/organisms/notificationGroup/NotificationGroup.svelte.d.ts +2 -2
- package/dist/components/organisms/popover/Popover.svelte.d.ts +2 -2
- package/dist/components/organisms/popover/PopoverContent.svelte.d.ts +22 -22
- package/dist/components/organisms/popover/PopoverTrigger.svelte.d.ts +2 -2
- package/dist/components/organisms/tooltip/Content.svelte.d.ts +12 -12
- package/dist/components/organisms/tooltip/Tooltip.svelte.d.ts +2 -2
- package/dist/components/organisms/tooltip/Trigger.svelte.d.ts +2 -2
- package/dist/utils/notification.d.ts +1 -1
- package/dist/utils/notification.js +7 -1
- package/dist/utils/theme.svelte.d.ts +2 -2
- package/package.json +33 -33
|
@@ -7,89 +7,89 @@ declare const ComboBox: import("svelte").Component<{
|
|
|
7
7
|
/**
|
|
8
8
|
* Whether the input should be autofocused on mount
|
|
9
9
|
*/
|
|
10
|
-
autofocus?: boolean;
|
|
10
|
+
autofocus?: boolean | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Additional CSS classes to apply to the component
|
|
13
13
|
*/
|
|
14
|
-
class?: string;
|
|
14
|
+
class?: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Whether the component is disabled
|
|
17
17
|
*/
|
|
18
|
-
disabled?: boolean;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Whether the component has an error state
|
|
21
21
|
*/
|
|
22
|
-
error?: boolean;
|
|
22
|
+
error?: boolean | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* The ID of the input element
|
|
25
25
|
*/
|
|
26
|
-
id?: string;
|
|
26
|
+
id?: string | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* The name of the input, used for form submission
|
|
29
29
|
*/
|
|
30
|
-
name?: string;
|
|
30
|
+
name?: string | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* The available tag options
|
|
33
33
|
*/
|
|
34
|
-
options?:
|
|
34
|
+
options?: {
|
|
35
35
|
id: string | number;
|
|
36
36
|
label: string;
|
|
37
|
-
}
|
|
37
|
+
}[] | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* The placeholder text for the input
|
|
40
40
|
*/
|
|
41
|
-
placeholder?: string;
|
|
41
|
+
placeholder?: string | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Whether the component is required
|
|
44
44
|
*/
|
|
45
|
-
required?: boolean;
|
|
45
|
+
required?: boolean | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* The currently selected tags, bound to the component
|
|
48
48
|
*/
|
|
49
|
-
value?:
|
|
49
|
+
value?: (string | number)[] | undefined;
|
|
50
50
|
}, {}, "value">;
|
|
51
51
|
type Props = {
|
|
52
52
|
/**
|
|
53
53
|
* Whether the input should be autofocused on mount
|
|
54
54
|
*/
|
|
55
|
-
autofocus?: boolean;
|
|
55
|
+
autofocus?: boolean | undefined;
|
|
56
56
|
/**
|
|
57
57
|
* Additional CSS classes to apply to the component
|
|
58
58
|
*/
|
|
59
|
-
class?: string;
|
|
59
|
+
class?: string | undefined;
|
|
60
60
|
/**
|
|
61
61
|
* Whether the component is disabled
|
|
62
62
|
*/
|
|
63
|
-
disabled?: boolean;
|
|
63
|
+
disabled?: boolean | undefined;
|
|
64
64
|
/**
|
|
65
65
|
* Whether the component has an error state
|
|
66
66
|
*/
|
|
67
|
-
error?: boolean;
|
|
67
|
+
error?: boolean | undefined;
|
|
68
68
|
/**
|
|
69
69
|
* The ID of the input element
|
|
70
70
|
*/
|
|
71
|
-
id?: string;
|
|
71
|
+
id?: string | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* The name of the input, used for form submission
|
|
74
74
|
*/
|
|
75
|
-
name?: string;
|
|
75
|
+
name?: string | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* The available tag options
|
|
78
78
|
*/
|
|
79
|
-
options?:
|
|
79
|
+
options?: {
|
|
80
80
|
id: string | number;
|
|
81
81
|
label: string;
|
|
82
|
-
}
|
|
82
|
+
}[] | undefined;
|
|
83
83
|
/**
|
|
84
84
|
* The placeholder text for the input
|
|
85
85
|
*/
|
|
86
|
-
placeholder?: string;
|
|
86
|
+
placeholder?: string | undefined;
|
|
87
87
|
/**
|
|
88
88
|
* Whether the component is required
|
|
89
89
|
*/
|
|
90
|
-
required?: boolean;
|
|
90
|
+
required?: boolean | undefined;
|
|
91
91
|
/**
|
|
92
92
|
* The currently selected tags, bound to the component
|
|
93
93
|
*/
|
|
94
|
-
value?:
|
|
94
|
+
value?: (string | number)[] | undefined;
|
|
95
95
|
};
|
|
@@ -7,35 +7,35 @@ declare const FormActions: import("svelte").Component<{
|
|
|
7
7
|
/**
|
|
8
8
|
* Children content – can be text, HTML, or other Svelte components
|
|
9
9
|
*/
|
|
10
|
-
children?: import("svelte").Snippet;
|
|
10
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Additional CSS classes to apply to the component
|
|
13
13
|
*/
|
|
14
|
-
class?: string;
|
|
14
|
+
class?: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* If true, the default layout is disabled
|
|
17
17
|
*/
|
|
18
|
-
customLayout?: boolean;
|
|
18
|
+
customLayout?: boolean | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* If true, the form actions will take the full width of its container
|
|
21
21
|
*/
|
|
22
|
-
fullWidth?: boolean;
|
|
22
|
+
fullWidth?: boolean | undefined;
|
|
23
23
|
}, {}, "">;
|
|
24
24
|
type Props = {
|
|
25
25
|
/**
|
|
26
26
|
* Children content – can be text, HTML, or other Svelte components
|
|
27
27
|
*/
|
|
28
|
-
children?: import("svelte").Snippet;
|
|
28
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* Additional CSS classes to apply to the component
|
|
31
31
|
*/
|
|
32
|
-
class?: string;
|
|
32
|
+
class?: string | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* If true, the default layout is disabled
|
|
35
35
|
*/
|
|
36
|
-
customLayout?: boolean;
|
|
36
|
+
customLayout?: boolean | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* If true, the form actions will take the full width of its container
|
|
39
39
|
*/
|
|
40
|
-
fullWidth?: boolean;
|
|
40
|
+
fullWidth?: boolean | undefined;
|
|
41
41
|
};
|
|
@@ -7,83 +7,83 @@ declare const FormField: import("svelte").Component<{
|
|
|
7
7
|
/**
|
|
8
8
|
* Children content – can be text, HTML, or other Svelte components
|
|
9
9
|
*/
|
|
10
|
-
children?: import("svelte").Snippet;
|
|
10
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Additional CSS classes to apply to the component
|
|
13
13
|
*/
|
|
14
|
-
class?: string;
|
|
14
|
+
class?: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Whether the form field is disabled (passed down to the input)
|
|
17
17
|
*/
|
|
18
|
-
disabled?: boolean;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Whether the form field has an error (passed down to the input)
|
|
21
21
|
*/
|
|
22
|
-
error?: boolean;
|
|
22
|
+
error?: boolean | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* The error text for the form field
|
|
25
25
|
*/
|
|
26
|
-
errorText?: string;
|
|
26
|
+
errorText?: string | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* The helper text for the form field
|
|
29
29
|
*/
|
|
30
|
-
helperText?: string;
|
|
30
|
+
helperText?: string | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* The id attribute for the form field (passed down to the input)
|
|
33
33
|
*/
|
|
34
|
-
id?: string;
|
|
34
|
+
id?: string | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* The label text for the form field
|
|
37
37
|
*/
|
|
38
|
-
label?: string;
|
|
38
|
+
label?: string | undefined;
|
|
39
39
|
/**
|
|
40
40
|
* The layout of the input and label
|
|
41
41
|
*/
|
|
42
|
-
layout?: "
|
|
42
|
+
layout?: "inline" | "stacked" | "checkable" | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* Whether the form field is required (passed down to the input)
|
|
45
45
|
*/
|
|
46
|
-
required?: boolean;
|
|
46
|
+
required?: boolean | undefined;
|
|
47
47
|
}, {}, "">;
|
|
48
48
|
type Props = {
|
|
49
49
|
/**
|
|
50
50
|
* Children content – can be text, HTML, or other Svelte components
|
|
51
51
|
*/
|
|
52
|
-
children?: import("svelte").Snippet;
|
|
52
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* Additional CSS classes to apply to the component
|
|
55
55
|
*/
|
|
56
|
-
class?: string;
|
|
56
|
+
class?: string | undefined;
|
|
57
57
|
/**
|
|
58
58
|
* Whether the form field is disabled (passed down to the input)
|
|
59
59
|
*/
|
|
60
|
-
disabled?: boolean;
|
|
60
|
+
disabled?: boolean | undefined;
|
|
61
61
|
/**
|
|
62
62
|
* Whether the form field has an error (passed down to the input)
|
|
63
63
|
*/
|
|
64
|
-
error?: boolean;
|
|
64
|
+
error?: boolean | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* The error text for the form field
|
|
67
67
|
*/
|
|
68
|
-
errorText?: string;
|
|
68
|
+
errorText?: string | undefined;
|
|
69
69
|
/**
|
|
70
70
|
* The helper text for the form field
|
|
71
71
|
*/
|
|
72
|
-
helperText?: string;
|
|
72
|
+
helperText?: string | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* The id attribute for the form field (passed down to the input)
|
|
75
75
|
*/
|
|
76
|
-
id?: string;
|
|
76
|
+
id?: string | undefined;
|
|
77
77
|
/**
|
|
78
78
|
* The label text for the form field
|
|
79
79
|
*/
|
|
80
|
-
label?: string;
|
|
80
|
+
label?: string | undefined;
|
|
81
81
|
/**
|
|
82
82
|
* The layout of the input and label
|
|
83
83
|
*/
|
|
84
|
-
layout?: "
|
|
84
|
+
layout?: "inline" | "stacked" | "checkable" | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* Whether the form field is required (passed down to the input)
|
|
87
87
|
*/
|
|
88
|
-
required?: boolean;
|
|
88
|
+
required?: boolean | undefined;
|
|
89
89
|
};
|
|
@@ -7,27 +7,27 @@ declare const FormLayout: import("svelte").Component<{
|
|
|
7
7
|
/**
|
|
8
8
|
* Children content – can be text, HTML, or other Svelte components
|
|
9
9
|
*/
|
|
10
|
-
children?: import("svelte").Snippet;
|
|
10
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Additional CSS classes to apply to the component
|
|
13
13
|
*/
|
|
14
|
-
class?: string;
|
|
14
|
+
class?: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Gap between form elements (in Tailwind spacing scale)
|
|
17
17
|
*/
|
|
18
|
-
gap?: 0 | 1 | 2 |
|
|
18
|
+
gap?: 0 | 3 | 1 | 2 | 8 | 4 | 6 | undefined;
|
|
19
19
|
}, {}, "">;
|
|
20
20
|
type Props = {
|
|
21
21
|
/**
|
|
22
22
|
* Children content – can be text, HTML, or other Svelte components
|
|
23
23
|
*/
|
|
24
|
-
children?: import("svelte").Snippet;
|
|
24
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* Additional CSS classes to apply to the component
|
|
27
27
|
*/
|
|
28
|
-
class?: string;
|
|
28
|
+
class?: string | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* Gap between form elements (in Tailwind spacing scale)
|
|
31
31
|
*/
|
|
32
|
-
gap?: 0 | 1 | 2 |
|
|
32
|
+
gap?: 0 | 3 | 1 | 2 | 8 | 4 | 6 | undefined;
|
|
33
33
|
};
|
|
@@ -7,51 +7,51 @@ declare const SystemAlert: import("svelte").Component<{
|
|
|
7
7
|
/**
|
|
8
8
|
* Whether to automatically close the system alert after a duration
|
|
9
9
|
*/
|
|
10
|
-
autoClose?: boolean;
|
|
10
|
+
autoClose?: boolean | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Additional CSS classes to apply to the component
|
|
13
13
|
*/
|
|
14
|
-
class?: string;
|
|
14
|
+
class?: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Icon to display in the system alert
|
|
17
17
|
*/
|
|
18
|
-
icon?: string;
|
|
18
|
+
icon?: string | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Message to display in the system alert
|
|
21
21
|
*/
|
|
22
|
-
message?: string;
|
|
22
|
+
message?: string | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* Title to display in the system alert
|
|
25
25
|
*/
|
|
26
|
-
title?: string;
|
|
26
|
+
title?: string | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* System alert variant
|
|
29
29
|
*/
|
|
30
|
-
variant?: "
|
|
30
|
+
variant?: "error" | "success" | "warning" | "info" | undefined;
|
|
31
31
|
}, {}, "">;
|
|
32
32
|
type Props = {
|
|
33
33
|
/**
|
|
34
34
|
* Whether to automatically close the system alert after a duration
|
|
35
35
|
*/
|
|
36
|
-
autoClose?: boolean;
|
|
36
|
+
autoClose?: boolean | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Additional CSS classes to apply to the component
|
|
39
39
|
*/
|
|
40
|
-
class?: string;
|
|
40
|
+
class?: string | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* Icon to display in the system alert
|
|
43
43
|
*/
|
|
44
|
-
icon?: string;
|
|
44
|
+
icon?: string | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* Message to display in the system alert
|
|
47
47
|
*/
|
|
48
|
-
message?: string;
|
|
48
|
+
message?: string | undefined;
|
|
49
49
|
/**
|
|
50
50
|
* Title to display in the system alert
|
|
51
51
|
*/
|
|
52
|
-
title?: string;
|
|
52
|
+
title?: string | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* System alert variant
|
|
55
55
|
*/
|
|
56
|
-
variant?: "
|
|
56
|
+
variant?: "error" | "success" | "warning" | "info" | undefined;
|
|
57
57
|
};
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @typedef {Object} Props
|
|
7
|
+
* @property {import('svelte').Snippet} [children] Children content – can be text, HTML, or other Svelte components
|
|
7
8
|
* @property {string} [class=""] Additional CSS classes to apply to the component
|
|
8
9
|
* @property {number} [durationInSeconds=6] Duration in seconds before auto-close triggers
|
|
9
10
|
* @property {string} [message=""] Message to display in the toast
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
|
|
19
20
|
/** @type {Props} */
|
|
20
21
|
let {
|
|
22
|
+
children,
|
|
21
23
|
class: className = "",
|
|
22
24
|
durationInSeconds = 6,
|
|
23
25
|
message = "",
|
|
@@ -48,4 +50,5 @@
|
|
|
48
50
|
{/if}
|
|
49
51
|
</div>
|
|
50
52
|
<p class={styles.message()}>{message}</p>
|
|
53
|
+
{@render children?.()}
|
|
51
54
|
</div>
|
|
@@ -4,46 +4,54 @@ type Toast = {
|
|
|
4
4
|
$set?(props: Partial<Props>): void;
|
|
5
5
|
};
|
|
6
6
|
declare const Toast: import("svelte").Component<{
|
|
7
|
+
/**
|
|
8
|
+
* Children content – can be text, HTML, or other Svelte components
|
|
9
|
+
*/
|
|
10
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
7
11
|
/**
|
|
8
12
|
* Additional CSS classes to apply to the component
|
|
9
13
|
*/
|
|
10
|
-
class?: string;
|
|
14
|
+
class?: string | undefined;
|
|
11
15
|
/**
|
|
12
16
|
* Duration in seconds before auto-close triggers
|
|
13
17
|
*/
|
|
14
|
-
durationInSeconds?: number;
|
|
18
|
+
durationInSeconds?: number | undefined;
|
|
15
19
|
/**
|
|
16
20
|
* Message to display in the toast
|
|
17
21
|
*/
|
|
18
|
-
message?: string;
|
|
22
|
+
message?: string | undefined;
|
|
19
23
|
/**
|
|
20
24
|
* Function to call when the toast is auto-closed
|
|
21
25
|
*/
|
|
22
|
-
onClose?: (event: any) => void;
|
|
26
|
+
onClose?: ((event: any) => void) | undefined;
|
|
23
27
|
/**
|
|
24
28
|
* Toast variant
|
|
25
29
|
*/
|
|
26
|
-
variant?: "
|
|
30
|
+
variant?: "error" | "loading" | "info" | undefined;
|
|
27
31
|
}, {}, "">;
|
|
28
32
|
type Props = {
|
|
33
|
+
/**
|
|
34
|
+
* Children content – can be text, HTML, or other Svelte components
|
|
35
|
+
*/
|
|
36
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
29
37
|
/**
|
|
30
38
|
* Additional CSS classes to apply to the component
|
|
31
39
|
*/
|
|
32
|
-
class?: string;
|
|
40
|
+
class?: string | undefined;
|
|
33
41
|
/**
|
|
34
42
|
* Duration in seconds before auto-close triggers
|
|
35
43
|
*/
|
|
36
|
-
durationInSeconds?: number;
|
|
44
|
+
durationInSeconds?: number | undefined;
|
|
37
45
|
/**
|
|
38
46
|
* Message to display in the toast
|
|
39
47
|
*/
|
|
40
|
-
message?: string;
|
|
48
|
+
message?: string | undefined;
|
|
41
49
|
/**
|
|
42
50
|
* Function to call when the toast is auto-closed
|
|
43
51
|
*/
|
|
44
|
-
onClose?: (event: any) => void;
|
|
52
|
+
onClose?: ((event: any) => void) | undefined;
|
|
45
53
|
/**
|
|
46
54
|
* Toast variant
|
|
47
55
|
*/
|
|
48
|
-
variant?: "
|
|
56
|
+
variant?: "error" | "loading" | "info" | undefined;
|
|
49
57
|
};
|
|
@@ -2,7 +2,7 @@ import { tv } from "../../../../utils/tailwind.js";
|
|
|
2
2
|
|
|
3
3
|
const toastVariants = tv({
|
|
4
4
|
slots: {
|
|
5
|
-
base: "flex items-center gap-2 rounded-lg bg-neutral-900 px-4 py-2 text-neutral-200",
|
|
5
|
+
base: "dark flex items-center gap-2 rounded-lg bg-neutral-900 px-4 py-2 text-neutral-200",
|
|
6
6
|
icon: "grid size-6 place-items-center",
|
|
7
7
|
message: "ui-select-label font-medium",
|
|
8
8
|
},
|
|
@@ -7,51 +7,51 @@ declare const ColorSwatch: import("svelte").Component<{
|
|
|
7
7
|
/**
|
|
8
8
|
* The color items
|
|
9
9
|
*/
|
|
10
|
-
children?: string;
|
|
10
|
+
children?: string | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Additional CSS classes to apply to the component
|
|
13
13
|
*/
|
|
14
|
-
class?: string;
|
|
14
|
+
class?: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Selected color value (hex, rgb, etc.)
|
|
17
17
|
*/
|
|
18
|
-
selectedColor?: string;
|
|
18
|
+
selectedColor?: string | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* ColorSwatch size
|
|
21
21
|
*/
|
|
22
|
-
size?: "small" | "medium" | "large";
|
|
22
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* letter "A" for text -> "B" for background
|
|
25
25
|
*/
|
|
26
|
-
type?: "text" | "background";
|
|
26
|
+
type?: "text" | "background" | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* ColorSwatch style
|
|
29
29
|
*/
|
|
30
|
-
variant?: "filled" | "transparent";
|
|
30
|
+
variant?: "filled" | "transparent" | undefined;
|
|
31
31
|
}, {}, "isOpen">;
|
|
32
32
|
type Props = {
|
|
33
33
|
/**
|
|
34
34
|
* The color items
|
|
35
35
|
*/
|
|
36
|
-
children?: string;
|
|
36
|
+
children?: string | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Additional CSS classes to apply to the component
|
|
39
39
|
*/
|
|
40
|
-
class?: string;
|
|
40
|
+
class?: string | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* Selected color value (hex, rgb, etc.)
|
|
43
43
|
*/
|
|
44
|
-
selectedColor?: string;
|
|
44
|
+
selectedColor?: string | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* ColorSwatch size
|
|
47
47
|
*/
|
|
48
|
-
size?: "small" | "medium" | "large";
|
|
48
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
49
49
|
/**
|
|
50
50
|
* letter "A" for text -> "B" for background
|
|
51
51
|
*/
|
|
52
|
-
type?: "text" | "background";
|
|
52
|
+
type?: "text" | "background" | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* ColorSwatch style
|
|
55
55
|
*/
|
|
56
|
-
variant?: "filled" | "transparent";
|
|
56
|
+
variant?: "filled" | "transparent" | undefined;
|
|
57
57
|
};
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
parseHTML() {
|
|
70
70
|
return [
|
|
71
71
|
{ tag: "a[data-anchor]" },
|
|
72
|
-
{ tag: "a[data-
|
|
72
|
+
{ tag: "a[data-entity-type][data-entity-id]" },
|
|
73
73
|
{ tag: "a[href]" },
|
|
74
74
|
];
|
|
75
75
|
},
|
|
@@ -80,12 +80,21 @@
|
|
|
80
80
|
parseHTML: (el) => el.getAttribute("href"),
|
|
81
81
|
},
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
entityType: {
|
|
84
84
|
default: null,
|
|
85
|
-
parseHTML: (el) => el.getAttribute("data-
|
|
85
|
+
parseHTML: (el) => el.getAttribute("data-entity-type"),
|
|
86
86
|
renderHTML: (attrs) => {
|
|
87
|
-
if (!attrs.
|
|
88
|
-
return { "data-
|
|
87
|
+
if (!attrs.entityType) return {};
|
|
88
|
+
return { "data-entity-type": attrs.entityType };
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
entityId: {
|
|
93
|
+
default: null,
|
|
94
|
+
parseHTML: (el) => el.getAttribute("data-entity-id"),
|
|
95
|
+
renderHTML: (attrs) => {
|
|
96
|
+
if (!attrs.entityId) return {};
|
|
97
|
+
return { "data-entity-id": attrs.entityId };
|
|
89
98
|
},
|
|
90
99
|
},
|
|
91
100
|
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
|
|
25
25
|
const linkAttrs = {
|
|
26
26
|
anchor: attrs.anchor || null,
|
|
27
|
+
entityId: attrs.entityId || null,
|
|
28
|
+
entityType: attrs.entityType || null,
|
|
27
29
|
href: attrs.url || null,
|
|
28
30
|
openInNewWindow: !!attrs.openInNewWindow,
|
|
29
|
-
pageUuid: attrs.pageUuid || null,
|
|
30
31
|
title: attrs.title || null,
|
|
31
32
|
};
|
|
32
33
|
|