@wealthx/shadcn 1.3.1 → 1.3.3

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.
Files changed (313) hide show
  1. package/.turbo/turbo-build.log +259 -223
  2. package/CHANGELOG.md +12 -0
  3. package/dist/{chunk-2UM72RJ7.mjs → chunk-2D3HQPFN.mjs} +12 -10
  4. package/dist/chunk-2EM2FRU6.mjs +613 -0
  5. package/dist/{chunk-FH6QVUVZ.mjs → chunk-2GIYVERS.mjs} +2 -2
  6. package/dist/chunk-2P7HP7LR.mjs +68 -0
  7. package/dist/{chunk-HISNT2MG.mjs → chunk-37AE3OM5.mjs} +5 -5
  8. package/dist/{chunk-HBZLGDIN.mjs → chunk-3ERBUVHC.mjs} +169 -110
  9. package/dist/{chunk-C7CQJNMR.mjs → chunk-3VDET466.mjs} +2 -2
  10. package/dist/{chunk-462HMNO4.mjs → chunk-4MM7LHM5.mjs} +2 -2
  11. package/dist/{chunk-QMY3AZJH.mjs → chunk-4Z66LMIQ.mjs} +2 -2
  12. package/dist/{chunk-U5X52X37.mjs → chunk-57ZXILTS.mjs} +6 -6
  13. package/dist/{chunk-3OYFOX3X.mjs → chunk-5VOTTIXF.mjs} +2 -2
  14. package/dist/{chunk-LBMRIB3G.mjs → chunk-6AJUS7VX.mjs} +1 -1
  15. package/dist/{chunk-OODBHKG7.mjs → chunk-6HIOM2HL.mjs} +7 -4
  16. package/dist/{chunk-BDYZCBRT.mjs → chunk-6QAFGZC2.mjs} +2 -2
  17. package/dist/{chunk-U4NDAF2P.mjs → chunk-6TX73WG7.mjs} +1 -1
  18. package/dist/{chunk-GD4BJDJR.mjs → chunk-7BTFGCFC.mjs} +4 -4
  19. package/dist/{chunk-FAKPBKLT.mjs → chunk-7GWRPXHD.mjs} +4 -4
  20. package/dist/{chunk-NMOI6CQD.mjs → chunk-7YI3HEBH.mjs} +5 -5
  21. package/dist/{chunk-T4BJLT57.mjs → chunk-AE7MASLF.mjs} +5 -5
  22. package/dist/{chunk-VLQZANBF.mjs → chunk-AFML43VJ.mjs} +6 -1
  23. package/dist/chunk-BBXSNDS3.mjs +260 -0
  24. package/dist/chunk-BOW7U26Y.mjs +203 -0
  25. package/dist/{chunk-34NWQURD.mjs → chunk-BS75ICOO.mjs} +2 -2
  26. package/dist/chunk-D2NSIIXG.mjs +394 -0
  27. package/dist/{chunk-3GF7OVTP.mjs → chunk-DGNHGNYH.mjs} +2 -2
  28. package/dist/{chunk-VLARHE5V.mjs → chunk-DMXYRCHM.mjs} +6 -6
  29. package/dist/{chunk-OGOYQ7BG.mjs → chunk-DQB4EPIS.mjs} +1 -1
  30. package/dist/{chunk-MIZQHHUO.mjs → chunk-FL6DZFJK.mjs} +106 -38
  31. package/dist/{chunk-I3RZS7V2.mjs → chunk-FLL633WS.mjs} +19 -33
  32. package/dist/{chunk-PBL4OQV2.mjs → chunk-FTPBQVQ6.mjs} +4 -4
  33. package/dist/chunk-FYPSTTEJ.mjs +169 -0
  34. package/dist/{chunk-6O6KD7CE.mjs → chunk-G27TSQLQ.mjs} +6 -6
  35. package/dist/{chunk-66MI7Q4B.mjs → chunk-GT3RU6GA.mjs} +2 -2
  36. package/dist/{chunk-D6ID6M4V.mjs → chunk-GTAVSBDO.mjs} +2 -2
  37. package/dist/{chunk-24FUO7TD.mjs → chunk-H6NQTIF4.mjs} +2 -2
  38. package/dist/{chunk-7DHU4VGG.mjs → chunk-HK4HUQTV.mjs} +2 -2
  39. package/dist/chunk-I4KVSZCH.mjs +101 -0
  40. package/dist/{chunk-RGVKLTLH.mjs → chunk-IKXYTCSB.mjs} +2 -2
  41. package/dist/{chunk-Y6DWJSKZ.mjs → chunk-ISUA7DSB.mjs} +1 -1
  42. package/dist/{chunk-2A5RRQGG.mjs → chunk-JD3YWRNP.mjs} +10 -14
  43. package/dist/{chunk-J5UICVJS.mjs → chunk-JPGL36WQ.mjs} +2 -2
  44. package/dist/{chunk-7XJHLGUV.mjs → chunk-JTK6VJXY.mjs} +2 -2
  45. package/dist/{chunk-7YAU5CY6.mjs → chunk-JVMXMFBB.mjs} +2 -2
  46. package/dist/{chunk-IAE3F7DR.mjs → chunk-JZY6TNIS.mjs} +21 -21
  47. package/dist/{chunk-K5A5L6T2.mjs → chunk-K4KOD3KR.mjs} +12 -12
  48. package/dist/{chunk-MBON7YRJ.mjs → chunk-K5QV4TT6.mjs} +3 -3
  49. package/dist/{chunk-IHMFS7NZ.mjs → chunk-K5VHK7CM.mjs} +21 -21
  50. package/dist/{chunk-RJI6GKVF.mjs → chunk-KCWNDYPZ.mjs} +5 -5
  51. package/dist/{chunk-UFYSFDER.mjs → chunk-KFH36NKF.mjs} +1 -1
  52. package/dist/{chunk-EBXQWIYG.mjs → chunk-KLTACJ2G.mjs} +5 -5
  53. package/dist/{chunk-3TTACBDP.mjs → chunk-KWD6GANL.mjs} +4 -4
  54. package/dist/{chunk-IOJRDS6V.mjs → chunk-L4NSRQ3T.mjs} +218 -147
  55. package/dist/{chunk-GYMYRIZP.mjs → chunk-LBTHZSBT.mjs} +2 -2
  56. package/dist/{chunk-AMQZRHEZ.mjs → chunk-LQULK2E3.mjs} +5 -5
  57. package/dist/{chunk-YJG55G2H.mjs → chunk-LR6LHDP3.mjs} +5 -5
  58. package/dist/{chunk-7PV3IWCN.mjs → chunk-M4VYX2PV.mjs} +19 -1
  59. package/dist/{chunk-P76HMUI6.mjs → chunk-MDUKXXIL.mjs} +2 -2
  60. package/dist/{chunk-LV35NGVG.mjs → chunk-N6Q5IPKT.mjs} +9 -9
  61. package/dist/{chunk-DOEO3CDL.mjs → chunk-NB3ZL36B.mjs} +1 -1
  62. package/dist/{chunk-XREGSKX3.mjs → chunk-NOOEKOWY.mjs} +5 -5
  63. package/dist/{chunk-NL3ZO62D.mjs → chunk-NT4FX27K.mjs} +1 -1
  64. package/dist/{chunk-QZ4RE6NA.mjs → chunk-NTYQWVLI.mjs} +6 -6
  65. package/dist/{chunk-ERGGHC2V.mjs → chunk-OEOOYMC2.mjs} +2 -2
  66. package/dist/{chunk-4GAWMKMI.mjs → chunk-OIKBW2QD.mjs} +291 -54
  67. package/dist/{chunk-DUJTAXMH.mjs → chunk-OKTJFDPN.mjs} +6 -6
  68. package/dist/chunk-OLKMCXAR.mjs +1219 -0
  69. package/dist/{chunk-EI5F6FMT.mjs → chunk-OWFQSXVD.mjs} +3 -3
  70. package/dist/{chunk-6DZEXFNB.mjs → chunk-P2N2PEFY.mjs} +3 -3
  71. package/dist/{chunk-NSLMILBT.mjs → chunk-P7CEBZM6.mjs} +2 -2
  72. package/dist/{chunk-7S5AESZO.mjs → chunk-PNRUH7JY.mjs} +6 -6
  73. package/dist/{chunk-ZU4NV6RG.mjs → chunk-PNSYFE3K.mjs} +2 -2
  74. package/dist/{chunk-JKGDCQTZ.mjs → chunk-QTRSCVQ3.mjs} +5 -5
  75. package/dist/{chunk-ABFDMHOR.mjs → chunk-QX7IFQSF.mjs} +5 -5
  76. package/dist/{chunk-CFMQP5QS.mjs → chunk-QXKGOMUX.mjs} +6 -6
  77. package/dist/{chunk-NQPOYKAQ.mjs → chunk-R2ON6CAN.mjs} +2 -2
  78. package/dist/{chunk-DBHJ5KC3.mjs → chunk-R4HCRDU5.mjs} +1 -1
  79. package/dist/{chunk-EWRB4PAD.mjs → chunk-RCAOCHWA.mjs} +14 -14
  80. package/dist/{chunk-EFRENWEJ.mjs → chunk-RSUIPKGX.mjs} +2 -2
  81. package/dist/{chunk-DGHAXJBN.mjs → chunk-S2FKV4M5.mjs} +5 -5
  82. package/dist/{chunk-RGU7HOEC.mjs → chunk-SET2ANTY.mjs} +5 -7
  83. package/dist/chunk-SFH2NJEJ.mjs +47 -0
  84. package/dist/{chunk-6AW4KJHE.mjs → chunk-SIVYAI3M.mjs} +12 -12
  85. package/dist/{chunk-5FQIKDKP.mjs → chunk-THVO2N47.mjs} +8 -8
  86. package/dist/{chunk-JMHR3YGZ.mjs → chunk-TLAWKTSA.mjs} +3 -3
  87. package/dist/{chunk-HVY6KCCF.mjs → chunk-TOWTPLRC.mjs} +68 -72
  88. package/dist/{chunk-6JQFUE5I.mjs → chunk-UALR6JGV.mjs} +2 -2
  89. package/dist/{chunk-MLNEWRWV.mjs → chunk-UJZ4UHWI.mjs} +10 -15
  90. package/dist/{chunk-MARPPFOJ.mjs → chunk-UNACI2YK.mjs} +2 -2
  91. package/dist/{chunk-3NCUZIFP.mjs → chunk-V6XGXYCJ.mjs} +7 -7
  92. package/dist/chunk-VB5M6OZQ.mjs +57 -0
  93. package/dist/{chunk-5IS7G74I.mjs → chunk-VY5NEUP7.mjs} +6 -6
  94. package/dist/{chunk-JHJHG4GO.mjs → chunk-WE4YKBDE.mjs} +2 -2
  95. package/dist/{chunk-BKNFWEH2.mjs → chunk-WL6WVV47.mjs} +3 -3
  96. package/dist/{chunk-FWCSY2DS.mjs → chunk-WNQUEZJF.mjs} +22 -1
  97. package/dist/{chunk-2Y7YJKPE.mjs → chunk-WZ6UJCBL.mjs} +1 -1
  98. package/dist/{chunk-UMTOX62O.mjs → chunk-XYPW2XA5.mjs} +13 -10
  99. package/dist/chunk-Y2MTAVAK.mjs +34 -0
  100. package/dist/{chunk-6CR5N2JW.mjs → chunk-YCWLFG27.mjs} +6 -6
  101. package/dist/{chunk-PU4YZQXV.mjs → chunk-YE67AALL.mjs} +12 -12
  102. package/dist/{chunk-M3FV7LOK.mjs → chunk-YEWNFK5S.mjs} +6 -1
  103. package/dist/{chunk-R3VSPKNP.mjs → chunk-YIZHS72Z.mjs} +11 -12
  104. package/dist/{chunk-7PYJD5JI.mjs → chunk-ZEDMKQK2.mjs} +2 -2
  105. package/dist/{chunk-N2PT566P.mjs → chunk-ZFCDYW6N.mjs} +4 -4
  106. package/dist/chunk-ZGQIVGIN.mjs +57 -0
  107. package/dist/{chunk-Q2BGOAMG.mjs → chunk-ZKWXDQDG.mjs} +4 -4
  108. package/dist/{chunk-GHC7LLUX.mjs → chunk-ZOWL2L5J.mjs} +5 -5
  109. package/dist/components/ui/accordion.mjs +3 -3
  110. package/dist/components/ui/add-column-modal.js +2 -2
  111. package/dist/components/ui/add-column-modal.mjs +10 -10
  112. package/dist/components/ui/add-lead-modal.js +424 -82
  113. package/dist/components/ui/add-lead-modal.mjs +12 -9
  114. package/dist/components/ui/advisor-card.js +2 -2
  115. package/dist/components/ui/advisor-card.mjs +8 -8
  116. package/dist/components/ui/ai-assistant-drawer.js +2 -2
  117. package/dist/components/ui/ai-assistant-drawer.mjs +9 -9
  118. package/dist/components/ui/ai-builder.js +958 -0
  119. package/dist/components/ui/ai-builder.mjs +25 -0
  120. package/dist/components/ui/ai-conversations.js +2045 -0
  121. package/dist/components/ui/ai-conversations.mjs +41 -0
  122. package/dist/components/ui/alert-dialog.js +2 -2
  123. package/dist/components/ui/alert-dialog.mjs +5 -5
  124. package/dist/components/ui/alert.mjs +3 -3
  125. package/dist/components/ui/appointment-action-dialogs.js +19 -3
  126. package/dist/components/ui/appointment-action-dialogs.mjs +15 -14
  127. package/dist/components/ui/appointment-availability-settings.js +181 -111
  128. package/dist/components/ui/appointment-availability-settings.mjs +20 -18
  129. package/dist/components/ui/appointment-book-dialog.js +113 -24
  130. package/dist/components/ui/appointment-book-dialog.mjs +21 -20
  131. package/dist/components/ui/appointment-calendar-view.js +19 -3
  132. package/dist/components/ui/appointment-calendar-view.mjs +10 -9
  133. package/dist/components/ui/appointment-detail-sheet.js +19 -3
  134. package/dist/components/ui/appointment-detail-sheet.mjs +18 -17
  135. package/dist/components/ui/appointment-gmail-connect.js +49 -89
  136. package/dist/components/ui/appointment-gmail-connect.mjs +8 -9
  137. package/dist/components/ui/appointment-mini-card.js +2 -2
  138. package/dist/components/ui/appointment-mini-card.mjs +6 -6
  139. package/dist/components/ui/appointment-time-slot-picker.mjs +6 -6
  140. package/dist/components/ui/appointment-upcoming-card.js +19 -3
  141. package/dist/components/ui/appointment-upcoming-card.mjs +15 -14
  142. package/dist/components/ui/auth-logo.js +95 -0
  143. package/dist/components/ui/auth-logo.mjs +8 -0
  144. package/dist/components/ui/auth-page-layout.js +108 -0
  145. package/dist/components/ui/auth-page-layout.mjs +8 -0
  146. package/dist/components/ui/avatar.mjs +3 -3
  147. package/dist/components/ui/backoffice-alert-history-chart.js +2 -2
  148. package/dist/components/ui/backoffice-alert-history-chart.mjs +9 -9
  149. package/dist/components/ui/backoffice-alerts-chart.js +2 -2
  150. package/dist/components/ui/backoffice-alerts-chart.mjs +11 -11
  151. package/dist/components/ui/backoffice-connections-chart.js +2 -2
  152. package/dist/components/ui/backoffice-connections-chart.mjs +11 -11
  153. package/dist/components/ui/backoffice-contact-history-chart.js +2 -2
  154. package/dist/components/ui/backoffice-contact-history-chart.mjs +9 -9
  155. package/dist/components/ui/badge.mjs +4 -4
  156. package/dist/components/ui/borrowing-capacity-line-chart.js +145 -132
  157. package/dist/components/ui/borrowing-capacity-line-chart.mjs +9 -9
  158. package/dist/components/ui/button.js +2 -2
  159. package/dist/components/ui/button.mjs +4 -4
  160. package/dist/components/ui/calendar.js +17 -3
  161. package/dist/components/ui/calendar.mjs +6 -5
  162. package/dist/components/ui/card.mjs +3 -3
  163. package/dist/components/ui/cash-balance-line-chart.js +157 -152
  164. package/dist/components/ui/cash-balance-line-chart.mjs +9 -9
  165. package/dist/components/ui/cashflow-bar-chart.js +2 -2
  166. package/dist/components/ui/cashflow-bar-chart.mjs +9 -9
  167. package/dist/components/ui/chat-widget-primitives.js +573 -0
  168. package/dist/components/ui/chat-widget-primitives.mjs +21 -0
  169. package/dist/components/ui/chat-widget.js +1268 -0
  170. package/dist/components/ui/chat-widget.mjs +29 -0
  171. package/dist/components/ui/checkbox.mjs +3 -3
  172. package/dist/components/ui/chip.js +2 -2
  173. package/dist/components/ui/chip.mjs +6 -6
  174. package/dist/components/ui/color-picker.js +2 -2
  175. package/dist/components/ui/color-picker.mjs +7 -7
  176. package/dist/components/ui/combobox.mjs +3 -3
  177. package/dist/components/ui/data-table.js +2 -2
  178. package/dist/components/ui/data-table.mjs +12 -12
  179. package/dist/components/ui/date-picker.js +22 -6
  180. package/dist/components/ui/date-picker.mjs +9 -8
  181. package/dist/components/ui/dialog.js +2 -2
  182. package/dist/components/ui/dialog.mjs +5 -5
  183. package/dist/components/ui/document-checklist-template.js +630 -0
  184. package/dist/components/ui/document-checklist-template.mjs +15 -0
  185. package/dist/components/ui/drawer.js +2 -2
  186. package/dist/components/ui/drawer.mjs +3 -3
  187. package/dist/components/ui/dropdown-menu.mjs +3 -3
  188. package/dist/components/ui/empty.mjs +3 -3
  189. package/dist/components/ui/expense-bar-chart.js +2 -2
  190. package/dist/components/ui/expense-bar-chart.mjs +9 -9
  191. package/dist/components/ui/field.mjs +5 -5
  192. package/dist/components/ui/financial-cards.js +431 -291
  193. package/dist/components/ui/financial-cards.mjs +10 -9
  194. package/dist/components/ui/financial-drawers.js +4 -4
  195. package/dist/components/ui/financial-drawers.mjs +8 -8
  196. package/dist/components/ui/financial-primitives.mjs +3 -3
  197. package/dist/components/ui/financial-sections.js +8 -9
  198. package/dist/components/ui/financial-sections.mjs +12 -12
  199. package/dist/components/ui/form-primitives.mjs +8 -8
  200. package/dist/components/ui/income-bar-chart.js +2 -2
  201. package/dist/components/ui/income-bar-chart.mjs +9 -9
  202. package/dist/components/ui/input-group.js +2 -2
  203. package/dist/components/ui/input-group.mjs +7 -7
  204. package/dist/components/ui/input-otp.mjs +3 -3
  205. package/dist/components/ui/input.mjs +3 -3
  206. package/dist/components/ui/kanban-column.js +19 -23
  207. package/dist/components/ui/kanban-column.mjs +14 -14
  208. package/dist/components/ui/label.mjs +3 -3
  209. package/dist/components/ui/onboarding-layout.js +476 -0
  210. package/dist/components/ui/onboarding-layout.mjs +11 -0
  211. package/dist/components/ui/opportunity-card.js +2 -2
  212. package/dist/components/ui/opportunity-card.mjs +12 -12
  213. package/dist/components/ui/opportunity-edit-modals.js +22 -6
  214. package/dist/components/ui/opportunity-edit-modals.mjs +21 -20
  215. package/dist/components/ui/opportunity-summary-tab.js +991 -674
  216. package/dist/components/ui/opportunity-summary-tab.mjs +26 -26
  217. package/dist/components/ui/page-header.mjs +3 -3
  218. package/dist/components/ui/page-top-bar.mjs +3 -3
  219. package/dist/components/ui/pagination.js +2 -2
  220. package/dist/components/ui/pagination.mjs +6 -6
  221. package/dist/components/ui/password-strength-tooltip.js +197 -0
  222. package/dist/components/ui/password-strength-tooltip.mjs +11 -0
  223. package/dist/components/ui/pipeline-alerts.mjs +3 -3
  224. package/dist/components/ui/pipeline-board.js +19 -23
  225. package/dist/components/ui/pipeline-board.mjs +18 -18
  226. package/dist/components/ui/pipeline-chart.js +12 -6
  227. package/dist/components/ui/pipeline-chart.mjs +4 -3
  228. package/dist/components/ui/pipeline-dialogs.js +28 -12
  229. package/dist/components/ui/pipeline-dialogs.mjs +14 -13
  230. package/dist/components/ui/pipeline-primitives.mjs +6 -6
  231. package/dist/components/ui/popover.mjs +3 -3
  232. package/dist/components/ui/progress.mjs +3 -3
  233. package/dist/components/ui/property-cashflow-doughnut-chart.js +2 -2
  234. package/dist/components/ui/property-cashflow-doughnut-chart.mjs +9 -9
  235. package/dist/components/ui/property-debt-equity-doughnut-chart.js +2 -2
  236. package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +9 -9
  237. package/dist/components/ui/property-mobile-estimate-line-chart.js +2 -2
  238. package/dist/components/ui/property-mobile-estimate-line-chart.mjs +9 -9
  239. package/dist/components/ui/radio-group.mjs +3 -3
  240. package/dist/components/ui/select.mjs +3 -3
  241. package/dist/components/ui/separator.mjs +3 -3
  242. package/dist/components/ui/sheet.mjs +3 -3
  243. package/dist/components/ui/sidebar-nav.js +7 -9
  244. package/dist/components/ui/sidebar-nav.mjs +7 -7
  245. package/dist/components/ui/skeleton.mjs +3 -3
  246. package/dist/components/ui/slider.mjs +3 -3
  247. package/dist/components/ui/sonner.mjs +2 -2
  248. package/dist/components/ui/spinner.mjs +3 -3
  249. package/dist/components/ui/stage-timeline.mjs +10 -10
  250. package/dist/components/ui/stepper.mjs +3 -3
  251. package/dist/components/ui/switch.mjs +3 -3
  252. package/dist/components/ui/table.mjs +3 -3
  253. package/dist/components/ui/tabs.mjs +3 -3
  254. package/dist/components/ui/textarea.mjs +3 -3
  255. package/dist/components/ui/toggle-group.mjs +4 -4
  256. package/dist/components/ui/toggle.mjs +3 -3
  257. package/dist/components/ui/tooltip.mjs +3 -3
  258. package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +2 -2
  259. package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +9 -9
  260. package/dist/components/ui/transactions-income-expense-bar-chart.js +2 -2
  261. package/dist/components/ui/transactions-income-expense-bar-chart.mjs +9 -9
  262. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +2 -2
  263. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +9 -9
  264. package/dist/components/ui/two-fa-setup-form.js +612 -0
  265. package/dist/components/ui/two-fa-setup-form.mjs +16 -0
  266. package/dist/components/ui/upload-card.js +187 -0
  267. package/dist/components/ui/upload-card.mjs +10 -0
  268. package/dist/components/ui/video-background.js +118 -0
  269. package/dist/components/ui/video-background.mjs +8 -0
  270. package/dist/index.js +12765 -9400
  271. package/dist/index.mjs +341 -245
  272. package/dist/lib/colors.mjs +1 -1
  273. package/dist/lib/theme-provider.mjs +1 -1
  274. package/dist/lib/typography.mjs +2 -2
  275. package/dist/lib/utils.js +8 -2
  276. package/dist/lib/utils.mjs +6 -4
  277. package/dist/styles.css +1 -1
  278. package/package.json +61 -1
  279. package/src/components/index.tsx +126 -1
  280. package/src/components/ui/add-lead-modal.tsx +101 -142
  281. package/src/components/ui/ai-builder.tsx +560 -0
  282. package/src/components/ui/ai-conversations.tsx +1690 -0
  283. package/src/components/ui/appointment-availability-settings.tsx +152 -101
  284. package/src/components/ui/appointment-book-dialog.tsx +138 -24
  285. package/src/components/ui/appointment-calendar-view.tsx +2 -3
  286. package/src/components/ui/appointment-gmail-connect.tsx +23 -42
  287. package/src/components/ui/auth-logo.tsx +50 -0
  288. package/src/components/ui/auth-page-layout.tsx +59 -0
  289. package/src/components/ui/borrowing-capacity-line-chart.tsx +10 -8
  290. package/src/components/ui/button.tsx +2 -2
  291. package/src/components/ui/calendar.tsx +2 -1
  292. package/src/components/ui/cash-balance-line-chart.tsx +10 -14
  293. package/src/components/ui/chart-shared.tsx +10 -0
  294. package/src/components/ui/chat-widget-primitives.tsx +336 -0
  295. package/src/components/ui/chat-widget.tsx +822 -0
  296. package/src/components/ui/document-checklist-template.tsx +264 -0
  297. package/src/components/ui/drawer.tsx +2 -2
  298. package/src/components/ui/financial-cards.tsx +176 -78
  299. package/src/components/ui/financial-drawers.tsx +2 -2
  300. package/src/components/ui/financial-sections.tsx +1 -1
  301. package/src/components/ui/kanban-column.tsx +2 -5
  302. package/src/components/ui/onboarding-layout.tsx +109 -0
  303. package/src/components/ui/opportunity-summary-tab.tsx +469 -142
  304. package/src/components/ui/password-strength-tooltip.tsx +70 -0
  305. package/src/components/ui/pipeline-chart.tsx +2 -6
  306. package/src/components/ui/sidebar-nav.tsx +2 -15
  307. package/src/components/ui/two-fa-setup-form.tsx +229 -0
  308. package/src/components/ui/upload-card.tsx +98 -0
  309. package/src/components/ui/video-background.tsx +55 -0
  310. package/src/lib/format-date.ts +26 -0
  311. package/src/lib/utils.ts +11 -0
  312. package/src/styles/styles-css.ts +1 -1
  313. package/tsup.config.ts +13 -0
@@ -0,0 +1,630 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+
59
+ // src/components/ui/document-checklist-template.tsx
60
+ var document_checklist_template_exports = {};
61
+ __export(document_checklist_template_exports, {
62
+ DocumentChecklistTemplate: () => DocumentChecklistTemplate
63
+ });
64
+ module.exports = __toCommonJS(document_checklist_template_exports);
65
+ var import_react4 = require("react");
66
+ var import_lucide_react3 = require("lucide-react");
67
+
68
+ // src/components/ui/button.tsx
69
+ var import_react = require("react");
70
+ var import_class_variance_authority = require("class-variance-authority");
71
+ var import_lucide_react = require("lucide-react");
72
+
73
+ // src/lib/utils.ts
74
+ var import_clsx = require("clsx");
75
+ var import_tailwind_merge = require("tailwind-merge");
76
+ var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
77
+ extend: {
78
+ classGroups: {
79
+ "font-size": [
80
+ {
81
+ text: [
82
+ "display-large",
83
+ "display-medium",
84
+ "display-small",
85
+ "h1",
86
+ "h2",
87
+ "h3",
88
+ "h4",
89
+ "h5",
90
+ "h6",
91
+ "body-large",
92
+ "body-medium",
93
+ "body-small",
94
+ "label-large",
95
+ "label-medium",
96
+ "label-small",
97
+ "button",
98
+ "button-xs",
99
+ "caption",
100
+ "overline",
101
+ "code"
102
+ ]
103
+ }
104
+ ]
105
+ }
106
+ }
107
+ });
108
+ function cn(...inputs) {
109
+ return twMerge((0, import_clsx.clsx)(inputs));
110
+ }
111
+
112
+ // src/lib/slot.tsx
113
+ var React = __toESM(require("react"));
114
+ function mergeRefs(...refs) {
115
+ return (value) => {
116
+ for (const ref of refs) {
117
+ if (typeof ref === "function") ref(value);
118
+ else if (ref !== null)
119
+ ref.current = value;
120
+ }
121
+ };
122
+ }
123
+ var Slot = React.forwardRef(
124
+ (_a, forwardedRef) => {
125
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
126
+ const child = React.Children.only(children);
127
+ if (!React.isValidElement(child)) return null;
128
+ const childProps = child.props;
129
+ const merged = __spreadValues({}, props);
130
+ for (const key of Object.keys(childProps)) {
131
+ if (key === "className") {
132
+ merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
133
+ } else if (key === "style") {
134
+ merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
135
+ } else if (key.startsWith("on") && typeof childProps[key] === "function") {
136
+ const parentHandler = props[key];
137
+ if (typeof parentHandler === "function") {
138
+ merged[key] = (...args) => {
139
+ childProps[key](...args);
140
+ parentHandler(...args);
141
+ };
142
+ } else {
143
+ merged[key] = childProps[key];
144
+ }
145
+ } else {
146
+ merged[key] = childProps[key];
147
+ }
148
+ }
149
+ const childRef = child.ref;
150
+ merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
151
+ return React.cloneElement(
152
+ child,
153
+ merged
154
+ );
155
+ }
156
+ );
157
+ Slot.displayName = "Slot";
158
+
159
+ // src/components/ui/button.tsx
160
+ var import_jsx_runtime = require("react/jsx-runtime");
161
+ var buttonVariants = (0, import_class_variance_authority.cva)(
162
+ "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 font-sans text-button whitespace-nowrap transition-all active:scale-[0.98] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
163
+ {
164
+ variants: {
165
+ variant: {
166
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
167
+ secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
168
+ destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
169
+ outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:border-border focus-visible:ring-border/50 dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
170
+ "outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
171
+ "outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:border-brand-secondary focus-visible:ring-brand-secondary/30",
172
+ ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
173
+ link: "text-primary underline-offset-4 hover:underline"
174
+ },
175
+ size: {
176
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
177
+ xs: "h-6 gap-1 px-2 text-button-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
178
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
179
+ lg: "h-10 px-6 has-[>svg]:px-4",
180
+ icon: "size-9",
181
+ "icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
182
+ "icon-sm": "size-8",
183
+ "icon-lg": "size-10"
184
+ }
185
+ },
186
+ defaultVariants: {
187
+ variant: "default",
188
+ size: "default"
189
+ }
190
+ }
191
+ );
192
+ var Button = (0, import_react.forwardRef)(function Button2(_a, ref) {
193
+ var _b = _a, {
194
+ className,
195
+ variant,
196
+ size,
197
+ asChild = false,
198
+ loading = false,
199
+ disabled,
200
+ type = "button",
201
+ children
202
+ } = _b, props = __objRest(_b, [
203
+ "className",
204
+ "variant",
205
+ "size",
206
+ "asChild",
207
+ "loading",
208
+ "disabled",
209
+ "type",
210
+ "children"
211
+ ]);
212
+ const Comp = asChild ? Slot : "button";
213
+ const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
214
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
215
+ Comp,
216
+ __spreadProps(__spreadValues({
217
+ className: cn(buttonVariants({ variant, size, className })),
218
+ "data-size": size,
219
+ "data-slot": "button",
220
+ "data-variant": variant,
221
+ disabled: loading || disabled,
222
+ ref,
223
+ type
224
+ }, props), {
225
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
226
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
227
+ !isIconOnly && children
228
+ ] }) : children
229
+ })
230
+ );
231
+ });
232
+
233
+ // src/components/ui/input.tsx
234
+ var import_jsx_runtime2 = require("react/jsx-runtime");
235
+ function Input(_a) {
236
+ var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
237
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
238
+ "input",
239
+ __spreadValues({
240
+ className: cn(
241
+ "h-9 w-full min-w-0 border border-input bg-transparent px-3 py-1 text-body-medium font-sans shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-label-medium file:text-foreground placeholder:font-normal placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30",
242
+ "focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/20",
243
+ "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
244
+ className
245
+ ),
246
+ "data-slot": "input",
247
+ type
248
+ }, props)
249
+ );
250
+ }
251
+
252
+ // src/components/ui/switch.tsx
253
+ var import_react2 = require("react");
254
+ var import_switch = require("@base-ui/react/switch");
255
+ var import_jsx_runtime3 = require("react/jsx-runtime");
256
+ function Switch(_a) {
257
+ var _b = _a, {
258
+ className,
259
+ size = "default"
260
+ } = _b, props = __objRest(_b, [
261
+ "className",
262
+ "size"
263
+ ]);
264
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
265
+ import_switch.Switch.Root,
266
+ __spreadProps(__spreadValues({
267
+ className: cn(
268
+ "peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none",
269
+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
270
+ "disabled:cursor-not-allowed disabled:opacity-50",
271
+ "data-[size=default]:h-[1.15rem] data-[size=default]:w-8",
272
+ "data-[size=sm]:h-3.5 data-[size=sm]:w-6",
273
+ "data-checked:bg-primary data-unchecked:bg-input",
274
+ "aria-invalid:data-checked:bg-destructive aria-invalid:border-destructive",
275
+ "dark:data-unchecked:bg-input/80",
276
+ className
277
+ ),
278
+ "data-size": size,
279
+ "data-slot": "switch"
280
+ }, props), {
281
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
282
+ import_switch.Switch.Thumb,
283
+ {
284
+ className: cn(
285
+ "pointer-events-none block rounded-full bg-background ring-0 transition-transform",
286
+ "group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3",
287
+ "data-checked:translate-x-[calc(100%-2px)] data-unchecked:translate-x-0",
288
+ "dark:data-checked:bg-primary-foreground dark:data-unchecked:bg-foreground"
289
+ ),
290
+ "data-slot": "switch-thumb"
291
+ }
292
+ )
293
+ })
294
+ );
295
+ }
296
+
297
+ // src/components/ui/select.tsx
298
+ var import_lucide_react2 = require("lucide-react");
299
+ var import_select = require("@base-ui/react/select");
300
+
301
+ // src/lib/theme-provider.tsx
302
+ var import_react3 = require("react");
303
+ var import_jsx_runtime4 = require("react/jsx-runtime");
304
+ var ThemeVarsContext = (0, import_react3.createContext)({});
305
+ function useThemeVars() {
306
+ return (0, import_react3.useContext)(ThemeVarsContext);
307
+ }
308
+
309
+ // src/components/ui/select.tsx
310
+ var import_jsx_runtime5 = require("react/jsx-runtime");
311
+ function Select(_a) {
312
+ var props = __objRest(_a, []);
313
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_select.Select.Root, __spreadValues({ "data-slot": "select" }, props));
314
+ }
315
+ function SelectValue(_a) {
316
+ var props = __objRest(_a, []);
317
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_select.Select.Value, __spreadValues({ "data-slot": "select-value" }, props));
318
+ }
319
+ function SelectTrigger(_a) {
320
+ var _b = _a, {
321
+ className,
322
+ size = "default",
323
+ children
324
+ } = _b, props = __objRest(_b, [
325
+ "className",
326
+ "size",
327
+ "children"
328
+ ]);
329
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
330
+ import_select.Select.Trigger,
331
+ __spreadProps(__spreadValues({
332
+ className: cn(
333
+ "flex w-fit items-center justify-between gap-2 border border-input bg-transparent px-3 py-2 text-body-medium whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/20 data-popup-open:border-primary data-popup-open:ring-[3px] data-popup-open:ring-primary/20 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:font-normal data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
334
+ className
335
+ ),
336
+ "data-size": size,
337
+ "data-slot": "select-trigger"
338
+ }, props), {
339
+ children: [
340
+ children,
341
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_select.Select.Icon, { className: "transition-transform duration-200 data-popup-open:rotate-180", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.ChevronDownIcon, { className: "size-4 opacity-50" }) })
342
+ ]
343
+ })
344
+ );
345
+ }
346
+ function SelectContent(_a) {
347
+ var _b = _a, {
348
+ className,
349
+ children,
350
+ style
351
+ } = _b, props = __objRest(_b, [
352
+ "className",
353
+ "children",
354
+ "style"
355
+ ]);
356
+ const themeVars = useThemeVars();
357
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_select.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
358
+ import_select.Select.Positioner,
359
+ {
360
+ className: "z-[200]",
361
+ align: "start",
362
+ alignItemWithTrigger: false,
363
+ sideOffset: 4,
364
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
365
+ import_select.Select.Popup,
366
+ __spreadProps(__spreadValues({
367
+ className: cn(
368
+ "relative max-h-[var(--available-height)] min-w-[var(--anchor-width,8rem)] overflow-x-hidden overflow-y-auto border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
369
+ className
370
+ ),
371
+ "data-slot": "select-content",
372
+ style: __spreadValues(__spreadValues({}, themeVars), style)
373
+ }, props), {
374
+ children: [
375
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectScrollUpButton, {}),
376
+ children,
377
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectScrollDownButton, {})
378
+ ]
379
+ })
380
+ )
381
+ }
382
+ ) });
383
+ }
384
+ function SelectItem(_a) {
385
+ var _b = _a, {
386
+ className,
387
+ children
388
+ } = _b, props = __objRest(_b, [
389
+ "className",
390
+ "children"
391
+ ]);
392
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
393
+ import_select.Select.Item,
394
+ __spreadProps(__spreadValues({
395
+ className: cn(
396
+ "relative flex w-full cursor-default items-center gap-2 py-1.5 pr-8 pl-2 text-body-small outline-hidden select-none data-highlighted:bg-primary/5 data-highlighted:text-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
397
+ className
398
+ ),
399
+ "data-slot": "select-item"
400
+ }, props), {
401
+ children: [
402
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
403
+ "span",
404
+ {
405
+ className: "absolute right-2 flex size-3.5 items-center justify-center",
406
+ "data-slot": "select-item-indicator",
407
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_select.Select.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.CheckIcon, { className: "size-4" }) })
408
+ }
409
+ ),
410
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_select.Select.ItemText, { children })
411
+ ]
412
+ })
413
+ );
414
+ }
415
+ function SelectScrollUpButton(_a) {
416
+ var _b = _a, {
417
+ className
418
+ } = _b, props = __objRest(_b, [
419
+ "className"
420
+ ]);
421
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
422
+ import_select.Select.ScrollUpArrow,
423
+ __spreadProps(__spreadValues({
424
+ className: cn(
425
+ "flex cursor-default items-center justify-center py-1",
426
+ className
427
+ ),
428
+ "data-slot": "select-scroll-up-button"
429
+ }, props), {
430
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.ChevronUpIcon, { className: "size-4" })
431
+ })
432
+ );
433
+ }
434
+ function SelectScrollDownButton(_a) {
435
+ var _b = _a, {
436
+ className
437
+ } = _b, props = __objRest(_b, [
438
+ "className"
439
+ ]);
440
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
441
+ import_select.Select.ScrollDownArrow,
442
+ __spreadProps(__spreadValues({
443
+ className: cn(
444
+ "flex cursor-default items-center justify-center py-1",
445
+ className
446
+ ),
447
+ "data-slot": "select-scroll-down-button"
448
+ }, props), {
449
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.ChevronDownIcon, { className: "size-4" })
450
+ })
451
+ );
452
+ }
453
+
454
+ // src/components/ui/document-checklist-template.tsx
455
+ var import_jsx_runtime6 = require("react/jsx-runtime");
456
+ var DOCUMENT_TYPES = [
457
+ "Income Verification",
458
+ "Bank Statements",
459
+ "Rental Income",
460
+ "Property Evidence",
461
+ "Liabilities",
462
+ "Identity",
463
+ "Employment Contract",
464
+ "Notice of Assessment",
465
+ "Contract of Sale",
466
+ "Savings History"
467
+ ];
468
+ function DocumentChecklistTemplate({
469
+ categories: initial = [],
470
+ onChange,
471
+ onSave,
472
+ onCancel,
473
+ className
474
+ }) {
475
+ const [categories, setCategories] = (0, import_react4.useState)(
476
+ () => initial.map((c) => {
477
+ var _a;
478
+ return __spreadProps(__spreadValues({}, c), {
479
+ custom: (_a = c.custom) != null ? _a : !DOCUMENT_TYPES.includes(c.name)
480
+ });
481
+ })
482
+ );
483
+ const [isDirty, setIsDirty] = (0, import_react4.useState)(false);
484
+ function update(next) {
485
+ setCategories(next);
486
+ setIsDirty(true);
487
+ onChange == null ? void 0 : onChange(next);
488
+ }
489
+ function handleSelectType(id, value) {
490
+ if (value === "__custom__") {
491
+ update(
492
+ categories.map(
493
+ (c) => c.id === id ? __spreadProps(__spreadValues({}, c), { name: "", custom: true }) : c
494
+ )
495
+ );
496
+ } else {
497
+ update(
498
+ categories.map(
499
+ (c) => c.id === id ? __spreadProps(__spreadValues({}, c), { name: value, custom: false }) : c
500
+ )
501
+ );
502
+ }
503
+ }
504
+ function handleCustomName(id, name) {
505
+ update(categories.map((c) => c.id === id ? __spreadProps(__spreadValues({}, c), { name }) : c));
506
+ }
507
+ function handleToggle(id, field) {
508
+ update(
509
+ categories.map((c) => c.id === id ? __spreadProps(__spreadValues({}, c), { [field]: !c[field] }) : c)
510
+ );
511
+ }
512
+ function handleDelete(id) {
513
+ update(categories.filter((c) => c.id !== id));
514
+ }
515
+ function handleAdd() {
516
+ update([
517
+ ...categories,
518
+ {
519
+ id: `cat-${Date.now()}`,
520
+ name: "",
521
+ requiredMain: true,
522
+ requiredCo: false,
523
+ custom: false
524
+ }
525
+ ]);
526
+ }
527
+ const COLS = "grid-cols-[20px_1fr_64px_64px_32px]";
528
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: cn("flex flex-col", className), children: [
529
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "shrink-0 border-b border-border px-6 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-label-large text-foreground", children: "Document Checklist Template" }) }),
530
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "shrink-0 border-b border-border px-6 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-body-small text-muted-foreground", children: "Define the document categories required for loan applications. Set required status separately for Main and Co-applicants." }) }),
531
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col overflow-y-auto", children: [
532
+ categories.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
533
+ "div",
534
+ {
535
+ className: cn(
536
+ "grid shrink-0 items-center gap-3 border-b border-border bg-muted/30 px-6 py-2",
537
+ COLS
538
+ ),
539
+ children: [
540
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", {}),
541
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-xs font-medium text-muted-foreground", children: "Category Name" }),
542
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-center text-xs font-medium text-muted-foreground", children: "Main" }),
543
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-center text-xs font-medium text-muted-foreground", children: "Co" }),
544
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", {})
545
+ ]
546
+ }
547
+ ),
548
+ categories.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex items-center justify-center py-12 text-sm text-muted-foreground", children: "No categories yet. Add one below." }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "divide-y divide-border", children: categories.map((cat) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
549
+ "div",
550
+ {
551
+ className: cn("grid items-center gap-3 px-6 py-3", COLS),
552
+ children: [
553
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react3.GripVertical, { className: "size-4 shrink-0 text-muted-foreground/30" }),
554
+ cat.custom ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
555
+ Input,
556
+ {
557
+ value: cat.name,
558
+ onChange: (e) => handleCustomName(cat.id, e.target.value),
559
+ placeholder: "Type category name\u2026",
560
+ className: "h-8 text-sm",
561
+ autoFocus: true
562
+ }
563
+ ) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
564
+ Select,
565
+ {
566
+ value: cat.name || "",
567
+ onValueChange: (v) => handleSelectType(cat.id, v),
568
+ children: [
569
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectTrigger, { size: "sm", className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectValue, { placeholder: "Select type\u2026" }) }),
570
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(SelectContent, { children: [
571
+ DOCUMENT_TYPES.map((type) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItem, { value: type, children: type }, type)),
572
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItem, { value: "__custom__", children: "Custom\u2026" })
573
+ ] })
574
+ ]
575
+ }
576
+ ),
577
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
578
+ Switch,
579
+ {
580
+ checked: cat.requiredMain,
581
+ onCheckedChange: () => handleToggle(cat.id, "requiredMain"),
582
+ size: "sm"
583
+ }
584
+ ) }),
585
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
586
+ Switch,
587
+ {
588
+ checked: cat.requiredCo,
589
+ onCheckedChange: () => handleToggle(cat.id, "requiredCo"),
590
+ size: "sm"
591
+ }
592
+ ) }),
593
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
594
+ Button,
595
+ {
596
+ variant: "ghost",
597
+ size: "icon",
598
+ className: "size-8 text-muted-foreground hover:text-destructive",
599
+ onClick: () => handleDelete(cat.id),
600
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react3.Trash2, { className: "size-4" })
601
+ }
602
+ )
603
+ ]
604
+ },
605
+ cat.id
606
+ )) }),
607
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "border-t border-border px-6 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
608
+ Button,
609
+ {
610
+ variant: "outline",
611
+ size: "sm",
612
+ className: "gap-1.5",
613
+ onClick: handleAdd,
614
+ children: [
615
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react3.Plus, { className: "size-4" }),
616
+ "Add Category"
617
+ ]
618
+ }
619
+ ) })
620
+ ] }),
621
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex shrink-0 justify-end gap-2 border-t border-border px-6 py-4", children: [
622
+ onCancel && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Button, { variant: "outline", onClick: onCancel, children: "Cancel" }),
623
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Button, { onClick: () => onSave == null ? void 0 : onSave(categories), disabled: !isDirty, children: "Save" })
624
+ ] })
625
+ ] });
626
+ }
627
+ // Annotate the CommonJS export names for ESM import in node:
628
+ 0 && (module.exports = {
629
+ DocumentChecklistTemplate
630
+ });
@@ -0,0 +1,15 @@
1
+ import {
2
+ DocumentChecklistTemplate
3
+ } from "../../chunk-BOW7U26Y.mjs";
4
+ import "../../chunk-PNSYFE3K.mjs";
5
+ import "../../chunk-ZEDMKQK2.mjs";
6
+ import "../../chunk-LBTHZSBT.mjs";
7
+ import "../../chunk-NOOEKOWY.mjs";
8
+ import "../../chunk-R4HCRDU5.mjs";
9
+ import "../../chunk-FEZKMUCF.mjs";
10
+ import "../../chunk-QOJ2DQD6.mjs";
11
+ import "../../chunk-AFML43VJ.mjs";
12
+ import "../../chunk-WNQUEZJF.mjs";
13
+ export {
14
+ DocumentChecklistTemplate
15
+ };
@@ -167,8 +167,8 @@ function DrawerContent(_a) {
167
167
  // WealthX: no rounded corners (Figma: sharp edges)
168
168
  "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:border-b",
169
169
  "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:border-t",
170
- "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
171
- "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
170
+ "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l",
171
+ "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r",
172
172
  className
173
173
  ),
174
174
  "data-slot": "drawer-content",
@@ -9,11 +9,11 @@ import {
9
9
  DrawerPortal,
10
10
  DrawerTitle,
11
11
  DrawerTrigger
12
- } from "../../chunk-N2PT566P.mjs";
12
+ } from "../../chunk-ZFCDYW6N.mjs";
13
13
  import "../../chunk-FEZKMUCF.mjs";
14
14
  import "../../chunk-QOJ2DQD6.mjs";
15
- import "../../chunk-VLQZANBF.mjs";
16
- import "../../chunk-FWCSY2DS.mjs";
15
+ import "../../chunk-AFML43VJ.mjs";
16
+ import "../../chunk-WNQUEZJF.mjs";
17
17
  export {
18
18
  Drawer,
19
19
  DrawerClose,