@innertia-solutions/nuxt-theme-spark 0.1.125 → 0.1.126

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.
@@ -88,26 +88,28 @@ const userInitial = computed(() =>
88
88
  <slot name="user-controls" />
89
89
  </div>
90
90
 
91
- <!-- User info + logout -->
92
- <div v-if="user" class="flex items-center gap-x-2.5 px-1">
93
- <div class="size-8 rounded-lg bg-primary flex items-center justify-center text-primary-foreground text-xs font-bold shrink-0 select-none">
94
- {{ userInitial }}
91
+ <!-- User info + logout — ClientOnly evita hydration mismatch (SSR no tiene usuario) -->
92
+ <ClientOnly>
93
+ <div v-if="user" class="flex items-center gap-x-2.5 px-1">
94
+ <div class="size-8 rounded-lg bg-primary flex items-center justify-center text-primary-foreground text-xs font-bold shrink-0 select-none">
95
+ {{ userInitial }}
96
+ </div>
97
+ <div class="flex-1 min-w-0">
98
+ <p class="text-xs font-semibold text-foreground truncate">{{ user.name ?? user.email }}</p>
99
+ <p v-if="user.name && user.email" class="text-[10px] text-muted-foreground truncate">{{ user.email }}</p>
100
+ </div>
101
+ <button
102
+ type="button"
103
+ class="size-7 inline-flex items-center justify-center rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted-hover transition-colors shrink-0"
104
+ title="Cerrar sesión"
105
+ @click="emit('logout')"
106
+ >
107
+ <svg class="size-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5">
108
+ <path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15M18 9l3 3m0 0l-3 3m3-3H9" />
109
+ </svg>
110
+ </button>
95
111
  </div>
96
- <div class="flex-1 min-w-0">
97
- <p class="text-xs font-semibold text-foreground truncate">{{ user.name ?? user.email }}</p>
98
- <p v-if="user.name && user.email" class="text-[10px] text-muted-foreground truncate">{{ user.email }}</p>
99
- </div>
100
- <button
101
- type="button"
102
- class="size-7 inline-flex items-center justify-center rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted-hover transition-colors shrink-0"
103
- title="Cerrar sesión"
104
- @click="emit('logout')"
105
- >
106
- <svg class="size-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5">
107
- <path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15M18 9l3 3m0 0l-3 3m3-3H9" />
108
- </svg>
109
- </button>
110
- </div>
112
+ </ClientOnly>
111
113
 
112
114
  <!-- Env / extra slot -->
113
115
  <slot name="user-footer" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/nuxt-theme-spark",
3
- "version": "0.1.125",
3
+ "version": "0.1.126",
4
4
  "description": "Innertia Solutions — Spark theme: backoffice, landing and mobile components and layouts",
5
5
  "keywords": [
6
6
  "nuxt",