mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(types): allow data-*
attributes for props forwarded to HTML elements (#1741)
* chore(deps-dev): upgrade `sveld` to v0.18.1 * Run "yarn build:docs" * test: assert that `data-*` attributes are valid
This commit is contained in:
parent
7579c032fa
commit
7fdc2ef7f0
147 changed files with 310 additions and 22 deletions
2
types/TextInput/PasswordInput.svelte.d.ts
vendored
2
types/TextInput/PasswordInput.svelte.d.ts
vendored
|
@ -128,6 +128,8 @@ export interface PasswordInputProps
|
|||
* @default null
|
||||
*/
|
||||
ref?: null | HTMLInputElement;
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class PasswordInput extends SvelteComponentTyped<
|
||||
|
|
2
types/TextInput/TextInput.svelte.d.ts
vendored
2
types/TextInput/TextInput.svelte.d.ts
vendored
|
@ -113,6 +113,8 @@ export interface TextInputProps
|
|||
* @default false
|
||||
*/
|
||||
readonly?: boolean;
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class TextInput extends SvelteComponentTyped<
|
||||
|
|
|
@ -8,6 +8,8 @@ export interface TextInputSkeletonProps
|
|||
* @default false
|
||||
*/
|
||||
hideLabel?: boolean;
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class TextInputSkeleton extends SvelteComponentTyped<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue