@m5kdev/web-ui 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/dist/src/animations/card.motion.d.ts +7 -2
  2. package/dist/src/animations/card.motion.js +25 -6
  3. package/dist/src/animations/card.motion.js.map +1 -0
  4. package/dist/src/components/AvatarUpload.d.ts +14 -5
  5. package/dist/src/components/AvatarUpload.js +105 -63
  6. package/dist/src/components/AvatarUpload.js.map +1 -0
  7. package/dist/src/components/Button.d.ts +14 -4
  8. package/dist/src/components/Button.js +13 -4
  9. package/dist/src/components/Button.js.map +1 -0
  10. package/dist/src/components/Calendar.d.ts +33 -31
  11. package/dist/src/components/Calendar.js +14 -6
  12. package/dist/src/components/Calendar.js.map +1 -0
  13. package/dist/src/components/{Calendar.css → Calendar2.css} +757 -684
  14. package/dist/src/components/CardsSelect.d.ts +25 -21
  15. package/dist/src/components/CardsSelect.js +75 -42
  16. package/dist/src/components/CardsSelect.js.map +1 -0
  17. package/dist/src/components/CollapsibleSidebarMenuItem.d.ts +22 -9
  18. package/dist/src/components/CollapsibleSidebarMenuItem.js +31 -8
  19. package/dist/src/components/CollapsibleSidebarMenuItem.js.map +1 -0
  20. package/dist/src/components/ColorPicker.d.ts +15 -4
  21. package/dist/src/components/ColorPicker.js +46 -16
  22. package/dist/src/components/ColorPicker.js.map +1 -0
  23. package/dist/src/components/CopyButton.d.ts +18 -6
  24. package/dist/src/components/CopyButton.js +28 -19
  25. package/dist/src/components/CopyButton.js.map +1 -0
  26. package/dist/src/components/CropDialog.d.ts +20 -8
  27. package/dist/src/components/CropDialog.js +108 -62
  28. package/dist/src/components/CropDialog.js.map +1 -0
  29. package/dist/src/components/DialogProvider.d.ts +22 -14
  30. package/dist/src/components/DialogProvider.js +67 -45
  31. package/dist/src/components/DialogProvider.js.map +1 -0
  32. package/dist/src/components/ErrorFallback.d.ts +13 -4
  33. package/dist/src/components/ErrorFallback.js +29 -4
  34. package/dist/src/components/ErrorFallback.js.map +1 -0
  35. package/dist/src/components/FileDropzone.d.ts +12 -4
  36. package/dist/src/components/FileDropzone.js +98 -60
  37. package/dist/src/components/FileDropzone.js.map +1 -0
  38. package/dist/src/components/MultiSelectDropdown.d.ts +25 -22
  39. package/dist/src/components/MultiSelectDropdown.js +99 -49
  40. package/dist/src/components/MultiSelectDropdown.js.map +1 -0
  41. package/dist/src/components/Orb.d.ts +17 -6
  42. package/dist/src/components/Orb.js +263 -255
  43. package/dist/src/components/Orb.js.map +1 -0
  44. package/dist/src/components/PageAlert.d.ts +20 -15
  45. package/dist/src/components/PageAlert.js +67 -39
  46. package/dist/src/components/PageAlert.js.map +1 -0
  47. package/dist/src/components/SelectChips.d.ts +21 -10
  48. package/dist/src/components/SelectChips.js +21 -9
  49. package/dist/src/components/SelectChips.js.map +1 -0
  50. package/dist/src/components/SidebarItem.d.ts +18 -7
  51. package/dist/src/components/SidebarItem.js +16 -4
  52. package/dist/src/components/SidebarItem.js.map +1 -0
  53. package/dist/src/components/Steps.d.ts +21 -16
  54. package/dist/src/components/Steps.js +193 -27
  55. package/dist/src/components/Steps.js.map +1 -0
  56. package/dist/src/components/TablerIconPicker.d.ts +13 -2
  57. package/dist/src/components/TablerIconPicker.js +4254 -4234
  58. package/dist/src/components/TablerIconPicker.js.map +1 -0
  59. package/dist/src/components/app-header.d.ts +14 -6
  60. package/dist/src/components/app-header.js +27 -6
  61. package/dist/src/components/app-header.js.map +1 -0
  62. package/dist/src/components/blur-card.d.ts +25 -11
  63. package/dist/src/components/blur-card.js +134 -31
  64. package/dist/src/components/blur-card.js.map +1 -0
  65. package/dist/src/components/features-section-demo-1.d.ts +22 -6
  66. package/dist/src/components/features-section-demo-1.js +119 -47
  67. package/dist/src/components/features-section-demo-1.js.map +1 -0
  68. package/dist/src/components/features-section-demo-2.d.ts +7 -1
  69. package/dist/src/components/features-section-demo-2.js +80 -49
  70. package/dist/src/components/features-section-demo-2.js.map +1 -0
  71. package/dist/src/components/features-section-demo-3.d.ts +16 -8
  72. package/dist/src/components/features-section-demo-3.js +239 -103
  73. package/dist/src/components/features-section-demo-3.js.map +1 -0
  74. package/dist/src/components/mode-toggle.d.ts +7 -1
  75. package/dist/src/components/mode-toggle.js +42 -7
  76. package/dist/src/components/mode-toggle.js.map +1 -0
  77. package/dist/src/components/nav-main.d.ts +20 -12
  78. package/dist/src/components/nav-main.js +31 -5
  79. package/dist/src/components/nav-main.js.map +1 -0
  80. package/dist/src/components/pricing-cards.d.ts +7 -1
  81. package/dist/src/components/pricing-cards.js +125 -24
  82. package/dist/src/components/pricing-cards.js.map +1 -0
  83. package/dist/src/components/shared/ButtonCopy.d.ts +17 -6
  84. package/dist/src/components/shared/ButtonCopy.js +31 -20
  85. package/dist/src/components/shared/ButtonCopy.js.map +1 -0
  86. package/dist/src/components/team-switcher.d.ts +16 -8
  87. package/dist/src/components/team-switcher.js +70 -8
  88. package/dist/src/components/team-switcher.js.map +1 -0
  89. package/dist/src/components/theme-provider.d.ts +18 -8
  90. package/dist/src/components/theme-provider.js +42 -38
  91. package/dist/src/components/theme-provider.js.map +1 -0
  92. package/dist/src/components/typewriter.d.ts +35 -14
  93. package/dist/src/components/typewriter.js +45 -36
  94. package/dist/src/components/typewriter.js.map +1 -0
  95. package/dist/src/components/ui/alert-dialog.d.ts +48 -13
  96. package/dist/src/components/ui/alert-dialog.js +58 -15
  97. package/dist/src/components/ui/alert-dialog.js.map +1 -0
  98. package/dist/src/components/ui/alert.d.ts +24 -8
  99. package/dist/src/components/ui/alert.js +28 -15
  100. package/dist/src/components/ui/alert.js.map +1 -0
  101. package/dist/src/components/ui/avatar.d.ts +9 -5
  102. package/dist/src/components/ui/avatar.js +23 -7
  103. package/dist/src/components/ui/avatar.js.map +1 -0
  104. package/dist/src/components/ui/badge.d.ts +17 -8
  105. package/dist/src/components/ui/badge.js +17 -14
  106. package/dist/src/components/ui/badge.js.map +1 -0
  107. package/dist/src/components/ui/bento-grid.d.ts +26 -11
  108. package/dist/src/components/ui/bento-grid.js +30 -6
  109. package/dist/src/components/ui/bento-grid.js.map +1 -0
  110. package/dist/src/components/ui/bento-grid2.d.ts +30 -14
  111. package/dist/src/components/ui/bento-grid2.js +45 -9
  112. package/dist/src/components/ui/bento-grid2.js.map +1 -0
  113. package/dist/src/components/ui/breadcrumb.d.ts +27 -15
  114. package/dist/src/components/ui/breadcrumb.js +54 -14
  115. package/dist/src/components/ui/breadcrumb.js.map +1 -0
  116. package/dist/src/components/ui/button.d.ts +14 -9
  117. package/dist/src/components/ui/button.js +37 -26
  118. package/dist/src/components/ui/button.js.map +1 -0
  119. package/dist/src/components/ui/card.d.ts +12 -8
  120. package/dist/src/components/ui/card.js +38 -10
  121. package/dist/src/components/ui/card.js.map +1 -0
  122. package/dist/src/components/ui/checkbox.d.ts +6 -2
  123. package/dist/src/components/ui/checkbox.js +17 -5
  124. package/dist/src/components/ui/checkbox.js.map +1 -0
  125. package/dist/src/components/ui/collapsible.d.ts +9 -4
  126. package/dist/src/components/ui/collapsible.js +5 -1
  127. package/dist/src/components/ui/collapsible.js.map +1 -0
  128. package/dist/src/components/ui/dialog.d.ts +44 -12
  129. package/dist/src/components/ui/dialog.js +64 -14
  130. package/dist/src/components/ui/dialog.js.map +1 -0
  131. package/dist/src/components/ui/dropdown-menu.d.ts +32 -24
  132. package/dist/src/components/ui/dropdown-menu.js +64 -14
  133. package/dist/src/components/ui/dropdown-menu.js.map +1 -0
  134. package/dist/src/components/ui/floating-navbar.d.ts +18 -9
  135. package/dist/src/components/ui/floating-navbar.js +49 -35
  136. package/dist/src/components/ui/floating-navbar.js.map +1 -0
  137. package/dist/src/components/ui/form.d.ts +30 -21
  138. package/dist/src/components/ui/form.js +76 -44
  139. package/dist/src/components/ui/form.js.map +1 -0
  140. package/dist/src/components/ui/image.d.ts +6 -2
  141. package/dist/src/components/ui/image.js +51 -11
  142. package/dist/src/components/ui/image.js.map +1 -0
  143. package/dist/src/components/ui/input.d.ts +6 -2
  144. package/dist/src/components/ui/input.js +14 -5
  145. package/dist/src/components/ui/input.js.map +1 -0
  146. package/dist/src/components/ui/label.d.ts +8 -3
  147. package/dist/src/components/ui/label.js +13 -5
  148. package/dist/src/components/ui/label.js.map +1 -0
  149. package/dist/src/components/ui/pagination.d.ts +39 -12
  150. package/dist/src/components/ui/pagination.js +64 -14
  151. package/dist/src/components/ui/pagination.js.map +1 -0
  152. package/dist/src/components/ui/progress.d.ts +6 -2
  153. package/dist/src/components/ui/progress.js +16 -4
  154. package/dist/src/components/ui/progress.js.map +1 -0
  155. package/dist/src/components/ui/resizable-navbar.d.ts +84 -43
  156. package/dist/src/components/ui/resizable-navbar.js +126 -74
  157. package/dist/src/components/ui/resizable-navbar.js.map +1 -0
  158. package/dist/src/components/ui/segment-control.d.ts +10 -7
  159. package/dist/src/components/ui/segment-control.js +83 -38
  160. package/dist/src/components/ui/segment-control.js.map +1 -0
  161. package/dist/src/components/ui/select.d.ts +16 -12
  162. package/dist/src/components/ui/select.js +63 -14
  163. package/dist/src/components/ui/select.js.map +1 -0
  164. package/dist/src/components/ui/separator.d.ts +6 -2
  165. package/dist/src/components/ui/separator.js +14 -4
  166. package/dist/src/components/ui/separator.js.map +1 -0
  167. package/dist/src/components/ui/sheet.d.ts +30 -19
  168. package/dist/src/components/ui/sheet.js +52 -23
  169. package/dist/src/components/ui/sheet.js.map +1 -0
  170. package/dist/src/components/ui/sidebar.d.ts +69 -62
  171. package/dist/src/components/ui/sidebar.js +326 -171
  172. package/dist/src/components/ui/sidebar.js.map +1 -0
  173. package/dist/src/components/ui/skeleton.d.ts +9 -1
  174. package/dist/src/components/ui/skeleton.js +10 -3
  175. package/dist/src/components/ui/skeleton.js.map +1 -0
  176. package/dist/src/components/ui/slider.d.ts +6 -2
  177. package/dist/src/components/ui/slider.js +16 -4
  178. package/dist/src/components/ui/slider.js.map +1 -0
  179. package/dist/src/components/ui/sonner.d.ts +10 -3
  180. package/dist/src/components/ui/sonner.js +18 -11
  181. package/dist/src/components/ui/sonner.js.map +1 -0
  182. package/dist/src/components/ui/spinner.d.ts +21 -10
  183. package/dist/src/components/ui/spinner.js +24 -24
  184. package/dist/src/components/ui/spinner.js.map +1 -0
  185. package/dist/src/components/ui/switch.d.ts +6 -2
  186. package/dist/src/components/ui/switch.js +13 -4
  187. package/dist/src/components/ui/switch.js.map +1 -0
  188. package/dist/src/components/ui/table.d.ts +39 -10
  189. package/dist/src/components/ui/table.js +51 -11
  190. package/dist/src/components/ui/table.js.map +1 -0
  191. package/dist/src/components/ui/tabs.d.ts +23 -6
  192. package/dist/src/components/ui/tabs.js +27 -7
  193. package/dist/src/components/ui/tabs.js.map +1 -0
  194. package/dist/src/components/ui/textarea.d.ts +10 -2
  195. package/dist/src/components/ui/textarea.js +11 -3
  196. package/dist/src/components/ui/textarea.js.map +1 -0
  197. package/dist/src/components/ui/timeline.d.ts +16 -9
  198. package/dist/src/components/ui/timeline.js +87 -24
  199. package/dist/src/components/ui/timeline.js.map +1 -0
  200. package/dist/src/components/ui/toast.d.ts +19 -14
  201. package/dist/src/components/ui/toast.js +48 -22
  202. package/dist/src/components/ui/toast.js.map +1 -0
  203. package/dist/src/components/ui/tooltip.d.ts +23 -6
  204. package/dist/src/components/ui/tooltip.js +27 -7
  205. package/dist/src/components/ui/tooltip.js.map +1 -0
  206. package/dist/src/components/ui/typewriter-effect.d.ts +28 -14
  207. package/dist/src/components/ui/typewriter-effect.js +102 -72
  208. package/dist/src/components/ui/typewriter-effect.js.map +1 -0
  209. package/dist/src/hooks/use-mobile.d.ts +5 -1
  210. package/dist/src/hooks/use-mobile.js +18 -13
  211. package/dist/src/hooks/use-mobile.js.map +1 -0
  212. package/dist/src/hooks/useDialog.d.ts +8 -4
  213. package/dist/src/hooks/useDialog.js +24 -20
  214. package/dist/src/hooks/useDialog.js.map +1 -0
  215. package/dist/src/icons/GoogleIcon.d.ts +9 -5
  216. package/dist/src/icons/GoogleIcon.js +32 -3
  217. package/dist/src/icons/GoogleIcon.js.map +1 -0
  218. package/dist/src/icons/LinkedInIcon.d.ts +9 -5
  219. package/dist/src/icons/LinkedInIcon.js +27 -3
  220. package/dist/src/icons/LinkedInIcon.js.map +1 -0
  221. package/dist/src/icons/MicrosoftIcon.d.ts +9 -5
  222. package/dist/src/icons/MicrosoftIcon.js +31 -3
  223. package/dist/src/icons/MicrosoftIcon.js.map +1 -0
  224. package/dist/src/lib/chatwoot.d.ts +19 -10
  225. package/dist/src/lib/chatwoot.js +25 -27
  226. package/dist/src/lib/chatwoot.js.map +1 -0
  227. package/dist/src/lib/utils.d.ts +7 -2
  228. package/dist/src/lib/utils.js +7 -2
  229. package/dist/src/lib/utils.js.map +1 -0
  230. package/dist/src/modules/app/components/AppLoader.d.ts +8 -2
  231. package/dist/src/modules/app/components/AppLoader.js +14 -3
  232. package/dist/src/modules/app/components/AppLoader.js.map +1 -0
  233. package/dist/src/modules/app/components/AppShell.d.ts +15 -6
  234. package/dist/src/modules/app/components/AppShell.js +14 -5
  235. package/dist/src/modules/app/components/AppShell.js.map +1 -0
  236. package/dist/src/modules/app/components/AppSidebar.d.ts +16 -6
  237. package/dist/src/modules/app/components/AppSidebar.js +17 -4
  238. package/dist/src/modules/app/components/AppSidebar.js.map +1 -0
  239. package/dist/src/modules/app/components/AppSidebarContent.d.ts +22 -13
  240. package/dist/src/modules/app/components/AppSidebarContent.js +34 -5
  241. package/dist/src/modules/app/components/AppSidebarContent.js.map +1 -0
  242. package/dist/src/modules/app/components/AppSidebarHeader.d.ts +18 -8
  243. package/dist/src/modules/app/components/AppSidebarHeader.js +37 -6
  244. package/dist/src/modules/app/components/AppSidebarHeader.js.map +1 -0
  245. package/dist/src/modules/app/components/AppSidebarInvites.d.ts +11 -3
  246. package/dist/src/modules/app/components/AppSidebarInvites.js +39 -8
  247. package/dist/src/modules/app/components/AppSidebarInvites.js.map +1 -0
  248. package/dist/src/modules/app/components/AppSidebarUser.d.ts +20 -10
  249. package/dist/src/modules/app/components/AppSidebarUser.js +121 -12
  250. package/dist/src/modules/app/components/AppSidebarUser.js.map +1 -0
  251. package/dist/src/modules/auth/components/AdminUserManagement.d.ts +11 -4
  252. package/dist/src/modules/auth/components/AdminUserManagement.js +970 -418
  253. package/dist/src/modules/auth/components/AdminUserManagement.js.map +1 -0
  254. package/dist/src/modules/auth/components/AdminWaitlist.d.ts +11 -4
  255. package/dist/src/modules/auth/components/AdminWaitlist.js +284 -115
  256. package/dist/src/modules/auth/components/AdminWaitlist.js.map +1 -0
  257. package/dist/src/modules/auth/components/AuthLayout.d.ts +12 -4
  258. package/dist/src/modules/auth/components/AuthLayout.js +17 -3
  259. package/dist/src/modules/auth/components/AuthLayout.js.map +1 -0
  260. package/dist/src/modules/auth/components/AuthProviders.d.ts +17 -6
  261. package/dist/src/modules/auth/components/AuthProviders.js +80 -41
  262. package/dist/src/modules/auth/components/AuthProviders.js.map +1 -0
  263. package/dist/src/modules/auth/components/AuthRouter.d.ts +16 -7
  264. package/dist/src/modules/auth/components/AuthRouter.js +46 -10
  265. package/dist/src/modules/auth/components/AuthRouter.js.map +1 -0
  266. package/dist/src/modules/auth/components/ClaimAccountRoute.d.ts +12 -4
  267. package/dist/src/modules/auth/components/ClaimAccountRoute.js +202 -139
  268. package/dist/src/modules/auth/components/ClaimAccountRoute.js.map +1 -0
  269. package/dist/src/modules/auth/components/ErrorAuthRoute.d.ts +7 -1
  270. package/dist/src/modules/auth/components/ErrorAuthRoute.js +125 -89
  271. package/dist/src/modules/auth/components/ErrorAuthRoute.js.map +1 -0
  272. package/dist/src/modules/auth/components/ForgotPasswordForm.d.ts +7 -1
  273. package/dist/src/modules/auth/components/ForgotPasswordForm.js +49 -23
  274. package/dist/src/modules/auth/components/ForgotPasswordForm.js.map +1 -0
  275. package/dist/src/modules/auth/components/ForgotPasswordRoute.d.ts +7 -1
  276. package/dist/src/modules/auth/components/ForgotPasswordRoute.js +34 -6
  277. package/dist/src/modules/auth/components/ForgotPasswordRoute.js.map +1 -0
  278. package/dist/src/modules/auth/components/InviteFriends.d.ts +12 -4
  279. package/dist/src/modules/auth/components/InviteFriends.js +275 -69
  280. package/dist/src/modules/auth/components/InviteFriends.js.map +1 -0
  281. package/dist/src/modules/auth/components/LastUsedBadge.d.ts +17 -5
  282. package/dist/src/modules/auth/components/LastUsedBadge.js +16 -6
  283. package/dist/src/modules/auth/components/LastUsedBadge.js.map +1 -0
  284. package/dist/src/modules/auth/components/LoginForm.d.ts +11 -3
  285. package/dist/src/modules/auth/components/LoginForm.js +107 -40
  286. package/dist/src/modules/auth/components/LoginForm.js.map +1 -0
  287. package/dist/src/modules/auth/components/LoginRoute.d.ts +11 -3
  288. package/dist/src/modules/auth/components/LoginRoute.js +41 -8
  289. package/dist/src/modules/auth/components/LoginRoute.js.map +1 -0
  290. package/dist/src/modules/auth/components/LogoutRoute.d.ts +7 -1
  291. package/dist/src/modules/auth/components/LogoutRoute.js +18 -12
  292. package/dist/src/modules/auth/components/LogoutRoute.js.map +1 -0
  293. package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.d.ts +21 -8
  294. package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js +107 -97
  295. package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js.map +1 -0
  296. package/dist/src/modules/auth/components/OrganizationMembersRoute.d.ts +58 -48
  297. package/dist/src/modules/auth/components/OrganizationMembersRoute.js +448 -349
  298. package/dist/src/modules/auth/components/OrganizationMembersRoute.js.map +1 -0
  299. package/dist/src/modules/auth/components/OrganizationPreferences.d.ts +27 -16
  300. package/dist/src/modules/auth/components/OrganizationPreferences.js +129 -124
  301. package/dist/src/modules/auth/components/OrganizationPreferences.js.map +1 -0
  302. package/dist/src/modules/auth/components/OrganizationSettingsRoute.d.ts +27 -18
  303. package/dist/src/modules/auth/components/OrganizationSettingsRoute.js +184 -144
  304. package/dist/src/modules/auth/components/OrganizationSettingsRoute.js.map +1 -0
  305. package/dist/src/modules/auth/components/OrganizationSwitcher.d.ts +17 -6
  306. package/dist/src/modules/auth/components/OrganizationSwitcher.js +91 -69
  307. package/dist/src/modules/auth/components/OrganizationSwitcher.js.map +1 -0
  308. package/dist/src/modules/auth/components/PreferencesEditor.d.ts +44 -33
  309. package/dist/src/modules/auth/components/PreferencesEditor.js +82 -58
  310. package/dist/src/modules/auth/components/PreferencesEditor.js.map +1 -0
  311. package/dist/src/modules/auth/components/ProfileRoute.d.ts +7 -1
  312. package/dist/src/modules/auth/components/ProfileRoute.js +79 -36
  313. package/dist/src/modules/auth/components/ProfileRoute.js.map +1 -0
  314. package/dist/src/modules/auth/components/RangeNuqsDatePicker.d.ts +44 -30
  315. package/dist/src/modules/auth/components/RangeNuqsDatePicker.js +234 -242
  316. package/dist/src/modules/auth/components/RangeNuqsDatePicker.js.map +1 -0
  317. package/dist/src/modules/auth/components/ResetPasswordForm.d.ts +7 -1
  318. package/dist/src/modules/auth/components/ResetPasswordForm.js +97 -35
  319. package/dist/src/modules/auth/components/ResetPasswordForm.js.map +1 -0
  320. package/dist/src/modules/auth/components/ResetPasswordRoute.d.ts +7 -1
  321. package/dist/src/modules/auth/components/ResetPasswordRoute.js +34 -6
  322. package/dist/src/modules/auth/components/ResetPasswordRoute.js.map +1 -0
  323. package/dist/src/modules/auth/components/SignupFormRoute.d.ts +15 -5
  324. package/dist/src/modules/auth/components/SignupFormRoute.js +142 -99
  325. package/dist/src/modules/auth/components/SignupFormRoute.js.map +1 -0
  326. package/dist/src/modules/auth/components/SignupRoute.d.ts +13 -5
  327. package/dist/src/modules/auth/components/SignupRoute.js +59 -13
  328. package/dist/src/modules/auth/components/SignupRoute.js.map +1 -0
  329. package/dist/src/modules/auth/components/UserPreferences.d.ts +22 -11
  330. package/dist/src/modules/auth/components/UserPreferences.js +24 -12
  331. package/dist/src/modules/auth/components/UserPreferences.js.map +1 -0
  332. package/dist/src/modules/auth/components/WaitlistCard.d.ts +11 -4
  333. package/dist/src/modules/auth/components/WaitlistCard.js +63 -28
  334. package/dist/src/modules/auth/components/WaitlistCard.js.map +1 -0
  335. package/dist/src/modules/auth/components/WaitlistCodeValidation.d.ts +13 -5
  336. package/dist/src/modules/auth/components/WaitlistCodeValidation.js +42 -40
  337. package/dist/src/modules/auth/components/WaitlistCodeValidation.js.map +1 -0
  338. package/dist/src/modules/billing/components/BillingBetaPage.d.ts +15 -6
  339. package/dist/src/modules/billing/components/BillingBetaPage.js +155 -8
  340. package/dist/src/modules/billing/components/BillingBetaPage.js.map +1 -0
  341. package/dist/src/modules/billing/components/BillingInvoicePage.d.ts +13 -5
  342. package/dist/src/modules/billing/components/BillingInvoicePage.js +160 -30
  343. package/dist/src/modules/billing/components/BillingInvoicePage.js.map +1 -0
  344. package/dist/src/modules/billing/components/BillingPlanSelect.d.ts +11 -4
  345. package/dist/src/modules/billing/components/BillingPlanSelect.js +10 -7
  346. package/dist/src/modules/billing/components/BillingPlanSelect.js.map +1 -0
  347. package/dist/src/modules/billing/components/BillingRouter.d.ts +15 -7
  348. package/dist/src/modules/billing/components/BillingRouter.js +19 -6
  349. package/dist/src/modules/billing/components/BillingRouter.js.map +1 -0
  350. package/dist/src/modules/billing/components/BillingSinglePlanSelect.d.ts +17 -7
  351. package/dist/src/modules/billing/components/BillingSinglePlanSelect.js +163 -42
  352. package/dist/src/modules/billing/components/BillingSinglePlanSelect.js.map +1 -0
  353. package/dist/src/modules/table/components/ColumnOrderAndVisibility.d.ts +18 -8
  354. package/dist/src/modules/table/components/ColumnOrderAndVisibility.js +81 -38
  355. package/dist/src/modules/table/components/ColumnOrderAndVisibility.js.map +1 -0
  356. package/dist/src/modules/table/components/NuqsTable.d.ts +33 -21
  357. package/dist/src/modules/table/components/NuqsTable.js +295 -221
  358. package/dist/src/modules/table/components/NuqsTable.js.map +1 -0
  359. package/dist/src/modules/table/components/TableFiltering.d.ts +33 -21
  360. package/dist/src/modules/table/components/TableFiltering.js +408 -226
  361. package/dist/src/modules/table/components/TableFiltering.js.map +1 -0
  362. package/dist/src/modules/table/components/TableGroupBy.d.ts +18 -8
  363. package/dist/src/modules/table/components/TableGroupBy.js +56 -16
  364. package/dist/src/modules/table/components/TableGroupBy.js.map +1 -0
  365. package/dist/src/modules/table/components/TablePagination.d.ts +17 -7
  366. package/dist/src/modules/table/components/TablePagination.js +64 -32
  367. package/dist/src/modules/table/components/TablePagination.js.map +1 -0
  368. package/dist/src/modules/table/components/table.types.d.ts +15 -10
  369. package/dist/src/modules/table/components/table.types.js +0 -1
  370. package/dist/src/modules/table/filterTransformers.d.ts +35 -30
  371. package/dist/src/modules/table/filterTransformers.js +198 -261
  372. package/dist/src/modules/table/filterTransformers.js.map +1 -0
  373. package/dist/src/types.d.ts +8 -3
  374. package/dist/src/types.js +0 -1
  375. package/package.json +8 -6
  376. package/dist/translations/en/web-ui.json +0 -209
  377. package/dist/tsconfig.lib.tsbuildinfo +0 -1
@@ -1,76 +1,106 @@
1
1
  "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { motion, stagger, useAnimate, useInView } from "motion/react";
2
+ import { cn } from "../../lib/utils.js";
4
3
  import { useEffect } from "react";
5
- import { cn } from "../../lib/utils";
6
- export const TypewriterEffect = ({ words, className, cursorClassName, }) => {
7
- // split text inside of words into array of characters
8
- const wordsArray = words.map((word) => {
9
- return {
10
- ...word,
11
- text: word.text.split(""),
12
- };
13
- });
14
- const [scope, animate] = useAnimate();
15
- const isInView = useInView(scope);
16
- useEffect(() => {
17
- if (isInView) {
18
- animate("span", {
19
- display: "inline-block",
20
- opacity: 1,
21
- width: "fit-content",
22
- }, {
23
- duration: 0.3,
24
- delay: stagger(0.1),
25
- ease: "easeInOut",
26
- });
27
- }
28
- }, [isInView]);
29
- const renderWords = () => {
30
- return (_jsx(motion.div, { ref: scope, className: "inline", children: wordsArray.map((word, idx) => {
31
- return (_jsxs("div", { className: "inline-block", children: [word.text.map((char, index) => (_jsx(motion.span, { initial: {}, className: cn("dark:text-white text-black opacity-0 hidden", word.className), children: char }, `char-${index}`))), "\u00A0"] }, `word-${idx}`));
32
- }) }));
33
- };
34
- return (_jsxs("div", { className: cn("text-base sm:text-xl md:text-3xl lg:text-5xl font-bold text-center", className), children: [renderWords(), _jsx(motion.span, { initial: {
35
- opacity: 0,
36
- }, animate: {
37
- opacity: 1,
38
- }, transition: {
39
- duration: 0.8,
40
- repeat: Number.POSITIVE_INFINITY,
41
- repeatType: "reverse",
42
- }, className: cn("inline-block rounded-sm w-[4px] h-4 md:h-6 lg:h-10 bg-green-500", cursorClassName) })] }));
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { motion, stagger, useAnimate, useInView } from "motion/react";
6
+ //#region src/components/ui/typewriter-effect.tsx
7
+ const TypewriterEffect = ({ words, className, cursorClassName }) => {
8
+ const wordsArray = words.map((word) => {
9
+ return {
10
+ ...word,
11
+ text: word.text.split("")
12
+ };
13
+ });
14
+ const [scope, animate] = useAnimate();
15
+ const isInView = useInView(scope);
16
+ useEffect(() => {
17
+ if (isInView) animate("span", {
18
+ display: "inline-block",
19
+ opacity: 1,
20
+ width: "fit-content"
21
+ }, {
22
+ duration: .3,
23
+ delay: stagger(.1),
24
+ ease: "easeInOut"
25
+ });
26
+ }, [isInView]);
27
+ const renderWords = () => {
28
+ return /* @__PURE__ */ jsx(motion.div, {
29
+ ref: scope,
30
+ className: "inline",
31
+ children: wordsArray.map((word, idx) => {
32
+ return /* @__PURE__ */ jsxs("div", {
33
+ className: "inline-block",
34
+ children: [word.text.map((char, index) => /* @__PURE__ */ jsx(motion.span, {
35
+ initial: {},
36
+ className: cn("dark:text-white text-black opacity-0 hidden", word.className),
37
+ children: char
38
+ }, `char-${index}`)), "\xA0"]
39
+ }, `word-${idx}`);
40
+ })
41
+ });
42
+ };
43
+ return /* @__PURE__ */ jsxs("div", {
44
+ className: cn("text-base sm:text-xl md:text-3xl lg:text-5xl font-bold text-center", className),
45
+ children: [renderWords(), /* @__PURE__ */ jsx(motion.span, {
46
+ initial: { opacity: 0 },
47
+ animate: { opacity: 1 },
48
+ transition: {
49
+ duration: .8,
50
+ repeat: Number.POSITIVE_INFINITY,
51
+ repeatType: "reverse"
52
+ },
53
+ className: cn("inline-block rounded-sm w-[4px] h-4 md:h-6 lg:h-10 bg-green-500", cursorClassName)
54
+ })]
55
+ });
43
56
  };
44
- export const TypewriterEffectSmooth = ({ words, className, cursorClassName, }) => {
45
- // split text inside of words into array of characters
46
- const wordsArray = words.map((word) => {
47
- return {
48
- ...word,
49
- text: word.text.split(""),
50
- };
51
- });
52
- const renderWords = () => {
53
- return (_jsx("div", { children: wordsArray.map((word, idx) => {
54
- return (_jsxs("div", { className: "inline-block", children: [word.text.map((char, index) => (_jsx("span", { className: cn("dark:text-white text-black ", word.className), children: char }, `char-${index}`))), "\u00A0"] }, `word-${idx}`));
55
- }) }));
56
- };
57
- return (_jsxs("div", { className: cn("flex space-x-1 my-6", className), children: [_jsxs(motion.div, { className: "overflow-hidden pb-2", initial: {
58
- width: "0%",
59
- }, whileInView: {
60
- width: "fit-content",
61
- }, transition: {
62
- duration: 2,
63
- ease: "linear",
64
- delay: 1,
65
- }, children: [_jsxs("div", { className: "text-xs sm:text-base md:text-xl lg:text:3xl xl:text-5xl font-bold", style: {
66
- whiteSpace: "nowrap",
67
- }, children: [renderWords(), " "] }), " "] }), _jsx(motion.span, { initial: {
68
- opacity: 0,
69
- }, animate: {
70
- opacity: 1,
71
- }, transition: {
72
- duration: 0.8,
73
- repeat: Number.POSITIVE_INFINITY,
74
- repeatType: "reverse",
75
- }, className: cn("block rounded-sm w-[4px] h-4 sm:h-6 xl:h-12 bg-green-500", cursorClassName) })] }));
57
+ const TypewriterEffectSmooth = ({ words, className, cursorClassName }) => {
58
+ const wordsArray = words.map((word) => {
59
+ return {
60
+ ...word,
61
+ text: word.text.split("")
62
+ };
63
+ });
64
+ const renderWords = () => {
65
+ return /* @__PURE__ */ jsx("div", { children: wordsArray.map((word, idx) => {
66
+ return /* @__PURE__ */ jsxs("div", {
67
+ className: "inline-block",
68
+ children: [word.text.map((char, index) => /* @__PURE__ */ jsx("span", {
69
+ className: cn("dark:text-white text-black ", word.className),
70
+ children: char
71
+ }, `char-${index}`)), "\xA0"]
72
+ }, `word-${idx}`);
73
+ }) });
74
+ };
75
+ return /* @__PURE__ */ jsxs("div", {
76
+ className: cn("flex space-x-1 my-6", className),
77
+ children: [/* @__PURE__ */ jsxs(motion.div, {
78
+ className: "overflow-hidden pb-2",
79
+ initial: { width: "0%" },
80
+ whileInView: { width: "fit-content" },
81
+ transition: {
82
+ duration: 2,
83
+ ease: "linear",
84
+ delay: 1
85
+ },
86
+ children: [/* @__PURE__ */ jsxs("div", {
87
+ className: "text-xs sm:text-base md:text-xl lg:text:3xl xl:text-5xl font-bold",
88
+ style: { whiteSpace: "nowrap" },
89
+ children: [renderWords(), " "]
90
+ }), " "]
91
+ }), /* @__PURE__ */ jsx(motion.span, {
92
+ initial: { opacity: 0 },
93
+ animate: { opacity: 1 },
94
+ transition: {
95
+ duration: .8,
96
+ repeat: Number.POSITIVE_INFINITY,
97
+ repeatType: "reverse"
98
+ },
99
+ className: cn("block rounded-sm w-[4px] h-4 sm:h-6 xl:h-12 bg-green-500", cursorClassName)
100
+ })]
101
+ });
76
102
  };
103
+ //#endregion
104
+ export { TypewriterEffect, TypewriterEffectSmooth };
105
+
106
+ //# sourceMappingURL=typewriter-effect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typewriter-effect.js","names":[],"sources":["../../../../src/components/ui/typewriter-effect.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport { motion, stagger, useAnimate, useInView } from \"motion/react\";\r\nimport { useEffect } from \"react\";\r\nimport { cn } from \"../../lib/utils\";\r\n\r\nexport const TypewriterEffect = ({\r\n words,\r\n className,\r\n cursorClassName,\r\n}: {\r\n words: {\r\n text: string;\r\n className?: string;\r\n }[];\r\n className?: string;\r\n cursorClassName?: string;\r\n}) => {\r\n // split text inside of words into array of characters\r\n const wordsArray = words.map((word) => {\r\n return {\r\n ...word,\r\n text: word.text.split(\"\"),\r\n };\r\n });\r\n\r\n const [scope, animate] = useAnimate();\r\n const isInView = useInView(scope);\r\n useEffect(() => {\r\n if (isInView) {\r\n animate(\r\n \"span\",\r\n {\r\n display: \"inline-block\",\r\n opacity: 1,\r\n width: \"fit-content\",\r\n },\r\n {\r\n duration: 0.3,\r\n delay: stagger(0.1),\r\n ease: \"easeInOut\",\r\n }\r\n );\r\n }\r\n }, [isInView]);\r\n\r\n const renderWords = () => {\r\n return (\r\n <motion.div ref={scope} className=\"inline\">\r\n {wordsArray.map((word, idx) => {\r\n return (\r\n <div key={`word-${idx}`} className=\"inline-block\">\r\n {word.text.map((char, index) => (\r\n <motion.span\r\n initial={{}}\r\n key={`char-${index}`}\r\n className={cn(\"dark:text-white text-black opacity-0 hidden\", word.className)}\r\n >\r\n {char}\r\n </motion.span>\r\n ))}\r\n &nbsp;\r\n </div>\r\n );\r\n })}\r\n </motion.div>\r\n );\r\n };\r\n return (\r\n <div\r\n className={cn(\r\n \"text-base sm:text-xl md:text-3xl lg:text-5xl font-bold text-center\",\r\n className\r\n )}\r\n >\r\n {renderWords()}\r\n <motion.span\r\n initial={{\r\n opacity: 0,\r\n }}\r\n animate={{\r\n opacity: 1,\r\n }}\r\n transition={{\r\n duration: 0.8,\r\n repeat: Number.POSITIVE_INFINITY,\r\n repeatType: \"reverse\",\r\n }}\r\n className={cn(\r\n \"inline-block rounded-sm w-[4px] h-4 md:h-6 lg:h-10 bg-green-500\",\r\n cursorClassName\r\n )}\r\n />\r\n </div>\r\n );\r\n};\r\n\r\nexport const TypewriterEffectSmooth = ({\r\n words,\r\n className,\r\n cursorClassName,\r\n}: {\r\n words: {\r\n text: string;\r\n className?: string;\r\n }[];\r\n className?: string;\r\n cursorClassName?: string;\r\n}) => {\r\n // split text inside of words into array of characters\r\n const wordsArray = words.map((word) => {\r\n return {\r\n ...word,\r\n text: word.text.split(\"\"),\r\n };\r\n });\r\n const renderWords = () => {\r\n return (\r\n <div>\r\n {wordsArray.map((word, idx) => {\r\n return (\r\n <div key={`word-${idx}`} className=\"inline-block\">\r\n {word.text.map((char, index) => (\r\n <span\r\n key={`char-${index}`}\r\n className={cn(\"dark:text-white text-black \", word.className)}\r\n >\r\n {char}\r\n </span>\r\n ))}\r\n &nbsp;\r\n </div>\r\n );\r\n })}\r\n </div>\r\n );\r\n };\r\n\r\n return (\r\n <div className={cn(\"flex space-x-1 my-6\", className)}>\r\n <motion.div\r\n className=\"overflow-hidden pb-2\"\r\n initial={{\r\n width: \"0%\",\r\n }}\r\n whileInView={{\r\n width: \"fit-content\",\r\n }}\r\n transition={{\r\n duration: 2,\r\n ease: \"linear\",\r\n delay: 1,\r\n }}\r\n >\r\n <div\r\n className=\"text-xs sm:text-base md:text-xl lg:text:3xl xl:text-5xl font-bold\"\r\n style={{\r\n whiteSpace: \"nowrap\",\r\n }}\r\n >\r\n {renderWords()}{\" \"}\r\n </div>{\" \"}\r\n </motion.div>\r\n <motion.span\r\n initial={{\r\n opacity: 0,\r\n }}\r\n animate={{\r\n opacity: 1,\r\n }}\r\n transition={{\r\n duration: 0.8,\r\n\r\n repeat: Number.POSITIVE_INFINITY,\r\n repeatType: \"reverse\",\r\n }}\r\n className={cn(\"block rounded-sm w-[4px] h-4 sm:h-6 xl:h-12 bg-green-500\", cursorClassName)}\r\n />\r\n </div>\r\n );\r\n};\r\n"],"mappings":";;;;;;AAMA,MAAa,oBAAoB,EAC/B,OACA,WACA,sBAQI;CAEJ,MAAM,aAAa,MAAM,KAAK,SAAS;AACrC,SAAO;GACL,GAAG;GACH,MAAM,KAAK,KAAK,MAAM,GAAG;GAC1B;GACD;CAEF,MAAM,CAAC,OAAO,WAAW,YAAY;CACrC,MAAM,WAAW,UAAU,MAAM;AACjC,iBAAgB;AACd,MAAI,SACF,SACE,QACA;GACE,SAAS;GACT,SAAS;GACT,OAAO;GACR,EACD;GACE,UAAU;GACV,OAAO,QAAQ,GAAI;GACnB,MAAM;GACP,CACF;IAEF,CAAC,SAAS,CAAC;CAEd,MAAM,oBAAoB;AACxB,SACE,oBAAC,OAAO,KAAR;GAAY,KAAK;GAAO,WAAU;aAC/B,WAAW,KAAK,MAAM,QAAQ;AAC7B,WACE,qBAAC,OAAD;KAAyB,WAAU;eAAnC,CACG,KAAK,KAAK,KAAK,MAAM,UACpB,oBAAC,OAAO,MAAR;MACE,SAAS,EAAE;MAEX,WAAW,GAAG,+CAA+C,KAAK,UAAU;gBAE3E;MACW,EAJP,QAAQ,QAID,CACd,EAAC,OAEC;OAXI,QAAQ,MAWZ;KAER;GACS,CAAA;;AAGjB,QACE,qBAAC,OAAD;EACE,WAAW,GACT,sEACA,UACD;YAJH,CAMG,aAAa,EACd,oBAAC,OAAO,MAAR;GACE,SAAS,EACP,SAAS,GACV;GACD,SAAS,EACP,SAAS,GACV;GACD,YAAY;IACV,UAAU;IACV,QAAQ,OAAO;IACf,YAAY;IACb;GACD,WAAW,GACT,mEACA,gBACD;GACD,CAAA,CACE;;;AAIV,MAAa,0BAA0B,EACrC,OACA,WACA,sBAQI;CAEJ,MAAM,aAAa,MAAM,KAAK,SAAS;AACrC,SAAO;GACL,GAAG;GACH,MAAM,KAAK,KAAK,MAAM,GAAG;GAC1B;GACD;CACF,MAAM,oBAAoB;AACxB,SACE,oBAAC,OAAD,EAAA,UACG,WAAW,KAAK,MAAM,QAAQ;AAC7B,UACE,qBAAC,OAAD;IAAyB,WAAU;cAAnC,CACG,KAAK,KAAK,KAAK,MAAM,UACpB,oBAAC,QAAD;KAEE,WAAW,GAAG,+BAA+B,KAAK,UAAU;eAE3D;KACI,EAJA,QAAQ,QAIR,CACP,EAAC,OAEC;MAVI,QAAQ,MAUZ;IAER,EACE,CAAA;;AAIV,QACE,qBAAC,OAAD;EAAK,WAAW,GAAG,uBAAuB,UAAU;YAApD,CACE,qBAAC,OAAO,KAAR;GACE,WAAU;GACV,SAAS,EACP,OAAO,MACR;GACD,aAAa,EACX,OAAO,eACR;GACD,YAAY;IACV,UAAU;IACV,MAAM;IACN,OAAO;IACR;aAZH,CAcE,qBAAC,OAAD;IACE,WAAU;IACV,OAAO,EACL,YAAY,UACb;cAJH,CAMG,aAAa,EAAE,IACZ;OAAC,IACI;MACb,oBAAC,OAAO,MAAR;GACE,SAAS,EACP,SAAS,GACV;GACD,SAAS,EACP,SAAS,GACV;GACD,YAAY;IACV,UAAU;IAEV,QAAQ,OAAO;IACf,YAAY;IACb;GACD,WAAW,GAAG,6DAA6D,gBAAgB;GAC3F,CAAA,CACE"}
@@ -1 +1,5 @@
1
- export declare function useIsMobile(): boolean;
1
+ //#region src/hooks/use-mobile.d.ts
2
+ declare function useIsMobile(): boolean;
3
+ //#endregion
4
+ export { useIsMobile };
5
+ //# sourceMappingURL=use-mobile.d.ts.map
@@ -1,15 +1,20 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
+ //#region src/hooks/use-mobile.ts
2
3
  const MOBILE_BREAKPOINT = 768;
3
- export function useIsMobile() {
4
- const [isMobile, setIsMobile] = React.useState(undefined);
5
- React.useEffect(() => {
6
- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
7
- const onChange = () => {
8
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
9
- };
10
- mql.addEventListener("change", onChange);
11
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
12
- return () => mql.removeEventListener("change", onChange);
13
- }, []);
14
- return !!isMobile;
4
+ function useIsMobile() {
5
+ const [isMobile, setIsMobile] = React$1.useState(void 0);
6
+ React$1.useEffect(() => {
7
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
8
+ const onChange = () => {
9
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
10
+ };
11
+ mql.addEventListener("change", onChange);
12
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
13
+ return () => mql.removeEventListener("change", onChange);
14
+ }, []);
15
+ return !!isMobile;
15
16
  }
17
+ //#endregion
18
+ export { useIsMobile };
19
+
20
+ //# sourceMappingURL=use-mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-mobile.js","names":["React"],"sources":["../../../src/hooks/use-mobile.ts"],"sourcesContent":["import * as React from \"react\";\r\n\r\nconst MOBILE_BREAKPOINT = 768;\r\n\r\nexport function useIsMobile() {\r\n const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined);\r\n\r\n React.useEffect(() => {\r\n const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);\r\n const onChange = () => {\r\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\r\n };\r\n mql.addEventListener(\"change\", onChange);\r\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\r\n return () => mql.removeEventListener(\"change\", onChange);\r\n }, []);\r\n\r\n return !!isMobile;\r\n}\r\n"],"mappings":";;AAEA,MAAM,oBAAoB;AAE1B,SAAgB,cAAc;CAC5B,MAAM,CAAC,UAAU,eAAeA,QAAM,SAA8B,KAAA,EAAU;AAE9E,SAAM,gBAAgB;EACpB,MAAM,MAAM,OAAO,WAAW,eAAe,oBAAoB,EAAE,KAAK;EACxE,MAAM,iBAAiB;AACrB,eAAY,OAAO,aAAa,kBAAkB;;AAEpD,MAAI,iBAAiB,UAAU,SAAS;AACxC,cAAY,OAAO,aAAa,kBAAkB;AAClD,eAAa,IAAI,oBAAoB,UAAU,SAAS;IACvD,EAAE,CAAC;AAEN,QAAO,CAAC,CAAC"}
@@ -1,4 +1,8 @@
1
- import { type DialogProps, useDialog } from "../components/DialogProvider";
2
- export { useDialog };
3
- export declare const useConfirmDialog: () => (props: DialogProps) => void;
4
- export declare const useAlertDialog: () => (props: DialogProps) => void;
1
+ import { DialogProps, useDialog } from "../components/DialogProvider.js";
2
+
3
+ //#region src/hooks/useDialog.d.ts
4
+ declare const useConfirmDialog: () => (props: DialogProps) => void;
5
+ declare const useAlertDialog: () => (props: DialogProps) => void;
6
+ //#endregion
7
+ export { useAlertDialog, useConfirmDialog, useDialog };
8
+ //# sourceMappingURL=useDialog.d.ts.map
@@ -1,22 +1,26 @@
1
- import { useDialog } from "../components/DialogProvider";
2
- export { useDialog };
3
- export const useConfirmDialog = () => {
4
- const dialog = useDialog();
5
- return (props) => {
6
- dialog({
7
- color: "danger",
8
- cancelable: true,
9
- ...props,
10
- });
11
- };
1
+ import { useDialog } from "../components/DialogProvider.js";
2
+ //#region src/hooks/useDialog.ts
3
+ const useConfirmDialog = () => {
4
+ const dialog = useDialog();
5
+ return (props) => {
6
+ dialog({
7
+ color: "danger",
8
+ cancelable: true,
9
+ ...props
10
+ });
11
+ };
12
12
  };
13
- export const useAlertDialog = () => {
14
- const dialog = useDialog();
15
- return (props) => {
16
- dialog({
17
- color: "warning",
18
- cancelable: false,
19
- ...props,
20
- });
21
- };
13
+ const useAlertDialog = () => {
14
+ const dialog = useDialog();
15
+ return (props) => {
16
+ dialog({
17
+ color: "warning",
18
+ cancelable: false,
19
+ ...props
20
+ });
21
+ };
22
22
  };
23
+ //#endregion
24
+ export { useAlertDialog, useConfirmDialog, useDialog };
25
+
26
+ //# sourceMappingURL=useDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDialog.js","names":[],"sources":["../../../src/hooks/useDialog.ts"],"sourcesContent":["import { type DialogProps, useDialog } from \"../components/DialogProvider\";\r\n\r\nexport { useDialog };\r\n\r\nexport const useConfirmDialog = () => {\r\n const dialog = useDialog();\r\n return (props: DialogProps) => {\r\n dialog({\r\n color: \"danger\",\r\n cancelable: true,\r\n ...props,\r\n });\r\n };\r\n};\r\n\r\nexport const useAlertDialog = () => {\r\n const dialog = useDialog();\r\n return (props: DialogProps) => {\r\n dialog({\r\n color: \"warning\",\r\n cancelable: false,\r\n ...props,\r\n });\r\n };\r\n};\r\n"],"mappings":";;AAIA,MAAa,yBAAyB;CACpC,MAAM,SAAS,WAAW;AAC1B,SAAQ,UAAuB;AAC7B,SAAO;GACL,OAAO;GACP,YAAY;GACZ,GAAG;GACJ,CAAC;;;AAIN,MAAa,uBAAuB;CAClC,MAAM,SAAS,WAAW;AAC1B,SAAQ,UAAuB;AAC7B,SAAO;GACL,OAAO;GACP,YAAY;GACZ,GAAG;GACJ,CAAC"}
@@ -1,5 +1,9 @@
1
- import type { ComponentPropsWithoutRef } from "react";
2
- interface GoogleIconProps extends ComponentPropsWithoutRef<"svg"> {
3
- }
4
- export declare function GoogleIcon(props: GoogleIconProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
1
+ import { ComponentPropsWithoutRef } from "react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/icons/GoogleIcon.d.ts
5
+ interface GoogleIconProps extends ComponentPropsWithoutRef<"svg"> {}
6
+ declare function GoogleIcon(props: GoogleIconProps): _$react_jsx_runtime0.JSX.Element;
7
+ //#endregion
8
+ export { GoogleIcon };
9
+ //# sourceMappingURL=GoogleIcon.d.ts.map
@@ -1,4 +1,33 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export function GoogleIcon(props) {
3
- return (_jsxs("svg", { "aria-hidden": "true", viewBox: "10 10 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsx("path", { d: "M29.6 20.2273C29.6 19.5182 29.5364 18.8364 29.4182 18.1818H20V22.05H25.3818C25.15 23.3 24.4455 24.3591 23.3864 25.0682V27.5773H26.6182C28.5091 25.8364 29.6 23.2727 29.6 20.2273Z", fill: "#4285F4" }), _jsx("path", { d: "M20 30C22.7 30 24.9636 29.1045 26.6181 27.5773L23.3863 25.0682C22.4909 25.6682 21.3454 26.0227 20 26.0227C17.3954 26.0227 15.1909 24.2636 14.4045 21.9H11.0636V24.4909C12.7091 27.7591 16.0909 30 20 30Z", fill: "#34A853" }), _jsx("path", { d: "M14.4045 21.9C14.2045 21.3 14.0909 20.6591 14.0909 20C14.0909 19.3409 14.2045 18.7 14.4045 18.1V15.5091H11.0636C10.3864 16.8591 10 18.3864 10 20C10 21.6136 10.3864 23.1409 11.0636 24.4909L14.4045 21.9Z", fill: "#FBBC04" }), _jsx("path", { d: "M20 13.9773C21.4681 13.9773 22.7863 14.4818 23.8227 15.4727L26.6909 12.6045C24.9591 10.9909 22.6954 10 20 10C16.0909 10 12.7091 12.2409 11.0636 15.5091L14.4045 18.1C15.1909 15.7364 17.3954 13.9773 20 13.9773Z", fill: "#E94235" })] }));
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ //#region src/icons/GoogleIcon.tsx
3
+ function GoogleIcon(props) {
4
+ return /* @__PURE__ */ jsxs("svg", {
5
+ "aria-hidden": "true",
6
+ viewBox: "10 10 20 20",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ ...props,
10
+ children: [
11
+ /* @__PURE__ */ jsx("path", {
12
+ d: "M29.6 20.2273C29.6 19.5182 29.5364 18.8364 29.4182 18.1818H20V22.05H25.3818C25.15 23.3 24.4455 24.3591 23.3864 25.0682V27.5773H26.6182C28.5091 25.8364 29.6 23.2727 29.6 20.2273Z",
13
+ fill: "#4285F4"
14
+ }),
15
+ /* @__PURE__ */ jsx("path", {
16
+ d: "M20 30C22.7 30 24.9636 29.1045 26.6181 27.5773L23.3863 25.0682C22.4909 25.6682 21.3454 26.0227 20 26.0227C17.3954 26.0227 15.1909 24.2636 14.4045 21.9H11.0636V24.4909C12.7091 27.7591 16.0909 30 20 30Z",
17
+ fill: "#34A853"
18
+ }),
19
+ /* @__PURE__ */ jsx("path", {
20
+ d: "M14.4045 21.9C14.2045 21.3 14.0909 20.6591 14.0909 20C14.0909 19.3409 14.2045 18.7 14.4045 18.1V15.5091H11.0636C10.3864 16.8591 10 18.3864 10 20C10 21.6136 10.3864 23.1409 11.0636 24.4909L14.4045 21.9Z",
21
+ fill: "#FBBC04"
22
+ }),
23
+ /* @__PURE__ */ jsx("path", {
24
+ d: "M20 13.9773C21.4681 13.9773 22.7863 14.4818 23.8227 15.4727L26.6909 12.6045C24.9591 10.9909 22.6954 10 20 10C16.0909 10 12.7091 12.2409 11.0636 15.5091L14.4045 18.1C15.1909 15.7364 17.3954 13.9773 20 13.9773Z",
25
+ fill: "#E94235"
26
+ })
27
+ ]
28
+ });
4
29
  }
30
+ //#endregion
31
+ export { GoogleIcon };
32
+
33
+ //# sourceMappingURL=GoogleIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GoogleIcon.js","names":[],"sources":["../../../src/icons/GoogleIcon.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef } from \"react\";\r\n\r\ninterface GoogleIconProps extends ComponentPropsWithoutRef<\"svg\"> {}\r\n\r\nexport function GoogleIcon(props: GoogleIconProps) {\r\n return (\r\n <svg\r\n aria-hidden=\"true\"\r\n viewBox=\"10 10 20 20\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n {...props}\r\n >\r\n <path\r\n d=\"M29.6 20.2273C29.6 19.5182 29.5364 18.8364 29.4182 18.1818H20V22.05H25.3818C25.15 23.3 24.4455 24.3591 23.3864 25.0682V27.5773H26.6182C28.5091 25.8364 29.6 23.2727 29.6 20.2273Z\"\r\n fill=\"#4285F4\"\r\n />\r\n <path\r\n d=\"M20 30C22.7 30 24.9636 29.1045 26.6181 27.5773L23.3863 25.0682C22.4909 25.6682 21.3454 26.0227 20 26.0227C17.3954 26.0227 15.1909 24.2636 14.4045 21.9H11.0636V24.4909C12.7091 27.7591 16.0909 30 20 30Z\"\r\n fill=\"#34A853\"\r\n />\r\n <path\r\n d=\"M14.4045 21.9C14.2045 21.3 14.0909 20.6591 14.0909 20C14.0909 19.3409 14.2045 18.7 14.4045 18.1V15.5091H11.0636C10.3864 16.8591 10 18.3864 10 20C10 21.6136 10.3864 23.1409 11.0636 24.4909L14.4045 21.9Z\"\r\n fill=\"#FBBC04\"\r\n />\r\n <path\r\n d=\"M20 13.9773C21.4681 13.9773 22.7863 14.4818 23.8227 15.4727L26.6909 12.6045C24.9591 10.9909 22.6954 10 20 10C16.0909 10 12.7091 12.2409 11.0636 15.5091L14.4045 18.1C15.1909 15.7364 17.3954 13.9773 20 13.9773Z\"\r\n fill=\"#E94235\"\r\n />\r\n </svg>\r\n );\r\n}\r\n"],"mappings":";;AAIA,SAAgB,WAAW,OAAwB;AACjD,QACE,qBAAC,OAAD;EACE,eAAY;EACZ,SAAQ;EACR,MAAK;EACL,OAAM;EACN,GAAI;YALN;GAOE,oBAAC,QAAD;IACE,GAAE;IACF,MAAK;IACL,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAK;IACL,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAK;IACL,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAK;IACL,CAAA;GACE"}
@@ -1,5 +1,9 @@
1
- import type { ComponentPropsWithoutRef } from "react";
2
- interface LinkedInIconProps extends ComponentPropsWithoutRef<"svg"> {
3
- }
4
- export declare function LinkedInIcon(props: LinkedInIconProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
1
+ import { ComponentPropsWithoutRef } from "react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/icons/LinkedInIcon.d.ts
5
+ interface LinkedInIconProps extends ComponentPropsWithoutRef<"svg"> {}
6
+ declare function LinkedInIcon(props: LinkedInIconProps): _$react_jsx_runtime0.JSX.Element;
7
+ //#endregion
8
+ export { LinkedInIcon };
9
+ //# sourceMappingURL=LinkedInIcon.d.ts.map
@@ -1,4 +1,28 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export function LinkedInIcon(props) {
3
- return (_jsx("svg", { "aria-hidden": "true", height: "72", width: "72", viewBox: "0 0 72 72", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: _jsxs("g", { fill: "none", fillRule: "evenodd", children: [_jsx("path", { d: "M8 72h56c4.418 0 8-3.582 8-8V8c0-4.418-3.582-8-8-8H8C3.582 0 0 3.582 0 8v56c0 4.418 3.582 8 8 8Z", fill: "#007EBB" }), _jsx("path", { d: "M62 62H51.316V43.802c0-4.99-1.896-7.778-5.845-7.778-4.296 0-6.541 2.901-6.541 7.777V62H28.633V27.333h10.297v4.67S42.026 26.274 49.383 26.274C56.736 26.274 62 30.764 62 40.051zM16.349 22.794c-3.507 0-6.349-2.864-6.349-6.397C10 12.864 12.842 10 16.349 10c3.507 0 6.348 2.864 6.348 6.397 0 3.533-2.84 6.397-6.348 6.397zM11.033 62h10.737V27.333H11.033z", fill: "#FFF" })] }) }));
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ //#region src/icons/LinkedInIcon.tsx
3
+ function LinkedInIcon(props) {
4
+ return /* @__PURE__ */ jsx("svg", {
5
+ "aria-hidden": "true",
6
+ height: "72",
7
+ width: "72",
8
+ viewBox: "0 0 72 72",
9
+ fill: "none",
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ ...props,
12
+ children: /* @__PURE__ */ jsxs("g", {
13
+ fill: "none",
14
+ fillRule: "evenodd",
15
+ children: [/* @__PURE__ */ jsx("path", {
16
+ d: "M8 72h56c4.418 0 8-3.582 8-8V8c0-4.418-3.582-8-8-8H8C3.582 0 0 3.582 0 8v56c0 4.418 3.582 8 8 8Z",
17
+ fill: "#007EBB"
18
+ }), /* @__PURE__ */ jsx("path", {
19
+ d: "M62 62H51.316V43.802c0-4.99-1.896-7.778-5.845-7.778-4.296 0-6.541 2.901-6.541 7.777V62H28.633V27.333h10.297v4.67S42.026 26.274 49.383 26.274C56.736 26.274 62 30.764 62 40.051zM16.349 22.794c-3.507 0-6.349-2.864-6.349-6.397C10 12.864 12.842 10 16.349 10c3.507 0 6.348 2.864 6.348 6.397 0 3.533-2.84 6.397-6.348 6.397zM11.033 62h10.737V27.333H11.033z",
20
+ fill: "#FFF"
21
+ })]
22
+ })
23
+ });
4
24
  }
25
+ //#endregion
26
+ export { LinkedInIcon };
27
+
28
+ //# sourceMappingURL=LinkedInIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkedInIcon.js","names":[],"sources":["../../../src/icons/LinkedInIcon.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef } from \"react\";\r\n\r\ninterface LinkedInIconProps extends ComponentPropsWithoutRef<\"svg\"> {}\r\n\r\nexport function LinkedInIcon(props: LinkedInIconProps) {\r\n return (\r\n <svg\r\n aria-hidden=\"true\"\r\n height=\"72\"\r\n width=\"72\"\r\n viewBox=\"0 0 72 72\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n {...props}\r\n >\r\n <g fill=\"none\" fillRule=\"evenodd\">\r\n <path\r\n d=\"M8 72h56c4.418 0 8-3.582 8-8V8c0-4.418-3.582-8-8-8H8C3.582 0 0 3.582 0 8v56c0 4.418 3.582 8 8 8Z\"\r\n fill=\"#007EBB\"\r\n />\r\n <path\r\n d=\"M62 62H51.316V43.802c0-4.99-1.896-7.778-5.845-7.778-4.296 0-6.541 2.901-6.541 7.777V62H28.633V27.333h10.297v4.67S42.026 26.274 49.383 26.274C56.736 26.274 62 30.764 62 40.051zM16.349 22.794c-3.507 0-6.349-2.864-6.349-6.397C10 12.864 12.842 10 16.349 10c3.507 0 6.348 2.864 6.348 6.397 0 3.533-2.84 6.397-6.348 6.397zM11.033 62h10.737V27.333H11.033z\"\r\n fill=\"#FFF\"\r\n />\r\n </g>\r\n </svg>\r\n );\r\n}\r\n\r\n\r\n"],"mappings":";;AAIA,SAAgB,aAAa,OAA0B;AACrD,QACE,oBAAC,OAAD;EACE,eAAY;EACZ,QAAO;EACP,OAAM;EACN,SAAQ;EACR,MAAK;EACL,OAAM;EACN,GAAI;YAEJ,qBAAC,KAAD;GAAG,MAAK;GAAO,UAAS;aAAxB,CACE,oBAAC,QAAD;IACE,GAAE;IACF,MAAK;IACL,CAAA,EACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAK;IACL,CAAA,CACA;;EACA,CAAA"}
@@ -1,5 +1,9 @@
1
- import type { ComponentPropsWithoutRef } from "react";
2
- interface MicrosoftIconProps extends ComponentPropsWithoutRef<"svg"> {
3
- }
4
- export declare function MicrosoftIcon(props: MicrosoftIconProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
1
+ import { ComponentPropsWithoutRef } from "react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/icons/MicrosoftIcon.d.ts
5
+ interface MicrosoftIconProps extends ComponentPropsWithoutRef<"svg"> {}
6
+ declare function MicrosoftIcon(props: MicrosoftIconProps): _$react_jsx_runtime0.JSX.Element;
7
+ //#endregion
8
+ export { MicrosoftIcon };
9
+ //# sourceMappingURL=MicrosoftIcon.d.ts.map
@@ -1,4 +1,32 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export function MicrosoftIcon(props) {
3
- return (_jsxs("svg", { "aria-hidden": "true", viewBox: "0 0 21 21", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsx("path", { fill: "#F35325", d: "M0 0h10v10H0z" }), _jsx("path", { fill: "#81BC06", d: "M11 0h10v10H11z" }), _jsx("path", { fill: "#05A6F0", d: "M0 11h10v10H0z" }), _jsx("path", { fill: "#FFBA08", d: "M11 11h10v10H11z" })] }));
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ //#region src/icons/MicrosoftIcon.tsx
3
+ function MicrosoftIcon(props) {
4
+ return /* @__PURE__ */ jsxs("svg", {
5
+ "aria-hidden": "true",
6
+ viewBox: "0 0 21 21",
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ ...props,
9
+ children: [
10
+ /* @__PURE__ */ jsx("path", {
11
+ fill: "#F35325",
12
+ d: "M0 0h10v10H0z"
13
+ }),
14
+ /* @__PURE__ */ jsx("path", {
15
+ fill: "#81BC06",
16
+ d: "M11 0h10v10H11z"
17
+ }),
18
+ /* @__PURE__ */ jsx("path", {
19
+ fill: "#05A6F0",
20
+ d: "M0 11h10v10H0z"
21
+ }),
22
+ /* @__PURE__ */ jsx("path", {
23
+ fill: "#FFBA08",
24
+ d: "M11 11h10v10H11z"
25
+ })
26
+ ]
27
+ });
4
28
  }
29
+ //#endregion
30
+ export { MicrosoftIcon };
31
+
32
+ //# sourceMappingURL=MicrosoftIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MicrosoftIcon.js","names":[],"sources":["../../../src/icons/MicrosoftIcon.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef } from \"react\";\r\n\r\ninterface MicrosoftIconProps extends ComponentPropsWithoutRef<\"svg\"> {}\r\n\r\nexport function MicrosoftIcon(props: MicrosoftIconProps) {\r\n return (\r\n <svg\r\n aria-hidden=\"true\"\r\n viewBox=\"0 0 21 21\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n {...props}\r\n >\r\n <path fill=\"#F35325\" d=\"M0 0h10v10H0z\" />\r\n <path fill=\"#81BC06\" d=\"M11 0h10v10H11z\" />\r\n <path fill=\"#05A6F0\" d=\"M0 11h10v10H0z\" />\r\n <path fill=\"#FFBA08\" d=\"M11 11h10v10H11z\" />\r\n </svg>\r\n );\r\n}\r\n\r\n\r\n"],"mappings":";;AAIA,SAAgB,cAAc,OAA2B;AACvD,QACE,qBAAC,OAAD;EACE,eAAY;EACZ,SAAQ;EACR,OAAM;EACN,GAAI;YAJN;GAME,oBAAC,QAAD;IAAM,MAAK;IAAU,GAAE;IAAkB,CAAA;GACzC,oBAAC,QAAD;IAAM,MAAK;IAAU,GAAE;IAAoB,CAAA;GAC3C,oBAAC,QAAD;IAAM,MAAK;IAAU,GAAE;IAAmB,CAAA;GAC1C,oBAAC,QAAD;IAAM,MAAK;IAAU,GAAE;IAAqB,CAAA;GACxC"}
@@ -1,11 +1,20 @@
1
- export declare function startChatwoot({ baseUrl, websiteToken, }: {
2
- baseUrl: string;
3
- websiteToken: string;
4
- }, { user, }: {
5
- user?: {
6
- id: string;
7
- email: string;
8
- name?: string | null;
9
- image?: string | null;
10
- };
1
+ //#region src/lib/chatwoot.d.ts
2
+ declare function startChatwoot({
3
+ baseUrl,
4
+ websiteToken
5
+ }: {
6
+ baseUrl: string;
7
+ websiteToken: string;
8
+ }, {
9
+ user
10
+ }: {
11
+ user?: {
12
+ id: string;
13
+ email: string;
14
+ name?: string | null;
15
+ image?: string | null;
16
+ };
11
17
  }, allowAnonymous?: boolean): void;
18
+ //#endregion
19
+ export { startChatwoot };
20
+ //# sourceMappingURL=chatwoot.d.ts.map
@@ -1,28 +1,26 @@
1
- export function startChatwoot({ baseUrl, websiteToken, }, { user, }, allowAnonymous) {
2
- // avoid loading twice
3
- if (window.chatwootSDK)
4
- return;
5
- if (!allowAnonymous && !user) {
6
- throw new Error("User is required to start Chatwoot");
7
- }
8
- const script = document.createElement("script");
9
- script.src = `${baseUrl}/packs/js/sdk.js`;
10
- script.async = true;
11
- script.onload = () => {
12
- window.chatwootSDK.run({
13
- websiteToken,
14
- baseUrl,
15
- });
16
- };
17
- document.body.appendChild(script);
18
- if (user) {
19
- window.addEventListener("chatwoot:ready", () => {
20
- // @ts-expect-error chatwoot is in global window
21
- window.$chatwoot.setUser(user.id, {
22
- email: user.email,
23
- name: user.name,
24
- avatar_url: user.image,
25
- });
26
- });
27
- }
1
+ //#region src/lib/chatwoot.ts
2
+ function startChatwoot({ baseUrl, websiteToken }, { user }, allowAnonymous) {
3
+ if (window.chatwootSDK) return;
4
+ if (!allowAnonymous && !user) throw new Error("User is required to start Chatwoot");
5
+ const script = document.createElement("script");
6
+ script.src = `${baseUrl}/packs/js/sdk.js`;
7
+ script.async = true;
8
+ script.onload = () => {
9
+ window.chatwootSDK.run({
10
+ websiteToken,
11
+ baseUrl
12
+ });
13
+ };
14
+ document.body.appendChild(script);
15
+ if (user) window.addEventListener("chatwoot:ready", () => {
16
+ window.$chatwoot.setUser(user.id, {
17
+ email: user.email,
18
+ name: user.name,
19
+ avatar_url: user.image
20
+ });
21
+ });
28
22
  }
23
+ //#endregion
24
+ export { startChatwoot };
25
+
26
+ //# sourceMappingURL=chatwoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatwoot.js","names":[],"sources":["../../../src/lib/chatwoot.ts"],"sourcesContent":["export function startChatwoot(\r\n {\r\n baseUrl,\r\n websiteToken,\r\n }: {\r\n baseUrl: string;\r\n websiteToken: string;\r\n },\r\n {\r\n user,\r\n }: {\r\n user?: {\r\n id: string;\r\n email: string;\r\n name?: string | null;\r\n image?: string | null;\r\n };\r\n },\r\n allowAnonymous?: boolean\r\n) {\r\n // avoid loading twice\r\n if ((window as any).chatwootSDK) return;\r\n\r\n if (!allowAnonymous && !user) {\r\n throw new Error(\"User is required to start Chatwoot\");\r\n }\r\n\r\n const script = document.createElement(\"script\");\r\n script.src = `${baseUrl}/packs/js/sdk.js`;\r\n script.async = true;\r\n\r\n script.onload = () => {\r\n (window as any).chatwootSDK.run({\r\n websiteToken,\r\n baseUrl,\r\n });\r\n };\r\n\r\n document.body.appendChild(script);\r\n\r\n if (user) {\r\n window.addEventListener(\"chatwoot:ready\", () => {\r\n // @ts-expect-error chatwoot is in global window\r\n window.$chatwoot.setUser(user.id, {\r\n email: user.email,\r\n name: user.name,\r\n avatar_url: user.image,\r\n });\r\n });\r\n }\r\n}\r\n"],"mappings":";AAAA,SAAgB,cACd,EACE,SACA,gBAKF,EACE,QASF,gBACA;AAEA,KAAK,OAAe,YAAa;AAEjC,KAAI,CAAC,kBAAkB,CAAC,KACtB,OAAM,IAAI,MAAM,qCAAqC;CAGvD,MAAM,SAAS,SAAS,cAAc,SAAS;AAC/C,QAAO,MAAM,GAAG,QAAQ;AACxB,QAAO,QAAQ;AAEf,QAAO,eAAe;AACnB,SAAe,YAAY,IAAI;GAC9B;GACA;GACD,CAAC;;AAGJ,UAAS,KAAK,YAAY,OAAO;AAEjC,KAAI,KACF,QAAO,iBAAiB,wBAAwB;AAE9C,SAAO,UAAU,QAAQ,KAAK,IAAI;GAChC,OAAO,KAAK;GACZ,MAAM,KAAK;GACX,YAAY,KAAK;GAClB,CAAC;GACF"}
@@ -1,2 +1,7 @@
1
- import { type ClassValue } from "clsx";
2
- export declare function cn(...inputs: ClassValue[]): string;
1
+ import { ClassValue } from "clsx";
2
+
3
+ //#region src/lib/utils.d.ts
4
+ declare function cn(...inputs: ClassValue[]): string;
5
+ //#endregion
6
+ export { cn };
7
+ //# sourceMappingURL=utils.d.ts.map
@@ -1,5 +1,10 @@
1
1
  import { clsx } from "clsx";
2
2
  import { twMerge } from "tailwind-merge";
3
- export function cn(...inputs) {
4
- return twMerge(clsx(inputs));
3
+ //#region src/lib/utils.ts
4
+ function cn(...inputs) {
5
+ return twMerge(clsx(inputs));
5
6
  }
7
+ //#endregion
8
+ export { cn };
9
+
10
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","names":[],"sources":["../../../src/lib/utils.ts"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n return twMerge(clsx(inputs));\r\n}\r\n"],"mappings":";;;AAGA,SAAgB,GAAG,GAAG,QAAsB;AAC1C,QAAO,QAAQ,KAAK,OAAO,CAAC"}
@@ -1,2 +1,8 @@
1
- import { type SpinnerProps } from "@heroui/react";
2
- export declare function AppLoader(props: SpinnerProps): import("react/jsx-runtime").JSX.Element;
1
+ import { SpinnerProps } from "@heroui/react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/modules/app/components/AppLoader.d.ts
5
+ declare function AppLoader(props: SpinnerProps): _$react_jsx_runtime0.JSX.Element;
6
+ //#endregion
7
+ export { AppLoader };
8
+ //# sourceMappingURL=AppLoader.d.ts.map