@vx-oss/docs-react 1.0.3
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/LICENSE +21 -0
- package/README.md +5 -0
- package/css/aspen.css +39 -0
- package/css/black.css +39 -0
- package/css/catppuccin.css +49 -0
- package/css/dusk.css +47 -0
- package/css/emerald.css +39 -0
- package/css/generated/docs.css +1 -0
- package/css/generated/flux.css +1 -0
- package/css/generated/glass.css +1 -0
- package/css/generated/home.css +1 -0
- package/css/generated/notebook.css +1 -0
- package/css/generated/shared.css +1 -0
- package/css/lib/base.css +296 -0
- package/css/lib/default-colors.css +51 -0
- package/css/lib/shiki.css +108 -0
- package/css/neutral.css +7 -0
- package/css/ocean.css +44 -0
- package/css/preset-legacy.css +43 -0
- package/css/preset.css +11 -0
- package/css/purple.css +39 -0
- package/css/ruby.css +39 -0
- package/css/shadcn.css +36 -0
- package/css/solar.css +65 -0
- package/css/style.css +9 -0
- package/css/vitepress.css +72 -0
- package/dist/.translations/index.d.ts +55 -0
- package/dist/.translations/keys.js +55 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/components/accordion.d.ts +10 -0
- package/dist/components/accordion.js +68 -0
- package/dist/components/banner.d.ts +25 -0
- package/dist/components/banner.js +85 -0
- package/dist/components/callout.d.ts +21 -0
- package/dist/components/callout.js +60 -0
- package/dist/components/card.d.ts +13 -0
- package/dist/components/card.js +39 -0
- package/dist/components/codeblock.d.ts +45 -0
- package/dist/components/codeblock.js +126 -0
- package/dist/components/codeblock.rsc.d.ts +15 -0
- package/dist/components/codeblock.rsc.js +22 -0
- package/dist/components/dialog/search-algolia.d.ts +27 -0
- package/dist/components/dialog/search-algolia.js +64 -0
- package/dist/components/dialog/search-default.d.ts +29 -0
- package/dist/components/dialog/search-default.js +66 -0
- package/dist/components/dialog/search-orama.d.ts +32 -0
- package/dist/components/dialog/search-orama.js +69 -0
- package/dist/components/dialog/search.d.ts +76 -0
- package/dist/components/dialog/search.js +351 -0
- package/dist/components/dynamic-codeblock.core.d.ts +26 -0
- package/dist/components/dynamic-codeblock.core.js +51 -0
- package/dist/components/dynamic-codeblock.d.ts +8 -0
- package/dist/components/dynamic-codeblock.js +17 -0
- package/dist/components/files.d.ts +21 -0
- package/dist/components/files.js +40 -0
- package/dist/components/github-info.d.ts +20 -0
- package/dist/components/github-info.js +75 -0
- package/dist/components/heading.d.ts +9 -0
- package/dist/components/heading.js +38 -0
- package/dist/components/image-zoom.d.ts +18 -0
- package/dist/components/image-zoom.js +32 -0
- package/dist/components/image-zoom2.css +71 -0
- package/dist/components/inline-toc.d.ts +10 -0
- package/dist/components/inline-toc.js +28 -0
- package/dist/components/sidebar/base.d.ts +85 -0
- package/dist/components/sidebar/base.js +277 -0
- package/dist/components/sidebar/link-item.d.ts +12 -0
- package/dist/components/sidebar/link-item.js +37 -0
- package/dist/components/sidebar/page-tree.d.ts +20 -0
- package/dist/components/sidebar/page-tree.js +69 -0
- package/dist/components/sidebar/tabs/dropdown.d.ts +15 -0
- package/dist/components/sidebar/tabs/dropdown.js +83 -0
- package/dist/components/sidebar/tabs/index.d.ts +8 -0
- package/dist/components/sidebar/tabs/index.js +46 -0
- package/dist/components/steps.d.ts +10 -0
- package/dist/components/steps.js +16 -0
- package/dist/components/tabs.d.ts +33 -0
- package/dist/components/tabs.js +95 -0
- package/dist/components/toc/clerk.d.ts +11 -0
- package/dist/components/toc/clerk.js +227 -0
- package/dist/components/toc/default.d.ts +13 -0
- package/dist/components/toc/default.js +260 -0
- package/dist/components/toc/index.d.ts +10 -0
- package/dist/components/toc/index.js +45 -0
- package/dist/components/type-table.d.ts +37 -0
- package/dist/components/type-table.js +117 -0
- package/dist/components/ui/accordion.d.ts +10 -0
- package/dist/components/ui/accordion.js +42 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/button.js +20 -0
- package/dist/components/ui/collapsible.d.ts +11 -0
- package/dist/components/ui/collapsible.js +21 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/navigation-menu.js +41 -0
- package/dist/components/ui/popover.d.ts +9 -0
- package/dist/components/ui/popover.js +20 -0
- package/dist/components/ui/scroll-area.d.ts +9 -0
- package/dist/components/ui/scroll-area.js +34 -0
- package/dist/components/ui/tabs.d.ts +23 -0
- package/dist/components/ui/tabs.js +102 -0
- package/dist/contexts/i18n.d.ts +34 -0
- package/dist/contexts/i18n.js +37 -0
- package/dist/contexts/search.d.ts +64 -0
- package/dist/contexts/search.js +68 -0
- package/dist/contexts/tree.d.ts +29 -0
- package/dist/contexts/tree.js +91 -0
- package/dist/i18n.d.ts +15 -0
- package/dist/i18n.js +38 -0
- package/dist/layouts/docs/client.d.ts +33 -0
- package/dist/layouts/docs/client.js +94 -0
- package/dist/layouts/docs/index.d.ts +32 -0
- package/dist/layouts/docs/index.js +23 -0
- package/dist/layouts/docs/page/index.d.ts +76 -0
- package/dist/layouts/docs/page/index.js +124 -0
- package/dist/layouts/docs/page/slots/breadcrumb.d.ts +7 -0
- package/dist/layouts/docs/page/slots/breadcrumb.js +44 -0
- package/dist/layouts/docs/page/slots/container.d.ts +5 -0
- package/dist/layouts/docs/page/slots/container.js +22 -0
- package/dist/layouts/docs/page/slots/footer.d.ts +16 -0
- package/dist/layouts/docs/page/slots/footer.js +56 -0
- package/dist/layouts/docs/page/slots/toc.d.ts +47 -0
- package/dist/layouts/docs/page/slots/toc.js +182 -0
- package/dist/layouts/docs/slots/container.d.ts +5 -0
- package/dist/layouts/docs/slots/container.js +36 -0
- package/dist/layouts/docs/slots/header.d.ts +5 -0
- package/dist/layouts/docs/slots/header.js +38 -0
- package/dist/layouts/docs/slots/sidebar.d.ts +22 -0
- package/dist/layouts/docs/slots/sidebar.js +268 -0
- package/dist/layouts/flux/index.d.ts +61 -0
- package/dist/layouts/flux/index.js +146 -0
- package/dist/layouts/flux/page/index.d.ts +67 -0
- package/dist/layouts/flux/page/index.js +104 -0
- package/dist/layouts/flux/page/slots/breadcrumb.d.ts +7 -0
- package/dist/layouts/flux/page/slots/breadcrumb.js +44 -0
- package/dist/layouts/flux/page/slots/container.d.ts +5 -0
- package/dist/layouts/flux/page/slots/container.js +22 -0
- package/dist/layouts/flux/page/slots/footer.d.ts +16 -0
- package/dist/layouts/flux/page/slots/footer.js +56 -0
- package/dist/layouts/flux/page/slots/toc.d.ts +29 -0
- package/dist/layouts/flux/page/slots/toc.js +181 -0
- package/dist/layouts/flux/slots/container.d.ts +5 -0
- package/dist/layouts/flux/slots/container.js +13 -0
- package/dist/layouts/flux/slots/sidebar.d.ts +16 -0
- package/dist/layouts/flux/slots/sidebar.js +243 -0
- package/dist/layouts/flux/slots/tab-dropdown.d.ts +10 -0
- package/dist/layouts/flux/slots/tab-dropdown.js +88 -0
- package/dist/layouts/glass/index.d.ts +39 -0
- package/dist/layouts/glass/index.js +70 -0
- package/dist/layouts/glass/layout-tabs.js +54 -0
- package/dist/layouts/glass/page/index.d.ts +31 -0
- package/dist/layouts/glass/page/index.js +92 -0
- package/dist/layouts/glass/page/slots/breadcrumb.d.ts +7 -0
- package/dist/layouts/glass/page/slots/breadcrumb.js +44 -0
- package/dist/layouts/glass/page/slots/footer.d.ts +16 -0
- package/dist/layouts/glass/page/slots/footer.js +56 -0
- package/dist/layouts/glass/page/slots/toc.d.ts +19 -0
- package/dist/layouts/glass/page/slots/toc.js +108 -0
- package/dist/layouts/glass/slots/header.d.ts +6 -0
- package/dist/layouts/glass/slots/header.js +68 -0
- package/dist/layouts/glass/slots/sidebar.d.ts +21 -0
- package/dist/layouts/glass/slots/sidebar.js +267 -0
- package/dist/layouts/home/index.d.ts +27 -0
- package/dist/layouts/home/index.js +40 -0
- package/dist/layouts/home/navbar.d.ts +9 -0
- package/dist/layouts/home/navbar.js +34 -0
- package/dist/layouts/home/not-found.d.ts +7 -0
- package/dist/layouts/home/not-found.js +41 -0
- package/dist/layouts/home/slots/container.d.ts +5 -0
- package/dist/layouts/home/slots/container.js +13 -0
- package/dist/layouts/home/slots/header.d.ts +8 -0
- package/dist/layouts/home/slots/header.js +239 -0
- package/dist/layouts/notebook/client.d.ts +35 -0
- package/dist/layouts/notebook/client.js +69 -0
- package/dist/layouts/notebook/index.d.ts +26 -0
- package/dist/layouts/notebook/index.js +23 -0
- package/dist/layouts/notebook/page/index.d.ts +76 -0
- package/dist/layouts/notebook/page/index.js +124 -0
- package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +7 -0
- package/dist/layouts/notebook/page/slots/breadcrumb.js +44 -0
- package/dist/layouts/notebook/page/slots/container.d.ts +5 -0
- package/dist/layouts/notebook/page/slots/container.js +22 -0
- package/dist/layouts/notebook/page/slots/footer.d.ts +16 -0
- package/dist/layouts/notebook/page/slots/footer.js +56 -0
- package/dist/layouts/notebook/page/slots/toc.d.ts +47 -0
- package/dist/layouts/notebook/page/slots/toc.js +181 -0
- package/dist/layouts/notebook/slots/container.d.ts +5 -0
- package/dist/layouts/notebook/slots/container.js +38 -0
- package/dist/layouts/notebook/slots/header.d.ts +5 -0
- package/dist/layouts/notebook/slots/header.js +204 -0
- package/dist/layouts/notebook/slots/sidebar.d.ts +23 -0
- package/dist/layouts/notebook/slots/sidebar.js +240 -0
- package/dist/layouts/shared/client.d.ts +37 -0
- package/dist/layouts/shared/client.js +85 -0
- package/dist/layouts/shared/index.d.ts +169 -0
- package/dist/layouts/shared/index.js +98 -0
- package/dist/layouts/shared/page-actions.d.ts +27 -0
- package/dist/layouts/shared/page-actions.js +199 -0
- package/dist/layouts/shared/slots/language-select.d.ts +12 -0
- package/dist/layouts/shared/slots/language-select.js +43 -0
- package/dist/layouts/shared/slots/search-trigger.d.ts +13 -0
- package/dist/layouts/shared/slots/search-trigger.js +53 -0
- package/dist/layouts/shared/slots/theme-switch.d.ts +8 -0
- package/dist/layouts/shared/slots/theme-switch.js +70 -0
- package/dist/legacy/layout.d.ts +29 -0
- package/dist/legacy/layout.js +44 -0
- package/dist/legacy/sidebar.d.ts +14 -0
- package/dist/legacy/sidebar.js +34 -0
- package/dist/mdx.d.ts +44 -0
- package/dist/mdx.js +70 -0
- package/dist/mdx.server.d.ts +14 -0
- package/dist/mdx.server.js +20 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/controlled.d.ts +30 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/controlled.js +461 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/index.d.ts +3 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +6 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.js +17 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js +53 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js +25 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/element-tests.js +12 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js +45 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js +10 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js +57 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js +21 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js +14 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js +22 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-scale.js +27 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js +31 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js +75 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js +4 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/parse-position.js +7 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js +5 -0
- package/dist/og/takumi.d.ts +15 -0
- package/dist/og/takumi.js +91 -0
- package/dist/og.d.ts +16 -0
- package/dist/og.js +91 -0
- package/dist/page.d.ts +29 -0
- package/dist/page.js +33 -0
- package/dist/provider/astro.d.ts +29 -0
- package/dist/provider/astro.js +20 -0
- package/dist/provider/base.d.ts +48 -0
- package/dist/provider/base.js +73 -0
- package/dist/provider/next.d.ts +16 -0
- package/dist/provider/next.js +17 -0
- package/dist/provider/react-router.d.ts +16 -0
- package/dist/provider/react-router.js +17 -0
- package/dist/provider/tanstack.d.ts +16 -0
- package/dist/provider/tanstack.js +17 -0
- package/dist/provider/waku.d.ts +16 -0
- package/dist/provider/waku.js +17 -0
- package/dist/style.css +3640 -0
- package/dist/tailwind/typography.d.ts +2 -0
- package/dist/tailwind/typography.js +2 -0
- package/dist/utils/cn.js +2 -0
- package/dist/utils/merge-refs.js +11 -0
- package/dist/utils/urls.js +15 -0
- package/dist/utils/use-copy-button.d.ts +5 -0
- package/dist/utils/use-copy-button.js +26 -0
- package/dist/utils/use-footer-items.d.ts +8 -0
- package/dist/utils/use-footer-items.js +24 -0
- package/dist/utils/use-is-scroll-top.d.ts +6 -0
- package/dist/utils/use-is-scroll-top.js +20 -0
- package/package.json +212 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { I18nProvider } from "../contexts/i18n.js";
|
|
3
|
+
import { SearchProvider } from "../contexts/search.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { useEffect, useEffectEvent } from "react";
|
|
6
|
+
import { ThemeProvider, useTheme, useTheme as useTheme$1 } from "next-themes";
|
|
7
|
+
import { flushSync } from "react-dom";
|
|
8
|
+
import { DirectionProvider } from "@radix-ui/react-direction";
|
|
9
|
+
//#region src/provider/base.tsx
|
|
10
|
+
/**
|
|
11
|
+
* Whether the event should be ignored because the user is interacting with an editable element,
|
|
12
|
+
* or an opened dialog (e.g. the search dialog).
|
|
13
|
+
*/
|
|
14
|
+
function isTypingTarget(target) {
|
|
15
|
+
if (!(target instanceof HTMLElement)) return false;
|
|
16
|
+
if (target.isContentEditable) return true;
|
|
17
|
+
if ([
|
|
18
|
+
"INPUT",
|
|
19
|
+
"TEXTAREA",
|
|
20
|
+
"SELECT"
|
|
21
|
+
].includes(target.tagName)) return true;
|
|
22
|
+
return target.closest("[role=\"dialog\"]") !== null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Toggle between light/dark mode with a hotkey, must be placed under `next-themes` provider.
|
|
26
|
+
*/
|
|
27
|
+
function ThemeHotKey({ hotKey }) {
|
|
28
|
+
const { setTheme, resolvedTheme } = useTheme$1();
|
|
29
|
+
const onKeyDown = useEffectEvent((e) => {
|
|
30
|
+
if (e.defaultPrevented || e.isComposing || e.keyCode === 229) return;
|
|
31
|
+
if (isTypingTarget(e.target)) return;
|
|
32
|
+
if (!(typeof hotKey === "string" ? !e.metaKey && !e.ctrlKey && !e.altKey && e.key.toLowerCase() === hotKey.toLowerCase() : hotKey(e))) return;
|
|
33
|
+
e.preventDefault();
|
|
34
|
+
const next = resolvedTheme === "dark" ? "light" : "dark";
|
|
35
|
+
if (document?.startViewTransition) document.startViewTransition(() => flushSync(() => setTheme(next)));
|
|
36
|
+
else setTheme(next);
|
|
37
|
+
});
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
window.addEventListener("keydown", onKeyDown);
|
|
40
|
+
return () => {
|
|
41
|
+
window.removeEventListener("keydown", onKeyDown);
|
|
42
|
+
};
|
|
43
|
+
}, []);
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
function RootProvider({ children, dir = "ltr", theme = {}, search, i18n }) {
|
|
47
|
+
let body = children;
|
|
48
|
+
if (search?.enabled !== false) body = /* @__PURE__ */ jsx(SearchProvider, {
|
|
49
|
+
...search,
|
|
50
|
+
children: body
|
|
51
|
+
});
|
|
52
|
+
if (theme?.enabled !== false) {
|
|
53
|
+
const { enabled: _, hotKey = "d", ...themeProps } = theme;
|
|
54
|
+
body = /* @__PURE__ */ jsxs(ThemeProvider, {
|
|
55
|
+
attribute: "class",
|
|
56
|
+
defaultTheme: "system",
|
|
57
|
+
enableSystem: true,
|
|
58
|
+
disableTransitionOnChange: true,
|
|
59
|
+
...themeProps,
|
|
60
|
+
children: [hotKey !== false && /* @__PURE__ */ jsx(ThemeHotKey, { hotKey }), body]
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (i18n) body = /* @__PURE__ */ jsx(I18nProvider, {
|
|
64
|
+
...i18n,
|
|
65
|
+
children: body
|
|
66
|
+
});
|
|
67
|
+
return /* @__PURE__ */ jsx(DirectionProvider, {
|
|
68
|
+
dir,
|
|
69
|
+
children: body
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { RootProvider, useTheme };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
+
import { Framework } from "@vx-oss/docs-core/framework";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
//#region src/provider/next.d.ts
|
|
5
|
+
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
6
|
+
/**
|
|
7
|
+
* Custom framework components to override Next.js defaults
|
|
8
|
+
*/
|
|
9
|
+
components?: {
|
|
10
|
+
Link?: Framework['Link'];
|
|
11
|
+
Image?: Framework['Image'];
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { RootProvider, RootProviderProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { NextProvider } from "@vx-oss/docs-core/framework/next";
|
|
5
|
+
//#region src/provider/next.tsx
|
|
6
|
+
function RootProvider({ components, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(NextProvider, {
|
|
8
|
+
Link: components?.Link,
|
|
9
|
+
Image: components?.Image,
|
|
10
|
+
children: /* @__PURE__ */ jsx(RootProvider$1, {
|
|
11
|
+
...props,
|
|
12
|
+
children: props.children
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { RootProvider };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
+
import { Framework } from "@vx-oss/docs-core/framework";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
//#region src/provider/react-router.d.ts
|
|
5
|
+
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
6
|
+
/**
|
|
7
|
+
* Custom framework components to override React Router defaults
|
|
8
|
+
*/
|
|
9
|
+
components?: {
|
|
10
|
+
Link?: Framework['Link'];
|
|
11
|
+
Image?: Framework['Image'];
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { RootProvider, RootProviderProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { ReactRouterProvider } from "@vx-oss/docs-core/framework/react-router";
|
|
5
|
+
//#region src/provider/react-router.tsx
|
|
6
|
+
function RootProvider({ components, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(ReactRouterProvider, {
|
|
8
|
+
Link: components?.Link,
|
|
9
|
+
Image: components?.Image,
|
|
10
|
+
children: /* @__PURE__ */ jsx(RootProvider$1, {
|
|
11
|
+
...props,
|
|
12
|
+
children: props.children
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { RootProvider };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
+
import { Framework } from "@vx-oss/docs-core/framework";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
//#region src/provider/tanstack.d.ts
|
|
5
|
+
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
6
|
+
/**
|
|
7
|
+
* Custom framework components to override Tanstack Router defaults
|
|
8
|
+
*/
|
|
9
|
+
components?: {
|
|
10
|
+
Link?: Framework['Link'];
|
|
11
|
+
Image?: Framework['Image'];
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { RootProvider, RootProviderProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { TanstackProvider } from "@vx-oss/docs-core/framework/tanstack";
|
|
5
|
+
//#region src/provider/tanstack.tsx
|
|
6
|
+
function RootProvider({ components, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(TanstackProvider, {
|
|
8
|
+
Link: components?.Link,
|
|
9
|
+
Image: components?.Image,
|
|
10
|
+
children: /* @__PURE__ */ jsx(RootProvider$1, {
|
|
11
|
+
...props,
|
|
12
|
+
children: props.children
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { RootProvider };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
+
import { Framework } from "@vx-oss/docs-core/framework";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
//#region src/provider/waku.d.ts
|
|
5
|
+
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
6
|
+
/**
|
|
7
|
+
* Custom framework components to override Waku defaults
|
|
8
|
+
*/
|
|
9
|
+
components?: {
|
|
10
|
+
Link?: Framework['Link'];
|
|
11
|
+
Image?: Framework['Image'];
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { RootProvider, RootProviderProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { WakuProvider } from "@vx-oss/docs-core/framework/waku";
|
|
5
|
+
//#region src/provider/waku.tsx
|
|
6
|
+
function RootProvider({ components, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(WakuProvider, {
|
|
8
|
+
Link: components?.Link,
|
|
9
|
+
Image: components?.Image,
|
|
10
|
+
children: /* @__PURE__ */ jsx(RootProvider$1, {
|
|
11
|
+
...props,
|
|
12
|
+
children: props.children
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { RootProvider };
|