From b8aab465bb6fc30b47656aeba486d312eea57837 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Wed, 1 Jun 2022 19:09:56 -0700 Subject: [PATCH] Run "yarn build:docs" --- COMPONENT_INDEX.md | 4 ++++ docs/src/COMPONENT_API.json | 24 +++++++++++++++++------ types/ComboBox/ComboBox.svelte.d.ts | 1 + types/Dropdown/Dropdown.svelte.d.ts | 1 + types/ListBox/ListBoxMenuItem.svelte.d.ts | 6 ++++++ types/MultiSelect/MultiSelect.svelte.d.ts | 1 + 6 files changed, 31 insertions(+), 6 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 7a210268..5f06414a 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -646,6 +646,7 @@ export type ComboBoxItemId = any; export interface ComboBoxItem { id: ComboBoxItemId; text: string; + disabled?: boolean; } ``` @@ -1140,6 +1141,7 @@ export type DropdownItemText = string; export interface DropdownItem { id: DropdownItemId; text: DropdownItemText; + disabled?: boolean; } ``` @@ -2086,6 +2088,7 @@ None. | :---------- | :------- | :--------------- | :------- | -------------------- | ------------------ | --------------------------------------------- | | active | No | let | No | boolean | false | Set to `true` to enable the active state | | highlighted | No | let | No | boolean | false | Set to `true` to enable the highlighted state | +| disabled | No | let | No | boolean | false | Set to `true` to disable the menu item | ### Slots @@ -2328,6 +2331,7 @@ export type MultiSelectItemText = string; export interface MultiSelectItem { id: MultiSelectItemId; text: MultiSelectItemText; + disabled?: boolean; } ``` diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index b06a2faa..d72bb779 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -1769,9 +1769,9 @@ "ts": "type ComboBoxItemId = any" }, { - "type": "{ id: ComboBoxItemId; text: string; }", + "type": "{ id: ComboBoxItemId; text: string; disabled?: boolean; }", "name": "ComboBoxItem", - "ts": "interface ComboBoxItem { id: ComboBoxItemId; text: string; }" + "ts": "interface ComboBoxItem { id: ComboBoxItemId; text: string; disabled?: boolean; }" } ], "rest_props": { "type": "Element", "name": "input" } @@ -3505,9 +3505,9 @@ "ts": "type DropdownItemText = string" }, { - "type": "{ id: DropdownItemId; text: DropdownItemText; }", + "type": "{ id: DropdownItemId; text: DropdownItemText; disabled?: boolean; }", "name": "DropdownItem", - "ts": "interface DropdownItem { id: DropdownItemId; text: DropdownItemText; }" + "ts": "interface DropdownItem { id: DropdownItemId; text: DropdownItemText; disabled?: boolean; }" } ], "rest_props": { "type": "Element", "name": "div" } @@ -6075,6 +6075,18 @@ "isRequired": false, "constant": false, "reactive": false + }, + { + "name": "disabled", + "kind": "let", + "description": "Set to `true` to disable the menu item", + "type": "boolean", + "value": "false", + "isFunction": false, + "isFunctionDeclaration": false, + "isRequired": false, + "constant": false, + "reactive": false } ], "moduleExports": [], @@ -7308,9 +7320,9 @@ "ts": "type MultiSelectItemText = string" }, { - "type": "{ id: MultiSelectItemId; text: MultiSelectItemText; }", + "type": "{ id: MultiSelectItemId; text: MultiSelectItemText; disabled?: boolean; }", "name": "MultiSelectItem", - "ts": "interface MultiSelectItem { id: MultiSelectItemId; text: MultiSelectItemText; }" + "ts": "interface MultiSelectItem { id: MultiSelectItemId; text: MultiSelectItemText; disabled?: boolean; }" } ], "rest_props": { "type": "Element", "name": "input" } diff --git a/types/ComboBox/ComboBox.svelte.d.ts b/types/ComboBox/ComboBox.svelte.d.ts index 2dc3163a..434e5234 100644 --- a/types/ComboBox/ComboBox.svelte.d.ts +++ b/types/ComboBox/ComboBox.svelte.d.ts @@ -6,6 +6,7 @@ export type ComboBoxItemId = any; export interface ComboBoxItem { id: ComboBoxItemId; text: string; + disabled?: boolean; } export interface ComboBoxProps diff --git a/types/Dropdown/Dropdown.svelte.d.ts b/types/Dropdown/Dropdown.svelte.d.ts index 9582a073..3e5a90a1 100644 --- a/types/Dropdown/Dropdown.svelte.d.ts +++ b/types/Dropdown/Dropdown.svelte.d.ts @@ -8,6 +8,7 @@ export type DropdownItemText = string; export interface DropdownItem { id: DropdownItemId; text: DropdownItemText; + disabled?: boolean; } export interface DropdownProps diff --git a/types/ListBox/ListBoxMenuItem.svelte.d.ts b/types/ListBox/ListBoxMenuItem.svelte.d.ts index 4b0e31b3..571a1468 100644 --- a/types/ListBox/ListBoxMenuItem.svelte.d.ts +++ b/types/ListBox/ListBoxMenuItem.svelte.d.ts @@ -14,6 +14,12 @@ export interface ListBoxMenuItemProps * @default false */ highlighted?: boolean; + + /** + * Set to `true` to disable the menu item + * @default false + */ + disabled?: boolean; } export default class ListBoxMenuItem extends SvelteComponentTyped< diff --git a/types/MultiSelect/MultiSelect.svelte.d.ts b/types/MultiSelect/MultiSelect.svelte.d.ts index b56e330e..1a9dd80a 100644 --- a/types/MultiSelect/MultiSelect.svelte.d.ts +++ b/types/MultiSelect/MultiSelect.svelte.d.ts @@ -8,6 +8,7 @@ export type MultiSelectItemText = string; export interface MultiSelectItem { id: MultiSelectItemId; text: MultiSelectItemText; + disabled?: boolean; } export interface MultiSelectProps