@helixds/react 0.0.0-stage → 0.1.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 (340) hide show
  1. package/AGENTS.md +292 -0
  2. package/LICENSE +21 -0
  3. package/README.md +49 -2
  4. package/dist/components/Accordion/Accordion.d.ts +14 -0
  5. package/dist/components/Accordion/Accordion.doc.d.ts +4 -0
  6. package/dist/components/Accordion/Accordion.doc.js +27 -0
  7. package/dist/components/Accordion/Accordion.js +76 -0
  8. package/dist/components/Accordion/Accordion.types.d.ts +24 -0
  9. package/dist/components/Accordion/Accordion.types.js +2 -0
  10. package/dist/components/Accordion/index.d.ts +9 -0
  11. package/dist/components/Accordion/index.js +2 -0
  12. package/dist/components/Avatar/Avatar.d.ts +14 -0
  13. package/dist/components/Avatar/Avatar.doc.d.ts +4 -0
  14. package/dist/components/Avatar/Avatar.doc.js +34 -0
  15. package/dist/components/Avatar/Avatar.js +14 -0
  16. package/dist/components/Avatar/Avatar.types.d.ts +20 -0
  17. package/dist/components/Avatar/Avatar.types.js +2 -0
  18. package/dist/components/Avatar/index.d.ts +9 -0
  19. package/dist/components/Avatar/index.js +2 -0
  20. package/dist/components/AvatarGroup/AvatarGroup.d.ts +14 -0
  21. package/dist/components/AvatarGroup/AvatarGroup.doc.d.ts +4 -0
  22. package/dist/components/AvatarGroup/AvatarGroup.doc.js +30 -0
  23. package/dist/components/AvatarGroup/AvatarGroup.js +15 -0
  24. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +21 -0
  25. package/dist/components/AvatarGroup/AvatarGroup.types.js +2 -0
  26. package/dist/components/AvatarGroup/index.d.ts +9 -0
  27. package/dist/components/AvatarGroup/index.js +2 -0
  28. package/dist/components/Badge/Badge.d.ts +16 -0
  29. package/dist/components/Badge/Badge.doc.d.ts +4 -0
  30. package/dist/components/Badge/Badge.doc.js +69 -0
  31. package/dist/components/Badge/Badge.js +23 -0
  32. package/dist/components/Badge/Badge.types.d.ts +22 -0
  33. package/dist/components/Badge/Badge.types.js +2 -0
  34. package/dist/components/Badge/index.d.ts +9 -0
  35. package/dist/components/Badge/index.js +2 -0
  36. package/dist/components/Button/Button.d.ts +11 -0
  37. package/dist/components/Button/Button.doc.d.ts +4 -0
  38. package/dist/components/Button/Button.doc.js +98 -0
  39. package/dist/components/Button/Button.js +80 -0
  40. package/dist/components/Button/Button.types.d.ts +29 -0
  41. package/dist/components/Button/Button.types.js +2 -0
  42. package/dist/components/Button/index.d.ts +9 -0
  43. package/dist/components/Button/index.js +2 -0
  44. package/dist/components/Card/Card.d.ts +14 -0
  45. package/dist/components/Card/Card.doc.d.ts +4 -0
  46. package/dist/components/Card/Card.doc.js +44 -0
  47. package/dist/components/Card/Card.js +9 -0
  48. package/dist/components/Card/Card.types.d.ts +19 -0
  49. package/dist/components/Card/Card.types.js +2 -0
  50. package/dist/components/Card/index.d.ts +9 -0
  51. package/dist/components/Card/index.js +2 -0
  52. package/dist/components/Chart/Chart.d.ts +14 -0
  53. package/dist/components/Chart/Chart.doc.d.ts +4 -0
  54. package/dist/components/Chart/Chart.doc.js +49 -0
  55. package/dist/components/Chart/Chart.js +184 -0
  56. package/dist/components/Chart/Chart.types.d.ts +21 -0
  57. package/dist/components/Chart/Chart.types.js +2 -0
  58. package/dist/components/Chart/index.d.ts +9 -0
  59. package/dist/components/Chart/index.js +2 -0
  60. package/dist/components/Checkbox/Checkbox.d.ts +12 -0
  61. package/dist/components/Checkbox/Checkbox.doc.d.ts +4 -0
  62. package/dist/components/Checkbox/Checkbox.doc.js +54 -0
  63. package/dist/components/Checkbox/Checkbox.js +23 -0
  64. package/dist/components/Checkbox/Checkbox.types.d.ts +22 -0
  65. package/dist/components/Checkbox/Checkbox.types.js +2 -0
  66. package/dist/components/Checkbox/index.d.ts +9 -0
  67. package/dist/components/Checkbox/index.js +2 -0
  68. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +13 -0
  69. package/dist/components/CheckboxGroup/CheckboxGroup.doc.d.ts +4 -0
  70. package/dist/components/CheckboxGroup/CheckboxGroup.doc.js +56 -0
  71. package/dist/components/CheckboxGroup/CheckboxGroup.js +27 -0
  72. package/dist/components/CheckboxGroup/CheckboxGroup.types.d.ts +28 -0
  73. package/dist/components/CheckboxGroup/CheckboxGroup.types.js +2 -0
  74. package/dist/components/CheckboxGroup/index.d.ts +9 -0
  75. package/dist/components/CheckboxGroup/index.js +2 -0
  76. package/dist/components/Chip/Chip.d.ts +11 -0
  77. package/dist/components/Chip/Chip.doc.d.ts +4 -0
  78. package/dist/components/Chip/Chip.doc.js +105 -0
  79. package/dist/components/Chip/Chip.js +30 -0
  80. package/dist/components/Chip/Chip.types.d.ts +31 -0
  81. package/dist/components/Chip/Chip.types.js +2 -0
  82. package/dist/components/Chip/index.d.ts +9 -0
  83. package/dist/components/Chip/index.js +2 -0
  84. package/dist/components/ChipGroup/ChipGroup.d.ts +12 -0
  85. package/dist/components/ChipGroup/ChipGroup.doc.d.ts +4 -0
  86. package/dist/components/ChipGroup/ChipGroup.doc.js +31 -0
  87. package/dist/components/ChipGroup/ChipGroup.js +9 -0
  88. package/dist/components/ChipGroup/ChipGroup.types.d.ts +27 -0
  89. package/dist/components/ChipGroup/ChipGroup.types.js +2 -0
  90. package/dist/components/ChipGroup/index.d.ts +9 -0
  91. package/dist/components/ChipGroup/index.js +2 -0
  92. package/dist/components/FAB/FAB.d.ts +11 -0
  93. package/dist/components/FAB/FAB.doc.d.ts +4 -0
  94. package/dist/components/FAB/FAB.doc.js +52 -0
  95. package/dist/components/FAB/FAB.js +133 -0
  96. package/dist/components/FAB/FAB.types.d.ts +37 -0
  97. package/dist/components/FAB/FAB.types.js +2 -0
  98. package/dist/components/FAB/index.d.ts +9 -0
  99. package/dist/components/FAB/index.js +2 -0
  100. package/dist/components/Icon/Icon.d.ts +14 -0
  101. package/dist/components/Icon/Icon.doc.d.ts +4 -0
  102. package/dist/components/Icon/Icon.doc.js +38 -0
  103. package/dist/components/Icon/Icon.js +15 -0
  104. package/dist/components/Icon/Icon.types.d.ts +47 -0
  105. package/dist/components/Icon/Icon.types.js +2 -0
  106. package/dist/components/Icon/createIconAdapter.d.ts +24 -0
  107. package/dist/components/Icon/createIconAdapter.js +28 -0
  108. package/dist/components/Icon/iconStroke.d.ts +20 -0
  109. package/dist/components/Icon/iconStroke.js +54 -0
  110. package/dist/components/Icon/index.d.ts +12 -0
  111. package/dist/components/Icon/index.js +4 -0
  112. package/dist/components/IconButton/IconButton.d.ts +11 -0
  113. package/dist/components/IconButton/IconButton.doc.d.ts +4 -0
  114. package/dist/components/IconButton/IconButton.doc.js +76 -0
  115. package/dist/components/IconButton/IconButton.js +20 -0
  116. package/dist/components/IconButton/IconButton.types.d.ts +25 -0
  117. package/dist/components/IconButton/IconButton.types.js +2 -0
  118. package/dist/components/IconButton/index.d.ts +9 -0
  119. package/dist/components/IconButton/index.js +2 -0
  120. package/dist/components/Input/Input.d.ts +11 -0
  121. package/dist/components/Input/Input.doc.d.ts +4 -0
  122. package/dist/components/Input/Input.doc.js +68 -0
  123. package/dist/components/Input/Input.js +48 -0
  124. package/dist/components/Input/Input.types.d.ts +36 -0
  125. package/dist/components/Input/Input.types.js +2 -0
  126. package/dist/components/Input/index.d.ts +9 -0
  127. package/dist/components/Input/index.js +2 -0
  128. package/dist/components/Menu/Menu.d.ts +14 -0
  129. package/dist/components/Menu/Menu.doc.d.ts +4 -0
  130. package/dist/components/Menu/Menu.doc.js +46 -0
  131. package/dist/components/Menu/Menu.js +105 -0
  132. package/dist/components/Menu/Menu.types.d.ts +34 -0
  133. package/dist/components/Menu/Menu.types.js +2 -0
  134. package/dist/components/Menu/index.d.ts +9 -0
  135. package/dist/components/Menu/index.js +2 -0
  136. package/dist/components/Modal/Modal.d.ts +14 -0
  137. package/dist/components/Modal/Modal.doc.d.ts +4 -0
  138. package/dist/components/Modal/Modal.doc.js +52 -0
  139. package/dist/components/Modal/Modal.js +30 -0
  140. package/dist/components/Modal/Modal.types.d.ts +36 -0
  141. package/dist/components/Modal/Modal.types.js +2 -0
  142. package/dist/components/Modal/index.d.ts +9 -0
  143. package/dist/components/Modal/index.js +2 -0
  144. package/dist/components/MultiSelect/MultiSelect.d.ts +17 -0
  145. package/dist/components/MultiSelect/MultiSelect.doc.d.ts +4 -0
  146. package/dist/components/MultiSelect/MultiSelect.doc.js +37 -0
  147. package/dist/components/MultiSelect/MultiSelect.js +165 -0
  148. package/dist/components/MultiSelect/MultiSelect.types.d.ts +50 -0
  149. package/dist/components/MultiSelect/MultiSelect.types.js +2 -0
  150. package/dist/components/MultiSelect/index.d.ts +9 -0
  151. package/dist/components/MultiSelect/index.js +2 -0
  152. package/dist/components/NavItem/NavItem.d.ts +14 -0
  153. package/dist/components/NavItem/NavItem.doc.d.ts +4 -0
  154. package/dist/components/NavItem/NavItem.doc.js +31 -0
  155. package/dist/components/NavItem/NavItem.js +21 -0
  156. package/dist/components/NavItem/NavItem.types.d.ts +20 -0
  157. package/dist/components/NavItem/NavItem.types.js +2 -0
  158. package/dist/components/NavItem/index.d.ts +9 -0
  159. package/dist/components/NavItem/index.js +2 -0
  160. package/dist/components/RadioButton/RadioButton.d.ts +14 -0
  161. package/dist/components/RadioButton/RadioButton.doc.d.ts +4 -0
  162. package/dist/components/RadioButton/RadioButton.doc.js +35 -0
  163. package/dist/components/RadioButton/RadioButton.js +15 -0
  164. package/dist/components/RadioButton/RadioButton.types.d.ts +33 -0
  165. package/dist/components/RadioButton/RadioButton.types.js +2 -0
  166. package/dist/components/RadioButton/index.d.ts +9 -0
  167. package/dist/components/RadioButton/index.js +2 -0
  168. package/dist/components/RadioGroup/RadioGroup.d.ts +12 -0
  169. package/dist/components/RadioGroup/RadioGroup.doc.d.ts +4 -0
  170. package/dist/components/RadioGroup/RadioGroup.doc.js +80 -0
  171. package/dist/components/RadioGroup/RadioGroup.js +19 -0
  172. package/dist/components/RadioGroup/RadioGroup.types.d.ts +28 -0
  173. package/dist/components/RadioGroup/RadioGroup.types.js +2 -0
  174. package/dist/components/RadioGroup/index.d.ts +9 -0
  175. package/dist/components/RadioGroup/index.js +2 -0
  176. package/dist/components/SegmentedControl/SegmentedControl.d.ts +13 -0
  177. package/dist/components/SegmentedControl/SegmentedControl.doc.d.ts +4 -0
  178. package/dist/components/SegmentedControl/SegmentedControl.doc.js +50 -0
  179. package/dist/components/SegmentedControl/SegmentedControl.js +64 -0
  180. package/dist/components/SegmentedControl/SegmentedControl.types.d.ts +26 -0
  181. package/dist/components/SegmentedControl/SegmentedControl.types.js +2 -0
  182. package/dist/components/SegmentedControl/index.d.ts +9 -0
  183. package/dist/components/SegmentedControl/index.js +2 -0
  184. package/dist/components/Select/Select.d.ts +13 -0
  185. package/dist/components/Select/Select.doc.d.ts +4 -0
  186. package/dist/components/Select/Select.doc.js +66 -0
  187. package/dist/components/Select/Select.js +138 -0
  188. package/dist/components/Select/Select.types.d.ts +36 -0
  189. package/dist/components/Select/Select.types.js +2 -0
  190. package/dist/components/Select/index.d.ts +9 -0
  191. package/dist/components/Select/index.js +2 -0
  192. package/dist/components/SidePanel/SidePanel.d.ts +14 -0
  193. package/dist/components/SidePanel/SidePanel.doc.d.ts +4 -0
  194. package/dist/components/SidePanel/SidePanel.doc.js +29 -0
  195. package/dist/components/SidePanel/SidePanel.js +19 -0
  196. package/dist/components/SidePanel/SidePanel.types.d.ts +28 -0
  197. package/dist/components/SidePanel/SidePanel.types.js +2 -0
  198. package/dist/components/SidePanel/index.d.ts +9 -0
  199. package/dist/components/SidePanel/index.js +2 -0
  200. package/dist/components/Switch/Switch.d.ts +13 -0
  201. package/dist/components/Switch/Switch.doc.d.ts +4 -0
  202. package/dist/components/Switch/Switch.doc.js +56 -0
  203. package/dist/components/Switch/Switch.js +45 -0
  204. package/dist/components/Switch/Switch.types.d.ts +21 -0
  205. package/dist/components/Switch/Switch.types.js +2 -0
  206. package/dist/components/Switch/index.d.ts +9 -0
  207. package/dist/components/Switch/index.js +2 -0
  208. package/dist/components/Table/Table.d.ts +34 -0
  209. package/dist/components/Table/Table.doc.d.ts +4 -0
  210. package/dist/components/Table/Table.doc.js +48 -0
  211. package/dist/components/Table/Table.js +17 -0
  212. package/dist/components/Table/Table.types.d.ts +30 -0
  213. package/dist/components/Table/Table.types.js +2 -0
  214. package/dist/components/Table/index.d.ts +9 -0
  215. package/dist/components/Table/index.js +2 -0
  216. package/dist/components/Textarea/Textarea.d.ts +9 -0
  217. package/dist/components/Textarea/Textarea.doc.d.ts +4 -0
  218. package/dist/components/Textarea/Textarea.doc.js +60 -0
  219. package/dist/components/Textarea/Textarea.js +24 -0
  220. package/dist/components/Textarea/Textarea.types.d.ts +22 -0
  221. package/dist/components/Textarea/Textarea.types.js +2 -0
  222. package/dist/components/Textarea/index.d.ts +9 -0
  223. package/dist/components/Textarea/index.js +2 -0
  224. package/dist/components/Toast/Toast.d.ts +16 -0
  225. package/dist/components/Toast/Toast.doc.d.ts +4 -0
  226. package/dist/components/Toast/Toast.doc.js +37 -0
  227. package/dist/components/Toast/Toast.js +134 -0
  228. package/dist/components/Toast/Toast.types.d.ts +11 -0
  229. package/dist/components/Toast/Toast.types.js +2 -0
  230. package/dist/components/Toast/index.d.ts +10 -0
  231. package/dist/components/Toast/index.js +2 -0
  232. package/dist/components/Toast/toastStore.d.ts +36 -0
  233. package/dist/components/Toast/toastStore.js +57 -0
  234. package/dist/components/Tooltip/Tooltip.d.ts +14 -0
  235. package/dist/components/Tooltip/Tooltip.doc.d.ts +4 -0
  236. package/dist/components/Tooltip/Tooltip.doc.js +33 -0
  237. package/dist/components/Tooltip/Tooltip.js +105 -0
  238. package/dist/components/Tooltip/Tooltip.types.d.ts +21 -0
  239. package/dist/components/Tooltip/Tooltip.types.js +2 -0
  240. package/dist/components/Tooltip/index.d.ts +9 -0
  241. package/dist/components/Tooltip/index.js +2 -0
  242. package/dist/contracts/Accordion.json +174 -0
  243. package/dist/contracts/AppShell.json +118 -0
  244. package/dist/contracts/Avatar.json +157 -0
  245. package/dist/contracts/AvatarGroup.json +169 -0
  246. package/dist/contracts/Badge.json +212 -0
  247. package/dist/contracts/Button.json +295 -0
  248. package/dist/contracts/Card.json +125 -0
  249. package/dist/contracts/Chart.json +167 -0
  250. package/dist/contracts/Checkbox.json +333 -0
  251. package/dist/contracts/CheckboxGroup.json +200 -0
  252. package/dist/contracts/Chip.json +320 -0
  253. package/dist/contracts/ChipGroup.json +182 -0
  254. package/dist/contracts/FAB.json +215 -0
  255. package/dist/contracts/Icon.json +306 -0
  256. package/dist/contracts/IconButton.json +213 -0
  257. package/dist/contracts/Input.json +400 -0
  258. package/dist/contracts/Menu.json +197 -0
  259. package/dist/contracts/Modal.json +192 -0
  260. package/dist/contracts/MultiSelect.json +244 -0
  261. package/dist/contracts/NavItem.json +148 -0
  262. package/dist/contracts/PageHeader.json +134 -0
  263. package/dist/contracts/RadioButton.json +202 -0
  264. package/dist/contracts/RadioGroup.json +228 -0
  265. package/dist/contracts/SegmentedControl.json +193 -0
  266. package/dist/contracts/Select.json +241 -0
  267. package/dist/contracts/SideNav.json +138 -0
  268. package/dist/contracts/SidePanel.json +153 -0
  269. package/dist/contracts/Switch.json +201 -0
  270. package/dist/contracts/Table.json +130 -0
  271. package/dist/contracts/Textarea.json +353 -0
  272. package/dist/contracts/Toast.json +186 -0
  273. package/dist/contracts/Tooltip.json +168 -0
  274. package/dist/contracts/TopBar.json +127 -0
  275. package/dist/contracts/manifest.json +675 -0
  276. package/dist/index.d.ts +109 -0
  277. package/dist/index.js +73 -0
  278. package/dist/layout/AppShell/AppShell.d.ts +14 -0
  279. package/dist/layout/AppShell/AppShell.doc.d.ts +4 -0
  280. package/dist/layout/AppShell/AppShell.doc.js +27 -0
  281. package/dist/layout/AppShell/AppShell.js +9 -0
  282. package/dist/layout/AppShell/AppShell.types.d.ts +18 -0
  283. package/dist/layout/AppShell/AppShell.types.js +2 -0
  284. package/dist/layout/AppShell/index.d.ts +9 -0
  285. package/dist/layout/AppShell/index.js +2 -0
  286. package/dist/layout/PageHeader/PageHeader.d.ts +14 -0
  287. package/dist/layout/PageHeader/PageHeader.doc.d.ts +4 -0
  288. package/dist/layout/PageHeader/PageHeader.doc.js +30 -0
  289. package/dist/layout/PageHeader/PageHeader.js +10 -0
  290. package/dist/layout/PageHeader/PageHeader.types.d.ts +21 -0
  291. package/dist/layout/PageHeader/PageHeader.types.js +2 -0
  292. package/dist/layout/PageHeader/index.d.ts +9 -0
  293. package/dist/layout/PageHeader/index.js +2 -0
  294. package/dist/layout/SideNav/SideNav.d.ts +14 -0
  295. package/dist/layout/SideNav/SideNav.doc.d.ts +4 -0
  296. package/dist/layout/SideNav/SideNav.doc.js +32 -0
  297. package/dist/layout/SideNav/SideNav.js +9 -0
  298. package/dist/layout/SideNav/SideNav.types.d.ts +18 -0
  299. package/dist/layout/SideNav/SideNav.types.js +2 -0
  300. package/dist/layout/SideNav/index.d.ts +9 -0
  301. package/dist/layout/SideNav/index.js +2 -0
  302. package/dist/layout/TopBar/TopBar.d.ts +14 -0
  303. package/dist/layout/TopBar/TopBar.doc.d.ts +4 -0
  304. package/dist/layout/TopBar/TopBar.doc.js +28 -0
  305. package/dist/layout/TopBar/TopBar.js +9 -0
  306. package/dist/layout/TopBar/TopBar.types.d.ts +16 -0
  307. package/dist/layout/TopBar/TopBar.types.js +2 -0
  308. package/dist/layout/TopBar/index.d.ts +9 -0
  309. package/dist/layout/TopBar/index.js +2 -0
  310. package/dist/lib/component-doc.d.ts +34 -0
  311. package/dist/lib/component-doc.js +2 -0
  312. package/dist/lib/motionPresets.d.ts +37 -0
  313. package/dist/lib/motionPresets.js +35 -0
  314. package/dist/lib/resolveTokenPx.d.ts +11 -0
  315. package/dist/lib/resolveTokenPx.js +17 -0
  316. package/dist/lib/useDialogTransition.d.ts +21 -0
  317. package/dist/lib/useDialogTransition.js +86 -0
  318. package/dist/lib/useDisclosureTransition.d.ts +19 -0
  319. package/dist/lib/useDisclosureTransition.js +41 -0
  320. package/dist/lib/utils.d.ts +3 -0
  321. package/dist/lib/utils.js +6 -0
  322. package/dist/patterns/action-bar.md +127 -0
  323. package/dist/patterns/border-always.md +40 -0
  324. package/dist/patterns/data-analytics.md +15 -0
  325. package/dist/patterns/disabled-state.md +80 -0
  326. package/dist/patterns/empty-state.md +130 -0
  327. package/dist/patterns/expand-collapse-chevron.md +101 -0
  328. package/dist/patterns/form-field-group.md +139 -0
  329. package/dist/patterns/form-field-spacing.md +99 -0
  330. package/dist/patterns/group-spacing.md +54 -0
  331. package/dist/patterns/motion-effects.md +100 -0
  332. package/dist/patterns/same-row-sizing.md +52 -0
  333. package/dist/patterns/search-filter.md +118 -0
  334. package/dist/patterns/show-hide-parts.md +53 -0
  335. package/dist/patterns/stat-card.md +105 -0
  336. package/dist/patterns/status-row.md +130 -0
  337. package/dist/patterns/view-toggle.md +81 -0
  338. package/dist/prop-map.md +80 -0
  339. package/package.json +70 -3
  340. package/src/globals.css +3195 -0
@@ -0,0 +1,56 @@
1
+ export const doc = {
2
+ name: 'CheckboxGroup',
3
+ purpose: 'Lets users choose zero or more options from a small, visible set of independent choices.',
4
+ contract: 'contracts/components/CheckboxGroup.json',
5
+ a11y: [
6
+ 'Renders a real `<fieldset>`/`<legend>` — the group `label` is the legend, not a per-option label.',
7
+ 'Each option renders a real, standalone `Checkbox` — no bespoke markup, so it inherits all of Checkbox\'s own a11y and CSS unchanged.',
8
+ 'Pair `invalid` with `errorMessage` so screen readers get a clear validation message.',
9
+ ],
10
+ variants: [
11
+ { name: 'vertical', description: 'Default orientation — options stack top to bottom.' },
12
+ { name: 'horizontal', description: 'Options lay out left to right. Use for short option sets only.' },
13
+ ],
14
+ sizes: [],
15
+ tokens: [
16
+ { part: 'checkbox-group-legend', label: 'Group label text', token: '--helix-checkbox-text-label', kind: 'color' },
17
+ { part: 'checkbox-group-error', label: 'Error text', token: '--helix-checkbox-text-error', kind: 'color' },
18
+ { part: 'checkbox-group-legend', label: 'legend', token: '--helix-primitive-fontSize-s', kind: 'typography', meta: 'Label' },
19
+ { part: 'checkbox-group-legend', label: 'legend.weight', token: '--helix-primitive-fontWeight-medium', kind: 'typography', meta: 'Medium' },
20
+ { part: 'checkbox-group', label: 'gap.legend.options', token: '--helix-primitive-spacing-50', kind: 'space', axis: 'vertical' },
21
+ { part: 'checkbox-group-options', label: 'gap.options', token: '--helix-primitive-spacing-75', kind: 'space', axis: 'vertical' },
22
+ { part: 'checkbox-group', label: 'display', value: 'flex' },
23
+ { part: 'checkbox-group', label: 'flex-direction', value: 'column' },
24
+ { part: 'checkbox-group-options', label: 'display', value: 'flex' },
25
+ { part: 'checkbox-group-options', label: 'flex-direction', value: 'column' },
26
+ ],
27
+ features: [
28
+ 'label — required legend for the whole group',
29
+ 'options — array of { value, label, description?, disabled? }',
30
+ 'orientation — vertical (default) or horizontal layout',
31
+ 'value / defaultValue — controlled or uncontrolled multi-selection, as string[]',
32
+ 'onChange — receives the full updated set of selected values, not a single toggle event',
33
+ 'invalid / errorMessage — group-level validation state and helper copy',
34
+ 'disabled — disables the whole group; individual options can also disable themselves',
35
+ 'Composes real `Checkbox` instances internally — no duplicated visuals or tokens.',
36
+ ],
37
+ examples: [
38
+ {
39
+ label: 'Default',
40
+ code: `<CheckboxGroup label="Notify me about" options={[{ value: 'comments', label: 'Comments' }, { value: 'mentions', label: 'Mentions' }]} />`,
41
+ },
42
+ {
43
+ label: 'With descriptions',
44
+ code: `<CheckboxGroup label="Notify me about" options={[{ value: 'comments', label: 'Comments', description: 'Replies to your posts' }, { value: 'mentions', label: 'Mentions', description: 'When someone @-mentions you' }]} />`,
45
+ },
46
+ {
47
+ label: 'Horizontal',
48
+ code: `<CheckboxGroup label="Days" orientation="horizontal" options={[{ value: 'mon', label: 'Mon' }, { value: 'tue', label: 'Tue' }, { value: 'wed', label: 'Wed' }]} />`,
49
+ },
50
+ {
51
+ label: 'Invalid',
52
+ code: `<CheckboxGroup label="Topics" options={options} invalid errorMessage="Choose at least one topic" />`,
53
+ },
54
+ ],
55
+ };
56
+ //# sourceMappingURL=CheckboxGroup.doc.js.map
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { Checkbox } from '../Checkbox/index.js';
4
+ let idCounter = 0;
5
+ export function CheckboxGroup({ label, options, value, defaultValue, onChange, orientation = 'vertical', description, errorMessage, invalid = false, disabled = false, required = false, name: nameProp, }) {
6
+ const uid = `helix-checkbox-group-${++idCounter}`;
7
+ const name = nameProp ?? uid;
8
+ const descId = description ? `${uid}-desc` : undefined;
9
+ const errId = errorMessage ? `${uid}-err` : undefined;
10
+ const describedby = [descId, errId].filter(Boolean).join(' ') || undefined;
11
+ const isControlled = value !== undefined;
12
+ const [internalValue, setInternalValue] = React.useState(defaultValue ?? []);
13
+ const selected = isControlled ? value : internalValue;
14
+ const toggle = (optionValue, checked) => {
15
+ const next = checked ? [...selected, optionValue] : selected.filter(v => v !== optionValue);
16
+ if (!isControlled)
17
+ setInternalValue(next);
18
+ onChange?.(next);
19
+ };
20
+ return (_jsxs("fieldset", { "data-helix-part": "checkbox-group", ...(disabled ? { 'data-disabled': '' } : {}), ...(invalid ? { 'data-invalid': '' } : {}), "aria-describedby": describedby, children: [_jsxs("legend", { "data-helix-part": "checkbox-group-legend", children: [label, required && _jsx("span", { "data-helix-part": "checkbox-group-required", "aria-hidden": "true", children: "*" }), required && (_jsxs("span", { style: { position: 'absolute', width: 1, height: 1, overflow: 'hidden', clip: 'rect(0,0,0,0)', whiteSpace: 'nowrap' }, children: [' ', "(required)"] }))] }), _jsx("div", { "data-helix-part": "checkbox-group-options", "data-orientation": orientation, children: options.map(opt => (_jsx(Checkbox, { id: `${uid}-${opt.value}`, name: name, value: opt.value, label: opt.label, ...(opt.description !== undefined ? { description: opt.description } : {}), checked: selected.includes(opt.value), onChange: checked => toggle(opt.value, checked), disabled: opt.disabled || disabled,
21
+ // Not `required` on each checkbox: native validation would then demand EVERY option be
22
+ // checked, while the group's contract means "at least one". The consumer enforces that
23
+ // through `invalid` + `errorMessage`.
24
+ invalid: invalid }, opt.value))) }), description && !errorMessage && (_jsx("span", { id: descId, "data-helix-part": "checkbox-group-description", children: description })), errorMessage && (_jsx("span", { id: errId, "data-helix-part": "checkbox-group-error", role: "alert", children: errorMessage }))] }));
25
+ }
26
+ CheckboxGroup.displayName = 'CheckboxGroup';
27
+ //# sourceMappingURL=CheckboxGroup.js.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @helixds/react — agent note
3
+ * Before using CheckboxGroup, read its contract: node_modules/@helixds/react/dist/contracts/CheckboxGroup.json
4
+ * (every prop, which are required, when not to use it, the import line). Do not guess Helix props.
5
+ * Guide: node_modules/@helixds/react/AGENTS.md
6
+ */
7
+ export interface CheckboxOption {
8
+ value: string;
9
+ label: string;
10
+ description?: string;
11
+ disabled?: boolean;
12
+ }
13
+ export type CheckboxGroupOrientation = 'vertical' | 'horizontal';
14
+ export interface CheckboxGroupProps {
15
+ label: string;
16
+ options: CheckboxOption[];
17
+ value?: string[];
18
+ defaultValue?: string[];
19
+ onChange?: (values: string[]) => void;
20
+ orientation?: CheckboxGroupOrientation;
21
+ description?: string;
22
+ errorMessage?: string;
23
+ invalid?: boolean;
24
+ disabled?: boolean;
25
+ required?: boolean;
26
+ name?: string;
27
+ }
28
+ //# sourceMappingURL=CheckboxGroup.types.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CheckboxGroup.types.js.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @helixds/react — agent note
3
+ * Before using CheckboxGroup, read its contract: node_modules/@helixds/react/dist/contracts/CheckboxGroup.json
4
+ * (every prop, which are required, when not to use it, the import line). Do not guess Helix props.
5
+ * Guide: node_modules/@helixds/react/AGENTS.md
6
+ */
7
+ export { CheckboxGroup } from './CheckboxGroup.js';
8
+ export type { CheckboxGroupProps, CheckboxOption, CheckboxGroupOrientation } from './CheckboxGroup.types.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { CheckboxGroup } from './CheckboxGroup.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @helixds/react — agent note
3
+ * Before using Chip, read its contract: node_modules/@helixds/react/dist/contracts/Chip.json
4
+ * (every prop, which are required, when not to use it, the import line). Do not guess Helix props.
5
+ * Guide: node_modules/@helixds/react/AGENTS.md
6
+ */
7
+ import * as React from 'react';
8
+ import type { ChipProps } from './Chip.types.js';
9
+ declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLButtonElement>>;
10
+ export { Chip };
11
+ //# sourceMappingURL=Chip.d.ts.map
@@ -0,0 +1,4 @@
1
+ /** Machine-readable component documentation for the Helix Chip. */
2
+ import type { ComponentDoc } from '../../lib/component-doc.js';
3
+ export declare const doc: ComponentDoc;
4
+ //# sourceMappingURL=Chip.doc.d.ts.map
@@ -0,0 +1,105 @@
1
+ export const doc = {
2
+ name: 'Chip',
3
+ purpose: 'Represents a compact selectable label for filters, categories, or short choices.',
4
+ contract: 'contracts/components/Chip.json',
5
+ a11y: [
6
+ 'Use `onClick` for selection and `onDismiss` for removal; they are separate actions.',
7
+ 'Keep the label concise and descriptive. The dismiss control must remain reachable with the keyboard.',
8
+ ],
9
+ variants: [
10
+ { name: 'neutral', description: 'Default neutral chip for generic filters and tags.' },
11
+ { name: 'info', description: 'Blue semantic chip for informational categories.' },
12
+ { name: 'success', description: 'Green semantic chip for positive or active states.' },
13
+ { name: 'warning', description: 'Orange semantic chip for caution or pending states.' },
14
+ { name: 'danger', description: 'Red semantic chip for destructive or error-related states.' },
15
+ ],
16
+ sizes: ['s', 'm'],
17
+ tokens: [
18
+ // Fills per variant and interaction state. Chip has no checked/selected state.
19
+ { part: 'chip', label: 'fill.neutral', token: '--helix-color-fill-surface', kind: 'color', variant: 'neutral' },
20
+ { part: 'chip', label: 'fill.neutral', token: '--helix-color-fill-surface-dark', kind: 'color', variant: 'neutral', state: 'hover' },
21
+ { part: 'chip', label: 'fill.neutral', token: '--helix-color-fill-secondary-interactive-default', kind: 'color', variant: 'neutral', state: 'press' },
22
+ { part: 'chip', label: 'border.neutral', token: '--helix-color-border-neutral', kind: 'color', variant: 'neutral' },
23
+ { part: 'chip', label: 'text.neutral', token: '--helix-color-text-neutral', kind: 'color', variant: 'neutral' },
24
+ { part: 'chip', label: 'fill.info', token: '--helix-color-fill-info-light', kind: 'color', variant: 'info' },
25
+ { part: 'chip', label: 'fill.info', value: 'color-mix(in srgb, var(--helix-color-fill-info-light) 84%, var(--helix-color-fill-page))', kind: 'color', variant: 'info', state: 'hover', meta: 'No discrete token — computed color-mix() over fill.info' },
26
+ { part: 'chip', label: 'fill.info', value: 'color-mix(in srgb, var(--helix-color-fill-info-light) 72%, var(--helix-color-fill-page))', kind: 'color', variant: 'info', state: 'press', meta: 'No discrete token — computed color-mix() over fill.info' },
27
+ { part: 'chip', label: 'border.info', token: '--helix-color-border-info', kind: 'color', variant: 'info' },
28
+ { part: 'chip', label: 'text.info', token: '--helix-color-text-info', kind: 'color', variant: 'info' },
29
+ { part: 'chip', label: 'fill.success', token: '--helix-color-fill-success-light', kind: 'color', variant: 'success' },
30
+ { part: 'chip', label: 'fill.success', value: 'color-mix(in srgb, var(--helix-color-fill-success-light) 84%, var(--helix-color-fill-page))', kind: 'color', variant: 'success', state: 'hover', meta: 'No discrete token — computed color-mix() over fill.success' },
31
+ { part: 'chip', label: 'fill.success', value: 'color-mix(in srgb, var(--helix-color-fill-success-light) 72%, var(--helix-color-fill-page))', kind: 'color', variant: 'success', state: 'press', meta: 'No discrete token — computed color-mix() over fill.success' },
32
+ { part: 'chip', label: 'border.success', token: '--helix-color-border-success', kind: 'color', variant: 'success' },
33
+ { part: 'chip', label: 'text.success', token: '--helix-color-text-success', kind: 'color', variant: 'success' },
34
+ { part: 'chip', label: 'fill.warning', token: '--helix-color-fill-warning-light', kind: 'color', variant: 'warning' },
35
+ { part: 'chip', label: 'fill.warning', value: 'color-mix(in srgb, var(--helix-color-fill-warning-light) 84%, var(--helix-color-fill-page))', kind: 'color', variant: 'warning', state: 'hover', meta: 'No discrete token — computed color-mix() over fill.warning' },
36
+ { part: 'chip', label: 'fill.warning', value: 'color-mix(in srgb, var(--helix-color-fill-warning-light) 72%, var(--helix-color-fill-page))', kind: 'color', variant: 'warning', state: 'press', meta: 'No discrete token — computed color-mix() over fill.warning' },
37
+ { part: 'chip', label: 'border.warning', token: '--helix-color-border-warning', kind: 'color', variant: 'warning' },
38
+ { part: 'chip', label: 'text.warning', token: '--helix-color-text-warning', kind: 'color', variant: 'warning' },
39
+ { part: 'chip', label: 'fill.danger', token: '--helix-color-fill-danger-interactive-light-default', kind: 'color', variant: 'danger' },
40
+ { part: 'chip', label: 'fill.danger', value: 'color-mix(in srgb, var(--helix-color-fill-danger-interactive-light-default) 84%, var(--helix-color-fill-page))', kind: 'color', variant: 'danger', state: 'hover', meta: 'No discrete token — computed color-mix() over fill.danger' },
41
+ { part: 'chip', label: 'fill.danger', value: 'color-mix(in srgb, var(--helix-color-fill-danger-interactive-light-default) 72%, var(--helix-color-fill-page))', kind: 'color', variant: 'danger', state: 'press', meta: 'No discrete token — computed color-mix() over fill.danger' },
42
+ { part: 'chip', label: 'border.danger', token: '--helix-color-border-danger', kind: 'color', variant: 'danger' },
43
+ { part: 'chip', label: 'text.danger', token: '--helix-color-text-danger', kind: 'color', variant: 'danger' },
44
+ { part: 'chip', label: 'fill.disabled', token: '--helix-color-fill-disabled', kind: 'color', state: 'disabled' },
45
+ { part: 'chip', label: 'text.disabled', token: '--helix-color-text-disabled', kind: 'color', state: 'disabled' },
46
+ { part: 'chip', label: 'border.disabled', token: '--helix-color-border-neutral-light', kind: 'color', state: 'disabled' },
47
+ { part: 'chip', label: 'chip.root', token: '--helix-chip-radius', kind: 'radius' },
48
+ { part: 'chip', label: 'gap.icon.text', token: '--helix-chip-gap-s', kind: 'space', axis: 'horizontal', size: 's' },
49
+ { part: 'chip', label: 'gap.icon.text', token: '--helix-chip-gap-m', kind: 'space', axis: 'horizontal', size: 'm' },
50
+ { part: 'chip', label: 'chip.height', token: '--helix-chip-height-s', kind: 'space', size: 's' },
51
+ { part: 'chip', label: 'chip.height', token: '--helix-chip-height-m', kind: 'space', size: 'm' },
52
+ { part: 'chip', label: 'padding.top', value: '0', kind: 'space', axis: 'vertical' },
53
+ { part: 'chip', label: 'padding.bottom', value: '0', kind: 'space', axis: 'vertical' },
54
+ { part: 'chip', label: 'padding.start', token: '--helix-chip-padding-x-s', kind: 'space', axis: 'horizontal', size: 's' },
55
+ { part: 'chip', label: 'padding.end', token: '--helix-chip-padding-x-s', kind: 'space', axis: 'horizontal', size: 's' },
56
+ { part: 'chip', label: 'padding.start', token: '--helix-chip-padding-x-m', kind: 'space', axis: 'horizontal', size: 'm' },
57
+ { part: 'chip', label: 'padding.end', token: '--helix-chip-padding-x-m', kind: 'space', axis: 'horizontal', size: 'm' },
58
+ { part: 'chip', label: 'fontSize', token: '--helix-chip-fontSize-s', kind: 'typography', meta: 'Body / s / Medium', size: 's' },
59
+ { part: 'chip', label: 'fontSize', token: '--helix-chip-fontSize-m', kind: 'typography', meta: 'Body / s / Medium', size: 'm' },
60
+ { part: 'chip', label: 'fontWeight', token: '--helix-chip-fontWeight', kind: 'typography', meta: 'Body / s / Medium' },
61
+ { part: 'chip', label: 'display', value: 'inline-flex' },
62
+ { part: 'chip', label: 'align-items', value: 'center' },
63
+ { part: 'chip', label: 'justify-content', value: 'center' },
64
+ { part: 'chip', label: 'box-sizing', value: 'border-box' },
65
+ { part: 'chip', label: 'line-height', value: '1' },
66
+ { part: 'chip', label: 'white-space', value: 'nowrap' },
67
+ { part: 'chip', label: 'user-select', value: 'none' },
68
+ { part: 'chip', label: 'text-decoration', value: 'none' },
69
+ { part: 'chip', label: 'outline', value: 'none' },
70
+ { part: 'chip', label: '-webkit-appearance', value: 'none' },
71
+ { part: 'chip', label: 'appearance', value: 'none' },
72
+ { part: 'chip', label: 'cursor', value: 'pointer' },
73
+ { part: 'chip', label: 'cursor.disabled', value: 'not-allowed' },
74
+ { part: 'chip', label: 'opacity.disabled', value: '0.72' },
75
+ { part: 'chip', label: 'pointer-events', value: 'none' },
76
+ ],
77
+ features: [
78
+ 'forwardRef — accepts a ref to the underlying <button> element',
79
+ 'size — horizontal density preset (documented exception to the global scale)',
80
+ 'dismissible — optional close button for removable chips',
81
+ 'icon / iconEnd — optional icon slots with aria-hidden',
82
+ 'onClick — canonical handler (React\'s own; onClick is an anti-synonym, ADR-022)',
83
+ 'onDismiss — close button handler; fires after a Motion fade+scale exit finishes (ADR-007), not on click itself, so the consumer removes it from their list exactly as it goes invisible — see .ai/maps/patterns/motion-effects.md',
84
+ 'disabled — native button disabled state',
85
+ ],
86
+ examples: [
87
+ {
88
+ label: 'Neutral',
89
+ code: `<Chip label="All" />`,
90
+ },
91
+ {
92
+ label: 'With icon',
93
+ code: `<Chip label="Filters" icon={IconFilter} />`,
94
+ },
95
+ {
96
+ label: 'Dismissible',
97
+ code: `<Chip label="Recent" dismissible onDismiss={() => {}} />`,
98
+ },
99
+ {
100
+ label: 'Success',
101
+ code: `<Chip variant="success" label="Approved" />`,
102
+ },
103
+ ],
104
+ };
105
+ //# sourceMappingURL=Chip.doc.js.map
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { motion, MotionConfig } from 'motion/react';
4
+ import { IconX } from '@tabler/icons-react';
5
+ import { cn } from '../../lib/utils.js';
6
+ import { Icon } from '../Icon/index.js';
7
+ const Chip = React.forwardRef(({ variant = 'neutral', size = 's', disabled = false, label, icon, iconEnd, className, onClick, dismissible = false, onDismiss, ...props }, ref) => {
8
+ const isDismissible = dismissible && !!onDismiss;
9
+ // Chip doesn't own its own presence — the consumer's list state does, via onDismiss. So the exit
10
+ // animation is played HERE first (isDismissing), and the real onDismiss() only fires once it
11
+ // finishes (onAnimationComplete) — the consumer removes it from their array right as it's already
12
+ // fully faded out, not before, so there's no visual jump when the list actually reflows.
13
+ const [isDismissing, setIsDismissing] = React.useState(false);
14
+ const handleClick = e => {
15
+ onClick?.(e);
16
+ };
17
+ // `scale` (in animate below) is Motion's own animation-target key — a verify:props false positive,
18
+ // same category as Button.tsx's whileTap.
19
+ // MotionConfig scoped locally — Motion doesn't honor prefers-reduced-motion on its own (ADR-007).
20
+ return (_jsx(MotionConfig, { reducedMotion: "user", children: _jsxs(motion.span, { "data-helix-part": "chip-shell", "data-variant": variant, "data-size": size, "data-disabled": disabled ? 'true' : undefined, "data-dismissible": isDismissible ? 'true' : undefined, className: cn(className), animate: isDismissing ? { opacity: 0, scale: 0.85 } : { opacity: 1, scale: 1 }, transition: { duration: 0.15 }, onAnimationComplete: () => {
21
+ if (isDismissing)
22
+ onDismiss?.();
23
+ }, children: [_jsxs("button", { ref: ref, type: "button", "data-helix-part": "chip", "data-dismissible": isDismissible ? 'true' : undefined, "data-variant": variant, "data-size": size, "data-disabled": disabled ? 'true' : undefined, disabled: disabled, onClick: handleClick, ...props, children: [icon && (_jsx("span", { "data-helix-part": "chip-icon", children: _jsx(Icon, { icon: icon, size: 14 }) })), _jsx("span", { "data-helix-part": "chip-label", children: label }), iconEnd && (_jsx("span", { "data-helix-part": "chip-icon-end", children: _jsx(Icon, { icon: iconEnd, size: 14 }) }))] }), isDismissible && (_jsx("button", { type: "button", "data-helix-part": "chip-dismiss", "aria-label": `Dismiss ${label}`, disabled: disabled, onClick: e => {
24
+ e.stopPropagation();
25
+ setIsDismissing(true);
26
+ }, children: _jsx(Icon, { icon: IconX, size: 12 }) }))] }) }));
27
+ });
28
+ Chip.displayName = 'Chip';
29
+ export { Chip };
30
+ //# sourceMappingURL=Chip.js.map
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @helixds/react — agent note
3
+ * Before using Chip, read its contract: node_modules/@helixds/react/dist/contracts/Chip.json
4
+ * (every prop, which are required, when not to use it, the import line). Do not guess Helix props.
5
+ * Guide: node_modules/@helixds/react/AGENTS.md
6
+ */
7
+ import type * as React from 'react';
8
+ import type { HelixIconComponent } from '../Icon/index.js';
9
+ export type ChipVariant = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
10
+ export type ChipSize = 's' | 'm';
11
+ export interface ChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'disabled' | 'size' | 'type'> {
12
+ /** Semantic color variant. Default: 'neutral' */
13
+ variant?: ChipVariant;
14
+ /** Visual size. Default: 's' */
15
+ size?: ChipSize;
16
+ /** Disables interaction. */
17
+ disabled?: boolean;
18
+ /** Visible label. */
19
+ label: string;
20
+ /** Leading icon — a Tabler icon component, passed by reference (e.g. IconFilter). Always rendered at size=14 (stroke scales automatically via Icon). */
21
+ icon?: HelixIconComponent;
22
+ /** Trailing icon. Same fixed size as `icon`. */
23
+ iconEnd?: HelixIconComponent;
24
+ /** Primary press handler — React's own `onClick` (ADR-022). */
25
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
26
+ /** Shows a close button for removing the chip. */
27
+ dismissible?: boolean;
28
+ /** Dismiss handler fired from the close button. */
29
+ onDismiss?: () => void;
30
+ }
31
+ //# sourceMappingURL=Chip.types.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Chip.types.js.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @helixds/react — agent note
3
+ * Before using Chip, read its contract: node_modules/@helixds/react/dist/contracts/Chip.json
4
+ * (every prop, which are required, when not to use it, the import line). Do not guess Helix props.
5
+ * Guide: node_modules/@helixds/react/AGENTS.md
6
+ */
7
+ export { Chip } from './Chip.js';
8
+ export type { ChipProps, ChipVariant, ChipSize } from './Chip.types.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { Chip } from './Chip.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @helixds/react — agent note
3
+ * Before using ChipGroup, read its contract: node_modules/@helixds/react/dist/contracts/ChipGroup.json
4
+ * (every prop, which are required, when not to use it, the import line). Do not guess Helix props.
5
+ * Guide: node_modules/@helixds/react/AGENTS.md
6
+ */
7
+ import type { ChipGroupProps } from './ChipGroup.types.js';
8
+ export declare function ChipGroup({ label, options, size, disabled }: ChipGroupProps): import("react").JSX.Element;
9
+ export declare namespace ChipGroup {
10
+ var displayName: string;
11
+ }
12
+ //# sourceMappingURL=ChipGroup.d.ts.map
@@ -0,0 +1,4 @@
1
+ /** Machine-readable component documentation for the Helix ChipGroup. */
2
+ import type { ComponentDoc } from '../../lib/component-doc.js';
3
+ export declare const doc: ComponentDoc;
4
+ //# sourceMappingURL=ChipGroup.doc.d.ts.map
@@ -0,0 +1,31 @@
1
+ export const doc = {
2
+ name: 'ChipGroup',
3
+ purpose: 'Shows a small set of related chips side by side — categories, tags or applied filters — as one labelled group.',
4
+ contract: 'contracts/components/ChipGroup.json',
5
+ a11y: [
6
+ 'role="group" named by `label` (aria-label) — the label is never visible; the chips stand on their own.',
7
+ 'Each option renders a real `Chip`, so it inherits Chip\'s own a11y and CSS unchanged.',
8
+ 'Tab moves between chips.',
9
+ ],
10
+ variants: [],
11
+ sizes: ['s', 'm'],
12
+ tokens: [
13
+ { part: 'chip-group', label: 'gap.chips', token: '--helix-spacing-2xs', kind: 'space', meta: '4px, between chips and between wrapped rows — group-spacing.md' },
14
+ { part: 'chip-group', label: 'display', value: 'flex' },
15
+ { part: 'chip-group', label: 'flex-wrap', value: 'wrap' },
16
+ ],
17
+ features: [
18
+ 'label — required accessible name for the group (aria-label); never shown',
19
+ 'options — array of { value, label, icon?, disabled? }',
20
+ 'size — s (default) or m, applied to every chip',
21
+ 'disabled — disables every chip; individual options can also disable themselves',
22
+ 'Composes real `Chip` instances internally — no duplicated visuals or tokens.',
23
+ ],
24
+ examples: [
25
+ {
26
+ label: 'Default',
27
+ code: `<ChipGroup label="Status" options={[{ value: 'active', label: 'Active' }, { value: 'paused', label: 'Paused' }, { value: 'archived', label: 'Archived' }]} />`,
28
+ },
29
+ ],
30
+ };
31
+ //# sourceMappingURL=ChipGroup.doc.js.map
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Chip } from '../Chip/index.js';
3
+ export function ChipGroup({ label, options, size = 's', disabled = false }) {
4
+ // Just the chips side by side — no visible header, no selection. `label` names the group for assistive
5
+ // tech only. Each option is a real Chip, so it inherits Chip's own a11y, sizes and CSS unchanged.
6
+ return (_jsx("div", { role: "group", "aria-label": label, "data-helix-part": "chip-group", ...(disabled ? { 'data-disabled': '' } : {}), children: options.map(opt => (_jsx(Chip, { size: size, label: opt.label, ...(opt.icon ? { icon: opt.icon } : {}), disabled: opt.disabled || disabled }, opt.value))) }));
7
+ }
8
+ ChipGroup.displayName = 'ChipGroup';
9
+ //# sourceMappingURL=ChipGroup.js.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @helixds/react — agent note
3
+ * Before using ChipGroup, read its contract: node_modules/@helixds/react/dist/contracts/ChipGroup.json
4
+ * (every prop, which are required, when not to use it, the import line). Do not guess Helix props.
5
+ * Guide: node_modules/@helixds/react/AGENTS.md
6
+ */
7
+ import type { HelixIconComponent } from '../Icon/index.js';
8
+ import type { ChipSize } from '../Chip/index.js';
9
+ export interface ChipGroupOption {
10
+ /** Stable key for the chip. */
11
+ value: string;
12
+ label: string;
13
+ /** Leading icon — a Tabler icon component, passed by reference (e.g. IconFilter). */
14
+ icon?: HelixIconComponent;
15
+ disabled?: boolean;
16
+ }
17
+ export interface ChipGroupProps {
18
+ /** Accessible name of the group (aria-label) — never rendered visibly. */
19
+ label: string;
20
+ /** The chips. */
21
+ options: ChipGroupOption[];
22
+ /** Size of every chip in the group. Default: 's' */
23
+ size?: ChipSize;
24
+ /** Disables every chip in the group. */
25
+ disabled?: boolean;
26
+ }
27
+ //# sourceMappingURL=ChipGroup.types.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ChipGroup.types.js.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @helixds/react — agent note
3
+ * Before using ChipGroup, read its contract: node_modules/@helixds/react/dist/contracts/ChipGroup.json
4
+ * (every prop, which are required, when not to use it, the import line). Do not guess Helix props.
5
+ * Guide: node_modules/@helixds/react/AGENTS.md
6
+ */
7
+ export { ChipGroup } from './ChipGroup.js';
8
+ export type { ChipGroupProps, ChipGroupOption } from './ChipGroup.types.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { ChipGroup } from './ChipGroup.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @helixds/react — agent note
3
+ * Before using FAB, read its contract: node_modules/@helixds/react/dist/contracts/FAB.json
4
+ * (every prop, which are required, when not to use it, the import line). Do not guess Helix props.
5
+ * Guide: node_modules/@helixds/react/AGENTS.md
6
+ */
7
+ import * as React from 'react';
8
+ import type { FABProps } from './FAB.types.js';
9
+ declare const FAB: React.ForwardRefExoticComponent<FABProps & React.RefAttributes<HTMLButtonElement>>;
10
+ export { FAB };
11
+ //# sourceMappingURL=FAB.d.ts.map
@@ -0,0 +1,4 @@
1
+ /** Machine-readable component documentation for the Helix FAB. */
2
+ import type { ComponentDoc } from '../../lib/component-doc.js';
3
+ export declare const doc: ComponentDoc;
4
+ //# sourceMappingURL=FAB.doc.d.ts.map
@@ -0,0 +1,52 @@
1
+ export const doc = {
2
+ name: 'FAB',
3
+ purpose: 'A single, prominent floating action reachable from anywhere in the current view — optionally expanding into 1-3 closely related actions via a speed-dial.',
4
+ contract: 'contracts/components/FAB.json',
5
+ a11y: [
6
+ '`label` is required — it is the only accessible name the trigger has, rendered as aria-label.',
7
+ 'aria-expanded is set on the trigger whenever `actions` is provided, reflecting the speed-dial state.',
8
+ 'Escape collapses an expanded speed-dial; so does a press outside the FAB.',
9
+ 'Never the only way to reach an action — it is a shortcut, not the sole path (see contract neverUseFor).',
10
+ ],
11
+ variants: [],
12
+ sizes: ['m'],
13
+ tokens: [
14
+ { part: 'fab-root', label: 'fill.default', token: '--helix-fab-fill-default', kind: 'color' },
15
+ { part: 'fab-root', label: 'fill.hover', token: '--helix-fab-fill-hover', kind: 'color', state: 'hover' },
16
+ { part: 'fab-root', label: 'fill.press', token: '--helix-fab-fill-press', kind: 'color', state: 'press' },
17
+ { part: 'fab-root', label: 'icon', token: '--helix-fab-icon', kind: 'color' },
18
+ { part: 'fab-root', label: 'radius', token: '--helix-fab-radius', kind: 'radius', meta: 'semantic.radius.full — true circle' },
19
+ { part: 'fab-root', label: 'shadow', token: '--helix-fab-shadow', kind: 'shadow', meta: 'ADR-005 amendment — FAB is the first non-overlay component allowed a shadow' },
20
+ { part: 'fab-root', label: 'size.m', token: '--helix-fab-height', kind: 'space', size: 'm', meta: 'width = height (circle), single size — reuses semantic.size.xl (48px)' },
21
+ { part: 'fab-action', label: 'size', token: '--helix-fab-action-height', kind: 'space', meta: '36px, local exception — revealed actions are smaller than the trigger' },
22
+ { part: 'fab-action', label: 'fill', token: '--helix-fab-action-fill', kind: 'color', meta: 'White — same look as an IconButton secondary variant' },
23
+ { part: 'fab-action', label: 'border', token: '--helix-fab-action-border', kind: 'color' },
24
+ { part: 'fab-action', label: 'icon', token: '--helix-fab-action-icon', kind: 'color' },
25
+ ],
26
+ features: [
27
+ 'forwardRef — accepts a ref to the trigger <button>',
28
+ 'Speed-dial expand/collapse — actions fade/scale/slide in and out via Motion springs (ADR-007); see .ai/maps/patterns/motion-effects.md',
29
+ 'expanded/defaultExpanded/onExpandedChange — controlled or uncontrolled speed-dial state',
30
+ 'Escape and outside-press both collapse an expanded speed-dial',
31
+ 'The trigger icon rotates 45° while expanded — a plain "+" reads as a close affordance',
32
+ 'icon — a single required Tabler icon slot, rendered via Icon at 20px',
33
+ ],
34
+ examples: [
35
+ {
36
+ label: 'Plain FAB, no speed-dial',
37
+ code: `<FAB icon={IconPlus} label="Add" onClick={() => {}} />`,
38
+ },
39
+ {
40
+ label: 'Speed-dial with 2 actions',
41
+ code: `<FAB
42
+ icon={IconPlus}
43
+ label="Add"
44
+ actions={[
45
+ { icon: IconUserPlus, label: 'Add member', onClick: () => {} },
46
+ { icon: IconDownload, label: 'Export', onClick: () => {} },
47
+ ]}
48
+ />`,
49
+ },
50
+ ],
51
+ };
52
+ //# sourceMappingURL=FAB.doc.js.map