@sveltia/ui 0.25.7 → 0.25.9

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 (179) hide show
  1. package/dist/components/alert/alert.svelte +7 -3
  2. package/dist/components/alert/alert.svelte.d.ts +11 -10
  3. package/dist/components/alert/infobar.svelte +9 -5
  4. package/dist/components/alert/infobar.svelte.d.ts +15 -14
  5. package/dist/components/button/button-group.svelte +6 -2
  6. package/dist/components/button/button-group.svelte.d.ts +7 -6
  7. package/dist/components/button/button.svelte +5 -2
  8. package/dist/components/button/button.svelte.d.ts +2 -1
  9. package/dist/components/button/select-button-group.svelte +12 -8
  10. package/dist/components/button/select-button-group.svelte.d.ts +19 -18
  11. package/dist/components/button/select-button.svelte +6 -3
  12. package/dist/components/button/select-button.svelte.d.ts +4 -3
  13. package/dist/components/button/split-button.svelte +10 -7
  14. package/dist/components/button/split-button.svelte.d.ts +18 -17
  15. package/dist/components/calendar/calendar.svelte +1 -1
  16. package/dist/components/calendar/calendar.svelte.d.ts +2 -2
  17. package/dist/components/checkbox/checkbox-group.svelte +9 -5
  18. package/dist/components/checkbox/checkbox-group.svelte.d.ts +13 -12
  19. package/dist/components/checkbox/checkbox.svelte +13 -9
  20. package/dist/components/checkbox/checkbox.svelte.d.ts +19 -17
  21. package/dist/components/dialog/alert-dialog.svelte +5 -2
  22. package/dist/components/dialog/alert-dialog.svelte.d.ts +3 -1
  23. package/dist/components/dialog/confirmation-dialog.svelte +5 -2
  24. package/dist/components/dialog/confirmation-dialog.svelte.d.ts +3 -1
  25. package/dist/components/dialog/dialog.svelte +5 -2
  26. package/dist/components/dialog/dialog.svelte.d.ts +3 -1
  27. package/dist/components/dialog/prompt-dialog.svelte +16 -7
  28. package/dist/components/dialog/prompt-dialog.svelte.d.ts +17 -13
  29. package/dist/components/disclosure/disclosure.svelte +12 -8
  30. package/dist/components/disclosure/disclosure.svelte.d.ts +21 -20
  31. package/dist/components/divider/divider.svelte +3 -3
  32. package/dist/components/divider/divider.svelte.d.ts +6 -6
  33. package/dist/components/divider/spacer.svelte +2 -2
  34. package/dist/components/divider/spacer.svelte.d.ts +4 -4
  35. package/dist/components/drawer/drawer.svelte +18 -13
  36. package/dist/components/drawer/drawer.svelte.d.ts +39 -37
  37. package/dist/components/grid/grid-body.svelte +7 -3
  38. package/dist/components/grid/grid-body.svelte.d.ts +9 -8
  39. package/dist/components/grid/grid-cell.svelte +6 -2
  40. package/dist/components/grid/grid-cell.svelte.d.ts +7 -6
  41. package/dist/components/grid/grid-col-header.svelte +6 -2
  42. package/dist/components/grid/grid-col-header.svelte.d.ts +7 -6
  43. package/dist/components/grid/grid-foot.svelte +6 -2
  44. package/dist/components/grid/grid-foot.svelte.d.ts +7 -6
  45. package/dist/components/grid/grid-head.svelte +6 -2
  46. package/dist/components/grid/grid-head.svelte.d.ts +7 -6
  47. package/dist/components/grid/grid-row-header.svelte +6 -2
  48. package/dist/components/grid/grid-row-header.svelte.d.ts +7 -6
  49. package/dist/components/grid/grid-row.svelte +9 -5
  50. package/dist/components/grid/grid-row.svelte.d.ts +13 -12
  51. package/dist/components/grid/grid.svelte +10 -6
  52. package/dist/components/grid/grid.svelte.d.ts +15 -14
  53. package/dist/components/icon/icon.svelte +2 -2
  54. package/dist/components/icon/icon.svelte.d.ts +4 -4
  55. package/dist/components/listbox/listbox.svelte +18 -13
  56. package/dist/components/listbox/listbox.svelte.d.ts +27 -26
  57. package/dist/components/listbox/option-group.svelte +9 -5
  58. package/dist/components/listbox/option-group.svelte.d.ts +13 -12
  59. package/dist/components/listbox/option.svelte +12 -8
  60. package/dist/components/listbox/option.svelte.d.ts +17 -15
  61. package/dist/components/menu/menu-button.svelte +7 -4
  62. package/dist/components/menu/menu-button.svelte.d.ts +6 -5
  63. package/dist/components/menu/menu-item-checkbox.svelte +5 -2
  64. package/dist/components/menu/menu-item-checkbox.svelte.d.ts +3 -1
  65. package/dist/components/menu/menu-item-group.svelte +9 -5
  66. package/dist/components/menu/menu-item-group.svelte.d.ts +8 -8
  67. package/dist/components/menu/menu-item-radio.svelte +5 -2
  68. package/dist/components/menu/menu-item-radio.svelte.d.ts +3 -1
  69. package/dist/components/menu/menu-item.svelte +5 -2
  70. package/dist/components/menu/menu-item.svelte.d.ts +3 -1
  71. package/dist/components/menu/menu.svelte +9 -5
  72. package/dist/components/menu/menu.svelte.d.ts +13 -12
  73. package/dist/components/progressbar/progressbar.svelte +5 -5
  74. package/dist/components/progressbar/progressbar.svelte.d.ts +10 -10
  75. package/dist/components/radio/radio-group.svelte +13 -9
  76. package/dist/components/radio/radio-group.svelte.d.ts +21 -20
  77. package/dist/components/radio/radio.svelte +15 -11
  78. package/dist/components/radio/radio.svelte.d.ts +27 -26
  79. package/dist/components/select/combobox.svelte +6 -3
  80. package/dist/components/select/combobox.svelte.d.ts +3 -1
  81. package/dist/components/select/select-tags.svelte +16 -13
  82. package/dist/components/select/select-tags.svelte.d.ts +27 -28
  83. package/dist/components/select/select.svelte +5 -1
  84. package/dist/components/select/select.svelte.d.ts +2 -1
  85. package/dist/components/slider/slider.svelte +27 -25
  86. package/dist/components/slider/slider.svelte.d.ts +35 -34
  87. package/dist/components/switch/switch.svelte +13 -9
  88. package/dist/components/switch/switch.svelte.d.ts +21 -20
  89. package/dist/components/table/table-body.svelte +7 -3
  90. package/dist/components/table/table-body.svelte.d.ts +9 -8
  91. package/dist/components/table/table-cell.svelte +6 -2
  92. package/dist/components/table/table-cell.svelte.d.ts +7 -6
  93. package/dist/components/table/table-col-header.svelte +6 -2
  94. package/dist/components/table/table-col-header.svelte.d.ts +7 -6
  95. package/dist/components/table/table-foot.svelte +6 -2
  96. package/dist/components/table/table-foot.svelte.d.ts +7 -6
  97. package/dist/components/table/table-head.svelte +6 -2
  98. package/dist/components/table/table-head.svelte.d.ts +7 -6
  99. package/dist/components/table/table-row-header.svelte +6 -2
  100. package/dist/components/table/table-row-header.svelte.d.ts +7 -6
  101. package/dist/components/table/table-row.svelte +6 -2
  102. package/dist/components/table/table-row.svelte.d.ts +7 -6
  103. package/dist/components/table/table.svelte +6 -2
  104. package/dist/components/table/table.svelte.d.ts +7 -6
  105. package/dist/components/tabs/tab-box.svelte +7 -3
  106. package/dist/components/tabs/tab-box.svelte.d.ts +9 -8
  107. package/dist/components/tabs/tab-list.svelte +12 -8
  108. package/dist/components/tabs/tab-list.svelte.d.ts +19 -18
  109. package/dist/components/tabs/tab-panel.svelte +6 -2
  110. package/dist/components/tabs/tab-panel.svelte.d.ts +7 -6
  111. package/dist/components/tabs/tab-panels.svelte +6 -2
  112. package/dist/components/tabs/tab-panels.svelte.d.ts +7 -6
  113. package/dist/components/tabs/tab.svelte +6 -3
  114. package/dist/components/tabs/tab.svelte.d.ts +4 -3
  115. package/dist/components/text-editor/code-editor.svelte +16 -18
  116. package/dist/components/text-editor/code-editor.svelte.d.ts +25 -24
  117. package/dist/components/text-editor/core.d.ts +5 -3
  118. package/dist/components/text-editor/core.js +26 -15
  119. package/dist/components/text-editor/index.d.ts +12 -6
  120. package/dist/components/text-editor/index.js +7 -3
  121. package/dist/components/text-editor/lexical-root.svelte +27 -30
  122. package/dist/components/text-editor/lexical-root.svelte.d.ts +17 -16
  123. package/dist/components/text-editor/store.svelte.d.ts +2 -1
  124. package/dist/components/text-editor/store.svelte.js +10 -5
  125. package/dist/components/text-editor/text-editor.svelte +22 -13
  126. package/dist/components/text-editor/text-editor.svelte.d.ts +37 -32
  127. package/dist/components/text-editor/toolbar/code-editor-toolbar.svelte +3 -3
  128. package/dist/components/text-editor/toolbar/code-editor-toolbar.svelte.d.ts +6 -6
  129. package/dist/components/text-editor/toolbar/code-language-switcher.svelte +6 -2
  130. package/dist/components/text-editor/toolbar/code-language-switcher.svelte.d.ts +2 -2
  131. package/dist/components/text-editor/toolbar/format-text-button.svelte +6 -2
  132. package/dist/components/text-editor/toolbar/format-text-button.svelte.d.ts +5 -4
  133. package/dist/components/text-editor/toolbar/insert-image-button.svelte +6 -2
  134. package/dist/components/text-editor/toolbar/insert-image-button.svelte.d.ts +5 -4
  135. package/dist/components/text-editor/toolbar/insert-link-button.svelte +9 -4
  136. package/dist/components/text-editor/toolbar/insert-menu-button.svelte +6 -2
  137. package/dist/components/text-editor/toolbar/insert-menu-button.svelte.d.ts +5 -4
  138. package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte +10 -6
  139. package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte.d.ts +6 -6
  140. package/dist/components/text-editor/toolbar/toggle-block-menu-item.svelte +8 -5
  141. package/dist/components/text-editor/toolbar/toggle-block-menu-item.svelte.d.ts +5 -4
  142. package/dist/components/text-editor/toolbar/toolbar-wrapper.svelte +7 -3
  143. package/dist/components/text-editor/toolbar/toolbar-wrapper.svelte.d.ts +9 -8
  144. package/dist/components/text-editor/transformers/table.d.ts +3 -2
  145. package/dist/components/text-editor/transformers/table.js +5 -1
  146. package/dist/components/text-field/number-input.svelte +12 -8
  147. package/dist/components/text-field/number-input.svelte.d.ts +20 -17
  148. package/dist/components/text-field/password-input.svelte +8 -4
  149. package/dist/components/text-field/password-input.svelte.d.ts +10 -7
  150. package/dist/components/text-field/search-bar.svelte +9 -5
  151. package/dist/components/text-field/search-bar.svelte.d.ts +14 -11
  152. package/dist/components/text-field/text-area.svelte +18 -14
  153. package/dist/components/text-field/text-area.svelte.d.ts +29 -27
  154. package/dist/components/text-field/text-input.svelte +7 -3
  155. package/dist/components/text-field/text-input.svelte.d.ts +5 -3
  156. package/dist/components/toast/toast.svelte +10 -5
  157. package/dist/components/toast/toast.svelte.d.ts +16 -14
  158. package/dist/components/toolbar/toolbar.svelte +11 -7
  159. package/dist/components/toolbar/toolbar.svelte.d.ts +17 -16
  160. package/dist/components/util/app-shell.svelte +6 -3
  161. package/dist/components/util/app-shell.svelte.d.ts +7 -8
  162. package/dist/components/util/group.svelte +8 -4
  163. package/dist/components/util/group.svelte.d.ts +11 -10
  164. package/dist/components/util/modal.svelte +7 -3
  165. package/dist/components/util/modal.svelte.d.ts +2 -1
  166. package/dist/components/util/placeholder.svelte +5 -1
  167. package/dist/components/util/placeholder.svelte.d.ts +5 -4
  168. package/dist/components/util/popup.svelte +23 -17
  169. package/dist/components/util/popup.svelte.d.ts +36 -33
  170. package/dist/index.js +3 -3
  171. package/dist/services/events.svelte.d.ts +2 -1
  172. package/dist/services/events.svelte.js +12 -8
  173. package/dist/services/group.svelte.d.ts +2 -1
  174. package/dist/services/group.svelte.js +16 -12
  175. package/dist/services/popup.svelte.d.ts +16 -10
  176. package/dist/services/popup.svelte.js +14 -13
  177. package/dist/typedefs.d.ts +191 -189
  178. package/dist/typedefs.js +168 -164
  179. package/package.json +18 -18
@@ -9,7 +9,11 @@
9
9
  import Combobox from './combobox.svelte';
10
10
 
11
11
  /**
12
- * @type {import('../../typedefs').ComboboxProps & Record<string, any>}
12
+ * @import { ComboboxProps } from '../../typedefs';
13
+ */
14
+
15
+ /**
16
+ * @type {ComboboxProps & Record<string, any>}
13
17
  */
14
18
  let {
15
19
  /* eslint-disable prefer-const */
@@ -9,4 +9,5 @@ type Select = {
9
9
  * @see https://w3c.github.io/aria/#combobox
10
10
  * @see https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
11
11
  */
12
- declare const Select: import("svelte").Component<import("../../typedefs").ComboboxProps & Record<string, any>, {}, "value">;
12
+ declare const Select: import("svelte").Component<ComboboxProps & Record<string, any>, {}, "value">;
13
+ import type { ComboboxProps } from '../../typedefs';
@@ -10,27 +10,31 @@
10
10
  <script>
11
11
  import { onMount } from 'svelte';
12
12
 
13
+ /**
14
+ * @import { Snippet } from 'svelte';
15
+ */
16
+
13
17
  /**
14
18
  * @typedef {object} Props
15
- * @property {number} [value] - Current value.
16
- * @property {number} [min] - Minimum allowed value. An alias of the `aria-valuemin` attribute.
17
- * @property {number} [max] - Maximum allowed value. An alias of the `aria-valuemax` attribute.
18
- * @property {string} [sliderLabel] - `aria-label` on the slider.
19
- * @property {[number, number]} [values] - Value list for a multi-thumb slider.
20
- * @property {[string, string]} [sliderLabels] - `aria-label` on a multi-thumb slider.
21
- * @property {number} [step] - Step option like `<input type="range">`.
22
- * @property {(string[] | number[])} [optionLabels] - Visible labels on the slider.
23
- * @property {boolean} [flex] - Make the text input container flexible.
24
- * @property {string} [class] - The `class` attribute on the wrapper element.
25
- * @property {boolean} [hidden] - Whether to hide the widget.
26
- * @property {boolean} [disabled] - Whether to disable the widget. An alias of the `aria-disabled`
19
+ * @property {number} [value] Current value.
20
+ * @property {number} [min] Minimum allowed value. An alias of the `aria-valuemin` attribute.
21
+ * @property {number} [max] Maximum allowed value. An alias of the `aria-valuemax` attribute.
22
+ * @property {string} [sliderLabel] `aria-label` on the slider.
23
+ * @property {[number, number]} [values] Value list for a multi-thumb slider.
24
+ * @property {[string, string]} [sliderLabels] `aria-label` on a multi-thumb slider.
25
+ * @property {number} [step] Step option like `<input type="range">`.
26
+ * @property {(string[] | number[])} [optionLabels] Visible labels on the slider.
27
+ * @property {boolean} [flex] Make the text input container flexible.
28
+ * @property {string} [class] The `class` attribute on the wrapper element.
29
+ * @property {boolean} [hidden] Whether to hide the widget.
30
+ * @property {boolean} [disabled] Whether to disable the widget. An alias of the `aria-disabled`
27
31
  * attribute.
28
- * @property {boolean} [readonly] - Whether to make the widget read-only. An alias of the
32
+ * @property {boolean} [readonly] Whether to make the widget read-only. An alias of the
29
33
  * `aria-readonly` attribute.
30
- * @property {boolean} [invalid] - Whether to mark the widget invalid. An alias of the
34
+ * @property {boolean} [invalid] Whether to mark the widget invalid. An alias of the
31
35
  * `aria-invalid` attribute.
32
- * @property {import('svelte').Snippet} [children] - Primary slot content.
33
- * @property {(detail: { values?: number[], value?: number }) => void} [onChange] - `change` event
36
+ * @property {Snippet} [children] Primary slot content.
37
+ * @property {(detail: { values?: number[], value?: number }) => void} [onChange] `change` event
34
38
  * handler.
35
39
  */
36
40
 
@@ -77,7 +81,7 @@
77
81
 
78
82
  /**
79
83
  * Move a thumb with mouse.
80
- * @param {number} diff - Distance from the original X position in pixels.
84
+ * @param {number} diff Distance from the original X position in pixels.
81
85
  */
82
86
  const moveThumb = (diff) => {
83
87
  if (diff < 0) {
@@ -113,9 +117,8 @@
113
117
 
114
118
  /**
115
119
  * Handle the `keydown` event fired on the slider.
116
- * @param {KeyboardEvent} event - `keydown` event.
117
- * @param {number} [valueIndex] - Index in the {@link values} array to be used to get/set the
118
- * value.
120
+ * @param {KeyboardEvent} event `keydown` event.
121
+ * @param {number} [valueIndex] Index in the {@link values} array to be used to get/set the value.
119
122
  */
120
123
  const onKeyDown = (event, valueIndex = 0) => {
121
124
  const { key, ctrlKey, metaKey, shiftKey, altKey } = event;
@@ -166,7 +169,7 @@
166
169
 
167
170
  /**
168
171
  * Handle the `pointermove` event fired anywhere on the page.
169
- * @param {PointerEvent} event - `pointermove` event.
172
+ * @param {PointerEvent} event `pointermove` event.
170
173
  */
171
174
  const onPointerMove = (event) => {
172
175
  const { screenX, pointerId } = event;
@@ -182,7 +185,7 @@
182
185
 
183
186
  /**
184
187
  * Handle the `pointerup` and `pointercancel` events fired anywhere on the page.
185
- * @param {PointerEvent} event - `pointerup` or `pointercancel` event.
188
+ * @param {PointerEvent} event `pointerup` or `pointercancel` event.
186
189
  */
187
190
  const onPointerUp = (event) => {
188
191
  const { pointerId } = event;
@@ -212,9 +215,8 @@
212
215
 
213
216
  /**
214
217
  * Handle the `pointerdown` event fired on the slider.
215
- * @param {PointerEvent} event - `pointerdown` event.
216
- * @param {number} [valueIndex] - Index in the {@link values} array to be used to get/set the
217
- * value.
218
+ * @param {PointerEvent} event `pointerdown` event.
219
+ * @param {number} [valueIndex] Index in the {@link values} array to be used to get/set the value.
218
220
  */
219
221
  const onPointerDown = (event, valueIndex = 0) => {
220
222
  const { clientX, screenX, pointerId } = event;
@@ -13,70 +13,70 @@ type Slider = {
13
13
  */
14
14
  declare const Slider: import("svelte").Component<{
15
15
  /**
16
- * - Current value.
16
+ * Current value.
17
17
  */
18
18
  value?: number | undefined;
19
19
  /**
20
- * - Minimum allowed value. An alias of the `aria-valuemin` attribute.
20
+ * Minimum allowed value. An alias of the `aria-valuemin` attribute.
21
21
  */
22
22
  min?: number | undefined;
23
23
  /**
24
- * - Maximum allowed value. An alias of the `aria-valuemax` attribute.
24
+ * Maximum allowed value. An alias of the `aria-valuemax` attribute.
25
25
  */
26
26
  max?: number | undefined;
27
27
  /**
28
- * - `aria-label` on the slider.
28
+ * `aria-label` on the slider.
29
29
  */
30
30
  sliderLabel?: string | undefined;
31
31
  /**
32
- * - Value list for a multi-thumb slider.
32
+ * Value list for a multi-thumb slider.
33
33
  */
34
34
  values?: [number, number] | undefined;
35
35
  /**
36
- * - `aria-label` on a multi-thumb slider.
36
+ * `aria-label` on a multi-thumb slider.
37
37
  */
38
38
  sliderLabels?: [string, string] | undefined;
39
39
  /**
40
- * - Step option like `<input type="range">`.
40
+ * Step option like `<input type="range">`.
41
41
  */
42
42
  step?: number | undefined;
43
43
  /**
44
- * - Visible labels on the slider.
44
+ * Visible labels on the slider.
45
45
  */
46
46
  optionLabels?: string[] | number[] | undefined;
47
47
  /**
48
- * - Make the text input container flexible.
48
+ * Make the text input container flexible.
49
49
  */
50
50
  flex?: boolean | undefined;
51
51
  /**
52
- * - The `class` attribute on the wrapper element.
52
+ * The `class` attribute on the wrapper element.
53
53
  */
54
54
  class?: string | undefined;
55
55
  /**
56
- * - Whether to hide the widget.
56
+ * Whether to hide the widget.
57
57
  */
58
58
  hidden?: boolean | undefined;
59
59
  /**
60
- * - Whether to disable the widget. An alias of the `aria-disabled`
60
+ * Whether to disable the widget. An alias of the `aria-disabled`
61
61
  * attribute.
62
62
  */
63
63
  disabled?: boolean | undefined;
64
64
  /**
65
- * - Whether to make the widget read-only. An alias of the
65
+ * Whether to make the widget read-only. An alias of the
66
66
  * `aria-readonly` attribute.
67
67
  */
68
68
  readonly?: boolean | undefined;
69
69
  /**
70
- * - Whether to mark the widget invalid. An alias of the
70
+ * Whether to mark the widget invalid. An alias of the
71
71
  * `aria-invalid` attribute.
72
72
  */
73
73
  invalid?: boolean | undefined;
74
74
  /**
75
- * - Primary slot content.
75
+ * Primary slot content.
76
76
  */
77
- children?: import("svelte").Snippet<[]> | undefined;
77
+ children?: Snippet<[]> | undefined;
78
78
  /**
79
- * - `change` event
79
+ * `change` event
80
80
  * handler.
81
81
  */
82
82
  onChange?: ((detail: {
@@ -86,70 +86,70 @@ declare const Slider: import("svelte").Component<{
86
86
  } & Record<string, any>, {}, "value" | "values">;
87
87
  type Props = {
88
88
  /**
89
- * - Current value.
89
+ * Current value.
90
90
  */
91
91
  value?: number | undefined;
92
92
  /**
93
- * - Minimum allowed value. An alias of the `aria-valuemin` attribute.
93
+ * Minimum allowed value. An alias of the `aria-valuemin` attribute.
94
94
  */
95
95
  min?: number | undefined;
96
96
  /**
97
- * - Maximum allowed value. An alias of the `aria-valuemax` attribute.
97
+ * Maximum allowed value. An alias of the `aria-valuemax` attribute.
98
98
  */
99
99
  max?: number | undefined;
100
100
  /**
101
- * - `aria-label` on the slider.
101
+ * `aria-label` on the slider.
102
102
  */
103
103
  sliderLabel?: string | undefined;
104
104
  /**
105
- * - Value list for a multi-thumb slider.
105
+ * Value list for a multi-thumb slider.
106
106
  */
107
107
  values?: [number, number] | undefined;
108
108
  /**
109
- * - `aria-label` on a multi-thumb slider.
109
+ * `aria-label` on a multi-thumb slider.
110
110
  */
111
111
  sliderLabels?: [string, string] | undefined;
112
112
  /**
113
- * - Step option like `<input type="range">`.
113
+ * Step option like `<input type="range">`.
114
114
  */
115
115
  step?: number | undefined;
116
116
  /**
117
- * - Visible labels on the slider.
117
+ * Visible labels on the slider.
118
118
  */
119
119
  optionLabels?: string[] | number[] | undefined;
120
120
  /**
121
- * - Make the text input container flexible.
121
+ * Make the text input container flexible.
122
122
  */
123
123
  flex?: boolean | undefined;
124
124
  /**
125
- * - The `class` attribute on the wrapper element.
125
+ * The `class` attribute on the wrapper element.
126
126
  */
127
127
  class?: string | undefined;
128
128
  /**
129
- * - Whether to hide the widget.
129
+ * Whether to hide the widget.
130
130
  */
131
131
  hidden?: boolean | undefined;
132
132
  /**
133
- * - Whether to disable the widget. An alias of the `aria-disabled`
133
+ * Whether to disable the widget. An alias of the `aria-disabled`
134
134
  * attribute.
135
135
  */
136
136
  disabled?: boolean | undefined;
137
137
  /**
138
- * - Whether to make the widget read-only. An alias of the
138
+ * Whether to make the widget read-only. An alias of the
139
139
  * `aria-readonly` attribute.
140
140
  */
141
141
  readonly?: boolean | undefined;
142
142
  /**
143
- * - Whether to mark the widget invalid. An alias of the
143
+ * Whether to mark the widget invalid. An alias of the
144
144
  * `aria-invalid` attribute.
145
145
  */
146
146
  invalid?: boolean | undefined;
147
147
  /**
148
- * - Primary slot content.
148
+ * Primary slot content.
149
149
  */
150
- children?: import("svelte").Snippet<[]> | undefined;
150
+ children?: Snippet<[]> | undefined;
151
151
  /**
152
- * - `change` event
152
+ * `change` event
153
153
  * handler.
154
154
  */
155
155
  onChange?: ((detail: {
@@ -157,3 +157,4 @@ type Props = {
157
157
  value?: number;
158
158
  }) => void) | undefined;
159
159
  };
160
+ import type { Snippet } from 'svelte';
@@ -5,21 +5,25 @@
5
5
  @see https://www.w3.org/WAI/ARIA/apg/patterns/switch/
6
6
  -->
7
7
  <script>
8
+ /**
9
+ * @import { Snippet } from 'svelte';
10
+ */
11
+
8
12
  /**
9
13
  * @typedef {object} Props
10
- * @property {string} [label] - Text label displayed next to the switch.
11
- * @property {string} [class] - The `class` attribute on the wrapper element.
12
- * @property {boolean} [hidden] - Whether to hide the widget.
13
- * @property {boolean} [disabled] - Whether to disable the widget. An alias of the `aria-disabled`
14
+ * @property {string} [label] Text label displayed next to the switch.
15
+ * @property {string} [class] The `class` attribute on the wrapper element.
16
+ * @property {boolean} [hidden] Whether to hide the widget.
17
+ * @property {boolean} [disabled] Whether to disable the widget. An alias of the `aria-disabled`
14
18
  * attribute.
15
- * @property {boolean} [readonly] - Whether to make the widget read-only. An alias of the
19
+ * @property {boolean} [readonly] Whether to make the widget read-only. An alias of the
16
20
  * `aria-readonly` attribute.
17
- * @property {boolean} [required] - Whether to mark the widget required. An alias of the
21
+ * @property {boolean} [required] Whether to mark the widget required. An alias of the
18
22
  * `aria-required` attribute.
19
- * @property {boolean} [invalid] - Whether to mark the widget invalid. An alias of the
23
+ * @property {boolean} [invalid] Whether to mark the widget invalid. An alias of the
20
24
  * `aria-invalid` attribute.
21
- * @property {import('svelte').Snippet} [children] - Primary slot content.
22
- * @property {(event: CustomEvent) => void} [onChange] - Custom `Change` event handler.
25
+ * @property {Snippet} [children] Primary slot content.
26
+ * @property {(event: CustomEvent) => void} [onChange] Custom `Change` event handler.
23
27
  */
24
28
 
25
29
  /**
@@ -10,85 +10,86 @@ type Switch = {
10
10
  */
11
11
  declare const Switch: import("svelte").Component<{
12
12
  /**
13
- * - Text label displayed next to the switch.
13
+ * Text label displayed next to the switch.
14
14
  */
15
15
  label?: string | undefined;
16
16
  /**
17
- * - The `class` attribute on the wrapper element.
17
+ * The `class` attribute on the wrapper element.
18
18
  */
19
19
  class?: string | undefined;
20
20
  /**
21
- * - Whether to hide the widget.
21
+ * Whether to hide the widget.
22
22
  */
23
23
  hidden?: boolean | undefined;
24
24
  /**
25
- * - Whether to disable the widget. An alias of the `aria-disabled`
25
+ * Whether to disable the widget. An alias of the `aria-disabled`
26
26
  * attribute.
27
27
  */
28
28
  disabled?: boolean | undefined;
29
29
  /**
30
- * - Whether to make the widget read-only. An alias of the
30
+ * Whether to make the widget read-only. An alias of the
31
31
  * `aria-readonly` attribute.
32
32
  */
33
33
  readonly?: boolean | undefined;
34
34
  /**
35
- * - Whether to mark the widget required. An alias of the
35
+ * Whether to mark the widget required. An alias of the
36
36
  * `aria-required` attribute.
37
37
  */
38
38
  required?: boolean | undefined;
39
39
  /**
40
- * - Whether to mark the widget invalid. An alias of the
40
+ * Whether to mark the widget invalid. An alias of the
41
41
  * `aria-invalid` attribute.
42
42
  */
43
43
  invalid?: boolean | undefined;
44
44
  /**
45
- * - Primary slot content.
45
+ * Primary slot content.
46
46
  */
47
- children?: import("svelte").Snippet<[]> | undefined;
47
+ children?: Snippet<[]> | undefined;
48
48
  /**
49
- * - Custom `Change` event handler.
49
+ * Custom `Change` event handler.
50
50
  */
51
51
  onChange?: ((event: CustomEvent) => void) | undefined;
52
52
  } & Record<string, any>, {}, "checked">;
53
53
  type Props = {
54
54
  /**
55
- * - Text label displayed next to the switch.
55
+ * Text label displayed next to the switch.
56
56
  */
57
57
  label?: string | undefined;
58
58
  /**
59
- * - The `class` attribute on the wrapper element.
59
+ * The `class` attribute on the wrapper element.
60
60
  */
61
61
  class?: string | undefined;
62
62
  /**
63
- * - Whether to hide the widget.
63
+ * Whether to hide the widget.
64
64
  */
65
65
  hidden?: boolean | undefined;
66
66
  /**
67
- * - Whether to disable the widget. An alias of the `aria-disabled`
67
+ * Whether to disable the widget. An alias of the `aria-disabled`
68
68
  * attribute.
69
69
  */
70
70
  disabled?: boolean | undefined;
71
71
  /**
72
- * - Whether to make the widget read-only. An alias of the
72
+ * Whether to make the widget read-only. An alias of the
73
73
  * `aria-readonly` attribute.
74
74
  */
75
75
  readonly?: boolean | undefined;
76
76
  /**
77
- * - Whether to mark the widget required. An alias of the
77
+ * Whether to mark the widget required. An alias of the
78
78
  * `aria-required` attribute.
79
79
  */
80
80
  required?: boolean | undefined;
81
81
  /**
82
- * - Whether to mark the widget invalid. An alias of the
82
+ * Whether to mark the widget invalid. An alias of the
83
83
  * `aria-invalid` attribute.
84
84
  */
85
85
  invalid?: boolean | undefined;
86
86
  /**
87
- * - Primary slot content.
87
+ * Primary slot content.
88
88
  */
89
- children?: import("svelte").Snippet<[]> | undefined;
89
+ children?: Snippet<[]> | undefined;
90
90
  /**
91
- * - Custom `Change` event handler.
91
+ * Custom `Change` event handler.
92
92
  */
93
93
  onChange?: ((event: CustomEvent) => void) | undefined;
94
94
  };
95
+ import type { Snippet } from 'svelte';
@@ -5,11 +5,15 @@
5
5
  @see https://w3c.github.io/aria/#rowgroup
6
6
  -->
7
7
  <script>
8
+ /**
9
+ * @import { Snippet } from 'svelte';
10
+ */
11
+
8
12
  /**
9
13
  * @typedef {object} Props
10
- * @property {string} [class] - The `class` attribute on the wrapper element.
11
- * @property {string} [label] - Display label for the row group.
12
- * @property {import('svelte').Snippet} [children] - Primary slot content.
14
+ * @property {string} [class] The `class` attribute on the wrapper element.
15
+ * @property {string} [label] Display label for the row group.
16
+ * @property {Snippet} [children] Primary slot content.
13
17
  */
14
18
 
15
19
  /**
@@ -10,29 +10,30 @@ type TableBody = {
10
10
  */
11
11
  declare const TableBody: import("svelte").Component<{
12
12
  /**
13
- * - The `class` attribute on the wrapper element.
13
+ * The `class` attribute on the wrapper element.
14
14
  */
15
15
  class?: string | undefined;
16
16
  /**
17
- * - Display label for the row group.
17
+ * Display label for the row group.
18
18
  */
19
19
  label?: string | undefined;
20
20
  /**
21
- * - Primary slot content.
21
+ * Primary slot content.
22
22
  */
23
- children?: import("svelte").Snippet<[]> | undefined;
23
+ children?: Snippet<[]> | undefined;
24
24
  } & Record<string, any>, {}, "">;
25
25
  type Props = {
26
26
  /**
27
- * - The `class` attribute on the wrapper element.
27
+ * The `class` attribute on the wrapper element.
28
28
  */
29
29
  class?: string | undefined;
30
30
  /**
31
- * - Display label for the row group.
31
+ * Display label for the row group.
32
32
  */
33
33
  label?: string | undefined;
34
34
  /**
35
- * - Primary slot content.
35
+ * Primary slot content.
36
36
  */
37
- children?: import("svelte").Snippet<[]> | undefined;
37
+ children?: Snippet<[]> | undefined;
38
38
  };
39
+ import type { Snippet } from 'svelte';
@@ -5,10 +5,14 @@
5
5
  @see https://w3c.github.io/aria/#cell
6
6
  -->
7
7
  <script>
8
+ /**
9
+ * @import { Snippet } from 'svelte';
10
+ */
11
+
8
12
  /**
9
13
  * @typedef {object} Props
10
- * @property {string} [class] - The `class` attribute on the wrapper element.
11
- * @property {import('svelte').Snippet} [children] - Primary slot content.
14
+ * @property {string} [class] The `class` attribute on the wrapper element.
15
+ * @property {Snippet} [children] Primary slot content.
12
16
  */
13
17
 
14
18
  /**
@@ -10,21 +10,22 @@ type TableCell = {
10
10
  */
11
11
  declare const TableCell: import("svelte").Component<{
12
12
  /**
13
- * - The `class` attribute on the wrapper element.
13
+ * The `class` attribute on the wrapper element.
14
14
  */
15
15
  class?: string | undefined;
16
16
  /**
17
- * - Primary slot content.
17
+ * Primary slot content.
18
18
  */
19
- children?: import("svelte").Snippet<[]> | undefined;
19
+ children?: Snippet<[]> | undefined;
20
20
  } & Record<string, any>, {}, "">;
21
21
  type Props = {
22
22
  /**
23
- * - The `class` attribute on the wrapper element.
23
+ * The `class` attribute on the wrapper element.
24
24
  */
25
25
  class?: string | undefined;
26
26
  /**
27
- * - Primary slot content.
27
+ * Primary slot content.
28
28
  */
29
- children?: import("svelte").Snippet<[]> | undefined;
29
+ children?: Snippet<[]> | undefined;
30
30
  };
31
+ import type { Snippet } from 'svelte';
@@ -5,10 +5,14 @@
5
5
  @see https://w3c.github.io/aria/#columnheader
6
6
  -->
7
7
  <script>
8
+ /**
9
+ * @import { Snippet } from 'svelte';
10
+ */
11
+
8
12
  /**
9
13
  * @typedef {object} Props
10
- * @property {string} [class] - The `class` attribute on the wrapper element.
11
- * @property {import('svelte').Snippet} [children] - Primary slot content.
14
+ * @property {string} [class] The `class` attribute on the wrapper element.
15
+ * @property {Snippet} [children] Primary slot content.
12
16
  */
13
17
 
14
18
  /**
@@ -10,21 +10,22 @@ type TableColHeader = {
10
10
  */
11
11
  declare const TableColHeader: import("svelte").Component<{
12
12
  /**
13
- * - The `class` attribute on the wrapper element.
13
+ * The `class` attribute on the wrapper element.
14
14
  */
15
15
  class?: string | undefined;
16
16
  /**
17
- * - Primary slot content.
17
+ * Primary slot content.
18
18
  */
19
- children?: import("svelte").Snippet<[]> | undefined;
19
+ children?: Snippet<[]> | undefined;
20
20
  } & Record<string, any>, {}, "">;
21
21
  type Props = {
22
22
  /**
23
- * - The `class` attribute on the wrapper element.
23
+ * The `class` attribute on the wrapper element.
24
24
  */
25
25
  class?: string | undefined;
26
26
  /**
27
- * - Primary slot content.
27
+ * Primary slot content.
28
28
  */
29
- children?: import("svelte").Snippet<[]> | undefined;
29
+ children?: Snippet<[]> | undefined;
30
30
  };
31
+ import type { Snippet } from 'svelte';
@@ -5,10 +5,14 @@
5
5
  @see https://w3c.github.io/aria/#rowgroup
6
6
  -->
7
7
  <script>
8
+ /**
9
+ * @import { Snippet } from 'svelte';
10
+ */
11
+
8
12
  /**
9
13
  * @typedef {object} Props
10
- * @property {string} [class] - The `class` attribute on the wrapper element.
11
- * @property {import('svelte').Snippet} [children] - Primary slot content.
14
+ * @property {string} [class] The `class` attribute on the wrapper element.
15
+ * @property {Snippet} [children] Primary slot content.
12
16
  */
13
17
 
14
18
  /**
@@ -10,21 +10,22 @@ type TableFoot = {
10
10
  */
11
11
  declare const TableFoot: import("svelte").Component<{
12
12
  /**
13
- * - The `class` attribute on the wrapper element.
13
+ * The `class` attribute on the wrapper element.
14
14
  */
15
15
  class?: string | undefined;
16
16
  /**
17
- * - Primary slot content.
17
+ * Primary slot content.
18
18
  */
19
- children?: import("svelte").Snippet<[]> | undefined;
19
+ children?: Snippet<[]> | undefined;
20
20
  } & Record<string, any>, {}, "">;
21
21
  type Props = {
22
22
  /**
23
- * - The `class` attribute on the wrapper element.
23
+ * The `class` attribute on the wrapper element.
24
24
  */
25
25
  class?: string | undefined;
26
26
  /**
27
- * - Primary slot content.
27
+ * Primary slot content.
28
28
  */
29
- children?: import("svelte").Snippet<[]> | undefined;
29
+ children?: Snippet<[]> | undefined;
30
30
  };
31
+ import type { Snippet } from 'svelte';
@@ -5,10 +5,14 @@
5
5
  @see https://w3c.github.io/aria/#rowgroup
6
6
  -->
7
7
  <script>
8
+ /**
9
+ * @import { Snippet } from 'svelte';
10
+ */
11
+
8
12
  /**
9
13
  * @typedef {object} Props
10
- * @property {string} [class] - The `class` attribute on the wrapper element.
11
- * @property {import('svelte').Snippet} [children] - Primary slot content.
14
+ * @property {string} [class] The `class` attribute on the wrapper element.
15
+ * @property {Snippet} [children] Primary slot content.
12
16
  */
13
17
 
14
18
  /**