@krak-stack/registry 0.1.27 → 0.1.29
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/code-block.js +1 -5
- package/dist/components/ui/copy-button.js +1 -5
- package/dist/components/ui/data-table.js +239 -242
- package/dist/components/ui/editing-locale-switcher.js +1 -5
- package/dist/components/ui/effect-form.js +170 -175
- package/dist/components/ui/error-component.d.ts +30 -0
- package/dist/components/ui/error-component.js +811 -0
- package/dist/components/ui/file-picker.js +1 -5
- package/dist/components/ui/form.js +113 -118
- package/dist/components/ui/google-map.js +1 -5
- package/dist/components/ui/icon-input.js +41 -48
- package/dist/components/ui/loading.js +1 -5
- package/dist/components/ui/locale-switcher.js +1 -5
- package/dist/components/ui/pagination.js +3 -7
- package/dist/components/ui/search-menu.js +1 -5
- package/dist/components/ui/sidebar-layout.js +67 -76
- package/dist/components/ui/stats-card.js +1 -5
- package/dist/components/ui/theme-switcher.js +4 -8
- package/dist/components/ui/virtualized-combobox.js +32 -39
- package/dist/lib/docs.js +134 -143
- package/dist/lib/docs.server.js +24 -49
- package/dist/lib/documentation-toolkit.js +25 -50
- package/dist/lib/httpapi-cli.js +7 -7
- package/dist/lib/httpapi-client.js +3 -3
- package/dist/lib/httpapi-helpers.js +11 -11
- package/dist/lib/httpapi-mcp.js +2 -2
- package/dist/lib/httpapi-toolkit.js +2 -2
- package/dist/lib/query.d.ts +16 -6
- package/dist/lib/query.js +17 -8
- package/dist/lib/seo.js +2 -2
- package/dist/lib/utils.d.ts +1 -2
- package/dist/lib/webfetch-toolkit.js +6 -6
- package/dist/services/agent/client/index.js +130 -133
- package/dist/services/agent/index.d.ts +4 -0
- package/dist/services/agent/index.js +1 -1
- package/dist/services/agent/schema.d.ts +6 -0
- package/dist/services/agent/schema.js +6 -5
- package/dist/services/file-extraction/index.js +4 -4
- package/dist/services/file-extraction/schema.js +2 -2
- package/dist/services/health/index.js +9 -9
- package/dist/services/notification/channels/ses/index.js +2 -2
- package/dist/services/notification/channels/ses/schema.js +2 -2
- package/dist/services/notification/client/index.js +6 -10
- package/dist/services/notification/index.js +2 -2
- package/dist/services/notification/persistence/drizzle.js +2 -2
- package/dist/services/notification/persistence/index.js +15 -15
- package/dist/services/notification/persistence/schema.js +12 -12
- package/dist/services/notification/public.js +8 -12
- package/dist/services/notification/schema.js +2 -2
- package/dist/services/s3/index.js +2 -2
- package/dist/services/s3/schema.js +2 -2
- package/package.json +7 -4
package/dist/lib/docs.js
CHANGED
|
@@ -125,11 +125,7 @@ import { useRender } from "@base-ui/react/use-render";
|
|
|
125
125
|
import { cva } from "class-variance-authority";
|
|
126
126
|
|
|
127
127
|
// ../../src/lib/utils.ts
|
|
128
|
-
import {
|
|
129
|
-
import { twMerge } from "tailwind-merge";
|
|
130
|
-
function cn(...inputs) {
|
|
131
|
-
return twMerge(clsx(inputs));
|
|
132
|
-
}
|
|
128
|
+
import { cn } from "cn";
|
|
133
129
|
|
|
134
130
|
// ../../src/components/ui/badge.tsx
|
|
135
131
|
var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
@@ -1239,31 +1235,29 @@ function useIsMobile() {
|
|
|
1239
1235
|
|
|
1240
1236
|
// ../../src/components/ui/input.tsx
|
|
1241
1237
|
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
1242
|
-
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
1243
1238
|
|
|
1244
1239
|
// ../../src/components/ui/separator.tsx
|
|
1245
1240
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
1246
|
-
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
1247
1241
|
|
|
1248
1242
|
// ../../src/components/ui/sheet.tsx
|
|
1249
1243
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
1250
1244
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
1251
|
-
import { jsx as
|
|
1245
|
+
import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1252
1246
|
"use client";
|
|
1253
1247
|
function Sheet({ ...props }) {
|
|
1254
|
-
return /* @__PURE__ */
|
|
1248
|
+
return /* @__PURE__ */ jsx10(SheetPrimitive.Root, {
|
|
1255
1249
|
"data-slot": "sheet",
|
|
1256
1250
|
...props
|
|
1257
1251
|
});
|
|
1258
1252
|
}
|
|
1259
1253
|
function SheetPortal({ ...props }) {
|
|
1260
|
-
return /* @__PURE__ */
|
|
1254
|
+
return /* @__PURE__ */ jsx10(SheetPrimitive.Portal, {
|
|
1261
1255
|
"data-slot": "sheet-portal",
|
|
1262
1256
|
...props
|
|
1263
1257
|
});
|
|
1264
1258
|
}
|
|
1265
1259
|
function SheetOverlay({ className, ...props }) {
|
|
1266
|
-
return /* @__PURE__ */
|
|
1260
|
+
return /* @__PURE__ */ jsx10(SheetPrimitive.Backdrop, {
|
|
1267
1261
|
"data-slot": "sheet-overlay",
|
|
1268
1262
|
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),
|
|
1269
1263
|
...props
|
|
@@ -1278,7 +1272,7 @@ function SheetContent({
|
|
|
1278
1272
|
}) {
|
|
1279
1273
|
return /* @__PURE__ */ jsxs7(SheetPortal, {
|
|
1280
1274
|
children: [
|
|
1281
|
-
/* @__PURE__ */
|
|
1275
|
+
/* @__PURE__ */ jsx10(SheetOverlay, {}),
|
|
1282
1276
|
/* @__PURE__ */ jsxs7(SheetPrimitive.Popup, {
|
|
1283
1277
|
"data-slot": "sheet-content",
|
|
1284
1278
|
"data-side": side,
|
|
@@ -1288,14 +1282,14 @@ function SheetContent({
|
|
|
1288
1282
|
children,
|
|
1289
1283
|
showCloseButton && /* @__PURE__ */ jsxs7(SheetPrimitive.Close, {
|
|
1290
1284
|
"data-slot": "sheet-close",
|
|
1291
|
-
render: /* @__PURE__ */
|
|
1285
|
+
render: /* @__PURE__ */ jsx10(Button, {
|
|
1292
1286
|
variant: "ghost",
|
|
1293
1287
|
className: "absolute top-4 right-4",
|
|
1294
1288
|
size: "icon-sm"
|
|
1295
1289
|
}),
|
|
1296
1290
|
children: [
|
|
1297
|
-
/* @__PURE__ */
|
|
1298
|
-
/* @__PURE__ */
|
|
1291
|
+
/* @__PURE__ */ jsx10(XIcon2, {}),
|
|
1292
|
+
/* @__PURE__ */ jsx10("span", {
|
|
1299
1293
|
className: "sr-only",
|
|
1300
1294
|
children: "Close"
|
|
1301
1295
|
})
|
|
@@ -1307,14 +1301,14 @@ function SheetContent({
|
|
|
1307
1301
|
});
|
|
1308
1302
|
}
|
|
1309
1303
|
function SheetHeader({ className, ...props }) {
|
|
1310
|
-
return /* @__PURE__ */
|
|
1304
|
+
return /* @__PURE__ */ jsx10("div", {
|
|
1311
1305
|
"data-slot": "sheet-header",
|
|
1312
1306
|
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
1313
1307
|
...props
|
|
1314
1308
|
});
|
|
1315
1309
|
}
|
|
1316
1310
|
function SheetTitle({ className, ...props }) {
|
|
1317
|
-
return /* @__PURE__ */
|
|
1311
|
+
return /* @__PURE__ */ jsx10(SheetPrimitive.Title, {
|
|
1318
1312
|
"data-slot": "sheet-title",
|
|
1319
1313
|
className: cn("font-medium text-foreground", className),
|
|
1320
1314
|
...props
|
|
@@ -1324,28 +1318,25 @@ function SheetDescription({
|
|
|
1324
1318
|
className,
|
|
1325
1319
|
...props
|
|
1326
1320
|
}) {
|
|
1327
|
-
return /* @__PURE__ */
|
|
1321
|
+
return /* @__PURE__ */ jsx10(SheetPrimitive.Description, {
|
|
1328
1322
|
"data-slot": "sheet-description",
|
|
1329
1323
|
className: cn("text-sm text-muted-foreground", className),
|
|
1330
1324
|
...props
|
|
1331
1325
|
});
|
|
1332
1326
|
}
|
|
1333
1327
|
|
|
1334
|
-
// ../../src/components/ui/skeleton.tsx
|
|
1335
|
-
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1336
|
-
|
|
1337
1328
|
// ../../src/components/ui/tooltip.tsx
|
|
1338
1329
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
1339
|
-
import { jsx as
|
|
1330
|
+
import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1340
1331
|
"use client";
|
|
1341
1332
|
function Tooltip({ ...props }) {
|
|
1342
|
-
return /* @__PURE__ */
|
|
1333
|
+
return /* @__PURE__ */ jsx11(TooltipPrimitive.Root, {
|
|
1343
1334
|
"data-slot": "tooltip",
|
|
1344
1335
|
...props
|
|
1345
1336
|
});
|
|
1346
1337
|
}
|
|
1347
1338
|
function TooltipTrigger({ ...props }) {
|
|
1348
|
-
return /* @__PURE__ */
|
|
1339
|
+
return /* @__PURE__ */ jsx11(TooltipPrimitive.Trigger, {
|
|
1349
1340
|
"data-slot": "tooltip-trigger",
|
|
1350
1341
|
...props
|
|
1351
1342
|
});
|
|
@@ -1359,8 +1350,8 @@ function TooltipContent({
|
|
|
1359
1350
|
children,
|
|
1360
1351
|
...props
|
|
1361
1352
|
}) {
|
|
1362
|
-
return /* @__PURE__ */
|
|
1363
|
-
children: /* @__PURE__ */
|
|
1353
|
+
return /* @__PURE__ */ jsx11(TooltipPrimitive.Portal, {
|
|
1354
|
+
children: /* @__PURE__ */ jsx11(TooltipPrimitive.Positioner, {
|
|
1364
1355
|
align,
|
|
1365
1356
|
alignOffset,
|
|
1366
1357
|
side,
|
|
@@ -1372,7 +1363,7 @@ function TooltipContent({
|
|
|
1372
1363
|
...props,
|
|
1373
1364
|
children: [
|
|
1374
1365
|
children,
|
|
1375
|
-
/* @__PURE__ */
|
|
1366
|
+
/* @__PURE__ */ jsx11(TooltipPrimitive.Arrow, {
|
|
1376
1367
|
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"
|
|
1377
1368
|
})
|
|
1378
1369
|
]
|
|
@@ -1384,7 +1375,7 @@ function TooltipContent({
|
|
|
1384
1375
|
// ../../src/components/ui/sidebar.tsx
|
|
1385
1376
|
import { PanelLeftIcon } from "lucide-react";
|
|
1386
1377
|
import { Schema } from "effect";
|
|
1387
|
-
import { jsx as
|
|
1378
|
+
import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1388
1379
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
1389
1380
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
1390
1381
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -1448,9 +1439,9 @@ function SidebarProvider({
|
|
|
1448
1439
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
1449
1440
|
...style
|
|
1450
1441
|
};
|
|
1451
|
-
return /* @__PURE__ */
|
|
1442
|
+
return /* @__PURE__ */ jsx12(SidebarContext.Provider, {
|
|
1452
1443
|
value: contextValue,
|
|
1453
|
-
children: /* @__PURE__ */
|
|
1444
|
+
children: /* @__PURE__ */ jsx12("div", {
|
|
1454
1445
|
"data-slot": "sidebar-wrapper",
|
|
1455
1446
|
style: wrapperStyle,
|
|
1456
1447
|
className: cn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", className),
|
|
@@ -1470,7 +1461,7 @@ function Sidebar({
|
|
|
1470
1461
|
}) {
|
|
1471
1462
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
1472
1463
|
if (collapsible === "none") {
|
|
1473
|
-
return /* @__PURE__ */
|
|
1464
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1474
1465
|
"data-slot": "sidebar",
|
|
1475
1466
|
className: cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", className),
|
|
1476
1467
|
...props,
|
|
@@ -1481,7 +1472,7 @@ function Sidebar({
|
|
|
1481
1472
|
const mobileStyle = {
|
|
1482
1473
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
1483
1474
|
};
|
|
1484
|
-
return /* @__PURE__ */
|
|
1475
|
+
return /* @__PURE__ */ jsx12(Sheet, {
|
|
1485
1476
|
open: openMobile,
|
|
1486
1477
|
onOpenChange: setOpenMobile,
|
|
1487
1478
|
...props,
|
|
@@ -1497,15 +1488,15 @@ function Sidebar({
|
|
|
1497
1488
|
/* @__PURE__ */ jsxs9(SheetHeader, {
|
|
1498
1489
|
className: "sr-only",
|
|
1499
1490
|
children: [
|
|
1500
|
-
/* @__PURE__ */
|
|
1491
|
+
/* @__PURE__ */ jsx12(SheetTitle, {
|
|
1501
1492
|
children: "Sidebar"
|
|
1502
1493
|
}),
|
|
1503
|
-
/* @__PURE__ */
|
|
1494
|
+
/* @__PURE__ */ jsx12(SheetDescription, {
|
|
1504
1495
|
children: "Displays the mobile sidebar."
|
|
1505
1496
|
})
|
|
1506
1497
|
]
|
|
1507
1498
|
}),
|
|
1508
|
-
/* @__PURE__ */
|
|
1499
|
+
/* @__PURE__ */ jsx12("div", {
|
|
1509
1500
|
className: "flex h-full w-full flex-col",
|
|
1510
1501
|
children
|
|
1511
1502
|
})
|
|
@@ -1521,16 +1512,16 @@ function Sidebar({
|
|
|
1521
1512
|
"data-side": side,
|
|
1522
1513
|
"data-slot": "sidebar",
|
|
1523
1514
|
children: [
|
|
1524
|
-
/* @__PURE__ */
|
|
1515
|
+
/* @__PURE__ */ jsx12("div", {
|
|
1525
1516
|
"data-slot": "sidebar-gap",
|
|
1526
1517
|
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)")
|
|
1527
1518
|
}),
|
|
1528
|
-
/* @__PURE__ */
|
|
1519
|
+
/* @__PURE__ */ jsx12("div", {
|
|
1529
1520
|
"data-slot": "sidebar-container",
|
|
1530
1521
|
"data-side": side,
|
|
1531
1522
|
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),
|
|
1532
1523
|
...props,
|
|
1533
|
-
children: /* @__PURE__ */
|
|
1524
|
+
children: /* @__PURE__ */ jsx12("div", {
|
|
1534
1525
|
"data-sidebar": "sidebar",
|
|
1535
1526
|
"data-slot": "sidebar-inner",
|
|
1536
1527
|
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",
|
|
@@ -1558,8 +1549,8 @@ function SidebarTrigger({
|
|
|
1558
1549
|
},
|
|
1559
1550
|
...props,
|
|
1560
1551
|
children: [
|
|
1561
|
-
/* @__PURE__ */
|
|
1562
|
-
/* @__PURE__ */
|
|
1552
|
+
/* @__PURE__ */ jsx12(PanelLeftIcon, {}),
|
|
1553
|
+
/* @__PURE__ */ jsx12("span", {
|
|
1563
1554
|
className: "sr-only",
|
|
1564
1555
|
children: "Toggle Sidebar"
|
|
1565
1556
|
})
|
|
@@ -1568,7 +1559,7 @@ function SidebarTrigger({
|
|
|
1568
1559
|
}
|
|
1569
1560
|
function SidebarRail({ className, ...props }) {
|
|
1570
1561
|
const { toggleSidebar } = useSidebar();
|
|
1571
|
-
return /* @__PURE__ */
|
|
1562
|
+
return /* @__PURE__ */ jsx12("button", {
|
|
1572
1563
|
"data-sidebar": "rail",
|
|
1573
1564
|
"data-slot": "sidebar-rail",
|
|
1574
1565
|
"aria-label": "Toggle Sidebar",
|
|
@@ -1580,14 +1571,14 @@ function SidebarRail({ className, ...props }) {
|
|
|
1580
1571
|
});
|
|
1581
1572
|
}
|
|
1582
1573
|
function SidebarInset({ className, ...props }) {
|
|
1583
|
-
return /* @__PURE__ */
|
|
1574
|
+
return /* @__PURE__ */ jsx12("main", {
|
|
1584
1575
|
"data-slot": "sidebar-inset",
|
|
1585
1576
|
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),
|
|
1586
1577
|
...props
|
|
1587
1578
|
});
|
|
1588
1579
|
}
|
|
1589
1580
|
function SidebarHeader({ className, ...props }) {
|
|
1590
|
-
return /* @__PURE__ */
|
|
1581
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1591
1582
|
"data-slot": "sidebar-header",
|
|
1592
1583
|
"data-sidebar": "header",
|
|
1593
1584
|
className: cn("flex flex-col gap-2 p-2", className),
|
|
@@ -1595,7 +1586,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
1595
1586
|
});
|
|
1596
1587
|
}
|
|
1597
1588
|
function SidebarFooter({ className, ...props }) {
|
|
1598
|
-
return /* @__PURE__ */
|
|
1589
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1599
1590
|
"data-slot": "sidebar-footer",
|
|
1600
1591
|
"data-sidebar": "footer",
|
|
1601
1592
|
className: cn("flex flex-col gap-2 p-2", className),
|
|
@@ -1603,7 +1594,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
1603
1594
|
});
|
|
1604
1595
|
}
|
|
1605
1596
|
function SidebarContent({ className, ...props }) {
|
|
1606
|
-
return /* @__PURE__ */
|
|
1597
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1607
1598
|
"data-slot": "sidebar-content",
|
|
1608
1599
|
"data-sidebar": "content",
|
|
1609
1600
|
className: cn("no-scrollbar flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className),
|
|
@@ -1611,7 +1602,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
1611
1602
|
});
|
|
1612
1603
|
}
|
|
1613
1604
|
function SidebarGroup({ className, ...props }) {
|
|
1614
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1615
1606
|
"data-slot": "sidebar-group",
|
|
1616
1607
|
"data-sidebar": "group",
|
|
1617
1608
|
className: cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
@@ -1639,7 +1630,7 @@ function SidebarGroupContent({
|
|
|
1639
1630
|
className,
|
|
1640
1631
|
...props
|
|
1641
1632
|
}) {
|
|
1642
|
-
return /* @__PURE__ */
|
|
1633
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1643
1634
|
"data-slot": "sidebar-group-content",
|
|
1644
1635
|
"data-sidebar": "group-content",
|
|
1645
1636
|
className: cn("w-full text-sm", className),
|
|
@@ -1647,7 +1638,7 @@ function SidebarGroupContent({
|
|
|
1647
1638
|
});
|
|
1648
1639
|
}
|
|
1649
1640
|
function SidebarMenu({ className, ...props }) {
|
|
1650
|
-
return /* @__PURE__ */
|
|
1641
|
+
return /* @__PURE__ */ jsx12("ul", {
|
|
1651
1642
|
"data-slot": "sidebar-menu",
|
|
1652
1643
|
"data-sidebar": "menu",
|
|
1653
1644
|
className: cn("flex w-full min-w-0 flex-col gap-1", className),
|
|
@@ -1655,7 +1646,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
1655
1646
|
});
|
|
1656
1647
|
}
|
|
1657
1648
|
function SidebarMenuItem({ className, ...props }) {
|
|
1658
|
-
return /* @__PURE__ */
|
|
1649
|
+
return /* @__PURE__ */ jsx12("li", {
|
|
1659
1650
|
"data-slot": "sidebar-menu-item",
|
|
1660
1651
|
"data-sidebar": "menu-item",
|
|
1661
1652
|
className: cn("group/menu-item relative", className),
|
|
@@ -1694,7 +1685,7 @@ function SidebarMenuButton({
|
|
|
1694
1685
|
props: mergeProps2({
|
|
1695
1686
|
className: cn(sidebarMenuButtonVariants({ variant, size }), className)
|
|
1696
1687
|
}, props),
|
|
1697
|
-
render: !tooltip ? render : /* @__PURE__ */
|
|
1688
|
+
render: !tooltip ? render : /* @__PURE__ */ jsx12(TooltipTrigger, {
|
|
1698
1689
|
render
|
|
1699
1690
|
}),
|
|
1700
1691
|
state: {
|
|
@@ -1711,7 +1702,7 @@ function SidebarMenuButton({
|
|
|
1711
1702
|
return /* @__PURE__ */ jsxs9(Tooltip, {
|
|
1712
1703
|
children: [
|
|
1713
1704
|
comp,
|
|
1714
|
-
/* @__PURE__ */
|
|
1705
|
+
/* @__PURE__ */ jsx12(TooltipContent, {
|
|
1715
1706
|
side: "right",
|
|
1716
1707
|
align: "center",
|
|
1717
1708
|
hidden: state !== "collapsed" || isMobile,
|
|
@@ -1722,7 +1713,7 @@ function SidebarMenuButton({
|
|
|
1722
1713
|
}
|
|
1723
1714
|
|
|
1724
1715
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
1725
|
-
import { jsx as
|
|
1716
|
+
import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1726
1717
|
var SIDEBAR_COOKIE_NAME2 = "sidebar_state";
|
|
1727
1718
|
var SidebarOpenCookie = Schema2.Literals(["true", "false"]).annotate({
|
|
1728
1719
|
identifier: "SidebarOpenCookie"
|
|
@@ -1742,38 +1733,38 @@ function AppSidebar({ collapsible, footer, groups, header }) {
|
|
|
1742
1733
|
return /* @__PURE__ */ jsxs10(Sidebar, {
|
|
1743
1734
|
collapsible,
|
|
1744
1735
|
children: [
|
|
1745
|
-
header && /* @__PURE__ */
|
|
1736
|
+
header && /* @__PURE__ */ jsx13(SidebarHeader, {
|
|
1746
1737
|
children: header
|
|
1747
1738
|
}),
|
|
1748
|
-
/* @__PURE__ */
|
|
1739
|
+
/* @__PURE__ */ jsx13(SidebarContent, {
|
|
1749
1740
|
className: "group-data-[collapsible=icon]:overflow-x-hidden group-data-[collapsible=icon]:overflow-y-auto",
|
|
1750
1741
|
children: groups.map((group) => /* @__PURE__ */ jsxs10(SidebarGroup, {
|
|
1751
1742
|
children: [
|
|
1752
|
-
/* @__PURE__ */
|
|
1743
|
+
/* @__PURE__ */ jsx13(SidebarGroupLabel, {
|
|
1753
1744
|
children: group.label()
|
|
1754
1745
|
}),
|
|
1755
|
-
/* @__PURE__ */
|
|
1756
|
-
children: /* @__PURE__ */
|
|
1746
|
+
/* @__PURE__ */ jsx13(SidebarGroupContent, {
|
|
1747
|
+
children: /* @__PURE__ */ jsx13(SidebarMenu, {
|
|
1757
1748
|
children: group.items.map((item) => {
|
|
1758
|
-
const render = item.external ? /* @__PURE__ */
|
|
1749
|
+
const render = item.external ? /* @__PURE__ */ jsx13("a", {
|
|
1759
1750
|
href: item.href,
|
|
1760
1751
|
target: "_blank",
|
|
1761
1752
|
rel: "noreferrer"
|
|
1762
|
-
}) : /* @__PURE__ */
|
|
1753
|
+
}) : /* @__PURE__ */ jsx13(Link2, {
|
|
1763
1754
|
to: item.href
|
|
1764
1755
|
});
|
|
1765
|
-
return /* @__PURE__ */
|
|
1756
|
+
return /* @__PURE__ */ jsx13(SidebarMenuItem, {
|
|
1766
1757
|
children: /* @__PURE__ */ jsxs10(SidebarMenuButton, {
|
|
1767
1758
|
isActive: !item.external && pathname === item.href,
|
|
1768
1759
|
onClick: closeMobileSidebar,
|
|
1769
1760
|
render,
|
|
1770
1761
|
tooltip: item.label(),
|
|
1771
1762
|
children: [
|
|
1772
|
-
item.icon ? /* @__PURE__ */
|
|
1773
|
-
/* @__PURE__ */
|
|
1763
|
+
item.icon ? /* @__PURE__ */ jsx13(item.icon, {}) : null,
|
|
1764
|
+
/* @__PURE__ */ jsx13("span", {
|
|
1774
1765
|
children: item.label()
|
|
1775
1766
|
}),
|
|
1776
|
-
item.badge ? /* @__PURE__ */
|
|
1767
|
+
item.badge ? /* @__PURE__ */ jsx13(Badge, {
|
|
1777
1768
|
className: "ml-auto",
|
|
1778
1769
|
variant: "secondary",
|
|
1779
1770
|
children: item.badge()
|
|
@@ -1787,10 +1778,10 @@ function AppSidebar({ collapsible, footer, groups, header }) {
|
|
|
1787
1778
|
]
|
|
1788
1779
|
}, group.label()))
|
|
1789
1780
|
}),
|
|
1790
|
-
footer ? /* @__PURE__ */
|
|
1781
|
+
footer ? /* @__PURE__ */ jsx13(SidebarFooter, {
|
|
1791
1782
|
children: footer
|
|
1792
1783
|
}) : null,
|
|
1793
|
-
/* @__PURE__ */
|
|
1784
|
+
/* @__PURE__ */ jsx13(SidebarRail, {})
|
|
1794
1785
|
]
|
|
1795
1786
|
});
|
|
1796
1787
|
}
|
|
@@ -1811,7 +1802,7 @@ function SidebarLayout({
|
|
|
1811
1802
|
onOpenChange: setSidebarOpen,
|
|
1812
1803
|
className: cn(fullPage && "xl:h-svh xl:min-h-0 xl:overflow-hidden"),
|
|
1813
1804
|
children: [
|
|
1814
|
-
/* @__PURE__ */
|
|
1805
|
+
/* @__PURE__ */ jsx13(AppSidebar, {
|
|
1815
1806
|
collapsible: sidebarCollapsible,
|
|
1816
1807
|
footer: sidebarFooter,
|
|
1817
1808
|
groups,
|
|
@@ -1823,16 +1814,16 @@ function SidebarLayout({
|
|
|
1823
1814
|
/* @__PURE__ */ jsxs10("header", {
|
|
1824
1815
|
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",
|
|
1825
1816
|
children: [
|
|
1826
|
-
/* @__PURE__ */
|
|
1827
|
-
/* @__PURE__ */
|
|
1817
|
+
/* @__PURE__ */ jsx13(SidebarTrigger, {}),
|
|
1818
|
+
/* @__PURE__ */ jsx13("div", {
|
|
1828
1819
|
className: "ml-auto flex items-center gap-2",
|
|
1829
1820
|
children: headerActions
|
|
1830
1821
|
})
|
|
1831
1822
|
]
|
|
1832
1823
|
}),
|
|
1833
|
-
/* @__PURE__ */
|
|
1824
|
+
/* @__PURE__ */ jsx13("div", {
|
|
1834
1825
|
className: contentClassName ?? "flex flex-col gap-6 px-5 py-6 md:px-8",
|
|
1835
|
-
children: children ?? /* @__PURE__ */
|
|
1826
|
+
children: children ?? /* @__PURE__ */ jsx13(Outlet, {})
|
|
1836
1827
|
})
|
|
1837
1828
|
]
|
|
1838
1829
|
})
|
|
@@ -1954,7 +1945,7 @@ var createSeo = (defaults) => (options) => seo({
|
|
|
1954
1945
|
});
|
|
1955
1946
|
|
|
1956
1947
|
// ../../src/lib/docs.tsx
|
|
1957
|
-
import { jsx as
|
|
1948
|
+
import { jsx as jsx14, jsxs as jsxs11, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
1958
1949
|
var SIDEBAR_COOKIE_NAME3 = "sidebar_state";
|
|
1959
1950
|
var SidebarOpenCookie2 = Schema3.Literals(["true", "false"]).annotate({
|
|
1960
1951
|
identifier: "SidebarOpenCookie"
|
|
@@ -1962,7 +1953,7 @@ var SidebarOpenCookie2 = Schema3.Literals(["true", "false"]).annotate({
|
|
|
1962
1953
|
var getSidebarOpenCookie = createIsomorphicFn().server(() => getCookie(SIDEBAR_COOKIE_NAME3)).client(() => Cookies2.parseHeader(globalThis.document?.cookie ?? "")[SIDEBAR_COOKIE_NAME3]);
|
|
1963
1954
|
var getSidebarDefaultOpen2 = () => Schema3.decodeUnknownOption(SidebarOpenCookie2)(getSidebarOpenCookie()).pipe(Option2.map((value) => value === "true"), Option2.getOrElse(() => true));
|
|
1964
1955
|
var makeIcon = (name, paths) => {
|
|
1965
|
-
const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */
|
|
1956
|
+
const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx14("svg", {
|
|
1966
1957
|
"aria-hidden": "true",
|
|
1967
1958
|
fill: "none",
|
|
1968
1959
|
height: size,
|
|
@@ -1981,71 +1972,71 @@ var makeIcon = (name, paths) => {
|
|
|
1981
1972
|
};
|
|
1982
1973
|
var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
1983
1974
|
children: [
|
|
1984
|
-
/* @__PURE__ */
|
|
1975
|
+
/* @__PURE__ */ jsx14("path", {
|
|
1985
1976
|
d: "m12 19-7-7 7-7"
|
|
1986
1977
|
}),
|
|
1987
|
-
/* @__PURE__ */
|
|
1978
|
+
/* @__PURE__ */ jsx14("path", {
|
|
1988
1979
|
d: "M19 12H5"
|
|
1989
1980
|
})
|
|
1990
1981
|
]
|
|
1991
1982
|
}));
|
|
1992
1983
|
var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
1993
1984
|
children: [
|
|
1994
|
-
/* @__PURE__ */
|
|
1985
|
+
/* @__PURE__ */ jsx14("path", {
|
|
1995
1986
|
d: "M5 12h14"
|
|
1996
1987
|
}),
|
|
1997
|
-
/* @__PURE__ */
|
|
1988
|
+
/* @__PURE__ */ jsx14("path", {
|
|
1998
1989
|
d: "m12 5 7 7-7 7"
|
|
1999
1990
|
})
|
|
2000
1991
|
]
|
|
2001
1992
|
}));
|
|
2002
1993
|
var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
2003
1994
|
children: [
|
|
2004
|
-
/* @__PURE__ */
|
|
1995
|
+
/* @__PURE__ */ jsx14("path", {
|
|
2005
1996
|
d: "M12 7v14"
|
|
2006
1997
|
}),
|
|
2007
|
-
/* @__PURE__ */
|
|
1998
|
+
/* @__PURE__ */ jsx14("path", {
|
|
2008
1999
|
d: "M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4Z"
|
|
2009
2000
|
})
|
|
2010
2001
|
]
|
|
2011
2002
|
}));
|
|
2012
|
-
var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */
|
|
2003
|
+
var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx14("path", {
|
|
2013
2004
|
d: "m6 9 6 6 6-6"
|
|
2014
2005
|
}));
|
|
2015
2006
|
var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
2016
2007
|
children: [
|
|
2017
|
-
/* @__PURE__ */
|
|
2008
|
+
/* @__PURE__ */ jsx14("path", {
|
|
2018
2009
|
d: "M15 3h6v6"
|
|
2019
2010
|
}),
|
|
2020
|
-
/* @__PURE__ */
|
|
2011
|
+
/* @__PURE__ */ jsx14("path", {
|
|
2021
2012
|
d: "M10 14 21 3"
|
|
2022
2013
|
}),
|
|
2023
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ jsx14("path", {
|
|
2024
2015
|
d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"
|
|
2025
2016
|
})
|
|
2026
2017
|
]
|
|
2027
2018
|
}));
|
|
2028
2019
|
var Hash = makeIcon("Hash", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
2029
2020
|
children: [
|
|
2030
|
-
/* @__PURE__ */
|
|
2021
|
+
/* @__PURE__ */ jsx14("line", {
|
|
2031
2022
|
x1: "4",
|
|
2032
2023
|
x2: "20",
|
|
2033
2024
|
y1: "9",
|
|
2034
2025
|
y2: "9"
|
|
2035
2026
|
}),
|
|
2036
|
-
/* @__PURE__ */
|
|
2027
|
+
/* @__PURE__ */ jsx14("line", {
|
|
2037
2028
|
x1: "4",
|
|
2038
2029
|
x2: "20",
|
|
2039
2030
|
y1: "15",
|
|
2040
2031
|
y2: "15"
|
|
2041
2032
|
}),
|
|
2042
|
-
/* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ jsx14("line", {
|
|
2043
2034
|
x1: "10",
|
|
2044
2035
|
x2: "8",
|
|
2045
2036
|
y1: "3",
|
|
2046
2037
|
y2: "21"
|
|
2047
2038
|
}),
|
|
2048
|
-
/* @__PURE__ */
|
|
2039
|
+
/* @__PURE__ */ jsx14("line", {
|
|
2049
2040
|
x1: "16",
|
|
2050
2041
|
x2: "14",
|
|
2051
2042
|
y1: "3",
|
|
@@ -2447,7 +2438,7 @@ var DocsArticle = ({
|
|
|
2447
2438
|
messages: messages3,
|
|
2448
2439
|
page
|
|
2449
2440
|
}) => {
|
|
2450
|
-
return /* @__PURE__ */
|
|
2441
|
+
return /* @__PURE__ */ jsx14(MarkdownContent, {
|
|
2451
2442
|
codeBlocks: page.codeBlocks,
|
|
2452
2443
|
html: page.html,
|
|
2453
2444
|
messages: { copy: messages3.copyCode, copied: messages3.copied }
|
|
@@ -2494,12 +2485,12 @@ var DocsTableOfContentsItems = ({
|
|
|
2494
2485
|
headings
|
|
2495
2486
|
}) => {
|
|
2496
2487
|
const activeHeadingId = useActiveDocsHeading(headings);
|
|
2497
|
-
return /* @__PURE__ */
|
|
2488
|
+
return /* @__PURE__ */ jsx14("ol", {
|
|
2498
2489
|
className: "border-l",
|
|
2499
2490
|
children: headings.map((heading) => {
|
|
2500
2491
|
const isActive = heading.id === activeHeadingId;
|
|
2501
|
-
return /* @__PURE__ */
|
|
2502
|
-
children: /* @__PURE__ */
|
|
2492
|
+
return /* @__PURE__ */ jsx14("li", {
|
|
2493
|
+
children: /* @__PURE__ */ jsx14("a", {
|
|
2503
2494
|
"aria-current": isActive ? "location" : undefined,
|
|
2504
2495
|
className: `hover:text-foreground -ml-px block border-l py-1.5 text-sm leading-5 transition-colors ${isActive ? "border-primary text-foreground font-medium" : "text-muted-foreground border-transparent"} ${heading.depth === 3 ? "pl-6" : "pl-4"}`,
|
|
2505
2496
|
href: `#${heading.id}`,
|
|
@@ -2519,11 +2510,11 @@ var DocsTableOfContents = ({
|
|
|
2519
2510
|
"aria-label": label,
|
|
2520
2511
|
className: "fixed top-20 max-h-[calc(100svh-6rem)] w-56 overflow-y-auto",
|
|
2521
2512
|
children: [
|
|
2522
|
-
/* @__PURE__ */
|
|
2513
|
+
/* @__PURE__ */ jsx14("p", {
|
|
2523
2514
|
className: "text-foreground mb-3 text-sm font-semibold",
|
|
2524
2515
|
children: label
|
|
2525
2516
|
}),
|
|
2526
|
-
/* @__PURE__ */
|
|
2517
|
+
/* @__PURE__ */ jsx14(DocsTableOfContentsItems, {
|
|
2527
2518
|
headings
|
|
2528
2519
|
})
|
|
2529
2520
|
]
|
|
@@ -2541,19 +2532,19 @@ var DocsMobileTableOfContents = ({
|
|
|
2541
2532
|
/* @__PURE__ */ jsxs11(CollapsibleTrigger, {
|
|
2542
2533
|
className: "group flex w-full cursor-pointer items-center justify-between p-4 text-left text-sm font-semibold",
|
|
2543
2534
|
children: [
|
|
2544
|
-
/* @__PURE__ */
|
|
2535
|
+
/* @__PURE__ */ jsx14("span", {
|
|
2545
2536
|
children: label
|
|
2546
2537
|
}),
|
|
2547
|
-
/* @__PURE__ */
|
|
2538
|
+
/* @__PURE__ */ jsx14(ChevronDown, {
|
|
2548
2539
|
className: "text-muted-foreground size-4 transition-transform group-data-[panel-open]:rotate-180"
|
|
2549
2540
|
})
|
|
2550
2541
|
]
|
|
2551
2542
|
}),
|
|
2552
|
-
/* @__PURE__ */
|
|
2543
|
+
/* @__PURE__ */ jsx14(CollapsibleContent, {
|
|
2553
2544
|
className: "px-4 pt-1 pb-4",
|
|
2554
|
-
children: /* @__PURE__ */
|
|
2545
|
+
children: /* @__PURE__ */ jsx14("nav", {
|
|
2555
2546
|
"aria-label": label,
|
|
2556
|
-
children: /* @__PURE__ */
|
|
2547
|
+
children: /* @__PURE__ */ jsx14(DocsTableOfContentsItems, {
|
|
2557
2548
|
headings
|
|
2558
2549
|
})
|
|
2559
2550
|
})
|
|
@@ -2591,7 +2582,7 @@ var DocsSearch = ({
|
|
|
2591
2582
|
id: `${page.path}#${heading.id}`,
|
|
2592
2583
|
label: heading.title,
|
|
2593
2584
|
description: page.title,
|
|
2594
|
-
icon: /* @__PURE__ */
|
|
2585
|
+
icon: /* @__PURE__ */ jsx14(Hash, {
|
|
2595
2586
|
className: "size-4"
|
|
2596
2587
|
}),
|
|
2597
2588
|
onSelect: () => docs.navigate(`${page.path}#${heading.id}`)
|
|
@@ -2605,7 +2596,7 @@ var DocsSearch = ({
|
|
|
2605
2596
|
if (page.icon) {
|
|
2606
2597
|
const PageIcon = iconFor(docs.icons, page.icon);
|
|
2607
2598
|
if (PageIcon)
|
|
2608
|
-
item.icon = /* @__PURE__ */
|
|
2599
|
+
item.icon = /* @__PURE__ */ jsx14(PageIcon, {
|
|
2609
2600
|
className: "size-4"
|
|
2610
2601
|
});
|
|
2611
2602
|
}
|
|
@@ -2613,7 +2604,7 @@ var DocsSearch = ({
|
|
|
2613
2604
|
})())
|
|
2614
2605
|
};
|
|
2615
2606
|
});
|
|
2616
|
-
return /* @__PURE__ */
|
|
2607
|
+
return /* @__PURE__ */ jsx14(SearchMenu, {
|
|
2617
2608
|
groups,
|
|
2618
2609
|
messages: {
|
|
2619
2610
|
title: messages3.searchTitle,
|
|
@@ -2683,11 +2674,11 @@ var DocsLayout = ({
|
|
|
2683
2674
|
]
|
|
2684
2675
|
});
|
|
2685
2676
|
}
|
|
2686
|
-
return /* @__PURE__ */
|
|
2677
|
+
return /* @__PURE__ */ jsx14(SidebarLayout, {
|
|
2687
2678
|
defaultOpen: getSidebarDefaultOpen2(),
|
|
2688
2679
|
groups,
|
|
2689
2680
|
sidebarCollapsible,
|
|
2690
|
-
sidebarHeader: /* @__PURE__ */
|
|
2681
|
+
sidebarHeader: /* @__PURE__ */ jsx14(AppBrand, {
|
|
2691
2682
|
label: brand.label,
|
|
2692
2683
|
subtitle: brand.subtitle(),
|
|
2693
2684
|
icon: brand.icon,
|
|
@@ -2703,12 +2694,12 @@ var DocsLayout = ({
|
|
|
2703
2694
|
rel: "noreferrer",
|
|
2704
2695
|
children: [
|
|
2705
2696
|
docs.githubLabel,
|
|
2706
|
-
/* @__PURE__ */
|
|
2697
|
+
/* @__PURE__ */ jsx14(ExternalLink, {
|
|
2707
2698
|
className: "size-3.5"
|
|
2708
2699
|
})
|
|
2709
2700
|
]
|
|
2710
2701
|
}) : null,
|
|
2711
|
-
/* @__PURE__ */
|
|
2702
|
+
/* @__PURE__ */ jsx14(DocsSearch, {
|
|
2712
2703
|
docs,
|
|
2713
2704
|
locale,
|
|
2714
2705
|
messages: resolvedMessages
|
|
@@ -2737,21 +2728,21 @@ var DocsHeader = ({ docs, resolution }) => {
|
|
|
2737
2728
|
/* @__PURE__ */ jsxs11("div", {
|
|
2738
2729
|
className: "flex flex-wrap items-center gap-3",
|
|
2739
2730
|
children: [
|
|
2740
|
-
/* @__PURE__ */
|
|
2731
|
+
/* @__PURE__ */ jsx14("h1", {
|
|
2741
2732
|
className: "text-3xl font-bold tracking-tight sm:text-4xl",
|
|
2742
2733
|
children: page.title
|
|
2743
2734
|
}),
|
|
2744
|
-
page.tags?.map((tag) => /* @__PURE__ */
|
|
2735
|
+
page.tags?.map((tag) => /* @__PURE__ */ jsx14(Badge, {
|
|
2745
2736
|
variant: "secondary",
|
|
2746
2737
|
children: tag
|
|
2747
2738
|
}, tag))
|
|
2748
2739
|
]
|
|
2749
2740
|
}),
|
|
2750
|
-
/* @__PURE__ */
|
|
2741
|
+
/* @__PURE__ */ jsx14("p", {
|
|
2751
2742
|
className: "text-muted-foreground mt-3 max-w-2xl text-base leading-7",
|
|
2752
2743
|
children: page.description
|
|
2753
2744
|
}),
|
|
2754
|
-
page.updatedAt ? /* @__PURE__ */
|
|
2745
|
+
page.updatedAt ? /* @__PURE__ */ jsx14("p", {
|
|
2755
2746
|
className: "text-muted-foreground mt-3 text-sm",
|
|
2756
2747
|
children: resolvedMessages.lastUpdated(new Date(page.updatedAt))
|
|
2757
2748
|
}) : null
|
|
@@ -2763,11 +2754,11 @@ var DocsContent = ({ docs, resolution }) => {
|
|
|
2763
2754
|
const resolvedMessages = docs.getMessages(page.locale);
|
|
2764
2755
|
return /* @__PURE__ */ jsxs11(Fragment3, {
|
|
2765
2756
|
children: [
|
|
2766
|
-
/* @__PURE__ */
|
|
2757
|
+
/* @__PURE__ */ jsx14(DocsMobileTableOfContents, {
|
|
2767
2758
|
headings: page.headings,
|
|
2768
2759
|
label: resolvedMessages.onThisPage
|
|
2769
2760
|
}),
|
|
2770
|
-
/* @__PURE__ */
|
|
2761
|
+
/* @__PURE__ */ jsx14(DocsArticle, {
|
|
2771
2762
|
messages: resolvedMessages,
|
|
2772
2763
|
page
|
|
2773
2764
|
})
|
|
@@ -2791,12 +2782,12 @@ var DocsFooter = ({ docs, resolution }) => {
|
|
|
2791
2782
|
rel: "noreferrer",
|
|
2792
2783
|
children: [
|
|
2793
2784
|
resolvedMessages.editPage,
|
|
2794
|
-
/* @__PURE__ */
|
|
2785
|
+
/* @__PURE__ */ jsx14(ExternalLink, {
|
|
2795
2786
|
className: "size-3.5"
|
|
2796
2787
|
})
|
|
2797
2788
|
]
|
|
2798
2789
|
}) : null,
|
|
2799
|
-
/* @__PURE__ */
|
|
2790
|
+
/* @__PURE__ */ jsx14("span", {
|
|
2800
2791
|
className: "text-muted-foreground",
|
|
2801
2792
|
children: resolvedMessages.latestVersionNotice
|
|
2802
2793
|
})
|
|
@@ -2813,18 +2804,18 @@ var DocsFooter = ({ docs, resolution }) => {
|
|
|
2813
2804
|
/* @__PURE__ */ jsxs11("span", {
|
|
2814
2805
|
className: "text-muted-foreground flex items-center gap-1 text-xs font-medium uppercase",
|
|
2815
2806
|
children: [
|
|
2816
|
-
/* @__PURE__ */
|
|
2807
|
+
/* @__PURE__ */ jsx14(ArrowLeft, {
|
|
2817
2808
|
className: "size-3.5"
|
|
2818
2809
|
}),
|
|
2819
2810
|
resolvedMessages.previous
|
|
2820
2811
|
]
|
|
2821
2812
|
}),
|
|
2822
|
-
/* @__PURE__ */
|
|
2813
|
+
/* @__PURE__ */ jsx14("span", {
|
|
2823
2814
|
className: "mt-1 block font-semibold",
|
|
2824
2815
|
children: neighbors.previous.title
|
|
2825
2816
|
})
|
|
2826
2817
|
]
|
|
2827
|
-
}) : /* @__PURE__ */
|
|
2818
|
+
}) : /* @__PURE__ */ jsx14("span", {}),
|
|
2828
2819
|
neighbors.next ? /* @__PURE__ */ jsxs11("a", {
|
|
2829
2820
|
className: "hover:bg-muted/50 rounded-lg border p-4 text-right transition-colors",
|
|
2830
2821
|
href: neighbors.next.path,
|
|
@@ -2833,12 +2824,12 @@ var DocsFooter = ({ docs, resolution }) => {
|
|
|
2833
2824
|
className: "text-muted-foreground flex items-center justify-end gap-1 text-xs font-medium uppercase",
|
|
2834
2825
|
children: [
|
|
2835
2826
|
resolvedMessages.next,
|
|
2836
|
-
/* @__PURE__ */
|
|
2827
|
+
/* @__PURE__ */ jsx14(ArrowRight, {
|
|
2837
2828
|
className: "size-3.5"
|
|
2838
2829
|
})
|
|
2839
2830
|
]
|
|
2840
2831
|
}),
|
|
2841
|
-
/* @__PURE__ */
|
|
2832
|
+
/* @__PURE__ */ jsx14("span", {
|
|
2842
2833
|
className: "mt-1 block font-semibold",
|
|
2843
2834
|
children: neighbors.next.title
|
|
2844
2835
|
})
|
|
@@ -2854,15 +2845,15 @@ var DocsPage = ({ children, docs, resolution }) => {
|
|
|
2854
2845
|
const resolvedMessages = docs.getMessages(page.locale);
|
|
2855
2846
|
const content = children ?? /* @__PURE__ */ jsxs11(Fragment3, {
|
|
2856
2847
|
children: [
|
|
2857
|
-
/* @__PURE__ */
|
|
2848
|
+
/* @__PURE__ */ jsx14(DocsHeader, {
|
|
2858
2849
|
docs,
|
|
2859
2850
|
resolution
|
|
2860
2851
|
}),
|
|
2861
|
-
/* @__PURE__ */
|
|
2852
|
+
/* @__PURE__ */ jsx14(DocsContent, {
|
|
2862
2853
|
docs,
|
|
2863
2854
|
resolution
|
|
2864
2855
|
}),
|
|
2865
|
-
/* @__PURE__ */
|
|
2856
|
+
/* @__PURE__ */ jsx14(DocsFooter, {
|
|
2866
2857
|
docs,
|
|
2867
2858
|
resolution
|
|
2868
2859
|
})
|
|
@@ -2870,7 +2861,7 @@ var DocsPage = ({ children, docs, resolution }) => {
|
|
|
2870
2861
|
});
|
|
2871
2862
|
return /* @__PURE__ */ jsxs11(Fragment3, {
|
|
2872
2863
|
children: [
|
|
2873
|
-
/* @__PURE__ */
|
|
2864
|
+
/* @__PURE__ */ jsx14("a", {
|
|
2874
2865
|
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",
|
|
2875
2866
|
href: "#docs-content",
|
|
2876
2867
|
children: resolvedMessages.skipToContent
|
|
@@ -2878,15 +2869,15 @@ var DocsPage = ({ children, docs, resolution }) => {
|
|
|
2878
2869
|
/* @__PURE__ */ jsxs11("div", {
|
|
2879
2870
|
className: "mx-auto grid w-full max-w-6xl gap-10 xl:grid-cols-[minmax(0,48rem)_14rem]",
|
|
2880
2871
|
children: [
|
|
2881
|
-
/* @__PURE__ */
|
|
2872
|
+
/* @__PURE__ */ jsx14("article", {
|
|
2882
2873
|
id: "docs-content",
|
|
2883
2874
|
className: "min-w-0 pb-16",
|
|
2884
2875
|
tabIndex: -1,
|
|
2885
2876
|
children: content
|
|
2886
2877
|
}),
|
|
2887
|
-
/* @__PURE__ */
|
|
2878
|
+
/* @__PURE__ */ jsx14("aside", {
|
|
2888
2879
|
className: "hidden xl:block",
|
|
2889
|
-
children: /* @__PURE__ */
|
|
2880
|
+
children: /* @__PURE__ */ jsx14(DocsTableOfContents, {
|
|
2890
2881
|
headings: page.headings,
|
|
2891
2882
|
label: resolvedMessages.onThisPage
|
|
2892
2883
|
})
|
|
@@ -2905,18 +2896,18 @@ var DocsNotFound = ({
|
|
|
2905
2896
|
return /* @__PURE__ */ jsxs11("main", {
|
|
2906
2897
|
className: "mx-auto flex min-h-screen max-w-lg flex-col justify-center px-6 text-center",
|
|
2907
2898
|
children: [
|
|
2908
|
-
/* @__PURE__ */
|
|
2899
|
+
/* @__PURE__ */ jsx14(BrandIcon, {
|
|
2909
2900
|
className: "text-primary mx-auto size-10"
|
|
2910
2901
|
}),
|
|
2911
|
-
/* @__PURE__ */
|
|
2902
|
+
/* @__PURE__ */ jsx14("h1", {
|
|
2912
2903
|
className: "mt-6 text-3xl font-bold tracking-tight",
|
|
2913
2904
|
children: resolvedMessages.notFoundTitle
|
|
2914
2905
|
}),
|
|
2915
|
-
/* @__PURE__ */
|
|
2906
|
+
/* @__PURE__ */ jsx14("p", {
|
|
2916
2907
|
className: "text-muted-foreground mt-3 leading-7",
|
|
2917
2908
|
children: resolvedMessages.notFoundDescription
|
|
2918
2909
|
}),
|
|
2919
|
-
/* @__PURE__ */
|
|
2910
|
+
/* @__PURE__ */ jsx14("a", {
|
|
2920
2911
|
className: "text-primary mt-6 font-semibold underline underline-offset-4",
|
|
2921
2912
|
href: docs.basePath,
|
|
2922
2913
|
children: resolvedMessages.notFoundAction
|
|
@@ -2925,20 +2916,20 @@ var DocsNotFound = ({
|
|
|
2925
2916
|
});
|
|
2926
2917
|
};
|
|
2927
2918
|
export {
|
|
2928
|
-
|
|
2929
|
-
makeDocs,
|
|
2930
|
-
getDocsMessages,
|
|
2931
|
-
createDocsSource,
|
|
2932
|
-
DocsSection,
|
|
2933
|
-
DocsPageType,
|
|
2934
|
-
DocsPageSchema,
|
|
2935
|
-
DocsPage,
|
|
2936
|
-
DocsNotFound,
|
|
2937
|
-
DocsLayout,
|
|
2938
|
-
DocsHeadingSchema,
|
|
2939
|
-
DocsHeader,
|
|
2940
|
-
DocsFrontmatter,
|
|
2941
|
-
DocsFooter,
|
|
2919
|
+
DocsCodeBlockSchema,
|
|
2942
2920
|
DocsContent,
|
|
2943
|
-
|
|
2921
|
+
DocsFooter,
|
|
2922
|
+
DocsFrontmatter,
|
|
2923
|
+
DocsHeader,
|
|
2924
|
+
DocsHeadingSchema,
|
|
2925
|
+
DocsLayout,
|
|
2926
|
+
DocsNotFound,
|
|
2927
|
+
DocsPage,
|
|
2928
|
+
DocsPageSchema,
|
|
2929
|
+
DocsPageType,
|
|
2930
|
+
DocsSection,
|
|
2931
|
+
createDocsSource,
|
|
2932
|
+
getDocsMessages,
|
|
2933
|
+
makeDocs,
|
|
2934
|
+
slugifyDocsHeading
|
|
2944
2935
|
};
|