@fumadocs/base-ui 16.4.2 → 16.4.4
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/emerald.css +1 -0
- package/dist/components/accordion.d.ts +3 -3
- package/dist/components/accordion.d.ts.map +1 -1
- package/dist/components/banner.d.ts +2 -2
- package/dist/components/banner.d.ts.map +1 -1
- package/dist/components/callout.d.ts +5 -5
- package/dist/components/callout.d.ts.map +1 -1
- package/dist/components/card.d.ts +3 -3
- package/dist/components/codeblock.d.ts +7 -7
- package/dist/components/dialog/search-algolia.d.ts +2 -2
- package/dist/components/dialog/search-default.d.ts +2 -2
- package/dist/components/dialog/search-orama.d.ts +2 -2
- package/dist/components/dialog/search.d.ts +13 -13
- package/dist/components/dynamic-codeblock.d.ts +2 -2
- package/dist/components/github-info.d.ts +2 -2
- package/dist/components/image-zoom.d.ts +2 -2
- package/dist/components/inline-toc.d.ts +2 -2
- package/dist/components/sidebar/base.d.ts +21 -19
- package/dist/components/sidebar/base.d.ts.map +1 -1
- package/dist/components/sidebar/base.js +6 -2
- package/dist/components/sidebar/base.js.map +1 -1
- package/dist/components/sidebar/link-item.d.ts +2 -2
- package/dist/components/sidebar/page-tree.d.ts +2 -2
- package/dist/components/sidebar/page-tree.d.ts.map +1 -1
- package/dist/components/sidebar/tabs/dropdown.d.ts +2 -2
- package/dist/components/sidebar/tabs/dropdown.d.ts.map +1 -1
- package/dist/components/steps.d.ts +3 -3
- package/dist/components/tabs.d.ts +4 -4
- package/dist/components/type-table.d.ts +2 -2
- package/dist/components/ui/accordion.d.ts +6 -6
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/collapsible.d.ts +5 -5
- package/dist/components/ui/tabs.d.ts +6 -6
- package/dist/layouts/docs/client.d.ts +7 -7
- package/dist/layouts/docs/client.d.ts.map +1 -1
- package/dist/layouts/docs/index.d.ts +2 -2
- package/dist/layouts/docs/page/client.d.ts +7 -7
- package/dist/layouts/docs/page/index.d.ts +11 -6
- package/dist/layouts/docs/page/index.d.ts.map +1 -1
- package/dist/layouts/docs/page/index.js +2 -2
- package/dist/layouts/docs/page/index.js.map +1 -1
- package/dist/layouts/docs/sidebar.d.ts +17 -17
- package/dist/layouts/docs/sidebar.d.ts.map +1 -1
- package/dist/layouts/home/client.d.ts +3 -3
- package/dist/layouts/home/index.d.ts +2 -2
- package/dist/layouts/home/navbar.d.ts +6 -6
- package/dist/layouts/home/navbar.d.ts.map +1 -1
- package/dist/layouts/notebook/client.d.ts +8 -8
- package/dist/layouts/notebook/client.d.ts.map +1 -1
- package/dist/layouts/notebook/index.d.ts +2 -2
- package/dist/layouts/notebook/page/client.d.ts +7 -7
- package/dist/layouts/notebook/page/index.d.ts +11 -6
- package/dist/layouts/notebook/page/index.d.ts.map +1 -1
- package/dist/layouts/notebook/page/index.js +2 -2
- package/dist/layouts/notebook/page/index.js.map +1 -1
- package/dist/layouts/notebook/sidebar.d.ts +12 -12
- package/dist/layouts/notebook/sidebar.d.ts.map +1 -1
- package/dist/layouts/shared/index.d.ts +3 -3
- package/dist/layouts/shared/language-toggle.d.ts +2 -2
- package/dist/layouts/shared/search-toggle.d.ts +3 -3
- package/dist/layouts/shared/search-toggle.d.ts.map +1 -1
- package/dist/layouts/shared/theme-toggle.d.ts +2 -2
- package/dist/page.d.ts +3 -3
- package/dist/page.d.ts.map +1 -1
- package/dist/provider/base.d.ts +2 -2
- package/dist/provider/next.d.ts +2 -2
- package/dist/provider/react-router.d.ts +2 -2
- package/dist/provider/react-router.d.ts.map +1 -1
- package/dist/provider/tanstack.d.ts +2 -2
- package/dist/provider/waku.d.ts +2 -2
- package/package.json +5 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SidebarTabWithProps } from "../../components/sidebar/tabs/dropdown.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime93 from "react/jsx-runtime";
|
|
3
|
+
import * as react10 from "react";
|
|
4
4
|
import { ComponentProps, HTMLAttributes, ReactNode } from "react";
|
|
5
5
|
import { LinkItemType } from "@fumadocs/ui/link-item";
|
|
6
6
|
|
|
7
7
|
//#region src/layouts/notebook/client.d.ts
|
|
8
|
-
declare const LayoutContext:
|
|
8
|
+
declare const LayoutContext: react10.Context<(LayoutInfo & {
|
|
9
9
|
isNavTransparent: boolean;
|
|
10
10
|
}) | null>;
|
|
11
11
|
interface LayoutInfo {
|
|
@@ -20,28 +20,28 @@ declare function LayoutContextProvider({
|
|
|
20
20
|
}: LayoutInfo & {
|
|
21
21
|
navTransparentMode?: 'always' | 'top' | 'none';
|
|
22
22
|
children: ReactNode;
|
|
23
|
-
}):
|
|
24
|
-
declare function LayoutHeader(props: ComponentProps<'header'>):
|
|
23
|
+
}): react_jsx_runtime93.JSX.Element;
|
|
24
|
+
declare function LayoutHeader(props: ComponentProps<'header'>): react_jsx_runtime93.JSX.Element;
|
|
25
25
|
declare function LayoutBody({
|
|
26
26
|
className,
|
|
27
27
|
style,
|
|
28
28
|
children,
|
|
29
29
|
...props
|
|
30
|
-
}: ComponentProps<'div'>):
|
|
30
|
+
}: ComponentProps<'div'>): react_jsx_runtime93.JSX.Element;
|
|
31
31
|
declare function LayoutHeaderTabs({
|
|
32
32
|
options,
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
35
|
}: ComponentProps<'div'> & {
|
|
36
36
|
options: SidebarTabWithProps[];
|
|
37
|
-
}):
|
|
37
|
+
}): react_jsx_runtime93.JSX.Element;
|
|
38
38
|
declare function NavbarLinkItem({
|
|
39
39
|
item,
|
|
40
40
|
className,
|
|
41
41
|
...props
|
|
42
42
|
}: {
|
|
43
43
|
item: LinkItemType;
|
|
44
|
-
} & HTMLAttributes<HTMLElement>): string | number | bigint | boolean |
|
|
44
|
+
} & HTMLAttributes<HTMLElement>): string | number | bigint | boolean | react_jsx_runtime93.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react10.ReactPortal | react10.ReactElement<unknown, string | react10.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { LayoutBody, LayoutContext, LayoutContextProvider, LayoutHeader, LayoutHeaderTabs, LayoutInfo, NavbarLinkItem };
|
|
47
47
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","names":[],"sources":["../../../src/layouts/notebook/client.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAuBa,eAAa,
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../../src/layouts/notebook/client.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAuBa,eAAa,OAAA,CAAA,SAAA;;;UAOT,UAAA;EAPJ,OAAA,EAAA,SAKN,GAAA,QALmB;EAOT,OAAA,EAAA,KAAU,GAAA,MAAA;AAK3B;AACE,iBADc,qBAAA,CACd;EAAA,kBAAA;EAAA,OAAA;EAAA,OAAA;EAAA;CAAA,EAIC,UAJD,GAAA;EACA,kBAAA,CAAA,EAAA,QAAA,GAAA,KAAA,GAAA,MAAA;EACA,QAAA,EAIU,SAJV;CACA,CAAA,EAID,mBAAA,CAAA,GAAA,CAAA,OAJC;AACC,iBAuBa,YAAA,CAvBb,KAAA,EAuBiC,cAvBjC,CAAA,QAAA,CAAA,CAAA,EAuByD,mBAAA,CAAA,GAAA,CAAA,OAvBzD;AAES,iBAgCI,UAAA,CAhCJ;EAAA,SAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAgCyD,cAhCzD,CAAA,KAAA,CAAA,CAAA,EAgC8E,mBAAA,CAAA,GAAA,CAAA,OAhC9E;AACX,iBAoEe,gBAAA,CApEf;EAAA,OAAA;EAAA,SAAA;EAAA,GAAA;AAoBD,CApBC,EAwEE,cAxEF,CAAA,KAAA,CAAA,GAAA;EAAA,OAAA,EAyEU,mBAzEV,EAAA;AAoBD,CAAA,CAAA,EAsDC,mBAAA,CAAA,GAAA,CAAA,OAtDmC;AAWpB,iBA2EA,cAAA,CA3EU;EAAA,IAAA;EAAA,SAAA;EAAA,GAAA;AAAc,CAAd,EAAA;EAAG,IAAA,EA+ElB,YA/EkB;CAAW,GA+EZ,cA/EY,CA+EG,WA/EH,CAAA,CAAA,EAAA,MAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GA+Ee,mBAAA,CAAA,GAAA,CAAA,OAAA,GAAA,QA/Ef,CA+Ee,SA/Ef,CAAA,GA+Ee,OA/Ef,CAAA,MAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GA+Ee,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,YA/Ef,CAAA,OAAA,EAAA,MAAA,GA+Ee,OAAA,CAAA,qBA/Ef,CAAA,GAAA,CAAA,CAAA,GA+Ee,QA/Ef,CA+Ee,SA/Ef,CAAA,GAAA,IAAA,GAAA,SAAA,CAAA,GAAA,IAAA,GAAA,SAAA"}
|
|
@@ -3,7 +3,7 @@ import { GetSidebarTabsOptions } from "../../components/sidebar/tabs/index.js";
|
|
|
3
3
|
import { SidebarTabWithProps } from "../../components/sidebar/tabs/dropdown.js";
|
|
4
4
|
import { BaseLayoutProps } from "../shared/index.js";
|
|
5
5
|
import { Sidebar } from "./sidebar.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime135 from "react/jsx-runtime";
|
|
7
7
|
import { ComponentProps, FC, HTMLAttributes, ReactNode } from "react";
|
|
8
8
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
9
9
|
|
|
@@ -32,7 +32,7 @@ interface SidebarOptions extends ComponentProps<'aside'>, Pick<ComponentProps<ty
|
|
|
32
32
|
*/
|
|
33
33
|
collapsible?: boolean;
|
|
34
34
|
}
|
|
35
|
-
declare function DocsLayout(props: DocsLayoutProps):
|
|
35
|
+
declare function DocsLayout(props: DocsLayoutProps): react_jsx_runtime135.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { DocsLayout, DocsLayoutProps };
|
|
38
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime112 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { BreadcrumbOptions } from "fumadocs-core/breadcrumb";
|
|
4
4
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
@@ -8,18 +8,18 @@ declare function PageTOCPopover({
|
|
|
8
8
|
className,
|
|
9
9
|
children,
|
|
10
10
|
...rest
|
|
11
|
-
}: ComponentProps<'div'>):
|
|
11
|
+
}: ComponentProps<'div'>): react_jsx_runtime112.JSX.Element;
|
|
12
12
|
declare function PageTOCPopoverTrigger({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: ComponentProps<'button'>):
|
|
16
|
-
declare function PageTOCPopoverContent(props: ComponentProps<'div'>):
|
|
15
|
+
}: ComponentProps<'button'>): react_jsx_runtime112.JSX.Element;
|
|
16
|
+
declare function PageTOCPopoverContent(props: ComponentProps<'div'>): react_jsx_runtime112.JSX.Element;
|
|
17
17
|
declare function PageLastUpdate({
|
|
18
18
|
date: value,
|
|
19
19
|
...props
|
|
20
20
|
}: Omit<ComponentProps<'p'>, 'children'> & {
|
|
21
21
|
date: Date;
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime112.JSX.Element;
|
|
23
23
|
type Item = Pick<PageTree.Item, 'name' | 'description' | 'url'>;
|
|
24
24
|
interface FooterProps extends ComponentProps<'div'> {
|
|
25
25
|
/**
|
|
@@ -33,14 +33,14 @@ interface FooterProps extends ComponentProps<'div'> {
|
|
|
33
33
|
declare function PageFooter({
|
|
34
34
|
items,
|
|
35
35
|
...props
|
|
36
|
-
}: FooterProps):
|
|
36
|
+
}: FooterProps): react_jsx_runtime112.JSX.Element;
|
|
37
37
|
type BreadcrumbProps = BreadcrumbOptions & ComponentProps<'div'>;
|
|
38
38
|
declare function PageBreadcrumb({
|
|
39
39
|
includeRoot,
|
|
40
40
|
includeSeparator,
|
|
41
41
|
includePage,
|
|
42
42
|
...props
|
|
43
|
-
}: BreadcrumbProps):
|
|
43
|
+
}: BreadcrumbProps): react_jsx_runtime112.JSX.Element | null;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { BreadcrumbProps, FooterProps, PageBreadcrumb, PageFooter, PageLastUpdate, PageTOCPopover, PageTOCPopoverContent, PageTOCPopoverTrigger };
|
|
46
46
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BreadcrumbProps, FooterProps, PageBreadcrumb, PageLastUpdate } from "./client.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime118 from "react/jsx-runtime";
|
|
3
3
|
import { ComponentProps, ReactNode } from "react";
|
|
4
4
|
import { AnchorProviderProps, TOCItemType } from "fumadocs-core/toc";
|
|
5
5
|
|
|
@@ -31,6 +31,10 @@ interface DocsPageProps {
|
|
|
31
31
|
*/
|
|
32
32
|
footer?: Partial<FooterOptions>;
|
|
33
33
|
children?: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Apply class names to the `#nd-page` container.
|
|
36
|
+
*/
|
|
37
|
+
className?: string;
|
|
34
38
|
}
|
|
35
39
|
type TableOfContentOptions = Pick<AnchorProviderProps, 'single'> & {
|
|
36
40
|
/**
|
|
@@ -68,9 +72,10 @@ declare function DocsPage({
|
|
|
68
72
|
...tocOptions
|
|
69
73
|
},
|
|
70
74
|
toc,
|
|
71
|
-
children
|
|
75
|
+
children,
|
|
76
|
+
className
|
|
72
77
|
}: DocsPageProps): ReactNode;
|
|
73
|
-
declare function EditOnGitHub(props: ComponentProps<'a'>):
|
|
78
|
+
declare function EditOnGitHub(props: ComponentProps<'a'>): react_jsx_runtime118.JSX.Element;
|
|
74
79
|
/**
|
|
75
80
|
* Add typography styles
|
|
76
81
|
*/
|
|
@@ -78,17 +83,17 @@ declare function DocsBody({
|
|
|
78
83
|
children,
|
|
79
84
|
className,
|
|
80
85
|
...props
|
|
81
|
-
}: ComponentProps<'div'>):
|
|
86
|
+
}: ComponentProps<'div'>): react_jsx_runtime118.JSX.Element;
|
|
82
87
|
declare function DocsDescription({
|
|
83
88
|
children,
|
|
84
89
|
className,
|
|
85
90
|
...props
|
|
86
|
-
}: ComponentProps<'p'>):
|
|
91
|
+
}: ComponentProps<'p'>): react_jsx_runtime118.JSX.Element | null;
|
|
87
92
|
declare function DocsTitle({
|
|
88
93
|
children,
|
|
89
94
|
className,
|
|
90
95
|
...props
|
|
91
|
-
}: ComponentProps<'h1'>):
|
|
96
|
+
}: ComponentProps<'h1'>): react_jsx_runtime118.JSX.Element;
|
|
92
97
|
//#endregion
|
|
93
98
|
export { DocsBody, DocsDescription, DocsPage, DocsPageProps, DocsTitle, EditOnGitHub, PageBreadcrumb, PageLastUpdate };
|
|
94
99
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/layouts/notebook/page/index.tsx"],"sourcesContent":[],"mappings":";;;;;;UAmBU,iBAAA,SAA0B;;aAEvB;AAP6D;AAKvB,UAKzC,aAAA,SAAsB,WAEnB,CAFmB;EAKf,OAAA,EAAA,OAAa;EACtB,SAAA,EAJK,SAIL;;AACW,UAFF,aAAA,CAEE;EACe,GAAA,CAAA,EAF1B,WAE0B,EAAA;EAAR,cAAA,CAAA,EADP,OACO,CADC,qBACD,CAAA;EAYH,qBAAA,CAAA,EAZG,OAYH,CAZW,4BAYX,CAAA;EAAR;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/layouts/notebook/page/index.tsx"],"sourcesContent":[],"mappings":";;;;;;UAmBU,iBAAA,SAA0B;;aAEvB;AAP6D;AAKvB,UAKzC,aAAA,SAAsB,WAEnB,CAFmB;EAKf,OAAA,EAAA,OAAa;EACtB,SAAA,EAJK,SAIL;;AACW,UAFF,aAAA,CAEE;EACe,GAAA,CAAA,EAF1B,WAE0B,EAAA;EAAR,cAAA,CAAA,EADP,OACO,CADC,qBACD,CAAA;EAYH,qBAAA,CAAA,EAZG,OAYH,CAZW,4BAYX,CAAA;EAAR;;;;;EAeV,IAAA,CAAA,EAAA,OAAA;EAA6B;;;EASvB,UAAA,CAAA,EAxBI,OAwBJ,CAxBY,iBAwBZ,CAAA;EAGE;;AAAS;EAUN,MAAA,CAAA,EAhCL,OAgCa,CAhCL,aAgCK,CAAA;EACC,QAAA,CAAA,EA/BZ,SA+BY;EAAqC;;;EAIjD,SAAA,CAAA,EAAA,MAAA;;KA3BR,qBAAA,GAAwB,IA+BA,CA/BK,mBA+BL,EAAA,QAAA,CAAA,GAAA;EAAuB;;;EAGlD,MAAA,CAAA,EA9BS,SA8BT;EACC;;;EA4Ea,MAAA,CAAA,EAtGL,SAsGiB;EA4BZ,OAAA,EAAA,OAAQ;EAAG,SAAA,EA/Hd,SA+Hc;EAAU;;;EAA4C,KAAA,CAAA,EAAA,QAAA,GAAA,OAAA;AAQjF,CAAA;KA/HK,4BAAA,GAA+B,IA+HF,CA/HO,qBA+HP,EAAA,QAAA,CAAA;AAAU,iBA7H5B,QAAA,CA6H4B;EAAA,UAAA,EAAA;IAAA,OAAA,EA5HnB,iBA4HmB;IAAA,SAAA,EA5HkB,UA4HlB;IAAA,GAAA;EAAA,CAAA;EAAA,MAAA;EAAA,IAAA;EAAA,qBAAA,EAAA;IAAA,OAAA,EAxH/B,iBAwH+B;IAAA,SAAA,EAvH7B,UAuH6B;IAAA,GAAA;EAAA,CAAA;EAAA,cAAA,EAAA;IAAA,OAAA,EApHf,UAoHe;IAAA,SAAA,EApHQ,UAoHR;IAAA,GAAA;EAAA,CAAA;EAAA,GAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAhHzC,aAgHyC,CAAA,EAhH5B,SAgH4B;AAAuB,iBApCnD,YAAA,CAoCmD,KAAA,EApC/B,cAoC+B,CAAA,GAAA,CAAA,CAAA,EApCZ,oBAAA,CAAA,GAAA,CAAA,OAoCY;;;AAWnE;AAA4B,iBAnBZ,QAAA,CAmBY;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAnBgC,cAmBhC,CAAA,KAAA,CAAA,CAAA,EAnBqD,oBAAA,CAAA,GAAA,CAAA,OAmBrD;AAAU,iBAXtB,eAAA,CAWsB;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAX6B,cAW7B,CAAA,GAAA,CAAA,CAAA,EAXgD,oBAAA,CAAA,GAAA,CAAA,OAAA,GAWhD,IAAA;AAAuB,iBAA7C,SAAA,CAA6C;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAAA,cAAA,CAAA,IAAA,CAAA,CAAA,EAAoB,oBAAA,CAAA,GAAA,CAAA,OAApB"}
|
|
@@ -19,7 +19,7 @@ var page_exports = /* @__PURE__ */ __exportAll({
|
|
|
19
19
|
PageBreadcrumb: () => PageBreadcrumb,
|
|
20
20
|
PageLastUpdate: () => PageLastUpdate
|
|
21
21
|
});
|
|
22
|
-
function DocsPage({ breadcrumb: { enabled: breadcrumbEnabled = true, component: breadcrumb, ...breadcrumbProps } = {}, footer = {}, full = false, tableOfContentPopover: { enabled: tocPopoverEnabled, component: tocPopover, ...tocPopoverOptions } = {}, tableOfContent: { enabled: tocEnabled, component: tocReplace, ...tocOptions } = {}, toc = [], children }) {
|
|
22
|
+
function DocsPage({ breadcrumb: { enabled: breadcrumbEnabled = true, component: breadcrumb, ...breadcrumbProps } = {}, footer = {}, full = false, tableOfContentPopover: { enabled: tocPopoverEnabled, component: tocPopover, ...tocPopoverOptions } = {}, tableOfContent: { enabled: tocEnabled, component: tocReplace, ...tocOptions } = {}, toc = [], children, className }) {
|
|
23
23
|
tocEnabled ??= !full && (toc.length > 0 || tocOptions.footer !== void 0 || tocOptions.header !== void 0);
|
|
24
24
|
tocPopoverEnabled ??= toc.length > 0 || tocPopoverOptions.header !== void 0 || tocPopoverOptions.footer !== void 0;
|
|
25
25
|
let wrapper = (children$1) => children$1;
|
|
@@ -37,7 +37,7 @@ function DocsPage({ breadcrumb: { enabled: breadcrumbEnabled = true, component:
|
|
|
37
37
|
/* @__PURE__ */ jsxs("article", {
|
|
38
38
|
id: "nd-page",
|
|
39
39
|
"data-full": full,
|
|
40
|
-
className: cn("flex flex-col [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14 *:max-w-[900px]", full && "*:max-w-[1285px]"),
|
|
40
|
+
className: cn("flex flex-col [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14 *:max-w-[900px]", full && "*:max-w-[1285px]", className),
|
|
41
41
|
children: [
|
|
42
42
|
breadcrumbEnabled && (breadcrumb ?? /* @__PURE__ */ jsx(PageBreadcrumb, { ...breadcrumbProps })),
|
|
43
43
|
children,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["children","TOCProvider","TOCScrollArea","TocClerk","TocDefault","I18nLabel"],"sources":["../../../../src/layouts/notebook/page/index.tsx"],"sourcesContent":["import type { ComponentProps, ReactNode } from 'react';\nimport { cn } from '@fumadocs/ui/cn';\nimport { buttonVariants } from '@/components/ui/button';\nimport { Edit, Text } from 'lucide-react';\nimport { I18nLabel } from '@/contexts/i18n';\nimport {\n type BreadcrumbProps,\n type FooterProps,\n PageBreadcrumb,\n PageFooter,\n PageTOCPopover,\n PageTOCPopoverContent,\n PageTOCPopoverTrigger,\n} from './client';\nimport type { AnchorProviderProps, TOCItemType } from 'fumadocs-core/toc';\nimport * as TocDefault from '@/components/toc/default';\nimport * as TocClerk from '@/components/toc/clerk';\nimport { TOCProvider, TOCScrollArea } from '@/components/toc';\n\ninterface BreadcrumbOptions extends BreadcrumbProps {\n enabled: boolean;\n component: ReactNode;\n}\n\ninterface FooterOptions extends FooterProps {\n enabled: boolean;\n component: ReactNode;\n}\n\nexport interface DocsPageProps {\n toc?: TOCItemType[];\n tableOfContent?: Partial<TableOfContentOptions>;\n tableOfContentPopover?: Partial<TableOfContentPopoverOptions>;\n\n /**\n * Extend the page to fill all available space\n *\n * @defaultValue false\n */\n full?: boolean;\n\n /**\n * Replace or disable breadcrumb\n */\n breadcrumb?: Partial<BreadcrumbOptions>;\n\n /**\n * Footer navigation, you can disable it by passing `false`\n */\n footer?: Partial<FooterOptions>;\n\n children?: ReactNode;\n}\n\ntype TableOfContentOptions = Pick<AnchorProviderProps, 'single'> & {\n /**\n * Custom content in TOC container, before the main TOC\n */\n header?: ReactNode;\n\n /**\n * Custom content in TOC container, after the main TOC\n */\n footer?: ReactNode;\n\n enabled: boolean;\n component: ReactNode;\n\n /**\n * @defaultValue 'normal'\n */\n style?: 'normal' | 'clerk';\n};\n\ntype TableOfContentPopoverOptions = Omit<TableOfContentOptions, 'single'>;\n\nexport function DocsPage({\n breadcrumb: { enabled: breadcrumbEnabled = true, component: breadcrumb, ...breadcrumbProps } = {},\n footer = {},\n full = false,\n tableOfContentPopover: {\n enabled: tocPopoverEnabled,\n component: tocPopover,\n ...tocPopoverOptions\n } = {},\n tableOfContent: { enabled: tocEnabled, component: tocReplace, ...tocOptions } = {},\n toc = [],\n children,\n}: DocsPageProps) {\n // disable TOC on full mode, you can still enable it with `enabled` option.\n tocEnabled ??=\n !full && (toc.length > 0 || tocOptions.footer !== undefined || tocOptions.header !== undefined);\n\n tocPopoverEnabled ??=\n toc.length > 0 ||\n tocPopoverOptions.header !== undefined ||\n tocPopoverOptions.footer !== undefined;\n\n let wrapper = (children: ReactNode) => children;\n\n if (tocEnabled || tocPopoverEnabled) {\n wrapper = (children) => (\n <TOCProvider single={tocOptions.single} toc={toc}>\n {children}\n </TOCProvider>\n );\n }\n\n return wrapper(\n <>\n {tocPopoverEnabled &&\n (tocPopover ?? (\n <PageTOCPopover>\n <PageTOCPopoverTrigger />\n <PageTOCPopoverContent>\n {tocPopoverOptions.header}\n <TOCScrollArea>\n {tocPopoverOptions.style === 'clerk' ? (\n <TocClerk.TOCItems />\n ) : (\n <TocDefault.TOCItems />\n )}\n </TOCScrollArea>\n {tocPopoverOptions.footer}\n </PageTOCPopoverContent>\n </PageTOCPopover>\n ))}\n <article\n id=\"nd-page\"\n data-full={full}\n className={cn(\n 'flex flex-col [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14 *:max-w-[900px]',\n full && '*:max-w-[1285px]',\n )}\n >\n {breadcrumbEnabled && (breadcrumb ?? <PageBreadcrumb {...breadcrumbProps} />)}\n {children}\n {footer.enabled !== false && (footer.component ?? <PageFooter items={footer.items} />)}\n </article>\n {tocEnabled &&\n (tocReplace ?? (\n <div\n id=\"nd-toc\"\n className=\"sticky top-(--fd-docs-row-3) [grid-area:toc] h-[calc(var(--fd-docs-height)-var(--fd-docs-row-3))] flex flex-col w-(--fd-toc-width) pt-12 pe-4 pb-2 xl:layout:[--fd-toc-width:268px] max-xl:hidden\"\n >\n {tocOptions.header}\n <h3\n id=\"toc-title\"\n className=\"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground\"\n >\n <Text className=\"size-4\" />\n <I18nLabel label=\"toc\" />\n </h3>\n <TOCScrollArea>\n {tocOptions.style === 'clerk' ? <TocClerk.TOCItems /> : <TocDefault.TOCItems />}\n </TOCScrollArea>\n {tocOptions.footer}\n </div>\n ))}\n </>,\n );\n}\n\nexport function EditOnGitHub(props: ComponentProps<'a'>) {\n return (\n <a\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n {...props}\n className={cn(\n buttonVariants({\n color: 'secondary',\n size: 'sm',\n className: 'gap-1.5 not-prose',\n }),\n props.className,\n )}\n >\n {props.children ?? (\n <>\n <Edit className=\"size-3.5\" />\n <I18nLabel label=\"editOnGithub\" />\n </>\n )}\n </a>\n );\n}\n\n/**\n * Add typography styles\n */\nexport function DocsBody({ children, className, ...props }: ComponentProps<'div'>) {\n return (\n <div {...props} className={cn('prose flex-1', className)}>\n {children}\n </div>\n );\n}\n\nexport function DocsDescription({ children, className, ...props }: ComponentProps<'p'>) {\n // Don't render if no description provided\n if (children === undefined) return null;\n\n return (\n <p {...props} className={cn('mb-8 text-lg text-fd-muted-foreground', className)}>\n {children}\n </p>\n );\n}\n\nexport function DocsTitle({ children, className, ...props }: ComponentProps<'h1'>) {\n return (\n <h1 {...props} className={cn('text-[1.75em] font-semibold', className)}>\n {children}\n </h1>\n );\n}\n\nexport { PageLastUpdate, PageBreadcrumb } from './client';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["children","TOCProvider","TOCScrollArea","TocClerk","TocDefault","I18nLabel"],"sources":["../../../../src/layouts/notebook/page/index.tsx"],"sourcesContent":["import type { ComponentProps, ReactNode } from 'react';\nimport { cn } from '@fumadocs/ui/cn';\nimport { buttonVariants } from '@/components/ui/button';\nimport { Edit, Text } from 'lucide-react';\nimport { I18nLabel } from '@/contexts/i18n';\nimport {\n type BreadcrumbProps,\n type FooterProps,\n PageBreadcrumb,\n PageFooter,\n PageTOCPopover,\n PageTOCPopoverContent,\n PageTOCPopoverTrigger,\n} from './client';\nimport type { AnchorProviderProps, TOCItemType } from 'fumadocs-core/toc';\nimport * as TocDefault from '@/components/toc/default';\nimport * as TocClerk from '@/components/toc/clerk';\nimport { TOCProvider, TOCScrollArea } from '@/components/toc';\n\ninterface BreadcrumbOptions extends BreadcrumbProps {\n enabled: boolean;\n component: ReactNode;\n}\n\ninterface FooterOptions extends FooterProps {\n enabled: boolean;\n component: ReactNode;\n}\n\nexport interface DocsPageProps {\n toc?: TOCItemType[];\n tableOfContent?: Partial<TableOfContentOptions>;\n tableOfContentPopover?: Partial<TableOfContentPopoverOptions>;\n\n /**\n * Extend the page to fill all available space\n *\n * @defaultValue false\n */\n full?: boolean;\n\n /**\n * Replace or disable breadcrumb\n */\n breadcrumb?: Partial<BreadcrumbOptions>;\n\n /**\n * Footer navigation, you can disable it by passing `false`\n */\n footer?: Partial<FooterOptions>;\n\n children?: ReactNode;\n\n /**\n * Apply class names to the `#nd-page` container.\n */\n className?: string;\n}\n\ntype TableOfContentOptions = Pick<AnchorProviderProps, 'single'> & {\n /**\n * Custom content in TOC container, before the main TOC\n */\n header?: ReactNode;\n\n /**\n * Custom content in TOC container, after the main TOC\n */\n footer?: ReactNode;\n\n enabled: boolean;\n component: ReactNode;\n\n /**\n * @defaultValue 'normal'\n */\n style?: 'normal' | 'clerk';\n};\n\ntype TableOfContentPopoverOptions = Omit<TableOfContentOptions, 'single'>;\n\nexport function DocsPage({\n breadcrumb: { enabled: breadcrumbEnabled = true, component: breadcrumb, ...breadcrumbProps } = {},\n footer = {},\n full = false,\n tableOfContentPopover: {\n enabled: tocPopoverEnabled,\n component: tocPopover,\n ...tocPopoverOptions\n } = {},\n tableOfContent: { enabled: tocEnabled, component: tocReplace, ...tocOptions } = {},\n toc = [],\n children,\n className,\n}: DocsPageProps) {\n // disable TOC on full mode, you can still enable it with `enabled` option.\n tocEnabled ??=\n !full && (toc.length > 0 || tocOptions.footer !== undefined || tocOptions.header !== undefined);\n\n tocPopoverEnabled ??=\n toc.length > 0 ||\n tocPopoverOptions.header !== undefined ||\n tocPopoverOptions.footer !== undefined;\n\n let wrapper = (children: ReactNode) => children;\n\n if (tocEnabled || tocPopoverEnabled) {\n wrapper = (children) => (\n <TOCProvider single={tocOptions.single} toc={toc}>\n {children}\n </TOCProvider>\n );\n }\n\n return wrapper(\n <>\n {tocPopoverEnabled &&\n (tocPopover ?? (\n <PageTOCPopover>\n <PageTOCPopoverTrigger />\n <PageTOCPopoverContent>\n {tocPopoverOptions.header}\n <TOCScrollArea>\n {tocPopoverOptions.style === 'clerk' ? (\n <TocClerk.TOCItems />\n ) : (\n <TocDefault.TOCItems />\n )}\n </TOCScrollArea>\n {tocPopoverOptions.footer}\n </PageTOCPopoverContent>\n </PageTOCPopover>\n ))}\n <article\n id=\"nd-page\"\n data-full={full}\n className={cn(\n 'flex flex-col [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14 *:max-w-[900px]',\n full && '*:max-w-[1285px]',\n className,\n )}\n >\n {breadcrumbEnabled && (breadcrumb ?? <PageBreadcrumb {...breadcrumbProps} />)}\n {children}\n {footer.enabled !== false && (footer.component ?? <PageFooter items={footer.items} />)}\n </article>\n {tocEnabled &&\n (tocReplace ?? (\n <div\n id=\"nd-toc\"\n className=\"sticky top-(--fd-docs-row-3) [grid-area:toc] h-[calc(var(--fd-docs-height)-var(--fd-docs-row-3))] flex flex-col w-(--fd-toc-width) pt-12 pe-4 pb-2 xl:layout:[--fd-toc-width:268px] max-xl:hidden\"\n >\n {tocOptions.header}\n <h3\n id=\"toc-title\"\n className=\"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground\"\n >\n <Text className=\"size-4\" />\n <I18nLabel label=\"toc\" />\n </h3>\n <TOCScrollArea>\n {tocOptions.style === 'clerk' ? <TocClerk.TOCItems /> : <TocDefault.TOCItems />}\n </TOCScrollArea>\n {tocOptions.footer}\n </div>\n ))}\n </>,\n );\n}\n\nexport function EditOnGitHub(props: ComponentProps<'a'>) {\n return (\n <a\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n {...props}\n className={cn(\n buttonVariants({\n color: 'secondary',\n size: 'sm',\n className: 'gap-1.5 not-prose',\n }),\n props.className,\n )}\n >\n {props.children ?? (\n <>\n <Edit className=\"size-3.5\" />\n <I18nLabel label=\"editOnGithub\" />\n </>\n )}\n </a>\n );\n}\n\n/**\n * Add typography styles\n */\nexport function DocsBody({ children, className, ...props }: ComponentProps<'div'>) {\n return (\n <div {...props} className={cn('prose flex-1', className)}>\n {children}\n </div>\n );\n}\n\nexport function DocsDescription({ children, className, ...props }: ComponentProps<'p'>) {\n // Don't render if no description provided\n if (children === undefined) return null;\n\n return (\n <p {...props} className={cn('mb-8 text-lg text-fd-muted-foreground', className)}>\n {children}\n </p>\n );\n}\n\nexport function DocsTitle({ children, className, ...props }: ComponentProps<'h1'>) {\n return (\n <h1 {...props} className={cn('text-[1.75em] font-semibold', className)}>\n {children}\n </h1>\n );\n}\n\nexport { PageLastUpdate, PageBreadcrumb } from './client';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAiFA,SAAgB,SAAS,EACvB,YAAY,EAAE,SAAS,oBAAoB,MAAM,WAAW,YAAY,GAAG,oBAAoB,EAAE,EACjG,SAAS,EAAE,EACX,OAAO,OACP,uBAAuB,EACrB,SAAS,mBACT,WAAW,YACX,GAAG,sBACD,EAAE,EACN,gBAAgB,EAAE,SAAS,YAAY,WAAW,YAAY,GAAG,eAAe,EAAE,EAClF,MAAM,EAAE,EACR,UACA,aACgB;AAEhB,gBACE,CAAC,SAAS,IAAI,SAAS,KAAK,WAAW,WAAW,UAAa,WAAW,WAAW;AAEvF,uBACE,IAAI,SAAS,KACb,kBAAkB,WAAW,UAC7B,kBAAkB,WAAW;CAE/B,IAAI,WAAW,eAAwBA;AAEvC,KAAI,cAAc,kBAChB,YAAW,eACT,oBAACC;EAAY,QAAQ,WAAW;EAAa;YAC1CD;GACW;AAIlB,QAAO,QACL;EACG,sBACE,cACC,qBAAC,6BACC,oBAAC,0BAAwB,EACzB,qBAAC;GACE,kBAAkB;GACnB,oBAACE,uCACE,kBAAkB,UAAU,UAC3B,oBAACC,cAAS,aAAW,GAErB,oBAACC,gBAAW,aAAW,GAEX;GACf,kBAAkB;MACG,IACT;EAErB,qBAAC;GACC,IAAG;GACH,aAAW;GACX,WAAW,GACT,mGACA,QAAQ,oBACR,UACD;;IAEA,sBAAsB,cAAc,oBAAC,kBAAe,GAAI,kBAAmB;IAC3E;IACA,OAAO,YAAY,UAAU,OAAO,aAAa,oBAAC,cAAW,OAAO,OAAO,QAAS;;IAC7E;EACT,eACE,cACC,qBAAC;GACC,IAAG;GACH,WAAU;;IAET,WAAW;IACZ,qBAAC;KACC,IAAG;KACH,WAAU;gBAEV,oBAAC,QAAK,WAAU,WAAW,EAC3B,oBAACC,0BAAU,OAAM,QAAQ;MACtB;IACL,oBAACH,uCACE,WAAW,UAAU,UAAU,oBAACC,cAAS,aAAW,GAAG,oBAACC,gBAAW,aAAW,GACjE;IACf,WAAW;;IACR;KAET,CACJ;;AAGH,SAAgB,aAAa,OAA4B;AACvD,QACE,oBAAC;EACC,QAAO;EACP,KAAI;EACJ,GAAI;EACJ,WAAW,GACT,eAAe;GACb,OAAO;GACP,MAAM;GACN,WAAW;GACZ,CAAC,EACF,MAAM,UACP;YAEA,MAAM,YACL,4CACE,oBAAC,QAAK,WAAU,aAAa,EAC7B,oBAACC,0BAAU,OAAM,iBAAiB,IACjC;GAEH;;;;;AAOR,SAAgB,SAAS,EAAE,UAAU,WAAW,GAAG,SAAgC;AACjF,QACE,oBAAC;EAAI,GAAI;EAAO,WAAW,GAAG,gBAAgB,UAAU;EACrD;GACG;;AAIV,SAAgB,gBAAgB,EAAE,UAAU,WAAW,GAAG,SAA8B;AAEtF,KAAI,aAAa,OAAW,QAAO;AAEnC,QACE,oBAAC;EAAE,GAAI;EAAO,WAAW,GAAG,yCAAyC,UAAU;EAC5E;GACC;;AAIR,SAAgB,UAAU,EAAE,UAAU,WAAW,GAAG,SAA+B;AACjF,QACE,oBAAC;EAAG,GAAI;EAAO,WAAW,GAAG,+BAA+B,UAAU;EACnE;GACE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SidebarCollapseTrigger as SidebarCollapseTrigger$1, SidebarDrawerContent, SidebarFolder as SidebarFolder$1, SidebarFolderContent as SidebarFolderContent$1, SidebarFolderLink as SidebarFolderLink$1, SidebarFolderTrigger as SidebarFolderTrigger$1, SidebarItem as SidebarItem$1, SidebarProvider, SidebarTrigger as SidebarTrigger$1, SidebarViewport as SidebarViewport$1 } from "../../components/sidebar/base.js";
|
|
2
2
|
import { SidebarPageTreeComponents } from "../../components/sidebar/page-tree.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime122 from "react/jsx-runtime";
|
|
4
|
+
import * as react14 from "react";
|
|
5
5
|
import { ComponentProps } from "react";
|
|
6
6
|
import * as _fumadocs_ui_link_item0 from "@fumadocs/ui/link-item";
|
|
7
7
|
|
|
@@ -12,48 +12,48 @@ declare function SidebarContent({
|
|
|
12
12
|
className,
|
|
13
13
|
children,
|
|
14
14
|
...props
|
|
15
|
-
}: ComponentProps<'aside'>):
|
|
15
|
+
}: ComponentProps<'aside'>): react_jsx_runtime122.JSX.Element;
|
|
16
16
|
declare function SidebarDrawer({
|
|
17
17
|
children,
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: ComponentProps<typeof SidebarDrawerContent>):
|
|
20
|
+
}: ComponentProps<typeof SidebarDrawerContent>): react_jsx_runtime122.JSX.Element;
|
|
21
21
|
declare function SidebarSeparator({
|
|
22
22
|
className,
|
|
23
23
|
style,
|
|
24
24
|
children,
|
|
25
25
|
...props
|
|
26
|
-
}: ComponentProps<'p'>):
|
|
26
|
+
}: ComponentProps<'p'>): react_jsx_runtime122.JSX.Element;
|
|
27
27
|
declare function SidebarItem({
|
|
28
28
|
className,
|
|
29
29
|
style,
|
|
30
30
|
children,
|
|
31
31
|
...props
|
|
32
|
-
}: ComponentProps<typeof SidebarItem$1>):
|
|
32
|
+
}: ComponentProps<typeof SidebarItem$1>): react_jsx_runtime122.JSX.Element;
|
|
33
33
|
declare function SidebarFolderTrigger({
|
|
34
34
|
className,
|
|
35
35
|
style,
|
|
36
36
|
...props
|
|
37
|
-
}: ComponentProps<typeof SidebarFolderTrigger$1>):
|
|
37
|
+
}: ComponentProps<typeof SidebarFolderTrigger$1>): react_jsx_runtime122.JSX.Element;
|
|
38
38
|
declare function SidebarFolderLink({
|
|
39
39
|
className,
|
|
40
40
|
style,
|
|
41
41
|
...props
|
|
42
|
-
}: ComponentProps<typeof SidebarFolderLink$1>):
|
|
42
|
+
}: ComponentProps<typeof SidebarFolderLink$1>): react_jsx_runtime122.JSX.Element;
|
|
43
43
|
declare function SidebarFolderContent({
|
|
44
44
|
className,
|
|
45
45
|
children,
|
|
46
46
|
...props
|
|
47
|
-
}: ComponentProps<typeof SidebarFolderContent$1>):
|
|
48
|
-
declare const SidebarPageTree: (components: Partial<SidebarPageTreeComponents>) =>
|
|
47
|
+
}: ComponentProps<typeof SidebarFolderContent$1>): react_jsx_runtime122.JSX.Element;
|
|
48
|
+
declare const SidebarPageTree: (components: Partial<SidebarPageTreeComponents>) => react_jsx_runtime122.JSX.Element;
|
|
49
49
|
declare const SidebarLinkItem: ({
|
|
50
50
|
item,
|
|
51
51
|
...props
|
|
52
|
-
}:
|
|
52
|
+
}: react14.HTMLAttributes<HTMLElement> & {
|
|
53
53
|
item: Exclude<_fumadocs_ui_link_item0.LinkItemType, {
|
|
54
54
|
type: "icon";
|
|
55
55
|
}>;
|
|
56
|
-
}) =>
|
|
56
|
+
}) => react_jsx_runtime122.JSX.Element;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { Sidebar, SidebarCollapseTrigger, SidebarContent, SidebarDrawer, SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarItem, SidebarLinkItem, SidebarPageTree, SidebarSeparator, SidebarTrigger, SidebarViewport };
|
|
59
59
|
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","names":[],"sources":["../../../src/layouts/notebook/sidebar.tsx"],"sourcesContent":[],"mappings":";;;;;;;;cA+BmB,gBAAO,uCACX,gDACS,kDACP,0CACD;iBAGA,cAAA;OACT;;;;GAIJ,0BAAuB,
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","names":[],"sources":["../../../src/layouts/notebook/sidebar.tsx"],"sourcesContent":[],"mappings":";;;;;;;;cA+BmB,gBAAO,uCACX,gDACS,kDACP,0CACD;iBAGA,cAAA;OACT;;;;GAIJ,0BAAuB,oBAAA,CAAA,GAAA,CAAA;iBA+CV,aAAA;;;;GAIb,sBAAsB,wBAA0B,oBAAA,CAAA,GAAA,CAAA;iBAiBnC,gBAAA;;;;;GAA2D,sBAAmB,oBAAA,CAAA,GAAA,CAAA;iBAiB9E,WAAA;;;;;GAKb,sBAAsB,iBAAiB,oBAAA,CAAA,GAAA,CAAA;iBAiB1B,oBAAA;;;;GAIb,sBAAsB,0BAA0B,oBAAA,CAAA,GAAA,CAAA;AA3HhC,iBAkJH,iBAAA,CAlJU;EAAA,SAAA;EAAA,KAAA;EAAA,GAAA;AAAA,CAAA,EAsJvB,cAtJuB,CAAA,OAsJD,mBAtJC,CAAA,CAAA,EAsJsB,oBAAA,CAAA,GAAA,CAAA,OAtJtB;AAAA,iBAuKV,oBAAA,CAvKU;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA2KvB,cA3KuB,CAAA,OA2KD,sBA3KC,CAAA,CAAA,EA2KyB,oBAAA,CAAA,GAAA,CAAA,OA3KzB;AACX,cA6LF,eA7LE,EAAA,CAAA,UAAA,EA6La,OA7Lb,CAoMb,yBAAA,CApMa,EAAA,GA6La,oBAAA,CAAA,GAAA,CAAA,OA7Lb;AACS,cAqMX,eArMW,EAAA,CAAA;EAAA,IAAA;EAAA,GAAA;CAAA,EAqMI,OAAA,CAAA,cArMJ,CAqMI,WArMJ,CAAA,GAAA;EACP,IAAA,SAAA,CAoMW,uBAAA,CAAA,YAAA,EApMX;IACD,IAAA,EAAA,MAAA;EACR,CAAA,CAAA;sCAJN"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime131 from "react/jsx-runtime";
|
|
2
|
+
import * as react15 from "react";
|
|
3
3
|
import { ComponentProps, ReactNode } from "react";
|
|
4
4
|
import { LinkItemType } from "@fumadocs/ui/link-item";
|
|
5
5
|
import { I18nConfig } from "fumadocs-core/i18n";
|
|
@@ -63,7 +63,7 @@ declare function resolveLinkItems({
|
|
|
63
63
|
declare function renderTitleNav({
|
|
64
64
|
title,
|
|
65
65
|
url
|
|
66
|
-
}: Partial<NavOptions>, props: ComponentProps<'a'>): string | number | bigint | boolean |
|
|
66
|
+
}: Partial<NavOptions>, props: ComponentProps<'a'>): string | number | bigint | boolean | react_jsx_runtime131.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react15.ReactPortal | react15.ReactElement<unknown, string | react15.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { BaseLayoutProps, NavOptions, renderTitleNav, resolveLinkItems };
|
|
69
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime140 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/layouts/shared/language-toggle.d.ts
|
|
5
5
|
type LanguageSelectProps = ComponentProps<'button'>;
|
|
6
6
|
declare function LanguageToggle(props: LanguageSelectProps): React.ReactElement;
|
|
7
|
-
declare function LanguageToggleText(props: ComponentProps<'span'>):
|
|
7
|
+
declare function LanguageToggleText(props: ComponentProps<'span'>): react_jsx_runtime140.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { LanguageSelectProps, LanguageToggle, LanguageToggleText };
|
|
10
10
|
//# sourceMappingURL=language-toggle.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "../../components/ui/button.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime99 from "react/jsx-runtime";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/layouts/shared/search-toggle.d.ts
|
|
@@ -11,13 +11,13 @@ declare function SearchToggle({
|
|
|
11
11
|
size,
|
|
12
12
|
color,
|
|
13
13
|
...props
|
|
14
|
-
}: SearchToggleProps):
|
|
14
|
+
}: SearchToggleProps): react_jsx_runtime99.JSX.Element | null;
|
|
15
15
|
declare function LargeSearchToggle({
|
|
16
16
|
hideIfDisabled,
|
|
17
17
|
...props
|
|
18
18
|
}: ComponentProps<'button'> & {
|
|
19
19
|
hideIfDisabled?: boolean;
|
|
20
|
-
}):
|
|
20
|
+
}): react_jsx_runtime99.JSX.Element | null;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { LargeSearchToggle, SearchToggle };
|
|
23
23
|
//# sourceMappingURL=search-toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-toggle.d.ts","names":[],"sources":["../../../src/layouts/shared/search-toggle.tsx"],"sourcesContent":[],"mappings":";;;;;UAQU,iBAAA,SAA0B,KAAK,oCAAoC;;;AAAnE,iBAIM,YAAA,CAJY;EAAA,cAAA;EAAA,IAAA;EAAA,KAAA;EAAA,GAAA;AAAA,CAAA,EASzB,iBATyB,CAAA,EASR,
|
|
1
|
+
{"version":3,"file":"search-toggle.d.ts","names":[],"sources":["../../../src/layouts/shared/search-toggle.tsx"],"sourcesContent":[],"mappings":";;;;;UAQU,iBAAA,SAA0B,KAAK,oCAAoC;;;AAAnE,iBAIM,YAAA,CAJY;EAAA,cAAA;EAAA,IAAA;EAAA,KAAA;EAAA,GAAA;AAAA,CAAA,EASzB,iBATyB,CAAA,EASR,mBAAA,CAAA,GAAA,CAAA,OAAA,GATQ,IAAA;AAAa,iBAkCzB,iBAAA,CAlCyB;EAAA,cAAA;EAAA,GAAA;CAAA,EAqCtC,cArCsC,CAAA,QAAA,CAAA,GAAA;EAAL,cAAA,CAAA,EAAA,OAAA;CAAyC,CAAA,EAuC5E,mBAAA,CAAA,GAAA,CAAA,OAAA,GAvC4E,IAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime101 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/layouts/shared/theme-toggle.d.ts
|
|
@@ -8,7 +8,7 @@ declare function ThemeToggle({
|
|
|
8
8
|
...props
|
|
9
9
|
}: ComponentProps<'div'> & {
|
|
10
10
|
mode?: 'light-dark' | 'light-dark-system';
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime101.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { ThemeToggle };
|
|
14
14
|
//# sourceMappingURL=theme-toggle.d.ts.map
|
package/dist/page.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageBreadcrumb, PageLastUpdate } from "./layouts/docs/page/client.js";
|
|
2
2
|
import { DocsBody, DocsDescription, DocsPageProps as DocsPageProps$1, DocsTitle, EditOnGitHub } from "./layouts/docs/page/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime136 from "react/jsx-runtime";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/page.d.ts
|
|
@@ -25,13 +25,13 @@ interface DocsPageProps extends DocsPageProps$1 {
|
|
|
25
25
|
/**
|
|
26
26
|
* For separate MDX page
|
|
27
27
|
*/
|
|
28
|
-
declare function withArticle(props: ComponentProps<'main'>):
|
|
28
|
+
declare function withArticle(props: ComponentProps<'main'>): react_jsx_runtime136.JSX.Element;
|
|
29
29
|
declare function DocsPage({
|
|
30
30
|
lastUpdate,
|
|
31
31
|
editOnGithub,
|
|
32
32
|
children,
|
|
33
33
|
...props
|
|
34
|
-
}: DocsPageProps):
|
|
34
|
+
}: DocsPageProps): react_jsx_runtime136.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { DocsBody, DocsDescription, DocsPage, DocsPageProps, DocsTitle, EditOnGitHub, PageBreadcrumb, PageLastUpdate, withArticle };
|
|
37
37
|
//# sourceMappingURL=page.d.ts.map
|
package/dist/page.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","names":[],"sources":["../src/page.tsx"],"sourcesContent":[],"mappings":";;;;;;UAkBU,mBAAA,SAA4B,KAAK;;;EAAjC;AAiBV;;;;EAAyD,GAAA,CAAA,EAAA,MAAA;EAQzC;AAQhB;;EAAuC,IAAA,EAAA,MAAA;;AAAoC,UAhB1D,aAAA,SAAsB,eAgBoC,CAAA;EAAa,YAAA,CAAA,EAfvE,mBAeuE;EAAA,UAAA,CAAA,EAdzE,IAcyE,GAAA,MAAA,GAAA,MAAA;;;;;iBARxE,WAAA,QAAmB,yBAAsB,
|
|
1
|
+
{"version":3,"file":"page.d.ts","names":[],"sources":["../src/page.tsx"],"sourcesContent":[],"mappings":";;;;;;UAkBU,mBAAA,SAA4B,KAAK;;;EAAjC;AAiBV;;;;EAAyD,GAAA,CAAA,EAAA,MAAA;EAQzC;AAQhB;;EAAuC,IAAA,EAAA,MAAA;;AAAoC,UAhB1D,aAAA,SAAsB,eAgBoC,CAAA;EAAa,YAAA,CAAA,EAfvE,mBAeuE;EAAA,UAAA,CAAA,EAdzE,IAcyE,GAAA,MAAA,GAAA,MAAA;;;;;iBARxE,WAAA,QAAmB,yBAAsB,oBAAA,CAAA,GAAA,CAAA;iBAQzC,QAAA;;;;;GAA2D,gBAAa,oBAAA,CAAA,GAAA,CAAA"}
|
package/dist/provider/base.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultSearchDialogProps } from "../components/dialog/search-default.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
3
3
|
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
4
4
|
import { I18nProviderProps } from "@fumadocs/ui/contexts/i18n";
|
|
5
5
|
import { SearchProviderProps } from "@fumadocs/ui/contexts/search";
|
|
@@ -44,7 +44,7 @@ declare function RootProvider({
|
|
|
44
44
|
theme,
|
|
45
45
|
search,
|
|
46
46
|
i18n
|
|
47
|
-
}: RootProviderProps):
|
|
47
|
+
}: RootProviderProps): react_jsx_runtime30.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { RootProvider, RootProviderProps };
|
|
50
50
|
//# sourceMappingURL=base.d.ts.map
|
package/dist/provider/next.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
2
|
import { Framework } from "fumadocs-core/framework";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/provider/next.d.ts
|
|
@@ -16,7 +16,7 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
16
|
declare function RootProvider({
|
|
17
17
|
components,
|
|
18
18
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
19
|
+
}: RootProviderProps): react_jsx_runtime31.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { RootProvider, RootProviderProps };
|
|
22
22
|
//# sourceMappingURL=next.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
2
|
import { Framework } from "fumadocs-core/framework";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime32 from "react/jsx-runtime";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/provider/react-router.d.ts
|
|
@@ -16,7 +16,7 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
16
|
declare function RootProvider({
|
|
17
17
|
components,
|
|
18
18
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
19
|
+
}: RootProviderProps): react_jsx_runtime32.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { RootProvider, RootProviderProps };
|
|
22
22
|
//# sourceMappingURL=react-router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-router.d.ts","names":[],"sources":["../../src/provider/react-router.tsx"],"sourcesContent":[],"mappings":";;;;;;UAMiB,iBAAA,SAA0B,sBAAsB;;;AAAjE;EAAiE,UAAA,CAAA,EAAA;IAKtD,IAAA,CAAA,EAAA,SAAA,CAAA,MAAA,CAAA;IACC,KAAA,CAAA,EAAA,SAAA,CAAA,OAAA,CAAA;EAN+B,CAAA;;AAU3B,iBAAA,YAAA,CAAY;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAA2B,iBAA3B,CAAA,EAA4C,
|
|
1
|
+
{"version":3,"file":"react-router.d.ts","names":[],"sources":["../../src/provider/react-router.tsx"],"sourcesContent":[],"mappings":";;;;;;UAMiB,iBAAA,SAA0B,sBAAsB;;;AAAjE;EAAiE,UAAA,CAAA,EAAA;IAKtD,IAAA,CAAA,EAAA,SAAA,CAAA,MAAA,CAAA;IACC,KAAA,CAAA,EAAA,SAAA,CAAA,OAAA,CAAA;EAN+B,CAAA;;AAU3B,iBAAA,YAAA,CAAY;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAA2B,iBAA3B,CAAA,EAA4C,mBAAA,CAAA,GAAA,CAAA,OAA5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
2
|
import { Framework } from "fumadocs-core/framework";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime33 from "react/jsx-runtime";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/provider/tanstack.d.ts
|
|
@@ -16,7 +16,7 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
16
|
declare function RootProvider({
|
|
17
17
|
components,
|
|
18
18
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
19
|
+
}: RootProviderProps): react_jsx_runtime33.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { RootProvider, RootProviderProps };
|
|
22
22
|
//# sourceMappingURL=tanstack.d.ts.map
|
package/dist/provider/waku.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
2
|
import { Framework } from "fumadocs-core/framework";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime34 from "react/jsx-runtime";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/provider/waku.d.ts
|
|
@@ -16,7 +16,7 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
16
|
declare function RootProvider({
|
|
17
17
|
components,
|
|
18
18
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
19
|
+
}: RootProviderProps): react_jsx_runtime34.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { RootProvider, RootProviderProps };
|
|
22
22
|
//# sourceMappingURL=waku.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fumadocs/base-ui",
|
|
3
|
-
"version": "16.4.
|
|
3
|
+
"version": "16.4.4",
|
|
4
4
|
"description": "The Base UI version of Fumadocs UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"next-themes": "^0.4.6",
|
|
93
93
|
"react-medium-image-zoom": "^5.4.0",
|
|
94
94
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
95
|
-
"@fumadocs/ui": "16.4.
|
|
96
|
-
"fumadocs-core": "16.4.
|
|
95
|
+
"@fumadocs/ui": "16.4.4",
|
|
96
|
+
"fumadocs-core": "16.4.4"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@tailwindcss/cli": "^4.1.18",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"@types/react": "^19.2.7",
|
|
102
102
|
"@types/react-dom": "^19.2.3",
|
|
103
103
|
"tailwindcss": "^4.1.18",
|
|
104
|
-
"tsdown": "^0.18.
|
|
105
|
-
"@fumadocs/cli": "1.2.
|
|
104
|
+
"tsdown": "^0.18.4",
|
|
105
|
+
"@fumadocs/cli": "1.2.2",
|
|
106
106
|
"eslint-config-custom": "0.0.0",
|
|
107
107
|
"tsconfig": "0.0.0"
|
|
108
108
|
},
|