@vitnode/core 1.2.0-canary.71 → 1.2.0-canary.73

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 (650) hide show
  1. package/dist/scripts/plugin.d.ts.map +1 -1
  2. package/dist/scripts/plugin.js +22 -4
  3. package/dist/scripts/prepare-plugins-files.d.ts.map +1 -1
  4. package/dist/scripts/prepare-plugins-files.js +22 -4
  5. package/dist/src/api/lib/module.d.ts +4 -1
  6. package/dist/src/api/lib/module.d.ts.map +1 -1
  7. package/dist/src/api/lib/module.js +1 -1
  8. package/dist/src/api/lib/plugin.d.ts +2 -0
  9. package/dist/src/api/lib/plugin.d.ts.map +1 -1
  10. package/dist/src/api/lib/plugin.js +1 -1
  11. package/dist/src/api/lib/websocket.d.ts +26 -0
  12. package/dist/src/api/lib/websocket.d.ts.map +1 -0
  13. package/dist/src/api/lib/websocket.js +1 -0
  14. package/dist/src/api/lib/with-pagination.d.ts +3 -1
  15. package/dist/src/api/lib/with-pagination.d.ts.map +1 -1
  16. package/dist/src/api/lib/with-pagination.js +1 -1
  17. package/dist/src/api/middlewares/global.middleware.d.ts +4 -0
  18. package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
  19. package/dist/src/api/middlewares/global.middleware.js +1 -1
  20. package/dist/src/api/middlewares/rate-limiter.middleware.d.ts.map +1 -1
  21. package/dist/src/api/middlewares/rate-limiter.middleware.js +1 -1
  22. package/dist/src/api/models/user/get-user-by-name-code.d.ts +18 -0
  23. package/dist/src/api/models/user/get-user-by-name-code.d.ts.map +1 -0
  24. package/dist/src/api/models/user/get-user-by-name-code.js +1 -0
  25. package/dist/src/api/models/user.d.ts +16 -0
  26. package/dist/src/api/models/user.d.ts.map +1 -1
  27. package/dist/src/api/models/user.js +1 -1
  28. package/dist/src/api/modules/admin/admin.module.d.ts +272 -0
  29. package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
  30. package/dist/src/api/modules/admin/admin.module.js +1 -1
  31. package/dist/src/api/modules/admin/roles/roles.admin.module.d.ts +109 -0
  32. package/dist/src/api/modules/admin/roles/roles.admin.module.d.ts.map +1 -0
  33. package/dist/src/api/modules/admin/roles/roles.admin.module.js +1 -0
  34. package/dist/src/api/modules/admin/roles/routes/list.route.d.ts +63 -0
  35. package/dist/src/api/modules/admin/roles/routes/list.route.d.ts.map +1 -0
  36. package/dist/src/api/modules/admin/roles/routes/list.route.js +1 -0
  37. package/dist/src/api/modules/admin/roles/routes/show.route.d.ts +50 -0
  38. package/dist/src/api/modules/admin/roles/routes/show.route.d.ts.map +1 -0
  39. package/dist/src/api/modules/admin/roles/routes/show.route.js +1 -0
  40. package/dist/src/api/modules/admin/routes/notifications.route.d.ts +54 -0
  41. package/dist/src/api/modules/admin/routes/notifications.route.d.ts.map +1 -0
  42. package/dist/src/api/modules/admin/routes/notifications.route.js +1 -0
  43. package/dist/src/api/modules/admin/users/routes/create.route.d.ts +48 -0
  44. package/dist/src/api/modules/admin/users/routes/create.route.d.ts.map +1 -0
  45. package/dist/src/api/modules/admin/users/routes/create.route.js +1 -0
  46. package/dist/src/api/modules/admin/users/routes/list.route.d.ts +2 -0
  47. package/dist/src/api/modules/admin/users/routes/list.route.d.ts.map +1 -1
  48. package/dist/src/api/modules/admin/users/routes/list.route.js +1 -1
  49. package/dist/src/api/modules/admin/users/routes/show.route.d.ts +49 -0
  50. package/dist/src/api/modules/admin/users/routes/show.route.d.ts.map +1 -0
  51. package/dist/src/api/modules/admin/users/routes/show.route.js +1 -0
  52. package/dist/src/api/modules/admin/users/routes/verify-email.route.d.ts +40 -0
  53. package/dist/src/api/modules/admin/users/routes/verify-email.route.d.ts.map +1 -0
  54. package/dist/src/api/modules/admin/users/routes/verify-email.route.js +1 -0
  55. package/dist/src/api/modules/admin/users/users.admin.module.d.ts +125 -0
  56. package/dist/src/api/modules/admin/users/users.admin.module.d.ts.map +1 -1
  57. package/dist/src/api/modules/admin/users/users.admin.module.js +1 -1
  58. package/dist/src/components/avatar.d.ts +1 -1
  59. package/dist/src/components/avatar.d.ts.map +1 -1
  60. package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts +1 -1
  61. package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts.map +1 -1
  62. package/dist/src/components/confirm-action/content.d.ts +2 -1
  63. package/dist/src/components/confirm-action/content.d.ts.map +1 -1
  64. package/dist/src/components/date-format.d.ts +1 -1
  65. package/dist/src/components/date-format.d.ts.map +1 -1
  66. package/dist/src/components/date-format.js +1 -1
  67. package/dist/src/components/form/auto-form.d.ts +6 -1
  68. package/dist/src/components/form/auto-form.d.ts.map +1 -1
  69. package/dist/src/components/form/auto-form.js +1 -1
  70. package/dist/src/components/form/common/desc.d.ts +1 -1
  71. package/dist/src/components/form/common/desc.d.ts.map +1 -1
  72. package/dist/src/components/form/common/label.d.ts +4 -3
  73. package/dist/src/components/form/common/label.d.ts.map +1 -1
  74. package/dist/src/components/form/common/label.js +1 -1
  75. package/dist/src/components/form/fields/array.d.ts +19 -0
  76. package/dist/src/components/form/fields/array.d.ts.map +1 -0
  77. package/dist/src/components/form/fields/array.js +1 -0
  78. package/dist/src/components/form/fields/checkbox.d.ts +1 -1
  79. package/dist/src/components/form/fields/checkbox.d.ts.map +1 -1
  80. package/dist/src/components/form/fields/checkbox.js +1 -1
  81. package/dist/src/components/form/fields/combobox.d.ts +22 -4
  82. package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
  83. package/dist/src/components/form/fields/combobox.js +1 -1
  84. package/dist/src/components/form/fields/combobox.test.d.ts +2 -0
  85. package/dist/src/components/form/fields/combobox.test.d.ts.map +1 -0
  86. package/dist/src/components/form/fields/combobox.test.js +1 -0
  87. package/dist/src/components/form/fields/input.d.ts +1 -1
  88. package/dist/src/components/form/fields/input.d.ts.map +1 -1
  89. package/dist/src/components/form/fields/input.js +1 -1
  90. package/dist/src/components/form/fields/radio-group.d.ts +11 -6
  91. package/dist/src/components/form/fields/radio-group.d.ts.map +1 -1
  92. package/dist/src/components/form/fields/radio-group.js +1 -1
  93. package/dist/src/components/form/fields/select.d.ts +2 -2
  94. package/dist/src/components/form/fields/select.d.ts.map +1 -1
  95. package/dist/src/components/form/fields/select.js +1 -1
  96. package/dist/src/components/form/fields/switch.d.ts +1 -1
  97. package/dist/src/components/form/fields/switch.d.ts.map +1 -1
  98. package/dist/src/components/form/fields/switch.js +1 -1
  99. package/dist/src/components/form/fields/textarea.d.ts +2 -2
  100. package/dist/src/components/form/fields/textarea.d.ts.map +1 -1
  101. package/dist/src/components/form/fields/textarea.js +1 -1
  102. package/dist/src/components/i18n-provider.d.ts +1 -1
  103. package/dist/src/components/i18n-provider.d.ts.map +1 -1
  104. package/dist/src/components/logo-vitnode.d.ts +1 -1
  105. package/dist/src/components/logo-vitnode.d.ts.map +1 -1
  106. package/dist/src/components/role-format.d.ts +11 -0
  107. package/dist/src/components/role-format.d.ts.map +1 -0
  108. package/dist/src/components/role-format.js +1 -0
  109. package/dist/src/components/switchers/langs/language-switcher.d.ts +2 -1
  110. package/dist/src/components/switchers/langs/language-switcher.d.ts.map +1 -1
  111. package/dist/src/components/switchers/themes/theme-switcher.d.ts +1 -1
  112. package/dist/src/components/switchers/themes/theme-switcher.d.ts.map +1 -1
  113. package/dist/src/components/table/content.d.ts +1 -1
  114. package/dist/src/components/table/content.d.ts.map +1 -1
  115. package/dist/src/components/table/content.js +1 -1
  116. package/dist/src/components/table/data-table.d.ts +14 -4
  117. package/dist/src/components/table/data-table.d.ts.map +1 -1
  118. package/dist/src/components/table/filters.d.ts +16 -0
  119. package/dist/src/components/table/filters.d.ts.map +1 -0
  120. package/dist/src/components/table/filters.js +1 -0
  121. package/dist/src/components/table/order-table-head.d.ts +1 -1
  122. package/dist/src/components/table/order-table-head.d.ts.map +1 -1
  123. package/dist/src/components/table/order-table-head.js +1 -1
  124. package/dist/src/components/table/pagination.d.ts +2 -1
  125. package/dist/src/components/table/pagination.d.ts.map +1 -1
  126. package/dist/src/components/table/search.d.ts +5 -0
  127. package/dist/src/components/table/search.d.ts.map +1 -0
  128. package/dist/src/components/table/search.js +1 -0
  129. package/dist/src/components/tiptap/toolbar/actions/alignment-action.d.ts +1 -1
  130. package/dist/src/components/tiptap/toolbar/actions/alignment-action.d.ts.map +1 -1
  131. package/dist/src/components/tiptap/toolbar/actions/alignment-action.js +1 -1
  132. package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts +1 -1
  133. package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts.map +1 -1
  134. package/dist/src/components/tiptap/toolbar/actions/bold-action.js +1 -1
  135. package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts +1 -1
  136. package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts.map +1 -1
  137. package/dist/src/components/tiptap/toolbar/actions/headings-action.js +1 -1
  138. package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts +1 -1
  139. package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts.map +1 -1
  140. package/dist/src/components/tiptap/toolbar/actions/italic-action.js +1 -1
  141. package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts +1 -1
  142. package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts.map +1 -1
  143. package/dist/src/components/tiptap/toolbar/actions/list-action.js +1 -1
  144. package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts +1 -1
  145. package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts.map +1 -1
  146. package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.js +1 -1
  147. package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts +1 -1
  148. package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts.map +1 -1
  149. package/dist/src/components/tiptap/toolbar/actions/underline-action.js +1 -1
  150. package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts +1 -1
  151. package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts.map +1 -1
  152. package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.js +1 -1
  153. package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts +1 -1
  154. package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts.map +1 -1
  155. package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts +1 -1
  156. package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts.map +1 -1
  157. package/dist/src/components/tiptap/toolbar/tiptap-toolbar.js +1 -1
  158. package/dist/src/components/ui/accordion.d.ts +5 -5
  159. package/dist/src/components/ui/accordion.d.ts.map +1 -1
  160. package/dist/src/components/ui/accordion.js +1 -1
  161. package/dist/src/components/ui/alert-dialog.d.ts +15 -13
  162. package/dist/src/components/ui/alert-dialog.d.ts.map +1 -1
  163. package/dist/src/components/ui/alert-dialog.js +1 -1
  164. package/dist/src/components/ui/alert.d.ts +6 -5
  165. package/dist/src/components/ui/alert.d.ts.map +1 -1
  166. package/dist/src/components/ui/alert.js +1 -1
  167. package/dist/src/components/ui/aspect-ratio.d.ts +4 -0
  168. package/dist/src/components/ui/aspect-ratio.d.ts.map +1 -0
  169. package/dist/src/components/ui/aspect-ratio.js +1 -0
  170. package/dist/src/components/ui/avatar.d.ts +12 -0
  171. package/dist/src/components/ui/avatar.d.ts.map +1 -0
  172. package/dist/src/components/ui/avatar.js +1 -0
  173. package/dist/src/components/ui/badge.d.ts +3 -3
  174. package/dist/src/components/ui/badge.d.ts.map +1 -1
  175. package/dist/src/components/ui/badge.js +1 -1
  176. package/dist/src/components/ui/breadcrumb.d.ts +12 -0
  177. package/dist/src/components/ui/breadcrumb.d.ts.map +1 -0
  178. package/dist/src/components/ui/breadcrumb.js +1 -0
  179. package/dist/src/components/ui/button-client.d.ts +1 -1
  180. package/dist/src/components/ui/button-client.d.ts.map +1 -1
  181. package/dist/src/components/ui/button-group.d.ts +12 -0
  182. package/dist/src/components/ui/button-group.d.ts.map +1 -0
  183. package/dist/src/components/ui/button-group.js +1 -0
  184. package/dist/src/components/ui/button.d.ts +9 -9
  185. package/dist/src/components/ui/button.d.ts.map +1 -1
  186. package/dist/src/components/ui/button.js +1 -1
  187. package/dist/src/components/ui/card.d.ts +10 -8
  188. package/dist/src/components/ui/card.d.ts.map +1 -1
  189. package/dist/src/components/ui/card.js +1 -1
  190. package/dist/src/components/ui/carousel.d.ts +29 -0
  191. package/dist/src/components/ui/carousel.d.ts.map +1 -0
  192. package/dist/src/components/ui/carousel.js +1 -0
  193. package/dist/src/components/ui/chart.d.ts +45 -0
  194. package/dist/src/components/ui/chart.d.ts.map +1 -0
  195. package/dist/src/components/ui/chart.js +5 -0
  196. package/dist/src/components/ui/checkbox.d.ts +2 -2
  197. package/dist/src/components/ui/checkbox.d.ts.map +1 -1
  198. package/dist/src/components/ui/checkbox.js +1 -1
  199. package/dist/src/components/ui/collapsible.d.ts +3 -3
  200. package/dist/src/components/ui/collapsible.d.ts.map +1 -1
  201. package/dist/src/components/ui/combobox.d.ts +25 -0
  202. package/dist/src/components/ui/combobox.d.ts.map +1 -0
  203. package/dist/src/components/ui/combobox.js +1 -0
  204. package/dist/src/components/ui/command.d.ts +10 -10
  205. package/dist/src/components/ui/command.d.ts.map +1 -1
  206. package/dist/src/components/ui/command.js +1 -1
  207. package/dist/src/components/ui/context-menu.d.ts +24 -18
  208. package/dist/src/components/ui/context-menu.d.ts.map +1 -1
  209. package/dist/src/components/ui/context-menu.js +1 -1
  210. package/dist/src/components/ui/dialog.d.ts +12 -10
  211. package/dist/src/components/ui/dialog.d.ts.map +1 -1
  212. package/dist/src/components/ui/dialog.js +1 -1
  213. package/dist/src/components/ui/direction.d.ts +8 -0
  214. package/dist/src/components/ui/direction.d.ts.map +1 -0
  215. package/dist/src/components/ui/direction.js +1 -0
  216. package/dist/src/components/ui/drawer.d.ts +11 -11
  217. package/dist/src/components/ui/drawer.d.ts.map +1 -1
  218. package/dist/src/components/ui/drawer.js +1 -1
  219. package/dist/src/components/ui/dropdown-menu.d.ts +20 -16
  220. package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -1
  221. package/dist/src/components/ui/dropdown-menu.js +1 -1
  222. package/dist/src/components/ui/editor-content.d.ts +1 -1
  223. package/dist/src/components/ui/editor-content.d.ts.map +1 -1
  224. package/dist/src/components/ui/editor.d.ts +1 -1
  225. package/dist/src/components/ui/editor.d.ts.map +1 -1
  226. package/dist/src/components/ui/editor.js +1 -1
  227. package/dist/src/components/ui/empty.d.ts +12 -0
  228. package/dist/src/components/ui/empty.d.ts.map +1 -0
  229. package/dist/src/components/ui/empty.js +1 -0
  230. package/dist/src/components/ui/field.d.ts +25 -0
  231. package/dist/src/components/ui/field.d.ts.map +1 -0
  232. package/dist/src/components/ui/field.js +1 -0
  233. package/dist/src/components/ui/form.d.ts +7 -14
  234. package/dist/src/components/ui/form.d.ts.map +1 -1
  235. package/dist/src/components/ui/form.js +1 -1
  236. package/dist/src/components/ui/header-content.d.ts +1 -1
  237. package/dist/src/components/ui/header-content.d.ts.map +1 -1
  238. package/dist/src/components/ui/hover-card.d.ts +4 -4
  239. package/dist/src/components/ui/hover-card.d.ts.map +1 -1
  240. package/dist/src/components/ui/hover-card.js +1 -1
  241. package/dist/src/components/ui/input-group.d.ts +17 -0
  242. package/dist/src/components/ui/input-group.d.ts.map +1 -0
  243. package/dist/src/components/ui/input-group.js +1 -0
  244. package/dist/src/components/ui/input-otp.d.ts +5 -5
  245. package/dist/src/components/ui/input-otp.d.ts.map +1 -1
  246. package/dist/src/components/ui/input-otp.js +1 -1
  247. package/dist/src/components/ui/input.d.ts +2 -2
  248. package/dist/src/components/ui/input.d.ts.map +1 -1
  249. package/dist/src/components/ui/input.js +1 -1
  250. package/dist/src/components/ui/item.d.ts +24 -0
  251. package/dist/src/components/ui/item.d.ts.map +1 -0
  252. package/dist/src/components/ui/item.js +1 -0
  253. package/dist/src/components/ui/kbd.d.ts +4 -0
  254. package/dist/src/components/ui/kbd.d.ts.map +1 -0
  255. package/dist/src/components/ui/kbd.js +1 -0
  256. package/dist/src/components/ui/label.d.ts +2 -2
  257. package/dist/src/components/ui/label.d.ts.map +1 -1
  258. package/dist/src/components/ui/label.js +1 -1
  259. package/dist/src/components/ui/loader.d.ts +1 -1
  260. package/dist/src/components/ui/loader.d.ts.map +1 -1
  261. package/dist/src/components/ui/menubar.d.ts +21 -17
  262. package/dist/src/components/ui/menubar.d.ts.map +1 -1
  263. package/dist/src/components/ui/menubar.js +1 -1
  264. package/dist/src/components/ui/native-select.d.ts +9 -0
  265. package/dist/src/components/ui/native-select.d.ts.map +1 -0
  266. package/dist/src/components/ui/native-select.js +1 -0
  267. package/dist/src/components/ui/navigation-menu.d.ts +9 -9
  268. package/dist/src/components/ui/navigation-menu.d.ts.map +1 -1
  269. package/dist/src/components/ui/navigation-menu.js +1 -1
  270. package/dist/src/components/ui/pagination.d.ts +18 -0
  271. package/dist/src/components/ui/pagination.d.ts.map +1 -0
  272. package/dist/src/components/ui/pagination.js +1 -0
  273. package/dist/src/components/ui/popover.d.ts +9 -6
  274. package/dist/src/components/ui/popover.d.ts.map +1 -1
  275. package/dist/src/components/ui/popover.js +1 -1
  276. package/dist/src/components/ui/progress.d.ts +2 -2
  277. package/dist/src/components/ui/progress.d.ts.map +1 -1
  278. package/dist/src/components/ui/progress.js +1 -1
  279. package/dist/src/components/ui/radio-group.d.ts +3 -3
  280. package/dist/src/components/ui/radio-group.d.ts.map +1 -1
  281. package/dist/src/components/ui/radio-group.js +1 -1
  282. package/dist/src/components/ui/resizable.d.ts +8 -0
  283. package/dist/src/components/ui/resizable.d.ts.map +1 -0
  284. package/dist/src/components/ui/resizable.js +1 -0
  285. package/dist/src/components/ui/scroll-area.d.ts +3 -3
  286. package/dist/src/components/ui/scroll-area.d.ts.map +1 -1
  287. package/dist/src/components/ui/scroll-area.js +1 -1
  288. package/dist/src/components/ui/select.d.ts +11 -11
  289. package/dist/src/components/ui/select.d.ts.map +1 -1
  290. package/dist/src/components/ui/select.js +1 -1
  291. package/dist/src/components/ui/separator.d.ts +2 -2
  292. package/dist/src/components/ui/separator.d.ts.map +1 -1
  293. package/dist/src/components/ui/separator.js +1 -1
  294. package/dist/src/components/ui/sheet.d.ts +11 -10
  295. package/dist/src/components/ui/sheet.d.ts.map +1 -1
  296. package/dist/src/components/ui/sheet.js +1 -1
  297. package/dist/src/components/ui/sidebar.d.ts +25 -25
  298. package/dist/src/components/ui/sidebar.d.ts.map +1 -1
  299. package/dist/src/components/ui/sidebar.js +1 -1
  300. package/dist/src/components/ui/skeleton.d.ts +1 -1
  301. package/dist/src/components/ui/skeleton.d.ts.map +1 -1
  302. package/dist/src/components/ui/skeleton.js +1 -1
  303. package/dist/src/components/ui/slider.d.ts +2 -2
  304. package/dist/src/components/ui/slider.d.ts.map +1 -1
  305. package/dist/src/components/ui/slider.js +1 -1
  306. package/dist/src/components/ui/sonner.d.ts +2 -2
  307. package/dist/src/components/ui/sonner.d.ts.map +1 -1
  308. package/dist/src/components/ui/sonner.js +1 -1
  309. package/dist/src/components/ui/spinner.d.ts +3 -0
  310. package/dist/src/components/ui/spinner.d.ts.map +1 -0
  311. package/dist/src/components/ui/spinner.js +1 -0
  312. package/dist/src/components/ui/switch.d.ts +4 -2
  313. package/dist/src/components/ui/switch.d.ts.map +1 -1
  314. package/dist/src/components/ui/switch.js +1 -1
  315. package/dist/src/components/ui/table.d.ts +9 -9
  316. package/dist/src/components/ui/table.d.ts.map +1 -1
  317. package/dist/src/components/ui/table.js +1 -1
  318. package/dist/src/components/ui/tabs.d.ts +10 -6
  319. package/dist/src/components/ui/tabs.d.ts.map +1 -1
  320. package/dist/src/components/ui/tabs.js +1 -1
  321. package/dist/src/components/ui/textarea.d.ts +2 -2
  322. package/dist/src/components/ui/textarea.d.ts.map +1 -1
  323. package/dist/src/components/ui/textarea.js +1 -1
  324. package/dist/src/components/ui/toggle-group.d.ts +9 -5
  325. package/dist/src/components/ui/toggle-group.d.ts.map +1 -1
  326. package/dist/src/components/ui/toggle-group.js +1 -1
  327. package/dist/src/components/ui/toggle.d.ts +2 -3
  328. package/dist/src/components/ui/toggle.d.ts.map +1 -1
  329. package/dist/src/components/ui/toggle.js +1 -1
  330. package/dist/src/components/ui/tooltip.d.ts +9 -8
  331. package/dist/src/components/ui/tooltip.d.ts.map +1 -1
  332. package/dist/src/components/ui/tooltip.js +1 -1
  333. package/dist/src/components/user-format.d.ts +14 -0
  334. package/dist/src/components/user-format.d.ts.map +1 -0
  335. package/dist/src/components/user-format.js +1 -0
  336. package/dist/src/emails/default-template.d.ts +1 -1
  337. package/dist/src/emails/default-template.d.ts.map +1 -1
  338. package/dist/src/emails/default-template.js +1 -1
  339. package/dist/src/emails/reset-password.d.ts +1 -1
  340. package/dist/src/emails/reset-password.d.ts.map +1 -1
  341. package/dist/src/emails/ui/button.d.ts +2 -2
  342. package/dist/src/emails/ui/button.d.ts.map +1 -1
  343. package/dist/src/emails/ui/card.d.ts +6 -6
  344. package/dist/src/emails/ui/card.d.ts.map +1 -1
  345. package/dist/src/hooks/use-captcha.d.ts.map +1 -1
  346. package/dist/src/hooks/use-captcha.js +1 -1
  347. package/dist/src/hooks/use-mobile.js +1 -1
  348. package/dist/src/lib/colors.d.ts.map +1 -1
  349. package/dist/src/lib/fetcher/core.d.ts.map +1 -1
  350. package/dist/src/lib/fetcher/core.js +1 -1
  351. package/dist/src/lib/fetcher/types.d.ts.map +1 -1
  352. package/dist/src/lib/helpers/auto-form.d.ts +2 -0
  353. package/dist/src/lib/helpers/auto-form.d.ts.map +1 -1
  354. package/dist/src/lib/helpers/auto-form.js +1 -1
  355. package/dist/src/lib/helpers/auto-form.test.js +1 -1
  356. package/dist/src/lib/navigation.d.ts +26 -25
  357. package/dist/src/lib/navigation.d.ts.map +1 -1
  358. package/dist/src/lib/plugin.d.ts.map +1 -1
  359. package/dist/src/locales/en.json +66 -2
  360. package/dist/src/{app_admin → routes/admin}/core/advanced/cron/page.d.ts +2 -2
  361. package/dist/src/routes/admin/core/advanced/cron/page.d.ts.map +1 -0
  362. package/dist/src/routes/admin/core/advanced/cron/page.js +1 -0
  363. package/dist/src/{app_admin → routes/admin}/core/debug/page.d.ts +1 -1
  364. package/dist/src/routes/admin/core/debug/page.d.ts.map +1 -0
  365. package/dist/src/routes/admin/core/debug/page.js +1 -0
  366. package/dist/src/routes/admin/core/page.d.ts +2 -0
  367. package/dist/src/routes/admin/core/page.d.ts.map +1 -0
  368. package/dist/src/routes/admin/core/page.js +1 -0
  369. package/dist/src/routes/admin/core/test/page.d.ts +2 -0
  370. package/dist/src/routes/admin/core/test/page.d.ts.map +1 -0
  371. package/dist/src/routes/admin/core/test/page.js +1 -0
  372. package/dist/src/routes/admin/core/users/[nameCode]/page.d.ts +13 -0
  373. package/dist/src/routes/admin/core/users/[nameCode]/page.d.ts.map +1 -0
  374. package/dist/src/routes/admin/core/users/[nameCode]/page.js +1 -0
  375. package/dist/src/{app_admin → routes/admin}/core/users/page.d.ts +1 -1
  376. package/dist/src/routes/admin/core/users/page.d.ts.map +1 -0
  377. package/dist/src/routes/admin/core/users/page.js +1 -0
  378. package/dist/src/routes/admin/core/users/roles/page.d.ts +9 -0
  379. package/dist/src/routes/admin/core/users/roles/page.d.ts.map +1 -0
  380. package/dist/src/routes/admin/core/users/roles/page.js +1 -0
  381. package/dist/src/routes/blank/test/page.d.ts +2 -0
  382. package/dist/src/routes/blank/test/page.d.ts.map +1 -0
  383. package/dist/src/routes/blank/test/page.js +1 -0
  384. package/dist/src/routes/breadcrumb/admin/[...all]/page.d.ts +6 -0
  385. package/dist/src/routes/breadcrumb/admin/[...all]/page.d.ts.map +1 -0
  386. package/dist/src/routes/breadcrumb/admin/[...all]/page.js +1 -0
  387. package/dist/src/routes/breadcrumb/admin/core/users/[nameCode]/page.d.ts +6 -0
  388. package/dist/src/routes/breadcrumb/admin/core/users/[nameCode]/page.d.ts.map +1 -0
  389. package/dist/src/routes/breadcrumb/admin/core/users/[nameCode]/page.js +1 -0
  390. package/dist/src/routes/breadcrumb/admin/default.d.ts +2 -0
  391. package/dist/src/routes/breadcrumb/admin/default.d.ts.map +1 -0
  392. package/dist/src/routes/breadcrumb/admin/default.js +1 -0
  393. package/dist/src/routes/breadcrumb/main/[...rest]/page.d.ts +6 -0
  394. package/dist/src/routes/breadcrumb/main/[...rest]/page.d.ts.map +1 -0
  395. package/dist/src/routes/breadcrumb/main/[...rest]/page.js +1 -0
  396. package/dist/src/routes/breadcrumb/main/default.d.ts +2 -0
  397. package/dist/src/routes/breadcrumb/main/default.d.ts.map +1 -0
  398. package/dist/src/routes/breadcrumb/main/default.js +1 -0
  399. package/dist/src/routes/breadcrumb/main/login/page.d.ts +2 -0
  400. package/dist/src/routes/breadcrumb/main/login/page.d.ts.map +1 -0
  401. package/dist/src/routes/breadcrumb/main/login/page.js +1 -0
  402. package/dist/src/routes/breadcrumb/main/login/reset-password/page.d.ts +2 -0
  403. package/dist/src/routes/breadcrumb/main/login/reset-password/page.d.ts.map +1 -0
  404. package/dist/src/routes/breadcrumb/main/login/reset-password/page.js +1 -0
  405. package/dist/src/routes/breadcrumb/main/page.d.ts +2 -0
  406. package/dist/src/routes/breadcrumb/main/page.d.ts.map +1 -0
  407. package/dist/src/routes/breadcrumb/main/page.js +1 -0
  408. package/dist/src/routes/breadcrumb/main/register/page.d.ts +2 -0
  409. package/dist/src/routes/breadcrumb/main/register/page.d.ts.map +1 -0
  410. package/dist/src/routes/breadcrumb/main/register/page.js +1 -0
  411. package/dist/src/{app → routes/main}/login/page.d.ts +1 -1
  412. package/dist/src/routes/main/login/page.d.ts.map +1 -0
  413. package/dist/src/routes/main/login/page.js +1 -0
  414. package/dist/src/{app → routes/main}/login/reset-password/page.d.ts +2 -2
  415. package/dist/src/routes/main/login/reset-password/page.d.ts.map +1 -0
  416. package/dist/src/routes/main/login/reset-password/page.js +1 -0
  417. package/dist/src/{app → routes/main}/login/sso/[providerId]/page.d.ts +1 -1
  418. package/dist/src/routes/main/login/sso/[providerId]/page.d.ts.map +1 -0
  419. package/dist/src/routes/main/login/sso/[providerId]/page.js +1 -0
  420. package/dist/src/{app → routes/main}/register/page.d.ts +1 -1
  421. package/dist/src/routes/main/register/page.d.ts.map +1 -0
  422. package/dist/src/routes/main/register/page.js +1 -0
  423. package/dist/src/views/admin/layouts/admin-layout.d.ts +3 -2
  424. package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
  425. package/dist/src/views/admin/layouts/admin-layout.js +1 -1
  426. package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-admin.d.ts +11 -0
  427. package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-admin.d.ts.map +1 -0
  428. package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-admin.js +1 -0
  429. package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-user-admin.d.ts +6 -0
  430. package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-user-admin.d.ts.map +1 -0
  431. package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-user-admin.js +1 -0
  432. package/dist/src/views/admin/layouts/breadcrumb/resolve-breadcrumb.d.ts +5 -0
  433. package/dist/src/views/admin/layouts/breadcrumb/resolve-breadcrumb.d.ts.map +1 -0
  434. package/dist/src/views/admin/layouts/breadcrumb/resolve-breadcrumb.js +1 -0
  435. package/dist/src/views/admin/layouts/sidebar/nav/get-admin-nav.d.ts +11 -0
  436. package/dist/src/views/admin/layouts/sidebar/nav/get-admin-nav.d.ts.map +1 -0
  437. package/dist/src/views/admin/layouts/sidebar/nav/get-admin-nav.js +1 -0
  438. package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts +1 -1
  439. package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
  440. package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts +5 -9
  441. package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts.map +1 -1
  442. package/dist/src/views/admin/layouts/sidebar/nav/nav.js +1 -1
  443. package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts +1 -1
  444. package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts.map +1 -1
  445. package/dist/src/views/admin/layouts/sidebar/sidebar.js +1 -1
  446. package/dist/src/views/admin/layouts/sidebar/sign-out.d.ts +1 -1
  447. package/dist/src/views/admin/layouts/sidebar/sign-out.d.ts.map +1 -1
  448. package/dist/src/views/admin/layouts/user-bar/client.d.ts +1 -1
  449. package/dist/src/views/admin/layouts/user-bar/client.d.ts.map +1 -1
  450. package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts +1 -1
  451. package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts.map +1 -1
  452. package/dist/src/views/admin/sign-in/sign-in-admin-view.d.ts +1 -1
  453. package/dist/src/views/admin/sign-in/sign-in-admin-view.d.ts.map +1 -1
  454. package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts +1 -1
  455. package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts.map +1 -1
  456. package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.js +1 -1
  457. package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts +1 -1
  458. package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts.map +1 -1
  459. package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.d.ts +1 -1
  460. package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.d.ts.map +1 -1
  461. package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.js +1 -1
  462. package/dist/src/views/admin/views/core/dashboard/send-notification/mutation-api.d.ts +6 -0
  463. package/dist/src/views/admin/views/core/dashboard/send-notification/mutation-api.d.ts.map +1 -0
  464. package/dist/src/views/admin/views/core/dashboard/send-notification/mutation-api.js +1 -0
  465. package/dist/src/views/admin/views/core/dashboard/send-notification/send-notification.d.ts +5 -0
  466. package/dist/src/views/admin/views/core/dashboard/send-notification/send-notification.d.ts.map +1 -0
  467. package/dist/src/views/admin/views/core/dashboard/send-notification/send-notification.js +1 -0
  468. package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.d.ts +1 -1
  469. package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.d.ts.map +1 -1
  470. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts +1 -1
  471. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts.map +1 -1
  472. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts +1 -1
  473. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts.map +1 -1
  474. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.d.ts +1 -1
  475. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.d.ts.map +1 -1
  476. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.d.ts +1 -1
  477. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.d.ts.map +1 -1
  478. package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.d.ts +1 -1
  479. package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.d.ts.map +1 -1
  480. package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.js +1 -1
  481. package/dist/src/views/admin/views/core/test.d.ts +1 -1
  482. package/dist/src/views/admin/views/core/test.d.ts.map +1 -1
  483. package/dist/src/views/admin/views/core/test.js +1 -1
  484. package/dist/src/views/admin/views/core/users/actions/create/content.d.ts +2 -0
  485. package/dist/src/views/admin/views/core/users/actions/create/content.d.ts.map +1 -0
  486. package/dist/src/views/admin/views/core/users/actions/create/content.js +1 -0
  487. package/dist/src/views/admin/views/core/users/actions/create/create.d.ts +3 -0
  488. package/dist/src/views/admin/views/core/users/actions/create/create.d.ts.map +1 -0
  489. package/dist/src/views/admin/views/core/users/actions/create/create.js +1 -0
  490. package/dist/src/views/admin/views/core/users/actions/create/mutation-api.d.ts +14 -0
  491. package/dist/src/views/admin/views/core/users/actions/create/mutation-api.d.ts.map +1 -0
  492. package/dist/src/views/admin/views/core/users/actions/create/mutation-api.js +1 -0
  493. package/dist/src/views/admin/views/core/users/actions/create/use-form.d.ts +15 -0
  494. package/dist/src/views/admin/views/core/users/actions/create/use-form.d.ts.map +1 -0
  495. package/dist/src/views/admin/views/core/users/actions/create/use-form.js +1 -0
  496. package/dist/src/views/admin/views/core/users/actions/verify-email/mutation-api.d.ts +11 -0
  497. package/dist/src/views/admin/views/core/users/actions/verify-email/mutation-api.d.ts.map +1 -0
  498. package/dist/src/views/admin/views/core/users/actions/verify-email/mutation-api.js +1 -0
  499. package/dist/src/views/admin/views/core/users/actions/verify-email/verify-email.d.ts +6 -0
  500. package/dist/src/views/admin/views/core/users/actions/verify-email/verify-email.d.ts.map +1 -0
  501. package/dist/src/views/admin/views/core/users/actions/verify-email/verify-email.js +1 -0
  502. package/dist/src/views/admin/views/core/users/actions.d.ts +5 -0
  503. package/dist/src/views/admin/views/core/users/actions.d.ts.map +1 -0
  504. package/dist/src/views/admin/views/core/users/actions.js +1 -0
  505. package/dist/src/views/admin/views/core/users/roles/roles-admin-view.d.ts +4 -0
  506. package/dist/src/views/admin/views/core/users/roles/roles-admin-view.d.ts.map +1 -0
  507. package/dist/src/views/admin/views/core/users/roles/roles-admin-view.js +1 -0
  508. package/dist/src/views/admin/views/core/users/search-roles.action.d.ts +3 -0
  509. package/dist/src/views/admin/views/core/users/search-roles.action.d.ts.map +1 -0
  510. package/dist/src/views/admin/views/core/users/search-roles.action.js +1 -0
  511. package/dist/src/views/admin/views/core/users/show/show-user-admin-view.d.ts +4 -0
  512. package/dist/src/views/admin/views/core/users/show/show-user-admin-view.d.ts.map +1 -0
  513. package/dist/src/views/admin/views/core/users/show/show-user-admin-view.js +1 -0
  514. package/dist/src/views/admin/views/core/users/users-admin-view.d.ts +1 -1
  515. package/dist/src/views/admin/views/core/users/users-admin-view.d.ts.map +1 -1
  516. package/dist/src/views/admin/views/core/users/users-admin-view.js +1 -1
  517. package/dist/src/views/auth/password-reset/change-password-form/form.d.ts +1 -1
  518. package/dist/src/views/auth/password-reset/change-password-form/form.d.ts.map +1 -1
  519. package/dist/src/views/auth/password-reset/form/form.d.ts +1 -1
  520. package/dist/src/views/auth/password-reset/form/form.d.ts.map +1 -1
  521. package/dist/src/views/auth/password-reset/password-reset-view.d.ts +1 -1
  522. package/dist/src/views/auth/password-reset/password-reset-view.d.ts.map +1 -1
  523. package/dist/src/views/auth/password-reset/password-reset-view.js +1 -1
  524. package/dist/src/views/auth/sign-in/form/form.d.ts +1 -1
  525. package/dist/src/views/auth/sign-in/form/form.d.ts.map +1 -1
  526. package/dist/src/views/auth/sign-in/sign-in-view.d.ts +2 -1
  527. package/dist/src/views/auth/sign-in/sign-in-view.d.ts.map +1 -1
  528. package/dist/src/views/auth/sign-in/sign-in-view.js +1 -1
  529. package/dist/src/views/auth/sign-up/components/password-input.d.ts +1 -1
  530. package/dist/src/views/auth/sign-up/components/password-input.d.ts.map +1 -1
  531. package/dist/src/views/auth/sign-up/components/password-input.js +1 -1
  532. package/dist/src/views/auth/sign-up/email-confirmation-view.d.ts +1 -1
  533. package/dist/src/views/auth/sign-up/email-confirmation-view.d.ts.map +1 -1
  534. package/dist/src/views/auth/sign-up/form/form.d.ts +1 -1
  535. package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
  536. package/dist/src/views/auth/sign-up/sign-up-view.d.ts +2 -1
  537. package/dist/src/views/auth/sign-up/sign-up-view.d.ts.map +1 -1
  538. package/dist/src/views/auth/sign-up/sign-up-view.js +1 -1
  539. package/dist/src/views/auth/sign-up/wrapper.d.ts +1 -1
  540. package/dist/src/views/auth/sign-up/wrapper.d.ts.map +1 -1
  541. package/dist/src/views/auth/sso/buttons/client.d.ts +1 -1
  542. package/dist/src/views/auth/sso/buttons/client.d.ts.map +1 -1
  543. package/dist/src/views/auth/sso/buttons/sso-buttons.d.ts +2 -2
  544. package/dist/src/views/auth/sso/buttons/sso-buttons.d.ts.map +1 -1
  545. package/dist/src/views/auth/sso/callback/callback-sso-view.d.ts +1 -1
  546. package/dist/src/views/auth/sso/callback/callback-sso-view.d.ts.map +1 -1
  547. package/dist/src/views/auth/sso/callback/client/client.d.ts +1 -1
  548. package/dist/src/views/auth/sso/callback/client/client.d.ts.map +1 -1
  549. package/dist/src/views/breadcrumb/breadcrumb-main.d.ts +7 -0
  550. package/dist/src/views/breadcrumb/breadcrumb-main.d.ts.map +1 -0
  551. package/dist/src/views/breadcrumb/breadcrumb-main.js +1 -0
  552. package/dist/src/views/breadcrumb/breadcrumb-render.d.ts +5 -0
  553. package/dist/src/views/breadcrumb/breadcrumb-render.d.ts.map +1 -0
  554. package/dist/src/views/breadcrumb/breadcrumb-render.js +1 -0
  555. package/dist/src/views/breadcrumb/crumb.d.ts +9 -0
  556. package/dist/src/views/breadcrumb/crumb.d.ts.map +1 -0
  557. package/dist/src/views/breadcrumb/crumb.js +1 -0
  558. package/dist/src/views/breadcrumb/resolve-main-breadcrumb.d.ts +3 -0
  559. package/dist/src/views/breadcrumb/resolve-main-breadcrumb.d.ts.map +1 -0
  560. package/dist/src/views/breadcrumb/resolve-main-breadcrumb.js +1 -0
  561. package/dist/src/views/error/back-button.d.ts +1 -1
  562. package/dist/src/views/error/back-button.d.ts.map +1 -1
  563. package/dist/src/views/error/error-view.d.ts +1 -1
  564. package/dist/src/views/error/error-view.d.ts.map +1 -1
  565. package/dist/src/views/error/global-error-view.d.ts +1 -1
  566. package/dist/src/views/error/global-error-view.d.ts.map +1 -1
  567. package/dist/src/views/layouts/provider.d.ts +3 -5
  568. package/dist/src/views/layouts/provider.d.ts.map +1 -1
  569. package/dist/src/views/layouts/provider.js +1 -1
  570. package/dist/src/views/layouts/root-layout.d.ts +1 -1
  571. package/dist/src/views/layouts/root-layout.d.ts.map +1 -1
  572. package/dist/src/views/layouts/root-layout.js +1 -1
  573. package/dist/src/views/layouts/theme/header/header.d.ts +1 -1
  574. package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
  575. package/dist/src/views/layouts/theme/header/user/auth/auth.d.ts +1 -1
  576. package/dist/src/views/layouts/theme/header/user/auth/auth.d.ts.map +1 -1
  577. package/dist/src/views/layouts/theme/header/user/auth/client.d.ts +1 -1
  578. package/dist/src/views/layouts/theme/header/user/auth/client.d.ts.map +1 -1
  579. package/dist/src/views/layouts/theme/header/user/user.d.ts +1 -1
  580. package/dist/src/views/layouts/theme/header/user/user.d.ts.map +1 -1
  581. package/dist/src/views/layouts/theme/layout.d.ts +3 -2
  582. package/dist/src/views/layouts/theme/layout.d.ts.map +1 -1
  583. package/dist/src/views/layouts/theme/layout.js +1 -1
  584. package/dist/src/views/layouts/theme/notification-listener.d.ts +2 -0
  585. package/dist/src/views/layouts/theme/notification-listener.d.ts.map +1 -0
  586. package/dist/src/views/layouts/theme/notification-listener.js +1 -0
  587. package/dist/src/views/layouts/theme/web-socket-auth-sync.d.ts +4 -0
  588. package/dist/src/views/layouts/theme/web-socket-auth-sync.d.ts.map +1 -0
  589. package/dist/src/views/layouts/theme/web-socket-auth-sync.js +1 -0
  590. package/dist/src/vitnode.config.d.ts +4 -0
  591. package/dist/src/vitnode.config.d.ts.map +1 -1
  592. package/dist/src/vitnode.config.js +1 -1
  593. package/dist/src/ws/handle.d.ts +5 -0
  594. package/dist/src/ws/handle.d.ts.map +1 -0
  595. package/dist/src/ws/handle.js +1 -0
  596. package/dist/src/ws/manager.d.ts +14 -0
  597. package/dist/src/ws/manager.d.ts.map +1 -0
  598. package/dist/src/ws/manager.js +1 -0
  599. package/dist/src/ws/notifications.d.ts +8 -0
  600. package/dist/src/ws/notifications.d.ts.map +1 -0
  601. package/dist/src/ws/notifications.js +1 -0
  602. package/dist/src/ws/provider.d.ts +14 -0
  603. package/dist/src/ws/provider.d.ts.map +1 -0
  604. package/dist/src/ws/provider.js +1 -0
  605. package/dist/src/ws/registry.d.ts +14 -0
  606. package/dist/src/ws/registry.d.ts.map +1 -0
  607. package/dist/src/ws/registry.js +1 -0
  608. package/dist/src/ws/types.d.ts +22 -0
  609. package/dist/src/ws/types.d.ts.map +1 -0
  610. package/dist/src/ws/types.js +1 -0
  611. package/dist/src/ws/use-websocket.d.ts +9 -0
  612. package/dist/src/ws/use-websocket.d.ts.map +1 -0
  613. package/dist/src/ws/use-websocket.js +1 -0
  614. package/dist/tsconfig.tsbuildinfo +1 -1
  615. package/dist/vitest.config.d.ts.map +1 -1
  616. package/dist/vitest.config.js +1 -2
  617. package/package.json +61 -52
  618. package/src/locales/en.json +66 -2
  619. package/dist/src/app/login/page.d.ts.map +0 -1
  620. package/dist/src/app/login/page.js +0 -1
  621. package/dist/src/app/login/reset-password/page.d.ts.map +0 -1
  622. package/dist/src/app/login/reset-password/page.js +0 -1
  623. package/dist/src/app/login/sso/[providerId]/page.d.ts.map +0 -1
  624. package/dist/src/app/login/sso/[providerId]/page.js +0 -1
  625. package/dist/src/app/register/page.d.ts.map +0 -1
  626. package/dist/src/app/register/page.js +0 -1
  627. package/dist/src/app_admin/core/advanced/cron/page.d.ts.map +0 -1
  628. package/dist/src/app_admin/core/advanced/cron/page.js +0 -1
  629. package/dist/src/app_admin/core/debug/page.d.ts.map +0 -1
  630. package/dist/src/app_admin/core/debug/page.js +0 -1
  631. package/dist/src/app_admin/core/page.d.ts +0 -2
  632. package/dist/src/app_admin/core/page.d.ts.map +0 -1
  633. package/dist/src/app_admin/core/page.js +0 -1
  634. package/dist/src/app_admin/core/test/page.d.ts +0 -2
  635. package/dist/src/app_admin/core/test/page.d.ts.map +0 -1
  636. package/dist/src/app_admin/core/test/page.js +0 -1
  637. package/dist/src/app_admin/core/users/page.d.ts.map +0 -1
  638. package/dist/src/app_admin/core/users/page.js +0 -1
  639. package/dist/src/components/form/fields/combobox-async.d.ts +0 -18
  640. package/dist/src/components/form/fields/combobox-async.d.ts.map +0 -1
  641. package/dist/src/components/form/fields/combobox-async.js +0 -1
  642. package/src/app/login/page.tsx +0 -22
  643. package/src/app/login/reset-password/page.tsx +0 -27
  644. package/src/app/login/sso/[providerId]/page.tsx +0 -19
  645. package/src/app/register/page.tsx +0 -22
  646. package/src/app_admin/core/advanced/cron/page.tsx +0 -42
  647. package/src/app_admin/core/debug/page.tsx +0 -46
  648. package/src/app_admin/core/page.tsx +0 -5
  649. package/src/app_admin/core/test/page.tsx +0 -5
  650. package/src/app_admin/core/users/page.tsx +0 -41
@@ -0,0 +1,45 @@
1
+ import type { TooltipValueType } from "recharts";
2
+ import * as React from "react";
3
+ import * as RechartsPrimitive from "recharts";
4
+ declare const THEMES: {
5
+ readonly light: "";
6
+ readonly dark: ".dark";
7
+ };
8
+ type TooltipNameType = number | string;
9
+ export type ChartConfig = Record<string, ({
10
+ color?: never;
11
+ theme: Record<keyof typeof THEMES, string>;
12
+ } | {
13
+ color?: string;
14
+ theme?: never;
15
+ }) & {
16
+ icon?: React.ComponentType;
17
+ label?: React.ReactNode;
18
+ }>;
19
+ declare function ChartContainer({ id, className, children, config, initialDimension, ...props }: React.ComponentProps<"div"> & {
20
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
21
+ config: ChartConfig;
22
+ initialDimension?: {
23
+ height: number;
24
+ width: number;
25
+ };
26
+ }): React.JSX.Element;
27
+ declare const ChartStyle: ({ id, config }: {
28
+ config: ChartConfig;
29
+ id: string;
30
+ }) => React.JSX.Element | null;
31
+ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
32
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: Omit<RechartsPrimitive.DefaultTooltipContentProps<TooltipValueType, TooltipNameType>, "accessibilityLayer"> & React.ComponentProps<"div"> & React.ComponentProps<typeof RechartsPrimitive.Tooltip> & {
33
+ hideIndicator?: boolean;
34
+ hideLabel?: boolean;
35
+ indicator?: "dashed" | "dot" | "line";
36
+ labelKey?: string;
37
+ nameKey?: string;
38
+ }): React.JSX.Element | null;
39
+ declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
40
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<"div"> & RechartsPrimitive.DefaultLegendContentProps & {
41
+ hideIcon?: boolean;
42
+ nameKey?: string;
43
+ }): React.JSX.Element | null;
44
+ export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, };
45
+ //# sourceMappingURL=chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/chart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAK9C,QAAA,MAAM,MAAM;;;CAAwC,CAAC;AAGrD,KAAK,eAAe,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC,MAAM,MAAM,WAAW,GAAG,MAAM,CAC9B,MAAM,EACN,CACI;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,OAAO,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GAC7D;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CACpC,GAAG;IACF,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CACF,CAAC;AAkBF,iBAAS,cAAc,CAAC,EACtB,EAAE,EACF,SAAS,EACT,QAAQ,EACR,MAAM,EACN,gBAAoC,EACpC,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,QAAQ,EAAE,KAAK,CAAC,cAAc,CAC5B,OAAO,iBAAiB,CAAC,mBAAmB,CAC7C,CAAC,UAAU,CAAC,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;IACpB,gBAAgB,CAAC,EAAE;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM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x as _jsx,jsxs as _jsxs,Fragment as _Fragment}from"react/jsx-runtime";import*as React from"react";import*as RechartsPrimitive from"recharts";import{cn}from"../../lib/utils.js";const THEMES={light:"",dark:".dark"};const INITIAL_DIMENSION={width:320,height:200};const ChartContext=React.createContext(null);function useChart(){const context=React.use(ChartContext);if(!context){throw new Error("useChart must be used within a <ChartContainer />")}return context}function ChartContainer({id,className,children,config,initialDimension=INITIAL_DIMENSION,...props}){const uniqueId=React.useId();const chartId=`chart-${id??uniqueId.replace(/:/g,"")}`;return _jsx(ChartContext.Provider,{value:{config},children:_jsxs("div",{className:cn("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",className),"data-chart":chartId,"data-slot":"chart",...props,children:[_jsx(ChartStyle,{config:config,id:chartId}),_jsx(RechartsPrimitive.ResponsiveContainer,{initialDimension:initialDimension,children:children})]})})}const ChartStyle=({id,config})=>{const colorConfig=Object.entries(config).filter(([,config])=>config.theme??config.color);if(!colorConfig.length){return null}return _jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(THEMES).map(([theme,prefix])=>`
2
+ ${prefix} [data-chart=${id}] {
3
+ ${colorConfig.map(([key,itemConfig])=>{const color=itemConfig.theme?.[theme]??itemConfig.color;return color?` --color-${key}: ${color};`:null}).join("\n")}
4
+ }
5
+ `).join("\n")}})};const ChartTooltip=RechartsPrimitive.Tooltip;function ChartTooltipContent({active,payload,className,indicator="dot",hideLabel=false,hideIndicator=false,label,labelFormatter,labelClassName,formatter,color,nameKey,labelKey}){const{config}=useChart();const tooltipLabel=React.useMemo(()=>{if(hideLabel||!payload?.length){return null}const[item]=payload;const key=`${labelKey??item?.dataKey??item?.name??"value"}`;const itemConfig=getPayloadConfigFromPayload(config,item,key);const value=!labelKey&&typeof label==="string"?config[label]?.label??label:itemConfig?.label;if(labelFormatter){return _jsx("div",{className:cn("font-medium",labelClassName),children:labelFormatter(value,payload)})}if(!value){return null}return _jsx("div",{className:cn("font-medium",labelClassName),children:value})},[label,labelFormatter,payload,hideLabel,labelClassName,config,labelKey]);if(!active||!payload?.length){return null}const nestLabel=payload.length===1&&indicator!=="dot";return _jsxs("div",{className:cn("border-border/50 bg-background grid min-w-32 items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",className),children:[!nestLabel?tooltipLabel:null,_jsx("div",{className:"grid gap-1.5",children:payload.filter(item=>item.type!=="none").map((item,index)=>{const key=`${nameKey??item.name??item.dataKey??"value"}`;const itemConfig=getPayloadConfigFromPayload(config,item,key);const indicatorColor=color??item.payload?.fill??item.color;return _jsx("div",{className:cn("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",indicator==="dot"&&"items-center"),children:formatter&&item?.value!==undefined&&item.name?formatter(item.value,item.name,item,index,item.payload):_jsxs(_Fragment,{children:[itemConfig?.icon?_jsx(itemConfig.icon,{}):!hideIndicator&&_jsx("div",{className:cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":indicator==="dot","w-1":indicator==="line","w-0 border-[1.5px] border-dashed bg-transparent":indicator==="dashed","my-0.5":nestLabel&&indicator==="dashed"}),style:{"--color-bg":indicatorColor,"--color-border":indicatorColor}}),_jsxs("div",{className:cn("flex flex-1 justify-between leading-none",nestLabel?"items-end":"items-center"),children:[_jsxs("div",{className:"grid gap-1.5",children:[nestLabel?tooltipLabel:null,_jsx("span",{className:"text-muted-foreground",children:itemConfig?.label??item.name})]}),item.value!=null&&_jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:typeof item.value==="number"?item.value.toLocaleString():String(item.value)})]})]})},index)})})]})}const ChartLegend=RechartsPrimitive.Legend;function ChartLegendContent({className,hideIcon=false,payload,verticalAlign="bottom",nameKey}){const{config}=useChart();if(!payload?.length){return null}return _jsx("div",{className:cn("flex items-center justify-center gap-4",verticalAlign==="top"?"pb-3":"pt-3",className),children:payload.filter(item=>item.type!=="none").map((item,index)=>{const key=`${nameKey??item.dataKey??"value"}`;const itemConfig=getPayloadConfigFromPayload(config,item,key);return _jsxs("div",{className:cn("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[itemConfig?.icon&&!hideIcon?_jsx(itemConfig.icon,{}):_jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:item.color}}),itemConfig?.label]},index)})})}function getPayloadConfigFromPayload(config,payload,key){if(typeof payload!=="object"||payload===null){return undefined}const payloadPayload="payload"in payload&&typeof payload.payload==="object"&&payload.payload!==null?payload.payload:undefined;let configLabelKey=key;if(key in payload&&typeof payload[key]==="string"){configLabelKey=payload[key]}else if(payloadPayload&&key in payloadPayload&&typeof payloadPayload[key]==="string"){configLabelKey=payloadPayload[key]}return configLabelKey in config?config[configLabelKey]:config[key]}export{ChartContainer,ChartLegend,ChartLegendContent,ChartStyle,ChartTooltip,ChartTooltipContent};
@@ -1,5 +1,5 @@
1
- import type * as React from "react";
2
1
  import { Checkbox as CheckboxPrimitive } from "radix-ui";
3
- declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
2
+ import * as React from "react";
3
+ declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): React.JSX.Element;
4
4
  export { Checkbox };
5
5
  //# sourceMappingURL=checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIzD,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,2CAkBrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,qBAkBrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1 +1 @@
1
- "use client";import{jsx as _jsx}from"react/jsx-runtime";import{CheckIcon}from"lucide-react";import{Checkbox as CheckboxPrimitive}from"radix-ui";import{cn}from"../../lib/utils.js";function Checkbox({className,...props}){return _jsx(CheckboxPrimitive.Root,{className:cn("border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",className),"data-slot":"checkbox",...props,children:_jsx(CheckboxPrimitive.Indicator,{className:"flex items-center justify-center text-current transition-none","data-slot":"checkbox-indicator",children:_jsx(CheckIcon,{className:"size-3.5"})})})}export{Checkbox};
1
+ "use client";import{jsx as _jsx}from"react/jsx-runtime";import{CheckIcon}from"lucide-react";import{Checkbox as CheckboxPrimitive}from"radix-ui";import*as React from"react";import{cn}from"../../lib/utils.js";function Checkbox({className,...props}){return _jsx(CheckboxPrimitive.Root,{className:cn("peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3",className),"data-slot":"checkbox",...props,children:_jsx(CheckboxPrimitive.Indicator,{className:"grid place-content-center text-current transition-none [&>svg]:size-3.5","data-slot":"checkbox-indicator",children:_jsx(CheckIcon,{})})})}export{Checkbox};
@@ -1,6 +1,6 @@
1
1
  import { Collapsible as CollapsiblePrimitive } from "radix-ui";
2
- declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
- declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
4
- declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
2
+ declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react").JSX.Element;
3
+ declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react").JSX.Element;
4
+ declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react").JSX.Element;
5
5
  export { Collapsible, CollapsibleContent, CollapsibleTrigger };
6
6
  //# sourceMappingURL=collapsible.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE/D,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,2CAExD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,2CAOtE;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,2CAOtE;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE/D,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,+BAExD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,+BAOtE;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,+BAOtE;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { Combobox as ComboboxPrimitive } from "@base-ui/react";
2
+ import * as React from "react";
3
+ declare const Combobox: typeof ComboboxPrimitive.Root;
4
+ declare function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props): React.JSX.Element;
5
+ declare function ComboboxTrigger({ className, children, ...props }: ComboboxPrimitive.Trigger.Props): React.JSX.Element;
6
+ declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: ComboboxPrimitive.Input.Props & {
7
+ showClear?: boolean;
8
+ showTrigger?: boolean;
9
+ }): React.JSX.Element;
10
+ declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, "align" | "alignOffset" | "anchor" | "side" | "sideOffset">): React.JSX.Element;
11
+ declare function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props): React.JSX.Element;
12
+ declare function ComboboxItem({ className, children, ...props }: ComboboxPrimitive.Item.Props): React.JSX.Element;
13
+ declare function ComboboxGroup({ className, ...props }: ComboboxPrimitive.Group.Props): React.JSX.Element;
14
+ declare function ComboboxLabel({ className, ...props }: ComboboxPrimitive.GroupLabel.Props): React.JSX.Element;
15
+ declare function ComboboxCollection({ ...props }: ComboboxPrimitive.Collection.Props): React.JSX.Element;
16
+ declare function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props): React.JSX.Element;
17
+ declare function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Separator.Props): React.JSX.Element;
18
+ declare function ComboboxChips({ className, ...props }: ComboboxPrimitive.Chips.Props & React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips>): React.JSX.Element;
19
+ declare function ComboboxChip({ className, children, showRemove, ...props }: ComboboxPrimitive.Chip.Props & {
20
+ showRemove?: boolean;
21
+ }): React.JSX.Element;
22
+ declare function ComboboxChipsInput({ className, ...props }: ComboboxPrimitive.Input.Props): React.JSX.Element;
23
+ declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
24
+ export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor, };
25
+ //# sourceMappingURL=combobox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/combobox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAG/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,QAAA,MAAM,QAAQ,+BAAyB,CAAC;AAExC,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,qBAEjE;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,OAAO,CAAC,KAAK,qBAWjC;AAeD,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,QAAgB,EAChB,WAAkB,EAClB,SAAiB,EACjB,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,GAAG;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,qBAyBA;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,IAAe,EACf,UAAc,EACd,KAAe,EACf,WAAe,EACf,MAAM,EACN,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,GAC9B,IAAI,CACF,iBAAiB,CAAC,UAAU,CAAC,KAAK,EAClC,OAAO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iBAAiB,CAAC,KAAK,CAAC,KAAK,qBAQ/B;AAED,iBAAS,iBAAiB,2CAEzB;AAED,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,iBAAiB,GAClB,CAAC"}
@@ -0,0 +1 @@
1
+ "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{Combobox as ComboboxPrimitive}from"@base-ui/react";import{CheckIcon,ChevronDownIcon,XIcon}from"lucide-react";import{useTranslations}from"next-intl";import*as React from"react";import{Button}from"./button.js";import{InputGroup,InputGroupAddon,InputGroupButton,InputGroupInput}from"./input-group.js";import{cn}from"../../lib/utils.js";const Combobox=ComboboxPrimitive.Root;function ComboboxValue({...props}){return _jsx(ComboboxPrimitive.Value,{"data-slot":"combobox-value",...props})}function ComboboxTrigger({className,children,...props}){return _jsxs(ComboboxPrimitive.Trigger,{className:cn("[&_svg:not([class*='size-'])]:size-4",className),"data-slot":"combobox-trigger",...props,children:[children,_jsx(ChevronDownIcon,{className:"text-muted-foreground pointer-events-none size-4"})]})}function ComboboxClear({className,...props}){return _jsx(ComboboxPrimitive.Clear,{className:cn(className),"data-slot":"combobox-clear",render:_jsx(InputGroupButton,{size:"icon-xs",variant:"ghost"}),...props,children:_jsx(XIcon,{className:"pointer-events-none"})})}function ComboboxInput({className,children,disabled=false,showTrigger=true,showClear=false,...props}){return _jsxs(InputGroup,{className:cn("w-auto",className),children:[_jsx(ComboboxPrimitive.Input,{render:_jsx(InputGroupInput,{disabled:disabled}),...props}),_jsxs(InputGroupAddon,{align:"inline-end",children:[showTrigger&&_jsx(InputGroupButton,{asChild:true,className:"group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent","data-slot":"input-group-button",disabled:disabled,size:"icon-xs",variant:"ghost",children:_jsx(ComboboxTrigger,{})}),showClear&&_jsx(ComboboxClear,{disabled:disabled})]}),children]})}function ComboboxContent({className,side="bottom",sideOffset=6,align="start",alignOffset=0,anchor,...props}){return _jsx(ComboboxPrimitive.Portal,{children:_jsx(ComboboxPrimitive.Positioner,{align:align,alignOffset:alignOffset,anchor:anchor,className:"isolate z-50",side:side,sideOffset:sideOffset,children:_jsx(ComboboxPrimitive.Popup,{className:cn("group/combobox-content bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-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 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-md shadow-md ring-1 duration-100 data-[chips=true]:min-w-(--anchor-width) *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:shadow-none",className),"data-chips":!!anchor,"data-slot":"combobox-content",...props})})})}function ComboboxList({className,...props}){return _jsx(ComboboxPrimitive.List,{className:cn("no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0",className),"data-slot":"combobox-list",...props})}function ComboboxItem({className,children,...props}){return _jsxs(ComboboxPrimitive.Item,{className:cn("data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",className),"data-slot":"combobox-item",...props,children:[children,_jsx(ComboboxPrimitive.ItemIndicator,{render:_jsx("span",{className:"pointer-events-none absolute end-2 flex size-4 items-center justify-center"}),children:_jsx(CheckIcon,{className:"pointer-events-none"})})]})}function ComboboxGroup({className,...props}){return _jsx(ComboboxPrimitive.Group,{className:cn(className),"data-slot":"combobox-group",...props})}function ComboboxLabel({className,...props}){return _jsx(ComboboxPrimitive.GroupLabel,{className:cn("text-muted-foreground px-2 py-1.5 text-xs",className),"data-slot":"combobox-label",...props})}function ComboboxCollection({...props}){return _jsx(ComboboxPrimitive.Collection,{"data-slot":"combobox-collection",...props})}function ComboboxEmpty({className,...props}){return _jsx(ComboboxPrimitive.Empty,{className:cn("text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex",className),"data-slot":"combobox-empty",...props})}function ComboboxSeparator({className,...props}){return _jsx(ComboboxPrimitive.Separator,{className:cn("bg-border -mx-1 my-1 h-px",className),"data-slot":"combobox-separator",...props})}function ComboboxChips({className,...props}){return _jsx(ComboboxPrimitive.Chips,{className:cn("border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-destructive/20 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40 flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border bg-transparent bg-clip-padding px-2.5 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-3 has-aria-invalid:ring-3 has-data-[slot=combobox-chip]:px-1.5",className),"data-slot":"combobox-chips",...props})}function ComboboxChip({className,children,showRemove=true,...props}){const t=useTranslations("core.global");return _jsxs(ComboboxPrimitive.Chip,{className:cn("bg-muted text-foreground flex h-[calc(--spacing(5.5))] w-fit items-center justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pe-0",className),"data-slot":"combobox-chip",...props,children:[children,showRemove&&_jsx(ComboboxPrimitive.ChipRemove,{className:"-ms-1 opacity-50 hover:opacity-100","data-slot":"combobox-chip-remove",render:_jsx(Button,{"aria-label":t("remove"),size:"icon-xs",variant:"ghost"}),children:_jsx(XIcon,{className:"pointer-events-none"})})]})}function ComboboxChipsInput({className,...props}){return _jsx(ComboboxPrimitive.Input,{className:cn("min-w-16 flex-1 outline-none",className),"data-slot":"combobox-chip-input",...props})}function useComboboxAnchor(){return React.useRef(null)}export{Combobox,ComboboxChip,ComboboxChips,ComboboxChipsInput,ComboboxCollection,ComboboxContent,ComboboxEmpty,ComboboxGroup,ComboboxInput,ComboboxItem,ComboboxLabel,ComboboxList,ComboboxSeparator,ComboboxTrigger,ComboboxValue,useComboboxAnchor};
@@ -1,19 +1,19 @@
1
- import type * as React from "react";
2
1
  import { Command as CommandPrimitive } from "cmdk";
2
+ import * as React from "react";
3
3
  import { Dialog } from "../../components/ui/dialog";
4
- declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): React.JSX.Element;
5
5
  declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
6
  className?: string;
7
7
  description?: string;
8
8
  showCloseButton?: boolean;
9
9
  title?: string;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
12
- declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
13
- declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
14
- declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
15
- declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
16
- declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
17
- declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
10
+ }): React.JSX.Element;
11
+ declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): React.JSX.Element;
12
+ declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
13
+ declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): React.JSX.Element;
14
+ declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): React.JSX.Element;
15
+ declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): React.JSX.Element;
16
+ declare function CommandItem({ className, children, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): React.JSX.Element;
17
+ declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
18
18
  export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
19
19
  //# sourceMappingURL=command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAGnD,OAAO,EACL,MAAM,EAKP,MAAM,wBAAwB,CAAC;AAGhC,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBA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,OAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,CAAC"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,MAAM,EAKP,MAAM,wBAAwB,CAAC;AAIhC,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,qBAW/C;AAED,iBAAS,aAAa,CAAC,EACrB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,SAAS,EACT,eAAuB,EACvB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,qBAkBA;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAkBrD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAWpD;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAQrD;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAWrD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,qBAQzD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAcpD;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAW9B;AAED,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,CAAC"}
@@ -1 +1 @@
1
- "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{Command as CommandPrimitive}from"cmdk";import{SearchIcon}from"lucide-react";import{Dialog,DialogContent,DialogDescription,DialogHeader,DialogTitle}from"./dialog.js";import{cn}from"../../lib/utils.js";function Command({className,...props}){return _jsx(CommandPrimitive,{className:cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",className),"data-slot":"command",...props})}function CommandDialog({title="Command Palette",description="Search for a command to run...",children,className,showCloseButton=true,...props}){return _jsxs(Dialog,{...props,children:[_jsxs(DialogHeader,{className:"sr-only",children:[_jsx(DialogTitle,{children:title}),_jsx(DialogDescription,{children:description})]}),_jsx(DialogContent,{className:cn("overflow-hidden p-0",className),showCloseButton:showCloseButton,children:_jsx(Command,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:children})})]})}function CommandInput({className,...props}){return _jsxs("div",{className:"flex h-9 items-center gap-2 border-b px-3","data-slot":"command-input-wrapper",children:[_jsx(SearchIcon,{className:"size-4 shrink-0 opacity-50"}),_jsx(CommandPrimitive.Input,{className:cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",className),"data-slot":"command-input",...props})]})}function CommandList({className,...props}){return _jsx(CommandPrimitive.List,{className:cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",className),"data-slot":"command-list",...props})}function CommandEmpty({...props}){return _jsx(CommandPrimitive.Empty,{className:"py-6 text-center text-sm","data-slot":"command-empty",...props})}function CommandGroup({className,...props}){return _jsx(CommandPrimitive.Group,{className:cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",className),"data-slot":"command-group",...props})}function CommandSeparator({className,...props}){return _jsx(CommandPrimitive.Separator,{className:cn("bg-border -mx-1 h-px",className),"data-slot":"command-separator",...props})}function CommandItem({className,...props}){return _jsx(CommandPrimitive.Item,{className:cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",className),"data-slot":"command-item",...props})}function CommandShortcut({className,...props}){return _jsx("span",{className:cn("text-muted-foreground ml-auto text-xs tracking-widest",className),"data-slot":"command-shortcut",...props})}export{Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut};
1
+ "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{Command as CommandPrimitive}from"cmdk";import{CheckIcon,SearchIcon}from"lucide-react";import*as React from"react";import{Dialog,DialogContent,DialogDescription,DialogHeader,DialogTitle}from"./dialog.js";import{InputGroup,InputGroupAddon}from"./input-group.js";import{cn}from"../../lib/utils.js";function Command({className,...props}){return _jsx(CommandPrimitive,{className:cn("bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl! p-1",className),"data-slot":"command",...props})}function CommandDialog({title="Command Palette",description="Search for a command to run...",children,className,showCloseButton=false,...props}){return _jsxs(Dialog,{...props,children:[_jsxs(DialogHeader,{className:"sr-only",children:[_jsx(DialogTitle,{children:title}),_jsx(DialogDescription,{children:description})]}),_jsx(DialogContent,{className:cn("top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0",className),showCloseButton:showCloseButton,children:children})]})}function CommandInput({className,...props}){return _jsx("div",{className:"p-1 pb-0","data-slot":"command-input-wrapper",children:_jsxs(InputGroup,{className:"border-input/30 bg-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:ps-2!",children:[_jsx(CommandPrimitive.Input,{className:cn("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",className),"data-slot":"command-input",...props}),_jsx(InputGroupAddon,{children:_jsx(SearchIcon,{className:"size-4 shrink-0 opacity-50"})})]})})}function CommandList({className,...props}){return _jsx(CommandPrimitive.List,{className:cn("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",className),"data-slot":"command-list",...props})}function CommandEmpty({className,...props}){return _jsx(CommandPrimitive.Empty,{className:cn("py-6 text-center text-sm",className),"data-slot":"command-empty",...props})}function CommandGroup({className,...props}){return _jsx(CommandPrimitive.Group,{className:cn("text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium",className),"data-slot":"command-group",...props})}function CommandSeparator({className,...props}){return _jsx(CommandPrimitive.Separator,{className:cn("bg-border -mx-1 h-px w-auto",className),"data-slot":"command-separator",...props})}function CommandItem({className,children,...props}){return _jsxs(CommandPrimitive.Item,{className:cn("group/command-item data-selected:bg-muted data-selected:text-foreground data-selected:**:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",className),"data-slot":"command-item",...props,children:[children,_jsx(CheckIcon,{className:"ms-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}function CommandShortcut({className,...props}){return _jsx("span",{className:cn("text-muted-foreground group-data-selected/command-item:text-foreground ms-auto text-xs tracking-widest",className),"data-slot":"command-shortcut",...props})}export{Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut};
@@ -1,26 +1,32 @@
1
- import type * as React from "react";
2
1
  import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
3
- declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
6
- declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
7
- declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
8
- declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
9
- declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
10
- inset?: boolean;
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
13
- declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
2
+ import * as React from "react";
3
+ declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): React.JSX.Element;
4
+ declare function ContextMenuTrigger({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): React.JSX.Element;
5
+ declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): React.JSX.Element;
6
+ declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): React.JSX.Element;
7
+ declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): React.JSX.Element;
8
+ declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): React.JSX.Element;
9
+ declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content> & {
10
+ side?: "bottom" | "left" | "right" | "top";
11
+ }): React.JSX.Element;
14
12
  declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
15
13
  inset?: boolean;
16
14
  variant?: "default" | "destructive";
17
- }): import("react/jsx-runtime").JSX.Element;
18
- declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
19
- declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
15
+ }): React.JSX.Element;
16
+ declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
17
+ inset?: boolean;
18
+ }): React.JSX.Element;
19
+ declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): React.JSX.Element;
20
+ declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem> & {
21
+ inset?: boolean;
22
+ }): React.JSX.Element;
23
+ declare function ContextMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem> & {
24
+ inset?: boolean;
25
+ }): React.JSX.Element;
20
26
  declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
21
27
  inset?: boolean;
22
- }): import("react/jsx-runtime").JSX.Element;
23
- declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
24
- declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
28
+ }): React.JSX.Element;
29
+ declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): React.JSX.Element;
30
+ declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
25
31
  export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
26
32
  //# sourceMappingURL=context-menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAI/D,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,2CAExD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAI3D;AAED,iBAAS,gBAAgB,CAAC,EACxB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,2CAIzD;AAED,iBAAS,iBAAiB,CAAC,EACzB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAI1D;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,GAAG,CAAC,2CAEvD;AAED,iBAAS,qBAAqB,CAAC,EAC7B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,2CAO9D;AAED,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,GAAG;IAChE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,2CAeA;AAED,iBAAS,q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AW9B;AAED,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,GACnB,CAAC"}
1
+ {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/context-menu.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,qBAExD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,qBAQ3D;AAED,iBAAS,gBAAgB,CAAC,EACxB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,qBAIzD;AAED,iBAAS,iBAAiB,CAAC,EACzB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,qBAI1D;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,GAAG,CAAC,qBAEvD;AAED,iBAAS,qBAAqB,CAAC,EAC7B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,qBAO9D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,C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AC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,GAAG;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,qBAYA;AAED,iBAAS,oBAAoB,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,qBAQ7D;AAED,iBAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAW9B;AAED,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,GACnB,CAAC"}
@@ -1 +1 @@
1
- "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{CheckIcon,ChevronRightIcon,CircleIcon}from"lucide-react";import{ContextMenu as ContextMenuPrimitive}from"radix-ui";import{cn}from"../../lib/utils.js";function ContextMenu({...props}){return _jsx(ContextMenuPrimitive.Root,{"data-slot":"context-menu",...props})}function ContextMenuTrigger({...props}){return _jsx(ContextMenuPrimitive.Trigger,{"data-slot":"context-menu-trigger",...props})}function ContextMenuGroup({...props}){return _jsx(ContextMenuPrimitive.Group,{"data-slot":"context-menu-group",...props})}function ContextMenuPortal({...props}){return _jsx(ContextMenuPrimitive.Portal,{"data-slot":"context-menu-portal",...props})}function ContextMenuSub({...props}){return _jsx(ContextMenuPrimitive.Sub,{"data-slot":"context-menu-sub",...props})}function ContextMenuRadioGroup({...props}){return _jsx(ContextMenuPrimitive.RadioGroup,{"data-slot":"context-menu-radio-group",...props})}function ContextMenuSubTrigger({className,inset,children,...props}){return _jsxs(ContextMenuPrimitive.SubTrigger,{className:cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",className),"data-inset":inset,"data-slot":"context-menu-sub-trigger",...props,children:[children,_jsx(ChevronRightIcon,{className:"ml-auto"})]})}function ContextMenuSubContent({className,...props}){return _jsx(ContextMenuPrimitive.SubContent,{className:cn("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] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",className),"data-slot":"context-menu-sub-content",...props})}function ContextMenuContent({className,...props}){return _jsx(ContextMenuPrimitive.Portal,{children:_jsx(ContextMenuPrimitive.Content,{className:cn("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 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",className),"data-slot":"context-menu-content",...props})})}function ContextMenuItem({className,inset,variant="default",...props}){return _jsx(ContextMenuPrimitive.Item,{className:cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",className),"data-inset":inset,"data-slot":"context-menu-item","data-variant":variant,...props})}function ContextMenuCheckboxItem({className,children,checked,...props}){return _jsxs(ContextMenuPrimitive.CheckboxItem,{checked:checked,className:cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",className),"data-slot":"context-menu-checkbox-item",...props,children:[_jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:_jsx(ContextMenuPrimitive.ItemIndicator,{children:_jsx(CheckIcon,{className:"size-4"})})}),children]})}function ContextMenuRadioItem({className,children,...props}){return _jsxs(ContextMenuPrimitive.RadioItem,{className:cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",className),"data-slot":"context-menu-radio-item",...props,children:[_jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:_jsx(ContextMenuPrimitive.ItemIndicator,{children:_jsx(CircleIcon,{className:"size-2 fill-current"})})}),children]})}function ContextMenuLabel({className,inset,...props}){return _jsx(ContextMenuPrimitive.Label,{className:cn("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",className),"data-inset":inset,"data-slot":"context-menu-label",...props})}function ContextMenuSeparator({className,...props}){return _jsx(ContextMenuPrimitive.Separator,{className:cn("bg-border -mx-1 my-1 h-px",className),"data-slot":"context-menu-separator",...props})}function ContextMenuShortcut({className,...props}){return _jsx("span",{className:cn("text-muted-foreground ml-auto text-xs tracking-widest",className),"data-slot":"context-menu-shortcut",...props})}export{ContextMenu,ContextMenuCheckboxItem,ContextMenuContent,ContextMenuGroup,ContextMenuItem,ContextMenuLabel,ContextMenuPortal,ContextMenuRadioGroup,ContextMenuRadioItem,ContextMenuSeparator,ContextMenuShortcut,ContextMenuSub,ContextMenuSubContent,ContextMenuSubTrigger,ContextMenuTrigger};
1
+ "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{CheckIcon,ChevronRightIcon}from"lucide-react";import{ContextMenu as ContextMenuPrimitive}from"radix-ui";import*as React from"react";import{cn}from"../../lib/utils.js";function ContextMenu({...props}){return _jsx(ContextMenuPrimitive.Root,{"data-slot":"context-menu",...props})}function ContextMenuTrigger({className,...props}){return _jsx(ContextMenuPrimitive.Trigger,{className:cn("select-none",className),"data-slot":"context-menu-trigger",...props})}function ContextMenuGroup({...props}){return _jsx(ContextMenuPrimitive.Group,{"data-slot":"context-menu-group",...props})}function ContextMenuPortal({...props}){return _jsx(ContextMenuPrimitive.Portal,{"data-slot":"context-menu-portal",...props})}function ContextMenuSub({...props}){return _jsx(ContextMenuPrimitive.Sub,{"data-slot":"context-menu-sub",...props})}function ContextMenuRadioGroup({...props}){return _jsx(ContextMenuPrimitive.RadioGroup,{"data-slot":"context-menu-radio-group",...props})}function ContextMenuContent({className,...props}){return _jsx(ContextMenuPrimitive.Portal,{children:_jsx(ContextMenuPrimitive.Content,{className:cn("bg-popover text-popover-foreground ring-foreground/10 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 duration-100",className),"data-slot":"context-menu-content",...props})})}function ContextMenuItem({className,inset,variant="default",...props}){return _jsx(ContextMenuPrimitive.Item,{className:cn("group/context-menu-item focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",className),"data-inset":inset,"data-slot":"context-menu-item","data-variant":variant,...props})}function ContextMenuSubTrigger({className,inset,children,...props}){return _jsxs(ContextMenuPrimitive.SubTrigger,{className:cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",className),"data-inset":inset,"data-slot":"context-menu-sub-trigger",...props,children:[children,_jsx(ChevronRightIcon,{className:"ms-auto rtl:rotate-180"})]})}function ContextMenuSubContent({className,...props}){return _jsx(ContextMenuPrimitive.SubContent,{className:cn("bg-popover text-popover-foreground 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 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg duration-100",className),"data-slot":"context-menu-sub-content",...props})}function ContextMenuCheckboxItem({className,children,checked,inset,...props}){return _jsxs(ContextMenuPrimitive.CheckboxItem,{checked:checked,className:cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",className),"data-inset":inset,"data-slot":"context-menu-checkbox-item",...props,children:[_jsx("span",{className:"pointer-events-none absolute end-2",children:_jsx(ContextMenuPrimitive.ItemIndicator,{children:_jsx(CheckIcon,{})})}),children]})}function ContextMenuRadioItem({className,children,inset,...props}){return _jsxs(ContextMenuPrimitive.RadioItem,{className:cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",className),"data-inset":inset,"data-slot":"context-menu-radio-item",...props,children:[_jsx("span",{className:"pointer-events-none absolute end-2",children:_jsx(ContextMenuPrimitive.ItemIndicator,{children:_jsx(CheckIcon,{})})}),children]})}function ContextMenuLabel({className,inset,...props}){return _jsx(ContextMenuPrimitive.Label,{className:cn("text-muted-foreground px-2 py-1.5 text-xs font-medium data-inset:ps-8",className),"data-inset":inset,"data-slot":"context-menu-label",...props})}function ContextMenuSeparator({className,...props}){return _jsx(ContextMenuPrimitive.Separator,{className:cn("bg-border -mx-1 my-1 h-px",className),"data-slot":"context-menu-separator",...props})}function ContextMenuShortcut({className,...props}){return _jsx("span",{className:cn("text-muted-foreground group-focus/context-menu-item:text-accent-foreground ms-auto text-xs tracking-widest",className),"data-slot":"context-menu-shortcut",...props})}export{ContextMenu,ContextMenuCheckboxItem,ContextMenuContent,ContextMenuGroup,ContextMenuItem,ContextMenuLabel,ContextMenuPortal,ContextMenuRadioGroup,ContextMenuRadioItem,ContextMenuSeparator,ContextMenuShortcut,ContextMenuSub,ContextMenuSubContent,ContextMenuSubTrigger,ContextMenuTrigger};
@@ -7,17 +7,19 @@ declare const useDialog: () => {
7
7
  setOpen?: (value: boolean) => void;
8
8
  setOpenAlertDialogBeforeClose?: (value: boolean) => void;
9
9
  };
10
- declare function Dialog({ onOpenChange, open: openProp, ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
11
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
12
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
13
- declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
14
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
10
+ declare function Dialog({ onOpenChange, open: openProp, ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
11
+ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
12
+ declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
13
+ declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
14
+ declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
15
15
  declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
16
16
  showCloseButton?: boolean;
17
- }): import("react/jsx-runtime").JSX.Element;
18
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
19
- declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
20
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
21
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
17
+ }): React.JSX.Element;
18
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
19
+ declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
20
+ showCloseButton?: boolean;
21
+ }): React.JSX.Element;
22
+ declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
23
+ declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
22
24
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, useDialog, };
23
25
  //# sourceMappingURL=dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AA4B1B,QAAA,MAAM,SAAS;cAZH,OAAO;UACX,OAAO;iBACA,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;cAC3B,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;oCACF,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;CAQV,CAAC;AAEjD,iBAAS,MAAM,CAAC,EACd,YAAY,EACZ,IAAI,EAAE,QAAQ,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAiEnD;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC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AG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQzE;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,eAAuB,EACvB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,qBAoBA;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,qBAQpD;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,qBAW1D;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,EACb,SAAS,GACV,CAAC"}
@@ -1 +1 @@
1
- "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{XIcon}from"lucide-react";import{useTranslations}from"next-intl";import{Dialog as DialogPrimitive}from"radix-ui";import React from"react";import{cn}from"../../lib/utils.js";import{AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogTitle}from"./alert-dialog.js";const DialogContext=React.createContext({open:false,setOpen:()=>{},isDirty:false,setOpenAlertDialogBeforeClose:()=>{}});const useDialog=()=>React.use(DialogContext);function Dialog({onOpenChange,open:openProp,...props}){const t=useTranslations("core.global");const[open,setOpen]=React.useState(false);const[isDirty,setIsDirty]=React.useState(false);const[openAlertDialogBeforeClose,setOpenAlertDialogBeforeClose]=React.useState(false);const handleOpenChange=React.useCallback(newOpen=>{onOpenChange?.(newOpen);setOpen(newOpen)},[onOpenChange]);const contextValue=React.useMemo(()=>({open:openProp??open,setOpen:handleOpenChange,isDirty,setIsDirty,setOpenAlertDialogBeforeClose}),[openProp,open,handleOpenChange,isDirty]);return _jsxs(DialogContext,{value:contextValue,children:[_jsx(DialogPrimitive.Root,{"data-slot":"dialog",onOpenChange:handleOpenChange,open:openProp??open,...props}),_jsx(AlertDialog,{onOpenChange:setOpenAlertDialogBeforeClose,open:openAlertDialogBeforeClose,children:_jsxs(AlertDialogContent,{children:[_jsxs(AlertDialogHeader,{children:[_jsx(AlertDialogTitle,{children:t("are_you_sure_want_to_leave_form.title")}),_jsx(AlertDialogDescription,{children:t("are_you_sure_want_to_leave_form.desc")})]}),_jsxs(AlertDialogFooter,{children:[_jsx(AlertDialogCancel,{children:t("are_you_sure_want_to_leave_form.cancel")}),_jsx(AlertDialogAction,{onClick:()=>{setIsDirty(false);setTimeout(()=>setOpen(false),100)},children:t("are_you_sure_want_to_leave_form.confirm")})]})]})})]})}function DialogTrigger({...props}){return _jsx(DialogPrimitive.Trigger,{"data-slot":"dialog-trigger",...props})}function DialogPortal({...props}){return _jsx(DialogPrimitive.Portal,{"data-slot":"dialog-portal",...props})}function DialogClose({...props}){const{setOpenAlertDialogBeforeClose,isDirty}=useDialog();return _jsx(DialogPrimitive.Close,{"data-slot":"dialog-close",onClick:e=>{props?.onClick?.(e);if(isDirty){e.preventDefault();setOpenAlertDialogBeforeClose?.(true);return}},...props})}function DialogOverlay({className,...props}){return _jsx(DialogPrimitive.Overlay,{className:cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",className),"data-slot":"dialog-overlay",...props})}function DialogContent({className,children,showCloseButton=true,...props}){const{isDirty,setOpenAlertDialogBeforeClose}=useDialog();return _jsxs(DialogPortal,{"data-slot":"dialog-portal",children:[_jsx(DialogOverlay,{}),_jsxs(DialogPrimitive.Content,{className:cn("dark:bg-background bg-card 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg","max-h-[calc(100vh_-_2rem)] overflow-y-scroll sm:max-h-[calc(100vh_-_5rem)]",className),"data-slot":"dialog-content",onInteractOutside:e=>{const isToastItem=e.target?.closest("[data-sonner-toaster]");if(isToastItem||isDirty)e.preventDefault();if(props?.onInteractOutside){props.onInteractOutside(e)}},...props,children:[children,showCloseButton&&_jsxs(DialogPrimitive.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0","data-slot":"dialog-close",onClick:e=>{if(isDirty){e.preventDefault();setOpenAlertDialogBeforeClose?.(true);return}},children:[_jsx(XIcon,{}),_jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function DialogHeader({className,...props}){return _jsx("div",{className:cn("flex flex-col gap-2 text-center sm:text-left",className),"data-slot":"dialog-header",...props})}function DialogFooter({className,...props}){return _jsx("div",{className:cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",className),"data-slot":"dialog-footer",...props})}function DialogTitle({className,...props}){return _jsx(DialogPrimitive.Title,{className:cn("text-lg leading-none font-semibold",className),"data-slot":"dialog-title",...props})}function DialogDescription({className,...props}){return _jsx(DialogPrimitive.Description,{className:cn("text-muted-foreground text-sm",className),"data-slot":"dialog-description",...props})}export{Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,useDialog};
1
+ "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{XIcon}from"lucide-react";import{useTranslations}from"next-intl";import{Dialog as DialogPrimitive}from"radix-ui";import React from"react";import{cn}from"../../lib/utils.js";import{AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogTitle}from"./alert-dialog.js";import{Button}from"./button.js";const DialogContext=React.createContext({open:false,setOpen:()=>{},isDirty:false,setOpenAlertDialogBeforeClose:()=>{}});const useDialog=()=>React.use(DialogContext);function Dialog({onOpenChange,open:openProp,...props}){const t=useTranslations("core.global");const[open,setOpen]=React.useState(false);const[isDirty,setIsDirty]=React.useState(false);const[openAlertDialogBeforeClose,setOpenAlertDialogBeforeClose]=React.useState(false);const handleOpenChange=React.useCallback(newOpen=>{onOpenChange?.(newOpen);setOpen(newOpen)},[onOpenChange]);const contextValue=React.useMemo(()=>({open:openProp??open,setOpen:handleOpenChange,isDirty,setIsDirty,setOpenAlertDialogBeforeClose}),[openProp,open,handleOpenChange,isDirty]);return _jsxs(DialogContext,{value:contextValue,children:[_jsx(DialogPrimitive.Root,{"data-slot":"dialog",onOpenChange:handleOpenChange,open:openProp??open,...props}),_jsx(AlertDialog,{onOpenChange:setOpenAlertDialogBeforeClose,open:openAlertDialogBeforeClose,children:_jsxs(AlertDialogContent,{children:[_jsxs(AlertDialogHeader,{children:[_jsx(AlertDialogTitle,{children:t("are_you_sure_want_to_leave_form.title")}),_jsx(AlertDialogDescription,{children:t("are_you_sure_want_to_leave_form.desc")})]}),_jsxs(AlertDialogFooter,{children:[_jsx(AlertDialogCancel,{children:t("are_you_sure_want_to_leave_form.cancel")}),_jsx(AlertDialogAction,{onClick:()=>{setIsDirty(false);setTimeout(()=>setOpen(false),100)},children:t("are_you_sure_want_to_leave_form.confirm")})]})]})})]})}function DialogTrigger({...props}){return _jsx(DialogPrimitive.Trigger,{"data-slot":"dialog-trigger",...props})}function DialogPortal({...props}){return _jsx(DialogPrimitive.Portal,{"data-slot":"dialog-portal",...props})}function DialogClose({...props}){const{setOpenAlertDialogBeforeClose,isDirty}=useDialog();return _jsx(DialogPrimitive.Close,{"data-slot":"dialog-close",onClick:e=>{props?.onClick?.(e);if(isDirty){e.preventDefault();setOpenAlertDialogBeforeClose?.(true);return}},...props})}function DialogOverlay({className,...props}){return _jsx(DialogPrimitive.Overlay,{className:cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 isolate z-50 bg-black/50",className),"data-slot":"dialog-overlay",...props})}function DialogContent({className,children,showCloseButton=true,...props}){const{isDirty,setOpenAlertDialogBeforeClose}=useDialog();const t=useTranslations("core.global");return _jsxs(DialogPortal,{"data-slot":"dialog-portal",children:[_jsx(DialogOverlay,{}),_jsxs(DialogPrimitive.Content,{className:cn("dark:bg-background bg-card 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg","max-h-[calc(100vh-2rem)] overflow-y-scroll sm:max-h-[calc(100vh-5rem)]",className),"data-slot":"dialog-content",onInteractOutside:e=>{const isToastItem=e.target?.closest("[data-sonner-toaster]");if(isToastItem||isDirty)e.preventDefault();if(props?.onInteractOutside){props.onInteractOutside(e)}},...props,children:[children,showCloseButton&&_jsx(DialogPrimitive.Close,{asChild:true,"data-slot":"dialog-close",children:_jsx(Button,{"aria-label":t("close"),className:"absolute top-4 right-4",onClick:e=>{if(isDirty){e.preventDefault();setOpenAlertDialogBeforeClose?.(true);return}},size:"icon-sm",variant:"ghost",children:_jsx(XIcon,{})})})]})]})}function DialogHeader({className,...props}){return _jsx("div",{className:cn("flex flex-col gap-2",className),"data-slot":"dialog-header",...props})}function DialogFooter({className,showCloseButton=false,children,...props}){const t=useTranslations("core.global");return _jsxs("div",{className:cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",className),"data-slot":"dialog-footer",...props,children:[children,showCloseButton&&_jsx(DialogPrimitive.Close,{asChild:true,children:_jsx(Button,{variant:"outline",children:t("close")})})]})}function DialogTitle({className,...props}){return _jsx(DialogPrimitive.Title,{className:cn("font-heading leading-none font-medium",className),"data-slot":"dialog-title",...props})}function DialogDescription({className,...props}){return _jsx(DialogPrimitive.Description,{className:cn("text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3",className),"data-slot":"dialog-description",...props})}export{Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,useDialog};
@@ -0,0 +1,8 @@
1
+ import { Direction } from "radix-ui";
2
+ import * as React from "react";
3
+ declare function DirectionProvider({ dir, direction, children, }: React.ComponentProps<typeof Direction.DirectionProvider> & {
4
+ direction?: React.ComponentProps<typeof Direction.DirectionProvider>["dir"];
5
+ }): React.JSX.Element;
6
+ declare const useDirection: typeof Direction.useDirection;
7
+ export { DirectionProvider, useDirection };
8
+ //# sourceMappingURL=direction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/direction.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,iBAAS,iBAAiB,CAAC,EACzB,GAAG,EACH,SAAS,EACT,QAAQ,GACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,iBAAiB,CAAC,GAAG;IAC5D,SAAS,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,iBAAiB,CAAC,CAAC,KAAK,CAAC,CAAC;CAC7E,qBAMA;AAED,QAAA,MAAM,YAAY,+BAAyB,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ "use client";import{jsx as _jsx}from"react/jsx-runtime";import{Direction}from"radix-ui";import*as React from"react";function DirectionProvider({dir,direction,children}){return _jsx(Direction.DirectionProvider,{dir:direction??dir,children:children})}const useDirection=Direction.useDirection;export{DirectionProvider,useDirection};
@@ -1,14 +1,14 @@
1
- import type * as React from "react";
1
+ import * as React from "react";
2
2
  import { Drawer as DrawerPrimitive } from "vaul";
3
- declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
- declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
7
- declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
8
- declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
9
- declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
- declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
- declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
12
- declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
3
+ declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
4
+ declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): React.JSX.Element;
5
+ declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): React.JSX.Element;
6
+ declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): React.JSX.Element;
7
+ declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>): React.JSX.Element;
8
+ declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>): React.JSX.Element;
9
+ declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
+ declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+ declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): React.JSX.Element;
12
+ declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): React.JSX.Element;
13
13
  export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, };
14
14
  //# sourceMappingURL=drawer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAIjD,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEnD;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAEtD;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,2CAErD;AAED,iBAAS,WAAW,CAAC,EACnB,GA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,WAAW,EACX,aAAa,GACd,CAAC"}
@@ -1 +1 @@
1
- "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{Drawer as DrawerPrimitive}from"vaul";import{cn}from"../../lib/utils.js";function Drawer({...props}){return _jsx(DrawerPrimitive.Root,{"data-slot":"drawer",...props})}function DrawerTrigger({...props}){return _jsx(DrawerPrimitive.Trigger,{"data-slot":"drawer-trigger",...props})}function DrawerPortal({...props}){return _jsx(DrawerPrimitive.Portal,{"data-slot":"drawer-portal",...props})}function DrawerClose({...props}){return _jsx(DrawerPrimitive.Close,{"data-slot":"drawer-close",...props})}function DrawerOverlay({className,...props}){return _jsx(DrawerPrimitive.Overlay,{className:cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",className),"data-slot":"drawer-overlay",...props})}function DrawerContent({className,children,...props}){return _jsxs(DrawerPortal,{"data-slot":"drawer-portal",children:[_jsx(DrawerOverlay,{}),_jsxs(DrawerPrimitive.Content,{className:cn("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",className),"data-slot":"drawer-content",...props,children:[_jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),children]})]})}function DrawerHeader({className,...props}){return _jsx("div",{className:cn("flex flex-col gap-1.5 p-4",className),"data-slot":"drawer-header",...props})}function DrawerFooter({className,...props}){return _jsx("div",{className:cn("mt-auto flex flex-col gap-2 p-4",className),"data-slot":"drawer-footer",...props})}function DrawerTitle({className,...props}){return _jsx(DrawerPrimitive.Title,{className:cn("text-foreground font-semibold",className),"data-slot":"drawer-title",...props})}function DrawerDescription({className,...props}){return _jsx(DrawerPrimitive.Description,{className:cn("text-muted-foreground text-sm",className),"data-slot":"drawer-description",...props})}export{Drawer,DrawerClose,DrawerContent,DrawerDescription,DrawerFooter,DrawerHeader,DrawerOverlay,DrawerPortal,DrawerTitle,DrawerTrigger};
1
+ "use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import*as React from"react";import{Drawer as DrawerPrimitive}from"vaul";import{cn}from"../../lib/utils.js";function Drawer({...props}){return _jsx(DrawerPrimitive.Root,{"data-slot":"drawer",...props})}function DrawerTrigger({...props}){return _jsx(DrawerPrimitive.Trigger,{"data-slot":"drawer-trigger",...props})}function DrawerPortal({...props}){return _jsx(DrawerPrimitive.Portal,{"data-slot":"drawer-portal",...props})}function DrawerClose({...props}){return _jsx(DrawerPrimitive.Close,{"data-slot":"drawer-close",...props})}function DrawerOverlay({className,...props}){return _jsx(DrawerPrimitive.Overlay,{className:cn("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/10 supports-backdrop-filter:backdrop-blur-xs",className),"data-slot":"drawer-overlay",...props})}function DrawerContent({className,children,...props}){return _jsxs(DrawerPortal,{"data-slot":"drawer-portal",children:[_jsx(DrawerOverlay,{}),_jsxs(DrawerPrimitive.Content,{className:cn("group/drawer-content bg-popover text-popover-foreground fixed z-50 flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:start-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-e-xl data-[vaul-drawer-direction=left]:border-e data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:end-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-s-xl data-[vaul-drawer-direction=right]:border-s data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",className),"data-slot":"drawer-content",...props,children:[_jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-1.5 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),children]})]})}function DrawerHeader({className,...props}){return _jsx("div",{className:cn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-start",className),"data-slot":"drawer-header",...props})}function DrawerFooter({className,...props}){return _jsx("div",{className:cn("mt-auto flex flex-col gap-2 p-4",className),"data-slot":"drawer-footer",...props})}function DrawerTitle({className,...props}){return _jsx(DrawerPrimitive.Title,{className:cn("text-foreground font-medium",className),"data-slot":"drawer-title",...props})}function DrawerDescription({className,...props}){return _jsx(DrawerPrimitive.Description,{className:cn("text-muted-foreground text-sm",className),"data-slot":"drawer-description",...props})}export{Drawer,DrawerClose,DrawerContent,DrawerDescription,DrawerFooter,DrawerHeader,DrawerOverlay,DrawerPortal,DrawerTitle,DrawerTrigger};
@@ -1,26 +1,30 @@
1
- import type * as React from "react";
2
1
  import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
3
- declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
5
- declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
- declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
2
+ import * as React from "react";
3
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React.JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
6
+ declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
8
8
  declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
9
9
  inset?: boolean;
10
10
  variant?: "default" | "destructive";
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
13
- declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
14
- declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
11
+ }): React.JSX.Element;
12
+ declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {
13
+ inset?: boolean;
14
+ }): React.JSX.Element;
15
+ declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
16
+ declare function DropdownMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
17
+ inset?: boolean;
18
+ }): React.JSX.Element;
15
19
  declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
16
20
  inset?: boolean;
17
- }): import("react/jsx-runtime").JSX.Element;
18
- declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
19
- declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
20
- declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
21
+ }): React.JSX.Element;
22
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
23
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
24
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
21
25
  declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
22
26
  inset?: boolean;
23
- }): import("react/jsx-runtime").JSX.Element;
24
- declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
27
+ }): React.JSX.Element;
28
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
25
29
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
26
30
  //# sourceMappingURL=dropdown-menu.d.ts.map