vlite3 0.6.7 → 0.6.9

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.
Files changed (46) hide show
  1. package/_virtual/_commonjsHelpers.js +6 -0
  2. package/_virtual/dayjs.min.js +7 -0
  3. package/_virtual/dayjs.min2.js +4 -0
  4. package/components/Barcode/Barcode.vue.d.ts +1 -1
  5. package/components/Breadcrumb/BreadcrumbItem.vue.js +2 -2
  6. package/components/ConfirmationModal.vue.js +30 -25
  7. package/components/DataTable/DataTableRow.vue.js +70 -64
  8. package/components/Date/Date.vue.d.ts +8 -0
  9. package/components/Date/Date.vue.js +21 -0
  10. package/components/Date/Date.vue2.js +4 -0
  11. package/components/Date/index.d.ts +1 -0
  12. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  13. package/components/Form/Form.vue.js +1 -1
  14. package/components/Form/Form.vue2.js +39 -36
  15. package/components/List/ListFieldRow.vue.js +150 -107
  16. package/components/Modal.vue.js +2 -2
  17. package/components/Modal.vue2.js +43 -42
  18. package/components/Navbar/Navbar.vue.d.ts +33 -19
  19. package/components/Navbar/Navbar.vue.js +295 -185
  20. package/components/Navbar/NavbarTabs.vue.js +1 -1
  21. package/components/PermissionMatrix/PermissionEditor.vue.js +37 -37
  22. package/components/PermissionMatrix/PermissionEditorList.vue.js +5 -154
  23. package/components/PermissionMatrix/PermissionEditorList.vue2.js +160 -2
  24. package/components/PermissionMatrix/PermissionEditorMatrix.vue.js +5 -205
  25. package/components/PermissionMatrix/PermissionEditorMatrix.vue2.js +204 -2
  26. package/components/PermissionMatrix/PermissionMatrix.vue.js +1 -1
  27. package/components/PermissionMatrix/PermissionMatrix.vue2.js +115 -126
  28. package/components/Price/Price.vue.d.ts +8 -0
  29. package/components/Price/Price.vue.js +26 -0
  30. package/components/Price/Price.vue2.js +4 -0
  31. package/components/Price/index.d.ts +1 -0
  32. package/components/Screen/Screen.vue.js +19 -19
  33. package/components/SidebarMenu/SidebarMenu.vue.js +95 -93
  34. package/components/SidebarMenu/SidebarMenuItem.vue.js +42 -42
  35. package/components/Tabes/Tabes.vue.d.ts +6 -0
  36. package/components/Tabes/Tabes.vue.js +63 -56
  37. package/core/config.d.ts +14 -1
  38. package/core/config.js +15 -9
  39. package/core/index.d.ts +0 -22
  40. package/core/index.js +17 -9
  41. package/index.d.ts +2 -0
  42. package/index.js +18 -14
  43. package/package.json +2 -1
  44. package/style.css +1 -1
  45. package/types/config.type.d.ts +6 -0
  46. package/types/navbar.type.d.ts +7 -17
@@ -1,45 +1,60 @@
1
- import { defineComponent as Q, computed as b, ref as p, provide as X, useSlots as Z, onMounted as _, onUnmounted as ee, watch as D, openBlock as t, createElementBlock as r, renderSlot as o, unref as x, createCommentVNode as d, createElementVNode as a, createVNode as c, Transition as le, withCtx as g, withDirectives as se, normalizeStyle as oe, normalizeClass as n, Fragment as h, createBlock as y, resolveDynamicComponent as E, toDisplayString as I, vShow as te, createTextVNode as U } from "vue";
2
- import { useRoute as ae } from "vue-router";
3
- import { useLocalStorage as re, onClickOutside as ie, useBreakpoints as ne, breakpointsTailwind as de } from "@vueuse/core";
4
- import z from "../Icon.vue.js";
5
- import F from "../SidePanel.vue.js";
6
- import W from "../Logo.vue.js";
7
- import ue from "./NavbarTabs.vue.js";
1
+ import { defineComponent as se, computed as b, ref as w, provide as oe, useSlots as te, onMounted as ae, onUnmounted as re, watch as W, openBlock as t, createElementBlock as a, createVNode as m, Transition as Y, withCtx as v, withDirectives as q, createElementVNode as r, normalizeClass as n, renderSlot as o, createCommentVNode as d, vShow as G, unref as c, createTextVNode as P, normalizeStyle as ie, Fragment as x, createBlock as $, resolveDynamicComponent as J, toDisplayString as K } from "vue";
2
+ import { useRoute as ne } from "vue-router";
3
+ import { useLocalStorage as de, onClickOutside as ue, useBreakpoints as fe, breakpointsTailwind as me } from "@vueuse/core";
4
+ import B from "../Icon.vue.js";
5
+ import R from "../SidePanel.vue.js";
6
+ import Q from "../Logo.vue.js";
7
+ import X from "./NavbarTabs.vue.js";
8
8
  /* empty css */
9
- import fe from "../Breadcrumb/Breadcrumb.vue.js";
9
+ import Z from "../Breadcrumb/Breadcrumb.vue.js";
10
10
  /* empty css */
11
- import { useBreadcrumb as me } from "../../composables/useBreadcrumb.js";
12
- const be = {
11
+ import { useBreadcrumb as be } from "../../composables/useBreadcrumb.js";
12
+ const ve = {
13
13
  key: 0,
14
+ class: "vlite-app-layout flex flex-row w-full h-full bg-body overflow-hidden"
15
+ }, ce = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden" }, ge = {
16
+ key: 0,
17
+ class: "w-full shrink-0 z-20 bg-background"
18
+ }, pe = {
19
+ key: 1,
20
+ class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col min-h-0"
21
+ }, he = {
22
+ key: 0,
23
+ class: "shrink-0 w-full"
24
+ }, ye = { class: "flex-1 overflow-y-auto w-full relative h-full" }, ke = { class: "flex flex-col h-full" }, we = { class: "flex-1 overflow-y-auto px-3.5 pt-4" }, xe = {
25
+ key: 0,
26
+ class: "mt-auto pt-2 border-t border-border px-3 py-2"
27
+ }, $e = {
28
+ key: 1,
14
29
  class: "vlite-app-layout flex flex-col w-full h-full bg-body overflow-hidden"
15
- }, ce = {
30
+ }, Ce = {
16
31
  key: 0,
17
32
  class: "w-full shrink-0 z-50 flex flex-col relative"
18
- }, ge = { class: "flex flex-1 w-full overflow-hidden relative" }, ve = { class: "flex items-center gap-4 shrink-0 z-10" }, pe = { key: 1 }, he = { key: 2 }, ye = {
33
+ }, Te = { class: "flex flex-1 w-full overflow-hidden relative" }, ze = { class: "flex items-center gap-4 shrink-0 z-10" }, Be = { key: 1 }, Se = { key: 2 }, Ve = {
19
34
  key: 0,
20
35
  class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col"
21
- }, ke = {
36
+ }, Me = {
22
37
  key: 0,
23
38
  class: "shrink-0 w-full"
24
- }, xe = { class: "flex-1 overflow-y-auto w-full relative h-full" }, we = { class: "flex flex-col max-h-[80vh] overflow-y-auto" }, $e = { class: "space-y-1 p-2" }, Ce = { class: "space-y-1 p-2" }, Te = { class: "flex flex-col space-y-6 pt-4 h-full" }, ze = {
39
+ }, Oe = { class: "flex-1 overflow-y-auto w-full relative h-full" }, Ne = { class: "flex flex-col max-h-[80vh] overflow-y-auto" }, Le = { class: "space-y-1 p-2" }, Pe = { class: "space-y-1 p-2" }, Re = { class: "flex flex-col space-y-6 pt-4 h-full" }, He = {
25
40
  key: 0,
26
41
  class: "flex flex-col space-y-1"
27
- }, Be = {
42
+ }, je = {
28
43
  key: 1,
29
44
  class: "flex flex-col space-y-4 flex-1 overflow-y-auto px-3.5!"
30
- }, Se = {
45
+ }, Ie = {
31
46
  key: 2,
32
47
  class: "mt-auto pt-2 border-t border-border px-3! py-2!"
33
- }, Me = { class: "flex items-center gap-4 shrink-0 z-10" }, Oe = { key: 1 }, Ve = { key: 2 }, Ne = { class: "flex flex-col max-h-[80vh] overflow-y-auto" }, Le = { class: "space-y-1 p-2" }, Re = { class: "space-y-1 p-2" }, Pe = { class: "flex flex-col space-y-6 pt-4 h-full" }, He = {
48
+ }, Ue = { class: "flex items-center gap-4 shrink-0 z-10" }, Ae = { key: 1 }, De = { key: 2 }, Ee = { class: "flex flex-col max-h-[80vh] overflow-y-auto" }, Fe = { class: "space-y-1 p-2" }, We = { class: "space-y-1 p-2" }, Ye = { class: "flex flex-col space-y-6 pt-4 h-full" }, qe = {
34
49
  key: 0,
35
50
  class: "flex flex-col space-y-1"
36
- }, je = {
51
+ }, Ge = {
37
52
  key: 1,
38
53
  class: "flex flex-col space-y-4 flex-1 overflow-y-auto px-3.5!"
39
- }, Ae = {
54
+ }, Je = {
40
55
  key: 2,
41
56
  class: "mt-auto pt-2 border-t border-border px-3! py-2!"
42
- }, Ze = /* @__PURE__ */ Q({
57
+ }, nl = /* @__PURE__ */ se({
43
58
  __name: "Navbar",
44
59
  props: {
45
60
  variant: { default: "header" },
@@ -69,63 +84,64 @@ const be = {
69
84
  breadcrumbSize: { default: "sm" },
70
85
  breadcrumbLabels: {},
71
86
  breadcrumbHomeIcon: { default: "lucide:home" },
72
- breadcrumbClass: { default: "" }
87
+ breadcrumbClass: { default: "" },
88
+ layoutMode: { default: "sidebar-first" }
73
89
  },
74
90
  emits: ["toggle-mobile"],
75
- setup(m, { emit: De }) {
76
- const l = m, B = l.breadcrumb ? me({
91
+ setup(g, { emit: Ke }) {
92
+ const l = g, h = l.breadcrumb ? be({
77
93
  homeIcon: l.breadcrumbHomeIcon,
78
94
  labelMap: l.breadcrumbLabels || {}
79
- }) : { items: b(() => []) }, w = p([]), $ = p("");
80
- X("navbar-context", {
95
+ }) : { items: b(() => []) }, y = w([]), k = w("");
96
+ oe("navbar-context", {
81
97
  compact: b(() => l.compact),
82
98
  renderNestedTabs: b(() => l.renderNestedTabs),
83
99
  setNestedTabs: (e, s) => {
84
- w.value = e, $.value = s;
100
+ y.value = e, k.value = s;
85
101
  }
86
102
  });
87
- const i = p(!1), S = p(!1), R = Z(), M = p(null), k = p(null), C = re("vlite-navbar-sidebar-visible", !0), Y = (e) => {
88
- w.value.find((u) => u.value === e) && (typeof e == "string" && e.startsWith("/") ? import("vue-router").then(({ useRouter: u }) => {
103
+ const i = w(!1), S = w(!1), H = te(), V = w(null), C = w(null), T = de("vlite-navbar-sidebar-visible", !0), j = (e) => {
104
+ y.value.find((u) => u.value === e) && (typeof e == "string" && e.startsWith("/") ? import("vue-router").then(({ useRouter: u }) => {
89
105
  u().push(e).catch(() => {
90
106
  });
91
- }) : $.value = e);
92
- }, v = b(() => !!(R.header || R.main)), P = b(() => l.sidebarToggle && v.value), q = () => {
93
- C.value = !C.value;
107
+ }) : k.value = e);
108
+ }, p = b(() => !!(H.header || H.main)), I = b(() => l.sidebarToggle && p.value), U = () => {
109
+ T.value = !T.value;
94
110
  };
95
- ie(
96
- M,
111
+ ue(
112
+ V,
97
113
  () => {
98
114
  i.value = !1;
99
115
  },
100
- { ignore: [k] }
116
+ { ignore: [C] }
101
117
  );
102
- const H = () => {
118
+ const A = () => {
103
119
  S.value = window.scrollY > 10;
104
120
  };
105
- _(() => {
106
- window.addEventListener("scroll", H, { passive: !0 });
107
- }), ee(() => {
108
- window.removeEventListener("scroll", H);
121
+ ae(() => {
122
+ window.addEventListener("scroll", A, { passive: !0 });
123
+ }), re(() => {
124
+ window.removeEventListener("scroll", A);
109
125
  });
110
- const j = b(() => {
126
+ const D = b(() => {
111
127
  const e = l.variant === "sidebar", s = {
112
- fixed: v.value ? "relative z-40" : "fixed top-0 left-0 z-40",
113
- sticky: v.value ? "relative z-40" : "sticky top-0 z-40",
128
+ fixed: p.value ? "relative z-40" : "fixed top-0 left-0 z-40",
129
+ sticky: p.value ? "relative z-40" : "sticky top-0 z-40",
114
130
  relative: "relative z-10",
115
- absolute: v.value ? "relative z-40" : "absolute top-0 left-0 w-full z-40"
116
- }, u = "bg-body", T = [
131
+ absolute: p.value ? "relative z-40" : "absolute top-0 left-0 w-full z-40"
132
+ }, u = "bg-body", z = [
117
133
  l.glass && (S.value || e || l.floating) ? "backdrop-blur-md bg-background/80 supports-[backdrop-filter]:bg-background/60" : "bg-background",
118
134
  l.border && !l.floating ? e ? "border-r border-border" : "border-b border-border" : "",
119
135
  l.floating ? "m-4 rounded shadow-lg border border-border/50" : "",
120
136
  S.value && !l.floating && !e && l.position === "sticky" ? "shadow-sm" : ""
121
- ], O = l.mobileBreakpoint || "md", V = {
137
+ ], M = l.mobileBreakpoint || "md", O = {
122
138
  sm: "max-sm:hidden",
123
139
  md: "max-md:hidden",
124
140
  lg: "max-lg:hidden",
125
141
  xl: "max-xl:hidden"
126
- }, N = v.value && e ? V[O] : "";
142
+ }, N = p.value && e ? O[M] : "";
127
143
  let L = "";
128
- return e ? L = f.value.sidebarLayout : L = `flex items-center gap-4 w-full px-4 sm:px-6 lg:px-8 ${l.height}`, [u, s[l.position], ...T, L, N, l.class].filter(Boolean).join(" ");
144
+ return e ? L = f.value.sidebarLayout : L = `flex items-center gap-4 w-full px-4 sm:px-6 lg:px-8 ${l.height}`, [u, s[l.position], ...z, L, N, l.class].filter(Boolean).join(" ");
129
145
  }), f = b(() => {
130
146
  const e = l.mobileBreakpoint || "md", s = {
131
147
  sm: "sm:hidden",
@@ -137,17 +153,17 @@ const be = {
137
153
  md: "hidden md:flex",
138
154
  lg: "hidden lg:flex",
139
155
  xl: "hidden xl:flex"
140
- }, T = {
156
+ }, z = {
141
157
  sm: `flex flex-col max-sm:w-full ${l.compact ? "w-20" : ""} h-auto sm:h-full sm:max-h-screen shrink-0`,
142
158
  md: `flex flex-col max-md:w-full ${l.compact ? "w-20" : ""} h-auto md:h-full md:max-h-screen shrink-0`,
143
159
  lg: `flex flex-col max-lg:w-full ${l.compact ? "w-20" : ""} h-auto lg:h-full lg:max-h-screen shrink-0`,
144
160
  xl: `flex flex-col max-xl:w-full ${l.compact ? "w-20" : ""} h-auto xl:h-full xl:max-h-screen shrink-0`
145
- }, O = {
161
+ }, M = {
146
162
  sm: "sm:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
147
163
  md: "md:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
148
164
  lg: "lg:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
149
165
  xl: "xl:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background"
150
- }, V = {
166
+ }, O = {
151
167
  sm: "hidden sm:flex flex-col h-full w-full overflow-hidden",
152
168
  md: "hidden md:flex flex-col h-full w-full overflow-hidden",
153
169
  lg: "hidden lg:flex flex-col h-full w-full overflow-hidden",
@@ -161,39 +177,137 @@ const be = {
161
177
  return {
162
178
  mobileTrigger: s[e],
163
179
  desktopContent: u[e],
164
- sidebarLayout: T[e],
165
- mobileHeader: O[e],
166
- desktopSidebar: V[e],
180
+ sidebarLayout: z[e],
181
+ mobileHeader: M[e],
182
+ desktopSidebar: O[e],
167
183
  desktopOnly: N[e]
168
184
  };
169
- }), A = b(() => {
185
+ }), E = b(() => {
170
186
  if (l.variant === "sidebar") return "flex-1 py-4 overflow-y-auto";
171
187
  if (l.centerPosition === "left")
172
188
  return "flex items-center justify-start";
173
- }), G = ae();
174
- D(
175
- () => G.path,
189
+ }), _ = ne();
190
+ W(
191
+ () => _.path,
176
192
  () => {
177
193
  i.value = !1;
178
194
  }
179
195
  );
180
- const J = ne(de).greater(l.mobileBreakpoint);
181
- D(J, (e) => {
196
+ const ee = fe(me).greater(l.mobileBreakpoint);
197
+ W(ee, (e) => {
182
198
  e && (i.value = !1);
183
199
  });
184
- const K = b(() => P.value && !C.value);
185
- return (e, s) => v.value ? (t(), r("div", be, [
186
- e.$slots.header ? (t(), r("header", ce, [
200
+ const F = b(() => I.value && !T.value), le = b(() => p.value && l.variant === "sidebar" && l.layoutMode === "sidebar-first");
201
+ return (e, s) => le.value ? (t(), a("div", ve, [
202
+ m(Y, {
203
+ "enter-active-class": "transition-all duration-300 ease-in-out",
204
+ "leave-active-class": "transition-all duration-300 ease-in-out",
205
+ "enter-from-class": "opacity-0 -translate-x-2",
206
+ "enter-to-class": "opacity-100 translate-x-0",
207
+ "leave-from-class": "opacity-100 translate-x-0",
208
+ "leave-to-class": "opacity-0 -translate-x-2"
209
+ }, {
210
+ default: v(() => [
211
+ q(r("nav", {
212
+ class: n([
213
+ "shrink-0 h-full flex flex-col bg-background border-r border-border overflow-hidden z-30",
214
+ f.value.mobileTrigger === "md:hidden" ? "max-md:hidden" : "",
215
+ l.class
216
+ ]),
217
+ role: "navigation",
218
+ "aria-label": "Sidebar"
219
+ }, [
220
+ r("div", {
221
+ class: n(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin", l.contentClass])
222
+ }, [
223
+ o(e.$slots, "default")
224
+ ], 2),
225
+ e.$slots.right ? (t(), a("div", {
226
+ key: 0,
227
+ class: n(["shrink-0 border-t border-border bg-background", l.rightClass])
228
+ }, [
229
+ o(e.$slots, "right")
230
+ ], 2)) : d("", !0)
231
+ ], 2), [
232
+ [G, !F.value]
233
+ ])
234
+ ]),
235
+ _: 3
236
+ }),
237
+ r("div", ce, [
238
+ e.$slots.header ? (t(), a("header", ge, [
239
+ o(e.$slots, "header", {
240
+ isOpen: i.value,
241
+ toggle: () => i.value = !i.value,
242
+ sidebarVisible: c(T),
243
+ toggleSidebar: U,
244
+ breadcrumbItems: c(h).items.value
245
+ })
246
+ ])) : d("", !0),
247
+ e.$slots.main ? (t(), a("main", pe, [
248
+ l.renderNestedTabs && y.value.length > 0 ? (t(), a("div", he, [
249
+ m(X, {
250
+ modelValue: k.value,
251
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => k.value = u),
252
+ onChange: j,
253
+ items: y.value
254
+ }, null, 8, ["modelValue", "items"])
255
+ ])) : d("", !0),
256
+ l.breadcrumb && l.breadcrumbPosition === "main" && c(h).items.value.length > 1 ? (t(), a("div", {
257
+ key: 1,
258
+ class: n(["shrink-0 w-full border-b border-border px-6 py-2", l.breadcrumbClass])
259
+ }, [
260
+ m(c(Z), {
261
+ items: c(h).items.value,
262
+ variant: l.breadcrumbVariant,
263
+ separator: l.breadcrumbSeparator,
264
+ size: l.breadcrumbSize
265
+ }, null, 8, ["items", "variant", "separator", "size"])
266
+ ], 2)) : d("", !0),
267
+ r("div", ye, [
268
+ o(e.$slots, "main")
269
+ ])
270
+ ])) : d("", !0)
271
+ ]),
272
+ m(R, {
273
+ show: i.value,
274
+ "onUpdate:show": s[1] || (s[1] = (u) => i.value = u),
275
+ position: "left",
276
+ size: "sm",
277
+ triggerClass: f.value.mobileTrigger,
278
+ class: n(["z-60", f.value.mobileTrigger]),
279
+ headerClass: "pl-3! pr-4.5! py-3!",
280
+ bodyClass: "p-0!"
281
+ }, {
282
+ header: v(() => [
283
+ o(e.$slots, "logo", {}, () => [
284
+ s[9] || (s[9] = P("Brand", -1))
285
+ ])
286
+ ]),
287
+ default: v(() => [
288
+ r("div", ke, [
289
+ r("div", we, [
290
+ o(e.$slots, "default")
291
+ ]),
292
+ e.$slots.right ? (t(), a("div", xe, [
293
+ o(e.$slots, "right")
294
+ ])) : d("", !0)
295
+ ])
296
+ ]),
297
+ _: 3
298
+ }, 8, ["show", "triggerClass", "class"])
299
+ ])) : p.value ? (t(), a("div", $e, [
300
+ e.$slots.header ? (t(), a("header", Ce, [
187
301
  o(e.$slots, "header", {
188
302
  isOpen: i.value,
189
303
  toggle: () => i.value = !i.value,
190
- sidebarVisible: x(C),
191
- toggleSidebar: q,
192
- breadcrumbItems: x(B).items.value
304
+ sidebarVisible: c(T),
305
+ toggleSidebar: U,
306
+ breadcrumbItems: c(h).items.value
193
307
  })
194
308
  ])) : d("", !0),
195
- a("div", ge, [
196
- c(le, {
309
+ r("div", Te, [
310
+ m(Y, {
197
311
  "enter-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
198
312
  "leave-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
199
313
  "enter-from-class": "opacity-0",
@@ -201,121 +315,119 @@ const be = {
201
315
  "leave-from-class": "opacity-100",
202
316
  "leave-to-class": "opacity-0"
203
317
  }, {
204
- default: g(() => [
205
- se(a("nav", {
206
- class: n(j.value),
318
+ default: v(() => [
319
+ q(r("nav", {
320
+ class: n(D.value),
207
321
  role: "navigation",
208
- style: oe(P.value ? "transition: width 0.3s ease, opacity 0.3s ease;" : "")
322
+ style: ie(I.value ? "transition: width 0.3s ease, opacity 0.3s ease;" : "")
209
323
  }, [
210
- m.variant === "header" ? (t(), r(h, { key: 0 }, [
211
- a("div", ve, [
324
+ g.variant === "header" ? (t(), a(x, { key: 0 }, [
325
+ r("div", ze, [
212
326
  o(e.$slots, "mobile-trigger", {
213
327
  isOpen: i.value,
214
328
  toggle: () => i.value = !i.value
215
329
  }, () => [
216
- a("button", {
330
+ r("button", {
217
331
  type: "button",
218
332
  ref_key: "mobileTriggerRef",
219
- ref: k,
333
+ ref: C,
220
334
  class: n(["p-2 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [f.value.mobileTrigger, l.mobileTriggerClass]]),
221
- onClick: s[0] || (s[0] = (u) => i.value = !i.value)
335
+ onClick: s[2] || (s[2] = (u) => i.value = !i.value)
222
336
  }, [
223
- c(z, {
337
+ m(B, {
224
338
  icon: "lucide:menu",
225
339
  class: "w-5 h-5"
226
340
  }),
227
- s[7] || (s[7] = a("span", { class: "sr-only" }, "Open Menu", -1))
341
+ s[10] || (s[10] = r("span", { class: "sr-only" }, "Open Menu", -1))
228
342
  ], 2)
229
343
  ]),
230
- e.$slots?.logo ? (t(), r("div", {
344
+ e.$slots?.logo ? (t(), a("div", {
231
345
  key: 0,
232
346
  class: n(["shrink-0", l.logoClass])
233
347
  }, [
234
348
  o(e.$slots, "logo", {}, () => [
235
- (t(), y(E(l.logo ? "img" : "div"), {
349
+ (t(), $(J(l.logo ? "img" : "div"), {
236
350
  src: l.logo,
237
351
  class: "h-8 w-auto font-bold text-xl flex items-center gap-2"
238
352
  }, {
239
- default: g(() => [
240
- l.logo ? d("", !0) : (t(), y(W, {
353
+ default: v(() => [
354
+ l.logo ? d("", !0) : (t(), $(Q, {
241
355
  key: 0,
242
356
  class: "h-6 w-6"
243
357
  })),
244
- !l.logo && l.logoAlt ? (t(), r("span", pe, I(l.logoAlt), 1)) : l.logo ? d("", !0) : (t(), r("span", he, "Brand"))
358
+ !l.logo && l.logoAlt ? (t(), a("span", Be, K(l.logoAlt), 1)) : l.logo ? d("", !0) : (t(), a("span", Se, "Brand"))
245
359
  ]),
246
360
  _: 1
247
361
  }, 8, ["src"]))
248
362
  ])
249
363
  ], 2)) : d("", !0),
250
- e.$slots?.left ? (t(), r("div", {
364
+ e.$slots?.left ? (t(), a("div", {
251
365
  key: 1,
252
366
  class: n(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient", f.value.desktopContent])
253
367
  }, [
254
368
  o(e.$slots, "left")
255
369
  ], 2)) : d("", !0)
256
370
  ]),
257
- e.$slots?.center ? (t(), r("div", {
371
+ e.$slots?.center ? (t(), a("div", {
258
372
  key: 0,
259
- class: n([A.value, "max-w-full", l.contentClass])
373
+ class: n([E.value, "max-w-full", l.contentClass])
260
374
  }, [
261
375
  o(e.$slots, "center")
262
376
  ], 2)) : d("", !0),
263
- a("div", {
377
+ r("div", {
264
378
  class: n(["flex items-center gap-2 shrink-0 max-w-[40%] z-10", [
265
- {
266
- "ml-auto": m.centerPosition === "left" || m.centerPosition === "center"
267
- },
379
+ { "ml-auto": g.centerPosition === "left" || g.centerPosition === "center" },
268
380
  l.rightClass
269
381
  ]])
270
382
  }, [
271
383
  o(e.$slots, "right")
272
384
  ], 2)
273
- ], 64)) : (t(), r(h, { key: 1 }, [
274
- e.$slots.header ? d("", !0) : (t(), r("div", {
385
+ ], 64)) : (t(), a(x, { key: 1 }, [
386
+ e.$slots.header ? d("", !0) : (t(), a("div", {
275
387
  key: 0,
276
388
  class: n(f.value.mobileHeader)
277
389
  }, [
278
390
  e.$slots?.logo ? o(e.$slots, "logo", { key: 0 }, () => [
279
- s[8] || (s[8] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
391
+ s[11] || (s[11] = r("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
280
392
  ]) : d("", !0),
281
393
  o(e.$slots, "mobile-trigger", {
282
394
  isOpen: i.value,
283
395
  toggle: () => i.value = !i.value
284
396
  }, () => [
285
- a("button", {
397
+ r("button", {
286
398
  type: "button",
287
399
  ref_key: "mobileTriggerRef",
288
- ref: k,
400
+ ref: C,
289
401
  class: n(["p-2 -mr-2 text-muted-foreground hover:bg-accent rounded-md", l.mobileTriggerClass]),
290
- onClick: s[1] || (s[1] = (u) => i.value = !i.value)
402
+ onClick: s[3] || (s[3] = (u) => i.value = !i.value)
291
403
  }, [
292
- c(z, {
404
+ m(B, {
293
405
  icon: "lucide:menu",
294
406
  class: "w-5 h-5"
295
407
  }),
296
- s[9] || (s[9] = a("span", { class: "sr-only" }, "Open Menu", -1))
408
+ s[12] || (s[12] = r("span", { class: "sr-only" }, "Open Menu", -1))
297
409
  ], 2)
298
410
  ])
299
411
  ], 2)),
300
- a("div", {
412
+ r("div", {
301
413
  class: n(f.value.desktopSidebar)
302
414
  }, [
303
- e.$slots?.logo ? (t(), r("div", {
415
+ e.$slots?.logo ? (t(), a("div", {
304
416
  key: 0,
305
417
  class: n(["py-4.5 flex items-center px-4.5 z-10", l.logoClass])
306
418
  }, [
307
419
  o(e.$slots, "logo", {}, () => [
308
- s[10] || (s[10] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
420
+ s[13] || (s[13] = r("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
309
421
  ])
310
422
  ], 2)) : d("", !0),
311
- a("div", {
423
+ r("div", {
312
424
  class: n(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin", l.contentClass])
313
425
  }, [
314
426
  o(e.$slots, "left"),
315
427
  o(e.$slots, "default"),
316
428
  o(e.$slots, "center")
317
429
  ], 2),
318
- e.$slots?.right ? (t(), r("div", {
430
+ e.$slots?.right ? (t(), a("div", {
319
431
  key: 1,
320
432
  class: n(["p-2 border-t border-border shrink-0 bg-background mt-auto", l.rightClass])
321
433
  }, [
@@ -324,58 +436,58 @@ const be = {
324
436
  ], 2)
325
437
  ], 64))
326
438
  ], 6), [
327
- [te, !K.value]
439
+ [G, !F.value]
328
440
  ])
329
441
  ]),
330
442
  _: 3
331
443
  }),
332
- e.$slots.main ? (t(), r("main", ye, [
333
- l.renderNestedTabs && w.value.length > 0 ? (t(), r("div", ke, [
334
- c(ue, {
335
- modelValue: $.value,
336
- "onUpdate:modelValue": s[2] || (s[2] = (u) => $.value = u),
337
- onChange: Y,
338
- items: w.value
444
+ e.$slots.main ? (t(), a("main", Ve, [
445
+ l.renderNestedTabs && y.value.length > 0 ? (t(), a("div", Me, [
446
+ m(X, {
447
+ modelValue: k.value,
448
+ "onUpdate:modelValue": s[4] || (s[4] = (u) => k.value = u),
449
+ onChange: j,
450
+ items: y.value
339
451
  }, null, 8, ["modelValue", "items"])
340
452
  ])) : d("", !0),
341
- l.breadcrumb && l.breadcrumbPosition === "main" && x(B).items.value.length > 1 ? (t(), r("div", {
453
+ l.breadcrumb && l.breadcrumbPosition === "main" && c(h).items.value.length > 1 ? (t(), a("div", {
342
454
  key: 1,
343
455
  class: n(["shrink-0 w-full border-b border-border px-6 py-2", l.breadcrumbClass])
344
456
  }, [
345
- c(x(fe), {
346
- items: x(B).items.value,
457
+ m(c(Z), {
458
+ items: c(h).items.value,
347
459
  variant: l.breadcrumbVariant,
348
460
  separator: l.breadcrumbSeparator,
349
461
  size: l.breadcrumbSize
350
462
  }, null, 8, ["items", "variant", "separator", "size"])
351
463
  ], 2)) : d("", !0),
352
- a("div", xe, [
464
+ r("div", Oe, [
353
465
  o(e.$slots, "main")
354
466
  ])
355
467
  ])) : d("", !0),
356
- l.mobileMenuVariant === "dropdown" ? (t(), r(h, { key: 1 }, [
357
- i.value ? (t(), r("div", {
468
+ l.mobileMenuVariant === "dropdown" ? (t(), a(x, { key: 1 }, [
469
+ i.value ? (t(), a("div", {
358
470
  key: 0,
359
471
  ref_key: "mobileMenuRef",
360
- ref: M,
472
+ ref: V,
361
473
  class: n(["absolute top-[calc(100%_+_1px)] left-0 w-full bg-body border border-border/50 shadow-xl z-50 flex flex-col transition-all duration-300 origin-top overflow-hidden will-change-transform", l.menuClass])
362
474
  }, [
363
- a("div", we, [
475
+ r("div", Ne, [
364
476
  o(e.$slots, "mobile-menu", {}, () => [
365
- a("div", $e, [
477
+ r("div", Le, [
366
478
  o(e.$slots, "left")
367
479
  ]),
368
- s[11] || (s[11] = a("div", { class: "h-px bg-border/50 my-1 mx-2" }, null, -1)),
369
- a("div", Ce, [
480
+ s[14] || (s[14] = r("div", { class: "h-px bg-border/50 my-1 mx-2" }, null, -1)),
481
+ r("div", Pe, [
370
482
  o(e.$slots, "center")
371
483
  ])
372
484
  ])
373
485
  ])
374
486
  ], 2)) : d("", !0)
375
- ], 64)) : (t(), y(F, {
487
+ ], 64)) : (t(), $(R, {
376
488
  key: 2,
377
489
  show: i.value,
378
- "onUpdate:show": s[3] || (s[3] = (u) => i.value = u),
490
+ "onUpdate:show": s[5] || (s[5] = (u) => i.value = u),
379
491
  position: "left",
380
492
  size: "sm",
381
493
  triggerClass: f.value.mobileTrigger,
@@ -383,25 +495,25 @@ const be = {
383
495
  headerClass: "pl-3! pr-4.5! py-3!",
384
496
  bodyClass: "p-0!"
385
497
  }, {
386
- header: g(() => [
498
+ header: v(() => [
387
499
  o(e.$slots, "logo", {}, () => [
388
- s[12] || (s[12] = U("Brand", -1))
500
+ s[15] || (s[15] = P("Brand", -1))
389
501
  ])
390
502
  ]),
391
- default: g(() => [
392
- a("div", Te, [
393
- m.variant === "header" ? (t(), r("div", ze, [
503
+ default: v(() => [
504
+ r("div", Re, [
505
+ g.variant === "header" ? (t(), a("div", He, [
394
506
  o(e.$slots, "mobile-menu", {}, () => [
395
507
  o(e.$slots, "left"),
396
- s[13] || (s[13] = a("div", { class: "h-px bg-border my-2" }, null, -1)),
508
+ s[16] || (s[16] = r("div", { class: "h-px bg-border my-2" }, null, -1)),
397
509
  o(e.$slots, "center")
398
510
  ])
399
- ])) : (t(), r("div", Be, [
511
+ ])) : (t(), a("div", je, [
400
512
  o(e.$slots, "left"),
401
513
  o(e.$slots, "default"),
402
514
  o(e.$slots, "center")
403
515
  ])),
404
- e.$slots?.right ? (t(), r("div", Se, [
516
+ e.$slots?.right ? (t(), a("div", Ie, [
405
517
  o(e.$slots, "right")
406
518
  ])) : d("", !0)
407
519
  ])
@@ -409,119 +521,117 @@ const be = {
409
521
  _: 3
410
522
  }, 8, ["show", "triggerClass", "class"]))
411
523
  ])
412
- ])) : (t(), r("nav", {
413
- key: 1,
414
- class: n(j.value),
524
+ ])) : (t(), a("nav", {
525
+ key: 2,
526
+ class: n(D.value),
415
527
  role: "navigation"
416
528
  }, [
417
- m.variant === "header" ? (t(), r(h, { key: 0 }, [
418
- a("div", Me, [
529
+ g.variant === "header" ? (t(), a(x, { key: 0 }, [
530
+ r("div", Ue, [
419
531
  o(e.$slots, "mobile-trigger", {
420
532
  isOpen: i.value,
421
533
  toggle: () => i.value = !i.value
422
534
  }, () => [
423
- a("button", {
535
+ r("button", {
424
536
  type: "button",
425
537
  ref_key: "mobileTriggerRef",
426
- ref: k,
538
+ ref: C,
427
539
  class: n(["p-2 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [f.value.mobileTrigger, l.mobileTriggerClass]]),
428
- onClick: s[4] || (s[4] = (u) => i.value = !i.value)
540
+ onClick: s[6] || (s[6] = (u) => i.value = !i.value)
429
541
  }, [
430
- c(z, {
542
+ m(B, {
431
543
  icon: "lucide:menu",
432
544
  class: "w-5 h-5"
433
545
  }),
434
- s[14] || (s[14] = a("span", { class: "sr-only" }, "Open Menu", -1))
546
+ s[17] || (s[17] = r("span", { class: "sr-only" }, "Open Menu", -1))
435
547
  ], 2)
436
548
  ]),
437
- e.$slots?.logo ? (t(), r("div", {
549
+ e.$slots?.logo ? (t(), a("div", {
438
550
  key: 0,
439
551
  class: n(["shrink-0", l.logoClass])
440
552
  }, [
441
553
  o(e.$slots, "logo", {}, () => [
442
- (t(), y(E(l.logo ? "img" : "div"), {
554
+ (t(), $(J(l.logo ? "img" : "div"), {
443
555
  src: l.logo,
444
556
  class: "h-8 w-auto font-bold text-xl flex items-center gap-2"
445
557
  }, {
446
- default: g(() => [
447
- l.logo ? d("", !0) : (t(), y(W, {
558
+ default: v(() => [
559
+ l.logo ? d("", !0) : (t(), $(Q, {
448
560
  key: 0,
449
561
  class: "h-6 w-6"
450
562
  })),
451
- !l.logo && l.logoAlt ? (t(), r("span", Oe, I(l.logoAlt), 1)) : l.logo ? d("", !0) : (t(), r("span", Ve, "Brand"))
563
+ !l.logo && l.logoAlt ? (t(), a("span", Ae, K(l.logoAlt), 1)) : l.logo ? d("", !0) : (t(), a("span", De, "Brand"))
452
564
  ]),
453
565
  _: 1
454
566
  }, 8, ["src"]))
455
567
  ])
456
568
  ], 2)) : d("", !0),
457
- e.$slots?.left ? (t(), r("div", {
569
+ e.$slots?.left ? (t(), a("div", {
458
570
  key: 1,
459
571
  class: n(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient", f.value.desktopContent])
460
572
  }, [
461
573
  o(e.$slots, "left")
462
574
  ], 2)) : d("", !0)
463
575
  ]),
464
- e.$slots?.center ? (t(), r("div", {
576
+ e.$slots?.center ? (t(), a("div", {
465
577
  key: 0,
466
- class: n([A.value, "max-w-full", l.contentClass])
578
+ class: n([E.value, "max-w-full", l.contentClass])
467
579
  }, [
468
580
  o(e.$slots, "center")
469
581
  ], 2)) : d("", !0),
470
- a("div", {
582
+ r("div", {
471
583
  class: n(["flex items-center gap-2 shrink-0 max-w-[40%] z-10", [
472
- {
473
- "ml-auto": m.centerPosition === "left" || m.centerPosition === "center"
474
- },
584
+ { "ml-auto": g.centerPosition === "left" || g.centerPosition === "center" },
475
585
  l.rightClass
476
586
  ]])
477
587
  }, [
478
588
  o(e.$slots, "right")
479
589
  ], 2)
480
- ], 64)) : (t(), r(h, { key: 1 }, [
481
- a("div", {
590
+ ], 64)) : (t(), a(x, { key: 1 }, [
591
+ r("div", {
482
592
  class: n(f.value.mobileHeader)
483
593
  }, [
484
594
  e.$slots?.logo ? o(e.$slots, "logo", { key: 0 }, () => [
485
- s[15] || (s[15] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
595
+ s[18] || (s[18] = r("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
486
596
  ]) : d("", !0),
487
597
  o(e.$slots, "mobile-trigger", {
488
598
  isOpen: i.value,
489
599
  toggle: () => i.value = !i.value
490
600
  }, () => [
491
- a("button", {
601
+ r("button", {
492
602
  type: "button",
493
603
  ref_key: "mobileTriggerRef",
494
- ref: k,
604
+ ref: C,
495
605
  class: n(["p-2 -mr-2 text-muted-foreground hover:bg-accent rounded-md", l.mobileTriggerClass]),
496
- onClick: s[5] || (s[5] = (u) => i.value = !i.value)
606
+ onClick: s[7] || (s[7] = (u) => i.value = !i.value)
497
607
  }, [
498
- c(z, {
608
+ m(B, {
499
609
  icon: "lucide:menu",
500
610
  class: "w-5 h-5"
501
611
  }),
502
- s[16] || (s[16] = a("span", { class: "sr-only" }, "Open Menu", -1))
612
+ s[19] || (s[19] = r("span", { class: "sr-only" }, "Open Menu", -1))
503
613
  ], 2)
504
614
  ])
505
615
  ], 2),
506
- a("div", {
616
+ r("div", {
507
617
  class: n(f.value.desktopSidebar)
508
618
  }, [
509
- e.$slots?.logo ? (t(), r("div", {
619
+ e.$slots?.logo ? (t(), a("div", {
510
620
  key: 0,
511
621
  class: n(["py-4.5 flex items-center px-4.5 z-10", l.logoClass])
512
622
  }, [
513
623
  o(e.$slots, "logo", {}, () => [
514
- s[17] || (s[17] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
624
+ s[20] || (s[20] = r("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
515
625
  ])
516
626
  ], 2)) : d("", !0),
517
- a("div", {
627
+ r("div", {
518
628
  class: n(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin", l.contentClass])
519
629
  }, [
520
630
  o(e.$slots, "left"),
521
631
  o(e.$slots, "default"),
522
632
  o(e.$slots, "center")
523
633
  ], 2),
524
- e.$slots?.right ? (t(), r("div", {
634
+ e.$slots?.right ? (t(), a("div", {
525
635
  key: 1,
526
636
  class: n(["p-2 border-t border-border shrink-0 bg-background mt-auto", l.rightClass])
527
637
  }, [
@@ -529,29 +639,29 @@ const be = {
529
639
  ], 2)) : d("", !0)
530
640
  ], 2)
531
641
  ], 64)),
532
- l.mobileMenuVariant === "dropdown" ? (t(), r(h, { key: 2 }, [
533
- i.value ? (t(), r("div", {
642
+ l.mobileMenuVariant === "dropdown" ? (t(), a(x, { key: 2 }, [
643
+ i.value ? (t(), a("div", {
534
644
  key: 0,
535
645
  ref_key: "mobileMenuRef",
536
- ref: M,
646
+ ref: V,
537
647
  class: n(["absolute top-[calc(100%_+_1px)] left-0 w-full bg-body border border-border/50 shadow-xl z-50 flex flex-col transition-all duration-300 origin-top overflow-hidden will-change-transform", l.menuClass])
538
648
  }, [
539
- a("div", Ne, [
649
+ r("div", Ee, [
540
650
  o(e.$slots, "mobile-menu", {}, () => [
541
- a("div", Le, [
651
+ r("div", Fe, [
542
652
  o(e.$slots, "left")
543
653
  ]),
544
- s[18] || (s[18] = a("div", { class: "h-px bg-border/50 my-1 mx-2" }, null, -1)),
545
- a("div", Re, [
654
+ s[21] || (s[21] = r("div", { class: "h-px bg-border/50 my-1 mx-2" }, null, -1)),
655
+ r("div", We, [
546
656
  o(e.$slots, "center")
547
657
  ])
548
658
  ])
549
659
  ])
550
660
  ], 2)) : d("", !0)
551
- ], 64)) : (t(), y(F, {
661
+ ], 64)) : (t(), $(R, {
552
662
  key: 3,
553
663
  show: i.value,
554
- "onUpdate:show": s[6] || (s[6] = (u) => i.value = u),
664
+ "onUpdate:show": s[8] || (s[8] = (u) => i.value = u),
555
665
  position: "left",
556
666
  size: "sm",
557
667
  triggerClass: f.value.mobileTrigger,
@@ -559,25 +669,25 @@ const be = {
559
669
  headerClass: "pl-3! pr-4.5! py-3!",
560
670
  bodyClass: "p-0!"
561
671
  }, {
562
- header: g(() => [
672
+ header: v(() => [
563
673
  o(e.$slots, "logo", {}, () => [
564
- s[19] || (s[19] = U("Brand", -1))
674
+ s[22] || (s[22] = P("Brand", -1))
565
675
  ])
566
676
  ]),
567
- default: g(() => [
568
- a("div", Pe, [
569
- m.variant === "header" ? (t(), r("div", He, [
677
+ default: v(() => [
678
+ r("div", Ye, [
679
+ g.variant === "header" ? (t(), a("div", qe, [
570
680
  o(e.$slots, "mobile-menu", {}, () => [
571
681
  o(e.$slots, "left"),
572
- s[20] || (s[20] = a("div", { class: "h-px bg-border my-2" }, null, -1)),
682
+ s[23] || (s[23] = r("div", { class: "h-px bg-border my-2" }, null, -1)),
573
683
  o(e.$slots, "center")
574
684
  ])
575
- ])) : (t(), r("div", je, [
685
+ ])) : (t(), a("div", Ge, [
576
686
  o(e.$slots, "left"),
577
687
  o(e.$slots, "default"),
578
688
  o(e.$slots, "center")
579
689
  ])),
580
- e.$slots?.right ? (t(), r("div", Ae, [
690
+ e.$slots?.right ? (t(), a("div", Je, [
581
691
  o(e.$slots, "right")
582
692
  ])) : d("", !0)
583
693
  ])
@@ -588,5 +698,5 @@ const be = {
588
698
  }
589
699
  });
590
700
  export {
591
- Ze as default
701
+ nl as default
592
702
  };