@sveltia/ui 0.15.16 → 0.17.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 (157) hide show
  1. package/package/components/alert/alert.svelte +22 -7
  2. package/package/components/alert/alert.svelte.d.ts +47 -31
  3. package/package/components/button/button-group.svelte +16 -6
  4. package/package/components/button/button-group.svelte.d.ts +38 -28
  5. package/package/components/button/button.svelte +41 -136
  6. package/package/components/button/button.svelte.d.ts +20 -162
  7. package/package/components/button/select-button-group.svelte +31 -37
  8. package/package/components/button/select-button-group.svelte.d.ts +91 -39
  9. package/package/components/button/select-button.svelte +19 -62
  10. package/package/components/button/select-button.svelte.d.ts +31 -65
  11. package/package/components/button/split-button.svelte +37 -47
  12. package/package/components/button/split-button.svelte.d.ts +54 -60
  13. package/package/components/calendar/calendar.svelte +80 -55
  14. package/package/components/calendar/calendar.svelte.d.ts +30 -26
  15. package/package/components/checkbox/checkbox-group.svelte +23 -20
  16. package/package/components/checkbox/checkbox-group.svelte.d.ts +64 -32
  17. package/package/components/checkbox/checkbox.svelte +57 -67
  18. package/package/components/checkbox/checkbox.svelte.d.ts +81 -53
  19. package/package/components/dialog/alert-dialog.svelte +9 -36
  20. package/package/components/dialog/alert-dialog.svelte.d.ts +20 -49
  21. package/package/components/dialog/confirmation-dialog.svelte +9 -41
  22. package/package/components/dialog/confirmation-dialog.svelte.d.ts +20 -51
  23. package/package/components/dialog/dialog.svelte +60 -105
  24. package/package/components/dialog/dialog.svelte.d.ts +19 -86
  25. package/package/components/dialog/prompt-dialog.svelte +32 -61
  26. package/package/components/dialog/prompt-dialog.svelte.d.ts +53 -65
  27. package/package/components/disclosure/disclosure.svelte +39 -34
  28. package/package/components/disclosure/disclosure.svelte.d.ts +88 -57
  29. package/package/components/divider/divider.svelte +18 -14
  30. package/package/components/divider/divider.svelte.d.ts +48 -26
  31. package/package/components/divider/spacer.svelte +13 -8
  32. package/package/components/divider/spacer.svelte.d.ts +37 -25
  33. package/package/components/drawer/drawer.svelte +63 -76
  34. package/package/components/drawer/drawer.svelte.d.ts +116 -70
  35. package/package/components/grid/grid-body.svelte +15 -10
  36. package/package/components/grid/grid-body.svelte.d.ts +45 -29
  37. package/package/components/grid/grid-cell.svelte +16 -6
  38. package/package/components/grid/grid-cell.svelte.d.ts +38 -28
  39. package/package/components/grid/grid-col-header.svelte +16 -6
  40. package/package/components/grid/grid-col-header.svelte.d.ts +38 -28
  41. package/package/components/grid/grid-foot.svelte +16 -6
  42. package/package/components/grid/grid-foot.svelte.d.ts +38 -28
  43. package/package/components/grid/grid-head.svelte +16 -6
  44. package/package/components/grid/grid-head.svelte.d.ts +38 -28
  45. package/package/components/grid/grid-row-header.svelte +16 -6
  46. package/package/components/grid/grid-row-header.svelte.d.ts +38 -28
  47. package/package/components/grid/grid-row.svelte +19 -23
  48. package/package/components/grid/grid-row.svelte.d.ts +63 -43
  49. package/package/components/grid/grid.svelte +26 -25
  50. package/package/components/grid/grid.svelte.d.ts +71 -37
  51. package/package/components/icon/icon.svelte +14 -9
  52. package/package/components/icon/icon.svelte.d.ts +37 -25
  53. package/package/components/listbox/listbox.svelte +46 -52
  54. package/package/components/listbox/listbox.svelte.d.ts +117 -45
  55. package/package/components/listbox/option-group.svelte +23 -19
  56. package/package/components/listbox/option-group.svelte.d.ts +64 -32
  57. package/package/components/listbox/option.svelte +44 -57
  58. package/package/components/listbox/option.svelte.d.ts +68 -74
  59. package/package/components/menu/menu-button.svelte +42 -63
  60. package/package/components/menu/menu-button.svelte.d.ts +35 -62
  61. package/package/components/menu/menu-item-checkbox.svelte +29 -41
  62. package/package/components/menu/menu-item-checkbox.svelte.d.ts +20 -49
  63. package/package/components/menu/menu-item-group.svelte +22 -19
  64. package/package/components/menu/menu-item-group.svelte.d.ts +56 -32
  65. package/package/components/menu/menu-item-radio.svelte +29 -41
  66. package/package/components/menu/menu-item-radio.svelte.d.ts +20 -49
  67. package/package/components/menu/menu-item.svelte +66 -75
  68. package/package/components/menu/menu-item.svelte.d.ts +19 -68
  69. package/package/components/menu/menu.svelte +25 -22
  70. package/package/components/menu/menu.svelte.d.ts +65 -35
  71. package/package/components/radio/radio-group.svelte +36 -42
  72. package/package/components/radio/radio-group.svelte.d.ts +100 -40
  73. package/package/components/radio/radio.svelte +45 -48
  74. package/package/components/radio/radio.svelte.d.ts +111 -47
  75. package/package/components/select/combobox.svelte +76 -101
  76. package/package/components/select/combobox.svelte.d.ts +19 -54
  77. package/package/components/select/select-tags.svelte +48 -59
  78. package/package/components/select/select-tags.svelte.d.ts +127 -45
  79. package/package/components/select/select.svelte +18 -37
  80. package/package/components/select/select.svelte.d.ts +20 -45
  81. package/package/components/slider/slider.svelte +71 -68
  82. package/package/components/slider/slider.svelte.d.ts +159 -47
  83. package/package/components/switch/switch.svelte +36 -46
  84. package/package/components/switch/switch.svelte.d.ts +98 -42
  85. package/package/components/table/table-body.svelte +15 -11
  86. package/package/components/table/table-body.svelte.d.ts +45 -29
  87. package/package/components/table/table-cell.svelte +16 -6
  88. package/package/components/table/table-cell.svelte.d.ts +38 -28
  89. package/package/components/table/table-col-header.svelte +16 -6
  90. package/package/components/table/table-col-header.svelte.d.ts +38 -28
  91. package/package/components/table/table-foot.svelte +16 -6
  92. package/package/components/table/table-foot.svelte.d.ts +38 -28
  93. package/package/components/table/table-head.svelte +16 -6
  94. package/package/components/table/table-head.svelte.d.ts +38 -28
  95. package/package/components/table/table-row-header.svelte +16 -6
  96. package/package/components/table/table-row-header.svelte.d.ts +38 -28
  97. package/package/components/table/table-row.svelte +16 -6
  98. package/package/components/table/table-row.svelte.d.ts +38 -28
  99. package/package/components/table/table.svelte +16 -6
  100. package/package/components/table/table.svelte.d.ts +38 -28
  101. package/package/components/tabs/tab-box.svelte +16 -9
  102. package/package/components/tabs/tab-box.svelte.d.ts +47 -27
  103. package/package/components/tabs/tab-list.svelte +36 -35
  104. package/package/components/tabs/tab-list.svelte.d.ts +80 -38
  105. package/package/components/tabs/tab-panel.svelte +16 -6
  106. package/package/components/tabs/tab-panel.svelte.d.ts +38 -28
  107. package/package/components/tabs/tab-panels.svelte +16 -6
  108. package/package/components/tabs/tab-panels.svelte.d.ts +38 -26
  109. package/package/components/tabs/tab.svelte +28 -25
  110. package/package/components/tabs/tab.svelte.d.ts +31 -55
  111. package/package/components/text-editor/lexical-root.svelte +38 -32
  112. package/package/components/text-editor/lexical-root.svelte.d.ts +91 -29
  113. package/package/components/text-editor/text-editor.svelte +63 -79
  114. package/package/components/text-editor/text-editor.svelte.d.ts +114 -36
  115. package/package/components/text-editor/toolbar/editor-toolbar.svelte +41 -24
  116. package/package/components/text-editor/toolbar/editor-toolbar.svelte.d.ts +49 -23
  117. package/package/components/text-editor/toolbar/format-text-button.svelte +15 -5
  118. package/package/components/text-editor/toolbar/format-text-button.svelte.d.ts +30 -22
  119. package/package/components/text-editor/toolbar/insert-link-button.svelte +18 -16
  120. package/package/components/text-editor/toolbar/insert-link-button.svelte.d.ts +20 -23
  121. package/package/components/text-editor/toolbar/toggle-block-menu-item.svelte +19 -7
  122. package/package/components/text-editor/toolbar/toggle-block-menu-item.svelte.d.ts +30 -22
  123. package/package/components/text-field/number-input.svelte +63 -81
  124. package/package/components/text-field/number-input.svelte.d.ts +62 -68
  125. package/package/components/text-field/password-input.svelte +38 -57
  126. package/package/components/text-field/password-input.svelte.d.ts +30 -58
  127. package/package/components/text-field/search-bar.svelte +45 -62
  128. package/package/components/text-field/search-bar.svelte.d.ts +42 -87
  129. package/package/components/text-field/text-area.svelte +38 -54
  130. package/package/components/text-field/text-area.svelte.d.ts +116 -50
  131. package/package/components/text-field/text-input.svelte +30 -86
  132. package/package/components/text-field/text-input.svelte.d.ts +20 -105
  133. package/package/components/toast/toast.svelte +36 -30
  134. package/package/components/toast/toast.svelte.d.ts +65 -33
  135. package/package/components/toolbar/toolbar.svelte +25 -25
  136. package/package/components/toolbar/toolbar.svelte.d.ts +72 -34
  137. package/package/components/util/app-shell.svelte +22 -10
  138. package/package/components/util/app-shell.svelte.d.ts +40 -34
  139. package/package/components/util/group.svelte +20 -15
  140. package/package/components/util/group.svelte.d.ts +55 -31
  141. package/package/components/util/modal.svelte +89 -105
  142. package/package/components/util/modal.svelte.d.ts +24 -82
  143. package/package/components/util/placeholder.svelte +21 -0
  144. package/package/components/util/placeholder.svelte.d.ts +34 -0
  145. package/package/components/util/popup.svelte +65 -62
  146. package/package/components/util/popup.svelte.d.ts +104 -82
  147. package/package/services/{group.js → group.svelte.js} +11 -12
  148. package/package/services/{popup.js → popup.svelte.js} +6 -5
  149. package/package/typedefs.d.ts +545 -0
  150. package/package/typedefs.js +202 -0
  151. package/package.json +16 -23
  152. package/package/components/util/portal.svelte +0 -36
  153. package/package/components/util/portal.svelte.d.ts +0 -32
  154. /package/package/services/{events.d.ts → events.svelte.d.ts} +0 -0
  155. /package/package/services/{events.js → events.svelte.js} +0 -0
  156. /package/package/services/{group.d.ts → group.svelte.d.ts} +0 -0
  157. /package/package/services/{popup.d.ts → popup.svelte.d.ts} +0 -0
@@ -1,3 +1,205 @@
1
+ /**
2
+ * @typedef {object} ButtonProps
3
+ * @property {HTMLButtonElement | undefined} [element] - Reference to the `<button>` element.
4
+ * @property {string} [class] - The `class` attribute on the `<button>` element.
5
+ * @property {'button' | 'submit' | 'reset'} [type] - The `type` attribute on the `<button>`
6
+ * element.
7
+ * @property {string} [role] - The `role` attribute on the `<button>` element.
8
+ * @property {string | undefined} [name] - The `name` attribute on the `<button>` element.
9
+ * @property {string | undefined} [value] - The `value` attribute on the `<button>` element.
10
+ * @property {boolean} [hidden] - Whether to hide the widget. An alias of the `aria-hidden`
11
+ * attribute.
12
+ * @property {boolean} [disabled] - Whether to disable the widget. An alias of the `aria-disabled`
13
+ * attribute.
14
+ * @property {boolean} [readonly] - Whether to make the widget read-only. An alias of the
15
+ * `aria-readonly` attribute used in certain roles, including `checkbox`, `listbox`, `slider` and
16
+ * `textbox`.
17
+ * @property {boolean | 'mixed' | undefined} [pressed] - Whether to mark the widget pressed. An
18
+ * alias of the `aria-pressed` attribute.
19
+ * @property {string | undefined} [keyShortcuts] - Keyboard shortcuts. An alias of the
20
+ * `aria-keyshortcuts` attribute. Accepts the special `Accel` key, which will be replaced with
21
+ * `Control` or `Meta` depending on the user’s operating system.
22
+ * @property {string} [label] - Text label displayed on the button.
23
+ * @property {'primary' | 'secondary' | 'tertiary' | 'ghost' | 'link' | undefined} [variant] - The
24
+ * style variant of the button.
25
+ * @property {'small' | 'medium' | 'large' | undefined} [size] - The size of the button.
26
+ * @property {boolean} [iconic] - Whether to only show an icon on the button and trim the padding.
27
+ * @property {boolean} [pill] - Whether to make the button rounded.
28
+ * @property {boolean} [flex] - Make the button width flexible.
29
+ * @property {PopupPosition} [popupPosition] - Where to show the dropdown menu.
30
+ * @property {boolean} [showPopupBackdrop] - Whether to show the backdrop for the popup.
31
+ * @property {import('svelte').Snippet} [children] - Primary slot content.
32
+ * @property {import('svelte').Snippet} [startIcon] - Start icon slot content.
33
+ * @property {import('svelte').Snippet} [endIcon] - End icon slot content.
34
+ * @property {import('svelte').Snippet} [popup] - Popup slot content.
35
+ * @property {(event: CustomEvent) => void} [onChange] - Custom `Change` event handler.
36
+ * @property {(event: CustomEvent) => void} [onSelect] - Custom `Select` event handler.
37
+ * @property {(event: CustomEvent) => void} [onToggle] - Custom `Toggle` event handler.
38
+ */
39
+
40
+ /**
41
+ * @typedef {object} ModalProps
42
+ * @property {string} [class] - The `class` attribute on the content element.
43
+ * @property {'dialog' | 'alertdialog' | 'none'} [role] - The `role` attribute on the `<dialog>`
44
+ * element.
45
+ * @property {boolean} [open] - Whether to show the modal.
46
+ * @property {boolean} [showBackdrop] - Whether to show the backdrop.
47
+ * @property {boolean} [lightDismiss] - Whether to close the modal when the backdrop (outside of
48
+ * the modal) is clicked.
49
+ * @property {boolean} [escapeDismiss] - Whether to close the modal when the Escape key is pressed.
50
+ * @property {boolean} [keepContent] - Whether to keep the content in the DOM tree when the modal is
51
+ * not displayed.
52
+ * @property {HTMLDialogElement | undefined} [dialog] - A reference to the `<dialog>` element.
53
+ * @property {import('svelte').Snippet} [children] - Primary slot content.
54
+ * @property {import('svelte').Snippet} [extraContent] - Extra slot content.
55
+ * @property {(event: CustomEvent) => void} [onOpening] - Custom `Opening` event handler.
56
+ * @property {(event: CustomEvent) => void} [onOpen] - Custom `Open` event handler.
57
+ * @property {(event: CustomEvent) => void} [onOk] - Custom `Ok` event handler.
58
+ * @property {(event: CustomEvent) => void} [onCancel] - Custom `Cancel` event handler.
59
+ * @property {(event: CustomEvent) => void} [onClosing] - Custom `Closing` event handler.
60
+ * @property {(event: CustomEvent) => void} [onClose] - Custom `Close` event handler.
61
+ */
62
+
63
+ /**
64
+ * @typedef {object} DialogProps
65
+ * @property {string} [title] - Text label displayed on the header. Required.
66
+ * @property {'dialog' | 'alertdialog'} [role] - The `role` attribute on the `<dialog>` element.
67
+ * @property {'small' | 'medium' | 'large' | 'x-large'} [size] - Width of the dialog.
68
+ * @property {string} [class] - The `class` attribute on the `<dialog>` element.
69
+ * @property {boolean} [open] - Whether to open the dialog.
70
+ * @property {boolean} [showClose] - Whether to show the Close button on the header.
71
+ * @property {boolean} [showOk] - Whether to show the OK button on the footer.
72
+ * @property {boolean} [showCancel] - Whether to show the Cancel button on the footer.
73
+ * @property {string} [okLabel] - Text label displayed on the OK button.
74
+ * @property {boolean} [okDisabled] - Whether to disable the OK button.
75
+ * @property {string} [cancelLabel] - Text label displayed on the Cancel button.
76
+ * @property {boolean} [cancelDisabled] - Whether to disable the Cancel button.
77
+ * @property {boolean} [lightDismiss] - Whether to close the modal when the backdrop (outside of the
78
+ * modal) is clicked.
79
+ * @property {string} [value] - Value entered on the textbox.
80
+ * @property {import('svelte').Snippet} [children] - Primary slot content.
81
+ * @property {import('svelte').Snippet} [header] - Header slot content.
82
+ * @property {import('svelte').Snippet} [headerExtra] - Header extra slot content.
83
+ * @property {import('svelte').Snippet} [footer] - Footer slot content.
84
+ * @property {import('svelte').Snippet} [footerExtra] - Footer extra slot content.
85
+ * @property {import('svelte').Snippet} [closeIcon] - Close icon slot content.
86
+ * @property {import('svelte').Snippet} [extraContent] - Extra content slot content.
87
+ */
88
+
89
+ /**
90
+ * @typedef {object} MenuItemProps
91
+ * @property {string} [class] - The `class` attribute on the wrapper element.
92
+ * @property {'menuitem' | 'menuitemcheckbox' | 'menuitemradio'} [role] - The `role` attribute on
93
+ * the `<button>` element.
94
+ * @property {boolean} [hidden] - Whether to hide the widget. An alias of the `aria-hidden`
95
+ * attribute.
96
+ * @property {boolean} [disabled] - Whether to disable the widget. An alias of the `aria-disabled`
97
+ * attribute.
98
+ * @property {boolean} [checked] - Whether to check the widget. An alias of the `aria-checked`
99
+ * attribute.
100
+ * @property {string} [label] - Text label displayed on the item.
101
+ * @property {import('svelte').Snippet} [children] - Primary slot content.
102
+ * @property {import('svelte').Snippet} [startIcon] - Start icon slot content.
103
+ * @property {import('svelte').Snippet} [endIcon] - End icon slot content.
104
+ * @property {import('svelte').Snippet} [chevronIcon] - Chevron icon slot content.
105
+ * @property {import('svelte').Snippet} [items] - Items slot content.
106
+ * @property {(event: CustomEvent) => void} [onChange] - Custom `Change` event handler.
107
+ * @property {(event: CustomEvent) => void} [onSelect] - Custom `Select` event handler.
108
+ */
109
+
110
+ /**
111
+ * @typedef {object} ComboboxProps
112
+ * @property {string} [class] - The `class` attribute on the wrapper element.
113
+ * @property {boolean} [hidden] - Whether to hide the widget.
114
+ * @property {boolean} [disabled] - Whether to disable the widget. An alias of the `aria-disabled`
115
+ * attribute.
116
+ * @property {boolean} [readonly] - Whether to make the widget read-only. An alias of the
117
+ * `aria-readonly` attribute.
118
+ * @property {boolean} [required] - Whether to mark the widget required. An alias of the
119
+ * `aria-required` attribute.
120
+ * @property {boolean} [invalid] - Whether to mark the widget invalid. An alias of the
121
+ * `aria-invalid` attribute.
122
+ * @property {string | undefined} [value] - Selected option’s value.
123
+ * @property {boolean} [editable] - Whether to make the `combobox` editable.
124
+ * @property {PopupPosition} [position] - Where to show the dropdown menu.
125
+ * @property {import('svelte').Snippet} [children] - Primary slot content.
126
+ * @property {import('svelte').Snippet} [chevronIcon] - Chevron icon slot content.
127
+ * @property {(event: CustomEvent) => void} [onChange] - Custom `change` event handler.
128
+ */
129
+
130
+ /**
131
+ * @typedef {object} TextInputProps
132
+ * @property {string | undefined} [value] - Input value.
133
+ * @property {HTMLInputElement | undefined} [element] - Reference to the `<input>` element.
134
+ * @property {'textbox' | 'searchbox' | 'combobox' | 'spinbutton'} [role] - The `role` attribute on
135
+ * the `<input>` element.
136
+ * @property {string | undefined} [keyShortcuts] - Keyboard shortcuts. An alias of the
137
+ * `aria-keyshortcuts` attribute. Accepts the special `Accel` key, which will be replaced with
138
+ * `Control` or `Meta` depending on the user’s operating system.
139
+ * @property {string | undefined} [name] - The `name` attribute on the `<input>` element.
140
+ * @property {boolean} [showInlineLabel] - Whether to display `aria-label` over the `<input>`
141
+ * element if it’s empty, just like how the HTML `placeholder` attribute works.
142
+ * @property {'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'} [inputmode] - The
143
+ * `inputmode` attribute on the `<input>`.
144
+ * @property {boolean} [flex] - Make the text input container flexible.
145
+ * @property {string} [class] - The `class` attribute on the wrapper element.
146
+ * @property {boolean} [hidden] - Whether to hide the widget.
147
+ * @property {boolean} [disabled] - Whether to disable the widget. An alias of the `aria-disabled`
148
+ * attribute.
149
+ * @property {boolean} [readonly] - Whether to make the widget read-only. An alias of the
150
+ * `aria-readonly` attribute.
151
+ * @property {boolean} [required] - Whether to mark the widget required. An alias of the
152
+ * `aria-required` attribute.
153
+ * @property {boolean} [invalid] - Whether to mark the widget invalid. An alias of the
154
+ * `aria-invalid` attribute.
155
+ * @property {string} [aria-label] - `aria-label` attribute.
156
+ * @property {import('svelte').Snippet} [children] - Primary slot content.
157
+ * @property {(event: CustomEvent) => void} [onChange] - Custom `Change` event handler.
158
+ */
159
+
160
+ /**
161
+ * @typedef {object} KeyboardEventHandlers
162
+ * @property {(event: KeyboardEvent) => void} [onkeydown] - `keydown` event handler.
163
+ * @property {(event: KeyboardEvent) => void} [onkeyup] - `keyup` event handler.
164
+ * @property {(event: KeyboardEvent) => void} [onkeypress] - `keypress` event handler.
165
+ */
166
+
167
+ /**
168
+ * @typedef {object} MouseEventHandlers
169
+ * @property {(event: MouseEvent) => void} [onmousedown] - `mousedown` event handler.
170
+ * @property {(event: MouseEvent) => void} [onmouseup] - `mouseup` event handler.
171
+ * @property {(event: MouseEvent) => void} [onclick] - `click` event handler.
172
+ * @property {(event: MouseEvent) => void} [ondblclick] - `dblclick` event handler.
173
+ */
174
+
175
+ /**
176
+ * @typedef {object} FocusEventHandlers
177
+ * @property {(event: FocusEvent) => void} [onfocus] - `focus` event handler.
178
+ * @property {(event: FocusEvent) => void} [onblur] - `blur` event handler.
179
+ */
180
+
181
+ /**
182
+ * @typedef {object} DragEventHandlers
183
+ * @property {(event: DragEvent) => void} [ondragstart] - `dragstart` event handler.
184
+ * @property {(event: DragEvent) => void} [ondrag] - `drag` event handler.
185
+ * @property {(event: DragEvent) => void} [ondragenter] - `dragenter` event handler.
186
+ * @property {(event: DragEvent) => void} [ondragleave] - `dragleave` event handler.
187
+ * @property {(event: DragEvent) => void} [ondragover] - `dragover` event handler.
188
+ * @property {(event: DragEvent) => void} [ondrop] - `drop` event handler.
189
+ * @property {(event: DragEvent) => void} [ondragend] - `dragend` event handler.
190
+ */
191
+
192
+ /**
193
+ * @typedef {KeyboardEventHandlers & MouseEventHandlers & FocusEventHandlers & DragEventHandlers}
194
+ * CommonEventHandlers
195
+ */
196
+
197
+ /**
198
+ * @typedef {object} InputEventHandlers
199
+ * @property {(event: Event) => void} [oninput] - `input` event handler.
200
+ * @property {(event: Event) => void} [onbeforeinput] - `beforeinput` event handler.
201
+ */
202
+
1
203
  /**
2
204
  * @typedef {('top-left' | 'top-right' | 'right-top' | 'right-bottom' | 'bottom-left' |
3
205
  * 'bottom-right'|'left-top'|'left-bottom')} PopupPosition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.15.16",
3
+ "version": "0.17.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -42,36 +42,36 @@
42
42
  "lexical": "^0.17.1"
43
43
  },
44
44
  "peerDependencies": {
45
- "svelte": "^4.0.0"
45
+ "svelte": "^5.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@playwright/test": "^1.46.1",
48
+ "@playwright/test": "^1.47.1",
49
49
  "@sveltejs/adapter-auto": "^3.2.4",
50
- "@sveltejs/kit": "^2.5.25",
51
- "@sveltejs/package": "^2.3.4",
52
- "@sveltejs/vite-plugin-svelte": "^3.1.2",
50
+ "@sveltejs/kit": "^2.5.27",
51
+ "@sveltejs/package": "^2.3.5",
52
+ "@sveltejs/vite-plugin-svelte": "4.0.0-next.7",
53
53
  "cspell": "^8.14.2",
54
54
  "eslint": "^8.57.0",
55
55
  "eslint-config-airbnb-base": "^15.0.0",
56
56
  "eslint-config-prettier": "^9.1.0",
57
- "eslint-plugin-import": "^2.29.1",
58
- "eslint-plugin-jsdoc": "^50.2.2",
59
- "eslint-plugin-svelte": "^2.43.0",
60
- "postcss": "^8.4.44",
57
+ "eslint-plugin-import": "^2.30.0",
58
+ "eslint-plugin-jsdoc": "^50.2.3",
59
+ "eslint-plugin-svelte": "^2.44.0",
60
+ "postcss": "^8.4.47",
61
61
  "postcss-html": "^1.7.0",
62
62
  "prettier": "^3.3.3",
63
63
  "prettier-plugin-svelte": "^3.2.6",
64
- "sass": "^1.77.8",
64
+ "sass": "^1.78.0",
65
65
  "stylelint": "^16.9.0",
66
66
  "stylelint-config-recommended-scss": "^14.1.0",
67
- "stylelint-scss": "^6.5.1",
68
- "svelte": "^4.2.19",
69
- "svelte-check": "^4.0.0",
67
+ "stylelint-scss": "^6.6.0",
68
+ "svelte": "5.0.0-next.246",
69
+ "svelte-check": "^4.0.2",
70
70
  "svelte-i18n": "^4.0.0",
71
71
  "svelte-preprocess": "^6.0.2",
72
72
  "tslib": "^2.7.0",
73
- "vite": "^5.4.2",
74
- "vitest": "^2.0.5"
73
+ "vite": "^5.4.5",
74
+ "vitest": "^2.1.1"
75
75
  },
76
76
  "exports": {
77
77
  ".": {
@@ -90,12 +90,5 @@
90
90
  "./package/index.d.ts"
91
91
  ]
92
92
  }
93
- },
94
- "pnpm": {
95
- "auditConfig": {
96
- "ignoreCves": [
97
- "CVE-2024-4067"
98
- ]
99
- }
100
93
  }
101
94
  }
@@ -1,36 +0,0 @@
1
- <!--
2
- @component
3
- @see https://github.com/sveltejs/svelte/issues/3088
4
- -->
5
- <script>
6
- import { onDestroy, onMount } from 'svelte';
7
-
8
- /**
9
- * CSS class name on the button.
10
- * @type {string}
11
- */
12
- let className = '';
13
-
14
- export { className as class };
15
-
16
- /** @type {HTMLElement | undefined} */
17
- let ref;
18
-
19
- onMount(() => {
20
- if (ref) {
21
- document.body.appendChild(ref);
22
- }
23
- });
24
-
25
- onDestroy(() => {
26
- ref?.remove();
27
- });
28
- </script>
29
-
30
- <div role="none" class="sui portal {className}" {...$$restProps} bind:this={ref}>
31
- <slot />
32
- </div>
33
-
34
- <style>.portal {
35
- display: contents;
36
- }</style>
@@ -1,32 +0,0 @@
1
- /** @typedef {typeof __propDef.props} PortalProps */
2
- /** @typedef {typeof __propDef.events} PortalEvents */
3
- /** @typedef {typeof __propDef.slots} PortalSlots */
4
- /** @see https://github.com/sveltejs/svelte/issues/3088 */
5
- export default class Portal extends SvelteComponent<{
6
- [x: string]: any;
7
- class?: string | undefined;
8
- }, {
9
- [evt: string]: CustomEvent<any>;
10
- }, {
11
- default: {};
12
- }> {
13
- }
14
- export type PortalProps = typeof __propDef.props;
15
- export type PortalEvents = typeof __propDef.events;
16
- export type PortalSlots = typeof __propDef.slots;
17
- import { SvelteComponent } from "svelte";
18
- declare const __propDef: {
19
- props: {
20
- [x: string]: any;
21
- class?: string | undefined;
22
- };
23
- events: {
24
- [evt: string]: CustomEvent<any>;
25
- };
26
- slots: {
27
- default: {};
28
- };
29
- exports?: undefined;
30
- bindings?: undefined;
31
- };
32
- export {};