@innertia-solutions/nuxt-theme-spark 0.1.50 → 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.
@@ -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.50",
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",