Run "yarn build:docs"

This commit is contained in:
Eric Liu 2022-06-01 19:09:56 -07:00
commit b8aab465bb
6 changed files with 31 additions and 6 deletions

View file

@ -646,6 +646,7 @@ export type ComboBoxItemId = any;
export interface ComboBoxItem { export interface ComboBoxItem {
id: ComboBoxItemId; id: ComboBoxItemId;
text: string; text: string;
disabled?: boolean;
} }
``` ```
@ -1140,6 +1141,7 @@ export type DropdownItemText = string;
export interface DropdownItem { export interface DropdownItem {
id: DropdownItemId; id: DropdownItemId;
text: DropdownItemText; text: DropdownItemText;
disabled?: boolean;
} }
``` ```
@ -2086,6 +2088,7 @@ None.
| :---------- | :------- | :--------------- | :------- | -------------------- | ------------------ | --------------------------------------------- | | :---------- | :------- | :--------------- | :------- | -------------------- | ------------------ | --------------------------------------------- |
| active | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the active state | | active | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the active state |
| highlighted | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the highlighted state | | highlighted | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the highlighted state |
| disabled | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to disable the menu item |
### Slots ### Slots
@ -2328,6 +2331,7 @@ export type MultiSelectItemText = string;
export interface MultiSelectItem { export interface MultiSelectItem {
id: MultiSelectItemId; id: MultiSelectItemId;
text: MultiSelectItemText; text: MultiSelectItemText;
disabled?: boolean;
} }
``` ```

View file

@ -1769,9 +1769,9 @@
"ts": "type ComboBoxItemId = any" "ts": "type ComboBoxItemId = any"
}, },
{ {
"type": "{ id: ComboBoxItemId; text: string; }", "type": "{ id: ComboBoxItemId; text: string; disabled?: boolean; }",
"name": "ComboBoxItem", "name": "ComboBoxItem",
"ts": "interface ComboBoxItem { id: ComboBoxItemId; text: string; }" "ts": "interface ComboBoxItem { id: ComboBoxItemId; text: string; disabled?: boolean; }"
} }
], ],
"rest_props": { "type": "Element", "name": "input" } "rest_props": { "type": "Element", "name": "input" }
@ -3505,9 +3505,9 @@
"ts": "type DropdownItemText = string" "ts": "type DropdownItemText = string"
}, },
{ {
"type": "{ id: DropdownItemId; text: DropdownItemText; }", "type": "{ id: DropdownItemId; text: DropdownItemText; disabled?: boolean; }",
"name": "DropdownItem", "name": "DropdownItem",
"ts": "interface DropdownItem { id: DropdownItemId; text: DropdownItemText; }" "ts": "interface DropdownItem { id: DropdownItemId; text: DropdownItemText; disabled?: boolean; }"
} }
], ],
"rest_props": { "type": "Element", "name": "div" } "rest_props": { "type": "Element", "name": "div" }
@ -6075,6 +6075,18 @@
"isRequired": false, "isRequired": false,
"constant": false, "constant": false,
"reactive": 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": [], "moduleExports": [],
@ -7308,9 +7320,9 @@
"ts": "type MultiSelectItemText = string" "ts": "type MultiSelectItemText = string"
}, },
{ {
"type": "{ id: MultiSelectItemId; text: MultiSelectItemText; }", "type": "{ id: MultiSelectItemId; text: MultiSelectItemText; disabled?: boolean; }",
"name": "MultiSelectItem", "name": "MultiSelectItem",
"ts": "interface MultiSelectItem { id: MultiSelectItemId; text: MultiSelectItemText; }" "ts": "interface MultiSelectItem { id: MultiSelectItemId; text: MultiSelectItemText; disabled?: boolean; }"
} }
], ],
"rest_props": { "type": "Element", "name": "input" } "rest_props": { "type": "Element", "name": "input" }

View file

@ -6,6 +6,7 @@ export type ComboBoxItemId = any;
export interface ComboBoxItem { export interface ComboBoxItem {
id: ComboBoxItemId; id: ComboBoxItemId;
text: string; text: string;
disabled?: boolean;
} }
export interface ComboBoxProps export interface ComboBoxProps

View file

@ -8,6 +8,7 @@ export type DropdownItemText = string;
export interface DropdownItem { export interface DropdownItem {
id: DropdownItemId; id: DropdownItemId;
text: DropdownItemText; text: DropdownItemText;
disabled?: boolean;
} }
export interface DropdownProps export interface DropdownProps

View file

@ -14,6 +14,12 @@ export interface ListBoxMenuItemProps
* @default false * @default false
*/ */
highlighted?: boolean; highlighted?: boolean;
/**
* Set to `true` to disable the menu item
* @default false
*/
disabled?: boolean;
} }
export default class ListBoxMenuItem extends SvelteComponentTyped< export default class ListBoxMenuItem extends SvelteComponentTyped<

View file

@ -8,6 +8,7 @@ export type MultiSelectItemText = string;
export interface MultiSelectItem { export interface MultiSelectItem {
id: MultiSelectItemId; id: MultiSelectItemId;
text: MultiSelectItemText; text: MultiSelectItemText;
disabled?: boolean;
} }
export interface MultiSelectProps export interface MultiSelectProps