@websline/system-components 1.4.7 → 1.5.0

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.
Files changed (188) hide show
  1. package/dist/assets/fonts/borna-bold-webfont.woff +0 -0
  2. package/dist/assets/fonts/borna-bold-webfont.woff2 +0 -0
  3. package/dist/assets/fonts/borna-bolditalic-webfont.woff +0 -0
  4. package/dist/assets/fonts/borna-bolditalic-webfont.woff2 +0 -0
  5. package/dist/assets/fonts/borna-medium-webfont.woff +0 -0
  6. package/dist/assets/fonts/borna-medium-webfont.woff2 +0 -0
  7. package/dist/assets/fonts/borna-mediumitalic-webfont.woff +0 -0
  8. package/dist/assets/fonts/borna-mediumitalic-webfont.woff2 +0 -0
  9. package/dist/assets/fonts/borna-regular-webfont.woff +0 -0
  10. package/dist/assets/fonts/borna-regular-webfont.woff2 +0 -0
  11. package/dist/assets/fonts/borna-regularitalic-webfont.woff +0 -0
  12. package/dist/assets/fonts/borna-regularitalic-webfont.woff2 +0 -0
  13. package/dist/assets/fonts/borna-semibold-webfont.woff +0 -0
  14. package/dist/assets/fonts/borna-semibold-webfont.woff2 +0 -0
  15. package/dist/assets/fonts/borna-semibolditalic-webfont.woff +0 -0
  16. package/dist/assets/fonts/borna-semibolditalic-webfont.woff2 +0 -0
  17. package/dist/components/atoms/actions/button/Button.svelte.d.ts +24 -24
  18. package/dist/components/atoms/actions/closeButton/CloseButton.svelte.d.ts +10 -10
  19. package/dist/components/atoms/actions/iconButton/IconButton.svelte.d.ts +20 -20
  20. package/dist/components/atoms/avatar/Avatar.svelte.d.ts +14 -14
  21. package/dist/components/atoms/badge/Badge.svelte.d.ts +14 -14
  22. package/dist/components/atoms/checkbox/Checkbox.svelte.d.ts +16 -16
  23. package/dist/components/atoms/chip/Chip.svelte.d.ts +18 -18
  24. package/dist/components/atoms/colorChip/ColorChip.svelte.d.ts +14 -14
  25. package/dist/components/atoms/feedback/progressBar/ProgressBar.svelte.d.ts +8 -8
  26. package/dist/components/atoms/feedback/spinner/Spinner.svelte.d.ts +4 -4
  27. package/dist/components/atoms/helperText/HelperText.svelte.d.ts +6 -6
  28. package/dist/components/atoms/icon/components/Academy.svelte.d.ts +8 -8
  29. package/dist/components/atoms/icon/components/Add.svelte.d.ts +8 -8
  30. package/dist/components/atoms/icon/components/Ai.svelte.d.ts +8 -8
  31. package/dist/components/atoms/icon/components/AiStars.svelte.d.ts +6 -6
  32. package/dist/components/atoms/icon/components/AlignBottom.svelte.d.ts +8 -8
  33. package/dist/components/atoms/icon/components/AlignBottomOne.svelte.d.ts +8 -8
  34. package/dist/components/atoms/icon/components/AlignCenter.svelte.d.ts +8 -8
  35. package/dist/components/atoms/icon/components/AlignCenterOne.svelte.d.ts +8 -8
  36. package/dist/components/atoms/icon/components/AlignLeft.svelte.d.ts +8 -8
  37. package/dist/components/atoms/icon/components/AlignMiddle.svelte.d.ts +8 -8
  38. package/dist/components/atoms/icon/components/AlignMiddleOne.svelte.d.ts +8 -8
  39. package/dist/components/atoms/icon/components/AlignRight.svelte.d.ts +8 -8
  40. package/dist/components/atoms/icon/components/AlignRightOne.svelte.d.ts +8 -8
  41. package/dist/components/atoms/icon/components/AlignTop.svelte.d.ts +8 -8
  42. package/dist/components/atoms/icon/components/AlignTopOne.svelte.d.ts +8 -8
  43. package/dist/components/atoms/icon/components/ArrowDown.svelte.d.ts +8 -8
  44. package/dist/components/atoms/icon/components/ArrowUp.svelte.d.ts +8 -8
  45. package/dist/components/atoms/icon/components/Attach.svelte.d.ts +8 -8
  46. package/dist/components/atoms/icon/components/Bed.svelte.d.ts +8 -8
  47. package/dist/components/atoms/icon/components/Block.svelte.d.ts +8 -8
  48. package/dist/components/atoms/icon/components/Bold.svelte.d.ts +8 -8
  49. package/dist/components/atoms/icon/components/BoxIn.svelte.d.ts +8 -8
  50. package/dist/components/atoms/icon/components/BoxOut.svelte.d.ts +8 -8
  51. package/dist/components/atoms/icon/components/Calendar.svelte.d.ts +8 -8
  52. package/dist/components/atoms/icon/components/Check.svelte.d.ts +8 -8
  53. package/dist/components/atoms/icon/components/CheckboxStack.svelte.d.ts +8 -8
  54. package/dist/components/atoms/icon/components/ChevronDoubleLeft.svelte.d.ts +8 -8
  55. package/dist/components/atoms/icon/components/ChevronDoubleRight.svelte.d.ts +8 -8
  56. package/dist/components/atoms/icon/components/ChevronDown.svelte.d.ts +8 -8
  57. package/dist/components/atoms/icon/components/Clipboard.svelte.d.ts +8 -8
  58. package/dist/components/atoms/icon/components/Close.svelte.d.ts +8 -8
  59. package/dist/components/atoms/icon/components/CloseSmall.svelte.d.ts +8 -8
  60. package/dist/components/atoms/icon/components/Computer.svelte.d.ts +8 -8
  61. package/dist/components/atoms/icon/components/Connect.svelte.d.ts +8 -8
  62. package/dist/components/atoms/icon/components/ConnectCrossed.svelte.d.ts +8 -8
  63. package/dist/components/atoms/icon/components/ContactCard.svelte.d.ts +8 -8
  64. package/dist/components/atoms/icon/components/Controlling.svelte.d.ts +8 -8
  65. package/dist/components/atoms/icon/components/Coupons.svelte.d.ts +8 -8
  66. package/dist/components/atoms/icon/components/Crop.svelte.d.ts +8 -8
  67. package/dist/components/atoms/icon/components/Dashboard.svelte.d.ts +8 -8
  68. package/dist/components/atoms/icon/components/Database.svelte.d.ts +8 -8
  69. package/dist/components/atoms/icon/components/Download.svelte.d.ts +8 -8
  70. package/dist/components/atoms/icon/components/Dragger.svelte.d.ts +8 -8
  71. package/dist/components/atoms/icon/components/Envelope.svelte.d.ts +8 -8
  72. package/dist/components/atoms/icon/components/Envelopes.svelte.d.ts +8 -8
  73. package/dist/components/atoms/icon/components/Expand.svelte.d.ts +8 -8
  74. package/dist/components/atoms/icon/components/Eye.svelte.d.ts +8 -8
  75. package/dist/components/atoms/icon/components/EyeCrossed.svelte.d.ts +8 -8
  76. package/dist/components/atoms/icon/components/FilePDF.svelte.d.ts +8 -8
  77. package/dist/components/atoms/icon/components/Filter.svelte.d.ts +8 -8
  78. package/dist/components/atoms/icon/components/FocalPoint.svelte.d.ts +8 -8
  79. package/dist/components/atoms/icon/components/FolderPlus.svelte.d.ts +8 -8
  80. package/dist/components/atoms/icon/components/Food.svelte.d.ts +8 -8
  81. package/dist/components/atoms/icon/components/Funnel.svelte.d.ts +8 -8
  82. package/dist/components/atoms/icon/components/Globe.svelte.d.ts +8 -8
  83. package/dist/components/atoms/icon/components/History.svelte.d.ts +8 -8
  84. package/dist/components/atoms/icon/components/Hourglass.svelte.d.ts +8 -8
  85. package/dist/components/atoms/icon/components/Inbox.svelte.d.ts +8 -8
  86. package/dist/components/atoms/icon/components/Info.svelte.d.ts +8 -8
  87. package/dist/components/atoms/icon/components/Intergration.svelte.d.ts +8 -8
  88. package/dist/components/atoms/icon/components/Italic.svelte.d.ts +8 -8
  89. package/dist/components/atoms/icon/components/Layout.svelte.d.ts +8 -8
  90. package/dist/components/atoms/icon/components/Lightning.svelte +12 -12
  91. package/dist/components/atoms/icon/components/Lightning.svelte.d.ts +8 -8
  92. package/dist/components/atoms/icon/components/Link.svelte.d.ts +8 -8
  93. package/dist/components/atoms/icon/components/LinkAi.svelte.d.ts +8 -8
  94. package/dist/components/atoms/icon/components/ListOrdered.svelte.d.ts +8 -8
  95. package/dist/components/atoms/icon/components/ListTasks.svelte.d.ts +8 -8
  96. package/dist/components/atoms/icon/components/ListUnordered.svelte.d.ts +8 -8
  97. package/dist/components/atoms/icon/components/Lock.svelte.d.ts +8 -8
  98. package/dist/components/atoms/icon/components/Menu.svelte.d.ts +8 -8
  99. package/dist/components/atoms/icon/components/Minus.svelte.d.ts +8 -8
  100. package/dist/components/atoms/icon/components/Notifications.svelte.d.ts +8 -8
  101. package/dist/components/atoms/icon/components/Offer.svelte.d.ts +8 -8
  102. package/dist/components/atoms/icon/components/Out.svelte.d.ts +8 -8
  103. package/dist/components/atoms/icon/components/Overflow.svelte.d.ts +8 -8
  104. package/dist/components/atoms/icon/components/Page.svelte.d.ts +8 -8
  105. package/dist/components/atoms/icon/components/PageClock.svelte.d.ts +8 -8
  106. package/dist/components/atoms/icon/components/PageEdit.svelte.d.ts +8 -8
  107. package/dist/components/atoms/icon/components/PageLayout.svelte.d.ts +8 -8
  108. package/dist/components/atoms/icon/components/Pages.svelte.d.ts +8 -8
  109. package/dist/components/atoms/icon/components/Payment.svelte.d.ts +8 -8
  110. package/dist/components/atoms/icon/components/Pencil.svelte.d.ts +8 -8
  111. package/dist/components/atoms/icon/components/Phone.svelte.d.ts +8 -8
  112. package/dist/components/atoms/icon/components/Picture.svelte.d.ts +8 -8
  113. package/dist/components/atoms/icon/components/Print.svelte.d.ts +8 -8
  114. package/dist/components/atoms/icon/components/Redo.svelte.d.ts +8 -8
  115. package/dist/components/atoms/icon/components/Refresh.svelte.d.ts +8 -8
  116. package/dist/components/atoms/icon/components/RefreshCircle.svelte.d.ts +8 -8
  117. package/dist/components/atoms/icon/components/Replace.svelte.d.ts +8 -8
  118. package/dist/components/atoms/icon/components/Report.svelte.d.ts +8 -8
  119. package/dist/components/atoms/icon/components/Resource.svelte.d.ts +8 -8
  120. package/dist/components/atoms/icon/components/SEO.svelte.d.ts +8 -8
  121. package/dist/components/atoms/icon/components/Search.svelte.d.ts +8 -8
  122. package/dist/components/atoms/icon/components/Settings.svelte.d.ts +8 -8
  123. package/dist/components/atoms/icon/components/Shop.svelte.d.ts +8 -8
  124. package/dist/components/atoms/icon/components/Smartphone.svelte.d.ts +8 -8
  125. package/dist/components/atoms/icon/components/Sort.svelte.d.ts +8 -8
  126. package/dist/components/atoms/icon/components/SpacingL.svelte.d.ts +8 -8
  127. package/dist/components/atoms/icon/components/SpacingM.svelte.d.ts +8 -8
  128. package/dist/components/atoms/icon/components/SpacingNone.svelte.d.ts +8 -8
  129. package/dist/components/atoms/icon/components/SpacingS.svelte.d.ts +8 -8
  130. package/dist/components/atoms/icon/components/SpacingXL.svelte.d.ts +8 -8
  131. package/dist/components/atoms/icon/components/Star.svelte.d.ts +8 -8
  132. package/dist/components/atoms/icon/components/StyleGuide.svelte.d.ts +8 -8
  133. package/dist/components/atoms/icon/components/Tablet.svelte.d.ts +8 -8
  134. package/dist/components/atoms/icon/components/Translate.svelte.d.ts +8 -8
  135. package/dist/components/atoms/icon/components/TranslateCrossed.svelte.d.ts +8 -8
  136. package/dist/components/atoms/icon/components/Trash.svelte.d.ts +8 -8
  137. package/dist/components/atoms/icon/components/Underline.svelte.d.ts +8 -8
  138. package/dist/components/atoms/icon/components/Undo.svelte.d.ts +8 -8
  139. package/dist/components/atoms/icon/components/WebslineSupport.svelte.d.ts +8 -8
  140. package/dist/components/atoms/icon/components/Width.svelte.d.ts +8 -8
  141. package/dist/components/atoms/input/Input.svelte.d.ts +27 -26
  142. package/dist/components/atoms/label/Label.svelte.d.ts +10 -10
  143. package/dist/components/atoms/radio/Radio.svelte.d.ts +16 -16
  144. package/dist/components/atoms/select/Select.svelte.d.ts +25 -24
  145. package/dist/components/atoms/switch/Switch.svelte.d.ts +16 -16
  146. package/dist/components/atoms/tag/Tag.svelte.d.ts +16 -16
  147. package/dist/components/atoms/textarea/Textarea.svelte.d.ts +20 -20
  148. package/dist/components/atoms/utils/xScroll/XScroll.svelte.d.ts +4 -4
  149. package/dist/components/molecules/calendar/Calendar.svelte.d.ts +8 -8
  150. package/dist/components/molecules/calendar/Container.svelte.d.ts +4 -4
  151. package/dist/components/molecules/calendar/Weekdays.svelte.d.ts +2 -2
  152. package/dist/components/molecules/calendar/calendar.variant.d.ts +6 -6
  153. package/dist/components/molecules/comboBox/ComboBox.svelte.d.ts +22 -22
  154. package/dist/components/molecules/formActions/FormActions.svelte.d.ts +8 -8
  155. package/dist/components/molecules/formField/FormField.svelte.d.ts +20 -20
  156. package/dist/components/molecules/formLayout/FormLayout.svelte.d.ts +6 -6
  157. package/dist/components/molecules/notifications/systemAlert/SystemAlert.svelte.d.ts +12 -12
  158. package/dist/components/molecules/notifications/toast/Toast.svelte.d.ts +10 -10
  159. package/dist/components/molecules/pickers/colorSwatch/ColorSwatch.svelte.d.ts +12 -12
  160. package/dist/components/molecules/richTextEditor/RichTextEditor.svelte +19 -7
  161. package/dist/components/molecules/richTextEditor/RichTextEditor.svelte.d.ts +4 -0
  162. package/dist/components/molecules/richTextEditor/richTextEditor.variants.d.ts +18 -0
  163. package/dist/components/molecules/richTextEditor/richTextEditor.variants.js +9 -3
  164. package/dist/components/molecules/richTextEditor/toolbar/ToolbarLink.svelte +2 -1
  165. package/dist/components/molecules/selectorCard/SelectorCard.svelte.d.ts +24 -24
  166. package/dist/components/molecules/tagSelector/TagSelector.svelte.d.ts +22 -22
  167. package/dist/components/molecules/toggleGroup/ToggleGroup.svelte.d.ts +18 -18
  168. package/dist/components/molecules/toggleGroup/ToggleGroupItem.svelte.d.ts +8 -8
  169. package/dist/components/organisms/dialog/Dialog.svelte.d.ts +6 -6
  170. package/dist/components/organisms/dialog/DialogAction.svelte.d.ts +6 -6
  171. package/dist/components/organisms/dialog/DialogActions.svelte.d.ts +4 -4
  172. package/dist/components/organisms/dialog/DialogBody.svelte.d.ts +4 -4
  173. package/dist/components/organisms/dialog/DialogContent.svelte.d.ts +12 -12
  174. package/dist/components/organisms/dialog/DialogTrigger.svelte.d.ts +2 -2
  175. package/dist/components/organisms/modal/Modal.svelte.d.ts +6 -6
  176. package/dist/components/organisms/modal/ModalBody.svelte.d.ts +6 -6
  177. package/dist/components/organisms/modal/ModalContent.svelte.d.ts +12 -12
  178. package/dist/components/organisms/modal/ModalHeader.svelte.d.ts +6 -6
  179. package/dist/components/organisms/modal/ModalTrigger.svelte.d.ts +2 -2
  180. package/dist/components/organisms/notificationGroup/NotificationGroup.svelte.d.ts +2 -2
  181. package/dist/components/organisms/popover/Popover.svelte.d.ts +2 -2
  182. package/dist/components/organisms/popover/PopoverContent.svelte.d.ts +22 -22
  183. package/dist/components/organisms/popover/PopoverTrigger.svelte.d.ts +2 -2
  184. package/dist/components/organisms/tooltip/Content.svelte.d.ts +12 -12
  185. package/dist/components/organisms/tooltip/Tooltip.svelte.d.ts +2 -2
  186. package/dist/components/organisms/tooltip/Trigger.svelte.d.ts +2 -2
  187. package/dist/utils/theme.svelte.d.ts +2 -2
  188. package/package.json +99 -108
@@ -3,17 +3,17 @@ export const calendarVariants: import("tailwind-variants").TVReturnType<{
3
3
  [key: string]: import("tailwind-variants").ClassValue | {
4
4
  heading?: import("tailwind-variants").ClassValue;
5
5
  base?: import("tailwind-variants").ClassValue;
6
- dateCell?: import("tailwind-variants").ClassValue;
7
- dateDay?: import("tailwind-variants").ClassValue;
8
6
  grid?: import("tailwind-variants").ClassValue;
9
7
  gridHead?: import("tailwind-variants").ClassValue;
10
8
  gridHeadCell?: import("tailwind-variants").ClassValue;
11
9
  gridRow?: import("tailwind-variants").ClassValue;
12
10
  gridWrapper?: import("tailwind-variants").ClassValue;
13
11
  header?: import("tailwind-variants").ClassValue;
14
- headerBtn?: import("tailwind-variants").ClassValue;
15
12
  rangeBg?: import("tailwind-variants").ClassValue;
16
13
  rangeWrapper?: import("tailwind-variants").ClassValue;
14
+ dateCell?: import("tailwind-variants").ClassValue;
15
+ dateDay?: import("tailwind-variants").ClassValue;
16
+ headerBtn?: import("tailwind-variants").ClassValue;
17
17
  };
18
18
  };
19
19
  } | {
@@ -21,17 +21,17 @@ export const calendarVariants: import("tailwind-variants").TVReturnType<{
21
21
  [x: string]: import("tailwind-variants").ClassValue | {
22
22
  heading?: import("tailwind-variants").ClassValue;
23
23
  base?: import("tailwind-variants").ClassValue;
24
- dateCell?: import("tailwind-variants").ClassValue;
25
- dateDay?: import("tailwind-variants").ClassValue;
26
24
  grid?: import("tailwind-variants").ClassValue;
27
25
  gridHead?: import("tailwind-variants").ClassValue;
28
26
  gridHeadCell?: import("tailwind-variants").ClassValue;
29
27
  gridRow?: import("tailwind-variants").ClassValue;
30
28
  gridWrapper?: import("tailwind-variants").ClassValue;
31
29
  header?: import("tailwind-variants").ClassValue;
32
- headerBtn?: import("tailwind-variants").ClassValue;
33
30
  rangeBg?: import("tailwind-variants").ClassValue;
34
31
  rangeWrapper?: import("tailwind-variants").ClassValue;
32
+ dateCell?: import("tailwind-variants").ClassValue;
33
+ dateDay?: import("tailwind-variants").ClassValue;
34
+ headerBtn?: import("tailwind-variants").ClassValue;
35
35
  };
36
36
  };
37
37
  }, {
@@ -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?: Array<{
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?: Array<string | number>;
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?: Array<{
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?: Array<string | number>;
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?: "stacked" | "inline" | "checkable";
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?: "stacked" | "inline" | "checkable";
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 | 3 | 4 | 6 | 8;
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 | 3 | 4 | 6 | 8;
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?: "info" | "success" | "warning" | "error";
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?: "info" | "success" | "warning" | "error";
56
+ variant?: "error" | "success" | "warning" | "info" | undefined;
57
57
  };
@@ -7,43 +7,43 @@ declare const Toast: import("svelte").Component<{
7
7
  /**
8
8
  * Additional CSS classes to apply to the component
9
9
  */
10
- class?: string;
10
+ class?: string | undefined;
11
11
  /**
12
12
  * Duration in seconds before auto-close triggers
13
13
  */
14
- durationInSeconds?: number;
14
+ durationInSeconds?: number | undefined;
15
15
  /**
16
16
  * Message to display in the toast
17
17
  */
18
- message?: string;
18
+ message?: string | undefined;
19
19
  /**
20
20
  * Function to call when the toast is auto-closed
21
21
  */
22
- onClose?: (event: any) => void;
22
+ onClose?: ((event: any) => void) | undefined;
23
23
  /**
24
24
  * Toast variant
25
25
  */
26
- variant?: "info" | "loading" | "error";
26
+ variant?: "error" | "loading" | "info" | undefined;
27
27
  }, {}, "">;
28
28
  type Props = {
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
  * Duration in seconds before auto-close triggers
35
35
  */
36
- durationInSeconds?: number;
36
+ durationInSeconds?: number | undefined;
37
37
  /**
38
38
  * Message to display in the toast
39
39
  */
40
- message?: string;
40
+ message?: string | undefined;
41
41
  /**
42
42
  * Function to call when the toast is auto-closed
43
43
  */
44
- onClose?: (event: any) => void;
44
+ onClose?: ((event: any) => void) | undefined;
45
45
  /**
46
46
  * Toast variant
47
47
  */
48
- variant?: "info" | "loading" | "error";
48
+ variant?: "error" | "loading" | "info" | undefined;
49
49
  };
@@ -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
  };
@@ -8,8 +8,10 @@
8
8
  content = "",
9
9
  fieldName = "",
10
10
  hideToolbar = false,
11
+ initialFocus = true,
11
12
  oninput,
12
13
  placeholder = "",
14
+ readonly = false,
13
15
  size = "medium",
14
16
  toolbarConfig = {
15
17
  bold: {
@@ -48,7 +50,7 @@
48
50
  let htmlInputValue = $state();
49
51
  let isContentPropUpdate = false;
50
52
 
51
- let styles = $derived(richTextEditorVariants({ hideToolbar, size }));
53
+ let styles = $derived(richTextEditorVariants({ hideToolbar, readonly, size }));
52
54
 
53
55
  setContext("richt-text-editor", () => editor);
54
56
 
@@ -67,7 +69,7 @@
67
69
  parseHTML() {
68
70
  return [
69
71
  { tag: "a[data-anchor]" },
70
- { tag: "a[data-page-uuid]" },
72
+ { tag: "a[data-entity-type][data-entity-id]" },
71
73
  { tag: "a[href]" },
72
74
  ];
73
75
  },
@@ -78,12 +80,21 @@
78
80
  parseHTML: (el) => el.getAttribute("href"),
79
81
  },
80
82
 
81
- pageUuid: {
83
+ entityType: {
82
84
  default: null,
83
- parseHTML: (el) => el.getAttribute("data-page-uuid"),
85
+ parseHTML: (el) => el.getAttribute("data-entity-type"),
84
86
  renderHTML: (attrs) => {
85
- if (!attrs.pageUuid) return {};
86
- return { "data-page-uuid": attrs.pageUuid };
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 };
87
98
  },
88
99
  },
89
100
 
@@ -132,6 +143,7 @@
132
143
  });
133
144
 
134
145
  editor = new Editor({
146
+ editable: !readonly,
135
147
  element: element,
136
148
  extensions: [
137
149
  StarterKit.configure({
@@ -183,7 +195,7 @@
183
195
  },
184
196
  });
185
197
 
186
- editor.commands.focus("end");
198
+ !readonly && initialFocus && editor.commands.focus("end");
187
199
  };
188
200
 
189
201
  $effect(() => {
@@ -8,8 +8,10 @@ declare const RichTextEditor: import("svelte").Component<{
8
8
  content?: string;
9
9
  fieldName?: string;
10
10
  hideToolbar?: boolean;
11
+ initialFocus?: boolean;
11
12
  oninput: any;
12
13
  placeholder?: string;
14
+ readonly?: boolean;
13
15
  size?: string;
14
16
  toolbarConfig?: Record<string, any>;
15
17
  } & Record<string, any>, {}, "">;
@@ -18,8 +20,10 @@ type $$ComponentProps = {
18
20
  content?: string;
19
21
  fieldName?: string;
20
22
  hideToolbar?: boolean;
23
+ initialFocus?: boolean;
21
24
  oninput: any;
22
25
  placeholder?: string;
26
+ readonly?: boolean;
23
27
  size?: string;
24
28
  toolbarConfig?: Record<string, any>;
25
29
  } & Record<string, any>;
@@ -4,6 +4,12 @@ export const richTextEditorVariants: import("tailwind-variants").TVReturnType<{
4
4
  field: string;
5
5
  };
6
6
  };
7
+ readonly: {
8
+ true: {
9
+ base: string;
10
+ toolbar: string;
11
+ };
12
+ };
7
13
  size: {
8
14
  small: {
9
15
  field: string;
@@ -25,6 +31,12 @@ export const richTextEditorVariants: import("tailwind-variants").TVReturnType<{
25
31
  field: string;
26
32
  };
27
33
  };
34
+ readonly: {
35
+ true: {
36
+ base: string;
37
+ toolbar: string;
38
+ };
39
+ };
28
40
  size: {
29
41
  small: {
30
42
  field: string;
@@ -46,6 +58,12 @@ export const richTextEditorVariants: import("tailwind-variants").TVReturnType<{
46
58
  field: string;
47
59
  };
48
60
  };
61
+ readonly: {
62
+ true: {
63
+ base: string;
64
+ toolbar: string;
65
+ };
66
+ };
49
67
  size: {
50
68
  small: {
51
69
  field: string;
@@ -4,10 +4,10 @@ const richTextEditorVariants = tv({
4
4
  slots: {
5
5
  base: "body-small text-neutral-800 dark:text-white",
6
6
  toolbar:
7
- "pointer flex gap-0.5 rounded-t-sm border border-b-0 border-neutral-300 px-5 py-2 dark:border-neutral-700",
7
+ "pointer flex gap-0.5 rounded-t-lg border border-b-0 border-neutral-300 px-5 py-2 dark:border-neutral-700",
8
8
  field: [
9
9
  "[&>div]:transition-[border] [&>div]:duration-300",
10
- "[&>div]:rounded-b-sm [&>div]:border [&>div]:border-neutral-300 [&>div]:outline-none dark:[&>div]:border-neutral-700",
10
+ "[&>div]:rounded-b-lg [&>div]:border [&>div]:border-neutral-300 [&>div]:outline-none dark:[&>div]:border-neutral-700",
11
11
  "[&>div]:h-full [&>div]:overflow-auto [&>div]:p-5",
12
12
  "[&>div>p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]",
13
13
  "[&>div>p.is-editor-empty:first-child::before]:float-left",
@@ -22,7 +22,13 @@ const richTextEditorVariants = tv({
22
22
  variants: {
23
23
  hideToolbar: {
24
24
  true: {
25
- field: "[&>div]:rounded-t-sm",
25
+ field: "[&>div]:rounded-t-lg",
26
+ },
27
+ },
28
+ readonly: {
29
+ true: {
30
+ base: "cursor-not-allowed",
31
+ toolbar: "pointer-events-none *:opacity-40",
26
32
  },
27
33
  },
28
34
  size: {