@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
@@ -2,7 +2,10 @@ import {
2
2
  FALLBACK_PRIMARY,
3
3
  FALLBACK_SECONDARY,
4
4
  FALLBACK_TICK
5
- } from "./chunk-FZIXGLMV.mjs";
5
+ } from "./chunk-M3FV7LOK.mjs";
6
+ import {
7
+ formatCurrency
8
+ } from "./chunk-MN5NYQCL.mjs";
6
9
  import {
7
10
  Empty,
8
11
  EmptyDescription
@@ -12,7 +15,7 @@ import {
12
15
  CardContent,
13
16
  CardHeader,
14
17
  CardTitle
15
- } from "./chunk-CLIN5525.mjs";
18
+ } from "./chunk-C7CQJNMR.mjs";
16
19
  import {
17
20
  Spinner
18
21
  } from "./chunk-7YAU5CY6.mjs";
@@ -36,13 +39,13 @@ import {
36
39
  import ChartDataLabels from "chartjs-plugin-datalabels";
37
40
  import { Chart } from "react-chartjs-2";
38
41
  import { jsx, jsxs } from "react/jsx-runtime";
39
- ChartJS.register(CategoryScale, LinearScale, BarController, BarElement, Tooltip);
40
- function formatDollar(value) {
41
- return `$${value.toLocaleString(void 0, {
42
- minimumFractionDigits: 2,
43
- maximumFractionDigits: 2
44
- })}`;
45
- }
42
+ ChartJS.register(
43
+ CategoryScale,
44
+ LinearScale,
45
+ BarController,
46
+ BarElement,
47
+ Tooltip
48
+ );
46
49
  function TransactionsIncomeExpenseBarChart({
47
50
  totalIncome,
48
51
  totalExpense,
@@ -85,7 +88,7 @@ function TransactionsIncomeExpenseBarChart({
85
88
  color: FALLBACK_SECONDARY,
86
89
  textAlign: "left",
87
90
  // Returns array for multi-line: dollar value on line 1, blank on line 2
88
- formatter: (v) => [formatDollar(v), ""]
91
+ formatter: (v) => [formatCurrency(v, { decimals: 2 }), ""]
89
92
  },
90
93
  name: {
91
94
  anchor: "end",
@@ -149,7 +152,7 @@ function TransactionsIncomeExpenseBarChart({
149
152
  className: cn("w-full py-4 sm:py-6 gap-2", className),
150
153
  style: { maxWidth: width, fontFamily },
151
154
  children: [
152
- /* @__PURE__ */ jsx(CardHeader, { className: "px-3 sm:px-6", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-sm sm:text-base", children: title }) }),
155
+ /* @__PURE__ */ jsx(CardHeader, { className: "px-3 sm:px-6", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-xs font-semibold uppercase tracking-wide", children: title }) }),
153
156
  /* @__PURE__ */ jsx(CardContent, { className: "px-3 sm:px-6", children: isLoading ? /* @__PURE__ */ jsx(
154
157
  "div",
155
158
  {
@@ -0,0 +1,388 @@
1
+ import {
2
+ Tooltip,
3
+ TooltipContent,
4
+ TooltipProvider,
5
+ TooltipTrigger
6
+ } from "./chunk-6JQFUE5I.mjs";
7
+ import {
8
+ formatCurrency
9
+ } from "./chunk-MN5NYQCL.mjs";
10
+ import {
11
+ Button
12
+ } from "./chunk-XREGSKX3.mjs";
13
+ import {
14
+ cn
15
+ } from "./chunk-VLQZANBF.mjs";
16
+
17
+ // src/components/ui/sidebar-nav.tsx
18
+ import * as React from "react";
19
+ import {
20
+ ChevronDown,
21
+ ChevronRight,
22
+ Info,
23
+ LogOut,
24
+ PanelLeftClose,
25
+ PanelLeftOpen
26
+ } from "lucide-react";
27
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
28
+ function getInitials(name) {
29
+ return name.split(" ").filter(Boolean).map((word) => word[0]).join("").toUpperCase().slice(0, 2);
30
+ }
31
+ function navIconCn(isActive) {
32
+ return cn(
33
+ "shrink-0 transition-colors",
34
+ isActive ? "text-primary" : "text-brand-secondary-foreground/50 group-hover:text-brand-secondary-foreground"
35
+ );
36
+ }
37
+ function NavTooltip({ label, collapsed, children }) {
38
+ if (!collapsed) return children;
39
+ return /* @__PURE__ */ jsxs(Tooltip, { children: [
40
+ /* @__PURE__ */ jsx(TooltipTrigger, { render: children }),
41
+ /* @__PURE__ */ jsx(TooltipContent, { side: "right", children: label })
42
+ ] });
43
+ }
44
+ function MetricsGroup({ group }) {
45
+ return /* @__PURE__ */ jsx("div", { className: "border-b border-white/15 py-4 px-5 flex flex-col gap-1.5", children: group.items.map((item) => /* @__PURE__ */ jsxs(
46
+ "div",
47
+ {
48
+ className: "flex items-center justify-between gap-2",
49
+ children: [
50
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 min-w-0", children: [
51
+ /* @__PURE__ */ jsx(
52
+ "span",
53
+ {
54
+ className: cn(
55
+ "text-sm truncate text-brand-secondary-foreground/80",
56
+ item.isNetItem && "font-semibold text-brand-secondary-foreground border-b-2 border-primary pb-px"
57
+ ),
58
+ children: item.name
59
+ }
60
+ ),
61
+ item.info && /* @__PURE__ */ jsx(
62
+ Info,
63
+ {
64
+ size: 11,
65
+ strokeWidth: 2,
66
+ className: "shrink-0 text-brand-secondary-foreground/50"
67
+ }
68
+ )
69
+ ] }),
70
+ /* @__PURE__ */ jsx(
71
+ "span",
72
+ {
73
+ className: cn(
74
+ "text-sm font-semibold tabular-nums shrink-0 text-brand-secondary-foreground",
75
+ item.isNetItem && item.value < 0 && "text-destructive"
76
+ ),
77
+ children: formatCurrency(item.value, { showSign: item.isNetItem })
78
+ }
79
+ )
80
+ ]
81
+ },
82
+ item.name
83
+ )) });
84
+ }
85
+ function SidebarNavItemView({
86
+ item,
87
+ collapsed,
88
+ onNavigate
89
+ }) {
90
+ var _a;
91
+ const Icon = item.icon;
92
+ return /* @__PURE__ */ jsx(NavTooltip, { label: item.title, collapsed, children: /* @__PURE__ */ jsxs(
93
+ Button,
94
+ {
95
+ type: "button",
96
+ variant: "ghost",
97
+ onClick: () => onNavigate == null ? void 0 : onNavigate(item.href),
98
+ className: cn(
99
+ "group h-auto w-full items-center gap-3 py-2.5 text-base font-medium transition-colors",
100
+ "text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground",
101
+ collapsed ? "justify-center px-2" : cn(
102
+ "justify-start px-3 border-l-4",
103
+ item.isActive ? "bg-white/15 text-brand-secondary-foreground border-primary" : "border-transparent"
104
+ )
105
+ ),
106
+ children: [
107
+ /* @__PURE__ */ jsx(
108
+ Icon,
109
+ {
110
+ className: navIconCn((_a = item.isActive) != null ? _a : false),
111
+ size: 18,
112
+ strokeWidth: 1.75
113
+ }
114
+ ),
115
+ !collapsed && /* @__PURE__ */ jsx("span", { className: "truncate", children: item.title })
116
+ ]
117
+ }
118
+ ) });
119
+ }
120
+ function CollapsibleNavItem({
121
+ item,
122
+ collapsed,
123
+ onNavigate
124
+ }) {
125
+ var _a, _b;
126
+ const Icon = item.icon;
127
+ const hasActiveChild = (_b = (_a = item.subItems) == null ? void 0 : _a.some((sub) => sub.isActive)) != null ? _b : false;
128
+ const [open, setOpen] = React.useState(hasActiveChild);
129
+ React.useEffect(() => {
130
+ if (hasActiveChild) setOpen(true);
131
+ }, [hasActiveChild]);
132
+ if (collapsed) {
133
+ return /* @__PURE__ */ jsx(NavTooltip, { label: item.title, collapsed, children: /* @__PURE__ */ jsx(
134
+ Button,
135
+ {
136
+ type: "button",
137
+ variant: "ghost",
138
+ onClick: () => onNavigate == null ? void 0 : onNavigate(item.href),
139
+ className: cn(
140
+ "group h-auto w-full justify-center px-2 py-2.5 transition-colors",
141
+ "text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground",
142
+ hasActiveChild && "bg-white/15 text-brand-secondary-foreground"
143
+ ),
144
+ children: /* @__PURE__ */ jsx(
145
+ Icon,
146
+ {
147
+ className: navIconCn(hasActiveChild),
148
+ size: 18,
149
+ strokeWidth: 1.75
150
+ }
151
+ )
152
+ }
153
+ ) });
154
+ }
155
+ return /* @__PURE__ */ jsxs("div", { children: [
156
+ /* @__PURE__ */ jsxs(
157
+ Button,
158
+ {
159
+ type: "button",
160
+ variant: "ghost",
161
+ onClick: () => setOpen((prev) => !prev),
162
+ className: cn(
163
+ "group h-auto w-full justify-start gap-3 px-3 py-2.5 text-base font-medium transition-colors",
164
+ "text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground",
165
+ "border-l-4 border-transparent",
166
+ hasActiveChild && "bg-white/15 text-brand-secondary-foreground border-primary"
167
+ ),
168
+ children: [
169
+ /* @__PURE__ */ jsx(
170
+ Icon,
171
+ {
172
+ className: navIconCn(hasActiveChild),
173
+ size: 18,
174
+ strokeWidth: 1.75
175
+ }
176
+ ),
177
+ /* @__PURE__ */ jsx("span", { className: "flex-1 truncate text-left", children: item.title }),
178
+ /* @__PURE__ */ jsx(
179
+ ChevronDown,
180
+ {
181
+ className: cn(
182
+ "ml-auto shrink-0 text-brand-secondary-foreground/40 transition-transform duration-200",
183
+ open && "rotate-180"
184
+ ),
185
+ size: 14,
186
+ strokeWidth: 2
187
+ }
188
+ )
189
+ ]
190
+ }
191
+ ),
192
+ open && item.subItems && /* @__PURE__ */ jsx("div", { className: "ml-9 border-l border-white/15 pl-3", children: item.subItems.map((sub) => /* @__PURE__ */ jsxs(
193
+ Button,
194
+ {
195
+ type: "button",
196
+ variant: "ghost",
197
+ onClick: () => onNavigate == null ? void 0 : onNavigate(sub.href),
198
+ className: cn(
199
+ "h-auto w-full justify-start gap-2 py-1.5 pl-1 text-sm transition-colors",
200
+ "text-brand-secondary-foreground/50 hover:text-brand-secondary-foreground",
201
+ sub.isActive && "text-primary font-medium"
202
+ ),
203
+ children: [
204
+ /* @__PURE__ */ jsx(
205
+ ChevronRight,
206
+ {
207
+ size: 11,
208
+ strokeWidth: 2,
209
+ className: cn(
210
+ "shrink-0",
211
+ sub.isActive ? "text-primary" : "text-brand-secondary-foreground/30"
212
+ )
213
+ }
214
+ ),
215
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: sub.title })
216
+ ]
217
+ },
218
+ sub.href
219
+ )) })
220
+ ] });
221
+ }
222
+ function SidebarNav({
223
+ items,
224
+ userName = "Anonymous User",
225
+ collapsed = false,
226
+ logo,
227
+ logoCollapsed,
228
+ metricsGroups,
229
+ onNavigate,
230
+ onLogout,
231
+ onCollapsedChange,
232
+ className
233
+ }) {
234
+ const [userMenuOpen, setUserMenuOpen] = React.useState(false);
235
+ return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(
236
+ "nav",
237
+ {
238
+ "data-slot": "sidebar-nav",
239
+ "data-collapsed": collapsed,
240
+ className: cn(
241
+ // Force dark-mode CSS variable resolution — sidebar is always dark-backgrounded
242
+ // regardless of system theme, so semantic tokens (destructive, success, etc.)
243
+ // must use their dark-mode values to maintain WCAG contrast.
244
+ "dark flex h-full flex-col bg-brand-secondary text-brand-secondary-foreground",
245
+ "transition-all duration-200 ease-in-out",
246
+ collapsed ? "w-14" : "w-[279px]",
247
+ className
248
+ ),
249
+ children: [
250
+ !collapsed && logo && /* @__PURE__ */ jsx("div", { className: "flex items-center border-b border-white/15 px-5 py-4", children: /* @__PURE__ */ jsx(
251
+ "img",
252
+ {
253
+ src: logo,
254
+ alt: "Logo",
255
+ className: "h-8 w-auto object-contain object-left",
256
+ style: { filter: "brightness(0) invert(1)" }
257
+ }
258
+ ) }),
259
+ collapsed && logoCollapsed && /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center border-b border-white/15 py-4", children: /* @__PURE__ */ jsx(
260
+ "img",
261
+ {
262
+ src: logoCollapsed,
263
+ alt: "Logo",
264
+ className: "h-8 w-8 object-contain",
265
+ style: { filter: "brightness(0) invert(1)" }
266
+ }
267
+ ) }),
268
+ /* @__PURE__ */ jsxs("div", { className: "border-b border-white/15", children: [
269
+ /* @__PURE__ */ jsx(NavTooltip, { label: userName, collapsed, children: /* @__PURE__ */ jsxs(
270
+ Button,
271
+ {
272
+ type: "button",
273
+ variant: "ghost",
274
+ onClick: () => !collapsed && setUserMenuOpen((prev) => !prev),
275
+ className: cn(
276
+ "group h-auto w-full justify-start gap-3 px-5 py-5 text-base transition-colors",
277
+ "text-brand-secondary-foreground hover:bg-white/10",
278
+ collapsed && "justify-center px-2 py-4"
279
+ ),
280
+ children: [
281
+ /* @__PURE__ */ 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) }),
282
+ !collapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
283
+ /* @__PURE__ */ jsx("span", { className: "flex-1 truncate text-left font-medium text-brand-secondary-foreground", children: userName }),
284
+ /* @__PURE__ */ jsx(
285
+ ChevronDown,
286
+ {
287
+ className: cn(
288
+ "shrink-0 text-brand-secondary-foreground/50 transition-transform duration-200",
289
+ userMenuOpen && "rotate-180"
290
+ ),
291
+ size: 16,
292
+ strokeWidth: 2
293
+ }
294
+ )
295
+ ] })
296
+ ]
297
+ }
298
+ ) }),
299
+ !collapsed && userMenuOpen && /* @__PURE__ */ jsx("div", { className: "border-t border-white/15 bg-black/20", children: /* @__PURE__ */ jsxs(
300
+ Button,
301
+ {
302
+ type: "button",
303
+ variant: "ghost",
304
+ onClick: onLogout,
305
+ className: cn(
306
+ "h-auto w-full justify-start gap-3 px-5 py-3 text-base",
307
+ "text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground transition-colors"
308
+ ),
309
+ children: [
310
+ /* @__PURE__ */ jsx(
311
+ LogOut,
312
+ {
313
+ size: 16,
314
+ strokeWidth: 1.75,
315
+ className: "shrink-0 text-destructive"
316
+ }
317
+ ),
318
+ /* @__PURE__ */ jsx("span", { children: "Logout" })
319
+ ]
320
+ }
321
+ ) })
322
+ ] }),
323
+ !collapsed && !!(metricsGroups == null ? void 0 : metricsGroups.length) && /* @__PURE__ */ jsx("div", { children: metricsGroups.map((group, i) => /* @__PURE__ */ jsx(MetricsGroup, { group }, i)) }),
324
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col overflow-y-auto py-3", children: items.map(
325
+ (item) => item.isCollapsible ? /* @__PURE__ */ jsx(
326
+ CollapsibleNavItem,
327
+ {
328
+ item,
329
+ collapsed,
330
+ onNavigate
331
+ },
332
+ item.href
333
+ ) : /* @__PURE__ */ jsx(
334
+ SidebarNavItemView,
335
+ {
336
+ item,
337
+ collapsed,
338
+ onNavigate
339
+ },
340
+ item.href
341
+ )
342
+ ) }),
343
+ onCollapsedChange && /* @__PURE__ */ jsx("div", { className: "mt-auto border-t border-white/15 bg-white/8", children: /* @__PURE__ */ jsx(
344
+ NavTooltip,
345
+ {
346
+ label: collapsed ? "Expand" : "Collapse",
347
+ collapsed,
348
+ children: /* @__PURE__ */ jsxs(
349
+ Button,
350
+ {
351
+ type: "button",
352
+ variant: "ghost",
353
+ onClick: () => onCollapsedChange(!collapsed),
354
+ className: cn(
355
+ "h-auto w-full justify-start gap-3 px-3 py-3 transition-colors",
356
+ "text-brand-secondary-foreground/80 hover:bg-white/10 hover:text-brand-secondary-foreground",
357
+ collapsed && "justify-center px-2"
358
+ ),
359
+ children: [
360
+ collapsed ? /* @__PURE__ */ jsx(
361
+ PanelLeftOpen,
362
+ {
363
+ size: 18,
364
+ strokeWidth: 1.75,
365
+ className: "shrink-0"
366
+ }
367
+ ) : /* @__PURE__ */ jsx(
368
+ PanelLeftClose,
369
+ {
370
+ size: 18,
371
+ strokeWidth: 1.75,
372
+ className: "shrink-0"
373
+ }
374
+ ),
375
+ !collapsed && /* @__PURE__ */ jsx("span", { className: "text-sm", children: "Collapse" })
376
+ ]
377
+ }
378
+ )
379
+ }
380
+ ) })
381
+ ]
382
+ }
383
+ ) });
384
+ }
385
+
386
+ export {
387
+ SidebarNav
388
+ };
@@ -178,10 +178,10 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
178
178
  default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
179
179
  secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
180
180
  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",
181
- outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
181
+ 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",
182
182
  "outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
183
183
  "outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
184
- ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs dark:hover:bg-accent/50",
184
+ ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
185
185
  link: "text-primary underline-offset-4 hover:underline"
186
186
  },
187
187
  size: {
@@ -270,38 +270,65 @@ function DialogOverlay(_a) {
270
270
  }, props)
271
271
  );
272
272
  }
273
+ var DIALOG_MAX_WIDTHS = {
274
+ sm: "24rem",
275
+ md: "28rem",
276
+ lg: "32rem",
277
+ xl: "36rem",
278
+ "2xl": "42rem",
279
+ "3xl": "48rem",
280
+ "4xl": "56rem",
281
+ full: "100%"
282
+ };
283
+ var DIALOG_AUTO_MIN_WIDTH = "20rem";
273
284
  function DialogContent(_a) {
274
285
  var _b = _a, {
275
286
  className,
276
287
  children,
277
288
  showCloseButton = true,
278
- style
289
+ style,
290
+ container,
291
+ align = "center",
292
+ size = "lg",
293
+ minWidth
279
294
  } = _b, props = __objRest(_b, [
280
295
  "className",
281
296
  "children",
282
297
  "showCloseButton",
283
- "style"
298
+ "style",
299
+ "container",
300
+ "align",
301
+ "size",
302
+ "minWidth"
284
303
  ]);
285
304
  const themeVars = useThemeVars();
286
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(DialogPortal, { children: [
305
+ const isAuto = size === "auto";
306
+ const sizeStyle = isAuto ? { minWidth: minWidth != null ? minWidth : DIALOG_AUTO_MIN_WIDTH } : { maxWidth: DIALOG_MAX_WIDTHS[size] };
307
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(DialogPortal, { container: container != null ? container : void 0, children: [
287
308
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(DialogOverlay, { style: themeVars }),
288
309
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
289
310
  import_dialog.Dialog.Popup,
290
311
  __spreadProps(__spreadValues({
291
312
  className: cn(
292
- // WealthX: removed rounded-lg (sharp corners), shadow-lg (flat panels), foreground/50 scrim via DialogOverlay
293
- "fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 duration-200 outline-none data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 sm:max-w-lg",
313
+ // WealthX: removed rounded-lg (sharp corners), shadow-lg (flat panels)
314
+ // max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
315
+ // Fixed max-width is applied via inline style (sizeStyle) to avoid
316
+ // Tailwind v4 class-scanning gaps with dynamic class lookups.
317
+ "fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
318
+ // "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
319
+ isAuto ? "w-auto" : "w-full",
320
+ align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
294
321
  className
295
322
  ),
296
323
  "data-slot": "dialog-content",
297
- style: __spreadValues(__spreadValues({}, themeVars), style)
324
+ style: __spreadValues(__spreadValues(__spreadValues({}, themeVars), sizeStyle), style)
298
325
  }, props), {
299
326
  children: [
300
327
  children,
301
328
  showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
302
329
  import_dialog.Dialog.Close,
303
330
  {
304
- className: "absolute top-4 right-4 transition-colors hover:bg-foreground/5 focus:outline-hidden focus:ring-2 focus:ring-border focus:ring-offset-0 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
331
+ className: "absolute top-4 right-4 inline-flex size-7 items-center justify-center transition-colors hover:bg-foreground/5 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-border focus-visible:ring-offset-0 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
305
332
  "data-slot": "dialog-close",
306
333
  children: [
307
334
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react2.XIcon, {}),
@@ -354,6 +381,7 @@ function DialogFooter(_a) {
354
381
  import_dialog.Dialog.Close,
355
382
  {
356
383
  className: cn(buttonVariants({ variant: "outline" })),
384
+ type: "button",
357
385
  children: "Close"
358
386
  }
359
387
  ) : null
@@ -732,14 +760,14 @@ function AddColumnModal({
732
760
  }
733
761
  ),
734
762
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
735
- "button",
763
+ Button,
736
764
  {
765
+ type: "button",
766
+ variant: "ghost",
767
+ size: "icon",
737
768
  onClick: () => removeTask(task.id),
738
769
  disabled: loading,
739
- className: cn(
740
- buttonVariants({ variant: "ghost", size: "icon" }),
741
- "size-9 shrink-0 text-muted-foreground hover:text-destructive"
742
- ),
770
+ className: "size-9 shrink-0 text-muted-foreground hover:text-destructive",
743
771
  "aria-label": "Remove task",
744
772
  children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.Trash2, { className: "size-4" })
745
773
  }
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  AddColumnModal
3
- } from "../../chunk-3WMX6KWS.mjs";
3
+ } from "../../chunk-PU4YZQXV.mjs";
4
4
  import "../../chunk-7PYJD5JI.mjs";
5
- import "../../chunk-FH6QVUVZ.mjs";
6
5
  import "../../chunk-NSLMILBT.mjs";
6
+ import "../../chunk-FH6QVUVZ.mjs";
7
7
  import "../../chunk-GYMYRIZP.mjs";
8
- import "../../chunk-XIRTEFKH.mjs";
9
- import "../../chunk-2I5S2AMY.mjs";
8
+ import "../../chunk-6DZEXFNB.mjs";
9
+ import "../../chunk-XREGSKX3.mjs";
10
10
  import "../../chunk-DBHJ5KC3.mjs";
11
11
  import "../../chunk-FEZKMUCF.mjs";
12
12
  import "../../chunk-QOJ2DQD6.mjs";