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

@ -44,6 +44,8 @@ export interface ComposedModalProps
* @default null
*/
ref?: null | HTMLDivElement;
[key: `data-${string}`]: any;
}
export default class ComposedModal extends SvelteComponentTyped<

View file

@ -14,6 +14,8 @@ export interface ModalBodyProps
* @default false
*/
hasScrollingContent?: boolean;
[key: `data-${string}`]: any;
}
export default class ModalBody extends SvelteComponentTyped<

View file

@ -51,6 +51,8 @@ export interface ModalFooterProps
* @default false
*/
danger?: boolean;
[key: `data-${string}`]: any;
}
export default class ModalFooter extends SvelteComponentTyped<

View file

@ -44,6 +44,8 @@ export interface ModalHeaderProps
* @default "Close"
*/
iconDescription?: string;
[key: `data-${string}`]: any;
}
export default class ModalHeader extends SvelteComponentTyped<