diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index ddfb1402..77cd8cf0 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1608,26 +1608,16 @@ None. ## `HeaderAction` -### Types - -```ts -export interface HeaderActionSlideTransition { - delay?: number; - duration?: number; - easing?: (t: number) => number; -} -``` - ### Props -| Prop name | Kind | Reactive | Type | Default value | Description | -| :--------- | :--------------- | :------- | :---------------------------------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------- | -| ref | let | Yes | null | HTMLButtonElement | null | Obtain a reference to the button HTML element | -| isOpen | let | Yes | boolean | false | Set to `true` to open the panel | -| icon | let | No | typeof import("svelte").SvelteComponent | undefined | Specify the icon to render | -| closeIcon | let | No | typeof import("svelte").SvelteComponent | undefined | Specify the icon to render when the action panel is open | -| text | let | No | string | undefined | Specify the text
Alternatively, use the named slot "text" (e.g., <div slot="text">...</div>) | -| transition | let | No | false | HeaderActionSlideTransition | { duration: 200 } | Customize the panel transition (i.e., `transition:slide`)
Set to `false` to disable the transition | +| Prop name | Kind | Reactive | Type | Default value | Description | +| :--------- | :--------------- | :------- | :---------------------------------------------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------- | +| ref | let | Yes | null | HTMLButtonElement | null | Obtain a reference to the button HTML element | +| isOpen | let | Yes | boolean | false | Set to `true` to open the panel | +| icon | let | No | typeof import("svelte").SvelteComponent | undefined | Specify the icon to render | +| closeIcon | let | No | typeof import("svelte").SvelteComponent | undefined | Specify the icon to render when the action panel is open | +| text | let | No | string | undefined | Specify the text
Alternatively, use the named slot "text" (e.g., <div slot="text">...</div>) | +| transition | let | No | false | import("svelte/transition").SlideParams | { duration: 200 } | Customize the panel transition (i.e., `transition:slide`).
Set to `false` to disable the transition | ### Slots diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 6f0a619b..d709392a 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -4517,8 +4517,8 @@ { "name": "transition", "kind": "let", - "description": "Customize the panel transition (i.e., `transition:slide`)\nSet to `false` to disable the transition", - "type": "false | HeaderActionSlideTransition", + "description": "Customize the panel transition (i.e., `transition:slide`).\nSet to `false` to disable the transition", + "type": "false | import(\"svelte/transition\").SlideParams", "value": "{ duration: 200 }", "isFunction": false, "isFunctionDeclaration": false, @@ -4539,13 +4539,7 @@ { "type": "forwarded", "name": "click", "element": "button" }, { "type": "dispatched", "name": "close" } ], - "typedefs": [ - { - "type": "{ delay?: number; duration?: number; easing?: (t: number) => number; }", - "name": "HeaderActionSlideTransition", - "ts": "interface HeaderActionSlideTransition { delay?: number; duration?: number; easing?: (t: number) => number; }" - } - ], + "typedefs": [], "rest_props": { "type": "Element", "name": "button" } }, { diff --git a/src/UIShell/GlobalHeader/HeaderAction.svelte b/src/UIShell/GlobalHeader/HeaderAction.svelte index bd52f2ef..60a94c25 100644 --- a/src/UIShell/GlobalHeader/HeaderAction.svelte +++ b/src/UIShell/GlobalHeader/HeaderAction.svelte @@ -1,8 +1,4 @@