@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,2 +1,7 @@
1
- import type { MotionNodeOptions } from "framer-motion";
2
- export declare const cardMotion: Partial<MotionNodeOptions>;
1
+ import { MotionNodeOptions } from "framer-motion";
2
+
3
+ //#region src/animations/card.motion.d.ts
4
+ declare const cardMotion: Partial<MotionNodeOptions>;
5
+ //#endregion
6
+ export { cardMotion };
7
+ //# sourceMappingURL=card.motion.d.ts.map
@@ -1,7 +1,26 @@
1
- export const cardMotion = {
2
- layout: true,
3
- initial: { opacity: 0, scale: 0.98 },
4
- animate: { opacity: 1, scale: 1 },
5
- exit: { opacity: 0, scale: 0.98, transition: { duration: 0.12 } },
6
- transition: { type: "spring", stiffness: 160, damping: 28 },
1
+ //#region src/animations/card.motion.ts
2
+ const cardMotion = {
3
+ layout: true,
4
+ initial: {
5
+ opacity: 0,
6
+ scale: .98
7
+ },
8
+ animate: {
9
+ opacity: 1,
10
+ scale: 1
11
+ },
12
+ exit: {
13
+ opacity: 0,
14
+ scale: .98,
15
+ transition: { duration: .12 }
16
+ },
17
+ transition: {
18
+ type: "spring",
19
+ stiffness: 160,
20
+ damping: 28
21
+ }
7
22
  };
23
+ //#endregion
24
+ export { cardMotion };
25
+
26
+ //# sourceMappingURL=card.motion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.motion.js","names":[],"sources":["../../../src/animations/card.motion.ts"],"sourcesContent":["import type { MotionNodeOptions } from \"framer-motion\";\r\n\r\nexport const cardMotion: Partial<MotionNodeOptions> = {\r\n layout: true,\r\n initial: { opacity: 0, scale: 0.98 },\r\n animate: { opacity: 1, scale: 1 },\r\n exit: { opacity: 0, scale: 0.98, transition: { duration: 0.12 } },\r\n transition: { type: \"spring\", stiffness: 160, damping: 28 },\r\n};\r\n"],"mappings":";AAEA,MAAa,aAAyC;CACpD,QAAQ;CACR,SAAS;EAAE,SAAS;EAAG,OAAO;EAAM;CACpC,SAAS;EAAE,SAAS;EAAG,OAAO;EAAG;CACjC,MAAM;EAAE,SAAS;EAAG,OAAO;EAAM,YAAY,EAAE,UAAU,KAAM;EAAE;CACjE,YAAY;EAAE,MAAM;EAAU,WAAW;EAAK,SAAS;EAAI;CAC5D"}
@@ -1,7 +1,16 @@
1
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+
3
+ //#region src/components/AvatarUpload.d.ts
1
4
  interface AvatarUploadProps {
2
- currentAvatarUrl?: string | null;
3
- onUploadComplete?: (avatarUrl: string) => void;
4
- className?: string;
5
+ currentAvatarUrl?: string | null;
6
+ onUploadComplete?: (avatarUrl: string) => void;
7
+ className?: string;
5
8
  }
6
- export declare function AvatarUpload({ currentAvatarUrl, onUploadComplete, className }: AvatarUploadProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
9
+ declare function AvatarUpload({
10
+ currentAvatarUrl,
11
+ onUploadComplete,
12
+ className
13
+ }: AvatarUploadProps): _$react_jsx_runtime0.JSX.Element;
14
+ //#endregion
15
+ export { AvatarUpload };
16
+ //# sourceMappingURL=AvatarUpload.d.ts.map
@@ -1,67 +1,109 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { cn } from "../lib/utils.js";
2
+ import { CropDialog } from "./CropDialog.js";
3
+ import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar.js";
4
+ import { Progress } from "./ui/progress.js";
5
+ import { useRef, useState } from "react";
6
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
2
7
  import { useFileUpload } from "@m5kdev/frontend/modules/file/hooks/useUpload";
3
8
  import { Edit2, User } from "lucide-react";
4
- import { useRef, useState } from "react";
5
9
  import { useTranslation } from "react-i18next";
6
- import { CropDialog } from "./CropDialog";
7
- import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar";
8
- import { Progress } from "./ui/progress";
9
- import { cn } from "../lib/utils";
10
- export function AvatarUpload({ currentAvatarUrl, onUploadComplete, className }) {
11
- const { t } = useTranslation();
12
- const [isHovered, setIsHovered] = useState(false);
13
- const [selectedFile, setSelectedFile] = useState(null);
14
- const [previewUrl, setPreviewUrl] = useState(currentAvatarUrl || null);
15
- const [showCropDialog, setShowCropDialog] = useState(false);
16
- const fileInputRef = useRef(null);
17
- const { upload, status, progress, errorMessage, reset } = useFileUpload();
18
- const handleFileSelect = (event) => {
19
- const file = event.target.files?.[0];
20
- if (file) {
21
- // Validate file type
22
- if (!["image/jpeg", "image/png", "image/webp", "image/jpg"].includes(file.type)) {
23
- alert(t("web-ui:upload.errors.invalidType"));
24
- return;
25
- }
26
- // Validate file size (5MB)
27
- if (file.size > 5 * 1024 * 1024) {
28
- alert(t("web-ui:upload.errors.tooLarge"));
29
- return;
30
- }
31
- setSelectedFile(file);
32
- const objectUrl = URL.createObjectURL(file);
33
- setPreviewUrl(objectUrl);
34
- setShowCropDialog(true);
35
- }
36
- };
37
- const handleCropComplete = async (croppedBlob) => {
38
- const croppedFile = new File([croppedBlob], selectedFile?.name || "cropped-image.jpg", {
39
- type: "image/jpeg",
40
- });
41
- setSelectedFile(croppedFile);
42
- const croppedObjectUrl = URL.createObjectURL(croppedFile);
43
- setPreviewUrl(croppedObjectUrl);
44
- setShowCropDialog(false);
45
- try {
46
- const res = await upload("image", croppedFile);
47
- console.log({ res });
48
- onUploadComplete?.(res.url);
49
- }
50
- catch (error) {
51
- console.error("Error uploading image:", error);
52
- }
53
- };
54
- const removeFile = () => {
55
- if (previewUrl && previewUrl !== currentAvatarUrl) {
56
- URL.revokeObjectURL(previewUrl);
57
- }
58
- setSelectedFile(null);
59
- setPreviewUrl(currentAvatarUrl || null);
60
- setShowCropDialog(false);
61
- reset();
62
- if (fileInputRef.current) {
63
- fileInputRef.current.value = "";
64
- }
65
- };
66
- return (_jsxs(_Fragment, { children: [_jsxs("div", { role: "dialog", className: cn("relative inline-block", className), onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false), children: [_jsxs(Avatar, { className: "h-24 w-24 cursor-pointer", onClick: () => fileInputRef.current?.click(), children: [previewUrl ? (_jsx(AvatarImage, { src: previewUrl, alt: t("web-ui:avatar.preview.alt") })) : (_jsx(AvatarFallback, { children: _jsx(User, { className: "h-12 w-12" }) })), isHovered && (_jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 rounded-full", children: _jsx(Edit2, { className: "h-6 w-6 text-white" }) }))] }), _jsx("input", { ref: fileInputRef, type: "file", className: "hidden", accept: "image/jpeg,image/png,image/webp", onChange: handleFileSelect }), status === "uploading" && (_jsx("div", { className: "mt-2 w-full", children: _jsx(Progress, { value: progress, className: "h-2" }) })), status === "error" && _jsx("p", { className: "mt-2 text-sm text-red-500", children: errorMessage })] }), previewUrl && (_jsx(CropDialog, { open: showCropDialog, onOpenChange: setShowCropDialog, imageUrl: previewUrl, onCropComplete: handleCropComplete, onCancel: removeFile, isLoading: status === "uploading" }))] }));
10
+ //#region src/components/AvatarUpload.tsx
11
+ function AvatarUpload({ currentAvatarUrl, onUploadComplete, className }) {
12
+ const { t } = useTranslation();
13
+ const [isHovered, setIsHovered] = useState(false);
14
+ const [selectedFile, setSelectedFile] = useState(null);
15
+ const [previewUrl, setPreviewUrl] = useState(currentAvatarUrl || null);
16
+ const [showCropDialog, setShowCropDialog] = useState(false);
17
+ const fileInputRef = useRef(null);
18
+ const { upload, status, progress, errorMessage, reset } = useFileUpload();
19
+ const handleFileSelect = (event) => {
20
+ const file = event.target.files?.[0];
21
+ if (file) {
22
+ if (![
23
+ "image/jpeg",
24
+ "image/png",
25
+ "image/webp",
26
+ "image/jpg"
27
+ ].includes(file.type)) {
28
+ alert(t("web-ui:upload.errors.invalidType"));
29
+ return;
30
+ }
31
+ if (file.size > 5 * 1024 * 1024) {
32
+ alert(t("web-ui:upload.errors.tooLarge"));
33
+ return;
34
+ }
35
+ setSelectedFile(file);
36
+ setPreviewUrl(URL.createObjectURL(file));
37
+ setShowCropDialog(true);
38
+ }
39
+ };
40
+ const handleCropComplete = async (croppedBlob) => {
41
+ const croppedFile = new File([croppedBlob], selectedFile?.name || "cropped-image.jpg", { type: "image/jpeg" });
42
+ setSelectedFile(croppedFile);
43
+ setPreviewUrl(URL.createObjectURL(croppedFile));
44
+ setShowCropDialog(false);
45
+ try {
46
+ const res = await upload("image", croppedFile);
47
+ console.log({ res });
48
+ onUploadComplete?.(res.url);
49
+ } catch (error) {
50
+ console.error("Error uploading image:", error);
51
+ }
52
+ };
53
+ const removeFile = () => {
54
+ if (previewUrl && previewUrl !== currentAvatarUrl) URL.revokeObjectURL(previewUrl);
55
+ setSelectedFile(null);
56
+ setPreviewUrl(currentAvatarUrl || null);
57
+ setShowCropDialog(false);
58
+ reset();
59
+ if (fileInputRef.current) fileInputRef.current.value = "";
60
+ };
61
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
62
+ role: "dialog",
63
+ className: cn("relative inline-block", className),
64
+ onMouseEnter: () => setIsHovered(true),
65
+ onMouseLeave: () => setIsHovered(false),
66
+ children: [
67
+ /* @__PURE__ */ jsxs(Avatar, {
68
+ className: "h-24 w-24 cursor-pointer",
69
+ onClick: () => fileInputRef.current?.click(),
70
+ children: [previewUrl ? /* @__PURE__ */ jsx(AvatarImage, {
71
+ src: previewUrl,
72
+ alt: t("web-ui:avatar.preview.alt")
73
+ }) : /* @__PURE__ */ jsx(AvatarFallback, { children: /* @__PURE__ */ jsx(User, { className: "h-12 w-12" }) }), isHovered && /* @__PURE__ */ jsx("div", {
74
+ className: "absolute inset-0 flex items-center justify-center bg-black/50 rounded-full",
75
+ children: /* @__PURE__ */ jsx(Edit2, { className: "h-6 w-6 text-white" })
76
+ })]
77
+ }),
78
+ /* @__PURE__ */ jsx("input", {
79
+ ref: fileInputRef,
80
+ type: "file",
81
+ className: "hidden",
82
+ accept: "image/jpeg,image/png,image/webp",
83
+ onChange: handleFileSelect
84
+ }),
85
+ status === "uploading" && /* @__PURE__ */ jsx("div", {
86
+ className: "mt-2 w-full",
87
+ children: /* @__PURE__ */ jsx(Progress, {
88
+ value: progress,
89
+ className: "h-2"
90
+ })
91
+ }),
92
+ status === "error" && /* @__PURE__ */ jsx("p", {
93
+ className: "mt-2 text-sm text-red-500",
94
+ children: errorMessage
95
+ })
96
+ ]
97
+ }), previewUrl && /* @__PURE__ */ jsx(CropDialog, {
98
+ open: showCropDialog,
99
+ onOpenChange: setShowCropDialog,
100
+ imageUrl: previewUrl,
101
+ onCropComplete: handleCropComplete,
102
+ onCancel: removeFile,
103
+ isLoading: status === "uploading"
104
+ })] });
67
105
  }
106
+ //#endregion
107
+ export { AvatarUpload };
108
+
109
+ //# sourceMappingURL=AvatarUpload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarUpload.js","names":[],"sources":["../../../src/components/AvatarUpload.tsx"],"sourcesContent":["import { useFileUpload } from \"@m5kdev/frontend/modules/file/hooks/useUpload\";\r\nimport { Edit2, User } from \"lucide-react\";\r\nimport { type ChangeEvent, useRef, useState } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { CropDialog } from \"./CropDialog\";\r\nimport { Avatar, AvatarFallback, AvatarImage } from \"./ui/avatar\";\r\nimport { Progress } from \"./ui/progress\";\r\nimport { cn } from \"../lib/utils\";\r\n\r\ninterface AvatarUploadProps {\r\n currentAvatarUrl?: string | null;\r\n onUploadComplete?: (avatarUrl: string) => void;\r\n className?: string;\r\n}\r\n\r\nexport function AvatarUpload({ currentAvatarUrl, onUploadComplete, className }: AvatarUploadProps) {\r\n const { t } = useTranslation();\r\n const [isHovered, setIsHovered] = useState(false);\r\n const [selectedFile, setSelectedFile] = useState<File | null>(null);\r\n const [previewUrl, setPreviewUrl] = useState<string | null>(currentAvatarUrl || null);\r\n const [showCropDialog, setShowCropDialog] = useState(false);\r\n\r\n const fileInputRef = useRef<HTMLInputElement>(null);\r\n const { upload, status, progress, errorMessage, reset } = useFileUpload();\r\n\r\n const handleFileSelect = (event: ChangeEvent<HTMLInputElement>) => {\r\n const file = event.target.files?.[0];\r\n if (file) {\r\n // Validate file type\r\n if (![\"image/jpeg\", \"image/png\", \"image/webp\", \"image/jpg\"].includes(file.type)) {\r\n alert(t(\"web-ui:upload.errors.invalidType\"));\r\n return;\r\n }\r\n // Validate file size (5MB)\r\n if (file.size > 5 * 1024 * 1024) {\r\n alert(t(\"web-ui:upload.errors.tooLarge\"));\r\n return;\r\n }\r\n setSelectedFile(file);\r\n const objectUrl = URL.createObjectURL(file);\r\n setPreviewUrl(objectUrl);\r\n setShowCropDialog(true);\r\n }\r\n };\r\n\r\n const handleCropComplete = async (croppedBlob: Blob) => {\r\n const croppedFile = new File([croppedBlob], selectedFile?.name || \"cropped-image.jpg\", {\r\n type: \"image/jpeg\",\r\n });\r\n\r\n setSelectedFile(croppedFile);\r\n const croppedObjectUrl = URL.createObjectURL(croppedFile);\r\n setPreviewUrl(croppedObjectUrl);\r\n setShowCropDialog(false);\r\n\r\n try {\r\n const res = await upload<{\r\n url: string;\r\n minetype: string;\r\n size: number;\r\n }>(\"image\", croppedFile);\r\n console.log({ res });\r\n onUploadComplete?.(res.url);\r\n } catch (error) {\r\n console.error(\"Error uploading image:\", error);\r\n }\r\n };\r\n\r\n const removeFile = () => {\r\n if (previewUrl && previewUrl !== currentAvatarUrl) {\r\n URL.revokeObjectURL(previewUrl);\r\n }\r\n setSelectedFile(null);\r\n setPreviewUrl(currentAvatarUrl || null);\r\n setShowCropDialog(false);\r\n reset();\r\n if (fileInputRef.current) {\r\n fileInputRef.current.value = \"\";\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n <div\r\n role=\"dialog\"\r\n className={cn(\"relative inline-block\", className)}\r\n onMouseEnter={() => setIsHovered(true)}\r\n onMouseLeave={() => setIsHovered(false)}\r\n >\r\n <Avatar className=\"h-24 w-24 cursor-pointer\" onClick={() => fileInputRef.current?.click()}>\r\n {previewUrl ? (\r\n <AvatarImage src={previewUrl} alt={t(\"web-ui:avatar.preview.alt\")} />\r\n ) : (\r\n <AvatarFallback>\r\n <User className=\"h-12 w-12\" />\r\n </AvatarFallback>\r\n )}\r\n {isHovered && (\r\n <div className=\"absolute inset-0 flex items-center justify-center bg-black/50 rounded-full\">\r\n <Edit2 className=\"h-6 w-6 text-white\" />\r\n </div>\r\n )}\r\n </Avatar>\r\n\r\n <input\r\n ref={fileInputRef}\r\n type=\"file\"\r\n className=\"hidden\"\r\n accept=\"image/jpeg,image/png,image/webp\"\r\n onChange={handleFileSelect}\r\n />\r\n\r\n {status === \"uploading\" && (\r\n <div className=\"mt-2 w-full\">\r\n <Progress value={progress} className=\"h-2\" />\r\n </div>\r\n )}\r\n {status === \"error\" && <p className=\"mt-2 text-sm text-red-500\">{errorMessage}</p>}\r\n </div>\r\n\r\n {previewUrl && (\r\n <CropDialog\r\n open={showCropDialog}\r\n onOpenChange={setShowCropDialog}\r\n imageUrl={previewUrl}\r\n onCropComplete={handleCropComplete}\r\n onCancel={removeFile}\r\n isLoading={status === \"uploading\"}\r\n />\r\n )}\r\n </>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;;;AAeA,SAAgB,aAAa,EAAE,kBAAkB,kBAAkB,aAAgC;CACjG,MAAM,EAAE,MAAM,gBAAgB;CAC9B,MAAM,CAAC,WAAW,gBAAgB,SAAS,MAAM;CACjD,MAAM,CAAC,cAAc,mBAAmB,SAAsB,KAAK;CACnE,MAAM,CAAC,YAAY,iBAAiB,SAAwB,oBAAoB,KAAK;CACrF,MAAM,CAAC,gBAAgB,qBAAqB,SAAS,MAAM;CAE3D,MAAM,eAAe,OAAyB,KAAK;CACnD,MAAM,EAAE,QAAQ,QAAQ,UAAU,cAAc,UAAU,eAAe;CAEzE,MAAM,oBAAoB,UAAyC;EACjE,MAAM,OAAO,MAAM,OAAO,QAAQ;AAClC,MAAI,MAAM;AAER,OAAI,CAAC;IAAC;IAAc;IAAa;IAAc;IAAY,CAAC,SAAS,KAAK,KAAK,EAAE;AAC/E,UAAM,EAAE,mCAAmC,CAAC;AAC5C;;AAGF,OAAI,KAAK,OAAO,IAAI,OAAO,MAAM;AAC/B,UAAM,EAAE,gCAAgC,CAAC;AACzC;;AAEF,mBAAgB,KAAK;AAErB,iBADkB,IAAI,gBAAgB,KAAK,CACnB;AACxB,qBAAkB,KAAK;;;CAI3B,MAAM,qBAAqB,OAAO,gBAAsB;EACtD,MAAM,cAAc,IAAI,KAAK,CAAC,YAAY,EAAE,cAAc,QAAQ,qBAAqB,EACrF,MAAM,cACP,CAAC;AAEF,kBAAgB,YAAY;AAE5B,gBADyB,IAAI,gBAAgB,YAAY,CAC1B;AAC/B,oBAAkB,MAAM;AAExB,MAAI;GACF,MAAM,MAAM,MAAM,OAIf,SAAS,YAAY;AACxB,WAAQ,IAAI,EAAE,KAAK,CAAC;AACpB,sBAAmB,IAAI,IAAI;WACpB,OAAO;AACd,WAAQ,MAAM,0BAA0B,MAAM;;;CAIlD,MAAM,mBAAmB;AACvB,MAAI,cAAc,eAAe,iBAC/B,KAAI,gBAAgB,WAAW;AAEjC,kBAAgB,KAAK;AACrB,gBAAc,oBAAoB,KAAK;AACvC,oBAAkB,MAAM;AACxB,SAAO;AACP,MAAI,aAAa,QACf,cAAa,QAAQ,QAAQ;;AAIjC,QACE,qBAAA,YAAA,EAAA,UAAA,CACE,qBAAC,OAAD;EACE,MAAK;EACL,WAAW,GAAG,yBAAyB,UAAU;EACjD,oBAAoB,aAAa,KAAK;EACtC,oBAAoB,aAAa,MAAM;YAJzC;GAME,qBAAC,QAAD;IAAQ,WAAU;IAA2B,eAAe,aAAa,SAAS,OAAO;cAAzF,CACG,aACC,oBAAC,aAAD;KAAa,KAAK;KAAY,KAAK,EAAE,4BAA4B;KAAI,CAAA,GAErE,oBAAC,gBAAD,EAAA,UACE,oBAAC,MAAD,EAAM,WAAU,aAAc,CAAA,EACf,CAAA,EAElB,aACC,oBAAC,OAAD;KAAK,WAAU;eACb,oBAAC,OAAD,EAAO,WAAU,sBAAuB,CAAA;KACpC,CAAA,CAED;;GAET,oBAAC,SAAD;IACE,KAAK;IACL,MAAK;IACL,WAAU;IACV,QAAO;IACP,UAAU;IACV,CAAA;GAED,WAAW,eACV,oBAAC,OAAD;IAAK,WAAU;cACb,oBAAC,UAAD;KAAU,OAAO;KAAU,WAAU;KAAQ,CAAA;IACzC,CAAA;GAEP,WAAW,WAAW,oBAAC,KAAD;IAAG,WAAU;cAA6B;IAAiB,CAAA;GAC9E;KAEL,cACC,oBAAC,YAAD;EACE,MAAM;EACN,cAAc;EACd,UAAU;EACV,gBAAgB;EAChB,UAAU;EACV,WAAW,WAAW;EACtB,CAAA,CAEH,EAAA,CAAA"}
@@ -1,5 +1,15 @@
1
- import { type ButtonProps as ButtonPrimitiveProps } from "./ui/button";
2
- export interface ButtonProps extends ButtonPrimitiveProps {
3
- loading?: boolean;
1
+ import { ButtonProps as ButtonProps$1 } from "./ui/button.js";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/components/Button.d.ts
5
+ interface ButtonProps extends ButtonProps$1 {
6
+ loading?: boolean;
4
7
  }
5
- export declare function Button({ loading, children, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
8
+ declare function Button({
9
+ loading,
10
+ children,
11
+ ...props
12
+ }: ButtonProps): _$react_jsx_runtime0.JSX.Element;
13
+ //#endregion
14
+ export { Button, ButtonProps };
15
+ //# sourceMappingURL=Button.d.ts.map
@@ -1,5 +1,14 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Button as ButtonPrimitive } from "./ui/button";
3
- export function Button({ loading, children, ...props }) {
4
- return (_jsxs(ButtonPrimitive, { ...props, disabled: loading || props.disabled, children: [loading && _jsx("i", { className: "ti ti-refresh animate-spin" }), children] }));
1
+ import { Button as Button$1 } from "./ui/button.js";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ //#region src/components/Button.tsx
4
+ function Button({ loading, children, ...props }) {
5
+ return /* @__PURE__ */ jsxs(Button$1, {
6
+ ...props,
7
+ disabled: loading || props.disabled,
8
+ children: [loading && /* @__PURE__ */ jsx("i", { className: "ti ti-refresh animate-spin" }), children]
9
+ });
5
10
  }
11
+ //#endregion
12
+ export { Button };
13
+
14
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","names":["ButtonPrimitive"],"sources":["../../../src/components/Button.tsx"],"sourcesContent":["import { Button as ButtonPrimitive, type ButtonProps as ButtonPrimitiveProps } from \"./ui/button\";\r\n\r\nexport interface ButtonProps extends ButtonPrimitiveProps {\r\n loading?: boolean;\r\n}\r\n\r\nexport function Button({ loading, children, ...props }: ButtonProps) {\r\n return (\r\n <ButtonPrimitive {...props} disabled={loading || props.disabled}>\r\n {loading && <i className=\"ti ti-refresh animate-spin\" />}\r\n {children}\r\n </ButtonPrimitive>\r\n );\r\n}\r\n"],"mappings":";;;AAMA,SAAgB,OAAO,EAAE,SAAS,UAAU,GAAG,SAAsB;AACnE,QACE,qBAACA,UAAD;EAAiB,GAAI;EAAO,UAAU,WAAW,MAAM;YAAvD,CACG,WAAW,oBAAC,KAAD,EAAG,WAAU,8BAA+B,CAAA,EACvD,SACe"}
@@ -1,35 +1,37 @@
1
- import type React from "react";
2
- import { type CalendarProps } from "react-big-calendar";
3
- import "react-big-calendar/lib/addons/dragAndDrop/styles.css";
4
- import "./Calendar.css";
1
+ import React from "react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ import { CalendarProps } from "react-big-calendar";
4
+ //#region src/components/Calendar.d.ts
5
5
  type CalendarComponents = NonNullable<CalendarProps["components"]>;
6
- export type CalendarEventRenderer = CalendarComponents extends {
7
- event?: infer T;
6
+ type CalendarEventRenderer = CalendarComponents extends {
7
+ event?: infer T;
8
8
  } ? Exclude<T, undefined> : never;
9
9
  interface DragAndDropCalendarProps extends Omit<CalendarProps, "localizer"> {
10
- onEventDrop?: (args: {
11
- event: unknown;
12
- start: Date;
13
- end: Date;
14
- }) => void;
15
- onEventResize?: (args: {
16
- event: unknown;
17
- start: Date;
18
- end: Date;
19
- }) => void;
20
- onDragStart?: (args: {
21
- event: unknown;
22
- action: "move" | "resize";
23
- direction?: unknown;
24
- }) => void;
25
- dragFromOutsideItem?: () => unknown;
26
- onDropFromOutside?: (args: {
27
- start: Date;
28
- end: Date;
29
- allDay?: boolean;
30
- }) => void;
31
- onDragOverFromOutside?: (event: React.DragEvent) => void;
32
- resizable?: boolean;
10
+ onEventDrop?: (args: {
11
+ event: unknown;
12
+ start: Date;
13
+ end: Date;
14
+ }) => void;
15
+ onEventResize?: (args: {
16
+ event: unknown;
17
+ start: Date;
18
+ end: Date;
19
+ }) => void;
20
+ onDragStart?: (args: {
21
+ event: unknown;
22
+ action: "move" | "resize";
23
+ direction?: unknown;
24
+ }) => void;
25
+ dragFromOutsideItem?: () => unknown;
26
+ onDropFromOutside?: (args: {
27
+ start: Date;
28
+ end: Date;
29
+ allDay?: boolean;
30
+ }) => void;
31
+ onDragOverFromOutside?: (event: React.DragEvent) => void;
32
+ resizable?: boolean;
33
33
  }
34
- export declare const Calendar: (props: DragAndDropCalendarProps) => import("react/jsx-runtime").JSX.Element;
35
- export {};
34
+ declare const Calendar: (props: DragAndDropCalendarProps) => _$react_jsx_runtime0.JSX.Element;
35
+ //#endregion
36
+ export { Calendar, CalendarEventRenderer };
37
+ //# sourceMappingURL=Calendar.d.ts.map
@@ -1,10 +1,18 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ /* empty css */
2
+ import { jsx } from "react/jsx-runtime";
2
3
  import dayjs from "dayjs";
3
- import { Calendar as BigCalendar, dayjsLocalizer } from "react-big-calendar";
4
- import withDragAndDrop from "react-big-calendar/lib/addons/dragAndDrop";
4
+ import { Calendar as Calendar$1, dayjsLocalizer } from "react-big-calendar";
5
+ import withDragAndDrop from "react-big-calendar/lib/addons/dragAndDrop/index.js";
5
6
  import "react-big-calendar/lib/addons/dragAndDrop/styles.css";
6
- import "./Calendar.css";
7
- const DnDCalendar = withDragAndDrop(BigCalendar);
7
+ //#region src/components/Calendar.tsx
8
+ const DnDCalendar = withDragAndDrop(Calendar$1);
8
9
  const localizer = dayjsLocalizer(dayjs);
9
10
  const TypedDnDCalendar = DnDCalendar;
10
- export const Calendar = (props) => (_jsx(TypedDnDCalendar, { ...props, localizer: localizer }));
11
+ const Calendar = (props) => /* @__PURE__ */ jsx(TypedDnDCalendar, {
12
+ ...props,
13
+ localizer
14
+ });
15
+ //#endregion
16
+ export { Calendar };
17
+
18
+ //# sourceMappingURL=Calendar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Calendar.js","names":["BigCalendar"],"sources":["../../../src/components/Calendar.tsx"],"sourcesContent":["import dayjs from \"dayjs\";\r\nimport type React from \"react\";\r\nimport { Calendar as BigCalendar, type CalendarProps, dayjsLocalizer } from \"react-big-calendar\";\r\nimport withDragAndDrop from \"react-big-calendar/lib/addons/dragAndDrop\";\r\nimport \"react-big-calendar/lib/addons/dragAndDrop/styles.css\";\r\nimport \"./Calendar.css\";\r\n\r\nconst DnDCalendar = withDragAndDrop(BigCalendar);\r\nconst localizer = dayjsLocalizer(dayjs);\r\n\r\ntype CalendarComponents = NonNullable<CalendarProps[\"components\"]>;\r\nexport type CalendarEventRenderer = CalendarComponents extends { event?: infer T }\r\n ? Exclude<T, undefined>\r\n : never;\r\n\r\ninterface DragAndDropCalendarProps extends Omit<CalendarProps, \"localizer\"> {\r\n onEventDrop?: (args: { event: unknown; start: Date; end: Date }) => void;\r\n onEventResize?: (args: { event: unknown; start: Date; end: Date }) => void;\r\n onDragStart?: (args: { event: unknown; action: \"move\" | \"resize\"; direction?: unknown }) => void;\r\n dragFromOutsideItem?: () => unknown;\r\n onDropFromOutside?: (args: { start: Date; end: Date; allDay?: boolean }) => void;\r\n onDragOverFromOutside?: (event: React.DragEvent) => void;\r\n resizable?: boolean;\r\n}\r\n\r\nconst TypedDnDCalendar = DnDCalendar as React.ComponentType<\r\n DragAndDropCalendarProps & { localizer: typeof localizer }\r\n>;\r\n\r\nexport const Calendar = (props: DragAndDropCalendarProps) => (\r\n <TypedDnDCalendar {...props} localizer={localizer} />\r\n);\r\n"],"mappings":";;;;;;;AAOA,MAAM,cAAc,gBAAgBA,WAAY;AAChD,MAAM,YAAY,eAAe,MAAM;AAiBvC,MAAM,mBAAmB;AAIzB,MAAa,YAAY,UACvB,oBAAC,kBAAD;CAAkB,GAAI;CAAkB;CAAa,CAAA"}