@tulip-systems/core 0.5.16 → 0.6.1

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 (936) hide show
  1. package/dist/auth/server.d.mts +1 -1
  2. package/dist/auth/server.mjs +1 -1
  3. package/dist/commands/client.d.mts +2 -1
  4. package/dist/commands/client.mjs +2 -1
  5. package/dist/components/client.d.mts +1 -1
  6. package/dist/components/client.mjs +1 -1
  7. package/dist/components/common/icons.d.mts +52 -52
  8. package/dist/components/common/icons.d.mts.map +1 -1
  9. package/dist/components/common/icons.mjs.map +1 -1
  10. package/dist/components/common/status.d.mts +3 -3
  11. package/dist/components/common/status.d.mts.map +1 -1
  12. package/dist/components/common/status.mjs.map +1 -1
  13. package/dist/components/editor/components/content.client.d.mts +2 -2
  14. package/dist/components/editor/components/content.client.d.mts.map +1 -1
  15. package/dist/components/editor/components/content.client.mjs.map +1 -1
  16. package/dist/components/editor/components/editor.client.d.mts +6 -6
  17. package/dist/components/editor/components/editor.client.d.mts.map +1 -1
  18. package/dist/components/editor/components/editor.client.mjs +2 -2
  19. package/dist/components/editor/components/editor.client.mjs.map +1 -1
  20. package/dist/components/editor/components/menu-nodes.client.mjs +3 -3
  21. package/dist/components/editor/components/menu-nodes.client.mjs.map +1 -1
  22. package/dist/components/editor/components/menu.client.d.mts +3 -3
  23. package/dist/components/editor/components/menu.client.d.mts.map +1 -1
  24. package/dist/components/editor/components/menu.client.mjs.map +1 -1
  25. package/dist/components/editor/extensions/file-handler/extension.d.mts.map +1 -1
  26. package/dist/components/editor/extensions/file-handler/extension.mjs.map +1 -1
  27. package/dist/components/editor/extensions/file-handler/strategy.d.mts.map +1 -1
  28. package/dist/components/editor/extensions/file-handler/strategy.mjs.map +1 -1
  29. package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -1
  30. package/dist/components/editor/extensions/image/extension.d.mts.map +1 -1
  31. package/dist/components/editor/extensions/image/extension.mjs.map +1 -1
  32. package/dist/components/editor/extensions/skeleton/renderer.mjs +1 -1
  33. package/dist/components/editor/extensions/skeleton/renderer.mjs.map +1 -1
  34. package/dist/components/editor/lib/constants.d.mts +27 -27
  35. package/dist/components/editor/lib/constants.d.mts.map +1 -1
  36. package/dist/components/editor/lib/extensions.d.mts +0 -1
  37. package/dist/components/editor/lib/extensions.d.mts.map +1 -1
  38. package/dist/components/editor/lib/extensions.mjs +6 -8
  39. package/dist/components/editor/lib/extensions.mjs.map +1 -1
  40. package/dist/components/editor/lib/helpers.d.mts +0 -1
  41. package/dist/components/editor/lib/helpers.d.mts.map +1 -1
  42. package/dist/components/editor/lib/helpers.mjs.map +1 -1
  43. package/dist/components/editor/lib/types.d.mts +0 -1
  44. package/dist/components/editor/lib/types.d.mts.map +1 -1
  45. package/dist/components/editor/lib/variants.mjs.map +1 -1
  46. package/dist/components/emails/forget-password-email.mjs +1 -2
  47. package/dist/components/emails/forget-password-email.mjs.map +1 -1
  48. package/dist/components/header/back-button.client.d.mts +2 -2
  49. package/dist/components/header/back-button.client.d.mts.map +1 -1
  50. package/dist/components/header/back-button.client.mjs.map +1 -1
  51. package/dist/components/header/bottom-bar.client.d.mts +3 -3
  52. package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
  53. package/dist/components/header/bottom-bar.client.mjs.map +1 -1
  54. package/dist/components/header/breadcrumbs.client.d.mts +7 -7
  55. package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
  56. package/dist/components/header/breadcrumbs.client.mjs.map +1 -1
  57. package/dist/components/header/header.client.d.mts +2 -2
  58. package/dist/components/header/header.client.d.mts.map +1 -1
  59. package/dist/components/header/header.client.mjs.map +1 -1
  60. package/dist/components/header/indicator.client.mjs.map +1 -1
  61. package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
  62. package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
  63. package/dist/components/header/top-bar.client.d.mts +4 -4
  64. package/dist/components/header/top-bar.client.d.mts.map +1 -1
  65. package/dist/components/header/top-bar.client.mjs.map +1 -1
  66. package/dist/components/layouts/admin-content.client.d.mts +2 -2
  67. package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
  68. package/dist/components/layouts/admin-content.client.mjs.map +1 -1
  69. package/dist/components/layouts/admin-error-pages.d.mts +4 -4
  70. package/dist/components/layouts/admin-error-pages.d.mts.map +1 -1
  71. package/dist/components/layouts/admin-error-pages.mjs.map +1 -1
  72. package/dist/components/layouts/admin-layout.d.mts +2 -2
  73. package/dist/components/layouts/admin-layout.d.mts.map +1 -1
  74. package/dist/components/layouts/admin-layout.mjs.map +1 -1
  75. package/dist/components/layouts/admin-loading.d.mts +2 -2
  76. package/dist/components/layouts/admin-loading.d.mts.map +1 -1
  77. package/dist/components/layouts/admin-loading.mjs.map +1 -1
  78. package/dist/components/layouts/empty-page.d.mts +4 -4
  79. package/dist/components/layouts/empty-page.d.mts.map +1 -1
  80. package/dist/components/layouts/empty-page.mjs.map +1 -1
  81. package/dist/components/layouts/error-page.d.mts +9 -9
  82. package/dist/components/layouts/error-page.d.mts.map +1 -1
  83. package/dist/components/layouts/error-page.mjs.map +1 -1
  84. package/dist/components/layouts/error-sections.d.mts +5 -5
  85. package/dist/components/layouts/error-sections.d.mts.map +1 -1
  86. package/dist/components/layouts/error-sections.mjs.map +1 -1
  87. package/dist/components/layouts/list-layout.d.mts +2 -2
  88. package/dist/components/layouts/list-layout.d.mts.map +1 -1
  89. package/dist/components/layouts/list-layout.mjs.map +1 -1
  90. package/dist/components/layouts/providers.client.d.mts +2 -2
  91. package/dist/components/layouts/providers.client.d.mts.map +1 -1
  92. package/dist/components/layouts/providers.client.mjs +1 -1
  93. package/dist/components/layouts/providers.client.mjs.map +1 -1
  94. package/dist/components/layouts/root-error-pages.d.mts +2 -2
  95. package/dist/components/layouts/root-error-pages.d.mts.map +1 -1
  96. package/dist/components/layouts/root-layout.server.d.mts +2 -2
  97. package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
  98. package/dist/components/layouts/root-layout.server.mjs.map +1 -1
  99. package/dist/components/layouts/root-loading.d.mts +2 -2
  100. package/dist/components/layouts/root-loading.d.mts.map +1 -1
  101. package/dist/components/layouts/tab-layout.d.mts +2 -2
  102. package/dist/components/layouts/tab-layout.d.mts.map +1 -1
  103. package/dist/components/layouts/tab-layout.mjs +3 -3
  104. package/dist/components/layouts/tab-layout.mjs.map +1 -1
  105. package/dist/components/lists/data-list.d.mts +5 -5
  106. package/dist/components/lists/data-list.d.mts.map +1 -1
  107. package/dist/components/lists/data-list.mjs.map +1 -1
  108. package/dist/components/lists/data-stack.d.mts +8 -8
  109. package/dist/components/lists/data-stack.d.mts.map +1 -1
  110. package/dist/components/lists/data-stack.mjs.map +1 -1
  111. package/dist/components/navigation/admin-sidebar-header.client.mjs.map +1 -1
  112. package/dist/components/navigation/admin-sidebar-paths.client.d.mts +10 -10
  113. package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
  114. package/dist/components/navigation/admin-sidebar-paths.client.mjs.map +1 -1
  115. package/dist/components/navigation/admin-sidebar-skeleton.mjs.map +1 -1
  116. package/dist/components/ui/accordion.d.mts +5 -5
  117. package/dist/components/ui/accordion.d.mts.map +1 -1
  118. package/dist/components/ui/accordion.mjs +0 -1
  119. package/dist/components/ui/accordion.mjs.map +1 -1
  120. package/dist/components/ui/alert-dialog.d.mts +12 -12
  121. package/dist/components/ui/alert-dialog.d.mts.map +1 -1
  122. package/dist/components/ui/alert-dialog.mjs +0 -1
  123. package/dist/components/ui/alert-dialog.mjs.map +1 -1
  124. package/dist/components/ui/alert.d.mts +4 -4
  125. package/dist/components/ui/alert.d.mts.map +1 -1
  126. package/dist/components/ui/alert.mjs +0 -1
  127. package/dist/components/ui/alert.mjs.map +1 -1
  128. package/dist/components/ui/aspect-ratio.d.mts +2 -2
  129. package/dist/components/ui/aspect-ratio.d.mts.map +1 -1
  130. package/dist/components/ui/avatar.client.d.mts +4 -4
  131. package/dist/components/ui/avatar.client.d.mts.map +1 -1
  132. package/dist/components/ui/avatar.client.mjs +0 -1
  133. package/dist/components/ui/avatar.client.mjs.map +1 -1
  134. package/dist/components/ui/badge.d.mts +3 -3
  135. package/dist/components/ui/badge.d.mts.map +1 -1
  136. package/dist/components/ui/badge.mjs +0 -1
  137. package/dist/components/ui/badge.mjs.map +1 -1
  138. package/dist/components/ui/breadcrumb.d.mts +8 -8
  139. package/dist/components/ui/breadcrumb.d.mts.map +1 -1
  140. package/dist/components/ui/breadcrumb.mjs +1 -2
  141. package/dist/components/ui/breadcrumb.mjs.map +1 -1
  142. package/dist/components/ui/button.d.mts +5 -5
  143. package/dist/components/ui/button.d.mts.map +1 -1
  144. package/dist/components/ui/button.mjs +0 -1
  145. package/dist/components/ui/button.mjs.map +1 -1
  146. package/dist/components/ui/calendar.d.mts +3 -3
  147. package/dist/components/ui/calendar.d.mts.map +1 -1
  148. package/dist/components/ui/calendar.mjs +12 -12
  149. package/dist/components/ui/calendar.mjs.map +1 -1
  150. package/dist/components/ui/card.d.mts +7 -7
  151. package/dist/components/ui/card.d.mts.map +1 -1
  152. package/dist/components/ui/card.mjs +0 -1
  153. package/dist/components/ui/card.mjs.map +1 -1
  154. package/dist/components/ui/carousel.d.mts +6 -6
  155. package/dist/components/ui/carousel.d.mts.map +1 -1
  156. package/dist/components/ui/carousel.mjs +4 -4
  157. package/dist/components/ui/carousel.mjs.map +1 -1
  158. package/dist/components/ui/chart.client.d.mts +5 -5
  159. package/dist/components/ui/chart.client.d.mts.map +1 -1
  160. package/dist/components/ui/chart.client.mjs +6 -6
  161. package/dist/components/ui/chart.client.mjs.map +1 -1
  162. package/dist/components/ui/checkbox.d.mts +2 -2
  163. package/dist/components/ui/checkbox.d.mts.map +1 -1
  164. package/dist/components/ui/checkbox.mjs +0 -1
  165. package/dist/components/ui/checkbox.mjs.map +1 -1
  166. package/dist/components/ui/collapsible.client.d.mts +4 -4
  167. package/dist/components/ui/collapsible.client.d.mts.map +1 -1
  168. package/dist/components/ui/color-picker.client.d.mts +2 -2
  169. package/dist/components/ui/color-picker.client.d.mts.map +1 -1
  170. package/dist/components/ui/color-picker.client.mjs +6 -5
  171. package/dist/components/ui/color-picker.client.mjs.map +1 -1
  172. package/dist/components/ui/combobox-dropdown.client.d.mts +2 -3
  173. package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
  174. package/dist/components/ui/combobox-dropdown.client.mjs +3 -3
  175. package/dist/components/ui/combobox-dropdown.client.mjs.map +1 -1
  176. package/dist/components/ui/combobox.client.d.mts +2 -2
  177. package/dist/components/ui/combobox.client.d.mts.map +1 -1
  178. package/dist/components/ui/combobox.client.mjs +2 -2
  179. package/dist/components/ui/combobox.client.mjs.map +1 -1
  180. package/dist/components/ui/command.d.mts +10 -10
  181. package/dist/components/ui/command.d.mts.map +1 -1
  182. package/dist/components/ui/command.mjs +0 -1
  183. package/dist/components/ui/command.mjs.map +1 -1
  184. package/dist/components/ui/context-menu.d.mts +16 -16
  185. package/dist/components/ui/context-menu.d.mts.map +1 -1
  186. package/dist/components/ui/context-menu.mjs +0 -1
  187. package/dist/components/ui/context-menu.mjs.map +1 -1
  188. package/dist/components/ui/date-picker.client.d.mts +2 -2
  189. package/dist/components/ui/date-picker.client.d.mts.map +1 -1
  190. package/dist/components/ui/date-picker.client.mjs +3 -3
  191. package/dist/components/ui/date-picker.client.mjs.map +1 -1
  192. package/dist/components/ui/dialog.client.d.mts +11 -11
  193. package/dist/components/ui/dialog.client.d.mts.map +1 -1
  194. package/dist/components/ui/dialog.client.mjs +0 -1
  195. package/dist/components/ui/dialog.client.mjs.map +1 -1
  196. package/dist/components/ui/drawer.client.d.mts +11 -11
  197. package/dist/components/ui/drawer.client.d.mts.map +1 -1
  198. package/dist/components/ui/drawer.client.mjs +0 -1
  199. package/dist/components/ui/drawer.client.mjs.map +1 -1
  200. package/dist/components/ui/dropdown-menu.d.mts +16 -16
  201. package/dist/components/ui/dropdown-menu.d.mts.map +1 -1
  202. package/dist/components/ui/dropdown-menu.mjs +0 -1
  203. package/dist/components/ui/dropdown-menu.mjs.map +1 -1
  204. package/dist/components/ui/form.client.d.mts +7 -7
  205. package/dist/components/ui/form.client.d.mts.map +1 -1
  206. package/dist/components/ui/form.client.mjs.map +1 -1
  207. package/dist/components/ui/hover-card.client.d.mts +4 -4
  208. package/dist/components/ui/hover-card.client.d.mts.map +1 -1
  209. package/dist/components/ui/hover-card.client.mjs +0 -1
  210. package/dist/components/ui/hover-card.client.mjs.map +1 -1
  211. package/dist/components/ui/input-date-time.d.mts +6 -6
  212. package/dist/components/ui/input-date-time.d.mts.map +1 -1
  213. package/dist/components/ui/input-date-time.mjs +4 -6
  214. package/dist/components/ui/input-date-time.mjs.map +1 -1
  215. package/dist/components/ui/input-date.d.mts +2 -2
  216. package/dist/components/ui/input-date.d.mts.map +1 -1
  217. package/dist/components/ui/input-recipient.d.mts +2 -2
  218. package/dist/components/ui/input-recipient.d.mts.map +1 -1
  219. package/dist/components/ui/input-recipient.mjs +2 -2
  220. package/dist/components/ui/input-recipient.mjs.map +1 -1
  221. package/dist/components/ui/input-time.d.mts +2 -2
  222. package/dist/components/ui/input-time.d.mts.map +1 -1
  223. package/dist/components/ui/input.d.mts +2 -2
  224. package/dist/components/ui/input.d.mts.map +1 -1
  225. package/dist/components/ui/input.mjs +0 -1
  226. package/dist/components/ui/input.mjs.map +1 -1
  227. package/dist/components/ui/label.d.mts +2 -2
  228. package/dist/components/ui/label.d.mts.map +1 -1
  229. package/dist/components/ui/label.mjs +0 -1
  230. package/dist/components/ui/label.mjs.map +1 -1
  231. package/dist/components/ui/navigation-menu.d.mts +11 -11
  232. package/dist/components/ui/navigation-menu.d.mts.map +1 -1
  233. package/dist/components/ui/navigation-menu.mjs +0 -1
  234. package/dist/components/ui/navigation-menu.mjs.map +1 -1
  235. package/dist/components/ui/pagination.d.mts +8 -8
  236. package/dist/components/ui/pagination.d.mts.map +1 -1
  237. package/dist/components/ui/pagination.mjs +0 -1
  238. package/dist/components/ui/pagination.mjs.map +1 -1
  239. package/dist/components/ui/popover.d.mts +5 -5
  240. package/dist/components/ui/popover.d.mts.map +1 -1
  241. package/dist/components/ui/popover.mjs +0 -1
  242. package/dist/components/ui/popover.mjs.map +1 -1
  243. package/dist/components/ui/progress.client.d.mts +2 -2
  244. package/dist/components/ui/progress.client.d.mts.map +1 -1
  245. package/dist/components/ui/progress.client.mjs +0 -1
  246. package/dist/components/ui/progress.client.mjs.map +1 -1
  247. package/dist/components/ui/radio-group.d.mts +3 -3
  248. package/dist/components/ui/radio-group.d.mts.map +1 -1
  249. package/dist/components/ui/radio-group.mjs +0 -1
  250. package/dist/components/ui/radio-group.mjs.map +1 -1
  251. package/dist/components/ui/resizable.client.d.mts +4 -4
  252. package/dist/components/ui/resizable.client.d.mts.map +1 -1
  253. package/dist/components/ui/resizable.client.mjs +0 -1
  254. package/dist/components/ui/resizable.client.mjs.map +1 -1
  255. package/dist/components/ui/scroll-area.d.mts +3 -3
  256. package/dist/components/ui/scroll-area.d.mts.map +1 -1
  257. package/dist/components/ui/scroll-area.mjs +0 -1
  258. package/dist/components/ui/scroll-area.mjs.map +1 -1
  259. package/dist/components/ui/select.client.d.mts +11 -11
  260. package/dist/components/ui/select.client.d.mts.map +1 -1
  261. package/dist/components/ui/select.client.mjs +0 -1
  262. package/dist/components/ui/select.client.mjs.map +1 -1
  263. package/dist/components/ui/separator.d.mts +2 -2
  264. package/dist/components/ui/separator.d.mts.map +1 -1
  265. package/dist/components/ui/separator.mjs +0 -1
  266. package/dist/components/ui/separator.mjs.map +1 -1
  267. package/dist/components/ui/sheet.client.d.mts +9 -9
  268. package/dist/components/ui/sheet.client.d.mts.map +1 -1
  269. package/dist/components/ui/sheet.client.mjs +0 -1
  270. package/dist/components/ui/sheet.client.mjs.map +1 -1
  271. package/dist/components/ui/sidebar.client.d.mts +26 -26
  272. package/dist/components/ui/sidebar.client.d.mts.map +1 -1
  273. package/dist/components/ui/sidebar.client.mjs +2 -2
  274. package/dist/components/ui/sidebar.client.mjs.map +1 -1
  275. package/dist/components/ui/skeleton.d.mts +2 -2
  276. package/dist/components/ui/skeleton.d.mts.map +1 -1
  277. package/dist/components/ui/slider.d.mts +2 -2
  278. package/dist/components/ui/slider.d.mts.map +1 -1
  279. package/dist/components/ui/sonner.client.d.mts +2 -2
  280. package/dist/components/ui/sonner.client.d.mts.map +1 -1
  281. package/dist/components/ui/sonner.client.mjs.map +1 -1
  282. package/dist/components/ui/switch.d.mts +2 -2
  283. package/dist/components/ui/switch.d.mts.map +1 -1
  284. package/dist/components/ui/switch.mjs +0 -1
  285. package/dist/components/ui/switch.mjs.map +1 -1
  286. package/dist/components/ui/tabs.d.mts +5 -5
  287. package/dist/components/ui/tabs.d.mts.map +1 -1
  288. package/dist/components/ui/tabs.mjs +0 -1
  289. package/dist/components/ui/tabs.mjs.map +1 -1
  290. package/dist/components/ui/textarea.d.mts +2 -2
  291. package/dist/components/ui/textarea.d.mts.map +1 -1
  292. package/dist/components/ui/textarea.mjs +0 -1
  293. package/dist/components/ui/textarea.mjs.map +1 -1
  294. package/dist/components/ui/toggle-group.client.d.mts +3 -3
  295. package/dist/components/ui/toggle-group.client.d.mts.map +1 -1
  296. package/dist/components/ui/toggle-group.client.mjs.map +1 -1
  297. package/dist/components/ui/toggle.d.mts +4 -4
  298. package/dist/components/ui/toggle.d.mts.map +1 -1
  299. package/dist/components/ui/toggle.mjs +0 -1
  300. package/dist/components/ui/toggle.mjs.map +1 -1
  301. package/dist/components/ui/tooltip.client.d.mts +5 -5
  302. package/dist/components/ui/tooltip.client.d.mts.map +1 -1
  303. package/dist/components/ui/tooltip.client.mjs +0 -1
  304. package/dist/components/ui/tooltip.client.mjs.map +1 -1
  305. package/dist/components.d.mts +1 -1
  306. package/dist/components.mjs +1 -1
  307. package/dist/data-tables/client.d.mts +4 -4
  308. package/dist/data-tables/client.mjs +4 -4
  309. package/dist/inline-edit/client.d.mts +4 -4
  310. package/dist/inline-edit/client.mjs +2 -2
  311. package/dist/lib/config/constants.d.mts.map +1 -1
  312. package/dist/lib/config/constants.mjs.map +1 -1
  313. package/dist/lib/hooks/use-action.d.mts +0 -1
  314. package/dist/lib/hooks/use-action.d.mts.map +1 -1
  315. package/dist/lib/hooks/use-action.mjs.map +1 -1
  316. package/dist/lib/hooks/use-indicator.d.mts +2 -2
  317. package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
  318. package/dist/lib/hooks/use-indicator.mjs +14 -11
  319. package/dist/lib/hooks/use-indicator.mjs.map +1 -1
  320. package/dist/lib/hooks/use-mobile.client.d.mts.map +1 -1
  321. package/dist/lib/types/config.d.mts.map +1 -1
  322. package/dist/lib/utils/array-move.d.mts.map +1 -1
  323. package/dist/lib/utils/cn.d.mts.map +1 -1
  324. package/dist/lib/utils/cn.mjs.map +1 -1
  325. package/dist/lib/utils/fonts.d.mts.map +1 -1
  326. package/dist/lib/utils/format.d.mts.map +1 -1
  327. package/dist/lib/utils/manifest.d.mts.map +1 -1
  328. package/dist/lib/utils/manifest.mjs.map +1 -1
  329. package/dist/lib/utils/url.d.mts.map +1 -1
  330. package/dist/lib/utils/url.mjs +1 -1
  331. package/dist/lib/utils/url.mjs.map +1 -1
  332. package/dist/modules/auth/components/allowed.client.d.mts +2 -2
  333. package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
  334. package/dist/modules/auth/components/allowed.client.mjs.map +1 -1
  335. package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
  336. package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
  337. package/dist/modules/auth/components/auth-layout.server.mjs +1 -1
  338. package/dist/modules/auth/components/auth-layout.server.mjs.map +1 -1
  339. package/dist/modules/auth/components/auth-loading.d.mts +2 -2
  340. package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
  341. package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
  342. package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
  343. package/dist/modules/auth/components/create-first-user-page.client.mjs +1 -1
  344. package/dist/modules/auth/components/create-first-user-page.client.mjs.map +1 -1
  345. package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
  346. package/dist/modules/auth/components/forget-password-page.client.d.mts.map +1 -1
  347. package/dist/modules/auth/components/forget-password-page.client.mjs +2 -2
  348. package/dist/modules/auth/components/forget-password-page.client.mjs.map +1 -1
  349. package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
  350. package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
  351. package/dist/modules/auth/components/guard-first-user.server.mjs.map +1 -1
  352. package/dist/modules/auth/components/guard.server.d.mts +2 -2
  353. package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
  354. package/dist/modules/auth/components/guard.server.mjs.map +1 -1
  355. package/dist/modules/auth/components/login-page.client.d.mts +2 -2
  356. package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
  357. package/dist/modules/auth/components/login-page.client.mjs +1 -1
  358. package/dist/modules/auth/components/login-page.client.mjs.map +1 -1
  359. package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
  360. package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
  361. package/dist/modules/auth/components/reset-password-page.client.mjs +2 -2
  362. package/dist/modules/auth/components/reset-password-page.client.mjs.map +1 -1
  363. package/dist/modules/auth/components/update-password-command.d.mts +2 -2
  364. package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
  365. package/dist/modules/auth/components/update-password-command.mjs +0 -1
  366. package/dist/modules/auth/components/update-password-command.mjs.map +1 -1
  367. package/dist/modules/auth/db/schema.d.mts +73 -73
  368. package/dist/modules/auth/db/schema.d.mts.map +1 -1
  369. package/dist/modules/auth/db/schema.mjs +1 -1
  370. package/dist/modules/auth/db/schema.mjs.map +1 -1
  371. package/dist/modules/auth/handler/create-client.client.d.mts +159 -159
  372. package/dist/modules/auth/handler/create-client.client.d.mts.map +1 -1
  373. package/dist/modules/auth/handler/create-client.client.mjs.map +1 -1
  374. package/dist/modules/auth/handler/init.d.mts +98 -98
  375. package/dist/modules/auth/handler/init.d.mts.map +1 -1
  376. package/dist/modules/auth/handler/init.mjs +2 -2
  377. package/dist/modules/auth/handler/init.mjs.map +1 -1
  378. package/dist/modules/auth/handler/proxy.server.d.mts +0 -1
  379. package/dist/modules/auth/handler/proxy.server.d.mts.map +1 -1
  380. package/dist/modules/auth/handler/proxy.server.mjs +0 -1
  381. package/dist/modules/auth/handler/proxy.server.mjs.map +1 -1
  382. package/dist/modules/auth/handler/route.server.d.mts +0 -1
  383. package/dist/modules/auth/handler/route.server.d.mts.map +1 -1
  384. package/dist/modules/auth/handler/route.server.mjs.map +1 -1
  385. package/dist/modules/auth/hooks/use-auth-client.d.mts +4 -4
  386. package/dist/modules/auth/hooks/use-auth-client.d.mts.map +1 -1
  387. package/dist/modules/auth/hooks/use-auth-client.mjs.map +1 -1
  388. package/dist/modules/auth/hooks/use-permission.d.mts.map +1 -1
  389. package/dist/modules/auth/hooks/use-permission.mjs +2 -2
  390. package/dist/modules/auth/hooks/use-permission.mjs.map +1 -1
  391. package/dist/modules/auth/hooks/use-session.d.mts +2 -2
  392. package/dist/modules/auth/hooks/use-session.d.mts.map +1 -1
  393. package/dist/modules/auth/hooks/use-session.mjs.map +1 -1
  394. package/dist/modules/auth/lib/helpers.server.d.mts.map +1 -1
  395. package/dist/modules/auth/lib/helpers.server.mjs +2 -2
  396. package/dist/modules/auth/lib/helpers.server.mjs.map +1 -1
  397. package/dist/modules/auth/lib/permissions.d.mts.map +1 -1
  398. package/dist/modules/auth/lib/validators.d.mts +2 -3
  399. package/dist/modules/auth/lib/validators.d.mts.map +1 -1
  400. package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
  401. package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
  402. package/dist/modules/commands/components/alert-dialog-command.client.mjs.map +1 -1
  403. package/dist/modules/commands/components/click-command.client.d.mts +2 -2
  404. package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
  405. package/dist/modules/commands/components/click-command.client.mjs +0 -1
  406. package/dist/modules/commands/components/click-command.client.mjs.map +1 -1
  407. package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
  408. package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
  409. package/dist/modules/commands/components/command-trigger.client.mjs.map +1 -1
  410. package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
  411. package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
  412. package/dist/modules/commands/components/dialog-command.client.mjs.map +1 -1
  413. package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
  414. package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
  415. package/dist/modules/commands/components/dropdown-command.client.mjs.map +1 -1
  416. package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
  417. package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
  418. package/dist/modules/commands/components/empty-command.client.mjs +0 -1
  419. package/dist/modules/commands/components/empty-command.client.mjs.map +1 -1
  420. package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
  421. package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
  422. package/dist/modules/commands/components/form-dialog-command.client.mjs.map +1 -1
  423. package/dist/modules/commands/components/render-command.mjs.map +1 -1
  424. package/dist/modules/commands/hooks/context.client.mjs.map +1 -1
  425. package/dist/modules/commands/hooks/use-command-menu.client.d.mts +8 -1
  426. package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +1 -1
  427. package/dist/modules/commands/hooks/use-command-menu.client.mjs +1 -1
  428. package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
  429. package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +2 -2
  430. package/dist/modules/commands/hooks/use-command-mutation.client.d.mts.map +1 -1
  431. package/dist/modules/commands/hooks/use-command-mutation.client.mjs.map +1 -1
  432. package/dist/modules/commands/lib/definitions.d.mts +0 -1
  433. package/dist/modules/commands/lib/definitions.d.mts.map +1 -1
  434. package/dist/modules/commands/lib/factory.d.mts.map +1 -1
  435. package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
  436. package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
  437. package/dist/modules/commands/menus/context-menu.client.mjs +5 -5
  438. package/dist/modules/commands/menus/context-menu.client.mjs.map +1 -1
  439. package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
  440. package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
  441. package/dist/modules/commands/menus/dropdown-menu.client.mjs.map +1 -1
  442. package/dist/modules/commands/menus/floating-menu.client.d.mts +19 -0
  443. package/dist/modules/commands/menus/floating-menu.client.d.mts.map +1 -0
  444. package/dist/modules/commands/menus/{data-table-menu.client.mjs → floating-menu.client.mjs} +10 -10
  445. package/dist/modules/commands/menus/floating-menu.client.mjs.map +1 -0
  446. package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
  447. package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
  448. package/dist/modules/commands/menus/inline-menu.client.mjs +0 -1
  449. package/dist/modules/commands/menus/inline-menu.client.mjs.map +1 -1
  450. package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
  451. package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
  452. package/dist/modules/commands/menus/responsive-menu.client.mjs.map +1 -1
  453. package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
  454. package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
  455. package/dist/modules/commands/utils/archive-command.client.mjs.map +1 -1
  456. package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
  457. package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
  458. package/dist/modules/commands/utils/delete-command.client.mjs.map +1 -1
  459. package/dist/modules/config/db/helpers.d.mts +5 -5
  460. package/dist/modules/config/db/helpers.d.mts.map +1 -1
  461. package/dist/modules/config/db/helpers.mjs.map +1 -1
  462. package/dist/modules/config/db/init.d.mts.map +1 -1
  463. package/dist/modules/config/db/init.mjs.map +1 -1
  464. package/dist/modules/config/db/types.d.mts.map +1 -1
  465. package/dist/modules/config/lib/config.d.mts.map +1 -1
  466. package/dist/modules/config/lib/context.d.mts.map +1 -1
  467. package/dist/modules/config/lib/context.mjs.map +1 -1
  468. package/dist/modules/config/paths/helpers.d.mts +0 -1
  469. package/dist/modules/config/paths/helpers.d.mts.map +1 -1
  470. package/dist/modules/config/paths/helpers.mjs.map +1 -1
  471. package/dist/modules/config/paths/types.d.mts +0 -1
  472. package/dist/modules/config/paths/types.d.mts.map +1 -1
  473. package/dist/modules/config/providers/email.d.mts.map +1 -1
  474. package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
  475. package/dist/modules/data-tables/components/cell/common.client.d.mts.map +1 -1
  476. package/dist/modules/data-tables/components/cell/common.client.mjs.map +1 -1
  477. package/dist/modules/data-tables/components/cell/index.client.d.mts.map +1 -1
  478. package/dist/modules/data-tables/components/cell/select.client.d.mts.map +1 -1
  479. package/dist/modules/data-tables/components/column-header.d.mts +2 -2
  480. package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
  481. package/dist/modules/data-tables/components/column-header.mjs.map +1 -1
  482. package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
  483. package/dist/modules/data-tables/components/filters/combobox.client.d.mts.map +1 -1
  484. package/dist/modules/data-tables/components/filters/combobox.client.mjs.map +1 -1
  485. package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
  486. package/dist/modules/data-tables/components/filters/slider.client.d.mts.map +1 -1
  487. package/dist/modules/data-tables/components/filters/slider.client.mjs +1 -1
  488. package/dist/modules/data-tables/components/filters/slider.client.mjs.map +1 -1
  489. package/dist/modules/data-tables/components/footer.mjs.map +1 -1
  490. package/dist/modules/data-tables/components/header.d.mts +4 -4
  491. package/dist/modules/data-tables/components/header.d.mts.map +1 -1
  492. package/dist/modules/data-tables/components/header.mjs.map +1 -1
  493. package/dist/modules/data-tables/components/layout.d.mts +2 -2
  494. package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
  495. package/dist/modules/data-tables/components/layout.mjs.map +1 -1
  496. package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
  497. package/dist/modules/data-tables/components/search-input.client.d.mts.map +1 -1
  498. package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
  499. package/dist/modules/data-tables/components/skeleton.d.mts.map +1 -1
  500. package/dist/modules/data-tables/components/skeleton.mjs +4 -4
  501. package/dist/modules/data-tables/components/skeleton.mjs.map +1 -1
  502. package/dist/modules/data-tables/components/table.d.mts +7 -7
  503. package/dist/modules/data-tables/components/table.d.mts.map +1 -1
  504. package/dist/modules/data-tables/components/table.mjs +0 -1
  505. package/dist/modules/data-tables/components/table.mjs.map +1 -1
  506. package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
  507. package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
  508. package/dist/modules/data-tables/components/toolbar.mjs.map +1 -1
  509. package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
  510. package/dist/modules/data-tables/hooks/use-context.client.d.mts.map +1 -1
  511. package/dist/modules/data-tables/hooks/use-context.client.mjs.map +1 -1
  512. package/dist/modules/data-tables/hooks/use-selection.client.mjs.map +1 -1
  513. package/dist/modules/data-tables/hooks/use-table.client.d.mts.map +1 -1
  514. package/dist/modules/data-tables/hooks/use-table.client.mjs.map +1 -1
  515. package/dist/modules/data-tables/lib/converters/cursor.d.mts +0 -1
  516. package/dist/modules/data-tables/lib/converters/cursor.d.mts.map +1 -1
  517. package/dist/modules/data-tables/lib/converters/cursor.mjs.map +1 -1
  518. package/dist/modules/data-tables/lib/converters/dto.d.mts +0 -1
  519. package/dist/modules/data-tables/lib/converters/dto.d.mts.map +1 -1
  520. package/dist/modules/data-tables/lib/converters/dto.mjs.map +1 -1
  521. package/dist/modules/data-tables/lib/converters/filter.d.mts.map +1 -1
  522. package/dist/modules/data-tables/lib/converters/search.d.mts +1 -1
  523. package/dist/modules/data-tables/lib/converters/search.d.mts.map +1 -1
  524. package/dist/modules/data-tables/lib/converters/search.mjs.map +1 -1
  525. package/dist/modules/data-tables/lib/converters/sorting.d.mts +1 -1
  526. package/dist/modules/data-tables/lib/converters/sorting.d.mts.map +1 -1
  527. package/dist/modules/data-tables/lib/converters/sorting.mjs.map +1 -1
  528. package/dist/modules/data-tables/lib/filters/config.d.mts.map +1 -1
  529. package/dist/modules/data-tables/lib/filters/config.mjs.map +1 -1
  530. package/dist/modules/data-tables/lib/filters/helpers.d.mts.map +1 -1
  531. package/dist/modules/data-tables/lib/filters/helpers.mjs +4 -4
  532. package/dist/modules/data-tables/lib/filters/helpers.mjs.map +1 -1
  533. package/dist/modules/data-tables/lib/filters/parsers.d.mts.map +1 -1
  534. package/dist/modules/data-tables/lib/filters/parsers.mjs.map +1 -1
  535. package/dist/modules/data-tables/lib/filters/resolvers.d.mts.map +1 -1
  536. package/dist/modules/data-tables/lib/filters/resolvers.mjs +1 -1
  537. package/dist/modules/data-tables/lib/filters/resolvers.mjs.map +1 -1
  538. package/dist/modules/data-tables/lib/helpers/create-column.mjs.map +1 -1
  539. package/dist/modules/data-tables/lib/search-params.d.mts +6 -6
  540. package/dist/modules/data-tables/lib/search-params.d.mts.map +1 -1
  541. package/dist/modules/data-tables/lib/types.d.mts +0 -1
  542. package/dist/modules/data-tables/lib/types.d.mts.map +1 -1
  543. package/dist/modules/data-tables/lib/validators.d.mts +0 -1
  544. package/dist/modules/data-tables/lib/validators.d.mts.map +1 -1
  545. package/dist/modules/data-tables/server/get-data.server.d.mts +1 -1
  546. package/dist/modules/data-tables/server/get-data.server.d.mts.map +1 -1
  547. package/dist/modules/data-tables/server/get-data.server.mjs.map +1 -1
  548. package/dist/modules/data-tables/strategies/helpers/sorting.mjs.map +1 -1
  549. package/dist/modules/data-tables/strategies/infinite/components.mjs +1 -1
  550. package/dist/modules/data-tables/strategies/infinite/components.mjs.map +1 -1
  551. package/dist/modules/data-tables/strategies/infinite/strategy.d.mts.map +1 -1
  552. package/dist/modules/data-tables/strategies/infinite/strategy.mjs.map +1 -1
  553. package/dist/modules/data-tables/strategies/pagination/components.mjs.map +1 -1
  554. package/dist/modules/data-tables/strategies/pagination/strategy.d.mts.map +1 -1
  555. package/dist/modules/data-tables/strategies/pagination/strategy.mjs.map +1 -1
  556. package/dist/modules/data-tables/tables/data-table/components/body.mjs.map +1 -1
  557. package/dist/modules/data-tables/tables/data-table/components/header.mjs.map +1 -1
  558. package/dist/modules/data-tables/tables/data-table/components/row.mjs +0 -1
  559. package/dist/modules/data-tables/tables/data-table/components/row.mjs.map +1 -1
  560. package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
  561. package/dist/modules/data-tables/tables/data-table/components/table.d.mts.map +1 -1
  562. package/dist/modules/data-tables/tables/data-table/components/table.mjs +8 -2
  563. package/dist/modules/data-tables/tables/data-table/components/table.mjs.map +1 -1
  564. package/dist/modules/data-tables/tables/inline-table/components/body.mjs.map +1 -1
  565. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
  566. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts.map +1 -1
  567. package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs +0 -1
  568. package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs.map +1 -1
  569. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
  570. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts.map +1 -1
  571. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.mjs.map +1 -1
  572. package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts +2 -2
  573. package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts.map +1 -1
  574. package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs +0 -1
  575. package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs.map +1 -1
  576. package/dist/modules/data-tables/tables/inline-table/components/header.mjs.map +1 -1
  577. package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs +0 -1
  578. package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs.map +1 -1
  579. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
  580. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts.map +1 -1
  581. package/dist/modules/data-tables/tables/inline-table/components/table.mjs +8 -2
  582. package/dist/modules/data-tables/tables/inline-table/components/table.mjs.map +1 -1
  583. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
  584. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts.map +1 -1
  585. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.mjs.map +1 -1
  586. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
  587. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
  588. package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs +5 -1
  589. package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs.map +1 -1
  590. package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
  591. package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
  592. package/dist/modules/inline-edit/components/combobox.client.mjs +8 -4
  593. package/dist/modules/inline-edit/components/combobox.client.mjs.map +1 -1
  594. package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
  595. package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
  596. package/dist/modules/inline-edit/components/date-input.client.mjs +5 -1
  597. package/dist/modules/inline-edit/components/date-input.client.mjs.map +1 -1
  598. package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
  599. package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
  600. package/dist/modules/inline-edit/components/date-picker.client.mjs +8 -4
  601. package/dist/modules/inline-edit/components/date-picker.client.mjs.map +1 -1
  602. package/dist/modules/inline-edit/components/date-time.client.d.mts +2 -2
  603. package/dist/modules/inline-edit/components/date-time.client.d.mts.map +1 -1
  604. package/dist/modules/inline-edit/components/date-time.client.mjs +6 -1
  605. package/dist/modules/inline-edit/components/date-time.client.mjs.map +1 -1
  606. package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
  607. package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
  608. package/dist/modules/inline-edit/components/editor.client.mjs +7 -3
  609. package/dist/modules/inline-edit/components/editor.client.mjs.map +1 -1
  610. package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
  611. package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
  612. package/dist/modules/inline-edit/components/input-recipient.client.mjs +5 -1
  613. package/dist/modules/inline-edit/components/input-recipient.client.mjs.map +1 -1
  614. package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
  615. package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
  616. package/dist/modules/inline-edit/components/input-toggle.client.mjs +5 -1
  617. package/dist/modules/inline-edit/components/input-toggle.client.mjs.map +1 -1
  618. package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
  619. package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
  620. package/dist/modules/inline-edit/components/input.client.mjs +16 -4
  621. package/dist/modules/inline-edit/components/input.client.mjs.map +1 -1
  622. package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
  623. package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
  624. package/dist/modules/inline-edit/components/select.client.mjs +8 -4
  625. package/dist/modules/inline-edit/components/select.client.mjs.map +1 -1
  626. package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
  627. package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
  628. package/dist/modules/inline-edit/components/switch.client.mjs +5 -1
  629. package/dist/modules/inline-edit/components/switch.client.mjs.map +1 -1
  630. package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
  631. package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
  632. package/dist/modules/inline-edit/components/toggle.client.mjs +8 -4
  633. package/dist/modules/inline-edit/components/toggle.client.mjs.map +1 -1
  634. package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
  635. package/dist/modules/inline-edit/hooks/context.client.d.mts.map +1 -1
  636. package/dist/modules/inline-edit/hooks/context.client.mjs +1 -1
  637. package/dist/modules/inline-edit/hooks/context.client.mjs.map +1 -1
  638. package/dist/modules/inline-edit/hooks/use-inline.client.d.mts +22 -7
  639. package/dist/modules/inline-edit/hooks/use-inline.client.d.mts.map +1 -1
  640. package/dist/modules/inline-edit/hooks/use-inline.client.mjs +12 -9
  641. package/dist/modules/inline-edit/hooks/use-inline.client.mjs.map +1 -1
  642. package/dist/modules/inline-edit/lib/validators.d.mts +0 -1
  643. package/dist/modules/inline-edit/lib/validators.d.mts.map +1 -1
  644. package/dist/modules/inline-edit/lib/validators.mjs.map +1 -1
  645. package/dist/modules/inline-edit/lib/variants.d.mts +3 -3
  646. package/dist/modules/inline-edit/lib/variants.d.mts.map +1 -1
  647. package/dist/modules/inline-edit/lib/variants.mjs.map +1 -1
  648. package/dist/modules/router/handler/caller.client.d.mts +0 -1
  649. package/dist/modules/router/handler/caller.client.d.mts.map +1 -1
  650. package/dist/modules/router/handler/caller.client.mjs.map +1 -1
  651. package/dist/modules/router/handler/caller.server.d.mts.map +1 -1
  652. package/dist/modules/router/handler/context.server.d.mts.map +1 -1
  653. package/dist/modules/router/handler/context.server.mjs.map +1 -1
  654. package/dist/modules/router/handler/init.server.d.mts +6 -6
  655. package/dist/modules/router/handler/init.server.d.mts.map +1 -1
  656. package/dist/modules/router/handler/init.server.mjs.map +1 -1
  657. package/dist/modules/router/handler/register.server.d.mts.map +1 -1
  658. package/dist/modules/router/handler/register.server.mjs.map +1 -1
  659. package/dist/modules/router/handler/route.server.d.mts +0 -1
  660. package/dist/modules/router/handler/route.server.d.mts.map +1 -1
  661. package/dist/modules/router/handler/route.server.mjs.map +1 -1
  662. package/dist/modules/router/lib/query-client.d.mts +0 -1
  663. package/dist/modules/router/lib/query-client.d.mts.map +1 -1
  664. package/dist/modules/router/lib/query-client.mjs.map +1 -1
  665. package/dist/modules/router/lib/query-client.server.d.mts.map +1 -1
  666. package/dist/modules/router/lib/validators.d.mts +0 -1
  667. package/dist/modules/router/lib/validators.d.mts.map +1 -1
  668. package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
  669. package/dist/modules/storage/components/dropzone-context.client.d.mts.map +1 -1
  670. package/dist/modules/storage/components/dropzone-context.client.mjs.map +1 -1
  671. package/dist/modules/storage/components/dropzone.client.d.mts +3 -3
  672. package/dist/modules/storage/components/dropzone.client.d.mts.map +1 -1
  673. package/dist/modules/storage/components/dropzone.client.mjs.map +1 -1
  674. package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
  675. package/dist/modules/storage/components/image-grid.client.d.mts.map +1 -1
  676. package/dist/modules/storage/components/image-grid.client.mjs +2 -0
  677. package/dist/modules/storage/components/image-grid.client.mjs.map +1 -1
  678. package/dist/modules/storage/components/upload-zone-context.client.d.mts +1 -1
  679. package/dist/modules/storage/components/upload-zone-context.client.d.mts.map +1 -1
  680. package/dist/modules/storage/components/upload-zone-context.client.mjs.map +1 -1
  681. package/dist/modules/storage/components/upload-zone.client.d.mts +4 -3
  682. package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
  683. package/dist/modules/storage/components/upload-zone.client.mjs +9 -7
  684. package/dist/modules/storage/components/upload-zone.client.mjs.map +1 -1
  685. package/dist/modules/storage/config/filters.d.mts.map +1 -1
  686. package/dist/modules/storage/config/filters.mjs.map +1 -1
  687. package/dist/modules/storage/lib/constants.d.mts.map +1 -1
  688. package/dist/modules/storage/lib/create-client.server.d.mts.map +1 -1
  689. package/dist/modules/storage/lib/create-client.server.mjs.map +1 -1
  690. package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -1
  691. package/dist/modules/storage/lib/create-upload.client.mjs.map +1 -1
  692. package/dist/modules/storage/lib/helpers.d.mts +0 -1
  693. package/dist/modules/storage/lib/helpers.d.mts.map +1 -1
  694. package/dist/modules/storage/lib/helpers.mjs.map +1 -1
  695. package/dist/modules/storage/lib/proxy.server.d.mts.map +1 -1
  696. package/dist/modules/storage/lib/proxy.server.mjs.map +1 -1
  697. package/dist/modules/storage/lib/router.server.d.mts +27 -27
  698. package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
  699. package/dist/modules/storage/lib/router.server.mjs.map +1 -1
  700. package/dist/modules/storage/lib/schema.d.mts +92 -92
  701. package/dist/modules/storage/lib/schema.d.mts.map +1 -1
  702. package/dist/modules/storage/lib/schema.mjs +1 -1
  703. package/dist/modules/storage/lib/schema.mjs.map +1 -1
  704. package/dist/modules/storage/lib/service.server.d.mts +18 -18
  705. package/dist/modules/storage/lib/service.server.d.mts.map +1 -1
  706. package/dist/modules/storage/lib/service.server.mjs.map +1 -1
  707. package/dist/modules/storage/lib/validators.d.mts +92 -92
  708. package/dist/modules/storage/lib/validators.d.mts.map +1 -1
  709. package/dist/modules/storage/lib/validators.mjs.map +1 -1
  710. package/dist/storage/client.d.mts +1 -1
  711. package/package.json +89 -92
  712. package/src/components/common/icons.tsx +2 -2
  713. package/src/components/common/status.tsx +1 -1
  714. package/src/components/editor/components/content.client.tsx +1 -1
  715. package/src/components/editor/components/editor.client.tsx +6 -6
  716. package/src/components/editor/components/menu-nodes.client.tsx +11 -11
  717. package/src/components/editor/components/menu.client.tsx +5 -5
  718. package/src/components/editor/components/spinner.tsx +2 -8
  719. package/src/components/editor/extensions/file-handler/extension.ts +1 -1
  720. package/src/components/editor/extensions/file-handler/strategy.ts +4 -4
  721. package/src/components/editor/extensions/file-handler/utils.ts +4 -2
  722. package/src/components/editor/extensions/image/extension.ts +4 -1
  723. package/src/components/editor/extensions/skeleton/renderer.tsx +4 -3
  724. package/src/components/editor/lib/extensions.ts +23 -26
  725. package/src/components/editor/lib/helpers.ts +1 -1
  726. package/src/components/editor/lib/utils.ts +1 -33
  727. package/src/components/editor/lib/variants.ts +1 -1
  728. package/src/components/emails/forget-password-email.tsx +1 -1
  729. package/src/components/entry.client.ts +1 -1
  730. package/src/components/entry.ts +1 -1
  731. package/src/components/header/back-button.client.tsx +1 -1
  732. package/src/components/header/bottom-bar.client.tsx +3 -3
  733. package/src/components/header/breadcrumbs.client.tsx +2 -2
  734. package/src/components/header/header.client.tsx +1 -1
  735. package/src/components/header/indicator.client.tsx +2 -2
  736. package/src/components/header/top-bar.client.tsx +3 -3
  737. package/src/components/layouts/admin-content.client.tsx +1 -1
  738. package/src/components/layouts/admin-error-pages.tsx +1 -1
  739. package/src/components/layouts/admin-layout.tsx +1 -1
  740. package/src/components/layouts/admin-loading.tsx +1 -1
  741. package/src/components/layouts/empty-page.tsx +1 -1
  742. package/src/components/layouts/error-page.tsx +2 -2
  743. package/src/components/layouts/error-sections.tsx +1 -1
  744. package/src/components/layouts/list-layout.tsx +1 -1
  745. package/src/components/layouts/providers.client.tsx +4 -4
  746. package/src/components/layouts/root-layout.server.tsx +3 -3
  747. package/src/components/layouts/tab-layout.tsx +3 -3
  748. package/src/components/lists/data-list.tsx +1 -1
  749. package/src/components/lists/data-stack.tsx +1 -1
  750. package/src/components/navigation/admin-sidebar-header.client.tsx +13 -13
  751. package/src/components/navigation/admin-sidebar-paths.client.tsx +6 -6
  752. package/src/components/navigation/admin-sidebar-skeleton.tsx +1 -1
  753. package/src/components/navigation/admin-sidebar.client.tsx +6 -5
  754. package/src/components/ui/accordion.tsx +1 -2
  755. package/src/components/ui/alert-dialog.tsx +1 -1
  756. package/src/components/ui/alert.tsx +1 -1
  757. package/src/components/ui/avatar.client.tsx +1 -1
  758. package/src/components/ui/badge.tsx +1 -1
  759. package/src/components/ui/breadcrumb.tsx +4 -2
  760. package/src/components/ui/button.tsx +1 -1
  761. package/src/components/ui/calendar.tsx +2 -3
  762. package/src/components/ui/card.tsx +1 -1
  763. package/src/components/ui/carousel.tsx +2 -0
  764. package/src/components/ui/chart.client.tsx +12 -10
  765. package/src/components/ui/checkbox.tsx +1 -1
  766. package/src/components/ui/color-picker.client.tsx +4 -3
  767. package/src/components/ui/combobox-dropdown.client.tsx +2 -4
  768. package/src/components/ui/combobox.client.tsx +2 -2
  769. package/src/components/ui/command.tsx +1 -1
  770. package/src/components/ui/context-menu.tsx +1 -1
  771. package/src/components/ui/date-picker.client.tsx +2 -2
  772. package/src/components/ui/dialog.client.tsx +1 -1
  773. package/src/components/ui/drawer.client.tsx +1 -1
  774. package/src/components/ui/dropdown-menu.tsx +1 -1
  775. package/src/components/ui/form.client.tsx +4 -4
  776. package/src/components/ui/hover-card.client.tsx +1 -1
  777. package/src/components/ui/input-date-time.tsx +13 -11
  778. package/src/components/ui/input-recipient.tsx +6 -3
  779. package/src/components/ui/input.tsx +1 -1
  780. package/src/components/ui/label.tsx +1 -1
  781. package/src/components/ui/navigation-menu.tsx +1 -1
  782. package/src/components/ui/pagination.tsx +4 -2
  783. package/src/components/ui/popover.tsx +1 -1
  784. package/src/components/ui/progress.client.tsx +1 -1
  785. package/src/components/ui/radio-group.tsx +1 -1
  786. package/src/components/ui/resizable.client.tsx +1 -1
  787. package/src/components/ui/scroll-area.tsx +1 -1
  788. package/src/components/ui/select.client.tsx +1 -1
  789. package/src/components/ui/separator.tsx +1 -1
  790. package/src/components/ui/sheet.client.tsx +1 -1
  791. package/src/components/ui/sidebar.client.tsx +5 -2
  792. package/src/components/ui/sonner.client.tsx +1 -1
  793. package/src/components/ui/switch.tsx +1 -1
  794. package/src/components/ui/tabs.tsx +1 -1
  795. package/src/components/ui/textarea.tsx +1 -1
  796. package/src/components/ui/toggle-group.client.tsx +1 -1
  797. package/src/components/ui/toggle.tsx +1 -1
  798. package/src/components/ui/tooltip.client.tsx +1 -1
  799. package/src/lib/config/constants.ts +1 -1
  800. package/src/lib/hooks/use-action.ts +3 -3
  801. package/src/lib/hooks/use-indicator.tsx +17 -8
  802. package/src/lib/types/config.ts +1 -1
  803. package/src/lib/utils/cn.ts +1 -1
  804. package/src/lib/utils/manifest.ts +3 -2
  805. package/src/lib/utils/time-picker.ts +2 -2
  806. package/src/lib/utils/url.ts +1 -1
  807. package/src/modules/auth/components/allowed.client.tsx +2 -2
  808. package/src/modules/auth/components/auth-layout.server.tsx +2 -2
  809. package/src/modules/auth/components/create-first-user-page.client.tsx +10 -11
  810. package/src/modules/auth/components/forget-password-page.client.tsx +5 -5
  811. package/src/modules/auth/components/guard-first-user.server.tsx +2 -5
  812. package/src/modules/auth/components/guard.server.tsx +3 -3
  813. package/src/modules/auth/components/login-page.client.tsx +5 -5
  814. package/src/modules/auth/components/reset-password-page.client.tsx +7 -7
  815. package/src/modules/auth/components/update-password-command.tsx +5 -5
  816. package/src/modules/auth/db/schema.ts +2 -2
  817. package/src/modules/auth/entry.server.ts +1 -1
  818. package/src/modules/auth/handler/create-client.client.ts +3 -3
  819. package/src/modules/auth/handler/init.ts +6 -6
  820. package/src/modules/auth/handler/proxy.server.ts +1 -2
  821. package/src/modules/auth/handler/route.server.ts +2 -2
  822. package/src/modules/auth/hooks/use-auth-client.tsx +3 -3
  823. package/src/modules/auth/hooks/use-permission.ts +1 -1
  824. package/src/modules/auth/hooks/use-session.ts +1 -2
  825. package/src/modules/auth/lib/helpers.server.ts +4 -4
  826. package/src/modules/commands/components/alert-dialog-command.client.tsx +8 -8
  827. package/src/modules/commands/components/click-command.client.tsx +3 -3
  828. package/src/modules/commands/components/command-trigger.client.tsx +1 -1
  829. package/src/modules/commands/components/dialog-command.client.tsx +3 -3
  830. package/src/modules/commands/components/dropdown-command.client.tsx +2 -2
  831. package/src/modules/commands/components/empty-command.client.tsx +1 -1
  832. package/src/modules/commands/components/form-dialog-command.client.tsx +5 -5
  833. package/src/modules/commands/components/render-command.tsx +2 -2
  834. package/src/modules/commands/entry.client.ts +16 -0
  835. package/src/modules/commands/hooks/context.client.tsx +1 -1
  836. package/src/modules/commands/hooks/use-command-menu.client.tsx +6 -4
  837. package/src/modules/commands/hooks/use-command-mutation.client.tsx +1 -1
  838. package/src/modules/commands/menus/context-menu.client.tsx +20 -19
  839. package/src/modules/commands/menus/dropdown-menu.client.tsx +6 -3
  840. package/src/modules/commands/menus/floating-menu.client.tsx +54 -0
  841. package/src/modules/commands/menus/inline-menu.client.tsx +6 -2
  842. package/src/modules/commands/menus/responsive-menu.client.tsx +1 -1
  843. package/src/modules/commands/utils/archive-command.client.tsx +1 -1
  844. package/src/modules/commands/utils/delete-command.client.tsx +1 -1
  845. package/src/modules/config/db/helpers.ts +1 -1
  846. package/src/modules/config/db/init.ts +2 -2
  847. package/src/modules/config/lib/context.ts +5 -5
  848. package/src/modules/config/paths/helpers.ts +1 -1
  849. package/src/modules/config/paths/types.ts +4 -5
  850. package/src/modules/data-tables/components/cell/common.client.tsx +1 -1
  851. package/src/modules/data-tables/components/column-header.tsx +2 -2
  852. package/src/modules/data-tables/components/filters/combobox.client.tsx +3 -3
  853. package/src/modules/data-tables/components/filters/slider.client.tsx +5 -5
  854. package/src/modules/data-tables/components/footer.tsx +2 -2
  855. package/src/modules/data-tables/components/header.tsx +2 -2
  856. package/src/modules/data-tables/components/layout.tsx +1 -1
  857. package/src/modules/data-tables/components/skeleton.tsx +22 -29
  858. package/src/modules/data-tables/components/table.tsx +1 -1
  859. package/src/modules/data-tables/components/toolbar.tsx +1 -1
  860. package/src/modules/data-tables/entry.client.ts +9 -13
  861. package/src/modules/data-tables/hooks/use-context.client.tsx +6 -6
  862. package/src/modules/data-tables/hooks/use-selection.client.ts +1 -1
  863. package/src/modules/data-tables/hooks/use-table.client.ts +1 -1
  864. package/src/modules/data-tables/lib/converters/cursor.ts +1 -1
  865. package/src/modules/data-tables/lib/converters/dto.ts +1 -1
  866. package/src/modules/data-tables/lib/converters/search.ts +2 -2
  867. package/src/modules/data-tables/lib/converters/sorting.ts +2 -2
  868. package/src/modules/data-tables/lib/filters/config.ts +2 -2
  869. package/src/modules/data-tables/lib/filters/helpers.ts +4 -4
  870. package/src/modules/data-tables/lib/filters/parsers.ts +2 -2
  871. package/src/modules/data-tables/lib/filters/resolvers.ts +2 -2
  872. package/src/modules/data-tables/lib/helpers/create-column.ts +1 -1
  873. package/src/modules/data-tables/lib/types.ts +6 -5
  874. package/src/modules/data-tables/server/get-data.server.ts +8 -8
  875. package/src/modules/data-tables/strategies/helpers/sorting.ts +7 -3
  876. package/src/modules/data-tables/strategies/infinite/components.tsx +4 -4
  877. package/src/modules/data-tables/strategies/infinite/strategy.ts +2 -2
  878. package/src/modules/data-tables/strategies/pagination/components.tsx +2 -2
  879. package/src/modules/data-tables/strategies/pagination/strategy.ts +2 -2
  880. package/src/modules/data-tables/tables/data-table/components/body.tsx +3 -3
  881. package/src/modules/data-tables/tables/data-table/components/header.tsx +1 -1
  882. package/src/modules/data-tables/tables/data-table/components/row.tsx +3 -3
  883. package/src/modules/data-tables/tables/data-table/components/table.tsx +13 -4
  884. package/src/modules/data-tables/tables/inline-table/components/body.tsx +5 -5
  885. package/src/modules/data-tables/tables/inline-table/components/cells/common.tsx +1 -1
  886. package/src/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.tsx +9 -5
  887. package/src/modules/data-tables/tables/inline-table/components/cells/read-only.tsx +1 -1
  888. package/src/modules/data-tables/tables/inline-table/components/header.tsx +1 -1
  889. package/src/modules/data-tables/tables/inline-table/components/row.client.tsx +5 -5
  890. package/src/modules/data-tables/tables/inline-table/components/table.tsx +14 -5
  891. package/src/modules/data-tables/tables/inline-table/hooks/context.client.tsx +2 -2
  892. package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +6 -2
  893. package/src/modules/inline-edit/components/combobox.client.tsx +6 -2
  894. package/src/modules/inline-edit/components/date-input.client.tsx +8 -4
  895. package/src/modules/inline-edit/components/date-picker.client.tsx +7 -3
  896. package/src/modules/inline-edit/components/date-time.client.tsx +20 -4
  897. package/src/modules/inline-edit/components/editor.client.tsx +7 -3
  898. package/src/modules/inline-edit/components/input-recipient.client.tsx +7 -3
  899. package/src/modules/inline-edit/components/input-toggle.client.tsx +7 -3
  900. package/src/modules/inline-edit/components/input.client.tsx +15 -3
  901. package/src/modules/inline-edit/components/select.client.tsx +12 -8
  902. package/src/modules/inline-edit/components/switch.client.tsx +5 -1
  903. package/src/modules/inline-edit/components/toggle.client.tsx +5 -1
  904. package/src/modules/inline-edit/entry.client.ts +3 -2
  905. package/src/modules/inline-edit/hooks/context.client.tsx +3 -2
  906. package/src/modules/inline-edit/hooks/use-inline.client.tsx +42 -18
  907. package/src/modules/inline-edit/lib/parsers.ts +9 -0
  908. package/src/modules/inline-edit/lib/validators.ts +1 -1
  909. package/src/modules/inline-edit/lib/variants.ts +1 -1
  910. package/src/modules/router/handler/caller.client.tsx +2 -2
  911. package/src/modules/router/handler/context.server.ts +4 -4
  912. package/src/modules/router/handler/init.server.ts +3 -3
  913. package/src/modules/router/handler/register.server.ts +3 -3
  914. package/src/modules/router/handler/route.server.ts +3 -3
  915. package/src/modules/router/lib/query-client.ts +0 -1
  916. package/src/modules/storage/components/dropzone-context.client.tsx +1 -1
  917. package/src/modules/storage/components/dropzone.client.tsx +3 -3
  918. package/src/modules/storage/components/image-grid.client.tsx +23 -19
  919. package/src/modules/storage/components/upload-button.client.tsx +2 -2
  920. package/src/modules/storage/components/upload-zone-context.client.tsx +3 -2
  921. package/src/modules/storage/components/upload-zone.client.tsx +13 -7
  922. package/src/modules/storage/config/filters.ts +1 -1
  923. package/src/modules/storage/entry.client.ts +3 -2
  924. package/src/modules/storage/lib/create-client.server.ts +2 -2
  925. package/src/modules/storage/lib/create-upload.client.ts +2 -2
  926. package/src/modules/storage/lib/helpers.ts +3 -3
  927. package/src/modules/storage/lib/proxy.server.ts +4 -4
  928. package/src/modules/storage/lib/router.server.ts +5 -5
  929. package/src/modules/storage/lib/schema.ts +2 -2
  930. package/src/modules/storage/lib/service.server.ts +21 -21
  931. package/src/modules/storage/lib/validators.ts +3 -3
  932. package/src/styles.css +1 -1
  933. package/dist/modules/commands/menus/data-table-menu.client.mjs.map +0 -1
  934. package/src/modules/auth/lib/utils.ts +0 -17
  935. package/src/modules/commands/menus/data-table-menu.client.tsx +0 -46
  936. package/src/modules/config/db/create-client.ts +0 -40
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.mjs","names":[],"sources":["../../../src/components/ui/dropdown-menu.tsx"],"sourcesContent":["\"use client\";\n\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />;\n}\n\nfunction DropdownMenuPortal({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n return <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />;\n}\n\nfunction DropdownMenuTrigger({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return <DropdownMenuPrimitive.Trigger data-slot=\"dropdown-menu-trigger\" {...props} />;\n}\n\nfunction DropdownMenuContent({\n className,\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n sideOffset={sideOffset}\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-h-(--radix-dropdown-menu-content-available-height) z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border p-1 shadow-md\",\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nfunction DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {\n return <DropdownMenuPrimitive.Group data-slot=\"dropdown-menu-group\" {...props} />;\n}\n\nfunction DropdownMenuItem({\n className,\n inset,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean;\n variant?: \"default\" | \"destructive\";\n}) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction DropdownMenuRadioGroup({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {\n return <DropdownMenuPrimitive.RadioGroup data-slot=\"dropdown-menu-radio-group\" {...props} />;\n}\n\nfunction DropdownMenuRadioItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {\n return (\n <DropdownMenuPrimitive.RadioItem\n data-slot=\"dropdown-menu-radio-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CircleIcon className=\"size-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n}\n\nfunction DropdownMenuLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n data-inset={inset}\n className={cn(\"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {\n return (\n <DropdownMenuPrimitive.Separator\n data-slot=\"dropdown-menu-separator\"\n className={cn(\"bg-border -mx-1 my-1 h-px\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuShortcut({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"dropdown-menu-shortcut\"\n className={cn(\"text-muted-foreground ml-auto text-xs tracking-widest\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {\n return <DropdownMenuPrimitive.Sub data-slot=\"dropdown-menu-sub\" {...props} />;\n}\n\nfunction DropdownMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n data-inset={inset}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[inset]:pl-8\",\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n );\n}\n\nfunction DropdownMenuSubContent({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {\n return (\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n"],"mappings":";;;;;;;;;AAQA,SAAS,aAAa,EAAE,GAA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sBAAsB,2BACrB,oBAAC,cAAW,WAAU,wBAAwB,GACV;IACjC,EACN;GAC+B;;AAItC,SAAS,kBAAkB,EACzB,WACA,OACA,GAAG,SAGF;AACD,QACE,oBAAC,sBAAsB;EACrB,aAAU;EACV,cAAY;EACZ,WAAW,GAAG,qDAAqD,UAAU;EAC7E,GAAI;GACJ;;AAIN,SAAS,sBAAsB,EAC7B,WACA,GAAG,SAC4D;AAC/D,QACE,oBAAC,sBAAsB;EACrB,aAAU;EACV,WAAW,GAAG,6BAA6B,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,qBAAqB,EAAE,WAAW,GAAG,SAAuC;AACnF,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,yDAAyD,UAAU;EACjF,GAAI;GACJ;;AAIN,SAAS,gBAAgB,EAAE,GAAG,SAAiE;AAC7F,QAAO,oBAAC,sBAAsB;EAAI,aAAU;EAAoB,GAAI;GAAS;;AAG/E,SAAS,uBAAuB,EAC9B,WACA,OACA,UACA,GAAG,SAGF;AACD,QACE,qBAAC,sBAAsB;EACrB,aAAU;EACV,cAAY;EACZ,WAAW,GACT,kOACA,UACD;EACD,GAAI;aAEH,UACD,oBAAC,oBAAiB,WAAU,mBAAmB;GACd;;AAIvC,SAAS,uBAAuB,EAC9B,WACA,GAAG,SAC6D;AAChE,QACE,oBAAC,sBAAsB;EACrB,aAAU;EACV,WAAW,GACT,ybACA,UACD;EACD,GAAI;GACJ"}
1
+ {"version":3,"file":"dropdown-menu.mjs","names":[],"sources":["../../../src/components/ui/dropdown-menu.tsx"],"sourcesContent":["\"use client\";\n\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from \"lucide-react\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />;\n}\n\nfunction DropdownMenuPortal({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n return <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />;\n}\n\nfunction DropdownMenuTrigger({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return <DropdownMenuPrimitive.Trigger data-slot=\"dropdown-menu-trigger\" {...props} />;\n}\n\nfunction DropdownMenuContent({\n className,\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n sideOffset={sideOffset}\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-h-(--radix-dropdown-menu-content-available-height) z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border p-1 shadow-md\",\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nfunction DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {\n return <DropdownMenuPrimitive.Group data-slot=\"dropdown-menu-group\" {...props} />;\n}\n\nfunction DropdownMenuItem({\n className,\n inset,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean;\n variant?: \"default\" | \"destructive\";\n}) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction DropdownMenuRadioGroup({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {\n return <DropdownMenuPrimitive.RadioGroup data-slot=\"dropdown-menu-radio-group\" {...props} />;\n}\n\nfunction DropdownMenuRadioItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {\n return (\n <DropdownMenuPrimitive.RadioItem\n data-slot=\"dropdown-menu-radio-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CircleIcon className=\"size-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n}\n\nfunction DropdownMenuLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n data-inset={inset}\n className={cn(\"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {\n return (\n <DropdownMenuPrimitive.Separator\n data-slot=\"dropdown-menu-separator\"\n className={cn(\"bg-border -mx-1 my-1 h-px\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuShortcut({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"dropdown-menu-shortcut\"\n className={cn(\"text-muted-foreground ml-auto text-xs tracking-widest\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {\n return <DropdownMenuPrimitive.Sub data-slot=\"dropdown-menu-sub\" {...props} />;\n}\n\nfunction DropdownMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n data-inset={inset}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[inset]:pl-8\",\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n );\n}\n\nfunction DropdownMenuSubContent({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {\n return (\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n"],"mappings":";;;;;;;;AAQA,SAAS,aAAa,EAAE,GAAG,SAAkE;AAC3F,QAAO,oBAAC,sBAAsB;EAAK,aAAU;EAAgB,GAAI;GAAS;;AAG5E,SAAS,mBAAmB,EAC1B,GAAG,SACyD;AAC5D,QAAO,oBAAC,sBAAsB;EAAO,aAAU;EAAuB,GAAI;GAAS;;AAGrF,SAAS,oBAAoB,EAC3B,GAAG,SAC0D;AAC7D,QAAO,oBAAC,sBAAsB;EAAQ,aAAU;EAAwB,GAAI;GAAS;;AAGvF,SAAS,oBAAoB,EAC3B,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WAAW,GAAG,6BAA6B,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,qBAAqB,EAAE,WAAW,GAAG,SAAuC;AACnF,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,yDAAyD,UAAU;EACjF,GAAI;GACJ;;AAIN,SAAS,gBAAgB,EAAE,GAAG,SAAiE;AAC7F,QAAO,oBAAC,sBAAsB;EAAI,aAAU;EAAoB,GAAI;GAAS;;AAG/E,SAAS,uBAAuB,EAC9B,WACA,OACA,UACA,GAAG,SAGF;AACD,QACE,qBAAC,sBAAsB;EACrB,aAAU;EACV,cAAY;EACZ,WAAW,GACT,kOACA,UACD;EACD,GAAI;aAEH,UACD,oBAAC,oBAAiB,WAAU,mBAAmB;GACd;;AAIvC,SAAS,uBAAuB,EAC9B,WACA,GAAG,SAC6D;AAChE,QACE,oBAAC,sBAAsB;EACrB,aAAU;EACV,WAAW,GACT,ybACA,UACD;EACD,GAAI;GACJ"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime330 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import { Slot } from "@radix-ui/react-slot";
3
3
  import * as React$1 from "react";
4
4
  import * as react_hook_form0 from "react-hook-form";
@@ -12,7 +12,7 @@ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName
12
12
  ...props
13
13
  }: ControllerProps<TFieldValues, TName> & {
14
14
  visible?: boolean;
15
- }) => react_jsx_runtime330.JSX.Element | null;
15
+ }) => react_jsx_runtime0.JSX.Element | null;
16
16
  declare const useFormField: () => {
17
17
  invalid: boolean;
18
18
  isDirty: boolean;
@@ -28,22 +28,22 @@ declare const useFormField: () => {
28
28
  declare function FormItem({
29
29
  className,
30
30
  ...props
31
- }: React$1.ComponentProps<"div">): react_jsx_runtime330.JSX.Element;
31
+ }: React$1.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
32
32
  declare function FormLabel({
33
33
  className,
34
34
  ...props
35
- }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime330.JSX.Element;
35
+ }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime0.JSX.Element;
36
36
  declare function FormControl({
37
37
  ...props
38
- }: React$1.ComponentProps<typeof Slot>): react_jsx_runtime330.JSX.Element;
38
+ }: React$1.ComponentProps<typeof Slot>): react_jsx_runtime0.JSX.Element;
39
39
  declare function FormDescription({
40
40
  className,
41
41
  ...props
42
- }: React$1.ComponentProps<"p">): react_jsx_runtime330.JSX.Element;
42
+ }: React$1.ComponentProps<"p">): react_jsx_runtime0.JSX.Element;
43
43
  declare function FormMessage({
44
44
  className,
45
45
  ...props
46
- }: React$1.ComponentProps<"p">): react_jsx_runtime330.JSX.Element | null;
46
+ }: React$1.ComponentProps<"p">): react_jsx_runtime0.JSX.Element | null;
47
47
  //#endregion
48
48
  export { Form$1 as Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
49
49
  //# sourceMappingURL=form.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.client.d.mts","names":[],"sources":["../../../src/components/ui/form.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;cAkBM,8BAAI,kDAAA,qBAAA,gBAAA,CAAA,kBAAA,cAAA,UAAA,wBAAA,OAAA,CAAA,GAAA,CAAA;cAWJ,iCACiB,cAAc,2BACrB,UAAU,gBAAgB,UAAU;;;GAIjD,gBAAgB,cAAc;;MAA8B,oBAAA,CAAA,GAAA,CAAA,OAAA;AAtBtC,cAgCnB,YA3BmB,EAAA,GAAA,GAAA;EAAf,OAAA,EAAA,OAAA;EAAA,OAAA,EAAA,OAAA;EAAA,SAAA,EAAA,OAAA;EAAA,YAAA,EAAA,OAAA;EAAA,KAAA,CAAA,EAgDT,gBAAA,CAAA,UAhDS;EAAA,EAAA,EAAA,MAAA;EAAA,IAAA,EAAA,MAAA;EAAe,UAAA,EAAA,MAAA;EAWnB,iBAcL,EAAA,MAAA;EAbsB,aAAA,EAAA,MAAA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AA,GAAA,CAAA,OAAA;AAAA,cAUzD,YAAA;;;;;UAqBL,gBAAA,CAAA,UAAA;;;;;;;iBAQQ,QAAA,CAAA;EAAW,SAAA;EAAA,GAAc;AAAA,GAAS,OAAA,CAAM,cAAA,UAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAU7D,SAAA,CAAA;EAAY,SAAA;EAAA,GAAc;AAAA,GAAS,OAAA,CAAM,cAAA,QAAsB,cAAA,CAAe,IAAA,IAAK,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAcnF,WAAA,CAAA;EAAA,GAAiB;AAAA,GAAS,OAAA,CAAM,cAAA,QAAsB,IAAA,IAAK,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAc3D,eAAA,CAAA;EAAkB,SAAA;EAAA,GAAc;AAAA,GAAS,OAAA,CAAM,cAAA,QAAmB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAalE,WAAA,CAAA;EAAc,SAAA;EAAA,GAAc;AAAA,GAAS,OAAA,CAAM,cAAA,QAAmB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"form.client.mjs","names":["Form","React"],"sources":["../../../src/components/ui/form.client.tsx"],"sourcesContent":["\"use client\";\n\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport * as React from \"react\";\nimport {\n Controller,\n FormProvider,\n useFormContext,\n useFormState,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n} from \"react-hook-form\";\n\nimport { Label } from \"@/components/ui/label\";\nimport { cn } from \"@/lib/utils/cn\";\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = {\n name: TName;\n};\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFieldContextValue);\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>({\n visible = true,\n ...props\n}: ControllerProps<TFieldValues, TName> & { visible?: boolean }) => {\n if (!visible) return null;\n\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState } = useFormContext();\n const formState = useFormState({ name: fieldContext.name });\n const fieldState = getFieldState(fieldContext.name, formState);\n\n if (!fieldContext) {\n throw new Error(\"useFormField should be used within <FormField>\");\n }\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string;\n};\n\nconst FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue);\n\nfunction FormItem({ className, ...props }: React.ComponentProps<\"div\">) {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div data-slot=\"form-item\" className={cn(\"grid gap-2\", className)} {...props} />\n </FormItemContext.Provider>\n );\n}\n\nfunction FormLabel({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {\n const { error, formItemId } = useFormField();\n\n return (\n <Label\n data-slot=\"form-label\"\n data-error={!!error}\n className={cn(\"data-[error=true]:text-destructive-foreground\", className)}\n htmlFor={formItemId}\n {...props}\n />\n );\n}\n\nfunction FormControl({ ...props }: React.ComponentProps<typeof Slot>) {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField();\n\n return (\n <Slot\n data-slot=\"form-control\"\n id={formItemId}\n aria-describedby={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n );\n}\n\nfunction FormDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n const { formDescriptionId } = useFormField();\n\n return (\n <p\n data-slot=\"form-description\"\n id={formDescriptionId}\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nfunction FormMessage({ className, ...props }: React.ComponentProps<\"p\">) {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error?.message ?? \"\") : props.children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n data-slot=\"form-message\"\n id={formMessageId}\n className={cn(\"text-destructive-foreground text-sm\", className)}\n {...props}\n >\n {body}\n </p>\n );\n}\n\nexport {\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n useFormField,\n};\n"],"mappings":";;;;;;;;;;AAkBA,MAAMA,SAAO;AASb,MAAM,mBAAmBC,QAAM,cAAqC,EAAE,CAA0B;AAEhG,MAAM,aAGJ,EACA,UAAU,MACV,GAAG,YAC+D;AAClE,KAAI,CAAC,QAAS,QAAO;AAErB,QACE,oBAAC,iBAAiB;EAAS,OAAO,EAAE,MAAM,MAAM,MAAM;YACpD,oBAAC,cAAW,GAAI,QAAS;GACC;;AAIhC,MAAM,qBAAqB;CACzB,MAAM,eAAeA,QAAM,WAAW,iBAAiB;CACvD,MAAM,cAAcA,QAAM,WAAW,gBAAgB;CACrD,MAAM,EAAE,kBAAkB,gBAAgB;CAC1C,MAAM,YAAY,aAAa,EAAE,MAAM,aAAa,MAAM,CAAC;CAC3D,MAAM,aAAa,cAAc,aAAa,MAAM,UAAU;AAE9D,KAAI,CAAC,aACH,OAAM,IAAI,MAAM,iDAAiD;CAGnE,MAAM,EAAE,OAAO;AAEf,QAAO;EACL;EACA,MAAM,aAAa;EACnB,YAAY,GAAG,GAAG;EAClB,mBAAmB,GAAG,GAAG;EACzB,eAAe,GAAG,GAAG;EACrB,GAAG;EACJ;;AAOH,MAAM,kBAAkBA,QAAM,cAAoC,EAAE,CAAyB;AAE7F,SAAS,SAAS,EAAE,WAAW,GAAG,SAAsC;CACtE,MAAM,KAAKA,QAAM,OAAO;AAExB,QACE,oBAAC,gBAAgB;EAAS,OAAO,EAAE,IAAI;YACrC,oBAAC;GAAI,aAAU;GAAY,WAAW,GAAG,cAAc,UAAU;GAAE,GAAI;IAAS;GACvD;;AAI/B,SAAS,UAAU,EAAE,WAAW,GAAG,SAA2D;CAC5F,MAAM,EAAE,OAAO,eAAe,cAAc;AAE5C,QACE,oBAAC;EACC,aAAU;EACV,cAAY,CAAC,CAAC;EACd,WAAW,GAAG,iDAAiD,UAAU;EACzE,SAAS;EACT,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,GAAG,SAA4C;CACpE,MAAM,EAAE,OAAO,YAAY,mBAAmB,kBAAkB,cAAc;AAE9E,QACE,oBAAC;EACC,aAAU;EACV,IAAI;EACJ,oBAAkB,CAAC,QAAQ,GAAG,sBAAsB,GAAG,kBAAkB,GAAG;EAC5E,gBAAc,CAAC,CAAC;EAChB,GAAI;GACJ;;AAIN,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAoC;CAC3E,MAAM,EAAE,sBAAsB,cAAc;AAE5C,QACE,oBAAC;EACC,aAAU;EACV,IAAI;EACJ,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,WAAW,GAAG,SAAoC;CACvE,MAAM,EAAE,OAAO,kBAAkB,cAAc;CAC/C,MAAM,OAAO,QAAQ,OAAO,OAAO,WAAW,GAAG,GAAG,MAAM;AAE1D,KAAI,CAAC,KACH,QAAO;AAGT,QACE,oBAAC;EACC,aAAU;EACV,IAAI;EACJ,WAAW,GAAG,uCAAuC,UAAU;EAC/D,GAAI;YAEH;GACC"}
1
+ {"version":3,"file":"form.client.mjs","names":["Form","React"],"sources":["../../../src/components/ui/form.client.tsx"],"sourcesContent":["\"use client\";\n\nimport type * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport * as React from \"react\";\nimport {\n Controller,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n FormProvider,\n useFormContext,\n useFormState,\n} from \"react-hook-form\";\n\nimport { Label } from \"@/components/ui/label\";\nimport { cn } from \"@/lib/utils/cn\";\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = {\n name: TName;\n};\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFieldContextValue);\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>({\n visible = true,\n ...props\n}: ControllerProps<TFieldValues, TName> & { visible?: boolean }) => {\n if (!visible) return null;\n\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState } = useFormContext();\n const formState = useFormState({ name: fieldContext.name });\n const fieldState = getFieldState(fieldContext.name, formState);\n\n if (!fieldContext) {\n throw new Error(\"useFormField should be used within <FormField>\");\n }\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string;\n};\n\nconst FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue);\n\nfunction FormItem({ className, ...props }: React.ComponentProps<\"div\">) {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div data-slot=\"form-item\" className={cn(\"grid gap-2\", className)} {...props} />\n </FormItemContext.Provider>\n );\n}\n\nfunction FormLabel({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {\n const { error, formItemId } = useFormField();\n\n return (\n <Label\n data-slot=\"form-label\"\n data-error={!!error}\n className={cn(\"data-[error=true]:text-destructive-foreground\", className)}\n htmlFor={formItemId}\n {...props}\n />\n );\n}\n\nfunction FormControl({ ...props }: React.ComponentProps<typeof Slot>) {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField();\n\n return (\n <Slot\n data-slot=\"form-control\"\n id={formItemId}\n aria-describedby={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n );\n}\n\nfunction FormDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n const { formDescriptionId } = useFormField();\n\n return (\n <p\n data-slot=\"form-description\"\n id={formDescriptionId}\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nfunction FormMessage({ className, ...props }: React.ComponentProps<\"p\">) {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error?.message ?? \"\") : props.children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n data-slot=\"form-message\"\n id={formMessageId}\n className={cn(\"text-destructive-foreground text-sm\", className)}\n {...props}\n >\n {body}\n </p>\n );\n}\n\nexport {\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n useFormField,\n};\n"],"mappings":";;;;;;;;;;AAkBA,MAAMA,SAAO;AASb,MAAM,mBAAmBC,QAAM,cAAqC,EAAE,CAA0B;AAEhG,MAAM,aAGJ,EACA,UAAU,MACV,GAAG,YAC+D;AAClE,KAAI,CAAC,QAAS,QAAO;AAErB,QACE,oBAAC,iBAAiB;EAAS,OAAO,EAAE,MAAM,MAAM,MAAM;YACpD,oBAAC,cAAW,GAAI,QAAS;GACC;;AAIhC,MAAM,qBAAqB;CACzB,MAAM,eAAeA,QAAM,WAAW,iBAAiB;CACvD,MAAM,cAAcA,QAAM,WAAW,gBAAgB;CACrD,MAAM,EAAE,kBAAkB,gBAAgB;CAC1C,MAAM,YAAY,aAAa,EAAE,MAAM,aAAa,MAAM,CAAC;CAC3D,MAAM,aAAa,cAAc,aAAa,MAAM,UAAU;AAE9D,KAAI,CAAC,aACH,OAAM,IAAI,MA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ACV,IAAI;EACJ,WAAW,GAAG,uCAAuC,UAAU;EAC/D,GAAI;YAEH;GACC"}
@@ -1,20 +1,20 @@
1
- import * as react_jsx_runtime336 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import * as React$1 from "react";
3
3
  import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
4
4
 
5
5
  //#region src/components/ui/hover-card.client.d.ts
6
6
  declare function HoverCard({
7
7
  ...props
8
- }: React$1.ComponentProps<typeof HoverCardPrimitive.Root>): react_jsx_runtime336.JSX.Element;
8
+ }: React$1.ComponentProps<typeof HoverCardPrimitive.Root>): react_jsx_runtime0.JSX.Element;
9
9
  declare function HoverCardTrigger({
10
10
  ...props
11
- }: React$1.ComponentProps<typeof HoverCardPrimitive.Trigger>): react_jsx_runtime336.JSX.Element;
11
+ }: React$1.ComponentProps<typeof HoverCardPrimitive.Trigger>): react_jsx_runtime0.JSX.Element;
12
12
  declare function HoverCardContent({
13
13
  className,
14
14
  align,
15
15
  sideOffset,
16
16
  ...props
17
- }: React$1.ComponentProps<typeof HoverCardPrimitive.Content>): react_jsx_runtime336.JSX.Element;
17
+ }: React$1.ComponentProps<typeof HoverCardPrimitive.Content>): react_jsx_runtime0.JSX.Element;
18
18
  //#endregion
19
19
  export { HoverCard, HoverCardContent, HoverCardTrigger };
20
20
  //# sourceMappingURL=hover-card.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hover-card.client.d.mts","names":[],"sources":["../../../src/components/ui/hover-card.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOS,SAAA;;GAAwB,OAAA,CAAM,sBAAsB,kBAAA,CAAmB,QAAK,oBAAA,CAAA,GAAA,CAAA;iBAI5E,gBAAA;;GAA+B,OAAA,CAAM,sBAAsB,kBAAA,CAAmB,WAAQ,oBAAA,CAAA,GAAA,CAAA;iBAItF,gBAAA;;;;;GAKN,OAAA,CAAM,sBAAsB,kBAAA,CAAmB,WAAQ,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"hover-card.client.d.mts","names":[],"sources":["../../../src/components/ui/hover-card.client.tsx"],"mappings":";;;;;iBAOS,SAAA,CAAA;EAAA,GAAe;AAAA,GAAS,OAAA,CAAM,cAAA,QAAsB,kBAAA,CAAmB,IAAA,IAAK,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAI5E,gBAAA,CAAA;EAAA,GAAsB;AAAA,GAAS,OAAA,CAAM,cAAA,QAAsB,kBAAA,CAAmB,OAAA,IAAQ,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAItF,gBAAA,CAAA;EACP,SAAA;EACA,KAAA;EACA,UAAA;EAAA,GACG;AAAA,GACF,OAAA,CAAM,cAAA,QAAsB,kBAAA,CAAmB,OAAA,IAAQ,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { cn } from "../../lib/utils/cn.mjs";
4
4
  import { jsx } from "react/jsx-runtime";
5
- import "react";
6
5
  import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
7
6
 
8
7
  //#region src/components/ui/hover-card.client.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"hover-card.client.mjs","names":[],"sources":["../../../src/components/ui/hover-card.client.tsx"],"sourcesContent":["\"use client\";\n\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>) {\n return <HoverCardPrimitive.Root data-slot=\"hover-card\" {...props} />;\n}\n\nfunction HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>) {\n return <HoverCardPrimitive.Trigger data-slot=\"hover-card-trigger\" {...props} />;\n}\n\nfunction HoverCardContent({\n className,\n align = \"center\",\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof HoverCardPrimitive.Content>) {\n return (\n <HoverCardPrimitive.Content\n data-slot=\"hover-card-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 outline-hidden z-50 w-64 rounded-md border p-4 shadow-md\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { HoverCard, HoverCardContent, HoverCardTrigger };\n"],"mappings":";;;;;;;;AAOA,SAAS,UAAU,EAAE,GAAG,SAA+D;AACrF,QAAO,oBAAC,mBAAmB;EAAK,aAAU;EAAa,GAAI;GAAS;;AAGtE,SAAS,iBAAiB,EAAE,GAAG,SAAkE;AAC/F,QAAO,oBAAC,mBAAmB;EAAQ,aAAU;EAAqB,GAAI;GAAS;;AAGjF,SAAS,iBAAiB,EACxB,WACA,QAAQ,UACR,aAAa,GACb,GAAG,SACuD;AAC1D,QACE,oBAAC,mBAAmB;EAClB,aAAU;EACH;EACK;EACZ,WAAW,GACT,gbACA,UACD;EACD,GAAI;GACJ"}
1
+ {"version":3,"file":"hover-card.client.mjs","names":[],"sources":["../../../src/components/ui/hover-card.client.tsx"],"sourcesContent":["\"use client\";\n\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>) {\n return <HoverCardPrimitive.Root data-slot=\"hover-card\" {...props} />;\n}\n\nfunction HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>) {\n return <HoverCardPrimitive.Trigger data-slot=\"hover-card-trigger\" {...props} />;\n}\n\nfunction HoverCardContent({\n className,\n align = \"center\",\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof HoverCardPrimitive.Content>) {\n return (\n <HoverCardPrimitive.Content\n data-slot=\"hover-card-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 outline-hidden z-50 w-64 rounded-md border p-4 shadow-md\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { HoverCard, HoverCardContent, HoverCardTrigger };\n"],"mappings":";;;;;;;AAOA,SAAS,UAAU,EAAE,GAAG,SAA+D;AACrF,QAAO,oBAAC,mBAAmB;EAAK,aAAU;EAAa,GAAI;GAAS;;AAGtE,SAAS,iBAAiB,EAAE,GAAG,SAAkE;AAC/F,QAAO,oBAAC,mBAAmB;EAAQ,aAAU;EAAqB,GAAI;GAAS;;AAGjF,SAAS,iBAAiB,EACxB,WACA,QAAQ,UACR,aAAa,GACb,GAAG,SACuD;AAC1D,QACE,oBAAC,mBAAmB;EAClB,aAAU;EACH;EACK;EACZ,WAAW,GACT,gbACA,UACD;EACD,GAAI;GACJ"}
@@ -1,14 +1,14 @@
1
- import * as react_jsx_runtime229 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/ui/input-date-time.d.ts
4
4
  /**
5
5
  * DateTimeInput
6
6
  */
7
7
  type DateTimeInputProps = Omit<React.ComponentProps<"input">, "type" | "value" | "defaultValue"> & {
8
- defaultValue?: Date;
9
- value?: Date;
10
- onValueChange?: (date: Date | undefined) => void;
11
- onValueBlur?: (date: Date | undefined) => void;
8
+ defaultValue?: Date | string;
9
+ value?: Date | string;
10
+ onValueChange?: (date: string | undefined) => void;
11
+ onValueBlur?: (date: string | undefined) => void;
12
12
  };
13
13
  declare function DateTimeInput({
14
14
  className,
@@ -17,7 +17,7 @@ declare function DateTimeInput({
17
17
  onValueBlur,
18
18
  onBlur,
19
19
  ...props
20
- }: DateTimeInputProps): react_jsx_runtime229.JSX.Element;
20
+ }: DateTimeInputProps): react_jsx_runtime0.JSX.Element;
21
21
  //#endregion
22
22
  export { DateTimeInput };
23
23
  //# sourceMappingURL=input-date-time.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-date-time.d.mts","names":[],"sources":["../../../src/components/ui/input-date-time.tsx"],"sourcesContent":[],"mappings":";;;;;;AAqBqB,KAdhB,kBAAA,GAAqB,IAAH,CAAQ,KAAA,CAAM,cAAd,CAAA,OAAA,CAAA,EAAA,MAAA,GAAA,OAAA,GAAA,cAAA,CAAA,GAAA;EAAQ,YAAM,CAAA,EACpB,IADoB;EAAX,KAAA,CAAA,EAEhB,IAFgB;EACT,aAAA,CAAA,EAAA,CAAA,IAAA,EAEQ,IAFR,GAAA,SAAA,EAAA,GAAA,IAAA;EACP,WAAA,CAAA,EAAA,CAAA,IAAA,EAEa,IAFb,GAAA,SAAA,EAAA,GAAA,IAAA;CACe;AACF,iBAGP,aAAA,CAHO;EAAA,SAAA;EAAA,aAAA;EAAA,QAAA;EAAA,WAAA;EAAA,MAAA;EAAA,GAAA;AAAA,CAAA,EAUpB,kBAVoB,CAAA,EAUF,oBAAA,CAAA,GAAA,CAAA,OAVE"}
1
+ {"version":3,"file":"input-date-time.d.mts","names":[],"sources":["../../../src/components/ui/input-date-time.tsx"],"mappings":";;;;;;KAOK,kBAAA,GAAqB,IAAA,CAAK,KAAA,CAAM,cAAA;EACnC,YAAA,GAAe,IAAA;EACf,KAAA,GAAQ,IAAA;EACR,aAAA,IAAiB,IAAA;EACjB,WAAA,IAAe,IAAA;AAAA;AAAA,iBAGD,aAAA,CAAA;EACd,SAAA;EACA,aAAA;EACA,QAAA;EACA,WAAA;EACA,MAAA;EAAA,GACG;AAAA,GACF,kBAAA,GAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -8,21 +8,19 @@ function DateTimeInput({ className, onValueChange, onChange, onValueBlur, onBlur
8
8
  /**
9
9
  * Transform Date to string in the format "yyyy-MM-ddTHH:mm" for the input value. If the value is not a Date, use undefined.
10
10
  */
11
- const defaultValue = props.defaultValue instanceof Date ? format(props.defaultValue, "yyyy-MM-dd'T'HH:mm") : void 0;
12
- const value = props.value && props.value instanceof Date ? format(props.value, "yyyy-MM-dd'T'HH:mm") : void 0;
11
+ const defaultValue = props.defaultValue instanceof Date ? format(props.defaultValue, "yyyy-MM-dd'T'HH:mm") : typeof props.defaultValue === "string" ? props.defaultValue : void 0;
12
+ const value = props.value && props.value instanceof Date ? format(props.value, "yyyy-MM-dd'T'HH:mm") : typeof props.value === "string" ? props.value : void 0;
13
13
  return /* @__PURE__ */ jsx(Input, {
14
14
  ...props,
15
15
  type: "datetime-local",
16
16
  defaultValue,
17
17
  value,
18
18
  onChange: (e) => {
19
- const date = new Date(e.target.value);
20
- onValueChange?.(date ?? void 0);
19
+ onValueChange?.(e.target.value ?? void 0);
21
20
  onChange?.(e);
22
21
  },
23
22
  onBlur: (e) => {
24
- const date = new Date(e.target.value);
25
- onValueBlur?.(date ?? void 0);
23
+ onValueBlur?.(e.target.value ?? void 0);
26
24
  onBlur?.(e);
27
25
  },
28
26
  className: cn("appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none", className)
@@ -1 +1 @@
1
- {"version":3,"file":"input-date-time.mjs","names":[],"sources":["../../../src/components/ui/input-date-time.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport { format } from \"date-fns\";\nimport { Input } from \"./input\";\n\n/**\n * DateTimeInput\n */\ntype DateTimeInputProps = Omit<React.ComponentProps<\"input\">, \"type\" | \"value\" | \"defaultValue\"> & {\n defaultValue?: Date;\n value?: Date;\n onValueChange?: (date: Date | undefined) => void;\n onValueBlur?: (date: Date | undefined) => void;\n};\n\nexport function DateTimeInput({\n className,\n onValueChange,\n onChange,\n onValueBlur,\n onBlur,\n ...props\n}: DateTimeInputProps) {\n /**\n * Transform Date to string in the format \"yyyy-MM-ddTHH:mm\" for the input value. If the value is not a Date, use undefined.\n */\n const defaultValue =\n props.defaultValue instanceof Date\n ? format(props.defaultValue, \"yyyy-MM-dd'T'HH:mm\")\n : undefined;\n\n const value =\n props.value && props.value instanceof Date\n ? format(props.value, \"yyyy-MM-dd'T'HH:mm\")\n : undefined;\n\n return (\n <Input\n {...props}\n type=\"datetime-local\"\n defaultValue={defaultValue}\n value={value}\n onChange={(e) => {\n const date = new Date(e.target.value);\n onValueChange?.(date ?? undefined);\n onChange?.(e);\n }}\n onBlur={(e) => {\n const date = new Date(e.target.value);\n onValueBlur?.(date ?? undefined);\n onBlur?.(e);\n }}\n className={cn(\n \"appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none\",\n className,\n )}\n />\n );\n}\n"],"mappings":";;;;;;AAcA,SAAgB,cAAc,EAC5B,WACA,eACA,UACA,aACA,QACA,GAAG,SACkB;;;;CAIrB,MAAM,eACJ,MAAM,wBAAwB,OAC1B,OAAO,MAAM,cAAc,qBAAqB,GAChD;CAEN,MAAM,QACJ,MAAM,SAAS,MAAM,iBAAiB,OAClC,OAAO,MAAM,OAAO,qBAAqB,GACzC;AAEN,QACE,oBAAC;EACC,GAAI;EACJ,MAAK;EACS;EACP;EACP,WAAW,MAAM;GACf,MAAM,OAAO,IAAI,KAAK,EAAE,OAAO,MAAM;AACrC,mBAAgB,QAAQ,OAAU;AAClC,cAAW,EAAE;;EAEf,SAAS,MAAM;GACb,MAAM,OAAO,IAAI,KAAK,EAAE,OAAO,MAAM;AACrC,iBAAc,QAAQ,OAAU;AAChC,YAAS,EAAE;;EAEb,WAAW,GACT,wHACA,UACD;GACD"}
1
+ {"version":3,"file":"input-date-time.mjs","names":[],"sources":["../../../src/components/ui/input-date-time.tsx"],"sourcesContent":["import { format } from \"date-fns\";\nimport { cn } from \"@/lib/utils/cn\";\nimport { Input } from \"./input\";\n\n/**\n * DateTimeInput\n */\ntype DateTimeInputProps = Omit<React.ComponentProps<\"input\">, \"type\" | \"value\" | \"defaultValue\"> & {\n defaultValue?: Date | string;\n value?: Date | string;\n onValueChange?: (date: string | undefined) => void;\n onValueBlur?: (date: string | undefined) => void;\n};\n\nexport function DateTimeInput({\n className,\n onValueChange,\n onChange,\n onValueBlur,\n onBlur,\n ...props\n}: DateTimeInputProps) {\n /**\n * Transform Date to string in the format \"yyyy-MM-ddTHH:mm\" for the input value. If the value is not a Date, use undefined.\n */\n const defaultValue =\n props.defaultValue instanceof Date\n ? format(props.defaultValue, \"yyyy-MM-dd'T'HH:mm\")\n : typeof props.defaultValue === \"string\"\n ? props.defaultValue\n : undefined;\n\n const value =\n props.value && props.value instanceof Date\n ? format(props.value, \"yyyy-MM-dd'T'HH:mm\")\n : typeof props.value === \"string\"\n ? props.value\n : undefined;\n\n return (\n <Input\n {...props}\n type=\"datetime-local\"\n defaultValue={defaultValue}\n value={value}\n onChange={(e) => {\n onValueChange?.(e.target.value ?? undefined);\n onChange?.(e);\n }}\n onBlur={(e) => {\n onValueBlur?.(e.target.value ?? undefined);\n onBlur?.(e);\n }}\n className={cn(\n \"appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none\",\n className,\n )}\n />\n );\n}\n"],"mappings":";;;;;;AAcA,SAAgB,cAAc,EAC5B,WACA,eACA,UACA,aACA,QACA,GAAG,SACkB;;;;CAIrB,MAAM,eACJ,MAAM,wBAAwB,OAC1B,OAAO,MAAM,cAAc,qBAAqB,GAChD,OAAO,MAAM,iBAAiB,WAC5B,MAAM,eACN;CAER,MAAM,QACJ,MAAM,SAAS,MAAM,iBAAiB,OAClC,OAAO,MAAM,OAAO,qBAAqB,GACzC,OAAO,MAAM,UAAU,WACrB,MAAM,QACN;AAER,QACE,oBAAC;EACC,GAAI;EACJ,MAAK;EACS;EACP;EACP,WAAW,MAAM;AACf,mBAAgB,EAAE,OAAO,SAAS,OAAU;AAC5C,cAAW,EAAE;;EAEf,SAAS,MAAM;AACb,iBAAc,EAAE,OAAO,SAAS,OAAU;AAC1C,YAAS,EAAE;;EAEb,WAAW,GACT,wHACA,UACD;GACD"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime228 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/ui/input-date.d.ts
4
4
  /**
@@ -8,7 +8,7 @@ type DateInputProps = Omit<React.ComponentProps<"input">, "type">;
8
8
  declare function DateInput({
9
9
  className,
10
10
  ...props
11
- }: DateInputProps): react_jsx_runtime228.JSX.Element;
11
+ }: DateInputProps): react_jsx_runtime0.JSX.Element;
12
12
  //#endregion
13
13
  export { DateInput };
14
14
  //# sourceMappingURL=input-date.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-date.d.mts","names":[],"sources":["../../../src/components/ui/input-date.tsx"],"sourcesContent":[],"mappings":";;;;;;AAQiE,KAF5D,cAAA,GAAiB,IAAH,CAAQ,KAAA,CAAM,cAAA,CAAA,OAAA,CAAX,EAAA,MAAI,CAAA;AAEV,iBAAA,SAAA,CAAS;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAA0B,cAA1B,CAAA,EAAwC,oBAAA,CAAA,GAAA,CAAA,OAAxC"}
1
+ {"version":3,"file":"input-date.d.mts","names":[],"sources":["../../../src/components/ui/input-date.tsx"],"mappings":";;;;;;KAMK,cAAA,GAAiB,IAAA,CAAK,KAAA,CAAM,cAAA;AAAA,iBAEjB,SAAA,CAAA;EAAY,SAAA;EAAA,GAAc;AAAA,GAAS,cAAA,GAAc,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime389 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/ui/input-recipient.d.ts
4
4
  type Contact = {
@@ -21,7 +21,7 @@ declare function RecipientInput({
21
21
  placeholder,
22
22
  disabled,
23
23
  className
24
- }: RecipientInputProps): react_jsx_runtime389.JSX.Element;
24
+ }: RecipientInputProps): react_jsx_runtime0.JSX.Element;
25
25
  //#endregion
26
26
  export { Contact, RecipientInput };
27
27
  //# sourceMappingURL=input-recipient.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-recipient.d.mts","names":[],"sources":["../../../src/components/ui/input-recipient.tsx"],"sourcesContent":[],"mappings":";;;KAUY,OAAA;;;EAAA,IAAA,EAAA,MAAO;AAIjB,CAAA;AAiBF,UAfU,mBAAA,CAeoB;EAC5B,QAAA,EAfU,OAeV,EAAA;EACA,KAAA,EAAA,MAAA,EAAA;EACA,QAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,EAAA,GAAA,IAAA;EACA,WAAA,CAAA,EAAA,MAAA;EACA,QAAA,CAAA,EAAA,OAAA;EACA,SAAA,CAAA,EAAA,MAAA;;AACoB,iBAPN,cAAA,CAOM;EAAA,QAAA;EAAA,KAAA;EAAA,QAAA;EAAA,WAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAAnB,mBAAmB,CAAA,EAAA,oBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"input-recipient.d.mts","names":[],"sources":["../../../src/components/ui/input-recipient.tsx"],"mappings":";;;KAUY,OAAA;EACV,EAAA;EACA,KAAA;EACA,IAAA;AAAA;AAAA,UAGQ,mBAAA;EACR,QAAA,EAAU,OAAA;EACV,KAAA;EACA,QAAA,GAAW,KAAA;EACX,WAAA;EACA,QAAA;EACA,SAAA;AAAA;AAAA,iBASc,cAAA,CAAA;EACd,QAAA;EACA,KAAA;EACA,QAAA;EACA,WAAA;EACA,QAAA;EACA;AAAA,GACC,mBAAA,GAAmB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -147,7 +147,7 @@ function RecipientInput({ contacts, value, onChange, placeholder = "Kies een ont
147
147
  onKeyDown: handleKeyDown,
148
148
  placeholder: value.length === 0 ? placeholder : "",
149
149
  disabled,
150
- className: "placeholder:text-muted-foreground min-w-[120px] flex-1 bg-transparent outline-none placeholder:text-sm disabled:cursor-not-allowed"
150
+ className: "placeholder:text-muted-foreground min-w-30 flex-1 bg-transparent outline-none placeholder:text-sm disabled:cursor-not-allowed"
151
151
  })]
152
152
  })
153
153
  }), /* @__PURE__ */ jsx(PopoverContent, {
@@ -156,7 +156,7 @@ function RecipientInput({ contacts, value, onChange, placeholder = "Kies een ont
156
156
  onOpenAutoFocus: (e) => e.preventDefault(),
157
157
  style: { width: containerRef.current?.offsetWidth || "auto" },
158
158
  children: /* @__PURE__ */ jsx("div", {
159
- className: "max-h-[300px] overflow-y-auto p-1",
159
+ className: "max-h-75 overflow-y-auto p-1",
160
160
  children: filteredContacts.length === 0 && inputValue ? /* @__PURE__ */ jsxs("div", {
161
161
  className: "text-muted-foreground px-2 py-2",
162
162
  children: [/* @__PURE__ */ jsx("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"input-recipient.mjs","names":["React"],"sources":["../../../src/components/ui/input-recipient.tsx"],"sourcesContent":["\"use client\";\n\nimport { cn } from \"@/lib/utils/cn\";\nimport { X } from \"lucide-react\";\nimport * as React from \"react\";\nimport { toast } from \"sonner\";\n\nimport { Button } from \"./button\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"./popover\";\n\nexport type Contact = {\n id: string;\n email: string;\n name: string;\n};\n\ninterface RecipientInputProps {\n contacts: Contact[];\n value: string[];\n onChange: (value: string[]) => void;\n placeholder?: string;\n disabled?: boolean;\n className?: string;\n}\n\n// Simpele email validatie\nconst isValidEmail = (email: string): boolean => {\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n return emailRegex.test(email);\n};\n\nexport function RecipientInput({\n contacts,\n value,\n onChange,\n placeholder = \"Kies een ontvanger...\",\n disabled = false,\n className,\n}: RecipientInputProps) {\n const [open, setOpen] = React.useState(false);\n const [inputValue, setInputValue] = React.useState(\"\");\n const [highlightedIndex, setHighlightedIndex] = React.useState(0);\n const inputRef = React.useRef<HTMLInputElement>(null);\n const containerRef = React.useRef<HTMLDivElement>(null);\n const itemRefs = React.useRef<(HTMLButtonElement | null)[]>([]);\n\n const selectedContacts = React.useMemo(() => {\n return value\n .map((email) => {\n const contact = contacts.find((c) => c.email === email);\n return contact || { id: email, email, name: email };\n })\n .filter(Boolean) as Contact[];\n }, [value, contacts]);\n\n const availableContacts = React.useMemo(() => {\n return contacts.filter((contact) => !value.includes(contact.email));\n }, [contacts, value]);\n\n const filteredContacts = React.useMemo(() => {\n if (!inputValue || !inputValue.trim()) return availableContacts;\n const search = inputValue.toLowerCase().trim();\n return availableContacts.filter(\n (contact) =>\n contact.email.toLowerCase().includes(search) || contact.name.toLowerCase().includes(search),\n );\n }, [availableContacts, inputValue]);\n\n React.useEffect(() => {\n setHighlightedIndex(0);\n }, [filteredContacts]);\n\n React.useEffect(() => {\n if (open && highlightedIndex >= 0 && itemRefs.current[highlightedIndex]) {\n itemRefs.current[highlightedIndex]?.scrollIntoView({\n block: \"nearest\",\n behavior: \"smooth\",\n });\n }\n }, [highlightedIndex, open]);\n\n React.useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (containerRef.current && !containerRef.current.contains(event.target as Node)) {\n setOpen(false);\n }\n };\n\n if (open) {\n document.addEventListener(\"mousedown\", handleClickOutside);\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }\n }, [open]);\n\n const handleSelect = (contact: Contact) => {\n onChange([...value, contact.email]);\n setInputValue(\"\");\n setOpen(false);\n setHighlightedIndex(0);\n inputRef.current?.focus();\n };\n\n const handleAddManualEmail = () => {\n const trimmedEmail = inputValue.trim();\n\n if (!trimmedEmail) return;\n\n if (!isValidEmail(trimmedEmail)) {\n toast.error(\"Ongeldig email adres\");\n return;\n }\n\n if (value.includes(trimmedEmail)) {\n toast.error(\"Email is al toegevoegd\");\n setInputValue(\"\");\n return;\n }\n\n onChange([...value, trimmedEmail]);\n setInputValue(\"\");\n setOpen(false);\n setHighlightedIndex(0);\n inputRef.current?.focus();\n };\n\n const handleRemove = (email: string) => {\n onChange(value.filter((v) => v !== email));\n inputRef.current?.focus();\n };\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === \"ArrowDown\") {\n e.preventDefault();\n if (!open) {\n setOpen(true);\n } else {\n setHighlightedIndex((prev) => (prev < filteredContacts.length - 1 ? prev + 1 : prev));\n }\n } else if (e.key === \"ArrowUp\") {\n e.preventDefault();\n if (open) {\n setHighlightedIndex((prev) => (prev > 0 ? prev - 1 : prev));\n }\n } else if (e.key === \"Enter\") {\n e.preventDefault();\n if (open && filteredContacts[highlightedIndex]) {\n // Selecteer contact uit lijst\n handleSelect(filteredContacts[highlightedIndex]);\n } else if (inputValue.trim()) {\n // Voeg handmatig ingevoerde email toe\n handleAddManualEmail();\n }\n } else if (e.key === \"Escape\") {\n e.preventDefault();\n setOpen(false);\n } else if (e.key === \"Backspace\" && !inputValue && value.length > 0) {\n e.preventDefault();\n const lastEmail = value[value.length - 1];\n if (lastEmail) {\n handleRemove(lastEmail);\n }\n }\n };\n\n return (\n <Popover open={open}>\n <PopoverTrigger asChild>\n <div\n ref={containerRef}\n className={cn(\n \"border-input bg-background ring-offset-background flex min-h-0 w-full flex-wrap items-center gap-2 rounded-lg border px-3 py-2 text-base transition-colors md:text-sm\",\n \"focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]\",\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n onClick={() => {\n if (!disabled) {\n inputRef.current?.focus();\n }\n }}\n >\n {selectedContacts.map((contact) => (\n <div\n key={contact.id}\n className=\"border-border bg-accent/50 flex items-center gap-2 rounded-full border px-2 py-0.5\"\n >\n <span className=\"text-xs\">{contact.email}</span>\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon\"\n className=\"hover:bg-destructive/20 h-4 w-4 rounded-full p-0\"\n onClick={(e) => {\n e.stopPropagation();\n handleRemove(contact.email);\n }}\n disabled={disabled}\n >\n <X className=\"h-3 w-3\" />\n <span className=\"sr-only\">Verwijder {contact.email}</span>\n </Button>\n </div>\n ))}\n <input\n ref={inputRef}\n type=\"text\"\n value={inputValue}\n onChange={(e) => {\n setInputValue(e.target.value);\n if (e.target.value) {\n setOpen(true);\n }\n }}\n onKeyDown={handleKeyDown}\n placeholder={value.length === 0 ? placeholder : \"\"}\n disabled={disabled}\n className=\"placeholder:text-muted-foreground min-w-[120px] flex-1 bg-transparent outline-none placeholder:text-sm disabled:cursor-not-allowed\"\n />\n </div>\n </PopoverTrigger>\n <PopoverContent\n className=\"w-full p-0\"\n align=\"start\"\n onOpenAutoFocus={(e) => e.preventDefault()}\n style={{\n width: containerRef.current?.offsetWidth || \"auto\",\n }}\n >\n <div className=\"max-h-[300px] overflow-y-auto p-1\">\n {filteredContacts.length === 0 && inputValue ? (\n <div className=\"text-muted-foreground px-2 py-2\">\n <div className=\"mb-2 text-xs\">Geen contacten gevonden.</div>\n {isValidEmail(inputValue.trim()) && (\n <button\n type=\"button\"\n onClick={handleAddManualEmail}\n className=\"hover:bg-accent w-full rounded-sm px-2 py-1.5 text-left text-xs transition-colors\"\n >\n <span className=\"font-medium\">Voeg toe: </span>\n <span className=\"text-muted-foreground\">{inputValue.trim()}</span>\n </button>\n )}\n </div>\n ) : filteredContacts.length === 0 ? (\n <div className=\"text-muted-foreground py-6 text-center text-xs\">\n Geen contacten gevonden.\n </div>\n ) : (\n <>\n {filteredContacts.map((contact, index) => (\n <button\n key={contact.id}\n ref={(el) => {\n itemRefs.current[index] = el;\n }}\n type=\"button\"\n onClick={() => handleSelect(contact)}\n className={cn(\n \"outline-hidden hover:bg-accent flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-xs transition-colors\",\n highlightedIndex === index && \"bg-accent\",\n )}\n >\n <div className=\"flex flex-col items-start\">\n <span className=\"text-xs font-medium\">{contact.name}</span>\n <span className=\"text-muted-foreground text-xs\">{contact.email}</span>\n </div>\n </button>\n ))}\n {inputValue && isValidEmail(inputValue.trim()) && (\n <div className=\"mt-1 border-t pt-1\">\n <button\n type=\"button\"\n onClick={handleAddManualEmail}\n className=\"hover:bg-accent w-full rounded-sm px-2 py-1.5 text-left text-xs transition-colors\"\n >\n <span className=\"font-medium\">Voeg toe: </span>\n <span className=\"text-muted-foreground\">{inputValue.trim()}</span>\n </button>\n </div>\n )}\n </>\n )}\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n"],"mappings":";;;;;;;;;;;AA0BA,MAAM,gBAAgB,UAA2B;AAE/C,QADmB,6BACD,KAAK,MAAM;;AAG/B,SAAgB,eAAe,EAC7B,UACA,OACA,UACA,cAAc,yBACd,WAAW,OACX,aACsB;CACtB,MAAM,CAAC,MAAM,WAAWA,QAAM,SAAS,MAAM;CAC7C,MAAM,CAAC,YAAY,iBAAiBA,QAAM,SAAS,GAAG;CACtD,MAAM,CAAC,kBAAkB,uBAAuBA,QAAM,SAAS,EAAE;CACjE,MAAM,WAAWA,QAAM,OAAyB,KAAK;CACrD,MAAM,eAAeA,QAAM,OAAuB,KAAK;CACvD,MAAM,WAAWA,QAAM,OAAqC,EAAE,CAAC;CAE/D,MAAM,mBAAmBA,QAAM,cAAc;AAC3C,SAAO,MACJ,KAAK,UAAU;AAEd,UADgB,SAAS,MAAM,MAAM,EAAE,UAAU,MAAM,IACrC;IAAE,IAAI;IAAO;IAAO,MAAM;IAAO;IACnD,CACD,OAAO,QAAQ;IACjB,CAAC,OAAO,SAAS,CAAC;CAErB,MAAM,oBAAoBA,QAAM,cAAc;AAC5C,SAAO,SAAS,QAAQ,YAAY,CAAC,MAAM,SAAS,QAAQ,MAAM,CAAC;IAClE,CAAC,UAAU,MAAM,CAAC;CAErB,MAAM,mBAAmBA,QAAM,cAAc;AAC3C,MAAI,CAAC,cAAc,CAAC,WAAW,MAAM,CAAE,QAAO;EAC9C,MAAM,SAAS,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T"}
1
+ {"version":3,"file":"input-recipient.mjs","names":["React"],"sources":["../../../src/components/ui/input-recipient.tsx"],"sourcesContent":["\"use client\";\n\nimport { X } from \"lucide-react\";\nimport * as React from \"react\";\nimport { toast } from \"sonner\";\nimport { cn } from \"@/lib/utils/cn\";\n\nimport { Button } from \"./button\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"./popover\";\n\nexport type Contact = {\n id: string;\n email: string;\n name: string;\n};\n\ninterface RecipientInputProps {\n contacts: Contact[];\n value: string[];\n onChange: (value: string[]) => void;\n placeholder?: string;\n disabled?: boolean;\n className?: string;\n}\n\n// Simpele email validatie\nconst isValidEmail = (email: string): boolean => {\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n return emailRegex.test(email);\n};\n\nexport function RecipientInput({\n contacts,\n value,\n onChange,\n placeholder = \"Kies een ontvanger...\",\n disabled = false,\n className,\n}: RecipientInputProps) {\n const [open, setOpen] = React.useState(false);\n const [inputValue, setInputValue] = React.useState(\"\");\n const [highlightedIndex, setHighlightedIndex] = React.useState(0);\n const inputRef = React.useRef<HTMLInputElement>(null);\n const containerRef = React.useRef<HTMLDivElement>(null);\n const itemRefs = React.useRef<(HTMLButtonElement | null)[]>([]);\n\n const selectedContacts = React.useMemo(() => {\n return value\n .map((email) => {\n const contact = contacts.find((c) => c.email === email);\n return contact || { id: email, email, name: email };\n })\n .filter(Boolean) as Contact[];\n }, [value, contacts]);\n\n const availableContacts = React.useMemo(() => {\n return contacts.filter((contact) => !value.includes(contact.email));\n }, [contacts, value]);\n\n const filteredContacts = React.useMemo(() => {\n if (!inputValue || !inputValue.trim()) return availableContacts;\n const search = inputValue.toLowerCase().trim();\n return availableContacts.filter(\n (contact) =>\n contact.email.toLowerCase().includes(search) || contact.name.toLowerCase().includes(search),\n );\n }, [availableContacts, inputValue]);\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: We only want to reset the highlighted index when the filtered contacts change\n React.useEffect(() => {\n setHighlightedIndex(0);\n }, [filteredContacts]);\n\n React.useEffect(() => {\n if (open && highlightedIndex >= 0 && itemRefs.current[highlightedIndex]) {\n itemRefs.current[highlightedIndex]?.scrollIntoView({\n block: \"nearest\",\n behavior: \"smooth\",\n });\n }\n }, [highlightedIndex, open]);\n\n React.useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (containerRef.current && !containerRef.current.contains(event.target as Node)) {\n setOpen(false);\n }\n };\n\n if (open) {\n document.addEventListener(\"mousedown\", handleClickOutside);\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }\n }, [open]);\n\n const handleSelect = (contact: Contact) => {\n onChange([...value, contact.email]);\n setInputValue(\"\");\n setOpen(false);\n setHighlightedIndex(0);\n inputRef.current?.focus();\n };\n\n const handleAddManualEmail = () => {\n const trimmedEmail = inputValue.trim();\n\n if (!trimmedEmail) return;\n\n if (!isValidEmail(trimmedEmail)) {\n toast.error(\"Ongeldig email adres\");\n return;\n }\n\n if (value.includes(trimmedEmail)) {\n toast.error(\"Email is al toegevoegd\");\n setInputValue(\"\");\n return;\n }\n\n onChange([...value, trimmedEmail]);\n setInputValue(\"\");\n setOpen(false);\n setHighlightedIndex(0);\n inputRef.current?.focus();\n };\n\n const handleRemove = (email: string) => {\n onChange(value.filter((v) => v !== email));\n inputRef.current?.focus();\n };\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === \"ArrowDown\") {\n e.preventDefault();\n if (!open) {\n setOpen(true);\n } else {\n setHighlightedIndex((prev) => (prev < filteredContacts.length - 1 ? prev + 1 : prev));\n }\n } else if (e.key === \"ArrowUp\") {\n e.preventDefault();\n if (open) {\n setHighlightedIndex((prev) => (prev > 0 ? prev - 1 : prev));\n }\n } else if (e.key === \"Enter\") {\n e.preventDefault();\n if (open && filteredContacts[highlightedIndex]) {\n // Selecteer contact uit lijst\n handleSelect(filteredContacts[highlightedIndex]);\n } else if (inputValue.trim()) {\n // Voeg handmatig ingevoerde email toe\n handleAddManualEmail();\n }\n } else if (e.key === \"Escape\") {\n e.preventDefault();\n setOpen(false);\n } else if (e.key === \"Backspace\" && !inputValue && value.length > 0) {\n e.preventDefault();\n const lastEmail = value[value.length - 1];\n if (lastEmail) {\n handleRemove(lastEmail);\n }\n }\n };\n\n return (\n <Popover open={open}>\n <PopoverTrigger asChild>\n {/** biome-ignore lint/a11y/useKeyWithClickEvents: This is needed */}\n {/** biome-ignore lint/a11y/noStaticElementInteractions: This is needed */}\n <div\n ref={containerRef}\n className={cn(\n \"border-input bg-background ring-offset-background flex min-h-0 w-full flex-wrap items-center gap-2 rounded-lg border px-3 py-2 text-base transition-colors md:text-sm\",\n \"focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]\",\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n onClick={() => {\n if (!disabled) {\n inputRef.current?.focus();\n }\n }}\n >\n {selectedContacts.map((contact) => (\n <div\n key={contact.id}\n className=\"border-border bg-accent/50 flex items-center gap-2 rounded-full border px-2 py-0.5\"\n >\n <span className=\"text-xs\">{contact.email}</span>\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon\"\n className=\"hover:bg-destructive/20 h-4 w-4 rounded-full p-0\"\n onClick={(e) => {\n e.stopPropagation();\n handleRemove(contact.email);\n }}\n disabled={disabled}\n >\n <X className=\"h-3 w-3\" />\n <span className=\"sr-only\">Verwijder {contact.email}</span>\n </Button>\n </div>\n ))}\n <input\n ref={inputRef}\n type=\"text\"\n value={inputValue}\n onChange={(e) => {\n setInputValue(e.target.value);\n if (e.target.value) {\n setOpen(true);\n }\n }}\n onKeyDown={handleKeyDown}\n placeholder={value.length === 0 ? placeholder : \"\"}\n disabled={disabled}\n className=\"placeholder:text-muted-foreground min-w-30 flex-1 bg-transparent outline-none placeholder:text-sm disabled:cursor-not-allowed\"\n />\n </div>\n </PopoverTrigger>\n <PopoverContent\n className=\"w-full p-0\"\n align=\"start\"\n onOpenAutoFocus={(e) => e.preventDefault()}\n style={{\n width: containerRef.current?.offsetWidth || \"auto\",\n }}\n >\n <div className=\"max-h-75 overflow-y-auto p-1\">\n {filteredContacts.length === 0 && inputValue ? (\n <div className=\"text-muted-foreground px-2 py-2\">\n <div className=\"mb-2 text-xs\">Geen contacten gevonden.</div>\n {isValidEmail(inputValue.trim()) && (\n <button\n type=\"button\"\n onClick={handleAddManualEmail}\n className=\"hover:bg-accent w-full rounded-sm px-2 py-1.5 text-left text-xs transition-colors\"\n >\n <span className=\"font-medium\">Voeg toe: </span>\n <span className=\"text-muted-foreground\">{inputValue.trim()}</span>\n </button>\n )}\n </div>\n ) : filteredContacts.length === 0 ? (\n <div className=\"text-muted-foreground py-6 text-center text-xs\">\n Geen contacten gevonden.\n </div>\n ) : (\n <>\n {filteredContacts.map((contact, index) => (\n <button\n key={contact.id}\n ref={(el) => {\n itemRefs.current[index] = el;\n }}\n type=\"button\"\n onClick={() => handleSelect(contact)}\n className={cn(\n \"outline-hidden hover:bg-accent flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-xs transition-colors\",\n highlightedIndex === index && \"bg-accent\",\n )}\n >\n <div className=\"flex flex-col items-start\">\n <span className=\"text-xs font-medium\">{contact.name}</span>\n <span className=\"text-muted-foreground text-xs\">{contact.email}</span>\n </div>\n </button>\n ))}\n {inputValue && isValidEmail(inputValue.trim()) && (\n <div className=\"mt-1 border-t pt-1\">\n <button\n type=\"button\"\n onClick={handleAddManualEmail}\n className=\"hover:bg-accent w-full rounded-sm px-2 py-1.5 text-left text-xs transition-colors\"\n >\n <span className=\"font-medium\">Voeg toe: </span>\n <span className=\"text-muted-foreground\">{inputValue.trim()}</span>\n </button>\n </div>\n )}\n </>\n )}\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n"],"mappings":";;;;;;;;;;;AA0BA,MAAM,gBAAgB,UAA2B;AAE/C,QADmB,6BACD,KAAK,MAAM;;AAG/B,SAAgB,eAAe,EAC7B,UACA,OACA,UACA,cAAc,yBACd,WAAW,OACX,aACsB;CAC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,WAAU;iBAEV,oBAAC;OAAK,WAAU;iBAAc;QAAiB,EAC/C,oBAAC;OAAK,WAAU;iBAAyB,WAAW,MAAM;QAAQ;OAC3D;MAEP,GACJ,iBAAiB,WAAW,IAC9B,oBAAC;KAAI,WAAU;eAAiD;MAE1D,GAEN,4CACG,iBAAiB,KAAK,SAAS,UAC9B,oBAAC;KAEC,MAAM,OAAO;AACX,eAAS,QAAQ,SAAS;;KAE5B,MAAK;KACL,eAAe,aAAa,QAAQ;KACpC,WAAW,GACT,kHACA,qBAAqB,SAAS,YAC/B;eAED,qBAAC;MAAI,WAAU;iBACb,oBAAC;OAAK,WAAU;iBAAuB,QAAQ;QAAY,EAC3D,oBAAC;OAAK,WAAU;iBAAiC,QAAQ;QAAa;OAClE;OAdD,QAAQ,GAeN,CACT,EACD,cAAc,aAAa,WAAW,MAAM,CAAC,IAC5C,oBAAC;KAAI,WAAU;eACb,qBAAC;MACC,MAAK;MACL,SAAS;MACT,WAAU;iBAEV,oBAAC;OAAK,WAAU;iBAAc;QAAiB,EAC/C,oBAAC;OAAK,WAAU;iBAAyB,WAAW,MAAM;QAAQ;OAC3D;MACL,IAEP;KAED;IACS;GACT"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime226 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/ui/input-time.d.ts
4
4
  /**
@@ -8,7 +8,7 @@ type TimeInputProps = Omit<React.ComponentProps<"input">, "type">;
8
8
  declare function TimeInput({
9
9
  className,
10
10
  ...props
11
- }: TimeInputProps): react_jsx_runtime226.JSX.Element;
11
+ }: TimeInputProps): react_jsx_runtime0.JSX.Element;
12
12
  //#endregion
13
13
  export { TimeInput };
14
14
  //# sourceMappingURL=input-time.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-time.d.mts","names":[],"sources":["../../../src/components/ui/input-time.tsx"],"sourcesContent":[],"mappings":";;;;;;AAQiE,KAF5D,cAAA,GAAiB,IAAH,CAAQ,KAAA,CAAM,cAAA,CAAA,OAAA,CAAX,EAAA,MAAI,CAAA;AAEV,iBAAA,SAAA,CAAS;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAA0B,cAA1B,CAAA,EAAwC,oBAAA,CAAA,GAAA,CAAA,OAAxC"}
1
+ {"version":3,"file":"input-time.d.mts","names":[],"sources":["../../../src/components/ui/input-time.tsx"],"mappings":";;;;;;KAMK,cAAA,GAAiB,IAAA,CAAK,KAAA,CAAM,cAAA;AAAA,iBAEjB,SAAA,CAAA;EAAY,SAAA;EAAA,GAAc;AAAA,GAAS,cAAA,GAAc,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime225 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import * as React$1 from "react";
3
3
 
4
4
  //#region src/components/ui/input.d.ts
@@ -6,7 +6,7 @@ declare function Input({
6
6
  className,
7
7
  type,
8
8
  ...props
9
- }: React$1.ComponentProps<"input">): react_jsx_runtime225.JSX.Element;
9
+ }: React$1.ComponentProps<"input">): react_jsx_runtime0.JSX.Element;
10
10
  //#endregion
11
11
  export { Input };
12
12
  //# sourceMappingURL=input.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.mts","names":[],"sources":["../../../src/components/ui/input.tsx"],"sourcesContent":[],"mappings":";;;;iBAIS,KAAA;;;;GAAqC,OAAA,CAAM,0BAAuB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"input.d.mts","names":[],"sources":["../../../src/components/ui/input.tsx"],"mappings":";;;;iBAIS,KAAA,CAAA;EAAQ,SAAA;EAAW,IAAA;EAAA,GAAS;AAAA,GAAS,OAAA,CAAM,cAAA,YAAuB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,6 +1,5 @@
1
1
  import { cn } from "../../lib/utils/cn.mjs";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import "react";
4
3
 
5
4
  //#region src/components/ui/input.tsx
6
5
  function Input({ className, type, ...props }) {
@@ -1 +1 @@
1
- {"version":3,"file":"input.mjs","names":[],"sources":["../../../src/components/ui/input.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n \"border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base outline-none transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Input };\n"],"mappings":";;;;;AAIA,SAAS,MAAM,EAAE,WAAW,MAAM,GAAG,SAAwC;AAC3E,QACE,oBAAC;EACO;EACN,aAAU;EACV,WAAW,GACT,kbACA,iFACA,0GACA,UACD;EACD,GAAI;GACJ"}
1
+ {"version":3,"file":"input.mjs","names":[],"sources":["../../../src/components/ui/input.tsx"],"sourcesContent":["import type * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n \"border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base outline-none transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Input };\n"],"mappings":";;;;AAIA,SAAS,MAAM,EAAE,WAAW,MAAM,GAAG,SAAwC;AAC3E,QACE,oBAAC;EACO;EACN,aAAU;EACV,WAAW,GACT,kbACA,iFACA,0GACA,UACD;EACD,GAAI;GACJ"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime230 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import * as React$1 from "react";
3
3
  import * as LabelPrimitive from "@radix-ui/react-label";
4
4
 
@@ -6,7 +6,7 @@ import * as LabelPrimitive from "@radix-ui/react-label";
6
6
  declare function Label({
7
7
  className,
8
8
  ...props
9
- }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime230.JSX.Element;
9
+ }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime0.JSX.Element;
10
10
  //#endregion
11
11
  export { Label };
12
12
  //# sourceMappingURL=label.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"label.d.mts","names":[],"sources":["../../../src/components/ui/label.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOS,KAAA;;;GAA+B,OAAA,CAAM,sBAAsB,cAAA,CAAe,QAAK,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"label.d.mts","names":[],"sources":["../../../src/components/ui/label.tsx"],"mappings":";;;;;iBAOS,KAAA,CAAA;EAAQ,SAAA;EAAA,GAAc;AAAA,GAAS,OAAA,CAAM,cAAA,QAAsB,cAAA,CAAe,IAAA,IAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { cn } from "../../lib/utils/cn.mjs";
4
4
  import { jsx } from "react/jsx-runtime";
5
- import "react";
6
5
  import * as LabelPrimitive from "@radix-ui/react-label";
7
6
 
8
7
  //#region src/components/ui/label.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"label.mjs","names":[],"sources":["../../../src/components/ui/label.tsx"],"sourcesContent":["\"use client\";\n\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"flex select-none items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Label };\n"],"mappings":";;;;;;;;AAOA,SAAS,MAAM,EAAE,WAAW,GAAG,SAA2D;AACxF,QACE,oBAAC,eAAe;EACd,aAAU;EACV,WAAW,GACT,uNACA,UACD;EACD,GAAI;GACJ"}
1
+ {"version":3,"file":"label.mjs","names":[],"sources":["../../../src/components/ui/label.tsx"],"sourcesContent":["\"use client\";\n\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"flex select-none items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Label };\n"],"mappings":";;;;;;;AAOA,SAAS,MAAM,EAAE,WAAW,GAAG,SAA2D;AACxF,QACE,oBAAC,eAAe;EACd,aAAU;EACV,WAAW,GACT,uNACA,UACD;EACD,GAAI;GACJ"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime231 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import * as React$1 from "react";
3
3
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
4
- import * as class_variance_authority_types3 from "class-variance-authority/types";
4
+ import * as class_variance_authority_types0 from "class-variance-authority/types";
5
5
 
6
6
  //#region src/components/ui/navigation-menu.d.ts
7
7
  declare function NavigationMenu({
@@ -11,37 +11,37 @@ declare function NavigationMenu({
11
11
  ...props
12
12
  }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
13
13
  viewport?: boolean;
14
- }): react_jsx_runtime231.JSX.Element;
14
+ }): react_jsx_runtime0.JSX.Element;
15
15
  declare function NavigationMenuList({
16
16
  className,
17
17
  ...props
18
- }: React$1.ComponentProps<typeof NavigationMenuPrimitive.List>): react_jsx_runtime231.JSX.Element;
18
+ }: React$1.ComponentProps<typeof NavigationMenuPrimitive.List>): react_jsx_runtime0.JSX.Element;
19
19
  declare function NavigationMenuItem({
20
20
  className,
21
21
  ...props
22
- }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Item>): react_jsx_runtime231.JSX.Element;
23
- declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types3.ClassProp | undefined) => string;
22
+ }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Item>): react_jsx_runtime0.JSX.Element;
23
+ declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types0.ClassProp | undefined) => string;
24
24
  declare function NavigationMenuTrigger({
25
25
  className,
26
26
  children,
27
27
  ...props
28
- }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): react_jsx_runtime231.JSX.Element;
28
+ }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): react_jsx_runtime0.JSX.Element;
29
29
  declare function NavigationMenuContent({
30
30
  className,
31
31
  ...props
32
- }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Content>): react_jsx_runtime231.JSX.Element;
32
+ }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Content>): react_jsx_runtime0.JSX.Element;
33
33
  declare function NavigationMenuViewport({
34
34
  className,
35
35
  ...props
36
- }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): react_jsx_runtime231.JSX.Element;
36
+ }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): react_jsx_runtime0.JSX.Element;
37
37
  declare function NavigationMenuLink({
38
38
  className,
39
39
  ...props
40
- }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Link>): react_jsx_runtime231.JSX.Element;
40
+ }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Link>): react_jsx_runtime0.JSX.Element;
41
41
  declare function NavigationMenuIndicator({
42
42
  className,
43
43
  ...props
44
- }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): react_jsx_runtime231.JSX.Element;
44
+ }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): react_jsx_runtime0.JSX.Element;
45
45
  //#endregion
46
46
  export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
47
47
  //# sourceMappingURL=navigation-menu.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-menu.d.mts","names":[],"sources":["../../../src/components/ui/navigation-menu.tsx"],"sourcesContent":[],"mappings":";;;;;;iBASS,cAAA;;;;;GAKN,OAAA,CAAM,sBAAsB,uBAAA,CAAwB;;IAEtD,oBAAA,CAAA,GAAA,CAAA;iBAiBQ,kBAAA;;;GAGN,OAAA,CAAM,sBAAsB,uBAAA,CAAwB,QAAK,oBAAA,CAAA,GAAA,CAAA;AA/B7B,iBAyCtB,kBAAA,CArCc;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAwCpB,OAAA,CAAM,cAxCc,CAAA,OAwCQ,uBAAA,CAAwB,IAxChC,CAAA,CAAA,EAwCqC,oBAAA,CAAA,GAAA,CAAA,OAxCrC;cAkDjB,0BAjDJ,EAAA,CAAA,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BAiBQ,kBAAA,CAAA;EACP,SAAA;EAAA,GACG;AAAA,GACF,OAAA,CAAM,cAAA,QAAsB,uBAAA,CAAwB,IAAA,IAAK,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAUnD,kBAAA,CAAA;EACP,SAAA;EAAA,GACG;AAAA,GACF,OAAA,CAAM,cAAA,QAAsB,uBAAA,CAAwB,IAAA,IAAK,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAUtD,0BAAA,GAA0B,KAAA,GAE/B,+BAAA,CAF+B,SAAA;AAAA,iBAIvB,qBAAA,CAAA;EACP,SAAA;EACA,QAAA;EAAA,GACG;AAAA,GACF,OAAA,CAAM,cAAA,QAAsB,uBAAA,CAAwB,OAAA,IAAQ,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAgBtD,qBAAA,CAAA;EACP,SAAA;EAAA,GACG;AAAA,GACF,OAAA,CAAM,cAAA,QAAsB,uBAAA,CAAwB,OAAA,IAAQ,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBActD,sBAAA,CAAA;EACP,SAAA;EAAA,GACG;AAAA,GACF,OAAA,CAAM,cAAA,QAAsB,uBAAA,CAAwB,QAAA,IAAS,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAevD,kBAAA,CAAA;EACP,SAAA;EAAA,GACG;AAAA,GACF,OAAA,CAAM,cAAA,QAAsB,uBAAA,CAAwB,IAAA,IAAK,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAanD,uBAAA,CAAA;EACP,SAAA;EAAA,GACG;AAAA,GACF,OAAA,CAAM,cAAA,QAAsB,uBAAA,CAAwB,SAAA,IAAU,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -4,7 +4,6 @@ import { cn } from "../../lib/utils/cn.mjs";
4
4
  import { ChevronDownIcon } from "lucide-react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { cva } from "class-variance-authority";
7
- import "react";
8
7
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
9
8
 
10
9
  //#region src/components/ui/navigation-menu.tsx