opin-ui 0.0.1
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 +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/home.css +1 -0
- package/css/generated/notebook.css +1 -0
- package/css/generated/shared.css +1 -0
- package/css/lib/base.css +314 -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 +75 -0
- package/css/style.css +9 -0
- package/css/vitepress.css +65 -0
- package/dist/.translations/index.d.ts +49 -0
- package/dist/.translations/keys.js +49 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/components/accordion.d.ts +23 -0
- package/dist/components/accordion.js +68 -0
- package/dist/components/banner.d.ts +33 -0
- package/dist/components/banner.js +85 -0
- package/dist/components/callout.d.ts +41 -0
- package/dist/components/callout.js +53 -0
- package/dist/components/card.d.ts +19 -0
- package/dist/components/card.js +38 -0
- package/dist/components/codeblock.d.ts +61 -0
- package/dist/components/codeblock.js +173 -0
- package/dist/components/codeblock.rsc.d.ts +20 -0
- package/dist/components/codeblock.rsc.js +22 -0
- package/dist/components/dialog/search-algolia.d.ts +36 -0
- package/dist/components/dialog/search-algolia.js +64 -0
- package/dist/components/dialog/search-default.d.ts +36 -0
- package/dist/components/dialog/search-default.js +58 -0
- package/dist/components/dialog/search-orama.d.ts +43 -0
- package/dist/components/dialog/search-orama.js +69 -0
- package/dist/components/dialog/search.d.ts +112 -0
- package/dist/components/dialog/search.js +350 -0
- package/dist/components/dynamic-codeblock.core.d.ts +34 -0
- package/dist/components/dynamic-codeblock.core.js +51 -0
- package/dist/components/dynamic-codeblock.d.ts +9 -0
- package/dist/components/dynamic-codeblock.js +17 -0
- package/dist/components/files.d.ts +34 -0
- package/dist/components/files.js +40 -0
- package/dist/components/github-info.d.ts +35 -0
- package/dist/components/github-info.js +75 -0
- package/dist/components/heading.d.ts +13 -0
- package/dist/components/heading.js +38 -0
- package/dist/components/image-zoom.d.ts +23 -0
- package/dist/components/image-zoom.js +32 -0
- package/dist/components/image-zoom2.css +71 -0
- package/dist/components/inline-toc.d.ts +14 -0
- package/dist/components/inline-toc.js +28 -0
- package/dist/components/sidebar/base.d.ts +131 -0
- package/dist/components/sidebar/base.js +274 -0
- package/dist/components/sidebar/link-item.d.ts +22 -0
- package/dist/components/sidebar/link-item.js +38 -0
- package/dist/components/sidebar/page-tree.d.ts +28 -0
- package/dist/components/sidebar/page-tree.js +71 -0
- package/dist/components/sidebar/tabs/dropdown.d.ts +16 -0
- package/dist/components/sidebar/tabs/dropdown.js +71 -0
- package/dist/components/sidebar/tabs/index.d.ts +11 -0
- package/dist/components/sidebar/tabs/index.js +46 -0
- package/dist/components/steps.d.ts +15 -0
- package/dist/components/steps.js +16 -0
- package/dist/components/tabs.d.ts +49 -0
- package/dist/components/tabs.js +88 -0
- package/dist/components/toc/clerk.d.ts +20 -0
- package/dist/components/toc/clerk.js +226 -0
- package/dist/components/toc/default.d.ts +23 -0
- package/dist/components/toc/default.js +259 -0
- package/dist/components/toc/index.d.ts +19 -0
- package/dist/components/toc/index.js +45 -0
- package/dist/components/type-table.d.ts +43 -0
- package/dist/components/type-table.js +117 -0
- package/dist/components/ui/accordion.d.ts +30 -0
- package/dist/components/ui/accordion.js +42 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.js +20 -0
- package/dist/components/ui/collapsible.d.ts +15 -0
- package/dist/components/ui/collapsible.js +21 -0
- package/dist/components/ui/navigation-menu.d.ts +30 -0
- package/dist/components/ui/navigation-menu.js +41 -0
- package/dist/components/ui/popover.d.ts +15 -0
- package/dist/components/ui/popover.js +20 -0
- package/dist/components/ui/scroll-area.d.ts +22 -0
- package/dist/components/ui/scroll-area.js +34 -0
- package/dist/components/ui/tabs.d.ts +36 -0
- package/dist/components/ui/tabs.js +77 -0
- package/dist/contexts/i18n.d.ts +41 -0
- package/dist/contexts/i18n.js +37 -0
- package/dist/contexts/search.d.ts +73 -0
- package/dist/contexts/search.js +68 -0
- package/dist/contexts/tree.d.ts +20 -0
- package/dist/contexts/tree.js +38 -0
- package/dist/i18n.d.ts +16 -0
- package/dist/i18n.js +38 -0
- package/dist/layouts/docs/client.d.ts +34 -0
- package/dist/layouts/docs/client.js +92 -0
- package/dist/layouts/docs/index.d.ts +44 -0
- package/dist/layouts/docs/index.js +22 -0
- package/dist/layouts/docs/page/index.d.ts +115 -0
- package/dist/layouts/docs/page/index.js +124 -0
- package/dist/layouts/docs/page/slots/breadcrumb.d.ts +13 -0
- package/dist/layouts/docs/page/slots/breadcrumb.js +44 -0
- package/dist/layouts/docs/page/slots/container.d.ts +6 -0
- package/dist/layouts/docs/page/slots/container.js +17 -0
- package/dist/layouts/docs/page/slots/footer.d.ts +22 -0
- package/dist/layouts/docs/page/slots/footer.js +56 -0
- package/dist/layouts/docs/page/slots/toc.d.ts +62 -0
- package/dist/layouts/docs/page/slots/toc.js +182 -0
- package/dist/layouts/docs/slots/container.d.ts +6 -0
- package/dist/layouts/docs/slots/container.js +36 -0
- package/dist/layouts/docs/slots/header.d.ts +6 -0
- package/dist/layouts/docs/slots/header.js +38 -0
- package/dist/layouts/docs/slots/sidebar.d.ts +29 -0
- package/dist/layouts/docs/slots/sidebar.js +326 -0
- package/dist/layouts/flux/index.d.ts +73 -0
- package/dist/layouts/flux/index.js +146 -0
- package/dist/layouts/flux/page/index.d.ts +102 -0
- package/dist/layouts/flux/page/index.js +104 -0
- package/dist/layouts/flux/page/slots/breadcrumb.d.ts +13 -0
- package/dist/layouts/flux/page/slots/breadcrumb.js +44 -0
- package/dist/layouts/flux/page/slots/container.d.ts +6 -0
- package/dist/layouts/flux/page/slots/container.js +17 -0
- package/dist/layouts/flux/page/slots/footer.d.ts +22 -0
- package/dist/layouts/flux/page/slots/footer.js +56 -0
- package/dist/layouts/flux/page/slots/toc.d.ts +38 -0
- package/dist/layouts/flux/page/slots/toc.js +181 -0
- package/dist/layouts/flux/slots/container.d.ts +6 -0
- package/dist/layouts/flux/slots/container.js +13 -0
- package/dist/layouts/flux/slots/sidebar.d.ts +22 -0
- package/dist/layouts/flux/slots/sidebar.js +237 -0
- package/dist/layouts/flux/slots/tab-dropdown.d.ts +16 -0
- package/dist/layouts/flux/slots/tab-dropdown.js +85 -0
- package/dist/layouts/home/index.d.ts +28 -0
- package/dist/layouts/home/index.js +40 -0
- package/dist/layouts/home/navbar.d.ts +10 -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 +6 -0
- package/dist/layouts/home/slots/container.js +13 -0
- package/dist/layouts/home/slots/header.d.ts +9 -0
- package/dist/layouts/home/slots/header.js +239 -0
- package/dist/layouts/notebook/client.d.ts +36 -0
- package/dist/layouts/notebook/client.js +69 -0
- package/dist/layouts/notebook/index.d.ts +37 -0
- package/dist/layouts/notebook/index.js +22 -0
- package/dist/layouts/notebook/page/index.d.ts +115 -0
- package/dist/layouts/notebook/page/index.js +124 -0
- package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +13 -0
- package/dist/layouts/notebook/page/slots/breadcrumb.js +44 -0
- package/dist/layouts/notebook/page/slots/container.d.ts +6 -0
- package/dist/layouts/notebook/page/slots/container.js +17 -0
- package/dist/layouts/notebook/page/slots/footer.d.ts +22 -0
- package/dist/layouts/notebook/page/slots/footer.js +56 -0
- package/dist/layouts/notebook/page/slots/toc.d.ts +62 -0
- package/dist/layouts/notebook/page/slots/toc.js +181 -0
- package/dist/layouts/notebook/slots/container.d.ts +6 -0
- package/dist/layouts/notebook/slots/container.js +38 -0
- package/dist/layouts/notebook/slots/header.d.ts +6 -0
- package/dist/layouts/notebook/slots/header.js +194 -0
- package/dist/layouts/notebook/slots/sidebar.d.ts +30 -0
- package/dist/layouts/notebook/slots/sidebar.js +298 -0
- package/dist/layouts/shared/client.d.ts +44 -0
- package/dist/layouts/shared/client.js +84 -0
- package/dist/layouts/shared/index.d.ts +178 -0
- package/dist/layouts/shared/index.js +98 -0
- package/dist/layouts/shared/page-actions.d.ts +35 -0
- package/dist/layouts/shared/page-actions.js +195 -0
- package/dist/layouts/shared/slots/language-select.d.ts +18 -0
- package/dist/layouts/shared/slots/language-select.js +43 -0
- package/dist/layouts/shared/slots/search-trigger.d.ts +22 -0
- package/dist/layouts/shared/slots/search-trigger.js +53 -0
- package/dist/layouts/shared/slots/theme-switch.d.ts +13 -0
- package/dist/layouts/shared/slots/theme-switch.js +65 -0
- package/dist/legacy/layout.d.ts +36 -0
- package/dist/legacy/layout.js +44 -0
- package/dist/legacy/sidebar.d.ts +17 -0
- package/dist/legacy/sidebar.js +33 -0
- package/dist/mdx.d.ts +45 -0
- package/dist/mdx.js +70 -0
- package/dist/mdx.server.d.ts +15 -0
- package/dist/mdx.server.js +20 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/controlled.d.ts +31 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/controlled.js +461 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/index.d.ts +2 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +7 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/uncontrolled.js +17 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js +53 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js +25 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/element-tests.js +12 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js +45 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js +8 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js +55 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js +21 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js +14 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js +22 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/get-scale.js +27 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js +31 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js +75 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js +4 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/parse-position.js +7 -0
- package/dist/node_modules/.bun/react-medium-image-zoom@5.4.8_7492c01c6988791b/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js +5 -0
- package/dist/og/takumi.d.ts +21 -0
- package/dist/og/takumi.js +91 -0
- package/dist/og.d.ts +22 -0
- package/dist/og.js +91 -0
- package/dist/page.d.ts +35 -0
- package/dist/page.js +33 -0
- package/dist/provider/base.d.ts +49 -0
- package/dist/provider/base.js +32 -0
- package/dist/provider/next.d.ts +20 -0
- package/dist/provider/next.js +17 -0
- package/dist/provider/react-router.d.ts +20 -0
- package/dist/provider/react-router.js +17 -0
- package/dist/provider/tanstack.d.ts +20 -0
- package/dist/provider/tanstack.js +17 -0
- package/dist/provider/waku.d.ts +20 -0
- package/dist/provider/waku.js +17 -0
- package/dist/style.css +3534 -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 +6 -0
- package/dist/utils/use-copy-button.js +26 -0
- package/dist/utils/use-footer-items.d.ts +9 -0
- package/dist/utils/use-footer-items.js +24 -0
- package/dist/utils/use-is-scroll-top.d.ts +8 -0
- package/dist/utils/use-is-scroll-top.js +20 -0
- package/package.json +200 -0
package/dist/utils/cn.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/utils/urls.ts
|
|
2
|
+
function normalize(urlOrPath) {
|
|
3
|
+
if (urlOrPath.length > 1 && urlOrPath.endsWith("/")) return urlOrPath.slice(0, -1);
|
|
4
|
+
return urlOrPath;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @returns if `href` is matching the given pathname
|
|
8
|
+
*/
|
|
9
|
+
function isActive(href, pathname, nested = false) {
|
|
10
|
+
href = normalize(href);
|
|
11
|
+
pathname = normalize(pathname);
|
|
12
|
+
return href === pathname || nested && pathname.startsWith(`${href}/`);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { isActive, normalize };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
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 };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as PageTree from "fumadocs-core/page-tree";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/use-footer-items.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @returns a list of page tree items (linear), that you can obtain footer items
|
|
6
|
+
*/
|
|
7
|
+
declare function useFooterItems(): PageTree.Item[];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { useFooterItems };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
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 };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
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 };
|
package/package.json
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "opin-ui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "The Radix UI version of Opin UI",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Docs",
|
|
7
|
+
"OpinUI"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://fumadocs.dev",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"author": "Squareexp",
|
|
12
|
+
"repository": "github:squareexp/opinui",
|
|
13
|
+
"files": [
|
|
14
|
+
"css",
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"exports": {
|
|
19
|
+
"./components/accordion": "./dist/components/accordion.js",
|
|
20
|
+
"./components/banner": "./dist/components/banner.js",
|
|
21
|
+
"./components/callout": "./dist/components/callout.js",
|
|
22
|
+
"./components/card": "./dist/components/card.js",
|
|
23
|
+
"./components/codeblock": "./dist/components/codeblock.js",
|
|
24
|
+
"./components/codeblock.rsc": "./dist/components/codeblock.rsc.js",
|
|
25
|
+
"./components/dialog/search": "./dist/components/dialog/search.js",
|
|
26
|
+
"./components/dialog/search-algolia": "./dist/components/dialog/search-algolia.js",
|
|
27
|
+
"./components/dialog/search-default": "./dist/components/dialog/search-default.js",
|
|
28
|
+
"./components/dialog/search-orama": "./dist/components/dialog/search-orama.js",
|
|
29
|
+
"./components/dynamic-codeblock": "./dist/components/dynamic-codeblock.js",
|
|
30
|
+
"./components/dynamic-codeblock.core": "./dist/components/dynamic-codeblock.core.js",
|
|
31
|
+
"./components/files": "./dist/components/files.js",
|
|
32
|
+
"./components/github-info": "./dist/components/github-info.js",
|
|
33
|
+
"./components/heading": "./dist/components/heading.js",
|
|
34
|
+
"./components/image-zoom": "./dist/components/image-zoom.js",
|
|
35
|
+
"./components/inline-toc": "./dist/components/inline-toc.js",
|
|
36
|
+
"./components/sidebar/base": "./dist/components/sidebar/base.js",
|
|
37
|
+
"./components/sidebar/link-item": "./dist/components/sidebar/link-item.js",
|
|
38
|
+
"./components/sidebar/page-tree": "./dist/components/sidebar/page-tree.js",
|
|
39
|
+
"./components/sidebar/tabs": "./dist/components/sidebar/tabs/index.js",
|
|
40
|
+
"./components/sidebar/tabs/dropdown": "./dist/components/sidebar/tabs/dropdown.js",
|
|
41
|
+
"./components/steps": "./dist/components/steps.js",
|
|
42
|
+
"./components/tabs": "./dist/components/tabs.js",
|
|
43
|
+
"./components/toc": "./dist/components/toc/index.js",
|
|
44
|
+
"./components/toc/clerk": "./dist/components/toc/clerk.js",
|
|
45
|
+
"./components/toc/default": "./dist/components/toc/default.js",
|
|
46
|
+
"./components/type-table": "./dist/components/type-table.js",
|
|
47
|
+
"./components/ui/accordion": "./dist/components/ui/accordion.js",
|
|
48
|
+
"./components/ui/button": "./dist/components/ui/button.js",
|
|
49
|
+
"./components/ui/collapsible": "./dist/components/ui/collapsible.js",
|
|
50
|
+
"./components/ui/navigation-menu": "./dist/components/ui/navigation-menu.js",
|
|
51
|
+
"./components/ui/popover": "./dist/components/ui/popover.js",
|
|
52
|
+
"./components/ui/scroll-area": "./dist/components/ui/scroll-area.js",
|
|
53
|
+
"./components/ui/tabs": "./dist/components/ui/tabs.js",
|
|
54
|
+
"./contexts/i18n": "./dist/contexts/i18n.js",
|
|
55
|
+
"./contexts/search": "./dist/contexts/search.js",
|
|
56
|
+
"./contexts/tree": "./dist/contexts/tree.js",
|
|
57
|
+
"./i18n": "./dist/i18n.js",
|
|
58
|
+
"./layouts/docs": "./dist/layouts/docs/index.js",
|
|
59
|
+
"./layouts/docs/page": "./dist/layouts/docs/page/index.js",
|
|
60
|
+
"./layouts/docs/page/slots/breadcrumb": "./dist/layouts/docs/page/slots/breadcrumb.js",
|
|
61
|
+
"./layouts/docs/page/slots/container": "./dist/layouts/docs/page/slots/container.js",
|
|
62
|
+
"./layouts/docs/page/slots/footer": "./dist/layouts/docs/page/slots/footer.js",
|
|
63
|
+
"./layouts/docs/page/slots/toc": "./dist/layouts/docs/page/slots/toc.js",
|
|
64
|
+
"./layouts/docs/slots/container": "./dist/layouts/docs/slots/container.js",
|
|
65
|
+
"./layouts/docs/slots/header": "./dist/layouts/docs/slots/header.js",
|
|
66
|
+
"./layouts/docs/slots/sidebar": "./dist/layouts/docs/slots/sidebar.js",
|
|
67
|
+
"./layouts/flux": "./dist/layouts/flux/index.js",
|
|
68
|
+
"./layouts/flux/page": "./dist/layouts/flux/page/index.js",
|
|
69
|
+
"./layouts/flux/page/slots/breadcrumb": "./dist/layouts/flux/page/slots/breadcrumb.js",
|
|
70
|
+
"./layouts/flux/page/slots/container": "./dist/layouts/flux/page/slots/container.js",
|
|
71
|
+
"./layouts/flux/page/slots/footer": "./dist/layouts/flux/page/slots/footer.js",
|
|
72
|
+
"./layouts/flux/page/slots/toc": "./dist/layouts/flux/page/slots/toc.js",
|
|
73
|
+
"./layouts/flux/slots/container": "./dist/layouts/flux/slots/container.js",
|
|
74
|
+
"./layouts/flux/slots/sidebar": "./dist/layouts/flux/slots/sidebar.js",
|
|
75
|
+
"./layouts/flux/slots/tab-dropdown": "./dist/layouts/flux/slots/tab-dropdown.js",
|
|
76
|
+
"./layouts/home": "./dist/layouts/home/index.js",
|
|
77
|
+
"./layouts/home/navbar": "./dist/layouts/home/navbar.js",
|
|
78
|
+
"./layouts/home/not-found": "./dist/layouts/home/not-found.js",
|
|
79
|
+
"./layouts/home/slots/container": "./dist/layouts/home/slots/container.js",
|
|
80
|
+
"./layouts/home/slots/header": "./dist/layouts/home/slots/header.js",
|
|
81
|
+
"./layouts/notebook": "./dist/layouts/notebook/index.js",
|
|
82
|
+
"./layouts/notebook/page": "./dist/layouts/notebook/page/index.js",
|
|
83
|
+
"./layouts/notebook/page/slots/breadcrumb": "./dist/layouts/notebook/page/slots/breadcrumb.js",
|
|
84
|
+
"./layouts/notebook/page/slots/container": "./dist/layouts/notebook/page/slots/container.js",
|
|
85
|
+
"./layouts/notebook/page/slots/footer": "./dist/layouts/notebook/page/slots/footer.js",
|
|
86
|
+
"./layouts/notebook/page/slots/toc": "./dist/layouts/notebook/page/slots/toc.js",
|
|
87
|
+
"./layouts/notebook/slots/container": "./dist/layouts/notebook/slots/container.js",
|
|
88
|
+
"./layouts/notebook/slots/header": "./dist/layouts/notebook/slots/header.js",
|
|
89
|
+
"./layouts/notebook/slots/sidebar": "./dist/layouts/notebook/slots/sidebar.js",
|
|
90
|
+
"./layouts/shared": "./dist/layouts/shared/index.js",
|
|
91
|
+
"./layouts/shared/slots/language-select": "./dist/layouts/shared/slots/language-select.js",
|
|
92
|
+
"./layouts/shared/slots/search-trigger": "./dist/layouts/shared/slots/search-trigger.js",
|
|
93
|
+
"./layouts/shared/slots/theme-switch": "./dist/layouts/shared/slots/theme-switch.js",
|
|
94
|
+
"./legacy/layout": "./dist/legacy/layout.js",
|
|
95
|
+
"./legacy/sidebar": "./dist/legacy/sidebar.js",
|
|
96
|
+
"./mdx": {
|
|
97
|
+
"types": "./dist/mdx.d.ts",
|
|
98
|
+
"node": "./dist/mdx.server.js",
|
|
99
|
+
"import": "./dist/mdx.js"
|
|
100
|
+
},
|
|
101
|
+
"./og": "./dist/og.js",
|
|
102
|
+
"./og/takumi": "./dist/og/takumi.js",
|
|
103
|
+
"./page": "./dist/page.js",
|
|
104
|
+
"./provider/base": "./dist/provider/base.js",
|
|
105
|
+
"./provider/next": "./dist/provider/next.js",
|
|
106
|
+
"./provider/react-router": "./dist/provider/react-router.js",
|
|
107
|
+
"./provider/tanstack": "./dist/provider/tanstack.js",
|
|
108
|
+
"./provider/waku": "./dist/provider/waku.js",
|
|
109
|
+
"./utils/use-copy-button": "./dist/utils/use-copy-button.js",
|
|
110
|
+
"./utils/use-footer-items": "./dist/utils/use-footer-items.js",
|
|
111
|
+
"./utils/use-is-scroll-top": "./dist/utils/use-is-scroll-top.js",
|
|
112
|
+
"./package.json": "./package.json",
|
|
113
|
+
"./components/image-zoom2.css": "./dist/components/image-zoom2.css",
|
|
114
|
+
"./style.css": "./dist/style.css",
|
|
115
|
+
"./css/*": "./css/*",
|
|
116
|
+
"./utils/get-sidebar-tabs": "./dist/components/sidebar/tabs/index.js",
|
|
117
|
+
"./components/tabs.unstyled": "./dist/components/ui/tabs.js"
|
|
118
|
+
},
|
|
119
|
+
"publishConfig": {
|
|
120
|
+
"access": "public"
|
|
121
|
+
},
|
|
122
|
+
"scripts": {
|
|
123
|
+
"build": "bun run build:layout && bun run build:tailwind",
|
|
124
|
+
"build:layout": "tsdown",
|
|
125
|
+
"build:tailwind": "tailwindcss -i css/style.css -o ./dist/style.css",
|
|
126
|
+
"clean": "rimraf dist",
|
|
127
|
+
"dev": "concurrently \"tsdown --watch --clean false\" \"tailwindcss -i css/style.css -o ./dist/style.css -w\"",
|
|
128
|
+
"lint": "oxlint .",
|
|
129
|
+
"types:check": "tsc --noEmit"
|
|
130
|
+
},
|
|
131
|
+
"dependencies": {
|
|
132
|
+
"@fuma-translate/react": "^1.0.2",
|
|
133
|
+
"@fumadocs/tailwind": "latest",
|
|
134
|
+
"@radix-ui/react-accordion": "^1.2.13",
|
|
135
|
+
"@radix-ui/react-collapsible": "^1.1.13",
|
|
136
|
+
"@radix-ui/react-dialog": "^1.1.16",
|
|
137
|
+
"@radix-ui/react-direction": "^1.1.2",
|
|
138
|
+
"@radix-ui/react-navigation-menu": "^1.2.15",
|
|
139
|
+
"@radix-ui/react-popover": "^1.1.16",
|
|
140
|
+
"@radix-ui/react-presence": "^1.1.6",
|
|
141
|
+
"@radix-ui/react-scroll-area": "^1.2.11",
|
|
142
|
+
"@radix-ui/react-slot": "^1.2.5",
|
|
143
|
+
"@radix-ui/react-tabs": "^1.1.14",
|
|
144
|
+
"class-variance-authority": "^0.7.1",
|
|
145
|
+
"lucide-react": "^1.17.0",
|
|
146
|
+
"motion": "^12.40.0",
|
|
147
|
+
"next-themes": "^0.4.6",
|
|
148
|
+
"react-remove-scroll": "^2.7.2",
|
|
149
|
+
"rehype-raw": "^7.0.0",
|
|
150
|
+
"scroll-into-view-if-needed": "^3.1.0",
|
|
151
|
+
"shiki": "^4.2.0",
|
|
152
|
+
"tailwind-merge": "^3.6.0",
|
|
153
|
+
"unist-util-visit": "^5.1.0"
|
|
154
|
+
},
|
|
155
|
+
"devDependencies": {
|
|
156
|
+
"@fumadocs/cli": "latest",
|
|
157
|
+
"@tailwindcss/cli": "^4.3.0",
|
|
158
|
+
"@tailwindcss/oxide": "^4.3.0",
|
|
159
|
+
"@tsdown/css": "^0.22.2",
|
|
160
|
+
"@types/hast": "^3.0.4",
|
|
161
|
+
"@types/mdx": "^2.0.14",
|
|
162
|
+
"@types/node": "^25.9.2",
|
|
163
|
+
"@types/react": "^19.2.17",
|
|
164
|
+
"@types/react-dom": "^19.2.3",
|
|
165
|
+
"fuma-cli": "^0.1.1",
|
|
166
|
+
"fuma-translate": "latest",
|
|
167
|
+
"fumadocs-core": "16.10.7",
|
|
168
|
+
"react-medium-image-zoom": "^5.4.7",
|
|
169
|
+
"tailwindcss": "^4.3.0",
|
|
170
|
+
"tsconfig": "workspace:*",
|
|
171
|
+
"tsdown": "0.22.2",
|
|
172
|
+
"unified": "^11.0.5"
|
|
173
|
+
},
|
|
174
|
+
"peerDependencies": {
|
|
175
|
+
"@takumi-rs/image-response": "*",
|
|
176
|
+
"@types/mdx": "*",
|
|
177
|
+
"@types/react": "*",
|
|
178
|
+
"fumadocs-core": "16.10.7",
|
|
179
|
+
"next": "16.x.x",
|
|
180
|
+
"react": "^19.2.0",
|
|
181
|
+
"react-dom": "^19.2.0"
|
|
182
|
+
},
|
|
183
|
+
"peerDependenciesMeta": {
|
|
184
|
+
"next": {
|
|
185
|
+
"optional": true
|
|
186
|
+
},
|
|
187
|
+
"@takumi-rs/image-response": {
|
|
188
|
+
"optional": true
|
|
189
|
+
},
|
|
190
|
+
"@types/react": {
|
|
191
|
+
"optional": true
|
|
192
|
+
},
|
|
193
|
+
"@types/mdx": {
|
|
194
|
+
"optional": true
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"inlinedDependencies": {
|
|
198
|
+
"react-medium-image-zoom": "5.4.8"
|
|
199
|
+
}
|
|
200
|
+
}
|