@publish.os/nextjs 0.0.1-alpha.2 → 0.0.1-alpha.3

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 (392) hide show
  1. package/dist/cache/tags.cjs +3 -0
  2. package/dist/cache/tags.d.cts +1 -0
  3. package/dist/cache/tags.d.ts +1 -0
  4. package/dist/cache/tags.js +3 -0
  5. package/dist/config.cjs +78 -0
  6. package/dist/config.d.cts +101 -0
  7. package/dist/config.d.ts +101 -0
  8. package/dist/config.js +48 -0
  9. package/dist/index.cjs +1039 -123
  10. package/dist/index.d.cts +11 -7
  11. package/dist/index.d.ts +11 -7
  12. package/dist/index.js +1027 -110
  13. package/dist/kernel/components/blocks/AgentActions.cjs +425 -0
  14. package/dist/kernel/components/blocks/AgentActions.d.cts +52 -0
  15. package/dist/kernel/components/blocks/AgentActions.d.ts +52 -0
  16. package/dist/kernel/components/blocks/AgentActions.js +429 -0
  17. package/dist/kernel/components/blocks/animated-icon-swap.cjs +101 -0
  18. package/dist/kernel/components/blocks/animated-icon-swap.d.cts +16 -0
  19. package/dist/kernel/components/blocks/animated-icon-swap.d.ts +16 -0
  20. package/dist/kernel/components/blocks/animated-icon-swap.js +74 -0
  21. package/dist/kernel/components/blocks/color-palette.cjs +413 -0
  22. package/dist/kernel/components/blocks/color-palette.d.cts +7 -0
  23. package/dist/kernel/components/blocks/color-palette.d.ts +7 -0
  24. package/dist/kernel/components/blocks/color-palette.js +407 -0
  25. package/dist/kernel/components/blocks/design-system-preview.cjs +592 -0
  26. package/dist/kernel/components/blocks/design-system-preview.d.cts +29 -0
  27. package/dist/kernel/components/blocks/design-system-preview.d.ts +29 -0
  28. package/dist/kernel/components/blocks/design-system-preview.js +655 -0
  29. package/dist/kernel/components/blocks/link-playground.cjs +816 -0
  30. package/dist/kernel/components/blocks/link-playground.d.cts +5 -0
  31. package/dist/kernel/components/blocks/link-playground.d.ts +5 -0
  32. package/dist/kernel/components/blocks/link-playground.js +792 -0
  33. package/dist/kernel/components/blocks/logo-block.cjs +156 -0
  34. package/dist/kernel/components/blocks/logo-block.d.cts +21 -0
  35. package/dist/kernel/components/blocks/logo-block.d.ts +21 -0
  36. package/dist/kernel/components/blocks/logo-block.js +129 -0
  37. package/dist/{components → kernel/components/blocks}/nav-breadcrumb.cjs +19 -38
  38. package/dist/kernel/components/blocks/nav-breadcrumb.d.cts +11 -0
  39. package/dist/kernel/components/blocks/nav-breadcrumb.d.ts +11 -0
  40. package/dist/{components → kernel/components/blocks}/nav-breadcrumb.js +22 -30
  41. package/dist/kernel/components/blocks/navbar.cjs +154 -0
  42. package/dist/kernel/components/blocks/navbar.d.cts +16 -0
  43. package/dist/kernel/components/blocks/navbar.d.ts +16 -0
  44. package/dist/kernel/components/blocks/navbar.js +122 -0
  45. package/dist/kernel/components/blocks/navigation-progress-playground.cjs +735 -0
  46. package/dist/kernel/components/blocks/navigation-progress-playground.d.cts +5 -0
  47. package/dist/kernel/components/blocks/navigation-progress-playground.d.ts +5 -0
  48. package/dist/kernel/components/blocks/navigation-progress-playground.js +722 -0
  49. package/dist/kernel/components/blocks/navigation-progress.cjs +270 -0
  50. package/dist/kernel/components/blocks/navigation-progress.d.cts +16 -0
  51. package/dist/kernel/components/blocks/navigation-progress.d.ts +16 -0
  52. package/dist/kernel/components/blocks/navigation-progress.js +249 -0
  53. package/dist/kernel/components/blocks/next-prev.cjs +142 -0
  54. package/dist/kernel/components/blocks/next-prev.d.cts +11 -0
  55. package/dist/kernel/components/blocks/next-prev.d.ts +11 -0
  56. package/dist/kernel/components/blocks/next-prev.js +105 -0
  57. package/dist/{components → kernel/components/blocks}/page-list.cjs +7 -16
  58. package/dist/{components → kernel/components/blocks}/page-list.d.cts +1 -1
  59. package/dist/{components → kernel/components/blocks}/page-list.d.ts +1 -1
  60. package/dist/{components → kernel/components/blocks}/page-list.js +6 -5
  61. package/dist/kernel/components/blocks/search.cjs +717 -0
  62. package/dist/kernel/components/blocks/search.d.cts +77 -0
  63. package/dist/kernel/components/blocks/search.d.ts +77 -0
  64. package/dist/kernel/components/blocks/search.js +697 -0
  65. package/dist/kernel/components/blocks/sidebar-node.cjs +309 -0
  66. package/dist/kernel/components/blocks/sidebar-node.d.cts +8 -0
  67. package/dist/kernel/components/blocks/sidebar-node.d.ts +8 -0
  68. package/dist/kernel/components/blocks/sidebar-node.js +272 -0
  69. package/dist/kernel/components/blocks/sidebar.cjs +317 -0
  70. package/dist/kernel/components/blocks/sidebar.d.cts +33 -0
  71. package/dist/kernel/components/blocks/sidebar.d.ts +33 -0
  72. package/dist/kernel/components/blocks/sidebar.js +302 -0
  73. package/dist/kernel/components/blocks/theme-toggle.cjs +31 -0
  74. package/dist/kernel/components/blocks/theme-toggle.d.cts +6 -0
  75. package/dist/kernel/components/blocks/theme-toggle.d.ts +6 -0
  76. package/dist/kernel/components/blocks/theme-toggle.js +7 -0
  77. package/dist/kernel/components/blocks/toc.cjs +356 -0
  78. package/dist/kernel/components/blocks/toc.d.cts +10 -0
  79. package/dist/kernel/components/blocks/toc.d.ts +10 -0
  80. package/dist/kernel/components/blocks/toc.js +330 -0
  81. package/dist/kernel/components/mdx/components/blockquote.cjs +66 -0
  82. package/dist/kernel/components/mdx/components/blockquote.d.cts +6 -0
  83. package/dist/kernel/components/mdx/components/blockquote.d.ts +6 -0
  84. package/dist/kernel/components/mdx/components/blockquote.js +39 -0
  85. package/dist/kernel/components/mdx/components/callout.cjs +137 -0
  86. package/dist/kernel/components/mdx/components/callout.d.cts +18 -0
  87. package/dist/kernel/components/mdx/components/callout.d.ts +18 -0
  88. package/dist/kernel/components/mdx/components/callout.js +109 -0
  89. package/dist/kernel/components/mdx/components/code-block.cjs +39 -0
  90. package/dist/kernel/components/mdx/components/code-block.d.cts +9 -0
  91. package/dist/kernel/components/mdx/components/code-block.d.ts +9 -0
  92. package/dist/kernel/components/mdx/components/code-block.js +14 -0
  93. package/dist/kernel/components/mdx/components/figure-caption.cjs +63 -0
  94. package/dist/kernel/components/mdx/components/figure-caption.d.cts +6 -0
  95. package/dist/kernel/components/mdx/components/figure-caption.d.ts +6 -0
  96. package/dist/kernel/components/mdx/components/figure-caption.js +36 -0
  97. package/dist/kernel/components/mdx/components/figure.cjs +78 -0
  98. package/dist/kernel/components/mdx/components/figure.d.cts +10 -0
  99. package/dist/kernel/components/mdx/components/figure.d.ts +10 -0
  100. package/dist/kernel/components/mdx/components/figure.js +53 -0
  101. package/dist/kernel/components/mdx/components/footnotes.cjs +66 -0
  102. package/dist/kernel/components/mdx/components/footnotes.d.cts +6 -0
  103. package/dist/kernel/components/mdx/components/footnotes.d.ts +6 -0
  104. package/dist/kernel/components/mdx/components/footnotes.js +39 -0
  105. package/dist/kernel/components/mdx/components/heading-copy-link.cjs +108 -0
  106. package/dist/kernel/components/mdx/components/heading-copy-link.d.cts +23 -0
  107. package/dist/kernel/components/mdx/components/heading-copy-link.d.ts +23 -0
  108. package/dist/kernel/components/mdx/components/heading-copy-link.js +81 -0
  109. package/dist/kernel/components/mdx/components/heading.cjs +166 -0
  110. package/dist/kernel/components/mdx/components/heading.d.cts +8 -0
  111. package/dist/kernel/components/mdx/components/heading.d.ts +8 -0
  112. package/dist/kernel/components/mdx/components/heading.js +144 -0
  113. package/dist/kernel/components/mdx/components/hr.cjs +34 -0
  114. package/dist/kernel/components/mdx/components/hr.d.cts +9 -0
  115. package/dist/kernel/components/mdx/components/hr.d.ts +9 -0
  116. package/dist/kernel/components/mdx/components/hr.js +9 -0
  117. package/dist/kernel/components/mdx/components/image-zoom.cjs +49 -0
  118. package/dist/kernel/components/mdx/components/image-zoom.d.cts +10 -0
  119. package/dist/kernel/components/mdx/components/image-zoom.d.ts +10 -0
  120. package/dist/kernel/components/mdx/components/image-zoom.js +15 -0
  121. package/dist/kernel/components/mdx/components/image.cjs +192 -0
  122. package/dist/kernel/components/mdx/components/image.d.cts +21 -0
  123. package/dist/kernel/components/mdx/components/image.d.ts +21 -0
  124. package/dist/kernel/components/mdx/components/image.js +157 -0
  125. package/dist/kernel/components/mdx/components/inline-code.cjs +66 -0
  126. package/dist/kernel/components/mdx/components/inline-code.d.cts +6 -0
  127. package/dist/kernel/components/mdx/components/inline-code.d.ts +6 -0
  128. package/dist/kernel/components/mdx/components/inline-code.js +39 -0
  129. package/dist/kernel/components/mdx/components/kbd.cjs +34 -0
  130. package/dist/kernel/components/mdx/components/kbd.d.cts +10 -0
  131. package/dist/kernel/components/mdx/components/kbd.d.ts +10 -0
  132. package/dist/kernel/components/mdx/components/kbd.js +9 -0
  133. package/dist/{components/providers.cjs → kernel/components/mdx/components/link.cjs} +20 -15
  134. package/dist/kernel/components/mdx/components/link.d.cts +11 -0
  135. package/dist/kernel/components/mdx/components/link.d.ts +11 -0
  136. package/dist/kernel/components/mdx/components/link.js +26 -0
  137. package/dist/kernel/components/mdx/components/paragraph.cjs +87 -0
  138. package/dist/kernel/components/mdx/components/paragraph.d.cts +5 -0
  139. package/dist/kernel/components/mdx/components/paragraph.d.ts +5 -0
  140. package/dist/kernel/components/mdx/components/paragraph.js +60 -0
  141. package/dist/kernel/components/mdx/components/pre.cjs +66 -0
  142. package/dist/kernel/components/mdx/components/pre.d.cts +6 -0
  143. package/dist/kernel/components/mdx/components/pre.d.ts +6 -0
  144. package/dist/kernel/components/mdx/components/pre.js +39 -0
  145. package/dist/kernel/components/mdx/components/strikethrough.cjs +63 -0
  146. package/dist/kernel/components/mdx/components/strikethrough.d.cts +6 -0
  147. package/dist/kernel/components/mdx/components/strikethrough.d.ts +6 -0
  148. package/dist/kernel/components/mdx/components/strikethrough.js +36 -0
  149. package/dist/kernel/components/mdx/components/table.cjs +59 -0
  150. package/dist/kernel/components/mdx/components/table.d.cts +10 -0
  151. package/dist/kernel/components/mdx/components/table.d.ts +10 -0
  152. package/dist/kernel/components/mdx/components/table.js +36 -0
  153. package/dist/kernel/components/mdx/components/task-list.cjs +88 -0
  154. package/dist/kernel/components/mdx/components/task-list.d.cts +8 -0
  155. package/dist/kernel/components/mdx/components/task-list.d.ts +8 -0
  156. package/dist/kernel/components/mdx/components/task-list.js +60 -0
  157. package/dist/kernel/components/mdx/components/video-player.cjs +173 -0
  158. package/dist/kernel/components/mdx/components/video-player.d.cts +18 -0
  159. package/dist/kernel/components/mdx/components/video-player.d.ts +18 -0
  160. package/dist/kernel/components/mdx/components/video-player.js +147 -0
  161. package/dist/kernel/components/mdx/components/video.cjs +185 -0
  162. package/dist/kernel/components/mdx/components/video.d.cts +15 -0
  163. package/dist/kernel/components/mdx/components/video.d.ts +15 -0
  164. package/dist/kernel/components/mdx/components/video.js +162 -0
  165. package/dist/kernel/components/mdx/error-boundary.cjs +62 -0
  166. package/dist/{mdx → kernel/components/mdx}/error-boundary.d.cts +3 -8
  167. package/dist/{mdx → kernel/components/mdx}/error-boundary.d.ts +3 -8
  168. package/dist/kernel/components/mdx/error-boundary.js +38 -0
  169. package/dist/{mdx → kernel/components/mdx}/error-fallback.cjs +8 -8
  170. package/dist/{mdx → kernel/components/mdx}/error-fallback.js +8 -8
  171. package/dist/kernel/components/mdx/mdx.cjs +141 -0
  172. package/dist/kernel/components/mdx/mdx.d.cts +22 -0
  173. package/dist/kernel/components/mdx/mdx.d.ts +22 -0
  174. package/dist/kernel/components/mdx/mdx.js +109 -0
  175. package/dist/kernel/components/mdx/rehype-heading-ids.cjs +113 -0
  176. package/dist/kernel/components/mdx/rehype-heading-ids.d.cts +10 -0
  177. package/dist/kernel/components/mdx/rehype-heading-ids.d.ts +10 -0
  178. package/dist/kernel/components/mdx/rehype-heading-ids.js +86 -0
  179. package/dist/kernel/components/mdx/types.cjs +18 -0
  180. package/dist/kernel/components/mdx/types.d.cts +18 -0
  181. package/dist/kernel/components/mdx/types.d.ts +18 -0
  182. package/dist/kernel/components/mdx/types.js +0 -0
  183. package/dist/kernel/components/ui/accordion.cjs +104 -0
  184. package/dist/kernel/components/ui/accordion.d.cts +16 -0
  185. package/dist/kernel/components/ui/accordion.d.ts +16 -0
  186. package/dist/kernel/components/ui/accordion.js +76 -0
  187. package/dist/kernel/components/ui/badge.cjs +75 -0
  188. package/dist/kernel/components/ui/badge.d.cts +12 -0
  189. package/dist/kernel/components/ui/badge.d.ts +12 -0
  190. package/dist/kernel/components/ui/badge.js +47 -0
  191. package/dist/kernel/components/ui/breadcrumb-trail.cjs +238 -0
  192. package/dist/kernel/components/ui/breadcrumb-trail.d.cts +13 -0
  193. package/dist/kernel/components/ui/breadcrumb-trail.d.ts +13 -0
  194. package/dist/kernel/components/ui/breadcrumb-trail.js +225 -0
  195. package/dist/kernel/components/ui/breadcrumb.cjs +399 -0
  196. package/dist/kernel/components/ui/breadcrumb.d.cts +52 -0
  197. package/dist/kernel/components/ui/breadcrumb.d.ts +52 -0
  198. package/dist/kernel/components/ui/breadcrumb.js +365 -0
  199. package/dist/kernel/components/ui/button-group.cjs +144 -0
  200. package/dist/kernel/components/ui/button-group.d.cts +19 -0
  201. package/dist/kernel/components/ui/button-group.d.ts +19 -0
  202. package/dist/kernel/components/ui/button-group.js +116 -0
  203. package/dist/kernel/components/ui/button.cjs +147 -0
  204. package/dist/kernel/components/ui/button.d.cts +23 -0
  205. package/dist/kernel/components/ui/button.d.ts +23 -0
  206. package/dist/kernel/components/ui/button.js +121 -0
  207. package/dist/kernel/components/ui/card.cjs +133 -0
  208. package/dist/kernel/components/ui/card.d.cts +17 -0
  209. package/dist/kernel/components/ui/card.d.ts +17 -0
  210. package/dist/kernel/components/ui/card.js +101 -0
  211. package/dist/kernel/components/ui/dialog.cjs +149 -0
  212. package/dist/kernel/components/ui/dialog.d.cts +22 -0
  213. package/dist/kernel/components/ui/dialog.d.ts +22 -0
  214. package/dist/kernel/components/ui/dialog.js +118 -0
  215. package/dist/kernel/components/ui/drawer.cjs +163 -0
  216. package/dist/kernel/components/ui/drawer.d.cts +24 -0
  217. package/dist/kernel/components/ui/drawer.d.ts +24 -0
  218. package/dist/kernel/components/ui/drawer.js +131 -0
  219. package/dist/kernel/components/ui/input.cjs +96 -0
  220. package/dist/kernel/components/ui/input.d.cts +18 -0
  221. package/dist/kernel/components/ui/input.d.ts +18 -0
  222. package/dist/kernel/components/ui/input.js +70 -0
  223. package/dist/kernel/components/ui/kbd.cjs +105 -0
  224. package/dist/kernel/components/ui/kbd.d.cts +13 -0
  225. package/dist/kernel/components/ui/kbd.d.ts +13 -0
  226. package/dist/kernel/components/ui/kbd.js +77 -0
  227. package/dist/kernel/components/ui/link.cjs +253 -0
  228. package/dist/kernel/components/ui/link.d.cts +31 -0
  229. package/dist/kernel/components/ui/link.d.ts +31 -0
  230. package/dist/kernel/components/ui/link.js +217 -0
  231. package/dist/kernel/components/ui/menu.cjs +301 -0
  232. package/dist/kernel/components/ui/menu.d.cts +70 -0
  233. package/dist/kernel/components/ui/menu.d.ts +70 -0
  234. package/dist/kernel/components/ui/menu.js +256 -0
  235. package/dist/kernel/components/ui/meta-key.cjs +34 -0
  236. package/dist/kernel/components/ui/meta-key.d.cts +12 -0
  237. package/dist/kernel/components/ui/meta-key.d.ts +12 -0
  238. package/dist/kernel/components/ui/meta-key.js +9 -0
  239. package/dist/kernel/components/ui/navigation-menu.cjs +253 -0
  240. package/dist/kernel/components/ui/navigation-menu.d.cts +47 -0
  241. package/dist/kernel/components/ui/navigation-menu.d.ts +47 -0
  242. package/dist/kernel/components/ui/navigation-menu.js +216 -0
  243. package/dist/kernel/components/ui/popover.cjs +168 -0
  244. package/dist/kernel/components/ui/popover.d.cts +24 -0
  245. package/dist/kernel/components/ui/popover.d.ts +24 -0
  246. package/dist/kernel/components/ui/popover.js +136 -0
  247. package/dist/kernel/components/ui/progress.cjs +112 -0
  248. package/dist/kernel/components/ui/progress.d.cts +16 -0
  249. package/dist/kernel/components/ui/progress.d.ts +16 -0
  250. package/dist/kernel/components/ui/progress.js +84 -0
  251. package/dist/kernel/components/ui/scroll-area.cjs +413 -0
  252. package/dist/kernel/components/ui/scroll-area.d.cts +58 -0
  253. package/dist/kernel/components/ui/scroll-area.d.ts +58 -0
  254. package/dist/kernel/components/ui/scroll-area.js +390 -0
  255. package/dist/kernel/components/ui/select.cjs +244 -0
  256. package/dist/kernel/components/ui/select.d.cts +40 -0
  257. package/dist/kernel/components/ui/select.d.ts +40 -0
  258. package/dist/kernel/components/ui/select.js +205 -0
  259. package/dist/kernel/components/ui/separator.cjs +73 -0
  260. package/dist/kernel/components/ui/separator.d.cts +8 -0
  261. package/dist/kernel/components/ui/separator.d.ts +8 -0
  262. package/dist/kernel/components/ui/separator.js +48 -0
  263. package/dist/kernel/components/ui/table.cjs +131 -0
  264. package/dist/kernel/components/ui/table.d.cts +11 -0
  265. package/dist/kernel/components/ui/table.d.ts +11 -0
  266. package/dist/kernel/components/ui/table.js +99 -0
  267. package/dist/kernel/components/ui/tabs.cjs +450 -0
  268. package/dist/kernel/components/ui/tabs.d.cts +82 -0
  269. package/dist/kernel/components/ui/tabs.d.ts +82 -0
  270. package/dist/kernel/components/ui/tabs.js +409 -0
  271. package/dist/kernel/components/ui/text.cjs +184 -0
  272. package/dist/kernel/components/ui/text.d.cts +17 -0
  273. package/dist/kernel/components/ui/text.d.ts +17 -0
  274. package/dist/kernel/components/ui/text.js +156 -0
  275. package/dist/kernel/components/ui/theme-toggle.cjs +108 -0
  276. package/dist/kernel/components/ui/theme-toggle.d.cts +10 -0
  277. package/dist/kernel/components/ui/theme-toggle.d.ts +10 -0
  278. package/dist/kernel/components/ui/theme-toggle.js +84 -0
  279. package/dist/kernel/components/ui/toast.cjs +154 -0
  280. package/dist/kernel/components/ui/toast.d.cts +26 -0
  281. package/dist/kernel/components/ui/toast.d.ts +26 -0
  282. package/dist/kernel/components/ui/toast.js +120 -0
  283. package/dist/kernel/components/ui/tooltip.cjs +127 -0
  284. package/dist/kernel/components/ui/tooltip.d.cts +20 -0
  285. package/dist/kernel/components/ui/tooltip.d.ts +20 -0
  286. package/dist/kernel/components/ui/tooltip.js +97 -0
  287. package/dist/kernel/defaults.registry.cjs +541 -0
  288. package/dist/kernel/defaults.registry.d.cts +469 -0
  289. package/dist/kernel/defaults.registry.d.ts +469 -0
  290. package/dist/kernel/defaults.registry.js +516 -0
  291. package/dist/kernel/routes/agent/markdown.cjs +208 -0
  292. package/dist/kernel/routes/agent/markdown.d.cts +59 -0
  293. package/dist/kernel/routes/agent/markdown.d.ts +59 -0
  294. package/dist/kernel/routes/agent/markdown.js +180 -0
  295. package/dist/{layouts → kernel/routes/layouts}/group.cjs +39 -15
  296. package/dist/kernel/routes/layouts/group.d.cts +20 -0
  297. package/dist/kernel/routes/layouts/group.d.ts +20 -0
  298. package/dist/{layouts → kernel/routes/layouts}/group.js +39 -15
  299. package/dist/kernel/routes/metadata/feed.cjs +297 -0
  300. package/dist/kernel/routes/metadata/feed.d.cts +21 -0
  301. package/dist/kernel/routes/metadata/feed.d.ts +21 -0
  302. package/dist/kernel/routes/metadata/feed.js +269 -0
  303. package/dist/kernel/routes/metadata/llms.cjs +234 -0
  304. package/dist/kernel/routes/metadata/llms.d.cts +27 -0
  305. package/dist/kernel/routes/metadata/llms.d.ts +27 -0
  306. package/dist/kernel/routes/metadata/llms.js +206 -0
  307. package/dist/kernel/routes/metadata/og-image.cjs +630 -0
  308. package/dist/kernel/routes/metadata/og-image.d.cts +62 -0
  309. package/dist/kernel/routes/metadata/og-image.d.ts +62 -0
  310. package/dist/kernel/routes/metadata/og-image.js +604 -0
  311. package/dist/{routes → kernel/routes/metadata}/robots.cjs +48 -4
  312. package/dist/{routes → kernel/routes/metadata}/robots.d.cts +2 -1
  313. package/dist/{routes → kernel/routes/metadata}/robots.d.ts +2 -1
  314. package/dist/kernel/routes/metadata/robots.js +113 -0
  315. package/dist/kernel/routes/metadata/sitemap.cjs +182 -0
  316. package/dist/kernel/routes/metadata/sitemap.d.cts +8 -0
  317. package/dist/kernel/routes/metadata/sitemap.d.ts +8 -0
  318. package/dist/kernel/routes/metadata/sitemap.js +156 -0
  319. package/dist/{pages → kernel/routes/pages}/group.cjs +107 -6
  320. package/dist/{pages → kernel/routes/pages}/group.d.cts +4 -2
  321. package/dist/{pages → kernel/routes/pages}/group.d.ts +4 -2
  322. package/dist/{pages → kernel/routes/pages}/group.js +107 -6
  323. package/dist/kernel/routes/pages/leaf.cjs +421 -0
  324. package/dist/kernel/routes/pages/leaf.d.cts +36 -0
  325. package/dist/kernel/routes/pages/leaf.d.ts +36 -0
  326. package/dist/kernel/routes/pages/leaf.js +397 -0
  327. package/dist/{pages → kernel/routes/pages}/root.cjs +108 -6
  328. package/dist/{pages → kernel/routes/pages}/root.d.cts +4 -2
  329. package/dist/{pages → kernel/routes/pages}/root.d.ts +4 -2
  330. package/dist/kernel/routes/pages/root.js +203 -0
  331. package/dist/keyboard-shortcuts.cjs +345 -0
  332. package/dist/keyboard-shortcuts.d.cts +34 -0
  333. package/dist/keyboard-shortcuts.d.ts +34 -0
  334. package/dist/keyboard-shortcuts.js +326 -0
  335. package/dist/resolvers/manifest-resolver.cjs +7 -3
  336. package/dist/resolvers/manifest-resolver.d.cts +2 -2
  337. package/dist/resolvers/manifest-resolver.d.ts +2 -2
  338. package/dist/resolvers/manifest-resolver.js +7 -3
  339. package/dist/search.cjs +411 -0
  340. package/dist/search.d.cts +20 -0
  341. package/dist/search.d.ts +20 -0
  342. package/dist/search.js +393 -0
  343. package/dist/types.cjs +12 -0
  344. package/dist/types.d.cts +132 -7
  345. package/dist/types.d.ts +132 -7
  346. package/dist/types.js +5 -0
  347. package/dist/utils/heading-ids.cjs +119 -0
  348. package/dist/utils/heading-ids.d.cts +15 -0
  349. package/dist/utils/heading-ids.d.ts +15 -0
  350. package/dist/utils/heading-ids.js +90 -0
  351. package/package.json +36 -39
  352. package/dist/components/color-palette.cjs +0 -408
  353. package/dist/components/color-palette.d.cts +0 -5
  354. package/dist/components/color-palette.d.ts +0 -5
  355. package/dist/components/color-palette.js +0 -388
  356. package/dist/components/nav-breadcrumb.d.cts +0 -9
  357. package/dist/components/nav-breadcrumb.d.ts +0 -9
  358. package/dist/components/providers.d.cts +0 -8
  359. package/dist/components/providers.d.ts +0 -8
  360. package/dist/components/providers.js +0 -20
  361. package/dist/components/site-header.cjs +0 -302
  362. package/dist/components/site-header.d.cts +0 -12
  363. package/dist/components/site-header.d.ts +0 -12
  364. package/dist/components/site-header.js +0 -268
  365. package/dist/components/theme-toggle.cjs +0 -147
  366. package/dist/components/theme-toggle.d.cts +0 -5
  367. package/dist/components/theme-toggle.d.ts +0 -5
  368. package/dist/components/theme-toggle.js +0 -123
  369. package/dist/layouts/group.d.cts +0 -15
  370. package/dist/layouts/group.d.ts +0 -15
  371. package/dist/mdx/error-boundary.cjs +0 -94
  372. package/dist/mdx/error-boundary.js +0 -70
  373. package/dist/mdx/mdx.cjs +0 -182
  374. package/dist/mdx/mdx.d.cts +0 -10
  375. package/dist/mdx/mdx.d.ts +0 -10
  376. package/dist/mdx/mdx.js +0 -147
  377. package/dist/pages/leaf.cjs +0 -203
  378. package/dist/pages/leaf.d.cts +0 -23
  379. package/dist/pages/leaf.d.ts +0 -23
  380. package/dist/pages/leaf.js +0 -176
  381. package/dist/pages/root.js +0 -101
  382. package/dist/routes/llms.cjs +0 -101
  383. package/dist/routes/llms.d.cts +0 -7
  384. package/dist/routes/llms.d.ts +0 -7
  385. package/dist/routes/llms.js +0 -76
  386. package/dist/routes/robots.js +0 -69
  387. package/dist/routes/sitemap.cjs +0 -108
  388. package/dist/routes/sitemap.d.cts +0 -5
  389. package/dist/routes/sitemap.d.ts +0 -5
  390. package/dist/routes/sitemap.js +0 -83
  391. /package/dist/{mdx → kernel/components/mdx}/error-fallback.d.cts +0 -0
  392. /package/dist/{mdx → kernel/components/mdx}/error-fallback.d.ts +0 -0
@@ -0,0 +1,655 @@
1
+ "use client";
2
+
3
+ // src/kernel/components/blocks/design-system-preview.tsx
4
+ import { AnimatedIconSwap } from "./animated-icon-swap.js";
5
+ import ColorPalette from "./color-palette.js";
6
+ import { InlineCode } from "../mdx/components/inline-code.js";
7
+ import {
8
+ Accordion,
9
+ AccordionHeader,
10
+ AccordionItem,
11
+ AccordionPanel,
12
+ AccordionTrigger
13
+ } from "../ui/accordion.js";
14
+ import { Badge } from "../ui/badge.js";
15
+ import {
16
+ Breadcrumb,
17
+ BreadcrumbItem,
18
+ BreadcrumbLink,
19
+ BreadcrumbList,
20
+ BreadcrumbPage,
21
+ BreadcrumbSeparator
22
+ } from "../ui/breadcrumb.js";
23
+ import { Button, buttonVariants } from "../ui/button.js";
24
+ import {
25
+ ButtonGroup,
26
+ ButtonGroupSeparator,
27
+ ButtonGroupText
28
+ } from "../ui/button-group.js";
29
+ import {
30
+ Card,
31
+ CardContent,
32
+ CardDescription,
33
+ CardHeader,
34
+ CardTitle
35
+ } from "../ui/card.js";
36
+ import {
37
+ Dialog,
38
+ DialogBackdrop,
39
+ DialogPopup,
40
+ DialogPortal,
41
+ DialogTitle,
42
+ DialogTrigger
43
+ } from "../ui/dialog.js";
44
+ import {
45
+ Drawer,
46
+ DrawerPopup,
47
+ DrawerPortal,
48
+ DrawerTitle,
49
+ DrawerTrigger,
50
+ DrawerViewport
51
+ } from "../ui/drawer.js";
52
+ import { Input } from "../ui/input.js";
53
+ import { Kbd } from "../ui/kbd.js";
54
+ import { Link } from "../ui/link.js";
55
+ import {
56
+ Menu,
57
+ MenuItem,
58
+ MenuPopup,
59
+ MenuPortal,
60
+ MenuPositioner,
61
+ MenuTrigger
62
+ } from "../ui/menu.js";
63
+ import { MetaKey } from "../ui/meta-key.js";
64
+ import {
65
+ Popover,
66
+ PopoverPopup,
67
+ PopoverPortal,
68
+ PopoverPositioner,
69
+ PopoverTitle,
70
+ PopoverTrigger
71
+ } from "../ui/popover.js";
72
+ import {
73
+ Progress,
74
+ ProgressIndicator,
75
+ ProgressTrack
76
+ } from "../ui/progress.js";
77
+ import { ScrollArea } from "../ui/scroll-area.js";
78
+ import {
79
+ Select,
80
+ SelectIcon,
81
+ SelectItem,
82
+ SelectItemIndicator,
83
+ SelectItemText,
84
+ SelectList,
85
+ SelectPopup,
86
+ SelectPortal,
87
+ SelectPositioner,
88
+ SelectTrigger,
89
+ SelectValue
90
+ } from "../ui/select.js";
91
+ import { Separator } from "../ui/separator.js";
92
+ import {
93
+ Table,
94
+ TableBody,
95
+ TableCell,
96
+ TableHead,
97
+ TableHeader,
98
+ TableRow
99
+ } from "../ui/table.js";
100
+ import {
101
+ NavigationTabs,
102
+ NavigationTabsIndicator,
103
+ NavigationTabsLink,
104
+ NavigationTabsList,
105
+ Tabs,
106
+ TabsIndicator,
107
+ TabsList,
108
+ TabsPanel,
109
+ TabsTab
110
+ } from "../ui/tabs.js";
111
+ import { Text } from "../ui/text.js";
112
+ import {
113
+ Toast,
114
+ ToastContent,
115
+ ToastDescription,
116
+ ToastProvider,
117
+ ToastTitle
118
+ } from "../ui/toast.js";
119
+ import {
120
+ Tooltip,
121
+ TooltipPopup,
122
+ TooltipPortal,
123
+ TooltipPositioner,
124
+ TooltipProvider,
125
+ TooltipTrigger
126
+ } from "../ui/tooltip.js";
127
+ import { Check, Copy } from "lucide-react";
128
+ import { useState } from "react";
129
+ import { jsx, jsxs } from "react/jsx-runtime";
130
+ var tabs = [
131
+ { id: "tokens", label: "Tokens" },
132
+ { id: "typography", label: "Typography" },
133
+ { id: "ui", label: "UI" },
134
+ { id: "mdx", label: "MDX" },
135
+ { id: "blocks", label: "Blocks" }
136
+ ];
137
+ var scrollRows = Array.from({ length: 8 }, (_, index) => ({
138
+ id: `row-${index + 1}`,
139
+ label: `Scrollable row ${index + 1}`
140
+ }));
141
+ function hasFixture(items, name) {
142
+ return items.some((item) => item.name === name);
143
+ }
144
+ function PreviewCell({
145
+ children,
146
+ name
147
+ }) {
148
+ return /* @__PURE__ */ jsxs("section", { className: "relative flex min-h-72 items-center justify-center border-b border-r border-stroke-3 bg-surface-1 p-8", children: [
149
+ /* @__PURE__ */ jsx("h3", { className: "absolute left-4 top-4 text-xs font-medium text-foreground-3", children: name }),
150
+ children
151
+ ] });
152
+ }
153
+ function TypographyPreview() {
154
+ return /* @__PURE__ */ jsxs("div", { className: "grid border-l border-t border-stroke-3 md:grid-cols-2", children: [
155
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Headings", children: /* @__PURE__ */ jsxs("div", { className: "space-y-3 text-foreground-1", children: [
156
+ /* @__PURE__ */ jsx("h1", { className: "text-4xl font-semibold tracking-tight", children: "Heading One" }),
157
+ /* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold tracking-tight", children: "Heading Two" }),
158
+ /* @__PURE__ */ jsx("h3", { className: "text-xl font-medium", children: "Heading Three" })
159
+ ] }) }),
160
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Paragraph", children: /* @__PURE__ */ jsx(Text, { className: "max-w-md text-foreground-2", children: "Good typography keeps dense documentation readable while leaving enough contrast for scanning headings, links, and inline code." }) }),
161
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Inline", children: /* @__PURE__ */ jsxs("p", { className: "text-sm leading-7 text-foreground-2", children: [
162
+ "A paragraph with ",
163
+ /* @__PURE__ */ jsx(Link, { href: "/ds", children: "a link" }),
164
+ ",",
165
+ " ",
166
+ /* @__PURE__ */ jsx(InlineCode, { children: "code" }),
167
+ ", and ",
168
+ /* @__PURE__ */ jsx(Kbd, { children: "K" }),
169
+ "."
170
+ ] }) }),
171
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Longform", children: /* @__PURE__ */ jsx("blockquote", { className: "max-w-md border-l-2 border-accent-1 pl-4 text-sm leading-7 text-foreground-2", children: "The preview should reveal how content feels in real reading contexts, not only as isolated color chips." }) })
172
+ ] });
173
+ }
174
+ function UiPreview({ items = [] }) {
175
+ return /* @__PURE__ */ jsxs("div", { className: "grid border-l border-t border-stroke-3 md:grid-cols-2 xl:grid-cols-4", children: [
176
+ items.map((item) => /* @__PURE__ */ jsx(PreviewCell, { name: item.name, children: item.children }, item.name)),
177
+ !hasFixture(items, "Button") && /* @__PURE__ */ jsx(PreviewCell, { name: "Button", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
178
+ /* @__PURE__ */ jsx(Button, { children: "Primary" }),
179
+ /* @__PURE__ */ jsx(Button, { variant: "secondary", children: "Secondary" }),
180
+ /* @__PURE__ */ jsx(Button, { disabled: true, variant: "outline", children: "Disabled" })
181
+ ] }) }),
182
+ /* @__PURE__ */ jsx(PreviewCell, { name: "ButtonGroup", children: /* @__PURE__ */ jsxs("div", { className: "grid gap-4", children: [
183
+ /* @__PURE__ */ jsxs(ButtonGroup, { children: [
184
+ /* @__PURE__ */ jsx(Button, { variant: "secondary", children: "Draft" }),
185
+ /* @__PURE__ */ jsx(Button, { variant: "secondary", children: "Preview" }),
186
+ /* @__PURE__ */ jsx(Button, { variant: "secondary", children: "Publish" })
187
+ ] }),
188
+ /* @__PURE__ */ jsxs(ButtonGroup, { children: [
189
+ /* @__PURE__ */ jsx(ButtonGroupText, { size: "sm", children: "v1.2.0" }),
190
+ /* @__PURE__ */ jsx(ButtonGroupSeparator, {}),
191
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", children: "Copy" })
192
+ ] }),
193
+ /* @__PURE__ */ jsxs(ButtonGroup, { orientation: "vertical", children: [
194
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "secondary", children: "Move up" }),
195
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "secondary", children: "Move down" })
196
+ ] })
197
+ ] }) }),
198
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Badge", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap justify-center gap-2", children: [
199
+ /* @__PURE__ */ jsx(Badge, { variant: "primary", children: "Primary" }),
200
+ /* @__PURE__ */ jsx(Badge, { children: "Default" }),
201
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Outline" })
202
+ ] }) }),
203
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Input", children: /* @__PURE__ */ jsxs(
204
+ "label",
205
+ {
206
+ className: "grid w-full max-w-xs gap-2 text-sm text-foreground-2",
207
+ htmlFor: "design-system-preview-email",
208
+ children: [
209
+ "Email",
210
+ /* @__PURE__ */ jsx(
211
+ Input,
212
+ {
213
+ id: "design-system-preview-email",
214
+ placeholder: "name@example.com",
215
+ type: "email"
216
+ }
217
+ )
218
+ ]
219
+ }
220
+ ) }),
221
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Link", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
222
+ /* @__PURE__ */ jsx(Link, { color: "default", href: "#", variant: "link.standalone", children: "Default standalone" }),
223
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "#", variant: "link.inline", children: "Accent inline" }),
224
+ /* @__PURE__ */ jsx(
225
+ Link,
226
+ {
227
+ color: "default",
228
+ href: "#",
229
+ leftIcon: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\u2190" }),
230
+ variant: "link.standalone",
231
+ children: "Back to overview"
232
+ }
233
+ ),
234
+ /* @__PURE__ */ jsx(
235
+ Link,
236
+ {
237
+ color: "accent",
238
+ href: "#",
239
+ rightIcon: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\u2197" }),
240
+ variant: "link.standalone",
241
+ children: "External resource"
242
+ }
243
+ ),
244
+ /* @__PURE__ */ jsx(Link, { color: "accent", disabled: true, href: "#", variant: "link.standalone", children: "Disabled link" }),
245
+ /* @__PURE__ */ jsx(Link, { href: "#", size: "sm", variant: "button.primary", children: "Link as button" })
246
+ ] }) }),
247
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Link colors", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
248
+ /* @__PURE__ */ jsx(Link, { href: "/ds", color: "green-300", children: "Docs" }),
249
+ /* @__PURE__ */ jsx(Link, { href: "/ds", color: "purple-800", children: "Purple link" }),
250
+ /* @__PURE__ */ jsx(Link, { href: "/ds", color: "accent-solid-hover", children: "Accent hover" }),
251
+ /* @__PURE__ */ jsx(Link, { href: "/ds", color: "foreground-3", children: "Foreground 3" }),
252
+ /* @__PURE__ */ jsx(Link, { href: "/ds", color: "--brand-link", children: "Brand var" }),
253
+ /* @__PURE__ */ jsx(Link, { href: "/ds", color: "var(--brand-link)", children: "Brand var" }),
254
+ /* @__PURE__ */ jsx(Link, { href: "/ds", color: "oklch(55% 0.18 280)", children: "Raw OKLCH" })
255
+ ] }) }),
256
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Link Scale", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-2", children: [
257
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "#", size: "xs", variant: "link.standalone", children: "Extra small link" }),
258
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "#", size: "sm", variant: "link.standalone", children: "Small link" }),
259
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "#", size: "md", variant: "link.standalone", children: "Medium link" }),
260
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "#", size: "lg", variant: "link.standalone", children: "Large link" }),
261
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "#", size: "xl", variant: "link.standalone", children: "Extra large link" })
262
+ ] }) }),
263
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Link Inline", children: /* @__PURE__ */ jsxs("div", { className: "max-w-xs text-sm leading-7 text-foreground-2", children: [
264
+ "Start:",
265
+ /* @__PURE__ */ jsxs("ol", { className: "mt-2 list-decimal space-y-1 pl-6", children: [
266
+ /* @__PURE__ */ jsxs("li", { children: [
267
+ "Connect a",
268
+ " ",
269
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "#", variant: "link.inline", children: "custom domain" })
270
+ ] }),
271
+ /* @__PURE__ */ jsxs("li", { children: [
272
+ "Review the",
273
+ " ",
274
+ /* @__PURE__ */ jsx(Link, { color: "default", href: "#", variant: "link.inline", children: "deployment checklist" })
275
+ ] })
276
+ ] })
277
+ ] }) }),
278
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Composed styles", children: /* @__PURE__ */ jsxs("div", { className: "grid w-full max-w-sm gap-5", children: [
279
+ /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsxs(BreadcrumbList, { children: [
280
+ /* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbLink, { href: "#", children: "Default" }) }),
281
+ /* @__PURE__ */ jsx(BreadcrumbSeparator, {}),
282
+ /* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbLink, { href: "#", variant: "link.standalone", children: "Link" }) }),
283
+ /* @__PURE__ */ jsx(BreadcrumbSeparator, {}),
284
+ /* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbLink, { href: "#", size: "sm", variant: "button.ghost", children: "Button" }) }),
285
+ /* @__PURE__ */ jsx(BreadcrumbSeparator, {}),
286
+ /* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbPage, { children: "Page" }) })
287
+ ] }) }),
288
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
289
+ /* @__PURE__ */ jsx(Link, { href: "#", variant: "link.inline", children: "Link inline" }),
290
+ /* @__PURE__ */ jsx(Link, { href: "#", size: "sm", variant: "button.secondary", children: "Link button" }),
291
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "secondary", children: "Button" })
292
+ ] })
293
+ ] }) }),
294
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Text", children: /* @__PURE__ */ jsxs("div", { className: "max-w-xs space-y-2", children: [
295
+ /* @__PURE__ */ jsx(Text, { weight: "semibold", children: "Body text" }),
296
+ /* @__PURE__ */ jsx(Text, { className: "text-foreground-2", size: "sm", children: "Supporting copy" }),
297
+ /* @__PURE__ */ jsx(Text, { size: "xs", variant: "label", children: "Small interface text" }),
298
+ /* @__PURE__ */ jsx(Text, { size: "xs", variant: "overline", children: "Overline" })
299
+ ] }) }),
300
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Select", children: /* @__PURE__ */ jsxs(Select, { defaultValue: "docs", children: [
301
+ /* @__PURE__ */ jsxs(SelectTrigger, { className: "w-48", children: [
302
+ /* @__PURE__ */ jsx(SelectValue, { placeholder: "Choose section" }),
303
+ /* @__PURE__ */ jsx(SelectIcon, {})
304
+ ] }),
305
+ /* @__PURE__ */ jsx(SelectPortal, { children: /* @__PURE__ */ jsx(SelectPositioner, { children: /* @__PURE__ */ jsx(SelectPopup, { children: /* @__PURE__ */ jsxs(SelectList, { children: [
306
+ /* @__PURE__ */ jsxs(SelectItem, { value: "docs", children: [
307
+ /* @__PURE__ */ jsx(SelectItemIndicator, {}),
308
+ /* @__PURE__ */ jsx(SelectItemText, { children: "Docs" })
309
+ ] }),
310
+ /* @__PURE__ */ jsxs(SelectItem, { value: "api", children: [
311
+ /* @__PURE__ */ jsx(SelectItemIndicator, {}),
312
+ /* @__PURE__ */ jsx(SelectItemText, { children: "API" })
313
+ ] })
314
+ ] }) }) }) })
315
+ ] }) }),
316
+ /* @__PURE__ */ jsx(PreviewCell, { name: "ScrollArea", children: /* @__PURE__ */ jsx(
317
+ ScrollArea,
318
+ {
319
+ className: "h-36 w-56 border border-stroke-2",
320
+ contentClassName: "space-y-3 p-4 text-sm text-foreground-2",
321
+ mask: { height: 16 },
322
+ variant: "gradient",
323
+ children: scrollRows.map((row) => /* @__PURE__ */ jsx("p", { children: row.label }, row.id))
324
+ }
325
+ ) }),
326
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Tooltip", children: /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
327
+ /* @__PURE__ */ jsx(TooltipTrigger, { className: buttonVariants({ variant: "outline" }), children: "Hover" }),
328
+ /* @__PURE__ */ jsx(TooltipPortal, { children: /* @__PURE__ */ jsx(TooltipPositioner, { children: /* @__PURE__ */ jsx(TooltipPopup, { children: "Helpful detail" }) }) })
329
+ ] }) }) }),
330
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Popover", children: /* @__PURE__ */ jsxs(Popover, { children: [
331
+ /* @__PURE__ */ jsx(PopoverTrigger, { className: buttonVariants({ variant: "outline" }), children: "Open" }),
332
+ /* @__PURE__ */ jsx(PopoverPortal, { children: /* @__PURE__ */ jsx(PopoverPositioner, { children: /* @__PURE__ */ jsxs(PopoverPopup, { children: [
333
+ /* @__PURE__ */ jsx(PopoverTitle, { children: "Popover" }),
334
+ /* @__PURE__ */ jsx(Text, { className: "mt-2 text-foreground-2", size: "sm", children: "Floating content with tokenized surface styles." })
335
+ ] }) }) })
336
+ ] }) }),
337
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Dialog", children: /* @__PURE__ */ jsxs(Dialog, { children: [
338
+ /* @__PURE__ */ jsx(DialogTrigger, { className: buttonVariants({ variant: "outline" }), children: "Open dialog" }),
339
+ /* @__PURE__ */ jsxs(DialogPortal, { children: [
340
+ /* @__PURE__ */ jsx(DialogBackdrop, {}),
341
+ /* @__PURE__ */ jsxs(DialogPopup, { children: [
342
+ /* @__PURE__ */ jsx(DialogTitle, { children: "Dialog title" }),
343
+ /* @__PURE__ */ jsx(Text, { className: "mt-2 text-foreground-2", size: "sm", children: "Accessible modal behavior is handled by Base UI." })
344
+ ] })
345
+ ] })
346
+ ] }) }),
347
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Menu", children: /* @__PURE__ */ jsxs(Menu, { children: [
348
+ /* @__PURE__ */ jsx(MenuTrigger, { className: buttonVariants({ variant: "outline" }), children: "Actions" }),
349
+ /* @__PURE__ */ jsx(MenuPortal, { children: /* @__PURE__ */ jsx(MenuPositioner, { children: /* @__PURE__ */ jsxs(MenuPopup, { children: [
350
+ /* @__PURE__ */ jsx(MenuItem, { children: "Copy link" }),
351
+ /* @__PURE__ */ jsx(MenuItem, { children: "Open settings" })
352
+ ] }) }) })
353
+ ] }) }),
354
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Drawer", children: /* @__PURE__ */ jsxs(Drawer, { children: [
355
+ /* @__PURE__ */ jsx(DrawerTrigger, { className: buttonVariants({ variant: "outline" }), children: "Open drawer" }),
356
+ /* @__PURE__ */ jsx(DrawerPortal, { children: /* @__PURE__ */ jsx(DrawerViewport, { children: /* @__PURE__ */ jsxs(DrawerPopup, { children: [
357
+ /* @__PURE__ */ jsx(DrawerTitle, { children: "Drawer" }),
358
+ /* @__PURE__ */ jsx(Text, { className: "mt-2 text-foreground-2", size: "sm", children: "Responsive panel for contextual actions." })
359
+ ] }) }) })
360
+ ] }) }),
361
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Tabs base", children: /* @__PURE__ */ jsxs(Tabs, { className: "w-full max-w-xs", defaultValue: "one", variant: "base", children: [
362
+ /* @__PURE__ */ jsxs(TabsList, { "aria-label": "Base tabs", children: [
363
+ /* @__PURE__ */ jsx(TabsTab, { value: "one", children: "One" }),
364
+ /* @__PURE__ */ jsx(TabsTab, { value: "two", children: "Two" })
365
+ ] }),
366
+ /* @__PURE__ */ jsx(TabsPanel, { className: "mt-4 text-sm text-foreground-2", value: "one", children: "First panel" }),
367
+ /* @__PURE__ */ jsx(TabsPanel, { className: "mt-4 text-sm text-foreground-2", value: "two", children: "Second panel" })
368
+ ] }) }),
369
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Tabs button", children: /* @__PURE__ */ jsxs(Tabs, { className: "w-full max-w-xs", defaultValue: "draft", variant: "button", children: [
370
+ /* @__PURE__ */ jsxs(TabsList, { "aria-label": "Button tabs", children: [
371
+ /* @__PURE__ */ jsx(TabsTab, { value: "draft", children: "Draft" }),
372
+ /* @__PURE__ */ jsx(TabsTab, { value: "review", children: "Review" }),
373
+ /* @__PURE__ */ jsx(TabsTab, { value: "live", children: "Live" })
374
+ ] }),
375
+ /* @__PURE__ */ jsx(TabsPanel, { className: "mt-4 text-sm text-foreground-2", value: "draft", children: "Draft changes" }),
376
+ /* @__PURE__ */ jsx(TabsPanel, { className: "mt-4 text-sm text-foreground-2", value: "review", children: "Review queue" }),
377
+ /* @__PURE__ */ jsx(TabsPanel, { className: "mt-4 text-sm text-foreground-2", value: "live", children: "Live version" })
378
+ ] }) }),
379
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Tabs underline", children: /* @__PURE__ */ jsxs(
380
+ Tabs,
381
+ {
382
+ className: "w-full max-w-xs",
383
+ defaultValue: "overview",
384
+ indicatorColor: "accent",
385
+ variant: "underline",
386
+ children: [
387
+ /* @__PURE__ */ jsxs(TabsList, { "aria-label": "Underline tabs", children: [
388
+ /* @__PURE__ */ jsx(TabsTab, { value: "overview", children: "Overview" }),
389
+ /* @__PURE__ */ jsx(TabsTab, { value: "activity", children: "Activity" }),
390
+ /* @__PURE__ */ jsx(TabsTab, { value: "settings", children: "Settings" }),
391
+ /* @__PURE__ */ jsx(TabsIndicator, {})
392
+ ] }),
393
+ /* @__PURE__ */ jsx(
394
+ TabsPanel,
395
+ {
396
+ className: "mt-4 text-sm text-foreground-2",
397
+ value: "overview",
398
+ children: "Publication summary"
399
+ }
400
+ ),
401
+ /* @__PURE__ */ jsx(
402
+ TabsPanel,
403
+ {
404
+ className: "mt-4 text-sm text-foreground-2",
405
+ value: "activity",
406
+ children: "Recent updates"
407
+ }
408
+ ),
409
+ /* @__PURE__ */ jsx(
410
+ TabsPanel,
411
+ {
412
+ className: "mt-4 text-sm text-foreground-2",
413
+ value: "settings",
414
+ children: "Project settings"
415
+ }
416
+ )
417
+ ]
418
+ }
419
+ ) }),
420
+ /* @__PURE__ */ jsx(PreviewCell, { name: "NavigationTabs", children: /* @__PURE__ */ jsxs("div", { className: "grid w-full max-w-sm gap-4", children: [
421
+ /* @__PURE__ */ jsx(NavigationTabs, { defaultValue: "docs", variant: "base", children: /* @__PURE__ */ jsxs(NavigationTabsList, { "aria-label": "Base navigation tabs", children: [
422
+ /* @__PURE__ */ jsx(NavigationTabsLink, { active: true, href: "#docs", value: "docs", children: "Docs" }),
423
+ /* @__PURE__ */ jsx(NavigationTabsLink, { href: "#api", value: "api", children: "API" })
424
+ ] }) }),
425
+ /* @__PURE__ */ jsx(NavigationTabs, { defaultValue: "drafts", variant: "button", children: /* @__PURE__ */ jsxs(NavigationTabsList, { "aria-label": "Button navigation tabs", children: [
426
+ /* @__PURE__ */ jsx(NavigationTabsLink, { active: true, href: "#drafts", value: "drafts", children: "Drafts" }),
427
+ /* @__PURE__ */ jsx(NavigationTabsLink, { href: "#published", value: "published", children: "Published" })
428
+ ] }) }),
429
+ /* @__PURE__ */ jsx(
430
+ NavigationTabs,
431
+ {
432
+ defaultValue: "overview",
433
+ indicatorColor: "foreground",
434
+ variant: "underline",
435
+ children: /* @__PURE__ */ jsxs(NavigationTabsList, { "aria-label": "Underline navigation tabs", children: [
436
+ /* @__PURE__ */ jsx(NavigationTabsLink, { active: true, href: "#overview", value: "overview", children: "Overview" }),
437
+ /* @__PURE__ */ jsx(NavigationTabsLink, { href: "#analytics", value: "analytics", children: "Analytics" }),
438
+ /* @__PURE__ */ jsx(NavigationTabsIndicator, {})
439
+ ] })
440
+ }
441
+ )
442
+ ] }) }),
443
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Progress", children: /* @__PURE__ */ jsx(Progress, { className: "w-full max-w-xs", value: 64, children: /* @__PURE__ */ jsx(ProgressTrack, { children: /* @__PURE__ */ jsx(ProgressIndicator, {}) }) }) }),
444
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Accordion", children: /* @__PURE__ */ jsx(Accordion, { className: "w-full max-w-xs", defaultValue: ["one"], children: /* @__PURE__ */ jsxs(AccordionItem, { value: "one", children: [
445
+ /* @__PURE__ */ jsx(AccordionHeader, { children: /* @__PURE__ */ jsx(AccordionTrigger, { children: "Section" }) }),
446
+ /* @__PURE__ */ jsx(AccordionPanel, { children: "Expandable content preview." })
447
+ ] }) }) }),
448
+ /* @__PURE__ */ jsx(PreviewCell, { name: "MetaKey", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
449
+ /* @__PURE__ */ jsx(MetaKey, {}),
450
+ /* @__PURE__ */ jsx(Kbd, { children: "K" })
451
+ ] }) }),
452
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Toast", children: /* @__PURE__ */ jsx(ToastProvider, { children: /* @__PURE__ */ jsx(Toast, { className: "w-full max-w-xs", toast: { id: "preview" }, children: /* @__PURE__ */ jsxs(ToastContent, { children: [
453
+ /* @__PURE__ */ jsx(ToastTitle, { children: "Saved" }),
454
+ /* @__PURE__ */ jsx(ToastDescription, { children: "Changes are ready to publish." })
455
+ ] }) }) }) }),
456
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Kbd", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
457
+ /* @__PURE__ */ jsx(Kbd, { children: "\u2318" }),
458
+ /* @__PURE__ */ jsx(Kbd, { children: "K" }),
459
+ /* @__PURE__ */ jsx(Kbd, { children: "Esc" })
460
+ ] }) }),
461
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Card", children: /* @__PURE__ */ jsxs(Card, { className: "w-full max-w-xs", variant: "elevated", children: [
462
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
463
+ /* @__PURE__ */ jsx(CardTitle, { children: "Card title" }),
464
+ /* @__PURE__ */ jsx(CardDescription, { children: "Uses surface, stroke, radius, and foreground tokens." })
465
+ ] }),
466
+ /* @__PURE__ */ jsxs(CardContent, { children: [
467
+ /* @__PURE__ */ jsx(Separator, {}),
468
+ /* @__PURE__ */ jsx("p", { className: "mt-4 text-sm text-foreground-2", children: "Composable content." })
469
+ ] })
470
+ ] }) })
471
+ ] });
472
+ }
473
+ function MdxPreview({ items = [] }) {
474
+ return /* @__PURE__ */ jsxs("div", { className: "grid border-l border-t border-stroke-3 md:grid-cols-2 xl:grid-cols-4", children: [
475
+ items.map((item) => /* @__PURE__ */ jsx(PreviewCell, { name: item.name, children: item.children }, item.name)),
476
+ !hasFixture(items, "Link") && /* @__PURE__ */ jsx(PreviewCell, { name: "Link", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
477
+ /* @__PURE__ */ jsx(Link, { color: "default", href: "/ds", variant: "link.standalone", children: "Default standalone" }),
478
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "/ds", variant: "link.inline", children: "Accent inline" }),
479
+ /* @__PURE__ */ jsx(Link, { href: "/ds", size: "sm", variant: "button.primary", children: "Button link" })
480
+ ] }) }),
481
+ /* @__PURE__ */ jsx(PreviewCell, { name: "MDX Links", children: /* @__PURE__ */ jsxs("div", { className: "max-w-md space-y-4 text-sm leading-7 text-foreground-2", children: [
482
+ /* @__PURE__ */ jsxs("p", { children: [
483
+ "This MDX paragraph includes an",
484
+ " ",
485
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "/ds", variant: "link.inline", children: "internal relative link" }),
486
+ ", an",
487
+ " ",
488
+ /* @__PURE__ */ jsx(
489
+ Link,
490
+ {
491
+ color: "accent",
492
+ href: "https://example.com",
493
+ variant: "link.inline",
494
+ children: "external link"
495
+ }
496
+ ),
497
+ ", a",
498
+ " ",
499
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "/ds", variant: "link.inline", children: /* @__PURE__ */ jsx("strong", { children: "link with bold text" }) }),
500
+ ", a",
501
+ " ",
502
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "/ds", variant: "link.inline", children: /* @__PURE__ */ jsx("em", { children: "link with italics" }) }),
503
+ ", and a",
504
+ " ",
505
+ /* @__PURE__ */ jsx(Link, { color: "accent", href: "/ds", variant: "link.inline", children: /* @__PURE__ */ jsx(InlineCode, { children: "linked inline code" }) }),
506
+ "."
507
+ ] }),
508
+ /* @__PURE__ */ jsx("h3", { className: "text-lg font-medium leading-7 text-foreground-1", children: /* @__PURE__ */ jsx(Link, { color: "accent", href: "/ds", variant: "link.standalone", children: "Linked heading" }) })
509
+ ] }) }),
510
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Callout", children: /* @__PURE__ */ jsxs("div", { className: "max-w-xs rounded-card border border-stroke-2 bg-surface-2 p-4 text-sm leading-6 text-foreground-2", children: [
511
+ /* @__PURE__ */ jsx("p", { className: "font-medium text-foreground-1", children: "Note" }),
512
+ /* @__PURE__ */ jsx("p", { className: "mt-1", children: "A compact MDX callout preview." })
513
+ ] }) }),
514
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Table", children: /* @__PURE__ */ jsx("div", { className: "w-full max-w-xs", children: /* @__PURE__ */ jsxs(Table, { children: [
515
+ /* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
516
+ /* @__PURE__ */ jsx(TableHead, { children: "Token" }),
517
+ /* @__PURE__ */ jsx(TableHead, { children: "Use" })
518
+ ] }) }),
519
+ /* @__PURE__ */ jsx(TableBody, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
520
+ /* @__PURE__ */ jsx(TableCell, { children: "surface-2" }),
521
+ /* @__PURE__ */ jsx(TableCell, { children: "Panels" })
522
+ ] }) })
523
+ ] }) }) }),
524
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Code", children: /* @__PURE__ */ jsx("pre", { className: "max-w-xs overflow-auto rounded-codeblock border border-stroke-2 bg-surface-3 p-4 text-xs text-foreground-1", children: /* @__PURE__ */ jsx("code", { children: `export const value = "publishOS";` }) }) })
525
+ ] });
526
+ }
527
+ function CopyToClipboardPreview() {
528
+ const [copied, setCopied] = useState(false);
529
+ function handleCopy() {
530
+ void navigator.clipboard?.writeText("pnpm publish.os add block");
531
+ setCopied(true);
532
+ window.setTimeout(() => setCopied(false), 1200);
533
+ }
534
+ return /* @__PURE__ */ jsx(
535
+ Button,
536
+ {
537
+ "aria-label": copied ? "Copied command" : "Copy command",
538
+ leftIcon: /* @__PURE__ */ jsx(
539
+ AnimatedIconSwap,
540
+ {
541
+ active: copied,
542
+ activeIcon: /* @__PURE__ */ jsx(Check, { "aria-hidden": "true" }),
543
+ defaultIcon: /* @__PURE__ */ jsx(Copy, { "aria-hidden": "true" }),
544
+ size: 16
545
+ }
546
+ ),
547
+ onClick: handleCopy,
548
+ variant: "secondary",
549
+ children: "Copy"
550
+ }
551
+ );
552
+ }
553
+ function BlocksPreview({
554
+ items = []
555
+ }) {
556
+ return /* @__PURE__ */ jsxs("div", { className: "grid border-l border-t border-stroke-3", children: [
557
+ items.map((item) => /* @__PURE__ */ jsxs(
558
+ "section",
559
+ {
560
+ className: "border-b border-r border-stroke-3 bg-surface-1",
561
+ children: [
562
+ /* @__PURE__ */ jsx("h3", { className: "px-4 pt-4 text-xs font-medium text-foreground-3", children: item.name }),
563
+ /* @__PURE__ */ jsx("div", { className: "mt-8", children: item.children })
564
+ ]
565
+ },
566
+ item.name
567
+ )),
568
+ !hasFixture(items, "Navbar") && /* @__PURE__ */ jsxs("section", { className: "border-b border-r border-stroke-3 bg-surface-1", children: [
569
+ /* @__PURE__ */ jsx("h3", { className: "px-4 pt-4 text-xs font-medium text-foreground-3", children: "Navbar" }),
570
+ /* @__PURE__ */ jsx("div", { className: "mt-8 border-y border-stroke-3 bg-surface-2 px-6 py-4", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-6xl flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
571
+ /* @__PURE__ */ jsx("div", { className: "text-sm font-medium text-foreground-1", children: "publishOS / Docs / Introduction" }),
572
+ /* @__PURE__ */ jsxs("nav", { className: "flex flex-wrap gap-4", children: [
573
+ /* @__PURE__ */ jsx(Link, { active: true, color: "accent", href: "#", size: "sm", children: "Docs" }),
574
+ /* @__PURE__ */ jsx(Link, { href: "#", size: "sm", children: "Blog" }),
575
+ /* @__PURE__ */ jsx(Link, { href: "#", size: "sm", children: "Changelog" })
576
+ ] })
577
+ ] }) })
578
+ ] }),
579
+ !hasFixture(items, "AnimatedIconSwap") && /* @__PURE__ */ jsxs("section", { className: "border-b border-r border-stroke-3 bg-surface-1 p-4", children: [
580
+ /* @__PURE__ */ jsx("h3", { className: "text-xs font-medium text-foreground-3", children: "AnimatedIconSwap" }),
581
+ /* @__PURE__ */ jsx("div", { className: "mt-8 flex justify-center", children: /* @__PURE__ */ jsx(CopyToClipboardPreview, {}) })
582
+ ] }),
583
+ /* @__PURE__ */ jsxs("section", { className: "border-b border-r border-stroke-3 bg-surface-1 p-4", children: [
584
+ /* @__PURE__ */ jsx("h3", { className: "text-xs font-medium text-foreground-3", children: "Footer" }),
585
+ /* @__PURE__ */ jsx("div", { className: "mt-8 border-t border-stroke-3 py-6 text-sm text-foreground-2", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-6xl justify-between", children: [
586
+ /* @__PURE__ */ jsx("span", { children: "publishOS" }),
587
+ /* @__PURE__ */ jsx("span", { children: "Docs, API, Status" })
588
+ ] }) })
589
+ ] })
590
+ ] });
591
+ }
592
+ function ActivePanel({
593
+ blocks,
594
+ mdx,
595
+ tab,
596
+ ui
597
+ }) {
598
+ if (tab === "tokens") return /* @__PURE__ */ jsx(ColorPalette, {});
599
+ if (tab === "typography") return /* @__PURE__ */ jsx(TypographyPreview, {});
600
+ if (tab === "ui") return /* @__PURE__ */ jsx(UiPreview, { items: ui });
601
+ if (tab === "mdx") return /* @__PURE__ */ jsx(MdxPreview, { items: mdx });
602
+ return /* @__PURE__ */ jsx(BlocksPreview, { items: blocks });
603
+ }
604
+ function DesignSystemPreview({
605
+ blocks,
606
+ initialTab = "ui",
607
+ mdx,
608
+ tabComponents,
609
+ ui
610
+ }) {
611
+ const [activeTab, setActiveTab] = useState(initialTab);
612
+ const TabsRoot = tabComponents?.Tabs ?? Tabs;
613
+ const TabsListRoot = tabComponents?.TabsList ?? TabsList;
614
+ const TabsPanelRoot = tabComponents?.TabsPanel ?? TabsPanel;
615
+ const TabsTabRoot = tabComponents?.TabsTab ?? TabsTab;
616
+ return /* @__PURE__ */ jsx("section", { className: "w-full text-foreground-1", children: /* @__PURE__ */ jsxs(
617
+ TabsRoot,
618
+ {
619
+ className: "w-full",
620
+ onValueChange: (value) => setActiveTab(value),
621
+ value: activeTab,
622
+ children: [
623
+ /* @__PURE__ */ jsx(
624
+ TabsListRoot,
625
+ {
626
+ "aria-label": "Design system preview sections",
627
+ className: "mb-4",
628
+ children: tabs.map((tab) => /* @__PURE__ */ jsx(
629
+ TabsTabRoot,
630
+ {
631
+ id: `design-system-tab-${tab.id}`,
632
+ value: tab.id,
633
+ children: tab.label
634
+ },
635
+ tab.id
636
+ ))
637
+ }
638
+ ),
639
+ /* @__PURE__ */ jsx(
640
+ TabsPanelRoot,
641
+ {
642
+ "aria-labelledby": `design-system-tab-${activeTab}`,
643
+ className: "overflow-hidden rounded-card border border-stroke-3 bg-surface-1",
644
+ id: `design-system-${activeTab}`,
645
+ value: activeTab,
646
+ children: /* @__PURE__ */ jsx(ActivePanel, { blocks, mdx, tab: activeTab, ui })
647
+ }
648
+ )
649
+ ]
650
+ }
651
+ ) });
652
+ }
653
+ export {
654
+ DesignSystemPreview
655
+ };