vlite3 0.4.8 → 0.5.2

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 (268) hide show
  1. package/README.md +201 -100
  2. package/_virtual/Barcode.js +4 -0
  3. package/_virtual/CODE128.js +4 -0
  4. package/_virtual/CODE128A.js +4 -0
  5. package/_virtual/CODE128B.js +4 -0
  6. package/_virtual/CODE128C.js +4 -0
  7. package/_virtual/CODE128_AUTO.js +4 -0
  8. package/_virtual/CODE93.js +4 -0
  9. package/_virtual/CODE93FullASCII.js +4 -0
  10. package/_virtual/EAN.js +4 -0
  11. package/_virtual/EAN13.js +4 -0
  12. package/_virtual/EAN2.js +4 -0
  13. package/_virtual/EAN5.js +4 -0
  14. package/_virtual/EAN8.js +4 -0
  15. package/_virtual/ErrorHandler.js +4 -0
  16. package/_virtual/FileSaver.min.js +5 -0
  17. package/_virtual/FileSaver.min2.js +4 -0
  18. package/_virtual/ITF.js +4 -0
  19. package/_virtual/ITF14.js +4 -0
  20. package/_virtual/JsBarcode.js +7 -0
  21. package/_virtual/MSI.js +4 -0
  22. package/_virtual/MSI10.js +4 -0
  23. package/_virtual/MSI1010.js +4 -0
  24. package/_virtual/MSI11.js +4 -0
  25. package/_virtual/MSI1110.js +4 -0
  26. package/_virtual/UPC.js +4 -0
  27. package/_virtual/UPCE.js +4 -0
  28. package/_virtual/_commonjsHelpers.js +8 -0
  29. package/_virtual/alignment-pattern.js +4 -0
  30. package/_virtual/auto.js +4 -0
  31. package/_virtual/browser.js +7 -0
  32. package/_virtual/browser2.js +4 -0
  33. package/_virtual/canvas.js +4 -0
  34. package/_virtual/canvas2.js +4 -0
  35. package/_virtual/checksums.js +4 -0
  36. package/_virtual/constants.js +4 -0
  37. package/_virtual/constants2.js +4 -0
  38. package/_virtual/constants3.js +4 -0
  39. package/_virtual/constants4.js +4 -0
  40. package/_virtual/defaults.js +4 -0
  41. package/_virtual/dijkstra.js +4 -0
  42. package/_virtual/encoder.js +4 -0
  43. package/_virtual/error-correction-code.js +4 -0
  44. package/_virtual/error-correction-level.js +4 -0
  45. package/_virtual/exceptions.js +4 -0
  46. package/_virtual/finder-pattern.js +4 -0
  47. package/_virtual/fixOptions.js +4 -0
  48. package/_virtual/format-info.js +4 -0
  49. package/_virtual/galois-field.js +4 -0
  50. package/_virtual/getOptionsFromElement.js +4 -0
  51. package/_virtual/getRenderProperties.js +4 -0
  52. package/_virtual/index.js +4 -0
  53. package/_virtual/index10.js +4 -0
  54. package/_virtual/index11.js +4 -0
  55. package/_virtual/index2.js +4 -0
  56. package/_virtual/index3.js +4 -0
  57. package/_virtual/index4.js +4 -0
  58. package/_virtual/index5.js +4 -0
  59. package/_virtual/index6.js +4 -0
  60. package/_virtual/index7.js +4 -0
  61. package/_virtual/index8.js +4 -0
  62. package/_virtual/index9.js +4 -0
  63. package/_virtual/linearizeEncodings.js +4 -0
  64. package/_virtual/mask-pattern.js +4 -0
  65. package/_virtual/merge.js +4 -0
  66. package/_virtual/mode.js +4 -0
  67. package/_virtual/object.js +4 -0
  68. package/_virtual/optionsFromStrings.js +4 -0
  69. package/_virtual/papaparse.min.js +7 -0
  70. package/_virtual/papaparse.min2.js +4 -0
  71. package/_virtual/polynomial.js +4 -0
  72. package/_virtual/qrcode.js +4 -0
  73. package/_virtual/regex.js +4 -0
  74. package/_virtual/segments.js +4 -0
  75. package/_virtual/shared.js +4 -0
  76. package/_virtual/svg-tag.js +4 -0
  77. package/_virtual/svg.js +4 -0
  78. package/_virtual/utils.js +4 -0
  79. package/_virtual/utils2.js +4 -0
  80. package/_virtual/version-check.js +4 -0
  81. package/_virtual/version.js +4 -0
  82. package/components/Accordion/Accordion.vue.d.ts +7 -7
  83. package/components/Accordion/AccordionItem.vue.d.ts +4 -4
  84. package/components/Accordion/AccordionTrigger.vue.d.ts +2 -2
  85. package/components/Alert.vue.d.ts +1 -1
  86. package/components/Avatar.vue.d.ts +2 -2
  87. package/components/Avatar.vue.js +2 -2
  88. package/components/AvatarUploader/AvatarUploader.vue.d.ts +5 -5
  89. package/components/Badge.vue.d.ts +1 -1
  90. package/components/Barcode/Barcode.vue.d.ts +22 -0
  91. package/components/Barcode/Barcode.vue.js +58 -0
  92. package/components/Barcode/Barcode.vue2.js +4 -0
  93. package/components/Barcode/index.d.ts +2 -0
  94. package/components/Barcode/types.d.ts +5 -0
  95. package/components/Barcode/types.js +15 -0
  96. package/components/Breadcrumb/Breadcrumb.vue.d.ts +23 -0
  97. package/components/Breadcrumb/Breadcrumb.vue.js +7 -0
  98. package/components/Breadcrumb/Breadcrumb.vue2.js +84 -0
  99. package/components/Breadcrumb/BreadcrumbItem.vue.d.ts +27 -0
  100. package/components/Breadcrumb/BreadcrumbItem.vue.js +7 -0
  101. package/components/Breadcrumb/BreadcrumbItem.vue2.js +50 -0
  102. package/components/Breadcrumb/index.d.ts +3 -0
  103. package/components/Breadcrumb/types.d.ts +19 -0
  104. package/components/Button.vue.d.ts +4 -4
  105. package/components/Button.vue.js +32 -29
  106. package/components/ButtonGroup.vue.d.ts +1 -1
  107. package/components/Carousel/Carousel.vue.d.ts +58 -58
  108. package/components/CheckBox.vue.d.ts +2 -2
  109. package/components/Chip/Chip.vue.d.ts +3 -3
  110. package/components/ChoiceBox/ChoiceBox.vue.d.ts +4 -4
  111. package/components/ColorPicker/ColorPicker.vue.d.ts +3 -3
  112. package/components/ColorPicker/index.d.ts +1 -0
  113. package/components/CommandPaletteContent.vue.d.ts +15 -0
  114. package/components/CommandPaletteContent.vue.js +7 -0
  115. package/components/CommandPaletteContent.vue2.js +287 -0
  116. package/components/ConfirmationModal.vue.js +12 -10
  117. package/components/DataList/DataList.vue.d.ts +2 -2
  118. package/components/DataTable/DataTable.vue.d.ts +6 -6
  119. package/components/DataTable/DataTableRow.vue.d.ts +3 -3
  120. package/components/DatePicker.vue.d.ts +2 -2
  121. package/components/DatePicker.vue.js +7 -7
  122. package/components/DateRangePicker.vue.d.ts +29 -0
  123. package/components/DateRangePicker.vue.js +231 -0
  124. package/components/DateRangePicker.vue2.js +4 -0
  125. package/components/Dropdown/Dropdown.vue.d.ts +11 -6
  126. package/components/Dropdown/Dropdown.vue.js +147 -109
  127. package/components/Dropdown/DropdownBooleanItem.vue.js +9 -8
  128. package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +1 -1
  129. package/components/Dropdown/DropdownGroupedLayout.vue.js +35 -34
  130. package/components/Dropdown/DropdownItem.vue.js +11 -10
  131. package/components/Dropdown/DropdownMenu.vue.d.ts +5 -3
  132. package/components/Dropdown/DropdownMenu.vue.js +114 -111
  133. package/components/Dropdown/DropdownTrigger.vue.d.ts +2 -0
  134. package/components/Dropdown/DropdownTrigger.vue.js +9 -7
  135. package/components/ExportData/ExportData.vue.d.ts +16 -0
  136. package/components/ExportData/ExportData.vue.js +135 -0
  137. package/components/ExportData/ExportData.vue2.js +4 -0
  138. package/components/ExportData/index.d.ts +2 -0
  139. package/components/ExportData/types.d.ts +17 -0
  140. package/components/FilePicker/FilePicker.vue.d.ts +5 -5
  141. package/components/Form/CustomFields.vue.d.ts +6 -6
  142. package/components/Form/CustomFields.vue.js +1 -1
  143. package/components/Form/Form.vue.d.ts +4 -5
  144. package/components/Form/Form.vue.js +2 -2
  145. package/components/Form/Form.vue2.js +221 -178
  146. package/components/Form/FormField.vue.d.ts +4 -3
  147. package/components/Form/FormField.vue.js +70 -62
  148. package/components/Form/FormFields.vue.d.ts +3 -1
  149. package/components/Form/FormFields.vue.js +2 -2
  150. package/components/Form/FormFields.vue2.js +105 -59
  151. package/components/GoogleLogin.vue.d.ts +2 -2
  152. package/components/Icon.vue.d.ts +2 -0
  153. package/components/Icon.vue.js +12 -11
  154. package/components/ImportData/ImportData.vue.d.ts +31 -0
  155. package/components/ImportData/ImportData.vue.js +242 -0
  156. package/components/ImportData/ImportData.vue2.js +4 -0
  157. package/components/ImportData/ImportStep1.vue.d.ts +23 -0
  158. package/components/ImportData/ImportStep1.vue.js +162 -0
  159. package/components/ImportData/ImportStep1.vue2.js +4 -0
  160. package/components/ImportData/ImportStep2.vue.d.ts +20 -0
  161. package/components/ImportData/ImportStep2.vue.js +98 -0
  162. package/components/ImportData/ImportStep2.vue2.js +4 -0
  163. package/components/ImportData/ImportStep3.vue.d.ts +6 -0
  164. package/components/ImportData/ImportStep3.vue.js +98 -0
  165. package/components/ImportData/ImportStep3.vue2.js +4 -0
  166. package/components/ImportData/ImportStep4.vue.d.ts +6 -0
  167. package/components/ImportData/ImportStep4.vue.js +139 -0
  168. package/components/ImportData/ImportStep4.vue2.js +4 -0
  169. package/components/ImportData/index.d.ts +2 -0
  170. package/components/ImportData/types.d.ts +51 -0
  171. package/components/Input.vue.d.ts +9 -9
  172. package/components/Input.vue.js +137 -120
  173. package/components/List/List.vue.d.ts +18 -0
  174. package/components/List/List.vue.js +189 -0
  175. package/components/List/List.vue2.js +4 -0
  176. package/components/List/ListFieldRow.vue.d.ts +35 -0
  177. package/components/List/ListFieldRow.vue.js +119 -0
  178. package/components/List/ListFieldRow.vue2.js +4 -0
  179. package/components/List/index.d.ts +4 -0
  180. package/components/List/types.d.ts +1 -0
  181. package/components/List/utils.d.ts +9 -0
  182. package/components/List/utils.js +64 -0
  183. package/components/Masonry/Masonry.vue.d.ts +2 -2
  184. package/components/Modal.vue.js +5 -122
  185. package/components/Modal.vue2.js +133 -2
  186. package/components/MultiSelect/MultiSelect.vue.d.ts +12 -9
  187. package/components/MultiSelect/MultiSelect.vue.js +101 -64
  188. package/components/Navbar/Navbar.vue.d.ts +48 -9
  189. package/components/Navbar/Navbar.vue.js +418 -146
  190. package/components/Navbar/NavbarItem.vue.d.ts +2 -2
  191. package/components/Navbar/NavbarTabs.vue.d.ts +21 -0
  192. package/components/Navbar/NavbarTabs.vue.js +179 -0
  193. package/components/Navbar/NavbarTabs.vue3.js +5 -0
  194. package/components/Navbar/index.d.ts +3 -0
  195. package/components/NavbarCommandPalette.vue.d.ts +48 -0
  196. package/components/NumberInput.vue.d.ts +8 -8
  197. package/components/OTPInput/OTPInput.vue.d.ts +7 -7
  198. package/components/Pagination/Pagination.vue.d.ts +1 -1
  199. package/components/PermissionMatrix/PermissionEditor.vue.d.ts +36 -0
  200. package/components/PermissionMatrix/PermissionEditor.vue.js +323 -0
  201. package/components/PermissionMatrix/PermissionEditor.vue2.js +4 -0
  202. package/components/PermissionMatrix/PermissionMatrix.vue.d.ts +15 -0
  203. package/components/PermissionMatrix/PermissionMatrix.vue.js +7 -0
  204. package/components/PermissionMatrix/PermissionMatrix.vue2.js +245 -0
  205. package/components/PermissionMatrix/index.d.ts +3 -0
  206. package/components/PermissionMatrix/types.d.ts +59 -0
  207. package/components/PricingPlan/PricingPlan.vue.d.ts +3 -3
  208. package/components/ProgressBar/ProgressBar.vue.d.ts +3 -3
  209. package/components/QRCode/QRCode.vue.d.ts +15 -0
  210. package/components/QRCode/QRCode.vue.js +38 -0
  211. package/components/QRCode/QRCode.vue2.js +4 -0
  212. package/components/QRCode/index.d.ts +1 -0
  213. package/components/Screen/Screen.vue.d.ts +232 -5
  214. package/components/Screen/Screen.vue.js +423 -271
  215. package/components/Screen/ScreenFilter.vue.d.ts +2 -2
  216. package/components/Screen/ScreenFilter.vue.js +9 -9
  217. package/components/Screen/types.d.ts +12 -0
  218. package/components/SidePanel.vue.d.ts +2 -2
  219. package/components/SidebarMenu/SidebarMenu.vue.d.ts +15 -2
  220. package/components/SidebarMenu/SidebarMenu.vue.js +117 -47
  221. package/components/SidebarMenu/SidebarMenuItem.vue.d.ts +2 -0
  222. package/components/SidebarMenu/SidebarMenuItem.vue.js +192 -175
  223. package/components/SidebarMenu/types.d.ts +32 -5
  224. package/components/Slider.vue.d.ts +2 -2
  225. package/components/Spinner/Spinner.vue.d.ts +2 -2
  226. package/components/Stats/Stats.vue.d.ts +14 -0
  227. package/components/Stats/Stats.vue.js +307 -0
  228. package/components/Stats/Stats.vue2.js +4 -0
  229. package/components/Stats/index.d.ts +2 -0
  230. package/components/Stats/types.d.ts +32 -0
  231. package/components/Switch.vue.d.ts +2 -1
  232. package/components/Switch.vue.js +4 -2
  233. package/components/Tabes/Tabes.vue.d.ts +3 -3
  234. package/components/Tabes/Tabes.vue.js +60 -57
  235. package/components/Tabes/types.d.ts +5 -0
  236. package/components/Textarea.vue.d.ts +3 -3
  237. package/components/{Timeline.vue.d.ts → Timeline/Timeline.vue.d.ts} +23 -2
  238. package/components/Timeline/Timeline.vue.js +92 -0
  239. package/components/Timeline/TimelineIndicator.vue.d.ts +9 -0
  240. package/components/Timeline/TimelineIndicator.vue.js +68 -0
  241. package/components/Timeline/TimelineIndicator.vue2.js +4 -0
  242. package/components/Timeline/TimelineItem.vue.d.ts +56 -0
  243. package/components/Timeline/TimelineItem.vue.js +173 -0
  244. package/components/Timeline/TimelineItem.vue2.js +4 -0
  245. package/components/Timeline/index.d.ts +3 -0
  246. package/components/Tooltip.vue.d.ts +2 -2
  247. package/components/Workbook/Sheet.vue.d.ts +2 -2
  248. package/components/Workbook/Workbook.vue.d.ts +3 -3
  249. package/components/index.d.ts +62 -0
  250. package/composables/useBreadcrumb.d.ts +17 -0
  251. package/composables/useBreadcrumb.js +27 -0
  252. package/core/config.d.ts +34 -0
  253. package/core/config.js +10 -7
  254. package/core/index.js +15 -8
  255. package/index.d.ts +55 -44
  256. package/index.js +243 -200
  257. package/package.json +12 -2
  258. package/router.d.ts +2 -0
  259. package/style.css +7 -5
  260. package/types/button.d.ts +1 -1
  261. package/types/config.type.d.ts +35 -0
  262. package/types/form.type.d.ts +3 -1
  263. package/types/index.d.ts +2 -1
  264. package/types/list.type.d.ts +57 -0
  265. package/types/navbar.type.d.ts +38 -1
  266. package/types/timeline.type.d.ts +14 -4
  267. package/components/Timeline.vue.js +0 -160
  268. /package/components/{Timeline.vue2.js → Timeline/Timeline.vue2.js} +0 -0
@@ -1,19 +1,45 @@
1
- import { defineComponent as R, ref as g, useSlots as V, onMounted as L, onUnmounted as N, computed as p, provide as E, watch as C, openBlock as t, createElementBlock as n, normalizeClass as i, Fragment as x, createElementVNode as r, renderSlot as o, createVNode as B, createBlock as y, resolveDynamicComponent as P, withCtx as k, createCommentVNode as d, toDisplayString as A, createTextVNode as D } from "vue";
2
- import { useRoute as H } from "vue-router";
3
- import { onClickOutside as U, useBreakpoints as F, breakpointsTailwind as Y } from "@vueuse/core";
4
- import T from "../Icon.vue.js";
5
- import q from "../SidePanel.vue.js";
6
- import G from "../Logo.vue.js";
7
- const I = { class: "flex items-center gap-4 shrink-0 z-10" }, J = { key: 1 }, K = { key: 2 }, Q = { class: "flex flex-col max-h-[80vh] overflow-y-auto" }, W = { class: "space-y-1 p-2" }, X = { class: "space-y-1 p-2" }, Z = { class: "flex flex-col space-y-6 pt-4 h-full" }, _ = {
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";
8
+ /* empty css */
9
+ import fe from "../Breadcrumb/Breadcrumb.vue.js";
10
+ /* empty css */
11
+ import { useBreadcrumb as me } from "../../composables/useBreadcrumb.js";
12
+ const be = {
13
+ key: 0,
14
+ class: "vlite-app-layout flex flex-col w-full h-full bg-body overflow-hidden"
15
+ }, ce = {
16
+ key: 0,
17
+ 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 = {
19
+ key: 0,
20
+ class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col"
21
+ }, ke = {
22
+ key: 0,
23
+ 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 = {
25
+ key: 0,
26
+ class: "flex flex-col space-y-1"
27
+ }, Be = {
28
+ key: 1,
29
+ class: "flex flex-col space-y-4 flex-1 overflow-y-auto px-3.5!"
30
+ }, Se = {
31
+ key: 2,
32
+ 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 = {
8
34
  key: 0,
9
35
  class: "flex flex-col space-y-1"
10
- }, ee = {
36
+ }, je = {
11
37
  key: 1,
12
38
  class: "flex flex-col space-y-4 flex-1 overflow-y-auto px-3.5!"
13
- }, le = {
39
+ }, Ae = {
14
40
  key: 2,
15
41
  class: "mt-auto pt-2 border-t border-border px-3! py-2!"
16
- }, ue = /* @__PURE__ */ R({
42
+ }, Ze = /* @__PURE__ */ Q({
17
43
  __name: "Navbar",
18
44
  props: {
19
45
  variant: { default: "header" },
@@ -24,8 +50,8 @@ const I = { class: "flex items-center gap-4 shrink-0 z-10" }, J = { key: 1 }, K
24
50
  floating: { type: Boolean, default: !1 },
25
51
  class: { default: "" },
26
52
  height: { default: "h-16" },
27
- width: { default: "w-64" },
28
53
  compact: { type: Boolean, default: !1 },
54
+ renderNestedTabs: { type: Boolean, default: !1 },
29
55
  logo: {},
30
56
  logoAlt: {},
31
57
  mobileBreakpoint: { default: "md" },
@@ -34,278 +60,524 @@ const I = { class: "flex items-center gap-4 shrink-0 z-10" }, J = { key: 1 }, K
34
60
  menuClass: { default: "" },
35
61
  rightClass: { default: "" },
36
62
  mobileTriggerClass: { default: "" },
37
- mobileMenuVariant: { default: "sidepanel" }
63
+ mobileMenuVariant: { default: "sidepanel" },
64
+ sidebarToggle: { type: Boolean, default: !1 },
65
+ breadcrumb: { type: Boolean, default: !1 },
66
+ breadcrumbPosition: { default: "header" },
67
+ breadcrumbVariant: { default: "default" },
68
+ breadcrumbSeparator: { default: "chevron" },
69
+ breadcrumbSize: { default: "sm" },
70
+ breadcrumbLabels: {},
71
+ breadcrumbHomeIcon: { default: "lucide:home" },
72
+ breadcrumbClass: { default: "" }
38
73
  },
39
74
  emits: ["toggle-mobile"],
40
- setup(m, { emit: se }) {
41
- const l = m, a = g(!1), b = g(!1);
42
- V();
43
- const w = g(null), h = g(null);
44
- U(
45
- w,
75
+ setup(m, { emit: De }) {
76
+ const l = m, B = l.breadcrumb ? me({
77
+ homeIcon: l.breadcrumbHomeIcon,
78
+ labelMap: l.breadcrumbLabels || {}
79
+ }) : { items: b(() => []) }, w = p([]), $ = p("");
80
+ X("navbar-context", {
81
+ compact: b(() => l.compact),
82
+ renderNestedTabs: b(() => l.renderNestedTabs),
83
+ setNestedTabs: (e, s) => {
84
+ w.value = e, $.value = s;
85
+ }
86
+ });
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 }) => {
89
+ u().push(e).catch(() => {
90
+ });
91
+ }) : $.value = e);
92
+ }, v = b(() => !!(R.header || R.main)), P = b(() => l.sidebarToggle && v.value), q = () => {
93
+ C.value = !C.value;
94
+ };
95
+ ie(
96
+ M,
46
97
  () => {
47
- a.value = !1;
98
+ i.value = !1;
48
99
  },
49
- { ignore: [h] }
100
+ { ignore: [k] }
50
101
  );
51
- const $ = () => {
52
- b.value = window.scrollY > 10;
102
+ const H = () => {
103
+ S.value = window.scrollY > 10;
53
104
  };
54
- L(() => {
55
- window.addEventListener("scroll", $, { passive: !0 });
56
- }), N(() => {
57
- window.removeEventListener("scroll", $);
105
+ _(() => {
106
+ window.addEventListener("scroll", H, { passive: !0 });
107
+ }), ee(() => {
108
+ window.removeEventListener("scroll", H);
58
109
  });
59
- const z = p(() => {
110
+ const j = b(() => {
60
111
  const e = l.variant === "sidebar", s = {
61
- fixed: "fixed top-0 left-0 z-40",
62
- sticky: "sticky top-0 z-40",
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",
63
114
  relative: "relative z-10",
64
- absolute: "absolute top-0 left-0 w-full z-40"
65
- }, f = "bg-body", v = [
66
- l.glass && (b.value || e || l.floating) ? "backdrop-blur-md bg-background/80 supports-[backdrop-filter]:bg-background/60" : "bg-background",
115
+ absolute: v.value ? "relative z-40" : "absolute top-0 left-0 w-full z-40"
116
+ }, u = "bg-body", T = [
117
+ l.glass && (S.value || e || l.floating) ? "backdrop-blur-md bg-background/80 supports-[backdrop-filter]:bg-background/60" : "bg-background",
67
118
  l.border && !l.floating ? e ? "border-r border-border" : "border-b border-border" : "",
68
119
  l.floating ? "m-4 rounded shadow-lg border border-border/50" : "",
69
- b.value && !l.floating && !e && l.position === "sticky" ? "shadow-sm" : ""
70
- ];
71
- let c = "";
72
- return e ? c = u.value.sidebarLayout : c = `flex items-center gap-4 w-full px-4 sm:px-6 lg:px-8 ${l.height}`, [f, s[l.position], ...v, c, l.class].join(" ");
73
- }), u = p(() => {
120
+ S.value && !l.floating && !e && l.position === "sticky" ? "shadow-sm" : ""
121
+ ], O = l.mobileBreakpoint || "md", V = {
122
+ sm: "max-sm:hidden",
123
+ md: "max-md:hidden",
124
+ lg: "max-lg:hidden",
125
+ xl: "max-xl:hidden"
126
+ }, N = v.value && e ? V[O] : "";
127
+ 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(" ");
129
+ }), f = b(() => {
74
130
  const e = l.mobileBreakpoint || "md", s = {
75
131
  sm: "sm:hidden",
76
132
  md: "md:hidden",
77
133
  lg: "lg:hidden",
78
134
  xl: "xl:hidden"
79
- }, f = {
135
+ }, u = {
80
136
  sm: "hidden sm:flex",
81
137
  md: "hidden md:flex",
82
138
  lg: "hidden lg:flex",
83
139
  xl: "hidden xl:flex"
84
- }, v = {
85
- sm: `flex flex-col max-sm:w-full ${l.compact ? "w-20" : l.width} h-auto sm:h-full sm:max-h-screen`,
86
- md: `flex flex-col max-md:w-full ${l.compact ? "w-20" : l.width} h-auto md:h-full md:max-h-screen`,
87
- lg: `flex flex-col max-lg:w-full ${l.compact ? "w-20" : l.width} h-auto lg:h-full lg:max-h-screen`,
88
- xl: `flex flex-col max-xl:w-full ${l.compact ? "w-20" : l.width} h-auto xl:h-full xl:max-h-screen`
89
- }, c = {
140
+ }, T = {
141
+ sm: `flex flex-col max-sm:w-full ${l.compact ? "w-20" : ""} h-auto sm:h-full sm:max-h-screen shrink-0`,
142
+ md: `flex flex-col max-md:w-full ${l.compact ? "w-20" : ""} h-auto md:h-full md:max-h-screen shrink-0`,
143
+ lg: `flex flex-col max-lg:w-full ${l.compact ? "w-20" : ""} h-auto lg:h-full lg:max-h-screen shrink-0`,
144
+ 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 = {
90
146
  sm: "sm:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
91
147
  md: "md:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
92
148
  lg: "lg:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
93
149
  xl: "xl:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background"
94
- }, O = {
150
+ }, V = {
95
151
  sm: "hidden sm:flex flex-col h-full w-full overflow-hidden",
96
152
  md: "hidden md:flex flex-col h-full w-full overflow-hidden",
97
153
  lg: "hidden lg:flex flex-col h-full w-full overflow-hidden",
98
154
  xl: "hidden xl:flex flex-col h-full w-full overflow-hidden"
155
+ }, N = {
156
+ sm: "hidden sm:flex",
157
+ md: "hidden md:flex",
158
+ lg: "hidden lg:flex",
159
+ xl: "hidden xl:flex"
99
160
  };
100
161
  return {
101
162
  mobileTrigger: s[e],
102
- desktopContent: f[e],
103
- sidebarLayout: v[e],
104
- mobileHeader: c[e],
105
- desktopSidebar: O[e]
163
+ desktopContent: u[e],
164
+ sidebarLayout: T[e],
165
+ mobileHeader: O[e],
166
+ desktopSidebar: V[e],
167
+ desktopOnly: N[e]
106
168
  };
107
- }), M = p(() => {
169
+ }), A = b(() => {
108
170
  if (l.variant === "sidebar") return "flex-1 py-4 overflow-y-auto";
109
- switch (l.centerPosition) {
110
- case "left":
111
- return "flex items-center justify-start";
112
- case "right":
113
- return "flex items-center justify-end ml-auto";
114
- default:
115
- return `${u.value.desktopContent} items-center justify-center mx-auto`;
116
- }
117
- });
118
- E("navbar-context", {
119
- compact: p(() => l.compact)
120
- });
121
- const S = H();
122
- C(
123
- () => S.path,
171
+ if (l.centerPosition === "left")
172
+ return "flex items-center justify-start";
173
+ }), G = ae();
174
+ D(
175
+ () => G.path,
124
176
  () => {
125
- a.value = !1;
177
+ i.value = !1;
126
178
  }
127
179
  );
128
- const j = F(Y).greater(l.mobileBreakpoint);
129
- return C(j, (e) => {
130
- e && (a.value = !1);
131
- }), (e, s) => (t(), n("nav", {
132
- class: i(z.value),
180
+ const J = ne(de).greater(l.mobileBreakpoint);
181
+ D(J, (e) => {
182
+ e && (i.value = !1);
183
+ });
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, [
187
+ o(e.$slots, "header", {
188
+ isOpen: i.value,
189
+ toggle: () => i.value = !i.value,
190
+ sidebarVisible: x(C),
191
+ toggleSidebar: q,
192
+ breadcrumbItems: x(B).items.value
193
+ })
194
+ ])) : d("", !0),
195
+ a("div", ge, [
196
+ c(le, {
197
+ "enter-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
198
+ "leave-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
199
+ "enter-from-class": "opacity-0",
200
+ "enter-to-class": "opacity-100",
201
+ "leave-from-class": "opacity-100",
202
+ "leave-to-class": "opacity-0"
203
+ }, {
204
+ default: g(() => [
205
+ se(a("nav", {
206
+ class: n(j.value),
207
+ role: "navigation",
208
+ style: oe(P.value ? "transition: width 0.3s ease, opacity 0.3s ease;" : "")
209
+ }, [
210
+ m.variant === "header" ? (t(), r(h, { key: 0 }, [
211
+ a("div", ve, [
212
+ o(e.$slots, "mobile-trigger", {
213
+ isOpen: i.value,
214
+ toggle: () => i.value = !i.value
215
+ }, () => [
216
+ a("button", {
217
+ type: "button",
218
+ ref_key: "mobileTriggerRef",
219
+ ref: k,
220
+ 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)
222
+ }, [
223
+ c(z, {
224
+ icon: "lucide:menu",
225
+ class: "w-5 h-5"
226
+ }),
227
+ s[7] || (s[7] = a("span", { class: "sr-only" }, "Open Menu", -1))
228
+ ], 2)
229
+ ]),
230
+ e.$slots?.logo ? (t(), r("div", {
231
+ key: 0,
232
+ class: n(["shrink-0", l.logoClass])
233
+ }, [
234
+ o(e.$slots, "logo", {}, () => [
235
+ (t(), y(E(l.logo ? "img" : "div"), {
236
+ src: l.logo,
237
+ class: "h-8 w-auto font-bold text-xl flex items-center gap-2"
238
+ }, {
239
+ default: g(() => [
240
+ l.logo ? d("", !0) : (t(), y(W, {
241
+ key: 0,
242
+ class: "h-6 w-6"
243
+ })),
244
+ !l.logo && l.logoAlt ? (t(), r("span", pe, I(l.logoAlt), 1)) : l.logo ? d("", !0) : (t(), r("span", he, "Brand"))
245
+ ]),
246
+ _: 1
247
+ }, 8, ["src"]))
248
+ ])
249
+ ], 2)) : d("", !0),
250
+ e.$slots?.left ? (t(), r("div", {
251
+ key: 1,
252
+ class: n(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient", f.value.desktopContent])
253
+ }, [
254
+ o(e.$slots, "left")
255
+ ], 2)) : d("", !0)
256
+ ]),
257
+ e.$slots?.center ? (t(), r("div", {
258
+ key: 0,
259
+ class: n([A.value, "max-w-full", l.contentClass])
260
+ }, [
261
+ o(e.$slots, "center")
262
+ ], 2)) : d("", !0),
263
+ a("div", {
264
+ 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
+ },
268
+ l.rightClass
269
+ ]])
270
+ }, [
271
+ o(e.$slots, "right")
272
+ ], 2)
273
+ ], 64)) : (t(), r(h, { key: 1 }, [
274
+ e.$slots.header ? d("", !0) : (t(), r("div", {
275
+ key: 0,
276
+ class: n(f.value.mobileHeader)
277
+ }, [
278
+ e.$slots?.logo ? o(e.$slots, "logo", { key: 0 }, () => [
279
+ s[8] || (s[8] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
280
+ ]) : d("", !0),
281
+ o(e.$slots, "mobile-trigger", {
282
+ isOpen: i.value,
283
+ toggle: () => i.value = !i.value
284
+ }, () => [
285
+ a("button", {
286
+ type: "button",
287
+ ref_key: "mobileTriggerRef",
288
+ ref: k,
289
+ 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)
291
+ }, [
292
+ c(z, {
293
+ icon: "lucide:menu",
294
+ class: "w-5 h-5"
295
+ }),
296
+ s[9] || (s[9] = a("span", { class: "sr-only" }, "Open Menu", -1))
297
+ ], 2)
298
+ ])
299
+ ], 2)),
300
+ a("div", {
301
+ class: n(f.value.desktopSidebar)
302
+ }, [
303
+ e.$slots?.logo ? (t(), r("div", {
304
+ key: 0,
305
+ class: n(["py-4.5 flex items-center px-4.5 z-10", l.logoClass])
306
+ }, [
307
+ o(e.$slots, "logo", {}, () => [
308
+ s[10] || (s[10] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
309
+ ])
310
+ ], 2)) : d("", !0),
311
+ a("div", {
312
+ class: n(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin", l.contentClass])
313
+ }, [
314
+ o(e.$slots, "left"),
315
+ o(e.$slots, "default"),
316
+ o(e.$slots, "center")
317
+ ], 2),
318
+ e.$slots?.right ? (t(), r("div", {
319
+ key: 1,
320
+ class: n(["p-2 border-t border-border shrink-0 bg-background mt-auto", l.rightClass])
321
+ }, [
322
+ o(e.$slots, "right")
323
+ ], 2)) : d("", !0)
324
+ ], 2)
325
+ ], 64))
326
+ ], 6), [
327
+ [te, !K.value]
328
+ ])
329
+ ]),
330
+ _: 3
331
+ }),
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
339
+ }, null, 8, ["modelValue", "items"])
340
+ ])) : d("", !0),
341
+ l.breadcrumb && l.breadcrumbPosition === "main" && x(B).items.value.length > 1 ? (t(), r("div", {
342
+ key: 1,
343
+ class: n(["shrink-0 w-full border-b border-border px-6 py-2", l.breadcrumbClass])
344
+ }, [
345
+ c(x(fe), {
346
+ items: x(B).items.value,
347
+ variant: l.breadcrumbVariant,
348
+ separator: l.breadcrumbSeparator,
349
+ size: l.breadcrumbSize
350
+ }, null, 8, ["items", "variant", "separator", "size"])
351
+ ], 2)) : d("", !0),
352
+ a("div", xe, [
353
+ o(e.$slots, "main")
354
+ ])
355
+ ])) : d("", !0),
356
+ l.mobileMenuVariant === "dropdown" ? (t(), r(h, { key: 1 }, [
357
+ i.value ? (t(), r("div", {
358
+ key: 0,
359
+ ref_key: "mobileMenuRef",
360
+ ref: M,
361
+ 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
+ }, [
363
+ a("div", we, [
364
+ o(e.$slots, "mobile-menu", {}, () => [
365
+ a("div", $e, [
366
+ o(e.$slots, "left")
367
+ ]),
368
+ s[11] || (s[11] = a("div", { class: "h-px bg-border/50 my-1 mx-2" }, null, -1)),
369
+ a("div", Ce, [
370
+ o(e.$slots, "center")
371
+ ])
372
+ ])
373
+ ])
374
+ ], 2)) : d("", !0)
375
+ ], 64)) : (t(), y(F, {
376
+ key: 2,
377
+ show: i.value,
378
+ "onUpdate:show": s[3] || (s[3] = (u) => i.value = u),
379
+ position: "left",
380
+ size: "sm",
381
+ triggerClass: f.value.mobileTrigger,
382
+ class: n(["z-60", f.value.mobileTrigger]),
383
+ headerClass: "pl-3! pr-4.5! py-3!",
384
+ bodyClass: "p-0!"
385
+ }, {
386
+ header: g(() => [
387
+ o(e.$slots, "logo", {}, () => [
388
+ s[12] || (s[12] = U("Brand", -1))
389
+ ])
390
+ ]),
391
+ default: g(() => [
392
+ a("div", Te, [
393
+ m.variant === "header" ? (t(), r("div", ze, [
394
+ o(e.$slots, "mobile-menu", {}, () => [
395
+ o(e.$slots, "left"),
396
+ s[13] || (s[13] = a("div", { class: "h-px bg-border my-2" }, null, -1)),
397
+ o(e.$slots, "center")
398
+ ])
399
+ ])) : (t(), r("div", Be, [
400
+ o(e.$slots, "left"),
401
+ o(e.$slots, "default"),
402
+ o(e.$slots, "center")
403
+ ])),
404
+ e.$slots?.right ? (t(), r("div", Se, [
405
+ o(e.$slots, "right")
406
+ ])) : d("", !0)
407
+ ])
408
+ ]),
409
+ _: 3
410
+ }, 8, ["show", "triggerClass", "class"]))
411
+ ])
412
+ ])) : (t(), r("nav", {
413
+ key: 1,
414
+ class: n(j.value),
133
415
  role: "navigation"
134
416
  }, [
135
- m.variant === "header" ? (t(), n(x, { key: 0 }, [
136
- r("div", I, [
417
+ m.variant === "header" ? (t(), r(h, { key: 0 }, [
418
+ a("div", Me, [
137
419
  o(e.$slots, "mobile-trigger", {
138
- isOpen: a.value,
139
- toggle: () => a.value = !a.value
420
+ isOpen: i.value,
421
+ toggle: () => i.value = !i.value
140
422
  }, () => [
141
- r("button", {
423
+ a("button", {
142
424
  type: "button",
143
425
  ref_key: "mobileTriggerRef",
144
- ref: h,
145
- class: i(["p-2 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [u.value.mobileTrigger, l.mobileTriggerClass]]),
146
- onClick: s[0] || (s[0] = (f) => a.value = !a.value)
426
+ ref: k,
427
+ 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)
147
429
  }, [
148
- B(T, {
430
+ c(z, {
149
431
  icon: "lucide:menu",
150
432
  class: "w-5 h-5"
151
433
  }),
152
- s[3] || (s[3] = r("span", { class: "sr-only" }, "Open Menu", -1))
434
+ s[14] || (s[14] = a("span", { class: "sr-only" }, "Open Menu", -1))
153
435
  ], 2)
154
436
  ]),
155
- e.$slots?.logo ? (t(), n("div", {
437
+ e.$slots?.logo ? (t(), r("div", {
156
438
  key: 0,
157
- class: i(["shrink-0", l.logoClass])
439
+ class: n(["shrink-0", l.logoClass])
158
440
  }, [
159
441
  o(e.$slots, "logo", {}, () => [
160
- (t(), y(P(l.logo ? "img" : "div"), {
442
+ (t(), y(E(l.logo ? "img" : "div"), {
161
443
  src: l.logo,
162
444
  class: "h-8 w-auto font-bold text-xl flex items-center gap-2"
163
445
  }, {
164
- default: k(() => [
165
- l.logo ? d("", !0) : (t(), y(G, {
446
+ default: g(() => [
447
+ l.logo ? d("", !0) : (t(), y(W, {
166
448
  key: 0,
167
449
  class: "h-6 w-6"
168
450
  })),
169
- !l.logo && l.logoAlt ? (t(), n("span", J, A(l.logoAlt), 1)) : l.logo ? d("", !0) : (t(), n("span", K, "Brand"))
451
+ !l.logo && l.logoAlt ? (t(), r("span", Oe, I(l.logoAlt), 1)) : l.logo ? d("", !0) : (t(), r("span", Ve, "Brand"))
170
452
  ]),
171
453
  _: 1
172
454
  }, 8, ["src"]))
173
455
  ])
174
456
  ], 2)) : d("", !0),
175
- e.$slots?.left ? (t(), n("div", {
457
+ e.$slots?.left ? (t(), r("div", {
176
458
  key: 1,
177
- class: i(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient", u.value.desktopContent])
459
+ class: n(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient", f.value.desktopContent])
178
460
  }, [
179
461
  o(e.$slots, "left")
180
462
  ], 2)) : d("", !0)
181
463
  ]),
182
- e.$slots?.center ? (t(), n("div", {
464
+ e.$slots?.center ? (t(), r("div", {
183
465
  key: 0,
184
- class: i([
185
- M.value,
186
- // Width constraint to ensure it doesn't crush others, but allows simple resizing
187
- "max-w-full",
188
- l.contentClass
189
- ])
466
+ class: n([A.value, "max-w-full", l.contentClass])
190
467
  }, [
191
468
  o(e.$slots, "center")
192
469
  ], 2)) : d("", !0),
193
- r("div", {
194
- class: i(["flex items-center gap-2 shrink-0 max-w-[40%] z-10", [
470
+ a("div", {
471
+ class: n(["flex items-center gap-2 shrink-0 max-w-[40%] z-10", [
195
472
  {
196
- // Always push to end unless Center is pushing it.
197
- // If Center is 'center' (mx-auto) or 'right' (ml-auto), this naturally falls to end.
198
- // If Center is 'left', we MUST have ml-auto here.
199
473
  "ml-auto": m.centerPosition === "left" || m.centerPosition === "center"
200
- // If center is 'right', Center has ml-auto. Right just sits next to it.
201
- // But if we add ml-auto here too, they might split space? No, flexbox parses strictly.
202
474
  },
203
475
  l.rightClass
204
476
  ]])
205
477
  }, [
206
478
  o(e.$slots, "right")
207
479
  ], 2)
208
- ], 64)) : (t(), n(x, { key: 1 }, [
209
- r("div", {
210
- class: i(u.value.mobileHeader)
480
+ ], 64)) : (t(), r(h, { key: 1 }, [
481
+ a("div", {
482
+ class: n(f.value.mobileHeader)
211
483
  }, [
212
484
  e.$slots?.logo ? o(e.$slots, "logo", { key: 0 }, () => [
213
- s[4] || (s[4] = r("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
485
+ s[15] || (s[15] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
214
486
  ]) : d("", !0),
215
487
  o(e.$slots, "mobile-trigger", {
216
- isOpen: a.value,
217
- toggle: () => a.value = !a.value
488
+ isOpen: i.value,
489
+ toggle: () => i.value = !i.value
218
490
  }, () => [
219
- r("button", {
491
+ a("button", {
220
492
  type: "button",
221
493
  ref_key: "mobileTriggerRef",
222
- ref: h,
223
- class: i(["p-2 -mr-2 text-muted-foreground hover:bg-accent rounded-md", l.mobileTriggerClass]),
224
- onClick: s[1] || (s[1] = (f) => a.value = !a.value)
494
+ ref: k,
495
+ 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)
225
497
  }, [
226
- B(T, {
498
+ c(z, {
227
499
  icon: "lucide:menu",
228
500
  class: "w-5 h-5"
229
501
  }),
230
- s[5] || (s[5] = r("span", { class: "sr-only" }, "Open Menu", -1))
502
+ s[16] || (s[16] = a("span", { class: "sr-only" }, "Open Menu", -1))
231
503
  ], 2)
232
504
  ])
233
505
  ], 2),
234
- r("div", {
235
- class: i(u.value.desktopSidebar)
506
+ a("div", {
507
+ class: n(f.value.desktopSidebar)
236
508
  }, [
237
- e.$slots?.logo ? (t(), n("div", {
509
+ e.$slots?.logo ? (t(), r("div", {
238
510
  key: 0,
239
- class: i(["py-4.5 flex items-center px-4.5 z-10", l.logoClass])
511
+ class: n(["py-4.5 flex items-center px-4.5 z-10", l.logoClass])
240
512
  }, [
241
513
  o(e.$slots, "logo", {}, () => [
242
- s[6] || (s[6] = r("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
514
+ s[17] || (s[17] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
243
515
  ])
244
516
  ], 2)) : d("", !0),
245
- r("div", {
246
- class: i(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin", l.contentClass])
517
+ a("div", {
518
+ class: n(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin", l.contentClass])
247
519
  }, [
248
520
  o(e.$slots, "left"),
249
521
  o(e.$slots, "default"),
250
522
  o(e.$slots, "center")
251
523
  ], 2),
252
- e.$slots?.right ? (t(), n("div", {
524
+ e.$slots?.right ? (t(), r("div", {
253
525
  key: 1,
254
- class: i(["p-2 border-t border-border shrink-0 bg-background mt-auto", l.rightClass])
526
+ class: n(["p-2 border-t border-border shrink-0 bg-background mt-auto", l.rightClass])
255
527
  }, [
256
528
  o(e.$slots, "right")
257
529
  ], 2)) : d("", !0)
258
530
  ], 2)
259
531
  ], 64)),
260
- l.mobileMenuVariant === "dropdown" ? (t(), n(x, { key: 2 }, [
261
- a.value ? (t(), n("div", {
532
+ l.mobileMenuVariant === "dropdown" ? (t(), r(h, { key: 2 }, [
533
+ i.value ? (t(), r("div", {
262
534
  key: 0,
263
535
  ref_key: "mobileMenuRef",
264
- ref: w,
265
- class: i(["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])
536
+ ref: M,
537
+ 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])
266
538
  }, [
267
- r("div", Q, [
539
+ a("div", Ne, [
268
540
  o(e.$slots, "mobile-menu", {}, () => [
269
- r("div", W, [
541
+ a("div", Le, [
270
542
  o(e.$slots, "left")
271
543
  ]),
272
- s[7] || (s[7] = r("div", { class: "h-px bg-border/50 my-1 mx-2" }, null, -1)),
273
- r("div", X, [
544
+ s[18] || (s[18] = a("div", { class: "h-px bg-border/50 my-1 mx-2" }, null, -1)),
545
+ a("div", Re, [
274
546
  o(e.$slots, "center")
275
547
  ])
276
548
  ])
277
549
  ])
278
550
  ], 2)) : d("", !0)
279
- ], 64)) : (t(), y(q, {
551
+ ], 64)) : (t(), y(F, {
280
552
  key: 3,
281
- show: a.value,
282
- "onUpdate:show": s[2] || (s[2] = (f) => a.value = f),
553
+ show: i.value,
554
+ "onUpdate:show": s[6] || (s[6] = (u) => i.value = u),
283
555
  position: "left",
284
556
  size: "sm",
285
- triggerClass: u.value.mobileTrigger,
286
- class: i(["z-60", u.value.mobileTrigger]),
557
+ triggerClass: f.value.mobileTrigger,
558
+ class: n(["z-60", f.value.mobileTrigger]),
287
559
  headerClass: "pl-3! pr-4.5! py-3!",
288
560
  bodyClass: "p-0!"
289
561
  }, {
290
- header: k(() => [
562
+ header: g(() => [
291
563
  o(e.$slots, "logo", {}, () => [
292
- s[8] || (s[8] = D("Brand", -1))
564
+ s[19] || (s[19] = U("Brand", -1))
293
565
  ])
294
566
  ]),
295
- default: k(() => [
296
- r("div", Z, [
297
- m.variant === "header" ? (t(), n("div", _, [
567
+ default: g(() => [
568
+ a("div", Pe, [
569
+ m.variant === "header" ? (t(), r("div", He, [
298
570
  o(e.$slots, "mobile-menu", {}, () => [
299
571
  o(e.$slots, "left"),
300
- s[9] || (s[9] = r("div", { class: "h-px bg-border my-2" }, null, -1)),
572
+ s[20] || (s[20] = a("div", { class: "h-px bg-border my-2" }, null, -1)),
301
573
  o(e.$slots, "center")
302
574
  ])
303
- ])) : (t(), n("div", ee, [
575
+ ])) : (t(), r("div", je, [
304
576
  o(e.$slots, "left"),
305
577
  o(e.$slots, "default"),
306
578
  o(e.$slots, "center")
307
579
  ])),
308
- e.$slots?.right ? (t(), n("div", le, [
580
+ e.$slots?.right ? (t(), r("div", Ae, [
309
581
  o(e.$slots, "right")
310
582
  ])) : d("", !0)
311
583
  ])
@@ -316,5 +588,5 @@ const I = { class: "flex items-center gap-4 shrink-0 z-10" }, J = { key: 1 }, K
316
588
  }
317
589
  });
318
590
  export {
319
- ue as default
591
+ Ze as default
320
592
  };