fix(types): loosen icon prop type to any

This commit is contained in:
Eric Liu 2025-02-02 19:33:19 -08:00
commit 21c3de527d
42 changed files with 202 additions and 201 deletions

View file

@ -44,7 +44,7 @@ type $Props = {
* Alternatively, use the named slot "icon" (e.g., `<Icon slot="icon" size="{20}" />`)
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Specify the ARIA label for the button icon

View file

@ -14,7 +14,7 @@ type $Props = {
* Specify the primary button icon
* @default undefined
*/
primaryButtonIcon?: typeof import("svelte").SvelteComponent<any>;
primaryButtonIcon?: any;
/**
* Set to `true` to disable the primary button

View file

@ -27,7 +27,7 @@ type $Props = {
* Icon is rendered to the left of the label text
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Specify the label text.

View file

@ -27,7 +27,7 @@ type $Props = {
* `inline` must be `false`
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Set to `true` to disable the checkbox

View file

@ -86,7 +86,7 @@ type $Props = {
* Specify the primary button icon
* @default undefined
*/
primaryButtonIcon?: typeof import("svelte").SvelteComponent<any>;
primaryButtonIcon?: any;
/**
* Set to `true` for the "submit" and "click:button--primary" events

View file

@ -14,7 +14,7 @@ type $Props = {
* Specify the icon to render
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Specify the title of the icon

View file

@ -45,7 +45,7 @@ type $Props = {
* Defaults to `<OverflowMenuVertical />`
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Specify the icon class

View file

@ -87,7 +87,7 @@ type $Props = {
* Defaults to `<Search />`
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Set an id for the input element

View file

@ -61,7 +61,7 @@ type $Props = {
* Specify the icon to render
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Set an id for the filterable tag

View file

@ -33,7 +33,7 @@ type $Props = {
* Default to `<Information />`
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Specify the ARIA label for the tooltip button

View file

@ -15,7 +15,7 @@ type $Props = {
* Specify the icon to render
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Set to `true` to disable the tooltip icon

View file

@ -6,7 +6,7 @@ export type TreeNodeId = string | number;
export interface TreeNode {
id: TreeNodeId;
text: any;
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
disabled?: boolean;
nodes?: TreeNode[];
}

View file

@ -72,14 +72,14 @@ type $Props = {
* Defaults to `<Menu size={20} />`
* @default undefined
*/
iconMenu?: typeof import("svelte").SvelteComponent<any>;
iconMenu?: any;
/**
* Specify the icon to render for the opened state.
* Defaults to `<Close size={20} />`
* @default undefined
*/
iconClose?: typeof import("svelte").SvelteComponent<any>;
iconClose?: any;
[key: `data-${string}`]: any;
};

View file

@ -15,14 +15,14 @@ type $Props = {
* Defaults to `<Switcher size={20} />`
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Specify the icon to render when the action panel is open.
* Defaults to `<Close size={20} />`
* @default undefined
*/
closeIcon?: typeof import("svelte").SvelteComponent<any>;
closeIcon?: any;
/**
* Specify the text.

View file

@ -20,7 +20,7 @@ type $Props = {
* Specify the icon to render
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Obtain a reference to the HTML anchor element

View file

@ -12,7 +12,7 @@ export type HeaderGlobalActionProps = ButtonProps & {
* Specify the icon to render
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Obtain a reference to the HTML button element

View file

@ -26,7 +26,7 @@ type $Props = {
* Specify the icon to render
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Obtain a reference to the HTML anchor element

View file

@ -20,7 +20,7 @@ type $Props = {
* Specify the icon to render
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
icon?: any;
/**
* Obtain a reference to the HTML button element