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:
Eric Liu 2023-07-08 16:41:44 -07:00 committed by GitHub
commit 7fdc2ef7f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
147 changed files with 310 additions and 22 deletions

View file

@ -39,6 +39,8 @@ export interface TabProps
* @default null
*/
ref?: null | HTMLAnchorElement;
[key: `data-${string}`]: any;
}
export default class Tab extends SvelteComponentTyped<

View file

@ -8,6 +8,8 @@ export interface TabContentProps
* @default "ccs-" + Math.random().toString(36)
*/
id?: string;
[key: `data-${string}`]: any;
}
export default class TabContent extends SvelteComponentTyped<

View file

@ -32,6 +32,8 @@ export interface TabsProps
* @default "#"
*/
triggerHref?: string;
[key: `data-${string}`]: any;
}
export default class Tabs extends SvelteComponentTyped<

View file

@ -14,6 +14,8 @@ export interface TabsSkeletonProps
* @default "default"
*/
type?: "default" | "container";
[key: `data-${string}`]: any;
}
export default class TabsSkeleton extends SvelteComponentTyped<