fumadocs-ui 12.1.2 → 12.2.0
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/dist/{chunk-MXPAPA74.js → chunk-3WVIP3N5.js} +1 -1
- package/dist/{chunk-H5USAX5W.js → chunk-CPOVVDVF.js} +0 -1
- package/dist/{chunk-45QF3XKA.js → chunk-G7WCPUM7.js} +2 -2
- package/dist/{chunk-U4G4ZLRB.js → chunk-Q3FSJZ3E.js} +1 -1
- package/dist/{chunk-YJDZJ4BG.js → chunk-XVCWFZ3A.js} +69 -23
- package/dist/components/accordion.js +2 -2
- package/dist/components/api.d.ts +3 -1
- package/dist/components/api.js +27 -39
- package/dist/components/callout.d.ts +1 -1
- package/dist/components/codeblock.js +2 -2
- package/dist/components/dialog/search-algolia.js +3 -3
- package/dist/components/dialog/search-default.js +3 -3
- package/dist/components/dialog/search.js +3 -3
- package/dist/components/layout/language-toggle.js +1 -1
- package/dist/components/layout/root-toggle.js +1 -1
- package/dist/components/roll-button.js +2 -2
- package/dist/docs.client.d.ts +3 -3
- package/dist/docs.client.js +38 -26
- package/dist/{layout.client-BzAmSQXB.d.ts → layout-C2Cxe6NB.d.ts} +24 -19
- package/dist/layout.client.d.ts +8 -2
- package/dist/layout.client.js +43 -74
- package/dist/layout.d.ts +1 -1
- package/dist/layout.js +5 -4
- package/dist/mdx.client.js +2 -2
- package/dist/page.client.d.ts +3 -3
- package/dist/page.client.js +63 -50
- package/dist/page.d.ts +7 -1
- package/dist/page.js +42 -22
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +1 -1
- package/dist/style.css +1 -1
- package/dist/tailwind-plugin.cjs +10 -12
- package/dist/tailwind-plugin.js +10 -12
- package/dist/twoslash.css +1 -1
- package/package.json +2 -2
- package/dist/{chunk-FSPYEOFC.js → chunk-ET4TW6M5.js} +4 -4
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-3F57TIUQ.js";
|
|
4
4
|
import {
|
|
5
5
|
useSearchContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ET4TW6M5.js";
|
|
7
7
|
import {
|
|
8
8
|
useI18n
|
|
9
9
|
} from "./chunk-HLGNIWUN.js";
|
|
10
10
|
import {
|
|
11
11
|
buttonVariants
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CPOVVDVF.js";
|
|
13
13
|
import {
|
|
14
14
|
twMerge
|
|
15
15
|
} from "./chunk-TK3TM3MR.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-AN2Y6MA2.js";
|
|
9
9
|
import {
|
|
10
10
|
useSearchContext
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ET4TW6M5.js";
|
|
12
12
|
import {
|
|
13
13
|
useI18n
|
|
14
14
|
} from "./chunk-HLGNIWUN.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-7XPZOMJ2.js";
|
|
20
20
|
import {
|
|
21
21
|
buttonVariants
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CPOVVDVF.js";
|
|
23
23
|
import {
|
|
24
24
|
twMerge
|
|
25
25
|
} from "./chunk-TK3TM3MR.js";
|
|
@@ -67,22 +67,64 @@ function LargeSearchToggle(props) {
|
|
|
67
67
|
children: [
|
|
68
68
|
/* @__PURE__ */ jsx(SearchIcon, { className: "ms-1 size-4" }),
|
|
69
69
|
text.search,
|
|
70
|
-
/* @__PURE__ */ jsx("div", { className: "ms-auto inline-flex gap-0.5
|
|
70
|
+
/* @__PURE__ */ jsx("div", { className: "ms-auto inline-flex gap-0.5", children: hotKey.map((k, i) => /* @__PURE__ */ jsx("kbd", { className: "rounded-md border bg-background px-1.5", children: k.display }, i)) })
|
|
71
71
|
]
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
// src/components/layout/
|
|
77
|
-
import
|
|
78
|
-
import {
|
|
76
|
+
// src/components/layout/nav.tsx
|
|
77
|
+
import Link from "fumadocs-core/link";
|
|
78
|
+
import {
|
|
79
|
+
useEffect,
|
|
80
|
+
useState
|
|
81
|
+
} from "react";
|
|
82
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
83
|
+
function NavBox({
|
|
84
|
+
transparentMode = "none",
|
|
85
|
+
...props
|
|
86
|
+
}) {
|
|
87
|
+
const [transparent, setTransparent] = useState(transparentMode !== "none");
|
|
88
|
+
useEffect(() => {
|
|
89
|
+
if (transparentMode !== "top") return;
|
|
90
|
+
const listener = () => {
|
|
91
|
+
setTransparent(window.scrollY < 10);
|
|
92
|
+
};
|
|
93
|
+
listener();
|
|
94
|
+
window.addEventListener("scroll", listener);
|
|
95
|
+
return () => {
|
|
96
|
+
window.removeEventListener("scroll", listener);
|
|
97
|
+
};
|
|
98
|
+
}, [transparentMode]);
|
|
99
|
+
return /* @__PURE__ */ jsx2(
|
|
100
|
+
"header",
|
|
101
|
+
{
|
|
102
|
+
...props,
|
|
103
|
+
className: twMerge(
|
|
104
|
+
"sticky top-0 z-50 border-b transition-colors",
|
|
105
|
+
transparent ? "border-transparent" : "border-foreground/10 bg-background/60 backdrop-blur-md",
|
|
106
|
+
props.className
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
function Title({ title, url = "/" }) {
|
|
112
|
+
return /* @__PURE__ */ jsx2(
|
|
113
|
+
Link,
|
|
114
|
+
{
|
|
115
|
+
href: url,
|
|
116
|
+
className: "inline-flex items-center gap-2.5 font-semibold [&_svg]:size-5",
|
|
117
|
+
children: title
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
}
|
|
79
121
|
|
|
80
122
|
// src/components/layout/link-item.tsx
|
|
81
|
-
import
|
|
123
|
+
import Link2 from "fumadocs-core/link";
|
|
82
124
|
import { ChevronDown } from "lucide-react";
|
|
83
125
|
import { usePathname } from "next/navigation";
|
|
84
126
|
import { cva } from "class-variance-authority";
|
|
85
|
-
import { jsx as
|
|
127
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
86
128
|
var linkItemVariants = cva(
|
|
87
129
|
"inline-flex items-center gap-1.5 rounded-lg p-2 text-muted-foreground transition-colors data-[state=open]:bg-accent [&_svg]:size-4",
|
|
88
130
|
{
|
|
@@ -113,11 +155,11 @@ function LinkItem({
|
|
|
113
155
|
...props,
|
|
114
156
|
children: [
|
|
115
157
|
item.text,
|
|
116
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ jsx3(ChevronDown, { className: "ms-auto size-4" })
|
|
117
159
|
]
|
|
118
160
|
}
|
|
119
161
|
),
|
|
120
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ jsx3(PopoverContent, { className: "flex flex-col", children: item.items.map((child, i) => /* @__PURE__ */ jsx3(LinkItem, { item: child, on: "menu" }, i)) })
|
|
121
163
|
] });
|
|
122
164
|
}
|
|
123
165
|
if (item.type === "menu") {
|
|
@@ -130,18 +172,18 @@ function LinkItem({
|
|
|
130
172
|
children: [
|
|
131
173
|
item.icon,
|
|
132
174
|
item.text,
|
|
133
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ jsx3(ChevronDown, { className: "ms-auto size-4 group-data-[state=closed]/link:-rotate-90" })
|
|
134
176
|
]
|
|
135
177
|
}
|
|
136
178
|
),
|
|
137
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ jsx3(CollapsibleContent, { children: /* @__PURE__ */ jsx3("div", { className: "flex flex-col py-1 ps-4", children: item.items.map((child, i) => /* @__PURE__ */ jsx3(LinkItem, { item: child, on: "menu" }, i)) }) })
|
|
138
180
|
] });
|
|
139
181
|
}
|
|
140
182
|
const activeType = item.active ?? "url";
|
|
141
183
|
const active = activeType !== "none" ? isActive(item.url, pathname, activeType === "nested-url") : false;
|
|
142
184
|
if (item.type === "secondary" && on === "nav") {
|
|
143
|
-
return /* @__PURE__ */
|
|
144
|
-
|
|
185
|
+
return /* @__PURE__ */ jsx3(
|
|
186
|
+
Link2,
|
|
145
187
|
{
|
|
146
188
|
"aria-label": item.text,
|
|
147
189
|
href: item.url,
|
|
@@ -159,7 +201,7 @@ function LinkItem({
|
|
|
159
201
|
);
|
|
160
202
|
}
|
|
161
203
|
return /* @__PURE__ */ jsxs2(
|
|
162
|
-
|
|
204
|
+
Link2,
|
|
163
205
|
{
|
|
164
206
|
href: item.url,
|
|
165
207
|
external: item.external,
|
|
@@ -179,19 +221,21 @@ function LinkItem({
|
|
|
179
221
|
}
|
|
180
222
|
|
|
181
223
|
// src/components/layout/links-menu.tsx
|
|
182
|
-
import {
|
|
224
|
+
import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
225
|
+
import { usePathname as usePathname2 } from "next/navigation";
|
|
226
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
183
227
|
function LinksMenu({
|
|
184
228
|
items,
|
|
185
229
|
footer,
|
|
186
230
|
...props
|
|
187
231
|
}) {
|
|
188
|
-
const [open, setOpen] =
|
|
232
|
+
const [open, setOpen] = useState2(false);
|
|
189
233
|
const pathname = usePathname2();
|
|
190
|
-
|
|
234
|
+
useEffect2(() => {
|
|
191
235
|
setOpen(false);
|
|
192
236
|
}, [pathname]);
|
|
193
237
|
return /* @__PURE__ */ jsxs3(Popover, { open, onOpenChange: setOpen, children: [
|
|
194
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ jsx4(
|
|
195
239
|
PopoverTrigger,
|
|
196
240
|
{
|
|
197
241
|
...props,
|
|
@@ -205,7 +249,7 @@ function LinksMenu({
|
|
|
205
249
|
}
|
|
206
250
|
),
|
|
207
251
|
/* @__PURE__ */ jsxs3(PopoverContent, { className: "flex flex-col", children: [
|
|
208
|
-
items.map((item, i) => /* @__PURE__ */
|
|
252
|
+
items.map((item, i) => /* @__PURE__ */ jsx4(LinkItem, { item, on: "menu" }, i)),
|
|
209
253
|
footer
|
|
210
254
|
] })
|
|
211
255
|
] });
|
|
@@ -216,7 +260,7 @@ import { cva as cva2 } from "class-variance-authority";
|
|
|
216
260
|
import { Moon, Sun } from "lucide-react";
|
|
217
261
|
import { useTheme } from "next-themes";
|
|
218
262
|
import { useCallback as useCallback2 } from "react";
|
|
219
|
-
import { jsx as
|
|
263
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
220
264
|
var buttonVariants2 = cva2("size-7 rounded-full p-1.5 text-muted-foreground", {
|
|
221
265
|
variants: {
|
|
222
266
|
dark: {
|
|
@@ -245,8 +289,8 @@ function ThemeToggle({
|
|
|
245
289
|
onClick: onToggle,
|
|
246
290
|
...props,
|
|
247
291
|
children: [
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ jsx5(Sun, { className: twMerge(buttonVariants2({ dark: false })) }),
|
|
293
|
+
/* @__PURE__ */ jsx5(Moon, { className: twMerge(buttonVariants2({ dark: true })) })
|
|
250
294
|
]
|
|
251
295
|
}
|
|
252
296
|
);
|
|
@@ -255,6 +299,8 @@ function ThemeToggle({
|
|
|
255
299
|
export {
|
|
256
300
|
SearchToggle,
|
|
257
301
|
LargeSearchToggle,
|
|
302
|
+
NavBox,
|
|
303
|
+
Title,
|
|
258
304
|
LinkItem,
|
|
259
305
|
LinksMenu,
|
|
260
306
|
ThemeToggle
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Accordion,
|
|
4
4
|
Accordions
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-3WVIP3N5.js";
|
|
6
6
|
import "../chunk-2KMKNVSN.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-CPOVVDVF.js";
|
|
8
8
|
import "../chunk-TK3TM3MR.js";
|
|
9
9
|
import "../chunk-MLKGABMK.js";
|
|
10
10
|
export {
|
package/dist/components/api.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ declare function Property({ name, type, required, deprecated, children, }: Prope
|
|
|
20
20
|
declare function APIExample({ children, className, ...props }: HTMLAttributes<HTMLDivElement>): React.ReactElement;
|
|
21
21
|
declare const Responses: typeof Tabs;
|
|
22
22
|
declare const Response: typeof Tab;
|
|
23
|
+
declare const Requests: typeof Tabs;
|
|
24
|
+
declare const Request: typeof Tab;
|
|
23
25
|
declare function ResponseTypes(props: {
|
|
24
26
|
children: ReactNode;
|
|
25
27
|
}): React.ReactElement;
|
|
@@ -33,4 +35,4 @@ declare function ObjectCollapsible(props: {
|
|
|
33
35
|
children: ReactNode;
|
|
34
36
|
}): React.ReactElement;
|
|
35
37
|
|
|
36
|
-
export { API, APIExample, APIInfo, type APIInfoProps, ExampleResponse, ObjectCollapsible, Property, Response, ResponseTypes, Responses, Root, TypeScriptResponse };
|
|
38
|
+
export { API, APIExample, APIInfo, type APIInfoProps, ExampleResponse, ObjectCollapsible, Property, Request, Requests, Response, ResponseTypes, Responses, Root, TypeScriptResponse };
|
package/dist/components/api.js
CHANGED
|
@@ -6,18 +6,15 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
Accordion,
|
|
8
8
|
Accordions
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-3WVIP3N5.js";
|
|
10
10
|
import "../chunk-2KMKNVSN.js";
|
|
11
|
-
import
|
|
12
|
-
buttonVariants
|
|
13
|
-
} from "../chunk-H5USAX5W.js";
|
|
11
|
+
import "../chunk-CPOVVDVF.js";
|
|
14
12
|
import {
|
|
15
13
|
twMerge
|
|
16
14
|
} from "../chunk-TK3TM3MR.js";
|
|
17
15
|
import "../chunk-MLKGABMK.js";
|
|
18
16
|
|
|
19
17
|
// src/components/api.tsx
|
|
20
|
-
import { useState } from "react";
|
|
21
18
|
import { cva } from "class-variance-authority";
|
|
22
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
20
|
function Root({
|
|
@@ -28,7 +25,10 @@ function Root({
|
|
|
28
25
|
return /* @__PURE__ */ jsx(
|
|
29
26
|
"div",
|
|
30
27
|
{
|
|
31
|
-
className: twMerge(
|
|
28
|
+
className: twMerge(
|
|
29
|
+
"flex flex-col gap-24 text-sm text-muted-foreground",
|
|
30
|
+
className
|
|
31
|
+
),
|
|
32
32
|
...props,
|
|
33
33
|
children
|
|
34
34
|
}
|
|
@@ -42,7 +42,10 @@ function API({
|
|
|
42
42
|
return /* @__PURE__ */ jsx(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
|
-
className: twMerge(
|
|
45
|
+
className: twMerge(
|
|
46
|
+
"flex flex-col gap-x-6 gap-y-2 xl:flex-row xl:items-start",
|
|
47
|
+
className
|
|
48
|
+
),
|
|
46
49
|
...props,
|
|
47
50
|
children
|
|
48
51
|
}
|
|
@@ -53,7 +56,9 @@ var badgeVariants = cva("rounded-lg border px-1 py-0.5 text-xs font-medium", {
|
|
|
53
56
|
color: {
|
|
54
57
|
green: "border-green-400/50 bg-green-400/20 text-green-600 dark:text-green-400",
|
|
55
58
|
yellow: "border-yellow-400/50 bg-yellow-400/20 text-yellow-600 dark:text-yellow-400",
|
|
56
|
-
red: "border-red-400/50 bg-red-400/20 text-red-600 dark:text-red-400"
|
|
59
|
+
red: "border-red-400/50 bg-red-400/20 text-red-600 dark:text-red-400",
|
|
60
|
+
blue: "border-blue-400/50 bg-blue-400/20 text-blue-600 dark:text-blue-400",
|
|
61
|
+
orange: "border-orange-400/50 bg-orange-400/20 text-orange-600 dark:text-orange-400"
|
|
57
62
|
}
|
|
58
63
|
}
|
|
59
64
|
});
|
|
@@ -66,12 +71,14 @@ function APIInfo({
|
|
|
66
71
|
}) {
|
|
67
72
|
let color = "green";
|
|
68
73
|
if (["GET", "HEAD"].includes(method)) color = "green";
|
|
69
|
-
if (["
|
|
74
|
+
if (["PUT"].includes(method)) color = "yellow";
|
|
75
|
+
if (["PATCH"].includes(method)) color = "orange";
|
|
76
|
+
if (["POST"].includes(method)) color = "blue";
|
|
70
77
|
if (["DELETE"].includes(method)) color = "red";
|
|
71
|
-
return /* @__PURE__ */ jsxs("div", { className: twMerge("flex-1", className), ...props, children: [
|
|
72
|
-
/* @__PURE__ */ jsxs("h2", { className: "
|
|
73
|
-
/* @__PURE__ */ jsx("
|
|
74
|
-
/* @__PURE__ */ jsx("
|
|
78
|
+
return /* @__PURE__ */ jsxs("div", { className: twMerge("flex-1 prose-no-margin", className), ...props, children: [
|
|
79
|
+
/* @__PURE__ */ jsxs("h2", { className: "flex flex-row items-center gap-3 rounded-lg border bg-card p-3 text-base", children: [
|
|
80
|
+
/* @__PURE__ */ jsx("span", { className: twMerge(badgeVariants({ color })), children: method }),
|
|
81
|
+
/* @__PURE__ */ jsx("code", { children: route })
|
|
75
82
|
] }),
|
|
76
83
|
children
|
|
77
84
|
] });
|
|
@@ -98,40 +105,19 @@ function APIExample({
|
|
|
98
105
|
className,
|
|
99
106
|
...props
|
|
100
107
|
}) {
|
|
101
|
-
|
|
102
|
-
return /* @__PURE__ */ jsxs(
|
|
108
|
+
return /* @__PURE__ */ jsx(
|
|
103
109
|
"div",
|
|
104
110
|
{
|
|
105
|
-
className: twMerge("sticky top-6
|
|
111
|
+
className: twMerge("sticky top-6 prose-no-margin xl:w-[400px]", className),
|
|
106
112
|
...props,
|
|
107
|
-
children
|
|
108
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center gap-4 xl:hidden", children: [
|
|
109
|
-
/* @__PURE__ */ jsx("div", { className: "h-px flex-1 bg-border" }),
|
|
110
|
-
/* @__PURE__ */ jsx(
|
|
111
|
-
"button",
|
|
112
|
-
{
|
|
113
|
-
type: "button",
|
|
114
|
-
className: twMerge(
|
|
115
|
-
buttonVariants({
|
|
116
|
-
color: "secondary",
|
|
117
|
-
size: "lg"
|
|
118
|
-
})
|
|
119
|
-
),
|
|
120
|
-
onClick: () => {
|
|
121
|
-
setIsOpen((v) => !v);
|
|
122
|
-
},
|
|
123
|
-
children: "More Details"
|
|
124
|
-
}
|
|
125
|
-
),
|
|
126
|
-
/* @__PURE__ */ jsx("div", { className: "h-px flex-1 bg-border" })
|
|
127
|
-
] }),
|
|
128
|
-
/* @__PURE__ */ jsx("div", { className: twMerge(!isOpen && "max-xl:hidden"), children })
|
|
129
|
-
]
|
|
113
|
+
children
|
|
130
114
|
}
|
|
131
115
|
);
|
|
132
116
|
}
|
|
133
117
|
var Responses = Tabs;
|
|
134
118
|
var Response = Tab;
|
|
119
|
+
var Requests = Tabs;
|
|
120
|
+
var Request = Tab;
|
|
135
121
|
function ResponseTypes(props) {
|
|
136
122
|
return /* @__PURE__ */ jsx(
|
|
137
123
|
Accordions,
|
|
@@ -159,6 +145,8 @@ export {
|
|
|
159
145
|
ExampleResponse,
|
|
160
146
|
ObjectCollapsible,
|
|
161
147
|
Property,
|
|
148
|
+
Request,
|
|
149
|
+
Requests,
|
|
162
150
|
Response,
|
|
163
151
|
ResponseTypes,
|
|
164
152
|
Responses,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
declare const Callout: React.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "
|
|
4
|
+
declare const Callout: React.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "type" | "icon"> & {
|
|
5
5
|
title?: ReactNode;
|
|
6
6
|
/**
|
|
7
7
|
* @defaultValue info
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CodeBlock,
|
|
4
4
|
Pre
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-Q3FSJZ3E.js";
|
|
6
6
|
import "../chunk-VYTHQTZE.js";
|
|
7
7
|
import "../chunk-2KMKNVSN.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-CPOVVDVF.js";
|
|
9
9
|
import "../chunk-TK3TM3MR.js";
|
|
10
10
|
import "../chunk-MLKGABMK.js";
|
|
11
11
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
SearchDialog
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-G7WCPUM7.js";
|
|
5
5
|
import "../../chunk-3F57TIUQ.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-ET4TW6M5.js";
|
|
7
7
|
import "../../chunk-HLGNIWUN.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-CPOVVDVF.js";
|
|
9
9
|
import "../../chunk-TK3TM3MR.js";
|
|
10
10
|
import "../../chunk-MLKGABMK.js";
|
|
11
11
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
SearchDialog
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-G7WCPUM7.js";
|
|
5
5
|
import "../../chunk-3F57TIUQ.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-ET4TW6M5.js";
|
|
7
7
|
import {
|
|
8
8
|
useI18n
|
|
9
9
|
} from "../../chunk-HLGNIWUN.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-CPOVVDVF.js";
|
|
11
11
|
import "../../chunk-TK3TM3MR.js";
|
|
12
12
|
import "../../chunk-MLKGABMK.js";
|
|
13
13
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SearchDialog
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-G7WCPUM7.js";
|
|
4
4
|
import "../../chunk-3F57TIUQ.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-ET4TW6M5.js";
|
|
6
6
|
import "../../chunk-HLGNIWUN.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-CPOVVDVF.js";
|
|
8
8
|
import "../../chunk-TK3TM3MR.js";
|
|
9
9
|
import "../../chunk-MLKGABMK.js";
|
|
10
10
|
export {
|
|
@@ -27,7 +27,7 @@ function RootToggle({
|
|
|
27
27
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
28
28
|
/* @__PURE__ */ jsxs(PopoverTrigger, { className: "-mx-2 flex flex-row items-center gap-2.5 rounded-lg p-2 hover:bg-muted", children: [
|
|
29
29
|
/* @__PURE__ */ jsx(Item, { ...selected }),
|
|
30
|
-
/* @__PURE__ */ jsx(ChevronDown, { className: "
|
|
30
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "size-4 text-muted-foreground md:me-1.5" })
|
|
31
31
|
] }),
|
|
32
32
|
/* @__PURE__ */ jsx(PopoverContent, { className: "w-[var(--radix-popover-trigger-width)] overflow-hidden p-0", children: options.map((item) => /* @__PURE__ */ jsx(
|
|
33
33
|
Link,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import "../chunk-AN2Y6MA2.js";
|
|
6
6
|
import {
|
|
7
7
|
buttonVariants
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-CPOVVDVF.js";
|
|
9
9
|
import {
|
|
10
10
|
twMerge
|
|
11
11
|
} from "../chunk-TK3TM3MR.js";
|
|
@@ -47,7 +47,7 @@ function RollButton({
|
|
|
47
47
|
className: twMerge(
|
|
48
48
|
buttonVariants({
|
|
49
49
|
color: "secondary",
|
|
50
|
-
className: "fixed top-
|
|
50
|
+
className: "fixed top-20 [&_svg]:size-4 gap-1 left-1/2 translate-x-[-50%] z-10 shadow-md rounded-full transition-all md:top-6"
|
|
51
51
|
}),
|
|
52
52
|
!show && "translate-y-20 opacity-0"
|
|
53
53
|
),
|
package/dist/docs.client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LinkItemType, S as SidebarProps,
|
|
2
|
-
export {
|
|
1
|
+
import { L as LinkItemType, S as SidebarProps, a as SharedNavProps } from './layout-C2Cxe6NB.js';
|
|
2
|
+
export { b as Sidebar } from './layout-C2Cxe6NB.js';
|
|
3
3
|
export { T as TreeContextProvider } from './tree-CrKzI9Nz.js';
|
|
4
4
|
import { ButtonHTMLAttributes } from 'react';
|
|
5
5
|
import 'fumadocs-core/server';
|
|
@@ -14,6 +14,6 @@ declare function DynamicSidebar(props: SidebarProps): React.ReactElement;
|
|
|
14
14
|
|
|
15
15
|
declare function ThemeToggle({ className, ...props }: ButtonHTMLAttributes<HTMLButtonElement>): React.ReactElement;
|
|
16
16
|
|
|
17
|
-
declare function SubNav({ title, url, children, enableSearch, }:
|
|
17
|
+
declare function SubNav({ title, url, transparentMode, children, enableSearch, }: SharedNavProps): React.ReactElement;
|
|
18
18
|
|
|
19
19
|
export { DynamicSidebar, LinksMenu, SubNav, ThemeToggle };
|