mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
Align v10.36 (#696)
* chore(deps-dev): upgrade carbon-components to v10.36.0 * feat(structured-list): add condensed, flush props * fix(structured-list): deprecate the border prop * fix(code-snippet): set min/max height for multi-line code snippet #656 Fixes #656 * fix(image-loader): make SSR compatible using a window type check guard * docs(tag): add separate disabled example for filterable/interactive tags * docs: update number of supported chart types * feat(side-nav): support rail variant * feat(ui-shell): add isSelected prop to HeaderNavItem * fix(ui-shell): default isSelected to false in SideNavMenuItem * fix(text-area): forward missing keydown event #665 Fixes #665 * feat: forward keyup event to components with inputs * feat(checkbox): make labelText slottable #563 Closes #563 * feat: make labelText slottable Related #563 * docs(component-api): account for undefined type * docs(ui-shell): link to correct rail source * fix(ui-shell): default isSelected in HeaderNavItem to false
This commit is contained in:
parent
099fb84767
commit
8ddf2def8b
57 changed files with 574 additions and 105 deletions
2
types/Checkbox/Checkbox.d.ts
vendored
2
types/Checkbox/Checkbox.d.ts
vendored
|
@ -78,5 +78,5 @@ export default class Checkbox extends SvelteComponentTyped<
|
|||
mouseleave: WindowEventMap["mouseleave"];
|
||||
change: WindowEventMap["change"];
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
1
types/ComboBox/ComboBox.d.ts
vendored
1
types/ComboBox/ComboBox.d.ts
vendored
|
@ -147,6 +147,7 @@ export default class ComboBox extends SvelteComponentTyped<
|
|||
selectedItem: ComboBoxItem;
|
||||
}>;
|
||||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
clear: WindowEventMap["clear"];
|
||||
|
|
3
types/DatePicker/DatePickerInput.d.ts
vendored
3
types/DatePicker/DatePickerInput.d.ts
vendored
|
@ -97,7 +97,8 @@ export default class DatePickerInput extends SvelteComponentTyped<
|
|||
{
|
||||
input: WindowEventMap["input"];
|
||||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
blur: WindowEventMap["blur"];
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
2
types/FileUploader/FileUploaderButton.d.ts
vendored
2
types/FileUploader/FileUploaderButton.d.ts
vendored
|
@ -77,5 +77,5 @@ export default class FileUploaderButton extends SvelteComponentTyped<
|
|||
change: WindowEventMap["change"];
|
||||
click: WindowEventMap["click"];
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
|
@ -76,5 +76,5 @@ export default class FileUploaderDropContainer extends SvelteComponentTyped<
|
|||
change: WindowEventMap["change"];
|
||||
click: WindowEventMap["click"];
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
1
types/MultiSelect/MultiSelect.d.ts
vendored
1
types/MultiSelect/MultiSelect.d.ts
vendored
|
@ -192,6 +192,7 @@ export default class MultiSelect extends SvelteComponentTyped<
|
|||
}>;
|
||||
clear: CustomEvent<any>;
|
||||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
},
|
||||
|
|
2
types/RadioButton/RadioButton.d.ts
vendored
2
types/RadioButton/RadioButton.d.ts
vendored
|
@ -61,5 +61,5 @@ export interface RadioButtonProps
|
|||
export default class RadioButton extends SvelteComponentTyped<
|
||||
RadioButtonProps,
|
||||
{ change: WindowEventMap["change"] },
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
3
types/Search/Search.d.ts
vendored
3
types/Search/Search.d.ts
vendored
|
@ -123,7 +123,8 @@ export default class Search extends SvelteComponentTyped<
|
|||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
clear: CustomEvent<any>;
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
2
types/Select/Select.d.ts
vendored
2
types/Select/Select.d.ts
vendored
|
@ -100,5 +100,5 @@ export interface SelectProps
|
|||
export default class Select extends SvelteComponentTyped<
|
||||
SelectProps,
|
||||
{ change: CustomEvent<string>; blur: WindowEventMap["blur"] },
|
||||
{ default: {} }
|
||||
{ default: {}; labelText: {} }
|
||||
> {}
|
||||
|
|
2
types/Slider/Slider.d.ts
vendored
2
types/Slider/Slider.d.ts
vendored
|
@ -115,5 +115,5 @@ export default class Slider extends SvelteComponentTyped<
|
|||
mouseleave: WindowEventMap["mouseleave"];
|
||||
change: CustomEvent<any>;
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
12
types/StructuredList/StructuredList.d.ts
vendored
12
types/StructuredList/StructuredList.d.ts
vendored
|
@ -14,6 +14,18 @@ export interface StructuredListProps
|
|||
*/
|
||||
border?: boolean;
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
|
4
types/TextArea/TextArea.d.ts
vendored
4
types/TextArea/TextArea.d.ts
vendored
|
@ -96,8 +96,10 @@ export default class TextArea extends SvelteComponentTyped<
|
|||
mouseleave: WindowEventMap["mouseleave"];
|
||||
change: WindowEventMap["change"];
|
||||
input: WindowEventMap["input"];
|
||||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
3
types/TextInput/PasswordInput.d.ts
vendored
3
types/TextInput/PasswordInput.d.ts
vendored
|
@ -138,8 +138,9 @@ export default class PasswordInput extends SvelteComponentTyped<
|
|||
change: WindowEventMap["change"];
|
||||
input: WindowEventMap["input"];
|
||||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
3
types/TextInput/TextInput.d.ts
vendored
3
types/TextInput/TextInput.d.ts
vendored
|
@ -120,8 +120,9 @@ export default class TextInput extends SvelteComponentTyped<
|
|||
change: WindowEventMap["change"];
|
||||
input: WindowEventMap["input"];
|
||||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
4
types/TimePicker/TimePicker.d.ts
vendored
4
types/TimePicker/TimePicker.d.ts
vendored
|
@ -101,8 +101,10 @@ export default class TimePicker extends SvelteComponentTyped<
|
|||
mouseleave: WindowEventMap["mouseleave"];
|
||||
change: WindowEventMap["change"];
|
||||
input: WindowEventMap["input"];
|
||||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
},
|
||||
{ default: {} }
|
||||
{ default: {}; labelText: {} }
|
||||
> {}
|
||||
|
|
2
types/TimePicker/TimePickerSelect.d.ts
vendored
2
types/TimePicker/TimePickerSelect.d.ts
vendored
|
@ -58,5 +58,5 @@ export default class TimePickerSelect extends SvelteComponentTyped<
|
|||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
},
|
||||
{ default: {} }
|
||||
{ default: {}; labelText: {} }
|
||||
> {}
|
||||
|
|
2
types/Toggle/Toggle.d.ts
vendored
2
types/Toggle/Toggle.d.ts
vendored
|
@ -64,5 +64,5 @@ export default class Toggle extends SvelteComponentTyped<
|
|||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
2
types/Toggle/ToggleSkeleton.d.ts
vendored
2
types/Toggle/ToggleSkeleton.d.ts
vendored
|
@ -30,5 +30,5 @@ export default class ToggleSkeleton extends SvelteComponentTyped<
|
|||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
|
@ -13,6 +13,12 @@ export interface HeaderNavItemProps
|
|||
*/
|
||||
text?: string;
|
||||
|
||||
/**
|
||||
* Set to `true` to select the item
|
||||
* @default false
|
||||
*/
|
||||
isSelected?: boolean;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML anchor element
|
||||
* @default null
|
||||
|
|
6
types/UIShell/SideNav/SideNav.d.ts
vendored
6
types/UIShell/SideNav/SideNav.d.ts
vendored
|
@ -9,6 +9,12 @@ export interface SideNavProps
|
|||
*/
|
||||
fixed?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to use the rail variant
|
||||
* @default false
|
||||
*/
|
||||
rail?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the nav
|
||||
*/
|
||||
|
|
1
types/UIShell/SideNav/SideNavMenuItem.d.ts
vendored
1
types/UIShell/SideNav/SideNavMenuItem.d.ts
vendored
|
@ -5,6 +5,7 @@ export interface SideNavMenuItemProps
|
|||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["a"]> {
|
||||
/**
|
||||
* Set to `true` to select the item
|
||||
* @default false
|
||||
*/
|
||||
isSelected?: boolean;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue