@helixds/react 0.0.0-stage → 0.2.0

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 (377) hide show
  1. package/AGENTS.md +295 -0
  2. package/LICENSE +21 -0
  3. package/README.md +49 -2
  4. package/dist/archetypes/actions-navigation.md +62 -0
  5. package/dist/archetypes/data-display.md +68 -0
  6. package/dist/archetypes/feedback-status.md +54 -0
  7. package/dist/archetypes/form-selection.md +61 -0
  8. package/dist/archetypes/foundation.md +56 -0
  9. package/dist/archetypes/layout.md +53 -0
  10. package/dist/archetypes/overlays.md +54 -0
  11. package/dist/archetypes/text-input.md +58 -0
  12. package/dist/components/Accordion/Accordion.d.ts +14 -0
  13. package/dist/components/Accordion/Accordion.doc.d.ts +4 -0
  14. package/dist/components/Accordion/Accordion.doc.js +27 -0
  15. package/dist/components/Accordion/Accordion.js +76 -0
  16. package/dist/components/Accordion/Accordion.types.d.ts +24 -0
  17. package/dist/components/Accordion/Accordion.types.js +2 -0
  18. package/dist/components/Accordion/index.d.ts +9 -0
  19. package/dist/components/Accordion/index.js +2 -0
  20. package/dist/components/Avatar/Avatar.d.ts +14 -0
  21. package/dist/components/Avatar/Avatar.doc.d.ts +4 -0
  22. package/dist/components/Avatar/Avatar.doc.js +34 -0
  23. package/dist/components/Avatar/Avatar.js +14 -0
  24. package/dist/components/Avatar/Avatar.types.d.ts +20 -0
  25. package/dist/components/Avatar/Avatar.types.js +2 -0
  26. package/dist/components/Avatar/index.d.ts +9 -0
  27. package/dist/components/Avatar/index.js +2 -0
  28. package/dist/components/AvatarGroup/AvatarGroup.d.ts +14 -0
  29. package/dist/components/AvatarGroup/AvatarGroup.doc.d.ts +4 -0
  30. package/dist/components/AvatarGroup/AvatarGroup.doc.js +30 -0
  31. package/dist/components/AvatarGroup/AvatarGroup.js +15 -0
  32. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +21 -0
  33. package/dist/components/AvatarGroup/AvatarGroup.types.js +2 -0
  34. package/dist/components/AvatarGroup/index.d.ts +9 -0
  35. package/dist/components/AvatarGroup/index.js +2 -0
  36. package/dist/components/Badge/Badge.d.ts +16 -0
  37. package/dist/components/Badge/Badge.doc.d.ts +4 -0
  38. package/dist/components/Badge/Badge.doc.js +69 -0
  39. package/dist/components/Badge/Badge.js +23 -0
  40. package/dist/components/Badge/Badge.types.d.ts +22 -0
  41. package/dist/components/Badge/Badge.types.js +2 -0
  42. package/dist/components/Badge/index.d.ts +9 -0
  43. package/dist/components/Badge/index.js +2 -0
  44. package/dist/components/Button/Button.d.ts +11 -0
  45. package/dist/components/Button/Button.doc.d.ts +4 -0
  46. package/dist/components/Button/Button.doc.js +98 -0
  47. package/dist/components/Button/Button.js +80 -0
  48. package/dist/components/Button/Button.types.d.ts +29 -0
  49. package/dist/components/Button/Button.types.js +2 -0
  50. package/dist/components/Button/index.d.ts +9 -0
  51. package/dist/components/Button/index.js +2 -0
  52. package/dist/components/Card/Card.d.ts +14 -0
  53. package/dist/components/Card/Card.doc.d.ts +4 -0
  54. package/dist/components/Card/Card.doc.js +44 -0
  55. package/dist/components/Card/Card.js +9 -0
  56. package/dist/components/Card/Card.types.d.ts +19 -0
  57. package/dist/components/Card/Card.types.js +2 -0
  58. package/dist/components/Card/index.d.ts +9 -0
  59. package/dist/components/Card/index.js +2 -0
  60. package/dist/components/Chart/Chart.d.ts +14 -0
  61. package/dist/components/Chart/Chart.doc.d.ts +4 -0
  62. package/dist/components/Chart/Chart.doc.js +49 -0
  63. package/dist/components/Chart/Chart.js +184 -0
  64. package/dist/components/Chart/Chart.types.d.ts +21 -0
  65. package/dist/components/Chart/Chart.types.js +2 -0
  66. package/dist/components/Chart/index.d.ts +9 -0
  67. package/dist/components/Chart/index.js +2 -0
  68. package/dist/components/Checkbox/Checkbox.d.ts +12 -0
  69. package/dist/components/Checkbox/Checkbox.doc.d.ts +4 -0
  70. package/dist/components/Checkbox/Checkbox.doc.js +54 -0
  71. package/dist/components/Checkbox/Checkbox.js +23 -0
  72. package/dist/components/Checkbox/Checkbox.types.d.ts +22 -0
  73. package/dist/components/Checkbox/Checkbox.types.js +2 -0
  74. package/dist/components/Checkbox/index.d.ts +9 -0
  75. package/dist/components/Checkbox/index.js +2 -0
  76. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +13 -0
  77. package/dist/components/CheckboxGroup/CheckboxGroup.doc.d.ts +4 -0
  78. package/dist/components/CheckboxGroup/CheckboxGroup.doc.js +56 -0
  79. package/dist/components/CheckboxGroup/CheckboxGroup.js +27 -0
  80. package/dist/components/CheckboxGroup/CheckboxGroup.types.d.ts +28 -0
  81. package/dist/components/CheckboxGroup/CheckboxGroup.types.js +2 -0
  82. package/dist/components/CheckboxGroup/index.d.ts +9 -0
  83. package/dist/components/CheckboxGroup/index.js +2 -0
  84. package/dist/components/Chip/Chip.d.ts +11 -0
  85. package/dist/components/Chip/Chip.doc.d.ts +4 -0
  86. package/dist/components/Chip/Chip.doc.js +105 -0
  87. package/dist/components/Chip/Chip.js +30 -0
  88. package/dist/components/Chip/Chip.types.d.ts +31 -0
  89. package/dist/components/Chip/Chip.types.js +2 -0
  90. package/dist/components/Chip/index.d.ts +9 -0
  91. package/dist/components/Chip/index.js +2 -0
  92. package/dist/components/ChipGroup/ChipGroup.d.ts +12 -0
  93. package/dist/components/ChipGroup/ChipGroup.doc.d.ts +4 -0
  94. package/dist/components/ChipGroup/ChipGroup.doc.js +31 -0
  95. package/dist/components/ChipGroup/ChipGroup.js +9 -0
  96. package/dist/components/ChipGroup/ChipGroup.types.d.ts +27 -0
  97. package/dist/components/ChipGroup/ChipGroup.types.js +2 -0
  98. package/dist/components/ChipGroup/index.d.ts +9 -0
  99. package/dist/components/ChipGroup/index.js +2 -0
  100. package/dist/components/Combobox/Combobox.d.ts +17 -0
  101. package/dist/components/Combobox/Combobox.doc.d.ts +4 -0
  102. package/dist/components/Combobox/Combobox.doc.js +41 -0
  103. package/dist/components/Combobox/Combobox.js +141 -0
  104. package/dist/components/Combobox/Combobox.types.d.ts +31 -0
  105. package/dist/components/Combobox/Combobox.types.js +2 -0
  106. package/dist/components/Combobox/index.d.ts +9 -0
  107. package/dist/components/Combobox/index.js +2 -0
  108. package/dist/components/FAB/FAB.d.ts +11 -0
  109. package/dist/components/FAB/FAB.doc.d.ts +4 -0
  110. package/dist/components/FAB/FAB.doc.js +52 -0
  111. package/dist/components/FAB/FAB.js +133 -0
  112. package/dist/components/FAB/FAB.types.d.ts +37 -0
  113. package/dist/components/FAB/FAB.types.js +2 -0
  114. package/dist/components/FAB/index.d.ts +9 -0
  115. package/dist/components/FAB/index.js +2 -0
  116. package/dist/components/Icon/Icon.d.ts +14 -0
  117. package/dist/components/Icon/Icon.doc.d.ts +4 -0
  118. package/dist/components/Icon/Icon.doc.js +38 -0
  119. package/dist/components/Icon/Icon.js +15 -0
  120. package/dist/components/Icon/Icon.types.d.ts +47 -0
  121. package/dist/components/Icon/Icon.types.js +2 -0
  122. package/dist/components/Icon/createIconAdapter.d.ts +24 -0
  123. package/dist/components/Icon/createIconAdapter.js +28 -0
  124. package/dist/components/Icon/iconStroke.d.ts +20 -0
  125. package/dist/components/Icon/iconStroke.js +54 -0
  126. package/dist/components/Icon/index.d.ts +12 -0
  127. package/dist/components/Icon/index.js +4 -0
  128. package/dist/components/IconButton/IconButton.d.ts +11 -0
  129. package/dist/components/IconButton/IconButton.doc.d.ts +4 -0
  130. package/dist/components/IconButton/IconButton.doc.js +76 -0
  131. package/dist/components/IconButton/IconButton.js +20 -0
  132. package/dist/components/IconButton/IconButton.types.d.ts +25 -0
  133. package/dist/components/IconButton/IconButton.types.js +2 -0
  134. package/dist/components/IconButton/index.d.ts +9 -0
  135. package/dist/components/IconButton/index.js +2 -0
  136. package/dist/components/Input/Input.d.ts +11 -0
  137. package/dist/components/Input/Input.doc.d.ts +4 -0
  138. package/dist/components/Input/Input.doc.js +68 -0
  139. package/dist/components/Input/Input.js +48 -0
  140. package/dist/components/Input/Input.types.d.ts +36 -0
  141. package/dist/components/Input/Input.types.js +2 -0
  142. package/dist/components/Input/index.d.ts +9 -0
  143. package/dist/components/Input/index.js +2 -0
  144. package/dist/components/Menu/Menu.d.ts +14 -0
  145. package/dist/components/Menu/Menu.doc.d.ts +4 -0
  146. package/dist/components/Menu/Menu.doc.js +46 -0
  147. package/dist/components/Menu/Menu.js +105 -0
  148. package/dist/components/Menu/Menu.types.d.ts +34 -0
  149. package/dist/components/Menu/Menu.types.js +2 -0
  150. package/dist/components/Menu/index.d.ts +9 -0
  151. package/dist/components/Menu/index.js +2 -0
  152. package/dist/components/Modal/Modal.d.ts +14 -0
  153. package/dist/components/Modal/Modal.doc.d.ts +4 -0
  154. package/dist/components/Modal/Modal.doc.js +52 -0
  155. package/dist/components/Modal/Modal.js +30 -0
  156. package/dist/components/Modal/Modal.types.d.ts +36 -0
  157. package/dist/components/Modal/Modal.types.js +2 -0
  158. package/dist/components/Modal/index.d.ts +9 -0
  159. package/dist/components/Modal/index.js +2 -0
  160. package/dist/components/MultiSelect/MultiSelect.d.ts +17 -0
  161. package/dist/components/MultiSelect/MultiSelect.doc.d.ts +4 -0
  162. package/dist/components/MultiSelect/MultiSelect.doc.js +37 -0
  163. package/dist/components/MultiSelect/MultiSelect.js +165 -0
  164. package/dist/components/MultiSelect/MultiSelect.types.d.ts +50 -0
  165. package/dist/components/MultiSelect/MultiSelect.types.js +2 -0
  166. package/dist/components/MultiSelect/index.d.ts +9 -0
  167. package/dist/components/MultiSelect/index.js +2 -0
  168. package/dist/components/NavItem/NavItem.d.ts +14 -0
  169. package/dist/components/NavItem/NavItem.doc.d.ts +4 -0
  170. package/dist/components/NavItem/NavItem.doc.js +31 -0
  171. package/dist/components/NavItem/NavItem.js +21 -0
  172. package/dist/components/NavItem/NavItem.types.d.ts +20 -0
  173. package/dist/components/NavItem/NavItem.types.js +2 -0
  174. package/dist/components/NavItem/index.d.ts +9 -0
  175. package/dist/components/NavItem/index.js +2 -0
  176. package/dist/components/Popover/Popover.d.ts +14 -0
  177. package/dist/components/Popover/Popover.doc.d.ts +4 -0
  178. package/dist/components/Popover/Popover.doc.js +47 -0
  179. package/dist/components/Popover/Popover.js +157 -0
  180. package/dist/components/Popover/Popover.types.d.ts +27 -0
  181. package/dist/components/Popover/Popover.types.js +2 -0
  182. package/dist/components/Popover/index.d.ts +9 -0
  183. package/dist/components/Popover/index.js +2 -0
  184. package/dist/components/RadioButton/RadioButton.d.ts +14 -0
  185. package/dist/components/RadioButton/RadioButton.doc.d.ts +4 -0
  186. package/dist/components/RadioButton/RadioButton.doc.js +35 -0
  187. package/dist/components/RadioButton/RadioButton.js +15 -0
  188. package/dist/components/RadioButton/RadioButton.types.d.ts +33 -0
  189. package/dist/components/RadioButton/RadioButton.types.js +2 -0
  190. package/dist/components/RadioButton/index.d.ts +9 -0
  191. package/dist/components/RadioButton/index.js +2 -0
  192. package/dist/components/RadioGroup/RadioGroup.d.ts +12 -0
  193. package/dist/components/RadioGroup/RadioGroup.doc.d.ts +4 -0
  194. package/dist/components/RadioGroup/RadioGroup.doc.js +80 -0
  195. package/dist/components/RadioGroup/RadioGroup.js +19 -0
  196. package/dist/components/RadioGroup/RadioGroup.types.d.ts +28 -0
  197. package/dist/components/RadioGroup/RadioGroup.types.js +2 -0
  198. package/dist/components/RadioGroup/index.d.ts +9 -0
  199. package/dist/components/RadioGroup/index.js +2 -0
  200. package/dist/components/SegmentedControl/SegmentedControl.d.ts +13 -0
  201. package/dist/components/SegmentedControl/SegmentedControl.doc.d.ts +4 -0
  202. package/dist/components/SegmentedControl/SegmentedControl.doc.js +50 -0
  203. package/dist/components/SegmentedControl/SegmentedControl.js +64 -0
  204. package/dist/components/SegmentedControl/SegmentedControl.types.d.ts +26 -0
  205. package/dist/components/SegmentedControl/SegmentedControl.types.js +2 -0
  206. package/dist/components/SegmentedControl/index.d.ts +9 -0
  207. package/dist/components/SegmentedControl/index.js +2 -0
  208. package/dist/components/Select/Select.d.ts +13 -0
  209. package/dist/components/Select/Select.doc.d.ts +4 -0
  210. package/dist/components/Select/Select.doc.js +66 -0
  211. package/dist/components/Select/Select.js +138 -0
  212. package/dist/components/Select/Select.types.d.ts +36 -0
  213. package/dist/components/Select/Select.types.js +2 -0
  214. package/dist/components/Select/index.d.ts +9 -0
  215. package/dist/components/Select/index.js +2 -0
  216. package/dist/components/SidePanel/SidePanel.d.ts +14 -0
  217. package/dist/components/SidePanel/SidePanel.doc.d.ts +4 -0
  218. package/dist/components/SidePanel/SidePanel.doc.js +29 -0
  219. package/dist/components/SidePanel/SidePanel.js +19 -0
  220. package/dist/components/SidePanel/SidePanel.types.d.ts +28 -0
  221. package/dist/components/SidePanel/SidePanel.types.js +2 -0
  222. package/dist/components/SidePanel/index.d.ts +9 -0
  223. package/dist/components/SidePanel/index.js +2 -0
  224. package/dist/components/Switch/Switch.d.ts +13 -0
  225. package/dist/components/Switch/Switch.doc.d.ts +4 -0
  226. package/dist/components/Switch/Switch.doc.js +56 -0
  227. package/dist/components/Switch/Switch.js +45 -0
  228. package/dist/components/Switch/Switch.types.d.ts +21 -0
  229. package/dist/components/Switch/Switch.types.js +2 -0
  230. package/dist/components/Switch/index.d.ts +9 -0
  231. package/dist/components/Switch/index.js +2 -0
  232. package/dist/components/Table/Table.d.ts +34 -0
  233. package/dist/components/Table/Table.doc.d.ts +4 -0
  234. package/dist/components/Table/Table.doc.js +48 -0
  235. package/dist/components/Table/Table.js +17 -0
  236. package/dist/components/Table/Table.types.d.ts +30 -0
  237. package/dist/components/Table/Table.types.js +2 -0
  238. package/dist/components/Table/index.d.ts +9 -0
  239. package/dist/components/Table/index.js +2 -0
  240. package/dist/components/Tabs/Tabs.d.ts +13 -0
  241. package/dist/components/Tabs/Tabs.doc.d.ts +4 -0
  242. package/dist/components/Tabs/Tabs.doc.js +47 -0
  243. package/dist/components/Tabs/Tabs.js +61 -0
  244. package/dist/components/Tabs/Tabs.types.d.ts +33 -0
  245. package/dist/components/Tabs/Tabs.types.js +2 -0
  246. package/dist/components/Tabs/index.d.ts +9 -0
  247. package/dist/components/Tabs/index.js +2 -0
  248. package/dist/components/Textarea/Textarea.d.ts +9 -0
  249. package/dist/components/Textarea/Textarea.doc.d.ts +4 -0
  250. package/dist/components/Textarea/Textarea.doc.js +60 -0
  251. package/dist/components/Textarea/Textarea.js +24 -0
  252. package/dist/components/Textarea/Textarea.types.d.ts +22 -0
  253. package/dist/components/Textarea/Textarea.types.js +2 -0
  254. package/dist/components/Textarea/index.d.ts +9 -0
  255. package/dist/components/Textarea/index.js +2 -0
  256. package/dist/components/Toast/Toast.d.ts +16 -0
  257. package/dist/components/Toast/Toast.doc.d.ts +4 -0
  258. package/dist/components/Toast/Toast.doc.js +37 -0
  259. package/dist/components/Toast/Toast.js +134 -0
  260. package/dist/components/Toast/Toast.types.d.ts +11 -0
  261. package/dist/components/Toast/Toast.types.js +2 -0
  262. package/dist/components/Toast/index.d.ts +10 -0
  263. package/dist/components/Toast/index.js +2 -0
  264. package/dist/components/Toast/toastStore.d.ts +36 -0
  265. package/dist/components/Toast/toastStore.js +57 -0
  266. package/dist/components/Tooltip/Tooltip.d.ts +14 -0
  267. package/dist/components/Tooltip/Tooltip.doc.d.ts +4 -0
  268. package/dist/components/Tooltip/Tooltip.doc.js +33 -0
  269. package/dist/components/Tooltip/Tooltip.js +105 -0
  270. package/dist/components/Tooltip/Tooltip.types.d.ts +21 -0
  271. package/dist/components/Tooltip/Tooltip.types.js +2 -0
  272. package/dist/components/Tooltip/index.d.ts +9 -0
  273. package/dist/components/Tooltip/index.js +2 -0
  274. package/dist/contracts/Accordion.json +175 -0
  275. package/dist/contracts/AppShell.json +201 -0
  276. package/dist/contracts/Avatar.json +158 -0
  277. package/dist/contracts/AvatarGroup.json +170 -0
  278. package/dist/contracts/Badge.json +213 -0
  279. package/dist/contracts/Button.json +296 -0
  280. package/dist/contracts/Card.json +126 -0
  281. package/dist/contracts/Chart.json +168 -0
  282. package/dist/contracts/Checkbox.json +334 -0
  283. package/dist/contracts/CheckboxGroup.json +201 -0
  284. package/dist/contracts/Chip.json +321 -0
  285. package/dist/contracts/ChipGroup.json +183 -0
  286. package/dist/contracts/Combobox.json +431 -0
  287. package/dist/contracts/FAB.json +216 -0
  288. package/dist/contracts/Icon.json +307 -0
  289. package/dist/contracts/IconButton.json +214 -0
  290. package/dist/contracts/Input.json +401 -0
  291. package/dist/contracts/Menu.json +198 -0
  292. package/dist/contracts/Modal.json +193 -0
  293. package/dist/contracts/MultiSelect.json +245 -0
  294. package/dist/contracts/NavItem.json +149 -0
  295. package/dist/contracts/PageHeader.json +135 -0
  296. package/dist/contracts/Popover.json +322 -0
  297. package/dist/contracts/RadioButton.json +203 -0
  298. package/dist/contracts/RadioGroup.json +229 -0
  299. package/dist/contracts/SegmentedControl.json +194 -0
  300. package/dist/contracts/Select.json +241 -0
  301. package/dist/contracts/SideNav.json +139 -0
  302. package/dist/contracts/SidePanel.json +154 -0
  303. package/dist/contracts/Switch.json +202 -0
  304. package/dist/contracts/Table.json +131 -0
  305. package/dist/contracts/Tabs.json +353 -0
  306. package/dist/contracts/Textarea.json +354 -0
  307. package/dist/contracts/Toast.json +187 -0
  308. package/dist/contracts/Tooltip.json +169 -0
  309. package/dist/contracts/TopBar.json +129 -0
  310. package/dist/contracts/manifest.json +2170 -0
  311. package/dist/index.d.ts +118 -0
  312. package/dist/index.js +79 -0
  313. package/dist/layout/AppShell/AppShell.d.ts +14 -0
  314. package/dist/layout/AppShell/AppShell.doc.d.ts +4 -0
  315. package/dist/layout/AppShell/AppShell.doc.js +32 -0
  316. package/dist/layout/AppShell/AppShell.js +116 -0
  317. package/dist/layout/AppShell/AppShell.types.d.ts +24 -0
  318. package/dist/layout/AppShell/AppShell.types.js +2 -0
  319. package/dist/layout/AppShell/AppShellContext.d.ts +17 -0
  320. package/dist/layout/AppShell/AppShellContext.js +4 -0
  321. package/dist/layout/AppShell/index.d.ts +9 -0
  322. package/dist/layout/AppShell/index.js +2 -0
  323. package/dist/layout/PageHeader/PageHeader.d.ts +14 -0
  324. package/dist/layout/PageHeader/PageHeader.doc.d.ts +4 -0
  325. package/dist/layout/PageHeader/PageHeader.doc.js +30 -0
  326. package/dist/layout/PageHeader/PageHeader.js +10 -0
  327. package/dist/layout/PageHeader/PageHeader.types.d.ts +21 -0
  328. package/dist/layout/PageHeader/PageHeader.types.js +2 -0
  329. package/dist/layout/PageHeader/index.d.ts +9 -0
  330. package/dist/layout/PageHeader/index.js +2 -0
  331. package/dist/layout/SideNav/SideNav.d.ts +14 -0
  332. package/dist/layout/SideNav/SideNav.doc.d.ts +4 -0
  333. package/dist/layout/SideNav/SideNav.doc.js +33 -0
  334. package/dist/layout/SideNav/SideNav.js +9 -0
  335. package/dist/layout/SideNav/SideNav.types.d.ts +18 -0
  336. package/dist/layout/SideNav/SideNav.types.js +2 -0
  337. package/dist/layout/SideNav/index.d.ts +9 -0
  338. package/dist/layout/SideNav/index.js +2 -0
  339. package/dist/layout/TopBar/TopBar.d.ts +14 -0
  340. package/dist/layout/TopBar/TopBar.doc.d.ts +4 -0
  341. package/dist/layout/TopBar/TopBar.doc.js +28 -0
  342. package/dist/layout/TopBar/TopBar.js +15 -0
  343. package/dist/layout/TopBar/TopBar.types.d.ts +16 -0
  344. package/dist/layout/TopBar/TopBar.types.js +2 -0
  345. package/dist/layout/TopBar/index.d.ts +9 -0
  346. package/dist/layout/TopBar/index.js +2 -0
  347. package/dist/lib/component-doc.d.ts +34 -0
  348. package/dist/lib/component-doc.js +2 -0
  349. package/dist/lib/motionPresets.d.ts +37 -0
  350. package/dist/lib/motionPresets.js +35 -0
  351. package/dist/lib/resolveTokenPx.d.ts +11 -0
  352. package/dist/lib/resolveTokenPx.js +17 -0
  353. package/dist/lib/useDialogTransition.d.ts +21 -0
  354. package/dist/lib/useDialogTransition.js +86 -0
  355. package/dist/lib/useDisclosureTransition.d.ts +19 -0
  356. package/dist/lib/useDisclosureTransition.js +41 -0
  357. package/dist/lib/utils.d.ts +3 -0
  358. package/dist/lib/utils.js +6 -0
  359. package/dist/patterns/action-bar.md +127 -0
  360. package/dist/patterns/border-always.md +40 -0
  361. package/dist/patterns/data-analytics.md +15 -0
  362. package/dist/patterns/disabled-state.md +80 -0
  363. package/dist/patterns/empty-state.md +130 -0
  364. package/dist/patterns/expand-collapse-chevron.md +101 -0
  365. package/dist/patterns/form-field-group.md +139 -0
  366. package/dist/patterns/form-field-spacing.md +99 -0
  367. package/dist/patterns/group-spacing.md +54 -0
  368. package/dist/patterns/motion-effects.md +98 -0
  369. package/dist/patterns/same-row-sizing.md +52 -0
  370. package/dist/patterns/search-filter.md +118 -0
  371. package/dist/patterns/show-hide-parts.md +53 -0
  372. package/dist/patterns/stat-card.md +105 -0
  373. package/dist/patterns/status-row.md +130 -0
  374. package/dist/patterns/view-toggle.md +81 -0
  375. package/dist/prop-map.md +80 -0
  376. package/package.json +92 -3
  377. package/src/globals.css +3511 -0
@@ -0,0 +1,135 @@
1
+ {
2
+ "$schema": "../component.schema.json",
3
+ "name": "PageHeader",
4
+ "version": "1.0.0",
5
+ "status": "stable",
6
+
7
+ "purpose": "Introduces a page or major section: title, optional supporting description, and trailing actions in one consistent row.",
8
+ "import": "import { PageHeader } from '@helixds/react';",
9
+ "archetype": "layout",
10
+
11
+ "neverUseFor": [
12
+ "Card or panel titles — use Card's own header slot instead",
13
+ "Breadcrumbs or wayfinding — PageHeader is the destination, not the trail",
14
+ "Repeated inside a scrollable list — PageHeader is a page-level element, used once per view"
15
+ ],
16
+
17
+ "rationale": "PageHeader gives every view the same title, description and trailing-actions row so pages are predictable to scan (2.4.6 Headings and Labels). It's the destination, not the trail, and is used once per view — card titles and breadcrumbs are separate concerns.",
18
+
19
+ "governance": {
20
+ "mayExtendLocally": [
21
+ "Write the title and description per page",
22
+ "Put any Helix Buttons/IconButtons in the actions slot"
23
+ ],
24
+ "mustEscalateToDS": [
25
+ "Adding breadcrumbs, tabs or new regions into PageHeader",
26
+ "Changing the title type scale or spacing tokens",
27
+ "Using PageHeader inside Cards or repeated in lists"
28
+ ]
29
+ },
30
+
31
+ "states": {
32
+ "intrinsic": [],
33
+ "authored": []
34
+ },
35
+
36
+ "anatomy": [
37
+ { "part": "page-header-root", "element": "div", "description": "Layout wrapper — title/description on one side, actions on the other." },
38
+ { "part": "page-header-title", "element": "h1 or h2", "description": "The page or section title. Heading level set by the `level` prop." },
39
+ { "part": "page-header-description", "element": "p", "description": "Supporting one-line description below the title.", "optional": true },
40
+ { "part": "page-header-actions", "element": "div", "description": "Trailing slot for actions (Button, Badge, ...).", "optional": true }
41
+ ],
42
+
43
+ "props": [
44
+ { "name": "label", "type": "string", "required": true, "description": "The page or section title text." },
45
+ { "name": "description", "type": "string | undefined", "description": "Supporting one-line description shown below the title." },
46
+ { "name": "level", "type": "1 | 2", "default": 1, "description": "Heading level of the title — 1 for a page, 2 for a major in-page section. Never skip a level to change visual size; that's what CSS is for." },
47
+ { "name": "actions", "type": "React.ReactNode | undefined", "description": "Trailing content — typically a Button and/or Badge." },
48
+ { "name": "className", "type": "string | undefined", "description": "Additional className for the root." }
49
+ ],
50
+
51
+ "tokenPolicy": {
52
+ "allowed": ["color.text", "fontSize", "fontWeight", "spacing"],
53
+ "forbidden": ["primitive.color"]
54
+ },
55
+
56
+ "a11y": {
57
+ "role": "banner (implicit only when PageHeader is the page's single top-level heading region — not applied automatically)",
58
+ "announces": ["heading"],
59
+ "wcag": ["1.3.1 Info and Relationships", "2.4.6 Headings and Labels"],
60
+ "applied": {
61
+ "nativeElement": "div",
62
+ "innerComponents": [
63
+ "Button"
64
+ ],
65
+ "focus": [
66
+ {
67
+ "part": "(its inner controls)",
68
+ "delegatedTo": [
69
+ "Button"
70
+ ],
71
+ "note": "focus is drawn by Button — see their a11y.applied.focus"
72
+ }
73
+ ],
74
+ "aria": {},
75
+ "announced": [
76
+ "heading \"Team\" [level=1]",
77
+ "heading \"Danger zone\" [level=2]"
78
+ ],
79
+ "contrast": {
80
+ "page-header-title": {
81
+ "light": "17.85:1 — #0f172a on #ffffff",
82
+ "dark": "16.29:1 — #f1f5f9 on #0f172a"
83
+ },
84
+ "page-header-description": {
85
+ "light": "7.57:1 — #475569 on #ffffff",
86
+ "dark": "6.96:1 — #94a3b8 on #0f172a"
87
+ }
88
+ },
89
+ "targetSize": {},
90
+ "motion": [
91
+ "CSS transitions/animations: neutralised by the global prefers-reduced-motion rule"
92
+ ]
93
+ },
94
+ "results": {
95
+ "score": 100,
96
+ "meetsMinimum": true,
97
+ "checks": {
98
+ "contract": "pass",
99
+ "keys": "n/a",
100
+ "focus-return": "n/a",
101
+ "keyboard": "n/a",
102
+ "axe": "pass",
103
+ "contrast": "pass",
104
+ "focus-visible": "pass",
105
+ "target-size": "pass",
106
+ "reflow": "pass",
107
+ "screen-reader": "pass",
108
+ "ai-visual": "pass",
109
+ "human": "pending"
110
+ },
111
+ "notScored": [
112
+ "ai-visual",
113
+ "human"
114
+ ],
115
+ "changed": "2026-10-12"
116
+ }
117
+ },
118
+
119
+ "figma": {
120
+ "childProps": {"actions": [{"component": "Button", "property": null, "note": "the buttons placed in the actions slot"}]},
121
+ "states": ["default"],
122
+ "properties": [
123
+ { "name": "level", "type": "VARIANT", "values": ["1", "2"], "codeProp": "level", "description": "1 = h1, Heading / 2xl / Bold · 2 = h2, Heading / xl / Bold." },
124
+ { "name": "label", "type": "TEXT", "codeProp": "label" },
125
+ { "name": "description.", "type": "BOOLEAN", "codeProp": "description", "description": "Show/hide part: the line carries its own 4px top (spacing/2xs), so hiding it changes nothing else." },
126
+ { "name": "description", "type": "TEXT", "codeProp": "description" },
127
+ { "name": "actions", "type": "BOOLEAN", "codeProp": "actions", "description": "Shows the actions slot (a primary Button instance as a placeholder; 8px gap — the slot can mix groups, e.g. Badge + Button)." }
128
+ ],
129
+ "stories": {
130
+ "Default": "description.=true",
131
+ "WithActions": "actions=true, description.=true",
132
+ "SectionLevel": "level=2, description.=true"
133
+ }
134
+ }
135
+ }
@@ -0,0 +1,322 @@
1
+ {
2
+ "$schema": "../component.schema.json",
3
+ "name": "Popover",
4
+ "version": "0.1.0",
5
+ "status": "stable",
6
+ "purpose": "Shows a small, non-modal panel of rich content — a title, text and actions — anchored to the control that opened it, without blocking the rest of the page.",
7
+ "import": "import { Popover } from '@helixds/react';",
8
+ "archetype": "overlays",
9
+ "neverUseFor": [
10
+ "A short text hint on hover or focus — use Tooltip instead",
11
+ "A list of actions or commands — use Menu instead",
12
+ "A task that must be finished or dismissed before going back to the page — use Modal instead",
13
+ "Long forms or content that needs more than ~320px — use SidePanel instead"
14
+ ],
15
+ "rationale": "Popover is built on the native popover=\"manual\" attribute: it renders in the top layer, so it needs no z-index or portal and can't be clipped by an ancestor's overflow. popover=\"auto\" was rejected because its light-dismiss closes the popover on the trigger's pointerdown, and the trigger's click then reopens it, so it could never be closed from its own trigger. That's why Escape and an outside pointerdown close it by hand. Escape returns focus to the trigger; an outside press leaves focus where the user put it. Placement follows Tooltip's flip-and-clamp rule, 8px from the viewport edge. Because the top layer is position: fixed, the position is recomputed from the trigger's bounding rect on open, on resize and on any scroll. That code is still a copy of Tooltip's; merge the two into one helper the next time either changes. It is a non-modal role=\"dialog\" named by its visible title, rendered right after the trigger so Tab walks into it in reading order. Focus moves into it on open, to the first focusable element or the panel itself, but it is never trapped. That's the line that separates it from Modal. It floats above the page, so it is one of the few surfaces allowed a shadow (shadow.l).",
16
+ "governance": {
17
+ "mayExtendLocally": [
18
+ "Choose the title, the body content and the actions inside it",
19
+ "Choose the trigger (Button, IconButton…) and the placement"
20
+ ],
21
+ "mustEscalateToDS": [
22
+ "Making it modal or trapping focus",
23
+ "Adding an arrow, a close button in the chrome, or hover-to-open",
24
+ "Widening it beyond 320px"
25
+ ]
26
+ },
27
+ "states": {
28
+ "intrinsic": [
29
+ "focus"
30
+ ],
31
+ "authored": [
32
+ {
33
+ "name": "expanded",
34
+ "description": "The panel is open. Toggled by the trigger, or forced via the controlled `expanded` prop.",
35
+ "aria": "aria-expanded on the trigger"
36
+ }
37
+ ]
38
+ },
39
+ "anatomy": [
40
+ {
41
+ "part": "popover-root",
42
+ "element": "span",
43
+ "description": "Wrapper around the trigger and the panel; the trigger gets aria-expanded, aria-controls and aria-haspopup=\"dialog\"."
44
+ },
45
+ {
46
+ "part": "popover-content",
47
+ "element": "div",
48
+ "description": "The panel — role=\"dialog\", popover=\"manual\", aria-labelledby the title. Fixed position, placed by `placement` with flip and clamp."
49
+ },
50
+ {
51
+ "part": "popover-title",
52
+ "element": "p",
53
+ "description": "The visible title (`label`), which names the dialog."
54
+ },
55
+ {
56
+ "part": "popover-body",
57
+ "element": "div",
58
+ "description": "The content (`children`): text, and any actions."
59
+ }
60
+ ],
61
+ "props": [
62
+ {
63
+ "name": "label",
64
+ "type": "string",
65
+ "required": true,
66
+ "description": "The visible title of the panel. Also its accessible name (aria-labelledby)."
67
+ },
68
+ {
69
+ "name": "children",
70
+ "type": "React.ReactNode",
71
+ "required": true,
72
+ "description": "The panel's content: text and, optionally, actions."
73
+ },
74
+ {
75
+ "name": "trigger",
76
+ "type": "React.ReactElement",
77
+ "required": true,
78
+ "description": "The control that opens and closes the panel (a Button or IconButton). Popover adds onClick and the ARIA attributes to it."
79
+ },
80
+ {
81
+ "name": "placement",
82
+ "type": "'top' | 'bottom' | 'left' | 'right'",
83
+ "default": "bottom",
84
+ "description": "Preferred side of the trigger. Flips to the opposite side when there isn't room, and is clamped to the viewport."
85
+ },
86
+ {
87
+ "name": "expanded",
88
+ "type": "boolean | undefined",
89
+ "description": "Controlled open state."
90
+ },
91
+ {
92
+ "name": "defaultExpanded",
93
+ "type": "boolean",
94
+ "default": false,
95
+ "description": "Uncontrolled initial open state."
96
+ },
97
+ {
98
+ "name": "onExpandedChange",
99
+ "type": "((expanded: boolean) => void) | undefined",
100
+ "description": "Called when the panel opens or closes (trigger, Escape, outside click)."
101
+ },
102
+ {
103
+ "name": "className",
104
+ "type": "string | undefined",
105
+ "description": "Additional className for the root element."
106
+ }
107
+ ],
108
+ "sizing": {
109
+ "width": {
110
+ "default": "hug",
111
+ "modes": {
112
+ "hug": "Width follows the content, up to max-width, where it wraps."
113
+ },
114
+ "maxWidth": 320,
115
+ "note": "Height is content-driven — no rung on the shared size scale."
116
+ }
117
+ },
118
+ "tokenPolicy": {
119
+ "allowed": [
120
+ "color.fill",
121
+ "color.text",
122
+ "color.border",
123
+ "spacing",
124
+ "radius",
125
+ "fontSize",
126
+ "fontWeight",
127
+ "shadow",
128
+ "duration",
129
+ "easing"
130
+ ],
131
+ "forbidden": [
132
+ "primitive.color"
133
+ ]
134
+ },
135
+ "a11y": {
136
+ "role": "dialog (non-modal) on popover-content, labelled by popover-title",
137
+ "keyboardNav": [
138
+ "Enter/Space — on the trigger, opens or closes the panel and moves focus to its first focusable element",
139
+ "Escape — closes the panel and returns focus to the trigger",
140
+ "Tab — moves through the panel's content and out of it (focus is not trapped)"
141
+ ],
142
+ "wcag": [
143
+ "1.3.1 Info and Relationships",
144
+ "2.1.1 Keyboard",
145
+ "2.1.2 No Keyboard Trap",
146
+ "2.4.3 Focus Order",
147
+ "2.4.7 Focus Visible",
148
+ "4.1.2 Name Role Value"
149
+ ],
150
+ "applied": {
151
+ "nativeElement": "span",
152
+ "innerComponents": [
153
+ "Button",
154
+ "IconButton"
155
+ ],
156
+ "focus": [
157
+ {
158
+ "part": "popover-content",
159
+ "when": ":focus-visible",
160
+ "outline": "2px solid var(--helix-color-border-focus)",
161
+ "outline-offset": "2px"
162
+ }
163
+ ],
164
+ "aria": {
165
+ "popover-content": {
166
+ "role": [
167
+ "dialog"
168
+ ],
169
+ "aria-labelledby": [
170
+ "(id)",
171
+ "helix-popover-_r_a_-title"
172
+ ]
173
+ }
174
+ },
175
+ "announced": [
176
+ "dialog \"Share link\""
177
+ ],
178
+ "contrast": {
179
+ "popover-title": {
180
+ "light": "17.85:1 — #0f172a on #ffffff",
181
+ "dark": "16.29:1 — #f1f5f9 on #0f172a"
182
+ },
183
+ "popover-body": {
184
+ "light": "17.85:1 — #0f172a on #ffffff",
185
+ "dark": "16.29:1 — #f1f5f9 on #0f172a"
186
+ }
187
+ },
188
+ "targetSize": {},
189
+ "motion": [
190
+ "CSS transitions/animations: neutralised by the global prefers-reduced-motion rule"
191
+ ]
192
+ },
193
+ "results": {
194
+ "score": 100,
195
+ "meetsMinimum": true,
196
+ "checks": {
197
+ "contract": "pass",
198
+ "keys": "pass",
199
+ "focus-return": "pass",
200
+ "keyboard": "pass",
201
+ "axe": "pass",
202
+ "contrast": "pass",
203
+ "focus-visible": "pass",
204
+ "target-size": "pass",
205
+ "reflow": "n/a",
206
+ "screen-reader": "pass",
207
+ "ai-visual": "pending",
208
+ "human": "pending"
209
+ },
210
+ "notScored": [
211
+ "ai-visual",
212
+ "human"
213
+ ],
214
+ "changed": "2026-12-05"
215
+ }
216
+ },
217
+ "figma": {
218
+ "triggers": [
219
+ "Button",
220
+ "IconButton"
221
+ ],
222
+ "states": [
223
+ "default"
224
+ ],
225
+ "properties": [
226
+ {
227
+ "name": "placement",
228
+ "type": "VARIANT",
229
+ "values": [
230
+ "top",
231
+ "bottom",
232
+ "left",
233
+ "right"
234
+ ],
235
+ "codeProp": "placement"
236
+ },
237
+ {
238
+ "name": "expanded",
239
+ "type": "VARIANT",
240
+ "values": [
241
+ "false",
242
+ "true"
243
+ ],
244
+ "codeProp": "expanded"
245
+ },
246
+ {
247
+ "name": "label",
248
+ "type": "TEXT",
249
+ "codeProp": "label"
250
+ },
251
+ {
252
+ "name": "children",
253
+ "type": "TEXT",
254
+ "codeProp": "children",
255
+ "description": "The body text (popover-body). Actions in the body are drawn by placing Button instances inside it."
256
+ },
257
+ {
258
+ "name": "trigger",
259
+ "type": "INSTANCE_SWAP",
260
+ "codeProp": "trigger",
261
+ "description": "The trigger slot: a Button (default) or an IconButton."
262
+ }
263
+ ],
264
+ "structure": "popover-root (auto layout, 4px = spacing/component/xs) > trigger (INSTANCE_SWAP) + popover-content on the placement side: fill/page, border/neutral 1px, radius/l, shadow / l, padding spacing/component/l, gap spacing/component/m > popover-title (Body / s / Medium) + popover-body (Body / s / Regular). No arrow, like code.",
265
+ "variantCombinations": "5 variants (owner 2026-12-05, like Tooltip): placement top/bottom/left/right with expanded=true, plus expanded=false once (the trigger alone).",
266
+ "propertyMap": {
267
+ "trigger": {
268
+ "codeType": "React.ReactElement",
269
+ "figma": [
270
+ {
271
+ "name": "trigger",
272
+ "type": "INSTANCE_SWAP"
273
+ }
274
+ ],
275
+ "approved": "2026-12-05",
276
+ "reason": "the trigger is a slot: an INSTANCE_SWAP lets the designer pick Button or IconButton, as Tooltip's children (owner's choice 2026-12-05)"
277
+ },
278
+ "children": {
279
+ "codeType": "React.ReactNode",
280
+ "figma": [
281
+ {
282
+ "name": "children",
283
+ "type": "TEXT"
284
+ }
285
+ ],
286
+ "approved": "2026-12-05",
287
+ "reason": "the body is text in most uses; actions are drawn by placing Buttons inside popover-body (owner's choice 2026-12-05, overlay pattern)"
288
+ },
289
+ "expanded": {
290
+ "codeType": "boolean | undefined",
291
+ "figma": [
292
+ {
293
+ "name": "expanded",
294
+ "type": "VARIANT",
295
+ "values": [
296
+ "false",
297
+ "true"
298
+ ]
299
+ }
300
+ ],
301
+ "approved": "2026-12-05",
302
+ "reason": "drawn next to its trigger like Tooltip, so open and closed are both real looks (owner's choice 2026-12-05)"
303
+ }
304
+ },
305
+ "stories": {
306
+ "Default": "default",
307
+ "WithActions": {
308
+ "figma": "layout",
309
+ "reason": "expanded=true with Button instances placed in popover-body (owner 2026-12-05)"
310
+ },
311
+ "OnIconButton": {
312
+ "figma": "layout",
313
+ "reason": "placement=right, expanded=true with the trigger swapped to IconButton (owner 2026-12-05)"
314
+ },
315
+ "Opened": "expanded=true",
316
+ "KeyboardNavigation": {
317
+ "figma": "expanded=true",
318
+ "reason": "opened from the keyboard; the trigger and the buttons inside draw their own focus (owner 2026-12-05)"
319
+ }
320
+ }
321
+ }
322
+ }
@@ -0,0 +1,203 @@
1
+ {
2
+ "$schema": "../component.schema.json",
3
+ "name": "RadioButton",
4
+ "version": "0.1.0",
5
+ "status": "stable",
6
+
7
+ "purpose": "A single radio input — the individual option unit RadioGroup renders per choice, exposed on its own for cases that need one radio outside a full group (e.g. a single option embedded in a custom layout, or a hand-assembled set sharing `name`).",
8
+ "import": "import { RadioButton } from '@helixds/react';",
9
+ "archetype": "form-selection",
10
+
11
+ "neverUseFor": [
12
+ "A set of mutually exclusive options — use RadioGroup instead, which renders one of these per option with the correct fieldset/legend wrapper for free",
13
+ "A single independent on/off choice — use Checkbox or Switch instead",
14
+ "Anything needing search or many options — use Select instead"
15
+ ],
16
+
17
+ "rationale": "RadioButton is the exact native radio option RadioGroup renders, exposed on its own only for custom layouts that still share a `name`. It keeps the same fixed 16px control as Checkbox; for a normal set of options RadioGroup should be used because it adds fieldset/legend for free.",
18
+
19
+ "governance": {
20
+ "mayExtendLocally": [
21
+ "Place a single radio inside a custom layout sharing `name`",
22
+ "Write the label per usage"
23
+ ],
24
+ "mustEscalateToDS": [
25
+ "Adding a size prop or new control sizes",
26
+ "Replacing the native radio input",
27
+ "Building full option sets by hand instead of using RadioGroup"
28
+ ]
29
+ },
30
+
31
+ "states": {
32
+ "intrinsic": ["hover", "focus", "active"],
33
+ "authored": [
34
+ { "name": "checked", "description": "Whether this radio is selected. Controlled via `checked`, uncontrolled via `defaultChecked` — same split as Switch.", "aria": "native :checked state" },
35
+ { "name": "invalid", "description": "Fails validation.", "aria": "aria-invalid='true'" },
36
+ { "name": "disabled", "description": "Non-interactive.", "aria": "disabled (native HTML attribute)" }
37
+ ]
38
+ },
39
+
40
+ "anatomy": [
41
+ { "part": "radio-item", "element": "label", "description": "Wraps the input, visual control, and content — identical anatomy to one RadioGroup option, so it shares all of RadioGroup's CSS with no duplication." },
42
+ { "part": "radio-input", "element": "input", "description": "The native radio input." },
43
+ { "part": "radio-control", "element": "span", "description": "Visual circle — reflects checked state via CSS." },
44
+ { "part": "radio-dot", "element": "span", "description": "Inner filled dot shown when checked.", "optional": true },
45
+ { "part": "radio-item-content", "element": "span", "description": "Wraps the label and description." },
46
+ { "part": "radio-item-label", "element": "span", "description": "Visible label. Disabled: dims to text.disabled with the rest of the text (.ai/maps/patterns/disabled-state.md)." },
47
+ { "part": "radio-item-required", "element": "span", "optional": true, "description": "The required indicator (*) inside the label, text/danger, 2px (spacing/3xs) after the text — shown by `required`, like Checkbox. Disabled: dims to text.disabled with the rest of the text (.ai/maps/patterns/disabled-state.md)." },
48
+ { "part": "radio-item-description", "element": "span", "description": "Helper text. Sits exactly 4px below the label — same structure as Checkbox's own description. Disabled: dims to text.disabled with the rest of the text (.ai/maps/patterns/disabled-state.md).", "optional": true },
49
+ { "part": "radio-item-error", "element": "span", "description": "Error text, shown instead of the description when `errorMessage` is set — identical structure to Checkbox's own error message.", "optional": true }
50
+ ],
51
+
52
+ "props": [
53
+ { "name": "label", "type": "string", "required": true, "description": "Visible label." },
54
+ { "name": "name", "type": "string | undefined", "description": "Native radio group name, shared with any sibling RadioButtons it should be mutually exclusive with. Auto-generated (unique to this instance) if omitted — meaning it won't group with anything unless you set this explicitly." },
55
+ { "name": "value", "type": "string | undefined", "description": "Native radio value, read from the form on submit. Defaults to the native 'on' if omitted." },
56
+ { "name": "checked", "type": "boolean | undefined", "description": "Controlled checked state." },
57
+ { "name": "defaultChecked", "type": "boolean", "default": false, "description": "Uncontrolled initial checked state." },
58
+ { "name": "onChange", "type": "((checked: boolean) => void) | undefined", "description": "Change handler." },
59
+ { "name": "description", "type": "string | undefined", "description": "Helper text shown under the label. Not shown when errorMessage is also set." },
60
+ { "name": "errorMessage", "type": "string | undefined", "description": "Error text shown under the label when invalid is true — takes over from description." },
61
+ { "name": "invalid", "type": "boolean", "default": false, "description": "Shows error styling." },
62
+ { "name": "disabled", "type": "boolean", "default": false, "description": "Disables the input." },
63
+ { "name": "required", "type": "boolean", "default": false, "description": "Marks the input as required." },
64
+ { "name": "className", "type": "string | undefined", "description": "Additional className for the root." }
65
+ ],
66
+
67
+ "sizing": {
68
+ "height": {
69
+ "mode": "fixed",
70
+ "values": { "default": 16 },
71
+ "unit": "px",
72
+ "note": "Same fixed 16px control as RadioGroup's own option — this IS that option, standalone."
73
+ },
74
+ "width": { "default": "hug" }
75
+ },
76
+
77
+ "tokenPolicy": {
78
+ "allowed": ["color.fill", "color.text", "color.border", "spacing", "radius", "fontSize"],
79
+ "forbidden": ["primitive.color"]
80
+ },
81
+
82
+ "a11y": {
83
+ "role": "radio (native input type=radio)",
84
+ "keyboardNav": ["Space — selects it", "Tab — moves focus to/from it"],
85
+ "wcag": ["2.1.1 Keyboard", "2.4.7 Focus Visible", "4.1.2 Name Role Value"],
86
+ "applied": {
87
+ "nativeElement": "label",
88
+ "focus": [
89
+ {
90
+ "part": "radio-input",
91
+ "when": ":focus-visible",
92
+ "outline": "2px solid var(--helix-radio-border-focus)",
93
+ "outline-offset": "2px"
94
+ }
95
+ ],
96
+ "aria": {
97
+ "radio-control": {
98
+ "aria-hidden": [
99
+ "true"
100
+ ]
101
+ },
102
+ "radio-input": {
103
+ "aria-invalid": [
104
+ "true"
105
+ ],
106
+ "aria-describedby": [
107
+ "(id)"
108
+ ]
109
+ },
110
+ "radio-item-error": {
111
+ "role": [
112
+ "alert"
113
+ ]
114
+ }
115
+ },
116
+ "announced": [
117
+ "radio \"Default\"",
118
+ "radio \"Checked\" [checked]",
119
+ "radio \"Disabled unchecked\" [disabled]",
120
+ "radio \"Disabled checked\" [checked] [disabled]",
121
+ "radio \"Free\" [checked]"
122
+ ],
123
+ "contrast": {
124
+ "radio-item-label": {
125
+ "light": "17.85:1 — #0f172a on #ffffff",
126
+ "dark": "16.29:1 — #f1f5f9 on #0f172a"
127
+ },
128
+ "radio-item-error": {
129
+ "light": "6.47:1 — #b91c1c on #ffffff",
130
+ "dark": "12.65:1 — #fecdd3 on #0f172a"
131
+ },
132
+ "radio-item-description": {
133
+ "light": "7.57:1 — #475569 on #ffffff",
134
+ "dark": "6.96:1 — #94a3b8 on #0f172a"
135
+ }
136
+ },
137
+ "targetSize": {
138
+ "radio-input": "smallest 53×21 px"
139
+ },
140
+ "motion": [
141
+ "CSS transitions/animations: neutralised by the global prefers-reduced-motion rule"
142
+ ]
143
+ },
144
+ "results": {
145
+ "score": 100,
146
+ "meetsMinimum": true,
147
+ "checks": {
148
+ "contract": "pass",
149
+ "keys": "pass",
150
+ "focus-return": "n/a",
151
+ "keyboard": "pass",
152
+ "axe": "pass",
153
+ "contrast": "pass",
154
+ "focus-visible": "pass",
155
+ "target-size": "pass",
156
+ "reflow": "n/a",
157
+ "screen-reader": "pass",
158
+ "ai-visual": "pass",
159
+ "human": "pending"
160
+ },
161
+ "notScored": [
162
+ "ai-visual",
163
+ "human"
164
+ ],
165
+ "changed": "2026-10-12"
166
+ }
167
+ },
168
+
169
+ "figma": {
170
+ "states": ["default", "hover", "focus"],
171
+ "properties": [
172
+ {
173
+ "name": "state",
174
+ "type": "VARIANT",
175
+ "values": ["default", "hover", "focus"],
176
+ "figmaOnly": true,
177
+ "description": "Figma-only axis: hover/focus are CSS pseudo-classes in code. checked, invalid and disabled are their own false/true toggles (contracts/figma-conversion.json, pattern checkable)."
178
+ },
179
+ {
180
+ "name": "description.",
181
+ "type": "BOOLEAN",
182
+ "codeProp": "description",
183
+ "description": "Show/hide part: a line in radio-item-content (4px gap only between shown lines)."
184
+ },
185
+ {
186
+ "name": "errorMessage.",
187
+ "type": "BOOLEAN",
188
+ "codeProp": "errorMessage",
189
+ "description": "Show/hide part: the error line. Code shows it instead of the description — turn description off when it is on."
190
+ }
191
+ ],
192
+ "structure": "radio-item > radio-control-box (21px = lineHeight/m, the circle centered on the label first line) + radio-item-content (radio-item-label [text + radio-item-required], description, error).",
193
+ "variantCombinations": "14 variants (2026-10-20): checked false/true × invalid false/true × state default/hover/focus = 12, plus disabled for each checked value at state default, valid = 2 — the standard rule for disabled. Disabled dims label, required * and description (text/disabled).",
194
+ "stories": {
195
+ "AllTypes": "layout",
196
+ "WithDescription": "description.=true",
197
+ "Invalid": "invalid=true, errorMessage.=true",
198
+ "Disabled": "disabled=true",
199
+ "Group": "layout",
200
+ "KeyboardSelect": {"figma": "state=focus", "reason": "keyboard focus — the focus ring is drawn in Figma (owner 2026-10-21: focus states are drawn)"}
201
+ }
202
+ }
203
+ }