nuxt-unified-ui 0.2.10 → 0.2.12

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.
@@ -67,28 +67,34 @@ const slots = useSlots();
67
67
  </div>
68
68
 
69
69
  <div
70
- v-if="props.actions?.length"
70
+ v-if="props.actions?.length || slots.actions"
71
71
  class="flex items-end gap-1 p-2"
72
72
  :class="{
73
73
  'flex-col': props.verticalActions,
74
74
  }">
75
+ <slot name="actions">
75
76
 
76
- <template v-for="(action, index) of props.actions" :key="index">
77
+ <slot name="actions-prepend" />
77
78
 
78
- <template v-if="!action.actionType || action.actionType === 'button'">
79
- <u-button
80
- loading-auto
81
- :block="props.verticalActions"
82
- v-bind="radOmit(action, [ 'actionType' ])"
83
- />
84
- </template>
79
+ <template v-for="(action, index) of props.actions" :key="index">
80
+
81
+ <template v-if="!action.actionType || action.actionType === 'button'">
82
+ <u-button
83
+ loading-auto
84
+ :block="props.verticalActions"
85
+ v-bind="radOmit(action, [ 'actionType' ])"
86
+ />
87
+ </template>
88
+
89
+ <template v-if="action.actionType === 'spacer'">
90
+ <div class="grow" />
91
+ </template>
85
92
 
86
- <template v-if="action.actionType === 'spacer'">
87
- <div class="grow" />
88
93
  </template>
89
94
 
90
- </template>
95
+ <slot name="actions-append" />
91
96
 
97
+ </slot>
92
98
  </div>
93
99
 
94
100
  </u-card>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-unified-ui",
3
3
  "type": "module",
4
- "version": "0.2.10",
4
+ "version": "0.2.12",
5
5
  "main": "./nuxt.config.ts",
6
6
  "exports": {
7
7
  ".": "./nuxt.config.ts",
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "@formkit/tempo": "0.1.2",
18
- "@iconify-json/lucide": "1.2.80",
18
+ "@iconify-json/lucide": "1.2.81",
19
19
  "@nuxt/kit": "4.2.2",
20
20
  "@nuxt/ui": "4.2.1",
21
21
  "@vueuse/core": "14.1.0",