diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 8ad1a742..6ddd8083 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -4121,19 +4121,19 @@ None. ### Events -| Event name | Type | Detail | -| :--------- | :--------- | :-------------------------------------------- | -| change | dispatched | null | number | string | -| input | dispatched | null | number | string | -| click | forwarded | -- | -| mouseover | forwarded | -- | -| mouseenter | forwarded | -- | -| mouseleave | forwarded | -- | -| keydown | forwarded | -- | -| keyup | forwarded | -- | -| focus | forwarded | -- | -| blur | forwarded | -- | -| paste | forwarded | -- | +| Event name | Type | Detail | +| :--------- | :--------- | :----- | +| click | forwarded | -- | +| mouseover | forwarded | -- | +| mouseenter | forwarded | -- | +| mouseleave | forwarded | -- | +| keydown | forwarded | -- | +| keyup | forwarded | -- | +| focus | forwarded | -- | +| blur | forwarded | -- | +| paste | forwarded | -- | +| input | dispatched | -- | +| change | dispatched | -- | ## `TextInputSkeleton` diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 9019526b..694a814b 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -3,7 +3,7 @@ "components": [ { "moduleName": "Accordion", - "filePath": "src/Accordion/Accordion.svelte", + "filePath": "src/carbon-components-svelte/Accordion/Accordion.svelte", "props": [ { "name": "align", @@ -86,7 +86,7 @@ }, { "moduleName": "AccordionItem", - "filePath": "src/Accordion/AccordionItem.svelte", + "filePath": "src/carbon-components-svelte/Accordion/AccordionItem.svelte", "props": [ { "name": "title", @@ -160,7 +160,7 @@ }, { "moduleName": "AccordionSkeleton", - "filePath": "src/Accordion/AccordionSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Accordion/AccordionSkeleton.svelte", "props": [ { "name": "count", @@ -223,7 +223,7 @@ }, { "moduleName": "AspectRatio", - "filePath": "src/AspectRatio/AspectRatio.svelte", + "filePath": "src/carbon-components-svelte/AspectRatio/AspectRatio.svelte", "props": [ { "name": "ratio", @@ -246,7 +246,7 @@ }, { "moduleName": "Breadcrumb", - "filePath": "src/Breadcrumb/Breadcrumb.svelte", + "filePath": "src/carbon-components-svelte/Breadcrumb/Breadcrumb.svelte", "props": [ { "name": "noTrailingSlash", @@ -306,7 +306,7 @@ }, { "moduleName": "BreadcrumbItem", - "filePath": "src/Breadcrumb/BreadcrumbItem.svelte", + "filePath": "src/carbon-components-svelte/Breadcrumb/BreadcrumbItem.svelte", "props": [ { "name": "href", @@ -351,7 +351,7 @@ }, { "moduleName": "BreadcrumbSkeleton", - "filePath": "src/Breadcrumb/BreadcrumbSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Breadcrumb/BreadcrumbSkeleton.svelte", "props": [ { "name": "noTrailingSlash", @@ -391,7 +391,7 @@ }, { "moduleName": "Breakpoint", - "filePath": "src/Breakpoint/Breakpoint.svelte", + "filePath": "src/carbon-components-svelte/Breakpoint/Breakpoint.svelte", "props": [ { "name": "size", @@ -447,7 +447,7 @@ }, { "moduleName": "Button", - "filePath": "src/Button/Button.svelte", + "filePath": "src/carbon-components-svelte/Button/Button.svelte", "props": [ { "name": "kind", @@ -662,7 +662,7 @@ }, { "moduleName": "ButtonSet", - "filePath": "src/Button/ButtonSet.svelte", + "filePath": "src/carbon-components-svelte/Button/ButtonSet.svelte", "props": [ { "name": "stacked", @@ -685,7 +685,7 @@ }, { "moduleName": "ButtonSkeleton", - "filePath": "src/Button/ButtonSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Button/ButtonSkeleton.svelte", "props": [ { "name": "href", @@ -724,7 +724,7 @@ }, { "moduleName": "Checkbox", - "filePath": "src/Checkbox/Checkbox.svelte", + "filePath": "src/carbon-components-svelte/Checkbox/Checkbox.svelte", "props": [ { "name": "value", @@ -928,7 +928,7 @@ }, { "moduleName": "CheckboxSkeleton", - "filePath": "src/Checkbox/CheckboxSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Checkbox/CheckboxSkeleton.svelte", "props": [], "moduleExports": [], "slots": [], @@ -943,7 +943,7 @@ }, { "moduleName": "ClickableTile", - "filePath": "src/Tile/ClickableTile.svelte", + "filePath": "src/carbon-components-svelte/Tile/ClickableTile.svelte", "props": [ { "name": "clicked", @@ -1007,7 +1007,7 @@ }, { "moduleName": "CodeSnippet", - "filePath": "src/CodeSnippet/CodeSnippet.svelte", + "filePath": "src/carbon-components-svelte/CodeSnippet/CodeSnippet.svelte", "props": [ { "name": "type", @@ -1263,7 +1263,7 @@ }, { "moduleName": "CodeSnippetSkeleton", - "filePath": "src/CodeSnippet/CodeSnippetSkeleton.svelte", + "filePath": "src/carbon-components-svelte/CodeSnippet/CodeSnippetSkeleton.svelte", "props": [ { "name": "type", @@ -1291,7 +1291,7 @@ }, { "moduleName": "Column", - "filePath": "src/Grid/Column.svelte", + "filePath": "src/carbon-components-svelte/Grid/Column.svelte", "props": [ { "name": "as", @@ -1450,7 +1450,7 @@ }, { "moduleName": "ComboBox", - "filePath": "src/ComboBox/ComboBox.svelte", + "filePath": "src/carbon-components-svelte/ComboBox/ComboBox.svelte", "props": [ { "name": "items", @@ -1775,7 +1775,7 @@ }, { "moduleName": "ComposedModal", - "filePath": "src/ComposedModal/ComposedModal.svelte", + "filePath": "src/carbon-components-svelte/ComposedModal/ComposedModal.svelte", "props": [ { "name": "size", @@ -1888,7 +1888,7 @@ }, { "moduleName": "Content", - "filePath": "src/UIShell/Content.svelte", + "filePath": "src/carbon-components-svelte/UIShell/Content.svelte", "props": [ { "name": "id", @@ -1911,7 +1911,7 @@ }, { "moduleName": "ContentSwitcher", - "filePath": "src/ContentSwitcher/ContentSwitcher.svelte", + "filePath": "src/carbon-components-svelte/ContentSwitcher/ContentSwitcher.svelte", "props": [ { "name": "selectedIndex", @@ -1951,7 +1951,7 @@ }, { "moduleName": "ContextMenu", - "filePath": "src/ContextMenu/ContextMenu.svelte", + "filePath": "src/carbon-components-svelte/ContextMenu/ContextMenu.svelte", "props": [ { "name": "target", @@ -2027,7 +2027,7 @@ }, { "moduleName": "ContextMenuDivider", - "filePath": "src/ContextMenu/ContextMenuDivider.svelte", + "filePath": "src/carbon-components-svelte/ContextMenu/ContextMenuDivider.svelte", "props": [], "moduleExports": [], "slots": [], @@ -2036,7 +2036,7 @@ }, { "moduleName": "ContextMenuGroup", - "filePath": "src/ContextMenu/ContextMenuGroup.svelte", + "filePath": "src/carbon-components-svelte/ContextMenu/ContextMenuGroup.svelte", "props": [ { "name": "selectedIds", @@ -2069,7 +2069,7 @@ }, { "moduleName": "ContextMenuOption", - "filePath": "src/ContextMenu/ContextMenuOption.svelte", + "filePath": "src/carbon-components-svelte/ContextMenu/ContextMenuOption.svelte", "props": [ { "name": "kind", @@ -2224,7 +2224,7 @@ }, { "moduleName": "ContextMenuRadioGroup", - "filePath": "src/ContextMenu/ContextMenuRadioGroup.svelte", + "filePath": "src/carbon-components-svelte/ContextMenu/ContextMenuRadioGroup.svelte", "props": [ { "name": "selectedId", @@ -2258,7 +2258,7 @@ }, { "moduleName": "CopyButton", - "filePath": "src/CopyButton/CopyButton.svelte", + "filePath": "src/carbon-components-svelte/CopyButton/CopyButton.svelte", "props": [ { "name": "feedback", @@ -2332,7 +2332,7 @@ }, { "moduleName": "DataTable", - "filePath": "src/DataTable/DataTable.svelte", + "filePath": "src/carbon-components-svelte/DataTable/DataTable.svelte", "props": [ { "name": "headers", @@ -2725,7 +2725,7 @@ }, { "moduleName": "DataTableSkeleton", - "filePath": "src/DataTable/DataTableSkeleton.svelte", + "filePath": "src/carbon-components-svelte/DataTable/DataTableSkeleton.svelte", "props": [ { "name": "columns", @@ -2828,7 +2828,7 @@ }, { "moduleName": "DatePicker", - "filePath": "src/DatePicker/DatePicker.svelte", + "filePath": "src/carbon-components-svelte/DatePicker/DatePicker.svelte", "props": [ { "name": "datePickerType", @@ -2993,7 +2993,7 @@ }, { "moduleName": "DatePickerInput", - "filePath": "src/DatePicker/DatePickerInput.svelte", + "filePath": "src/carbon-components-svelte/DatePicker/DatePickerInput.svelte", "props": [ { "name": "size", @@ -3207,7 +3207,7 @@ }, { "moduleName": "DatePickerSkeleton", - "filePath": "src/DatePicker/DatePickerSkeleton.svelte", + "filePath": "src/carbon-components-svelte/DatePicker/DatePickerSkeleton.svelte", "props": [ { "name": "range", @@ -3247,7 +3247,7 @@ }, { "moduleName": "Dropdown", - "filePath": "src/Dropdown/Dropdown.svelte", + "filePath": "src/carbon-components-svelte/Dropdown/Dropdown.svelte", "props": [ { "name": "items", @@ -3534,7 +3534,7 @@ }, { "moduleName": "DropdownSkeleton", - "filePath": "src/Dropdown/DropdownSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Dropdown/DropdownSkeleton.svelte", "props": [ { "name": "inline", @@ -3562,7 +3562,7 @@ }, { "moduleName": "ExpandableTile", - "filePath": "src/Tile/ExpandableTile.svelte", + "filePath": "src/carbon-components-svelte/Tile/ExpandableTile.svelte", "props": [ { "name": "expanded", @@ -3714,7 +3714,7 @@ }, { "moduleName": "FileUploader", - "filePath": "src/FileUploader/FileUploader.svelte", + "filePath": "src/carbon-components-svelte/FileUploader/FileUploader.svelte", "props": [ { "name": "status", @@ -3890,7 +3890,7 @@ }, { "moduleName": "FileUploaderButton", - "filePath": "src/FileUploader/FileUploaderButton.svelte", + "filePath": "src/carbon-components-svelte/FileUploader/FileUploaderButton.svelte", "props": [ { "name": "accept", @@ -4060,7 +4060,7 @@ }, { "moduleName": "FileUploaderDropContainer", - "filePath": "src/FileUploader/FileUploaderDropContainer.svelte", + "filePath": "src/carbon-components-svelte/FileUploader/FileUploaderDropContainer.svelte", "props": [ { "name": "accept", @@ -4226,7 +4226,7 @@ }, { "moduleName": "FileUploaderItem", - "filePath": "src/FileUploader/FileUploaderItem.svelte", + "filePath": "src/carbon-components-svelte/FileUploader/FileUploaderItem.svelte", "props": [ { "name": "status", @@ -4338,7 +4338,7 @@ }, { "moduleName": "FileUploaderSkeleton", - "filePath": "src/FileUploader/FileUploaderSkeleton.svelte", + "filePath": "src/carbon-components-svelte/FileUploader/FileUploaderSkeleton.svelte", "props": [], "moduleExports": [], "slots": [], @@ -4353,7 +4353,7 @@ }, { "moduleName": "Filename", - "filePath": "src/FileUploader/Filename.svelte", + "filePath": "src/carbon-components-svelte/FileUploader/Filename.svelte", "props": [ { "name": "status", @@ -4403,7 +4403,7 @@ }, { "moduleName": "FluidForm", - "filePath": "src/FluidForm/FluidForm.svelte", + "filePath": "src/carbon-components-svelte/FluidForm/FluidForm.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -4420,7 +4420,7 @@ }, { "moduleName": "Form", - "filePath": "src/Form/Form.svelte", + "filePath": "src/carbon-components-svelte/Form/Form.svelte", "props": [ { "name": "ref", @@ -4450,7 +4450,7 @@ }, { "moduleName": "FormGroup", - "filePath": "src/FormGroup/FormGroup.svelte", + "filePath": "src/carbon-components-svelte/FormGroup/FormGroup.svelte", "props": [ { "name": "noMargin", @@ -4538,7 +4538,7 @@ }, { "moduleName": "FormItem", - "filePath": "src/FormItem/FormItem.svelte", + "filePath": "src/carbon-components-svelte/FormItem/FormItem.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -4553,7 +4553,7 @@ }, { "moduleName": "FormLabel", - "filePath": "src/FormLabel/FormLabel.svelte", + "filePath": "src/carbon-components-svelte/FormLabel/FormLabel.svelte", "props": [ { "name": "id", @@ -4581,7 +4581,7 @@ }, { "moduleName": "Grid", - "filePath": "src/Grid/Grid.svelte", + "filePath": "src/carbon-components-svelte/Grid/Grid.svelte", "props": [ { "name": "as", @@ -4694,7 +4694,7 @@ }, { "moduleName": "Header", - "filePath": "src/UIShell/Header.svelte", + "filePath": "src/carbon-components-svelte/UIShell/Header.svelte", "props": [ { "name": "expandedByDefault", @@ -4841,7 +4841,7 @@ }, { "moduleName": "HeaderAction", - "filePath": "src/UIShell/HeaderAction.svelte", + "filePath": "src/carbon-components-svelte/UIShell/HeaderAction.svelte", "props": [ { "name": "isOpen", @@ -4945,7 +4945,7 @@ }, { "moduleName": "HeaderActionLink", - "filePath": "src/UIShell/HeaderActionLink.svelte", + "filePath": "src/carbon-components-svelte/UIShell/HeaderActionLink.svelte", "props": [ { "name": "linkIsActive", @@ -5009,7 +5009,7 @@ }, { "moduleName": "HeaderGlobalAction", - "filePath": "src/UIShell/HeaderGlobalAction.svelte", + "filePath": "src/carbon-components-svelte/UIShell/HeaderGlobalAction.svelte", "props": [ { "name": "isActive", @@ -5062,7 +5062,7 @@ }, { "moduleName": "HeaderNav", - "filePath": "src/UIShell/HeaderNav.svelte", + "filePath": "src/carbon-components-svelte/UIShell/HeaderNav.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -5072,7 +5072,7 @@ }, { "moduleName": "HeaderNavItem", - "filePath": "src/UIShell/HeaderNavItem.svelte", + "filePath": "src/carbon-components-svelte/UIShell/HeaderNavItem.svelte", "props": [ { "name": "href", @@ -5138,7 +5138,7 @@ }, { "moduleName": "HeaderNavMenu", - "filePath": "src/UIShell/HeaderNavMenu.svelte", + "filePath": "src/carbon-components-svelte/UIShell/HeaderNavMenu.svelte", "props": [ { "name": "expanded", @@ -5205,7 +5205,7 @@ }, { "moduleName": "HeaderPanelDivider", - "filePath": "src/UIShell/HeaderPanelDivider.svelte", + "filePath": "src/carbon-components-svelte/UIShell/HeaderPanelDivider.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -5214,7 +5214,7 @@ }, { "moduleName": "HeaderPanelLink", - "filePath": "src/UIShell/HeaderPanelLink.svelte", + "filePath": "src/carbon-components-svelte/UIShell/HeaderPanelLink.svelte", "props": [ { "name": "href", @@ -5248,7 +5248,7 @@ }, { "moduleName": "HeaderPanelLinks", - "filePath": "src/UIShell/HeaderPanelLinks.svelte", + "filePath": "src/carbon-components-svelte/UIShell/HeaderPanelLinks.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -5257,7 +5257,7 @@ }, { "moduleName": "HeaderSearch", - "filePath": "src/UIShell/HeaderSearch.svelte", + "filePath": "src/carbon-components-svelte/UIShell/HeaderSearch.svelte", "props": [ { "name": "value", @@ -5356,7 +5356,7 @@ }, { "moduleName": "HeaderUtilities", - "filePath": "src/UIShell/HeaderUtilities.svelte", + "filePath": "src/carbon-components-svelte/UIShell/HeaderUtilities.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -5365,7 +5365,7 @@ }, { "moduleName": "ImageLoader", - "filePath": "src/ImageLoader/ImageLoader.svelte", + "filePath": "src/carbon-components-svelte/ImageLoader/ImageLoader.svelte", "props": [ { "name": "src", @@ -5477,7 +5477,7 @@ }, { "moduleName": "InlineLoading", - "filePath": "src/InlineLoading/InlineLoading.svelte", + "filePath": "src/carbon-components-svelte/InlineLoading/InlineLoading.svelte", "props": [ { "name": "status", @@ -5540,7 +5540,7 @@ }, { "moduleName": "InlineNotification", - "filePath": "src/Notification/InlineNotification.svelte", + "filePath": "src/carbon-components-svelte/Notification/InlineNotification.svelte", "props": [ { "name": "kind", @@ -5684,7 +5684,7 @@ }, { "moduleName": "Link", - "filePath": "src/Link/Link.svelte", + "filePath": "src/carbon-components-svelte/Link/Link.svelte", "props": [ { "name": "size", @@ -5789,7 +5789,7 @@ }, { "moduleName": "ListBox", - "filePath": "src/ListBox/ListBox.svelte", + "filePath": "src/carbon-components-svelte/ListBox/ListBox.svelte", "props": [ { "name": "size", @@ -5910,7 +5910,7 @@ }, { "moduleName": "ListBoxField", - "filePath": "src/ListBox/ListBoxField.svelte", + "filePath": "src/carbon-components-svelte/ListBox/ListBoxField.svelte", "props": [ { "name": "disabled", @@ -6019,7 +6019,7 @@ }, { "moduleName": "ListBoxMenu", - "filePath": "src/ListBox/ListBoxMenu.svelte", + "filePath": "src/carbon-components-svelte/ListBox/ListBoxMenu.svelte", "props": [ { "name": "id", @@ -6054,7 +6054,7 @@ }, { "moduleName": "ListBoxMenuIcon", - "filePath": "src/ListBox/ListBoxMenuIcon.svelte", + "filePath": "src/carbon-components-svelte/ListBox/ListBoxMenuIcon.svelte", "props": [ { "name": "open", @@ -6107,7 +6107,7 @@ }, { "moduleName": "ListBoxMenuItem", - "filePath": "src/ListBox/ListBoxMenuItem.svelte", + "filePath": "src/carbon-components-svelte/ListBox/ListBoxMenuItem.svelte", "props": [ { "name": "active", @@ -6158,7 +6158,7 @@ }, { "moduleName": "ListBoxSelection", - "filePath": "src/ListBox/ListBoxSelection.svelte", + "filePath": "src/carbon-components-svelte/ListBox/ListBoxSelection.svelte", "props": [ { "name": "selectionCount", @@ -6234,7 +6234,7 @@ }, { "moduleName": "ListItem", - "filePath": "src/ListItem/ListItem.svelte", + "filePath": "src/carbon-components-svelte/ListItem/ListItem.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -6249,7 +6249,7 @@ }, { "moduleName": "Loading", - "filePath": "src/Loading/Loading.svelte", + "filePath": "src/carbon-components-svelte/Loading/Loading.svelte", "props": [ { "name": "small", @@ -6320,7 +6320,7 @@ }, { "moduleName": "LocalStorage", - "filePath": "src/LocalStorage/LocalStorage.svelte", + "filePath": "src/carbon-components-svelte/LocalStorage/LocalStorage.svelte", "props": [ { "name": "key", @@ -6385,7 +6385,7 @@ }, { "moduleName": "Modal", - "filePath": "src/Modal/Modal.svelte", + "filePath": "src/carbon-components-svelte/Modal/Modal.svelte", "props": [ { "name": "size", @@ -6681,7 +6681,7 @@ }, { "moduleName": "ModalBody", - "filePath": "src/ComposedModal/ModalBody.svelte", + "filePath": "src/carbon-components-svelte/ComposedModal/ModalBody.svelte", "props": [ { "name": "hasForm", @@ -6716,7 +6716,7 @@ }, { "moduleName": "ModalFooter", - "filePath": "src/ComposedModal/ModalFooter.svelte", + "filePath": "src/carbon-components-svelte/ComposedModal/ModalFooter.svelte", "props": [ { "name": "primaryButtonText", @@ -6826,7 +6826,7 @@ }, { "moduleName": "ModalHeader", - "filePath": "src/ComposedModal/ModalHeader.svelte", + "filePath": "src/carbon-components-svelte/ComposedModal/ModalHeader.svelte", "props": [ { "name": "title", @@ -6921,7 +6921,7 @@ }, { "moduleName": "MultiSelect", - "filePath": "src/MultiSelect/MultiSelect.svelte", + "filePath": "src/carbon-components-svelte/MultiSelect/MultiSelect.svelte", "props": [ { "name": "items", @@ -7387,7 +7387,7 @@ }, { "moduleName": "NotificationActionButton", - "filePath": "src/Notification/NotificationActionButton.svelte", + "filePath": "src/carbon-components-svelte/Notification/NotificationActionButton.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -7406,7 +7406,7 @@ }, { "moduleName": "NotificationButton", - "filePath": "src/Notification/NotificationButton.svelte", + "filePath": "src/carbon-components-svelte/Notification/NotificationButton.svelte", "props": [ { "name": "notificationType", @@ -7468,7 +7468,7 @@ }, { "moduleName": "NotificationIcon", - "filePath": "src/Notification/NotificationIcon.svelte", + "filePath": "src/carbon-components-svelte/Notification/NotificationIcon.svelte", "props": [ { "name": "kind", @@ -7512,7 +7512,7 @@ }, { "moduleName": "NumberInput", - "filePath": "src/NumberInput/NumberInput.svelte", + "filePath": "src/carbon-components-svelte/NumberInput/NumberInput.svelte", "props": [ { "name": "size", @@ -7820,7 +7820,7 @@ }, { "moduleName": "NumberInputSkeleton", - "filePath": "src/NumberInput/NumberInputSkeleton.svelte", + "filePath": "src/carbon-components-svelte/NumberInput/NumberInputSkeleton.svelte", "props": [ { "name": "hideLabel", @@ -7848,7 +7848,7 @@ }, { "moduleName": "OrderedList", - "filePath": "src/OrderedList/OrderedList.svelte", + "filePath": "src/carbon-components-svelte/OrderedList/OrderedList.svelte", "props": [ { "name": "nested", @@ -7900,7 +7900,7 @@ }, { "moduleName": "OutboundLink", - "filePath": "src/Link/OutboundLink.svelte", + "filePath": "src/carbon-components-svelte/Link/OutboundLink.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -7916,7 +7916,7 @@ }, { "moduleName": "OverflowMenu", - "filePath": "src/OverflowMenu/OverflowMenu.svelte", + "filePath": "src/carbon-components-svelte/OverflowMenu/OverflowMenu.svelte", "props": [ { "name": "size", @@ -8086,7 +8086,7 @@ }, { "moduleName": "OverflowMenuItem", - "filePath": "src/OverflowMenu/OverflowMenuItem.svelte", + "filePath": "src/carbon-components-svelte/OverflowMenu/OverflowMenuItem.svelte", "props": [ { "name": "text", @@ -8215,7 +8215,7 @@ }, { "moduleName": "Pagination", - "filePath": "src/Pagination/Pagination.svelte", + "filePath": "src/carbon-components-svelte/Pagination/Pagination.svelte", "props": [ { "name": "page", @@ -8440,7 +8440,7 @@ }, { "moduleName": "PaginationNav", - "filePath": "src/PaginationNav/PaginationNav.svelte", + "filePath": "src/carbon-components-svelte/PaginationNav/PaginationNav.svelte", "props": [ { "name": "page", @@ -8540,7 +8540,7 @@ }, { "moduleName": "PaginationSkeleton", - "filePath": "src/Pagination/PaginationSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Pagination/PaginationSkeleton.svelte", "props": [], "moduleExports": [], "slots": [], @@ -8555,7 +8555,7 @@ }, { "moduleName": "PasswordInput", - "filePath": "src/TextInput/PasswordInput.svelte", + "filePath": "src/carbon-components-svelte/TextInput/PasswordInput.svelte", "props": [ { "name": "size", @@ -8835,7 +8835,7 @@ }, { "moduleName": "Popover", - "filePath": "src/Popover/Popover.svelte", + "filePath": "src/carbon-components-svelte/Popover/Popover.svelte", "props": [ { "name": "open", @@ -8936,7 +8936,7 @@ }, { "moduleName": "ProgressBar", - "filePath": "src/ProgressBar/ProgressBar.svelte", + "filePath": "src/carbon-components-svelte/ProgressBar/ProgressBar.svelte", "props": [ { "name": "value", @@ -9049,7 +9049,7 @@ }, { "moduleName": "ProgressIndicator", - "filePath": "src/ProgressIndicator/ProgressIndicator.svelte", + "filePath": "src/carbon-components-svelte/ProgressIndicator/ProgressIndicator.svelte", "props": [ { "name": "currentIndex", @@ -9114,7 +9114,7 @@ }, { "moduleName": "ProgressIndicatorSkeleton", - "filePath": "src/ProgressIndicator/ProgressIndicatorSkeleton.svelte", + "filePath": "src/carbon-components-svelte/ProgressIndicator/ProgressIndicatorSkeleton.svelte", "props": [ { "name": "vertical", @@ -9154,7 +9154,7 @@ }, { "moduleName": "ProgressStep", - "filePath": "src/ProgressIndicator/ProgressStep.svelte", + "filePath": "src/carbon-components-svelte/ProgressIndicator/ProgressStep.svelte", "props": [ { "name": "complete", @@ -9274,7 +9274,7 @@ }, { "moduleName": "RadioButton", - "filePath": "src/RadioButton/RadioButton.svelte", + "filePath": "src/carbon-components-svelte/RadioButton/RadioButton.svelte", "props": [ { "name": "value", @@ -9412,7 +9412,7 @@ }, { "moduleName": "RadioButtonGroup", - "filePath": "src/RadioButtonGroup/RadioButtonGroup.svelte", + "filePath": "src/carbon-components-svelte/RadioButtonGroup/RadioButtonGroup.svelte", "props": [ { "name": "selected", @@ -9519,7 +9519,7 @@ }, { "moduleName": "RadioButtonSkeleton", - "filePath": "src/RadioButton/RadioButtonSkeleton.svelte", + "filePath": "src/carbon-components-svelte/RadioButton/RadioButtonSkeleton.svelte", "props": [], "moduleExports": [], "slots": [], @@ -9534,7 +9534,7 @@ }, { "moduleName": "RadioTile", - "filePath": "src/Tile/RadioTile.svelte", + "filePath": "src/carbon-components-svelte/Tile/RadioTile.svelte", "props": [ { "name": "checked", @@ -9648,7 +9648,7 @@ }, { "moduleName": "RecursiveList", - "filePath": "src/RecursiveList/RecursiveList.svelte", + "filePath": "src/carbon-components-svelte/RecursiveList/RecursiveList.svelte", "props": [ { "name": "children", @@ -9689,7 +9689,7 @@ }, { "moduleName": "Row", - "filePath": "src/Grid/Row.svelte", + "filePath": "src/carbon-components-svelte/Grid/Row.svelte", "props": [ { "name": "as", @@ -9790,7 +9790,7 @@ }, { "moduleName": "Search", - "filePath": "src/Search/Search.svelte", + "filePath": "src/carbon-components-svelte/Search/Search.svelte", "props": [ { "name": "value", @@ -10026,7 +10026,7 @@ }, { "moduleName": "SearchSkeleton", - "filePath": "src/Search/SearchSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Search/SearchSkeleton.svelte", "props": [ { "name": "size", @@ -10054,7 +10054,7 @@ }, { "moduleName": "Select", - "filePath": "src/Select/Select.svelte", + "filePath": "src/carbon-components-svelte/Select/Select.svelte", "props": [ { "name": "selected", @@ -10285,7 +10285,7 @@ }, { "moduleName": "SelectItem", - "filePath": "src/Select/SelectItem.svelte", + "filePath": "src/carbon-components-svelte/Select/SelectItem.svelte", "props": [ { "name": "value", @@ -10343,7 +10343,7 @@ }, { "moduleName": "SelectItemGroup", - "filePath": "src/Select/SelectItemGroup.svelte", + "filePath": "src/carbon-components-svelte/Select/SelectItemGroup.svelte", "props": [ { "name": "disabled", @@ -10378,7 +10378,7 @@ }, { "moduleName": "SelectSkeleton", - "filePath": "src/Select/SelectSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Select/SelectSkeleton.svelte", "props": [ { "name": "hideLabel", @@ -10406,7 +10406,7 @@ }, { "moduleName": "SelectableTile", - "filePath": "src/Tile/SelectableTile.svelte", + "filePath": "src/carbon-components-svelte/Tile/SelectableTile.svelte", "props": [ { "name": "selected", @@ -10543,7 +10543,7 @@ }, { "moduleName": "SideNav", - "filePath": "src/UIShell/SideNav.svelte", + "filePath": "src/carbon-components-svelte/UIShell/SideNav.svelte", "props": [ { "name": "fixed", @@ -10617,7 +10617,7 @@ }, { "moduleName": "SideNavDivider", - "filePath": "src/UIShell/SideNavDivider.svelte", + "filePath": "src/carbon-components-svelte/UIShell/SideNavDivider.svelte", "props": [], "moduleExports": [], "slots": [], @@ -10627,7 +10627,7 @@ }, { "moduleName": "SideNavItems", - "filePath": "src/UIShell/SideNavItems.svelte", + "filePath": "src/carbon-components-svelte/UIShell/SideNavItems.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -10636,7 +10636,7 @@ }, { "moduleName": "SideNavLink", - "filePath": "src/UIShell/SideNavLink.svelte", + "filePath": "src/carbon-components-svelte/UIShell/SideNavLink.svelte", "props": [ { "name": "isSelected", @@ -10717,7 +10717,7 @@ }, { "moduleName": "SideNavMenu", - "filePath": "src/UIShell/SideNavMenu.svelte", + "filePath": "src/carbon-components-svelte/UIShell/SideNavMenu.svelte", "props": [ { "name": "expanded", @@ -10782,7 +10782,7 @@ }, { "moduleName": "SideNavMenuItem", - "filePath": "src/UIShell/SideNavMenuItem.svelte", + "filePath": "src/carbon-components-svelte/UIShell/SideNavMenuItem.svelte", "props": [ { "name": "isSelected", @@ -10846,7 +10846,7 @@ }, { "moduleName": "SkeletonPlaceholder", - "filePath": "src/SkeletonPlaceholder/SkeletonPlaceholder.svelte", + "filePath": "src/carbon-components-svelte/SkeletonPlaceholder/SkeletonPlaceholder.svelte", "props": [], "moduleExports": [], "slots": [], @@ -10861,7 +10861,7 @@ }, { "moduleName": "SkeletonText", - "filePath": "src/SkeletonText/SkeletonText.svelte", + "filePath": "src/carbon-components-svelte/SkeletonText/SkeletonText.svelte", "props": [ { "name": "lines", @@ -10925,7 +10925,7 @@ }, { "moduleName": "SkipToContent", - "filePath": "src/UIShell/SkipToContent.svelte", + "filePath": "src/carbon-components-svelte/UIShell/SkipToContent.svelte", "props": [ { "name": "href", @@ -10967,7 +10967,7 @@ }, { "moduleName": "Slider", - "filePath": "src/Slider/Slider.svelte", + "filePath": "src/carbon-components-svelte/Slider/Slider.svelte", "props": [ { "name": "value", @@ -11207,7 +11207,7 @@ }, { "moduleName": "SliderSkeleton", - "filePath": "src/Slider/SliderSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Slider/SliderSkeleton.svelte", "props": [ { "name": "hideLabel", @@ -11235,7 +11235,7 @@ }, { "moduleName": "StructuredList", - "filePath": "src/StructuredList/StructuredList.svelte", + "filePath": "src/carbon-components-svelte/StructuredList/StructuredList.svelte", "props": [ { "name": "selected", @@ -11299,7 +11299,7 @@ }, { "moduleName": "StructuredListBody", - "filePath": "src/StructuredList/StructuredListBody.svelte", + "filePath": "src/carbon-components-svelte/StructuredList/StructuredListBody.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -11314,7 +11314,7 @@ }, { "moduleName": "StructuredListCell", - "filePath": "src/StructuredList/StructuredListCell.svelte", + "filePath": "src/carbon-components-svelte/StructuredList/StructuredListCell.svelte", "props": [ { "name": "head", @@ -11354,7 +11354,7 @@ }, { "moduleName": "StructuredListHead", - "filePath": "src/StructuredList/StructuredListHead.svelte", + "filePath": "src/carbon-components-svelte/StructuredList/StructuredListHead.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -11369,7 +11369,7 @@ }, { "moduleName": "StructuredListInput", - "filePath": "src/StructuredList/StructuredListInput.svelte", + "filePath": "src/carbon-components-svelte/StructuredList/StructuredListInput.svelte", "props": [ { "name": "checked", @@ -11452,7 +11452,7 @@ }, { "moduleName": "StructuredListRow", - "filePath": "src/StructuredList/StructuredListRow.svelte", + "filePath": "src/carbon-components-svelte/StructuredList/StructuredListRow.svelte", "props": [ { "name": "head", @@ -11505,7 +11505,7 @@ }, { "moduleName": "StructuredListSkeleton", - "filePath": "src/StructuredList/StructuredListSkeleton.svelte", + "filePath": "src/carbon-components-svelte/StructuredList/StructuredListSkeleton.svelte", "props": [ { "name": "rows", @@ -11533,7 +11533,7 @@ }, { "moduleName": "Switch", - "filePath": "src/ContentSwitcher/Switch.svelte", + "filePath": "src/carbon-components-svelte/ContentSwitcher/Switch.svelte", "props": [ { "name": "text", @@ -11617,7 +11617,7 @@ }, { "moduleName": "Tab", - "filePath": "src/Tabs/Tab.svelte", + "filePath": "src/carbon-components-svelte/Tabs/Tab.svelte", "props": [ { "name": "label", @@ -11712,7 +11712,7 @@ }, { "moduleName": "TabContent", - "filePath": "src/Tabs/TabContent.svelte", + "filePath": "src/carbon-components-svelte/Tabs/TabContent.svelte", "props": [ { "name": "id", @@ -11735,7 +11735,7 @@ }, { "moduleName": "Table", - "filePath": "src/DataTable/Table.svelte", + "filePath": "src/carbon-components-svelte/DataTable/Table.svelte", "props": [ { "name": "size", @@ -11816,7 +11816,7 @@ }, { "moduleName": "TableBody", - "filePath": "src/DataTable/TableBody.svelte", + "filePath": "src/carbon-components-svelte/DataTable/TableBody.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -11826,7 +11826,7 @@ }, { "moduleName": "TableCell", - "filePath": "src/DataTable/TableCell.svelte", + "filePath": "src/carbon-components-svelte/DataTable/TableCell.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -11841,7 +11841,7 @@ }, { "moduleName": "TableContainer", - "filePath": "src/DataTable/TableContainer.svelte", + "filePath": "src/carbon-components-svelte/DataTable/TableContainer.svelte", "props": [ { "name": "title", @@ -11900,7 +11900,7 @@ }, { "moduleName": "TableHead", - "filePath": "src/DataTable/TableHead.svelte", + "filePath": "src/carbon-components-svelte/DataTable/TableHead.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -11915,7 +11915,7 @@ }, { "moduleName": "TableHeader", - "filePath": "src/DataTable/TableHeader.svelte", + "filePath": "src/carbon-components-svelte/DataTable/TableHeader.svelte", "props": [ { "name": "sortable", @@ -12003,7 +12003,7 @@ }, { "moduleName": "TableRow", - "filePath": "src/DataTable/TableRow.svelte", + "filePath": "src/carbon-components-svelte/DataTable/TableRow.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -12018,7 +12018,7 @@ }, { "moduleName": "Tabs", - "filePath": "src/Tabs/Tabs.svelte", + "filePath": "src/carbon-components-svelte/Tabs/Tabs.svelte", "props": [ { "name": "selected", @@ -12096,7 +12096,7 @@ }, { "moduleName": "TabsSkeleton", - "filePath": "src/Tabs/TabsSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Tabs/TabsSkeleton.svelte", "props": [ { "name": "count", @@ -12136,7 +12136,7 @@ }, { "moduleName": "Tag", - "filePath": "src/Tag/Tag.svelte", + "filePath": "src/carbon-components-svelte/Tag/Tag.svelte", "props": [ { "name": "type", @@ -12270,7 +12270,7 @@ }, { "moduleName": "TagSkeleton", - "filePath": "src/Tag/TagSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Tag/TagSkeleton.svelte", "props": [ { "name": "size", @@ -12297,7 +12297,7 @@ }, { "moduleName": "TextArea", - "filePath": "src/TextArea/TextArea.svelte", + "filePath": "src/carbon-components-svelte/TextArea/TextArea.svelte", "props": [ { "name": "value", @@ -12517,7 +12517,7 @@ }, { "moduleName": "TextAreaSkeleton", - "filePath": "src/TextArea/TextAreaSkeleton.svelte", + "filePath": "src/carbon-components-svelte/TextArea/TextAreaSkeleton.svelte", "props": [ { "name": "hideLabel", @@ -12545,7 +12545,7 @@ }, { "moduleName": "TextInput", - "filePath": "src/TextInput/TextInput.svelte", + "filePath": "src/carbon-components-svelte/TextInput/TextInput.svelte", "props": [ { "name": "size", @@ -12772,16 +12772,6 @@ } ], "events": [ - { - "type": "dispatched", - "name": "change", - "detail": "null | number | string" - }, - { - "type": "dispatched", - "name": "input", - "detail": "null | number | string" - }, { "type": "forwarded", "name": "click", "element": "div" }, { "type": "forwarded", "name": "mouseover", "element": "div" }, { "type": "forwarded", "name": "mouseenter", "element": "div" }, @@ -12790,14 +12780,16 @@ { "type": "forwarded", "name": "keyup", "element": "input" }, { "type": "forwarded", "name": "focus", "element": "input" }, { "type": "forwarded", "name": "blur", "element": "input" }, - { "type": "forwarded", "name": "paste", "element": "input" } + { "type": "forwarded", "name": "paste", "element": "input" }, + { "type": "dispatched", "name": "input" }, + { "type": "dispatched", "name": "change" } ], "typedefs": [], "rest_props": { "type": "Element", "name": "input" } }, { "moduleName": "TextInputSkeleton", - "filePath": "src/TextInput/TextInputSkeleton.svelte", + "filePath": "src/carbon-components-svelte/TextInput/TextInputSkeleton.svelte", "props": [ { "name": "hideLabel", @@ -12825,7 +12817,7 @@ }, { "moduleName": "Theme", - "filePath": "src/Theme/Theme.svelte", + "filePath": "src/carbon-components-svelte/Theme/Theme.svelte", "props": [ { "name": "theme", @@ -12936,7 +12928,7 @@ }, { "moduleName": "Tile", - "filePath": "src/Tile/Tile.svelte", + "filePath": "src/carbon-components-svelte/Tile/Tile.svelte", "props": [ { "name": "light", @@ -12964,7 +12956,7 @@ }, { "moduleName": "TileGroup", - "filePath": "src/Tile/TileGroup.svelte", + "filePath": "src/carbon-components-svelte/Tile/TileGroup.svelte", "props": [ { "name": "selected", @@ -13010,7 +13002,7 @@ }, { "moduleName": "TimePicker", - "filePath": "src/TimePicker/TimePicker.svelte", + "filePath": "src/carbon-components-svelte/TimePicker/TimePicker.svelte", "props": [ { "name": "size", @@ -13207,7 +13199,7 @@ }, { "moduleName": "TimePickerSelect", - "filePath": "src/TimePicker/TimePickerSelect.svelte", + "filePath": "src/carbon-components-svelte/TimePicker/TimePickerSelect.svelte", "props": [ { "name": "value", @@ -13314,7 +13306,7 @@ }, { "moduleName": "ToastNotification", - "filePath": "src/Notification/ToastNotification.svelte", + "filePath": "src/carbon-components-svelte/Notification/ToastNotification.svelte", "props": [ { "name": "kind", @@ -13487,7 +13479,7 @@ }, { "moduleName": "Toggle", - "filePath": "src/Toggle/Toggle.svelte", + "filePath": "src/carbon-components-svelte/Toggle/Toggle.svelte", "props": [ { "name": "size", @@ -13638,7 +13630,7 @@ }, { "moduleName": "ToggleSkeleton", - "filePath": "src/Toggle/ToggleSkeleton.svelte", + "filePath": "src/carbon-components-svelte/Toggle/ToggleSkeleton.svelte", "props": [ { "name": "size", @@ -13697,7 +13689,7 @@ }, { "moduleName": "Toolbar", - "filePath": "src/DataTable/Toolbar.svelte", + "filePath": "src/carbon-components-svelte/DataTable/Toolbar.svelte", "props": [ { "name": "size", @@ -13720,7 +13712,7 @@ }, { "moduleName": "ToolbarBatchActions", - "filePath": "src/DataTable/ToolbarBatchActions.svelte", + "filePath": "src/carbon-components-svelte/DataTable/ToolbarBatchActions.svelte", "props": [ { "name": "formatTotalSelected", @@ -13762,7 +13754,7 @@ }, { "moduleName": "ToolbarContent", - "filePath": "src/DataTable/ToolbarContent.svelte", + "filePath": "src/carbon-components-svelte/DataTable/ToolbarContent.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -13771,7 +13763,7 @@ }, { "moduleName": "ToolbarMenu", - "filePath": "src/DataTable/ToolbarMenu.svelte", + "filePath": "src/carbon-components-svelte/DataTable/ToolbarMenu.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -13785,7 +13777,7 @@ }, { "moduleName": "ToolbarMenuItem", - "filePath": "src/DataTable/ToolbarMenuItem.svelte", + "filePath": "src/carbon-components-svelte/DataTable/ToolbarMenuItem.svelte", "props": [], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], @@ -13806,7 +13798,7 @@ }, { "moduleName": "ToolbarSearch", - "filePath": "src/DataTable/ToolbarSearch.svelte", + "filePath": "src/carbon-components-svelte/DataTable/ToolbarSearch.svelte", "props": [ { "name": "value", @@ -13922,7 +13914,7 @@ }, { "moduleName": "Tooltip", - "filePath": "src/Tooltip/Tooltip.svelte", + "filePath": "src/carbon-components-svelte/Tooltip/Tooltip.svelte", "props": [ { "name": "align", @@ -14119,7 +14111,7 @@ }, { "moduleName": "TooltipDefinition", - "filePath": "src/TooltipDefinition/TooltipDefinition.svelte", + "filePath": "src/carbon-components-svelte/TooltipDefinition/TooltipDefinition.svelte", "props": [ { "name": "tooltipText", @@ -14218,7 +14210,7 @@ }, { "moduleName": "TooltipFooter", - "filePath": "src/Tooltip/TooltipFooter.svelte", + "filePath": "src/carbon-components-svelte/Tooltip/TooltipFooter.svelte", "props": [ { "name": "selectorPrimaryFocus", @@ -14240,7 +14232,7 @@ }, { "moduleName": "TooltipIcon", - "filePath": "src/TooltipIcon/TooltipIcon.svelte", + "filePath": "src/carbon-components-svelte/TooltipIcon/TooltipIcon.svelte", "props": [ { "name": "tooltipText", @@ -14353,7 +14345,7 @@ }, { "moduleName": "TreeView", - "filePath": "src/TreeView/TreeView.svelte", + "filePath": "src/carbon-components-svelte/TreeView/TreeView.svelte", "props": [ { "name": "children", @@ -14531,7 +14523,7 @@ }, { "moduleName": "Truncate", - "filePath": "src/Truncate/Truncate.svelte", + "filePath": "src/carbon-components-svelte/Truncate/Truncate.svelte", "props": [ { "name": "clamp", @@ -14553,7 +14545,7 @@ }, { "moduleName": "UnorderedList", - "filePath": "src/UnorderedList/UnorderedList.svelte", + "filePath": "src/carbon-components-svelte/UnorderedList/UnorderedList.svelte", "props": [ { "name": "nested", diff --git a/package.json b/package.json index b0645483..5760e755 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "license": "Apache-2.0", "description": "Svelte implementation of the Carbon Design System", "type": "module", + "svelte": "src/carbon-components-svelte/index.js", "module": "src/carbon-components-svelte", "scripts": { "test:types": "svelte-check --workspace tests", diff --git a/scripts/build-docs.js b/scripts/build-docs.js index be702867..0e3a78a5 100644 --- a/scripts/build-docs.js +++ b/scripts/build-docs.js @@ -6,6 +6,7 @@ import pkg from "../package.json" assert { type: "json" }; sveld({ glob: true, markdown: true, + types: false, markdownOptions: { onAppend: (type, document, components) => { if (type === "h1") diff --git a/types/Accordion/Accordion.svelte.d.ts b/types/Accordion/Accordion.svelte.d.ts deleted file mode 100644 index 8a9a8c10..00000000 --- a/types/Accordion/Accordion.svelte.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; -import type { AccordionSkeletonProps } from "./AccordionSkeleton.svelte"; - -export interface AccordionProps extends AccordionSkeletonProps { - /** - * Specify alignment of accordion item chevron icon - * @default "end" - */ - align?: "start" | "end"; - - /** - * Specify the size of the accordion - * @default undefined - */ - size?: "sm" | "xl"; - - /** - * Set to `true` to disable the accordion - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to display the skeleton state - * @default false - */ - skeleton?: boolean; -} - -export default class Accordion extends SvelteComponentTyped< - AccordionProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/Accordion/AccordionItem.svelte.d.ts b/types/Accordion/AccordionItem.svelte.d.ts deleted file mode 100644 index cfdd9073..00000000 --- a/types/Accordion/AccordionItem.svelte.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface AccordionItemProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the title of the accordion item heading - * Alternatively, use the "title" slot (e.g.,
...
) - * @default "title" - */ - title?: string; - - /** - * Set to `true` to open the first accordion item - * @default false - */ - open?: boolean; - - /** - * Set to `true` to disable the accordion item - * @default false - */ - disabled?: boolean; - - /** - * Specify the ARIA label for the accordion item chevron icon - * @default "Expand/Collapse" - */ - iconDescription?: string; -} - -export default class AccordionItem extends SvelteComponentTyped< - AccordionItemProps, - { - animationend: WindowEventMap["animationend"]; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keydown: WindowEventMap["keydown"]; - }, - { default: {}; title: {} } -> {} diff --git a/types/Accordion/AccordionSkeleton.svelte.d.ts b/types/Accordion/AccordionSkeleton.svelte.d.ts deleted file mode 100644 index deab5da7..00000000 --- a/types/Accordion/AccordionSkeleton.svelte.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface AccordionSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the number of accordion items to render - * @default 4 - */ - count?: number; - - /** - * Specify alignment of accordion item chevron icon - * @default "end" - */ - align?: "start" | "end"; - - /** - * Specify the size of the accordion - * @default undefined - */ - size?: "sm" | "xl"; - - /** - * Set to `false` to close the first accordion item - * @default true - */ - open?: boolean; -} - -export default class AccordionSkeleton extends SvelteComponentTyped< - AccordionSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/AspectRatio/AspectRatio.svelte.d.ts b/types/AspectRatio/AspectRatio.svelte.d.ts deleted file mode 100644 index a78f7916..00000000 --- a/types/AspectRatio/AspectRatio.svelte.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface AspectRatioProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the aspect ratio - * @default "2x1" - */ - ratio?: - | "2x1" - | "2x3" - | "16x9" - | "4x3" - | "1x1" - | "3x4" - | "3x2" - | "9x16" - | "1x2"; -} - -export default class AspectRatio extends SvelteComponentTyped< - AspectRatioProps, - {}, - { default: {} } -> {} diff --git a/types/Breadcrumb/Breadcrumb.svelte.d.ts b/types/Breadcrumb/Breadcrumb.svelte.d.ts deleted file mode 100644 index c4964716..00000000 --- a/types/Breadcrumb/Breadcrumb.svelte.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; -import type { BreadcrumbSkeletonProps } from "./BreadcrumbSkeleton.svelte"; - -export interface BreadcrumbProps extends BreadcrumbSkeletonProps { - /** - * Set to `true` to hide the breadcrumb trailing slash - * @default false - */ - noTrailingSlash?: boolean; - - /** - * Set to `true` to display skeleton state - * @default false - */ - skeleton?: boolean; -} - -export default class Breadcrumb extends SvelteComponentTyped< - BreadcrumbProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/Breadcrumb/BreadcrumbItem.svelte.d.ts b/types/Breadcrumb/BreadcrumbItem.svelte.d.ts deleted file mode 100644 index adee0e60..00000000 --- a/types/Breadcrumb/BreadcrumbItem.svelte.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface BreadcrumbItemProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the `href` to use an anchor link - * @default undefined - */ - href?: string; - - /** - * Set to `true` if the breadcrumb item represents the current page - * @default false - */ - isCurrentPage?: boolean; -} - -export default class BreadcrumbItem extends SvelteComponentTyped< - BreadcrumbItemProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: { props?: { ["aria-current"]?: string; class: "bx--link" } } } -> {} diff --git a/types/Breadcrumb/BreadcrumbSkeleton.svelte.d.ts b/types/Breadcrumb/BreadcrumbSkeleton.svelte.d.ts deleted file mode 100644 index 4bb333a1..00000000 --- a/types/Breadcrumb/BreadcrumbSkeleton.svelte.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface BreadcrumbSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to hide the breadcrumb trailing slash - * @default false - */ - noTrailingSlash?: boolean; - - /** - * Specify the number of breadcrumb items to render - * @default 3 - */ - count?: number; -} - -export default class BreadcrumbSkeleton extends SvelteComponentTyped< - BreadcrumbSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/Breakpoint/Breakpoint.svelte.d.ts b/types/Breakpoint/Breakpoint.svelte.d.ts deleted file mode 100644 index 2b514e3c..00000000 --- a/types/Breakpoint/Breakpoint.svelte.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type BreakpointSize = "sm" | "md" | "lg" | "xlg" | "max"; - -export type BreakpointValue = 320 | 672 | 1056 | 1312 | 1584; - -export interface BreakpointProps { - /** - * Determine the current Carbon grid breakpoint size - * @default undefined - */ - size?: BreakpointSize; - - /** - * Carbon grid sizes as an object - * @default { sm: false, md: false, lg: false, xlg: false, max: false, } - */ - sizes?: Record; -} - -export default class Breakpoint extends SvelteComponentTyped< - BreakpointProps, - { - change: CustomEvent<{ - size: BreakpointSize; - breakpointValue: BreakpointValue; - }>; - }, - { default: { size: BreakpointSize; sizes: Record } } -> {} diff --git a/types/Breakpoint/breakpointObserver.d.ts b/types/Breakpoint/breakpointObserver.d.ts deleted file mode 100644 index 69175629..00000000 --- a/types/Breakpoint/breakpointObserver.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { Readable, Subscriber, Unsubscriber } from "svelte/store"; -import type { BreakpointSize, BreakpointValue } from "./breakpoints"; - -/** - * Creates a readable store that returns the current breakpoint size. - * It also provides functions for creating derived stores used to do comparisons. - */ -export function breakpointObserver(): { - subscribe: ( - this: void, - run: Subscriber, - invalidate?: (value?: any) => void - ) => Unsubscriber; - /** - * Returns a store readable store that returns whether the current - * breakpoint is smaller than {@link size}. - * @param {BreakpointSize} size Size to compare against. - */ - smallerThan: (size: BreakpointSize) => Readable; - /** - * Returns a store readable store that returns whether the current - * breakpoint is larger than {@link size}. - * @param {BreakpointSize} size Size to compare against. - */ - largerThan: (size: BreakpointSize) => Readable; -}; - -export default breakpointObserver; diff --git a/types/Breakpoint/breakpoints.d.ts b/types/Breakpoint/breakpoints.d.ts deleted file mode 100644 index 44bbbcc4..00000000 --- a/types/Breakpoint/breakpoints.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Pixel sizes of Carbon grid breakpoints. - * @type {Record} - */ -export const breakpoints: Record; - -export type BreakpointSize = "sm" | "md" | "lg" | "xlg" | "max"; - -export type BreakpointValue = 320 | 672 | 1056 | 1312 | 1584; - -export default breakpoints; diff --git a/types/Breakpoint/index.d.ts b/types/Breakpoint/index.d.ts deleted file mode 100644 index 749b78c5..00000000 --- a/types/Breakpoint/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { default as Breakpoint } from "./Breakpoint.svelte"; -export { breakpointObserver } from "./breakpointObserver"; -export { breakpoints } from "./breakpoints"; diff --git a/types/Button/Button.svelte.d.ts b/types/Button/Button.svelte.d.ts deleted file mode 100644 index 046ef754..00000000 --- a/types/Button/Button.svelte.d.ts +++ /dev/null @@ -1,131 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; -import type { ButtonSkeletonProps } from "./ButtonSkeleton.svelte"; - -export interface ButtonProps - extends ButtonSkeletonProps, - svelte.JSX.HTMLAttributes, - svelte.JSX.HTMLAttributes, - svelte.JSX.HTMLAttributes { - /** - * Specify the kind of button - * @default "primary" - */ - kind?: - | "primary" - | "secondary" - | "tertiary" - | "ghost" - | "danger" - | "danger-tertiary" - | "danger-ghost"; - - /** - * Specify the size of button - * @default "default" - */ - size?: "default" | "field" | "small" | "lg" | "xl"; - - /** - * Set to `true` to use Carbon's expressive typesetting - * @default false - */ - expressive?: boolean; - - /** - * Set to `true` to enable the selected state for an icon-only, ghost button - * @default false - */ - isSelected?: boolean; - - /** - * Specify the icon to render - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Specify the ARIA label for the button icon - * @default undefined - */ - iconDescription?: string; - - /** - * Set the alignment of the tooltip relative to the icon. - * Only applies to icon-only buttons - * @default "center" - */ - tooltipAlignment?: "start" | "center" | "end"; - - /** - * Set the position of the tooltip relative to the icon - * @default "bottom" - */ - tooltipPosition?: "top" | "right" | "bottom" | "left"; - - /** - * Set to `true` to render a custom HTML element - * Props are destructured as `props` in the default slot (e.g., ) - * @default false - */ - as?: boolean; - - /** - * Set to `true` to display the skeleton state - * @default false - */ - skeleton?: boolean; - - /** - * Set to `true` to disable the button - * @default false - */ - disabled?: boolean; - - /** - * Set the `href` to use an anchor link - * @default undefined - */ - href?: string; - - /** - * Specify the tabindex - * @default "0" - */ - tabindex?: string; - - /** - * Specify the `type` attribute for the button element - * @default "button" - */ - type?: string; - - /** - * Obtain a reference to the HTML element - * @default null - */ - ref?: null | HTMLAnchorElement | HTMLButtonElement; -} - -export default class Button extends SvelteComponentTyped< - ButtonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { - default: { - props: { - role: "button"; - type?: string; - tabindex: any; - disabled: boolean; - href?: string; - class: string; - [key: string]: any; - }; - }; - } -> {} diff --git a/types/Button/ButtonSet.svelte.d.ts b/types/Button/ButtonSet.svelte.d.ts deleted file mode 100644 index af5ab7ec..00000000 --- a/types/Button/ButtonSet.svelte.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ButtonSetProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to stack the buttons vertically - * @default false - */ - stacked?: boolean; -} - -export default class ButtonSet extends SvelteComponentTyped< - ButtonSetProps, - {}, - { default: {} } -> {} diff --git a/types/Button/ButtonSkeleton.svelte.d.ts b/types/Button/ButtonSkeleton.svelte.d.ts deleted file mode 100644 index f710192e..00000000 --- a/types/Button/ButtonSkeleton.svelte.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ButtonSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the `href` to use an anchor link - * @default undefined - */ - href?: string; - - /** - * Specify the size of button skeleton - * @default "default" - */ - size?: "default" | "field" | "small" | "lg" | "xl"; -} - -export default class ButtonSkeleton extends SvelteComponentTyped< - ButtonSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/Checkbox/Checkbox.svelte.d.ts b/types/Checkbox/Checkbox.svelte.d.ts deleted file mode 100644 index 0b014d3c..00000000 --- a/types/Checkbox/Checkbox.svelte.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface CheckboxProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the value of the checkbox - * @default "" - */ - value?: any; - - /** - * Specify whether the checkbox is checked - * @default false - */ - checked?: boolean; - - /** - * Specify the bound group - * @default undefined - */ - group?: ReadonlyArray; - - /** - * Specify whether the checkbox is indeterminate - * @default false - */ - indeterminate?: boolean; - - /** - * Set to `true` to display the skeleton state - * @default false - */ - skeleton?: boolean; - - /** - * Set to `true` to mark the field as required - * @default false - */ - required?: boolean; - - /** - * Set to `true` for the checkbox to be read-only - * @default false - */ - readonly?: boolean; - - /** - * Set to `true` to disable the checkbox - * @default false - */ - disabled?: boolean; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Set a name for the input element - * @default "" - */ - name?: string; - - /** - * Specify the title attribute for the label element - * @default undefined - */ - title?: string; - - /** - * Set an id for the input label - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class Checkbox extends SvelteComponentTyped< - CheckboxProps, - { - check: CustomEvent; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - change: WindowEventMap["change"]; - blur: WindowEventMap["blur"]; - }, - { labelText: {} } -> {} diff --git a/types/Checkbox/CheckboxSkeleton.svelte.d.ts b/types/Checkbox/CheckboxSkeleton.svelte.d.ts deleted file mode 100644 index ee232f5a..00000000 --- a/types/Checkbox/CheckboxSkeleton.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface CheckboxSkeletonProps - extends svelte.JSX.HTMLAttributes {} - -export default class CheckboxSkeleton extends SvelteComponentTyped< - CheckboxSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/CodeSnippet/CodeSnippet.svelte.d.ts b/types/CodeSnippet/CodeSnippet.svelte.d.ts deleted file mode 100644 index bdf23e0b..00000000 --- a/types/CodeSnippet/CodeSnippet.svelte.d.ts +++ /dev/null @@ -1,133 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface CodeSnippetProps { - /** - * Set the type of code snippet - * @default "single" - */ - type?: "single" | "inline" | "multi"; - - /** - * Set the code snippet text - * Alternatively, use the default slot (e.g., {`code`}) - * You must use the `code` prop to copy the code - * @default undefined - */ - code?: string; - - /** - * Override the default copy behavior of using the navigator.clipboard.writeText API to copy text - * @default async (code) => { try { await navigator.clipboard.writeText(code); } catch (e) { console.log(e); } } - */ - copy?: (code: string) => void; - - /** - * Set to `true` to expand a multi-line code snippet (type="multi") - * @default false - */ - expanded?: boolean; - - /** - * Set to `true` to hide the copy button - * @default false - */ - hideCopyButton?: boolean; - - /** - * Set to `true` for the disabled variant - * Only applies to the "single", "multi" types - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to wrap the text - * Note that `type` must be "multi" - * @default false - */ - wrapText?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to display the skeleton state - * @default false - */ - skeleton?: boolean; - - /** - * Specify the ARIA label for the copy button icon - * @default undefined - */ - copyButtonDescription?: string; - - /** - * Specify the ARIA label of the copy button - * @default undefined - */ - copyLabel?: string; - - /** - * Specify the feedback text displayed when clicking the snippet - * @default "Copied!" - */ - feedback?: string; - - /** - * Set the timeout duration (ms) to display feedback text - * @default 2000 - */ - feedbackTimeout?: number; - - /** - * Specify the show less text - * `type` must be "multi" - * @default "Show less" - */ - showLessText?: string; - - /** - * Specify the show more text - * `type` must be "multi" - * @default "Show more" - */ - showMoreText?: string; - - /** - * Set to `true` to enable the show more/less button - * @default false - */ - showMoreLess?: boolean; - - /** - * Set an id for the code element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the pre HTML element - * @default null - */ - ref?: null | HTMLPreElement; -} - -export default class CodeSnippet extends SvelteComponentTyped< - CodeSnippetProps, - { - expand: CustomEvent; - collapse: CustomEvent; - copy: CustomEvent; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - animationend: WindowEventMap["animationend"]; - }, - { default: {} } -> {} diff --git a/types/CodeSnippet/CodeSnippetSkeleton.svelte.d.ts b/types/CodeSnippet/CodeSnippetSkeleton.svelte.d.ts deleted file mode 100644 index 65e28064..00000000 --- a/types/CodeSnippet/CodeSnippetSkeleton.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface CodeSnippetSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the type of code snippet - * @default "single" - */ - type?: "single" | "multi"; -} - -export default class CodeSnippetSkeleton extends SvelteComponentTyped< - CodeSnippetSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/ComboBox/ComboBox.svelte.d.ts b/types/ComboBox/ComboBox.svelte.d.ts deleted file mode 100644 index 97361ff7..00000000 --- a/types/ComboBox/ComboBox.svelte.d.ts +++ /dev/null @@ -1,178 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type ComboBoxItemId = any; - -export interface ComboBoxItem { - id: ComboBoxItemId; - text: string; - disabled?: boolean; -} - -export interface ComboBoxProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the combobox items - * @default [] - */ - items?: ReadonlyArray; - - /** - * Override the display of a combobox item - * @default (item) => item.text || item.id - */ - itemToString?: (item: ComboBoxItem) => string; - - /** - * Set the selected item by value id - * @default undefined - */ - selectedId?: ComboBoxItemId; - - /** - * Specify the selected combobox value - * @default "" - */ - value?: string; - - /** - * Specify the direction of the combobox dropdown menu - * @default "bottom" - */ - direction?: "bottom" | "top"; - - /** - * Set the size of the combobox - * @default undefined - */ - size?: "sm" | "xl"; - - /** - * Set to `true` to disable the combobox - * @default false - */ - disabled?: boolean; - - /** - * Specify the title text of the combobox - * @default "" - */ - titleText?: string; - - /** - * Specify the placeholder text - * @default "" - */ - placeholder?: string; - - /** - * Specify the helper text - * @default "" - */ - helperText?: string; - - /** - * Specify the invalid state text - * @default "" - */ - invalidText?: string; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Set to `true` to indicate an warning state - * @default false - */ - warn?: boolean; - - /** - * Specify the warning state text - * @default "" - */ - warnText?: string; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to open the combobox menu dropdown - * @default false - */ - open?: boolean; - - /** - * Determine if an item should be filtered given the current combobox value - * @default () => true - */ - shouldFilterItem?: (item: ComboBoxItem, value: string) => boolean; - - /** - * Override the chevron icon label based on the open state. - * Defaults to "Open menu" when closed and "Close menu" when open - * @default undefined - */ - translateWithId?: ( - id: import("../ListBox/ListBoxMenuIcon.svelte").ListBoxMenuIconTranslationId - ) => string; - - /** - * Override the label of the clear button when the input has a selection. - * Defaults to "Clear selected item" since a combo box can only have on selection. - * @default undefined - */ - translateWithIdSelection?: (id: "clearSelection") => string; - - /** - * Set an id for the list box component - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the input - * @default undefined - */ - name?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; - - /** - * Obtain a reference to the list HTML element - * @default null - */ - listRef?: null | HTMLDivElement; -} - -export default class ComboBox extends SvelteComponentTyped< - ComboBoxProps, - { - select: CustomEvent<{ - selectedId: ComboBoxItemId; - selectedItem: ComboBoxItem; - }>; - keydown: WindowEventMap["keydown"]; - keyup: WindowEventMap["keyup"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - paste: DocumentAndElementEventHandlersEventMap["paste"]; - clear: WindowEventMap["clear"]; - scroll: WindowEventMap["scroll"]; - }, - { default: { item: ComboBoxItem; index: number } } -> { - /** - * Clear the combo box programmatically - */ - clear: (options?: { focus?: boolean }) => void; -} diff --git a/types/ComposedModal/ComposedModal.svelte.d.ts b/types/ComposedModal/ComposedModal.svelte.d.ts deleted file mode 100644 index 9c567667..00000000 --- a/types/ComposedModal/ComposedModal.svelte.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ComposedModalProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the size of the composed modal - * @default undefined - */ - size?: "xs" | "sm" | "lg"; - - /** - * Set to `true` to open the modal - * @default false - */ - open?: boolean; - - /** - * Set to `true` to use the danger variant - * @default false - */ - danger?: boolean; - - /** - * Set to `true` to prevent the modal from closing when clicking outside - * @default false - */ - preventCloseOnClickOutside?: boolean; - - /** - * Specify a class for the inner modal - * @default "" - */ - containerClass?: string; - - /** - * Specify a selector to be focused when opening the modal - * @default "[data-modal-primary-focus]" - */ - selectorPrimaryFocus?: null | string; - - /** - * Obtain a reference to the top-level HTML element - * @default null - */ - ref?: null | HTMLDivElement; -} - -export default class ComposedModal extends SvelteComponentTyped< - ComposedModalProps, - { - transitionend: CustomEvent<{ open: boolean }>; - keydown: WindowEventMap["keydown"]; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - submit: CustomEvent; - ["click:button--primary"]: CustomEvent; - close: CustomEvent; - open: CustomEvent; - }, - { default: {} } -> {} diff --git a/types/ComposedModal/ModalBody.svelte.d.ts b/types/ComposedModal/ModalBody.svelte.d.ts deleted file mode 100644 index 2202b6c9..00000000 --- a/types/ComposedModal/ModalBody.svelte.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ModalBodyProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` if the modal contains form elements - * @default false - */ - hasForm?: boolean; - - /** - * Set to `true` if the modal contains scrolling content - * @default false - */ - hasScrollingContent?: boolean; -} - -export default class ModalBody extends SvelteComponentTyped< - ModalBodyProps, - {}, - { default: {} } -> {} diff --git a/types/ComposedModal/ModalFooter.svelte.d.ts b/types/ComposedModal/ModalFooter.svelte.d.ts deleted file mode 100644 index 1b0fc2c8..00000000 --- a/types/ComposedModal/ModalFooter.svelte.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ModalFooterProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the primary button text - * @default "" - */ - primaryButtonText?: string; - - /** - * Specify the primary button icon - * @default undefined - */ - primaryButtonIcon?: typeof import("svelte").SvelteComponent; - - /** - * Set to `true` to disable the primary button - * @default false - */ - primaryButtonDisabled?: boolean; - - /** - * Specify a class for the primary button - * @default undefined - */ - primaryClass?: string; - - /** - * Specify the secondary button text - * @default "" - */ - secondaryButtonText?: string; - - /** - * 2-tuple prop to render two secondary buttons for a 3 button modal - * supersedes `secondaryButtonText` - * @default [] - */ - secondaryButtons?: [{ text: string }, { text: string }]; - - /** - * Specify a class for the secondary button - * @default undefined - */ - secondaryClass?: string; - - /** - * Set to `true` to use the danger variant - * @default false - */ - danger?: boolean; -} - -export default class ModalFooter extends SvelteComponentTyped< - ModalFooterProps, - { ["click:button--secondary"]: CustomEvent<{ text: string }> }, - { default: {} } -> {} diff --git a/types/ComposedModal/ModalHeader.svelte.d.ts b/types/ComposedModal/ModalHeader.svelte.d.ts deleted file mode 100644 index 30fd7e10..00000000 --- a/types/ComposedModal/ModalHeader.svelte.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ModalHeaderProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the modal title - * @default "" - */ - title?: string; - - /** - * Specify the modal label - * @default "" - */ - label?: string; - - /** - * Specify the label class - * @default "" - */ - labelClass?: string; - - /** - * Specify the title class - * @default "" - */ - titleClass?: string; - - /** - * Specify the close class - * @default "" - */ - closeClass?: string; - - /** - * Specify the close icon class - * @default "" - */ - closeIconClass?: string; - - /** - * Specify the ARIA label for the close icon - * @default "Close" - */ - iconDescription?: string; -} - -export default class ModalHeader extends SvelteComponentTyped< - ModalHeaderProps, - { click: WindowEventMap["click"] }, - { default: {} } -> {} diff --git a/types/ContentSwitcher/ContentSwitcher.svelte.d.ts b/types/ContentSwitcher/ContentSwitcher.svelte.d.ts deleted file mode 100644 index af6159bb..00000000 --- a/types/ContentSwitcher/ContentSwitcher.svelte.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ContentSwitcherProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the selected index of the switch item - * @default 0 - */ - selectedIndex?: number; - - /** - * Specify the size of the content switcher - * @default undefined - */ - size?: "sm" | "xl"; -} - -export default class ContentSwitcher extends SvelteComponentTyped< - ContentSwitcherProps, - { - change: CustomEvent; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/ContentSwitcher/Switch.svelte.d.ts b/types/ContentSwitcher/Switch.svelte.d.ts deleted file mode 100644 index 2937b02e..00000000 --- a/types/ContentSwitcher/Switch.svelte.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SwitchProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the switch text - * Alternatively, use the "text" slot (e.g., ...) - * @default "Provide text" - */ - text?: string; - - /** - * Set to `true` for the switch to be selected - * @default false - */ - selected?: boolean; - - /** - * Set to `true` to disable the switch - * @default false - */ - disabled?: boolean; - - /** - * Set an id for the button element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the button HTML element - * @default null - */ - ref?: null | HTMLButtonElement; -} - -export default class Switch extends SvelteComponentTyped< - SwitchProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keydown: WindowEventMap["keydown"]; - }, - { default: {} } -> {} diff --git a/types/ContextMenu/ContextMenu.svelte.d.ts b/types/ContextMenu/ContextMenu.svelte.d.ts deleted file mode 100644 index fd6c084e..00000000 --- a/types/ContextMenu/ContextMenu.svelte.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ContextMenuProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify an element or list of elements to trigger the context menu. - * If no element is specified, the context menu applies to the entire window - * @default null - */ - target?: null | ReadonlyArray; - - /** - * Set to `true` to open the menu - * Either `x` and `y` must be greater than zero - * @default false - */ - open?: boolean; - - /** - * Specify the horizontal offset of the menu position - * @default 0 - */ - x?: number; - - /** - * Specify the vertical offset of the menu position - * @default 0 - */ - y?: number; - - /** - * Obtain a reference to the unordered list HTML element - * @default null - */ - ref?: null | HTMLUListElement; -} - -export default class ContextMenu extends SvelteComponentTyped< - ContextMenuProps, - { - open: CustomEvent; - click: WindowEventMap["click"]; - keydown: WindowEventMap["keydown"]; - close: CustomEvent; - }, - { default: {} } -> {} diff --git a/types/ContextMenu/ContextMenuDivider.svelte.d.ts b/types/ContextMenu/ContextMenuDivider.svelte.d.ts deleted file mode 100644 index a94d6bc3..00000000 --- a/types/ContextMenu/ContextMenuDivider.svelte.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ContextMenuDividerProps {} - -export default class ContextMenuDivider extends SvelteComponentTyped< - ContextMenuDividerProps, - {}, - {} -> {} diff --git a/types/ContextMenu/ContextMenuGroup.svelte.d.ts b/types/ContextMenu/ContextMenuGroup.svelte.d.ts deleted file mode 100644 index 16cdc2e6..00000000 --- a/types/ContextMenu/ContextMenuGroup.svelte.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ContextMenuGroupProps { - /** - * @default [] - */ - selectedIds?: ReadonlyArray; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; -} - -export default class ContextMenuGroup extends SvelteComponentTyped< - ContextMenuGroupProps, - {}, - { default: {} } -> {} diff --git a/types/ContextMenu/ContextMenuOption.svelte.d.ts b/types/ContextMenu/ContextMenuOption.svelte.d.ts deleted file mode 100644 index ac151b6e..00000000 --- a/types/ContextMenu/ContextMenuOption.svelte.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ContextMenuOptionProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the kind of option - * @default "default" - */ - kind?: "default" | "danger"; - - /** - * Set to `true` to enable the disabled state - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to indent the label - * @default false - */ - indented?: boolean; - - /** - * Specify the icon to render - * Icon is rendered to the left of the label text - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Specify the label text - * Alternatively, use the "labelText" slot (e.g., ...) - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to use the selected variant - * @default false - */ - selected?: boolean; - - /** - * Set to `true` to enable the selectable variant - * Automatically set to `true` if `selected` is `true` - * @default false - */ - selectable?: boolean; - - /** - * Specify the shortcut text - * Alternatively, use the "shortcutText" slot (e.g., ...) - * @default "" - */ - shortcutText?: string; - - /** - * Specify the id - * It's recommended to provide an id as a value to bind to within a selectable/radio menu group - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the list item HTML element - * @default null - */ - ref?: null | HTMLLIElement; -} - -export default class ContextMenuOption extends SvelteComponentTyped< - ContextMenuOptionProps, - { - keydown: WindowEventMap["keydown"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - click: CustomEvent; - }, - { default: {}; icon: {}; labelText: {}; shortcutText: {} } -> {} diff --git a/types/ContextMenu/ContextMenuRadioGroup.svelte.d.ts b/types/ContextMenu/ContextMenuRadioGroup.svelte.d.ts deleted file mode 100644 index dc1f93dd..00000000 --- a/types/ContextMenu/ContextMenuRadioGroup.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ContextMenuRadioGroupProps { - /** - * Set the selected radio group id - * @default "" - */ - selectedId?: string; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; -} - -export default class ContextMenuRadioGroup extends SvelteComponentTyped< - ContextMenuRadioGroupProps, - {}, - { default: {} } -> {} diff --git a/types/CopyButton/CopyButton.svelte.d.ts b/types/CopyButton/CopyButton.svelte.d.ts deleted file mode 100644 index 2dfd32a0..00000000 --- a/types/CopyButton/CopyButton.svelte.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface CopyButtonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the feedback text shown after clicking the button - * @default "Copied!" - */ - feedback?: string; - - /** - * Set the timeout duration (ms) to display feedback text - * @default 2000 - */ - feedbackTimeout?: number; - - /** - * Set the title and ARIA label for the copy button - * @default "Copy to clipboard" - */ - iconDescription?: string; - - /** - * Specify the text to copy - * @default undefined - */ - text: string; - - /** - * Override the default copy behavior of using the navigator.clipboard.writeText API to copy text - * @default async (text) => { try { await navigator.clipboard.writeText(text); } catch (e) { console.log(e); } } - */ - copy?: (text: string) => void; -} - -export default class CopyButton extends SvelteComponentTyped< - CopyButtonProps, - { - click: WindowEventMap["click"]; - animationend: WindowEventMap["animationend"]; - copy: CustomEvent; - }, - {} -> {} diff --git a/types/DataTable/DataTable.svelte.d.ts b/types/DataTable/DataTable.svelte.d.ts deleted file mode 100644 index 80747eea..00000000 --- a/types/DataTable/DataTable.svelte.d.ts +++ /dev/null @@ -1,224 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type DataTableKey = string; - -export type DataTableValue = any; - -export interface DataTableEmptyHeader { - key: DataTableKey; - empty: boolean; - display?: (item: Value) => DataTableValue; - sort?: false | ((a: DataTableValue, b: DataTableValue) => 0 | -1 | 1); - columnMenu?: boolean; - width?: string; - minWidth?: string; -} - -export interface DataTableNonEmptyHeader { - key: DataTableKey; - value: DataTableValue; - display?: (item: Value) => DataTableValue; - sort?: false | ((a: DataTableValue, b: DataTableValue) => 0 | -1 | 1); - columnMenu?: boolean; - width?: string; - minWidth?: string; -} - -export type DataTableHeader = DataTableNonEmptyHeader | DataTableEmptyHeader; - -export interface DataTableRow { - id: any; - [key: string]: DataTableValue; -} - -export type DataTableRowId = any; - -export interface DataTableCell { - key: DataTableKey; - value: DataTableValue; - display?: (item: Value) => DataTableValue; -} - -export interface DataTableProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the data table headers - * @default [] - */ - headers?: ReadonlyArray; - - /** - * Specify the rows the data table should render - * keys defined in `headers` are used for the row ids - * @default [] - */ - rows?: ReadonlyArray; - - /** - * Set the size of the data table - * @default undefined - */ - size?: "compact" | "short" | "medium" | "tall"; - - /** - * Specify the title of the data table - * @default "" - */ - title?: string; - - /** - * Specify the description of the data table - * @default "" - */ - description?: string; - - /** - * Set to `true` to use zebra styles - * @default false - */ - zebra?: boolean; - - /** - * Set to `true` for the sortable variant - * @default false - */ - sortable?: boolean; - - /** - * Specify the header key to sort by - * @default null - */ - sortKey?: DataTableKey; - - /** - * Specify the sort direction - * @default "none" - */ - sortDirection?: "none" | "ascending" | "descending"; - - /** - * Set to `true` for the expandable variant - * Automatically set to `true` if `batchExpansion` is `true` - * @default false - */ - expandable?: boolean; - - /** - * Set to `true` to enable batch expansion - * @default false - */ - batchExpansion?: boolean; - - /** - * Specify the row ids to be expanded - * @default [] - */ - expandedRowIds?: ReadonlyArray; - - /** - * Specify the ids for rows that should not be expandable - * @default [] - */ - nonExpandableRowIds?: ReadonlyArray; - - /** - * Set to `true` for the radio selection variant - * @default false - */ - radio?: boolean; - - /** - * Set to `true` for the selectable variant - * Automatically set to `true` if `radio` or `batchSelection` are `true` - * @default false - */ - selectable?: boolean; - - /** - * Set to `true` to enable batch selection - * @default false - */ - batchSelection?: boolean; - - /** - * Specify the row ids to be selected - * @default [] - */ - selectedRowIds?: ReadonlyArray; - - /** - * Specify the ids of rows that should not be selectable - * @default [] - */ - nonSelectableRowIds?: ReadonlyArray; - - /** - * Set to `true` to enable a sticky header - * @default false - */ - stickyHeader?: boolean; - - /** - * Set to `true` to use static width - * @default false - */ - useStaticWidth?: boolean; - - /** - * Specify the number of items to display in a page - * @default 0 - */ - pageSize?: number; - - /** - * Set to `number` to set current page - * @default 0 - */ - page?: number; -} - -export default class DataTable extends SvelteComponentTyped< - DataTableProps, - { - click: CustomEvent<{ - header?: DataTableHeader; - row?: DataTableRow; - cell?: DataTableCell; - }>; - ["click:header--expand"]: CustomEvent<{ expanded: boolean }>; - ["click:header"]: CustomEvent<{ - header: DataTableHeader; - sortDirection?: "ascending" | "descending" | "none"; - }>; - ["click:header--select"]: CustomEvent<{ - indeterminate: boolean; - selected: boolean; - }>; - ["click:row"]: CustomEvent; - ["mouseenter:row"]: CustomEvent; - ["mouseleave:row"]: CustomEvent; - ["click:row--expand"]: CustomEvent<{ - expanded: boolean; - row: DataTableRow; - }>; - ["click:row--select"]: CustomEvent<{ - selected: boolean; - row: DataTableRow; - }>; - ["click:cell"]: CustomEvent; - }, - { - default: {}; - cell: { - row: DataTableRow; - cell: DataTableCell; - rowIndex: number; - cellIndex: number; - }; - ["cell-header"]: { header: DataTableNonEmptyHeader }; - description: {}; - ["expanded-row"]: { row: DataTableRow }; - title: {}; - } -> {} diff --git a/types/DataTable/DataTableSkeleton.svelte.d.ts b/types/DataTable/DataTableSkeleton.svelte.d.ts deleted file mode 100644 index 59edd974..00000000 --- a/types/DataTable/DataTableSkeleton.svelte.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; -import type { DataTableHeader } from "./DataTable.svelte"; - -export interface DataTableSkeletonProps - extends DataTableHeader, - svelte.JSX.HTMLAttributes { - /** - * Specify the number of columns - * Superseded by `headers` if `headers` is a non-empty array - * @default 5 - */ - columns?: number; - - /** - * Specify the number of rows - * @default 5 - */ - rows?: number; - - /** - * Set the size of the data table - * @default undefined - */ - size?: "compact" | "short" | "tall"; - - /** - * Set to `true` to apply zebra styles to the datatable rows - * @default false - */ - zebra?: boolean; - - /** - * Set to `false` to hide the header - * @default true - */ - showHeader?: boolean; - - /** - * Set the column headers - * Supersedes `columns` if value is a non-empty array - * @default [] - */ - headers?: ReadonlyArray>; - - /** - * Set to `false` to hide the toolbar - * @default true - */ - showToolbar?: boolean; -} - -export default class DataTableSkeleton extends SvelteComponentTyped< - DataTableSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/DataTable/Table.svelte.d.ts b/types/DataTable/Table.svelte.d.ts deleted file mode 100644 index a8a7943c..00000000 --- a/types/DataTable/Table.svelte.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TableProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the size of the table - * @default undefined - */ - size?: "compact" | "short" | "medium" | "tall"; - - /** - * Set to `true` to use zebra styles - * @default false - */ - zebra?: boolean; - - /** - * Set to `true` to use static width - * @default false - */ - useStaticWidth?: boolean; - - /** - * Set to `true` for the sortable variant - * @default false - */ - sortable?: boolean; - - /** - * Set to `true` to enable a sticky header - * @default false - */ - stickyHeader?: boolean; - - /** - * Set the style attribute on the `table` element - * @default undefined - */ - tableStyle?: string; -} - -export default class Table extends SvelteComponentTyped< - TableProps, - {}, - { default: {} } -> {} diff --git a/types/DataTable/TableBody.svelte.d.ts b/types/DataTable/TableBody.svelte.d.ts deleted file mode 100644 index 42d4dc2d..00000000 --- a/types/DataTable/TableBody.svelte.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TableBodyProps - extends svelte.JSX.HTMLAttributes {} - -export default class TableBody extends SvelteComponentTyped< - TableBodyProps, - {}, - { default: {} } -> {} diff --git a/types/DataTable/TableCell.svelte.d.ts b/types/DataTable/TableCell.svelte.d.ts deleted file mode 100644 index 5070c63d..00000000 --- a/types/DataTable/TableCell.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TableCellProps - extends svelte.JSX.HTMLAttributes {} - -export default class TableCell extends SvelteComponentTyped< - TableCellProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/DataTable/TableContainer.svelte.d.ts b/types/DataTable/TableContainer.svelte.d.ts deleted file mode 100644 index 30e14585..00000000 --- a/types/DataTable/TableContainer.svelte.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TableContainerProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the title of the data table - * @default "" - */ - title?: string; - - /** - * Specify the description of the data table - * @default "" - */ - description?: string; - - /** - * Set to `true` to enable a sticky header - * @default false - */ - stickyHeader?: boolean; - - /** - * Set to `true` to use static width - * @default false - */ - useStaticWidth?: boolean; -} - -export default class TableContainer extends SvelteComponentTyped< - TableContainerProps, - {}, - { default: {} } -> {} diff --git a/types/DataTable/TableHead.svelte.d.ts b/types/DataTable/TableHead.svelte.d.ts deleted file mode 100644 index 6137a62b..00000000 --- a/types/DataTable/TableHead.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TableHeadProps - extends svelte.JSX.HTMLAttributes {} - -export default class TableHead extends SvelteComponentTyped< - TableHeadProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/DataTable/TableHeader.svelte.d.ts b/types/DataTable/TableHeader.svelte.d.ts deleted file mode 100644 index 6252c1b6..00000000 --- a/types/DataTable/TableHeader.svelte.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TableHeaderProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` for the sortable variant - * @default false - */ - sortable?: boolean; - - /** - * Specify the sort direction - * @default "none" - */ - sortDirection?: "none" | "ascending" | "descending"; - - /** - * Set to `true` if the column sorting - * @default false - */ - active?: boolean; - - /** - * Specify the `scope` attribute - * @default "col" - */ - scope?: string; - - /** - * Override the default id translations - * @default () => "" - */ - translateWithId?: () => string; - - /** - * Set an id for the top-level element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; -} - -export default class TableHeader extends SvelteComponentTyped< - TableHeaderProps, - { - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - click: WindowEventMap["click"]; - }, - { default: {} } -> {} diff --git a/types/DataTable/TableRow.svelte.d.ts b/types/DataTable/TableRow.svelte.d.ts deleted file mode 100644 index a6ce033f..00000000 --- a/types/DataTable/TableRow.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TableRowProps - extends svelte.JSX.HTMLAttributes {} - -export default class TableRow extends SvelteComponentTyped< - TableRowProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/DataTable/Toolbar.svelte.d.ts b/types/DataTable/Toolbar.svelte.d.ts deleted file mode 100644 index 0347c99b..00000000 --- a/types/DataTable/Toolbar.svelte.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ToolbarProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the toolbar size - * @default "default" - */ - size?: "sm" | "default"; -} - -export default class Toolbar extends SvelteComponentTyped< - ToolbarProps, - {}, - { default: {} } -> {} diff --git a/types/DataTable/ToolbarBatchActions.svelte.d.ts b/types/DataTable/ToolbarBatchActions.svelte.d.ts deleted file mode 100644 index 17855dad..00000000 --- a/types/DataTable/ToolbarBatchActions.svelte.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ToolbarBatchActionsProps - extends svelte.JSX.HTMLAttributes { - /** - * Override the total items selected text - * @default (totalSelected) => `${totalSelected} item${totalSelected === 1 ? "" : "s"} selected` - */ - formatTotalSelected?: (totalSelected: number) => string; - - /** - * Use a boolean to show or hide the toolbar - * @default undefined - */ - active?: undefined | boolean; -} - -export default class ToolbarBatchActions extends SvelteComponentTyped< - ToolbarBatchActionsProps, - { cancel: CustomEvent }, - { default: {}; cancel: {} } -> {} diff --git a/types/DataTable/ToolbarContent.svelte.d.ts b/types/DataTable/ToolbarContent.svelte.d.ts deleted file mode 100644 index e6980bde..00000000 --- a/types/DataTable/ToolbarContent.svelte.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ToolbarContentProps {} - -export default class ToolbarContent extends SvelteComponentTyped< - ToolbarContentProps, - {}, - { default: {} } -> {} diff --git a/types/DataTable/ToolbarMenu.svelte.d.ts b/types/DataTable/ToolbarMenu.svelte.d.ts deleted file mode 100644 index ba8cb7d6..00000000 --- a/types/DataTable/ToolbarMenu.svelte.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; -import type { OverflowMenuProps } from "../OverflowMenu/OverflowMenu.svelte"; - -export interface ToolbarMenuProps extends OverflowMenuProps {} - -export default class ToolbarMenu extends SvelteComponentTyped< - ToolbarMenuProps, - {}, - { default: {} } -> {} diff --git a/types/DataTable/ToolbarMenuItem.svelte.d.ts b/types/DataTable/ToolbarMenuItem.svelte.d.ts deleted file mode 100644 index caee2861..00000000 --- a/types/DataTable/ToolbarMenuItem.svelte.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; -import type { OverflowMenuItemProps } from "../OverflowMenu/OverflowMenuItem.svelte"; - -export interface ToolbarMenuItemProps extends OverflowMenuItemProps {} - -export default class ToolbarMenuItem extends SvelteComponentTyped< - ToolbarMenuItemProps, - { click: WindowEventMap["click"]; keydown: WindowEventMap["keydown"] }, - { default: {} } -> {} diff --git a/types/DataTable/ToolbarSearch.svelte.d.ts b/types/DataTable/ToolbarSearch.svelte.d.ts deleted file mode 100644 index 43cb929f..00000000 --- a/types/DataTable/ToolbarSearch.svelte.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ToolbarSearchProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the value of the search input - * @default "" - */ - value?: number | string; - - /** - * Set to `true` to expand the search bar - * @default false - */ - expanded?: boolean; - - /** - * Set to `true` to keep the search bar expanded - * @default false - */ - persistent?: boolean; - - /** - * Set to `true` to disable the search bar - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to filter table rows using the search value. - * - * If `true`, the default search excludes `id`, `cells` fields and - * only does a basic comparison on string and number type cell values. - * - * To implement your own client-side filtering, pass a function - * that accepts a row and value and returns a boolean. - * @default false - */ - shouldFilterRows?: - | boolean - | (( - row: import("./DataTable.svelte").DataTableRow, - value: number | string - ) => boolean); - - /** - * The filtered row ids - * @default [] - */ - filteredRowIds?: ReadonlyArray; - - /** - * Specify the tabindex - * @default "0" - */ - tabindex?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class ToolbarSearch extends SvelteComponentTyped< - ToolbarSearchProps, - { - clear: WindowEventMap["clear"]; - change: WindowEventMap["change"]; - input: WindowEventMap["input"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - keyup: WindowEventMap["keyup"]; - keydown: WindowEventMap["keydown"]; - paste: DocumentAndElementEventHandlersEventMap["paste"]; - }, - {} -> {} diff --git a/types/DatePicker/DatePicker.svelte.d.ts b/types/DatePicker/DatePicker.svelte.d.ts deleted file mode 100644 index 98062528..00000000 --- a/types/DatePicker/DatePicker.svelte.d.ts +++ /dev/null @@ -1,100 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface DatePickerProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the date picker type - * @default "simple" - */ - datePickerType?: "simple" | "single" | "range"; - - /** - * Specify the date picker input value - * @default "" - */ - value?: number | string; - - /** - * Specify the date picker start date value (from) - * Only works with the "range" date picker type - * @default "" - */ - valueFrom?: string; - - /** - * Specify the date picker end date value (to) - * Only works with the "range" date picker type - * @default "" - */ - valueTo?: string; - - /** - * Specify the date format - * @default "m/d/Y" - */ - dateFormat?: string; - - /** - * Specify the maximum date - * @default null - */ - maxDate?: null | string | Date; - - /** - * Specify the minimum date - * @default null - */ - minDate?: null | string | Date; - - /** - * Specify the locale - * @default "en" - */ - locale?: - | import("flatpickr/dist/types/locale").CustomLocale - | import("flatpickr/dist/types/locale").key; - - /** - * Set to `true` to use the short variant - * @default false - */ - short?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set an id for the date picker element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Override the options passed to the Flatpickr instance. - * @see https://flatpickr.js.org/options - * @default { static: true } - */ - flatpickrProps?: import("flatpickr/dist/types/options").Options; -} - -export default class DatePicker extends SvelteComponentTyped< - DatePickerProps, - { - change: CustomEvent< - | string - | { - selectedDates: [dateFrom: Date, dateTo?: Date]; - dateStr: string | { from: string; to: string }; - } - >; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/DatePicker/DatePickerInput.svelte.d.ts b/types/DatePicker/DatePickerInput.svelte.d.ts deleted file mode 100644 index 4e61d7ea..00000000 --- a/types/DatePicker/DatePickerInput.svelte.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface DatePickerInputProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the size of the input - * @default undefined - */ - size?: "sm" | "xl"; - - /** - * Specify the input type - * @default "text" - */ - type?: string; - - /** - * Specify the input placeholder text - * @default "" - */ - placeholder?: string; - - /** - * Specify the Regular Expression for the input value - * @default "\\d{1,2}\\/\\d{1,2}\\/\\d{4}" - */ - pattern?: string; - - /** - * Set to `true` to disable the input - * @default false - */ - disabled?: boolean; - - /** - * Specify the helper text - * @default "" - */ - helperText?: string; - - /** - * Specify the ARIA label for the calendar icon - * @default "" - */ - iconDescription?: string; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the invalid state text - * @default "" - */ - invalidText?: string; - - /** - * Set to `true` to indicate an warning state - * @default false - */ - warn?: boolean; - - /** - * Specify the warning state text - * @default "" - */ - warnText?: string; - - /** - * Set a name for the input element - * @default undefined - */ - name?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class DatePickerInput extends SvelteComponentTyped< - DatePickerInputProps, - { - input: WindowEventMap["input"]; - keydown: WindowEventMap["keydown"]; - keyup: WindowEventMap["keyup"]; - blur: WindowEventMap["blur"]; - paste: DocumentAndElementEventHandlersEventMap["paste"]; - }, - { labelText: {} } -> {} diff --git a/types/DatePicker/DatePickerSkeleton.svelte.d.ts b/types/DatePicker/DatePickerSkeleton.svelte.d.ts deleted file mode 100644 index 88d592a6..00000000 --- a/types/DatePicker/DatePickerSkeleton.svelte.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface DatePickerSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to use the range variant - * @default false - */ - range?: boolean; - - /** - * Set an id to be used by the label element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; -} - -export default class DatePickerSkeleton extends SvelteComponentTyped< - DatePickerSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/Dropdown/Dropdown.svelte.d.ts b/types/Dropdown/Dropdown.svelte.d.ts deleted file mode 100644 index 56457247..00000000 --- a/types/Dropdown/Dropdown.svelte.d.ts +++ /dev/null @@ -1,155 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type DropdownItemId = any; - -export type DropdownItemText = string; - -export interface DropdownItem { - id: DropdownItemId; - text: DropdownItemText; - disabled?: boolean; -} - -export interface DropdownProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the dropdown items - * @default [] - */ - items?: ReadonlyArray; - - /** - * Override the display of a dropdown item - * @default (item) => item.text || item.id - */ - itemToString?: (item: DropdownItem) => string; - - /** - * Specify the selected item id - * @default undefined - */ - selectedId: DropdownItemId; - - /** - * Specify the type of dropdown - * @default "default" - */ - type?: "default" | "inline"; - - /** - * Specify the direction of the dropdown menu - * @default "bottom" - */ - direction?: "bottom" | "top"; - - /** - * Specify the size of the dropdown field - * @default undefined - */ - size?: "sm" | "lg" | "xl"; - - /** - * Set to `true` to open the dropdown - * @default false - */ - open?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to disable the dropdown - * @default false - */ - disabled?: boolean; - - /** - * Specify the title text - * @default "" - */ - titleText?: string; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the invalid state text - * @default "" - */ - invalidText?: string; - - /** - * Set to `true` to indicate an warning state - * @default false - */ - warn?: boolean; - - /** - * Specify the warning state text - * @default "" - */ - warnText?: string; - - /** - * Specify the helper text - * @default "" - */ - helperText?: string; - - /** - * Specify the list box label - * @default undefined - */ - label?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Override the chevron icon label based on the open state. - * Defaults to "Open menu" when closed and "Close menu" when open - * @default undefined - */ - translateWithId?: ( - id: import("../ListBox/ListBoxMenuIcon.svelte").ListBoxMenuIconTranslationId - ) => string; - - /** - * Set an id for the list box component - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the list box - * @default undefined - */ - name?: string; - - /** - * Obtain a reference to the button HTML element - * @default null - */ - ref?: null | HTMLButtonElement; -} - -export default class Dropdown extends SvelteComponentTyped< - DropdownProps, - { - select: CustomEvent<{ - selectedId: DropdownItemId; - selectedItem: DropdownItem; - }>; - }, - { default: { item: DropdownItem; index: number } } -> {} diff --git a/types/Dropdown/DropdownSkeleton.svelte.d.ts b/types/Dropdown/DropdownSkeleton.svelte.d.ts deleted file mode 100644 index b7222215..00000000 --- a/types/Dropdown/DropdownSkeleton.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface DropdownSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to use the inline variant - * @default false - */ - inline?: boolean; -} - -export default class DropdownSkeleton extends SvelteComponentTyped< - DropdownSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/FileUploader/FileUploader.svelte.d.ts b/types/FileUploader/FileUploader.svelte.d.ts deleted file mode 100644 index f6bd0537..00000000 --- a/types/FileUploader/FileUploader.svelte.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface FileUploaderProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the file uploader status - * @default "uploading" - */ - status?: "uploading" | "edit" | "complete"; - - /** - * Set to `true` to disable the file uploader - * @default false - */ - disabled?: boolean; - - /** - * Specify the accepted file types - * @default [] - */ - accept?: ReadonlyArray; - - /** - * Obtain a reference to the uploaded files - * @default [] - */ - files?: ReadonlyArray; - - /** - * Set to `true` to allow multiple files - * @default false - */ - multiple?: boolean; - - /** - * Specify the label description - * @default "" - */ - labelDescription?: string; - - /** - * Specify the label title - * @default "" - */ - labelTitle?: string; - - /** - * Specify the kind of file uploader button - * @default "primary" - */ - kind?: "primary" | "secondary" | "tertiary" | "ghost" | "danger"; - - /** - * Specify the button label - * @default "" - */ - buttonLabel?: string; - - /** - * Specify the ARIA label used for the status icons - * @default "Provide icon description" - */ - iconDescription?: string; - - /** - * Specify a name attribute for the file button uploader input - * @default "" - */ - name?: string; -} - -export default class FileUploader extends SvelteComponentTyped< - FileUploaderProps, - { - add: CustomEvent>; - remove: CustomEvent>; - change: CustomEvent>; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keydown: WindowEventMap["keydown"]; - }, - {} -> { - /** - * Programmatically clear the uploaded files - */ - clearFiles: () => void; -} diff --git a/types/FileUploader/FileUploaderButton.svelte.d.ts b/types/FileUploader/FileUploaderButton.svelte.d.ts deleted file mode 100644 index 93455956..00000000 --- a/types/FileUploader/FileUploaderButton.svelte.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface FileUploaderButtonProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the accepted file types - * @default [] - */ - accept?: ReadonlyArray; - - /** - * Obtain a reference to the uploaded files - * @default [] - */ - files?: ReadonlyArray; - - /** - * Set to `true` to allow multiple files - * @default false - */ - multiple?: boolean; - - /** - * Set to `true` to disable the input - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to disable label changes - * @default false - */ - disableLabelChanges?: boolean; - - /** - * Specify the kind of file uploader button - * @default "primary" - */ - kind?: "primary" | "secondary" | "tertiary" | "ghost" | "danger"; - - /** - * Specify the label text - * @default "Add file" - */ - labelText?: string; - - /** - * Specify the label role - * @default "button" - */ - role?: string; - - /** - * Specify `tabindex` attribute - * @default "0" - */ - tabindex?: string; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the input - * @default "" - */ - name?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class FileUploaderButton extends SvelteComponentTyped< - FileUploaderButtonProps, - { - change: CustomEvent>; - keydown: WindowEventMap["keydown"]; - click: WindowEventMap["click"]; - }, - { labelText: {} } -> {} diff --git a/types/FileUploader/FileUploaderDropContainer.svelte.d.ts b/types/FileUploader/FileUploaderDropContainer.svelte.d.ts deleted file mode 100644 index e891a735..00000000 --- a/types/FileUploader/FileUploaderDropContainer.svelte.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface FileUploaderDropContainerProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the accepted file types - * @default [] - */ - accept?: ReadonlyArray; - - /** - * Obtain a reference to the uploaded files - * @default [] - */ - files?: ReadonlyArray; - - /** - * Set to `true` to allow multiple files - * @default false - */ - multiple?: boolean; - - /** - * Override the default behavior of validating uploaded files. - * By default, files are not validated - * @default (files) => files - */ - validateFiles?: (files: ReadonlyArray) => ReadonlyArray; - - /** - * Specify the label text - * @default "Add file" - */ - labelText?: string; - - /** - * Specify the `role` attribute of the drop container - * @default "button" - */ - role?: string; - - /** - * Set to `true` to disable the input - * @default false - */ - disabled?: boolean; - - /** - * Specify `tabindex` attribute - * @default "0" - */ - tabindex?: string; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the input - * @default "" - */ - name?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class FileUploaderDropContainer extends SvelteComponentTyped< - FileUploaderDropContainerProps, - { - add: CustomEvent>; - change: CustomEvent>; - dragover: WindowEventMap["dragover"]; - dragleave: WindowEventMap["dragleave"]; - drop: WindowEventMap["drop"]; - keydown: WindowEventMap["keydown"]; - click: WindowEventMap["click"]; - }, - { labelText: {} } -> {} diff --git a/types/FileUploader/FileUploaderItem.svelte.d.ts b/types/FileUploader/FileUploaderItem.svelte.d.ts deleted file mode 100644 index d434ee5d..00000000 --- a/types/FileUploader/FileUploaderItem.svelte.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface FileUploaderItemProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the file uploader status - * @default "uploading" - */ - status?: "uploading" | "edit" | "complete"; - - /** - * Specify the size of button skeleton - * @default "default" - */ - size?: "default" | "field" | "small"; - - /** - * Specify the ARIA label used for the status icons - * @default "" - */ - iconDescription?: string; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the error subject text - * @default "" - */ - errorSubject?: string; - - /** - * Specify the error body text - * @default "" - */ - errorBody?: string; - - /** - * Set an id for the top-level element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify the file uploader name - * @default "" - */ - name?: string; -} - -export default class FileUploaderItem extends SvelteComponentTyped< - FileUploaderItemProps, - { - delete: CustomEvent; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/FileUploader/FileUploaderSkeleton.svelte.d.ts b/types/FileUploader/FileUploaderSkeleton.svelte.d.ts deleted file mode 100644 index fd90c1ab..00000000 --- a/types/FileUploader/FileUploaderSkeleton.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface FileUploaderSkeletonProps - extends svelte.JSX.HTMLAttributes {} - -export default class FileUploaderSkeleton extends SvelteComponentTyped< - FileUploaderSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/FileUploader/Filename.svelte.d.ts b/types/FileUploader/Filename.svelte.d.ts deleted file mode 100644 index 7600bfc7..00000000 --- a/types/FileUploader/Filename.svelte.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface FilenameProps - extends svelte.JSX.HTMLAttributes, - svelte.JSX.HTMLAttributes, - svelte.JSX.SVGAttributes { - /** - * Specify the file name status - * @default "uploading" - */ - status?: "uploading" | "edit" | "complete"; - - /** - * Specify the ARIA label used for the status icons - * @default "" - */ - iconDescription?: string; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; -} - -export default class Filename extends SvelteComponentTyped< - FilenameProps, - { click: WindowEventMap["click"]; keydown: WindowEventMap["keydown"] }, - {} -> {} diff --git a/types/FluidForm/FluidForm.svelte.d.ts b/types/FluidForm/FluidForm.svelte.d.ts deleted file mode 100644 index 1bc27300..00000000 --- a/types/FluidForm/FluidForm.svelte.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface FluidFormProps - extends svelte.JSX.HTMLAttributes {} - -export default class FluidForm extends SvelteComponentTyped< - FluidFormProps, - { - click: WindowEventMap["click"]; - keydown: WindowEventMap["keydown"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - submit: WindowEventMap["submit"]; - }, - { default: {} } -> {} diff --git a/types/Form/Form.svelte.d.ts b/types/Form/Form.svelte.d.ts deleted file mode 100644 index cedf8229..00000000 --- a/types/Form/Form.svelte.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface FormProps - extends svelte.JSX.HTMLAttributes { - /** - * Obtain a reference to the form element - * @default null - */ - ref?: null | HTMLFormElement; -} - -export default class Form extends SvelteComponentTyped< - FormProps, - { - click: WindowEventMap["click"]; - keydown: WindowEventMap["keydown"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - submit: WindowEventMap["submit"]; - }, - { default: {} } -> {} diff --git a/types/FormGroup/FormGroup.svelte.d.ts b/types/FormGroup/FormGroup.svelte.d.ts deleted file mode 100644 index 45edff3d..00000000 --- a/types/FormGroup/FormGroup.svelte.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface FormGroupProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` for to remove the bottom margin - * @default false - */ - noMargin?: boolean; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Set to `true` to render a form requirement - * @default false - */ - message?: boolean; - - /** - * Specify the message text - * @default "" - */ - messageText?: string; - - /** - * Specify the legend text - * @default "" - */ - legendText?: string; - - /** - * Specify an id for the legend element - * @default "" - */ - legendId?: string; -} - -export default class FormGroup extends SvelteComponentTyped< - FormGroupProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/FormItem/FormItem.svelte.d.ts b/types/FormItem/FormItem.svelte.d.ts deleted file mode 100644 index d1408fea..00000000 --- a/types/FormItem/FormItem.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface FormItemProps - extends svelte.JSX.HTMLAttributes {} - -export default class FormItem extends SvelteComponentTyped< - FormItemProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/FormLabel/FormLabel.svelte.d.ts b/types/FormLabel/FormLabel.svelte.d.ts deleted file mode 100644 index 354ba19b..00000000 --- a/types/FormLabel/FormLabel.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface FormLabelProps - extends svelte.JSX.HTMLAttributes { - /** - * Set an id to be used by the label element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; -} - -export default class FormLabel extends SvelteComponentTyped< - FormLabelProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/Grid/Column.svelte.d.ts b/types/Grid/Column.svelte.d.ts deleted file mode 100644 index 2950e900..00000000 --- a/types/Grid/Column.svelte.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type ColumnSize = boolean | number; - -export interface ColumnSizeDescriptor { - span?: ColumnSize; - offset: number; -} - -export type ColumnBreakpoint = ColumnSize | ColumnSizeDescriptor; - -export interface ColumnProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to render a custom HTML element - * Props are destructured as `props` in the default slot (e.g.,
...
) - * @default false - */ - as?: boolean; - - /** - * Set to `true` to remove the gutter - * @default false - */ - noGutter?: boolean; - - /** - * Set to `true` to remove the left gutter - * @default false - */ - noGutterLeft?: boolean; - - /** - * Set to `true` to remove the right gutter - * @default false - */ - noGutterRight?: boolean; - - /** - * Set to `true` to add top and bottom padding to the column - * @default false - */ - padding?: boolean; - - /** - * Specify the aspect ratio of the column - * @default undefined - */ - aspectRatio?: "2x1" | "16x9" | "9x16" | "1x2" | "4x3" | "3x4" | "1x1"; - - /** - * Set the small breakpoint - * @default undefined - */ - sm?: ColumnBreakpoint; - - /** - * Set the medium breakpoint - * @default undefined - */ - md?: ColumnBreakpoint; - - /** - * Set the large breakpoint - * @default undefined - */ - lg?: ColumnBreakpoint; - - /** - * Set the extra large breakpoint - * @default undefined - */ - xlg?: ColumnBreakpoint; - - /** - * Set the maximum breakpoint - * @default undefined - */ - max?: ColumnBreakpoint; -} - -export default class Column extends SvelteComponentTyped< - ColumnProps, - {}, - { default: { props: { class: string; [key: string]: any } } } -> {} diff --git a/types/Grid/Grid.svelte.d.ts b/types/Grid/Grid.svelte.d.ts deleted file mode 100644 index 106fa6fe..00000000 --- a/types/Grid/Grid.svelte.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface GridProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to render a custom HTML element - * Props are destructured as `props` in the default slot (e.g.,
...
) - * @default false - */ - as?: boolean; - - /** - * Set to `true` to use the condensed variant - * @default false - */ - condensed?: boolean; - - /** - * Set to `true` to use the narrow variant - * @default false - */ - narrow?: boolean; - - /** - * Set to `true` to use the fullWidth variant - * @default false - */ - fullWidth?: boolean; - - /** - * Set to `true` to remove the gutter - * @default false - */ - noGutter?: boolean; - - /** - * Set to `true` to remove the left gutter - * @default false - */ - noGutterLeft?: boolean; - - /** - * Set to `true` to remove the right gutter - * @default false - */ - noGutterRight?: boolean; - - /** - * Set to `true` to add top and bottom padding to all columns - * @default false - */ - padding?: boolean; -} - -export default class Grid extends SvelteComponentTyped< - GridProps, - {}, - { default: { props: { class: string; [key: string]: any } } } -> {} diff --git a/types/Grid/Row.svelte.d.ts b/types/Grid/Row.svelte.d.ts deleted file mode 100644 index fdcda919..00000000 --- a/types/Grid/Row.svelte.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface RowProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to render a custom HTML element - * Props are destructured as `props` in the default slot (e.g.,
...
) - * @default false - */ - as?: boolean; - - /** - * Set to `true` to use the condensed variant - * @default false - */ - condensed?: boolean; - - /** - * Set to `true` to use the narrow variant - * @default false - */ - narrow?: boolean; - - /** - * Set to `true` to remove the gutter - * @default false - */ - noGutter?: boolean; - - /** - * Set to `true` to remove the left gutter - * @default false - */ - noGutterLeft?: boolean; - - /** - * Set to `true` to remove the right gutter - * @default false - */ - noGutterRight?: boolean; - - /** - * Set to `true` to add top and bottom padding to all columns - * @default false - */ - padding?: boolean; -} - -export default class Row extends SvelteComponentTyped< - RowProps, - {}, - { default: { props: { class: string; [key: string]: any } } } -> {} diff --git a/types/ImageLoader/ImageLoader.svelte.d.ts b/types/ImageLoader/ImageLoader.svelte.d.ts deleted file mode 100644 index 54155ec0..00000000 --- a/types/ImageLoader/ImageLoader.svelte.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ImageLoaderProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the image source - * @default "" - */ - src?: string; - - /** - * Specify the image alt text - * @default "" - */ - alt?: string; - - /** - * Specify the aspect ratio for the image wrapper - * @default undefined - */ - ratio?: "2x1" | "16x9" | "4x3" | "1x1" | "3x4" | "3x2" | "9x16" | "1x2"; - - /** - * Set to `true` when `loaded` is `true` and `error` is false - * @default false - */ - loading?: boolean; - - /** - * Set to `true` when the image is loaded - * @default false - */ - loaded?: boolean; - - /** - * Set to `true` if an error occurs when loading the image - * @default false - */ - error?: boolean; - - /** - * Set to `true` to fade in the image on load - * The duration uses the `fast-02` value following Carbon guidelines on motion - * @default false - */ - fadeIn?: boolean; -} - -export default class ImageLoader extends SvelteComponentTyped< - ImageLoaderProps, - { load: CustomEvent; error: CustomEvent }, - { error: {}; loading: {} } -> { - /** - * Method invoked to load the image provided a `src` value - */ - loadImage: (url?: string) => void; -} diff --git a/types/InlineLoading/InlineLoading.svelte.d.ts b/types/InlineLoading/InlineLoading.svelte.d.ts deleted file mode 100644 index 289cff9d..00000000 --- a/types/InlineLoading/InlineLoading.svelte.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface InlineLoadingProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the loading status - * @default "active" - */ - status?: "active" | "inactive" | "finished" | "error"; - - /** - * Set the loading description - * @default undefined - */ - description?: string; - - /** - * Specify the ARIA label for the loading icon - * @default undefined - */ - iconDescription?: string; - - /** - * Specify the timeout delay (ms) after `status` is set to "success" - * @default 1500 - */ - successDelay?: number; -} - -export default class InlineLoading extends SvelteComponentTyped< - InlineLoadingProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - success: CustomEvent; - }, - {} -> {} diff --git a/types/Link/Link.svelte.d.ts b/types/Link/Link.svelte.d.ts deleted file mode 100644 index 3cce440e..00000000 --- a/types/Link/Link.svelte.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface LinkProps - extends svelte.JSX.HTMLAttributes, - svelte.JSX.HTMLAttributes { - /** - * Specify the size of the link - * @default undefined - */ - size?: "sm" | "lg"; - - /** - * Specify the href value - * @default undefined - */ - href?: string; - - /** - * Set to `true` to use the inline variant - * @default false - */ - inline?: boolean; - - /** - * Specify the icon to render - * `inline` must be `false` - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Set to `true` to disable the checkbox - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to allow visited styles - * @default false - */ - visited?: boolean; - - /** - * Obtain a reference to the top-level HTML element - * @default null - */ - ref?: null | HTMLAnchorElement | HTMLParagraphElement; -} - -export default class Link extends SvelteComponentTyped< - LinkProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {}; icon: {} } -> {} diff --git a/types/Link/OutboundLink.svelte.d.ts b/types/Link/OutboundLink.svelte.d.ts deleted file mode 100644 index 5ac5d7de..00000000 --- a/types/Link/OutboundLink.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; -import type { LinkProps } from "./Link.svelte"; - -export interface OutboundLinkProps extends LinkProps {} - -export default class OutboundLink extends SvelteComponentTyped< - OutboundLinkProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/ListBox/ListBox.svelte.d.ts b/types/ListBox/ListBox.svelte.d.ts deleted file mode 100644 index 2fc23a1a..00000000 --- a/types/ListBox/ListBox.svelte.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ListBoxProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the size of the list box - * @default undefined - */ - size?: "sm" | "xl"; - - /** - * Set the type of the list box - * @default "default" - */ - type?: "default" | "inline"; - - /** - * Set to `true` to open the list box - * @default false - */ - open?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to disable the list box - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the invalid state text - * @default "" - */ - invalidText?: string; - - /** - * Set to `true` to indicate an warning state - * @default false - */ - warn?: boolean; - - /** - * Specify the warning state text - * @default "" - */ - warnText?: string; -} - -export default class ListBox extends SvelteComponentTyped< - ListBoxProps, - { keydown: WindowEventMap["keydown"]; click: WindowEventMap["click"] }, - { default: {} } -> {} diff --git a/types/ListBox/ListBoxField.svelte.d.ts b/types/ListBox/ListBoxField.svelte.d.ts deleted file mode 100644 index f4d8fdba..00000000 --- a/types/ListBox/ListBoxField.svelte.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type ListBoxFieldTranslationId = "close" | "open"; - -export interface ListBoxFieldProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to disable the list box field - * @default false - */ - disabled?: boolean; - - /** - * Specify the role attribute - * @default "combobox" - */ - role?: string; - - /** - * Specify the tabindex - * @default "-1" - */ - tabindex?: string; - - /** - * Override the default translation ids - * @default (id) => defaultTranslations[id] - */ - translateWithId?: (id: ListBoxFieldTranslationId) => string; - - /** - * Set an id for the top-level element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the top-level HTML element - * @default null - */ - ref?: null | HTMLDivElement; -} - -export default class ListBoxField extends SvelteComponentTyped< - ListBoxFieldProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keydown: WindowEventMap["keydown"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - }, - { default: {} } -> { - /** - * Default translation ids - */ - translationIds: { close: "close"; open: "open" }; -} diff --git a/types/ListBox/ListBoxMenu.svelte.d.ts b/types/ListBox/ListBoxMenu.svelte.d.ts deleted file mode 100644 index fdad9d41..00000000 --- a/types/ListBox/ListBoxMenu.svelte.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ListBoxMenuProps - extends svelte.JSX.HTMLAttributes { - /** - * Set an id for the top-level element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the HTML element - * @default null - */ - ref?: null | HTMLDivElement; -} - -export default class ListBoxMenu extends SvelteComponentTyped< - ListBoxMenuProps, - { scroll: WindowEventMap["scroll"] }, - { default: {} } -> {} diff --git a/types/ListBox/ListBoxMenuIcon.svelte.d.ts b/types/ListBox/ListBoxMenuIcon.svelte.d.ts deleted file mode 100644 index a8fa539c..00000000 --- a/types/ListBox/ListBoxMenuIcon.svelte.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type ListBoxMenuIconTranslationId = "close" | "open"; - -export interface ListBoxMenuIconProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to open the list box menu icon - * @default false - */ - open?: boolean; - - /** - * Override the default translation ids - * @default (id) => defaultTranslations[id] - */ - translateWithId?: (id: ListBoxMenuIconTranslationId) => string; -} - -export default class ListBoxMenuIcon extends SvelteComponentTyped< - ListBoxMenuIconProps, - { click: WindowEventMap["click"] }, - {} -> { - /** - * Default translation ids - */ - translationIds: { close: "close"; open: "open" }; -} diff --git a/types/ListBox/ListBoxMenuItem.svelte.d.ts b/types/ListBox/ListBoxMenuItem.svelte.d.ts deleted file mode 100644 index 571a1468..00000000 --- a/types/ListBox/ListBoxMenuItem.svelte.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ListBoxMenuItemProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to enable the active state - * @default false - */ - active?: boolean; - - /** - * Set to `true` to enable the highlighted state - * @default false - */ - highlighted?: boolean; - - /** - * Set to `true` to disable the menu item - * @default false - */ - disabled?: boolean; -} - -export default class ListBoxMenuItem extends SvelteComponentTyped< - ListBoxMenuItemProps, - { - click: WindowEventMap["click"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/ListBox/ListBoxSelection.svelte.d.ts b/types/ListBox/ListBoxSelection.svelte.d.ts deleted file mode 100644 index 65276d89..00000000 --- a/types/ListBox/ListBoxSelection.svelte.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type ListBoxSelectionTranslationId = "clearAll" | "clearSelection"; - -export interface ListBoxSelectionProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the number of selected items - * @default undefined - */ - selectionCount?: number; - - /** - * Set to `true` to disable the list box selection - * @default false - */ - disabled?: boolean; - - /** - * Override the default translation ids - * @default (id) => defaultTranslations[id] - */ - translateWithId?: (id: ListBoxSelectionTranslationId) => string; - - /** - * Obtain a reference to the top-level HTML element - * @default null - */ - ref?: null | HTMLDivElement; -} - -export default class ListBoxSelection extends SvelteComponentTyped< - ListBoxSelectionProps, - { clear: CustomEvent }, - {} -> { - /** - * Default translation ids - */ - translationIds: { clearAll: "clearAll"; clearSelection: "clearSelection" }; -} diff --git a/types/ListItem/ListItem.svelte.d.ts b/types/ListItem/ListItem.svelte.d.ts deleted file mode 100644 index 7413713b..00000000 --- a/types/ListItem/ListItem.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ListItemProps - extends svelte.JSX.HTMLAttributes {} - -export default class ListItem extends SvelteComponentTyped< - ListItemProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/Loading/Loading.svelte.d.ts b/types/Loading/Loading.svelte.d.ts deleted file mode 100644 index 725d10b6..00000000 --- a/types/Loading/Loading.svelte.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface LoadingProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to use the small variant - * @default false - */ - small?: boolean; - - /** - * Set to `false` to disable the active state - * @default true - */ - active?: boolean; - - /** - * Set to `false` to disable the overlay - * @default true - */ - withOverlay?: boolean; - - /** - * Specify the label description - * @default "Active loading indicator" - */ - description?: string; - - /** - * Set an id for the label element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; -} - -export default class Loading extends SvelteComponentTyped< - LoadingProps, - {}, - {} -> {} diff --git a/types/LocalStorage/LocalStorage.svelte.d.ts b/types/LocalStorage/LocalStorage.svelte.d.ts deleted file mode 100644 index bd83a3e5..00000000 --- a/types/LocalStorage/LocalStorage.svelte.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface LocalStorageProps { - /** - * Specify the local storage key - * @default "local-storage-key" - */ - key?: string; - - /** - * Provide a value to persist - * @default "" - */ - value?: any; -} - -export default class LocalStorage extends SvelteComponentTyped< - LocalStorageProps, - { - save: CustomEvent; - update: CustomEvent<{ prevValue: any; value: any }>; - }, - {} -> { - /** - * Remove the persisted key value from the browser's local storage - */ - clearItem: () => void; - - /** - * Clear all key values from the browser's local storage - */ - clearAll: () => void; -} diff --git a/types/Modal/Modal.svelte.d.ts b/types/Modal/Modal.svelte.d.ts deleted file mode 100644 index 8fa8dec9..00000000 --- a/types/Modal/Modal.svelte.d.ts +++ /dev/null @@ -1,151 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ModalProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the size of the modal - * @default undefined - */ - size?: "xs" | "sm" | "lg"; - - /** - * Set to `true` to open the modal - * @default false - */ - open?: boolean; - - /** - * Set to `true` to use the danger variant - * @default false - */ - danger?: boolean; - - /** - * Set to `true` to enable alert mode - * @default false - */ - alert?: boolean; - - /** - * Set to `true` to use the passive variant - * @default false - */ - passiveModal?: boolean; - - /** - * Specify the modal heading - * @default undefined - */ - modalHeading?: string; - - /** - * Specify the modal label - * @default undefined - */ - modalLabel?: string; - - /** - * Specify the ARIA label for the modal - * @default undefined - */ - modalAriaLabel?: string; - - /** - * Specify the ARIA label for the close icon - * @default "Close the modal" - */ - iconDescription?: string; - - /** - * Set to `true` if the modal contains form elements - * @default false - */ - hasForm?: boolean; - - /** - * Set to `true` if the modal contains scrolling content - * @default false - */ - hasScrollingContent?: boolean; - - /** - * Specify the primary button text - * @default "" - */ - primaryButtonText?: string; - - /** - * Set to `true` to disable the primary button - * @default false - */ - primaryButtonDisabled?: boolean; - - /** - * Specify the primary button icon - * @default undefined - */ - primaryButtonIcon?: typeof import("svelte").SvelteComponent; - - /** - * Set to `true` for the "submit" and "click:button--primary" events - * to be dispatched when pressing "Enter" - * @default true - */ - shouldSubmitOnEnter?: boolean; - - /** - * Specify the secondary button text - * @default "" - */ - secondaryButtonText?: string; - - /** - * 2-tuple prop to render two secondary buttons for a 3 button modal - * supersedes `secondaryButtonText` - * @default [] - */ - secondaryButtons?: [{ text: string }, { text: string }]; - - /** - * Specify a selector to be focused when opening the modal - * @default "[data-modal-primary-focus]" - */ - selectorPrimaryFocus?: string; - - /** - * Set to `true` to prevent the modal from closing when clicking outside - * @default false - */ - preventCloseOnClickOutside?: boolean; - - /** - * Set an id for the top-level element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the top-level HTML element - * @default null - */ - ref?: null | HTMLDivElement; -} - -export default class Modal extends SvelteComponentTyped< - ModalProps, - { - transitionend: CustomEvent<{ open: boolean }>; - ["click:button--secondary"]: CustomEvent<{ text: string }>; - keydown: WindowEventMap["keydown"]; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - submit: CustomEvent; - ["click:button--primary"]: CustomEvent; - close: CustomEvent; - open: CustomEvent; - }, - { default: {}; heading: {}; label: {} } -> {} diff --git a/types/MultiSelect/MultiSelect.svelte.d.ts b/types/MultiSelect/MultiSelect.svelte.d.ts deleted file mode 100644 index 0673a24f..00000000 --- a/types/MultiSelect/MultiSelect.svelte.d.ts +++ /dev/null @@ -1,257 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type MultiSelectItemId = any; - -export type MultiSelectItemText = string; - -export interface MultiSelectItem { - id: MultiSelectItemId; - text: MultiSelectItemText; - disabled?: boolean; -} - -export interface MultiSelectProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the multiselect items - * @default [] - */ - items?: ReadonlyArray; - - /** - * Override the display of a multiselect item - * @default (item) => item.text || item.id - */ - itemToString?: (item: MultiSelectItem) => any; - - /** - * Override the item name, title, labelText passed to the checkbox input - * @default (item) => {} - */ - itemToInput?: (item: MultiSelectItem) => { - name?: string; - labelText?: any; - title?: string; - }; - - /** - * Set the selected ids - * @default [] - */ - selectedIds?: ReadonlyArray; - - /** - * Specify the multiselect value - * @default "" - */ - value?: string; - - /** - * Set the size of the combobox - * @default undefined - */ - size?: "sm" | "lg" | "xl"; - - /** - * Specify the type of multiselect - * @default "default" - */ - type?: "default" | "inline"; - - /** - * Specify the direction of the multiselect dropdown menu - * @default "bottom" - */ - direction?: "bottom" | "top"; - - /** - * Specify the selection feedback after selecting items - * @default "top-after-reopen" - */ - selectionFeedback?: "top" | "fixed" | "top-after-reopen"; - - /** - * Set to `true` to disable the dropdown - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to filter items - * @default false - */ - filterable?: boolean; - - /** - * Override the filtering logic - * The default filtering is an exact string comparison - * @default (item, value) => item.text.toLowerCase().includes(value.trim().toLowerCase()) - */ - filterItem?: (item: MultiSelectItem, value: string) => string; - - /** - * Set to `true` to open the dropdown - * @default false - */ - open?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Specify the locale - * @default "en" - */ - locale?: string; - - /** - * Specify the placeholder text - * @default "" - */ - placeholder?: string; - - /** - * Override the sorting logic - * The default sorting compare the item text value - * @default (a, b) => a.text.localeCompare(b.text, locale, { numeric: true }) - */ - sortItem?: - | ((a: MultiSelectItem, b: MultiSelectItem) => MultiSelectItem) - | (() => void); - - /** - * Override the chevron icon label based on the open state. - * Defaults to "Open menu" when closed and "Close menu" when open - * @default undefined - */ - translateWithId?: ( - id: import("../ListBox/ListBoxMenuIcon.svelte").ListBoxMenuIconTranslationId - ) => string; - - /** - * Override the label of the clear button when the input has a selection. - * Defaults to "Clear selected item" and "Clear all items" if more than one item is selected - * @default undefined - */ - translateWithIdSelection?: ( - id: import("../ListBox/ListBoxSelection.svelte").ListBoxSelectionTranslationId - ) => string; - - /** - * Specify the title text - * @default "" - */ - titleText?: string; - - /** - * Set to `true` to pass the item to `itemToString` in the checkbox - * @default false - */ - useTitleInItem?: boolean; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the invalid state text - * @default "" - */ - invalidText?: string; - - /** - * Set to `true` to indicate an warning state - * @default false - */ - warn?: boolean; - - /** - * Specify the warning state text - * @default "" - */ - warnText?: string; - - /** - * Specify the helper text - * @default "" - */ - helperText?: string; - - /** - * Specify the list box label - * @default "" - */ - label?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Set an id for the list box component - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the select - * @default undefined - */ - name?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - inputRef?: null | HTMLInputElement; - - /** - * Obtain a reference to the outer div element - * @default null - */ - multiSelectRef?: null | HTMLDivElement; - - /** - * Obtain a reference to the field box element - * @default null - */ - fieldRef?: null | HTMLDivElement; - - /** - * Obtain a reference to the selection element - * @default null - */ - selectionRef?: null | HTMLDivElement; - - /** - * Id of the highlighted ListBoxMenuItem - * @default null - */ - highlightedId?: null | MultiSelectItemId; -} - -export default class MultiSelect extends SvelteComponentTyped< - MultiSelectProps, - { - select: CustomEvent<{ - selectedIds: MultiSelectItemId[]; - selected: MultiSelectItem[]; - unselected: MultiSelectItem[]; - }>; - clear: CustomEvent; - blur: FocusEvent | CustomEvent; - keydown: WindowEventMap["keydown"]; - keyup: WindowEventMap["keyup"]; - focus: WindowEventMap["focus"]; - paste: DocumentAndElementEventHandlersEventMap["paste"]; - }, - { default: { item: MultiSelectItem; index: number } } -> {} diff --git a/types/Notification/InlineNotification.svelte.d.ts b/types/Notification/InlineNotification.svelte.d.ts deleted file mode 100644 index 454455de..00000000 --- a/types/Notification/InlineNotification.svelte.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface InlineNotificationProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the kind of notification - * @default "error" - */ - kind?: - | "error" - | "info" - | "info-square" - | "success" - | "warning" - | "warning-alt"; - - /** - * Set to `true` to use the low contrast variant - * @default false - */ - lowContrast?: boolean; - - /** - * Set the timeout duration (ms) to hide the notification after opening it - * @default 0 - */ - timeout?: number; - - /** - * Set the `role` attribute - * @default "alert" - */ - role?: string; - - /** - * Specify the title text - * @default "" - */ - title?: string; - - /** - * Specify the subtitle text - * @default "" - */ - subtitle?: string; - - /** - * Set to `true` to hide the close button - * @default false - */ - hideCloseButton?: boolean; - - /** - * Specify the ARIA label for the status icon - * @default kind + " icon" - */ - statusIconDescription?: string; - - /** - * Specify the ARIA label for the close button - * @default "Close notification" - */ - closeButtonDescription?: string; -} - -export default class InlineNotification extends SvelteComponentTyped< - InlineNotificationProps, - { - close: CustomEvent<{ timeout: boolean }>; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {}; actions: {}; subtitle: {}; title: {} } -> {} diff --git a/types/Notification/NotificationActionButton.svelte.d.ts b/types/Notification/NotificationActionButton.svelte.d.ts deleted file mode 100644 index 44908d55..00000000 --- a/types/Notification/NotificationActionButton.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; -import type { ButtonProps } from "../Button/Button.svelte"; - -export interface NotificationActionButtonProps extends ButtonProps {} - -export default class NotificationActionButton extends SvelteComponentTyped< - NotificationActionButtonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/Notification/NotificationButton.svelte.d.ts b/types/Notification/NotificationButton.svelte.d.ts deleted file mode 100644 index 86abad88..00000000 --- a/types/Notification/NotificationButton.svelte.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface NotificationButtonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the type of notification - * @default "toast" - */ - notificationType?: "toast" | "inline"; - - /** - * Specify the icon to render - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Specify the title of the icon - * @default undefined - */ - title?: string; - - /** - * Specify the ARIA label for the icon - * @default "Close icon" - */ - iconDescription?: string; -} - -export default class NotificationButton extends SvelteComponentTyped< - NotificationButtonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/Notification/NotificationIcon.svelte.d.ts b/types/Notification/NotificationIcon.svelte.d.ts deleted file mode 100644 index 9e69e5b9..00000000 --- a/types/Notification/NotificationIcon.svelte.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface NotificationIconProps { - /** - * Specify the kind of notification icon - * @default "error" - */ - kind?: - | "error" - | "info" - | "info-square" - | "success" - | "warning" - | "warning-alt"; - - /** - * Set the type of notification - * @default "toast" - */ - notificationType?: "toast" | "inline"; - - /** - * Specify the ARIA label for the icon - * @default undefined - */ - iconDescription: undefined; -} - -export default class NotificationIcon extends SvelteComponentTyped< - NotificationIconProps, - {}, - {} -> {} diff --git a/types/Notification/ToastNotification.svelte.d.ts b/types/Notification/ToastNotification.svelte.d.ts deleted file mode 100644 index 4bc6d359..00000000 --- a/types/Notification/ToastNotification.svelte.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ToastNotificationProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the kind of notification - * @default "error" - */ - kind?: - | "error" - | "info" - | "info-square" - | "success" - | "warning" - | "warning-alt"; - - /** - * Set to `true` to use the low contrast variant - * @default false - */ - lowContrast?: boolean; - - /** - * Set the timeout duration (ms) to hide the notification after opening it - * @default 0 - */ - timeout?: number; - - /** - * Set the `role` attribute - * @default "alert" - */ - role?: string; - - /** - * Specify the title text - * @default "" - */ - title?: string; - - /** - * Specify the subtitle text - * @default "" - */ - subtitle?: string; - - /** - * Specify the caption text - * @default "" - */ - caption?: string; - - /** - * Specify the ARIA label for the status icon - * @default kind + " icon" - */ - statusIconDescription?: string; - - /** - * Specify the ARIA label for the close button - * @default "Close notification" - */ - closeButtonDescription?: string; - - /** - * Set to `true` to hide the close button - * @default false - */ - hideCloseButton?: boolean; - - /** - * Set to `true` for the notification to span - * the full width of its containing element. - * @default false - */ - fullWidth?: boolean; -} - -export default class ToastNotification extends SvelteComponentTyped< - ToastNotificationProps, - { - close: CustomEvent<{ timeout: boolean }>; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {}; caption: {}; subtitle: {}; title: {} } -> {} diff --git a/types/NumberInput/NumberInput.svelte.d.ts b/types/NumberInput/NumberInput.svelte.d.ts deleted file mode 100644 index 1702960b..00000000 --- a/types/NumberInput/NumberInput.svelte.d.ts +++ /dev/null @@ -1,163 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type NumberInputTranslationId = "increment" | "decrement"; - -export interface NumberInputProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the size of the input - * @default undefined - */ - size?: "sm" | "xl"; - - /** - * Specify the input value. - * Use `null` to denote "no value" - * @default null - */ - value?: null | number; - - /** - * Specify the step increment - * @default 1 - */ - step?: number; - - /** - * Specify the maximum value - * @default undefined - */ - max?: number; - - /** - * Specify the minimum value - * @default undefined - */ - min?: number; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` for the input to be read-only - * @default false - */ - readonly?: boolean; - - /** - * Set to `true` to allow for an empty value - * @default false - */ - allowEmpty?: boolean; - - /** - * Set to `true` to disable the input - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to hide the input stepper buttons - * @default false - */ - hideSteppers?: boolean; - - /** - * Specify the ARIA label for the increment icons - * @default "" - */ - iconDescription?: string; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the invalid state text - * @default "" - */ - invalidText?: string; - - /** - * Set to `true` to indicate an warning state - * @default false - */ - warn?: boolean; - - /** - * Specify the warning state text - * @default "" - */ - warnText?: string; - - /** - * Specify the helper text - * @default "" - */ - helperText?: string; - - /** - * Specify the label text - * @default "" - */ - label?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Override the default translation ids - * @default (id) => defaultTranslations[id] - */ - translateWithId?: (id: NumberInputTranslationId) => string; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the input - * @default undefined - */ - name?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class NumberInput extends SvelteComponentTyped< - NumberInputProps, - { - change: CustomEvent; - input: CustomEvent; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keydown: WindowEventMap["keydown"]; - keyup: WindowEventMap["keyup"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - paste: DocumentAndElementEventHandlersEventMap["paste"]; - }, - { label: {} } -> { - /** - * Default translation ids - */ - translationIds: { increment: "increment"; decrement: "decrement" }; -} diff --git a/types/NumberInput/NumberInputSkeleton.svelte.d.ts b/types/NumberInput/NumberInputSkeleton.svelte.d.ts deleted file mode 100644 index a5f53fa7..00000000 --- a/types/NumberInput/NumberInputSkeleton.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface NumberInputSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to hide the label text - * @default false - */ - hideLabel?: boolean; -} - -export default class NumberInputSkeleton extends SvelteComponentTyped< - NumberInputSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/OrderedList/OrderedList.svelte.d.ts b/types/OrderedList/OrderedList.svelte.d.ts deleted file mode 100644 index 8f1c9d39..00000000 --- a/types/OrderedList/OrderedList.svelte.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface OrderedListProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to use the nested variant - * @default false - */ - nested?: boolean; - - /** - * Set to `true` to use native list styles - * @default false - */ - native?: boolean; - - /** - * Set to `true` to use Carbon's expressive typesetting - * @default false - */ - expressive?: boolean; -} - -export default class OrderedList extends SvelteComponentTyped< - OrderedListProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/OverflowMenu/OverflowMenu.svelte.d.ts b/types/OverflowMenu/OverflowMenu.svelte.d.ts deleted file mode 100644 index 8fc62c7c..00000000 --- a/types/OverflowMenu/OverflowMenu.svelte.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface OverflowMenuProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the size of the overflow menu - * @default undefined - */ - size?: "sm" | "xl"; - - /** - * Specify the direction of the overflow menu relative to the button - * @default "bottom" - */ - direction?: "top" | "bottom"; - - /** - * Set to `true` to open the menu - * @default false - */ - open?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to flip the menu relative to the button - * @default false - */ - flipped?: boolean; - - /** - * Specify the menu options class - * @default undefined - */ - menuOptionsClass?: string; - - /** - * Specify the icon to render. - * Defaults to `` - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Specify the icon class - * @default undefined - */ - iconClass?: string; - - /** - * Specify the ARIA label for the icon - * @default "Open and close list of options" - */ - iconDescription?: string; - - /** - * Set an id for the button element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the trigger button element - * @default null - */ - buttonRef?: null | HTMLButtonElement; - - /** - * Obtain a reference to the overflow menu element - * @default null - */ - menuRef?: null | HTMLUListElement; -} - -export default class OverflowMenu extends SvelteComponentTyped< - OverflowMenuProps, - { - close: CustomEvent; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keydown: WindowEventMap["keydown"]; - }, - { default: {}; menu: {} } -> {} diff --git a/types/OverflowMenu/OverflowMenuItem.svelte.d.ts b/types/OverflowMenu/OverflowMenuItem.svelte.d.ts deleted file mode 100644 index 3e52531b..00000000 --- a/types/OverflowMenu/OverflowMenuItem.svelte.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface OverflowMenuItemProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the item text - * Alternatively, use the default slot for a custom element - * @default "Provide text" - */ - text?: string; - - /** - * Specify the `href` attribute if the item is a link - * @default "" - */ - href?: string; - - /** - * Set to `true` if the item should be focused when opening the menu - * @default false - */ - primaryFocus?: boolean; - - /** - * Set to `true` to disable the item - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to include a divider - * @default false - */ - hasDivider?: boolean; - - /** - * Set to `true` to use the danger variant - * @default false - */ - danger?: boolean; - - /** - * Set to `false` to omit the button `title` attribute - * @default true - */ - requireTitle?: boolean; - - /** - * Set an id for the top-level element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the HTML element - * @default null - */ - ref?: null | HTMLAnchorElement | HTMLButtonElement; -} - -export default class OverflowMenuItem extends SvelteComponentTyped< - OverflowMenuItemProps, - { click: WindowEventMap["click"]; keydown: WindowEventMap["keydown"] }, - { default: {} } -> {} diff --git a/types/Pagination/Pagination.svelte.d.ts b/types/Pagination/Pagination.svelte.d.ts deleted file mode 100644 index 11b7675a..00000000 --- a/types/Pagination/Pagination.svelte.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface PaginationProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the current page index - * @default 1 - */ - page?: number; - - /** - * Specify the total number of items - * @default 0 - */ - totalItems?: number; - - /** - * Set to `true` to disable the pagination - * @default false - */ - disabled?: boolean; - - /** - * Specify the forward button text - * @default "Next page" - */ - forwardText?: string; - - /** - * Specify the backward button text - * @default "Previous page" - */ - backwardText?: string; - - /** - * Specify the items per page text - * @default "Items per page:" - */ - itemsPerPageText?: string; - - /** - * Override the item text - * @default (min, max) => `${min}–${max} item${max === 1 ? "" : "s"}` - */ - itemText?: (min: number, max: number) => string; - - /** - * Override the item range text - * @default (min, max, total) => `${min}–${max} of ${total} item${max === 1 ? "" : "s"}` - */ - itemRangeText?: (min: number, max: number, total: number) => string; - - /** - * Set to `true` to disable the page input - * @default false - */ - pageInputDisabled?: boolean; - - /** - * Set to `true` to disable the page size input - * @default false - */ - pageSizeInputDisabled?: boolean; - - /** - * Specify the number of items to display in a page - * @default 10 - */ - pageSize?: number; - - /** - * Specify the available page sizes - * @default [10] - */ - pageSizes?: ReadonlyArray; - - /** - * Set to `true` if the number of pages is unknown - * @default false - */ - pagesUnknown?: boolean; - - /** - * Override the page text - * @default (page) => `page ${page}` - */ - pageText?: (page: number) => string; - - /** - * Override the page range text - * @default (current, total) => `of ${total} page${total === 1 ? "" : "s"}` - */ - pageRangeText?: (current: number, total: number) => string; - - /** - * Set an id for the top-level element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; -} - -export default class Pagination extends SvelteComponentTyped< - PaginationProps, - { - /** Dispatched after any user interaction */ - change: CustomEvent<{ page?: number; pageSize?: number }>; - ["click:button--previous"]: CustomEvent<{ page: number }>; - ["click:button--next"]: CustomEvent<{ page: number }>; - update: CustomEvent<{ pageSize: number; page: number }>; - }, - {} -> {} diff --git a/types/Pagination/PaginationSkeleton.svelte.d.ts b/types/Pagination/PaginationSkeleton.svelte.d.ts deleted file mode 100644 index 45b3215a..00000000 --- a/types/Pagination/PaginationSkeleton.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface PaginationSkeletonProps - extends svelte.JSX.HTMLAttributes {} - -export default class PaginationSkeleton extends SvelteComponentTyped< - PaginationSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/PaginationNav/PaginationNav.svelte.d.ts b/types/PaginationNav/PaginationNav.svelte.d.ts deleted file mode 100644 index adb27598..00000000 --- a/types/PaginationNav/PaginationNav.svelte.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface PaginationNavProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the current page index - * @default 1 - */ - page?: number; - - /** - * Specify the total number of pages - * @default 10 - */ - total?: number; - - /** - * Specify the total number of pages to show - * @default 10 - */ - shown?: number; - - /** - * Set to `true` to loop the navigation - * @default false - */ - loop?: boolean; - - /** - * Specify the forward button text - * @default "Next page" - */ - forwardText?: string; - - /** - * Specify the backward button text - * @default "Previous page" - */ - backwardText?: string; -} - -export default class PaginationNav extends SvelteComponentTyped< - PaginationNavProps, - { - /** fires after every user interaction */ - change: CustomEvent<{ page: number }>; - ["click:button--previous"]: CustomEvent<{ page: number }>; - ["click:button--next"]: CustomEvent<{ page: number }>; - }, - {} -> {} diff --git a/types/Popover/Popover.svelte.d.ts b/types/Popover/Popover.svelte.d.ts deleted file mode 100644 index bbb90eda..00000000 --- a/types/Popover/Popover.svelte.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface PopoverProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to display the popover - * @default false - */ - open?: boolean; - - /** - * Set to `true` to close the popover on an outside click - * @default false - */ - closeOnOutsideClick?: boolean; - - /** - * Set to `true` render a caret - * @default false - */ - caret?: boolean; - - /** - * Specify the alignment of the caret - * @default "top" - */ - align?: - | "top" - | "top-left" - | "top-right" - | "bottom" - | "bottom-left" - | "bottom-right" - | "left" - | "left-bottom" - | "left-top" - | "right" - | "right-bottom" - | "right-top"; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to enable the high contrast variant - * @default false - */ - highContrast?: boolean; - - /** - * Set to `true` to use a relative position - * @default false - */ - relative?: boolean; -} - -export default class Popover extends SvelteComponentTyped< - PopoverProps, - { ["click:outside"]: CustomEvent<{ target: HTMLElement }> }, - { default: {} } -> {} diff --git a/types/ProgressBar/ProgressBar.svelte.d.ts b/types/ProgressBar/ProgressBar.svelte.d.ts deleted file mode 100644 index fa016e1d..00000000 --- a/types/ProgressBar/ProgressBar.svelte.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ProgressBarProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the current value - * @default undefined - */ - value?: number; - - /** - * Specify the maximum value - * @default 100 - */ - max?: number; - - /** - * Specify the kind of progress bar - * @default "default" - */ - kind?: "default" | "inline" | "indented"; - - /** - * Specify the size - * @default "md" - */ - size?: "sm" | "md"; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Specify the helper text - * @default "" - */ - helperText?: string; - - /** - * Set an id for the progress bar element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; -} - -export default class ProgressBar extends SvelteComponentTyped< - ProgressBarProps, - {}, - { labelText: {} } -> {} diff --git a/types/ProgressIndicator/ProgressIndicator.svelte.d.ts b/types/ProgressIndicator/ProgressIndicator.svelte.d.ts deleted file mode 100644 index 2bcbf6fa..00000000 --- a/types/ProgressIndicator/ProgressIndicator.svelte.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ProgressIndicatorProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the current step index - * @default 0 - */ - currentIndex?: number; - - /** - * Set to `true` to use the vertical variant - * @default false - */ - vertical?: boolean; - - /** - * Set to `true` to specify whether the progress steps should be split equally in size in the div - * @default false - */ - spaceEqually?: boolean; - - /** - * Set to `true` to prevent `currentIndex` from updating - * @default false - */ - preventChangeOnClick?: boolean; -} - -export default class ProgressIndicator extends SvelteComponentTyped< - ProgressIndicatorProps, - { - change: CustomEvent; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/ProgressIndicator/ProgressIndicatorSkeleton.svelte.d.ts b/types/ProgressIndicator/ProgressIndicatorSkeleton.svelte.d.ts deleted file mode 100644 index b21fc03b..00000000 --- a/types/ProgressIndicator/ProgressIndicatorSkeleton.svelte.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ProgressIndicatorSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to use the vertical variant - * @default false - */ - vertical?: boolean; - - /** - * Specify the number of steps to render - * @default 4 - */ - count?: number; -} - -export default class ProgressIndicatorSkeleton extends SvelteComponentTyped< - ProgressIndicatorSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/ProgressIndicator/ProgressStep.svelte.d.ts b/types/ProgressIndicator/ProgressStep.svelte.d.ts deleted file mode 100644 index 6ba197d5..00000000 --- a/types/ProgressIndicator/ProgressStep.svelte.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ProgressStepProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` for the complete variant - * @default false - */ - complete?: boolean; - - /** - * Set to `true` to use the current variant - * @default false - */ - current?: boolean; - - /** - * Set to `true` to disable the progress step - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the step description - * @default "" - */ - description?: string; - - /** - * Specify the step label - * @default "" - */ - label?: string; - - /** - * Specify the step secondary label - * @default "" - */ - secondaryLabel?: string; - - /** - * Set an id for the top-level element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; -} - -export default class ProgressStep extends SvelteComponentTyped< - ProgressStepProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keydown: WindowEventMap["keydown"]; - }, - { default: { props: { class: "bx--progress-label" } } } -> {} diff --git a/types/README.md b/types/README.md deleted file mode 100644 index 79a1ed3e..00000000 --- a/types/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# types - -The TypeScript definitions in this folder are auto-generated by [sveld](https://github.com/carbon-design-system/sveld). - -Do not edit these types directly. To add or update property types or definitions, update the JSDoc annotations in the component source code in the [src](../src) folder. - -Tests are located in the [tests](../tests) folder. diff --git a/types/RadioButton/RadioButton.svelte.d.ts b/types/RadioButton/RadioButton.svelte.d.ts deleted file mode 100644 index b04d012c..00000000 --- a/types/RadioButton/RadioButton.svelte.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface RadioButtonProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the value of the radio button - * @default "" - */ - value?: string; - - /** - * Set to `true` to check the radio button - * @default false - */ - checked?: boolean; - - /** - * Set to `true` to disable the radio button - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to mark the field as required - * @default false - */ - required?: boolean; - - /** - * Specify the label position - * @default "right" - */ - labelPosition?: "right" | "left"; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the radio button input - * @default "" - */ - name?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class RadioButton extends SvelteComponentTyped< - RadioButtonProps, - { change: WindowEventMap["change"] }, - { labelText: {} } -> {} diff --git a/types/RadioButton/RadioButtonSkeleton.svelte.d.ts b/types/RadioButton/RadioButtonSkeleton.svelte.d.ts deleted file mode 100644 index 3f4ac20f..00000000 --- a/types/RadioButton/RadioButtonSkeleton.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface RadioButtonSkeletonProps - extends svelte.JSX.HTMLAttributes {} - -export default class RadioButtonSkeleton extends SvelteComponentTyped< - RadioButtonSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts b/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts deleted file mode 100644 index 84f2a278..00000000 --- a/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface RadioButtonGroupProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the selected radio button value - * @default undefined - */ - selected?: string; - - /** - * Set to `true` to disable the radio buttons - * @default false - */ - disabled?: boolean; - - /** - * Specify the legend text - * @default "" - */ - legendText?: string; - - /** - * Set to `true` to visually hide the legend - * @default false - */ - hideLegend?: boolean; - - /** - * Specify the label position - * @default "right" - */ - labelPosition?: "right" | "left"; - - /** - * Specify the orientation of the radio buttons - * @default "horizontal" - */ - orientation?: "horizontal" | "vertical"; - - /** - * Set an id for the container div element - * @default undefined - */ - id?: string; -} - -export default class RadioButtonGroup extends SvelteComponentTyped< - RadioButtonGroupProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - change: CustomEvent; - }, - { default: {}; legendText: {} } -> {} diff --git a/types/RecursiveList/RecursiveList.svelte.d.ts b/types/RecursiveList/RecursiveList.svelte.d.ts deleted file mode 100644 index cad7b2d0..00000000 --- a/types/RecursiveList/RecursiveList.svelte.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface RecursiveListNode { - text?: string; - href?: string; - html?: string; -} - -export interface RecursiveListProps - extends svelte.JSX.HTMLAttributes, - svelte.JSX.HTMLAttributes { - /** - * Specify the children to render - * @default [] - */ - children?: Array; - - /** - * Specify the type of list to render - * @default "unordered" - */ - type?: "unordered" | "ordered" | "ordered-native"; -} - -export default class RecursiveList extends SvelteComponentTyped< - RecursiveListProps, - {}, - {} -> {} diff --git a/types/Search/Search.svelte.d.ts b/types/Search/Search.svelte.d.ts deleted file mode 100644 index 67cf50e9..00000000 --- a/types/Search/Search.svelte.d.ts +++ /dev/null @@ -1,123 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SearchProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the value of the search input - * @default "" - */ - value?: any; - - /** - * Specify the size of the search input - * @default "xl" - */ - size?: "sm" | "lg" | "xl"; - - /** - * Specify the class name passed to the outer div element - * @default "" - */ - searchClass?: string; - - /** - * Set to `true` to display the skeleton state - * @default false - */ - skeleton?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to disable the search input - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to enable the expandable variant - * @default false - */ - expandable?: boolean; - - /** - * Set to `true to expand the search input - * @default false - */ - expanded?: boolean; - - /** - * Specify the `placeholder` attribute of the search input - * @default "Search..." - */ - placeholder?: string; - - /** - * Specify the `autocomplete` attribute - * @default "off" - */ - autocomplete?: "on" | "off"; - - /** - * Set to `true` to auto focus the search element - * @default false - */ - autofocus?: boolean; - - /** - * Specify the close button label text - * @default "Clear search input" - */ - closeButtonLabelText?: string; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Specify the icon to render. - * Defaults to `` - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class Search extends SvelteComponentTyped< - SearchProps, - { - expand: CustomEvent; - collapse: CustomEvent; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - change: WindowEventMap["change"]; - input: WindowEventMap["input"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - keydown: WindowEventMap["keydown"]; - keyup: WindowEventMap["keyup"]; - paste: DocumentAndElementEventHandlersEventMap["paste"]; - clear: CustomEvent; - }, - { labelText: {} } -> {} diff --git a/types/Search/SearchSkeleton.svelte.d.ts b/types/Search/SearchSkeleton.svelte.d.ts deleted file mode 100644 index 20bfaedc..00000000 --- a/types/Search/SearchSkeleton.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SearchSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the size of the search input - * @default "xl" - */ - size?: "sm" | "lg" | "xl"; -} - -export default class SearchSkeleton extends SvelteComponentTyped< - SearchSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/Select/Select.svelte.d.ts b/types/Select/Select.svelte.d.ts deleted file mode 100644 index db1736f8..00000000 --- a/types/Select/Select.svelte.d.ts +++ /dev/null @@ -1,119 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SelectProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the selected item value - * @default undefined - */ - selected?: string | number; - - /** - * Set the size of the select input - * @default undefined - */ - size?: "sm" | "xl"; - - /** - * Set to `true` to use the inline variant - * @default false - */ - inline?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to disable the select element - * @default false - */ - disabled?: boolean; - - /** - * Set an id for the select element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the select element - * @default undefined - */ - name?: string; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the invalid state text - * @default "" - */ - invalidText?: string; - - /** - * Set to `true` to indicate an warning state - * @default false - */ - warn?: boolean; - - /** - * Specify the warning state text - * @default "" - */ - warnText?: string; - - /** - * Specify the helper text - * @default "" - */ - helperText?: string; - - /** - * Set to `true` to not render a label - * @default false - */ - noLabel?: boolean; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Obtain a reference to the select HTML element - * @default null - */ - ref?: null | HTMLSelectElement; - - /** - * Set to `true` to mark the field as required - * @default false - */ - required?: boolean; -} - -export default class Select extends SvelteComponentTyped< - SelectProps, - { - /** The selected value. */ update: CustomEvent; - change: WindowEventMap["change"]; - input: WindowEventMap["input"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - }, - { default: {}; labelText: {} } -> {} diff --git a/types/Select/SelectItem.svelte.d.ts b/types/Select/SelectItem.svelte.d.ts deleted file mode 100644 index fb74b2bf..00000000 --- a/types/Select/SelectItem.svelte.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SelectItemProps { - /** - * Specify the option value - * @default "" - */ - value?: string | number; - - /** - * Specify the option text - * @default "" - */ - text?: string; - - /** - * Set to `true` to hide the option - * @default false - */ - hidden?: boolean; - - /** - * Set to `true` to disable the option - * @default false - */ - disabled?: boolean; -} - -export default class SelectItem extends SvelteComponentTyped< - SelectItemProps, - {}, - {} -> {} diff --git a/types/Select/SelectItemGroup.svelte.d.ts b/types/Select/SelectItemGroup.svelte.d.ts deleted file mode 100644 index e8258c6d..00000000 --- a/types/Select/SelectItemGroup.svelte.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SelectItemGroupProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to disable the optgroup element - * @default false - */ - disabled?: boolean; - - /** - * Specify the label attribute of the optgroup element - * @default "Provide label" - */ - label?: string; -} - -export default class SelectItemGroup extends SvelteComponentTyped< - SelectItemGroupProps, - {}, - { default: {} } -> {} diff --git a/types/Select/SelectSkeleton.svelte.d.ts b/types/Select/SelectSkeleton.svelte.d.ts deleted file mode 100644 index 7bd4ed5e..00000000 --- a/types/Select/SelectSkeleton.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SelectSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to hide the label text - * @default false - */ - hideLabel?: boolean; -} - -export default class SelectSkeleton extends SvelteComponentTyped< - SelectSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/SkeletonPlaceholder/SkeletonPlaceholder.svelte.d.ts b/types/SkeletonPlaceholder/SkeletonPlaceholder.svelte.d.ts deleted file mode 100644 index 9d8c933b..00000000 --- a/types/SkeletonPlaceholder/SkeletonPlaceholder.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SkeletonPlaceholderProps - extends svelte.JSX.HTMLAttributes {} - -export default class SkeletonPlaceholder extends SvelteComponentTyped< - SkeletonPlaceholderProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/SkeletonText/SkeletonText.svelte.d.ts b/types/SkeletonText/SkeletonText.svelte.d.ts deleted file mode 100644 index fbf8bcfa..00000000 --- a/types/SkeletonText/SkeletonText.svelte.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SkeletonTextProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the number of lines to render - * @default 3 - */ - lines?: number; - - /** - * Set to `true` to use the heading size variant - * @default false - */ - heading?: boolean; - - /** - * Set to `true` to use the paragraph size variant - * @default false - */ - paragraph?: boolean; - - /** - * Specify the width of the text (% or px) - * @default "100%" - */ - width?: string; -} - -export default class SkeletonText extends SvelteComponentTyped< - SkeletonTextProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/Slider/Slider.svelte.d.ts b/types/Slider/Slider.svelte.d.ts deleted file mode 100644 index 059821c5..00000000 --- a/types/Slider/Slider.svelte.d.ts +++ /dev/null @@ -1,126 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SliderProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the value of the slider - * @default 0 - */ - value?: number; - - /** - * Set the maximum slider value - * @default 100 - */ - max?: number; - - /** - * Specify the label for the max value - * @default "" - */ - maxLabel?: string; - - /** - * Set the minimum slider value - * @default 0 - */ - min?: number; - - /** - * Specify the label for the min value - * @default "" - */ - minLabel?: string; - - /** - * Set the step value - * @default 1 - */ - step?: number; - - /** - * Set the step multiplier value - * @default 4 - */ - stepMultiplier?: number; - - /** - * Set to `true` to require a value - * @default false - */ - required?: boolean; - - /** - * Specify the input type - * @default "number" - */ - inputType?: string; - - /** - * Set to `true` to disable the slider - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to hide the text input - * @default false - */ - hideTextInput?: boolean; - - /** - * Set to `true` for the slider to span - * the full width of its containing element. - * @default false - */ - fullWidth?: boolean; - - /** - * Set an id for the slider div element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set a name for the slider element - * @default "" - */ - name?: string; - - /** - * Obtain a reference to the HTML element - * @default null - */ - ref?: null | HTMLDivElement; -} - -export default class Slider extends SvelteComponentTyped< - SliderProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - change: CustomEvent; - }, - { labelText: {} } -> {} diff --git a/types/Slider/SliderSkeleton.svelte.d.ts b/types/Slider/SliderSkeleton.svelte.d.ts deleted file mode 100644 index 58315c0c..00000000 --- a/types/Slider/SliderSkeleton.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SliderSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to hide the label text - * @default false - */ - hideLabel?: boolean; -} - -export default class SliderSkeleton extends SvelteComponentTyped< - SliderSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/StructuredList/StructuredList.svelte.d.ts b/types/StructuredList/StructuredList.svelte.d.ts deleted file mode 100644 index b1f04093..00000000 --- a/types/StructuredList/StructuredList.svelte.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface StructuredListProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the selected structured list row value - * @default undefined - */ - selected?: string; - - /** - * Set to `true` to use the condensed variant - * @default false - */ - condensed?: boolean; - - /** - * Set to `true` to flush the list - * @default false - */ - flush?: boolean; - - /** - * Set to `true` to use the selection variant - * @default false - */ - selection?: boolean; -} - -export default class StructuredList extends SvelteComponentTyped< - StructuredListProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - change: CustomEvent; - }, - { default: {} } -> {} diff --git a/types/StructuredList/StructuredListBody.svelte.d.ts b/types/StructuredList/StructuredListBody.svelte.d.ts deleted file mode 100644 index ec0eff57..00000000 --- a/types/StructuredList/StructuredListBody.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface StructuredListBodyProps - extends svelte.JSX.HTMLAttributes {} - -export default class StructuredListBody extends SvelteComponentTyped< - StructuredListBodyProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/StructuredList/StructuredListCell.svelte.d.ts b/types/StructuredList/StructuredListCell.svelte.d.ts deleted file mode 100644 index 8ee2009c..00000000 --- a/types/StructuredList/StructuredListCell.svelte.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface StructuredListCellProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to use as a header - * @default false - */ - head?: boolean; - - /** - * Set to `true` to prevent wrapping - * @default false - */ - noWrap?: boolean; -} - -export default class StructuredListCell extends SvelteComponentTyped< - StructuredListCellProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/StructuredList/StructuredListHead.svelte.d.ts b/types/StructuredList/StructuredListHead.svelte.d.ts deleted file mode 100644 index f269ac20..00000000 --- a/types/StructuredList/StructuredListHead.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface StructuredListHeadProps - extends svelte.JSX.HTMLAttributes {} - -export default class StructuredListHead extends SvelteComponentTyped< - StructuredListHeadProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/StructuredList/StructuredListInput.svelte.d.ts b/types/StructuredList/StructuredListInput.svelte.d.ts deleted file mode 100644 index 5d0b8377..00000000 --- a/types/StructuredList/StructuredListInput.svelte.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface StructuredListInputProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to check the input - * @default false - */ - checked?: boolean; - - /** - * Specify the title of the input - * @default "title" - */ - title?: string; - - /** - * Specify the value of the input - * @default "value" - */ - value?: string; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the input - * @default "" - */ - name?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class StructuredListInput extends SvelteComponentTyped< - StructuredListInputProps, - {}, - {} -> {} diff --git a/types/StructuredList/StructuredListRow.svelte.d.ts b/types/StructuredList/StructuredListRow.svelte.d.ts deleted file mode 100644 index 25f1575b..00000000 --- a/types/StructuredList/StructuredListRow.svelte.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface StructuredListRowProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to use as a header - * @default false - */ - head?: boolean; - - /** - * Set to `true` to render a label slot - * @default false - */ - label?: boolean; - - /** - * Specify the tabindex - * @default "0" - */ - tabindex?: string; -} - -export default class StructuredListRow extends SvelteComponentTyped< - StructuredListRowProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keydown: WindowEventMap["keydown"]; - }, - { default: {} } -> {} diff --git a/types/StructuredList/StructuredListSkeleton.svelte.d.ts b/types/StructuredList/StructuredListSkeleton.svelte.d.ts deleted file mode 100644 index 82c3f970..00000000 --- a/types/StructuredList/StructuredListSkeleton.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface StructuredListSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the number of rows - * @default 5 - */ - rows?: number; -} - -export default class StructuredListSkeleton extends SvelteComponentTyped< - StructuredListSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/Tabs/Tab.svelte.d.ts b/types/Tabs/Tab.svelte.d.ts deleted file mode 100644 index fd6601e6..00000000 --- a/types/Tabs/Tab.svelte.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TabProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the tab label - * Alternatively, use the default slot (e.g., Label) - * @default "" - */ - label?: string; - - /** - * Specify the href attribute - * @default "#" - */ - href?: string; - - /** - * Set to `true` to disable the tab - * @default false - */ - disabled?: boolean; - - /** - * Specify the tabindex - * @default "0" - */ - tabindex?: string; - - /** - * Set an id for the top-level element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the anchor HTML element - * @default null - */ - ref?: null | HTMLAnchorElement; -} - -export default class Tab extends SvelteComponentTyped< - TabProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/Tabs/TabContent.svelte.d.ts b/types/Tabs/TabContent.svelte.d.ts deleted file mode 100644 index abe5e815..00000000 --- a/types/Tabs/TabContent.svelte.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TabContentProps - extends svelte.JSX.HTMLAttributes { - /** - * Set an id for the top-level element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; -} - -export default class TabContent extends SvelteComponentTyped< - TabContentProps, - {}, - { default: {} } -> {} diff --git a/types/Tabs/Tabs.svelte.d.ts b/types/Tabs/Tabs.svelte.d.ts deleted file mode 100644 index 68ceffed..00000000 --- a/types/Tabs/Tabs.svelte.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TabsProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the selected tab index - * @default 0 - */ - selected?: number; - - /** - * Specify the type of tabs - * @default "default" - */ - type?: "default" | "container"; - - /** - * Set to `true` for tabs to have an auto-width - * @default false - */ - autoWidth?: boolean; - - /** - * Specify the ARIA label for the chevron icon - * @default "Show menu options" - */ - iconDescription?: string; - - /** - * Specify the tab trigger href attribute - * @default "#" - */ - triggerHref?: string; -} - -export default class Tabs extends SvelteComponentTyped< - TabsProps, - { - keypress: WindowEventMap["keypress"]; - click: WindowEventMap["click"]; - change: CustomEvent; - }, - { default: {}; content: {} } -> {} diff --git a/types/Tabs/TabsSkeleton.svelte.d.ts b/types/Tabs/TabsSkeleton.svelte.d.ts deleted file mode 100644 index 120efd38..00000000 --- a/types/Tabs/TabsSkeleton.svelte.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TabsSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the number of tabs to render - * @default 4 - */ - count?: number; - - /** - * Specify the type of tabs - * @default "default" - */ - type?: "default" | "container"; -} - -export default class TabsSkeleton extends SvelteComponentTyped< - TabsSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/Tag/Tag.svelte.d.ts b/types/Tag/Tag.svelte.d.ts deleted file mode 100644 index 24b02566..00000000 --- a/types/Tag/Tag.svelte.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TagProps - extends svelte.JSX.HTMLAttributes, - svelte.JSX.HTMLAttributes { - /** - * Specify the type of tag - * @default undefined - */ - type?: - | "red" - | "magenta" - | "purple" - | "blue" - | "cyan" - | "teal" - | "green" - | "gray" - | "cool-gray" - | "warm-gray" - | "high-contrast" - | "outline"; - - /** - * @default "default" - */ - size?: "sm" | "default"; - - /** - * Set to `true` to use filterable variant - * @default false - */ - filter?: boolean; - - /** - * Set to `true` to disable a filterable tag - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to render a `button` element instead of a `div` - * @default false - */ - interactive?: boolean; - - /** - * Set to `true` to display the skeleton state - * @default false - */ - skeleton?: boolean; - - /** - * Set the title for the close button in a filterable tag - * @default "Clear filter" - */ - title?: string; - - /** - * Specify the icon to render - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Set an id for the filterable tag - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; -} - -export default class Tag extends SvelteComponentTyped< - TagProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - close: CustomEvent; - }, - { default: { props: { class: "bx--tag__label" } }; icon: {} } -> {} diff --git a/types/Tag/TagSkeleton.svelte.d.ts b/types/Tag/TagSkeleton.svelte.d.ts deleted file mode 100644 index f63dd01e..00000000 --- a/types/Tag/TagSkeleton.svelte.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TagSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * @default "default" - */ - size?: "sm" | "default"; -} - -export default class TagSkeleton extends SvelteComponentTyped< - TagSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/TextArea/TextArea.svelte.d.ts b/types/TextArea/TextArea.svelte.d.ts deleted file mode 100644 index d5c1fe71..00000000 --- a/types/TextArea/TextArea.svelte.d.ts +++ /dev/null @@ -1,119 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TextAreaProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the textarea value - * @default "" - */ - value?: string; - - /** - * Specify the placeholder text - * @default "" - */ - placeholder?: string; - - /** - * Specify the number of cols - * @default 50 - */ - cols?: number; - - /** - * Specify the number of rows - * @default 4 - */ - rows?: number; - - /** - * Specify the max character count - * @default undefined - */ - maxCount?: number; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to disable the input - * @default false - */ - disabled?: boolean; - - /** - * Set to `true` to use the read-only variant - * @default false - */ - readonly?: boolean; - - /** - * Specify the helper text - * @default "" - */ - helperText?: string; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the text for the invalid state - * @default "" - */ - invalidText?: string; - - /** - * Set an id for the textarea element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the input - * @default undefined - */ - name?: string; - - /** - * Obtain a reference to the textarea HTML element - * @default null - */ - ref?: null | HTMLTextAreaElement; -} - -export default class TextArea extends SvelteComponentTyped< - TextAreaProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - change: WindowEventMap["change"]; - input: WindowEventMap["input"]; - keydown: WindowEventMap["keydown"]; - keyup: WindowEventMap["keyup"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - paste: DocumentAndElementEventHandlersEventMap["paste"]; - }, - { labelText: {} } -> {} diff --git a/types/TextArea/TextAreaSkeleton.svelte.d.ts b/types/TextArea/TextAreaSkeleton.svelte.d.ts deleted file mode 100644 index 6e5b104d..00000000 --- a/types/TextArea/TextAreaSkeleton.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TextAreaSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; -} - -export default class TextAreaSkeleton extends SvelteComponentTyped< - TextAreaSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/TextInput/PasswordInput.svelte.d.ts b/types/TextInput/PasswordInput.svelte.d.ts deleted file mode 100644 index 04ca7dda..00000000 --- a/types/TextInput/PasswordInput.svelte.d.ts +++ /dev/null @@ -1,149 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface PasswordInputProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the size of the input - * @default undefined - */ - size?: "sm" | "xl"; - - /** - * Specify the input value - * @default "" - */ - value?: number | string; - - /** - * Set to `"text"` to toggle the password visibility - * @default "password" - */ - type?: "text" | "password"; - - /** - * Specify the placeholder text - * @default "" - */ - placeholder?: string; - - /** - * Specify the hide password label text - * @default "Hide password" - */ - hidePasswordLabel?: string; - - /** - * Specify the show password label text - * @default "Show password" - */ - showPasswordLabel?: string; - - /** - * Set the alignment of the tooltip relative to the icon - * @default "center" - */ - tooltipAlignment?: "start" | "center" | "end"; - - /** - * Set the position of the tooltip relative to the icon - * @default "bottom" - */ - tooltipPosition?: "top" | "right" | "bottom" | "left"; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to disable the input - * @default false - */ - disabled?: boolean; - - /** - * Specify the helper text - * @default "" - */ - helperText?: string; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the text for the invalid state - * @default "" - */ - invalidText?: string; - - /** - * Set to `true` to indicate an warning state - * @default false - */ - warn?: boolean; - - /** - * Specify the warning state text - * @default "" - */ - warnText?: string; - - /** - * Set to `true` to use inline version - * @default false - */ - inline?: boolean; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the input - * @default undefined - */ - name?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class PasswordInput extends SvelteComponentTyped< - PasswordInputProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - change: WindowEventMap["change"]; - input: WindowEventMap["input"]; - keydown: WindowEventMap["keydown"]; - keyup: WindowEventMap["keyup"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - paste: DocumentAndElementEventHandlersEventMap["paste"]; - }, - { labelText: {} } -> {} diff --git a/types/TextInput/TextInput.svelte.d.ts b/types/TextInput/TextInput.svelte.d.ts deleted file mode 100644 index 3c4032c7..00000000 --- a/types/TextInput/TextInput.svelte.d.ts +++ /dev/null @@ -1,134 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TextInputProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the size of the input - * @default undefined - */ - size?: "sm" | "xl"; - - /** - * Specify the input value. - * - * `value` will be set to `null` if type="number" - * and the value is empty. - * @default "" - */ - value?: null | number | string; - - /** - * Specify the placeholder text - * @default "" - */ - placeholder?: string; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to disable the input - * @default false - */ - disabled?: boolean; - - /** - * Specify the helper text - * @default "" - */ - helperText?: string; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the input - * @default undefined - */ - name?: string; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the invalid state text - * @default "" - */ - invalidText?: string; - - /** - * Set to `true` to indicate an warning state - * @default false - */ - warn?: boolean; - - /** - * Specify the warning state text - * @default "" - */ - warnText?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; - - /** - * Set to `true` to mark the field as required - * @default false - */ - required?: boolean; - - /** - * Set to `true` to use the inline variant - * @default false - */ - inline?: boolean; - - /** - * Set to `true` to use the read-only variant - * @default false - */ - readonly?: boolean; -} - -export default class TextInput extends SvelteComponentTyped< - TextInputProps, - { - change: CustomEvent; - input: CustomEvent; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keydown: WindowEventMap["keydown"]; - keyup: WindowEventMap["keyup"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - paste: DocumentAndElementEventHandlersEventMap["paste"]; - }, - { labelText: {} } -> {} diff --git a/types/TextInput/TextInputSkeleton.svelte.d.ts b/types/TextInput/TextInputSkeleton.svelte.d.ts deleted file mode 100644 index ecd017dd..00000000 --- a/types/TextInput/TextInputSkeleton.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TextInputSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to hide the label text - * @default false - */ - hideLabel?: boolean; -} - -export default class TextInputSkeleton extends SvelteComponentTyped< - TextInputSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - {} -> {} diff --git a/types/Theme/Theme.svelte.d.ts b/types/Theme/Theme.svelte.d.ts deleted file mode 100644 index 6dfbefbc..00000000 --- a/types/Theme/Theme.svelte.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type CarbonTheme = "white" | "g10" | "g80" | "g90" | "g100"; - -export interface ThemeProps { - /** - * Set the current Carbon theme - * @default "white" - */ - theme?: CarbonTheme; - - /** - * Customize a theme with your own tokens - * @see https://carbondesignsystem.com/guidelines/themes/overview#customizing-a-theme - * @default {} - */ - tokens?: { [token: string]: any }; - - /** - * Set to `true` to persist the theme using window.localStorage - * @default false - */ - persist?: boolean; - - /** - * Specify the local storage key - * @default "theme" - */ - persistKey?: string; - - /** - * Render a toggle or select dropdown to control the theme - * @default undefined - */ - render?: "toggle" | "select"; - - /** - * Override the default toggle props - * @default { themes: ["white", "g100"], labelA: "", labelB: "", labelText: "Dark mode", hideLabel: false, } - */ - toggle?: import("../Toggle/Toggle").ToggleProps & { - themes?: [labelA: CarbonTheme, labelB: CarbonTheme]; - }; - - /** - * Override the default select props - * @default { themes: themeKeys, labelText: "Themes", hideLabel: false, } - */ - select?: import("../Select/Select").SelectProps & { themes?: CarbonTheme[] }; -} - -export default class Theme extends SvelteComponentTyped< - ThemeProps, - { update: CustomEvent<{ theme: CarbonTheme }> }, - { default: { theme: CarbonTheme } } -> {} diff --git a/types/Tile/ClickableTile.svelte.d.ts b/types/Tile/ClickableTile.svelte.d.ts deleted file mode 100644 index c93e77e3..00000000 --- a/types/Tile/ClickableTile.svelte.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ClickableTileProps - extends svelte.JSX.HTMLAttributes, - svelte.JSX.HTMLAttributes { - /** - * Set to `true` to click the tile - * @default false - */ - clicked?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to disable the tile - * @default false - */ - disabled?: boolean; - - /** - * Set the `href` - * @default undefined - */ - href?: string; -} - -export default class ClickableTile extends SvelteComponentTyped< - ClickableTileProps, - { - click: WindowEventMap["click"]; - keydown: WindowEventMap["keydown"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/Tile/ExpandableTile.svelte.d.ts b/types/Tile/ExpandableTile.svelte.d.ts deleted file mode 100644 index 653f81df..00000000 --- a/types/Tile/ExpandableTile.svelte.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ExpandableTileProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to expand the tile - * @default false - */ - expanded?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Specify the max height of the tile (number of pixels) - * @default 0 - */ - tileMaxHeight?: number; - - /** - * Specify the padding of the tile (number of pixels) - * @default 0 - */ - tilePadding?: number; - - /** - * Specify the icon text of the collapsed tile - * @default "Interact to expand Tile" - */ - tileCollapsedIconText?: string; - - /** - * Specify the icon text of the expanded tile - * @default "Interact to collapse Tile" - */ - tileExpandedIconText?: string; - - /** - * Specify the icon label of the expanded tile - * @default "" - */ - tileExpandedLabel?: string; - - /** - * Specify the icon label of the collapsed tile - * @default "" - */ - tileCollapsedLabel?: string; - - /** - * Specify the tabindex - * @default "0" - */ - tabindex?: string; - - /** - * Set an id for the top-level div element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the top-level element - * @default null - */ - ref?: null | HTMLButtonElement; -} - -export default class ExpandableTile extends SvelteComponentTyped< - ExpandableTileProps, - { - click: WindowEventMap["click"]; - keypress: WindowEventMap["keypress"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { above: {}; below: {} } -> {} diff --git a/types/Tile/RadioTile.svelte.d.ts b/types/Tile/RadioTile.svelte.d.ts deleted file mode 100644 index 898746aa..00000000 --- a/types/Tile/RadioTile.svelte.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface RadioTileProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to check the tile - * @default false - */ - checked?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to disable the tile - * @default false - */ - disabled?: boolean; - - /** - * Specify the value of the radio input - * @default "" - */ - value?: string; - - /** - * Specify the tabindex - * @default "0" - */ - tabindex?: string; - - /** - * Specify the ARIA label for the radio tile checkmark icon - * @default "Tile checkmark" - */ - iconDescription?: string; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the input - * @default "" - */ - name?: string; -} - -export default class RadioTile extends SvelteComponentTyped< - RadioTileProps, - { - change: WindowEventMap["change"]; - keydown: WindowEventMap["keydown"]; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/Tile/SelectableTile.svelte.d.ts b/types/Tile/SelectableTile.svelte.d.ts deleted file mode 100644 index c8287768..00000000 --- a/types/Tile/SelectableTile.svelte.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SelectableTileProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to select the tile - * @default false - */ - selected?: boolean; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to disable the tile - * @default false - */ - disabled?: boolean; - - /** - * Specify the title of the selectable tile - * @default "title" - */ - title?: string; - - /** - * Specify the value of the selectable tile - * @default "value" - */ - value?: string; - - /** - * Specify the tabindex - * @default "0" - */ - tabindex?: string; - - /** - * Specify the ARIA label for the selectable tile checkmark icon - * @default "Tile checkmark" - */ - iconDescription?: string; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the input - * @default "" - */ - name?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class SelectableTile extends SvelteComponentTyped< - SelectableTileProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keydown: WindowEventMap["keydown"]; - }, - { default: {} } -> {} diff --git a/types/Tile/Tile.svelte.d.ts b/types/Tile/Tile.svelte.d.ts deleted file mode 100644 index fb4a1d5e..00000000 --- a/types/Tile/Tile.svelte.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TileProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; -} - -export default class Tile extends SvelteComponentTyped< - TileProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/Tile/TileGroup.svelte.d.ts b/types/Tile/TileGroup.svelte.d.ts deleted file mode 100644 index dddc2d04..00000000 --- a/types/Tile/TileGroup.svelte.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TileGroupProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the selected tile value - * @default undefined - */ - selected?: string; - - /** - * Set to `true` to disable the tile group - * @default false - */ - disabled?: boolean; - - /** - * Specify the legend text - * @default "" - */ - legend?: string; -} - -export default class TileGroup extends SvelteComponentTyped< - TileGroupProps, - { select: CustomEvent }, - { default: {} } -> {} diff --git a/types/TimePicker/TimePicker.svelte.d.ts b/types/TimePicker/TimePicker.svelte.d.ts deleted file mode 100644 index f71bb927..00000000 --- a/types/TimePicker/TimePicker.svelte.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TimePickerProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the size of the input - * @default undefined - */ - size?: "sm" | "xl"; - - /** - * Specify the input value - * @default "" - */ - value?: string; - - /** - * Specify the input placeholder text - * @default "hh:mm" - */ - placeholder?: string; - - /** - * Specify the `pattern` attribute for the input element - * @default "(1[012]|[1-9]):[0-5][0-9](\\s)?" - */ - pattern?: string; - - /** - * Specify the `maxlength` input attribute - * @default 5 - */ - maxlength?: number; - - /** - * Set to `true` to enable the light variant - * @default false - */ - light?: boolean; - - /** - * Set to `true` to disable the input - * @default false - */ - disabled?: boolean; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Set to `true` to indicate an invalid state - * @default false - */ - invalid?: boolean; - - /** - * Specify the invalid state text - * @default "" - */ - invalidText?: string; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the input - * @default undefined - */ - name?: string; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; -} - -export default class TimePicker extends SvelteComponentTyped< - TimePickerProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - change: WindowEventMap["change"]; - input: WindowEventMap["input"]; - keydown: WindowEventMap["keydown"]; - keyup: WindowEventMap["keyup"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - paste: DocumentAndElementEventHandlersEventMap["paste"]; - }, - { default: {}; labelText: {} } -> {} diff --git a/types/TimePicker/TimePickerSelect.svelte.d.ts b/types/TimePicker/TimePickerSelect.svelte.d.ts deleted file mode 100644 index e3213c94..00000000 --- a/types/TimePicker/TimePickerSelect.svelte.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TimePickerSelectProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the select value - * @default "" - */ - value?: number | string; - - /** - * Set to `true` to disable the select - * @default false - */ - disabled?: boolean; - - /** - * Specify the ARIA label for the chevron icon - * @default "Open list of options" - */ - iconDescription?: string; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set an id for the select element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the select element - * @default undefined - */ - name?: string; - - /** - * Obtain a reference to the select HTML element - * @default null - */ - ref?: null | HTMLSelectElement; -} - -export default class TimePickerSelect extends SvelteComponentTyped< - TimePickerSelectProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {}; labelText: {} } -> {} diff --git a/types/Toggle/Toggle.svelte.d.ts b/types/Toggle/Toggle.svelte.d.ts deleted file mode 100644 index 27abc2d0..00000000 --- a/types/Toggle/Toggle.svelte.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ToggleProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the toggle size - * @default "default" - */ - size?: "default" | "sm"; - - /** - * Set to `true` to toggle the checkbox input - * @default false - */ - toggled?: boolean; - - /** - * Set to `true` to disable checkbox input - * @default false - */ - disabled?: boolean; - - /** - * Specify the label for the untoggled state - * @default "Off" - */ - labelA?: string; - - /** - * Specify the label for the toggled state - * @default "On" - */ - labelB?: string; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Specify a name attribute for the checkbox input - * @default undefined - */ - name?: string; -} - -export default class Toggle extends SvelteComponentTyped< - ToggleProps, - { - toggle: CustomEvent<{ toggled: boolean }>; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - change: WindowEventMap["change"]; - keyup: WindowEventMap["keyup"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - }, - { labelA: {}; labelB: {}; labelText: {} } -> {} diff --git a/types/Toggle/ToggleSkeleton.svelte.d.ts b/types/Toggle/ToggleSkeleton.svelte.d.ts deleted file mode 100644 index 13ba7b8e..00000000 --- a/types/Toggle/ToggleSkeleton.svelte.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ToggleSkeletonProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the toggle size - * @default "default" - */ - size?: "default" | "sm"; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set an id for the input element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; -} - -export default class ToggleSkeleton extends SvelteComponentTyped< - ToggleSkeletonProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { labelText: {} } -> {} diff --git a/types/Tooltip/Tooltip.svelte.d.ts b/types/Tooltip/Tooltip.svelte.d.ts deleted file mode 100644 index cfc49d5e..00000000 --- a/types/Tooltip/Tooltip.svelte.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TooltipProps - extends svelte.JSX.HTMLAttributes { - /** - * Set the alignment of the tooltip relative to the icon - * @default "center" - */ - align?: "start" | "center" | "end"; - - /** - * Set the direction of the tooltip relative to the button - * @default "bottom" - */ - direction?: "top" | "right" | "bottom" | "left"; - - /** - * Set to `true` to open the tooltip - * @default false - */ - open?: boolean; - - /** - * Set to `true` to hide the tooltip icon - * @default false - */ - hideIcon?: boolean; - - /** - * Specify the icon to render for the tooltip button. - * Default to `` - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Specify the ARIA label for the tooltip button - * @default "" - */ - iconDescription?: string; - - /** - * Specify the icon name attribute - * @default "" - */ - iconName?: string; - - /** - * Set the button tabindex - * @default "0" - */ - tabindex?: string; - - /** - * Set an id for the tooltip - * @default "ccs-" + Math.random().toString(36) - */ - tooltipId?: string; - - /** - * Set an id for the tooltip button - * @default "ccs-" + Math.random().toString(36) - */ - triggerId?: string; - - /** - * Set the tooltip button text - * @default "" - */ - triggerText?: string; - - /** - * Obtain a reference to the trigger text HTML element - * @default null - */ - ref?: null | HTMLDivElement; - - /** - * Obtain a reference to the tooltip HTML element - * @default null - */ - refTooltip?: null | HTMLDivElement; - - /** - * Obtain a reference to the icon HTML element - * @default null - */ - refIcon?: null | HTMLDivElement; -} - -export default class Tooltip extends SvelteComponentTyped< - TooltipProps, - { - open: CustomEvent; - close: CustomEvent; - click: WindowEventMap["click"]; - mousedown: WindowEventMap["mousedown"]; - }, - { default: {}; icon: {}; triggerText: {} } -> {} diff --git a/types/Tooltip/TooltipFooter.svelte.d.ts b/types/Tooltip/TooltipFooter.svelte.d.ts deleted file mode 100644 index 2bfb3a65..00000000 --- a/types/Tooltip/TooltipFooter.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TooltipFooterProps { - /** - * Specify a selector to be focused inside the footer when opening the tooltip - * @default "a[href], button:not([disabled])" - */ - selectorPrimaryFocus?: string; -} - -export default class TooltipFooter extends SvelteComponentTyped< - TooltipFooterProps, - {}, - { default: {} } -> {} diff --git a/types/TooltipDefinition/TooltipDefinition.svelte.d.ts b/types/TooltipDefinition/TooltipDefinition.svelte.d.ts deleted file mode 100644 index a69b6628..00000000 --- a/types/TooltipDefinition/TooltipDefinition.svelte.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TooltipDefinitionProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the tooltip text - * @default "" - */ - tooltipText?: string; - - /** - * Set to `true` to open the tooltip - * @default false - */ - open?: boolean; - - /** - * Set the alignment of the tooltip relative to the icon - * @default "center" - */ - align?: "start" | "center" | "end"; - - /** - * Set the direction of the tooltip relative to the icon - * @default "bottom" - */ - direction?: "top" | "bottom"; - - /** - * Set an id for the tooltip div element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the button HTML element - * @default null - */ - ref?: null | HTMLButtonElement; -} - -export default class TooltipDefinition extends SvelteComponentTyped< - TooltipDefinitionProps, - { - open: CustomEvent; - close: CustomEvent; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - focus: WindowEventMap["focus"]; - }, - { default: {}; tooltip: {} } -> {} diff --git a/types/TooltipIcon/TooltipIcon.svelte.d.ts b/types/TooltipIcon/TooltipIcon.svelte.d.ts deleted file mode 100644 index c6ebd113..00000000 --- a/types/TooltipIcon/TooltipIcon.svelte.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TooltipIconProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the tooltip text. - * Alternatively, use the "tooltipText" slot - * @default "" - */ - tooltipText?: string; - - /** - * Specify the icon to render - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Set to `true` to disable the tooltip icon - * @default false - */ - disabled?: boolean; - - /** - * Set the alignment of the tooltip relative to the icon - * @default "center" - */ - align?: "start" | "center" | "end"; - - /** - * Set the direction of the tooltip relative to the icon - * @default "bottom" - */ - direction?: "top" | "right" | "bottom" | "left"; - - /** - * Set an id for the span element - * @default "ccs-" + Math.random().toString(36) - */ - id?: string; - - /** - * Obtain a reference to the button HTML element - * @default null - */ - ref?: null | HTMLButtonElement; -} - -export default class TooltipIcon extends SvelteComponentTyped< - TooltipIconProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - focus: WindowEventMap["focus"]; - }, - { default: {}; tooltipText: {} } -> {} diff --git a/types/TreeView/TreeView.svelte.d.ts b/types/TreeView/TreeView.svelte.d.ts deleted file mode 100644 index 395198b8..00000000 --- a/types/TreeView/TreeView.svelte.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export type TreeNodeId = string | number; - -export interface TreeNode { - id: TreeNodeId; - text: any; - icon?: typeof import("svelte").SvelteComponent; - disabled?: boolean; - children?: TreeNode[]; -} - -export interface TreeViewProps - extends svelte.JSX.HTMLAttributes { - /** - * Provide an array of children nodes to render - * @default [] - */ - children?: Array; - - /** - * Set the current active node id - * Only one node can be active - * @default "" - */ - activeId?: TreeNodeId; - - /** - * Set the node ids to be selected - * @default [] - */ - selectedIds?: ReadonlyArray; - - /** - * Set the node ids to be expanded - * @default [] - */ - expandedIds?: ReadonlyArray; - - /** - * Specify the TreeView size - * @default "default" - */ - size?: "default" | "compact"; - - /** - * Specify the label text - * @default "" - */ - labelText?: string; - - /** - * Set to `true` to visually hide the label text - * @default false - */ - hideLabel?: boolean; -} - -export default class TreeView extends SvelteComponentTyped< - TreeViewProps, - { - select: CustomEvent; - toggle: CustomEvent; - focus: CustomEvent; - keydown: WindowEventMap["keydown"]; - }, - { labelText: {} } -> { - /** - * Programmatically expand all nodes - */ - expandAll: () => void; - - /** - * Programmatically collapse all nodes - */ - collapseAll: () => void; - - /** - * Programmatically expand a subset of nodes. - * Expands all nodes if no argument is provided - */ - expandNodes: (filterId?: (node: TreeNode) => boolean) => void; - - /** - * Programmatically collapse a subset of nodes. - * Collapses all nodes if no argument is provided - */ - collapseNodes: (filterId?: (node: TreeNode) => boolean) => void; -} diff --git a/types/Truncate/Truncate.svelte.d.ts b/types/Truncate/Truncate.svelte.d.ts deleted file mode 100644 index 362fe7a1..00000000 --- a/types/Truncate/Truncate.svelte.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface TruncateProps - extends svelte.JSX.HTMLAttributes { - /** - * @default "end" - */ - clamp?: "end" | "front"; -} - -export default class Truncate extends SvelteComponentTyped< - TruncateProps, - {}, - { default: {} } -> {} diff --git a/types/Truncate/truncate.d.ts b/types/Truncate/truncate.d.ts deleted file mode 100644 index 35557fc0..00000000 --- a/types/Truncate/truncate.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -interface TruncateOptions { - clamp?: "end" | "front"; -} - -export function TruncateAction( - node: HTMLElement, - options?: TruncateOptions -): { - update: (options?: TruncateOptions) => void; -}; - -export default TruncateAction; diff --git a/types/UIShell/Content.svelte.d.ts b/types/UIShell/Content.svelte.d.ts deleted file mode 100644 index 75a2ab8f..00000000 --- a/types/UIShell/Content.svelte.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface ContentProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the id for the main element - * @default "main-content" - */ - id?: string; -} - -export default class Content extends SvelteComponentTyped< - ContentProps, - {}, - { default: {} } -> {} diff --git a/types/UIShell/Header.svelte.d.ts b/types/UIShell/Header.svelte.d.ts deleted file mode 100644 index a2cc9591..00000000 --- a/types/UIShell/Header.svelte.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `false` to hide the side nav by default - * @default true - */ - expandedByDefault?: boolean; - - /** - * Set to `true` to open the side nav - * @default false - */ - isSideNavOpen?: boolean; - - /** - * Specify the ARIA label for the header - * @default undefined - */ - uiShellAriaLabel?: string; - - /** - * Specify the `href` attribute - * @default undefined - */ - href?: string; - - /** - * Specify the company name - * @default undefined - */ - company?: string; - - /** - * Specify the platform name - * Alternatively, use the named slot "platform" (e.g., ...) - * @default "" - */ - platformName?: string; - - /** - * Set to `true` to persist the hamburger menu - * @default false - */ - persistentHamburgerMenu?: boolean; - - /** - * The window width (px) at which the SideNav is expanded and the hamburger menu is hidden - * 1056 represents the "large" breakpoint in pixels from the Carbon Design System: - * small: 320 - * medium: 672 - * large: 1056 - * x-large: 1312 - * max: 1584 - * @default 1056 - */ - expansionBreakpoint?: number; - - /** - * Obtain a reference to the HTML anchor element - * @default null - */ - ref?: null | HTMLAnchorElement; - - /** - * Specify the icon to render for the closed state. - * Defaults to `` - * @default undefined - */ - iconMenu?: typeof import("svelte").SvelteComponent; - - /** - * Specify the icon to render for the opened state. - * Defaults to `` - * @default undefined - */ - iconClose?: typeof import("svelte").SvelteComponent; -} - -export default class Header extends SvelteComponentTyped< - HeaderProps, - { click: WindowEventMap["click"] }, - { default: {}; platform: {}; ["skip-to-content"]: {} } -> {} diff --git a/types/UIShell/HeaderAction.svelte.d.ts b/types/UIShell/HeaderAction.svelte.d.ts deleted file mode 100644 index 7f3ab00b..00000000 --- a/types/UIShell/HeaderAction.svelte.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderActionProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to open the panel - * @default false - */ - isOpen?: boolean; - - /** - * Specify the icon to render when the action panel is closed. - * Defaults to `` - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Specify the icon to render when the action panel is open. - * Defaults to `` - * @default undefined - */ - closeIcon?: typeof import("svelte").SvelteComponent; - - /** - * Specify the text - * Alternatively, use the named slot "text" (e.g.,
...
) - * @default undefined - */ - text?: string; - - /** - * Obtain a reference to the button HTML element - * @default null - */ - ref?: null | HTMLButtonElement; - - /** - * Customize the panel transition (i.e., `transition:slide`). - * Set to `false` to disable the transition - * @default { duration: 200 } - */ - transition?: false | import("svelte/transition").SlideParams; -} - -export default class HeaderAction extends SvelteComponentTyped< - HeaderActionProps, - { - open: CustomEvent; - close: CustomEvent; - click: WindowEventMap["click"]; - }, - { default: {}; closeIcon: {}; icon: {}; text: {} } -> {} diff --git a/types/UIShell/HeaderActionLink.svelte.d.ts b/types/UIShell/HeaderActionLink.svelte.d.ts deleted file mode 100644 index 236eb92e..00000000 --- a/types/UIShell/HeaderActionLink.svelte.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderActionLinkProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to use the active state - * @default false - */ - linkIsActive?: boolean; - - /** - * Specify the `href` attribute - * @default undefined - */ - href?: string; - - /** - * Specify the icon to render - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Obtain a reference to the HTML anchor element - * @default null - */ - ref?: null | HTMLAnchorElement; -} - -export default class HeaderActionLink extends SvelteComponentTyped< - HeaderActionLinkProps, - {}, - { icon: {} } -> {} diff --git a/types/UIShell/HeaderGlobalAction.svelte.d.ts b/types/UIShell/HeaderGlobalAction.svelte.d.ts deleted file mode 100644 index d4b68d3c..00000000 --- a/types/UIShell/HeaderGlobalAction.svelte.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderGlobalActionProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to use the active variant - * @default false - */ - isActive?: boolean; - - /** - * Specify the icon to render - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Obtain a reference to the HTML button element - * @default null - */ - ref?: null | HTMLButtonElement; -} - -export default class HeaderGlobalAction extends SvelteComponentTyped< - HeaderGlobalActionProps, - { click: WindowEventMap["click"] }, - { default: {} } -> {} diff --git a/types/UIShell/HeaderNav.svelte.d.ts b/types/UIShell/HeaderNav.svelte.d.ts deleted file mode 100644 index 6a22ab19..00000000 --- a/types/UIShell/HeaderNav.svelte.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderNavProps - extends svelte.JSX.HTMLAttributes {} - -export default class HeaderNav extends SvelteComponentTyped< - HeaderNavProps, - {}, - { default: {} } -> {} diff --git a/types/UIShell/HeaderNavItem.svelte.d.ts b/types/UIShell/HeaderNavItem.svelte.d.ts deleted file mode 100644 index 927d99d7..00000000 --- a/types/UIShell/HeaderNavItem.svelte.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderNavItemProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the `href` attribute - * @default undefined - */ - href?: string; - - /** - * Specify the text - * @default undefined - */ - text?: string; - - /** - * Set to `true` to select the item - * @default false - */ - isSelected?: boolean; - - /** - * Obtain a reference to the HTML anchor element - * @default null - */ - ref?: null | HTMLAnchorElement; -} - -export default class HeaderNavItem extends SvelteComponentTyped< - HeaderNavItemProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keyup: WindowEventMap["keyup"]; - keydown: WindowEventMap["keydown"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - }, - {} -> {} diff --git a/types/UIShell/HeaderNavMenu.svelte.d.ts b/types/UIShell/HeaderNavMenu.svelte.d.ts deleted file mode 100644 index fc4ec047..00000000 --- a/types/UIShell/HeaderNavMenu.svelte.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderNavMenuProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to toggle the expanded state - * @default false - */ - expanded?: boolean; - - /** - * Specify the `href` attribute - * @default "/" - */ - href?: string; - - /** - * Specify the text - * @default undefined - */ - text?: string; - - /** - * Obtain a reference to the HTML anchor element - * @default null - */ - ref?: null | HTMLAnchorElement; -} - -export default class HeaderNavMenu extends SvelteComponentTyped< - HeaderNavMenuProps, - { - keydown: WindowEventMap["keydown"]; - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - keyup: WindowEventMap["keyup"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - }, - { default: {} } -> {} diff --git a/types/UIShell/HeaderPanelDivider.svelte.d.ts b/types/UIShell/HeaderPanelDivider.svelte.d.ts deleted file mode 100644 index b0e7f991..00000000 --- a/types/UIShell/HeaderPanelDivider.svelte.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderPanelDividerProps {} - -export default class HeaderPanelDivider extends SvelteComponentTyped< - HeaderPanelDividerProps, - {}, - { default: {} } -> {} diff --git a/types/UIShell/HeaderPanelLink.svelte.d.ts b/types/UIShell/HeaderPanelLink.svelte.d.ts deleted file mode 100644 index 39f6f41a..00000000 --- a/types/UIShell/HeaderPanelLink.svelte.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderPanelLinkProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the `href` attribute - * @default undefined - */ - href?: string; - - /** - * Obtain a reference to the HTML anchor element - * @default null - */ - ref?: null | HTMLAnchorElement; -} - -export default class HeaderPanelLink extends SvelteComponentTyped< - HeaderPanelLinkProps, - { click: WindowEventMap["click"] }, - { default: {} } -> {} diff --git a/types/UIShell/HeaderPanelLinks.svelte.d.ts b/types/UIShell/HeaderPanelLinks.svelte.d.ts deleted file mode 100644 index c9aa3d47..00000000 --- a/types/UIShell/HeaderPanelLinks.svelte.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderPanelLinksProps {} - -export default class HeaderPanelLinks extends SvelteComponentTyped< - HeaderPanelLinksProps, - {}, - { default: {} } -> {} diff --git a/types/UIShell/HeaderSearch.svelte.d.ts b/types/UIShell/HeaderSearch.svelte.d.ts deleted file mode 100644 index 65dac599..00000000 --- a/types/UIShell/HeaderSearch.svelte.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderSearchResult { - href: string; - text: string; - description?: string; -} - -export interface HeaderSearchProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the search input value - * @default "" - */ - value?: string; - - /** - * Set to `true` to activate and focus the search bar - * @default false - */ - active?: boolean; - - /** - * Obtain a reference to the input HTML element - * @default null - */ - ref?: null | HTMLInputElement; - - /** - * Render a list of search results - * @default [] - */ - results?: ReadonlyArray; - - /** - * Specify the selected result index - * @default 0 - */ - selectedResultIndex?: number; -} - -export default class HeaderSearch extends SvelteComponentTyped< - HeaderSearchProps, - { - active: CustomEvent; - inactive: CustomEvent; - clear: CustomEvent; - select: CustomEvent<{ - value: string; - selectedResultIndex: number; - selectedResult: HeaderSearchResult; - }>; - change: WindowEventMap["change"]; - input: WindowEventMap["input"]; - focus: WindowEventMap["focus"]; - blur: WindowEventMap["blur"]; - keydown: WindowEventMap["keydown"]; - paste: DocumentAndElementEventHandlersEventMap["paste"]; - }, - { default: { result: HeaderSearchResult; index: number } } -> {} diff --git a/types/UIShell/HeaderUtilities.svelte.d.ts b/types/UIShell/HeaderUtilities.svelte.d.ts deleted file mode 100644 index ba64e170..00000000 --- a/types/UIShell/HeaderUtilities.svelte.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface HeaderUtilitiesProps {} - -export default class HeaderUtilities extends SvelteComponentTyped< - HeaderUtilitiesProps, - {}, - { default: {} } -> {} diff --git a/types/UIShell/SideNav.svelte.d.ts b/types/UIShell/SideNav.svelte.d.ts deleted file mode 100644 index 6b5c2174..00000000 --- a/types/UIShell/SideNav.svelte.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SideNavProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to use the fixed variant - * @default false - */ - fixed?: boolean; - - /** - * Set to `true` to use the rail variant - * @default false - */ - rail?: boolean; - - /** - * Specify the ARIA label for the nav - * @default undefined - */ - ariaLabel?: string; - - /** - * Set to `true` to toggle the expanded state - * @default false - */ - isOpen?: boolean; - - /** - * The window width (px) at which the SideNav is expanded and the hamburger menu is hidden - * 1056 represents the "large" breakpoint in pixels from the Carbon Design System: - * small: 320 - * medium: 672 - * large: 1056 - * x-large: 1312 - * max: 1584 - * @default 1056 - */ - expansionBreakpoint?: number; -} - -export default class SideNav extends SvelteComponentTyped< - SideNavProps, - { - open: CustomEvent; - close: CustomEvent; - ["click:overlay"]: CustomEvent; - }, - { default: {} } -> {} diff --git a/types/UIShell/SideNavDivider.svelte.d.ts b/types/UIShell/SideNavDivider.svelte.d.ts deleted file mode 100644 index cf04a6ab..00000000 --- a/types/UIShell/SideNavDivider.svelte.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SideNavDividerProps - extends svelte.JSX.HTMLAttributes {} - -export default class SideNavDivider extends SvelteComponentTyped< - SideNavDividerProps, - {}, - {} -> {} diff --git a/types/UIShell/SideNavItems.svelte.d.ts b/types/UIShell/SideNavItems.svelte.d.ts deleted file mode 100644 index 91300c3a..00000000 --- a/types/UIShell/SideNavItems.svelte.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SideNavItemsProps {} - -export default class SideNavItems extends SvelteComponentTyped< - SideNavItemsProps, - {}, - { default: {} } -> {} diff --git a/types/UIShell/SideNavLink.svelte.d.ts b/types/UIShell/SideNavLink.svelte.d.ts deleted file mode 100644 index d67e2986..00000000 --- a/types/UIShell/SideNavLink.svelte.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SideNavLinkProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to select the current link - * @default false - */ - isSelected?: boolean; - - /** - * Specify the `href` attribute - * @default undefined - */ - href?: string; - - /** - * Specify the text - * @default undefined - */ - text?: string; - - /** - * Specify the icon to render - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Obtain a reference to the HTML anchor element - * @default null - */ - ref?: null | HTMLAnchorElement; -} - -export default class SideNavLink extends SvelteComponentTyped< - SideNavLinkProps, - { click: WindowEventMap["click"] }, - { default: {}; icon: {} } -> {} diff --git a/types/UIShell/SideNavMenu.svelte.d.ts b/types/UIShell/SideNavMenu.svelte.d.ts deleted file mode 100644 index d56c1812..00000000 --- a/types/UIShell/SideNavMenu.svelte.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SideNavMenuProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to toggle the expanded state - * @default false - */ - expanded?: boolean; - - /** - * Specify the text - * @default undefined - */ - text?: string; - - /** - * Specify the icon to render - * @default undefined - */ - icon?: typeof import("svelte").SvelteComponent; - - /** - * Obtain a reference to the HTML button element - * @default null - */ - ref?: null | HTMLButtonElement; -} - -export default class SideNavMenu extends SvelteComponentTyped< - SideNavMenuProps, - { click: WindowEventMap["click"] }, - { default: {}; icon: {} } -> {} diff --git a/types/UIShell/SideNavMenuItem.svelte.d.ts b/types/UIShell/SideNavMenuItem.svelte.d.ts deleted file mode 100644 index b68e8901..00000000 --- a/types/UIShell/SideNavMenuItem.svelte.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SideNavMenuItemProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to select the item - * @default false - */ - isSelected?: boolean; - - /** - * Specify the `href` attribute - * @default undefined - */ - href?: string; - - /** - * Specify the item text - * @default undefined - */ - text?: string; - - /** - * Obtain a reference to the HTML anchor element - * @default null - */ - ref?: null | HTMLAnchorElement; -} - -export default class SideNavMenuItem extends SvelteComponentTyped< - SideNavMenuItemProps, - { click: WindowEventMap["click"] }, - { default: {} } -> {} diff --git a/types/UIShell/SkipToContent.svelte.d.ts b/types/UIShell/SkipToContent.svelte.d.ts deleted file mode 100644 index d47a60c6..00000000 --- a/types/UIShell/SkipToContent.svelte.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface SkipToContentProps - extends svelte.JSX.HTMLAttributes { - /** - * Specify the `href` attribute - * @default "#main-content" - */ - href?: string; - - /** - * Specify the tabindex - * @default "0" - */ - tabindex?: string; -} - -export default class SkipToContent extends SvelteComponentTyped< - SkipToContentProps, - { click: WindowEventMap["click"] }, - { default: {} } -> {} diff --git a/types/UnorderedList/UnorderedList.svelte.d.ts b/types/UnorderedList/UnorderedList.svelte.d.ts deleted file mode 100644 index 98dc6808..00000000 --- a/types/UnorderedList/UnorderedList.svelte.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import type { SvelteComponentTyped } from "svelte"; - -export interface UnorderedListProps - extends svelte.JSX.HTMLAttributes { - /** - * Set to `true` to use the nested variant - * @default false - */ - nested?: boolean; - - /** - * Set to `true` to use Carbon's expressive typesetting - * @default false - */ - expressive?: boolean; -} - -export default class UnorderedList extends SvelteComponentTyped< - UnorderedListProps, - { - click: WindowEventMap["click"]; - mouseover: WindowEventMap["mouseover"]; - mouseenter: WindowEventMap["mouseenter"]; - mouseleave: WindowEventMap["mouseleave"]; - }, - { default: {} } -> {} diff --git a/types/icons/Search.svelte.d.ts b/types/icons/Search.svelte.d.ts deleted file mode 100644 index 7668bdaa..00000000 --- a/types/icons/Search.svelte.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import { SvelteComponentTyped } from "svelte"; - -export interface SearchProps - extends svelte.JSX.HTMLAttributes { - /** - * @default 16 - */ - size?: number; - - /** - * @default undefined - */ - title?: undefined; -} - -export default class Search extends SvelteComponentTyped {} diff --git a/types/index.d.ts b/types/index.d.ts deleted file mode 100644 index 1174ce26..00000000 --- a/types/index.d.ts +++ /dev/null @@ -1,168 +0,0 @@ -export { default as Accordion } from "./Accordion/Accordion.svelte"; -export { default as AccordionItem } from "./Accordion/AccordionItem.svelte"; -export { default as AccordionSkeleton } from "./Accordion/AccordionSkeleton.svelte"; -export { default as AspectRatio } from "./AspectRatio/AspectRatio.svelte"; -export { default as Breadcrumb } from "./Breadcrumb/Breadcrumb.svelte"; -export { default as BreadcrumbItem } from "./Breadcrumb/BreadcrumbItem.svelte"; -export { default as BreadcrumbSkeleton } from "./Breadcrumb/BreadcrumbSkeleton.svelte"; -export { default as Breakpoint } from "./Breakpoint/Breakpoint.svelte"; -export { default as breakpointObserver } from "./Breakpoint/breakpointObserver"; -export { default as breakpoints } from "./Breakpoint/breakpoints"; -export { default as Button } from "./Button/Button.svelte"; -export { default as ButtonSkeleton } from "./Button/ButtonSkeleton.svelte"; -export { default as ButtonSet } from "./Button/ButtonSet.svelte"; -export { default as Checkbox } from "./Checkbox/Checkbox.svelte"; -export { default as CheckboxSkeleton } from "./Checkbox/CheckboxSkeleton.svelte"; -export { default as ContentSwitcher } from "./ContentSwitcher/ContentSwitcher.svelte"; -export { default as Switch } from "./ContentSwitcher/Switch.svelte"; -export { default as ContextMenu } from "./ContextMenu/ContextMenu.svelte"; -export { default as ContextMenuDivider } from "./ContextMenu/ContextMenuDivider.svelte"; -export { default as ContextMenuGroup } from "./ContextMenu/ContextMenuGroup.svelte"; -export { default as ContextMenuOption } from "./ContextMenu/ContextMenuOption.svelte"; -export { default as ContextMenuRadioGroup } from "./ContextMenu/ContextMenuRadioGroup.svelte"; -export { default as CopyButton } from "./CopyButton/CopyButton.svelte"; -export { default as ComboBox } from "./ComboBox/ComboBox.svelte"; -export { default as ComposedModal } from "./ComposedModal/ComposedModal.svelte"; -export { default as ModalHeader } from "./ComposedModal/ModalHeader.svelte"; -export { default as ModalBody } from "./ComposedModal/ModalBody.svelte"; -export { default as ModalFooter } from "./ComposedModal/ModalFooter.svelte"; -export { default as CodeSnippet } from "./CodeSnippet/CodeSnippet.svelte"; -export { default as CodeSnippetSkeleton } from "./CodeSnippet/CodeSnippetSkeleton.svelte"; -export { default as DataTable } from "./DataTable/DataTable.svelte"; -export { default as DataTableSkeleton } from "./DataTable/DataTableSkeleton.svelte"; -export { default as Table } from "./DataTable/Table.svelte"; -export { default as TableBody } from "./DataTable/TableBody.svelte"; -export { default as TableCell } from "./DataTable/TableCell.svelte"; -export { default as TableContainer } from "./DataTable/TableContainer.svelte"; -export { default as TableHead } from "./DataTable/TableHead.svelte"; -export { default as TableHeader } from "./DataTable/TableHeader.svelte"; -export { default as TableRow } from "./DataTable/TableRow.svelte"; -export { default as Toolbar } from "./DataTable/Toolbar.svelte"; -export { default as ToolbarContent } from "./DataTable/ToolbarContent.svelte"; -export { default as ToolbarSearch } from "./DataTable/ToolbarSearch.svelte"; -export { default as ToolbarBatchActions } from "./DataTable/ToolbarBatchActions.svelte"; -export { default as ToolbarMenu } from "./DataTable/ToolbarMenu.svelte"; -export { default as ToolbarMenuItem } from "./DataTable/ToolbarMenuItem.svelte"; -export { default as DatePicker } from "./DatePicker/DatePicker.svelte"; -export { default as DatePickerInput } from "./DatePicker/DatePickerInput.svelte"; -export { default as DatePickerSkeleton } from "./DatePicker/DatePickerSkeleton.svelte"; -export { default as Dropdown } from "./Dropdown/Dropdown.svelte"; -export { default as DropdownSkeleton } from "./Dropdown/DropdownSkeleton.svelte"; -export { default as FileUploader } from "./FileUploader/FileUploader.svelte"; -export { default as FileUploaderButton } from "./FileUploader/FileUploaderButton.svelte"; -export { default as FileUploaderItem } from "./FileUploader/FileUploaderItem.svelte"; -export { default as FileUploaderDropContainer } from "./FileUploader/FileUploaderDropContainer.svelte"; -export { default as Filename } from "./FileUploader/Filename.svelte"; -export { default as FileUploaderSkeleton } from "./FileUploader/FileUploaderSkeleton.svelte"; -export { default as Form } from "./Form/Form.svelte"; -export { default as FluidForm } from "./FluidForm/FluidForm.svelte"; -export { default as FormGroup } from "./FormGroup/FormGroup.svelte"; -export { default as FormItem } from "./FormItem/FormItem.svelte"; -export { default as FormLabel } from "./FormLabel/FormLabel.svelte"; -export { default as Grid } from "./Grid/Grid.svelte"; -export { default as Row } from "./Grid/Row.svelte"; -export { default as Column } from "./Grid/Column.svelte"; -export { default as ImageLoader } from "./ImageLoader/ImageLoader.svelte"; -export { default as InlineLoading } from "./InlineLoading/InlineLoading.svelte"; -export { default as Link } from "./Link/Link.svelte"; -export { default as OutboundLink } from "./Link/OutboundLink.svelte"; -export { default as ListBox } from "./ListBox/ListBox.svelte"; -export { default as ListBoxField } from "./ListBox/ListBoxField.svelte"; -export { default as ListBoxMenu } from "./ListBox/ListBoxMenu.svelte"; -export { default as ListBoxMenuIcon } from "./ListBox/ListBoxMenuIcon.svelte"; -export { default as ListBoxMenuItem } from "./ListBox/ListBoxMenuItem.svelte"; -export { default as ListBoxSelection } from "./ListBox/ListBoxSelection.svelte"; -export { default as ListItem } from "./ListItem/ListItem.svelte"; -export { default as Loading } from "./Loading/Loading.svelte"; -export { default as LocalStorage } from "./LocalStorage/LocalStorage.svelte"; -export { default as MultiSelect } from "./MultiSelect/MultiSelect.svelte"; -export { default as Modal } from "./Modal/Modal.svelte"; -export { default as ToastNotification } from "./Notification/ToastNotification.svelte"; -export { default as InlineNotification } from "./Notification/InlineNotification.svelte"; -export { default as NotificationActionButton } from "./Notification/NotificationActionButton.svelte"; -export { default as NotificationButton } from "./Notification/NotificationButton.svelte"; -export { default as NotificationIcon } from "./Notification/NotificationIcon.svelte"; -export { default as NumberInput } from "./NumberInput/NumberInput.svelte"; -export { default as NumberInputSkeleton } from "./NumberInput/NumberInputSkeleton.svelte"; -export { default as OrderedList } from "./OrderedList/OrderedList.svelte"; -export { default as OverflowMenu } from "./OverflowMenu/OverflowMenu.svelte"; -export { default as OverflowMenuItem } from "./OverflowMenu/OverflowMenuItem.svelte"; -export { default as Pagination } from "./Pagination/Pagination.svelte"; -export { default as PaginationSkeleton } from "./Pagination/PaginationSkeleton.svelte"; -export { default as PaginationNav } from "./PaginationNav/PaginationNav.svelte"; -export { default as Popover } from "./Popover/Popover.svelte"; -export { default as ProgressBar } from "./ProgressBar/ProgressBar.svelte"; -export { default as ProgressIndicator } from "./ProgressIndicator/ProgressIndicator.svelte"; -export { default as ProgressIndicatorSkeleton } from "./ProgressIndicator/ProgressIndicatorSkeleton.svelte"; -export { default as ProgressStep } from "./ProgressIndicator/ProgressStep.svelte"; -export { default as RadioButton } from "./RadioButton/RadioButton.svelte"; -export { default as RadioButtonSkeleton } from "./RadioButton/RadioButtonSkeleton.svelte"; -export { default as RadioButtonGroup } from "./RadioButtonGroup/RadioButtonGroup.svelte"; -export { default as RecursiveList } from "./RecursiveList/RecursiveList.svelte"; -export { default as Search } from "./Search/Search.svelte"; -export { default as SearchSkeleton } from "./Search/SearchSkeleton.svelte"; -export { default as Select } from "./Select/Select.svelte"; -export { default as SelectSkeleton } from "./Select/SelectSkeleton.svelte"; -export { default as SelectItem } from "./Select/SelectItem.svelte"; -export { default as SelectItemGroup } from "./Select/SelectItemGroup.svelte"; -export { default as SkeletonPlaceholder } from "./SkeletonPlaceholder/SkeletonPlaceholder.svelte"; -export { default as SkeletonText } from "./SkeletonText/SkeletonText.svelte"; -export { default as Slider } from "./Slider/Slider.svelte"; -export { default as SliderSkeleton } from "./Slider/SliderSkeleton.svelte"; -export { default as StructuredList } from "./StructuredList/StructuredList.svelte"; -export { default as StructuredListSkeleton } from "./StructuredList/StructuredListSkeleton.svelte"; -export { default as StructuredListBody } from "./StructuredList/StructuredListBody.svelte"; -export { default as StructuredListHead } from "./StructuredList/StructuredListHead.svelte"; -export { default as StructuredListCell } from "./StructuredList/StructuredListCell.svelte"; -export { default as StructuredListRow } from "./StructuredList/StructuredListRow.svelte"; -export { default as StructuredListInput } from "./StructuredList/StructuredListInput.svelte"; -export { default as Tabs } from "./Tabs/Tabs.svelte"; -export { default as Tab } from "./Tabs/Tab.svelte"; -export { default as TabContent } from "./Tabs/TabContent.svelte"; -export { default as TabsSkeleton } from "./Tabs/TabsSkeleton.svelte"; -export { default as Tag } from "./Tag/Tag.svelte"; -export { default as TagSkeleton } from "./Tag/TagSkeleton.svelte"; -export { default as TextArea } from "./TextArea/TextArea.svelte"; -export { default as TextAreaSkeleton } from "./TextArea/TextAreaSkeleton.svelte"; -export { default as TextInput } from "./TextInput/TextInput.svelte"; -export { default as TextInputSkeleton } from "./TextInput/TextInputSkeleton.svelte"; -export { default as PasswordInput } from "./TextInput/PasswordInput.svelte"; -export { default as Theme } from "./Theme/Theme.svelte"; -export { default as Tile } from "./Tile/Tile.svelte"; -export { default as ClickableTile } from "./Tile/ClickableTile.svelte"; -export { default as ExpandableTile } from "./Tile/ExpandableTile.svelte"; -export { default as SelectableTile } from "./Tile/SelectableTile.svelte"; -export { default as RadioTile } from "./Tile/RadioTile.svelte"; -export { default as TileGroup } from "./Tile/TileGroup.svelte"; -export { default as TimePicker } from "./TimePicker/TimePicker.svelte"; -export { default as TimePickerSelect } from "./TimePicker/TimePickerSelect.svelte"; -export { default as Toggle } from "./Toggle/Toggle.svelte"; -export { default as ToggleSkeleton } from "./Toggle/ToggleSkeleton.svelte"; -export { default as Tooltip } from "./Tooltip/Tooltip.svelte"; -export { default as TooltipFooter } from "./Tooltip/TooltipFooter.svelte"; -export { default as TooltipDefinition } from "./TooltipDefinition/TooltipDefinition.svelte"; -export { default as TooltipIcon } from "./TooltipIcon/TooltipIcon.svelte"; -export { default as TreeView } from "./TreeView/TreeView.svelte"; -export { default as Truncate } from "./Truncate/Truncate.svelte"; -export { default as truncate } from "./Truncate/truncate"; -export { default as Header } from "./UIShell/Header.svelte"; -export { default as HeaderAction } from "./UIShell/HeaderAction.svelte"; -export { default as HeaderActionLink } from "./UIShell/HeaderActionLink.svelte"; -export { default as HeaderNav } from "./UIShell/HeaderNav.svelte"; -export { default as HeaderNavItem } from "./UIShell/HeaderNavItem.svelte"; -export { default as HeaderNavMenu } from "./UIShell/HeaderNavMenu.svelte"; -export { default as HeaderPanelDivider } from "./UIShell/HeaderPanelDivider.svelte"; -export { default as HeaderPanelLink } from "./UIShell/HeaderPanelLink.svelte"; -export { default as HeaderPanelLinks } from "./UIShell/HeaderPanelLinks.svelte"; -export { default as HeaderUtilities } from "./UIShell/HeaderUtilities.svelte"; -export { default as SideNav } from "./UIShell/SideNav.svelte"; -export { default as SideNavItems } from "./UIShell/SideNavItems.svelte"; -export { default as SideNavLink } from "./UIShell/SideNavLink.svelte"; -export { default as SideNavMenu } from "./UIShell/SideNavMenu.svelte"; -export { default as SideNavMenuItem } from "./UIShell/SideNavMenuItem.svelte"; -export { default as SideNavDivider } from "./UIShell/SideNavDivider.svelte"; -export { default as Content } from "./UIShell/Content.svelte"; -export { default as SkipToContent } from "./UIShell/SkipToContent.svelte"; -export { default as HeaderGlobalAction } from "./UIShell/HeaderGlobalAction.svelte"; -export { default as HeaderSearch } from "./UIShell/HeaderSearch.svelte"; -export { default as UnorderedList } from "./UnorderedList/UnorderedList.svelte";