@fumadocs/base-ui 16.8.9 → 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 +8 -1
- package/dist/components/banner.js +25 -8
- package/dist/og/takumi.js +2 -2
- package/dist/og.js +2 -2
- package/dist/style.css +3 -3
- package/package.json +5 -5
package/css/generated/shared.css
CHANGED
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
@source inline("[offset-distance:var(--offset-distance,0)]");
|
|
65
65
|
@source inline("[scrollbar-width:none]");
|
|
66
66
|
@source inline("a");
|
|
67
|
+
@source inline("abcdefghijklmnopqrstuvwxyz234567");
|
|
67
68
|
@source inline("about");
|
|
68
69
|
@source inline("absolute");
|
|
69
70
|
@source inline("action");
|
|
@@ -79,6 +80,7 @@
|
|
|
79
80
|
@source inline("allowClear");
|
|
80
81
|
@source inline("allowCopy");
|
|
81
82
|
@source inline("allowDangerousHtml");
|
|
83
|
+
@source inline("alphabet");
|
|
82
84
|
@source inline("always");
|
|
83
85
|
@source inline("an");
|
|
84
86
|
@source inline("and");
|
|
@@ -132,6 +134,7 @@
|
|
|
132
134
|
@source inline("bg-fd-secondary/50");
|
|
133
135
|
@source inline("bg-transparent");
|
|
134
136
|
@source inline("bind");
|
|
137
|
+
@source inline("bitsLeft");
|
|
135
138
|
@source inline("black");
|
|
136
139
|
@source inline("block");
|
|
137
140
|
@source inline("blocks");
|
|
@@ -151,6 +154,7 @@
|
|
|
151
154
|
@source inline("bound");
|
|
152
155
|
@source inline("boundary");
|
|
153
156
|
@source inline("box-border");
|
|
157
|
+
@source inline("buffer");
|
|
154
158
|
@source inline("button");
|
|
155
159
|
@source inline("buttonVariants");
|
|
156
160
|
@source inline("by");
|
|
@@ -335,6 +339,7 @@
|
|
|
335
339
|
@source inline("empty:mb-0");
|
|
336
340
|
@source inline("en");
|
|
337
341
|
@source inline("enabled");
|
|
342
|
+
@source inline("encoded");
|
|
338
343
|
@source inline("end-2");
|
|
339
344
|
@source inline("endIdx");
|
|
340
345
|
@source inline("endpoint");
|
|
@@ -494,6 +499,7 @@
|
|
|
494
499
|
@source inline("input");
|
|
495
500
|
@source inline("inputType");
|
|
496
501
|
@source inline("inset-0");
|
|
502
|
+
@source inline("inset-e-2");
|
|
497
503
|
@source inline("inset-s-0");
|
|
498
504
|
@source inline("inset-x-2");
|
|
499
505
|
@source inline("inset-y-0");
|
|
@@ -917,6 +923,7 @@
|
|
|
917
923
|
@source inline("sizes");
|
|
918
924
|
@source inline("slots");
|
|
919
925
|
@source inline("sm");
|
|
926
|
+
@source inline("solid");
|
|
920
927
|
@source inline("some");
|
|
921
928
|
@source inline("source");
|
|
922
929
|
@source inline("space");
|
|
@@ -931,6 +938,7 @@
|
|
|
931
938
|
@source inline("static");
|
|
932
939
|
@source inline("sticky");
|
|
933
940
|
@source inline("still");
|
|
941
|
+
@source inline("str");
|
|
934
942
|
@source inline("string");
|
|
935
943
|
@source inline("stroke");
|
|
936
944
|
@source inline("stroke-fd-foreground/10");
|
|
@@ -1121,7 +1129,6 @@
|
|
|
1121
1129
|
@source inline("z-2");
|
|
1122
1130
|
@source inline("z-40");
|
|
1123
1131
|
@source inline("z-50");
|
|
1124
|
-
@source inline("z-[-1]");
|
|
1125
1132
|
@source inline("zoom");
|
|
1126
1133
|
@source inline("zoomImg");
|
|
1127
1134
|
@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 };
|
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
|
@@ -322,6 +322,9 @@
|
|
|
322
322
|
.inset-e-0 {
|
|
323
323
|
inset-inline-end: calc(var(--spacing) * 0);
|
|
324
324
|
}
|
|
325
|
+
.inset-e-2 {
|
|
326
|
+
inset-inline-end: calc(var(--spacing) * 2);
|
|
327
|
+
}
|
|
325
328
|
.-top-1\.5 {
|
|
326
329
|
top: calc(var(--spacing) * -1.5);
|
|
327
330
|
}
|
|
@@ -391,9 +394,6 @@
|
|
|
391
394
|
.z-50 {
|
|
392
395
|
z-index: 50;
|
|
393
396
|
}
|
|
394
|
-
.z-\[-1\] {
|
|
395
|
-
z-index: -1;
|
|
396
|
-
}
|
|
397
397
|
.col-span-full {
|
|
398
398
|
grid-column: 1 / -1;
|
|
399
399
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fumadocs/base-ui",
|
|
3
|
-
"version": "16.8.
|
|
3
|
+
"version": "16.8.11",
|
|
4
4
|
"description": "The Base UI version of Fumadocs UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"rehype-raw": "^7.0.0",
|
|
126
126
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
127
127
|
"shiki": "^4.0.2",
|
|
128
|
-
"tailwind-merge": "^3.
|
|
128
|
+
"tailwind-merge": "^3.6.0",
|
|
129
129
|
"unist-util-visit": "^5.1.0",
|
|
130
130
|
"@fumadocs/tailwind": "0.0.5"
|
|
131
131
|
},
|
|
@@ -143,9 +143,9 @@
|
|
|
143
143
|
"tailwindcss": "^4.3.0",
|
|
144
144
|
"tsdown": "0.22.0",
|
|
145
145
|
"unified": "^11.0.5",
|
|
146
|
-
"tsconfig": "0.0.0",
|
|
147
146
|
"@fumadocs/cli": "1.3.10",
|
|
148
|
-
"fumadocs-core": "16.8.
|
|
147
|
+
"fumadocs-core": "16.8.11",
|
|
148
|
+
"tsconfig": "0.0.0"
|
|
149
149
|
},
|
|
150
150
|
"peerDependencies": {
|
|
151
151
|
"@takumi-rs/image-response": "*",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"next": "16.x.x",
|
|
155
155
|
"react": "^19.2.0",
|
|
156
156
|
"react-dom": "^19.2.0",
|
|
157
|
-
"fumadocs-core": "16.8.
|
|
157
|
+
"fumadocs-core": "16.8.11"
|
|
158
158
|
},
|
|
159
159
|
"peerDependenciesMeta": {
|
|
160
160
|
"next": {
|