@fumadocs/base-ui 16.17.8 → 16.17.10

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 (247) hide show
  1. package/css/generated/flux.css +1 -1
  2. package/css/generated/glass.css +1 -1
  3. package/css/generated/shared.css +1 -1
  4. package/css/generated/spacious.css +1 -1
  5. package/css/lib/base.css +8 -7
  6. package/dist/.translations/index.d.ts +1 -3
  7. package/dist/.translations/keys.js +1 -2
  8. package/dist/_virtual/_rolldown/runtime.js +1 -2
  9. package/dist/components/accordion.d.ts +1 -3
  10. package/dist/components/accordion.js +1 -2
  11. package/dist/components/banner.d.ts +0 -2
  12. package/dist/components/banner.js +1 -2
  13. package/dist/components/callout.d.ts +1 -3
  14. package/dist/components/callout.js +1 -2
  15. package/dist/components/card.d.ts +1 -3
  16. package/dist/components/card.js +1 -2
  17. package/dist/components/codeblock.d.ts +1 -3
  18. package/dist/components/codeblock.js +1 -2
  19. package/dist/components/codeblock.rsc.d.ts +1 -3
  20. package/dist/components/codeblock.rsc.js +1 -2
  21. package/dist/components/dialog/search-algolia.d.ts +1 -3
  22. package/dist/components/dialog/search-algolia.js +1 -2
  23. package/dist/components/dialog/search-default.d.ts +1 -3
  24. package/dist/components/dialog/search-default.js +1 -2
  25. package/dist/components/dialog/search-orama.d.ts +1 -3
  26. package/dist/components/dialog/search-orama.js +1 -2
  27. package/dist/components/dialog/search.d.ts +0 -2
  28. package/dist/components/dialog/search.js +1 -2
  29. package/dist/components/dynamic-codeblock.core.d.ts +0 -2
  30. package/dist/components/dynamic-codeblock.core.js +1 -2
  31. package/dist/components/dynamic-codeblock.d.ts +1 -3
  32. package/dist/components/dynamic-codeblock.js +1 -2
  33. package/dist/components/files.d.ts +1 -3
  34. package/dist/components/files.js +1 -2
  35. package/dist/components/github-info.d.ts +1 -3
  36. package/dist/components/github-info.js +1 -2
  37. package/dist/components/heading.d.ts +0 -2
  38. package/dist/components/heading.js +1 -2
  39. package/dist/components/image-zoom.d.ts +1 -3
  40. package/dist/components/image-zoom.js +1 -2
  41. package/dist/components/inline-toc.d.ts +1 -3
  42. package/dist/components/inline-toc.js +1 -2
  43. package/dist/components/sidebar/base.d.ts +0 -1
  44. package/dist/components/sidebar/base.js +5 -3
  45. package/dist/components/sidebar/link-item.d.ts +0 -2
  46. package/dist/components/sidebar/link-item.js +1 -2
  47. package/dist/components/sidebar/page-tree.d.ts +0 -2
  48. package/dist/components/sidebar/page-tree.js +1 -2
  49. package/dist/components/sidebar/tabs/dropdown.d.ts +1 -3
  50. package/dist/components/sidebar/tabs/dropdown.js +1 -2
  51. package/dist/components/sidebar/tabs/index.d.ts +1 -3
  52. package/dist/components/sidebar/tabs/index.js +1 -2
  53. package/dist/components/steps.d.ts +1 -3
  54. package/dist/components/steps.js +1 -2
  55. package/dist/components/tabs.d.ts +1 -3
  56. package/dist/components/tabs.js +1 -2
  57. package/dist/components/toc/block.d.ts +1 -3
  58. package/dist/components/toc/block.js +6 -13
  59. package/dist/components/toc/clerk.d.ts +2 -4
  60. package/dist/components/toc/clerk.js +85 -120
  61. package/dist/components/toc/default.d.ts +2 -4
  62. package/dist/components/toc/default.js +112 -149
  63. package/dist/components/toc/index.d.ts +1 -3
  64. package/dist/components/toc/index.js +1 -2
  65. package/dist/components/type-table.d.ts +1 -3
  66. package/dist/components/type-table.js +1 -2
  67. package/dist/components/ui/accordion.d.ts +1 -3
  68. package/dist/components/ui/accordion.js +1 -2
  69. package/dist/components/ui/button.d.ts +1 -3
  70. package/dist/components/ui/button.js +1 -2
  71. package/dist/components/ui/collapsible.d.ts +1 -3
  72. package/dist/components/ui/collapsible.js +1 -2
  73. package/dist/components/ui/popover.d.ts +1 -3
  74. package/dist/components/ui/popover.js +1 -2
  75. package/dist/components/ui/tabs.d.ts +1 -3
  76. package/dist/components/ui/tabs.js +1 -2
  77. package/dist/contexts/i18n.d.ts +0 -2
  78. package/dist/contexts/i18n.js +1 -2
  79. package/dist/contexts/search.d.ts +0 -2
  80. package/dist/contexts/search.js +1 -2
  81. package/dist/contexts/tree.d.ts +0 -2
  82. package/dist/contexts/tree.js +1 -2
  83. package/dist/i18n.d.ts +0 -2
  84. package/dist/i18n.js +1 -2
  85. package/dist/layouts/docs/client.d.ts +0 -2
  86. package/dist/layouts/docs/client.js +1 -2
  87. package/dist/layouts/docs/index.d.ts +0 -2
  88. package/dist/layouts/docs/index.js +1 -2
  89. package/dist/layouts/docs/page/index.d.ts +0 -2
  90. package/dist/layouts/docs/page/index.js +1 -2
  91. package/dist/layouts/docs/page/slots/breadcrumb.d.ts +1 -3
  92. package/dist/layouts/docs/page/slots/breadcrumb.js +1 -2
  93. package/dist/layouts/docs/page/slots/container.d.ts +1 -3
  94. package/dist/layouts/docs/page/slots/container.js +1 -2
  95. package/dist/layouts/docs/page/slots/footer.d.ts +0 -2
  96. package/dist/layouts/docs/page/slots/footer.js +1 -2
  97. package/dist/layouts/docs/page/slots/toc.d.ts +1 -3
  98. package/dist/layouts/docs/page/slots/toc.js +1 -2
  99. package/dist/layouts/docs/slots/container.d.ts +1 -3
  100. package/dist/layouts/docs/slots/container.js +1 -2
  101. package/dist/layouts/docs/slots/header.d.ts +1 -3
  102. package/dist/layouts/docs/slots/header.js +1 -2
  103. package/dist/layouts/docs/slots/sidebar.d.ts +1 -3
  104. package/dist/layouts/docs/slots/sidebar.js +5 -9
  105. package/dist/layouts/flux/index.d.ts +0 -2
  106. package/dist/layouts/flux/index.js +1 -2
  107. package/dist/layouts/flux/page/index.d.ts +0 -2
  108. package/dist/layouts/flux/page/index.js +1 -2
  109. package/dist/layouts/flux/page/slots/breadcrumb.d.ts +1 -3
  110. package/dist/layouts/flux/page/slots/breadcrumb.js +1 -2
  111. package/dist/layouts/flux/page/slots/container.d.ts +1 -3
  112. package/dist/layouts/flux/page/slots/container.js +1 -2
  113. package/dist/layouts/flux/page/slots/footer.d.ts +0 -2
  114. package/dist/layouts/flux/page/slots/footer.js +1 -2
  115. package/dist/layouts/flux/page/slots/toc.d.ts +1 -3
  116. package/dist/layouts/flux/page/slots/toc.js +1 -2
  117. package/dist/layouts/flux/slots/container.d.ts +1 -3
  118. package/dist/layouts/flux/slots/container.js +1 -2
  119. package/dist/layouts/flux/slots/sidebar.d.ts +1 -3
  120. package/dist/layouts/flux/slots/sidebar.js +1 -2
  121. package/dist/layouts/flux/slots/tab-dropdown.d.ts +1 -3
  122. package/dist/layouts/flux/slots/tab-dropdown.js +1 -2
  123. package/dist/layouts/glass/index.d.ts +0 -2
  124. package/dist/layouts/glass/index.js +1 -2
  125. package/dist/layouts/glass/layout-tabs.js +1 -2
  126. package/dist/layouts/glass/page/index.d.ts +0 -2
  127. package/dist/layouts/glass/page/index.js +1 -2
  128. package/dist/layouts/glass/page/slots/breadcrumb.d.ts +1 -3
  129. package/dist/layouts/glass/page/slots/breadcrumb.js +1 -2
  130. package/dist/layouts/glass/page/slots/footer.d.ts +0 -2
  131. package/dist/layouts/glass/page/slots/footer.js +1 -2
  132. package/dist/layouts/glass/page/slots/toc.d.ts +1 -3
  133. package/dist/layouts/glass/page/slots/toc.js +1 -2
  134. package/dist/layouts/glass/slots/header.d.ts +1 -3
  135. package/dist/layouts/glass/slots/header.js +1 -2
  136. package/dist/layouts/glass/slots/sidebar.d.ts +1 -3
  137. package/dist/layouts/glass/slots/sidebar.js +7 -5
  138. package/dist/layouts/home/index.d.ts +0 -2
  139. package/dist/layouts/home/index.js +1 -2
  140. package/dist/layouts/home/navbar.d.ts +1 -3
  141. package/dist/layouts/home/navbar.js +1 -2
  142. package/dist/layouts/home/not-found.d.ts +1 -3
  143. package/dist/layouts/home/not-found.js +1 -2
  144. package/dist/layouts/home/slots/container.d.ts +1 -3
  145. package/dist/layouts/home/slots/container.js +1 -2
  146. package/dist/layouts/home/slots/header.d.ts +1 -3
  147. package/dist/layouts/home/slots/header.js +1 -2
  148. package/dist/layouts/notebook/client.d.ts +0 -2
  149. package/dist/layouts/notebook/client.js +1 -2
  150. package/dist/layouts/notebook/index.d.ts +0 -2
  151. package/dist/layouts/notebook/index.js +1 -2
  152. package/dist/layouts/notebook/page/index.d.ts +0 -2
  153. package/dist/layouts/notebook/page/index.js +1 -2
  154. package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +1 -3
  155. package/dist/layouts/notebook/page/slots/breadcrumb.js +1 -2
  156. package/dist/layouts/notebook/page/slots/container.d.ts +1 -3
  157. package/dist/layouts/notebook/page/slots/container.js +1 -2
  158. package/dist/layouts/notebook/page/slots/footer.d.ts +0 -2
  159. package/dist/layouts/notebook/page/slots/footer.js +1 -2
  160. package/dist/layouts/notebook/page/slots/toc.d.ts +1 -3
  161. package/dist/layouts/notebook/page/slots/toc.js +1 -2
  162. package/dist/layouts/notebook/slots/container.d.ts +1 -3
  163. package/dist/layouts/notebook/slots/container.js +1 -2
  164. package/dist/layouts/notebook/slots/header.d.ts +1 -3
  165. package/dist/layouts/notebook/slots/header.js +1 -2
  166. package/dist/layouts/notebook/slots/sidebar.d.ts +0 -2
  167. package/dist/layouts/notebook/slots/sidebar.js +5 -9
  168. package/dist/layouts/shared/client.d.ts +1 -3
  169. package/dist/layouts/shared/client.js +1 -2
  170. package/dist/layouts/shared/index.d.ts +0 -2
  171. package/dist/layouts/shared/index.js +1 -2
  172. package/dist/layouts/shared/page-actions.d.ts +1 -3
  173. package/dist/layouts/shared/page-actions.js +1 -2
  174. package/dist/layouts/shared/slots/language-select.d.ts +1 -3
  175. package/dist/layouts/shared/slots/language-select.js +1 -2
  176. package/dist/layouts/shared/slots/search-trigger.d.ts +1 -3
  177. package/dist/layouts/shared/slots/search-trigger.js +1 -2
  178. package/dist/layouts/shared/slots/theme-switch.d.ts +1 -3
  179. package/dist/layouts/shared/slots/theme-switch.js +1 -2
  180. package/dist/layouts/spacious/index.d.ts +0 -2
  181. package/dist/layouts/spacious/index.js +1 -2
  182. package/dist/layouts/spacious/page/index.d.ts +0 -2
  183. package/dist/layouts/spacious/page/index.js +1 -2
  184. package/dist/layouts/spacious/page/slots/breadcrumb.d.ts +1 -3
  185. package/dist/layouts/spacious/page/slots/breadcrumb.js +1 -2
  186. package/dist/layouts/spacious/page/slots/footer.d.ts +0 -2
  187. package/dist/layouts/spacious/page/slots/footer.js +1 -2
  188. package/dist/layouts/spacious/page/slots/toc.d.ts +0 -2
  189. package/dist/layouts/spacious/page/slots/toc.js +1 -2
  190. package/dist/layouts/spacious/slots/actions.d.ts +1 -3
  191. package/dist/layouts/spacious/slots/actions.js +1 -2
  192. package/dist/layouts/spacious/slots/header.d.ts +1 -3
  193. package/dist/layouts/spacious/slots/header.js +1 -2
  194. package/dist/layouts/spacious/slots/sidebar.d.ts +1 -3
  195. package/dist/layouts/spacious/slots/sidebar.js +21 -25
  196. package/dist/mdx.d.ts +0 -2
  197. package/dist/mdx.js +1 -2
  198. package/dist/mdx.server.d.ts +0 -2
  199. package/dist/mdx.server.js +1 -2
  200. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/controlled.d.ts +0 -2
  201. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/controlled.js +1 -2
  202. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +1 -3
  203. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/uncontrolled.js +1 -2
  204. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js +1 -2
  205. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js +1 -2
  206. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/element-tests.js +1 -2
  207. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js +1 -2
  208. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js +1 -2
  209. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js +1 -2
  210. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js +1 -2
  211. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js +1 -2
  212. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js +1 -2
  213. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-scale.js +1 -2
  214. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js +1 -2
  215. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js +1 -2
  216. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js +1 -2
  217. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/parse-position.js +1 -2
  218. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js +1 -2
  219. package/dist/og/takumi.d.ts +1 -3
  220. package/dist/og/takumi.js +1 -2
  221. package/dist/og.d.ts +0 -2
  222. package/dist/og.js +1 -2
  223. package/dist/page.d.ts +0 -2
  224. package/dist/page.js +1 -2
  225. package/dist/provider/astro.d.ts +1 -3
  226. package/dist/provider/astro.js +17 -2
  227. package/dist/provider/base.d.ts +0 -2
  228. package/dist/provider/base.js +1 -2
  229. package/dist/provider/next.d.ts +1 -3
  230. package/dist/provider/next.js +1 -2
  231. package/dist/provider/react-router.d.ts +1 -3
  232. package/dist/provider/react-router.js +1 -2
  233. package/dist/provider/tanstack.d.ts +1 -3
  234. package/dist/provider/tanstack.js +1 -2
  235. package/dist/provider/waku.d.ts +1 -3
  236. package/dist/provider/waku.js +1 -2
  237. package/dist/style.css +21 -24
  238. package/dist/utils/hotkey.js +1 -2
  239. package/dist/utils/merge-refs.js +1 -2
  240. package/dist/utils/urls.js +1 -2
  241. package/dist/utils/use-copy-button.d.ts +1 -3
  242. package/dist/utils/use-copy-button.js +1 -2
  243. package/dist/utils/use-footer-items.d.ts +1 -3
  244. package/dist/utils/use-footer-items.js +1 -2
  245. package/dist/utils/use-is-scroll-top.d.ts +1 -3
  246. package/dist/utils/use-is-scroll-top.js +1 -2
  247. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js
1
+ // ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js
2
2
  const getModalImgTransform = ({ height, initialTransform, isZoomed, left, top, userTransform, width }) => {
3
3
  let centeredUserTransform = "";
4
4
  if (userTransform !== "none" && userTransform !== "") {
@@ -18,5 +18,4 @@ const getModalImgTransform = ({ height, initialTransform, isZoomed, left, top, u
18
18
  if (centeredUserTransform === "") return base;
19
19
  return `${base} ${centeredUserTransform}`;
20
20
  };
21
- //#endregion
22
21
  export { getModalImgTransform };
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-scale.js
1
+ // ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-scale.js
2
2
  const getScaleToWindow = ({ height, offset, width }) => Math.min((window.innerWidth - offset * 2) / width, (window.innerHeight - offset * 2) / height);
3
3
  const getScaleToWindowMax = ({ containerHeight, containerWidth, offset, targetHeight, targetWidth }) => {
4
4
  const scale = getScaleToWindow({
@@ -23,5 +23,4 @@ const getScale = ({ containerHeight, containerWidth, hasScalableSrc, offset, tar
23
23
  width: containerWidth
24
24
  });
25
25
  };
26
- //#endregion
27
26
  export { getScale };
@@ -1,5 +1,5 @@
1
1
  import { testSvg } from "./element-tests.js";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js
2
+ // ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js
3
3
  const getStyleGhost = (imgEl) => {
4
4
  if (imgEl == null) return {};
5
5
  if (testSvg(imgEl)) {
@@ -27,5 +27,4 @@ const getStyleGhost = (imgEl) => {
27
27
  top: imgEl.offsetTop
28
28
  };
29
29
  };
30
- //#endregion
31
30
  export { getStyleGhost };
@@ -5,7 +5,7 @@ import { getDivImgStyle } from "./get-div-img-style.js";
5
5
  import { getModalImgTransform } from "./get-modal-img-transform.js";
6
6
  import { getTargetDimension } from "./get-target-dimension.js";
7
7
  import { testHasScalableSrc } from "./test-has-scalable-src.js";
8
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js
8
+ // ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js
9
9
  const getStyleModalImg = ({ hasZoomImg, imgSrc, isSvg, isZoomed, loadedImgEl, offset, shouldRefresh, targetEl }) => {
10
10
  const hasScalableSrc = testHasScalableSrc({
11
11
  hasZoomImg,
@@ -71,5 +71,4 @@ const getStyleModalImg = ({ hasZoomImg, imgSrc, isSvg, isZoomed, loadedImgEl, of
71
71
  if (isZoomed && shouldRefresh) result.transitionDuration = "0.01ms";
72
72
  return result;
73
73
  };
74
- //#endregion
75
74
  export { getStyleModalImg };
@@ -1,4 +1,3 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js
1
+ // ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js
2
2
  const getTargetDimension = ({ fallback, natural }) => natural !== void 0 && natural !== 0 ? natural : fallback;
3
- //#endregion
4
3
  export { getTargetDimension };
@@ -1,7 +1,6 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/parse-position.js
1
+ // ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/parse-position.js
2
2
  const parsePosition = (position, relativeNum) => {
3
3
  const positionNum = parseFloat(position);
4
4
  return position.endsWith("%") ? relativeNum * positionNum / 100 : positionNum;
5
5
  };
6
- //#endregion
7
6
  export { parsePosition };
@@ -1,5 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js
1
+ // ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js
2
2
  const SRC_SVG_REGEX = /\.svg$/i;
3
3
  const testHasScalableSrc = ({ hasZoomImg, imgSrc, isSvg }) => isSvg || imgSrc?.slice(0, 18) === "data:image/svg+xml" || hasZoomImg || imgSrc !== void 0 && SRC_SVG_REGEX.test(imgSrc);
4
- //#endregion
5
4
  export { testHasScalableSrc };
@@ -1,6 +1,5 @@
1
1
  import { ReactNode } from "react";
2
2
  import { ImageResponse, ImageResponseOptions } from "takumi-js/response";
3
- //#region src/og/takumi.d.ts
4
3
  export interface GenerateProps {
5
4
  title: ReactNode;
6
5
  description?: ReactNode;
@@ -10,5 +9,4 @@ export interface GenerateProps {
10
9
  site?: ReactNode;
11
10
  }
12
11
  export declare function generateOGImage(options: GenerateProps & ImageResponseOptions): ImageResponse;
13
- export declare function generate({ primaryColor, primaryTextColor, icon, ...props }: GenerateProps): import("react").JSX.Element;
14
- //#endregion
12
+ export declare function generate({ primaryColor, primaryTextColor, icon, ...props }: GenerateProps): import("react").JSX.Element;
package/dist/og/takumi.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { ImageResponse } from "takumi-js/response";
3
- //#region src/og/takumi.tsx
3
+ // src/og/takumi.tsx
4
4
  function generateOGImage(options) {
5
5
  const { title, description, icon, site, primaryColor, primaryTextColor, ...rest } = options;
6
6
  return new ImageResponse(generate({
@@ -87,5 +87,4 @@ function generate({ primaryColor = "rgba(255,150,255,0.3)", primaryTextColor = "
87
87
  ]
88
88
  });
89
89
  }
90
- //#endregion
91
90
  export { generate, generateOGImage };
package/dist/og.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from "react";
2
2
  import { ImageResponse } from "next/og";
3
3
  import { ImageResponseOptions } from "next/dist/compiled/@vercel/og/types";
4
- //#region src/og.d.ts
5
4
  interface GenerateProps {
6
5
  title: ReactNode;
7
6
  description?: ReactNode;
@@ -12,5 +11,4 @@ interface GenerateProps {
12
11
  }
13
12
  export declare function generateOGImage(options: GenerateProps & ImageResponseOptions): ImageResponse;
14
13
  export declare function generate({ primaryColor, primaryTextColor, icon, ...props }: GenerateProps): import("react").JSX.Element;
15
- //#endregion
16
14
  export {};
package/dist/og.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { ImageResponse } from "next/og";
3
- //#region src/og.tsx
3
+ // src/og.tsx
4
4
  function generateOGImage(options) {
5
5
  const { title, description, icon, site, primaryColor, primaryTextColor, ...rest } = options;
6
6
  return new ImageResponse(generate({
@@ -87,5 +87,4 @@ function generate({ primaryColor = "rgba(255,150,255,0.3)", primaryTextColor = "
87
87
  ]
88
88
  });
89
89
  }
90
- //#endregion
91
90
  export { generate, generateOGImage };
package/dist/page.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { Breadcrumb } from "./layouts/docs/page/slots/breadcrumb.js";
2
2
  import { DocsBody, DocsDescription, DocsPageProps as DocsPageProps$1, DocsTitle, EditOnGitHub, PageLastUpdate } from "./layouts/docs/page/index.js";
3
3
  import { ComponentProps } from "react";
4
- //#region src/page.d.ts
5
4
  interface EditOnGitHubOptions extends Omit<ComponentProps<'a'>, 'href' | 'children'> {
6
5
  owner: string;
7
6
  repo: string;
@@ -25,5 +24,4 @@ export interface DocsPageProps extends DocsPageProps$1 {
25
24
  */
26
25
  export declare function withArticle(props: ComponentProps<'main'>): import("react").JSX.Element;
27
26
  export declare function DocsPage({ lastUpdate, editOnGithub, children, ...props }: DocsPageProps): import("react").JSX.Element;
28
- //#endregion
29
27
  export { DocsBody, DocsDescription, DocsTitle, EditOnGitHub, Breadcrumb as PageBreadcrumb, PageLastUpdate };
package/dist/page.js CHANGED
@@ -5,7 +5,7 @@ import { Breadcrumb } from "./layouts/docs/page/slots/breadcrumb.js";
5
5
  import { DocsBody, DocsDescription, DocsTitle, EditOnGitHub, PageLastUpdate, page_exports } from "./layouts/docs/page/index.js";
6
6
  import { page_exports as page_exports$1 } from "./layouts/notebook/page/index.js";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- //#region src/page.tsx
8
+ // src/page.tsx
9
9
  /**
10
10
  * For separate MDX page
11
11
  */
@@ -29,5 +29,4 @@ function DocsPage({ lastUpdate, editOnGithub, children, ...props }) {
29
29
  })]
30
30
  });
31
31
  }
32
- //#endregion
33
32
  export { DocsBody, DocsDescription, DocsPage, DocsTitle, EditOnGitHub, Breadcrumb as PageBreadcrumb, PageLastUpdate, withArticle };
@@ -2,7 +2,6 @@ import { RootProvider as RootProvider$1 } from "./base.js";
2
2
  import { Framework } from "fumadocs-core/framework";
3
3
  import { ComponentProps } from "react";
4
4
  import { AstroProviderProps } from "fumadocs-core/framework/astro";
5
- //#region src/provider/astro.d.ts
6
5
  export interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
7
6
  /**
8
7
  * The current Astro pathname, usually `Astro.url.pathname`.
@@ -24,5 +23,4 @@ export interface RootProviderProps extends ComponentProps<typeof RootProvider$1>
24
23
  Image?: Framework['Image'];
25
24
  };
26
25
  }
27
- export declare function RootProvider({ components, pathname, params, navigate, ...props }: RootProviderProps): import("react").JSX.Element;
28
- //#endregion
26
+ export declare function RootProvider({ components, pathname, params, navigate, ...props }: RootProviderProps): import("react").JSX.Element;
@@ -1,9 +1,25 @@
1
1
  "use client";
2
2
  import { RootProvider as RootProvider$1 } from "./base.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
+ import { useEffect, useEffectEvent } from "react";
4
5
  import { AstroProvider } from "fumadocs-core/framework/astro";
5
- //#region src/provider/astro.tsx
6
+ // src/provider/astro.tsx
6
7
  function RootProvider({ components, pathname, params, navigate, ...props }) {
8
+ const onBeforeSwap = useEffectEvent((next) => {
9
+ const { enabled, attribute = "class" } = props.theme ?? {};
10
+ if (enabled === false) return;
11
+ const current = document.documentElement;
12
+ for (const name of Array.isArray(attribute) ? attribute : [attribute]) {
13
+ const value = current.getAttribute(name);
14
+ if (value !== null) next.setAttribute(name, value);
15
+ }
16
+ next.style.colorScheme = current.style.colorScheme;
17
+ });
18
+ useEffect(() => {
19
+ const listener = (event) => onBeforeSwap(event.newDocument.documentElement);
20
+ document.addEventListener("astro:before-swap", listener);
21
+ return () => document.removeEventListener("astro:before-swap", listener);
22
+ }, []);
7
23
  return /* @__PURE__ */ jsx(AstroProvider, {
8
24
  pathname,
9
25
  params,
@@ -16,5 +32,4 @@ function RootProvider({ components, pathname, params, navigate, ...props }) {
16
32
  })
17
33
  });
18
34
  }
19
- //#endregion
20
35
  export { RootProvider };
@@ -2,7 +2,6 @@ import { SearchProviderProps } from "../contexts/search.js";
2
2
  import { I18nProviderProps } from "../contexts/i18n.js";
3
3
  import { ReactNode } from "react";
4
4
  import { ThemeProviderProps, UseThemeProps, useTheme } from "next-themes";
5
- //#region src/provider/base.d.ts
6
5
  interface SearchOptions extends Omit<SearchProviderProps, 'children'> {
7
6
  /**
8
7
  * Enable search functionality
@@ -44,5 +43,4 @@ export interface RootProviderProps {
44
43
  children?: ReactNode;
45
44
  }
46
45
  export declare function RootProvider({ children, dir, theme, search, i18n }: RootProviderProps): import("react").JSX.Element;
47
- //#endregion
48
46
  export { type UseThemeProps, useTheme };
@@ -6,7 +6,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { ThemeProvider, useTheme, useTheme as useTheme$1 } from "next-themes";
7
7
  import { flushSync } from "react-dom";
8
8
  import { DirectionProvider } from "@base-ui/react/direction-provider";
9
- //#region src/provider/base.tsx
9
+ // src/provider/base.tsx
10
10
  /**
11
11
  * Toggle between light/dark mode with a hotkey, must be placed under `next-themes` provider.
12
12
  */
@@ -47,5 +47,4 @@ function RootProvider({ children, dir = "ltr", theme = {}, search, i18n }) {
47
47
  children: body
48
48
  });
49
49
  }
50
- //#endregion
51
50
  export { RootProvider, useTheme };
@@ -1,7 +1,6 @@
1
1
  import { RootProvider as RootProvider$1 } from "./base.js";
2
2
  import { Framework } from "fumadocs-core/framework";
3
3
  import { ComponentProps } from "react";
4
- //#region src/provider/next.d.ts
5
4
  export interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
6
5
  /**
7
6
  * Custom framework components to override Next.js defaults
@@ -11,5 +10,4 @@ export interface RootProviderProps extends ComponentProps<typeof RootProvider$1>
11
10
  Image?: Framework['Image'];
12
11
  };
13
12
  }
14
- export declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
15
- //#endregion
13
+ export declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
@@ -2,7 +2,7 @@
2
2
  import { RootProvider as RootProvider$1 } from "./base.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { NextProvider } from "fumadocs-core/framework/next";
5
- //#region src/provider/next.tsx
5
+ // src/provider/next.tsx
6
6
  function RootProvider({ components, ...props }) {
7
7
  return /* @__PURE__ */ jsx(NextProvider, {
8
8
  Link: components?.Link,
@@ -13,5 +13,4 @@ function RootProvider({ components, ...props }) {
13
13
  })
14
14
  });
15
15
  }
16
- //#endregion
17
16
  export { RootProvider };
@@ -1,7 +1,6 @@
1
1
  import { RootProvider as RootProvider$1 } from "./base.js";
2
2
  import { Framework } from "fumadocs-core/framework";
3
3
  import { ComponentProps } from "react";
4
- //#region src/provider/react-router.d.ts
5
4
  export interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
6
5
  /**
7
6
  * Custom framework components to override React Router defaults
@@ -11,5 +10,4 @@ export interface RootProviderProps extends ComponentProps<typeof RootProvider$1>
11
10
  Image?: Framework['Image'];
12
11
  };
13
12
  }
14
- export declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
15
- //#endregion
13
+ export declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
@@ -2,7 +2,7 @@
2
2
  import { RootProvider as RootProvider$1 } from "./base.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { ReactRouterProvider } from "fumadocs-core/framework/react-router";
5
- //#region src/provider/react-router.tsx
5
+ // src/provider/react-router.tsx
6
6
  function RootProvider({ components, ...props }) {
7
7
  return /* @__PURE__ */ jsx(ReactRouterProvider, {
8
8
  Link: components?.Link,
@@ -13,5 +13,4 @@ function RootProvider({ components, ...props }) {
13
13
  })
14
14
  });
15
15
  }
16
- //#endregion
17
16
  export { RootProvider };
@@ -1,7 +1,6 @@
1
1
  import { RootProvider as RootProvider$1 } from "./base.js";
2
2
  import { Framework } from "fumadocs-core/framework";
3
3
  import { ComponentProps } from "react";
4
- //#region src/provider/tanstack.d.ts
5
4
  export interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
6
5
  /**
7
6
  * Custom framework components to override Tanstack Router defaults
@@ -11,5 +10,4 @@ export interface RootProviderProps extends ComponentProps<typeof RootProvider$1>
11
10
  Image?: Framework['Image'];
12
11
  };
13
12
  }
14
- export declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
15
- //#endregion
13
+ export declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
@@ -2,7 +2,7 @@
2
2
  import { RootProvider as RootProvider$1 } from "./base.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { TanstackProvider } from "fumadocs-core/framework/tanstack";
5
- //#region src/provider/tanstack.tsx
5
+ // src/provider/tanstack.tsx
6
6
  function RootProvider({ components, ...props }) {
7
7
  return /* @__PURE__ */ jsx(TanstackProvider, {
8
8
  Link: components?.Link,
@@ -13,5 +13,4 @@ function RootProvider({ components, ...props }) {
13
13
  })
14
14
  });
15
15
  }
16
- //#endregion
17
16
  export { RootProvider };
@@ -1,7 +1,6 @@
1
1
  import { RootProvider as RootProvider$1 } from "./base.js";
2
2
  import { Framework } from "fumadocs-core/framework";
3
3
  import { ComponentProps } from "react";
4
- //#region src/provider/waku.d.ts
5
4
  export interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
6
5
  /**
7
6
  * Custom framework components to override Waku defaults
@@ -11,5 +10,4 @@ export interface RootProviderProps extends ComponentProps<typeof RootProvider$1>
11
10
  Image?: Framework['Image'];
12
11
  };
13
12
  }
14
- export declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
15
- //#endregion
13
+ export declare function RootProvider({ components, ...props }: RootProviderProps): import("react").JSX.Element;
@@ -2,7 +2,7 @@
2
2
  import { RootProvider as RootProvider$1 } from "./base.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { WakuProvider } from "fumadocs-core/framework/waku";
5
- //#region src/provider/waku.tsx
5
+ // src/provider/waku.tsx
6
6
  function RootProvider({ components, ...props }) {
7
7
  return /* @__PURE__ */ jsx(WakuProvider, {
8
8
  Link: components?.Link,
@@ -13,5 +13,4 @@ function RootProvider({ components, ...props }) {
13
13
  })
14
14
  });
15
15
  }
16
- //#endregion
17
16
  export { RootProvider };
package/dist/style.css CHANGED
@@ -901,7 +901,7 @@
901
901
  :where(th:first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
902
902
  border-inline-start: none;
903
903
  }
904
- :where(th:not(tr:last-child *), td:not(tr:last-child *)):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
904
+ :where(th:not(tr:last-child > th), td:not(tr:last-child > td)):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
905
905
  border-bottom: 1px solid var(--color-fd-border);
906
906
  }
907
907
  :where(td):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
@@ -2250,9 +2250,6 @@
2250
2250
  .underline {
2251
2251
  text-decoration-line: underline;
2252
2252
  }
2253
- .opacity-\(--opacity\,0\) {
2254
- opacity: var(--opacity,0);
2255
- }
2256
2253
  .opacity-0 {
2257
2254
  opacity: 0%;
2258
2255
  }
@@ -2589,6 +2586,9 @@
2589
2586
  .\[clip-path\:inset\(0_0_100\%\)\] {
2590
2587
  clip-path: inset(0 0 100%);
2591
2588
  }
2589
+ .\[clip-path\:polygon\(0_0\,100\%_0\,100\%_0\,0_0\)\] {
2590
+ clip-path: polygon(0 0,100% 0,100% 0,0 0);
2591
+ }
2592
2592
  .\[grid-area\:header\] {
2593
2593
  grid-area: header;
2594
2594
  }
@@ -2619,9 +2619,6 @@
2619
2619
  .\[grid-area\:toc\] {
2620
2620
  grid-area: toc;
2621
2621
  }
2622
- .\[offset-distance\:var\(--offset-distance\,0\)\] {
2623
- offset-distance: var(--offset-distance,0);
2624
- }
2625
2622
  .\[transition\:--fd-sidebar-col_150ms\,--fd-ai-chat-col_300ms_ease-in-out\] {
2626
2623
  transition: --fd-sidebar-col 150ms,--fd-ai-chat-col 300ms ease-in-out;
2627
2624
  }
@@ -3728,64 +3725,64 @@
3728
3725
  overflow: visible;
3729
3726
  }
3730
3727
  }
3731
- #nd-docs-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-notebook-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-home-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-flux-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #fd-glass-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #fd-spacious-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]) {
3728
+ #nd-docs-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-notebook-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-home-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-flux-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #fd-glass-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #fd-spacious-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\], > * > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\], > * > * > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]) {
3732
3729
  --fd-ai-chat-width: min(calc(var(--spacing) * 100), 100vw - calc(var(--spacing) * 4));
3733
3730
  }
3734
- #nd-docs-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-notebook-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-home-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-flux-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-glass-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-spacious-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]) {
3731
+ #nd-docs-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-notebook-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-home-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-flux-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-glass-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-spacious-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\], > * > .layout\:\[--fd-header-height\:--spacing\(14\)\], > * > * > .layout\:\[--fd-header-height\:--spacing\(14\)\]) {
3735
3732
  --fd-header-height: calc(var(--spacing) * 14);
3736
3733
  }
3737
- #nd-docs-layout:has(.layout\:\[--fd-main-width\:1200px\]), #nd-notebook-layout:has(.layout\:\[--fd-main-width\:1200px\]), #nd-home-layout:has(.layout\:\[--fd-main-width\:1200px\]), #nd-flux-layout:has(.layout\:\[--fd-main-width\:1200px\]), #fd-glass-layout:has(.layout\:\[--fd-main-width\:1200px\]), #fd-spacious-layout:has(.layout\:\[--fd-main-width\:1200px\]) {
3734
+ #nd-docs-layout:has( > .layout\:\[--fd-main-width\:1200px\]), #nd-notebook-layout:has( > .layout\:\[--fd-main-width\:1200px\]), #nd-home-layout:has( > .layout\:\[--fd-main-width\:1200px\]), #nd-flux-layout:has( > .layout\:\[--fd-main-width\:1200px\]), #fd-glass-layout:has( > .layout\:\[--fd-main-width\:1200px\]), #fd-spacious-layout:has( > .layout\:\[--fd-main-width\:1200px\], > * > .layout\:\[--fd-main-width\:1200px\], > * > * > .layout\:\[--fd-main-width\:1200px\]) {
3738
3735
  --fd-main-width: 1200px;
3739
3736
  }
3740
- #nd-docs-layout:has(.layout\:\[--fd-page-width\:1200px\]), #nd-notebook-layout:has(.layout\:\[--fd-page-width\:1200px\]), #nd-home-layout:has(.layout\:\[--fd-page-width\:1200px\]), #nd-flux-layout:has(.layout\:\[--fd-page-width\:1200px\]), #fd-glass-layout:has(.layout\:\[--fd-page-width\:1200px\]), #fd-spacious-layout:has(.layout\:\[--fd-page-width\:1200px\]) {
3737
+ #nd-docs-layout:has( > .layout\:\[--fd-page-width\:1200px\]), #nd-notebook-layout:has( > .layout\:\[--fd-page-width\:1200px\]), #nd-home-layout:has( > .layout\:\[--fd-page-width\:1200px\]), #nd-flux-layout:has( > .layout\:\[--fd-page-width\:1200px\]), #fd-glass-layout:has( > .layout\:\[--fd-page-width\:1200px\]), #fd-spacious-layout:has( > .layout\:\[--fd-page-width\:1200px\], > * > .layout\:\[--fd-page-width\:1200px\], > * > * > .layout\:\[--fd-page-width\:1200px\]) {
3741
3738
  --fd-page-width: 1200px;
3742
3739
  }
3743
- #nd-docs-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-notebook-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-home-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-flux-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]), #fd-glass-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]), #fd-spacious-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]) {
3740
+ #nd-docs-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-notebook-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-home-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-flux-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\]), #fd-glass-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\]), #fd-spacious-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\], > * > .layout\:\[--fd-toc-width\:--spacing\(76\)\], > * > * > .layout\:\[--fd-toc-width\:--spacing\(76\)\]) {
3744
3741
  --fd-toc-width: calc(var(--spacing) * 76);
3745
3742
  }
3746
3743
  @media (width < 80rem) {
3747
- #nd-docs-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-notebook-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-home-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-flux-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-glass-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-spacious-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]) {
3744
+ #nd-docs-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-notebook-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-home-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-flux-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-glass-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-spacious-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\], > * > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\], > * > * > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]) {
3748
3745
  --fd-toc-popover-height: calc(var(--spacing) * 10);
3749
3746
  }
3750
3747
  }
3751
3748
  @media (width < 48rem) {
3752
- #nd-docs-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-notebook-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-home-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-flux-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-glass-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-spacious-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]) {
3749
+ #nd-docs-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-notebook-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-home-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-flux-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-glass-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-spacious-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\], > * > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\], > * > * > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]) {
3753
3750
  --fd-header-height: calc(var(--spacing) * 14);
3754
3751
  }
3755
- #nd-docs-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-notebook-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-home-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-flux-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-glass-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-spacious-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]) {
3752
+ #nd-docs-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-notebook-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-home-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-flux-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-glass-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-spacious-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\], > * > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\], > * > * > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]) {
3756
3753
  --fd-toc-popover-height: calc(var(--spacing) * 10);
3757
3754
  }
3758
3755
  }
3759
3756
  @media (width >= 48rem) {
3760
- #nd-docs-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-home-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-flux-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #fd-glass-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]) {
3757
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-home-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\], > * > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\], > * > * > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]) {
3761
3758
  --fd-header-height: calc(var(--spacing) * 12);
3762
3759
  }
3763
- #nd-docs-layout:has(.md\:layout\:\[--fd-left-width\:0px\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-left-width\:0px\]), #nd-home-layout:has(.md\:layout\:\[--fd-left-width\:0px\]), #nd-flux-layout:has(.md\:layout\:\[--fd-left-width\:0px\]), #fd-glass-layout:has(.md\:layout\:\[--fd-left-width\:0px\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-left-width\:0px\]) {
3760
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-left-width\:0px\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-left-width\:0px\]), #nd-home-layout:has( > .md\:layout\:\[--fd-left-width\:0px\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-left-width\:0px\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-left-width\:0px\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-left-width\:0px\], > * > .md\:layout\:\[--fd-left-width\:0px\], > * > * > .md\:layout\:\[--fd-left-width\:0px\]) {
3764
3761
  --fd-left-width: 0px;
3765
3762
  }
3766
- #nd-docs-layout:has(.md\:layout\:\[--fd-left-width\:280px\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-left-width\:280px\]), #nd-home-layout:has(.md\:layout\:\[--fd-left-width\:280px\]), #nd-flux-layout:has(.md\:layout\:\[--fd-left-width\:280px\]), #fd-glass-layout:has(.md\:layout\:\[--fd-left-width\:280px\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-left-width\:280px\]) {
3763
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-left-width\:280px\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-left-width\:280px\]), #nd-home-layout:has( > .md\:layout\:\[--fd-left-width\:280px\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-left-width\:280px\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-left-width\:280px\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-left-width\:280px\], > * > .md\:layout\:\[--fd-left-width\:280px\], > * > * > .md\:layout\:\[--fd-left-width\:280px\]) {
3767
3764
  --fd-left-width: 280px;
3768
3765
  }
3769
- #nd-docs-layout:has(.md\:layout\:\[--fd-right-width\:12px\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-right-width\:12px\]), #nd-home-layout:has(.md\:layout\:\[--fd-right-width\:12px\]), #nd-flux-layout:has(.md\:layout\:\[--fd-right-width\:12px\]), #fd-glass-layout:has(.md\:layout\:\[--fd-right-width\:12px\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-right-width\:12px\]) {
3766
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-right-width\:12px\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-right-width\:12px\]), #nd-home-layout:has( > .md\:layout\:\[--fd-right-width\:12px\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-right-width\:12px\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-right-width\:12px\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-right-width\:12px\], > * > .md\:layout\:\[--fd-right-width\:12px\], > * > * > .md\:layout\:\[--fd-right-width\:12px\]) {
3770
3767
  --fd-right-width: 12px;
3771
3768
  }
3772
- #nd-docs-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-home-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-flux-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #fd-glass-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]) {
3769
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-home-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\], > * > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\], > * > * > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]) {
3773
3770
  --fd-sidebar-col: calc(var(--spacing) * 2);
3774
3771
  }
3775
- #nd-docs-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-home-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-flux-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]), #fd-glass-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]) {
3772
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-home-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\], > * > .md\:layout\:\[--fd-sidebar-width\:268px\], > * > * > .md\:layout\:\[--fd-sidebar-width\:268px\]) {
3776
3773
  --fd-sidebar-width: 268px;
3777
3774
  }
3778
3775
  }
3779
3776
  @media (width >= 64rem) {
3780
- #nd-docs-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-notebook-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-home-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-flux-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #fd-glass-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #fd-spacious-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]) {
3777
+ #nd-docs-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-notebook-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-home-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-flux-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #fd-glass-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #fd-spacious-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\], > * > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\], > * > * > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]) {
3781
3778
  --fd-header-height: calc(var(--spacing) * 24);
3782
3779
  }
3783
3780
  }
3784
3781
  @media (width >= 80rem) {
3785
- #nd-docs-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]), #nd-notebook-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]), #nd-home-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]), #nd-flux-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]), #fd-glass-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]), #fd-spacious-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]) {
3782
+ #nd-docs-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\]), #nd-notebook-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\]), #nd-home-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\]), #nd-flux-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\]), #fd-glass-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\]), #fd-spacious-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\], > * > .xl\:layout\:\[--fd-right-width\:240px\], > * > * > .xl\:layout\:\[--fd-right-width\:240px\]) {
3786
3783
  --fd-right-width: 240px;
3787
3784
  }
3788
- #nd-docs-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]), #nd-notebook-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]), #nd-home-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]), #nd-flux-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]), #fd-glass-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]), #fd-spacious-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]) {
3785
+ #nd-docs-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\]), #nd-notebook-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\]), #nd-home-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\]), #nd-flux-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\]), #fd-glass-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\]), #fd-spacious-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\], > * > .xl\:layout\:\[--fd-toc-width\:268px\], > * > * > .xl\:layout\:\[--fd-toc-width\:268px\]) {
3789
3786
  --fd-toc-width: 268px;
3790
3787
  }
3791
3788
  }
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useEffectEvent } from "react";
2
- //#region src/utils/hotkey.ts
2
+ // src/utils/hotkey.ts
3
3
  /**
4
4
  * Listen to `keydown` on window, skipping keys that are already handled or composing text.
5
5
  */
@@ -25,5 +25,4 @@ function isTypingTarget(target) {
25
25
  ].includes(target.tagName)) return true;
26
26
  return target.closest("[role=\"dialog\"]") !== null;
27
27
  }
28
- //#endregion
29
28
  export { useHotKey };
@@ -1,4 +1,4 @@
1
- //#region src/utils/merge-refs.ts
1
+ // src/utils/merge-refs.ts
2
2
  function mergeRefs(...refs) {
3
3
  return (value) => {
4
4
  refs.forEach((ref) => {
@@ -7,5 +7,4 @@ function mergeRefs(...refs) {
7
7
  });
8
8
  };
9
9
  }
10
- //#endregion
11
10
  export { mergeRefs };
@@ -1,4 +1,4 @@
1
- //#region src/utils/urls.ts
1
+ // src/utils/urls.ts
2
2
  function normalize(urlOrPath) {
3
3
  if (urlOrPath.length > 1 && urlOrPath.endsWith("/")) return urlOrPath.slice(0, -1);
4
4
  return urlOrPath;
@@ -11,5 +11,4 @@ function isActive(href, pathname, nested = false) {
11
11
  pathname = normalize(pathname);
12
12
  return href === pathname || nested && pathname.startsWith(`${href}/`);
13
13
  }
14
- //#endregion
15
14
  export { isActive, normalize };
@@ -1,4 +1,2 @@
1
1
  import { MouseEventHandler } from "react";
2
- //#region src/utils/use-copy-button.d.ts
3
- export declare function useCopyButton(onCopy: () => void | Promise<void>): [checked: boolean, onClick: MouseEventHandler];
4
- //#endregion
2
+ export declare function useCopyButton(onCopy: () => void | Promise<void>): [checked: boolean, onClick: MouseEventHandler];
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { useCallback, useEffect, useRef, useState } from "react";
3
- //#region src/utils/use-copy-button.ts
3
+ // src/utils/use-copy-button.ts
4
4
  function useCopyButton(onCopy) {
5
5
  const [checked, setChecked] = useState(false);
6
6
  const callbackRef = useRef(onCopy);
@@ -22,5 +22,4 @@ function useCopyButton(onCopy) {
22
22
  }, []);
23
23
  return [checked, onClick];
24
24
  }
25
- //#endregion
26
25
  export { useCopyButton };
@@ -1,7 +1,5 @@
1
1
  import * as PageTree from "fumadocs-core/page-tree";
2
- //#region src/utils/use-footer-items.d.ts
3
2
  /**
4
3
  * @returns a list of page tree items (linear), that you can obtain footer items
5
4
  */
6
- export declare function useFooterItems(): PageTree.Item[];
7
- //#endregion
5
+ export declare function useFooterItems(): PageTree.Item[];
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { useTreeContext } from "../contexts/tree.js";
3
- //#region src/utils/use-footer-items.ts
3
+ // src/utils/use-footer-items.ts
4
4
  const footerCache = /* @__PURE__ */ new WeakMap();
5
5
  /**
6
6
  * @returns a list of page tree items (linear), that you can obtain footer items
@@ -20,5 +20,4 @@ function useFooterItems() {
20
20
  footerCache.set(root, list);
21
21
  return list;
22
22
  }
23
- //#endregion
24
23
  export { useFooterItems };
@@ -1,8 +1,6 @@
1
- //#region src/utils/use-is-scroll-top.d.ts
2
1
  /**
3
2
  * @returns `undefined` on the server, during hydration, or when disabled.
4
3
  */
5
4
  export declare function useIsScrollTop({ enabled }: {
6
5
  enabled?: boolean;
7
- }): boolean | undefined;
8
- //#endregion
6
+ }): boolean | undefined;