mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
feat(types): loosen type for Carbon icons #806
This commit is contained in:
parent
e7322acaae
commit
cf5a26fdd7
37 changed files with 160 additions and 160 deletions
2
types/Button/Button.d.ts
vendored
2
types/Button/Button.d.ts
vendored
|
@ -47,7 +47,7 @@ export interface ButtonProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the button icon
|
||||
|
|
2
types/ContextMenu/ContextMenuOption.d.ts
vendored
2
types/ContextMenu/ContextMenuOption.d.ts
vendored
|
@ -25,7 +25,7 @@ export interface ContextMenuOptionProps
|
|||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
* Icon is rendered to the left of the label text
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Specify the label text
|
||||
|
|
2
types/Icon/Icon.d.ts
vendored
2
types/Icon/Icon.d.ts
vendored
|
@ -8,7 +8,7 @@ export interface IconProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
render?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
render?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Set to `true` to display the skeleton state
|
||||
|
|
2
types/Link/Link.d.ts
vendored
2
types/Link/Link.d.ts
vendored
|
@ -23,7 +23,7 @@ export interface LinkProps
|
|||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
* `inline` must be `false`
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Set to `true` to disable the checkbox
|
||||
|
|
2
types/Notification/NotificationButton.d.ts
vendored
2
types/Notification/NotificationButton.d.ts
vendored
|
@ -12,7 +12,7 @@ export interface NotificationButtonProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Specify the title of the icon
|
||||
|
|
2
types/OverflowMenu/OverflowMenu.d.ts
vendored
2
types/OverflowMenu/OverflowMenu.d.ts
vendored
|
@ -40,7 +40,7 @@ export interface OverflowMenuProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Specify the icon class
|
||||
|
|
2
types/Search/Search.d.ts
vendored
2
types/Search/Search.d.ts
vendored
|
@ -94,7 +94,7 @@ export interface SearchProps {
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Set an id for the input element
|
||||
|
|
2
types/Tag/Tag.d.ts
vendored
2
types/Tag/Tag.d.ts
vendored
|
@ -58,7 +58,7 @@ export interface TagProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Set an id for the filterable tag
|
||||
|
|
2
types/Tooltip/Tooltip.d.ts
vendored
2
types/Tooltip/Tooltip.d.ts
vendored
|
@ -31,7 +31,7 @@ export interface TooltipProps
|
|||
* Specify the icon from `carbon-icons-svelte` to render for the tooltip button
|
||||
* Icon size must be 16px (e.g., `Add16`, `Task16`)
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the tooltip button
|
||||
|
|
2
types/TooltipIcon/TooltipIcon.d.ts
vendored
2
types/TooltipIcon/TooltipIcon.d.ts
vendored
|
@ -13,7 +13,7 @@ export interface TooltipIconProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Set to `true` to disable the tooltip icon
|
||||
|
|
4
types/UIShell/GlobalHeader/Header.d.ts
vendored
4
types/UIShell/GlobalHeader/Header.d.ts
vendored
|
@ -65,13 +65,13 @@ export interface HeaderProps
|
|||
* Specify the icon from `carbon-icons-svelte` to render for the closed state
|
||||
* Defaults to `Menu20`
|
||||
*/
|
||||
iconMenu?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
iconMenu?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render for the opened state
|
||||
* Defaults to `Close20`
|
||||
*/
|
||||
iconClose?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
iconClose?: typeof import("svelte").SvelteComponent;
|
||||
}
|
||||
|
||||
export default class Header extends SvelteComponentTyped<
|
||||
|
|
2
types/UIShell/GlobalHeader/HeaderAction.d.ts
vendored
2
types/UIShell/GlobalHeader/HeaderAction.d.ts
vendored
|
@ -18,7 +18,7 @@ export interface HeaderActionProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Specify the text
|
||||
|
|
|
@ -17,7 +17,7 @@ export interface HeaderActionLinkProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML anchor element
|
||||
|
|
2
types/UIShell/HeaderGlobalAction.d.ts
vendored
2
types/UIShell/HeaderGlobalAction.d.ts
vendored
|
@ -12,7 +12,7 @@ export interface HeaderGlobalActionProps
|
|||
/**
|
||||
* Specify the icon to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML button element
|
||||
|
|
2
types/UIShell/SideNav/SideNavLink.d.ts
vendored
2
types/UIShell/SideNav/SideNavLink.d.ts
vendored
|
@ -22,7 +22,7 @@ export interface SideNavLinkProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML anchor element
|
||||
|
|
2
types/UIShell/SideNav/SideNavMenu.d.ts
vendored
2
types/UIShell/SideNav/SideNavMenu.d.ts
vendored
|
@ -17,7 +17,7 @@ export interface SideNavMenuProps
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML button element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue