fromsrc 0.0.2 → 0.0.21

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 (408) hide show
  1. package/dist/access.d.ts +7 -7
  2. package/dist/access.js +12 -5
  3. package/dist/adapter.js +8 -16
  4. package/dist/adapterbrowser.js +6 -10
  5. package/dist/adapternext.js +7 -18
  6. package/dist/adapterreactrouter.js +5 -9
  7. package/dist/adapterremix.js +8 -17
  8. package/dist/adaptertanstack.js +6 -10
  9. package/dist/algolia.js +43 -21
  10. package/dist/analytics.d.ts +1 -1
  11. package/dist/analytics.js +16 -10
  12. package/dist/ansi.js +76 -37
  13. package/dist/api.d.ts +10 -10
  14. package/dist/api.js +14 -11
  15. package/dist/audit.d.ts +6 -6
  16. package/dist/audit.js +29 -10
  17. package/dist/autotype.js +20 -10
  18. package/dist/batch.d.ts +6 -6
  19. package/dist/batch.js +16 -9
  20. package/dist/changelog.js +28 -14
  21. package/dist/changelogutil.d.ts +4 -4
  22. package/dist/changelogutil.js +33 -13
  23. package/dist/cli.d.ts +6 -6
  24. package/dist/cli.js +7 -3
  25. package/dist/client.d.ts +1 -1
  26. package/dist/codesample.d.ts +4 -4
  27. package/dist/codesample.js +63 -24
  28. package/dist/collapse.js +31 -13
  29. package/dist/collections.js +36 -16
  30. package/dist/components/accordion.d.ts +1 -1
  31. package/dist/components/accordion.js +5 -1
  32. package/dist/components/alert.d.ts +1 -1
  33. package/dist/components/alert.js +24 -13
  34. package/dist/components/announce.js +40 -17
  35. package/dist/components/autofill.js +17 -7
  36. package/dist/components/avatar.js +4 -4
  37. package/dist/components/avatarstack.js +2 -2
  38. package/dist/components/backtotop.d.ts +1 -1
  39. package/dist/components/backtotop.js +17 -4
  40. package/dist/components/badge.js +9 -4
  41. package/dist/components/banner.js +22 -5
  42. package/dist/components/breadcrumb.js +11 -4
  43. package/dist/components/breadcrumbnav.js +37 -21
  44. package/dist/components/button.js +23 -8
  45. package/dist/components/callout.d.ts +1 -1
  46. package/dist/components/callout.js +33 -29
  47. package/dist/components/changelog.js +21 -8
  48. package/dist/components/checkbox.js +32 -19
  49. package/dist/components/code.d.ts +1 -1
  50. package/dist/components/code.js +6 -3
  51. package/dist/components/codeblock.js +157 -39
  52. package/dist/components/codecopy.d.ts +1 -1
  53. package/dist/components/codecopy.js +36 -13
  54. package/dist/components/codegroup.js +87 -25
  55. package/dist/components/collapsible.d.ts +1 -1
  56. package/dist/components/collapsible.js +5 -1
  57. package/dist/components/command.d.ts +1 -1
  58. package/dist/components/command.js +42 -15
  59. package/dist/components/compare.js +20 -8
  60. package/dist/components/content.js +121 -79
  61. package/dist/components/copybutton.d.ts +1 -1
  62. package/dist/components/copybutton.js +14 -7
  63. package/dist/components/countdown.js +9 -3
  64. package/dist/components/create.js +34 -24
  65. package/dist/components/definition.js +11 -4
  66. package/dist/components/diffview.js +63 -29
  67. package/dist/components/divider.js +5 -1
  68. package/dist/components/docheader.js +8 -1
  69. package/dist/components/doclinkcard.js +27 -3
  70. package/dist/components/dropdown.d.ts +1 -1
  71. package/dist/components/dropdown.js +32 -11
  72. package/dist/components/dynamiccode.js +5 -3
  73. package/dist/components/editlink.js +35 -23
  74. package/dist/components/embed.js +15 -7
  75. package/dist/components/endpoint.d.ts +3 -3
  76. package/dist/components/endpoint.js +24 -9
  77. package/dist/components/errormessage.d.ts +1 -1
  78. package/dist/components/errormessage.js +4 -1
  79. package/dist/components/expandcode.d.ts +1 -1
  80. package/dist/components/expandcode.js +6 -2
  81. package/dist/components/feature.js +8 -1
  82. package/dist/components/featuregrid.d.ts +4 -4
  83. package/dist/components/featuregrid.js +7 -1
  84. package/dist/components/feedback.js +6 -2
  85. package/dist/components/feedbackwidget.js +10 -4
  86. package/dist/components/files.d.ts +1 -1
  87. package/dist/components/files.js +52 -18
  88. package/dist/components/folder.d.ts +1 -1
  89. package/dist/components/folder.js +21 -4
  90. package/dist/components/footer.js +5 -1
  91. package/dist/components/formlabel.d.ts +1 -1
  92. package/dist/components/formlabel.js +31 -18
  93. package/dist/components/github.js +43 -14
  94. package/dist/components/graph.js +38 -14
  95. package/dist/components/heading.js +36 -29
  96. package/dist/components/headingcopy.js +13 -5
  97. package/dist/components/hero.js +20 -14
  98. package/dist/components/highlight.d.ts +2 -2
  99. package/dist/components/highlight.js +14 -8
  100. package/dist/components/hover.d.ts +2 -2
  101. package/dist/components/hover.js +11 -4
  102. package/dist/components/icons.js +4 -1
  103. package/dist/components/inlinetoc.js +3 -1
  104. package/dist/components/input.js +13 -3
  105. package/dist/components/install.js +34 -24
  106. package/dist/components/kbd.js +19 -11
  107. package/dist/components/langicon.d.ts +1 -1
  108. package/dist/components/langicon.js +22 -17
  109. package/dist/components/language.d.ts +1 -1
  110. package/dist/components/language.js +12 -4
  111. package/dist/components/lastupdated.d.ts +2 -2
  112. package/dist/components/lastupdated.js +36 -12
  113. package/dist/components/link.d.ts +1 -1
  114. package/dist/components/linkcard.js +3 -1
  115. package/dist/components/list.d.ts +1 -1
  116. package/dist/components/list.js +4 -1
  117. package/dist/components/math.js +33 -8
  118. package/dist/components/mermaid.js +3 -3
  119. package/dist/components/mobilenav.d.ts +2 -1
  120. package/dist/components/mobilenav.js +116 -47
  121. package/dist/components/modal.d.ts +1 -1
  122. package/dist/components/modal.js +9 -2
  123. package/dist/components/navlink.js +17 -3
  124. package/dist/components/openapi.d.ts +1 -1
  125. package/dist/components/openapi.js +102 -32
  126. package/dist/components/openapischema.d.ts +1 -1
  127. package/dist/components/openapischema.js +29 -9
  128. package/dist/components/openapitags.js +6 -2
  129. package/dist/components/pagetransition.js +5 -3
  130. package/dist/components/pagination.js +3 -2
  131. package/dist/components/panel.js +91 -15
  132. package/dist/components/playground.d.ts +1 -1
  133. package/dist/components/playground.js +153 -50
  134. package/dist/components/popover.js +9 -7
  135. package/dist/components/prelink.js +40 -9
  136. package/dist/components/prevnext.d.ts +1 -1
  137. package/dist/components/prevnext.js +36 -16
  138. package/dist/components/progress.js +2 -2
  139. package/dist/components/property.js +3 -1
  140. package/dist/components/quote.d.ts +2 -2
  141. package/dist/components/quote.js +32 -4
  142. package/dist/components/radio.js +36 -18
  143. package/dist/components/rating.js +14 -3
  144. package/dist/components/recent.d.ts +1 -1
  145. package/dist/components/recent.js +26 -10
  146. package/dist/components/responsive.js +21 -13
  147. package/dist/components/results.js +8 -4
  148. package/dist/components/screenshot.js +61 -21
  149. package/dist/components/scrollprogress.js +9 -5
  150. package/dist/components/scrollspy.d.ts +2 -2
  151. package/dist/components/scrollspy.js +9 -3
  152. package/dist/components/search.js +47 -18
  153. package/dist/components/searchbutton.js +3 -1
  154. package/dist/components/searchdialog.js +35 -22
  155. package/dist/components/searcher.d.ts +1 -1
  156. package/dist/components/searcher.js +51 -26
  157. package/dist/components/select.js +27 -13
  158. package/dist/components/shortcuts.d.ts +1 -1
  159. package/dist/components/shortcuts.js +57 -38
  160. package/dist/components/sidebar.d.ts +2 -1
  161. package/dist/components/sidebar.js +221 -56
  162. package/dist/components/sidebarfilter.d.ts +1 -1
  163. package/dist/components/sidebarfilter.js +30 -6
  164. package/dist/components/sidebarscript.d.ts +5 -0
  165. package/dist/components/sidebarscript.js +18 -0
  166. package/dist/components/skeleton.js +15 -3
  167. package/dist/components/spinner.js +13 -3
  168. package/dist/components/status.js +20 -8
  169. package/dist/components/steps.js +3 -1
  170. package/dist/components/switch.js +4 -4
  171. package/dist/components/table.js +37 -12
  172. package/dist/components/tabnav.d.ts +1 -1
  173. package/dist/components/tabnav.js +48 -36
  174. package/dist/components/tabs.d.ts +1 -1
  175. package/dist/components/tabs.js +56 -40
  176. package/dist/components/tag.js +8 -3
  177. package/dist/components/terminal.js +14 -4
  178. package/dist/components/textarea.js +96 -82
  179. package/dist/components/theme.d.ts +1 -1
  180. package/dist/components/theme.js +25 -3
  181. package/dist/components/themeprovider.d.ts +4 -4
  182. package/dist/components/themeprovider.js +16 -5
  183. package/dist/components/toast.d.ts +1 -1
  184. package/dist/components/toast.js +23 -14
  185. package/dist/components/toc/default.d.ts +1 -1
  186. package/dist/components/toc/default.js +28 -13
  187. package/dist/components/toc/hook.js +28 -14
  188. package/dist/components/toc/index.js +8 -4
  189. package/dist/components/toc/inline.js +12 -2
  190. package/dist/components/toc/minimal.js +11 -5
  191. package/dist/components/toc/zigzag.d.ts +1 -1
  192. package/dist/components/toc/zigzag.js +37 -17
  193. package/dist/components/tocprogress.d.ts +1 -1
  194. package/dist/components/tocprogress.js +66 -34
  195. package/dist/components/tooltip.d.ts +1 -1
  196. package/dist/components/tooltip.js +20 -8
  197. package/dist/components/trigger.js +13 -5
  198. package/dist/components/twoslash.js +49 -26
  199. package/dist/components/typetable.js +23 -4
  200. package/dist/components/typewriter.js +6 -2
  201. package/dist/components/version.js +40 -14
  202. package/dist/components/video.js +25 -15
  203. package/dist/components/zoom.js +6 -2
  204. package/dist/config.d.ts +2 -2
  205. package/dist/config.js +56 -30
  206. package/dist/content.d.ts +5 -5
  207. package/dist/content.js +121 -57
  208. package/dist/contentcache.d.ts +10 -10
  209. package/dist/contentcache.js +9 -5
  210. package/dist/contentdiff.d.ts +4 -4
  211. package/dist/contentdiff.js +16 -8
  212. package/dist/contributors.d.ts +4 -4
  213. package/dist/contributors.js +49 -19
  214. package/dist/diff.d.ts +6 -6
  215. package/dist/diff.js +37 -16
  216. package/dist/draft.d.ts +11 -11
  217. package/dist/draft.js +9 -5
  218. package/dist/env.js +21 -7
  219. package/dist/export.js +4 -4
  220. package/dist/frontmatter.js +11 -9
  221. package/dist/github.js +60 -30
  222. package/dist/gitsource.d.ts +1 -1
  223. package/dist/gitsource.js +16 -9
  224. package/dist/hash.d.ts +6 -6
  225. package/dist/hash.js +19 -7
  226. package/dist/highlight.d.ts +4 -4
  227. package/dist/highlight.js +34 -14
  228. package/dist/hooks/anchor.js +26 -14
  229. package/dist/hooks/arrownav.js +25 -7
  230. package/dist/hooks/async.js +3 -3
  231. package/dist/hooks/battery.js +11 -3
  232. package/dist/hooks/breakpoint.js +10 -2
  233. package/dist/hooks/clickoutside.js +10 -3
  234. package/dist/hooks/clipboard-paste.js +7 -3
  235. package/dist/hooks/clipboard.d.ts +2 -2
  236. package/dist/hooks/clipboard.js +21 -15
  237. package/dist/hooks/copy.js +11 -6
  238. package/dist/hooks/countdown.js +1 -1
  239. package/dist/hooks/counter.js +1 -1
  240. package/dist/hooks/escapekey.js +6 -1
  241. package/dist/hooks/eventlistener.js +3 -1
  242. package/dist/hooks/eventsource.js +4 -2
  243. package/dist/hooks/eyedropper.js +7 -3
  244. package/dist/hooks/favicon.js +1 -1
  245. package/dist/hooks/fetch.js +12 -4
  246. package/dist/hooks/focustrap.js +20 -8
  247. package/dist/hooks/focuswithin.js +6 -2
  248. package/dist/hooks/form.d.ts +2 -2
  249. package/dist/hooks/form.js +15 -2
  250. package/dist/hooks/fullscreen.js +1 -1
  251. package/dist/hooks/geolocation.js +8 -8
  252. package/dist/hooks/hotkeys.js +19 -7
  253. package/dist/hooks/hover.d.ts +4 -1
  254. package/dist/hooks/hover.js +3 -1
  255. package/dist/hooks/idle.js +13 -3
  256. package/dist/hooks/infinitescroll.js +4 -2
  257. package/dist/hooks/interval.js +3 -1
  258. package/dist/hooks/inview.js +7 -3
  259. package/dist/hooks/keyboard.js +36 -12
  260. package/dist/hooks/keypress.js +6 -2
  261. package/dist/hooks/list.js +11 -1
  262. package/dist/hooks/longpress.js +3 -3
  263. package/dist/hooks/map.js +1 -1
  264. package/dist/hooks/measure.js +16 -7
  265. package/dist/hooks/mediarecorder.js +7 -3
  266. package/dist/hooks/networkstate.js +4 -2
  267. package/dist/hooks/os.js +12 -4
  268. package/dist/hooks/pagination.js +6 -4
  269. package/dist/hooks/permission.js +6 -2
  270. package/dist/hooks/queue.js +4 -2
  271. package/dist/hooks/readprogress.js +6 -2
  272. package/dist/hooks/resizeobserver.js +6 -4
  273. package/dist/hooks/script.js +1 -1
  274. package/dist/hooks/scrolllock.js +6 -2
  275. package/dist/hooks/scrollspy.js +4 -2
  276. package/dist/hooks/selection.js +6 -3
  277. package/dist/hooks/share.js +18 -9
  278. package/dist/hooks/speechrecognition.js +7 -3
  279. package/dist/hooks/stepper.js +4 -4
  280. package/dist/hooks/storage.js +9 -3
  281. package/dist/hooks/stylesheet.js +4 -2
  282. package/dist/hooks/textselection.js +6 -3
  283. package/dist/hooks/throttle.js +6 -2
  284. package/dist/hooks/undoredo.js +19 -11
  285. package/dist/hooks/vibrate.js +3 -1
  286. package/dist/hooks/viewtransition.js +8 -4
  287. package/dist/hooks/wakelock.js +12 -7
  288. package/dist/hooks/websocket.js +4 -2
  289. package/dist/hooks/windowsize.js +2 -2
  290. package/dist/i18n.d.ts +2 -2
  291. package/dist/i18n.js +27 -14
  292. package/dist/index.d.ts +1 -0
  293. package/dist/index.js +1 -0
  294. package/dist/lastmodified.js +11 -5
  295. package/dist/linkcheck.d.ts +6 -6
  296. package/dist/linkcheck.js +55 -14
  297. package/dist/llms.js +20 -4
  298. package/dist/manifest.js +7 -7
  299. package/dist/mcp.js +28 -22
  300. package/dist/mdtoc.d.ts +4 -4
  301. package/dist/mdtoc.js +11 -5
  302. package/dist/mdxscope.d.ts +2 -2
  303. package/dist/mdxscope.js +3 -1
  304. package/dist/meta.js +19 -7
  305. package/dist/migrate.js +35 -25
  306. package/dist/navgen.d.ts +8 -8
  307. package/dist/navgen.js +73 -30
  308. package/dist/navtree.d.ts +1 -1
  309. package/dist/navtree.js +39 -19
  310. package/dist/oembed.d.ts +4 -4
  311. package/dist/oembed.js +24 -18
  312. package/dist/ogimage.d.ts +11 -11
  313. package/dist/ogimage.js +24 -24
  314. package/dist/openapi.js +60 -33
  315. package/dist/openapiguard.js +21 -11
  316. package/dist/openapiutil.js +66 -20
  317. package/dist/orama.js +52 -34
  318. package/dist/pipeline.d.ts +4 -4
  319. package/dist/pipeline.js +4 -4
  320. package/dist/preload.d.ts +2 -2
  321. package/dist/preload.js +4 -4
  322. package/dist/ranking.d.ts +6 -6
  323. package/dist/ranking.js +39 -13
  324. package/dist/readtime.js +3 -1
  325. package/dist/redirects.d.ts +2 -2
  326. package/dist/redirects.js +20 -12
  327. package/dist/rehype.js +16 -9
  328. package/dist/rehypeautolink.d.ts +2 -2
  329. package/dist/rehypeautolink.js +25 -23
  330. package/dist/rehypecode.js +38 -28
  331. package/dist/rehypecopy.js +17 -13
  332. package/dist/rehypeinline.js +33 -27
  333. package/dist/rehypelinks.js +28 -20
  334. package/dist/rehyperaw.js +9 -3
  335. package/dist/rehypeslug.d.ts +1 -1
  336. package/dist/rehypeslug.js +23 -19
  337. package/dist/rehypetablewrap.d.ts +2 -2
  338. package/dist/rehypetablewrap.js +9 -5
  339. package/dist/rehypetoc.d.ts +1 -1
  340. package/dist/rehypetoc.js +15 -7
  341. package/dist/remark.js +28 -13
  342. package/dist/remarkadmonition.js +40 -14
  343. package/dist/remarkannotation.d.ts +2 -2
  344. package/dist/remarkannotation.js +26 -10
  345. package/dist/remarkbadge.js +43 -31
  346. package/dist/remarkblockmath.js +29 -15
  347. package/dist/remarkcallout.js +32 -14
  348. package/dist/remarkcaption.js +28 -16
  349. package/dist/remarkcodetitle.js +29 -13
  350. package/dist/remarkcolumns.js +22 -10
  351. package/dist/remarkdetails.js +34 -14
  352. package/dist/remarkdirective.js +47 -20
  353. package/dist/remarkembed.js +38 -22
  354. package/dist/remarkfiletree.js +29 -19
  355. package/dist/remarkfootnote.js +46 -18
  356. package/dist/remarkgfm.js +13 -8
  357. package/dist/remarkheadingid.js +16 -6
  358. package/dist/remarkimage.js +54 -34
  359. package/dist/remarkinclude.js +20 -8
  360. package/dist/remarkinstall.js +20 -12
  361. package/dist/remarklinkcard.js +33 -14
  362. package/dist/remarkmath.js +34 -15
  363. package/dist/remarkmermaid.js +10 -6
  364. package/dist/remarkmeta.d.ts +2 -2
  365. package/dist/remarkmeta.js +15 -5
  366. package/dist/remarkreadingtime.d.ts +2 -2
  367. package/dist/remarkreadingtime.js +3 -1
  368. package/dist/remarksteps.js +26 -14
  369. package/dist/remarkstructure.js +16 -10
  370. package/dist/remarktabs.js +31 -14
  371. package/dist/remarktoc.js +40 -24
  372. package/dist/remarkts2js.js +51 -40
  373. package/dist/remarktwoslash.d.ts +4 -4
  374. package/dist/remarktwoslash.js +24 -14
  375. package/dist/remarkvideo.d.ts +4 -4
  376. package/dist/remarkvideo.js +42 -16
  377. package/dist/schema.d.ts +14 -14
  378. package/dist/schema.js +2 -2
  379. package/dist/search.js +106 -48
  380. package/dist/searchindex.js +86 -34
  381. package/dist/searchpolicy.js +1 -1
  382. package/dist/searchscore.js +5 -5
  383. package/dist/searchtypo.js +30 -10
  384. package/dist/seo.d.ts +2 -2
  385. package/dist/seo.js +14 -14
  386. package/dist/shortcodes.d.ts +4 -4
  387. package/dist/shortcodes.js +25 -20
  388. package/dist/sitemap.js +18 -8
  389. package/dist/snippets.js +26 -18
  390. package/dist/source.js +75 -41
  391. package/dist/stats.d.ts +4 -4
  392. package/dist/stats.js +18 -12
  393. package/dist/testing.d.ts +7 -7
  394. package/dist/testing.js +74 -29
  395. package/dist/themeutil.d.ts +6 -6
  396. package/dist/themeutil.js +145 -27
  397. package/dist/typegen.js +31 -12
  398. package/dist/validate.js +19 -7
  399. package/dist/validator.d.ts +11 -11
  400. package/dist/validator.js +68 -19
  401. package/dist/versioning.d.ts +7 -7
  402. package/dist/versioning.js +27 -11
  403. package/dist/watcher.js +39 -15
  404. package/dist/webhook.d.ts +6 -6
  405. package/dist/webhook.js +34 -12
  406. package/dist/workspace.js +26 -12
  407. package/package.json +137 -137
  408. package/styles/reset.css +1 -1
@@ -1,44 +1,49 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
 
3
3
  const icons = {
4
- typescript: "M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z",
4
+ bash: "M4 20h4v-4H4v4zm6-16v4h4V4h-4zm0 12h4v-4h-4v4zm6-12v4h4V4h-4zm0 12h4v-4h-4v4zM4 4h4v4H4V4zm0 6h4v4H4v-4zm6 0h4v4h-4v-4zm6 0h4v4h-4v-4z",
5
+ css: "M1.5 0h21l-1.91 21.563L11.977 24l-8.565-2.438L1.5 0zm17.09 4.413L5.41 4.41l.213 2.622 10.125.002-.255 2.716h-6.64l.24 2.573h6.182l-.366 3.523-2.91.804-2.956-.81-.188-2.11h-2.61l.29 3.855L12 19.288l5.373-1.53L18.59 4.414z",
6
+ go: "M1.8 8.4c-.1 0-.1 0-.2-.1 0 0 0-.1.1-.2l.6-.5h2.1l.6.5c.1 0 .1.1 0 .2l-.1.1H1.8zm-.8 1.3c-.1 0-.2 0-.2-.1 0 0 0-.1.1-.2l.6-.5h3.4l.5.5c.1.1.1.1 0 .2 0 0-.1.1-.2.1H1zm2.5 1.3c-.1 0-.1 0-.2-.1 0-.1 0-.1.1-.2l.4-.5h2l.6.5c.1.1.1.1.1.2l-.2.1H3.5zm15.1-.9c-.6 1.4-2 2.4-3.6 2.4-1.3 0-2.5-.6-3.2-1.6-.7.9-1.8 1.5-3.1 1.5-2.2 0-4-1.8-4-4s1.8-4 4-4c1.3 0 2.4.6 3.1 1.5.8-1 2-1.6 3.3-1.6 2.2 0 4 1.8 4 4 0 .6-.2 1.2-.4 1.8h-.1z",
7
+ html: "M1.5 0h21l-1.9 21.6L12 24l-8.6-2.4L1.5 0zM20 4H4l.7 7.3h11.4l-.4 4-3.7 1-3.7-1-.2-2.7H5l.5 5.4 6.5 1.8 6.5-1.8.8-9H7.6l-.3-3h13.4L20 4z",
5
8
  javascript: "M0 0h24v24H0V0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65l.046.067zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0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v4a2 2 0 0 1-2 2h-2v-2h2v-5a2 2 0 0 1 2-2 2 2 0 0 1-2-2V5h-2V3h2z",
10
- css: "M1.5 0h21l-1.91 21.563L11.977 24l-8.565-2.438L1.5 0zm17.09 4.413L5.41 4.41l.213 2.622 10.125.002-.255 2.716h-6.64l.24 2.573h6.182l-.366 3.523-2.91.804-2.956-.81-.188-2.11h-2.61l.29 3.855L12 19.288l5.373-1.53L18.59 4.414z",
11
- html: "M1.5 0h21l-1.9 21.6L12 24l-8.6-2.4L1.5 0zM20 4H4l.7 7.3h11.4l-.4 4-3.7 1-3.7-1-.2-2.7H5l.5 5.4 6.5 1.8 6.5-1.8.8-9H7.6l-.3-3h13.4L20 4z",
12
- yaml: "M2.6 6l3.8 5.6v6.4h2.7v-6.4L12.9 6h-3l-2 3.8L5.6 6H2.6zm9.9 12h9.5v-2.5h-6.8v-2.3h5.5V11h-5.5V8.5h6.8V6h-9.5v12z",
13
- bash: "M4 20h4v-4H4v4zm6-16v4h4V4h-4zm0 12h4v-4h-4v4zm6-12v4h4V4h-4zm0 12h4v-4h-4v4zM4 4h4v4H4V4zm0 6h4v4H4v-4zm6 0h4v4h-4v-4zm6 0h4v4h-4v-4z",
14
14
  sql: "M12 3C7 3 3 4.8 3 7v10c0 2.2 4 4 9 4s9-1.8 9-4V7c0-2.2-4-4-9-4zm0 2c4.4 0 7 1.3 7 2s-2.6 2-7 2-7-1.3-7-2 2.6-2 7-2zM5 9.3c1.5.8 3.9 1.4 7 1.4s5.5-.6 7-1.4V12c0 .7-2.6 2-7 2s-7-1.3-7-2V9.3zm0 5c1.5.8 3.9 1.4 7 1.4s5.5-.6 7-1.4V17c0 .7-2.6 2-7 2s-7-1.3-7-2v-2.7z",
15
- markdown: "M2 4v16h20V4H2zm3 12v-5.5L7.5 13 10 10.5V16h2v-8h-2l-2.5 3L5 8H3v8h2zm11-1.5L13 11h2V8h3v3h2l-3 3.5z",
16
- kotlin: "M0 24L12 12L24 24H0zM0 0h24L12 12L0 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-1.6.8-2.7.8-.9 0-1.7-.2-2.5-.7-1.1-.7-2-1.7-2.5-2.7-.4-.8-.6-1.5-.6-2.3 0-1.5.6-2.9 1.8-4.2 1.4-1.6 3.3-2.4 5.6-2.4.4 0 .8 0 1.2.1-.8-.8-1.4-1.7-1.8-2.6-.5-1-.7-2-.7-3 0-.3 0-.6.1-.9C6 8 5.3 9.7 5.3 11.5c0 .5 0 1 .1 1.5-.6-.3-1.1-.6-1.6-1.1C2.6 10.8 2 9.4 2 7.8c0-.3 0-.5.1-.7 1.7 2.3 4.2 4.2 7.2 5.6.2.1.5.2.7.3-.1-.4-.3-.9-.6-1.3-1.5-2.5-3.5-4.7-5.8-6.6l-.2-.2c-.1-.1-.1-.1 0-.2.1-.1.1-.1.2 0l.2.2c2.4 1.8 4.5 4 6.1 6.4.4.6.7 1.2.9 1.8 1.5.5 3 .8 4.5.8.9 0 1.8-.1 2.7-.3-.9.9-2 1.7-3.4 2.3-.2.1-.4.1-.6.2 1 .2 1.8.6 2.5 1.1.9.6 1.4 1.4 1.7 2.3.2-.5.3-1 .3-1.6 0-1-.3-1.9-.9-2.6-.6-.8-1.5-1.4-2.6-1.7l-.3-.1c.5-.2 1-.3 1.6-.5 1.7-.6 3.2-1.4 4.5-2.5.1 1.4.6 2.6 1.4 3.6.8 1 1.9 1.7 3.1 2 0 .1 0 .3 0 .4z",
16
+ typescript: "M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z",
17
+ yaml: "M2.6 6l3.8 5.6v6.4h2.7v-6.4L12.9 6h-3l-2 3.8L5.6 6H2.6zm9.9 12h9.5v-2.5h-6.8v-2.3h5.5V11h-5.5V8.5h6.8V6h-9.5v12z"
18
18
  };
19
19
  const aliases = {
20
- ts: "typescript",
21
20
  js: "javascript",
22
21
  jsx: "javascript",
23
- tsx: "typescript",
22
+ md: "markdown",
24
23
  py: "python",
25
24
  rb: "ruby",
26
25
  sh: "bash",
27
26
  shell: "bash",
28
- zsh: "bash",
27
+ ts: "typescript",
28
+ tsx: "typescript",
29
29
  yml: "yaml",
30
- md: "markdown"
30
+ zsh: "bash"
31
31
  };
32
- function LangIcon({ lang, size = 14 }) {
32
+ function LangIcon({
33
+ lang,
34
+ size = 14
35
+ }) {
33
36
  const normalized = aliases[lang.toLowerCase()] || lang.toLowerCase();
34
37
  const path = icons[normalized];
35
- if (!path) return null;
38
+ if (!path) {
39
+ return null;
40
+ }
36
41
  return /* @__PURE__ */ jsx(
37
42
  "svg",
38
43
  {
39
44
  viewBox: "0 0 24 24",
40
45
  fill: "currentColor",
41
- style: { width: size, height: size, flexShrink: 0 },
46
+ style: { flexShrink: 0, height: size, width: size },
42
47
  "aria-hidden": "true",
43
48
  children: /* @__PURE__ */ jsx("path", { d: path })
44
49
  }
@@ -11,7 +11,7 @@ interface LanguageSwitchProps {
11
11
  locales: Locale[];
12
12
  onChange?: (code: string) => void;
13
13
  }
14
- declare function LanguageSwitchBase({ current, locales, onChange }: LanguageSwitchProps): JSX.Element;
14
+ declare function LanguageSwitchBase({ current, locales, onChange, }: LanguageSwitchProps): JSX.Element;
15
15
  declare const LanguageSwitch: react.MemoExoticComponent<typeof LanguageSwitchBase>;
16
16
 
17
17
  export { LanguageSwitch, type LanguageSwitchProps, type Locale };
@@ -7,7 +7,11 @@ import { IconLanguages, IconCheck } from './icons';
7
7
  function isnode(value) {
8
8
  return value instanceof Node;
9
9
  }
10
- function LanguageSwitchBase({ current, locales, onChange }) {
10
+ function LanguageSwitchBase({
11
+ current,
12
+ locales,
13
+ onChange
14
+ }) {
11
15
  const [open, setOpen] = useState(false);
12
16
  const [index, setIndex] = useState(0);
13
17
  const ref = useRef(null);
@@ -36,9 +40,10 @@ function LanguageSwitchBase({ current, locales, onChange }) {
36
40
  return;
37
41
  }
38
42
  switch (e.key) {
39
- case "Escape":
43
+ case "Escape": {
40
44
  setOpen(false);
41
45
  break;
46
+ }
42
47
  case "ArrowDown":
43
48
  case "ArrowUp":
44
49
  case "Home":
@@ -48,14 +53,17 @@ function LanguageSwitchBase({ current, locales, onChange }) {
48
53
  current: index,
49
54
  wrap: false
50
55
  });
51
- if (next !== index) setIndex(next);
56
+ if (next !== index) {
57
+ setIndex(next);
58
+ }
52
59
  e.preventDefault();
53
60
  break;
54
61
  }
55
- case "Enter":
62
+ case "Enter": {
56
63
  onChange?.(locales[index]?.code ?? current);
57
64
  setOpen(false);
58
65
  break;
66
+ }
59
67
  }
60
68
  },
61
69
  [open, locales, index, onChange]
@@ -1,11 +1,11 @@
1
1
  import * as react from 'react';
2
2
 
3
- type LastUpdatedProps = {
3
+ interface LastUpdatedProps {
4
4
  date: string | Date;
5
5
  format?: "relative" | "absolute" | "both";
6
6
  className?: string;
7
7
  prefix?: string;
8
- };
8
+ }
9
9
 
10
10
  declare const LastUpdated: react.NamedExoticComponent<LastUpdatedProps>;
11
11
 
@@ -4,15 +4,25 @@ import { memo, useMemo, useState, useEffect } from 'react';
4
4
 
5
5
  function relative(d) {
6
6
  const s = Math.floor((Date.now() - d.getTime()) / 1e3);
7
- if (s < 60) return "just now";
7
+ if (s < 60) {
8
+ return "just now";
9
+ }
8
10
  const m = Math.floor(s / 60);
9
- if (m < 60) return `${m} minute${m === 1 ? "" : "s"} ago`;
11
+ if (m < 60) {
12
+ return `${m} minute${m === 1 ? "" : "s"} ago`;
13
+ }
10
14
  const h = Math.floor(m / 60);
11
- if (h < 24) return `${h} hour${h === 1 ? "" : "s"} ago`;
15
+ if (h < 24) {
16
+ return `${h} hour${h === 1 ? "" : "s"} ago`;
17
+ }
12
18
  const days = Math.floor(h / 24);
13
- if (days < 30) return `${days} day${days === 1 ? "" : "s"} ago`;
19
+ if (days < 30) {
20
+ return `${days} day${days === 1 ? "" : "s"} ago`;
21
+ }
14
22
  const months = Math.floor(days / 30);
15
- if (days < 365) return `${months} month${months === 1 ? "" : "s"} ago`;
23
+ if (days < 365) {
24
+ return `${months} month${months === 1 ? "" : "s"} ago`;
25
+ }
16
26
  const years = Math.floor(days / 365);
17
27
  return `${years} year${years === 1 ? "" : "s"} ago`;
18
28
  }
@@ -22,23 +32,37 @@ const LastUpdated = memo(function LastUpdated2({
22
32
  className,
23
33
  prefix = "Last updated"
24
34
  }) {
25
- const parsed = useMemo(() => typeof date === "string" ? new Date(date) : date, [date]);
35
+ const parsed = useMemo(
36
+ () => typeof date === "string" ? new Date(date) : date,
37
+ [date]
38
+ );
26
39
  const iso = parsed.toISOString();
27
40
  const abs = useMemo(() => parsed.toLocaleDateString(), [parsed]);
28
41
  const [rel, setRel] = useState("");
29
42
  useEffect(() => {
30
- if (format === "absolute") return;
43
+ if (format === "absolute") {
44
+ return;
45
+ }
31
46
  setRel(relative(parsed));
32
47
  const timer = setInterval(() => setRel(relative(parsed)), 6e4);
33
48
  return () => clearInterval(timer);
34
49
  }, [format, parsed]);
35
50
  const label = format === "absolute" ? abs : rel || abs;
36
51
  const title = format === "both" ? abs : void 0;
37
- return /* @__PURE__ */ jsxs("time", { dateTime: iso, className, title, suppressHydrationWarning: true, children: [
38
- prefix,
39
- " ",
40
- label
41
- ] });
52
+ return /* @__PURE__ */ jsxs(
53
+ "time",
54
+ {
55
+ dateTime: iso,
56
+ className,
57
+ title,
58
+ suppressHydrationWarning: true,
59
+ children: [
60
+ prefix,
61
+ " ",
62
+ label
63
+ ]
64
+ }
65
+ );
42
66
  });
43
67
 
44
68
  export { LastUpdated };
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ComponentPropsWithoutRef, ReactNode, JSX } from 'react';
3
- import { UrlObject } from 'url';
3
+ import { UrlObject } from 'node:url';
4
4
 
5
5
  type Href = string | UrlObject;
6
6
  interface LinkProps extends Omit<ComponentPropsWithoutRef<"a">, "href"> {
@@ -43,7 +43,9 @@ const LinkCard = memo(function LinkCard2({
43
43
  }
44
44
  );
45
45
  });
46
- const LinkCards = memo(function LinkCards2({ children }) {
46
+ const LinkCards = memo(function LinkCards2({
47
+ children
48
+ }) {
47
49
  return /* @__PURE__ */ jsx("nav", { className: "my-6 grid gap-3 md:grid-cols-2", "aria-label": "Related links", children });
48
50
  });
49
51
 
@@ -36,7 +36,7 @@ interface NumberItemProps {
36
36
  }
37
37
  declare function CheckListBase({ children }: ListProps): JSX.Element;
38
38
  declare const CheckList: react.MemoExoticComponent<typeof CheckListBase>;
39
- declare function CheckItemBase({ checked, children }: CheckItemProps): JSX.Element;
39
+ declare function CheckItemBase({ checked, children, }: CheckItemProps): JSX.Element;
40
40
  declare const CheckItem: react.MemoExoticComponent<typeof CheckItemBase>;
41
41
  declare function BulletListBase({ children }: ListProps): JSX.Element;
42
42
  declare const BulletList: react.MemoExoticComponent<typeof BulletListBase>;
@@ -7,7 +7,10 @@ function CheckListBase({ children }) {
7
7
  return /* @__PURE__ */ jsx("ul", { className: "my-4 space-y-2", role: "list", children });
8
8
  }
9
9
  const CheckList = memo(CheckListBase);
10
- function CheckItemBase({ checked = true, children }) {
10
+ function CheckItemBase({
11
+ checked = true,
12
+ children
13
+ }) {
11
14
  return /* @__PURE__ */ jsxs(
12
15
  "li",
13
16
  {
@@ -3,11 +3,19 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { memo, useState, useEffect } from 'react';
4
4
 
5
5
  function extractText(children) {
6
- if (typeof children === "string") return children;
7
- if (typeof children === "number") return String(children);
8
- if (Array.isArray(children)) return children.map(extractText).join("");
6
+ if (typeof children === "string") {
7
+ return children;
8
+ }
9
+ if (typeof children === "number") {
10
+ return String(children);
11
+ }
12
+ if (Array.isArray(children)) {
13
+ return children.map(extractText).join("");
14
+ }
9
15
  if (children && typeof children === "object" && "props" in children) {
10
- return extractText(children.props.children);
16
+ return extractText(
17
+ children.props.children
18
+ );
11
19
  }
12
20
  return "";
13
21
  }
@@ -24,9 +32,13 @@ function MathBase({ children, display = false }) {
24
32
  displayMode: display,
25
33
  throwOnError: false
26
34
  });
27
- if (mounted) setHtml(rendered);
35
+ if (mounted) {
36
+ setHtml(rendered);
37
+ }
28
38
  } catch {
29
- if (mounted) setHtml(text);
39
+ if (mounted) {
40
+ setHtml(text);
41
+ }
30
42
  }
31
43
  }
32
44
  render();
@@ -35,7 +47,13 @@ function MathBase({ children, display = false }) {
35
47
  };
36
48
  }, [text, display]);
37
49
  if (!html) {
38
- return display ? /* @__PURE__ */ jsx("div", { className: "my-4 animate-pulse h-8 bg-surface/30 rounded", "aria-hidden": "true" }) : /* @__PURE__ */ jsx("span", { "aria-hidden": "true" });
50
+ return display ? /* @__PURE__ */ jsx(
51
+ "div",
52
+ {
53
+ className: "my-4 animate-pulse h-8 bg-surface/30 rounded",
54
+ "aria-hidden": "true"
55
+ }
56
+ ) : /* @__PURE__ */ jsx("span", { "aria-hidden": "true" });
39
57
  }
40
58
  if (display) {
41
59
  return /* @__PURE__ */ jsx(
@@ -48,7 +66,14 @@ function MathBase({ children, display = false }) {
48
66
  }
49
67
  );
50
68
  }
51
- return /* @__PURE__ */ jsx("span", { role: "math", "aria-label": text, dangerouslySetInnerHTML: { __html: html } });
69
+ return /* @__PURE__ */ jsx(
70
+ "span",
71
+ {
72
+ role: "math",
73
+ "aria-label": text,
74
+ dangerouslySetInnerHTML: { __html: html }
75
+ }
76
+ );
52
77
  }
53
78
  const Math = memo(MathBase);
54
79
  function BlockMathBase({ children }) {
@@ -17,13 +17,13 @@ function MermaidBase({ chart, label }) {
17
17
  const module = await import(/* webpackIgnore: true */ 'mermaid');
18
18
  const mermaid = module.default;
19
19
  mermaid.initialize({
20
- startOnLoad: false,
21
- securityLevel: "loose",
22
20
  fontFamily: "inherit",
21
+ securityLevel: "loose",
22
+ startOnLoad: false,
23
23
  theme: "dark"
24
24
  });
25
25
  const { svg: rendered } = await mermaid.render(
26
- id.replace(/:/g, ""),
26
+ id.replaceAll(":", ""),
27
27
  chart.replaceAll("\\n", "\n")
28
28
  );
29
29
  if (mounted) {
@@ -7,11 +7,12 @@ import '../schema.js';
7
7
  interface MobileNavProps {
8
8
  title: string;
9
9
  logo?: ReactNode;
10
+ boxed?: boolean;
10
11
  navigation: SidebarSection[];
11
12
  docs: DocMeta[];
12
13
  basePath?: string;
13
14
  github?: string;
14
15
  }
15
- declare function MobileNav({ title, logo, navigation, docs, basePath, github, }: MobileNavProps): JSX.Element;
16
+ declare function MobileNav({ title, logo, boxed, navigation, docs, basePath, github, }: MobileNavProps): JSX.Element;
16
17
 
17
18
  export { MobileNav, type MobileNavProps };
@@ -8,18 +8,26 @@ import { useScrollLock } from '../hooks/scrolllock';
8
8
  import { NavLink } from './navlink';
9
9
  import { Search } from './search';
10
10
 
11
- function MobileFolder({ folder, basePath, onNavigate }) {
11
+ function MobileFolder({
12
+ folder,
13
+ basePath,
14
+ onNavigate
15
+ }) {
12
16
  const pathname = usePathname();
13
17
  const isActive = folder.href && pathname === folder.href;
14
18
  const hasActiveChild = folder.items.some((item) => {
15
19
  if (item.type === "folder") {
16
- return item.items.some((child) => child.type === "item" && pathname === child.href);
20
+ return item.items.some(
21
+ (child) => child.type === "item" && pathname === child.href
22
+ );
17
23
  }
18
24
  return item.type === "item" && pathname === item.href;
19
25
  });
20
26
  const [open, setOpen] = useState(folder.defaultOpen ?? false);
21
27
  useEffect(() => {
22
- if (hasActiveChild || isActive) setOpen(true);
28
+ if (hasActiveChild || isActive) {
29
+ setOpen(true);
30
+ }
23
31
  }, [hasActiveChild, isActive]);
24
32
  const toggle = useCallback(() => {
25
33
  setOpen((prev) => !prev);
@@ -68,31 +76,47 @@ function MobileFolder({ folder, basePath, onNavigate }) {
68
76
  viewBox: "0 0 24 24",
69
77
  stroke: "currentColor",
70
78
  "aria-hidden": "true",
71
- children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })
79
+ children: /* @__PURE__ */ jsx(
80
+ "path",
81
+ {
82
+ strokeLinecap: "round",
83
+ strokeLinejoin: "round",
84
+ strokeWidth: 2,
85
+ d: "M19 9l-7 7-7-7"
86
+ }
87
+ )
72
88
  }
73
89
  )
74
90
  }
75
91
  )
76
92
  ] }),
77
- open && /* @__PURE__ */ jsx("ul", { role: "group", className: "mt-0.5 ml-2 pl-2 border-l border-line space-y-0.5", children: folder.items.map((item) => {
78
- if (item.type === "folder") {
79
- return /* @__PURE__ */ jsx(
80
- MobileFolder,
81
- {
82
- folder: item,
83
- basePath,
84
- onNavigate
85
- },
86
- item.title
87
- );
93
+ open && /* @__PURE__ */ jsx(
94
+ "ul",
95
+ {
96
+ role: "group",
97
+ className: "mt-0.5 ml-2 pl-2 border-l border-line space-y-0.5",
98
+ children: folder.items.map((item) => {
99
+ if (item.type === "folder") {
100
+ return /* @__PURE__ */ jsx(
101
+ MobileFolder,
102
+ {
103
+ folder: item,
104
+ basePath,
105
+ onNavigate
106
+ },
107
+ item.title
108
+ );
109
+ }
110
+ return /* @__PURE__ */ jsx("li", { role: "none", children: /* @__PURE__ */ jsx(NavLink, { href: item.href, icon: item.icon, onClick: onNavigate, children: item.title }) }, item.href);
111
+ })
88
112
  }
89
- return /* @__PURE__ */ jsx("li", { role: "none", children: /* @__PURE__ */ jsx(NavLink, { href: item.href, icon: item.icon, onClick: onNavigate, children: item.title }) }, item.href);
90
- }) })
113
+ )
91
114
  ] });
92
115
  }
93
116
  function MobileNav({
94
117
  title,
95
118
  logo,
119
+ boxed = false,
96
120
  navigation,
97
121
  docs,
98
122
  basePath = "/docs",
@@ -124,7 +148,11 @@ function MobileNav({
124
148
  openRef.current?.focus();
125
149
  }, 200);
126
150
  }, []);
127
- useFocusTrap(drawerRef, { enabled: open, onEscape: close, restoreFocus: false });
151
+ useFocusTrap(drawerRef, {
152
+ enabled: open,
153
+ onEscape: close,
154
+ restoreFocus: false
155
+ });
128
156
  return /* @__PURE__ */ jsxs(Fragment, { children: [
129
157
  /* @__PURE__ */ jsxs("header", { className: "lg:hidden sticky top-0 z-40 flex items-center justify-between px-4 h-14 border-b border-line bg-bg", children: [
130
158
  /* @__PURE__ */ jsxs(
@@ -133,7 +161,13 @@ function MobileNav({
133
161
  href: "/",
134
162
  className: "flex items-center gap-2 text-sm text-fg min-h-[44px] focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-bg rounded-md",
135
163
  children: [
136
- /* @__PURE__ */ jsx("div", { className: "p-1 rounded-lg bg-surface border border-line", children: logo }),
164
+ /* @__PURE__ */ jsx(
165
+ "div",
166
+ {
167
+ className: boxed ? "w-8 h-8 flex items-center justify-center shrink-0 p-1 rounded-lg bg-surface border border-line" : "w-8 h-8 flex items-center justify-center shrink-0",
168
+ children: logo
169
+ }
170
+ ),
137
171
  title
138
172
  ]
139
173
  }
@@ -149,7 +183,16 @@ function MobileNav({
149
183
  "aria-controls": "mobile-nav-drawer",
150
184
  className: "p-2.5 min-w-[44px] min-h-[44px] flex items-center justify-center text-muted hover:text-fg active:text-fg transition-colors focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-bg rounded-md",
151
185
  "aria-label": "open menu",
152
- children: /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", fill: "currentColor", className: "size-5", children: /* @__PURE__ */ jsx("path", { d: "M1 2.75A.75.75 0 011.75 2h12.5a.75.75 0 010 1.5H1.75A.75.75 0 011 2.75zm0 5A.75.75 0 011.75 7h12.5a.75.75 0 010 1.5H1.75A.75.75 0 011 7.75zM1.75 12a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5H1.75z" }) })
186
+ children: /* @__PURE__ */ jsx(
187
+ "svg",
188
+ {
189
+ "aria-hidden": "true",
190
+ viewBox: "0 0 16 16",
191
+ fill: "currentColor",
192
+ className: "size-5",
193
+ children: /* @__PURE__ */ jsx("path", { d: "M1 2.75A.75.75 0 011.75 2h12.5a.75.75 0 010 1.5H1.75A.75.75 0 011 2.75zm0 5A.75.75 0 011.75 7h12.5a.75.75 0 010 1.5H1.75A.75.75 0 011 7.75zM1.75 12a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5H1.75z" })
194
+ }
195
+ )
153
196
  }
154
197
  )
155
198
  ] }),
@@ -184,7 +227,16 @@ function MobileNav({
184
227
  onClick: close,
185
228
  className: "p-2.5 min-w-[44px] min-h-[44px] flex items-center justify-center text-muted hover:text-fg active:text-fg transition-colors focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-bg rounded-md",
186
229
  "aria-label": "close menu",
187
- children: /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", fill: "currentColor", className: "size-5", children: /* @__PURE__ */ jsx("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) })
230
+ children: /* @__PURE__ */ jsx(
231
+ "svg",
232
+ {
233
+ "aria-hidden": "true",
234
+ viewBox: "0 0 16 16",
235
+ fill: "currentColor",
236
+ className: "size-5",
237
+ children: /* @__PURE__ */ jsx("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" })
238
+ }
239
+ )
188
240
  }
189
241
  )
190
242
  ] }),
@@ -194,33 +246,50 @@ function MobileNav({
194
246
  {
195
247
  "aria-label": "main navigation",
196
248
  className: "flex-1 px-4 pb-4 overflow-y-auto overscroll-contain [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] [-webkit-overflow-scrolling:touch]",
197
- children: navigation.map((section) => /* @__PURE__ */ jsxs("div", { className: "mb-6", role: "region", "aria-label": section.title, children: [
198
- /* @__PURE__ */ jsx("h3", { className: "px-2 mb-2 text-[11px] text-muted uppercase tracking-wider", children: section.title }),
199
- /* @__PURE__ */ jsx("ul", { role: "list", className: "space-y-0.5", children: section.items.map((item, i) => {
200
- if (!("type" in item)) {
201
- return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
202
- NavLink,
203
- {
204
- href: item.slug ? `${basePath}/${item.slug}` : basePath,
205
- onClick: close,
206
- children: item.title
249
+ children: navigation.map((section) => /* @__PURE__ */ jsxs(
250
+ "div",
251
+ {
252
+ className: "mb-6",
253
+ role: "region",
254
+ "aria-label": section.title,
255
+ children: [
256
+ /* @__PURE__ */ jsx("h3", { className: "px-2 mb-2 text-[11px] text-muted uppercase tracking-wider", children: section.title }),
257
+ /* @__PURE__ */ jsx("ul", { role: "list", className: "space-y-0.5", children: section.items.map((item, i) => {
258
+ if (!("type" in item)) {
259
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
260
+ NavLink,
261
+ {
262
+ href: item.slug ? `${basePath}/${item.slug}` : basePath,
263
+ onClick: close,
264
+ children: item.title
265
+ }
266
+ ) }, item.slug || i);
207
267
  }
208
- ) }, item.slug || i);
209
- }
210
- if (item.type === "folder") {
211
- return /* @__PURE__ */ jsx(
212
- MobileFolder,
213
- {
214
- folder: item,
215
- basePath,
216
- onNavigate: close
217
- },
218
- i
219
- );
220
- }
221
- return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink, { href: item.href, icon: item.icon, onClick: close, children: item.title }) }, i);
222
- }) })
223
- ] }, section.title))
268
+ if (item.type === "folder") {
269
+ return /* @__PURE__ */ jsx(
270
+ MobileFolder,
271
+ {
272
+ folder: item,
273
+ basePath,
274
+ onNavigate: close
275
+ },
276
+ i
277
+ );
278
+ }
279
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
280
+ NavLink,
281
+ {
282
+ href: item.href,
283
+ icon: item.icon,
284
+ onClick: close,
285
+ children: item.title
286
+ }
287
+ ) }, i);
288
+ }) })
289
+ ]
290
+ },
291
+ section.title
292
+ ))
224
293
  }
225
294
  ),
226
295
  github && /* @__PURE__ */ jsx("div", { className: "px-4 py-3 border-t border-line", children: /* @__PURE__ */ jsxs(
@@ -13,6 +13,6 @@ interface ModalProps {
13
13
  title?: string;
14
14
  children: ReactNode;
15
15
  }
16
- declare function Modal({ open, onClose, title, children }: ModalProps): JSX.Element | null;
16
+ declare function Modal({ open, onClose, title, children, }: ModalProps): JSX.Element | null;
17
17
 
18
18
  export { Modal, type ModalProps };
@@ -5,7 +5,12 @@ import { useFocusTrap } from '../hooks/focustrap';
5
5
  import { useScrollLock } from '../hooks/scrolllock';
6
6
  import { IconX } from './icons';
7
7
 
8
- function Modal({ open, onClose, title, children }) {
8
+ function Modal({
9
+ open,
10
+ onClose,
11
+ title,
12
+ children
13
+ }) {
9
14
  const id = useId();
10
15
  const dialogRef = useRef(null);
11
16
  const [visible, setVisible] = useState(false);
@@ -26,7 +31,9 @@ function Modal({ open, onClose, title, children }) {
26
31
  return () => clearTimeout(timeout);
27
32
  }
28
33
  }, [open]);
29
- if (!visible) return null;
34
+ if (!visible) {
35
+ return null;
36
+ }
30
37
  return /* @__PURE__ */ jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center", children: [
31
38
  /* @__PURE__ */ jsx(
32
39
  "button",