@m5kdev/web-ui 0.1.2 → 0.1.4

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 (371) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +12 -0
  3. package/dist/src/animations/card.motion.d.ts +3 -0
  4. package/dist/src/animations/card.motion.d.ts.map +1 -0
  5. package/dist/src/animations/card.motion.js +7 -0
  6. package/dist/src/components/AvatarUpload.d.ts +8 -0
  7. package/dist/src/components/AvatarUpload.d.ts.map +1 -0
  8. package/dist/src/components/AvatarUpload.js +67 -0
  9. package/dist/src/components/Button.d.ts +6 -0
  10. package/dist/src/components/Button.d.ts.map +1 -0
  11. package/dist/src/components/Button.js +5 -0
  12. package/dist/src/components/Calendar.d.ts +36 -0
  13. package/dist/src/components/Calendar.d.ts.map +1 -0
  14. package/dist/src/components/Calendar.js +10 -0
  15. package/dist/src/components/CardsSelect.d.ts +24 -0
  16. package/dist/src/components/CardsSelect.d.ts.map +1 -0
  17. package/dist/src/components/CardsSelect.js +46 -0
  18. package/dist/src/components/CollapsibleSidebarMenuItem.d.ts +10 -0
  19. package/dist/src/components/CollapsibleSidebarMenuItem.d.ts.map +1 -0
  20. package/dist/src/components/CollapsibleSidebarMenuItem.js +11 -0
  21. package/dist/src/components/ColorPicker.d.ts +5 -0
  22. package/dist/src/components/ColorPicker.d.ts.map +1 -0
  23. package/dist/src/components/ColorPicker.js +21 -0
  24. package/dist/src/components/CopyButton.d.ts +7 -0
  25. package/dist/src/components/CopyButton.d.ts.map +1 -0
  26. package/dist/src/components/CopyButton.js +24 -0
  27. package/dist/src/components/CropDialog.d.ts +11 -0
  28. package/dist/src/components/CropDialog.d.ts.map +1 -0
  29. package/dist/src/components/CropDialog.js +67 -0
  30. package/dist/src/components/DialogProvider.d.ts +16 -0
  31. package/dist/src/components/DialogProvider.d.ts.map +1 -0
  32. package/dist/src/components/DialogProvider.js +50 -0
  33. package/dist/src/components/ErrorFallback.d.ts +5 -0
  34. package/dist/src/components/ErrorFallback.d.ts.map +1 -0
  35. package/dist/src/components/ErrorFallback.js +5 -0
  36. package/dist/src/components/FileDropzone.d.ts +7 -0
  37. package/dist/src/components/FileDropzone.d.ts.map +1 -0
  38. package/dist/src/components/FileDropzone.js +63 -0
  39. package/dist/src/components/MultiSelectDropdown.d.ts +27 -0
  40. package/dist/src/components/MultiSelectDropdown.d.ts.map +1 -0
  41. package/dist/src/components/MultiSelectDropdown.js +53 -0
  42. package/dist/src/components/Orb.d.ts +7 -0
  43. package/dist/src/components/Orb.d.ts.map +1 -0
  44. package/dist/src/components/Orb.js +259 -0
  45. package/dist/src/components/PageAlert.d.ts +19 -0
  46. package/dist/src/components/PageAlert.d.ts.map +1 -0
  47. package/dist/src/components/PageAlert.js +48 -0
  48. package/dist/src/components/SelectChips.d.ts +11 -0
  49. package/dist/src/components/SelectChips.d.ts.map +1 -0
  50. package/dist/src/components/SelectChips.js +11 -0
  51. package/dist/src/components/SidebarItem.d.ts +8 -0
  52. package/dist/src/components/SidebarItem.d.ts.map +1 -0
  53. package/dist/src/components/SidebarItem.js +6 -0
  54. package/dist/src/components/Steps.d.ts +20 -0
  55. package/dist/src/components/Steps.d.ts.map +1 -0
  56. package/dist/src/components/Steps.js +34 -0
  57. package/dist/src/components/TablerIconPicker.d.ts +3 -0
  58. package/dist/src/components/TablerIconPicker.d.ts.map +1 -0
  59. package/dist/src/components/TablerIconPicker.js +4238 -0
  60. package/dist/src/components/app-header.d.ts +7 -0
  61. package/dist/src/components/app-header.d.ts.map +1 -0
  62. package/dist/src/components/app-header.js +8 -0
  63. package/dist/src/components/blur-card.d.ts +14 -0
  64. package/dist/src/components/blur-card.d.ts.map +1 -0
  65. package/dist/src/components/blur-card.js +34 -0
  66. package/dist/src/components/features-section-demo-1.d.ts +7 -0
  67. package/dist/src/components/features-section-demo-1.d.ts.map +1 -0
  68. package/dist/src/components/features-section-demo-1.js +53 -0
  69. package/dist/src/components/features-section-demo-2.d.ts +2 -0
  70. package/dist/src/components/features-section-demo-2.d.ts.map +1 -0
  71. package/dist/src/components/features-section-demo-2.js +51 -0
  72. package/dist/src/components/features-section-demo-3.d.ts +9 -0
  73. package/dist/src/components/features-section-demo-3.d.ts.map +1 -0
  74. package/dist/src/components/features-section-demo-3.js +116 -0
  75. package/dist/src/components/mode-toggle.d.ts +2 -0
  76. package/dist/src/components/mode-toggle.d.ts.map +1 -0
  77. package/dist/src/components/mode-toggle.js +9 -0
  78. package/dist/src/components/nav-main.d.ts +14 -0
  79. package/dist/src/components/nav-main.d.ts.map +1 -0
  80. package/dist/src/components/nav-main.js +9 -0
  81. package/dist/src/components/pricing-cards.d.ts +2 -0
  82. package/dist/src/components/pricing-cards.d.ts.map +1 -0
  83. package/dist/src/components/pricing-cards.js +27 -0
  84. package/dist/src/components/shared/ButtonCopy.d.ts +7 -0
  85. package/dist/src/components/shared/ButtonCopy.d.ts.map +1 -0
  86. package/dist/src/components/shared/ButtonCopy.js +24 -0
  87. package/dist/src/components/team-switcher.d.ts +9 -0
  88. package/dist/src/components/team-switcher.d.ts.map +1 -0
  89. package/dist/src/components/team-switcher.js +10 -0
  90. package/dist/src/components/theme-provider.d.ts +14 -0
  91. package/dist/src/components/theme-provider.d.ts.map +1 -0
  92. package/dist/src/components/theme-provider.js +41 -0
  93. package/dist/src/components/typewriter.d.ts +19 -0
  94. package/dist/src/components/typewriter.d.ts.map +1 -0
  95. package/dist/src/components/typewriter.js +38 -0
  96. package/dist/src/components/ui/alert-dialog.d.ts +15 -0
  97. package/dist/src/components/ui/alert-dialog.d.ts.map +1 -0
  98. package/dist/src/components/ui/alert-dialog.js +38 -0
  99. package/dist/src/components/ui/alert.d.ts +10 -0
  100. package/dist/src/components/ui/alert.d.ts.map +1 -0
  101. package/dist/src/components/ui/alert.js +24 -0
  102. package/dist/src/components/ui/avatar.d.ts +7 -0
  103. package/dist/src/components/ui/avatar.d.ts.map +1 -0
  104. package/dist/src/components/ui/avatar.js +12 -0
  105. package/dist/src/components/ui/badge.d.ts +10 -0
  106. package/dist/src/components/ui/badge.d.ts.map +1 -0
  107. package/dist/src/components/ui/badge.js +20 -0
  108. package/dist/src/components/ui/bento-grid.d.ts +12 -0
  109. package/dist/src/components/ui/bento-grid.d.ts.map +1 -0
  110. package/dist/src/components/ui/bento-grid.js +8 -0
  111. package/dist/src/components/ui/bento-grid2.d.ts +16 -0
  112. package/dist/src/components/ui/bento-grid2.d.ts.map +1 -0
  113. package/dist/src/components/ui/bento-grid2.js +13 -0
  114. package/dist/src/components/ui/breadcrumb.d.ts +20 -0
  115. package/dist/src/components/ui/breadcrumb.d.ts.map +1 -0
  116. package/dist/src/components/ui/breadcrumb.js +23 -0
  117. package/dist/src/components/ui/button.d.ts +12 -0
  118. package/dist/src/components/ui/button.d.ts.map +1 -0
  119. package/dist/src/components/ui/button.js +33 -0
  120. package/dist/src/components/ui/card.d.ts +9 -0
  121. package/dist/src/components/ui/card.d.ts.map +1 -0
  122. package/dist/src/components/ui/card.js +16 -0
  123. package/dist/src/components/ui/checkbox.d.ts +5 -0
  124. package/dist/src/components/ui/checkbox.d.ts.map +1 -0
  125. package/dist/src/components/ui/checkbox.js +8 -0
  126. package/dist/src/components/ui/collapsible.d.ts +6 -0
  127. package/dist/src/components/ui/collapsible.d.ts.map +1 -0
  128. package/dist/src/components/ui/collapsible.js +5 -0
  129. package/dist/src/components/ui/dialog.d.ts +14 -0
  130. package/dist/src/components/ui/dialog.d.ts.map +1 -0
  131. package/dist/src/components/ui/dialog.js +35 -0
  132. package/dist/src/components/ui/dropdown-menu.d.ts +28 -0
  133. package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -0
  134. package/dist/src/components/ui/dropdown-menu.js +32 -0
  135. package/dist/src/components/ui/floating-navbar.d.ts +10 -0
  136. package/dist/src/components/ui/floating-navbar.d.ts.map +1 -0
  137. package/dist/src/components/ui/floating-navbar.js +38 -0
  138. package/dist/src/components/ui/form.d.ts +24 -0
  139. package/dist/src/components/ui/form.d.ts.map +1 -0
  140. package/dist/src/components/ui/form.js +60 -0
  141. package/dist/src/components/ui/image.d.ts +7 -0
  142. package/dist/src/components/ui/image.d.ts.map +1 -0
  143. package/dist/src/components/ui/image.js +15 -0
  144. package/dist/src/components/ui/input.d.ts +4 -0
  145. package/dist/src/components/ui/input.d.ts.map +1 -0
  146. package/dist/src/components/ui/input.js +8 -0
  147. package/dist/src/components/ui/label.d.ts +6 -0
  148. package/dist/src/components/ui/label.d.ts.map +1 -0
  149. package/dist/src/components/ui/label.js +9 -0
  150. package/dist/src/components/ui/pagination.d.ts +14 -0
  151. package/dist/src/components/ui/pagination.d.ts.map +1 -0
  152. package/dist/src/components/ui/pagination.js +29 -0
  153. package/dist/src/components/ui/progress.d.ts +5 -0
  154. package/dist/src/components/ui/progress.d.ts.map +1 -0
  155. package/dist/src/components/ui/progress.js +7 -0
  156. package/dist/src/components/ui/resizable-navbar.d.ts +57 -0
  157. package/dist/src/components/ui/resizable-navbar.d.ts.map +1 -0
  158. package/dist/src/components/ui/resizable-navbar.js +86 -0
  159. package/dist/src/components/ui/segment-control.d.ts +10 -0
  160. package/dist/src/components/ui/segment-control.d.ts.map +1 -0
  161. package/dist/src/components/ui/segment-control.js +42 -0
  162. package/dist/src/components/ui/select.d.ts +14 -0
  163. package/dist/src/components/ui/select.d.ts.map +1 -0
  164. package/dist/src/components/ui/select.js +26 -0
  165. package/dist/src/components/ui/separator.d.ts +5 -0
  166. package/dist/src/components/ui/separator.d.ts.map +1 -0
  167. package/dist/src/components/ui/separator.js +7 -0
  168. package/dist/src/components/ui/sheet.d.ts +26 -0
  169. package/dist/src/components/ui/sheet.d.ts.map +1 -0
  170. package/dist/src/components/ui/sheet.js +37 -0
  171. package/dist/src/components/ui/sidebar.d.ts +67 -0
  172. package/dist/src/components/ui/sidebar.d.ts.map +1 -0
  173. package/dist/src/components/ui/sidebar.js +222 -0
  174. package/dist/src/components/ui/skeleton.d.ts +3 -0
  175. package/dist/src/components/ui/skeleton.d.ts.map +1 -0
  176. package/dist/src/components/ui/skeleton.js +6 -0
  177. package/dist/src/components/ui/slider.d.ts +5 -0
  178. package/dist/src/components/ui/slider.d.ts.map +1 -0
  179. package/dist/src/components/ui/slider.js +7 -0
  180. package/dist/src/components/ui/sonner.d.ts +5 -0
  181. package/dist/src/components/ui/sonner.d.ts.map +1 -0
  182. package/dist/src/components/ui/sonner.js +15 -0
  183. package/dist/src/components/ui/spinner.d.ts +15 -0
  184. package/dist/src/components/ui/spinner.d.ts.map +1 -0
  185. package/dist/src/components/ui/spinner.js +30 -0
  186. package/dist/src/components/ui/switch.d.ts +5 -0
  187. package/dist/src/components/ui/switch.d.ts.map +1 -0
  188. package/dist/src/components/ui/switch.js +7 -0
  189. package/dist/src/components/ui/table.d.ts +11 -0
  190. package/dist/src/components/ui/table.d.ts.map +1 -0
  191. package/dist/src/components/ui/table.js +27 -0
  192. package/dist/src/components/ui/tabs.d.ts +8 -0
  193. package/dist/src/components/ui/tabs.d.ts.map +1 -0
  194. package/dist/src/components/ui/tabs.js +16 -0
  195. package/dist/src/components/ui/textarea.d.ts +4 -0
  196. package/dist/src/components/ui/textarea.d.ts.map +1 -0
  197. package/dist/src/components/ui/textarea.js +6 -0
  198. package/dist/src/components/ui/timeline.d.ts +12 -0
  199. package/dist/src/components/ui/timeline.d.ts.map +1 -0
  200. package/dist/src/components/ui/timeline.js +27 -0
  201. package/dist/src/components/ui/toast.d.ts +16 -0
  202. package/dist/src/components/ui/toast.d.ts.map +1 -0
  203. package/dist/src/components/ui/toast.js +33 -0
  204. package/dist/src/components/ui/tooltip.d.ts +8 -0
  205. package/dist/src/components/ui/tooltip.d.ts.map +1 -0
  206. package/dist/src/components/ui/tooltip.js +16 -0
  207. package/dist/src/components/ui/typewriter-effect.d.ts +17 -0
  208. package/dist/src/components/ui/typewriter-effect.d.ts.map +1 -0
  209. package/dist/src/components/ui/typewriter-effect.js +76 -0
  210. package/dist/src/hooks/use-mobile.d.ts +2 -0
  211. package/dist/src/hooks/use-mobile.d.ts.map +1 -0
  212. package/dist/src/hooks/use-mobile.js +15 -0
  213. package/dist/src/hooks/useDialog.d.ts +5 -0
  214. package/dist/src/hooks/useDialog.d.ts.map +1 -0
  215. package/dist/src/hooks/useDialog.js +22 -0
  216. package/dist/src/icons/GoogleIcon.d.ts +6 -0
  217. package/dist/src/icons/GoogleIcon.d.ts.map +1 -0
  218. package/dist/src/icons/GoogleIcon.js +4 -0
  219. package/dist/src/icons/LinkedInIcon.d.ts +6 -0
  220. package/dist/src/icons/LinkedInIcon.d.ts.map +1 -0
  221. package/dist/src/icons/LinkedInIcon.js +4 -0
  222. package/dist/src/icons/MicrosoftIcon.d.ts +6 -0
  223. package/dist/src/icons/MicrosoftIcon.d.ts.map +1 -0
  224. package/dist/src/icons/MicrosoftIcon.js +4 -0
  225. package/dist/src/lib/chatwoot.d.ts +12 -0
  226. package/dist/src/lib/chatwoot.d.ts.map +1 -0
  227. package/dist/src/lib/chatwoot.js +28 -0
  228. package/dist/src/lib/utils.d.ts +3 -0
  229. package/dist/src/lib/utils.d.ts.map +1 -0
  230. package/dist/src/lib/utils.js +5 -0
  231. package/dist/src/modules/app/components/AppLoader.d.ts +3 -0
  232. package/dist/src/modules/app/components/AppLoader.d.ts.map +1 -0
  233. package/dist/src/modules/app/components/AppLoader.js +5 -0
  234. package/dist/src/modules/app/components/AppShell.d.ts +8 -0
  235. package/dist/src/modules/app/components/AppShell.d.ts.map +1 -0
  236. package/dist/src/modules/app/components/AppShell.js +7 -0
  237. package/dist/src/modules/app/components/AppSidebar.d.ts +8 -0
  238. package/dist/src/modules/app/components/AppSidebar.d.ts.map +1 -0
  239. package/dist/src/modules/app/components/AppSidebar.js +5 -0
  240. package/dist/src/modules/app/components/AppSidebarContent.d.ts +17 -0
  241. package/dist/src/modules/app/components/AppSidebarContent.d.ts.map +1 -0
  242. package/dist/src/modules/app/components/AppSidebarContent.js +7 -0
  243. package/dist/src/modules/app/components/AppSidebarHeader.d.ts +9 -0
  244. package/dist/src/modules/app/components/AppSidebarHeader.d.ts.map +1 -0
  245. package/dist/src/modules/app/components/AppSidebarHeader.js +10 -0
  246. package/dist/src/modules/app/components/AppSidebarInvites.d.ts +4 -0
  247. package/dist/src/modules/app/components/AppSidebarInvites.d.ts.map +1 -0
  248. package/dist/src/modules/app/components/AppSidebarInvites.js +12 -0
  249. package/dist/src/modules/app/components/AppSidebarUser.d.ts +12 -0
  250. package/dist/src/modules/app/components/AppSidebarUser.d.ts.map +1 -0
  251. package/dist/src/modules/app/components/AppSidebarUser.js +16 -0
  252. package/dist/src/modules/auth/components/AdminUserManagement.d.ts +7 -0
  253. package/dist/src/modules/auth/components/AdminUserManagement.d.ts.map +1 -0
  254. package/dist/src/modules/auth/components/AdminUserManagement.js +422 -0
  255. package/dist/src/modules/auth/components/AdminWaitlist.d.ts +7 -0
  256. package/dist/src/modules/auth/components/AdminWaitlist.d.ts.map +1 -0
  257. package/dist/src/modules/auth/components/AdminWaitlist.js +118 -0
  258. package/dist/src/modules/auth/components/AuthLayout.d.ts +5 -0
  259. package/dist/src/modules/auth/components/AuthLayout.d.ts.map +1 -0
  260. package/dist/src/modules/auth/components/AuthLayout.js +5 -0
  261. package/dist/src/modules/auth/components/AuthProviders.d.ts +7 -0
  262. package/dist/src/modules/auth/components/AuthProviders.d.ts.map +1 -0
  263. package/dist/src/modules/auth/components/AuthProviders.js +45 -0
  264. package/dist/src/modules/auth/components/AuthRouter.d.ts +10 -0
  265. package/dist/src/modules/auth/components/AuthRouter.d.ts.map +1 -0
  266. package/dist/src/modules/auth/components/AuthRouter.js +12 -0
  267. package/dist/src/modules/auth/components/ClaimAccountRoute.d.ts +5 -0
  268. package/dist/src/modules/auth/components/ClaimAccountRoute.d.ts.map +1 -0
  269. package/dist/src/modules/auth/components/ClaimAccountRoute.js +143 -0
  270. package/dist/src/modules/auth/components/ErrorAuthRoute.d.ts +2 -0
  271. package/dist/src/modules/auth/components/ErrorAuthRoute.d.ts.map +1 -0
  272. package/dist/src/modules/auth/components/ErrorAuthRoute.js +93 -0
  273. package/dist/src/modules/auth/components/ForgotPasswordForm.d.ts +2 -0
  274. package/dist/src/modules/auth/components/ForgotPasswordForm.d.ts.map +1 -0
  275. package/dist/src/modules/auth/components/ForgotPasswordForm.js +27 -0
  276. package/dist/src/modules/auth/components/ForgotPasswordRoute.d.ts +2 -0
  277. package/dist/src/modules/auth/components/ForgotPasswordRoute.d.ts.map +1 -0
  278. package/dist/src/modules/auth/components/ForgotPasswordRoute.js +9 -0
  279. package/dist/src/modules/auth/components/InviteFriends.d.ts +6 -0
  280. package/dist/src/modules/auth/components/InviteFriends.d.ts.map +1 -0
  281. package/dist/src/modules/auth/components/InviteFriends.js +74 -0
  282. package/dist/src/modules/auth/components/LastUsedBadge.d.ts +6 -0
  283. package/dist/src/modules/auth/components/LastUsedBadge.d.ts.map +1 -0
  284. package/dist/src/modules/auth/components/LastUsedBadge.js +9 -0
  285. package/dist/src/modules/auth/components/LoginForm.d.ts +4 -0
  286. package/dist/src/modules/auth/components/LoginForm.d.ts.map +1 -0
  287. package/dist/src/modules/auth/components/LoginForm.js +44 -0
  288. package/dist/src/modules/auth/components/LoginRoute.d.ts +4 -0
  289. package/dist/src/modules/auth/components/LoginRoute.d.ts.map +1 -0
  290. package/dist/src/modules/auth/components/LoginRoute.js +11 -0
  291. package/dist/src/modules/auth/components/LogoutRoute.d.ts +2 -0
  292. package/dist/src/modules/auth/components/LogoutRoute.d.ts.map +1 -0
  293. package/dist/src/modules/auth/components/LogoutRoute.js +15 -0
  294. package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.d.ts +10 -0
  295. package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.d.ts.map +1 -0
  296. package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js +102 -0
  297. package/dist/src/modules/auth/components/OrganizationMembersRoute.d.ts +52 -0
  298. package/dist/src/modules/auth/components/OrganizationMembersRoute.d.ts.map +1 -0
  299. package/dist/src/modules/auth/components/OrganizationMembersRoute.js +359 -0
  300. package/dist/src/modules/auth/components/OrganizationSettingsRoute.d.ts +21 -0
  301. package/dist/src/modules/auth/components/OrganizationSettingsRoute.d.ts.map +1 -0
  302. package/dist/src/modules/auth/components/OrganizationSettingsRoute.js +153 -0
  303. package/dist/src/modules/auth/components/OrganizationSwitcher.d.ts +8 -0
  304. package/dist/src/modules/auth/components/OrganizationSwitcher.d.ts.map +1 -0
  305. package/dist/src/modules/auth/components/OrganizationSwitcher.js +74 -0
  306. package/dist/src/modules/auth/components/ProfileRoute.d.ts +2 -0
  307. package/dist/src/modules/auth/components/ProfileRoute.d.ts.map +1 -0
  308. package/dist/src/modules/auth/components/ProfileRoute.js +42 -0
  309. package/dist/src/modules/auth/components/RangeNuqsDatePicker.d.ts +32 -0
  310. package/dist/src/modules/auth/components/RangeNuqsDatePicker.d.ts.map +1 -0
  311. package/dist/src/modules/auth/components/RangeNuqsDatePicker.js +236 -0
  312. package/dist/src/modules/auth/components/ResetPasswordForm.d.ts +2 -0
  313. package/dist/src/modules/auth/components/ResetPasswordForm.d.ts.map +1 -0
  314. package/dist/src/modules/auth/components/ResetPasswordForm.js +39 -0
  315. package/dist/src/modules/auth/components/ResetPasswordRoute.d.ts +2 -0
  316. package/dist/src/modules/auth/components/ResetPasswordRoute.d.ts.map +1 -0
  317. package/dist/src/modules/auth/components/ResetPasswordRoute.js +9 -0
  318. package/dist/src/modules/auth/components/SignupFormRoute.d.ts +6 -0
  319. package/dist/src/modules/auth/components/SignupFormRoute.d.ts.map +1 -0
  320. package/dist/src/modules/auth/components/SignupFormRoute.js +106 -0
  321. package/dist/src/modules/auth/components/SignupRoute.d.ts +8 -0
  322. package/dist/src/modules/auth/components/SignupRoute.d.ts.map +1 -0
  323. package/dist/src/modules/auth/components/SignupRoute.js +16 -0
  324. package/dist/src/modules/auth/components/UserPreferences.d.ts +31 -0
  325. package/dist/src/modules/auth/components/UserPreferences.d.ts.map +1 -0
  326. package/dist/src/modules/auth/components/UserPreferences.js +60 -0
  327. package/dist/src/modules/auth/components/WaitlistCard.d.ts +7 -0
  328. package/dist/src/modules/auth/components/WaitlistCard.d.ts.map +1 -0
  329. package/dist/src/modules/auth/components/WaitlistCard.js +32 -0
  330. package/dist/src/modules/auth/components/WaitlistCodeValidation.d.ts +8 -0
  331. package/dist/src/modules/auth/components/WaitlistCodeValidation.d.ts.map +1 -0
  332. package/dist/src/modules/auth/components/WaitlistCodeValidation.js +43 -0
  333. package/dist/src/modules/billing/components/BillingBetaPage.d.ts +9 -0
  334. package/dist/src/modules/billing/components/BillingBetaPage.d.ts.map +1 -0
  335. package/dist/src/modules/billing/components/BillingBetaPage.js +11 -0
  336. package/dist/src/modules/billing/components/BillingInvoicePage.d.ts +8 -0
  337. package/dist/src/modules/billing/components/BillingInvoicePage.d.ts.map +1 -0
  338. package/dist/src/modules/billing/components/BillingInvoicePage.js +32 -0
  339. package/dist/src/modules/billing/components/BillingPlanSelect.d.ts +7 -0
  340. package/dist/src/modules/billing/components/BillingPlanSelect.d.ts.map +1 -0
  341. package/dist/src/modules/billing/components/BillingPlanSelect.js +8 -0
  342. package/dist/src/modules/billing/components/BillingRouter.d.ts +10 -0
  343. package/dist/src/modules/billing/components/BillingRouter.d.ts.map +1 -0
  344. package/dist/src/modules/billing/components/BillingRouter.js +8 -0
  345. package/dist/src/modules/billing/components/BillingSinglePlanSelect.d.ts +9 -0
  346. package/dist/src/modules/billing/components/BillingSinglePlanSelect.d.ts.map +1 -0
  347. package/dist/src/modules/billing/components/BillingSinglePlanSelect.js +46 -0
  348. package/dist/src/modules/table/components/ColumnOrderAndVisibility.d.ts +11 -0
  349. package/dist/src/modules/table/components/ColumnOrderAndVisibility.d.ts.map +1 -0
  350. package/dist/src/modules/table/components/ColumnOrderAndVisibility.js +42 -0
  351. package/dist/src/modules/table/components/NuqsTable.d.ts +24 -0
  352. package/dist/src/modules/table/components/NuqsTable.d.ts.map +1 -0
  353. package/dist/src/modules/table/components/NuqsTable.js +198 -0
  354. package/dist/src/modules/table/components/TableFiltering.d.ts +24 -0
  355. package/dist/src/modules/table/components/TableFiltering.d.ts.map +1 -0
  356. package/dist/src/modules/table/components/TableFiltering.js +236 -0
  357. package/dist/src/modules/table/components/TablePagination.d.ts +10 -0
  358. package/dist/src/modules/table/components/TablePagination.d.ts.map +1 -0
  359. package/dist/src/modules/table/components/TablePagination.js +21 -0
  360. package/dist/src/modules/table/components/table.types.d.ts +13 -0
  361. package/dist/src/modules/table/components/table.types.d.ts.map +1 -0
  362. package/dist/src/modules/table/components/table.types.js +1 -0
  363. package/dist/src/modules/table/filterTransformers.d.ts +54 -0
  364. package/dist/src/modules/table/filterTransformers.d.ts.map +1 -0
  365. package/dist/src/modules/table/filterTransformers.js +276 -0
  366. package/dist/src/types.d.ts +4 -0
  367. package/dist/src/types.d.ts.map +1 -0
  368. package/dist/src/types.js +1 -0
  369. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  370. package/package.json +5 -5
  371. package/tsconfig.json +4 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,KAAK,sCAAsB,CAAC;AAElC,QAAA,MAAM,YAAY,6GAAyB,CAAC;AAE5C,QAAA,MAAM,UAAU,2GAAuB,CAAC;AAExC,QAAA,MAAM,WAAW,4CAAwB,CAAC;AAE1C,QAAA,MAAM,YAAY,6JAYhB,CAAC;AAGH,QAAA,MAAM,aAAa;;8EAiBlB,CAAC;AAEF,UAAU,iBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EACnE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,QAAA,MAAM,YAAY,0FAchB,CAAC;AAGH,QAAA,MAAM,WAAW;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAEjF,CAAC;AAGF,QAAA,MAAM,WAAW;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAKjF,CAAC;AAGF,QAAA,MAAM,UAAU,mKASd,CAAC;AAGH,QAAA,MAAM,gBAAgB,6KASpB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAC"}
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
4
+ import { cva } from "class-variance-authority";
5
+ import { X } from "lucide-react";
6
+ import * as React from "react";
7
+ import { cn } from "#utils";
8
+ const Sheet = SheetPrimitive.Root;
9
+ const SheetTrigger = SheetPrimitive.Trigger;
10
+ const SheetClose = SheetPrimitive.Close;
11
+ const SheetPortal = SheetPrimitive.Portal;
12
+ const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(SheetPrimitive.Overlay, { className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props, ref: ref })));
13
+ SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
14
+ const sheetVariants = cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out", {
15
+ variants: {
16
+ side: {
17
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
18
+ bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
19
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
20
+ right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
21
+ },
22
+ },
23
+ defaultVariants: {
24
+ side: "right",
25
+ },
26
+ });
27
+ const SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => (_jsxs(SheetPortal, { children: [_jsx(SheetOverlay, {}), _jsxs(SheetPrimitive.Content, { ref: ref, className: cn(sheetVariants({ side }), className), ...props, children: [_jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [_jsx(X, { className: "h-4 w-4" }), _jsx("span", { className: "sr-only", children: "Close" })] }), children] })] })));
28
+ SheetContent.displayName = SheetPrimitive.Content.displayName;
29
+ const SheetHeader = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props }));
30
+ SheetHeader.displayName = "SheetHeader";
31
+ const SheetFooter = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
32
+ SheetFooter.displayName = "SheetFooter";
33
+ const SheetTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(SheetPrimitive.Title, { ref: ref, className: cn("text-lg font-semibold text-foreground", className), ...props })));
34
+ SheetTitle.displayName = SheetPrimitive.Title.displayName;
35
+ const SheetDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(SheetPrimitive.Description, { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
36
+ SheetDescription.displayName = SheetPrimitive.Description.displayName;
37
+ export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
@@ -0,0 +1,67 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import * as React from "react";
3
+ import { TooltipContent } from "#components/ui/tooltip";
4
+ type SidebarContext = {
5
+ state: "expanded" | "collapsed";
6
+ open: boolean;
7
+ setOpen: (open: boolean) => void;
8
+ openMobile: boolean;
9
+ setOpenMobile: (open: boolean) => void;
10
+ isMobile: boolean;
11
+ toggleSidebar: () => void;
12
+ };
13
+ declare const SidebarContext: React.Context<SidebarContext | null>;
14
+ declare function useSidebar(): SidebarContext;
15
+ declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
16
+ defaultOpen?: boolean;
17
+ open?: boolean;
18
+ onOpenChange?: (open: boolean) => void;
19
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ declare const Sidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
21
+ side?: "left" | "right";
22
+ variant?: "sidebar" | "floating" | "inset";
23
+ collapsible?: "offcanvas" | "icon" | "none";
24
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
+ declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("#components/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
26
+ declare const SidebarRail: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
27
+ declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
+ declare const SidebarInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
29
+ declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
30
+ declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
+ declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-separator").SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
32
+ declare const SidebarContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
33
+ declare const SidebarGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
34
+ declare const SidebarGroupLabel: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
35
+ asChild?: boolean;
36
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
37
+ declare const SidebarGroupAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
38
+ asChild?: boolean;
39
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
40
+ declare const SidebarGroupContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
41
+ declare const SidebarMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
42
+ declare const SidebarMenuItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
43
+ declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
44
+ asChild?: boolean;
45
+ isActive?: boolean;
46
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
47
+ } & VariantProps<(props?: ({
48
+ variant?: "default" | "outline" | null | undefined;
49
+ size?: "default" | "sm" | "lg" | null | undefined;
50
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
51
+ declare const SidebarMenuAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
52
+ asChild?: boolean;
53
+ showOnHover?: boolean;
54
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
55
+ declare const SidebarMenuBadge: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
56
+ declare const SidebarMenuSkeleton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
57
+ showIcon?: boolean;
58
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
59
+ declare const SidebarMenuSub: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
60
+ declare const SidebarMenuSubItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
61
+ declare const SidebarMenuSubButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
62
+ asChild?: boolean;
63
+ size?: "sm" | "md";
64
+ isActive?: boolean;
65
+ }, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
66
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
67
+ //# sourceMappingURL=sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAW,cAAc,EAAmC,MAAM,wBAAwB,CAAC;AAWlG,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,cAAc,sCAAmD,CAAC;AAExE,iBAAS,UAAU,mBAOlB;AAED,QAAA,MAAM,eAAe;kBAGH,OAAO;WACd,OAAO;mBACC,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI;gDAgGzC,CAAC;AAGF,QAAA,MAAM,OAAO;WAGF,MAAM,GAAG,OAAO;cACb,SAAS,GAAG,UAAU,GAAG,OAAO;kBAC5B,WAAW,GAAG,MAAM,GAAG,MAAM;gDA+F9C,CAAC;AAGF,QAAA,MAAM,cAAc,6KAuBlB,CAAC;AAGH,QAAA,MAAM,WAAW,kLAyBhB,CAAC;AAGF,QAAA,MAAM,YAAY,6JAcjB,CAAC;AAGF,QAAA,MAAM,YAAY,mOAehB,CAAC;AAGH,QAAA,MAAM,aAAa,mKAWlB,CAAC;AAGF,QAAA,MAAM,aAAa,mKAWlB,CAAC;AAGF,QAAA,MAAM,gBAAgB,iOAYpB,CAAC;AAGH,QAAA,MAAM,cAAc,mKAcnB,CAAC;AAGF,QAAA,MAAM,YAAY,mKAWjB,CAAC;AAGF,QAAA,MAAM,iBAAiB;cAEqB,OAAO;gDAgBjD,CAAC;AAGH,QAAA,MAAM,kBAAkB;cAEuB,OAAO;mDAkBpD,CAAC;AAGH,QAAA,MAAM,mBAAmB,mKASxB,CAAC;AAGF,QAAA,MAAM,WAAW,yKAShB,CAAC;AAGF,QAAA,MAAM,eAAe,kKASpB,CAAC;AAyBF,QAAA,MAAM,iBAAiB;cAGT,OAAO;eACN,OAAO;cACR,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC;;;;iIAmDjE,CAAC;AAGF,QAAA,MAAM,iBAAiB;cAGT,OAAO;kBACH,OAAO;mDAwBvB,CAAC;AAGH,QAAA,MAAM,gBAAgB,mKAiBrB,CAAC;AAGF,QAAA,MAAM,mBAAmB;eAGV,OAAO;gDA2BpB,CAAC;AAGH,QAAA,MAAM,cAAc,yKAanB,CAAC;AAGF,QAAA,MAAM,kBAAkB,kKAEvB,CAAC;AAGF,QAAA,MAAM,oBAAoB;cAGZ,OAAO;WACV,IAAI,GAAG,IAAI;eACP,OAAO;mDAsBpB,CAAC;AAGH,OAAO,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAC"}
@@ -0,0 +1,222 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Slot } from "@radix-ui/react-slot";
4
+ import { cva } from "class-variance-authority";
5
+ import { PanelLeft } from "lucide-react";
6
+ import * as React from "react";
7
+ import { Button } from "#components/ui/button";
8
+ import { Input } from "#components/ui/input";
9
+ import { Separator } from "#components/ui/separator";
10
+ import { Sheet, SheetContent } from "#components/ui/sheet";
11
+ import { Skeleton } from "#components/ui/skeleton";
12
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "#components/ui/tooltip";
13
+ import { useIsMobile } from "#hooks/use-mobile";
14
+ import { cn } from "#utils";
15
+ const SIDEBAR_COOKIE_NAME = "sidebar:state";
16
+ const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
17
+ const SIDEBAR_WIDTH = "16rem";
18
+ const SIDEBAR_WIDTH_MOBILE = "18rem";
19
+ const SIDEBAR_WIDTH_ICON = "3rem";
20
+ const SIDEBAR_KEYBOARD_SHORTCUT = "b";
21
+ const SidebarContext = React.createContext(null);
22
+ function useSidebar() {
23
+ const context = React.useContext(SidebarContext);
24
+ if (!context) {
25
+ throw new Error("useSidebar must be used within a SidebarProvider.");
26
+ }
27
+ return context;
28
+ }
29
+ const SidebarProvider = React.forwardRef(({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }, ref) => {
30
+ const isMobile = useIsMobile();
31
+ const [openMobile, setOpenMobile] = React.useState(false);
32
+ // This is the internal state of the sidebar.
33
+ // We use openProp and setOpenProp for control from outside the component.
34
+ const [_open, _setOpen] = React.useState(defaultOpen);
35
+ const open = openProp ?? _open;
36
+ const setOpen = React.useCallback((value) => {
37
+ const openState = typeof value === "function" ? value(open) : value;
38
+ if (setOpenProp) {
39
+ setOpenProp(openState);
40
+ }
41
+ else {
42
+ _setOpen(openState);
43
+ }
44
+ // This sets the cookie to keep the sidebar state.
45
+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
46
+ }, [setOpenProp, open]);
47
+ // Helper to toggle the sidebar.
48
+ const toggleSidebar = React.useCallback(() => {
49
+ return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);
50
+ }, [isMobile, setOpen, setOpenMobile]);
51
+ // Adds a keyboard shortcut to toggle the sidebar.
52
+ React.useEffect(() => {
53
+ const handleKeyDown = (event) => {
54
+ if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
55
+ event.preventDefault();
56
+ toggleSidebar();
57
+ }
58
+ };
59
+ window.addEventListener("keydown", handleKeyDown);
60
+ return () => window.removeEventListener("keydown", handleKeyDown);
61
+ }, [toggleSidebar]);
62
+ // We add a state so that we can do data-state="expanded" or "collapsed".
63
+ // This makes it easier to style the sidebar with Tailwind classes.
64
+ const state = open ? "expanded" : "collapsed";
65
+ const contextValue = React.useMemo(() => ({
66
+ state,
67
+ open,
68
+ setOpen,
69
+ isMobile,
70
+ openMobile,
71
+ setOpenMobile,
72
+ toggleSidebar,
73
+ }), [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);
74
+ return (_jsx(SidebarContext.Provider, { value: contextValue, children: _jsx(TooltipProvider, { delayDuration: 0, children: _jsx("div", { style: {
75
+ "--sidebar-width": SIDEBAR_WIDTH,
76
+ "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
77
+ ...style,
78
+ }, className: cn("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar", className), ref: ref, ...props, children: children }) }) }));
79
+ });
80
+ SidebarProvider.displayName = "SidebarProvider";
81
+ const Sidebar = React.forwardRef(({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, ...props }, ref) => {
82
+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
83
+ if (collapsible === "none") {
84
+ return (_jsx("div", { className: cn("flex h-full w-[var(--sidebar-width)] flex-col bg-sidebar text-sidebar-foreground", className), ref: ref, ...props, children: children }));
85
+ }
86
+ if (isMobile) {
87
+ return (_jsx(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: _jsx(SheetContent, { "data-sidebar": "sidebar", "data-mobile": "true", className: "w-[var(--sidebar-width)] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden", style: {
88
+ "--sidebar-width": SIDEBAR_WIDTH_MOBILE,
89
+ }, side: side, children: _jsx("div", { className: "flex h-full w-full flex-col", children: children }) }) }));
90
+ }
91
+ return (_jsxs("div", { ref: ref, className: "group peer hidden text-sidebar-foreground md:block", "data-state": state, "data-collapsible": state === "collapsed" ? collapsible : "", "data-variant": variant, "data-side": side, children: [_jsx("div", { className: cn("relative h-svh w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", variant === "floating" || variant === "inset"
92
+ ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]"
93
+ : "group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]") }), _jsx("div", { className: cn("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] transition-[left,right,width] duration-200 ease-linear md:flex", side === "left"
94
+ ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
95
+ : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
96
+ // Adjust the padding for floating and inset variants.
97
+ variant === "floating" || variant === "inset"
98
+ ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]"
99
+ : "group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l", className), ...props, children: _jsx("div", { "data-sidebar": "sidebar", className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow", children: children }) })] }));
100
+ });
101
+ Sidebar.displayName = "Sidebar";
102
+ const SidebarTrigger = React.forwardRef(({ className, onClick, ...props }, ref) => {
103
+ const { toggleSidebar } = useSidebar();
104
+ return (_jsxs(Button, { ref: ref, "data-sidebar": "trigger", variant: "ghost", size: "icon", className: cn("h-7 w-7", className), onClick: (event) => {
105
+ onClick?.(event);
106
+ toggleSidebar();
107
+ }, ...props, children: [_jsx(PanelLeft, {}), _jsx("span", { className: "sr-only", children: "Toggle Sidebar" })] }));
108
+ });
109
+ SidebarTrigger.displayName = "SidebarTrigger";
110
+ const SidebarRail = React.forwardRef(({ className, ...props }, ref) => {
111
+ const { toggleSidebar } = useSidebar();
112
+ return (_jsx("button", { ref: ref, "data-sidebar": "rail", "aria-label": "Toggle Sidebar", tabIndex: -1, onClick: toggleSidebar, title: "Toggle Sidebar", className: cn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex", "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", className), ...props }));
113
+ });
114
+ SidebarRail.displayName = "SidebarRail";
115
+ const SidebarInset = React.forwardRef(({ className, ...props }, ref) => {
116
+ return (_jsx("main", { ref: ref, className: cn("relative flex min-h-svh flex-1 flex-col bg-background", "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow", className), ...props }));
117
+ });
118
+ SidebarInset.displayName = "SidebarInset";
119
+ const SidebarInput = React.forwardRef(({ className, ...props }, ref) => {
120
+ return (_jsx(Input, { ref: ref, "data-sidebar": "input", className: cn("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring", className), ...props }));
121
+ });
122
+ SidebarInput.displayName = "SidebarInput";
123
+ const SidebarHeader = React.forwardRef(({ className, ...props }, ref) => {
124
+ return (_jsx("div", { ref: ref, "data-sidebar": "header", className: cn("flex flex-col gap-2 p-2", className), ...props }));
125
+ });
126
+ SidebarHeader.displayName = "SidebarHeader";
127
+ const SidebarFooter = React.forwardRef(({ className, ...props }, ref) => {
128
+ return (_jsx("div", { ref: ref, "data-sidebar": "footer", className: cn("flex flex-col gap-2 p-2", className), ...props }));
129
+ });
130
+ SidebarFooter.displayName = "SidebarFooter";
131
+ const SidebarSeparator = React.forwardRef(({ className, ...props }, ref) => {
132
+ return (_jsx(Separator, { ref: ref, "data-sidebar": "separator", className: cn("mx-2 w-auto bg-sidebar-border", className), ...props }));
133
+ });
134
+ SidebarSeparator.displayName = "SidebarSeparator";
135
+ const SidebarContent = React.forwardRef(({ className, ...props }, ref) => {
136
+ return (_jsx("div", { ref: ref, "data-sidebar": "content", className: cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className), ...props }));
137
+ });
138
+ SidebarContent.displayName = "SidebarContent";
139
+ const SidebarGroup = React.forwardRef(({ className, ...props }, ref) => {
140
+ return (_jsx("div", { ref: ref, "data-sidebar": "group", className: cn("relative flex w-full min-w-0 flex-col p-2", className), ...props }));
141
+ });
142
+ SidebarGroup.displayName = "SidebarGroup";
143
+ const SidebarGroupLabel = React.forwardRef(({ className, asChild = false, ...props }, ref) => {
144
+ const Comp = asChild ? Slot : "div";
145
+ return (_jsx(Comp, { ref: ref, "data-sidebar": "group-label", className: cn("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", className), ...props }));
146
+ });
147
+ SidebarGroupLabel.displayName = "SidebarGroupLabel";
148
+ const SidebarGroupAction = React.forwardRef(({ className, asChild = false, ...props }, ref) => {
149
+ const Comp = asChild ? Slot : "button";
150
+ return (_jsx(Comp, { ref: ref, "data-sidebar": "group-action", className: cn("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
151
+ // Increases the hit area of the button on mobile.
152
+ "after:absolute after:-inset-2 after:md:hidden", "group-data-[collapsible=icon]:hidden", className), ...props }));
153
+ });
154
+ SidebarGroupAction.displayName = "SidebarGroupAction";
155
+ const SidebarGroupContent = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-sidebar": "group-content", className: cn("w-full text-sm", className), ...props })));
156
+ SidebarGroupContent.displayName = "SidebarGroupContent";
157
+ const SidebarMenu = React.forwardRef(({ className, ...props }, ref) => (_jsx("ul", { ref: ref, "data-sidebar": "menu", className: cn("flex w-full min-w-0 flex-col gap-1", className), ...props })));
158
+ SidebarMenu.displayName = "SidebarMenu";
159
+ const SidebarMenuItem = React.forwardRef(({ className, ...props }, ref) => (_jsx("li", { ref: ref, "data-sidebar": "menu-item", className: cn("group/menu-item relative", className), ...props })));
160
+ SidebarMenuItem.displayName = "SidebarMenuItem";
161
+ const sidebarMenuButtonVariants = cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
162
+ variants: {
163
+ variant: {
164
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
165
+ outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
166
+ },
167
+ size: {
168
+ default: "h-8 text-sm",
169
+ sm: "h-7 text-xs",
170
+ lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0",
171
+ },
172
+ },
173
+ defaultVariants: {
174
+ variant: "default",
175
+ size: "default",
176
+ },
177
+ });
178
+ const SidebarMenuButton = React.forwardRef(({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className, ...props }, ref) => {
179
+ const Comp = asChild ? Slot : "button";
180
+ const { isMobile, state } = useSidebar();
181
+ const button = (_jsx(Comp, { ref: ref, "data-sidebar": "menu-button", "data-size": size, "data-active": isActive, className: cn(sidebarMenuButtonVariants({ variant, size }), className), ...props }));
182
+ if (!tooltip) {
183
+ return button;
184
+ }
185
+ if (typeof tooltip === "string") {
186
+ tooltip = {
187
+ children: tooltip,
188
+ };
189
+ }
190
+ return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: button }), _jsx(TooltipContent, { side: "right", align: "center", hidden: state !== "collapsed" || isMobile, ...tooltip })] }));
191
+ });
192
+ SidebarMenuButton.displayName = "SidebarMenuButton";
193
+ const SidebarMenuAction = React.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
194
+ const Comp = asChild ? Slot : "button";
195
+ return (_jsx(Comp, { ref: ref, "data-sidebar": "menu-action", className: cn("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
196
+ // Increases the hit area of the button on mobile.
197
+ "after:absolute after:-inset-2 after:md:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", showOnHover &&
198
+ "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0", className), ...props }));
199
+ });
200
+ SidebarMenuAction.displayName = "SidebarMenuAction";
201
+ const SidebarMenuBadge = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-sidebar": "menu-badge", className: cn("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", className), ...props })));
202
+ SidebarMenuBadge.displayName = "SidebarMenuBadge";
203
+ const SidebarMenuSkeleton = React.forwardRef(({ className, showIcon = false, ...props }, ref) => {
204
+ // Random width between 50 to 90%.
205
+ const width = React.useMemo(() => {
206
+ return `${Math.floor(Math.random() * 40) + 50}%`;
207
+ }, []);
208
+ return (_jsxs("div", { ref: ref, "data-sidebar": "menu-skeleton", className: cn("flex h-8 items-center gap-2 rounded-md px-2", className), ...props, children: [showIcon && _jsx(Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }), _jsx(Skeleton, { className: "h-4 max-w-[--skeleton-width] flex-1", "data-sidebar": "menu-skeleton-text", style: {
209
+ "--skeleton-width": width,
210
+ } })] }));
211
+ });
212
+ SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
213
+ const SidebarMenuSub = React.forwardRef(({ className, ...props }, ref) => (_jsx("ul", { ref: ref, "data-sidebar": "menu-sub", className: cn("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", className), ...props })));
214
+ SidebarMenuSub.displayName = "SidebarMenuSub";
215
+ const SidebarMenuSubItem = React.forwardRef(({ ...props }, ref) => _jsx("li", { ref: ref, ...props }));
216
+ SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
217
+ const SidebarMenuSubButton = React.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
218
+ const Comp = asChild ? Slot : "a";
219
+ return (_jsx(Comp, { ref: ref, "data-sidebar": "menu-sub-button", "data-size": size, "data-active": isActive, className: cn("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", size === "sm" && "text-xs", size === "md" && "text-sm", "group-data-[collapsible=icon]:hidden", className), ...props }));
220
+ });
221
+ SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
222
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
@@ -0,0 +1,3 @@
1
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
3
+ //# sourceMappingURL=skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAEA,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAE9E;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "#utils";
3
+ function Skeleton({ className, ...props }) {
4
+ return _jsx("div", { className: cn("animate-pulse rounded-md bg-primary/10", className), ...props });
5
+ }
6
+ export { Skeleton };
@@ -0,0 +1,5 @@
1
+ import * as SliderPrimitive from "@radix-ui/react-slider";
2
+ import * as React from "react";
3
+ declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
+ export { Slider };
5
+ //# sourceMappingURL=slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,MAAM,yJAcV,CAAC;AAGH,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as SliderPrimitive from "@radix-ui/react-slider";
3
+ import * as React from "react";
4
+ import { cn } from "#utils";
5
+ const Slider = React.forwardRef(({ className, ...props }, ref) => (_jsxs(SliderPrimitive.Root, { ref: ref, className: cn("relative flex w-full touch-none select-none items-center", className), ...props, children: [_jsx(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: _jsx(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }), _jsx(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })] })));
6
+ Slider.displayName = SliderPrimitive.Root.displayName;
7
+ export { Slider };
@@ -0,0 +1,5 @@
1
+ import { Toaster as Sonner } from "sonner";
2
+ type ToasterProps = React.ComponentProps<typeof Sonner>;
3
+ declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
4
+ export { Toaster };
5
+ //# sourceMappingURL=sonner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/sonner.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE3C,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,QAAA,MAAM,OAAO,GAAI,cAAc,YAAY,4CAmB1C,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useTheme } from "next-themes";
3
+ import { Toaster as Sonner } from "sonner";
4
+ const Toaster = ({ ...props }) => {
5
+ const { theme = "system" } = useTheme();
6
+ return (_jsx(Sonner, { theme: theme, className: "toaster group", toastOptions: {
7
+ classNames: {
8
+ toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
9
+ description: "group-[.toast]:text-muted-foreground",
10
+ actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
11
+ cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
12
+ },
13
+ }, ...props }));
14
+ };
15
+ export { Toaster };
@@ -0,0 +1,15 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import type React from "react";
3
+ declare const spinnerVariants: (props?: ({
4
+ show?: boolean | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ declare const loaderVariants: (props?: ({
7
+ size?: "small" | "medium" | "large" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ interface SpinnerContentProps extends VariantProps<typeof spinnerVariants>, VariantProps<typeof loaderVariants> {
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ }
13
+ export declare function Spinner({ size, show, children, className }: SpinnerContentProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,eAAe;;8EAUnB,CAAC;AAEH,QAAA,MAAM,cAAc;;8EAWlB,CAAC;AAEH,UAAU,mBACR,SAAQ,YAAY,CAAC,OAAO,eAAe,CAAC,EAC1C,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CAO/E"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cva } from "class-variance-authority";
3
+ import { Loader2 } from "lucide-react";
4
+ import { cn } from "#utils";
5
+ const spinnerVariants = cva("flex-col items-center justify-center", {
6
+ variants: {
7
+ show: {
8
+ true: "flex",
9
+ false: "hidden",
10
+ },
11
+ },
12
+ defaultVariants: {
13
+ show: true,
14
+ },
15
+ });
16
+ const loaderVariants = cva("animate-spin text-primary", {
17
+ variants: {
18
+ size: {
19
+ small: "size-6",
20
+ medium: "size-8",
21
+ large: "size-12",
22
+ },
23
+ },
24
+ defaultVariants: {
25
+ size: "medium",
26
+ },
27
+ });
28
+ export function Spinner({ size, show, children, className }) {
29
+ return (_jsxs("span", { className: spinnerVariants({ show }), children: [_jsx(Loader2, { className: cn(loaderVariants({ size }), className) }), children] }));
30
+ }
@@ -0,0 +1,5 @@
1
+ import * as SwitchPrimitives from "@radix-ui/react-switch";
2
+ import * as React from "react";
3
+ declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Switch };
5
+ //# sourceMappingURL=switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,MAAM,8JAkBV,CAAC;AAGH,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as SwitchPrimitives from "@radix-ui/react-switch";
3
+ import * as React from "react";
4
+ import { cn } from "#utils";
5
+ const Switch = React.forwardRef(({ className, ...props }, ref) => (_jsx(SwitchPrimitives.Root, { className: cn("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", className), ...props, ref: ref, children: _jsx(SwitchPrimitives.Thumb, { className: cn("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") }) })));
6
+ Switch.displayName = SwitchPrimitives.Root.displayName;
7
+ export { Switch };
@@ -0,0 +1,11 @@
1
+ import type * as React from "react";
2
+ declare function Table({ className, ...props }: React.ComponentProps<"table">): import("react/jsx-runtime").JSX.Element;
3
+ declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): import("react/jsx-runtime").JSX.Element;
4
+ declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): import("react/jsx-runtime").JSX.Element;
5
+ declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): import("react/jsx-runtime").JSX.Element;
6
+ declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): import("react/jsx-runtime").JSX.Element;
7
+ declare function TableHead({ className, ...props }: React.ComponentProps<"th">): import("react/jsx-runtime").JSX.Element;
8
+ declare function TableCell({ className, ...props }: React.ComponentProps<"td">): import("react/jsx-runtime").JSX.Element;
9
+ declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): import("react/jsx-runtime").JSX.Element;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
11
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAUpE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAE1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQ1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWpE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,2CAQ7E;AAED,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "#utils";
3
+ function Table({ className, ...props }) {
4
+ return (_jsx("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto", children: _jsx("table", { "data-slot": "table", className: cn("w-full caption-bottom text-sm", className), ...props }) }));
5
+ }
6
+ function TableHeader({ className, ...props }) {
7
+ return _jsx("thead", { "data-slot": "table-header", className: cn("[&_tr]:border-b", className), ...props });
8
+ }
9
+ function TableBody({ className, ...props }) {
10
+ return (_jsx("tbody", { "data-slot": "table-body", className: cn("[&_tr:last-child]:border-0", className), ...props }));
11
+ }
12
+ function TableFooter({ className, ...props }) {
13
+ return (_jsx("tfoot", { "data-slot": "table-footer", className: cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className), ...props }));
14
+ }
15
+ function TableRow({ className, ...props }) {
16
+ return (_jsx("tr", { "data-slot": "table-row", className: cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className), ...props }));
17
+ }
18
+ function TableHead({ className, ...props }) {
19
+ return (_jsx("th", { "data-slot": "table-head", className: cn("text-muted-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className), ...props }));
20
+ }
21
+ function TableCell({ className, ...props }) {
22
+ return (_jsx("td", { "data-slot": "table-cell", className: cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className), ...props }));
23
+ }
24
+ function TableCaption({ className, ...props }) {
25
+ return (_jsx("caption", { "data-slot": "table-caption", className: cn("text-muted-foreground mt-4 text-sm", className), ...props }));
26
+ }
27
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
@@ -0,0 +1,8 @@
1
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
2
+ import type * as React from "react";
3
+ declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
5
+ declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
8
+ //# sourceMappingURL=tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,2CAQrF;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,2CAWzF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,2CAW/F;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,2CAQ/F;AAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
3
+ import { cn } from "#utils";
4
+ function Tabs({ className, ...props }) {
5
+ return (_jsx(TabsPrimitive.Root, { "data-slot": "tabs", className: cn("flex flex-col gap-2", className), ...props }));
6
+ }
7
+ function TabsList({ className, ...props }) {
8
+ return (_jsx(TabsPrimitive.List, { "data-slot": "tabs-list", className: cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", className), ...props }));
9
+ }
10
+ function TabsTrigger({ className, ...props }) {
11
+ return (_jsx(TabsPrimitive.Trigger, { "data-slot": "tabs-trigger", className: cn("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/50 inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props }));
12
+ }
13
+ function TabsContent({ className, ...props }) {
14
+ return (_jsx(TabsPrimitive.Content, { "data-slot": "tabs-content", className: cn("flex-1 outline-none", className), ...props }));
15
+ }
16
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -0,0 +1,4 @@
1
+ import type * as React from "react";
2
+ declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
3
+ export { Textarea };
4
+ //# sourceMappingURL=textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,2CAW1E;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "#utils";
3
+ function Textarea({ className, ...props }) {
4
+ return (_jsx("textarea", { "data-slot": "textarea", className: cn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className), ...props }));
5
+ }
6
+ export { Textarea };
@@ -0,0 +1,12 @@
1
+ import { type ReactNode } from "react";
2
+ interface TimelineEntry {
3
+ title: string;
4
+ subtitle?: string;
5
+ description?: string;
6
+ content: ReactNode;
7
+ }
8
+ export declare const Timeline: ({ data }: {
9
+ data: TimelineEntry[];
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/timeline.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAEpE,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,GAAI,UAAU;IAAE,IAAI,EAAE,aAAa,EAAE,CAAA;CAAE,4CAmF3D,CAAC"}