mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
* feat(types): loosen type for Carbon icons #806 * Add closeIcon option and remove stopPropagation on:click in HeaderAction (#840) * Remove stopPropagation on:click Remove stopPropagation on:click helps when you have more then one acction to switch between actions tabs * fix bug for default icon * add closeIcon attribute to HeaderAction * feat(types): loosen type for Carbon icons #806 * chore: update TreeView, HeaderAction icon types Co-authored-by: Daniel Miedzik <daniel.miedzik@gmail.com>
This commit is contained in:
parent
1581bc0122
commit
b21600c9d6
39 changed files with 169 additions and 169 deletions
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<
|
||||
|
|
4
types/UIShell/GlobalHeader/HeaderAction.d.ts
vendored
4
types/UIShell/GlobalHeader/HeaderAction.d.ts
vendored
|
@ -18,12 +18,12 @@ 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 close icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
closeIcon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
closeIcon?: 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