@astryxdesign/cli 0.6.5 → 0.6.6-canary.dc3a939

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 (433) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/README.md +58 -55
  3. package/api/build/_adapter.d.mts +55 -2
  4. package/api/build/_adapter.mjs +100 -10
  5. package/api/build/build.doc.mjs +2 -2
  6. package/api/build/build.test.mjs +111 -2
  7. package/api/build/build.type.d.mts +8 -0
  8. package/api/build/build.type.mjs +2 -0
  9. package/api/build/kit/kit.mjs +99 -22
  10. package/api/build/kit/rank.d.mts +32 -8
  11. package/api/build/kit/rank.mjs +291 -97
  12. package/api/build/kit/rank.test.mjs +231 -48
  13. package/api/build/kit/weights.d.mts +82 -0
  14. package/api/build/kit/weights.json +1 -0
  15. package/api/build/kit/weights.mjs +305 -0
  16. package/api/build/kit/weights.test.mjs +190 -0
  17. package/api/component/_adapter.d.mts +19 -0
  18. package/api/component/_adapter.mjs +33 -0
  19. package/api/component/component-replacement.test.mjs +603 -0
  20. package/api/component/component.mjs +49 -15
  21. package/api/component/component.test.mjs +32 -0
  22. package/api/component/component.type.d.mts +33 -3
  23. package/api/component/component.type.mjs +10 -3
  24. package/api/component/detail/blocks/blocks.d.mts +2 -1
  25. package/api/component/detail/blocks/blocks.mjs +5 -2
  26. package/api/component/detail/detail.mjs +5 -1
  27. package/api/component/detail/props/props.d.mts +2 -1
  28. package/api/component/detail/props/props.mjs +3 -2
  29. package/api/component/detail/showcase/showcase.d.mts +3 -1
  30. package/api/component/detail/showcase/showcase.mjs +3 -1
  31. package/api/component/detail/source/source.d.mts +3 -2
  32. package/api/component/detail/source/source.mjs +7 -3
  33. package/api/component/list/list.mjs +128 -10
  34. package/api/docs/_adapter.d.mts +11 -0
  35. package/api/docs/_adapter.mjs +25 -0
  36. package/api/docs/detail/detail.mjs +19 -3
  37. package/api/docs/detail/section/section.mjs +7 -1
  38. package/api/docs/docOverlays.test.mjs +10 -6
  39. package/api/docs/docs.d.mts +6 -0
  40. package/api/docs/docs.depth.test.mjs +134 -0
  41. package/api/docs/docs.doc.mjs +31 -2
  42. package/api/docs/docs.mjs +46 -1
  43. package/api/docs/docs.test.mjs +279 -0
  44. package/api/docs/docs.type.d.mts +81 -4
  45. package/api/docs/docs.type.mjs +41 -4
  46. package/api/docs/index/index.mjs +11 -2
  47. package/api/docs/index/index.test.mjs +7 -2
  48. package/api/docs/integration-tree.test.mjs +572 -0
  49. package/api/docs/integrationDocs.test.mjs +337 -0
  50. package/api/docs/node/node.d.mts +28 -3
  51. package/api/docs/node/node.mjs +149 -23
  52. package/api/doctor/_adapter.d.mts +43 -0
  53. package/api/doctor/_adapter.mjs +142 -0
  54. package/api/doctor/doctor.d.mts +0 -10
  55. package/api/doctor/doctor.doc.mjs +1 -3
  56. package/api/doctor/doctor.mjs +6 -123
  57. package/api/doctor/theme-checks.d.mts +12 -0
  58. package/api/doctor/theme-checks.mjs +1117 -0
  59. package/api/doctor/theme-checks.test.mjs +526 -0
  60. package/api/error.d.mts +22 -0
  61. package/api/error.mjs +42 -0
  62. package/api/gap-report/gap-report.d.mts +3 -1
  63. package/api/gap-report/gap-report.mjs +27 -3
  64. package/api/gap-report/gap-report.test.mjs +106 -0
  65. package/api/hook/_adapter.d.mts +1 -0
  66. package/api/hook/_adapter.mjs +3 -0
  67. package/api/hook/detail/detail.mjs +2 -2
  68. package/api/hook/detail/params/params.mjs +2 -2
  69. package/api/hook/hook.type.d.mts +12 -0
  70. package/api/hook/hook.type.mjs +3 -0
  71. package/api/hook/list/list.d.mts +1 -1
  72. package/api/hook/list/list.mjs +8 -8
  73. package/api/index.d.mts +1 -1
  74. package/api/index.mjs +4 -0
  75. package/api/init/run/run.d.mts +3 -5
  76. package/api/init/run/run.mjs +10 -11
  77. package/api/integration/__fixtures__/released-0.6.5-ocean.d.mts +14 -0
  78. package/api/integration/__fixtures__/released-0.6.5-ocean.mjs +15 -0
  79. package/api/integration/add-contribution.d.mts +2 -1
  80. package/api/integration/add-contribution.mjs +7 -3
  81. package/api/integration/add-contribution.test.mjs +3 -3
  82. package/api/integration/add-helpers.d.mts +26 -5
  83. package/api/integration/add-helpers.mjs +50 -5
  84. package/api/integration/add-theme.mjs +354 -28
  85. package/api/integration/add-theme.test.mjs +380 -16
  86. package/api/integration/authoring-checks.mjs +31 -8
  87. package/api/integration/authoring-checks.type.d.mts +8 -0
  88. package/api/integration/authoring-checks.type.mjs +7 -3
  89. package/api/integration/integration-authoring.type.d.mts +4 -1
  90. package/api/integration/integration-authoring.type.mjs +6 -1
  91. package/api/integration/integrationAdd.doc.mjs +6 -0
  92. package/api/integration/integrationAddTheme.doc.mjs +10 -0
  93. package/api/integration/integrationComponentConflicts.doc.mjs +6 -3
  94. package/api/integration/integrationDocConflicts.doc.mjs +1 -1
  95. package/api/integration/integrationTemplateConflicts.doc.mjs +1 -1
  96. package/api/integration/pack-check.component-replaces.test.mjs +126 -0
  97. package/api/integration/pack-check.d.mts +10 -0
  98. package/api/integration/pack-check.lifecycle-output.test.mjs +21 -2
  99. package/api/integration/pack-check.mjs +495 -4
  100. package/api/integration/pack-check.test.mjs +619 -10
  101. package/api/integration/validate-integration.d.mts +4 -2
  102. package/api/integration/validate-integration.mjs +7 -2
  103. package/api/integration/validate-integration.test.mjs +55 -0
  104. package/api/integration/validate-integration.type.d.mts +5 -0
  105. package/api/integration/validate-integration.type.mjs +5 -1
  106. package/api/integration/validateIntegration.doc.mjs +1 -1
  107. package/api/layout/expand/expand.mjs +12 -7
  108. package/api/layout/expand/expand.receipt.test.mjs +74 -0
  109. package/api/layout/layout.type.d.mts +1 -0
  110. package/api/layout/layout.type.mjs +1 -0
  111. package/api/layout/layoutExpand.doc.mjs +1 -1
  112. package/api/search/search.d.mts +39 -8
  113. package/api/search/search.doc.mjs +4 -4
  114. package/api/search/search.mjs +248 -66
  115. package/api/search/search.test.mjs +829 -0
  116. package/api/search/search.type.d.mts +6 -6
  117. package/api/search/search.type.mjs +5 -5
  118. package/api/swizzle/_adapter.d.mts +10 -0
  119. package/api/swizzle/_adapter.mjs +23 -0
  120. package/api/swizzle/copy/copy.d.mts +5 -6
  121. package/api/swizzle/copy/copy.mjs +95 -13
  122. package/api/swizzle/list/list.mjs +2 -2
  123. package/api/swizzle/swizzle.doc.mjs +4 -0
  124. package/api/swizzle/swizzle.test.mjs +55 -5
  125. package/api/swizzle/swizzle.type.d.mts +8 -0
  126. package/api/swizzle/swizzle.type.mjs +2 -0
  127. package/api/template/copy/copy.mjs +15 -8
  128. package/api/template/copy/copy.receipt.test.mjs +77 -0
  129. package/api/template/show/show.mjs +17 -4
  130. package/api/template/show/show.test.mjs +76 -0
  131. package/api/template/skeleton/skeleton.mjs +2 -1
  132. package/api/template/template-integration.test.mjs +14 -0
  133. package/api/template/template.d.mts +1 -1
  134. package/api/template/template.doc.mjs +6 -2
  135. package/api/template/template.mjs +2 -0
  136. package/api/template/template.type.d.mts +14 -0
  137. package/api/template/template.type.mjs +5 -0
  138. package/api/theme/_adapter.d.mts +106 -6
  139. package/api/theme/_adapter.mjs +687 -18
  140. package/api/theme/add/add.binary.test.mjs +76 -3
  141. package/api/theme/add/add.d.mts +5 -9
  142. package/api/theme/add/add.mjs +87 -64
  143. package/api/theme/add/add.rollback.test.mjs +9 -9
  144. package/api/theme/add/add.staging.test.mjs +9 -9
  145. package/api/theme/add/add.test.mjs +461 -55
  146. package/api/theme/add/add.types.test.mjs +151 -0
  147. package/api/theme/build/build.d.mts +50 -2
  148. package/api/theme/build/build.family.test.mjs +13 -4
  149. package/api/theme/build/build.icon-lineage.test.mjs +117 -0
  150. package/api/theme/build/build.icon-preservation.test.mjs +639 -0
  151. package/api/theme/build/build.mjs +463 -155
  152. package/api/theme/build/build.project-core.test.mjs +165 -0
  153. package/api/theme/build/build.test.mjs +220 -1
  154. package/api/theme/build/icon-imports.d.mts +47 -0
  155. package/api/theme/build/icon-imports.mjs +691 -0
  156. package/api/theme/eject/eject.binary.test.mjs +90 -0
  157. package/api/theme/eject/eject.d.mts +17 -0
  158. package/api/theme/eject/eject.mjs +65 -0
  159. package/api/theme/eject/eject.rollback.test.mjs +158 -0
  160. package/api/theme/eject/eject.staging.test.mjs +83 -0
  161. package/api/theme/eject/eject.test.mjs +160 -0
  162. package/api/theme/integration-themes.test.mjs +30 -6
  163. package/api/theme/list/list.d.mts +10 -0
  164. package/api/theme/list/list.mjs +75 -7
  165. package/api/theme/list/list.test.mjs +155 -4
  166. package/api/theme/remove/remove.d.mts +12 -0
  167. package/api/theme/remove/remove.mjs +15 -0
  168. package/api/theme/remove/remove.test.mjs +94 -0
  169. package/api/theme/template/template.mjs +3 -4
  170. package/api/theme/theme.d.mts +5 -2
  171. package/api/theme/theme.mjs +13 -8
  172. package/api/theme/theme.type.d.mts +106 -2
  173. package/api/theme/theme.type.mjs +54 -5
  174. package/api/theme/themeAdd.doc.d.mts +1 -3
  175. package/api/theme/themeAdd.doc.mjs +35 -22
  176. package/api/theme/themeBuild.doc.d.mts +4 -1
  177. package/api/theme/themeBuild.doc.mjs +15 -4
  178. package/api/theme/themeEject.doc.d.mts +8 -0
  179. package/api/theme/themeEject.doc.mjs +89 -0
  180. package/api/theme/themeListAvailable.doc.mjs +4 -4
  181. package/api/theme/themeListCopySources.doc.d.mts +8 -0
  182. package/api/theme/themeListCopySources.doc.mjs +60 -0
  183. package/api/theme/themeRemove.doc.d.mts +6 -0
  184. package/api/theme/themeRemove.doc.mjs +50 -0
  185. package/api/theme/themeTemplate.doc.mjs +4 -3
  186. package/api/theme/themeUse.doc.d.mts +6 -0
  187. package/api/theme/themeUse.doc.mjs +47 -0
  188. package/api/theme/use/use.d.mts +12 -0
  189. package/api/theme/use/use.mjs +15 -0
  190. package/api/theme/use/use.test.mjs +98 -0
  191. package/api/upgrade/_adapter.d.mts +1 -0
  192. package/api/upgrade/_adapter.mjs +3 -0
  193. package/api/upgrade/list/list.mjs +9 -3
  194. package/api/upgrade/run/run.mjs +20 -3
  195. package/api/upgrade/run/run.test.mjs +45 -1
  196. package/api/upgrade/upgrade.doc.mjs +1 -1
  197. package/api/upgrade/upgrade.type.d.mts +5 -0
  198. package/api/upgrade/upgrade.type.mjs +2 -0
  199. package/assets/codemods/integration-discovery.mjs +1 -1
  200. package/assets/codemods/integration-discovery.test.mjs +64 -0
  201. package/assets/codemods/transforms/next/__tests__/migrate-copied-themes-to-descriptors.test.mjs +129 -0
  202. package/assets/codemods/transforms/next/index.mjs +14 -1
  203. package/assets/codemods/transforms/next/migrate-copied-themes-to-descriptors.mjs +54 -0
  204. package/assets/docs/author-a-theme.doc.mjs +161 -0
  205. package/assets/docs/getting-started.doc.mjs +59 -15
  206. package/assets/docs/icons.doc.mjs +1 -0
  207. package/assets/docs/principles.doc.dense.mjs +2 -2
  208. package/assets/docs/principles.doc.mjs +2 -2
  209. package/assets/docs/principles.doc.zh.mjs +2 -2
  210. package/assets/docs/styling-libraries.doc.mjs +1 -1
  211. package/assets/docs/styling.doc.mjs +2 -2
  212. package/assets/docs/theme.doc.dense.mjs +10 -198
  213. package/assets/docs/theme.doc.mjs +13 -770
  214. package/assets/docs/theme.doc.zh.mjs +31 -12
  215. package/assets/docs/tokens.doc.mjs +4 -4
  216. package/assets/docs/tree/add-a-theme.doc.mjs +6 -2
  217. package/assets/docs/tree/add-a-topic.doc.mjs +1 -1
  218. package/assets/docs/tree/check-your-docs.doc.mjs +2 -2
  219. package/assets/docs/tree/checks.doc.mjs +6 -5
  220. package/assets/docs/tree/debug-and-gap-reports.doc.mjs +1 -1
  221. package/assets/docs/tree/define-the-theme.doc.mjs +2 -2
  222. package/assets/docs/tree/document-the-theme.doc.mjs +4 -4
  223. package/assets/docs/tree/fonts-and-assets.doc.mjs +25 -20
  224. package/assets/docs/tree/headers-and-footers.doc.mjs +68 -0
  225. package/assets/docs/tree/layout-spacing.doc.mjs +168 -0
  226. package/assets/docs/tree/layout.doc.mjs +32 -0
  227. package/assets/docs/tree/replace-a-core-component.doc.mjs +21 -4
  228. package/assets/docs/tree/responsive.doc.mjs +102 -0
  229. package/assets/docs/tree/scaffold.doc.mjs +145 -0
  230. package/assets/docs/tree/sections-and-placement.doc.mjs +1 -1
  231. package/assets/docs/tree/side-panels.doc.mjs +82 -0
  232. package/assets/docs/tree/structure.doc.mjs +144 -0
  233. package/assets/docs/tree/template-doc-overview.doc.mjs +13 -1
  234. package/assets/docs/tree/themes.doc.mjs +2 -2
  235. package/assets/docs/tree/troubleshooting.doc.mjs +13 -5
  236. package/assets/docs/tree/use-a-theme-in-an-app.doc.mjs +22 -5
  237. package/assets/docs/tree/versioning.doc.mjs +11 -7
  238. package/assets/docs/use-a-theme.doc.mjs +97 -0
  239. package/assets/templates/blocks/components/DropdownMenuGroup/DropdownMenuGroupShowcase.doc.mjs +15 -0
  240. package/assets/templates/blocks/components/DropdownMenuGroup/DropdownMenuGroupShowcase.tsx +38 -0
  241. package/assets/templates/blocks/components/DropdownMenuGroup/DropdownMenuGroupWithSelectable.doc.mjs +20 -0
  242. package/assets/templates/blocks/components/DropdownMenuGroup/DropdownMenuGroupWithSelectable.tsx +48 -0
  243. package/assets/templates/pages/ai-chat/template.doc.mjs +16 -1
  244. package/assets/templates/pages/ai-chat-landing/template.doc.mjs +9 -1
  245. package/assets/templates/pages/blank/template.doc.mjs +3 -1
  246. package/assets/templates/pages/canvas-editor/template.doc.mjs +9 -1
  247. package/assets/templates/pages/centered-hero/template.doc.mjs +3 -1
  248. package/assets/templates/pages/checkout-wizard/template.doc.mjs +1 -0
  249. package/assets/templates/pages/classic-gallery/template.doc.mjs +3 -1
  250. package/assets/templates/pages/contact-form/template.doc.mjs +16 -1
  251. package/assets/templates/pages/dashboard/template.doc.mjs +15 -1
  252. package/assets/templates/pages/dashboard-alert-rail/template.doc.mjs +23 -1
  253. package/assets/templates/pages/dashboard-cohort-funnel/template.doc.mjs +10 -1
  254. package/assets/templates/pages/dashboard-comparison/template.doc.mjs +9 -1
  255. package/assets/templates/pages/dashboard-composition/template.doc.mjs +10 -1
  256. package/assets/templates/pages/dashboard-progress/template.doc.mjs +17 -1
  257. package/assets/templates/pages/dashboard-scorecard/template.doc.mjs +2 -1
  258. package/assets/templates/pages/detail-page/template.doc.mjs +8 -0
  259. package/assets/templates/pages/documentation/template.doc.mjs +10 -1
  260. package/assets/templates/pages/documentation-design/template.doc.mjs +10 -1
  261. package/assets/templates/pages/documentation-technical/template.doc.mjs +10 -1
  262. package/assets/templates/pages/editor/template.doc.mjs +9 -1
  263. package/assets/templates/pages/file-explorer/template.doc.mjs +3 -1
  264. package/assets/templates/pages/form-two-column/template.doc.mjs +17 -1
  265. package/assets/templates/pages/form-wizard/template.doc.mjs +14 -1
  266. package/assets/templates/pages/form-wizard-dialog/template.doc.mjs +1 -0
  267. package/assets/templates/pages/gallery-hero/template.doc.mjs +10 -1
  268. package/assets/templates/pages/ide/template.doc.mjs +9 -1
  269. package/assets/templates/pages/incident-console/template.doc.mjs +10 -1
  270. package/assets/templates/pages/kanban-board/template.doc.mjs +11 -1
  271. package/assets/templates/pages/library/template.doc.mjs +15 -1
  272. package/assets/templates/pages/login/template.doc.mjs +10 -1
  273. package/assets/templates/pages/login-card/template.doc.mjs +11 -1
  274. package/assets/templates/pages/login-split/template.doc.mjs +10 -1
  275. package/assets/templates/pages/login-sso/template.doc.mjs +10 -1
  276. package/assets/templates/pages/messaging-shell/template.doc.mjs +11 -1
  277. package/assets/templates/pages/mixed-gallery/template.doc.mjs +10 -1
  278. package/assets/templates/pages/payment-form/template.doc.mjs +3 -1
  279. package/assets/templates/pages/product-detail/template.doc.mjs +9 -1
  280. package/assets/templates/pages/product-gallery/template.doc.mjs +10 -1
  281. package/assets/templates/pages/settings/template.doc.mjs +3 -1
  282. package/assets/templates/pages/settings-dialog/template.doc.mjs +9 -1
  283. package/assets/templates/pages/settings-sidebar/template.doc.mjs +9 -1
  284. package/assets/templates/pages/shell-nav/template.doc.mjs +10 -1
  285. package/assets/templates/pages/shell-side-nav/template.doc.mjs +14 -1
  286. package/assets/templates/pages/shell-top-nav/template.doc.mjs +11 -1
  287. package/assets/templates/pages/side-gallery/template.doc.mjs +3 -1
  288. package/assets/templates/pages/table/template.doc.mjs +11 -1
  289. package/assets/templates/pages/table-collapsible/page.tsx +1474 -0
  290. package/assets/templates/pages/table-collapsible/template.doc.mjs +12 -0
  291. package/assets/templates/pages/table-comparison/page.tsx +1449 -0
  292. package/assets/templates/pages/table-comparison/template.doc.mjs +12 -0
  293. package/assets/templates/pages/table-filter/template.doc.mjs +21 -1
  294. package/assets/templates/pages/table-grouped/template.doc.mjs +15 -1
  295. package/assets/templates/pages/table-inbox/template.doc.mjs +18 -6
  296. package/assets/templates/pages/table-page/template.doc.mjs +20 -1
  297. package/assets/templates/pages/table-tree/template.doc.mjs +14 -1
  298. package/assets/templates/pages/theme-showcase/template.doc.mjs +10 -1
  299. package/assets/templates/pages/work-item-detail/template.doc.mjs +10 -0
  300. package/assets/templates/themes/butter/icons.tsx +2 -0
  301. package/assets/templates/themes/chocolate/icons.tsx +2 -0
  302. package/assets/templates/themes/gothic/icons.tsx +2 -0
  303. package/assets/templates/themes/matcha/icons.tsx +2 -0
  304. package/assets/templates/themes/neutral/icons.tsx +2 -0
  305. package/assets/templates/themes/stone/icons.tsx +2 -0
  306. package/assets/templates/themes/y2k/icons.tsx +2 -0
  307. package/authoring/doctypes/command/command.doc.mjs +5 -0
  308. package/authoring/doctypes/command/type.ts +2 -0
  309. package/authoring/doctypes/component/component.doc.mjs +1 -1
  310. package/authoring/doctypes/component/type.ts +8 -4
  311. package/authoring/doctypes/template/parse.d.mts +2 -0
  312. package/authoring/doctypes/template/parse.mjs +1 -0
  313. package/authoring/doctypes/template/parse.test.mjs +21 -0
  314. package/authoring/doctypes/template/template.doc.mjs +6 -0
  315. package/authoring/doctypes/template/type.ts +10 -0
  316. package/authoring/integration/integration.doc.mjs +1 -1
  317. package/clients/cli/commands/build-theme.mjs +279 -30
  318. package/clients/cli/commands/build.mjs +7 -6
  319. package/clients/cli/commands/build.text-fields.test.mjs +1 -1
  320. package/clients/cli/commands/component/index.mjs +88 -12
  321. package/clients/cli/commands/component-replacement.text.test.mjs +271 -0
  322. package/clients/cli/commands/component.doc.mjs +9 -2
  323. package/clients/cli/commands/discover.mjs +29 -1
  324. package/clients/cli/commands/discover.no-source.test.mjs +75 -0
  325. package/clients/cli/commands/docs.depth.test.mjs +219 -0
  326. package/clients/cli/commands/docs.doc.mjs +15 -2
  327. package/clients/cli/commands/docs.mjs +273 -16
  328. package/clients/cli/commands/docs.test.mjs +382 -0
  329. package/clients/cli/commands/doctor-integration-components.doc.mjs +15 -4
  330. package/clients/cli/commands/doctor.doc.mjs +1 -1
  331. package/clients/cli/commands/doctor.mjs +4 -4
  332. package/clients/cli/commands/doctor.test.mjs +9 -51
  333. package/clients/cli/commands/gap-report.doc.mjs +2 -2
  334. package/clients/cli/commands/gap-report.mjs +12 -0
  335. package/clients/cli/commands/gap-report.test.mjs +63 -0
  336. package/clients/cli/commands/hook/index.mjs +7 -2
  337. package/clients/cli/commands/import-hint-correctness.test.mjs +5 -5
  338. package/clients/cli/commands/init.next-steps.test.mjs +18 -23
  339. package/clients/cli/commands/integration-add.doc.mjs +10 -0
  340. package/clients/cli/commands/integration-authoring.test.mjs +12 -2
  341. package/clients/cli/commands/integration-real-world.test.mjs +61 -12
  342. package/clients/cli/commands/integration.mjs +3 -1
  343. package/clients/cli/commands/layout-check.doc.mjs +1 -0
  344. package/clients/cli/commands/layout-expand.doc.mjs +4 -1
  345. package/clients/cli/commands/layout-grammar.doc.mjs +1 -0
  346. package/clients/cli/commands/layout.doc.mjs +1 -0
  347. package/clients/cli/commands/layout.expand-receipt.test.mjs +94 -0
  348. package/clients/cli/commands/layout.mjs +61 -4
  349. package/clients/cli/commands/no-prompt-wording.test.mjs +4 -4
  350. package/clients/cli/commands/search.doc.mjs +5 -4
  351. package/clients/cli/commands/search.mjs +30 -6
  352. package/clients/cli/commands/search.test.mjs +63 -17
  353. package/clients/cli/commands/swizzle.doc.mjs +12 -3
  354. package/clients/cli/commands/swizzle.mjs +2 -1
  355. package/clients/cli/commands/template.copy-receipt.test.mjs +60 -0
  356. package/clients/cli/commands/template.mjs +70 -6
  357. package/clients/cli/commands/template.show-media.test.mjs +62 -0
  358. package/clients/cli/commands/text-json-parity.test.mjs +40 -0
  359. package/clients/cli/commands/theme-add-lifecycle.test.mjs +132 -0
  360. package/clients/cli/commands/theme-add.doc.mjs +19 -19
  361. package/clients/cli/commands/theme-eject.doc.mjs +47 -0
  362. package/clients/cli/commands/theme-list.behavior.test.mjs +44 -0
  363. package/clients/cli/commands/theme-list.doc.mjs +2 -2
  364. package/clients/cli/commands/theme-palette-generate.doc.mjs +1 -2
  365. package/clients/cli/commands/theme-remove.doc.mjs +22 -0
  366. package/clients/cli/commands/theme-template.doc.mjs +4 -3
  367. package/clients/cli/commands/theme-use.doc.mjs +22 -0
  368. package/clients/cli/commands/theme.doc.mjs +21 -16
  369. package/clients/cli/commands/upgrade.ascii-output.test.mjs +14 -0
  370. package/clients/cli/commands/upgrade.mjs +1 -1
  371. package/clients/cli/commands/write-failure.test.mjs +175 -0
  372. package/clients/cli/index.mjs +4 -1
  373. package/clients/cli/lib/component-format.mjs +19 -2
  374. package/clients/cli/lib/manifest.mjs +44 -165
  375. package/clients/cli/lib/manifest.test.mjs +98 -7
  376. package/clients/cli/lib/resolve-theme.mjs +80 -78
  377. package/clients/cli/lib/resolve-theme.test.mjs +523 -27
  378. package/foundation/agent-docs/agent-docs.mjs +31 -28
  379. package/foundation/agent-docs/agent-docs.test.mjs +1163 -0
  380. package/foundation/agent-docs/app-theme-workflow.test.mjs +13 -0
  381. package/foundation/config/project.d.mts +20 -5
  382. package/foundation/config/project.mjs +43 -6
  383. package/foundation/config/theme-private-vars.d.mts +12 -0
  384. package/foundation/config/theme-private-vars.mjs +107 -0
  385. package/foundation/config/theme-private-vars.test.mjs +55 -0
  386. package/foundation/config/theme-state.d.mts +145 -0
  387. package/foundation/config/theme-state.mjs +417 -0
  388. package/foundation/config/theme-state.test.mjs +182 -0
  389. package/foundation/discovery/component-discovery.d.mts +5 -2
  390. package/foundation/discovery/component-discovery.mjs +12 -6
  391. package/foundation/discovery/component-replacement.d.mts +91 -0
  392. package/foundation/discovery/component-replacement.mjs +417 -0
  393. package/foundation/discovery/component-replacement.test.mjs +480 -0
  394. package/foundation/discovery/docs-output-budget.d.mts +6 -2
  395. package/foundation/discovery/docs-output-budget.mjs +2 -1
  396. package/foundation/discovery/docs-section-key.d.mts +4 -2
  397. package/foundation/discovery/docs-section-key.mjs +1 -1
  398. package/foundation/discovery/module-exports.d.mts +10 -0
  399. package/foundation/discovery/module-exports.mjs +146 -0
  400. package/foundation/discovery/package-exports.d.mts +29 -0
  401. package/foundation/discovery/package-exports.mjs +200 -0
  402. package/foundation/discovery/template-adapter.d.mts +14 -0
  403. package/foundation/discovery/template-adapter.fixture-refs.test.mjs +37 -1
  404. package/foundation/discovery/template-adapter.mjs +21 -1
  405. package/foundation/discovery/theme-discovery.d.mts +78 -5
  406. package/foundation/discovery/theme-discovery.mjs +143 -18
  407. package/foundation/discovery/theme-discovery.test.mjs +9 -3
  408. package/foundation/discovery/theme-imports.d.mts +15 -0
  409. package/foundation/discovery/theme-imports.mjs +217 -0
  410. package/foundation/discovery/theme-imports.test.mjs +173 -0
  411. package/foundation/doc-compiler/doc-loads.test.mjs +18 -8
  412. package/foundation/doc-compiler/inputs.mjs +2 -1
  413. package/foundation/doc-compiler/inputs.test.mjs +0 -1
  414. package/foundation/doc-compiler/lenses.d.mts +4 -2
  415. package/foundation/doc-compiler/lenses.mjs +1 -1
  416. package/foundation/doc-compiler/tree.test.mjs +649 -0
  417. package/foundation/fs/module-loader.d.mts +9 -0
  418. package/foundation/fs/module-loader.mjs +71 -2
  419. package/foundation/integrations/cli-requirement.d.mts +79 -13
  420. package/foundation/integrations/cli-requirement.mjs +115 -22
  421. package/foundation/integrations/cli-requirement.test.mjs +205 -8
  422. package/foundation/integrations/contribution-inventory.mjs +3 -3
  423. package/foundation/response/base.d.ts +9 -3
  424. package/foundation/response/json.d.mts +7 -4
  425. package/foundation/response/json.mjs +10 -6
  426. package/foundation/response/response-types.doc.d.mts +5 -5
  427. package/foundation/response/response-types.doc.mjs +50 -35
  428. package/foundation/response/response.doc.mjs +18 -4
  429. package/foundation/text/copyright-header.mjs +1 -1
  430. package/foundation/text/copyright-header.test.mjs +1 -1
  431. package/package.json +9 -9
  432. package/assets/docs/layout.doc.dense.mjs +0 -388
  433. package/assets/docs/layout.doc.mjs +0 -550
@@ -21,19 +21,24 @@ export const docs = {
21
21
  content: [
22
22
  {
23
23
  type: 'prose',
24
- text: 'An app installs the integration as a dependency and applies your theme like any Astryx theme: wrap the app in `<Theme>`. The theme comes from the installed package — there is no copy step. Your theme only names its fonts; the app loads them ({@link generic:fonts-and-assets}).',
24
+ text: 'Install the integration, then run `theme add --import` with its slug and package. The command records the package owner and regenerates one app theme module that imports the built theme, production CSS, and optional font CSS. Plain `theme add` still copies source while that default is deprecated.',
25
+ },
26
+ {
27
+ type: 'code',
28
+ lang: 'bash',
29
+ code: 'npm install @acme/astryx-widgets\nnpx astryx theme add ocean --import --package @acme/astryx-widgets',
25
30
  },
26
31
  {
27
32
  type: 'code',
28
33
  lang: 'tsx',
29
34
  code: `import {Theme} from '@astryxdesign/core/theme';
30
- import {oceanTheme} from '@acme/astryx-widgets/themes/ocean';
35
+ import {themes, defaultThemeSlug} from './astryx-themes';
31
36
 
32
- <Theme theme={oceanTheme}>{/* app */}</Theme>`,
37
+ <Theme theme={themes[defaultThemeSlug]}>{/* app */}</Theme>`,
33
38
  },
34
39
  {
35
40
  type: 'prose',
36
- text: 'The import specifier is whatever your integration exports for the theme. Applying a theme — `mode`, SSR, and the production build — works the same for every theme; see {@link generic:theme}.',
41
+ text: '`theme list` shows the available, added, and default themes. Use `theme use <slug>` to change the default, `theme remove <slug>` to stop importing one, and `theme eject <slug>` only when the app needs an independent source fork. Applying a theme — `mode`, SSR, and the production build — works the same for every theme; see {@link generic:use-a-theme}.',
37
42
  },
38
43
  ],
39
44
  },
@@ -43,7 +48,19 @@ import {oceanTheme} from '@acme/astryx-widgets/themes/ocean';
43
48
  content: [
44
49
  {
45
50
  type: 'prose',
46
- text: 'To change a theme, an app does not copy it — it derives a new one with `extends`: import your theme and override only the tokens it changes. See {@link generic:define-the-theme}.',
51
+ text: 'For ordinary customization, do not copy the package source. Import the built theme and derive a new one with `defineTheme({extends: importedTheme, ...})`, overriding only the tokens the app changes. Use `theme eject` only when the app must own an independent source fork. See {@link generic:define-the-theme}.',
52
+ },
53
+ {
54
+ type: 'code',
55
+ lang: 'ts',
56
+ code: `import {defineTheme} from '@astryxdesign/core/theme';
57
+ import {oceanTheme} from '@acme/astryx-widgets/themes/ocean';
58
+
59
+ export const productTheme = defineTheme({
60
+ name: 'product',
61
+ extends: oceanTheme,
62
+ tokens: {'--color-accent': ['#0051a3', '#4aa3ff']},
63
+ });`,
47
64
  },
48
65
  ],
49
66
  },
@@ -60,7 +60,10 @@ export const docs = {
60
60
  'A template id, such as `acme-dashboard`',
61
61
  '`npx astryx template acme-dashboard`',
62
62
  ],
63
- ['A theme slug, such as `ocean`', '`npx astryx theme add ocean`'],
63
+ [
64
+ 'A theme slug, such as `ocean`',
65
+ '`npx astryx theme add ocean --import`',
66
+ ],
64
67
  [
65
68
  'A topic name or route, such as `acme/deploying`',
66
69
  'Reads of the old name, and links to it from other docs',
@@ -106,19 +109,19 @@ export const docs = {
106
109
  ],
107
110
  [
108
111
  '`@astryxdesign/cli`',
109
- 'You ship a docs section, a placed guide, a template that sets `replaces`, a doc section with an `id`, or a theme',
110
- '`>=0.7.0`, optional in `peerDependenciesMeta`',
112
+ 'You ship a docs section, a placed guide, a template that sets `replaces` or `keywords`, a doc section with an `id`, or a theme',
113
+ '`>=0.7.0` when you ship a template that sets `replaces` or `keywords`, otherwise `>=0.6.4`. Optional in `peerDependenciesMeta`',
111
114
  ],
112
115
  ],
113
116
  },
114
117
  {
115
118
  type: 'code',
116
119
  lang: 'json',
117
- code: '{\n "peerDependencies": {\n "@astryxdesign/core": "^0.6.0",\n "@astryxdesign/cli": ">=0.7.0"\n },\n "peerDependenciesMeta": {\n "@astryxdesign/cli": {"optional": true}\n }\n}',
120
+ code: '{\n "peerDependencies": {\n "@astryxdesign/core": "^0.6.0",\n "@astryxdesign/cli": ">=0.6.4"\n },\n "peerDependenciesMeta": {\n "@astryxdesign/cli": {"optional": true}\n }\n}',
118
121
  },
119
122
  {
120
123
  type: 'prose',
121
- text: '`integration verify` fails a package that needs the CLI peer and lacks it, or whose range admits a stable CLI before 0.7.0. `integration add doc --parent` and `integration add theme` write the peer for you.',
124
+ text: '`integration verify` fails a package that needs the CLI peer and lacks it, or whose range admits a stable CLI too old for what it ships. `integration add doc --parent` and `integration add theme` write the peer for you.',
122
125
  },
123
126
  ],
124
127
  },
@@ -137,13 +140,14 @@ export const docs = {
137
140
  'An unknown field in `astryx.integration.mjs` is ignored with an `unknown_manifest_key` warning, and the rest of the manifest still loads.',
138
141
  'A named export that the CLI does not know is ignored with no warning, so `debug` and `gapReport` are safe to add.',
139
142
  'A stable CLI before 0.7.0 prints each `{@link ...}` as written.',
140
- 'A stable CLI before 0.7.0 cannot read a docs section, a section `id`, a template that sets `replaces`, or a theme folder that `integration add theme` writes. It can then hide every doc topic your package ships.',
143
+ 'A stable CLI before 0.7.0 rejects a template that sets `replaces` or `keywords`, drops that template, and can hide every doc topic your package ships.',
144
+ 'A stable CLI before 0.6.4 cannot read a docs section, a section `id`, or a theme folder that `integration add theme` writes. It can then hide every doc topic your package ships.',
141
145
  'Stable 0.6.3 still loads your components, but 0.6.0 cannot read the component docs that `integration add component` writes: `component AcmeCarousel` fails there.',
142
146
  ],
143
147
  },
144
148
  {
145
149
  type: 'prose',
146
- text: '`integration verify` requires the CLI peer for a docs section, a placed guide, a template `replaces`, a doc section with an `id`, and a theme. A stable CLI before 0.7.0 cannot read any of them, and when it hides your topics, `docs` gives no warning.',
150
+ text: '`integration verify` requires the CLI peer for a docs section, a placed guide, a template `replaces` or `keywords`, a doc section with an `id`, and a theme. A CLI too old for one of them cannot read it, and when it hides your topics, `docs` gives no warning.',
147
151
  },
148
152
  ],
149
153
  },
@@ -0,0 +1,97 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */
4
+
5
+ export const docs = {
6
+ name: 'use-a-theme',
7
+ title: 'Use a theme',
8
+ category: 'guide',
9
+ keywords: ['theme', 'Theme', 'dark mode', 'light', 'nested', 'provider', 'SSR', 'built', 'runtime', 'neutralTheme', 'available themes'],
10
+ description: 'Apply a theme to your app: wrap in a provider, pick a theme, switch dark mode, nest themes, and choose runtime or built for production.',
11
+ sections: [
12
+ {
13
+ id: 'quick-start',
14
+ title: 'Wrap your app in a theme',
15
+ content: [
16
+ {type: 'code', lang: 'bash', label: 'Install a theme package', code: 'npm install @astryxdesign/theme-neutral'},
17
+ {type: 'code', lang: 'tsx', label: 'Basic theme setup (runtime injection)', code: "import {Theme} from '@astryxdesign/core';\nimport {neutralTheme} from '@astryxdesign/theme-neutral';\n\nfunction App() {\n return (\n <Theme theme={neutralTheme}>\n <YourApp />\n </Theme>\n );\n}"},
18
+ {type: 'code', lang: 'tsx', label: 'Optimized setup (pre-built CSS)', code: "import {Theme} from '@astryxdesign/core';\nimport {neutralTheme} from '@astryxdesign/theme-neutral/built';\nimport '@astryxdesign/theme-neutral/theme.css';\n\nfunction App() {\n return (\n <Theme theme={neutralTheme}>\n <YourApp />\n </Theme>\n );\n}"},
19
+ {type: 'prose', text: 'Each theme ships as its own npm package. Install the one you want, then wrap your app in `<Theme>`. The same pattern works for every theme; just swap the package and import name.'},
20
+ {type: 'prose', text: 'The default import uses runtime style injection, which works everywhere with no build step. The `/built` import skips injection and relies on the pre-compiled CSS file for better performance and SSR support.'},
21
+ ],
22
+ },
23
+ {
24
+ title: 'Available Themes',
25
+ content: [
26
+ {type: 'prose', text: 'Install the theme package you want with `npm install @astryxdesign/theme-{name}`, then import its theme object as shown below.'},
27
+ {type: 'table', headers: ['Theme', 'Import', 'Description'], rows: [
28
+ ['Neutral', "import {neutralTheme} from '@astryxdesign/theme-neutral'", 'Muted, minimal aesthetic with Figtree typography. A good starting point.'],
29
+ ['Butter', "import {butterTheme} from '@astryxdesign/theme-butter'", 'Golden, buttery surfaces with blue accents; Sarina + Outfit type.'],
30
+ ['Chocolate', "import {chocolateTheme} from '@astryxdesign/theme-chocolate'", 'Warm brown tones and cozy beige; Fraunces + Albert Sans type.'],
31
+ ['Gothic', "import {gothicTheme} from '@astryxdesign/theme-gothic'", 'Dark-only atmospheric theme; deep blue-gray surfaces, distressed display type.'],
32
+ ['Matcha', "import {matchaTheme} from '@astryxdesign/theme-matcha'", 'Earthy greens; DM Sans + Playwrite US Trad type.'],
33
+ ['Stone', "import {stoneTheme} from '@astryxdesign/theme-stone'", 'Warm stone and slate tones; Montserrat + Figtree type.'],
34
+ ['Y2K', "import {y2kTheme} from '@astryxdesign/theme-y2k'", 'Playful Y2K pop; periwinkle body, holographic accents, Poppins + Crimson Text.'],
35
+ ]},
36
+ {type: 'prose', text: "All theme packages export from two subpaths:\n- `@astryxdesign/theme-{name}`: source theme (runtime injection)\n- `@astryxdesign/theme-{name}/built`: pre-built theme (pair with `theme.css`)"},
37
+ ],
38
+ },
39
+ {
40
+ title: 'Theme Props',
41
+ content: [
42
+ {type: 'prose', text: "`<Theme>` takes `theme` (required), `mode` (`'system'` by default, or `'light'`/`'dark'`), and `children`. For every prop, run `astryx component Theme`."},
43
+ ],
44
+ },
45
+ {
46
+ id: 'integration-themes',
47
+ title: 'Using a Theme from an Integration',
48
+ content: [
49
+ {type: 'prose', text: 'Install the integration as a direct dependency and Astryx discovers its source themes and guide topics without an `astryx.config` file. Install Core too because the copied source imports `defineTheme` from `@astryxdesign/core/theme`.'},
50
+ {type: 'code', lang: 'bash', label: 'Install, inspect, copy, and build', code: 'npm install @astryxdesign/core @acme/brand-integration\nastryx theme list --package @acme/brand-integration\nastryx docs brand-theme\nastryx theme add ocean --package @acme/brand-integration\nastryx theme build src/themes/ocean/oceanTheme.ts'},
51
+ {type: 'prose', text: "The copy is editable project source, not a reference back into node_modules. The complete theme directory comes with it, including its typed `.doc.mjs`, nested token and palette modules, and receipts. A second add refuses to overwrite those files unless you pass `--overwrite`."},
52
+ ],
53
+ },
54
+ {
55
+ id: 'light-dark-mode',
56
+ title: 'Dark mode',
57
+ content: [
58
+ {type: 'prose', text: "Use [light, dark] tuples in token values for automatic mode switching. Use mode='system' (default) on Theme to follow OS preference."},
59
+ {type: 'code', lang: 'tsx', label: 'Light/dark tuple', code: "'--color-accent': ['#0064E0', '#2694FE'],\n// ^light ^dark"},
60
+ {type: 'code', lang: 'tsx', label: 'Toggle with a button', code: "const [mode, setMode] = useState<'light' | 'dark'>('light');\n\n<Theme theme={myTheme} mode={mode}>\n <Button\n label={mode === 'light' ? 'Switch to Dark' : 'Switch to Light'}\n onClick={() => setMode(m => (m === 'light' ? 'dark' : 'light'))}\n />\n</Theme>;"},
61
+ {type: 'prose', text: 'To create a theme with custom dark mode colors, see {@link generic:author-a-theme}.'},
62
+ ],
63
+ },
64
+ {
65
+ id: 'nesting-themes',
66
+ title: 'Nested themes',
67
+ content: [
68
+ {type: 'prose', text: 'Wrap different sections in separate `<Theme>` providers.'},
69
+ {type: 'code', lang: 'tsx', label: 'Dark sidebar with light content', code: "<Theme theme={lightTheme} mode=\"light\">\n <Layout\n header={<LayoutHeader>...</LayoutHeader>}\n start={\n <Theme theme={darkTheme} mode=\"dark\">\n <LayoutPanel>{/* Dark sidebar */}</LayoutPanel>\n </Theme>\n }\n content={<LayoutContent>{/* Light content */}</LayoutContent>}\n />\n</Theme>"},
70
+ ],
71
+ },
72
+ {
73
+ title: 'Runtime vs Built Themes',
74
+ content: [
75
+ {type: 'prose', text: 'Themes work in two modes:'},
76
+ {type: 'table', headers: ['', 'Runtime (source)', 'Built'], rows: [
77
+ ['Import (published theme)', '@astryxdesign/theme-{name}', '@astryxdesign/theme-{name}/built + theme.css'],
78
+ ['Import (custom theme)', 'defineTheme() directly', 'Built .js + .css from `astryx theme build`'],
79
+ ['How it works', 'useInsertionEffect injects <style> at hydration', 'Pre-compiled .css file loaded with the page'],
80
+ ['Component overrides', 'Injected client-only', 'In static CSS: present during SSR'],
81
+ ['SSR safe', 'Tokens yes, component overrides flash on hydration', 'Fully SSR safe: no flash'],
82
+ ['Best for', 'Dev, prototyping, client-only SPAs', 'Production, SSR apps (Next.js, Remix)'],
83
+ ]},
84
+ {type: 'list', style: 'do', items: [
85
+ 'Use the /built subpath + theme.css for production SSR apps.',
86
+ 'Use runtime themes during development for fast iteration.',
87
+ 'Run `astryx theme build` for custom themes to get the built artifacts.',
88
+ ]},
89
+ {type: 'list', style: 'dont', items: [
90
+ 'Use runtime themes in production SSR apps; component overrides will flash on hydration.',
91
+ "Import /built without the CSS file; component overrides won't apply.",
92
+ ]},
93
+ {type: 'prose', text: 'To build a custom theme for production, see the Build section of {@link generic:author-a-theme}.'},
94
+ ],
95
+ },
96
+ ],
97
+ };
@@ -0,0 +1,15 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'DropdownMenuGroup',
7
+ name: 'DropdownMenuGroup',
8
+ displayName: 'Dropdown Menu Group',
9
+ description:
10
+ 'A compound-mode menu whose rows are titled in groups. Each DropdownMenuGroup renders a role="group" named by its heading; arrow keys and typeahead skip the heading.',
11
+ isReady: true,
12
+ isShowcase: true,
13
+ aspectRatio: 16 / 9,
14
+ componentsUsed: ['DropdownMenu', 'DropdownMenuGroup', 'DropdownMenuItem'],
15
+ };
@@ -0,0 +1,38 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {
6
+ DropdownMenu,
7
+ DropdownMenuDivider,
8
+ DropdownMenuGroup,
9
+ DropdownMenuItem,
10
+ } from '@astryxdesign/core/DropdownMenu';
11
+
12
+ export default function DropdownMenuGroupShowcase() {
13
+ return (
14
+ <DropdownMenu button={{label: 'Version'}}>
15
+ <DropdownMenuGroup title="Version history">
16
+ <DropdownMenuItem
17
+ icon="arrowDown"
18
+ label="Restore this version"
19
+ onClick={() => {}}
20
+ />
21
+ <DropdownMenuItem
22
+ icon="copy"
23
+ label="Compare with current"
24
+ onClick={() => {}}
25
+ />
26
+ </DropdownMenuGroup>
27
+ <DropdownMenuDivider />
28
+ <DropdownMenuGroup title="Add to message">
29
+ <DropdownMenuItem
30
+ icon="externalLink"
31
+ label="As a link"
32
+ onClick={() => {}}
33
+ />
34
+ <DropdownMenuItem label="As a snippet" onClick={() => {}} />
35
+ </DropdownMenuGroup>
36
+ </DropdownMenu>
37
+ );
38
+ }
@@ -0,0 +1,20 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'DropdownMenuGroup',
7
+ name: 'DropdownMenuGroup — Selectable rows',
8
+ displayName: 'DropdownMenuGroup — Selectable rows',
9
+ description:
10
+ 'Titled groups around a radio group and checkbox rows — the rows the data API cannot express, which is why the heading lives in compound mode.',
11
+ isReady: true,
12
+ aspectRatio: 16 / 9,
13
+ componentsUsed: [
14
+ 'DropdownMenu',
15
+ 'DropdownMenuGroup',
16
+ 'DropdownMenuRadioGroup',
17
+ 'DropdownMenuRadioItem',
18
+ 'DropdownMenuCheckboxItem',
19
+ ],
20
+ };
@@ -0,0 +1,48 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {useState} from 'react';
6
+ import {
7
+ DropdownMenu,
8
+ DropdownMenuCheckboxItem,
9
+ DropdownMenuDivider,
10
+ DropdownMenuGroup,
11
+ DropdownMenuRadioGroup,
12
+ DropdownMenuRadioItem,
13
+ } from '@astryxdesign/core/DropdownMenu';
14
+
15
+ export default function DropdownMenuGroupWithSelectable() {
16
+ const [model, setModel] = useState('balanced');
17
+ const [notify, setNotify] = useState(true);
18
+ const [retry, setRetry] = useState(false);
19
+
20
+ return (
21
+ <DropdownMenu button={{label: 'Run settings'}}>
22
+ <DropdownMenuGroup title="Model">
23
+ <DropdownMenuRadioGroup
24
+ label="Model"
25
+ value={model}
26
+ onChange={setModel}
27
+ hasCloseOnSelect={false}>
28
+ <DropdownMenuRadioItem value="fast" label="Fast" />
29
+ <DropdownMenuRadioItem value="balanced" label="Balanced" />
30
+ <DropdownMenuRadioItem value="thorough" label="Thorough" />
31
+ </DropdownMenuRadioGroup>
32
+ </DropdownMenuGroup>
33
+ <DropdownMenuDivider />
34
+ <DropdownMenuGroup title="On completion">
35
+ <DropdownMenuCheckboxItem
36
+ label="Notify me"
37
+ value={notify}
38
+ onChange={setNotify}
39
+ />
40
+ <DropdownMenuCheckboxItem
41
+ label="Retry on failure"
42
+ value={retry}
43
+ onChange={setRetry}
44
+ />
45
+ </DropdownMenuGroup>
46
+ </DropdownMenu>
47
+ );
48
+ }
@@ -5,7 +5,22 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'AI Chat Conversation',
7
7
  displayName: 'AI Chat Conversation',
8
- description: 'Transcript of alternating turns carrying mixed rich content inline (markdown, code blocks, collapsible tool-call output) beside a resizable artifact panel that holds generated output while the stream keeps scrolling. Chat, conversation, assistant, messages, or copilot thread.',
8
+ description:
9
+ 'Transcript of alternating turns carrying mixed rich content inline (markdown, code blocks, collapsible tool-call output) beside a resizable artifact panel that holds generated output while the stream keeps scrolling.',
10
+ keywords: [
11
+ 'chat',
12
+ 'conversation',
13
+ 'assistant',
14
+ 'messages',
15
+ 'copilot thread',
16
+ 'agent',
17
+ 'session',
18
+ 'composer',
19
+ 'questions',
20
+ 'answers with citations',
21
+ 'reasoning trace',
22
+ 'prompt playground',
23
+ ],
9
24
  isReady: true,
10
25
  category: 'AI Chat - Conversation',
11
26
  };
@@ -5,7 +5,15 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'AI Chat Landing',
7
7
  displayName: 'AI Chat Landing',
8
- description: 'Zero-state entry surface centered on a single composer with suggestion chips instead of history, sized for the moment before any content exists. The empty counterpart to a transcript. Chat, conversation, assistant, prompt, or messages launcher.',
8
+ description:
9
+ 'Zero-state entry surface centered on a single composer with suggestion chips instead of history, sized for the moment before any content exists. The empty counterpart to a transcript.',
10
+ keywords: [
11
+ 'chat',
12
+ 'conversation',
13
+ 'assistant',
14
+ 'prompt',
15
+ 'messages launcher',
16
+ ],
9
17
  isReady: true,
10
18
  category: 'AI Chat - Landing',
11
19
  };
@@ -5,7 +5,9 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Blank',
7
7
  displayName: 'Blank',
8
- description: 'Bare scaffold: one heading slot, one empty content region, no navigation and no chrome. The starting point when every other layout imposes more structure than wanted. Blank, empty, stub, placeholder, or minimal scaffold.',
8
+ description:
9
+ 'Bare scaffold: one heading slot, one empty content region, no navigation and no chrome. The starting point when every other layout imposes more structure than wanted.',
10
+ keywords: ['blank', 'empty', 'stub', 'placeholder', 'minimal scaffold'],
9
11
  isReady: true,
10
12
  scaffold: true,
11
13
  category: 'Shell - Blank',
@@ -6,7 +6,15 @@ export const doc = {
6
6
  name: 'Canvas Editor',
7
7
  displayName: 'Canvas Editor',
8
8
  description:
9
- 'Layered artboard workspace: document tabs over a layer rail, a fixed-size frame you zoom on a muted backdrop, and an inspector of position, type, and filter fields that retargets to the selected layer. Objects hold a coordinate rather than reflowing, so moving one never moves another. Design tool, artboard, poster, graphic, image, or slide editor.',
9
+ 'Layered artboard workspace: document tabs over a layer rail, a fixed-size frame you zoom on a muted backdrop, and an inspector of position, type, and filter fields that retargets to the selected layer. Objects hold a coordinate rather than reflowing, so moving one never moves another.',
10
+ keywords: [
11
+ 'design tool',
12
+ 'artboard',
13
+ 'poster',
14
+ 'graphic',
15
+ 'image',
16
+ 'slide editor',
17
+ ],
10
18
  isReady: true,
11
19
  category: 'Tools - Canvas Editor',
12
20
  };
@@ -5,7 +5,9 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Centered Hero',
7
7
  displayName: 'Centered Hero',
8
- description: 'Symmetrical centered stack (headline, short blurb, paired call-to-action buttons) resting on one wide full-bleed picture, with nothing on either flank competing. Hero, banner, splash, landing image, or marketing masthead.',
8
+ description:
9
+ 'Symmetrical centered stack (headline, short blurb, paired call-to-action buttons) resting on one wide full-bleed picture, with nothing on either flank competing.',
10
+ keywords: ['hero', 'banner', 'splash', 'landing image', 'marketing masthead'],
9
11
  isReady: true,
10
12
  category: 'Gallery - Hero',
11
13
  };
@@ -7,6 +7,7 @@ export const doc = {
7
7
  displayName: 'Checkout Wizard',
8
8
  description:
9
9
  'Multi-step checkout, cart, order, and payment wizard with a running summary that recalculates as answers change. It adapts to its host width, renders the summary first on narrow surfaces, validates every forward path, and completes locally without sending payment.',
10
+ keywords: ['checkout', 'cart', 'order', 'payment'],
10
11
  isReady: true,
11
12
  category: 'Form - Checkout',
12
13
  };
@@ -4,7 +4,9 @@
4
4
  export const doc = {
5
5
  name: 'Classic Gallery',
6
6
  displayName: 'Classic Gallery',
7
- description: 'Uniform grid of equal-ratio media tiles under a centered intro, with filter tabs that narrow the set in place. Regular rhythm, unlike the variable-height masonry variant. Gallery, photos, images, pictures, or portfolio index.',
7
+ description:
8
+ 'Uniform grid of equal-ratio media tiles under a centered intro, with filter tabs that narrow the set in place. Regular rhythm, unlike the variable-height masonry variant.',
9
+ keywords: ['gallery', 'photos', 'images', 'pictures', 'portfolio index'],
8
10
  type: 'page',
9
11
  isReady: true,
10
12
  category: 'Gallery - Basic',
@@ -5,7 +5,22 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Contact Form',
7
7
  displayName: 'Contact Form',
8
- description: 'Flat single-column form mixing control types (text, pill toggles, dropdowns, long free-text) landing on one full-width submit. No steps, no branching, no summary rail. Contact, lead capture, enquiry, survey, or intake form.',
8
+ description:
9
+ 'Flat single-column form mixing control types (text, pill toggles, dropdowns, long free-text) landing on one full-width submit. No steps, no branching, no summary rail.',
10
+ keywords: [
11
+ 'contact',
12
+ 'lead capture',
13
+ 'enquiry',
14
+ 'survey',
15
+ 'intake form',
16
+ 'questionnaire',
17
+ 'feedback',
18
+ 'request',
19
+ 'submission',
20
+ 'entry',
21
+ 'fields',
22
+ 'upload',
23
+ ],
9
24
  isReady: true,
10
25
  category: 'Form - Basic',
11
26
  };
@@ -6,7 +6,21 @@ export const doc = {
6
6
  name: 'Analytics Dashboard',
7
7
  displayName: 'Analytics Dashboard',
8
8
  description:
9
- 'Three-band analytics: a row of headline tiles, then charts, then supporting tables, all re-reading from one global filter bar. Breadth over depth, a summary surface rather than a drill-down. Dashboard, overview, metrics, stats, analytics, reporting, or insights.',
9
+ 'Three-band analytics: a row of headline tiles, then charts, then supporting tables, all re-reading from one global filter bar. Breadth over depth, a summary surface rather than a drill-down.',
10
+ keywords: [
11
+ 'dashboard',
12
+ 'overview',
13
+ 'metrics',
14
+ 'stats',
15
+ 'analytics',
16
+ 'reporting',
17
+ 'insights',
18
+ 'kpi tiles',
19
+ 'widgets',
20
+ 'donut charts',
21
+ 'breakdowns',
22
+ 'forecasts',
23
+ ],
10
24
  isReady: true,
11
25
  category: 'Dashboard - Analytics',
12
26
  };
@@ -6,7 +6,29 @@ export const doc = {
6
6
  name: 'Service Monitoring Dashboard',
7
7
  displayName: 'Service Monitoring Dashboard',
8
8
  description:
9
- 'Always-on analytics with a triage rail: status-colored tiles with sparklines, multi-series time charts over a switchable window, and an independently scrolling alert column that folds into the content when narrow. Monitoring, uptime, health, latency, alerting, incidents, or observability.',
9
+ 'Always-on analytics with a triage rail: status-colored tiles with sparklines, multi-series time charts over a switchable window, and an independently scrolling alert column that folds into the content when narrow.',
10
+ keywords: [
11
+ 'monitoring',
12
+ 'uptime',
13
+ 'health',
14
+ 'latency',
15
+ 'alerting',
16
+ 'incidents',
17
+ 'observability',
18
+ 'operations',
19
+ 'live status',
20
+ 'real-time',
21
+ 'reliability',
22
+ 'traffic',
23
+ 'anomalies',
24
+ 'severity',
25
+ 'on-call',
26
+ 'oncall',
27
+ 'fleet',
28
+ 'pipelines',
29
+ 'freshness',
30
+ 'command center',
31
+ ],
10
32
  isReady: true,
11
33
  category: 'Dashboard - Monitoring',
12
34
  };
@@ -6,7 +6,16 @@ export const doc = {
6
6
  name: 'Funnel & Cohort Dashboard',
7
7
  displayName: 'Funnel & Cohort Dashboard',
8
8
  description:
9
- 'Analytics for sequence and retention questions, pairing two shapes a plain dashboard cannot hold: a staged funnel where each step reads as drop-off against the one before, and a two-axis cohort matrix rendered as a heatmap. Conversion, drop-off, activation, churn, or retention reporting.',
9
+ 'Analytics for sequence and retention questions, pairing two shapes a plain dashboard cannot hold: a staged funnel where each step reads as drop-off against the one before, and a two-axis cohort matrix rendered as a heatmap.',
10
+ keywords: [
11
+ 'conversion',
12
+ 'drop-off',
13
+ 'activation',
14
+ 'churn',
15
+ 'retention reporting',
16
+ 'stages',
17
+ 'segments',
18
+ ],
10
19
  isReady: true,
11
20
  category: 'Dashboard - Funnel & Cohort',
12
21
  };
@@ -6,7 +6,15 @@ export const doc = {
6
6
  name: 'Data Dashboard',
7
7
  displayName: 'Data Dashboard',
8
8
  description:
9
- 'Comparison-heavy analytics behind a persistent filter bar: tiles that each carry an inline sparkline and several period-over-period deltas, then segmented breakdowns underneath. Every number is shown against another number. Dashboard, metrics, stats, analytics, trends, or reporting.',
9
+ 'Comparison-heavy analytics behind a persistent filter bar: tiles that each carry an inline sparkline and several period-over-period deltas, then segmented breakdowns underneath. Every number is shown against another number.',
10
+ keywords: [
11
+ 'dashboard',
12
+ 'metrics',
13
+ 'stats',
14
+ 'analytics',
15
+ 'trends',
16
+ 'reporting',
17
+ ],
10
18
  isReady: true,
11
19
  category: 'Dashboard - Comparison',
12
20
  };
@@ -6,7 +6,16 @@ export const doc = {
6
6
  name: 'Portfolio Dashboard',
7
7
  displayName: 'Portfolio Dashboard',
8
8
  description:
9
- 'Analytics for a value-over-time question: balance and change tiles above a stacked area chart of composition through time, closing on a ranked table of the largest contributors. Portfolio, holdings, positions, returns, allocation, investments, or performance reporting.',
9
+ 'Analytics for a value-over-time question: balance and change tiles above a stacked area chart of composition through time, closing on a ranked table of the largest contributors.',
10
+ keywords: [
11
+ 'portfolio',
12
+ 'holdings',
13
+ 'positions',
14
+ 'returns',
15
+ 'allocation',
16
+ 'investments',
17
+ 'performance reporting',
18
+ ],
10
19
  isReady: true,
11
20
  category: 'Dashboard - Portfolio',
12
21
  };
@@ -6,7 +6,23 @@ export const doc = {
6
6
  name: 'Project Status Dashboard',
7
7
  displayName: 'Project Status Dashboard',
8
8
  description:
9
- 'Status analytics mixing progress and time-axis shapes: a completion donut, a horizontal timeline of dated bars against a today marker, a per-owner table with progress and status, an at-risk list, and a burndown. Project, program, milestone, roadmap, launch, or delivery status.',
9
+ 'Status analytics mixing progress and time-axis shapes: a completion donut, a horizontal timeline of dated bars against a today marker, a per-owner table with progress and status, an at-risk list, and a burndown.',
10
+ keywords: [
11
+ 'project',
12
+ 'program',
13
+ 'milestone',
14
+ 'roadmap',
15
+ 'launch',
16
+ 'delivery status',
17
+ 'workstreams and milestones',
18
+ 'gates',
19
+ 'blockers',
20
+ 'gantt',
21
+ 'rollout',
22
+ 'release planning',
23
+ 'readiness',
24
+ 'tracker',
25
+ ],
10
26
  isReady: true,
11
27
  category: 'Dashboard - Project Status',
12
28
  };
@@ -6,7 +6,8 @@ export const doc = {
6
6
  name: 'Executive Summary Dashboard',
7
7
  displayName: 'Executive Summary Dashboard',
8
8
  description:
9
- 'Report-shaped analytics with a prose rail beside the charts: a scorecard of headline numbers with period deltas and status coloring, goal-attainment bars, a trend grid, and a written commentary column that folds beneath the content when narrow. Executive summary, business review, readout, or reporting.',
9
+ 'Report-shaped analytics with a prose rail beside the charts: a scorecard of headline numbers with period deltas and status coloring, goal-attainment bars, a trend grid, and a written commentary column that folds beneath the content when narrow.',
10
+ keywords: ['executive summary', 'business review', 'readout', 'reporting'],
10
11
  isReady: true,
11
12
  category: 'Dashboard - Scorecard',
12
13
  };
@@ -6,6 +6,14 @@ export const doc = {
6
6
  name: 'Order Detail',
7
7
  displayName: 'Order Detail',
8
8
  description: 'Single-record detail in two columns: a summary header with status and actions, a repeating line-item list, a totals block that sums it, and a chronological activity timeline in the rail. The shape for any record holding children plus a history: a customer order with shipping, an invoice, a transaction, or a job.',
9
+ keywords: [
10
+ 'order',
11
+ 'invoice',
12
+ 'transaction',
13
+ 'job',
14
+ 'record detail',
15
+ 'summary header',
16
+ ],
9
17
  isReady: true,
10
18
  category: 'Content - Order Detail',
11
19
  };