@fumadocs/base-ui 16.4.3 → 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 -17
- package/dist/components/sidebar/base.d.ts.map +1 -1
- package/dist/components/sidebar/base.js +5 -1
- 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/tabs/dropdown.d.ts +2 -2
- 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/button.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/collapsible.d.ts +6 -6
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts +7 -7
- package/dist/components/ui/popover.d.ts +3 -3
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +4 -4
- package/dist/components/ui/tabs.d.ts +7 -7
- package/dist/components/ui/tabs.d.ts.map +1 -1
- 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/index.js +3 -3
- package/dist/layouts/docs/page/client.d.ts +7 -7
- package/dist/layouts/docs/page/client.d.ts.map +1 -1
- 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 +2 -2
- package/dist/layouts/home/client.js +2 -2
- package/dist/layouts/home/index.d.ts +2 -2
- package/dist/layouts/home/navbar.d.ts +7 -7
- 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/index.d.ts.map +1 -1
- package/dist/layouts/notebook/index.js +3 -3
- 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/index.d.ts.map +1 -1
- package/dist/layouts/shared/language-toggle.d.ts +2 -2
- package/dist/layouts/shared/language-toggle.d.ts.map +1 -1
- package/dist/layouts/shared/search-toggle.d.ts +3 -3
- package/dist/layouts/shared/theme-toggle.d.ts +2 -2
- package/dist/layouts/shared/theme-toggle.d.ts.map +1 -1
- 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/tanstack.d.ts +2 -2
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/steps.d.ts
|
|
@@ -6,12 +6,12 @@ declare function Steps({
|
|
|
6
6
|
children
|
|
7
7
|
}: {
|
|
8
8
|
children: ReactNode;
|
|
9
|
-
}):
|
|
9
|
+
}): react_jsx_runtime24.JSX.Element;
|
|
10
10
|
declare function Step({
|
|
11
11
|
children
|
|
12
12
|
}: {
|
|
13
13
|
children: ReactNode;
|
|
14
|
-
}):
|
|
14
|
+
}): react_jsx_runtime24.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Step, Steps };
|
|
17
17
|
//# sourceMappingURL=steps.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tabs as Tabs$1, TabsContent as TabsContent$1 } from "./ui/tabs.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ComponentProps, ReactNode } from "react";
|
|
5
5
|
import * as _base_ui_react0 from "@base-ui/react";
|
|
@@ -31,7 +31,7 @@ declare function Tabs({
|
|
|
31
31
|
defaultIndex,
|
|
32
32
|
defaultValue,
|
|
33
33
|
...props
|
|
34
|
-
}: TabsProps):
|
|
34
|
+
}: TabsProps): react_jsx_runtime26.JSX.Element;
|
|
35
35
|
interface TabProps extends Omit<ComponentProps<typeof TabsContent$1>, 'value'> {
|
|
36
36
|
/**
|
|
37
37
|
* Value of tab, detect from index if unspecified.
|
|
@@ -41,12 +41,12 @@ interface TabProps extends Omit<ComponentProps<typeof TabsContent$1>, 'value'> {
|
|
|
41
41
|
declare function Tab({
|
|
42
42
|
value,
|
|
43
43
|
...props
|
|
44
|
-
}: TabProps):
|
|
44
|
+
}: TabProps): react_jsx_runtime26.JSX.Element;
|
|
45
45
|
declare function TabsContent({
|
|
46
46
|
value,
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: ComponentProps<typeof TabsContent$1>):
|
|
49
|
+
}: ComponentProps<typeof TabsContent$1>): react_jsx_runtime26.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { Tab, TabProps, Tabs, TabsContent, TabsList, TabsProps, TabsTrigger };
|
|
52
52
|
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/type-table.d.ts
|
|
@@ -33,7 +33,7 @@ declare function TypeTable({
|
|
|
33
33
|
type
|
|
34
34
|
}: {
|
|
35
35
|
type: Record<string, TypeNode>;
|
|
36
|
-
}):
|
|
36
|
+
}): react_jsx_runtime29.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ParameterNode, TypeNode, TypeTable };
|
|
39
39
|
//# sourceMappingURL=type-table.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime64 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
4
4
|
|
|
@@ -6,26 +6,26 @@ import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
|
6
6
|
declare function Accordion({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: ComponentProps<typeof Accordion$1.Root>):
|
|
9
|
+
}: ComponentProps<typeof Accordion$1.Root>): react_jsx_runtime64.JSX.Element;
|
|
10
10
|
declare function AccordionItem({
|
|
11
11
|
children,
|
|
12
12
|
...props
|
|
13
|
-
}: ComponentProps<typeof Accordion$1.Item>):
|
|
13
|
+
}: ComponentProps<typeof Accordion$1.Item>): react_jsx_runtime64.JSX.Element;
|
|
14
14
|
declare function AccordionHeader({
|
|
15
15
|
className,
|
|
16
16
|
children,
|
|
17
17
|
...props
|
|
18
|
-
}: ComponentProps<typeof Accordion$1.Header>):
|
|
18
|
+
}: ComponentProps<typeof Accordion$1.Header>): react_jsx_runtime64.JSX.Element;
|
|
19
19
|
declare function AccordionTrigger({
|
|
20
20
|
className,
|
|
21
21
|
children,
|
|
22
22
|
...props
|
|
23
|
-
}: ComponentProps<typeof Accordion$1.Trigger>):
|
|
23
|
+
}: ComponentProps<typeof Accordion$1.Trigger>): react_jsx_runtime64.JSX.Element;
|
|
24
24
|
declare function AccordionContent({
|
|
25
25
|
className,
|
|
26
26
|
children,
|
|
27
27
|
...props
|
|
28
|
-
}: ComponentProps<typeof Accordion$1.Panel>):
|
|
28
|
+
}: ComponentProps<typeof Accordion$1.Panel>): react_jsx_runtime64.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger };
|
|
31
31
|
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -5,7 +5,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
6
|
variant?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
|
|
7
7
|
color?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "icon" | "sm" | "icon-sm" | "icon-xs" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
10
|
type ButtonProps = VariantProps<typeof buttonVariants>;
|
|
11
11
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","names":[],"sources":["../../../src/components/ui/button.tsx"],"sourcesContent":[],"mappings":";;;;cAUa,sBAiByB;;;EAjBzB,IAAA,CAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"button.d.ts","names":[],"sources":["../../../src/components/ui/button.tsx"],"sourcesContent":[],"mappings":";;;;cAUa,sBAiByB;;;EAjBzB,IAAA,CAAA,EAAA,MAAA,GAAA,IAeZ,GAAA,SAAA,GAAA,SAAA,GAAA,IAAA,GAAA,SAAA;AAED,CAAA,GAFC,+BAAA,CAAA,SAEyB,CAAA,GAAA,SAAY,EAAA,GAAA,MAAA;KAA1B,WAAA,GAAc,oBAAoB"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime69 from "react/jsx-runtime";
|
|
2
|
+
import * as react0 from "react";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _base_ui_react1 from "@base-ui/react";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/collapsible.d.ts
|
|
8
|
-
declare const Collapsible:
|
|
9
|
-
declare const CollapsibleTrigger:
|
|
8
|
+
declare const Collapsible: react0.ForwardRefExoticComponent<_base_ui_react1.CollapsibleRootProps & react0.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const CollapsibleTrigger: react0.ForwardRefExoticComponent<_base_ui_react1.CollapsibleTriggerProps & react0.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
declare function CollapsibleContent({
|
|
11
11
|
children,
|
|
12
12
|
className,
|
|
13
13
|
...props
|
|
14
|
-
}: ComponentProps<typeof Collapsible$1.Panel>):
|
|
14
|
+
}: ComponentProps<typeof Collapsible$1.Panel>): react_jsx_runtime69.JSX.Element;
|
|
15
15
|
type CollapsibleProps = Collapsible$1.Root.Props;
|
|
16
16
|
type CollapsibleContentProps = Collapsible$1.Panel.Props;
|
|
17
17
|
type CollapsibleTriggerProps = Collapsible$1.Trigger.Props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","names":[],"sources":["../../../src/components/ui/collapsible.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAKa,aAAW,
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","names":[],"sources":["../../../src/components/ui/collapsible.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAKa,aAAW,MAAA,CAAA,0BAAiB,eAAA,CAAjB,oBAAA,GAAA,MAAA,CAAA,cAAA;cAEX,oBAAkB,MAAA,CAAA,0BAAoB,eAAA,CAApB,uBAAA,GAAA,MAAA,CAAA,cAAA;iBAEf,kBAAA;;;;GAIb,sBAAsB,aAAA,CAAU,SAAM,mBAAA,CAAA,GAAA,CAAA;KAgB7B,gBAAA,GAAmB,aAAA,CAAU,IAAA,CAAK;KAClC,uBAAA,GAA0B,aAAA,CAAU,KAAA,CAAM;AAzBzC,KA0BD,uBAAA,GAA0B,aAAA,CAAU,OAAA,CAAQ,KA1Bf"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { NavigationMenu } from "@base-ui/react/navigation-menu";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _base_ui_react3 from "@base-ui/react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/navigation-menu.d.ts
|
|
6
6
|
type NavigationMenuContentProps = NavigationMenu.Content.Props;
|
|
7
7
|
type NavigationMenuTriggerProps = NavigationMenu.Trigger.Props;
|
|
8
|
-
declare const NavigationMenuRoot: React.ForwardRefExoticComponent<
|
|
9
|
-
declare const NavigationMenuList: React.ForwardRefExoticComponent<
|
|
10
|
-
declare const NavigationMenuItem: React.ForwardRefExoticComponent<Omit<
|
|
11
|
-
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<
|
|
12
|
-
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<
|
|
13
|
-
declare const NavigationMenuLink: React.ForwardRefExoticComponent<
|
|
8
|
+
declare const NavigationMenuRoot: React.ForwardRefExoticComponent<_base_ui_react3.NavigationMenuRootProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
declare const NavigationMenuList: React.ForwardRefExoticComponent<_base_ui_react3.NavigationMenuListProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const NavigationMenuItem: React.ForwardRefExoticComponent<Omit<_base_ui_react3.NavigationMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<_base_ui_react3.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<_base_ui_react3.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const NavigationMenuLink: React.ForwardRefExoticComponent<_base_ui_react3.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { NavigationMenuContent, NavigationMenuContentProps, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuTriggerProps };
|
|
16
16
|
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _base_ui_react9 from "@base-ui/react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/popover.d.ts
|
|
6
6
|
declare const Popover: typeof Popover$1.Root;
|
|
7
7
|
declare const PopoverTrigger: Popover$1.Trigger;
|
|
8
|
-
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<
|
|
9
|
-
declare const PopoverClose: React.ForwardRefExoticComponent<
|
|
8
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<_base_ui_react9.PopoverPopupProps & React.RefAttributes<HTMLDivElement>, "ref"> & Pick<_base_ui_react9.PopoverPositionerProps, "sideOffset" | "align"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const PopoverClose: React.ForwardRefExoticComponent<_base_ui_react9.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Popover, PopoverClose, PopoverContent, PopoverTrigger };
|
|
12
12
|
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","names":[],"sources":["../../../src/components/ui/popover.tsx"],"sourcesContent":[],"mappings":";;;;;cAKM,gBAAO,SAAA,CAAA;cAEP,gBAAc,SAAA,CAAA;cAEd,gBAAc,KAAA,CAAA,0BAAA,KAmBlB,
|
|
1
|
+
{"version":3,"file":"popover.d.ts","names":[],"sources":["../../../src/components/ui/popover.tsx"],"sourcesContent":[],"mappings":";;;;;cAKM,gBAAO,SAAA,CAAA;cAEP,gBAAc,SAAA,CAAA;cAEd,gBAAc,KAAA,CAAA,0BAAA,KAmBlB,eAAA,CAnBkB,iBAAA,GAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,eAAA,CAAA,sBAAA,4BAAA,KAAA,CAAA,cAAA;AAPW,cA6BzB,YA1BwB,EA0BZ,KAAA,CAAA,yBA1BY,CA0BM,eAAA,CAAlB,iBAAA,GAAA,KAAA,CAAA,aA1BY,CA0BZ,iBA1BY,CAAA,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _base_ui_react12 from "@base-ui/react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/scroll-area.d.ts
|
|
6
|
-
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<
|
|
7
|
-
declare const ScrollViewport: React.ForwardRefExoticComponent<Omit<
|
|
8
|
-
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<
|
|
6
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<_base_ui_react12.ScrollAreaRootProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const ScrollViewport: React.ForwardRefExoticComponent<Omit<_base_ui_react12.ScrollAreaViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<_base_ui_react12.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
type ScrollAreaProps = ScrollArea$1.Root.Props;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { ScrollArea, ScrollAreaProps, ScrollBar, ScrollViewport };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime74 from "react/jsx-runtime";
|
|
2
|
+
import * as react5 from "react";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _base_ui_react15 from "@base-ui/react";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/tabs.d.ts
|
|
8
8
|
interface TabsProps extends ComponentProps<typeof Tabs$1.Root> {
|
|
@@ -20,8 +20,8 @@ interface TabsProps extends ComponentProps<typeof Tabs$1.Root> {
|
|
|
20
20
|
updateAnchor?: boolean;
|
|
21
21
|
onValueChange?: (value: string) => void;
|
|
22
22
|
}
|
|
23
|
-
declare const TabsList:
|
|
24
|
-
declare const TabsTrigger:
|
|
23
|
+
declare const TabsList: react5.ForwardRefExoticComponent<_base_ui_react15.TabsListProps & react5.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const TabsTrigger: react5.ForwardRefExoticComponent<_base_ui_react15.TabsTabProps & react5.RefAttributes<Element>>;
|
|
25
25
|
declare function Tabs({
|
|
26
26
|
ref,
|
|
27
27
|
groupId,
|
|
@@ -31,11 +31,11 @@ declare function Tabs({
|
|
|
31
31
|
value: _value,
|
|
32
32
|
onValueChange: _onValueChange,
|
|
33
33
|
...props
|
|
34
|
-
}: TabsProps):
|
|
34
|
+
}: TabsProps): react_jsx_runtime74.JSX.Element;
|
|
35
35
|
declare function TabsContent({
|
|
36
36
|
value,
|
|
37
37
|
...props
|
|
38
|
-
}: ComponentProps<typeof Tabs$1.Panel>):
|
|
38
|
+
}: ComponentProps<typeof Tabs$1.Panel>): react_jsx_runtime74.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { Tabs, TabsContent, TabsList, TabsProps, TabsTrigger };
|
|
41
41
|
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAkBiB,SAAA,SAAkB,sBAAsB,MAAA,CAAU;;;;;EAAlD;AA6BjB;;EAAqB,OAAA,CAAA,EAAA,OAAA;EAAA;;;EAER,YAAA,CAAA,EAA2B,OAAA;EAAA,
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAkBiB,SAAA,SAAkB,sBAAsB,MAAA,CAAU;;;;;EAAlD;AA6BjB;;EAAqB,OAAA,CAAA,EAAA,OAAA;EAAA;;;EAER,YAAA,CAAA,EAA2B,OAAA;EAAA,aAAA,CAAhB,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;;AAAA,cAFX,QAEW,EAFH,MAAA,CAAA,yBAEG,CAFc,gBAAA,CAAjB,aAAA,GAAA,MAAA,CAAA,aAEG,CAFH,cAEG,CAAA,CAAA;AAAA,cAAX,WAAW,EAAA,MAAA,CAAA,yBAAA,CAAgB,gBAAA,CAAhB,YAAA,GAAA,MAAA,CAAA,aAAA,CAAA,OAAA,CAAA,CAAA;AAAA,iBAER,IAAA,CAFQ;EAAA,GAAA;EAAA,OAAA;EAAA,OAAA;EAAA,YAAA;EAAA,YAAA;EAAA,KAAA,EAQf,MARe;EAAA,aAAA,EASP,cATO;EAAA,GAAA;AAAA,CAAA,EAWrB,SAXqB,CAAA,EAWZ,mBAAA,CAAA,GAAA,CAAA,OAXY;AAER,iBAgFA,WAAA,CAhFI;EAAA,KAAA;EAAA,GAAA;AAAA,CAAA,EAgF6B,cAhF7B,CAAA,OAgFmD,MAAA,CAAU,KAhF7D,CAAA,CAAA,EAgFmE,mBAAA,CAAA,GAAA,CAAA,OAhFnE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SidebarTab } from "../../components/sidebar/tabs/index.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime70 from "react/jsx-runtime";
|
|
3
|
+
import * as react4 from "react";
|
|
4
4
|
import { ComponentProps, ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/layouts/docs/client.d.ts
|
|
7
|
-
declare const LayoutContext:
|
|
7
|
+
declare const LayoutContext: react4.Context<{
|
|
8
8
|
isNavTransparent: boolean;
|
|
9
9
|
} | null>;
|
|
10
10
|
declare function LayoutContextProvider({
|
|
@@ -13,20 +13,20 @@ declare function LayoutContextProvider({
|
|
|
13
13
|
}: {
|
|
14
14
|
navTransparentMode?: 'always' | 'top' | 'none';
|
|
15
15
|
children: ReactNode;
|
|
16
|
-
}):
|
|
17
|
-
declare function LayoutHeader(props: ComponentProps<'header'>):
|
|
16
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
17
|
+
declare function LayoutHeader(props: ComponentProps<'header'>): react_jsx_runtime70.JSX.Element;
|
|
18
18
|
declare function LayoutBody({
|
|
19
19
|
className,
|
|
20
20
|
style,
|
|
21
21
|
children,
|
|
22
22
|
...props
|
|
23
|
-
}: ComponentProps<'div'>):
|
|
23
|
+
}: ComponentProps<'div'>): react_jsx_runtime70.JSX.Element;
|
|
24
24
|
declare function LayoutTabs({
|
|
25
25
|
options,
|
|
26
26
|
...props
|
|
27
27
|
}: ComponentProps<'div'> & {
|
|
28
28
|
options: SidebarTab[];
|
|
29
|
-
}):
|
|
29
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { LayoutBody, LayoutContext, LayoutContextProvider, LayoutHeader, LayoutTabs };
|
|
32
32
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","names":[],"sources":["../../../src/layouts/docs/client.tsx"],"sourcesContent":[],"mappings":";;;;;;cAWa,eAEE,
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../../src/layouts/docs/client.tsx"],"sourcesContent":[],"mappings":";;;;;;cAWa,eAEE,MAAA,CAFW;;;iBAIV,qBAAA;;;;EAJH,kBAEE,CAAA,EAAA,QAAA,GAAA,KAFW,GAAA,MAAA;EAIV,QAAA,EAKJ,SALI;CACd,CAAA,EAKD,mBAAA,CAAA,GAAA,CAAA,OALC;AACA,iBAsBc,YAAA,CAtBd,KAAA,EAsBkC,cAtBlC,CAAA,QAAA,CAAA,CAAA,EAsB0D,mBAAA,CAAA,GAAA,CAAA,OAtB1D;AAGU,iBA6BI,UAAA,CA7BJ;EAAA,SAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA6ByD,cA7BzD,CAAA,KAAA,CAAA,CAAA,EA6B8E,mBAAA,CAAA,GAAA,CAAA,OA7B9E;AACX,iBA0De,UAAA,CA1Df;EAAA,OAAA;EAAA,GAAA;AAkBD,CAlBC,EA6DE,cA7DF,CAAA,KAAA,CAAA,GAAA;EAAA,OAAA,EA8DU,UA9DV,EAAA;AAkBD,CAAA,CAAA,EA6CC,mBAAA,CAAA,GAAA,CAAA,OA7CmC"}
|
|
@@ -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 { Sidebar } from "./sidebar.js";
|
|
5
5
|
import { BaseLayoutProps } from "../shared/index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime76 from "react/jsx-runtime";
|
|
7
7
|
import { ComponentProps, HTMLAttributes, ReactNode } from "react";
|
|
8
8
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
9
9
|
|
|
@@ -53,7 +53,7 @@ declare function DocsLayout({
|
|
|
53
53
|
children,
|
|
54
54
|
tree,
|
|
55
55
|
...props
|
|
56
|
-
}: DocsLayoutProps):
|
|
56
|
+
}: DocsLayoutProps): react_jsx_runtime76.JSX.Element;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { DocsLayout, DocsLayoutProps };
|
|
59
59
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,12 +2,12 @@ import { buttonVariants } from "../../components/ui/button.js";
|
|
|
2
2
|
import { tree_exports } from "../../contexts/tree.js";
|
|
3
3
|
import { SidebarTabsDropdown } from "../../components/sidebar/tabs/dropdown.js";
|
|
4
4
|
import { LayoutBody, LayoutContextProvider, LayoutHeader, LayoutTabs } from "./client.js";
|
|
5
|
-
import { renderTitleNav, resolveLinkItems } from "../shared/index.js";
|
|
6
5
|
import { LargeSearchToggle, SearchToggle } from "../shared/search-toggle.js";
|
|
7
|
-
import {
|
|
6
|
+
import { Sidebar as Sidebar$1, SidebarCollapseTrigger, SidebarContent, SidebarDrawer, SidebarLinkItem, SidebarPageTree, SidebarTrigger, SidebarViewport } from "./sidebar.js";
|
|
7
|
+
import { renderTitleNav, resolveLinkItems } from "../shared/index.js";
|
|
8
8
|
import { LanguageToggle, LanguageToggleText } from "../shared/language-toggle.js";
|
|
9
|
+
import { ThemeToggle } from "../shared/theme-toggle.js";
|
|
9
10
|
import { getSidebarTabs } from "../../components/sidebar/tabs/index.js";
|
|
10
|
-
import { Sidebar as Sidebar$1, SidebarCollapseTrigger, SidebarContent, SidebarDrawer, SidebarLinkItem, SidebarPageTree, SidebarTrigger, SidebarViewport } from "./sidebar.js";
|
|
11
11
|
import { cn } from "@fumadocs/ui/cn";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Languages, Sidebar } from "lucide-react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime106 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_runtime106.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_runtime106.JSX.Element;
|
|
16
|
+
declare function PageTOCPopoverContent(props: ComponentProps<'div'>): react_jsx_runtime106.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_runtime106.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_runtime106.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_runtime106.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","names":[],"sources":["../../../../src/layouts/docs/page/client.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAiCgB,cAAA;;;;GAAiD,wBAAqB,
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../../../src/layouts/docs/page/client.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAiCgB,cAAA;;;;GAAiD,wBAAqB,oBAAA,CAAA,GAAA,CAAA;iBAsDtE,qBAAA;;;GAA+C,2BAAwB,oBAAA,CAAA,GAAA,CAAA;iBA2GvE,qBAAA,QAA6B,wBAAqB,oBAAA,CAAA,GAAA,CAAA;AAjKlD,iBA6KA,cAAA,CA7Kc;EAAA,IAAA,EA8KtB,KA9KsB;EAAA,GAAA;CAAA,EAgL3B,IAhL2B,CAgLtB,cAhLsB,CAAA,GAAA,CAAA,EAAA,UAAA,CAAA,GAAA;EAAG,IAAA,EAgLkB,IAhLlB;CAAW,CAAA,EAgLa,oBAAA,CAAA,GAAA,CAAA,OAhLb;KAgMvC,IAAA,GAAO,IAhMqD,CAgMhD,QAAA,CAAS,IAhMuC,EAAA,MAAA,GAAA,aAAA,GAAA,KAAA,CAAA;AAAqB,UAiMrE,WAAA,SAAoB,cAjMiD,CAAA,KAAA,CAAA,CAAA;EAAA;AAsDtF;;EAA+D,KAAA,CAAA,EAAA;IAAwB,QAAA,CAAA,EAgJxE,IAhJwE;IAAA,IAAA,CAAA,EAiJ5E,IAjJ4E;EA2GvE,CAAA;AAYhB;AACQ,iBA6BQ,UAAA,CA7BR;EAAA,KAAA;EAAA,GAAA;AAAA,CAAA,EA6BwC,WA7BxC,CAAA,EA6BmD,oBAAA,CAAA,GAAA,CAAA,OA7BnD;AAEA,KAsFI,eAAA,GAAkB,iBAtFtB,GAsF0C,cAtF1C,CAAA,KAAA,CAAA;AAAL,iBAwFa,cAAA,CAxFb;EAAA,WAAA;EAAA,gBAAA;EAAA,WAAA;EAAA,GAAA;AAAA,CAAA,EA6FA,eA7FA,CAAA,EA6Fe,oBAAA,CAAA,GAAA,CAAA,OAAA,GA7Ff,IAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BreadcrumbProps, FooterProps, PageBreadcrumb, PageLastUpdate } from "./client.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime102 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_runtime102.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_runtime102.JSX.Element;
|
|
82
87
|
declare function DocsDescription({
|
|
83
88
|
children,
|
|
84
89
|
className,
|
|
85
90
|
...props
|
|
86
|
-
}: ComponentProps<'p'>):
|
|
91
|
+
}: ComponentProps<'p'>): react_jsx_runtime102.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_runtime102.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/docs/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/docs/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 w-full max-w-[900px] mx-auto [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14", full ? "max-w-[1200px]" : "xl:layout:[--fd-toc-width:268px]"),
|
|
40
|
+
className: cn("flex flex-col w-full max-w-[900px] mx-auto [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14", full ? "max-w-[1200px]" : "xl:layout:[--fd-toc-width:268px]", 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/docs/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 w-full max-w-[900px] mx-auto [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14',\n full ? 'max-w-[1200px]' : 'xl:layout:[--fd-toc-width:268px]',\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-1) h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] flex flex-col [grid-area:toc] w-(--fd-toc-width) pt-12 pe-4 pb-2 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/docs/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 w-full max-w-[900px] mx-auto [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14',\n full ? 'max-w-[1200px]' : 'xl:layout:[--fd-toc-width:268px]',\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-1) h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] flex flex-col [grid-area:toc] w-(--fd-toc-width) pt-12 pe-4 pb-2 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,gHACA,OAAO,mBAAmB,oCAC1B,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"}
|