@isoftdata/svelte-context-menu
Advanced tools
@@ -7,3 +7,3 @@ <script lang="ts"> | ||
| interface Props extends Omit<HTMLButtonAttributes, `on:${string}` | `bind:${string}` | `aria-${string}`> { | ||
| icon?: ComponentProps<Icon>['icon'] | ComponentProps<Icon> | ||
| icon?: ComponentProps<typeof Icon>['icon'] | ComponentProps<typeof Icon> | ||
| children?: Snippet | ||
@@ -19,3 +19,3 @@ } | ||
| const iconProps = $derived(getIconProps(icon)) | ||
| const iconProps = $derived(icon ? getIconProps(icon) : undefined) | ||
| </script> | ||
@@ -22,0 +22,0 @@ |
@@ -5,3 +5,3 @@ import type { ComponentProps, Snippet } from 'svelte'; | ||
| interface Props extends Omit<HTMLButtonAttributes, `on:${string}` | `bind:${string}` | `aria-${string}`> { | ||
| icon?: ComponentProps<Icon>['icon'] | ComponentProps<Icon>; | ||
| icon?: ComponentProps<typeof Icon>['icon'] | ComponentProps<typeof Icon>; | ||
| children?: Snippet; | ||
@@ -8,0 +8,0 @@ } |
+4
-3
| { | ||
| "name": "@isoftdata/svelte-context-menu", | ||
| "version": "2.0.2", | ||
| "version": "2.0.3", | ||
| "exports": { | ||
@@ -21,3 +21,3 @@ ".": { | ||
| "@isoftdata/svelte-bootstrap-version-switcher": "^1.1.2", | ||
| "@isoftdata/svelte-button": "^2.1.0", | ||
| "@isoftdata/svelte-button": "^2.1.1", | ||
| "@isoftdata/svelte-checkbox": "^2.1.1", | ||
@@ -48,3 +48,4 @@ "@sveltejs/adapter-auto": "^6.0.0", | ||
| "@floating-ui/dom": "^1.5.3", | ||
| "@isoftdata/svelte-icon": "^2.0.0", | ||
| "@isoftdata/svelte-icon": "^2.0.4", | ||
| "@isoftdata/utility-bootstrap": "^2.2.1", | ||
| "svelte": "^5.23.2" | ||
@@ -51,0 +52,0 @@ }, |
9721
0.97%5
25%