fumadocs-ui 15.1.2 → 15.1.3

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.
@@ -6,5 +6,5 @@ export function Cards(props) {
6
6
  }
7
7
  export function Card({ icon, title, description, ...props }) {
8
8
  const E = props.href ? Link : 'div';
9
- return (_jsxs(E, { ...props, "data-card": true, className: cn('block rounded-lg border bg-fd-card p-4 text-fd-card-foreground shadow-md transition-colors @max-lg:col-span-full', props.href && 'hover:bg-fd-accent/80', props.className), children: [icon ? (_jsx("div", { className: "not-prose mb-2 w-fit rounded-md border bg-fd-muted p-1.5 text-fd-muted-foreground [&_svg]:size-4", children: icon })) : null, _jsx("h3", { className: "not-prose mb-1 text-sm font-medium", children: title }), description ? (_jsx("p", { className: "my-0 text-sm text-fd-muted-foreground", children: description })) : null, props.children ? (_jsx("div", { className: "text-sm text-fd-muted-foreground prose-no-margin", children: props.children })) : null] }));
9
+ return (_jsxs(E, { ...props, "data-card": true, className: cn('block rounded-lg border bg-fd-card p-4 text-fd-card-foreground shadow-md transition-colors @max-lg:col-span-full', props.href && 'hover:bg-fd-accent/80', props.className), children: [icon ? (_jsx("div", { className: "not-prose mb-2 w-fit rounded-md border bg-fd-muted p-1.5 text-fd-muted-foreground [&_svg]:size-4", children: icon })) : null, _jsx("h3", { className: "not-prose mb-1 text-sm font-medium", children: title }), description ? (_jsx("p", { className: "!my-0 text-sm text-fd-muted-foreground", children: description })) : null, props.children ? (_jsx("div", { className: "text-sm text-fd-muted-foreground prose-no-margin", children: props.children })) : null] }));
10
10
  }
@@ -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.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
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: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
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/layout/sidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,oBAAoB,EAGzB,KAAK,cAAc,EACnB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AACf,OAAa,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAU1D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAGnE,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC/D;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;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B,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,2CAgBA;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,uBAAuB,2CAqBlE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,2CAmCjD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,uBAAuB,2CAmBlE;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,2CAiB/C;AAgBD;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACzC,2CAwDA"}
@@ -50,8 +50,9 @@ export function CollapsibleSidebar(props) {
50
50
  ? 0
51
51
  : 500);
52
52
  }, "data-collapsed": collapsed, className: cn('md:transition-all', collapsed &&
53
- 'md:-me-(--fd-sidebar-width) md:translate-x-[calc(var(--fd-sidebar-offset)*-1)] rtl:md:translate-x-(--fd-sidebar-offset)', collapsed && hover && 'z-50 md:translate-x-0', collapsed && !hover && 'md:opacity-0', props.className), style: {
54
- '--fd-sidebar-offset': 'calc(var(--fd-sidebar-width) - 20px)',
53
+ 'md:-me-(--fd-sidebar-width) md:-translate-x-(--fd-sidebar-offset) rtl:md:translate-x-(--fd-sidebar-offset)', collapsed && hover && 'z-50 md:translate-x-0', collapsed && !hover && 'md:opacity-0', props.className), style: {
54
+ '--fd-sidebar-offset': 'calc(var(--fd-sidebar-width) - 6px)',
55
+ ...props.style,
55
56
  } }));
56
57
  }
57
58
  export function Sidebar({ defaultOpenLevel = 0, prefetch = true, inner, ...props }) {
@@ -51,14 +51,14 @@ function getSidebarTabs(pageTree, { transform = defaultTransform } = {}) {
51
51
  function findOptions(node) {
52
52
  const results = [];
53
53
  if (node.root) {
54
- const index = node.index ?? node.children.at(0);
55
- if (index?.type === 'page') {
54
+ const urls = getFolderUrls(node);
55
+ if (urls.size > 0) {
56
56
  const option = {
57
- url: index.url,
57
+ url: urls.values().next().value ?? '',
58
58
  title: node.name,
59
59
  icon: node.icon,
60
60
  description: node.description,
61
- urls: getFolderUrls(node, new Set()),
61
+ urls,
62
62
  };
63
63
  const mapped = transform ? transform(option, node) : option;
64
64
  if (mapped)
@@ -73,11 +73,11 @@ function getSidebarTabs(pageTree, { transform = defaultTransform } = {}) {
73
73
  }
74
74
  return findOptions(pageTree);
75
75
  }
76
- function getFolderUrls(folder, output) {
76
+ function getFolderUrls(folder, output = new Set()) {
77
77
  if (folder.index)
78
78
  output.add(folder.index.url);
79
79
  for (const child of folder.children) {
80
- if (child.type === 'page')
80
+ if (child.type === 'page' && !child.external)
81
81
  output.add(child.url);
82
82
  if (child.type === 'folder')
83
83
  getFolderUrls(child, output);
@@ -1,6 +1,8 @@
1
1
  import { type ButtonHTMLAttributes, type HTMLAttributes } from 'react';
2
2
  import type { Option } from '../components/layout/root-toggle.js';
3
- export declare function Navbar(props: HTMLAttributes<HTMLElement>): import("react/jsx-runtime").JSX.Element;
3
+ export declare function Navbar({ mode, ...props }: HTMLAttributes<HTMLElement> & {
4
+ mode: 'top' | 'auto';
5
+ }): import("react/jsx-runtime").JSX.Element;
4
6
  export declare function NavbarSidebarTrigger(props: ButtonHTMLAttributes<HTMLButtonElement>): import("react/jsx-runtime").JSX.Element;
5
7
  export declare function LayoutTabs(props: HTMLAttributes<HTMLElement>): import("react/jsx-runtime").JSX.Element;
6
8
  export declare function LayoutTab(item: Option): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"notebook.client.d.ts","sourceRoot":"","sources":["../../src/layouts/notebook.client.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AASvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAE9D,wBAAgB,MAAM,CAAC,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,2CAyBxD;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,2CAkB/C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,2CAY5D;AAUD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,2CAkBrC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,GAAG,KAAK,EACT,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAAC,WAAW,CAAC,2CAoBhD"}
1
+ {"version":3,"file":"notebook.client.d.ts","sourceRoot":"","sources":["../../src/layouts/notebook.client.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AASvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAE9D,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,WAAW,CAAC,GAAG;IAAE,IAAI,EAAE,KAAK,GAAG,MAAM,CAAA;CAAE,2CAoBxD;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,2CAkB/C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,2CAY5D;AAUD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,2CAkBrC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,GAAG,KAAK,EACT,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAAC,WAAW,CAAC,2CAoBhD"}
@@ -9,15 +9,12 @@ import { Menu, X } from 'lucide-react';
9
9
  import Link from 'fumadocs-core/link';
10
10
  import { usePathname } from 'next/navigation';
11
11
  import { isActive } from '../utils/is-active.js';
12
- export function Navbar(props) {
12
+ export function Navbar({ mode, ...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 pe-(--fd-layout-offset) backdrop-blur-lg transition-colors', (!isTransparent || open) && 'bg-fd-background/80', props.className), style: {
16
- paddingInlineStart: collapsed
17
- ? 'var(--fd-layout-offset)'
18
- : 'calc(var(--fd-layout-offset) + var(--fd-sidebar-width))',
19
- ...props.style,
20
- }, children: props.children }));
15
+ return (_jsx("header", { id: "nd-subnav", ...props, className: cn('fixed inset-x-0 top-(--fd-banner-height) z-10 px-(--fd-layout-offset) backdrop-blur-lg transition-colors', (!isTransparent || open) && 'bg-fd-background/80', mode === 'auto' &&
16
+ !collapsed &&
17
+ 'ps-[calc(var(--fd-layout-offset)+var(--fd-sidebar-width))]', props.className), children: props.children }));
21
18
  }
22
19
  export function NavbarSidebarTrigger(props) {
23
20
  const { open } = useSidebar();
@@ -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,EACL,KAAK,eAAe,EAGrB,MAAM,kBAAkB,CAAC;AA2B1B,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAGL,MAAM,EACN,oBAAoB,EAErB,MAAM,mBAAmB,CAAC;AAQ3B,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,CAA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AAC,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,WAAW,EACX,GAAG,KAAK,EACT,EAAE,eAAe,2CAkIjB;AA4KD,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,CAAC"}
@@ -43,11 +43,7 @@ export function DocsLayout({ tabMode = 'sidebar', nav: { transparentMode, ...nav
43
43
  }
44
44
  function DocsNavbar({ sidebarCollapsible, links, nav = {}, i18n, tabs, }) {
45
45
  const navMode = nav.mode ?? 'auto';
46
- return (_jsxs(Navbar, { style: navMode === 'top'
47
- ? {
48
- paddingInlineStart: 'var(--fd-layout-offset)',
49
- }
50
- : 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({
46
+ return (_jsxs(Navbar, { mode: navMode, 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({
51
47
  color: 'ghost',
52
48
  size: 'icon-sm',
53
49
  }), 'text-fd-muted-foreground -ms-1.5 me-2 data-[collapsed=false]:hidden max-md:hidden'), children: _jsx(SidebarIcon, {}) })) : null, _jsx(Link, { href: nav.url ?? '/', className: cn('inline-flex items-center gap-2.5 font-semibold', navMode === 'auto' && 'md:hidden'), children: nav.title })] }), _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
package/dist/style.css CHANGED
@@ -378,6 +378,9 @@
378
378
  .mx-4 {
379
379
  margin-inline: calc(var(--spacing) * 4);
380
380
  }
381
+ .\!my-0 {
382
+ margin-block: calc(var(--spacing) * 0) !important;
383
+ }
381
384
  .my-0 {
382
385
  margin-block: calc(var(--spacing) * 0);
383
386
  }
@@ -1251,6 +1254,9 @@
1251
1254
  .p-4 {
1252
1255
  padding: calc(var(--spacing) * 4);
1253
1256
  }
1257
+ .px-\(--fd-layout-offset\) {
1258
+ padding-inline: var(--fd-layout-offset);
1259
+ }
1254
1260
  .px-1\.5 {
1255
1261
  padding-inline: calc(var(--spacing) * 1.5);
1256
1262
  }
@@ -1296,6 +1302,9 @@
1296
1302
  .ps-8 {
1297
1303
  padding-inline-start: calc(var(--spacing) * 8);
1298
1304
  }
1305
+ .ps-\[calc\(var\(--fd-layout-offset\)\+var\(--fd-sidebar-width\)\)\] {
1306
+ padding-inline-start: calc(var(--fd-layout-offset) + var(--fd-sidebar-width));
1307
+ }
1299
1308
  .ps-px {
1300
1309
  padding-inline-start: 1px;
1301
1310
  }
@@ -1875,15 +1884,15 @@
1875
1884
  width: var(--fd-sidebar-width);
1876
1885
  }
1877
1886
  }
1878
- .md\:translate-x-0 {
1887
+ .md\:-translate-x-\(--fd-sidebar-offset\) {
1879
1888
  @media (width >= 48rem) {
1880
- --tw-translate-x: calc(var(--spacing) * 0);
1889
+ --tw-translate-x: calc(var(--fd-sidebar-offset) * -1);
1881
1890
  translate: var(--tw-translate-x) var(--tw-translate-y);
1882
1891
  }
1883
1892
  }
1884
- .md\:translate-x-\[calc\(var\(--fd-sidebar-offset\)\*-1\)\] {
1893
+ .md\:translate-x-0 {
1885
1894
  @media (width >= 48rem) {
1886
- --tw-translate-x: calc(var(--fd-sidebar-offset) * -1);
1895
+ --tw-translate-x: calc(var(--spacing) * 0);
1887
1896
  translate: var(--tw-translate-x) var(--tw-translate-y);
1888
1897
  }
1889
1898
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-ui",
3
- "version": "15.1.2",
3
+ "version": "15.1.3",
4
4
  "description": "The framework for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -81,9 +81,9 @@
81
81
  "next": "15.2.3",
82
82
  "tailwindcss": "^4.0.15",
83
83
  "tsc-alias": "^1.8.11",
84
- "fumadocs-core": "15.1.2",
85
- "eslint-config-custom": "0.0.0",
86
84
  "@fumadocs/cli": "0.0.8",
85
+ "eslint-config-custom": "0.0.0",
86
+ "fumadocs-core": "15.1.3",
87
87
  "tsconfig": "0.0.0"
88
88
  },
89
89
  "peerDependencies": {
@@ -91,7 +91,7 @@
91
91
  "react": "18.x.x || 19.x.x",
92
92
  "react-dom": "18.x.x || 19.x.x",
93
93
  "tailwindcss": "^3.4.14 || ^4.0.0",
94
- "fumadocs-core": "15.1.2"
94
+ "fumadocs-core": "15.1.3"
95
95
  },
96
96
  "peerDependenciesMeta": {
97
97
  "tailwindcss": {