@wealthx/shadcn 1.2.2 → 1.3.1
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 +193 -149
- package/CHANGELOG.md +28 -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-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-MLNEWRWV.mjs +449 -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-Q2BGOAMG.mjs +202 -0
- 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/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 +530 -0
- package/dist/components/ui/advisor-card.mjs +15 -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 +426 -191
- package/dist/components/ui/sidebar-nav.mjs +5 -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 +12258 -8611
- package/dist/index.mjs +258 -190
- package/dist/styles.css +1 -1
- package/package.json +71 -1
- package/src/components/index.tsx +115 -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 +284 -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 +213 -157
- 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-ZRSDX6OW.mjs +0 -385
- package/dist/{chunk-LLVQKSU3.mjs → chunk-GD4BJDJR.mjs} +3 -3
|
@@ -3,7 +3,11 @@ import {
|
|
|
3
3
|
FALLBACK_BG,
|
|
4
4
|
FALLBACK_PRIMARY,
|
|
5
5
|
FALLBACK_TICK
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M3FV7LOK.mjs";
|
|
7
|
+
import {
|
|
8
|
+
formatCurrency,
|
|
9
|
+
formatCurrencyAbbrev
|
|
10
|
+
} from "./chunk-MN5NYQCL.mjs";
|
|
7
11
|
import {
|
|
8
12
|
Empty,
|
|
9
13
|
EmptyDescription
|
|
@@ -13,7 +17,7 @@ import {
|
|
|
13
17
|
CardContent,
|
|
14
18
|
CardHeader,
|
|
15
19
|
CardTitle
|
|
16
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-C7CQJNMR.mjs";
|
|
17
21
|
import {
|
|
18
22
|
Spinner
|
|
19
23
|
} from "./chunk-7YAU5CY6.mjs";
|
|
@@ -45,23 +49,6 @@ ChartJS.register(
|
|
|
45
49
|
PointElement,
|
|
46
50
|
Tooltip
|
|
47
51
|
);
|
|
48
|
-
function formatAbbrev(value) {
|
|
49
|
-
const abs = Math.abs(value);
|
|
50
|
-
const sign = value < 0 ? "-" : "";
|
|
51
|
-
if (abs >= 1e9)
|
|
52
|
-
return `${sign}$${(abs / 1e9).toFixed(1)}B`;
|
|
53
|
-
if (abs >= 1e6) return `${sign}$${(abs / 1e6).toFixed(1)}M`;
|
|
54
|
-
if (abs >= 1e3) return `${sign}$${(abs / 1e3).toFixed(1)}K`;
|
|
55
|
-
return `${sign}$${abs.toFixed(0)}`;
|
|
56
|
-
}
|
|
57
|
-
function formatBalanceFull(value) {
|
|
58
|
-
const abs = Math.abs(value);
|
|
59
|
-
const sign = value < 0 ? "-" : "";
|
|
60
|
-
return `${sign}$${abs.toLocaleString(void 0, {
|
|
61
|
-
minimumFractionDigits: 2,
|
|
62
|
-
maximumFractionDigits: 2
|
|
63
|
-
})}`;
|
|
64
|
-
}
|
|
65
52
|
function formatDateLabel(iso) {
|
|
66
53
|
const d = new Date(iso);
|
|
67
54
|
return d.toLocaleDateString("en-US", { month: "short", day: "numeric" });
|
|
@@ -187,7 +174,7 @@ function CashBalanceLineChart({
|
|
|
187
174
|
padding: 8,
|
|
188
175
|
color: FALLBACK_TICK,
|
|
189
176
|
font: { size: 10, family: fontFamily },
|
|
190
|
-
callback: (v) =>
|
|
177
|
+
callback: (v) => formatCurrencyAbbrev(Number(v))
|
|
191
178
|
}
|
|
192
179
|
}
|
|
193
180
|
}
|
|
@@ -202,8 +189,8 @@ function CashBalanceLineChart({
|
|
|
202
189
|
style: { maxWidth: width, fontFamily },
|
|
203
190
|
children: [
|
|
204
191
|
/* @__PURE__ */ jsx(CardHeader, { className: "px-3 sm:px-6", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
205
|
-
/* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
206
|
-
showBalanceValue && latestValue !== null && /* @__PURE__ */ jsx("p", { className: "text-2xl font-bold tabular-nums leading-tight", children:
|
|
192
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "text-xs font-semibold uppercase tracking-wide", children: title }),
|
|
193
|
+
showBalanceValue && latestValue !== null && /* @__PURE__ */ jsx("p", { className: "text-2xl font-bold tabular-nums leading-tight", children: formatCurrency(latestValue, { decimals: 2 }) })
|
|
207
194
|
] }) }),
|
|
208
195
|
/* @__PURE__ */ jsx(CardContent, { className: "px-3 sm:px-6", children: isLoading ? /* @__PURE__ */ jsx(
|
|
209
196
|
"div",
|
|
@@ -6,9 +6,12 @@ import {
|
|
|
6
6
|
FALLBACK_BG,
|
|
7
7
|
FALLBACK_FOREGROUND,
|
|
8
8
|
FALLBACK_PRIMARY,
|
|
9
|
-
FALLBACK_TICK
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
FALLBACK_TICK
|
|
10
|
+
} from "./chunk-M3FV7LOK.mjs";
|
|
11
|
+
import {
|
|
12
|
+
formatCurrency,
|
|
13
|
+
formatCurrencyAbbrev
|
|
14
|
+
} from "./chunk-MN5NYQCL.mjs";
|
|
12
15
|
import {
|
|
13
16
|
Empty,
|
|
14
17
|
EmptyDescription
|
|
@@ -18,7 +21,7 @@ import {
|
|
|
18
21
|
CardContent,
|
|
19
22
|
CardHeader,
|
|
20
23
|
CardTitle
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-C7CQJNMR.mjs";
|
|
22
25
|
import {
|
|
23
26
|
useThemeVars
|
|
24
27
|
} from "./chunk-FEZKMUCF.mjs";
|
|
@@ -73,13 +76,6 @@ var SERIES_LEGEND_ORDER = [
|
|
|
73
76
|
"desired-loan-amount"
|
|
74
77
|
];
|
|
75
78
|
var DASH_PATTERN = [6, 4];
|
|
76
|
-
function formatCurrencyFull(dollars) {
|
|
77
|
-
return new Intl.NumberFormat("en-AU", {
|
|
78
|
-
style: "currency",
|
|
79
|
-
currency: "AUD",
|
|
80
|
-
maximumFractionDigits: 0
|
|
81
|
-
}).format(dollars);
|
|
82
|
-
}
|
|
83
79
|
function formatDateLabel(iso) {
|
|
84
80
|
const d = /* @__PURE__ */ new Date(`${iso.slice(0, 7)}-01T00:00:00`);
|
|
85
81
|
return d.toLocaleDateString("en-US", { month: "short", year: "2-digit" });
|
|
@@ -179,7 +175,7 @@ function BorrowingCapacityLineChart({
|
|
|
179
175
|
label: (ctx) => {
|
|
180
176
|
var _a;
|
|
181
177
|
const dollars = (_a = ctx.parsed.y) != null ? _a : 0;
|
|
182
|
-
return ` ${ctx.dataset.label}: ${
|
|
178
|
+
return ` ${ctx.dataset.label}: ${formatCurrency(dollars)}`;
|
|
183
179
|
}
|
|
184
180
|
}
|
|
185
181
|
}
|
|
@@ -214,7 +210,7 @@ function BorrowingCapacityLineChart({
|
|
|
214
210
|
padding: 8,
|
|
215
211
|
color: FALLBACK_TICK,
|
|
216
212
|
font: { size: 10, family: fontFamily },
|
|
217
|
-
callback: (v) =>
|
|
213
|
+
callback: (v) => formatCurrencyAbbrev(Number(v))
|
|
218
214
|
}
|
|
219
215
|
}
|
|
220
216
|
}
|
|
@@ -244,8 +240,8 @@ function BorrowingCapacityLineChart({
|
|
|
244
240
|
style: { maxWidth: width, fontFamily },
|
|
245
241
|
children: [
|
|
246
242
|
/* @__PURE__ */ jsx(CardHeader, { className: "px-3 sm:px-6", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
247
|
-
/* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
248
|
-
kpiValue != null && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xl font-bold tabular-nums", children:
|
|
243
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "text-xs font-semibold uppercase tracking-wide", children: title }),
|
|
244
|
+
kpiValue != null && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xl font-bold tabular-nums", children: formatCurrency(kpiValue / 100) })
|
|
249
245
|
] }) }),
|
|
250
246
|
/* @__PURE__ */ jsx(CardContent, { className: "px-3 sm:px-6", children: isLoading ? /* @__PURE__ */ jsx(Skeleton, { style: { height, width: "100%" } }) : !hasData ? /* @__PURE__ */ jsx(Empty, { className: "flex-none p-4", style: { height }, children: /* @__PURE__ */ jsx(EmptyDescription, { children: "No borrowing capacity data available" }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
251
247
|
legendPosition === "top" && legendWrapper,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DebtCard,
|
|
4
4
|
OtherLiabilityCard,
|
|
5
5
|
PropertyCard
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IOJRDS6V.mjs";
|
|
7
7
|
import {
|
|
8
8
|
FinancialCardHeader,
|
|
9
9
|
FinancialDetailField,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-FH6QVUVZ.mjs";
|
|
24
24
|
import {
|
|
25
25
|
Button
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XREGSKX3.mjs";
|
|
27
27
|
import {
|
|
28
28
|
__spreadProps,
|
|
29
29
|
__spreadValues
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Toggle
|
|
3
|
+
} from "./chunk-BDYZCBRT.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Badge
|
|
6
|
+
} from "./chunk-BKNFWEH2.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/ui/appointment-time-slot-picker.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function AppointmentSlotSection({
|
|
11
|
+
label,
|
|
12
|
+
slots,
|
|
13
|
+
selectedSlotId,
|
|
14
|
+
onSelect
|
|
15
|
+
}) {
|
|
16
|
+
const hasAvailable = slots.some((s) => s.available);
|
|
17
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
18
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
19
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: label }),
|
|
20
|
+
!hasAvailable && /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-[10px]", children: "No availability" })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: slots.map((slot) => /* @__PURE__ */ jsx(
|
|
23
|
+
Toggle,
|
|
24
|
+
{
|
|
25
|
+
variant: "outline",
|
|
26
|
+
pressed: selectedSlotId === slot.id,
|
|
27
|
+
onPressedChange: (pressed) => {
|
|
28
|
+
if (pressed && slot.available) onSelect == null ? void 0 : onSelect(slot);
|
|
29
|
+
},
|
|
30
|
+
disabled: !slot.available,
|
|
31
|
+
className: "min-w-[88px]",
|
|
32
|
+
children: slot.label
|
|
33
|
+
},
|
|
34
|
+
slot.id
|
|
35
|
+
)) })
|
|
36
|
+
] });
|
|
37
|
+
}
|
|
38
|
+
function AppointmentTimeSlotPicker({
|
|
39
|
+
amSlots,
|
|
40
|
+
pmSlots,
|
|
41
|
+
selectedSlotId,
|
|
42
|
+
onSelect
|
|
43
|
+
}) {
|
|
44
|
+
const totalAvailable = [...amSlots, ...pmSlots].filter(
|
|
45
|
+
(s) => s.available
|
|
46
|
+
).length;
|
|
47
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
48
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold", children: "Select a time slot" }),
|
|
50
|
+
/* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
|
|
51
|
+
totalAvailable,
|
|
52
|
+
" available"
|
|
53
|
+
] })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ jsx(
|
|
56
|
+
AppointmentSlotSection,
|
|
57
|
+
{
|
|
58
|
+
label: "Morning",
|
|
59
|
+
slots: amSlots,
|
|
60
|
+
selectedSlotId,
|
|
61
|
+
onSelect
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ jsx(
|
|
65
|
+
AppointmentSlotSection,
|
|
66
|
+
{
|
|
67
|
+
label: "Afternoon",
|
|
68
|
+
slots: pmSlots,
|
|
69
|
+
selectedSlotId,
|
|
70
|
+
onSelect
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
] });
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
AppointmentSlotSection,
|
|
78
|
+
AppointmentTimeSlotPicker
|
|
79
|
+
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badgeVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BKNFWEH2.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Button
|
|
6
|
+
} from "./chunk-XREGSKX3.mjs";
|
|
4
7
|
import {
|
|
5
8
|
cn
|
|
6
9
|
} from "./chunk-VLQZANBF.mjs";
|
|
@@ -44,17 +47,19 @@ function Chip(_a) {
|
|
|
44
47
|
children: [
|
|
45
48
|
children,
|
|
46
49
|
onRemove ? /* @__PURE__ */ jsx(
|
|
47
|
-
|
|
50
|
+
Button,
|
|
48
51
|
{
|
|
52
|
+
type: "button",
|
|
53
|
+
variant: "ghost",
|
|
54
|
+
size: "icon",
|
|
49
55
|
"aria-label": "Remove",
|
|
50
|
-
className: "ml-0.5
|
|
56
|
+
className: "ml-0.5 size-4 shrink-0 rounded-full p-0.5 opacity-60 hover:opacity-100 disabled:pointer-events-none",
|
|
51
57
|
"data-slot": "chip-remove",
|
|
52
58
|
disabled,
|
|
53
59
|
onClick: (e) => {
|
|
54
60
|
e.stopPropagation();
|
|
55
61
|
onRemove();
|
|
56
62
|
},
|
|
57
|
-
type: "button",
|
|
58
63
|
children: /* @__PURE__ */ jsx(X, { className: "size-3" })
|
|
59
64
|
}
|
|
60
65
|
) : null
|