@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,193 @@
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
+
10
+ "neverUseFor": [
11
+ "Navigating between real pages or routes — use NavItem/Tab instead",
12
+ "Content that switches inside an associated panel — that's a tabs pattern (tablist/tab), not this",
13
+ "More than ~5 options, or options with long labels — use RadioGroup or Select instead"
14
+ ],
15
+
16
+ "rationale": "SegmentedControl is a hand-rolled radiogroup with roving tabindex (ADR-012) because no native element renders a segmented button set. It has one fixed size, semantic.size.s (24px), and switches modes with no associated panel — that's the line that separates it from tabs.",
17
+
18
+ "governance": {
19
+ "mayExtendLocally": [
20
+ "Choose up to ~5 short options and the selected value",
21
+ "Use icons inside options per usage"
22
+ ],
23
+ "mustEscalateToDS": [
24
+ "Adding sizes or more than ~5 options",
25
+ "Using it for routing or tab panels",
26
+ "Changing the keyboard model or indicator motion"
27
+ ]
28
+ },
29
+
30
+ "states": {
31
+ "intrinsic": ["hover", "focus"],
32
+ "authored": [
33
+ { "name": "disabled", "description": "The whole control, or an individual option, is non-interactive.", "aria": "disabled (native HTML attribute) on the option's button" }
34
+ ]
35
+ },
36
+
37
+ "anatomy": [
38
+ { "part": "segmented-control-root", "element": "div", "description": "Root element. `role=\"radiogroup\"`." },
39
+ { "part": "segmented-control-pill", "element": "span", "description": "The sliding highlight behind the checked option. Purely decorative — `aria-hidden`." },
40
+ { "part": "segmented-control-item", "element": "button", "description": "One option. `role=\"radio\"`, `aria-checked`, roving `tabIndex`." },
41
+ { "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." }
42
+ ],
43
+
44
+ "props": [
45
+ { "name": "label", "type": "string", "required": true, "description": "Accessible name for the group (`aria-label` on the root — this control has no visible legend)." },
46
+ { "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)." },
47
+ { "name": "value", "type": "string | undefined", "description": "Controlled selected value." },
48
+ { "name": "defaultValue", "type": "string | undefined", "description": "Uncontrolled initial value." },
49
+ { "name": "onChange", "type": "((value: string) => void) | undefined", "description": "Selection change handler." },
50
+ { "name": "disabled", "type": "boolean", "default": false, "description": "Disables every option in the group." },
51
+ { "name": "name", "type": "string | undefined", "description": "Native form field name, submitted via a hidden input mirroring the selected value. Auto-generated if omitted." },
52
+ { "name": "className", "type": "string | undefined", "description": "Additional className for the root element." }
53
+ ],
54
+
55
+ "sizing": {
56
+ "height": {
57
+ "mode": "fixed",
58
+ "values": { "default": 24 },
59
+ "unit": "px",
60
+ "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."
61
+ },
62
+ "width": {
63
+ "default": "hug"
64
+ }
65
+ },
66
+
67
+ "tokenPolicy": {
68
+ "allowed": ["color.fill", "color.text", "spacing", "radius", "fontSize", "fontWeight"],
69
+ "forbidden": ["primitive.color"]
70
+ },
71
+
72
+ "a11y": {
73
+ "role": "radiogroup (hand-rolled — root is a plain div, options are buttons, not native inputs; see ADR-012)",
74
+ "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)"],
75
+ "wcag": ["1.3.1 Info and Relationships", "2.1.1 Keyboard", "2.4.7 Focus Visible", "4.1.2 Name Role Value"],
76
+ "applied": {
77
+ "nativeElement": "div",
78
+ "focus": [
79
+ {
80
+ "part": "segmented-control-item",
81
+ "when": ":focus-visible",
82
+ "outline": "2px solid var(--helix-color-border-focus)",
83
+ "outline-offset": "2px"
84
+ }
85
+ ],
86
+ "aria": {
87
+ "segmented-control-root": {
88
+ "role": [
89
+ "radiogroup"
90
+ ],
91
+ "aria-label": [
92
+ "Mode",
93
+ "Period",
94
+ "View"
95
+ ]
96
+ },
97
+ "segmented-control-item": {
98
+ "role": [
99
+ "radio"
100
+ ],
101
+ "aria-checked": [
102
+ "true",
103
+ "false"
104
+ ]
105
+ },
106
+ "segmented-control-pill": {
107
+ "aria-hidden": [
108
+ "true"
109
+ ]
110
+ }
111
+ },
112
+ "announced": [
113
+ "radiogroup \"Mode\"",
114
+ "radiogroup \"Period\"",
115
+ "radiogroup \"View\""
116
+ ],
117
+ "contrast": {
118
+ "segmented-control-item-icon (icon)": {
119
+ "light": "6.92:1 — #475569 on #f1f5f9",
120
+ "dark": "5.71:1 — #94a3b8 on #1e293b"
121
+ }
122
+ },
123
+ "targetSize": {
124
+ "segmented-control-item": "smallest 32×24 px"
125
+ },
126
+ "motion": [
127
+ "CSS transitions/animations: neutralised by the global prefers-reduced-motion rule",
128
+ "Motion (JS): inside <MotionConfig reducedMotion=\"user\">"
129
+ ]
130
+ },
131
+ "results": {
132
+ "score": 100,
133
+ "meetsMinimum": true,
134
+ "checks": {
135
+ "contract": "pass",
136
+ "keys": "pass",
137
+ "focus-return": "n/a",
138
+ "keyboard": "pass",
139
+ "axe": "pass",
140
+ "contrast": "pass",
141
+ "focus-visible": "pass",
142
+ "target-size": "pass",
143
+ "reflow": "n/a",
144
+ "screen-reader": "pass",
145
+ "ai-visual": "pass",
146
+ "human": "pending"
147
+ },
148
+ "notScored": [
149
+ "ai-visual",
150
+ "human"
151
+ ],
152
+ "changed": "2026-10-12"
153
+ }
154
+ },
155
+
156
+ "figma": {
157
+ "childProps": {"options": [{"component": "SegmentedControlItem", "property": "label", "note": "each option's label (icon on icon-only)"}]},
158
+ "figmaOnly": {
159
+ "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" }
160
+ },
161
+ "states": ["default"],
162
+ "properties": [
163
+ {
164
+ "name": "checked",
165
+ "type": "VARIANT",
166
+ "values": ["false", "true"],
167
+ "codeProp": "value",
168
+ "description": "On SegmentedControlItem: the option whose value equals the group's `value`. Checked = the pill (fill/page) — in code a sliding motion.span."
169
+ },
170
+ { "name": "label", "type": "TEXT", "codeProp": "options[].label" },
171
+ { "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." },
172
+ { "name": "iconSwap", "type": "INSTANCE_SWAP", "codeProp": "options[].icon", "description": "On SegmentedControlItem: which icon (segmented-control-item-icon)." }
173
+ ],
174
+ "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.",
175
+ "propertyMap": {
176
+ "label": {
177
+ "codeType": "string",
178
+ "figma": [],
179
+ "approved": "2026-10-20",
180
+ "reason": "the group's aria-label — never drawn; the visible text is each item's own label (segmented-control-item-label)"
181
+ }
182
+ },
183
+ "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.",
184
+ "stories": {
185
+ "Default": "default",
186
+ "FourOptions": "options=4",
187
+ "Disabled": "disabled=true",
188
+ "WithDisabledOption": {"figma": "layout", "reason": "one SegmentedControlItem at state=disabled — drawn in the child (owner 2026-10-21)"},
189
+ "IconOnly": "icon.=true",
190
+ "KeyboardNavigation": {"figma": "layout", "reason": "keyboard focus is drawn on the SegmentedControlItem inside it (state=focus) — owner 2026-10-21"}
191
+ }
192
+ }
193
+ }
@@ -0,0 +1,241 @@
1
+ {
2
+ "$schema": "../component.schema.json",
3
+ "name": "Select",
4
+ "version": "1.1.0",
5
+ "status": "stable",
6
+
7
+ "purpose": "Lets users choose a single value from a predefined list.",
8
+ "import": "import { Select } from '@helixds/react';",
9
+
10
+ "neverUseFor": [
11
+ "Free-form text entry - use Input instead",
12
+ "Multiple simultaneous selections - use MultiSelect or CheckboxGroup",
13
+ "Large option catalogs with search - use Combobox"
14
+ ],
15
+
16
+ "rationale": "Select is a select-only combobox on a <button> plus the Menu listbox (ADR-013) instead of a native <select>, so the popup can be styled with tokens. It has one fixed 32px height (semantic.size.m) on purpose, so the trigger and its 32px Menu rows read as one aligned scale.",
17
+
18
+ "governance": {
19
+ "mayExtendLocally": [
20
+ "Provide the options, label, placeholder and helper text",
21
+ "Control the value and validation from product logic"
22
+ ],
23
+ "mustEscalateToDS": [
24
+ "Adding a size prop or new heights",
25
+ "Adding search or multi-select (use Combobox/MultiSelect)",
26
+ "Replacing the combobox/listbox keyboard model"
27
+ ]
28
+ },
29
+
30
+ "states": {
31
+ "intrinsic": ["hover", "focus"],
32
+ "authored": [
33
+ { "name": "invalid", "description": "The selected value fails validation.", "aria": "aria-invalid='true'" },
34
+ { "name": "disabled", "description": "The field is non-interactive.", "aria": "disabled (native)" },
35
+ { "name": "required", "description": "The field must have a value before form submission.", "aria": "aria-required='true'. Not natively enforced — see ADR-013's consequences; a hand-rolled trigger has no native constraint validation to inherit." },
36
+ { "name": "open", "description": "The popup listbox is showing.", "aria": "aria-expanded='true'/'false' on the trigger button" }
37
+ ]
38
+ },
39
+
40
+ "anatomy": [
41
+ { "part": "select-root", "element": "div", "description": "Layout wrapper for label, field, and messages." },
42
+ { "part": "select-label", "element": "label", "description": "Accessible label. Always rendered - visible or sr-only. Sits exactly 8px above the trigger — 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": "select-required", "element": "span", "optional": true, "description": "The required indicator (*) inside the label, the label color, 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": "select-wrapper", "element": "div", "description": "Positions the trigger button and chevron." },
45
+ { "part": "select-trigger", "element": "button", "description": "The visible control. Real DOM focus stays here at all times — see ADR-013. `role` is implicit (button); `aria-haspopup=\"listbox\"`, `aria-expanded`, `aria-controls`, `aria-activedescendant` wire it to the portaled Menu." },
46
+ { "part": "select-trigger-label", "element": "span", "description": "Wraps the trigger's own displayed text (selected option's label, or placeholder). Truncates with an ellipsis at a fixed/narrow consumer-set width instead of overflowing or forcing the trigger to grow — matches a native <select>'s own behavior." },
47
+ { "part": "select-chevron", "element": "slot", "description": "Trailing chevron icon. Flips via `aria-expanded` on the trigger, same scaleY treatment as Accordion's chevron (.ai/maps/patterns/expand-collapse-chevron.md) — now real, not the earlier documented exception, since the trigger's own React state knows whether it's open.", "optional": true },
48
+ { "part": "select-description", "element": "span", "description": "Helper text below the field. Sits exactly 8px below it — 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 },
49
+ { "part": "select-error", "element": "span", "description": "Error text shown when invalid=true.", "optional": true }
50
+ ],
51
+
52
+ "props": [
53
+ { "name": "label", "type": "string", "required": true, "description": "Visible or screen-reader-only label. Required for a11y." },
54
+ { "name": "options", "type": "(SelectOption | SelectOptionGroup)[]", "required": true, "description": "List of options and grouped options. Each option: { value, label, labelEnd?, disabled? } — labelEnd is short secondary text (a value, count or percentage) shown at the end of the option in the list; the trigger shows only the label." },
55
+ { "name": "value", "type": "string | undefined", "description": "Controlled selected value." },
56
+ { "name": "defaultValue", "type": "string | undefined", "description": "Uncontrolled initial value." },
57
+ { "name": "onChange", "type": "(value: string) => void | undefined", "description": "Value change handler." },
58
+ { "name": "placeholder", "type": "string | undefined", "description": "Placeholder option shown before a selection." },
59
+ { "name": "description", "type": "string | undefined", "description": "Helper text shown below the field." },
60
+ { "name": "errorMessage", "type": "string | undefined", "description": "Error text shown when invalid=true." },
61
+ { "name": "invalid", "type": "boolean", "default": false, "description": "Shows error styling and message." },
62
+ { "name": "disabled", "type": "boolean", "default": false, "description": "Non-interactive state." },
63
+ { "name": "required", "type": "boolean", "default": false, "description": "Marks field as required. Enforced natively: an invisible form input carries the value, so an empty required Select blocks form submit exactly like a native <select> (the browser's validation message points at the field and focus lands on the trigger)." },
64
+ { "name": "fullWidth", "type": "boolean", "default": false, "description": "Expands to container width." },
65
+ { "name": "hideLabel", "type": "boolean", "default": false, "description": "Hides the label visually but keeps it accessible." },
66
+ { "name": "id", "type": "string | undefined", "description": "Optional field id override." },
67
+ { "name": "name", "type": "string | undefined", "description": "Native form field name." },
68
+ { "name": "className", "type": "string | undefined", "description": "Additional className for the root. Use it to set a min-width so the trigger doesn't visibly resize when a shorter/longer option is selected — Select has no built-in minimum, per CLAUDE.md's min-width/max-width policy (a consumer/pattern decision, not a system token)." }
69
+ ],
70
+
71
+ "sizing": {
72
+ "height": {
73
+ "mode": "fixed",
74
+ "values": { "default": 32 },
75
+ "unit": "px",
76
+ "note": "One fixed size only, deliberately — no size prop. Matches semantic.size.m, the same height Input/Textarea's own 'm' field uses, so a Select trigger and its Menu items read as one continuous, aligned scale (see ADR-013's amendment)."
77
+ },
78
+ "width": {"default": "fixed", "value": 320, "unit": "px", "modes": {"fixed": "320px — every form field shares it and never grows or shrinks with its content (owner's rule 2026-10-21, form-field pattern); max-width 100% so a narrow container can still hold it.", "fill": "fullWidth=true: 100% of the container (Figma: drawn at 600px, the field and its popup on Fill so they stretch)."}, "exceptions": "A field that must be narrower (a number stepper, a short code) says so here, with its width and why — the only way off 320px."}
79
+ },
80
+
81
+ "tokenPolicy": {
82
+ "allowed": ["color.fill", "color.text", "color.border", "spacing", "radius", "fontSize"],
83
+ "forbidden": ["primitive.color"]
84
+ },
85
+
86
+ "a11y": {
87
+ "role": "combobox on the <button> trigger (WAI-ARIA select-only combobox) + hand-rolled listbox popup (Menu) — see ADR-013. Not a native <select>.",
88
+ "keyboardNav": ["Arrow Up/Down - opens the menu, or moves the highlighted option while open", "Home/End - jump to first/last enabled option while open", "Enter/Space - open the menu, or confirm the highlighted option while open", "Escape - close without changing the selection", "Tab - move focus (closes the menu first)"],
89
+ "wcag": ["1.3.1 Info and Relationships", "1.4.3 Contrast (AA)", "2.1.1 Keyboard", "2.4.7 Focus Visible", "4.1.2 Name Role Value"],
90
+ "applied": {
91
+ "nativeElement": "div",
92
+ "innerComponents": [
93
+ "Menu"
94
+ ],
95
+ "focus": [
96
+ {
97
+ "part": "select-wrapper",
98
+ "when": ":focus-visible",
99
+ "border-color": "var(--helix-select-border-hover)"
100
+ },
101
+ {
102
+ "part": "select-trigger",
103
+ "when": ":focus-visible",
104
+ "box-shadow": "0 0 0 3px color-mix(in srgb, var(--helix-select-border-focus) 20%, transparent)",
105
+ "border-color": "var(--helix-select-border-focus)"
106
+ }
107
+ ],
108
+ "aria": {
109
+ "select-trigger": {
110
+ "role": [
111
+ "combobox"
112
+ ],
113
+ "aria-haspopup": [
114
+ "listbox"
115
+ ],
116
+ "aria-expanded": [
117
+ "false",
118
+ "true"
119
+ ],
120
+ "aria-invalid": [
121
+ "true"
122
+ ],
123
+ "aria-describedby": [
124
+ "(id)"
125
+ ],
126
+ "aria-controls": [
127
+ "(id)"
128
+ ],
129
+ "aria-required": [
130
+ "true"
131
+ ]
132
+ },
133
+ "select-chevron": {
134
+ "aria-hidden": [
135
+ "true"
136
+ ]
137
+ },
138
+ "select-error": {
139
+ "role": [
140
+ "alert"
141
+ ]
142
+ },
143
+ "select-required": {
144
+ "aria-hidden": [
145
+ "true"
146
+ ]
147
+ }
148
+ },
149
+ "announced": [
150
+ "combobox \"Role\": Choose a role…",
151
+ "combobox \"Role\" [disabled]: Designer",
152
+ "combobox \"Role\" [invalid]: Choose a role…",
153
+ "combobox \"Role\": Engineer",
154
+ "combobox \"Role\" [expanded]"
155
+ ],
156
+ "contrast": {
157
+ "select-label": {
158
+ "light": "17.85:1 — #0f172a on #ffffff",
159
+ "dark": "16.29:1 — #f1f5f9 on #0f172a"
160
+ },
161
+ "select-trigger-label": {
162
+ "light": "4.75:1 — #64748b on #ffffff",
163
+ "dark": "6.96:1 — #94a3b8 on #0f172a"
164
+ },
165
+ "select-error": {
166
+ "light": "6.47:1 — #b91c1c on #ffffff",
167
+ "dark": "12.65:1 — #fecdd3 on #0f172a"
168
+ },
169
+ "select-description": {
170
+ "light": "7.57:1 — #475569 on #ffffff",
171
+ "dark": "6.96:1 — #94a3b8 on #0f172a"
172
+ }
173
+ },
174
+ "targetSize": {
175
+ "select-trigger": "smallest 60×32 px"
176
+ },
177
+ "motion": [
178
+ "CSS transitions/animations: neutralised by the global prefers-reduced-motion rule"
179
+ ]
180
+ },
181
+ "results": {
182
+ "score": 100,
183
+ "meetsMinimum": true,
184
+ "checks": {
185
+ "contract": "pass",
186
+ "keys": "pass",
187
+ "focus-return": "pass",
188
+ "keyboard": "pass",
189
+ "axe": "pass",
190
+ "contrast": "pass",
191
+ "focus-visible": "pass",
192
+ "target-size": "pass",
193
+ "reflow": "n/a",
194
+ "screen-reader": "pass",
195
+ "ai-visual": "pass",
196
+ "human": "pending"
197
+ },
198
+ "notScored": [
199
+ "ai-visual",
200
+ "human"
201
+ ],
202
+ "changed": "2026-10-12"
203
+ }
204
+ },
205
+
206
+ "figma": {
207
+ "states": ["default", "hover", "focus", "open"],
208
+ "properties": [
209
+ {
210
+ "name": "state",
211
+ "type": "VARIANT",
212
+ "values": ["default", "hover", "focus", "open"],
213
+ "figmaOnly": true,
214
+ "description": "Figma-only axis: hover/focus are CSS pseudo-classes, open is the listbox showing (aria-expanded). invalid, disabled and the secondary toggles are their own variants (contracts/figma-conversion.json, pattern form-field)."
215
+ }
216
+ ],
217
+ "propertyMap": {
218
+ "value": {
219
+ "codeType": "string | undefined",
220
+ "figma": [{"name": "value.", "type": "VARIANT", "values": ["empty", "selected"]}, {"name": "value", "type": "TEXT"}],
221
+ "approved": "2026-10-20",
222
+ "reason": "the trigger shows either the placeholder (empty) or the chosen option (selected) in one text layer, which Figma can bind to one text property only — so value picks the look and valueText is the chosen label; selected is drawn once (owner-approved option A)"
223
+ }
224
+ },
225
+ "structure": "select-root (8px gap) > select-label (text + select-required), select-wrapper > select-trigger (hugs its text like code: select-trigger-label + select-chevron; open uses an unrotated ChevronUp, code flips the chevron), select-description, select-error. state=open holds the listbox as a nested Menu instance named menu (multiple=false, options=5, exposed so its options 2–7 are picked from the Select's panel): absolute, 4px below select-trigger at its width, 150px minimum, like Menu.tsx; its MenuItems read Designer, Engineer, Product Manager, Tech Lead, Other (Storybook Default), none selected.",
226
+ "variantCombinations": "40 variants (2026-10-21): invalid × state default/hover/focus/open = 8, disabled = 1, value=selected once (default, valid, enabled) = 1 — each of those 10 drawn with fullWidth (320px) × hideLabel false/true = 40 (variants.secondary, owner's decision 2026-10-21). The option count is the nested Menu's options property, not a Select variant. value=empty binds the trigger label to placeholder, value=selected to valueText.",
227
+ "stories": {
228
+ "Default": "value.=empty",
229
+ "Controlled": "value.=selected",
230
+ "WithGroups": "state=open",
231
+ "WithLabelEnd": "state=open",
232
+ "WithDescription": "description.=true",
233
+ "Invalid": "invalid=true, errorMessage.=true",
234
+ "Disabled": "disabled=true, value.=selected",
235
+ "MinimumWidth": {"figma": null, "reason": "min-width behaviour — same look as Default", "approved": "2026-10-21"},
236
+ "Required": "required=true",
237
+ "Open": "state=open",
238
+ "KeyboardNavigation": {"figma": "state=focus", "reason": "keyboard focus — the focus ring is drawn in Figma (owner 2026-10-21: focus states are drawn)"}
239
+ }
240
+ }
241
+ }
@@ -0,0 +1,138 @@
1
+ {
2
+ "$schema": "../component.schema.json",
3
+ "name": "SideNav",
4
+ "version": "1.0.0",
5
+ "status": "stable",
6
+
7
+ "purpose": "The persistent vertical navigation rail of an app shell — brand mark, primary nav entries, and a footer slot for the current user.",
8
+ "import": "import { SideNav } from '@helixds/react';",
9
+
10
+ "neverUseFor": [
11
+ "In-page tabbed navigation — use Tabs",
12
+ "Breadcrumbs — SideNav is persistent app-level nav, breadcrumbs are per-page wayfinding",
13
+ "Anything other than NavItem as its direct nav entries — don't put a Button or a plain <a> among the items"
14
+ ],
15
+
16
+ "rationale": "SideNav is the persistent <nav> rail of the app shell with a fixed 224px chrome width — a standalone dimension documented in component-token-exceptions.md. It accepts only NavItems as entries so every app's navigation shares the same link semantics and active styling.",
17
+
18
+ "governance": {
19
+ "mayExtendLocally": [
20
+ "Choose the brand mark, NavItems and footer content",
21
+ "Group NavItems into product-specific sections"
22
+ ],
23
+ "mustEscalateToDS": [
24
+ "Changing the 224px width or adding a collapsed/mini mode",
25
+ "Putting Buttons or plain links among the nav entries",
26
+ "Adding nested multi-level navigation"
27
+ ]
28
+ },
29
+
30
+ "states": {
31
+ "intrinsic": [],
32
+ "authored": []
33
+ },
34
+
35
+ "anatomy": [
36
+ { "part": "side-nav-root", "element": "nav", "description": "Root — always a native <nav>, fixed width." },
37
+ { "part": "side-nav-brand", "element": "div", "description": "Logo/product-name slot at the top.", "optional": true },
38
+ { "part": "side-nav-items", "element": "div", "description": "Wraps the NavItem list (children)." },
39
+ { "part": "side-nav-footer", "element": "div", "description": "Slot at the bottom — typically the current user row.", "optional": true }
40
+ ],
41
+
42
+ "props": [
43
+ { "name": "brand", "type": "React.ReactNode | undefined", "description": "Logo/product-name content, rendered at the top." },
44
+ { "name": "children", "type": "React.ReactNode", "required": true, "description": "The nav entries — a list of NavItem." },
45
+ { "name": "footer", "type": "React.ReactNode | undefined", "description": "Content pinned to the bottom — typically the current user." },
46
+ { "name": "className", "type": "string | undefined", "description": "Additional className for the root." }
47
+ ],
48
+
49
+ "sizing": {
50
+ "width": {
51
+ "default": "fixed",
52
+ "note": "224px, a standalone chrome dimension — no matching primitive/spacing/size rung, documented in component-token-exceptions.md."
53
+ }
54
+ },
55
+
56
+ "tokenPolicy": {
57
+ "allowed": ["color.fill", "color.border", "spacing"],
58
+ "forbidden": ["primitive.color"]
59
+ },
60
+
61
+ "a11y": {
62
+ "role": "navigation (implicit from <nav>)",
63
+ "wcag": ["1.3.1 Info and Relationships", "2.4.1 Bypass Blocks"],
64
+ "applied": {
65
+ "nativeElement": "nav",
66
+ "innerComponents": [
67
+ "NavItem"
68
+ ],
69
+ "focus": [
70
+ {
71
+ "part": "(its inner controls)",
72
+ "delegatedTo": [
73
+ "NavItem"
74
+ ],
75
+ "note": "focus is drawn by NavItem — see their a11y.applied.focus"
76
+ }
77
+ ],
78
+ "aria": {},
79
+ "announced": [
80
+ "navigation"
81
+ ],
82
+ "contrast": {
83
+ "side-nav-brand": {
84
+ "light": "17.85:1 — #0f172a on #ffffff",
85
+ "dark": "16.29:1 — #f1f5f9 on #0f172a"
86
+ },
87
+ "side-nav-footer": {
88
+ "light": "4.75:1 — #64748b on #ffffff",
89
+ "dark": "6.96:1 — #94a3b8 on #0f172a"
90
+ },
91
+ "side-nav-brand (icon)": {
92
+ "light": "16.4:1 — #0f172a on #eff6ff",
93
+ "dark": "9.45:1 — #f1f5f9 on #1e3a8a"
94
+ }
95
+ },
96
+ "targetSize": {},
97
+ "motion": [
98
+ "CSS transitions/animations: neutralised by the global prefers-reduced-motion rule"
99
+ ]
100
+ },
101
+ "results": {
102
+ "score": 100,
103
+ "meetsMinimum": true,
104
+ "checks": {
105
+ "contract": "pass",
106
+ "keys": "n/a",
107
+ "focus-return": "n/a",
108
+ "keyboard": "n/a",
109
+ "axe": "pass",
110
+ "contrast": "pass",
111
+ "focus-visible": "pass",
112
+ "target-size": "pass",
113
+ "reflow": "pass",
114
+ "screen-reader": "pass",
115
+ "ai-visual": "pass",
116
+ "human": "pending"
117
+ },
118
+ "notScored": [
119
+ "ai-visual",
120
+ "human"
121
+ ],
122
+ "changed": "2026-10-12"
123
+ }
124
+ },
125
+
126
+ "figma": {
127
+ "childProps": {"children": [{"component": "NavItem", "property": "label", "note": "each link"}]},
128
+ "states": ["default"],
129
+ "properties": [
130
+ { "name": "brand", "type": "BOOLEAN", "codeProp": "brand", "description": "Show/hide part: the brand row carries its own 12px bottom (code's margin-bottom), so hiding it leaves the items where the root's 12px top puts them." },
131
+ { "name": "footer", "type": "BOOLEAN", "codeProp": "footer", "description": "Show/hide part: 8px margin + top border + 8px padding all live on the footer." }
132
+ ],
133
+ "structure": "No variants — a single component: side-nav-brand > brand-content, side-nav-items (NavItem instances, fills the height), side-nav-footer > footer-content (Avatar instance + name/role).",
134
+ "stories": {
135
+ "Default": "brand=true, footer=true"
136
+ }
137
+ }
138
+ }