@wealthx/shadcn 1.5.6 → 1.5.8
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 +177 -171
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-XHGISOX5.mjs → chunk-33VT74R4.mjs} +1 -1
- package/dist/{chunk-M4LTX3MH.mjs → chunk-3C4DZTGA.mjs} +1 -1
- package/dist/{chunk-ODO6BUOF.mjs → chunk-3CGM3QXQ.mjs} +3 -5
- package/dist/{chunk-QBPNYXTI.mjs → chunk-3NJPNSJG.mjs} +1 -1
- package/dist/{chunk-6SR4K5T5.mjs → chunk-3S6KVFF5.mjs} +1 -1
- package/dist/{chunk-7KT5HPYM.mjs → chunk-3VZ6CYY2.mjs} +1 -1
- package/dist/chunk-3Z75IKFO.mjs +34 -0
- package/dist/{chunk-DFL5CV75.mjs → chunk-4BHDDLWK.mjs} +2 -2
- package/dist/{chunk-KLJLDNCA.mjs → chunk-4LLTZ45R.mjs} +1 -1
- package/dist/{chunk-RAKBWNQH.mjs → chunk-54MTIKNC.mjs} +27 -66
- package/dist/{chunk-JTG5R5YV.mjs → chunk-54TRNCID.mjs} +287 -61
- package/dist/{chunk-KCKYGQVQ.mjs → chunk-5DAQU3B6.mjs} +1 -1
- package/dist/{chunk-CKPEFZNH.mjs → chunk-5LZZYODG.mjs} +2 -2
- package/dist/{chunk-2A53WPEC.mjs → chunk-5YVJSKFH.mjs} +2 -2
- package/dist/{chunk-JUBUN65Q.mjs → chunk-5YWUGE6F.mjs} +1 -1
- package/dist/chunk-65PZNG4Y.mjs +129 -0
- package/dist/{chunk-K7WSRWOU.mjs → chunk-6LWCFAB4.mjs} +1 -1
- package/dist/{chunk-Q5SGEIJV.mjs → chunk-6MDNL5I2.mjs} +3 -3
- package/dist/{chunk-AUEUTZIC.mjs → chunk-6U4NQGVM.mjs} +3 -3
- package/dist/{chunk-V4CUTCHS.mjs → chunk-77L3UPBW.mjs} +1 -1
- package/dist/{chunk-CW32WTZU.mjs → chunk-7UIL5UN3.mjs} +1 -1
- package/dist/{chunk-2LLFNGJZ.mjs → chunk-AANINK2B.mjs} +3 -3
- package/dist/{chunk-UEREFDAE.mjs → chunk-AZGLSIHF.mjs} +1 -1
- package/dist/{chunk-XN37434W.mjs → chunk-B3CTBLIY.mjs} +2 -2
- package/dist/{chunk-XTWAJWCQ.mjs → chunk-BAONSY54.mjs} +1 -1
- package/dist/{chunk-XIY5DJXI.mjs → chunk-BXL74CM2.mjs} +1 -1
- package/dist/{chunk-OYBIUEGE.mjs → chunk-BZGFW6L7.mjs} +1 -1
- package/dist/chunk-CEEVYRQA.mjs +61 -0
- package/dist/{chunk-BD3DWDT4.mjs → chunk-CEYEK3TI.mjs} +1 -1
- package/dist/{chunk-I3UDLWQ7.mjs → chunk-D3HKFRQO.mjs} +1 -1
- package/dist/{chunk-3AREQTZU.mjs → chunk-DCKT635J.mjs} +1 -1
- package/dist/{chunk-VLELWBEW.mjs → chunk-E2BNCA6L.mjs} +1 -1
- package/dist/{chunk-QRVEI6J3.mjs → chunk-E5EDZQ5J.mjs} +1 -3
- package/dist/{chunk-QHJDGB54.mjs → chunk-EAKRTKHJ.mjs} +2 -2
- package/dist/{chunk-Q35PNFJ7.mjs → chunk-FBNEIYSE.mjs} +1 -1
- package/dist/{chunk-KB7MZMED.mjs → chunk-FGMDBJCF.mjs} +1 -1
- package/dist/{chunk-S4CTM3UE.mjs → chunk-FRCTOAKZ.mjs} +35 -4
- package/dist/{chunk-K7TWMLLW.mjs → chunk-FW4U543X.mjs} +4 -4
- package/dist/{chunk-PGR53HMH.mjs → chunk-G2W754UJ.mjs} +1 -1
- package/dist/{chunk-46Q4335I.mjs → chunk-GS47ZSSA.mjs} +12 -22
- package/dist/{chunk-AHKHVBWR.mjs → chunk-GYWOD2YI.mjs} +1 -1
- package/dist/{chunk-HNDTLT5X.mjs → chunk-H5DTKPJ2.mjs} +1 -1
- package/dist/{chunk-C6SWS7OW.mjs → chunk-HB5BKRMH.mjs} +1 -1
- package/dist/{chunk-WUA546RX.mjs → chunk-IFSQWDRN.mjs} +1 -1
- package/dist/{chunk-KAD26MCC.mjs → chunk-IRZWYTGV.mjs} +1 -1
- package/dist/{chunk-AL6GOL2Y.mjs → chunk-IW33VLL5.mjs} +1 -1
- package/dist/{chunk-A6ER36CW.mjs → chunk-JGBV3XMQ.mjs} +1 -1
- package/dist/{chunk-Y6UM3VTN.mjs → chunk-JUMEIPII.mjs} +1 -1
- package/dist/{chunk-VFH632TB.mjs → chunk-K4WDPVFY.mjs} +3 -3
- package/dist/{chunk-PV3Y7QGK.mjs → chunk-LHWJQNLG.mjs} +3 -3
- package/dist/{chunk-NCUH54IZ.mjs → chunk-LI2CTS5O.mjs} +1 -1
- package/dist/{chunk-F24U4QQQ.mjs → chunk-LPVXO3TD.mjs} +1 -1
- package/dist/{chunk-VJ3GC7W3.mjs → chunk-MNMSHB2J.mjs} +5 -5
- package/dist/{chunk-J5NW5NCT.mjs → chunk-NCMV3LTP.mjs} +1 -1
- package/dist/{chunk-IXR4BQSQ.mjs → chunk-O5CP6VP6.mjs} +3 -3
- package/dist/{chunk-TGVXRD53.mjs → chunk-OZ2R6ERP.mjs} +1 -1
- package/dist/{chunk-D447W45Z.mjs → chunk-PCULNQWA.mjs} +42 -50
- package/dist/{chunk-CDVG7SFT.mjs → chunk-PGJRZHN7.mjs} +1 -1
- package/dist/{chunk-IKDTOCSY.mjs → chunk-RSEVIQEO.mjs} +1 -1
- package/dist/{chunk-GNER6MCO.mjs → chunk-SSUK6C2K.mjs} +1 -1
- package/dist/{chunk-6TX73WG7.mjs → chunk-TCE5L44O.mjs} +3 -2
- package/dist/{chunk-OECGKCVF.mjs → chunk-TLLD5IU6.mjs} +1 -1
- package/dist/{chunk-BFB3UH7V.mjs → chunk-TRM3KIHT.mjs} +2 -2
- package/dist/{chunk-TLYSVRSK.mjs → chunk-TUC2BNUR.mjs} +3 -3
- package/dist/{chunk-HXU5JGLQ.mjs → chunk-UBHBIWIA.mjs} +3 -3
- package/dist/{chunk-TXUBGKB7.mjs → chunk-UJMVXREM.mjs} +2 -2
- package/dist/{chunk-TAX3KL66.mjs → chunk-USOVLDGS.mjs} +1 -1
- package/dist/{chunk-HF4FUBCY.mjs → chunk-UTCW5YUX.mjs} +1 -1
- package/dist/{chunk-OL65UQHQ.mjs → chunk-UYRHYJPX.mjs} +27 -61
- package/dist/{chunk-BDESHD25.mjs → chunk-VLVEZHFE.mjs} +1 -1
- package/dist/{chunk-EUYPMDQG.mjs → chunk-VWZS32ZQ.mjs} +1 -1
- package/dist/{chunk-HROG643K.mjs → chunk-W5QJ57PU.mjs} +1 -1
- package/dist/{chunk-F4O2YPXJ.mjs → chunk-WHIW6KOB.mjs} +1 -1
- package/dist/{chunk-TOIVHWNC.mjs → chunk-WWIWRNBK.mjs} +1 -1
- package/dist/{chunk-2QNOPXMQ.mjs → chunk-XMP24PWA.mjs} +1 -1
- package/dist/{chunk-HO6S3ECM.mjs → chunk-XUCDPAVI.mjs} +2 -2
- package/dist/{chunk-EW72FINW.mjs → chunk-XVZGXPIX.mjs} +1 -1
- package/dist/{chunk-WDTXHLYM.mjs → chunk-XYSRRDBH.mjs} +17 -11
- package/dist/{chunk-QAX6HCUH.mjs → chunk-ZAXZBOWI.mjs} +1 -1
- package/dist/{chunk-E3PQDBYI.mjs → chunk-ZFKAYRFQ.mjs} +1 -1
- package/dist/components/ui/about-you-form.mjs +6 -6
- package/dist/components/ui/add-column-modal.js +56 -227
- package/dist/components/ui/add-column-modal.mjs +4 -5
- package/dist/components/ui/add-lead-modal.mjs +6 -6
- package/dist/components/ui/ai-assistant-drawer.mjs +4 -4
- package/dist/components/ui/ai-builder.mjs +4 -4
- package/dist/components/ui/ai-conversations.js +278 -58
- package/dist/components/ui/ai-conversations.mjs +6 -6
- package/dist/components/ui/alert-dialog.mjs +3 -3
- package/dist/components/ui/appointment-action-dialogs.mjs +7 -7
- package/dist/components/ui/appointment-availability-settings.js +1 -1
- package/dist/components/ui/appointment-availability-settings.mjs +9 -9
- package/dist/components/ui/appointment-book-dialog.js +11 -21
- package/dist/components/ui/appointment-book-dialog.mjs +7 -7
- package/dist/components/ui/appointment-calendar-view.mjs +2 -2
- package/dist/components/ui/appointment-detail-sheet.mjs +9 -9
- package/dist/components/ui/appointment-upcoming-card.mjs +6 -6
- package/dist/components/ui/assets-liabilities-side-card.mjs +3 -3
- package/dist/components/ui/backoffice-alert-history-chart.mjs +3 -3
- package/dist/components/ui/backoffice-alert-matching-chart.mjs +3 -3
- package/dist/components/ui/backoffice-alerts-chart.mjs +3 -3
- package/dist/components/ui/backoffice-connections-chart.mjs +3 -3
- package/dist/components/ui/backoffice-contact-history-chart.mjs +3 -3
- package/dist/components/ui/backoffice-contact-matching-chart.mjs +3 -3
- package/dist/components/ui/backoffice-signup-steps.mjs +9 -9
- package/dist/components/ui/bank-statement-generate-dialog.mjs +9 -9
- package/dist/components/ui/bank-statement-pdf-viewer.mjs +4 -4
- package/dist/components/ui/borrowing-capacity-card.mjs +3 -3
- package/dist/components/ui/borrowing-capacity-line-chart.mjs +3 -3
- package/dist/components/ui/calculator-section.mjs +4 -4
- package/dist/components/ui/calendar.mjs +2 -2
- package/dist/components/ui/cash-balance-line-chart.mjs +3 -3
- package/dist/components/ui/cashflow-bar-chart.mjs +3 -3
- package/dist/components/ui/category-edit-dialog.mjs +4 -4
- package/dist/components/ui/color-picker.mjs +4 -4
- package/dist/components/ui/contact-alert-dialog/index.mjs +5 -5
- package/dist/components/ui/create-contact-modal.mjs +5 -5
- package/dist/components/ui/csv-import-modal.mjs +4 -4
- package/dist/components/ui/dashboard-transactions-table.mjs +5 -5
- package/dist/components/ui/data-table.mjs +6 -6
- package/dist/components/ui/date-picker.mjs +6 -6
- package/dist/components/ui/delete-contact-component.mjs +4 -4
- package/dist/components/ui/dialog.mjs +3 -3
- package/dist/components/ui/document-checklist-template.mjs +4 -4
- package/dist/components/ui/drawer.mjs +3 -3
- package/dist/components/ui/dropdown-menu.mjs +3 -3
- package/dist/components/ui/dynamic-tabs.mjs +3 -3
- package/dist/components/ui/editable-money-item.mjs +4 -4
- package/dist/components/ui/expense-bar-chart.mjs +3 -3
- package/dist/components/ui/expense-work-details.mjs +4 -4
- package/dist/components/ui/file-preview-dialog.mjs +6 -6
- package/dist/components/ui/financial-cards.mjs +2 -2
- package/dist/components/ui/financial-drawers.mjs +4 -4
- package/dist/components/ui/financial-sections.mjs +3 -3
- package/dist/components/ui/frontend-signup-steps.mjs +7 -7
- package/dist/components/ui/income-bar-chart.mjs +3 -3
- package/dist/components/ui/income-work-details.mjs +4 -4
- package/dist/components/ui/integration-card.js +326 -0
- package/dist/components/ui/integration-card.mjs +11 -0
- package/dist/components/ui/kanban-column.js +151 -243
- package/dist/components/ui/kanban-column.mjs +6 -7
- package/dist/components/ui/loan-application-cards.mjs +1 -1
- package/dist/components/ui/money-item-with-color-indicator.mjs +4 -4
- package/dist/components/ui/onboarding-layout.js +65 -4
- package/dist/components/ui/onboarding-layout.mjs +6 -4
- package/dist/components/ui/opportunity-card.js +126 -216
- package/dist/components/ui/opportunity-card.mjs +5 -6
- package/dist/components/ui/opportunity-edit-modals.mjs +9 -9
- package/dist/components/ui/opportunity-summary-tab.mjs +11 -11
- package/dist/components/ui/pagination.mjs +4 -4
- package/dist/components/ui/password-strength-tooltip.mjs +4 -4
- package/dist/components/ui/pipeline-board.js +167 -261
- package/dist/components/ui/pipeline-board.mjs +7 -8
- package/dist/components/ui/pipeline-chart.js +128 -55
- package/dist/components/ui/pipeline-chart.mjs +4 -3
- package/dist/components/ui/pipeline-dialogs.mjs +9 -9
- package/dist/components/ui/popover.mjs +3 -3
- package/dist/components/ui/property-cashflow-doughnut-chart.mjs +3 -3
- package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +3 -3
- package/dist/components/ui/property-mobile-estimate-line-chart.mjs +3 -3
- package/dist/components/ui/property-report-dialog.mjs +4 -4
- package/dist/components/ui/resource-center.mjs +4 -4
- package/dist/components/ui/review-alerts-dialog.mjs +4 -4
- package/dist/components/ui/savings-goal-modal.mjs +7 -7
- package/dist/components/ui/scenario-drawer.mjs +3 -3
- package/dist/components/ui/scenario-item.mjs +4 -4
- package/dist/components/ui/scenario-list.mjs +4 -4
- package/dist/components/ui/select.mjs +3 -3
- package/dist/components/ui/selectable-card.js +163 -0
- package/dist/components/ui/selectable-card.mjs +9 -0
- package/dist/components/ui/share-details-dialog.mjs +4 -4
- package/dist/components/ui/sheet.mjs +3 -3
- package/dist/components/ui/sidebar-nav.mjs +4 -4
- package/dist/components/ui/signup-form-primitives.mjs +6 -6
- package/dist/components/ui/signup-shell.js +3 -2
- package/dist/components/ui/signup-shell.mjs +2 -2
- package/dist/components/ui/stepper.js +3 -2
- package/dist/components/ui/stepper.mjs +1 -1
- package/dist/components/ui/tooltip.mjs +3 -3
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +3 -3
- package/dist/components/ui/transactions-income-expense-bar-chart.mjs +3 -3
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +3 -3
- package/dist/index.js +2144 -1875
- package/dist/index.mjs +105 -95
- package/dist/lib/colors.js +36 -3
- package/dist/lib/colors.mjs +5 -1
- package/dist/lib/theme-provider.js +60 -13
- package/dist/lib/theme-provider.mjs +2 -2
- package/dist/styles.css +1 -1
- package/package.json +11 -1
- package/src/components/index.tsx +13 -1
- package/src/components/ui/add-column-modal.tsx +9 -58
- package/src/components/ui/ai-conversations.tsx +308 -42
- package/src/components/ui/appointment-availability-settings.tsx +1 -1
- package/src/components/ui/appointment-book-dialog.tsx +25 -48
- package/src/components/ui/integration-card.tsx +88 -0
- package/src/components/ui/kanban-column.tsx +0 -7
- package/src/components/ui/onboarding-layout.tsx +102 -1
- package/src/components/ui/opportunity-card.tsx +5 -53
- package/src/components/ui/pipeline-board.tsx +0 -3
- package/src/components/ui/pipeline-chart.tsx +47 -53
- package/src/components/ui/selectable-card.tsx +37 -0
- package/src/components/ui/stepper.tsx +3 -2
- package/src/lib/colors.ts +73 -5
- package/src/lib/format-date.ts +6 -6
- package/src/lib/theme-provider.tsx +13 -8
- package/src/styles/globals.css +37 -9
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +2 -0
- package/dist/chunk-2P7HP7LR.mjs +0 -68
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
SelectContent,
|
|
4
4
|
SelectItem,
|
|
5
5
|
SelectTrigger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-USOVLDGS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Dialog,
|
|
9
9
|
DialogContent,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
DialogFooter,
|
|
12
12
|
DialogHeader,
|
|
13
13
|
DialogTitle
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LI2CTS5O.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DatePicker
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TRM3KIHT.mjs";
|
|
18
18
|
import {
|
|
19
19
|
ToggleGroup,
|
|
20
20
|
ToggleGroupItem
|
|
@@ -26,11 +26,11 @@ function formatDateWithWeekday(iso) {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
function formatDateLong(date) {
|
|
29
|
-
const d = typeof date === "string" ? safeParse(date) : date;
|
|
30
29
|
try {
|
|
31
|
-
|
|
30
|
+
const d = typeof date === "string" ? safeParse(date) : date;
|
|
31
|
+
return format(d, "EEEE, d MMMM yyyy");
|
|
32
32
|
} catch (e) {
|
|
33
|
-
return
|
|
33
|
+
return String(date);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
function formatWeekdayShort(date) {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
SelectItem,
|
|
5
5
|
SelectTrigger,
|
|
6
6
|
SelectValue
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-USOVLDGS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Switch
|
|
10
10
|
} from "./chunk-PNSYFE3K.mjs";
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
DialogFooter,
|
|
25
25
|
DialogHeader,
|
|
26
26
|
DialogTitle
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-LI2CTS5O.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DatePicker
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-TRM3KIHT.mjs";
|
|
31
31
|
import {
|
|
32
32
|
formatDateWithWeekday
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-LHWJQNLG.mjs";
|
|
34
34
|
import {
|
|
35
35
|
Label
|
|
36
36
|
} from "./chunk-P7CEBZM6.mjs";
|
|
@@ -134,7 +134,7 @@ function TimeSelect({
|
|
|
134
134
|
onValueChange: (v) => onChange(v),
|
|
135
135
|
disabled,
|
|
136
136
|
children: [
|
|
137
|
-
/* @__PURE__ */ jsx(SelectTrigger, { className: "w-36", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
137
|
+
/* @__PURE__ */ jsx(SelectTrigger, { className: "w-36", children: /* @__PURE__ */ jsx(SelectValue, { children: (v) => selectLabel(TIME_OPTIONS, v) }) }),
|
|
138
138
|
/* @__PURE__ */ jsx(SelectContent, { children: TIME_OPTIONS.map((opt) => /* @__PURE__ */ jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
139
139
|
]
|
|
140
140
|
}
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
SelectItem,
|
|
20
20
|
SelectTrigger,
|
|
21
21
|
SelectValue
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-USOVLDGS.mjs";
|
|
23
23
|
import {
|
|
24
24
|
Spinner
|
|
25
25
|
} from "./chunk-JVMXMFBB.mjs";
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
DialogFooter,
|
|
30
30
|
DialogHeader,
|
|
31
31
|
DialogTitle
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-LI2CTS5O.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DatePicker
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-TRM3KIHT.mjs";
|
|
36
36
|
import {
|
|
37
37
|
ToggleGroup,
|
|
38
38
|
ToggleGroupItem
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Tooltip,
|
|
3
|
+
TooltipContent,
|
|
4
|
+
TooltipProvider,
|
|
5
|
+
TooltipTrigger
|
|
6
|
+
} from "./chunk-3S6KVFF5.mjs";
|
|
1
7
|
import {
|
|
2
8
|
useThemeVars
|
|
3
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XYSRRDBH.mjs";
|
|
4
10
|
import {
|
|
5
11
|
formatCurrencyAbbrev
|
|
6
12
|
} from "./chunk-MN5NYQCL.mjs";
|
|
@@ -28,8 +34,6 @@ function PipelineChart({
|
|
|
28
34
|
}) {
|
|
29
35
|
const themeVars = useThemeVars();
|
|
30
36
|
const [activeId, setActiveId] = React.useState(null);
|
|
31
|
-
const [tooltipX, setTooltipX] = React.useState(0);
|
|
32
|
-
const barRef = React.useRef(null);
|
|
33
37
|
const nonEmpty = stages.filter((s) => s.value > 0);
|
|
34
38
|
const total = nonEmpty.reduce((sum, s) => sum + s.value, 0);
|
|
35
39
|
if (total === 0 || stages.length === 0) {
|
|
@@ -46,7 +50,6 @@ function PipelineChart({
|
|
|
46
50
|
}
|
|
47
51
|
);
|
|
48
52
|
}
|
|
49
|
-
const activeStage = activeId ? stages.find((s) => s.id === activeId) : null;
|
|
50
53
|
return /* @__PURE__ */ jsxs(
|
|
51
54
|
"div",
|
|
52
55
|
{
|
|
@@ -54,58 +57,47 @@ function PipelineChart({
|
|
|
54
57
|
"data-slot": "pipeline-chart",
|
|
55
58
|
style: themeVars,
|
|
56
59
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(
|
|
58
61
|
"div",
|
|
59
62
|
{
|
|
60
|
-
ref: barRef,
|
|
61
63
|
className: "relative flex w-full overflow-hidden",
|
|
62
64
|
style: { height: barHeight },
|
|
63
|
-
children:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
children: nonEmpty.map((stage, i) => {
|
|
66
|
+
var _a;
|
|
67
|
+
const pct = stage.value / total * 100;
|
|
68
|
+
const color = (_a = stage.color) != null ? _a : FALLBACK_COLORS[i % FALLBACK_COLORS.length];
|
|
69
|
+
const isActive = activeId === stage.id;
|
|
70
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
TooltipTrigger,
|
|
71
73
|
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
stage.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
className: "pointer-events-none absolute -top-8 z-10 whitespace-nowrap border border-border bg-popover px-2 py-1 text-xs text-popover-foreground shadow-sm",
|
|
98
|
-
style: { left: tooltipX, transform: "translateX(-50%)" },
|
|
99
|
-
children: [
|
|
100
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium", children: activeStage.name }),
|
|
101
|
-
" \u2014 ",
|
|
102
|
-
formatValue(activeStage.value)
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
)
|
|
106
|
-
]
|
|
74
|
+
render: /* @__PURE__ */ jsx(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
role: "img",
|
|
78
|
+
className: "relative h-full cursor-pointer transition-opacity",
|
|
79
|
+
style: {
|
|
80
|
+
width: `${pct}%`,
|
|
81
|
+
backgroundColor: color,
|
|
82
|
+
opacity: activeId && !isActive ? 0.5 : 1,
|
|
83
|
+
minWidth: 2
|
|
84
|
+
},
|
|
85
|
+
onMouseEnter: () => setActiveId(stage.id),
|
|
86
|
+
onMouseLeave: () => setActiveId(null),
|
|
87
|
+
"aria-label": `${stage.name}: ${formatValue(stage.value)}`
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ jsxs(TooltipContent, { side: "top", children: [
|
|
93
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: stage.name }),
|
|
94
|
+
" \u2014 ",
|
|
95
|
+
formatValue(stage.value)
|
|
96
|
+
] })
|
|
97
|
+
] }, stage.id);
|
|
98
|
+
})
|
|
107
99
|
}
|
|
108
|
-
),
|
|
100
|
+
) }),
|
|
109
101
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-x-4 gap-y-1.5", children: nonEmpty.map((stage, i) => {
|
|
110
102
|
var _a;
|
|
111
103
|
const color = (_a = stage.color) != null ? _a : FALLBACK_COLORS[i % FALLBACK_COLORS.length];
|
|
@@ -163,7 +163,8 @@ function StepLabel({
|
|
|
163
163
|
"span",
|
|
164
164
|
{
|
|
165
165
|
className: cn(
|
|
166
|
-
"
|
|
166
|
+
orientation === "vertical" && "flex h-8 items-center",
|
|
167
|
+
"text-label-small transition-colors",
|
|
167
168
|
(isActive || isCompleted) && !error && "text-foreground",
|
|
168
169
|
!isActive && !isCompleted && !error && "text-muted-foreground",
|
|
169
170
|
error && "text-destructive"
|
|
@@ -175,7 +176,7 @@ function StepLabel({
|
|
|
175
176
|
"span",
|
|
176
177
|
{
|
|
177
178
|
className: cn(
|
|
178
|
-
"mt-0.5 text-
|
|
179
|
+
"mt-0.5 text-caption",
|
|
179
180
|
error ? "text-destructive" : "text-muted-foreground"
|
|
180
181
|
),
|
|
181
182
|
children: subtext
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
Popover,
|
|
3
3
|
PopoverContent,
|
|
4
4
|
PopoverTrigger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HB5BKRMH.mjs";
|
|
6
6
|
import {
|
|
7
7
|
Calendar
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FBNEIYSE.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Input
|
|
11
11
|
} from "./chunk-LBTHZSBT.mjs";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GTAVSBDO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
PaginationNavButtons
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SSUK6C2K.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Table,
|
|
9
9
|
TableBody,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
SelectItem,
|
|
22
22
|
SelectTrigger,
|
|
23
23
|
SelectValue
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-USOVLDGS.mjs";
|
|
25
25
|
import {
|
|
26
26
|
DropdownMenu,
|
|
27
27
|
DropdownMenuCheckboxItem,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
DropdownMenuLabel,
|
|
31
31
|
DropdownMenuSeparator,
|
|
32
32
|
DropdownMenuTrigger
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-H5DTKPJ2.mjs";
|
|
34
34
|
import {
|
|
35
35
|
Input
|
|
36
36
|
} from "./chunk-LBTHZSBT.mjs";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
SelectItem,
|
|
19
19
|
SelectTrigger,
|
|
20
20
|
SelectValue
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-USOVLDGS.mjs";
|
|
22
22
|
import {
|
|
23
23
|
Spinner
|
|
24
24
|
} from "./chunk-JVMXMFBB.mjs";
|
|
@@ -27,14 +27,14 @@ import {
|
|
|
27
27
|
TooltipContent,
|
|
28
28
|
TooltipProvider,
|
|
29
29
|
TooltipTrigger
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-3S6KVFF5.mjs";
|
|
31
31
|
import {
|
|
32
32
|
Dialog,
|
|
33
33
|
DialogContent,
|
|
34
34
|
DialogFooter,
|
|
35
35
|
DialogHeader,
|
|
36
36
|
DialogTitle
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LI2CTS5O.mjs";
|
|
38
38
|
import {
|
|
39
39
|
Button
|
|
40
40
|
} from "./chunk-NOOEKOWY.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PasswordStrengthTooltip
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WHIW6KOB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Field,
|
|
6
6
|
FieldError,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
SelectItem,
|
|
13
13
|
SelectTrigger,
|
|
14
14
|
SelectValue
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-USOVLDGS.mjs";
|
|
16
16
|
import {
|
|
17
17
|
Input
|
|
18
18
|
} from "./chunk-LBTHZSBT.mjs";
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Select,
|
|
3
|
-
SelectContent,
|
|
4
|
-
SelectItem,
|
|
5
|
-
SelectTrigger
|
|
6
|
-
} from "./chunk-TAX3KL66.mjs";
|
|
7
1
|
import {
|
|
8
2
|
Separator
|
|
9
3
|
} from "./chunk-2GIYVERS.mjs";
|
|
@@ -13,7 +7,7 @@ import {
|
|
|
13
7
|
DialogFooter,
|
|
14
8
|
DialogHeader,
|
|
15
9
|
DialogTitle
|
|
16
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LI2CTS5O.mjs";
|
|
17
11
|
import {
|
|
18
12
|
Label
|
|
19
13
|
} from "./chunk-P7CEBZM6.mjs";
|
|
@@ -40,7 +34,6 @@ function AddColumnModal({
|
|
|
40
34
|
onOpenChange,
|
|
41
35
|
onSave,
|
|
42
36
|
editData,
|
|
43
|
-
aiAgents = [],
|
|
44
37
|
loading = false,
|
|
45
38
|
className
|
|
46
39
|
}) {
|
|
@@ -76,10 +69,7 @@ function AddColumnModal({
|
|
|
76
69
|
const isValid = name.trim().length > 0 && !daysError && !hasDuplicateTasks && tasks.every((t) => t.name.trim().length > 0);
|
|
77
70
|
function addTask() {
|
|
78
71
|
if (tasks.length >= MAX_TASKS) return;
|
|
79
|
-
setTasks((prev) => [
|
|
80
|
-
...prev,
|
|
81
|
-
{ id: nextId.current++, name: "", aiAgentId: null }
|
|
82
|
-
]);
|
|
72
|
+
setTasks((prev) => [...prev, { id: nextId.current++, name: "" }]);
|
|
83
73
|
}
|
|
84
74
|
function removeTask(id) {
|
|
85
75
|
setTasks((prev) => prev.filter((t) => t.id !== id));
|
|
@@ -172,55 +162,31 @@ function AddColumnModal({
|
|
|
172
162
|
)
|
|
173
163
|
] }),
|
|
174
164
|
tasks.length === 0 && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "No tasks yet. Tasks will be created for each new opportunity added to this column." }),
|
|
175
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: tasks.map((task) => {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
)
|
|
202
|
-
] }),
|
|
203
|
-
aiAgents.length > 0 && /* @__PURE__ */ jsxs(
|
|
204
|
-
Select,
|
|
205
|
-
{
|
|
206
|
-
value: (_a2 = task.aiAgentId) != null ? _a2 : void 0,
|
|
207
|
-
onValueChange: (v) => updateTask(task.id, { aiAgentId: v || null }),
|
|
208
|
-
children: [
|
|
209
|
-
/* @__PURE__ */ jsx(SelectTrigger, { size: "sm", className: "w-full", children: /* @__PURE__ */ jsx(
|
|
210
|
-
"span",
|
|
211
|
-
{
|
|
212
|
-
className: cn(
|
|
213
|
-
!task.aiAgentId && "text-muted-foreground"
|
|
214
|
-
),
|
|
215
|
-
children: task.aiAgentId ? (_c = (_b2 = aiAgents.find((a) => a.id === task.aiAgentId)) == null ? void 0 : _b2.name) != null ? _c : task.aiAgentId : "Select agent"
|
|
216
|
-
}
|
|
217
|
-
) }),
|
|
218
|
-
/* @__PURE__ */ jsx(SelectContent, { children: aiAgents.map((agent) => /* @__PURE__ */ jsx(SelectItem, { value: agent.id, children: agent.name }, agent.id)) })
|
|
219
|
-
]
|
|
220
|
-
}
|
|
221
|
-
)
|
|
222
|
-
] }, task.id);
|
|
223
|
-
}) }),
|
|
165
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: tasks.map((task) => /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1.5", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
166
|
+
/* @__PURE__ */ jsx(
|
|
167
|
+
Input,
|
|
168
|
+
{
|
|
169
|
+
value: task.name,
|
|
170
|
+
onChange: (e) => updateTask(task.id, { name: e.target.value }),
|
|
171
|
+
placeholder: "Task name",
|
|
172
|
+
className: "flex-1",
|
|
173
|
+
disabled: loading
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
/* @__PURE__ */ jsx(
|
|
177
|
+
Button,
|
|
178
|
+
{
|
|
179
|
+
type: "button",
|
|
180
|
+
variant: "ghost",
|
|
181
|
+
size: "icon",
|
|
182
|
+
onClick: () => removeTask(task.id),
|
|
183
|
+
disabled: loading,
|
|
184
|
+
className: "size-9 shrink-0 text-muted-foreground hover:text-destructive",
|
|
185
|
+
"aria-label": "Remove task",
|
|
186
|
+
children: /* @__PURE__ */ jsx(Trash2, { className: "size-4" })
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
] }) }, task.id)) }),
|
|
224
190
|
hasDuplicateTasks && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: "Task names must be unique." })
|
|
225
191
|
] })
|
|
226
192
|
] }),
|