fumadocs-ui 15.2.7 → 15.2.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/preset.css +1 -0
- package/css/style.css +0 -4
- package/dist/components/layout/toc.js +3 -3
- package/dist/components/ui/button.js +1 -1
- package/dist/mdx.d.ts.map +1 -1
- package/dist/mdx.js +1 -1
- package/dist/style.css +13 -16
- package/dist/theme/typography/styles.d.ts.map +1 -1
- package/dist/theme/typography/styles.js +2 -1
- package/package.json +9 -9
package/css/preset.css
CHANGED
package/css/style.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as Primitive from 'fumadocs-core/toc';
|
|
4
4
|
import { useRef, } from 'react';
|
|
5
5
|
import { cn } from '../../utils/cn.js';
|
|
@@ -20,14 +20,14 @@ export function TocItemsEmpty() {
|
|
|
20
20
|
}
|
|
21
21
|
export function TOCScrollArea({ isMenu, ...props }) {
|
|
22
22
|
const viewRef = useRef(null);
|
|
23
|
-
return (_jsx(ScrollArea, { ...props, className: cn('flex flex-col ps-px', props.className), children: _jsx(ScrollViewport, { ref: viewRef, className: cn('min-h-0 text-sm', isMenu &&
|
|
23
|
+
return (_jsx(ScrollArea, { ...props, className: cn('flex flex-col ps-px', props.className), children: _jsx(ScrollViewport, { ref: viewRef, className: cn('relative min-h-0 text-sm', isMenu &&
|
|
24
24
|
'[mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] px-4 md:px-6 py-2'), children: _jsx(Primitive.ScrollProvider, { containerRef: viewRef, children: props.children }) }) }));
|
|
25
25
|
}
|
|
26
26
|
export function TOCItems({ items }) {
|
|
27
27
|
const containerRef = useRef(null);
|
|
28
28
|
if (items.length === 0)
|
|
29
29
|
return _jsx(TocItemsEmpty, {});
|
|
30
|
-
return (_jsxs(
|
|
30
|
+
return (_jsxs(_Fragment, { children: [_jsx(TocThumb, { containerRef: containerRef, className: "absolute top-(--fd-top) h-(--fd-height) w-px bg-fd-primary transition-all" }), _jsx("div", { ref: containerRef, className: "flex flex-col border-s border-fd-foreground/10", children: items.map((item) => (_jsx(TOCItem, { item: item }, item.url))) })] }));
|
|
31
31
|
}
|
|
32
32
|
function TOCItem({ item }) {
|
|
33
33
|
return (_jsx(Primitive.TOCItem, { href: item.url, className: cn('prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary', item.depth <= 2 && 'ps-3', item.depth === 3 && 'ps-6', item.depth >= 4 && 'ps-8'), children: item.title }));
|
|
@@ -8,7 +8,7 @@ export const buttonVariants = cva('inline-flex items-center justify-center round
|
|
|
8
8
|
secondary: 'border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground',
|
|
9
9
|
},
|
|
10
10
|
size: {
|
|
11
|
-
sm: 'gap-1 p-
|
|
11
|
+
sm: 'gap-1 p-1 text-xs',
|
|
12
12
|
icon: 'p-1.5 [&_svg]:size-5',
|
|
13
13
|
'icon-sm': 'p-1.5 [&_svg]:size-4.5',
|
|
14
14
|
},
|
package/dist/mdx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,EAAE,EACF,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAMhD,iBAAS,KAAK,CACZ,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,GAAG;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,
|
|
1
|
+
{"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,EAAE,EACF,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAMhD,iBAAS,KAAK,CACZ,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,GAAG;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,2CAUF;AAED,iBAAS,KAAK,CAAC,KAAK,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,2CAM1D;AAED,QAAA,MAAM,oBAAoB;iBACX,cAAc,CAAC,cAAc,CAAC;;;OAOhC,EAAE,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;;gBAE1C,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;;;;;;;CAK/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cAAc,cAAc,EAAE,kBAK5D,CAAC;AAEJ,OAAO,EAAE,oBAAoB,IAAI,OAAO,EAAE,CAAC"}
|
package/dist/mdx.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Heading } from './components/heading.js';
|
|
|
7
7
|
import { cn } from './utils/cn.js';
|
|
8
8
|
import { CodeBlock, Pre } from './components/codeblock.js';
|
|
9
9
|
function Image(props) {
|
|
10
|
-
return (_jsx(FrameworkImage, { sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px", ...props, className: cn('rounded-lg', props.className) }));
|
|
10
|
+
return (_jsx(FrameworkImage, { sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px", ...props, src: props.src, className: cn('rounded-lg', props.className) }));
|
|
11
11
|
}
|
|
12
12
|
function Table(props) {
|
|
13
13
|
return (_jsx("div", { className: "relative overflow-auto prose-no-margin my-6", children: _jsx("table", { ...props }) }));
|
package/dist/style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.
|
|
1
|
+
/*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer theme {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
--text-base--line-height: calc(1.5 / 1);
|
|
23
23
|
--text-lg: 1.125rem;
|
|
24
24
|
--text-lg--line-height: calc(1.75 / 1.125);
|
|
25
|
+
--text-2xl: 1.5rem;
|
|
25
26
|
--text-3xl: 1.875rem;
|
|
26
27
|
--text-3xl--line-height: calc(2.25 / 1.875);
|
|
27
28
|
--font-weight-medium: 500;
|
|
@@ -307,6 +308,9 @@
|
|
|
307
308
|
.top-\(--fd-nav-height\) {
|
|
308
309
|
top: var(--fd-nav-height);
|
|
309
310
|
}
|
|
311
|
+
.top-\(--fd-top\) {
|
|
312
|
+
top: var(--fd-top);
|
|
313
|
+
}
|
|
310
314
|
.top-0 {
|
|
311
315
|
top: calc(var(--spacing) * 0);
|
|
312
316
|
}
|
|
@@ -578,7 +582,7 @@
|
|
|
578
582
|
:where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
|
|
579
583
|
color: var(--tw-prose-headings);
|
|
580
584
|
font-weight: 800;
|
|
581
|
-
font-size:
|
|
585
|
+
font-size: var(--text-3xl);
|
|
582
586
|
margin-top: 0;
|
|
583
587
|
margin-bottom: 0.8888889em;
|
|
584
588
|
line-height: 1.1111111;
|
|
@@ -678,6 +682,7 @@
|
|
|
678
682
|
}
|
|
679
683
|
:where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
|
|
680
684
|
color: inherit;
|
|
685
|
+
font-size: var(--text-2xl);
|
|
681
686
|
}
|
|
682
687
|
:where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
|
|
683
688
|
color: inherit;
|
|
@@ -1045,7 +1050,7 @@
|
|
|
1045
1050
|
rotate: 180deg;
|
|
1046
1051
|
}
|
|
1047
1052
|
.transform {
|
|
1048
|
-
transform: var(--tw-rotate-x) var(--tw-rotate-y) var(--tw-rotate-z) var(--tw-skew-x) var(--tw-skew-y);
|
|
1053
|
+
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
|
|
1049
1054
|
}
|
|
1050
1055
|
.animate-fd-fade-in {
|
|
1051
1056
|
animation: var(--animate-fd-fade-in);
|
|
@@ -2405,9 +2410,6 @@
|
|
|
2405
2410
|
min-height: 100vh;
|
|
2406
2411
|
flex-direction: column;
|
|
2407
2412
|
}
|
|
2408
|
-
button {
|
|
2409
|
-
cursor: pointer;
|
|
2410
|
-
}
|
|
2411
2413
|
}
|
|
2412
2414
|
@property --tw-translate-x {
|
|
2413
2415
|
syntax: "*";
|
|
@@ -2442,27 +2444,22 @@
|
|
|
2442
2444
|
@property --tw-rotate-x {
|
|
2443
2445
|
syntax: "*";
|
|
2444
2446
|
inherits: false;
|
|
2445
|
-
initial-value: rotateX(0);
|
|
2446
2447
|
}
|
|
2447
2448
|
@property --tw-rotate-y {
|
|
2448
2449
|
syntax: "*";
|
|
2449
2450
|
inherits: false;
|
|
2450
|
-
initial-value: rotateY(0);
|
|
2451
2451
|
}
|
|
2452
2452
|
@property --tw-rotate-z {
|
|
2453
2453
|
syntax: "*";
|
|
2454
2454
|
inherits: false;
|
|
2455
|
-
initial-value: rotateZ(0);
|
|
2456
2455
|
}
|
|
2457
2456
|
@property --tw-skew-x {
|
|
2458
2457
|
syntax: "*";
|
|
2459
2458
|
inherits: false;
|
|
2460
|
-
initial-value: skewX(0);
|
|
2461
2459
|
}
|
|
2462
2460
|
@property --tw-skew-y {
|
|
2463
2461
|
syntax: "*";
|
|
2464
2462
|
inherits: false;
|
|
2465
|
-
initial-value: skewY(0);
|
|
2466
2463
|
}
|
|
2467
2464
|
@property --tw-divide-y-reverse {
|
|
2468
2465
|
syntax: "*";
|
|
@@ -2805,11 +2802,11 @@
|
|
|
2805
2802
|
--tw-scale-x: 1;
|
|
2806
2803
|
--tw-scale-y: 1;
|
|
2807
2804
|
--tw-scale-z: 1;
|
|
2808
|
-
--tw-rotate-x:
|
|
2809
|
-
--tw-rotate-y:
|
|
2810
|
-
--tw-rotate-z:
|
|
2811
|
-
--tw-skew-x:
|
|
2812
|
-
--tw-skew-y:
|
|
2805
|
+
--tw-rotate-x: initial;
|
|
2806
|
+
--tw-rotate-y: initial;
|
|
2807
|
+
--tw-rotate-z: initial;
|
|
2808
|
+
--tw-skew-x: initial;
|
|
2809
|
+
--tw-skew-y: initial;
|
|
2813
2810
|
--tw-divide-y-reverse: 0;
|
|
2814
2811
|
--tw-border-style: solid;
|
|
2815
2812
|
--tw-font-weight: initial;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/theme/typography/styles.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDvB,CAAC;AAEF,MAAM,WAAW,MAAM;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;CACzD;AAED,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/theme/typography/styles.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDvB,CAAC;AAEF,MAAM,WAAW,MAAM;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;CACzD;AAED,eAAO,MAAM,OAAO,EAAE,MA+TrB,CAAC"}
|
|
@@ -262,7 +262,7 @@ export const DEFAULT = {
|
|
|
262
262
|
h1: {
|
|
263
263
|
color: 'var(--tw-prose-headings)',
|
|
264
264
|
fontWeight: '800',
|
|
265
|
-
fontSize:
|
|
265
|
+
fontSize: 'var(--text-3xl)',
|
|
266
266
|
marginTop: '0',
|
|
267
267
|
marginBottom: em(32, 36),
|
|
268
268
|
lineHeight: round(40 / 36),
|
|
@@ -362,6 +362,7 @@ export const DEFAULT = {
|
|
|
362
362
|
},
|
|
363
363
|
'h1 code': {
|
|
364
364
|
color: 'inherit',
|
|
365
|
+
fontSize: 'var(--text-2xl)',
|
|
365
366
|
},
|
|
366
367
|
'h2 code': {
|
|
367
368
|
color: 'inherit',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.8",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -79,25 +79,25 @@
|
|
|
79
79
|
"@radix-ui/react-tabs": "^1.1.4",
|
|
80
80
|
"class-variance-authority": "^0.7.1",
|
|
81
81
|
"lodash.merge": "^4.6.2",
|
|
82
|
-
"lucide-react": "^0.
|
|
82
|
+
"lucide-react": "^0.488.0",
|
|
83
83
|
"next-themes": "^0.4.6",
|
|
84
84
|
"postcss-selector-parser": "^7.1.0",
|
|
85
85
|
"react-medium-image-zoom": "^5.2.14",
|
|
86
86
|
"tailwind-merge": "^3.2.0",
|
|
87
|
-
"fumadocs-core": "15.2.
|
|
87
|
+
"fumadocs-core": "15.2.8"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@next/eslint-plugin-next": "^15.3.
|
|
91
|
-
"@tailwindcss/cli": "^4.1.
|
|
90
|
+
"@next/eslint-plugin-next": "^15.3.1",
|
|
91
|
+
"@tailwindcss/cli": "^4.1.4",
|
|
92
92
|
"@types/lodash.merge": "^4.6.9",
|
|
93
|
-
"@types/react": "^19.1.
|
|
93
|
+
"@types/react": "^19.1.2",
|
|
94
94
|
"@types/react-dom": "^19.1.2",
|
|
95
|
-
"next": "15.3.
|
|
96
|
-
"tailwindcss": "^4.1.
|
|
95
|
+
"next": "15.3.1",
|
|
96
|
+
"tailwindcss": "^4.1.4",
|
|
97
97
|
"tsc-alias": "^1.8.15",
|
|
98
98
|
"@fumadocs/cli": "0.1.1",
|
|
99
|
+
"fumadocs-core": "15.2.8",
|
|
99
100
|
"eslint-config-custom": "0.0.0",
|
|
100
|
-
"fumadocs-core": "15.2.7",
|
|
101
101
|
"tsconfig": "0.0.0"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|