@krak-stack/registry 0.1.3 → 0.1.5
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/components/ui/app-brand.js +20 -20
- package/dist/components/ui/code-block.js +38 -38
- package/dist/components/ui/copy-button.js +16 -16
- package/dist/components/ui/data-table.js +687 -687
- package/dist/components/ui/editing-locale-switcher.js +54 -54
- package/dist/components/ui/effect-form.js +492 -492
- package/dist/components/ui/file-picker.js +96 -96
- package/dist/components/ui/form.js +418 -418
- package/dist/components/ui/google-map.js +27 -27
- package/dist/components/ui/icon-input.js +93 -93
- package/dist/components/ui/loading.js +5 -5
- package/dist/components/ui/locale-switcher.js +48 -48
- package/dist/components/ui/pagination.js +92 -92
- package/dist/components/ui/search-menu.js +93 -93
- package/dist/components/ui/sidebar-layout.js +156 -156
- package/dist/components/ui/stats-card.js +28 -28
- package/dist/components/ui/theme-switcher.js +64 -64
- package/dist/components/ui/virtualized-combobox.js +66 -66
- package/dist/lib/docs-ai.js +14 -14
- package/dist/lib/docs-core.js +396 -396
- package/dist/services/agent/client/index.js +364 -364
- package/package.json +2 -2
package/dist/lib/docs-core.js
CHANGED
|
@@ -15,7 +15,7 @@ import { parse } from "yaml";
|
|
|
15
15
|
|
|
16
16
|
// ../../src/components/ui/app-brand.tsx
|
|
17
17
|
import { Link } from "@tanstack/react-router";
|
|
18
|
-
import {
|
|
18
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
19
19
|
function AppBrand({
|
|
20
20
|
className,
|
|
21
21
|
label,
|
|
@@ -30,85 +30,85 @@ function AppBrand({
|
|
|
30
30
|
const iconClassName = variant === "sidebar" ? "bg-sidebar-primary" : "bg-primary";
|
|
31
31
|
const iconColor = variant === "sidebar" ? "var(--sidebar-primary-foreground)" : "var(--primary-foreground)";
|
|
32
32
|
const contentClassName = variant === "sidebar" ? "group-data-[collapsible=icon]:hidden" : undefined;
|
|
33
|
-
const content = /* @__PURE__ */
|
|
33
|
+
const content = /* @__PURE__ */ jsxs(Fragment, {
|
|
34
34
|
children: [
|
|
35
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ jsx("div", {
|
|
36
36
|
className: [
|
|
37
37
|
"flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md",
|
|
38
38
|
imageSrc ? "border bg-background" : iconClassName
|
|
39
39
|
].join(" "),
|
|
40
|
-
children: imageSrc ? /* @__PURE__ */
|
|
40
|
+
children: imageSrc ? /* @__PURE__ */ jsx("img", {
|
|
41
41
|
src: imageSrc,
|
|
42
42
|
alt: label,
|
|
43
43
|
className: "size-full object-cover"
|
|
44
|
-
}
|
|
44
|
+
}) : Icon ? /* @__PURE__ */ jsx(Icon, {
|
|
45
45
|
className: "size-4",
|
|
46
46
|
color: iconColor
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
/* @__PURE__ */
|
|
47
|
+
}) : null
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ jsxs("div", {
|
|
50
50
|
className: ["flex min-w-0 flex-col leading-tight", contentClassName].filter(Boolean).join(" "),
|
|
51
51
|
children: [
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ jsx("span", {
|
|
53
53
|
className: "truncate font-semibold tracking-tight",
|
|
54
54
|
children: label
|
|
55
|
-
}
|
|
56
|
-
subtitle ? /* @__PURE__ */
|
|
55
|
+
}),
|
|
56
|
+
subtitle ? /* @__PURE__ */ jsx("span", {
|
|
57
57
|
className: "text-muted-foreground truncate text-xs",
|
|
58
58
|
children: subtitle
|
|
59
|
-
}
|
|
59
|
+
}) : null
|
|
60
60
|
]
|
|
61
|
-
}
|
|
61
|
+
})
|
|
62
62
|
]
|
|
63
|
-
}
|
|
63
|
+
});
|
|
64
64
|
const brandClassName = [
|
|
65
65
|
"flex min-w-0 items-center gap-2 text-foreground hover:text-foreground",
|
|
66
66
|
variant === "sidebar" ? "p-2 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-0" : "",
|
|
67
67
|
className
|
|
68
68
|
].filter(Boolean).join(" ");
|
|
69
69
|
if (to === null) {
|
|
70
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ jsx("div", {
|
|
71
71
|
className: brandClassName,
|
|
72
72
|
...props,
|
|
73
73
|
children: content
|
|
74
|
-
}
|
|
74
|
+
});
|
|
75
75
|
}
|
|
76
76
|
if (href) {
|
|
77
|
-
return /* @__PURE__ */
|
|
77
|
+
return /* @__PURE__ */ jsx("a", {
|
|
78
78
|
className: brandClassName,
|
|
79
79
|
href,
|
|
80
80
|
...props,
|
|
81
81
|
children: content
|
|
82
|
-
}
|
|
82
|
+
});
|
|
83
83
|
}
|
|
84
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ jsx(Link, {
|
|
85
85
|
to: to ?? "/",
|
|
86
86
|
className: brandClassName,
|
|
87
87
|
...props,
|
|
88
88
|
children: content
|
|
89
|
-
}
|
|
89
|
+
});
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
// ../../src/components/ui/collapsible.tsx
|
|
93
93
|
import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
|
|
94
|
-
import {
|
|
94
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
95
95
|
function Collapsible({ ...props }) {
|
|
96
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ jsx2(CollapsiblePrimitive.Root, {
|
|
97
97
|
"data-slot": "collapsible",
|
|
98
98
|
...props
|
|
99
|
-
}
|
|
99
|
+
});
|
|
100
100
|
}
|
|
101
101
|
function CollapsibleTrigger({ ...props }) {
|
|
102
|
-
return /* @__PURE__ */
|
|
102
|
+
return /* @__PURE__ */ jsx2(CollapsiblePrimitive.Trigger, {
|
|
103
103
|
"data-slot": "collapsible-trigger",
|
|
104
104
|
...props
|
|
105
|
-
}
|
|
105
|
+
});
|
|
106
106
|
}
|
|
107
107
|
function CollapsibleContent({ ...props }) {
|
|
108
|
-
return /* @__PURE__ */
|
|
108
|
+
return /* @__PURE__ */ jsx2(CollapsiblePrimitive.Panel, {
|
|
109
109
|
"data-slot": "collapsible-content",
|
|
110
110
|
...props
|
|
111
|
-
}
|
|
111
|
+
});
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
// ../../src/components/ui/search-menu.tsx
|
|
@@ -127,7 +127,7 @@ function cn(...inputs) {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
// ../../src/components/ui/button.tsx
|
|
130
|
-
import {
|
|
130
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
131
131
|
var buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
132
132
|
variants: {
|
|
133
133
|
variant: {
|
|
@@ -160,11 +160,11 @@ function Button({
|
|
|
160
160
|
size = "default",
|
|
161
161
|
...props
|
|
162
162
|
}) {
|
|
163
|
-
return /* @__PURE__ */
|
|
163
|
+
return /* @__PURE__ */ jsx3(ButtonPrimitive, {
|
|
164
164
|
"data-slot": "button",
|
|
165
165
|
className: cn(buttonVariants({ variant, size, className })),
|
|
166
166
|
...props
|
|
167
|
-
}
|
|
167
|
+
});
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
// ../../src/components/ui/command.tsx
|
|
@@ -174,99 +174,99 @@ import { SearchIcon } from "lucide-react";
|
|
|
174
174
|
// ../../src/components/ui/dialog.tsx
|
|
175
175
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
176
176
|
import { XIcon } from "lucide-react";
|
|
177
|
-
import {
|
|
177
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
178
178
|
function Dialog({ ...props }) {
|
|
179
|
-
return /* @__PURE__ */
|
|
179
|
+
return /* @__PURE__ */ jsx4(DialogPrimitive.Root, {
|
|
180
180
|
"data-slot": "dialog",
|
|
181
181
|
...props
|
|
182
|
-
}
|
|
182
|
+
});
|
|
183
183
|
}
|
|
184
184
|
function DialogPortal({ ...props }) {
|
|
185
|
-
return /* @__PURE__ */
|
|
185
|
+
return /* @__PURE__ */ jsx4(DialogPrimitive.Portal, {
|
|
186
186
|
"data-slot": "dialog-portal",
|
|
187
187
|
...props
|
|
188
|
-
}
|
|
188
|
+
});
|
|
189
189
|
}
|
|
190
190
|
function DialogOverlay({
|
|
191
191
|
className,
|
|
192
192
|
...props
|
|
193
193
|
}) {
|
|
194
|
-
return /* @__PURE__ */
|
|
194
|
+
return /* @__PURE__ */ jsx4(DialogPrimitive.Backdrop, {
|
|
195
195
|
"data-slot": "dialog-overlay",
|
|
196
196
|
className: cn("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", className),
|
|
197
197
|
...props
|
|
198
|
-
}
|
|
198
|
+
});
|
|
199
199
|
}
|
|
200
200
|
function DialogContent({
|
|
201
201
|
className,
|
|
202
202
|
children,
|
|
203
203
|
...props
|
|
204
204
|
}) {
|
|
205
|
-
return /* @__PURE__ */
|
|
205
|
+
return /* @__PURE__ */ jsxs2(DialogPortal, {
|
|
206
206
|
children: [
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ jsx4(DialogOverlay, {}),
|
|
208
|
+
/* @__PURE__ */ jsxs2(DialogPrimitive.Popup, {
|
|
209
209
|
"data-slot": "dialog-content",
|
|
210
210
|
className: cn("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-lg data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
211
211
|
...props,
|
|
212
212
|
children: [
|
|
213
213
|
children,
|
|
214
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ jsxs2(DialogPrimitive.Close, {
|
|
215
215
|
className: "focus-visible:ring-ring absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:outline-none disabled:pointer-events-none",
|
|
216
216
|
children: [
|
|
217
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ jsx4(XIcon, {
|
|
218
218
|
className: "size-4"
|
|
219
|
-
}
|
|
220
|
-
/* @__PURE__ */
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ jsx4("span", {
|
|
221
221
|
className: "sr-only",
|
|
222
222
|
children: "Close"
|
|
223
|
-
}
|
|
223
|
+
})
|
|
224
224
|
]
|
|
225
|
-
}
|
|
225
|
+
})
|
|
226
226
|
]
|
|
227
|
-
}
|
|
227
|
+
})
|
|
228
228
|
]
|
|
229
|
-
}
|
|
229
|
+
});
|
|
230
230
|
}
|
|
231
231
|
function DialogHeader({ className, ...props }) {
|
|
232
|
-
return /* @__PURE__ */
|
|
232
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
233
233
|
"data-slot": "dialog-header",
|
|
234
234
|
className: cn("grid gap-1.5", className),
|
|
235
235
|
...props
|
|
236
|
-
}
|
|
236
|
+
});
|
|
237
237
|
}
|
|
238
238
|
function DialogTitle({
|
|
239
239
|
className,
|
|
240
240
|
...props
|
|
241
241
|
}) {
|
|
242
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ jsx4(DialogPrimitive.Title, {
|
|
243
243
|
"data-slot": "dialog-title",
|
|
244
244
|
className: cn("text-lg font-medium", className),
|
|
245
245
|
...props
|
|
246
|
-
}
|
|
246
|
+
});
|
|
247
247
|
}
|
|
248
248
|
function DialogDescription({
|
|
249
249
|
className,
|
|
250
250
|
...props
|
|
251
251
|
}) {
|
|
252
|
-
return /* @__PURE__ */
|
|
252
|
+
return /* @__PURE__ */ jsx4(DialogPrimitive.Description, {
|
|
253
253
|
"data-slot": "dialog-description",
|
|
254
254
|
className: cn("text-sm text-muted-foreground", className),
|
|
255
255
|
...props
|
|
256
|
-
}
|
|
256
|
+
});
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
// ../../src/components/ui/command.tsx
|
|
260
|
-
import {
|
|
260
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
261
261
|
function Command({
|
|
262
262
|
className,
|
|
263
263
|
...props
|
|
264
264
|
}) {
|
|
265
|
-
return /* @__PURE__ */
|
|
265
|
+
return /* @__PURE__ */ jsx5(CommandPrimitive, {
|
|
266
266
|
"data-slot": "command",
|
|
267
267
|
className: cn("flex size-full flex-col overflow-hidden rounded-xl bg-popover p-1 text-popover-foreground", className),
|
|
268
268
|
...props
|
|
269
|
-
}
|
|
269
|
+
});
|
|
270
270
|
}
|
|
271
271
|
function CommandDialog({
|
|
272
272
|
title,
|
|
@@ -275,98 +275,98 @@ function CommandDialog({
|
|
|
275
275
|
className,
|
|
276
276
|
...props
|
|
277
277
|
}) {
|
|
278
|
-
return /* @__PURE__ */
|
|
278
|
+
return /* @__PURE__ */ jsx5(Dialog, {
|
|
279
279
|
...props,
|
|
280
|
-
children: /* @__PURE__ */
|
|
280
|
+
children: /* @__PURE__ */ jsxs3(DialogContent, {
|
|
281
281
|
className: cn("top-1/3 translate-y-0 overflow-hidden rounded-xl p-0", className),
|
|
282
282
|
children: [
|
|
283
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ jsxs3(DialogHeader, {
|
|
284
284
|
className: "sr-only",
|
|
285
285
|
children: [
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ jsx5(DialogTitle, {
|
|
287
287
|
children: title
|
|
288
|
-
}
|
|
289
|
-
/* @__PURE__ */
|
|
288
|
+
}),
|
|
289
|
+
/* @__PURE__ */ jsx5(DialogDescription, {
|
|
290
290
|
children: description
|
|
291
|
-
}
|
|
291
|
+
})
|
|
292
292
|
]
|
|
293
|
-
}
|
|
293
|
+
}),
|
|
294
294
|
children
|
|
295
295
|
]
|
|
296
|
-
}
|
|
297
|
-
}
|
|
296
|
+
})
|
|
297
|
+
});
|
|
298
298
|
}
|
|
299
299
|
function CommandInput({
|
|
300
300
|
className,
|
|
301
301
|
...props
|
|
302
302
|
}) {
|
|
303
|
-
return /* @__PURE__ */
|
|
303
|
+
return /* @__PURE__ */ jsx5("div", {
|
|
304
304
|
"data-slot": "command-input-wrapper",
|
|
305
305
|
className: "p-1 pb-0",
|
|
306
|
-
children: /* @__PURE__ */
|
|
306
|
+
children: /* @__PURE__ */ jsxs3("div", {
|
|
307
307
|
className: "border-input/30 bg-input/30 flex h-9 items-center gap-2 rounded-lg border px-2 shadow-none",
|
|
308
308
|
children: [
|
|
309
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ jsx5(SearchIcon, {
|
|
310
310
|
className: "size-4 shrink-0 opacity-50"
|
|
311
|
-
}
|
|
312
|
-
/* @__PURE__ */
|
|
311
|
+
}),
|
|
312
|
+
/* @__PURE__ */ jsx5(CommandPrimitive.Input, {
|
|
313
313
|
"data-slot": "command-input",
|
|
314
314
|
className: cn("w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
315
315
|
...props
|
|
316
|
-
}
|
|
316
|
+
})
|
|
317
317
|
]
|
|
318
|
-
}
|
|
319
|
-
}
|
|
318
|
+
})
|
|
319
|
+
});
|
|
320
320
|
}
|
|
321
321
|
function CommandList({
|
|
322
322
|
className,
|
|
323
323
|
...props
|
|
324
324
|
}) {
|
|
325
|
-
return /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ jsx5(CommandPrimitive.List, {
|
|
326
326
|
"data-slot": "command-list",
|
|
327
327
|
className: cn("max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", className),
|
|
328
328
|
...props
|
|
329
|
-
}
|
|
329
|
+
});
|
|
330
330
|
}
|
|
331
331
|
function CommandEmpty({
|
|
332
332
|
className,
|
|
333
333
|
...props
|
|
334
334
|
}) {
|
|
335
|
-
return /* @__PURE__ */
|
|
335
|
+
return /* @__PURE__ */ jsx5(CommandPrimitive.Empty, {
|
|
336
336
|
"data-slot": "command-empty",
|
|
337
337
|
className: cn("py-6 text-center text-sm", className),
|
|
338
338
|
...props
|
|
339
|
-
}
|
|
339
|
+
});
|
|
340
340
|
}
|
|
341
341
|
function CommandGroup({
|
|
342
342
|
className,
|
|
343
343
|
...props
|
|
344
344
|
}) {
|
|
345
|
-
return /* @__PURE__ */
|
|
345
|
+
return /* @__PURE__ */ jsx5(CommandPrimitive.Group, {
|
|
346
346
|
"data-slot": "command-group",
|
|
347
347
|
className: cn("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground", className),
|
|
348
348
|
...props
|
|
349
|
-
}
|
|
349
|
+
});
|
|
350
350
|
}
|
|
351
351
|
function CommandItem({
|
|
352
352
|
className,
|
|
353
353
|
...props
|
|
354
354
|
}) {
|
|
355
|
-
return /* @__PURE__ */
|
|
355
|
+
return /* @__PURE__ */ jsx5(CommandPrimitive.Item, {
|
|
356
356
|
"data-slot": "command-item",
|
|
357
357
|
className: cn("group/command-item relative flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
358
358
|
...props
|
|
359
|
-
}
|
|
359
|
+
});
|
|
360
360
|
}
|
|
361
361
|
function CommandShortcut({
|
|
362
362
|
className,
|
|
363
363
|
...props
|
|
364
364
|
}) {
|
|
365
|
-
return /* @__PURE__ */
|
|
365
|
+
return /* @__PURE__ */ jsx5("span", {
|
|
366
366
|
"data-slot": "command-shortcut",
|
|
367
367
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground", className),
|
|
368
368
|
...props
|
|
369
|
-
}
|
|
369
|
+
});
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
// ../../src/paraglide/runtime.js
|
|
@@ -798,7 +798,7 @@ function isCustomStrategy(strategy2) {
|
|
|
798
798
|
}
|
|
799
799
|
|
|
800
800
|
// ../../src/components/ui/search-menu.tsx
|
|
801
|
-
import {
|
|
801
|
+
import { jsx as jsx6, jsxs as jsxs4, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
802
802
|
var messages = {
|
|
803
803
|
en: {
|
|
804
804
|
title: "Search",
|
|
@@ -862,9 +862,9 @@ function SearchMenu({
|
|
|
862
862
|
document.addEventListener("keydown", onKeyDown);
|
|
863
863
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
864
864
|
}, [isOpen, setOpen]);
|
|
865
|
-
return /* @__PURE__ */
|
|
865
|
+
return /* @__PURE__ */ jsxs4(Fragment2, {
|
|
866
866
|
children: [
|
|
867
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ jsxs4(Button, {
|
|
868
868
|
"aria-label": resolvedPlaceholder,
|
|
869
869
|
type: "button",
|
|
870
870
|
variant: "outline",
|
|
@@ -872,40 +872,40 @@ function SearchMenu({
|
|
|
872
872
|
className: cn("sm:h-9 sm:w-64 sm:justify-start sm:gap-2.5 sm:px-2.5 sm:font-normal", className),
|
|
873
873
|
onClick: () => setOpen(true),
|
|
874
874
|
children: [
|
|
875
|
-
/* @__PURE__ */
|
|
875
|
+
/* @__PURE__ */ jsx6(SearchIcon2, {
|
|
876
876
|
className: "size-4 shrink-0"
|
|
877
|
-
}
|
|
878
|
-
/* @__PURE__ */
|
|
877
|
+
}),
|
|
878
|
+
/* @__PURE__ */ jsx6("span", {
|
|
879
879
|
className: "text-muted-foreground hidden min-w-0 flex-1 truncate text-left font-normal sm:block",
|
|
880
880
|
children: resolvedPlaceholder
|
|
881
|
-
}
|
|
882
|
-
/* @__PURE__ */
|
|
881
|
+
}),
|
|
882
|
+
/* @__PURE__ */ jsx6("kbd", {
|
|
883
883
|
className: "bg-muted text-muted-foreground pointer-events-none hidden h-5 items-center rounded border px-1.5 font-mono text-[10px] font-medium sm:inline-flex",
|
|
884
884
|
children: shortcutLabel
|
|
885
|
-
}
|
|
885
|
+
})
|
|
886
886
|
]
|
|
887
|
-
}
|
|
888
|
-
/* @__PURE__ */
|
|
887
|
+
}),
|
|
888
|
+
/* @__PURE__ */ jsx6(CommandDialog, {
|
|
889
889
|
open: isOpen,
|
|
890
890
|
onOpenChange: setOpen,
|
|
891
891
|
title: resolvedTitle,
|
|
892
892
|
description: resolvedDescription,
|
|
893
|
-
children: /* @__PURE__ */
|
|
893
|
+
children: /* @__PURE__ */ jsxs4(Command, {
|
|
894
894
|
...shouldFilter === undefined ? {} : { shouldFilter },
|
|
895
895
|
children: [
|
|
896
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ jsx6(CommandInput, {
|
|
897
897
|
placeholder: resolvedInputPlaceholder,
|
|
898
898
|
...query === undefined ? {} : { value: query },
|
|
899
899
|
...onQueryChange ? { onValueChange: onQueryChange } : {}
|
|
900
|
-
}
|
|
901
|
-
/* @__PURE__ */
|
|
900
|
+
}),
|
|
901
|
+
/* @__PURE__ */ jsxs4(CommandList, {
|
|
902
902
|
children: [
|
|
903
|
-
/* @__PURE__ */
|
|
903
|
+
/* @__PURE__ */ jsx6(CommandEmpty, {
|
|
904
904
|
children: resolvedEmptyMessage
|
|
905
|
-
}
|
|
906
|
-
groups.map((group) => /* @__PURE__ */
|
|
905
|
+
}),
|
|
906
|
+
groups.map((group) => /* @__PURE__ */ jsx6(CommandGroup, {
|
|
907
907
|
heading: group.heading,
|
|
908
|
-
children: group.items.map((item) => /* @__PURE__ */
|
|
908
|
+
children: group.items.map((item) => /* @__PURE__ */ jsxs4(CommandItem, {
|
|
909
909
|
className: "data-[selected=false]:!text-foreground data-[selected=true]:bg-muted data-[selected=true]:text-foreground gap-3 py-2 data-[selected=false]:!bg-transparent",
|
|
910
910
|
value: item.label,
|
|
911
911
|
...item.keywords ? { keywords: item.keywords } : {},
|
|
@@ -916,36 +916,36 @@ function SearchMenu({
|
|
|
916
916
|
},
|
|
917
917
|
...item.disabled === undefined ? {} : { disabled: item.disabled },
|
|
918
918
|
children: [
|
|
919
|
-
item.icon ? /* @__PURE__ */
|
|
919
|
+
item.icon ? /* @__PURE__ */ jsx6("div", {
|
|
920
920
|
className: "text-muted-foreground bg-background group-data-[selected=true]/command-item:bg-background flex size-8 shrink-0 items-center justify-center rounded-md border",
|
|
921
921
|
children: item.icon
|
|
922
|
-
}
|
|
923
|
-
/* @__PURE__ */
|
|
922
|
+
}) : null,
|
|
923
|
+
/* @__PURE__ */ jsxs4("div", {
|
|
924
924
|
className: "flex min-w-0 flex-1 flex-col gap-0.5",
|
|
925
925
|
children: [
|
|
926
|
-
/* @__PURE__ */
|
|
926
|
+
/* @__PURE__ */ jsx6("span", {
|
|
927
927
|
className: "truncate font-medium",
|
|
928
928
|
children: item.label
|
|
929
|
-
}
|
|
930
|
-
item.description ? /* @__PURE__ */
|
|
929
|
+
}),
|
|
930
|
+
item.description ? /* @__PURE__ */ jsx6("span", {
|
|
931
931
|
className: "text-muted-foreground truncate text-xs",
|
|
932
932
|
children: item.description
|
|
933
|
-
}
|
|
933
|
+
}) : null
|
|
934
934
|
]
|
|
935
|
-
}
|
|
936
|
-
item.shortcut ? /* @__PURE__ */
|
|
935
|
+
}),
|
|
936
|
+
item.shortcut ? /* @__PURE__ */ jsx6(CommandShortcut, {
|
|
937
937
|
children: item.shortcut
|
|
938
|
-
}
|
|
938
|
+
}) : null
|
|
939
939
|
]
|
|
940
|
-
}, item.id
|
|
941
|
-
}, group.heading
|
|
940
|
+
}, item.id))
|
|
941
|
+
}, group.heading))
|
|
942
942
|
]
|
|
943
|
-
}
|
|
943
|
+
})
|
|
944
944
|
]
|
|
945
|
-
}
|
|
946
|
-
}
|
|
945
|
+
})
|
|
946
|
+
})
|
|
947
947
|
]
|
|
948
|
-
}
|
|
948
|
+
});
|
|
949
949
|
}
|
|
950
950
|
|
|
951
951
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
@@ -1000,35 +1000,35 @@ function useIsMobile() {
|
|
|
1000
1000
|
|
|
1001
1001
|
// ../../src/components/ui/input.tsx
|
|
1002
1002
|
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
1003
|
-
import {
|
|
1003
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1004
1004
|
|
|
1005
1005
|
// ../../src/components/ui/separator.tsx
|
|
1006
1006
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
1007
|
-
import {
|
|
1007
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1008
1008
|
|
|
1009
1009
|
// ../../src/components/ui/sheet.tsx
|
|
1010
1010
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
1011
1011
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
1012
|
-
import {
|
|
1012
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1013
1013
|
"use client";
|
|
1014
1014
|
function Sheet({ ...props }) {
|
|
1015
|
-
return /* @__PURE__ */
|
|
1015
|
+
return /* @__PURE__ */ jsx9(SheetPrimitive.Root, {
|
|
1016
1016
|
"data-slot": "sheet",
|
|
1017
1017
|
...props
|
|
1018
|
-
}
|
|
1018
|
+
});
|
|
1019
1019
|
}
|
|
1020
1020
|
function SheetPortal({ ...props }) {
|
|
1021
|
-
return /* @__PURE__ */
|
|
1021
|
+
return /* @__PURE__ */ jsx9(SheetPrimitive.Portal, {
|
|
1022
1022
|
"data-slot": "sheet-portal",
|
|
1023
1023
|
...props
|
|
1024
|
-
}
|
|
1024
|
+
});
|
|
1025
1025
|
}
|
|
1026
1026
|
function SheetOverlay({ className, ...props }) {
|
|
1027
|
-
return /* @__PURE__ */
|
|
1027
|
+
return /* @__PURE__ */ jsx9(SheetPrimitive.Backdrop, {
|
|
1028
1028
|
"data-slot": "sheet-overlay",
|
|
1029
1029
|
className: cn("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs", className),
|
|
1030
1030
|
...props
|
|
1031
|
-
}
|
|
1031
|
+
});
|
|
1032
1032
|
}
|
|
1033
1033
|
function SheetContent({
|
|
1034
1034
|
className,
|
|
@@ -1037,79 +1037,79 @@ function SheetContent({
|
|
|
1037
1037
|
showCloseButton = true,
|
|
1038
1038
|
...props
|
|
1039
1039
|
}) {
|
|
1040
|
-
return /* @__PURE__ */
|
|
1040
|
+
return /* @__PURE__ */ jsxs5(SheetPortal, {
|
|
1041
1041
|
children: [
|
|
1042
|
-
/* @__PURE__ */
|
|
1043
|
-
/* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ jsx9(SheetOverlay, {}),
|
|
1043
|
+
/* @__PURE__ */ jsxs5(SheetPrimitive.Popup, {
|
|
1044
1044
|
"data-slot": "sheet-content",
|
|
1045
1045
|
"data-side": side,
|
|
1046
1046
|
className: cn("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", className),
|
|
1047
1047
|
...props,
|
|
1048
1048
|
children: [
|
|
1049
1049
|
children,
|
|
1050
|
-
showCloseButton && /* @__PURE__ */
|
|
1050
|
+
showCloseButton && /* @__PURE__ */ jsxs5(SheetPrimitive.Close, {
|
|
1051
1051
|
"data-slot": "sheet-close",
|
|
1052
|
-
render: /* @__PURE__ */
|
|
1052
|
+
render: /* @__PURE__ */ jsx9(Button, {
|
|
1053
1053
|
variant: "ghost",
|
|
1054
1054
|
className: "absolute top-4 right-4",
|
|
1055
1055
|
size: "icon-sm"
|
|
1056
|
-
}
|
|
1056
|
+
}),
|
|
1057
1057
|
children: [
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
/* @__PURE__ */
|
|
1058
|
+
/* @__PURE__ */ jsx9(XIcon2, {}),
|
|
1059
|
+
/* @__PURE__ */ jsx9("span", {
|
|
1060
1060
|
className: "sr-only",
|
|
1061
1061
|
children: "Close"
|
|
1062
|
-
}
|
|
1062
|
+
})
|
|
1063
1063
|
]
|
|
1064
|
-
}
|
|
1064
|
+
})
|
|
1065
1065
|
]
|
|
1066
|
-
}
|
|
1066
|
+
})
|
|
1067
1067
|
]
|
|
1068
|
-
}
|
|
1068
|
+
});
|
|
1069
1069
|
}
|
|
1070
1070
|
function SheetHeader({ className, ...props }) {
|
|
1071
|
-
return /* @__PURE__ */
|
|
1071
|
+
return /* @__PURE__ */ jsx9("div", {
|
|
1072
1072
|
"data-slot": "sheet-header",
|
|
1073
1073
|
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
1074
1074
|
...props
|
|
1075
|
-
}
|
|
1075
|
+
});
|
|
1076
1076
|
}
|
|
1077
1077
|
function SheetTitle({ className, ...props }) {
|
|
1078
|
-
return /* @__PURE__ */
|
|
1078
|
+
return /* @__PURE__ */ jsx9(SheetPrimitive.Title, {
|
|
1079
1079
|
"data-slot": "sheet-title",
|
|
1080
1080
|
className: cn("font-medium text-foreground", className),
|
|
1081
1081
|
...props
|
|
1082
|
-
}
|
|
1082
|
+
});
|
|
1083
1083
|
}
|
|
1084
1084
|
function SheetDescription({
|
|
1085
1085
|
className,
|
|
1086
1086
|
...props
|
|
1087
1087
|
}) {
|
|
1088
|
-
return /* @__PURE__ */
|
|
1088
|
+
return /* @__PURE__ */ jsx9(SheetPrimitive.Description, {
|
|
1089
1089
|
"data-slot": "sheet-description",
|
|
1090
1090
|
className: cn("text-sm text-muted-foreground", className),
|
|
1091
1091
|
...props
|
|
1092
|
-
}
|
|
1092
|
+
});
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
1095
|
// ../../src/components/ui/skeleton.tsx
|
|
1096
|
-
import {
|
|
1096
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
1097
1097
|
|
|
1098
1098
|
// ../../src/components/ui/tooltip.tsx
|
|
1099
1099
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
1100
|
-
import {
|
|
1100
|
+
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1101
1101
|
"use client";
|
|
1102
1102
|
function Tooltip({ ...props }) {
|
|
1103
|
-
return /* @__PURE__ */
|
|
1103
|
+
return /* @__PURE__ */ jsx11(TooltipPrimitive.Root, {
|
|
1104
1104
|
"data-slot": "tooltip",
|
|
1105
1105
|
...props
|
|
1106
|
-
}
|
|
1106
|
+
});
|
|
1107
1107
|
}
|
|
1108
1108
|
function TooltipTrigger({ ...props }) {
|
|
1109
|
-
return /* @__PURE__ */
|
|
1109
|
+
return /* @__PURE__ */ jsx11(TooltipPrimitive.Trigger, {
|
|
1110
1110
|
"data-slot": "tooltip-trigger",
|
|
1111
1111
|
...props
|
|
1112
|
-
}
|
|
1112
|
+
});
|
|
1113
1113
|
}
|
|
1114
1114
|
function TooltipContent({
|
|
1115
1115
|
className,
|
|
@@ -1120,31 +1120,31 @@ function TooltipContent({
|
|
|
1120
1120
|
children,
|
|
1121
1121
|
...props
|
|
1122
1122
|
}) {
|
|
1123
|
-
return /* @__PURE__ */
|
|
1124
|
-
children: /* @__PURE__ */
|
|
1123
|
+
return /* @__PURE__ */ jsx11(TooltipPrimitive.Portal, {
|
|
1124
|
+
children: /* @__PURE__ */ jsx11(TooltipPrimitive.Positioner, {
|
|
1125
1125
|
align,
|
|
1126
1126
|
alignOffset,
|
|
1127
1127
|
side,
|
|
1128
1128
|
sideOffset,
|
|
1129
1129
|
className: "isolate z-50",
|
|
1130
|
-
children: /* @__PURE__ */
|
|
1130
|
+
children: /* @__PURE__ */ jsxs6(TooltipPrimitive.Popup, {
|
|
1131
1131
|
"data-slot": "tooltip-content",
|
|
1132
1132
|
className: cn("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
1133
1133
|
...props,
|
|
1134
1134
|
children: [
|
|
1135
1135
|
children,
|
|
1136
|
-
/* @__PURE__ */
|
|
1136
|
+
/* @__PURE__ */ jsx11(TooltipPrimitive.Arrow, {
|
|
1137
1137
|
className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"
|
|
1138
|
-
}
|
|
1138
|
+
})
|
|
1139
1139
|
]
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1140
|
+
})
|
|
1141
|
+
})
|
|
1142
|
+
});
|
|
1143
1143
|
}
|
|
1144
1144
|
|
|
1145
1145
|
// ../../src/components/ui/sidebar.tsx
|
|
1146
1146
|
import { PanelLeftIcon } from "lucide-react";
|
|
1147
|
-
import {
|
|
1147
|
+
import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1148
1148
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
1149
1149
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
1150
1150
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -1204,9 +1204,9 @@ function SidebarProvider({
|
|
|
1204
1204
|
setOpenMobile,
|
|
1205
1205
|
toggleSidebar
|
|
1206
1206
|
}), [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);
|
|
1207
|
-
return /* @__PURE__ */
|
|
1207
|
+
return /* @__PURE__ */ jsx12(SidebarContext.Provider, {
|
|
1208
1208
|
value: contextValue,
|
|
1209
|
-
children: /* @__PURE__ */
|
|
1209
|
+
children: /* @__PURE__ */ jsx12("div", {
|
|
1210
1210
|
"data-slot": "sidebar-wrapper",
|
|
1211
1211
|
style: {
|
|
1212
1212
|
"--sidebar-width": SIDEBAR_WIDTH,
|
|
@@ -1216,8 +1216,8 @@ function SidebarProvider({
|
|
|
1216
1216
|
className: cn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", className),
|
|
1217
1217
|
...props,
|
|
1218
1218
|
children
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1219
|
+
})
|
|
1220
|
+
});
|
|
1221
1221
|
}
|
|
1222
1222
|
function Sidebar({
|
|
1223
1223
|
side = "left",
|
|
@@ -1230,19 +1230,19 @@ function Sidebar({
|
|
|
1230
1230
|
}) {
|
|
1231
1231
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
1232
1232
|
if (collapsible === "none") {
|
|
1233
|
-
return /* @__PURE__ */
|
|
1233
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1234
1234
|
"data-slot": "sidebar",
|
|
1235
1235
|
className: cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", className),
|
|
1236
1236
|
...props,
|
|
1237
1237
|
children
|
|
1238
|
-
}
|
|
1238
|
+
});
|
|
1239
1239
|
}
|
|
1240
1240
|
if (isMobile) {
|
|
1241
|
-
return /* @__PURE__ */
|
|
1241
|
+
return /* @__PURE__ */ jsx12(Sheet, {
|
|
1242
1242
|
open: openMobile,
|
|
1243
1243
|
onOpenChange: setOpenMobile,
|
|
1244
1244
|
...props,
|
|
1245
|
-
children: /* @__PURE__ */
|
|
1245
|
+
children: /* @__PURE__ */ jsxs7(SheetContent, {
|
|
1246
1246
|
dir,
|
|
1247
1247
|
"data-sidebar": "sidebar",
|
|
1248
1248
|
"data-slot": "sidebar",
|
|
@@ -1253,26 +1253,26 @@ function Sidebar({
|
|
|
1253
1253
|
},
|
|
1254
1254
|
side,
|
|
1255
1255
|
children: [
|
|
1256
|
-
/* @__PURE__ */
|
|
1256
|
+
/* @__PURE__ */ jsxs7(SheetHeader, {
|
|
1257
1257
|
className: "sr-only",
|
|
1258
1258
|
children: [
|
|
1259
|
-
/* @__PURE__ */
|
|
1259
|
+
/* @__PURE__ */ jsx12(SheetTitle, {
|
|
1260
1260
|
children: "Sidebar"
|
|
1261
|
-
}
|
|
1262
|
-
/* @__PURE__ */
|
|
1261
|
+
}),
|
|
1262
|
+
/* @__PURE__ */ jsx12(SheetDescription, {
|
|
1263
1263
|
children: "Displays the mobile sidebar."
|
|
1264
|
-
}
|
|
1264
|
+
})
|
|
1265
1265
|
]
|
|
1266
|
-
}
|
|
1267
|
-
/* @__PURE__ */
|
|
1266
|
+
}),
|
|
1267
|
+
/* @__PURE__ */ jsx12("div", {
|
|
1268
1268
|
className: "flex h-full w-full flex-col",
|
|
1269
1269
|
children
|
|
1270
|
-
}
|
|
1270
|
+
})
|
|
1271
1271
|
]
|
|
1272
|
-
}
|
|
1273
|
-
}
|
|
1272
|
+
})
|
|
1273
|
+
});
|
|
1274
1274
|
}
|
|
1275
|
-
return /* @__PURE__ */
|
|
1275
|
+
return /* @__PURE__ */ jsxs7("div", {
|
|
1276
1276
|
className: "group peer text-sidebar-foreground hidden md:block",
|
|
1277
1277
|
"data-state": state,
|
|
1278
1278
|
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
@@ -1280,24 +1280,24 @@ function Sidebar({
|
|
|
1280
1280
|
"data-side": side,
|
|
1281
1281
|
"data-slot": "sidebar",
|
|
1282
1282
|
children: [
|
|
1283
|
-
/* @__PURE__ */
|
|
1283
|
+
/* @__PURE__ */ jsx12("div", {
|
|
1284
1284
|
"data-slot": "sidebar-gap",
|
|
1285
1285
|
className: cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
1286
|
-
}
|
|
1287
|
-
/* @__PURE__ */
|
|
1286
|
+
}),
|
|
1287
|
+
/* @__PURE__ */ jsx12("div", {
|
|
1288
1288
|
"data-slot": "sidebar-container",
|
|
1289
1289
|
"data-side": side,
|
|
1290
1290
|
className: cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex", variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", className),
|
|
1291
1291
|
...props,
|
|
1292
|
-
children: /* @__PURE__ */
|
|
1292
|
+
children: /* @__PURE__ */ jsx12("div", {
|
|
1293
1293
|
"data-sidebar": "sidebar",
|
|
1294
1294
|
"data-slot": "sidebar-inner",
|
|
1295
1295
|
className: "bg-sidebar group-data-[variant=floating]:ring-sidebar-border flex size-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1",
|
|
1296
1296
|
children
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1297
|
+
})
|
|
1298
|
+
})
|
|
1299
1299
|
]
|
|
1300
|
-
}
|
|
1300
|
+
});
|
|
1301
1301
|
}
|
|
1302
1302
|
function SidebarTrigger({
|
|
1303
1303
|
className,
|
|
@@ -1305,7 +1305,7 @@ function SidebarTrigger({
|
|
|
1305
1305
|
...props
|
|
1306
1306
|
}) {
|
|
1307
1307
|
const { toggleSidebar } = useSidebar();
|
|
1308
|
-
return /* @__PURE__ */
|
|
1308
|
+
return /* @__PURE__ */ jsxs7(Button, {
|
|
1309
1309
|
"data-sidebar": "trigger",
|
|
1310
1310
|
"data-slot": "sidebar-trigger",
|
|
1311
1311
|
variant: "ghost",
|
|
@@ -1317,17 +1317,17 @@ function SidebarTrigger({
|
|
|
1317
1317
|
},
|
|
1318
1318
|
...props,
|
|
1319
1319
|
children: [
|
|
1320
|
-
/* @__PURE__ */
|
|
1321
|
-
/* @__PURE__ */
|
|
1320
|
+
/* @__PURE__ */ jsx12(PanelLeftIcon, {}),
|
|
1321
|
+
/* @__PURE__ */ jsx12("span", {
|
|
1322
1322
|
className: "sr-only",
|
|
1323
1323
|
children: "Toggle Sidebar"
|
|
1324
|
-
}
|
|
1324
|
+
})
|
|
1325
1325
|
]
|
|
1326
|
-
}
|
|
1326
|
+
});
|
|
1327
1327
|
}
|
|
1328
1328
|
function SidebarRail({ className, ...props }) {
|
|
1329
1329
|
const { toggleSidebar } = useSidebar();
|
|
1330
|
-
return /* @__PURE__ */
|
|
1330
|
+
return /* @__PURE__ */ jsx12("button", {
|
|
1331
1331
|
"data-sidebar": "rail",
|
|
1332
1332
|
"data-slot": "sidebar-rail",
|
|
1333
1333
|
"aria-label": "Toggle Sidebar",
|
|
@@ -1336,46 +1336,46 @@ function SidebarRail({ className, ...props }) {
|
|
|
1336
1336
|
title: "Toggle Sidebar",
|
|
1337
1337
|
className: cn("absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", className),
|
|
1338
1338
|
...props
|
|
1339
|
-
}
|
|
1339
|
+
});
|
|
1340
1340
|
}
|
|
1341
1341
|
function SidebarInset({ className, ...props }) {
|
|
1342
|
-
return /* @__PURE__ */
|
|
1342
|
+
return /* @__PURE__ */ jsx12("main", {
|
|
1343
1343
|
"data-slot": "sidebar-inset",
|
|
1344
1344
|
className: cn("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", className),
|
|
1345
1345
|
...props
|
|
1346
|
-
}
|
|
1346
|
+
});
|
|
1347
1347
|
}
|
|
1348
1348
|
function SidebarHeader({ className, ...props }) {
|
|
1349
|
-
return /* @__PURE__ */
|
|
1349
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1350
1350
|
"data-slot": "sidebar-header",
|
|
1351
1351
|
"data-sidebar": "header",
|
|
1352
1352
|
className: cn("flex flex-col gap-2 p-2", className),
|
|
1353
1353
|
...props
|
|
1354
|
-
}
|
|
1354
|
+
});
|
|
1355
1355
|
}
|
|
1356
1356
|
function SidebarFooter({ className, ...props }) {
|
|
1357
|
-
return /* @__PURE__ */
|
|
1357
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1358
1358
|
"data-slot": "sidebar-footer",
|
|
1359
1359
|
"data-sidebar": "footer",
|
|
1360
1360
|
className: cn("flex flex-col gap-2 p-2", className),
|
|
1361
1361
|
...props
|
|
1362
|
-
}
|
|
1362
|
+
});
|
|
1363
1363
|
}
|
|
1364
1364
|
function SidebarContent({ className, ...props }) {
|
|
1365
|
-
return /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1366
1366
|
"data-slot": "sidebar-content",
|
|
1367
1367
|
"data-sidebar": "content",
|
|
1368
1368
|
className: cn("no-scrollbar flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className),
|
|
1369
1369
|
...props
|
|
1370
|
-
}
|
|
1370
|
+
});
|
|
1371
1371
|
}
|
|
1372
1372
|
function SidebarGroup({ className, ...props }) {
|
|
1373
|
-
return /* @__PURE__ */
|
|
1373
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1374
1374
|
"data-slot": "sidebar-group",
|
|
1375
1375
|
"data-sidebar": "group",
|
|
1376
1376
|
className: cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
1377
1377
|
...props
|
|
1378
|
-
}
|
|
1378
|
+
});
|
|
1379
1379
|
}
|
|
1380
1380
|
function SidebarGroupLabel({
|
|
1381
1381
|
className,
|
|
@@ -1398,28 +1398,28 @@ function SidebarGroupContent({
|
|
|
1398
1398
|
className,
|
|
1399
1399
|
...props
|
|
1400
1400
|
}) {
|
|
1401
|
-
return /* @__PURE__ */
|
|
1401
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1402
1402
|
"data-slot": "sidebar-group-content",
|
|
1403
1403
|
"data-sidebar": "group-content",
|
|
1404
1404
|
className: cn("w-full text-sm", className),
|
|
1405
1405
|
...props
|
|
1406
|
-
}
|
|
1406
|
+
});
|
|
1407
1407
|
}
|
|
1408
1408
|
function SidebarMenu({ className, ...props }) {
|
|
1409
|
-
return /* @__PURE__ */
|
|
1409
|
+
return /* @__PURE__ */ jsx12("ul", {
|
|
1410
1410
|
"data-slot": "sidebar-menu",
|
|
1411
1411
|
"data-sidebar": "menu",
|
|
1412
1412
|
className: cn("flex w-full min-w-0 flex-col gap-1", className),
|
|
1413
1413
|
...props
|
|
1414
|
-
}
|
|
1414
|
+
});
|
|
1415
1415
|
}
|
|
1416
1416
|
function SidebarMenuItem({ className, ...props }) {
|
|
1417
|
-
return /* @__PURE__ */
|
|
1417
|
+
return /* @__PURE__ */ jsx12("li", {
|
|
1418
1418
|
"data-slot": "sidebar-menu-item",
|
|
1419
1419
|
"data-sidebar": "menu-item",
|
|
1420
1420
|
className: cn("group/menu-item relative", className),
|
|
1421
1421
|
...props
|
|
1422
|
-
}
|
|
1422
|
+
});
|
|
1423
1423
|
}
|
|
1424
1424
|
var sidebarMenuButtonVariants = cva3("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate", {
|
|
1425
1425
|
variants: {
|
|
@@ -1453,9 +1453,9 @@ function SidebarMenuButton({
|
|
|
1453
1453
|
props: mergeProps2({
|
|
1454
1454
|
className: cn(sidebarMenuButtonVariants({ variant, size }), className)
|
|
1455
1455
|
}, props),
|
|
1456
|
-
render: !tooltip ? render : /* @__PURE__ */
|
|
1456
|
+
render: !tooltip ? render : /* @__PURE__ */ jsx12(TooltipTrigger, {
|
|
1457
1457
|
render
|
|
1458
|
-
}
|
|
1458
|
+
}),
|
|
1459
1459
|
state: {
|
|
1460
1460
|
slot: "sidebar-menu-button",
|
|
1461
1461
|
sidebar: "menu-button",
|
|
@@ -1471,21 +1471,21 @@ function SidebarMenuButton({
|
|
|
1471
1471
|
children: tooltip
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
1474
|
-
return /* @__PURE__ */
|
|
1474
|
+
return /* @__PURE__ */ jsxs7(Tooltip, {
|
|
1475
1475
|
children: [
|
|
1476
1476
|
comp,
|
|
1477
|
-
/* @__PURE__ */
|
|
1477
|
+
/* @__PURE__ */ jsx12(TooltipContent, {
|
|
1478
1478
|
side: "right",
|
|
1479
1479
|
align: "center",
|
|
1480
1480
|
hidden: state !== "collapsed" || isMobile,
|
|
1481
1481
|
...tooltip
|
|
1482
|
-
}
|
|
1482
|
+
})
|
|
1483
1483
|
]
|
|
1484
|
-
}
|
|
1484
|
+
});
|
|
1485
1485
|
}
|
|
1486
1486
|
|
|
1487
1487
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
1488
|
-
import {
|
|
1488
|
+
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1489
1489
|
var sidebarStorageRuntime = Atom.runtime(BrowserKeyValueStore.layerLocalStorage);
|
|
1490
1490
|
var sidebarOpenAtom = Atom.kvs({
|
|
1491
1491
|
runtime: sidebarStorageRuntime,
|
|
@@ -1502,54 +1502,54 @@ function AppSidebar({ footer, groups, header }) {
|
|
|
1502
1502
|
if (isMobile)
|
|
1503
1503
|
setOpenMobile(false);
|
|
1504
1504
|
};
|
|
1505
|
-
return /* @__PURE__ */
|
|
1505
|
+
return /* @__PURE__ */ jsxs8(Sidebar, {
|
|
1506
1506
|
collapsible: "icon",
|
|
1507
1507
|
children: [
|
|
1508
|
-
header && /* @__PURE__ */
|
|
1508
|
+
header && /* @__PURE__ */ jsx13(SidebarHeader, {
|
|
1509
1509
|
children: header
|
|
1510
|
-
}
|
|
1511
|
-
/* @__PURE__ */
|
|
1512
|
-
children: groups.map((group) => /* @__PURE__ */
|
|
1510
|
+
}),
|
|
1511
|
+
/* @__PURE__ */ jsx13(SidebarContent, {
|
|
1512
|
+
children: groups.map((group) => /* @__PURE__ */ jsxs8(SidebarGroup, {
|
|
1513
1513
|
children: [
|
|
1514
|
-
/* @__PURE__ */
|
|
1514
|
+
/* @__PURE__ */ jsx13(SidebarGroupLabel, {
|
|
1515
1515
|
children: group.label()
|
|
1516
|
-
}
|
|
1517
|
-
/* @__PURE__ */
|
|
1518
|
-
children: /* @__PURE__ */
|
|
1516
|
+
}),
|
|
1517
|
+
/* @__PURE__ */ jsx13(SidebarGroupContent, {
|
|
1518
|
+
children: /* @__PURE__ */ jsx13(SidebarMenu, {
|
|
1519
1519
|
children: group.items.map((item) => {
|
|
1520
|
-
const render = item.external ? /* @__PURE__ */
|
|
1520
|
+
const render = item.external ? /* @__PURE__ */ jsx13("a", {
|
|
1521
1521
|
href: item.href,
|
|
1522
1522
|
target: "_blank",
|
|
1523
1523
|
rel: "noreferrer"
|
|
1524
|
-
}
|
|
1524
|
+
}) : /* @__PURE__ */ jsx13(Link2, {
|
|
1525
1525
|
to: item.href
|
|
1526
|
-
}
|
|
1527
|
-
return /* @__PURE__ */
|
|
1528
|
-
children: /* @__PURE__ */
|
|
1526
|
+
});
|
|
1527
|
+
return /* @__PURE__ */ jsx13(SidebarMenuItem, {
|
|
1528
|
+
children: /* @__PURE__ */ jsxs8(SidebarMenuButton, {
|
|
1529
1529
|
isActive: !item.external && pathname === item.href,
|
|
1530
1530
|
onClick: closeMobileSidebar,
|
|
1531
1531
|
render,
|
|
1532
1532
|
tooltip: item.label(),
|
|
1533
1533
|
children: [
|
|
1534
|
-
/* @__PURE__ */
|
|
1535
|
-
/* @__PURE__ */
|
|
1534
|
+
/* @__PURE__ */ jsx13(item.icon, {}),
|
|
1535
|
+
/* @__PURE__ */ jsx13("span", {
|
|
1536
1536
|
children: item.label()
|
|
1537
|
-
}
|
|
1537
|
+
})
|
|
1538
1538
|
]
|
|
1539
|
-
}
|
|
1540
|
-
}, item.href
|
|
1539
|
+
})
|
|
1540
|
+
}, item.href);
|
|
1541
1541
|
})
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1542
|
+
})
|
|
1543
|
+
})
|
|
1544
1544
|
]
|
|
1545
|
-
}, group.label()
|
|
1546
|
-
}
|
|
1547
|
-
footer ? /* @__PURE__ */
|
|
1545
|
+
}, group.label()))
|
|
1546
|
+
}),
|
|
1547
|
+
footer ? /* @__PURE__ */ jsx13(SidebarFooter, {
|
|
1548
1548
|
children: footer
|
|
1549
|
-
}
|
|
1550
|
-
/* @__PURE__ */
|
|
1549
|
+
}) : null,
|
|
1550
|
+
/* @__PURE__ */ jsx13(SidebarRail, {})
|
|
1551
1551
|
]
|
|
1552
|
-
}
|
|
1552
|
+
});
|
|
1553
1553
|
}
|
|
1554
1554
|
function SidebarLayout({
|
|
1555
1555
|
groups,
|
|
@@ -1561,41 +1561,41 @@ function SidebarLayout({
|
|
|
1561
1561
|
fullPage = false
|
|
1562
1562
|
}) {
|
|
1563
1563
|
const [sidebarOpen, setSidebarOpen] = useAtom(sidebarOpenAtom);
|
|
1564
|
-
return /* @__PURE__ */
|
|
1564
|
+
return /* @__PURE__ */ jsxs8(SidebarProvider, {
|
|
1565
1565
|
open: sidebarOpen,
|
|
1566
1566
|
onOpenChange: setSidebarOpen,
|
|
1567
1567
|
className: cn(fullPage && "xl:h-svh xl:min-h-0 xl:overflow-hidden"),
|
|
1568
1568
|
children: [
|
|
1569
|
-
/* @__PURE__ */
|
|
1569
|
+
/* @__PURE__ */ jsx13(AppSidebar, {
|
|
1570
1570
|
footer: sidebarFooter,
|
|
1571
1571
|
groups,
|
|
1572
1572
|
header: sidebarHeader
|
|
1573
|
-
}
|
|
1574
|
-
/* @__PURE__ */
|
|
1573
|
+
}),
|
|
1574
|
+
/* @__PURE__ */ jsxs8(SidebarInset, {
|
|
1575
1575
|
className: cn("min-w-0 overflow-x-hidden", fullPage && "xl:h-svh xl:min-h-0 xl:overflow-hidden"),
|
|
1576
1576
|
children: [
|
|
1577
|
-
/* @__PURE__ */
|
|
1577
|
+
/* @__PURE__ */ jsxs8("header", {
|
|
1578
1578
|
className: "bg-background/95 supports-[backdrop-filter]:bg-background/60 sticky top-0 z-10 flex h-14 shrink-0 items-center gap-2 border-b px-4 backdrop-blur",
|
|
1579
1579
|
children: [
|
|
1580
|
-
/* @__PURE__ */
|
|
1581
|
-
/* @__PURE__ */
|
|
1580
|
+
/* @__PURE__ */ jsx13(SidebarTrigger, {}),
|
|
1581
|
+
/* @__PURE__ */ jsx13("div", {
|
|
1582
1582
|
className: "ml-auto flex items-center gap-2",
|
|
1583
1583
|
children: headerActions
|
|
1584
|
-
}
|
|
1584
|
+
})
|
|
1585
1585
|
]
|
|
1586
|
-
}
|
|
1587
|
-
/* @__PURE__ */
|
|
1586
|
+
}),
|
|
1587
|
+
/* @__PURE__ */ jsx13("div", {
|
|
1588
1588
|
className: contentClassName ?? "flex flex-col gap-6 px-5 py-6 md:px-8",
|
|
1589
|
-
children: children ?? /* @__PURE__ */
|
|
1590
|
-
}
|
|
1589
|
+
children: children ?? /* @__PURE__ */ jsx13(Outlet, {})
|
|
1590
|
+
})
|
|
1591
1591
|
]
|
|
1592
|
-
}
|
|
1592
|
+
})
|
|
1593
1593
|
]
|
|
1594
|
-
}
|
|
1594
|
+
});
|
|
1595
1595
|
}
|
|
1596
1596
|
|
|
1597
1597
|
// ../../src/lib/docs-core.tsx
|
|
1598
|
-
import {
|
|
1598
|
+
import { jsx as jsx14, jsxs as jsxs9, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
1599
1599
|
addCollection(lucideIcons);
|
|
1600
1600
|
var DocsSection = Schema2.String.annotate({
|
|
1601
1601
|
identifier: "DocsSection"
|
|
@@ -2035,14 +2035,14 @@ var iconFor = (name) => {
|
|
|
2035
2035
|
const existing = iconComponents.get(name);
|
|
2036
2036
|
if (existing)
|
|
2037
2037
|
return existing;
|
|
2038
|
-
const DocsIcon = forwardRef(({ className, color, size }, ref) => /* @__PURE__ */
|
|
2038
|
+
const DocsIcon = forwardRef(({ className, color, size }, ref) => /* @__PURE__ */ jsx14(Icon, {
|
|
2039
2039
|
icon: name,
|
|
2040
2040
|
ref,
|
|
2041
2041
|
ssr: true,
|
|
2042
2042
|
...className ? { className } : {},
|
|
2043
2043
|
...color ? { color } : {},
|
|
2044
2044
|
...size === undefined ? {} : { height: size, width: size }
|
|
2045
|
-
}
|
|
2045
|
+
}));
|
|
2046
2046
|
DocsIcon.displayName = `DocsIcon(${name})`;
|
|
2047
2047
|
iconComponents.set(name, DocsIcon);
|
|
2048
2048
|
return DocsIcon;
|
|
@@ -2057,20 +2057,20 @@ var makeDocsHeading = (level, copyLink) => {
|
|
|
2057
2057
|
const text = headingText(children);
|
|
2058
2058
|
const id = slugifyDocsHeading(text);
|
|
2059
2059
|
const Component = level === 2 ? "h2" : "h3";
|
|
2060
|
-
return /* @__PURE__ */
|
|
2060
|
+
return /* @__PURE__ */ jsxs9(Component, {
|
|
2061
2061
|
id,
|
|
2062
2062
|
className: "group scroll-mt-20",
|
|
2063
2063
|
...props,
|
|
2064
2064
|
children: [
|
|
2065
2065
|
children,
|
|
2066
|
-
/* @__PURE__ */
|
|
2066
|
+
/* @__PURE__ */ jsx14("a", {
|
|
2067
2067
|
className: "text-muted-foreground ml-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",
|
|
2068
2068
|
href: `#${id}`,
|
|
2069
2069
|
"aria-label": `${copyLink}: ${text}`,
|
|
2070
2070
|
children: "#"
|
|
2071
|
-
}
|
|
2071
|
+
})
|
|
2072
2072
|
]
|
|
2073
|
-
}
|
|
2073
|
+
});
|
|
2074
2074
|
};
|
|
2075
2075
|
return Heading;
|
|
2076
2076
|
};
|
|
@@ -2086,48 +2086,48 @@ var DocsArticle = ({
|
|
|
2086
2086
|
...props
|
|
2087
2087
|
}) => {
|
|
2088
2088
|
if (!href)
|
|
2089
|
-
return /* @__PURE__ */
|
|
2089
|
+
return /* @__PURE__ */ jsx14("span", {
|
|
2090
2090
|
children
|
|
2091
|
-
}
|
|
2091
|
+
});
|
|
2092
2092
|
if (href === docs.basePath || href.startsWith(`${docs.basePath}/`)) {
|
|
2093
2093
|
const [path, hash] = href.split("#", 2);
|
|
2094
|
-
return /* @__PURE__ */
|
|
2094
|
+
return /* @__PURE__ */ jsx14(Link3, {
|
|
2095
2095
|
to: path,
|
|
2096
2096
|
...hash ? { hash } : {},
|
|
2097
2097
|
children
|
|
2098
|
-
}
|
|
2098
|
+
});
|
|
2099
2099
|
}
|
|
2100
2100
|
if (href.startsWith("#") || href.startsWith("/")) {
|
|
2101
|
-
return /* @__PURE__ */
|
|
2101
|
+
return /* @__PURE__ */ jsx14("a", {
|
|
2102
2102
|
href,
|
|
2103
2103
|
...props,
|
|
2104
2104
|
children
|
|
2105
|
-
}
|
|
2105
|
+
});
|
|
2106
2106
|
}
|
|
2107
|
-
return /* @__PURE__ */
|
|
2107
|
+
return /* @__PURE__ */ jsx14("a", {
|
|
2108
2108
|
href,
|
|
2109
2109
|
target: "_blank",
|
|
2110
2110
|
rel: "noreferrer",
|
|
2111
2111
|
...props,
|
|
2112
2112
|
children
|
|
2113
|
-
}
|
|
2113
|
+
});
|
|
2114
2114
|
};
|
|
2115
2115
|
const components = {
|
|
2116
2116
|
a: DocsLink,
|
|
2117
2117
|
h2: makeDocsHeading(2, messages3.copyLink),
|
|
2118
2118
|
h3: makeDocsHeading(3, messages3.copyLink),
|
|
2119
|
-
inlineCode: ({ children, node: _node, ...props }) => /* @__PURE__ */
|
|
2119
|
+
inlineCode: ({ children, node: _node, ...props }) => /* @__PURE__ */ jsx14("code", {
|
|
2120
2120
|
className: "bg-muted rounded px-1.5 py-0.5 font-mono text-[0.875em]",
|
|
2121
2121
|
...props,
|
|
2122
2122
|
children
|
|
2123
|
-
}
|
|
2124
|
-
blockquote: ({ children, node: _node, ...props }) => /* @__PURE__ */
|
|
2123
|
+
}),
|
|
2124
|
+
blockquote: ({ children, node: _node, ...props }) => /* @__PURE__ */ jsx14("blockquote", {
|
|
2125
2125
|
className: "border-primary/40 bg-muted/40 rounded-r-lg border-l-4 px-5 py-1",
|
|
2126
2126
|
...props,
|
|
2127
2127
|
children
|
|
2128
|
-
}
|
|
2128
|
+
})
|
|
2129
2129
|
};
|
|
2130
|
-
return /* @__PURE__ */
|
|
2130
|
+
return /* @__PURE__ */ jsx14(Streamdown, {
|
|
2131
2131
|
className: "[&_a:hover]:text-primary [&_a]:decoration-border text-[0.98rem] leading-7 [&_[data-streamdown=code-block-actions]]:pointer-events-auto [&_[data-streamdown=code-block-body]_code_span_span]:text-[var(--sdm-c,inherit)] dark:[&_[data-streamdown=code-block-body]_code_span_span]:text-[var(--shiki-dark,var(--sdm-c,inherit))] [&_[data-streamdown=code-block-body]_code>span]:block [&_[data-streamdown=code-block-body]_code>span]:min-w-max [&_[data-streamdown=code-block-copy-button]]:pointer-events-auto [&_[data-streamdown=code-block-header]+div]:-mt-10 [&_[data-streamdown=code-block-header]+div]:flex [&_[data-streamdown=code-block-header]+div]:h-8 [&_[data-streamdown=code-block-header]+div]:items-center [&_[data-streamdown=code-block-header]+div]:justify-end [&_a]:font-medium [&_a]:underline [&_a]:decoration-1 [&_a]:underline-offset-4 [&_a]:transition-colors [&_h2]:mt-12 [&_h2]:border-t [&_h2]:pt-8 [&_h2]:text-2xl [&_h2]:font-bold [&_h2]:tracking-tight [&_h2:first-of-type]:mt-0 [&_h2:first-of-type]:border-t-0 [&_h2:first-of-type]:pt-0 [&_h3]:mt-8 [&_h3]:text-xl [&_h3]:font-semibold [&_h3]:tracking-tight [&_ol]:my-5 [&_p]:my-5 [&_table]:text-sm [&_ul]:my-5",
|
|
2132
2132
|
components,
|
|
2133
2133
|
controls: {
|
|
@@ -2146,39 +2146,39 @@ var DocsArticle = ({
|
|
|
2146
2146
|
downloadTable: messages3.downloadTable
|
|
2147
2147
|
},
|
|
2148
2148
|
children: page.source
|
|
2149
|
-
}
|
|
2149
|
+
});
|
|
2150
2150
|
};
|
|
2151
2151
|
var DocsTableOfContentsItems = ({
|
|
2152
2152
|
headings
|
|
2153
|
-
}) => /* @__PURE__ */
|
|
2153
|
+
}) => /* @__PURE__ */ jsx14("ol", {
|
|
2154
2154
|
className: "border-l",
|
|
2155
|
-
children: headings.map((heading) => /* @__PURE__ */
|
|
2156
|
-
children: /* @__PURE__ */
|
|
2155
|
+
children: headings.map((heading) => /* @__PURE__ */ jsx14("li", {
|
|
2156
|
+
children: /* @__PURE__ */ jsx14("a", {
|
|
2157
2157
|
className: `text-muted-foreground hover:text-foreground block border-l border-transparent py-1.5 text-sm leading-5 ${heading.depth === 3 ? "pl-6" : "pl-4"}`,
|
|
2158
2158
|
href: `#${heading.id}`,
|
|
2159
2159
|
children: heading.title
|
|
2160
|
-
}
|
|
2161
|
-
}, heading.id
|
|
2162
|
-
}
|
|
2160
|
+
})
|
|
2161
|
+
}, heading.id))
|
|
2162
|
+
});
|
|
2163
2163
|
var DocsTableOfContents = ({
|
|
2164
2164
|
headings,
|
|
2165
2165
|
label
|
|
2166
2166
|
}) => {
|
|
2167
2167
|
if (headings.length === 0)
|
|
2168
2168
|
return null;
|
|
2169
|
-
return /* @__PURE__ */
|
|
2169
|
+
return /* @__PURE__ */ jsxs9("nav", {
|
|
2170
2170
|
"aria-label": label,
|
|
2171
2171
|
className: "sticky top-20",
|
|
2172
2172
|
children: [
|
|
2173
|
-
/* @__PURE__ */
|
|
2173
|
+
/* @__PURE__ */ jsx14("p", {
|
|
2174
2174
|
className: "text-foreground mb-3 text-sm font-semibold",
|
|
2175
2175
|
children: label
|
|
2176
|
-
}
|
|
2177
|
-
/* @__PURE__ */
|
|
2176
|
+
}),
|
|
2177
|
+
/* @__PURE__ */ jsx14(DocsTableOfContentsItems, {
|
|
2178
2178
|
headings
|
|
2179
|
-
}
|
|
2179
|
+
})
|
|
2180
2180
|
]
|
|
2181
|
-
}
|
|
2181
|
+
});
|
|
2182
2182
|
};
|
|
2183
2183
|
var DocsMobileTableOfContents = ({
|
|
2184
2184
|
headings,
|
|
@@ -2186,33 +2186,33 @@ var DocsMobileTableOfContents = ({
|
|
|
2186
2186
|
}) => {
|
|
2187
2187
|
if (headings.length === 0)
|
|
2188
2188
|
return null;
|
|
2189
|
-
return /* @__PURE__ */
|
|
2189
|
+
return /* @__PURE__ */ jsxs9(Collapsible, {
|
|
2190
2190
|
className: "mb-8 overflow-hidden rounded-lg border xl:hidden",
|
|
2191
2191
|
children: [
|
|
2192
|
-
/* @__PURE__ */
|
|
2192
|
+
/* @__PURE__ */ jsxs9(CollapsibleTrigger, {
|
|
2193
2193
|
className: "group flex w-full cursor-pointer items-center justify-between p-4 text-left text-sm font-semibold",
|
|
2194
2194
|
children: [
|
|
2195
|
-
/* @__PURE__ */
|
|
2195
|
+
/* @__PURE__ */ jsx14("span", {
|
|
2196
2196
|
children: label
|
|
2197
|
-
}
|
|
2198
|
-
/* @__PURE__ */
|
|
2197
|
+
}),
|
|
2198
|
+
/* @__PURE__ */ jsx14(Icon, {
|
|
2199
2199
|
className: "text-muted-foreground size-4 transition-transform group-data-[panel-open]:rotate-180",
|
|
2200
2200
|
icon: "lucide:chevron-down",
|
|
2201
2201
|
ssr: true
|
|
2202
|
-
}
|
|
2202
|
+
})
|
|
2203
2203
|
]
|
|
2204
|
-
}
|
|
2205
|
-
/* @__PURE__ */
|
|
2204
|
+
}),
|
|
2205
|
+
/* @__PURE__ */ jsx14(CollapsibleContent, {
|
|
2206
2206
|
className: "px-4 pt-1 pb-4",
|
|
2207
|
-
children: /* @__PURE__ */
|
|
2207
|
+
children: /* @__PURE__ */ jsx14("nav", {
|
|
2208
2208
|
"aria-label": label,
|
|
2209
|
-
children: /* @__PURE__ */
|
|
2209
|
+
children: /* @__PURE__ */ jsx14(DocsTableOfContentsItems, {
|
|
2210
2210
|
headings
|
|
2211
|
-
}
|
|
2212
|
-
}
|
|
2213
|
-
}
|
|
2211
|
+
})
|
|
2212
|
+
})
|
|
2213
|
+
})
|
|
2214
2214
|
]
|
|
2215
|
-
}
|
|
2215
|
+
});
|
|
2216
2216
|
};
|
|
2217
2217
|
var DocsSearch = ({
|
|
2218
2218
|
docs,
|
|
@@ -2245,26 +2245,26 @@ var DocsSearch = ({
|
|
|
2245
2245
|
id: `${page.path}#${heading.id}`,
|
|
2246
2246
|
label: heading.title,
|
|
2247
2247
|
description: page.title,
|
|
2248
|
-
icon: /* @__PURE__ */
|
|
2248
|
+
icon: /* @__PURE__ */ jsx14(Icon, {
|
|
2249
2249
|
className: "size-4",
|
|
2250
2250
|
icon: "lucide:hash",
|
|
2251
2251
|
ssr: true
|
|
2252
|
-
}
|
|
2252
|
+
}),
|
|
2253
2253
|
onSelect: () => navigate({ to: page.path, hash: heading.id })
|
|
2254
2254
|
} : {
|
|
2255
2255
|
id: page.path,
|
|
2256
2256
|
label: page.title,
|
|
2257
2257
|
description: page.description,
|
|
2258
|
-
icon: /* @__PURE__ */
|
|
2258
|
+
icon: /* @__PURE__ */ jsx14(Icon, {
|
|
2259
2259
|
className: "size-4",
|
|
2260
2260
|
icon: page.icon,
|
|
2261
2261
|
ssr: true
|
|
2262
|
-
}
|
|
2262
|
+
}),
|
|
2263
2263
|
onSelect: () => navigate({ to: page.path })
|
|
2264
2264
|
})
|
|
2265
2265
|
};
|
|
2266
2266
|
});
|
|
2267
|
-
return /* @__PURE__ */
|
|
2267
|
+
return /* @__PURE__ */ jsx14(SearchMenu, {
|
|
2268
2268
|
groups,
|
|
2269
2269
|
messages: {
|
|
2270
2270
|
title: messages3.searchTitle,
|
|
@@ -2276,7 +2276,7 @@ var DocsSearch = ({
|
|
|
2276
2276
|
query,
|
|
2277
2277
|
onQueryChange: setQuery,
|
|
2278
2278
|
shouldFilter: false
|
|
2279
|
-
}
|
|
2279
|
+
});
|
|
2280
2280
|
};
|
|
2281
2281
|
var DocsLayout = ({
|
|
2282
2282
|
children,
|
|
@@ -2315,49 +2315,49 @@ var DocsLayout = ({
|
|
|
2315
2315
|
]
|
|
2316
2316
|
});
|
|
2317
2317
|
}
|
|
2318
|
-
return /* @__PURE__ */
|
|
2318
|
+
return /* @__PURE__ */ jsx14(SidebarLayout, {
|
|
2319
2319
|
groups,
|
|
2320
|
-
sidebarHeader: /* @__PURE__ */
|
|
2320
|
+
sidebarHeader: /* @__PURE__ */ jsx14(AppBrand, {
|
|
2321
2321
|
label: brand.label,
|
|
2322
2322
|
subtitle: brand.subtitle(),
|
|
2323
2323
|
icon: iconFor(brand.icon),
|
|
2324
2324
|
href: brand.href,
|
|
2325
2325
|
variant: "sidebar"
|
|
2326
|
-
}
|
|
2327
|
-
headerActions: /* @__PURE__ */
|
|
2326
|
+
}),
|
|
2327
|
+
headerActions: /* @__PURE__ */ jsxs9(Fragment3, {
|
|
2328
2328
|
children: [
|
|
2329
|
-
docs.githubUrl ? /* @__PURE__ */
|
|
2329
|
+
docs.githubUrl ? /* @__PURE__ */ jsxs9("a", {
|
|
2330
2330
|
className: "text-muted-foreground hover:text-foreground hidden items-center gap-1.5 text-sm lg:flex",
|
|
2331
2331
|
href: docs.githubUrl,
|
|
2332
2332
|
target: "_blank",
|
|
2333
2333
|
rel: "noreferrer",
|
|
2334
2334
|
children: [
|
|
2335
2335
|
docs.githubLabel,
|
|
2336
|
-
/* @__PURE__ */
|
|
2336
|
+
/* @__PURE__ */ jsx14(Icon, {
|
|
2337
2337
|
className: "size-3.5",
|
|
2338
2338
|
icon: "lucide:external-link",
|
|
2339
2339
|
ssr: true
|
|
2340
|
-
}
|
|
2340
|
+
})
|
|
2341
2341
|
]
|
|
2342
|
-
}
|
|
2343
|
-
/* @__PURE__ */
|
|
2342
|
+
}) : null,
|
|
2343
|
+
/* @__PURE__ */ jsx14(DocsSearch, {
|
|
2344
2344
|
docs,
|
|
2345
2345
|
locale,
|
|
2346
2346
|
messages: resolvedMessages
|
|
2347
|
-
}
|
|
2347
|
+
}),
|
|
2348
2348
|
headerActions
|
|
2349
2349
|
]
|
|
2350
|
-
}
|
|
2350
|
+
}),
|
|
2351
2351
|
children
|
|
2352
|
-
}
|
|
2352
|
+
});
|
|
2353
2353
|
};
|
|
2354
2354
|
var DocsHeader = ({ docs, resolution }) => {
|
|
2355
2355
|
const { page } = resolution;
|
|
2356
2356
|
const resolvedMessages = docs.getMessages(page.locale);
|
|
2357
|
-
return /* @__PURE__ */
|
|
2357
|
+
return /* @__PURE__ */ jsxs9("header", {
|
|
2358
2358
|
className: "mb-8 border-b pb-8",
|
|
2359
2359
|
children: [
|
|
2360
|
-
/* @__PURE__ */
|
|
2360
|
+
/* @__PURE__ */ jsxs9("p", {
|
|
2361
2361
|
className: "text-primary mb-3 font-mono text-xs font-semibold tracking-[0.18em] uppercase",
|
|
2362
2362
|
children: [
|
|
2363
2363
|
resolvedMessages.sectionLabel(page.section),
|
|
@@ -2365,191 +2365,191 @@ var DocsHeader = ({ docs, resolution }) => {
|
|
|
2365
2365
|
" ",
|
|
2366
2366
|
resolvedMessages.pageTypeLabel(page.type)
|
|
2367
2367
|
]
|
|
2368
|
-
}
|
|
2369
|
-
/* @__PURE__ */
|
|
2368
|
+
}),
|
|
2369
|
+
/* @__PURE__ */ jsx14("h1", {
|
|
2370
2370
|
className: "text-3xl font-bold tracking-tight sm:text-4xl",
|
|
2371
2371
|
children: page.title
|
|
2372
|
-
}
|
|
2373
|
-
/* @__PURE__ */
|
|
2372
|
+
}),
|
|
2373
|
+
/* @__PURE__ */ jsx14("p", {
|
|
2374
2374
|
className: "text-muted-foreground mt-3 max-w-2xl text-base leading-7",
|
|
2375
2375
|
children: page.description
|
|
2376
|
-
}
|
|
2376
|
+
})
|
|
2377
2377
|
]
|
|
2378
|
-
}
|
|
2378
|
+
});
|
|
2379
2379
|
};
|
|
2380
2380
|
var DocsContent = ({ docs, resolution }) => {
|
|
2381
2381
|
const { page } = resolution;
|
|
2382
2382
|
const resolvedMessages = docs.getMessages(page.locale);
|
|
2383
|
-
return /* @__PURE__ */
|
|
2383
|
+
return /* @__PURE__ */ jsxs9(Fragment3, {
|
|
2384
2384
|
children: [
|
|
2385
|
-
/* @__PURE__ */
|
|
2385
|
+
/* @__PURE__ */ jsx14(DocsMobileTableOfContents, {
|
|
2386
2386
|
headings: page.headings,
|
|
2387
2387
|
label: resolvedMessages.onThisPage
|
|
2388
|
-
}
|
|
2389
|
-
/* @__PURE__ */
|
|
2388
|
+
}),
|
|
2389
|
+
/* @__PURE__ */ jsx14(DocsArticle, {
|
|
2390
2390
|
docs,
|
|
2391
2391
|
messages: resolvedMessages,
|
|
2392
2392
|
page
|
|
2393
|
-
}
|
|
2393
|
+
})
|
|
2394
2394
|
]
|
|
2395
|
-
}
|
|
2395
|
+
});
|
|
2396
2396
|
};
|
|
2397
2397
|
var DocsFooter = ({ docs, resolution }) => {
|
|
2398
2398
|
const { page, neighbors } = resolution;
|
|
2399
2399
|
const resolvedMessages = docs.getMessages(page.locale);
|
|
2400
2400
|
const editUrl = docs.editUrl(page);
|
|
2401
|
-
return /* @__PURE__ */
|
|
2401
|
+
return /* @__PURE__ */ jsxs9("footer", {
|
|
2402
2402
|
className: "mt-14 border-t pt-8",
|
|
2403
2403
|
children: [
|
|
2404
|
-
/* @__PURE__ */
|
|
2404
|
+
/* @__PURE__ */ jsxs9("div", {
|
|
2405
2405
|
className: "mb-8 flex flex-wrap items-center justify-between gap-4 text-sm",
|
|
2406
2406
|
children: [
|
|
2407
|
-
editUrl ? /* @__PURE__ */
|
|
2407
|
+
editUrl ? /* @__PURE__ */ jsxs9("a", {
|
|
2408
2408
|
className: "text-muted-foreground hover:text-foreground inline-flex items-center gap-1.5",
|
|
2409
2409
|
href: editUrl,
|
|
2410
2410
|
target: "_blank",
|
|
2411
2411
|
rel: "noreferrer",
|
|
2412
2412
|
children: [
|
|
2413
2413
|
resolvedMessages.editPage,
|
|
2414
|
-
/* @__PURE__ */
|
|
2414
|
+
/* @__PURE__ */ jsx14(Icon, {
|
|
2415
2415
|
className: "size-3.5",
|
|
2416
2416
|
icon: "lucide:external-link",
|
|
2417
2417
|
ssr: true
|
|
2418
|
-
}
|
|
2418
|
+
})
|
|
2419
2419
|
]
|
|
2420
|
-
}
|
|
2421
|
-
/* @__PURE__ */
|
|
2420
|
+
}) : null,
|
|
2421
|
+
/* @__PURE__ */ jsx14("span", {
|
|
2422
2422
|
className: "text-muted-foreground",
|
|
2423
2423
|
children: resolvedMessages.latestVersionNotice
|
|
2424
|
-
}
|
|
2424
|
+
})
|
|
2425
2425
|
]
|
|
2426
|
-
}
|
|
2427
|
-
/* @__PURE__ */
|
|
2426
|
+
}),
|
|
2427
|
+
/* @__PURE__ */ jsxs9("nav", {
|
|
2428
2428
|
"aria-label": resolvedMessages.pageNavigation,
|
|
2429
2429
|
className: "grid gap-3 sm:grid-cols-2",
|
|
2430
2430
|
children: [
|
|
2431
|
-
neighbors.previous ? /* @__PURE__ */
|
|
2431
|
+
neighbors.previous ? /* @__PURE__ */ jsxs9(Link3, {
|
|
2432
2432
|
className: "hover:bg-muted/50 rounded-lg border p-4 transition-colors",
|
|
2433
2433
|
to: neighbors.previous.path,
|
|
2434
2434
|
children: [
|
|
2435
|
-
/* @__PURE__ */
|
|
2435
|
+
/* @__PURE__ */ jsxs9("span", {
|
|
2436
2436
|
className: "text-muted-foreground flex items-center gap-1 text-xs font-medium uppercase",
|
|
2437
2437
|
children: [
|
|
2438
|
-
/* @__PURE__ */
|
|
2438
|
+
/* @__PURE__ */ jsx14(Icon, {
|
|
2439
2439
|
className: "size-3.5",
|
|
2440
2440
|
icon: "lucide:arrow-left",
|
|
2441
2441
|
ssr: true
|
|
2442
|
-
}
|
|
2442
|
+
}),
|
|
2443
2443
|
resolvedMessages.previous
|
|
2444
2444
|
]
|
|
2445
|
-
}
|
|
2446
|
-
/* @__PURE__ */
|
|
2445
|
+
}),
|
|
2446
|
+
/* @__PURE__ */ jsx14("span", {
|
|
2447
2447
|
className: "mt-1 block font-semibold",
|
|
2448
2448
|
children: neighbors.previous.title
|
|
2449
|
-
}
|
|
2449
|
+
})
|
|
2450
2450
|
]
|
|
2451
|
-
}
|
|
2452
|
-
neighbors.next ? /* @__PURE__ */
|
|
2451
|
+
}) : /* @__PURE__ */ jsx14("span", {}),
|
|
2452
|
+
neighbors.next ? /* @__PURE__ */ jsxs9(Link3, {
|
|
2453
2453
|
className: "hover:bg-muted/50 rounded-lg border p-4 text-right transition-colors",
|
|
2454
2454
|
to: neighbors.next.path,
|
|
2455
2455
|
children: [
|
|
2456
|
-
/* @__PURE__ */
|
|
2456
|
+
/* @__PURE__ */ jsxs9("span", {
|
|
2457
2457
|
className: "text-muted-foreground flex items-center justify-end gap-1 text-xs font-medium uppercase",
|
|
2458
2458
|
children: [
|
|
2459
2459
|
resolvedMessages.next,
|
|
2460
|
-
/* @__PURE__ */
|
|
2460
|
+
/* @__PURE__ */ jsx14(Icon, {
|
|
2461
2461
|
className: "size-3.5",
|
|
2462
2462
|
icon: "lucide:arrow-right",
|
|
2463
2463
|
ssr: true
|
|
2464
|
-
}
|
|
2464
|
+
})
|
|
2465
2465
|
]
|
|
2466
|
-
}
|
|
2467
|
-
/* @__PURE__ */
|
|
2466
|
+
}),
|
|
2467
|
+
/* @__PURE__ */ jsx14("span", {
|
|
2468
2468
|
className: "mt-1 block font-semibold",
|
|
2469
2469
|
children: neighbors.next.title
|
|
2470
|
-
}
|
|
2470
|
+
})
|
|
2471
2471
|
]
|
|
2472
|
-
}
|
|
2472
|
+
}) : null
|
|
2473
2473
|
]
|
|
2474
|
-
}
|
|
2474
|
+
})
|
|
2475
2475
|
]
|
|
2476
|
-
}
|
|
2476
|
+
});
|
|
2477
2477
|
};
|
|
2478
2478
|
var DocsPage = ({ children, docs, resolution }) => {
|
|
2479
2479
|
const { page } = resolution;
|
|
2480
2480
|
const resolvedMessages = docs.getMessages(page.locale);
|
|
2481
|
-
const content = children ?? /* @__PURE__ */
|
|
2481
|
+
const content = children ?? /* @__PURE__ */ jsxs9(Fragment3, {
|
|
2482
2482
|
children: [
|
|
2483
|
-
/* @__PURE__ */
|
|
2483
|
+
/* @__PURE__ */ jsx14(DocsHeader, {
|
|
2484
2484
|
docs,
|
|
2485
2485
|
resolution
|
|
2486
|
-
}
|
|
2487
|
-
/* @__PURE__ */
|
|
2486
|
+
}),
|
|
2487
|
+
/* @__PURE__ */ jsx14(DocsContent, {
|
|
2488
2488
|
docs,
|
|
2489
2489
|
resolution
|
|
2490
|
-
}
|
|
2491
|
-
/* @__PURE__ */
|
|
2490
|
+
}),
|
|
2491
|
+
/* @__PURE__ */ jsx14(DocsFooter, {
|
|
2492
2492
|
docs,
|
|
2493
2493
|
resolution
|
|
2494
|
-
}
|
|
2494
|
+
})
|
|
2495
2495
|
]
|
|
2496
|
-
}
|
|
2497
|
-
return /* @__PURE__ */
|
|
2496
|
+
});
|
|
2497
|
+
return /* @__PURE__ */ jsxs9(Fragment3, {
|
|
2498
2498
|
children: [
|
|
2499
|
-
/* @__PURE__ */
|
|
2499
|
+
/* @__PURE__ */ jsx14("a", {
|
|
2500
2500
|
className: "bg-background focus:ring-ring fixed top-2 left-2 z-50 -translate-y-20 rounded-md border px-3 py-2 text-sm shadow-sm focus:translate-y-0 focus:ring-2",
|
|
2501
2501
|
href: "#docs-content",
|
|
2502
2502
|
children: resolvedMessages.skipToContent
|
|
2503
|
-
}
|
|
2504
|
-
/* @__PURE__ */
|
|
2503
|
+
}),
|
|
2504
|
+
/* @__PURE__ */ jsxs9("div", {
|
|
2505
2505
|
className: "mx-auto grid w-full max-w-6xl gap-10 xl:grid-cols-[minmax(0,48rem)_14rem]",
|
|
2506
2506
|
children: [
|
|
2507
|
-
/* @__PURE__ */
|
|
2507
|
+
/* @__PURE__ */ jsx14("article", {
|
|
2508
2508
|
id: "docs-content",
|
|
2509
2509
|
className: "min-w-0 pb-16",
|
|
2510
2510
|
tabIndex: -1,
|
|
2511
2511
|
children: content
|
|
2512
|
-
}
|
|
2513
|
-
/* @__PURE__ */
|
|
2512
|
+
}),
|
|
2513
|
+
/* @__PURE__ */ jsx14("aside", {
|
|
2514
2514
|
className: "hidden xl:block",
|
|
2515
|
-
children: /* @__PURE__ */
|
|
2515
|
+
children: /* @__PURE__ */ jsx14(DocsTableOfContents, {
|
|
2516
2516
|
headings: page.headings,
|
|
2517
2517
|
label: resolvedMessages.onThisPage
|
|
2518
|
-
}
|
|
2519
|
-
}
|
|
2518
|
+
})
|
|
2519
|
+
})
|
|
2520
2520
|
]
|
|
2521
|
-
}
|
|
2521
|
+
})
|
|
2522
2522
|
]
|
|
2523
|
-
}
|
|
2523
|
+
});
|
|
2524
2524
|
};
|
|
2525
2525
|
var DocsNotFound = ({
|
|
2526
2526
|
docs,
|
|
2527
2527
|
locale
|
|
2528
2528
|
}) => {
|
|
2529
2529
|
const resolvedMessages = docs.getMessages(locale);
|
|
2530
|
-
return /* @__PURE__ */
|
|
2530
|
+
return /* @__PURE__ */ jsxs9("main", {
|
|
2531
2531
|
className: "mx-auto flex min-h-screen max-w-lg flex-col justify-center px-6 text-center",
|
|
2532
2532
|
children: [
|
|
2533
|
-
/* @__PURE__ */
|
|
2533
|
+
/* @__PURE__ */ jsx14(Icon, {
|
|
2534
2534
|
className: "text-primary mx-auto size-10",
|
|
2535
2535
|
icon: docs.brand.icon,
|
|
2536
2536
|
ssr: true
|
|
2537
|
-
}
|
|
2538
|
-
/* @__PURE__ */
|
|
2537
|
+
}),
|
|
2538
|
+
/* @__PURE__ */ jsx14("h1", {
|
|
2539
2539
|
className: "mt-6 text-3xl font-bold tracking-tight",
|
|
2540
2540
|
children: resolvedMessages.notFoundTitle
|
|
2541
|
-
}
|
|
2542
|
-
/* @__PURE__ */
|
|
2541
|
+
}),
|
|
2542
|
+
/* @__PURE__ */ jsx14("p", {
|
|
2543
2543
|
className: "text-muted-foreground mt-3 leading-7",
|
|
2544
2544
|
children: resolvedMessages.notFoundDescription
|
|
2545
|
-
}
|
|
2546
|
-
/* @__PURE__ */
|
|
2545
|
+
}),
|
|
2546
|
+
/* @__PURE__ */ jsx14(Link3, {
|
|
2547
2547
|
className: "text-primary mt-6 font-semibold underline underline-offset-4",
|
|
2548
2548
|
to: docs.basePath,
|
|
2549
2549
|
children: resolvedMessages.notFoundAction
|
|
2550
|
-
}
|
|
2550
|
+
})
|
|
2551
2551
|
]
|
|
2552
|
-
}
|
|
2552
|
+
});
|
|
2553
2553
|
};
|
|
2554
2554
|
export {
|
|
2555
2555
|
slugifyDocsHeading,
|