@rspress/core 2.0.0-beta.8 → 2.0.0-rc.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/README.md +17 -1
- package/bin/rspress.js +15 -0
- package/dist/3~101.js +1786 -0
- package/dist/3~335.js +26 -0
- package/dist/3~395.js +74 -0
- package/dist/_private/react/index.js +2 -0
- package/dist/_private/react/reconciler.js +169 -0
- package/dist/_private/react/render.js +105 -0
- package/dist/cli/config/loadConfigFile.d.ts +6 -0
- package/dist/cli/config.d.ts +2 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli.js +259 -0
- package/dist/eject-theme/components/Badge/index.scss +52 -0
- package/dist/eject-theme/components/Badge/index.tsx +65 -0
- package/dist/eject-theme/components/Banner/index.scss +50 -0
- package/dist/eject-theme/components/Banner/index.tsx +119 -0
- package/dist/eject-theme/components/Button/index.scss +68 -0
- package/dist/eject-theme/components/Button/index.tsx +49 -0
- package/dist/eject-theme/components/Callout/index.scss +262 -0
- package/dist/eject-theme/components/Callout/index.tsx +47 -0
- package/dist/eject-theme/components/CodeBlock/index.scss +92 -0
- package/dist/eject-theme/components/CodeBlock/index.tsx +100 -0
- package/dist/eject-theme/components/CodeBlockRuntime/index.tsx +108 -0
- package/dist/eject-theme/components/CodeButtonGroup/CopyCodeButton.scss +23 -0
- package/dist/eject-theme/components/CodeButtonGroup/CopyCodeButton.tsx +75 -0
- package/dist/eject-theme/components/CodeButtonGroup/index.scss +62 -0
- package/dist/eject-theme/components/CodeButtonGroup/index.tsx +75 -0
- package/dist/eject-theme/components/DocContent/FallbackHeading.tsx +43 -0
- package/dist/eject-theme/components/DocContent/doc.scss +284 -0
- package/dist/eject-theme/components/DocContent/docComponents/a.tsx +6 -0
- package/dist/eject-theme/components/DocContent/docComponents/code.tsx +5 -0
- package/dist/eject-theme/components/DocContent/docComponents/hr.tsx +5 -0
- package/dist/eject-theme/components/DocContent/docComponents/img.tsx +6 -0
- package/dist/eject-theme/components/DocContent/docComponents/index.tsx +37 -0
- package/dist/eject-theme/components/DocContent/docComponents/list.tsx +13 -0
- package/dist/eject-theme/components/DocContent/docComponents/paragraph.tsx +13 -0
- package/dist/eject-theme/components/DocContent/docComponents/pre.tsx +27 -0
- package/dist/eject-theme/components/DocContent/docComponents/table.tsx +17 -0
- package/dist/eject-theme/components/DocContent/docComponents/title.tsx +32 -0
- package/dist/eject-theme/components/DocContent/index.tsx +39 -0
- package/dist/eject-theme/components/DocFooter/index.scss +14 -0
- package/dist/eject-theme/components/DocFooter/index.tsx +20 -0
- package/dist/eject-theme/components/EditLink/index.scss +11 -0
- package/dist/eject-theme/components/EditLink/index.tsx +19 -0
- package/dist/eject-theme/components/EditLink/useEditLink.ts +28 -0
- package/dist/eject-theme/components/HomeBackground/index.scss +14 -0
- package/dist/eject-theme/components/HomeBackground/index.tsx +18 -0
- package/dist/eject-theme/components/HomeBackground/useNavTransparent.tsx +44 -0
- package/dist/eject-theme/components/HomeFeature/index.scss +116 -0
- package/dist/eject-theme/components/HomeFeature/index.tsx +85 -0
- package/dist/eject-theme/components/HomeFeature/useCardAnimation.tsx +125 -0
- package/dist/eject-theme/components/HomeFooter/index.scss +23 -0
- package/dist/eject-theme/components/HomeFooter/index.tsx +23 -0
- package/dist/eject-theme/components/HomeHero/index.scss +155 -0
- package/dist/eject-theme/components/HomeHero/index.tsx +118 -0
- package/dist/eject-theme/components/HoverGroup/index.scss +78 -0
- package/dist/eject-theme/components/HoverGroup/index.tsx +59 -0
- package/dist/eject-theme/components/HoverGroup/useHoverGroup.tsx +68 -0
- package/dist/eject-theme/components/LastUpdated/index.scss +7 -0
- package/dist/eject-theme/components/LastUpdated/index.tsx +18 -0
- package/dist/eject-theme/components/Link/index.scss +3 -0
- package/dist/eject-theme/components/Link/index.tsx +121 -0
- package/dist/eject-theme/components/Link/useLinkNavigate.ts +94 -0
- package/dist/eject-theme/components/Nav/NavMenu.scss +93 -0
- package/dist/eject-theme/components/Nav/NavMenu.tsx +150 -0
- package/dist/eject-theme/components/Nav/NavTitle.tsx +59 -0
- package/dist/eject-theme/components/Nav/hooks.tsx +170 -0
- package/dist/eject-theme/components/Nav/index.scss +101 -0
- package/dist/eject-theme/components/Nav/index.tsx +56 -0
- package/dist/eject-theme/components/NavHamburger/index.scss +35 -0
- package/dist/eject-theme/components/NavHamburger/index.tsx +63 -0
- package/dist/eject-theme/components/NavHamburger/useNavScreen.ts +43 -0
- package/dist/eject-theme/components/NavScreen/NavScreenAppearance.scss +26 -0
- package/dist/eject-theme/components/NavScreen/NavScreenAppearance.tsx +23 -0
- package/dist/eject-theme/components/NavScreen/NavScreenLangs.scss +44 -0
- package/dist/eject-theme/components/NavScreen/NavScreenLangs.tsx +46 -0
- package/dist/eject-theme/components/NavScreen/NavScreenMenu.scss +5 -0
- package/dist/eject-theme/components/NavScreen/NavScreenMenu.tsx +13 -0
- package/dist/eject-theme/components/NavScreen/NavScreenMenuItem.scss +59 -0
- package/dist/eject-theme/components/NavScreen/NavScreenMenuItem.tsx +149 -0
- package/dist/eject-theme/components/NavScreen/NavScreenMenuOthers.tsx +26 -0
- package/dist/eject-theme/components/NavScreen/NavScreenVersions.scss +49 -0
- package/dist/eject-theme/components/NavScreen/NavScreenVersions.tsx +48 -0
- package/dist/eject-theme/components/NavScreen/index.scss +37 -0
- package/dist/eject-theme/components/NavScreen/index.tsx +66 -0
- package/dist/eject-theme/components/Outline/ScrollToTop.scss +13 -0
- package/dist/eject-theme/components/Outline/ScrollToTop.tsx +51 -0
- package/dist/eject-theme/components/Outline/index.scss +59 -0
- package/dist/eject-theme/components/Outline/index.tsx +35 -0
- package/dist/eject-theme/components/Overview/OverviewGroup.scss +132 -0
- package/dist/eject-theme/components/Overview/OverviewGroup.tsx +76 -0
- package/dist/eject-theme/components/Overview/icons/plugin.svg +3 -0
- package/dist/eject-theme/components/Overview/index.scss +75 -0
- package/dist/eject-theme/components/Overview/index.tsx +260 -0
- package/dist/eject-theme/components/Overview/utils.ts +94 -0
- package/dist/eject-theme/components/PackageManagerTabs/icons/Bun.tsx +101 -0
- package/dist/eject-theme/components/PackageManagerTabs/icons/Deno.tsx +18 -0
- package/dist/eject-theme/components/PackageManagerTabs/icons/Npm.tsx +16 -0
- package/dist/eject-theme/components/PackageManagerTabs/icons/Pnpm.tsx +22 -0
- package/dist/eject-theme/components/PackageManagerTabs/icons/Yarn.tsx +18 -0
- package/dist/eject-theme/components/PackageManagerTabs/index.tsx +260 -0
- package/dist/eject-theme/components/PageTabs/index.scss +60 -0
- package/dist/eject-theme/components/PageTabs/index.tsx +181 -0
- package/dist/eject-theme/components/PrevNextPage/index.scss +52 -0
- package/dist/eject-theme/components/PrevNextPage/index.tsx +55 -0
- package/dist/eject-theme/components/ReadPercent/ProgressCircle.tsx +57 -0
- package/dist/eject-theme/components/ReadPercent/index.scss +3 -0
- package/dist/eject-theme/components/ReadPercent/index.tsx +19 -0
- package/dist/eject-theme/components/ReadPercent/useReadPercent.ts +37 -0
- package/dist/eject-theme/components/Search/NoSearchResult.scss +20 -0
- package/dist/eject-theme/components/Search/NoSearchResult.tsx +20 -0
- package/dist/eject-theme/components/Search/SearchButton.scss +67 -0
- package/dist/eject-theme/components/Search/SearchButton.tsx +44 -0
- package/dist/eject-theme/components/Search/SearchPanel.scss +122 -0
- package/dist/eject-theme/components/Search/SearchPanel.tsx +556 -0
- package/dist/eject-theme/components/Search/SuggestItem.scss +95 -0
- package/dist/eject-theme/components/Search/SuggestItem.tsx +144 -0
- package/dist/eject-theme/components/Search/index.tsx +15 -0
- package/dist/eject-theme/components/Search/logic/Provider.ts +42 -0
- package/dist/eject-theme/components/Search/logic/providers/LocalProvider.ts +223 -0
- package/dist/eject-theme/components/Search/logic/search.ts +316 -0
- package/dist/eject-theme/components/Search/logic/types.ts +76 -0
- package/dist/eject-theme/components/Search/logic/util.test.ts +21 -0
- package/dist/eject-theme/components/Search/logic/util.ts +124 -0
- package/dist/eject-theme/components/Sidebar/SidebarDivider.scss +11 -0
- package/dist/eject-theme/components/Sidebar/SidebarDivider.tsx +23 -0
- package/dist/eject-theme/components/Sidebar/SidebarGroup.scss +3 -0
- package/dist/eject-theme/components/Sidebar/SidebarGroup.tsx +148 -0
- package/dist/eject-theme/components/Sidebar/SidebarItem.scss +89 -0
- package/dist/eject-theme/components/Sidebar/SidebarItem.tsx +131 -0
- package/dist/eject-theme/components/Sidebar/SidebarSectionHeader.scss +24 -0
- package/dist/eject-theme/components/Sidebar/SidebarSectionHeader.tsx +21 -0
- package/dist/eject-theme/components/Sidebar/index.tsx +89 -0
- package/dist/eject-theme/components/Sidebar/utils.ts +40 -0
- package/dist/eject-theme/components/SidebarMenu/index.scss +45 -0
- package/dist/eject-theme/components/SidebarMenu/index.tsx +137 -0
- package/dist/eject-theme/components/SidebarMenu/useClickOutside.ts +31 -0
- package/dist/eject-theme/components/SidebarMenu/useSidebarMenu.tsx +55 -0
- package/dist/eject-theme/components/SocialLinks/SocialLink.tsx +96 -0
- package/dist/eject-theme/components/SocialLinks/index.scss +39 -0
- package/dist/eject-theme/components/SocialLinks/index.tsx +67 -0
- package/dist/eject-theme/components/SourceCode/index.scss +34 -0
- package/dist/eject-theme/components/SourceCode/index.tsx +25 -0
- package/dist/eject-theme/components/Steps/index.scss +34 -0
- package/dist/eject-theme/components/Steps/index.tsx +6 -0
- package/dist/eject-theme/components/SvgWrapper/index.tsx +20 -0
- package/dist/eject-theme/components/SwitchAppearance/global.scss +15 -0
- package/dist/eject-theme/components/SwitchAppearance/index.scss +36 -0
- package/dist/eject-theme/components/SwitchAppearance/index.tsx +103 -0
- package/dist/eject-theme/components/Tabs/index.scss +88 -0
- package/dist/eject-theme/components/Tabs/index.tsx +210 -0
- package/dist/eject-theme/components/Tag/index.tsx +27 -0
- package/dist/eject-theme/components/Toc/TocItem.scss +35 -0
- package/dist/eject-theme/components/Toc/TocItem.tsx +53 -0
- package/dist/eject-theme/components/Toc/index.tsx +22 -0
- package/dist/index.d.ts +10 -192
- package/dist/index.js +2471 -1126
- package/dist/index.js.LICENSE.txt +10 -0
- package/dist/loader.js +38 -393
- package/dist/node/PluginDriver.d.ts +31 -0
- package/dist/node/auto-nav-sidebar/fixtures/docs/guide/c.d.ts +2 -0
- package/dist/node/auto-nav-sidebar/fixtures/docs-locales/en/guide/c.d.ts +2 -0
- package/dist/node/auto-nav-sidebar/fixtures/docs-locales/zh/guide/c.d.ts +2 -0
- package/dist/node/auto-nav-sidebar/index.d.ts +3 -0
- package/dist/node/auto-nav-sidebar/locales.d.ts +12 -0
- package/dist/node/auto-nav-sidebar/locales.test.d.ts +1 -0
- package/dist/node/auto-nav-sidebar/normalize.d.ts +3 -0
- package/dist/node/auto-nav-sidebar/type.d.ts +72 -0
- package/dist/node/auto-nav-sidebar/utils.d.ts +9 -0
- package/dist/node/auto-nav-sidebar/walk.d.ts +5 -0
- package/dist/node/auto-nav-sidebar/walk.test.d.ts +1 -0
- package/dist/node/build.d.ts +8 -0
- package/dist/node/constants.d.ts +20 -0
- package/dist/node/dev.d.ts +14 -0
- package/dist/node/eject.d.ts +13 -0
- package/dist/node/index.d.ts +5 -0
- package/dist/node/initRsbuild.d.ts +5 -0
- package/dist/node/last-updated/index.d.ts +5 -0
- package/dist/node/logger/hint.d.ts +19 -0
- package/dist/node/mdx/loader.d.ts +3 -0
- package/dist/node/mdx/options.d.ts +14 -0
- package/dist/node/mdx/processor.d.ts +20 -0
- package/dist/node/mdx/rehypePlugins/codeMeta.d.ts +3 -0
- package/dist/node/mdx/rehypePlugins/headerAnchor.d.ts +8 -0
- package/dist/node/mdx/rehypePlugins/headerAnchor.test.d.ts +1 -0
- package/dist/node/mdx/rehypePlugins/shiki.d.ts +4 -0
- package/dist/node/mdx/rehypePlugins/transformers/add-lang.d.ts +6 -0
- package/dist/node/mdx/rehypePlugins/transformers/add-line-numbers.d.ts +13 -0
- package/dist/node/mdx/rehypePlugins/transformers/add-title.d.ts +6 -0
- package/dist/node/mdx/rehypePlugins/transformers/add-wrap-code.d.ts +13 -0
- package/dist/node/mdx/rehypePlugins/transformers/index.d.ts +5 -0
- package/dist/node/mdx/rehypePlugins/transformers/meta-highlight.d.ts +25 -0
- package/dist/node/mdx/remarkPlugins/builtin.d.ts +10 -0
- package/dist/node/mdx/remarkPlugins/containerSyntax.d.ts +23 -0
- package/dist/node/mdx/remarkPlugins/containerSyntax.test.d.ts +1 -0
- package/dist/node/mdx/remarkPlugins/fileCodeBlock.d.ts +9 -0
- package/dist/node/mdx/remarkPlugins/fileCodeBlock.test.d.ts +1 -0
- package/dist/node/mdx/remarkPlugins/image.d.ts +3 -0
- package/dist/node/mdx/remarkPlugins/image.test.d.ts +1 -0
- package/dist/node/mdx/remarkPlugins/link.d.ts +16 -0
- package/dist/node/mdx/remarkPlugins/link.test.d.ts +1 -0
- package/dist/node/mdx/remarkPlugins/toc.d.ts +12 -0
- package/dist/node/mdx/types.d.ts +21 -0
- package/dist/node/medium-zoom/index.d.ts +11 -0
- package/dist/node/route/RoutePage.d.ts +17 -0
- package/dist/node/route/RouteService.d.ts +52 -0
- package/dist/node/route/RouteService.test.d.ts +1 -0
- package/dist/node/route/extractPageData.d.ts +12 -0
- package/dist/node/route/extractPageData.test.d.ts +1 -0
- package/dist/node/route/fixtures/basic/guide/c.d.ts +2 -0
- package/dist/node/route/normalizeRoutePath.d.ts +13 -0
- package/dist/node/route/normalizeRoutePath.test.d.ts +1 -0
- package/dist/node/runtimeModule/DEFAULT_I18N_TEXT.d.ts +128 -0
- package/dist/node/runtimeModule/globalStyles.d.ts +2 -0
- package/dist/node/runtimeModule/globalUIComponents.d.ts +2 -0
- package/dist/node/runtimeModule/i18n.d.ts +8 -0
- package/dist/node/runtimeModule/i18n.test.d.ts +1 -0
- package/dist/node/runtimeModule/pageData/createPageData.d.ts +8 -0
- package/dist/node/runtimeModule/pageData/rsbuildPlugin.d.ts +3 -0
- package/dist/node/runtimeModule/routeList.d.ts +2 -0
- package/dist/node/runtimeModule/searchHooks.d.ts +2 -0
- package/dist/node/runtimeModule/siteData/createSiteData.d.ts +4 -0
- package/dist/node/runtimeModule/siteData/normalizeThemeConfig.d.ts +2 -0
- package/dist/node/runtimeModule/siteData/rsbuildPlugin.d.ts +2 -0
- package/dist/node/runtimeModule/socialLinks.d.ts +2 -0
- package/dist/node/runtimeModule/types.d.ts +22 -0
- package/dist/node/serve.d.ts +10 -0
- package/dist/node/ssg/renderHtmlTemplate.d.ts +2 -0
- package/dist/node/ssg/renderPage.d.ts +2 -0
- package/dist/node/ssg/renderPageWorker.d.ts +9 -0
- package/dist/node/ssg/renderPages.d.ts +4 -0
- package/dist/node/ssg/rsbuildPluginCSR.d.ts +7 -0
- package/dist/node/ssg/rsbuildPluginSSG.d.ts +7 -0
- package/dist/node/ssg/ssgEnv.d.ts +10 -0
- package/dist/node/ssg-md/llms/emitLlmsTxt.d.ts +3 -0
- package/dist/node/ssg-md/llms/llmsTxt.d.ts +10 -0
- package/dist/node/ssg-md/react/index.d.ts +1 -0
- package/dist/node/ssg-md/react/reconciler.d.ts +18 -0
- package/dist/node/ssg-md/react/render.d.ts +1 -0
- package/dist/node/ssg-md/react/render.test.d.ts +1 -0
- package/dist/node/ssg-md/remarkSplitMdx.d.ts +39 -0
- package/dist/node/ssg-md/remarkSplitMdx.test.d.ts +4 -0
- package/dist/node/ssg-md/renderPage.d.ts +2 -0
- package/dist/node/ssg-md/renderPages.d.ts +2 -0
- package/dist/node/ssg-md/rsbuildPluginSSGMD.d.ts +7 -0
- package/dist/node/utils/applyReplaceRules.d.ts +2 -0
- package/dist/node/utils/checkLanguageParity.d.ts +5 -0
- package/dist/node/utils/checkLanguageParity.test.d.ts +1 -0
- package/dist/node/utils/createHash.d.ts +1 -0
- package/dist/node/utils/detectCustomIcon.d.ts +1 -0
- package/dist/node/utils/detectReactVersion.d.ts +3 -0
- package/dist/node/utils/escapeHeadingIds.d.ts +5 -0
- package/dist/node/utils/flattenMdxContent.d.ts +5 -0
- package/dist/node/utils/fs.d.ts +2 -0
- package/dist/node/utils/getImportAstNode.d.ts +3 -0
- package/dist/node/utils/getPageKey.d.ts +1 -0
- package/dist/node/utils/getSocialIcons.d.ts +2 -0
- package/dist/node/utils/index.d.ts +9 -0
- package/dist/node/utils/normalizePath.d.ts +3 -0
- package/dist/processor.js +4539 -0
- package/dist/renderPageWorker.js +196 -0
- package/dist/runtime/App.d.ts +0 -1
- package/dist/runtime/App.js +18 -18
- package/dist/runtime/ClientApp.d.ts +2 -2
- package/dist/runtime/ClientApp.js +21 -16
- package/dist/runtime/csrClientEntry.js +5 -5
- package/dist/runtime/initPageData.d.ts +3 -3
- package/dist/runtime/initPageData.js +33 -39
- package/dist/runtime/ssrClientEntry.js +17 -9
- package/dist/runtime/ssrMdServerEntry.d.ts +5 -0
- package/dist/runtime/ssrMdServerEntry.js +39 -0
- package/dist/runtime/ssrServerEntry.d.ts +2 -4
- package/dist/runtime/ssrServerEntry.js +40 -20
- package/dist/runtime.d.ts +2 -0
- package/dist/runtime.js +3 -0
- package/dist/shiki-transformers.d.ts +1 -0
- package/dist/shiki-transformers.js +120 -0
- package/dist/shiki-transformers.js.LICENSE.txt +5 -0
- package/dist/theme/assets/arrow-down.js +14 -0
- package/dist/theme/assets/arrow-right.js +14 -0
- package/dist/theme/assets/close.js +15 -0
- package/dist/theme/assets/copy.js +21 -0
- package/dist/theme/assets/down.js +14 -0
- package/dist/theme/assets/empty.js +24 -0
- package/dist/theme/assets/file.js +31 -0
- package/dist/theme/assets/github.js +13 -0
- package/dist/theme/assets/gitlab.js +13 -0
- package/dist/theme/assets/header.js +15 -0
- package/dist/theme/assets/jump.js +15 -0
- package/dist/theme/assets/loading.js +50 -0
- package/dist/theme/assets/menu.js +14 -0
- package/dist/theme/assets/moon.js +33 -0
- package/dist/theme/assets/right.js +14 -0
- package/dist/theme/assets/search.js +16 -0
- package/dist/theme/assets/small-menu.js +19 -0
- package/dist/theme/assets/success.js +14 -0
- package/dist/theme/assets/sun.js +16 -0
- package/dist/theme/assets/title.js +15 -0
- package/dist/theme/assets/translator.js +14 -0
- package/dist/theme/assets/wrap.js +15 -0
- package/dist/theme/assets/wrapped.js +15 -0
- package/dist/theme/components/Badge/index.css +53 -0
- package/dist/theme/components/Badge/index.d.ts +44 -0
- package/dist/theme/components/Badge/index.js +11 -0
- package/dist/theme/components/Banner/index.css +47 -0
- package/dist/theme/components/Banner/index.d.ts +48 -0
- package/dist/theme/components/Banner/index.js +48 -0
- package/dist/theme/components/Button/index.css +63 -0
- package/dist/theme/components/Button/index.d.ts +15 -0
- package/dist/theme/components/Button/index.js +16 -0
- package/dist/theme/components/Callout/index.css +234 -0
- package/dist/theme/components/Callout/index.d.ts +26 -0
- package/dist/theme/components/Callout/index.js +33 -0
- package/dist/theme/components/CodeBlock/index.css +90 -0
- package/dist/theme/components/CodeBlock/index.d.ts +54 -0
- package/dist/theme/components/CodeBlock/index.js +32 -0
- package/dist/theme/components/CodeBlockRuntime/index.d.ts +14 -0
- package/dist/theme/components/CodeBlockRuntime/index.js +64 -0
- package/dist/theme/components/CodeButtonGroup/CopyCodeButton.css +24 -0
- package/dist/theme/components/CodeButtonGroup/CopyCodeButton.d.ts +4 -0
- package/dist/theme/components/CodeButtonGroup/CopyCodeButton.js +52 -0
- package/dist/theme/components/CodeButtonGroup/index.css +61 -0
- package/dist/theme/components/CodeButtonGroup/index.d.ts +20 -0
- package/dist/theme/components/CodeButtonGroup/index.js +51 -0
- package/dist/theme/components/DocContent/FallbackHeading.d.ts +11 -0
- package/dist/theme/components/DocContent/FallbackHeading.js +32 -0
- package/dist/theme/components/DocContent/doc.css +231 -0
- package/dist/theme/components/DocContent/docComponents/a.d.ts +2 -0
- package/dist/theme/components/DocContent/docComponents/a.js +6 -0
- package/dist/theme/components/DocContent/docComponents/code.d.ts +2 -0
- package/dist/theme/components/DocContent/docComponents/code.js +7 -0
- package/dist/theme/components/DocContent/docComponents/hr.d.ts +2 -0
- package/dist/theme/components/DocContent/docComponents/hr.js +5 -0
- package/dist/theme/components/DocContent/docComponents/img.d.ts +2 -0
- package/dist/theme/components/DocContent/docComponents/img.js +7 -0
- package/dist/theme/components/DocContent/docComponents/index.d.ts +25 -0
- package/dist/theme/components/DocContent/docComponents/index.js +35 -0
- package/dist/theme/components/DocContent/docComponents/list.d.ts +4 -0
- package/dist/theme/components/DocContent/docComponents/list.js +11 -0
- package/dist/theme/components/DocContent/docComponents/paragraph.d.ts +4 -0
- package/dist/theme/components/DocContent/docComponents/paragraph.js +11 -0
- package/dist/theme/components/DocContent/docComponents/pre.d.ts +3 -0
- package/dist/theme/components/DocContent/docComponents/pre.js +16 -0
- package/dist/theme/components/DocContent/docComponents/table.d.ts +5 -0
- package/dist/theme/components/DocContent/docComponents/table.js +14 -0
- package/dist/theme/components/DocContent/docComponents/title.d.ts +7 -0
- package/dist/theme/components/DocContent/docComponents/title.js +45 -0
- package/dist/theme/components/DocContent/index.d.ts +6 -0
- package/dist/theme/components/DocContent/index.js +30 -0
- package/dist/theme/components/DocFooter/index.css +17 -0
- package/dist/theme/components/DocFooter/index.d.ts +2 -0
- package/dist/theme/components/DocFooter/index.js +26 -0
- package/dist/theme/components/EditLink/index.css +12 -0
- package/dist/theme/components/EditLink/index.d.ts +2 -0
- package/dist/theme/components/EditLink/index.js +15 -0
- package/dist/theme/components/EditLink/useEditLink.d.ts +4 -0
- package/dist/theme/components/EditLink/useEditLink.js +17 -0
- package/dist/theme/components/HomeBackground/index.css +13 -0
- package/dist/theme/components/HomeBackground/index.d.ts +3 -0
- package/dist/theme/components/HomeBackground/index.js +16 -0
- package/dist/theme/components/HomeBackground/useNavTransparent.d.ts +1 -0
- package/dist/theme/components/HomeBackground/useNavTransparent.js +35 -0
- package/dist/theme/components/HomeFeature/index.css +104 -0
- package/dist/theme/components/HomeFeature/index.d.ts +6 -0
- package/dist/theme/components/HomeFeature/index.js +75 -0
- package/dist/theme/components/HomeFeature/useCardAnimation.d.ts +11 -0
- package/dist/theme/components/HomeFeature/useCardAnimation.js +103 -0
- package/dist/theme/components/HomeFooter/index.css +26 -0
- package/dist/theme/components/HomeFooter/index.d.ts +2 -0
- package/dist/theme/components/HomeFooter/index.js +20 -0
- package/dist/theme/components/HomeHero/index.css +164 -0
- package/dist/theme/components/HomeHero/index.d.ts +8 -0
- package/dist/theme/components/HomeHero/index.js +108 -0
- package/dist/theme/components/HoverGroup/index.css +67 -0
- package/dist/theme/components/HoverGroup/index.d.ts +16 -0
- package/dist/theme/components/HoverGroup/index.js +29 -0
- package/dist/theme/components/HoverGroup/useHoverGroup.d.ts +14 -0
- package/dist/theme/components/HoverGroup/useHoverGroup.js +45 -0
- package/dist/theme/components/LastUpdated/index.css +8 -0
- package/dist/theme/components/LastUpdated/index.d.ts +2 -0
- package/dist/theme/components/LastUpdated/index.js +20 -0
- package/dist/theme/components/Link/index.css +4 -0
- package/dist/theme/components/Link/index.d.ts +18 -0
- package/dist/theme/components/Link/index.js +61 -0
- package/dist/theme/components/Link/useLinkNavigate.d.ts +12 -0
- package/dist/theme/components/Link/useLinkNavigate.js +59 -0
- package/dist/theme/components/Nav/NavMenu.css +95 -0
- package/dist/theme/components/Nav/NavMenu.d.ts +21 -0
- package/dist/theme/components/Nav/NavMenu.js +122 -0
- package/dist/theme/components/Nav/NavTitle.d.ts +1 -0
- package/dist/theme/components/Nav/NavTitle.js +57 -0
- package/dist/theme/components/Nav/hooks.d.ts +18 -0
- package/dist/theme/components/Nav/hooks.js +90 -0
- package/dist/theme/components/Nav/index.css +95 -0
- package/dist/theme/components/Nav/index.d.ts +9 -0
- package/dist/theme/components/Nav/index.js +51 -0
- package/dist/theme/components/NavHamburger/index.css +35 -0
- package/dist/theme/components/NavHamburger/index.d.ts +2 -0
- package/dist/theme/components/NavHamburger/index.js +65 -0
- package/dist/theme/components/NavHamburger/useNavScreen.d.ts +6 -0
- package/dist/theme/components/NavHamburger/useNavScreen.js +34 -0
- package/dist/theme/components/NavScreen/NavScreenAppearance.css +25 -0
- package/dist/theme/components/NavScreen/NavScreenAppearance.d.ts +2 -0
- package/dist/theme/components/NavScreen/NavScreenAppearance.js +27 -0
- package/dist/theme/components/NavScreen/NavScreenLangs.css +48 -0
- package/dist/theme/components/NavScreen/NavScreenLangs.d.ts +2 -0
- package/dist/theme/components/NavScreen/NavScreenLangs.js +52 -0
- package/dist/theme/components/NavScreen/NavScreenMenu.css +6 -0
- package/dist/theme/components/NavScreen/NavScreenMenu.d.ts +5 -0
- package/dist/theme/components/NavScreen/NavScreenMenu.js +11 -0
- package/dist/theme/components/NavScreen/NavScreenMenuItem.css +50 -0
- package/dist/theme/components/NavScreen/NavScreenMenuItem.d.ts +25 -0
- package/dist/theme/components/NavScreen/NavScreenMenuItem.js +110 -0
- package/dist/theme/components/NavScreen/NavScreenMenuOthers.d.ts +2 -0
- package/dist/theme/components/NavScreen/NavScreenMenuOthers.js +29 -0
- package/dist/theme/components/NavScreen/NavScreenVersions.css +51 -0
- package/dist/theme/components/NavScreen/NavScreenVersions.d.ts +2 -0
- package/dist/theme/components/NavScreen/NavScreenVersions.js +47 -0
- package/dist/theme/components/NavScreen/index.css +42 -0
- package/dist/theme/components/NavScreen/index.d.ts +7 -0
- package/dist/theme/components/NavScreen/index.js +63 -0
- package/dist/theme/components/Outline/ScrollToTop.css +14 -0
- package/dist/theme/components/Outline/ScrollToTop.d.ts +2 -0
- package/dist/theme/components/Outline/ScrollToTop.js +54 -0
- package/dist/theme/components/Outline/index.css +61 -0
- package/dist/theme/components/Outline/index.d.ts +2 -0
- package/dist/theme/components/Outline/index.js +38 -0
- package/dist/theme/components/Overview/OverviewGroup.css +124 -0
- package/dist/theme/components/Overview/OverviewGroup.d.ts +18 -0
- package/dist/theme/components/Overview/OverviewGroup.js +58 -0
- package/dist/theme/components/Overview/icons/plugin.js +17 -0
- package/dist/theme/components/Overview/index.css +70 -0
- package/dist/theme/components/Overview/index.d.ts +8 -0
- package/dist/theme/components/Overview/index.js +141 -0
- package/dist/theme/components/Overview/utils.d.ts +6 -0
- package/dist/theme/components/Overview/utils.js +34 -0
- package/dist/theme/components/PackageManagerTabs/icons/Bun.d.ts +2 -0
- package/dist/theme/components/PackageManagerTabs/icons/Bun.js +137 -0
- package/dist/theme/components/PackageManagerTabs/icons/Deno.d.ts +2 -0
- package/dist/theme/components/PackageManagerTabs/icons/Deno.js +15 -0
- package/dist/theme/components/PackageManagerTabs/icons/Npm.d.ts +2 -0
- package/dist/theme/components/PackageManagerTabs/icons/Npm.js +21 -0
- package/dist/theme/components/PackageManagerTabs/icons/Pnpm.d.ts +2 -0
- package/dist/theme/components/PackageManagerTabs/icons/Pnpm.js +21 -0
- package/dist/theme/components/PackageManagerTabs/icons/Yarn.d.ts +2 -0
- package/dist/theme/components/PackageManagerTabs/icons/Yarn.js +22 -0
- package/dist/theme/components/PackageManagerTabs/index.d.ts +31 -0
- package/dist/theme/components/PackageManagerTabs/index.js +163 -0
- package/dist/theme/components/PageTabs/index.css +37 -0
- package/dist/theme/components/PageTabs/index.d.ts +23 -0
- package/dist/theme/components/PageTabs/index.js +102 -0
- package/dist/theme/components/PrevNextPage/index.css +59 -0
- package/dist/theme/components/PrevNextPage/index.d.ts +2 -0
- package/dist/theme/components/PrevNextPage/index.js +64 -0
- package/dist/theme/components/ReadPercent/ProgressCircle.d.ts +12 -0
- package/dist/theme/components/ReadPercent/ProgressCircle.js +41 -0
- package/dist/theme/components/ReadPercent/index.css +4 -0
- package/dist/theme/components/ReadPercent/index.d.ts +4 -0
- package/dist/theme/components/ReadPercent/index.js +12 -0
- package/dist/theme/components/ReadPercent/useReadPercent.d.ts +1 -0
- package/dist/theme/components/ReadPercent/useReadPercent.js +36 -0
- package/dist/theme/components/Search/NoSearchResult.css +21 -0
- package/dist/theme/components/Search/NoSearchResult.d.ts +4 -0
- package/dist/theme/components/Search/NoSearchResult.js +36 -0
- package/dist/theme/components/Search/SearchButton.css +70 -0
- package/dist/theme/components/Search/SearchButton.d.ts +5 -0
- package/dist/theme/components/Search/SearchButton.js +58 -0
- package/dist/theme/components/Search/SearchPanel.css +116 -0
- package/dist/theme/components/Search/SearchPanel.d.ts +6 -0
- package/dist/theme/components/Search/SearchPanel.js +380 -0
- package/dist/theme/components/Search/SuggestItem.css +90 -0
- package/dist/theme/components/Search/SuggestItem.d.ts +11 -0
- package/dist/theme/components/Search/SuggestItem.js +115 -0
- package/dist/theme/components/Search/index.d.ts +1 -0
- package/dist/theme/components/Search/index.js +21 -0
- package/dist/theme/components/Search/logic/Provider.d.ts +29 -0
- package/dist/theme/components/Search/logic/Provider.js +13 -0
- package/dist/theme/components/Search/logic/providers/LocalProvider.d.ts +16 -0
- package/dist/theme/components/Search/logic/providers/LocalProvider.js +125 -0
- package/dist/theme/components/Search/logic/search.d.ts +11 -0
- package/dist/theme/components/Search/logic/search.js +191 -0
- package/dist/theme/components/Search/logic/types.d.ts +59 -0
- package/dist/theme/components/Search/logic/types.js +6 -0
- package/dist/theme/components/Search/logic/util.d.ts +16 -0
- package/dist/theme/components/Search/logic/util.js +74 -0
- package/dist/theme/components/Search/logic/util.test.d.ts +1 -0
- package/dist/theme/components/Search/logic/util.test.js +51 -0
- package/dist/theme/components/Sidebar/SidebarDivider.css +12 -0
- package/dist/theme/components/Sidebar/SidebarDivider.d.ts +6 -0
- package/dist/theme/components/Sidebar/SidebarDivider.js +13 -0
- package/dist/theme/components/Sidebar/SidebarGroup.css +4 -0
- package/dist/theme/components/Sidebar/SidebarGroup.d.ts +11 -0
- package/dist/theme/components/Sidebar/SidebarGroup.js +98 -0
- package/dist/theme/components/Sidebar/SidebarItem.css +79 -0
- package/dist/theme/components/Sidebar/SidebarItem.d.ts +21 -0
- package/dist/theme/components/Sidebar/SidebarItem.js +85 -0
- package/dist/theme/components/Sidebar/SidebarSectionHeader.css +25 -0
- package/dist/theme/components/Sidebar/SidebarSectionHeader.d.ts +5 -0
- package/dist/theme/components/Sidebar/SidebarSectionHeader.js +23 -0
- package/dist/theme/components/Sidebar/index.d.ts +6 -0
- package/dist/theme/components/Sidebar/index.js +45 -0
- package/dist/theme/components/Sidebar/utils.d.ts +5 -0
- package/dist/theme/components/Sidebar/utils.js +5 -0
- package/dist/theme/components/SidebarMenu/index.css +43 -0
- package/dist/theme/components/SidebarMenu/index.d.ts +7 -0
- package/dist/theme/components/SidebarMenu/index.js +103 -0
- package/dist/theme/components/SidebarMenu/useClickOutside.d.ts +2 -0
- package/dist/theme/components/SidebarMenu/useClickOutside.js +25 -0
- package/dist/theme/components/SidebarMenu/useSidebarMenu.d.ts +8 -0
- package/dist/theme/components/SidebarMenu/useSidebarMenu.js +55 -0
- package/dist/theme/components/SocialLinks/SocialLink.d.ts +11 -0
- package/dist/theme/components/SocialLinks/SocialLink.js +76 -0
- package/dist/theme/components/SocialLinks/index.css +44 -0
- package/dist/theme/components/SocialLinks/index.d.ts +5 -0
- package/dist/theme/components/SocialLinks/index.js +43 -0
- package/dist/theme/components/SourceCode/index.css +31 -0
- package/dist/theme/components/SourceCode/index.d.ts +7 -0
- package/dist/theme/components/SourceCode/index.js +31 -0
- package/dist/theme/components/Steps/index.css +35 -0
- package/dist/theme/components/Steps/index.d.ts +5 -0
- package/dist/theme/components/Steps/index.js +9 -0
- package/dist/theme/components/SvgWrapper/index.d.ts +8 -0
- package/dist/theme/components/SvgWrapper/index.js +13 -0
- package/dist/theme/components/SwitchAppearance/global.css +26 -0
- package/dist/theme/components/SwitchAppearance/index.css +27 -0
- package/dist/theme/components/SwitchAppearance/index.d.ts +5 -0
- package/dist/theme/components/SwitchAppearance/index.js +82 -0
- package/dist/theme/components/Tabs/index.css +84 -0
- package/dist/theme/components/Tabs/index.d.ts +36 -0
- package/dist/theme/components/Tabs/index.js +86 -0
- package/dist/theme/components/Tag/index.d.ts +3 -0
- package/dist/theme/components/Tag/index.js +26 -0
- package/dist/theme/components/Toc/TocItem.css +33 -0
- package/dist/theme/components/Toc/TocItem.d.ts +7 -0
- package/dist/theme/components/Toc/TocItem.js +38 -0
- package/dist/theme/components/Toc/index.d.ts +1 -0
- package/dist/theme/components/Toc/index.js +16 -0
- package/dist/theme/hooks/processTitleElement.d.ts +6 -0
- package/dist/theme/hooks/processTitleElement.js +22 -0
- package/dist/theme/hooks/useActiveAnchor.d.ts +8 -0
- package/dist/theme/hooks/useActiveAnchor.js +53 -0
- package/dist/theme/hooks/useDynamicToc.d.ts +11 -0
- package/dist/theme/hooks/useDynamicToc.js +110 -0
- package/dist/theme/index.d.ts +59 -0
- package/dist/theme/index.js +58 -0
- package/dist/theme/layout/DocLayout/index.css +191 -0
- package/dist/theme/layout/DocLayout/index.d.ts +16 -0
- package/dist/theme/layout/DocLayout/index.js +96 -0
- package/dist/theme/layout/HomeLayout/index.d.ts +9 -0
- package/dist/theme/layout/HomeLayout/index.js +21 -0
- package/dist/theme/layout/Layout/index.d.ts +12 -0
- package/dist/theme/layout/Layout/index.js +129 -0
- package/dist/theme/layout/NotFountLayout/index.css +56 -0
- package/dist/theme/layout/NotFountLayout/index.d.ts +2 -0
- package/dist/theme/layout/NotFountLayout/index.js +47 -0
- package/dist/theme/logic/mergeRefs.d.ts +1 -0
- package/dist/theme/logic/mergeRefs.js +9 -0
- package/dist/theme/logic/sideEffects.d.ts +1 -0
- package/dist/theme/logic/sideEffects.js +34 -0
- package/dist/theme/logic/useAppearance.d.ts +13 -0
- package/dist/theme/logic/useAppearance.js +64 -0
- package/dist/theme/logic/useFullTextSearch.d.ts +5 -0
- package/dist/theme/logic/useFullTextSearch.js +29 -0
- package/dist/theme/logic/useHandler.d.ts +6 -0
- package/dist/theme/logic/useHandler.js +7 -0
- package/dist/theme/logic/useMediaQuery.d.ts +4 -0
- package/dist/theme/logic/useMediaQuery.js +14 -0
- package/dist/theme/logic/usePrevNextPage.d.ts +5 -0
- package/dist/theme/logic/usePrevNextPage.js +26 -0
- package/dist/theme/logic/useRedirect4FirstVisit.d.ts +5 -0
- package/dist/theme/logic/useRedirect4FirstVisit.js +31 -0
- package/dist/theme/logic/useStorageValue.d.ts +5 -0
- package/dist/theme/logic/useStorageValue.js +50 -0
- package/dist/theme/logic/utils.d.ts +29 -0
- package/dist/theme/logic/utils.js +30 -0
- package/dist/theme/styles/base.css +57 -0
- package/dist/theme/styles/index.d.ts +12 -0
- package/dist/theme/styles/index.js +9 -0
- package/dist/theme/styles/preflight.css +146 -0
- package/dist/theme/styles/scrollbar.css +34 -0
- package/dist/theme/styles/shiki.css +69 -0
- package/dist/theme/styles/vars/base-vars.css +51 -0
- package/dist/theme/styles/vars/brand-vars.css +9 -0
- package/dist/theme/styles/vars/code-vars.css +16 -0
- package/dist/theme/styles/vars/home-vars.css +14 -0
- package/dist/theme/styles/vars/shiki-vars.css +32 -0
- package/index.html +2 -2
- package/meta-json-schema.json +424 -0
- package/nav-json-schema.json +118 -0
- package/package.json +75 -45
- package/static/MediumZoom.css +5 -0
- package/static/MediumZoom.tsx +29 -0
- package/dist/loader.d.ts +0 -85
- package/runtime.ts +0 -1
- package/theme.ts +0 -1
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/*! For license information please see shiki-transformers.js.LICENSE.txt */
|
|
2
|
+
const SHIKI_TRANSFORMER_ADD_LANG = 'shiki-transformer:add-lang';
|
|
3
|
+
function transformerAddLang() {
|
|
4
|
+
return {
|
|
5
|
+
name: SHIKI_TRANSFORMER_ADD_LANG,
|
|
6
|
+
pre (pre) {
|
|
7
|
+
const lang = this.options.lang;
|
|
8
|
+
if (lang.length > 0) pre.properties = {
|
|
9
|
+
...pre.properties,
|
|
10
|
+
lang
|
|
11
|
+
};
|
|
12
|
+
return pre;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
const SHIKI_TRANSFORMER_ADD_LINE_NUMBERS = 'shiki-transformer:add-line-numbers';
|
|
17
|
+
function hasLineNumbersInMeta(meta) {
|
|
18
|
+
if (!meta) return;
|
|
19
|
+
const kvList = meta.split(' ').filter(Boolean);
|
|
20
|
+
return kvList.includes('lineNumbers');
|
|
21
|
+
}
|
|
22
|
+
function transformerAddLineNumbers(options = {}) {
|
|
23
|
+
const { defaultShowLineNumbers = false } = options;
|
|
24
|
+
return {
|
|
25
|
+
name: SHIKI_TRANSFORMER_ADD_LINE_NUMBERS,
|
|
26
|
+
pre (pre) {
|
|
27
|
+
const metaHasLineNumbers = hasLineNumbersInMeta(this.options.meta?.__raw);
|
|
28
|
+
const shouldShowLineNumbers = metaHasLineNumbers ?? defaultShowLineNumbers;
|
|
29
|
+
if (shouldShowLineNumbers) pre.properties = {
|
|
30
|
+
...pre.properties,
|
|
31
|
+
lineNumbers: shouldShowLineNumbers
|
|
32
|
+
};
|
|
33
|
+
return pre;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
const SHIKI_TRANSFORMER_ADD_TITLE = 'shiki-transformer:add-title';
|
|
38
|
+
function parseTitleFromMeta(meta) {
|
|
39
|
+
if (!meta) return '';
|
|
40
|
+
const kvList = meta.split(' ').filter(Boolean);
|
|
41
|
+
for (const item of kvList){
|
|
42
|
+
const [k, v = ''] = item.split('=').filter(Boolean);
|
|
43
|
+
if ('title' === k && v.length > 0) return v.replace(/["'`]/g, '');
|
|
44
|
+
}
|
|
45
|
+
return '';
|
|
46
|
+
}
|
|
47
|
+
function transformerAddTitle() {
|
|
48
|
+
return {
|
|
49
|
+
name: SHIKI_TRANSFORMER_ADD_TITLE,
|
|
50
|
+
pre (pre) {
|
|
51
|
+
const title = parseTitleFromMeta(this.options.meta?.__raw);
|
|
52
|
+
if (title.length > 0) pre.properties = {
|
|
53
|
+
...pre.properties,
|
|
54
|
+
title
|
|
55
|
+
};
|
|
56
|
+
return pre;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const SHIKI_TRANSFORMER_ADD_WRAP_CODE = 'shiki-transformer:wrap-code';
|
|
61
|
+
function hasWrapCodeInMeta(meta) {
|
|
62
|
+
if (!meta) return;
|
|
63
|
+
const kvList = meta.split(' ').filter(Boolean);
|
|
64
|
+
return kvList.includes('wrapCode');
|
|
65
|
+
}
|
|
66
|
+
function transformerAddWrapCode(options = {}) {
|
|
67
|
+
const { defaultWrapCode = false } = options;
|
|
68
|
+
return {
|
|
69
|
+
name: SHIKI_TRANSFORMER_ADD_WRAP_CODE,
|
|
70
|
+
pre (pre) {
|
|
71
|
+
const metaHasWrapCode = hasWrapCodeInMeta(this.options.meta?.__raw);
|
|
72
|
+
const shouldWrapCode = metaHasWrapCode ?? defaultWrapCode;
|
|
73
|
+
if (shouldWrapCode) pre.properties = {
|
|
74
|
+
...pre.properties,
|
|
75
|
+
wrapCode: true
|
|
76
|
+
};
|
|
77
|
+
return pre;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* these codes are copied from @shiki/transformers, transformerMetaHighlight
|
|
83
|
+
* @source https://github.com/shikijs/shiki/blob/f5cf06f55a0b4643d7b02f15ee2c5033be6f1245/packages/transformers/src/transformers/meta-highlight.ts#L56
|
|
84
|
+
* @license MIT
|
|
85
|
+
*/ function parseMetaHighlightString(meta) {
|
|
86
|
+
if (!meta) return null;
|
|
87
|
+
const match = meta.match(/\{([\d,-]+)\}/);
|
|
88
|
+
if (!match) return null;
|
|
89
|
+
const lines = match[1].split(',').flatMap((v)=>{
|
|
90
|
+
const num = v.split('-').map((v)=>Number.parseInt(v, 10));
|
|
91
|
+
if (1 === num.length) return [
|
|
92
|
+
num[0]
|
|
93
|
+
];
|
|
94
|
+
return Array.from({
|
|
95
|
+
length: num[1] - num[0] + 1
|
|
96
|
+
}, (_, i)=>i + num[0]);
|
|
97
|
+
});
|
|
98
|
+
return lines;
|
|
99
|
+
}
|
|
100
|
+
const symbol = Symbol('highlighted-lines');
|
|
101
|
+
const SHIKI_TRANSFORMER_META_HIGHLIGHT = 'shiki-transformer:compatible-meta-highlight';
|
|
102
|
+
function transformerCompatibleMetaHighlight(options = {}) {
|
|
103
|
+
const { classActiveLine = 'highlighted', classActivePre = 'has-highlighted' } = options;
|
|
104
|
+
return {
|
|
105
|
+
name: '@shikijs/transformers:meta-highlight',
|
|
106
|
+
line (node, line) {
|
|
107
|
+
if (!this.options.meta?.__raw) return;
|
|
108
|
+
const meta = this.meta;
|
|
109
|
+
meta[symbol] ??= parseMetaHighlightString(this.options.meta.__raw);
|
|
110
|
+
const lines = meta[symbol] ?? [];
|
|
111
|
+
if (lines.includes(line)) this.addClassToHast(node, classActiveLine);
|
|
112
|
+
return node;
|
|
113
|
+
},
|
|
114
|
+
pre (hast) {
|
|
115
|
+
this.addClassToHast(hast, classActivePre);
|
|
116
|
+
return hast;
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
export { SHIKI_TRANSFORMER_ADD_LANG, SHIKI_TRANSFORMER_ADD_LINE_NUMBERS, SHIKI_TRANSFORMER_ADD_TITLE, SHIKI_TRANSFORMER_ADD_WRAP_CODE, SHIKI_TRANSFORMER_META_HIGHLIGHT, transformerAddLang, transformerAddLineNumbers, transformerAddTitle, transformerAddWrapCode, transformerCompatibleMetaHighlight };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgArrowDown = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
viewBox: "0 0 32 32",
|
|
7
|
+
...props,
|
|
8
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
var arrow_down = SvgArrowDown;
|
|
14
|
+
export { arrow_down as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgArrowRight = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
viewBox: "0 0 32 32",
|
|
7
|
+
...props,
|
|
8
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "M22 16 12 26l-1.4-1.4 8.6-8.6-8.6-8.6L12 6z"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
var arrow_right = SvgArrowRight;
|
|
14
|
+
export { arrow_right as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgClose = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 24,
|
|
6
|
+
height: 24,
|
|
7
|
+
viewBox: "0 0 32 32",
|
|
8
|
+
...props,
|
|
9
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M24 9.4 22.6 8 16 14.6 9.4 8 8 9.4l6.6 6.6L8 22.6 9.4 24l6.6-6.6 6.6 6.6 1.4-1.4-6.6-6.6z"
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
var assets_close = SvgClose;
|
|
15
|
+
export { assets_close as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgCopy = (props)=>/*#__PURE__*/ jsxs("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 32,
|
|
6
|
+
height: 32,
|
|
7
|
+
viewBox: "0 0 30 30",
|
|
8
|
+
...props,
|
|
9
|
+
children: [
|
|
10
|
+
/*#__PURE__*/ jsx("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
d: "M28 10v18H10V10zm0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2"
|
|
13
|
+
}),
|
|
14
|
+
/*#__PURE__*/ jsx("path", {
|
|
15
|
+
fill: "currentColor",
|
|
16
|
+
d: "M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"
|
|
17
|
+
})
|
|
18
|
+
]
|
|
19
|
+
});
|
|
20
|
+
var copy = SvgCopy;
|
|
21
|
+
export { copy as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgDown = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
viewBox: "0 0 32 32",
|
|
7
|
+
...props,
|
|
8
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
var down = SvgDown;
|
|
14
|
+
export { down as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgEmpty = (props)=>/*#__PURE__*/ jsxs("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 48,
|
|
6
|
+
height: 48,
|
|
7
|
+
fill: "none",
|
|
8
|
+
viewBox: "0 0 48 48",
|
|
9
|
+
...props,
|
|
10
|
+
children: [
|
|
11
|
+
/*#__PURE__*/ jsx("path", {
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
strokeWidth: 4,
|
|
14
|
+
d: "M24 5v6m7 1 4-4m-18 4-4-4m27 33H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"
|
|
15
|
+
}),
|
|
16
|
+
/*#__PURE__*/ jsx("path", {
|
|
17
|
+
stroke: "currentColor",
|
|
18
|
+
strokeWidth: 4,
|
|
19
|
+
d: "M41.5 30H28s-1 3-4 3-4-3-4-3H6.5"
|
|
20
|
+
})
|
|
21
|
+
]
|
|
22
|
+
});
|
|
23
|
+
var empty = SvgEmpty;
|
|
24
|
+
export { empty as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgFile = (props)=>/*#__PURE__*/ jsxs("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 24,
|
|
6
|
+
height: 24,
|
|
7
|
+
viewBox: "0 0 32 32",
|
|
8
|
+
...props,
|
|
9
|
+
children: [
|
|
10
|
+
/*#__PURE__*/ jsx("circle", {
|
|
11
|
+
cx: 22,
|
|
12
|
+
cy: 24,
|
|
13
|
+
r: 2,
|
|
14
|
+
fill: "currentColor"
|
|
15
|
+
}),
|
|
16
|
+
/*#__PURE__*/ jsx("path", {
|
|
17
|
+
fill: "none",
|
|
18
|
+
d: "M22 28a4 4 0 1 1 4-4 4.004 4.004 0 0 1-4 4m0-6a2 2 0 1 0 2 2 2.003 2.003 0 0 0-2-2"
|
|
19
|
+
}),
|
|
20
|
+
/*#__PURE__*/ jsx("path", {
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
d: "M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.521A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.479L30 24ZM22 28a4 4 0 1 1 4-4 4.005 4.005 0 0 1-4 4"
|
|
23
|
+
}),
|
|
24
|
+
/*#__PURE__*/ jsx("path", {
|
|
25
|
+
fill: "currentColor",
|
|
26
|
+
d: "M12 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6v4h2v-6a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h4Zm6-23.6 5.6 5.6H18Z"
|
|
27
|
+
})
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
var file = SvgFile;
|
|
31
|
+
export { file as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgGithub = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
...props,
|
|
7
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
var github = SvgGithub;
|
|
13
|
+
export { github as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgGitlab = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
...props,
|
|
7
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
d: "m21.94 13.11-1.05-3.22c0-.03-.01-.06-.02-.09l-2.11-6.48a.86.86 0 0 0-.8-.57c-.36 0-.68.25-.79.58l-2 6.17H8.84L6.83 3.33a.85.85 0 0 0-.79-.58c-.37 0-.69.25-.8.58L3.13 9.82v.01l-1.07 3.28c-.16.5.01 1.04.44 1.34l9.22 6.71c.17.12.39.12.56-.01l9.22-6.7c.43-.3.6-.84.44-1.34M8.15 10.45l2.57 7.91-6.17-7.91m8.73 7.92 2.47-7.59.1-.33h3.61l-5.59 7.16m4.1-13.67 1.81 5.56h-3.62m-1.3.95-1.79 5.51L12 19.24l-2.86-8.79M6.03 3.94 7.84 9.5H4.23m-1.18 4.19c-.09-.07-.13-.19-.09-.29l.79-2.43 5.82 7.45m11.38-4.73-6.51 4.73.02-.03 5.79-7.42.79 2.43c.04.1 0 .22-.09.29"
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
var gitlab = SvgGitlab;
|
|
13
|
+
export { gitlab as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgHeader = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 24,
|
|
6
|
+
height: 24,
|
|
7
|
+
viewBox: "0 0 32 32",
|
|
8
|
+
...props,
|
|
9
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M28 12v-2h-6V4h-2v6h-8V4h-2v6H4v2h6v8H4v2h6v6h2v-6h8v6h2v-6h6v-2h-6v-8Zm-8 8h-8v-8h8Z"
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
var header = SvgHeader;
|
|
15
|
+
export { header as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgJump = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 24,
|
|
6
|
+
height: 24,
|
|
7
|
+
viewBox: "0 0 32 32",
|
|
8
|
+
...props,
|
|
9
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M13.414 17.586 18 22.172V8H8V6h10a2 2 0 0 1 2 2v14.172l4.586-4.586L26 19l-7 7-7-7Z"
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
var jump = SvgJump;
|
|
15
|
+
export { jump as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgLoading = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
width: 32,
|
|
5
|
+
height: 32,
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
...props,
|
|
8
|
+
children: /*#__PURE__*/ jsxs("g", {
|
|
9
|
+
fill: "none",
|
|
10
|
+
stroke: "var(--rp-c-brand)",
|
|
11
|
+
strokeLinecap: "round",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
children: [
|
|
14
|
+
/*#__PURE__*/ jsx("path", {
|
|
15
|
+
strokeDasharray: 60,
|
|
16
|
+
strokeDashoffset: 60,
|
|
17
|
+
strokeOpacity: 0.3,
|
|
18
|
+
d: "M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Z",
|
|
19
|
+
children: /*#__PURE__*/ jsx("animate", {
|
|
20
|
+
fill: "freeze",
|
|
21
|
+
attributeName: "stroke-dashoffset",
|
|
22
|
+
dur: "1.3s",
|
|
23
|
+
values: "60;0"
|
|
24
|
+
})
|
|
25
|
+
}),
|
|
26
|
+
/*#__PURE__*/ jsxs("path", {
|
|
27
|
+
strokeDasharray: 15,
|
|
28
|
+
strokeDashoffset: 15,
|
|
29
|
+
d: "M12 3a9 9 0 0 1 9 9",
|
|
30
|
+
children: [
|
|
31
|
+
/*#__PURE__*/ jsx("animate", {
|
|
32
|
+
fill: "freeze",
|
|
33
|
+
attributeName: "stroke-dashoffset",
|
|
34
|
+
dur: "0.3s",
|
|
35
|
+
values: "15;0"
|
|
36
|
+
}),
|
|
37
|
+
/*#__PURE__*/ jsx("animateTransform", {
|
|
38
|
+
attributeName: "transform",
|
|
39
|
+
dur: "1.5s",
|
|
40
|
+
repeatCount: "indefinite",
|
|
41
|
+
type: "rotate",
|
|
42
|
+
values: "0 12 12;360 12 12"
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
})
|
|
46
|
+
]
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
var loading = SvgLoading;
|
|
50
|
+
export { loading as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgMenu = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
viewBox: "0 0 32 32",
|
|
7
|
+
...props,
|
|
8
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "M4 6h24v2H4zm0 18h24v2H4zm0-12h24v2H4zm0 6h24v2H4z"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
var menu = SvgMenu;
|
|
14
|
+
export { menu as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgMoon = (props)=>/*#__PURE__*/ jsxs("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 20,
|
|
6
|
+
height: 20,
|
|
7
|
+
fill: "none",
|
|
8
|
+
viewBox: "0 0 20 20",
|
|
9
|
+
...props,
|
|
10
|
+
children: [
|
|
11
|
+
/*#__PURE__*/ jsx("g", {
|
|
12
|
+
clipPath: "url(#moon_svg__a)",
|
|
13
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
14
|
+
fill: "currentColor",
|
|
15
|
+
stroke: "currentColor",
|
|
16
|
+
strokeLinejoin: "round",
|
|
17
|
+
strokeWidth: 1.667,
|
|
18
|
+
d: "M11.688 1.838a5.303 5.303 0 1 0 6.474 6.474q.169.82.17 1.688a8.333 8.333 0 1 1-6.644-8.162Z"
|
|
19
|
+
})
|
|
20
|
+
}),
|
|
21
|
+
/*#__PURE__*/ jsx("defs", {
|
|
22
|
+
children: /*#__PURE__*/ jsx("clipPath", {
|
|
23
|
+
id: "moon_svg__a",
|
|
24
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
25
|
+
fill: "currentColor",
|
|
26
|
+
d: "M0 0h20v20H0z"
|
|
27
|
+
})
|
|
28
|
+
})
|
|
29
|
+
})
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
var moon = SvgMoon;
|
|
33
|
+
export { moon as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgRight = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
width: 32,
|
|
5
|
+
height: 32,
|
|
6
|
+
viewBox: "0 0 32 32",
|
|
7
|
+
...props,
|
|
8
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "M10 6v2h12.59L6 24.59 7.41 26 24 9.41V22h2V6z"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
var right = SvgRight;
|
|
14
|
+
export { right as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgSearch = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: "1em",
|
|
6
|
+
height: "1em",
|
|
7
|
+
fill: "none",
|
|
8
|
+
viewBox: "0 0 20 21",
|
|
9
|
+
...props,
|
|
10
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
d: "M8.333 1.913A6.667 6.667 0 0 1 15 8.58c0 1.54-.525 2.957-1.402 4.085l4.49 4.492a.834.834 0 0 1-1.177 1.178l-4.491-4.49a6.64 6.64 0 0 1-4.087 1.402 6.667 6.667 0 0 1 0-13.334m0 1.667a5 5 0 1 0 0 10 5 5 0 0 0 0-10"
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
var search = SvgSearch;
|
|
16
|
+
export { search as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgSmallMenu = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 21,
|
|
6
|
+
height: 21,
|
|
7
|
+
fill: "none",
|
|
8
|
+
viewBox: "0 0 21 21",
|
|
9
|
+
...props,
|
|
10
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeLinecap: "round",
|
|
13
|
+
strokeLinejoin: "round",
|
|
14
|
+
strokeWidth: 1.667,
|
|
15
|
+
d: "M3.645 5.225h13.333M3.645 10.225h13.333M3.645 15.225h13.333"
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
var small_menu = SvgSmallMenu;
|
|
19
|
+
export { small_menu as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgSuccess = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
width: 32,
|
|
5
|
+
height: 32,
|
|
6
|
+
viewBox: "0 0 30 30",
|
|
7
|
+
...props,
|
|
8
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
9
|
+
fill: "#49cd37",
|
|
10
|
+
d: "m13 24-9-9 1.414-1.414L13 21.171 26.586 7.586 28 9z"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
var success = SvgSuccess;
|
|
14
|
+
export { success as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgSun = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 24,
|
|
6
|
+
height: 24,
|
|
7
|
+
fill: "none",
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
...props,
|
|
10
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
d: "m7.001 15.848-1.226 1.226a.58.58 0 0 0 0 .818.58.58 0 0 0 .818 0l1.226-1.226a.58.58 0 0 0 0-.818.58.58 0 0 0-.818 0m-.352-8.735a.584.584 0 0 0 .825-.825L6.237 5.051a.584.584 0 0 0-.825.825zM5.011 11.07h-1.75a.584.584 0 0 0 0 1.167h1.75c.324 0 .584-.26.584-.583a.585.585 0 0 0-.584-.584m7.003-5.835c.324 0 .584-.26.584-.584V2.9a.58.58 0 0 0-.584-.584.58.58 0 0 0-.583.583V4.65c0 .323.262.584.583.584m5.616 1.621 1.226-1.225a.58.58 0 0 0 0-.818.58.58 0 0 0-.818 0l-1.226 1.225a.58.58 0 0 0 0 .818.576.576 0 0 0 .818 0m3.138 4.214h-1.75a.58.58 0 0 0-.584.584c0 .324.26.584.583.584h1.751a.584.584 0 1 0 0-1.167m-3.389 5.124a.584.584 0 0 0-.825.825l1.238 1.238a.584.584 0 0 0 .825-.826zm-5.365-9.795a5.256 5.256 0 0 0-5.257 5.258 5.256 5.256 0 0 0 5.257 5.257 5.256 5.256 0 0 0 5.257-5.257 5.256 5.256 0 0 0-5.257-5.258m0 11.675a.58.58 0 0 0-.583.583v1.751a.582.582 0 1 0 1.167 0v-1.75a.584.584 0 0 0-.584-.584"
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
var sun = SvgSun;
|
|
16
|
+
export { sun as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgTitle = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 24,
|
|
6
|
+
height: 24,
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
...props,
|
|
9
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M4 4a2 2 0 0 1 2-2h8a1 1 0 0 1 .707.293l5 5A1 1 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm13.586 4L14 4.414V8zM12 4H6v16h12V10h-5a1 1 0 0 1-1-1z"
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
var title = SvgTitle;
|
|
15
|
+
export { title as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgTranslator = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
width: 18,
|
|
5
|
+
height: 18,
|
|
6
|
+
viewBox: "0 0 32 32",
|
|
7
|
+
...props,
|
|
8
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "M27.85 29H30l-6-15h-2.35l-6 15h2.15l1.6-4h6.85zm-7.65-6 2.62-6.56L25.45 23zM18 7V5h-7V2H9v3H2v2h10.74a14.7 14.7 0 0 1-3.19 6.18A13.5 13.5 0 0 1 7.26 9h-2.1a16.5 16.5 0 0 0 3 5.58A16.8 16.8 0 0 1 3 18l.75 1.86A18.5 18.5 0 0 0 9.53 16a16.9 16.9 0 0 0 5.76 3.84L16 18a14.5 14.5 0 0 1-5.12-3.37A17.64 17.64 0 0 0 14.8 7z"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
var translator = SvgTranslator;
|
|
14
|
+
export { translator as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgWrap = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 32,
|
|
6
|
+
height: 32,
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
...props,
|
|
9
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M16 7H3V5h13zM3 19h13v-2H3zm19-7-4-3v2H3v2h15v2z"
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
var wrap = SvgWrap;
|
|
15
|
+
export { wrap as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const SvgWrapped = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 32,
|
|
6
|
+
height: 32,
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
...props,
|
|
9
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
10
|
+
fill: "#22a041",
|
|
11
|
+
d: "M21 5H3v2h18zM3 19h7v-2H3zm0-6h15c1 0 2 .43 2 2s-1 2-2 2h-2v-2l-4 3 4 3v-2h2c2.95 0 4-1.27 4-4 0-2.72-1-4-4-4H3z"
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
var wrapped = SvgWrapped;
|
|
15
|
+
export { wrapped as default };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.rp-badge {
|
|
2
|
+
border-radius: var(--rp-radius-small);
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: .25rem;
|
|
6
|
+
height: 1.5rem;
|
|
7
|
+
padding: .5rem;
|
|
8
|
+
font-size: .75rem;
|
|
9
|
+
font-weight: 500;
|
|
10
|
+
transition: color .25s;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.rp-badge--tip {
|
|
15
|
+
color: var(--rp-container-tip-text);
|
|
16
|
+
background-color: var(--rp-container-tip-bg);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.rp-badge--info {
|
|
20
|
+
color: var(--rp-container-info-text);
|
|
21
|
+
background-color: var(--rp-container-info-bg);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.rp-badge--warning {
|
|
25
|
+
color: var(--rp-container-warning-text);
|
|
26
|
+
background-color: var(--rp-container-warning-bg);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.rp-badge--danger {
|
|
30
|
+
color: var(--rp-container-danger-text);
|
|
31
|
+
background-color: var(--rp-container-danger-bg);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.rp-badge--outline {
|
|
35
|
+
border: 1px solid;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.rp-badge--outline.rp-badge--tip {
|
|
39
|
+
border-color: var(--rp-container-tip-border);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.rp-badge--outline.rp-badge--info {
|
|
43
|
+
border-color: var(--rp-container-info-border);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.rp-badge--outline.rp-badge--warning {
|
|
47
|
+
border-color: var(--rp-container-warning-border);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.rp-badge--outline.rp-badge--danger {
|
|
51
|
+
border-color: var(--rp-container-danger-border);
|
|
52
|
+
}
|
|
53
|
+
|