@isoftdata/svelte-context-menu 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,15 @@
2
2
  export let icon = null;
3
3
  function getIconProps(icon2) {
4
4
  if (typeof icon2 === "string") {
5
- return { icon: icon2, ...defaultIconProps };
5
+ return {
6
+ ...defaultIconProps,
7
+ icon: icon2
8
+ };
6
9
  } else {
7
- return { ...icon2, ...defaultIconProps };
10
+ return {
11
+ ...defaultIconProps,
12
+ ...icon2
13
+ };
8
14
  }
9
15
  }
10
16
  const defaultIconProps = {
@@ -19,5 +25,6 @@ $:
19
25
  class="dropdown-item"
20
26
  type="button"
21
27
  on:click
28
+ {...$$restProps}
22
29
  >{#if $$props.icon}<span class="mr-1"><Icon {...iconProps} /> </span>{/if}<slot />
23
30
  </button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/svelte-context-menu",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",