@publish.os/nextjs 0.0.1-alpha.5 → 0.0.1-alpha.7

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