@tulip-systems/core 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) 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 +2 -2
  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 +5 -5
  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/drawer.client.d.mts.map +1 -1
  103. package/dist/components/ui/dropdown-menu.d.mts +16 -16
  104. package/dist/components/ui/form.client.d.mts +7 -7
  105. package/dist/components/ui/form.client.d.mts.map +1 -1
  106. package/dist/components/ui/hover-card.client.d.mts +4 -4
  107. package/dist/components/ui/hover-card.client.d.mts.map +1 -1
  108. package/dist/components/ui/input-recipient.d.mts +2 -2
  109. package/dist/components/ui/input.d.mts +2 -2
  110. package/dist/components/ui/label.d.mts +2 -2
  111. package/dist/components/ui/navigation-menu.d.mts +11 -11
  112. package/dist/components/ui/pagination.d.mts +8 -8
  113. package/dist/components/ui/popover.d.mts +5 -5
  114. package/dist/components/ui/popover.d.mts.map +1 -1
  115. package/dist/components/ui/progress.client.d.mts +2 -2
  116. package/dist/components/ui/progress.client.d.mts.map +1 -1
  117. package/dist/components/ui/radio-group.d.mts +3 -3
  118. package/dist/components/ui/resizable.client.d.mts +4 -4
  119. package/dist/components/ui/resizable.client.d.mts.map +1 -1
  120. package/dist/components/ui/scroll-area.d.mts +3 -3
  121. package/dist/components/ui/select.client.d.mts +11 -11
  122. package/dist/components/ui/select.client.d.mts.map +1 -1
  123. package/dist/components/ui/separator.d.mts +2 -2
  124. package/dist/components/ui/sheet.client.d.mts +9 -9
  125. package/dist/components/ui/sheet.client.d.mts.map +1 -1
  126. package/dist/components/ui/sidebar.client.d.mts +26 -26
  127. package/dist/components/ui/sidebar.client.d.mts.map +1 -1
  128. package/dist/components/ui/skeleton.d.mts +2 -2
  129. package/dist/components/ui/slider.d.mts +2 -2
  130. package/dist/components/ui/sonner.client.d.mts +2 -2
  131. package/dist/components/ui/switch.d.mts +2 -2
  132. package/dist/components/ui/tabs.d.mts +5 -5
  133. package/dist/components/ui/textarea.d.mts +2 -2
  134. package/dist/components/ui/time-input.client.d.mts +2 -2
  135. package/dist/components/ui/toggle-group.client.d.mts +3 -3
  136. package/dist/components/ui/toggle.d.mts +2 -2
  137. package/dist/components/ui/toggle.d.mts.map +1 -1
  138. package/dist/components/ui/tooltip.client.d.mts +5 -5
  139. package/dist/components/ui/tooltip.client.d.mts.map +1 -1
  140. package/dist/components/ui/tooltip.client.mjs +1 -1
  141. package/dist/components/ui/tooltip.client.mjs.map +1 -1
  142. package/dist/components.d.mts +3 -1
  143. package/dist/components.mjs +5 -3
  144. package/dist/lib/hooks/use-indicator.d.mts +2 -2
  145. package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
  146. package/dist/modules/auth/components/allowed.client.d.mts +21 -7
  147. package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
  148. package/dist/modules/auth/components/allowed.client.mjs +8 -2
  149. package/dist/modules/auth/components/allowed.client.mjs.map +1 -1
  150. package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
  151. package/dist/modules/auth/components/auth-loading.d.mts +2 -2
  152. package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
  153. package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
  154. package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
  155. package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
  156. package/dist/modules/auth/components/guard.server.d.mts +2 -2
  157. package/dist/modules/auth/components/login-page.client.d.mts +2 -2
  158. package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
  159. package/dist/modules/auth/components/update-password-command.d.mts +2 -2
  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.mjs +1 -1
  172. package/dist/modules/auth/lib/validators.d.mts +2 -2
  173. package/dist/modules/auth/lib/validators.d.mts.map +1 -1
  174. package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
  175. package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
  176. package/dist/modules/commands/components/click-command.client.d.mts +2 -2
  177. package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
  178. package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
  179. package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
  180. package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
  181. package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
  182. package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
  183. package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
  184. package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
  185. package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
  186. package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
  187. package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
  188. package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +1 -1
  189. package/dist/modules/commands/hooks/use-command-menu.client.mjs +0 -5
  190. package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
  191. package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +2 -2
  192. package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
  193. package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
  194. package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
  195. package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
  196. package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
  197. package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
  198. package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
  199. package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
  200. package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
  201. package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
  202. package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
  203. package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
  204. package/dist/modules/config/db/helpers.d.mts +5 -5
  205. package/dist/modules/config/db/helpers.d.mts.map +1 -1
  206. package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
  207. package/dist/modules/data-tables/components/column-header.d.mts +2 -2
  208. package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
  209. package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
  210. package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
  211. package/dist/modules/data-tables/components/header.d.mts +4 -4
  212. package/dist/modules/data-tables/components/header.d.mts.map +1 -1
  213. package/dist/modules/data-tables/components/layout.d.mts +2 -2
  214. package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
  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/skeleton.d.mts.map +1 -1
  218. package/dist/modules/data-tables/components/table.d.mts +7 -7
  219. package/dist/modules/data-tables/components/table.d.mts.map +1 -1
  220. package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
  221. package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
  222. package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
  223. package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
  224. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
  225. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
  226. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.mts +2 -2
  227. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.mts +2 -2
  228. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.mts +3 -3
  229. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.mts +2 -2
  230. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.mts +2 -2
  231. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
  232. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
  233. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
  234. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
  235. package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
  236. package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
  237. package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
  238. package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
  239. package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
  240. package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
  241. package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
  242. package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
  243. package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
  244. package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
  245. package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
  246. package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
  247. package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
  248. package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
  249. package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
  250. package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
  251. package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
  252. package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
  253. package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
  254. package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
  255. package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
  256. package/dist/modules/inline-edit/hooks/context.client.d.mts.map +1 -1
  257. package/dist/modules/inline-edit/lib/variants.d.mts +1 -1
  258. package/dist/modules/router/handler/init.server.d.mts +6 -6
  259. package/dist/modules/router/handler/init.server.d.mts.map +1 -1
  260. package/dist/modules/router/handler/init.server.mjs +1 -1
  261. package/dist/modules/router/lib/query-client.server.d.mts +2 -2
  262. package/dist/modules/router/lib/query-client.server.d.mts.map +1 -1
  263. package/dist/modules/storage/components/dropzone.client.d.mts +4 -4
  264. package/dist/modules/storage/components/dropzone.client.mjs +1 -1
  265. package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
  266. package/dist/modules/storage/components/image-grid.client.mjs +1 -1
  267. package/dist/modules/storage/components/upload-zone.client.d.mts +2 -2
  268. package/dist/modules/storage/lib/router.server.d.mts +2337 -2337
  269. package/dist/modules/storage/lib/router.server.mjs +1 -1
  270. package/dist/modules/storage/lib/schema.mjs +1 -1
  271. package/dist/modules/storage/lib/service.server.d.mts +15 -15
  272. package/dist/modules/storage/lib/service.server.mjs +2 -2
  273. package/dist/modules/storage/lib/validators.d.mts +14 -14
  274. package/dist/modules/storage/lib/validators.d.mts.map +1 -1
  275. package/dist/router/server.mjs +1 -1
  276. package/package.json +1 -1
  277. package/src/components/editor/extensions/file-handler/utils.ts +1 -1
  278. package/src/components/editor/extensions/image/extension.ts +0 -2
  279. package/src/components/editor/lib/helpers.ts +39 -3
  280. package/src/components/entry.ts +2 -0
  281. package/src/components/layouts/error-page.tsx +61 -0
  282. package/src/components/layouts/not-allowed-page.tsx +1 -1
  283. package/src/components/navigation/admin-sidebar-paths.client.tsx +18 -2
  284. package/src/components/ui/tooltip.client.tsx +1 -1
  285. package/src/modules/auth/components/allowed.client.tsx +35 -7
  286. package/src/modules/auth/hooks/use-permission.ts +88 -2
  287. package/src/modules/commands/hooks/use-command-menu.client.tsx +4 -7
  288. package/dist/modules/auth/lib/utils.mjs +0 -21
  289. package/dist/modules/auth/lib/utils.mjs.map +0 -1
  290. package/src/modules/inline-edit/hooks/use-inline.client copy.tsx +0 -97
@@ -1,5 +1,5 @@
1
1
  import { HeaderBreadcrumb } from "./breadcrumbs.client.mjs";
2
- import * as react_jsx_runtime274 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
3
3
  import React from "react";
4
4
 
5
5
  //#region src/components/header/top-bar.client.d.ts
@@ -11,7 +11,7 @@ type TopbarProps = {
11
11
  };
12
12
  declare function Topbar({
13
13
  children
14
- }: TopbarProps): react_jsx_runtime274.JSX.Element;
14
+ }: TopbarProps): react_jsx_runtime20.JSX.Element;
15
15
  /**
16
16
  * Topbar title component
17
17
  */
@@ -26,7 +26,7 @@ declare function TopbarTitle({
26
26
  isDeleted,
27
27
  className,
28
28
  ...props
29
- }: TopbarTitleProps): react_jsx_runtime274.JSX.Element;
29
+ }: TopbarTitleProps): react_jsx_runtime20.JSX.Element;
30
30
  /**
31
31
  * Topbar tools component
32
32
  */
@@ -37,7 +37,7 @@ declare function TopbarTools({
37
37
  children,
38
38
  className,
39
39
  ...props
40
- }: TopbarToolsProps): react_jsx_runtime274.JSX.Element;
40
+ }: TopbarToolsProps): react_jsx_runtime20.JSX.Element;
41
41
  //#endregion
42
42
  export { Topbar, TopbarProps, TopbarTitle, TopbarTitleProps, TopbarTools, TopbarToolsProps };
43
43
  //# sourceMappingURL=top-bar.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"top-bar.client.d.mts","names":[],"sources":["../../../src/components/header/top-bar.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAsBY,KAAA,WAAA,GAAW;EAIP,QAAA,EAHJ,KAAA,CAAM,SAGI;CAAG;AAAY,iBAArB,MAAA,CAAqB;EAAA;AAAA,CAAA,EAAA,WAAA,CAAA,EAAW,oBAAA,CAAA,GAA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OANQ;;;;AAIzB,KAuEU,gBAAA,GAAmB,KAAA,CAAM,cAvEnC,CAuEkD,WAvElD,CAAA,GAAA;EAEC,QAAA,EAsES,KAAA,CAAM,SAtEf;CAAgB;AAAA,iBAyEH,WAAA,CAzEG;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyE4C,gBAzE5C,CAAA,EAyE4D,mBAAA,CAAA,GAAA,CAAA,OAzE5D"}
@@ -1,5 +1,5 @@
1
1
  import { ScrollArea } from "../ui/scroll-area.mjs";
2
- import * as react_jsx_runtime277 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime23 from "react/jsx-runtime";
3
3
  import { ComponentProps } from "react";
4
4
 
5
5
  //#region src/components/layouts/admin-content.client.d.ts
@@ -7,7 +7,7 @@ declare function AdminContent({
7
7
  children,
8
8
  className,
9
9
  ...props
10
- }: ComponentProps<typeof ScrollArea>): react_jsx_runtime277.JSX.Element;
10
+ }: ComponentProps<typeof ScrollArea>): react_jsx_runtime23.JSX.Element;
11
11
  //#endregion
12
12
  export { AdminContent };
13
13
  //# sourceMappingURL=admin-content.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin-content.client.d.mts","names":[],"sources":["../../../src/components/layouts/admin-content.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOgB,YAAA;;;;GAAgD,sBAAsB,cAAW,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"admin-content.client.d.mts","names":[],"sources":["../../../src/components/layouts/admin-content.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOgB,YAAA;;;;GAAgD,sBAAsB,cAAW,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime68 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime267 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_runtime68.JSX.Element;
5
+ declare function AdminLayout(props: PropsWithChildren): react_jsx_runtime267.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,mBAAA,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,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime90 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime129 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_runtime90.JSX.Element;
5
+ declare function AdminLoadingLayout(props: PropsWithChildren): react_jsx_runtime129.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,mBAAA,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,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime91 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime130 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_runtime91.JSX.Element;
18
+ }: ComponentProps<"div">): react_jsx_runtime130.JSX.Element;
19
19
  declare function EmptyPageTitle({
20
20
  className,
21
21
  children,
22
22
  ...props
23
- }: ComponentProps<"h2">): react_jsx_runtime91.JSX.Element;
23
+ }: ComponentProps<"h2">): react_jsx_runtime130.JSX.Element;
24
24
  declare function EmptyPageDescription({
25
25
  className,
26
26
  children,
27
27
  ...props
28
- }: ComponentProps<"p">): react_jsx_runtime91.JSX.Element;
28
+ }: ComponentProps<"p">): react_jsx_runtime130.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,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
+ {"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"}
@@ -0,0 +1,23 @@
1
+ import * as react_jsx_runtime133 from "react/jsx-runtime";
2
+ import { ComponentProps } from "react";
3
+
4
+ //#region src/components/layouts/error-page.d.ts
5
+ /**
6
+ * ErrorPage
7
+ */
8
+ declare function ErrorPage({
9
+ className,
10
+ ...props
11
+ }: ComponentProps<"div">): react_jsx_runtime133.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_runtime133.JSX.Element;
21
+ //#endregion
22
+ export { AdminErrorPage, ErrorPage };
23
+ //# sourceMappingURL=error-page.d.mts.map
@@ -0,0 +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"}
@@ -0,0 +1,58 @@
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";
7
+
8
+ //#region src/components/layouts/error-page.tsx
9
+ /**
10
+ * ErrorPage
11
+ */
12
+ function ErrorPage({ className, ...props }) {
13
+ return /* @__PURE__ */ jsx("div", {
14
+ ...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
+ })
26
+ });
27
+ }
28
+ /**
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
33
+ */
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" })
42
+ });
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" })
49
+ });
50
+ /**
51
+ * Else show the ErrorPage
52
+ */
53
+ return /* @__PURE__ */ jsx(ErrorPage, {});
54
+ }
55
+
56
+ //#endregion
57
+ export { AdminErrorPage, ErrorPage };
58
+ //# sourceMappingURL=error-page.mjs.map
@@ -0,0 +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,4 +1,4 @@
1
- import * as react_jsx_runtime94 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime135 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_runtime94.JSX.Element;
9
+ }: ComponentProps<"div">): react_jsx_runtime135.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,mBAAA,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,oBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,22 @@
1
+ import * as react_jsx_runtime136 from "react/jsx-runtime";
2
+ import { HTMLAttributes } from "react";
3
+ import { Route } from "next";
4
+
5
+ //#region src/components/layouts/not-allowed-page.d.ts
6
+ type NotAllowedPageProps = HTMLAttributes<HTMLDivElement> & {
7
+ title?: string;
8
+ description?: string;
9
+ callToAction?: {
10
+ href: Route;
11
+ title: string;
12
+ };
13
+ };
14
+ declare function NotAllowedPage({
15
+ title,
16
+ description,
17
+ callToAction,
18
+ ...props
19
+ }: NotAllowedPageProps): react_jsx_runtime136.JSX.Element;
20
+ //#endregion
21
+ export { NotAllowedPage, NotAllowedPageProps };
22
+ //# sourceMappingURL=not-allowed-page.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"not-allowed-page.d.mts","names":[],"sources":["../../../src/components/layouts/not-allowed-page.tsx"],"sourcesContent":[],"mappings":";;;;;KAOY,mBAAA,GAAsB,eAAe;;;EAArC,YAAA,CAAA,EAAA;IAAqC,IAAA,EAIvC,KAJuC;IAAf,KAAA,EAAA,MAAA;EAIxB,CAAA;CAAK;AAKC,iBAAA,cAAA,CAAc;EAAA,KAAA;EAAA,WAAA;EAAA,YAAA;EAAA,GAAA;AAAA,CAAA,EAK3B,mBAL2B,CAAA,EAKR,oBAAA,CAAA,GAAA,CAAA,OALQ"}
@@ -0,0 +1,25 @@
1
+ import { cn } from "../../lib/utils/cn.mjs";
2
+ import { EmptyPage, EmptyPageDescription, EmptyPageTitle } from "./empty-page.mjs";
3
+ import { buttonVariants } from "../ui/button.mjs";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import Link from "next/link";
6
+
7
+ //#region src/components/layouts/not-allowed-page.tsx
8
+ function NotAllowedPage({ title, description, callToAction, ...props }) {
9
+ return /* @__PURE__ */ jsxs(EmptyPage, {
10
+ ...props,
11
+ children: [
12
+ /* @__PURE__ */ jsx(EmptyPageTitle, { children: title ?? "Geen toegang" }),
13
+ /* @__PURE__ */ jsx(EmptyPageDescription, { children: description ?? "Je hebt geen toegang tot deze pagina." }),
14
+ callToAction && /* @__PURE__ */ jsx(Link, {
15
+ href: callToAction.href,
16
+ className: cn(buttonVariants({ variant: "default" })),
17
+ children: callToAction.title
18
+ })
19
+ ]
20
+ });
21
+ }
22
+
23
+ //#endregion
24
+ export { NotAllowedPage };
25
+ //# sourceMappingURL=not-allowed-page.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"not-allowed-page.mjs","names":[],"sources":["../../../src/components/layouts/not-allowed-page.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport type { Route } from \"next\";\nimport Link from \"next/link\";\nimport type { HTMLAttributes } from \"react\";\nimport { buttonVariants } from \"../ui/button\";\nimport { EmptyPage, EmptyPageDescription, EmptyPageTitle } from \"./empty-page\";\n\nexport type NotAllowedPageProps = HTMLAttributes<HTMLDivElement> & {\n title?: string;\n description?: string;\n callToAction?: {\n href: Route;\n title: string;\n };\n};\n\nexport function NotAllowedPage({\n title,\n description,\n callToAction,\n ...props\n}: NotAllowedPageProps) {\n return (\n <EmptyPage {...props}>\n <EmptyPageTitle>{title ?? \"Geen toegang\"}</EmptyPageTitle>\n <EmptyPageDescription>\n {description ?? \"Je hebt geen toegang tot deze pagina.\"}\n </EmptyPageDescription>\n\n {callToAction && (\n <Link href={callToAction.href} className={cn(buttonVariants({ variant: \"default\" }))}>\n {callToAction.title}\n </Link>\n )}\n </EmptyPage>\n );\n}\n\n// <EmptyPage\n// {...props}\n// title={title ?? \"Geen toegang\"}\n// description={description ?? \"Je hebt geen toegang tot deze pagina.\"}\n// callToAction={callToAction ?? { href: \"/admin\", title: \"Terug naar dashboard\" }}\n// />\n"],"mappings":";;;;;;;AAgBA,SAAgB,eAAe,EAC7B,OACA,aACA,cACA,GAAG,SACmB;AACtB,QACE,qBAAC;EAAU,GAAI;;GACb,oBAAC,4BAAgB,SAAS,iBAAgC;GAC1D,oBAAC,kCACE,eAAe,0CACK;GAEtB,gBACC,oBAAC;IAAK,MAAM,aAAa;IAAM,WAAW,GAAG,eAAe,EAAE,SAAS,WAAW,CAAC,CAAC;cACjF,aAAa;KACT;;GAEC"}
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime95 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime137 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/layouts/not-found-page.d.ts
4
- declare function AdminNotFoundPage(): react_jsx_runtime95.JSX.Element;
5
- declare function NotFoundPage(): react_jsx_runtime95.JSX.Element;
4
+ declare function AdminNotFoundPage(): react_jsx_runtime137.JSX.Element;
5
+ declare function NotFoundPage(): react_jsx_runtime137.JSX.Element;
6
6
  //#endregion
7
7
  export { AdminNotFoundPage, NotFoundPage };
8
8
  //# sourceMappingURL=not-found-page.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"not-found-page.d.mts","names":[],"sources":["../../../src/components/layouts/not-found-page.tsx"],"sourcesContent":[],"mappings":";;;iBAEgB,iBAAA,CAAA,GAAiB,mBAAA,CAAA,GAAA,CAAA;iBAQjB,YAAA,CAAA,GAAY,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"not-found-page.d.mts","names":[],"sources":["../../../src/components/layouts/not-found-page.tsx"],"sourcesContent":[],"mappings":";;;iBAEgB,iBAAA,CAAA,GAAiB,oBAAA,CAAA,GAAA,CAAA;iBAQjB,YAAA,CAAA,GAAY,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime278 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime24 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_runtime278.JSX.Element;
7
+ }: PropsWithChildren): react_jsx_runtime24.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,oBAAA,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,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { TulipConfig } from "../../modules/config/lib/config.mjs";
2
- import * as react_jsx_runtime7 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime4 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_runtime7.JSX.Element;
34
+ }: PropsWithChildren): react_jsx_runtime4.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,kBAAA,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,MAAW,EAAX,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,kBAAA,CAAA,GAAA,CAAA"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime97 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime139 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/layouts/root-loading.d.ts
4
- declare function RootLoading(): react_jsx_runtime97.JSX.Element;
4
+ declare function RootLoading(): react_jsx_runtime139.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,mBAAA,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,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Permission } from "../../modules/auth/lib/permissions.mjs";
2
- import * as react_jsx_runtime98 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime140 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_runtime98.JSX.Element;
20
+ }: TabLayoutProps): react_jsx_runtime140.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,mBAAA,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,oBAAA,CAAA,GAAA,CAAA,OAA1B"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime99 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime141 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/components/lists/data-list.d.ts
@@ -7,25 +7,25 @@ declare function DataList({
7
7
  children,
8
8
  className,
9
9
  ...props
10
- }: DataListProps): react_jsx_runtime99.JSX.Element;
10
+ }: DataListProps): react_jsx_runtime141.JSX.Element;
11
11
  type DataListItemProps = React.HTMLAttributes<HTMLElement>;
12
12
  declare function DataListItem({
13
13
  children,
14
14
  className,
15
15
  ...props
16
- }: DataListItemProps): react_jsx_runtime99.JSX.Element;
16
+ }: DataListItemProps): react_jsx_runtime141.JSX.Element;
17
17
  type DataListTitleProps = React.HTMLAttributes<HTMLElement>;
18
18
  declare function DataListTitle({
19
19
  children,
20
20
  className,
21
21
  ...props
22
- }: DataListTitleProps): react_jsx_runtime99.JSX.Element;
22
+ }: DataListTitleProps): react_jsx_runtime141.JSX.Element;
23
23
  type DataListValueProps = React.HTMLAttributes<HTMLElement>;
24
24
  declare function DataListValue({
25
25
  children,
26
26
  className,
27
27
  ...props
28
- }: DataListValueProps): react_jsx_runtime99.JSX.Element;
28
+ }: DataListValueProps): react_jsx_runtime141.JSX.Element;
29
29
  //#endregion
30
30
  export { DataList, DataListItem, DataListItemProps, DataListProps, DataListTitle, DataListTitleProps, DataListValue, DataListValueProps };
31
31
  //# sourceMappingURL=data-list.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-list.d.mts","names":[],"sources":["../../../src/components/lists/data-list.tsx"],"sourcesContent":[],"mappings":";;;;KAGY,aAAA,GAAgB,KAAA,CAAM,eAAe;iBAEjC,QAAA;;;;GAA4C,gBAAa,mBAAA,CAAA,GAAA,CAAA;KAQ7D,iBAAA,GAAoB,KAAA,CAAM,eAA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CApC4C;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAoCK,kBApCL,CAAA,EAoCuB,oBAAA,CAAA,GAAA,CAAA,OApCvB"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime103 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime145 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/components/lists/data-stack.d.ts
@@ -7,43 +7,43 @@ declare function DataStackGrid({
7
7
  children,
8
8
  className,
9
9
  ...props
10
- }: DataStackGridProps): react_jsx_runtime103.JSX.Element;
10
+ }: DataStackGridProps): react_jsx_runtime145.JSX.Element;
11
11
  type DataStackLayoutProps = React.HTMLAttributes<HTMLElement>;
12
12
  declare function DataStackLayout({
13
13
  children,
14
14
  className,
15
15
  ...props
16
- }: DataStackLayoutProps): react_jsx_runtime103.JSX.Element;
16
+ }: DataStackLayoutProps): react_jsx_runtime145.JSX.Element;
17
17
  type DataStackRowProps = React.HTMLAttributes<HTMLElement>;
18
18
  declare function DataStackRow({
19
19
  children,
20
20
  className,
21
21
  ...props
22
- }: DataStackRowProps): react_jsx_runtime103.JSX.Element;
22
+ }: DataStackRowProps): react_jsx_runtime145.JSX.Element;
23
23
  type DataStackColumnProps = React.HTMLAttributes<HTMLElement>;
24
24
  declare function DataStackColumn({
25
25
  children,
26
26
  className,
27
27
  ...props
28
- }: DataStackRowProps): react_jsx_runtime103.JSX.Element;
28
+ }: DataStackRowProps): react_jsx_runtime145.JSX.Element;
29
29
  type DataStackProps = React.HTMLAttributes<HTMLOListElement>;
30
30
  declare function DataStack({
31
31
  children,
32
32
  className,
33
33
  ...props
34
- }: DataStackProps): react_jsx_runtime103.JSX.Element;
34
+ }: DataStackProps): react_jsx_runtime145.JSX.Element;
35
35
  type DataStackTitleProps = React.HTMLAttributes<HTMLElement>;
36
36
  declare function DataStackTitle({
37
37
  children,
38
38
  className,
39
39
  ...props
40
- }: DataStackTitleProps): react_jsx_runtime103.JSX.Element;
40
+ }: DataStackTitleProps): react_jsx_runtime145.JSX.Element;
41
41
  type DataStackValueProps = React.HTMLAttributes<HTMLElement>;
42
42
  declare function DataStackValue({
43
43
  children,
44
44
  className,
45
45
  ...props
46
- }: DataStackValueProps): react_jsx_runtime103.JSX.Element;
46
+ }: DataStackValueProps): react_jsx_runtime145.JSX.Element;
47
47
  //#endregion
48
48
  export { DataStack, DataStackColumn, DataStackColumnProps, DataStackGrid, DataStackGridProps, DataStackLayout, DataStackLayoutProps, DataStackProps, DataStackRow, DataStackRowProps, DataStackTitle, DataStackTitleProps, DataStackValue, DataStackValueProps };
49
49
  //# sourceMappingURL=data-stack.d.mts.map
@@ -1,7 +1,7 @@
1
1
  import { Permission } from "../../modules/auth/lib/permissions.mjs";
2
2
  import { Sidebar } from "../ui/sidebar.client.mjs";
3
3
  import "../../auth.mjs";
4
- import * as react_jsx_runtime279 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime25 from "react/jsx-runtime";
5
5
  import * as React$1 from "react";
6
6
  import { Route } from "next";
7
7
 
@@ -12,19 +12,29 @@ import { Route } from "next";
12
12
  declare function Paths({
13
13
  children,
14
14
  ...props
15
- }: React$1.ComponentProps<typeof Sidebar>): react_jsx_runtime279.JSX.Element;
15
+ }: React$1.ComponentProps<typeof Sidebar>): react_jsx_runtime25.JSX.Element;
16
16
  /**
17
17
  * Path Group
18
18
  */
19
- declare function PathGroup(props: React$1.ComponentProps<"div">): react_jsx_runtime279.JSX.Element;
19
+ type PathGroupProps = React$1.ComponentProps<"div"> & {
20
+ /**
21
+ * Permission to check with the any strategy for displaying the group
22
+ * @example { project: ["view", "create"], client: ["view"], drive: ["view"] }
23
+ */
24
+ permission?: Permission[];
25
+ };
26
+ declare function PathGroup({
27
+ permission,
28
+ ...props
29
+ }: PathGroupProps): react_jsx_runtime25.JSX.Element;
20
30
  /**
21
31
  * Path Group Title
22
32
  */
23
- declare function PathGroupTitle(props: React$1.ComponentProps<"div">): react_jsx_runtime279.JSX.Element;
33
+ declare function PathGroupTitle(props: React$1.ComponentProps<"div">): react_jsx_runtime25.JSX.Element;
24
34
  /**
25
35
  * Path Group Items
26
36
  */
27
- declare function PathGroupItems(props: React$1.PropsWithChildren): react_jsx_runtime279.JSX.Element;
37
+ declare function PathGroupItems(props: React$1.PropsWithChildren): react_jsx_runtime25.JSX.Element;
28
38
  /**
29
39
  * Path
30
40
  */
@@ -39,7 +49,7 @@ declare function Path({
39
49
  isActive,
40
50
  segment,
41
51
  ...props
42
- }: PathProps): react_jsx_runtime279.JSX.Element;
52
+ }: PathProps): react_jsx_runtime25.JSX.Element;
43
53
  /**
44
54
  * Path Button
45
55
  */
@@ -48,11 +58,11 @@ declare function PathLink({
48
58
  children
49
59
  }: React$1.PropsWithChildren<{
50
60
  href: Route;
51
- }>): react_jsx_runtime279.JSX.Element;
61
+ }>): react_jsx_runtime25.JSX.Element;
52
62
  /**
53
63
  * Path Items
54
64
  */
55
- declare function PathItems(props: React$1.ComponentProps<"ul">): react_jsx_runtime279.JSX.Element | null;
65
+ declare function PathItems(props: React$1.ComponentProps<"ul">): react_jsx_runtime25.JSX.Element | null;
56
66
  /**
57
67
  * Path Sub Item
58
68
  */
@@ -67,7 +77,7 @@ declare function PathSubItem({
67
77
  segment,
68
78
  children,
69
79
  ...props
70
- }: PathSubItemProps): react_jsx_runtime279.JSX.Element;
80
+ }: PathSubItemProps): react_jsx_runtime25.JSX.Element;
71
81
  /**
72
82
  * Path Button
73
83
  */
@@ -76,7 +86,7 @@ declare function PathSubItemLink({
76
86
  children
77
87
  }: React$1.PropsWithChildren<{
78
88
  href: Route;
79
- }>): react_jsx_runtime279.JSX.Element;
89
+ }>): react_jsx_runtime25.JSX.Element;
80
90
  //#endregion
81
- export { Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths };
91
+ export { Path, PathGroup, PathGroupItems, PathGroupProps, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths };
82
92
  //# sourceMappingURL=admin-sidebar-paths.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin-sidebar-paths.client.d.mts","names":[],"sources":["../../../src/components/navigation/admin-sidebar-paths.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;iBAiCgB,KAAA;;;GAA8B,OAAA,CAAM,sBAAsB,WAAQ,oBAAA,CAAA,GAAA,CAAA;AAAlF;;;AAA8C,iBAoB9B,SAAA,CApBoC,KAAA,EAoBnB,OAAA,CAAM,cApBa,CAAA,KAAA,CAAA,CAAA,EAoBQ,oBAAA,CAAA,GAAA,CAAA,OApBR;;;AAoBpD;AAOgB,iBAAA,cAAA,CAAsB,KAAM,EAAN,OAAA,CAAM,cAAqB,CAAA,KAAA,CAAA,CAAA,EAAA,oBAAA,CAAA,GAAA,CAAA,OAAA;AAOjE;AAMC;AAgBD;AAAuB,iBAtBP,cAAA,CAsBO,KAAA,EAtBe,OAAA,CAAM,iBAsBrB,CAAA,EAtBsC,oBAAA,CAAA,GAAA,CAAA,OAsBtC;;;;KANlB,SAAA,GAAY,OAAA,CAAM,cAMqD,CAAA,IAAA,CAAA,GAAA;EAAS,UAAA,CAAA,EALtE,UAKsE;EAAA,QAAA,CAAA,EAAA,OAAA;EAuBrE,OAAA,CAAA,EAAA,MAAQ;CAAG;AAAM,iBAvBjB,IAAA,CAuBiB;EAAA,UAAA;EAAA,QAAA;EAAA,QAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAvB2C,SAuB3C,CAAA,EAvBoD,oBAAA,CAAA,GAAA,CAAA,OAuBpD;;;;AAAoD,iBAArE,QAAA,CAAqE;EAAA,IAAA;EAAA;AAqBpF,CArBoF,EAAxC,OAAA,CAAM,iBAAkC,CAAA;EAgBrE,IAAA,EAhB6D,KAgB7D;AAKf,CAAA,CAAA,CAAA,EArBoF,oBAAA,CAAA,GAAA,CAAA,OA+BvD;AAM9B;;;AAGE,iBAxBc,SAAA,CAwBd,KAAA,EAxB+B,OAAA,CA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SidebarGroup, { ...props });
33
+ function PathGroup({ permission, ...props }) {
34
+ if (!permission) return /* @__PURE__ */ jsx(SidebarGroup, { ...props });
35
+ return /* @__PURE__ */ jsx(Allowed, {
36
+ permission,
37
+ strategy: "any",
38
+ children: /* @__PURE__ */ jsx(SidebarGroup, { ...props })
39
+ });
38
40
  }
39
41
  /**
40
42
  * Path Group Title