@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 +1 @@
1
- {"version":3,"file":"client.client.d.ts","names":[],"sources":["../../../../src/modules/auth/handler/client.client.ts"],"sourcesContent":[],"mappings":";;;;;cAiBa;;;;;QAAA,MAEX,EAAA,kBAAA,GAAA,YAAA,GAAA,0BAAA;QAAA,cAAA,EAAA,kBAAA,GAAA,YAAA,GAAA,mCAAA,GAAA,qBAAA,GAAA,0BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAC60E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAkmH,kBAAA,CAAA;;;;;;;;;;;;;;;;;eAA7lE;;eAAuE,eAAA;;;;;YAAsW;kBAAgD;;;WAAoH;eAA4C;;qBAA6F;cAA6C;;0BAAA,kBAAA,CAAuF,oBAAA;;;;;qBAAA,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;+BAA+iC,YAAA;;cAAA,kBAAA,CAA0G,gBAAA,UAAA,cAAA;kBAAA,kBAAA,CAAsG,gBAAA;;;;sBAAyK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAHrmM,UAAA,UAAoB;KAEpB,aAAA,UAAuB,UAAA,CAAW,MAAA,CAAO"}
@@ -0,0 +1,26 @@
1
+ import { Permission } from "../lib/permissions.js";
2
+ import * as _tanstack_react_query0 from "@tanstack/react-query";
3
+
4
+ //#region src/modules/auth/hooks/use-permission.d.ts
5
+ /**
6
+ * UsePermission
7
+ */
8
+ declare function usePermission(permission?: Permission): {
9
+ data: null;
10
+ errors: _tanstack_react_query0.UseSuspenseQueryResult<{
11
+ permission: Permission;
12
+ success: boolean;
13
+ }, Error>[];
14
+ } | {
15
+ data: {
16
+ success: boolean;
17
+ values: {
18
+ permission: Permission;
19
+ success: boolean;
20
+ }[];
21
+ };
22
+ errors: null;
23
+ };
24
+ //#endregion
25
+ export { usePermission };
26
+ //# sourceMappingURL=use-permission.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-permission.d.ts","names":[],"sources":["../../../../src/modules/auth/hooks/use-permission.ts"],"sourcesContent":[],"mappings":";;;;;;;AAWgB,iBAAA,aAAA,CAAa,UAAA,CAAA,EAAc,UAAd,CAAA,EAAA;EAAA,IAAA,EAAA,IAAA;QAAc,+CAAA,CAAA"}
@@ -2,19 +2,21 @@
2
2
 
3
3
 
4
4
  import { authClient } from "../handler/client.client.js";
5
+ import { useSession } from "./use-session.js";
5
6
  import { useSuspenseQueries } from "@tanstack/react-query";
6
7
 
7
- //#region src/modules/auth/hooks/use-permission.client.ts
8
+ //#region src/modules/auth/hooks/use-permission.ts
8
9
  /**
9
10
  * UsePermission
10
11
  */
11
12
  function usePermission(permission) {
13
+ const sessionQuery = useSession();
12
14
  return useSuspenseQueries({
13
15
  queries: Object.entries(permission ?? {}).flatMap(([resource, permissions]) => permissions.map((permission$1) => [resource, permission$1])).map((key) => ({
14
16
  queryKey: ["permission", ...key],
15
17
  queryFn: async () => {
16
18
  const permission$1 = { [key[0]?.toString()]: [key[1]] };
17
- const userId = (await authClient.getSession()).data?.user.id;
19
+ const userId = sessionQuery.data?.user.id;
18
20
  const { data, error } = await authClient.admin.hasPermission({
19
21
  permission: permission$1,
20
22
  userId
@@ -49,4 +51,4 @@ function usePermission(permission) {
49
51
 
50
52
  //#endregion
51
53
  export { usePermission };
52
- //# sourceMappingURL=use-permission.client.js.map
54
+ //# sourceMappingURL=use-permission.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-permission.js","names":["permission","permission: Permission"],"sources":["../../../../src/modules/auth/hooks/use-permission.ts"],"sourcesContent":["\"use client\";\n\nimport { useSuspenseQueries } from \"@tanstack/react-query\";\nimport { LiteralString } from \"better-auth\";\nimport { authClient } from \"../handler/client.client\";\nimport { type Permission } from \"../lib/permissions\";\nimport { useSession } from \"./use-session\";\n\n/**\n * UsePermission\n */\nexport function usePermission(permission?: Permission) {\n const sessionQuery = useSession();\n\n const keys = Object.entries(permission ?? {}).flatMap(([resource, permissions]) =>\n permissions.map((permission) => [resource, permission] as const),\n );\n\n return useSuspenseQueries({\n queries: keys.map((key) => ({\n queryKey: [\"permission\", ...key],\n queryFn: async () => {\n const resource = key[0]?.toString() as string;\n const permission: Permission = { [resource]: [key[1]] as LiteralString[] };\n\n const userId = sessionQuery.data?.user.id;\n\n const { data, error } = await authClient.admin.hasPermission({ permission, userId });\n if (error) {\n console.error(error);\n throw error;\n }\n\n return {\n permission,\n success: data.success,\n };\n },\n })),\n combine: (results) => {\n const errors = results.filter(({ error }) => error);\n if (errors.length) return { data: null, errors };\n\n const values = results.map(({ data }) => data);\n const success = results.every(({ data }) => data.success);\n\n return { data: { success, values }, errors: null };\n },\n });\n}\n"],"mappings":";;;;;;;;;;;AAWA,SAAgB,cAAc,YAAyB;CACrD,MAAM,eAAe,YAAY;AAMjC,QAAO,mBAAmB;EACxB,SALW,OAAO,QAAQ,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,iBAChE,YAAY,KAAK,iBAAe,CAAC,UAAUA,aAAW,CAAU,CACjE,CAGe,KAAK,SAAS;GAC1B,UAAU,CAAC,cAAc,GAAG,IAAI;GAChC,SAAS,YAAY;IAEnB,MAAMC,eAAyB,GADd,IAAI,IAAI,UAAU,GACU,CAAC,IAAI,GAAG,EAAqB;IAE1E,MAAM,SAAS,aAAa,MAAM,KAAK;IAEvC,MAAM,EAAE,MAAM,UAAU,MAAM,WAAW,MAAM,cAAc;KAAE;KAAY;KAAQ,CAAC;AACpF,QAAI,OAAO;AACT,aAAQ,MAAM,MAAM;AACpB,WAAM;;AAGR,WAAO;KACL;KACA,SAAS,KAAK;KACf;;GAEJ,EAAE;EACH,UAAU,YAAY;GACpB,MAAM,SAAS,QAAQ,QAAQ,EAAE,YAAY,MAAM;AACnD,OAAI,OAAO,OAAQ,QAAO;IAAE,MAAM;IAAM;IAAQ;GAEhD,MAAM,SAAS,QAAQ,KAAK,EAAE,WAAW,KAAK;AAG9C,UAAO;IAAE,MAAM;KAAE,SAFD,QAAQ,OAAO,EAAE,WAAW,KAAK,QAAQ;KAE/B;KAAQ;IAAE,QAAQ;IAAM;;EAErD,CAAC"}
@@ -0,0 +1,34 @@
1
+ import * as _tanstack_react_query0 from "@tanstack/react-query";
2
+
3
+ //#region src/modules/auth/hooks/use-session.d.ts
4
+ declare function useSession(): _tanstack_react_query0.UseSuspenseQueryResult<{
5
+ user: {
6
+ id: string;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ email: string;
10
+ emailVerified: boolean;
11
+ name: string;
12
+ image?: string | null | undefined;
13
+ banned: boolean | null | undefined;
14
+ role?: string | null | undefined;
15
+ banReason?: string | null | undefined;
16
+ banExpires?: Date | null | undefined;
17
+ firstName: string;
18
+ lastName: string;
19
+ };
20
+ session: {
21
+ id: string;
22
+ createdAt: Date;
23
+ updatedAt: Date;
24
+ userId: string;
25
+ expiresAt: Date;
26
+ token: string;
27
+ ipAddress?: string | null | undefined;
28
+ userAgent?: string | null | undefined;
29
+ impersonatedBy?: string | null | undefined;
30
+ };
31
+ } | null, Error>;
32
+ //#endregion
33
+ export { useSession };
34
+ //# sourceMappingURL=use-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-session.d.ts","names":[],"sources":["../../../../src/modules/auth/hooks/use-session.ts"],"sourcesContent":[],"mappings":";;;iBAKgB,UAAA,CAAA,0BAAU;;;IAAV,SAAU,MAAA;IAAA,SAAA,MAAA;;;;;;;;4BAAA,GAAA,SAAA;IAAA,SAAA,EAAA,MAAA"}
@@ -0,0 +1,21 @@
1
+ "use client";
2
+
3
+
4
+ import { authClient } from "../handler/client.client.js";
5
+ import { useSuspenseQuery } from "@tanstack/react-query";
6
+
7
+ //#region src/modules/auth/hooks/use-session.ts
8
+ function useSession() {
9
+ return useSuspenseQuery({
10
+ queryKey: ["session"],
11
+ queryFn: async () => {
12
+ const session = await authClient.getSession();
13
+ if (session.error) throw session.error;
14
+ return session.data;
15
+ }
16
+ });
17
+ }
18
+
19
+ //#endregion
20
+ export { useSession };
21
+ //# sourceMappingURL=use-session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-session.js","names":[],"sources":["../../../../src/modules/auth/hooks/use-session.ts"],"sourcesContent":["\"use client\";\n\nimport { useSuspenseQuery } from \"@tanstack/react-query\";\nimport { authClient } from \"../entry.client\";\n\nexport function useSession() {\n const session = useSuspenseQuery({\n queryKey: [\"session\"],\n queryFn: async () => {\n const session = await authClient.getSession();\n if (session.error) throw session.error;\n\n return session.data;\n },\n });\n\n return session;\n}\n"],"mappings":";;;;;;;AAKA,SAAgB,aAAa;AAW3B,QAVgB,iBAAiB;EAC/B,UAAU,CAAC,UAAU;EACrB,SAAS,YAAY;GACnB,MAAM,UAAU,MAAM,WAAW,YAAY;AAC7C,OAAI,QAAQ,MAAO,OAAM,QAAQ;AAEjC,UAAO,QAAQ;;EAElB,CAAC"}
@@ -1,6 +1,6 @@
1
+ import { CreateUserSchema, UpdateUserSchema } from "./validators.js";
1
2
  import { TDatabaseSchema } from "../../config/db/types.js";
2
3
  import { GetTulipReturn } from "../../config/lib/resolve.server.js";
3
- import { CreateUserSchema, UpdateUserSchema } from "./validators.js";
4
4
  import "server-cli-only";
5
5
  import * as better_auth_plugins0 from "better-auth/plugins";
6
6
 
@@ -1,8 +1,8 @@
1
- import { ServerError } from "../../config/router/error.server.js";
2
1
  import { users } from "../db/schema.js";
2
+ import { ServerError } from "../../config/router/error.server.js";
3
+ import { eq } from "drizzle-orm";
3
4
  import { redirect } from "next/navigation";
4
5
  import "server-cli-only";
5
- import { eq } from "drizzle-orm";
6
6
  import { headers } from "next/headers";
7
7
 
8
8
  //#region src/modules/auth/lib/helpers.server.ts
@@ -36,7 +36,7 @@ declare const createUserSchema: z$1.ZodObject<{
36
36
  firstName: z$1.ZodString;
37
37
  lastName: z$1.ZodString;
38
38
  password: z$1.ZodString;
39
- role: z$1.ZodString;
39
+ role: z$1.ZodDefault<z$1.ZodString>;
40
40
  }, z$1.core.$strip>;
41
41
  type CreateUserSchema = z$1.infer<typeof createUserSchema>;
42
42
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"validators.d.ts","names":[],"sources":["../../../../src/modules/auth/lib/validators.ts"],"sourcesContent":[],"mappings":";;;;;;;AAQA;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AAA,GAAmB,GAAA,CAAE,aAAa;;;;AAAlC,cAKC,gBALe,EAKC,GAAA,CAAA,SALD,CAAA;EAAA,KAAA,eAAA;WAAkB,eAAA;UAAb,eAAA;EAAK,KAAA,iBAAA,gBAAA,cAAA,CAAA,CAAA;AAKtC,CAAA,EAAA;EAKE,GAAA,EAAA,CAAA,CAAA;;;KAEU,gBAAA,GAAmB,GAAA,CAAE,aAAa;;;;AAPjB,cAYhB,oBAZgB,EAYI,GAAA,CAAA,SAZJ,CAAA;EAAA,QAAA,eAAA;AAO7B,CAAA,iBAAY,CAAA;AAAgB,KAShB,oBAAA,GAAuB,GAAA,CAAE,KATT,CAAA,OASsB,oBATtB,CAAA"}
@@ -35,7 +35,7 @@ const createUserSchema = userSchema.pick({
35
35
  firstName: z$1.string().min(2, { message: "Voornaam moet langer zijn dan 2 karakters" }).max(50, { message: "Voornaam mag niet langer zijn dan 50 karakters" }),
36
36
  lastName: z$1.string().min(2, { message: "Achternaam moet langer zijn dan 2 karakters" }).max(50, { message: "Achternaam mag niet langer zijn dan 50 karakters" }),
37
37
  password: z$1.string().min(6, { message: "Wachtwoord moet minimaal 6 karakters hebben" }),
38
- role: z$1.string()
38
+ role: z$1.string().default("user")
39
39
  });
40
40
  /**
41
41
  * Update user schema
@@ -1 +1 @@
1
- {"version":3,"file":"validators.js","names":["z"],"sources":["../../../../src/modules/auth/lib/validators.ts"],"sourcesContent":["import { userSchema } from \"better-auth/db\";\nimport { createInsertSchema } from \"drizzle-zod\";\nimport { z } from \"zod\";\nimport { users } from \"../db/schema\";\n\n/**\n * User type\n */\nexport type User = typeof users.$inferSelect;\n\n/**\n * Login schema\n */\nexport const loginSchema = z.object({\n email: z\n .email({ message: \"Email moet een geldig email adres zijn\" })\n .min(2, { message: \"Email moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Email mag niet langer zijn dan 50 karakters\" }),\n password: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n});\n\n/**\n * Reset password schema\n */\nexport const resetPasswordSchema = z\n .object({\n password: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n passwordConfirmation: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n })\n .refine((data) => data.password === data.passwordConfirmation, {\n message: \"Wachtwoorden komen niet overeen\",\n path: [\"passwordConfirmation\"],\n });\n\n/**\n * Forgot password schema\n */\nexport const forgotPasswordSchema = z.object({\n email: z\n .email({ error: \"Email moet een geldig email adres zijn\" })\n .min(2, { message: \"Email moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Email mag niet langer zijn dan 50 karakters\" }),\n});\n\n/**\n * Create user schema\n */\nexport const createUserSchema = userSchema.pick({ email: true, image: true }).extend({\n firstName: z\n .string()\n .min(2, { message: \"Voornaam moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Voornaam mag niet langer zijn dan 50 karakters\" }),\n lastName: z\n .string()\n .min(2, { message: \"Achternaam moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Achternaam mag niet langer zijn dan 50 karakters\" }),\n password: z.string().min(6, { message: \"Wachtwoord moet minimaal 6 karakters hebben\" }),\n role: z.string(),\n});\n\nexport type CreateUserSchema = z.infer<typeof createUserSchema>;\n\n/**\n * Update user schema\n */\nexport const updateUserSchema = createInsertSchema(users).pick({\n firstName: true,\n lastName: true,\n email: true,\n image: true,\n});\n\nexport type UpdateUserSchema = z.infer<typeof updateUserSchema>;\n\n/**\n * Update password input validation\n */\nexport const updatePasswordSchema = z.object({\n password: z.string().min(6, { message: \"Wachtwoord moet minimaal 6 karakters hebben\" }),\n});\n\nexport type UpdatePasswordSchema = z.infer<typeof updatePasswordSchema>;\n"],"mappings":";;;;;;;;;AAaA,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S,+CAA+C,CAAC;CACvF,MAAMA,IAAE,QAAQ;CACjB,CAAC;;;;AAOF,MAAa,mBAAmB,mBAAmB,MAAM,CAAC,KAAK;CAC7D,WAAW;CACX,UAAU;CACV,OAAO;CACP,OAAO;CACR,CAAC;;;;AAOF,MAAa,uBAAuBA,IAAE,OAAO,EAC3C,UAAUA,IAAE,QAAQ,CAAC,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,EACxF,CAAC"}
1
+ {"version":3,"file":"validators.js","names":["z"],"sources":["../../../../src/modules/auth/lib/validators.ts"],"sourcesContent":["import { userSchema } from \"better-auth/db\";\nimport { createInsertSchema } from \"drizzle-zod\";\nimport { z } from \"zod\";\nimport { users } from \"../db/schema\";\n\n/**\n * User type\n */\nexport type User = typeof users.$inferSelect;\n\n/**\n * Login schema\n */\nexport const loginSchema = z.object({\n email: z\n .email({ message: \"Email moet een geldig email adres zijn\" })\n .min(2, { message: \"Email moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Email mag niet langer zijn dan 50 karakters\" }),\n password: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n});\n\n/**\n * Reset password schema\n */\nexport const resetPasswordSchema = z\n .object({\n password: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n passwordConfirmation: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n })\n .refine((data) => data.password === data.passwordConfirmation, {\n message: \"Wachtwoorden komen niet overeen\",\n path: [\"passwordConfirmation\"],\n });\n\n/**\n * Forgot password schema\n */\nexport const forgotPasswordSchema = z.object({\n email: z\n .email({ error: \"Email moet een geldig email adres zijn\" })\n .min(2, { message: \"Email moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Email mag niet langer zijn dan 50 karakters\" }),\n});\n\n/**\n * Create user schema\n */\nexport const createUserSchema = userSchema.pick({ email: true, image: true }).extend({\n firstName: z\n .string()\n .min(2, { message: \"Voornaam moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Voornaam mag niet langer zijn dan 50 karakters\" }),\n lastName: z\n .string()\n .min(2, { message: \"Achternaam moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Achternaam mag niet langer zijn dan 50 karakters\" }),\n password: z.string().min(6, { message: \"Wachtwoord moet minimaal 6 karakters hebben\" }),\n role: z.string().default(\"user\"),\n});\n\nexport type CreateUserSchema = z.infer<typeof createUserSchema>;\n\n/**\n * Update user schema\n */\nexport const updateUserSchema = createInsertSchema(users).pick({\n firstName: true,\n lastName: true,\n email: true,\n image: true,\n});\n\nexport type UpdateUserSchema = z.infer<typeof updateUserSchema>;\n\n/**\n * Update password input validation\n */\nexport const updatePasswordSchema = z.object({\n password: z.string().min(6, { message: \"Wachtwoord moet minimaal 6 karakters hebben\" }),\n});\n\nexport type UpdatePasswordSchema = z.infer<typeof updatePasswordSchema>;\n"],"mappings":";;;;;;;;;AAaA,MAAa,cAAcA,IAAE,OAAO;CAClC,OAAOA,IACJ,MAAM,EAAE,SAAS,0CAA0C,CAAC,CAC5D,IAAI,GAAG,EAAE,SAAS,0CAA0C,CAAC,CAC7D,IAAI,IAAI,EAAE,SAAS,+CAA+C,CAAC;CACtE,UAAUA,IACP,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC5E,CAAC;;;;AAKF,MAAa,sBAAsBA,IAChC,OAAO;CACN,UAAUA,IACP,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC3E,sBAAsBA,IACnB,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC5E,CAAC,CACD,QAAQ,SAAS,KAAK,aAAa,KAAK,sBAAsB;CAC7D,SAAS;CACT,MAAM,CAAC,uBAAuB;CAC/B,CAAC;;;;AAKJ,MAAa,uBAAuBA,IAAE,OAAO,EAC3C,OAAOA,IACJ,MAAM,EAAE,OAAO,0CAA0C,CAAC,CAC1D,IAAI,GAAG,EAAE,SAAS,0CAA0C,CAAC,CAC7D,IAAI,IAAI,EAAE,SAAS,+CAA+C,CAAC,EACvE,CAAC;;;;AAKF,MAAa,mBAAmB,WAAW,KAAK;CAAE,OAAO;CAAM,OAAO;CAAM,CAAC,CAAC,OAAO;CACnF,WAAWA,IACR,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,6CAA6C,CAAC,CAChE,IAAI,IAAI,EAAE,SAAS,kDAAkD,CAAC;CACzE,UAAUA,IACP,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC3E,UAAUA,IAAE,QAAQ,CAAC,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC;CACvF,MAAMA,IAAE,QAAQ,CAAC,QAAQ,OAAO;CACjC,CAAC;;;;AAOF,MAAa,mBAAmB,mBAAmB,MAAM,CAAC,KAAK;CAC7D,WAAW;CACX,UAAU;CACV,OAAO;CACP,OAAO;CACR,CAAC;;;;AAOF,MAAa,uBAAuBA,IAAE,OAAO,EAC3C,UAAUA,IAAE,QAAQ,CAAC,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,EACxF,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { CommandAction } from "../hooks/use-command-action.client.js";
2
- import * as react_jsx_runtime176 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime192 from "react/jsx-runtime";
3
3
  import React from "react";
4
- import { AlertDialogCancelProps, AlertDialogContentProps, AlertDialogProps } from "@radix-ui/react-alert-dialog";
5
4
  import { Keys } from "react-hotkeys-hook";
5
+ import { AlertDialogCancelProps, AlertDialogContentProps, AlertDialogProps } from "@radix-ui/react-alert-dialog";
6
6
 
7
7
  //#region src/modules/commands/components/alert-dialog-command.client.d.ts
8
8
  /**
@@ -11,7 +11,7 @@ import { Keys } from "react-hotkeys-hook";
11
11
  declare function CommandAlertDialog({
12
12
  children,
13
13
  ...props
14
- }: AlertDialogProps): react_jsx_runtime176.JSX.Element;
14
+ }: AlertDialogProps): react_jsx_runtime192.JSX.Element;
15
15
  /**
16
16
  * CommandAlertDialogTrigger
17
17
  */
@@ -28,49 +28,49 @@ declare function CommandAlertDialogTrigger({
28
28
  children,
29
29
  disabled,
30
30
  ...props
31
- }: CommandAlertDialogTriggerProps): react_jsx_runtime176.JSX.Element | undefined;
31
+ }: CommandAlertDialogTriggerProps): react_jsx_runtime192.JSX.Element | undefined;
32
32
  /**
33
33
  * CommandAlertDialogContent
34
34
  */
35
35
  declare function CommandAlertDialogContent({
36
36
  children,
37
37
  ...props
38
- }: AlertDialogContentProps): react_jsx_runtime176.JSX.Element;
38
+ }: AlertDialogContentProps): react_jsx_runtime192.JSX.Element;
39
39
  /**
40
40
  * CommandAlertDialogHeader
41
41
  */
42
42
  declare function CommandAlertDialogHeader({
43
43
  children,
44
44
  ...props
45
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime176.JSX.Element;
45
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime192.JSX.Element;
46
46
  /**
47
47
  * CommandAlertDialogTitle
48
48
  */
49
49
  declare function CommandAlertDialogTitle({
50
50
  children,
51
51
  ...props
52
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime176.JSX.Element;
52
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime192.JSX.Element;
53
53
  /**
54
54
  * CommandAlertDialogDescription
55
55
  */
56
56
  declare function CommandAlertDialogDescription({
57
57
  children,
58
58
  ...props
59
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime176.JSX.Element;
59
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime192.JSX.Element;
60
60
  /**
61
61
  * CommandAlertDialogFooter
62
62
  */
63
63
  declare function CommandAlertDialogFooter({
64
64
  children,
65
65
  ...props
66
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime176.JSX.Element;
66
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime192.JSX.Element;
67
67
  /**
68
68
  * CommandAlertDialogCancel
69
69
  */
70
70
  declare function CommandAlertDialogCancel({
71
71
  children,
72
72
  ...props
73
- }: AlertDialogCancelProps): react_jsx_runtime176.JSX.Element;
73
+ }: AlertDialogCancelProps): react_jsx_runtime192.JSX.Element;
74
74
  /**
75
75
  * CommandAlertDialogAction
76
76
  */
@@ -87,7 +87,7 @@ declare function CommandAlertDialogAction({
87
87
  children,
88
88
  disabled,
89
89
  ...props
90
- }: CommandAlertDialogActionProps): react_jsx_runtime176.JSX.Element;
90
+ }: CommandAlertDialogActionProps): react_jsx_runtime192.JSX.Element;
91
91
  //#endregion
92
92
  export { CommandAlertDialog, CommandAlertDialogAction, CommandAlertDialogCancel, CommandAlertDialogContent, CommandAlertDialogDescription, CommandAlertDialogFooter, CommandAlertDialogHeader, CommandAlertDialogTitle, CommandAlertDialogTrigger };
93
93
  //# sourceMappingURL=alert-dialog-command.client.d.ts.map
@@ -4,12 +4,12 @@
4
4
  import { Icons } from "../../../components/common/icons.js";
5
5
  import { cn } from "../../../lib/utils/cn.js";
6
6
  import { buttonVariants } from "../../../components/ui/button.js";
7
- import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "../../../components/ui/alert-dialog.js";
8
7
  import { ContextMenuItem } from "../../../components/ui/context-menu.js";
9
8
  import { DropdownMenuItem } from "../../../components/ui/dropdown-menu.js";
10
9
  import { useCommand } from "../hooks/context.client.js";
11
10
  import { useCommandAction } from "../hooks/use-command-action.client.js";
12
11
  import { CommandTrigger } from "./command-trigger.client.js";
12
+ import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "../../../components/ui/alert-dialog.js";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
14
14
  import React from "react";
15
15
  import { useHotkeys } from "react-hotkeys-hook";
@@ -1,5 +1,5 @@
1
1
  import { CommandAction } from "../hooks/use-command-action.client.js";
2
- import * as react_jsx_runtime185 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime201 from "react/jsx-runtime";
3
3
  import React from "react";
4
4
  import { Keys } from "react-hotkeys-hook";
5
5
 
@@ -21,7 +21,7 @@ declare function CommandClick({
21
21
  hotkey,
22
22
  disabled,
23
23
  ...props
24
- }: CommandClickProps): react_jsx_runtime185.JSX.Element | null;
24
+ }: CommandClickProps): react_jsx_runtime201.JSX.Element | null;
25
25
  //#endregion
26
26
  export { CommandClick, CommandClickProps };
27
27
  //# sourceMappingURL=click-command.client.d.ts.map
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime186 from "react/jsx-runtime";
2
- import * as react0 from "react";
1
+ import * as react_jsx_runtime202 from "react/jsx-runtime";
2
+ import * as react95 from "react";
3
3
  import { PropsWithChildren } from "react";
4
4
 
5
5
  //#region src/modules/commands/components/command-trigger.client.d.ts
@@ -9,7 +9,7 @@ import { PropsWithChildren } from "react";
9
9
  type CommandTriggerContextValue = {
10
10
  label?: string;
11
11
  };
12
- declare const CommandTriggerContext: react0.Context<CommandTriggerContextValue>;
12
+ declare const CommandTriggerContext: react95.Context<CommandTriggerContextValue>;
13
13
  /**
14
14
  * Command trigger
15
15
  */
@@ -18,17 +18,17 @@ declare function CommandTrigger({
18
18
  children
19
19
  }: PropsWithChildren<{
20
20
  label?: string;
21
- }>): react_jsx_runtime186.JSX.Element;
21
+ }>): react_jsx_runtime202.JSX.Element;
22
22
  /**
23
23
  * Command label
24
24
  */
25
- declare function CommandLabel(): react_jsx_runtime186.JSX.Element | null;
25
+ declare function CommandLabel(): react_jsx_runtime202.JSX.Element | null;
26
26
  /**
27
27
  * Command icon
28
28
  */
29
29
  declare function CommandIcon({
30
30
  children
31
- }: PropsWithChildren): react_jsx_runtime186.JSX.Element;
31
+ }: PropsWithChildren): react_jsx_runtime202.JSX.Element;
32
32
  //#endregion
33
33
  export { CommandIcon, CommandLabel, CommandTrigger, CommandTriggerContext };
34
34
  //# sourceMappingURL=command-trigger.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"command-trigger.client.d.ts","names":[],"sources":["../../../../src/modules/commands/components/command-trigger.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;KAcK,0BAAA;EAAA,KAAA,CAAA,EAAA,MAAA;AAIL,CAAA;AAAoF,cAAvE,qBAAuE,EAAlD,MAAA,CAAA,OAAkD,CAAlD,0BAAkD,CAAA;;;;AAKpE,iBAAA,cAAA,CAAc;EAAA,KAAA;EAAA;CAAA,EAAsB,iBAAtB,CAAA;EAAA,KAAA,CAAA,EAAA,MAAA;KAA2D,oBAAA,CAAA,GAAA,CAAA,OAAxD;;;;AAAwD,iBAmBzE,YAAA,CAAA,CAnByE,EAmB7D,oBAAA,CAAA,GAAA,CAAA,OAAA,GAnB6D,IAAA;AAmBzF;AAcA;;AAA8B,iBAAd,WAAA,CAAc;EAAA;AAAA,CAAA,EAAY,iBAAZ,CAAA,EAA6B,oBAAA,CAAA,GAAA,CAAA,OAA7B"}
1
+ {"version":3,"file":"command-trigger.client.d.ts","names":[],"sources":["../../../../src/modules/commands/components/command-trigger.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;KAcK,0BAAA;EAAA,KAAA,CAAA,EAAA,MAAA;AAIL,CAAA;AAAoF,cAAvE,qBAAuE,EAAlD,OAAA,CAAA,OAAkD,CAAlD,0BAAkD,CAAA;;;;AAKpE,iBAAA,cAAA,CAAc;EAAA,KAAA;EAAA;CAAA,EAAsB,iBAAtB,CAAA;EAAA,KAAA,CAAA,EAAA,MAAA;KAA2D,oBAAA,CAAA,GAAA,CAAA,OAAxD;;;;AAAwD,iBAmBzE,YAAA,CAAA,CAnByE,EAmB7D,oBAAA,CAAA,GAAA,CAAA,OAAA,GAnB6D,IAAA;AAmBzF;AAcA;;AAA8B,iBAAd,WAAA,CAAc;EAAA;AAAA,CAAA,EAAY,iBAAZ,CAAA,EAA6B,oBAAA,CAAA,GAAA,CAAA,OAA7B"}
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
 
3
3
 
4
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../../components/ui/tooltip.client.js";
5
4
  import { useCommand } from "../hooks/context.client.js";
5
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../../components/ui/tooltip.client.js";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import { createContext, useContext } from "react";
8
8
 
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime189 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime205 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { DialogContentProps, DialogProps } from "@radix-ui/react-dialog";
4
4
  import { Keys } from "react-hotkeys-hook";
@@ -10,7 +10,7 @@ import { Keys } from "react-hotkeys-hook";
10
10
  declare function CommandDialog({
11
11
  children,
12
12
  ...props
13
- }: DialogProps): react_jsx_runtime189.JSX.Element;
13
+ }: DialogProps): react_jsx_runtime205.JSX.Element;
14
14
  /**
15
15
  * CommandDialogTrigger
16
16
  */
@@ -27,42 +27,42 @@ declare function CommandDialogTrigger({
27
27
  children,
28
28
  disabled,
29
29
  ...props
30
- }: CommandDialogTriggerProps): react_jsx_runtime189.JSX.Element | undefined;
30
+ }: CommandDialogTriggerProps): react_jsx_runtime205.JSX.Element | undefined;
31
31
  /**
32
32
  * CommandDialogContent
33
33
  */
34
34
  declare function CommandDialogContent({
35
35
  children,
36
36
  ...props
37
- }: DialogContentProps): react_jsx_runtime189.JSX.Element;
37
+ }: DialogContentProps): react_jsx_runtime205.JSX.Element;
38
38
  /**
39
39
  * CommandDialogHeader
40
40
  */
41
41
  declare function CommandDialogHeader({
42
42
  children,
43
43
  ...props
44
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime189.JSX.Element;
44
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime205.JSX.Element;
45
45
  /**
46
46
  * CommandDialogTitle
47
47
  */
48
48
  declare function CommandDialogTitle({
49
49
  children,
50
50
  ...props
51
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime189.JSX.Element;
51
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime205.JSX.Element;
52
52
  /**
53
53
  * CommandDialogDescription
54
54
  */
55
55
  declare function CommandDialogDescription({
56
56
  children,
57
57
  ...props
58
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime189.JSX.Element;
58
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime205.JSX.Element;
59
59
  /**
60
60
  * CommandDialogFooter
61
61
  */
62
62
  declare function CommandDialogFooter({
63
63
  children,
64
64
  ...props
65
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime189.JSX.Element;
65
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime205.JSX.Element;
66
66
  //#endregion
67
67
  export { CommandDialog, CommandDialogContent, CommandDialogDescription, CommandDialogFooter, CommandDialogHeader, CommandDialogTitle, CommandDialogTrigger };
68
68
  //# sourceMappingURL=dialog-command.client.d.ts.map
@@ -3,8 +3,8 @@
3
3
 
4
4
  import { cn } from "../../../lib/utils/cn.js";
5
5
  import { buttonVariants } from "../../../components/ui/button.js";
6
- import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "../../../components/ui/dialog.client.js";
7
6
  import { ContextMenuItem } from "../../../components/ui/context-menu.js";
7
+ import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "../../../components/ui/dialog.client.js";
8
8
  import { DropdownMenuItem } from "../../../components/ui/dropdown-menu.js";
9
9
  import { useCommand } from "../hooks/context.client.js";
10
10
  import { CommandTrigger } from "./command-trigger.client.js";
@@ -1,5 +1,5 @@
1
1
  import { CommandAction } from "../hooks/use-command-action.client.js";
2
- import * as react_jsx_runtime196 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime212 from "react/jsx-runtime";
3
3
  import React from "react";
4
4
 
5
5
  //#region src/modules/commands/components/dropdown-command.client.d.ts
@@ -13,7 +13,7 @@ type CommandDropdownProps = {
13
13
  declare function CommandDropdown({
14
14
  children,
15
15
  ...props
16
- }: CommandDropdownProps): react_jsx_runtime196.JSX.Element | null;
16
+ }: CommandDropdownProps): react_jsx_runtime212.JSX.Element | null;
17
17
  /**
18
18
  * CommandDropdownContent
19
19
  */
@@ -24,7 +24,7 @@ type CommandDropdownContentProps = {
24
24
  declare function CommandDropdownContent({
25
25
  children,
26
26
  ...props
27
- }: CommandDropdownContentProps): react_jsx_runtime196.JSX.Element | null;
27
+ }: CommandDropdownContentProps): react_jsx_runtime212.JSX.Element | null;
28
28
  /**
29
29
  * CommandDropdownTrigger
30
30
  */
@@ -39,7 +39,7 @@ declare function CommandDropdownTrigger({
39
39
  disabled,
40
40
  children,
41
41
  ...props
42
- }: CommandDropdownTriggerProps): react_jsx_runtime196.JSX.Element | null;
42
+ }: CommandDropdownTriggerProps): react_jsx_runtime212.JSX.Element | null;
43
43
  /**
44
44
  * CommandDropdownItem
45
45
  */
@@ -54,7 +54,7 @@ declare function CommandDropdownItem({
54
54
  message,
55
55
  children,
56
56
  ...props
57
- }: CommandDropdownItemProps): react_jsx_runtime196.JSX.Element | null;
57
+ }: CommandDropdownItemProps): react_jsx_runtime212.JSX.Element | null;
58
58
  //#endregion
59
59
  export { CommandDropdown, CommandDropdownContent, CommandDropdownItem, CommandDropdownProps, CommandDropdownTrigger };
60
60
  //# sourceMappingURL=dropdown-command.client.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime200 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime216 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/modules/commands/components/empty-command.client.d.ts
@@ -13,7 +13,7 @@ declare function CommandEmpty({
13
13
  children,
14
14
  disabled,
15
15
  ...props
16
- }: CommandEmptyProps): react_jsx_runtime200.JSX.Element | null;
16
+ }: CommandEmptyProps): react_jsx_runtime216.JSX.Element | null;
17
17
  //#endregion
18
18
  export { CommandEmpty, CommandEmptyProps };
19
19
  //# sourceMappingURL=empty-command.client.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { CommandAction } from "../hooks/use-command-action.client.js";
2
- import * as react_jsx_runtime201 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime217 from "react/jsx-runtime";
3
3
  import React, { ComponentProps } from "react";
4
- import { DialogContentProps, DialogProps } from "@radix-ui/react-dialog";
5
4
  import { FieldValues, Form } from "react-hook-form";
5
+ import { DialogContentProps, DialogProps } from "@radix-ui/react-dialog";
6
6
  import { Keys } from "react-hotkeys-hook";
7
7
 
8
8
  //#region src/modules/commands/components/form-dialog-command.client.d.ts
@@ -12,7 +12,7 @@ import { Keys } from "react-hotkeys-hook";
12
12
  declare function CommandFormDialog({
13
13
  children,
14
14
  ...props
15
- }: DialogProps): react_jsx_runtime201.JSX.Element;
15
+ }: DialogProps): react_jsx_runtime217.JSX.Element;
16
16
  /**
17
17
  * CommandFormDialogTrigger
18
18
  */
@@ -29,28 +29,28 @@ declare function CommandFormDialogTrigger({
29
29
  children,
30
30
  disabled,
31
31
  ...props
32
- }: CommandFormDialogTriggerProps): react_jsx_runtime201.JSX.Element | undefined;
32
+ }: CommandFormDialogTriggerProps): react_jsx_runtime217.JSX.Element | undefined;
33
33
  /**
34
34
  * CommandFormDialogHeader
35
35
  */
36
36
  declare function CommandFormDialogHeader({
37
37
  children,
38
38
  ...props
39
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime201.JSX.Element;
39
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime217.JSX.Element;
40
40
  /**
41
41
  * CommandFormDialogTitle
42
42
  */
43
43
  declare function CommandFormDialogTitle({
44
44
  children,
45
45
  ...props
46
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime201.JSX.Element;
46
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime217.JSX.Element;
47
47
  /**
48
48
  * CommandFormDialogDescription
49
49
  */
50
50
  declare function CommandFormDialogDescription({
51
51
  children,
52
52
  ...props
53
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime201.JSX.Element;
53
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime217.JSX.Element;
54
54
  declare const CommandFormDialogContentProvider: typeof Form;
55
55
  /**
56
56
  * CommandFormDialogContent
@@ -65,7 +65,7 @@ declare function CommandFormDialogContent<TSchema extends FieldValues>({
65
65
  message,
66
66
  children,
67
67
  ...props
68
- }: CommandFormDialogContentProps<TSchema>): react_jsx_runtime201.JSX.Element;
68
+ }: CommandFormDialogContentProps<TSchema>): react_jsx_runtime217.JSX.Element;
69
69
  /**
70
70
  * FormDialogFields
71
71
  */
@@ -73,28 +73,28 @@ declare function CommandFormDialogFields({
73
73
  children,
74
74
  className,
75
75
  ...props
76
- }: ComponentProps<"div">): react_jsx_runtime201.JSX.Element;
76
+ }: ComponentProps<"div">): react_jsx_runtime217.JSX.Element;
77
77
  /**
78
78
  * CommandFormDialogFooter
79
79
  */
80
80
  declare function CommandFormDialogFooter({
81
81
  children,
82
82
  ...props
83
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime201.JSX.Element;
83
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime217.JSX.Element;
84
84
  /**
85
85
  * CommandFormDialogCancel
86
86
  */
87
87
  declare function CommandFormDialogCancel({
88
88
  children,
89
89
  ...props
90
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime201.JSX.Element;
90
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime217.JSX.Element;
91
91
  /**
92
92
  * CommandFormDialogSubmit
93
93
  */
94
94
  declare function CommandFormDialogSubmit({
95
95
  children,
96
96
  ...props
97
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime201.JSX.Element;
97
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime217.JSX.Element;
98
98
  //#endregion
99
99
  export { CommandFormDialog, CommandFormDialogCancel, CommandFormDialogContent, CommandFormDialogContentProps, CommandFormDialogContentProvider, CommandFormDialogDescription, CommandFormDialogFields, CommandFormDialogFooter, CommandFormDialogHeader, CommandFormDialogSubmit, CommandFormDialogTitle, CommandFormDialogTrigger };
100
100
  //# sourceMappingURL=form-dialog-command.client.d.ts.map