@vx-oss/docs-react 1.0.4 → 1.0.5
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 +3 -3
- package/css/generated/docs.css +1 -1
- package/css/generated/flux.css +1 -1
- package/css/generated/glass.css +1 -1
- package/css/generated/home.css +1 -1
- package/css/generated/notebook.css +1 -1
- package/css/generated/shared.css +1 -1
- package/css/lib/base.css +0 -127
- package/css/preset.css +1 -2
- package/css/style.css +1 -0
- package/dist/components/accordion.js +1 -68
- package/dist/components/banner.js +1 -85
- package/dist/components/callout.js +1 -60
- package/dist/components/card.js +1 -39
- package/dist/components/codeblock.js +1 -126
- package/dist/components/codeblock.rsc.js +1 -22
- package/dist/components/dialog/search-algolia.js +2 -64
- package/dist/components/dialog/search-default.js +2 -66
- package/dist/components/dialog/search-orama.js +2 -69
- package/dist/components/dialog/search.js +1 -351
- package/dist/components/dynamic-codeblock.core.js +1 -51
- package/dist/components/dynamic-codeblock.js +1 -17
- package/dist/components/files.js +1 -40
- package/dist/components/github-info.js +1 -75
- package/dist/components/heading.js +1 -38
- package/dist/components/image-zoom.js +1 -32
- package/dist/components/inline-toc.js +1 -28
- package/dist/components/sidebar/base.js +1 -277
- package/dist/components/sidebar/link-item.js +1 -37
- package/dist/components/sidebar/page-tree.js +1 -69
- package/dist/components/sidebar/tabs/dropdown.js +1 -83
- package/dist/components/sidebar/tabs/index.js +1 -46
- package/dist/components/steps.js +1 -16
- package/dist/components/tabs.js +1 -95
- package/dist/components/toc/clerk.js +1 -227
- package/dist/components/toc/default.js +1 -260
- package/dist/components/toc/index.js +1 -45
- package/dist/components/type-table.js +1 -117
- package/dist/components/ui/accordion.js +1 -42
- package/dist/components/ui/button.js +1 -20
- package/dist/components/ui/collapsible.js +1 -21
- package/dist/components/ui/popover.js +1 -20
- package/dist/components/ui/scroll-area.js +1 -34
- package/dist/components/ui/tabs.js +1 -102
- package/dist/contexts/i18n.js +1 -37
- package/dist/contexts/search.js +1 -68
- package/dist/contexts/tree.js +1 -91
- package/dist/i18n.js +1 -38
- package/dist/index.js +1 -0
- package/dist/layouts/docs/index.js +1 -23
- package/dist/layouts/docs/page/index.js +1 -124
- package/dist/layouts/docs/page/slots/breadcrumb.js +1 -44
- package/dist/layouts/docs/page/slots/container.js +1 -22
- package/dist/layouts/docs/page/slots/footer.js +1 -56
- package/dist/layouts/docs/page/slots/toc.js +1 -182
- package/dist/layouts/docs/slots/container.js +1 -36
- package/dist/layouts/docs/slots/header.js +1 -38
- package/dist/layouts/docs/slots/sidebar.js +1 -268
- package/dist/layouts/flux/index.js +1 -146
- package/dist/layouts/flux/page/index.js +1 -104
- package/dist/layouts/flux/page/slots/breadcrumb.js +1 -44
- package/dist/layouts/flux/page/slots/container.js +1 -22
- package/dist/layouts/flux/page/slots/footer.js +1 -56
- package/dist/layouts/flux/page/slots/toc.js +1 -181
- package/dist/layouts/flux/slots/container.js +1 -13
- package/dist/layouts/flux/slots/sidebar.js +1 -243
- package/dist/layouts/flux/slots/tab-dropdown.js +1 -88
- package/dist/layouts/glass/index.js +1 -70
- package/dist/layouts/glass/page/index.js +1 -92
- package/dist/layouts/glass/page/slots/breadcrumb.js +1 -44
- package/dist/layouts/glass/page/slots/footer.js +1 -56
- package/dist/layouts/glass/page/slots/toc.js +1 -108
- package/dist/layouts/glass/slots/header.js +1 -68
- package/dist/layouts/glass/slots/sidebar.js +1 -267
- package/dist/layouts/home/index.js +1 -40
- package/dist/layouts/home/navbar.js +1 -34
- package/dist/layouts/home/not-found.js +1 -41
- package/dist/layouts/home/slots/container.js +1 -13
- package/dist/layouts/home/slots/header.js +1 -239
- package/dist/layouts/notebook/index.js +1 -23
- package/dist/layouts/notebook/page/index.js +1 -124
- package/dist/layouts/notebook/page/slots/breadcrumb.js +1 -44
- package/dist/layouts/notebook/page/slots/container.js +1 -22
- package/dist/layouts/notebook/page/slots/footer.js +1 -56
- package/dist/layouts/notebook/page/slots/toc.js +1 -181
- package/dist/layouts/notebook/slots/container.js +1 -38
- package/dist/layouts/notebook/slots/header.js +1 -204
- package/dist/layouts/notebook/slots/sidebar.js +1 -240
- package/dist/layouts/shared/index.js +1 -98
- package/dist/layouts/shared/slots/language-select.js +1 -43
- package/dist/layouts/shared/slots/search-trigger.js +1 -53
- package/dist/layouts/shared/slots/theme-switch.js +1 -70
- package/dist/mdx.d.ts +2 -44
- package/dist/mdx.js +2 -70
- package/dist/mdx.server.js +2 -20
- package/dist/og/takumi.js +1 -91
- package/dist/og.js +1 -91
- package/dist/page.js +1 -33
- package/dist/primitives/accordion.js +1 -0
- package/dist/primitives/collapsible.js +1 -0
- package/dist/primitives/dialog.js +1 -0
- package/dist/primitives/direction-provider.js +1 -0
- package/dist/primitives/drawer.js +1 -0
- package/dist/primitives/navigation-menu.js +1 -0
- package/dist/primitives/popover.js +1 -0
- package/dist/primitives/scroll-area.js +1 -0
- package/dist/primitives/shared.js +1 -0
- package/dist/primitives/tabs.js +1 -0
- package/dist/provider/astro.js +1 -20
- package/dist/provider/base.js +1 -73
- package/dist/provider/next.js +1 -17
- package/dist/provider/react-router.js +1 -17
- package/dist/provider/tanstack.js +1 -17
- package/dist/provider/waku.js +1 -17
- package/dist/style.css +11577 -310
- package/dist/utils/use-copy-button.js +1 -26
- package/dist/utils/use-footer-items.js +1 -24
- package/dist/utils/use-is-scroll-top.js +1 -20
- package/package.json +28 -66
- package/css/preset-legacy.css +0 -43
- package/dist/.translations/index.d.ts +0 -55
- package/dist/.translations/keys.js +0 -55
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/components/accordion.d.ts +0 -10
- package/dist/components/banner.d.ts +0 -25
- package/dist/components/callout.d.ts +0 -21
- package/dist/components/card.d.ts +0 -13
- package/dist/components/codeblock.d.ts +0 -45
- package/dist/components/codeblock.rsc.d.ts +0 -15
- package/dist/components/dialog/search-algolia.d.ts +0 -27
- package/dist/components/dialog/search-default.d.ts +0 -29
- package/dist/components/dialog/search-orama.d.ts +0 -32
- package/dist/components/dialog/search.d.ts +0 -76
- package/dist/components/dynamic-codeblock.core.d.ts +0 -26
- package/dist/components/dynamic-codeblock.d.ts +0 -8
- package/dist/components/files.d.ts +0 -21
- package/dist/components/github-info.d.ts +0 -20
- package/dist/components/heading.d.ts +0 -9
- package/dist/components/image-zoom.d.ts +0 -18
- package/dist/components/inline-toc.d.ts +0 -10
- package/dist/components/sidebar/base.d.ts +0 -85
- package/dist/components/sidebar/link-item.d.ts +0 -12
- package/dist/components/sidebar/page-tree.d.ts +0 -20
- package/dist/components/sidebar/tabs/dropdown.d.ts +0 -15
- package/dist/components/sidebar/tabs/index.d.ts +0 -8
- package/dist/components/steps.d.ts +0 -10
- package/dist/components/tabs.d.ts +0 -33
- package/dist/components/toc/clerk.d.ts +0 -11
- package/dist/components/toc/default.d.ts +0 -13
- package/dist/components/toc/index.d.ts +0 -10
- package/dist/components/type-table.d.ts +0 -37
- package/dist/components/ui/accordion.d.ts +0 -10
- package/dist/components/ui/button.d.ts +0 -10
- package/dist/components/ui/collapsible.d.ts +0 -11
- package/dist/components/ui/navigation-menu.d.ts +0 -14
- package/dist/components/ui/navigation-menu.js +0 -41
- package/dist/components/ui/popover.d.ts +0 -9
- package/dist/components/ui/scroll-area.d.ts +0 -9
- package/dist/components/ui/tabs.d.ts +0 -23
- package/dist/contexts/i18n.d.ts +0 -34
- package/dist/contexts/search.d.ts +0 -64
- package/dist/contexts/tree.d.ts +0 -29
- package/dist/i18n.d.ts +0 -15
- package/dist/layouts/docs/client.d.ts +0 -33
- package/dist/layouts/docs/client.js +0 -94
- package/dist/layouts/docs/index.d.ts +0 -32
- package/dist/layouts/docs/page/index.d.ts +0 -76
- package/dist/layouts/docs/page/slots/breadcrumb.d.ts +0 -7
- package/dist/layouts/docs/page/slots/container.d.ts +0 -5
- package/dist/layouts/docs/page/slots/footer.d.ts +0 -16
- package/dist/layouts/docs/page/slots/toc.d.ts +0 -47
- package/dist/layouts/docs/slots/container.d.ts +0 -5
- package/dist/layouts/docs/slots/header.d.ts +0 -5
- package/dist/layouts/docs/slots/sidebar.d.ts +0 -22
- package/dist/layouts/flux/index.d.ts +0 -61
- package/dist/layouts/flux/page/index.d.ts +0 -67
- package/dist/layouts/flux/page/slots/breadcrumb.d.ts +0 -7
- package/dist/layouts/flux/page/slots/container.d.ts +0 -5
- package/dist/layouts/flux/page/slots/footer.d.ts +0 -16
- package/dist/layouts/flux/page/slots/toc.d.ts +0 -29
- package/dist/layouts/flux/slots/container.d.ts +0 -5
- package/dist/layouts/flux/slots/sidebar.d.ts +0 -16
- package/dist/layouts/flux/slots/tab-dropdown.d.ts +0 -10
- package/dist/layouts/glass/index.d.ts +0 -39
- package/dist/layouts/glass/layout-tabs.js +0 -54
- package/dist/layouts/glass/page/index.d.ts +0 -31
- package/dist/layouts/glass/page/slots/breadcrumb.d.ts +0 -7
- package/dist/layouts/glass/page/slots/footer.d.ts +0 -16
- package/dist/layouts/glass/page/slots/toc.d.ts +0 -19
- package/dist/layouts/glass/slots/header.d.ts +0 -6
- package/dist/layouts/glass/slots/sidebar.d.ts +0 -21
- package/dist/layouts/home/index.d.ts +0 -27
- package/dist/layouts/home/navbar.d.ts +0 -9
- package/dist/layouts/home/not-found.d.ts +0 -7
- package/dist/layouts/home/slots/container.d.ts +0 -5
- package/dist/layouts/home/slots/header.d.ts +0 -8
- package/dist/layouts/notebook/client.d.ts +0 -35
- package/dist/layouts/notebook/client.js +0 -69
- package/dist/layouts/notebook/index.d.ts +0 -26
- package/dist/layouts/notebook/page/index.d.ts +0 -76
- package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +0 -7
- package/dist/layouts/notebook/page/slots/container.d.ts +0 -5
- package/dist/layouts/notebook/page/slots/footer.d.ts +0 -16
- package/dist/layouts/notebook/page/slots/toc.d.ts +0 -47
- package/dist/layouts/notebook/slots/container.d.ts +0 -5
- package/dist/layouts/notebook/slots/header.d.ts +0 -5
- package/dist/layouts/notebook/slots/sidebar.d.ts +0 -23
- package/dist/layouts/shared/client.d.ts +0 -37
- package/dist/layouts/shared/client.js +0 -85
- package/dist/layouts/shared/index.d.ts +0 -169
- package/dist/layouts/shared/page-actions.d.ts +0 -27
- package/dist/layouts/shared/page-actions.js +0 -199
- package/dist/layouts/shared/slots/language-select.d.ts +0 -12
- package/dist/layouts/shared/slots/search-trigger.d.ts +0 -13
- package/dist/layouts/shared/slots/theme-switch.d.ts +0 -8
- package/dist/legacy/layout.d.ts +0 -29
- package/dist/legacy/layout.js +0 -44
- package/dist/legacy/sidebar.d.ts +0 -14
- package/dist/legacy/sidebar.js +0 -34
- package/dist/mdx.server.d.ts +0 -14
- 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 +0 -30
- 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 +0 -461
- 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 +0 -3
- 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 +0 -6
- 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 +0 -17
- 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 +0 -53
- 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 +0 -25
- 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 +0 -12
- 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 +0 -45
- 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 +0 -10
- 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 +0 -57
- 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 +0 -21
- 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 +0 -14
- 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 +0 -22
- 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 +0 -27
- 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 +0 -31
- 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 +0 -75
- 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 +0 -4
- 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 +0 -7
- 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 +0 -5
- package/dist/og/takumi.d.ts +0 -15
- package/dist/og.d.ts +0 -16
- package/dist/page.d.ts +0 -29
- package/dist/provider/astro.d.ts +0 -29
- package/dist/provider/base.d.ts +0 -48
- package/dist/provider/next.d.ts +0 -16
- package/dist/provider/react-router.d.ts +0 -16
- package/dist/provider/tanstack.d.ts +0 -16
- package/dist/provider/waku.d.ts +0 -16
- package/dist/utils/cn.js +0 -2
- package/dist/utils/merge-refs.js +0 -11
- package/dist/utils/urls.js +0 -15
- package/dist/utils/use-copy-button.d.ts +0 -5
- package/dist/utils/use-footer-items.d.ts +0 -8
- package/dist/utils/use-is-scroll-top.d.ts +0 -6
|
@@ -1,26 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
|
-
//#region src/utils/use-copy-button.ts
|
|
4
|
-
function useCopyButton(onCopy) {
|
|
5
|
-
const [checked, setChecked] = useState(false);
|
|
6
|
-
const callbackRef = useRef(onCopy);
|
|
7
|
-
const timeoutRef = useRef(null);
|
|
8
|
-
callbackRef.current = onCopy;
|
|
9
|
-
const onClick = useCallback(() => {
|
|
10
|
-
if (timeoutRef.current) window.clearTimeout(timeoutRef.current);
|
|
11
|
-
Promise.resolve(callbackRef.current()).then(() => {
|
|
12
|
-
setChecked(true);
|
|
13
|
-
timeoutRef.current = window.setTimeout(() => {
|
|
14
|
-
setChecked(false);
|
|
15
|
-
}, 1500);
|
|
16
|
-
});
|
|
17
|
-
}, []);
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
return () => {
|
|
20
|
-
if (timeoutRef.current) window.clearTimeout(timeoutRef.current);
|
|
21
|
-
};
|
|
22
|
-
}, []);
|
|
23
|
-
return [checked, onClick];
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { useCopyButton };
|
|
1
|
+
export * from '@vx-oss/docs-vezham-ui/utils/use-copy-button';
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { useTreeContext } from "../contexts/tree.js";
|
|
3
|
-
//#region src/utils/use-footer-items.ts
|
|
4
|
-
const footerCache = /* @__PURE__ */ new WeakMap();
|
|
5
|
-
/**
|
|
6
|
-
* @returns a list of page tree items (linear), that you can obtain footer items
|
|
7
|
-
*/
|
|
8
|
-
function useFooterItems() {
|
|
9
|
-
const { root } = useTreeContext();
|
|
10
|
-
const cached = footerCache.get(root);
|
|
11
|
-
if (cached) return cached;
|
|
12
|
-
const list = [];
|
|
13
|
-
function onNode(node) {
|
|
14
|
-
if (node.type === "folder") {
|
|
15
|
-
if (node.index) onNode(node.index);
|
|
16
|
-
for (const child of node.children) onNode(child);
|
|
17
|
-
} else if (node.type === "page" && !node.external) list.push(node);
|
|
18
|
-
}
|
|
19
|
-
for (const child of root.children) onNode(child);
|
|
20
|
-
footerCache.set(root, list);
|
|
21
|
-
return list;
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { useFooterItems };
|
|
1
|
+
export * from '@vx-oss/docs-vezham-ui/utils/use-footer-items';
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
3
|
-
//#region src/utils/use-is-scroll-top.ts
|
|
4
|
-
function useIsScrollTop({ enabled = true }) {
|
|
5
|
-
const [isTop, setIsTop] = useState();
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
if (!enabled) return;
|
|
8
|
-
const listener = () => {
|
|
9
|
-
setIsTop(window.scrollY < 10);
|
|
10
|
-
};
|
|
11
|
-
listener();
|
|
12
|
-
window.addEventListener("scroll", listener);
|
|
13
|
-
return () => {
|
|
14
|
-
window.removeEventListener("scroll", listener);
|
|
15
|
-
};
|
|
16
|
-
}, [enabled]);
|
|
17
|
-
return isTop;
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { useIsScrollTop };
|
|
1
|
+
export * from '@vx-oss/docs-vezham-ui/utils/use-is-scroll-top';
|
package/package.json
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vx-oss/docs-react",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Compatibility React UI entry for Vezham Docs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
7
|
-
"Fumadocs"
|
|
7
|
+
"Fumadocs",
|
|
8
|
+
"react"
|
|
8
9
|
],
|
|
9
10
|
"homepage": "https://vezham.com",
|
|
10
|
-
"bugs": {
|
|
11
|
-
"url": "https://github.com/vezham/fumadocs/issues"
|
|
12
|
-
},
|
|
13
11
|
"license": "MIT",
|
|
14
12
|
"author": "Fuma Nama",
|
|
15
13
|
"repository": {
|
|
16
14
|
"type": "git",
|
|
17
15
|
"url": "https://github.com/vezham/fumadocs",
|
|
18
|
-
"directory": "packages/
|
|
16
|
+
"directory": "packages/react"
|
|
19
17
|
},
|
|
20
18
|
"files": [
|
|
21
19
|
"css",
|
|
@@ -23,6 +21,7 @@
|
|
|
23
21
|
],
|
|
24
22
|
"type": "module",
|
|
25
23
|
"exports": {
|
|
24
|
+
".": "./dist/index.js",
|
|
26
25
|
"./components/accordion": "./dist/components/accordion.js",
|
|
27
26
|
"./components/banner": "./dist/components/banner.js",
|
|
28
27
|
"./components/callout": "./dist/components/callout.js",
|
|
@@ -54,7 +53,6 @@
|
|
|
54
53
|
"./components/ui/accordion": "./dist/components/ui/accordion.js",
|
|
55
54
|
"./components/ui/button": "./dist/components/ui/button.js",
|
|
56
55
|
"./components/ui/collapsible": "./dist/components/ui/collapsible.js",
|
|
57
|
-
"./components/ui/navigation-menu": "./dist/components/ui/navigation-menu.js",
|
|
58
56
|
"./components/ui/popover": "./dist/components/ui/popover.js",
|
|
59
57
|
"./components/ui/scroll-area": "./dist/components/ui/scroll-area.js",
|
|
60
58
|
"./components/ui/tabs": "./dist/components/ui/tabs.js",
|
|
@@ -105,8 +103,6 @@
|
|
|
105
103
|
"./layouts/shared/slots/language-select": "./dist/layouts/shared/slots/language-select.js",
|
|
106
104
|
"./layouts/shared/slots/search-trigger": "./dist/layouts/shared/slots/search-trigger.js",
|
|
107
105
|
"./layouts/shared/slots/theme-switch": "./dist/layouts/shared/slots/theme-switch.js",
|
|
108
|
-
"./legacy/layout": "./dist/legacy/layout.js",
|
|
109
|
-
"./legacy/sidebar": "./dist/legacy/sidebar.js",
|
|
110
106
|
"./mdx": {
|
|
111
107
|
"types": "./dist/mdx.d.ts",
|
|
112
108
|
"node": "./dist/mdx.server.js",
|
|
@@ -115,6 +111,16 @@
|
|
|
115
111
|
"./og": "./dist/og.js",
|
|
116
112
|
"./og/takumi": "./dist/og/takumi.js",
|
|
117
113
|
"./page": "./dist/page.js",
|
|
114
|
+
"./primitives/accordion": "./dist/primitives/accordion.js",
|
|
115
|
+
"./primitives/collapsible": "./dist/primitives/collapsible.js",
|
|
116
|
+
"./primitives/dialog": "./dist/primitives/dialog.js",
|
|
117
|
+
"./primitives/direction-provider": "./dist/primitives/direction-provider.js",
|
|
118
|
+
"./primitives/drawer": "./dist/primitives/drawer.js",
|
|
119
|
+
"./primitives/navigation-menu": "./dist/primitives/navigation-menu.js",
|
|
120
|
+
"./primitives/popover": "./dist/primitives/popover.js",
|
|
121
|
+
"./primitives/scroll-area": "./dist/primitives/scroll-area.js",
|
|
122
|
+
"./primitives/shared": "./dist/primitives/shared.js",
|
|
123
|
+
"./primitives/tabs": "./dist/primitives/tabs.js",
|
|
118
124
|
"./provider/astro": "./dist/provider/astro.js",
|
|
119
125
|
"./provider/base": "./dist/provider/base.js",
|
|
120
126
|
"./provider/next": "./dist/provider/next.js",
|
|
@@ -127,86 +133,42 @@
|
|
|
127
133
|
"./package.json": "./package.json",
|
|
128
134
|
"./components/image-zoom2.css": "./dist/components/image-zoom2.css",
|
|
129
135
|
"./style.css": "./dist/style.css",
|
|
130
|
-
"./css/*": "./css/*"
|
|
131
|
-
"./utils/get-sidebar-tabs": "./dist/components/sidebar/tabs/index.js",
|
|
132
|
-
"./components/tabs.unstyled": "./dist/components/ui/tabs.js"
|
|
136
|
+
"./css/*": "./css/*"
|
|
133
137
|
},
|
|
134
138
|
"publishConfig": {
|
|
135
139
|
"access": "public"
|
|
136
140
|
},
|
|
137
141
|
"dependencies": {
|
|
138
|
-
"@
|
|
139
|
-
"@radix-ui/react-accordion": "^1.2.20",
|
|
140
|
-
"@radix-ui/react-collapsible": "^1.1.20",
|
|
141
|
-
"@radix-ui/react-dialog": "^1.1.23",
|
|
142
|
-
"@radix-ui/react-direction": "^1.1.4",
|
|
143
|
-
"@radix-ui/react-navigation-menu": "^1.2.22",
|
|
144
|
-
"@radix-ui/react-popover": "^1.1.23",
|
|
145
|
-
"@radix-ui/react-presence": "^1.1.10",
|
|
146
|
-
"@radix-ui/react-scroll-area": "^1.2.18",
|
|
147
|
-
"@radix-ui/react-slot": "^1.3.3",
|
|
148
|
-
"@radix-ui/react-tabs": "^1.1.21",
|
|
149
|
-
"class-variance-authority": "^0.7.1",
|
|
150
|
-
"cnfast": "^0.1.0",
|
|
151
|
-
"lucide-react": "^1.34.0",
|
|
152
|
-
"motion": "^13.1.1",
|
|
153
|
-
"next-themes": "^0.4.6",
|
|
154
|
-
"react-remove-scroll": "^2.7.2",
|
|
155
|
-
"rehype-raw": "^7.0.0",
|
|
156
|
-
"scroll-into-view-if-needed": "^3.1.0",
|
|
157
|
-
"shiki": "^4.4.3",
|
|
158
|
-
"unist-util-visit": "^5.1.0",
|
|
159
|
-
"@vx-oss/docs-tailwind": "1.0.4"
|
|
160
|
-
},
|
|
161
|
-
"devDependencies": {
|
|
162
|
-
"@tailwindcss/cli": "^4.3.3",
|
|
163
|
-
"@tailwindcss/oxide": "^4.3.3",
|
|
164
|
-
"@tsdown/css": "^0.22.14",
|
|
165
|
-
"@types/hast": "^3.0.5",
|
|
166
|
-
"@types/mdx": "^2.0.14",
|
|
167
|
-
"@types/node": "^26.3.0",
|
|
168
|
-
"@types/react": "^19.2.18",
|
|
169
|
-
"@types/react-dom": "^19.2.5",
|
|
170
|
-
"fuma-cli": "^0.1.1",
|
|
171
|
-
"react-medium-image-zoom": "^5.4.9",
|
|
172
|
-
"tailwindcss": "^4.3.3",
|
|
173
|
-
"tsdown": "0.22.14",
|
|
174
|
-
"unified": "^11.0.5",
|
|
175
|
-
"@vx-oss/docs-cli": "1.0.4",
|
|
176
|
-
"tsconfig": "0.0.1",
|
|
177
|
-
"@vx-oss/docs-core": "1.0.4"
|
|
142
|
+
"@vx-oss/docs-vezham-ui": "1.0.5"
|
|
178
143
|
},
|
|
179
144
|
"peerDependencies": {
|
|
180
145
|
"@types/mdx": "*",
|
|
181
146
|
"@types/react": "*",
|
|
147
|
+
"@vx-oss/docs-core": "^1.0.4",
|
|
182
148
|
"next": "16.x.x",
|
|
183
149
|
"react": "^19.2.0",
|
|
184
150
|
"react-dom": "^19.2.0",
|
|
185
|
-
"takumi-js": "*"
|
|
186
|
-
"@vx-oss/docs-core": "1.0.4"
|
|
151
|
+
"takumi-js": "*"
|
|
187
152
|
},
|
|
188
153
|
"peerDependenciesMeta": {
|
|
189
|
-
"
|
|
154
|
+
"@types/mdx": {
|
|
190
155
|
"optional": true
|
|
191
156
|
},
|
|
192
|
-
"
|
|
157
|
+
"@types/react": {
|
|
193
158
|
"optional": true
|
|
194
159
|
},
|
|
195
|
-
"
|
|
160
|
+
"next": {
|
|
196
161
|
"optional": true
|
|
197
162
|
},
|
|
198
|
-
"
|
|
163
|
+
"takumi-js": {
|
|
199
164
|
"optional": true
|
|
200
165
|
}
|
|
201
166
|
},
|
|
202
|
-
"inlinedDependencies": {
|
|
203
|
-
"react-medium-image-zoom": "5.4.9"
|
|
204
|
-
},
|
|
205
167
|
"scripts": {
|
|
206
|
-
"build": "
|
|
207
|
-
"clean": "rimraf dist",
|
|
208
|
-
"dev": "
|
|
168
|
+
"build": "node scripts/sync.mjs",
|
|
169
|
+
"clean": "rimraf dist css",
|
|
170
|
+
"dev": "node scripts/sync.mjs",
|
|
209
171
|
"lint": "oxlint .",
|
|
210
|
-
"types:check": "
|
|
172
|
+
"types:check": "node scripts/sync.mjs"
|
|
211
173
|
}
|
|
212
174
|
}
|
package/css/preset-legacy.css
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
@import './lib/base.css';
|
|
2
|
-
@import './lib/shiki.css';
|
|
3
|
-
|
|
4
|
-
@plugin '../dist/tailwind/typography.js';
|
|
5
|
-
|
|
6
|
-
@import './generated/docs.css';
|
|
7
|
-
@import './generated/home.css';
|
|
8
|
-
@import './generated/notebook.css';
|
|
9
|
-
@import './generated/flux.css';
|
|
10
|
-
|
|
11
|
-
@import './generated/shared.css';
|
|
12
|
-
|
|
13
|
-
@theme {
|
|
14
|
-
--spacing-fd-container: 1400px;
|
|
15
|
-
--fd-page-width: 1200px;
|
|
16
|
-
--fd-sidebar-width: 0px;
|
|
17
|
-
--fd-toc-width: 0px;
|
|
18
|
-
--fd-layout-width: 1600px;
|
|
19
|
-
--fd-banner-height: 0px;
|
|
20
|
-
--fd-nav-height: 0px;
|
|
21
|
-
--fd-tocnav-height: 0px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@layer base {
|
|
25
|
-
:root,
|
|
26
|
-
#nd-docs-layout {
|
|
27
|
-
--fd-layout-offset: max(calc(50vw - var(--fd-layout-width) / 2), 0px);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@utility container {
|
|
32
|
-
margin-inline: auto;
|
|
33
|
-
padding-inline: 1rem;
|
|
34
|
-
|
|
35
|
-
@apply 2xl:max-w-(--spacing-fd-container);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/* Apply styles to :root */
|
|
39
|
-
@custom-variant on-root {
|
|
40
|
-
:root:has(&) {
|
|
41
|
-
@slot;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
//#region src/.translations/index.d.ts
|
|
2
|
-
type Translations = {
|
|
3
|
-
"Ask AI(AI chat button)": string;
|
|
4
|
-
"Back to Home(404 page)": string;
|
|
5
|
-
"Choose a language(language switcher)": string;
|
|
6
|
-
"Choose a language(language switcher)(aria-label)": string;
|
|
7
|
-
"Close Banner(banner)(aria-label)": string;
|
|
8
|
-
"Close Search(search dialog)(aria-label)": string;
|
|
9
|
-
"Close Sidebar(aria-label)": string;
|
|
10
|
-
"Close Sidebar(sidebar)(aria-label)": string;
|
|
11
|
-
"Collapse Sidebar(sidebar)(aria-label)": string;
|
|
12
|
-
"Copied Text(code block)(aria-label)": string;
|
|
13
|
-
"Copy Anchor Link(heading anchor)(aria-label)": string;
|
|
14
|
-
"Copy Link(accordion)(aria-label)": string;
|
|
15
|
-
"Copy Markdown(page actions)": string;
|
|
16
|
-
"Copy Text(code block)(aria-label)": string;
|
|
17
|
-
"Dark(theme switcher)(aria-label)": string;
|
|
18
|
-
"Default(type table)": string;
|
|
19
|
-
"Edit on GitHub(edit page)": string;
|
|
20
|
-
"Hide Sidebar(sidebar)": string;
|
|
21
|
-
"Last updated on(page footer)": string;
|
|
22
|
-
"Layout Tab(layout tab trigger)": string;
|
|
23
|
-
"Light(theme switcher)(aria-label)": string;
|
|
24
|
-
"Next Page(pagination)": string;
|
|
25
|
-
"No Headings(table of contents)": string;
|
|
26
|
-
"No results found(search dialog)": string;
|
|
27
|
-
"On this page(table of contents)": string;
|
|
28
|
-
"Open Search(search trigger)(aria-label)": string;
|
|
29
|
-
"Open Sidebar(sidebar)(aria-label)": string;
|
|
30
|
-
"Open in ChatGPT(page actions)": string;
|
|
31
|
-
"Open in Claude(page actions)": string;
|
|
32
|
-
"Open in Cursor(page actions)": string;
|
|
33
|
-
"Open in GitHub(page actions)": string;
|
|
34
|
-
"Open in Scira AI(page actions)": string;
|
|
35
|
-
"Open(page actions)": string;
|
|
36
|
-
"Page Not Found(404 page)": string;
|
|
37
|
-
"Parameters(type table)": string;
|
|
38
|
-
"Previous Page(pagination)": string;
|
|
39
|
-
"Prop(type table)": string;
|
|
40
|
-
"Read {url}, I want to ask questions about it.(page actions)": string;
|
|
41
|
-
"Returns(type table)": string;
|
|
42
|
-
"Search(search dialog)": string;
|
|
43
|
-
"Search(search trigger)": string;
|
|
44
|
-
"Show Sidebar(sidebar)": string;
|
|
45
|
-
"System(theme switcher)(aria-label)": string;
|
|
46
|
-
"Table of Contents(inline table of contents)": string;
|
|
47
|
-
"The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.(404 page)": string;
|
|
48
|
-
"Toggle Menu(mobile menu)(aria-label)": string;
|
|
49
|
-
"Toggle Theme(theme switcher)(aria-label)": string;
|
|
50
|
-
"Type(type table)": string;
|
|
51
|
-
"View as Markdown(page actions)": string;
|
|
52
|
-
"displayName": string;
|
|
53
|
-
};
|
|
54
|
-
//#endregion
|
|
55
|
-
export { Translations };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
//#region src/.translations/keys.json
|
|
2
|
-
var keys_default = [
|
|
3
|
-
"Ask AI(AI chat button)",
|
|
4
|
-
"Back to Home(404 page)",
|
|
5
|
-
"Choose a language(language switcher)",
|
|
6
|
-
"Choose a language(language switcher)(aria-label)",
|
|
7
|
-
"Close Banner(banner)(aria-label)",
|
|
8
|
-
"Close Search(search dialog)(aria-label)",
|
|
9
|
-
"Close Sidebar(aria-label)",
|
|
10
|
-
"Close Sidebar(sidebar)(aria-label)",
|
|
11
|
-
"Collapse Sidebar(sidebar)(aria-label)",
|
|
12
|
-
"Copied Text(code block)(aria-label)",
|
|
13
|
-
"Copy Anchor Link(heading anchor)(aria-label)",
|
|
14
|
-
"Copy Link(accordion)(aria-label)",
|
|
15
|
-
"Copy Markdown(page actions)",
|
|
16
|
-
"Copy Text(code block)(aria-label)",
|
|
17
|
-
"Dark(theme switcher)(aria-label)",
|
|
18
|
-
"Default(type table)",
|
|
19
|
-
"Edit on GitHub(edit page)",
|
|
20
|
-
"Hide Sidebar(sidebar)",
|
|
21
|
-
"Last updated on(page footer)",
|
|
22
|
-
"Layout Tab(layout tab trigger)",
|
|
23
|
-
"Light(theme switcher)(aria-label)",
|
|
24
|
-
"Next Page(pagination)",
|
|
25
|
-
"No Headings(table of contents)",
|
|
26
|
-
"No results found(search dialog)",
|
|
27
|
-
"On this page(table of contents)",
|
|
28
|
-
"Open Search(search trigger)(aria-label)",
|
|
29
|
-
"Open Sidebar(sidebar)(aria-label)",
|
|
30
|
-
"Open in ChatGPT(page actions)",
|
|
31
|
-
"Open in Claude(page actions)",
|
|
32
|
-
"Open in Cursor(page actions)",
|
|
33
|
-
"Open in GitHub(page actions)",
|
|
34
|
-
"Open in Scira AI(page actions)",
|
|
35
|
-
"Open(page actions)",
|
|
36
|
-
"Page Not Found(404 page)",
|
|
37
|
-
"Parameters(type table)",
|
|
38
|
-
"Previous Page(pagination)",
|
|
39
|
-
"Prop(type table)",
|
|
40
|
-
"Read {url}, I want to ask questions about it.(page actions)",
|
|
41
|
-
"Returns(type table)",
|
|
42
|
-
"Search(search dialog)",
|
|
43
|
-
"Search(search trigger)",
|
|
44
|
-
"Show Sidebar(sidebar)",
|
|
45
|
-
"System(theme switcher)(aria-label)",
|
|
46
|
-
"Table of Contents(inline table of contents)",
|
|
47
|
-
"The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.(404 page)",
|
|
48
|
-
"Toggle Menu(mobile menu)(aria-label)",
|
|
49
|
-
"Toggle Theme(theme switcher)(aria-label)",
|
|
50
|
-
"Type(type table)",
|
|
51
|
-
"View as Markdown(page actions)",
|
|
52
|
-
"displayName"
|
|
53
|
-
];
|
|
54
|
-
//#endregion
|
|
55
|
-
export { keys_default as default };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all, no_symbols) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) __defProp(target, name, {
|
|
6
|
-
get: all[name],
|
|
7
|
-
enumerable: true
|
|
8
|
-
});
|
|
9
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
-
return target;
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { __exportAll };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Accordion as Accordion$1, AccordionItem } from "./ui/accordion.js";
|
|
2
|
-
import { ComponentProps, ReactNode } from "react";
|
|
3
|
-
//#region src/components/accordion.d.ts
|
|
4
|
-
declare function Accordions({ type, ref, className, defaultValue, ...props }: ComponentProps<typeof Accordion$1>): import("react").JSX.Element;
|
|
5
|
-
declare function Accordion({ title, id, value, children, ...props }: Omit<ComponentProps<typeof AccordionItem>, 'value' | 'title'> & {
|
|
6
|
-
title: string | ReactNode;
|
|
7
|
-
value?: string;
|
|
8
|
-
}): import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Accordion, Accordions };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/banner.d.ts
|
|
3
|
-
type BannerVariant = 'rainbow' | 'normal';
|
|
4
|
-
declare function Banner({ id, variant, changeLayout, height, rainbowColors, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
5
|
-
/**
|
|
6
|
-
* @defaultValue 3rem
|
|
7
|
-
*/
|
|
8
|
-
height?: string;
|
|
9
|
-
/**
|
|
10
|
-
* @defaultValue 'normal'
|
|
11
|
-
*/
|
|
12
|
-
variant?: BannerVariant;
|
|
13
|
-
/**
|
|
14
|
-
* For rainbow variant only, customize the colors
|
|
15
|
-
*/
|
|
16
|
-
rainbowColors?: string[];
|
|
17
|
-
/**
|
|
18
|
-
* Change Fumadocs layout styles
|
|
19
|
-
*
|
|
20
|
-
* @defaultValue true
|
|
21
|
-
*/
|
|
22
|
-
changeLayout?: boolean;
|
|
23
|
-
}): import("react").JSX.Element | null;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { Banner };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from "react";
|
|
2
|
-
//#region src/components/callout.d.ts
|
|
3
|
-
type CalloutType = 'info' | 'warn' | 'error' | 'success' | 'warning' | 'idea';
|
|
4
|
-
declare function Callout({ children, title, ...props }: {
|
|
5
|
-
title?: ReactNode;
|
|
6
|
-
} & Omit<CalloutContainerProps, 'title'>): import("react").JSX.Element;
|
|
7
|
-
interface CalloutContainerProps extends ComponentProps<'div'> {
|
|
8
|
-
/**
|
|
9
|
-
* @defaultValue info
|
|
10
|
-
*/
|
|
11
|
-
type?: CalloutType;
|
|
12
|
-
/**
|
|
13
|
-
* Force an icon
|
|
14
|
-
*/
|
|
15
|
-
icon?: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
declare function CalloutContainer({ type: inputType, icon, children, className, style, ...props }: CalloutContainerProps): import("react").JSX.Element;
|
|
18
|
-
declare function CalloutTitle({ children, className, ...props }: ComponentProps<'p'>): import("react").JSX.Element;
|
|
19
|
-
declare function CalloutDescription({ children, className, ...props }: ComponentProps<'p'>): import("react").JSX.Element;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { Callout, CalloutContainer, CalloutContainerProps, CalloutDescription, CalloutTitle, CalloutType };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/card.d.ts
|
|
3
|
-
declare function Cards(props: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
4
|
-
type CardProps = Omit<HTMLAttributes<HTMLElement>, 'title'> & {
|
|
5
|
-
icon?: ReactNode;
|
|
6
|
-
title: ReactNode;
|
|
7
|
-
description?: ReactNode;
|
|
8
|
-
href?: string;
|
|
9
|
-
external?: boolean;
|
|
10
|
-
};
|
|
11
|
-
declare function Card({ icon, title, description, ...props }: CardProps): import("react").JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { Card, CardProps, Cards };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/tabs.js";
|
|
2
|
-
import { ComponentProps, HTMLAttributes, ReactNode } from "react";
|
|
3
|
-
//#region src/components/codeblock.d.ts
|
|
4
|
-
interface CodeBlockProps extends Omit<ComponentProps<'figure'>, 'title'> {
|
|
5
|
-
title?: ReactNode;
|
|
6
|
-
/**
|
|
7
|
-
* Icon of code block
|
|
8
|
-
*
|
|
9
|
-
* When passed as a string, it assumes the value is the HTML of icon
|
|
10
|
-
*/
|
|
11
|
-
icon?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Allow to copy code with copy button
|
|
14
|
-
*
|
|
15
|
-
* @defaultValue true
|
|
16
|
-
*/
|
|
17
|
-
allowCopy?: boolean | 'true' | 'false';
|
|
18
|
-
/**
|
|
19
|
-
* Keep original background color generated by Shiki or Rehype Code
|
|
20
|
-
*
|
|
21
|
-
* @defaultValue false
|
|
22
|
-
*/
|
|
23
|
-
keepBackground?: boolean;
|
|
24
|
-
viewportProps?: HTMLAttributes<HTMLElement>;
|
|
25
|
-
/**
|
|
26
|
-
* show line numbers
|
|
27
|
-
*/
|
|
28
|
-
'data-line-numbers'?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* @defaultValue 1
|
|
31
|
-
*/
|
|
32
|
-
'data-line-numbers-start'?: number;
|
|
33
|
-
Actions?: (props: {
|
|
34
|
-
className?: string;
|
|
35
|
-
children?: ReactNode;
|
|
36
|
-
}) => ReactNode;
|
|
37
|
-
}
|
|
38
|
-
declare function Pre(props: ComponentProps<'pre'>): import("react").JSX.Element;
|
|
39
|
-
declare function CodeBlock({ ref, title, allowCopy, keepBackground, icon, viewportProps, children, Actions, ...props }: CodeBlockProps): import("react").JSX.Element;
|
|
40
|
-
declare function CodeBlockTabs({ ref, ...props }: ComponentProps<typeof Tabs>): import("react").JSX.Element;
|
|
41
|
-
declare function CodeBlockTabsList(props: ComponentProps<typeof TabsList>): import("react").JSX.Element;
|
|
42
|
-
declare function CodeBlockTabsTrigger({ children, ...props }: ComponentProps<typeof TabsTrigger>): import("react").JSX.Element;
|
|
43
|
-
declare function CodeBlockTab(props: ComponentProps<typeof TabsContent>): import("react").JSX.Element;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { CodeBlock, CodeBlockProps, CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, Pre };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CodeBlockProps } from "./codeblock.js";
|
|
2
|
-
import { HighlightOptions } from "@vx-oss/docs-core/highlight";
|
|
3
|
-
//#region src/components/codeblock.rsc.d.ts
|
|
4
|
-
type ServerCodeBlockProps = HighlightOptions & {
|
|
5
|
-
code: string;
|
|
6
|
-
/**
|
|
7
|
-
* Extra props for the underlying `<CodeBlock />` component.
|
|
8
|
-
*
|
|
9
|
-
* Ignored if you defined your own `pre` component in `components`.
|
|
10
|
-
*/
|
|
11
|
-
codeblock?: CodeBlockProps;
|
|
12
|
-
};
|
|
13
|
-
declare function ServerCodeBlock({ code, codeblock, ...options }: ServerCodeBlockProps): Promise<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | (string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined)>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { ServerCodeBlock, ServerCodeBlockProps };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SearchLink, SharedProps, TagItem } from "../../contexts/search.js";
|
|
2
|
-
import "./search.js";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
import { AlgoliaOptions } from "@vx-oss/docs-core/search/client";
|
|
5
|
-
//#region src/components/dialog/search-algolia.d.ts
|
|
6
|
-
interface AlgoliaSearchDialogProps extends SharedProps {
|
|
7
|
-
searchOptions: AlgoliaOptions;
|
|
8
|
-
links?: SearchLink[];
|
|
9
|
-
footer?: ReactNode;
|
|
10
|
-
defaultTag?: string;
|
|
11
|
-
tags?: TagItem[];
|
|
12
|
-
/**
|
|
13
|
-
* Add the "Powered by Algolia" label, this is useful for free tier users
|
|
14
|
-
*
|
|
15
|
-
* @defaultValue false
|
|
16
|
-
*/
|
|
17
|
-
showAlgolia?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Allow to clear tag filters
|
|
20
|
-
*
|
|
21
|
-
* @defaultValue false
|
|
22
|
-
*/
|
|
23
|
-
allowClear?: boolean;
|
|
24
|
-
}
|
|
25
|
-
declare function AlgoliaSearchDialog({ searchOptions, tags, defaultTag, showAlgolia, allowClear, links, footer, ...props }: AlgoliaSearchDialogProps): import("react").JSX.Element;
|
|
26
|
-
//#endregion
|
|
27
|
-
export { AlgoliaSearchDialogProps, AlgoliaSearchDialog as default };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { SearchLink, SharedProps, TagItem } from "../../contexts/search.js";
|
|
2
|
-
import "./search.js";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
//#region src/components/dialog/search-default.d.ts
|
|
5
|
-
interface DefaultSearchDialogProps extends SharedProps {
|
|
6
|
-
/** @deprecated re-create the dialog instead for other clients, see https://fumadocs.dev/docs/search/orama */
|
|
7
|
-
type?: 'static';
|
|
8
|
-
links?: SearchLink[];
|
|
9
|
-
defaultTag?: string;
|
|
10
|
-
tags?: TagItem[];
|
|
11
|
-
/**
|
|
12
|
-
* Search API URL
|
|
13
|
-
*/
|
|
14
|
-
api?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The debounced delay for performing a search.
|
|
17
|
-
*/
|
|
18
|
-
delayMs?: number;
|
|
19
|
-
footer?: ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Allow to clear tag filters
|
|
22
|
-
*
|
|
23
|
-
* @defaultValue false
|
|
24
|
-
*/
|
|
25
|
-
allowClear?: boolean;
|
|
26
|
-
}
|
|
27
|
-
declare function DefaultSearchDialog({ type, defaultTag, tags, api, delayMs, allowClear, links, footer, ...props }: DefaultSearchDialogProps): import("react").JSX.Element;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { DefaultSearchDialogProps, DefaultSearchDialog as default };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { SearchLink, SharedProps, TagItem } from "../../contexts/search.js";
|
|
2
|
-
import "./search.js";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
import { OramaCloudOptions } from "@vx-oss/docs-core/search/client";
|
|
5
|
-
//#region src/components/dialog/search-orama.d.ts
|
|
6
|
-
interface OramaSearchDialogProps extends SharedProps {
|
|
7
|
-
links?: SearchLink[];
|
|
8
|
-
client: OramaCloudOptions['client'];
|
|
9
|
-
searchOptions?: OramaCloudOptions['params'];
|
|
10
|
-
index?: OramaCloudOptions['index'];
|
|
11
|
-
footer?: ReactNode;
|
|
12
|
-
defaultTag?: string;
|
|
13
|
-
tags?: TagItem[];
|
|
14
|
-
/**
|
|
15
|
-
* Add the "Powered by Orama" label
|
|
16
|
-
*
|
|
17
|
-
* @defaultValue true
|
|
18
|
-
*/
|
|
19
|
-
showOrama?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Allow to clear tag filters
|
|
22
|
-
*
|
|
23
|
-
* @defaultValue false
|
|
24
|
-
*/
|
|
25
|
-
allowClear?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Orama Cloud integration
|
|
29
|
-
*/
|
|
30
|
-
declare function OramaSearchDialog({ client, searchOptions, tags, defaultTag, showOrama, allowClear, index, footer, links, ...props }: OramaSearchDialogProps): import("react").JSX.Element;
|
|
31
|
-
//#endregion
|
|
32
|
-
export { OramaSearchDialogProps, OramaSearchDialog as default };
|