@fumadocs/base-ui 16.17.7 → 16.17.9
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/css/generated/flux.css +1 -1
- package/css/generated/glass.css +1 -1
- package/css/generated/shared.css +1 -1
- package/css/generated/spacious.css +1 -1
- package/dist/.translations/index.d.ts +1 -3
- package/dist/.translations/keys.js +1 -2
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/components/accordion.d.ts +1 -3
- package/dist/components/accordion.js +1 -2
- package/dist/components/banner.d.ts +1 -2
- package/dist/components/banner.js +1 -2
- package/dist/components/callout.d.ts +1 -3
- package/dist/components/callout.js +1 -2
- package/dist/components/card.d.ts +1 -3
- package/dist/components/card.js +1 -2
- package/dist/components/codeblock.d.ts +1 -3
- package/dist/components/codeblock.js +1 -2
- package/dist/components/codeblock.rsc.d.ts +7 -3
- package/dist/components/codeblock.rsc.js +21 -9
- package/dist/components/dialog/search-algolia.d.ts +1 -3
- package/dist/components/dialog/search-algolia.js +1 -2
- package/dist/components/dialog/search-default.d.ts +1 -3
- package/dist/components/dialog/search-default.js +1 -2
- package/dist/components/dialog/search-orama.d.ts +1 -3
- package/dist/components/dialog/search-orama.js +1 -2
- package/dist/components/dialog/search.d.ts +13 -16
- package/dist/components/dialog/search.js +19 -31
- package/dist/components/dynamic-codeblock.core.d.ts +9 -6
- package/dist/components/dynamic-codeblock.core.js +55 -18
- package/dist/components/dynamic-codeblock.d.ts +2 -4
- package/dist/components/dynamic-codeblock.js +1 -2
- package/dist/components/files.d.ts +1 -3
- package/dist/components/files.js +1 -2
- package/dist/components/github-info.d.ts +1 -3
- package/dist/components/github-info.js +1 -2
- package/dist/components/heading.d.ts +1 -2
- package/dist/components/heading.js +1 -2
- package/dist/components/image-zoom.d.ts +3 -5
- package/dist/components/image-zoom.js +2 -3
- package/dist/components/inline-toc.d.ts +1 -3
- package/dist/components/inline-toc.js +1 -2
- package/dist/components/sidebar/base.d.ts +0 -1
- package/dist/components/sidebar/base.js +1 -2
- package/dist/components/sidebar/link-item.d.ts +1 -2
- package/dist/components/sidebar/link-item.js +1 -2
- package/dist/components/sidebar/page-tree.d.ts +1 -2
- package/dist/components/sidebar/page-tree.js +1 -2
- package/dist/components/sidebar/tabs/dropdown.d.ts +1 -3
- package/dist/components/sidebar/tabs/dropdown.js +1 -2
- package/dist/components/sidebar/tabs/index.d.ts +1 -3
- package/dist/components/sidebar/tabs/index.js +1 -2
- package/dist/components/steps.d.ts +1 -3
- package/dist/components/steps.js +1 -2
- package/dist/components/tabs.d.ts +2 -4
- package/dist/components/tabs.js +1 -2
- package/dist/components/toc/block.d.ts +2 -6
- package/dist/components/toc/block.js +6 -13
- package/dist/components/toc/clerk.d.ts +2 -7
- package/dist/components/toc/clerk.js +85 -120
- package/dist/components/toc/default.d.ts +2 -7
- package/dist/components/toc/default.js +112 -149
- package/dist/components/toc/index.d.ts +1 -6
- package/dist/components/toc/index.js +1 -2
- package/dist/components/type-table.d.ts +1 -3
- package/dist/components/type-table.js +1 -2
- package/dist/components/ui/accordion.d.ts +1 -3
- package/dist/components/ui/accordion.js +1 -2
- package/dist/components/ui/button.d.ts +1 -3
- package/dist/components/ui/button.js +1 -2
- package/dist/components/ui/collapsible.d.ts +1 -3
- package/dist/components/ui/collapsible.js +1 -2
- package/dist/components/ui/popover.d.ts +1 -3
- package/dist/components/ui/popover.js +1 -2
- package/dist/components/ui/tabs.d.ts +1 -6
- package/dist/components/ui/tabs.js +1 -2
- package/dist/contexts/i18n.d.ts +1 -2
- package/dist/contexts/i18n.js +1 -2
- package/dist/contexts/search.d.ts +1 -2
- package/dist/contexts/search.js +1 -2
- package/dist/contexts/tree.d.ts +1 -2
- package/dist/contexts/tree.js +1 -2
- package/dist/i18n.d.ts +0 -2
- package/dist/i18n.js +1 -2
- package/dist/layouts/docs/client.d.ts +1 -2
- package/dist/layouts/docs/client.js +1 -2
- package/dist/layouts/docs/index.d.ts +0 -2
- package/dist/layouts/docs/index.js +1 -2
- package/dist/layouts/docs/page/index.d.ts +0 -2
- package/dist/layouts/docs/page/index.js +1 -2
- package/dist/layouts/docs/page/slots/breadcrumb.d.ts +1 -3
- package/dist/layouts/docs/page/slots/breadcrumb.js +1 -2
- package/dist/layouts/docs/page/slots/container.d.ts +1 -3
- package/dist/layouts/docs/page/slots/container.js +1 -2
- package/dist/layouts/docs/page/slots/footer.d.ts +1 -2
- package/dist/layouts/docs/page/slots/footer.js +1 -2
- package/dist/layouts/docs/page/slots/toc.d.ts +5 -7
- package/dist/layouts/docs/page/slots/toc.js +1 -2
- package/dist/layouts/docs/slots/container.d.ts +1 -3
- package/dist/layouts/docs/slots/container.js +1 -2
- package/dist/layouts/docs/slots/header.d.ts +1 -3
- package/dist/layouts/docs/slots/header.js +1 -2
- package/dist/layouts/docs/slots/sidebar.d.ts +2 -4
- package/dist/layouts/docs/slots/sidebar.js +1 -2
- package/dist/layouts/flux/index.d.ts +1 -2
- package/dist/layouts/flux/index.js +1 -2
- package/dist/layouts/flux/page/index.d.ts +0 -2
- package/dist/layouts/flux/page/index.js +1 -2
- package/dist/layouts/flux/page/slots/breadcrumb.d.ts +1 -3
- package/dist/layouts/flux/page/slots/breadcrumb.js +1 -2
- package/dist/layouts/flux/page/slots/container.d.ts +1 -3
- package/dist/layouts/flux/page/slots/container.js +1 -2
- package/dist/layouts/flux/page/slots/footer.d.ts +1 -2
- package/dist/layouts/flux/page/slots/footer.js +1 -2
- package/dist/layouts/flux/page/slots/toc.d.ts +5 -7
- package/dist/layouts/flux/page/slots/toc.js +1 -2
- package/dist/layouts/flux/slots/container.d.ts +1 -3
- package/dist/layouts/flux/slots/container.js +1 -2
- package/dist/layouts/flux/slots/sidebar.d.ts +2 -4
- package/dist/layouts/flux/slots/sidebar.js +1 -2
- package/dist/layouts/flux/slots/tab-dropdown.d.ts +1 -3
- package/dist/layouts/flux/slots/tab-dropdown.js +1 -2
- package/dist/layouts/glass/index.d.ts +0 -2
- package/dist/layouts/glass/index.js +1 -2
- package/dist/layouts/glass/layout-tabs.js +1 -2
- package/dist/layouts/glass/page/index.d.ts +0 -2
- package/dist/layouts/glass/page/index.js +1 -2
- package/dist/layouts/glass/page/slots/breadcrumb.d.ts +1 -3
- package/dist/layouts/glass/page/slots/breadcrumb.js +1 -2
- package/dist/layouts/glass/page/slots/footer.d.ts +1 -2
- package/dist/layouts/glass/page/slots/footer.js +1 -2
- package/dist/layouts/glass/page/slots/toc.d.ts +2 -4
- package/dist/layouts/glass/page/slots/toc.js +1 -2
- package/dist/layouts/glass/slots/header.d.ts +1 -3
- package/dist/layouts/glass/slots/header.js +1 -2
- package/dist/layouts/glass/slots/sidebar.d.ts +1 -3
- package/dist/layouts/glass/slots/sidebar.js +1 -2
- package/dist/layouts/home/index.d.ts +1 -2
- package/dist/layouts/home/index.js +1 -2
- package/dist/layouts/home/navbar.d.ts +1 -3
- package/dist/layouts/home/navbar.js +1 -2
- package/dist/layouts/home/not-found.d.ts +1 -3
- package/dist/layouts/home/not-found.js +1 -2
- package/dist/layouts/home/slots/container.d.ts +1 -3
- package/dist/layouts/home/slots/container.js +1 -2
- package/dist/layouts/home/slots/header.d.ts +1 -3
- package/dist/layouts/home/slots/header.js +1 -2
- package/dist/layouts/notebook/client.d.ts +1 -2
- package/dist/layouts/notebook/client.js +1 -2
- package/dist/layouts/notebook/index.d.ts +0 -2
- package/dist/layouts/notebook/index.js +1 -2
- package/dist/layouts/notebook/page/index.d.ts +0 -2
- package/dist/layouts/notebook/page/index.js +1 -2
- package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +1 -3
- package/dist/layouts/notebook/page/slots/breadcrumb.js +1 -2
- package/dist/layouts/notebook/page/slots/container.d.ts +1 -3
- package/dist/layouts/notebook/page/slots/container.js +1 -2
- package/dist/layouts/notebook/page/slots/footer.d.ts +1 -2
- package/dist/layouts/notebook/page/slots/footer.js +1 -2
- package/dist/layouts/notebook/page/slots/toc.d.ts +5 -7
- package/dist/layouts/notebook/page/slots/toc.js +1 -2
- package/dist/layouts/notebook/slots/container.d.ts +1 -3
- package/dist/layouts/notebook/slots/container.js +1 -2
- package/dist/layouts/notebook/slots/header.d.ts +1 -3
- package/dist/layouts/notebook/slots/header.js +1 -2
- package/dist/layouts/notebook/slots/sidebar.d.ts +1 -3
- package/dist/layouts/notebook/slots/sidebar.js +1 -2
- package/dist/layouts/shared/client.d.ts +1 -3
- package/dist/layouts/shared/client.js +1 -2
- package/dist/layouts/shared/index.d.ts +0 -2
- package/dist/layouts/shared/index.js +1 -2
- package/dist/layouts/shared/page-actions.d.ts +1 -3
- package/dist/layouts/shared/page-actions.js +1 -2
- package/dist/layouts/shared/slots/language-select.d.ts +1 -3
- package/dist/layouts/shared/slots/language-select.js +1 -2
- package/dist/layouts/shared/slots/search-trigger.d.ts +1 -3
- package/dist/layouts/shared/slots/search-trigger.js +1 -2
- package/dist/layouts/shared/slots/theme-switch.d.ts +1 -3
- package/dist/layouts/shared/slots/theme-switch.js +1 -2
- package/dist/layouts/spacious/index.d.ts +1 -2
- package/dist/layouts/spacious/index.js +1 -2
- package/dist/layouts/spacious/page/index.d.ts +0 -2
- package/dist/layouts/spacious/page/index.js +1 -2
- package/dist/layouts/spacious/page/slots/breadcrumb.d.ts +1 -3
- package/dist/layouts/spacious/page/slots/breadcrumb.js +1 -2
- package/dist/layouts/spacious/page/slots/footer.d.ts +1 -2
- package/dist/layouts/spacious/page/slots/footer.js +1 -2
- package/dist/layouts/spacious/page/slots/toc.d.ts +5 -6
- package/dist/layouts/spacious/page/slots/toc.js +1 -2
- package/dist/layouts/spacious/slots/actions.d.ts +1 -3
- package/dist/layouts/spacious/slots/actions.js +1 -2
- package/dist/layouts/spacious/slots/header.d.ts +1 -3
- package/dist/layouts/spacious/slots/header.js +1 -2
- package/dist/layouts/spacious/slots/sidebar.d.ts +2 -4
- package/dist/layouts/spacious/slots/sidebar.js +1 -2
- package/dist/mdx.d.ts +0 -2
- package/dist/mdx.js +1 -2
- package/dist/mdx.server.d.ts +0 -2
- package/dist/mdx.server.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/controlled.d.ts +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/controlled.js +1 -2
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +3 -0
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/uncontrolled.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/element-tests.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-scale.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js +1 -2
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js +3 -0
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/parse-position.js +1 -2
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js +1 -2
- package/dist/og/takumi.d.ts +1 -3
- package/dist/og/takumi.js +1 -2
- package/dist/og.d.ts +1 -2
- package/dist/og.js +1 -2
- package/dist/page.d.ts +0 -2
- package/dist/page.js +1 -2
- package/dist/provider/astro.d.ts +1 -3
- package/dist/provider/astro.js +17 -2
- package/dist/provider/base.d.ts +0 -2
- package/dist/provider/base.js +1 -2
- package/dist/provider/next.d.ts +1 -3
- package/dist/provider/next.js +1 -2
- package/dist/provider/react-router.d.ts +1 -3
- package/dist/provider/react-router.js +1 -2
- package/dist/provider/tanstack.d.ts +1 -3
- package/dist/provider/tanstack.js +1 -2
- package/dist/provider/waku.d.ts +1 -3
- package/dist/provider/waku.js +1 -2
- package/dist/style.css +3 -6
- package/dist/tailwind/typography.js +1 -2
- package/dist/utils/cn.js +1 -2
- package/dist/utils/hotkey.js +1 -2
- package/dist/utils/merge-refs.js +1 -2
- package/dist/utils/urls.js +1 -2
- package/dist/utils/use-copy-button.d.ts +1 -3
- package/dist/utils/use-copy-button.js +1 -2
- package/dist/utils/use-footer-items.d.ts +1 -3
- package/dist/utils/use-footer-items.js +1 -2
- package/dist/utils/use-is-scroll-top.d.ts +1 -3
- package/dist/utils/use-is-scroll-top.js +1 -2
- package/package.json +11 -12
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +0 -5
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/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.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/index.d.ts +0 -0
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { BreadcrumbOptions } from "fumadocs-core/breadcrumb";
|
|
3
|
-
//#region src/layouts/flux/page/slots/breadcrumb.d.ts
|
|
4
3
|
export type BreadcrumbProps = BreadcrumbOptions & ComponentProps<'div'>;
|
|
5
|
-
export declare function Breadcrumb({ includeRoot, includeSeparator, includePage, ...props }: BreadcrumbProps): import("react").JSX.Element | null;
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function Breadcrumb({ includeRoot, includeSeparator, includePage, ...props }: BreadcrumbProps): import("react").JSX.Element | null;
|
|
@@ -6,7 +6,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import { ChevronRight } from "lucide-react";
|
|
7
7
|
import { Fragment as Fragment$1, useMemo } from "react";
|
|
8
8
|
import { getBreadcrumbItemsFromPath } from "fumadocs-core/breadcrumb";
|
|
9
|
-
|
|
9
|
+
// src/layouts/flux/page/slots/breadcrumb.tsx
|
|
10
10
|
function Breadcrumb({ includeRoot, includeSeparator, includePage, ...props }) {
|
|
11
11
|
const path = useTreePath();
|
|
12
12
|
const { root } = useTreeContext();
|
|
@@ -40,5 +40,4 @@ function Breadcrumb({ includeRoot, includeSeparator, includePage, ...props }) {
|
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { Breadcrumb };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
|
|
3
|
-
export declare function Container(props: ComponentProps<'article'>): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function Container(props: ComponentProps<'article'>): import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../../../../utils/cn.js";
|
|
3
3
|
import { useDocsPage } from "../index.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/layouts/flux/page/slots/container.tsx
|
|
6
6
|
function Container(props) {
|
|
7
7
|
const { full } = useDocsPage();
|
|
8
8
|
return /* @__PURE__ */ jsx("main", {
|
|
@@ -18,5 +18,4 @@ function Container(props) {
|
|
|
18
18
|
})
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { Container };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
3
|
-
//#region src/layouts/flux/page/slots/footer.d.ts
|
|
4
3
|
type Item = Pick<PageTree.Item, 'name' | 'description' | 'url'>;
|
|
5
4
|
export interface FooterProps extends ComponentProps<'div'> {
|
|
6
5
|
/**
|
|
@@ -12,4 +11,4 @@ export interface FooterProps extends ComponentProps<'div'> {
|
|
|
12
11
|
};
|
|
13
12
|
}
|
|
14
13
|
export declare function Footer({ items, children, className, ...props }: FooterProps): import("react").JSX.Element;
|
|
15
|
-
|
|
14
|
+
export {};
|
|
@@ -8,7 +8,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
9
9
|
import { useMemo } from "react";
|
|
10
10
|
import { useTranslations } from "@fuma-translate/react";
|
|
11
|
-
|
|
11
|
+
// src/layouts/flux/page/slots/footer.tsx
|
|
12
12
|
function Footer({ items, children, className, ...props }) {
|
|
13
13
|
const footerList = useFooterItems();
|
|
14
14
|
const pathname = usePathname();
|
|
@@ -52,5 +52,4 @@ function FooterItem({ item, index }) {
|
|
|
52
52
|
})]
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
//#endregion
|
|
56
55
|
export { Footer };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { TOCItemsProps
|
|
2
|
-
import { TOCItemsProps as TOCItemsProps$1
|
|
3
|
-
import { TOCItemsProps as TOCItemsProps$2
|
|
4
|
-
import { TOCProvider as TOCProvider$1, TOCProviderProps as TOCProviderProps$1
|
|
1
|
+
import { TOCItemsProps } from "../../../../components/toc/default.js";
|
|
2
|
+
import { TOCItemsProps as TOCItemsProps$1 } from "../../../../components/toc/block.js";
|
|
3
|
+
import { TOCItemsProps as TOCItemsProps$2 } from "../../../../components/toc/clerk.js";
|
|
4
|
+
import { TOCProvider as TOCProvider$1, TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
|
|
5
5
|
import { ComponentProps, ReactNode } from "react";
|
|
6
|
-
//#region src/layouts/flux/page/slots/toc.d.ts
|
|
7
6
|
export type TOCProviderProps = TOCProviderProps$1;
|
|
8
7
|
export declare const TOCProvider: typeof TOCProvider$1;
|
|
9
8
|
export type TOCProps = {
|
|
@@ -28,5 +27,4 @@ export type TOCProps = {
|
|
|
28
27
|
style: 'block';
|
|
29
28
|
list?: TOCItemsProps$1;
|
|
30
29
|
});
|
|
31
|
-
export declare function TOC({ container, trigger, content, header, footer, style, list }: TOCProps): import("react").JSX.Element | undefined;
|
|
32
|
-
//#endregion
|
|
30
|
+
export declare function TOC({ container, trigger, content, header, footer, style, list }: TOCProps): import("react").JSX.Element | undefined;
|
|
@@ -12,7 +12,7 @@ import { createContext, use, useEffect, useEffectEvent, useMemo, useRef, useStat
|
|
|
12
12
|
import { useTranslations } from "@fuma-translate/react";
|
|
13
13
|
import { createPortal } from "react-dom";
|
|
14
14
|
import { AnimatePresence, motion } from "motion/react";
|
|
15
|
-
|
|
15
|
+
// src/layouts/flux/page/slots/toc.tsx
|
|
16
16
|
const TocPopoverContext = createContext(null);
|
|
17
17
|
const variants = {
|
|
18
18
|
normal: default_exports,
|
|
@@ -186,5 +186,4 @@ function PageTOCPopoverContent(props) {
|
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
//#endregion
|
|
190
189
|
export { TOC, TOCProvider };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
|
|
3
|
-
export declare function Container(props: ComponentProps<'div'>): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function Container(props: ComponentProps<'div'>): import("react").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../../utils/cn.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/layouts/flux/slots/container.tsx
|
|
5
5
|
function Container(props) {
|
|
6
6
|
return /* @__PURE__ */ jsx("div", {
|
|
7
7
|
id: "nd-flux-layout",
|
|
@@ -9,5 +9,4 @@ function Container(props) {
|
|
|
9
9
|
className: cn("flex flex-col items-center pb-24 overflow-x-clip", props.className)
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { Container };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { SidebarProviderProps as SidebarProviderProps$1,
|
|
1
|
+
import { SidebarProviderProps as SidebarProviderProps$1, useSidebar as useSidebar$1 } from "../../../components/sidebar/base.js";
|
|
2
2
|
import { SidebarPageTreeComponents } from "../../../components/sidebar/page-tree.js";
|
|
3
3
|
import { ComponentProps, ReactNode } from "react";
|
|
4
|
-
//#region src/layouts/flux/slots/sidebar.d.ts
|
|
5
4
|
export interface SidebarProps extends ComponentProps<'aside'> {
|
|
6
5
|
components?: Partial<SidebarPageTreeComponents>;
|
|
7
6
|
banner?: ReactNode;
|
|
@@ -11,5 +10,4 @@ export type SidebarProviderProps = Omit<SidebarProviderProps$1, 'collapsible'>;
|
|
|
11
10
|
export declare const useSidebar: typeof useSidebar$1;
|
|
12
11
|
export declare function SidebarProvider(props: SidebarProviderProps): import("react").JSX.Element;
|
|
13
12
|
export declare function Sidebar({ footer, banner, components, ...rest }: SidebarProps): import("react").JSX.Element;
|
|
14
|
-
export declare function SidebarTrigger(props: ComponentProps<'button'>): import("react").JSX.Element;
|
|
15
|
-
//#endregion
|
|
13
|
+
export declare function SidebarTrigger(props: ComponentProps<'button'>): import("react").JSX.Element;
|
|
@@ -13,7 +13,7 @@ import { useRef, useState } from "react";
|
|
|
13
13
|
import { useTranslations } from "@fuma-translate/react";
|
|
14
14
|
import { AnimatePresence, motion } from "motion/react";
|
|
15
15
|
import { RemoveScroll } from "react-remove-scroll";
|
|
16
|
-
|
|
16
|
+
// src/layouts/flux/slots/sidebar.tsx
|
|
17
17
|
const MotionSidebarItem = motion.create(SidebarItem$1);
|
|
18
18
|
const MotionSidebarFolderTrigger = motion.create(SidebarFolderTrigger$1);
|
|
19
19
|
const MotionSidebarFolderLink = motion.create(SidebarFolderLink$1);
|
|
@@ -237,5 +237,4 @@ const SidebarLinkItem = createLinkItemRenderer({
|
|
|
237
237
|
SidebarFolderTrigger,
|
|
238
238
|
SidebarItem
|
|
239
239
|
});
|
|
240
|
-
//#endregion
|
|
241
240
|
export { Sidebar, SidebarProvider, SidebarTrigger, useSidebar };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { LayoutTab } from "../../shared/index.js";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
|
-
//#region src/layouts/flux/slots/tab-dropdown.d.ts
|
|
4
3
|
export interface TabDropdownProps extends ComponentProps<'button'> {
|
|
5
4
|
placeholder?: ReactNode;
|
|
6
5
|
tabs: LayoutTab[];
|
|
7
6
|
}
|
|
8
|
-
export declare function TabDropdown({ tabs: allTabs, placeholder, className, ...props }: TabDropdownProps): import("react").JSX.Element | undefined;
|
|
9
|
-
//#endregion
|
|
7
|
+
export declare function TabDropdown({ tabs: allTabs, placeholder, className, ...props }: TabDropdownProps): import("react").JSX.Element | undefined;
|
|
@@ -9,7 +9,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
import { Check, ChevronsUpDown } from "lucide-react";
|
|
10
10
|
import { useMemo, useState } from "react";
|
|
11
11
|
import { AnimatePresence, motion } from "motion/react";
|
|
12
|
-
|
|
12
|
+
// src/layouts/flux/slots/tab-dropdown.tsx
|
|
13
13
|
function TabDropdown({ tabs: allTabs, placeholder, className, ...props }) {
|
|
14
14
|
const [open, setOpen] = useState(false);
|
|
15
15
|
const pathname = usePathname();
|
|
@@ -89,5 +89,4 @@ function TabDropdown({ tabs: allTabs, placeholder, className, ...props }) {
|
|
|
89
89
|
})]
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
//#endregion
|
|
93
92
|
export { TabDropdown };
|
|
@@ -5,7 +5,6 @@ import { HeaderProps } from "./slots/header.js";
|
|
|
5
5
|
import { FC } from "react";
|
|
6
6
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
7
7
|
import { Drawer } from "@base-ui/react";
|
|
8
|
-
//#region src/layouts/glass/index.d.ts
|
|
9
8
|
export interface DocsSlots extends BaseSlots {
|
|
10
9
|
header: FC<HeaderProps>;
|
|
11
10
|
sidebar: {
|
|
@@ -34,5 +33,4 @@ export declare function useGlassLayout(): {
|
|
|
34
33
|
slots: DocsSlots;
|
|
35
34
|
};
|
|
36
35
|
export declare function DocsLayout(props: DocsLayoutProps): import("react").JSX.Element;
|
|
37
|
-
//#endregion
|
|
38
36
|
export { DocsLayout as GlassLayout, type DocsLayoutProps as GlassLayoutProps, type DocsSlots as GlassSlots };
|
|
@@ -6,7 +6,7 @@ import { Sidebar, SidebarDrawer, SidebarProvider, drawerHandle, useSidebar } fro
|
|
|
6
6
|
import { Header } from "./slots/header.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { createContext, use, useMemo } from "react";
|
|
9
|
-
|
|
9
|
+
// src/layouts/glass/index.tsx
|
|
10
10
|
const LayoutContext = createContext(null);
|
|
11
11
|
function useGlassLayout() {
|
|
12
12
|
const context = use(LayoutContext);
|
|
@@ -74,5 +74,4 @@ function DocsLayout(props) {
|
|
|
74
74
|
})
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
//#endregion
|
|
78
77
|
export { DocsLayout, DocsLayout as GlassLayout, useGlassLayout };
|
|
@@ -8,7 +8,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
import { ChevronsUpDown } from "lucide-react";
|
|
9
9
|
import { useState } from "react";
|
|
10
10
|
import { useTranslations } from "@fuma-translate/react";
|
|
11
|
-
|
|
11
|
+
// src/layouts/glass/layout-tabs.tsx
|
|
12
12
|
function LayoutTabsDropdown({ tabs: allTabs, className, size = "default", ...props }) {
|
|
13
13
|
const path = useTreePath();
|
|
14
14
|
const pathname = usePathname();
|
|
@@ -51,5 +51,4 @@ function LayoutTabsDropdown({ tabs: allTabs, className, size = "default", ...pro
|
|
|
51
51
|
})]
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
//#endregion
|
|
55
54
|
export { LayoutTabsDropdown };
|
|
@@ -2,7 +2,6 @@ import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-action
|
|
|
2
2
|
import { TOCProps } from "./slots/toc.js";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
import { TOCItemType } from "fumadocs-core/toc";
|
|
5
|
-
//#region src/layouts/glass/page/index.d.ts
|
|
6
5
|
export interface DocsPageProps extends ComponentProps<'article'> {
|
|
7
6
|
toc?: TOCItemType[];
|
|
8
7
|
/**
|
|
@@ -27,5 +26,4 @@ export declare function DocsTitle({ children, className, ...props }: ComponentPr
|
|
|
27
26
|
export declare function PageLastUpdate({ date: value, ...props }: Omit<ComponentProps<'p'>, 'children'> & {
|
|
28
27
|
date: Date;
|
|
29
28
|
}): import("react").JSX.Element;
|
|
30
|
-
//#endregion
|
|
31
29
|
export { MarkdownCopyButton, ViewOptionsPopover };
|
|
@@ -9,7 +9,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
import { Edit } from "lucide-react";
|
|
10
10
|
import { createContext, use, useEffect, useState } from "react";
|
|
11
11
|
import { useTranslations } from "@fuma-translate/react";
|
|
12
|
-
|
|
12
|
+
// src/layouts/glass/page/index.tsx
|
|
13
13
|
const PageContext = createContext(null);
|
|
14
14
|
function useDocsPage() {
|
|
15
15
|
const context = use(PageContext);
|
|
@@ -88,5 +88,4 @@ function PageLastUpdate({ date: value, ...props }) {
|
|
|
88
88
|
]
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
//#endregion
|
|
92
91
|
export { DocsBody, DocsDescription, DocsPage, DocsTitle, EditOnGitHub, MarkdownCopyButton, PageLastUpdate, ViewOptionsPopover, useDocsPage };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { BreadcrumbOptions } from "fumadocs-core/breadcrumb";
|
|
3
|
-
//#region src/layouts/glass/page/slots/breadcrumb.d.ts
|
|
4
3
|
export type BreadcrumbProps = BreadcrumbOptions & ComponentProps<'div'>;
|
|
5
|
-
export declare function Breadcrumb({ includeRoot, includeSeparator, includePage, ...props }: BreadcrumbProps): import("react").JSX.Element | null;
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function Breadcrumb({ includeRoot, includeSeparator, includePage, ...props }: BreadcrumbProps): import("react").JSX.Element | null;
|
|
@@ -6,7 +6,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import { ChevronRight } from "lucide-react";
|
|
7
7
|
import { Fragment as Fragment$1, useMemo } from "react";
|
|
8
8
|
import { getBreadcrumbItemsFromPath } from "fumadocs-core/breadcrumb";
|
|
9
|
-
|
|
9
|
+
// src/layouts/glass/page/slots/breadcrumb.tsx
|
|
10
10
|
function Breadcrumb({ includeRoot, includeSeparator, includePage, ...props }) {
|
|
11
11
|
const path = useTreePath();
|
|
12
12
|
const { root } = useTreeContext();
|
|
@@ -40,5 +40,4 @@ function Breadcrumb({ includeRoot, includeSeparator, includePage, ...props }) {
|
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { Breadcrumb };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
3
|
-
//#region src/layouts/glass/page/slots/footer.d.ts
|
|
4
3
|
type Item = Pick<PageTree.Item, 'name' | 'description' | 'url'>;
|
|
5
4
|
export interface FooterProps extends ComponentProps<'div'> {
|
|
6
5
|
/**
|
|
@@ -12,4 +11,4 @@ export interface FooterProps extends ComponentProps<'div'> {
|
|
|
12
11
|
};
|
|
13
12
|
}
|
|
14
13
|
export declare function Footer({ items, children, className, ...props }: FooterProps): import("react").JSX.Element;
|
|
15
|
-
|
|
14
|
+
export {};
|
|
@@ -8,7 +8,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
9
9
|
import { useMemo } from "react";
|
|
10
10
|
import { useTranslations } from "@fuma-translate/react";
|
|
11
|
-
|
|
11
|
+
// src/layouts/glass/page/slots/footer.tsx
|
|
12
12
|
function Footer({ items, children, className, ...props }) {
|
|
13
13
|
const footerList = useFooterItems();
|
|
14
14
|
const pathname = usePathname();
|
|
@@ -52,5 +52,4 @@ function FooterItem({ item, index }) {
|
|
|
52
52
|
})]
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
//#endregion
|
|
56
55
|
export { Footer };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TOCProviderProps as TOCProviderProps$1
|
|
1
|
+
import { TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
|
-
//#region src/layouts/glass/page/slots/toc.d.ts
|
|
4
3
|
export type TOCProviderProps = TOCProviderProps$1;
|
|
5
4
|
export declare function TOCProvider(props: TOCProviderProps): import("react").JSX.Element;
|
|
6
5
|
export interface TOCProps {
|
|
@@ -14,5 +13,4 @@ export interface TOCProps {
|
|
|
14
13
|
*/
|
|
15
14
|
footer?: ReactNode;
|
|
16
15
|
}
|
|
17
|
-
export declare function TOC({ container, header, footer }: TOCProps): import("react").JSX.Element | undefined;
|
|
18
|
-
//#endregion
|
|
16
|
+
export declare function TOC({ container, header, footer }: TOCProps): import("react").JSX.Element | undefined;
|
|
@@ -8,7 +8,7 @@ import { createContext, use, useMemo, useRef, useState } from "react";
|
|
|
8
8
|
import { useTranslations } from "@fuma-translate/react";
|
|
9
9
|
import { TOCItem } from "fumadocs-core/toc";
|
|
10
10
|
import { useOnChange } from "fumadocs-core/utils/use-on-change";
|
|
11
|
-
|
|
11
|
+
// src/layouts/glass/page/slots/toc.tsx
|
|
12
12
|
const Context = createContext(null);
|
|
13
13
|
function TOCProvider(props) {
|
|
14
14
|
return /* @__PURE__ */ jsx(TOCProvider$1, { ...props });
|
|
@@ -106,5 +106,4 @@ function TOCPanel({ className, style, ...props }) {
|
|
|
106
106
|
}, item.url))
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
//#endregion
|
|
110
109
|
export { TOC, TOCProvider };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
//#region src/layouts/glass/slots/header.d.ts
|
|
3
2
|
export type HeaderProps = ComponentProps<'div'>;
|
|
4
|
-
export declare function Header({ className, ...props }: HeaderProps): import("react").JSX.Element;
|
|
5
|
-
//#endregion
|
|
3
|
+
export declare function Header({ className, ...props }: HeaderProps): import("react").JSX.Element;
|
|
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { ChevronsUpDown, LanguagesIcon, MessageCircleIcon, SidebarIcon } from "lucide-react";
|
|
8
8
|
import { useTranslations } from "@fuma-translate/react";
|
|
9
9
|
import { Drawer } from "@base-ui/react/drawer";
|
|
10
|
-
|
|
10
|
+
// src/layouts/glass/slots/header.tsx
|
|
11
11
|
const baseVariants = "rounded-full bg-fd-popover/80 text-fd-popover-foreground border backdrop-blur-sm shadow-sm";
|
|
12
12
|
function Header({ className, ...props }) {
|
|
13
13
|
const { props: { tabs, aiChat }, slots } = useGlassLayout();
|
|
@@ -69,5 +69,4 @@ function Header({ className, ...props }) {
|
|
|
69
69
|
]
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
//#endregion
|
|
73
72
|
export { Header };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import { Drawer } from "@base-ui/react/drawer";
|
|
3
|
-
//#region src/layouts/glass/slots/sidebar.d.ts
|
|
4
3
|
export declare const drawerHandle: Drawer.Handle<unknown>;
|
|
5
4
|
export interface SidebarProviderProps {
|
|
6
5
|
/** @default true */
|
|
@@ -18,5 +17,4 @@ export interface SidebarDrawerProps {
|
|
|
18
17
|
}
|
|
19
18
|
export declare function SidebarDrawer({ contentProps }: SidebarDrawerProps): import("react").JSX.Element;
|
|
20
19
|
export type SidebarProps = ComponentProps<'aside'>;
|
|
21
|
-
export declare function Sidebar({ className, children, ...props }: SidebarProps): import("react").JSX.Element;
|
|
22
|
-
//#endregion
|
|
20
|
+
export declare function Sidebar({ className, children, ...props }: SidebarProps): import("react").JSX.Element;
|
|
@@ -17,7 +17,7 @@ import { useTranslations } from "@fuma-translate/react";
|
|
|
17
17
|
import { useOnChange } from "fumadocs-core/utils/use-on-change";
|
|
18
18
|
import { ScrollArea } from "@base-ui/react/scroll-area";
|
|
19
19
|
import { Drawer } from "@base-ui/react/drawer";
|
|
20
|
-
|
|
20
|
+
// src/layouts/glass/slots/sidebar.tsx
|
|
21
21
|
const drawerHandle = Drawer.createHandle();
|
|
22
22
|
const itemTriggerVariants = cva("inline-flex items-center gap-2 rounded-lg px-2.5 py-2 md:py-1.5 [&_svg]:size-4 outline-none focus-visible:ring-2 focus-visible:ring-fd-ring", { variants: { active: {
|
|
23
23
|
true: "bg-fd-primary/10 text-fd-primary",
|
|
@@ -306,5 +306,4 @@ function SidebarFolder({ folder }) {
|
|
|
306
306
|
function isNodeInPath(node, path) {
|
|
307
307
|
return path.some((other) => other === node || node.$id !== void 0 && other.$id === node.$id);
|
|
308
308
|
}
|
|
309
|
-
//#endregion
|
|
310
309
|
export { Sidebar, SidebarDrawer, SidebarProvider, drawerHandle, useSidebar };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseSlots, BaseSlotsProps } from "../shared/client.js";
|
|
2
2
|
import { BaseLayoutProps, LinkItemType, NavOptions } from "../shared/index.js";
|
|
3
3
|
import { ComponentProps, FC } from "react";
|
|
4
|
-
//#region src/layouts/home/index.d.ts
|
|
5
4
|
export interface HomeLayoutProps extends BaseLayoutProps, ComponentProps<'main'> {
|
|
6
5
|
nav?: Nav;
|
|
7
6
|
slots?: Partial<HomeSlots>;
|
|
@@ -23,4 +22,4 @@ export declare function useHomeLayout(): {
|
|
|
23
22
|
slots: HomeSlots;
|
|
24
23
|
};
|
|
25
24
|
export declare function HomeLayout(props: HomeLayoutProps): import("react").JSX.Element;
|
|
26
|
-
|
|
25
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import { Container } from "./slots/container.js";
|
|
|
5
5
|
import { Header } from "./slots/header.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { createContext, use } from "react";
|
|
8
|
-
|
|
8
|
+
// src/layouts/home/index.tsx
|
|
9
9
|
const LayoutContext = createContext(null);
|
|
10
10
|
function useHomeLayout() {
|
|
11
11
|
const context = use(LayoutContext);
|
|
@@ -41,5 +41,4 @@ function InlineHeader(props) {
|
|
|
41
41
|
if (nav?.component) return nav.component;
|
|
42
42
|
return /* @__PURE__ */ jsx(Header, { ...props });
|
|
43
43
|
}
|
|
44
|
-
//#endregion
|
|
45
44
|
export { HomeLayout, useHomeLayout };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { LinkProps } from "fumadocs-core/link";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { NavigationMenu } from "@base-ui/react/navigation-menu";
|
|
4
|
-
//#region src/layouts/home/navbar.d.ts
|
|
5
4
|
export declare function NavbarMenu({ className, children, ...props }: ComponentProps<typeof NavigationMenu.Item>): import("react").JSX.Element;
|
|
6
5
|
export declare function NavbarMenuContent({ className, ...props }: ComponentProps<typeof NavigationMenu.Content>): import("react").JSX.Element;
|
|
7
6
|
export declare function NavbarMenuTrigger({ className, children, ...props }: ComponentProps<typeof NavigationMenu.Trigger>): import("react").JSX.Element;
|
|
8
|
-
export declare function NavbarMenuLink(props: LinkProps): import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
7
|
+
export declare function NavbarMenuLink(props: LinkProps): import("react").JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { navItemVariants } from "./slots/header.js";
|
|
|
4
4
|
import Link from "fumadocs-core/link";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { NavigationMenu } from "@base-ui/react/navigation-menu";
|
|
7
|
-
|
|
7
|
+
// src/layouts/home/navbar.tsx
|
|
8
8
|
function NavbarMenu({ className, children, ...props }) {
|
|
9
9
|
return /* @__PURE__ */ jsx(NavigationMenu.Item, {
|
|
10
10
|
className: (s) => cn("list-none", typeof className === "function" ? className(s) : className),
|
|
@@ -32,5 +32,4 @@ function NavbarMenuLink(props) {
|
|
|
32
32
|
children: props.children
|
|
33
33
|
}) });
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { NavbarMenu, NavbarMenuContent, NavbarMenuLink, NavbarMenuTrigger };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
//#region src/layouts/home/not-found.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* the default not found page content, please make your own if you want to customize it.
|
|
4
3
|
*/
|
|
5
|
-
export declare function DefaultNotFound(): import("react").JSX.Element;
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function DefaultNotFound(): import("react").JSX.Element;
|
|
@@ -5,7 +5,7 @@ import Link from "fumadocs-core/link";
|
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { HomeIcon } from "lucide-react";
|
|
7
7
|
import { useTranslations } from "@fuma-translate/react";
|
|
8
|
-
|
|
8
|
+
// src/layouts/home/not-found.tsx
|
|
9
9
|
/**
|
|
10
10
|
* the default not found page content, please make your own if you want to customize it.
|
|
11
11
|
*/
|
|
@@ -37,5 +37,4 @@ function DefaultNotFound() {
|
|
|
37
37
|
]
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
//#endregion
|
|
41
40
|
export { DefaultNotFound };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
|
|
3
|
-
export declare function Container(props: ComponentProps<'main'>): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function Container(props: ComponentProps<'main'>): import("react").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../../utils/cn.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/layouts/home/slots/container.tsx
|
|
5
5
|
function Container(props) {
|
|
6
6
|
return /* @__PURE__ */ jsx("main", {
|
|
7
7
|
id: "nd-home-layout",
|
|
@@ -9,5 +9,4 @@ function Container(props) {
|
|
|
9
9
|
className: cn("flex flex-1 flex-col [--fd-layout-width:1400px]", props.className)
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { Container };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
//#region src/layouts/home/slots/header.d.ts
|
|
3
2
|
export declare const navItemVariants: (props?: ({
|
|
4
3
|
variant?: "button" | "icon" | "main" | null | undefined;
|
|
5
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
export declare function Header(props: ComponentProps<'header'>): import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare function Header(props: ComponentProps<'header'>): import("react").JSX.Element;
|
|
@@ -13,7 +13,7 @@ import { cva } from "class-variance-authority";
|
|
|
13
13
|
import { Fragment as Fragment$1, createContext, use, useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
|
|
14
14
|
import { useTranslations } from "@fuma-translate/react";
|
|
15
15
|
import { NavigationMenu } from "@base-ui/react/navigation-menu";
|
|
16
|
-
|
|
16
|
+
// src/layouts/home/slots/header.tsx
|
|
17
17
|
const navItemVariants = cva("[&_svg]:size-4", {
|
|
18
18
|
variants: { variant: {
|
|
19
19
|
main: "inline-flex items-center gap-1 p-2 text-fd-muted-foreground transition-colors hover:text-fd-accent-foreground data-[active=true]:text-fd-primary",
|
|
@@ -259,5 +259,4 @@ function MobileNavigationMenuLinkItem({ item, ...props }) {
|
|
|
259
259
|
children: [item.icon, item.type === "icon" ? void 0 : item.text]
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
-
//#endregion
|
|
263
262
|
export { Header, navItemVariants };
|
|
@@ -3,7 +3,6 @@ import { LayoutTab, LinkItemType } from "../shared/index.js";
|
|
|
3
3
|
import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.js";
|
|
4
4
|
import { DocsLayoutProps } from "./index.js";
|
|
5
5
|
import { ComponentProps, FC } from "react";
|
|
6
|
-
//#region src/layouts/notebook/client.d.ts
|
|
7
6
|
export interface DocsSlots extends BaseSlots {
|
|
8
7
|
container: FC<ComponentProps<'div'>>;
|
|
9
8
|
header: FC<ComponentProps<'header'>>;
|
|
@@ -32,4 +31,4 @@ export declare function useNotebookLayout(): {
|
|
|
32
31
|
menuItems: LinkItemType[];
|
|
33
32
|
slots: DocsSlots;
|
|
34
33
|
};
|
|
35
|
-
|
|
34
|
+
export {};
|
|
@@ -8,7 +8,7 @@ import { Sidebar, SidebarCollapseTrigger, SidebarProvider, SidebarTrigger, useSi
|
|
|
8
8
|
import { Header } from "./slots/header.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { createContext, use } from "react";
|
|
11
|
-
|
|
11
|
+
// src/layouts/notebook/client.tsx
|
|
12
12
|
const { useBaseSlots } = baseSlots({ useProps() {
|
|
13
13
|
return useNotebookLayout().props;
|
|
14
14
|
} });
|
|
@@ -72,5 +72,4 @@ function LayoutBody(props) {
|
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
//#endregion
|
|
76
75
|
export { LayoutBody, useNotebookLayout };
|
|
@@ -3,7 +3,6 @@ import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.js";
|
|
|
3
3
|
import { DocsSlots, useNotebookLayout } from "./client.js";
|
|
4
4
|
import { HTMLAttributes } from "react";
|
|
5
5
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
6
|
-
//#region src/layouts/notebook/index.d.ts
|
|
7
6
|
export interface DocsLayoutProps extends Omit<BaseLayoutProps, 'nav'> {
|
|
8
7
|
tree: PageTree.Root;
|
|
9
8
|
tabs?: LayoutTab[] | GetLayoutTabsOptions | false;
|
|
@@ -23,5 +22,4 @@ interface SidebarOptions extends SidebarProps, SidebarProviderProps {
|
|
|
23
22
|
tabs?: LayoutTab[] | GetLayoutTabsOptions | false;
|
|
24
23
|
}
|
|
25
24
|
export declare function DocsLayout({ tree, tabMode, sidebar: { tabs: defaultTabs, ...sidebarProps }, children, tabs, ...props }: DocsLayoutProps): import("react").JSX.Element;
|
|
26
|
-
//#endregion
|
|
27
25
|
export { type DocsSlots, useNotebookLayout };
|
|
@@ -2,7 +2,7 @@ import { getLayoutTabs } from "../shared/index.js";
|
|
|
2
2
|
import { LayoutBody, useNotebookLayout } from "./client.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
|
-
|
|
5
|
+
// src/layouts/notebook/index.tsx
|
|
6
6
|
function DocsLayout({ tree, tabMode = "sidebar", sidebar: { tabs: defaultTabs, ...sidebarProps } = {}, children, tabs = defaultTabs, ...props }) {
|
|
7
7
|
const resolvedTabs = useMemo(() => {
|
|
8
8
|
if (Array.isArray(tabs)) return tabs;
|
|
@@ -19,5 +19,4 @@ function DocsLayout({ tree, tabMode = "sidebar", sidebar: { tabs: defaultTabs, .
|
|
|
19
19
|
children
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { DocsLayout, useNotebookLayout };
|
|
@@ -4,7 +4,6 @@ import { Footer, FooterProps } from "./slots/footer.js";
|
|
|
4
4
|
import { Breadcrumb, BreadcrumbProps } from "./slots/breadcrumb.js";
|
|
5
5
|
import { ComponentProps, FC, ReactNode } from "react";
|
|
6
6
|
import { TOCItemType } from "fumadocs-core/toc";
|
|
7
|
-
//#region src/layouts/notebook/page/index.d.ts
|
|
8
7
|
export interface DocsPageProps extends ComponentProps<'article'> {
|
|
9
8
|
toc?: TOCItemType[];
|
|
10
9
|
/**
|
|
@@ -72,5 +71,4 @@ export declare function DocsTitle({ children, className, ...props }: ComponentPr
|
|
|
72
71
|
export declare function PageLastUpdate({ date: value, ...props }: Omit<ComponentProps<'p'>, 'children'> & {
|
|
73
72
|
date: Date;
|
|
74
73
|
}): import("react").JSX.Element;
|
|
75
|
-
//#endregion
|
|
76
74
|
export { type BreadcrumbProps, type FooterProps, MarkdownCopyButton, Breadcrumb as PageBreadcrumb, Footer as PageFooter, ViewOptionsPopover };
|