carbon-components-svelte 0.96.1 → 0.96.3
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.
- package/package.json +1 -1
- package/types/Accordion/Accordion.svelte.d.ts +2 -0
- package/types/Accordion/AccordionItem.svelte.d.ts +2 -0
- package/types/AspectRatio/AspectRatio.svelte.d.ts +2 -0
- package/types/Breadcrumb/Breadcrumb.svelte.d.ts +2 -0
- package/types/Breadcrumb/BreadcrumbItem.svelte.d.ts +5 -0
- package/types/Breakpoint/Breakpoint.svelte.d.ts +5 -0
- package/types/Button/Button.svelte.d.ts +17 -0
- package/types/Button/ButtonSet.svelte.d.ts +2 -0
- package/types/Checkbox/Checkbox.svelte.d.ts +1 -1
- package/types/CodeSnippet/CodeSnippet.svelte.d.ts +2 -0
- package/types/ComboBox/ComboBox.svelte.d.ts +3 -1
- package/types/ComposedModal/ComposedModal.svelte.d.ts +2 -0
- package/types/ComposedModal/ModalBody.svelte.d.ts +2 -0
- package/types/ComposedModal/ModalFooter.svelte.d.ts +2 -0
- package/types/ComposedModal/ModalHeader.svelte.d.ts +2 -0
- package/types/ContentSwitcher/ContentSwitcher.svelte.d.ts +2 -0
- package/types/ContentSwitcher/Switch.svelte.d.ts +2 -0
- package/types/ContextMenu/ContextMenu.svelte.d.ts +2 -0
- package/types/ContextMenu/ContextMenuGroup.svelte.d.ts +2 -0
- package/types/ContextMenu/ContextMenuOption.svelte.d.ts +3 -1
- package/types/ContextMenu/ContextMenuRadioGroup.svelte.d.ts +2 -0
- package/types/DataTable/DataTable.svelte.d.ts +35 -9
- package/types/DataTable/Table.svelte.d.ts +2 -0
- package/types/DataTable/TableBody.svelte.d.ts +2 -0
- package/types/DataTable/TableCell.svelte.d.ts +2 -0
- package/types/DataTable/TableContainer.svelte.d.ts +2 -0
- package/types/DataTable/TableHead.svelte.d.ts +2 -0
- package/types/DataTable/TableHeader.svelte.d.ts +2 -0
- package/types/DataTable/TableRow.svelte.d.ts +2 -0
- package/types/DataTable/Toolbar.svelte.d.ts +2 -0
- package/types/DataTable/ToolbarBatchActions.svelte.d.ts +3 -1
- package/types/DataTable/ToolbarContent.svelte.d.ts +3 -1
- package/types/DataTable/ToolbarMenu.svelte.d.ts +3 -1
- package/types/DataTable/ToolbarMenuItem.svelte.d.ts +3 -1
- package/types/DatePicker/DatePicker.svelte.d.ts +2 -0
- package/types/DatePicker/DatePickerInput.svelte.d.ts +1 -1
- package/types/Dropdown/Dropdown.svelte.d.ts +2 -0
- package/types/FileUploader/FileUploaderButton.svelte.d.ts +2 -0
- package/types/FileUploader/FileUploaderDropContainer.svelte.d.ts +1 -1
- package/types/FluidForm/FluidForm.svelte.d.ts +2 -0
- package/types/Form/Form.svelte.d.ts +2 -0
- package/types/FormGroup/FormGroup.svelte.d.ts +2 -0
- package/types/FormItem/FormItem.svelte.d.ts +2 -0
- package/types/FormLabel/FormLabel.svelte.d.ts +2 -0
- package/types/Grid/Column.svelte.d.ts +5 -0
- package/types/Grid/Grid.svelte.d.ts +5 -0
- package/types/Grid/Row.svelte.d.ts +5 -0
- package/types/Link/Link.svelte.d.ts +2 -0
- package/types/Link/OutboundLink.svelte.d.ts +3 -1
- package/types/ListBox/ListBox.svelte.d.ts +2 -0
- package/types/ListBox/ListBoxField.svelte.d.ts +2 -0
- package/types/ListBox/ListBoxMenu.svelte.d.ts +2 -0
- package/types/ListBox/ListBoxMenuItem.svelte.d.ts +2 -0
- package/types/ListItem/ListItem.svelte.d.ts +2 -0
- package/types/Modal/Modal.svelte.d.ts +4 -2
- package/types/MultiSelect/MultiSelect.svelte.d.ts +3 -1
- package/types/Notification/InlineNotification.svelte.d.ts +5 -3
- package/types/Notification/NotificationActionButton.svelte.d.ts +3 -1
- package/types/Notification/ToastNotification.svelte.d.ts +5 -3
- package/types/NumberInput/NumberInput.svelte.d.ts +1 -1
- package/types/OrderedList/OrderedList.svelte.d.ts +2 -0
- package/types/OverflowMenu/OverflowMenu.svelte.d.ts +3 -1
- package/types/OverflowMenu/OverflowMenuItem.svelte.d.ts +2 -0
- package/types/PaginationNav/PaginationItem.svelte.d.ts +2 -0
- package/types/Popover/Popover.svelte.d.ts +2 -0
- package/types/Portal/Portal.svelte.d.ts +2 -0
- package/types/ProgressBar/ProgressBar.svelte.d.ts +1 -1
- package/types/ProgressIndicator/ProgressIndicator.svelte.d.ts +2 -0
- package/types/ProgressIndicator/ProgressStep.svelte.d.ts +5 -0
- package/types/RadioButton/RadioButton.svelte.d.ts +1 -1
- package/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts +3 -1
- package/types/RecursiveList/RecursiveListItem.svelte.d.ts +2 -0
- package/types/Search/Search.svelte.d.ts +1 -1
- package/types/Select/Select.svelte.d.ts +3 -1
- package/types/Select/SelectItemGroup.svelte.d.ts +2 -0
- package/types/Slider/Slider.svelte.d.ts +1 -1
- package/types/Stack/Stack.svelte.d.ts +2 -0
- package/types/StructuredList/StructuredList.svelte.d.ts +2 -0
- package/types/StructuredList/StructuredListBody.svelte.d.ts +2 -0
- package/types/StructuredList/StructuredListCell.svelte.d.ts +2 -0
- package/types/StructuredList/StructuredListHead.svelte.d.ts +2 -0
- package/types/StructuredList/StructuredListRow.svelte.d.ts +2 -0
- package/types/Tabs/Tab.svelte.d.ts +2 -0
- package/types/Tabs/TabContent.svelte.d.ts +2 -0
- package/types/Tabs/Tabs.svelte.d.ts +3 -1
- package/types/Tag/Tag.svelte.d.ts +5 -0
- package/types/TextArea/TextArea.svelte.d.ts +1 -1
- package/types/TextInput/PasswordInput.svelte.d.ts +1 -1
- package/types/TextInput/TextInput.svelte.d.ts +1 -1
- package/types/Theme/Theme.svelte.d.ts +2 -0
- package/types/Tile/ClickableTile.svelte.d.ts +2 -0
- package/types/Tile/ExpandableTile.svelte.d.ts +2 -2
- package/types/Tile/RadioTile.svelte.d.ts +2 -0
- package/types/Tile/SelectableTile.svelte.d.ts +2 -0
- package/types/Tile/SelectableTileGroup.svelte.d.ts +3 -1
- package/types/Tile/Tile.svelte.d.ts +2 -0
- package/types/Tile/TileGroup.svelte.d.ts +3 -1
- package/types/TimePicker/TimePicker.svelte.d.ts +3 -1
- package/types/TimePicker/TimePickerSelect.svelte.d.ts +3 -1
- package/types/Toggle/Toggle.svelte.d.ts +1 -1
- package/types/Toggle/ToggleSkeleton.svelte.d.ts +1 -1
- package/types/Tooltip/Tooltip.svelte.d.ts +2 -0
- package/types/Tooltip/TooltipFooter.svelte.d.ts +2 -0
- package/types/TooltipDefinition/TooltipDefinition.svelte.d.ts +3 -1
- package/types/TooltipIcon/TooltipIcon.svelte.d.ts +2 -0
- package/types/TreeView/TreeView.svelte.d.ts +17 -1
- package/types/TreeView/TreeViewNode.svelte.d.ts +16 -0
- package/types/TreeView/TreeViewNodeList.svelte.d.ts +16 -0
- package/types/Truncate/Truncate.svelte.d.ts +2 -0
- package/types/UIShell/Content.svelte.d.ts +2 -0
- package/types/UIShell/Header.svelte.d.ts +5 -3
- package/types/UIShell/HeaderAction.svelte.d.ts +3 -1
- package/types/UIShell/HeaderNav.svelte.d.ts +2 -0
- package/types/UIShell/HeaderNavItem.svelte.d.ts +2 -0
- package/types/UIShell/HeaderNavMenu.svelte.d.ts +2 -0
- package/types/UIShell/HeaderPanelDivider.svelte.d.ts +3 -1
- package/types/UIShell/HeaderPanelLink.svelte.d.ts +2 -0
- package/types/UIShell/HeaderPanelLinks.svelte.d.ts +3 -1
- package/types/UIShell/HeaderSearch.svelte.d.ts +2 -0
- package/types/UIShell/HeaderUtilities.svelte.d.ts +3 -1
- package/types/UIShell/SideNav.svelte.d.ts +2 -0
- package/types/UIShell/SideNavItems.svelte.d.ts +3 -1
- package/types/UIShell/SideNavLink.svelte.d.ts +2 -0
- package/types/UIShell/SideNavMenu.svelte.d.ts +2 -0
- package/types/UIShell/SideNavMenuItem.svelte.d.ts +2 -0
- package/types/UIShell/SkipToContent.svelte.d.ts +2 -0
- package/types/UnorderedList/UnorderedList.svelte.d.ts +2 -0
package/package.json
CHANGED
|
@@ -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
|
|
|
@@ -181,7 +181,9 @@ type $Props<Item> = {
|
|
|
181
181
|
*/
|
|
182
182
|
listRef?: null | HTMLDivElement;
|
|
183
183
|
|
|
184
|
-
labelChildren?: () => void;
|
|
184
|
+
labelChildren?: (this: void) => void;
|
|
185
|
+
|
|
186
|
+
children?: (this: void, ...args: [{ item: Item; index: number }]) => void;
|
|
185
187
|
|
|
186
188
|
[key: `data-${string}`]: any;
|
|
187
189
|
};
|
|
@@ -209,15 +209,41 @@ type $Props<Row> = {
|
|
|
209
209
|
id: import("./TableHeader.svelte").TableHeaderTranslationId,
|
|
210
210
|
) => string;
|
|
211
211
|
|
|
212
|
-
cell?: (
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
212
|
+
cell?: (
|
|
213
|
+
this: void,
|
|
214
|
+
...args: [
|
|
215
|
+
{
|
|
216
|
+
row: Row;
|
|
217
|
+
cell: DataTableCell<Row>;
|
|
218
|
+
rowIndex: number;
|
|
219
|
+
cellIndex: number;
|
|
220
|
+
rowSelected: boolean;
|
|
221
|
+
rowExpanded: boolean;
|
|
222
|
+
},
|
|
223
|
+
]
|
|
224
|
+
) => void;
|
|
225
|
+
|
|
226
|
+
"cell-header"?: (
|
|
227
|
+
this: void,
|
|
228
|
+
...args: [{ header: DataTableNonEmptyHeader }]
|
|
229
|
+
) => void;
|
|
230
|
+
|
|
231
|
+
descriptionChildren?: (
|
|
232
|
+
this: void,
|
|
233
|
+
...args: [{ props: { class: "bx--data-table-header__description" } }]
|
|
234
|
+
) => void;
|
|
235
|
+
|
|
236
|
+
"expanded-row"?: (
|
|
237
|
+
this: void,
|
|
238
|
+
...args: [{ row: Row; rowSelected: boolean }]
|
|
239
|
+
) => void;
|
|
240
|
+
|
|
241
|
+
titleChildren?: (
|
|
242
|
+
this: void,
|
|
243
|
+
...args: [{ props: { class: "bx--data-table-header__title" } }]
|
|
244
|
+
) => void;
|
|
245
|
+
|
|
246
|
+
children?: (this: void) => void;
|
|
221
247
|
|
|
222
248
|
[key: `data-${string}`]: any;
|
|
223
249
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
|
|
3
|
-
export type ToolbarContentProps =
|
|
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,
|
|
@@ -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,
|
|
@@ -139,9 +139,11 @@ type $Props = {
|
|
|
139
139
|
*/
|
|
140
140
|
ref?: null | HTMLDivElement;
|
|
141
141
|
|
|
142
|
-
heading?: () => void;
|
|
142
|
+
heading?: (this: void) => void;
|
|
143
143
|
|
|
144
|
-
label?: () => void;
|
|
144
|
+
label?: (this: void) => void;
|
|
145
|
+
|
|
146
|
+
children?: (this: void) => void;
|
|
145
147
|
|
|
146
148
|
[key: `data-${string}`]: any;
|
|
147
149
|
};
|