zudoku 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/demo.js +1 -1
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.js +1 -15
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +1 -2
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +1 -1
- package/dist/app/sentry.js +1 -1
- package/dist/app/sentry.js.map +1 -1
- package/dist/app/standalone.js +1 -1
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/cmds/build.js +1 -0
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/config/validators/common.d.ts +104 -104
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +90 -90
- package/dist/lib/authentication/components/CallbackHandler.js +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.js +1 -1
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +1 -1
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/components/AnchorLink.d.ts +1 -1
- package/dist/lib/components/AnchorLink.js +1 -1
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +1 -2
- package/dist/lib/components/Bootstrap.js +3 -3
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +1 -1
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +2 -2
- package/dist/lib/components/TopNavigation.js +1 -1
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +1 -1
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.js +1 -1
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +4 -4
- package/dist/lib/components/index.js +1 -1
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +1 -1
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +1 -1
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +3 -5
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/RouterError.js +1 -1
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +1 -0
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.js +1 -1
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/redirect/index.js +1 -1
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +16 -16
- package/dist/lib/util/MdxComponents.js +1 -3
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/useExposedProps.js +1 -1
- package/dist/lib/util/useExposedProps.js.map +1 -1
- package/dist/lib/util/useOnScreen.d.ts +1 -1
- package/dist/lib/util/useScrollToAnchor.js +1 -1
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/lib/util/useScrollToTop.js +1 -1
- package/dist/lib/util/useScrollToTop.js.map +1 -1
- package/dist/vite/config.js +15 -8
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/css/collect.d.ts +2 -0
- package/dist/vite/css/collect.js +27 -0
- package/dist/vite/css/collect.js.map +1 -0
- package/dist/vite/css/plugin.d.ts +5 -0
- package/dist/vite/css/plugin.js +79 -0
- package/dist/vite/css/plugin.js.map +1 -0
- package/dist/vite/dev-server.js +7 -3
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-mdx.js +2 -0
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin.js +4 -0
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{AnchorLink-BR0MvI7n.js → AnchorLink-DFZZbmvr.js} +13 -14
- package/lib/AnchorLink-DFZZbmvr.js.map +1 -0
- package/lib/{AuthenticationPlugin-D0Em0SwR.js → AuthenticationPlugin-DQy635W9.js} +15 -16
- package/lib/AuthenticationPlugin-DQy635W9.js.map +1 -0
- package/lib/{Button-jK0EsymC.js → Button-DeAoTouo.js} +4 -4
- package/lib/{Button-jK0EsymC.js.map → Button-DeAoTouo.js.map} +1 -1
- package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-CBconmtI.js} +3 -3
- package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-CBconmtI.js.map} +1 -1
- package/lib/ClientOnly-E7hGysn1.js.map +1 -1
- package/lib/{Dialog-k70Qfukb.js → Dialog-Bxv1yEIg.js} +3 -3
- package/lib/{Dialog-k70Qfukb.js.map → Dialog-Bxv1yEIg.js.map} +1 -1
- package/lib/{Markdown-CRsmPPfY.js → Markdown-CZDLNOFc.js} +3080 -3058
- package/lib/{Markdown-CRsmPPfY.js.map → Markdown-CZDLNOFc.js.map} +1 -1
- package/lib/{MdxPage-Wp8QU0-q.js → MdxPage-CBa4X6L5.js} +9 -9
- package/lib/MdxPage-CBa4X6L5.js.map +1 -0
- package/lib/OperationList-Bj-6EKhp.js +4889 -0
- package/lib/{OperationList-u8xHU9-b.js.map → OperationList-Bj-6EKhp.js.map} +1 -1
- package/lib/Route-C9cYcP-j.js +11 -0
- package/lib/Route-C9cYcP-j.js.map +1 -0
- package/lib/{Select-O9ZM3ZgX.js → Select-Bb_Hqc70.js} +5 -5
- package/lib/{Select-O9ZM3ZgX.js.map → Select-Bb_Hqc70.js.map} +1 -1
- package/lib/{SidebarBadge-DxFJcJ6V.js → SidebarBadge-Bm793GDY.js} +3 -3
- package/lib/{SidebarBadge-DxFJcJ6V.js.map → SidebarBadge-Bm793GDY.js.map} +1 -1
- package/lib/SlotletProvider-pfc9oejW.js +221 -0
- package/lib/SlotletProvider-pfc9oejW.js.map +1 -0
- package/lib/{Spinner-3cQDBVGr.js → Spinner-DuxJLLNE.js} +2 -2
- package/lib/{Spinner-3cQDBVGr.js.map → Spinner-DuxJLLNE.js.map} +1 -1
- package/lib/{SyntaxHighlight-C31iouiO.js → SyntaxHighlight-Bz-lOJtH.js} +8 -10
- package/lib/{SyntaxHighlight-C31iouiO.js.map → SyntaxHighlight-Bz-lOJtH.js.map} +1 -1
- package/lib/assets/{index-B_Jk_Yzp.js → index-C7jnHK4b.js} +218 -197
- package/lib/assets/index-C7jnHK4b.js.map +1 -0
- package/lib/assets/{worker-C_2va8B8.js → worker-BmEAZjUP.js} +5249 -4922
- package/lib/assets/worker-BmEAZjUP.js.map +1 -0
- package/lib/chunk-D52XG6IA-Dl7HLe6j.js +1823 -0
- package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +1 -0
- package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
- package/lib/cn-qaFjX9_3.js.map +1 -0
- package/lib/{context-D1nXWxm7.js → context-h_UkBLvr.js} +2 -2
- package/lib/{context-D1nXWxm7.js.map → context-h_UkBLvr.js.map} +1 -1
- package/lib/{createServer-BCAHdrpE.js → createServer-BVFp6Bl3.js} +4521 -4195
- package/lib/createServer-BVFp6Bl3.js.map +1 -0
- package/lib/{hook-hEqe7fPB.js → hook-DMHiUaIV.js} +3 -3
- package/lib/{hook-hEqe7fPB.js.map → hook-DMHiUaIV.js.map} +1 -1
- package/lib/{index-CmdLGbbk.js → index-B6rTMjdI.js} +47 -47
- package/lib/{index-CmdLGbbk.js.map → index-B6rTMjdI.js.map} +1 -1
- package/lib/{index-CkwDvuPt.js → index-CBXSgjaE.js} +259 -238
- package/lib/index-CBXSgjaE.js.map +1 -0
- package/lib/index-CPNSgwSb.js +36 -0
- package/lib/index-CPNSgwSb.js.map +1 -0
- package/lib/index-LNp6rxyU.js.map +1 -1
- package/lib/index.esm-BSV1C092.js +692 -0
- package/lib/{index.esm-Bm8pj-bc.js.map → index.esm-BSV1C092.js.map} +1 -1
- package/lib/index.esm-BnnBRKJX.js +1214 -0
- package/lib/index.esm-BnnBRKJX.js.map +1 -0
- package/lib/invariant-Caa8-XvF.js.map +1 -1
- package/lib/jsx-runtime-Dx-03ztt.js +446 -0
- package/lib/jsx-runtime-Dx-03ztt.js.map +1 -0
- package/lib/object_hash-BNWPnMN9.js +787 -0
- package/lib/object_hash-BNWPnMN9.js.map +1 -0
- package/lib/post-processors/removeExtensions.js.map +1 -1
- package/lib/post-processors/removePaths.js.map +1 -1
- package/lib/post-processors/traverse.js.map +1 -1
- package/lib/prism-csharp.min-DUwvItt4.js +63 -0
- package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-DUwvItt4.js.map} +1 -1
- package/lib/prism-java.min-BtgBR4yd.js +35 -0
- package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BtgBR4yd.js.map} +1 -1
- package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
- package/lib/prism-ruby.min-DeDXCp1r.js +38 -0
- package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-DeDXCp1r.js.map} +1 -1
- package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
- package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
- package/lib/state-CFQsUZUP.js +202 -0
- package/lib/state-CFQsUZUP.js.map +1 -0
- package/lib/ui/Accordion.js +2 -2
- package/lib/ui/Accordion.js.map +1 -1
- package/lib/ui/ActionButton.js +4 -4
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Alert.js +3 -3
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/AlertDialog.js +2 -2
- package/lib/ui/AlertDialog.js.map +1 -1
- package/lib/ui/Badge.js +3 -3
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +2 -2
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +3 -3
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +2 -2
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +2 -2
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +407 -401
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +2 -2
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/Command.js +111 -108
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +2 -2
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/DropdownMenu.js +2 -2
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/Form.js +3 -3
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/HoverCard.js +2 -2
- package/lib/ui/Input.js +2 -2
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Label.js +3 -3
- package/lib/ui/Pagination.js +2 -2
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js +2 -2
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +2 -2
- package/lib/ui/Progress.js.map +1 -1
- package/lib/ui/RadioGroup.js +2 -2
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ScrollArea.js +2 -2
- package/lib/ui/ScrollArea.js.map +1 -1
- package/lib/ui/Select.js +2 -2
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js +2 -2
- package/lib/ui/Skeleton.js.map +1 -1
- package/lib/ui/Slider.js +2 -2
- package/lib/ui/Switch.js +2 -2
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/Tabs.js +2 -2
- package/lib/ui/Textarea.js +2 -2
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +3 -3
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js +2 -2
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/ui/Tooltip.js +2 -2
- package/lib/useExposedProps-DE9lR6MF.js +9 -0
- package/lib/useExposedProps-DE9lR6MF.js.map +1 -0
- package/lib/{utils-DcpDOncX.js → utils-R0j3Raw1.js} +30 -31
- package/lib/{utils-DcpDOncX.js.map → utils-R0j3Raw1.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +348 -346
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +679 -939
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +3 -3
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +15 -16
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +4 -4
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +2 -2
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -5
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +35 -35
- package/src/app/demo.tsx +1 -1
- package/src/app/entry.client.tsx +1 -15
- package/src/app/entry.server.tsx +2 -2
- package/src/app/main.tsx +1 -1
- package/src/app/sentry.ts +1 -1
- package/src/app/standalone.tsx +1 -1
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/authentication/components/SignIn.tsx +1 -1
- package/src/lib/authentication/components/SignOut.tsx +1 -1
- package/src/lib/components/AnchorLink.tsx +1 -1
- package/src/lib/components/Bootstrap.tsx +4 -6
- package/src/lib/components/Header.tsx +1 -1
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/NotFoundPage.tsx +1 -1
- package/src/lib/components/SlotletProvider.tsx +1 -1
- package/src/lib/components/TopNavigation.tsx +1 -1
- package/src/lib/components/Zudoku.tsx +1 -1
- package/src/lib/components/context/ZudokuContext.ts +1 -1
- package/src/lib/components/index.ts +1 -1
- package/src/lib/components/navigation/SidebarCategory.tsx +1 -1
- package/src/lib/components/navigation/SidebarItem.tsx +1 -1
- package/src/lib/components/navigation/utils.ts +1 -1
- package/src/lib/core/plugins.ts +3 -7
- package/src/lib/errors/RouterError.tsx +1 -1
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
- package/src/lib/plugins/api-keys/index.tsx +1 -1
- package/src/lib/plugins/custom-pages/index.tsx +1 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
- package/src/lib/plugins/markdown/index.tsx +2 -1
- package/src/lib/plugins/openapi/Route.tsx +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/src/lib/plugins/redirect/index.tsx +1 -1
- package/src/lib/util/MdxComponents.tsx +1 -3
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/useExposedProps.tsx +1 -1
- package/src/lib/util/useScrollToAnchor.ts +1 -1
- package/src/lib/util/useScrollToTop.ts +1 -1
- package/lib/AnchorLink-BR0MvI7n.js.map +0 -1
- package/lib/AuthenticationPlugin-D0Em0SwR.js.map +0 -1
- package/lib/MdxPage-Wp8QU0-q.js.map +0 -1
- package/lib/OperationList-u8xHU9-b.js +0 -4706
- package/lib/Route-DlG_HTMu.js +0 -11
- package/lib/Route-DlG_HTMu.js.map +0 -1
- package/lib/SlotletProvider-BgvYIPQe.js +0 -252
- package/lib/SlotletProvider-BgvYIPQe.js.map +0 -1
- package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
- package/lib/assets/worker-C_2va8B8.js.map +0 -1
- package/lib/cn-BmFQLtkS.js.map +0 -1
- package/lib/createServer-BCAHdrpE.js.map +0 -1
- package/lib/index-BuAyrJe3.js +0 -46
- package/lib/index-BuAyrJe3.js.map +0 -1
- package/lib/index-CkwDvuPt.js.map +0 -1
- package/lib/index-Czzd9rjU.js +0 -899
- package/lib/index-Czzd9rjU.js.map +0 -1
- package/lib/index-Yn8c3UWE.js +0 -921
- package/lib/index-Yn8c3UWE.js.map +0 -1
- package/lib/index.esm-Bm8pj-bc.js +0 -675
- package/lib/index.esm-C5mr_sKO.js +0 -1193
- package/lib/index.esm-C5mr_sKO.js.map +0 -1
- package/lib/jsx-runtime-B6kdoens.js +0 -635
- package/lib/jsx-runtime-B6kdoens.js.map +0 -1
- package/lib/object_hash-CvlLgU-M.js +0 -785
- package/lib/object_hash-CvlLgU-M.js.map +0 -1
- package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
- package/lib/prism-java.min-d5iT_mOd.js +0 -7
- package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
- package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
- package/lib/router-lfyopgBI.js +0 -3024
- package/lib/router-lfyopgBI.js.map +0 -1
- package/lib/state-tsXBLONe.js +0 -203
- package/lib/state-tsXBLONe.js.map +0 -1
- package/lib/useExposedProps-CTPtylCV.js +0 -10
- package/lib/useExposedProps-CTPtylCV.js.map +0 -1
package/lib/ui/Command.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { j as A } from "../jsx-runtime-
|
|
1
|
+
import { j as A } from "../jsx-runtime-Dx-03ztt.js";
|
|
2
2
|
import * as Q from "@radix-ui/react-dialog";
|
|
3
3
|
import * as a from "react";
|
|
4
|
-
import
|
|
4
|
+
import _e from "react";
|
|
5
5
|
import { Primitive as j } from "@radix-ui/react-primitive";
|
|
6
6
|
import { useId as F } from "@radix-ui/react-id";
|
|
7
|
-
import { Search as
|
|
8
|
-
import { D as
|
|
9
|
-
import { c as
|
|
10
|
-
var Se = 1,
|
|
11
|
-
function
|
|
12
|
-
if (i === n.length) return l === e.length ? Se :
|
|
7
|
+
import { Search as De } from "lucide-react";
|
|
8
|
+
import { D as je, a as Me } from "../Dialog-Bxv1yEIg.js";
|
|
9
|
+
import { c as q } from "../cn-qaFjX9_3.js";
|
|
10
|
+
var Se = 1, Ve = 0.9, $e = 0.8, Te = 0.17, ae = 0.1, le = 0.999, Ke = 0.9999, qe = 0.99, Ue = /[\\\/_+.#"@\[\(\{&]/, Ge = /[\\\/_+.#"@\[\(\{&]/g, Fe = /[\s-]/, ke = /[\s-]/g;
|
|
11
|
+
function ce(e, n, t, f, l, i, s) {
|
|
12
|
+
if (i === n.length) return l === e.length ? Se : qe;
|
|
13
13
|
var v = `${l},${i}`;
|
|
14
14
|
if (s[v] !== void 0) return s[v];
|
|
15
|
-
for (var g = f.charAt(i), m = t.indexOf(g, l), c = 0, u, S, E, R; m >= 0; ) u =
|
|
15
|
+
for (var g = f.charAt(i), m = t.indexOf(g, l), c = 0, u, S, E, R; m >= 0; ) u = ce(e, n, t, f, m + 1, i + 1, s), u > c && (m === l ? u *= Se : Ue.test(e.charAt(m - 1)) ? (u *= $e, E = e.slice(l, m - 1).match(Ge), E && l > 0 && (u *= Math.pow(le, E.length))) : Fe.test(e.charAt(m - 1)) ? (u *= Ve, R = e.slice(l, m - 1).match(ke), R && l > 0 && (u *= Math.pow(le, R.length))) : (u *= Te, l > 0 && (u *= Math.pow(le, m - l))), e.charAt(m) !== n.charAt(i) && (u *= Ke)), (u < ae && t.charAt(m - 1) === f.charAt(i + 1) || f.charAt(i + 1) === f.charAt(i) && t.charAt(m - 1) !== f.charAt(i)) && (S = ce(e, n, t, f, m + 1, i + 2, s), S * ae > u && (u = S * ae)), u > c && (c = u), m = t.indexOf(g, m + 1);
|
|
16
16
|
return s[v] = c, c;
|
|
17
17
|
}
|
|
18
18
|
function ye(e) {
|
|
19
|
-
return e.toLowerCase().replace(
|
|
19
|
+
return e.toLowerCase().replace(ke, " ");
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e,
|
|
21
|
+
function Pe(e, n, t) {
|
|
22
|
+
return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, ce(e, n, ye(e), ye(n), 0, 0, {});
|
|
23
23
|
}
|
|
24
|
-
var
|
|
24
|
+
var Z = { exports: {} }, oe = {};
|
|
25
25
|
/**
|
|
26
26
|
* @license React
|
|
27
27
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -32,10 +32,10 @@ var ce = { exports: {} }, le = {};
|
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
33
|
*/
|
|
34
34
|
var Ee;
|
|
35
|
-
function
|
|
36
|
-
if (Ee) return
|
|
35
|
+
function Be() {
|
|
36
|
+
if (Ee) return oe;
|
|
37
37
|
Ee = 1;
|
|
38
|
-
var e =
|
|
38
|
+
var e = _e;
|
|
39
39
|
function n(u, S) {
|
|
40
40
|
return u === S && (u !== 0 || 1 / u === 1 / S) || u !== u && S !== S;
|
|
41
41
|
}
|
|
@@ -64,9 +64,9 @@ function Pe() {
|
|
|
64
64
|
return S();
|
|
65
65
|
}
|
|
66
66
|
var c = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : v;
|
|
67
|
-
return
|
|
67
|
+
return oe.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : c, oe;
|
|
68
68
|
}
|
|
69
|
-
var
|
|
69
|
+
var ue = {};
|
|
70
70
|
/**
|
|
71
71
|
* @license React
|
|
72
72
|
* use-sync-external-store-shim.development.js
|
|
@@ -77,10 +77,10 @@ var oe = {};
|
|
|
77
77
|
* LICENSE file in the root directory of this source tree.
|
|
78
78
|
*/
|
|
79
79
|
var xe;
|
|
80
|
-
function
|
|
80
|
+
function He() {
|
|
81
81
|
return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
82
82
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
83
|
-
var e =
|
|
83
|
+
var e = _e, n = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
84
84
|
function t(w) {
|
|
85
85
|
{
|
|
86
86
|
for (var x = arguments.length, k = new Array(x > 1 ? x - 1 : 0), p = 1; p < x; p++)
|
|
@@ -143,16 +143,19 @@ function Be() {
|
|
|
143
143
|
function R(w, x, k) {
|
|
144
144
|
return x();
|
|
145
145
|
}
|
|
146
|
-
var C = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", I = !C,
|
|
147
|
-
|
|
148
|
-
}()),
|
|
146
|
+
var C = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", I = !C, U = I ? R : S, J = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : U;
|
|
147
|
+
ue.useSyncExternalStore = J, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
148
|
+
}()), ue;
|
|
149
|
+
}
|
|
150
|
+
var be;
|
|
151
|
+
function We() {
|
|
152
|
+
return be || (be = 1, process.env.NODE_ENV === "production" ? Z.exports = Be() : Z.exports = He()), Z.exports;
|
|
149
153
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
let t = q(() => {
|
|
154
|
+
var ze = We(), W = '[cmdk-group=""]', ie = '[cmdk-group-items=""]', Ye = '[cmdk-group-heading=""]', se = '[cmdk-item=""]', we = `${se}:not([aria-disabled="true"])`, de = "cmdk-item-select", $ = "data-value", Je = (e, n, t) => Pe(e, n, t), Re = a.createContext(void 0), Y = () => a.useContext(Re), Ce = a.createContext(void 0), fe = () => a.useContext(Ce), Oe = a.createContext(void 0), Ie = a.forwardRef((e, n) => {
|
|
155
|
+
let t = G(() => {
|
|
153
156
|
var r, d;
|
|
154
157
|
return { search: "", value: (d = (r = e.value) != null ? r : e.defaultValue) != null ? d : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
155
|
-
}), f =
|
|
158
|
+
}), f = G(() => /* @__PURE__ */ new Set()), l = G(() => /* @__PURE__ */ new Map()), i = G(() => /* @__PURE__ */ new Map()), s = G(() => /* @__PURE__ */ new Set()), v = Ne(e), { label: g, children: m, value: c, onValueChange: u, filter: S, shouldFilter: E, loop: R, disablePointerSelection: C = !1, vimBindings: I = !0, ...U } = e, J = F(), w = F(), x = F(), k = a.useRef(null), p = ut();
|
|
156
159
|
T(() => {
|
|
157
160
|
if (c !== void 0) {
|
|
158
161
|
let r = c.trim();
|
|
@@ -164,7 +167,7 @@ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '
|
|
|
164
167
|
let _ = a.useMemo(() => ({ subscribe: (r) => (s.current.add(r), () => s.current.delete(r)), snapshot: () => t.current, setState: (r, d, h) => {
|
|
165
168
|
var o, y, b;
|
|
166
169
|
if (!Object.is(t.current[r], d)) {
|
|
167
|
-
if (t.current[r] = d, r === "search")
|
|
170
|
+
if (t.current[r] = d, r === "search") te(), M(), p(1, P);
|
|
168
171
|
else if (r === "value" && (h || p(5, me), ((o = v.current) == null ? void 0 : o.value) !== void 0)) {
|
|
169
172
|
let L = d ?? "";
|
|
170
173
|
(b = (y = v.current).onValueChange) == null || b.call(y, L);
|
|
@@ -180,19 +183,19 @@ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '
|
|
|
180
183
|
M(), _.emit();
|
|
181
184
|
}));
|
|
182
185
|
}, item: (r, d) => (f.current.add(r), d && (l.current.has(d) ? l.current.get(d).add(r) : l.current.set(d, /* @__PURE__ */ new Set([r]))), p(3, () => {
|
|
183
|
-
|
|
186
|
+
te(), M(), t.current.value || P(), _.emit();
|
|
184
187
|
}), () => {
|
|
185
188
|
i.current.delete(r), f.current.delete(r), t.current.filtered.items.delete(r);
|
|
186
189
|
let h = B();
|
|
187
190
|
p(4, () => {
|
|
188
|
-
|
|
191
|
+
te(), (h == null ? void 0 : h.getAttribute("id")) === r && P(), _.emit();
|
|
189
192
|
});
|
|
190
193
|
}), group: (r) => (l.current.has(r) || l.current.set(r, /* @__PURE__ */ new Set()), () => {
|
|
191
194
|
i.current.delete(r), l.current.delete(r);
|
|
192
195
|
}), filter: () => v.current.shouldFilter, label: g || e["aria-label"], getDisablePointerSelection: () => v.current.disablePointerSelection, listId: J, inputId: x, labelId: w, listInnerRef: k }), []);
|
|
193
196
|
function N(r, d) {
|
|
194
197
|
var h, o;
|
|
195
|
-
let y = (o = (h = v.current) == null ? void 0 : h.filter) != null ? o :
|
|
198
|
+
let y = (o = (h = v.current) == null ? void 0 : h.filter) != null ? o : Je;
|
|
196
199
|
return r ? y(r, t.current.search, d) : 0;
|
|
197
200
|
}
|
|
198
201
|
function M() {
|
|
@@ -211,8 +214,8 @@ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '
|
|
|
211
214
|
let V = o.getAttribute("id"), X = y.getAttribute("id");
|
|
212
215
|
return ((b = r.get(X)) != null ? b : 0) - ((L = r.get(V)) != null ? L : 0);
|
|
213
216
|
}).forEach((o) => {
|
|
214
|
-
let y = o.closest(
|
|
215
|
-
y ? y.appendChild(o.parentElement === y ? o : o.closest(`${
|
|
217
|
+
let y = o.closest(ie);
|
|
218
|
+
y ? y.appendChild(o.parentElement === y ? o : o.closest(`${ie} > *`)) : h.appendChild(o.parentElement === h ? o : o.closest(`${ie} > *`));
|
|
216
219
|
}), d.sort((o, y) => y[1] - o[1]).forEach((o) => {
|
|
217
220
|
var y;
|
|
218
221
|
let b = (y = k.current) == null ? void 0 : y.querySelector(`${W}[${$}="${encodeURIComponent(o[0])}"]`);
|
|
@@ -223,7 +226,7 @@ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '
|
|
|
223
226
|
let r = H().find((h) => h.getAttribute("aria-disabled") !== "true"), d = r == null ? void 0 : r.getAttribute($);
|
|
224
227
|
_.setState("value", d || void 0);
|
|
225
228
|
}
|
|
226
|
-
function
|
|
229
|
+
function te() {
|
|
227
230
|
var r, d, h, o;
|
|
228
231
|
if (!t.current.search || v.current.shouldFilter === !1) {
|
|
229
232
|
t.current.filtered.count = f.current.size;
|
|
@@ -244,7 +247,7 @@ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '
|
|
|
244
247
|
function me() {
|
|
245
248
|
var r, d, h;
|
|
246
249
|
let o = B();
|
|
247
|
-
o && (((r = o.parentElement) == null ? void 0 : r.firstChild) === o && ((h = (d = o.closest(W)) == null ? void 0 : d.querySelector(
|
|
250
|
+
o && (((r = o.parentElement) == null ? void 0 : r.firstChild) === o && ((h = (d = o.closest(W)) == null ? void 0 : d.querySelector(Ye)) == null || h.scrollIntoView({ block: "nearest" })), o.scrollIntoView({ block: "nearest" }));
|
|
248
251
|
}
|
|
249
252
|
function B() {
|
|
250
253
|
var r;
|
|
@@ -252,30 +255,30 @@ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '
|
|
|
252
255
|
}
|
|
253
256
|
function H() {
|
|
254
257
|
var r;
|
|
255
|
-
return Array.from(((r = k.current) == null ? void 0 : r.querySelectorAll(
|
|
258
|
+
return Array.from(((r = k.current) == null ? void 0 : r.querySelectorAll(we)) || []);
|
|
256
259
|
}
|
|
257
|
-
function
|
|
260
|
+
function re(r) {
|
|
258
261
|
let d = H()[r];
|
|
259
262
|
d && _.setState("value", d.getAttribute($));
|
|
260
263
|
}
|
|
261
|
-
function
|
|
264
|
+
function ne(r) {
|
|
262
265
|
var d;
|
|
263
266
|
let h = B(), o = H(), y = o.findIndex((L) => L === h), b = o[y + r];
|
|
264
267
|
(d = v.current) != null && d.loop && (b = y + r < 0 ? o[o.length - 1] : y + r === o.length ? o[0] : o[y + r]), b && _.setState("value", b.getAttribute($));
|
|
265
268
|
}
|
|
266
269
|
function pe(r) {
|
|
267
270
|
let d = B(), h = d == null ? void 0 : d.closest(W), o;
|
|
268
|
-
for (; h && !o; ) h = r > 0 ?
|
|
269
|
-
o ? _.setState("value", o.getAttribute($)) :
|
|
271
|
+
for (; h && !o; ) h = r > 0 ? lt(h, W) : ot(h, W), o = h == null ? void 0 : h.querySelector(we);
|
|
272
|
+
o ? _.setState("value", o.getAttribute($)) : ne(r);
|
|
270
273
|
}
|
|
271
|
-
let ve = () =>
|
|
272
|
-
r.preventDefault(), r.metaKey ? ve() : r.altKey ? pe(1) :
|
|
274
|
+
let ve = () => re(H().length - 1), he = (r) => {
|
|
275
|
+
r.preventDefault(), r.metaKey ? ve() : r.altKey ? pe(1) : ne(1);
|
|
273
276
|
}, ge = (r) => {
|
|
274
|
-
r.preventDefault(), r.metaKey ?
|
|
277
|
+
r.preventDefault(), r.metaKey ? re(0) : r.altKey ? pe(-1) : ne(-1);
|
|
275
278
|
};
|
|
276
|
-
return a.createElement(j.div, { ref: n, tabIndex: -1, ...
|
|
279
|
+
return a.createElement(j.div, { ref: n, tabIndex: -1, ...U, "cmdk-root": "", onKeyDown: (r) => {
|
|
277
280
|
var d;
|
|
278
|
-
if ((d =
|
|
281
|
+
if ((d = U.onKeyDown) == null || d.call(U, r), !r.defaultPrevented) switch (r.key) {
|
|
279
282
|
case "n":
|
|
280
283
|
case "j": {
|
|
281
284
|
I && r.ctrlKey && he(r);
|
|
@@ -295,7 +298,7 @@ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '
|
|
|
295
298
|
break;
|
|
296
299
|
}
|
|
297
300
|
case "Home": {
|
|
298
|
-
r.preventDefault(),
|
|
301
|
+
r.preventDefault(), re(0);
|
|
299
302
|
break;
|
|
300
303
|
}
|
|
301
304
|
case "End": {
|
|
@@ -312,14 +315,14 @@ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '
|
|
|
312
315
|
}
|
|
313
316
|
}
|
|
314
317
|
}
|
|
315
|
-
} }, a.createElement("label", { "cmdk-label": "", htmlFor: D.inputId, id: D.labelId, style:
|
|
316
|
-
}),
|
|
318
|
+
} }, a.createElement("label", { "cmdk-label": "", htmlFor: D.inputId, id: D.labelId, style: ct }, g), ee(e, (r) => a.createElement(Ce.Provider, { value: _ }, a.createElement(Re.Provider, { value: D }, r))));
|
|
319
|
+
}), Xe = a.forwardRef((e, n) => {
|
|
317
320
|
var t, f;
|
|
318
|
-
let l = F(), i = a.useRef(null), s = a.useContext(
|
|
321
|
+
let l = F(), i = a.useRef(null), s = a.useContext(Oe), v = Y(), g = Ne(e), m = (f = (t = g.current) == null ? void 0 : t.forceMount) != null ? f : s == null ? void 0 : s.forceMount;
|
|
319
322
|
T(() => {
|
|
320
323
|
if (!m) return v.item(l, s == null ? void 0 : s.id);
|
|
321
324
|
}, [m]);
|
|
322
|
-
let c =
|
|
325
|
+
let c = Ae(l, i, [e.value, e.children, i], e.keywords), u = fe(), S = K((p) => p.value && p.value === c.current), E = K((p) => m || v.filter() === !1 ? !0 : p.search ? p.filtered.items.get(l) > 0 : !0);
|
|
323
326
|
a.useEffect(() => {
|
|
324
327
|
let p = i.current;
|
|
325
328
|
if (!(!p || e.disabled)) return p.addEventListener(de, R), () => p.removeEventListener(de, R);
|
|
@@ -332,17 +335,17 @@ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '
|
|
|
332
335
|
u.setState("value", c.current, !0);
|
|
333
336
|
}
|
|
334
337
|
if (!E) return null;
|
|
335
|
-
let { disabled: I, value:
|
|
338
|
+
let { disabled: I, value: U, onSelect: J, forceMount: w, keywords: x, ...k } = e;
|
|
336
339
|
return a.createElement(j.div, { ref: z([i, n]), ...k, id: l, "cmdk-item": "", role: "option", "aria-disabled": !!I, "aria-selected": !!S, "data-disabled": !!I, "data-selected": !!S, onPointerMove: I || v.getDisablePointerSelection() ? void 0 : C, onClick: I ? void 0 : R }, e.children);
|
|
337
|
-
}),
|
|
340
|
+
}), Qe = a.forwardRef((e, n) => {
|
|
338
341
|
let { heading: t, children: f, forceMount: l, ...i } = e, s = F(), v = a.useRef(null), g = a.useRef(null), m = F(), c = Y(), u = K((E) => l || c.filter() === !1 ? !0 : E.search ? E.filtered.groups.has(s) : !0);
|
|
339
|
-
T(() => c.group(s), []),
|
|
342
|
+
T(() => c.group(s), []), Ae(s, v, [e.value, e.heading, g]);
|
|
340
343
|
let S = a.useMemo(() => ({ id: s, forceMount: l }), [l]);
|
|
341
|
-
return a.createElement(j.div, { ref: z([v, n]), ...i, "cmdk-group": "", role: "presentation", hidden: u ? void 0 : !0 }, t && a.createElement("div", { ref: g, "cmdk-group-heading": "", "aria-hidden": !0, id: m }, t),
|
|
342
|
-
}),
|
|
344
|
+
return a.createElement(j.div, { ref: z([v, n]), ...i, "cmdk-group": "", role: "presentation", hidden: u ? void 0 : !0 }, t && a.createElement("div", { ref: g, "cmdk-group-heading": "", "aria-hidden": !0, id: m }, t), ee(e, (E) => a.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? m : void 0 }, a.createElement(Oe.Provider, { value: S }, E))));
|
|
345
|
+
}), Ze = a.forwardRef((e, n) => {
|
|
343
346
|
let { alwaysRender: t, ...f } = e, l = a.useRef(null), i = K((s) => !s.search);
|
|
344
347
|
return !t && !i ? null : a.createElement(j.div, { ref: z([l, n]), ...f, "cmdk-separator": "", role: "separator" });
|
|
345
|
-
}),
|
|
348
|
+
}), et = a.forwardRef((e, n) => {
|
|
346
349
|
let { onValueChange: t, ...f } = e, l = e.value != null, i = fe(), s = K((c) => c.search), v = K((c) => c.value), g = Y(), m = a.useMemo(() => {
|
|
347
350
|
var c;
|
|
348
351
|
let u = (c = g.listInnerRef.current) == null ? void 0 : c.querySelector(`${se}[${$}="${encodeURIComponent(v)}"]`);
|
|
@@ -353,7 +356,7 @@ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '
|
|
|
353
356
|
}, [e.value]), a.createElement(j.input, { ref: n, ...f, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": g.listId, "aria-labelledby": g.labelId, "aria-activedescendant": m, id: g.inputId, type: "text", value: l ? e.value : s, onChange: (c) => {
|
|
354
357
|
l || i.setState("search", c.target.value), t == null || t(c.target.value);
|
|
355
358
|
} });
|
|
356
|
-
}),
|
|
359
|
+
}), tt = a.forwardRef((e, n) => {
|
|
357
360
|
let { children: t, label: f = "Suggestions", ...l } = e, i = a.useRef(null), s = a.useRef(null), v = Y();
|
|
358
361
|
return a.useEffect(() => {
|
|
359
362
|
if (s.current && i.current) {
|
|
@@ -367,36 +370,36 @@ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '
|
|
|
367
370
|
cancelAnimationFrame(c), u.unobserve(g);
|
|
368
371
|
};
|
|
369
372
|
}
|
|
370
|
-
}, []), a.createElement(j.div, { ref: z([i, n]), ...l, "cmdk-list": "", role: "listbox", "aria-label": f, id: v.listId },
|
|
371
|
-
}),
|
|
373
|
+
}, []), a.createElement(j.div, { ref: z([i, n]), ...l, "cmdk-list": "", role: "listbox", "aria-label": f, id: v.listId }, ee(e, (g) => a.createElement("div", { ref: z([s, v.listInnerRef]), "cmdk-list-sizer": "" }, g)));
|
|
374
|
+
}), rt = a.forwardRef((e, n) => {
|
|
372
375
|
let { open: t, onOpenChange: f, overlayClassName: l, contentClassName: i, container: s, ...v } = e;
|
|
373
|
-
return a.createElement(Q.Root, { open: t, onOpenChange: f }, a.createElement(Q.Portal, { container: s }, a.createElement(Q.Overlay, { "cmdk-overlay": "", className: l }), a.createElement(Q.Content, { "aria-label": e.label, "cmdk-dialog": "", className: i }, a.createElement(
|
|
374
|
-
}),
|
|
376
|
+
return a.createElement(Q.Root, { open: t, onOpenChange: f }, a.createElement(Q.Portal, { container: s }, a.createElement(Q.Overlay, { "cmdk-overlay": "", className: l }), a.createElement(Q.Content, { "aria-label": e.label, "cmdk-dialog": "", className: i }, a.createElement(Ie, { ref: n, ...v }))));
|
|
377
|
+
}), nt = a.forwardRef((e, n) => K((t) => t.filtered.count === 0) ? a.createElement(j.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), at = a.forwardRef((e, n) => {
|
|
375
378
|
let { progress: t, children: f, label: l = "Loading...", ...i } = e;
|
|
376
|
-
return a.createElement(j.div, { ref: n, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": l },
|
|
377
|
-
}), O = Object.assign(
|
|
378
|
-
function
|
|
379
|
+
return a.createElement(j.div, { ref: n, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": l }, ee(e, (s) => a.createElement("div", { "aria-hidden": !0 }, s)));
|
|
380
|
+
}), O = Object.assign(Ie, { List: tt, Item: Xe, Input: et, Group: Qe, Separator: Ze, Dialog: rt, Empty: nt, Loading: at });
|
|
381
|
+
function lt(e, n) {
|
|
379
382
|
let t = e.nextElementSibling;
|
|
380
383
|
for (; t; ) {
|
|
381
384
|
if (t.matches(n)) return t;
|
|
382
385
|
t = t.nextElementSibling;
|
|
383
386
|
}
|
|
384
387
|
}
|
|
385
|
-
function
|
|
388
|
+
function ot(e, n) {
|
|
386
389
|
let t = e.previousElementSibling;
|
|
387
390
|
for (; t; ) {
|
|
388
391
|
if (t.matches(n)) return t;
|
|
389
392
|
t = t.previousElementSibling;
|
|
390
393
|
}
|
|
391
394
|
}
|
|
392
|
-
function
|
|
395
|
+
function Ne(e) {
|
|
393
396
|
let n = a.useRef(e);
|
|
394
397
|
return T(() => {
|
|
395
398
|
n.current = e;
|
|
396
399
|
}), n;
|
|
397
400
|
}
|
|
398
401
|
var T = typeof window > "u" ? a.useEffect : a.useLayoutEffect;
|
|
399
|
-
function
|
|
402
|
+
function G(e) {
|
|
400
403
|
let n = a.useRef();
|
|
401
404
|
return n.current === void 0 && (n.current = e()), n;
|
|
402
405
|
}
|
|
@@ -409,9 +412,9 @@ function z(e) {
|
|
|
409
412
|
}
|
|
410
413
|
function K(e) {
|
|
411
414
|
let n = fe(), t = () => e(n.snapshot());
|
|
412
|
-
return
|
|
415
|
+
return ze.useSyncExternalStore(n.subscribe, t, t);
|
|
413
416
|
}
|
|
414
|
-
function
|
|
417
|
+
function Ae(e, n, t, f = []) {
|
|
415
418
|
let l = a.useRef(), i = Y();
|
|
416
419
|
return T(() => {
|
|
417
420
|
var s;
|
|
@@ -425,43 +428,43 @@ function Ne(e, n, t, f = []) {
|
|
|
425
428
|
i.value(e, v, g), (s = n.current) == null || s.setAttribute($, v), l.current = v;
|
|
426
429
|
}), l;
|
|
427
430
|
}
|
|
428
|
-
var
|
|
429
|
-
let [e, n] = a.useState(), t =
|
|
431
|
+
var ut = () => {
|
|
432
|
+
let [e, n] = a.useState(), t = G(() => /* @__PURE__ */ new Map());
|
|
430
433
|
return T(() => {
|
|
431
434
|
t.current.forEach((f) => f()), t.current = /* @__PURE__ */ new Map();
|
|
432
435
|
}, [e]), (f, l) => {
|
|
433
436
|
t.current.set(f, l), n({});
|
|
434
437
|
};
|
|
435
438
|
};
|
|
436
|
-
function
|
|
439
|
+
function it(e) {
|
|
437
440
|
let n = e.type;
|
|
438
441
|
return typeof n == "function" ? n(e.props) : "render" in n ? n.render(e.props) : e;
|
|
439
442
|
}
|
|
440
|
-
function
|
|
441
|
-
return e && a.isValidElement(n) ? a.cloneElement(
|
|
443
|
+
function ee({ asChild: e, children: n }, t) {
|
|
444
|
+
return e && a.isValidElement(n) ? a.cloneElement(it(n), { ref: n.ref }, t(n.props.children)) : t(n);
|
|
442
445
|
}
|
|
443
|
-
var
|
|
444
|
-
const
|
|
446
|
+
var ct = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
447
|
+
const Le = a.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ A.jsx(
|
|
445
448
|
O,
|
|
446
449
|
{
|
|
447
450
|
ref: t,
|
|
448
|
-
className:
|
|
451
|
+
className: q(
|
|
449
452
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
450
453
|
e
|
|
451
454
|
),
|
|
452
455
|
...n
|
|
453
456
|
}
|
|
454
457
|
));
|
|
455
|
-
|
|
456
|
-
const
|
|
458
|
+
Le.displayName = O.displayName;
|
|
459
|
+
const _t = ({ children: e, ...n }) => /* @__PURE__ */ A.jsx(je, { ...n, children: /* @__PURE__ */ A.jsx(Me, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ A.jsx(Le, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[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: e }) }) }), dt = a.forwardRef(({ className: e, ...n }, t) => (
|
|
457
460
|
// eslint-disable-next-line react/no-unknown-property
|
|
458
461
|
/* @__PURE__ */ A.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
459
|
-
/* @__PURE__ */ A.jsx(
|
|
462
|
+
/* @__PURE__ */ A.jsx(De, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
460
463
|
/* @__PURE__ */ A.jsx(
|
|
461
464
|
O.Input,
|
|
462
465
|
{
|
|
463
466
|
ref: t,
|
|
464
|
-
className:
|
|
467
|
+
className: q(
|
|
465
468
|
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
466
469
|
e
|
|
467
470
|
),
|
|
@@ -470,17 +473,17 @@ const bt = ({ children: e, ...n }) => /* @__PURE__ */ A.jsx(De, { ...n, children
|
|
|
470
473
|
)
|
|
471
474
|
] })
|
|
472
475
|
));
|
|
473
|
-
|
|
474
|
-
const
|
|
476
|
+
dt.displayName = O.Input.displayName;
|
|
477
|
+
const st = a.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ A.jsx(
|
|
475
478
|
O.List,
|
|
476
479
|
{
|
|
477
480
|
ref: t,
|
|
478
|
-
className:
|
|
481
|
+
className: q("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
479
482
|
...n
|
|
480
483
|
}
|
|
481
484
|
));
|
|
482
|
-
|
|
483
|
-
const
|
|
485
|
+
st.displayName = O.List.displayName;
|
|
486
|
+
const ft = a.forwardRef((e, n) => /* @__PURE__ */ A.jsx(
|
|
484
487
|
O.Empty,
|
|
485
488
|
{
|
|
486
489
|
ref: n,
|
|
@@ -488,63 +491,63 @@ const dt = a.forwardRef((e, n) => /* @__PURE__ */ A.jsx(
|
|
|
488
491
|
...e
|
|
489
492
|
}
|
|
490
493
|
));
|
|
491
|
-
|
|
492
|
-
const
|
|
494
|
+
ft.displayName = O.Empty.displayName;
|
|
495
|
+
const mt = a.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ A.jsx(
|
|
493
496
|
O.Group,
|
|
494
497
|
{
|
|
495
498
|
ref: t,
|
|
496
|
-
className:
|
|
499
|
+
className: q(
|
|
497
500
|
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
498
501
|
e
|
|
499
502
|
),
|
|
500
503
|
...n
|
|
501
504
|
}
|
|
502
505
|
));
|
|
503
|
-
|
|
504
|
-
const
|
|
506
|
+
mt.displayName = O.Group.displayName;
|
|
507
|
+
const pt = a.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ A.jsx(
|
|
505
508
|
O.Separator,
|
|
506
509
|
{
|
|
507
510
|
ref: t,
|
|
508
|
-
className:
|
|
511
|
+
className: q("-mx-1 h-px bg-border", e),
|
|
509
512
|
...n
|
|
510
513
|
}
|
|
511
514
|
));
|
|
512
|
-
|
|
513
|
-
const
|
|
515
|
+
pt.displayName = O.Separator.displayName;
|
|
516
|
+
const vt = a.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ A.jsx(
|
|
514
517
|
O.Item,
|
|
515
518
|
{
|
|
516
519
|
ref: t,
|
|
517
|
-
className:
|
|
520
|
+
className: q(
|
|
518
521
|
"relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
519
522
|
e
|
|
520
523
|
),
|
|
521
524
|
...n
|
|
522
525
|
}
|
|
523
526
|
));
|
|
524
|
-
|
|
525
|
-
const
|
|
527
|
+
vt.displayName = O.Item.displayName;
|
|
528
|
+
const ht = ({
|
|
526
529
|
className: e,
|
|
527
530
|
...n
|
|
528
531
|
}) => /* @__PURE__ */ A.jsx(
|
|
529
532
|
"span",
|
|
530
533
|
{
|
|
531
|
-
className:
|
|
534
|
+
className: q(
|
|
532
535
|
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
533
536
|
e
|
|
534
537
|
),
|
|
535
538
|
...n
|
|
536
539
|
}
|
|
537
540
|
);
|
|
538
|
-
|
|
541
|
+
ht.displayName = "CommandShortcut";
|
|
539
542
|
export {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
543
|
+
Le as Command,
|
|
544
|
+
_t as CommandDialog,
|
|
545
|
+
ft as CommandEmpty,
|
|
546
|
+
mt as CommandGroup,
|
|
547
|
+
dt as CommandInput,
|
|
548
|
+
vt as CommandItem,
|
|
549
|
+
st as CommandList,
|
|
550
|
+
pt as CommandSeparator,
|
|
551
|
+
ht as CommandShortcut
|
|
549
552
|
};
|
|
550
553
|
//# sourceMappingURL=Command.js.map
|