carbon-components-svelte 0.98.3 → 0.98.5

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 (120) hide show
  1. package/package.json +1 -1
  2. package/src/TreeView/TreeView.svelte +5 -5
  3. package/src/Truncate/truncate.d.ts +2 -2
  4. package/types/Accordion/Accordion.svelte.d.ts +2 -0
  5. package/types/Accordion/AccordionItem.svelte.d.ts +2 -0
  6. package/types/AspectRatio/AspectRatio.svelte.d.ts +2 -0
  7. package/types/Breadcrumb/Breadcrumb.svelte.d.ts +2 -0
  8. package/types/Breadcrumb/BreadcrumbItem.svelte.d.ts +5 -0
  9. package/types/Breakpoint/Breakpoint.svelte.d.ts +5 -0
  10. package/types/Button/Button.svelte.d.ts +17 -0
  11. package/types/Button/ButtonSet.svelte.d.ts +2 -0
  12. package/types/CodeSnippet/CodeSnippet.svelte.d.ts +2 -0
  13. package/types/ComboBox/ComboBox.svelte.d.ts +2 -0
  14. package/types/ComposedModal/ComposedModal.svelte.d.ts +2 -0
  15. package/types/ComposedModal/ModalBody.svelte.d.ts +2 -0
  16. package/types/ComposedModal/ModalFooter.svelte.d.ts +2 -0
  17. package/types/ComposedModal/ModalHeader.svelte.d.ts +2 -0
  18. package/types/ContainedList/ContainedList.svelte.d.ts +2 -0
  19. package/types/ContainedList/ContainedListItem.svelte.d.ts +2 -0
  20. package/types/ContentSwitcher/ContentSwitcher.svelte.d.ts +2 -0
  21. package/types/ContentSwitcher/Switch.svelte.d.ts +2 -0
  22. package/types/ContextMenu/ContextMenu.svelte.d.ts +2 -0
  23. package/types/ContextMenu/ContextMenuGroup.svelte.d.ts +2 -0
  24. package/types/ContextMenu/ContextMenuOption.svelte.d.ts +2 -0
  25. package/types/ContextMenu/ContextMenuRadioGroup.svelte.d.ts +2 -0
  26. package/types/DataTable/DataTable.svelte.d.ts +4 -1
  27. package/types/DataTable/Table.svelte.d.ts +2 -0
  28. package/types/DataTable/TableBody.svelte.d.ts +2 -0
  29. package/types/DataTable/TableCell.svelte.d.ts +2 -0
  30. package/types/DataTable/TableContainer.svelte.d.ts +2 -0
  31. package/types/DataTable/TableHead.svelte.d.ts +2 -0
  32. package/types/DataTable/TableHeader.svelte.d.ts +2 -0
  33. package/types/DataTable/TableRow.svelte.d.ts +2 -0
  34. package/types/DataTable/Toolbar.svelte.d.ts +2 -0
  35. package/types/DataTable/ToolbarBatchActions.svelte.d.ts +2 -0
  36. package/types/DataTable/ToolbarContent.svelte.d.ts +3 -1
  37. package/types/DataTable/ToolbarMenu.svelte.d.ts +3 -1
  38. package/types/DataTable/ToolbarMenuItem.svelte.d.ts +3 -1
  39. package/types/DatePicker/DatePicker.svelte.d.ts +2 -0
  40. package/types/Dropdown/Dropdown.svelte.d.ts +2 -0
  41. package/types/FluidForm/FluidForm.svelte.d.ts +2 -0
  42. package/types/Form/Form.svelte.d.ts +2 -0
  43. package/types/FormGroup/FormGroup.svelte.d.ts +2 -0
  44. package/types/FormItem/FormItem.svelte.d.ts +2 -0
  45. package/types/FormLabel/FormLabel.svelte.d.ts +2 -0
  46. package/types/Grid/Column.svelte.d.ts +5 -0
  47. package/types/Grid/Grid.svelte.d.ts +5 -0
  48. package/types/Grid/Row.svelte.d.ts +5 -0
  49. package/types/Heading/Heading.svelte.d.ts +3 -1
  50. package/types/Heading/Section.svelte.d.ts +3 -0
  51. package/types/Link/Link.svelte.d.ts +2 -0
  52. package/types/Link/OutboundLink.svelte.d.ts +3 -1
  53. package/types/ListBox/ListBox.svelte.d.ts +2 -0
  54. package/types/ListBox/ListBoxField.svelte.d.ts +2 -0
  55. package/types/ListBox/ListBoxMenu.svelte.d.ts +2 -0
  56. package/types/ListBox/ListBoxMenuItem.svelte.d.ts +2 -0
  57. package/types/ListItem/ListItem.svelte.d.ts +2 -0
  58. package/types/Modal/Modal.svelte.d.ts +2 -0
  59. package/types/MultiSelect/MultiSelect.svelte.d.ts +3 -0
  60. package/types/Notification/InlineNotification.svelte.d.ts +2 -0
  61. package/types/Notification/NotificationActionButton.svelte.d.ts +3 -1
  62. package/types/Notification/ToastNotification.svelte.d.ts +2 -0
  63. package/types/OrderedList/OrderedList.svelte.d.ts +2 -0
  64. package/types/OverflowMenu/OverflowMenu.svelte.d.ts +2 -0
  65. package/types/OverflowMenu/OverflowMenuItem.svelte.d.ts +2 -0
  66. package/types/PaginationNav/PaginationItem.svelte.d.ts +2 -0
  67. package/types/Popover/Popover.svelte.d.ts +2 -0
  68. package/types/Portal/Portal.svelte.d.ts +2 -0
  69. package/types/ProgressIndicator/ProgressIndicator.svelte.d.ts +2 -0
  70. package/types/ProgressIndicator/ProgressStep.svelte.d.ts +5 -0
  71. package/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts +2 -0
  72. package/types/RecursiveList/RecursiveListItem.svelte.d.ts +2 -0
  73. package/types/Select/Select.svelte.d.ts +3 -0
  74. package/types/Select/SelectItemGroup.svelte.d.ts +2 -0
  75. package/types/Stack/Stack.svelte.d.ts +2 -0
  76. package/types/StructuredList/StructuredList.svelte.d.ts +2 -0
  77. package/types/StructuredList/StructuredListBody.svelte.d.ts +2 -0
  78. package/types/StructuredList/StructuredListCell.svelte.d.ts +2 -0
  79. package/types/StructuredList/StructuredListHead.svelte.d.ts +2 -0
  80. package/types/StructuredList/StructuredListRow.svelte.d.ts +2 -0
  81. package/types/Tabs/Tab.svelte.d.ts +2 -0
  82. package/types/Tabs/TabContent.svelte.d.ts +2 -0
  83. package/types/Tabs/Tabs.svelte.d.ts +2 -0
  84. package/types/Tag/Tag.svelte.d.ts +5 -0
  85. package/types/Theme/Theme.svelte.d.ts +2 -0
  86. package/types/Tile/ClickableTile.svelte.d.ts +2 -0
  87. package/types/Tile/RadioTile.svelte.d.ts +2 -0
  88. package/types/Tile/SelectableTile.svelte.d.ts +2 -0
  89. package/types/Tile/SelectableTileGroup.svelte.d.ts +3 -1
  90. package/types/Tile/Tile.svelte.d.ts +2 -0
  91. package/types/Tile/TileGroup.svelte.d.ts +3 -1
  92. package/types/TimePicker/TimePicker.svelte.d.ts +2 -0
  93. package/types/TimePicker/TimePickerSelect.svelte.d.ts +2 -0
  94. package/types/Tooltip/Tooltip.svelte.d.ts +2 -0
  95. package/types/Tooltip/TooltipFooter.svelte.d.ts +2 -0
  96. package/types/TooltipDefinition/TooltipDefinition.svelte.d.ts +2 -0
  97. package/types/TooltipIcon/TooltipIcon.svelte.d.ts +2 -0
  98. package/types/TreeView/TreeView.svelte.d.ts +23 -6
  99. package/types/TreeView/TreeViewNode.svelte.d.ts +16 -0
  100. package/types/TreeView/TreeViewNodeList.svelte.d.ts +16 -0
  101. package/types/Truncate/Truncate.svelte.d.ts +2 -0
  102. package/types/Truncate/truncate.d.ts +2 -2
  103. package/types/UIShell/Content.svelte.d.ts +2 -0
  104. package/types/UIShell/Header.svelte.d.ts +2 -0
  105. package/types/UIShell/HeaderAction.svelte.d.ts +2 -0
  106. package/types/UIShell/HeaderNav.svelte.d.ts +2 -0
  107. package/types/UIShell/HeaderNavItem.svelte.d.ts +2 -0
  108. package/types/UIShell/HeaderNavMenu.svelte.d.ts +2 -0
  109. package/types/UIShell/HeaderPanelDivider.svelte.d.ts +3 -1
  110. package/types/UIShell/HeaderPanelLink.svelte.d.ts +2 -0
  111. package/types/UIShell/HeaderPanelLinks.svelte.d.ts +3 -1
  112. package/types/UIShell/HeaderSearch.svelte.d.ts +2 -0
  113. package/types/UIShell/HeaderUtilities.svelte.d.ts +3 -1
  114. package/types/UIShell/SideNav.svelte.d.ts +2 -0
  115. package/types/UIShell/SideNavItems.svelte.d.ts +3 -1
  116. package/types/UIShell/SideNavLink.svelte.d.ts +2 -0
  117. package/types/UIShell/SideNavMenu.svelte.d.ts +2 -0
  118. package/types/UIShell/SideNavMenuItem.svelte.d.ts +2 -0
  119. package/types/UIShell/SkipToContent.svelte.d.ts +2 -0
  120. package/types/UnorderedList/UnorderedList.svelte.d.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-components-svelte",
3
- "version": "0.98.3",
3
+ "version": "0.98.5",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Svelte implementation of the Carbon Design System",
6
6
  "type": "module",
@@ -281,19 +281,19 @@
281
281
  /** @type {ReadonlyArray<TreeNodeId>} */
282
282
  let lastExpandedIdsRef = expandedIds;
283
283
 
284
- /** @type {(node: TreeNode) => void} */
284
+ /** @type {(node: Node) => void} */
285
285
  const clickNode = (node) => {
286
286
  activeId = node.id;
287
287
  selectedIds = [node.id];
288
288
  dispatch("select", node);
289
289
  };
290
290
 
291
- /** @type {(node: TreeNode) => void} */
291
+ /** @type {(node: Node) => void} */
292
292
  const selectNode = (node) => {
293
293
  selectedIds = [node.id];
294
294
  };
295
295
 
296
- /** @type {(node: TreeNode, expanded: boolean) => void} */
296
+ /** @type {(node: Node, expanded: boolean) => void} */
297
297
  const expandNode = (node, expanded) => {
298
298
  if (expanded) {
299
299
  expandedIdsSet.add(node.id);
@@ -304,10 +304,10 @@
304
304
  lastExpandedIdsRef = expandedIds;
305
305
  };
306
306
 
307
- /** @type {(node: TreeNode) => void} */
307
+ /** @type {(node: Node) => void} */
308
308
  const focusNode = (node) => dispatch("focus", node);
309
309
 
310
- /** @type {(node: TreeNode) => void} */
310
+ /** @type {(node: Node) => void} */
311
311
  const toggleNode = (node) => dispatch("toggle", node);
312
312
 
313
313
  setContext("TreeView", {
@@ -2,11 +2,11 @@ interface TruncateOptions {
2
2
  clamp?: "end" | "front";
3
3
  }
4
4
 
5
- export function TruncateAction(
5
+ export function truncate(
6
6
  node: HTMLElement,
7
7
  options?: TruncateOptions,
8
8
  ): {
9
9
  update: (options?: TruncateOptions) => void;
10
10
  };
11
11
 
12
- export default TruncateAction;
12
+ export default truncate;
@@ -29,6 +29,8 @@ export type AccordionProps = AccordionSkeletonProps & {
29
29
  * @default false
30
30
  */
31
31
  skeleton?: boolean;
32
+
33
+ children?: (this: void) => void;
32
34
  };
33
35
 
34
36
  export default class Accordion extends SvelteComponentTyped<
@@ -35,6 +35,8 @@ type $Props = {
35
35
  */
36
36
  iconDescription?: string;
37
37
 
38
+ children?: (this: void) => void;
39
+
38
40
  [key: `data-${string}`]: any;
39
41
  };
40
42
 
@@ -19,6 +19,8 @@ type $Props = {
19
19
  | "9x16"
20
20
  | "1x2";
21
21
 
22
+ children?: (this: void) => void;
23
+
22
24
  [key: `data-${string}`]: any;
23
25
  };
24
26
 
@@ -13,6 +13,8 @@ export type BreadcrumbProps = BreadcrumbSkeletonProps & {
13
13
  * @default false
14
14
  */
15
15
  skeleton?: boolean;
16
+
17
+ children?: (this: void) => void;
16
18
  };
17
19
 
18
20
  export default class Breadcrumb extends SvelteComponentTyped<
@@ -18,6 +18,11 @@ type $Props = {
18
18
  */
19
19
  isCurrentPage?: boolean;
20
20
 
21
+ children?: (
22
+ this: void,
23
+ ...args: [{ props?: { "aria-current"?: string; class: "bx--link" } }]
24
+ ) => void;
25
+
21
26
  [key: `data-${string}`]: any;
22
27
  };
23
28
 
@@ -16,6 +16,11 @@ export type BreakpointProps = {
16
16
  * @default { sm: false, md: false, lg: false, xlg: false, max: false, }
17
17
  */
18
18
  sizes?: Record<BreakpointSize, boolean>;
19
+
20
+ children?: (
21
+ this: void,
22
+ ...args: [{ size: BreakpointSize; sizes: Record<BreakpointSize, boolean> }]
23
+ ) => void;
19
24
  };
20
25
 
21
26
  export default class Breakpoint extends SvelteComponentTyped<
@@ -128,6 +128,23 @@ type $Props = {
128
128
  */
129
129
  ref?: null | HTMLAnchorElement | HTMLButtonElement;
130
130
 
131
+ children?: (
132
+ this: void,
133
+ ...args: [
134
+ {
135
+ props: {
136
+ role: "button";
137
+ type?: string;
138
+ tabindex: any;
139
+ disabled: boolean;
140
+ href?: string;
141
+ class: string;
142
+ [key: string]: any;
143
+ };
144
+ },
145
+ ]
146
+ ) => void;
147
+
131
148
  [key: `data-${string}`]: any;
132
149
  };
133
150
 
@@ -10,6 +10,8 @@ type $Props = {
10
10
  */
11
11
  stacked?: boolean;
12
12
 
13
+ children?: (this: void) => void;
14
+
13
15
  [key: `data-${string}`]: any;
14
16
  };
15
17
 
@@ -125,6 +125,8 @@ export type CodeSnippetProps = {
125
125
  * @default null
126
126
  */
127
127
  ref?: null | HTMLPreElement;
128
+
129
+ children?: (this: void) => void;
128
130
  };
129
131
 
130
132
  export default class CodeSnippet extends SvelteComponentTyped<
@@ -183,6 +183,8 @@ type $Props<Item> = {
183
183
 
184
184
  labelChildren?: (this: void) => void;
185
185
 
186
+ children?: (this: void, ...args: [{ item: Item; index: number }]) => void;
187
+
186
188
  [key: `data-${string}`]: any;
187
189
  };
188
190
 
@@ -53,6 +53,8 @@ type $Props = {
53
53
  */
54
54
  ref?: null | HTMLDivElement;
55
55
 
56
+ children?: (this: void) => void;
57
+
56
58
  [key: `data-${string}`]: any;
57
59
  };
58
60
 
@@ -16,6 +16,8 @@ type $Props = {
16
16
  */
17
17
  hasScrollingContent?: boolean;
18
18
 
19
+ children?: (this: void) => void;
20
+
19
21
  [key: `data-${string}`]: any;
20
22
  };
21
23
 
@@ -53,6 +53,8 @@ type $Props = {
53
53
  */
54
54
  danger?: boolean;
55
55
 
56
+ children?: (this: void) => void;
57
+
56
58
  [key: `data-${string}`]: any;
57
59
  };
58
60
 
@@ -46,6 +46,8 @@ type $Props = {
46
46
  */
47
47
  iconDescription?: string;
48
48
 
49
+ children?: (this: void) => void;
50
+
49
51
  [key: `data-${string}`]: any;
50
52
  };
51
53
 
@@ -35,6 +35,8 @@ export type ContainedListProps = {
35
35
  action?: (this: void) => void;
36
36
 
37
37
  labelChildren?: (this: void) => void;
38
+
39
+ children?: (this: void) => void;
38
40
  };
39
41
 
40
42
  export default class ContainedList extends SvelteComponentTyped<
@@ -21,6 +21,8 @@ export type ContainedListItemProps = {
21
21
  icon?: any;
22
22
 
23
23
  action?: (this: void) => void;
24
+
25
+ children?: (this: void) => void;
24
26
  };
25
27
 
26
28
  export default class ContainedListItem extends SvelteComponentTyped<
@@ -23,6 +23,8 @@ type $Props = {
23
23
  */
24
24
  size?: "sm" | "xl";
25
25
 
26
+ children?: (this: void) => void;
27
+
26
28
  [key: `data-${string}`]: any;
27
29
  };
28
30
 
@@ -41,6 +41,8 @@ type $Props = {
41
41
  */
42
42
  ref?: null | HTMLButtonElement;
43
43
 
44
+ children?: (this: void) => void;
45
+
44
46
  [key: `data-${string}`]: any;
45
47
  };
46
48
 
@@ -44,6 +44,8 @@ type $Props = {
44
44
  */
45
45
  ref?: null | HTMLUListElement;
46
46
 
47
+ children?: (this: void) => void;
48
+
47
49
  [key: `data-${string}`]: any;
48
50
  };
49
51
 
@@ -17,6 +17,8 @@ export type ContextMenuGroupProps = {
17
17
  * @default ""
18
18
  */
19
19
  labelText?: string;
20
+
21
+ children?: (this: void) => void;
20
22
  };
21
23
 
22
24
  export default class ContextMenuGroup extends SvelteComponentTyped<
@@ -83,6 +83,8 @@ type $Props = {
83
83
 
84
84
  labelChildren?: (this: void) => void;
85
85
 
86
+ children?: (this: void) => void;
87
+
86
88
  [key: `data-${string}`]: any;
87
89
  };
88
90
 
@@ -19,6 +19,8 @@ export type ContextMenuRadioGroupProps = {
19
19
  * @default ""
20
20
  */
21
21
  labelText?: string;
22
+
23
+ children?: (this: void) => void;
22
24
  };
23
25
 
24
26
  export default class ContextMenuRadioGroup extends SvelteComponentTyped<
@@ -42,7 +42,8 @@ export type DataTableCell<Row = DataTableRow> = {
42
42
  value: DataTableValue;
43
43
  display?: (item: DataTableValue, row: DataTableRow) => DataTableValue;
44
44
  };
45
- export type DataTableContext = {
45
+
46
+ export type DataTableContext<Row extends DataTableRow = DataTableRow> = {
46
47
  batchSelectedIds: import("svelte/store").Writable<
47
48
  ReadonlyArray<DataTableRowId>
48
49
  >;
@@ -243,6 +244,8 @@ type $Props<Row> = {
243
244
  ...args: [{ props: { class: "bx--data-table-header__title" } }]
244
245
  ) => void;
245
246
 
247
+ children?: (this: void) => void;
248
+
246
249
  [key: `data-${string}`]: any;
247
250
  };
248
251
 
@@ -40,6 +40,8 @@ type $Props = {
40
40
  */
41
41
  tableStyle?: string;
42
42
 
43
+ children?: (this: void) => void;
44
+
43
45
  [key: `data-${string}`]: any;
44
46
  };
45
47
 
@@ -4,6 +4,8 @@ import type { SvelteHTMLElements } from "svelte/elements";
4
4
  type $RestProps = SvelteHTMLElements["tbody"];
5
5
 
6
6
  type $Props = {
7
+ children?: (this: void) => void;
8
+
7
9
  [key: `data-${string}`]: any;
8
10
  };
9
11
 
@@ -4,6 +4,8 @@ import type { SvelteHTMLElements } from "svelte/elements";
4
4
  type $RestProps = SvelteHTMLElements["td"];
5
5
 
6
6
  type $Props = {
7
+ children?: (this: void) => void;
8
+
7
9
  [key: `data-${string}`]: any;
8
10
  };
9
11
 
@@ -28,6 +28,8 @@ type $Props = {
28
28
  */
29
29
  useStaticWidth?: boolean;
30
30
 
31
+ children?: (this: void) => void;
32
+
31
33
  [key: `data-${string}`]: any;
32
34
  };
33
35
 
@@ -4,6 +4,8 @@ import type { SvelteHTMLElements } from "svelte/elements";
4
4
  type $RestProps = SvelteHTMLElements["thead"];
5
5
 
6
6
  type $Props = {
7
+ children?: (this: void) => void;
8
+
7
9
  [key: `data-${string}`]: any;
8
10
  };
9
11
 
@@ -43,6 +43,8 @@ type $Props = {
43
43
  */
44
44
  id?: string;
45
45
 
46
+ children?: (this: void) => void;
47
+
46
48
  [key: `data-${string}`]: any;
47
49
  };
48
50
 
@@ -4,6 +4,8 @@ import type { SvelteHTMLElements } from "svelte/elements";
4
4
  type $RestProps = SvelteHTMLElements["tr"];
5
5
 
6
6
  type $Props = {
7
+ children?: (this: void) => void;
8
+
7
9
  [key: `data-${string}`]: any;
8
10
  };
9
11
 
@@ -16,6 +16,8 @@ type $Props = {
16
16
  */
17
17
  size?: "sm" | "default";
18
18
 
19
+ children?: (this: void) => void;
20
+
19
21
  [key: `data-${string}`]: any;
20
22
  };
21
23
 
@@ -24,6 +24,8 @@ type $Props = {
24
24
 
25
25
  cancel?: (this: void) => void;
26
26
 
27
+ children?: (this: void) => void;
28
+
27
29
  [key: `data-${string}`]: any;
28
30
  };
29
31
 
@@ -1,6 +1,8 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
 
3
- export type ToolbarContentProps = Record<string, never>;
3
+ export type ToolbarContentProps = {
4
+ children?: (this: void) => void;
5
+ };
4
6
 
5
7
  export default class ToolbarContent extends SvelteComponentTyped<
6
8
  ToolbarContentProps,
@@ -1,7 +1,9 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  import type { OverflowMenuProps } from "../OverflowMenu/OverflowMenu.svelte";
3
3
 
4
- export type ToolbarMenuProps = OverflowMenuProps & {};
4
+ export type ToolbarMenuProps = OverflowMenuProps & {
5
+ children?: (this: void) => void;
6
+ };
5
7
 
6
8
  export default class ToolbarMenu extends SvelteComponentTyped<
7
9
  ToolbarMenuProps,
@@ -1,7 +1,9 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  import type { OverflowMenuItemProps } from "../OverflowMenu/OverflowMenuItem.svelte";
3
3
 
4
- export type ToolbarMenuItemProps = OverflowMenuItemProps & {};
4
+ export type ToolbarMenuItemProps = OverflowMenuItemProps & {
5
+ children?: (this: void) => void;
6
+ };
5
7
 
6
8
  export default class ToolbarMenuItem extends SvelteComponentTyped<
7
9
  ToolbarMenuItemProps,
@@ -96,6 +96,8 @@ type $Props = {
96
96
  */
97
97
  flatpickrProps?: import("flatpickr/dist/types/options").Options;
98
98
 
99
+ children?: (this: void) => void;
100
+
99
101
  [key: `data-${string}`]: any;
100
102
  };
101
103
 
@@ -142,6 +142,8 @@ type $Props<Item> = {
142
142
  */
143
143
  ref?: null | HTMLButtonElement;
144
144
 
145
+ children?: (this: void, ...args: [{ item: Item; index: number }]) => void;
146
+
145
147
  [key: `data-${string}`]: any;
146
148
  };
147
149
 
@@ -8,6 +8,8 @@ export type FormContext = {
8
8
  type $RestProps = SvelteHTMLElements["form"];
9
9
 
10
10
  type $Props = {
11
+ children?: (this: void) => void;
12
+
11
13
  [key: `data-${string}`]: any;
12
14
  };
13
15
 
@@ -10,6 +10,8 @@ type $Props = {
10
10
  */
11
11
  ref?: null | HTMLFormElement;
12
12
 
13
+ children?: (this: void) => void;
14
+
13
15
  [key: `data-${string}`]: any;
14
16
  };
15
17
 
@@ -40,6 +40,8 @@ type $Props = {
40
40
  */
41
41
  legendId?: string;
42
42
 
43
+ children?: (this: void) => void;
44
+
43
45
  [key: `data-${string}`]: any;
44
46
  };
45
47
 
@@ -4,6 +4,8 @@ import type { SvelteHTMLElements } from "svelte/elements";
4
4
  type $RestProps = SvelteHTMLElements["div"];
5
5
 
6
6
  type $Props = {
7
+ children?: (this: void) => void;
8
+
7
9
  [key: `data-${string}`]: any;
8
10
  };
9
11
 
@@ -10,6 +10,8 @@ type $Props = {
10
10
  */
11
11
  id?: string;
12
12
 
13
+ children?: (this: void) => void;
14
+
13
15
  [key: `data-${string}`]: any;
14
16
  };
15
17
 
@@ -83,6 +83,11 @@ type $Props = {
83
83
  */
84
84
  max?: ColumnBreakpoint;
85
85
 
86
+ children?: (
87
+ this: void,
88
+ ...args: [{ props: { class: string; [key: string]: any } }]
89
+ ) => void;
90
+
86
91
  [key: `data-${string}`]: any;
87
92
  };
88
93
 
@@ -59,6 +59,11 @@ type $Props = {
59
59
  */
60
60
  padding?: boolean;
61
61
 
62
+ children?: (
63
+ this: void,
64
+ ...args: [{ props: { class: string; [key: string]: any } }]
65
+ ) => void;
66
+
62
67
  [key: `data-${string}`]: any;
63
68
  };
64
69
 
@@ -53,6 +53,11 @@ type $Props = {
53
53
  */
54
54
  padding?: boolean;
55
55
 
56
+ children?: (
57
+ this: void,
58
+ ...args: [{ props: { class: string; [key: string]: any } }]
59
+ ) => void;
60
+
56
61
  [key: `data-${string}`]: any;
57
62
  };
58
63
 
@@ -2,7 +2,9 @@ import { SvelteComponentTyped } from "svelte";
2
2
 
3
3
  export type SectionLevel = 1 | 2 | 3 | 4 | 5 | 6;
4
4
 
5
- export type HeadingProps = Record<string, never>;
5
+ export type HeadingProps = {
6
+ children?: (this: void) => void;
7
+ };
6
8
 
7
9
  export default class Heading extends SvelteComponentTyped<
8
10
  HeadingProps,
@@ -1,6 +1,7 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
 
3
3
  export type SectionLevel = 1 | 2 | 3 | 4 | 5 | 6;
4
+
4
5
  export type SectionContext = {
5
6
  $internalLevel: any;
6
7
  };
@@ -45,6 +46,8 @@ export type SectionProps = {
45
46
  * @default "section"
46
47
  */
47
48
  tag?: keyof HTMLElementTagNameMap;
49
+
50
+ children?: (this: void) => void;
48
51
  };
49
52
 
50
53
  export default class Section extends SvelteComponentTyped<
@@ -47,6 +47,8 @@ type $Props = {
47
47
  */
48
48
  ref?: null | HTMLAnchorElement;
49
49
 
50
+ children?: (this: void) => void;
51
+
50
52
  [key: `data-${string}`]: any;
51
53
  };
52
54
 
@@ -1,7 +1,9 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  import type { LinkProps } from "./Link.svelte";
3
3
 
4
- export type OutboundLinkProps = LinkProps & {};
4
+ export type OutboundLinkProps = LinkProps & {
5
+ children?: (this: void) => void;
6
+ };
5
7
 
6
8
  export default class OutboundLink extends SvelteComponentTyped<
7
9
  OutboundLinkProps,
@@ -58,6 +58,8 @@ type $Props = {
58
58
  */
59
59
  warnText?: string;
60
60
 
61
+ children?: (this: void) => void;
62
+
61
63
  [key: `data-${string}`]: any;
62
64
  };
63
65
 
@@ -41,6 +41,8 @@ type $Props = {
41
41
  */
42
42
  ref?: null | HTMLDivElement;
43
43
 
44
+ children?: (this: void) => void;
45
+
44
46
  [key: `data-${string}`]: any;
45
47
  };
46
48
 
@@ -16,6 +16,8 @@ type $Props = {
16
16
  */
17
17
  ref?: null | HTMLDivElement;
18
18
 
19
+ children?: (this: void) => void;
20
+
19
21
  [key: `data-${string}`]: any;
20
22
  };
21
23
 
@@ -22,6 +22,8 @@ type $Props = {
22
22
  */
23
23
  disabled?: boolean;
24
24
 
25
+ children?: (this: void) => void;
26
+
25
27
  [key: `data-${string}`]: any;
26
28
  };
27
29
 
@@ -4,6 +4,8 @@ import type { SvelteHTMLElements } from "svelte/elements";
4
4
  type $RestProps = SvelteHTMLElements["li"];
5
5
 
6
6
  type $Props = {
7
+ children?: (this: void) => void;
8
+
7
9
  [key: `data-${string}`]: any;
8
10
  };
9
11