@wealthx/shadcn 1.4.1 → 1.5.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 +360 -180
- package/CHANGELOG.md +6 -0
- package/dist/chunk-2A53WPEC.mjs +182 -0
- package/dist/{chunk-SIVYAI3M.mjs → chunk-2LLFNGJZ.mjs} +15 -15
- package/dist/chunk-2QNOPXMQ.mjs +360 -0
- package/dist/{chunk-K5QV4TT6.mjs → chunk-2WCIORP7.mjs} +29 -4
- package/dist/{chunk-5NF6T2RS.mjs → chunk-3AREQTZU.mjs} +8 -8
- package/dist/{chunk-2EM2FRU6.mjs → chunk-3WGFIFP6.mjs} +5 -5
- package/dist/{chunk-K4KOD3KR.mjs → chunk-42NEC57Y.mjs} +44 -25
- package/dist/{chunk-FL6DZFJK.mjs → chunk-46Q4335I.mjs} +121 -39
- package/dist/chunk-4DO3WM7V.mjs +48 -0
- package/dist/chunk-5FHBC6DY.mjs +68 -0
- package/dist/chunk-5SAYZ4CI.mjs +40 -0
- package/dist/chunk-5WMFKQZ6.mjs +180 -0
- package/dist/chunk-623YVI5O.mjs +43 -0
- package/dist/{chunk-SFH2NJEJ.mjs → chunk-6OSULDEO.mjs} +3 -3
- package/dist/{chunk-UALR6JGV.mjs → chunk-6SR4K5T5.mjs} +1 -1
- package/dist/{chunk-D2NSIIXG.mjs → chunk-7KT5HPYM.mjs} +11 -11
- package/dist/chunk-A6ER36CW.mjs +456 -0
- package/dist/{chunk-QX7IFQSF.mjs → chunk-AHKHVBWR.mjs} +4 -4
- package/dist/chunk-AHSCWXYJ.mjs +113 -0
- package/dist/{chunk-7GWRPXHD.mjs → chunk-AL6GOL2Y.mjs} +1 -1
- package/dist/{chunk-OIKBW2QD.mjs → chunk-AUEUTZIC.mjs} +13 -13
- package/dist/{chunk-FYPSTTEJ.mjs → chunk-B7DD3ODQ.mjs} +1 -1
- package/dist/{chunk-TLAWKTSA.mjs → chunk-BD3DWDT4.mjs} +3 -3
- package/dist/{chunk-S2FKV4M5.mjs → chunk-BDESHD25.mjs} +4 -4
- package/dist/{chunk-OKTJFDPN.mjs → chunk-BFB3UH7V.mjs} +2 -2
- package/dist/{chunk-DGNHGNYH.mjs → chunk-C6SWS7OW.mjs} +1 -1
- package/dist/chunk-CDVG7SFT.mjs +271 -0
- package/dist/chunk-CUSHAIUL.mjs +109 -0
- package/dist/{chunk-QXKGOMUX.mjs → chunk-CW32WTZU.mjs} +4 -4
- package/dist/{chunk-SET2ANTY.mjs → chunk-D447W45Z.mjs} +3 -3
- package/dist/{chunk-RCAOCHWA.mjs → chunk-DFL5CV75.mjs} +18 -18
- package/dist/chunk-DYSVJ473.mjs +162 -0
- package/dist/chunk-E3PQDBYI.mjs +288 -0
- package/dist/chunk-EMYBNPIA.mjs +83 -0
- package/dist/chunk-EUYPMDQG.mjs +348 -0
- package/dist/{chunk-XYPW2XA5.mjs → chunk-EW72FINW.mjs} +11 -11
- package/dist/chunk-F24U4QQQ.mjs +234 -0
- package/dist/{chunk-VB5M6OZQ.mjs → chunk-F4O2YPXJ.mjs} +1 -1
- package/dist/chunk-FFXTQTB4.mjs +84 -0
- package/dist/{chunk-ZOWL2L5J.mjs → chunk-FYUSF5KO.mjs} +5 -1
- package/dist/{chunk-FTPBQVQ6.mjs → chunk-GNER6MCO.mjs} +1 -1
- package/dist/{chunk-2D3HQPFN.mjs → chunk-HF4FUBCY.mjs} +5 -5
- package/dist/{chunk-RSUIPKGX.mjs → chunk-HNDTLT5X.mjs} +1 -1
- package/dist/{chunk-N6Q5IPKT.mjs → chunk-HO6S3ECM.mjs} +46 -18
- package/dist/{chunk-L4NSRQ3T.mjs → chunk-HROG643K.mjs} +1 -1
- package/dist/chunk-I2EKKSEF.mjs +148 -0
- package/dist/{chunk-QTRSCVQ3.mjs → chunk-I3UDLWQ7.mjs} +1 -1
- package/dist/{chunk-AE7MASLF.mjs → chunk-IQGKOT7A.mjs} +9 -6
- package/dist/chunk-IXR4BQSQ.mjs +290 -0
- package/dist/{chunk-4MM7LHM5.mjs → chunk-J5NW5NCT.mjs} +1 -1
- package/dist/{chunk-OLKMCXAR.mjs → chunk-JTG5R5YV.mjs} +24 -24
- package/dist/chunk-JUBUN65Q.mjs +106 -0
- package/dist/chunk-K7TWMLLW.mjs +520 -0
- package/dist/{chunk-BOW7U26Y.mjs → chunk-K7WSRWOU.mjs} +4 -4
- package/dist/{chunk-NTYQWVLI.mjs → chunk-KAD26MCC.mjs} +1 -1
- package/dist/{chunk-KCWNDYPZ.mjs → chunk-KB7MZMED.mjs} +4 -4
- package/dist/chunk-KCKYGQVQ.mjs +61 -0
- package/dist/{chunk-VY5NEUP7.mjs → chunk-KLJLDNCA.mjs} +1 -1
- package/dist/chunk-LLAGF6BA.mjs +49 -0
- package/dist/{chunk-G27TSQLQ.mjs → chunk-M4LTX3MH.mjs} +1 -1
- package/dist/{chunk-YIZHS72Z.mjs → chunk-MHHA7QGO.mjs} +94 -54
- package/dist/{chunk-P2N2PEFY.mjs → chunk-NCUH54IZ.mjs} +4 -4
- package/dist/{chunk-PNRUH7JY.mjs → chunk-OECGKCVF.mjs} +5 -5
- package/dist/{chunk-YE67AALL.mjs → chunk-OL65UQHQ.mjs} +10 -10
- package/dist/{chunk-LQULK2E3.mjs → chunk-OYBIUEGE.mjs} +1 -1
- package/dist/{chunk-LR6LHDP3.mjs → chunk-PGR53HMH.mjs} +7 -7
- package/dist/chunk-PUJ42INK.mjs +141 -0
- package/dist/{chunk-M4VYX2PV.mjs → chunk-PV3Y7QGK.mjs} +2 -2
- package/dist/{chunk-UJZ4UHWI.mjs → chunk-PV7PNA6K.mjs} +4 -4
- package/dist/{chunk-6HIOM2HL.mjs → chunk-Q35PNFJ7.mjs} +1 -1
- package/dist/{chunk-JZY6TNIS.mjs → chunk-Q5SGEIJV.mjs} +27 -27
- package/dist/{chunk-ZFCDYW6N.mjs → chunk-QAX6HCUH.mjs} +1 -1
- package/dist/chunk-QHJDGB54.mjs +135 -0
- package/dist/chunk-QQSOZQOC.mjs +27 -0
- package/dist/chunk-RUX3OLVZ.mjs +59 -0
- package/dist/{chunk-QOJ2DQD6.mjs → chunk-S4CTM3UE.mjs} +5 -0
- package/dist/{chunk-ZEDMKQK2.mjs → chunk-TAX3KL66.mjs} +1 -1
- package/dist/chunk-TC43SMIN.mjs +133 -0
- package/dist/chunk-TGVXRD53.mjs +174 -0
- package/dist/{chunk-K5VHK7CM.mjs → chunk-TLYSVRSK.mjs} +12 -12
- package/dist/{chunk-YCWLFG27.mjs → chunk-TOIVHWNC.mjs} +1 -1
- package/dist/chunk-TXUBGKB7.mjs +160 -0
- package/dist/chunk-UEREFDAE.mjs +75 -0
- package/dist/chunk-UTCQN6XU.mjs +123 -0
- package/dist/{chunk-37AE3OM5.mjs → chunk-V4CUTCHS.mjs} +4 -4
- package/dist/{chunk-THVO2N47.mjs → chunk-VFH632TB.mjs} +9 -9
- package/dist/{chunk-3ERBUVHC.mjs → chunk-VJ3GC7W3.mjs} +95 -49
- package/dist/{chunk-V6XGXYCJ.mjs → chunk-VLELWBEW.mjs} +4 -4
- package/dist/{chunk-FEZKMUCF.mjs → chunk-WDTXHLYM.mjs} +1 -1
- package/dist/chunk-WUA546RX.mjs +129 -0
- package/dist/chunk-XHGISOX5.mjs +257 -0
- package/dist/chunk-XIY5DJXI.mjs +168 -0
- package/dist/{chunk-TOWTPLRC.mjs → chunk-XN37434W.mjs} +8 -8
- package/dist/{chunk-KLTACJ2G.mjs → chunk-XTWAJWCQ.mjs} +1 -1
- package/dist/chunk-Y24TXIFJ.mjs +518 -0
- package/dist/{chunk-DMXYRCHM.mjs → chunk-Y6UM3VTN.mjs} +4 -4
- package/dist/components/ui/about-you-form.js +1120 -0
- package/dist/components/ui/about-you-form.mjs +323 -0
- package/dist/components/ui/account-list-carousel.js +304 -0
- package/dist/components/ui/account-list-carousel.mjs +11 -0
- package/dist/components/ui/add-column-modal.js +1 -1
- package/dist/components/ui/add-column-modal.mjs +6 -6
- package/dist/components/ui/add-lead-modal.js +2 -2
- package/dist/components/ui/add-lead-modal.mjs +6 -6
- package/dist/components/ui/advisor-card.mjs +2 -2
- package/dist/components/ui/agent-evaluation-toast.js +299 -0
- package/dist/components/ui/agent-evaluation-toast.mjs +12 -0
- package/dist/components/ui/ai-assistant-drawer.mjs +5 -5
- package/dist/components/ui/ai-builder.js +3 -3
- package/dist/components/ui/ai-builder.mjs +5 -5
- package/dist/components/ui/ai-conversations.js +2 -2
- package/dist/components/ui/ai-conversations.mjs +11 -11
- package/dist/components/ui/alert-dialog.mjs +3 -3
- package/dist/components/ui/applicant-document-checklist.js +346 -0
- package/dist/components/ui/applicant-document-checklist.mjs +10 -0
- package/dist/components/ui/applicant-expenses-section.js +455 -0
- package/dist/components/ui/applicant-expenses-section.mjs +220 -0
- package/dist/components/ui/applicant-navigation-bar.js +309 -0
- package/dist/components/ui/applicant-navigation-bar.mjs +87 -0
- package/dist/components/ui/applicant-switcher.js +268 -0
- package/dist/components/ui/applicant-switcher.mjs +46 -0
- package/dist/components/ui/application-mobile-layout.js +88 -0
- package/dist/components/ui/application-mobile-layout.mjs +8 -0
- package/dist/components/ui/appointment-action-dialogs.js +1 -1
- package/dist/components/ui/appointment-action-dialogs.mjs +10 -10
- package/dist/components/ui/appointment-availability-settings.js +78 -31
- package/dist/components/ui/appointment-availability-settings.mjs +12 -10
- package/dist/components/ui/appointment-book-dialog.js +137 -58
- package/dist/components/ui/appointment-book-dialog.mjs +14 -14
- package/dist/components/ui/appointment-calendar-view.js +1 -1
- package/dist/components/ui/appointment-calendar-view.mjs +4 -4
- package/dist/components/ui/appointment-detail-sheet.js +38 -11
- package/dist/components/ui/appointment-detail-sheet.mjs +13 -13
- package/dist/components/ui/appointment-gmail-connect.mjs +2 -2
- package/dist/components/ui/appointment-time-slot-picker.mjs +2 -2
- package/dist/components/ui/appointment-upcoming-card.js +1 -1
- package/dist/components/ui/appointment-upcoming-card.mjs +10 -10
- package/dist/components/ui/asset-accordion.js +506 -0
- package/dist/components/ui/asset-accordion.mjs +202 -0
- package/dist/components/ui/assets-liabilities-side-card.js +328 -0
- package/dist/components/ui/assets-liabilities-side-card.mjs +127 -0
- package/dist/components/ui/auth-page-layout.js +3 -3
- package/dist/components/ui/auth-page-layout.mjs +1 -1
- package/dist/components/ui/backoffice-alert-history-chart.mjs +4 -4
- package/dist/components/ui/backoffice-alert-matching-chart.js +786 -0
- package/dist/components/ui/backoffice-alert-matching-chart.mjs +19 -0
- package/dist/components/ui/backoffice-alerts-chart.mjs +4 -4
- package/dist/components/ui/backoffice-connections-chart.mjs +4 -4
- package/dist/components/ui/backoffice-contact-history-chart.mjs +4 -4
- package/dist/components/ui/backoffice-contact-matching-chart.js +803 -0
- package/dist/components/ui/backoffice-contact-matching-chart.mjs +19 -0
- package/dist/components/ui/backoffice-signup-steps.js +1673 -0
- package/dist/components/ui/backoffice-signup-steps.mjs +36 -0
- package/dist/components/ui/bank-statement-document-table.js +467 -0
- package/dist/components/ui/bank-statement-document-table.mjs +12 -0
- package/dist/components/ui/bank-statement-generate-dialog.js +1517 -0
- package/dist/components/ui/bank-statement-generate-dialog.mjs +27 -0
- package/dist/components/ui/bank-statement-pdf-viewer.js +525 -0
- package/dist/components/ui/bank-statement-pdf-viewer.mjs +14 -0
- package/dist/components/ui/banking-accounts-connect.js +336 -0
- package/dist/components/ui/banking-accounts-connect.mjs +114 -0
- package/dist/components/ui/borrowing-capacity-atoms.js +382 -0
- package/dist/components/ui/borrowing-capacity-atoms.mjs +17 -0
- package/dist/components/ui/borrowing-capacity-card.js +835 -0
- package/dist/components/ui/borrowing-capacity-card.mjs +89 -0
- package/dist/components/ui/borrowing-capacity-line-chart.mjs +4 -4
- package/dist/components/ui/broker-info-panel.js +281 -0
- package/dist/components/ui/broker-info-panel.mjs +59 -0
- package/dist/components/ui/calculator-input-item.js +101 -0
- package/dist/components/ui/calculator-input-item.mjs +8 -0
- package/dist/components/ui/calculator-section.js +743 -0
- package/dist/components/ui/calculator-section.mjs +220 -0
- package/dist/components/ui/calendar.mjs +2 -2
- package/dist/components/ui/cash-balance-line-chart.mjs +5 -5
- package/dist/components/ui/cashflow-bar-chart.mjs +4 -4
- package/dist/components/ui/category-edit-dialog.js +737 -0
- package/dist/components/ui/category-edit-dialog.mjs +16 -0
- package/dist/components/ui/chat-widget.mjs +3 -3
- package/dist/components/ui/color-picker.mjs +4 -4
- package/dist/components/ui/connect-bank-step.js +511 -0
- package/dist/components/ui/connect-bank-step.mjs +287 -0
- package/dist/components/ui/contact-alert-dialog.js +1405 -0
- package/dist/components/ui/contact-alert-dialog.mjs +27 -0
- package/dist/components/ui/create-contact-modal.js +1028 -0
- package/dist/components/ui/create-contact-modal.mjs +21 -0
- package/dist/components/ui/csv-import-modal.js +583 -0
- package/dist/components/ui/csv-import-modal.mjs +14 -0
- package/dist/components/ui/currency-input.js +439 -0
- package/dist/components/ui/currency-input.mjs +13 -0
- package/dist/components/ui/dashboard-expense-categories.js +355 -0
- package/dist/components/ui/dashboard-expense-categories.mjs +186 -0
- package/dist/components/ui/dashboard-transactions-table.js +1083 -0
- package/dist/components/ui/dashboard-transactions-table.mjs +177 -0
- package/dist/components/ui/data-table.mjs +6 -6
- package/dist/components/ui/date-picker.mjs +6 -6
- package/dist/components/ui/debt-accordion.js +523 -0
- package/dist/components/ui/debt-accordion.mjs +219 -0
- package/dist/components/ui/delete-contact-component.js +479 -0
- package/dist/components/ui/delete-contact-component.mjs +14 -0
- package/dist/components/ui/dialog.js +1 -1
- 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.js +274 -0
- package/dist/components/ui/dynamic-tabs.mjs +116 -0
- package/dist/components/ui/editable-money-item.js +306 -0
- package/dist/components/ui/editable-money-item.mjs +12 -0
- package/dist/components/ui/expense-bar-chart.mjs +4 -4
- package/dist/components/ui/expense-detail-item.js +506 -0
- package/dist/components/ui/expense-detail-item.mjs +15 -0
- package/dist/components/ui/expense-work-details.js +1259 -0
- package/dist/components/ui/expense-work-details.mjs +175 -0
- package/dist/components/ui/field.mjs +2 -2
- package/dist/components/ui/file-preview-dialog.js +704 -0
- package/dist/components/ui/file-preview-dialog.mjs +17 -0
- package/dist/components/ui/financial-cards.mjs +2 -2
- package/dist/components/ui/financial-drawers.js +1 -1
- package/dist/components/ui/financial-drawers.mjs +5 -5
- package/dist/components/ui/financial-sections.mjs +4 -4
- package/dist/components/ui/form-primitives.mjs +2 -2
- package/dist/components/ui/frontend-signup-steps.js +1239 -0
- package/dist/components/ui/frontend-signup-steps.mjs +38 -0
- package/dist/components/ui/income-bar-chart.mjs +4 -4
- package/dist/components/ui/income-sources-card.js +269 -0
- package/dist/components/ui/income-sources-card.mjs +100 -0
- package/dist/components/ui/income-summary-component.js +361 -0
- package/dist/components/ui/income-summary-component.mjs +84 -0
- package/dist/components/ui/income-work-details.js +1663 -0
- package/dist/components/ui/income-work-details.mjs +28 -0
- package/dist/components/ui/incoming-outgoings-card.js +218 -0
- package/dist/components/ui/incoming-outgoings-card.mjs +82 -0
- package/dist/components/ui/interest-rate-input.js +442 -0
- package/dist/components/ui/interest-rate-input.mjs +90 -0
- package/dist/components/ui/interest-rate-section.js +337 -0
- package/dist/components/ui/interest-rate-section.mjs +84 -0
- package/dist/components/ui/interest-rate-used.js +202 -0
- package/dist/components/ui/interest-rate-used.mjs +62 -0
- package/dist/components/ui/kanban-column.js +338 -160
- package/dist/components/ui/kanban-column.mjs +13 -11
- package/dist/components/ui/loan-applicant-information.js +336 -0
- package/dist/components/ui/loan-applicant-information.mjs +59 -0
- package/dist/components/ui/loan-applicant-invite.js +319 -0
- package/dist/components/ui/loan-applicant-invite.mjs +68 -0
- package/dist/components/ui/loan-application-badge.js +236 -0
- package/dist/components/ui/loan-application-badge.mjs +10 -0
- package/dist/components/ui/loan-application-cards.js +356 -0
- package/dist/components/ui/loan-application-cards.mjs +110 -0
- package/dist/components/ui/loan-entry-shell.js +104 -0
- package/dist/components/ui/loan-entry-shell.mjs +8 -0
- package/dist/components/ui/loan-financials.js +410 -0
- package/dist/components/ui/loan-financials.mjs +76 -0
- package/dist/components/ui/loan-option-card.js +102 -0
- package/dist/components/ui/loan-option-card.mjs +41 -0
- package/dist/components/ui/loan-option-group.js +288 -0
- package/dist/components/ui/loan-option-group.mjs +10 -0
- package/dist/components/ui/loan-steps.js +1121 -0
- package/dist/components/ui/loan-steps.mjs +509 -0
- package/dist/components/ui/loan-wizard-shell.js +452 -0
- package/dist/components/ui/loan-wizard-shell.mjs +11 -0
- package/dist/components/ui/money-input-with-slider.js +210 -0
- package/dist/components/ui/money-input-with-slider.mjs +10 -0
- package/dist/components/ui/money-item-with-color-indicator.js +314 -0
- package/dist/components/ui/money-item-with-color-indicator.mjs +20 -0
- package/dist/components/ui/opportunity-card.js +235 -97
- package/dist/components/ui/opportunity-card.mjs +11 -9
- package/dist/components/ui/opportunity-edit-modals.js +1 -1
- package/dist/components/ui/opportunity-edit-modals.mjs +15 -15
- package/dist/components/ui/opportunity-summary-tab.js +1 -1
- package/dist/components/ui/opportunity-summary-tab.mjs +19 -19
- 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 +358 -176
- package/dist/components/ui/pipeline-board.mjs +16 -14
- package/dist/components/ui/pipeline-chart.mjs +3 -3
- package/dist/components/ui/pipeline-dialogs.js +1 -1
- package/dist/components/ui/pipeline-dialogs.mjs +9 -9
- package/dist/components/ui/pipeline-primitives.js +75 -8
- package/dist/components/ui/pipeline-primitives.mjs +3 -2
- package/dist/components/ui/popover.mjs +3 -3
- package/dist/components/ui/property-asset-card.js +428 -0
- package/dist/components/ui/property-asset-card.mjs +156 -0
- package/dist/components/ui/property-cashflow-doughnut-chart.mjs +4 -4
- package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +4 -4
- package/dist/components/ui/property-list-carousel.js +295 -0
- package/dist/components/ui/property-list-carousel.mjs +11 -0
- package/dist/components/ui/property-mobile-estimate-line-chart.mjs +4 -4
- package/dist/components/ui/property-report-dialog.js +1148 -0
- package/dist/components/ui/property-report-dialog.mjs +25 -0
- package/dist/components/ui/resource-center.js +748 -0
- package/dist/components/ui/resource-center.mjs +24 -0
- package/dist/components/ui/review-alerts-dialog.js +569 -0
- package/dist/components/ui/review-alerts-dialog.mjs +15 -0
- package/dist/components/ui/savings-goal-modal.js +1148 -0
- package/dist/components/ui/savings-goal-modal.mjs +160 -0
- package/dist/components/ui/scenario-drawer.js +791 -0
- package/dist/components/ui/scenario-drawer.mjs +294 -0
- package/dist/components/ui/scenario-item.js +256 -0
- package/dist/components/ui/scenario-item.mjs +11 -0
- package/dist/components/ui/scenario-list.js +507 -0
- package/dist/components/ui/scenario-list.mjs +100 -0
- package/dist/components/ui/select.mjs +3 -3
- package/dist/components/ui/share-details-dialog.js +636 -0
- package/dist/components/ui/share-details-dialog.mjs +19 -0
- package/dist/components/ui/sheet.mjs +3 -3
- package/dist/components/ui/sidebar-nav.mjs +5 -5
- package/dist/components/ui/signup-form-primitives.js +770 -0
- package/dist/components/ui/signup-form-primitives.mjs +25 -0
- package/dist/components/ui/signup-shell.js +338 -0
- package/dist/components/ui/signup-shell.mjs +13 -0
- package/dist/components/ui/stage-timeline.js +103 -33
- package/dist/components/ui/stage-timeline.mjs +5 -4
- package/dist/components/ui/submission-confirmation-card.js +284 -0
- package/dist/components/ui/submission-confirmation-card.mjs +62 -0
- package/dist/components/ui/tooltip.mjs +3 -3
- package/dist/components/ui/top-three-product.js +374 -0
- package/dist/components/ui/top-three-product.mjs +129 -0
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +4 -4
- package/dist/components/ui/transactions-income-expense-bar-chart.mjs +5 -5
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +4 -4
- package/dist/components/ui/transactions-summary-block.js +95 -0
- package/dist/components/ui/transactions-summary-block.mjs +34 -0
- package/dist/components/ui/two-fa-setup-form.mjs +3 -3
- package/dist/index.js +9430 -4573
- package/dist/index.mjs +404 -251
- package/dist/lib/colors.js +6 -0
- package/dist/lib/colors.mjs +3 -1
- package/dist/lib/theme-provider.mjs +2 -2
- package/dist/styles.css +1 -1
- package/package.json +366 -2
- package/src/components/index.tsx +223 -0
- package/src/components/ui/about-you-form.tsx +397 -0
- package/src/components/ui/account-list-carousel.tsx +87 -0
- package/src/components/ui/add-lead-modal.tsx +1 -1
- package/src/components/ui/agent-evaluation-toast.tsx +191 -0
- package/src/components/ui/ai-builder.tsx +3 -5
- package/src/components/ui/ai-conversations.tsx +1 -1
- package/src/components/ui/applicant-document-checklist.tsx +175 -0
- package/src/components/ui/applicant-expenses-section.tsx +260 -0
- package/src/components/ui/applicant-navigation-bar.tsx +104 -0
- package/src/components/ui/applicant-switcher.tsx +54 -0
- package/src/components/ui/application-mobile-layout.tsx +34 -0
- package/src/components/ui/appointment-availability-settings.tsx +115 -23
- package/src/components/ui/appointment-book-dialog.tsx +406 -259
- package/src/components/ui/appointment-calendar-view.tsx +4 -1
- package/src/components/ui/appointment-detail-sheet.tsx +59 -24
- package/src/components/ui/appointment-time-slot-picker.tsx +5 -1
- package/src/components/ui/asset-accordion.tsx +241 -0
- package/src/components/ui/assets-liabilities-side-card.tsx +157 -0
- package/src/components/ui/auth-page-layout.tsx +3 -3
- package/src/components/ui/backoffice-alert-matching-chart.tsx +320 -0
- package/src/components/ui/backoffice-contact-matching-chart.tsx +341 -0
- package/src/components/ui/backoffice-signup-steps.tsx +615 -0
- package/src/components/ui/bank-statement-document-table.tsx +222 -0
- package/src/components/ui/bank-statement-generate-dialog.tsx +435 -0
- package/src/components/ui/bank-statement-pdf-viewer.tsx +241 -0
- package/src/components/ui/banking-accounts-connect.tsx +187 -0
- package/src/components/ui/borrowing-capacity-atoms.tsx +228 -0
- package/src/components/ui/borrowing-capacity-card.tsx +155 -0
- package/src/components/ui/broker-info-panel.tsx +94 -0
- package/src/components/ui/calculator-input-item.tsx +49 -0
- package/src/components/ui/calculator-section.tsx +275 -0
- package/src/components/ui/category-edit-dialog.tsx +300 -0
- package/src/components/ui/connect-bank-step.tsx +379 -0
- package/src/components/ui/contact-alert-dialog.tsx +710 -0
- package/src/components/ui/create-contact-modal.tsx +237 -0
- package/src/components/ui/csv-import-modal.tsx +153 -0
- package/src/components/ui/currency-input.tsx +104 -0
- package/src/components/ui/dashboard-expense-categories.tsx +262 -0
- package/src/components/ui/dashboard-transactions-table.tsx +241 -0
- package/src/components/ui/debt-accordion.tsx +254 -0
- package/src/components/ui/delete-contact-component.tsx +87 -0
- package/src/components/ui/dialog.tsx +2 -2
- package/src/components/ui/dynamic-tabs.tsx +149 -0
- package/src/components/ui/editable-money-item.tsx +176 -0
- package/src/components/ui/expense-detail-item.tsx +216 -0
- package/src/components/ui/expense-work-details.tsx +229 -0
- package/src/components/ui/file-preview-dialog.tsx +292 -0
- package/src/components/ui/financial-drawers.tsx +1 -1
- package/src/components/ui/frontend-signup-steps.tsx +548 -0
- package/src/components/ui/income-sources-card.tsx +143 -0
- package/src/components/ui/income-summary-component.tsx +120 -0
- package/src/components/ui/income-work-details.tsx +429 -0
- package/src/components/ui/incoming-outgoings-card.tsx +111 -0
- package/src/components/ui/interest-rate-input.tsx +111 -0
- package/src/components/ui/interest-rate-section.tsx +158 -0
- package/src/components/ui/interest-rate-used.tsx +82 -0
- package/src/components/ui/kanban-column.tsx +53 -2
- package/src/components/ui/loan-applicant-information.tsx +64 -0
- package/src/components/ui/loan-applicant-invite.tsx +67 -0
- package/src/components/ui/loan-application-badge.tsx +70 -0
- package/src/components/ui/loan-application-cards.tsx +152 -0
- package/src/components/ui/loan-entry-shell.tsx +86 -0
- package/src/components/ui/loan-financials.tsx +77 -0
- package/src/components/ui/loan-option-card.tsx +62 -0
- package/src/components/ui/loan-option-group.tsx +106 -0
- package/src/components/ui/loan-steps.tsx +630 -0
- package/src/components/ui/loan-wizard-shell.tsx +235 -0
- package/src/components/ui/money-input-with-slider.tsx +77 -0
- package/src/components/ui/money-item-with-color-indicator.tsx +30 -0
- package/src/components/ui/opportunity-card.tsx +46 -18
- package/src/components/ui/pipeline-board.tsx +13 -0
- package/src/components/ui/pipeline-primitives.tsx +28 -0
- package/src/components/ui/property-asset-card.tsx +221 -0
- package/src/components/ui/property-list-carousel.tsx +73 -0
- package/src/components/ui/property-report-dialog.tsx +355 -0
- package/src/components/ui/resource-center.tsx +539 -0
- package/src/components/ui/review-alerts-dialog.tsx +163 -0
- package/src/components/ui/savings-goal-modal.tsx +169 -0
- package/src/components/ui/scenario-drawer.tsx +358 -0
- package/src/components/ui/scenario-item.tsx +141 -0
- package/src/components/ui/scenario-list.tsx +150 -0
- package/src/components/ui/share-details-dialog.tsx +238 -0
- package/src/components/ui/signup-form-primitives.tsx +212 -0
- package/src/components/ui/signup-shell.tsx +180 -0
- package/src/components/ui/stage-timeline.tsx +11 -0
- package/src/components/ui/submission-confirmation-card.tsx +68 -0
- package/src/components/ui/top-three-product.tsx +207 -0
- package/src/components/ui/transactions-summary-block.tsx +59 -0
- package/src/lib/colors.ts +12 -0
- package/src/lib/format-date.ts +2 -2
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +77 -1
- package/dist/{chunk-5VOTTIXF.mjs → chunk-FRT3S72S.mjs} +3 -3
- package/dist/{chunk-7BTFGCFC.mjs → chunk-MUV4EGDW.mjs} +3 -3
- package/dist/{chunk-57ZXILTS.mjs → chunk-MXP2RX2V.mjs} +3 -3
- package/dist/{chunk-ZKWXDQDG.mjs → chunk-VCDGLN25.mjs} +3 -3
- package/dist/{chunk-FLL633WS.mjs → chunk-ZXEUBBHJ.mjs} +3 -3
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Field,
|
|
3
|
+
FieldLabel
|
|
4
|
+
} from "./chunk-MUV4EGDW.mjs";
|
|
5
|
+
import {
|
|
6
|
+
Table,
|
|
7
|
+
TableBody,
|
|
8
|
+
TableCell,
|
|
9
|
+
TableHead,
|
|
10
|
+
TableHeader,
|
|
11
|
+
TableRow
|
|
12
|
+
} from "./chunk-GT3RU6GA.mjs";
|
|
13
|
+
import {
|
|
14
|
+
Checkbox
|
|
15
|
+
} from "./chunk-IKXYTCSB.mjs";
|
|
16
|
+
import {
|
|
17
|
+
Select,
|
|
18
|
+
SelectContent,
|
|
19
|
+
SelectItem,
|
|
20
|
+
SelectTrigger,
|
|
21
|
+
SelectValue
|
|
22
|
+
} from "./chunk-TAX3KL66.mjs";
|
|
23
|
+
import {
|
|
24
|
+
Spinner
|
|
25
|
+
} from "./chunk-JVMXMFBB.mjs";
|
|
26
|
+
import {
|
|
27
|
+
Dialog,
|
|
28
|
+
DialogContent,
|
|
29
|
+
DialogFooter,
|
|
30
|
+
DialogHeader,
|
|
31
|
+
DialogTitle
|
|
32
|
+
} from "./chunk-NCUH54IZ.mjs";
|
|
33
|
+
import {
|
|
34
|
+
DatePicker
|
|
35
|
+
} from "./chunk-BFB3UH7V.mjs";
|
|
36
|
+
import {
|
|
37
|
+
ToggleGroup,
|
|
38
|
+
ToggleGroupItem
|
|
39
|
+
} from "./chunk-OWFQSXVD.mjs";
|
|
40
|
+
import {
|
|
41
|
+
Input
|
|
42
|
+
} from "./chunk-LBTHZSBT.mjs";
|
|
43
|
+
import {
|
|
44
|
+
Button
|
|
45
|
+
} from "./chunk-NOOEKOWY.mjs";
|
|
46
|
+
import {
|
|
47
|
+
cn
|
|
48
|
+
} from "./chunk-AFML43VJ.mjs";
|
|
49
|
+
|
|
50
|
+
// src/components/ui/bank-statement-generate-dialog.tsx
|
|
51
|
+
import { useEffect, useMemo, useState } from "react";
|
|
52
|
+
import { format, parseISO, subDays } from "date-fns";
|
|
53
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
54
|
+
function toIsoDate(date) {
|
|
55
|
+
return date.toISOString().slice(0, 10);
|
|
56
|
+
}
|
|
57
|
+
function presetToDateRange(preset) {
|
|
58
|
+
const today = /* @__PURE__ */ new Date();
|
|
59
|
+
return {
|
|
60
|
+
from: toIsoDate(subDays(today, preset - 1)),
|
|
61
|
+
to: toIsoDate(today)
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function BankStatementGenerateDialog({
|
|
65
|
+
open,
|
|
66
|
+
onClose,
|
|
67
|
+
onSubmit,
|
|
68
|
+
onApplicantTypeChange,
|
|
69
|
+
bankAccounts,
|
|
70
|
+
hasCoApplicant = false,
|
|
71
|
+
isLoadingAccounts = false,
|
|
72
|
+
isLoading = false,
|
|
73
|
+
className
|
|
74
|
+
}) {
|
|
75
|
+
const [statementName, setStatementName] = useState("Bank Statement 1");
|
|
76
|
+
const [rangePreset, setRangePreset] = useState(90);
|
|
77
|
+
const [fromDate, setFromDate] = useState("");
|
|
78
|
+
const [toDate, setToDate] = useState("");
|
|
79
|
+
const [applicantType, setApplicantType] = useState("");
|
|
80
|
+
const [selectedAccountIds, setSelectedAccountIds] = useState([]);
|
|
81
|
+
useEffect(() => {
|
|
82
|
+
if (!open) return;
|
|
83
|
+
const timer = setTimeout(() => {
|
|
84
|
+
setStatementName("Bank Statement 1");
|
|
85
|
+
setApplicantType("");
|
|
86
|
+
setSelectedAccountIds([]);
|
|
87
|
+
const { from, to } = presetToDateRange(90);
|
|
88
|
+
setRangePreset(90);
|
|
89
|
+
setFromDate(from);
|
|
90
|
+
setToDate(to);
|
|
91
|
+
}, 0);
|
|
92
|
+
return () => clearTimeout(timer);
|
|
93
|
+
}, [open]);
|
|
94
|
+
const handleApplicantTypeChange = (type) => {
|
|
95
|
+
setApplicantType(type);
|
|
96
|
+
setSelectedAccountIds([]);
|
|
97
|
+
onApplicantTypeChange == null ? void 0 : onApplicantTypeChange(type);
|
|
98
|
+
};
|
|
99
|
+
const applyPreset = (preset) => {
|
|
100
|
+
setRangePreset(preset);
|
|
101
|
+
if (preset !== "custom") {
|
|
102
|
+
const { from, to } = presetToDateRange(preset);
|
|
103
|
+
setFromDate(from);
|
|
104
|
+
setToDate(to);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const areAllSelected = bankAccounts.length > 0 && selectedAccountIds.length === bankAccounts.length;
|
|
108
|
+
const isSomeSelected = selectedAccountIds.length > 0 && !areAllSelected;
|
|
109
|
+
const handleToggleAccount = (id) => {
|
|
110
|
+
setSelectedAccountIds(
|
|
111
|
+
(prev) => prev.includes(id) ? prev.filter((x) => x !== id) : [...prev, id]
|
|
112
|
+
);
|
|
113
|
+
};
|
|
114
|
+
const handleToggleAll = () => {
|
|
115
|
+
if (areAllSelected) {
|
|
116
|
+
setSelectedAccountIds([]);
|
|
117
|
+
} else {
|
|
118
|
+
setSelectedAccountIds(bankAccounts.map((a) => a.id));
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
const periodLabel = useMemo(() => {
|
|
122
|
+
if (fromDate && toDate) {
|
|
123
|
+
return `${format(parseISO(fromDate), "dd MMM yyyy")} \u2013 ${format(parseISO(toDate), "dd MMM yyyy")}`;
|
|
124
|
+
}
|
|
125
|
+
return "\u2014";
|
|
126
|
+
}, [fromDate, toDate]);
|
|
127
|
+
const isSubmitDisabled = !statementName.trim() || !applicantType || rangePreset === "custom" && (!fromDate || !toDate) || selectedAccountIds.length === 0;
|
|
128
|
+
const handleSubmit = () => {
|
|
129
|
+
if (isSubmitDisabled || !applicantType) return;
|
|
130
|
+
onSubmit({
|
|
131
|
+
statementName,
|
|
132
|
+
rangePreset,
|
|
133
|
+
fromDate,
|
|
134
|
+
toDate,
|
|
135
|
+
applicantType,
|
|
136
|
+
selectedAccountIds
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: (o) => !o && onClose(), children: /* @__PURE__ */ jsxs(
|
|
140
|
+
DialogContent,
|
|
141
|
+
{
|
|
142
|
+
className: cn("max-w-[700px]", className),
|
|
143
|
+
"data-slot": "bank-statement-generate-dialog",
|
|
144
|
+
children: [
|
|
145
|
+
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "Generate Bank Statement" }) }),
|
|
146
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
147
|
+
/* @__PURE__ */ jsxs(Field, { children: [
|
|
148
|
+
/* @__PURE__ */ jsx(FieldLabel, { children: "Name" }),
|
|
149
|
+
/* @__PURE__ */ jsx(
|
|
150
|
+
Input,
|
|
151
|
+
{
|
|
152
|
+
value: statementName,
|
|
153
|
+
onChange: (e) => setStatementName(e.target.value),
|
|
154
|
+
placeholder: "Bank Statement 1"
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
] }),
|
|
158
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
159
|
+
/* @__PURE__ */ jsx("span", { className: "text-body-small text-muted-foreground", children: "Statement period" }),
|
|
160
|
+
/* @__PURE__ */ jsxs(
|
|
161
|
+
ToggleGroup,
|
|
162
|
+
{
|
|
163
|
+
type: "single",
|
|
164
|
+
variant: "outline",
|
|
165
|
+
value: [String(rangePreset)],
|
|
166
|
+
onValueChange: (val) => {
|
|
167
|
+
if (val.length === 0) return;
|
|
168
|
+
const raw = val[0];
|
|
169
|
+
if (raw === "custom") {
|
|
170
|
+
applyPreset("custom");
|
|
171
|
+
} else {
|
|
172
|
+
applyPreset(Number(raw));
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
className: "w-full",
|
|
176
|
+
children: [
|
|
177
|
+
/* @__PURE__ */ jsx(ToggleGroupItem, { value: "90", className: "flex-1", children: "3 Months" }),
|
|
178
|
+
/* @__PURE__ */ jsx(ToggleGroupItem, { value: "180", className: "flex-1", children: "6 Months" }),
|
|
179
|
+
/* @__PURE__ */ jsx(ToggleGroupItem, { value: "365", className: "flex-1", children: "12 Months" }),
|
|
180
|
+
/* @__PURE__ */ jsx(ToggleGroupItem, { value: "custom", className: "flex-1", children: "Custom" })
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
] }),
|
|
185
|
+
rangePreset === "custom" && /* @__PURE__ */ jsxs("div", { className: "flex gap-3", children: [
|
|
186
|
+
/* @__PURE__ */ jsx(
|
|
187
|
+
DatePicker,
|
|
188
|
+
{
|
|
189
|
+
value: fromDate ? parseISO(fromDate) : void 0,
|
|
190
|
+
onChange: (date) => setFromDate(date ? toIsoDate(date) : ""),
|
|
191
|
+
placeholder: "From Date",
|
|
192
|
+
className: "flex-1"
|
|
193
|
+
}
|
|
194
|
+
),
|
|
195
|
+
/* @__PURE__ */ jsx(
|
|
196
|
+
DatePicker,
|
|
197
|
+
{
|
|
198
|
+
value: toDate ? parseISO(toDate) : void 0,
|
|
199
|
+
onChange: (date) => setToDate(date ? toIsoDate(date) : ""),
|
|
200
|
+
placeholder: "To Date",
|
|
201
|
+
className: "flex-1"
|
|
202
|
+
}
|
|
203
|
+
)
|
|
204
|
+
] }),
|
|
205
|
+
/* @__PURE__ */ jsxs(
|
|
206
|
+
Select,
|
|
207
|
+
{
|
|
208
|
+
value: applicantType,
|
|
209
|
+
onValueChange: (v) => handleApplicantTypeChange(v),
|
|
210
|
+
children: [
|
|
211
|
+
/* @__PURE__ */ jsx(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Applicant Type" }) }),
|
|
212
|
+
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
213
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "primary", children: "Main applicant" }),
|
|
214
|
+
hasCoApplicant && /* @__PURE__ */ jsx(SelectItem, { value: "secondary", children: "Co-applicant" })
|
|
215
|
+
] })
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
),
|
|
219
|
+
applicantType && /* @__PURE__ */ jsxs("div", { className: "mt-1", children: [
|
|
220
|
+
isLoadingAccounts && /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ jsx(Spinner, { size: "lg" }) }),
|
|
221
|
+
!isLoadingAccounts && bankAccounts.length === 0 && /* @__PURE__ */ jsx("p", { className: "py-4 text-center text-body-medium text-muted-foreground", children: "No bank accounts found for the selected applicant" }),
|
|
222
|
+
!isLoadingAccounts && bankAccounts.length > 0 && /* @__PURE__ */ jsxs(Table, { children: [
|
|
223
|
+
/* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
224
|
+
/* @__PURE__ */ jsx(TableHead, { className: "w-10", children: /* @__PURE__ */ jsx(
|
|
225
|
+
Checkbox,
|
|
226
|
+
{
|
|
227
|
+
checked: areAllSelected,
|
|
228
|
+
indeterminate: isSomeSelected,
|
|
229
|
+
onCheckedChange: handleToggleAll,
|
|
230
|
+
"aria-label": "Select all accounts"
|
|
231
|
+
}
|
|
232
|
+
) }),
|
|
233
|
+
/* @__PURE__ */ jsx(TableHead, { children: "Account Name" }),
|
|
234
|
+
/* @__PURE__ */ jsx(TableHead, { children: "Account Number" }),
|
|
235
|
+
/* @__PURE__ */ jsx(TableHead, { children: "Period" }),
|
|
236
|
+
/* @__PURE__ */ jsx(TableHead, { children: "Last Updated" })
|
|
237
|
+
] }) }),
|
|
238
|
+
/* @__PURE__ */ jsx(TableBody, { children: bankAccounts.map((account) => {
|
|
239
|
+
var _a, _b;
|
|
240
|
+
return /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
241
|
+
/* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(
|
|
242
|
+
Checkbox,
|
|
243
|
+
{
|
|
244
|
+
checked: selectedAccountIds.includes(account.id),
|
|
245
|
+
onCheckedChange: () => handleToggleAccount(account.id),
|
|
246
|
+
"aria-label": `Select ${account.name}`
|
|
247
|
+
}
|
|
248
|
+
) }),
|
|
249
|
+
/* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
250
|
+
account.institutionLogo && /* @__PURE__ */ jsx(
|
|
251
|
+
"img",
|
|
252
|
+
{
|
|
253
|
+
src: account.institutionLogo,
|
|
254
|
+
alt: (_a = account.institutionName) != null ? _a : "",
|
|
255
|
+
className: "size-8 rounded object-cover"
|
|
256
|
+
}
|
|
257
|
+
),
|
|
258
|
+
/* @__PURE__ */ jsx("span", { className: "text-body-medium font-semibold", children: account.name || account.institutionName || "\u2014" })
|
|
259
|
+
] }) }),
|
|
260
|
+
/* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx("span", { className: "text-body-medium", children: (_b = account.accountNo) != null ? _b : "\u2014" }) }),
|
|
261
|
+
/* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx("span", { className: "text-body-medium", children: periodLabel }) }),
|
|
262
|
+
/* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx("span", { className: "text-body-medium", children: account.lastUpdated ? format(
|
|
263
|
+
parseISO(account.lastUpdated),
|
|
264
|
+
"dd MMM yyyy"
|
|
265
|
+
) : "\u2014" }) })
|
|
266
|
+
] }, account.id);
|
|
267
|
+
}) })
|
|
268
|
+
] })
|
|
269
|
+
] })
|
|
270
|
+
] }),
|
|
271
|
+
/* @__PURE__ */ jsxs(DialogFooter, { children: [
|
|
272
|
+
/* @__PURE__ */ jsx(Button, { variant: "ghost", onClick: onClose, children: "Cancel" }),
|
|
273
|
+
/* @__PURE__ */ jsx(
|
|
274
|
+
Button,
|
|
275
|
+
{
|
|
276
|
+
onClick: handleSubmit,
|
|
277
|
+
disabled: isSubmitDisabled,
|
|
278
|
+
loading: isLoading,
|
|
279
|
+
children: "Generate"
|
|
280
|
+
}
|
|
281
|
+
)
|
|
282
|
+
] })
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
) });
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export {
|
|
289
|
+
BankStatementGenerateDialog
|
|
290
|
+
};
|
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Tooltip,
|
|
3
|
-
TooltipContent,
|
|
4
|
-
TooltipProvider,
|
|
5
|
-
TooltipTrigger
|
|
6
|
-
} from "./chunk-UALR6JGV.mjs";
|
|
7
1
|
import {
|
|
8
2
|
DropdownMenu,
|
|
9
3
|
DropdownMenuContent,
|
|
10
4
|
DropdownMenuItem,
|
|
11
5
|
DropdownMenuSeparator,
|
|
12
6
|
DropdownMenuTrigger
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
ToggleGroup,
|
|
16
|
-
ToggleGroupItem
|
|
17
|
-
} from "./chunk-OWFQSXVD.mjs";
|
|
18
|
-
import {
|
|
19
|
-
Avatar,
|
|
20
|
-
AvatarFallback
|
|
21
|
-
} from "./chunk-H6NQTIF4.mjs";
|
|
22
|
-
import {
|
|
23
|
-
Textarea
|
|
24
|
-
} from "./chunk-BS75ICOO.mjs";
|
|
7
|
+
} from "./chunk-HNDTLT5X.mjs";
|
|
25
8
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
9
|
+
Tooltip,
|
|
10
|
+
TooltipContent,
|
|
11
|
+
TooltipProvider,
|
|
12
|
+
TooltipTrigger
|
|
13
|
+
} from "./chunk-6SR4K5T5.mjs";
|
|
28
14
|
import {
|
|
29
15
|
Tabs,
|
|
30
16
|
TabsList,
|
|
@@ -34,8 +20,8 @@ import {
|
|
|
34
20
|
Separator
|
|
35
21
|
} from "./chunk-2GIYVERS.mjs";
|
|
36
22
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./chunk-
|
|
23
|
+
Textarea
|
|
24
|
+
} from "./chunk-BS75ICOO.mjs";
|
|
39
25
|
import {
|
|
40
26
|
Dialog,
|
|
41
27
|
DialogContent,
|
|
@@ -43,7 +29,21 @@ import {
|
|
|
43
29
|
DialogFooter,
|
|
44
30
|
DialogHeader,
|
|
45
31
|
DialogTitle
|
|
46
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NCUH54IZ.mjs";
|
|
33
|
+
import {
|
|
34
|
+
Avatar,
|
|
35
|
+
AvatarFallback
|
|
36
|
+
} from "./chunk-H6NQTIF4.mjs";
|
|
37
|
+
import {
|
|
38
|
+
Badge
|
|
39
|
+
} from "./chunk-WL6WVV47.mjs";
|
|
40
|
+
import {
|
|
41
|
+
ToggleGroup,
|
|
42
|
+
ToggleGroupItem
|
|
43
|
+
} from "./chunk-OWFQSXVD.mjs";
|
|
44
|
+
import {
|
|
45
|
+
Input
|
|
46
|
+
} from "./chunk-LBTHZSBT.mjs";
|
|
47
47
|
import {
|
|
48
48
|
Button,
|
|
49
49
|
buttonVariants
|
|
@@ -1141,7 +1141,7 @@ function AiConvAssignAdvisorDialog({
|
|
|
1141
1141
|
setRoleFilter("");
|
|
1142
1142
|
}
|
|
1143
1143
|
};
|
|
1144
|
-
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, {
|
|
1144
|
+
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
1145
1145
|
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
1146
1146
|
/* @__PURE__ */ jsx(DialogTitle, { children: "Assign to advisor" }),
|
|
1147
1147
|
/* @__PURE__ */ jsx(DialogDescription, { children: "Choose an advisor to handle this conversation." })
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DropdownMenu,
|
|
3
|
+
DropdownMenuContent,
|
|
4
|
+
DropdownMenuItem,
|
|
5
|
+
DropdownMenuTrigger
|
|
6
|
+
} from "./chunk-HNDTLT5X.mjs";
|
|
7
|
+
import {
|
|
8
|
+
cn
|
|
9
|
+
} from "./chunk-AFML43VJ.mjs";
|
|
10
|
+
|
|
11
|
+
// src/components/ui/scenario-item.tsx
|
|
12
|
+
import { GripVertical, MoreVertical } from "lucide-react";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
function ScenarioItem({
|
|
15
|
+
name,
|
|
16
|
+
description,
|
|
17
|
+
isSelected = false,
|
|
18
|
+
isDraggable = false,
|
|
19
|
+
isDragOver = false,
|
|
20
|
+
onSelect,
|
|
21
|
+
onEdit,
|
|
22
|
+
onDelete,
|
|
23
|
+
onDragStart,
|
|
24
|
+
onDragOver,
|
|
25
|
+
onDragLeave,
|
|
26
|
+
onDrop,
|
|
27
|
+
onDragEnd,
|
|
28
|
+
className
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ jsxs(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
role: "button",
|
|
34
|
+
tabIndex: 0,
|
|
35
|
+
draggable: isDraggable,
|
|
36
|
+
onClick: onSelect,
|
|
37
|
+
onKeyDown: (e) => {
|
|
38
|
+
if (e.key === "Enter" || e.key === " ") onSelect == null ? void 0 : onSelect();
|
|
39
|
+
},
|
|
40
|
+
onDragStart,
|
|
41
|
+
onDragOver,
|
|
42
|
+
onDragLeave,
|
|
43
|
+
onDrop,
|
|
44
|
+
onDragEnd,
|
|
45
|
+
className: cn(
|
|
46
|
+
"flex cursor-pointer items-center gap-2 border border-border bg-background px-3 py-3 transition-colors hover:bg-muted/50",
|
|
47
|
+
isSelected && "border-r-2 border-r-primary bg-primary/5",
|
|
48
|
+
isDragOver && "bg-primary/10",
|
|
49
|
+
className
|
|
50
|
+
),
|
|
51
|
+
children: [
|
|
52
|
+
isDraggable && /* @__PURE__ */ jsx(
|
|
53
|
+
"span",
|
|
54
|
+
{
|
|
55
|
+
"aria-hidden": true,
|
|
56
|
+
className: "shrink-0 cursor-grab text-muted-foreground active:cursor-grabbing",
|
|
57
|
+
children: /* @__PURE__ */ jsx(GripVertical, { size: 16 })
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
61
|
+
/* @__PURE__ */ jsx("p", { className: "truncate text-base font-semibold text-foreground", children: name }),
|
|
62
|
+
description && /* @__PURE__ */ jsx("p", { className: "mt-0.5 truncate text-sm text-muted-foreground", children: description })
|
|
63
|
+
] }),
|
|
64
|
+
(onEdit || onDelete) && /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
65
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
66
|
+
"button",
|
|
67
|
+
{
|
|
68
|
+
type: "button",
|
|
69
|
+
"aria-label": "Scenario options",
|
|
70
|
+
onClick: (e) => e.stopPropagation(),
|
|
71
|
+
className: "shrink-0 p-1 text-muted-foreground transition-colors hover:text-foreground",
|
|
72
|
+
children: /* @__PURE__ */ jsx(MoreVertical, { size: 16 })
|
|
73
|
+
}
|
|
74
|
+
) }),
|
|
75
|
+
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", children: [
|
|
76
|
+
onEdit && /* @__PURE__ */ jsx(
|
|
77
|
+
DropdownMenuItem,
|
|
78
|
+
{
|
|
79
|
+
onClick: (e) => {
|
|
80
|
+
e.stopPropagation();
|
|
81
|
+
onEdit();
|
|
82
|
+
},
|
|
83
|
+
children: "Update Scenario"
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
onDelete && /* @__PURE__ */ jsx(
|
|
87
|
+
DropdownMenuItem,
|
|
88
|
+
{
|
|
89
|
+
onClick: (e) => {
|
|
90
|
+
e.stopPropagation();
|
|
91
|
+
onDelete();
|
|
92
|
+
},
|
|
93
|
+
className: "text-destructive focus:text-destructive",
|
|
94
|
+
children: "Delete Scenario"
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
] })
|
|
98
|
+
] })
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export {
|
|
105
|
+
ScenarioItem
|
|
106
|
+
};
|