@sveltia/ui 0.91.0 → 0.92.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 (226) hide show
  1. package/dist/components/bottom-navigation/bottom-navigation.svelte +3 -9
  2. package/dist/components/bottom-navigation/bottom-navigation.svelte.d.ts +4 -39
  3. package/dist/components/button/button-group.svelte +2 -4
  4. package/dist/components/button/button-group.svelte.d.ts +3 -19
  5. package/dist/components/button/select-button-group.svelte +2 -13
  6. package/dist/components/button/select-button-group.svelte.d.ts +5 -67
  7. package/dist/components/calendar/calendar.d.ts +9 -0
  8. package/dist/components/calendar/calendar.js +43 -0
  9. package/dist/components/calendar/calendar.svelte +26 -27
  10. package/dist/components/checkbox/checkbox-group.svelte +2 -8
  11. package/dist/components/checkbox/checkbox-group.svelte.d.ts +4 -39
  12. package/dist/components/dialog/alert-dialog.svelte.d.ts +2 -3
  13. package/dist/components/dialog/confirmation-dialog.svelte.d.ts +2 -3
  14. package/dist/components/dialog/dialog.svelte +6 -7
  15. package/dist/components/dialog/dialog.svelte.d.ts +2 -3
  16. package/dist/components/dialog/prompt-dialog.svelte +2 -2
  17. package/dist/components/dialog/prompt-dialog.svelte.d.ts +2 -3
  18. package/dist/components/disclosure/disclosure.svelte +14 -16
  19. package/dist/components/disclosure/disclosure.svelte.d.ts +4 -38
  20. package/dist/components/drawer/drawer.svelte +22 -39
  21. package/dist/components/drawer/drawer.svelte.d.ts +3 -24
  22. package/dist/components/grid/grid-body.svelte +2 -3
  23. package/dist/components/grid/grid-body.svelte.d.ts +3 -18
  24. package/dist/components/grid/grid-cell.svelte +2 -8
  25. package/dist/components/grid/grid-cell.svelte.d.ts +3 -22
  26. package/dist/components/grid/grid-col-header.svelte +2 -4
  27. package/dist/components/grid/grid-col-header.svelte.d.ts +3 -19
  28. package/dist/components/grid/grid-foot.svelte +4 -9
  29. package/dist/components/grid/grid-foot.svelte.d.ts +3 -22
  30. package/dist/components/grid/grid-head.svelte +4 -9
  31. package/dist/components/grid/grid-head.svelte.d.ts +3 -22
  32. package/dist/components/grid/grid-row-header.svelte +2 -8
  33. package/dist/components/grid/grid-row-header.svelte.d.ts +3 -22
  34. package/dist/components/grid/grid-row.svelte +4 -5
  35. package/dist/components/grid/grid-row.svelte.d.ts +3 -19
  36. package/dist/components/grid/grid.d.ts +10 -0
  37. package/dist/components/grid/grid.js +11 -0
  38. package/dist/components/grid/grid.svelte +6 -7
  39. package/dist/components/grid/grid.svelte.d.ts +5 -21
  40. package/dist/components/listbox/listbox.svelte +34 -15
  41. package/dist/components/listbox/listbox.svelte.d.ts +5 -69
  42. package/dist/components/listbox/option-group.svelte +2 -8
  43. package/dist/components/listbox/option-group.svelte.d.ts +4 -39
  44. package/dist/components/listbox/option.svelte +2 -1
  45. package/dist/components/menu/menu-item-group.svelte +2 -6
  46. package/dist/components/menu/menu-item-group.svelte.d.ts +3 -22
  47. package/dist/components/menu/menu-item.svelte +5 -1
  48. package/dist/components/menu/menu.svelte +2 -8
  49. package/dist/components/menu/menu.svelte.d.ts +4 -39
  50. package/dist/components/radio/radio-group.svelte +2 -17
  51. package/dist/components/radio/radio-group.svelte.d.ts +5 -67
  52. package/dist/components/radio/radio.svelte +19 -22
  53. package/dist/components/radio/radio.svelte.d.ts +10 -40
  54. package/dist/components/resizable-pane/resizable-handle.svelte +42 -49
  55. package/dist/components/resizable-pane/resizable-pane-group.svelte +44 -58
  56. package/dist/components/resizable-pane/resizable-pane-group.svelte.d.ts +3 -19
  57. package/dist/components/resizable-pane/resizable-pane.svelte +2 -5
  58. package/dist/components/resizable-pane/resizable-pane.svelte.d.ts +3 -19
  59. package/dist/components/resizable-pane/sizing.d.ts +24 -0
  60. package/dist/components/resizable-pane/sizing.js +83 -0
  61. package/dist/components/select/combobox.svelte +35 -39
  62. package/dist/components/select/select-tags.svelte +3 -13
  63. package/dist/components/select/select-tags.svelte.d.ts +5 -67
  64. package/dist/components/slider/slider.d.ts +5 -4
  65. package/dist/components/slider/slider.js +28 -23
  66. package/dist/components/slider/slider.svelte +64 -62
  67. package/dist/components/slider/slider.svelte.d.ts +4 -37
  68. package/dist/components/switch/switch.svelte +2 -13
  69. package/dist/components/switch/switch.svelte.d.ts +5 -67
  70. package/dist/components/table/table-body.svelte +2 -4
  71. package/dist/components/table/table-body.svelte.d.ts +3 -19
  72. package/dist/components/table/table-cell.svelte +2 -8
  73. package/dist/components/table/table-cell.svelte.d.ts +3 -22
  74. package/dist/components/table/table-col-header.svelte +2 -8
  75. package/dist/components/table/table-col-header.svelte.d.ts +3 -22
  76. package/dist/components/table/table-foot.svelte +2 -8
  77. package/dist/components/table/table-foot.svelte.d.ts +3 -22
  78. package/dist/components/table/table-head.svelte +2 -8
  79. package/dist/components/table/table-head.svelte.d.ts +3 -22
  80. package/dist/components/table/table-part.svelte +2 -4
  81. package/dist/components/table/table-part.svelte.d.ts +3 -19
  82. package/dist/components/table/table-row-header.svelte +2 -8
  83. package/dist/components/table/table-row-header.svelte.d.ts +3 -22
  84. package/dist/components/table/table-row.svelte +2 -8
  85. package/dist/components/table/table-row.svelte.d.ts +3 -22
  86. package/dist/components/table/table.svelte +2 -4
  87. package/dist/components/table/table.svelte.d.ts +3 -19
  88. package/dist/components/tabs/tab-box.svelte +2 -4
  89. package/dist/components/tabs/tab-box.svelte.d.ts +3 -19
  90. package/dist/components/tabs/tab-list.svelte +2 -7
  91. package/dist/components/tabs/tab-list.svelte.d.ts +4 -37
  92. package/dist/components/tabs/tab-panel.svelte +2 -8
  93. package/dist/components/tabs/tab-panel.svelte.d.ts +3 -22
  94. package/dist/components/tabs/tab-panels.svelte +2 -8
  95. package/dist/components/tabs/tab-panels.svelte.d.ts +3 -22
  96. package/dist/components/text-editor/code-editor.js +14 -7
  97. package/dist/components/text-editor/code-editor.svelte +14 -22
  98. package/dist/components/text-editor/code-editor.svelte.d.ts +5 -103
  99. package/dist/components/text-editor/config.d.ts +73 -0
  100. package/dist/components/text-editor/config.js +110 -0
  101. package/dist/components/text-editor/conversion/editor-components.js +4 -4
  102. package/dist/components/text-editor/conversion/html/export.js +1 -1
  103. package/dist/components/text-editor/conversion/import.js +32 -26
  104. package/dist/components/text-editor/conversion/markdown/block-conversion.d.ts +4 -0
  105. package/dist/components/text-editor/conversion/markdown/block-conversion.js +154 -0
  106. package/dist/components/text-editor/conversion/markdown/block-structure.d.ts +16 -0
  107. package/dist/components/text-editor/conversion/markdown/block-structure.js +254 -0
  108. package/dist/components/text-editor/conversion/markdown/code-blocks.d.ts +57 -0
  109. package/dist/components/text-editor/conversion/markdown/code-blocks.js +279 -0
  110. package/dist/components/text-editor/conversion/markdown/code-spans.d.ts +19 -0
  111. package/dist/components/text-editor/conversion/markdown/code-spans.js +71 -0
  112. package/dist/components/text-editor/conversion/markdown/formatting.d.ts +22 -0
  113. package/dist/components/text-editor/conversion/markdown/formatting.js +451 -0
  114. package/dist/components/text-editor/conversion/markdown/index.d.ts +10 -0
  115. package/dist/components/text-editor/conversion/markdown/index.js +55 -0
  116. package/dist/components/text-editor/conversion/markdown/placeholders.d.ts +2 -0
  117. package/dist/components/text-editor/conversion/markdown/placeholders.js +229 -0
  118. package/dist/components/text-editor/conversion/markdown/syntax.d.ts +99 -0
  119. package/dist/components/text-editor/conversion/markdown/syntax.js +206 -0
  120. package/dist/components/text-editor/conversion/placeholder-chars.d.ts +43 -0
  121. package/dist/components/text-editor/conversion/placeholder-chars.js +51 -0
  122. package/dist/components/text-editor/conversion/transformers/block-escape.d.ts +1 -0
  123. package/dist/components/text-editor/conversion/transformers/block-escape.js +53 -26
  124. package/dist/components/text-editor/conversion/transformers/code.d.ts +3 -14
  125. package/dist/components/text-editor/conversion/transformers/code.js +78 -16
  126. package/dist/components/text-editor/conversion/transformers/formatted-code.js +3 -18
  127. package/dist/components/text-editor/conversion/transformers/inline-code.js +3 -1
  128. package/dist/components/text-editor/conversion/transformers/link.js +3 -1
  129. package/dist/components/text-editor/conversion/transformers/raw-syntax.d.ts +0 -19
  130. package/dist/components/text-editor/conversion/transformers/raw-syntax.js +22 -93
  131. package/dist/components/text-editor/conversion/transformers/table.js +57 -16
  132. package/dist/components/text-editor/conversion/update.d.ts +19 -2
  133. package/dist/components/text-editor/conversion/update.js +63 -39
  134. package/dist/components/text-editor/core.d.ts +12 -51
  135. package/dist/components/text-editor/core.js +44 -66
  136. package/dist/components/text-editor/editing/raw-markdown.d.ts +3 -0
  137. package/dist/components/text-editor/editing/raw-markdown.js +46 -2
  138. package/dist/components/text-editor/lexical-root.svelte +49 -47
  139. package/dist/components/text-editor/lexical-root.svelte.d.ts +4 -67
  140. package/dist/components/text-editor/shiki/{facade.d.ts → engine.d.ts} +8 -8
  141. package/dist/components/text-editor/shiki/{facade.js → engine.js} +53 -156
  142. package/dist/components/text-editor/shiki/highlighter.js +5 -5
  143. package/dist/components/text-editor/shiki/lexical.d.ts +6 -0
  144. package/dist/components/text-editor/shiki/lexical.js +165 -0
  145. package/dist/components/text-editor/shiki/preload.js +1 -1
  146. package/dist/components/text-editor/shiki/source-highlight.svelte.d.ts +15 -0
  147. package/dist/components/text-editor/shiki/source-highlight.svelte.js +120 -0
  148. package/dist/components/text-editor/shiki/version.d.ts +1 -1
  149. package/dist/components/text-editor/shiki/version.js +1 -1
  150. package/dist/components/text-editor/store.svelte.js +65 -16
  151. package/dist/components/text-editor/text-editor.svelte +53 -145
  152. package/dist/components/text-editor/text-editor.svelte.d.ts +5 -103
  153. package/dist/components/text-editor/toolbar/actions.d.ts +25 -0
  154. package/dist/components/text-editor/toolbar/actions.js +107 -0
  155. package/dist/components/text-editor/toolbar/align-menu-button.svelte +16 -14
  156. package/dist/components/text-editor/toolbar/format-text-button.svelte +26 -24
  157. package/dist/components/text-editor/toolbar/insert-horizontal-rule-button.svelte +23 -23
  158. package/dist/components/text-editor/toolbar/insert-item-button.svelte +1 -1
  159. package/dist/components/text-editor/toolbar/insert-link-button.svelte +47 -51
  160. package/dist/components/text-editor/toolbar/insert-menu-button.svelte +1 -1
  161. package/dist/components/text-editor/toolbar/insert-table-button.svelte +35 -52
  162. package/dist/components/text-editor/toolbar/table-action-menu.svelte +19 -17
  163. package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte +16 -4
  164. package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte.d.ts +0 -8
  165. package/dist/components/text-editor/toolbar/toggle-block-menu-item.svelte +34 -33
  166. package/dist/components/text-editor/widgets/emoji-autocomplete.svelte +7 -6
  167. package/dist/components/text-editor/widgets/floating-link-editor.svelte +19 -32
  168. package/dist/components/text-editor/widgets/table-cell-menu-button.svelte +28 -32
  169. package/dist/components/text-field/date-time-input.svelte +7 -8
  170. package/dist/components/text-field/date-time-input.svelte.d.ts +3 -32
  171. package/dist/components/text-field/number-input.d.ts +0 -2
  172. package/dist/components/text-field/number-input.js +25 -25
  173. package/dist/components/text-field/number-input.svelte +18 -9
  174. package/dist/components/text-field/number-input.svelte.d.ts +1 -1
  175. package/dist/components/text-field/text-area.d.ts +2 -0
  176. package/dist/components/text-field/text-area.js +31 -0
  177. package/dist/components/text-field/text-area.svelte +12 -25
  178. package/dist/components/text-field/text-area.svelte.d.ts +5 -67
  179. package/dist/components/toast/toast.svelte +31 -8
  180. package/dist/components/toast/toast.svelte.d.ts +6 -6
  181. package/dist/components/toolbar/toolbar.svelte +2 -7
  182. package/dist/components/toolbar/toolbar.svelte.d.ts +4 -37
  183. package/dist/components/tree/tree-item.svelte +2 -6
  184. package/dist/components/tree/tree-item.svelte.d.ts +3 -22
  185. package/dist/components/tree/tree.svelte +3 -10
  186. package/dist/components/tree/tree.svelte.d.ts +4 -39
  187. package/dist/components/util/group.svelte +2 -7
  188. package/dist/components/util/group.svelte.d.ts +4 -37
  189. package/dist/components/util/modal.d.ts +9 -0
  190. package/dist/components/util/modal.js +30 -0
  191. package/dist/components/util/modal.svelte +16 -12
  192. package/dist/index.d.ts +1 -1
  193. package/dist/index.js +1 -1
  194. package/dist/locales/hu.yaml +176 -0
  195. package/dist/services/composite-widget.svelte.d.ts +76 -0
  196. package/dist/services/composite-widget.svelte.js +157 -0
  197. package/dist/services/focus.d.ts +2 -0
  198. package/dist/services/focus.js +68 -0
  199. package/dist/services/group.svelte.d.ts +17 -69
  200. package/dist/services/group.svelte.js +128 -391
  201. package/dist/services/label.d.ts +9 -0
  202. package/dist/services/label.js +22 -0
  203. package/dist/services/menu.d.ts +8 -0
  204. package/dist/services/menu.js +237 -0
  205. package/dist/services/navigation.d.ts +9 -0
  206. package/dist/services/navigation.js +13 -0
  207. package/dist/services/number.d.ts +2 -0
  208. package/dist/services/number.js +27 -0
  209. package/dist/services/pointer-drag.d.ts +14 -0
  210. package/dist/services/pointer-drag.js +89 -0
  211. package/dist/services/popup.svelte.js +123 -103
  212. package/dist/services/text.d.ts +3 -0
  213. package/dist/services/text.js +17 -0
  214. package/dist/services/tree.svelte.d.ts +29 -43
  215. package/dist/services/tree.svelte.js +58 -105
  216. package/dist/services/type-ahead.d.ts +10 -1
  217. package/dist/services/type-ahead.js +56 -34
  218. package/dist/typedefs.d.ts +103 -4
  219. package/dist/typedefs.js +60 -4
  220. package/package.json +1 -1
  221. package/dist/components/text-editor/conversion/markdown.d.ts +0 -56
  222. package/dist/components/text-editor/conversion/markdown.js +0 -949
  223. package/dist/components/text-editor/toolbar/code-editor-toolbar.svelte +0 -28
  224. package/dist/components/text-editor/toolbar/code-editor-toolbar.svelte.d.ts +0 -37
  225. package/dist/components/text-editor/toolbar/insert-component.d.ts +0 -3
  226. package/dist/components/text-editor/toolbar/insert-component.js +0 -37
@@ -9,17 +9,11 @@
9
9
  import TablePart from './table-part.svelte';
10
10
 
11
11
  /**
12
- * @import { Snippet } from 'svelte';
12
+ * @import { ContainerProps } from '../../typedefs.js';
13
13
  */
14
14
 
15
15
  /**
16
- * @typedef {object} Props
17
- * @property {string} [class] The `class` attribute on the wrapper element.
18
- * @property {Snippet} [children] Primary slot content.
19
- */
20
-
21
- /**
22
- * @type {Props & Record<string, any>}
16
+ * @type {ContainerProps & Record<string, any>}
23
17
  */
24
18
  let {
25
19
  /* eslint-disable prefer-const */
@@ -1,31 +1,12 @@
1
1
  export default TableFoot;
2
2
  type TableFoot = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Props & Record<string, any>>): void;
4
+ $set?(props: Partial<ContainerProps & Record<string, any>>): void;
5
5
  };
6
6
  /**
7
7
  * The equivalent of the HTML `<tfoot>` element.
8
8
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot
9
9
  * @see https://w3c.github.io/aria/#rowgroup
10
10
  */
11
- declare const TableFoot: import("svelte").Component<{
12
- /**
13
- * The `class` attribute on the wrapper element.
14
- */
15
- class?: string | undefined;
16
- /**
17
- * Primary slot content.
18
- */
19
- children?: Snippet<[]> | undefined;
20
- } & Record<string, any>, {}, "">;
21
- type Props = {
22
- /**
23
- * The `class` attribute on the wrapper element.
24
- */
25
- class?: string | undefined;
26
- /**
27
- * Primary slot content.
28
- */
29
- children?: Snippet<[]> | undefined;
30
- };
31
- import type { Snippet } from 'svelte';
11
+ declare const TableFoot: import("svelte").Component<ContainerProps & Record<string, any>, {}, "">;
12
+ import type { ContainerProps } from '../../typedefs.js';
@@ -9,17 +9,11 @@
9
9
  import TablePart from './table-part.svelte';
10
10
 
11
11
  /**
12
- * @import { Snippet } from 'svelte';
12
+ * @import { ContainerProps } from '../../typedefs.js';
13
13
  */
14
14
 
15
15
  /**
16
- * @typedef {object} Props
17
- * @property {string} [class] The `class` attribute on the wrapper element.
18
- * @property {Snippet} [children] Primary slot content.
19
- */
20
-
21
- /**
22
- * @type {Props & Record<string, any>}
16
+ * @type {ContainerProps & Record<string, any>}
23
17
  */
24
18
  let {
25
19
  /* eslint-disable prefer-const */
@@ -1,31 +1,12 @@
1
1
  export default TableHead;
2
2
  type TableHead = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Props & Record<string, any>>): void;
4
+ $set?(props: Partial<ContainerProps & Record<string, any>>): void;
5
5
  };
6
6
  /**
7
7
  * The equivalent of the HTML `<thead>` element.
8
8
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead
9
9
  * @see https://w3c.github.io/aria/#rowgroup
10
10
  */
11
- declare const TableHead: import("svelte").Component<{
12
- /**
13
- * The `class` attribute on the wrapper element.
14
- */
15
- class?: string | undefined;
16
- /**
17
- * Primary slot content.
18
- */
19
- children?: Snippet<[]> | undefined;
20
- } & Record<string, any>, {}, "">;
21
- type Props = {
22
- /**
23
- * The `class` attribute on the wrapper element.
24
- */
25
- class?: string | undefined;
26
- /**
27
- * Primary slot content.
28
- */
29
- children?: Snippet<[]> | undefined;
30
- };
31
- import type { Snippet } from 'svelte';
11
+ declare const TableHead: import("svelte").Component<ContainerProps & Record<string, any>, {}, "">;
12
+ import type { ContainerProps } from '../../typedefs.js';
@@ -5,7 +5,7 @@
5
5
  -->
6
6
  <script>
7
7
  /**
8
- * @import { Snippet } from 'svelte';
8
+ * @import { ContainerProps } from '../../typedefs.js';
9
9
  */
10
10
 
11
11
  /**
@@ -17,12 +17,10 @@
17
17
  * @property {string} role The `role` attribute on the wrapper element.
18
18
  * @property {`table-${PartName}` | `grid-${PartName}`} kind The component class name, which also
19
19
  * determines the `display` style.
20
- * @property {string} [class] The `class` attribute on the wrapper element.
21
- * @property {Snippet} [children] Primary slot content.
22
20
  */
23
21
 
24
22
  /**
25
- * @type {Props & Record<string, any>}
23
+ * @type {ContainerProps & Props & Record<string, any>}
26
24
  */
27
25
  let {
28
26
  /* eslint-disable prefer-const */
@@ -1,13 +1,13 @@
1
1
  export default TablePart;
2
2
  type TablePart = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Props & Record<string, any>>): void;
4
+ $set?(props: Partial<ContainerProps & Props & Record<string, any>>): void;
5
5
  };
6
6
  /**
7
7
  * The row group, row or cell behind the leaf components of `<Table>` and `<Grid>`, which only differ
8
8
  * in their role, class name and `display`. Internal; not exported.
9
9
  */
10
- declare const TablePart: import("svelte").Component<{
10
+ declare const TablePart: import("svelte").Component<ContainerProps & {
11
11
  /**
12
12
  * The `role` attribute on the wrapper element.
13
13
  */
@@ -17,14 +17,6 @@ declare const TablePart: import("svelte").Component<{
17
17
  * determines the `display` style.
18
18
  */
19
19
  kind: `table-${"head" | "foot" | "row" | "col-header" | "row-header" | "cell"}` | `grid-${"head" | "foot" | "row" | "col-header" | "row-header" | "cell"}`;
20
- /**
21
- * The `class` attribute on the wrapper element.
22
- */
23
- class?: string | undefined;
24
- /**
25
- * Primary slot content.
26
- */
27
- children?: Snippet<[]> | undefined;
28
20
  } & Record<string, any>, {}, "">;
29
21
  type Props = {
30
22
  /**
@@ -36,13 +28,5 @@ type Props = {
36
28
  * determines the `display` style.
37
29
  */
38
30
  kind: `table-${"head" | "foot" | "row" | "col-header" | "row-header" | "cell"}` | `grid-${"head" | "foot" | "row" | "col-header" | "row-header" | "cell"}`;
39
- /**
40
- * The `class` attribute on the wrapper element.
41
- */
42
- class?: string | undefined;
43
- /**
44
- * Primary slot content.
45
- */
46
- children?: Snippet<[]> | undefined;
47
31
  };
48
- import type { Snippet } from 'svelte';
32
+ import type { ContainerProps } from '../../typedefs.js';
@@ -8,17 +8,11 @@
8
8
  import TablePart from './table-part.svelte';
9
9
 
10
10
  /**
11
- * @import { Snippet } from 'svelte';
11
+ * @import { ContainerProps } from '../../typedefs.js';
12
12
  */
13
13
 
14
14
  /**
15
- * @typedef {object} Props
16
- * @property {string} [class] The `class` attribute on the wrapper element.
17
- * @property {Snippet} [children] Primary slot content.
18
- */
19
-
20
- /**
21
- * @type {Props & Record<string, any>}
15
+ * @type {ContainerProps & Record<string, any>}
22
16
  */
23
17
  let {
24
18
  /* eslint-disable prefer-const */
@@ -1,31 +1,12 @@
1
1
  export default TableRowHeader;
2
2
  type TableRowHeader = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Props & Record<string, any>>): void;
4
+ $set?(props: Partial<ContainerProps & Record<string, any>>): void;
5
5
  };
6
6
  /**
7
7
  * The equivalent of the HTML `<th scope="row">` element.
8
8
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th
9
9
  * @see https://w3c.github.io/aria/#rowheader
10
10
  */
11
- declare const TableRowHeader: import("svelte").Component<{
12
- /**
13
- * The `class` attribute on the wrapper element.
14
- */
15
- class?: string | undefined;
16
- /**
17
- * Primary slot content.
18
- */
19
- children?: Snippet<[]> | undefined;
20
- } & Record<string, any>, {}, "">;
21
- type Props = {
22
- /**
23
- * The `class` attribute on the wrapper element.
24
- */
25
- class?: string | undefined;
26
- /**
27
- * Primary slot content.
28
- */
29
- children?: Snippet<[]> | undefined;
30
- };
31
- import type { Snippet } from 'svelte';
11
+ declare const TableRowHeader: import("svelte").Component<ContainerProps & Record<string, any>, {}, "">;
12
+ import type { ContainerProps } from '../../typedefs.js';
@@ -8,17 +8,11 @@
8
8
  import TablePart from './table-part.svelte';
9
9
 
10
10
  /**
11
- * @import { Snippet } from 'svelte';
11
+ * @import { ContainerProps } from '../../typedefs.js';
12
12
  */
13
13
 
14
14
  /**
15
- * @typedef {object} Props
16
- * @property {string} [class] The `class` attribute on the wrapper element.
17
- * @property {Snippet} [children] Primary slot content.
18
- */
19
-
20
- /**
21
- * @type {Props & Record<string, any>}
15
+ * @type {ContainerProps & Record<string, any>}
22
16
  */
23
17
  let {
24
18
  /* eslint-disable prefer-const */
@@ -1,31 +1,12 @@
1
1
  export default TableRow;
2
2
  type TableRow = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Props & Record<string, any>>): void;
4
+ $set?(props: Partial<ContainerProps & Record<string, any>>): void;
5
5
  };
6
6
  /**
7
7
  * The equivalent of the HTML `<tr>` element.
8
8
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr
9
9
  * @see https://w3c.github.io/aria/#row
10
10
  */
11
- declare const TableRow: import("svelte").Component<{
12
- /**
13
- * The `class` attribute on the wrapper element.
14
- */
15
- class?: string | undefined;
16
- /**
17
- * Primary slot content.
18
- */
19
- children?: Snippet<[]> | undefined;
20
- } & Record<string, any>, {}, "">;
21
- type Props = {
22
- /**
23
- * The `class` attribute on the wrapper element.
24
- */
25
- class?: string | undefined;
26
- /**
27
- * Primary slot content.
28
- */
29
- children?: Snippet<[]> | undefined;
30
- };
31
- import type { Snippet } from 'svelte';
11
+ declare const TableRow: import("svelte").Component<ContainerProps & Record<string, any>, {}, "">;
12
+ import type { ContainerProps } from '../../typedefs.js';
@@ -6,18 +6,16 @@
6
6
  -->
7
7
  <script>
8
8
  /**
9
- * @import { Snippet } from 'svelte';
9
+ * @import { ContainerProps } from '../../typedefs.js';
10
10
  */
11
11
 
12
12
  /**
13
13
  * @typedef {object} Props
14
- * @property {string} [class] The `class` attribute on the wrapper element.
15
14
  * @property {string} [ariaLabel] The `aria-label` attribute on the wrapper element.
16
- * @property {Snippet} [children] Primary slot content.
17
15
  */
18
16
 
19
17
  /**
20
- * @type {Props & Record<string, any>}
18
+ * @type {ContainerProps & Props & Record<string, any>}
21
19
  */
22
20
  let {
23
21
  /* eslint-disable prefer-const */
@@ -1,39 +1,23 @@
1
1
  export default Table;
2
2
  type Table = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Props & Record<string, any>>): void;
4
+ $set?(props: Partial<ContainerProps & Props & Record<string, any>>): void;
5
5
  };
6
6
  /**
7
7
  * The equivalent of the HTML `<table>` element.
8
8
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table
9
9
  * @see https://w3c.github.io/aria/#table
10
10
  */
11
- declare const Table: import("svelte").Component<{
12
- /**
13
- * The `class` attribute on the wrapper element.
14
- */
15
- class?: string | undefined;
11
+ declare const Table: import("svelte").Component<ContainerProps & {
16
12
  /**
17
13
  * The `aria-label` attribute on the wrapper element.
18
14
  */
19
15
  ariaLabel?: string | undefined;
20
- /**
21
- * Primary slot content.
22
- */
23
- children?: Snippet<[]> | undefined;
24
16
  } & Record<string, any>, {}, "">;
25
17
  type Props = {
26
- /**
27
- * The `class` attribute on the wrapper element.
28
- */
29
- class?: string | undefined;
30
18
  /**
31
19
  * The `aria-label` attribute on the wrapper element.
32
20
  */
33
21
  ariaLabel?: string | undefined;
34
- /**
35
- * Primary slot content.
36
- */
37
- children?: Snippet<[]> | undefined;
38
22
  };
39
- import type { Snippet } from 'svelte';
23
+ import type { ContainerProps } from '../../typedefs.js';
@@ -5,19 +5,17 @@
5
5
  -->
6
6
  <script>
7
7
  /**
8
- * @import { Snippet } from 'svelte';
8
+ * @import { ContainerProps } from '../../typedefs.js';
9
9
  */
10
10
 
11
11
  /**
12
12
  * @typedef {object} Props
13
- * @property {string} [class] The `class` attribute on the wrapper element.
14
13
  * @property {'horizontal' | 'vertical'} [orientation] Orientation of the widget. This is
15
14
  * typically contrary to `<TabList>`’s `orientation`.
16
- * @property {Snippet} [children] Primary slot content.
17
15
  */
18
16
 
19
17
  /**
20
- * @type {Props & Record<string, any>}
18
+ * @type {ContainerProps & Props & Record<string, any>}
21
19
  */
22
20
  let {
23
21
  /* eslint-disable prefer-const */
@@ -1,40 +1,24 @@
1
1
  export default TabBox;
2
2
  type TabBox = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Props & Record<string, any>>): void;
4
+ $set?(props: Partial<ContainerProps & Props & Record<string, any>>): void;
5
5
  };
6
6
  /**
7
7
  * The container of `<TabList>` and `<TabPanels>`. The component name derives from XUL. This can be
8
8
  * omitted if not using vertical tabs.
9
9
  */
10
- declare const TabBox: import("svelte").Component<{
11
- /**
12
- * The `class` attribute on the wrapper element.
13
- */
14
- class?: string | undefined;
10
+ declare const TabBox: import("svelte").Component<ContainerProps & {
15
11
  /**
16
12
  * Orientation of the widget. This is
17
13
  * typically contrary to `<TabList>`’s `orientation`.
18
14
  */
19
15
  orientation?: "horizontal" | "vertical" | undefined;
20
- /**
21
- * Primary slot content.
22
- */
23
- children?: Snippet<[]> | undefined;
24
16
  } & Record<string, any>, {}, "">;
25
17
  type Props = {
26
- /**
27
- * The `class` attribute on the wrapper element.
28
- */
29
- class?: string | undefined;
30
18
  /**
31
19
  * Orientation of the widget. This is
32
20
  * typically contrary to `<TabList>`’s `orientation`.
33
21
  */
34
22
  orientation?: "horizontal" | "vertical" | undefined;
35
- /**
36
- * Primary slot content.
37
- */
38
- children?: Snippet<[]> | undefined;
39
23
  };
40
- import type { Snippet } from 'svelte';
24
+ import type { ContainerProps } from '../../typedefs.js';
@@ -10,25 +10,20 @@
10
10
  import { getIndicatorStyle } from './tab-list.js';
11
11
 
12
12
  /**
13
- * @import { Snippet } from 'svelte';
13
+ * @import { ContainerProps, WidgetStateProps } from '../../typedefs.js';
14
14
  */
15
15
 
16
16
  /**
17
17
  * @typedef {object} Props
18
- * @property {string} [class] The `class` attribute on the wrapper element.
19
- * @property {boolean} [hidden] Whether to hide the widget.
20
- * @property {boolean} [disabled] Whether to disable the widget. An alias of the `aria-disabled`
21
- * attribute.
22
18
  * @property {'horizontal' | 'vertical'} [orientation] Orientation of the widget. An alias of the
23
19
  * `aria-orientation` attribute.
24
20
  * @property {string} [name] The `data-name` attribute on the wrapper element.
25
21
  * @property {string} [ariaLabel] The `aria-label` attribute on the wrapper element.
26
- * @property {Snippet} [children] Primary slot content.
27
22
  * @property {(event: CustomEvent) => void} [onChange] Custom `Change` event handler.
28
23
  */
29
24
 
30
25
  /**
31
- * @type {Props & Record<string, any>}
26
+ * @type {ContainerProps & WidgetStateProps & Props & Record<string, any>}
32
27
  */
33
28
  let {
34
29
  /* eslint-disable prefer-const */
@@ -1,27 +1,14 @@
1
1
  export default TabList;
2
2
  type TabList = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Props & Record<string, any>>): void;
4
+ $set?(props: Partial<ContainerProps & WidgetStateProps & Props & Record<string, any>>): void;
5
5
  };
6
6
  /**
7
7
  * A tab list widget.
8
8
  * @see https://w3c.github.io/aria/#tablist
9
9
  * @see https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
10
10
  */
11
- declare const TabList: import("svelte").Component<{
12
- /**
13
- * The `class` attribute on the wrapper element.
14
- */
15
- class?: string | undefined;
16
- /**
17
- * Whether to hide the widget.
18
- */
19
- hidden?: boolean | undefined;
20
- /**
21
- * Whether to disable the widget. An alias of the `aria-disabled`
22
- * attribute.
23
- */
24
- disabled?: boolean | undefined;
11
+ declare const TabList: import("svelte").Component<ContainerProps & WidgetStateProps & {
25
12
  /**
26
13
  * Orientation of the widget. An alias of the
27
14
  * `aria-orientation` attribute.
@@ -35,29 +22,12 @@ declare const TabList: import("svelte").Component<{
35
22
  * The `aria-label` attribute on the wrapper element.
36
23
  */
37
24
  ariaLabel?: string | undefined;
38
- /**
39
- * Primary slot content.
40
- */
41
- children?: Snippet<[]> | undefined;
42
25
  /**
43
26
  * Custom `Change` event handler.
44
27
  */
45
28
  onChange?: ((event: CustomEvent) => void) | undefined;
46
29
  } & Record<string, any>, {}, "">;
47
30
  type Props = {
48
- /**
49
- * The `class` attribute on the wrapper element.
50
- */
51
- class?: string | undefined;
52
- /**
53
- * Whether to hide the widget.
54
- */
55
- hidden?: boolean | undefined;
56
- /**
57
- * Whether to disable the widget. An alias of the `aria-disabled`
58
- * attribute.
59
- */
60
- disabled?: boolean | undefined;
61
31
  /**
62
32
  * Orientation of the widget. An alias of the
63
33
  * `aria-orientation` attribute.
@@ -71,13 +41,10 @@ type Props = {
71
41
  * The `aria-label` attribute on the wrapper element.
72
42
  */
73
43
  ariaLabel?: string | undefined;
74
- /**
75
- * Primary slot content.
76
- */
77
- children?: Snippet<[]> | undefined;
78
44
  /**
79
45
  * Custom `Change` event handler.
80
46
  */
81
47
  onChange?: ((event: CustomEvent) => void) | undefined;
82
48
  };
83
- import type { Snippet } from 'svelte';
49
+ import type { ContainerProps } from '../../typedefs.js';
50
+ import type { WidgetStateProps } from '../../typedefs.js';
@@ -6,17 +6,11 @@
6
6
  -->
7
7
  <script>
8
8
  /**
9
- * @import { Snippet } from 'svelte';
9
+ * @import { ContainerProps } from '../../typedefs.js';
10
10
  */
11
11
 
12
12
  /**
13
- * @typedef {object} Props
14
- * @property {string} [class] The `class` attribute on the wrapper element.
15
- * @property {Snippet} [children] Primary slot content.
16
- */
17
-
18
- /**
19
- * @type {Props & Record<string, any>}
13
+ * @type {ContainerProps & Record<string, any>}
20
14
  */
21
15
  let {
22
16
  /* eslint-disable prefer-const */
@@ -1,31 +1,12 @@
1
1
  export default TabPanel;
2
2
  type TabPanel = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Props & Record<string, any>>): void;
4
+ $set?(props: Partial<ContainerProps & Record<string, any>>): void;
5
5
  };
6
6
  /**
7
7
  * A tab content panel.
8
8
  * @see https://w3c.github.io/aria/#tabpanel
9
9
  * @see https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
10
10
  */
11
- declare const TabPanel: import("svelte").Component<{
12
- /**
13
- * The `class` attribute on the wrapper element.
14
- */
15
- class?: string | undefined;
16
- /**
17
- * Primary slot content.
18
- */
19
- children?: Snippet<[]> | undefined;
20
- } & Record<string, any>, {}, "">;
21
- type Props = {
22
- /**
23
- * The `class` attribute on the wrapper element.
24
- */
25
- class?: string | undefined;
26
- /**
27
- * Primary slot content.
28
- */
29
- children?: Snippet<[]> | undefined;
30
- };
31
- import type { Snippet } from 'svelte';
11
+ declare const TabPanel: import("svelte").Component<ContainerProps & Record<string, any>, {}, "">;
12
+ import type { ContainerProps } from '../../typedefs.js';
@@ -5,17 +5,11 @@
5
5
  -->
6
6
  <script>
7
7
  /**
8
- * @import { Snippet } from 'svelte';
8
+ * @import { ContainerProps } from '../../typedefs.js';
9
9
  */
10
10
 
11
11
  /**
12
- * @typedef {object} Props
13
- * @property {string} [class] The `class` attribute on the wrapper element.
14
- * @property {Snippet} [children] Primary slot content.
15
- */
16
-
17
- /**
18
- * @type {Props & Record<string, any>}
12
+ * @type {ContainerProps & Record<string, any>}
19
13
  */
20
14
  let {
21
15
  /* eslint-disable prefer-const */
@@ -1,30 +1,11 @@
1
1
  export default TabPanels;
2
2
  type TabPanels = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Props & Record<string, any>>): void;
4
+ $set?(props: Partial<ContainerProps & Record<string, any>>): void;
5
5
  };
6
6
  /**
7
7
  * The container of `<TabPanel>`s. The component name derives from XUL. This can be omitted if the
8
8
  * child tab panels don’t need a sliding animation.
9
9
  */
10
- declare const TabPanels: import("svelte").Component<{
11
- /**
12
- * The `class` attribute on the wrapper element.
13
- */
14
- class?: string | undefined;
15
- /**
16
- * Primary slot content.
17
- */
18
- children?: Snippet<[]> | undefined;
19
- } & Record<string, any>, {}, "">;
20
- type Props = {
21
- /**
22
- * The `class` attribute on the wrapper element.
23
- */
24
- class?: string | undefined;
25
- /**
26
- * Primary slot content.
27
- */
28
- children?: Snippet<[]> | undefined;
29
- };
30
- import type { Snippet } from 'svelte';
10
+ declare const TabPanels: import("svelte").Component<ContainerProps & Record<string, any>, {}, "">;
11
+ import type { ContainerProps } from '../../typedefs.js';