@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,573 @@
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/chat-widget-primitives.tsx
60
+ var chat_widget_primitives_exports = {};
61
+ __export(chat_widget_primitives_exports, {
62
+ ChatWidgetHeader: () => ChatWidgetHeader,
63
+ ChatWidgetInputBar: () => ChatWidgetInputBar,
64
+ ChatWidgetLauncher: () => ChatWidgetLauncher,
65
+ ChatWidgetMessage: () => ChatWidgetMessage,
66
+ ChatWidgetTypingIndicator: () => ChatWidgetTypingIndicator
67
+ });
68
+ module.exports = __toCommonJS(chat_widget_primitives_exports);
69
+ var import_lucide_react2 = require("lucide-react");
70
+
71
+ // src/lib/utils.ts
72
+ var import_clsx = require("clsx");
73
+ var import_tailwind_merge = require("tailwind-merge");
74
+ var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
75
+ extend: {
76
+ classGroups: {
77
+ "font-size": [
78
+ {
79
+ text: [
80
+ "display-large",
81
+ "display-medium",
82
+ "display-small",
83
+ "h1",
84
+ "h2",
85
+ "h3",
86
+ "h4",
87
+ "h5",
88
+ "h6",
89
+ "body-large",
90
+ "body-medium",
91
+ "body-small",
92
+ "label-large",
93
+ "label-medium",
94
+ "label-small",
95
+ "button",
96
+ "button-xs",
97
+ "caption",
98
+ "overline",
99
+ "code"
100
+ ]
101
+ }
102
+ ]
103
+ }
104
+ }
105
+ });
106
+ function cn(...inputs) {
107
+ return twMerge((0, import_clsx.clsx)(inputs));
108
+ }
109
+
110
+ // src/components/ui/avatar.tsx
111
+ var import_avatar = require("@base-ui/react/avatar");
112
+ var import_jsx_runtime = require("react/jsx-runtime");
113
+ function Avatar(_a) {
114
+ var _b = _a, {
115
+ className,
116
+ size = "default"
117
+ } = _b, props = __objRest(_b, [
118
+ "className",
119
+ "size"
120
+ ]);
121
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
122
+ import_avatar.Avatar.Root,
123
+ __spreadValues({
124
+ className: cn(
125
+ "group/avatar relative flex size-8 shrink-0 rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",
126
+ className
127
+ ),
128
+ "data-size": size,
129
+ "data-slot": "avatar"
130
+ }, props)
131
+ );
132
+ }
133
+ function AvatarFallback(_a) {
134
+ var _b = _a, {
135
+ className
136
+ } = _b, props = __objRest(_b, [
137
+ "className"
138
+ ]);
139
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
140
+ import_avatar.Avatar.Fallback,
141
+ __spreadValues({
142
+ className: cn(
143
+ "flex size-full items-center justify-center rounded-full overflow-hidden bg-muted text-body-small font-sans text-muted-foreground group-data-[size=sm]/avatar:text-caption",
144
+ className
145
+ ),
146
+ "data-slot": "avatar-fallback"
147
+ }, props)
148
+ );
149
+ }
150
+
151
+ // src/components/ui/badge.tsx
152
+ var import_class_variance_authority = require("class-variance-authority");
153
+
154
+ // src/lib/slot.tsx
155
+ var React = __toESM(require("react"));
156
+ function mergeRefs(...refs) {
157
+ return (value) => {
158
+ for (const ref of refs) {
159
+ if (typeof ref === "function") ref(value);
160
+ else if (ref !== null)
161
+ ref.current = value;
162
+ }
163
+ };
164
+ }
165
+ var Slot = React.forwardRef(
166
+ (_a, forwardedRef) => {
167
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
168
+ const child = React.Children.only(children);
169
+ if (!React.isValidElement(child)) return null;
170
+ const childProps = child.props;
171
+ const merged = __spreadValues({}, props);
172
+ for (const key of Object.keys(childProps)) {
173
+ if (key === "className") {
174
+ merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
175
+ } else if (key === "style") {
176
+ merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
177
+ } else if (key.startsWith("on") && typeof childProps[key] === "function") {
178
+ const parentHandler = props[key];
179
+ if (typeof parentHandler === "function") {
180
+ merged[key] = (...args) => {
181
+ childProps[key](...args);
182
+ parentHandler(...args);
183
+ };
184
+ } else {
185
+ merged[key] = childProps[key];
186
+ }
187
+ } else {
188
+ merged[key] = childProps[key];
189
+ }
190
+ }
191
+ const childRef = child.ref;
192
+ merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
193
+ return React.cloneElement(
194
+ child,
195
+ merged
196
+ );
197
+ }
198
+ );
199
+ Slot.displayName = "Slot";
200
+
201
+ // src/components/ui/badge.tsx
202
+ var import_jsx_runtime2 = require("react/jsx-runtime");
203
+ var badgeVariants = (0, import_class_variance_authority.cva)(
204
+ "inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2.5 py-0.5 text-xs font-medium font-sans whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",
205
+ {
206
+ variants: {
207
+ variant: {
208
+ default: "border-primary/40 bg-primary/10 text-foreground [a&]:hover:bg-primary/15",
209
+ secondary: "border-border bg-muted text-muted-foreground [a&]:hover:bg-muted/80",
210
+ destructive: "border-destructive/40 bg-destructive/10 text-destructive-text focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/15",
211
+ success: "border-success/40 bg-success/10 text-success-text [a&]:hover:bg-success/15",
212
+ warning: "border-warning/40 bg-warning/10 text-warning-text [a&]:hover:bg-warning/15",
213
+ info: "border-info/40 bg-info/10 text-info-text [a&]:hover:bg-info/15",
214
+ outline: "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
215
+ ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
216
+ link: "text-primary underline-offset-4 [a&]:hover:underline"
217
+ }
218
+ },
219
+ defaultVariants: {
220
+ variant: "default"
221
+ }
222
+ }
223
+ );
224
+ function Badge(_a) {
225
+ var _b = _a, {
226
+ className,
227
+ variant = "default",
228
+ asChild = false
229
+ } = _b, props = __objRest(_b, [
230
+ "className",
231
+ "variant",
232
+ "asChild"
233
+ ]);
234
+ const Comp = asChild ? Slot : "span";
235
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
236
+ Comp,
237
+ __spreadValues({
238
+ className: cn(badgeVariants({ variant }), className),
239
+ "data-slot": "badge",
240
+ "data-variant": variant
241
+ }, props)
242
+ );
243
+ }
244
+
245
+ // src/components/ui/button.tsx
246
+ var import_react = require("react");
247
+ var import_class_variance_authority2 = require("class-variance-authority");
248
+ var import_lucide_react = require("lucide-react");
249
+ var import_jsx_runtime3 = require("react/jsx-runtime");
250
+ var buttonVariants = (0, import_class_variance_authority2.cva)(
251
+ "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",
252
+ {
253
+ variants: {
254
+ variant: {
255
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
256
+ secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
257
+ 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",
258
+ 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",
259
+ "outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
260
+ "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",
261
+ ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
262
+ link: "text-primary underline-offset-4 hover:underline"
263
+ },
264
+ size: {
265
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
266
+ xs: "h-6 gap-1 px-2 text-button-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
267
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
268
+ lg: "h-10 px-6 has-[>svg]:px-4",
269
+ icon: "size-9",
270
+ "icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
271
+ "icon-sm": "size-8",
272
+ "icon-lg": "size-10"
273
+ }
274
+ },
275
+ defaultVariants: {
276
+ variant: "default",
277
+ size: "default"
278
+ }
279
+ }
280
+ );
281
+ var Button = (0, import_react.forwardRef)(function Button2(_a, ref) {
282
+ var _b = _a, {
283
+ className,
284
+ variant,
285
+ size,
286
+ asChild = false,
287
+ loading = false,
288
+ disabled,
289
+ type = "button",
290
+ children
291
+ } = _b, props = __objRest(_b, [
292
+ "className",
293
+ "variant",
294
+ "size",
295
+ "asChild",
296
+ "loading",
297
+ "disabled",
298
+ "type",
299
+ "children"
300
+ ]);
301
+ const Comp = asChild ? Slot : "button";
302
+ const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
303
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
304
+ Comp,
305
+ __spreadProps(__spreadValues({
306
+ className: cn(buttonVariants({ variant, size, className })),
307
+ "data-size": size,
308
+ "data-slot": "button",
309
+ "data-variant": variant,
310
+ disabled: loading || disabled,
311
+ ref,
312
+ type
313
+ }, props), {
314
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
315
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
316
+ !isIconOnly && children
317
+ ] }) : children
318
+ })
319
+ );
320
+ });
321
+
322
+ // src/components/ui/input.tsx
323
+ var import_jsx_runtime4 = require("react/jsx-runtime");
324
+ function Input(_a) {
325
+ var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
326
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
327
+ "input",
328
+ __spreadValues({
329
+ className: cn(
330
+ "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",
331
+ "focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/20",
332
+ "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
333
+ className
334
+ ),
335
+ "data-slot": "input",
336
+ type
337
+ }, props)
338
+ );
339
+ }
340
+
341
+ // src/components/ui/chat-widget-primitives.tsx
342
+ var import_jsx_runtime5 = require("react/jsx-runtime");
343
+ function ChatWidgetLauncher({
344
+ isOpen,
345
+ onClick,
346
+ brandColor,
347
+ unreadCount,
348
+ className
349
+ }) {
350
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
351
+ "button",
352
+ {
353
+ type: "button",
354
+ "aria-label": isOpen ? "Close chat" : "Open chat",
355
+ onClick,
356
+ className: cn(
357
+ "relative flex size-14 items-center justify-center shadow-lg transition-all",
358
+ "rounded-full",
359
+ // intentional: circular FAB shape
360
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
361
+ className
362
+ ),
363
+ style: { backgroundColor: brandColor != null ? brandColor : "var(--primary)" },
364
+ children: [
365
+ !isOpen && unreadCount && unreadCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
366
+ Badge,
367
+ {
368
+ variant: "destructive",
369
+ className: "absolute -right-1 -top-1 size-5 justify-center bg-destructive px-0 py-0 text-[10px] font-semibold text-destructive-foreground",
370
+ children: unreadCount > 9 ? "9+" : unreadCount
371
+ }
372
+ ) : null,
373
+ isOpen ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.X, { className: "size-6 text-white" }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.MessageCircle, { className: "size-6 text-white" })
374
+ ]
375
+ }
376
+ );
377
+ }
378
+ function ChatWidgetHeader({
379
+ brokerName,
380
+ subtitle = "Feel free to chat with us",
381
+ gradientFrom,
382
+ gradientTo,
383
+ onMinimize,
384
+ className
385
+ }) {
386
+ const hasGradient = gradientFrom && gradientTo;
387
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
388
+ "div",
389
+ {
390
+ className: cn(
391
+ "flex items-start justify-between px-4 py-3",
392
+ !hasGradient && "bg-primary",
393
+ className
394
+ ),
395
+ style: hasGradient ? {
396
+ background: `linear-gradient(135deg, ${gradientFrom}, ${gradientTo})`
397
+ } : void 0,
398
+ children: [
399
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
400
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-body-large font-semibold text-primary-foreground", children: brokerName }),
401
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-body-small text-primary-foreground/70", children: subtitle })
402
+ ] }),
403
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex items-center gap-1", children: onMinimize && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
404
+ Button,
405
+ {
406
+ variant: "ghost",
407
+ size: "icon-sm",
408
+ "aria-label": "Minimize chat",
409
+ onClick: onMinimize,
410
+ className: "text-primary-foreground/70 hover:bg-primary-foreground/10 hover:text-primary-foreground",
411
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.ChevronDown, { className: "size-4" })
412
+ }
413
+ ) })
414
+ ]
415
+ }
416
+ );
417
+ }
418
+ function ChatWidgetMessage({
419
+ role,
420
+ content,
421
+ timestamp,
422
+ isStreaming,
423
+ className
424
+ }) {
425
+ if (role === "system") {
426
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: cn("flex items-center justify-center py-2", className), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-body-small text-muted-foreground", children: content }) });
427
+ }
428
+ const isLeft = role === "bot" || role === "advisor";
429
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
430
+ "div",
431
+ {
432
+ className: cn(
433
+ "flex gap-2",
434
+ isLeft ? "items-start" : "flex-row-reverse items-start",
435
+ className
436
+ ),
437
+ children: [
438
+ isLeft && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Avatar, { className: "size-7", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
439
+ AvatarFallback,
440
+ {
441
+ className: role === "advisor" ? "bg-primary/15 text-foreground" : void 0,
442
+ children: role === "advisor" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.UserRound, { className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Bot, { className: "size-3.5" })
443
+ }
444
+ ) }),
445
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
446
+ "div",
447
+ {
448
+ className: cn(
449
+ "flex max-w-[80%] flex-col gap-1",
450
+ !isLeft && "items-end"
451
+ ),
452
+ children: [
453
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
454
+ "div",
455
+ {
456
+ className: cn(
457
+ "px-3 py-2 text-body-medium",
458
+ isLeft ? "border border-border bg-card text-card-foreground shadow-sm" : "text-primary-foreground"
459
+ ),
460
+ style: !isLeft ? { backgroundColor: "var(--primary)" } : void 0,
461
+ children: isStreaming ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ChatWidgetTypingIndicator, {}) : content
462
+ }
463
+ ),
464
+ timestamp && !isStreaming && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-[10px] text-muted-foreground", children: timestamp })
465
+ ]
466
+ }
467
+ )
468
+ ]
469
+ }
470
+ );
471
+ }
472
+ function ChatWidgetTypingIndicator({
473
+ className
474
+ }) {
475
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
476
+ "div",
477
+ {
478
+ role: "status",
479
+ "aria-label": "Typing",
480
+ className: cn("flex items-center gap-1 py-0.5", className),
481
+ children: [0, 1, 2].map((i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
482
+ "span",
483
+ {
484
+ className: "size-1.5 animate-bounce rounded-full bg-muted-foreground/60",
485
+ style: { animationDelay: `${i * 0.15}s` },
486
+ "aria-hidden": "true"
487
+ },
488
+ i
489
+ ))
490
+ }
491
+ );
492
+ }
493
+ function ChatWidgetInputBar({
494
+ value,
495
+ onChange,
496
+ onSend,
497
+ disabled,
498
+ placeholder = "Type your message here",
499
+ className
500
+ }) {
501
+ const hasText = value.trim().length > 0;
502
+ const handleKeyDown = (e) => {
503
+ if (e.key === "Enter" && !e.shiftKey && hasText && !disabled) {
504
+ e.preventDefault();
505
+ onSend(value);
506
+ }
507
+ };
508
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
509
+ "div",
510
+ {
511
+ className: cn(
512
+ "flex items-center gap-2 border-t border-border bg-muted/30 px-3 py-2.5",
513
+ className
514
+ ),
515
+ children: [
516
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
517
+ Button,
518
+ {
519
+ variant: "ghost",
520
+ size: "icon-sm",
521
+ "aria-label": "Add emoji",
522
+ disabled,
523
+ className: "shrink-0 text-muted-foreground hover:text-foreground",
524
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Smile, { className: "size-5" })
525
+ }
526
+ ),
527
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
528
+ Button,
529
+ {
530
+ variant: "ghost",
531
+ size: "icon-sm",
532
+ "aria-label": "Add attachment",
533
+ disabled,
534
+ className: "shrink-0 text-muted-foreground hover:text-foreground",
535
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Paperclip, { className: "size-5" })
536
+ }
537
+ ),
538
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
539
+ Input,
540
+ {
541
+ value,
542
+ onChange: (e) => onChange(e.target.value),
543
+ onKeyDown: handleKeyDown,
544
+ placeholder,
545
+ disabled,
546
+ className: "flex-1 border-0 bg-transparent px-0 shadow-none focus-visible:ring-0 text-body-medium placeholder:text-muted-foreground/60"
547
+ }
548
+ ),
549
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
550
+ Button,
551
+ {
552
+ type: "button",
553
+ variant: "ghost",
554
+ size: "icon-sm",
555
+ "aria-label": "Send message",
556
+ disabled: disabled || !hasText,
557
+ onClick: () => hasText && !disabled && onSend(value),
558
+ className: "shrink-0",
559
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Send, { className: "size-4" })
560
+ }
561
+ )
562
+ ]
563
+ }
564
+ );
565
+ }
566
+ // Annotate the CommonJS export names for ESM import in node:
567
+ 0 && (module.exports = {
568
+ ChatWidgetHeader,
569
+ ChatWidgetInputBar,
570
+ ChatWidgetLauncher,
571
+ ChatWidgetMessage,
572
+ ChatWidgetTypingIndicator
573
+ });
@@ -0,0 +1,21 @@
1
+ import {
2
+ ChatWidgetHeader,
3
+ ChatWidgetInputBar,
4
+ ChatWidgetLauncher,
5
+ ChatWidgetMessage,
6
+ ChatWidgetTypingIndicator
7
+ } from "../../chunk-BBXSNDS3.mjs";
8
+ import "../../chunk-H6NQTIF4.mjs";
9
+ import "../../chunk-WL6WVV47.mjs";
10
+ import "../../chunk-LBTHZSBT.mjs";
11
+ import "../../chunk-NOOEKOWY.mjs";
12
+ import "../../chunk-R4HCRDU5.mjs";
13
+ import "../../chunk-AFML43VJ.mjs";
14
+ import "../../chunk-WNQUEZJF.mjs";
15
+ export {
16
+ ChatWidgetHeader,
17
+ ChatWidgetInputBar,
18
+ ChatWidgetLauncher,
19
+ ChatWidgetMessage,
20
+ ChatWidgetTypingIndicator
21
+ };