@innertia-solutions/nuxt-theme-spark 0.1.21 → 0.1.23
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.
|
@@ -7,7 +7,7 @@ provide('vantage:sidebar', { isOpen, open, close })
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<template>
|
|
10
|
-
<div class="bg-
|
|
10
|
+
<div class="bg-surface min-h-screen">
|
|
11
11
|
|
|
12
12
|
<!-- Backdrop mobile -->
|
|
13
13
|
<Transition enter-from-class="opacity-0" enter-active-class="transition-opacity duration-300"
|
|
@@ -21,7 +21,7 @@ provide('vantage:sidebar', { isOpen, open, close })
|
|
|
21
21
|
aria-label="Sidebar"
|
|
22
22
|
:class="[
|
|
23
23
|
'fixed inset-y-0 start-0 z-60 w-65 h-full',
|
|
24
|
-
'bg-
|
|
24
|
+
'bg-sidebar border-e border-sidebar-line',
|
|
25
25
|
'transition-transform duration-300',
|
|
26
26
|
'lg:translate-x-0',
|
|
27
27
|
isOpen ? 'translate-x-0' : 'max-lg:-translate-x-full',
|
|
@@ -34,7 +34,7 @@ provide('vantage:sidebar', { isOpen, open, close })
|
|
|
34
34
|
<slot name="logo" />
|
|
35
35
|
<div class="lg:hidden ms-auto">
|
|
36
36
|
<button type="button"
|
|
37
|
-
class="w-6 h-7 inline-flex justify-center items-center rounded-md border border-
|
|
37
|
+
class="w-6 h-7 inline-flex justify-center items-center rounded-md border border-layer-line bg-layer text-muted-foreground-1 hover:bg-layer-hover"
|
|
38
38
|
@click="close">
|
|
39
39
|
<svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
|
40
40
|
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
@@ -51,22 +51,42 @@ provide('vantage:sidebar', { isOpen, open, close })
|
|
|
51
51
|
<div class="flex-1 min-h-0 mt-1.5 overflow-y-auto
|
|
52
52
|
[&::-webkit-scrollbar]:w-2
|
|
53
53
|
[&::-webkit-scrollbar-thumb]:rounded-full
|
|
54
|
-
[&::-webkit-scrollbar-track]:bg-
|
|
55
|
-
[&::-webkit-scrollbar-thumb]:bg-
|
|
56
|
-
dark:[&::-webkit-scrollbar-track]:bg-slate-700
|
|
57
|
-
dark:[&::-webkit-scrollbar-thumb]:bg-slate-500">
|
|
54
|
+
[&::-webkit-scrollbar-track]:bg-sidebar
|
|
55
|
+
[&::-webkit-scrollbar-thumb]:bg-sidebar-line">
|
|
58
56
|
<slot name="menu" />
|
|
59
57
|
</div>
|
|
60
58
|
|
|
61
59
|
<!-- User footer -->
|
|
62
|
-
<div class="shrink-0 border-t border-
|
|
60
|
+
<div class="shrink-0 border-t border-sidebar-line p-5">
|
|
63
61
|
<slot name="user-footer" />
|
|
64
62
|
</div>
|
|
65
63
|
|
|
66
64
|
</div>
|
|
67
65
|
</aside>
|
|
68
66
|
|
|
69
|
-
<!--
|
|
67
|
+
<!-- Top header -->
|
|
68
|
+
<header class="lg:ms-65 fixed top-0 inset-x-0 flex items-center z-40 bg-navbar border-b border-navbar-line h-14 px-4 sm:px-5 gap-x-3">
|
|
69
|
+
<!-- Mobile hamburger -->
|
|
70
|
+
<button type="button"
|
|
71
|
+
class="lg:hidden size-9 inline-flex justify-center items-center rounded-lg text-muted-foreground-1 hover:bg-muted-hover"
|
|
72
|
+
@click="open">
|
|
73
|
+
<svg class="size-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
|
74
|
+
<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" />
|
|
75
|
+
</svg>
|
|
76
|
+
</button>
|
|
77
|
+
|
|
78
|
+
<!-- Left area (search or title) -->
|
|
79
|
+
<div class="flex-1 flex items-center">
|
|
80
|
+
<slot name="header-left" />
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<!-- Right actions -->
|
|
84
|
+
<div class="flex items-center gap-x-1">
|
|
85
|
+
<slot name="header-right" />
|
|
86
|
+
</div>
|
|
87
|
+
</header>
|
|
88
|
+
|
|
89
|
+
<!-- Main content (below fixed header) -->
|
|
70
90
|
<slot />
|
|
71
91
|
|
|
72
92
|
</div>
|
|
@@ -15,10 +15,12 @@ onMounted(() => {
|
|
|
15
15
|
<template #logo><slot name="logo" /></template>
|
|
16
16
|
<template #menu><slot name="menu" /></template>
|
|
17
17
|
<template #user-footer><slot name="user-footer" /></template>
|
|
18
|
+
<template #header-left><slot name="header-left" /></template>
|
|
19
|
+
<template #header-right><slot name="header-right" /></template>
|
|
18
20
|
|
|
19
|
-
<
|
|
21
|
+
<div class="lg:ps-65 pt-14">
|
|
20
22
|
<slot />
|
|
21
|
-
</
|
|
23
|
+
</div>
|
|
22
24
|
</AdminBase>
|
|
23
25
|
</div>
|
|
24
26
|
</template>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innertia-solutions/nuxt-theme-spark",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "Innertia Solutions — Spark theme: backoffice, landing and mobile components and layouts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nuxt",
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"nuxt": "^4.4.2",
|
|
44
44
|
"vue": "^3.5.0"
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|