fumadocs-ui 15.5.2 → 15.5.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.
package/css/neutral.css
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
--color-fd-primary-foreground: hsl(0, 0%, 9%);
|
|
32
32
|
--color-fd-secondary: hsl(0, 0%, 12.9%);
|
|
33
33
|
--color-fd-secondary-foreground: hsl(0, 0%, 98%);
|
|
34
|
-
--color-fd-accent:
|
|
34
|
+
--color-fd-accent: hsla(0, 0%, 40.9%, 30%);
|
|
35
35
|
--color-fd-accent-foreground: hsl(0, 0%, 90%);
|
|
36
36
|
--color-fd-ring: hsl(0, 0%, 54.9%);
|
|
37
37
|
}
|
|
@@ -7,7 +7,7 @@ const calloutVariants = cva('my-4 flex gap-2 rounded-lg border border-s-2 bg-fd-
|
|
|
7
7
|
variants: {
|
|
8
8
|
type: {
|
|
9
9
|
info: 'border-s-blue-500/50',
|
|
10
|
-
warn: 'border-s-
|
|
10
|
+
warn: 'border-s-amber-500/50',
|
|
11
11
|
error: 'border-s-red-500/50',
|
|
12
12
|
success: 'border-s-green-500/50',
|
|
13
13
|
},
|
|
@@ -21,7 +21,7 @@ export const Callout = forwardRef(({ className, children, title, type = 'info',
|
|
|
21
21
|
}), className), ...props, children: [icon ??
|
|
22
22
|
{
|
|
23
23
|
info: _jsx(Info, { className: "size-5 fill-blue-500 text-fd-card" }),
|
|
24
|
-
warn: (_jsx(TriangleAlert, { className: "size-5 fill-
|
|
24
|
+
warn: (_jsx(TriangleAlert, { className: "size-5 fill-amber-500 text-fd-card" })),
|
|
25
25
|
error: _jsx(CircleX, { className: "size-5 fill-red-500 text-fd-card" }),
|
|
26
26
|
success: (_jsx(CircleCheck, { className: "size-5 fill-green-500 text-fd-card" })),
|
|
27
27
|
}[type], _jsxs("div", { className: "min-w-0 flex flex-col gap-2 flex-1", children: [title ? _jsx("p", { className: "font-medium !my-0", children: title }) : null, _jsx("div", { className: "text-fd-muted-foreground prose-no-margin empty:hidden", children: children })] })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/search.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AAIf,OAAO,EAEL,aAAa,EACb,aAAa,EAEd,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAIzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,KAAK,iBAAiB,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;CACpB,CAAC;AAGF,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAsBD,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,cAAc,EACd,SAAiB,EACjB,QAAQ,GACT,EAAE,iBAAiB,2CAuBnB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,2CAO9D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,2CAa/D;AAED,wBAAgB,iBAAiB,CAAC,EAChC,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,QAAQ,CAAC,2CAqB1B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,CAA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;AAaD,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,WAAW,EACX,UAAkB,EAClB,GAAG,KAAK,EACT,EAAE,aAAa,2CAoBf;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf,2CAkBA;AAED,wBAAgB,SAAS;UA3ZjB,OAAO;kBACC,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI;YAC7B,MAAM;oBACE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;eAExB,OAAO;EA0ZnB;AAED,wBAAgB,WAAW;YAnZjB,MAAM;mBACC,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI;gBACtC,OAAO;EAqZpB;AAED,wBAAgB,aAAa;YA9ZnB,MAAM,GAAG,IAAI;eACV,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI;EAiatC"}
|
|
@@ -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, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { FileText, Hash, Search as SearchIcon, Text, X } from '../../icons.js';
|
|
4
4
|
import { createContext, Fragment, useCallback, useContext, useEffect, useMemo, useRef, useState, } from 'react';
|
|
5
5
|
import { I18nLabel, useI18n } from '../../contexts/i18n.js';
|
|
@@ -38,24 +38,19 @@ export function SearchDialogClose({ children = _jsx(X, {}), className, ...props
|
|
|
38
38
|
return (_jsx("button", { type: "button", "aria-label": "Close", onClick: () => onOpenChange(false), className: cn(buttonVariants({
|
|
39
39
|
color: 'ghost',
|
|
40
40
|
size: 'icon-sm',
|
|
41
|
-
className: 'text-fd-muted-foreground -me-
|
|
41
|
+
className: 'text-fd-muted-foreground -me-1.5',
|
|
42
42
|
}), className), ...props, children: children }));
|
|
43
43
|
}
|
|
44
44
|
export function SearchDialogFooter(props) {
|
|
45
45
|
return (_jsx("div", { ...props, className: cn('border-t bg-fd-secondary/50 p-3 empty:hidden', props.className) }));
|
|
46
46
|
}
|
|
47
47
|
export function SearchDialogOverlay(props) {
|
|
48
|
-
return (_jsx(DialogOverlay, { ...props, className: cn('fixed inset-0 z-50 data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out', props.className) }));
|
|
48
|
+
return (_jsx(DialogOverlay, { ...props, className: cn('fixed inset-0 z-50 max-md:backdrop-blur-sm data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out', props.className) }));
|
|
49
49
|
}
|
|
50
50
|
export function SearchDialogContent({ children, ...props }) {
|
|
51
51
|
const { text } = useI18n();
|
|
52
|
-
return (_jsxs(DialogContent, { "aria-describedby": undefined, ...props, className: cn('fixed left-1/2 top-[10vh] z-50 w-[
|
|
52
|
+
return (_jsxs(DialogContent, { "aria-describedby": undefined, ...props, className: cn('fixed left-1/2 top-[10vh] z-50 w-[calc(100vw-2*var(--spacing))] max-w-screen-sm -translate-x-1/2 rounded-2xl border bg-fd-popover/50 backdrop-blur-lg text-fd-popover-foreground shadow-2xl overflow-hidden shadow-black/30 data-[state=closed]:animate-fd-dialog-out data-[state=open]:animate-fd-dialog-in', props.className), children: [_jsx(DialogTitle, { className: "hidden", children: text.search }), children] }));
|
|
53
53
|
}
|
|
54
|
-
const icons = {
|
|
55
|
-
text: _jsx(Text, { className: "size-4 text-fd-muted-foreground" }),
|
|
56
|
-
heading: _jsx(Hash, { className: "size-4 text-fd-muted-foreground" }),
|
|
57
|
-
page: _jsx(FileText, { className: "size-4 text-fd-muted-foreground" }),
|
|
58
|
-
};
|
|
59
54
|
export function SearchDialogList({ items = null, Empty = () => (_jsx("div", { className: "py-12 text-center text-sm text-fd-muted-foreground", children: _jsx(I18nLabel, { label: "searchNoResult" }) })), Item = (props) => _jsx(SearchDialogListItem, { ...props }), ...props }) {
|
|
60
55
|
const ref = useRef(null);
|
|
61
56
|
const [active, setActive] = useState(() => items && items.length > 0 ? items[0].id : null);
|
|
@@ -111,24 +106,26 @@ export function SearchDialogList({ items = null, Empty = () => (_jsx("div", { cl
|
|
|
111
106
|
setActive(items[0].id);
|
|
112
107
|
}
|
|
113
108
|
});
|
|
114
|
-
return (_jsx("div", { ...props, ref: ref, className: cn('overflow-hidden h-(--fd-animated-height) transition-[height]', items && 'border-t', props.className),
|
|
115
|
-
...props.style,
|
|
116
|
-
'--fd-animated-height': '0px',
|
|
117
|
-
}, children: _jsx("div", { className: cn('w-full flex flex-col overflow-y-auto max-h-[460px]', !items && 'hidden'), children: _jsxs(ListContext.Provider, { value: useMemo(() => ({
|
|
109
|
+
return (_jsx("div", { ...props, ref: ref, className: cn('overflow-hidden h-(--fd-animated-height) transition-[height]', items && 'border-t', props.className), children: _jsx("div", { className: cn('w-full flex flex-col overflow-y-auto max-h-[460px]', !items && 'hidden'), children: _jsxs(ListContext.Provider, { value: useMemo(() => ({
|
|
118
110
|
active,
|
|
119
111
|
setActive,
|
|
120
112
|
}), [active]), children: [items?.length === 0 && Empty(), items?.map((item) => (_jsx(Fragment, { children: Item({ item, onClick: () => onOpen(item) }) }, item.id)))] }) }) }));
|
|
121
113
|
}
|
|
114
|
+
const icons = {
|
|
115
|
+
text: _jsx(Text, { className: "size-4 shrink-0 text-fd-muted-foreground" }),
|
|
116
|
+
heading: _jsx(Hash, { className: "size-4 shrink-0 text-fd-muted-foreground" }),
|
|
117
|
+
page: _jsx(FileText, { className: "size-4 shrink-0" }),
|
|
118
|
+
};
|
|
122
119
|
export function SearchDialogListItem({ item, className, children, ...props }) {
|
|
123
120
|
const { active: activeId, setActive } = useSearchList();
|
|
124
121
|
const active = item.id === activeId;
|
|
125
|
-
return (
|
|
122
|
+
return (_jsx("button", { type: "button", ref: useCallback((element) => {
|
|
126
123
|
if (active && element) {
|
|
127
124
|
element.scrollIntoView({
|
|
128
125
|
block: 'nearest',
|
|
129
126
|
});
|
|
130
127
|
}
|
|
131
|
-
}, [active]), "aria-selected": active, className: cn('flex
|
|
128
|
+
}, [active]), "aria-selected": active, className: cn('relative flex select-none flex-row items-center gap-2.5 px-3 py-2 text-start text-sm', active && 'bg-fd-accent text-fd-accent-foreground', item.type !== 'page' && 'ps-8', className), onPointerMove: () => setActive(item.id), ...props, children: children ?? (_jsxs(_Fragment, { children: [item.type !== 'page' && (_jsx("div", { role: "none", className: "absolute start-5 inset-y-0 w-px bg-fd-border" })), icons[item.type], _jsx("p", { className: "min-w-0 truncate", children: item.content })] })) }));
|
|
132
129
|
}
|
|
133
130
|
export function SearchDialogIcon(props) {
|
|
134
131
|
const { isLoading } = useSearch();
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { cn } from '../../utils/cn.js';
|
|
6
6
|
const Popover = PopoverPrimitive.Root;
|
|
7
7
|
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
8
|
-
const PopoverContent = React.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, side: "bottom", className: cn('z-50 origin-(--radix-popover-content-transform-origin) min-w-[
|
|
8
|
+
const PopoverContent = React.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, side: "bottom", className: cn('z-50 origin-(--radix-popover-content-transform-origin) min-w-[240px] max-w-[98vw] rounded-xl border bg-fd-popover/50 backdrop-blur-lg p-2 text-sm text-fd-popover-foreground shadow-lg focus-visible:outline-none data-[state=closed]:animate-fd-popover-out data-[state=open]:animate-fd-popover-in', className), ...props }) })));
|
|
9
9
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
10
10
|
const PopoverClose = PopoverPrimitive.PopoverClose;
|
|
11
11
|
export { Popover, PopoverTrigger, PopoverContent, PopoverClose };
|
package/dist/style.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
9
9
|
"Courier New", monospace;
|
|
10
10
|
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
11
|
-
--color-
|
|
11
|
+
--color-amber-500: oklch(76.9% 0.188 70.08);
|
|
12
12
|
--color-green-500: oklch(72.3% 0.219 149.579);
|
|
13
13
|
--color-blue-500: oklch(62.3% 0.214 259.815);
|
|
14
14
|
--color-black: #000;
|
|
@@ -318,6 +318,9 @@
|
|
|
318
318
|
.start-2\.5 {
|
|
319
319
|
inset-inline-start: calc(var(--spacing) * 2.5);
|
|
320
320
|
}
|
|
321
|
+
.start-5 {
|
|
322
|
+
inset-inline-start: calc(var(--spacing) * 5);
|
|
323
|
+
}
|
|
321
324
|
.end-2 {
|
|
322
325
|
inset-inline-end: calc(var(--spacing) * 2);
|
|
323
326
|
}
|
|
@@ -985,9 +988,6 @@
|
|
|
985
988
|
.min-h-0 {
|
|
986
989
|
min-height: calc(var(--spacing) * 0);
|
|
987
990
|
}
|
|
988
|
-
.min-h-10 {
|
|
989
|
-
min-height: calc(var(--spacing) * 10);
|
|
990
|
-
}
|
|
991
991
|
.w-\(--fd-toc-width\) {
|
|
992
992
|
width: var(--fd-toc-width);
|
|
993
993
|
}
|
|
@@ -1012,12 +1012,12 @@
|
|
|
1012
1012
|
.w-\[85\%\] {
|
|
1013
1013
|
width: 85%;
|
|
1014
1014
|
}
|
|
1015
|
-
.w-\[98vw\] {
|
|
1016
|
-
width: 98vw;
|
|
1017
|
-
}
|
|
1018
1015
|
.w-\[286px\] {
|
|
1019
1016
|
width: 286px;
|
|
1020
1017
|
}
|
|
1018
|
+
.w-\[calc\(100vw-2\*var\(--spacing\)\)\] {
|
|
1019
|
+
width: calc(100vw - 2 * var(--spacing));
|
|
1020
|
+
}
|
|
1021
1021
|
.w-fit {
|
|
1022
1022
|
width: fit-content;
|
|
1023
1023
|
}
|
|
@@ -1060,6 +1060,9 @@
|
|
|
1060
1060
|
.min-w-\[220px\] {
|
|
1061
1061
|
min-width: 220px;
|
|
1062
1062
|
}
|
|
1063
|
+
.min-w-\[240px\] {
|
|
1064
|
+
min-width: 240px;
|
|
1065
|
+
}
|
|
1063
1066
|
.min-w-full {
|
|
1064
1067
|
min-width: 100%;
|
|
1065
1068
|
}
|
|
@@ -1223,6 +1226,9 @@
|
|
|
1223
1226
|
.overflow-y-auto {
|
|
1224
1227
|
overflow-y: auto;
|
|
1225
1228
|
}
|
|
1229
|
+
.rounded-2xl {
|
|
1230
|
+
border-radius: var(--radius-2xl);
|
|
1231
|
+
}
|
|
1226
1232
|
.rounded-\[inherit\] {
|
|
1227
1233
|
border-radius: inherit;
|
|
1228
1234
|
}
|
|
@@ -1282,6 +1288,12 @@
|
|
|
1282
1288
|
.border-transparent {
|
|
1283
1289
|
border-color: transparent;
|
|
1284
1290
|
}
|
|
1291
|
+
.border-s-amber-500\/50 {
|
|
1292
|
+
border-inline-start-color: color-mix(in srgb, oklch(76.9% 0.188 70.08) 50%, transparent);
|
|
1293
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1294
|
+
border-inline-start-color: color-mix(in oklab, var(--color-amber-500) 50%, transparent);
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1285
1297
|
.border-s-blue-500\/50 {
|
|
1286
1298
|
border-inline-start-color: color-mix(in srgb, oklch(62.3% 0.214 259.815) 50%, transparent);
|
|
1287
1299
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1294,12 +1306,6 @@
|
|
|
1294
1306
|
border-inline-start-color: color-mix(in oklab, var(--color-green-500) 50%, transparent);
|
|
1295
1307
|
}
|
|
1296
1308
|
}
|
|
1297
|
-
.border-s-orange-500\/50 {
|
|
1298
|
-
border-inline-start-color: color-mix(in srgb, oklch(70.5% 0.213 47.604) 50%, transparent);
|
|
1299
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1300
|
-
border-inline-start-color: color-mix(in oklab, var(--color-orange-500) 50%, transparent);
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
1309
|
.border-s-red-500\/50 {
|
|
1304
1310
|
border-inline-start-color: color-mix(in srgb, oklch(63.7% 0.237 25.331) 50%, transparent);
|
|
1305
1311
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1342,10 +1348,10 @@
|
|
|
1342
1348
|
.bg-fd-muted {
|
|
1343
1349
|
background-color: var(--color-fd-muted);
|
|
1344
1350
|
}
|
|
1345
|
-
.bg-fd-popover\/
|
|
1346
|
-
background-color: color-mix(in srgb, hsl(0, 0%, 98%)
|
|
1351
|
+
.bg-fd-popover\/50 {
|
|
1352
|
+
background-color: color-mix(in srgb, hsl(0, 0%, 98%) 50%, transparent);
|
|
1347
1353
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1348
|
-
background-color: color-mix(in oklab, var(--color-fd-popover)
|
|
1354
|
+
background-color: color-mix(in oklab, var(--color-fd-popover) 50%, transparent);
|
|
1349
1355
|
}
|
|
1350
1356
|
}
|
|
1351
1357
|
.bg-fd-primary {
|
|
@@ -1372,15 +1378,15 @@
|
|
|
1372
1378
|
.\[mask-image\:linear-gradient\(to_bottom\,transparent\,white_16px\,white_calc\(100\%-16px\)\,transparent\)\] {
|
|
1373
1379
|
mask-image: linear-gradient(to bottom,transparent,white 16px,white calc(100% - 16px),transparent);
|
|
1374
1380
|
}
|
|
1381
|
+
.fill-amber-500 {
|
|
1382
|
+
fill: var(--color-amber-500);
|
|
1383
|
+
}
|
|
1375
1384
|
.fill-blue-500 {
|
|
1376
1385
|
fill: var(--color-blue-500);
|
|
1377
1386
|
}
|
|
1378
1387
|
.fill-green-500 {
|
|
1379
1388
|
fill: var(--color-green-500);
|
|
1380
1389
|
}
|
|
1381
|
-
.fill-orange-500 {
|
|
1382
|
-
fill: var(--color-orange-500);
|
|
1383
|
-
}
|
|
1384
1390
|
.fill-red-500 {
|
|
1385
1391
|
fill: var(--color-red-500);
|
|
1386
1392
|
}
|
|
@@ -1632,10 +1638,10 @@
|
|
|
1632
1638
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1633
1639
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1634
1640
|
}
|
|
1635
|
-
.shadow-black\/
|
|
1636
|
-
--tw-shadow-color: color-mix(in srgb, #000
|
|
1641
|
+
.shadow-black\/30 {
|
|
1642
|
+
--tw-shadow-color: color-mix(in srgb, #000 30%, transparent);
|
|
1637
1643
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1638
|
-
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-black)
|
|
1644
|
+
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-black) 30%, transparent) var(--tw-shadow-alpha), transparent);
|
|
1639
1645
|
}
|
|
1640
1646
|
}
|
|
1641
1647
|
.outline {
|
|
@@ -2097,6 +2103,13 @@
|
|
|
2097
2103
|
background-color: var(--color-fd-background);
|
|
2098
2104
|
}
|
|
2099
2105
|
}
|
|
2106
|
+
.max-md\:backdrop-blur-sm {
|
|
2107
|
+
@media (width < 48rem) {
|
|
2108
|
+
--tw-backdrop-blur: blur(var(--blur-sm));
|
|
2109
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
2110
|
+
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2100
2113
|
.max-sm\:mt-2 {
|
|
2101
2114
|
@media (width < 40rem) {
|
|
2102
2115
|
margin-top: calc(var(--spacing) * 2);
|
|
@@ -2369,7 +2382,7 @@
|
|
|
2369
2382
|
--color-fd-primary-foreground: hsl(0, 0%, 9%);
|
|
2370
2383
|
--color-fd-secondary: hsl(0, 0%, 12.9%);
|
|
2371
2384
|
--color-fd-secondary-foreground: hsl(0, 0%, 98%);
|
|
2372
|
-
--color-fd-accent:
|
|
2385
|
+
--color-fd-accent: hsla(0, 0%, 40.9%, 30%);
|
|
2373
2386
|
--color-fd-accent-foreground: hsl(0, 0%, 90%);
|
|
2374
2387
|
--color-fd-ring: hsl(0, 0%, 54.9%);
|
|
2375
2388
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "15.5.
|
|
3
|
+
"version": "15.5.3",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"react-medium-image-zoom": "^5.2.14",
|
|
90
90
|
"react-remove-scroll": "^2.7.1",
|
|
91
91
|
"tailwind-merge": "^3.3.1",
|
|
92
|
-
"fumadocs-core": "15.5.
|
|
92
|
+
"fumadocs-core": "15.5.3"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@next/eslint-plugin-next": "^15.3.3",
|
|
@@ -101,9 +101,9 @@
|
|
|
101
101
|
"tailwindcss": "^4.1.10",
|
|
102
102
|
"tsc-alias": "^1.8.16",
|
|
103
103
|
"@fumadocs/cli": "0.2.1",
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
104
|
+
"eslint-config-custom": "0.0.0",
|
|
105
|
+
"fumadocs-core": "15.5.3",
|
|
106
|
+
"tsconfig": "0.0.0"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
109
|
"next": "14.x.x || 15.x.x",
|