@wealthx/shadcn 1.0.2 → 1.2.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 +235 -138
- package/CHANGELOG.md +12 -0
- package/README.md +82 -0
- package/dist/{chunk-6OJF6XRN.mjs → chunk-24FUO7TD.mjs} +4 -8
- package/dist/{chunk-4AJ5HWHD.mjs → chunk-2I5S2AMY.mjs} +3 -3
- package/dist/chunk-2SF672SZ.mjs +161 -0
- package/dist/{chunk-GPRJQ24C.mjs → chunk-34NWQURD.mjs} +2 -2
- package/dist/{chunk-MQ72DIBH.mjs → chunk-3GF7OVTP.mjs} +14 -5
- package/dist/chunk-3WMX6KWS.mjs +245 -0
- package/dist/{chunk-PMKODV6M.mjs → chunk-462HMNO4.mjs} +6 -10
- package/dist/chunk-4CX4SBRO.mjs +153 -0
- package/dist/chunk-4MN6UQHG.mjs +443 -0
- package/dist/chunk-5QQVZTVZ.mjs +233 -0
- package/dist/{chunk-BGP2N52Z.mjs → chunk-66MI7Q4B.mjs} +5 -5
- package/dist/chunk-6FCGKSZX.mjs +268 -0
- package/dist/{chunk-CGOKTPXU.mjs → chunk-6JQFUE5I.mjs} +20 -23
- package/dist/{chunk-Z3MK2KKZ.mjs → chunk-7DHU4VGG.mjs} +7 -3
- package/dist/{chunk-VZ2NR7L3.mjs → chunk-7PYJD5JI.mjs} +35 -27
- package/dist/{chunk-JU2RUWHF.mjs → chunk-7XJHLGUV.mjs} +1 -1
- package/dist/{chunk-BMFN37JH.mjs → chunk-7YAU5CY6.mjs} +1 -1
- package/dist/chunk-A56YQQHG.mjs +402 -0
- package/dist/chunk-AH52LG6N.mjs +315 -0
- package/dist/{chunk-SLWCCURD.mjs → chunk-CLIN5525.mjs} +8 -4
- package/dist/{chunk-3VQNJ235.mjs → chunk-CSDO6VBW.mjs} +7 -0
- package/dist/chunk-D4ILTPOG.mjs +293 -0
- package/dist/{chunk-HS7TFG7V.mjs → chunk-D6ID6M4V.mjs} +1 -1
- package/dist/chunk-DOH3EHX7.mjs +378 -0
- package/dist/{chunk-MJIEMGRD.mjs → chunk-EFRENWEJ.mjs} +9 -17
- package/dist/chunk-ERGGHC2V.mjs +185 -0
- package/dist/{chunk-OXQQNQZI.mjs → chunk-FEZKMUCF.mjs} +10 -1
- package/dist/{chunk-55CEW76V.mjs → chunk-FH6QVUVZ.mjs} +1 -1
- package/dist/chunk-FMAXJ2SI.mjs +71 -0
- package/dist/chunk-FZIXGLMV.mjs +173 -0
- package/dist/{chunk-DS2AMHN2.mjs → chunk-GYMYRIZP.mjs} +2 -2
- package/dist/{chunk-KQDD5MU3.mjs → chunk-H45TKD34.mjs} +5 -5
- package/dist/{chunk-BBJBJSXQ.mjs → chunk-J5UICVJS.mjs} +1 -1
- package/dist/{chunk-RL772EH7.mjs → chunk-JHJHG4GO.mjs} +4 -12
- package/dist/chunk-KMCGSZTX.mjs +177 -0
- package/dist/{chunk-FHNT55I5.mjs → chunk-KUDCQ4FI.mjs} +4 -4
- package/dist/chunk-LE6YFY6D.mjs +209 -0
- package/dist/{chunk-HUVTPUV2.mjs → chunk-LLVQKSU3.mjs} +23 -19
- package/dist/{chunk-KKHTJNMM.mjs → chunk-MARPPFOJ.mjs} +8 -4
- package/dist/{chunk-6AFMNC42.mjs → chunk-N2PT566P.mjs} +15 -11
- package/dist/chunk-NLCKVHWB.mjs +161 -0
- package/dist/{chunk-YN5SYTOO.mjs → chunk-NQPOYKAQ.mjs} +9 -5
- package/dist/{chunk-ZZV5JVNW.mjs → chunk-NSLMILBT.mjs} +3 -7
- package/dist/chunk-NXA3CZ7A.mjs +248 -0
- package/dist/chunk-OGOYQ7BG.mjs +150 -0
- package/dist/{chunk-3NQGYJEZ.mjs → chunk-P6AM5V7O.mjs} +10 -18
- package/dist/{chunk-CZ3BW5GL.mjs → chunk-P76HMUI6.mjs} +5 -11
- package/dist/chunk-PCPLO5HT.mjs +671 -0
- package/dist/chunk-PG6K5XEC.mjs +475 -0
- package/dist/chunk-PJHPSRYD.mjs +234 -0
- package/dist/{chunk-DDPA2XXS.mjs → chunk-PMB3A7V3.mjs} +2 -2
- package/dist/chunk-PR6V5XKM.mjs +209 -0
- package/dist/{chunk-46OFHMQA.mjs → chunk-Q76O3RIQ.mjs} +10 -6
- package/dist/chunk-QVKWW6KE.mjs +272 -0
- package/dist/chunk-RGU7HOEC.mjs +140 -0
- package/dist/{chunk-JF4PHPD5.mjs → chunk-RGVKLTLH.mjs} +4 -4
- package/dist/{chunk-VG6UF6UT.mjs → chunk-RP3SQYA3.mjs} +2 -2
- package/dist/chunk-RRBS6D63.mjs +163 -0
- package/dist/chunk-SMQ3DG25.mjs +285 -0
- package/dist/chunk-SPJ5KXW7.mjs +199 -0
- package/dist/chunk-SYOD63OZ.mjs +225 -0
- package/dist/chunk-UFYSFDER.mjs +42 -0
- package/dist/chunk-VACKZOMY.mjs +190 -0
- package/dist/chunk-VLQZANBF.mjs +42 -0
- package/dist/chunk-WA6O6EUR.mjs +1885 -0
- package/dist/{chunk-E3K6O4FZ.mjs → chunk-WAZD7NFU.mjs} +5 -2
- package/dist/chunk-WG6JGJXB.mjs +165 -0
- package/dist/{chunk-I64K754C.mjs → chunk-WNGWBVLV.mjs} +2 -2
- package/dist/{chunk-3U7SD3MS.mjs → chunk-WOEHFRGB.mjs} +3 -3
- package/dist/{chunk-DKZRJOMF.mjs → chunk-XIRTEFKH.mjs} +12 -12
- package/dist/chunk-Y6DWJSKZ.mjs +79 -0
- package/dist/chunk-YKPROFLB.mjs +161 -0
- package/dist/{chunk-K76E2TQU.mjs → chunk-ZRO5JO3H.mjs} +107 -67
- package/dist/{chunk-VYMHBV6D.mjs → chunk-ZU4NV6RG.mjs} +5 -3
- package/dist/components/ui/accordion.js +40 -4
- package/dist/components/ui/accordion.mjs +2 -2
- package/dist/components/ui/add-column-modal.js +789 -0
- package/dist/components/ui/add-column-modal.mjs +17 -0
- package/dist/components/ui/add-lead-modal.js +647 -0
- package/dist/components/ui/add-lead-modal.mjs +16 -0
- package/dist/components/ui/ai-assistant-drawer.js +686 -0
- package/dist/components/ui/ai-assistant-drawer.mjs +16 -0
- package/dist/components/ui/alert-dialog.js +37 -5
- package/dist/components/ui/alert-dialog.mjs +4 -4
- package/dist/components/ui/alert.js +37 -11
- package/dist/components/ui/alert.mjs +2 -2
- package/dist/components/ui/avatar.js +36 -8
- package/dist/components/ui/avatar.mjs +2 -2
- package/dist/components/ui/backoffice-alert-history-chart.js +624 -0
- package/dist/components/ui/backoffice-alert-history-chart.mjs +16 -0
- package/dist/components/ui/backoffice-contact-history-chart.js +687 -0
- package/dist/components/ui/backoffice-contact-history-chart.mjs +16 -0
- package/dist/components/ui/badge.js +37 -2
- package/dist/components/ui/badge.mjs +2 -2
- package/dist/components/ui/borrowing-capacity-line-chart.js +639 -0
- package/dist/components/ui/borrowing-capacity-line-chart.mjs +16 -0
- package/dist/components/ui/button.js +35 -3
- package/dist/components/ui/button.mjs +2 -2
- package/dist/components/ui/calendar.js +43 -19
- package/dist/components/ui/calendar.mjs +3 -3
- package/dist/components/ui/card.js +40 -4
- package/dist/components/ui/card.mjs +2 -2
- package/dist/components/ui/cash-balance-line-chart.js +627 -0
- package/dist/components/ui/cash-balance-line-chart.mjs +16 -0
- package/dist/components/ui/cashflow-bar-chart.js +650 -0
- package/dist/components/ui/cashflow-bar-chart.mjs +16 -0
- package/dist/components/ui/checkbox.js +36 -5
- package/dist/components/ui/checkbox.mjs +2 -3
- package/dist/components/ui/chip.js +37 -2
- package/dist/components/ui/chip.mjs +3 -3
- package/dist/components/ui/combobox.js +280 -0
- package/dist/components/ui/combobox.mjs +28 -0
- package/dist/components/ui/data-table.js +160 -88
- package/dist/components/ui/data-table.mjs +10 -11
- package/dist/components/ui/date-picker.js +44 -20
- package/dist/components/ui/date-picker.mjs +6 -7
- package/dist/components/ui/dialog.js +44 -12
- package/dist/components/ui/dialog.mjs +4 -4
- package/dist/components/ui/drawer.js +46 -10
- package/dist/components/ui/drawer.mjs +3 -3
- package/dist/components/ui/dropdown-menu.js +40 -16
- package/dist/components/ui/dropdown-menu.mjs +3 -3
- package/dist/components/ui/empty.js +41 -5
- package/dist/components/ui/empty.mjs +2 -2
- package/dist/components/ui/expense-bar-chart.js +642 -0
- package/dist/components/ui/expense-bar-chart.mjs +16 -0
- package/dist/components/ui/field.js +53 -21
- package/dist/components/ui/field.mjs +4 -4
- package/dist/components/ui/financial-cards.js +1002 -0
- package/dist/components/ui/financial-cards.mjs +24 -0
- package/dist/components/ui/financial-drawers.js +637 -0
- package/dist/components/ui/financial-drawers.mjs +17 -0
- package/dist/components/ui/financial-primitives.js +218 -0
- package/dist/components/ui/financial-primitives.mjs +22 -0
- package/dist/components/ui/financial-sections.js +1422 -0
- package/dist/components/ui/financial-sections.mjs +30 -0
- package/dist/components/ui/form-primitives.js +682 -0
- package/dist/components/ui/form-primitives.mjs +19 -0
- package/dist/components/ui/income-bar-chart.js +641 -0
- package/dist/components/ui/income-bar-chart.mjs +16 -0
- package/dist/components/ui/input-group.js +43 -7
- package/dist/components/ui/input-group.mjs +5 -5
- package/dist/components/ui/input-otp.js +39 -3
- package/dist/components/ui/input-otp.mjs +2 -2
- package/dist/components/ui/input.js +34 -2
- package/dist/components/ui/input.mjs +2 -2
- package/dist/components/ui/kanban-column.js +1143 -0
- package/dist/components/ui/kanban-column.mjs +20 -0
- package/dist/components/ui/label.js +35 -7
- package/dist/components/ui/label.mjs +2 -2
- package/dist/components/ui/opportunity-card.js +960 -0
- package/dist/components/ui/opportunity-card.mjs +20 -0
- package/dist/components/ui/opportunity-edit-modals.js +3360 -0
- package/dist/components/ui/opportunity-edit-modals.mjs +37 -0
- package/dist/components/ui/opportunity-summary-tab.js +4365 -0
- package/dist/components/ui/opportunity-summary-tab.mjs +34 -0
- package/dist/components/ui/pagination.js +35 -3
- package/dist/components/ui/pagination.mjs +3 -3
- package/dist/components/ui/pipeline-alerts.js +103 -0
- package/dist/components/ui/pipeline-alerts.mjs +8 -0
- package/dist/components/ui/pipeline-board.js +1408 -0
- package/dist/components/ui/pipeline-board.mjs +24 -0
- package/dist/components/ui/pipeline-chart.js +216 -0
- package/dist/components/ui/pipeline-chart.mjs +10 -0
- package/dist/components/ui/pipeline-dialogs.js +1183 -0
- package/dist/components/ui/pipeline-dialogs.mjs +23 -0
- package/dist/components/ui/pipeline-primitives.js +300 -0
- package/dist/components/ui/pipeline-primitives.mjs +11 -0
- package/dist/components/ui/popover.js +45 -4
- package/dist/components/ui/popover.mjs +3 -3
- package/dist/components/ui/progress.js +33 -1
- package/dist/components/ui/progress.mjs +2 -2
- package/dist/components/ui/property-cashflow-doughnut-chart.js +523 -0
- package/dist/components/ui/property-cashflow-doughnut-chart.mjs +16 -0
- package/dist/components/ui/property-debt-equity-doughnut-chart.js +521 -0
- package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +16 -0
- package/dist/components/ui/property-mobile-estimate-line-chart.js +682 -0
- package/dist/components/ui/property-mobile-estimate-line-chart.mjs +16 -0
- package/dist/components/ui/radio-group.js +33 -1
- package/dist/components/ui/radio-group.mjs +2 -2
- package/dist/components/ui/select.js +66 -26
- package/dist/components/ui/select.mjs +3 -3
- package/dist/components/ui/separator.js +33 -1
- package/dist/components/ui/separator.mjs +2 -2
- package/dist/components/ui/sheet.js +37 -9
- package/dist/components/ui/sheet.mjs +3 -3
- package/dist/components/ui/skeleton.js +33 -1
- package/dist/components/ui/skeleton.mjs +2 -2
- package/dist/components/ui/slider.js +86 -102
- package/dist/components/ui/slider.mjs +2 -2
- package/dist/components/ui/spinner.js +33 -1
- package/dist/components/ui/spinner.mjs +2 -2
- package/dist/components/ui/stage-timeline.js +579 -0
- package/dist/components/ui/stage-timeline.mjs +15 -0
- package/dist/components/ui/switch.js +37 -4
- package/dist/components/ui/switch.mjs +2 -3
- package/dist/components/ui/table.js +37 -5
- package/dist/components/ui/table.mjs +2 -2
- package/dist/components/ui/tabs.js +36 -12
- package/dist/components/ui/tabs.mjs +2 -2
- package/dist/components/ui/textarea.js +34 -2
- package/dist/components/ui/textarea.mjs +2 -2
- package/dist/components/ui/toggle-group.js +35 -4
- package/dist/components/ui/toggle-group.mjs +3 -4
- package/dist/components/ui/toggle.js +35 -4
- package/dist/components/ui/toggle.mjs +2 -3
- package/dist/components/ui/tooltip.js +51 -22
- package/dist/components/ui/tooltip.mjs +3 -3
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +528 -0
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +16 -0
- package/dist/components/ui/transactions-income-expense-bar-chart.js +516 -0
- package/dist/components/ui/transactions-income-expense-bar-chart.mjs +16 -0
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +528 -0
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +16 -0
- package/dist/index.js +11613 -2868
- package/dist/index.mjs +377 -164
- package/dist/lib/theme-provider.js +10 -1
- package/dist/lib/theme-provider.mjs +1 -1
- package/dist/lib/typography.js +8 -0
- package/dist/lib/typography.mjs +3 -1
- package/dist/lib/utils.js +33 -1
- package/dist/lib/utils.mjs +1 -1
- package/dist/styles.css +1 -1
- package/package.json +169 -6
- package/src/components/index.tsx +323 -13
- package/src/components/ui/accordion.tsx +6 -3
- package/src/components/ui/add-column-modal.tsx +339 -0
- package/src/components/ui/add-lead-modal.tsx +290 -0
- package/src/components/ui/ai-assistant-drawer.tsx +408 -0
- package/src/components/ui/alert-dialog.tsx +80 -54
- package/src/components/ui/alert.tsx +28 -28
- package/src/components/ui/avatar.tsx +30 -29
- package/src/components/ui/backoffice-alert-history-chart.tsx +260 -0
- package/src/components/ui/backoffice-contact-history-chart.tsx +325 -0
- package/src/components/ui/badge.tsx +17 -15
- package/src/components/ui/borrowing-capacity-line-chart.tsx +357 -0
- package/src/components/ui/button.tsx +30 -27
- package/src/components/ui/calendar.tsx +53 -67
- package/src/components/ui/card.tsx +27 -24
- package/src/components/ui/cash-balance-line-chart.tsx +302 -0
- package/src/components/ui/cashflow-bar-chart.tsx +363 -0
- package/src/components/ui/chart-shared.tsx +261 -0
- package/src/components/ui/checkbox.tsx +30 -26
- package/src/components/ui/combobox.tsx +223 -0
- package/src/components/ui/data-table.tsx +160 -99
- package/src/components/ui/date-picker.tsx +0 -2
- package/src/components/ui/dialog.tsx +70 -60
- package/src/components/ui/drawer.tsx +57 -48
- package/src/components/ui/dropdown-menu.tsx +90 -82
- package/src/components/ui/empty.tsx +31 -27
- package/src/components/ui/expense-bar-chart.tsx +296 -0
- package/src/components/ui/field.tsx +70 -62
- package/src/components/ui/financial-cards.tsx +830 -0
- package/src/components/ui/financial-drawers.tsx +339 -0
- package/src/components/ui/financial-primitives.tsx +331 -0
- package/src/components/ui/financial-sections.tsx +672 -0
- package/src/components/ui/form-primitives.tsx +536 -0
- package/src/components/ui/income-bar-chart.tsx +297 -0
- package/src/components/ui/input-group.tsx +41 -34
- package/src/components/ui/input-otp.tsx +29 -24
- package/src/components/ui/input.tsx +8 -8
- package/src/components/ui/kanban-column.tsx +333 -0
- package/src/components/ui/label.tsx +9 -12
- package/src/components/ui/opportunity-card.tsx +616 -0
- package/src/components/ui/opportunity-edit-modals.tsx +2528 -0
- package/src/components/ui/opportunity-summary-tab.tsx +579 -0
- package/src/components/ui/pipeline-alerts.tsx +74 -0
- package/src/components/ui/pipeline-board.tsx +268 -0
- package/src/components/ui/pipeline-chart.tsx +173 -0
- package/src/components/ui/pipeline-dialogs.tsx +303 -0
- package/src/components/ui/pipeline-primitives.tsx +108 -0
- package/src/components/ui/popover.tsx +41 -36
- package/src/components/ui/property-cashflow-doughnut-chart.tsx +188 -0
- package/src/components/ui/property-debt-equity-doughnut-chart.tsx +185 -0
- package/src/components/ui/property-mobile-estimate-line-chart.tsx +393 -0
- package/src/components/ui/select.tsx +65 -52
- package/src/components/ui/sheet.tsx +55 -52
- package/src/components/ui/slider.tsx +54 -77
- package/src/components/ui/stage-timeline.tsx +205 -0
- package/src/components/ui/switch.tsx +42 -29
- package/src/components/ui/table.tsx +28 -28
- package/src/components/ui/tabs.tsx +22 -28
- package/src/components/ui/textarea.tsx +8 -8
- package/src/components/ui/toggle-group.tsx +0 -2
- package/src/components/ui/toggle.tsx +13 -15
- package/src/components/ui/tooltip.tsx +30 -28
- package/src/components/ui/transactions-expense-categories-doughnut-chart.tsx +191 -0
- package/src/components/ui/transactions-income-expense-bar-chart.tsx +205 -0
- package/src/components/ui/transactions-liabilities-breakdown-doughnut-chart.tsx +191 -0
- package/src/lib/theme-provider.tsx +10 -0
- package/src/lib/typography.ts +9 -0
- package/src/lib/utils.ts +41 -3
- package/src/styles/globals.css +371 -124
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +32 -0
- package/dist/chunk-K74JRTJR.mjs +0 -105
- package/dist/chunk-V7CNWJT3.mjs +0 -10
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AboutCard,
|
|
3
|
+
AlertCard,
|
|
4
|
+
DebtCard,
|
|
5
|
+
ExpensesCard,
|
|
6
|
+
IncomeCard,
|
|
7
|
+
OtherLiabilityCard,
|
|
8
|
+
PropertyCard
|
|
9
|
+
} from "../../chunk-PCPLO5HT.mjs";
|
|
10
|
+
import "../../chunk-7XJHLGUV.mjs";
|
|
11
|
+
import "../../chunk-OGOYQ7BG.mjs";
|
|
12
|
+
import "../../chunk-WAZD7NFU.mjs";
|
|
13
|
+
import "../../chunk-DBHJ5KC3.mjs";
|
|
14
|
+
import "../../chunk-VLQZANBF.mjs";
|
|
15
|
+
import "../../chunk-FWCSY2DS.mjs";
|
|
16
|
+
export {
|
|
17
|
+
AboutCard,
|
|
18
|
+
AlertCard,
|
|
19
|
+
DebtCard,
|
|
20
|
+
ExpensesCard,
|
|
21
|
+
IncomeCard,
|
|
22
|
+
OtherLiabilityCard,
|
|
23
|
+
PropertyCard
|
|
24
|
+
};
|
|
@@ -0,0 +1,637 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
+
};
|
|
41
|
+
var __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
57
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
+
|
|
59
|
+
// src/components/ui/financial-drawers.tsx
|
|
60
|
+
var financial_drawers_exports = {};
|
|
61
|
+
__export(financial_drawers_exports, {
|
|
62
|
+
OpportunityDetailsDrawer: () => OpportunityDetailsDrawer,
|
|
63
|
+
SummaryReportDrawer: () => SummaryReportDrawer
|
|
64
|
+
});
|
|
65
|
+
module.exports = __toCommonJS(financial_drawers_exports);
|
|
66
|
+
var import_lucide_react4 = require("lucide-react");
|
|
67
|
+
|
|
68
|
+
// src/components/ui/sheet.tsx
|
|
69
|
+
var import_lucide_react = require("lucide-react");
|
|
70
|
+
var import_dialog = require("@base-ui/react/dialog");
|
|
71
|
+
|
|
72
|
+
// src/lib/utils.ts
|
|
73
|
+
var import_clsx = require("clsx");
|
|
74
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
75
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
76
|
+
extend: {
|
|
77
|
+
classGroups: {
|
|
78
|
+
"font-size": [
|
|
79
|
+
{
|
|
80
|
+
text: [
|
|
81
|
+
"display-large",
|
|
82
|
+
"display-medium",
|
|
83
|
+
"display-small",
|
|
84
|
+
"h1",
|
|
85
|
+
"h2",
|
|
86
|
+
"h3",
|
|
87
|
+
"h4",
|
|
88
|
+
"h5",
|
|
89
|
+
"h6",
|
|
90
|
+
"body-large",
|
|
91
|
+
"body-medium",
|
|
92
|
+
"body-small",
|
|
93
|
+
"label-large",
|
|
94
|
+
"label-medium",
|
|
95
|
+
"label-small",
|
|
96
|
+
"button",
|
|
97
|
+
"button-xs",
|
|
98
|
+
"caption",
|
|
99
|
+
"overline",
|
|
100
|
+
"code"
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
function cn(...inputs) {
|
|
108
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// src/lib/theme-provider.tsx
|
|
112
|
+
var import_react = require("react");
|
|
113
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
114
|
+
var ThemeVarsContext = (0, import_react.createContext)({});
|
|
115
|
+
function useThemeVars() {
|
|
116
|
+
return (0, import_react.useContext)(ThemeVarsContext);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// src/components/ui/sheet.tsx
|
|
120
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
121
|
+
var SIDE_CLASSES = {
|
|
122
|
+
right: "inset-y-0 right-0 h-full w-1/2 border-l data-ending-style:slide-out-to-right data-open:slide-in-from-right",
|
|
123
|
+
left: "inset-y-0 left-0 h-full w-1/2 border-r data-ending-style:slide-out-to-left data-open:slide-in-from-left",
|
|
124
|
+
top: "inset-x-0 top-0 h-auto border-b data-ending-style:slide-out-to-top data-open:slide-in-from-top",
|
|
125
|
+
bottom: "inset-x-0 bottom-0 h-auto border-t data-ending-style:slide-out-to-bottom data-open:slide-in-from-bottom"
|
|
126
|
+
};
|
|
127
|
+
function Sheet(_a) {
|
|
128
|
+
var props = __objRest(_a, []);
|
|
129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dialog.Dialog.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
130
|
+
}
|
|
131
|
+
function SheetPortal(_a) {
|
|
132
|
+
var props = __objRest(_a, []);
|
|
133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dialog.Dialog.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
134
|
+
}
|
|
135
|
+
function SheetOverlay(_a) {
|
|
136
|
+
var _b = _a, {
|
|
137
|
+
className
|
|
138
|
+
} = _b, props = __objRest(_b, [
|
|
139
|
+
"className"
|
|
140
|
+
]);
|
|
141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
142
|
+
import_dialog.Dialog.Backdrop,
|
|
143
|
+
__spreadValues({
|
|
144
|
+
className: cn(
|
|
145
|
+
"fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
146
|
+
className
|
|
147
|
+
),
|
|
148
|
+
"data-slot": "sheet-overlay"
|
|
149
|
+
}, props)
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
function SheetContent(_a) {
|
|
153
|
+
var _b = _a, {
|
|
154
|
+
className,
|
|
155
|
+
children,
|
|
156
|
+
side = "right",
|
|
157
|
+
showCloseButton = true,
|
|
158
|
+
style
|
|
159
|
+
} = _b, props = __objRest(_b, [
|
|
160
|
+
"className",
|
|
161
|
+
"children",
|
|
162
|
+
"side",
|
|
163
|
+
"showCloseButton",
|
|
164
|
+
"style"
|
|
165
|
+
]);
|
|
166
|
+
const themeVars = useThemeVars();
|
|
167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(SheetPortal, { children: [
|
|
168
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SheetOverlay, {}),
|
|
169
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
170
|
+
import_dialog.Dialog.Popup,
|
|
171
|
+
__spreadProps(__spreadValues({
|
|
172
|
+
className: cn(
|
|
173
|
+
"fixed z-50 flex flex-col gap-4 bg-background transition ease-in-out data-ending-style:animate-out data-ending-style:duration-300 data-ending-style:fill-mode-forwards data-open:animate-in data-open:duration-500",
|
|
174
|
+
SIDE_CLASSES[side],
|
|
175
|
+
className
|
|
176
|
+
),
|
|
177
|
+
"data-slot": "sheet-content",
|
|
178
|
+
style: __spreadValues(__spreadValues({}, themeVars), style)
|
|
179
|
+
}, props), {
|
|
180
|
+
children: [
|
|
181
|
+
children,
|
|
182
|
+
showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
183
|
+
import_dialog.Dialog.Close,
|
|
184
|
+
{
|
|
185
|
+
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",
|
|
186
|
+
"data-slot": "sheet-icon-close",
|
|
187
|
+
children: [
|
|
188
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.XIcon, {}),
|
|
189
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "sr-only", children: "Close" })
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
) : null
|
|
193
|
+
]
|
|
194
|
+
})
|
|
195
|
+
)
|
|
196
|
+
] });
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// src/components/ui/button.tsx
|
|
200
|
+
var import_react2 = require("react");
|
|
201
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
202
|
+
var import_lucide_react2 = require("lucide-react");
|
|
203
|
+
|
|
204
|
+
// src/lib/slot.tsx
|
|
205
|
+
var React2 = __toESM(require("react"));
|
|
206
|
+
function mergeRefs(...refs) {
|
|
207
|
+
return (value) => {
|
|
208
|
+
for (const ref of refs) {
|
|
209
|
+
if (typeof ref === "function") ref(value);
|
|
210
|
+
else if (ref !== null)
|
|
211
|
+
ref.current = value;
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
var Slot = React2.forwardRef(
|
|
216
|
+
(_a, forwardedRef) => {
|
|
217
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
218
|
+
const child = React2.Children.only(children);
|
|
219
|
+
if (!React2.isValidElement(child)) return null;
|
|
220
|
+
const childProps = child.props;
|
|
221
|
+
const merged = __spreadValues({}, props);
|
|
222
|
+
for (const key of Object.keys(childProps)) {
|
|
223
|
+
if (key === "className") {
|
|
224
|
+
merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
|
|
225
|
+
} else if (key === "style") {
|
|
226
|
+
merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
|
|
227
|
+
} else if (key.startsWith("on") && typeof childProps[key] === "function") {
|
|
228
|
+
const parentHandler = props[key];
|
|
229
|
+
if (typeof parentHandler === "function") {
|
|
230
|
+
merged[key] = (...args) => {
|
|
231
|
+
childProps[key](...args);
|
|
232
|
+
parentHandler(...args);
|
|
233
|
+
};
|
|
234
|
+
} else {
|
|
235
|
+
merged[key] = childProps[key];
|
|
236
|
+
}
|
|
237
|
+
} else {
|
|
238
|
+
merged[key] = childProps[key];
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
const childRef = child.ref;
|
|
242
|
+
merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
|
|
243
|
+
return React2.cloneElement(
|
|
244
|
+
child,
|
|
245
|
+
merged
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
Slot.displayName = "Slot";
|
|
250
|
+
|
|
251
|
+
// src/components/ui/button.tsx
|
|
252
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
253
|
+
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
254
|
+
"inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 font-sans text-button whitespace-nowrap transition-all active:scale-[0.98] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
255
|
+
{
|
|
256
|
+
variants: {
|
|
257
|
+
variant: {
|
|
258
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
259
|
+
secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
|
|
260
|
+
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",
|
|
261
|
+
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",
|
|
262
|
+
"outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
|
|
263
|
+
"outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
|
|
264
|
+
ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs dark:hover:bg-accent/50",
|
|
265
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
266
|
+
},
|
|
267
|
+
size: {
|
|
268
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
269
|
+
xs: "h-6 gap-1 px-2 text-button-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
270
|
+
sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
271
|
+
lg: "h-10 px-6 has-[>svg]:px-4",
|
|
272
|
+
icon: "size-9",
|
|
273
|
+
"icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
|
|
274
|
+
"icon-sm": "size-8",
|
|
275
|
+
"icon-lg": "size-10"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
defaultVariants: {
|
|
279
|
+
variant: "default",
|
|
280
|
+
size: "default"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
);
|
|
284
|
+
var Button = (0, import_react2.forwardRef)(function Button2(_a, ref) {
|
|
285
|
+
var _b = _a, {
|
|
286
|
+
className,
|
|
287
|
+
variant,
|
|
288
|
+
size,
|
|
289
|
+
asChild = false,
|
|
290
|
+
loading = false,
|
|
291
|
+
disabled,
|
|
292
|
+
type = "button",
|
|
293
|
+
children
|
|
294
|
+
} = _b, props = __objRest(_b, [
|
|
295
|
+
"className",
|
|
296
|
+
"variant",
|
|
297
|
+
"size",
|
|
298
|
+
"asChild",
|
|
299
|
+
"loading",
|
|
300
|
+
"disabled",
|
|
301
|
+
"type",
|
|
302
|
+
"children"
|
|
303
|
+
]);
|
|
304
|
+
const Comp = asChild ? Slot : "button";
|
|
305
|
+
const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
|
|
306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
307
|
+
Comp,
|
|
308
|
+
__spreadProps(__spreadValues({
|
|
309
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
310
|
+
"data-size": size,
|
|
311
|
+
"data-slot": "button",
|
|
312
|
+
"data-variant": variant,
|
|
313
|
+
disabled: loading || disabled,
|
|
314
|
+
ref,
|
|
315
|
+
type
|
|
316
|
+
}, props), {
|
|
317
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
318
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react2.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
|
|
319
|
+
!isIconOnly && children
|
|
320
|
+
] }) : children
|
|
321
|
+
})
|
|
322
|
+
);
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
// src/components/ui/tabs.tsx
|
|
326
|
+
var import_class_variance_authority2 = require("class-variance-authority");
|
|
327
|
+
var import_tabs = require("@base-ui/react/tabs");
|
|
328
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
329
|
+
function Tabs(_a) {
|
|
330
|
+
var _b = _a, {
|
|
331
|
+
className,
|
|
332
|
+
orientation = "horizontal"
|
|
333
|
+
} = _b, props = __objRest(_b, [
|
|
334
|
+
"className",
|
|
335
|
+
"orientation"
|
|
336
|
+
]);
|
|
337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
338
|
+
import_tabs.Tabs.Root,
|
|
339
|
+
__spreadValues({
|
|
340
|
+
className: cn(
|
|
341
|
+
"group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",
|
|
342
|
+
className
|
|
343
|
+
),
|
|
344
|
+
"data-orientation": orientation,
|
|
345
|
+
"data-slot": "tabs"
|
|
346
|
+
}, props)
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
var tabsListVariants = (0, import_class_variance_authority2.cva)(
|
|
350
|
+
"group/tabs-list inline-flex w-fit items-center justify-center gap-1 rounded-none p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",
|
|
351
|
+
{
|
|
352
|
+
variants: {
|
|
353
|
+
variant: {
|
|
354
|
+
default: "bg-muted",
|
|
355
|
+
line: "bg-transparent p-0"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
defaultVariants: {
|
|
359
|
+
variant: "default"
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
);
|
|
363
|
+
function TabsList(_a) {
|
|
364
|
+
var _b = _a, {
|
|
365
|
+
className,
|
|
366
|
+
variant = "default"
|
|
367
|
+
} = _b, props = __objRest(_b, [
|
|
368
|
+
"className",
|
|
369
|
+
"variant"
|
|
370
|
+
]);
|
|
371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
372
|
+
import_tabs.Tabs.List,
|
|
373
|
+
__spreadValues({
|
|
374
|
+
className: cn(tabsListVariants({ variant }), className),
|
|
375
|
+
"data-slot": "tabs-list",
|
|
376
|
+
"data-variant": variant
|
|
377
|
+
}, props)
|
|
378
|
+
);
|
|
379
|
+
}
|
|
380
|
+
function TabsTrigger(_a) {
|
|
381
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
383
|
+
import_tabs.Tabs.Tab,
|
|
384
|
+
__spreadValues({
|
|
385
|
+
className: cn(
|
|
386
|
+
// Base layout & typography
|
|
387
|
+
"relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap",
|
|
388
|
+
"rounded-none border border-transparent px-1.5 py-1 text-label-medium",
|
|
389
|
+
"text-muted-foreground transition-all",
|
|
390
|
+
// Vertical orientation
|
|
391
|
+
"group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start",
|
|
392
|
+
// Hover & focus
|
|
393
|
+
"hover:text-foreground",
|
|
394
|
+
"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring",
|
|
395
|
+
// Disabled
|
|
396
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
397
|
+
// Active state — Default variant: primary/10 bg + subtle shadow
|
|
398
|
+
// Base UI uses data-active attribute for the active/selected tab
|
|
399
|
+
"data-active:bg-primary/10 data-active:text-foreground",
|
|
400
|
+
"group-data-[variant=default]/tabs-list:data-active:shadow-sm",
|
|
401
|
+
// Active state — Line variant: suppress bg & shadow
|
|
402
|
+
"group-data-[variant=line]/tabs-list:data-active:bg-transparent",
|
|
403
|
+
"group-data-[variant=line]/tabs-list:data-active:shadow-none",
|
|
404
|
+
// Indicator pseudo-element (visible only for Line variant, active state)
|
|
405
|
+
"after:absolute after:bg-primary after:opacity-0 after:transition-opacity",
|
|
406
|
+
"group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5",
|
|
407
|
+
"group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5",
|
|
408
|
+
"group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
|
|
409
|
+
// SVG icons
|
|
410
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
411
|
+
className
|
|
412
|
+
),
|
|
413
|
+
"data-slot": "tabs-trigger"
|
|
414
|
+
}, props)
|
|
415
|
+
);
|
|
416
|
+
}
|
|
417
|
+
function TabsContent(_a) {
|
|
418
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
420
|
+
import_tabs.Tabs.Panel,
|
|
421
|
+
__spreadValues({
|
|
422
|
+
className: cn("flex-1 outline-none", className),
|
|
423
|
+
"data-slot": "tabs-content"
|
|
424
|
+
}, props)
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// src/components/ui/spinner.tsx
|
|
429
|
+
var import_class_variance_authority3 = require("class-variance-authority");
|
|
430
|
+
var import_lucide_react3 = require("lucide-react");
|
|
431
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
432
|
+
var spinnerVariants = (0, import_class_variance_authority3.cva)("animate-spin shrink-0", {
|
|
433
|
+
variants: {
|
|
434
|
+
size: {
|
|
435
|
+
sm: "size-3",
|
|
436
|
+
default: "size-4",
|
|
437
|
+
lg: "size-6",
|
|
438
|
+
xl: "size-8"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
defaultVariants: {
|
|
442
|
+
size: "default"
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
function Spinner(_a) {
|
|
446
|
+
var _b = _a, { className, size } = _b, props = __objRest(_b, ["className", "size"]);
|
|
447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
448
|
+
import_lucide_react3.LoaderCircle,
|
|
449
|
+
__spreadValues({
|
|
450
|
+
"aria-hidden": "true",
|
|
451
|
+
className: cn(spinnerVariants({ size }), className),
|
|
452
|
+
"data-slot": "spinner"
|
|
453
|
+
}, props)
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
// src/components/ui/financial-drawers.tsx
|
|
458
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
459
|
+
function SummaryReportDrawer({
|
|
460
|
+
open,
|
|
461
|
+
onOpenChange,
|
|
462
|
+
contactName = "Contact",
|
|
463
|
+
hasJointView = false,
|
|
464
|
+
viewMode = "individual",
|
|
465
|
+
onViewModeChange,
|
|
466
|
+
jointSubTab = "joint",
|
|
467
|
+
onJointSubTabChange,
|
|
468
|
+
jointMainUserName = "User A",
|
|
469
|
+
jointCoApplicantName = "User B",
|
|
470
|
+
onCreateJointView,
|
|
471
|
+
onRemoveJointView,
|
|
472
|
+
actionButtons,
|
|
473
|
+
alerts,
|
|
474
|
+
isLoading = false,
|
|
475
|
+
children
|
|
476
|
+
}) {
|
|
477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Sheet, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
478
|
+
SheetContent,
|
|
479
|
+
{
|
|
480
|
+
side: "right",
|
|
481
|
+
showCloseButton: false,
|
|
482
|
+
className: "w-[min(1080px,90vw)] max-w-none p-0",
|
|
483
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex max-h-[100dvh] min-h-0 flex-1 flex-col overflow-hidden px-8 py-6", children: [
|
|
484
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "shrink-0 space-y-4", children: [
|
|
485
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
486
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
487
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex items-center gap-2", children: hasJointView ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
488
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-1", children: [
|
|
489
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
490
|
+
Button,
|
|
491
|
+
{
|
|
492
|
+
variant: viewMode === "individual" ? "default" : "outline",
|
|
493
|
+
size: "sm",
|
|
494
|
+
onClick: () => onViewModeChange == null ? void 0 : onViewModeChange("individual"),
|
|
495
|
+
children: "Individual View"
|
|
496
|
+
}
|
|
497
|
+
),
|
|
498
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
499
|
+
Button,
|
|
500
|
+
{
|
|
501
|
+
variant: viewMode === "joint" ? "default" : "outline",
|
|
502
|
+
size: "sm",
|
|
503
|
+
onClick: () => onViewModeChange == null ? void 0 : onViewModeChange("joint"),
|
|
504
|
+
children: "Joint View"
|
|
505
|
+
}
|
|
506
|
+
)
|
|
507
|
+
] }),
|
|
508
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
509
|
+
Button,
|
|
510
|
+
{
|
|
511
|
+
variant: "outline",
|
|
512
|
+
size: "sm",
|
|
513
|
+
onClick: onRemoveJointView,
|
|
514
|
+
children: "Remove Joint View"
|
|
515
|
+
}
|
|
516
|
+
)
|
|
517
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
518
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "text-label-medium text-foreground", children: [
|
|
519
|
+
contactName,
|
|
520
|
+
" View"
|
|
521
|
+
] }),
|
|
522
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
523
|
+
Button,
|
|
524
|
+
{
|
|
525
|
+
variant: "outline",
|
|
526
|
+
size: "sm",
|
|
527
|
+
onClick: onCreateJointView,
|
|
528
|
+
children: "Create Joint View"
|
|
529
|
+
}
|
|
530
|
+
)
|
|
531
|
+
] }) }),
|
|
532
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
533
|
+
Button,
|
|
534
|
+
{
|
|
535
|
+
variant: "ghost",
|
|
536
|
+
size: "icon-sm",
|
|
537
|
+
onClick: () => onOpenChange(false),
|
|
538
|
+
"aria-label": "Close drawer",
|
|
539
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react4.X, { className: "h-4 w-4" })
|
|
540
|
+
}
|
|
541
|
+
)
|
|
542
|
+
] }),
|
|
543
|
+
hasJointView && viewMode === "joint" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
544
|
+
Tabs,
|
|
545
|
+
{
|
|
546
|
+
value: jointSubTab,
|
|
547
|
+
onValueChange: (v) => onJointSubTabChange == null ? void 0 : onJointSubTabChange(v),
|
|
548
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(TabsList, { children: [
|
|
549
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsTrigger, { value: "joint", children: "Joint View" }),
|
|
550
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(TabsTrigger, { value: "userA", children: [
|
|
551
|
+
jointMainUserName,
|
|
552
|
+
" View"
|
|
553
|
+
] }),
|
|
554
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(TabsTrigger, { value: "userB", children: [
|
|
555
|
+
jointCoApplicantName,
|
|
556
|
+
" View"
|
|
557
|
+
] })
|
|
558
|
+
] })
|
|
559
|
+
}
|
|
560
|
+
)
|
|
561
|
+
] }),
|
|
562
|
+
!isLoading && actionButtons && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { children: actionButtons }),
|
|
563
|
+
!isLoading && alerts && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { children: alerts })
|
|
564
|
+
] }),
|
|
565
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "min-h-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex h-full min-h-[200px] items-center justify-center py-12", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Spinner, { size: "xl", className: "text-primary" }) }) : children })
|
|
566
|
+
] })
|
|
567
|
+
}
|
|
568
|
+
) });
|
|
569
|
+
}
|
|
570
|
+
var OPPORTUNITY_TABS = [
|
|
571
|
+
{ value: "summary", label: "Summary" },
|
|
572
|
+
{ value: "tasks", label: "Tasks" },
|
|
573
|
+
{ value: "bankStatement", label: "Reports & Statements" },
|
|
574
|
+
{ value: "policyAI", label: "Policy AI" },
|
|
575
|
+
{ value: "runServicing", label: "Run Servicing" },
|
|
576
|
+
{ value: "emailAndNotes", label: "Email & Notes" },
|
|
577
|
+
{ value: "syncLoanApp", label: "Sync Loan App" }
|
|
578
|
+
];
|
|
579
|
+
function OpportunityDetailsDrawer({
|
|
580
|
+
open,
|
|
581
|
+
onOpenChange,
|
|
582
|
+
defaultTab = "summary",
|
|
583
|
+
tabs
|
|
584
|
+
}) {
|
|
585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Sheet, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
586
|
+
SheetContent,
|
|
587
|
+
{
|
|
588
|
+
side: "right",
|
|
589
|
+
showCloseButton: false,
|
|
590
|
+
className: "w-[min(1048px,100vw)] max-w-none p-0",
|
|
591
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Tabs, { defaultValue: defaultTab, className: "h-full gap-0", children: [
|
|
592
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex shrink-0 items-end border-b border-border", children: [
|
|
593
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
594
|
+
TabsList,
|
|
595
|
+
{
|
|
596
|
+
variant: "line",
|
|
597
|
+
className: "flex-1 group-data-[orientation=horizontal]/tabs:h-auto justify-start rounded-none bg-transparent p-0",
|
|
598
|
+
children: OPPORTUNITY_TABS.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
599
|
+
TabsTrigger,
|
|
600
|
+
{
|
|
601
|
+
value: tab.value,
|
|
602
|
+
className: "flex-none h-auto py-3 px-4 text-sm",
|
|
603
|
+
children: tab.label
|
|
604
|
+
},
|
|
605
|
+
tab.value
|
|
606
|
+
))
|
|
607
|
+
}
|
|
608
|
+
),
|
|
609
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex shrink-0 self-center items-center pr-3", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
610
|
+
Button,
|
|
611
|
+
{
|
|
612
|
+
variant: "ghost",
|
|
613
|
+
size: "icon-sm",
|
|
614
|
+
onClick: () => onOpenChange(false),
|
|
615
|
+
"aria-label": "Close drawer",
|
|
616
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react4.X, { className: "h-4 w-4" })
|
|
617
|
+
}
|
|
618
|
+
) })
|
|
619
|
+
] }),
|
|
620
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: OPPORTUNITY_TABS.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
621
|
+
TabsContent,
|
|
622
|
+
{
|
|
623
|
+
value: tab.value,
|
|
624
|
+
className: "mt-0 flex-none p-5 outline-none",
|
|
625
|
+
children: tabs == null ? void 0 : tabs[tab.value]
|
|
626
|
+
},
|
|
627
|
+
tab.value
|
|
628
|
+
)) })
|
|
629
|
+
] })
|
|
630
|
+
}
|
|
631
|
+
) });
|
|
632
|
+
}
|
|
633
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
634
|
+
0 && (module.exports = {
|
|
635
|
+
OpportunityDetailsDrawer,
|
|
636
|
+
SummaryReportDrawer
|
|
637
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OpportunityDetailsDrawer,
|
|
3
|
+
SummaryReportDrawer
|
|
4
|
+
} from "../../chunk-SPJ5KXW7.mjs";
|
|
5
|
+
import "../../chunk-JHJHG4GO.mjs";
|
|
6
|
+
import "../../chunk-462HMNO4.mjs";
|
|
7
|
+
import "../../chunk-7YAU5CY6.mjs";
|
|
8
|
+
import "../../chunk-2I5S2AMY.mjs";
|
|
9
|
+
import "../../chunk-DBHJ5KC3.mjs";
|
|
10
|
+
import "../../chunk-FEZKMUCF.mjs";
|
|
11
|
+
import "../../chunk-QOJ2DQD6.mjs";
|
|
12
|
+
import "../../chunk-VLQZANBF.mjs";
|
|
13
|
+
import "../../chunk-FWCSY2DS.mjs";
|
|
14
|
+
export {
|
|
15
|
+
OpportunityDetailsDrawer,
|
|
16
|
+
SummaryReportDrawer
|
|
17
|
+
};
|