fumadocs-ui 15.2.4 → 15.2.6

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.
@@ -63,7 +63,7 @@ export function Sidebar({ defaultOpenLevel = 0, prefetch = true, inner, ...props
63
63
  level: 1,
64
64
  };
65
65
  }, [defaultOpenLevel, prefetch]);
66
- return (_jsx(Context.Provider, { value: context, children: _jsx(Base.SidebarList, { id: "nd-sidebar", removeScrollOn: "(min-width: 768px)" // md
66
+ return (_jsx(Context.Provider, { value: context, children: _jsx(Base.SidebarList, { id: "nd-sidebar", removeScrollOn: "(width < 768px)" // md
67
67
  , ...props, className: cn('fixed top-[calc(var(--fd-banner-height)+var(--fd-nav-height))] z-20 bg-fd-card text-sm md:sticky md:h-(--fd-sidebar-height)', 'max-md:inset-x-0 max-md:bottom-0 max-md:bg-fd-background/80 max-md:text-[15px] max-md:backdrop-blur-lg max-md:data-[open=false]:invisible', props.className), style: {
68
68
  ...props.style,
69
69
  '--fd-sidebar-height': 'calc(100dvh - var(--fd-banner-height) - var(--fd-nav-height))',
package/dist/mdx.js CHANGED
@@ -10,7 +10,7 @@ function Image(props) {
10
10
  return (_jsx(FrameworkImage, { sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px", ...props, className: cn('rounded-lg', props.className) }));
11
11
  }
12
12
  function Table(props) {
13
- return (_jsx("div", { className: "relative overflow-auto", children: _jsx("table", { ...props }) }));
13
+ return (_jsx("div", { className: "relative overflow-auto prose-no-margin my-6", children: _jsx("table", { ...props }) }));
14
14
  }
15
15
  const defaultMdxComponents = {
16
16
  pre: (props) => (_jsx(CodeBlock, { ...props, children: _jsx(Pre, { children: props.children }) })),
package/dist/page.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { type PageTree, type TableOfContents } from 'fumadocs-core/server';
1
+ import type { TableOfContents } from 'fumadocs-core/server';
2
2
  import { type AnchorHTMLAttributes, type HTMLAttributes, type ReactNode } from 'react';
3
- import type { LoaderConfig, LoaderOutput, Page } from 'fumadocs-core/source';
4
3
  import { type AnchorProviderProps } from 'fumadocs-core/toc';
5
4
  import { type FooterProps, type BreadcrumbProps } from './page-client.js';
6
5
  import { type TOCProps } from './components/layout/toc.js';
@@ -73,11 +72,6 @@ export declare function DocsPage({ toc, full, tableOfContentPopover: { enabled:
73
72
  export declare const DocsBody: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
74
73
  export declare const DocsDescription: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
75
74
  export declare const DocsTitle: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
76
- export declare function DocsCategory({ page, from, tree: forcedTree, ...props }: HTMLAttributes<HTMLDivElement> & {
77
- page: Page;
78
- from: LoaderOutput<LoaderConfig>;
79
- tree?: PageTree.Root;
80
- }): import("react/jsx-runtime").JSX.Element | null;
81
75
  /**
82
76
  * For separate MDX page
83
77
  */
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../src/page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,KAAK,mBAAmB,EAAkB,MAAM,mBAAmB,CAAC;AAI7E,OAAO,EAEL,KAAK,WAAW,EAIhB,KAAK,eAAe,EAGrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAKL,KAAK,QAAQ,EAEd,MAAM,yBAAyB,CAAC;AAMjC,KAAK,qBAAqB,GAAG,IA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C,CAAC;IAE9D;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAEhC,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAEpC,SAAS,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC3C,OAAO,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IACtC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,QAAQ,CAAC,EACvB,GAAQ,EACR,IAAY,EACZ,qBAAqB,EAAE,EACrB,OAAO,EAAE,iBAAiB,EAC1B,SAAS,EAAE,iBAAiB,EAC5B,GAAG,iBAAiB,EAChB,EACN,cAAc,EAAE,EACd,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,UAAU,EACrB,GAAG,UAAU,EACT,EACN,GAAG,KAAK,EACT,EAAE,aAAa,2CAkGf;AA+BD;;GAEG;AACH,eAAO,MAAM,QAAQ,2HAOnB,CAAC;AAIH,eAAO,MAAM,eAAe,uIAgB1B,CAAC;AAIH,eAAO,MAAM,SAAS,mIAapB,CAAC;AAIH;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAM5E"}
package/dist/page.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, } from 'react';
3
3
  import { AnchorProvider } from 'fumadocs-core/toc';
4
- import { Card, Cards } from './components/card.js';
5
4
  import { replaceOrDefault } from './layouts/shared.js';
6
5
  import { cn } from './utils/cn.js';
7
6
  import { Footer, LastUpdate, TocPopoverHeader, Breadcrumb, PageBody, PageArticle, } from './page-client.js';
@@ -53,51 +52,6 @@ export const DocsTitle = forwardRef((props, ref) => {
53
52
  return (_jsx("h1", { ref: ref, ...props, className: cn('text-3xl font-semibold', props.className), children: props.children }));
54
53
  });
55
54
  DocsTitle.displayName = 'DocsTitle';
56
- export function DocsCategory({ page, from, tree: forcedTree, ...props }) {
57
- let tree;
58
- if (forcedTree) {
59
- tree = forcedTree;
60
- }
61
- else if (from._i18n) {
62
- const locale = page.locale ?? from._i18n.defaultLanguage;
63
- tree = from.pageTree[locale];
64
- }
65
- else {
66
- tree = from.pageTree;
67
- }
68
- function findParentFromTree(node, page) {
69
- if ('index' in node && node.index?.$ref?.file === page.file.path) {
70
- return node;
71
- }
72
- for (const child of node.children) {
73
- if (child.type === 'folder') {
74
- const parent = findParentFromTree(child, page);
75
- if (parent)
76
- return parent;
77
- }
78
- if (child.type === 'page' && child.$ref?.file === page.file.path) {
79
- return node;
80
- }
81
- }
82
- }
83
- let items;
84
- const parent = findParentFromTree(tree, page);
85
- if (parent) {
86
- items = parent.children.flatMap((item) => {
87
- if (item.type !== 'page' || item.url === page.url)
88
- return [];
89
- return from.getNodePage(item) ?? [];
90
- });
91
- }
92
- else {
93
- const pages = from.getPages(page.locale);
94
- items = pages.filter((item) => item.file.dirname === page.file.dirname &&
95
- item.file.path !== page.file.path);
96
- }
97
- if (items.length === 0)
98
- return null;
99
- return (_jsx(Cards, { ...props, children: items.map((item) => (_jsx(Card, { title: item.data.title, description: item.data.description, href: item.url }, item.url))) }));
100
- }
101
55
  /**
102
56
  * For separate MDX page
103
57
  */
@@ -0,0 +1,13 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import type { LoaderConfig, LoaderOutput, Page } from 'fumadocs-core/source';
3
+ import { type PageTree } from 'fumadocs-core/server';
4
+ /**
5
+ * @deprecated use https://fumadocs.vercel.app/docs/ui/markdown#further-reading-section instead
6
+ */
7
+ export declare function DocsCategory({ page, from, tree: forcedTree, ...props }: HTMLAttributes<HTMLDivElement> & {
8
+ page: Page;
9
+ from: LoaderOutput<LoaderConfig>;
10
+ tree?: PageTree.Root;
11
+ }): import("react/jsx-runtime").JSX.Element | null;
12
+ export * from './page.js';
13
+ //# sourceMappingURL=page.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page.server.d.ts","sourceRoot":"","sources":["../src/page.server.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAoB,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGvE;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,IAAI,EACJ,IAAI,EAAE,UAAU,EAChB,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG;IAClC,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC;CACtB,kDA+CA;AAED,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { getPageTreePeers } from 'fumadocs-core/server';
3
+ import { Card, Cards } from './components/card.js';
4
+ /**
5
+ * @deprecated use https://fumadocs.vercel.app/docs/ui/markdown#further-reading-section instead
6
+ */
7
+ export function DocsCategory({ page, from, tree: forcedTree, ...props }) {
8
+ let tree;
9
+ if (forcedTree) {
10
+ tree = forcedTree;
11
+ }
12
+ else if (from._i18n) {
13
+ const locale = page.locale ?? from._i18n.defaultLanguage;
14
+ tree = from.pageTree[locale];
15
+ }
16
+ else {
17
+ tree = from.pageTree;
18
+ }
19
+ let items = getPageTreePeers(tree, page.url);
20
+ if (items.length === 0) {
21
+ const pages = from.getPages(page.locale);
22
+ items = pages
23
+ .filter((item) => item.file.dirname === page.file.dirname &&
24
+ item.file.path !== page.file.path)
25
+ .map((page) => ({
26
+ type: 'page',
27
+ name: page.data.title,
28
+ description: page.data.description,
29
+ url: page.url,
30
+ }));
31
+ }
32
+ if (items.length === 0)
33
+ return null;
34
+ return (_jsx(Cards, { ...props, children: items.map((item) => (_jsx(Card, { title: item.name, description: item.description, href: item.url }, item.url))) }));
35
+ }
36
+ export * from './page.js';
@@ -11,13 +11,13 @@ import { usePathname, useRouter } from 'fumadocs-core/framework';
11
11
  const DefaultSearchDialog = lazy(() => import('../components/dialog/search-default.js'));
12
12
  export function RootProvider({ children, dir = 'ltr', theme = {}, search, i18n, }) {
13
13
  let body = children;
14
- if (i18n) {
15
- body = _jsx(I18nProvider, { ...i18n, children: body });
16
- }
17
14
  if (search?.enabled !== false)
18
15
  body = (_jsx(SearchProvider, { SearchDialog: DefaultSearchDialog, ...search, children: body }));
19
16
  if (theme?.enabled !== false)
20
17
  body = (_jsx(ThemeProvider, { attribute: "class", defaultTheme: "system", enableSystem: true, disableTransitionOnChange: true, ...theme, children: body }));
18
+ if (i18n) {
19
+ body = _jsx(I18nProvider, { ...i18n, children: body });
20
+ }
21
21
  return (_jsx(DirectionProvider, { dir: dir, children: _jsx(SidebarProvider, { children: body }) }));
22
22
  }
23
23
  function I18nProvider({ locales = [], locale, onLocaleChange, ...props }) {
package/dist/style.css CHANGED
@@ -1,64 +1,6 @@
1
- /*! tailwindcss v4.1.1 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
2
3
  @layer theme, base, components, utilities;
3
- @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
4
- @layer base {
5
- *, ::before, ::after, ::backdrop {
6
- --tw-translate-x: 0;
7
- --tw-translate-y: 0;
8
- --tw-translate-z: 0;
9
- --tw-scale-x: 1;
10
- --tw-scale-y: 1;
11
- --tw-scale-z: 1;
12
- --tw-rotate-x: rotateX(0);
13
- --tw-rotate-y: rotateY(0);
14
- --tw-rotate-z: rotateZ(0);
15
- --tw-skew-x: skewX(0);
16
- --tw-skew-y: skewY(0);
17
- --tw-divide-y-reverse: 0;
18
- --tw-border-style: solid;
19
- --tw-font-weight: initial;
20
- --tw-shadow: 0 0 #0000;
21
- --tw-shadow-color: initial;
22
- --tw-shadow-alpha: 100%;
23
- --tw-inset-shadow: 0 0 #0000;
24
- --tw-inset-shadow-color: initial;
25
- --tw-inset-shadow-alpha: 100%;
26
- --tw-ring-color: initial;
27
- --tw-ring-shadow: 0 0 #0000;
28
- --tw-inset-ring-color: initial;
29
- --tw-inset-ring-shadow: 0 0 #0000;
30
- --tw-ring-inset: initial;
31
- --tw-ring-offset-width: 0px;
32
- --tw-ring-offset-color: #fff;
33
- --tw-ring-offset-shadow: 0 0 #0000;
34
- --tw-outline-style: solid;
35
- --tw-blur: initial;
36
- --tw-brightness: initial;
37
- --tw-contrast: initial;
38
- --tw-grayscale: initial;
39
- --tw-hue-rotate: initial;
40
- --tw-invert: initial;
41
- --tw-opacity: initial;
42
- --tw-saturate: initial;
43
- --tw-sepia: initial;
44
- --tw-drop-shadow: initial;
45
- --tw-drop-shadow-color: initial;
46
- --tw-drop-shadow-alpha: 100%;
47
- --tw-drop-shadow-size: initial;
48
- --tw-backdrop-blur: initial;
49
- --tw-backdrop-brightness: initial;
50
- --tw-backdrop-contrast: initial;
51
- --tw-backdrop-grayscale: initial;
52
- --tw-backdrop-hue-rotate: initial;
53
- --tw-backdrop-invert: initial;
54
- --tw-backdrop-opacity: initial;
55
- --tw-backdrop-saturate: initial;
56
- --tw-backdrop-sepia: initial;
57
- --tw-duration: initial;
58
- --radix-collapsible-content-height: 0px;
59
- }
60
- }
61
- }
62
4
  @layer theme {
63
5
  :root, :host {
64
6
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
@@ -247,7 +189,10 @@
247
189
  }
248
190
  @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
249
191
  ::placeholder {
250
- color: color-mix(in oklab, currentColor 50%, transparent);
192
+ color: currentcolor;
193
+ @supports (color: color-mix(in lab, red, red)) {
194
+ color: color-mix(in oklab, currentcolor 50%, transparent);
195
+ }
251
196
  }
252
197
  }
253
198
  textarea {
@@ -2837,3 +2782,62 @@
2837
2782
  height: 0px;
2838
2783
  }
2839
2784
  }
2785
+ @layer properties {
2786
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
2787
+ *, ::before, ::after, ::backdrop {
2788
+ --tw-translate-x: 0;
2789
+ --tw-translate-y: 0;
2790
+ --tw-translate-z: 0;
2791
+ --tw-scale-x: 1;
2792
+ --tw-scale-y: 1;
2793
+ --tw-scale-z: 1;
2794
+ --tw-rotate-x: rotateX(0);
2795
+ --tw-rotate-y: rotateY(0);
2796
+ --tw-rotate-z: rotateZ(0);
2797
+ --tw-skew-x: skewX(0);
2798
+ --tw-skew-y: skewY(0);
2799
+ --tw-divide-y-reverse: 0;
2800
+ --tw-border-style: solid;
2801
+ --tw-font-weight: initial;
2802
+ --tw-shadow: 0 0 #0000;
2803
+ --tw-shadow-color: initial;
2804
+ --tw-shadow-alpha: 100%;
2805
+ --tw-inset-shadow: 0 0 #0000;
2806
+ --tw-inset-shadow-color: initial;
2807
+ --tw-inset-shadow-alpha: 100%;
2808
+ --tw-ring-color: initial;
2809
+ --tw-ring-shadow: 0 0 #0000;
2810
+ --tw-inset-ring-color: initial;
2811
+ --tw-inset-ring-shadow: 0 0 #0000;
2812
+ --tw-ring-inset: initial;
2813
+ --tw-ring-offset-width: 0px;
2814
+ --tw-ring-offset-color: #fff;
2815
+ --tw-ring-offset-shadow: 0 0 #0000;
2816
+ --tw-outline-style: solid;
2817
+ --tw-blur: initial;
2818
+ --tw-brightness: initial;
2819
+ --tw-contrast: initial;
2820
+ --tw-grayscale: initial;
2821
+ --tw-hue-rotate: initial;
2822
+ --tw-invert: initial;
2823
+ --tw-opacity: initial;
2824
+ --tw-saturate: initial;
2825
+ --tw-sepia: initial;
2826
+ --tw-drop-shadow: initial;
2827
+ --tw-drop-shadow-color: initial;
2828
+ --tw-drop-shadow-alpha: 100%;
2829
+ --tw-drop-shadow-size: initial;
2830
+ --tw-backdrop-blur: initial;
2831
+ --tw-backdrop-brightness: initial;
2832
+ --tw-backdrop-contrast: initial;
2833
+ --tw-backdrop-grayscale: initial;
2834
+ --tw-backdrop-hue-rotate: initial;
2835
+ --tw-backdrop-invert: initial;
2836
+ --tw-backdrop-opacity: initial;
2837
+ --tw-backdrop-saturate: initial;
2838
+ --tw-backdrop-sepia: initial;
2839
+ --tw-duration: initial;
2840
+ --radix-collapsible-content-height: 0px;
2841
+ }
2842
+ }
2843
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-ui",
3
- "version": "15.2.4",
3
+ "version": "15.2.6",
4
4
  "description": "The framework for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -29,8 +29,9 @@
29
29
  "types": "./dist/layouts/*.d.ts"
30
30
  },
31
31
  "./page": {
32
+ "node": "./dist/page.server.js",
32
33
  "import": "./dist/page.js",
33
- "types": "./dist/page.d.ts"
34
+ "types": "./dist/page.server.d.ts"
34
35
  },
35
36
  "./provider": {
36
37
  "import": "./dist/provider/index.js",
@@ -82,21 +83,21 @@
82
83
  "next-themes": "^0.4.6",
83
84
  "postcss-selector-parser": "^7.1.0",
84
85
  "react-medium-image-zoom": "^5.2.14",
85
- "tailwind-merge": "^3.1.0",
86
- "fumadocs-core": "15.2.4"
86
+ "tailwind-merge": "^3.2.0",
87
+ "fumadocs-core": "15.2.6"
87
88
  },
88
89
  "devDependencies": {
89
90
  "@next/eslint-plugin-next": "^15.2.4",
90
- "@tailwindcss/cli": "^4.1.1",
91
+ "@tailwindcss/cli": "^4.1.3",
91
92
  "@types/lodash.merge": "^4.6.9",
92
93
  "@types/react": "^19.1.0",
93
94
  "@types/react-dom": "^19.1.1",
94
95
  "next": "15.2.4",
95
- "tailwindcss": "^4.1.1",
96
+ "tailwindcss": "^4.1.3",
96
97
  "tsc-alias": "^1.8.13",
97
98
  "@fumadocs/cli": "0.1.1",
98
99
  "eslint-config-custom": "0.0.0",
99
- "fumadocs-core": "15.2.4",
100
+ "fumadocs-core": "15.2.6",
100
101
  "tsconfig": "0.0.0"
101
102
  },
102
103
  "peerDependencies": {
@@ -1,4 +0,0 @@
1
- export * from '../utils/cn.js';
2
- export * from '../components/ui/button.js';
3
- export { useCopyButton } from '../utils/use-copy-button.js';
4
- //# sourceMappingURL=api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/components/api.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from '../utils/cn.js';
2
- export * from '../components/ui/button.js';
3
- export { useCopyButton } from '../utils/use-copy-button.js';