@krak-stack/registry 0.1.25 → 0.1.27

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.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -0
  3. package/dist/components/ui/data-table.js +212 -207
  4. package/dist/components/ui/effect-form.js +170 -169
  5. package/dist/components/ui/form.js +113 -112
  6. package/dist/components/ui/icon-input.js +43 -40
  7. package/dist/components/ui/pagination.js +2 -2
  8. package/dist/components/ui/sidebar-layout.d.ts +5 -2
  9. package/dist/components/ui/sidebar-layout.js +88 -80
  10. package/dist/components/ui/theme-switcher.js +3 -3
  11. package/dist/components/ui/virtualized-combobox.js +34 -31
  12. package/dist/lib/docs.d.ts +3 -1
  13. package/dist/lib/docs.js +181 -162
  14. package/dist/lib/docs.server.js +62 -36
  15. package/dist/lib/documentation-toolkit.js +63 -37
  16. package/dist/lib/httpapi-cli.js +7 -7
  17. package/dist/lib/httpapi-client.js +3 -3
  18. package/dist/lib/httpapi-helpers.js +11 -11
  19. package/dist/lib/httpapi-mcp.js +2 -2
  20. package/dist/lib/httpapi-toolkit.js +2 -2
  21. package/dist/lib/query.js +7 -7
  22. package/dist/lib/seo.js +2 -2
  23. package/dist/lib/webfetch-toolkit.js +6 -6
  24. package/dist/services/agent/client/index.js +129 -128
  25. package/dist/services/agent/schema.js +5 -5
  26. package/dist/services/file-extraction/index.js +4 -4
  27. package/dist/services/file-extraction/schema.js +2 -2
  28. package/dist/services/health/index.js +9 -9
  29. package/dist/services/notification/channels/ses/index.d.ts +2 -2
  30. package/dist/services/notification/channels/ses/index.js +2 -2
  31. package/dist/services/notification/channels/ses/schema.js +2 -2
  32. package/dist/services/notification/client/index.js +5 -5
  33. package/dist/services/notification/index.js +2 -2
  34. package/dist/services/notification/persistence/drizzle.d.ts +868 -0
  35. package/dist/services/notification/persistence/drizzle.js +2 -2
  36. package/dist/services/notification/persistence/index.d.ts +2 -0
  37. package/dist/services/notification/persistence/index.js +15 -15
  38. package/dist/services/notification/persistence/schema.d.ts +143 -0
  39. package/dist/services/notification/persistence/schema.js +12 -12
  40. package/dist/services/notification/public.js +7 -7
  41. package/dist/services/notification/schema.js +2 -2
  42. package/dist/services/s3/index.js +2 -2
  43. package/dist/services/s3/schema.js +2 -2
  44. package/package.json +2 -2
package/dist/lib/docs.js CHANGED
@@ -1,10 +1,13 @@
1
1
  // ../../src/lib/docs.tsx
2
- import { Schema as Schema3 } from "effect";
2
+ import { createIsomorphicFn } from "@tanstack/react-start";
3
+ import { getCookie } from "@tanstack/react-start/server";
4
+ import { Option as Option2, Schema as Schema3 } from "effect";
5
+ import { Cookies as Cookies2 } from "effect/unstable/http";
3
6
  import {
4
7
  forwardRef,
5
8
  useDeferredValue,
6
9
  useEffect as useEffect5,
7
- useState as useState5
10
+ useState as useState6
8
11
  } from "react";
9
12
 
10
13
  // ../../src/components/ui/app-brand.tsx
@@ -385,7 +388,7 @@ var MarkdownContent = ({
385
388
  dangerouslySetInnerHTML: { __html: remainingHtml }
386
389
  }, "html-final"));
387
390
  return /* @__PURE__ */ jsx5("div", {
388
- className: cn("[&_a:hover]:text-primary [&_a]:decoration-border [&_blockquote]:border-primary/40 [&_blockquote]:bg-muted/40 [&_h2_a]:text-muted-foreground [&_h3_a]:text-muted-foreground [&_[data-inline-code]]:bg-muted text-[0.98rem] leading-7 [&_[data-markdown-table]]:overflow-x-auto [&_[data-inline-code]]:rounded [&_[data-inline-code]]:px-1.5 [&_[data-inline-code]]:py-0.5 [&_[data-inline-code]]:font-mono [&_[data-inline-code]]:text-[0.875em] [&_a]:font-medium [&_a]:underline [&_a]:decoration-1 [&_a]:underline-offset-4 [&_a]:transition-colors [&_blockquote]:rounded-r-lg [&_blockquote]:border-l-4 [&_blockquote]:px-5 [&_blockquote]:py-1 [&_h2]:mt-12 [&_h2]:scroll-mt-20 [&_h2]:border-t [&_h2]:pt-8 [&_h2]:text-2xl [&_h2]:font-bold [&_h2]:tracking-tight [&_h2_a]:ml-2 [&_h2_a]:no-underline [&_h2:first-of-type]:mt-0 [&_h2:first-of-type]:border-t-0 [&_h2:first-of-type]:pt-0 [&_h3]:mt-8 [&_h3]:scroll-mt-20 [&_h3]:text-xl [&_h3]:font-semibold [&_h3]:tracking-tight [&_h3_a]:ml-2 [&_h3_a]:no-underline [&_ol]:my-5 [&_p]:my-5 [&_table]:w-full [&_table]:text-sm [&_td]:border-b [&_td]:p-2 [&_th]:border-b [&_th]:p-2 [&_th]:text-left [&_ul]:my-5", className),
391
+ className: cn("[&_a:hover]:text-primary [&_a]:decoration-border [&_blockquote]:border-primary/40 [&_blockquote]:bg-muted/40 [&_h2_a]:text-muted-foreground [&_h3_a]:text-muted-foreground [&_[data-inline-code]]:bg-muted text-[0.98rem] leading-7 [&_[data-markdown-table]]:overflow-x-auto [&_[data-inline-code]]:rounded [&_[data-inline-code]]:px-1.5 [&_[data-inline-code]]:py-0.5 [&_[data-inline-code]]:font-mono [&_[data-inline-code]]:text-[0.875em] [&_a]:font-medium [&_a]:underline [&_a]:decoration-1 [&_a]:underline-offset-4 [&_a]:transition-colors [&_blockquote]:my-5 [&_blockquote]:rounded-r-lg [&_blockquote]:border-l-4 [&_blockquote]:px-5 [&_blockquote]:py-1 [&_h2]:mt-12 [&_h2]:scroll-mt-20 [&_h2]:border-t [&_h2]:pt-8 [&_h2]:text-2xl [&_h2]:font-bold [&_h2]:tracking-tight [&_h2_a]:ml-2 [&_h2_a]:no-underline [&_h2:first-of-type]:mt-0 [&_h2:first-of-type]:border-t-0 [&_h2:first-of-type]:pt-0 [&_h3]:mt-8 [&_h3]:scroll-mt-20 [&_h3]:text-xl [&_h3]:font-semibold [&_h3]:tracking-tight [&_h3_a]:ml-2 [&_h3_a]:no-underline [&_ol]:my-5 [&_p]:my-5 [&_table]:w-full [&_table]:text-sm [&_td]:border-b [&_td]:p-2 [&_th]:border-b [&_th]:p-2 [&_th]:text-left [&_ul]:my-5", className),
389
392
  children: content
390
393
  });
391
394
  };
@@ -1206,11 +1209,10 @@ function SearchMenu({
1206
1209
  }
1207
1210
 
1208
1211
  // ../../src/components/ui/sidebar-layout.tsx
1209
- import { useAtom } from "@effect/atom-react";
1210
- import { BrowserKeyValueStore } from "@effect/platform-browser";
1211
1212
  import { Link as Link2, Outlet, useRouterState } from "@tanstack/react-router";
1212
- import { Schema as Schema2 } from "effect";
1213
- import { Atom } from "effect/unstable/reactivity";
1213
+ import { Option, Schema as Schema2 } from "effect";
1214
+ import { Cookies } from "effect/unstable/http";
1215
+ import { useState as useState5 } from "react";
1214
1216
 
1215
1217
  // ../../src/components/ui/sidebar.tsx
1216
1218
  import * as React2 from "react";
@@ -1237,29 +1239,31 @@ function useIsMobile() {
1237
1239
 
1238
1240
  // ../../src/components/ui/input.tsx
1239
1241
  import { Input as InputPrimitive } from "@base-ui/react/input";
1242
+ import { jsx as jsx10 } from "react/jsx-runtime";
1240
1243
 
1241
1244
  // ../../src/components/ui/separator.tsx
1242
1245
  import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
1246
+ import { jsx as jsx11 } from "react/jsx-runtime";
1243
1247
 
1244
1248
  // ../../src/components/ui/sheet.tsx
1245
1249
  import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
1246
1250
  import { XIcon as XIcon2 } from "lucide-react";
1247
- import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
1251
+ import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
1248
1252
  "use client";
1249
1253
  function Sheet({ ...props }) {
1250
- return /* @__PURE__ */ jsx10(SheetPrimitive.Root, {
1254
+ return /* @__PURE__ */ jsx12(SheetPrimitive.Root, {
1251
1255
  "data-slot": "sheet",
1252
1256
  ...props
1253
1257
  });
1254
1258
  }
1255
1259
  function SheetPortal({ ...props }) {
1256
- return /* @__PURE__ */ jsx10(SheetPrimitive.Portal, {
1260
+ return /* @__PURE__ */ jsx12(SheetPrimitive.Portal, {
1257
1261
  "data-slot": "sheet-portal",
1258
1262
  ...props
1259
1263
  });
1260
1264
  }
1261
1265
  function SheetOverlay({ className, ...props }) {
1262
- return /* @__PURE__ */ jsx10(SheetPrimitive.Backdrop, {
1266
+ return /* @__PURE__ */ jsx12(SheetPrimitive.Backdrop, {
1263
1267
  "data-slot": "sheet-overlay",
1264
1268
  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),
1265
1269
  ...props
@@ -1274,7 +1278,7 @@ function SheetContent({
1274
1278
  }) {
1275
1279
  return /* @__PURE__ */ jsxs7(SheetPortal, {
1276
1280
  children: [
1277
- /* @__PURE__ */ jsx10(SheetOverlay, {}),
1281
+ /* @__PURE__ */ jsx12(SheetOverlay, {}),
1278
1282
  /* @__PURE__ */ jsxs7(SheetPrimitive.Popup, {
1279
1283
  "data-slot": "sheet-content",
1280
1284
  "data-side": side,
@@ -1284,14 +1288,14 @@ function SheetContent({
1284
1288
  children,
1285
1289
  showCloseButton && /* @__PURE__ */ jsxs7(SheetPrimitive.Close, {
1286
1290
  "data-slot": "sheet-close",
1287
- render: /* @__PURE__ */ jsx10(Button, {
1291
+ render: /* @__PURE__ */ jsx12(Button, {
1288
1292
  variant: "ghost",
1289
1293
  className: "absolute top-4 right-4",
1290
1294
  size: "icon-sm"
1291
1295
  }),
1292
1296
  children: [
1293
- /* @__PURE__ */ jsx10(XIcon2, {}),
1294
- /* @__PURE__ */ jsx10("span", {
1297
+ /* @__PURE__ */ jsx12(XIcon2, {}),
1298
+ /* @__PURE__ */ jsx12("span", {
1295
1299
  className: "sr-only",
1296
1300
  children: "Close"
1297
1301
  })
@@ -1303,14 +1307,14 @@ function SheetContent({
1303
1307
  });
1304
1308
  }
1305
1309
  function SheetHeader({ className, ...props }) {
1306
- return /* @__PURE__ */ jsx10("div", {
1310
+ return /* @__PURE__ */ jsx12("div", {
1307
1311
  "data-slot": "sheet-header",
1308
1312
  className: cn("flex flex-col gap-1.5 p-4", className),
1309
1313
  ...props
1310
1314
  });
1311
1315
  }
1312
1316
  function SheetTitle({ className, ...props }) {
1313
- return /* @__PURE__ */ jsx10(SheetPrimitive.Title, {
1317
+ return /* @__PURE__ */ jsx12(SheetPrimitive.Title, {
1314
1318
  "data-slot": "sheet-title",
1315
1319
  className: cn("font-medium text-foreground", className),
1316
1320
  ...props
@@ -1320,25 +1324,28 @@ function SheetDescription({
1320
1324
  className,
1321
1325
  ...props
1322
1326
  }) {
1323
- return /* @__PURE__ */ jsx10(SheetPrimitive.Description, {
1327
+ return /* @__PURE__ */ jsx12(SheetPrimitive.Description, {
1324
1328
  "data-slot": "sheet-description",
1325
1329
  className: cn("text-sm text-muted-foreground", className),
1326
1330
  ...props
1327
1331
  });
1328
1332
  }
1329
1333
 
1334
+ // ../../src/components/ui/skeleton.tsx
1335
+ import { jsx as jsx13 } from "react/jsx-runtime";
1336
+
1330
1337
  // ../../src/components/ui/tooltip.tsx
1331
1338
  import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
1332
- import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
1339
+ import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
1333
1340
  "use client";
1334
1341
  function Tooltip({ ...props }) {
1335
- return /* @__PURE__ */ jsx11(TooltipPrimitive.Root, {
1342
+ return /* @__PURE__ */ jsx14(TooltipPrimitive.Root, {
1336
1343
  "data-slot": "tooltip",
1337
1344
  ...props
1338
1345
  });
1339
1346
  }
1340
1347
  function TooltipTrigger({ ...props }) {
1341
- return /* @__PURE__ */ jsx11(TooltipPrimitive.Trigger, {
1348
+ return /* @__PURE__ */ jsx14(TooltipPrimitive.Trigger, {
1342
1349
  "data-slot": "tooltip-trigger",
1343
1350
  ...props
1344
1351
  });
@@ -1352,8 +1359,8 @@ function TooltipContent({
1352
1359
  children,
1353
1360
  ...props
1354
1361
  }) {
1355
- return /* @__PURE__ */ jsx11(TooltipPrimitive.Portal, {
1356
- children: /* @__PURE__ */ jsx11(TooltipPrimitive.Positioner, {
1362
+ return /* @__PURE__ */ jsx14(TooltipPrimitive.Portal, {
1363
+ children: /* @__PURE__ */ jsx14(TooltipPrimitive.Positioner, {
1357
1364
  align,
1358
1365
  alignOffset,
1359
1366
  side,
@@ -1365,7 +1372,7 @@ function TooltipContent({
1365
1372
  ...props,
1366
1373
  children: [
1367
1374
  children,
1368
- /* @__PURE__ */ jsx11(TooltipPrimitive.Arrow, {
1375
+ /* @__PURE__ */ jsx14(TooltipPrimitive.Arrow, {
1369
1376
  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"
1370
1377
  })
1371
1378
  ]
@@ -1377,7 +1384,7 @@ function TooltipContent({
1377
1384
  // ../../src/components/ui/sidebar.tsx
1378
1385
  import { PanelLeftIcon } from "lucide-react";
1379
1386
  import { Schema } from "effect";
1380
- import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
1387
+ import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
1381
1388
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
1382
1389
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
1383
1390
  var SIDEBAR_WIDTH = "16rem";
@@ -1441,9 +1448,9 @@ function SidebarProvider({
1441
1448
  "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
1442
1449
  ...style
1443
1450
  };
1444
- return /* @__PURE__ */ jsx12(SidebarContext.Provider, {
1451
+ return /* @__PURE__ */ jsx15(SidebarContext.Provider, {
1445
1452
  value: contextValue,
1446
- children: /* @__PURE__ */ jsx12("div", {
1453
+ children: /* @__PURE__ */ jsx15("div", {
1447
1454
  "data-slot": "sidebar-wrapper",
1448
1455
  style: wrapperStyle,
1449
1456
  className: cn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", className),
@@ -1463,7 +1470,7 @@ function Sidebar({
1463
1470
  }) {
1464
1471
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
1465
1472
  if (collapsible === "none") {
1466
- return /* @__PURE__ */ jsx12("div", {
1473
+ return /* @__PURE__ */ jsx15("div", {
1467
1474
  "data-slot": "sidebar",
1468
1475
  className: cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", className),
1469
1476
  ...props,
@@ -1474,7 +1481,7 @@ function Sidebar({
1474
1481
  const mobileStyle = {
1475
1482
  "--sidebar-width": SIDEBAR_WIDTH_MOBILE
1476
1483
  };
1477
- return /* @__PURE__ */ jsx12(Sheet, {
1484
+ return /* @__PURE__ */ jsx15(Sheet, {
1478
1485
  open: openMobile,
1479
1486
  onOpenChange: setOpenMobile,
1480
1487
  ...props,
@@ -1490,15 +1497,15 @@ function Sidebar({
1490
1497
  /* @__PURE__ */ jsxs9(SheetHeader, {
1491
1498
  className: "sr-only",
1492
1499
  children: [
1493
- /* @__PURE__ */ jsx12(SheetTitle, {
1500
+ /* @__PURE__ */ jsx15(SheetTitle, {
1494
1501
  children: "Sidebar"
1495
1502
  }),
1496
- /* @__PURE__ */ jsx12(SheetDescription, {
1503
+ /* @__PURE__ */ jsx15(SheetDescription, {
1497
1504
  children: "Displays the mobile sidebar."
1498
1505
  })
1499
1506
  ]
1500
1507
  }),
1501
- /* @__PURE__ */ jsx12("div", {
1508
+ /* @__PURE__ */ jsx15("div", {
1502
1509
  className: "flex h-full w-full flex-col",
1503
1510
  children
1504
1511
  })
@@ -1514,16 +1521,16 @@ function Sidebar({
1514
1521
  "data-side": side,
1515
1522
  "data-slot": "sidebar",
1516
1523
  children: [
1517
- /* @__PURE__ */ jsx12("div", {
1524
+ /* @__PURE__ */ jsx15("div", {
1518
1525
  "data-slot": "sidebar-gap",
1519
1526
  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)")
1520
1527
  }),
1521
- /* @__PURE__ */ jsx12("div", {
1528
+ /* @__PURE__ */ jsx15("div", {
1522
1529
  "data-slot": "sidebar-container",
1523
1530
  "data-side": side,
1524
1531
  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),
1525
1532
  ...props,
1526
- children: /* @__PURE__ */ jsx12("div", {
1533
+ children: /* @__PURE__ */ jsx15("div", {
1527
1534
  "data-sidebar": "sidebar",
1528
1535
  "data-slot": "sidebar-inner",
1529
1536
  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",
@@ -1551,8 +1558,8 @@ function SidebarTrigger({
1551
1558
  },
1552
1559
  ...props,
1553
1560
  children: [
1554
- /* @__PURE__ */ jsx12(PanelLeftIcon, {}),
1555
- /* @__PURE__ */ jsx12("span", {
1561
+ /* @__PURE__ */ jsx15(PanelLeftIcon, {}),
1562
+ /* @__PURE__ */ jsx15("span", {
1556
1563
  className: "sr-only",
1557
1564
  children: "Toggle Sidebar"
1558
1565
  })
@@ -1561,7 +1568,7 @@ function SidebarTrigger({
1561
1568
  }
1562
1569
  function SidebarRail({ className, ...props }) {
1563
1570
  const { toggleSidebar } = useSidebar();
1564
- return /* @__PURE__ */ jsx12("button", {
1571
+ return /* @__PURE__ */ jsx15("button", {
1565
1572
  "data-sidebar": "rail",
1566
1573
  "data-slot": "sidebar-rail",
1567
1574
  "aria-label": "Toggle Sidebar",
@@ -1573,14 +1580,14 @@ function SidebarRail({ className, ...props }) {
1573
1580
  });
1574
1581
  }
1575
1582
  function SidebarInset({ className, ...props }) {
1576
- return /* @__PURE__ */ jsx12("main", {
1583
+ return /* @__PURE__ */ jsx15("main", {
1577
1584
  "data-slot": "sidebar-inset",
1578
1585
  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),
1579
1586
  ...props
1580
1587
  });
1581
1588
  }
1582
1589
  function SidebarHeader({ className, ...props }) {
1583
- return /* @__PURE__ */ jsx12("div", {
1590
+ return /* @__PURE__ */ jsx15("div", {
1584
1591
  "data-slot": "sidebar-header",
1585
1592
  "data-sidebar": "header",
1586
1593
  className: cn("flex flex-col gap-2 p-2", className),
@@ -1588,7 +1595,7 @@ function SidebarHeader({ className, ...props }) {
1588
1595
  });
1589
1596
  }
1590
1597
  function SidebarFooter({ className, ...props }) {
1591
- return /* @__PURE__ */ jsx12("div", {
1598
+ return /* @__PURE__ */ jsx15("div", {
1592
1599
  "data-slot": "sidebar-footer",
1593
1600
  "data-sidebar": "footer",
1594
1601
  className: cn("flex flex-col gap-2 p-2", className),
@@ -1596,7 +1603,7 @@ function SidebarFooter({ className, ...props }) {
1596
1603
  });
1597
1604
  }
1598
1605
  function SidebarContent({ className, ...props }) {
1599
- return /* @__PURE__ */ jsx12("div", {
1606
+ return /* @__PURE__ */ jsx15("div", {
1600
1607
  "data-slot": "sidebar-content",
1601
1608
  "data-sidebar": "content",
1602
1609
  className: cn("no-scrollbar flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className),
@@ -1604,7 +1611,7 @@ function SidebarContent({ className, ...props }) {
1604
1611
  });
1605
1612
  }
1606
1613
  function SidebarGroup({ className, ...props }) {
1607
- return /* @__PURE__ */ jsx12("div", {
1614
+ return /* @__PURE__ */ jsx15("div", {
1608
1615
  "data-slot": "sidebar-group",
1609
1616
  "data-sidebar": "group",
1610
1617
  className: cn("relative flex w-full min-w-0 flex-col p-2", className),
@@ -1632,7 +1639,7 @@ function SidebarGroupContent({
1632
1639
  className,
1633
1640
  ...props
1634
1641
  }) {
1635
- return /* @__PURE__ */ jsx12("div", {
1642
+ return /* @__PURE__ */ jsx15("div", {
1636
1643
  "data-slot": "sidebar-group-content",
1637
1644
  "data-sidebar": "group-content",
1638
1645
  className: cn("w-full text-sm", className),
@@ -1640,7 +1647,7 @@ function SidebarGroupContent({
1640
1647
  });
1641
1648
  }
1642
1649
  function SidebarMenu({ className, ...props }) {
1643
- return /* @__PURE__ */ jsx12("ul", {
1650
+ return /* @__PURE__ */ jsx15("ul", {
1644
1651
  "data-slot": "sidebar-menu",
1645
1652
  "data-sidebar": "menu",
1646
1653
  className: cn("flex w-full min-w-0 flex-col gap-1", className),
@@ -1648,7 +1655,7 @@ function SidebarMenu({ className, ...props }) {
1648
1655
  });
1649
1656
  }
1650
1657
  function SidebarMenuItem({ className, ...props }) {
1651
- return /* @__PURE__ */ jsx12("li", {
1658
+ return /* @__PURE__ */ jsx15("li", {
1652
1659
  "data-slot": "sidebar-menu-item",
1653
1660
  "data-sidebar": "menu-item",
1654
1661
  className: cn("group/menu-item relative", className),
@@ -1687,7 +1694,7 @@ function SidebarMenuButton({
1687
1694
  props: mergeProps2({
1688
1695
  className: cn(sidebarMenuButtonVariants({ variant, size }), className)
1689
1696
  }, props),
1690
- render: !tooltip ? render : /* @__PURE__ */ jsx12(TooltipTrigger, {
1697
+ render: !tooltip ? render : /* @__PURE__ */ jsx15(TooltipTrigger, {
1691
1698
  render
1692
1699
  }),
1693
1700
  state: {
@@ -1704,7 +1711,7 @@ function SidebarMenuButton({
1704
1711
  return /* @__PURE__ */ jsxs9(Tooltip, {
1705
1712
  children: [
1706
1713
  comp,
1707
- /* @__PURE__ */ jsx12(TooltipContent, {
1714
+ /* @__PURE__ */ jsx15(TooltipContent, {
1708
1715
  side: "right",
1709
1716
  align: "center",
1710
1717
  hidden: state !== "collapsed" || isMobile,
@@ -1715,15 +1722,15 @@ function SidebarMenuButton({
1715
1722
  }
1716
1723
 
1717
1724
  // ../../src/components/ui/sidebar-layout.tsx
1718
- import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
1719
- var sidebarStorageRuntime = Atom.runtime(BrowserKeyValueStore.layerLocalStorage);
1720
- var sidebarOpenAtom = Atom.kvs({
1721
- runtime: sidebarStorageRuntime,
1722
- key: "sidebar:open",
1723
- schema: Schema2.Boolean,
1724
- defaultValue: () => true
1725
+ import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
1726
+ var SIDEBAR_COOKIE_NAME2 = "sidebar_state";
1727
+ var SidebarOpenCookie = Schema2.Literals(["true", "false"]).annotate({
1728
+ identifier: "SidebarOpenCookie"
1725
1729
  });
1726
- function AppSidebar({ footer, groups, header }) {
1730
+ var getSidebarDefaultOpen = (defaultOpen) => {
1731
+ return Schema2.decodeUnknownOption(SidebarOpenCookie)(Cookies.parseHeader(globalThis.document?.cookie ?? "")[SIDEBAR_COOKIE_NAME2]).pipe(Option.map((value) => value === "true"), Option.getOrElse(() => defaultOpen));
1732
+ };
1733
+ function AppSidebar({ collapsible, footer, groups, header }) {
1727
1734
  const { isMobile, setOpenMobile } = useSidebar();
1728
1735
  const pathname = useRouterState({
1729
1736
  select: (state) => state.location.pathname
@@ -1733,39 +1740,40 @@ function AppSidebar({ footer, groups, header }) {
1733
1740
  setOpenMobile(false);
1734
1741
  };
1735
1742
  return /* @__PURE__ */ jsxs10(Sidebar, {
1736
- collapsible: "icon",
1743
+ collapsible,
1737
1744
  children: [
1738
- header && /* @__PURE__ */ jsx13(SidebarHeader, {
1745
+ header && /* @__PURE__ */ jsx16(SidebarHeader, {
1739
1746
  children: header
1740
1747
  }),
1741
- /* @__PURE__ */ jsx13(SidebarContent, {
1748
+ /* @__PURE__ */ jsx16(SidebarContent, {
1749
+ className: "group-data-[collapsible=icon]:overflow-x-hidden group-data-[collapsible=icon]:overflow-y-auto",
1742
1750
  children: groups.map((group) => /* @__PURE__ */ jsxs10(SidebarGroup, {
1743
1751
  children: [
1744
- /* @__PURE__ */ jsx13(SidebarGroupLabel, {
1752
+ /* @__PURE__ */ jsx16(SidebarGroupLabel, {
1745
1753
  children: group.label()
1746
1754
  }),
1747
- /* @__PURE__ */ jsx13(SidebarGroupContent, {
1748
- children: /* @__PURE__ */ jsx13(SidebarMenu, {
1755
+ /* @__PURE__ */ jsx16(SidebarGroupContent, {
1756
+ children: /* @__PURE__ */ jsx16(SidebarMenu, {
1749
1757
  children: group.items.map((item) => {
1750
- const render = item.external ? /* @__PURE__ */ jsx13("a", {
1758
+ const render = item.external ? /* @__PURE__ */ jsx16("a", {
1751
1759
  href: item.href,
1752
1760
  target: "_blank",
1753
1761
  rel: "noreferrer"
1754
- }) : /* @__PURE__ */ jsx13(Link2, {
1762
+ }) : /* @__PURE__ */ jsx16(Link2, {
1755
1763
  to: item.href
1756
1764
  });
1757
- return /* @__PURE__ */ jsx13(SidebarMenuItem, {
1765
+ return /* @__PURE__ */ jsx16(SidebarMenuItem, {
1758
1766
  children: /* @__PURE__ */ jsxs10(SidebarMenuButton, {
1759
1767
  isActive: !item.external && pathname === item.href,
1760
1768
  onClick: closeMobileSidebar,
1761
1769
  render,
1762
1770
  tooltip: item.label(),
1763
1771
  children: [
1764
- /* @__PURE__ */ jsx13(item.icon, {}),
1765
- /* @__PURE__ */ jsx13("span", {
1772
+ item.icon ? /* @__PURE__ */ jsx16(item.icon, {}) : null,
1773
+ /* @__PURE__ */ jsx16("span", {
1766
1774
  children: item.label()
1767
1775
  }),
1768
- item.badge ? /* @__PURE__ */ jsx13(Badge, {
1776
+ item.badge ? /* @__PURE__ */ jsx16(Badge, {
1769
1777
  className: "ml-auto",
1770
1778
  variant: "secondary",
1771
1779
  children: item.badge()
@@ -1779,10 +1787,10 @@ function AppSidebar({ footer, groups, header }) {
1779
1787
  ]
1780
1788
  }, group.label()))
1781
1789
  }),
1782
- footer ? /* @__PURE__ */ jsx13(SidebarFooter, {
1790
+ footer ? /* @__PURE__ */ jsx16(SidebarFooter, {
1783
1791
  children: footer
1784
1792
  }) : null,
1785
- /* @__PURE__ */ jsx13(SidebarRail, {})
1793
+ /* @__PURE__ */ jsx16(SidebarRail, {})
1786
1794
  ]
1787
1795
  });
1788
1796
  }
@@ -1793,15 +1801,18 @@ function SidebarLayout({
1793
1801
  sidebarHeader,
1794
1802
  headerActions,
1795
1803
  contentClassName,
1796
- fullPage = false
1804
+ fullPage = false,
1805
+ sidebarCollapsible = "icon",
1806
+ defaultOpen = true
1797
1807
  }) {
1798
- const [sidebarOpen, setSidebarOpen] = useAtom(sidebarOpenAtom);
1808
+ const [sidebarOpen, setSidebarOpen] = useState5(() => getSidebarDefaultOpen(defaultOpen));
1799
1809
  return /* @__PURE__ */ jsxs10(SidebarProvider, {
1800
1810
  open: sidebarOpen,
1801
1811
  onOpenChange: setSidebarOpen,
1802
1812
  className: cn(fullPage && "xl:h-svh xl:min-h-0 xl:overflow-hidden"),
1803
1813
  children: [
1804
- /* @__PURE__ */ jsx13(AppSidebar, {
1814
+ /* @__PURE__ */ jsx16(AppSidebar, {
1815
+ collapsible: sidebarCollapsible,
1805
1816
  footer: sidebarFooter,
1806
1817
  groups,
1807
1818
  header: sidebarHeader
@@ -1812,16 +1823,16 @@ function SidebarLayout({
1812
1823
  /* @__PURE__ */ jsxs10("header", {
1813
1824
  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",
1814
1825
  children: [
1815
- /* @__PURE__ */ jsx13(SidebarTrigger, {}),
1816
- /* @__PURE__ */ jsx13("div", {
1826
+ /* @__PURE__ */ jsx16(SidebarTrigger, {}),
1827
+ /* @__PURE__ */ jsx16("div", {
1817
1828
  className: "ml-auto flex items-center gap-2",
1818
1829
  children: headerActions
1819
1830
  })
1820
1831
  ]
1821
1832
  }),
1822
- /* @__PURE__ */ jsx13("div", {
1833
+ /* @__PURE__ */ jsx16("div", {
1823
1834
  className: contentClassName ?? "flex flex-col gap-6 px-5 py-6 md:px-8",
1824
- children: children ?? /* @__PURE__ */ jsx13(Outlet, {})
1835
+ children: children ?? /* @__PURE__ */ jsx16(Outlet, {})
1825
1836
  })
1826
1837
  ]
1827
1838
  })
@@ -1943,9 +1954,15 @@ var createSeo = (defaults) => (options) => seo({
1943
1954
  });
1944
1955
 
1945
1956
  // ../../src/lib/docs.tsx
1946
- import { jsx as jsx14, jsxs as jsxs11, Fragment as Fragment3 } from "react/jsx-runtime";
1957
+ import { jsx as jsx17, jsxs as jsxs11, Fragment as Fragment3 } from "react/jsx-runtime";
1958
+ var SIDEBAR_COOKIE_NAME3 = "sidebar_state";
1959
+ var SidebarOpenCookie2 = Schema3.Literals(["true", "false"]).annotate({
1960
+ identifier: "SidebarOpenCookie"
1961
+ });
1962
+ var getSidebarOpenCookie = createIsomorphicFn().server(() => getCookie(SIDEBAR_COOKIE_NAME3)).client(() => Cookies2.parseHeader(globalThis.document?.cookie ?? "")[SIDEBAR_COOKIE_NAME3]);
1963
+ var getSidebarDefaultOpen2 = () => Schema3.decodeUnknownOption(SidebarOpenCookie2)(getSidebarOpenCookie()).pipe(Option2.map((value) => value === "true"), Option2.getOrElse(() => true));
1947
1964
  var makeIcon = (name, paths) => {
1948
- const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx14("svg", {
1965
+ const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx17("svg", {
1949
1966
  "aria-hidden": "true",
1950
1967
  fill: "none",
1951
1968
  height: size,
@@ -1964,71 +1981,71 @@ var makeIcon = (name, paths) => {
1964
1981
  };
1965
1982
  var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs11(Fragment3, {
1966
1983
  children: [
1967
- /* @__PURE__ */ jsx14("path", {
1984
+ /* @__PURE__ */ jsx17("path", {
1968
1985
  d: "m12 19-7-7 7-7"
1969
1986
  }),
1970
- /* @__PURE__ */ jsx14("path", {
1987
+ /* @__PURE__ */ jsx17("path", {
1971
1988
  d: "M19 12H5"
1972
1989
  })
1973
1990
  ]
1974
1991
  }));
1975
1992
  var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs11(Fragment3, {
1976
1993
  children: [
1977
- /* @__PURE__ */ jsx14("path", {
1994
+ /* @__PURE__ */ jsx17("path", {
1978
1995
  d: "M5 12h14"
1979
1996
  }),
1980
- /* @__PURE__ */ jsx14("path", {
1997
+ /* @__PURE__ */ jsx17("path", {
1981
1998
  d: "m12 5 7 7-7 7"
1982
1999
  })
1983
2000
  ]
1984
2001
  }));
1985
2002
  var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs11(Fragment3, {
1986
2003
  children: [
1987
- /* @__PURE__ */ jsx14("path", {
2004
+ /* @__PURE__ */ jsx17("path", {
1988
2005
  d: "M12 7v14"
1989
2006
  }),
1990
- /* @__PURE__ */ jsx14("path", {
2007
+ /* @__PURE__ */ jsx17("path", {
1991
2008
  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"
1992
2009
  })
1993
2010
  ]
1994
2011
  }));
1995
- var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx14("path", {
2012
+ var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx17("path", {
1996
2013
  d: "m6 9 6 6 6-6"
1997
2014
  }));
1998
2015
  var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs11(Fragment3, {
1999
2016
  children: [
2000
- /* @__PURE__ */ jsx14("path", {
2017
+ /* @__PURE__ */ jsx17("path", {
2001
2018
  d: "M15 3h6v6"
2002
2019
  }),
2003
- /* @__PURE__ */ jsx14("path", {
2020
+ /* @__PURE__ */ jsx17("path", {
2004
2021
  d: "M10 14 21 3"
2005
2022
  }),
2006
- /* @__PURE__ */ jsx14("path", {
2023
+ /* @__PURE__ */ jsx17("path", {
2007
2024
  d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"
2008
2025
  })
2009
2026
  ]
2010
2027
  }));
2011
2028
  var Hash = makeIcon("Hash", /* @__PURE__ */ jsxs11(Fragment3, {
2012
2029
  children: [
2013
- /* @__PURE__ */ jsx14("line", {
2030
+ /* @__PURE__ */ jsx17("line", {
2014
2031
  x1: "4",
2015
2032
  x2: "20",
2016
2033
  y1: "9",
2017
2034
  y2: "9"
2018
2035
  }),
2019
- /* @__PURE__ */ jsx14("line", {
2036
+ /* @__PURE__ */ jsx17("line", {
2020
2037
  x1: "4",
2021
2038
  x2: "20",
2022
2039
  y1: "15",
2023
2040
  y2: "15"
2024
2041
  }),
2025
- /* @__PURE__ */ jsx14("line", {
2042
+ /* @__PURE__ */ jsx17("line", {
2026
2043
  x1: "10",
2027
2044
  x2: "8",
2028
2045
  y1: "3",
2029
2046
  y2: "21"
2030
2047
  }),
2031
- /* @__PURE__ */ jsx14("line", {
2048
+ /* @__PURE__ */ jsx17("line", {
2032
2049
  x1: "16",
2033
2050
  x2: "14",
2034
2051
  y1: "3",
@@ -2425,20 +2442,19 @@ var getDocsMessages = (locale, overrides) => ({
2425
2442
  ...locale.startsWith("fr") ? messages2.fr : messages2.en,
2426
2443
  ...overrides
2427
2444
  });
2428
- var EmptyIcon = forwardRef(() => null);
2429
- var iconFor = (icons, name) => name ? icons[name] ?? EmptyIcon : EmptyIcon;
2445
+ var iconFor = (icons, name) => name ? icons[name] : undefined;
2430
2446
  var DocsArticle = ({
2431
2447
  messages: messages3,
2432
2448
  page
2433
2449
  }) => {
2434
- return /* @__PURE__ */ jsx14(MarkdownContent, {
2450
+ return /* @__PURE__ */ jsx17(MarkdownContent, {
2435
2451
  codeBlocks: page.codeBlocks,
2436
2452
  html: page.html,
2437
2453
  messages: { copy: messages3.copyCode, copied: messages3.copied }
2438
2454
  });
2439
2455
  };
2440
2456
  var useActiveDocsHeading = (headings) => {
2441
- const [activeHeadingId, setActiveHeadingId] = useState5(headings[0]?.id);
2457
+ const [activeHeadingId, setActiveHeadingId] = useState6(headings[0]?.id);
2442
2458
  useEffect5(() => {
2443
2459
  const elements = headings.flatMap((heading) => {
2444
2460
  const element = document.getElementById(heading.id);
@@ -2478,12 +2494,12 @@ var DocsTableOfContentsItems = ({
2478
2494
  headings
2479
2495
  }) => {
2480
2496
  const activeHeadingId = useActiveDocsHeading(headings);
2481
- return /* @__PURE__ */ jsx14("ol", {
2497
+ return /* @__PURE__ */ jsx17("ol", {
2482
2498
  className: "border-l",
2483
2499
  children: headings.map((heading) => {
2484
2500
  const isActive = heading.id === activeHeadingId;
2485
- return /* @__PURE__ */ jsx14("li", {
2486
- children: /* @__PURE__ */ jsx14("a", {
2501
+ return /* @__PURE__ */ jsx17("li", {
2502
+ children: /* @__PURE__ */ jsx17("a", {
2487
2503
  "aria-current": isActive ? "location" : undefined,
2488
2504
  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"}`,
2489
2505
  href: `#${heading.id}`,
@@ -2503,11 +2519,11 @@ var DocsTableOfContents = ({
2503
2519
  "aria-label": label,
2504
2520
  className: "fixed top-20 max-h-[calc(100svh-6rem)] w-56 overflow-y-auto",
2505
2521
  children: [
2506
- /* @__PURE__ */ jsx14("p", {
2522
+ /* @__PURE__ */ jsx17("p", {
2507
2523
  className: "text-foreground mb-3 text-sm font-semibold",
2508
2524
  children: label
2509
2525
  }),
2510
- /* @__PURE__ */ jsx14(DocsTableOfContentsItems, {
2526
+ /* @__PURE__ */ jsx17(DocsTableOfContentsItems, {
2511
2527
  headings
2512
2528
  })
2513
2529
  ]
@@ -2525,19 +2541,19 @@ var DocsMobileTableOfContents = ({
2525
2541
  /* @__PURE__ */ jsxs11(CollapsibleTrigger, {
2526
2542
  className: "group flex w-full cursor-pointer items-center justify-between p-4 text-left text-sm font-semibold",
2527
2543
  children: [
2528
- /* @__PURE__ */ jsx14("span", {
2544
+ /* @__PURE__ */ jsx17("span", {
2529
2545
  children: label
2530
2546
  }),
2531
- /* @__PURE__ */ jsx14(ChevronDown, {
2547
+ /* @__PURE__ */ jsx17(ChevronDown, {
2532
2548
  className: "text-muted-foreground size-4 transition-transform group-data-[panel-open]:rotate-180"
2533
2549
  })
2534
2550
  ]
2535
2551
  }),
2536
- /* @__PURE__ */ jsx14(CollapsibleContent, {
2552
+ /* @__PURE__ */ jsx17(CollapsibleContent, {
2537
2553
  className: "px-4 pt-1 pb-4",
2538
- children: /* @__PURE__ */ jsx14("nav", {
2554
+ children: /* @__PURE__ */ jsx17("nav", {
2539
2555
  "aria-label": label,
2540
- children: /* @__PURE__ */ jsx14(DocsTableOfContentsItems, {
2556
+ children: /* @__PURE__ */ jsx17(DocsTableOfContentsItems, {
2541
2557
  headings
2542
2558
  })
2543
2559
  })
@@ -2550,7 +2566,7 @@ var DocsSearch = ({
2550
2566
  locale,
2551
2567
  messages: messages3
2552
2568
  }) => {
2553
- const [query, setQuery] = useState5("");
2569
+ const [query, setQuery] = useState6("");
2554
2570
  const deferredQuery = useDeferredValue(query);
2555
2571
  const results = docs.search(deferredQuery, locale);
2556
2572
  const isSearching = deferredQuery.trim().length > 0;
@@ -2575,7 +2591,7 @@ var DocsSearch = ({
2575
2591
  id: `${page.path}#${heading.id}`,
2576
2592
  label: heading.title,
2577
2593
  description: page.title,
2578
- icon: /* @__PURE__ */ jsx14(Hash, {
2594
+ icon: /* @__PURE__ */ jsx17(Hash, {
2579
2595
  className: "size-4"
2580
2596
  }),
2581
2597
  onSelect: () => docs.navigate(`${page.path}#${heading.id}`)
@@ -2588,15 +2604,16 @@ var DocsSearch = ({
2588
2604
  };
2589
2605
  if (page.icon) {
2590
2606
  const PageIcon = iconFor(docs.icons, page.icon);
2591
- item.icon = /* @__PURE__ */ jsx14(PageIcon, {
2592
- className: "size-4"
2593
- });
2607
+ if (PageIcon)
2608
+ item.icon = /* @__PURE__ */ jsx17(PageIcon, {
2609
+ className: "size-4"
2610
+ });
2594
2611
  }
2595
2612
  return item;
2596
2613
  })())
2597
2614
  };
2598
2615
  });
2599
- return /* @__PURE__ */ jsx14(SearchMenu, {
2616
+ return /* @__PURE__ */ jsx17(SearchMenu, {
2600
2617
  groups,
2601
2618
  messages: {
2602
2619
  title: messages3.searchTitle,
@@ -2614,7 +2631,8 @@ var DocsLayout = ({
2614
2631
  children,
2615
2632
  docs,
2616
2633
  headerActions,
2617
- locale
2634
+ locale,
2635
+ sidebarCollapsible = "icon"
2618
2636
  }) => {
2619
2637
  const { brand, resources, sidebarGroups } = docs;
2620
2638
  const resolvedMessages = docs.getMessages(locale);
@@ -2623,9 +2641,11 @@ var DocsLayout = ({
2623
2641
  items: section.pages.map((item) => {
2624
2642
  const navItem = {
2625
2643
  label: () => item.title,
2626
- href: item.path,
2627
- icon: iconFor(docs.icons, item.icon)
2644
+ href: item.path
2628
2645
  };
2646
+ const ItemIcon = iconFor(docs.icons, item.icon);
2647
+ if (ItemIcon)
2648
+ navItem.icon = ItemIcon;
2629
2649
  if (isDocsPageNew(item.createdAt)) {
2630
2650
  navItem.badge = () => resolvedMessages.newLabel;
2631
2651
  }
@@ -2639,7 +2659,6 @@ var DocsLayout = ({
2639
2659
  badge: item.badge,
2640
2660
  label: item.label,
2641
2661
  href: item.href,
2642
- icon: EmptyIcon,
2643
2662
  external: item.external
2644
2663
  }))
2645
2664
  })));
@@ -2652,23 +2671,23 @@ var DocsLayout = ({
2652
2671
  badge: item.badge,
2653
2672
  label: item.label,
2654
2673
  href: item.href,
2655
- icon: EmptyIcon,
2656
2674
  external: item.external
2657
2675
  })),
2658
2676
  ...docs.githubUrl ? [
2659
2677
  {
2660
2678
  label: () => docs.githubLabel,
2661
2679
  href: docs.githubUrl,
2662
- icon: EmptyIcon,
2663
2680
  external: true
2664
2681
  }
2665
2682
  ] : []
2666
2683
  ]
2667
2684
  });
2668
2685
  }
2669
- return /* @__PURE__ */ jsx14(SidebarLayout, {
2686
+ return /* @__PURE__ */ jsx17(SidebarLayout, {
2687
+ defaultOpen: getSidebarDefaultOpen2(),
2670
2688
  groups,
2671
- sidebarHeader: /* @__PURE__ */ jsx14(AppBrand, {
2689
+ sidebarCollapsible,
2690
+ sidebarHeader: /* @__PURE__ */ jsx17(AppBrand, {
2672
2691
  label: brand.label,
2673
2692
  subtitle: brand.subtitle(),
2674
2693
  icon: brand.icon,
@@ -2684,12 +2703,12 @@ var DocsLayout = ({
2684
2703
  rel: "noreferrer",
2685
2704
  children: [
2686
2705
  docs.githubLabel,
2687
- /* @__PURE__ */ jsx14(ExternalLink, {
2706
+ /* @__PURE__ */ jsx17(ExternalLink, {
2688
2707
  className: "size-3.5"
2689
2708
  })
2690
2709
  ]
2691
2710
  }) : null,
2692
- /* @__PURE__ */ jsx14(DocsSearch, {
2711
+ /* @__PURE__ */ jsx17(DocsSearch, {
2693
2712
  docs,
2694
2713
  locale,
2695
2714
  messages: resolvedMessages
@@ -2718,21 +2737,21 @@ var DocsHeader = ({ docs, resolution }) => {
2718
2737
  /* @__PURE__ */ jsxs11("div", {
2719
2738
  className: "flex flex-wrap items-center gap-3",
2720
2739
  children: [
2721
- /* @__PURE__ */ jsx14("h1", {
2740
+ /* @__PURE__ */ jsx17("h1", {
2722
2741
  className: "text-3xl font-bold tracking-tight sm:text-4xl",
2723
2742
  children: page.title
2724
2743
  }),
2725
- page.tags?.map((tag) => /* @__PURE__ */ jsx14(Badge, {
2744
+ page.tags?.map((tag) => /* @__PURE__ */ jsx17(Badge, {
2726
2745
  variant: "secondary",
2727
2746
  children: tag
2728
2747
  }, tag))
2729
2748
  ]
2730
2749
  }),
2731
- /* @__PURE__ */ jsx14("p", {
2750
+ /* @__PURE__ */ jsx17("p", {
2732
2751
  className: "text-muted-foreground mt-3 max-w-2xl text-base leading-7",
2733
2752
  children: page.description
2734
2753
  }),
2735
- page.updatedAt ? /* @__PURE__ */ jsx14("p", {
2754
+ page.updatedAt ? /* @__PURE__ */ jsx17("p", {
2736
2755
  className: "text-muted-foreground mt-3 text-sm",
2737
2756
  children: resolvedMessages.lastUpdated(new Date(page.updatedAt))
2738
2757
  }) : null
@@ -2744,11 +2763,11 @@ var DocsContent = ({ docs, resolution }) => {
2744
2763
  const resolvedMessages = docs.getMessages(page.locale);
2745
2764
  return /* @__PURE__ */ jsxs11(Fragment3, {
2746
2765
  children: [
2747
- /* @__PURE__ */ jsx14(DocsMobileTableOfContents, {
2766
+ /* @__PURE__ */ jsx17(DocsMobileTableOfContents, {
2748
2767
  headings: page.headings,
2749
2768
  label: resolvedMessages.onThisPage
2750
2769
  }),
2751
- /* @__PURE__ */ jsx14(DocsArticle, {
2770
+ /* @__PURE__ */ jsx17(DocsArticle, {
2752
2771
  messages: resolvedMessages,
2753
2772
  page
2754
2773
  })
@@ -2772,12 +2791,12 @@ var DocsFooter = ({ docs, resolution }) => {
2772
2791
  rel: "noreferrer",
2773
2792
  children: [
2774
2793
  resolvedMessages.editPage,
2775
- /* @__PURE__ */ jsx14(ExternalLink, {
2794
+ /* @__PURE__ */ jsx17(ExternalLink, {
2776
2795
  className: "size-3.5"
2777
2796
  })
2778
2797
  ]
2779
2798
  }) : null,
2780
- /* @__PURE__ */ jsx14("span", {
2799
+ /* @__PURE__ */ jsx17("span", {
2781
2800
  className: "text-muted-foreground",
2782
2801
  children: resolvedMessages.latestVersionNotice
2783
2802
  })
@@ -2794,18 +2813,18 @@ var DocsFooter = ({ docs, resolution }) => {
2794
2813
  /* @__PURE__ */ jsxs11("span", {
2795
2814
  className: "text-muted-foreground flex items-center gap-1 text-xs font-medium uppercase",
2796
2815
  children: [
2797
- /* @__PURE__ */ jsx14(ArrowLeft, {
2816
+ /* @__PURE__ */ jsx17(ArrowLeft, {
2798
2817
  className: "size-3.5"
2799
2818
  }),
2800
2819
  resolvedMessages.previous
2801
2820
  ]
2802
2821
  }),
2803
- /* @__PURE__ */ jsx14("span", {
2822
+ /* @__PURE__ */ jsx17("span", {
2804
2823
  className: "mt-1 block font-semibold",
2805
2824
  children: neighbors.previous.title
2806
2825
  })
2807
2826
  ]
2808
- }) : /* @__PURE__ */ jsx14("span", {}),
2827
+ }) : /* @__PURE__ */ jsx17("span", {}),
2809
2828
  neighbors.next ? /* @__PURE__ */ jsxs11("a", {
2810
2829
  className: "hover:bg-muted/50 rounded-lg border p-4 text-right transition-colors",
2811
2830
  href: neighbors.next.path,
@@ -2814,12 +2833,12 @@ var DocsFooter = ({ docs, resolution }) => {
2814
2833
  className: "text-muted-foreground flex items-center justify-end gap-1 text-xs font-medium uppercase",
2815
2834
  children: [
2816
2835
  resolvedMessages.next,
2817
- /* @__PURE__ */ jsx14(ArrowRight, {
2836
+ /* @__PURE__ */ jsx17(ArrowRight, {
2818
2837
  className: "size-3.5"
2819
2838
  })
2820
2839
  ]
2821
2840
  }),
2822
- /* @__PURE__ */ jsx14("span", {
2841
+ /* @__PURE__ */ jsx17("span", {
2823
2842
  className: "mt-1 block font-semibold",
2824
2843
  children: neighbors.next.title
2825
2844
  })
@@ -2835,15 +2854,15 @@ var DocsPage = ({ children, docs, resolution }) => {
2835
2854
  const resolvedMessages = docs.getMessages(page.locale);
2836
2855
  const content = children ?? /* @__PURE__ */ jsxs11(Fragment3, {
2837
2856
  children: [
2838
- /* @__PURE__ */ jsx14(DocsHeader, {
2857
+ /* @__PURE__ */ jsx17(DocsHeader, {
2839
2858
  docs,
2840
2859
  resolution
2841
2860
  }),
2842
- /* @__PURE__ */ jsx14(DocsContent, {
2861
+ /* @__PURE__ */ jsx17(DocsContent, {
2843
2862
  docs,
2844
2863
  resolution
2845
2864
  }),
2846
- /* @__PURE__ */ jsx14(DocsFooter, {
2865
+ /* @__PURE__ */ jsx17(DocsFooter, {
2847
2866
  docs,
2848
2867
  resolution
2849
2868
  })
@@ -2851,7 +2870,7 @@ var DocsPage = ({ children, docs, resolution }) => {
2851
2870
  });
2852
2871
  return /* @__PURE__ */ jsxs11(Fragment3, {
2853
2872
  children: [
2854
- /* @__PURE__ */ jsx14("a", {
2873
+ /* @__PURE__ */ jsx17("a", {
2855
2874
  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",
2856
2875
  href: "#docs-content",
2857
2876
  children: resolvedMessages.skipToContent
@@ -2859,15 +2878,15 @@ var DocsPage = ({ children, docs, resolution }) => {
2859
2878
  /* @__PURE__ */ jsxs11("div", {
2860
2879
  className: "mx-auto grid w-full max-w-6xl gap-10 xl:grid-cols-[minmax(0,48rem)_14rem]",
2861
2880
  children: [
2862
- /* @__PURE__ */ jsx14("article", {
2881
+ /* @__PURE__ */ jsx17("article", {
2863
2882
  id: "docs-content",
2864
2883
  className: "min-w-0 pb-16",
2865
2884
  tabIndex: -1,
2866
2885
  children: content
2867
2886
  }),
2868
- /* @__PURE__ */ jsx14("aside", {
2887
+ /* @__PURE__ */ jsx17("aside", {
2869
2888
  className: "hidden xl:block",
2870
- children: /* @__PURE__ */ jsx14(DocsTableOfContents, {
2889
+ children: /* @__PURE__ */ jsx17(DocsTableOfContents, {
2871
2890
  headings: page.headings,
2872
2891
  label: resolvedMessages.onThisPage
2873
2892
  })
@@ -2886,18 +2905,18 @@ var DocsNotFound = ({
2886
2905
  return /* @__PURE__ */ jsxs11("main", {
2887
2906
  className: "mx-auto flex min-h-screen max-w-lg flex-col justify-center px-6 text-center",
2888
2907
  children: [
2889
- /* @__PURE__ */ jsx14(BrandIcon, {
2908
+ /* @__PURE__ */ jsx17(BrandIcon, {
2890
2909
  className: "text-primary mx-auto size-10"
2891
2910
  }),
2892
- /* @__PURE__ */ jsx14("h1", {
2911
+ /* @__PURE__ */ jsx17("h1", {
2893
2912
  className: "mt-6 text-3xl font-bold tracking-tight",
2894
2913
  children: resolvedMessages.notFoundTitle
2895
2914
  }),
2896
- /* @__PURE__ */ jsx14("p", {
2915
+ /* @__PURE__ */ jsx17("p", {
2897
2916
  className: "text-muted-foreground mt-3 leading-7",
2898
2917
  children: resolvedMessages.notFoundDescription
2899
2918
  }),
2900
- /* @__PURE__ */ jsx14("a", {
2919
+ /* @__PURE__ */ jsx17("a", {
2901
2920
  className: "text-primary mt-6 font-semibold underline underline-offset-4",
2902
2921
  href: docs.basePath,
2903
2922
  children: resolvedMessages.notFoundAction
@@ -2906,20 +2925,20 @@ var DocsNotFound = ({
2906
2925
  });
2907
2926
  };
2908
2927
  export {
2909
- DocsCodeBlockSchema,
2910
- DocsContent,
2911
- DocsFooter,
2912
- DocsFrontmatter,
2913
- DocsHeader,
2914
- DocsHeadingSchema,
2915
- DocsLayout,
2916
- DocsNotFound,
2917
- DocsPage,
2918
- DocsPageSchema,
2919
- DocsPageType,
2920
- DocsSection,
2921
- createDocsSource,
2922
- getDocsMessages,
2928
+ slugifyDocsHeading,
2923
2929
  makeDocs,
2924
- slugifyDocsHeading
2930
+ getDocsMessages,
2931
+ createDocsSource,
2932
+ DocsSection,
2933
+ DocsPageType,
2934
+ DocsPageSchema,
2935
+ DocsPage,
2936
+ DocsNotFound,
2937
+ DocsLayout,
2938
+ DocsHeadingSchema,
2939
+ DocsHeader,
2940
+ DocsFrontmatter,
2941
+ DocsFooter,
2942
+ DocsContent,
2943
+ DocsCodeBlockSchema
2925
2944
  };