@wealthx/shadcn 1.2.2 → 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.
- package/.turbo/turbo-build.log +200 -156
- package/CHANGELOG.md +22 -0
- package/dist/{chunk-4Y6R4WEC.mjs → chunk-2A5RRQGG.mjs} +9 -22
- package/dist/{chunk-TS2ZX2VS.mjs → chunk-2UM72RJ7.mjs} +11 -15
- package/dist/{chunk-A56YQQHG.mjs → chunk-3NCUZIFP.mjs} +2 -2
- package/dist/chunk-3OYFOX3X.mjs +79 -0
- package/dist/{chunk-RP3SQYA3.mjs → chunk-3TTACBDP.mjs} +9 -4
- package/dist/chunk-4GAWMKMI.mjs +710 -0
- package/dist/{chunk-VGSESELX.mjs → chunk-5FQIKDKP.mjs} +5 -5
- package/dist/{chunk-K3JYD4IU.mjs → chunk-5IS7G74I.mjs} +11 -4
- package/dist/chunk-6AW4KJHE.mjs +235 -0
- package/dist/chunk-6CR5N2JW.mjs +302 -0
- package/dist/{chunk-XIRTEFKH.mjs → chunk-6DZEXFNB.mjs} +36 -8
- package/dist/chunk-6O6KD7CE.mjs +271 -0
- package/dist/chunk-7PV3IWCN.mjs +33 -0
- package/dist/{chunk-SPJ5KXW7.mjs → chunk-7S5AESZO.mjs} +5 -5
- package/dist/{chunk-RYCLWMZ7.mjs → chunk-ABFDMHOR.mjs} +9 -7
- package/dist/{chunk-SWGT756Z.mjs → chunk-AMQZRHEZ.mjs} +10 -4
- package/dist/{chunk-WAZD7NFU.mjs → chunk-BKNFWEH2.mjs} +6 -6
- package/dist/{chunk-CLIN5525.mjs → chunk-C7CQJNMR.mjs} +1 -1
- package/dist/{chunk-D4ILTPOG.mjs → chunk-CFMQP5QS.mjs} +5 -4
- package/dist/{chunk-VPBN3WOO.mjs → chunk-DGHAXJBN.mjs} +9 -7
- package/dist/chunk-DOEO3CDL.mjs +27 -0
- package/dist/{chunk-5MEWU56Z.mjs → chunk-DUJTAXMH.mjs} +11 -6
- package/dist/{chunk-GGM2UYGG.mjs → chunk-EBXQWIYG.mjs} +10 -4
- package/dist/chunk-EWRB4PAD.mjs +468 -0
- package/dist/{chunk-ZSHYDDRB.mjs → chunk-FAKPBKLT.mjs} +6 -2
- package/dist/chunk-FNQXOAYJ.mjs +169 -0
- package/dist/{chunk-A6AAWBPF.mjs → chunk-GHC7LLUX.mjs} +13 -4
- package/dist/chunk-HBZLGDIN.mjs +507 -0
- package/dist/{chunk-SIZMLSRU.mjs → chunk-HISNT2MG.mjs} +8 -6
- package/dist/{chunk-CGH4DRNG.mjs → chunk-HVY6KCCF.mjs} +10 -7
- package/dist/chunk-I3RZS7V2.mjs +136 -0
- package/dist/chunk-IAE3F7DR.mjs +1962 -0
- package/dist/{chunk-UT4KJR7V.mjs → chunk-IHMFS7NZ.mjs} +35 -74
- package/dist/{chunk-PCPLO5HT.mjs → chunk-IOJRDS6V.mjs} +96 -14
- package/dist/{chunk-LHYCMLVA.mjs → chunk-JKGDCQTZ.mjs} +11 -4
- package/dist/{chunk-H45TKD34.mjs → chunk-JMHR3YGZ.mjs} +1 -1
- package/dist/{chunk-4MN6UQHG.mjs → chunk-K5A5L6T2.mjs} +17 -39
- package/dist/chunk-LV35NGVG.mjs +272 -0
- package/dist/{chunk-FZIXGLMV.mjs → chunk-M3FV7LOK.mjs} +5 -12
- package/dist/{chunk-FMAXJ2SI.mjs → chunk-MBON7YRJ.mjs} +1 -1
- package/dist/chunk-MIZQHHUO.mjs +441 -0
- package/dist/chunk-MN5NYQCL.mjs +29 -0
- package/dist/chunk-NL3ZO62D.mjs +31 -0
- package/dist/{chunk-Q76O3RIQ.mjs → chunk-NMOI6CQD.mjs} +1 -1
- package/dist/{chunk-P6AM5V7O.mjs → chunk-OODBHKG7.mjs} +1 -1
- package/dist/chunk-PBL4OQV2.mjs +283 -0
- package/dist/{chunk-Y4QFWRNR.mjs → chunk-PU4YZQXV.mjs} +17 -18
- package/dist/chunk-QMY3AZJH.mjs +80 -0
- package/dist/{chunk-BL3DXM2X.mjs → chunk-QZ4RE6NA.mjs} +11 -4
- package/dist/{chunk-VACKZOMY.mjs → chunk-R3VSPKNP.mjs} +3 -3
- package/dist/{chunk-OPNQAVVH.mjs → chunk-RJI6GKVF.mjs} +8 -6
- package/dist/{chunk-WG6JGJXB.mjs → chunk-T4BJLT57.mjs} +1 -1
- package/dist/chunk-UMTOX62O.mjs +415 -0
- package/dist/{chunk-7MMXNK3C.mjs → chunk-VLARHE5V.mjs} +8 -6
- package/dist/{chunk-2I5S2AMY.mjs → chunk-XREGSKX3.mjs} +2 -2
- package/dist/{chunk-JNQORUPP.mjs → chunk-YJG55G2H.mjs} +14 -11
- package/dist/{chunk-ZRSDX6OW.mjs → chunk-ZC45IGZO.mjs} +33 -30
- package/dist/components/ui/add-column-modal.js +42 -14
- package/dist/components/ui/add-column-modal.mjs +5 -5
- package/dist/components/ui/add-lead-modal.js +42 -11
- package/dist/components/ui/add-lead-modal.mjs +3 -3
- package/dist/components/ui/advisor-card.js +497 -0
- package/dist/components/ui/advisor-card.mjs +13 -0
- package/dist/components/ui/ai-assistant-drawer.js +11 -10
- package/dist/components/ui/ai-assistant-drawer.mjs +3 -3
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/alert-dialog.mjs +2 -2
- package/dist/components/ui/appointment-action-dialogs.js +1160 -0
- package/dist/components/ui/appointment-action-dialogs.mjs +23 -0
- package/dist/components/ui/appointment-availability-settings.js +1590 -0
- package/dist/components/ui/appointment-availability-settings.mjs +23 -0
- package/dist/components/ui/appointment-book-dialog.js +1744 -0
- package/dist/components/ui/appointment-book-dialog.mjs +27 -0
- package/dist/components/ui/appointment-calendar-view.js +833 -0
- package/dist/components/ui/appointment-calendar-view.mjs +14 -0
- package/dist/components/ui/appointment-detail-sheet.js +1517 -0
- package/dist/components/ui/appointment-detail-sheet.mjs +24 -0
- package/dist/components/ui/appointment-gmail-connect.js +467 -0
- package/dist/components/ui/appointment-gmail-connect.mjs +14 -0
- package/dist/components/ui/appointment-mini-card.js +345 -0
- package/dist/components/ui/appointment-mini-card.mjs +11 -0
- package/dist/components/ui/appointment-time-slot-picker.js +311 -0
- package/dist/components/ui/appointment-time-slot-picker.mjs +13 -0
- package/dist/components/ui/appointment-upcoming-card.js +1268 -0
- package/dist/components/ui/appointment-upcoming-card.mjs +21 -0
- package/dist/components/ui/backoffice-alert-history-chart.js +11 -5
- package/dist/components/ui/backoffice-alert-history-chart.mjs +5 -4
- package/dist/components/ui/backoffice-alerts-chart.js +786 -0
- package/dist/components/ui/backoffice-alerts-chart.mjs +19 -0
- package/dist/components/ui/backoffice-connections-chart.js +817 -0
- package/dist/components/ui/backoffice-connections-chart.mjs +19 -0
- package/dist/components/ui/backoffice-contact-history-chart.js +11 -5
- package/dist/components/ui/backoffice-contact-history-chart.mjs +5 -4
- package/dist/components/ui/badge.js +6 -6
- package/dist/components/ui/badge.mjs +1 -1
- package/dist/components/ui/borrowing-capacity-line-chart.js +30 -21
- package/dist/components/ui/borrowing-capacity-line-chart.mjs +5 -4
- package/dist/components/ui/button.js +2 -2
- package/dist/components/ui/button.mjs +1 -1
- package/dist/components/ui/calendar.js +2 -2
- package/dist/components/ui/calendar.mjs +2 -2
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/card.mjs +1 -1
- package/dist/components/ui/cash-balance-line-chart.js +31 -23
- package/dist/components/ui/cash-balance-line-chart.mjs +5 -4
- package/dist/components/ui/cashflow-bar-chart.js +12 -5
- package/dist/components/ui/cashflow-bar-chart.mjs +5 -4
- package/dist/components/ui/chip.js +97 -18
- package/dist/components/ui/chip.mjs +3 -2
- package/dist/components/ui/color-picker.js +158 -28
- package/dist/components/ui/color-picker.mjs +3 -1
- package/dist/components/ui/data-table.js +140 -119
- package/dist/components/ui/data-table.mjs +3 -2
- package/dist/components/ui/date-picker.js +48 -27
- package/dist/components/ui/date-picker.mjs +4 -3
- package/dist/components/ui/dialog.js +37 -9
- package/dist/components/ui/dialog.mjs +2 -2
- package/dist/components/ui/expense-bar-chart.js +12 -5
- package/dist/components/ui/expense-bar-chart.mjs +5 -4
- package/dist/components/ui/field.mjs +2 -2
- package/dist/components/ui/financial-cards.js +322 -155
- package/dist/components/ui/financial-cards.mjs +5 -3
- package/dist/components/ui/financial-drawers.js +2 -2
- package/dist/components/ui/financial-drawers.mjs +3 -3
- package/dist/components/ui/financial-sections.js +14 -10
- package/dist/components/ui/financial-sections.mjs +6 -5
- package/dist/components/ui/income-bar-chart.js +12 -5
- package/dist/components/ui/income-bar-chart.mjs +5 -4
- package/dist/components/ui/input-group.js +2 -2
- package/dist/components/ui/input-group.mjs +2 -2
- package/dist/components/ui/kanban-column.js +52 -44
- package/dist/components/ui/kanban-column.mjs +7 -5
- package/dist/components/ui/opportunity-card.js +52 -44
- package/dist/components/ui/opportunity-card.mjs +6 -4
- package/dist/components/ui/opportunity-edit-modals.js +1367 -1263
- package/dist/components/ui/opportunity-edit-modals.mjs +8 -8
- package/dist/components/ui/opportunity-summary-tab.js +2744 -2157
- package/dist/components/ui/opportunity-summary-tab.mjs +14 -14
- package/dist/components/ui/page-header.js +92 -0
- package/dist/components/ui/page-header.mjs +8 -0
- package/dist/components/ui/page-top-bar.js +88 -0
- package/dist/components/ui/page-top-bar.mjs +8 -0
- package/dist/components/ui/pagination.js +303 -19
- package/dist/components/ui/pagination.mjs +11 -4
- package/dist/components/ui/pipeline-board.js +205 -191
- package/dist/components/ui/pipeline-board.mjs +9 -7
- package/dist/components/ui/pipeline-dialogs.js +114 -65
- package/dist/components/ui/pipeline-dialogs.mjs +7 -6
- package/dist/components/ui/pipeline-primitives.js +6 -6
- package/dist/components/ui/pipeline-primitives.mjs +2 -2
- package/dist/components/ui/property-cashflow-doughnut-chart.js +14 -12
- package/dist/components/ui/property-cashflow-doughnut-chart.mjs +5 -4
- package/dist/components/ui/property-debt-equity-doughnut-chart.js +14 -12
- package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +5 -4
- package/dist/components/ui/property-mobile-estimate-line-chart.js +16 -14
- package/dist/components/ui/property-mobile-estimate-line-chart.mjs +5 -4
- package/dist/components/ui/sidebar-nav.js +234 -95
- package/dist/components/ui/sidebar-nav.mjs +4 -1
- package/dist/components/ui/stage-timeline.js +6 -6
- package/dist/components/ui/stage-timeline.mjs +3 -3
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +18 -16
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +5 -4
- package/dist/components/ui/transactions-income-expense-bar-chart.js +28 -12
- package/dist/components/ui/transactions-income-expense-bar-chart.mjs +5 -4
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +18 -16
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +5 -4
- package/dist/index.js +12899 -9343
- package/dist/index.mjs +256 -190
- package/dist/styles.css +1 -1
- package/package.json +71 -1
- package/src/components/index.tsx +114 -9
- package/src/components/ui/add-column-modal.tsx +7 -7
- package/src/components/ui/add-lead-modal.tsx +6 -3
- package/src/components/ui/advisor-card.tsx +227 -0
- package/src/components/ui/ai-assistant-drawer.tsx +4 -3
- package/src/components/ui/appointment-action-dialogs.tsx +297 -0
- package/src/components/ui/appointment-availability-settings.tsx +645 -0
- package/src/components/ui/appointment-book-dialog.tsx +618 -0
- package/src/components/ui/appointment-calendar-view.tsx +510 -0
- package/src/components/ui/appointment-detail-sheet.tsx +415 -0
- package/src/components/ui/appointment-gmail-connect.tsx +188 -0
- package/src/components/ui/appointment-mini-card.tsx +104 -0
- package/src/components/ui/appointment-time-slot-picker.tsx +123 -0
- package/src/components/ui/appointment-upcoming-card.tsx +635 -0
- package/src/components/ui/backoffice-alert-history-chart.tsx +10 -2
- package/src/components/ui/backoffice-alerts-chart.tsx +312 -0
- package/src/components/ui/backoffice-connections-chart.tsx +339 -0
- package/src/components/ui/backoffice-contact-history-chart.tsx +10 -2
- package/src/components/ui/badge.tsx +12 -6
- package/src/components/ui/borrowing-capacity-line-chart.tsx +4 -11
- package/src/components/ui/button.tsx +2 -2
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/cash-balance-line-chart.tsx +4 -23
- package/src/components/ui/cashflow-bar-chart.tsx +9 -2
- package/src/components/ui/chart-shared.tsx +4 -11
- package/src/components/ui/chip.tsx +23 -19
- package/src/components/ui/color-picker.tsx +4 -2
- package/src/components/ui/data-table.tsx +28 -74
- package/src/components/ui/date-picker.tsx +42 -37
- package/src/components/ui/dialog.tsx +72 -6
- package/src/components/ui/expense-bar-chart.tsx +11 -2
- package/src/components/ui/financial-cards.tsx +99 -10
- package/src/components/ui/income-bar-chart.tsx +11 -2
- package/src/components/ui/opportunity-card.tsx +10 -39
- package/src/components/ui/opportunity-edit-modals.tsx +98 -36
- package/src/components/ui/opportunity-summary-tab.tsx +548 -232
- package/src/components/ui/page-header.tsx +57 -0
- package/src/components/ui/page-top-bar.tsx +48 -0
- package/src/components/ui/pagination.tsx +171 -22
- package/src/components/ui/pipeline-board.tsx +12 -5
- package/src/components/ui/property-cashflow-doughnut-chart.tsx +3 -1
- package/src/components/ui/property-debt-equity-doughnut-chart.tsx +3 -1
- package/src/components/ui/property-mobile-estimate-line-chart.tsx +3 -1
- package/src/components/ui/sidebar-nav.tsx +36 -37
- package/src/components/ui/transactions-expense-categories-doughnut-chart.tsx +3 -1
- package/src/components/ui/transactions-income-expense-bar-chart.tsx +12 -9
- package/src/components/ui/transactions-liabilities-breakdown-doughnut-chart.tsx +3 -1
- package/src/lib/format-currency.ts +44 -0
- package/src/lib/format-date.ts +50 -0
- package/src/lib/opportunity-constants.ts +12 -0
- package/src/styles/globals.css +17 -15
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +14 -0
- package/dist/chunk-S4QRUQNW.mjs +0 -475
- package/dist/chunk-URGMJAE3.mjs +0 -1885
- package/dist/chunk-WNGWBVLV.mjs +0 -148
- package/dist/{chunk-LLVQKSU3.mjs → chunk-GD4BJDJR.mjs} +3 -3
|
@@ -4,6 +4,12 @@ import {
|
|
|
4
4
|
TooltipProvider,
|
|
5
5
|
TooltipTrigger
|
|
6
6
|
} from "./chunk-6JQFUE5I.mjs";
|
|
7
|
+
import {
|
|
8
|
+
formatCurrency
|
|
9
|
+
} from "./chunk-MN5NYQCL.mjs";
|
|
10
|
+
import {
|
|
11
|
+
Button
|
|
12
|
+
} from "./chunk-XREGSKX3.mjs";
|
|
7
13
|
import {
|
|
8
14
|
cn
|
|
9
15
|
} from "./chunk-VLQZANBF.mjs";
|
|
@@ -22,19 +28,6 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
22
28
|
function getInitials(name) {
|
|
23
29
|
return name.split(" ").filter(Boolean).map((word) => word[0]).join("").toUpperCase().slice(0, 2);
|
|
24
30
|
}
|
|
25
|
-
function formatCurrency(value, isNetItem = false) {
|
|
26
|
-
const abs = Math.abs(value);
|
|
27
|
-
const formatted = new Intl.NumberFormat("en-AU", {
|
|
28
|
-
style: "currency",
|
|
29
|
-
currency: "AUD",
|
|
30
|
-
minimumFractionDigits: 0,
|
|
31
|
-
maximumFractionDigits: 0
|
|
32
|
-
}).format(abs);
|
|
33
|
-
if (!isNetItem) return formatted;
|
|
34
|
-
if (value > 0) return `+${formatted}`;
|
|
35
|
-
if (value < 0) return `-${formatted}`;
|
|
36
|
-
return formatted;
|
|
37
|
-
}
|
|
38
31
|
function navIconCn(isActive) {
|
|
39
32
|
return cn(
|
|
40
33
|
"shrink-0 transition-colors",
|
|
@@ -81,7 +74,7 @@ function MetricsGroup({ group }) {
|
|
|
81
74
|
"text-sm font-semibold tabular-nums shrink-0 text-brand-secondary-foreground",
|
|
82
75
|
item.isNetItem && item.value < 0 && "text-destructive"
|
|
83
76
|
),
|
|
84
|
-
children: formatCurrency(item.value, item.isNetItem)
|
|
77
|
+
children: formatCurrency(item.value, { showSign: item.isNetItem })
|
|
85
78
|
}
|
|
86
79
|
)
|
|
87
80
|
]
|
|
@@ -97,15 +90,16 @@ function SidebarNavItemView({
|
|
|
97
90
|
var _a;
|
|
98
91
|
const Icon = item.icon;
|
|
99
92
|
return /* @__PURE__ */ jsx(NavTooltip, { label: item.title, collapsed, children: /* @__PURE__ */ jsxs(
|
|
100
|
-
|
|
93
|
+
Button,
|
|
101
94
|
{
|
|
102
95
|
type: "button",
|
|
96
|
+
variant: "ghost",
|
|
103
97
|
onClick: () => onNavigate == null ? void 0 : onNavigate(item.href),
|
|
104
98
|
className: cn(
|
|
105
|
-
"group
|
|
99
|
+
"group h-auto w-full items-center gap-3 py-2.5 text-base font-medium transition-colors",
|
|
106
100
|
"text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground",
|
|
107
101
|
collapsed ? "justify-center px-2" : cn(
|
|
108
|
-
"px-3 border-l-4",
|
|
102
|
+
"justify-start px-3 border-l-4",
|
|
109
103
|
item.isActive ? "bg-white/15 text-brand-secondary-foreground border-primary" : "border-transparent"
|
|
110
104
|
)
|
|
111
105
|
),
|
|
@@ -137,12 +131,13 @@ function CollapsibleNavItem({
|
|
|
137
131
|
}, [hasActiveChild]);
|
|
138
132
|
if (collapsed) {
|
|
139
133
|
return /* @__PURE__ */ jsx(NavTooltip, { label: item.title, collapsed, children: /* @__PURE__ */ jsx(
|
|
140
|
-
|
|
134
|
+
Button,
|
|
141
135
|
{
|
|
142
136
|
type: "button",
|
|
137
|
+
variant: "ghost",
|
|
143
138
|
onClick: () => onNavigate == null ? void 0 : onNavigate(item.href),
|
|
144
139
|
className: cn(
|
|
145
|
-
"group
|
|
140
|
+
"group h-auto w-full justify-center px-2 py-2.5 transition-colors",
|
|
146
141
|
"text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground",
|
|
147
142
|
hasActiveChild && "bg-white/15 text-brand-secondary-foreground"
|
|
148
143
|
),
|
|
@@ -159,12 +154,13 @@ function CollapsibleNavItem({
|
|
|
159
154
|
}
|
|
160
155
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
161
156
|
/* @__PURE__ */ jsxs(
|
|
162
|
-
|
|
157
|
+
Button,
|
|
163
158
|
{
|
|
164
159
|
type: "button",
|
|
160
|
+
variant: "ghost",
|
|
165
161
|
onClick: () => setOpen((prev) => !prev),
|
|
166
162
|
className: cn(
|
|
167
|
-
"group
|
|
163
|
+
"group h-auto w-full justify-start gap-3 px-3 py-2.5 text-base font-medium transition-colors",
|
|
168
164
|
"text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground",
|
|
169
165
|
"border-l-4 border-transparent",
|
|
170
166
|
hasActiveChild && "bg-white/15 text-brand-secondary-foreground border-primary"
|
|
@@ -194,12 +190,13 @@ function CollapsibleNavItem({
|
|
|
194
190
|
}
|
|
195
191
|
),
|
|
196
192
|
open && item.subItems && /* @__PURE__ */ jsx("div", { className: "ml-9 border-l border-white/15 pl-3", children: item.subItems.map((sub) => /* @__PURE__ */ jsxs(
|
|
197
|
-
|
|
193
|
+
Button,
|
|
198
194
|
{
|
|
199
195
|
type: "button",
|
|
196
|
+
variant: "ghost",
|
|
200
197
|
onClick: () => onNavigate == null ? void 0 : onNavigate(sub.href),
|
|
201
198
|
className: cn(
|
|
202
|
-
"
|
|
199
|
+
"h-auto w-full justify-start gap-2 py-1.5 pl-1 text-sm transition-colors",
|
|
203
200
|
"text-brand-secondary-foreground/50 hover:text-brand-secondary-foreground",
|
|
204
201
|
sub.isActive && "text-primary font-medium"
|
|
205
202
|
),
|
|
@@ -241,7 +238,10 @@ function SidebarNav({
|
|
|
241
238
|
"data-slot": "sidebar-nav",
|
|
242
239
|
"data-collapsed": collapsed,
|
|
243
240
|
className: cn(
|
|
244
|
-
|
|
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
245
|
"transition-all duration-200 ease-in-out",
|
|
246
246
|
collapsed ? "w-14" : "w-[279px]",
|
|
247
247
|
className
|
|
@@ -267,12 +267,13 @@ function SidebarNav({
|
|
|
267
267
|
) }),
|
|
268
268
|
/* @__PURE__ */ jsxs("div", { className: "border-b border-white/15", children: [
|
|
269
269
|
/* @__PURE__ */ jsx(NavTooltip, { label: userName, collapsed, children: /* @__PURE__ */ jsxs(
|
|
270
|
-
|
|
270
|
+
Button,
|
|
271
271
|
{
|
|
272
272
|
type: "button",
|
|
273
|
+
variant: "ghost",
|
|
273
274
|
onClick: () => !collapsed && setUserMenuOpen((prev) => !prev),
|
|
274
275
|
className: cn(
|
|
275
|
-
"group
|
|
276
|
+
"group h-auto w-full justify-start gap-3 px-5 py-5 text-base transition-colors",
|
|
276
277
|
"text-brand-secondary-foreground hover:bg-white/10",
|
|
277
278
|
collapsed && "justify-center px-2 py-4"
|
|
278
279
|
),
|
|
@@ -296,12 +297,13 @@ function SidebarNav({
|
|
|
296
297
|
}
|
|
297
298
|
) }),
|
|
298
299
|
!collapsed && userMenuOpen && /* @__PURE__ */ jsx("div", { className: "border-t border-white/15 bg-black/20", children: /* @__PURE__ */ jsxs(
|
|
299
|
-
|
|
300
|
+
Button,
|
|
300
301
|
{
|
|
301
302
|
type: "button",
|
|
303
|
+
variant: "ghost",
|
|
302
304
|
onClick: onLogout,
|
|
303
305
|
className: cn(
|
|
304
|
-
"
|
|
306
|
+
"h-auto w-full justify-start gap-3 px-5 py-3 text-base",
|
|
305
307
|
"text-brand-secondary-foreground/70 hover:bg-white/10 hover:text-brand-secondary-foreground transition-colors"
|
|
306
308
|
),
|
|
307
309
|
children: [
|
|
@@ -344,12 +346,13 @@ function SidebarNav({
|
|
|
344
346
|
label: collapsed ? "Expand" : "Collapse",
|
|
345
347
|
collapsed,
|
|
346
348
|
children: /* @__PURE__ */ jsxs(
|
|
347
|
-
|
|
349
|
+
Button,
|
|
348
350
|
{
|
|
349
351
|
type: "button",
|
|
352
|
+
variant: "ghost",
|
|
350
353
|
onClick: () => onCollapsedChange(!collapsed),
|
|
351
354
|
className: cn(
|
|
352
|
-
"
|
|
355
|
+
"h-auto w-full justify-start gap-3 px-3 py-3 transition-colors",
|
|
353
356
|
"text-brand-secondary-foreground/80 hover:bg-white/10 hover:text-brand-secondary-foreground",
|
|
354
357
|
collapsed && "justify-center px-2"
|
|
355
358
|
),
|
|
@@ -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
|
-
|
|
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)
|
|
293
|
-
|
|
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
|
-
|
|
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:
|
|
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-
|
|
4
|
-
import "../../chunk-FH6QVUVZ.mjs";
|
|
5
|
-
import "../../chunk-NSLMILBT.mjs";
|
|
3
|
+
} from "../../chunk-PU4YZQXV.mjs";
|
|
6
4
|
import "../../chunk-7PYJD5JI.mjs";
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-NSLMILBT.mjs";
|
|
6
|
+
import "../../chunk-FH6QVUVZ.mjs";
|
|
8
7
|
import "../../chunk-GYMYRIZP.mjs";
|
|
9
|
-
import "../../chunk-
|
|
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";
|
|
@@ -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
|
-
|
|
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)
|
|
293
|
-
|
|
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
|
|
@@ -520,10 +548,13 @@ function AddLeadModal({
|
|
|
520
548
|
}
|
|
521
549
|
),
|
|
522
550
|
searchValue && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
523
|
-
|
|
551
|
+
Button,
|
|
524
552
|
{
|
|
553
|
+
type: "button",
|
|
554
|
+
variant: "ghost",
|
|
555
|
+
size: "icon",
|
|
525
556
|
onClick: () => onSearchChange == null ? void 0 : onSearchChange(""),
|
|
526
|
-
className: "absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",
|
|
557
|
+
className: "absolute right-2.5 top-1/2 size-6 -translate-y-1/2 text-muted-foreground hover:text-foreground",
|
|
527
558
|
"aria-label": "Clear search",
|
|
528
559
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react5.X, { className: "size-3.5" })
|
|
529
560
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AddLeadModal
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-HVY6KCCF.mjs";
|
|
4
4
|
import "../../chunk-RGVKLTLH.mjs";
|
|
5
5
|
import "../../chunk-7YAU5CY6.mjs";
|
|
6
|
-
import "../../chunk-XIRTEFKH.mjs";
|
|
7
6
|
import "../../chunk-GYMYRIZP.mjs";
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-6DZEXFNB.mjs";
|
|
8
|
+
import "../../chunk-XREGSKX3.mjs";
|
|
9
9
|
import "../../chunk-DBHJ5KC3.mjs";
|
|
10
10
|
import "../../chunk-FEZKMUCF.mjs";
|
|
11
11
|
import "../../chunk-QOJ2DQD6.mjs";
|