@m5kdev/web-ui 0.7.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,5 +1,16 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  import { Spinner } from "@heroui/react";
3
- export function AppLoader(props) {
4
- return (_jsx("div", { className: "flex h-screen w-full justify-center align-center", children: _jsx(Spinner, { size: "lg", ...props }) }));
2
+ import { jsx } from "react/jsx-runtime";
3
+ //#region src/modules/app/components/AppLoader.tsx
4
+ function AppLoader(props) {
5
+ return /* @__PURE__ */ jsx("div", {
6
+ className: "flex h-screen w-full justify-center align-center",
7
+ children: /* @__PURE__ */ jsx(Spinner, {
8
+ size: "lg",
9
+ ...props
10
+ })
11
+ });
5
12
  }
13
+ //#endregion
14
+ export { AppLoader };
15
+
16
+ //# sourceMappingURL=AppLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppLoader.js","names":[],"sources":["../../../../../src/modules/app/components/AppLoader.tsx"],"sourcesContent":["import { Spinner, type SpinnerProps } from \"@heroui/react\";\r\n\r\nexport function AppLoader(props: SpinnerProps) {\r\n return (\r\n <div className=\"flex h-screen w-full justify-center align-center\">\r\n <Spinner size=\"lg\" {...props} />\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;AAEA,SAAgB,UAAU,OAAqB;AAC7C,QACE,oBAAC,OAAD;EAAK,WAAU;YACb,oBAAC,SAAD;GAAS,MAAK;GAAK,GAAI;GAAS,CAAA;EAC5B,CAAA"}
@@ -1,7 +1,16 @@
1
- import type { ReactNode } from "react";
2
- import { type AppSidebarProps } from "./AppSidebar";
3
- export type AppShellProps = {
4
- header?: ReactNode;
5
- sidebar: AppSidebarProps;
1
+ import { AppSidebarProps } from "./AppSidebar.js";
2
+ import { ReactNode } from "react";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/modules/app/components/AppShell.d.ts
6
+ type AppShellProps = {
7
+ header?: ReactNode;
8
+ sidebar: AppSidebarProps;
6
9
  };
7
- export declare function AppShell({ header, sidebar }: AppShellProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function AppShell({
11
+ header,
12
+ sidebar
13
+ }: AppShellProps): _$react_jsx_runtime0.JSX.Element;
14
+ //#endregion
15
+ export { AppShell, AppShellProps };
16
+ //# sourceMappingURL=AppShell.d.ts.map
@@ -1,7 +1,16 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { SidebarInset, SidebarProvider } from "@m5kdev/web-ui/components/ui/sidebar";
1
+ import { AppSidebar } from "./AppSidebar.js";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Outlet } from "react-router";
4
- import { AppSidebar } from "./AppSidebar";
5
- export function AppShell({ header, sidebar }) {
6
- return (_jsxs(SidebarProvider, { children: [header, _jsx(AppSidebar, { ...sidebar }), _jsx(SidebarInset, { children: _jsx(Outlet, {}) })] }));
4
+ import { SidebarInset, SidebarProvider } from "@m5kdev/web-ui/components/ui/sidebar";
5
+ //#region src/modules/app/components/AppShell.tsx
6
+ function AppShell({ header, sidebar }) {
7
+ return /* @__PURE__ */ jsxs(SidebarProvider, { children: [
8
+ header,
9
+ /* @__PURE__ */ jsx(AppSidebar, { ...sidebar }),
10
+ /* @__PURE__ */ jsx(SidebarInset, { children: /* @__PURE__ */ jsx(Outlet, {}) })
11
+ ] });
7
12
  }
13
+ //#endregion
14
+ export { AppShell };
15
+
16
+ //# sourceMappingURL=AppShell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppShell.js","names":[],"sources":["../../../../../src/modules/app/components/AppShell.tsx"],"sourcesContent":["import { SidebarInset, SidebarProvider } from \"@m5kdev/web-ui/components/ui/sidebar\";\r\nimport type { ReactNode } from \"react\";\r\nimport { Outlet } from \"react-router\";\r\nimport { AppSidebar, type AppSidebarProps } from \"./AppSidebar\";\r\n\r\nexport type AppShellProps = {\r\n header?: ReactNode;\r\n sidebar: AppSidebarProps;\r\n};\r\n\r\nexport function AppShell({ header, sidebar }: AppShellProps) {\r\n return (\r\n <SidebarProvider>\r\n {header}\r\n <AppSidebar {...sidebar} />\r\n <SidebarInset>\r\n <Outlet />\r\n </SidebarInset>\r\n </SidebarProvider>\r\n );\r\n}\r\n"],"mappings":";;;;;AAUA,SAAgB,SAAS,EAAE,QAAQ,WAA0B;AAC3D,QACE,qBAAC,iBAAD,EAAA,UAAA;EACG;EACD,oBAAC,YAAD,EAAY,GAAI,SAAW,CAAA;EAC3B,oBAAC,cAAD,EAAA,UACE,oBAAC,QAAD,EAAU,CAAA,EACG,CAAA;EACC,EAAA,CAAA"}
@@ -1,7 +1,17 @@
1
- import type { ReactNode } from "react";
2
- export type AppSidebarProps = {
3
- header: ReactNode;
4
- content?: ReactNode;
5
- footer?: ReactNode;
1
+ import { ReactNode } from "react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/modules/app/components/AppSidebar.d.ts
5
+ type AppSidebarProps = {
6
+ header: ReactNode;
7
+ content?: ReactNode;
8
+ footer?: ReactNode;
6
9
  };
7
- export declare function AppSidebar({ header, content, footer }: AppSidebarProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function AppSidebar({
11
+ header,
12
+ content,
13
+ footer
14
+ }: AppSidebarProps): _$react_jsx_runtime0.JSX.Element;
15
+ //#endregion
16
+ export { AppSidebar, AppSidebarProps };
17
+ //# sourceMappingURL=AppSidebar.d.ts.map
@@ -1,5 +1,18 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarRail, } from "../../../components/ui/sidebar";
3
- export function AppSidebar({ header, content, footer }) {
4
- return (_jsxs(Sidebar, { collapsible: "icon", children: [_jsx(SidebarHeader, { children: header }), _jsx(SidebarContent, { children: content }), _jsx(SidebarFooter, { children: footer }), _jsx(SidebarRail, {})] }));
1
+ import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarRail } from "../../../components/ui/sidebar.js";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ //#region src/modules/app/components/AppSidebar.tsx
4
+ function AppSidebar({ header, content, footer }) {
5
+ return /* @__PURE__ */ jsxs(Sidebar, {
6
+ collapsible: "icon",
7
+ children: [
8
+ /* @__PURE__ */ jsx(SidebarHeader, { children: header }),
9
+ /* @__PURE__ */ jsx(SidebarContent, { children: content }),
10
+ /* @__PURE__ */ jsx(SidebarFooter, { children: footer }),
11
+ /* @__PURE__ */ jsx(SidebarRail, {})
12
+ ]
13
+ });
5
14
  }
15
+ //#endregion
16
+ export { AppSidebar };
17
+
18
+ //# sourceMappingURL=AppSidebar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppSidebar.js","names":[],"sources":["../../../../../src/modules/app/components/AppSidebar.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\r\nimport {\r\n Sidebar,\r\n SidebarContent,\r\n SidebarFooter,\r\n SidebarHeader,\r\n SidebarRail,\r\n} from \"../../../components/ui/sidebar\";\r\n\r\nexport type AppSidebarProps = {\r\n header: ReactNode;\r\n content?: ReactNode;\r\n\r\n footer?: ReactNode;\r\n};\r\n\r\nexport function AppSidebar({ header, content, footer }: AppSidebarProps) {\r\n return (\r\n <Sidebar collapsible=\"icon\">\r\n <SidebarHeader>{header}</SidebarHeader>\r\n <SidebarContent>{content}</SidebarContent>\r\n <SidebarFooter>{footer}</SidebarFooter>\r\n <SidebarRail />\r\n </Sidebar>\r\n );\r\n}\r\n"],"mappings":";;;AAgBA,SAAgB,WAAW,EAAE,QAAQ,SAAS,UAA2B;AACvE,QACE,qBAAC,SAAD;EAAS,aAAY;YAArB;GACE,oBAAC,eAAD,EAAA,UAAgB,QAAuB,CAAA;GACvC,oBAAC,gBAAD,EAAA,UAAiB,SAAyB,CAAA;GAC1C,oBAAC,eAAD,EAAA,UAAgB,QAAuB,CAAA;GACvC,oBAAC,aAAD,EAAe,CAAA;GACP"}
@@ -1,16 +1,25 @@
1
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+
3
+ //#region src/modules/app/components/AppSidebarContent.d.ts
1
4
  type NavigationItem = {
2
- label: string;
3
- icon: React.ReactNode;
4
- link: string;
5
- badge?: React.ReactNode;
5
+ label: string;
6
+ icon: React.ReactNode;
7
+ link: string;
8
+ badge?: React.ReactNode;
6
9
  };
7
- export type AppSidebarContentProps = {
8
- navigationItems: (NavigationItem & {
9
- defaultOpen?: boolean;
10
- subItems?: NavigationItem[];
11
- })[];
12
- navigationState: Record<string, boolean>;
13
- onNavigationStateChange: (state: Record<string, boolean>) => void;
10
+ type AppSidebarContentProps = {
11
+ navigationItems: (NavigationItem & {
12
+ defaultOpen?: boolean;
13
+ subItems?: NavigationItem[];
14
+ })[];
15
+ navigationState: Record<string, boolean>;
16
+ onNavigationStateChange: (state: Record<string, boolean>) => void;
14
17
  };
15
- export declare function AppSidebarContent({ navigationItems, navigationState, onNavigationStateChange, }: AppSidebarContentProps): import("react/jsx-runtime").JSX.Element;
16
- export {};
18
+ declare function AppSidebarContent({
19
+ navigationItems,
20
+ navigationState,
21
+ onNavigationStateChange
22
+ }: AppSidebarContentProps): _$react_jsx_runtime0.JSX.Element;
23
+ //#endregion
24
+ export { AppSidebarContent, AppSidebarContentProps };
25
+ //# sourceMappingURL=AppSidebarContent.d.ts.map
@@ -1,7 +1,36 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { SidebarGroup, SidebarMenu, SidebarMenuButton, SidebarMenuItem } from "../../../components/ui/sidebar.js";
2
+ import { CollapsibleSidebarMenuItem } from "../../../components/CollapsibleSidebarMenuItem.js";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
2
4
  import { Link } from "react-router";
3
- import { CollapsibleSidebarMenuItem } from "../../../components/CollapsibleSidebarMenuItem";
4
- import { SidebarGroup, SidebarMenu, SidebarMenuButton, SidebarMenuItem, } from "../../../components/ui/sidebar";
5
- export function AppSidebarContent({ navigationItems, navigationState, onNavigationStateChange, }) {
6
- return (_jsx(SidebarGroup, { children: _jsx(SidebarMenu, { children: navigationItems.map((item) => item.subItems ? (_jsx(CollapsibleSidebarMenuItem, { defaultOpen: item.defaultOpen, open: navigationState[item.label], label: item.label, icon: item.icon, link: item.link, badge: item.badge, onOpenChange: (open) => onNavigationStateChange({ ...navigationState, [item.label]: open }), children: item.subItems.map((subItem) => (_jsx(SidebarMenuItem, { children: _jsx(SidebarMenuButton, { asChild: true, children: _jsxs(Link, { to: subItem.link, children: [subItem.icon, _jsx("span", { children: subItem.label })] }) }) }, subItem.label))) }, item.label)) : (_jsx(SidebarMenuItem, { children: _jsx(SidebarMenuButton, { asChild: true, children: _jsxs(Link, { to: item.link, children: [item.icon, _jsx("span", { children: item.label })] }) }) }, item.label))) }) }));
5
+ //#region src/modules/app/components/AppSidebarContent.tsx
6
+ function AppSidebarContent({ navigationItems, navigationState, onNavigationStateChange }) {
7
+ return /* @__PURE__ */ jsx(SidebarGroup, { children: /* @__PURE__ */ jsx(SidebarMenu, { children: navigationItems.map((item) => item.subItems ? /* @__PURE__ */ jsx(CollapsibleSidebarMenuItem, {
8
+ defaultOpen: item.defaultOpen,
9
+ open: navigationState[item.label],
10
+ label: item.label,
11
+ icon: item.icon,
12
+ link: item.link,
13
+ badge: item.badge,
14
+ onOpenChange: (open) => onNavigationStateChange({
15
+ ...navigationState,
16
+ [item.label]: open
17
+ }),
18
+ children: item.subItems.map((subItem) => /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsx(SidebarMenuButton, {
19
+ asChild: true,
20
+ children: /* @__PURE__ */ jsxs(Link, {
21
+ to: subItem.link,
22
+ children: [subItem.icon, /* @__PURE__ */ jsx("span", { children: subItem.label })]
23
+ })
24
+ }) }, subItem.label))
25
+ }, item.label) : /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsx(SidebarMenuButton, {
26
+ asChild: true,
27
+ children: /* @__PURE__ */ jsxs(Link, {
28
+ to: item.link,
29
+ children: [item.icon, /* @__PURE__ */ jsx("span", { children: item.label })]
30
+ })
31
+ }) }, item.label)) }) });
7
32
  }
33
+ //#endregion
34
+ export { AppSidebarContent };
35
+
36
+ //# sourceMappingURL=AppSidebarContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppSidebarContent.js","names":[],"sources":["../../../../../src/modules/app/components/AppSidebarContent.tsx"],"sourcesContent":["import { Link } from \"react-router\";\r\nimport { CollapsibleSidebarMenuItem } from \"../../../components/CollapsibleSidebarMenuItem\";\r\nimport {\r\n SidebarGroup,\r\n SidebarMenu,\r\n SidebarMenuButton,\r\n SidebarMenuItem,\r\n} from \"../../../components/ui/sidebar\";\r\n\r\ntype NavigationItem = {\r\n label: string;\r\n icon: React.ReactNode;\r\n link: string;\r\n badge?: React.ReactNode;\r\n};\r\n\r\nexport type AppSidebarContentProps = {\r\n navigationItems: (NavigationItem & {\r\n defaultOpen?: boolean;\r\n subItems?: NavigationItem[];\r\n })[];\r\n navigationState: Record<string, boolean>;\r\n onNavigationStateChange: (state: Record<string, boolean>) => void;\r\n};\r\n\r\nexport function AppSidebarContent({\r\n navigationItems,\r\n navigationState,\r\n onNavigationStateChange,\r\n}: AppSidebarContentProps) {\r\n return (\r\n <SidebarGroup>\r\n <SidebarMenu>\r\n {navigationItems.map((item) =>\r\n item.subItems ? (\r\n <CollapsibleSidebarMenuItem\r\n key={item.label}\r\n defaultOpen={item.defaultOpen}\r\n open={navigationState[item.label]}\r\n label={item.label}\r\n icon={item.icon}\r\n link={item.link}\r\n badge={item.badge}\r\n onOpenChange={(open) =>\r\n onNavigationStateChange({ ...navigationState, [item.label]: open })\r\n }\r\n >\r\n {item.subItems.map((subItem) => (\r\n <SidebarMenuItem key={subItem.label}>\r\n <SidebarMenuButton asChild>\r\n <Link to={subItem.link}>\r\n {subItem.icon}\r\n <span>{subItem.label}</span>\r\n </Link>\r\n </SidebarMenuButton>\r\n </SidebarMenuItem>\r\n ))}\r\n </CollapsibleSidebarMenuItem>\r\n ) : (\r\n <SidebarMenuItem key={item.label}>\r\n <SidebarMenuButton asChild>\r\n <Link to={item.link}>\r\n {item.icon}\r\n <span>{item.label}</span>\r\n </Link>\r\n </SidebarMenuButton>\r\n </SidebarMenuItem>\r\n )\r\n )}\r\n </SidebarMenu>\r\n </SidebarGroup>\r\n );\r\n}\r\n"],"mappings":";;;;;AAyBA,SAAgB,kBAAkB,EAChC,iBACA,iBACA,2BACyB;AACzB,QACE,oBAAC,cAAD,EAAA,UACE,oBAAC,aAAD,EAAA,UACG,gBAAgB,KAAK,SACpB,KAAK,WACH,oBAAC,4BAAD;EAEE,aAAa,KAAK;EAClB,MAAM,gBAAgB,KAAK;EAC3B,OAAO,KAAK;EACZ,MAAM,KAAK;EACX,MAAM,KAAK;EACX,OAAO,KAAK;EACZ,eAAe,SACb,wBAAwB;GAAE,GAAG;IAAkB,KAAK,QAAQ;GAAM,CAAC;YAGpE,KAAK,SAAS,KAAK,YAClB,oBAAC,iBAAD,EAAA,UACE,oBAAC,mBAAD;GAAmB,SAAA;aACjB,qBAAC,MAAD;IAAM,IAAI,QAAQ;cAAlB,CACG,QAAQ,MACT,oBAAC,QAAD,EAAA,UAAO,QAAQ,OAAa,CAAA,CACvB;;GACW,CAAA,EACJ,EAPI,QAAQ,MAOZ,CAClB;EACyB,EArBtB,KAAK,MAqBiB,GAE7B,oBAAC,iBAAD,EAAA,UACE,oBAAC,mBAAD;EAAmB,SAAA;YACjB,qBAAC,MAAD;GAAM,IAAI,KAAK;aAAf,CACG,KAAK,MACN,oBAAC,QAAD,EAAA,UAAO,KAAK,OAAa,CAAA,CACpB;;EACW,CAAA,EACJ,EAPI,KAAK,MAOT,CAErB,EACW,CAAA,EACD,CAAA"}
@@ -1,8 +1,18 @@
1
- export declare function AppSidebarHeader({ logo, title, size, }: {
2
- logo: {
3
- src: string;
4
- alt: string;
5
- };
6
- title: string;
7
- size?: number;
8
- }): import("react/jsx-runtime").JSX.Element;
1
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+
3
+ //#region src/modules/app/components/AppSidebarHeader.d.ts
4
+ declare function AppSidebarHeader({
5
+ logo,
6
+ title,
7
+ size
8
+ }: {
9
+ logo: {
10
+ src: string;
11
+ alt: string;
12
+ };
13
+ title: string;
14
+ size?: number;
15
+ }): _$react_jsx_runtime0.JSX.Element;
16
+ //#endregion
17
+ export { AppSidebarHeader };
18
+ //# sourceMappingURL=AppSidebarHeader.d.ts.map
@@ -1,10 +1,41 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
1
  import { Button } from "@heroui/react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { ChevronsLeftIcon, ChevronsRightIcon } from "lucide-react";
4
+ import { Link as Link$1 } from "react-router";
3
5
  import { useSidebar } from "@m5kdev/web-ui/components/ui/sidebar";
4
6
  import { cn } from "@m5kdev/web-ui/utils";
5
- import { ChevronsLeftIcon, ChevronsRightIcon } from "lucide-react";
6
- import { Link } from "react-router";
7
- export function AppSidebarHeader({ logo, title, size = 30, }) {
8
- const { open, toggleSidebar } = useSidebar();
9
- return (_jsxs("div", { className: cn("flex justify-between items-center overflow-hidden gap-2", open ? "w-[239px] px-2 flex-row" : "w-auto flex-col"), children: [_jsxs(Link, { to: "/", className: cn("flex items-center font-medium overflow-hidden gap-2", open ? "w-[239px] px-2" : "w-auto"), style: { height: size }, children: [_jsx("img", { className: "shrink-0", src: logo.src, alt: logo.alt, style: { width: size, height: size } }), _jsx("span", { className: "group-data-[collapsible=icon]:hidden font-semibold text-lg text-neutral-900", children: title })] }), _jsx(Button, { isIconOnly: true, variant: "faded", size: "sm", className: "w-4 h-6", onPress: () => toggleSidebar(), children: open ? (_jsx(ChevronsLeftIcon, { className: "w-4 h-4" })) : (_jsx(ChevronsRightIcon, { className: "w-4 h-4" })) })] }));
7
+ //#region src/modules/app/components/AppSidebarHeader.tsx
8
+ function AppSidebarHeader({ logo, title, size = 30 }) {
9
+ const { open, toggleSidebar } = useSidebar();
10
+ return /* @__PURE__ */ jsxs("div", {
11
+ className: cn("flex justify-between items-center overflow-hidden gap-2", open ? "w-[239px] px-2 flex-row" : "w-auto flex-col"),
12
+ children: [/* @__PURE__ */ jsxs(Link$1, {
13
+ to: "/",
14
+ className: cn("flex items-center font-medium overflow-hidden gap-2", open ? "w-[239px] px-2" : "w-auto"),
15
+ style: { height: size },
16
+ children: [/* @__PURE__ */ jsx("img", {
17
+ className: "shrink-0",
18
+ src: logo.src,
19
+ alt: logo.alt,
20
+ style: {
21
+ width: size,
22
+ height: size
23
+ }
24
+ }), /* @__PURE__ */ jsx("span", {
25
+ className: "group-data-[collapsible=icon]:hidden font-semibold text-lg text-neutral-900",
26
+ children: title
27
+ })]
28
+ }), /* @__PURE__ */ jsx(Button, {
29
+ isIconOnly: true,
30
+ variant: "faded",
31
+ size: "sm",
32
+ className: "w-4 h-6",
33
+ onPress: () => toggleSidebar(),
34
+ children: open ? /* @__PURE__ */ jsx(ChevronsLeftIcon, { className: "w-4 h-4" }) : /* @__PURE__ */ jsx(ChevronsRightIcon, { className: "w-4 h-4" })
35
+ })]
36
+ });
10
37
  }
38
+ //#endregion
39
+ export { AppSidebarHeader };
40
+
41
+ //# sourceMappingURL=AppSidebarHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppSidebarHeader.js","names":["Link"],"sources":["../../../../../src/modules/app/components/AppSidebarHeader.tsx"],"sourcesContent":["import { Button } from \"@heroui/react\";\r\nimport { useSidebar } from \"@m5kdev/web-ui/components/ui/sidebar\";\r\nimport { cn } from \"@m5kdev/web-ui/utils\";\r\nimport { ChevronsLeftIcon, ChevronsRightIcon } from \"lucide-react\";\r\nimport { Link } from \"react-router\";\r\n\r\nexport function AppSidebarHeader({\r\n logo,\r\n title,\r\n size = 30,\r\n}: {\r\n logo: { src: string; alt: string };\r\n title: string;\r\n size?: number;\r\n}) {\r\n const { open, toggleSidebar } = useSidebar();\r\n return (\r\n <div\r\n className={cn(\r\n \"flex justify-between items-center overflow-hidden gap-2\",\r\n open ? \"w-[239px] px-2 flex-row\" : \"w-auto flex-col\"\r\n )}\r\n >\r\n <Link\r\n to=\"/\"\r\n className={cn(\r\n \"flex items-center font-medium overflow-hidden gap-2\",\r\n open ? \"w-[239px] px-2\" : \"w-auto\"\r\n )}\r\n style={{ height: size }}\r\n >\r\n <img\r\n className=\"shrink-0\"\r\n src={logo.src}\r\n alt={logo.alt}\r\n style={{ width: size, height: size }}\r\n />\r\n <span className=\"group-data-[collapsible=icon]:hidden font-semibold text-lg text-neutral-900\">\r\n {title}\r\n </span>\r\n </Link>\r\n <Button\r\n isIconOnly\r\n variant=\"faded\"\r\n size=\"sm\"\r\n className=\"w-4 h-6\"\r\n onPress={() => toggleSidebar()}\r\n >\r\n {open ? (\r\n <ChevronsLeftIcon className=\"w-4 h-4\" />\r\n ) : (\r\n <ChevronsRightIcon className=\"w-4 h-4\" />\r\n )}\r\n </Button>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;;AAMA,SAAgB,iBAAiB,EAC/B,MACA,OACA,OAAO,MAKN;CACD,MAAM,EAAE,MAAM,kBAAkB,YAAY;AAC5C,QACE,qBAAC,OAAD;EACE,WAAW,GACT,4DACA,OAAO,4BAA4B,kBACpC;YAJH,CAME,qBAACA,QAAD;GACE,IAAG;GACH,WAAW,GACT,uDACA,OAAO,mBAAmB,SAC3B;GACD,OAAO,EAAE,QAAQ,MAAM;aANzB,CAQE,oBAAC,OAAD;IACE,WAAU;IACV,KAAK,KAAK;IACV,KAAK,KAAK;IACV,OAAO;KAAE,OAAO;KAAM,QAAQ;KAAM;IACpC,CAAA,EACF,oBAAC,QAAD;IAAM,WAAU;cACb;IACI,CAAA,CACF;MACP,oBAAC,QAAD;GACE,YAAA;GACA,SAAQ;GACR,MAAK;GACL,WAAU;GACV,eAAe,eAAe;aAE7B,OACC,oBAAC,kBAAD,EAAkB,WAAU,WAAY,CAAA,GAExC,oBAAC,mBAAD,EAAmB,WAAU,WAAY,CAAA;GAEpC,CAAA,CACL"}
@@ -1,3 +1,11 @@
1
- export declare function AppSidebarInvites({ count }: {
2
- count: number;
3
- }): import("react/jsx-runtime").JSX.Element;
1
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+
3
+ //#region src/modules/app/components/AppSidebarInvites.d.ts
4
+ declare function AppSidebarInvites({
5
+ count
6
+ }: {
7
+ count: number;
8
+ }): _$react_jsx_runtime0.JSX.Element;
9
+ //#endregion
10
+ export { AppSidebarInvites };
11
+ //# sourceMappingURL=AppSidebarInvites.d.ts.map
@@ -1,12 +1,43 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
1
  import { Badge, Button, Tooltip } from "@heroui/react";
3
- import { useSidebar } from "@m5kdev/web-ui/components/ui/sidebar";
4
- import { cn } from "@m5kdev/web-ui/utils";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
5
3
  import { GiftIcon } from "lucide-react";
6
4
  import { useTranslation } from "react-i18next";
7
- import { Link } from "react-router";
8
- export function AppSidebarInvites({ count }) {
9
- const { open } = useSidebar();
10
- const { t } = useTranslation("web-ui");
11
- return (_jsx("div", { className: cn("flex justify-center w-auto"), children: _jsx(Tooltip, { content: t("sidebar.invites.title"), placement: "right", isDisabled: open, children: _jsx(Badge, { color: "primary", variant: "faded", content: count, size: "sm", isOneChar: true, children: _jsxs(Button, { as: Link, to: "/invites", className: cn("flex items-center gap-2"), isIconOnly: !open, size: "sm", variant: "light", children: [_jsx(GiftIcon, { className: "w-4 h-4 text-neutral-500" }), _jsx("span", { className: "group-data-[collapsible=icon]:hidden text-sm text-neutral-500", children: t("sidebar.invites.title") })] }) }) }) }));
5
+ import { Link as Link$1 } from "react-router";
6
+ import { useSidebar } from "@m5kdev/web-ui/components/ui/sidebar";
7
+ import { cn } from "@m5kdev/web-ui/utils";
8
+ //#region src/modules/app/components/AppSidebarInvites.tsx
9
+ function AppSidebarInvites({ count }) {
10
+ const { open } = useSidebar();
11
+ const { t } = useTranslation("web-ui");
12
+ return /* @__PURE__ */ jsx("div", {
13
+ className: cn("flex justify-center w-auto"),
14
+ children: /* @__PURE__ */ jsx(Tooltip, {
15
+ content: t("sidebar.invites.title"),
16
+ placement: "right",
17
+ isDisabled: open,
18
+ children: /* @__PURE__ */ jsx(Badge, {
19
+ color: "primary",
20
+ variant: "faded",
21
+ content: count,
22
+ size: "sm",
23
+ isOneChar: true,
24
+ children: /* @__PURE__ */ jsxs(Button, {
25
+ as: Link$1,
26
+ to: "/invites",
27
+ className: cn("flex items-center gap-2"),
28
+ isIconOnly: !open,
29
+ size: "sm",
30
+ variant: "light",
31
+ children: [/* @__PURE__ */ jsx(GiftIcon, { className: "w-4 h-4 text-neutral-500" }), /* @__PURE__ */ jsx("span", {
32
+ className: "group-data-[collapsible=icon]:hidden text-sm text-neutral-500",
33
+ children: t("sidebar.invites.title")
34
+ })]
35
+ })
36
+ })
37
+ })
38
+ });
12
39
  }
40
+ //#endregion
41
+ export { AppSidebarInvites };
42
+
43
+ //# sourceMappingURL=AppSidebarInvites.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppSidebarInvites.js","names":["Link"],"sources":["../../../../../src/modules/app/components/AppSidebarInvites.tsx"],"sourcesContent":["import { Badge, Button, Tooltip } from \"@heroui/react\";\r\nimport { useSidebar } from \"@m5kdev/web-ui/components/ui/sidebar\";\r\nimport { cn } from \"@m5kdev/web-ui/utils\";\r\nimport { GiftIcon } from \"lucide-react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { Link } from \"react-router\";\r\n\r\nexport function AppSidebarInvites({ count }: { count: number }) {\r\n const { open } = useSidebar();\r\n const { t } = useTranslation(\"web-ui\");\r\n return (\r\n <div className={cn(\"flex justify-center w-auto\")}>\r\n <Tooltip content={t(\"sidebar.invites.title\")} placement=\"right\" isDisabled={open}>\r\n <Badge color=\"primary\" variant=\"faded\" content={count} size=\"sm\" isOneChar>\r\n <Button\r\n as={Link}\r\n to=\"/invites\"\r\n className={cn(\"flex items-center gap-2\")}\r\n isIconOnly={!open}\r\n size=\"sm\"\r\n variant=\"light\"\r\n >\r\n <GiftIcon className=\"w-4 h-4 text-neutral-500\" />\r\n <span className=\"group-data-[collapsible=icon]:hidden text-sm text-neutral-500\">\r\n {t(\"sidebar.invites.title\")}\r\n </span>\r\n </Button>\r\n </Badge>\r\n </Tooltip>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;AAOA,SAAgB,kBAAkB,EAAE,SAA4B;CAC9D,MAAM,EAAE,SAAS,YAAY;CAC7B,MAAM,EAAE,MAAM,eAAe,SAAS;AACtC,QACE,oBAAC,OAAD;EAAK,WAAW,GAAG,6BAA6B;YAC9C,oBAAC,SAAD;GAAS,SAAS,EAAE,wBAAwB;GAAE,WAAU;GAAQ,YAAY;aAC1E,oBAAC,OAAD;IAAO,OAAM;IAAU,SAAQ;IAAQ,SAAS;IAAO,MAAK;IAAK,WAAA;cAC/D,qBAAC,QAAD;KACE,IAAIA;KACJ,IAAG;KACH,WAAW,GAAG,0BAA0B;KACxC,YAAY,CAAC;KACb,MAAK;KACL,SAAQ;eANV,CAQE,oBAAC,UAAD,EAAU,WAAU,4BAA6B,CAAA,EACjD,oBAAC,QAAD;MAAM,WAAU;gBACb,EAAE,wBAAwB;MACtB,CAAA,CACA;;IACH,CAAA;GACA,CAAA;EACN,CAAA"}
@@ -1,11 +1,21 @@
1
- export type AppSidebarUserProps = {
2
- user?: {
3
- name: string;
4
- email: string;
5
- image?: string | null;
6
- role?: string | null;
7
- };
8
- onSignOut: () => void;
9
- organizationSettingsPath?: string;
1
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+
3
+ //#region src/modules/app/components/AppSidebarUser.d.ts
4
+ type AppSidebarUserProps = {
5
+ user?: {
6
+ name: string;
7
+ email: string;
8
+ image?: string | null;
9
+ role?: string | null;
10
+ };
11
+ onSignOut: () => void;
12
+ organizationSettingsPath?: string;
10
13
  };
11
- export declare function AppSidebarUser({ user, onSignOut, organizationSettingsPath }: AppSidebarUserProps): import("react/jsx-runtime").JSX.Element;
14
+ declare function AppSidebarUser({
15
+ user,
16
+ onSignOut,
17
+ organizationSettingsPath
18
+ }: AppSidebarUserProps): _$react_jsx_runtime0.JSX.Element;
19
+ //#endregion
20
+ export { AppSidebarUser, AppSidebarUserProps };
21
+ //# sourceMappingURL=AppSidebarUser.d.ts.map
@@ -1,16 +1,125 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { Avatar, AvatarFallback, AvatarImage } from "../../../components/ui/avatar.js";
2
+ import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from "../../../components/ui/sidebar.js";
3
+ import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../../../components/ui/dropdown-menu.js";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
2
5
  import { Building2, ChevronsUpDown, CreditCard, LogOut, Settings, Sparkles, User } from "lucide-react";
3
6
  import { useTranslation } from "react-i18next";
4
7
  import { Link } from "react-router";
5
- import { Avatar, AvatarFallback, AvatarImage } from "../../../components/ui/avatar";
6
- import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "../../../components/ui/dropdown-menu";
7
- import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, } from "../../../components/ui/sidebar";
8
- export function AppSidebarUser({ user, onSignOut, organizationSettingsPath }) {
9
- const { name = "User", email = "email@example.com", image, role } = user || {};
10
- const isAdmin = role === "admin";
11
- const { isMobile } = useSidebar();
12
- const { t } = useTranslation("web-ui");
13
- return (_jsx(SidebarMenu, { children: _jsx(SidebarMenuItem, { children: _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(SidebarMenuButton, { size: "lg", className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground", children: [_jsxs(Avatar, { className: "h-8 w-8 rounded-lg", children: [_jsx(AvatarImage, { src: image ?? undefined, alt: name }), _jsx(AvatarFallback, { className: "rounded-lg", children: "CN" })] }), _jsxs("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [_jsx("span", { className: "truncate font-semibold", children: name }), _jsx("span", { className: "truncate text-xs", children: email })] }), _jsx(ChevronsUpDown, { className: "ml-auto size-4" })] }) }), _jsxs(DropdownMenuContent, { className: "w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg", side: isMobile ? "bottom" : "right", align: "end", sideOffset: 4, children: [_jsx(DropdownMenuLabel, { className: "p-0 font-normal", children: _jsxs("div", { className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm", children: [_jsxs(Avatar, { className: "h-8 w-8 rounded-lg", children: [_jsx(AvatarImage, { src: image ?? undefined, alt: name }), _jsx(AvatarFallback, { className: "rounded-lg", children: "CN" })] }), _jsxs("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [_jsx("span", { className: "truncate font-semibold", children: name }), _jsx("span", { className: "truncate text-xs", children: email })] })] }) }), _jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuGroup, { children: _jsx(Link, { to: "/billing", children: _jsxs(DropdownMenuItem, { className: "cursor-pointer", children: [_jsx(Sparkles, {}), t("web-ui:sidebar.user.upgradeToPro")] }) }) }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuGroup, { children: [isAdmin && (_jsx(Link, { to: "/admin", children: _jsxs(DropdownMenuItem, { className: "cursor-pointer", children: [_jsx(Settings, {}), t("web-ui:sidebar.user.adminDashboard")] }) })), organizationSettingsPath && (_jsx(Link, { to: organizationSettingsPath, children: _jsxs(DropdownMenuItem, { className: "cursor-pointer", children: [_jsx(Building2, {}), t("web-ui:sidebar.user.organizationSettings", {
14
- defaultValue: "Organization settings",
15
- })] }) })), _jsx(Link, { to: "/profile", children: _jsxs(DropdownMenuItem, { className: "cursor-pointer", children: [_jsx(User, {}), t("web-ui:sidebar.user.account")] }) }), _jsx(Link, { to: "/billing", children: _jsxs(DropdownMenuItem, { className: "cursor-pointer", children: [_jsx(CreditCard, {}), t("web-ui:sidebar.user.billing")] }) })] }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { className: "cursor-pointer", onClick: onSignOut, children: [_jsx(LogOut, {}), t("web-ui:sidebar.user.logout")] })] })] }) }) }));
8
+ //#region src/modules/app/components/AppSidebarUser.tsx
9
+ function AppSidebarUser({ user, onSignOut, organizationSettingsPath }) {
10
+ const { name = "User", email = "email@example.com", image, role } = user || {};
11
+ const isAdmin = role === "admin";
12
+ const { isMobile } = useSidebar();
13
+ const { t } = useTranslation("web-ui");
14
+ return /* @__PURE__ */ jsx(SidebarMenu, { children: /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
15
+ asChild: true,
16
+ children: /* @__PURE__ */ jsxs(SidebarMenuButton, {
17
+ size: "lg",
18
+ className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
19
+ children: [
20
+ /* @__PURE__ */ jsxs(Avatar, {
21
+ className: "h-8 w-8 rounded-lg",
22
+ children: [/* @__PURE__ */ jsx(AvatarImage, {
23
+ src: image ?? void 0,
24
+ alt: name
25
+ }), /* @__PURE__ */ jsx(AvatarFallback, {
26
+ className: "rounded-lg",
27
+ children: "CN"
28
+ })]
29
+ }),
30
+ /* @__PURE__ */ jsxs("div", {
31
+ className: "grid flex-1 text-left text-sm leading-tight",
32
+ children: [/* @__PURE__ */ jsx("span", {
33
+ className: "truncate font-semibold",
34
+ children: name
35
+ }), /* @__PURE__ */ jsx("span", {
36
+ className: "truncate text-xs",
37
+ children: email
38
+ })]
39
+ }),
40
+ /* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-auto size-4" })
41
+ ]
42
+ })
43
+ }), /* @__PURE__ */ jsxs(DropdownMenuContent, {
44
+ className: "w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",
45
+ side: isMobile ? "bottom" : "right",
46
+ align: "end",
47
+ sideOffset: 4,
48
+ children: [
49
+ /* @__PURE__ */ jsx(DropdownMenuLabel, {
50
+ className: "p-0 font-normal",
51
+ children: /* @__PURE__ */ jsxs("div", {
52
+ className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm",
53
+ children: [/* @__PURE__ */ jsxs(Avatar, {
54
+ className: "h-8 w-8 rounded-lg",
55
+ children: [/* @__PURE__ */ jsx(AvatarImage, {
56
+ src: image ?? void 0,
57
+ alt: name
58
+ }), /* @__PURE__ */ jsx(AvatarFallback, {
59
+ className: "rounded-lg",
60
+ children: "CN"
61
+ })]
62
+ }), /* @__PURE__ */ jsxs("div", {
63
+ className: "grid flex-1 text-left text-sm leading-tight",
64
+ children: [/* @__PURE__ */ jsx("span", {
65
+ className: "truncate font-semibold",
66
+ children: name
67
+ }), /* @__PURE__ */ jsx("span", {
68
+ className: "truncate text-xs",
69
+ children: email
70
+ })]
71
+ })]
72
+ })
73
+ }),
74
+ /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
75
+ /* @__PURE__ */ jsx(DropdownMenuGroup, { children: /* @__PURE__ */ jsx(Link, {
76
+ to: "/billing",
77
+ children: /* @__PURE__ */ jsxs(DropdownMenuItem, {
78
+ className: "cursor-pointer",
79
+ children: [/* @__PURE__ */ jsx(Sparkles, {}), t("web-ui:sidebar.user.upgradeToPro")]
80
+ })
81
+ }) }),
82
+ /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
83
+ /* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [
84
+ isAdmin && /* @__PURE__ */ jsx(Link, {
85
+ to: "/admin",
86
+ children: /* @__PURE__ */ jsxs(DropdownMenuItem, {
87
+ className: "cursor-pointer",
88
+ children: [/* @__PURE__ */ jsx(Settings, {}), t("web-ui:sidebar.user.adminDashboard")]
89
+ })
90
+ }),
91
+ organizationSettingsPath && /* @__PURE__ */ jsx(Link, {
92
+ to: organizationSettingsPath,
93
+ children: /* @__PURE__ */ jsxs(DropdownMenuItem, {
94
+ className: "cursor-pointer",
95
+ children: [/* @__PURE__ */ jsx(Building2, {}), t("web-ui:sidebar.user.organizationSettings", { defaultValue: "Organization settings" })]
96
+ })
97
+ }),
98
+ /* @__PURE__ */ jsx(Link, {
99
+ to: "/profile",
100
+ children: /* @__PURE__ */ jsxs(DropdownMenuItem, {
101
+ className: "cursor-pointer",
102
+ children: [/* @__PURE__ */ jsx(User, {}), t("web-ui:sidebar.user.account")]
103
+ })
104
+ }),
105
+ /* @__PURE__ */ jsx(Link, {
106
+ to: "/billing",
107
+ children: /* @__PURE__ */ jsxs(DropdownMenuItem, {
108
+ className: "cursor-pointer",
109
+ children: [/* @__PURE__ */ jsx(CreditCard, {}), t("web-ui:sidebar.user.billing")]
110
+ })
111
+ })
112
+ ] }),
113
+ /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
114
+ /* @__PURE__ */ jsxs(DropdownMenuItem, {
115
+ className: "cursor-pointer",
116
+ onClick: onSignOut,
117
+ children: [/* @__PURE__ */ jsx(LogOut, {}), t("web-ui:sidebar.user.logout")]
118
+ })
119
+ ]
120
+ })] }) }) });
16
121
  }
122
+ //#endregion
123
+ export { AppSidebarUser };
124
+
125
+ //# sourceMappingURL=AppSidebarUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppSidebarUser.js","names":[],"sources":["../../../../../src/modules/app/components/AppSidebarUser.tsx"],"sourcesContent":["import { Building2, ChevronsUpDown, CreditCard, LogOut, Settings, Sparkles, User } from \"lucide-react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { Link } from \"react-router\";\r\nimport { Avatar, AvatarFallback, AvatarImage } from \"../../../components/ui/avatar\";\r\nimport {\r\n DropdownMenu,\r\n DropdownMenuContent,\r\n DropdownMenuGroup,\r\n DropdownMenuItem,\r\n DropdownMenuLabel,\r\n DropdownMenuSeparator,\r\n DropdownMenuTrigger,\r\n} from \"../../../components/ui/dropdown-menu\";\r\nimport {\r\n SidebarMenu,\r\n SidebarMenuButton,\r\n SidebarMenuItem,\r\n useSidebar,\r\n} from \"../../../components/ui/sidebar\";\r\n\r\nexport type AppSidebarUserProps = {\r\n user?: {\r\n name: string;\r\n email: string;\r\n image?: string | null;\r\n role?: string | null;\r\n };\r\n onSignOut: () => void;\r\n organizationSettingsPath?: string;\r\n};\r\n\r\nexport function AppSidebarUser({ user, onSignOut, organizationSettingsPath }: AppSidebarUserProps) {\r\n const { name = \"User\", email = \"email@example.com\", image, role } = user || {};\r\n const isAdmin = role === \"admin\";\r\n const { isMobile } = useSidebar();\r\n const { t } = useTranslation(\"web-ui\");\r\n\r\n return (\r\n <SidebarMenu>\r\n <SidebarMenuItem>\r\n <DropdownMenu>\r\n <DropdownMenuTrigger asChild>\r\n <SidebarMenuButton\r\n size=\"lg\"\r\n className=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\r\n >\r\n <Avatar className=\"h-8 w-8 rounded-lg\">\r\n <AvatarImage src={image ?? undefined} alt={name} />\r\n <AvatarFallback className=\"rounded-lg\">CN</AvatarFallback>\r\n </Avatar>\r\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\r\n <span className=\"truncate font-semibold\">{name}</span>\r\n <span className=\"truncate text-xs\">{email}</span>\r\n </div>\r\n <ChevronsUpDown className=\"ml-auto size-4\" />\r\n </SidebarMenuButton>\r\n </DropdownMenuTrigger>\r\n <DropdownMenuContent\r\n className=\"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg\"\r\n side={isMobile ? \"bottom\" : \"right\"}\r\n align=\"end\"\r\n sideOffset={4}\r\n >\r\n <DropdownMenuLabel className=\"p-0 font-normal\">\r\n <div className=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\r\n <Avatar className=\"h-8 w-8 rounded-lg\">\r\n <AvatarImage src={image ?? undefined} alt={name} />\r\n <AvatarFallback className=\"rounded-lg\">CN</AvatarFallback>\r\n </Avatar>\r\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\r\n <span className=\"truncate font-semibold\">{name}</span>\r\n <span className=\"truncate text-xs\">{email}</span>\r\n </div>\r\n </div>\r\n </DropdownMenuLabel>\r\n <DropdownMenuSeparator />\r\n <DropdownMenuGroup>\r\n <Link to=\"/billing\">\r\n <DropdownMenuItem className=\"cursor-pointer\">\r\n <Sparkles />\r\n {t(\"web-ui:sidebar.user.upgradeToPro\")}\r\n </DropdownMenuItem>\r\n </Link>\r\n </DropdownMenuGroup>\r\n <DropdownMenuSeparator />\r\n <DropdownMenuGroup>\r\n {isAdmin && (\r\n <Link to=\"/admin\">\r\n <DropdownMenuItem className=\"cursor-pointer\">\r\n <Settings />\r\n {t(\"web-ui:sidebar.user.adminDashboard\")}\r\n </DropdownMenuItem>\r\n </Link>\r\n )}\r\n {organizationSettingsPath && (\r\n <Link to={organizationSettingsPath}>\r\n <DropdownMenuItem className=\"cursor-pointer\">\r\n <Building2 />\r\n {t(\"web-ui:sidebar.user.organizationSettings\", {\r\n defaultValue: \"Organization settings\",\r\n })}\r\n </DropdownMenuItem>\r\n </Link>\r\n )}\r\n <Link to=\"/profile\">\r\n <DropdownMenuItem className=\"cursor-pointer\">\r\n <User />\r\n {t(\"web-ui:sidebar.user.account\")}\r\n </DropdownMenuItem>\r\n </Link>\r\n <Link to=\"/billing\">\r\n <DropdownMenuItem className=\"cursor-pointer\">\r\n <CreditCard />\r\n {t(\"web-ui:sidebar.user.billing\")}\r\n </DropdownMenuItem>\r\n </Link>\r\n </DropdownMenuGroup>\r\n <DropdownMenuSeparator />\r\n <DropdownMenuItem className=\"cursor-pointer\" onClick={onSignOut}>\r\n <LogOut />\r\n {t(\"web-ui:sidebar.user.logout\")}\r\n </DropdownMenuItem>\r\n </DropdownMenuContent>\r\n </DropdownMenu>\r\n </SidebarMenuItem>\r\n </SidebarMenu>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;AA+BA,SAAgB,eAAe,EAAE,MAAM,WAAW,4BAAiD;CACjG,MAAM,EAAE,OAAO,QAAQ,QAAQ,qBAAqB,OAAO,SAAS,QAAQ,EAAE;CAC9E,MAAM,UAAU,SAAS;CACzB,MAAM,EAAE,aAAa,YAAY;CACjC,MAAM,EAAE,MAAM,eAAe,SAAS;AAEtC,QACE,oBAAC,aAAD,EAAA,UACE,oBAAC,iBAAD,EAAA,UACE,qBAAC,cAAD,EAAA,UAAA,CACE,oBAAC,qBAAD;EAAqB,SAAA;YACnB,qBAAC,mBAAD;GACE,MAAK;GACL,WAAU;aAFZ;IAIE,qBAAC,QAAD;KAAQ,WAAU;eAAlB,CACE,oBAAC,aAAD;MAAa,KAAK,SAAS,KAAA;MAAW,KAAK;MAAQ,CAAA,EACnD,oBAAC,gBAAD;MAAgB,WAAU;gBAAa;MAAmB,CAAA,CACnD;;IACT,qBAAC,OAAD;KAAK,WAAU;eAAf,CACE,oBAAC,QAAD;MAAM,WAAU;gBAA0B;MAAY,CAAA,EACtD,oBAAC,QAAD;MAAM,WAAU;gBAAoB;MAAa,CAAA,CAC7C;;IACN,oBAAC,gBAAD,EAAgB,WAAU,kBAAmB,CAAA;IAC3B;;EACA,CAAA,EACtB,qBAAC,qBAAD;EACE,WAAU;EACV,MAAM,WAAW,WAAW;EAC5B,OAAM;EACN,YAAY;YAJd;GAME,oBAAC,mBAAD;IAAmB,WAAU;cAC3B,qBAAC,OAAD;KAAK,WAAU;eAAf,CACE,qBAAC,QAAD;MAAQ,WAAU;gBAAlB,CACE,oBAAC,aAAD;OAAa,KAAK,SAAS,KAAA;OAAW,KAAK;OAAQ,CAAA,EACnD,oBAAC,gBAAD;OAAgB,WAAU;iBAAa;OAAmB,CAAA,CACnD;SACT,qBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,oBAAC,QAAD;OAAM,WAAU;iBAA0B;OAAY,CAAA,EACtD,oBAAC,QAAD;OAAM,WAAU;iBAAoB;OAAa,CAAA,CAC7C;QACF;;IACY,CAAA;GACpB,oBAAC,uBAAD,EAAyB,CAAA;GACzB,oBAAC,mBAAD,EAAA,UACE,oBAAC,MAAD;IAAM,IAAG;cACP,qBAAC,kBAAD;KAAkB,WAAU;eAA5B,CACE,oBAAC,UAAD,EAAY,CAAA,EACX,EAAE,mCAAmC,CACrB;;IACd,CAAA,EACW,CAAA;GACpB,oBAAC,uBAAD,EAAyB,CAAA;GACzB,qBAAC,mBAAD,EAAA,UAAA;IACG,WACC,oBAAC,MAAD;KAAM,IAAG;eACP,qBAAC,kBAAD;MAAkB,WAAU;gBAA5B,CACE,oBAAC,UAAD,EAAY,CAAA,EACX,EAAE,qCAAqC,CACvB;;KACd,CAAA;IAER,4BACC,oBAAC,MAAD;KAAM,IAAI;eACR,qBAAC,kBAAD;MAAkB,WAAU;gBAA5B,CACE,oBAAC,WAAD,EAAa,CAAA,EACZ,EAAE,4CAA4C,EAC7C,cAAc,yBACf,CAAC,CACe;;KACd,CAAA;IAET,oBAAC,MAAD;KAAM,IAAG;eACP,qBAAC,kBAAD;MAAkB,WAAU;gBAA5B,CACE,oBAAC,MAAD,EAAQ,CAAA,EACP,EAAE,8BAA8B,CAChB;;KACd,CAAA;IACP,oBAAC,MAAD;KAAM,IAAG;eACP,qBAAC,kBAAD;MAAkB,WAAU;gBAA5B,CACE,oBAAC,YAAD,EAAc,CAAA,EACb,EAAE,8BAA8B,CAChB;;KACd,CAAA;IACW,EAAA,CAAA;GACpB,oBAAC,uBAAD,EAAyB,CAAA;GACzB,qBAAC,kBAAD;IAAkB,WAAU;IAAiB,SAAS;cAAtD,CACE,oBAAC,QAAD,EAAU,CAAA,EACT,EAAE,6BAA6B,CACf;;GACC;IACT,EAAA,CAAA,EACC,CAAA,EACN,CAAA"}
@@ -1,6 +1,13 @@
1
- import type { UseBackendTRPC } from "../../../types";
1
+ import { UseBackendTRPC } from "../../../types.js";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/modules/auth/components/AdminUserManagement.d.ts
2
5
  interface AdminUserManagementProps {
3
- useTRPC?: UseBackendTRPC;
6
+ useTRPC?: UseBackendTRPC;
4
7
  }
5
- export declare function AdminUserManagement({ useTRPC }: AdminUserManagementProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
8
+ declare function AdminUserManagement({
9
+ useTRPC
10
+ }: AdminUserManagementProps): _$react_jsx_runtime0.JSX.Element;
11
+ //#endregion
12
+ export { AdminUserManagement };
13
+ //# sourceMappingURL=AdminUserManagement.d.ts.map