@datum-cloud/datum-ui 0.3.0-alpha.ffa8392 → 0.4.0

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 (193) hide show
  1. package/README.md +114 -49
  2. package/dist/app-navigation/index.mjs +12 -0
  3. package/dist/app-navigation-DsCKgfPe.mjs +416 -0
  4. package/dist/autocomplete/index.mjs +5 -5
  5. package/dist/{autocomplete-e33EmvBu.mjs → autocomplete-DRB_kSVx.mjs} +3 -3
  6. package/dist/avatar/index.mjs +4 -0
  7. package/dist/avatar-DyLq0xkt.mjs +30 -0
  8. package/dist/avatar-stack/index.mjs +4 -3
  9. package/dist/{avatar-stack-Ci0cnjxv.mjs → avatar-stack-BT0dBswq.mjs} +2 -27
  10. package/dist/badge/index.mjs +1 -1
  11. package/dist/breadcrumb/index.mjs +2 -2
  12. package/dist/{breadcrumb-BGYJgom_.mjs → breadcrumb-CJNaYyk1.mjs} +1 -1
  13. package/dist/button/index.mjs +2 -2
  14. package/dist/{button-C1wRfGtT.mjs → button-0N61fmAR.mjs} +1 -1
  15. package/dist/{button-AzpnV-WB.mjs → button-D6AORsOz.mjs} +1 -1
  16. package/dist/button-group/index.mjs +3 -3
  17. package/dist/{button-group-C1IB2K5s.mjs → button-group-BDk8btAy.mjs} +2 -2
  18. package/dist/calendar/index.mjs +3 -3
  19. package/dist/{calendar-DlIHeWb0.mjs → calendar-BtfraIvX.mjs} +2 -2
  20. package/dist/{calendar-date-picker-BBAg78Lg.mjs → calendar-date-picker-B9mxJM7f.mjs} +6 -5
  21. package/dist/card/index.mjs +2 -2
  22. package/dist/{card-3Kd0VdNf.mjs → card-BiHXFt4s.mjs} +1 -1
  23. package/dist/chart/index.mjs +2 -2
  24. package/dist/{chart-BZqUKpkh.mjs → chart-CL0i-xIt.mjs} +1 -1
  25. package/dist/checkbox/index.mjs +2 -3
  26. package/dist/checkbox-CQrjygFt.mjs +34 -0
  27. package/dist/command/index.mjs +3 -3
  28. package/dist/{command-DQlO6uTL.mjs → command-DVroicgn.mjs} +2 -2
  29. package/dist/components/base/avatar/index.d.ts +2 -0
  30. package/dist/components/base/avatar/index.d.ts.map +1 -0
  31. package/dist/components/base/index.d.ts +2 -0
  32. package/dist/components/base/index.d.ts.map +1 -1
  33. package/dist/components/base/sidebar/index.d.ts +2 -0
  34. package/dist/components/base/sidebar/index.d.ts.map +1 -0
  35. package/dist/components/{features → base}/sidebar/sidebar.d.ts +1 -1
  36. package/dist/components/base/sidebar/sidebar.d.ts.map +1 -0
  37. package/dist/components/base/skeleton/index.d.ts +1 -1
  38. package/dist/components/base/skeleton/index.d.ts.map +1 -1
  39. package/dist/components/base/skeleton/skeleton.d.ts +22 -0
  40. package/dist/components/base/skeleton/skeleton.d.ts.map +1 -0
  41. package/dist/components/base/typography/typography.d.ts +2 -2
  42. package/dist/components/features/app-navigation/app-navigation.d.ts +14 -0
  43. package/dist/components/features/app-navigation/app-navigation.d.ts.map +1 -0
  44. package/dist/components/features/app-navigation/index.d.ts +4 -0
  45. package/dist/components/features/app-navigation/index.d.ts.map +1 -0
  46. package/dist/components/features/{sidebar/nav-main.d.ts → app-navigation/nav-menu.d.ts} +3 -3
  47. package/dist/components/features/app-navigation/nav-menu.d.ts.map +1 -0
  48. package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts +2 -1
  49. package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts.map +1 -1
  50. package/dist/components/features/data-table/components/active-filters.d.ts +5 -0
  51. package/dist/components/features/data-table/components/active-filters.d.ts.map +1 -0
  52. package/dist/components/features/data-table/components/column-header.d.ts.map +1 -1
  53. package/dist/components/features/data-table/components/content.d.ts.map +1 -1
  54. package/dist/components/features/data-table/components/loading.d.ts.map +1 -1
  55. package/dist/components/features/data-table/components/pagination.d.ts.map +1 -1
  56. package/dist/components/features/data-table/components/search.d.ts +1 -1
  57. package/dist/components/features/data-table/components/search.d.ts.map +1 -1
  58. package/dist/components/features/data-table/core/client-provider.d.ts +5 -7
  59. package/dist/components/features/data-table/core/client-provider.d.ts.map +1 -1
  60. package/dist/components/features/data-table/core/data-table-context.d.ts +23 -0
  61. package/dist/components/features/data-table/core/data-table-context.d.ts.map +1 -1
  62. package/dist/components/features/data-table/core/filter-engine.d.ts +5 -0
  63. package/dist/components/features/data-table/core/filter-engine.d.ts.map +1 -1
  64. package/dist/components/features/data-table/core/server-provider.d.ts +4 -7
  65. package/dist/components/features/data-table/core/server-provider.d.ts.map +1 -1
  66. package/dist/components/features/data-table/core/store.d.ts.map +1 -1
  67. package/dist/components/features/data-table/data-table.d.ts +1 -0
  68. package/dist/components/features/data-table/data-table.d.ts.map +1 -1
  69. package/dist/components/features/data-table/filters/checkbox-filter.d.ts +1 -1
  70. package/dist/components/features/data-table/filters/checkbox-filter.d.ts.map +1 -1
  71. package/dist/components/features/data-table/filters/date-picker-filter.d.ts +1 -1
  72. package/dist/components/features/data-table/filters/date-picker-filter.d.ts.map +1 -1
  73. package/dist/components/features/data-table/filters/select-filter.d.ts +1 -1
  74. package/dist/components/features/data-table/filters/select-filter.d.ts.map +1 -1
  75. package/dist/components/features/data-table/hooks/index.d.ts +1 -1
  76. package/dist/components/features/data-table/hooks/index.d.ts.map +1 -1
  77. package/dist/components/features/data-table/hooks/use-data-table-client.d.ts +11 -10
  78. package/dist/components/features/data-table/hooks/use-data-table-client.d.ts.map +1 -1
  79. package/dist/components/features/data-table/hooks/use-data-table-server.d.ts +12 -17
  80. package/dist/components/features/data-table/hooks/use-data-table-server.d.ts.map +1 -1
  81. package/dist/components/features/data-table/hooks/use-selectors.d.ts +4 -33
  82. package/dist/components/features/data-table/hooks/use-selectors.d.ts.map +1 -1
  83. package/dist/components/features/data-table/index.d.ts +2 -4
  84. package/dist/components/features/data-table/index.d.ts.map +1 -1
  85. package/dist/components/features/data-table/types.d.ts +45 -31
  86. package/dist/components/features/data-table/types.d.ts.map +1 -1
  87. package/dist/components/features/index.d.ts +1 -1
  88. package/dist/components/features/index.d.ts.map +1 -1
  89. package/dist/data-table/index.mjs +659 -414
  90. package/dist/date-picker/index.mjs +8 -8
  91. package/dist/dialog/index.mjs +3 -3
  92. package/dist/{dialog-B2EZJW-q.mjs → dialog-B0B3Kbfk.mjs} +1 -1
  93. package/dist/{dialog-Bm4trnic.mjs → dialog-DdrHeboM.mjs} +1 -1
  94. package/dist/dropdown/index.mjs +1 -1
  95. package/dist/{dropdown-DLZXinlT.mjs → dropdown-Cdx7rOKv.mjs} +1 -1
  96. package/dist/{dropdown-menu-Xahj42Gr.mjs → dropdown-menu-CdShrDz_.mjs} +1 -1
  97. package/dist/dropzone/index.mjs +3 -3
  98. package/dist/{dropzone-CGyjGnER.mjs → dropzone-B6kSN3DY.mjs} +3 -3
  99. package/dist/empty-content/index.mjs +1 -1
  100. package/dist/{empty-content-ByvwjHUs.mjs → empty-content-B1lwLr40.mjs} +1 -1
  101. package/dist/form/index.mjs +14 -14
  102. package/dist/grid/index.mjs +1 -1
  103. package/dist/hooks/index.mjs +2 -2
  104. package/dist/hover-card/index.mjs +2 -2
  105. package/dist/{hover-card-BNrHtWy6.mjs → hover-card-CEIauuie.mjs} +1 -1
  106. package/dist/icons/index.mjs +2 -2
  107. package/dist/index.mjs +65 -64
  108. package/dist/input/index.mjs +3 -3
  109. package/dist/{input-D241oNEm.mjs → input-CYFN0Ap2.mjs} +1 -1
  110. package/dist/{input-C-ZmsHkk.mjs → input-DEMoi_8F.mjs} +1 -1
  111. package/dist/input-group/index.mjs +5 -5
  112. package/dist/{input-group-uobp64zr.mjs → input-group-DJgYpOlq.mjs} +4 -4
  113. package/dist/input-number/index.mjs +4 -4
  114. package/dist/{input-number-CEMgBk8-.mjs → input-number-Cuy9CCg_.mjs} +3 -3
  115. package/dist/input-with-addons/index.mjs +1 -1
  116. package/dist/label/index.mjs +2 -3
  117. package/dist/{label-byipFGok.mjs → label-mOg07fuQ.mjs} +12 -1
  118. package/dist/{link-button-TIF2Zdrk.mjs → link-button-Cby0p4LW.mjs} +1 -1
  119. package/dist/loader-overlay/index.mjs +1 -1
  120. package/dist/{loader-overlay-CbxcjyHV.mjs → loader-overlay-8IWX_1Ga.mjs} +1 -1
  121. package/dist/map/index.mjs +12 -12
  122. package/dist/{map-DupFPkJT.mjs → map-CaI1EshG.mjs} +8 -8
  123. package/dist/more-actions/index.mjs +3 -3
  124. package/dist/{more-actions-D6OyqZQS.mjs → more-actions-BO5ikUxY.mjs} +3 -3
  125. package/dist/page-title/index.mjs +1 -1
  126. package/dist/popover/index.mjs +2 -2
  127. package/dist/{popover-CYzXdp9q.mjs → popover-ugw5MpuT.mjs} +1 -1
  128. package/dist/radio-group/index.mjs +2 -2
  129. package/dist/{radio-group-WZCIDQCH.mjs → radio-group-_gMymwnb.mjs} +1 -1
  130. package/dist/select/index.mjs +2 -2
  131. package/dist/{select-BznmyqBr.mjs → select-BZOKWjlH.mjs} +2 -2
  132. package/dist/separator/index.mjs +2 -2
  133. package/dist/{separator-T2ppyD-8.mjs → separator-BzyALya2.mjs} +1 -1
  134. package/dist/sheet/index.mjs +3 -3
  135. package/dist/{sheet-Bmayi68h.mjs → sheet-BX6lae56.mjs} +1 -1
  136. package/dist/{sheet-b9V9soz8.mjs → sheet-DAcFjaGw.mjs} +1 -1
  137. package/dist/sidebar/index.mjs +9 -10
  138. package/dist/{sidebar-D2zE7rPy.mjs → sidebar-B3EV33mG.mjs} +11 -420
  139. package/dist/skeleton/index.mjs +3 -2
  140. package/dist/{skeleton-D3qW_KvG.mjs → skeleton-2vQ0vFQk.mjs} +1 -1
  141. package/dist/skeleton-BgOwIgE0.mjs +28 -0
  142. package/dist/spinner/index.mjs +2 -2
  143. package/dist/{spinner-CKTGKv5n.mjs → spinner-osyXAlhr.mjs} +1 -1
  144. package/dist/stepper/index.mjs +3 -3
  145. package/dist/{stepper-B07hPGG7.mjs → stepper-BMsn7I78.mjs} +1 -1
  146. package/dist/styles/root.css +3 -0
  147. package/dist/switch/index.mjs +2 -2
  148. package/dist/{switch-CujyyOi6.mjs → switch-C60FpEal.mjs} +1 -1
  149. package/dist/table/index.mjs +2 -2
  150. package/dist/{table-fZEvpdD-.mjs → table-Cl3UzIhI.mjs} +1 -1
  151. package/dist/tabs/index.mjs +1 -1
  152. package/dist/tag-input/index.mjs +3 -3
  153. package/dist/{tag-input-BI8IRBDH.mjs → tag-input-DR2gukhL.mjs} +3 -3
  154. package/dist/task-queue/index.mjs +5 -5
  155. package/dist/{task-queue-dropdown-D6k067_W.mjs → task-queue-dropdown-C9KHKbGh.mjs} +8 -8
  156. package/dist/textarea/index.mjs +3 -3
  157. package/dist/{textarea-BSkDKiej.mjs → textarea-CVo38n3S.mjs} +1 -1
  158. package/dist/{textarea-BZ85VFsJ.mjs → textarea-CZF5n57i.mjs} +1 -1
  159. package/dist/theme/index.mjs +1 -1
  160. package/dist/{to-api-format-CXQ7knV4.mjs → to-api-format-naIpF-NI.mjs} +7 -7
  161. package/dist/toast/index.mjs +1 -1
  162. package/dist/tooltip/index.mjs +2 -2
  163. package/dist/{tooltip-CbCWKEzu.mjs → tooltip-CuX2jQA9.mjs} +1 -1
  164. package/dist/typography/index.mjs +1 -1
  165. package/dist/{use-copy-to-clipboard-CC2hhyYI.mjs → use-copy-to-clipboard-n29wJwvW.mjs} +1 -1
  166. package/dist/{use-stepper-CU75TdjZ.mjs → use-stepper-DigoyHhX.mjs} +16 -16
  167. package/dist/visually-hidden/index.mjs +1 -1
  168. package/package.json +88 -77
  169. package/dist/checkbox-DB5_3E_l.mjs +0 -22
  170. package/dist/checkbox-DMC1Mhaw.mjs +0 -17
  171. package/dist/components/features/data-table/hooks/use-data-table-context.d.ts +0 -2
  172. package/dist/components/features/data-table/hooks/use-data-table-context.d.ts.map +0 -1
  173. package/dist/components/features/sidebar/app-sidebar.d.ts +0 -14
  174. package/dist/components/features/sidebar/app-sidebar.d.ts.map +0 -1
  175. package/dist/components/features/sidebar/index.d.ts +0 -4
  176. package/dist/components/features/sidebar/index.d.ts.map +0 -1
  177. package/dist/components/features/sidebar/nav-main.d.ts.map +0 -1
  178. package/dist/components/features/sidebar/sidebar.d.ts.map +0 -1
  179. package/dist/label-ClzLBWRT.mjs +0 -16
  180. /package/dist/{badge-bFgeYceE.mjs → badge-BgFj4Nsc.mjs} +0 -0
  181. /package/dist/{col-Cg_2sTDA.mjs → col-C9PDhvm5.mjs} +0 -0
  182. /package/dist/{icon-wrapper-9ticVbRL.mjs → icon-wrapper-BBK4z4tj.mjs} +0 -0
  183. /package/dist/{input-with-addons-DzuyGa6G.mjs → input-with-addons-B8rzNhpq.mjs} +0 -0
  184. /package/dist/{map-leaflet-imports-CgEyVRnp.mjs → map-leaflet-imports-J7w1V7mh.mjs} +0 -0
  185. /package/dist/{page-title-CrYQ091u.mjs → page-title-DWteBy1E.mjs} +0 -0
  186. /package/dist/{spinner.icon-Bg8zgGh0.mjs → spinner.icon-C0MbtgqX.mjs} +0 -0
  187. /package/dist/{tabs-B7cW59gB.mjs → tabs-DJU7JA3h.mjs} +0 -0
  188. /package/dist/{theme.provider-BG3cS9xe.mjs → theme.provider-TUHlMsjM.mjs} +0 -0
  189. /package/dist/{typography-DdrxIJMd.mjs → typography-Iap9fU5P.mjs} +0 -0
  190. /package/dist/{use-debounce-Dc95PFRX.mjs → use-debounce-MnfjH51L.mjs} +0 -0
  191. /package/dist/{use-toast-BLBGnOC3.mjs → use-toast-By9HuFwP.mjs} +0 -0
  192. /package/dist/{utils-Bfgoe-Gm.mjs → utils-DJboNGQM.mjs} +0 -0
  193. /package/dist/{visuallyhidden-CfBnXfvh.mjs → visuallyhidden-BJsQCmg-.mjs} +0 -0
@@ -0,0 +1,416 @@
1
+ import { t as cn } from "./cn-DWCc1QRE.mjs";
2
+ import { t as Icon } from "./icon-wrapper-BBK4z4tj.mjs";
3
+ import { n as CollapsibleContent, r as CollapsibleTrigger, t as Collapsible } from "./collapsible-Dw71o2um.mjs";
4
+ import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, c as SidebarHeader, d as SidebarMenu, h as SidebarMenuItem, i as SidebarGroup, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, w as useSidebar } from "./sidebar-B3EV33mG.mjs";
5
+ import { ChevronRight, ExternalLinkIcon } from "lucide-react";
6
+ import { Fragment, useCallback, useEffect, useRef, useState } from "react";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
+ import { motion } from "motion/react";
9
+
10
+ //#region src/components/features/app-navigation/nav-menu.tsx
11
+ const NAV_STYLES = {
12
+ menuButton: "rounded-xl h-8 font-normal text-xs transition-all px-2 py-1 data-[active=true]:bg-sidebar data-[active=true]:text-foreground data-[active=true]:text-sidebar-primary data-[active=true]:[&>svg]:text-primary hover:bg-sidebar hover:text-sidebar-primary hover:[&>svg]:text-sidebar-primary hover:bg-sidebar-accent data-[active=true]:bg-sidebar-accent hover:font-semibold data-[active=true]:hover:[&>svg]:text-sidebar-primary transition-colors duration-300 gap-2.5 text-foreground [&>svg]:text-icon-primary",
13
+ disabled: "pointer-events-none opacity-50",
14
+ icon: "duration-300 transition-all",
15
+ iconSmall: "size-4 duration-300 transition-all"
16
+ };
17
+ function NavIcon({ icon: IconComponent, className, size = "default" }) {
18
+ if (!IconComponent) return null;
19
+ return /* @__PURE__ */ jsx(Icon, {
20
+ icon: IconComponent,
21
+ className: cn(size === "small" ? NAV_STYLES.iconSmall : NAV_STYLES.icon, className)
22
+ });
23
+ }
24
+ NavIcon.displayName = "NavIcon";
25
+ function NavSidebarMenuButton({ ref, item, isActive, disableTooltip, className, children, asChild, ...props }) {
26
+ return /* @__PURE__ */ jsx(SidebarMenuButton, {
27
+ ref,
28
+ tooltip: disableTooltip ? void 0 : item.title,
29
+ isActive,
30
+ disabled: item.disabled,
31
+ asChild,
32
+ className: cn(NAV_STYLES.menuButton, item.disabled && NAV_STYLES.disabled, className),
33
+ ...props,
34
+ children: asChild ? children : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(NavIcon, { icon: item.icon }), children] })
35
+ });
36
+ }
37
+ NavSidebarMenuButton.displayName = "NavSidebarMenuButton";
38
+ function NavMenu({ ref, className, items, currentPath, linkComponent: LinkComp = "a", overrideState, itemClassName, disableTooltip, closeOnNavigation, ...props }) {
39
+ const pathname = currentPath;
40
+ const { state: sidebarState, isMobile, closeForNavigation, setOpen } = useSidebar();
41
+ const [openItems, setOpenItems] = useState({});
42
+ const isInitialMount = useRef(true);
43
+ const previousOpenItems = useRef({});
44
+ const previousPathname = useRef(pathname);
45
+ const state = overrideState ?? sidebarState;
46
+ const previousState = useRef(state);
47
+ useEffect(() => {
48
+ previousOpenItems.current = openItems;
49
+ if (isInitialMount.current) isInitialMount.current = false;
50
+ }, [openItems]);
51
+ useEffect(() => {
52
+ previousPathname.current = pathname;
53
+ }, [pathname]);
54
+ const activeNavItem = useCallback((item) => {
55
+ const normalize = (p) => {
56
+ let result = p.startsWith("/") ? p : `/${p}`;
57
+ if (result !== "/" && result.endsWith("/")) result = result.slice(0, -1);
58
+ return result;
59
+ };
60
+ const cleanCurrentPath = normalize(pathname);
61
+ if (!item.href) return false;
62
+ const cleanNavPath = normalize(item.href);
63
+ if (cleanNavPath === "/") return cleanCurrentPath === "/";
64
+ const hasActiveDescendant = (navItem) => {
65
+ if (!navItem.children || navItem.children.length === 0) return false;
66
+ return navItem.children.some((child) => {
67
+ if (!child.href) return hasActiveDescendant(child);
68
+ const cleanChildPath = normalize(child.href);
69
+ if (cleanCurrentPath === cleanChildPath || cleanCurrentPath.startsWith(`${cleanChildPath}/`)) return true;
70
+ return hasActiveDescendant(child);
71
+ });
72
+ };
73
+ if ((item.children || []).length > 0) {
74
+ if (hasActiveDescendant(item)) return false;
75
+ return cleanCurrentPath === cleanNavPath;
76
+ }
77
+ const isExcluded = item.excludePaths?.some((excludePath) => {
78
+ const cleanExcludePath = normalize(excludePath);
79
+ return cleanCurrentPath === cleanExcludePath || cleanCurrentPath.startsWith(`${cleanExcludePath}/`);
80
+ }) ?? false;
81
+ const isDirectMatch = cleanCurrentPath === cleanNavPath || !isExcluded && cleanCurrentPath.startsWith(`${cleanNavPath}/`);
82
+ const isTabChildMatch = item.tabChildLinks?.some((childPath) => {
83
+ const cleanChildPath = normalize(childPath);
84
+ return cleanCurrentPath === cleanChildPath || cleanCurrentPath.startsWith(`${cleanChildPath}/`);
85
+ }) ?? false;
86
+ return isDirectMatch || isTabChildMatch;
87
+ }, [pathname]);
88
+ const hasActiveDescendant = useCallback((item) => {
89
+ if (activeNavItem(item)) return true;
90
+ if (item.children) return item.children.some((child) => hasActiveDescendant(child));
91
+ return false;
92
+ }, [activeNavItem]);
93
+ const findItemByHref = useCallback((href, items) => {
94
+ for (const item of items) {
95
+ if (item.href === href) return item;
96
+ if (item.children) {
97
+ const found = findItemByHref(href, item.children);
98
+ if (found) return found;
99
+ }
100
+ }
101
+ return null;
102
+ }, []);
103
+ useEffect(() => {
104
+ if (previousState.current === "expanded" && state === "collapsed") setOpenItems((prev) => {
105
+ const newOpenItems = {};
106
+ Object.keys(prev).forEach((itemHref) => {
107
+ const item = findItemByHref(itemHref, items);
108
+ if (item && hasActiveDescendant(item)) newOpenItems[itemHref] = true;
109
+ });
110
+ return newOpenItems;
111
+ });
112
+ previousState.current = state;
113
+ }, [
114
+ state,
115
+ items,
116
+ hasActiveDescendant,
117
+ findItemByHref
118
+ ]);
119
+ const toggleItem = (itemId) => {
120
+ setOpenItems((prev) => ({
121
+ ...prev,
122
+ [itemId]: !prev[itemId]
123
+ }));
124
+ };
125
+ const handleNavigation = useCallback(() => {
126
+ if (closeOnNavigation && !isMobile) closeForNavigation();
127
+ }, [
128
+ closeOnNavigation,
129
+ isMobile,
130
+ closeForNavigation
131
+ ]);
132
+ const renderNavItem = (item, level = 0) => {
133
+ if ("hidden" in item && item.hidden) return null;
134
+ const itemKey = `${item.title}-${item.href || ""}-${level}`;
135
+ if ("type" in item && item.type === "group") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(SidebarGroup, {
136
+ className: "mb-2 p-0! px-2",
137
+ children: [item.title && /* @__PURE__ */ jsx(SidebarGroupLabel, {
138
+ className: "lowercase group-data-[state=collapsed]:hidden first-letter:uppercase",
139
+ children: item.title
140
+ }), /* @__PURE__ */ jsx(SidebarGroupContent, {
141
+ className: "flex flex-col gap-1",
142
+ children: (item.children || []).map((child) => renderNavItem(child, level + 1))
143
+ })]
144
+ }), /* @__PURE__ */ jsx(SidebarSeparator, { className: "my-2 hidden group-data-[state=collapsed]:block" })] }, itemKey);
145
+ const isActive = activeNavItem(item);
146
+ const pathnameExistInDropdowns = item.children?.filter((dropdownItem) => pathname.includes(dropdownItem.href)) || [];
147
+ const hasChildren = (item.children || []).length > 0;
148
+ const isOpen = openItems[item.href] !== void 0 ? openItems[item.href] : Boolean(pathnameExistInDropdowns.length);
149
+ const hasActiveChild = pathnameExistInDropdowns.length > 0;
150
+ if (state === "collapsed" && !isMobile && level <= 2 && hasChildren) return /* @__PURE__ */ jsxs(Fragment, { children: [
151
+ item.showSeparatorAbove && /* @__PURE__ */ jsx(SidebarSeparator, { className: "my-1" }),
152
+ /* @__PURE__ */ jsx(SidebarMenu, { children: /* @__PURE__ */ jsxs("div", {
153
+ className: "flex flex-col px-2",
154
+ children: [/* @__PURE__ */ jsx(NavSidebarMenuButton, {
155
+ item,
156
+ isActive,
157
+ disableTooltip,
158
+ className: itemClassName,
159
+ onClick: () => {
160
+ setOpen(true);
161
+ if (item.href) setOpenItems((prev) => ({
162
+ ...prev,
163
+ [item.href]: true
164
+ }));
165
+ }
166
+ }), hasActiveChild && /* @__PURE__ */ jsx(motion.div, {
167
+ variants: {
168
+ hidden: { opacity: 0 },
169
+ visible: {
170
+ opacity: 1,
171
+ transition: {
172
+ staggerChildren: .05,
173
+ delayChildren: .1
174
+ }
175
+ }
176
+ },
177
+ initial: "hidden",
178
+ animate: "visible",
179
+ className: "flex flex-col gap-0.5",
180
+ children: item.children?.map((subItem) => {
181
+ const isSubItemActive = activeNavItem(subItem);
182
+ return /* @__PURE__ */ jsx(motion.div, {
183
+ variants: {
184
+ hidden: { opacity: 0 },
185
+ visible: {
186
+ opacity: 1,
187
+ transition: {
188
+ duration: .2,
189
+ ease: "easeOut"
190
+ }
191
+ }
192
+ },
193
+ children: /* @__PURE__ */ jsx(SidebarMenuButton, {
194
+ tooltip: subItem.title,
195
+ isActive: isSubItemActive,
196
+ className: "h-6 p-0 group-data-[collapsible=icon]:h-6! group-data-[collapsible=icon]:p-0!",
197
+ asChild: true,
198
+ children: /* @__PURE__ */ jsx(LinkComp, {
199
+ className: "flex items-center justify-center",
200
+ ...LinkComp === "a" ? { href: subItem.href || "" } : { to: subItem.href || "" },
201
+ onClick: () => {
202
+ handleNavigation();
203
+ },
204
+ children: /* @__PURE__ */ jsx("span", { className: cn("size-1 rounded-full", isSubItemActive ? "bg-primary" : "bg-sidebar-primary-foreground") })
205
+ })
206
+ })
207
+ }, `collapsed-dot-${subItem.href}-${level}`);
208
+ })
209
+ })]
210
+ }) }),
211
+ item.showSeparatorBelow && /* @__PURE__ */ jsx(SidebarSeparator, { className: "my-2" })
212
+ ] }, itemKey);
213
+ if (hasChildren && level <= 3) return /* @__PURE__ */ jsxs(Fragment, { children: [
214
+ item.showSeparatorAbove && /* @__PURE__ */ jsx(SidebarSeparator, { className: "my-2" }),
215
+ /* @__PURE__ */ jsx(SidebarMenu, {
216
+ className: "px-2",
217
+ children: /* @__PURE__ */ jsx(Collapsible, {
218
+ asChild: true,
219
+ open: isOpen,
220
+ onOpenChange: (open) => {
221
+ if (item.href) setOpenItems((prev) => ({
222
+ ...prev,
223
+ [item.href]: open
224
+ }));
225
+ },
226
+ className: "group/collapsible",
227
+ children: /* @__PURE__ */ jsxs(SidebarMenuItem, { children: [/* @__PURE__ */ jsx(CollapsibleTrigger, {
228
+ asChild: true,
229
+ className: "w-full",
230
+ children: /* @__PURE__ */ jsxs(NavSidebarMenuButton, {
231
+ item,
232
+ isActive,
233
+ disableTooltip,
234
+ className: itemClassName,
235
+ children: [/* @__PURE__ */ jsx("span", { children: item.title }), /* @__PURE__ */ jsx(Icon, {
236
+ icon: ChevronRight,
237
+ className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"
238
+ })]
239
+ })
240
+ }), /* @__PURE__ */ jsx(CollapsibleContent, {
241
+ className: "data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up overflow-hidden",
242
+ children: /* @__PURE__ */ jsx("div", {
243
+ style: {
244
+ minHeight: 0,
245
+ overflow: "hidden"
246
+ },
247
+ children: /* @__PURE__ */ jsx(motion.div, {
248
+ variants: {
249
+ hidden: { opacity: 0 },
250
+ visible: {
251
+ opacity: 1,
252
+ transition: {
253
+ staggerChildren: .05,
254
+ delayChildren: .1
255
+ }
256
+ }
257
+ },
258
+ initial: isInitialMount.current || previousOpenItems.current[item.href] === openItems[item.href] && previousState.current === state && previousPathname.current === pathname && !hasActiveChild ? "visible" : "hidden",
259
+ animate: isOpen ? "visible" : "hidden",
260
+ children: /* @__PURE__ */ jsx(SidebarMenuSub, {
261
+ className: cn(level >= 1 ? "mr-0 pr-[.1rem]" : "", level === 2 ? "pl-4" : "", level === 3 ? "pl-6" : "", "mr-0 gap-0.5 pr-0"),
262
+ children: item.children?.map((subItem, index) => /* @__PURE__ */ jsx(motion.div, {
263
+ variants: {
264
+ hidden: { opacity: 0 },
265
+ visible: {
266
+ opacity: 1,
267
+ transition: {
268
+ duration: .2,
269
+ ease: "easeOut"
270
+ }
271
+ }
272
+ },
273
+ children: renderNavItem(subItem, level + 1)
274
+ }, `${subItem.href}-${level}-${index}`))
275
+ })
276
+ }, `collapsible-${item.href}-${isOpen}`)
277
+ })
278
+ })] })
279
+ }, `collapsed-item-drop-down-item-${item.title}-${level}`)
280
+ }),
281
+ item.showSeparatorBelow && /* @__PURE__ */ jsx(SidebarSeparator, { className: "my-2" })
282
+ ] }, itemKey);
283
+ const renderCollapsible = (currentItem, currentLevel) => {
284
+ const currentItemIsActive = activeNavItem(currentItem);
285
+ const currentItemPathnameExistInDropdowns = currentItem.children?.filter((dropdownItem) => pathname.includes(dropdownItem.href)) || [];
286
+ return /* @__PURE__ */ jsx(Collapsible, {
287
+ asChild: true,
288
+ open: openItems[currentItem.href] || Boolean(currentItemPathnameExistInDropdowns.length),
289
+ onOpenChange: (open) => {
290
+ if (currentItem.href) setOpenItems((prev) => ({
291
+ ...prev,
292
+ [currentItem.href]: open
293
+ }));
294
+ },
295
+ className: "group/collapsible",
296
+ children: /* @__PURE__ */ jsxs(SidebarMenuItem, { children: [/* @__PURE__ */ jsx(CollapsibleTrigger, {
297
+ asChild: true,
298
+ className: "w-full",
299
+ children: /* @__PURE__ */ jsxs(NavSidebarMenuButton, {
300
+ item: currentItem,
301
+ isActive: currentItemIsActive,
302
+ disableTooltip,
303
+ className: itemClassName,
304
+ children: [/* @__PURE__ */ jsx("span", { children: currentItem.title }), /* @__PURE__ */ jsx(Icon, {
305
+ icon: ChevronRight,
306
+ className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"
307
+ })]
308
+ })
309
+ }), /* @__PURE__ */ jsx(CollapsibleContent, {
310
+ className: "data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up overflow-hidden",
311
+ children: /* @__PURE__ */ jsx("div", {
312
+ style: {
313
+ minHeight: 0,
314
+ overflow: "hidden"
315
+ },
316
+ children: /* @__PURE__ */ jsx(SidebarMenuSub, {
317
+ className: cn(currentLevel >= 1 ? "mr-0 pr-[.1rem]" : "", "gap-0.5"),
318
+ children: currentItem.children?.map((subItem) => renderNavItem(subItem, currentLevel + 1))
319
+ })
320
+ })
321
+ })] }, `collapsible-sidebar-${currentItem.title}-${currentLevel}`)
322
+ }, `collapsed-item-drop-down-item-${currentItem.title}-${currentLevel}`);
323
+ };
324
+ if (level <= 2 && hasChildren) return /* @__PURE__ */ jsxs(Fragment, { children: [
325
+ item.showSeparatorAbove && /* @__PURE__ */ jsx(SidebarSeparator, { className: "my-2" }),
326
+ /* @__PURE__ */ jsx(SidebarMenu, {
327
+ className: "px-2",
328
+ children: renderCollapsible(item, level)
329
+ }),
330
+ item.showSeparatorBelow && /* @__PURE__ */ jsx(SidebarSeparator, { className: "my-2" })
331
+ ] }, itemKey);
332
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
333
+ item.showSeparatorAbove && /* @__PURE__ */ jsx(SidebarSeparator, { className: "my-2" }),
334
+ /* @__PURE__ */ jsx(SidebarMenu, {
335
+ className: cn(`level_${level} px-2`),
336
+ children: /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsx(NavSidebarMenuButton, {
337
+ asChild: true,
338
+ item,
339
+ isActive: isActive && !hasActiveChild,
340
+ disableTooltip,
341
+ onClick: () => hasChildren && toggleItem(item.href),
342
+ className: cn(level >= 1 && "h-6", itemClassName),
343
+ children: item.type === "externalLink" ? /* @__PURE__ */ jsxs("a", {
344
+ href: item.href || "",
345
+ target: "_blank",
346
+ rel: "noopener noreferrer",
347
+ className: "flex items-center justify-between",
348
+ children: [/* @__PURE__ */ jsxs("div", {
349
+ className: "flex items-center gap-2",
350
+ children: [item?.icon && /* @__PURE__ */ jsx(Icon, {
351
+ icon: item.icon,
352
+ className: "size-4 transition-all duration-300"
353
+ }), /* @__PURE__ */ jsx("span", { children: item.title })]
354
+ }), /* @__PURE__ */ jsx(Icon, {
355
+ icon: ExternalLinkIcon,
356
+ className: "ml-auto size-4"
357
+ })]
358
+ }) : /* @__PURE__ */ jsxs(LinkComp, {
359
+ ...LinkComp === "a" ? { href: item.href || "" } : { to: item.href || "" },
360
+ onClick: handleNavigation,
361
+ onMouseEnter: () => item.onPrefetch?.(),
362
+ children: [item?.icon && /* @__PURE__ */ jsx(Icon, {
363
+ icon: item.icon,
364
+ className: "text-sidebar-primary transition-all duration-300"
365
+ }), /* @__PURE__ */ jsx("span", { children: item.title })]
366
+ })
367
+ }) })
368
+ }),
369
+ item.showSeparatorBelow && /* @__PURE__ */ jsx(SidebarSeparator, { className: "my-2" })
370
+ ] }, itemKey);
371
+ };
372
+ return /* @__PURE__ */ jsx("ul", {
373
+ ref,
374
+ "data-sidebar": "menu",
375
+ className: cn("flex h-full w-full min-w-0 flex-col gap-0.5 py-2", className),
376
+ ...props,
377
+ children: (items || []).map((item) => renderNavItem(item))
378
+ });
379
+ }
380
+ NavMenu.displayName = "NavMenu";
381
+
382
+ //#endregion
383
+ //#region src/components/features/app-navigation/app-navigation.tsx
384
+ function AppNavigation({ navItems, title, closeOnNavigation, defaultOpen, currentPath, linkComponent, ...props }) {
385
+ const { setOpen } = useSidebar();
386
+ useEffect(() => {
387
+ if (defaultOpen === false) setOpen(false);
388
+ }, [defaultOpen, setOpen]);
389
+ return /* @__PURE__ */ jsx(Sidebar, {
390
+ collapsible: props.collapsible ?? "offcanvas",
391
+ ...props,
392
+ children: /* @__PURE__ */ jsxs(SidebarContent, {
393
+ className: "gap-0",
394
+ children: [
395
+ title && /* @__PURE__ */ jsx(SidebarHeader, {
396
+ className: "px-4 pt-4 pb-0",
397
+ children: title
398
+ }),
399
+ navItems.length > 0 && /* @__PURE__ */ jsx(NavMenu, {
400
+ className: "h-fit py-2",
401
+ items: navItems,
402
+ currentPath,
403
+ linkComponent,
404
+ closeOnNavigation
405
+ }),
406
+ props.collapsible !== "none" && /* @__PURE__ */ jsx(SidebarFooter, {
407
+ className: "mt-auto p-2",
408
+ children: /* @__PURE__ */ jsx(SidebarTrigger, {})
409
+ })
410
+ ]
411
+ })
412
+ });
413
+ }
414
+
415
+ //#endregion
416
+ export { NavMenu as n, AppNavigation as t };
@@ -1,7 +1,7 @@
1
- import "../utils-Bfgoe-Gm.mjs";
2
- import "../dialog-Bm4trnic.mjs";
3
- import "../command-DQlO6uTL.mjs";
4
- import "../popover-CYzXdp9q.mjs";
5
- import { t as Autocomplete } from "../autocomplete-e33EmvBu.mjs";
1
+ import "../utils-DJboNGQM.mjs";
2
+ import "../dialog-DdrHeboM.mjs";
3
+ import "../command-DVroicgn.mjs";
4
+ import "../popover-ugw5MpuT.mjs";
5
+ import { t as Autocomplete } from "../autocomplete-DRB_kSVx.mjs";
6
6
 
7
7
  export { Autocomplete };
@@ -1,7 +1,7 @@
1
1
  import { t as cn } from "./cn-DWCc1QRE.mjs";
2
- import { a as CommandInput, i as CommandGroup, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "./command-DQlO6uTL.mjs";
3
- import { i as PopoverTrigger, r as PopoverContent, t as Popover } from "./popover-CYzXdp9q.mjs";
4
- import { t as LoaderOverlay } from "./loader-overlay-CbxcjyHV.mjs";
2
+ import { a as CommandInput, i as CommandGroup, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "./command-DVroicgn.mjs";
3
+ import { i as PopoverTrigger, r as PopoverContent, t as Popover } from "./popover-ugw5MpuT.mjs";
4
+ import { t as LoaderOverlay } from "./loader-overlay-8IWX_1Ga.mjs";
5
5
  import { CheckIcon, ChevronDown } from "lucide-react";
6
6
  import * as React$1 from "react";
7
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -0,0 +1,4 @@
1
+ import "../utils-DJboNGQM.mjs";
2
+ import { n as AvatarFallback, r as AvatarImage, t as Avatar } from "../avatar-DyLq0xkt.mjs";
3
+
4
+ export { Avatar, AvatarFallback, AvatarImage };
@@ -0,0 +1,30 @@
1
+ import { t as cn } from "./utils-DJboNGQM.mjs";
2
+ import "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
5
+
6
+ //#region ../shadcn/ui/avatar.tsx
7
+ const Avatar = ({ className, ...props }) => {
8
+ return /* @__PURE__ */ jsx(AvatarPrimitive.Root, {
9
+ "data-slot": "avatar",
10
+ className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
11
+ ...props
12
+ });
13
+ };
14
+ const AvatarImage = ({ className, ...props }) => {
15
+ return /* @__PURE__ */ jsx(AvatarPrimitive.Image, {
16
+ "data-slot": "avatar-image",
17
+ className: cn("aspect-square size-full", className),
18
+ ...props
19
+ });
20
+ };
21
+ const AvatarFallback = ({ className, ...props }) => {
22
+ return /* @__PURE__ */ jsx(AvatarPrimitive.Fallback, {
23
+ "data-slot": "avatar-fallback",
24
+ className: cn("bg-muted flex size-full items-center justify-center rounded-full", className),
25
+ ...props
26
+ });
27
+ };
28
+
29
+ //#endregion
30
+ export { AvatarFallback as n, AvatarImage as r, Avatar as t };
@@ -1,5 +1,6 @@
1
- import "../utils-Bfgoe-Gm.mjs";
2
- import "../tooltip-CbCWKEzu.mjs";
3
- import { n as avatarStackVariants, t as AvatarStack } from "../avatar-stack-Ci0cnjxv.mjs";
1
+ import "../utils-DJboNGQM.mjs";
2
+ import "../avatar-DyLq0xkt.mjs";
3
+ import "../tooltip-CuX2jQA9.mjs";
4
+ import { n as avatarStackVariants, t as AvatarStack } from "../avatar-stack-BT0dBswq.mjs";
4
5
 
5
6
  export { AvatarStack, avatarStackVariants };
@@ -1,35 +1,10 @@
1
1
  import { t as cn } from "./cn-DWCc1QRE.mjs";
2
- import { t as cn$1 } from "./utils-Bfgoe-Gm.mjs";
3
- import { t as Tooltip } from "./tooltip-CbCWKEzu.mjs";
2
+ import { n as AvatarFallback, r as AvatarImage, t as Avatar } from "./avatar-DyLq0xkt.mjs";
3
+ import { t as Tooltip } from "./tooltip-CuX2jQA9.mjs";
4
4
  import { cva } from "class-variance-authority";
5
5
  import "react";
6
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
- import * as AvatarPrimitive from "@radix-ui/react-avatar";
8
7
 
9
- //#region ../shadcn/ui/avatar.tsx
10
- const Avatar = ({ className, ...props }) => {
11
- return /* @__PURE__ */ jsx(AvatarPrimitive.Root, {
12
- "data-slot": "avatar",
13
- className: cn$1("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
14
- ...props
15
- });
16
- };
17
- const AvatarImage = ({ className, ...props }) => {
18
- return /* @__PURE__ */ jsx(AvatarPrimitive.Image, {
19
- "data-slot": "avatar-image",
20
- className: cn$1("aspect-square size-full", className),
21
- ...props
22
- });
23
- };
24
- const AvatarFallback = ({ className, ...props }) => {
25
- return /* @__PURE__ */ jsx(AvatarPrimitive.Fallback, {
26
- "data-slot": "avatar-fallback",
27
- className: cn$1("bg-muted flex size-full items-center justify-center rounded-full", className),
28
- ...props
29
- });
30
- };
31
-
32
- //#endregion
33
8
  //#region src/components/features/avatar-stack/avatar-stack.tsx
34
9
  const avatarStackVariants = cva("flex", {
35
10
  variants: {
@@ -1,3 +1,3 @@
1
- import { n as badgeVariants, t as Badge } from "../badge-bFgeYceE.mjs";
1
+ import { n as badgeVariants, t as Badge } from "../badge-BgFj4Nsc.mjs";
2
2
 
3
3
  export { Badge, badgeVariants };
@@ -1,4 +1,4 @@
1
- import "../utils-Bfgoe-Gm.mjs";
2
- import { a as BreadcrumbList, i as BreadcrumbLink, n as BreadcrumbEllipsis, o as BreadcrumbPage, r as BreadcrumbItem, s as BreadcrumbSeparator, t as Breadcrumb } from "../breadcrumb-BGYJgom_.mjs";
1
+ import "../utils-DJboNGQM.mjs";
2
+ import { a as BreadcrumbList, i as BreadcrumbLink, n as BreadcrumbEllipsis, o as BreadcrumbPage, r as BreadcrumbItem, s as BreadcrumbSeparator, t as Breadcrumb } from "../breadcrumb-CJNaYyk1.mjs";
3
3
 
4
4
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
@@ -1,4 +1,4 @@
1
- import { t as cn } from "./utils-Bfgoe-Gm.mjs";
1
+ import { t as cn } from "./utils-DJboNGQM.mjs";
2
2
  import { ChevronRight, MoreHorizontal } from "lucide-react";
3
3
  import "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { n as buttonVariants, t as Button } from "../button-C1wRfGtT.mjs";
2
- import { t as LinkButton } from "../link-button-TIF2Zdrk.mjs";
1
+ import { n as buttonVariants, t as Button } from "../button-0N61fmAR.mjs";
2
+ import { t as LinkButton } from "../link-button-Cby0p4LW.mjs";
3
3
 
4
4
  export { Button, LinkButton, buttonVariants };
@@ -1,5 +1,5 @@
1
1
  import { t as cn } from "./cn-DWCc1QRE.mjs";
2
- import { t as SpinnerIcon } from "./spinner.icon-Bg8zgGh0.mjs";
2
+ import { t as SpinnerIcon } from "./spinner.icon-C0MbtgqX.mjs";
3
3
  import { cva } from "class-variance-authority";
4
4
  import "react";
5
5
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as cn } from "./utils-Bfgoe-Gm.mjs";
1
+ import { t as cn } from "./utils-DJboNGQM.mjs";
2
2
  import { cva } from "class-variance-authority";
3
3
  import * as React$1 from "react";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import "../utils-Bfgoe-Gm.mjs";
2
- import "../separator-T2ppyD-8.mjs";
3
- import { i as buttonGroupVariants, n as ButtonGroupSeparator, r as ButtonGroupText, t as ButtonGroup } from "../button-group-C1IB2K5s.mjs";
1
+ import "../utils-DJboNGQM.mjs";
2
+ import "../separator-BzyALya2.mjs";
3
+ import { i as buttonGroupVariants, n as ButtonGroupSeparator, r as ButtonGroupText, t as ButtonGroup } from "../button-group-BDk8btAy.mjs";
4
4
 
5
5
  export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
@@ -1,5 +1,5 @@
1
- import { t as cn } from "./utils-Bfgoe-Gm.mjs";
2
- import { t as Separator } from "./separator-T2ppyD-8.mjs";
1
+ import { t as cn } from "./utils-DJboNGQM.mjs";
2
+ import { t as Separator } from "./separator-BzyALya2.mjs";
3
3
  import { cva } from "class-variance-authority";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { Slot } from "@radix-ui/react-slot";
@@ -1,5 +1,5 @@
1
- import "../utils-Bfgoe-Gm.mjs";
2
- import "../button-AzpnV-WB.mjs";
3
- import { n as CalendarDayButton, t as Calendar } from "../calendar-DlIHeWb0.mjs";
1
+ import "../utils-DJboNGQM.mjs";
2
+ import "../button-D6AORsOz.mjs";
3
+ import { n as CalendarDayButton, t as Calendar } from "../calendar-BtfraIvX.mjs";
4
4
 
5
5
  export { Calendar, CalendarDayButton };
@@ -1,6 +1,6 @@
1
1
  import { t as cn } from "./cn-DWCc1QRE.mjs";
2
- import { n as buttonVariants, t as Button } from "./button-AzpnV-WB.mjs";
3
- import { t as Icon } from "./icon-wrapper-9ticVbRL.mjs";
2
+ import { n as buttonVariants, t as Button } from "./button-D6AORsOz.mjs";
3
+ import { t as Icon } from "./icon-wrapper-BBK4z4tj.mjs";
4
4
  import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
5
5
  import * as React$1 from "react";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  import { t as cn } from "./cn-DWCc1QRE.mjs";
2
- import { t as Button } from "./button-AzpnV-WB.mjs";
3
- import { t as Calendar$1 } from "./calendar-DlIHeWb0.mjs";
4
- import { i as PopoverTrigger, r as PopoverContent, t as Popover } from "./popover-CYzXdp9q.mjs";
5
- import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-BznmyqBr.mjs";
2
+ import { t as Button } from "./button-D6AORsOz.mjs";
3
+ import { t as Calendar$1 } from "./calendar-BtfraIvX.mjs";
4
+ import { i as PopoverTrigger, r as PopoverContent, t as Popover } from "./popover-ugw5MpuT.mjs";
5
+ import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-BZOKWjlH.mjs";
6
6
  import { cva } from "class-variance-authority";
7
7
  import { CalendarIcon, X } from "lucide-react";
8
8
  import * as React$1 from "react";
@@ -36,7 +36,7 @@ const multiSelectVariants = cva("flex font-normal shadow-none items-center justi
36
36
  } },
37
37
  defaultVariants: { variant: "default" }
38
38
  });
39
- function CalendarDatePicker({ ref, id = "calendar-date-picker", className, triggerClassName, date, closeOnSelect = false, numberOfMonths = 2, yearsRange = 10, onDateSelect, variant, placeholder, excludePresets, customPresets, minDate, maxDate, disableFuture = false, disablePast = false, maxRange, popoverClassName, ...props }) {
39
+ function CalendarDatePicker({ ref, id = "calendar-date-picker", className, triggerClassName, date, closeOnSelect = false, numberOfMonths = 2, yearsRange = 10, onDateSelect, variant, placeholder, excludePresets, customPresets, minDate, maxDate, disableFuture = false, disablePast = false, maxRange, popoverClassName, disabled, ...props }) {
40
40
  const [isPopoverOpen, setIsPopoverOpen] = React$1.useState(false);
41
41
  const [selectedRange, setSelectedRange] = React$1.useState(numberOfMonths === 2 ? "This Year" : "Today");
42
42
  const [monthFrom, setMonthFrom] = React$1.useState(date?.from);
@@ -428,6 +428,7 @@ function CalendarDatePicker({ ref, id = "calendar-date-picker", className, trigg
428
428
  id: "date",
429
429
  ref,
430
430
  ...props,
431
+ disabled,
431
432
  className: cn("w-full", triggerClassName, multiSelectVariants({
432
433
  variant,
433
434
  className
@@ -1,4 +1,4 @@
1
- import "../utils-Bfgoe-Gm.mjs";
2
- import { a as CardDescription, i as CardContent, n as CardFooter, o as CardTitle, r as CardHeader, t as Card } from "../card-3Kd0VdNf.mjs";
1
+ import "../utils-DJboNGQM.mjs";
2
+ import { a as CardDescription, i as CardContent, n as CardFooter, o as CardTitle, r as CardHeader, t as Card } from "../card-BiHXFt4s.mjs";
3
3
 
4
4
  export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -1,5 +1,5 @@
1
1
  import { t as cn } from "./cn-DWCc1QRE.mjs";
2
- import { t as cn$1 } from "./utils-Bfgoe-Gm.mjs";
2
+ import { t as cn$1 } from "./utils-DJboNGQM.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5