@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,229 @@
1
+ {
2
+ "$schema": "../component.schema.json",
3
+ "name": "RadioGroup",
4
+ "version": "0.1.0",
5
+ "status": "stable",
6
+
7
+ "purpose": "Lets users choose exactly one option from a small, visible set of mutually exclusive choices.",
8
+ "import": "import { RadioGroup } from '@helixds/react';",
9
+ "archetype": "form-selection",
10
+
11
+ "neverUseFor": [
12
+ "A single independent on/off choice — use Checkbox or Switch instead",
13
+ "Large option sets or anything needing search — use Select instead",
14
+ "Multiple simultaneous selections — use a Checkbox group instead"
15
+ ],
16
+
17
+ "rationale": "RadioGroup uses native fieldset/legend and radio inputs so arrow-key selection and the group label are handled by the browser. Like Checkbox it has one fixed 16px control outside the ADR-004 field scale, and it is for small visible sets — larger ones belong in Select.",
18
+
19
+ "governance": {
20
+ "mayExtendLocally": [
21
+ "Define the options, legend and helper text",
22
+ "Choose vertical or horizontal arrangement from the documented props"
23
+ ],
24
+ "mustEscalateToDS": [
25
+ "Replacing native radios or the fieldset/legend wrapper",
26
+ "Adding sizes or card-style option variants",
27
+ "Changing option spacing tokens"
28
+ ]
29
+ },
30
+
31
+ "states": {
32
+ "intrinsic": ["hover", "focus", "active"],
33
+ "authored": [
34
+ { "name": "invalid", "description": "The selected value fails validation.", "aria": "aria-invalid='true' on each radio input" },
35
+ { "name": "disabled", "description": "The whole group, or an individual option, is non-interactive.", "aria": "disabled (native HTML attribute)" },
36
+ { "name": "required", "description": "A value must be selected before form submission.", "aria": "aria-required='true' on the fieldset" }
37
+ ]
38
+ },
39
+
40
+ "anatomy": [
41
+ { "part": "radio-group", "element": "fieldset", "description": "Root element — groups the legend and options for assistive tech." },
42
+ { "part": "radio-legend", "element": "legend", "description": "Accessible group label. Sits exactly 8px above the options — see .ai/maps/patterns/form-field-spacing.md. Disabled: dims to text.disabled with the rest of the text (.ai/maps/patterns/disabled-state.md)." },
43
+ { "part": "radio-required", "element": "span", "optional": true, "description": "The required indicator (*) inside the legend, text/danger, 2px (spacing/3xs) after the text — shown by `required`. Disabled: dims to text.disabled with the rest of the text (.ai/maps/patterns/disabled-state.md)." },
44
+ { "part": "radio-options", "element": "div", "description": "Layout wrapper for the option list." },
45
+ { "part": "radio-item", "element": "label", "description": "Wraps one option's input, visual control, and content." },
46
+ { "part": "radio-input", "element": "input", "description": "The native radio input for one option." },
47
+ { "part": "radio-control", "element": "span", "description": "Visual circle — reflects checked state via CSS." },
48
+ { "part": "radio-dot", "element": "span", "description": "Inner filled dot shown when the option is checked.", "optional": true },
49
+ { "part": "radio-item-content", "element": "span", "description": "Wraps one option's label and description." },
50
+ { "part": "radio-item-label", "element": "span", "description": "Visible label for one option. Disabled: dims to text.disabled with the rest of the text (.ai/maps/patterns/disabled-state.md)." },
51
+ { "part": "radio-item-description", "element": "span", "description": "Helper text for one option. Sits exactly 8px below the label — see .ai/maps/patterns/form-field-spacing.md. Disabled: dims to text.disabled with the rest of the text (.ai/maps/patterns/disabled-state.md).", "optional": true },
52
+ { "part": "radio-description", "element": "span", "description": "Helper text for the whole group. Sits exactly 8px below the options — see .ai/maps/patterns/form-field-spacing.md. Disabled: dims to text.disabled with the rest of the text (.ai/maps/patterns/disabled-state.md).", "optional": true },
53
+ { "part": "radio-error", "element": "span", "description": "Error text shown when invalid=true.", "optional": true }
54
+ ],
55
+
56
+ "props": [
57
+ { "name": "label", "type": "string", "required": true, "description": "Accessible group label, rendered as the fieldset's legend." },
58
+ { "name": "options", "type": "RadioOption[]", "required": true, "description": "The list of choices. Each option: { value, label, description?, disabled? }." },
59
+ { "name": "value", "type": "string | undefined", "description": "Controlled selected value." },
60
+ { "name": "defaultValue", "type": "string | undefined", "description": "Uncontrolled initial value." },
61
+ { "name": "onChange", "type": "((value: string) => void) | undefined", "description": "Selection change handler." },
62
+ { "name": "orientation", "type": "'vertical' | 'horizontal'", "default": "vertical", "description": "Layout direction of the option list." },
63
+ { "name": "description", "type": "string | undefined", "description": "Helper text shown below the group." },
64
+ { "name": "errorMessage", "type": "string | undefined", "description": "Error text shown when invalid=true." },
65
+ { "name": "invalid", "type": "boolean", "default": false, "description": "Shows error styling and message." },
66
+ { "name": "disabled", "type": "boolean", "default": false, "description": "Disables every option in the group." },
67
+ { "name": "required", "type": "boolean", "default": false, "description": "Marks the group as required." },
68
+ { "name": "name", "type": "string | undefined", "description": "Native radio group name shared by every input. Auto-generated if omitted." }
69
+ ],
70
+
71
+ "sizing": {
72
+ "height": {
73
+ "mode": "fixed",
74
+ "values": { "default": 16 },
75
+ "unit": "px",
76
+ "note": "No size prop exists — each radio control is one fixed size (16px), matching Checkbox. Does not follow the ADR-004 field scale."
77
+ },
78
+ "width": {
79
+ "default": "hug"
80
+ }
81
+ },
82
+
83
+ "tokenPolicy": {
84
+ "allowed": ["color.fill", "color.text", "color.border", "spacing", "radius", "fontSize"],
85
+ "forbidden": ["primitive.color"]
86
+ },
87
+
88
+ "a11y": {
89
+ "role": "radiogroup (native fieldset/legend + radio inputs)",
90
+ "keyboardNav": ["Arrow keys — move selection between options (native radio group behavior)", "Space — selects the focused option", "Tab — moves focus into and out of the group"],
91
+ "wcag": ["1.3.1 Info and Relationships", "2.1.1 Keyboard", "2.4.7 Focus Visible", "4.1.2 Name Role Value"],
92
+ "applied": {
93
+ "nativeElement": "fieldset",
94
+ "focus": [
95
+ {
96
+ "part": "radio-input",
97
+ "when": ":focus-visible",
98
+ "outline": "2px solid var(--helix-radio-border-focus)",
99
+ "outline-offset": "2px"
100
+ }
101
+ ],
102
+ "aria": {
103
+ "radio-group": {
104
+ "role": [
105
+ "radiogroup"
106
+ ],
107
+ "aria-describedby": [
108
+ "(id)"
109
+ ],
110
+ "aria-required": [
111
+ "true"
112
+ ]
113
+ },
114
+ "radio-control": {
115
+ "aria-hidden": [
116
+ "true"
117
+ ]
118
+ },
119
+ "radio-input": {
120
+ "aria-invalid": [
121
+ "true"
122
+ ]
123
+ },
124
+ "radio-error": {
125
+ "role": [
126
+ "alert"
127
+ ]
128
+ },
129
+ "radio-required": {
130
+ "aria-hidden": [
131
+ "true"
132
+ ]
133
+ }
134
+ },
135
+ "announced": [
136
+ "radiogroup \"Plan\"",
137
+ "radiogroup \"Team size\""
138
+ ],
139
+ "contrast": {
140
+ "radio-legend": {
141
+ "light": "2.56:1 — #94a3b8 on #ffffff",
142
+ "dark": "2.35:1 — #475569 on #0f172a"
143
+ },
144
+ "radio-item-label": {
145
+ "light": "17.85:1 — #0f172a on #ffffff",
146
+ "dark": "16.29:1 — #f1f5f9 on #0f172a"
147
+ },
148
+ "radio-item-description": {
149
+ "light": "7.57:1 — #475569 on #ffffff",
150
+ "dark": "6.96:1 — #94a3b8 on #0f172a"
151
+ },
152
+ "radio-error": {
153
+ "light": "6.47:1 — #b91c1c on #ffffff",
154
+ "dark": "12.65:1 — #fecdd3 on #0f172a"
155
+ }
156
+ },
157
+ "targetSize": {
158
+ "radio-input": "smallest 77×21 px"
159
+ },
160
+ "motion": [
161
+ "CSS transitions/animations: neutralised by the global prefers-reduced-motion rule"
162
+ ]
163
+ },
164
+ "results": {
165
+ "score": 100,
166
+ "meetsMinimum": true,
167
+ "checks": {
168
+ "contract": "pass",
169
+ "keys": "pass",
170
+ "focus-return": "n/a",
171
+ "keyboard": "pass",
172
+ "axe": "pass",
173
+ "contrast": "pass",
174
+ "focus-visible": "pass",
175
+ "target-size": "pass",
176
+ "reflow": "n/a",
177
+ "screen-reader": "pass",
178
+ "ai-visual": "pass",
179
+ "human": "pending"
180
+ },
181
+ "notScored": [
182
+ "ai-visual",
183
+ "human"
184
+ ],
185
+ "changed": "2026-10-12"
186
+ }
187
+ },
188
+
189
+ "figma": {
190
+ "childProps": {"options": [{"component": "RadioButton", "property": "label", "note": "each option's label"}]},
191
+ "states": ["default"],
192
+ "properties": [
193
+ { "name": "options", "type": "VARIANT", "values": ["2", "3", "4", "5", "6", "7"], "codeProp": "options", "description": "How many options the group draws (list-count, owner's rule 2026-10-21) — code draws one RadioButton per entry in options." },
194
+ { "name": "orientation", "type": "VARIANT", "values": ["vertical", "horizontal"], "codeProp": "orientation" },
195
+ { "name": "label", "type": "TEXT", "codeProp": "label", "description": "The legend." },
196
+ {
197
+ "name": "required",
198
+ "type": "BOOLEAN",
199
+ "codeProp": "required",
200
+ "description": "Shows the danger * (radio-required) after the legend, 2px apart; text/disabled when disabled."
201
+ },
202
+ {
203
+ "name": "description.",
204
+ "type": "BOOLEAN",
205
+ "codeProp": "description",
206
+ "description": "Show/hide part: indented 24px (16px circle + 8px) to line up with the option text."
207
+ },
208
+ { "name": "description", "type": "TEXT", "codeProp": "description" },
209
+ {
210
+ "name": "errorMessage.",
211
+ "type": "BOOLEAN",
212
+ "codeProp": "errorMessage",
213
+ "description": "Show/hide part: same indent; code shows it instead of the description."
214
+ },
215
+ { "name": "errorMessage", "type": "TEXT", "codeProp": "errorMessage" }
216
+ ],
217
+ "structure": "radio-group (8px gap) > radio-legend (text + radio-required), radio-options (12px gap, real RadioButton instances: Free, Pro checked, Team, Enterprise, Education, Nonprofit, Custom), radio-description, radio-error. options = how many RadioButton instances it draws (2–7); value has no Figma property.",
218
+ "variantCombinations": "36 variants (2026-10-21): options 2–7 (list-count — how many RadioButton instances the group draws, each with its own example label) × the 6 of 2026-10-20: orientation vertical/horizontal × invalid false/true, plus disabled for each orientation (valid) — the standard rule for disabled. No state axis: hover/focus live on each RadioButton option (pattern group). invalid/disabled pass down to every option; disabled dims legend, required * and description (text/disabled).",
219
+ "stories": {
220
+ "Default": "default",
221
+ "Horizontal": "orientation=horizontal",
222
+ "Invalid": "invalid=true, errorMessage.=true",
223
+ "Disabled": "disabled=true",
224
+ "WithDisabledOption": "layout",
225
+ "Required": "required=true",
226
+ "KeyboardNavigation": {"figma": "layout", "reason": "keyboard focus is drawn on the RadioButton inside it (state=focus)"}
227
+ }
228
+ }
229
+ }
@@ -0,0 +1,194 @@
1
+ {
2
+ "$schema": "../component.schema.json",
3
+ "name": "SegmentedControl",
4
+ "version": "0.2.0",
5
+ "status": "stable",
6
+
7
+ "purpose": "Lets users switch between a small, fixed set of mutually exclusive modes or views, with no associated content panel.",
8
+ "import": "import { SegmentedControl } from '@helixds/react';",
9
+ "archetype": "form-selection",
10
+
11
+ "neverUseFor": [
12
+ "Navigating between real pages or routes — use NavItem/Tabs instead",
13
+ "Content that switches inside an associated panel — that's a tabs pattern (tablist/tab), not this",
14
+ "More than ~5 options, or options with long labels — use RadioGroup or Select instead"
15
+ ],
16
+
17
+ "rationale": "SegmentedControl is a hand-rolled radiogroup on buttons, because no native element renders a segmented button set. It uses role=\"radiogroup\"/\"radio\" with aria-checked, not tablist/tab like the transitions.dev snippet it came from, because tabs imply a panel whose content changes, and this control switches modes with no associated panel. That's the line that separates it from Tabs. Unlike RadioGroup's native inputs, the roving tabindex and arrow keys are its own code and need their own tests. The sliding pill reuses NavItem's technique, a Motion layoutId with the shared SPRING_SNAPPY preset, instead of the snippet's offsetLeft measurement, and each instance gets its own layoutId so two controls on one page never animate into each other. It has one fixed size, semantic.size.s (24px), one step below Button's 32px, chosen after review. It adds no colors: the track is fill.secondary-interactive-default and the pill is fill.page. The pill has no shadow because it sits flush in its track and doesn't float.",
18
+
19
+ "governance": {
20
+ "mayExtendLocally": [
21
+ "Choose up to ~5 short options and the selected value",
22
+ "Use icons inside options per usage"
23
+ ],
24
+ "mustEscalateToDS": [
25
+ "Adding sizes or more than ~5 options",
26
+ "Using it for routing or tab panels",
27
+ "Changing the keyboard model or indicator motion"
28
+ ]
29
+ },
30
+
31
+ "states": {
32
+ "intrinsic": ["hover", "focus"],
33
+ "authored": [
34
+ { "name": "disabled", "description": "The whole control, or an individual option, is non-interactive.", "aria": "disabled (native HTML attribute) on the option's button" }
35
+ ]
36
+ },
37
+
38
+ "anatomy": [
39
+ { "part": "segmented-control-root", "element": "div", "description": "Root element. `role=\"radiogroup\"`." },
40
+ { "part": "segmented-control-pill", "element": "span", "description": "The sliding highlight behind the checked option. Purely decorative — `aria-hidden`." },
41
+ { "part": "segmented-control-item", "element": "button", "description": "One option. `role=\"radio\"`, `aria-checked`, roving `tabIndex`." },
42
+ { "part": "segmented-control-item-icon", "element": "span", "description": "Optional icon of an icon-only option, rendered through Icon (decorative — the option's label is its accessible name). Takes the label's default/checked/hover colors." }
43
+ ],
44
+
45
+ "props": [
46
+ { "name": "label", "type": "string", "required": true, "description": "Accessible name for the group (`aria-label` on the root — this control has no visible legend)." },
47
+ { "name": "options", "type": "SegmentedControlOption[]", "required": true, "description": "The list of choices. Each option: { value, label, icon?, disabled? }. With `icon` (a Tabler icon component, rendered through Icon) the option is icon-only: `label` stays as its accessible name (visually hidden)." },
48
+ { "name": "value", "type": "string | undefined", "description": "Controlled selected value." },
49
+ { "name": "defaultValue", "type": "string | undefined", "description": "Uncontrolled initial value." },
50
+ { "name": "onChange", "type": "((value: string) => void) | undefined", "description": "Selection change handler." },
51
+ { "name": "disabled", "type": "boolean", "default": false, "description": "Disables every option in the group." },
52
+ { "name": "name", "type": "string | undefined", "description": "Native form field name, submitted via a hidden input mirroring the selected value. Auto-generated if omitted." },
53
+ { "name": "className", "type": "string | undefined", "description": "Additional className for the root element." }
54
+ ],
55
+
56
+ "sizing": {
57
+ "height": {
58
+ "mode": "fixed",
59
+ "values": { "default": 24 },
60
+ "unit": "px",
61
+ "note": "semantic.size.s — one rung below Button's default height/Input's default field height on the same shared scale. No size prop; this control has one fixed size."
62
+ },
63
+ "width": {
64
+ "default": "hug"
65
+ }
66
+ },
67
+
68
+ "tokenPolicy": {
69
+ "allowed": ["color.fill", "color.text", "spacing", "radius", "fontSize", "fontWeight"],
70
+ "forbidden": ["primitive.color"]
71
+ },
72
+
73
+ "a11y": {
74
+ "role": "radiogroup (hand-rolled — root is a plain div, options are buttons, not native inputs; see rationale)",
75
+ "keyboardNav": ["Arrow keys — move selection between options (roving tabindex, hand-rolled)", "Space/Enter — selects the focused option", "Tab — moves focus into and out of the group (only the checked option is in the tab order)"],
76
+ "wcag": ["1.3.1 Info and Relationships", "2.1.1 Keyboard", "2.4.7 Focus Visible", "4.1.2 Name Role Value"],
77
+ "applied": {
78
+ "nativeElement": "div",
79
+ "focus": [
80
+ {
81
+ "part": "segmented-control-item",
82
+ "when": ":focus-visible",
83
+ "outline": "2px solid var(--helix-color-border-focus)",
84
+ "outline-offset": "2px"
85
+ }
86
+ ],
87
+ "aria": {
88
+ "segmented-control-root": {
89
+ "role": [
90
+ "radiogroup"
91
+ ],
92
+ "aria-label": [
93
+ "Mode",
94
+ "Period",
95
+ "View"
96
+ ]
97
+ },
98
+ "segmented-control-item": {
99
+ "role": [
100
+ "radio"
101
+ ],
102
+ "aria-checked": [
103
+ "true",
104
+ "false"
105
+ ]
106
+ },
107
+ "segmented-control-pill": {
108
+ "aria-hidden": [
109
+ "true"
110
+ ]
111
+ }
112
+ },
113
+ "announced": [
114
+ "radiogroup \"Mode\"",
115
+ "radiogroup \"Period\"",
116
+ "radiogroup \"View\""
117
+ ],
118
+ "contrast": {
119
+ "segmented-control-item-icon (icon)": {
120
+ "light": "6.92:1 — #475569 on #f1f5f9",
121
+ "dark": "5.71:1 — #94a3b8 on #1e293b"
122
+ }
123
+ },
124
+ "targetSize": {
125
+ "segmented-control-item": "smallest 32×24 px"
126
+ },
127
+ "motion": [
128
+ "CSS transitions/animations: neutralised by the global prefers-reduced-motion rule",
129
+ "Motion (JS): inside <MotionConfig reducedMotion=\"user\">"
130
+ ]
131
+ },
132
+ "results": {
133
+ "score": 100,
134
+ "meetsMinimum": true,
135
+ "checks": {
136
+ "contract": "pass",
137
+ "keys": "pass",
138
+ "focus-return": "n/a",
139
+ "keyboard": "pass",
140
+ "axe": "pass",
141
+ "contrast": "pass",
142
+ "focus-visible": "pass",
143
+ "target-size": "pass",
144
+ "reflow": "n/a",
145
+ "screen-reader": "pass",
146
+ "ai-visual": "pass",
147
+ "human": "pending"
148
+ },
149
+ "notScored": [
150
+ "ai-visual",
151
+ "human"
152
+ ],
153
+ "changed": "2026-10-12"
154
+ }
155
+ },
156
+
157
+ "figma": {
158
+ "childProps": {"options": [{"component": "SegmentedControlItem", "property": "label", "note": "each option's label (icon on icon-only)"}]},
159
+ "figmaOnly": {
160
+ "icon.": { "approved": "2026-10-21", "reason": "Storybook's IconOnly story: every option is icon-only (each option's icon in code) — a special case like Avatar's photo, so the set shows it with one toggle (false = text, true = icons); the item's own icon. / icon stay on SegmentedControlItem" }
161
+ },
162
+ "states": ["default"],
163
+ "properties": [
164
+ {
165
+ "name": "checked",
166
+ "type": "VARIANT",
167
+ "values": ["false", "true"],
168
+ "codeProp": "value",
169
+ "description": "On SegmentedControlItem: the option whose value equals the group's `value`. Checked = the pill (fill/page) — in code a sliding motion.span."
170
+ },
171
+ { "name": "label", "type": "TEXT", "codeProp": "options[].label" },
172
+ { "name": "icon", "type": "VARIANT", "values": ["false", "true"], "codeProp": "options[].icon", "description": "On SegmentedControlItem (owner 2026-10-21): an icon-only option — code sets [data-icon-only] whenever an option has an icon: the icon (16px, the label's color) replaces the visible label (kept as the accessible name) and the sides drop to spacing/xs. A VARIANT, not a BOOLEAN: it also hides the label and changes the padding." },
173
+ { "name": "iconSwap", "type": "INSTANCE_SWAP", "codeProp": "options[].icon", "description": "On SegmentedControlItem: which icon (segmented-control-item-icon)." }
174
+ ],
175
+ "structure": "SegmentedControlItem set (checked × icon × state, 16 variants) composed into SegmentedControl (state default/disabled): track fill/secondary/interactive/default (fill/disabled when disabled), 4px padding and gap, radius full.",
176
+ "propertyMap": {
177
+ "label": {
178
+ "codeType": "string",
179
+ "figma": [],
180
+ "approved": "2026-10-20",
181
+ "reason": "the group's aria-label — never drawn; the visible text is each item's own label (segmented-control-item-label)"
182
+ }
183
+ },
184
+ "variantCombinations": "12 variants (2026-10-21): options (2–7 SegmentedControlItem instances, the first checked; list-count) × disabled false/true, no state axis (pattern group). label is the aria-label: no Figma property.",
185
+ "stories": {
186
+ "Default": "default",
187
+ "FourOptions": "options=4",
188
+ "Disabled": "disabled=true",
189
+ "WithDisabledOption": {"figma": "layout", "reason": "one SegmentedControlItem at state=disabled — drawn in the child (owner 2026-10-21)"},
190
+ "IconOnly": "icon.=true",
191
+ "KeyboardNavigation": {"figma": "layout", "reason": "keyboard focus is drawn on the SegmentedControlItem inside it (state=focus) — owner 2026-10-21"}
192
+ }
193
+ }
194
+ }