@wealthx/shadcn 1.2.1 → 1.3.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 (247) hide show
  1. package/.turbo/turbo-build.log +203 -150
  2. package/CHANGELOG.md +29 -0
  3. package/dist/{chunk-4Y6R4WEC.mjs → chunk-2A5RRQGG.mjs} +9 -22
  4. package/dist/{chunk-TS2ZX2VS.mjs → chunk-2UM72RJ7.mjs} +11 -15
  5. package/dist/{chunk-A56YQQHG.mjs → chunk-3NCUZIFP.mjs} +2 -2
  6. package/dist/chunk-3OYFOX3X.mjs +79 -0
  7. package/dist/{chunk-RP3SQYA3.mjs → chunk-3TTACBDP.mjs} +9 -4
  8. package/dist/chunk-4GAWMKMI.mjs +710 -0
  9. package/dist/{chunk-SYOD63OZ.mjs → chunk-5FQIKDKP.mjs} +6 -6
  10. package/dist/{chunk-K3JYD4IU.mjs → chunk-5IS7G74I.mjs} +11 -4
  11. package/dist/chunk-6AW4KJHE.mjs +235 -0
  12. package/dist/chunk-6CR5N2JW.mjs +302 -0
  13. package/dist/{chunk-XIRTEFKH.mjs → chunk-6DZEXFNB.mjs} +36 -8
  14. package/dist/chunk-6O6KD7CE.mjs +271 -0
  15. package/dist/chunk-7PV3IWCN.mjs +33 -0
  16. package/dist/{chunk-SPJ5KXW7.mjs → chunk-7S5AESZO.mjs} +5 -5
  17. package/dist/{chunk-RYCLWMZ7.mjs → chunk-ABFDMHOR.mjs} +9 -7
  18. package/dist/{chunk-SWGT756Z.mjs → chunk-AMQZRHEZ.mjs} +10 -4
  19. package/dist/{chunk-WOEHFRGB.mjs → chunk-BDYZCBRT.mjs} +4 -4
  20. package/dist/{chunk-WAZD7NFU.mjs → chunk-BKNFWEH2.mjs} +6 -6
  21. package/dist/{chunk-CLIN5525.mjs → chunk-C7CQJNMR.mjs} +1 -1
  22. package/dist/{chunk-D4ILTPOG.mjs → chunk-CFMQP5QS.mjs} +5 -4
  23. package/dist/{chunk-VPBN3WOO.mjs → chunk-DGHAXJBN.mjs} +9 -7
  24. package/dist/chunk-DOEO3CDL.mjs +27 -0
  25. package/dist/{chunk-KUDCQ4FI.mjs → chunk-DUJTAXMH.mjs} +9 -4
  26. package/dist/{chunk-GGM2UYGG.mjs → chunk-EBXQWIYG.mjs} +10 -4
  27. package/dist/{chunk-PMB3A7V3.mjs → chunk-EI5F6FMT.mjs} +1 -1
  28. package/dist/chunk-EWRB4PAD.mjs +468 -0
  29. package/dist/chunk-FAKPBKLT.mjs +253 -0
  30. package/dist/chunk-FNQXOAYJ.mjs +169 -0
  31. package/dist/{chunk-4CX4SBRO.mjs → chunk-GHC7LLUX.mjs} +14 -5
  32. package/dist/chunk-HBZLGDIN.mjs +507 -0
  33. package/dist/{chunk-SIZMLSRU.mjs → chunk-HISNT2MG.mjs} +8 -6
  34. package/dist/{chunk-PR6V5XKM.mjs → chunk-HVY6KCCF.mjs} +7 -4
  35. package/dist/chunk-I3RZS7V2.mjs +136 -0
  36. package/dist/chunk-IAE3F7DR.mjs +1962 -0
  37. package/dist/{chunk-ZRO5JO3H.mjs → chunk-IHMFS7NZ.mjs} +81 -84
  38. package/dist/{chunk-PCPLO5HT.mjs → chunk-IOJRDS6V.mjs} +96 -14
  39. package/dist/{chunk-LHYCMLVA.mjs → chunk-JKGDCQTZ.mjs} +11 -4
  40. package/dist/{chunk-H45TKD34.mjs → chunk-JMHR3YGZ.mjs} +1 -1
  41. package/dist/{chunk-4MN6UQHG.mjs → chunk-K5A5L6T2.mjs} +17 -39
  42. package/dist/{chunk-CSDO6VBW.mjs → chunk-LBMRIB3G.mjs} +10 -10
  43. package/dist/chunk-LV35NGVG.mjs +272 -0
  44. package/dist/{chunk-FZIXGLMV.mjs → chunk-M3FV7LOK.mjs} +5 -12
  45. package/dist/{chunk-FMAXJ2SI.mjs → chunk-MBON7YRJ.mjs} +1 -1
  46. package/dist/chunk-MIZQHHUO.mjs +441 -0
  47. package/dist/chunk-MN5NYQCL.mjs +29 -0
  48. package/dist/chunk-NL3ZO62D.mjs +31 -0
  49. package/dist/{chunk-Q76O3RIQ.mjs → chunk-NMOI6CQD.mjs} +1 -1
  50. package/dist/{chunk-P6AM5V7O.mjs → chunk-OODBHKG7.mjs} +1 -1
  51. package/dist/chunk-PBL4OQV2.mjs +283 -0
  52. package/dist/{chunk-3WMX6KWS.mjs → chunk-PU4YZQXV.mjs} +11 -12
  53. package/dist/chunk-QMY3AZJH.mjs +80 -0
  54. package/dist/{chunk-BL3DXM2X.mjs → chunk-QZ4RE6NA.mjs} +11 -4
  55. package/dist/{chunk-VACKZOMY.mjs → chunk-R3VSPKNP.mjs} +3 -3
  56. package/dist/{chunk-OPNQAVVH.mjs → chunk-RJI6GKVF.mjs} +8 -6
  57. package/dist/{chunk-WG6JGJXB.mjs → chunk-T4BJLT57.mjs} +1 -1
  58. package/dist/chunk-U4NDAF2P.mjs +207 -0
  59. package/dist/{chunk-DOH3EHX7.mjs → chunk-U5X52X37.mjs} +1 -1
  60. package/dist/chunk-UMTOX62O.mjs +415 -0
  61. package/dist/{chunk-7MMXNK3C.mjs → chunk-VLARHE5V.mjs} +8 -6
  62. package/dist/{chunk-2I5S2AMY.mjs → chunk-XREGSKX3.mjs} +2 -2
  63. package/dist/{chunk-JNQORUPP.mjs → chunk-YJG55G2H.mjs} +14 -11
  64. package/dist/chunk-ZC45IGZO.mjs +388 -0
  65. package/dist/components/ui/add-column-modal.js +42 -14
  66. package/dist/components/ui/add-column-modal.mjs +4 -4
  67. package/dist/components/ui/add-lead-modal.js +42 -11
  68. package/dist/components/ui/add-lead-modal.mjs +3 -3
  69. package/dist/components/ui/advisor-card.js +497 -0
  70. package/dist/components/ui/advisor-card.mjs +13 -0
  71. package/dist/components/ui/ai-assistant-drawer.js +11 -10
  72. package/dist/components/ui/ai-assistant-drawer.mjs +3 -3
  73. package/dist/components/ui/alert-dialog.js +2 -2
  74. package/dist/components/ui/alert-dialog.mjs +2 -2
  75. package/dist/components/ui/appointment-action-dialogs.js +1160 -0
  76. package/dist/components/ui/appointment-action-dialogs.mjs +23 -0
  77. package/dist/components/ui/appointment-availability-settings.js +1590 -0
  78. package/dist/components/ui/appointment-availability-settings.mjs +23 -0
  79. package/dist/components/ui/appointment-book-dialog.js +1744 -0
  80. package/dist/components/ui/appointment-book-dialog.mjs +27 -0
  81. package/dist/components/ui/appointment-calendar-view.js +833 -0
  82. package/dist/components/ui/appointment-calendar-view.mjs +14 -0
  83. package/dist/components/ui/appointment-detail-sheet.js +1517 -0
  84. package/dist/components/ui/appointment-detail-sheet.mjs +24 -0
  85. package/dist/components/ui/appointment-gmail-connect.js +467 -0
  86. package/dist/components/ui/appointment-gmail-connect.mjs +14 -0
  87. package/dist/components/ui/appointment-mini-card.js +345 -0
  88. package/dist/components/ui/appointment-mini-card.mjs +11 -0
  89. package/dist/components/ui/appointment-time-slot-picker.js +311 -0
  90. package/dist/components/ui/appointment-time-slot-picker.mjs +13 -0
  91. package/dist/components/ui/appointment-upcoming-card.js +1268 -0
  92. package/dist/components/ui/appointment-upcoming-card.mjs +21 -0
  93. package/dist/components/ui/backoffice-alert-history-chart.js +11 -5
  94. package/dist/components/ui/backoffice-alert-history-chart.mjs +5 -4
  95. package/dist/components/ui/backoffice-alerts-chart.js +786 -0
  96. package/dist/components/ui/backoffice-alerts-chart.mjs +19 -0
  97. package/dist/components/ui/backoffice-connections-chart.js +817 -0
  98. package/dist/components/ui/backoffice-connections-chart.mjs +19 -0
  99. package/dist/components/ui/backoffice-contact-history-chart.js +11 -5
  100. package/dist/components/ui/backoffice-contact-history-chart.mjs +5 -4
  101. package/dist/components/ui/badge.js +6 -6
  102. package/dist/components/ui/badge.mjs +1 -1
  103. package/dist/components/ui/borrowing-capacity-line-chart.js +30 -21
  104. package/dist/components/ui/borrowing-capacity-line-chart.mjs +5 -4
  105. package/dist/components/ui/button.js +2 -2
  106. package/dist/components/ui/button.mjs +1 -1
  107. package/dist/components/ui/calendar.js +2 -2
  108. package/dist/components/ui/calendar.mjs +2 -2
  109. package/dist/components/ui/card.js +1 -1
  110. package/dist/components/ui/card.mjs +1 -1
  111. package/dist/components/ui/cash-balance-line-chart.js +31 -23
  112. package/dist/components/ui/cash-balance-line-chart.mjs +5 -4
  113. package/dist/components/ui/cashflow-bar-chart.js +12 -5
  114. package/dist/components/ui/cashflow-bar-chart.mjs +5 -4
  115. package/dist/components/ui/chip.js +97 -18
  116. package/dist/components/ui/chip.mjs +3 -2
  117. package/dist/components/ui/color-picker.js +547 -0
  118. package/dist/components/ui/color-picker.mjs +24 -0
  119. package/dist/components/ui/data-table.js +182 -129
  120. package/dist/components/ui/data-table.mjs +3 -2
  121. package/dist/components/ui/date-picker.js +48 -27
  122. package/dist/components/ui/date-picker.mjs +4 -3
  123. package/dist/components/ui/dialog.js +37 -9
  124. package/dist/components/ui/dialog.mjs +2 -2
  125. package/dist/components/ui/expense-bar-chart.js +12 -5
  126. package/dist/components/ui/expense-bar-chart.mjs +5 -4
  127. package/dist/components/ui/field.mjs +2 -2
  128. package/dist/components/ui/financial-cards.js +322 -155
  129. package/dist/components/ui/financial-cards.mjs +5 -3
  130. package/dist/components/ui/financial-drawers.js +2 -2
  131. package/dist/components/ui/financial-drawers.mjs +3 -3
  132. package/dist/components/ui/financial-sections.js +14 -10
  133. package/dist/components/ui/financial-sections.mjs +6 -5
  134. package/dist/components/ui/form-primitives.js +4 -4
  135. package/dist/components/ui/form-primitives.mjs +3 -3
  136. package/dist/components/ui/income-bar-chart.js +12 -5
  137. package/dist/components/ui/income-bar-chart.mjs +5 -4
  138. package/dist/components/ui/input-group.js +2 -2
  139. package/dist/components/ui/input-group.mjs +2 -2
  140. package/dist/components/ui/kanban-column.js +52 -44
  141. package/dist/components/ui/kanban-column.mjs +7 -5
  142. package/dist/components/ui/opportunity-card.js +52 -44
  143. package/dist/components/ui/opportunity-card.mjs +6 -4
  144. package/dist/components/ui/opportunity-edit-modals.js +1371 -1267
  145. package/dist/components/ui/opportunity-edit-modals.mjs +10 -10
  146. package/dist/components/ui/opportunity-summary-tab.js +2748 -2161
  147. package/dist/components/ui/opportunity-summary-tab.mjs +16 -16
  148. package/dist/components/ui/page-header.js +92 -0
  149. package/dist/components/ui/page-header.mjs +8 -0
  150. package/dist/components/ui/page-top-bar.js +88 -0
  151. package/dist/components/ui/page-top-bar.mjs +8 -0
  152. package/dist/components/ui/pagination.js +303 -19
  153. package/dist/components/ui/pagination.mjs +11 -4
  154. package/dist/components/ui/pipeline-board.js +209 -195
  155. package/dist/components/ui/pipeline-board.mjs +10 -8
  156. package/dist/components/ui/pipeline-dialogs.js +118 -69
  157. package/dist/components/ui/pipeline-dialogs.mjs +8 -7
  158. package/dist/components/ui/pipeline-primitives.js +6 -6
  159. package/dist/components/ui/pipeline-primitives.mjs +2 -2
  160. package/dist/components/ui/property-cashflow-doughnut-chart.js +14 -12
  161. package/dist/components/ui/property-cashflow-doughnut-chart.mjs +5 -4
  162. package/dist/components/ui/property-debt-equity-doughnut-chart.js +14 -12
  163. package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +5 -4
  164. package/dist/components/ui/property-mobile-estimate-line-chart.js +16 -14
  165. package/dist/components/ui/property-mobile-estimate-line-chart.mjs +5 -4
  166. package/dist/components/ui/sidebar-nav.js +679 -0
  167. package/dist/components/ui/sidebar-nav.mjs +14 -0
  168. package/dist/components/ui/stage-timeline.js +6 -6
  169. package/dist/components/ui/stage-timeline.mjs +3 -3
  170. package/dist/components/ui/stepper.js +283 -0
  171. package/dist/components/ui/stepper.mjs +18 -0
  172. package/dist/components/ui/toggle-group.js +4 -4
  173. package/dist/components/ui/toggle-group.mjs +2 -2
  174. package/dist/components/ui/toggle.js +4 -4
  175. package/dist/components/ui/toggle.mjs +1 -1
  176. package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +18 -16
  177. package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +5 -4
  178. package/dist/components/ui/transactions-income-expense-bar-chart.js +28 -12
  179. package/dist/components/ui/transactions-income-expense-bar-chart.mjs +5 -4
  180. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +18 -16
  181. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +5 -4
  182. package/dist/index.js +12927 -8522
  183. package/dist/index.mjs +288 -190
  184. package/dist/lib/typography.js +10 -10
  185. package/dist/lib/typography.mjs +1 -1
  186. package/dist/styles.css +1 -1
  187. package/package.json +86 -1
  188. package/src/components/index.tsx +146 -0
  189. package/src/components/ui/add-column-modal.tsx +7 -7
  190. package/src/components/ui/add-lead-modal.tsx +6 -3
  191. package/src/components/ui/advisor-card.tsx +227 -0
  192. package/src/components/ui/ai-assistant-drawer.tsx +4 -3
  193. package/src/components/ui/appointment-action-dialogs.tsx +297 -0
  194. package/src/components/ui/appointment-availability-settings.tsx +645 -0
  195. package/src/components/ui/appointment-book-dialog.tsx +618 -0
  196. package/src/components/ui/appointment-calendar-view.tsx +510 -0
  197. package/src/components/ui/appointment-detail-sheet.tsx +415 -0
  198. package/src/components/ui/appointment-gmail-connect.tsx +188 -0
  199. package/src/components/ui/appointment-mini-card.tsx +104 -0
  200. package/src/components/ui/appointment-time-slot-picker.tsx +123 -0
  201. package/src/components/ui/appointment-upcoming-card.tsx +635 -0
  202. package/src/components/ui/backoffice-alert-history-chart.tsx +10 -2
  203. package/src/components/ui/backoffice-alerts-chart.tsx +312 -0
  204. package/src/components/ui/backoffice-connections-chart.tsx +339 -0
  205. package/src/components/ui/backoffice-contact-history-chart.tsx +10 -2
  206. package/src/components/ui/badge.tsx +12 -6
  207. package/src/components/ui/borrowing-capacity-line-chart.tsx +4 -11
  208. package/src/components/ui/button.tsx +2 -2
  209. package/src/components/ui/card.tsx +1 -1
  210. package/src/components/ui/cash-balance-line-chart.tsx +4 -23
  211. package/src/components/ui/cashflow-bar-chart.tsx +9 -2
  212. package/src/components/ui/chart-shared.tsx +4 -11
  213. package/src/components/ui/chip.tsx +23 -19
  214. package/src/components/ui/color-picker.tsx +309 -0
  215. package/src/components/ui/data-table.tsx +117 -83
  216. package/src/components/ui/date-picker.tsx +42 -37
  217. package/src/components/ui/dialog.tsx +72 -6
  218. package/src/components/ui/expense-bar-chart.tsx +11 -2
  219. package/src/components/ui/financial-cards.tsx +99 -10
  220. package/src/components/ui/income-bar-chart.tsx +11 -2
  221. package/src/components/ui/opportunity-card.tsx +10 -39
  222. package/src/components/ui/opportunity-edit-modals.tsx +98 -36
  223. package/src/components/ui/opportunity-summary-tab.tsx +548 -232
  224. package/src/components/ui/page-header.tsx +57 -0
  225. package/src/components/ui/page-top-bar.tsx +48 -0
  226. package/src/components/ui/pagination.tsx +171 -22
  227. package/src/components/ui/pipeline-board.tsx +12 -5
  228. package/src/components/ui/property-cashflow-doughnut-chart.tsx +3 -1
  229. package/src/components/ui/property-debt-equity-doughnut-chart.tsx +3 -1
  230. package/src/components/ui/property-mobile-estimate-line-chart.tsx +3 -1
  231. package/src/components/ui/sidebar-nav.tsx +516 -0
  232. package/src/components/ui/stepper.tsx +347 -0
  233. package/src/components/ui/toggle.tsx +4 -4
  234. package/src/components/ui/transactions-expense-categories-doughnut-chart.tsx +3 -1
  235. package/src/components/ui/transactions-income-expense-bar-chart.tsx +12 -9
  236. package/src/components/ui/transactions-liabilities-breakdown-doughnut-chart.tsx +3 -1
  237. package/src/lib/format-currency.ts +44 -0
  238. package/src/lib/format-date.ts +50 -0
  239. package/src/lib/opportunity-constants.ts +12 -0
  240. package/src/lib/typography.ts +11 -11
  241. package/src/styles/globals.css +36 -34
  242. package/src/styles/styles-css.ts +1 -1
  243. package/tsup.config.ts +17 -0
  244. package/dist/chunk-PG6K5XEC.mjs +0 -475
  245. package/dist/chunk-WA6O6EUR.mjs +0 -1885
  246. package/dist/chunk-WNGWBVLV.mjs +0 -148
  247. package/dist/{chunk-LLVQKSU3.mjs → chunk-GD4BJDJR.mjs} +3 -3
@@ -0,0 +1,679 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+
59
+ // src/components/ui/sidebar-nav.tsx
60
+ var sidebar_nav_exports = {};
61
+ __export(sidebar_nav_exports, {
62
+ SidebarNav: () => SidebarNav
63
+ });
64
+ module.exports = __toCommonJS(sidebar_nav_exports);
65
+ var React3 = __toESM(require("react"));
66
+ var import_lucide_react2 = require("lucide-react");
67
+
68
+ // src/lib/utils.ts
69
+ var import_clsx = require("clsx");
70
+ var import_tailwind_merge = require("tailwind-merge");
71
+ var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
72
+ extend: {
73
+ classGroups: {
74
+ "font-size": [
75
+ {
76
+ text: [
77
+ "display-large",
78
+ "display-medium",
79
+ "display-small",
80
+ "h1",
81
+ "h2",
82
+ "h3",
83
+ "h4",
84
+ "h5",
85
+ "h6",
86
+ "body-large",
87
+ "body-medium",
88
+ "body-small",
89
+ "label-large",
90
+ "label-medium",
91
+ "label-small",
92
+ "button",
93
+ "button-xs",
94
+ "caption",
95
+ "overline",
96
+ "code"
97
+ ]
98
+ }
99
+ ]
100
+ }
101
+ }
102
+ });
103
+ function cn(...inputs) {
104
+ return twMerge((0, import_clsx.clsx)(inputs));
105
+ }
106
+
107
+ // src/lib/format-currency.ts
108
+ function formatCurrency(value, options) {
109
+ const { decimals = 0, showSign = false } = options != null ? options : {};
110
+ const abs = Math.abs(value);
111
+ const formatted = new Intl.NumberFormat("en-AU", {
112
+ style: "currency",
113
+ currency: "AUD",
114
+ minimumFractionDigits: decimals,
115
+ maximumFractionDigits: decimals
116
+ }).format(abs);
117
+ if (!showSign) return value < 0 ? `-${formatted}` : formatted;
118
+ if (value > 0) return `+${formatted}`;
119
+ if (value < 0) return `-${formatted}`;
120
+ return formatted;
121
+ }
122
+
123
+ // src/components/ui/button.tsx
124
+ var import_react = require("react");
125
+ var import_class_variance_authority = require("class-variance-authority");
126
+ var import_lucide_react = require("lucide-react");
127
+
128
+ // src/lib/slot.tsx
129
+ var React = __toESM(require("react"));
130
+ function mergeRefs(...refs) {
131
+ return (value) => {
132
+ for (const ref of refs) {
133
+ if (typeof ref === "function") ref(value);
134
+ else if (ref !== null)
135
+ ref.current = value;
136
+ }
137
+ };
138
+ }
139
+ var Slot = React.forwardRef(
140
+ (_a, forwardedRef) => {
141
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
142
+ const child = React.Children.only(children);
143
+ if (!React.isValidElement(child)) return null;
144
+ const childProps = child.props;
145
+ const merged = __spreadValues({}, props);
146
+ for (const key of Object.keys(childProps)) {
147
+ if (key === "className") {
148
+ merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
149
+ } else if (key === "style") {
150
+ merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
151
+ } else if (key.startsWith("on") && typeof childProps[key] === "function") {
152
+ const parentHandler = props[key];
153
+ if (typeof parentHandler === "function") {
154
+ merged[key] = (...args) => {
155
+ childProps[key](...args);
156
+ parentHandler(...args);
157
+ };
158
+ } else {
159
+ merged[key] = childProps[key];
160
+ }
161
+ } else {
162
+ merged[key] = childProps[key];
163
+ }
164
+ }
165
+ const childRef = child.ref;
166
+ merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
167
+ return React.cloneElement(
168
+ child,
169
+ merged
170
+ );
171
+ }
172
+ );
173
+ Slot.displayName = "Slot";
174
+
175
+ // src/components/ui/button.tsx
176
+ var import_jsx_runtime = require("react/jsx-runtime");
177
+ var buttonVariants = (0, import_class_variance_authority.cva)(
178
+ "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 font-sans text-button whitespace-nowrap transition-all active:scale-[0.98] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
179
+ {
180
+ variants: {
181
+ variant: {
182
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
183
+ secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
184
+ destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
185
+ outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:ring-border/50 dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
186
+ "outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
187
+ "outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
188
+ ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
189
+ link: "text-primary underline-offset-4 hover:underline"
190
+ },
191
+ size: {
192
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
193
+ xs: "h-6 gap-1 px-2 text-button-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
194
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
195
+ lg: "h-10 px-6 has-[>svg]:px-4",
196
+ icon: "size-9",
197
+ "icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
198
+ "icon-sm": "size-8",
199
+ "icon-lg": "size-10"
200
+ }
201
+ },
202
+ defaultVariants: {
203
+ variant: "default",
204
+ size: "default"
205
+ }
206
+ }
207
+ );
208
+ var Button = (0, import_react.forwardRef)(function Button2(_a, ref) {
209
+ var _b = _a, {
210
+ className,
211
+ variant,
212
+ size,
213
+ asChild = false,
214
+ loading = false,
215
+ disabled,
216
+ type = "button",
217
+ children
218
+ } = _b, props = __objRest(_b, [
219
+ "className",
220
+ "variant",
221
+ "size",
222
+ "asChild",
223
+ "loading",
224
+ "disabled",
225
+ "type",
226
+ "children"
227
+ ]);
228
+ const Comp = asChild ? Slot : "button";
229
+ const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
230
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
231
+ Comp,
232
+ __spreadProps(__spreadValues({
233
+ className: cn(buttonVariants({ variant, size, className })),
234
+ "data-size": size,
235
+ "data-slot": "button",
236
+ "data-variant": variant,
237
+ disabled: loading || disabled,
238
+ ref,
239
+ type
240
+ }, props), {
241
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
242
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
243
+ !isIconOnly && children
244
+ ] }) : children
245
+ })
246
+ );
247
+ });
248
+
249
+ // src/components/ui/tooltip.tsx
250
+ var import_tooltip = require("@base-ui/react/tooltip");
251
+
252
+ // src/lib/theme-provider.tsx
253
+ var import_react2 = require("react");
254
+ var import_jsx_runtime2 = require("react/jsx-runtime");
255
+ var ThemeVarsContext = (0, import_react2.createContext)({});
256
+ function useThemeVars() {
257
+ return (0, import_react2.useContext)(ThemeVarsContext);
258
+ }
259
+
260
+ // src/components/ui/tooltip.tsx
261
+ var import_jsx_runtime3 = require("react/jsx-runtime");
262
+ function TooltipProvider(_a) {
263
+ var _b = _a, {
264
+ delay = 0
265
+ } = _b, props = __objRest(_b, [
266
+ "delay"
267
+ ]);
268
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
269
+ import_tooltip.Tooltip.Provider,
270
+ __spreadValues({
271
+ "data-slot": "tooltip-provider",
272
+ delay
273
+ }, props)
274
+ );
275
+ }
276
+ function Tooltip(_a) {
277
+ var props = __objRest(_a, []);
278
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_tooltip.Tooltip.Root, __spreadValues({ "data-slot": "tooltip" }, props));
279
+ }
280
+ function TooltipTrigger(_a) {
281
+ var props = __objRest(_a, []);
282
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_tooltip.Tooltip.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
283
+ }
284
+ function TooltipContent(_a) {
285
+ var _b = _a, {
286
+ className,
287
+ sideOffset = 8,
288
+ side,
289
+ children,
290
+ style
291
+ } = _b, props = __objRest(_b, [
292
+ "className",
293
+ "sideOffset",
294
+ "side",
295
+ "children",
296
+ "style"
297
+ ]);
298
+ const themeVars = useThemeVars();
299
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_tooltip.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_tooltip.Tooltip.Positioner, { sideOffset, side, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
300
+ import_tooltip.Tooltip.Popup,
301
+ __spreadProps(__spreadValues({
302
+ className: cn(
303
+ "relative z-50 w-fit animate-in overflow-visible bg-brand-secondary px-3 py-1.5 text-caption text-balance text-brand-secondary-foreground fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards",
304
+ className
305
+ ),
306
+ "data-slot": "tooltip-content",
307
+ style: __spreadValues(__spreadValues({}, themeVars), style)
308
+ }, props), {
309
+ children: [
310
+ children,
311
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_tooltip.Tooltip.Arrow, { className: "z-50 size-2.5 rotate-45 bg-brand-secondary data-[side=bottom]:-top-1 data-[side=left]:-right-1 data-[side=right]:-left-1 data-[side=top]:-bottom-1" })
312
+ ]
313
+ })
314
+ ) }) });
315
+ }
316
+
317
+ // src/components/ui/sidebar-nav.tsx
318
+ var import_jsx_runtime4 = require("react/jsx-runtime");
319
+ function getInitials(name) {
320
+ return name.split(" ").filter(Boolean).map((word) => word[0]).join("").toUpperCase().slice(0, 2);
321
+ }
322
+ function navIconCn(isActive) {
323
+ return cn(
324
+ "shrink-0 transition-colors",
325
+ isActive ? "text-primary" : "text-brand-secondary-foreground/50 group-hover:text-brand-secondary-foreground"
326
+ );
327
+ }
328
+ function NavTooltip({ label, collapsed, children }) {
329
+ if (!collapsed) return children;
330
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Tooltip, { children: [
331
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipTrigger, { render: children }),
332
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipContent, { side: "right", children: label })
333
+ ] });
334
+ }
335
+ function MetricsGroup({ group }) {
336
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "border-b border-white/15 py-4 px-5 flex flex-col gap-1.5", children: group.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
337
+ "div",
338
+ {
339
+ className: "flex items-center justify-between gap-2",
340
+ children: [
341
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-center gap-1 min-w-0", children: [
342
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
343
+ "span",
344
+ {
345
+ className: cn(
346
+ "text-sm truncate text-brand-secondary-foreground/80",
347
+ item.isNetItem && "font-semibold text-brand-secondary-foreground border-b-2 border-primary pb-px"
348
+ ),
349
+ children: item.name
350
+ }
351
+ ),
352
+ item.info && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
353
+ import_lucide_react2.Info,
354
+ {
355
+ size: 11,
356
+ strokeWidth: 2,
357
+ className: "shrink-0 text-brand-secondary-foreground/50"
358
+ }
359
+ )
360
+ ] }),
361
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
362
+ "span",
363
+ {
364
+ className: cn(
365
+ "text-sm font-semibold tabular-nums shrink-0 text-brand-secondary-foreground",
366
+ item.isNetItem && item.value < 0 && "text-destructive"
367
+ ),
368
+ children: formatCurrency(item.value, { showSign: item.isNetItem })
369
+ }
370
+ )
371
+ ]
372
+ },
373
+ item.name
374
+ )) });
375
+ }
376
+ function SidebarNavItemView({
377
+ item,
378
+ collapsed,
379
+ onNavigate
380
+ }) {
381
+ var _a;
382
+ const Icon = item.icon;
383
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NavTooltip, { label: item.title, collapsed, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
384
+ Button,
385
+ {
386
+ type: "button",
387
+ variant: "ghost",
388
+ onClick: () => onNavigate == null ? void 0 : onNavigate(item.href),
389
+ className: cn(
390
+ "group h-auto w-full items-center gap-3 py-2.5 text-base font-medium transition-colors",
391
+ "text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground",
392
+ collapsed ? "justify-center px-2" : cn(
393
+ "justify-start px-3 border-l-4",
394
+ item.isActive ? "bg-white/15 text-brand-secondary-foreground border-primary" : "border-transparent"
395
+ )
396
+ ),
397
+ children: [
398
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
399
+ Icon,
400
+ {
401
+ className: navIconCn((_a = item.isActive) != null ? _a : false),
402
+ size: 18,
403
+ strokeWidth: 1.75
404
+ }
405
+ ),
406
+ !collapsed && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "truncate", children: item.title })
407
+ ]
408
+ }
409
+ ) });
410
+ }
411
+ function CollapsibleNavItem({
412
+ item,
413
+ collapsed,
414
+ onNavigate
415
+ }) {
416
+ var _a, _b;
417
+ const Icon = item.icon;
418
+ const hasActiveChild = (_b = (_a = item.subItems) == null ? void 0 : _a.some((sub) => sub.isActive)) != null ? _b : false;
419
+ const [open, setOpen] = React3.useState(hasActiveChild);
420
+ React3.useEffect(() => {
421
+ if (hasActiveChild) setOpen(true);
422
+ }, [hasActiveChild]);
423
+ if (collapsed) {
424
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NavTooltip, { label: item.title, collapsed, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
425
+ Button,
426
+ {
427
+ type: "button",
428
+ variant: "ghost",
429
+ onClick: () => onNavigate == null ? void 0 : onNavigate(item.href),
430
+ className: cn(
431
+ "group h-auto w-full justify-center px-2 py-2.5 transition-colors",
432
+ "text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground",
433
+ hasActiveChild && "bg-white/15 text-brand-secondary-foreground"
434
+ ),
435
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
436
+ Icon,
437
+ {
438
+ className: navIconCn(hasActiveChild),
439
+ size: 18,
440
+ strokeWidth: 1.75
441
+ }
442
+ )
443
+ }
444
+ ) });
445
+ }
446
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
447
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
448
+ Button,
449
+ {
450
+ type: "button",
451
+ variant: "ghost",
452
+ onClick: () => setOpen((prev) => !prev),
453
+ className: cn(
454
+ "group h-auto w-full justify-start gap-3 px-3 py-2.5 text-base font-medium transition-colors",
455
+ "text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground",
456
+ "border-l-4 border-transparent",
457
+ hasActiveChild && "bg-white/15 text-brand-secondary-foreground border-primary"
458
+ ),
459
+ children: [
460
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
461
+ Icon,
462
+ {
463
+ className: navIconCn(hasActiveChild),
464
+ size: 18,
465
+ strokeWidth: 1.75
466
+ }
467
+ ),
468
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "flex-1 truncate text-left", children: item.title }),
469
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
470
+ import_lucide_react2.ChevronDown,
471
+ {
472
+ className: cn(
473
+ "ml-auto shrink-0 text-brand-secondary-foreground/40 transition-transform duration-200",
474
+ open && "rotate-180"
475
+ ),
476
+ size: 14,
477
+ strokeWidth: 2
478
+ }
479
+ )
480
+ ]
481
+ }
482
+ ),
483
+ open && item.subItems && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "ml-9 border-l border-white/15 pl-3", children: item.subItems.map((sub) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
484
+ Button,
485
+ {
486
+ type: "button",
487
+ variant: "ghost",
488
+ onClick: () => onNavigate == null ? void 0 : onNavigate(sub.href),
489
+ className: cn(
490
+ "h-auto w-full justify-start gap-2 py-1.5 pl-1 text-sm transition-colors",
491
+ "text-brand-secondary-foreground/50 hover:text-brand-secondary-foreground",
492
+ sub.isActive && "text-primary font-medium"
493
+ ),
494
+ children: [
495
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
496
+ import_lucide_react2.ChevronRight,
497
+ {
498
+ size: 11,
499
+ strokeWidth: 2,
500
+ className: cn(
501
+ "shrink-0",
502
+ sub.isActive ? "text-primary" : "text-brand-secondary-foreground/30"
503
+ )
504
+ }
505
+ ),
506
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "truncate", children: sub.title })
507
+ ]
508
+ },
509
+ sub.href
510
+ )) })
511
+ ] });
512
+ }
513
+ function SidebarNav({
514
+ items,
515
+ userName = "Anonymous User",
516
+ collapsed = false,
517
+ logo,
518
+ logoCollapsed,
519
+ metricsGroups,
520
+ onNavigate,
521
+ onLogout,
522
+ onCollapsedChange,
523
+ className
524
+ }) {
525
+ const [userMenuOpen, setUserMenuOpen] = React3.useState(false);
526
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
527
+ "nav",
528
+ {
529
+ "data-slot": "sidebar-nav",
530
+ "data-collapsed": collapsed,
531
+ className: cn(
532
+ // Force dark-mode CSS variable resolution — sidebar is always dark-backgrounded
533
+ // regardless of system theme, so semantic tokens (destructive, success, etc.)
534
+ // must use their dark-mode values to maintain WCAG contrast.
535
+ "dark flex h-full flex-col bg-brand-secondary text-brand-secondary-foreground",
536
+ "transition-all duration-200 ease-in-out",
537
+ collapsed ? "w-14" : "w-[279px]",
538
+ className
539
+ ),
540
+ children: [
541
+ !collapsed && logo && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "flex items-center border-b border-white/15 px-5 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
542
+ "img",
543
+ {
544
+ src: logo,
545
+ alt: "Logo",
546
+ className: "h-8 w-auto object-contain object-left",
547
+ style: { filter: "brightness(0) invert(1)" }
548
+ }
549
+ ) }),
550
+ collapsed && logoCollapsed && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "flex items-center justify-center border-b border-white/15 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
551
+ "img",
552
+ {
553
+ src: logoCollapsed,
554
+ alt: "Logo",
555
+ className: "h-8 w-8 object-contain",
556
+ style: { filter: "brightness(0) invert(1)" }
557
+ }
558
+ ) }),
559
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "border-b border-white/15", children: [
560
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NavTooltip, { label: userName, collapsed, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
561
+ Button,
562
+ {
563
+ type: "button",
564
+ variant: "ghost",
565
+ onClick: () => !collapsed && setUserMenuOpen((prev) => !prev),
566
+ className: cn(
567
+ "group h-auto w-full justify-start gap-3 px-5 py-5 text-base transition-colors",
568
+ "text-brand-secondary-foreground hover:bg-white/10",
569
+ collapsed && "justify-center px-2 py-4"
570
+ ),
571
+ children: [
572
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center font-semibold text-xs bg-primary text-primary-foreground", children: getInitials(userName) }),
573
+ !collapsed && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
574
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "flex-1 truncate text-left font-medium text-brand-secondary-foreground", children: userName }),
575
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
576
+ import_lucide_react2.ChevronDown,
577
+ {
578
+ className: cn(
579
+ "shrink-0 text-brand-secondary-foreground/50 transition-transform duration-200",
580
+ userMenuOpen && "rotate-180"
581
+ ),
582
+ size: 16,
583
+ strokeWidth: 2
584
+ }
585
+ )
586
+ ] })
587
+ ]
588
+ }
589
+ ) }),
590
+ !collapsed && userMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "border-t border-white/15 bg-black/20", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
591
+ Button,
592
+ {
593
+ type: "button",
594
+ variant: "ghost",
595
+ onClick: onLogout,
596
+ className: cn(
597
+ "h-auto w-full justify-start gap-3 px-5 py-3 text-base",
598
+ "text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground transition-colors"
599
+ ),
600
+ children: [
601
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
602
+ import_lucide_react2.LogOut,
603
+ {
604
+ size: 16,
605
+ strokeWidth: 1.75,
606
+ className: "shrink-0 text-destructive"
607
+ }
608
+ ),
609
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: "Logout" })
610
+ ]
611
+ }
612
+ ) })
613
+ ] }),
614
+ !collapsed && !!(metricsGroups == null ? void 0 : metricsGroups.length) && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { children: metricsGroups.map((group, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(MetricsGroup, { group }, i)) }),
615
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "flex flex-col overflow-y-auto py-3", children: items.map(
616
+ (item) => item.isCollapsible ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
617
+ CollapsibleNavItem,
618
+ {
619
+ item,
620
+ collapsed,
621
+ onNavigate
622
+ },
623
+ item.href
624
+ ) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
625
+ SidebarNavItemView,
626
+ {
627
+ item,
628
+ collapsed,
629
+ onNavigate
630
+ },
631
+ item.href
632
+ )
633
+ ) }),
634
+ onCollapsedChange && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mt-auto border-t border-white/15 bg-white/8", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
635
+ NavTooltip,
636
+ {
637
+ label: collapsed ? "Expand" : "Collapse",
638
+ collapsed,
639
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
640
+ Button,
641
+ {
642
+ type: "button",
643
+ variant: "ghost",
644
+ onClick: () => onCollapsedChange(!collapsed),
645
+ className: cn(
646
+ "h-auto w-full justify-start gap-3 px-3 py-3 transition-colors",
647
+ "text-brand-secondary-foreground/80 hover:bg-white/10 hover:text-brand-secondary-foreground",
648
+ collapsed && "justify-center px-2"
649
+ ),
650
+ children: [
651
+ collapsed ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
652
+ import_lucide_react2.PanelLeftOpen,
653
+ {
654
+ size: 18,
655
+ strokeWidth: 1.75,
656
+ className: "shrink-0"
657
+ }
658
+ ) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
659
+ import_lucide_react2.PanelLeftClose,
660
+ {
661
+ size: 18,
662
+ strokeWidth: 1.75,
663
+ className: "shrink-0"
664
+ }
665
+ ),
666
+ !collapsed && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-sm", children: "Collapse" })
667
+ ]
668
+ }
669
+ )
670
+ }
671
+ ) })
672
+ ]
673
+ }
674
+ ) });
675
+ }
676
+ // Annotate the CommonJS export names for ESM import in node:
677
+ 0 && (module.exports = {
678
+ SidebarNav
679
+ });
@@ -0,0 +1,14 @@
1
+ import {
2
+ SidebarNav
3
+ } from "../../chunk-ZC45IGZO.mjs";
4
+ import "../../chunk-6JQFUE5I.mjs";
5
+ import "../../chunk-MN5NYQCL.mjs";
6
+ import "../../chunk-XREGSKX3.mjs";
7
+ import "../../chunk-DBHJ5KC3.mjs";
8
+ import "../../chunk-FEZKMUCF.mjs";
9
+ import "../../chunk-QOJ2DQD6.mjs";
10
+ import "../../chunk-VLQZANBF.mjs";
11
+ import "../../chunk-FWCSY2DS.mjs";
12
+ export {
13
+ SidebarNav
14
+ };