@wealthx/shadcn 1.4.1 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +356 -176
- package/CHANGELOG.md +12 -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 +367 -3
- 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
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AddressAutocomplete
|
|
3
|
+
} from "./chunk-MXP2RX2V.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Select,
|
|
6
|
+
SelectContent,
|
|
7
|
+
SelectItem,
|
|
8
|
+
SelectTrigger,
|
|
9
|
+
SelectValue
|
|
10
|
+
} from "./chunk-TAX3KL66.mjs";
|
|
11
|
+
import {
|
|
12
|
+
Spinner
|
|
13
|
+
} from "./chunk-JVMXMFBB.mjs";
|
|
14
|
+
import {
|
|
15
|
+
Dialog,
|
|
16
|
+
DialogContent,
|
|
17
|
+
DialogFooter,
|
|
18
|
+
DialogHeader,
|
|
19
|
+
DialogTitle
|
|
20
|
+
} from "./chunk-NCUH54IZ.mjs";
|
|
21
|
+
import {
|
|
22
|
+
Label
|
|
23
|
+
} from "./chunk-P7CEBZM6.mjs";
|
|
24
|
+
import {
|
|
25
|
+
Input
|
|
26
|
+
} from "./chunk-LBTHZSBT.mjs";
|
|
27
|
+
import {
|
|
28
|
+
Button
|
|
29
|
+
} from "./chunk-NOOEKOWY.mjs";
|
|
30
|
+
import {
|
|
31
|
+
__spreadProps,
|
|
32
|
+
__spreadValues
|
|
33
|
+
} from "./chunk-WNQUEZJF.mjs";
|
|
34
|
+
|
|
35
|
+
// src/components/ui/create-contact-modal.tsx
|
|
36
|
+
import * as React from "react";
|
|
37
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
38
|
+
function Field({
|
|
39
|
+
id,
|
|
40
|
+
label,
|
|
41
|
+
required,
|
|
42
|
+
children
|
|
43
|
+
}) {
|
|
44
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
45
|
+
/* @__PURE__ */ jsxs(Label, { htmlFor: id, children: [
|
|
46
|
+
label,
|
|
47
|
+
required && /* @__PURE__ */ jsx("span", { className: "ml-0.5 text-destructive", children: "*" })
|
|
48
|
+
] }),
|
|
49
|
+
children
|
|
50
|
+
] });
|
|
51
|
+
}
|
|
52
|
+
var EMPTY_FORM = {
|
|
53
|
+
firstName: "",
|
|
54
|
+
lastName: "",
|
|
55
|
+
email: "",
|
|
56
|
+
phone: "",
|
|
57
|
+
address: ""
|
|
58
|
+
};
|
|
59
|
+
function CreateContactModal({
|
|
60
|
+
open,
|
|
61
|
+
onOpenChange,
|
|
62
|
+
onSubmit,
|
|
63
|
+
isLoading = false,
|
|
64
|
+
staffOptions,
|
|
65
|
+
className
|
|
66
|
+
}) {
|
|
67
|
+
var _a, _b;
|
|
68
|
+
const [form, setForm] = React.useState(EMPTY_FORM);
|
|
69
|
+
React.useEffect(() => {
|
|
70
|
+
if (open) setForm(EMPTY_FORM);
|
|
71
|
+
}, [open]);
|
|
72
|
+
function set(field, value) {
|
|
73
|
+
setForm((prev) => __spreadProps(__spreadValues({}, prev), { [field]: value }));
|
|
74
|
+
}
|
|
75
|
+
const isValid = form.firstName.trim() !== "" && form.lastName.trim() !== "" && form.email.trim() !== "";
|
|
76
|
+
function handleSubmit(e) {
|
|
77
|
+
e.preventDefault();
|
|
78
|
+
if (!isValid || isLoading) return;
|
|
79
|
+
onSubmit(form);
|
|
80
|
+
}
|
|
81
|
+
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: isLoading ? void 0 : onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { size: "lg", className, children: [
|
|
82
|
+
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "Add New Contact" }) }),
|
|
83
|
+
/* @__PURE__ */ jsx("form", { id: "create-contact-form", onSubmit: handleSubmit, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
84
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-3", children: [
|
|
85
|
+
/* @__PURE__ */ jsx(Field, { id: "ccm-firstName", label: "First name", required: true, children: /* @__PURE__ */ jsx(
|
|
86
|
+
Input,
|
|
87
|
+
{
|
|
88
|
+
id: "ccm-firstName",
|
|
89
|
+
placeholder: "First name",
|
|
90
|
+
value: form.firstName,
|
|
91
|
+
onChange: (e) => set("firstName", e.target.value),
|
|
92
|
+
disabled: isLoading,
|
|
93
|
+
autoComplete: "given-name"
|
|
94
|
+
}
|
|
95
|
+
) }),
|
|
96
|
+
/* @__PURE__ */ jsx(Field, { id: "ccm-lastName", label: "Last name", required: true, children: /* @__PURE__ */ jsx(
|
|
97
|
+
Input,
|
|
98
|
+
{
|
|
99
|
+
id: "ccm-lastName",
|
|
100
|
+
placeholder: "Last name",
|
|
101
|
+
value: form.lastName,
|
|
102
|
+
onChange: (e) => set("lastName", e.target.value),
|
|
103
|
+
disabled: isLoading,
|
|
104
|
+
autoComplete: "family-name"
|
|
105
|
+
}
|
|
106
|
+
) })
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ jsx(Field, { id: "ccm-email", label: "Email address", required: true, children: /* @__PURE__ */ jsx(
|
|
109
|
+
Input,
|
|
110
|
+
{
|
|
111
|
+
id: "ccm-email",
|
|
112
|
+
type: "email",
|
|
113
|
+
placeholder: "name@example.com",
|
|
114
|
+
value: form.email,
|
|
115
|
+
onChange: (e) => set("email", e.target.value),
|
|
116
|
+
disabled: isLoading,
|
|
117
|
+
autoComplete: "email"
|
|
118
|
+
}
|
|
119
|
+
) }),
|
|
120
|
+
/* @__PURE__ */ jsx(Field, { id: "ccm-phone", label: "Phone number", children: /* @__PURE__ */ jsx(
|
|
121
|
+
Input,
|
|
122
|
+
{
|
|
123
|
+
id: "ccm-phone",
|
|
124
|
+
type: "tel",
|
|
125
|
+
placeholder: "+61 4xx xxx xxx",
|
|
126
|
+
value: form.phone,
|
|
127
|
+
onChange: (e) => set("phone", e.target.value),
|
|
128
|
+
disabled: isLoading,
|
|
129
|
+
autoComplete: "tel"
|
|
130
|
+
}
|
|
131
|
+
) }),
|
|
132
|
+
/* @__PURE__ */ jsx(Field, { id: "ccm-address", label: "Address", children: /* @__PURE__ */ jsx(
|
|
133
|
+
AddressAutocomplete,
|
|
134
|
+
{
|
|
135
|
+
value: (_a = form.address) != null ? _a : "",
|
|
136
|
+
onValueChange: (v) => set("address", v),
|
|
137
|
+
onSelect: (opt) => set("address", opt.label),
|
|
138
|
+
disabled: isLoading
|
|
139
|
+
}
|
|
140
|
+
) }),
|
|
141
|
+
staffOptions && staffOptions.length > 0 && /* @__PURE__ */ jsx(Field, { id: "ccm-staff", label: "Assign to", children: /* @__PURE__ */ jsxs(
|
|
142
|
+
Select,
|
|
143
|
+
{
|
|
144
|
+
value: (_b = form.assignedStaffId) != null ? _b : "",
|
|
145
|
+
onValueChange: (v) => set("assignedStaffId", v),
|
|
146
|
+
disabled: isLoading,
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ jsx(SelectTrigger, { id: "ccm-staff", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select staff member" }) }),
|
|
149
|
+
/* @__PURE__ */ jsx(SelectContent, { children: staffOptions.map((s) => /* @__PURE__ */ jsx(SelectItem, { value: s.id, children: s.displayName }, s.id)) })
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
) })
|
|
153
|
+
] }) }),
|
|
154
|
+
/* @__PURE__ */ jsxs(DialogFooter, { children: [
|
|
155
|
+
/* @__PURE__ */ jsx(
|
|
156
|
+
Button,
|
|
157
|
+
{
|
|
158
|
+
variant: "outline",
|
|
159
|
+
onClick: () => onOpenChange(false),
|
|
160
|
+
disabled: isLoading,
|
|
161
|
+
children: "Cancel"
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
/* @__PURE__ */ jsx(
|
|
165
|
+
Button,
|
|
166
|
+
{
|
|
167
|
+
type: "submit",
|
|
168
|
+
form: "create-contact-form",
|
|
169
|
+
disabled: !isValid || isLoading,
|
|
170
|
+
children: isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
171
|
+
/* @__PURE__ */ jsx(Spinner, { className: "size-3.5" }),
|
|
172
|
+
"Creating\u2026"
|
|
173
|
+
] }) : "Create Contact"
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
] })
|
|
177
|
+
] }) });
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export {
|
|
181
|
+
CreateContactModal
|
|
182
|
+
};
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppointmentSlotSection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FRT3S72S.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Separator
|
|
6
|
+
} from "./chunk-2GIYVERS.mjs";
|
|
4
7
|
import {
|
|
5
8
|
Textarea
|
|
6
9
|
} from "./chunk-BS75ICOO.mjs";
|
|
10
|
+
import {
|
|
11
|
+
Dialog,
|
|
12
|
+
DialogClose,
|
|
13
|
+
DialogContent,
|
|
14
|
+
DialogDescription,
|
|
15
|
+
DialogFooter,
|
|
16
|
+
DialogHeader,
|
|
17
|
+
DialogTitle
|
|
18
|
+
} from "./chunk-NCUH54IZ.mjs";
|
|
7
19
|
import {
|
|
8
20
|
AlertDialog,
|
|
9
21
|
AlertDialogAction,
|
|
@@ -13,25 +25,13 @@ import {
|
|
|
13
25
|
AlertDialogFooter,
|
|
14
26
|
AlertDialogHeader,
|
|
15
27
|
AlertDialogTitle
|
|
16
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BD3DWDT4.mjs";
|
|
17
29
|
import {
|
|
18
30
|
Calendar
|
|
19
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Q35PNFJ7.mjs";
|
|
20
32
|
import {
|
|
21
33
|
Label
|
|
22
34
|
} from "./chunk-P7CEBZM6.mjs";
|
|
23
|
-
import {
|
|
24
|
-
Separator
|
|
25
|
-
} from "./chunk-2GIYVERS.mjs";
|
|
26
|
-
import {
|
|
27
|
-
Dialog,
|
|
28
|
-
DialogClose,
|
|
29
|
-
DialogContent,
|
|
30
|
-
DialogDescription,
|
|
31
|
-
DialogFooter,
|
|
32
|
-
DialogHeader,
|
|
33
|
-
DialogTitle
|
|
34
|
-
} from "./chunk-P2N2PEFY.mjs";
|
|
35
35
|
import {
|
|
36
36
|
Button
|
|
37
37
|
} from "./chunk-NOOEKOWY.mjs";
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IncomeBarChart
|
|
3
|
+
} from "./chunk-KAD26MCC.mjs";
|
|
4
|
+
import {
|
|
5
|
+
RadioGroup,
|
|
6
|
+
RadioGroupItem
|
|
7
|
+
} from "./chunk-JTK6VJXY.mjs";
|
|
8
|
+
import {
|
|
9
|
+
AddressAutocomplete,
|
|
10
|
+
CurrencyInputWithSlider
|
|
11
|
+
} from "./chunk-MXP2RX2V.mjs";
|
|
12
|
+
import {
|
|
13
|
+
Checkbox
|
|
14
|
+
} from "./chunk-IKXYTCSB.mjs";
|
|
15
|
+
import {
|
|
16
|
+
Card,
|
|
17
|
+
CardContent
|
|
18
|
+
} from "./chunk-3VDET466.mjs";
|
|
19
|
+
import {
|
|
20
|
+
LoanOptionGroup
|
|
21
|
+
} from "./chunk-FFXTQTB4.mjs";
|
|
22
|
+
import {
|
|
23
|
+
Input
|
|
24
|
+
} from "./chunk-LBTHZSBT.mjs";
|
|
25
|
+
import {
|
|
26
|
+
Accordion,
|
|
27
|
+
AccordionContent,
|
|
28
|
+
AccordionItem,
|
|
29
|
+
AccordionTrigger
|
|
30
|
+
} from "./chunk-UNACI2YK.mjs";
|
|
31
|
+
import {
|
|
32
|
+
formatCurrency
|
|
33
|
+
} from "./chunk-MN5NYQCL.mjs";
|
|
34
|
+
import {
|
|
35
|
+
Button
|
|
36
|
+
} from "./chunk-NOOEKOWY.mjs";
|
|
37
|
+
import {
|
|
38
|
+
cn
|
|
39
|
+
} from "./chunk-AFML43VJ.mjs";
|
|
40
|
+
|
|
41
|
+
// src/components/ui/income-work-details.tsx
|
|
42
|
+
import * as React from "react";
|
|
43
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
44
|
+
var EMPLOYMENT_TYPE_OPTIONS = [
|
|
45
|
+
{ value: "payg", label: "PAYG" },
|
|
46
|
+
{ value: "self-employed", label: "Self Employed" },
|
|
47
|
+
{ value: "unemployed", label: "Unemployed" },
|
|
48
|
+
{ value: "retired", label: "Retired" }
|
|
49
|
+
];
|
|
50
|
+
var EMPLOYMENT_STATUS_OPTIONS = [
|
|
51
|
+
{ value: "primary", label: "Primary" },
|
|
52
|
+
{ value: "secondary", label: "Secondary" }
|
|
53
|
+
];
|
|
54
|
+
var EMPLOYMENT_BASIS_OPTIONS = [
|
|
55
|
+
{ value: "contract", label: "Contract" },
|
|
56
|
+
{ value: "temporary", label: "Temporary" },
|
|
57
|
+
{ value: "casual", label: "Casual" }
|
|
58
|
+
];
|
|
59
|
+
var INCOME_FREQUENCY_OPTIONS = [
|
|
60
|
+
{ value: "monthly", label: "Monthly" },
|
|
61
|
+
{ value: "weekly", label: "Weekly" }
|
|
62
|
+
];
|
|
63
|
+
function IncomeSourceForm({
|
|
64
|
+
source,
|
|
65
|
+
onChange
|
|
66
|
+
}) {
|
|
67
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
68
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 pt-2", children: [
|
|
69
|
+
/* @__PURE__ */ jsx(
|
|
70
|
+
LoanOptionGroup,
|
|
71
|
+
{
|
|
72
|
+
options: EMPLOYMENT_TYPE_OPTIONS,
|
|
73
|
+
value: (_a = source.employmentType) != null ? _a : "",
|
|
74
|
+
onChange: (v) => {
|
|
75
|
+
if (typeof v === "string")
|
|
76
|
+
onChange({ employmentType: v });
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
LoanOptionGroup,
|
|
82
|
+
{
|
|
83
|
+
title: "Employment Status",
|
|
84
|
+
options: EMPLOYMENT_STATUS_OPTIONS,
|
|
85
|
+
value: (_b = source.employmentStatus) != null ? _b : "",
|
|
86
|
+
onChange: (v) => {
|
|
87
|
+
if (typeof v === "string")
|
|
88
|
+
onChange({ employmentStatus: v });
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ jsx(
|
|
93
|
+
LoanOptionGroup,
|
|
94
|
+
{
|
|
95
|
+
title: "Employment Type",
|
|
96
|
+
options: EMPLOYMENT_BASIS_OPTIONS,
|
|
97
|
+
value: (_c = source.employmentBasis) != null ? _c : "",
|
|
98
|
+
onChange: (v) => {
|
|
99
|
+
if (typeof v === "string")
|
|
100
|
+
onChange({ employmentBasis: v });
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
105
|
+
/* @__PURE__ */ jsx("label", { className: "text-label-small text-muted-foreground", children: "Job Title" }),
|
|
106
|
+
/* @__PURE__ */ jsx(
|
|
107
|
+
Input,
|
|
108
|
+
{
|
|
109
|
+
value: (_d = source.jobTitle) != null ? _d : "",
|
|
110
|
+
onChange: (e) => onChange({ jobTitle: e.target.value }),
|
|
111
|
+
placeholder: "e.g. Software Engineer"
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
] }),
|
|
115
|
+
/* @__PURE__ */ jsxs(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
className: source.stillInPosition === false ? "grid grid-cols-2 gap-3" : void 0,
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
121
|
+
/* @__PURE__ */ jsx("label", { className: "text-label-small text-muted-foreground", children: "Start Date" }),
|
|
122
|
+
/* @__PURE__ */ jsx(
|
|
123
|
+
Input,
|
|
124
|
+
{
|
|
125
|
+
type: "date",
|
|
126
|
+
value: (_e = source.startDate) != null ? _e : "",
|
|
127
|
+
onChange: (e) => onChange({ startDate: e.target.value })
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
] }),
|
|
131
|
+
source.stillInPosition === false && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
132
|
+
/* @__PURE__ */ jsx("label", { className: "text-label-small text-muted-foreground", children: "End Date" }),
|
|
133
|
+
/* @__PURE__ */ jsx(
|
|
134
|
+
Input,
|
|
135
|
+
{
|
|
136
|
+
type: "date",
|
|
137
|
+
value: (_f = source.endDate) != null ? _f : "",
|
|
138
|
+
onChange: (e) => onChange({ endDate: e.target.value })
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
] })
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
146
|
+
/* @__PURE__ */ jsx(
|
|
147
|
+
Checkbox,
|
|
148
|
+
{
|
|
149
|
+
id: `${source.id}-still-in-position`,
|
|
150
|
+
checked: (_g = source.stillInPosition) != null ? _g : true,
|
|
151
|
+
onCheckedChange: (checked) => onChange({ stillInPosition: checked === true })
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
/* @__PURE__ */ jsx(
|
|
155
|
+
"label",
|
|
156
|
+
{
|
|
157
|
+
htmlFor: `${source.id}-still-in-position`,
|
|
158
|
+
className: "text-body-small cursor-pointer",
|
|
159
|
+
children: "Still in position"
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
] }),
|
|
163
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
164
|
+
/* @__PURE__ */ jsx("label", { className: "text-label-small text-muted-foreground", children: "Company Name" }),
|
|
165
|
+
/* @__PURE__ */ jsx(
|
|
166
|
+
Input,
|
|
167
|
+
{
|
|
168
|
+
value: (_h = source.companyName) != null ? _h : "",
|
|
169
|
+
onChange: (e) => onChange({ companyName: e.target.value }),
|
|
170
|
+
placeholder: "e.g. Acme Corporation"
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
] }),
|
|
174
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
175
|
+
/* @__PURE__ */ jsx("label", { className: "text-label-small text-muted-foreground", children: "Company Address" }),
|
|
176
|
+
/* @__PURE__ */ jsx(
|
|
177
|
+
AddressAutocomplete,
|
|
178
|
+
{
|
|
179
|
+
value: (_i = source.companyAddress) != null ? _i : "",
|
|
180
|
+
onValueChange: (v) => onChange({ companyAddress: v })
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
] }),
|
|
184
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
185
|
+
/* @__PURE__ */ jsx("label", { className: "text-label-small text-muted-foreground", children: "Income Amount" }),
|
|
186
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
187
|
+
/* @__PURE__ */ jsx(
|
|
188
|
+
CurrencyInputWithSlider,
|
|
189
|
+
{
|
|
190
|
+
className: "flex-1",
|
|
191
|
+
value: (_j = source.incomeAmount) != null ? _j : 0,
|
|
192
|
+
min: 0,
|
|
193
|
+
max: 5e4,
|
|
194
|
+
step: 100,
|
|
195
|
+
onValueChange: (v) => onChange({ incomeAmount: v })
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
/* @__PURE__ */ jsx(
|
|
199
|
+
LoanOptionGroup,
|
|
200
|
+
{
|
|
201
|
+
className: "shrink-0",
|
|
202
|
+
options: INCOME_FREQUENCY_OPTIONS,
|
|
203
|
+
value: (_k = source.incomeFrequency) != null ? _k : "",
|
|
204
|
+
onChange: (v) => {
|
|
205
|
+
if (typeof v === "string")
|
|
206
|
+
onChange({ incomeFrequency: v });
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
)
|
|
210
|
+
] })
|
|
211
|
+
] }),
|
|
212
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
213
|
+
/* @__PURE__ */ jsx("span", { className: "text-label-small text-muted-foreground", children: "Type of Company" }),
|
|
214
|
+
/* @__PURE__ */ jsxs(
|
|
215
|
+
RadioGroup,
|
|
216
|
+
{
|
|
217
|
+
value: source.companyType,
|
|
218
|
+
onValueChange: (v) => onChange({ companyType: v }),
|
|
219
|
+
className: "flex flex-row gap-4",
|
|
220
|
+
children: [
|
|
221
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
222
|
+
/* @__PURE__ */ jsx(RadioGroupItem, { value: "public", id: `${source.id}-public` }),
|
|
223
|
+
/* @__PURE__ */ jsx(
|
|
224
|
+
"label",
|
|
225
|
+
{
|
|
226
|
+
htmlFor: `${source.id}-public`,
|
|
227
|
+
className: "text-body-small cursor-pointer",
|
|
228
|
+
children: "Public"
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
] }),
|
|
232
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
233
|
+
/* @__PURE__ */ jsx(RadioGroupItem, { value: "private", id: `${source.id}-private` }),
|
|
234
|
+
/* @__PURE__ */ jsx(
|
|
235
|
+
"label",
|
|
236
|
+
{
|
|
237
|
+
htmlFor: `${source.id}-private`,
|
|
238
|
+
className: "text-body-small cursor-pointer",
|
|
239
|
+
children: "Private"
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
] })
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
)
|
|
246
|
+
] })
|
|
247
|
+
] });
|
|
248
|
+
}
|
|
249
|
+
function IncomeWorkDetails({
|
|
250
|
+
applicantName,
|
|
251
|
+
totalIncome,
|
|
252
|
+
incomeData,
|
|
253
|
+
sources,
|
|
254
|
+
onSourceChange,
|
|
255
|
+
onAddSource,
|
|
256
|
+
onConnectMore,
|
|
257
|
+
className
|
|
258
|
+
}) {
|
|
259
|
+
const [openItems, setOpenItems] = React.useState(
|
|
260
|
+
sources.length > 0 ? [sources[0].id] : []
|
|
261
|
+
);
|
|
262
|
+
React.useEffect(() => {
|
|
263
|
+
setOpenItems((current) => {
|
|
264
|
+
const currentSet = new Set(current);
|
|
265
|
+
const newIds = sources.map((s) => s.id).filter((id) => !currentSet.has(id));
|
|
266
|
+
return newIds.length > 0 ? [...current, ...newIds] : current;
|
|
267
|
+
});
|
|
268
|
+
}, [sources]);
|
|
269
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-6 font-sans", className), children: [
|
|
270
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-h1 text-foreground", children: [
|
|
271
|
+
applicantName,
|
|
272
|
+
"'s Income"
|
|
273
|
+
] }),
|
|
274
|
+
totalIncome !== void 0 && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
275
|
+
/* @__PURE__ */ jsx(Card, { className: "shrink-0 w-[202px]", children: /* @__PURE__ */ jsxs(CardContent, { className: "flex flex-col gap-3 p-4", children: [
|
|
276
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 flex-1", children: [
|
|
277
|
+
/* @__PURE__ */ jsx("span", { className: "text-h2 text-foreground", children: formatCurrency(totalIncome) }),
|
|
278
|
+
/* @__PURE__ */ jsx("span", { className: "text-body-small text-muted-foreground", children: "Total latest 12 months" })
|
|
279
|
+
] }),
|
|
280
|
+
/* @__PURE__ */ jsx(
|
|
281
|
+
Button,
|
|
282
|
+
{
|
|
283
|
+
variant: "secondary",
|
|
284
|
+
size: "sm",
|
|
285
|
+
className: "w-fit",
|
|
286
|
+
onClick: onConnectMore,
|
|
287
|
+
children: "Add More Account +"
|
|
288
|
+
}
|
|
289
|
+
)
|
|
290
|
+
] }) }),
|
|
291
|
+
incomeData && /* @__PURE__ */ jsx(
|
|
292
|
+
IncomeBarChart,
|
|
293
|
+
{
|
|
294
|
+
incomeData,
|
|
295
|
+
bare: true,
|
|
296
|
+
showLegend: false,
|
|
297
|
+
showYAxis: true,
|
|
298
|
+
showXAxis: true,
|
|
299
|
+
defaultPeriod: 12,
|
|
300
|
+
height: 160,
|
|
301
|
+
className: "flex-1"
|
|
302
|
+
}
|
|
303
|
+
)
|
|
304
|
+
] }),
|
|
305
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
306
|
+
/* @__PURE__ */ jsx("h3", { className: "text-h3 text-foreground", children: "Income Sources" }),
|
|
307
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
308
|
+
/* @__PURE__ */ jsx("span", { className: "text-label-small text-muted-foreground", children: "Total Income" }),
|
|
309
|
+
/* @__PURE__ */ jsx(
|
|
310
|
+
"div",
|
|
311
|
+
{
|
|
312
|
+
className: cn(
|
|
313
|
+
"h-5 w-full",
|
|
314
|
+
totalIncome ? "bg-primary" : "bg-muted"
|
|
315
|
+
)
|
|
316
|
+
}
|
|
317
|
+
)
|
|
318
|
+
] })
|
|
319
|
+
] }),
|
|
320
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
321
|
+
/* @__PURE__ */ jsx("h3", { className: "text-h3 text-foreground", children: "Work Details" }),
|
|
322
|
+
/* @__PURE__ */ jsx(
|
|
323
|
+
Accordion,
|
|
324
|
+
{
|
|
325
|
+
type: "multiple",
|
|
326
|
+
value: openItems,
|
|
327
|
+
onValueChange: setOpenItems,
|
|
328
|
+
className: "border-t border-border",
|
|
329
|
+
children: sources.map((source) => {
|
|
330
|
+
var _a;
|
|
331
|
+
return /* @__PURE__ */ jsxs(AccordionItem, { value: source.id, children: [
|
|
332
|
+
/* @__PURE__ */ jsx(AccordionTrigger, { children: (_a = source.label) != null ? _a : "Main Income Source" }),
|
|
333
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "text-foreground", children: /* @__PURE__ */ jsx(
|
|
334
|
+
IncomeSourceForm,
|
|
335
|
+
{
|
|
336
|
+
source,
|
|
337
|
+
onChange: (updates) => onSourceChange == null ? void 0 : onSourceChange(source.id, updates)
|
|
338
|
+
}
|
|
339
|
+
) })
|
|
340
|
+
] }, source.id);
|
|
341
|
+
})
|
|
342
|
+
}
|
|
343
|
+
),
|
|
344
|
+
/* @__PURE__ */ jsx(
|
|
345
|
+
Button,
|
|
346
|
+
{
|
|
347
|
+
variant: "outline",
|
|
348
|
+
size: "sm",
|
|
349
|
+
className: "w-fit",
|
|
350
|
+
onClick: onAddSource,
|
|
351
|
+
children: "Add More +"
|
|
352
|
+
}
|
|
353
|
+
)
|
|
354
|
+
] })
|
|
355
|
+
] });
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export {
|
|
359
|
+
IncomeWorkDetails
|
|
360
|
+
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Badge
|
|
3
|
-
} from "./chunk-WL6WVV47.mjs";
|
|
4
1
|
import {
|
|
5
2
|
Checkbox
|
|
6
3
|
} from "./chunk-IKXYTCSB.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Switch
|
|
6
|
+
} from "./chunk-PNSYFE3K.mjs";
|
|
7
|
+
import {
|
|
8
|
+
Badge
|
|
9
|
+
} from "./chunk-WL6WVV47.mjs";
|
|
7
10
|
import {
|
|
8
11
|
cn
|
|
9
12
|
} from "./chunk-AFML43VJ.mjs";
|
|
@@ -14,6 +17,8 @@ function TaskCheckItem({
|
|
|
14
17
|
title,
|
|
15
18
|
completed,
|
|
16
19
|
aiAgentName,
|
|
20
|
+
autoCompleteEnabled,
|
|
21
|
+
onAutoCompleteToggle,
|
|
17
22
|
onToggle,
|
|
18
23
|
disabled = false,
|
|
19
24
|
size = "xs",
|
|
@@ -59,7 +64,27 @@ function TaskCheckItem({
|
|
|
59
64
|
}
|
|
60
65
|
),
|
|
61
66
|
aiAgentName
|
|
62
|
-
] })
|
|
67
|
+
] }),
|
|
68
|
+
aiAgentName && autoCompleteEnabled !== void 0 && /* @__PURE__ */ jsxs(
|
|
69
|
+
"span",
|
|
70
|
+
{
|
|
71
|
+
className: "flex items-center gap-1.5",
|
|
72
|
+
onClick: (e) => e.stopPropagation(),
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ jsx(
|
|
75
|
+
Switch,
|
|
76
|
+
{
|
|
77
|
+
checked: autoCompleteEnabled,
|
|
78
|
+
onCheckedChange: () => onAutoCompleteToggle == null ? void 0 : onAutoCompleteToggle(),
|
|
79
|
+
disabled,
|
|
80
|
+
className: "scale-75 origin-left",
|
|
81
|
+
"aria-label": "Allow agent to auto complete"
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ jsx("span", { className: "text-[10px] text-muted-foreground", children: "Allow Agent to Auto Complete" })
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
)
|
|
63
88
|
] })
|
|
64
89
|
]
|
|
65
90
|
}
|
|
@@ -6,26 +6,26 @@ import {
|
|
|
6
6
|
formatChartDateLabel,
|
|
7
7
|
formatTooltipDate
|
|
8
8
|
} from "./chunk-YEWNFK5S.mjs";
|
|
9
|
-
import {
|
|
10
|
-
formatCurrency,
|
|
11
|
-
formatCurrencyAbbrev
|
|
12
|
-
} from "./chunk-MN5NYQCL.mjs";
|
|
13
9
|
import {
|
|
14
10
|
Empty,
|
|
15
11
|
EmptyDescription
|
|
16
12
|
} from "./chunk-R2ON6CAN.mjs";
|
|
13
|
+
import {
|
|
14
|
+
Spinner
|
|
15
|
+
} from "./chunk-JVMXMFBB.mjs";
|
|
17
16
|
import {
|
|
18
17
|
Card,
|
|
19
18
|
CardContent,
|
|
20
19
|
CardHeader,
|
|
21
20
|
CardTitle
|
|
22
21
|
} from "./chunk-3VDET466.mjs";
|
|
23
|
-
import {
|
|
24
|
-
Spinner
|
|
25
|
-
} from "./chunk-JVMXMFBB.mjs";
|
|
26
22
|
import {
|
|
27
23
|
useThemeVars
|
|
28
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WDTXHLYM.mjs";
|
|
25
|
+
import {
|
|
26
|
+
formatCurrency,
|
|
27
|
+
formatCurrencyAbbrev
|
|
28
|
+
} from "./chunk-MN5NYQCL.mjs";
|
|
29
29
|
import {
|
|
30
30
|
cn
|
|
31
31
|
} from "./chunk-AFML43VJ.mjs";
|