@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @wealthx/shadcn
|
|
2
2
|
|
|
3
|
+
## 1.5.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 131d46a: Update pipeline chart color, fix appointment setting
|
|
8
|
+
|
|
9
|
+
## 1.5.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 42c9830: Updates to loan-crm, signup flow, ai conversation
|
|
14
|
+
|
|
3
15
|
## 1.5.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LeadCard,
|
|
3
3
|
OpportunityCard
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-54MTIKNC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Spinner
|
|
7
7
|
} from "./chunk-JVMXMFBB.mjs";
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
DropdownMenuItem,
|
|
12
12
|
DropdownMenuSeparator,
|
|
13
13
|
DropdownMenuTrigger
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H5DTKPJ2.mjs";
|
|
15
15
|
import {
|
|
16
16
|
Badge
|
|
17
17
|
} from "./chunk-WL6WVV47.mjs";
|
|
18
18
|
import {
|
|
19
19
|
useThemeVars
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XYSRRDBH.mjs";
|
|
21
21
|
import {
|
|
22
22
|
formatCurrency
|
|
23
23
|
} from "./chunk-MN5NYQCL.mjs";
|
|
@@ -61,7 +61,6 @@ function KanbanColumn({
|
|
|
61
61
|
onCardClick,
|
|
62
62
|
onViewDetails,
|
|
63
63
|
onChangePriority,
|
|
64
|
-
onLaunchAssistant,
|
|
65
64
|
onPutOnHold,
|
|
66
65
|
onDeleteOpportunity,
|
|
67
66
|
onCardDrop,
|
|
@@ -199,7 +198,6 @@ function KanbanColumn({
|
|
|
199
198
|
onMoveToNextStage: onMoveToNextStage ? () => onMoveToNextStage(opp.id) : void 0,
|
|
200
199
|
onViewDetails: onViewDetails ? () => onViewDetails(opp.id) : void 0,
|
|
201
200
|
onChangePriority: onChangePriority ? () => onChangePriority(opp.id) : void 0,
|
|
202
|
-
onLaunchAssistant: onLaunchAssistant ? () => onLaunchAssistant(opp.id) : void 0,
|
|
203
201
|
onPutOnHold: onPutOnHold ? () => onPutOnHold(opp.id) : void 0,
|
|
204
202
|
onDelete: onDeleteOpportunity ? () => onDeleteOpportunity(opp.id) : void 0,
|
|
205
203
|
isSubmitting: submittingOpportunityId === opp.id
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RadioGroupItem
|
|
3
|
+
} from "./chunk-JTK6VJXY.mjs";
|
|
4
|
+
import {
|
|
5
|
+
cn
|
|
6
|
+
} from "./chunk-AFML43VJ.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/ui/selectable-card.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function SelectableCard({
|
|
11
|
+
value,
|
|
12
|
+
selected = false,
|
|
13
|
+
children,
|
|
14
|
+
className
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ jsxs(
|
|
17
|
+
"label",
|
|
18
|
+
{
|
|
19
|
+
className: cn(
|
|
20
|
+
"flex cursor-pointer flex-col items-center justify-center gap-3 border border-border p-6 text-center transition-colors hover:border-primary/50",
|
|
21
|
+
selected && "border-primary bg-primary/5",
|
|
22
|
+
className
|
|
23
|
+
),
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsx(RadioGroupItem, { value, className: "sr-only" }),
|
|
26
|
+
children
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
SelectableCard
|
|
34
|
+
};
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
DialogFooter,
|
|
16
16
|
DialogHeader,
|
|
17
17
|
DialogTitle
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LI2CTS5O.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Avatar,
|
|
21
21
|
AvatarFallback
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-WL6WVV47.mjs";
|
|
26
26
|
import {
|
|
27
27
|
Calendar
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FBNEIYSE.mjs";
|
|
29
29
|
import {
|
|
30
30
|
Label
|
|
31
31
|
} from "./chunk-P7CEBZM6.mjs";
|
|
@@ -10,13 +10,7 @@ import {
|
|
|
10
10
|
DropdownMenuItem,
|
|
11
11
|
DropdownMenuSeparator,
|
|
12
12
|
DropdownMenuTrigger
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
Tooltip,
|
|
16
|
-
TooltipContent,
|
|
17
|
-
TooltipProvider,
|
|
18
|
-
TooltipTrigger
|
|
19
|
-
} from "./chunk-6SR4K5T5.mjs";
|
|
13
|
+
} from "./chunk-H5DTKPJ2.mjs";
|
|
20
14
|
import {
|
|
21
15
|
Separator
|
|
22
16
|
} from "./chunk-2GIYVERS.mjs";
|
|
@@ -26,7 +20,7 @@ import {
|
|
|
26
20
|
import {
|
|
27
21
|
formatDateDayMonth,
|
|
28
22
|
formatDateShort
|
|
29
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LHWJQNLG.mjs";
|
|
30
24
|
import {
|
|
31
25
|
Accordion,
|
|
32
26
|
AccordionContent,
|
|
@@ -56,7 +50,6 @@ import {
|
|
|
56
50
|
MoreVertical,
|
|
57
51
|
Clock,
|
|
58
52
|
ArrowRight,
|
|
59
|
-
Bot,
|
|
60
53
|
ChevronDown,
|
|
61
54
|
ChevronRight
|
|
62
55
|
} from "lucide-react";
|
|
@@ -107,7 +100,6 @@ function TaskViewCard({
|
|
|
107
100
|
onDragStart,
|
|
108
101
|
className
|
|
109
102
|
}) {
|
|
110
|
-
var _a;
|
|
111
103
|
const resolvedPriority = resolvePriority(
|
|
112
104
|
daysSinceColumnChanged,
|
|
113
105
|
warningDays,
|
|
@@ -119,8 +111,6 @@ function TaskViewCard({
|
|
|
119
111
|
const totalCount = tasks.length;
|
|
120
112
|
const hasTasks = totalCount > 0;
|
|
121
113
|
const allDone = hasTasks && completedCount === totalCount;
|
|
122
|
-
const nextPendingTask = tasks.find((t) => !t.completed);
|
|
123
|
-
const agentName = (_a = nextPendingTask == null ? void 0 : nextPendingTask.aiAgentName) != null ? _a : null;
|
|
124
114
|
const [subtasksExpanded, setSubtasksExpanded] = useState(false);
|
|
125
115
|
const hasMenu = onViewDetails || onChangePriority || onPutOnHold || onDelete;
|
|
126
116
|
const stopProp = (e) => {
|
|
@@ -146,19 +136,7 @@ function TaskViewCard({
|
|
|
146
136
|
}
|
|
147
137
|
);
|
|
148
138
|
} else if (nextTask) {
|
|
149
|
-
taskHeader = /* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
151
|
-
agentName && /* @__PURE__ */ jsx(
|
|
152
|
-
Bot,
|
|
153
|
-
{
|
|
154
|
-
className: "size-3.5 shrink-0 text-primary",
|
|
155
|
-
"aria-hidden": "true"
|
|
156
|
-
}
|
|
157
|
-
),
|
|
158
|
-
/* @__PURE__ */ jsx("p", { className: "truncate text-sm font-semibold leading-snug", children: nextTask })
|
|
159
|
-
] }),
|
|
160
|
-
agentName && /* @__PURE__ */ jsx("p", { className: "mt-0.5 text-xs text-muted-foreground", children: agentName })
|
|
161
|
-
] });
|
|
139
|
+
taskHeader = /* @__PURE__ */ jsx("p", { className: "truncate text-sm font-semibold leading-snug", children: nextTask });
|
|
162
140
|
} else {
|
|
163
141
|
taskHeader = /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "No tasks defined for this stage" });
|
|
164
142
|
}
|
|
@@ -238,7 +216,6 @@ function TaskViewCard({
|
|
|
238
216
|
{
|
|
239
217
|
title: task.title,
|
|
240
218
|
completed: task.completed,
|
|
241
|
-
aiAgentName: task.aiAgentName,
|
|
242
219
|
onToggle: () => onTaskToggle == null ? void 0 : onTaskToggle(task.id),
|
|
243
220
|
size: "xs"
|
|
244
221
|
},
|
|
@@ -331,7 +308,6 @@ function OpportunityCard({
|
|
|
331
308
|
onTaskToggle,
|
|
332
309
|
onMarkAsDone,
|
|
333
310
|
onMoveToNextStage,
|
|
334
|
-
onLaunchAssistant,
|
|
335
311
|
onChangePriority,
|
|
336
312
|
onDelete,
|
|
337
313
|
onPutOnHold,
|
|
@@ -429,45 +405,28 @@ function OpportunityCard({
|
|
|
429
405
|
(loanPurposeLabel || loanType) && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "self-start", children: loanPurposeLabel != null ? loanPurposeLabel : formatLoanType(loanType) }),
|
|
430
406
|
/* @__PURE__ */ jsx("span", { className: "text-base font-bold tabular-nums text-foreground", children: formatCurrency(amount) })
|
|
431
407
|
] }),
|
|
432
|
-
/* @__PURE__ */
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
/* @__PURE__ */ jsx(
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
{
|
|
452
|
-
className: cn(
|
|
453
|
-
buttonVariants({ variant: "ghost", size: "icon" }),
|
|
454
|
-
"size-7 shrink-0"
|
|
455
|
-
),
|
|
456
|
-
"aria-label": "Opportunity actions",
|
|
457
|
-
children: /* @__PURE__ */ jsx(MoreVertical, { className: "size-4" })
|
|
458
|
-
}
|
|
459
|
-
),
|
|
460
|
-
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", children: [
|
|
461
|
-
onViewDetails && /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: onViewDetails, children: "View details" }),
|
|
462
|
-
onChangePriority && /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: onChangePriority, children: "Change priority" }),
|
|
463
|
-
onPutOnHold && /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: onPutOnHold, children: "Put on hold" }),
|
|
464
|
-
onDelete && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
465
|
-
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
466
|
-
/* @__PURE__ */ jsx(DropdownMenuItem, { onClick: onDelete, variant: "destructive", children: "Delete" })
|
|
467
|
-
] })
|
|
408
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1 -mr-1 -mt-1", onClick: stopProp, children: hasMenu && /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
409
|
+
/* @__PURE__ */ jsx(
|
|
410
|
+
DropdownMenuTrigger,
|
|
411
|
+
{
|
|
412
|
+
className: cn(
|
|
413
|
+
buttonVariants({ variant: "ghost", size: "icon" }),
|
|
414
|
+
"size-7 shrink-0"
|
|
415
|
+
),
|
|
416
|
+
"aria-label": "Opportunity actions",
|
|
417
|
+
children: /* @__PURE__ */ jsx(MoreVertical, { className: "size-4" })
|
|
418
|
+
}
|
|
419
|
+
),
|
|
420
|
+
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", children: [
|
|
421
|
+
onViewDetails && /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: onViewDetails, children: "View details" }),
|
|
422
|
+
onChangePriority && /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: onChangePriority, children: "Change priority" }),
|
|
423
|
+
onPutOnHold && /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: onPutOnHold, children: "Put on hold" }),
|
|
424
|
+
onDelete && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
425
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
426
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, { onClick: onDelete, variant: "destructive", children: "Delete" })
|
|
468
427
|
] })
|
|
469
428
|
] })
|
|
470
|
-
] })
|
|
429
|
+
] }) })
|
|
471
430
|
] }),
|
|
472
431
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
473
432
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
@@ -565,7 +524,6 @@ function OpportunityCard({
|
|
|
565
524
|
{
|
|
566
525
|
title: task.title,
|
|
567
526
|
completed: task.completed,
|
|
568
|
-
aiAgentName: task.aiAgentName,
|
|
569
527
|
onToggle: onTaskToggle ? () => onTaskToggle(task.id) : void 0,
|
|
570
528
|
disabled: isSubmitting
|
|
571
529
|
},
|
|
@@ -689,7 +647,10 @@ function LeadCard({
|
|
|
689
647
|
/* @__PURE__ */ jsx(
|
|
690
648
|
"a",
|
|
691
649
|
{
|
|
692
|
-
href: `https://${loanApplicationUrl.replace(
|
|
650
|
+
href: `https://${loanApplicationUrl.replace(
|
|
651
|
+
/^https?:\/\//,
|
|
652
|
+
""
|
|
653
|
+
)}`,
|
|
693
654
|
target: "_blank",
|
|
694
655
|
rel: "noreferrer",
|
|
695
656
|
className: "text-primary underline-offset-2 hover:underline",
|