@tulip-systems/core 0.5.3 → 0.5.5

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 (291) hide show
  1. package/dist/auth/client.d.mts +3 -3
  2. package/dist/auth/client.mjs +2 -2
  3. package/dist/components/client.d.mts +2 -2
  4. package/dist/components/common/icons.d.mts +52 -52
  5. package/dist/components/common/icons.d.mts.map +1 -1
  6. package/dist/components/common/status.d.mts +3 -3
  7. package/dist/components/common/status.d.mts.map +1 -1
  8. package/dist/components/editor/components/content.client.d.mts +2 -2
  9. package/dist/components/editor/components/content.client.d.mts.map +1 -1
  10. package/dist/components/editor/components/editor.client.d.mts +6 -6
  11. package/dist/components/editor/components/editor.client.d.mts.map +1 -1
  12. package/dist/components/editor/components/menu.client.d.mts +3 -3
  13. package/dist/components/editor/components/menu.client.d.mts.map +1 -1
  14. package/dist/components/editor/extensions/file-handler/utils.mjs +1 -1
  15. package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -1
  16. package/dist/components/editor/extensions/image/extension.mjs +0 -1
  17. package/dist/components/editor/extensions/image/extension.mjs.map +1 -1
  18. package/dist/components/editor/extensions/skeleton/extension.mjs +1 -1
  19. package/dist/components/editor/lib/constants.d.mts +29 -29
  20. package/dist/components/editor/lib/constants.mjs +3 -3
  21. package/dist/components/editor/lib/extensions.d.mts +3 -3
  22. package/dist/components/editor/lib/helpers.d.mts.map +1 -1
  23. package/dist/components/editor/lib/helpers.mjs +38 -3
  24. package/dist/components/editor/lib/helpers.mjs.map +1 -1
  25. package/dist/components/header/back-button.client.d.mts +2 -2
  26. package/dist/components/header/back-button.client.d.mts.map +1 -1
  27. package/dist/components/header/bottom-bar.client.d.mts +3 -3
  28. package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
  29. package/dist/components/header/breadcrumbs.client.d.mts +7 -7
  30. package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
  31. package/dist/components/header/header.client.d.mts +2 -2
  32. package/dist/components/header/header.client.d.mts.map +1 -1
  33. package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
  34. package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
  35. package/dist/components/header/top-bar.client.d.mts +4 -4
  36. package/dist/components/header/top-bar.client.d.mts.map +1 -1
  37. package/dist/components/layouts/admin-content.client.d.mts +2 -2
  38. package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
  39. package/dist/components/layouts/admin-layout.d.mts +2 -2
  40. package/dist/components/layouts/admin-layout.d.mts.map +1 -1
  41. package/dist/components/layouts/admin-loading.d.mts +2 -2
  42. package/dist/components/layouts/admin-loading.d.mts.map +1 -1
  43. package/dist/components/layouts/empty-page.d.mts +4 -4
  44. package/dist/components/layouts/empty-page.d.mts.map +1 -1
  45. package/dist/components/layouts/error-page.d.mts +23 -0
  46. package/dist/components/layouts/error-page.d.mts.map +1 -0
  47. package/dist/components/layouts/error-page.mjs +58 -0
  48. package/dist/components/layouts/error-page.mjs.map +1 -0
  49. package/dist/components/layouts/list-layout.d.mts +2 -2
  50. package/dist/components/layouts/list-layout.d.mts.map +1 -1
  51. package/dist/components/layouts/not-allowed-page.d.mts +22 -0
  52. package/dist/components/layouts/not-allowed-page.d.mts.map +1 -0
  53. package/dist/components/layouts/not-allowed-page.mjs +25 -0
  54. package/dist/components/layouts/not-allowed-page.mjs.map +1 -0
  55. package/dist/components/layouts/not-found-page.d.mts +3 -3
  56. package/dist/components/layouts/not-found-page.d.mts.map +1 -1
  57. package/dist/components/layouts/providers.client.d.mts +2 -2
  58. package/dist/components/layouts/providers.client.d.mts.map +1 -1
  59. package/dist/components/layouts/root-layout.server.d.mts +2 -2
  60. package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
  61. package/dist/components/layouts/root-loading.d.mts +2 -2
  62. package/dist/components/layouts/root-loading.d.mts.map +1 -1
  63. package/dist/components/layouts/tab-layout.d.mts +2 -2
  64. package/dist/components/layouts/tab-layout.d.mts.map +1 -1
  65. package/dist/components/lists/data-list.d.mts +5 -5
  66. package/dist/components/lists/data-list.d.mts.map +1 -1
  67. package/dist/components/lists/data-stack.d.mts +8 -8
  68. package/dist/components/navigation/admin-sidebar-paths.client.d.mts +21 -11
  69. package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
  70. package/dist/components/navigation/admin-sidebar-paths.client.mjs +7 -5
  71. package/dist/components/navigation/admin-sidebar-paths.client.mjs.map +1 -1
  72. package/dist/components/ui/accordion.d.mts +5 -5
  73. package/dist/components/ui/alert-dialog.d.mts +12 -12
  74. package/dist/components/ui/alert.d.mts +6 -6
  75. package/dist/components/ui/aspect-ratio.d.mts +2 -2
  76. package/dist/components/ui/avatar.client.d.mts +4 -4
  77. package/dist/components/ui/avatar.client.d.mts.map +1 -1
  78. package/dist/components/ui/badge.d.mts +4 -4
  79. package/dist/components/ui/breadcrumb.d.mts +8 -8
  80. package/dist/components/ui/button.d.mts +4 -4
  81. package/dist/components/ui/calendar.d.mts +3 -3
  82. package/dist/components/ui/card.d.mts +7 -7
  83. package/dist/components/ui/carousel.d.mts +6 -6
  84. package/dist/components/ui/chart.client.d.mts +5 -5
  85. package/dist/components/ui/chart.client.d.mts.map +1 -1
  86. package/dist/components/ui/checkbox.d.mts +2 -2
  87. package/dist/components/ui/collapsible.client.d.mts +4 -4
  88. package/dist/components/ui/collapsible.client.d.mts.map +1 -1
  89. package/dist/components/ui/color-picker.client.d.mts +2 -2
  90. package/dist/components/ui/color-picker.client.d.mts.map +1 -1
  91. package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
  92. package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
  93. package/dist/components/ui/combobox.client.d.mts +2 -2
  94. package/dist/components/ui/combobox.client.d.mts.map +1 -1
  95. package/dist/components/ui/command.d.mts +10 -10
  96. package/dist/components/ui/context-menu.d.mts +16 -16
  97. package/dist/components/ui/date-picker.client.d.mts +2 -2
  98. package/dist/components/ui/date-picker.client.d.mts.map +1 -1
  99. package/dist/components/ui/dialog.client.d.mts +11 -11
  100. package/dist/components/ui/dialog.client.d.mts.map +1 -1
  101. package/dist/components/ui/drawer.client.d.mts +11 -11
  102. package/dist/components/ui/dropdown-menu.d.mts +16 -16
  103. package/dist/components/ui/form.client.d.mts +7 -7
  104. package/dist/components/ui/hover-card.client.d.mts +4 -4
  105. package/dist/components/ui/input-recipient.d.mts +2 -2
  106. package/dist/components/ui/input.d.mts +2 -2
  107. package/dist/components/ui/label.d.mts +2 -2
  108. package/dist/components/ui/navigation-menu.d.mts +11 -11
  109. package/dist/components/ui/pagination.d.mts +8 -8
  110. package/dist/components/ui/popover.d.mts +5 -5
  111. package/dist/components/ui/popover.d.mts.map +1 -1
  112. package/dist/components/ui/progress.client.d.mts +2 -2
  113. package/dist/components/ui/radio-group.d.mts +3 -3
  114. package/dist/components/ui/resizable.client.d.mts +4 -4
  115. package/dist/components/ui/scroll-area.d.mts +3 -3
  116. package/dist/components/ui/select.client.d.mts +11 -11
  117. package/dist/components/ui/separator.d.mts +2 -2
  118. package/dist/components/ui/sheet.client.d.mts +9 -9
  119. package/dist/components/ui/sidebar.client.d.mts +26 -26
  120. package/dist/components/ui/skeleton.d.mts +2 -2
  121. package/dist/components/ui/slider.d.mts +2 -2
  122. package/dist/components/ui/sonner.client.d.mts +2 -2
  123. package/dist/components/ui/switch.d.mts +2 -2
  124. package/dist/components/ui/tabs.d.mts +5 -5
  125. package/dist/components/ui/textarea.d.mts +2 -2
  126. package/dist/components/ui/time-input.client.d.mts +2 -2
  127. package/dist/components/ui/toggle-group.client.d.mts +3 -3
  128. package/dist/components/ui/toggle.d.mts +2 -2
  129. package/dist/components/ui/tooltip.client.d.mts +5 -5
  130. package/dist/components/ui/tooltip.client.d.mts.map +1 -1
  131. package/dist/components/ui/tooltip.client.mjs +1 -1
  132. package/dist/components/ui/tooltip.client.mjs.map +1 -1
  133. package/dist/components.d.mts +3 -1
  134. package/dist/components.mjs +5 -3
  135. package/dist/lib/hooks/use-action.d.mts +2 -2
  136. package/dist/lib/hooks/use-indicator.d.mts +2 -2
  137. package/dist/modules/auth/components/allowed.client.d.mts +21 -7
  138. package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
  139. package/dist/modules/auth/components/allowed.client.mjs +8 -2
  140. package/dist/modules/auth/components/allowed.client.mjs.map +1 -1
  141. package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
  142. package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
  143. package/dist/modules/auth/components/auth-loading.d.mts +2 -2
  144. package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
  145. package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
  146. package/dist/modules/auth/components/create-first-user-page.client.mjs +1 -0
  147. package/dist/modules/auth/components/create-first-user-page.client.mjs.map +1 -1
  148. package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
  149. package/dist/modules/auth/components/forget-password-page.client.d.mts.map +1 -1
  150. package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
  151. package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
  152. package/dist/modules/auth/components/guard.server.d.mts +2 -2
  153. package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
  154. package/dist/modules/auth/components/login-page.client.d.mts +2 -2
  155. package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
  156. package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
  157. package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
  158. package/dist/modules/auth/components/update-password-command.d.mts +2 -2
  159. package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
  160. package/dist/modules/auth/db/schema.d.mts +73 -73
  161. package/dist/modules/auth/db/schema.d.mts.map +1 -1
  162. package/dist/modules/auth/handler/client.client.d.mts +143 -143
  163. package/dist/modules/auth/handler/client.client.d.mts.map +1 -1
  164. package/dist/modules/auth/handler/init.d.mts +131 -131
  165. package/dist/modules/auth/handler/init.d.mts.map +1 -1
  166. package/dist/modules/auth/hooks/use-permission.d.mts +48 -4
  167. package/dist/modules/auth/hooks/use-permission.d.mts.map +1 -1
  168. package/dist/modules/auth/hooks/use-permission.mjs +51 -4
  169. package/dist/modules/auth/hooks/use-permission.mjs.map +1 -1
  170. package/dist/modules/auth/hooks/use-session.d.mts +4 -4
  171. package/dist/modules/auth/lib/helpers.server.d.mts +2 -2
  172. package/dist/modules/auth/lib/helpers.server.mjs +1 -1
  173. package/dist/modules/auth/lib/validators.d.mts +3 -3
  174. package/dist/modules/auth/lib/validators.d.mts.map +1 -1
  175. package/dist/modules/auth/lib/validators.mjs +1 -1
  176. package/dist/modules/auth/lib/validators.mjs.map +1 -1
  177. package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
  178. package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
  179. package/dist/modules/commands/components/click-command.client.d.mts +2 -2
  180. package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
  181. package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
  182. package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
  183. package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
  184. package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
  185. package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
  186. package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
  187. package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
  188. package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
  189. package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
  190. package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
  191. package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +1 -1
  192. package/dist/modules/commands/hooks/use-command-menu.client.mjs +0 -5
  193. package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
  194. package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +2 -2
  195. package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
  196. package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
  197. package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
  198. package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
  199. package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
  200. package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
  201. package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
  202. package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
  203. package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
  204. package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
  205. package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
  206. package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
  207. package/dist/modules/config/db/helpers.d.mts +5 -5
  208. package/dist/modules/config/db/helpers.d.mts.map +1 -1
  209. package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
  210. package/dist/modules/data-tables/components/column-header.d.mts +2 -2
  211. package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
  212. package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
  213. package/dist/modules/data-tables/components/header.d.mts +4 -4
  214. package/dist/modules/data-tables/components/layout.d.mts +2 -2
  215. package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
  216. package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
  217. package/dist/modules/data-tables/components/table.d.mts +7 -7
  218. package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
  219. package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
  220. package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
  221. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
  222. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
  223. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.mts +2 -2
  224. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.mts +2 -2
  225. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.mts +3 -3
  226. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.mts +2 -2
  227. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.mts +2 -2
  228. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
  229. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
  230. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
  231. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
  232. package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
  233. package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
  234. package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
  235. package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
  236. package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
  237. package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
  238. package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
  239. package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
  240. package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
  241. package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
  242. package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
  243. package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
  244. package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
  245. package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
  246. package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
  247. package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
  248. package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
  249. package/dist/modules/inline-edit/lib/variants.d.mts +1 -1
  250. package/dist/modules/router/handler/init.server.d.mts +6 -6
  251. package/dist/modules/router/handler/init.server.d.mts.map +1 -1
  252. package/dist/modules/router/handler/init.server.mjs +1 -1
  253. package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
  254. package/dist/modules/storage/components/dropzone-context.client.d.mts.map +1 -1
  255. package/dist/modules/storage/components/dropzone.client.d.mts +5 -5
  256. package/dist/modules/storage/components/dropzone.client.d.mts.map +1 -1
  257. package/dist/modules/storage/components/dropzone.client.mjs +1 -1
  258. package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
  259. package/dist/modules/storage/components/image-grid.client.d.mts.map +1 -1
  260. package/dist/modules/storage/components/image-grid.client.mjs +1 -1
  261. package/dist/modules/storage/components/upload-zone.client.d.mts +2 -2
  262. package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
  263. package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -1
  264. package/dist/modules/storage/lib/router.server.d.mts +2346 -2346
  265. package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
  266. package/dist/modules/storage/lib/router.server.mjs +1 -1
  267. package/dist/modules/storage/lib/schema.d.mts +92 -92
  268. package/dist/modules/storage/lib/schema.d.mts.map +1 -1
  269. package/dist/modules/storage/lib/schema.mjs +1 -1
  270. package/dist/modules/storage/lib/service.server.d.mts +21 -21
  271. package/dist/modules/storage/lib/service.server.mjs +2 -2
  272. package/dist/modules/storage/lib/validators.d.mts +91 -91
  273. package/dist/modules/storage/lib/validators.d.mts.map +1 -1
  274. package/dist/router/server.mjs +1 -1
  275. package/package.json +1 -1
  276. package/src/components/editor/extensions/file-handler/utils.ts +1 -1
  277. package/src/components/editor/extensions/image/extension.ts +0 -2
  278. package/src/components/editor/lib/helpers.ts +39 -3
  279. package/src/components/entry.ts +2 -0
  280. package/src/components/layouts/error-page.tsx +61 -0
  281. package/src/components/layouts/not-allowed-page.tsx +1 -1
  282. package/src/components/navigation/admin-sidebar-paths.client.tsx +18 -2
  283. package/src/components/ui/tooltip.client.tsx +1 -1
  284. package/src/modules/auth/components/allowed.client.tsx +35 -7
  285. package/src/modules/auth/components/create-first-user-page.client.tsx +4 -0
  286. package/src/modules/auth/hooks/use-permission.ts +88 -2
  287. package/src/modules/auth/lib/validators.ts +1 -1
  288. package/src/modules/commands/hooks/use-command-menu.client.tsx +4 -7
  289. package/dist/modules/auth/lib/utils.mjs +0 -21
  290. package/dist/modules/auth/lib/utils.mjs.map +0 -1
  291. package/src/modules/inline-edit/hooks/use-inline.client copy.tsx +0 -97
@@ -1,5 +1,5 @@
1
1
  import { toggleVariants } from "./toggle.mjs";
2
- import * as react_jsx_runtime378 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime174 from "react/jsx-runtime";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
  import * as React$1 from "react";
5
5
  import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
@@ -11,14 +11,14 @@ declare function ToggleGroup({
11
11
  size,
12
12
  children,
13
13
  ...props
14
- }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime378.JSX.Element;
14
+ }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime174.JSX.Element;
15
15
  declare function ToggleGroupItem({
16
16
  className,
17
17
  children,
18
18
  variant,
19
19
  size,
20
20
  ...props
21
- }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime378.JSX.Element;
21
+ }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime174.JSX.Element;
22
22
  //#endregion
23
23
  export { ToggleGroup, ToggleGroupItem };
24
24
  //# sourceMappingURL=toggle-group.client.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime18 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
2
2
  import { VariantProps } from "class-variance-authority";
3
3
  import * as React$1 from "react";
4
4
  import * as TogglePrimitive from "@radix-ui/react-toggle";
@@ -14,7 +14,7 @@ declare function Toggle({
14
14
  variant,
15
15
  size,
16
16
  ...props
17
- }: React$1.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime18.JSX.Element;
17
+ }: React$1.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime17.JSX.Element;
18
18
  //#endregion
19
19
  export { Toggle, toggleVariants };
20
20
  //# sourceMappingURL=toggle.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime256 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime13 from "react/jsx-runtime";
2
2
  import * as React$1 from "react";
3
3
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
4
4
 
@@ -6,19 +6,19 @@ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
6
6
  declare function TooltipProvider({
7
7
  delayDuration,
8
8
  ...props
9
- }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime256.JSX.Element;
9
+ }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime13.JSX.Element;
10
10
  declare function Tooltip({
11
11
  ...props
12
- }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime256.JSX.Element;
12
+ }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime13.JSX.Element;
13
13
  declare function TooltipTrigger({
14
14
  ...props
15
- }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime256.JSX.Element;
15
+ }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime13.JSX.Element;
16
16
  declare function TooltipContent({
17
17
  className,
18
18
  sideOffset,
19
19
  children,
20
20
  ...props
21
- }: React$1.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime256.JSX.Element;
21
+ }: React$1.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime13.JSX.Element;
22
22
  //#endregion
23
23
  export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
24
24
  //# sourceMappingURL=tooltip.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.client.d.mts","names":[],"sources":["../../../src/components/ui/tooltip.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOS,eAAA;;;GAGN,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,YAAS,oBAAA,CAAA,GAAA,CAAA;iBAUhD,OAAA;;GAAsB,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,QAAK,oBAAA,CAAA,GAAA,CAAA;iBAQxE,cAAA;;GAA6B,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,WAAQ,oBAAA,CAAA,GAAA,CAAA;AAzB5D,iBA6BtB,cAAA,CAzBe;EAAA,SAAA;EAAA,UAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA8BrB,OAAA,CAAM,cA9Be,CAAA,OA8BO,gBAAA,CAAiB,OA9BxB,CAAA,CAAA,EA8BgC,oBAAA,CAAA,GAAA,CAAA,OA9BhC"}
1
+ {"version":3,"file":"tooltip.client.d.mts","names":[],"sources":["../../../src/components/ui/tooltip.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOS,eAAA;;;GAGN,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,YAAS,mBAAA,CAAA,GAAA,CAAA;iBAUhD,OAAA;;GAAsB,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,QAAK,mBAAA,CAAA,GAAA,CAAA;iBAQxE,cAAA;;GAA6B,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,WAAQ,mBAAA,CAAA,GAAA,CAAA;AAzB5D,iBA6BtB,cAAA,CAzBe;EAAA,SAAA;EAAA,UAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA8BrB,OAAA,CAAM,cA9Be,CAAA,OA8BO,gBAAA,CAAiB,OA9BxB,CAAA,CAAA,EA8BgC,mBAAA,CAAA,GAAA,CAAA,OA9BhC"}
@@ -31,7 +31,7 @@ function TooltipContent({ className, sideOffset = 0, children, ...props }) {
31
31
  sideOffset,
32
32
  className: cn("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit text-balance rounded-md px-3 py-1.5 text-xs", className),
33
33
  ...props,
34
- children: [children, /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
34
+ children: [children, /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]" })]
35
35
  }) });
36
36
  }
37
37
 
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.client.mjs","names":[],"sources":["../../../src/components/ui/tooltip.client.tsx"],"sourcesContent":["\"use client\";\n\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction TooltipProvider({\n delayDuration = 0,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n return (\n <TooltipPrimitive.Provider\n data-slot=\"tooltip-provider\"\n delayDuration={delayDuration}\n {...props}\n />\n );\n}\n\nfunction Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n return (\n <TooltipProvider>\n <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n </TooltipProvider>\n );\n}\n\nfunction TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nfunction TooltipContent({\n className,\n sideOffset = 0,\n children,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n \"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit text-balance rounded-md px-3 py-1.5 text-xs\",\n className,\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow className=\"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]\" />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };\n"],"mappings":";;;;;;;;AAOA,SAAS,gBAAgB,EACvB,gBAAgB,GAChB,GAAG,SACsD;AACzD,QACE,oBAAC,iBAAiB;EAChB,aAAU;EACK;EACf,GAAI;GACJ;;AAIN,SAAS,QAAQ,EAAE,GAAG,SAA6D;AACjF,QACE,oBAAC,6BACC,oBAAC,iBAAiB;EAAK,aAAU;EAAU,GAAI;GAAS,GACxC;;AAItB,SAAS,eAAe,EAAE,GAAG,SAAgE;AAC3F,QAAO,oBAAC,iBAAiB;EAAQ,aAAU;EAAkB,GAAI;GAAS;;AAG5E,SAAS,eAAe,EACtB,WACA,aAAa,GACb,UACA,GAAG,SACqD;AACxD,QACE,oBAAC,iBAAiB,oBAChB,qBAAC,iBAAiB;EAChB,aAAU;EACE;EACZ,WAAW,GACT,wXACA,UACD;EACD,GAAI;aAEH,UACD,oBAAC,iBAAiB,SAAM,WAAU,iGAAiG;GAC1G,GACH"}
1
+ {"version":3,"file":"tooltip.client.mjs","names":[],"sources":["../../../src/components/ui/tooltip.client.tsx"],"sourcesContent":["\"use client\";\n\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction TooltipProvider({\n delayDuration = 0,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n return (\n <TooltipPrimitive.Provider\n data-slot=\"tooltip-provider\"\n delayDuration={delayDuration}\n {...props}\n />\n );\n}\n\nfunction Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n return (\n <TooltipProvider>\n <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n </TooltipProvider>\n );\n}\n\nfunction TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nfunction TooltipContent({\n className,\n sideOffset = 0,\n children,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n \"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit text-balance rounded-md px-3 py-1.5 text-xs\",\n className,\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow className=\"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]\" />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };\n"],"mappings":";;;;;;;;AAOA,SAAS,gBAAgB,EACvB,gBAAgB,GAChB,GAAG,SACsD;AACzD,QACE,oBAAC,iBAAiB;EAChB,aAAU;EACK;EACf,GAAI;GACJ;;AAIN,SAAS,QAAQ,EAAE,GAAG,SAA6D;AACjF,QACE,oBAAC,6BACC,oBAAC,iBAAiB;EAAK,aAAU;EAAU,GAAI;GAAS,GACxC;;AAItB,SAAS,eAAe,EAAE,GAAG,SAAgE;AAC3F,QAAO,oBAAC,iBAAiB;EAAQ,aAAU;EAAkB,GAAI;GAAS;;AAG5E,SAAS,eAAe,EACtB,WACA,aAAa,GACb,UACA,GAAG,SACqD;AACxD,QACE,oBAAC,iBAAiB,oBAChB,qBAAC,iBAAiB;EAChB,aAAU;EACE;EACZ,WAAW,GACT,wXACA,UACD;EACD,GAAI;aAEH,UACD,oBAAC,iBAAiB,SAAM,WAAU,+FAA+F;GACxG,GACH"}
@@ -12,7 +12,9 @@ import { createFileHandlerUploadStrategy } from "./components/editor/extensions/
12
12
  import { convertEditorContentToHTML, convertHTMLToEditorContent } from "./components/editor/lib/helpers.mjs";
13
13
  import { AdminLoadingLayout } from "./components/layouts/admin-loading.mjs";
14
14
  import { EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle } from "./components/layouts/empty-page.mjs";
15
+ import { AdminErrorPage, ErrorPage } from "./components/layouts/error-page.mjs";
15
16
  import { ListLayout } from "./components/layouts/list-layout.mjs";
17
+ import { NotAllowedPage, NotAllowedPageProps } from "./components/layouts/not-allowed-page.mjs";
16
18
  import { AdminNotFoundPage, NotFoundPage } from "./components/layouts/not-found-page.mjs";
17
19
  import { RootLoading } from "./components/layouts/root-loading.mjs";
18
20
  import { Tab, TabLayout, TabLayoutProps } from "./components/layouts/tab-layout.mjs";
@@ -39,4 +41,4 @@ import { Slider } from "./components/ui/slider.mjs";
39
41
  import { Switch } from "./components/ui/switch.mjs";
40
42
  import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/ui/tabs.mjs";
41
43
  import { Textarea } from "./components/ui/textarea.mjs";
42
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminLoadingLayout, AdminNotFoundPage, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CreateStatusComponentProps, DataList, DataListItem, DataListItemProps, DataListProps, DataListTitle, DataListTitleProps, DataListValue, DataListValueProps, DataStack, DataStackColumn, DataStackColumnProps, DataStackGrid, DataStackGridProps, DataStackLayout, DataStackLayoutProps, DataStackProps, DataStackRow, DataStackRowProps, DataStackTitle, DataStackTitleProps, DataStackValue, DataStackValueProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditorJSONContent, EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle, Icon, Icons, Input, Label, ListLayout, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundPage, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RootLoading, ScrollArea, ScrollBar, Separator, Skeleton, Slider, StatusBadge, StatusField, Switch, Tab, TabLayout, TabLayoutProps, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, badgeVariants, buttonVariants, convertEditorContentToHTML, convertHTMLToEditorContent, createFileHandlerUploadStrategy, createStatusConfig, createStatusVariants, findStatus, navigationMenuTriggerStyle, toggleVariants };
44
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminErrorPage, AdminLoadingLayout, AdminNotFoundPage, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CreateStatusComponentProps, DataList, DataListItem, DataListItemProps, DataListProps, DataListTitle, DataListTitleProps, DataListValue, DataListValueProps, DataStack, DataStackColumn, DataStackColumnProps, DataStackGrid, DataStackGridProps, DataStackLayout, DataStackLayoutProps, DataStackProps, DataStackRow, DataStackRowProps, DataStackTitle, DataStackTitleProps, DataStackValue, DataStackValueProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditorJSONContent, EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle, ErrorPage, Icon, Icons, Input, Label, ListLayout, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotAllowedPage, NotAllowedPageProps, NotFoundPage, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RootLoading, ScrollArea, ScrollBar, Separator, Skeleton, Slider, StatusBadge, StatusField, Switch, Tab, TabLayout, TabLayoutProps, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, badgeVariants, buttonVariants, convertEditorContentToHTML, convertHTMLToEditorContent, createFileHandlerUploadStrategy, createStatusConfig, createStatusVariants, findStatus, navigationMenuTriggerStyle, toggleVariants };
@@ -2,12 +2,14 @@ import { Icons } from "./components/common/icons.mjs";
2
2
  import { Badge, badgeVariants } from "./components/ui/badge.mjs";
3
3
  import { StatusBadge, StatusField, createStatusConfig, createStatusVariants, findStatus } from "./components/common/status.mjs";
4
4
  import { createFileHandlerUploadStrategy } from "./components/editor/extensions/file-handler/strategy.mjs";
5
- import { Skeleton } from "./components/ui/skeleton.mjs";
6
5
  import { convertEditorContentToHTML, convertHTMLToEditorContent } from "./components/editor/lib/helpers.mjs";
6
+ import { Skeleton } from "./components/ui/skeleton.mjs";
7
7
  import { AdminLoadingLayout } from "./components/layouts/admin-loading.mjs";
8
8
  import { EmptyPage, EmptyPageDescription, EmptyPageTitle } from "./components/layouts/empty-page.mjs";
9
- import { ListLayout } from "./components/layouts/list-layout.mjs";
10
9
  import { Button, buttonVariants } from "./components/ui/button.mjs";
10
+ import { NotAllowedPage } from "./components/layouts/not-allowed-page.mjs";
11
+ import { AdminErrorPage, ErrorPage } from "./components/layouts/error-page.mjs";
12
+ import { ListLayout } from "./components/layouts/list-layout.mjs";
11
13
  import { AdminNotFoundPage, NotFoundPage } from "./components/layouts/not-found-page.mjs";
12
14
  import { RootLoading } from "./components/layouts/root-loading.mjs";
13
15
  import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/ui/tabs.mjs";
@@ -39,4 +41,4 @@ import { Switch } from "./components/ui/switch.mjs";
39
41
  import { Textarea } from "./components/ui/textarea.mjs";
40
42
  import { Toggle, toggleVariants } from "./components/ui/toggle.mjs";
41
43
 
42
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminLoadingLayout, AdminNotFoundPage, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataList, DataListItem, DataListTitle, DataListValue, DataStack, DataStackColumn, DataStackGrid, DataStackLayout, DataStackRow, DataStackTitle, DataStackValue, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyPage, EmptyPageDescription, EmptyPageTitle, Icons, Input, Label, ListLayout, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundPage, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RootLoading, ScrollArea, ScrollBar, Separator, Skeleton, Slider, StatusBadge, StatusField, Switch, TabLayout, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, badgeVariants, buttonVariants, convertEditorContentToHTML, convertHTMLToEditorContent, createFileHandlerUploadStrategy, createStatusConfig, createStatusVariants, findStatus, navigationMenuTriggerStyle, toggleVariants };
44
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminErrorPage, AdminLoadingLayout, AdminNotFoundPage, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataList, DataListItem, DataListTitle, DataListValue, DataStack, DataStackColumn, DataStackGrid, DataStackLayout, DataStackRow, DataStackTitle, DataStackValue, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyPage, EmptyPageDescription, EmptyPageTitle, ErrorPage, Icons, Input, Label, ListLayout, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotAllowedPage, NotFoundPage, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RootLoading, ScrollArea, ScrollBar, Separator, Skeleton, Slider, StatusBadge, StatusField, Switch, TabLayout, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, badgeVariants, buttonVariants, convertEditorContentToHTML, convertHTMLToEditorContent, createFileHandlerUploadStrategy, createStatusConfig, createStatusVariants, findStatus, navigationMenuTriggerStyle, toggleVariants };
@@ -1,4 +1,4 @@
1
- import * as _tanstack_react_query0 from "@tanstack/react-query";
1
+ import * as _tanstack_react_query5 from "@tanstack/react-query";
2
2
  import { DefaultError, MutationFunctionContext, UseMutationOptions } from "@tanstack/react-query";
3
3
  import "client-only";
4
4
 
@@ -12,7 +12,7 @@ import "client-only";
12
12
  */
13
13
  declare function useAction<TData = unknown, TError = DefaultError, TVariables = void, TContext = MutationFunctionContext>(options?: UseMutationOptions<TData, TError, TVariables, TContext> & {
14
14
  onRedirect?: () => void;
15
- }): _tanstack_react_query0.UseMutationResult<TData, TError, TVariables, TContext>;
15
+ }): _tanstack_react_query5.UseMutationResult<TData, TError, TVariables, TContext>;
16
16
  //#endregion
17
17
  export { useAction };
18
18
  //# sourceMappingURL=use-action.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime67 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime40 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/lib/hooks/use-indicator.d.ts
@@ -34,7 +34,7 @@ declare function IndicatorContextProvider({
34
34
  children
35
35
  }: {
36
36
  children: React.ReactNode;
37
- }): react_jsx_runtime67.JSX.Element;
37
+ }): react_jsx_runtime40.JSX.Element;
38
38
  //#endregion
39
39
  export { IndicatorContext, IndicatorContextProvider, IndicatorStatus, useIndicator, useLocalIndicator };
40
40
  //# sourceMappingURL=use-indicator.d.mts.map
@@ -1,21 +1,35 @@
1
- import { Permission } from "../lib/permissions.mjs";
2
- import * as react_jsx_runtime249 from "react/jsx-runtime";
1
+ import { UsePermissionProps } from "../hooks/use-permission.mjs";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
3
  import { JSX } from "react";
4
4
 
5
5
  //#region src/modules/auth/components/allowed.client.d.ts
6
6
  /**
7
- * Allowed
7
+ * Allowed types
8
+ */
9
+ type AllowedStrategy = "all" | "any";
10
+ /**
11
+ * Allowed props
8
12
  */
9
- type AllowedProps = {
10
- permission: Permission;
13
+ type AllowedProps = UsePermissionProps & {
14
+ /**
15
+ * Fallback component to render if the user doesn't have the permission
16
+ * @default null
17
+ */
11
18
  fallback?: JSX.Element | string;
19
+ /**
20
+ * Children to render if the user has the permission
21
+ */
12
22
  children: React.ReactNode;
13
23
  };
24
+ /**
25
+ * Allowed
26
+ */
14
27
  declare function Allowed({
15
28
  permission,
29
+ strategy,
16
30
  fallback,
17
31
  children
18
- }: AllowedProps): react_jsx_runtime249.JSX.Element;
32
+ }: AllowedProps): react_jsx_runtime1.JSX.Element;
19
33
  //#endregion
20
- export { Allowed };
34
+ export { Allowed, AllowedProps, AllowedStrategy };
21
35
  //# sourceMappingURL=allowed.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"allowed.client.d.mts","names":[],"sources":["../../../../src/modules/auth/components/allowed.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAIqD,KAKhD,YAAA,GAAY;EACH,UAAA,EAAA,UAAA;EACD,QAAI,CAAA,EAAJ,GAAA,CAAI,OAAA,GAAA,MAAA;EACL,QAAM,EAAN,KAAA,CAAM,SAAA;CAAS;AAGX,iBAAA,OAAA,CAAO;EAAA,UAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAAqC,YAArC,CAAA,EAAiD,oBAAA,CAAA,GAAA,CAAA,OAAjD"}
1
+ {"version":3,"file":"allowed.client.d.mts","names":[],"sources":["../../../../src/modules/auth/components/allowed.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAQY,KAAA,eAAA,GAAe,KAAA,GAAA,KAAA;AAK3B;;;AAwBkB,KAxBN,YAAA,GAAe,kBAwBT,GAAA;EAAS;AAM3B;;;EAAgD,QAAA,CAAA,EAXnC,GAAA,CAAI,OAW+B,GAAA,MAAA;EAAU;;;EAAwB,QAAA,EANtE,KAAA,CAAM,SAMgE;;;;;iBAAlE,OAAA;;;;;GAAsD,eAAY,kBAAA,CAAA,GAAA,CAAA"}
@@ -4,8 +4,14 @@ import { usePermission } from "../hooks/use-permission.mjs";
4
4
  import { Fragment, jsx } from "react/jsx-runtime";
5
5
 
6
6
  //#region src/modules/auth/components/allowed.client.tsx
7
- function Allowed({ permission, fallback, children }) {
8
- const { data } = usePermission(permission);
7
+ /**
8
+ * Allowed
9
+ */
10
+ function Allowed({ permission, strategy, fallback, children }) {
11
+ const { data } = usePermission({
12
+ permission,
13
+ strategy
14
+ });
9
15
  if (data?.success) return /* @__PURE__ */ jsx(Fragment, { children });
10
16
  return /* @__PURE__ */ jsx(Fragment, { children: fallback });
11
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"allowed.client.mjs","names":[],"sources":["../../../../src/modules/auth/components/allowed.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { JSX } from \"react\";\nimport { usePermission } from \"../hooks/use-permission\";\nimport { type Permission } from \"../lib/permissions\";\n\n/**\n * Allowed\n */\ntype AllowedProps = {\n permission: Permission;\n fallback?: JSX.Element | string;\n children: React.ReactNode;\n};\n\nexport function Allowed({ permission, fallback, children }: AllowedProps) {\n const { data } = usePermission(permission);\n\n if (data?.success) return <>{children}</>;\n\n return <>{fallback}</>;\n}\n"],"mappings":";;;;;;AAeA,SAAgB,QAAQ,EAAE,YAAY,UAAU,YAA0B;CACxE,MAAM,EAAE,SAAS,cAAc,WAAW;AAE1C,KAAI,MAAM,QAAS,QAAO,gCAAG,WAAY;AAEzC,QAAO,0CAAG,WAAY"}
1
+ {"version":3,"file":"allowed.client.mjs","names":[],"sources":["../../../../src/modules/auth/components/allowed.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { JSX } from \"react\";\nimport { usePermission, UsePermissionProps } from \"../hooks/use-permission\";\n\n/**\n * Allowed types\n */\nexport type AllowedStrategy = \"all\" | \"any\";\n\n/**\n * Allowed props\n */\nexport type AllowedProps = UsePermissionProps & {\n // /**\n // * Permission to check\n // * @example { project: [\"view\", \"create\"] }\n // */\n // permission: Permission;\n\n // /**\n // * Strategy to use when checking multiple permissions\n // * - \"all\": all permissions must be allowed\n // * - \"any\": at least one permission must be allowed\n // * @default \"all\"\n // */\n // strategy?: AllowedStrategy;\n\n /**\n * Fallback component to render if the user doesn't have the permission\n * @default null\n */\n fallback?: JSX.Element | string;\n\n /**\n * Children to render if the user has the permission\n */\n children: React.ReactNode;\n};\n\n/**\n * Allowed\n */\nexport function Allowed({ permission, strategy, fallback, children }: AllowedProps) {\n const { data } = usePermission({ permission, strategy } as UsePermissionProps);\n\n if (data?.success) return <>{children}</>;\n\n return <>{fallback}</>;\n}\n"],"mappings":";;;;;;;;;AA2CA,SAAgB,QAAQ,EAAE,YAAY,UAAU,UAAU,YAA0B;CAClF,MAAM,EAAE,SAAS,cAAc;EAAE;EAAY;EAAU,CAAuB;AAE9E,KAAI,MAAM,QAAS,QAAO,gCAAG,WAAY;AAEzC,QAAO,0CAAG,WAAY"}
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime246 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime36 from "react/jsx-runtime";
2
2
  import { PropsWithChildren } from "react";
3
3
 
4
4
  //#region src/modules/auth/components/auth-layout.server.d.ts
5
5
  declare function AuthLayout(props: PropsWithChildren<{
6
6
  name: string;
7
- }>): Promise<react_jsx_runtime246.JSX.Element>;
7
+ }>): Promise<react_jsx_runtime36.JSX.Element>;
8
8
  //#endregion
9
9
  export { AuthLayout };
10
10
  //# sourceMappingURL=auth-layout.server.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-layout.server.d.mts","names":[],"sources":["../../../../src/modules/auth/components/auth-layout.server.tsx"],"sourcesContent":[],"mappings":";;;;iBAIsB,UAAA,QAAkB;;KAAmC,QAAA,oBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"auth-layout.server.d.mts","names":[],"sources":["../../../../src/modules/auth/components/auth-layout.server.tsx"],"sourcesContent":[],"mappings":";;;;iBAIsB,UAAA,QAAkB;;KAAmC,QAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime66 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime39 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/modules/auth/components/auth-loading.d.ts
4
- declare function AuthLoading(): react_jsx_runtime66.JSX.Element;
4
+ declare function AuthLoading(): react_jsx_runtime39.JSX.Element;
5
5
  //#endregion
6
6
  export { AuthLoading };
7
7
  //# sourceMappingURL=auth-loading.d.mts.map
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime250 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/modules/auth/components/create-first-user-page.client.d.ts
4
- declare function CreateFirstUserPage(): react_jsx_runtime250.JSX.Element;
4
+ declare function CreateFirstUserPage(): react_jsx_runtime2.JSX.Element;
5
5
  //#endregion
6
6
  export { CreateFirstUserPage };
7
7
  //# sourceMappingURL=create-first-user-page.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-first-user-page.client.d.mts","names":[],"sources":["../../../../src/modules/auth/components/create-first-user-page.client.tsx"],"sourcesContent":[],"mappings":";;;iBA0BgB,mBAAA,CAAA,GAAmB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"create-first-user-page.client.d.mts","names":[],"sources":["../../../../src/modules/auth/components/create-first-user-page.client.tsx"],"sourcesContent":[],"mappings":";;;iBA0BgB,mBAAA,CAAA,GAAmB,kBAAA,CAAA,GAAA,CAAA"}
@@ -54,6 +54,7 @@ function CreateFirstUserPage() {
54
54
  },
55
55
  disabled
56
56
  });
57
+ if (Object.keys(form.formState.errors).length > 0) console.error(form.formState.errors);
57
58
  return /* @__PURE__ */ jsxs("div", {
58
59
  className: "mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]",
59
60
  children: [/* @__PURE__ */ jsxs("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-first-user-page.client.mjs","names":["Form"],"sources":["../../../../src/modules/auth/components/create-first-user-page.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { Icons } from \"@/components/common/icons\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n Form,\n FormControl,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n} from \"@/components/ui/form.client\";\nimport { Input } from \"@/components/ui/input\";\nimport { useMutation } from \"@tanstack/react-query\";\nimport { parseAsString, useQueryState } from \"nuqs\";\nimport { toast } from \"sonner\";\nimport * as z from \"zod\";\nimport { createUserSchema } from \"../lib/validators\";\n\nimport { standardSchemaResolver } from \"@hookform/resolvers/standard-schema\";\nimport { Eye, EyeOff } from \"lucide-react\";\nimport { useRouter } from \"next/navigation\";\nimport { useState } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { authClient } from \"../handler/client.client\";\n\nexport function CreateFirstUserPage() {\n const router = useRouter();\n const [callbackURL] = useQueryState(\"callbackURL\", parseAsString);\n const [showPassword, setShowPassword] = useState(false);\n\n const createFirstUserMutation = useMutation({\n mutationFn: async (data: z.infer<typeof createUserSchema>) => {\n const result = await authClient.signUp.email({\n email: data.email,\n password: data.password,\n name: `${data.firstName} ${data.lastName}`,\n firstName: data.firstName,\n lastName: data.lastName,\n callbackURL: callbackURL ?? \"/admin\",\n });\n\n if (result.error) throw result.error;\n\n return result.data;\n },\n onError: (err: Error) => {\n console.error(\"Create First User error: \", err);\n toast.error(\"Er is iets misgegaan\");\n },\n onSuccess: () => {\n router.replace(callbackURL ?? \"/admin\");\n toast.success(\"Account succesvol aangemaakt!\");\n },\n });\n\n const disabled = createFirstUserMutation.isPending;\n\n const form = useForm<z.infer<typeof createUserSchema>>({\n resolver: standardSchemaResolver(createUserSchema),\n defaultValues: { email: \"\", firstName: \"\", lastName: \"\", password: \"\" },\n disabled,\n });\n\n return (\n <div className=\"mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]\">\n <div className=\"flex flex-col space-y-2 text-center\">\n <h1 className=\"text-3xl font-semibold tracking-tight\">Welkom eerste gebruiker</h1>\n <p className=\"text-muted-foreground text-sm\">Maak eerst een account aan om in te loggen</p>\n </div>\n\n <Form {...form}>\n <form\n className=\"space-y-6\"\n onSubmit={form.handleSubmit((data) => createFirstUserMutation.mutate(data))}\n >\n <div className=\"flex flex-col gap-3\">\n <FormField\n control={form.control}\n name=\"firstName\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Voornaam</FormLabel>\n <FormControl>\n <Input placeholder=\"Voornaam\" {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n\n <FormField\n control={form.control}\n name=\"lastName\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Achternaam</FormLabel>\n <FormControl>\n <Input placeholder=\"Achternaam\" {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n\n <FormField\n control={form.control}\n name=\"email\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Email</FormLabel>\n <FormControl>\n <Input placeholder=\"email@example.be\" {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n\n <FormField\n control={form.control}\n name=\"password\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Wachtwoord</FormLabel>\n <FormControl>\n <div className=\"relative\">\n <Input\n type={showPassword ? \"text\" : \"password\"}\n placeholder=\"********\"\n {...field}\n />\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n className=\"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent\"\n onClick={() => setShowPassword(!showPassword)}\n disabled={disabled}\n >\n {showPassword ? (\n <EyeOff className=\"text-muted-foreground h-4 w-4\" />\n ) : (\n <Eye className=\"text-muted-foreground h-4 w-4\" />\n )}\n </Button>\n </div>\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n </div>\n\n <div className=\"space-y-3\">\n <Button disabled={disabled} className=\"w-full\">\n {createFirstUserMutation.isPending && (\n <Icons.spinner className=\"mr-2 h-4 w-4 animate-spin\" />\n )}\n Account aanmaken\n </Button>\n </div>\n </form>\n </Form>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA0BA,SAAgB,sBAAsB;CACpC,MAAM,SAAS,WAAW;CAC1B,MAAM,CAAC,eAAe,cAAc,eAAe,cAAc;CACjE,MAAM,CAAC,cAAc,mBAAmB,SAAS,MAAM;CAEvD,MAAM,0BAA0B,YAAY;EAC1C,YAAY,OAAO,SAA2C;GAC5D,MAAM,SAAS,MAAM,WAAW,OAAO,MAAM;IAC3C,OAAO,KAAK;IACZ,UAAU,KAAK;IACf,MAAM,GAAG,KAAK,UAAU,GAAG,KAAK;IAChC,WAAW,KAAK;IAChB,UAAU,KAAK;IACf,aAAa,eAAe;IAC7B,CAAC;AAEF,OAAI,OAAO,MAAO,OAAM,OAAO;AAE/B,UAAO,OAAO;;EAEhB,UAAU,QAAe;AACvB,WAAQ,MAAM,6BAA6B,IAAI;AAC/C,SAAM,MAAM,uBAAuB;;EAErC,iBAAiB;AACf,UAAO,QAAQ,eAAe,SAAS;AACvC,SAAM,QAAQ,gCAAgC;;EAEjD,CAAC;CAEF,MAAM,WAAW,wBAAwB;CAEzC,MAAM,OAAO,QAA0C;EACrD,UAAU,uBAAuB,iBAAiB;EAClD,eAAe;GAAE,OAAO;GAAI,WAAW;GAAI,UAAU;GAAI,UAAU;GAAI;EACvE;EACD,CAAC;AAEF,QACE,qBAAC;EAAI,WAAU;aACb,qBAAC;GAAI,WAAU;cACb,oBAAC;IAAG,WAAU;cAAwC;KAA4B,EAClF,oBAAC;IAAE,WAAU;cAAgC;KAA8C;IACvF,EAEN,oBAACA;GAAK,GAAI;aACR,qBAAC;IACC,WAAU;IACV,UAAU,KAAK,cAAc,SAAS,wBAAwB,OAAO,KAAK,CAAC;eAE3E,qBAAC;KAAI,WAAU;;MACb,oBAAC;OACC,SAAS,KAAK;OACd,MAAK;OACL,SAAS,EAAE,YACT,qBAAC;QACC,oBAAC,uBAAU,aAAoB;QAC/B,oBAAC,yBACC,oBAAC;SAAM,aAAY;SAAW,GAAI;UAAS,GAC/B;QACd,oBAAC,gBAAc;WACN;QAEb;MAEF,oBAAC;OACC,SAAS,KAAK;OACd,MAAK;OACL,SAAS,EAAE,YACT,qBAAC;QACC,oBAAC,uBAAU,eAAsB;QACjC,oBAAC,yBACC,oBAAC;SAAM,aAAY;SAAa,GAAI;UAAS,GACjC;QACd,oBAAC,gBAAc;WACN;QAEb;MAEF,oBAAC;OACC,SAAS,KAAK;OACd,MAAK;OACL,SAAS,EAAE,YACT,qBAAC;QACC,oBAAC,uBAAU,UAAiB;QAC5B,oBAAC,yBACC,oBAAC;SAAM,aAAY;SAAmB,GAAI;UAAS,GACvC;QACd,oBAAC,gBAAc;WACN;QAEb;MAEF,oBAAC;OACC,SAAS,KAAK;OACd,MAAK;OACL,SAAS,EAAE,YACT,qBAAC;QACC,oBAAC,uBAAU,eAAsB;QACjC,oBAAC,yBACC,qBAAC;SAAI,WAAU;oBACb,oBAAC;UACC,MAAM,eAAe,SAAS;UAC9B,aAAY;UACZ,GAAI;WACJ,EACF,oBAAC;UACC,MAAK;UACL,SAAQ;UACR,MAAK;UACL,WAAU;UACV,eAAe,gBAAgB,CAAC,aAAa;UACnC;oBAET,eACC,oBAAC,UAAO,WAAU,kCAAkC,GAEpD,oBAAC,OAAI,WAAU,kCAAkC;WAE5C;UACL,GACM;QACd,oBAAC,gBAAc;WACN;QAEb;;MACE,EAEN,oBAAC;KAAI,WAAU;eACb,qBAAC;MAAiB;MAAU,WAAU;iBACnC,wBAAwB,aACvB,oBAAC,MAAM,WAAQ,WAAU,8BAA8B,EACvD;OAEK;MACL;KACD;IACF;GACH"}
1
+ {"version":3,"file":"create-first-user-page.client.mjs","names":["Form"],"sources":["../../../../src/modules/auth/components/create-first-user-page.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { Icons } from \"@/components/common/icons\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n Form,\n FormControl,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n} from \"@/components/ui/form.client\";\nimport { Input } from \"@/components/ui/input\";\nimport { useMutation } from \"@tanstack/react-query\";\nimport { parseAsString, useQueryState } from \"nuqs\";\nimport { toast } from \"sonner\";\nimport * as z from \"zod\";\nimport { createUserSchema } from \"../lib/validators\";\n\nimport { standardSchemaResolver } from \"@hookform/resolvers/standard-schema\";\nimport { Eye, EyeOff } from \"lucide-react\";\nimport { useRouter } from \"next/navigation\";\nimport { useState } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { authClient } from \"../handler/client.client\";\n\nexport function CreateFirstUserPage() {\n const router = useRouter();\n const [callbackURL] = useQueryState(\"callbackURL\", parseAsString);\n const [showPassword, setShowPassword] = useState(false);\n\n const createFirstUserMutation = useMutation({\n mutationFn: async (data: z.infer<typeof createUserSchema>) => {\n const result = await authClient.signUp.email({\n email: data.email,\n password: data.password,\n name: `${data.firstName} ${data.lastName}`,\n firstName: data.firstName,\n lastName: data.lastName,\n callbackURL: callbackURL ?? \"/admin\",\n });\n\n if (result.error) throw result.error;\n\n return result.data;\n },\n onError: (err: Error) => {\n console.error(\"Create First User error: \", err);\n toast.error(\"Er is iets misgegaan\");\n },\n onSuccess: () => {\n router.replace(callbackURL ?? \"/admin\");\n toast.success(\"Account succesvol aangemaakt!\");\n },\n });\n\n const disabled = createFirstUserMutation.isPending;\n\n const form = useForm<z.infer<typeof createUserSchema>>({\n resolver: standardSchemaResolver(createUserSchema),\n defaultValues: { email: \"\", firstName: \"\", lastName: \"\", password: \"\" },\n disabled,\n });\n\n if(Object.keys(form.formState.errors).length > 0) {\n console.error(form.formState.errors);\n }\n\n return (\n <div className=\"mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]\">\n <div className=\"flex flex-col space-y-2 text-center\">\n <h1 className=\"text-3xl font-semibold tracking-tight\">Welkom eerste gebruiker</h1>\n <p className=\"text-muted-foreground text-sm\">Maak eerst een account aan om in te loggen</p>\n </div>\n\n <Form {...form}>\n <form\n className=\"space-y-6\"\n onSubmit={form.handleSubmit((data) => createFirstUserMutation.mutate(data))}\n >\n <div className=\"flex flex-col gap-3\">\n <FormField\n control={form.control}\n name=\"firstName\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Voornaam</FormLabel>\n <FormControl>\n <Input placeholder=\"Voornaam\" {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n\n <FormField\n control={form.control}\n name=\"lastName\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Achternaam</FormLabel>\n <FormControl>\n <Input placeholder=\"Achternaam\" {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n\n <FormField\n control={form.control}\n name=\"email\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Email</FormLabel>\n <FormControl>\n <Input placeholder=\"email@example.be\" {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n\n <FormField\n control={form.control}\n name=\"password\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Wachtwoord</FormLabel>\n <FormControl>\n <div className=\"relative\">\n <Input\n type={showPassword ? \"text\" : \"password\"}\n placeholder=\"********\"\n {...field}\n />\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n className=\"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent\"\n onClick={() => setShowPassword(!showPassword)}\n disabled={disabled}\n >\n {showPassword ? (\n <EyeOff className=\"text-muted-foreground h-4 w-4\" />\n ) : (\n <Eye className=\"text-muted-foreground h-4 w-4\" />\n )}\n </Button>\n </div>\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n </div>\n\n <div className=\"space-y-3\">\n <Button disabled={disabled} className=\"w-full\">\n {createFirstUserMutation.isPending && (\n <Icons.spinner className=\"mr-2 h-4 w-4 animate-spin\" />\n )}\n Account aanmaken\n </Button>\n </div>\n </form>\n </Form>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA0BA,SAAgB,sBAAsB;CACpC,MAAM,SAAS,WAAW;CAC1B,MAAM,CAAC,eAAe,cAAc,eAAe,cAAc;CACjE,MAAM,CAAC,cAAc,mBAAmB,SAAS,MAAM;CAEvD,MAAM,0BAA0B,YAAY;EAC1C,YAAY,OAAO,SAA2C;GAC5D,MAAM,SAAS,MAAM,WAAW,OAAO,MAAM;IAC3C,OAAO,KAAK;IACZ,UAAU,KAAK;IACf,MAAM,GAAG,KAAK,UAAU,GAAG,KAAK;IAChC,WAAW,KAAK;IAChB,UAAU,KAAK;IACf,aAAa,eAAe;IAC7B,CAAC;AAEF,OAAI,OAAO,MAAO,OAAM,OAAO;AAE/B,UAAO,OAAO;;EAEhB,UAAU,QAAe;AACvB,WAAQ,MAAM,6BAA6B,IAAI;AAC/C,SAAM,MAAM,uBAAuB;;EAErC,iBAAiB;AACf,UAAO,QAAQ,eAAe,SAAS;AACvC,SAAM,QAAQ,gCAAgC;;EAEjD,CAAC;CAEF,MAAM,WAAW,wBAAwB;CAEzC,MAAM,OAAO,QAA0C;EACrD,UAAU,uBAAuB,iBAAiB;EAClD,eAAe;GAAE,OAAO;GAAI,WAAW;GAAI,UAAU;GAAI,UAAU;GAAI;EACvE;EACD,CAAC;AAEF,KAAG,OAAO,KAAK,KAAK,UAAU,OAAO,CAAC,SAAS,EAC7C,SAAQ,MAAM,KAAK,UAAU,OAAO;AAGtC,QACE,qBAAC;EAAI,WAAU;aACb,qBAAC;GAAI,WAAU;cACb,oBAAC;IAAG,WAAU;cAAwC;KAA4B,EAClF,oBAAC;IAAE,WAAU;cAAgC;KAA8C;IACvF,EAEN,oBAACA;GAAK,GAAI;aACR,qBAAC;IACC,WAAU;IACV,UAAU,KAAK,cAAc,SAAS,wBAAwB,OAAO,KAAK,CAAC;eAE3E,qBAAC;KAAI,WAAU;;MACb,oBAAC;OACC,SAAS,KAAK;OACd,MAAK;OACL,SAAS,EAAE,YACT,qBAAC;QACC,oBAAC,uBAAU,aAAoB;QAC/B,oBAAC,yBACC,oBAAC;SAAM,aAAY;SAAW,GAAI;UAAS,GAC/B;QACd,oBAAC,gBAAc;WACN;QAEb;MAEF,oBAAC;OACC,SAAS,KAAK;OACd,MAAK;OACL,SAAS,EAAE,YACT,qBAAC;QACC,oBAAC,uBAAU,eAAsB;QACjC,oBAAC,yBACC,oBAAC;SAAM,aAAY;SAAa,GAAI;UAAS,GACjC;QACd,oBAAC,gBAAc;WACN;QAEb;MAEF,oBAAC;OACC,SAAS,KAAK;OACd,MAAK;OACL,SAAS,EAAE,YACT,qBAAC;QACC,oBAAC,uBAAU,UAAiB;QAC5B,oBAAC,yBACC,oBAAC;SAAM,aAAY;SAAmB,GAAI;UAAS,GACvC;QACd,oBAAC,gBAAc;WACN;QAEb;MAEF,oBAAC;OACC,SAAS,KAAK;OACd,MAAK;OACL,SAAS,EAAE,YACT,qBAAC;QACC,oBAAC,uBAAU,eAAsB;QACjC,oBAAC,yBACC,qBAAC;SAAI,WAAU;oBACb,oBAAC;UACC,MAAM,eAAe,SAAS;UAC9B,aAAY;UACZ,GAAI;WACJ,EACF,oBAAC;UACC,MAAK;UACL,SAAQ;UACR,MAAK;UACL,WAAU;UACV,eAAe,gBAAgB,CAAC,aAAa;UACnC;oBAET,eACC,oBAAC,UAAO,WAAU,kCAAkC,GAEpD,oBAAC,OAAI,WAAU,kCAAkC;WAE5C;UACL,GACM;QACd,oBAAC,gBAAc;WACN;QAEb;;MACE,EAEN,oBAAC;KAAI,WAAU;eACb,qBAAC;MAAiB;MAAU,WAAU;iBACnC,wBAAwB,aACvB,oBAAC,MAAM,WAAQ,WAAU,8BAA8B,EACvD;OAEK;MACL;KACD;IACF;GACH"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime251 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/modules/auth/components/forget-password-page.client.d.ts
4
- declare function ForgetPasswordPage(): react_jsx_runtime251.JSX.Element;
4
+ declare function ForgetPasswordPage(): react_jsx_runtime3.JSX.Element;
5
5
  //#endregion
6
6
  export { ForgetPasswordPage };
7
7
  //# sourceMappingURL=forget-password-page.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"forget-password-page.client.d.mts","names":[],"sources":["../../../../src/modules/auth/components/forget-password-page.client.tsx"],"sourcesContent":[],"mappings":";;;iBAcgB,kBAAA,CAAA,GAAkB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"forget-password-page.client.d.mts","names":[],"sources":["../../../../src/modules/auth/components/forget-password-page.client.tsx"],"sourcesContent":[],"mappings":";;;iBAcgB,kBAAA,CAAA,GAAkB,kBAAA,CAAA,GAAA,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { TDatabaseSchema } from "../../config/db/types.mjs";
2
2
  import { TulipContext } from "../../config/lib/context.mjs";
3
3
  import "../../../config.mjs";
4
- import * as react_jsx_runtime247 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime37 from "react/jsx-runtime";
5
5
  import { PropsWithChildren } from "react";
6
6
 
7
7
  //#region src/modules/auth/components/guard-first-user.server.d.ts
@@ -12,7 +12,7 @@ declare function AuthGuardFirstUser<TSchema extends TDatabaseSchema>({
12
12
  children,
13
13
  db,
14
14
  login
15
- }: AuthGuardFirstUserProps<TSchema>): Promise<react_jsx_runtime247.JSX.Element>;
15
+ }: AuthGuardFirstUserProps<TSchema>): Promise<react_jsx_runtime37.JSX.Element>;
16
16
  //#endregion
17
17
  export { AuthGuardFirstUser };
18
18
  //# sourceMappingURL=guard-first-user.server.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guard-first-user.server.d.mts","names":[],"sources":["../../../../src/modules/auth/components/guard-first-user.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;KAMK,wCAAwC,mBAAmB,kBAC9D,KAAK,aAAa;;;iBAGE,mCAAmC;;;;GAItD,wBAAwB,WAAQ,QAAA,oBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"guard-first-user.server.d.mts","names":[],"sources":["../../../../src/modules/auth/components/guard-first-user.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;KAMK,wCAAwC,mBAAmB,kBAC9D,KAAK,aAAa;;;iBAGE,mCAAmC;;;;GAItD,wBAAwB,WAAQ,QAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,14 +1,14 @@
1
1
  import { TDatabaseSchema } from "../../config/db/types.mjs";
2
2
  import { TulipContext } from "../../config/lib/context.mjs";
3
3
  import "../../../config.mjs";
4
- import * as react_jsx_runtime248 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime38 from "react/jsx-runtime";
5
5
  import { PropsWithChildren } from "react";
6
6
 
7
7
  //#region src/modules/auth/components/guard.server.d.ts
8
8
  declare function AuthGuard<TSchema extends TDatabaseSchema>({
9
9
  children,
10
10
  auth
11
- }: PropsWithChildren<Pick<TulipContext<TSchema>, "auth">>): Promise<react_jsx_runtime248.JSX.Element>;
11
+ }: PropsWithChildren<Pick<TulipContext<TSchema>, "auth">>): Promise<react_jsx_runtime38.JSX.Element>;
12
12
  //#endregion
13
13
  export { AuthGuard };
14
14
  //# sourceMappingURL=guard.server.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guard.server.d.mts","names":[],"sources":["../../../../src/modules/auth/components/guard.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;iBAOsB,0BAA0B;;;GAG7C,kBAAkB,KAAK,aAAa,qBAAkB,QAAA,oBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"guard.server.d.mts","names":[],"sources":["../../../../src/modules/auth/components/guard.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;iBAOsB,0BAA0B;;;GAG7C,kBAAkB,KAAK,aAAa,qBAAkB,QAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime252 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/modules/auth/components/login-page.client.d.ts
4
4
  type LoginPageProps = {
@@ -6,7 +6,7 @@ type LoginPageProps = {
6
6
  enablePasskey?: boolean;
7
7
  };
8
8
  };
9
- declare function LoginPage(props: LoginPageProps): react_jsx_runtime252.JSX.Element;
9
+ declare function LoginPage(props: LoginPageProps): react_jsx_runtime4.JSX.Element;
10
10
  //#endregion
11
11
  export { LoginPage };
12
12
  //# sourceMappingURL=login-page.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"login-page.client.d.mts","names":[],"sources":["../../../../src/modules/auth/components/login-page.client.tsx"],"sourcesContent":[],"mappings":";;;KAmBK,cAAA;;;EAAA,CAAA;AAML,CAAA;iBAAgB,SAAA,QAAiB,iBAAc,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"login-page.client.d.mts","names":[],"sources":["../../../../src/modules/auth/components/login-page.client.tsx"],"sourcesContent":[],"mappings":";;;KAmBK,cAAA;;;EAAA,CAAA;AAML,CAAA;iBAAgB,SAAA,QAAiB,iBAAc,kBAAA,CAAA,GAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime253 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/modules/auth/components/reset-password-page.client.d.ts
4
4
  declare function ResetPasswordPage(params: {
@@ -6,7 +6,7 @@ declare function ResetPasswordPage(params: {
6
6
  email: string;
7
7
  otp: string;
8
8
  }>;
9
- }): react_jsx_runtime253.JSX.Element;
9
+ }): react_jsx_runtime5.JSX.Element;
10
10
  //#endregion
11
11
  export { ResetPasswordPage };
12
12
  //# sourceMappingURL=reset-password-page.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password-page.client.d.mts","names":[],"sources":["../../../../src/modules/auth/components/reset-password-page.client.tsx"],"sourcesContent":[],"mappings":";;;iBAuBgB,iBAAA;gBACA;;IADA,GAAA,EAAA,MAAA;;IAEf,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"reset-password-page.client.d.mts","names":[],"sources":["../../../../src/modules/auth/components/reset-password-page.client.tsx"],"sourcesContent":[],"mappings":";;;iBAuBgB,iBAAA;gBACA;;IADA,GAAA,EAAA,MAAA;;IAEf,kBAAA,CAAA,GAAA,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { UpdatePasswordSchema } from "../lib/validators.mjs";
2
2
  import { CommandFormDialogTrigger } from "../../commands/components/form-dialog-command.client.mjs";
3
- import * as react_jsx_runtime254 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
4
4
  import React from "react";
5
5
  import { DefaultError, MutationOptions } from "@tanstack/react-query";
6
6
 
@@ -16,7 +16,7 @@ declare function UpdatePasswordCommand<TData = unknown, TError = DefaultError, T
16
16
  mutation,
17
17
  defaultValues,
18
18
  children
19
- }: UpdatePasswordCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime254.JSX.Element;
19
+ }: UpdatePasswordCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime6.JSX.Element;
20
20
  declare const UpdatePasswordCommandTrigger: typeof CommandFormDialogTrigger;
21
21
  //#endregion
22
22
  export { UpdatePasswordCommand, UpdatePasswordCommandProps, UpdatePasswordCommandTrigger };
@@ -1 +1 @@
1
- {"version":3,"file":"update-password-command.d.mts","names":[],"sources":["../../../../src/modules/auth/components/update-password-command.tsx"],"sourcesContent":[],"mappings":";;;;;;;KA2BY,qDAED;sBAIW,yBAAyB;YACnC,gBAAgB,OAAO,QAAQ,YAAY;EAP3C,aAAA,CAAA,EAQM,OARN,CAQc,oBARY,CAAA;EAE3B,QAAA,CAAA,EAOE,KAAA,CAAM,SAPR;CAIW;AAAyB,iBAM/B,qBAN+B,CAAA,QAAA,OAAA,EAAA,SAQpC,YARoC,EAAA,aAAA,SAAA,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA,QAAA;EAAA,aAAA;EAAA;AAAA,CAAA,EAgB5C,0BAhB4C,CAgBjB,KAhBiB,EAgBV,MAhBU,EAgBF,UAhBE,EAgBU,eAhBV,CAAA,CAAA,EAgB0B,oBAAA,CAAA,GAAA,CAAA,OAhB1B;AACnB,cAyDf,4BAzDe,EAAA,OAyDa,wBAzDb"}
1
+ {"version":3,"file":"update-password-command.d.mts","names":[],"sources":["../../../../src/modules/auth/components/update-password-command.tsx"],"sourcesContent":[],"mappings":";;;;;;;KA2BY,qDAED;sBAIW,yBAAyB;YACnC,gBAAgB,OAAO,QAAQ,YAAY;EAP3C,aAAA,CAAA,EAQM,OARN,CAQc,oBARY,CAAA;EAE3B,QAAA,CAAA,EAOE,KAAA,CAAM,SAPR;CAIW;AAAyB,iBAM/B,qBAN+B,CAAA,QAAA,OAAA,EAAA,SAQpC,YARoC,EAAA,aAAA,SAAA,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA,QAAA;EAAA,aAAA;EAAA;AAAA,CAAA,EAgB5C,0BAhB4C,CAgBjB,KAhBiB,EAgBV,MAhBU,EAgBF,UAhBE,EAgBU,eAhBV,CAAA,CAAA,EAgB0B,kBAAA,CAAA,GAAA,CAAA,OAhB1B;AACnB,cAyDf,4BAzDe,EAAA,OAyDa,wBAzDb"}