@tulip-systems/core 0.2.1 → 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 (396) 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/fixed-menu.client.d.ts +2 -2
  17. package/dist/components/editor/context.client.d.ts +4 -4
  18. package/dist/components/editor/context.client.d.ts.map +1 -1
  19. package/dist/components/editor/index.client.d.ts +2 -2
  20. package/dist/components/editor/preview.client.d.ts +2 -2
  21. package/dist/components/header/back-button.client.d.ts +2 -2
  22. package/dist/components/header/bottom-bar.client.d.ts +5 -5
  23. package/dist/components/header/bottom-bar.client.d.ts.map +1 -1
  24. package/dist/components/header/bottom-bar.client.js.map +1 -1
  25. package/dist/components/header/breadcrumbs.client.d.ts +7 -7
  26. package/dist/components/header/breadcrumbs.client.js +1 -1
  27. package/dist/components/header/header.client.d.ts +2 -2
  28. package/dist/components/header/mobile-nav-switcher.client.d.ts +2 -2
  29. package/dist/components/header/top-bar.client.d.ts +4 -4
  30. package/dist/components/layouts/admin-content.client.d.ts +13 -0
  31. package/dist/components/layouts/admin-content.client.d.ts.map +1 -0
  32. package/dist/components/layouts/admin-layout.d.ts +8 -0
  33. package/dist/components/layouts/admin-layout.d.ts.map +1 -0
  34. package/dist/components/layouts/admin-layout.js +15 -0
  35. package/dist/components/layouts/admin-layout.js.map +1 -0
  36. package/dist/components/layouts/admin-loading.d.ts +3 -3
  37. package/dist/components/layouts/admin-loading.d.ts.map +1 -1
  38. package/dist/components/layouts/admin-loading.js +2 -2
  39. package/dist/components/layouts/admin-loading.js.map +1 -1
  40. package/dist/components/layouts/empty-page.d.ts +4 -4
  41. package/dist/components/layouts/empty-page.d.ts.map +1 -1
  42. package/dist/components/layouts/list-layout.d.ts +2 -2
  43. package/dist/components/layouts/list-layout.d.ts.map +1 -1
  44. package/dist/components/layouts/not-found-page.d.ts +2 -2
  45. package/dist/components/layouts/not-found-page.d.ts.map +1 -1
  46. package/dist/components/layouts/providers.client.d.ts +2 -2
  47. package/dist/components/layouts/root-layout.server.d.ts +2 -2
  48. package/dist/components/layouts/root-layout.server.d.ts.map +1 -1
  49. package/dist/components/layouts/root-loading.d.ts +7 -0
  50. package/dist/components/layouts/root-loading.d.ts.map +1 -0
  51. package/dist/components/layouts/root-loading.js +14 -0
  52. package/dist/components/layouts/root-loading.js.map +1 -0
  53. package/dist/components/layouts/tab-layout.d.ts +2 -2
  54. package/dist/components/layouts/tab-layout.d.ts.map +1 -1
  55. package/dist/components/lists/data-list.d.ts +5 -5
  56. package/dist/components/lists/data-list.d.ts.map +1 -1
  57. package/dist/components/lists/data-stack.d.ts +8 -8
  58. package/dist/components/lists/data-stack.d.ts.map +1 -1
  59. package/dist/components/{layouts → navigation}/admin-sidebar-header.client.js +8 -9
  60. package/dist/components/navigation/admin-sidebar-header.client.js.map +1 -0
  61. package/dist/components/navigation/admin-sidebar-paths.client.d.ts +81 -0
  62. package/dist/components/navigation/admin-sidebar-paths.client.d.ts.map +1 -0
  63. package/dist/components/navigation/admin-sidebar-paths.client.js +143 -0
  64. package/dist/components/navigation/admin-sidebar-paths.client.js.map +1 -0
  65. package/dist/components/navigation/admin-sidebar-skeleton.js +31 -0
  66. package/dist/components/navigation/admin-sidebar-skeleton.js.map +1 -0
  67. package/dist/components/server.d.ts +1 -1
  68. package/dist/components/server.js +1 -1
  69. package/dist/components/ui/accordion.d.ts +5 -5
  70. package/dist/components/ui/accordion.d.ts.map +1 -1
  71. package/dist/components/ui/alert-dialog.d.ts +12 -12
  72. package/dist/components/ui/alert-dialog.d.ts.map +1 -1
  73. package/dist/components/ui/alert.d.ts +6 -6
  74. package/dist/components/ui/alert.d.ts.map +1 -1
  75. package/dist/components/ui/aspect-ratio.d.ts +2 -2
  76. package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
  77. package/dist/components/ui/avatar.client.d.ts +4 -4
  78. package/dist/components/ui/badge.d.ts +4 -4
  79. package/dist/components/ui/badge.d.ts.map +1 -1
  80. package/dist/components/ui/breadcrumb.d.ts +8 -8
  81. package/dist/components/ui/breadcrumb.d.ts.map +1 -1
  82. package/dist/components/ui/button.d.ts +5 -5
  83. package/dist/components/ui/button.d.ts.map +1 -1
  84. package/dist/components/ui/calendar.d.ts +2 -2
  85. package/dist/components/ui/calendar.d.ts.map +1 -1
  86. package/dist/components/ui/card.d.ts +7 -7
  87. package/dist/components/ui/card.d.ts.map +1 -1
  88. package/dist/components/ui/carousel.d.ts +6 -6
  89. package/dist/components/ui/carousel.d.ts.map +1 -1
  90. package/dist/components/ui/chart.client.d.ts +5 -5
  91. package/dist/components/ui/checkbox.d.ts +2 -2
  92. package/dist/components/ui/checkbox.d.ts.map +1 -1
  93. package/dist/components/ui/collapsible.client.d.ts +4 -4
  94. package/dist/components/ui/color-picker.client.d.ts +2 -2
  95. package/dist/components/ui/combobox-dropdown.client.d.ts +2 -2
  96. package/dist/components/ui/combobox.client.d.ts +2 -2
  97. package/dist/components/ui/command.d.ts +10 -10
  98. package/dist/components/ui/command.d.ts.map +1 -1
  99. package/dist/components/ui/context-menu.d.ts +16 -16
  100. package/dist/components/ui/dialog.client.d.ts +11 -11
  101. package/dist/components/ui/drawer.client.d.ts +11 -11
  102. package/dist/components/ui/dropdown-menu.d.ts +16 -16
  103. package/dist/components/ui/form.client.d.ts +8 -8
  104. package/dist/components/ui/hover-card.client.d.ts +4 -4
  105. package/dist/components/ui/input.d.ts +2 -2
  106. package/dist/components/ui/label.d.ts +2 -2
  107. package/dist/components/ui/navigation-menu.d.ts +11 -11
  108. package/dist/components/ui/pagination.d.ts +8 -8
  109. package/dist/components/ui/pagination.d.ts.map +1 -1
  110. package/dist/components/ui/popover.d.ts +5 -5
  111. package/dist/components/ui/progress.client.d.ts +2 -2
  112. package/dist/components/ui/radio-group.d.ts +3 -3
  113. package/dist/components/ui/resizable.client.d.ts +4 -4
  114. package/dist/components/ui/scroll-area.d.ts +3 -3
  115. package/dist/components/ui/select.client.d.ts +11 -11
  116. package/dist/components/ui/separator.d.ts +2 -2
  117. package/dist/components/ui/sheet.client.d.ts +9 -9
  118. package/dist/components/ui/sidebar.client.d.ts +26 -26
  119. package/dist/components/ui/sidebar.client.js +1 -1
  120. package/dist/components/ui/skeleton.d.ts +2 -2
  121. package/dist/components/ui/slider.d.ts +2 -2
  122. package/dist/components/ui/sonner.client.d.ts +2 -2
  123. package/dist/components/ui/sonner.client.js +1 -1
  124. package/dist/components/ui/spinner.js +63 -0
  125. package/dist/components/ui/spinner.js.map +1 -0
  126. package/dist/components/ui/switch.d.ts +2 -2
  127. package/dist/components/ui/tabs.d.ts +5 -5
  128. package/dist/components/ui/textarea.d.ts +2 -2
  129. package/dist/components/ui/time-input.client.d.ts +2 -2
  130. package/dist/components/ui/toggle-group.client.d.ts +3 -3
  131. package/dist/components/ui/toggle.d.ts +2 -2
  132. package/dist/components/ui/toggle.d.ts.map +1 -1
  133. package/dist/components/ui/tooltip.client.d.ts +5 -5
  134. package/dist/components/ui/tree.client.d.ts +5 -5
  135. package/dist/components.d.ts +5 -4
  136. package/dist/components.js +7 -6
  137. package/dist/config/server.d.ts +2 -3
  138. package/dist/config/server.js +3 -4
  139. package/dist/config.d.ts +3 -2
  140. package/dist/config.js +2 -1
  141. package/dist/lib/client.js +1 -1
  142. package/dist/lib/hooks/use-action.d.ts +2 -2
  143. package/dist/lib/hooks/use-indicator.d.ts +2 -2
  144. package/dist/modules/auth/components/allowed.client.d.ts +2 -2
  145. package/dist/modules/auth/components/allowed.client.js +1 -1
  146. package/dist/modules/auth/components/allowed.client.js.map +1 -1
  147. package/dist/modules/auth/components/allowed.server.d.ts +2 -2
  148. package/dist/modules/auth/components/allowed.server.d.ts.map +1 -1
  149. package/dist/modules/auth/components/allowed.server.js +1 -1
  150. package/dist/modules/auth/components/auth-layout.server.d.ts +4 -5
  151. package/dist/modules/auth/components/auth-layout.server.d.ts.map +1 -1
  152. package/dist/modules/auth/components/auth-layout.server.js +1 -4
  153. package/dist/modules/auth/components/auth-layout.server.js.map +1 -1
  154. package/dist/modules/auth/components/auth-loading.d.ts +7 -0
  155. package/dist/modules/auth/components/auth-loading.d.ts.map +1 -0
  156. package/dist/modules/auth/components/auth-loading.js +18 -0
  157. package/dist/modules/auth/components/auth-loading.js.map +1 -0
  158. package/dist/modules/auth/components/forget-password-page.client.d.ts +2 -2
  159. package/dist/modules/auth/components/forget-password-page.client.js +2 -2
  160. package/dist/modules/auth/components/guard.js +16 -0
  161. package/dist/modules/auth/components/guard.js.map +1 -0
  162. package/dist/modules/auth/components/login-page.client.d.ts +2 -6
  163. package/dist/modules/auth/components/login-page.client.d.ts.map +1 -1
  164. package/dist/modules/auth/components/login-page.client.js +7 -6
  165. package/dist/modules/auth/components/login-page.client.js.map +1 -1
  166. package/dist/modules/auth/components/reset-password-page.client.d.ts +2 -2
  167. package/dist/modules/auth/components/reset-password-page.client.js +3 -3
  168. package/dist/modules/auth/components/update-password-command.d.ts +3 -3
  169. package/dist/modules/auth/components/update-password-command.js +1 -1
  170. package/dist/modules/auth/handler/client.client.d.ts +48 -48
  171. package/dist/modules/auth/handler/client.client.d.ts.map +1 -1
  172. package/dist/modules/auth/hooks/use-permission.d.ts +26 -0
  173. package/dist/modules/auth/hooks/use-permission.d.ts.map +1 -0
  174. package/dist/modules/auth/hooks/{use-permission.client.js → use-permission.js} +5 -3
  175. package/dist/modules/auth/hooks/use-permission.js.map +1 -0
  176. package/dist/modules/auth/hooks/use-session.d.ts +34 -0
  177. package/dist/modules/auth/hooks/use-session.d.ts.map +1 -0
  178. package/dist/modules/auth/hooks/use-session.js +21 -0
  179. package/dist/modules/auth/hooks/use-session.js.map +1 -0
  180. package/dist/modules/auth/lib/helpers.server.d.ts +1 -1
  181. package/dist/modules/auth/lib/helpers.server.js +2 -2
  182. package/dist/modules/auth/lib/validators.d.ts +1 -1
  183. package/dist/modules/auth/lib/validators.d.ts.map +1 -1
  184. package/dist/modules/auth/lib/validators.js +1 -1
  185. package/dist/modules/auth/lib/validators.js.map +1 -1
  186. package/dist/modules/commands/components/alert-dialog-command.client.d.ts +11 -11
  187. package/dist/modules/commands/components/alert-dialog-command.client.d.ts.map +1 -1
  188. package/dist/modules/commands/components/alert-dialog-command.client.js +1 -1
  189. package/dist/modules/commands/components/click-command.client.d.ts +2 -2
  190. package/dist/modules/commands/components/click-command.client.d.ts.map +1 -1
  191. package/dist/modules/commands/components/command-trigger.client.d.ts +6 -6
  192. package/dist/modules/commands/components/command-trigger.client.d.ts.map +1 -1
  193. package/dist/modules/commands/components/command-trigger.client.js +1 -1
  194. package/dist/modules/commands/components/dialog-command.client.d.ts +8 -8
  195. package/dist/modules/commands/components/dialog-command.client.d.ts.map +1 -1
  196. package/dist/modules/commands/components/dialog-command.client.js +1 -1
  197. package/dist/modules/commands/components/dropdown-command.client.d.ts +5 -5
  198. package/dist/modules/commands/components/dropdown-command.client.d.ts.map +1 -1
  199. package/dist/modules/commands/components/empty-command.client.d.ts +2 -2
  200. package/dist/modules/commands/components/empty-command.client.d.ts.map +1 -1
  201. package/dist/modules/commands/components/form-dialog-command.client.d.ts +12 -12
  202. package/dist/modules/commands/components/form-dialog-command.client.d.ts.map +1 -1
  203. package/dist/modules/commands/components/form-dialog-command.client.js +1 -1
  204. package/dist/modules/commands/hooks/use-command-action.client.js +1 -1
  205. package/dist/modules/commands/hooks/use-command-menu.client.js +1 -1
  206. package/dist/modules/commands/hooks/use-command-menu.client.js.map +1 -1
  207. package/dist/modules/commands/menus/context-menu.client.d.ts +2 -2
  208. package/dist/modules/commands/menus/context-menu.client.d.ts.map +1 -1
  209. package/dist/modules/commands/menus/dropdown-menu.client.d.ts +8 -4
  210. package/dist/modules/commands/menus/dropdown-menu.client.d.ts.map +1 -1
  211. package/dist/modules/commands/menus/dropdown-menu.client.js +9 -1
  212. package/dist/modules/commands/menus/dropdown-menu.client.js.map +1 -1
  213. package/dist/modules/commands/menus/inline-menu.client.d.ts +8 -4
  214. package/dist/modules/commands/menus/inline-menu.client.d.ts.map +1 -1
  215. package/dist/modules/commands/menus/inline-menu.client.js +12 -1
  216. package/dist/modules/commands/menus/inline-menu.client.js.map +1 -1
  217. package/dist/modules/commands/menus/responsive-menu.client.d.ts +4 -3
  218. package/dist/modules/commands/menus/responsive-menu.client.d.ts.map +1 -1
  219. package/dist/modules/commands/menus/responsive-menu.client.js +6 -3
  220. package/dist/modules/commands/menus/responsive-menu.client.js.map +1 -1
  221. package/dist/modules/commands/utils/archive-command.client.d.ts +3 -3
  222. package/dist/modules/commands/utils/archive-command.client.d.ts.map +1 -1
  223. package/dist/modules/commands/utils/delete-command.client.d.ts +2 -2
  224. package/dist/modules/commands/utils/delete-command.client.d.ts.map +1 -1
  225. package/dist/modules/commands/utils/send-mail-command.client.d.ts +2 -2
  226. package/dist/modules/commands/utils/send-mail-command.client.d.ts.map +1 -1
  227. package/dist/modules/commands/utils/send-mail-command.client.js +3 -3
  228. package/dist/modules/config/db/helpers.d.ts +5 -5
  229. package/dist/modules/config/db/helpers.d.ts.map +1 -1
  230. package/dist/modules/config/lib/config.server.d.ts +0 -2
  231. package/dist/modules/config/lib/config.server.d.ts.map +1 -1
  232. package/dist/modules/config/lib/config.server.js.map +1 -1
  233. package/dist/modules/config/lib/resolve.server.d.ts +189 -190
  234. package/dist/modules/config/lib/resolve.server.d.ts.map +1 -1
  235. package/dist/modules/config/paths/helpers.d.ts +11 -0
  236. package/dist/modules/config/paths/helpers.d.ts.map +1 -0
  237. package/dist/modules/config/paths/helpers.js +9 -0
  238. package/dist/modules/config/paths/helpers.js.map +1 -0
  239. package/dist/modules/config/paths/types.d.ts +8 -37
  240. package/dist/modules/config/paths/types.d.ts.map +1 -1
  241. package/dist/modules/config/router/client.server.d.ts +4 -4
  242. package/dist/modules/config/router/client.server.d.ts.map +1 -1
  243. package/dist/modules/config/router/context.server.d.ts +191 -192
  244. package/dist/modules/config/router/context.server.d.ts.map +1 -1
  245. package/dist/modules/config/router/init.server.d.ts +196 -197
  246. package/dist/modules/config/router/init.server.d.ts.map +1 -1
  247. package/dist/modules/data-tables/components/cell/common.client.d.ts +5 -5
  248. package/dist/modules/data-tables/components/cell/common.client.d.ts.map +1 -1
  249. package/dist/modules/data-tables/components/column-header.d.ts +2 -2
  250. package/dist/modules/data-tables/components/column-header.d.ts.map +1 -1
  251. package/dist/modules/data-tables/components/filters/combobox.client.d.ts +2 -2
  252. package/dist/modules/data-tables/components/filters/combobox.client.d.ts.map +1 -1
  253. package/dist/modules/data-tables/components/filters/combobox.client.js +1 -1
  254. package/dist/modules/data-tables/components/filters/combobox.client.js.map +1 -1
  255. package/dist/modules/data-tables/components/filters/slider.client.d.ts +2 -2
  256. package/dist/modules/data-tables/components/filters/slider.client.d.ts.map +1 -1
  257. package/dist/modules/data-tables/components/header.d.ts +4 -4
  258. package/dist/modules/data-tables/components/header.d.ts.map +1 -1
  259. package/dist/modules/data-tables/components/layout.d.ts +2 -2
  260. package/dist/modules/data-tables/components/layout.d.ts.map +1 -1
  261. package/dist/modules/data-tables/components/search-input.client.d.ts +2 -2
  262. package/dist/modules/data-tables/components/search-input.client.d.ts.map +1 -1
  263. package/dist/modules/data-tables/components/skeleton.d.ts +2 -2
  264. package/dist/modules/data-tables/components/skeleton.d.ts.map +1 -1
  265. package/dist/modules/data-tables/components/table.d.ts +7 -7
  266. package/dist/modules/data-tables/components/table.d.ts.map +1 -1
  267. package/dist/modules/data-tables/components/toolbar.d.ts +3 -3
  268. package/dist/modules/data-tables/components/toolbar.d.ts.map +1 -1
  269. package/dist/modules/data-tables/hooks/use-context.client.d.ts +2 -2
  270. package/dist/modules/data-tables/hooks/use-context.client.d.ts.map +1 -1
  271. package/dist/modules/data-tables/lib/filters/resolvers.d.ts +1 -1
  272. package/dist/modules/data-tables/lib/filters/resolvers.d.ts.map +1 -1
  273. package/dist/modules/data-tables/lib/search-params.d.ts +5 -5
  274. package/dist/modules/data-tables/lib/search-params.d.ts.map +1 -1
  275. package/dist/modules/data-tables/lib/types.d.ts +1 -1
  276. package/dist/modules/data-tables/tables/data-table/components/table.d.ts +2 -2
  277. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts +2 -2
  278. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts.map +1 -1
  279. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts +2 -2
  280. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts.map +1 -1
  281. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.ts +2 -2
  282. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.ts +3 -3
  283. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.ts +2 -2
  284. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.ts +2 -2
  285. package/dist/modules/data-tables/tables/inline-table/components/table.d.ts +2 -2
  286. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.ts +2 -2
  287. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.js +1 -1
  288. package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js +1 -1
  289. package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js.map +1 -1
  290. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts +2 -2
  291. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts.map +1 -1
  292. package/dist/modules/inline-edit/components/combobox.client.d.ts +2 -2
  293. package/dist/modules/inline-edit/components/combobox.client.d.ts.map +1 -1
  294. package/dist/modules/inline-edit/components/date-input.client.d.ts +2 -2
  295. package/dist/modules/inline-edit/components/date-input.client.d.ts.map +1 -1
  296. package/dist/modules/inline-edit/components/date-input.client.js +1 -1
  297. package/dist/modules/inline-edit/components/date-picker.client.d.ts +2 -2
  298. package/dist/modules/inline-edit/components/date-picker.client.d.ts.map +1 -1
  299. package/dist/modules/inline-edit/components/editor.client.d.ts +2 -2
  300. package/dist/modules/inline-edit/components/editor.client.d.ts.map +1 -1
  301. package/dist/modules/inline-edit/components/input-toggle.client.d.ts +2 -2
  302. package/dist/modules/inline-edit/components/input-toggle.client.d.ts.map +1 -1
  303. package/dist/modules/inline-edit/components/input.client.d.ts +3 -3
  304. package/dist/modules/inline-edit/components/input.client.d.ts.map +1 -1
  305. package/dist/modules/inline-edit/components/richtext.client.d.ts +2 -2
  306. package/dist/modules/inline-edit/components/richtext.client.d.ts.map +1 -1
  307. package/dist/modules/inline-edit/components/select.client.d.ts +6 -6
  308. package/dist/modules/inline-edit/components/select.client.d.ts.map +1 -1
  309. package/dist/modules/inline-edit/components/switch.client.d.ts +2 -2
  310. package/dist/modules/inline-edit/components/switch.client.d.ts.map +1 -1
  311. package/dist/modules/inline-edit/components/toggle.client.d.ts +2 -2
  312. package/dist/modules/inline-edit/components/toggle.client.d.ts.map +1 -1
  313. package/dist/modules/inline-edit/hooks/context.client.d.ts +2 -2
  314. package/dist/modules/inline-edit/hooks/context.client.d.ts.map +1 -1
  315. package/dist/modules/inline-edit/hooks/use-inline.client.js +1 -1
  316. package/dist/modules/inline-edit/hooks/use-inline.client.js.map +1 -1
  317. package/dist/modules/uploads/components/button.client.d.ts +2 -2
  318. package/dist/modules/uploads/components/button.client.d.ts.map +1 -1
  319. package/dist/modules/uploads/components/images/grid.client.d.ts +2 -2
  320. package/dist/modules/uploads/components/images/grid.client.d.ts.map +1 -1
  321. package/dist/modules/uploads/components/images/grid.client.js +1 -1
  322. package/dist/modules/uploads/components/images/input.client.d.ts +2 -2
  323. package/dist/modules/uploads/components/images/input.client.d.ts.map +1 -1
  324. package/dist/modules/uploads/components/preview-dialog.client.d.ts +2 -2
  325. package/dist/modules/uploads/components/preview-dialog.client.d.ts.map +1 -1
  326. package/dist/modules/uploads/components/zone.client.d.ts +2 -2
  327. package/dist/modules/uploads/components/zone.client.d.ts.map +1 -1
  328. package/dist/modules/uploads/hooks/use-upload-image.client.js +1 -1
  329. package/dist/modules/uploads/lib/proxy.server.d.ts +1 -1
  330. package/dist/modules/uploads/lib/proxy.server.js +3 -3
  331. package/dist/modules/uploads/lib/route.server.d.ts +1 -1
  332. package/dist/modules/uploads/lib/route.server.js +1 -1
  333. package/dist/modules/uploads/lib/router.server.d.ts +938 -938
  334. package/dist/modules/uploads/lib/router.server.d.ts.map +1 -1
  335. package/dist/modules/uploads/lib/router.server.js +1 -1
  336. package/dist/modules/uploads/lib/schema.d.ts +61 -61
  337. package/dist/modules/uploads/lib/validators.d.ts +56 -56
  338. package/dist/modules/uploads/lib/validators.d.ts.map +1 -1
  339. package/package.json +4 -4
  340. package/src/components/common/icons.tsx +6 -0
  341. package/src/components/entry.client.ts +6 -0
  342. package/src/components/entry.server.ts +1 -1
  343. package/src/components/entry.ts +1 -0
  344. package/src/components/header/bottom-bar.client.tsx +2 -2
  345. package/src/components/layouts/admin-layout.tsx +13 -0
  346. package/src/components/layouts/admin-loading.tsx +1 -1
  347. package/src/components/layouts/root-loading.tsx +9 -0
  348. package/src/components/{layouts → navigation}/admin-sidebar-header.client.tsx +11 -6
  349. package/src/components/navigation/admin-sidebar-paths.client.tsx +190 -0
  350. package/src/components/navigation/admin-sidebar-skeleton.tsx +44 -0
  351. package/src/components/navigation/admin-sidebar.client.tsx +123 -0
  352. package/src/components/ui/spinner.tsx +51 -0
  353. package/src/modules/auth/components/allowed.client.tsx +1 -1
  354. package/src/modules/auth/components/auth-layout.server.tsx +2 -10
  355. package/src/modules/auth/components/auth-loading.tsx +11 -0
  356. package/src/modules/auth/components/guard.tsx +12 -0
  357. package/src/modules/auth/components/login-page.client.tsx +4 -3
  358. package/src/modules/auth/entry.client.ts +2 -0
  359. package/src/modules/auth/entry.ts +1 -0
  360. package/src/modules/auth/hooks/{use-permission.client.ts → use-permission.ts} +4 -2
  361. package/src/modules/auth/hooks/use-session.ts +18 -0
  362. package/src/modules/auth/lib/validators.ts +1 -1
  363. package/src/modules/commands/hooks/use-command-menu.client.tsx +6 -7
  364. package/src/modules/commands/menus/dropdown-menu.client.tsx +11 -2
  365. package/src/modules/commands/menus/inline-menu.client.tsx +14 -1
  366. package/src/modules/commands/menus/responsive-menu.client.tsx +11 -2
  367. package/src/modules/config/entry.server.ts +1 -2
  368. package/src/modules/config/entry.ts +3 -0
  369. package/src/modules/config/lib/config.server.ts +1 -2
  370. package/src/modules/config/lib/router.server.ts +64 -0
  371. package/src/modules/config/paths/helpers.ts +6 -0
  372. package/src/modules/config/paths/types.ts +26 -38
  373. package/src/modules/data-tables/components/filters/combobox.client.tsx +1 -1
  374. package/src/modules/data-tables/tables/inline-table/hooks/use-input.client.ts +1 -1
  375. package/src/modules/inline-edit/hooks/use-inline.client.tsx +1 -1
  376. package/dist/components/layouts/admin-layout.server.d.ts +0 -14
  377. package/dist/components/layouts/admin-layout.server.d.ts.map +0 -1
  378. package/dist/components/layouts/admin-layout.server.js +0 -26
  379. package/dist/components/layouts/admin-layout.server.js.map +0 -1
  380. package/dist/components/layouts/admin-sidebar-context.client.js +0 -28
  381. package/dist/components/layouts/admin-sidebar-context.client.js.map +0 -1
  382. package/dist/components/layouts/admin-sidebar-header.client.js.map +0 -1
  383. package/dist/components/layouts/admin-sidebar.client.js +0 -51
  384. package/dist/components/layouts/admin-sidebar.client.js.map +0 -1
  385. package/dist/modules/auth/hooks/use-permission.client.js.map +0 -1
  386. package/dist/modules/config/paths/create.server.d.ts +0 -14
  387. package/dist/modules/config/paths/create.server.d.ts.map +0 -1
  388. package/dist/modules/config/paths/create.server.js +0 -12
  389. package/dist/modules/config/paths/create.server.js.map +0 -1
  390. package/dist/modules/config/paths/get.server.js +0 -47
  391. package/dist/modules/config/paths/get.server.js.map +0 -1
  392. package/src/components/layouts/admin-layout.server.tsx +0 -31
  393. package/src/components/layouts/admin-sidebar-context.client.tsx +0 -34
  394. package/src/components/layouts/admin-sidebar.client.tsx +0 -88
  395. package/src/modules/config/paths/create.server.ts +0 -10
  396. package/src/modules/config/paths/get.server.ts +0 -69
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.server.d.ts","names":[],"sources":["../../../../src/modules/config/lib/resolve.server.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;KAaY,+BAA+B;UACjC,YAAY;;KAGV,+BAA+B,mBAAmB,QAC5D,kBAAkB,SAAS;AAL7B;;;AACsB,cAUT,QAVS,EAAA,CAAA,gBAWG,eAXH,CAAA,CAAA,MAAA,EAW4B,cAX5B,CAW2C,OAX3C,CAAA,EAAA,GAWmD,OAXnD,CAAA;SAAZ,EAAA;IAAW,IAAA,EAAA,MAAA;IAGT,SAAA,EAAA,MAAc;EAAA,CAAA;OAAiB,YAAA,QAAA,CAAA;QACd,SAAA;iDAAT,QAAA,CAAA;MAAlB,oBAAA,CAAA;IAD4D,QAAA,EAAA,CAAA,OAAA,iCAAA,EAAA,wBAAA;IAAO,gBAAA,EAAA;MAOxD,OAkDZ,EAAA,IAAA;IAAA,CAAA;IAjDwB,IAAA,EAAA;MAAwC,WAAA,EAAA;QAAf,OAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkD6qP,EAAA,EAAA,MAAA;kBAAiE,SAAA,MAAA;kBAAqD,SAAA,MAAA;kBAAoI,MAAA,EAAA,MAAA;kBAAwG,SAAA,MAAA;kBAAwD,KAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAsoN,MAAA,EAAA,MAAA;YAA4E,IAA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;4BAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA04E;;qBAA4E;;sBAAiE;;sBAAqD;;;;kBAAA,cAAA,CAAoI,UAAA;;;yBAAwG;4BAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAu6E;;qBAA4E;;sBAAiE;;sBAAqD;;;;kBAAA,cAAA,CAAoI,UAAA;;;yBAAwG;4BAAwD"}
@@ -0,0 +1,11 @@
1
+ import { Paths } from "./types.js";
2
+
3
+ //#region src/modules/config/paths/helpers.d.ts
4
+
5
+ /**
6
+ * Create the paths object
7
+ */
8
+ declare const createPaths: (paths: Paths) => Paths;
9
+ //#endregion
10
+ export { createPaths };
11
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","names":[],"sources":["../../../../src/modules/config/paths/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;AAKA;AAAkD,cAArC,WAAqC,EAAA,CAAA,KAAA,EAAf,KAAe,EAAA,GAAV,KAAU"}
@@ -0,0 +1,9 @@
1
+ //#region src/modules/config/paths/helpers.ts
2
+ /**
3
+ * Create the paths object
4
+ */
5
+ const createPaths = (paths) => paths;
6
+
7
+ //#endregion
8
+ export { createPaths };
9
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","names":[],"sources":["../../../../src/modules/config/paths/helpers.ts"],"sourcesContent":["import { Paths } from \"./types\";\n\n/**\n * Create the paths object\n */\nexport const createPaths = (paths: Paths) => paths;\n"],"mappings":";;;;AAKA,MAAa,eAAe,UAAiB"}
@@ -1,62 +1,33 @@
1
1
  import { Permission } from "../../auth/lib/permissions.js";
2
- import { TDatabaseSchema } from "../db/types.js";
3
2
  import { LucideIcon } from "lucide-react";
4
3
  import { Route } from "next";
5
4
 
6
5
  //#region src/modules/config/paths/types.d.ts
7
6
 
8
7
  /**
9
- * Path input type
8
+ * Path types
10
9
  */
11
- type PathGroupInput<TSchema extends TDatabaseSchema> = {
10
+ type PathGroup = {
12
11
  name?: string;
13
- items: ((config: {}) => Promise<PathInput>)[];
12
+ items: Path[];
14
13
  };
15
- type PathInput = {
14
+ type Path = {
16
15
  name: string;
17
16
  href: Route;
18
17
  icon?: LucideIcon;
19
18
  segment?: string;
20
19
  permission?: Permission;
21
20
  isActive?: boolean;
22
- items?: PathSubItemInput[];
21
+ items?: PathSubItem[];
23
22
  };
24
- type PathSubItemInput = {
23
+ type PathSubItem = {
25
24
  name: string;
26
25
  href: Route;
27
26
  segment?: string;
28
27
  permission?: Permission;
29
28
  isActive?: boolean;
30
29
  };
31
- /**
32
- * Path output type
33
- */
34
- type PathGroupOutput = {
35
- name?: string;
36
- items: PathOutput[];
37
- };
38
- type PathOutput = {
39
- name: string;
40
- href: Route;
41
- icon?: React.JSX.Element;
42
- segment?: string;
43
- isActive?: boolean;
44
- items?: PathSubItemOutput[];
45
- };
46
- type PathSubItemOutput = {
47
- name: string;
48
- href: Route;
49
- segment?: string;
50
- isActive?: boolean;
51
- };
52
- /**
53
- * Path config type
54
- */
55
- type PathConfig<TSchema extends TDatabaseSchema> = PathGroupInput<TSchema>[];
56
- /**
57
- * Path result type
58
- */
59
- type PathResult = PathGroupOutput[];
30
+ type Paths = PathGroup[];
60
31
  //#endregion
61
- export { PathConfig, PathGroupInput, PathGroupOutput, PathInput, PathOutput, PathResult, PathSubItemInput, PathSubItemOutput };
32
+ export { Path, PathGroup, PathSubItem, Paths };
62
33
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/modules/config/paths/types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAQA;AAA0B,KAAd,cAAc,CAAA,gBAAiB,eAAjB,CAAA,GAAA;MAAiB,CAAA,EAAA,MAAA;OAET,EAAA,CAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA,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 +1,7 @@
1
1
  import { createQueryClient } from "./query-client.js";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime376 from "react/jsx-runtime";
3
3
  import "server-cli-only";
4
- import * as _orpc_server26 from "@orpc/server";
4
+ import * as _orpc_server32 from "@orpc/server";
5
5
  import { AnyRouter } from "@orpc/server";
6
6
  import * as _orpc_client0 from "@orpc/client";
7
7
 
@@ -15,11 +15,11 @@ declare const getQueryClient: typeof createQueryClient;
15
15
  */
16
16
  declare function HydrateClient(props: {
17
17
  children: React.ReactNode;
18
- }): react_jsx_runtime0.JSX.Element;
18
+ }): react_jsx_runtime376.JSX.Element;
19
19
  /**
20
20
  * Initialize the server client
21
21
  */
22
- declare function createRPCServerClient<TRouter extends AnyRouter>(appRouter: TRouter): _orpc_server26.RouterClient<TRouter, _orpc_client0.ClientContext>;
22
+ declare function createRPCServerClient<TRouter extends AnyRouter>(appRouter: TRouter): _orpc_server32.RouterClient<TRouter, _orpc_client0.ClientContext>;
23
23
  //#endregion
24
24
  export { HydrateClient, createRPCServerClient, getQueryClient };
25
25
  //# sourceMappingURL=client.server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.server.d.ts","names":[],"sources":["../../../../src/modules/config/router/client.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAUa,uBAAc;;AAA3B;AAKA;AAA6B,iBAAb,aAAA,CAAa,KAAA,EAAA;UAAoB,EAAA,KAAA,CAAM,SAAA;IAAW,kBAAA,CAAA,GAAA,CAAA,OAAA;;AASlE;;AAAsD,iBAAtC,qBAAsC,CAAA,gBAAA,SAAA,CAAA,CAAA,SAAA,EAAsB,OAAtB,CAAA,EAA6B,cAAA,CAAA,YAA7B,CAA6B,OAA7B,EAA6B,aAAA,CAAA,aAAA,CAA7B"}
1
+ {"version":3,"file":"client.server.d.ts","names":[],"sources":["../../../../src/modules/config/router/client.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAUa,uBAAc;;AAA3B;AAKA;AAA6B,iBAAb,aAAA,CAAa,KAAA,EAAA;UAAoB,EAAA,KAAA,CAAM,SAAA;IAAW,oBAAA,CAAA,GAAA,CAAA,OAAA;;AASlE;;AAAsD,iBAAtC,qBAAsC,CAAA,gBAAA,SAAA,CAAA,CAAA,SAAA,EAAsB,OAAtB,CAAA,EAA6B,cAAA,CAAA,YAA7B,CAA6B,OAA7B,EAA6B,aAAA,CAAA,aAAA,CAA7B"}