@falcondev-oss/nuxt-layers-base 0.28.1 → 0.29.0

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.
@@ -39,6 +39,7 @@ const omitHeaderSlots = [
39
39
  'header-title',
40
40
  'header-right',
41
41
  'header-default',
42
+ 'header-body',
42
43
  ] satisfies (keyof typeof slots)[]
43
44
 
44
45
  const headerSlots = computed(() =>
@@ -97,6 +98,7 @@ const footerSlots = computed(() =>
97
98
  <slot name="header-right">
98
99
  <UActions
99
100
  v-if="header.actions"
101
+ class="max-sm:hidden"
100
102
  :actions="header.actions"
101
103
  :defaults="{
102
104
  variant: 'subtle',
@@ -105,6 +107,27 @@ const footerSlots = computed(() =>
105
107
  </slot>
106
108
  </template>
107
109
 
110
+ <template #body>
111
+ <slot name="header-body">
112
+ <div class="flex flex-col gap-4">
113
+ <UNavigationMenu
114
+ v-if="header.navigation"
115
+ v-bind="header.navigation"
116
+ orientation="vertical"
117
+ />
118
+ <USeparator v-if="header.navigation && header.actions" />
119
+ <UActions
120
+ v-if="header.actions"
121
+ class="flex-col"
122
+ :actions="header.actions"
123
+ :defaults="{
124
+ variant: 'subtle',
125
+ }"
126
+ />
127
+ </div>
128
+ </slot>
129
+ </template>
130
+
108
131
  <template v-for="(originalName, slotName) in headerSlots" #[slotName]="slotData">
109
132
  <!-- @vue-ignore -->
110
133
  <slot :name="originalName" v-bind="slotData || {}" />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@falcondev-oss/nuxt-layers-base",
3
3
  "type": "module",
4
- "version": "0.28.1",
4
+ "version": "0.29.0",
5
5
  "description": "Nuxt layer with lots of useful helpers and @nuxt/ui components",
6
6
  "license": "MIT",
7
7
  "repository": "github:falcondev-oss/nuxt-layers",