@innertia-solutions/nuxt-theme-spark 0.1.49 → 0.1.51

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.
@@ -13,8 +13,8 @@ const props = defineProps({
13
13
  'w-65 hidden fixed z-60',
14
14
  'lg:block lg:translate-x-0 lg:inset-e-auto',
15
15
  floating
16
- ? 'inset-y-3 start-3 rounded-2xl shadow-sm border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800'
17
- : 'inset-y-0 inset-s-0 h-full border-e border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 lg:bottom-0',
16
+ ? 'inset-y-3 start-3 rounded-2xl shadow-sm border border-sidebar-line bg-sidebar'
17
+ : 'inset-y-0 inset-s-0 h-full border-e border-sidebar-line bg-sidebar lg:bottom-0',
18
18
  ]"
19
19
  tabindex="-1"
20
20
  aria-label="Sidebar"
@@ -2,14 +2,28 @@
2
2
  defineProps<{
3
3
  title: string
4
4
  description?: string
5
+ icon?: any
6
+ iconBg?: string
7
+ iconColor?: string
5
8
  }>()
6
9
  </script>
7
10
 
8
11
  <template>
9
12
  <div class="flex items-center justify-between mb-6">
10
- <div>
11
- <h1 class="text-xl font-semibold text-slate-800 dark:text-slate-100">{{ title }}</h1>
12
- <p v-if="description" class="text-sm text-slate-500 dark:text-slate-400 mt-0.5">{{ description }}</p>
13
+ <div class="flex items-center gap-x-4">
14
+ <!-- Icon -->
15
+ <div
16
+ v-if="icon || $slots.icon"
17
+ :class="['size-12 rounded-xl flex items-center justify-center shrink-0', iconBg ?? 'bg-blue-50 dark:bg-blue-500/10']"
18
+ >
19
+ <slot name="icon">
20
+ <component :is="icon" :class="['size-6', iconColor ?? 'text-blue-600 dark:text-blue-400']" />
21
+ </slot>
22
+ </div>
23
+ <div>
24
+ <h1 class="text-xl font-semibold text-slate-800 dark:text-slate-100">{{ title }}</h1>
25
+ <p v-if="description" class="text-sm text-slate-500 dark:text-slate-400 mt-0.5">{{ description }}</p>
26
+ </div>
13
27
  </div>
14
28
  <div class="flex items-center gap-x-2">
15
29
  <slot name="actions" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/nuxt-theme-spark",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "description": "Innertia Solutions — Spark theme: backoffice, landing and mobile components and layouts",
5
5
  "keywords": [
6
6
  "nuxt",