mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Align v10.39 (#738)
* chore(deps-dev): upgrade carbon-components to v10.39.0 * fix(data-table): deprecate Table shouldShowBorder prop Ref:0f7324156
* fix(form-group): add legendId Ref:4fc56c30b
* feat(number-input): support readonly variant Ref:d0bd8eddb
* feat(multi-select): export multiSelectRef, fieldRef, selectionRef * feat(local-storage): add clearItem, clearAll instance methods * docs(local-storage): simplify clear example * docs(local-storage): add instructions [ci skip] * chore(local-storage): reset value on clear [ci skip] * chore(local-storage): revert value clear [ci skip]
This commit is contained in:
parent
edefd6429b
commit
b6fa25c3e7
18 changed files with 221 additions and 45 deletions
18
types/FormGroup/FormGroup.d.ts
vendored
18
types/FormGroup/FormGroup.d.ts
vendored
|
@ -3,6 +3,12 @@ import { SvelteComponentTyped } from "svelte";
|
|||
|
||||
export interface FormGroupProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["fieldset"]> {
|
||||
/**
|
||||
* Set to `true` for to remove the bottom margin
|
||||
* @default false
|
||||
*/
|
||||
noMargin?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to indicate an invalid state
|
||||
* @default false
|
||||
|
@ -15,12 +21,6 @@ export interface FormGroupProps
|
|||
*/
|
||||
message?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` for to remove the bottom margin
|
||||
* @default false
|
||||
*/
|
||||
noMargin?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the message text
|
||||
* @default ""
|
||||
|
@ -32,6 +32,12 @@ export interface FormGroupProps
|
|||
* @default ""
|
||||
*/
|
||||
legendText?: string;
|
||||
|
||||
/**
|
||||
* Specify an id for the legend element
|
||||
* @default ""
|
||||
*/
|
||||
legendId?: string;
|
||||
}
|
||||
|
||||
export default class FormGroup extends SvelteComponentTyped<
|
||||
|
|
12
types/LocalStorage/LocalStorage.d.ts
vendored
12
types/LocalStorage/LocalStorage.d.ts
vendored
|
@ -13,6 +13,18 @@ export interface LocalStorageProps {
|
|||
* @default ""
|
||||
*/
|
||||
value?: any;
|
||||
|
||||
/**
|
||||
* Remove the persisted key value from the browser's local storage
|
||||
* @default () => { localStorage.removeItem(key); }
|
||||
*/
|
||||
clearItem?: () => void;
|
||||
|
||||
/**
|
||||
* Clear all key values from the browser's local storage
|
||||
* @default () => { localStorage.clear(); }
|
||||
*/
|
||||
clearAll?: () => void;
|
||||
}
|
||||
|
||||
export default class LocalStorage extends SvelteComponentTyped<
|
||||
|
|
18
types/MultiSelect/MultiSelect.d.ts
vendored
18
types/MultiSelect/MultiSelect.d.ts
vendored
|
@ -180,6 +180,24 @@ export interface MultiSelectProps
|
|||
* @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;
|
||||
}
|
||||
|
||||
export default class MultiSelect extends SvelteComponentTyped<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue