adminizer 4.1.0-commit.d8a06d3 → 4.2.0-build.44

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 (314) hide show
  1. package/Readme.md +46 -0
  2. package/assets/{VanillaJSONEditor-D-Lx670g.js → VanillaJSONEditor-DfRefswH.js} +104 -104
  3. package/assets/add-DujD3Z0j.js +1 -0
  4. package/assets/add-form-Ch5HOaI3.js +1 -0
  5. package/assets/add-group-form-CzjFRYQe.js +1 -0
  6. package/assets/add-group-xKUhiREd.js +1 -0
  7. package/assets/add-user-DpTQyN0Z.js +1 -0
  8. package/assets/add-user-form-DmgL9A2G.js +1 -0
  9. package/assets/{app-WTooYWC3.css → app-B6cCPfWk.css} +1 -1
  10. package/assets/app-layout-Dn8y3paC.js +1 -0
  11. package/assets/app-shell-C1wDrRCe.js +1 -0
  12. package/assets/app-sidebar-BisOEG_p.js +1 -0
  13. package/assets/app-sidebar-header-CL1OSuV8.js +11 -0
  14. package/assets/app.js +169 -39
  15. package/assets/breadcrumbs-BVZtAG3J.js +1 -0
  16. package/assets/catalog-Cc6Mk9sX.css +1 -0
  17. package/assets/catalog-CvJMAtEd.js +16 -0
  18. package/assets/{chevrons-up-down-kALltqHV.js → chevrons-up-down-D3t3UGV7.js} +2 -2
  19. package/assets/dashboard-Zsh-5yN2.js +3 -0
  20. package/assets/date-picker-DKdT6XTZ.js +6 -0
  21. package/assets/debounce-qdyXyOeG.js +1 -0
  22. package/assets/del-modal-DZ5wZWad.js +11 -0
  23. package/assets/{field-renderer-DVHZF6HS.js → field-renderer-Dgj1S2Vi.js} +137 -137
  24. package/assets/form-Bgv171J2.js +1 -0
  25. package/assets/form-DcfEHbPb.js +1 -0
  26. package/assets/{geo-json-BjiyTtMu.js → geo-json-vodY1YtH.js} +5 -5
  27. package/assets/{handsontable-4mjU_b0n.js → handsontable-C-ThjbaJ.js} +5 -5
  28. package/assets/home-DOm3EaLO.js +2 -0
  29. package/assets/icon-B-D8X0jg.js +1 -0
  30. package/assets/init-user-iMMcIQIW.js +1 -0
  31. package/assets/input-error-F1DL-Fx6.js +1 -0
  32. package/assets/list-B-vY1rhM.js +1 -0
  33. package/assets/list-table-8sDi0ZKa.js +52 -0
  34. package/assets/{check-LAUWAnlX.js → loader-circle-Btx4NYNU.js} +2 -2
  35. package/assets/login-C2J62v4_.js +6 -0
  36. package/assets/manifest.json +197 -965
  37. package/assets/material-icon-DeSoGIhT.js +1 -0
  38. package/assets/module-I4hW5UqT.js +1 -0
  39. package/assets/{monaco-editor-CJs0_GlD.js → monaco-editor-9fDiyfuW.js} +2 -2
  40. package/assets/{move-left-BhKZRPb4.js → move-left-DWHsVHUF.js} +1 -1
  41. package/assets/multi-select-Bu3n-kcV.js +11 -0
  42. package/assets/nav-footer-DQwIyd7c.js +1 -0
  43. package/assets/nav-main-DDQ-_Oed.js +1 -0
  44. package/assets/nav-user-BwBu-VwZ.js +1 -0
  45. package/assets/pagination-render-BoDDo2E1.js +1 -0
  46. package/assets/register-aPC0gjjS.js +1 -0
  47. package/assets/{toast-editor-CMK7QtF1.js → toast-editor-1Pul3oMs.js} +2 -2
  48. package/assets/{trash-2-BoK5Xp2F.js → trash-2-CsxWwHNc.js} +2 -2
  49. package/assets/use-appearance-J8J2w43p.js +1 -0
  50. package/assets/use-window-size-DLSEoR6e.js +1 -0
  51. package/assets/user-info-CnB2lvpg.js +1 -0
  52. package/assets/user-menu-content-BFbaJw6v.js +6 -0
  53. package/assets/welcome-DB_D6KJV.js +1 -0
  54. package/controllers/add.js +8 -8
  55. package/controllers/catalog/Catalog.d.ts +1 -1
  56. package/controllers/catalog/Catalog.js +40 -35
  57. package/controllers/catalog/FrontentCatalogAdapter.d.ts +36 -26
  58. package/controllers/catalog/FrontentCatalogAdapter.js +71 -72
  59. package/controllers/edit.js +8 -11
  60. package/controllers/list.js +2 -2
  61. package/controllers/login.js +16 -7
  62. package/controllers/navigation/edit.js +1 -1
  63. package/controllers/remove.js +1 -1
  64. package/controllers/view.js +1 -1
  65. package/helpers/JsUtils.d.ts +1 -0
  66. package/helpers/JsUtils.js +3 -0
  67. package/helpers/accessRightsHelper.d.ts +3 -0
  68. package/helpers/accessRightsHelper.js +27 -4
  69. package/helpers/controllerHelper.js +39 -18
  70. package/helpers/fieldsHelper.d.ts +3 -2
  71. package/helpers/fieldsHelper.js +5 -1
  72. package/helpers/inertiaAddHelper.d.ts +4 -5
  73. package/helpers/inertiaAddHelper.js +25 -7
  74. package/helpers/inertiaFromHelper.js +1 -1
  75. package/helpers/inertiaMenuHelper.d.ts +1 -1
  76. package/helpers/inertiaMenuHelper.js +1 -1
  77. package/helpers/menuHelper.d.ts +8 -3
  78. package/helpers/menuHelper.js +26 -17
  79. package/index.d.ts +2 -6
  80. package/index.js +5 -6
  81. package/interfaces/adminpanelConfig.d.ts +35 -30
  82. package/interfaces/global.d.ts +5 -2
  83. package/interfaces/types.d.ts +1 -1
  84. package/lib/Adminizer.d.ts +9 -3
  85. package/lib/Adminizer.js +32 -16
  86. package/lib/media-manager/Items.js +0 -3
  87. package/lib/requestProcessor.js +10 -3
  88. package/lib/v4/DataAccessor.d.ts +3 -1
  89. package/lib/v4/DataAccessor.js +43 -18
  90. package/lib/v4/I18n.js +2 -0
  91. package/lib/{catalog → v4/catalog}/AbstractCatalog.d.ts +89 -60
  92. package/lib/{catalog → v4/catalog}/AbstractCatalog.js +59 -54
  93. package/lib/v4/catalog/Navigation.d.ts +43 -0
  94. package/lib/v4/catalog/Navigation.js +457 -0
  95. package/lib/{controls → v4/controls}/AbstractControls.d.ts +1 -1
  96. package/lib/{controls → v4/controls}/codeEditor/MonacoEditor.d.ts +1 -1
  97. package/lib/{controls → v4/controls}/geojsoneditor/GeoEditor.d.ts +1 -1
  98. package/lib/{controls → v4/controls}/jsoneditor/JsonEditor.d.ts +1 -1
  99. package/lib/{controls → v4/controls}/markdown/ToastUiEditor.d.ts +1 -1
  100. package/lib/{controls → v4/controls}/table/Handsontable.d.ts +1 -1
  101. package/lib/{controls → v4/controls}/wysiwyg/CKeditor.d.ts +1 -1
  102. package/lib/{datatable → v4/datatable}/NodeTable.d.ts +3 -3
  103. package/lib/{datatable → v4/datatable}/NodeTable.js +8 -5
  104. package/lib/v4/model/AbstractModel.d.ts +5 -1
  105. package/lib/v4/model/AbstractModel.js +2 -1
  106. package/lib/v4/model/ModelHandler.js +1 -3
  107. package/lib/v4/model/adapter/sequelize.d.ts +8 -0
  108. package/lib/v4/model/adapter/sequelize.js +274 -133
  109. package/lib/v4/model/adapter/waterline.js +5 -2
  110. package/lib/{widgets → v4/widgets}/abstractLink.d.ts +1 -1
  111. package/lib/{widgets → v4/widgets}/abstractWidgetBase.d.ts +1 -1
  112. package/lib/{widgets → v4/widgets}/widgetHandler.d.ts +11 -4
  113. package/lib/{widgets → v4/widgets}/widgetHandler.js +1 -1
  114. package/models/NavigationAP.d.ts +2 -3
  115. package/models/NavigationAP.js +5 -6
  116. package/models/UserAP.d.ts +2 -3
  117. package/package.json +24 -7
  118. package/system/Router.js +8 -11
  119. package/system/bindAccessRights.js +0 -4
  120. package/system/bindControls.js +6 -6
  121. package/system/bindDev.js +1 -0
  122. package/system/bindInertia.js +9 -4
  123. package/system/bindMediaManager.js +0 -1
  124. package/system/bindModels.js +9 -6
  125. package/system/bindNavigation.d.ts +2 -0
  126. package/system/bindNavigation.js +42 -42
  127. package/system/bindReqFunctions.js +0 -1
  128. package/system/defaults.js +13 -6
  129. package/translations/ar.json +70 -1
  130. package/translations/cn.json +70 -1
  131. package/translations/de.json +71 -3
  132. package/translations/en.json +70 -102
  133. package/translations/es.json +70 -1
  134. package/translations/fr.json +70 -1
  135. package/translations/hi.json +70 -1
  136. package/translations/jp.json +70 -1
  137. package/translations/ko.json +70 -1
  138. package/translations/pt.json +70 -1
  139. package/translations/ru.json +71 -103
  140. package/translations/ua.json +70 -1
  141. package/translations/uz.json +72 -0
  142. package/translations/vi.json +70 -1
  143. package/ui/components/ui/avatar.d.ts +6 -0
  144. package/ui/components/ui/avatar.js +13 -0
  145. package/ui/components/ui/badge.d.ts +9 -0
  146. package/ui/components/ui/badge.js +22 -0
  147. package/ui/components/ui/breadcrumb.d.ts +11 -0
  148. package/ui/components/ui/breadcrumb.js +27 -0
  149. package/ui/components/ui/button.d.ts +10 -0
  150. package/ui/components/ui/button.js +33 -0
  151. package/ui/components/ui/calendar.d.ts +4 -0
  152. package/ui/components/ui/calendar.js +38 -0
  153. package/ui/components/ui/card.d.ts +9 -0
  154. package/ui/components/ui/card.js +24 -0
  155. package/ui/components/ui/checkbox.d.ts +4 -0
  156. package/ui/components/ui/checkbox.js +8 -0
  157. package/ui/components/ui/collapsible.d.ts +5 -0
  158. package/ui/components/ui/collapsible.js +12 -0
  159. package/ui/components/ui/command.d.ts +16 -0
  160. package/ui/components/ui/command.js +33 -0
  161. package/ui/components/ui/context-menu.d.ts +25 -0
  162. package/ui/components/ui/context-menu.js +50 -0
  163. package/ui/components/ui/dialog-stack.d.ts +43 -0
  164. package/ui/components/ui/dialog-stack.js +238 -0
  165. package/ui/components/ui/dialog.d.ts +13 -0
  166. package/ui/components/ui/dialog.js +35 -0
  167. package/ui/components/ui/dropdown-menu.d.ts +25 -0
  168. package/ui/components/ui/dropdown-menu.js +50 -0
  169. package/ui/components/ui/input.d.ts +3 -0
  170. package/ui/components/ui/input.js +6 -0
  171. package/ui/components/ui/label.d.ts +4 -0
  172. package/ui/components/ui/label.js +7 -0
  173. package/ui/components/ui/menubar.d.ts +26 -0
  174. package/ui/components/ui/menubar.js +53 -0
  175. package/ui/components/ui/pagination.d.ts +13 -0
  176. package/ui/components/ui/pagination.js +29 -0
  177. package/ui/components/ui/popover.d.ts +7 -0
  178. package/ui/components/ui/popover.js +16 -0
  179. package/ui/components/ui/select.d.ts +15 -0
  180. package/ui/components/ui/select.js +37 -0
  181. package/ui/components/ui/separator.d.ts +4 -0
  182. package/ui/components/ui/separator.js +8 -0
  183. package/ui/components/ui/sheet.d.ts +13 -0
  184. package/ui/components/ui/sheet.js +39 -0
  185. package/ui/components/ui/sidebar.d.ts +69 -0
  186. package/ui/components/ui/sidebar.js +211 -0
  187. package/ui/components/ui/skeleton.d.ts +2 -0
  188. package/ui/components/ui/skeleton.js +6 -0
  189. package/ui/components/ui/slider.d.ts +4 -0
  190. package/ui/components/ui/slider.js +13 -0
  191. package/ui/components/ui/sonner.d.ts +3 -0
  192. package/ui/components/ui/sonner.js +12 -0
  193. package/ui/components/ui/switch.d.ts +4 -0
  194. package/ui/components/ui/switch.js +7 -0
  195. package/ui/components/ui/table.d.ts +10 -0
  196. package/ui/components/ui/table.js +27 -0
  197. package/ui/components/ui/textarea.d.ts +3 -0
  198. package/ui/components/ui/textarea.js +6 -0
  199. package/ui/components/ui/tooltip.d.ts +7 -0
  200. package/ui/components/ui/tooltip.js +17 -0
  201. package/ui/hooks/use-mobile.d.ts +1 -0
  202. package/ui/hooks/use-mobile.js +15 -0
  203. package/ui/lib/utils.d.ts +2 -0
  204. package/ui/lib/utils.js +5 -0
  205. package/assets/add-BP_u3Tjl.js +0 -1
  206. package/assets/add-form-nffmiYTh.js +0 -1
  207. package/assets/add-group-D4vcHlm-.js +0 -1
  208. package/assets/add-group-form-gNJW11-q.js +0 -1
  209. package/assets/add-user-DWh3Nas0.js +0 -1
  210. package/assets/add-user-form-BJ0FsZYJ.js +0 -1
  211. package/assets/app-layout-DYsRFUuP.js +0 -1
  212. package/assets/app-shell-Dd9Eknik.js +0 -1
  213. package/assets/app-sidebar-BOmu6-Sl.js +0 -1
  214. package/assets/app-sidebar-header-CoXSzWxk.js +0 -11
  215. package/assets/breadcrumbs-BmAq4fHT.js +0 -1
  216. package/assets/button-C9B_5Jf_.js +0 -1
  217. package/assets/checkbox-Fg27sL_1.js +0 -1
  218. package/assets/chevron-down-B5XuAFRu.js +0 -6
  219. package/assets/chevron-left-CoMhTMUD.js +0 -6
  220. package/assets/chevron-right-D5q8rF7h.js +0 -6
  221. package/assets/compiler-runtime-hB6dAw2d.js +0 -9
  222. package/assets/createLucideIcon-BFG25zNo.js +0 -21
  223. package/assets/dashboard-BACj996r.js +0 -3
  224. package/assets/date-picker-DI1cCO7K.js +0 -6
  225. package/assets/dropdown-menu-Bhj17ENm.js +0 -1
  226. package/assets/form-BgWdwvz1.js +0 -1
  227. package/assets/form-DgtErfln.js +0 -1
  228. package/assets/home-CHntBHJa.js +0 -2
  229. package/assets/icon-Dt0vBgDO.js +0 -1
  230. package/assets/index-B8BS9wMC.js +0 -1
  231. package/assets/index-BC0yfOHo.js +0 -1
  232. package/assets/index-BKCgnGj_.js +0 -1
  233. package/assets/index-BbXEMx9n.js +0 -1
  234. package/assets/index-BykbU6Ee.js +0 -41
  235. package/assets/index-CaJgc5EZ.js +0 -1
  236. package/assets/index-Cgp8OfuI.js +0 -1
  237. package/assets/index-Cw5o84pO.js +0 -10
  238. package/assets/index-D5ir9iUV.js +0 -1
  239. package/assets/index-DrWfGwtf.js +0 -1
  240. package/assets/index-DwctwfU0.js +0 -1
  241. package/assets/init-user-JfCKJ5Ce.js +0 -1
  242. package/assets/input-CvRbIbk4.js +0 -1
  243. package/assets/input-error-DMK7cAt7.js +0 -1
  244. package/assets/label-CSLFe9Bz.js +0 -1
  245. package/assets/list-B2Oa5O_Q.js +0 -1
  246. package/assets/list-table-DA9MhywL.js +0 -62
  247. package/assets/loader-circle-Utah5tGx.js +0 -6
  248. package/assets/login-DQwGtdis.js +0 -6
  249. package/assets/material-icon-BJg8o_fs.js +0 -1
  250. package/assets/module-DWXp59Vg.js +0 -1
  251. package/assets/multi-select-BvRpAW8r.js +0 -11
  252. package/assets/nav-footer-Bs4dmN1d.js +0 -1
  253. package/assets/nav-main-Bq3IMk4C.js +0 -1
  254. package/assets/nav-user-CbB22J5O.js +0 -1
  255. package/assets/pagination-render-DuXDDbC_.js +0 -1
  256. package/assets/popover-DtoGI2b1.js +0 -1
  257. package/assets/register-BSogVF0h.js +0 -1
  258. package/assets/search-BspystAk.js +0 -6
  259. package/assets/select-BWepUw-9.js +0 -6
  260. package/assets/sidebar-CAHsHdjM.js +0 -6
  261. package/assets/skeleton-COOcAA8f.js +0 -1
  262. package/assets/sonner-BI0IFOQN.js +0 -1
  263. package/assets/tooltip-DHwpLKOI.js +0 -1
  264. package/assets/use-appearance-DRfIqTgw.js +0 -1
  265. package/assets/use-window-size-h0Sh_NvX.js +0 -1
  266. package/assets/user-info-DFrmpJ4y.js +0 -9
  267. package/assets/user-menu-content-DPXQdERj.js +0 -6
  268. package/assets/utils-DjqsqOe8.js +0 -1
  269. package/assets/welcome-B4WCIXKf.js +0 -1
  270. package/controllers/processInstallFinalize.d.ts +0 -1
  271. package/controllers/processInstallFinalize.js +0 -16
  272. package/controllers/processInstallStep.d.ts +0 -0
  273. package/controllers/processInstallStep.js +0 -122
  274. package/lib/catalog/Navigation.d.ts +0 -0
  275. package/lib/catalog/Navigation.js +0 -532
  276. package/lib/installStepper/InstallStepAbstract.d.ts +0 -52
  277. package/lib/installStepper/InstallStepAbstract.js +0 -69
  278. package/lib/installStepper/finalizeStep.d.ts +0 -21
  279. package/lib/installStepper/finalizeStep.js +0 -48
  280. package/lib/installStepper/installStepper.d.ts +0 -40
  281. package/lib/installStepper/installStepper.js +0 -195
  282. package/models/MediaManagerAP.d.ts +0 -62
  283. package/models/MediaManagerAP.js +0 -45
  284. package/models/MediaManagerAssociationsAP.d.ts +0 -38
  285. package/models/MediaManagerAssociationsAP.js +0 -27
  286. package/models/MediaManagerMetaAP.d.ts +0 -30
  287. package/models/MediaManagerMetaAP.js +0 -21
  288. package/system/bindInstallStepper.d.ts +0 -2
  289. package/system/bindInstallStepper.js +0 -23
  290. /package/lib/{catalog → v4/catalog}/CatalogHandler.d.ts +0 -0
  291. /package/lib/{catalog → v4/catalog}/CatalogHandler.js +0 -0
  292. /package/lib/{controls → v4/controls}/AbstractControls.js +0 -0
  293. /package/lib/{controls → v4/controls}/ControlsHandler.d.ts +0 -0
  294. /package/lib/{controls → v4/controls}/ControlsHandler.js +0 -0
  295. /package/lib/{controls → v4/controls}/codeEditor/MonacoEditor.js +0 -0
  296. /package/lib/{controls → v4/controls}/geojsoneditor/GeoEditor.js +0 -0
  297. /package/lib/{controls → v4/controls}/jsoneditor/JsonEditor.js +0 -0
  298. /package/lib/{controls → v4/controls}/markdown/ToastUiEditor.js +0 -0
  299. /package/lib/{controls → v4/controls}/table/Handsontable.js +0 -0
  300. /package/lib/{controls → v4/controls}/wysiwyg/CKeditor.js +0 -0
  301. /package/lib/{inertia → v4/inertia}/flash.d.ts +0 -0
  302. /package/lib/{inertia → v4/inertia}/flash.js +0 -0
  303. /package/lib/{inertia → v4/inertia}/inertiaAdapter.d.ts +0 -0
  304. /package/lib/{inertia → v4/inertia}/inertiaAdapter.js +0 -0
  305. /package/lib/{widgets → v4/widgets}/abstractAction.d.ts +0 -0
  306. /package/lib/{widgets → v4/widgets}/abstractAction.js +0 -0
  307. /package/lib/{widgets → v4/widgets}/abstractCustom.d.ts +0 -0
  308. /package/lib/{widgets → v4/widgets}/abstractCustom.js +0 -0
  309. /package/lib/{widgets → v4/widgets}/abstractInfo.d.ts +0 -0
  310. /package/lib/{widgets → v4/widgets}/abstractInfo.js +0 -0
  311. /package/lib/{widgets → v4/widgets}/abstractLink.js +0 -0
  312. /package/lib/{widgets → v4/widgets}/abstractSwitch.d.ts +0 -0
  313. /package/lib/{widgets → v4/widgets}/abstractSwitch.js +0 -0
  314. /package/lib/{widgets → v4/widgets}/abstractWidgetBase.js +0 -0
@@ -0,0 +1,50 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
4
+ import { cn } from "@/lib/utils";
5
+ function DropdownMenu({ ...props }) {
6
+ return _jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
7
+ }
8
+ function DropdownMenuPortal({ ...props }) {
9
+ return (_jsx(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props }));
10
+ }
11
+ function DropdownMenuTrigger({ ...props }) {
12
+ return (_jsx(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props }));
13
+ }
14
+ function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
15
+ return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { "data-slot": "dropdown-menu-content", sideOffset: sideOffset, 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-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", className), ...props }) }));
16
+ }
17
+ function DropdownMenuGroup({ ...props }) {
18
+ return (_jsx(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props }));
19
+ }
20
+ function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
21
+ return (_jsx(DropdownMenuPrimitive.Item, { "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, 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]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props }));
22
+ }
23
+ function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
24
+ return (_jsxs(DropdownMenuPrimitive.CheckboxItem, { "data-slot": "dropdown-menu-checkbox-item", 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]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), checked: checked, ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "size-4" }) }) }), children] }));
25
+ }
26
+ function DropdownMenuRadioGroup({ ...props }) {
27
+ return (_jsx(DropdownMenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props }));
28
+ }
29
+ function DropdownMenuRadioItem({ className, children, ...props }) {
30
+ return (_jsxs(DropdownMenuPrimitive.RadioItem, { "data-slot": "dropdown-menu-radio-item", 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]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CircleIcon, { className: "size-2 fill-current" }) }) }), children] }));
31
+ }
32
+ function DropdownMenuLabel({ className, inset, ...props }) {
33
+ return (_jsx(DropdownMenuPrimitive.Label, { "data-slot": "dropdown-menu-label", "data-inset": inset, className: cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className), ...props }));
34
+ }
35
+ function DropdownMenuSeparator({ className, ...props }) {
36
+ return (_jsx(DropdownMenuPrimitive.Separator, { "data-slot": "dropdown-menu-separator", className: cn("bg-border -mx-1 my-1 h-px", className), ...props }));
37
+ }
38
+ function DropdownMenuShortcut({ className, ...props }) {
39
+ return (_jsx("span", { "data-slot": "dropdown-menu-shortcut", className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className), ...props }));
40
+ }
41
+ function DropdownMenuSub({ ...props }) {
42
+ return _jsx(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
43
+ }
44
+ function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
45
+ return (_jsxs(DropdownMenuPrimitive.SubTrigger, { "data-slot": "dropdown-menu-sub-trigger", "data-inset": inset, 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", className), ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto size-4" })] }));
46
+ }
47
+ function DropdownMenuSubContent({ className, ...props }) {
48
+ return (_jsx(DropdownMenuPrimitive.SubContent, { "data-slot": "dropdown-menu-sub-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 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className), ...props }));
49
+ }
50
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare function Input({ className, type, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
3
+ export { Input };
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "@/lib/utils";
3
+ function Input({ className, type, ...props }) {
4
+ return (_jsx("input", { type: type, "data-slot": "input", className: cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[2px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:[&::-webkit-calendar-picker-indicator]:invert", className), ...props }));
5
+ }
6
+ export { Input };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as LabelPrimitive from "@radix-ui/react-label";
3
+ declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Label };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as LabelPrimitive from "@radix-ui/react-label";
3
+ import { cn } from "@/lib/utils";
4
+ function Label({ className, ...props }) {
5
+ return (_jsx(LabelPrimitive.Root, { "data-slot": "label", className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className), ...props }));
6
+ }
7
+ export { Label };
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import * as MenubarPrimitive from "@radix-ui/react-menubar";
3
+ declare function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): import("react/jsx-runtime").JSX.Element;
5
+ declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
6
+ declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
7
+ declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
8
+ declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
9
+ declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
10
+ declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof MenubarPrimitive.Item> & {
11
+ inset?: boolean;
12
+ variant?: "default" | "destructive";
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
15
+ declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
16
+ declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Label> & {
17
+ inset?: boolean;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
20
+ declare function MenubarShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
21
+ declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
22
+ declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
23
+ inset?: boolean;
24
+ }): import("react/jsx-runtime").JSX.Element;
25
+ declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
26
+ export { Menubar, MenubarPortal, MenubarMenu, MenubarTrigger, MenubarContent, MenubarGroup, MenubarSeparator, MenubarLabel, MenubarItem, MenubarShortcut, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarSub, MenubarSubTrigger, MenubarSubContent, };
@@ -0,0 +1,53 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as MenubarPrimitive from "@radix-ui/react-menubar";
3
+ import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
4
+ import { cn } from "@/lib/utils";
5
+ function Menubar({ className, ...props }) {
6
+ return (_jsx(MenubarPrimitive.Root, { "data-slot": "menubar", className: cn("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", className), ...props }));
7
+ }
8
+ function MenubarMenu({ ...props }) {
9
+ return _jsx(MenubarPrimitive.Menu, { "data-slot": "menubar-menu", ...props });
10
+ }
11
+ function MenubarGroup({ ...props }) {
12
+ return _jsx(MenubarPrimitive.Group, { "data-slot": "menubar-group", ...props });
13
+ }
14
+ function MenubarPortal({ ...props }) {
15
+ return _jsx(MenubarPrimitive.Portal, { "data-slot": "menubar-portal", ...props });
16
+ }
17
+ function MenubarRadioGroup({ ...props }) {
18
+ return (_jsx(MenubarPrimitive.RadioGroup, { "data-slot": "menubar-radio-group", ...props }));
19
+ }
20
+ function MenubarTrigger({ className, ...props }) {
21
+ return (_jsx(MenubarPrimitive.Trigger, { "data-slot": "menubar-trigger", className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none", className), ...props }));
22
+ }
23
+ function MenubarContent({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }) {
24
+ return (_jsx(MenubarPortal, { children: _jsx(MenubarPrimitive.Content, { "data-slot": "menubar-content", align: align, alignOffset: alignOffset, sideOffset: sideOffset, className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in 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-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md", className), ...props }) }));
25
+ }
26
+ function MenubarItem({ className, inset, variant = "default", ...props }) {
27
+ return (_jsx(MenubarPrimitive.Item, { "data-slot": "menubar-item", "data-inset": inset, "data-variant": variant, 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]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props }));
28
+ }
29
+ function MenubarCheckboxItem({ className, children, checked, ...props }) {
30
+ return (_jsxs(MenubarPrimitive.CheckboxItem, { "data-slot": "menubar-checkbox-item", className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs 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]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), checked: checked, ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(MenubarPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "size-4" }) }) }), children] }));
31
+ }
32
+ function MenubarRadioItem({ className, children, ...props }) {
33
+ return (_jsxs(MenubarPrimitive.RadioItem, { "data-slot": "menubar-radio-item", className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs 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]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(MenubarPrimitive.ItemIndicator, { children: _jsx(CircleIcon, { className: "size-2 fill-current" }) }) }), children] }));
34
+ }
35
+ function MenubarLabel({ className, inset, ...props }) {
36
+ return (_jsx(MenubarPrimitive.Label, { "data-slot": "menubar-label", "data-inset": inset, className: cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className), ...props }));
37
+ }
38
+ function MenubarSeparator({ className, ...props }) {
39
+ return (_jsx(MenubarPrimitive.Separator, { "data-slot": "menubar-separator", className: cn("bg-border -mx-1 my-1 h-px", className), ...props }));
40
+ }
41
+ function MenubarShortcut({ className, ...props }) {
42
+ return (_jsx("span", { "data-slot": "menubar-shortcut", className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className), ...props }));
43
+ }
44
+ function MenubarSub({ ...props }) {
45
+ return _jsx(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
46
+ }
47
+ function MenubarSubTrigger({ className, inset, children, ...props }) {
48
+ return (_jsxs(MenubarPrimitive.SubTrigger, { "data-slot": "menubar-sub-trigger", "data-inset": inset, 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-none select-none data-[inset]:pl-8", className), ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto h-4 w-4" })] }));
49
+ }
50
+ function MenubarSubContent({ className, ...props }) {
51
+ return (_jsx(MenubarPrimitive.SubContent, { "data-slot": "menubar-sub-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 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className), ...props }));
52
+ }
53
+ export { Menubar, MenubarPortal, MenubarMenu, MenubarTrigger, MenubarContent, MenubarGroup, MenubarSeparator, MenubarLabel, MenubarItem, MenubarShortcut, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarSub, MenubarSubTrigger, MenubarSubContent, };
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import { Button } from "@/components/ui/button";
3
+ declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
4
+ declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
5
+ declare function PaginationItem({ ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
6
+ type PaginationLinkProps = {
7
+ isActive?: boolean;
8
+ } & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
9
+ declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
11
+ declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
12
+ declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
13
+ export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon, } from "lucide-react";
3
+ import { cn } from "@/lib/utils";
4
+ import { buttonVariants } from "@/components/ui/button";
5
+ function Pagination({ className, ...props }) {
6
+ return (_jsx("nav", { role: "navigation", "aria-label": "pagination", "data-slot": "pagination", className: cn("mx-auto flex w-full justify-center", className), ...props }));
7
+ }
8
+ function PaginationContent({ className, ...props }) {
9
+ return (_jsx("ul", { "data-slot": "pagination-content", className: cn("flex flex-row items-center gap-1", className), ...props }));
10
+ }
11
+ function PaginationItem({ ...props }) {
12
+ return _jsx("li", { "data-slot": "pagination-item", ...props });
13
+ }
14
+ function PaginationLink({ className, isActive, size = "icon", ...props }) {
15
+ return (_jsx("a", { "aria-current": isActive ? "page" : undefined, "data-slot": "pagination-link", "data-active": isActive, className: cn(buttonVariants({
16
+ variant: isActive ? "outline" : "ghost",
17
+ size,
18
+ }), className), ...props }));
19
+ }
20
+ function PaginationPrevious({ className, ...props }) {
21
+ return (_jsxs(PaginationLink, { "aria-label": "Go to previous page", size: "default", className: cn("gap-1 px-2.5 sm:pl-2.5", className), ...props, children: [_jsx(ChevronLeftIcon, {}), _jsx("span", { className: "hidden sm:block", children: "Previous" })] }));
22
+ }
23
+ function PaginationNext({ className, ...props }) {
24
+ return (_jsxs(PaginationLink, { "aria-label": "Go to next page", size: "default", className: cn("gap-1 px-2.5 sm:pr-2.5", className), ...props, children: [_jsx("span", { className: "hidden sm:block", children: "Next" }), _jsx(ChevronRightIcon, {})] }));
25
+ }
26
+ function PaginationEllipsis({ className, ...props }) {
27
+ return (_jsxs("span", { "aria-hidden": true, "data-slot": "pagination-ellipsis", className: cn("flex size-9 items-center justify-center", className), ...props, children: [_jsx(MoreHorizontalIcon, { className: "size-4" }), _jsx("span", { className: "sr-only", children: "More pages" })] }));
28
+ }
29
+ export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
+ declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
7
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+ import { cn } from "@/lib/utils";
4
+ function Popover({ ...props }) {
5
+ return _jsx(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
6
+ }
7
+ function PopoverTrigger({ ...props }) {
8
+ return _jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
9
+ }
10
+ function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
11
+ return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { "data-slot": "popover-content", align: align, sideOffset: sideOffset, 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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className), ...props }) }));
12
+ }
13
+ function PopoverAnchor({ ...props }) {
14
+ return _jsx(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
15
+ }
16
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+ declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
7
+ size?: "sm" | "default";
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
10
+ declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
11
+ declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
13
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
14
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
15
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+ import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
4
+ import { cn } from "@/lib/utils";
5
+ function Select({ ...props }) {
6
+ return _jsx(SelectPrimitive.Root, { "data-slot": "select", ...props });
7
+ }
8
+ function SelectGroup({ ...props }) {
9
+ return _jsx(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
10
+ }
11
+ function SelectValue({ ...props }) {
12
+ return _jsx(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
13
+ }
14
+ function SelectTrigger({ className, size = "default", children, ...props }) {
15
+ return (_jsxs(SelectPrimitive.Trigger, { "data-slot": "select-trigger", "data-size": size, className: cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[2px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props, children: [children, _jsx(SelectPrimitive.Icon, { asChild: true, children: _jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })] }));
16
+ }
17
+ function SelectContent({ className, children, position = "popper", ...props }) {
18
+ return (_jsx(SelectPrimitive.Portal, { children: _jsxs(SelectPrimitive.Content, { "data-slot": "select-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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", position === "popper" &&
19
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className), position: position, ...props, children: [_jsx(SelectScrollUpButton, {}), _jsx(SelectPrimitive.Viewport, { className: cn("p-1", position === "popper" &&
20
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"), children: children }), _jsx(SelectScrollDownButton, {})] }) }));
21
+ }
22
+ function SelectLabel({ className, ...props }) {
23
+ return (_jsx(SelectPrimitive.Label, { "data-slot": "select-label", className: cn("text-muted-foreground px-2 py-1.5 text-xs", className), ...props }));
24
+ }
25
+ function SelectItem({ className, children, ...props }) {
26
+ return (_jsxs(SelectPrimitive.Item, { "data-slot": "select-item", className: cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className), ...props, children: [_jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: _jsx(SelectPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "size-4" }) }) }), _jsx(SelectPrimitive.ItemText, { children: children })] }));
27
+ }
28
+ function SelectSeparator({ className, ...props }) {
29
+ return (_jsx(SelectPrimitive.Separator, { "data-slot": "select-separator", className: cn("bg-border pointer-events-none -mx-1 my-1 h-px", className), ...props }));
30
+ }
31
+ function SelectScrollUpButton({ className, ...props }) {
32
+ return (_jsx(SelectPrimitive.ScrollUpButton, { "data-slot": "select-scroll-up-button", className: cn("flex cursor-default items-center justify-center py-1", className), ...props, children: _jsx(ChevronUpIcon, { className: "size-4" }) }));
33
+ }
34
+ function SelectScrollDownButton({ className, ...props }) {
35
+ return (_jsx(SelectPrimitive.ScrollDownButton, { "data-slot": "select-scroll-down-button", className: cn("flex cursor-default items-center justify-center py-1", className), ...props, children: _jsx(ChevronDownIcon, { className: "size-4" }) }));
36
+ }
37
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
+ declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Separator };
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
4
+ import { cn } from "@/lib/utils";
5
+ function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
6
+ return (_jsx(SeparatorPrimitive.Root, { "data-slot": "separator-root", decorative: decorative, orientation: orientation, className: cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", className), ...props }));
7
+ }
8
+ export { Separator };
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
3
+ declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
7
+ side?: "top" | "right" | "bottom" | "left";
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
13
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
@@ -0,0 +1,39 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
3
+ import { XIcon } from "lucide-react";
4
+ import { cn } from "@/lib/utils";
5
+ function Sheet({ ...props }) {
6
+ return _jsx(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
7
+ }
8
+ function SheetTrigger({ ...props }) {
9
+ return _jsx(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
10
+ }
11
+ function SheetClose({ ...props }) {
12
+ return _jsx(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
13
+ }
14
+ function SheetPortal({ ...props }) {
15
+ return _jsx(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
16
+ }
17
+ function SheetOverlay({ className, ...props }) {
18
+ return (_jsx(SheetPrimitive.Overlay, { "data-slot": "sheet-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-[1002] bg-black/50", className), ...props }));
19
+ }
20
+ function SheetContent({ className, children, side = "right", ...props }) {
21
+ return (_jsxs(SheetPortal, { children: [_jsx(SheetOverlay, {}), _jsxs(SheetPrimitive.Content, { "data-slot": "sheet-content", className: cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", side === "right" &&
22
+ "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", side === "left" &&
23
+ "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", side === "top" &&
24
+ "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", side === "bottom" &&
25
+ "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", className), ...props, children: [children, _jsxs(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary 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", children: [_jsx(XIcon, { className: "size-4" }), _jsx("span", { className: "sr-only", children: "Close" })] })] })] }));
26
+ }
27
+ function SheetHeader({ className, ...props }) {
28
+ return (_jsx("div", { "data-slot": "sheet-header", className: cn("flex flex-col gap-1.5 p-4", className), ...props }));
29
+ }
30
+ function SheetFooter({ className, ...props }) {
31
+ return (_jsx("div", { "data-slot": "sheet-footer", className: cn("mt-auto flex flex-col gap-2 p-4", className), ...props }));
32
+ }
33
+ function SheetTitle({ className, ...props }) {
34
+ return (_jsx(SheetPrimitive.Title, { "data-slot": "sheet-title", className: cn("text-foreground font-semibold", className), ...props }));
35
+ }
36
+ function SheetDescription({ className, ...props }) {
37
+ return (_jsx(SheetPrimitive.Description, { "data-slot": "sheet-description", className: cn("text-muted-foreground text-sm", className), ...props }));
38
+ }
39
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
@@ -0,0 +1,69 @@
1
+ import * as React from "react";
2
+ import { VariantProps } from "class-variance-authority";
3
+ import { Button } from "@/components/ui/button";
4
+ import { Input } from "@/components/ui/input";
5
+ import { Separator } from "@/components/ui/separator";
6
+ import { TooltipContent } from "@/components/ui/tooltip";
7
+ type SidebarContextProps = {
8
+ state: "expanded" | "collapsed";
9
+ open: boolean;
10
+ setOpen: (open: boolean) => void;
11
+ openMobile: boolean;
12
+ setOpenMobile: (open: boolean) => void;
13
+ isMobile: boolean;
14
+ toggleSidebar: () => void;
15
+ };
16
+ declare function useSidebar(): SidebarContextProps;
17
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
18
+ defaultOpen?: boolean;
19
+ open?: boolean;
20
+ onOpenChange?: (open: boolean) => void;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
23
+ side?: "left" | "right";
24
+ variant?: "sidebar" | "floating" | "inset";
25
+ collapsible?: "offcanvas" | "icon" | "none";
26
+ }): import("react/jsx-runtime").JSX.Element;
27
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
28
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
29
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): import("react/jsx-runtime").JSX.Element;
30
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
31
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
32
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
33
+ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
34
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
35
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
36
+ declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
37
+ asChild?: boolean;
38
+ }): import("react/jsx-runtime").JSX.Element;
39
+ declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
40
+ asChild?: boolean;
41
+ }): import("react/jsx-runtime").JSX.Element;
42
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
43
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
44
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
45
+ declare const sidebarMenuButtonVariants: (props?: ({
46
+ variant?: "default" | "outline" | null | undefined;
47
+ size?: "default" | "sm" | "lg" | null | undefined;
48
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
49
+ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
50
+ asChild?: boolean;
51
+ isActive?: boolean;
52
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
53
+ } & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
54
+ declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
55
+ asChild?: boolean;
56
+ showOnHover?: boolean;
57
+ }): import("react/jsx-runtime").JSX.Element;
58
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
59
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
60
+ showIcon?: boolean;
61
+ }): import("react/jsx-runtime").JSX.Element;
62
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
63
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
64
+ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
65
+ asChild?: boolean;
66
+ size?: "sm" | "md";
67
+ isActive?: boolean;
68
+ }): import("react/jsx-runtime").JSX.Element;
69
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };