sprintify-ui 0.0.74 → 0.0.76

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.
@@ -114,6 +114,10 @@ declare const _default: {
114
114
  items: (_: {
115
115
  items: MenuItemInterface[] | undefined;
116
116
  }) => any;
117
+ item: (_: {
118
+ item: MenuItemInterface;
119
+ active: any;
120
+ }) => any;
117
121
  };
118
122
  });
119
123
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -39,13 +39,15 @@
39
39
  :href="href"
40
40
  @click="navigate"
41
41
  >
42
- <BaseMenuItem
43
- :label="item.label"
44
- :count="item.count"
45
- :icon="item.icon"
46
- :color="item.color"
47
- :active="active"
48
- />
42
+ <slot name="item" :item="item">
43
+ <BaseMenuItem
44
+ :label="item.label"
45
+ :count="item.count"
46
+ :icon="item.icon"
47
+ :color="item.color"
48
+ :active="active"
49
+ />
50
+ </slot>
49
51
  </MenuItem>
50
52
  </router-link>
51
53
 
@@ -55,13 +57,15 @@
55
57
  as="a"
56
58
  :href="item.href"
57
59
  >
58
- <BaseMenuItem
59
- :label="item.label"
60
- :count="item.count"
61
- :icon="item.icon"
62
- :color="item.color"
63
- :active="active"
64
- />
60
+ <slot name="item" :item="item">
61
+ <BaseMenuItem
62
+ :label="item.label"
63
+ :count="item.count"
64
+ :icon="item.icon"
65
+ :color="item.color"
66
+ :active="active"
67
+ />
68
+ </slot>
65
69
  </MenuItem>
66
70
 
67
71
  <MenuItem
@@ -72,13 +76,15 @@
72
76
  class="w-full"
73
77
  @click="item.action"
74
78
  >
75
- <BaseMenuItem
76
- :label="item.label"
77
- :count="item.count"
78
- :icon="item.icon"
79
- :color="item.color"
80
- :active="active"
81
- />
79
+ <slot name="item" :item="item" :active="active">
80
+ <BaseMenuItem
81
+ :label="item.label"
82
+ :count="item.count"
83
+ :icon="item.icon"
84
+ :color="item.color"
85
+ :active="active"
86
+ />
87
+ </slot>
82
88
  </MenuItem>
83
89
  </template>
84
90
  </slot>