@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminWaitlist.js","names":[],"sources":["../../../../../src/modules/auth/components/AdminWaitlist.tsx"],"sourcesContent":["import {\r\n Button,\r\n Dropdown,\r\n DropdownItem,\r\n DropdownMenu,\r\n DropdownTrigger,\r\n Input,\r\n Modal,\r\n ModalBody,\r\n ModalContent,\r\n ModalFooter,\r\n ModalHeader,\r\n Spinner,\r\n Table,\r\n TableBody,\r\n TableCell,\r\n TableColumn,\r\n TableHeader,\r\n TableRow,\r\n} from \"@heroui/react\";\r\nimport { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\r\nimport { Mail, MoreHorizontal, Search, Trash2, UserPlus, X } from \"lucide-react\";\r\nimport { useEffect, useId, useState } from \"react\";\r\nimport { toast } from \"sonner\";\r\nimport type { UseBackendTRPC } from \"../../../types\";\r\n\r\ninterface AdminWaitlistProps {\r\n useTRPC: UseBackendTRPC;\r\n}\r\n\r\nexport function AdminWaitlist({ useTRPC }: AdminWaitlistProps) {\r\n const trpc = useTRPC();\r\n const queryClient = useQueryClient();\r\n\r\n const { data: waitlist = [], isLoading } = useQuery(trpc.auth.listAdminWaitlist.queryOptions());\r\n const { mutate: invite, isPending: isInviting } = useMutation(\r\n trpc.auth.inviteFromWaitlist.mutationOptions({\r\n onSuccess: () => {\r\n queryClient.invalidateQueries({ queryKey: trpc.auth.listAdminWaitlist.queryKey() });\r\n toast.success(\"Invitation sent successfully\");\r\n },\r\n onError: (error) => {\r\n toast.error(\r\n `Failed to send invitation: ${error instanceof Error ? error.message : String(error)}`\r\n );\r\n },\r\n })\r\n );\r\n const { mutate: remove, isPending: isRemoving } = useMutation(\r\n trpc.auth.removeFromWaitlist.mutationOptions({\r\n onSuccess: () => {\r\n queryClient.invalidateQueries({ queryKey: trpc.auth.listAdminWaitlist.queryKey() });\r\n toast.success(\"Removed from waitlist successfully\");\r\n },\r\n onError: (error) => {\r\n toast.error(`Failed to remove: ${error instanceof Error ? error.message : String(error)}`);\r\n },\r\n onSettled: () => {\r\n setItemToDelete(null);\r\n },\r\n })\r\n );\r\n const { mutate: add, isPending: isAdding } = useMutation(\r\n trpc.auth.addToWaitlist.mutationOptions({\r\n onSuccess: () => {\r\n queryClient.invalidateQueries({ queryKey: trpc.auth.listAdminWaitlist.queryKey() });\r\n toast.success(\"Added to waitlist successfully\");\r\n },\r\n onError: (error) => {\r\n toast.error(\r\n `Failed to add to waitlist: ${error instanceof Error ? error.message : String(error)}`\r\n );\r\n },\r\n })\r\n );\r\n const emailInputId = useId();\r\n const [searchQuery, setSearchQuery] = useState(\"\");\r\n const [debouncedSearchQuery, setDebouncedSearchQuery] = useState(\"\");\r\n const [itemToDelete, setItemToDelete] = useState<string | null>(null);\r\n const [isAddModalOpen, setIsAddModalOpen] = useState(false);\r\n const [newEmail, setNewEmail] = useState(\"\");\r\n\r\n // Debounce search query\r\n useEffect(() => {\r\n const timer = setTimeout(() => {\r\n setDebouncedSearchQuery(searchQuery);\r\n }, 300);\r\n\r\n return () => clearTimeout(timer);\r\n }, [searchQuery]);\r\n\r\n const filteredWaitlist = waitlist.filter((item) =>\r\n item.email?.toLowerCase().includes(debouncedSearchQuery?.toLowerCase() ?? \"\")\r\n );\r\n\r\n const handleInvite = (id: string) => {\r\n invite({ id });\r\n };\r\n\r\n const handleRemove = () => {\r\n if (itemToDelete) {\r\n remove({ id: itemToDelete });\r\n }\r\n };\r\n\r\n const handleAdd = async () => {\r\n if (!newEmail.trim()) {\r\n toast.error(\"Please enter an email address\");\r\n return;\r\n }\r\n\r\n // Basic email validation\r\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\r\n if (!emailRegex.test(newEmail.trim())) {\r\n toast.error(\"Please enter a valid email address\");\r\n return;\r\n }\r\n\r\n add({ email: newEmail.trim() });\r\n setNewEmail(\"\");\r\n setIsAddModalOpen(false);\r\n };\r\n\r\n const formatDate = (date: Date | string | null) => {\r\n if (!date) return \"N/A\";\r\n const dateObj = typeof date === \"string\" ? new Date(date) : date;\r\n return dateObj.toLocaleDateString(undefined, {\r\n year: \"numeric\",\r\n month: \"short\",\r\n day: \"numeric\",\r\n hour: \"2-digit\",\r\n minute: \"2-digit\",\r\n });\r\n };\r\n\r\n const getStatusBadge = (status: string) => {\r\n const statusLower = status.toLowerCase();\r\n if (statusLower === \"invited\" || statusLower === \"active\") {\r\n return (\r\n <span className=\"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800\">\r\n {status}\r\n </span>\r\n );\r\n }\r\n if (statusLower === \"pending\") {\r\n return (\r\n <span className=\"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800\">\r\n {status}\r\n </span>\r\n );\r\n }\r\n return (\r\n <span className=\"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800\">\r\n {status}\r\n </span>\r\n );\r\n };\r\n\r\n if (isLoading) {\r\n return (\r\n <div className=\"flex justify-center p-8\">\r\n <Spinner />\r\n </div>\r\n );\r\n }\r\n\r\n return (\r\n <div className=\"space-y-4 p-4\">\r\n <div className=\"flex justify-between items-center\">\r\n <h2 className=\"text-xl font-semibold\">Waitlist Management</h2>\r\n <div className=\"flex items-center gap-2\">\r\n <Button onPress={() => setIsAddModalOpen(true)} size=\"sm\">\r\n <UserPlus className=\"h-4 w-4 mr-2\" />\r\n Add to Waitlist\r\n </Button>\r\n <div className=\"text-sm text-muted-foreground\">Total: {waitlist.length}</div>\r\n </div>\r\n </div>\r\n\r\n {/* Search */}\r\n <div className=\"flex flex-col sm:flex-row gap-3 items-start sm:items-center\">\r\n <form\r\n className=\"relative flex-1\"\r\n onSubmit={(e) => {\r\n e.preventDefault();\r\n setDebouncedSearchQuery(searchQuery);\r\n }}\r\n >\r\n <Search className=\"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground\" />\r\n <Input\r\n aria-label=\"Search by email\"\r\n placeholder=\"Search by email...\"\r\n className=\"pl-8 w-full\"\r\n value={searchQuery}\r\n onChange={(e) => setSearchQuery(e.target.value)}\r\n variant=\"bordered\"\r\n />\r\n {searchQuery && (\r\n <button\r\n type=\"button\"\r\n onClick={() => setSearchQuery(\"\")}\r\n className=\"absolute right-2.5 top-2.5 text-muted-foreground hover:text-foreground\"\r\n aria-label=\"Clear search\"\r\n >\r\n <X className=\"h-4 w-4\" />\r\n </button>\r\n )}\r\n </form>\r\n </div>\r\n\r\n <div className=\"border rounded-lg overflow-hidden\">\r\n <Table aria-label=\"Waitlist table\" removeWrapper>\r\n <TableHeader>\r\n <TableColumn>Email</TableColumn>\r\n <TableColumn>Status</TableColumn>\r\n <TableColumn>Created At</TableColumn>\r\n <TableColumn>Updated At</TableColumn>\r\n <TableColumn className=\"text-right\">Actions</TableColumn>\r\n </TableHeader>\r\n <TableBody\r\n items={filteredWaitlist}\r\n emptyContent={\r\n searchQuery\r\n ? \"No waitlist entries found matching your search\"\r\n : \"No waitlist entries found\"\r\n }\r\n >\r\n {(item) => (\r\n <TableRow key={item.id}>\r\n <TableCell className=\"font-medium\">{item.email}</TableCell>\r\n <TableCell>{getStatusBadge(item.status)}</TableCell>\r\n <TableCell>{formatDate(item.createdAt)}</TableCell>\r\n <TableCell>{formatDate(item.updatedAt)}</TableCell>\r\n <TableCell className=\"text-right\">\r\n <Dropdown placement=\"bottom-end\">\r\n <DropdownTrigger>\r\n <Button variant=\"light\" size=\"sm\" isIconOnly>\r\n <MoreHorizontal className=\"h-4 w-4\" />\r\n </Button>\r\n </DropdownTrigger>\r\n <DropdownMenu aria-label=\"Waitlist actions\">\r\n <DropdownItem\r\n key=\"invite\"\r\n onPress={() => handleInvite(item.id)}\r\n isDisabled={isInviting}\r\n >\r\n {isInviting ? (\r\n <>\r\n <Spinner className=\"mr-2 h-3 w-3\" />\r\n Inviting...\r\n </>\r\n ) : (\r\n <>\r\n <Mail className=\"mr-2 h-4 w-4\" />\r\n Send Invitation\r\n </>\r\n )}\r\n </DropdownItem>\r\n <DropdownItem\r\n key=\"remove\"\r\n className=\"text-danger\"\r\n onClick={() => setItemToDelete(item.id)}\r\n >\r\n <Trash2 className=\"mr-2 h-4 w-4\" />\r\n Remove\r\n </DropdownItem>\r\n </DropdownMenu>\r\n </Dropdown>\r\n </TableCell>\r\n </TableRow>\r\n )}\r\n </TableBody>\r\n </Table>\r\n </div>\r\n\r\n {/* Remove confirmation modal */}\r\n <Modal\r\n isOpen={!!itemToDelete}\r\n onOpenChange={(open) => {\r\n if (!open) setItemToDelete(null);\r\n }}\r\n >\r\n <ModalContent>\r\n {(onClose) => (\r\n <>\r\n <ModalHeader className=\"flex flex-col gap-1\">\r\n <p className=\"text-lg font-semibold\">Are you sure?</p>\r\n <p className=\"text-sm text-default-600\">\r\n This action cannot be undone. This will permanently remove this entry from the\r\n waitlist.\r\n </p>\r\n </ModalHeader>\r\n <ModalFooter>\r\n <Button variant=\"bordered\" onPress={onClose}>\r\n Cancel\r\n </Button>\r\n <Button color=\"danger\" onPress={handleRemove} isLoading={isRemoving}>\r\n Remove\r\n </Button>\r\n </ModalFooter>\r\n </>\r\n )}\r\n </ModalContent>\r\n </Modal>\r\n\r\n {/* Add to waitlist modal */}\r\n <Modal\r\n isOpen={isAddModalOpen}\r\n onOpenChange={(open) => {\r\n if (!open) setIsAddModalOpen(false);\r\n }}\r\n >\r\n <ModalContent>\r\n {(onClose) => (\r\n <form\r\n onSubmit={(e) => {\r\n e.preventDefault();\r\n handleAdd();\r\n }}\r\n className=\"space-y-4\"\r\n >\r\n <ModalHeader className=\"flex flex-col gap-1\">\r\n <p className=\"text-lg font-semibold\">Add to Waitlist</p>\r\n <p className=\"text-sm text-default-600\">\r\n Enter an email address to add someone to the waitlist.\r\n </p>\r\n </ModalHeader>\r\n\r\n <ModalBody className=\"space-y-4\">\r\n <div className=\"space-y-2\">\r\n <Input\r\n id={emailInputId}\r\n label=\"Email *\"\r\n labelPlacement=\"outside\"\r\n type=\"email\"\r\n placeholder=\"Enter email address\"\r\n value={newEmail}\r\n onChange={(e) => setNewEmail(e.target.value)}\r\n variant=\"bordered\"\r\n />\r\n </div>\r\n </ModalBody>\r\n\r\n <ModalFooter>\r\n <Button variant=\"bordered\" type=\"button\" onPress={onClose}>\r\n Cancel\r\n </Button>\r\n <Button type=\"submit\" color=\"primary\" isDisabled={isAdding} isLoading={isAdding}>\r\n {isAdding ? \"Adding...\" : \"Add to Waitlist\"}\r\n </Button>\r\n </ModalFooter>\r\n </form>\r\n )}\r\n </ModalContent>\r\n </Modal>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;;AA8BA,SAAgB,cAAc,EAAE,WAA+B;CAC7D,MAAM,OAAO,SAAS;CACtB,MAAM,cAAc,gBAAgB;CAEpC,MAAM,EAAE,MAAM,WAAW,EAAE,EAAE,cAAc,SAAS,KAAK,KAAK,kBAAkB,cAAc,CAAC;CAC/F,MAAM,EAAE,QAAQ,QAAQ,WAAW,eAAe,YAChD,KAAK,KAAK,mBAAmB,gBAAgB;EAC3C,iBAAiB;AACf,eAAY,kBAAkB,EAAE,UAAU,KAAK,KAAK,kBAAkB,UAAU,EAAE,CAAC;AACnF,SAAM,QAAQ,+BAA+B;;EAE/C,UAAU,UAAU;AACl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AE5D,CAAA,CACG,EAAA,CAAA,CACb,EAAA,CAAA,EAEQ,CAAA;IACT,CAAA;GAGR,oBAAC,OAAD;IACE,QAAQ;IACR,eAAe,SAAS;AACtB,SAAI,CAAC,KAAM,mBAAkB,MAAM;;cAGrC,oBAAC,cAAD,EAAA,WACI,YACA,qBAAC,QAAD;KACE,WAAW,MAAM;AACf,QAAE,gBAAgB;AAClB,iBAAW;;KAEb,WAAU;eALZ;MAOE,qBAAC,aAAD;OAAa,WAAU;iBAAvB,CACE,oBAAC,KAAD;QAAG,WAAU;kBAAwB;QAAmB,CAAA,EACxD,oBAAC,KAAD;QAAG,WAAU;kBAA2B;QAEpC,CAAA,CACQ;;MAEd,oBAAC,WAAD;OAAW,WAAU;iBACnB,oBAAC,OAAD;QAAK,WAAU;kBACb,oBAAC,OAAD;SACE,IAAI;SACJ,OAAM;SACN,gBAAe;SACf,MAAK;SACL,aAAY;SACZ,OAAO;SACP,WAAW,MAAM,YAAY,EAAE,OAAO,MAAM;SAC5C,SAAQ;SACR,CAAA;QACE,CAAA;OACI,CAAA;MAEZ,qBAAC,aAAD,EAAA,UAAA,CACE,oBAAC,QAAD;OAAQ,SAAQ;OAAW,MAAK;OAAS,SAAS;iBAAS;OAElD,CAAA,EACT,oBAAC,QAAD;OAAQ,MAAK;OAAS,OAAM;OAAU,YAAY;OAAU,WAAW;iBACpE,WAAW,cAAc;OACnB,CAAA,CACG,EAAA,CAAA;MACT;QAEI,CAAA;IACT,CAAA;GACJ"}
@@ -1,4 +1,12 @@
1
- import type { ReactNode } from "react";
2
- export declare function AuthLayout({ header }: {
3
- header: ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
1
+ import { ReactNode } from "react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/modules/auth/components/AuthLayout.d.ts
5
+ declare function AuthLayout({
6
+ header
7
+ }: {
8
+ header: ReactNode;
9
+ }): _$react_jsx_runtime0.JSX.Element;
10
+ //#endregion
11
+ export { AuthLayout };
12
+ //# sourceMappingURL=AuthLayout.d.ts.map
@@ -1,5 +1,19 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Outlet } from "react-router";
3
- export function AuthLayout({ header }) {
4
- return (_jsx("div", { className: "flex min-h-svh flex-col items-center justify-center gap-6 bg-muted p-6 md:p-10", children: _jsxs("div", { className: "flex w-full max-w-sm flex-col gap-6", children: [_jsx("div", { className: "flex items-center gap-2 self-center font-medium", children: header }), _jsx(Outlet, {})] }) }));
3
+ //#region src/modules/auth/components/AuthLayout.tsx
4
+ function AuthLayout({ header }) {
5
+ return /* @__PURE__ */ jsx("div", {
6
+ className: "flex min-h-svh flex-col items-center justify-center gap-6 bg-muted p-6 md:p-10",
7
+ children: /* @__PURE__ */ jsxs("div", {
8
+ className: "flex w-full max-w-sm flex-col gap-6",
9
+ children: [/* @__PURE__ */ jsx("div", {
10
+ className: "flex items-center gap-2 self-center font-medium",
11
+ children: header
12
+ }), /* @__PURE__ */ jsx(Outlet, {})]
13
+ })
14
+ });
5
15
  }
16
+ //#endregion
17
+ export { AuthLayout };
18
+
19
+ //# sourceMappingURL=AuthLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthLayout.js","names":[],"sources":["../../../../../src/modules/auth/components/AuthLayout.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\r\nimport { Outlet } from \"react-router\";\r\n\r\nexport function AuthLayout({ header }: { header: ReactNode }) {\r\n return (\r\n <div className=\"flex min-h-svh flex-col items-center justify-center gap-6 bg-muted p-6 md:p-10\">\r\n <div className=\"flex w-full max-w-sm flex-col gap-6\">\r\n <div className=\"flex items-center gap-2 self-center font-medium\">{header}</div>\r\n <Outlet />\r\n </div>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;AAGA,SAAgB,WAAW,EAAE,UAAiC;AAC5D,QACE,oBAAC,OAAD;EAAK,WAAU;YACb,qBAAC,OAAD;GAAK,WAAU;aAAf,CACE,oBAAC,OAAD;IAAK,WAAU;cAAmD;IAAa,CAAA,EAC/E,oBAAC,QAAD,EAAU,CAAA,CACN;;EACF,CAAA"}
@@ -1,6 +1,17 @@
1
- export declare function AuthProviders({ providers, lastMethod, code, requestSignUp, }: {
2
- providers?: string[];
3
- code?: string | null;
4
- requestSignUp?: boolean;
5
- lastMethod?: string | null;
6
- }): import("react/jsx-runtime").JSX.Element | null;
1
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+
3
+ //#region src/modules/auth/components/AuthProviders.d.ts
4
+ declare function AuthProviders({
5
+ providers,
6
+ lastMethod,
7
+ code,
8
+ requestSignUp
9
+ }: {
10
+ providers?: string[];
11
+ code?: string | null;
12
+ requestSignUp?: boolean;
13
+ lastMethod?: string | null;
14
+ }): _$react_jsx_runtime0.JSX.Element | null;
15
+ //#endregion
16
+ export { AuthProviders };
17
+ //# sourceMappingURL=AuthProviders.d.ts.map
@@ -1,45 +1,84 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { GoogleIcon } from "../../../icons/GoogleIcon.js";
2
+ import { LinkedInIcon } from "../../../icons/LinkedInIcon.js";
3
+ import { MicrosoftIcon } from "../../../icons/MicrosoftIcon.js";
4
+ import { LastUsedBadge } from "./LastUsedBadge.js";
2
5
  import { Button } from "@heroui/react";
3
- import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
6
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
7
  import { useTranslation } from "react-i18next";
5
8
  import { toast } from "sonner";
6
- import { GoogleIcon } from "../../../icons/GoogleIcon";
7
- import { LinkedInIcon } from "../../../icons/LinkedInIcon";
8
- import { MicrosoftIcon } from "../../../icons/MicrosoftIcon";
9
- import { LastUsedBadge } from "./LastUsedBadge";
10
- export function AuthProviders({ providers, lastMethod, code, requestSignUp = false, }) {
11
- const { t } = useTranslation();
12
- if (!providers || providers.length === 0)
13
- return null;
14
- const additionalData = code ? { waitlistInvitationCode: code } : {};
15
- const handleSignIn = (result) => {
16
- if (result.error) {
17
- toast.error(t("web-ui:auth.errors.invitationCodeInvalid"));
18
- }
19
- };
20
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex flex-col gap-4", children: [providers.includes("google") && (_jsx(LastUsedBadge, { lastMethod: lastMethod, method: "google", children: _jsxs(Button, { type: "button", variant: "bordered", className: "w-full gap-2", onPress: () => {
21
- authClient.signIn
22
- .social({
23
- provider: "google",
24
- requestSignUp,
25
- additionalData,
26
- })
27
- .then(handleSignIn);
28
- }, children: [_jsx(GoogleIcon, { className: "h-5 w-5" }), t("web-ui:auth.login.google")] }) })), providers.includes("linkedin") && (_jsx(LastUsedBadge, { lastMethod: lastMethod, method: "linkedin", children: _jsxs(Button, { type: "button", variant: "bordered", className: "w-full", onPress: () => {
29
- authClient.signIn
30
- .social({
31
- provider: "linkedin",
32
- requestSignUp,
33
- additionalData,
34
- })
35
- .then(handleSignIn);
36
- }, children: [_jsx(LinkedInIcon, { className: "h-5 w-5" }), t("web-ui:auth.login.linkedin")] }) })), providers.includes("microsoft") && (_jsx(LastUsedBadge, { lastMethod: lastMethod, method: "microsoft", children: _jsxs(Button, { type: "button", variant: "bordered", className: "w-full", onPress: () => {
37
- authClient.signIn
38
- .social({
39
- provider: "microsoft",
40
- requestSignUp,
41
- additionalData,
42
- })
43
- .then(handleSignIn);
44
- }, children: [_jsx(MicrosoftIcon, { className: "h-5 w-5" }), t("web-ui:auth.login.microsoft")] }) }))] }), _jsx("div", { className: "relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t after:border-border", children: _jsx("span", { className: "relative z-10 bg-background px-2 text-muted-foreground", children: t("web-ui:auth.login.orContinueWith") }) })] }));
9
+ import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
10
+ //#region src/modules/auth/components/AuthProviders.tsx
11
+ function AuthProviders({ providers, lastMethod, code, requestSignUp = false }) {
12
+ const { t } = useTranslation();
13
+ if (!providers || providers.length === 0) return null;
14
+ const additionalData = code ? { waitlistInvitationCode: code } : {};
15
+ const handleSignIn = (result) => {
16
+ if (result.error) toast.error(t("web-ui:auth.errors.invitationCodeInvalid"));
17
+ };
18
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
19
+ className: "flex flex-col gap-4",
20
+ children: [
21
+ providers.includes("google") && /* @__PURE__ */ jsx(LastUsedBadge, {
22
+ lastMethod,
23
+ method: "google",
24
+ children: /* @__PURE__ */ jsxs(Button, {
25
+ type: "button",
26
+ variant: "bordered",
27
+ className: "w-full gap-2",
28
+ onPress: () => {
29
+ authClient.signIn.social({
30
+ provider: "google",
31
+ requestSignUp,
32
+ additionalData
33
+ }).then(handleSignIn);
34
+ },
35
+ children: [/* @__PURE__ */ jsx(GoogleIcon, { className: "h-5 w-5" }), t("web-ui:auth.login.google")]
36
+ })
37
+ }),
38
+ providers.includes("linkedin") && /* @__PURE__ */ jsx(LastUsedBadge, {
39
+ lastMethod,
40
+ method: "linkedin",
41
+ children: /* @__PURE__ */ jsxs(Button, {
42
+ type: "button",
43
+ variant: "bordered",
44
+ className: "w-full",
45
+ onPress: () => {
46
+ authClient.signIn.social({
47
+ provider: "linkedin",
48
+ requestSignUp,
49
+ additionalData
50
+ }).then(handleSignIn);
51
+ },
52
+ children: [/* @__PURE__ */ jsx(LinkedInIcon, { className: "h-5 w-5" }), t("web-ui:auth.login.linkedin")]
53
+ })
54
+ }),
55
+ providers.includes("microsoft") && /* @__PURE__ */ jsx(LastUsedBadge, {
56
+ lastMethod,
57
+ method: "microsoft",
58
+ children: /* @__PURE__ */ jsxs(Button, {
59
+ type: "button",
60
+ variant: "bordered",
61
+ className: "w-full",
62
+ onPress: () => {
63
+ authClient.signIn.social({
64
+ provider: "microsoft",
65
+ requestSignUp,
66
+ additionalData
67
+ }).then(handleSignIn);
68
+ },
69
+ children: [/* @__PURE__ */ jsx(MicrosoftIcon, { className: "h-5 w-5" }), t("web-ui:auth.login.microsoft")]
70
+ })
71
+ })
72
+ ]
73
+ }), /* @__PURE__ */ jsx("div", {
74
+ className: "relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t after:border-border",
75
+ children: /* @__PURE__ */ jsx("span", {
76
+ className: "relative z-10 bg-background px-2 text-muted-foreground",
77
+ children: t("web-ui:auth.login.orContinueWith")
78
+ })
79
+ })] });
45
80
  }
81
+ //#endregion
82
+ export { AuthProviders };
83
+
84
+ //# sourceMappingURL=AuthProviders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthProviders.js","names":[],"sources":["../../../../../src/modules/auth/components/AuthProviders.tsx"],"sourcesContent":["import { Button } from \"@heroui/react\";\r\nimport { authClient } from \"@m5kdev/frontend/modules/auth/auth.lib\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { toast } from \"sonner\";\r\nimport { GoogleIcon } from \"../../../icons/GoogleIcon\";\r\nimport { LinkedInIcon } from \"../../../icons/LinkedInIcon\";\r\nimport { MicrosoftIcon } from \"../../../icons/MicrosoftIcon\";\r\nimport { LastUsedBadge } from \"./LastUsedBadge\";\r\n\r\nexport function AuthProviders({\r\n providers,\r\n lastMethod,\r\n code,\r\n requestSignUp = false,\r\n}: {\r\n providers?: string[];\r\n code?: string | null;\r\n requestSignUp?: boolean;\r\n lastMethod?: string | null;\r\n}) {\r\n const { t } = useTranslation();\r\n if (!providers || providers.length === 0) return null;\r\n const additionalData = code ? { waitlistInvitationCode: code } : {};\r\n\r\n const handleSignIn = (result: any) => {\r\n if (result.error) {\r\n toast.error(t(\"web-ui:auth.errors.invitationCodeInvalid\"));\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n <div className=\"flex flex-col gap-4\">\r\n {providers.includes(\"google\") && (\r\n <LastUsedBadge lastMethod={lastMethod} method=\"google\">\r\n <Button\r\n type=\"button\"\r\n variant=\"bordered\"\r\n className=\"w-full gap-2\"\r\n onPress={() => {\r\n authClient.signIn\r\n .social({\r\n provider: \"google\",\r\n requestSignUp,\r\n additionalData,\r\n })\r\n .then(handleSignIn);\r\n }}\r\n >\r\n <GoogleIcon className=\"h-5 w-5\" />\r\n {t(\"web-ui:auth.login.google\")}\r\n </Button>\r\n </LastUsedBadge>\r\n )}\r\n {providers.includes(\"linkedin\") && (\r\n <LastUsedBadge lastMethod={lastMethod} method=\"linkedin\">\r\n <Button\r\n type=\"button\"\r\n variant=\"bordered\"\r\n className=\"w-full\"\r\n onPress={() => {\r\n authClient.signIn\r\n .social({\r\n provider: \"linkedin\",\r\n requestSignUp,\r\n additionalData,\r\n })\r\n .then(handleSignIn);\r\n }}\r\n >\r\n <LinkedInIcon className=\"h-5 w-5\" />\r\n {t(\"web-ui:auth.login.linkedin\")}\r\n </Button>\r\n </LastUsedBadge>\r\n )}\r\n {providers.includes(\"microsoft\") && (\r\n <LastUsedBadge lastMethod={lastMethod} method=\"microsoft\">\r\n <Button\r\n type=\"button\"\r\n variant=\"bordered\"\r\n className=\"w-full\"\r\n onPress={() => {\r\n authClient.signIn\r\n .social({\r\n provider: \"microsoft\",\r\n requestSignUp,\r\n additionalData,\r\n })\r\n .then(handleSignIn);\r\n }}\r\n >\r\n <MicrosoftIcon className=\"h-5 w-5\" />\r\n {t(\"web-ui:auth.login.microsoft\")}\r\n </Button>\r\n </LastUsedBadge>\r\n )}\r\n </div>\r\n <div className=\"relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t after:border-border\">\r\n <span className=\"relative z-10 bg-background px-2 text-muted-foreground\">\r\n {t(\"web-ui:auth.login.orContinueWith\")}\r\n </span>\r\n </div>\r\n </>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;;;AASA,SAAgB,cAAc,EAC5B,WACA,YACA,MACA,gBAAgB,SAMf;CACD,MAAM,EAAE,MAAM,gBAAgB;AAC9B,KAAI,CAAC,aAAa,UAAU,WAAW,EAAG,QAAO;CACjD,MAAM,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ReactNode } from "react";
2
- import type { UseBackendTRPC } from "../../../types";
1
+ import { UseBackendTRPC } from "../../../types.js";
2
+ import { ReactNode } from "react";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/modules/auth/components/AuthRouter.d.ts
3
6
  interface AuthRouterProps {
4
- header: ReactNode;
5
- providers?: string[];
6
- useTRPC?: UseBackendTRPC;
7
+ header: ReactNode;
8
+ providers?: string[];
9
+ useTRPC?: UseBackendTRPC;
7
10
  }
8
- export declare function AuthRouter({ header, providers, useTRPC }: AuthRouterProps): import("react/jsx-runtime").JSX.Element;
9
- export {};
11
+ declare function AuthRouter({
12
+ header,
13
+ providers,
14
+ useTRPC
15
+ }: AuthRouterProps): _$react_jsx_runtime0.JSX.Element;
16
+ //#endregion
17
+ export { AuthRouter };
18
+ //# sourceMappingURL=AuthRouter.d.ts.map
@@ -1,12 +1,48 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { AuthLayout } from "./AuthLayout.js";
2
+ import { ClaimAccountRoute } from "./ClaimAccountRoute.js";
3
+ import { ErrorAuthRoute } from "./ErrorAuthRoute.js";
4
+ import { ForgotPasswordRoute } from "./ForgotPasswordRoute.js";
5
+ import { LoginRoute } from "./LoginRoute.js";
6
+ import { ResetPasswordRoute } from "./ResetPasswordRoute.js";
7
+ import { SignupRoute } from "./SignupRoute.js";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
2
9
  import { Route } from "react-router";
3
- import { AuthLayout } from "./AuthLayout";
4
- import { ClaimAccountRoute } from "./ClaimAccountRoute";
5
- import { ErrorAuthRoute } from "./ErrorAuthRoute";
6
- import { ForgotPasswordRoute } from "./ForgotPasswordRoute";
7
- import { LoginRoute } from "./LoginRoute";
8
- import { ResetPasswordRoute } from "./ResetPasswordRoute";
9
- import { SignupRoute } from "./SignupRoute";
10
- export function AuthRouter({ header, providers, useTRPC }) {
11
- return (_jsxs(Route, { element: _jsx(AuthLayout, { header: header }), children: [_jsx(Route, { path: "/login", element: _jsx(LoginRoute, { providers: providers }) }), _jsx(Route, { path: "/signup", element: _jsx(SignupRoute, { providers: providers, useTRPC: useTRPC }) }), _jsx(Route, { path: "/forgot-password", element: _jsx(ForgotPasswordRoute, {}) }), _jsx(Route, { path: "/reset-password", element: _jsx(ResetPasswordRoute, {}) }), _jsx(Route, { path: "/claim-account", element: _jsx(ClaimAccountRoute, { useTRPC: useTRPC }) }), _jsx(Route, { path: "/error-auth", element: _jsx(ErrorAuthRoute, {}) })] }));
10
+ //#region src/modules/auth/components/AuthRouter.tsx
11
+ function AuthRouter({ header, providers, useTRPC }) {
12
+ return /* @__PURE__ */ jsxs(Route, {
13
+ element: /* @__PURE__ */ jsx(AuthLayout, { header }),
14
+ children: [
15
+ /* @__PURE__ */ jsx(Route, {
16
+ path: "/login",
17
+ element: /* @__PURE__ */ jsx(LoginRoute, { providers })
18
+ }),
19
+ /* @__PURE__ */ jsx(Route, {
20
+ path: "/signup",
21
+ element: /* @__PURE__ */ jsx(SignupRoute, {
22
+ providers,
23
+ useTRPC
24
+ })
25
+ }),
26
+ /* @__PURE__ */ jsx(Route, {
27
+ path: "/forgot-password",
28
+ element: /* @__PURE__ */ jsx(ForgotPasswordRoute, {})
29
+ }),
30
+ /* @__PURE__ */ jsx(Route, {
31
+ path: "/reset-password",
32
+ element: /* @__PURE__ */ jsx(ResetPasswordRoute, {})
33
+ }),
34
+ /* @__PURE__ */ jsx(Route, {
35
+ path: "/claim-account",
36
+ element: /* @__PURE__ */ jsx(ClaimAccountRoute, { useTRPC })
37
+ }),
38
+ /* @__PURE__ */ jsx(Route, {
39
+ path: "/error-auth",
40
+ element: /* @__PURE__ */ jsx(ErrorAuthRoute, {})
41
+ })
42
+ ]
43
+ });
12
44
  }
45
+ //#endregion
46
+ export { AuthRouter };
47
+
48
+ //# sourceMappingURL=AuthRouter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthRouter.js","names":[],"sources":["../../../../../src/modules/auth/components/AuthRouter.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\r\nimport { Route } from \"react-router\";\r\nimport { AuthLayout } from \"./AuthLayout\";\r\nimport { ClaimAccountRoute } from \"./ClaimAccountRoute\";\r\nimport { ErrorAuthRoute } from \"./ErrorAuthRoute\";\r\nimport { ForgotPasswordRoute } from \"./ForgotPasswordRoute\";\r\nimport { LoginRoute } from \"./LoginRoute\";\r\nimport { ResetPasswordRoute } from \"./ResetPasswordRoute\";\r\nimport { SignupRoute } from \"./SignupRoute\";\r\nimport type { UseBackendTRPC } from \"../../../types\";\r\n\r\ninterface AuthRouterProps {\r\n header: ReactNode;\r\n providers?: string[];\r\n useTRPC?: UseBackendTRPC;\r\n}\r\n\r\nexport function AuthRouter({ header, providers, useTRPC }: AuthRouterProps) {\r\n return (\r\n <Route element={<AuthLayout header={header} />}>\r\n <Route path=\"/login\" element={<LoginRoute providers={providers} />} />\r\n <Route path=\"/signup\" element={<SignupRoute providers={providers} useTRPC={useTRPC} />} />\r\n <Route path=\"/forgot-password\" element={<ForgotPasswordRoute />} />\r\n <Route path=\"/reset-password\" element={<ResetPasswordRoute />} />\r\n <Route path=\"/claim-account\" element={<ClaimAccountRoute useTRPC={useTRPC} />} />\r\n <Route path=\"/error-auth\" element={<ErrorAuthRoute />} />\r\n </Route>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;;;AAiBA,SAAgB,WAAW,EAAE,QAAQ,WAAW,WAA4B;AAC1E,QACE,qBAAC,OAAD;EAAO,SAAS,oBAAC,YAAD,EAAoB,QAAU,CAAA;YAA9C;GACE,oBAAC,OAAD;IAAO,MAAK;IAAS,SAAS,oBAAC,YAAD,EAAuB,WAAa,CAAA;IAAI,CAAA;GACtE,oBAAC,OAAD;IAAO,MAAK;IAAU,SAAS,oBAAC,aAAD;KAAwB;KAAoB;KAAW,CAAA;IAAI,CAAA;GAC1F,oBAAC,OAAD;IAAO,MAAK;IAAmB,SAAS,oBAAC,qBAAD,EAAuB,CAAA;IAAI,CAAA;GACnE,oBAAC,OAAD;IAAO,MAAK;IAAkB,SAAS,oBAAC,oBAAD,EAAsB,CAAA;IAAI,CAAA;GACjE,oBAAC,OAAD;IAAO,MAAK;IAAiB,SAAS,oBAAC,mBAAD,EAA4B,SAAW,CAAA;IAAI,CAAA;GACjF,oBAAC,OAAD;IAAO,MAAK;IAAc,SAAS,oBAAC,gBAAD,EAAkB,CAAA;IAAI,CAAA;GACnD"}
@@ -1,4 +1,12 @@
1
- import type { UseBackendTRPC } from "../../../types";
2
- export declare function ClaimAccountRoute({ useTRPC }: {
3
- useTRPC?: UseBackendTRPC;
4
- }): import("react/jsx-runtime").JSX.Element;
1
+ import { UseBackendTRPC } from "../../../types.js";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/modules/auth/components/ClaimAccountRoute.d.ts
5
+ declare function ClaimAccountRoute({
6
+ useTRPC
7
+ }: {
8
+ useTRPC?: UseBackendTRPC;
9
+ }): _$react_jsx_runtime0.JSX.Element;
10
+ //#endregion
11
+ export { ClaimAccountRoute };
12
+ //# sourceMappingURL=ClaimAccountRoute.d.ts.map