@tulip-systems/core 0.5.8 → 0.5.9

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 (275) hide show
  1. package/dist/components/client.mjs +7 -7
  2. package/dist/components/common/icons.d.mts +52 -52
  3. package/dist/components/common/icons.d.mts.map +1 -1
  4. package/dist/components/common/status.d.mts +3 -3
  5. package/dist/components/common/status.d.mts.map +1 -1
  6. package/dist/components/editor/components/content.client.d.mts +2 -2
  7. package/dist/components/editor/components/content.client.d.mts.map +1 -1
  8. package/dist/components/editor/components/editor.client.d.mts +7 -7
  9. package/dist/components/editor/components/editor.client.d.mts.map +1 -1
  10. package/dist/components/editor/components/menu.client.d.mts +3 -3
  11. package/dist/components/editor/components/menu.client.d.mts.map +1 -1
  12. package/dist/components/editor/components/menu.client.mjs +1 -1
  13. package/dist/components/editor/lib/constants.d.mts +27 -27
  14. package/dist/components/header/back-button.client.d.mts +2 -2
  15. package/dist/components/header/back-button.client.d.mts.map +1 -1
  16. package/dist/components/header/bottom-bar.client.d.mts +3 -3
  17. package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
  18. package/dist/components/header/bottom-bar.client.mjs +1 -1
  19. package/dist/components/header/breadcrumbs.client.d.mts +7 -7
  20. package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
  21. package/dist/components/header/breadcrumbs.client.mjs +1 -1
  22. package/dist/components/header/header.client.d.mts +2 -2
  23. package/dist/components/header/header.client.d.mts.map +1 -1
  24. package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
  25. package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
  26. package/dist/components/header/top-bar.client.d.mts +4 -4
  27. package/dist/components/header/top-bar.client.d.mts.map +1 -1
  28. package/dist/components/header/top-bar.client.mjs +1 -1
  29. package/dist/components/layouts/admin-content.client.d.mts +2 -2
  30. package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
  31. package/dist/components/layouts/admin-error-pages.d.mts +23 -0
  32. package/dist/components/layouts/admin-error-pages.d.mts.map +1 -0
  33. package/dist/components/layouts/admin-error-pages.mjs +60 -0
  34. package/dist/components/layouts/admin-error-pages.mjs.map +1 -0
  35. package/dist/components/layouts/admin-layout.d.mts +2 -2
  36. package/dist/components/layouts/admin-layout.d.mts.map +1 -1
  37. package/dist/components/layouts/admin-loading.d.mts +2 -2
  38. package/dist/components/layouts/admin-loading.d.mts.map +1 -1
  39. package/dist/components/layouts/empty-page.d.mts +4 -4
  40. package/dist/components/layouts/empty-page.d.mts.map +1 -1
  41. package/dist/components/layouts/empty-page.mjs.map +1 -1
  42. package/dist/components/layouts/error-page.d.mts +35 -10
  43. package/dist/components/layouts/error-page.d.mts.map +1 -1
  44. package/dist/components/layouts/error-page.mjs +36 -40
  45. package/dist/components/layouts/error-page.mjs.map +1 -1
  46. package/dist/components/layouts/error-sections.d.mts +29 -0
  47. package/dist/components/layouts/error-sections.d.mts.map +1 -0
  48. package/dist/components/layouts/error-sections.mjs +47 -0
  49. package/dist/components/layouts/error-sections.mjs.map +1 -0
  50. package/dist/components/layouts/list-layout.d.mts +2 -2
  51. package/dist/components/layouts/list-layout.d.mts.map +1 -1
  52. package/dist/components/layouts/providers.client.d.mts +2 -2
  53. package/dist/components/layouts/providers.client.d.mts.map +1 -1
  54. package/dist/components/layouts/root-error-pages.d.mts +10 -0
  55. package/dist/components/layouts/root-error-pages.d.mts.map +1 -0
  56. package/dist/components/layouts/root-error-pages.mjs +17 -0
  57. package/dist/components/layouts/root-error-pages.mjs.map +1 -0
  58. package/dist/components/layouts/root-layout.server.d.mts +2 -2
  59. package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
  60. package/dist/components/layouts/root-loading.d.mts +2 -2
  61. package/dist/components/layouts/root-loading.d.mts.map +1 -1
  62. package/dist/components/layouts/tab-layout.d.mts +2 -2
  63. package/dist/components/layouts/tab-layout.d.mts.map +1 -1
  64. package/dist/components/layouts/tab-layout.mjs +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/lists/data-stack.d.mts.map +1 -1
  69. package/dist/components/navigation/admin-sidebar-header.client.mjs +2 -2
  70. package/dist/components/navigation/admin-sidebar-paths.client.d.mts +10 -10
  71. package/dist/components/navigation/admin-sidebar-paths.client.mjs +1 -1
  72. package/dist/components/navigation/admin-sidebar-skeleton.mjs +1 -1
  73. package/dist/components/ui/accordion.d.mts +5 -5
  74. package/dist/components/ui/accordion.d.mts.map +1 -1
  75. package/dist/components/ui/alert-dialog.d.mts +12 -12
  76. package/dist/components/ui/alert-dialog.d.mts.map +1 -1
  77. package/dist/components/ui/alert.d.mts +6 -6
  78. package/dist/components/ui/alert.d.mts.map +1 -1
  79. package/dist/components/ui/aspect-ratio.d.mts +2 -2
  80. package/dist/components/ui/aspect-ratio.d.mts.map +1 -1
  81. package/dist/components/ui/avatar.client.d.mts +4 -4
  82. package/dist/components/ui/badge.d.mts +4 -4
  83. package/dist/components/ui/badge.d.mts.map +1 -1
  84. package/dist/components/ui/breadcrumb.d.mts +8 -8
  85. package/dist/components/ui/breadcrumb.d.mts.map +1 -1
  86. package/dist/components/ui/button.d.mts +5 -5
  87. package/dist/components/ui/calendar.d.mts +3 -3
  88. package/dist/components/ui/card.d.mts +7 -7
  89. package/dist/components/ui/carousel.d.mts +6 -6
  90. package/dist/components/ui/chart.client.d.mts +5 -5
  91. package/dist/components/ui/checkbox.d.mts +2 -2
  92. package/dist/components/ui/collapsible.client.d.mts +4 -4
  93. package/dist/components/ui/color-picker.client.d.mts +2 -2
  94. package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
  95. package/dist/components/ui/combobox-dropdown.client.mjs +1 -1
  96. package/dist/components/ui/combobox.client.d.mts +2 -2
  97. package/dist/components/ui/combobox.client.mjs +1 -1
  98. package/dist/components/ui/command.d.mts +10 -10
  99. package/dist/components/ui/context-menu.d.mts +16 -16
  100. package/dist/components/ui/date-picker.client.d.mts +2 -2
  101. package/dist/components/ui/date-picker.client.mjs +1 -1
  102. package/dist/components/ui/dialog.client.d.mts +11 -11
  103. package/dist/components/ui/drawer.client.d.mts +11 -11
  104. package/dist/components/ui/dropdown-menu.d.mts +16 -16
  105. package/dist/components/ui/form.client.d.mts +7 -7
  106. package/dist/components/ui/hover-card.client.d.mts +4 -4
  107. package/dist/components/ui/input-recipient.d.mts +2 -2
  108. package/dist/components/ui/input.d.mts +2 -2
  109. package/dist/components/ui/label.d.mts +2 -2
  110. package/dist/components/ui/navigation-menu.d.mts +11 -11
  111. package/dist/components/ui/pagination.d.mts +8 -8
  112. package/dist/components/ui/popover.d.mts +5 -5
  113. package/dist/components/ui/progress.client.d.mts +2 -2
  114. package/dist/components/ui/radio-group.d.mts +3 -3
  115. package/dist/components/ui/resizable.client.d.mts +4 -4
  116. package/dist/components/ui/scroll-area.d.mts +3 -3
  117. package/dist/components/ui/select.client.d.mts +11 -11
  118. package/dist/components/ui/separator.d.mts +2 -2
  119. package/dist/components/ui/sheet.client.d.mts +9 -9
  120. package/dist/components/ui/sidebar.client.d.mts +26 -26
  121. package/dist/components/ui/sidebar.client.mjs +2 -2
  122. package/dist/components/ui/skeleton.d.mts +2 -2
  123. package/dist/components/ui/slider.d.mts +2 -2
  124. package/dist/components/ui/sonner.client.d.mts +2 -2
  125. package/dist/components/ui/switch.d.mts +2 -2
  126. package/dist/components/ui/tabs.d.mts +5 -5
  127. package/dist/components/ui/textarea.d.mts +2 -2
  128. package/dist/components/ui/time-input.client.d.mts +2 -2
  129. package/dist/components/ui/toggle-group.client.d.mts +3 -3
  130. package/dist/components/ui/toggle.d.mts +4 -4
  131. package/dist/components/ui/toggle.d.mts.map +1 -1
  132. package/dist/components/ui/tooltip.client.d.mts +5 -5
  133. package/dist/components/ui/tooltip.client.d.mts.map +1 -1
  134. package/dist/components.d.mts +5 -4
  135. package/dist/components.mjs +18 -17
  136. package/dist/lib/hooks/use-action.d.mts +2 -2
  137. package/dist/lib/hooks/use-indicator.d.mts +2 -2
  138. package/dist/lib.mjs +1 -1
  139. package/dist/modules/auth/components/allowed.client.d.mts +2 -2
  140. package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
  141. package/dist/modules/auth/components/auth-loading.d.mts +2 -2
  142. package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
  143. package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
  144. package/dist/modules/auth/components/create-first-user-page.client.mjs +1 -1
  145. package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
  146. package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
  147. package/dist/modules/auth/components/guard.server.d.mts +2 -2
  148. package/dist/modules/auth/components/login-page.client.d.mts +2 -2
  149. package/dist/modules/auth/components/login-page.client.mjs +1 -1
  150. package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
  151. package/dist/modules/auth/components/reset-password-page.client.mjs +1 -1
  152. package/dist/modules/auth/components/update-password-command.d.mts +2 -2
  153. package/dist/modules/auth/db/schema.d.mts +73 -73
  154. package/dist/modules/auth/db/schema.d.mts.map +1 -1
  155. package/dist/modules/auth/handler/client.client.d.mts +147 -147
  156. package/dist/modules/auth/handler/client.client.d.mts.map +1 -1
  157. package/dist/modules/auth/handler/init.d.mts +131 -131
  158. package/dist/modules/auth/handler/init.d.mts.map +1 -1
  159. package/dist/modules/auth/lib/helpers.server.d.mts +2 -2
  160. package/dist/modules/auth/lib/validators.d.mts +2 -2
  161. package/dist/modules/auth/lib/validators.d.mts.map +1 -1
  162. package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
  163. package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
  164. package/dist/modules/commands/components/click-command.client.d.mts +2 -2
  165. package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
  166. package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
  167. package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
  168. package/dist/modules/commands/components/command-trigger.client.mjs +1 -1
  169. package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
  170. package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
  171. package/dist/modules/commands/components/dialog-command.client.mjs +1 -1
  172. package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
  173. package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
  174. package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
  175. package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
  176. package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
  177. package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
  178. package/dist/modules/commands/components/form-dialog-command.client.mjs +1 -1
  179. package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +3 -3
  180. package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
  181. package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
  182. package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
  183. package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
  184. package/dist/modules/commands/menus/dropdown-menu.client.mjs +1 -1
  185. package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
  186. package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
  187. package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
  188. package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
  189. package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
  190. package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
  191. package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
  192. package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
  193. package/dist/modules/config/db/helpers.d.mts +5 -5
  194. package/dist/modules/config/db/helpers.d.mts.map +1 -1
  195. package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
  196. package/dist/modules/data-tables/components/cell/common.client.d.mts.map +1 -1
  197. package/dist/modules/data-tables/components/column-header.d.mts +2 -2
  198. package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
  199. package/dist/modules/data-tables/components/filters/combobox.client.d.mts.map +1 -1
  200. package/dist/modules/data-tables/components/filters/combobox.client.mjs +1 -1
  201. package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
  202. package/dist/modules/data-tables/components/filters/slider.client.d.mts.map +1 -1
  203. package/dist/modules/data-tables/components/filters/slider.client.mjs +1 -1
  204. package/dist/modules/data-tables/components/header.d.mts +4 -4
  205. package/dist/modules/data-tables/components/layout.d.mts +2 -2
  206. package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
  207. package/dist/modules/data-tables/components/search-input.client.d.mts.map +1 -1
  208. package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
  209. package/dist/modules/data-tables/components/table.d.mts +7 -7
  210. package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
  211. package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
  212. package/dist/modules/data-tables/hooks/use-context.client.d.mts.map +1 -1
  213. package/dist/modules/data-tables/lib/converters/search.mjs +2 -2
  214. package/dist/modules/data-tables/lib/converters/search.mjs.map +1 -1
  215. package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
  216. package/dist/modules/data-tables/tables/data-table/components/table.d.mts.map +1 -1
  217. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
  218. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts.map +1 -1
  219. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
  220. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts.map +1 -1
  221. package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts +2 -2
  222. package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts.map +1 -1
  223. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
  224. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts.map +1 -1
  225. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
  226. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts.map +1 -1
  227. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.mjs +1 -1
  228. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
  229. package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
  230. package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
  231. package/dist/modules/inline-edit/components/date-input.client.mjs +1 -1
  232. package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
  233. package/dist/modules/inline-edit/components/date-picker.client.mjs +1 -1
  234. package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
  235. package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
  236. package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
  237. package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
  238. package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
  239. package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
  240. package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
  241. package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
  242. package/dist/modules/inline-edit/lib/variants.d.mts +2 -2
  243. package/dist/modules/router/lib/query-client.server.d.mts +2 -2
  244. package/dist/modules/storage/components/dropzone.client.d.mts +5 -5
  245. package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
  246. package/dist/modules/storage/components/image-grid.client.mjs +3 -3
  247. package/dist/modules/storage/components/upload-zone.client.d.mts +2 -2
  248. package/dist/modules/storage/lib/router.server.d.mts +2311 -2311
  249. package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
  250. package/dist/modules/storage/lib/schema.d.mts +92 -92
  251. package/dist/modules/storage/lib/schema.mjs +1 -1
  252. package/dist/modules/storage/lib/service.server.d.mts +15 -15
  253. package/dist/modules/storage/lib/service.server.mjs +1 -1
  254. package/dist/modules/storage/lib/validators.d.mts +80 -80
  255. package/package.json +1 -1
  256. package/src/components/entry.ts +3 -2
  257. package/src/components/layouts/admin-error-pages.tsx +109 -0
  258. package/src/components/layouts/empty-page.tsx +0 -17
  259. package/src/components/layouts/error-page.tsx +58 -44
  260. package/src/components/layouts/error-sections.tsx +52 -0
  261. package/src/components/layouts/root-error-pages.tsx +12 -0
  262. package/src/modules/data-tables/lib/converters/search.ts +2 -2
  263. package/dist/components/layouts/not-allowed-page.d.mts +0 -22
  264. package/dist/components/layouts/not-allowed-page.d.mts.map +0 -1
  265. package/dist/components/layouts/not-allowed-page.mjs +0 -25
  266. package/dist/components/layouts/not-allowed-page.mjs.map +0 -1
  267. package/dist/components/layouts/not-found-page.d.mts +0 -8
  268. package/dist/components/layouts/not-found-page.d.mts.map +0 -1
  269. package/dist/components/layouts/not-found-page.mjs +0 -20
  270. package/dist/components/layouts/not-found-page.mjs.map +0 -1
  271. package/dist/components/layouts/not-found-section.mjs +0 -30
  272. package/dist/components/layouts/not-found-section.mjs.map +0 -1
  273. package/src/components/layouts/not-allowed-page.tsx +0 -44
  274. package/src/components/layouts/not-found-page.tsx +0 -17
  275. package/src/components/layouts/not-found-section.tsx +0 -26
@@ -0,0 +1,23 @@
1
+ import * as react_jsx_runtime49 from "react/jsx-runtime";
2
+
3
+ //#region src/components/layouts/admin-error-pages.d.ts
4
+ /**
5
+ * Admin Not Found Page
6
+ */
7
+ declare function AdminNotFoundPage(): react_jsx_runtime49.JSX.Element;
8
+ /**
9
+ * Admin Not Allowed Page
10
+ */
11
+ declare function AdminNotAllowedPage(): react_jsx_runtime49.JSX.Element;
12
+ /**
13
+ * ErrorPage
14
+ * - If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
15
+ * - If the error is a ServerError and the code is "NOT_FOUND", show the NotFoundSection
16
+ * - Else show the ErrorPage
17
+ */
18
+ declare function AdminErrorPage(props: {
19
+ error: Error;
20
+ }): react_jsx_runtime49.JSX.Element;
21
+ //#endregion
22
+ export { AdminErrorPage, AdminNotAllowedPage, AdminNotFoundPage };
23
+ //# sourceMappingURL=admin-error-pages.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-error-pages.d.mts","names":[],"sources":["../../../src/components/layouts/admin-error-pages.tsx"],"sourcesContent":[],"mappings":";;;;;;AAcgB,iBAAA,iBAAA,CAAA,CAAiB,EAAA,mBAAA,CAAA,GAAA,CAAA,OAAA;AAmBjC;AAsBA;;iBAtBgB,mBAAA,CAAA,GAAmB,mBAAA,CAAA,GAAA,CAAA;;;;;;;iBAsBnB,cAAA;SAA+B;IAAO,mBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,60 @@
1
+ import { ServerError } from "../../modules/router/lib/error.server.mjs";
2
+ import { Header } from "../header/header.client.mjs";
3
+ import { Topbar, TopbarTitle } from "../header/top-bar.client.mjs";
4
+ import { DefaultErrorSection, NotAllowedSection, NotFoundSection, ServerErrorSection } from "./error-sections.mjs";
5
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+
7
+ //#region src/components/layouts/admin-error-pages.tsx
8
+ /**
9
+ * Admin Not Found Page
10
+ */
11
+ function AdminNotFoundPage() {
12
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "404" }] }) }) }), /* @__PURE__ */ jsx("div", {
13
+ className: "p-content",
14
+ children: /* @__PURE__ */ jsx(NotFoundSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
15
+ })] });
16
+ }
17
+ /**
18
+ * Admin Not Allowed Page
19
+ */
20
+ function AdminNotAllowedPage() {
21
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "Unauthorized" }] }) }) }), /* @__PURE__ */ jsx("div", {
22
+ className: "p-content",
23
+ children: /* @__PURE__ */ jsx(NotAllowedSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
24
+ })] });
25
+ }
26
+ /**
27
+ * ErrorPage
28
+ * - If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
29
+ * - If the error is a ServerError and the code is "NOT_FOUND", show the NotFoundSection
30
+ * - Else show the ErrorPage
31
+ */
32
+ function AdminErrorPage(props) {
33
+ const serverErrorCode = props.error instanceof ServerError ? props.error.code : void 0;
34
+ /**
35
+ * If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
36
+ */
37
+ if (serverErrorCode === "UNAUTHORIZED") return /* @__PURE__ */ jsx(AdminNotAllowedPage, {});
38
+ /**
39
+ * If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
40
+ */
41
+ if (serverErrorCode === "NOT_FOUND") return /* @__PURE__ */ jsx(AdminNotFoundPage, {});
42
+ /**
43
+ * If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
44
+ */
45
+ if (serverErrorCode === "INTERNAL_SERVER_ERROR") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "Server Error" }] }) }) }), /* @__PURE__ */ jsx("div", {
46
+ className: "p-content",
47
+ children: /* @__PURE__ */ jsx(ServerErrorSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
48
+ })] });
49
+ /**
50
+ * Else show the ErrorPage
51
+ */
52
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "Error" }] }) }) }), /* @__PURE__ */ jsx("div", {
53
+ className: "p-content",
54
+ children: /* @__PURE__ */ jsx(DefaultErrorSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
55
+ })] });
56
+ }
57
+
58
+ //#endregion
59
+ export { AdminErrorPage, AdminNotAllowedPage, AdminNotFoundPage };
60
+ //# sourceMappingURL=admin-error-pages.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-error-pages.mjs","names":["serverErrorCode: CommonORPCErrorCode"],"sources":["../../../src/components/layouts/admin-error-pages.tsx"],"sourcesContent":["import { ServerError } from \"@/modules/router/lib/error.server\";\nimport { CommonORPCErrorCode } from \"@orpc/client\";\nimport { Header } from \"../header/header.client\";\nimport { Topbar, TopbarTitle } from \"../header/top-bar.client\";\nimport {\n DefaultErrorSection,\n NotAllowedSection,\n NotFoundSection,\n ServerErrorSection,\n} from \"./error-sections\";\n\n/**\n * Admin Not Found Page\n */\nexport function AdminNotFoundPage() {\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"404\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <NotFoundSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n}\n\n/**\n * Admin Not Allowed Page\n */\nexport function AdminNotAllowedPage() {\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"Unauthorized\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <NotAllowedSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n}\n\n/**\n * ErrorPage\n * - If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n * - If the error is a ServerError and the code is \"NOT_FOUND\", show the NotFoundSection\n * - Else show the ErrorPage\n */\nexport function AdminErrorPage(props: { error: Error }) {\n const serverErrorCode: CommonORPCErrorCode =\n props.error instanceof ServerError ? props.error.code : undefined;\n\n /**\n * If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n */\n if (serverErrorCode === \"UNAUTHORIZED\") {\n return <AdminNotAllowedPage />;\n }\n\n /**\n * If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n */\n if (serverErrorCode === \"NOT_FOUND\") {\n return <AdminNotFoundPage />;\n }\n\n /**\n * If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n */\n if (serverErrorCode === \"INTERNAL_SERVER_ERROR\") {\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"Server Error\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <ServerErrorSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n }\n\n /**\n * Else show the ErrorPage\n */\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"Error\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <DefaultErrorSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;AAcA,SAAgB,oBAAoB;AAClC,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,OAAO,CAAC,GAAI,GACzC,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,mBAAgB,WAAU,oFAAoF;GAC3G,IACL;;;;;AAOP,SAAgB,sBAAsB;AACpC,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,gBAAgB,CAAC,GAAI,GAClD,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,qBAAkB,WAAU,oFAAoF;GAC7G,IACL;;;;;;;;AAUP,SAAgB,eAAe,OAAyB;CACtD,MAAMA,kBACJ,MAAM,iBAAiB,cAAc,MAAM,MAAM,OAAO;;;;AAK1D,KAAI,oBAAoB,eACtB,QAAO,oBAAC,wBAAsB;;;;AAMhC,KAAI,oBAAoB,YACtB,QAAO,oBAAC,sBAAoB;;;;AAM9B,KAAI,oBAAoB,wBACtB,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,gBAAgB,CAAC,GAAI,GAClD,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,sBAAmB,WAAU,oFAAoF;GAC9G,IACL;;;;AAOP,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,SAAS,CAAC,GAAI,GAC3C,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,uBAAoB,WAAU,oFAAoF;GAC/G,IACL"}
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime235 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime29 from "react/jsx-runtime";
2
2
  import { PropsWithChildren } from "react";
3
3
 
4
4
  //#region src/components/layouts/admin-layout.d.ts
5
- declare function AdminLayout(props: PropsWithChildren): react_jsx_runtime235.JSX.Element;
5
+ declare function AdminLayout(props: PropsWithChildren): react_jsx_runtime29.JSX.Element;
6
6
  //#endregion
7
7
  export { AdminLayout };
8
8
  //# sourceMappingURL=admin-layout.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin-layout.d.mts","names":[],"sources":["../../../src/components/layouts/admin-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,QAAmB,oBAAiB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"admin-layout.d.mts","names":[],"sources":["../../../src/components/layouts/admin-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,QAAmB,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime240 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime52 from "react/jsx-runtime";
2
2
  import { PropsWithChildren } from "react";
3
3
 
4
4
  //#region src/components/layouts/admin-loading.d.ts
5
- declare function AdminLoadingLayout(props: PropsWithChildren): react_jsx_runtime240.JSX.Element;
5
+ declare function AdminLoadingLayout(props: PropsWithChildren): react_jsx_runtime52.JSX.Element;
6
6
  //#endregion
7
7
  export { AdminLoadingLayout };
8
8
  //# sourceMappingURL=admin-loading.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin-loading.d.mts","names":[],"sources":["../../../src/components/layouts/admin-loading.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,kBAAA,QAA0B,oBAAiB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"admin-loading.d.mts","names":[],"sources":["../../../src/components/layouts/admin-loading.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,kBAAA,QAA0B,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime241 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime53 from "react/jsx-runtime";
2
2
  import { ComponentProps, HTMLAttributes } from "react";
3
3
  import { Route } from "next";
4
4
 
@@ -15,17 +15,17 @@ declare function EmptyPage({
15
15
  className,
16
16
  children,
17
17
  ...props
18
- }: ComponentProps<"div">): react_jsx_runtime241.JSX.Element;
18
+ }: ComponentProps<"div">): react_jsx_runtime53.JSX.Element;
19
19
  declare function EmptyPageTitle({
20
20
  className,
21
21
  children,
22
22
  ...props
23
- }: ComponentProps<"h2">): react_jsx_runtime241.JSX.Element;
23
+ }: ComponentProps<"h2">): react_jsx_runtime53.JSX.Element;
24
24
  declare function EmptyPageDescription({
25
25
  className,
26
26
  children,
27
27
  ...props
28
- }: ComponentProps<"p">): react_jsx_runtime241.JSX.Element;
28
+ }: ComponentProps<"p">): react_jsx_runtime53.JSX.Element;
29
29
  //#endregion
30
30
  export { EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle };
31
31
  //# sourceMappingURL=empty-page.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty-page.d.mts","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":[],"mappings":";;;;;KAIY,cAAA,GAAiB,eAAe;;;EAAhC,YAAA,CAAA,EAAA;IAAgC,IAAA,EAIlC,KAJkC;IAAf,KAAA,EAAA,MAAA;EAInB,CAAA;CAAK;AAKC,iBAAA,SAAA,CAAS;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAAoC,cAApC,CAAA,KAAA,CAAA,CAAA,EAAyD,oBAAA,CAAA,GAAA,CAAA,OAAzD;AAAG,iBAcZ,cAAA,CAdY;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAcsC,cAdtC,CAAA,IAAA,CAAA,CAAA,EAc0D,oBAAA,CAAA,GAAA,CAAA,OAd1D;AAAW,iBAsBvB,oBAAA,CAtBuB;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAsBiC,cAtBjC,CAAA,GAAA,CAAA,CAAA,EAsBoD,oBAAA,CAAA,GAAA,CAAA,OAtBpD"}
1
+ {"version":3,"file":"empty-page.d.mts","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":[],"mappings":";;;;;KAIY,cAAA,GAAiB,eAAe;;;EAAhC,YAAA,CAAA,EAAA;IAAgC,IAAA,EAIlC,KAJkC;IAAf,KAAA,EAAA,MAAA;EAInB,CAAA;CAAK;AAKC,iBAAA,SAAA,CAAS;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAAoC,cAApC,CAAA,KAAA,CAAA,CAAA,EAAyD,mBAAA,CAAA,GAAA,CAAA,OAAzD;AAAG,iBAcZ,cAAA,CAdY;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAcsC,cAdtC,CAAA,IAAA,CAAA,CAAA,EAc0D,mBAAA,CAAA,GAAA,CAAA,OAd1D;AAAW,iBAsBvB,oBAAA,CAtBuB;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAsBiC,cAtBjC,CAAA,GAAA,CAAA,CAAA,EAsBoD,mBAAA,CAAA,GAAA,CAAA,OAtBpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"empty-page.mjs","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport type { Route } from \"next\";\nimport type { ComponentProps, HTMLAttributes } from \"react\";\n\nexport type EmptyPageProps = HTMLAttributes<HTMLDivElement> & {\n title: string;\n description?: string;\n callToAction?: {\n href: Route;\n title: string;\n };\n};\n\nexport function EmptyPage({ className, children, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"flex h-full min-h-[30rem] w-full flex-col items-center justify-center gap-y-2 border border-dashed text-center\",\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n}\n\nexport function EmptyPageTitle({ className, children, ...props }: ComponentProps<\"h2\">) {\n return (\n <h2 className={cn(\"text-lg font-bold tracking-tight\", className)} {...props}>\n {children}\n </h2>\n );\n}\n\nexport function EmptyPageDescription({ className, children, ...props }: ComponentProps<\"p\">) {\n return (\n <p className={cn(\"text-muted-foreground max-w-[40ch] text-sm\", className)} {...props}>\n {children}\n </p>\n );\n}\n\n{\n /* <div className=\"flex h-full flex-col place-items-center justify-center space-y-6 border border-dashed\">\n <span className=\"space-y-2 text-center\">\n <h2 className=\"text-2xl font-bold tracking-tight\">{title}</h2>\n {description && (\n <p className=\"text-muted-foreground max-w-[40ch] text-sm\">{description}</p>\n )}\n </span>\n\n {callToAction && (\n <Link href={callToAction.href} className={cn(buttonVariants({ variant: \"default\" }))}>\n {callToAction.title}\n </Link>\n )}\n </div> */\n}\n"],"mappings":";;;;AAaA,SAAgB,UAAU,EAAE,WAAW,UAAU,GAAG,SAAgC;AAClF,QACE,oBAAC;EACC,WAAW,GACT,kHACA,UACD;EACD,GAAI;EAEH;GACG;;AAIV,SAAgB,eAAe,EAAE,WAAW,UAAU,GAAG,SAA+B;AACtF,QACE,oBAAC;EAAG,WAAW,GAAG,oCAAoC,UAAU;EAAE,GAAI;EACnE;GACE;;AAIT,SAAgB,qBAAqB,EAAE,WAAW,UAAU,GAAG,SAA8B;AAC3F,QACE,oBAAC;EAAE,WAAW,GAAG,8CAA8C,UAAU;EAAE,GAAI;EAC5E;GACC"}
1
+ {"version":3,"file":"empty-page.mjs","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport type { Route } from \"next\";\nimport type { ComponentProps, HTMLAttributes } from \"react\";\n\nexport type EmptyPageProps = HTMLAttributes<HTMLDivElement> & {\n title: string;\n description?: string;\n callToAction?: {\n href: Route;\n title: string;\n };\n};\n\nexport function EmptyPage({ className, children, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"flex h-full min-h-[30rem] w-full flex-col items-center justify-center gap-y-2 border border-dashed text-center\",\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n}\n\nexport function EmptyPageTitle({ className, children, ...props }: ComponentProps<\"h2\">) {\n return (\n <h2 className={cn(\"text-lg font-bold tracking-tight\", className)} {...props}>\n {children}\n </h2>\n );\n}\n\nexport function EmptyPageDescription({ className, children, ...props }: ComponentProps<\"p\">) {\n return (\n <p className={cn(\"text-muted-foreground max-w-[40ch] text-sm\", className)} {...props}>\n {children}\n </p>\n );\n}\n"],"mappings":";;;;AAaA,SAAgB,UAAU,EAAE,WAAW,UAAU,GAAG,SAAgC;AAClF,QACE,oBAAC;EACC,WAAW,GACT,kHACA,UACD;EACD,GAAI;EAEH;GACG;;AAIV,SAAgB,eAAe,EAAE,WAAW,UAAU,GAAG,SAA+B;AACtF,QACE,oBAAC;EAAG,WAAW,GAAG,oCAAoC,UAAU;EAAE,GAAI;EACnE;GACE;;AAIT,SAAgB,qBAAqB,EAAE,WAAW,UAAU,GAAG,SAA8B;AAC3F,QACE,oBAAC;EAAE,WAAW,GAAG,8CAA8C,UAAU;EAAE,GAAI;EAC5E;GACC"}
@@ -1,4 +1,6 @@
1
- import * as react_jsx_runtime244 from "react/jsx-runtime";
1
+ import * as lucide_react0 from "lucide-react";
2
+ import * as react_jsx_runtime56 from "react/jsx-runtime";
3
+ import * as react104 from "react";
2
4
  import { ComponentProps } from "react";
3
5
 
4
6
  //#region src/components/layouts/error-page.d.ts
@@ -7,17 +9,40 @@ import { ComponentProps } from "react";
7
9
  */
8
10
  declare function ErrorPage({
9
11
  className,
12
+ children,
10
13
  ...props
11
- }: ComponentProps<"div">): react_jsx_runtime244.JSX.Element;
14
+ }: ComponentProps<"div">): react_jsx_runtime56.JSX.Element;
12
15
  /**
13
- * ErrorPage
14
- * - If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
15
- * - If the error is a ServerError and the code is "NOT_FOUND", show the NotFoundSection
16
- * - Else show the ErrorPage
16
+ * ErrorPageCode
17
+ */
18
+ declare function ErrorPageCode({
19
+ className,
20
+ children,
21
+ ...props
22
+ }: ComponentProps<"h2">): react_jsx_runtime56.JSX.Element;
23
+ /**
24
+ * ErrorPageIcon
17
25
  */
18
- declare function AdminErrorPage(props: {
19
- error: Error;
20
- }): react_jsx_runtime244.JSX.Element;
26
+ declare const errorPageIcons: {
27
+ serverError: react104.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react104.RefAttributes<SVGSVGElement>>;
28
+ notAllowed: react104.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react104.RefAttributes<SVGSVGElement>>;
29
+ default: react104.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react104.RefAttributes<SVGSVGElement>>;
30
+ };
31
+ declare function ErrorPageIcon({
32
+ variant,
33
+ className,
34
+ ...props
35
+ }: ComponentProps<"svg"> & {
36
+ variant?: keyof typeof errorPageIcons;
37
+ }): react_jsx_runtime56.JSX.Element;
38
+ /**
39
+ * ErrorPageDescription
40
+ */
41
+ declare function ErrorPageDescription({
42
+ className,
43
+ children,
44
+ ...props
45
+ }: ComponentProps<"p">): react_jsx_runtime56.JSX.Element;
21
46
  //#endregion
22
- export { AdminErrorPage, ErrorPage };
47
+ export { ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon };
23
48
  //# sourceMappingURL=error-page.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-page.d.mts","names":[],"sources":["../../../src/components/layouts/error-page.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAWgB,iBAAA,SAAA,CAAS;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAA0B,cAA1B,CAAA,KAAA,CAAA,CAAA,EAA+C,oBAAA,CAAA,GAAA,CAAA,OAA/C;;;;;AAmBzB;;iBAAgB,cAAA;SAA+B;IAAO,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"error-page.d.mts","names":[],"sources":["../../../src/components/layouts/error-page.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;iBAOgB,SAAA;;;;GAA6C,wBAAqB,mBAAA,CAAA,GAAA,CAAA;;AAAlF;;AAAuC,iBAiBvB,aAAA,CAjBuB;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAiB0B,cAjB1B,CAAA,IAAA,CAAA,CAAA,EAiB8C,mBAAA,CAAA,GAAA,CAAA,OAjB9C;;;;AAiBvC,cAWM,cAXuB,EAAA;EAAG,WAAA,oCAAA,KAAA,CAgB/B,aAAA,CAAA,WAAA,EAhB+B,KAAA,CAAA,yBAAA,cAAA,CAAA,CAAA;EAAW,UAAA,oCAAA,KAAA,4BAAA,KAAA,CAAA,yBAAA,cAAA,CAAA,CAAA;EAAsB,OAAA,oCAAA,KAAA,4BAAA,KAAA,CAAA,yBAAA,cAAA,CAAA,CAAA;CAAoB;AAAA,iBAkBrE,aAAA,CAlBqE;EAAA,OAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EAsBlF,cAtBkF,CAAA,KAAA,CAAA,GAAA;EAW/E,OAAA,CAAA,EAAA,MAAA,OAW8C,cANnD;CAAA,CAAA,EAMmE,mBAAA,CAAA,GAAA,CAAA,OANnE;;;;iBAee,oBAAA;;;;GAAwD,sBAAmB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,58 +1,54 @@
1
1
  import { cn } from "../../lib/utils/cn.mjs";
2
- import { ServerError } from "../../modules/router/lib/error.server.mjs";
3
- import { NotAllowedPage } from "./not-allowed-page.mjs";
4
- import { NotFoundSection } from "./not-found-section.mjs";
5
- import { BugIcon } from "lucide-react";
6
- import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { BugIcon, ServerCrashIcon, ShieldBanIcon } from "lucide-react";
3
+ import { jsx } from "react/jsx-runtime";
7
4
 
8
5
  //#region src/components/layouts/error-page.tsx
9
6
  /**
10
7
  * ErrorPage
11
8
  */
12
- function ErrorPage({ className, ...props }) {
9
+ function ErrorPage({ className, children, ...props }) {
13
10
  return /* @__PURE__ */ jsx("div", {
14
11
  ...props,
15
- className: cn("relative z-0 grid h-dvh w-full place-items-center", className),
16
- children: /* @__PURE__ */ jsx("div", {
17
- className: "flex flex-col items-center gap-12 text-center",
18
- children: /* @__PURE__ */ jsxs("span", {
19
- className: "text-destructive flex flex-col items-center gap-2",
20
- children: [/* @__PURE__ */ jsx(BugIcon, { className: "size-20 xl:size-32" }), /* @__PURE__ */ jsx("h1", {
21
- className: "text-2xl font-bold lg:text-3xl",
22
- children: "Oeps, er is iets fout gegaan."
23
- })]
24
- })
25
- })
12
+ className: cn("min-h-120 flex h-full w-full flex-col items-center justify-center gap-y-3 border border-dashed text-center", className),
13
+ children
26
14
  });
27
15
  }
28
16
  /**
29
- * ErrorPage
30
- * - If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
31
- * - If the error is a ServerError and the code is "NOT_FOUND", show the NotFoundSection
32
- * - Else show the ErrorPage
17
+ * ErrorPageCode
18
+ */
19
+ function ErrorPageCode({ className, children, ...props }) {
20
+ return /* @__PURE__ */ jsx("h2", {
21
+ className: cn("text-9xl font-bold leading-none", className),
22
+ ...props,
23
+ children
24
+ });
25
+ }
26
+ /**
27
+ * ErrorPageIcon
33
28
  */
34
- function AdminErrorPage(props) {
35
- const serverErrorCode = props.error instanceof ServerError ? props.error.code : void 0;
36
- /**
37
- * If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
38
- */
39
- if (serverErrorCode === "UNAUTHORIZED") return /* @__PURE__ */ jsx("div", {
40
- className: "p-content h-dvh",
41
- children: /* @__PURE__ */ jsx(NotAllowedPage, { className: "h-full" })
29
+ const errorPageIcons = {
30
+ serverError: ServerCrashIcon,
31
+ notAllowed: ShieldBanIcon,
32
+ default: BugIcon
33
+ };
34
+ function ErrorPageIcon({ variant = "default", className, ...props }) {
35
+ const Icon = errorPageIcons[variant];
36
+ return /* @__PURE__ */ jsx(Icon, {
37
+ className: cn("size-16 xl:size-24", className),
38
+ ...props
42
39
  });
43
- /**
44
- * If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
45
- */
46
- if (serverErrorCode === "NOT_FOUND") return /* @__PURE__ */ jsx("div", {
47
- className: "relative z-0 grid h-dvh w-full place-items-center",
48
- children: /* @__PURE__ */ jsx(NotFoundSection, { href: "/admin" })
40
+ }
41
+ /**
42
+ * ErrorPageDescription
43
+ */
44
+ function ErrorPageDescription({ className, children, ...props }) {
45
+ return /* @__PURE__ */ jsx("p", {
46
+ className: cn("text-2xl font-bold lg:text-3xl", className),
47
+ ...props,
48
+ children
49
49
  });
50
- /**
51
- * Else show the ErrorPage
52
- */
53
- return /* @__PURE__ */ jsx(ErrorPage, {});
54
50
  }
55
51
 
56
52
  //#endregion
57
- export { AdminErrorPage, ErrorPage };
53
+ export { ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon };
58
54
  //# sourceMappingURL=error-page.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-page.mjs","names":["serverErrorCode: CommonORPCErrorCode"],"sources":["../../../src/components/layouts/error-page.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport { ServerError } from \"@/modules/router/lib/error.server\";\nimport { CommonORPCErrorCode } from \"@orpc/client\";\nimport { BugIcon } from \"lucide-react\";\nimport { ComponentProps } from \"react\";\nimport { NotAllowedPage } from \"./not-allowed-page\";\nimport { NotFoundSection } from \"./not-found-section\";\n\n/**\n * ErrorPage\n */\nexport function ErrorPage({ className, ...props }: ComponentProps<\"div\">) {\n return (\n <div {...props} className={cn(\"relative z-0 grid h-dvh w-full place-items-center\", className)}>\n <div className=\"flex flex-col items-center gap-12 text-center\">\n <span className=\"text-destructive flex flex-col items-center gap-2\">\n <BugIcon className=\"size-20 xl:size-32\" />\n <h1 className=\"text-2xl font-bold lg:text-3xl\">Oeps, er is iets fout gegaan.</h1>\n </span>\n </div>\n </div>\n );\n}\n\n/**\n * ErrorPage\n * - If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n * - If the error is a ServerError and the code is \"NOT_FOUND\", show the NotFoundSection\n * - Else show the ErrorPage\n */\nexport function AdminErrorPage(props: { error: Error }) {\n const serverErrorCode: CommonORPCErrorCode =\n props.error instanceof ServerError ? props.error.code : undefined;\n\n /**\n * If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n */\n if (serverErrorCode === \"UNAUTHORIZED\") {\n return (\n <div className=\"p-content h-dvh\">\n <NotAllowedPage className=\"h-full\" />\n </div>\n );\n }\n\n /**\n * If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n */\n if (serverErrorCode === \"NOT_FOUND\") {\n return (\n <div className=\"relative z-0 grid h-dvh w-full place-items-center\">\n <NotFoundSection href=\"/admin\" />\n </div>\n );\n }\n\n /**\n * Else show the ErrorPage\n */\n return <ErrorPage />;\n}\n"],"mappings":";;;;;;;;;;;AAWA,SAAgB,UAAU,EAAE,WAAW,GAAG,SAAgC;AACxE,QACE,oBAAC;EAAI,GAAI;EAAO,WAAW,GAAG,qDAAqD,UAAU;YAC3F,oBAAC;GAAI,WAAU;aACb,qBAAC;IAAK,WAAU;eACd,oBAAC,WAAQ,WAAU,uBAAuB,EAC1C,oBAAC;KAAG,WAAU;eAAiC;MAAkC;KAC5E;IACH;GACF;;;;;;;;AAUV,SAAgB,eAAe,OAAyB;CACtD,MAAMA,kBACJ,MAAM,iBAAiB,cAAc,MAAM,MAAM,OAAO;;;;AAK1D,KAAI,oBAAoB,eACtB,QACE,oBAAC;EAAI,WAAU;YACb,oBAAC,kBAAe,WAAU,WAAW;GACjC;;;;AAOV,KAAI,oBAAoB,YACtB,QACE,oBAAC;EAAI,WAAU;YACb,oBAAC,mBAAgB,MAAK,WAAW;GAC7B;;;;AAOV,QAAO,oBAAC,cAAY"}
1
+ {"version":3,"file":"error-page.mjs","names":[],"sources":["../../../src/components/layouts/error-page.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport { BugIcon, ServerCrashIcon, ShieldBanIcon } from \"lucide-react\";\nimport { ComponentProps } from \"react\";\n\n/**\n * ErrorPage\n */\nexport function ErrorPage({ className, children, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n {...props}\n className={cn(\n \"min-h-120 flex h-full w-full flex-col items-center justify-center gap-y-3 border border-dashed text-center\",\n className,\n )}\n >\n {children}\n </div>\n );\n}\n\n/**\n * ErrorPageCode\n */\nexport function ErrorPageCode({ className, children, ...props }: ComponentProps<\"h2\">) {\n return (\n <h2 className={cn(\"text-9xl font-bold leading-none\", className)} {...props}>\n {children}\n </h2>\n );\n}\n\n/**\n * ErrorPageIcon\n */\nconst errorPageIcons = {\n serverError: ServerCrashIcon,\n notAllowed: ShieldBanIcon,\n default: BugIcon,\n // 404: BombIcon,\n};\n\nexport function ErrorPageIcon({\n variant = \"default\",\n className,\n ...props\n}: ComponentProps<\"svg\"> & { variant?: keyof typeof errorPageIcons }) {\n const Icon = errorPageIcons[variant];\n\n return <Icon className={cn(\"size-16 xl:size-24\", className)} {...props} />;\n}\n\n/**\n * ErrorPageDescription\n */\nexport function ErrorPageDescription({ className, children, ...props }: ComponentProps<\"p\">) {\n return (\n <p className={cn(\"text-2xl font-bold lg:text-3xl\", className)} {...props}>\n {children}\n </p>\n );\n}\n\n// export function ErrorPage({ className, ...props }: ComponentProps<\"div\">) {\n// return (\n// <div {...props} className={cn(\"relative z-0 grid w-full place-items-center\", className)}>\n// <div className=\"flex flex-col items-center gap-12 text-center\">\n// <span className=\"text-destructive flex flex-col items-center gap-2\">\n// <BugIcon className=\"size-20 xl:size-32\" />\n// <h1 className=\"text-2xl font-bold lg:text-3xl\">Oeps, er is iets fout gegaan.</h1>\n// </span>\n// </div>\n// </div>\n// );\n// }\n"],"mappings":";;;;;;;;AAOA,SAAgB,UAAU,EAAE,WAAW,UAAU,GAAG,SAAgC;AAClF,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,GACT,8GACA,UACD;EAEA;GACG;;;;;AAOV,SAAgB,cAAc,EAAE,WAAW,UAAU,GAAG,SAA+B;AACrF,QACE,oBAAC;EAAG,WAAW,GAAG,mCAAmC,UAAU;EAAE,GAAI;EAClE;GACE;;;;;AAOT,MAAM,iBAAiB;CACrB,aAAa;CACb,YAAY;CACZ,SAAS;CAEV;AAED,SAAgB,cAAc,EAC5B,UAAU,WACV,WACA,GAAG,SACiE;CACpE,MAAM,OAAO,eAAe;AAE5B,QAAO,oBAAC;EAAK,WAAW,GAAG,sBAAsB,UAAU;EAAE,GAAI;GAAS;;;;;AAM5E,SAAgB,qBAAqB,EAAE,WAAW,UAAU,GAAG,SAA8B;AAC3F,QACE,oBAAC;EAAE,WAAW,GAAG,kCAAkC,UAAU;EAAE,GAAI;EAChE;GACC"}
@@ -0,0 +1,29 @@
1
+ import * as react_jsx_runtime60 from "react/jsx-runtime";
2
+ import { ComponentProps } from "react";
3
+
4
+ //#region src/components/layouts/error-sections.d.ts
5
+ /**
6
+ * DefaultErrorSection
7
+ */
8
+ declare function DefaultErrorSection({
9
+ className,
10
+ ...props
11
+ }: ComponentProps<"div">): react_jsx_runtime60.JSX.Element;
12
+ /**
13
+ * ServerErrorSection
14
+ */
15
+ declare function ServerErrorSection({
16
+ className,
17
+ ...props
18
+ }: ComponentProps<"div">): react_jsx_runtime60.JSX.Element;
19
+ /**
20
+ * NotFoundSection
21
+ */
22
+ declare function NotFoundSection(props: ComponentProps<"div">): react_jsx_runtime60.JSX.Element;
23
+ /**
24
+ * Not Allowed Section
25
+ */
26
+ declare function NotAllowedSection(props: ComponentProps<"div">): react_jsx_runtime60.JSX.Element;
27
+ //#endregion
28
+ export { DefaultErrorSection, NotAllowedSection, NotFoundSection, ServerErrorSection };
29
+ //# sourceMappingURL=error-sections.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-sections.d.mts","names":[],"sources":["../../../src/components/layouts/error-sections.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAOgB,iBAAA,mBAAA,CAAmB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAA0B,cAA1B,CAAA,KAAA,CAAA,CAAA,EAA+C,mBAAA,CAAA,GAAA,CAAA,OAA/C;;;;AAA+C,iBAalE,kBAAA,CAbkE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAatB,cAbsB,CAAA,KAAA,CAAA,CAAA,EAaD,mBAAA,CAAA,GAAA,CAAA,OAbC;AAalF;;;AAAiF,iBAYjE,eAAA,CAZiE,KAAA,EAY1C,cAZ0C,CAAA,KAAA,CAAA,CAAA,EAYrB,mBAAA,CAAA,GAAA,CAAA,OAZqB;;AAYjF;AAYA;iBAAgB,iBAAA,QAAyB,wBAAqB,mBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,47 @@
1
+ import { cn } from "../../lib/utils/cn.mjs";
2
+ import { ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon } from "./error-page.mjs";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+
5
+ //#region src/components/layouts/error-sections.tsx
6
+ /**
7
+ * DefaultErrorSection
8
+ */
9
+ function DefaultErrorSection({ className, ...props }) {
10
+ return /* @__PURE__ */ jsxs(ErrorPage, {
11
+ ...props,
12
+ className: cn("text-destructive", className),
13
+ children: [/* @__PURE__ */ jsx(ErrorPageIcon, { variant: "default" }), /* @__PURE__ */ jsx(ErrorPageDescription, { children: "Oeps, er is iets fout gegaan" })]
14
+ });
15
+ }
16
+ /**
17
+ * ServerErrorSection
18
+ */
19
+ function ServerErrorSection({ className, ...props }) {
20
+ return /* @__PURE__ */ jsxs(ErrorPage, {
21
+ ...props,
22
+ className: cn("text-destructive", className),
23
+ children: [/* @__PURE__ */ jsx(ErrorPageIcon, { variant: "serverError" }), /* @__PURE__ */ jsx(ErrorPageDescription, { children: "Oeps, er is iets fout gegaan met de server" })]
24
+ });
25
+ }
26
+ /**
27
+ * NotFoundSection
28
+ */
29
+ function NotFoundSection(props) {
30
+ return /* @__PURE__ */ jsxs(ErrorPage, {
31
+ ...props,
32
+ children: [/* @__PURE__ */ jsx(ErrorPageCode, { children: "404" }), /* @__PURE__ */ jsx(ErrorPageDescription, { children: "Oeps, deze pagina is niet gevonden." })]
33
+ });
34
+ }
35
+ /**
36
+ * Not Allowed Section
37
+ */
38
+ function NotAllowedSection(props) {
39
+ return /* @__PURE__ */ jsxs(ErrorPage, {
40
+ ...props,
41
+ children: [/* @__PURE__ */ jsx(ErrorPageIcon, { variant: "notAllowed" }), /* @__PURE__ */ jsx(ErrorPageDescription, { children: "Je hebt geen toegang tot deze pagina." })]
42
+ });
43
+ }
44
+
45
+ //#endregion
46
+ export { DefaultErrorSection, NotAllowedSection, NotFoundSection, ServerErrorSection };
47
+ //# sourceMappingURL=error-sections.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-sections.mjs","names":[],"sources":["../../../src/components/layouts/error-sections.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport { ComponentProps } from \"react\";\nimport { ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon } from \"./error-page\";\n\n/**\n * DefaultErrorSection\n */\nexport function DefaultErrorSection({ className, ...props }: ComponentProps<\"div\">) {\n return (\n <ErrorPage {...props} className={cn(\"text-destructive\", className)}>\n {/* <BugIcon className=\"size-16 xl:size-24\" /> */}\n <ErrorPageIcon variant=\"default\" />\n <ErrorPageDescription>Oeps, er is iets fout gegaan</ErrorPageDescription>\n </ErrorPage>\n );\n}\n\n/**\n * ServerErrorSection\n */\nexport function ServerErrorSection({ className, ...props }: ComponentProps<\"div\">) {\n return (\n <ErrorPage {...props} className={cn(\"text-destructive\", className)}>\n <ErrorPageIcon variant=\"serverError\" />\n <ErrorPageDescription>Oeps, er is iets fout gegaan met de server</ErrorPageDescription>\n </ErrorPage>\n );\n}\n\n/**\n * NotFoundSection\n */\nexport function NotFoundSection(props: ComponentProps<\"div\">) {\n return (\n <ErrorPage {...props}>\n <ErrorPageCode>404</ErrorPageCode>\n <ErrorPageDescription>Oeps, deze pagina is niet gevonden.</ErrorPageDescription>\n </ErrorPage>\n );\n}\n\n/**\n * Not Allowed Section\n */\nexport function NotAllowedSection(props: ComponentProps<\"div\">) {\n return (\n <ErrorPage {...props}>\n <ErrorPageIcon variant=\"notAllowed\" />\n <ErrorPageDescription>Je hebt geen toegang tot deze pagina.</ErrorPageDescription>\n </ErrorPage>\n );\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,oBAAoB,EAAE,WAAW,GAAG,SAAgC;AAClF,QACE,qBAAC;EAAU,GAAI;EAAO,WAAW,GAAG,oBAAoB,UAAU;aAEhE,oBAAC,iBAAc,SAAQ,YAAY,EACnC,oBAAC,kCAAqB,iCAAmD;GAC/D;;;;;AAOhB,SAAgB,mBAAmB,EAAE,WAAW,GAAG,SAAgC;AACjF,QACE,qBAAC;EAAU,GAAI;EAAO,WAAW,GAAG,oBAAoB,UAAU;aAChE,oBAAC,iBAAc,SAAQ,gBAAgB,EACvC,oBAAC,kCAAqB,+CAAiE;GAC7E;;;;;AAOhB,SAAgB,gBAAgB,OAA8B;AAC5D,QACE,qBAAC;EAAU,GAAI;aACb,oBAAC,2BAAc,QAAmB,EAClC,oBAAC,kCAAqB,wCAA0D;GACtE;;;;;AAOhB,SAAgB,kBAAkB,OAA8B;AAC9D,QACE,qBAAC;EAAU,GAAI;aACb,oBAAC,iBAAc,SAAQ,eAAe,EACtC,oBAAC,kCAAqB,0CAA4D;GACxE"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime246 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime64 from "react/jsx-runtime";
2
2
  import { ComponentProps } from "react";
3
3
 
4
4
  //#region src/components/layouts/list-layout.d.ts
@@ -6,7 +6,7 @@ declare function ListLayout({
6
6
  className,
7
7
  children,
8
8
  ...props
9
- }: ComponentProps<"div">): react_jsx_runtime246.JSX.Element;
9
+ }: ComponentProps<"div">): react_jsx_runtime64.JSX.Element;
10
10
  //#endregion
11
11
  export { ListLayout };
12
12
  //# sourceMappingURL=list-layout.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-layout.d.mts","names":[],"sources":["../../../src/components/layouts/list-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,UAAA;;;;GAA8C,wBAAqB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"list-layout.d.mts","names":[],"sources":["../../../src/components/layouts/list-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,UAAA;;;;GAA8C,wBAAqB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime99 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime283 from "react/jsx-runtime";
2
2
  import { PropsWithChildren } from "react";
3
3
 
4
4
  //#region src/components/layouts/providers.client.d.ts
5
5
  declare function Providers({
6
6
  children
7
- }: PropsWithChildren): react_jsx_runtime99.JSX.Element;
7
+ }: PropsWithChildren): react_jsx_runtime283.JSX.Element;
8
8
  //#endregion
9
9
  export { Providers };
10
10
  //# sourceMappingURL=providers.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"providers.client.d.mts","names":[],"sources":["../../../src/components/layouts/providers.client.tsx"],"sourcesContent":[],"mappings":";;;;iBAWgB,SAAA;;GAAwB,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"providers.client.d.mts","names":[],"sources":["../../../src/components/layouts/providers.client.tsx"],"sourcesContent":[],"mappings":";;;;iBAWgB,SAAA;;GAAwB,oBAAiB,oBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime65 from "react/jsx-runtime";
2
+
3
+ //#region src/components/layouts/root-error-pages.d.ts
4
+ /**
5
+ * Admin Not Found Page
6
+ */
7
+ declare function RootNotFoundPage(): react_jsx_runtime65.JSX.Element;
8
+ //#endregion
9
+ export { RootNotFoundPage };
10
+ //# sourceMappingURL=root-error-pages.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-error-pages.d.mts","names":[],"sources":["../../../src/components/layouts/root-error-pages.tsx"],"sourcesContent":[],"mappings":";;;;;;AAKgB,iBAAA,gBAAA,CAAA,CAAgB,EAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,17 @@
1
+ import { NotFoundSection } from "./error-sections.mjs";
2
+ import { jsx } from "react/jsx-runtime";
3
+
4
+ //#region src/components/layouts/root-error-pages.tsx
5
+ /**
6
+ * Admin Not Found Page
7
+ */
8
+ function RootNotFoundPage() {
9
+ return /* @__PURE__ */ jsx("div", {
10
+ className: "relative z-0 grid h-dvh w-full place-items-center",
11
+ children: /* @__PURE__ */ jsx(NotFoundSection, { className: "h-full" })
12
+ });
13
+ }
14
+
15
+ //#endregion
16
+ export { RootNotFoundPage };
17
+ //# sourceMappingURL=root-error-pages.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-error-pages.mjs","names":[],"sources":["../../../src/components/layouts/root-error-pages.tsx"],"sourcesContent":["import { NotFoundSection } from \"./error-sections\";\n\n/**\n * Admin Not Found Page\n */\nexport function RootNotFoundPage() {\n return (\n <div className=\"relative z-0 grid h-dvh w-full place-items-center\">\n <NotFoundSection className=\"h-full\" />\n </div>\n );\n}\n"],"mappings":";;;;;;;AAKA,SAAgB,mBAAmB;AACjC,QACE,oBAAC;EAAI,WAAU;YACb,oBAAC,mBAAgB,WAAU,WAAW;GAClC"}
@@ -1,5 +1,5 @@
1
1
  import { TulipConfig } from "../../modules/config/lib/config.mjs";
2
- import * as react_jsx_runtime228 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime28 from "react/jsx-runtime";
3
3
  import { PropsWithChildren } from "react";
4
4
  import "server-cli-only";
5
5
 
@@ -31,7 +31,7 @@ declare const generateRootLayoutMetadata: (config: TulipConfig) => {
31
31
  */
32
32
  declare function RootLayout({
33
33
  children
34
- }: PropsWithChildren): react_jsx_runtime228.JSX.Element;
34
+ }: PropsWithChildren): react_jsx_runtime28.JSX.Element;
35
35
  //#endregion
36
36
  export { RootLayout, generateRootLayoutMetadata };
37
37
  //# sourceMappingURL=root-layout.server.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"root-layout.server.d.mts","names":[],"sources":["../../../src/components/layouts/root-layout.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAWa,cAAA,0BAAsC,EAAA,CAAA,MAAA,EAAA,WAAW,EAAA,GAAA;EA6B9C,QAAA,EAAA;IAAa,KAAA,EAAA,GAAA;IAAY,WAAA,EAAA,MAAA;IAAiB,WAAA,EAAA;MAAA,OAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;iBAA1C,UAAA;;GAAyB,oBAAiB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"root-layout.server.d.mts","names":[],"sources":["../../../src/components/layouts/root-layout.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAWa,cAAA,0BAAsC,EAAA,CAAA,MAAA,EAAA,WAAW,EAAA,GAAA;EA6B9C,QAAA,EAAA;IAAa,KAAA,EAAA,GAAA;IAAY,WAAA,EAAA,MAAA;IAAiB,WAAA,EAAA;MAAA,OAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;iBAA1C,UAAA;;GAAyB,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime250 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime66 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/layouts/root-loading.d.ts
4
- declare function RootLoading(): react_jsx_runtime250.JSX.Element;
4
+ declare function RootLoading(): react_jsx_runtime66.JSX.Element;
5
5
  //#endregion
6
6
  export { RootLoading };
7
7
  //# sourceMappingURL=root-loading.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"root-loading.d.mts","names":[],"sources":["../../../src/components/layouts/root-loading.tsx"],"sourcesContent":[],"mappings":";;;iBAEgB,WAAA,CAAA,GAAW,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"root-loading.d.mts","names":[],"sources":["../../../src/components/layouts/root-loading.tsx"],"sourcesContent":[],"mappings":";;;iBAEgB,WAAA,CAAA,GAAW,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Permission } from "../../modules/auth/lib/permissions.mjs";
2
- import * as react_jsx_runtime251 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime67 from "react/jsx-runtime";
3
3
  import { Route } from "next";
4
4
 
5
5
  //#region src/components/layouts/tab-layout.d.ts
@@ -17,7 +17,7 @@ type TabLayoutProps = {
17
17
  declare function TabLayout({
18
18
  tabs,
19
19
  children
20
- }: TabLayoutProps): react_jsx_runtime251.JSX.Element;
20
+ }: TabLayoutProps): react_jsx_runtime67.JSX.Element;
21
21
  //#endregion
22
22
  export { Tab, TabLayout, TabLayoutProps };
23
23
  //# sourceMappingURL=tab-layout.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-layout.d.mts","names":[],"sources":["../../../src/components/layouts/tab-layout.tsx"],"sourcesContent":[],"mappings":";;;;;KAUY,GAAA;;QAEJ;EAFI,OAAG,EAAA,MAAA;EAEP,IAAA,CAAA,EAEC,KAAA,CAAM,SAFP;EAEC,UAAM,CAAA,EACA,UADA;CACA;AAAU,KAGb,cAAA,GAHa;EAGb,IAAA,EACJ,GADI,EAAA;EAKI,QAAA,EAHJ,KAAA,CAAM,SAGO;CAAG;AAAM,iBAAlB,SAAA,CAAkB;EAAA,IAAA;EAAA;AAAA,CAAA,EAAY,cAAZ,CAAA,EAA0B,oBAAA,CAAA,GAAA,CAAA,OAA1B"}
1
+ {"version":3,"file":"tab-layout.d.mts","names":[],"sources":["../../../src/components/layouts/tab-layout.tsx"],"sourcesContent":[],"mappings":";;;;;KAUY,GAAA;;QAEJ;EAFI,OAAG,EAAA,MAAA;EAEP,IAAA,CAAA,EAEC,KAAA,CAAM,SAFP;EAEC,UAAM,CAAA,EACA,UADA;CACA;AAAU,KAGb,cAAA,GAHa;EAGb,IAAA,EACJ,GADI,EAAA;EAKI,QAAA,EAHJ,KAAA,CAAM,SAGO;CAAG;AAAM,iBAAlB,SAAA,CAAkB;EAAA,IAAA;EAAA;AAAA,CAAA,EAAY,cAAZ,CAAA,EAA0B,mBAAA,CAAA,GAAA,CAAA,OAA1B"}
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
 
3
+ import { Allowed } from "../../modules/auth/components/allowed.client.mjs";
3
4
  import { ListLayout } from "./list-layout.mjs";
4
5
  import { Tabs, TabsContent, TabsList, TabsTrigger } from "../ui/tabs.mjs";
5
- import { Allowed } from "../../modules/auth/components/allowed.client.mjs";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { useState } from "react";
8
8
  import { useRouter, useSelectedLayoutSegment } from "next/navigation";