@fumadocs/base-ui 16.7.7 → 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 +14 -5
- package/css/generated/notebook.css +1 -0
- package/css/generated/shared.css +0 -2
- 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/default.d.ts +4 -4
- package/dist/components/toc/index.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 +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/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 +5 -5
- 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/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 +45 -6
- package/package.json +11 -11
|
@@ -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 };
|
|
@@ -14,7 +14,7 @@ import { useMemo, useRef, useState } from "react";
|
|
|
14
14
|
import { usePathname } from "fumadocs-core/framework";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import Link from "fumadocs-core/link";
|
|
17
|
-
import { Check, ChevronsUpDown, Languages, SidebarIcon } from "lucide-react";
|
|
17
|
+
import { Check, ChevronDown, ChevronsUpDown, Languages, SidebarIcon } from "lucide-react";
|
|
18
18
|
import { cva } from "class-variance-authority";
|
|
19
19
|
//#region src/layouts/docs/slots/sidebar.tsx
|
|
20
20
|
const itemVariants = cva("relative flex flex-row items-center gap-2 rounded-lg p-2 text-start text-fd-muted-foreground wrap-anywhere [&_svg]:size-4 [&_svg]:shrink-0", { variants: {
|
|
@@ -22,7 +22,7 @@ const itemVariants = cva("relative flex flex-row items-center gap-2 rounded-lg p
|
|
|
22
22
|
link: "transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none data-[active=true]:bg-fd-primary/10 data-[active=true]:text-fd-primary data-[active=true]:hover:transition-colors",
|
|
23
23
|
button: "transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none"
|
|
24
24
|
},
|
|
25
|
-
highlight: { true: "data-[active=true]:before:content-[''] data-[active=true]:before:bg-fd-primary data-[active=true]:before:absolute data-[active=true]:before:w-px data-[active=true]:before:inset-y-2.5 data-[active=true]:before:
|
|
25
|
+
highlight: { true: "data-[active=true]:before:content-[''] data-[active=true]:before:bg-fd-primary data-[active=true]:before:absolute data-[active=true]:before:w-px data-[active=true]:before:inset-y-2.5 data-[active=true]:before:inset-s-2.5" }
|
|
26
26
|
} });
|
|
27
27
|
const { useSidebar } = base_exports;
|
|
28
28
|
function SidebarProvider(props) {
|
|
@@ -66,12 +66,20 @@ function Sidebar({ footer, banner, collapsible = true, components, ...rest }) {
|
|
|
66
66
|
}),
|
|
67
67
|
viewport,
|
|
68
68
|
(slots.languageSelect || iconLinks.length > 0 || slots.themeSwitch || footer) && /* @__PURE__ */ jsxs("div", {
|
|
69
|
-
className: "flex flex-col
|
|
70
|
-
children: [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
className: "flex flex-col p-4 pt-2",
|
|
70
|
+
children: [
|
|
71
|
+
slots.languageSelect && /* @__PURE__ */ jsxs(slots.languageSelect.root, {
|
|
72
|
+
variant: "secondary",
|
|
73
|
+
className: "text-fd-muted-foreground text-start justify-start bg-fd-secondary/50 mb-2",
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ jsx(Languages, { className: "size-4.5" }),
|
|
76
|
+
/* @__PURE__ */ jsx(slots.languageSelect.text, {}),
|
|
77
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "ms-auto size-3.5" })
|
|
78
|
+
]
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ jsxs("div", {
|
|
81
|
+
className: "flex text-fd-muted-foreground items-center border bg-fd-secondary/50 p-0.5 pe-0 rounded-lg empty:hidden",
|
|
82
|
+
children: [iconLinks.map((item, i) => /* @__PURE__ */ jsx(LinkItem, {
|
|
75
83
|
item,
|
|
76
84
|
className: cn(buttonVariants({
|
|
77
85
|
size: "icon-sm",
|
|
@@ -79,10 +87,10 @@ function Sidebar({ footer, banner, collapsible = true, components, ...rest }) {
|
|
|
79
87
|
})),
|
|
80
88
|
"aria-label": item.label,
|
|
81
89
|
children: item.icon
|
|
82
|
-
}, i)),
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
}, i)), slots.themeSwitch && /* @__PURE__ */ jsx(slots.themeSwitch, { className: "px-1 py-0 border-y-0 border-e-0 rounded-none ms-auto *:rounded-md" })]
|
|
91
|
+
}),
|
|
92
|
+
footer
|
|
93
|
+
]
|
|
86
94
|
})
|
|
87
95
|
]
|
|
88
96
|
}), /* @__PURE__ */ jsxs(SidebarDrawer, { children: [
|
|
@@ -143,21 +151,21 @@ function SidebarContent({ ref: refProp, className, children, ...props }) {
|
|
|
143
151
|
"data-sidebar-placeholder": "",
|
|
144
152
|
className: "sticky top-(--fd-docs-row-1) z-20 [grid-area:sidebar] pointer-events-none *:pointer-events-auto h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] md:layout:[--fd-sidebar-width:268px] max-md:hidden",
|
|
145
153
|
children: [collapsed && /* @__PURE__ */ jsx("div", {
|
|
146
|
-
className: "absolute
|
|
154
|
+
className: "absolute inset-s-0 inset-y-0 w-4",
|
|
147
155
|
...rest
|
|
148
156
|
}), /* @__PURE__ */ jsx("aside", {
|
|
149
157
|
id: "nd-sidebar",
|
|
150
158
|
ref: mergeRefs(ref, refProp, asideRef),
|
|
151
159
|
"data-collapsed": collapsed,
|
|
152
160
|
"data-hovered": collapsed && hovered,
|
|
153
|
-
className: cn("absolute flex flex-col w-full
|
|
161
|
+
className: cn("absolute flex flex-col w-full inset-s-0 inset-y-0 items-end bg-fd-card text-sm border-e duration-250 *:w-(--fd-sidebar-width)", collapsed && ["inset-y-2 rounded-xl transition-transform border w-(--fd-sidebar-width)", hovered ? "shadow-lg translate-x-2 rtl:-translate-x-2" : "-translate-x-(--fd-sidebar-width) rtl:translate-x-full"], ref.current && ref.current.getAttribute("data-collapsed") === "true" !== collapsed && "transition-[width,inset-block,translate,background-color]", className),
|
|
154
162
|
...props,
|
|
155
163
|
...rest,
|
|
156
164
|
children
|
|
157
165
|
})]
|
|
158
166
|
}), /* @__PURE__ */ jsxs("div", {
|
|
159
167
|
"data-sidebar-panel": "",
|
|
160
|
-
className: cn("fixed flex top-[calc(--spacing(4)+var(--fd-docs-row-3))]
|
|
168
|
+
className: cn("fixed flex top-[calc(--spacing(4)+var(--fd-docs-row-3))] inset-s-4 shadow-lg transition-opacity rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10", (!collapsed || hovered) && "pointer-events-none opacity-0"),
|
|
161
169
|
children: [/* @__PURE__ */ jsx(SidebarCollapseTrigger$1, {
|
|
162
170
|
className: cn(buttonVariants({
|
|
163
171
|
color: "ghost",
|
|
@@ -173,7 +181,7 @@ function SidebarContent({ ref: refProp, className, children, ...props }) {
|
|
|
173
181
|
}
|
|
174
182
|
function SidebarDrawer({ children, className, ...props }) {
|
|
175
183
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(SidebarDrawerOverlay, { className: "fixed z-40 inset-0 backdrop-blur-xs data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out" }), /* @__PURE__ */ jsx(SidebarDrawerContent, {
|
|
176
|
-
className: cn("fixed text-[0.9375rem] flex flex-col shadow-lg border-s
|
|
184
|
+
className: cn("fixed text-[0.9375rem] flex flex-col shadow-lg border-s inset-e-0 inset-y-0 w-[85%] max-w-[380px] z-40 bg-fd-background data-[state=open]:animate-fd-sidebar-in data-[state=closed]:animate-fd-sidebar-out", className),
|
|
177
185
|
...props,
|
|
178
186
|
children
|
|
179
187
|
})] });
|
|
@@ -235,7 +243,7 @@ function SidebarFolderLink({ className, style, ...props }) {
|
|
|
235
243
|
function SidebarFolderContent({ className, children, ...props }) {
|
|
236
244
|
const depth = useFolderDepth();
|
|
237
245
|
return /* @__PURE__ */ jsx(SidebarFolderContent$1, {
|
|
238
|
-
className: (state) => cn("relative flex flex-col gap-0.5 pt-0.5", depth === 1 && "before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:
|
|
246
|
+
className: (state) => cn("relative flex flex-col gap-0.5 pt-0.5", depth === 1 && "before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:inset-s-2.5", typeof className === "function" ? className(state) : className),
|
|
239
247
|
...props,
|
|
240
248
|
children
|
|
241
249
|
});
|
|
@@ -3,7 +3,7 @@ import { BaseLayoutProps, GetLayoutTabsOptions, LayoutTab, LinkItemType } from "
|
|
|
3
3
|
import { TabDropdownProps } from "./slots/tab-dropdown.js";
|
|
4
4
|
import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.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 * as PageTree from "fumadocs-core/page-tree";
|
|
8
8
|
import { motion } from "motion/react";
|
|
9
9
|
|
|
@@ -43,7 +43,7 @@ declare function useFluxLayout(): {
|
|
|
43
43
|
navItems: LinkItemType[];
|
|
44
44
|
slots: DocsSlots;
|
|
45
45
|
};
|
|
46
|
-
declare function DocsLayout(props: DocsLayoutProps): react_jsx_runtime0.JSX.Element;
|
|
46
|
+
declare function DocsLayout(props: DocsLayoutProps): _$react_jsx_runtime0.JSX.Element;
|
|
47
47
|
interface NavigationPanelProps {
|
|
48
48
|
head: ReactNode;
|
|
49
49
|
tabDropdown: ReactNode;
|
|
@@ -62,13 +62,13 @@ declare function NavigationPanel({
|
|
|
62
62
|
* replace default children
|
|
63
63
|
*/
|
|
64
64
|
children?: (defaultChildren: ReactNode) => ReactNode;
|
|
65
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
65
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
66
66
|
declare function NavigationPanelOverlay({
|
|
67
67
|
enabled,
|
|
68
68
|
className,
|
|
69
69
|
...props
|
|
70
70
|
}: ComponentProps<typeof motion.div> & {
|
|
71
71
|
enabled?: boolean;
|
|
72
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
72
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
73
73
|
//#endregion
|
|
74
74
|
export { DocsLayout, DocsLayoutProps, DocsSlots, NavigationPanel, NavigationPanelOverlay, NavigationPanelProps, useFluxLayout };
|
|
@@ -3,7 +3,7 @@ import { TOCProps, TOCProviderProps } from "./slots/toc.js";
|
|
|
3
3
|
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
|
-
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/flux/page/index.d.ts
|
|
@@ -75,8 +75,8 @@ declare function DocsPage({
|
|
|
75
75
|
slots: defaultSlots,
|
|
76
76
|
children,
|
|
77
77
|
...containerProps
|
|
78
|
-
}: DocsPageProps): react_jsx_runtime0.JSX.Element;
|
|
79
|
-
declare function EditOnGitHub(props: ComponentProps<'a'>): react_jsx_runtime0.JSX.Element;
|
|
78
|
+
}: DocsPageProps): _$react_jsx_runtime0.JSX.Element;
|
|
79
|
+
declare function EditOnGitHub(props: ComponentProps<'a'>): _$react_jsx_runtime0.JSX.Element;
|
|
80
80
|
/**
|
|
81
81
|
* Add typography styles
|
|
82
82
|
*/
|
|
@@ -84,22 +84,22 @@ declare function DocsBody({
|
|
|
84
84
|
children,
|
|
85
85
|
className,
|
|
86
86
|
...props
|
|
87
|
-
}: ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
|
|
87
|
+
}: ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
|
|
88
88
|
declare function DocsDescription({
|
|
89
89
|
children,
|
|
90
90
|
className,
|
|
91
91
|
...props
|
|
92
|
-
}: ComponentProps<'p'>): react_jsx_runtime0.JSX.Element | null;
|
|
92
|
+
}: ComponentProps<'p'>): _$react_jsx_runtime0.JSX.Element | null;
|
|
93
93
|
declare function DocsTitle({
|
|
94
94
|
children,
|
|
95
95
|
className,
|
|
96
96
|
...props
|
|
97
|
-
}: ComponentProps<'h1'>): react_jsx_runtime0.JSX.Element;
|
|
97
|
+
}: ComponentProps<'h1'>): _$react_jsx_runtime0.JSX.Element;
|
|
98
98
|
declare function PageLastUpdate({
|
|
99
99
|
date: value,
|
|
100
100
|
...props
|
|
101
101
|
}: Omit<ComponentProps<'p'>, 'children'> & {
|
|
102
102
|
date: Date;
|
|
103
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
103
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
104
104
|
//#endregion
|
|
105
105
|
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/flux/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/flux/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/flux/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,6 +1,6 @@
|
|
|
1
1
|
import { TOCProvider as TOCProvider$1, 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/flux/page/slots/toc.d.ts
|
|
6
6
|
type TOCProviderProps = TOCProviderProps$1;
|
|
@@ -29,6 +29,6 @@ declare function TOC({
|
|
|
29
29
|
header,
|
|
30
30
|
footer,
|
|
31
31
|
style
|
|
32
|
-
}: TOCProps): react_jsx_runtime0.JSX.Element;
|
|
32
|
+
}: TOCProps): _$react_jsx_runtime0.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { TOC, 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/flux/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 };
|
|
@@ -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/flux/slots/sidebar.d.ts
|
|
7
7
|
interface SidebarProps extends ComponentProps<'aside'> {
|
|
@@ -11,13 +11,13 @@ interface SidebarProps extends ComponentProps<'aside'> {
|
|
|
11
11
|
}
|
|
12
12
|
type SidebarProviderProps = SidebarProviderProps$1;
|
|
13
13
|
declare const useSidebar: typeof useSidebar$1;
|
|
14
|
-
declare function SidebarProvider(props: SidebarProviderProps): react_jsx_runtime0.JSX.Element;
|
|
14
|
+
declare function SidebarProvider(props: SidebarProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
15
15
|
declare function Sidebar({
|
|
16
16
|
footer,
|
|
17
17
|
banner,
|
|
18
18
|
components,
|
|
19
19
|
...rest
|
|
20
|
-
}: SidebarProps): react_jsx_runtime0.JSX.Element;
|
|
21
|
-
declare function SidebarTrigger(props: ComponentProps<'button'>): react_jsx_runtime0.JSX.Element;
|
|
20
|
+
}: SidebarProps): _$react_jsx_runtime0.JSX.Element;
|
|
21
|
+
declare function SidebarTrigger(props: ComponentProps<'button'>): _$react_jsx_runtime0.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Sidebar, SidebarProps, SidebarProvider, SidebarProviderProps, SidebarTrigger, useSidebar };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayoutTab } from "../../shared/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/flux/slots/tab-dropdown.d.ts
|
|
6
6
|
interface TabDropdownProps extends ComponentProps<'button'> {
|
|
@@ -12,6 +12,6 @@ declare function TabDropdown({
|
|
|
12
12
|
placeholder,
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: TabDropdownProps): react_jsx_runtime0.JSX.Element;
|
|
15
|
+
}: TabDropdownProps): _$react_jsx_runtime0.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { TabDropdown, TabDropdownProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
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/home/index.d.ts
|
|
7
7
|
interface HomeLayoutProps extends BaseLayoutProps, ComponentProps<'main'> {
|
|
@@ -24,6 +24,6 @@ declare function useHomeLayout(): {
|
|
|
24
24
|
menuItems: LinkItemType[];
|
|
25
25
|
slots: HomeSlots;
|
|
26
26
|
};
|
|
27
|
-
declare function HomeLayout(props: HomeLayoutProps): react_jsx_runtime0.JSX.Element;
|
|
27
|
+
declare function HomeLayout(props: HomeLayoutProps): _$react_jsx_runtime0.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { HomeLayout, HomeLayoutProps, HomeSlots, useHomeLayout };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { NavigationMenuContentProps, NavigationMenuItem, NavigationMenuTriggerProps } from "../../components/ui/navigation-menu.js";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { LinkProps } from "fumadocs-core/link";
|
|
4
4
|
|
|
5
5
|
//#region src/layouts/home/navbar.d.ts
|
|
6
6
|
declare const NavbarMenu: typeof NavigationMenuItem;
|
|
7
|
-
declare function NavbarMenuContent(props: NavigationMenuContentProps): react_jsx_runtime0.JSX.Element;
|
|
8
|
-
declare function NavbarMenuTrigger(props: NavigationMenuTriggerProps): react_jsx_runtime0.JSX.Element;
|
|
9
|
-
declare function NavbarMenuLink(props: LinkProps): react_jsx_runtime0.JSX.Element;
|
|
7
|
+
declare function NavbarMenuContent(props: NavigationMenuContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
8
|
+
declare function NavbarMenuTrigger(props: NavigationMenuTriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
9
|
+
declare function NavbarMenuLink(props: LinkProps): _$react_jsx_runtime0.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { NavbarMenu, NavbarMenuContent, NavbarMenuLink, NavbarMenuTrigger };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/layouts/home/not-found.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* the default not found page content, please make your own if you want to customise it.
|
|
6
6
|
*/
|
|
7
|
-
declare function DefaultNotFound(): react_jsx_runtime0.JSX.Element;
|
|
7
|
+
declare function DefaultNotFound(): _$react_jsx_runtime0.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { DefaultNotFound };
|
|
@@ -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/home/slots/container.d.ts
|
|
5
|
-
declare function Container(props: ComponentProps<'main'>): react_jsx_runtime0.JSX.Element;
|
|
5
|
+
declare function Container(props: ComponentProps<'main'>): _$react_jsx_runtime0.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Container };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
5
|
//#region src/layouts/home/slots/header.d.ts
|
|
6
6
|
declare const navItemVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
8
|
-
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
9
|
-
declare function Header(props: ComponentProps<'header'>): react_jsx_runtime0.JSX.Element;
|
|
7
|
+
variant?: "button" | "main" | "icon" | null | undefined;
|
|
8
|
+
} & _$class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
9
|
+
declare function Header(props: ComponentProps<'header'>): _$react_jsx_runtime0.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Header, navItemVariants };
|
|
@@ -3,7 +3,6 @@ import { LayoutTab, LinkItemType } from "../shared/index.js";
|
|
|
3
3
|
import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.js";
|
|
4
4
|
import { DocsLayoutProps } from "./index.js";
|
|
5
5
|
import { ComponentProps, FC } from "react";
|
|
6
|
-
|
|
7
6
|
//#region src/layouts/notebook/client.d.ts
|
|
8
7
|
interface DocsSlots extends BaseSlots {
|
|
9
8
|
container: FC<ComponentProps<'div'>>;
|
|
@@ -2,7 +2,7 @@ import { BaseLayoutProps, GetLayoutTabsOptions, LayoutTab, NavOptions } from "..
|
|
|
2
2
|
import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.js";
|
|
3
3
|
import { DocsSlots, useNotebookLayout } from "./client.js";
|
|
4
4
|
import { HTMLAttributes } 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/notebook/index.d.ts
|
|
@@ -34,6 +34,6 @@ declare function DocsLayout({
|
|
|
34
34
|
children,
|
|
35
35
|
tabs,
|
|
36
36
|
...props
|
|
37
|
-
}: DocsLayoutProps): react_jsx_runtime0.JSX.Element;
|
|
37
|
+
}: DocsLayoutProps): _$react_jsx_runtime0.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { DocsLayout, DocsLayoutProps, type DocsSlots, useNotebookLayout };
|
|
@@ -3,7 +3,7 @@ import { TOCPopoverProps, TOCProps, TOCProviderProps } from "./slots/toc.js";
|
|
|
3
3
|
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
|
-
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/notebook/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/notebook/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/notebook/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/notebook/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/notebook/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/notebook/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 };
|
|
@@ -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/notebook/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 };
|
|
@@ -34,7 +34,7 @@ function Header(props) {
|
|
|
34
34
|
className: cn(buttonVariants({
|
|
35
35
|
color: "ghost",
|
|
36
36
|
size: "icon-sm"
|
|
37
|
-
}), "text-fd-muted-foreground data-[collapsed=false]:hidden max-md:hidden"),
|
|
37
|
+
}), "-ms-1.5 text-fd-muted-foreground data-[collapsed=false]:hidden max-md:hidden"),
|
|
38
38
|
children: /* @__PURE__ */ jsx(Sidebar, {})
|
|
39
39
|
}),
|
|
40
40
|
slots.navTitle && /* @__PURE__ */ jsx(slots.navTitle, { className: cn("inline-flex items-center gap-2.5 font-semibold", navMode === "auto" && "md:hidden") }),
|
|
@@ -2,7 +2,7 @@ import { SidebarProviderProps as SidebarProviderProps$1, useSidebar as useSideba
|
|
|
2
2
|
import { LayoutTab } from "../../shared/index.js";
|
|
3
3
|
import { SidebarPageTreeComponents } from "../../../components/sidebar/page-tree.js";
|
|
4
4
|
import { ComponentProps, FC, 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
|
|
|
7
7
|
//#region src/layouts/notebook/slots/sidebar.d.ts
|
|
8
8
|
interface SidebarProps extends ComponentProps<'aside'> {
|
|
@@ -18,16 +18,16 @@ interface SidebarProps extends ComponentProps<'aside'> {
|
|
|
18
18
|
}
|
|
19
19
|
type SidebarProviderProps = SidebarProviderProps$1;
|
|
20
20
|
declare const useSidebar: typeof useSidebar$1;
|
|
21
|
-
declare function SidebarProvider(props: SidebarProviderProps): react_jsx_runtime0.JSX.Element;
|
|
22
|
-
declare function SidebarTrigger(props: ComponentProps<'button'>): react_jsx_runtime0.JSX.Element;
|
|
23
|
-
declare function SidebarCollapseTrigger(props: ComponentProps<'button'>): react_jsx_runtime0.JSX.Element;
|
|
21
|
+
declare function SidebarProvider(props: SidebarProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
22
|
+
declare function SidebarTrigger(props: ComponentProps<'button'>): _$react_jsx_runtime0.JSX.Element;
|
|
23
|
+
declare function SidebarCollapseTrigger(props: ComponentProps<'button'>): _$react_jsx_runtime0.JSX.Element;
|
|
24
24
|
declare function Sidebar({
|
|
25
25
|
banner,
|
|
26
26
|
footer,
|
|
27
27
|
components,
|
|
28
28
|
collapsible,
|
|
29
29
|
...rest
|
|
30
|
-
}: SidebarProps): react_jsx_runtime0.JSX.Element;
|
|
30
|
+
}: SidebarProps): _$react_jsx_runtime0.JSX.Element;
|
|
31
31
|
declare function SidebarTabsDropdown({
|
|
32
32
|
options,
|
|
33
33
|
placeholder,
|
|
@@ -35,6 +35,6 @@ declare function SidebarTabsDropdown({
|
|
|
35
35
|
}: {
|
|
36
36
|
placeholder?: ReactNode;
|
|
37
37
|
options: LayoutTab[];
|
|
38
|
-
} & ComponentProps<'button'>): react_jsx_runtime0.JSX.Element;
|
|
38
|
+
} & ComponentProps<'button'>): _$react_jsx_runtime0.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { Sidebar, SidebarCollapseTrigger, SidebarProps, SidebarProvider, SidebarProviderProps, SidebarTabsDropdown, SidebarTrigger, useSidebar };
|