fumadocs-ui 15.0.9 → 15.0.10
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/dist/components/layout/root-toggle.js +1 -1
- package/dist/components/layout/toc.js +1 -1
- package/dist/layouts/docs/sidebar.d.ts.map +1 -1
- package/dist/layouts/docs/sidebar.js +3 -3
- package/dist/layouts/docs.d.ts.map +1 -1
- package/dist/layouts/docs.js +4 -10
- package/dist/layouts/notebook.client.js +3 -3
- package/dist/layouts/notebook.d.ts.map +1 -1
- package/dist/layouts/notebook.js +14 -6
- package/dist/page.client.d.ts.map +1 -1
- package/dist/page.client.js +4 -4
- package/dist/page.js +1 -1
- package/dist/style.css +16 -27
- package/package.json +5 -5
|
@@ -22,7 +22,7 @@ export function RootToggle({ options, placeholder, ...props }) {
|
|
|
22
22
|
setOpen(false);
|
|
23
23
|
};
|
|
24
24
|
const item = selected ? _jsx(Item, { ...selected }) : placeholder;
|
|
25
|
-
return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [item ? (_jsxs(PopoverTrigger, { ...props, className: cn('flex flex-row items-center gap-2 rounded-lg ps-2 pe-4 py-1.5 hover:bg-fd-accent/50 hover:text-fd-accent-foreground', props.className), children: [item, _jsx(ChevronsUpDown, { className: "size-4 text-fd-muted-foreground" })] })) : null, _jsx(PopoverContent, { className: "w-(--radix-popover-trigger-width) overflow-hidden p-0", children: options.map((item) => (_jsx(Link, { href: item.url, onClick: onClick, ...item.props, className: cn('flex w-full flex-row items-center gap-2 px-2 py-1.5', selected === item
|
|
25
|
+
return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [item ? (_jsxs(PopoverTrigger, { ...props, className: cn('flex flex-row items-center gap-2.5 rounded-lg ps-2 pe-4 py-1.5 hover:bg-fd-accent/50 hover:text-fd-accent-foreground', props.className), children: [item, _jsx(ChevronsUpDown, { className: "size-4 text-fd-muted-foreground" })] })) : null, _jsx(PopoverContent, { className: "w-(--radix-popover-trigger-width) overflow-hidden p-0", children: options.map((item) => (_jsx(Link, { href: item.url, onClick: onClick, ...item.props, className: cn('flex w-full flex-row items-center gap-2 px-2 py-1.5', selected === item
|
|
26
26
|
? 'bg-fd-accent text-fd-accent-foreground'
|
|
27
27
|
: 'hover:bg-fd-accent/50', item.props?.className), children: _jsx(Item, { ...item }) }, item.url))) })] }));
|
|
28
28
|
}
|
|
@@ -48,7 +48,7 @@ export function TocPopoverTrigger({ items, ...props }) {
|
|
|
48
48
|
const current = useMemo(() => {
|
|
49
49
|
return items.find((item) => active === item.url.slice(1))?.title;
|
|
50
50
|
}, [items, active]);
|
|
51
|
-
return (_jsxs(CollapsibleTrigger, { ...props, className: cn('inline-flex items-center text-sm gap-2 text-nowrap px-4 py-2 text-start md:px-6
|
|
51
|
+
return (_jsxs(CollapsibleTrigger, { ...props, className: cn('inline-flex items-center text-sm gap-2 text-nowrap px-4 py-2.5 text-start md:px-6 focus-visible:outline-none', props.className), children: [_jsx(Text, { className: "size-4 shrink-0" }), text.toc, _jsx(ChevronRight, { className: cn('size-4 shrink-0 text-fd-muted-foreground transition-all', !current && 'opacity-0', open ? 'rotate-90' : '-ms-1.5') }), _jsx("span", { className: cn('truncate text-fd-muted-foreground transition-opacity -ms-1.5', (!current || open) && 'opacity-0'), children: current })] }));
|
|
52
52
|
}
|
|
53
53
|
export function TocPopoverContent(props) {
|
|
54
54
|
return (_jsx(CollapsibleContent, { "data-toc-popover": "", className: "flex flex-col max-h-[50vh]", ...props, children: props.children }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/layouts/docs/sidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,cAAc,EAEnB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AACf,OAAa,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAU1D,OAAO,EAAE,KAAK,eAAe,EAAE,M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ner, className: cn('flex size-full max-w-full flex-col pt-2 md:ms-auto md:w-(--fd-sidebar-width) md:border-e md:pt-4', inner?.className), children: props.children }) }) }));
|
|
69
69
|
}
|
|
70
70
|
export function SidebarHeader(props) {
|
|
71
|
-
return (_jsx("div", { ...props, className: cn('flex flex-col gap-2 px-4 empty:hidden
|
|
71
|
+
return (_jsx("div", { ...props, className: cn('flex flex-col gap-2 px-4 empty:hidden', props.className), children: props.children }));
|
|
72
72
|
}
|
|
73
73
|
export function SidebarFooter(props) {
|
|
74
|
-
return (_jsx("div", { ...props, className: cn('flex flex-col border-t px-4 py-3 empty:hidden
|
|
74
|
+
return (_jsx("div", { ...props, className: cn('flex flex-col border-t px-4 py-3 empty:hidden', props.className), children: props.children }));
|
|
75
75
|
}
|
|
76
76
|
export function SidebarViewport(props) {
|
|
77
|
-
return (_jsx(ScrollArea, { ...props, className: cn('h-full', props.className), children: _jsx(ScrollViewport, { className: "p-4
|
|
77
|
+
return (_jsx(ScrollArea, { ...props, className: cn('h-full', props.className), children: _jsx(ScrollViewport, { className: "p-4", style: {
|
|
78
78
|
maskImage: 'linear-gradient(to bottom, transparent, white 12px)',
|
|
79
79
|
}, children: props.children }) }));
|
|
80
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/layouts/docs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAe5D,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,iBAAiB,CAAC;AAElE,OAAO,EAAE,KAAK,eAAe,EAAY,MAAM,UAAU,CAAC;AAa1D,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAG/B,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,IAAI,EAAE,QAAQ,CAAC,IA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AAG,GAAG,EACF,EACN,OAAO,EAAE,EACP,OAAO,EAAE,cAAqB,EAC9B,WAAkB,EAClB,SAAS,EAAE,cAAc,EACzB,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,iBAAiB,EAC7B,UAAU,EAAE,iBAAiB,EAC7B,GAAG,OAAO,EACN,EACN,IAAY,EACZ,GAAG,KAAK,EACT,EAAE,eAAe,GAAG,SAAS,CA8H7B;AA2CD,OAAO,EAAE,yBAAyB,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,KAAK,YAAY,EAAE,CAAC"}
|
package/dist/layouts/docs.js
CHANGED
|
@@ -34,22 +34,16 @@ export function DocsLayout({ nav: { enabled: navEnabled = true, component: navRe
|
|
|
34
34
|
}, children: [collapsible ? (_jsx(SidebarCollapseTrigger, { className: cn(buttonVariants({
|
|
35
35
|
color: 'secondary',
|
|
36
36
|
size: 'icon',
|
|
37
|
-
}), 'fixed top-1/2 -translate-y-1/2 start-0 z-40 text-fd-muted-foreground border-s-0 rounded-s-none shadow-md data-[collapsed=false]:hidden max-md:hidden'), children: _jsx(ChevronRight, {}) })) : null, replaceOrDefault({ enabled: sidebarEnabled, component: sidebarReplace }, _jsxs(Aside, { ...sidebar, className: cn('md:ps-(--fd-layout-offset)', sidebar.className), children: [_jsxs(SidebarHeader, { children: [
|
|
37
|
+
}), 'fixed top-1/2 -translate-y-1/2 start-0 z-40 text-fd-muted-foreground border-s-0 rounded-s-none shadow-md data-[collapsed=false]:hidden max-md:hidden'), children: _jsx(ChevronRight, {}) })) : null, replaceOrDefault({ enabled: sidebarEnabled, component: sidebarReplace }, _jsxs(Aside, { ...sidebar, className: cn('md:ps-(--fd-layout-offset)', sidebar.className), children: [_jsxs(SidebarHeader, { children: [_jsxs("div", { className: "flex flex-row pt-1 max-md:hidden", children: [_jsx(Link, { href: nav.url ?? '/', className: "inline-flex text-[15px] items-center gap-2.5 font-medium", children: nav.title }), nav.children, collapsible && (_jsx(SidebarCollapseTrigger, { className: cn(buttonVariants({
|
|
38
|
+
color: 'ghost',
|
|
39
|
+
size: 'icon-sm',
|
|
40
|
+
}), 'ms-auto mb-auto text-fd-muted-foreground max-md:hidden') }))] }), sidebarBanner, tabs.length > 0 ? (_jsx(RootToggle, { options: tabs, className: "-mx-2" })) : null, !sidebarHideSearch ? (_jsx(LargeSearchToggle, { hideIfDisabled: true, className: "rounded-lg max-md:hidden" })) : null] }), _jsxs(SidebarViewport, { children: [_jsx("div", { className: "mb-4 empty:hidden md:hidden", children: links
|
|
38
41
|
.filter((v) => v.type !== 'icon')
|
|
39
42
|
.map((item, i) => (_jsx(SidebarLinkItem, { item: item }, i))) }), _jsx(SidebarPageTree, { components: sidebarComponents })] }), _jsxs(SidebarFooter, { children: [_jsx(SidebarFooterItems, { links: links, i18n: i18n, disableThemeSwitch: props.disableThemeSwitch ?? false }), sidebarFooter] })] }), {
|
|
40
43
|
...sidebar,
|
|
41
44
|
tabs,
|
|
42
45
|
}), _jsx(StylesProvider, { ...pageStyles, children: props.children })] })] }) }));
|
|
43
46
|
}
|
|
44
|
-
function SidebarHeaderItems({ links, sidebarCollapsible, ...props }) {
|
|
45
|
-
const isEmpty = !props.title && !props.children && links.length === 0;
|
|
46
|
-
if (isEmpty)
|
|
47
|
-
return null;
|
|
48
|
-
return (_jsxs("div", { className: "flex flex-row items-center max-md:hidden", children: [props.title ? (_jsx(Link, { href: props.url ?? '/', className: "inline-flex text-[15px] items-center gap-2.5 py-1 font-medium", children: props.title })) : null, props.children, sidebarCollapsible && (_jsx(SidebarCollapseTrigger, { className: cn(buttonVariants({
|
|
49
|
-
color: 'ghost',
|
|
50
|
-
size: 'icon-sm',
|
|
51
|
-
}), 'ms-auto text-fd-muted-foreground max-md:hidden') }))] }));
|
|
52
|
-
}
|
|
53
47
|
function SidebarFooterItems({ i18n, disableThemeSwitch, links, }) {
|
|
54
48
|
const iconItems = links.filter((v) => v.type === 'icon');
|
|
55
49
|
// empty footer items
|
|
@@ -12,7 +12,7 @@ import { isActive } from '../utils/is-active.js';
|
|
|
12
12
|
export function Navbar(props) {
|
|
13
13
|
const { open, collapsed } = useSidebar();
|
|
14
14
|
const { isTransparent } = useNav();
|
|
15
|
-
return (_jsx("header", { id: "nd-subnav", ...props, className: cn('fixed inset-x-0 top-(--fd-banner-height) z-10
|
|
15
|
+
return (_jsx("header", { id: "nd-subnav", ...props, className: cn('fixed inset-x-0 top-(--fd-banner-height) z-10 pe-(--fd-layout-offset) backdrop-blur-lg transition-colors', (!isTransparent || open) && 'bg-fd-background/80', props.className), style: {
|
|
16
16
|
paddingInlineStart: collapsed
|
|
17
17
|
? 'var(--fd-layout-offset)'
|
|
18
18
|
: 'calc(var(--fd-layout-offset) + var(--fd-sidebar-width))',
|
|
@@ -38,13 +38,13 @@ function useIsSelected(item) {
|
|
|
38
38
|
export function LayoutTab(item) {
|
|
39
39
|
const { closeOnRedirect } = useSidebar();
|
|
40
40
|
const selected = useIsSelected(item);
|
|
41
|
-
return (_jsx(Link, { className: cn('inline-flex items-center py-2.5 border-b
|
|
41
|
+
return (_jsx(Link, { className: cn('inline-flex items-center py-2.5 border-b border-transparent gap-2 text-fd-muted-foreground text-sm text-nowrap', selected && 'text-fd-foreground font-medium border-fd-primary'), href: item.url, onClick: () => {
|
|
42
42
|
closeOnRedirect.current = false;
|
|
43
43
|
}, children: item.title }));
|
|
44
44
|
}
|
|
45
45
|
export function SidebarLayoutTab({ item, ...props }) {
|
|
46
46
|
const selected = useIsSelected(item);
|
|
47
|
-
return (_jsxs(Link, { ...props, className: cn('flex flex-row items-center px-2 py-1.5 gap-2.5 text-fd-muted-foreground [&_svg]:!size-4.5', selected
|
|
47
|
+
return (_jsxs(Link, { ...props, className: cn('flex flex-row items-center px-2 -mx-2 py-1.5 gap-2.5 text-fd-muted-foreground [&_svg]:!size-4.5', selected
|
|
48
48
|
? 'text-fd-primary font-medium'
|
|
49
49
|
: 'hover:text-fd-accent-foreground', props.className), "data-active": selected, href: item.url, children: [item.icon, item.title] }));
|
|
50
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notebook.d.ts","sourceRoot":"","sources":["../../src/layouts/notebook.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,KAAK,eAAe,EAAY,MAAM,kBAAkB,CAAC;AA4BlE,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAWrD,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAE/B,GAAG,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG;QAC7B,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;KACvB,CAAC;IAEF,OAAO,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC,CAAC;IAEjE,cAAc,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;CACjD;AAED,wBAAgB,UAAU,CAAC,EACzB,OAAmB,EACnB,GAAG,EAAE,EAAE,eAAe,EAAE,GAAG,GAAG,EAAO,EACrC,OAAO,EAAE,EACP,WAAW,EAAE,kBAAyB,EACtC,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,iBAAiB,EAC7B,GAAG,OAAO,EACN,EACN,IAAY,EACZ,GAAG,KAAK,EACT,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"notebook.d.ts","sourceRoot":"","sources":["../../src/layouts/notebook.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,KAAK,eAAe,EAAY,MAAM,kBAAkB,CAAC;AA4BlE,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAWrD,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAE/B,GAAG,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG;QAC7B,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;KACvB,CAAC;IAEF,OAAO,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC,CAAC;IAEjE,cAAc,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;CACjD;AAED,wBAAgB,UAAU,CAAC,EACzB,OAAmB,EACnB,GAAG,EAAE,EAAE,eAAe,EAAE,GAAG,GAAG,EAAO,EACrC,OAAO,EAAE,EACP,WAAW,EAAE,kBAAyB,EACtC,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,iBAAiB,EAC7B,GAAG,OAAO,EACN,EACN,IAAY,EACZ,GAAG,KAAK,EACT,EAAE,eAAe,2CAsHjB"}
|
package/dist/layouts/notebook.js
CHANGED
|
@@ -34,23 +34,31 @@ export function DocsLayout({ tabMode = 'sidebar', nav: { transparentMode, ...nav
|
|
|
34
34
|
return (_jsx(TreeContextProvider, { tree: props.tree, children: _jsx(NavProvider, { transparentMode: transparentMode, children: _jsxs("main", { id: "nd-docs-layout", ...props.containerProps, className: cn('flex w-full flex-1 flex-row pe-(--fd-layout-offset)', variables, props.containerProps?.className), style: {
|
|
35
35
|
...layoutVariables,
|
|
36
36
|
...props.containerProps?.style,
|
|
37
|
-
}, children: [_jsxs(Aside, { ...sidebar, className: cn('md:ps-(--fd-layout-offset)', navMode === 'top' ? 'bg-transparent' : 'md:[--fd-nav-height:0px]', sidebar.className), children: [_jsxs(SidebarHeader, { children: [
|
|
37
|
+
}, children: [_jsxs(Aside, { ...sidebar, className: cn('md:ps-(--fd-layout-offset)', navMode === 'top' ? 'bg-transparent' : 'md:[--fd-nav-height:0px]', sidebar.className), children: [_jsxs(SidebarHeader, { children: [navMode === 'auto' && (_jsxs("div", { className: "flex flex-row justify-between -mt-0.5 max-md:hidden", children: [_jsx(Link, { href: nav.url ?? '/', className: "inline-flex items-center gap-2.5 font-medium", children: nav.title }), _jsx(SidebarCollapseTrigger, { className: cn(buttonVariants({
|
|
38
|
+
color: 'ghost',
|
|
39
|
+
size: 'icon-sm',
|
|
40
|
+
}), 'text-fd-muted-foreground mb-auto') })] })), nav.children, sidebarBanner, tabMode === 'sidebar' && tabs.length > 0 ? (_jsx(RootToggle, { options: tabs, className: "-mx-2" })) : null] }), _jsxs(SidebarViewport, { children: [tabMode === 'navbar' &&
|
|
38
41
|
tabs.map((tab, i) => (_jsx(SidebarLayoutTab, { item: tab, className: cn('lg:hidden', i === tabs.length - 1 && 'mb-4') }, tab.url))), links.map((item, i) => (_jsx(SidebarLinkItem, { item: item, className: cn('lg:hidden', i === links.length - 1 && 'mb-4') }, i))), _jsx(SidebarPageTree, { components: sidebarComponents })] }), _jsxs(SidebarFooter, { className: cn('flex flex-row items-center', !sidebarFooter && 'md:hidden'), children: [i18n ? (_jsx(LanguageToggle, { className: "me-auto md:hidden", children: _jsx(Languages, { className: "size-5 text-fd-muted-foreground" }) })) : null, !props.disableThemeSwitch ? (_jsx(ThemeToggle, { className: "md:hidden", mode: "light-dark-system" })) : null, sidebarFooter] })] }), _jsx(DocsNavbar, { nav: nav, links: links, i18n: i18n, sidebarCollapsible: sidebarCollapsible, tabs: tabMode == 'navbar' ? tabs : [] }), _jsx(StylesProvider, { ...pageStyles, children: props.children })] }) }) }));
|
|
39
42
|
}
|
|
40
43
|
function DocsNavbar({ sidebarCollapsible, links, nav = {}, i18n, tabs, }) {
|
|
41
44
|
const navMode = nav.mode ?? 'auto';
|
|
42
|
-
return (_jsxs(Navbar, {
|
|
45
|
+
return (_jsxs(Navbar, { style: navMode === 'top'
|
|
43
46
|
? {
|
|
44
47
|
paddingInlineStart: 'var(--fd-layout-offset)',
|
|
45
48
|
}
|
|
46
|
-
: undefined, children: [_jsxs("div", { className:
|
|
49
|
+
: undefined, children: [_jsxs("div", { className: cn('flex flex-row border-b border-fd-foreground/10 px-4 h-14', navMode === 'auto' && 'md:px-6'), children: [_jsxs("div", { className: cn('flex flex-row items-center', navMode === 'top' && 'flex-1 pe-4'), children: [sidebarCollapsible && navMode === 'auto' ? (_jsx(SidebarCollapseTrigger, { className: cn(buttonVariants({
|
|
47
50
|
color: 'ghost',
|
|
48
|
-
size: 'icon',
|
|
49
|
-
}), 'text-fd-muted-foreground data-[collapsed=false]:hidden max-md:hidden') })) : null
|
|
51
|
+
size: 'icon-sm',
|
|
52
|
+
}), 'text-fd-muted-foreground -ms-1.5 me-2 data-[collapsed=false]:hidden max-md:hidden') })) : null, _jsx(Title, { url: nav.url, title: nav.title, className: cn(
|
|
53
|
+
// show on sidebar on above md
|
|
54
|
+
navMode === 'auto' && 'md:hidden') })] }), _jsx(LargeSearchToggle, { hideIfDisabled: true, className: cn('w-full my-auto rounded-xl max-md:hidden', navMode === 'top' ? 'max-w-sm px-2' : 'max-w-[240px]') }), _jsxs("div", { className: "flex flex-1 flex-row items-center justify-end", children: [_jsx("div", { className: "flex flex-row items-center gap-6 px-4 empty:hidden max-lg:hidden", children: links
|
|
50
55
|
.filter((item) => item.type !== 'icon')
|
|
51
56
|
.map((item, i) => (_jsx(NavbarLinkItem, { item: item, className: "text-sm text-fd-muted-foreground transition-colors hover:text-fd-accent-foreground" }, i))) }), nav.children, _jsx(SearchToggle, { hideIfDisabled: true, className: "md:hidden" }), _jsx(NavbarSidebarTrigger, { className: "md:hidden" }), links
|
|
52
57
|
.filter((item) => item.type === 'icon')
|
|
53
|
-
.map((item, i) => (_jsx(BaseLinkItem, { item: item, className: cn(buttonVariants({ size: 'icon-sm', color: 'ghost' }), 'text-fd-muted-foreground max-lg:hidden'), "aria-label": item.label, children: item.icon }, i))), i18n ? (_jsx(LanguageToggle, { className: "max-md:hidden", children: _jsx(Languages, { className: "size-4.5 text-fd-muted-foreground" }) })) : null, _jsx(ThemeToggle, { className: "ms-2 max-md:hidden", mode: "light-dark-system" })
|
|
58
|
+
.map((item, i) => (_jsx(BaseLinkItem, { item: item, className: cn(buttonVariants({ size: 'icon-sm', color: 'ghost' }), 'text-fd-muted-foreground max-lg:hidden'), "aria-label": item.label, children: item.icon }, i))), i18n ? (_jsx(LanguageToggle, { className: "max-md:hidden", children: _jsx(Languages, { className: "size-4.5 text-fd-muted-foreground" }) })) : null, _jsx(ThemeToggle, { className: "ms-2 max-md:hidden", mode: "light-dark-system" }), sidebarCollapsible && navMode === 'top' ? (_jsx(SidebarCollapseTrigger, { className: cn(buttonVariants({
|
|
59
|
+
color: 'secondary',
|
|
60
|
+
size: 'icon-sm',
|
|
61
|
+
}), 'ms-2 text-fd-muted-foreground rounded-full max-md:hidden') })) : null] })] }), tabs.length > 0 ? (_jsx(LayoutTabs, { className: "px-6 border-b border-fd-foreground/10 h-10 max-lg:hidden", children: tabs.map((tab) => (_jsx(LayoutTab, { ...tab }, tab.url))) })) : null] }));
|
|
54
62
|
}
|
|
55
63
|
function NavbarLinkItem({ item, ...props }) {
|
|
56
64
|
if (item.type === 'menu') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.client.d.ts","sourceRoot":"","sources":["../src/page.client.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;AAWf,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAMlC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"page.client.d.ts","sourceRoot":"","sources":["../src/page.client.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;AAWf,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAMlC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,cAAc,CAAC,2CA8CrE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,cAAc,CAAC,2CAY7D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,2CAe7D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,2CAc/C;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE;QACN,QAAQ,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAC;QACzC,IAAI,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAC;KACtC,CAAC;CACH;AAiCD,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,WAAW,2CA8C5C;AAED,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEhD,wBAAgB,UAAU,CAAC,OAAO,EAAE,eAAe,kDAsClD"}
|
package/dist/page.client.js
CHANGED
|
@@ -33,9 +33,9 @@ export function TocPopoverHeader(props) {
|
|
|
33
33
|
window.removeEventListener('click', onClick);
|
|
34
34
|
};
|
|
35
35
|
}, [onClick]);
|
|
36
|
-
return (_jsx("div", { className: cn('sticky overflow-visible z-10
|
|
36
|
+
return (_jsx("div", { className: cn('sticky overflow-visible z-10', tocNav, props.className), style: {
|
|
37
37
|
top: 'calc(var(--fd-banner-height) + var(--fd-nav-height))',
|
|
38
|
-
}, children: _jsx(TocPopover, { open: open, onOpenChange: setOpen, asChild: true, children: _jsx("header", { ref: ref, id: "nd-tocnav", ...props, className: cn('border-b border-fd-foreground/10 backdrop-blur-md transition-colors', (!isTransparent || open) && 'bg-fd-background/80', open && 'shadow-lg', sidebar.open && '
|
|
38
|
+
}, children: _jsx(TocPopover, { open: open, onOpenChange: setOpen, asChild: true, children: _jsx("header", { ref: ref, id: "nd-tocnav", ...props, className: cn('border-b border-fd-foreground/10 backdrop-blur-md transition-colors', (!isTransparent || open) && 'bg-fd-background/80', open && 'shadow-lg', sidebar.open && 'max-md:hidden'), children: props.children }) }) }));
|
|
39
39
|
}
|
|
40
40
|
export function PageBody(props) {
|
|
41
41
|
const { page } = usePageStyles();
|
|
@@ -54,7 +54,7 @@ export function LastUpdate(props) {
|
|
|
54
54
|
}, [props.date]);
|
|
55
55
|
return (_jsxs("p", { className: "text-sm text-fd-muted-foreground", children: [text.lastUpdate, " ", date] }));
|
|
56
56
|
}
|
|
57
|
-
const itemVariants = cva('flex w-full flex-col gap-2 rounded-lg border
|
|
57
|
+
const itemVariants = cva('flex w-full flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground');
|
|
58
58
|
const itemLabel = cva('inline-flex items-center gap-0.5 text-fd-muted-foreground');
|
|
59
59
|
function scanNavigationList(tree) {
|
|
60
60
|
const list = [];
|
|
@@ -91,7 +91,7 @@ export function Footer({ items }) {
|
|
|
91
91
|
next: list[idx + 1],
|
|
92
92
|
};
|
|
93
93
|
}, [items, pathname, root]);
|
|
94
|
-
return (_jsxs("div", { className: "grid grid-cols-2 gap-4 pb-6", children: [previous ? (_jsxs(Link, { href: previous.url, className: cn(itemVariants()), children: [_jsxs("div", { className: cn(itemLabel()), children: [_jsx(ChevronLeft, { className: "-ms-1 size-4 shrink-0 rtl:rotate-180" }), _jsx("p", { children: text.previousPage })] }), _jsx("p", { className: "font-medium", children: previous.name })] })) : null, next ? (_jsxs(Link, { href: next.url, className: cn(itemVariants({ className: 'col-start-2 text-end' })), children: [_jsxs("div", { className: cn(itemLabel({ className: 'flex-row-reverse' })), children: [_jsx(ChevronRight, { className: "-me-1 size-4 shrink-0 rtl:rotate-180" }), _jsx("p", { children: text.nextPage })] }), _jsx("p", { className: "font-medium", children: next.name })] })) : null] }));
|
|
94
|
+
return (_jsxs("div", { className: "grid grid-cols-2 gap-4 pb-6", children: [previous ? (_jsxs(Link, { href: previous.url, className: cn(itemVariants()), children: [_jsxs("div", { className: cn(itemLabel()), children: [_jsx(ChevronLeft, { className: "-ms-1 size-4 shrink-0 rtl:rotate-180" }), _jsx("p", { children: text.previousPage })] }), _jsx("p", { className: "font-medium md:text-[15px]", children: previous.name })] })) : null, next ? (_jsxs(Link, { href: next.url, className: cn(itemVariants({ className: 'col-start-2 text-end' })), children: [_jsxs("div", { className: cn(itemLabel({ className: 'flex-row-reverse' })), children: [_jsx(ChevronRight, { className: "-me-1 size-4 shrink-0 rtl:rotate-180" }), _jsx("p", { children: text.nextPage })] }), _jsx("p", { className: "font-medium md:text-[15px]", children: next.name })] })) : null] }));
|
|
95
95
|
}
|
|
96
96
|
export function Breadcrumb(options) {
|
|
97
97
|
const path = useTreePath();
|
package/dist/page.js
CHANGED
|
@@ -22,7 +22,7 @@ export function DocsPage({ toc = [], full = false, tableOfContentPopover: { enab
|
|
|
22
22
|
return (_jsxs(AnchorProvider, { toc: toc, single: tocOptions.single, children: [_jsxs(PageBody, { ...props.container, className: cn(props.container?.className), style: {
|
|
23
23
|
'--fd-tocnav-height': !tocPopoverEnabled ? '0px' : undefined,
|
|
24
24
|
...props.container?.style,
|
|
25
|
-
}, children: [replaceOrDefault({ enabled: tocPopoverEnabled, component: tocPopoverReplace }, _jsxs(TocPopoverHeader, { children: [_jsx(TocPopoverTrigger, { className: "w-full", items: toc }), _jsxs(TocPopoverContent, { children: [tocPopoverOptions.header, _jsx(TOCScrollArea, { isMenu: true, children: tocPopoverOptions.style === 'clerk' ? (_jsx(ClerkTOCItems, { items: toc })) : (_jsx(TOCItems, { items: toc })) }), tocPopoverOptions.footer] })] }), {
|
|
25
|
+
}, children: [replaceOrDefault({ enabled: tocPopoverEnabled, component: tocPopoverReplace }, _jsxs(TocPopoverHeader, { className: "h-10", children: [_jsx(TocPopoverTrigger, { className: "w-full", items: toc }), _jsxs(TocPopoverContent, { children: [tocPopoverOptions.header, _jsx(TOCScrollArea, { isMenu: true, children: tocPopoverOptions.style === 'clerk' ? (_jsx(ClerkTOCItems, { items: toc })) : (_jsx(TOCItems, { items: toc })) }), tocPopoverOptions.footer] })] }), {
|
|
26
26
|
items: toc,
|
|
27
27
|
...tocPopoverOptions,
|
|
28
28
|
}), _jsxs(PageArticle, { ...props.article, className: cn(full || !tocEnabled ? 'max-w-[1120px]' : 'max-w-[860px]', props.article?.className), children: [replaceOrDefault(props.breadcrumb, _jsx(Breadcrumb, { ...props.breadcrumb })), props.children, _jsx("div", { role: "none", className: "flex-1" }), _jsxs("div", { className: "flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden", children: [props.editOnGithub ? (_jsx(EditOnGitHub, { ...props.editOnGithub })) : null, props.lastUpdate ? (_jsx(LastUpdate, { date: new Date(props.lastUpdate) })) : null] }), replaceOrDefault(props.footer, _jsx(Footer, { items: props.footer?.items }))] })] }), replaceOrDefault({ enabled: tocEnabled, component: tocReplace }, _jsxs(Toc, { children: [tocOptions.header, _jsxs("h3", { className: "inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground", children: [_jsx(Text, { className: "size-4" }), _jsx(I18nLabel, { label: "toc" })] }), _jsx(TOCScrollArea, { children: tocOptions.style === 'clerk' ? (_jsx(ClerkTOCItems, { items: toc })) : (_jsx(TOCItems, { items: toc })) }), tocOptions.footer] }), {
|
package/dist/style.css
CHANGED
|
@@ -1087,6 +1087,9 @@
|
|
|
1087
1087
|
border-bottom-color: var(--tw-prose-th-borders);
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
+
.-mt-0\.5 {
|
|
1091
|
+
margin-top: calc(var(--spacing) * -0.5);
|
|
1092
|
+
}
|
|
1090
1093
|
.mt-\(--fd-nav-height\) {
|
|
1091
1094
|
margin-top: var(--fd-nav-height);
|
|
1092
1095
|
}
|
|
@@ -1117,6 +1120,9 @@
|
|
|
1117
1120
|
.mb-8 {
|
|
1118
1121
|
margin-bottom: calc(var(--spacing) * 8);
|
|
1119
1122
|
}
|
|
1123
|
+
.mb-auto {
|
|
1124
|
+
margin-bottom: auto;
|
|
1125
|
+
}
|
|
1120
1126
|
.box-content {
|
|
1121
1127
|
box-sizing: content-box;
|
|
1122
1128
|
}
|
|
@@ -1181,8 +1187,8 @@
|
|
|
1181
1187
|
.h-1\.5 {
|
|
1182
1188
|
height: calc(var(--spacing) * 1.5);
|
|
1183
1189
|
}
|
|
1184
|
-
.h-
|
|
1185
|
-
height: calc(var(--spacing) *
|
|
1190
|
+
.h-10 {
|
|
1191
|
+
height: calc(var(--spacing) * 10);
|
|
1186
1192
|
}
|
|
1187
1193
|
.h-14 {
|
|
1188
1194
|
height: calc(var(--spacing) * 14);
|
|
@@ -1455,10 +1461,6 @@
|
|
|
1455
1461
|
border-bottom-style: var(--tw-border-style);
|
|
1456
1462
|
border-bottom-width: 1px;
|
|
1457
1463
|
}
|
|
1458
|
-
.border-b-2 {
|
|
1459
|
-
border-bottom-style: var(--tw-border-style);
|
|
1460
|
-
border-bottom-width: 2px;
|
|
1461
|
-
}
|
|
1462
1464
|
.border-l {
|
|
1463
1465
|
border-left-style: var(--tw-border-style);
|
|
1464
1466
|
border-left-width: 1px;
|
|
@@ -1577,9 +1579,6 @@
|
|
|
1577
1579
|
.py-0\.5 {
|
|
1578
1580
|
padding-block: calc(var(--spacing) * 0.5);
|
|
1579
1581
|
}
|
|
1580
|
-
.py-1 {
|
|
1581
|
-
padding-block: calc(var(--spacing) * 1);
|
|
1582
|
-
}
|
|
1583
1582
|
.py-1\.5 {
|
|
1584
1583
|
padding-block: calc(var(--spacing) * 1.5);
|
|
1585
1584
|
}
|
|
@@ -1616,12 +1615,12 @@
|
|
|
1616
1615
|
.pe-4 {
|
|
1617
1616
|
padding-inline-end: calc(var(--spacing) * 4);
|
|
1618
1617
|
}
|
|
1619
|
-
.pe-6 {
|
|
1620
|
-
padding-inline-end: calc(var(--spacing) * 6);
|
|
1621
|
-
}
|
|
1622
1618
|
.pt-0 {
|
|
1623
1619
|
padding-top: calc(var(--spacing) * 0);
|
|
1624
1620
|
}
|
|
1621
|
+
.pt-1 {
|
|
1622
|
+
padding-top: calc(var(--spacing) * 1);
|
|
1623
|
+
}
|
|
1625
1624
|
.pt-2 {
|
|
1626
1625
|
padding-top: calc(var(--spacing) * 2);
|
|
1627
1626
|
}
|
|
@@ -2225,21 +2224,11 @@
|
|
|
2225
2224
|
padding-block: calc(var(--spacing) * 1.5);
|
|
2226
2225
|
}
|
|
2227
2226
|
}
|
|
2228
|
-
.md\:py-3 {
|
|
2229
|
-
@media (width >= 48rem) {
|
|
2230
|
-
padding-block: calc(var(--spacing) * 3);
|
|
2231
|
-
}
|
|
2232
|
-
}
|
|
2233
2227
|
.md\:ps-\(--fd-layout-offset\) {
|
|
2234
2228
|
@media (width >= 48rem) {
|
|
2235
2229
|
padding-inline-start: var(--fd-layout-offset);
|
|
2236
2230
|
}
|
|
2237
2231
|
}
|
|
2238
|
-
.md\:ps-5 {
|
|
2239
|
-
@media (width >= 48rem) {
|
|
2240
|
-
padding-inline-start: calc(var(--spacing) * 5);
|
|
2241
|
-
}
|
|
2242
|
-
}
|
|
2243
2232
|
.md\:pt-4 {
|
|
2244
2233
|
@media (width >= 48rem) {
|
|
2245
2234
|
padding-top: calc(var(--spacing) * 4);
|
|
@@ -2250,6 +2239,11 @@
|
|
|
2250
2239
|
padding-top: calc(var(--spacing) * 12);
|
|
2251
2240
|
}
|
|
2252
2241
|
}
|
|
2242
|
+
.md\:text-\[15px\] {
|
|
2243
|
+
@media (width >= 48rem) {
|
|
2244
|
+
font-size: 15px;
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2253
2247
|
.md\:opacity-0 {
|
|
2254
2248
|
@media (width >= 48rem) {
|
|
2255
2249
|
opacity: 0%;
|
|
@@ -2292,11 +2286,6 @@
|
|
|
2292
2286
|
height: calc(var(--spacing) * 12);
|
|
2293
2287
|
}
|
|
2294
2288
|
}
|
|
2295
|
-
.lg\:h-26 {
|
|
2296
|
-
@media (width >= 64rem) {
|
|
2297
|
-
height: calc(var(--spacing) * 26);
|
|
2298
|
-
}
|
|
2299
|
-
}
|
|
2300
2289
|
.lg\:w-\[calc\(100\%-1rem\)\] {
|
|
2301
2290
|
@media (width >= 64rem) {
|
|
2302
2291
|
width: calc(100% - 1rem);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.10",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"@next/eslint-plugin-next": "^15.1.7",
|
|
75
75
|
"@tailwindcss/cli": "^4.0.6",
|
|
76
76
|
"@types/lodash.merge": "^4.6.9",
|
|
77
|
-
"@types/react": "^19.0.
|
|
78
|
-
"@types/react-dom": "^19.0.
|
|
77
|
+
"@types/react": "^19.0.10",
|
|
78
|
+
"@types/react-dom": "^19.0.4",
|
|
79
79
|
"next": "15.1.7",
|
|
80
80
|
"tailwindcss": "^4.0.6",
|
|
81
81
|
"tsc-alias": "^1.8.10",
|
|
82
82
|
"@fumadocs/cli": "0.0.8",
|
|
83
83
|
"eslint-config-custom": "0.0.0",
|
|
84
|
-
"fumadocs-core": "15.0.
|
|
84
|
+
"fumadocs-core": "15.0.10",
|
|
85
85
|
"tsconfig": "0.0.0"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"react": "18.x.x || 19.x.x",
|
|
90
90
|
"react-dom": "18.x.x || 19.x.x",
|
|
91
91
|
"tailwindcss": "^3.4.14 || ^4.0.0",
|
|
92
|
-
"fumadocs-core": "15.0.
|
|
92
|
+
"fumadocs-core": "15.0.10"
|
|
93
93
|
},
|
|
94
94
|
"peerDependenciesMeta": {
|
|
95
95
|
"tailwindcss": {
|