fumadocs-ui 16.8.10 → 16.8.11
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/generated/shared.css +7 -1
- package/dist/components/banner.js +25 -8
- package/dist/layouts/home/slots/header.d.ts +1 -1
- package/dist/og/takumi.js +2 -2
- package/dist/og.js +2 -2
- package/dist/style.css +3 -3
- package/package.json +4 -4
package/css/generated/shared.css
CHANGED
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
@source inline("[offset-distance:var(--offset-distance,0)]");
|
|
69
69
|
@source inline("[scrollbar-width:none]");
|
|
70
70
|
@source inline("a");
|
|
71
|
+
@source inline("abcdefghijklmnopqrstuvwxyz234567");
|
|
71
72
|
@source inline("about");
|
|
72
73
|
@source inline("absolute");
|
|
73
74
|
@source inline("action");
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
@source inline("allowCopy");
|
|
84
85
|
@source inline("allowDangerousHtml");
|
|
85
86
|
@source inline("allowedMode");
|
|
87
|
+
@source inline("alphabet");
|
|
86
88
|
@source inline("always");
|
|
87
89
|
@source inline("an");
|
|
88
90
|
@source inline("and");
|
|
@@ -133,6 +135,7 @@
|
|
|
133
135
|
@source inline("bg-transparent");
|
|
134
136
|
@source inline("bind");
|
|
135
137
|
@source inline("binded");
|
|
138
|
+
@source inline("bitsLeft");
|
|
136
139
|
@source inline("black");
|
|
137
140
|
@source inline("block");
|
|
138
141
|
@source inline("blocks");
|
|
@@ -150,6 +153,7 @@
|
|
|
150
153
|
@source inline("bottom-0");
|
|
151
154
|
@source inline("bottom-1.5");
|
|
152
155
|
@source inline("boundary");
|
|
156
|
+
@source inline("buffer");
|
|
153
157
|
@source inline("button");
|
|
154
158
|
@source inline("buttonVariants");
|
|
155
159
|
@source inline("by");
|
|
@@ -311,6 +315,7 @@
|
|
|
311
315
|
@source inline("empty:hidden");
|
|
312
316
|
@source inline("en");
|
|
313
317
|
@source inline("enabled");
|
|
318
|
+
@source inline("encoded");
|
|
314
319
|
@source inline("end-2");
|
|
315
320
|
@source inline("endIdx");
|
|
316
321
|
@source inline("endpoint");
|
|
@@ -465,6 +470,7 @@
|
|
|
465
470
|
@source inline("input");
|
|
466
471
|
@source inline("inputType");
|
|
467
472
|
@source inline("inset-0");
|
|
473
|
+
@source inline("inset-e-2");
|
|
468
474
|
@source inline("inset-s-0");
|
|
469
475
|
@source inline("inset-s-3");
|
|
470
476
|
@source inline("inset-s-6");
|
|
@@ -899,6 +905,7 @@
|
|
|
899
905
|
@source inline("static");
|
|
900
906
|
@source inline("sticky");
|
|
901
907
|
@source inline("still");
|
|
908
|
+
@source inline("str");
|
|
902
909
|
@source inline("string");
|
|
903
910
|
@source inline("stroke");
|
|
904
911
|
@source inline("stroke-fd-foreground/10");
|
|
@@ -1086,7 +1093,6 @@
|
|
|
1086
1093
|
@source inline("z-2");
|
|
1087
1094
|
@source inline("z-40");
|
|
1088
1095
|
@source inline("z-50");
|
|
1089
|
-
@source inline("z-[-1]");
|
|
1090
1096
|
@source inline("zoom");
|
|
1091
1097
|
@source inline("zoomImg");
|
|
1092
1098
|
@source inline("zoomMargin");
|
|
@@ -12,10 +12,14 @@ function Banner({ id, variant = "normal", changeLayout = true, height = "3rem",
|
|
|
12
12
|
"rgba(131,255,166,0.66)"
|
|
13
13
|
], ...props }) {
|
|
14
14
|
const [open, setOpen] = useState(true);
|
|
15
|
-
const globalKey = id ? `nd-banner-${id}` : null;
|
|
15
|
+
const globalKey = id ? `nd-banner-${encodeBase32(id)}` : null;
|
|
16
16
|
useEffect(() => {
|
|
17
|
-
if (globalKey
|
|
17
|
+
if (globalKey && localStorage.getItem(globalKey) === "true") setOpen(false);
|
|
18
18
|
}, [globalKey]);
|
|
19
|
+
function onClose() {
|
|
20
|
+
setOpen(false);
|
|
21
|
+
if (globalKey) localStorage.setItem(globalKey, "true");
|
|
22
|
+
}
|
|
19
23
|
if (!open) return null;
|
|
20
24
|
return /* @__PURE__ */ jsxs("div", {
|
|
21
25
|
id,
|
|
@@ -31,13 +35,10 @@ function Banner({ id, variant = "normal", changeLayout = true, height = "3rem",
|
|
|
31
35
|
id ? /* @__PURE__ */ jsx("button", {
|
|
32
36
|
type: "button",
|
|
33
37
|
"aria-label": "Close Banner",
|
|
34
|
-
onClick:
|
|
35
|
-
setOpen(false);
|
|
36
|
-
if (globalKey) localStorage.setItem(globalKey, "true");
|
|
37
|
-
},
|
|
38
|
+
onClick: onClose,
|
|
38
39
|
className: cn(buttonVariants({
|
|
39
40
|
color: "ghost",
|
|
40
|
-
className: "absolute
|
|
41
|
+
className: "absolute inset-e-2 top-1/2 -translate-y-1/2 text-fd-muted-foreground/50",
|
|
41
42
|
size: "icon-sm"
|
|
42
43
|
})),
|
|
43
44
|
children: /* @__PURE__ */ jsx(X, {})
|
|
@@ -48,7 +49,7 @@ function Banner({ id, variant = "normal", changeLayout = true, height = "3rem",
|
|
|
48
49
|
const maskImage = "linear-gradient(to bottom,white,transparent), radial-gradient(circle at top center, white, transparent)";
|
|
49
50
|
function flow({ colors }) {
|
|
50
51
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
51
|
-
className: "absolute inset-0 z-
|
|
52
|
+
className: "absolute inset-0 -z-1",
|
|
52
53
|
style: {
|
|
53
54
|
maskImage,
|
|
54
55
|
maskComposite: "intersect",
|
|
@@ -62,5 +63,21 @@ function flow({ colors }) {
|
|
|
62
63
|
to { background-position: 100% 0; }
|
|
63
64
|
}` })] });
|
|
64
65
|
}
|
|
66
|
+
function encodeBase32(str) {
|
|
67
|
+
const alphabet = "abcdefghijklmnopqrstuvwxyz234567";
|
|
68
|
+
let encoded = "";
|
|
69
|
+
let buffer = 0;
|
|
70
|
+
let bitsLeft = 0;
|
|
71
|
+
for (let i = 0; i < str.length; i++) {
|
|
72
|
+
buffer = buffer << 8 | str.charCodeAt(i);
|
|
73
|
+
bitsLeft += 8;
|
|
74
|
+
while (bitsLeft >= 5) {
|
|
75
|
+
bitsLeft -= 5;
|
|
76
|
+
encoded += alphabet[buffer >> bitsLeft & 31];
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
if (bitsLeft > 0) encoded += alphabet[buffer << 5 - bitsLeft & 31];
|
|
80
|
+
return encoded;
|
|
81
|
+
}
|
|
65
82
|
//#endregion
|
|
66
83
|
export { Banner };
|
|
@@ -5,7 +5,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
|
|
|
5
5
|
|
|
6
6
|
//#region src/layouts/home/slots/header.d.ts
|
|
7
7
|
declare const navItemVariants: (props?: ({
|
|
8
|
-
variant?: "
|
|
8
|
+
variant?: "icon" | "main" | "button" | null | undefined;
|
|
9
9
|
} & _$class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
10
|
declare function Header(props: ComponentProps<'header'>): string | number | bigint | true | _$react_jsx_runtime0.JSX.Element | Iterable<_$react.ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<_$react.ReactNode> | null | undefined>;
|
|
11
11
|
//#endregion
|
package/dist/og/takumi.js
CHANGED
|
@@ -44,7 +44,7 @@ function generate({ primaryColor = "rgba(255,150,255,0.3)", primaryTextColor = "
|
|
|
44
44
|
color: "white",
|
|
45
45
|
padding: "4rem",
|
|
46
46
|
backgroundColor: "#0c0c0c",
|
|
47
|
-
|
|
47
|
+
borderBottom: `18px solid ${primaryColor}`
|
|
48
48
|
},
|
|
49
49
|
children: [
|
|
50
50
|
/* @__PURE__ */ jsx("p", {
|
|
@@ -62,7 +62,7 @@ function generate({ primaryColor = "rgba(255,150,255,0.3)", primaryTextColor = "
|
|
|
62
62
|
margin: 0,
|
|
63
63
|
marginTop: "16px",
|
|
64
64
|
paddingBottom: "28px",
|
|
65
|
-
borderBottom: `
|
|
65
|
+
borderBottom: `10px dashed ${primaryColor}`
|
|
66
66
|
},
|
|
67
67
|
children: props.description
|
|
68
68
|
}),
|
package/dist/og.js
CHANGED
|
@@ -44,7 +44,7 @@ function generate({ primaryColor = "rgba(255,150,255,0.3)", primaryTextColor = "
|
|
|
44
44
|
color: "white",
|
|
45
45
|
padding: "4rem",
|
|
46
46
|
backgroundColor: "#0c0c0c",
|
|
47
|
-
|
|
47
|
+
borderBottom: `18px solid ${primaryColor}`
|
|
48
48
|
},
|
|
49
49
|
children: [
|
|
50
50
|
/* @__PURE__ */ jsx("p", {
|
|
@@ -62,7 +62,7 @@ function generate({ primaryColor = "rgba(255,150,255,0.3)", primaryTextColor = "
|
|
|
62
62
|
margin: 0,
|
|
63
63
|
marginTop: "16px",
|
|
64
64
|
paddingBottom: "28px",
|
|
65
|
-
borderBottom: `
|
|
65
|
+
borderBottom: `10px dashed ${primaryColor}`
|
|
66
66
|
},
|
|
67
67
|
children: props.description
|
|
68
68
|
}),
|
package/dist/style.css
CHANGED
|
@@ -332,6 +332,9 @@
|
|
|
332
332
|
.inset-e-0 {
|
|
333
333
|
inset-inline-end: calc(var(--spacing) * 0);
|
|
334
334
|
}
|
|
335
|
+
.inset-e-2 {
|
|
336
|
+
inset-inline-end: calc(var(--spacing) * 2);
|
|
337
|
+
}
|
|
335
338
|
.-top-1\.5 {
|
|
336
339
|
top: calc(var(--spacing) * -1.5);
|
|
337
340
|
}
|
|
@@ -401,9 +404,6 @@
|
|
|
401
404
|
.z-50 {
|
|
402
405
|
z-index: 50;
|
|
403
406
|
}
|
|
404
|
-
.z-\[-1\] {
|
|
405
|
-
z-index: -1;
|
|
406
|
-
}
|
|
407
407
|
.col-span-full {
|
|
408
408
|
grid-column: 1 / -1;
|
|
409
409
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "16.8.
|
|
3
|
+
"version": "16.8.11",
|
|
4
4
|
"description": "The Radix UI version of Fumadocs UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"rehype-raw": "^7.0.0",
|
|
139
139
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
140
140
|
"shiki": "^4.0.2",
|
|
141
|
-
"tailwind-merge": "^3.
|
|
141
|
+
"tailwind-merge": "^3.6.0",
|
|
142
142
|
"unist-util-visit": "^5.1.0",
|
|
143
143
|
"@fumadocs/tailwind": "0.0.5"
|
|
144
144
|
},
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"tsdown": "0.22.0",
|
|
158
158
|
"unified": "^11.0.5",
|
|
159
159
|
"@fumadocs/cli": "1.3.10",
|
|
160
|
-
"fumadocs-core": "16.8.
|
|
160
|
+
"fumadocs-core": "16.8.11",
|
|
161
161
|
"tsconfig": "0.0.0"
|
|
162
162
|
},
|
|
163
163
|
"peerDependencies": {
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"next": "16.x.x",
|
|
168
168
|
"react": "^19.2.0",
|
|
169
169
|
"react-dom": "^19.2.0",
|
|
170
|
-
"fumadocs-core": "16.8.
|
|
170
|
+
"fumadocs-core": "16.8.11"
|
|
171
171
|
},
|
|
172
172
|
"peerDependenciesMeta": {
|
|
173
173
|
"next": {
|