@unterberg/nivel 0.1.14 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +8 -9
  2. package/dist/{SearchModal-YJZFUB53.js → SearchModal-Q2MTOIZU.js} +4 -4
  3. package/dist/SearchModal-Q2MTOIZU.js.map +1 -0
  4. package/dist/{chunk-NGX2C26M.js → chunk-G6PC37P5.js} +45 -11
  5. package/dist/chunk-G6PC37P5.js.map +1 -0
  6. package/dist/{chunk-SH5XWPXW.js → chunk-MPERUGQD.js} +112 -59
  7. package/dist/chunk-MPERUGQD.js.map +1 -0
  8. package/dist/{chunk-QWIYQPCW.js → chunk-UMH7S7OB.js} +45 -4
  9. package/dist/chunk-UMH7S7OB.js.map +1 -0
  10. package/dist/{chunk-PKXDOKJY.js → chunk-VGBPF5O7.js} +22 -15
  11. package/dist/chunk-VGBPF5O7.js.map +1 -0
  12. package/dist/{chunk-R6O4NLHC.js → chunk-WEGYZIYX.js} +6 -2
  13. package/dist/chunk-WEGYZIYX.js.map +1 -0
  14. package/dist/cli.js +2 -2
  15. package/dist/client.d.ts +2 -1
  16. package/dist/client.js +2 -2
  17. package/dist/icons.d.ts +1 -0
  18. package/dist/icons.js +3 -0
  19. package/dist/icons.js.map +1 -0
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +2 -8
  22. package/dist/mdx/code-blocks.d.ts +1 -1
  23. package/dist/mdx.js +2 -3
  24. package/dist/mdx.js.map +1 -1
  25. package/dist/runtime/client.d.ts +2 -1
  26. package/dist/runtime/client.js +2 -2
  27. package/dist/runtime/node.d.ts +2 -1
  28. package/dist/runtime/node.js +3 -3
  29. package/dist/{types-IiJ1jLWc.d.ts → types-Duk127zu.d.ts} +20 -2
  30. package/dist/vike.d.ts +2 -1
  31. package/dist/vike.js +5 -5
  32. package/dist/vike.js.map +1 -1
  33. package/package.json +5 -5
  34. package/dist/SearchModal-YJZFUB53.js.map +0 -1
  35. package/dist/chunk-JSZZPQEP.js +0 -9
  36. package/dist/chunk-JSZZPQEP.js.map +0 -1
  37. package/dist/chunk-NGX2C26M.js.map +0 -1
  38. package/dist/chunk-PKXDOKJY.js.map +0 -1
  39. package/dist/chunk-QWIYQPCW.js.map +0 -1
  40. package/dist/chunk-R6O4NLHC.js.map +0 -1
  41. package/dist/chunk-SH5XWPXW.js.map +0 -1
  42. package/dist/config.d.ts +0 -6
  43. package/dist/config.js +0 -9
  44. package/dist/config.js.map +0 -1
@@ -21,11 +21,12 @@ import {
21
21
  } from "./chunk-L6ZVB6XH.js";
22
22
  import {
23
23
  getActiveSectionByPathname,
24
+ getDocsIconMapKey,
24
25
  getResolvedPageByPathname,
25
26
  getResolvedSectionById,
26
27
  isSamePagePathname,
27
28
  resolveDocsHref
28
- } from "./chunk-QWIYQPCW.js";
29
+ } from "./chunk-UMH7S7OB.js";
29
30
  import {
30
31
  nivelAssetUrl,
31
32
  withSiteBaseUrl
@@ -45,7 +46,7 @@ import { useEffect, useState } from "react";
45
46
  import { jsx } from "react/jsx-runtime";
46
47
  var searchModalModulePromise = null;
47
48
  var loadSearchModalModule = () => {
48
- searchModalModulePromise ??= import("./SearchModal-YJZFUB53.js");
49
+ searchModalModulePromise ??= import("./SearchModal-Q2MTOIZU.js");
49
50
  return searchModalModulePromise;
50
51
  };
51
52
  var Search = () => {
@@ -249,8 +250,8 @@ var ThemeSwitch = ({ theme }) => {
249
250
  onClick: () => setThemePreference(effectiveThemePreference === "light" ? "dark" : "light"),
250
251
  className: "relative flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-base-muted-light bg-base-200",
251
252
  children: [
252
- /* @__PURE__ */ jsx4(Sun, { className: "h-4 w-4 dark:hidden" }),
253
- /* @__PURE__ */ jsx4(Moon, { className: "hidden h-4 w-4 dark:block" })
253
+ /* @__PURE__ */ jsx4(Sun, { className: "size-4 dark:hidden" }),
254
+ /* @__PURE__ */ jsx4(Moon, { className: "hidden size-4 dark:block" })
254
255
  ]
255
256
  }
256
257
  );
@@ -295,6 +296,7 @@ var DocsNavbar = ({
295
296
  /* @__PURE__ */ jsx6("div", { className: "lg:min-w-76 min-w-none", children: /* @__PURE__ */ jsx6(Brand, { brand: docs.brand }) }),
296
297
  /* @__PURE__ */ jsx6(StyledNav, { "aria-label": "Primary", children: /* @__PURE__ */ jsxs4(StyledNavList, { className: "", children: [
297
298
  docs.navbarItems.map((item) => {
299
+ const ItemIcon = docs.docsIconMap[getDocsIconMapKey("section", item.id)];
298
300
  const isMegaMenuItemActive = isMegaMenuOpen && hoveredSectionId === item.id;
299
301
  return /* @__PURE__ */ jsx6("li", { children: /* @__PURE__ */ jsx6(
300
302
  "a",
@@ -314,12 +316,13 @@ var DocsNavbar = ({
314
316
  activeSection?.id === item.id ? "btn-primary btn-soft" : "btn-ghost "
315
317
  ),
316
318
  children: [
319
+ ItemIcon ? /* @__PURE__ */ jsx6(ItemIcon, { className: "size-4 shrink-0", "aria-hidden": "true" }) : null,
317
320
  renderInlineMarkdown(item.title),
318
321
  /* @__PURE__ */ jsx6(
319
322
  ChevronDown,
320
323
  {
321
324
  className: cmMerge2(
322
- "h-4 w-4 shrink-0 transition-transform duration-200",
325
+ "size-4 shrink-0 transition-transform duration-200",
323
326
  isMegaMenuItemActive ? "rotate-180" : "rotate-0"
324
327
  )
325
328
  }
@@ -338,7 +341,7 @@ var DocsNavbar = ({
338
341
  className: "btn btn-ghost btn-sm text-base md:min-w-30 px-2 whitespace-nowrap tracking-tight",
339
342
  children: [
340
343
  "Search",
341
- /* @__PURE__ */ jsx6(TextSearch, { className: "h-4 w-4" })
344
+ /* @__PURE__ */ jsx6(TextSearch, { className: "size-4" })
342
345
  ]
343
346
  }
344
347
  ) }) : null
@@ -378,6 +381,7 @@ var LandingPageNavbar = ({
378
381
  /* @__PURE__ */ jsx7("div", { className: "min-w-40", children: /* @__PURE__ */ jsx7(Brand, { brand: docs.brand }) }),
379
382
  /* @__PURE__ */ jsx7(StyledNav2, { "aria-label": "Primary", className: "flex-1 flex hidden lg:flex", children: /* @__PURE__ */ jsxs5(StyledNavList2, { className: "justify-end ", children: [
380
383
  docs.navbarItems.map((item) => {
384
+ const ItemIcon = docs.docsIconMap[getDocsIconMapKey("section", item.id)];
381
385
  const isMegaMenuItemActive = isMegaMenuOpen && hoveredSectionId === item.id;
382
386
  return /* @__PURE__ */ jsx7("li", { children: /* @__PURE__ */ jsx7(
383
387
  "a",
@@ -396,12 +400,13 @@ var LandingPageNavbar = ({
396
400
  "btn btn-ghost text-base lg:text-lg btn-sm lg:min-w-30 px-2 whitespace-nowrap tracking-tight"
397
401
  ),
398
402
  children: [
403
+ ItemIcon ? /* @__PURE__ */ jsx7(ItemIcon, { className: "size-4 shrink-0", "aria-hidden": "true" }) : null,
399
404
  renderInlineMarkdown(item.title),
400
405
  /* @__PURE__ */ jsx7(
401
406
  ChevronDown2,
402
407
  {
403
408
  className: cmMerge3(
404
- "h-4 w-4 shrink-0 transition-transform duration-200",
409
+ "size-4 shrink-0 transition-transform duration-200",
405
410
  isMegaMenuItemActive ? "rotate-180" : "rotate-0"
406
411
  )
407
412
  }
@@ -420,7 +425,7 @@ var LandingPageNavbar = ({
420
425
  className: "btn btn-ghost btn-sm text-base lg:text-lg lg:min-w-30 px-2 whitespace-nowrap tracking-tight",
421
426
  children: [
422
427
  "Search",
423
- /* @__PURE__ */ jsx7(TextSearch2, { className: "h-4 w-4" })
428
+ /* @__PURE__ */ jsx7(TextSearch2, { className: "size-4" })
424
429
  ]
425
430
  }
426
431
  ) }) : null
@@ -444,6 +449,7 @@ var MegaMenu = ({
444
449
  hoveredSectionId,
445
450
  isLandingPage
446
451
  }) => {
452
+ const docs = useDocsGlobalContext();
447
453
  const visibleSectionId = hoveredSectionId ?? activeSectionId ?? sections[0]?.id;
448
454
  const [visibleSectionElement, setVisibleSectionElement] = useState2(null);
449
455
  const [contentHeight, setContentHeight] = useState2(0);
@@ -505,19 +511,38 @@ var MegaMenu = ({
505
511
  section.id === visibleSectionId ? "opacity-100" : "opacity-0 pointer-events-none",
506
512
  "transition-all absolute w-full duration-300"
507
513
  ),
508
- children: section.items.length > 0 && /* @__PURE__ */ jsx8("ul", { className: "mt-2 flex ", children: section.items.map(
509
- (child) => child.showInNav !== false && /* @__PURE__ */ jsxs6("li", { className: "flex-1 py-3 mb-6 px-4", children: [
510
- child.href ? /* @__PURE__ */ jsx8(
514
+ children: section.items.length > 0 && /* @__PURE__ */ jsx8("ul", { className: "mt-2 flex ", children: section.items.map((child) => {
515
+ if (child.showInNav === false) {
516
+ return null;
517
+ }
518
+ const ChildIcon = docs.docsIconMap[getDocsIconMapKey(child.kind, child.id)];
519
+ return /* @__PURE__ */ jsxs6("li", { className: "flex-1 py-3 mb-6 px-4", children: [
520
+ child.href ? /* @__PURE__ */ jsxs6(
511
521
  "a",
512
522
  {
513
- className: "mb-4 block text-lg font-semibold tracking-tight",
523
+ className: "mb-4 flex items-center gap-2 text-lg font-semibold tracking-tight",
514
524
  href: withSiteBaseUrl(child.href),
515
- children: child.title
525
+ children: [
526
+ ChildIcon ? /* @__PURE__ */ jsx8(ChildIcon, { className: "size-4 shrink-0", "aria-hidden": "true" }) : null,
527
+ /* @__PURE__ */ jsx8("span", { children: child.title })
528
+ ]
516
529
  }
517
- ) : /* @__PURE__ */ jsx8("span", { className: "mb-4 block text-lg font-semibold tracking-tight", children: child.title }),
518
- child.kind === "group" && child.items.length > 0 && /* @__PURE__ */ jsx8("ul", { className: "menu border-l border-base-muted-light py-0 w-full", children: child.items.map((subChild) => /* @__PURE__ */ jsx8("li", { children: subChild.href ? /* @__PURE__ */ jsx8("a", { href: withSiteBaseUrl(subChild.href), onClick: onClose, children: renderInlineMarkdown(subChild.title) }) : /* @__PURE__ */ jsx8("span", { children: renderInlineMarkdown(subChild.title) }) }, subChild.id)) })
519
- ] }, child.id)
520
- ) })
530
+ ) : /* @__PURE__ */ jsxs6("span", { className: "mb-4 flex items-center gap-2 text-lg font-semibold tracking-tight", children: [
531
+ ChildIcon ? /* @__PURE__ */ jsx8(ChildIcon, { className: "size-4 shrink-0", "aria-hidden": "true" }) : null,
532
+ /* @__PURE__ */ jsx8("span", { children: child.title })
533
+ ] }),
534
+ child.kind === "group" && child.items.length > 0 && /* @__PURE__ */ jsx8("ul", { className: "menu border-l border-base-muted-light py-0 w-full", children: child.items.map((subChild) => {
535
+ const SubChildIcon = docs.docsIconMap[getDocsIconMapKey(subChild.kind, subChild.id)];
536
+ return /* @__PURE__ */ jsx8("li", { children: subChild.href ? /* @__PURE__ */ jsx8("a", { href: withSiteBaseUrl(subChild.href), onClick: onClose, children: /* @__PURE__ */ jsxs6("span", { className: "flex items-center gap-2", children: [
537
+ SubChildIcon ? /* @__PURE__ */ jsx8(SubChildIcon, { className: "size-4 shrink-0", "aria-hidden": "true" }) : null,
538
+ /* @__PURE__ */ jsx8("span", { children: renderInlineMarkdown(subChild.title) })
539
+ ] }) }) : /* @__PURE__ */ jsxs6("span", { className: "flex items-center gap-2", children: [
540
+ SubChildIcon ? /* @__PURE__ */ jsx8(SubChildIcon, { className: "size-4 shrink-0", "aria-hidden": "true" }) : null,
541
+ /* @__PURE__ */ jsx8("span", { children: renderInlineMarkdown(subChild.title) })
542
+ ] }) }, subChild.id);
543
+ }) })
544
+ ] }, child.id);
545
+ }) })
521
546
  },
522
547
  section.id
523
548
  ))
@@ -868,9 +893,9 @@ var PaginationCard = ({ item, direction, isOffset }) => {
868
893
  isPrevious ? "justify-start" : "justify-end"
869
894
  ),
870
895
  children: [
871
- isPrevious && /* @__PURE__ */ jsx15(ChevronLeft, { className: "h-4 w-4" }),
896
+ isPrevious && /* @__PURE__ */ jsx15(ChevronLeft, { className: "size-4" }),
872
897
  /* @__PURE__ */ jsx15("span", { children: isPrevious ? "Previous" : "Next" }),
873
- !isPrevious && /* @__PURE__ */ jsx15(ChevronRight, { className: "h-4 w-4" })
898
+ !isPrevious && /* @__PURE__ */ jsx15(ChevronRight, { className: "size-4" })
874
899
  ]
875
900
  }
876
901
  )
@@ -906,11 +931,11 @@ var DocsFooter = memo2(() => {
906
931
  return /* @__PURE__ */ jsxs13("footer", { className: "mb-8 mt-12 text-sm border-t border-base-muted-light pt-10", children: [
907
932
  /* @__PURE__ */ jsxs13("div", { className: "mb-16 flex items-center gap-2", children: [
908
933
  /* @__PURE__ */ jsxs13("a", { href: "edit", className: "btn btn-sm btn-primary btn-soft", children: [
909
- /* @__PURE__ */ jsx16(Pencil, { className: "w-3 h-3" }),
934
+ /* @__PURE__ */ jsx16(Pencil, { className: "size-3" }),
910
935
  " Edit this page"
911
936
  ] }),
912
937
  /* @__PURE__ */ jsxs13("a", { href: "edit", className: "btn btn-sm btn-primary btn-soft", children: [
913
- /* @__PURE__ */ jsx16(Bug, { className: "w-3 h-3" }),
938
+ /* @__PURE__ */ jsx16(Bug, { className: "size-3" }),
914
939
  " Report Issue"
915
940
  ] })
916
941
  ] }),
@@ -1021,7 +1046,7 @@ var useAutoOpenDetails = (nodeId, isOpenByDefault, hasActiveDescendant) => {
1021
1046
  setIsOpen: (nextOpen) => setNodeOpen(nodeId, nextOpen)
1022
1047
  };
1023
1048
  };
1024
- var SidebarPageLink = ({ title, href, currentHref }) => {
1049
+ var SidebarPageLink = ({ title, href, currentHref, icon: Icon }) => {
1025
1050
  return /* @__PURE__ */ jsx17("li", { className: "rounded-none", children: /* @__PURE__ */ jsx17(
1026
1051
  "a",
1027
1052
  {
@@ -1030,24 +1055,33 @@ var SidebarPageLink = ({ title, href, currentHref }) => {
1030
1055
  "text-base-muted hover:text-base-content justify-start hover:bg-base-200",
1031
1056
  href === currentHref && "text-primary! font-semibold bg-base-200"
1032
1057
  ),
1033
- children: renderInlineMarkdown(title, { codeClassName: "text-sm!" })
1058
+ children: /* @__PURE__ */ jsxs14("span", { className: "flex items-center gap-2", children: [
1059
+ Icon ? /* @__PURE__ */ jsx17(Icon, { className: "size-4 shrink-0", "aria-hidden": "true" }) : null,
1060
+ /* @__PURE__ */ jsx17("span", { children: renderInlineMarkdown(title, { codeClassName: "text-sm!" }) })
1061
+ ] })
1034
1062
  }
1035
1063
  ) });
1036
1064
  };
1037
- var SidebarGroupDivider = ({ title }) => {
1038
- return /* @__PURE__ */ jsx17("li", { className: "ml-3 mt-2 mb-2 border-b border-base-muted-light text-xs text-base-muted-medium pointer-events-none font-semibold", children: /* @__PURE__ */ jsx17("span", { className: "-ml-3", children: renderInlineMarkdown(title, { codeClassName: "text-sm!" }) }) });
1065
+ var SidebarGroupDivider = ({ title, icon: Icon }) => {
1066
+ return /* @__PURE__ */ jsx17("li", { className: "ml-3 mt-2 mb-2 border-b border-base-muted-light text-xs text-base-muted-medium pointer-events-none font-semibold", children: /* @__PURE__ */ jsxs14("span", { className: "-ml-3 flex items-center gap-2", children: [
1067
+ Icon ? /* @__PURE__ */ jsx17(Icon, { className: "size-4 shrink-0", "aria-hidden": "true" }) : null,
1068
+ /* @__PURE__ */ jsx17("span", { children: renderInlineMarkdown(title, { codeClassName: "text-sm!" }) })
1069
+ ] }) });
1039
1070
  };
1040
- var SidebarGroupTitle = ({ title, href, isActive, allowNavigation = false }) => {
1041
- const content = /* @__PURE__ */ jsx17(
1042
- "span",
1043
- {
1044
- className: cmMerge7(
1045
- allowNavigation ? "font-medium" : "font-semibold",
1046
- isActive && allowNavigation && "text-primary!"
1047
- ),
1048
- children: title ? renderInlineMarkdown(title, { codeClassName: "text-sm!" }) : null
1049
- }
1050
- );
1071
+ var SidebarGroupTitle = ({ title, href, isActive, allowNavigation = false, icon: Icon }) => {
1072
+ const content = /* @__PURE__ */ jsxs14("span", { className: "flex items-center gap-2", children: [
1073
+ Icon ? /* @__PURE__ */ jsx17(Icon, { className: "size-4 shrink-0", "aria-hidden": "true" }) : null,
1074
+ /* @__PURE__ */ jsx17(
1075
+ "span",
1076
+ {
1077
+ className: cmMerge7(
1078
+ allowNavigation ? "font-medium" : "font-semibold",
1079
+ isActive && allowNavigation && "text-primary!"
1080
+ ),
1081
+ children: title ? renderInlineMarkdown(title, { codeClassName: "text-sm!" }) : null
1082
+ }
1083
+ )
1084
+ ] });
1051
1085
  if (allowNavigation && href) {
1052
1086
  return /* @__PURE__ */ jsx17(
1053
1087
  "a",
@@ -1063,32 +1097,42 @@ var SidebarGroupTitle = ({ title, href, isActive, allowNavigation = false }) =>
1063
1097
  }
1064
1098
  return /* @__PURE__ */ jsx17("span", { className: "flex items-center gap-2 text-base-content", children: content });
1065
1099
  };
1066
- var renderSidebarItems = (items, currentHref) => {
1100
+ var renderSidebarItems = (items, currentHref, docsIconMap) => {
1067
1101
  return items.map((item) => {
1068
1102
  if (item.kind === "page") {
1069
- return /* @__PURE__ */ jsx17(SidebarPageLink, { title: item.navTitle, href: item.href, currentHref }, item.id);
1103
+ return /* @__PURE__ */ jsx17(
1104
+ SidebarPageLink,
1105
+ {
1106
+ title: item.navTitle,
1107
+ href: item.href,
1108
+ currentHref,
1109
+ icon: docsIconMap[getDocsIconMapKey("page", item.id)]
1110
+ },
1111
+ item.id
1112
+ );
1070
1113
  }
1071
- return /* @__PURE__ */ jsx17(SidebarNestedGroup, { group: item, currentHref }, item.id);
1114
+ return /* @__PURE__ */ jsx17(SidebarNestedGroup, { group: item, currentHref, docsIconMap }, item.id);
1072
1115
  });
1073
1116
  };
1074
- var SidebarItemList = ({ items, currentHref }) => {
1117
+ var SidebarItemList = ({ items, currentHref, docsIconMap }) => {
1075
1118
  const visibleItems = getVisibleNavItems(items);
1076
- return /* @__PURE__ */ jsx17("ul", { className: "menu lg:w-[97%]", children: renderSidebarItems(visibleItems, currentHref) });
1119
+ return /* @__PURE__ */ jsx17("ul", { className: "menu lg:w-[97%]", children: renderSidebarItems(visibleItems, currentHref, docsIconMap) });
1077
1120
  };
1078
- var SidebarNestedGroup = ({ group, currentHref }) => {
1121
+ var SidebarNestedGroup = ({ group, currentHref, docsIconMap }) => {
1079
1122
  const groupHref = getGroupHref(group);
1080
1123
  const visibleItems = getVisibleGroupItems(group);
1081
1124
  const isCollapsible = group.collapsible !== void 0;
1082
1125
  const isOpenByDefault = group.collapsible?.isDefaultOpen ?? true;
1083
1126
  const nestedHasActiveItem = groupHref === currentHref || hasActiveItem(group.items, currentHref);
1084
1127
  const { isOpen, setIsOpen } = useAutoOpenDetails(`group:${group.id}`, isOpenByDefault, nestedHasActiveItem);
1128
+ const GroupIcon = docsIconMap[getDocsIconMapKey("group", group.id)];
1085
1129
  if (!isCollapsible) {
1086
1130
  if (!group.title) {
1087
- return /* @__PURE__ */ jsx17(Fragment4, { children: renderSidebarItems(visibleItems, currentHref) });
1131
+ return /* @__PURE__ */ jsx17(Fragment4, { children: renderSidebarItems(visibleItems, currentHref, docsIconMap) });
1088
1132
  }
1089
1133
  return /* @__PURE__ */ jsxs14(Fragment4, { children: [
1090
- /* @__PURE__ */ jsx17(SidebarGroupDivider, { title: group.title }),
1091
- renderSidebarItems(visibleItems, currentHref)
1134
+ /* @__PURE__ */ jsx17(SidebarGroupDivider, { title: group.title, icon: GroupIcon }),
1135
+ renderSidebarItems(visibleItems, currentHref, docsIconMap)
1092
1136
  ] });
1093
1137
  }
1094
1138
  return /* @__PURE__ */ jsx17("li", { children: /* @__PURE__ */ jsxs14(
@@ -1105,15 +1149,18 @@ var SidebarNestedGroup = ({ group, currentHref }) => {
1105
1149
  title: group.title,
1106
1150
  href: groupHref ?? void 0,
1107
1151
  isActive: nestedHasActiveItem,
1108
- allowNavigation: Boolean(groupHref)
1152
+ allowNavigation: Boolean(groupHref),
1153
+ icon: GroupIcon
1109
1154
  }
1110
1155
  ) }),
1111
- visibleItems.length > 0 ? /* @__PURE__ */ jsx17(SidebarItemList, { items: visibleItems, currentHref }) : null
1156
+ visibleItems.length > 0 ? /* @__PURE__ */ jsx17(SidebarItemList, { items: visibleItems, currentHref, docsIconMap }) : null
1112
1157
  ]
1113
1158
  }
1114
1159
  ) });
1115
1160
  };
1116
1161
  var SidebarSectionGroup = ({ section, currentHref, activeSectionId }) => {
1162
+ const docs = useDocsGlobalContext();
1163
+ const SectionIcon = docs.docsIconMap[getDocsIconMapKey("section", section.id)];
1117
1164
  const sectionHasActiveItem = section.id === activeSectionId || containsActiveHref(section.items, currentHref);
1118
1165
  const { isOpen, setIsOpen } = useAutoOpenDetails(
1119
1166
  `section:${section.id}`,
@@ -1128,8 +1175,8 @@ var SidebarSectionGroup = ({ section, currentHref, activeSectionId }) => {
1128
1175
  setIsOpen(event.currentTarget.open);
1129
1176
  },
1130
1177
  children: [
1131
- /* @__PURE__ */ jsx17("summary", { children: /* @__PURE__ */ jsx17(SidebarGroupTitle, { title: section.title, isActive: sectionHasActiveItem }) }),
1132
- /* @__PURE__ */ jsx17(SidebarItemList, { items: section.items, currentHref })
1178
+ /* @__PURE__ */ jsx17("summary", { children: /* @__PURE__ */ jsx17(SidebarGroupTitle, { title: section.title, isActive: sectionHasActiveItem, icon: SectionIcon }) }),
1179
+ /* @__PURE__ */ jsx17(SidebarItemList, { items: section.items, currentHref, docsIconMap: docs.docsIconMap })
1133
1180
  ]
1134
1181
  }
1135
1182
  ) });
@@ -1180,7 +1227,7 @@ var TableOfContents = ({
1180
1227
  return /* @__PURE__ */ jsx18("aside", { className: cmMerge8(effectiveTableOfContents ? "w-64" : "w-32", "hidden shrink-0 xl:block"), children: /* @__PURE__ */ jsx18("div", { className: "sticky top-14", children: /* @__PURE__ */ jsxs15("div", { className: "relative h-[calc(100svh-14*var(--spacing))] overflow-y-auto overflow-x-hidden pt-10 pb-8", children: [
1181
1228
  effectiveTableOfContents ? effectiveHeadings.length > 0 && /* @__PURE__ */ jsxs15(Fragment5, { children: [
1182
1229
  /* @__PURE__ */ jsxs15("p", { className: "mb-4 flex items-center gap-2 text-xs font-semibold uppercase tracking-widest text-base-muted", children: [
1183
- /* @__PURE__ */ jsx18(TableOfContentsIcon, { className: "h-3 w-3" }),
1230
+ /* @__PURE__ */ jsx18(TableOfContentsIcon, { className: "size-3" }),
1184
1231
  "On this page"
1185
1232
  ] }),
1186
1233
  /* @__PURE__ */ jsx18("nav", { "aria-label": "On this page", className: "mb-12", children: /* @__PURE__ */ jsx18("ul", { children: effectiveHeadings.map((heading) => /* @__PURE__ */ jsx18("li", { children: /* @__PURE__ */ jsx18(
@@ -1207,7 +1254,7 @@ var Adbar = ({ partners }) => {
1207
1254
  }
1208
1255
  return /* @__PURE__ */ jsxs15("aside", { children: [
1209
1256
  /* @__PURE__ */ jsxs15("p", { className: "mb-4 flex items-center gap-2 text-xs font-semibold uppercase tracking-widest text-base-muted", children: [
1210
- /* @__PURE__ */ jsx18(Flame, { className: "h-3 w-3" }),
1257
+ /* @__PURE__ */ jsx18(Flame, { className: "size-3" }),
1211
1258
  "Partners"
1212
1259
  ] }),
1213
1260
  /* @__PURE__ */ jsxs15("ul", { className: "grid grid-cols-[repeat(auto-fit,minmax(5.5rem,1fr))] gap-3 opacity-90", children: [
@@ -1225,12 +1272,12 @@ var PartnerLogo = ({
1225
1272
  {
1226
1273
  src: partner.logoLight,
1227
1274
  width: 200,
1228
- height: 100,
1275
+ height: 200,
1229
1276
  alt: partner.logoAlt,
1230
1277
  className: cmMerge8("block", partner.logoDark ? "dark:hidden" : "dark:invert")
1231
1278
  }
1232
1279
  ),
1233
- partner.logoDark ? /* @__PURE__ */ jsx18(Image, { src: partner.logoDark, width: 200, height: 100, alt: partner.logoAlt, className: "hidden dark:block" }) : null
1280
+ partner.logoDark ? /* @__PURE__ */ jsx18(Image, { src: partner.logoDark, width: 200, height: 200, alt: partner.logoAlt, className: "hidden dark:block" }) : null
1234
1281
  ] });
1235
1282
  };
1236
1283
  var AdbarItem = cm5.div`
@@ -1253,11 +1300,13 @@ var AdbarLink = cm5.a`
1253
1300
  var Image = cm5.img`
1254
1301
  mx-auto
1255
1302
  w-24
1303
+ h-auto
1256
1304
  `;
1257
1305
 
1258
1306
  // src/runtime/client/components/TableOfContentsMobile.tsx
1259
1307
  import cm6 from "@classmatejs/react";
1260
1308
  import { TableOfContents as TableOfContents2 } from "lucide-react";
1309
+ import { useId } from "react";
1261
1310
 
1262
1311
  // src/runtime/client/components/BreadcrumbSidebarTrigger.tsx
1263
1312
  import { ChevronLast, ChevronsRight } from "lucide-react";
@@ -1298,9 +1347,9 @@ var BreadcrumbSidebarTrigger = ({ currentHref }) => {
1298
1347
  alert("TODO: Open mobile menu");
1299
1348
  }, []);
1300
1349
  return /* @__PURE__ */ jsx19("button", { className: "cursor-pointer min-w-0 max-w-full hidden md:block", type: "button", onClick: handleClick, children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center gap-1 min-w-0 overflow-hidden lg:hidden", children: [
1301
- /* @__PURE__ */ jsx19(ChevronLast, { className: "w-4 h-4 shrink-0 text-primary" }),
1350
+ /* @__PURE__ */ jsx19(ChevronLast, { className: "size-4 shrink-0 text-primary" }),
1302
1351
  /* @__PURE__ */ jsx19("span", { className: "hidden md:flex items-center gap-1", children: breadcrumbItems.map((item, index) => /* @__PURE__ */ jsxs16("span", { className: "contents", children: [
1303
- index > 0 ? /* @__PURE__ */ jsx19(ChevronsRight, { className: "w-4 h-4 shrink-0 text-base-muted-medium" }) : null,
1352
+ index > 0 ? /* @__PURE__ */ jsx19(ChevronsRight, { className: "size-4 shrink-0 text-base-muted-medium" }) : null,
1304
1353
  /* @__PURE__ */ jsx19("span", { className: index === 0 ? "font-semibold truncate" : "text-sm truncate", children: renderInlineMarkdown(item.title, { codeClassName: "text-sm!" }) })
1305
1354
  ] }, item.id)) })
1306
1355
  ] }) });
@@ -1318,17 +1367,21 @@ var TableOfContentsMobile = ({
1318
1367
  setActiveHeadingId = () => void 0
1319
1368
  }) => {
1320
1369
  const topOptionValue = "__docs-page-top__";
1370
+ const selectId = useId();
1371
+ const labelId = `${selectId}-label`;
1321
1372
  const selectedValue = tableOfContents && headings.some((heading) => heading.id === activeHeadingId) ? activeHeadingId : "";
1322
1373
  return /* @__PURE__ */ jsxs17(Fragment6, { children: [
1323
1374
  /* @__PURE__ */ jsx20("div", { className: "h-12 xl:hidden" }),
1324
1375
  /* @__PURE__ */ jsx20(StyledTOC, { children: /* @__PURE__ */ jsxs17(StyledTOCInner, { children: [
1325
1376
  /* @__PURE__ */ jsx20(BreadcrumbSidebarTrigger_default, { currentHref }),
1326
- /* @__PURE__ */ jsxs17("label", { className: "select select-sm md:w-80 w-full", htmlFor: "table-of-contents-select", children: [
1327
- /* @__PURE__ */ jsx20("span", { className: "label flex", children: /* @__PURE__ */ jsx20(TableOfContents2, { className: "w-4 h-4" }) }),
1377
+ /* @__PURE__ */ jsxs17("label", { className: "select select-sm md:w-80 w-full", htmlFor: selectId, children: [
1378
+ /* @__PURE__ */ jsx20("span", { id: labelId, className: "sr-only", children: pageTitle }),
1379
+ /* @__PURE__ */ jsx20("span", { className: "label flex", "aria-hidden": "true", children: /* @__PURE__ */ jsx20(TableOfContents2, { className: "size-4" }) }),
1328
1380
  /* @__PURE__ */ jsxs17(
1329
1381
  "select",
1330
1382
  {
1331
- id: "table-of-contents-select",
1383
+ id: selectId,
1384
+ "aria-labelledby": labelId,
1332
1385
  value: selectedValue || topOptionValue,
1333
1386
  onChange: (e) => {
1334
1387
  const value = e.target.value;
@@ -1682,4 +1735,4 @@ export {
1682
1735
  DocsLayout,
1683
1736
  DocsPage
1684
1737
  };
1685
- //# sourceMappingURL=chunk-SH5XWPXW.js.map
1738
+ //# sourceMappingURL=chunk-MPERUGQD.js.map