sprintify-ui 0.0.74 → 0.0.75

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.
@@ -5388,13 +5388,15 @@ const su = { class: "flex items-center" }, iu = {
5388
5388
  onClick: d
5389
5389
  }, {
5390
5390
  default: H(({ active: x }) => [
5391
- U(nn, {
5392
- label: i.label,
5393
- count: i.count,
5394
- icon: i.icon,
5395
- color: i.color,
5396
- active: x
5397
- }, null, 8, ["label", "count", "icon", "color", "active"])
5391
+ Q(l.$slots, "item", { item: i }, () => [
5392
+ U(nn, {
5393
+ label: i.label,
5394
+ count: i.count,
5395
+ icon: i.icon,
5396
+ color: i.color,
5397
+ active: x
5398
+ }, null, 8, ["label", "count", "icon", "color", "active"])
5399
+ ])
5398
5400
  ]),
5399
5401
  _: 2
5400
5402
  }, 1032, ["href", "onClick"])
@@ -5406,13 +5408,15 @@ const su = { class: "flex items-center" }, iu = {
5406
5408
  href: i.href
5407
5409
  }, {
5408
5410
  default: H(({ active: p }) => [
5409
- U(nn, {
5410
- label: i.label,
5411
- count: i.count,
5412
- icon: i.icon,
5413
- color: i.color,
5414
- active: p
5415
- }, null, 8, ["label", "count", "icon", "color", "active"])
5411
+ Q(l.$slots, "item", { item: i }, () => [
5412
+ U(nn, {
5413
+ label: i.label,
5414
+ count: i.count,
5415
+ icon: i.icon,
5416
+ color: i.color,
5417
+ active: p
5418
+ }, null, 8, ["label", "count", "icon", "color", "active"])
5419
+ ])
5416
5420
  ]),
5417
5421
  _: 2
5418
5422
  }, 1032, ["href"])) : i.action ? (w(), ee(h(Bt), {
@@ -5423,13 +5427,15 @@ const su = { class: "flex items-center" }, iu = {
5423
5427
  onClick: i.action
5424
5428
  }, {
5425
5429
  default: H(({ active: p }) => [
5426
- U(nn, {
5427
- label: i.label,
5428
- count: i.count,
5429
- icon: i.icon,
5430
- color: i.color,
5431
- active: p
5432
- }, null, 8, ["label", "count", "icon", "color", "active"])
5430
+ Q(l.$slots, "item", { item: i }, () => [
5431
+ U(nn, {
5432
+ label: i.label,
5433
+ count: i.count,
5434
+ icon: i.icon,
5435
+ color: i.color,
5436
+ active: p
5437
+ }, null, 8, ["label", "count", "icon", "color", "active"])
5438
+ ])
5433
5439
  ]),
5434
5440
  _: 2
5435
5441
  }, 1032, ["onClick"])) : G("", !0)
@@ -114,6 +114,9 @@ declare const _default: {
114
114
  items: (_: {
115
115
  items: MenuItemInterface[] | undefined;
116
116
  }) => any;
117
+ item: (_: {
118
+ item: MenuItemInterface;
119
+ }) => any;
117
120
  };
118
121
  });
119
122
  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.75",
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">
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>