@fumadocs/base-ui 16.11.1 → 16.11.2
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 +1 -1
- package/css/generated/flux.css +1 -1
- package/css/generated/home.css +1 -1
- package/css/generated/notebook.css +1 -1
- package/css/generated/shared.css +1 -1
- package/dist/components/accordion.d.ts +2 -14
- package/dist/components/banner.d.ts +1 -9
- package/dist/components/callout.d.ts +4 -24
- package/dist/components/card.d.ts +1 -7
- package/dist/components/codeblock.d.ts +4 -26
- package/dist/components/codeblock.rsc.d.ts +1 -6
- package/dist/components/dialog/search-algolia.d.ts +2 -11
- package/dist/components/dialog/search-default.d.ts +2 -12
- package/dist/components/dialog/search-orama.d.ts +2 -13
- package/dist/components/dialog/search.d.ts +10 -50
- package/dist/components/dialog/search.js +19 -6
- package/dist/components/dynamic-codeblock.core.d.ts +1 -9
- package/dist/components/dynamic-codeblock.d.ts +0 -1
- package/dist/components/files.d.ts +3 -16
- package/dist/components/github-info.d.ts +2 -17
- package/dist/components/heading.d.ts +1 -5
- package/dist/components/image-zoom.d.ts +2 -7
- package/dist/components/inline-toc.d.ts +1 -6
- package/dist/components/sidebar/base.d.ts +9 -45
- package/dist/components/sidebar/link-item.d.ts +1 -11
- package/dist/components/sidebar/page-tree.d.ts +1 -9
- package/dist/components/sidebar/tabs/dropdown.d.ts +1 -6
- package/dist/components/sidebar/tabs/index.d.ts +1 -4
- package/dist/components/steps.d.ts +2 -7
- package/dist/components/tabs.d.ts +5 -27
- package/dist/components/toc/clerk.d.ts +2 -11
- package/dist/components/toc/default.d.ts +2 -12
- package/dist/components/toc/index.d.ts +2 -11
- package/dist/components/type-table.d.ts +1 -7
- package/dist/components/ui/accordion.d.ts +5 -24
- package/dist/components/ui/button.d.ts +0 -1
- package/dist/components/ui/collapsible.d.ts +1 -6
- package/dist/components/ui/popover.d.ts +1 -7
- package/dist/components/ui/scroll-area.d.ts +3 -15
- package/dist/components/ui/tabs.d.ts +2 -15
- package/dist/contexts/i18n.d.ts +1 -8
- package/dist/contexts/search.d.ts +6 -12
- package/dist/contexts/search.js +11 -5
- package/dist/contexts/tree.d.ts +1 -5
- package/dist/i18n.d.ts +0 -1
- package/dist/layouts/docs/client.d.ts +0 -1
- package/dist/layouts/docs/index.d.ts +1 -13
- package/dist/layouts/docs/page/index.d.ts +5 -44
- package/dist/layouts/docs/page/slots/breadcrumb.d.ts +1 -7
- package/dist/layouts/docs/page/slots/container.d.ts +0 -1
- package/dist/layouts/docs/page/slots/footer.d.ts +1 -7
- package/dist/layouts/docs/page/slots/toc.d.ts +2 -17
- package/dist/layouts/docs/slots/container.d.ts +0 -1
- package/dist/layouts/docs/slots/header.d.ts +0 -1
- package/dist/layouts/docs/slots/sidebar.d.ts +1 -8
- package/dist/layouts/flux/index.d.ts +2 -14
- package/dist/layouts/flux/page/index.d.ts +5 -40
- package/dist/layouts/flux/page/slots/breadcrumb.d.ts +1 -7
- package/dist/layouts/flux/page/slots/container.d.ts +0 -1
- package/dist/layouts/flux/page/slots/footer.d.ts +1 -7
- package/dist/layouts/flux/page/slots/toc.d.ts +1 -10
- package/dist/layouts/flux/slots/container.d.ts +0 -1
- package/dist/layouts/flux/slots/sidebar.d.ts +1 -7
- package/dist/layouts/flux/slots/tab-dropdown.d.ts +1 -7
- package/dist/layouts/home/index.d.ts +0 -1
- package/dist/layouts/home/navbar.d.ts +5 -5
- package/dist/layouts/home/navbar.js +18 -15
- package/dist/layouts/home/slots/container.d.ts +0 -1
- package/dist/layouts/home/slots/header.d.ts +1 -2
- package/dist/layouts/home/slots/header.js +67 -52
- package/dist/layouts/notebook/client.d.ts +0 -1
- package/dist/layouts/notebook/index.d.ts +1 -12
- package/dist/layouts/notebook/page/index.d.ts +5 -44
- package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +1 -7
- package/dist/layouts/notebook/page/slots/container.d.ts +0 -1
- package/dist/layouts/notebook/page/slots/footer.d.ts +1 -7
- package/dist/layouts/notebook/page/slots/toc.d.ts +2 -17
- package/dist/layouts/notebook/slots/container.d.ts +0 -1
- package/dist/layouts/notebook/slots/header.d.ts +0 -1
- package/dist/layouts/notebook/slots/sidebar.d.ts +2 -13
- package/dist/layouts/shared/client.d.ts +2 -9
- package/dist/layouts/shared/index.d.ts +3 -12
- package/dist/layouts/shared/page-actions.d.ts +2 -17
- package/dist/layouts/shared/slots/language-select.d.ts +1 -7
- package/dist/layouts/shared/slots/search-trigger.d.ts +2 -11
- package/dist/layouts/shared/slots/search-trigger.js +7 -10
- package/dist/layouts/shared/slots/theme-switch.d.ts +1 -6
- package/dist/mdx.d.ts +0 -1
- package/dist/mdx.server.d.ts +0 -1
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.8_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/controlled.d.ts +0 -1
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.8_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +0 -1
- package/dist/og/takumi.d.ts +2 -8
- package/dist/og/takumi.js +1 -1
- package/dist/og.d.ts +1 -7
- package/dist/page.d.ts +1 -7
- package/dist/provider/astro.d.ts +29 -0
- package/dist/provider/astro.js +20 -0
- package/dist/provider/base.d.ts +1 -8
- package/dist/provider/next.d.ts +1 -5
- package/dist/provider/react-router.d.ts +1 -5
- package/dist/provider/tanstack.d.ts +1 -5
- package/dist/provider/waku.d.ts +1 -5
- package/dist/utils/use-copy-button.d.ts +0 -1
- package/dist/utils/use-footer-items.d.ts +0 -1
- package/dist/utils/use-is-scroll-top.d.ts +1 -3
- package/package.json +11 -11
- package/dist/components/ui/navigation-menu.d.ts +0 -28
- package/dist/components/ui/navigation-menu.js +0 -56
package/dist/i18n.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { I18nProviderProps } from "./contexts/i18n.js";
|
|
2
2
|
import { Translations } from "./.translations/index.js";
|
|
3
3
|
import { I18nConfig, SingularTranslationsAPI, TranslationExtension, TranslationsAPI } from "fumadocs-core/i18n";
|
|
4
|
-
|
|
5
4
|
//#region src/i18n.d.ts
|
|
6
5
|
declare function uiTranslations(): TranslationExtension<keyof Translations>;
|
|
7
6
|
declare function i18nProvider(translations: SingularTranslationsAPI): I18nProviderProps;
|
|
@@ -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'>>;
|
|
@@ -3,7 +3,6 @@ import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.js";
|
|
|
3
3
|
import { DocsSlots, useDocsLayout } from "./client.js";
|
|
4
4
|
import { HTMLAttributes, ReactNode } from "react";
|
|
5
5
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
6
|
-
|
|
7
6
|
//#region src/layouts/docs/index.d.ts
|
|
8
7
|
interface DocsLayoutProps extends BaseLayoutProps {
|
|
9
8
|
tree: PageTree.Root;
|
|
@@ -28,17 +27,6 @@ interface SidebarOptions extends SidebarProps, SidebarProviderProps {
|
|
|
28
27
|
*/
|
|
29
28
|
tabs?: LayoutTab[] | GetLayoutTabsOptions | false;
|
|
30
29
|
}
|
|
31
|
-
declare function DocsLayout({
|
|
32
|
-
tree,
|
|
33
|
-
sidebar: {
|
|
34
|
-
tabs: _tabs,
|
|
35
|
-
tabMode: _tabMode,
|
|
36
|
-
...sidebarProps
|
|
37
|
-
},
|
|
38
|
-
tabs: layoutTabs,
|
|
39
|
-
tabMode,
|
|
40
|
-
children,
|
|
41
|
-
...props
|
|
42
|
-
}: DocsLayoutProps): import("react").JSX.Element;
|
|
30
|
+
declare function DocsLayout({ tree, sidebar: { tabs: _tabs, tabMode: _tabMode, ...sidebarProps }, tabs: layoutTabs, tabMode, children, ...props }: DocsLayoutProps): import("react").JSX.Element;
|
|
43
31
|
//#endregion
|
|
44
32
|
export { DocsLayout, DocsLayoutProps, type DocsSlots, useDocsLayout };
|
|
@@ -4,7 +4,6 @@ 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
6
|
import { TOCItemType } from "fumadocs-core/toc";
|
|
7
|
-
|
|
8
7
|
//#region src/layouts/docs/page/index.d.ts
|
|
9
8
|
interface DocsPageProps extends ComponentProps<'article'> {
|
|
10
9
|
toc?: TOCItemType[];
|
|
@@ -62,53 +61,15 @@ declare function useDocsPage(): {
|
|
|
62
61
|
full: NonNullable<DocsPageProps["full"]>;
|
|
63
62
|
slots: DocsPageSlots;
|
|
64
63
|
};
|
|
65
|
-
declare function DocsPage({
|
|
66
|
-
full,
|
|
67
|
-
tableOfContent: {
|
|
68
|
-
enabled: tocEnabled,
|
|
69
|
-
single,
|
|
70
|
-
...tocProps
|
|
71
|
-
},
|
|
72
|
-
tableOfContentPopover: {
|
|
73
|
-
enabled: tocPopoverEnabled,
|
|
74
|
-
...tocPopoverProps
|
|
75
|
-
},
|
|
76
|
-
breadcrumb: {
|
|
77
|
-
enabled: breadcrumbEnabled,
|
|
78
|
-
...breadcrumb
|
|
79
|
-
},
|
|
80
|
-
footer: {
|
|
81
|
-
enabled: footerEnabled,
|
|
82
|
-
...footer
|
|
83
|
-
},
|
|
84
|
-
toc,
|
|
85
|
-
slots: defaultSlots,
|
|
86
|
-
children,
|
|
87
|
-
...containerProps
|
|
88
|
-
}: DocsPageProps): import("react").JSX.Element;
|
|
64
|
+
declare function DocsPage({ full, tableOfContent: { enabled: tocEnabled, single, ...tocProps }, tableOfContentPopover: { enabled: tocPopoverEnabled, ...tocPopoverProps }, breadcrumb: { enabled: breadcrumbEnabled, ...breadcrumb }, footer: { enabled: footerEnabled, ...footer }, toc, slots: defaultSlots, children, ...containerProps }: DocsPageProps): import("react").JSX.Element;
|
|
89
65
|
declare function EditOnGitHub(props: ComponentProps<'a'>): import("react").JSX.Element;
|
|
90
66
|
/**
|
|
91
67
|
* Add typography styles
|
|
92
68
|
*/
|
|
93
|
-
declare function DocsBody({
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
98
|
-
declare function DocsDescription({
|
|
99
|
-
children,
|
|
100
|
-
className,
|
|
101
|
-
...props
|
|
102
|
-
}: ComponentProps<'p'>): import("react").JSX.Element | null;
|
|
103
|
-
declare function DocsTitle({
|
|
104
|
-
children,
|
|
105
|
-
className,
|
|
106
|
-
...props
|
|
107
|
-
}: ComponentProps<'h1'>): import("react").JSX.Element;
|
|
108
|
-
declare function PageLastUpdate({
|
|
109
|
-
date: value,
|
|
110
|
-
...props
|
|
111
|
-
}: Omit<ComponentProps<'p'>, 'children'> & {
|
|
69
|
+
declare function DocsBody({ children, className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
70
|
+
declare function DocsDescription({ children, className, ...props }: ComponentProps<'p'>): import("react").JSX.Element | null;
|
|
71
|
+
declare function DocsTitle({ children, className, ...props }: ComponentProps<'h1'>): import("react").JSX.Element;
|
|
72
|
+
declare function PageLastUpdate({ date: value, ...props }: Omit<ComponentProps<'p'>, 'children'> & {
|
|
112
73
|
date: Date;
|
|
113
74
|
}): import("react").JSX.Element;
|
|
114
75
|
//#endregion
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { BreadcrumbOptions } from "fumadocs-core/breadcrumb";
|
|
3
|
-
|
|
4
3
|
//#region src/layouts/docs/page/slots/breadcrumb.d.ts
|
|
5
4
|
type BreadcrumbProps = BreadcrumbOptions & ComponentProps<'div'>;
|
|
6
|
-
declare function Breadcrumb({
|
|
7
|
-
includeRoot,
|
|
8
|
-
includeSeparator,
|
|
9
|
-
includePage,
|
|
10
|
-
...props
|
|
11
|
-
}: BreadcrumbProps): import("react").JSX.Element | null;
|
|
5
|
+
declare function Breadcrumb({ includeRoot, includeSeparator, includePage, ...props }: BreadcrumbProps): import("react").JSX.Element | null;
|
|
12
6
|
//#endregion
|
|
13
7
|
export { Breadcrumb, BreadcrumbProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
3
|
-
|
|
4
3
|
//#region src/layouts/docs/page/slots/footer.d.ts
|
|
5
4
|
type Item = Pick<PageTree.Item, 'name' | 'description' | 'url'>;
|
|
6
5
|
interface FooterProps extends ComponentProps<'div'> {
|
|
@@ -12,11 +11,6 @@ interface FooterProps extends ComponentProps<'div'> {
|
|
|
12
11
|
next?: Item;
|
|
13
12
|
};
|
|
14
13
|
}
|
|
15
|
-
declare function Footer({
|
|
16
|
-
items,
|
|
17
|
-
children,
|
|
18
|
-
className,
|
|
19
|
-
...props
|
|
20
|
-
}: FooterProps): import("react").JSX.Element;
|
|
14
|
+
declare function Footer({ items, children, className, ...props }: FooterProps): import("react").JSX.Element;
|
|
21
15
|
//#endregion
|
|
22
16
|
export { Footer, FooterProps };
|
|
@@ -2,7 +2,6 @@ import { TOCItemsProps } from "../../../../components/toc/clerk.js";
|
|
|
2
2
|
import { TOCItemsProps as TOCItemsProps$1 } from "../../../../components/toc/default.js";
|
|
3
3
|
import { TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
|
|
4
4
|
import { ComponentProps, ReactNode } from "react";
|
|
5
|
-
|
|
6
5
|
//#region src/layouts/docs/page/slots/toc.d.ts
|
|
7
6
|
type TOCProviderProps = TOCProviderProps$1;
|
|
8
7
|
declare function TOCProvider(props: TOCProviderProps): import("react").JSX.Element;
|
|
@@ -23,13 +22,7 @@ type TOCProps = {
|
|
|
23
22
|
style: 'clerk';
|
|
24
23
|
list?: TOCItemsProps;
|
|
25
24
|
});
|
|
26
|
-
declare function TOC({
|
|
27
|
-
container,
|
|
28
|
-
header,
|
|
29
|
-
footer,
|
|
30
|
-
style,
|
|
31
|
-
list
|
|
32
|
-
}: TOCProps): import("react").JSX.Element;
|
|
25
|
+
declare function TOC({ container, header, footer, style, list }: TOCProps): import("react").JSX.Element;
|
|
33
26
|
type TOCPopoverProps = {
|
|
34
27
|
container?: ComponentProps<'div'>;
|
|
35
28
|
trigger?: ComponentProps<'button'>;
|
|
@@ -49,14 +42,6 @@ type TOCPopoverProps = {
|
|
|
49
42
|
style: 'clerk';
|
|
50
43
|
list?: TOCItemsProps;
|
|
51
44
|
});
|
|
52
|
-
declare function TOCPopover({
|
|
53
|
-
container,
|
|
54
|
-
trigger,
|
|
55
|
-
content,
|
|
56
|
-
header,
|
|
57
|
-
footer,
|
|
58
|
-
style,
|
|
59
|
-
list
|
|
60
|
-
}: TOCPopoverProps): import("react").JSX.Element;
|
|
45
|
+
declare function TOCPopover({ container, trigger, content, header, footer, style, list }: TOCPopoverProps): import("react").JSX.Element;
|
|
61
46
|
//#endregion
|
|
62
47
|
export { TOC, TOCPopover, TOCPopoverProps, TOCProps, TOCProvider, TOCProviderProps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/layouts/docs/slots/header.d.ts
|
|
4
3
|
declare function Header(props: ComponentProps<'header'>): string | number | bigint | true | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined>;
|
|
5
4
|
//#endregion
|
|
@@ -1,7 +1,6 @@
|
|
|
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
|
-
|
|
5
4
|
//#region src/layouts/docs/slots/sidebar.d.ts
|
|
6
5
|
interface SidebarProps extends ComponentProps<'aside'> {
|
|
7
6
|
components?: Partial<SidebarPageTreeComponents>;
|
|
@@ -17,13 +16,7 @@ interface SidebarProps extends ComponentProps<'aside'> {
|
|
|
17
16
|
type SidebarProviderProps = SidebarProviderProps$1;
|
|
18
17
|
declare const useSidebar: typeof useSidebar$1;
|
|
19
18
|
declare function SidebarProvider(props: SidebarProviderProps): import("react").JSX.Element;
|
|
20
|
-
declare function Sidebar({
|
|
21
|
-
footer,
|
|
22
|
-
banner,
|
|
23
|
-
collapsible,
|
|
24
|
-
components,
|
|
25
|
-
...rest
|
|
26
|
-
}: SidebarProps): import("react").JSX.Element;
|
|
19
|
+
declare function Sidebar({ footer, banner, collapsible, components, ...rest }: SidebarProps): import("react").JSX.Element;
|
|
27
20
|
declare function SidebarTrigger(props: ComponentProps<'button'>): import("react").JSX.Element;
|
|
28
21
|
//#endregion
|
|
29
22
|
export { Sidebar, SidebarProps, SidebarProvider, SidebarProviderProps, SidebarTrigger, useSidebar };
|
|
@@ -5,7 +5,6 @@ import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.js";
|
|
|
5
5
|
import { ComponentProps, FC, ReactNode } from "react";
|
|
6
6
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
7
7
|
import { motion } from "motion/react";
|
|
8
|
-
|
|
9
8
|
//#region src/layouts/flux/index.d.ts
|
|
10
9
|
interface DocsSlots extends BaseSlots {
|
|
11
10
|
container: FC<ComponentProps<'div'>>;
|
|
@@ -49,24 +48,13 @@ interface NavigationPanelProps {
|
|
|
49
48
|
tool: ReactNode;
|
|
50
49
|
link: ReactNode;
|
|
51
50
|
}
|
|
52
|
-
declare function NavigationPanel({
|
|
53
|
-
head,
|
|
54
|
-
tabDropdown,
|
|
55
|
-
tool,
|
|
56
|
-
link,
|
|
57
|
-
children,
|
|
58
|
-
...props
|
|
59
|
-
}: NavigationPanelProps & Omit<ComponentProps<typeof motion.div>, 'children'> & {
|
|
51
|
+
declare function NavigationPanel({ head, tabDropdown, tool, link, children, ...props }: NavigationPanelProps & Omit<ComponentProps<typeof motion.div>, 'children'> & {
|
|
60
52
|
/**
|
|
61
53
|
* replace default children
|
|
62
54
|
*/
|
|
63
55
|
children?: (defaultChildren: ReactNode) => ReactNode;
|
|
64
56
|
}): import("react").JSX.Element;
|
|
65
|
-
declare function NavigationPanelOverlay({
|
|
66
|
-
enabled,
|
|
67
|
-
className,
|
|
68
|
-
...props
|
|
69
|
-
}: ComponentProps<typeof motion.div> & {
|
|
57
|
+
declare function NavigationPanelOverlay({ enabled, className, ...props }: ComponentProps<typeof motion.div> & {
|
|
70
58
|
enabled?: boolean;
|
|
71
59
|
}): import("react").JSX.Element;
|
|
72
60
|
//#endregion
|
|
@@ -4,7 +4,6 @@ import { Footer, FooterProps } from "./slots/footer.js";
|
|
|
4
4
|
import { Breadcrumb, BreadcrumbProps } from "./slots/breadcrumb.js";
|
|
5
5
|
import { ComponentProps, FC, ReactNode } from "react";
|
|
6
6
|
import { TOCItemType } from "fumadocs-core/toc";
|
|
7
|
-
|
|
8
7
|
//#region src/layouts/flux/page/index.d.ts
|
|
9
8
|
interface DocsPageProps extends ComponentProps<'article'> {
|
|
10
9
|
toc?: TOCItemType[];
|
|
@@ -53,49 +52,15 @@ declare function useDocsPage(): {
|
|
|
53
52
|
full: NonNullable<DocsPageProps["full"]>;
|
|
54
53
|
slots: DocsPageSlots;
|
|
55
54
|
};
|
|
56
|
-
declare function DocsPage({
|
|
57
|
-
full,
|
|
58
|
-
tableOfContent: {
|
|
59
|
-
enabled: tocEnabled,
|
|
60
|
-
single,
|
|
61
|
-
...tocProps
|
|
62
|
-
},
|
|
63
|
-
breadcrumb: {
|
|
64
|
-
enabled: breadcrumbEnabled,
|
|
65
|
-
...breadcrumb
|
|
66
|
-
},
|
|
67
|
-
footer: {
|
|
68
|
-
enabled: footerEnabled,
|
|
69
|
-
...footer
|
|
70
|
-
},
|
|
71
|
-
toc,
|
|
72
|
-
slots: defaultSlots,
|
|
73
|
-
children,
|
|
74
|
-
...containerProps
|
|
75
|
-
}: DocsPageProps): import("react").JSX.Element;
|
|
55
|
+
declare function DocsPage({ full, tableOfContent: { enabled: tocEnabled, single, ...tocProps }, breadcrumb: { enabled: breadcrumbEnabled, ...breadcrumb }, footer: { enabled: footerEnabled, ...footer }, toc, slots: defaultSlots, children, ...containerProps }: DocsPageProps): import("react").JSX.Element;
|
|
76
56
|
declare function EditOnGitHub(props: ComponentProps<'a'>): import("react").JSX.Element;
|
|
77
57
|
/**
|
|
78
58
|
* Add typography styles
|
|
79
59
|
*/
|
|
80
|
-
declare function DocsBody({
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
85
|
-
declare function DocsDescription({
|
|
86
|
-
children,
|
|
87
|
-
className,
|
|
88
|
-
...props
|
|
89
|
-
}: ComponentProps<'p'>): import("react").JSX.Element | null;
|
|
90
|
-
declare function DocsTitle({
|
|
91
|
-
children,
|
|
92
|
-
className,
|
|
93
|
-
...props
|
|
94
|
-
}: ComponentProps<'h1'>): import("react").JSX.Element;
|
|
95
|
-
declare function PageLastUpdate({
|
|
96
|
-
date: value,
|
|
97
|
-
...props
|
|
98
|
-
}: Omit<ComponentProps<'p'>, 'children'> & {
|
|
60
|
+
declare function DocsBody({ children, className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
61
|
+
declare function DocsDescription({ children, className, ...props }: ComponentProps<'p'>): import("react").JSX.Element | null;
|
|
62
|
+
declare function DocsTitle({ children, className, ...props }: ComponentProps<'h1'>): import("react").JSX.Element;
|
|
63
|
+
declare function PageLastUpdate({ date: value, ...props }: Omit<ComponentProps<'p'>, 'children'> & {
|
|
99
64
|
date: Date;
|
|
100
65
|
}): import("react").JSX.Element;
|
|
101
66
|
//#endregion
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { BreadcrumbOptions } from "fumadocs-core/breadcrumb";
|
|
3
|
-
|
|
4
3
|
//#region src/layouts/flux/page/slots/breadcrumb.d.ts
|
|
5
4
|
type BreadcrumbProps = BreadcrumbOptions & ComponentProps<'div'>;
|
|
6
|
-
declare function Breadcrumb({
|
|
7
|
-
includeRoot,
|
|
8
|
-
includeSeparator,
|
|
9
|
-
includePage,
|
|
10
|
-
...props
|
|
11
|
-
}: BreadcrumbProps): import("react").JSX.Element | null;
|
|
5
|
+
declare function Breadcrumb({ includeRoot, includeSeparator, includePage, ...props }: BreadcrumbProps): import("react").JSX.Element | null;
|
|
12
6
|
//#endregion
|
|
13
7
|
export { Breadcrumb, BreadcrumbProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
3
|
-
|
|
4
3
|
//#region src/layouts/flux/page/slots/footer.d.ts
|
|
5
4
|
type Item = Pick<PageTree.Item, 'name' | 'description' | 'url'>;
|
|
6
5
|
interface FooterProps extends ComponentProps<'div'> {
|
|
@@ -12,11 +11,6 @@ interface FooterProps extends ComponentProps<'div'> {
|
|
|
12
11
|
next?: Item;
|
|
13
12
|
};
|
|
14
13
|
}
|
|
15
|
-
declare function Footer({
|
|
16
|
-
items,
|
|
17
|
-
children,
|
|
18
|
-
className,
|
|
19
|
-
...props
|
|
20
|
-
}: FooterProps): import("react").JSX.Element;
|
|
14
|
+
declare function Footer({ items, children, className, ...props }: FooterProps): import("react").JSX.Element;
|
|
21
15
|
//#endregion
|
|
22
16
|
export { Footer, FooterProps };
|
|
@@ -2,7 +2,6 @@ import { TOCItemsProps } from "../../../../components/toc/clerk.js";
|
|
|
2
2
|
import { TOCItemsProps as TOCItemsProps$1 } from "../../../../components/toc/default.js";
|
|
3
3
|
import { TOCProvider as TOCProvider$1, TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
|
|
4
4
|
import { ComponentProps, ReactNode } from "react";
|
|
5
|
-
|
|
6
5
|
//#region src/layouts/flux/page/slots/toc.d.ts
|
|
7
6
|
type TOCProviderProps = TOCProviderProps$1;
|
|
8
7
|
declare const TOCProvider: typeof TOCProvider$1;
|
|
@@ -25,14 +24,6 @@ type TOCProps = {
|
|
|
25
24
|
style: 'clerk';
|
|
26
25
|
list?: TOCItemsProps;
|
|
27
26
|
});
|
|
28
|
-
declare function TOC({
|
|
29
|
-
container,
|
|
30
|
-
trigger,
|
|
31
|
-
content,
|
|
32
|
-
header,
|
|
33
|
-
footer,
|
|
34
|
-
style,
|
|
35
|
-
list
|
|
36
|
-
}: TOCProps): import("react").JSX.Element | undefined;
|
|
27
|
+
declare function TOC({ container, trigger, content, header, footer, style, list }: TOCProps): import("react").JSX.Element | undefined;
|
|
37
28
|
//#endregion
|
|
38
29
|
export { TOC, TOCProps, TOCProvider, TOCProviderProps };
|
|
@@ -1,7 +1,6 @@
|
|
|
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
|
-
|
|
5
4
|
//#region src/layouts/flux/slots/sidebar.d.ts
|
|
6
5
|
interface SidebarProps extends ComponentProps<'aside'> {
|
|
7
6
|
components?: Partial<SidebarPageTreeComponents>;
|
|
@@ -11,12 +10,7 @@ interface SidebarProps extends ComponentProps<'aside'> {
|
|
|
11
10
|
type SidebarProviderProps = SidebarProviderProps$1;
|
|
12
11
|
declare const useSidebar: typeof useSidebar$1;
|
|
13
12
|
declare function SidebarProvider(props: SidebarProviderProps): import("react").JSX.Element;
|
|
14
|
-
declare function Sidebar({
|
|
15
|
-
footer,
|
|
16
|
-
banner,
|
|
17
|
-
components,
|
|
18
|
-
...rest
|
|
19
|
-
}: SidebarProps): import("react").JSX.Element;
|
|
13
|
+
declare function Sidebar({ footer, banner, components, ...rest }: SidebarProps): import("react").JSX.Element;
|
|
20
14
|
declare function SidebarTrigger(props: ComponentProps<'button'>): import("react").JSX.Element;
|
|
21
15
|
//#endregion
|
|
22
16
|
export { Sidebar, SidebarProps, SidebarProvider, SidebarProviderProps, SidebarTrigger, useSidebar };
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { LayoutTab } from "../../shared/index.js";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/layouts/flux/slots/tab-dropdown.d.ts
|
|
5
4
|
interface TabDropdownProps extends ComponentProps<'button'> {
|
|
6
5
|
placeholder?: ReactNode;
|
|
7
6
|
tabs: LayoutTab[];
|
|
8
7
|
}
|
|
9
|
-
declare function TabDropdown({
|
|
10
|
-
tabs,
|
|
11
|
-
placeholder,
|
|
12
|
-
className,
|
|
13
|
-
...props
|
|
14
|
-
}: TabDropdownProps): import("react").JSX.Element;
|
|
8
|
+
declare function TabDropdown({ tabs, placeholder, className, ...props }: TabDropdownProps): import("react").JSX.Element;
|
|
15
9
|
//#endregion
|
|
16
10
|
export { TabDropdown, TabDropdownProps };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseSlots, BaseSlotsProps } from "../shared/client.js";
|
|
2
2
|
import { BaseLayoutProps, LinkItemType, NavOptions } from "../shared/index.js";
|
|
3
3
|
import { ComponentProps, FC } from "react";
|
|
4
|
-
|
|
5
4
|
//#region src/layouts/home/index.d.ts
|
|
6
5
|
interface HomeLayoutProps extends BaseLayoutProps, ComponentProps<'main'> {
|
|
7
6
|
nav?: Nav;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NavigationMenuContentProps, NavigationMenuItem, NavigationMenuTriggerProps } from "../../components/ui/navigation-menu.js";
|
|
2
1
|
import { LinkProps } from "fumadocs-core/link";
|
|
3
|
-
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { NavigationMenu } from "@base-ui/react/navigation-menu";
|
|
4
4
|
//#region src/layouts/home/navbar.d.ts
|
|
5
|
-
declare
|
|
6
|
-
declare function NavbarMenuContent(props:
|
|
7
|
-
declare function NavbarMenuTrigger(props:
|
|
5
|
+
declare function NavbarMenu({ className, children, ...props }: ComponentProps<typeof NavigationMenu.Item>): import("react").JSX.Element;
|
|
6
|
+
declare function NavbarMenuContent({ className, ...props }: ComponentProps<typeof NavigationMenu.Content>): import("react").JSX.Element;
|
|
7
|
+
declare function NavbarMenuTrigger({ className, children, ...props }: ComponentProps<typeof NavigationMenu.Trigger>): import("react").JSX.Element;
|
|
8
8
|
declare function NavbarMenuLink(props: LinkProps): import("react").JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { NavbarMenu, NavbarMenuContent, NavbarMenuLink, NavbarMenuTrigger };
|
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../utils/cn.js";
|
|
3
|
-
import { NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuTrigger } from "../../components/ui/navigation-menu.js";
|
|
4
3
|
import { navItemVariants } from "./slots/header.js";
|
|
5
4
|
import Link from "fumadocs-core/link";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { NavigationMenu } from "@base-ui/react/navigation-menu";
|
|
7
7
|
//#region src/layouts/home/navbar.tsx
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
className: (state) => cn("grid grid-cols-1 gap-2 md:grid-cols-2 lg:grid-cols-3", typeof className === "function" ? className(state) : className),
|
|
14
|
-
children: props.children
|
|
8
|
+
function NavbarMenu({ className, children, ...props }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Item, {
|
|
10
|
+
className: (s) => cn("list-none", typeof className === "function" ? className(s) : className),
|
|
11
|
+
...props,
|
|
12
|
+
children
|
|
15
13
|
});
|
|
16
14
|
}
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
function NavbarMenuContent({ className, ...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Content, {
|
|
17
|
+
...props,
|
|
18
|
+
className: (s) => cn("h-full w-(--anchor-width) max-w-(--available-width) p-3", "transition-[opacity,transform,translate] duration-(--duration) ease-(--easing)", "data-starting-style:opacity-0 data-ending-style:opacity-0", "data-starting-style:data-[activation-direction=left]:-translate-x-1/2", "data-starting-style:data-[activation-direction=right]:translate-x-1/2", "data-ending-style:data-[activation-direction=left]:translate-x-1/2", "data-ending-style:data-[activation-direction=right]:-translate-x-1/2", "grid grid-cols-1 gap-2 md:grid-cols-2 lg:grid-cols-3", typeof className === "function" ? className(s) : className)
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function NavbarMenuTrigger({ className, children, ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Trigger, {
|
|
23
|
+
...props,
|
|
24
|
+
className: (s) => cn(navItemVariants(), "text-sm rounded-md", typeof className === "function" ? className(s) : className),
|
|
25
|
+
children
|
|
23
26
|
});
|
|
24
27
|
}
|
|
25
28
|
function NavbarMenuLink(props) {
|
|
26
|
-
return /* @__PURE__ */ jsx(
|
|
29
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Link, { render: /* @__PURE__ */ jsx(Link, {
|
|
27
30
|
...props,
|
|
28
31
|
className: cn("flex flex-col gap-2 rounded-lg border bg-fd-card p-3 transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground", props.className),
|
|
29
32
|
children: props.children
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/layouts/home/slots/header.d.ts
|
|
4
3
|
declare const navItemVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
4
|
+
variant?: "icon" | "main" | "button" | null | undefined;
|
|
6
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
6
|
declare function Header(props: ComponentProps<'header'>): import("react").JSX.Element;
|
|
8
7
|
//#endregion
|