@innertia-solutions/nuxt-theme-spark 0.1.24 → 0.1.25

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.
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- const sidebar = inject<{ isOpen: Ref<boolean>; open: () => void; close: () => void } | null>('vantage:sidebar', null)
2
+ const sidebar = inject<{ isOpen: Ref<boolean>; open: () => void; close: () => void } | null>('spark:sidebar', null)
3
3
  const isOpen = computed(() => sidebar?.isOpen.value ?? false)
4
4
  const close = () => sidebar?.close()
5
5
  </script>
@@ -2,7 +2,7 @@
2
2
  const isOpen = ref(false)
3
3
  const open = () => { isOpen.value = true }
4
4
  const close = () => { isOpen.value = false }
5
- provide('vantage:sidebar', { isOpen, open, close })
5
+ provide('spark:sidebar', { isOpen, open, close })
6
6
 
7
7
  const showAnimation = ref(false)
8
8
  onMounted(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/nuxt-theme-spark",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Innertia Solutions — Spark theme: backoffice, landing and mobile components and layouts",
5
5
  "keywords": [
6
6
  "nuxt",
@@ -1,32 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps<{
3
- title?: string
4
- }>()
5
-
6
- const sidebar = inject('vantage:sidebar', null) as any
7
- </script>
8
-
9
- <template>
10
- <header class="sticky top-0 z-40 bg-white dark:bg-slate-800 border-b border-slate-200 dark:border-slate-700 px-4 lg:px-6 h-14 flex items-center gap-x-3">
11
- <!-- Hamburger mobile -->
12
- <button type="button"
13
- class="lg:hidden size-8 flex items-center justify-center text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200"
14
- @click="sidebar?.open()">
15
- <svg class="size-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
16
- <line x1="3" y1="6" x2="21" y2="6" /><line x1="3" y1="12" x2="21" y2="12" /><line x1="3" y1="18" x2="21" y2="18" />
17
- </svg>
18
- </button>
19
-
20
- <!-- Left slot -->
21
- <div class="flex-1 flex items-center gap-x-3">
22
- <slot name="left">
23
- <span v-if="title" class="text-sm font-medium text-slate-700 dark:text-slate-300">{{ title }}</span>
24
- </slot>
25
- </div>
26
-
27
- <!-- Right slot -->
28
- <div class="flex items-center gap-x-2">
29
- <slot name="right" />
30
- </div>
31
- </header>
32
- </template>