@tulip-systems/core 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/dist/auth/client.d.ts +3 -1
  2. package/dist/auth/client.js +4 -2
  3. package/dist/auth.d.ts +2 -1
  4. package/dist/auth.js +3 -2
  5. package/dist/commands/client.d.ts +4 -4
  6. package/dist/commands/client.js +4 -4
  7. package/dist/components/client.d.ts +5 -3
  8. package/dist/components/client.js +6 -4
  9. package/dist/components/common/icons.d.ts +51 -48
  10. package/dist/components/common/icons.d.ts.map +1 -1
  11. package/dist/components/common/icons.js +4 -1
  12. package/dist/components/common/icons.js.map +1 -1
  13. package/dist/components/common/status.d.ts +3 -3
  14. package/dist/components/common/status.d.ts.map +1 -1
  15. package/dist/components/editor/components/content.client.d.ts +2 -2
  16. package/dist/components/editor/components/content.client.d.ts.map +1 -1
  17. package/dist/components/editor/components/fixed-menu.client.d.ts +2 -2
  18. package/dist/components/editor/components/fixed-menu.client.d.ts.map +1 -1
  19. package/dist/components/editor/context.client.d.ts +4 -4
  20. package/dist/components/editor/context.client.d.ts.map +1 -1
  21. package/dist/components/editor/index.client.d.ts +2 -2
  22. package/dist/components/editor/index.client.d.ts.map +1 -1
  23. package/dist/components/editor/preview.client.d.ts +2 -2
  24. package/dist/components/editor/preview.client.d.ts.map +1 -1
  25. package/dist/components/header/back-button.client.d.ts +2 -2
  26. package/dist/components/header/back-button.client.d.ts.map +1 -1
  27. package/dist/components/header/bottom-bar.client.d.ts +5 -5
  28. package/dist/components/header/bottom-bar.client.d.ts.map +1 -1
  29. package/dist/components/header/bottom-bar.client.js.map +1 -1
  30. package/dist/components/header/breadcrumbs.client.d.ts +7 -7
  31. package/dist/components/header/breadcrumbs.client.d.ts.map +1 -1
  32. package/dist/components/header/breadcrumbs.client.js +1 -1
  33. package/dist/components/header/header.client.d.ts +2 -2
  34. package/dist/components/header/header.client.d.ts.map +1 -1
  35. package/dist/components/header/mobile-nav-switcher.client.d.ts +2 -2
  36. package/dist/components/header/mobile-nav-switcher.client.d.ts.map +1 -1
  37. package/dist/components/header/top-bar.client.d.ts +4 -4
  38. package/dist/components/header/top-bar.client.d.ts.map +1 -1
  39. package/dist/components/layouts/admin-content.client.d.ts +13 -0
  40. package/dist/components/layouts/admin-content.client.d.ts.map +1 -0
  41. package/dist/components/layouts/admin-layout.d.ts +8 -0
  42. package/dist/components/layouts/admin-layout.d.ts.map +1 -0
  43. package/dist/components/layouts/admin-layout.js +15 -0
  44. package/dist/components/layouts/admin-layout.js.map +1 -0
  45. package/dist/components/layouts/admin-loading.d.ts +3 -3
  46. package/dist/components/layouts/admin-loading.d.ts.map +1 -1
  47. package/dist/components/layouts/admin-loading.js +2 -2
  48. package/dist/components/layouts/admin-loading.js.map +1 -1
  49. package/dist/components/layouts/empty-page.d.ts +4 -4
  50. package/dist/components/layouts/empty-page.d.ts.map +1 -1
  51. package/dist/components/layouts/list-layout.d.ts +2 -2
  52. package/dist/components/layouts/list-layout.d.ts.map +1 -1
  53. package/dist/components/layouts/not-found-page.d.ts +2 -2
  54. package/dist/components/layouts/not-found-page.d.ts.map +1 -1
  55. package/dist/components/layouts/providers.client.d.ts +2 -2
  56. package/dist/components/layouts/providers.client.d.ts.map +1 -1
  57. package/dist/components/layouts/root-layout.server.d.ts +2 -2
  58. package/dist/components/layouts/root-layout.server.d.ts.map +1 -1
  59. package/dist/components/layouts/root-loading.d.ts +7 -0
  60. package/dist/components/layouts/root-loading.d.ts.map +1 -0
  61. package/dist/components/layouts/root-loading.js +14 -0
  62. package/dist/components/layouts/root-loading.js.map +1 -0
  63. package/dist/components/layouts/tab-layout.d.ts +2 -2
  64. package/dist/components/layouts/tab-layout.d.ts.map +1 -1
  65. package/dist/components/lists/data-list.d.ts +5 -5
  66. package/dist/components/lists/data-list.d.ts.map +1 -1
  67. package/dist/components/lists/data-stack.d.ts +8 -8
  68. package/dist/components/lists/data-stack.d.ts.map +1 -1
  69. package/dist/components/{layouts → navigation}/admin-sidebar-header.client.js +8 -9
  70. package/dist/components/navigation/admin-sidebar-header.client.js.map +1 -0
  71. package/dist/components/navigation/admin-sidebar-paths.client.d.ts +81 -0
  72. package/dist/components/navigation/admin-sidebar-paths.client.d.ts.map +1 -0
  73. package/dist/components/navigation/admin-sidebar-paths.client.js +143 -0
  74. package/dist/components/navigation/admin-sidebar-paths.client.js.map +1 -0
  75. package/dist/components/navigation/admin-sidebar-skeleton.js +31 -0
  76. package/dist/components/navigation/admin-sidebar-skeleton.js.map +1 -0
  77. package/dist/components/server.d.ts +1 -1
  78. package/dist/components/server.js +1 -1
  79. package/dist/components/ui/accordion.d.ts +5 -5
  80. package/dist/components/ui/accordion.d.ts.map +1 -1
  81. package/dist/components/ui/alert-dialog.d.ts +12 -12
  82. package/dist/components/ui/alert-dialog.d.ts.map +1 -1
  83. package/dist/components/ui/alert.d.ts +6 -6
  84. package/dist/components/ui/alert.d.ts.map +1 -1
  85. package/dist/components/ui/aspect-ratio.d.ts +2 -2
  86. package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
  87. package/dist/components/ui/avatar.client.d.ts +4 -4
  88. package/dist/components/ui/avatar.client.d.ts.map +1 -1
  89. package/dist/components/ui/badge.d.ts +4 -4
  90. package/dist/components/ui/badge.d.ts.map +1 -1
  91. package/dist/components/ui/breadcrumb.d.ts +8 -8
  92. package/dist/components/ui/breadcrumb.d.ts.map +1 -1
  93. package/dist/components/ui/button.d.ts +5 -5
  94. package/dist/components/ui/button.d.ts.map +1 -1
  95. package/dist/components/ui/calendar.d.ts +2 -2
  96. package/dist/components/ui/calendar.d.ts.map +1 -1
  97. package/dist/components/ui/card.d.ts +7 -7
  98. package/dist/components/ui/card.d.ts.map +1 -1
  99. package/dist/components/ui/carousel.d.ts +6 -6
  100. package/dist/components/ui/carousel.d.ts.map +1 -1
  101. package/dist/components/ui/chart.client.d.ts +5 -5
  102. package/dist/components/ui/chart.client.d.ts.map +1 -1
  103. package/dist/components/ui/checkbox.d.ts +2 -2
  104. package/dist/components/ui/checkbox.d.ts.map +1 -1
  105. package/dist/components/ui/collapsible.client.d.ts +4 -4
  106. package/dist/components/ui/collapsible.client.d.ts.map +1 -1
  107. package/dist/components/ui/color-picker.client.d.ts +2 -2
  108. package/dist/components/ui/color-picker.client.d.ts.map +1 -1
  109. package/dist/components/ui/combobox-dropdown.client.d.ts +2 -2
  110. package/dist/components/ui/combobox-dropdown.client.d.ts.map +1 -1
  111. package/dist/components/ui/combobox.client.d.ts +2 -2
  112. package/dist/components/ui/combobox.client.d.ts.map +1 -1
  113. package/dist/components/ui/command.d.ts +10 -10
  114. package/dist/components/ui/command.d.ts.map +1 -1
  115. package/dist/components/ui/context-menu.d.ts +16 -16
  116. package/dist/components/ui/dialog.client.d.ts +11 -11
  117. package/dist/components/ui/dialog.client.d.ts.map +1 -1
  118. package/dist/components/ui/drawer.client.d.ts +11 -11
  119. package/dist/components/ui/drawer.client.d.ts.map +1 -1
  120. package/dist/components/ui/dropdown-menu.d.ts +16 -16
  121. package/dist/components/ui/form.client.d.ts +8 -8
  122. package/dist/components/ui/form.client.d.ts.map +1 -1
  123. package/dist/components/ui/hover-card.client.d.ts +4 -4
  124. package/dist/components/ui/hover-card.client.d.ts.map +1 -1
  125. package/dist/components/ui/input.d.ts +2 -2
  126. package/dist/components/ui/label.d.ts +2 -2
  127. package/dist/components/ui/navigation-menu.d.ts +11 -11
  128. package/dist/components/ui/pagination.d.ts +8 -8
  129. package/dist/components/ui/pagination.d.ts.map +1 -1
  130. package/dist/components/ui/popover.d.ts +5 -5
  131. package/dist/components/ui/progress.client.d.ts +2 -2
  132. package/dist/components/ui/progress.client.d.ts.map +1 -1
  133. package/dist/components/ui/radio-group.d.ts +3 -3
  134. package/dist/components/ui/resizable.client.d.ts +4 -4
  135. package/dist/components/ui/resizable.client.d.ts.map +1 -1
  136. package/dist/components/ui/scroll-area.d.ts +3 -3
  137. package/dist/components/ui/select.client.d.ts +11 -11
  138. package/dist/components/ui/select.client.d.ts.map +1 -1
  139. package/dist/components/ui/separator.d.ts +2 -2
  140. package/dist/components/ui/sheet.client.d.ts +9 -9
  141. package/dist/components/ui/sidebar.client.d.ts +26 -26
  142. package/dist/components/ui/sidebar.client.js +1 -1
  143. package/dist/components/ui/skeleton.d.ts +2 -2
  144. package/dist/components/ui/slider.d.ts +2 -2
  145. package/dist/components/ui/sonner.client.d.ts +2 -2
  146. package/dist/components/ui/sonner.client.js +1 -1
  147. package/dist/components/ui/spinner.js +63 -0
  148. package/dist/components/ui/spinner.js.map +1 -0
  149. package/dist/components/ui/switch.d.ts +2 -2
  150. package/dist/components/ui/tabs.d.ts +5 -5
  151. package/dist/components/ui/textarea.d.ts +2 -2
  152. package/dist/components/ui/time-input.client.d.ts +2 -2
  153. package/dist/components/ui/toggle-group.client.d.ts +3 -3
  154. package/dist/components/ui/toggle.d.ts +2 -2
  155. package/dist/components/ui/tooltip.client.d.ts +5 -5
  156. package/dist/components/ui/tree.client.d.ts +5 -5
  157. package/dist/components/ui/tree.client.d.ts.map +1 -1
  158. package/dist/components.d.ts +5 -4
  159. package/dist/components.js +7 -6
  160. package/dist/config/server.d.ts +2 -3
  161. package/dist/config/server.js +3 -4
  162. package/dist/config.d.ts +3 -2
  163. package/dist/config.js +2 -1
  164. package/dist/lib/client.js +1 -1
  165. package/dist/lib/hooks/use-action.d.ts +2 -2
  166. package/dist/lib/hooks/use-indicator.d.ts +2 -2
  167. package/dist/modules/auth/components/allowed.client.d.ts +2 -2
  168. package/dist/modules/auth/components/allowed.client.js +1 -1
  169. package/dist/modules/auth/components/allowed.client.js.map +1 -1
  170. package/dist/modules/auth/components/allowed.server.d.ts +2 -2
  171. package/dist/modules/auth/components/allowed.server.js +1 -1
  172. package/dist/modules/auth/components/auth-layout.server.d.ts +4 -5
  173. package/dist/modules/auth/components/auth-layout.server.d.ts.map +1 -1
  174. package/dist/modules/auth/components/auth-layout.server.js +1 -4
  175. package/dist/modules/auth/components/auth-layout.server.js.map +1 -1
  176. package/dist/modules/auth/components/auth-loading.d.ts +7 -0
  177. package/dist/modules/auth/components/auth-loading.d.ts.map +1 -0
  178. package/dist/modules/auth/components/auth-loading.js +18 -0
  179. package/dist/modules/auth/components/auth-loading.js.map +1 -0
  180. package/dist/modules/auth/components/forget-password-page.client.d.ts +2 -2
  181. package/dist/modules/auth/components/forget-password-page.client.js +2 -2
  182. package/dist/modules/auth/components/guard.js +16 -0
  183. package/dist/modules/auth/components/guard.js.map +1 -0
  184. package/dist/modules/auth/components/login-page.client.d.ts +2 -6
  185. package/dist/modules/auth/components/login-page.client.d.ts.map +1 -1
  186. package/dist/modules/auth/components/login-page.client.js +7 -6
  187. package/dist/modules/auth/components/login-page.client.js.map +1 -1
  188. package/dist/modules/auth/components/reset-password-page.client.d.ts +2 -2
  189. package/dist/modules/auth/components/reset-password-page.client.js +3 -3
  190. package/dist/modules/auth/components/update-password-command.d.ts +3 -3
  191. package/dist/modules/auth/components/update-password-command.js +1 -1
  192. package/dist/modules/auth/handler/client.client.d.ts +48 -48
  193. package/dist/modules/auth/handler/client.client.d.ts.map +1 -1
  194. package/dist/modules/auth/hooks/use-permission.d.ts +26 -0
  195. package/dist/modules/auth/hooks/use-permission.d.ts.map +1 -0
  196. package/dist/modules/auth/hooks/{use-permission.client.js → use-permission.js} +5 -3
  197. package/dist/modules/auth/hooks/use-permission.js.map +1 -0
  198. package/dist/modules/auth/hooks/use-session.d.ts +34 -0
  199. package/dist/modules/auth/hooks/use-session.d.ts.map +1 -0
  200. package/dist/modules/auth/hooks/use-session.js +21 -0
  201. package/dist/modules/auth/hooks/use-session.js.map +1 -0
  202. package/dist/modules/auth/lib/helpers.server.d.ts +1 -1
  203. package/dist/modules/auth/lib/helpers.server.js +2 -2
  204. package/dist/modules/auth/lib/validators.d.ts +1 -1
  205. package/dist/modules/auth/lib/validators.d.ts.map +1 -1
  206. package/dist/modules/auth/lib/validators.js +1 -1
  207. package/dist/modules/auth/lib/validators.js.map +1 -1
  208. package/dist/modules/commands/components/alert-dialog-command.client.d.ts +11 -11
  209. package/dist/modules/commands/components/alert-dialog-command.client.js +1 -1
  210. package/dist/modules/commands/components/click-command.client.d.ts +2 -2
  211. package/dist/modules/commands/components/command-trigger.client.d.ts +6 -6
  212. package/dist/modules/commands/components/command-trigger.client.d.ts.map +1 -1
  213. package/dist/modules/commands/components/command-trigger.client.js +1 -1
  214. package/dist/modules/commands/components/dialog-command.client.d.ts +8 -8
  215. package/dist/modules/commands/components/dialog-command.client.js +1 -1
  216. package/dist/modules/commands/components/dropdown-command.client.d.ts +5 -5
  217. package/dist/modules/commands/components/empty-command.client.d.ts +2 -2
  218. package/dist/modules/commands/components/form-dialog-command.client.d.ts +12 -12
  219. package/dist/modules/commands/components/form-dialog-command.client.js +1 -1
  220. package/dist/modules/commands/hooks/use-command-action.client.js +1 -1
  221. package/dist/modules/commands/hooks/use-command-menu.client.js +1 -1
  222. package/dist/modules/commands/hooks/use-command-menu.client.js.map +1 -1
  223. package/dist/modules/commands/menus/context-menu.client.d.ts +2 -2
  224. package/dist/modules/commands/menus/dropdown-menu.client.d.ts +8 -4
  225. package/dist/modules/commands/menus/dropdown-menu.client.d.ts.map +1 -1
  226. package/dist/modules/commands/menus/dropdown-menu.client.js +9 -1
  227. package/dist/modules/commands/menus/dropdown-menu.client.js.map +1 -1
  228. package/dist/modules/commands/menus/inline-menu.client.d.ts +8 -4
  229. package/dist/modules/commands/menus/inline-menu.client.d.ts.map +1 -1
  230. package/dist/modules/commands/menus/inline-menu.client.js +12 -1
  231. package/dist/modules/commands/menus/inline-menu.client.js.map +1 -1
  232. package/dist/modules/commands/menus/responsive-menu.client.d.ts +4 -3
  233. package/dist/modules/commands/menus/responsive-menu.client.d.ts.map +1 -1
  234. package/dist/modules/commands/menus/responsive-menu.client.js +6 -3
  235. package/dist/modules/commands/menus/responsive-menu.client.js.map +1 -1
  236. package/dist/modules/commands/utils/archive-command.client.d.ts +3 -3
  237. package/dist/modules/commands/utils/delete-command.client.d.ts +2 -2
  238. package/dist/modules/commands/utils/send-mail-command.client.d.ts +2 -2
  239. package/dist/modules/commands/utils/send-mail-command.client.d.ts.map +1 -1
  240. package/dist/modules/commands/utils/send-mail-command.client.js +3 -3
  241. package/dist/modules/config/db/helpers.d.ts +5 -5
  242. package/dist/modules/config/db/helpers.d.ts.map +1 -1
  243. package/dist/modules/config/lib/config.server.d.ts +0 -2
  244. package/dist/modules/config/lib/config.server.d.ts.map +1 -1
  245. package/dist/modules/config/lib/config.server.js.map +1 -1
  246. package/dist/modules/config/lib/resolve.server.d.ts +189 -190
  247. package/dist/modules/config/lib/resolve.server.d.ts.map +1 -1
  248. package/dist/modules/config/paths/helpers.d.ts +11 -0
  249. package/dist/modules/config/paths/helpers.d.ts.map +1 -0
  250. package/dist/modules/config/paths/helpers.js +9 -0
  251. package/dist/modules/config/paths/helpers.js.map +1 -0
  252. package/dist/modules/config/paths/types.d.ts +8 -37
  253. package/dist/modules/config/paths/types.d.ts.map +1 -1
  254. package/dist/modules/config/router/client.server.d.ts +4 -4
  255. package/dist/modules/config/router/client.server.d.ts.map +1 -1
  256. package/dist/modules/config/router/context.server.d.ts +191 -192
  257. package/dist/modules/config/router/context.server.d.ts.map +1 -1
  258. package/dist/modules/config/router/init.server.d.ts +196 -197
  259. package/dist/modules/config/router/init.server.d.ts.map +1 -1
  260. package/dist/modules/data-tables/components/cell/common.client.d.ts +5 -5
  261. package/dist/modules/data-tables/components/cell/common.client.d.ts.map +1 -1
  262. package/dist/modules/data-tables/components/column-header.d.ts +2 -2
  263. package/dist/modules/data-tables/components/filters/combobox.client.d.ts +2 -2
  264. package/dist/modules/data-tables/components/filters/combobox.client.d.ts.map +1 -1
  265. package/dist/modules/data-tables/components/filters/combobox.client.js +1 -1
  266. package/dist/modules/data-tables/components/filters/combobox.client.js.map +1 -1
  267. package/dist/modules/data-tables/components/filters/slider.client.d.ts +2 -2
  268. package/dist/modules/data-tables/components/filters/slider.client.d.ts.map +1 -1
  269. package/dist/modules/data-tables/components/header.d.ts +4 -4
  270. package/dist/modules/data-tables/components/layout.d.ts +2 -2
  271. package/dist/modules/data-tables/components/search-input.client.d.ts +2 -2
  272. package/dist/modules/data-tables/components/search-input.client.d.ts.map +1 -1
  273. package/dist/modules/data-tables/components/skeleton.d.ts +2 -2
  274. package/dist/modules/data-tables/components/table.d.ts +7 -7
  275. package/dist/modules/data-tables/components/toolbar.d.ts +3 -3
  276. package/dist/modules/data-tables/hooks/use-context.client.d.ts +2 -2
  277. package/dist/modules/data-tables/hooks/use-context.client.d.ts.map +1 -1
  278. package/dist/modules/data-tables/lib/filters/resolvers.d.ts +1 -1
  279. package/dist/modules/data-tables/lib/filters/resolvers.d.ts.map +1 -1
  280. package/dist/modules/data-tables/lib/search-params.d.ts +5 -5
  281. package/dist/modules/data-tables/lib/search-params.d.ts.map +1 -1
  282. package/dist/modules/data-tables/lib/types.d.ts +1 -1
  283. package/dist/modules/data-tables/tables/data-table/components/table.d.ts +2 -2
  284. package/dist/modules/data-tables/tables/data-table/components/table.d.ts.map +1 -1
  285. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts +2 -2
  286. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts.map +1 -1
  287. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts +2 -2
  288. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts.map +1 -1
  289. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.ts +2 -2
  290. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.ts.map +1 -1
  291. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.ts +3 -3
  292. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.ts.map +1 -1
  293. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.ts +2 -2
  294. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.ts.map +1 -1
  295. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.ts +2 -2
  296. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.ts.map +1 -1
  297. package/dist/modules/data-tables/tables/inline-table/components/table.d.ts +2 -2
  298. package/dist/modules/data-tables/tables/inline-table/components/table.d.ts.map +1 -1
  299. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.ts +2 -2
  300. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.ts.map +1 -1
  301. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.js +1 -1
  302. package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js +1 -1
  303. package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js.map +1 -1
  304. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts +2 -2
  305. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts.map +1 -1
  306. package/dist/modules/inline-edit/components/combobox.client.d.ts +2 -2
  307. package/dist/modules/inline-edit/components/combobox.client.d.ts.map +1 -1
  308. package/dist/modules/inline-edit/components/date-input.client.d.ts +2 -2
  309. package/dist/modules/inline-edit/components/date-input.client.d.ts.map +1 -1
  310. package/dist/modules/inline-edit/components/date-input.client.js +1 -1
  311. package/dist/modules/inline-edit/components/date-picker.client.d.ts +2 -2
  312. package/dist/modules/inline-edit/components/date-picker.client.d.ts.map +1 -1
  313. package/dist/modules/inline-edit/components/editor.client.d.ts +2 -2
  314. package/dist/modules/inline-edit/components/editor.client.d.ts.map +1 -1
  315. package/dist/modules/inline-edit/components/input-toggle.client.d.ts +2 -2
  316. package/dist/modules/inline-edit/components/input-toggle.client.d.ts.map +1 -1
  317. package/dist/modules/inline-edit/components/input.client.d.ts +3 -3
  318. package/dist/modules/inline-edit/components/input.client.d.ts.map +1 -1
  319. package/dist/modules/inline-edit/components/richtext.client.d.ts +2 -2
  320. package/dist/modules/inline-edit/components/richtext.client.d.ts.map +1 -1
  321. package/dist/modules/inline-edit/components/select.client.d.ts +6 -6
  322. package/dist/modules/inline-edit/components/select.client.d.ts.map +1 -1
  323. package/dist/modules/inline-edit/components/switch.client.d.ts +2 -2
  324. package/dist/modules/inline-edit/components/switch.client.d.ts.map +1 -1
  325. package/dist/modules/inline-edit/components/toggle.client.d.ts +2 -2
  326. package/dist/modules/inline-edit/components/toggle.client.d.ts.map +1 -1
  327. package/dist/modules/inline-edit/hooks/context.client.d.ts +2 -2
  328. package/dist/modules/inline-edit/hooks/context.client.d.ts.map +1 -1
  329. package/dist/modules/inline-edit/hooks/use-inline.client.js +1 -1
  330. package/dist/modules/inline-edit/hooks/use-inline.client.js.map +1 -1
  331. package/dist/modules/uploads/components/button.client.d.ts +2 -2
  332. package/dist/modules/uploads/components/button.client.d.ts.map +1 -1
  333. package/dist/modules/uploads/components/images/grid.client.d.ts +2 -2
  334. package/dist/modules/uploads/components/images/grid.client.d.ts.map +1 -1
  335. package/dist/modules/uploads/components/images/grid.client.js +1 -1
  336. package/dist/modules/uploads/components/images/input.client.d.ts +2 -2
  337. package/dist/modules/uploads/components/preview-dialog.client.d.ts +2 -2
  338. package/dist/modules/uploads/components/zone.client.d.ts +2 -2
  339. package/dist/modules/uploads/hooks/use-upload-image.client.js +1 -1
  340. package/dist/modules/uploads/lib/proxy.server.d.ts +1 -1
  341. package/dist/modules/uploads/lib/proxy.server.js +3 -3
  342. package/dist/modules/uploads/lib/route.server.d.ts +1 -1
  343. package/dist/modules/uploads/lib/route.server.js +1 -1
  344. package/dist/modules/uploads/lib/router.server.d.ts +933 -933
  345. package/dist/modules/uploads/lib/router.server.js +1 -1
  346. package/dist/modules/uploads/lib/schema.d.ts +61 -61
  347. package/dist/modules/uploads/lib/validators.d.ts +51 -51
  348. package/package.json +4 -4
  349. package/src/components/common/icons.tsx +6 -0
  350. package/src/components/entry.client.ts +6 -0
  351. package/src/components/entry.server.ts +1 -1
  352. package/src/components/entry.ts +1 -0
  353. package/src/components/header/bottom-bar.client.tsx +2 -2
  354. package/src/components/layouts/admin-layout.tsx +13 -0
  355. package/src/components/layouts/admin-loading.tsx +1 -1
  356. package/src/components/layouts/root-loading.tsx +9 -0
  357. package/src/components/{layouts → navigation}/admin-sidebar-header.client.tsx +11 -6
  358. package/src/components/navigation/admin-sidebar-paths.client.tsx +190 -0
  359. package/src/components/navigation/admin-sidebar-skeleton.tsx +44 -0
  360. package/src/components/navigation/admin-sidebar.client.tsx +123 -0
  361. package/src/components/ui/spinner.tsx +51 -0
  362. package/src/modules/auth/components/allowed.client.tsx +1 -1
  363. package/src/modules/auth/components/auth-layout.server.tsx +2 -10
  364. package/src/modules/auth/components/auth-loading.tsx +11 -0
  365. package/src/modules/auth/components/guard.tsx +12 -0
  366. package/src/modules/auth/components/login-page.client.tsx +4 -3
  367. package/src/modules/auth/entry.client.ts +2 -0
  368. package/src/modules/auth/entry.ts +1 -0
  369. package/src/modules/auth/hooks/{use-permission.client.ts → use-permission.ts} +4 -2
  370. package/src/modules/auth/hooks/use-session.ts +18 -0
  371. package/src/modules/auth/lib/validators.ts +1 -1
  372. package/src/modules/commands/hooks/use-command-menu.client.tsx +6 -7
  373. package/src/modules/commands/menus/dropdown-menu.client.tsx +11 -2
  374. package/src/modules/commands/menus/inline-menu.client.tsx +14 -1
  375. package/src/modules/commands/menus/responsive-menu.client.tsx +11 -2
  376. package/src/modules/config/entry.server.ts +1 -2
  377. package/src/modules/config/entry.ts +3 -0
  378. package/src/modules/config/lib/config.server.ts +1 -2
  379. package/src/modules/config/lib/router.server.ts +64 -0
  380. package/src/modules/config/paths/helpers.ts +6 -0
  381. package/src/modules/config/paths/types.ts +26 -38
  382. package/src/modules/data-tables/components/filters/combobox.client.tsx +1 -1
  383. package/src/modules/data-tables/tables/inline-table/hooks/use-input.client.ts +1 -1
  384. package/src/modules/inline-edit/hooks/use-inline.client.tsx +1 -1
  385. package/dist/components/layouts/admin-layout.server.d.ts +0 -14
  386. package/dist/components/layouts/admin-layout.server.d.ts.map +0 -1
  387. package/dist/components/layouts/admin-layout.server.js +0 -26
  388. package/dist/components/layouts/admin-layout.server.js.map +0 -1
  389. package/dist/components/layouts/admin-sidebar-context.client.js +0 -28
  390. package/dist/components/layouts/admin-sidebar-context.client.js.map +0 -1
  391. package/dist/components/layouts/admin-sidebar-header.client.js.map +0 -1
  392. package/dist/components/layouts/admin-sidebar.client.js +0 -51
  393. package/dist/components/layouts/admin-sidebar.client.js.map +0 -1
  394. package/dist/modules/auth/hooks/use-permission.client.js.map +0 -1
  395. package/dist/modules/config/paths/create.server.d.ts +0 -14
  396. package/dist/modules/config/paths/create.server.d.ts.map +0 -1
  397. package/dist/modules/config/paths/create.server.js +0 -12
  398. package/dist/modules/config/paths/create.server.js.map +0 -1
  399. package/dist/modules/config/paths/get.server.js +0 -47
  400. package/dist/modules/config/paths/get.server.js.map +0 -1
  401. package/src/components/layouts/admin-layout.server.tsx +0 -31
  402. package/src/components/layouts/admin-sidebar-context.client.tsx +0 -34
  403. package/src/components/layouts/admin-sidebar.client.tsx +0 -88
  404. package/src/modules/config/paths/create.server.ts +0 -10
  405. package/src/modules/config/paths/get.server.ts +0 -69
@@ -1,5 +1,5 @@
1
1
  import { BreadcrumbSeparator } from "../ui/breadcrumb.js";
2
- import * as react_jsx_runtime37 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime252 from "react/jsx-runtime";
3
3
  import { PropsWithChildren } from "react";
4
4
 
5
5
  //#region src/components/header/breadcrumbs.client.d.ts
@@ -10,26 +10,26 @@ type HeaderBreadcrumb = {
10
10
  type HeaderBreadcrumbProps = {
11
11
  breadcrumbs: HeaderBreadcrumb[];
12
12
  };
13
- declare function HeaderBreadcrumbs(props: PropsWithChildren): react_jsx_runtime37.JSX.Element;
13
+ declare function HeaderBreadcrumbs(props: PropsWithChildren): react_jsx_runtime252.JSX.Element;
14
14
  declare const HeaderBreadcrumbSeparator: typeof BreadcrumbSeparator;
15
15
  /**
16
16
  * Dropdown menu
17
17
  */
18
- declare function HeaderBreadcrumbsDropdownMenu(props: PropsWithChildren): react_jsx_runtime37.JSX.Element;
18
+ declare function HeaderBreadcrumbsDropdownMenu(props: PropsWithChildren): react_jsx_runtime252.JSX.Element;
19
19
  declare function HeaderBreadcrumbsDropdownMenuItem(props: {
20
20
  breadcrumb: HeaderBreadcrumb;
21
- }): react_jsx_runtime37.JSX.Element;
21
+ }): react_jsx_runtime252.JSX.Element;
22
22
  /**
23
23
  * Links
24
24
  */
25
25
  declare function HeaderBreadcrumbsLink(props: {
26
26
  breadcrumb: HeaderBreadcrumb;
27
- }): react_jsx_runtime37.JSX.Element;
27
+ }): react_jsx_runtime252.JSX.Element;
28
28
  /**
29
29
  * Lists
30
30
  */
31
- declare function HeaderBreadcrumbsMobileList(props: PropsWithChildren): react_jsx_runtime37.JSX.Element;
32
- declare function HeaderBreadcrumbsDesktopList(props: PropsWithChildren): react_jsx_runtime37.JSX.Element;
31
+ declare function HeaderBreadcrumbsMobileList(props: PropsWithChildren): react_jsx_runtime252.JSX.Element;
32
+ declare function HeaderBreadcrumbsDesktopList(props: PropsWithChildren): react_jsx_runtime252.JSX.Element;
33
33
  //#endregion
34
34
  export { HeaderBreadcrumb, HeaderBreadcrumbProps, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList };
35
35
  //# sourceMappingURL=breadcrumbs.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumbs.client.d.ts","names":[],"sources":["../../../src/components/header/breadcrumbs.client.tsx"],"sourcesContent":[],"mappings":";;;;;KAmBY,gBAAA;;;AAAZ,CAAA;AAKY,KAAA,qBAAA,GAAqB;EAIjB,WAAA,EAHD,gBAGkB,EAAA;CAAA;AAAQ,iBAAzB,iBAAA,CAAyB,KAAA,EAAA,iBAAA,CAAA,EAAiB,mBAAA,CAAA,GAAA,CAAA,OAAjB;AAAiB,cAI7C,yBAJ6C,EAAA,OAIpB,mBAJoB;;AAI1D;AAKA;AAA6C,iBAA7B,6BAAA,CAA6B,KAAA,EAAQ,iBAAR,CAAA,EAAyB,mBAAA,CAAA,GAAA,CAAA,OAAzB;AAAQ,iBAarC,iCAAA,CAbqC,KAAA,EAAA;YAAiB,EAaC,gBAbD;CAAA,CAAA,EAamB,mBAAA,CAAA,GAAA,CAAA,OAbnB;AAatE;;;AAAyF,iBAezE,qBAAA,CAfyE,KAAA,EAAA;EAAA,UAAA,EAe9B,gBAf8B;AAezF,CAAA,CAAA,EAA6E,mBAAA,CAAA,GAAA,CAAA,OAAxC;;;;AAAwC,iBAmB7D,2BAAA,CAnB6D,KAAA,EAmB1B,iBAnB0B,CAAA,EAmBT,mBAAA,CAAA,GAAA,CAAA,OAnBS;AAmB7D,iBAQA,4BAAA,CAR2B,KAAA,EAQS,iBART,CAAA,EAQ0B,mBAAA,CAAA,GAAA,CAAA,OAR1B"}
1
+ {"version":3,"file":"breadcrumbs.client.d.ts","names":[],"sources":["../../../src/components/header/breadcrumbs.client.tsx"],"sourcesContent":[],"mappings":";;;;;KAmBY,gBAAA;;;AAAZ,CAAA;AAKY,KAAA,qBAAA,GAAqB;EAIjB,WAAA,EAHD,gBAGkB,EAAA;CAAA;AAAQ,iBAAzB,iBAAA,CAAyB,KAAA,EAAA,iBAAA,CAAA,EAAiB,oBAAA,CAAA,GAAA,CAAA,OAAjB;AAAiB,cAI7C,yBAJ6C,EAAA,OAIpB,mBAJoB;;AAI1D;AAKA;AAA6C,iBAA7B,6BAAA,CAA6B,KAAA,EAAQ,iBAAR,CAAA,EAAyB,oBAAA,CAAA,GAAA,CAAA,OAAzB;AAAQ,iBAarC,iCAAA,CAbqC,KAAA,EAAA;YAAiB,EAaC,gBAbD;CAAA,CAAA,EAamB,oBAAA,CAAA,GAAA,CAAA,OAbnB;AAatE;;;AAAyF,iBAezE,qBAAA,CAfyE,KAAA,EAAA;EAAA,UAAA,EAe9B,gBAf8B;AAezF,CAAA,CAAA,EAA6E,oBAAA,CAAA,GAAA,CAAA,OAAxC;;;;AAAwC,iBAmB7D,2BAAA,CAnB6D,KAAA,EAmB1B,iBAnB0B,CAAA,EAmBT,oBAAA,CAAA,GAAA,CAAA,OAnBS;AAmB7D,iBAQA,4BAAA,CAR2B,KAAA,EAQS,iBART,CAAA,EAQ0B,oBAAA,CAAA,GAAA,CAAA,OAR1B"}
@@ -1,5 +1,5 @@
1
- import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "../ui/breadcrumb.js";
2
1
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../ui/dropdown-menu.js";
2
+ import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "../ui/breadcrumb.js";
3
3
  import { ScrollArea } from "../ui/scroll-area.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import Link from "next/link";
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime43 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime258 from "react/jsx-runtime";
2
2
  import { ComponentProps } from "react";
3
3
 
4
4
  //#region src/components/header/header.client.d.ts
@@ -6,7 +6,7 @@ declare function Header({
6
6
  children,
7
7
  className,
8
8
  ...props
9
- }: ComponentProps<"header">): react_jsx_runtime43.JSX.Element;
9
+ }: ComponentProps<"header">): react_jsx_runtime258.JSX.Element;
10
10
  //#endregion
11
11
  export { Header };
12
12
  //# sourceMappingURL=header.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"header.client.d.ts","names":[],"sources":["../../../src/components/header/header.client.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,MAAA;;;;GAA0C,2BAAwB,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"header.client.d.ts","names":[],"sources":["../../../src/components/header/header.client.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,MAAA;;;;GAA0C,2BAAwB,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime44 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime259 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/header/mobile-nav-switcher.client.d.ts
4
4
  declare function HeaderTopbarMobileNavSwitcher({
5
5
  className,
6
6
  ...props
7
- }: React.HtmlHTMLAttributes<HTMLButtonElement>): react_jsx_runtime44.JSX.Element;
7
+ }: React.HtmlHTMLAttributes<HTMLButtonElement>): react_jsx_runtime259.JSX.Element;
8
8
  //#endregion
9
9
  export { HeaderTopbarMobileNavSwitcher };
10
10
  //# sourceMappingURL=mobile-nav-switcher.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-nav-switcher.client.d.ts","names":[],"sources":["../../../src/components/header/mobile-nav-switcher.client.tsx"],"sourcesContent":[],"mappings":";;;iBAKgB,6BAAA;;;GAGb,KAAA,CAAM,mBAAmB,qBAAkB,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"mobile-nav-switcher.client.d.ts","names":[],"sources":["../../../src/components/header/mobile-nav-switcher.client.tsx"],"sourcesContent":[],"mappings":";;;iBAKgB,6BAAA;;;GAGb,KAAA,CAAM,mBAAmB,qBAAkB,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { HeaderBreadcrumb } from "./breadcrumbs.client.js";
2
- import * as react_jsx_runtime45 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime261 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_runtime45.JSX.Element;
14
+ }: TopbarProps): react_jsx_runtime261.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_runtime45.JSX.Element;
29
+ }: TopbarTitleProps): react_jsx_runtime261.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_runtime45.JSX.Element;
40
+ }: TopbarToolsProps): react_jsx_runtime261.JSX.Element;
41
41
  //#endregion
42
42
  export { Topbar, TopbarProps, TopbarTitle, TopbarTitleProps, TopbarTools, TopbarToolsProps };
43
43
  //# sourceMappingURL=top-bar.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"top-bar.client.d.ts","names":[],"sources":["../../../src/components/header/top-bar.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAsBY,KAAA,WAAA,GAAW;EAIP,QAAA,EAHJ,KAAA,CAAM,SAGI;CAAA;AAAG,iBAAT,MAAA,CAAS;EAAA;AAAA,CAAA,EAAY,WAAZ,CAAA,EAAuB,mBAAA,CAAA,GAAA,CAAA,OAAvB;;;;AAab,KAAA,gBAAA,GAAmB,KAAA,CAAM,cAAT,CAAwB,WAAxB,CAAA,GAAA;EAAA,SAAA,CAAA,EAAA,OAAA;OAAwB,CAAA,EAE1C,KAAA,CAAM,SAFoC;aAAf,EAGtB,gBAHsB,EAAA;;AAGtB,iBAGC,WAAA,CAHD;EAAA,WAAA;EAAA,KAAA;EAAA,SAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EASZ,gBATY,CAAA,EASI,mBAAA,CAAA,GAAA,CAAA,OATJ;;AAGf;;AACE,KA0EU,gBAAA,GAAmB,KAAA,CAAM,cA1EnC,CA0EkD,WA1ElD,CAAA,GAAA;UACA,EA0EU,KAAA,CAAM,SA1EhB;;AAEA,iBA2Ec,WAAA,CA3Ed;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2E6D,gBA3E7D,CAAA,EA2E6E,mBAAA,CAAA,GAAA,CAAA,OA3E7E"}
1
+ {"version":3,"file":"top-bar.client.d.ts","names":[],"sources":["../../../src/components/header/top-bar.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAsBY,KAAA,WAAA,GAAW;EAIP,QAAA,EAHJ,KAAA,CAAM,SAGI;CAAA;AAAG,iBAAT,MAAA,CAAS;EAAA;AAAA,CAAA,EAAY,WAAZ,CAAA,EAAuB,oBAAA,CAAA,GAAA,CAAA,OAAvB;;;;AAab,KAAA,gBAAA,GAAmB,KAAA,CAAM,cAAT,CAAwB,WAAxB,CAAA,GAAA;EAAA,SAAA,CAAA,EAAA,OAAA;OAAwB,CAAA,EAE1C,KAAA,CAAM,SAFoC;aAAf,EAGtB,gBAHsB,EAAA;;AAGtB,iBAGC,WAAA,CAHD;EAAA,WAAA;EAAA,KAAA;EAAA,SAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EASZ,gBATY,CAAA,EASI,oBAAA,CAAA,GAAA,CAAA,OATJ;;AAGf;;AACE,KA0EU,gBAAA,GAAmB,KAAA,CAAM,cA1EnC,CA0EkD,WA1ElD,CAAA,GAAA;UACA,EA0EU,KAAA,CAAM,SA1EhB;;AAEA,iBA2Ec,WAAA,CA3Ed;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2E6D,gBA3E7D,CAAA,EA2E6E,oBAAA,CAAA,GAAA,CAAA,OA3E7E"}
@@ -0,0 +1,13 @@
1
+ import { ScrollArea } from "../ui/scroll-area.js";
2
+ import * as react_jsx_runtime264 from "react/jsx-runtime";
3
+ import { ComponentProps } from "react";
4
+
5
+ //#region src/components/layouts/admin-content.client.d.ts
6
+ declare function AdminContent({
7
+ children,
8
+ className,
9
+ ...props
10
+ }: ComponentProps<typeof ScrollArea>): react_jsx_runtime264.JSX.Element;
11
+ //#endregion
12
+ export { AdminContent };
13
+ //# sourceMappingURL=admin-content.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-content.client.d.ts","names":[],"sources":["../../../src/components/layouts/admin-content.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOgB,YAAA;;;;GAAgD,sBAAsB,cAAW,oBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime375 from "react/jsx-runtime";
2
+ import { PropsWithChildren } from "react";
3
+
4
+ //#region src/components/layouts/admin-layout.d.ts
5
+ declare function AdminLayout(props: PropsWithChildren): react_jsx_runtime375.JSX.Element;
6
+ //#endregion
7
+ export { AdminLayout };
8
+ //# sourceMappingURL=admin-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-layout.d.ts","names":[],"sources":["../../../src/components/layouts/admin-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAIgB,WAAA,QAAmB,oBAAiB,oBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { SidebarProvider } from "../ui/sidebar.client.js";
2
+ import { AuthGuard } from "../../modules/auth/components/guard.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+
5
+ //#region src/components/layouts/admin-layout.tsx
6
+ function AdminLayout(props) {
7
+ return /* @__PURE__ */ jsx(AuthGuard, { children: /* @__PURE__ */ jsx(SidebarProvider, {
8
+ className: "max-h-[100dvh] overflow-hidden border",
9
+ children: props.children
10
+ }) });
11
+ }
12
+
13
+ //#endregion
14
+ export { AdminLayout };
15
+ //# sourceMappingURL=admin-layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-layout.js","names":[],"sources":["../../../src/components/layouts/admin-layout.tsx"],"sourcesContent":["import { AuthGuard } from \"@/modules/auth/components/guard\";\nimport { PropsWithChildren } from \"react\";\nimport { SidebarProvider } from \"../entry.client\";\n\nexport function AdminLayout(props: PropsWithChildren) {\n return (\n <AuthGuard>\n <SidebarProvider className=\"max-h-[100dvh] overflow-hidden border\">\n {props.children}\n </SidebarProvider>\n </AuthGuard>\n );\n}\n"],"mappings":";;;;;AAIA,SAAgB,YAAY,OAA0B;AACpD,QACE,oBAAC,uBACC,oBAAC;EAAgB,WAAU;YACxB,MAAM;GACS,GACR"}
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime230 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime32 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 AdminLoading(props: PropsWithChildren): react_jsx_runtime230.JSX.Element;
5
+ declare function AdminLoadingLayout(props: PropsWithChildren): react_jsx_runtime32.JSX.Element;
6
6
  //#endregion
7
- export { AdminLoading };
7
+ export { AdminLoadingLayout };
8
8
  //# sourceMappingURL=admin-loading.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin-loading.d.ts","names":[],"sources":["../../../src/components/layouts/admin-loading.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,YAAA,QAAoB,oBAAiB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"admin-loading.d.ts","names":[],"sources":["../../../src/components/layouts/admin-loading.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,kBAAA,QAA0B,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
@@ -2,7 +2,7 @@ import { Skeleton } from "../ui/skeleton.js";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/layouts/admin-loading.tsx
5
- function AdminLoading(props) {
5
+ function AdminLoadingLayout(props) {
6
6
  return /* @__PURE__ */ jsxs("div", {
7
7
  className: "h-dvh",
8
8
  children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-[var(--header-top-bar-height)] w-full rounded-none border-b" }), props.children]
@@ -10,5 +10,5 @@ function AdminLoading(props) {
10
10
  }
11
11
 
12
12
  //#endregion
13
- export { AdminLoading };
13
+ export { AdminLoadingLayout };
14
14
  //# sourceMappingURL=admin-loading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin-loading.js","names":[],"sources":["../../../src/components/layouts/admin-loading.tsx"],"sourcesContent":["import { PropsWithChildren } from \"react\";\nimport { Skeleton } from \"../ui/skeleton\";\n\nexport function AdminLoading(props: PropsWithChildren) {\n return (\n <div className=\"h-dvh\">\n <Skeleton className=\"h-[var(--header-top-bar-height)] w-full rounded-none border-b\" />\n {props.children}\n </div>\n );\n}\n"],"mappings":";;;;AAGA,SAAgB,aAAa,OAA0B;AACrD,QACE,qBAAC;EAAI,WAAU;aACb,oBAAC,YAAS,WAAU,kEAAkE,EACrF,MAAM;GACH"}
1
+ {"version":3,"file":"admin-loading.js","names":[],"sources":["../../../src/components/layouts/admin-loading.tsx"],"sourcesContent":["import { PropsWithChildren } from \"react\";\nimport { Skeleton } from \"../ui/skeleton\";\n\nexport function AdminLoadingLayout(props: PropsWithChildren) {\n return (\n <div className=\"h-dvh\">\n <Skeleton className=\"h-[var(--header-top-bar-height)] w-full rounded-none border-b\" />\n {props.children}\n </div>\n );\n}\n"],"mappings":";;;;AAGA,SAAgB,mBAAmB,OAA0B;AAC3D,QACE,qBAAC;EAAI,WAAU;aACb,oBAAC,YAAS,WAAU,kEAAkE,EACrF,MAAM;GACH"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime231 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime33 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_runtime231.JSX.Element;
18
+ }: ComponentProps<"div">): react_jsx_runtime33.JSX.Element;
19
19
  declare function EmptyPageTitle({
20
20
  className,
21
21
  children,
22
22
  ...props
23
- }: ComponentProps<"h2">): react_jsx_runtime231.JSX.Element;
23
+ }: ComponentProps<"h2">): react_jsx_runtime33.JSX.Element;
24
24
  declare function EmptyPageDescription({
25
25
  className,
26
26
  children,
27
27
  ...props
28
- }: ComponentProps<"p">): react_jsx_runtime231.JSX.Element;
28
+ }: ComponentProps<"p">): react_jsx_runtime33.JSX.Element;
29
29
  //#endregion
30
30
  export { EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle };
31
31
  //# sourceMappingURL=empty-page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty-page.d.ts","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":[],"mappings":";;;;;KAIY,cAAA,GAAiB,eAAe;;;EAAhC,YAAA,CAAA,EAAA;IAAc,IAAA,EAIhB,KAJgB;IAAkB,KAAA,EAAA,MAAA;;;AAI7B,iBAKC,SAAA,CALD;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAK8C,cAL9C,CAAA,KAAA,CAAA,CAAA,EAKmE,oBAAA,CAAA,GAAA,CAAA,OALnE;AAKC,iBAcA,cAAA,CAdS;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAcyC,cAdzC,CAAA,IAAA,CAAA,CAAA,EAc6D,oBAAA,CAAA,GAAA,CAAA,OAd7D;AAAA,iBAsBT,oBAAA,CAtBS;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAsB+C,cAtB/C,CAAA,GAAA,CAAA,CAAA,EAsBkE,oBAAA,CAAA,GAAA,CAAA,OAtBlE"}
1
+ {"version":3,"file":"empty-page.d.ts","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":[],"mappings":";;;;;KAIY,cAAA,GAAiB,eAAe;;;EAAhC,YAAA,CAAA,EAAA;IAAc,IAAA,EAIhB,KAJgB;IAAkB,KAAA,EAAA,MAAA;;;AAI7B,iBAKC,SAAA,CALD;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAK8C,cAL9C,CAAA,KAAA,CAAA,CAAA,EAKmE,mBAAA,CAAA,GAAA,CAAA,OALnE;AAKC,iBAcA,cAAA,CAdS;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAcyC,cAdzC,CAAA,IAAA,CAAA,CAAA,EAc6D,mBAAA,CAAA,GAAA,CAAA,OAd7D;AAAA,iBAsBT,oBAAA,CAtBS;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAsB+C,cAtB/C,CAAA,GAAA,CAAA,CAAA,EAsBkE,mBAAA,CAAA,GAAA,CAAA,OAtBlE"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime234 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime36 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_runtime234.JSX.Element;
9
+ }: ComponentProps<"div">): react_jsx_runtime36.JSX.Element;
10
10
  //#endregion
11
11
  export { ListLayout };
12
12
  //# sourceMappingURL=list-layout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-layout.d.ts","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.ts","names":[],"sources":["../../../src/components/layouts/list-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,UAAA;;;;GAA8C,wBAAqB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime235 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime37 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/layouts/not-found-page.d.ts
4
- declare function NotFoundPage(): react_jsx_runtime235.JSX.Element;
4
+ declare function NotFoundPage(): react_jsx_runtime37.JSX.Element;
5
5
  //#endregion
6
6
  export { NotFoundPage };
7
7
  //# sourceMappingURL=not-found-page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"not-found-page.d.ts","names":[],"sources":["../../../src/components/layouts/not-found-page.tsx"],"sourcesContent":[],"mappings":";;;iBAEgB,YAAA,CAAA,GAAY,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"not-found-page.d.ts","names":[],"sources":["../../../src/components/layouts/not-found-page.tsx"],"sourcesContent":[],"mappings":";;;iBAEgB,YAAA,CAAA,GAAY,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime48 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime265 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_runtime48.JSX.Element;
7
+ }: PropsWithChildren): react_jsx_runtime265.JSX.Element;
8
8
  //#endregion
9
9
  export { Providers };
10
10
  //# sourceMappingURL=providers.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"providers.client.d.ts","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.ts","names":[],"sources":["../../../src/components/layouts/providers.client.tsx"],"sourcesContent":[],"mappings":";;;;iBAWgB,SAAA;;GAAwB,oBAAiB,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { TDatabaseSchema } from "../../modules/config/db/types.js";
2
2
  import { TulipConfig } from "../../modules/config/lib/config.server.js";
3
- import * as react_jsx_runtime6 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime260 from "react/jsx-runtime";
4
4
  import { PropsWithChildren } from "react";
5
5
  import "server-cli-only";
6
6
 
@@ -32,7 +32,7 @@ declare const generateRootLayoutMetadata: <TSchema extends TDatabaseSchema>(conf
32
32
  */
33
33
  declare function RootLayout({
34
34
  children
35
- }: PropsWithChildren): react_jsx_runtime6.JSX.Element;
35
+ }: PropsWithChildren): react_jsx_runtime260.JSX.Element;
36
36
  //#endregion
37
37
  export { RootLayout, generateRootLayoutMetadata };
38
38
  //# sourceMappingURL=root-layout.server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"root-layout.server.d.ts","names":[],"sources":["../../../src/components/layouts/root-layout.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AAYa,cAAA,0BA0BX,EAAA,CAAA,gBA1ByD,eA0BzD,CAAA,CAAA,MAAA,EAzBQ,WAyBR,CAzBoB,OAyBpB,CAAA,EAAA,GAAA;EAAA,QAAA,EAAA;IA1ByD,KAAA,EAAA,MAAA;IACrC,WAAA,EAAA,MAAA;IAAZ,WAAA,EAAA;MAAW,OAAA,EAAA,IAAA;MA8BL,cAAU,EAAA,mBAAA;MAAA,KAAA,EAAA,MAAA;IAAG,CAAA;;UAA6B,EAAA;IAAA,KAAA,EAAA,MAAA;;;;;;;;;;;iBAA1C,UAAA;;GAAyB,oBAAiB,kBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"root-layout.server.d.ts","names":[],"sources":["../../../src/components/layouts/root-layout.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AAYa,cAAA,0BA0BX,EAAA,CAAA,gBA1ByD,eA0BzD,CAAA,CAAA,MAAA,EAzBQ,WAyBR,CAzBoB,OAyBpB,CAAA,EAAA,GAAA;EAAA,QAAA,EAAA;IA1ByD,KAAA,EAAA,MAAA;IACrC,WAAA,EAAA,MAAA;IAAZ,WAAA,EAAA;MAAW,OAAA,EAAA,IAAA;MA8BL,cAAU,EAAA,mBAAA;MAAA,KAAA,EAAA,MAAA;IAAG,CAAA;;UAA6B,EAAA;IAAA,KAAA,EAAA,MAAA;;;;;;;;;;;iBAA1C,UAAA;;GAAyB,oBAAiB,oBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime38 from "react/jsx-runtime";
2
+
3
+ //#region src/components/layouts/root-loading.d.ts
4
+ declare function RootLoading(): react_jsx_runtime38.JSX.Element;
5
+ //#endregion
6
+ export { RootLoading };
7
+ //# sourceMappingURL=root-loading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-loading.d.ts","names":[],"sources":["../../../src/components/layouts/root-loading.tsx"],"sourcesContent":[],"mappings":";;;iBAEgB,WAAA,CAAA,GAAW,mBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { Spinner } from "../ui/spinner.js";
2
+ import { jsx } from "react/jsx-runtime";
3
+
4
+ //#region src/components/layouts/root-loading.tsx
5
+ function RootLoading() {
6
+ return /* @__PURE__ */ jsx("div", {
7
+ className: "grid h-dvh w-full place-items-center",
8
+ children: /* @__PURE__ */ jsx(Spinner, {})
9
+ });
10
+ }
11
+
12
+ //#endregion
13
+ export { RootLoading };
14
+ //# sourceMappingURL=root-loading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-loading.js","names":[],"sources":["../../../src/components/layouts/root-loading.tsx"],"sourcesContent":["import { Spinner } from \"../ui/spinner\";\n\nexport function RootLoading() {\n return (\n <div className=\"grid h-dvh w-full place-items-center\">\n <Spinner />\n </div>\n );\n}\n"],"mappings":";;;;AAEA,SAAgB,cAAc;AAC5B,QACE,oBAAC;EAAI,WAAU;YACb,oBAAC,YAAU;GACP"}
@@ -1,5 +1,5 @@
1
1
  import { Permission } from "../../modules/auth/lib/permissions.js";
2
- import * as react_jsx_runtime236 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime39 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_runtime236.JSX.Element;
20
+ }: TabLayoutProps): react_jsx_runtime39.JSX.Element;
21
21
  //#endregion
22
22
  export { Tab, TabLayout, TabLayoutProps };
23
23
  //# sourceMappingURL=tab-layout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-layout.d.ts","names":[],"sources":["../../../src/components/layouts/tab-layout.tsx"],"sourcesContent":[],"mappings":";;;;;KAUY,GAAA;;QAEJ;EAFI,OAAG,EAAA,MAAA;EAAA,IAAA,CAAA,EAIN,KAAA,CAAM,SAJA;YAEP,CAAA,EAGO,UAHP;;AAGO,KAGH,cAAA,GAHG;EAAU,IAAA,EAIjB,GAJiB,EAAA;EAGb,QAAA,EAEA,KAAA,CAAM,SAFQ;CAAA;AAClB,iBAIQ,SAAA,CAJR;EAAA,IAAA;EAAA;AAAA,CAAA,EAIsC,cAJtC,CAAA,EAIoD,oBAAA,CAAA,GAAA,CAAA,OAJpD"}
1
+ {"version":3,"file":"tab-layout.d.ts","names":[],"sources":["../../../src/components/layouts/tab-layout.tsx"],"sourcesContent":[],"mappings":";;;;;KAUY,GAAA;;QAEJ;EAFI,OAAG,EAAA,MAAA;EAAA,IAAA,CAAA,EAIN,KAAA,CAAM,SAJA;YAEP,CAAA,EAGO,UAHP;;AAGO,KAGH,cAAA,GAHG;EAAU,IAAA,EAIjB,GAJiB,EAAA;EAGb,QAAA,EAEA,KAAA,CAAM,SAFQ;CAAA;AAClB,iBAIQ,SAAA,CAJR;EAAA,IAAA;EAAA;AAAA,CAAA,EAIsC,cAJtC,CAAA,EAIoD,mBAAA,CAAA,GAAA,CAAA,OAJpD"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime237 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime40 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/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_runtime237.JSX.Element;
10
+ }: DataListProps): react_jsx_runtime40.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_runtime237.JSX.Element;
16
+ }: DataListItemProps): react_jsx_runtime40.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_runtime237.JSX.Element;
22
+ }: DataListTitleProps): react_jsx_runtime40.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_runtime237.JSX.Element;
28
+ }: DataListValueProps): react_jsx_runtime40.JSX.Element;
29
29
  //#endregion
30
30
  export { DataList, DataListItem, DataListItemProps, DataListProps, DataListTitle, DataListTitleProps, DataListValue, DataListValueProps };
31
31
  //# sourceMappingURL=data-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-list.d.ts","names":[],"sources":["../../../src/components/lists/data-list.tsx"],"sourcesContent":[],"mappings":";;;;KAGY,aAAA,GAAgB,KAAA,CAAM,eAAe;iBAEjC,QAAA;;;;GAA4C,gBAAa,oBAAA,CAAA,GAAA,CAAA;KAQ7D,iBAAA,GAAoB,KAAA,CAAM,eAAe;AAVzC,iBAYI,YAAA,CAZS;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAYuC,iBAZvC,CAAA,EAYwD,oBAAA,CAAA,GAAA,CAAA,OAZxD;AAAA,KA0Bb,kBAAA,GAAqB,KAAA,CAAM,cA1Bd,CA0B6B,WA1B7B,CAAA;AAAwB,iBA4BjC,aAAA,CA5BiC;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA4BgB,kBA5BhB,CAAA,EA4BkC,oBAAA,CAAA,GAAA,CAAA,OA5BlC;AAArB,KAoChB,kBAAA,GAAqB,KAAA,CAAM,cApCL,CAoCoB,WApCpB,CAAA;AAAc,iBAsChC,aAAA,CAtCgC;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsCiB,kBAtCjB,CAAA,EAsCmC,oBAAA,CAAA,GAAA,CAAA,OAtCnC"}
1
+ {"version":3,"file":"data-list.d.ts","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,eAAe;AAVzC,iBAYI,YAAA,CAZS;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAYuC,iBAZvC,CAAA,EAYwD,mBAAA,CAAA,GAAA,CAAA,OAZxD;AAAA,KA0Bb,kBAAA,GAAqB,KAAA,CAAM,cA1Bd,CA0B6B,WA1B7B,CAAA;AAAwB,iBA4BjC,aAAA,CA5BiC;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA4BgB,kBA5BhB,CAAA,EA4BkC,mBAAA,CAAA,GAAA,CAAA,OA5BlC;AAArB,KAoChB,kBAAA,GAAqB,KAAA,CAAM,cApCL,CAoCoB,WApCpB,CAAA;AAAc,iBAsChC,aAAA,CAtCgC;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsCiB,kBAtCjB,CAAA,EAsCmC,mBAAA,CAAA,GAAA,CAAA,OAtCnC"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime241 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime44 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_runtime241.JSX.Element;
10
+ }: DataStackGridProps): react_jsx_runtime44.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_runtime241.JSX.Element;
16
+ }: DataStackLayoutProps): react_jsx_runtime44.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_runtime241.JSX.Element;
22
+ }: DataStackRowProps): react_jsx_runtime44.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_runtime241.JSX.Element;
28
+ }: DataStackRowProps): react_jsx_runtime44.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_runtime241.JSX.Element;
34
+ }: DataStackProps): react_jsx_runtime44.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_runtime241.JSX.Element;
40
+ }: DataStackTitleProps): react_jsx_runtime44.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_runtime241.JSX.Element;
46
+ }: DataStackValueProps): react_jsx_runtime44.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.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-stack.d.ts","names":[],"sources":["../../../src/components/lists/data-stack.tsx"],"sourcesContent":[],"mappings":";;;;KAGY,kBAAA,GAAqB,KAAA,CAAM,eAAe;iBAEtC,aAAA;;;;GAAiD,qBAAkB,oBAAA,CAAA,GAAA,CAAA;KAQvE,oBAAA,GAAuB,KAAA,CAAM,eAAe;AAV5C,iBAYI,eAAA,CAZc;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAYqC,oBAZrC,CAAA,EAYyD,oBAAA,CAAA,GAAA,CAAA,OAZzD;AAAA,KAoBlB,iBAAA,GAAoB,KAAA,CAAM,cApBR,CAoBuB,WApBvB,CAAA;AAAwB,iBAsBtC,YAAA,CAtBsC;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsBU,iBAtBV,CAAA,EAsB2B,oBAAA,CAAA,GAAA,CAAA,OAtB3B;AAArB,KA6BrB,oBAAA,GAAuB,KAAA,CAAM,cA7BF,CA6BiB,WA7BjB,CAAA;AAAc,iBA+BrC,eAAA,CA/BqC;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+Bc,iBA/Bd,CAAA,EA+B+B,oBAAA,CAAA,GAAA,CAAA,OA/B/B;AAErC,KAqCJ,cAAA,GAAiB,KAAA,CAAM,cArCN,CAqCqB,gBArCrB,CAAA;AAAA,iBAuCb,SAAA,CAvCa;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuCgC,cAvChC,CAAA,EAuC8C,oBAAA,CAAA,GAAA,CAAA,OAvC9C;AAAG,KA+CpB,mBAAA,GAAsB,KAAA,CAAM,cA/CR,CA+CuB,WA/CvB,CAAA;AAAU,iBAiD1B,cAAA,CAjD0B;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiDwB,mBAjDxB,CAAA,EAiD2C,oBAAA,CAAA,GAAA,CAAA,OAjD3C;AAAuB,KAyDrD,mBAAA,GAAsB,KAAA,CAAM,cAzDyB,CAyDV,WAzDU,CAAA;AAAkB,iBA2DnE,cAAA,CA3DmE;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2DjB,mBA3DiB,CAAA,EA2DE,oBAAA,CAAA,GAAA,CAAA,OA3DF"}
1
+ {"version":3,"file":"data-stack.d.ts","names":[],"sources":["../../../src/components/lists/data-stack.tsx"],"sourcesContent":[],"mappings":";;;;KAGY,kBAAA,GAAqB,KAAA,CAAM,eAAe;iBAEtC,aAAA;;;;GAAiD,qBAAkB,mBAAA,CAAA,GAAA,CAAA;KAQvE,oBAAA,GAAuB,KAAA,CAAM,eAAe;AAV5C,iBAYI,eAAA,CAZc;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAYqC,oBAZrC,CAAA,EAYyD,mBAAA,CAAA,GAAA,CAAA,OAZzD;AAAA,KAoBlB,iBAAA,GAAoB,KAAA,CAAM,cApBR,CAoBuB,WApBvB,CAAA;AAAwB,iBAsBtC,YAAA,CAtBsC;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsBU,iBAtBV,CAAA,EAsB2B,mBAAA,CAAA,GAAA,CAAA,OAtB3B;AAArB,KA6BrB,oBAAA,GAAuB,KAAA,CAAM,cA7BF,CA6BiB,WA7BjB,CAAA;AAAc,iBA+BrC,eAAA,CA/BqC;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+Bc,iBA/Bd,CAAA,EA+B+B,mBAAA,CAAA,GAAA,CAAA,OA/B/B;AAErC,KAqCJ,cAAA,GAAiB,KAAA,CAAM,cArCN,CAqCqB,gBArCrB,CAAA;AAAA,iBAuCb,SAAA,CAvCa;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuCgC,cAvChC,CAAA,EAuC8C,mBAAA,CAAA,GAAA,CAAA,OAvC9C;AAAG,KA+CpB,mBAAA,GAAsB,KAAA,CAAM,cA/CR,CA+CuB,WA/CvB,CAAA;AAAU,iBAiD1B,cAAA,CAjD0B;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiDwB,mBAjDxB,CAAA,EAiD2C,mBAAA,CAAA,GAAA,CAAA,OAjD3C;AAAuB,KAyDrD,mBAAA,GAAsB,KAAA,CAAM,cAzDyB,CAyDV,WAzDU,CAAA;AAAkB,iBA2DnE,cAAA,CA3DmE;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2DjB,mBA3DiB,CAAA,EA2DE,mBAAA,CAAA,GAAA,CAAA,OA3DF"}
@@ -5,21 +5,20 @@ import { cn } from "../../lib/utils/cn.js";
5
5
  import { Button } from "../ui/button.js";
6
6
  import { authClient } from "../../modules/auth/handler/client.client.js";
7
7
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "../ui/dropdown-menu.js";
8
- import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar.client.js";
8
+ import { useSession } from "../../modules/auth/hooks/use-session.js";
9
9
  import { SidebarHeader, useSidebar } from "../ui/sidebar.client.js";
10
- import { AdminSidebarContext } from "./admin-sidebar-context.client.js";
10
+ import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar.client.js";
11
11
  import { ChevronsUpDownIcon, LaptopIcon, LogOutIcon, MoonIcon, SunIcon } from "lucide-react";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
- import { useContext } from "react";
14
13
  import { useRouter } from "next/navigation";
15
14
  import { useTheme } from "next-themes";
16
15
 
17
- //#region src/components/layouts/admin-sidebar-header.client.tsx
16
+ //#region src/components/navigation/admin-sidebar-header.client.tsx
18
17
  function AdminSidebarHeader() {
19
18
  const router = useRouter();
20
19
  const { theme, setTheme } = useTheme();
21
20
  const { setOpenMobile } = useSidebar();
22
- const { session } = useContext(AdminSidebarContext);
21
+ const sessionQuery = useSession();
23
22
  return /* @__PURE__ */ jsx(SidebarHeader, { children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
24
23
  asChild: true,
25
24
  children: /* @__PURE__ */ jsxs(Button, {
@@ -30,12 +29,12 @@ function AdminSidebarHeader() {
30
29
  children: [/* @__PURE__ */ jsxs(Avatar, {
31
30
  className: "h-6 w-6 text-sm",
32
31
  children: [/* @__PURE__ */ jsx(AvatarImage, {
33
- src: session.user.image ?? void 0,
34
- alt: session.user.name
35
- }), /* @__PURE__ */ jsx(AvatarFallback, { children: session.user.name?.[0] ?? "" })]
32
+ src: sessionQuery.data?.user.image ?? void 0,
33
+ alt: sessionQuery.data?.user.name
34
+ }), /* @__PURE__ */ jsx(AvatarFallback, { children: sessionQuery.data?.user.name?.[0] ?? "" })]
36
35
  }), /* @__PURE__ */ jsx("span", {
37
36
  className: "text-md text-muted-foreground font-bold",
38
- children: session.user.name
37
+ children: sessionQuery.data?.user.name
39
38
  })]
40
39
  }), /* @__PURE__ */ jsx(ChevronsUpDownIcon, { className: "text-muted-foreground h-4 w-4" })]
41
40
  })
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-sidebar-header.client.js","names":[],"sources":["../../../src/components/navigation/admin-sidebar-header.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar.client\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\nimport { cn } from \"@/lib/utils/cn\";\nimport { authClient } from \"@/modules/auth/handler/client.client\";\nimport { useSession } from \"@/modules/auth/hooks/use-session\";\nimport { ChevronsUpDownIcon, LaptopIcon, LogOutIcon, MoonIcon, SunIcon } from \"lucide-react\";\nimport { useTheme } from \"next-themes\";\nimport { useRouter } from \"next/navigation\";\nimport { SidebarHeader, useSidebar } from \"../entry.client\";\n\nexport function AdminSidebarHeader() {\n const router = useRouter();\n const { theme, setTheme } = useTheme();\n\n const { setOpenMobile } = useSidebar();\n\n const sessionQuery = useSession();\n\n return (\n <SidebarHeader>\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button variant=\"outline\" className=\"items-center justify-between py-3.5\">\n <div className=\"flex items-center gap-4\">\n <Avatar className=\"h-6 w-6 text-sm\">\n <AvatarImage\n src={sessionQuery.data?.user.image ?? undefined}\n alt={sessionQuery.data?.user.name}\n />\n <AvatarFallback>{sessionQuery.data?.user.name?.[0] ?? \"\"}</AvatarFallback>\n </Avatar>\n <span className=\"text-md text-muted-foreground font-bold\">\n {sessionQuery.data?.user.name}\n </span>\n </div>\n\n <ChevronsUpDownIcon className=\"text-muted-foreground h-4 w-4\" />\n </Button>\n </DropdownMenuTrigger>\n\n <DropdownMenuContent className=\"w-44\">\n <DropdownMenuSub>\n <DropdownMenuSubTrigger>\n <span>Thema</span>\n </DropdownMenuSubTrigger>\n\n <DropdownMenuSubContent>\n <DropdownMenuItem\n className={cn(theme === \"light\" && \"bg-secondary font-bold\")}\n onClick={() => setTheme(\"light\")}\n >\n <SunIcon className=\"mr-2 h-4 w-4\" />\n <span>Light</span>\n </DropdownMenuItem>\n\n <DropdownMenuItem\n className={cn(theme === \"dark\" && \"bg-secondary font-bold\")}\n onClick={() => setTheme(\"dark\")}\n >\n <MoonIcon className=\"mr-2 h-4 w-4\" />\n <span>Dark</span>\n </DropdownMenuItem>\n\n <DropdownMenuItem\n className={cn(theme === \"system\" && \"bg-secondary font-bold\")}\n onClick={() => setTheme(\"system\")}\n >\n <LaptopIcon className=\"mr-2 h-4 w-4\" />\n <span>System</span>\n </DropdownMenuItem>\n </DropdownMenuSubContent>\n </DropdownMenuSub>\n\n <DropdownMenuSeparator />\n\n <DropdownMenuItem\n onClick={() => {\n setOpenMobile(false);\n authClient.signOut({\n fetchOptions: { onSuccess: () => router.replace(\"/auth/login\") },\n });\n }}\n >\n <LogOutIcon className=\"mr-2 h-4 w-4\" />\n <span>Log out</span>\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </SidebarHeader>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAsBA,SAAgB,qBAAqB;CACnC,MAAM,SAAS,WAAW;CAC1B,MAAM,EAAE,OAAO,aAAa,UAAU;CAEtC,MAAM,EAAE,kBAAkB,YAAY;CAEtC,MAAM,eAAe,YAAY;AAEjC,QACE,oBAAC,2BACC,qBAAC,2BACC,oBAAC;EAAoB;YACnB,qBAAC;GAAO,SAAQ;GAAU,WAAU;cAClC,qBAAC;IAAI,WAAU;eACb,qBAAC;KAAO,WAAU;gBAChB,oBAAC;MACC,KAAK,aAAa,MAAM,KAAK,SAAS;MACtC,KAAK,aAAa,MAAM,KAAK;OAC7B,EACF,oBAAC,4BAAgB,aAAa,MAAM,KAAK,OAAO,MAAM,KAAoB;MACnE,EACT,oBAAC;KAAK,WAAU;eACb,aAAa,MAAM,KAAK;MACpB;KACH,EAEN,oBAAC,sBAAmB,WAAU,kCAAkC;IACzD;GACW,EAEtB,qBAAC;EAAoB,WAAU;;GAC7B,qBAAC,8BACC,oBAAC,oCACC,oBAAC,oBAAK,UAAY,GACK,EAEzB,qBAAC;IACC,qBAAC;KACC,WAAW,GAAG,UAAU,WAAW,yBAAyB;KAC5D,eAAe,SAAS,QAAQ;gBAEhC,oBAAC,WAAQ,WAAU,iBAAiB,EACpC,oBAAC,oBAAK,UAAY;MACD;IAEnB,qBAAC;KACC,WAAW,GAAG,UAAU,UAAU,yBAAyB;KAC3D,eAAe,SAAS,OAAO;gBAE/B,oBAAC,YAAS,WAAU,iBAAiB,EACrC,oBAAC,oBAAK,SAAW;MACA;IAEnB,qBAAC;KACC,WAAW,GAAG,UAAU,YAAY,yBAAyB;KAC7D,eAAe,SAAS,SAAS;gBAEjC,oBAAC,cAAW,WAAU,iBAAiB,EACvC,oBAAC,oBAAK,WAAa;MACF;OACI,IACT;GAElB,oBAAC,0BAAwB;GAEzB,qBAAC;IACC,eAAe;AACb,mBAAc,MAAM;AACpB,gBAAW,QAAQ,EACjB,cAAc,EAAE,iBAAiB,OAAO,QAAQ,cAAc,EAAE,EACjE,CAAC;;eAGJ,oBAAC,cAAW,WAAU,iBAAiB,EACvC,oBAAC,oBAAK,YAAc;KACH;;GACC,IACT,GACD"}