@fumadocs/base-ui 16.7.6 → 16.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/generated/docs.css +26 -6
- package/css/generated/notebook.css +13 -1
- package/css/generated/shared.css +24 -8
- package/dist/components/accordion.d.ts +3 -3
- package/dist/components/banner.d.ts +2 -2
- package/dist/components/callout.d.ts +5 -5
- package/dist/components/card.d.ts +3 -3
- package/dist/components/codeblock.d.ts +7 -7
- package/dist/components/codeblock.rsc.d.ts +2 -2
- 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.core.d.ts +2 -2
- 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/image-zoom.js +1 -2
- package/dist/components/{image-zoom.css → image-zoom2.css} +11 -17
- package/dist/components/inline-toc.d.ts +2 -2
- package/dist/components/sidebar/base.d.ts +15 -15
- 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 +6 -6
- package/dist/components/toc/clerk.d.ts +4 -4
- package/dist/components/toc/clerk.js +67 -39
- package/dist/components/toc/default.d.ts +4 -4
- package/dist/components/toc/index.d.ts +4 -6
- package/dist/components/toc/index.js +4 -10
- 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 +2 -2
- package/dist/components/ui/collapsible.d.ts +6 -6
- package/dist/components/ui/navigation-menu.d.ts +9 -9
- package/dist/components/ui/popover.d.ts +4 -4
- package/dist/components/ui/scroll-area.d.ts +4 -4
- package/dist/components/ui/tabs.d.ts +7 -7
- package/dist/contexts/i18n.d.ts +2 -2
- package/dist/contexts/search.d.ts +2 -2
- package/dist/contexts/tree.d.ts +2 -2
- package/dist/layouts/docs/client.d.ts +0 -1
- package/dist/layouts/docs/index.d.ts +2 -2
- package/dist/layouts/docs/page/index.d.ts +7 -7
- package/dist/layouts/docs/page/slots/breadcrumb.d.ts +2 -2
- package/dist/layouts/docs/page/slots/container.d.ts +2 -2
- package/dist/layouts/docs/page/slots/footer.d.ts +2 -2
- package/dist/layouts/docs/page/slots/toc.d.ts +4 -4
- package/dist/layouts/docs/slots/container.d.ts +2 -2
- package/dist/layouts/docs/slots/container.js +8 -1
- package/dist/layouts/docs/slots/header.d.ts +3 -3
- package/dist/layouts/docs/slots/sidebar.d.ts +4 -4
- package/dist/layouts/docs/slots/sidebar.js +25 -17
- package/dist/layouts/flux/index.d.ts +4 -4
- package/dist/layouts/flux/page/index.d.ts +7 -7
- package/dist/layouts/flux/page/slots/breadcrumb.d.ts +2 -2
- package/dist/layouts/flux/page/slots/container.d.ts +2 -2
- package/dist/layouts/flux/page/slots/footer.d.ts +2 -2
- package/dist/layouts/flux/page/slots/toc.d.ts +2 -2
- package/dist/layouts/flux/slots/container.d.ts +2 -2
- package/dist/layouts/flux/slots/sidebar.d.ts +4 -4
- package/dist/layouts/flux/slots/tab-dropdown.d.ts +2 -2
- package/dist/layouts/home/index.d.ts +2 -2
- package/dist/layouts/home/navbar.d.ts +4 -4
- package/dist/layouts/home/not-found.d.ts +2 -2
- package/dist/layouts/home/slots/container.d.ts +2 -2
- package/dist/layouts/home/slots/header.d.ts +4 -4
- package/dist/layouts/notebook/client.d.ts +0 -1
- package/dist/layouts/notebook/index.d.ts +2 -2
- package/dist/layouts/notebook/page/index.d.ts +7 -7
- package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +2 -2
- package/dist/layouts/notebook/page/slots/container.d.ts +2 -2
- package/dist/layouts/notebook/page/slots/footer.d.ts +2 -2
- package/dist/layouts/notebook/page/slots/toc.d.ts +4 -4
- package/dist/layouts/notebook/slots/container.d.ts +2 -2
- package/dist/layouts/notebook/slots/container.js +8 -1
- package/dist/layouts/notebook/slots/header.d.ts +3 -3
- package/dist/layouts/notebook/slots/header.js +1 -1
- package/dist/layouts/notebook/slots/sidebar.d.ts +6 -6
- package/dist/layouts/notebook/slots/sidebar.js +14 -12
- package/dist/layouts/shared/client.d.ts +2 -2
- package/dist/layouts/shared/page-actions.d.ts +3 -3
- package/dist/layouts/shared/slots/language-select.d.ts +13 -4
- package/dist/layouts/shared/slots/language-select.js +7 -10
- package/dist/layouts/shared/slots/search-trigger.d.ts +3 -3
- package/dist/layouts/shared/slots/theme-switch.d.ts +2 -2
- package/dist/layouts/shared/slots/theme-switch.js +1 -1
- package/dist/mdx.d.ts +10 -10
- package/dist/og/takumi.d.ts +2 -2
- package/dist/og.d.ts +3 -3
- package/dist/page.d.ts +3 -3
- 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/dist/provider/waku.d.ts +2 -2
- package/dist/style.css +79 -14
- package/package.json +11 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, RefObject } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import * as Primitive from "fumadocs-core/toc";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toc/index.d.ts
|
|
@@ -10,20 +10,18 @@ declare function TOCProvider({
|
|
|
10
10
|
toc,
|
|
11
11
|
children,
|
|
12
12
|
...props
|
|
13
|
-
}: TOCProviderProps): react_jsx_runtime0.JSX.Element;
|
|
13
|
+
}: TOCProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
14
14
|
declare function TOCScrollArea({
|
|
15
15
|
ref,
|
|
16
16
|
className,
|
|
17
17
|
...props
|
|
18
|
-
}: ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
|
|
18
|
+
}: ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
|
|
19
19
|
interface TocThumbProps extends ComponentProps<'div'> {
|
|
20
20
|
containerRef: RefObject<HTMLElement | null>;
|
|
21
|
-
align?: 'center' | 'end';
|
|
22
21
|
}
|
|
23
22
|
declare function TocThumb({
|
|
24
23
|
containerRef,
|
|
25
|
-
align,
|
|
26
24
|
...props
|
|
27
|
-
}: TocThumbProps): react_jsx_runtime0.JSX.Element;
|
|
25
|
+
}: TocThumbProps): _$react_jsx_runtime0.JSX.Element;
|
|
28
26
|
//#endregion
|
|
29
27
|
export { TOCProvider, TOCProviderProps, TOCScrollArea, TocThumb, useActiveAnchor, useActiveAnchors, useItems, useTOCItems };
|
|
@@ -43,7 +43,7 @@ function TOCScrollArea({ ref, className, ...props }) {
|
|
|
43
43
|
})
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function TocThumb({ containerRef,
|
|
46
|
+
function TocThumb({ containerRef, ...props }) {
|
|
47
47
|
const thumbRef = useRef(null);
|
|
48
48
|
const active = useActiveAnchors();
|
|
49
49
|
function update(info) {
|
|
@@ -65,15 +65,9 @@ function TocThumb({ containerRef, align = "end", ...props }) {
|
|
|
65
65
|
for (const item of active) {
|
|
66
66
|
const element = container.querySelector(`a[href="#${item}"]`);
|
|
67
67
|
if (!element) continue;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
lower = Math.max(lower, y);
|
|
72
|
-
} else {
|
|
73
|
-
const styles = getComputedStyle(element);
|
|
74
|
-
upper = Math.min(upper, element.offsetTop + parseFloat(styles.paddingTop));
|
|
75
|
-
lower = Math.max(lower, element.offsetTop + element.clientHeight - parseFloat(styles.paddingBottom));
|
|
76
|
-
}
|
|
68
|
+
const styles = getComputedStyle(element);
|
|
69
|
+
upper = Math.min(upper, element.offsetTop + parseFloat(styles.paddingTop));
|
|
70
|
+
lower = Math.max(lower, element.offsetTop + element.clientHeight - parseFloat(styles.paddingBottom));
|
|
77
71
|
}
|
|
78
72
|
return {
|
|
79
73
|
top: upper,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/type-table.d.ts
|
|
5
5
|
interface ParameterNode {
|
|
@@ -39,6 +39,6 @@ declare function TypeTable({
|
|
|
39
39
|
...props
|
|
40
40
|
}: {
|
|
41
41
|
type: Record<string, TypeNode>;
|
|
42
|
-
} & ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
|
|
42
|
+
} & ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { ParameterNode, TypeNode, TypeTable };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/accordion.d.ts
|
|
6
6
|
declare function Accordion({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: ComponentProps<typeof Accordion$1.Root>): react_jsx_runtime0.JSX.Element;
|
|
9
|
+
}: ComponentProps<typeof Accordion$1.Root>): _$react_jsx_runtime0.JSX.Element;
|
|
10
10
|
declare function AccordionItem({
|
|
11
11
|
children,
|
|
12
12
|
...props
|
|
13
|
-
}: ComponentProps<typeof Accordion$1.Item>): react_jsx_runtime0.JSX.Element;
|
|
13
|
+
}: ComponentProps<typeof Accordion$1.Item>): _$react_jsx_runtime0.JSX.Element;
|
|
14
14
|
declare function AccordionHeader({
|
|
15
15
|
className,
|
|
16
16
|
children,
|
|
17
17
|
...props
|
|
18
|
-
}: ComponentProps<typeof Accordion$1.Header>): react_jsx_runtime0.JSX.Element;
|
|
18
|
+
}: ComponentProps<typeof Accordion$1.Header>): _$react_jsx_runtime0.JSX.Element;
|
|
19
19
|
declare function AccordionTrigger({
|
|
20
20
|
className,
|
|
21
21
|
children,
|
|
22
22
|
...props
|
|
23
|
-
}: ComponentProps<typeof Accordion$1.Trigger>): react_jsx_runtime0.JSX.Element;
|
|
23
|
+
}: ComponentProps<typeof Accordion$1.Trigger>): _$react_jsx_runtime0.JSX.Element;
|
|
24
24
|
declare function AccordionContent({
|
|
25
25
|
className,
|
|
26
26
|
children,
|
|
27
27
|
...props
|
|
28
|
-
}: ComponentProps<typeof Accordion$1.Panel>): react_jsx_runtime0.JSX.Element;
|
|
28
|
+
}: ComponentProps<typeof Accordion$1.Panel>): _$react_jsx_runtime0.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
2
|
+
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/button.d.ts
|
|
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
8
|
size?: "icon" | "sm" | "icon-sm" | "icon-xs" | null | undefined;
|
|
9
|
-
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
9
|
+
} & _$class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
10
|
type ButtonProps = VariantProps<typeof buttonVariants>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ButtonProps, buttonVariants };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as react from "react";
|
|
1
|
+
import * as _$react from "react";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
5
|
-
import * as _base_ui_react0 from "@base-ui/react";
|
|
5
|
+
import * as _$_base_ui_react0 from "@base-ui/react";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/collapsible.d.ts
|
|
8
|
-
declare const Collapsible: react.ForwardRefExoticComponent<Omit<_base_ui_react0.CollapsibleRootProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const CollapsibleTrigger: react.ForwardRefExoticComponent<Omit<_base_ui_react0.CollapsibleTriggerProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const Collapsible: _$react.ForwardRefExoticComponent<Omit<_$_base_ui_react0.CollapsibleRootProps, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const CollapsibleTrigger: _$react.ForwardRefExoticComponent<Omit<_$_base_ui_react0.CollapsibleTriggerProps, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
declare function CollapsibleContent({
|
|
11
11
|
children,
|
|
12
12
|
className,
|
|
13
13
|
...props
|
|
14
|
-
}: ComponentProps<typeof Collapsible$1.Panel>): react_jsx_runtime0.JSX.Element;
|
|
14
|
+
}: ComponentProps<typeof Collapsible$1.Panel>): _$react_jsx_runtime0.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,30 +1,30 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { NavigationMenu as NavigationMenu$1 } from "@base-ui/react/navigation-menu";
|
|
4
|
-
import * as _base_ui_react0 from "@base-ui/react";
|
|
4
|
+
import * as _$_base_ui_react0 from "@base-ui/react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/navigation-menu.d.ts
|
|
7
7
|
type NavigationMenuContentProps = NavigationMenu$1.Content.Props;
|
|
8
8
|
type NavigationMenuTriggerProps = NavigationMenu$1.Trigger.Props;
|
|
9
|
-
declare const NavigationMenu: React$1.ForwardRefExoticComponent<Omit<_base_ui_react0.NavigationMenuRootProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
10
|
-
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<_base_ui_react0.NavigationMenuListProps, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
9
|
+
declare const NavigationMenu: React$1.ForwardRefExoticComponent<Omit<_$_base_ui_react0.NavigationMenuRootProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
10
|
+
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<_$_base_ui_react0.NavigationMenuListProps, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
11
11
|
declare function NavigationMenuItem({
|
|
12
12
|
className,
|
|
13
13
|
children,
|
|
14
14
|
...props
|
|
15
|
-
}: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Item>): react_jsx_runtime0.JSX.Element;
|
|
15
|
+
}: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Item>): _$react_jsx_runtime0.JSX.Element;
|
|
16
16
|
declare function NavigationMenuTrigger({
|
|
17
17
|
children,
|
|
18
18
|
...props
|
|
19
|
-
}: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Trigger>): react_jsx_runtime0.JSX.Element;
|
|
19
|
+
}: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Trigger>): _$react_jsx_runtime0.JSX.Element;
|
|
20
20
|
declare function NavigationMenuContent({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Content>): react_jsx_runtime0.JSX.Element;
|
|
23
|
+
}: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Content>): _$react_jsx_runtime0.JSX.Element;
|
|
24
24
|
declare function NavigationMenuLink({
|
|
25
25
|
children,
|
|
26
26
|
...props
|
|
27
|
-
}: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Link>): react_jsx_runtime0.JSX.Element;
|
|
28
|
-
declare function NavigationMenuViewport(props: NavigationMenu$1.Positioner.Props): react_jsx_runtime0.JSX.Element;
|
|
27
|
+
}: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Link>): _$react_jsx_runtime0.JSX.Element;
|
|
28
|
+
declare function NavigationMenuViewport(props: NavigationMenu$1.Positioner.Props): _$react_jsx_runtime0.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { NavigationMenu, NavigationMenuContent, NavigationMenuContentProps, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuTriggerProps, NavigationMenuViewport };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
4
|
-
import * as _base_ui_react0 from "@base-ui/react";
|
|
4
|
+
import * as _$_base_ui_react0 from "@base-ui/react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/popover.d.ts
|
|
7
7
|
declare const Popover: typeof Popover$1.Root;
|
|
@@ -11,7 +11,7 @@ declare function PopoverContent({
|
|
|
11
11
|
align,
|
|
12
12
|
sideOffset,
|
|
13
13
|
...props
|
|
14
|
-
}: React$1.ComponentPropsWithRef<typeof Popover$1.Popup> & Pick<Popover$1.Positioner.Props, 'sideOffset' | 'align'>): react_jsx_runtime0.JSX.Element;
|
|
15
|
-
declare const PopoverClose: React$1.ForwardRefExoticComponent<Omit<_base_ui_react0.PopoverCloseProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
}: React$1.ComponentPropsWithRef<typeof Popover$1.Popup> & Pick<Popover$1.Positioner.Props, 'sideOffset' | 'align'>): _$react_jsx_runtime0.JSX.Element;
|
|
15
|
+
declare const PopoverClose: React$1.ForwardRefExoticComponent<Omit<_$_base_ui_react0.PopoverCloseProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { Popover, PopoverClose, PopoverContent, PopoverTrigger };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/scroll-area.d.ts
|
|
6
6
|
declare function ScrollArea({
|
|
7
7
|
children,
|
|
8
8
|
...props
|
|
9
|
-
}: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Root>): react_jsx_runtime0.JSX.Element;
|
|
9
|
+
}: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Root>): _$react_jsx_runtime0.JSX.Element;
|
|
10
10
|
declare function ScrollViewport({
|
|
11
11
|
className,
|
|
12
12
|
children,
|
|
13
13
|
...props
|
|
14
|
-
}: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Viewport>): react_jsx_runtime0.JSX.Element;
|
|
14
|
+
}: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Viewport>): _$react_jsx_runtime0.JSX.Element;
|
|
15
15
|
declare function ScrollBar({
|
|
16
16
|
className,
|
|
17
17
|
orientation,
|
|
18
18
|
...props
|
|
19
|
-
}: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Scrollbar>): react_jsx_runtime0.JSX.Element;
|
|
19
|
+
}: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Scrollbar>): _$react_jsx_runtime0.JSX.Element;
|
|
20
20
|
type ScrollAreaProps = ScrollArea$1.Root.Props;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { ScrollArea, ScrollAreaProps, ScrollBar, ScrollViewport };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as react from "react";
|
|
1
|
+
import * as _$react from "react";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
5
|
-
import * as _base_ui_react0 from "@base-ui/react";
|
|
5
|
+
import * as _$_base_ui_react0 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: react.ForwardRefExoticComponent<Omit<_base_ui_react0.TabsListProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
declare const TabsTrigger: react.ForwardRefExoticComponent<Omit<_base_ui_react0.TabsTabProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
23
|
+
declare const TabsList: _$react.ForwardRefExoticComponent<Omit<_$_base_ui_react0.TabsListProps, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const TabsTrigger: _$react.ForwardRefExoticComponent<Omit<_$_base_ui_react0.TabsTabProps, "ref"> & _$react.RefAttributes<HTMLElement>>;
|
|
25
25
|
declare function Tabs({
|
|
26
26
|
ref,
|
|
27
27
|
groupId,
|
|
@@ -31,10 +31,10 @@ declare function Tabs({
|
|
|
31
31
|
value: _value,
|
|
32
32
|
onValueChange: _onValueChange,
|
|
33
33
|
...props
|
|
34
|
-
}: TabsProps): react_jsx_runtime0.JSX.Element;
|
|
34
|
+
}: TabsProps): _$react_jsx_runtime0.JSX.Element;
|
|
35
35
|
declare function TabsContent({
|
|
36
36
|
value,
|
|
37
37
|
...props
|
|
38
|
-
}: ComponentProps<typeof Tabs$1.Panel>): react_jsx_runtime0.JSX.Element;
|
|
38
|
+
}: ComponentProps<typeof Tabs$1.Panel>): _$react_jsx_runtime0.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { Tabs, TabsContent, TabsList, TabsProps, TabsTrigger };
|
package/dist/contexts/i18n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/contexts/i18n.d.ts
|
|
5
5
|
interface Translations {
|
|
@@ -57,6 +57,6 @@ declare function I18nProvider({
|
|
|
57
57
|
onLocaleChange,
|
|
58
58
|
children,
|
|
59
59
|
translations
|
|
60
|
-
}: I18nProviderProps): react_jsx_runtime0.JSX.Element;
|
|
60
|
+
}: I18nProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { I18nLabel, I18nProvider, I18nProviderProps, Translations, TranslationsOption, defaultTranslations, useI18n };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/contexts/search.d.ts
|
|
5
5
|
interface HotKey {
|
|
@@ -61,7 +61,7 @@ declare function SearchProvider({
|
|
|
61
61
|
options,
|
|
62
62
|
hotKey,
|
|
63
63
|
links
|
|
64
|
-
}: SearchProviderProps): react_jsx_runtime0.JSX.Element;
|
|
64
|
+
}: SearchProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
65
65
|
/**
|
|
66
66
|
* Show children only when search is enabled via React Context
|
|
67
67
|
*/
|
package/dist/contexts/tree.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
4
4
|
|
|
5
5
|
//#region src/contexts/tree.d.ts
|
|
@@ -14,7 +14,7 @@ declare function TreeContextProvider({
|
|
|
14
14
|
}: {
|
|
15
15
|
tree: PageTree.Root;
|
|
16
16
|
children: ReactNode;
|
|
17
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
17
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
18
18
|
declare function useTreePath(): PageTree.Node[];
|
|
19
19
|
declare function useTreeContext(): TreeContextType;
|
|
20
20
|
//#endregion
|
|
@@ -3,7 +3,6 @@ import { LayoutTab, LinkItemType } from "../shared/index.js";
|
|
|
3
3
|
import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.js";
|
|
4
4
|
import { DocsLayoutProps } from "./index.js";
|
|
5
5
|
import { ComponentProps, FC } from "react";
|
|
6
|
-
|
|
7
6
|
//#region src/layouts/docs/client.d.ts
|
|
8
7
|
interface DocsSlots extends BaseSlots {
|
|
9
8
|
container: FC<ComponentProps<'div'>>;
|
|
@@ -2,7 +2,7 @@ import { BaseLayoutProps, GetLayoutTabsOptions, LayoutTab } from "../shared/inde
|
|
|
2
2
|
import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.js";
|
|
3
3
|
import { DocsSlots, useDocsLayout } from "./client.js";
|
|
4
4
|
import { HTMLAttributes, ReactNode } from "react";
|
|
5
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
7
7
|
|
|
8
8
|
//#region src/layouts/docs/index.d.ts
|
|
@@ -40,6 +40,6 @@ declare function DocsLayout({
|
|
|
40
40
|
tabMode,
|
|
41
41
|
children,
|
|
42
42
|
...props
|
|
43
|
-
}: DocsLayoutProps): react_jsx_runtime0.JSX.Element;
|
|
43
|
+
}: DocsLayoutProps): _$react_jsx_runtime0.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { DocsLayout, DocsLayoutProps, type DocsSlots, useDocsLayout };
|
|
@@ -3,7 +3,7 @@ import { Footer, FooterProps } from "./slots/footer.js";
|
|
|
3
3
|
import { Breadcrumb, BreadcrumbProps } from "./slots/breadcrumb.js";
|
|
4
4
|
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
5
5
|
import { ComponentProps, FC, ReactNode } from "react";
|
|
6
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
7
|
import { TOCItemType } from "fumadocs-core/toc";
|
|
8
8
|
|
|
9
9
|
//#region src/layouts/docs/page/index.d.ts
|
|
@@ -87,8 +87,8 @@ declare function DocsPage({
|
|
|
87
87
|
slots: defaultSlots,
|
|
88
88
|
children,
|
|
89
89
|
...containerProps
|
|
90
|
-
}: DocsPageProps): react_jsx_runtime0.JSX.Element;
|
|
91
|
-
declare function EditOnGitHub(props: ComponentProps<'a'>): react_jsx_runtime0.JSX.Element;
|
|
90
|
+
}: DocsPageProps): _$react_jsx_runtime0.JSX.Element;
|
|
91
|
+
declare function EditOnGitHub(props: ComponentProps<'a'>): _$react_jsx_runtime0.JSX.Element;
|
|
92
92
|
/**
|
|
93
93
|
* Add typography styles
|
|
94
94
|
*/
|
|
@@ -96,22 +96,22 @@ declare function DocsBody({
|
|
|
96
96
|
children,
|
|
97
97
|
className,
|
|
98
98
|
...props
|
|
99
|
-
}: ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
|
|
99
|
+
}: ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
|
|
100
100
|
declare function DocsDescription({
|
|
101
101
|
children,
|
|
102
102
|
className,
|
|
103
103
|
...props
|
|
104
|
-
}: ComponentProps<'p'>): react_jsx_runtime0.JSX.Element | null;
|
|
104
|
+
}: ComponentProps<'p'>): _$react_jsx_runtime0.JSX.Element | null;
|
|
105
105
|
declare function DocsTitle({
|
|
106
106
|
children,
|
|
107
107
|
className,
|
|
108
108
|
...props
|
|
109
|
-
}: ComponentProps<'h1'>): react_jsx_runtime0.JSX.Element;
|
|
109
|
+
}: ComponentProps<'h1'>): _$react_jsx_runtime0.JSX.Element;
|
|
110
110
|
declare function PageLastUpdate({
|
|
111
111
|
date: value,
|
|
112
112
|
...props
|
|
113
113
|
}: Omit<ComponentProps<'p'>, 'children'> & {
|
|
114
114
|
date: Date;
|
|
115
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
115
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
116
116
|
//#endregion
|
|
117
117
|
export { type BreadcrumbProps, DocsBody, DocsDescription, DocsPage, DocsPageProps, DocsTitle, EditOnGitHub, type FooterProps, MarkdownCopyButton, Breadcrumb as PageBreadcrumb, Footer as PageFooter, PageLastUpdate, ViewOptionsPopover, useDocsPage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { BreadcrumbOptions } from "fumadocs-core/breadcrumb";
|
|
4
4
|
|
|
5
5
|
//#region src/layouts/docs/page/slots/breadcrumb.d.ts
|
|
@@ -9,6 +9,6 @@ declare function Breadcrumb({
|
|
|
9
9
|
includeSeparator,
|
|
10
10
|
includePage,
|
|
11
11
|
...props
|
|
12
|
-
}: BreadcrumbProps): react_jsx_runtime0.JSX.Element | null;
|
|
12
|
+
}: BreadcrumbProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Breadcrumb, BreadcrumbProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/layouts/docs/page/slots/container.d.ts
|
|
5
|
-
declare function Container(props: ComponentProps<'article'>): react_jsx_runtime0.JSX.Element;
|
|
5
|
+
declare function Container(props: ComponentProps<'article'>): _$react_jsx_runtime0.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Container };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
4
4
|
|
|
5
5
|
//#region src/layouts/docs/page/slots/footer.d.ts
|
|
@@ -18,6 +18,6 @@ declare function Footer({
|
|
|
18
18
|
children,
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: FooterProps): react_jsx_runtime0.JSX.Element;
|
|
21
|
+
}: FooterProps): _$react_jsx_runtime0.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Footer, FooterProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/layouts/docs/page/slots/toc.d.ts
|
|
6
6
|
type TOCProviderProps = TOCProviderProps$1;
|
|
7
|
-
declare function TOCProvider(props: TOCProviderProps): react_jsx_runtime0.JSX.Element;
|
|
7
|
+
declare function TOCProvider(props: TOCProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
8
8
|
interface TOCProps {
|
|
9
9
|
container?: ComponentProps<'div'>;
|
|
10
10
|
/**
|
|
@@ -25,7 +25,7 @@ declare function TOC({
|
|
|
25
25
|
header,
|
|
26
26
|
footer,
|
|
27
27
|
style
|
|
28
|
-
}: TOCProps): react_jsx_runtime0.JSX.Element;
|
|
28
|
+
}: TOCProps): _$react_jsx_runtime0.JSX.Element;
|
|
29
29
|
interface TOCPopoverProps {
|
|
30
30
|
container?: ComponentProps<'div'>;
|
|
31
31
|
trigger?: ComponentProps<'button'>;
|
|
@@ -50,6 +50,6 @@ declare function TOCPopover({
|
|
|
50
50
|
header,
|
|
51
51
|
footer,
|
|
52
52
|
style
|
|
53
|
-
}: TOCPopoverProps): react_jsx_runtime0.JSX.Element;
|
|
53
|
+
}: TOCPopoverProps): _$react_jsx_runtime0.JSX.Element;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { TOC, TOCPopover, TOCPopoverProps, TOCProps, TOCProvider, TOCProviderProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/layouts/docs/slots/container.d.ts
|
|
5
|
-
declare function Container(props: ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
|
|
5
|
+
declare function Container(props: ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Container };
|
|
@@ -2,14 +2,21 @@
|
|
|
2
2
|
import { cn } from "../../../utils/cn.js";
|
|
3
3
|
import { useDocsLayout } from "../client.js";
|
|
4
4
|
import "../index.js";
|
|
5
|
+
import { useEffect, useState } from "react";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
//#region src/layouts/docs/slots/container.tsx
|
|
7
8
|
function Container(props) {
|
|
8
9
|
const { slots } = useDocsLayout();
|
|
9
10
|
const { collapsed } = slots.sidebar?.useSidebar?.() ?? {};
|
|
11
|
+
const [previousCollapsed, setPreviousCollapsed] = useState(collapsed);
|
|
12
|
+
const isCollapseChanged = previousCollapsed !== collapsed;
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (isCollapseChanged) setPreviousCollapsed(collapsed);
|
|
15
|
+
}, [collapsed, isCollapseChanged]);
|
|
10
16
|
return /* @__PURE__ */ jsx("div", {
|
|
11
17
|
id: "nd-docs-layout",
|
|
12
18
|
"data-sidebar-collapsed": collapsed,
|
|
19
|
+
"data-column-changed": isCollapseChanged,
|
|
13
20
|
...props,
|
|
14
21
|
style: {
|
|
15
22
|
gridTemplate: `"sidebar sidebar header toc toc"
|
|
@@ -21,7 +28,7 @@ function Container(props) {
|
|
|
21
28
|
"--fd-sidebar-col": collapsed ? "0px" : "var(--fd-sidebar-width)",
|
|
22
29
|
...props.style
|
|
23
30
|
},
|
|
24
|
-
className: cn("grid
|
|
31
|
+
className: cn("grid overflow-x-clip min-h-(--fd-docs-height) [--fd-docs-height:100dvh] [--fd-header-height:0px] [--fd-toc-popover-height:0px] [--fd-sidebar-width:0px] [--fd-toc-width:0px] data-[column-changed=true]:transition-[grid-template-columns]", props.className),
|
|
25
32
|
children: props.children
|
|
26
33
|
});
|
|
27
34
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as react from "react";
|
|
1
|
+
import * as _$react from "react";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/layouts/docs/slots/header.d.ts
|
|
6
|
-
declare function Header(props: ComponentProps<'header'>): string | number | bigint | true | react_jsx_runtime0.JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined>;
|
|
6
|
+
declare function Header(props: ComponentProps<'header'>): string | number | bigint | true | _$react_jsx_runtime0.JSX.Element | Iterable<_$react.ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<_$react.ReactNode> | null | undefined>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { Header };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SidebarProviderProps as SidebarProviderProps$1, useSidebar as useSidebar$1 } from "../../../components/sidebar/base.js";
|
|
2
2
|
import { SidebarPageTreeComponents } from "../../../components/sidebar/page-tree.js";
|
|
3
3
|
import { ComponentProps, ReactNode } from "react";
|
|
4
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/layouts/docs/slots/sidebar.d.ts
|
|
7
7
|
interface SidebarProps extends ComponentProps<'aside'> {
|
|
@@ -17,14 +17,14 @@ interface SidebarProps extends ComponentProps<'aside'> {
|
|
|
17
17
|
}
|
|
18
18
|
type SidebarProviderProps = SidebarProviderProps$1;
|
|
19
19
|
declare const useSidebar: typeof useSidebar$1;
|
|
20
|
-
declare function SidebarProvider(props: SidebarProviderProps): react_jsx_runtime0.JSX.Element;
|
|
20
|
+
declare function SidebarProvider(props: SidebarProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
21
21
|
declare function Sidebar({
|
|
22
22
|
footer,
|
|
23
23
|
banner,
|
|
24
24
|
collapsible,
|
|
25
25
|
components,
|
|
26
26
|
...rest
|
|
27
|
-
}: SidebarProps): react_jsx_runtime0.JSX.Element;
|
|
28
|
-
declare function SidebarTrigger(props: ComponentProps<'button'>): react_jsx_runtime0.JSX.Element;
|
|
27
|
+
}: SidebarProps): _$react_jsx_runtime0.JSX.Element;
|
|
28
|
+
declare function SidebarTrigger(props: ComponentProps<'button'>): _$react_jsx_runtime0.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Sidebar, SidebarProps, SidebarProvider, SidebarProviderProps, SidebarTrigger, useSidebar };
|