@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.
- package/AGENTS.md +292 -0
- package/LICENSE +21 -0
- package/README.md +49 -2
- package/dist/components/Accordion/Accordion.d.ts +14 -0
- package/dist/components/Accordion/Accordion.doc.d.ts +4 -0
- package/dist/components/Accordion/Accordion.doc.js +27 -0
- package/dist/components/Accordion/Accordion.js +76 -0
- package/dist/components/Accordion/Accordion.types.d.ts +24 -0
- package/dist/components/Accordion/Accordion.types.js +2 -0
- package/dist/components/Accordion/index.d.ts +9 -0
- package/dist/components/Accordion/index.js +2 -0
- package/dist/components/Avatar/Avatar.d.ts +14 -0
- package/dist/components/Avatar/Avatar.doc.d.ts +4 -0
- package/dist/components/Avatar/Avatar.doc.js +34 -0
- package/dist/components/Avatar/Avatar.js +14 -0
- package/dist/components/Avatar/Avatar.types.d.ts +20 -0
- package/dist/components/Avatar/Avatar.types.js +2 -0
- package/dist/components/Avatar/index.d.ts +9 -0
- package/dist/components/Avatar/index.js +2 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +14 -0
- package/dist/components/AvatarGroup/AvatarGroup.doc.d.ts +4 -0
- package/dist/components/AvatarGroup/AvatarGroup.doc.js +30 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +15 -0
- package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +21 -0
- package/dist/components/AvatarGroup/AvatarGroup.types.js +2 -0
- package/dist/components/AvatarGroup/index.d.ts +9 -0
- package/dist/components/AvatarGroup/index.js +2 -0
- package/dist/components/Badge/Badge.d.ts +16 -0
- package/dist/components/Badge/Badge.doc.d.ts +4 -0
- package/dist/components/Badge/Badge.doc.js +69 -0
- package/dist/components/Badge/Badge.js +23 -0
- package/dist/components/Badge/Badge.types.d.ts +22 -0
- package/dist/components/Badge/Badge.types.js +2 -0
- package/dist/components/Badge/index.d.ts +9 -0
- package/dist/components/Badge/index.js +2 -0
- package/dist/components/Button/Button.d.ts +11 -0
- package/dist/components/Button/Button.doc.d.ts +4 -0
- package/dist/components/Button/Button.doc.js +98 -0
- package/dist/components/Button/Button.js +80 -0
- package/dist/components/Button/Button.types.d.ts +29 -0
- package/dist/components/Button/Button.types.js +2 -0
- package/dist/components/Button/index.d.ts +9 -0
- package/dist/components/Button/index.js +2 -0
- package/dist/components/Card/Card.d.ts +14 -0
- package/dist/components/Card/Card.doc.d.ts +4 -0
- package/dist/components/Card/Card.doc.js +44 -0
- package/dist/components/Card/Card.js +9 -0
- package/dist/components/Card/Card.types.d.ts +19 -0
- package/dist/components/Card/Card.types.js +2 -0
- package/dist/components/Card/index.d.ts +9 -0
- package/dist/components/Card/index.js +2 -0
- package/dist/components/Chart/Chart.d.ts +14 -0
- package/dist/components/Chart/Chart.doc.d.ts +4 -0
- package/dist/components/Chart/Chart.doc.js +49 -0
- package/dist/components/Chart/Chart.js +184 -0
- package/dist/components/Chart/Chart.types.d.ts +21 -0
- package/dist/components/Chart/Chart.types.js +2 -0
- package/dist/components/Chart/index.d.ts +9 -0
- package/dist/components/Chart/index.js +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +12 -0
- package/dist/components/Checkbox/Checkbox.doc.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.doc.js +54 -0
- package/dist/components/Checkbox/Checkbox.js +23 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +22 -0
- package/dist/components/Checkbox/Checkbox.types.js +2 -0
- package/dist/components/Checkbox/index.d.ts +9 -0
- package/dist/components/Checkbox/index.js +2 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +13 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.doc.d.ts +4 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.doc.js +56 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js +27 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.types.d.ts +28 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.types.js +2 -0
- package/dist/components/CheckboxGroup/index.d.ts +9 -0
- package/dist/components/CheckboxGroup/index.js +2 -0
- package/dist/components/Chip/Chip.d.ts +11 -0
- package/dist/components/Chip/Chip.doc.d.ts +4 -0
- package/dist/components/Chip/Chip.doc.js +105 -0
- package/dist/components/Chip/Chip.js +30 -0
- package/dist/components/Chip/Chip.types.d.ts +31 -0
- package/dist/components/Chip/Chip.types.js +2 -0
- package/dist/components/Chip/index.d.ts +9 -0
- package/dist/components/Chip/index.js +2 -0
- package/dist/components/ChipGroup/ChipGroup.d.ts +12 -0
- package/dist/components/ChipGroup/ChipGroup.doc.d.ts +4 -0
- package/dist/components/ChipGroup/ChipGroup.doc.js +31 -0
- package/dist/components/ChipGroup/ChipGroup.js +9 -0
- package/dist/components/ChipGroup/ChipGroup.types.d.ts +27 -0
- package/dist/components/ChipGroup/ChipGroup.types.js +2 -0
- package/dist/components/ChipGroup/index.d.ts +9 -0
- package/dist/components/ChipGroup/index.js +2 -0
- package/dist/components/FAB/FAB.d.ts +11 -0
- package/dist/components/FAB/FAB.doc.d.ts +4 -0
- package/dist/components/FAB/FAB.doc.js +52 -0
- package/dist/components/FAB/FAB.js +133 -0
- package/dist/components/FAB/FAB.types.d.ts +37 -0
- package/dist/components/FAB/FAB.types.js +2 -0
- package/dist/components/FAB/index.d.ts +9 -0
- package/dist/components/FAB/index.js +2 -0
- package/dist/components/Icon/Icon.d.ts +14 -0
- package/dist/components/Icon/Icon.doc.d.ts +4 -0
- package/dist/components/Icon/Icon.doc.js +38 -0
- package/dist/components/Icon/Icon.js +15 -0
- package/dist/components/Icon/Icon.types.d.ts +47 -0
- package/dist/components/Icon/Icon.types.js +2 -0
- package/dist/components/Icon/createIconAdapter.d.ts +24 -0
- package/dist/components/Icon/createIconAdapter.js +28 -0
- package/dist/components/Icon/iconStroke.d.ts +20 -0
- package/dist/components/Icon/iconStroke.js +54 -0
- package/dist/components/Icon/index.d.ts +12 -0
- package/dist/components/Icon/index.js +4 -0
- package/dist/components/IconButton/IconButton.d.ts +11 -0
- package/dist/components/IconButton/IconButton.doc.d.ts +4 -0
- package/dist/components/IconButton/IconButton.doc.js +76 -0
- package/dist/components/IconButton/IconButton.js +20 -0
- package/dist/components/IconButton/IconButton.types.d.ts +25 -0
- package/dist/components/IconButton/IconButton.types.js +2 -0
- package/dist/components/IconButton/index.d.ts +9 -0
- package/dist/components/IconButton/index.js +2 -0
- package/dist/components/Input/Input.d.ts +11 -0
- package/dist/components/Input/Input.doc.d.ts +4 -0
- package/dist/components/Input/Input.doc.js +68 -0
- package/dist/components/Input/Input.js +48 -0
- package/dist/components/Input/Input.types.d.ts +36 -0
- package/dist/components/Input/Input.types.js +2 -0
- package/dist/components/Input/index.d.ts +9 -0
- package/dist/components/Input/index.js +2 -0
- package/dist/components/Menu/Menu.d.ts +14 -0
- package/dist/components/Menu/Menu.doc.d.ts +4 -0
- package/dist/components/Menu/Menu.doc.js +46 -0
- package/dist/components/Menu/Menu.js +105 -0
- package/dist/components/Menu/Menu.types.d.ts +34 -0
- package/dist/components/Menu/Menu.types.js +2 -0
- package/dist/components/Menu/index.d.ts +9 -0
- package/dist/components/Menu/index.js +2 -0
- package/dist/components/Modal/Modal.d.ts +14 -0
- package/dist/components/Modal/Modal.doc.d.ts +4 -0
- package/dist/components/Modal/Modal.doc.js +52 -0
- package/dist/components/Modal/Modal.js +30 -0
- package/dist/components/Modal/Modal.types.d.ts +36 -0
- package/dist/components/Modal/Modal.types.js +2 -0
- package/dist/components/Modal/index.d.ts +9 -0
- package/dist/components/Modal/index.js +2 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +17 -0
- package/dist/components/MultiSelect/MultiSelect.doc.d.ts +4 -0
- package/dist/components/MultiSelect/MultiSelect.doc.js +37 -0
- package/dist/components/MultiSelect/MultiSelect.js +165 -0
- package/dist/components/MultiSelect/MultiSelect.types.d.ts +50 -0
- package/dist/components/MultiSelect/MultiSelect.types.js +2 -0
- package/dist/components/MultiSelect/index.d.ts +9 -0
- package/dist/components/MultiSelect/index.js +2 -0
- package/dist/components/NavItem/NavItem.d.ts +14 -0
- package/dist/components/NavItem/NavItem.doc.d.ts +4 -0
- package/dist/components/NavItem/NavItem.doc.js +31 -0
- package/dist/components/NavItem/NavItem.js +21 -0
- package/dist/components/NavItem/NavItem.types.d.ts +20 -0
- package/dist/components/NavItem/NavItem.types.js +2 -0
- package/dist/components/NavItem/index.d.ts +9 -0
- package/dist/components/NavItem/index.js +2 -0
- package/dist/components/RadioButton/RadioButton.d.ts +14 -0
- package/dist/components/RadioButton/RadioButton.doc.d.ts +4 -0
- package/dist/components/RadioButton/RadioButton.doc.js +35 -0
- package/dist/components/RadioButton/RadioButton.js +15 -0
- package/dist/components/RadioButton/RadioButton.types.d.ts +33 -0
- package/dist/components/RadioButton/RadioButton.types.js +2 -0
- package/dist/components/RadioButton/index.d.ts +9 -0
- package/dist/components/RadioButton/index.js +2 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +12 -0
- package/dist/components/RadioGroup/RadioGroup.doc.d.ts +4 -0
- package/dist/components/RadioGroup/RadioGroup.doc.js +80 -0
- package/dist/components/RadioGroup/RadioGroup.js +19 -0
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +28 -0
- package/dist/components/RadioGroup/RadioGroup.types.js +2 -0
- package/dist/components/RadioGroup/index.d.ts +9 -0
- package/dist/components/RadioGroup/index.js +2 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +13 -0
- package/dist/components/SegmentedControl/SegmentedControl.doc.d.ts +4 -0
- package/dist/components/SegmentedControl/SegmentedControl.doc.js +50 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +64 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.d.ts +26 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.js +2 -0
- package/dist/components/SegmentedControl/index.d.ts +9 -0
- package/dist/components/SegmentedControl/index.js +2 -0
- package/dist/components/Select/Select.d.ts +13 -0
- package/dist/components/Select/Select.doc.d.ts +4 -0
- package/dist/components/Select/Select.doc.js +66 -0
- package/dist/components/Select/Select.js +138 -0
- package/dist/components/Select/Select.types.d.ts +36 -0
- package/dist/components/Select/Select.types.js +2 -0
- package/dist/components/Select/index.d.ts +9 -0
- package/dist/components/Select/index.js +2 -0
- package/dist/components/SidePanel/SidePanel.d.ts +14 -0
- package/dist/components/SidePanel/SidePanel.doc.d.ts +4 -0
- package/dist/components/SidePanel/SidePanel.doc.js +29 -0
- package/dist/components/SidePanel/SidePanel.js +19 -0
- package/dist/components/SidePanel/SidePanel.types.d.ts +28 -0
- package/dist/components/SidePanel/SidePanel.types.js +2 -0
- package/dist/components/SidePanel/index.d.ts +9 -0
- package/dist/components/SidePanel/index.js +2 -0
- package/dist/components/Switch/Switch.d.ts +13 -0
- package/dist/components/Switch/Switch.doc.d.ts +4 -0
- package/dist/components/Switch/Switch.doc.js +56 -0
- package/dist/components/Switch/Switch.js +45 -0
- package/dist/components/Switch/Switch.types.d.ts +21 -0
- package/dist/components/Switch/Switch.types.js +2 -0
- package/dist/components/Switch/index.d.ts +9 -0
- package/dist/components/Switch/index.js +2 -0
- package/dist/components/Table/Table.d.ts +34 -0
- package/dist/components/Table/Table.doc.d.ts +4 -0
- package/dist/components/Table/Table.doc.js +48 -0
- package/dist/components/Table/Table.js +17 -0
- package/dist/components/Table/Table.types.d.ts +30 -0
- package/dist/components/Table/Table.types.js +2 -0
- package/dist/components/Table/index.d.ts +9 -0
- package/dist/components/Table/index.js +2 -0
- package/dist/components/Textarea/Textarea.d.ts +9 -0
- package/dist/components/Textarea/Textarea.doc.d.ts +4 -0
- package/dist/components/Textarea/Textarea.doc.js +60 -0
- package/dist/components/Textarea/Textarea.js +24 -0
- package/dist/components/Textarea/Textarea.types.d.ts +22 -0
- package/dist/components/Textarea/Textarea.types.js +2 -0
- package/dist/components/Textarea/index.d.ts +9 -0
- package/dist/components/Textarea/index.js +2 -0
- package/dist/components/Toast/Toast.d.ts +16 -0
- package/dist/components/Toast/Toast.doc.d.ts +4 -0
- package/dist/components/Toast/Toast.doc.js +37 -0
- package/dist/components/Toast/Toast.js +134 -0
- package/dist/components/Toast/Toast.types.d.ts +11 -0
- package/dist/components/Toast/Toast.types.js +2 -0
- package/dist/components/Toast/index.d.ts +10 -0
- package/dist/components/Toast/index.js +2 -0
- package/dist/components/Toast/toastStore.d.ts +36 -0
- package/dist/components/Toast/toastStore.js +57 -0
- package/dist/components/Tooltip/Tooltip.d.ts +14 -0
- package/dist/components/Tooltip/Tooltip.doc.d.ts +4 -0
- package/dist/components/Tooltip/Tooltip.doc.js +33 -0
- package/dist/components/Tooltip/Tooltip.js +105 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts +21 -0
- package/dist/components/Tooltip/Tooltip.types.js +2 -0
- package/dist/components/Tooltip/index.d.ts +9 -0
- package/dist/components/Tooltip/index.js +2 -0
- package/dist/contracts/Accordion.json +174 -0
- package/dist/contracts/AppShell.json +118 -0
- package/dist/contracts/Avatar.json +157 -0
- package/dist/contracts/AvatarGroup.json +169 -0
- package/dist/contracts/Badge.json +212 -0
- package/dist/contracts/Button.json +295 -0
- package/dist/contracts/Card.json +125 -0
- package/dist/contracts/Chart.json +167 -0
- package/dist/contracts/Checkbox.json +333 -0
- package/dist/contracts/CheckboxGroup.json +200 -0
- package/dist/contracts/Chip.json +320 -0
- package/dist/contracts/ChipGroup.json +182 -0
- package/dist/contracts/FAB.json +215 -0
- package/dist/contracts/Icon.json +306 -0
- package/dist/contracts/IconButton.json +213 -0
- package/dist/contracts/Input.json +400 -0
- package/dist/contracts/Menu.json +197 -0
- package/dist/contracts/Modal.json +192 -0
- package/dist/contracts/MultiSelect.json +244 -0
- package/dist/contracts/NavItem.json +148 -0
- package/dist/contracts/PageHeader.json +134 -0
- package/dist/contracts/RadioButton.json +202 -0
- package/dist/contracts/RadioGroup.json +228 -0
- package/dist/contracts/SegmentedControl.json +193 -0
- package/dist/contracts/Select.json +241 -0
- package/dist/contracts/SideNav.json +138 -0
- package/dist/contracts/SidePanel.json +153 -0
- package/dist/contracts/Switch.json +201 -0
- package/dist/contracts/Table.json +130 -0
- package/dist/contracts/Textarea.json +353 -0
- package/dist/contracts/Toast.json +186 -0
- package/dist/contracts/Tooltip.json +168 -0
- package/dist/contracts/TopBar.json +127 -0
- package/dist/contracts/manifest.json +675 -0
- package/dist/index.d.ts +109 -0
- package/dist/index.js +73 -0
- package/dist/layout/AppShell/AppShell.d.ts +14 -0
- package/dist/layout/AppShell/AppShell.doc.d.ts +4 -0
- package/dist/layout/AppShell/AppShell.doc.js +27 -0
- package/dist/layout/AppShell/AppShell.js +9 -0
- package/dist/layout/AppShell/AppShell.types.d.ts +18 -0
- package/dist/layout/AppShell/AppShell.types.js +2 -0
- package/dist/layout/AppShell/index.d.ts +9 -0
- package/dist/layout/AppShell/index.js +2 -0
- package/dist/layout/PageHeader/PageHeader.d.ts +14 -0
- package/dist/layout/PageHeader/PageHeader.doc.d.ts +4 -0
- package/dist/layout/PageHeader/PageHeader.doc.js +30 -0
- package/dist/layout/PageHeader/PageHeader.js +10 -0
- package/dist/layout/PageHeader/PageHeader.types.d.ts +21 -0
- package/dist/layout/PageHeader/PageHeader.types.js +2 -0
- package/dist/layout/PageHeader/index.d.ts +9 -0
- package/dist/layout/PageHeader/index.js +2 -0
- package/dist/layout/SideNav/SideNav.d.ts +14 -0
- package/dist/layout/SideNav/SideNav.doc.d.ts +4 -0
- package/dist/layout/SideNav/SideNav.doc.js +32 -0
- package/dist/layout/SideNav/SideNav.js +9 -0
- package/dist/layout/SideNav/SideNav.types.d.ts +18 -0
- package/dist/layout/SideNav/SideNav.types.js +2 -0
- package/dist/layout/SideNav/index.d.ts +9 -0
- package/dist/layout/SideNav/index.js +2 -0
- package/dist/layout/TopBar/TopBar.d.ts +14 -0
- package/dist/layout/TopBar/TopBar.doc.d.ts +4 -0
- package/dist/layout/TopBar/TopBar.doc.js +28 -0
- package/dist/layout/TopBar/TopBar.js +9 -0
- package/dist/layout/TopBar/TopBar.types.d.ts +16 -0
- package/dist/layout/TopBar/TopBar.types.js +2 -0
- package/dist/layout/TopBar/index.d.ts +9 -0
- package/dist/layout/TopBar/index.js +2 -0
- package/dist/lib/component-doc.d.ts +34 -0
- package/dist/lib/component-doc.js +2 -0
- package/dist/lib/motionPresets.d.ts +37 -0
- package/dist/lib/motionPresets.js +35 -0
- package/dist/lib/resolveTokenPx.d.ts +11 -0
- package/dist/lib/resolveTokenPx.js +17 -0
- package/dist/lib/useDialogTransition.d.ts +21 -0
- package/dist/lib/useDialogTransition.js +86 -0
- package/dist/lib/useDisclosureTransition.d.ts +19 -0
- package/dist/lib/useDisclosureTransition.js +41 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.js +6 -0
- package/dist/patterns/action-bar.md +127 -0
- package/dist/patterns/border-always.md +40 -0
- package/dist/patterns/data-analytics.md +15 -0
- package/dist/patterns/disabled-state.md +80 -0
- package/dist/patterns/empty-state.md +130 -0
- package/dist/patterns/expand-collapse-chevron.md +101 -0
- package/dist/patterns/form-field-group.md +139 -0
- package/dist/patterns/form-field-spacing.md +99 -0
- package/dist/patterns/group-spacing.md +54 -0
- package/dist/patterns/motion-effects.md +100 -0
- package/dist/patterns/same-row-sizing.md +52 -0
- package/dist/patterns/search-filter.md +118 -0
- package/dist/patterns/show-hide-parts.md +53 -0
- package/dist/patterns/stat-card.md +105 -0
- package/dist/patterns/status-row.md +130 -0
- package/dist/patterns/view-toggle.md +81 -0
- package/dist/prop-map.md +80 -0
- package/package.json +70 -3
- package/src/globals.css +3195 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../component.schema.json",
|
|
3
|
+
"name": "CheckboxGroup",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"status": "stable",
|
|
6
|
+
|
|
7
|
+
"purpose": "Lets users choose zero or more options from a small, visible set of independent choices.",
|
|
8
|
+
"import": "import { CheckboxGroup } from '@helixds/react';",
|
|
9
|
+
|
|
10
|
+
"neverUseFor": [
|
|
11
|
+
"A single independent on/off choice — use Checkbox alone instead",
|
|
12
|
+
"Mutually exclusive choices — use RadioGroup instead",
|
|
13
|
+
"Large option sets or anything needing search — use a multi-select instead"
|
|
14
|
+
],
|
|
15
|
+
|
|
16
|
+
"rationale": "CheckboxGroup renders a native fieldset/legend around independent Checkbox inputs, so the group label is announced for free (1.3.1). It inherits Checkbox's single 16px control unchanged and is meant for small visible sets; anything large or searchable belongs in MultiSelect.",
|
|
17
|
+
|
|
18
|
+
"governance": {
|
|
19
|
+
"mayExtendLocally": [
|
|
20
|
+
"Define the options, legend and helper text per usage",
|
|
21
|
+
"Choose a vertical or horizontal arrangement from the documented props"
|
|
22
|
+
],
|
|
23
|
+
"mustEscalateToDS": [
|
|
24
|
+
"Replacing fieldset/legend with non-semantic wrappers",
|
|
25
|
+
"Adding search, select-all or other large-set behaviors",
|
|
26
|
+
"Changing the spacing between options"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
"states": {
|
|
31
|
+
"intrinsic": ["hover", "focus", "active"],
|
|
32
|
+
"authored": [
|
|
33
|
+
{ "name": "invalid", "description": "The selection fails validation.", "aria": "aria-invalid='true' on each checkbox input" },
|
|
34
|
+
{ "name": "disabled", "description": "The whole group, or an individual option, is non-interactive.", "aria": "disabled (native HTML attribute)" },
|
|
35
|
+
{ "name": "required", "description": "At least one value must be selected before form submission.", "aria": "Announced as a visually hidden \"(required)\" in the legend — role=\"group\" does not allow aria-required. Not set on each checkbox: native required there would demand every option be checked." }
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
"anatomy": [
|
|
40
|
+
{ "part": "checkbox-group", "element": "fieldset", "description": "Root element — groups the legend and options for assistive tech." },
|
|
41
|
+
{ "part": "checkbox-group-legend", "element": "legend", "description": "Accessible group label. Sits exactly 8px above the options — see .ai/maps/patterns/form-field-spacing.md. Disabled: dims to text.disabled with the rest of the text (.ai/maps/patterns/disabled-state.md)." },
|
|
42
|
+
{ "part": "checkbox-group-required", "element": "span", "optional": true, "description": "The required indicator (*) inside the legend, text/danger, 2px (spacing/3xs) after the text — shown by `required`. Disabled: dims to text.disabled with the rest of the text (.ai/maps/patterns/disabled-state.md)." },
|
|
43
|
+
{ "part": "checkbox-group-options", "element": "div", "description": "Layout wrapper for the option list. Each option renders a real `Checkbox`." },
|
|
44
|
+
{ "part": "checkbox-group-description", "element": "span", "description": "Helper text for the whole group. Sits exactly 8px below the options — see .ai/maps/patterns/form-field-spacing.md. Disabled: dims to text.disabled with the rest of the text (.ai/maps/patterns/disabled-state.md).", "optional": true },
|
|
45
|
+
{ "part": "checkbox-group-error", "element": "span", "description": "Error text shown when invalid=true.", "optional": true }
|
|
46
|
+
],
|
|
47
|
+
|
|
48
|
+
"props": [
|
|
49
|
+
{ "name": "label", "type": "string", "required": true, "description": "Accessible group label, rendered as the fieldset's legend." },
|
|
50
|
+
{ "name": "options", "type": "CheckboxOption[]", "required": true, "description": "The list of choices. Each option: { value, label, description?, disabled? }." },
|
|
51
|
+
{ "name": "value", "type": "string[] | undefined", "description": "Controlled selected values." },
|
|
52
|
+
{ "name": "defaultValue", "type": "string[] | undefined", "description": "Uncontrolled initial values." },
|
|
53
|
+
{ "name": "onChange", "type": "((values: string[]) => void) | undefined", "description": "Selection change handler — receives the full updated set of selected values." },
|
|
54
|
+
{ "name": "orientation", "type": "'vertical' | 'horizontal'", "default": "vertical", "description": "Layout direction of the option list." },
|
|
55
|
+
{ "name": "description", "type": "string | undefined", "description": "Helper text shown below the group." },
|
|
56
|
+
{ "name": "errorMessage", "type": "string | undefined", "description": "Error text shown when invalid=true." },
|
|
57
|
+
{ "name": "invalid", "type": "boolean", "default": false, "description": "Shows error styling and message." },
|
|
58
|
+
{ "name": "disabled", "type": "boolean", "default": false, "description": "Disables every option in the group." },
|
|
59
|
+
{ "name": "required", "type": "boolean", "default": false, "description": "Marks the group as required (at least one selection)." },
|
|
60
|
+
{ "name": "name", "type": "string | undefined", "description": "Native checkbox name shared by every input, for form serialization. Auto-generated if omitted." }
|
|
61
|
+
],
|
|
62
|
+
|
|
63
|
+
"sizing": {
|
|
64
|
+
"height": {
|
|
65
|
+
"mode": "fixed",
|
|
66
|
+
"values": { "default": 16 },
|
|
67
|
+
"unit": "px",
|
|
68
|
+
"note": "No size prop exists — each checkbox control is one fixed size (16px), inherited unchanged from Checkbox. Does not follow the ADR-004 field scale."
|
|
69
|
+
},
|
|
70
|
+
"width": {
|
|
71
|
+
"default": "hug"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
"tokenPolicy": {
|
|
76
|
+
"allowed": ["color.fill", "color.text", "color.border", "spacing", "radius", "fontSize"],
|
|
77
|
+
"forbidden": ["primitive.color"]
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
"a11y": {
|
|
81
|
+
"role": "group (native fieldset/legend + independent checkbox inputs)",
|
|
82
|
+
"keyboardNav": ["Tab — moves focus between options and into/out of the group", "Space — toggles the focused option"],
|
|
83
|
+
"wcag": ["1.3.1 Info and Relationships", "2.1.1 Keyboard", "2.4.7 Focus Visible", "4.1.2 Name Role Value"],
|
|
84
|
+
"applied": {
|
|
85
|
+
"nativeElement": "fieldset",
|
|
86
|
+
"innerComponents": [
|
|
87
|
+
"Checkbox"
|
|
88
|
+
],
|
|
89
|
+
"focus": [
|
|
90
|
+
{
|
|
91
|
+
"part": "(its inner controls)",
|
|
92
|
+
"delegatedTo": [
|
|
93
|
+
"Checkbox"
|
|
94
|
+
],
|
|
95
|
+
"note": "focus is drawn by Checkbox — see their a11y.applied.focus"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"aria": {
|
|
99
|
+
"checkbox-group": {
|
|
100
|
+
"aria-describedby": [
|
|
101
|
+
"(id)"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"checkbox-group-error": {
|
|
105
|
+
"role": [
|
|
106
|
+
"alert"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"checkbox-group-required": {
|
|
110
|
+
"aria-hidden": [
|
|
111
|
+
"true"
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"announced": [
|
|
116
|
+
"group \"Notify me about\"",
|
|
117
|
+
"group \"Repeat on\"",
|
|
118
|
+
"group \"Notify me about (required)\""
|
|
119
|
+
],
|
|
120
|
+
"contrast": {
|
|
121
|
+
"checkbox-group-legend": {
|
|
122
|
+
"light": "2.56:1 — #94a3b8 on #ffffff",
|
|
123
|
+
"dark": "2.35:1 — #475569 on #0f172a"
|
|
124
|
+
},
|
|
125
|
+
"checkbox-group-error": {
|
|
126
|
+
"light": "6.47:1 — #b91c1c on #ffffff",
|
|
127
|
+
"dark": "12.65:1 — #fecdd3 on #0f172a"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"targetSize": {},
|
|
131
|
+
"motion": [
|
|
132
|
+
"CSS transitions/animations: neutralised by the global prefers-reduced-motion rule"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"results": {
|
|
136
|
+
"score": 100,
|
|
137
|
+
"meetsMinimum": true,
|
|
138
|
+
"checks": {
|
|
139
|
+
"contract": "pass",
|
|
140
|
+
"keys": "pass",
|
|
141
|
+
"focus-return": "n/a",
|
|
142
|
+
"keyboard": "pass",
|
|
143
|
+
"axe": "pass",
|
|
144
|
+
"contrast": "pass",
|
|
145
|
+
"focus-visible": "pass",
|
|
146
|
+
"target-size": "pass",
|
|
147
|
+
"reflow": "n/a",
|
|
148
|
+
"screen-reader": "pass",
|
|
149
|
+
"ai-visual": "pass",
|
|
150
|
+
"human": "pending"
|
|
151
|
+
},
|
|
152
|
+
"notScored": [
|
|
153
|
+
"ai-visual",
|
|
154
|
+
"human"
|
|
155
|
+
],
|
|
156
|
+
"changed": "2026-10-12"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
"figma": {
|
|
161
|
+
"childProps": {"options": [{"component": "Checkbox", "property": "label", "note": "each option's label"}]},
|
|
162
|
+
"states": ["default"],
|
|
163
|
+
"properties": [
|
|
164
|
+
{ "name": "options", "type": "VARIANT", "values": ["2", "3", "4", "5", "6", "7"], "codeProp": "options", "description": "How many options the group draws (list-count, owner's rule 2026-10-21) — code draws one Checkbox per entry in options." },
|
|
165
|
+
{ "name": "orientation", "type": "VARIANT", "values": ["vertical", "horizontal"], "codeProp": "orientation" },
|
|
166
|
+
{ "name": "label", "type": "TEXT", "codeProp": "label" },
|
|
167
|
+
{
|
|
168
|
+
"name": "required",
|
|
169
|
+
"type": "BOOLEAN",
|
|
170
|
+
"codeProp": "required",
|
|
171
|
+
"description": "Shows the danger * (checkbox-group-required) after the legend, 2px apart; text/disabled when disabled."
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "description.",
|
|
175
|
+
"type": "BOOLEAN",
|
|
176
|
+
"codeProp": "description",
|
|
177
|
+
"description": "Show/hide part: indented 24px (16px box + 8px) to line up with the option text."
|
|
178
|
+
},
|
|
179
|
+
{ "name": "description", "type": "TEXT", "codeProp": "description" },
|
|
180
|
+
{
|
|
181
|
+
"name": "errorMessage.",
|
|
182
|
+
"type": "BOOLEAN",
|
|
183
|
+
"codeProp": "errorMessage",
|
|
184
|
+
"description": "Show/hide part: same indent; code shows it instead of the description."
|
|
185
|
+
},
|
|
186
|
+
{ "name": "errorMessage", "type": "TEXT", "codeProp": "errorMessage" }
|
|
187
|
+
],
|
|
188
|
+
"structure": "checkbox-group (8px gap) > checkbox-group-legend, checkbox-group-options (12px gap, real Checkbox instances), description, error. options = how many Checkbox instances it draws (2–7): Comments (checked), Mentions, Weekly digest, Security alerts, Product updates, Billing, Newsletter.",
|
|
189
|
+
"variantCombinations": "36 variants (2026-10-21): options 2–7 (list-count — how many Checkbox instances the group draws, each with its own example label) × the 6 of 2026-10-20: orientation vertical/horizontal × invalid false/true, plus disabled for each orientation (valid) — the standard rule for disabled. No state axis: hover/focus live on each Checkbox option (pattern group). invalid/disabled pass down to every option; disabled dims legend, required * and description (text/disabled).",
|
|
190
|
+
"stories": {
|
|
191
|
+
"Default": "default",
|
|
192
|
+
"Horizontal": "orientation=horizontal",
|
|
193
|
+
"Invalid": "invalid=true, errorMessage.=true",
|
|
194
|
+
"Disabled": "disabled=true",
|
|
195
|
+
"WithDisabledOption": "layout",
|
|
196
|
+
"Required": "required=true",
|
|
197
|
+
"KeyboardToggle": {"figma": "layout", "reason": "keyboard focus is drawn on the Checkbox inside it (state=focus)"}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../component.schema.json",
|
|
3
|
+
"name": "Chip",
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"status": "stable",
|
|
6
|
+
"purpose": "Represents a compact selectable label for filters, categories, or short choices.",
|
|
7
|
+
"import": "import { Chip } from '@helixds/react';",
|
|
8
|
+
"neverUseFor": [
|
|
9
|
+
"Primary page actions — use Button instead",
|
|
10
|
+
"Long text labels — chips are compact by design",
|
|
11
|
+
"Destructive confirmation flows — use a Button pair instead"
|
|
12
|
+
],
|
|
13
|
+
|
|
14
|
+
"rationale": "Chip uses a local density model (s 24px / m 32px) instead of the control ladder so a Chip s sits exactly 4px inside a 32px field like MultiSelect (ADR-019). Its off-scale 6px icon gap is split into 4px + 2px scale tokens, and it renders as a real button so Enter/Space activation is native.",
|
|
15
|
+
|
|
16
|
+
"governance": {
|
|
17
|
+
"mayExtendLocally": [
|
|
18
|
+
"Choose the label, icon and dismiss behavior per usage",
|
|
19
|
+
"Wire selection or removal to product state"
|
|
20
|
+
],
|
|
21
|
+
"mustEscalateToDS": [
|
|
22
|
+
"New chip sizes or changes to the 24/32px heights",
|
|
23
|
+
"New color variants or overriding spacing tokens",
|
|
24
|
+
"Using Chip for primary actions or destructive confirmations"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"states": {
|
|
28
|
+
"intrinsic": [
|
|
29
|
+
"hover",
|
|
30
|
+
"focus",
|
|
31
|
+
"active"
|
|
32
|
+
],
|
|
33
|
+
"authored": [
|
|
34
|
+
{
|
|
35
|
+
"name": "disabled",
|
|
36
|
+
"description": "The chip is not interactive.",
|
|
37
|
+
"aria": "disabled (native HTML attribute)"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "dismissible",
|
|
41
|
+
"description": "Renders an additional close button (chip-dismiss) beside the chip, active only when both dismissible=true and onDismiss is provided.",
|
|
42
|
+
"aria": "aria-label='Dismiss {label}' on the chip-dismiss button"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"anatomy": [
|
|
47
|
+
{
|
|
48
|
+
"part": "chip-shell",
|
|
49
|
+
"element": "span",
|
|
50
|
+
"description": "The pill: fill, 1px border, radius, height and the 12px padding on both ends — the same whatever it contains. Holds the chip button and, when dismissible, the dismiss button, both in normal flow.",
|
|
51
|
+
"optional": false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"part": "chip",
|
|
55
|
+
"element": "button",
|
|
56
|
+
"description": "Transparent button holding the icons and label; its ::after stretches over the whole pill so the full chip is clickable.",
|
|
57
|
+
"optional": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"part": "chip-icon",
|
|
61
|
+
"element": "slot",
|
|
62
|
+
"description": "Leading icon slot.",
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"part": "chip-label",
|
|
67
|
+
"element": "span",
|
|
68
|
+
"description": "Visible chip label."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"part": "chip-icon-end",
|
|
72
|
+
"element": "slot",
|
|
73
|
+
"description": "Trailing icon slot.",
|
|
74
|
+
"optional": true
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"part": "chip-dismiss",
|
|
78
|
+
"element": "button",
|
|
79
|
+
"description": "Close button after chip-icon-end, in the row: 2px on the label side (spacing-3xs) + the 12px ×. Its round hover (20px s / 24px m) is a pseudo-element that takes no space. Rendered only when dismissible=true and onDismiss is provided.",
|
|
80
|
+
"optional": true
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"props": [
|
|
84
|
+
{
|
|
85
|
+
"name": "variant",
|
|
86
|
+
"type": "'neutral' | 'info' | 'success' | 'warning' | 'danger'",
|
|
87
|
+
"default": "neutral",
|
|
88
|
+
"description": "Semantic color variant."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "size",
|
|
92
|
+
"type": "'s' | 'm'",
|
|
93
|
+
"default": "s",
|
|
94
|
+
"description": "Horizontal density preset. Chip is a documented exception to the global scale — default is 's', not 'm', a deliberate deviation from ADR-004's general 'm is the default' convention for this component specifically."
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "disabled",
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"default": false,
|
|
100
|
+
"description": "Disables interaction."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "label",
|
|
104
|
+
"type": "string",
|
|
105
|
+
"required": true,
|
|
106
|
+
"description": "Visible chip label."
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "icon",
|
|
110
|
+
"type": "TablerIcon | undefined",
|
|
111
|
+
"default": null,
|
|
112
|
+
"description": "Leading icon, passed by reference. Rendered via the Icon component at a fixed 14px."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "iconEnd",
|
|
116
|
+
"type": "TablerIcon | undefined",
|
|
117
|
+
"default": null,
|
|
118
|
+
"description": "Trailing icon. Same fixed 14px as icon."
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "onClick",
|
|
122
|
+
"type": "React.MouseEventHandler<HTMLButtonElement> | undefined",
|
|
123
|
+
"description": "Primary press handler."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "dismissible",
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"default": false,
|
|
129
|
+
"description": "Shows a close button for removing the chip."
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "onDismiss",
|
|
133
|
+
"type": "(() => void) | undefined",
|
|
134
|
+
"description": "Dismiss handler fired from the close button."
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"sizing": {
|
|
138
|
+
"height": {
|
|
139
|
+
"mode": "fixed",
|
|
140
|
+
"values": {
|
|
141
|
+
"s": 24,
|
|
142
|
+
"m": 32
|
|
143
|
+
},
|
|
144
|
+
"unit": "px",
|
|
145
|
+
"note": "Chip uses a local density model; this does not redefine the global scale. s = 24px (semantic.size.s, was 28px until 2026-10-01): same height as Badge s and the control ladder's s, and it sits 4px inside a 32px field (MultiSelect, ADR-019)."
|
|
146
|
+
},
|
|
147
|
+
"width": {
|
|
148
|
+
"default": "hug",
|
|
149
|
+
"modes": {
|
|
150
|
+
"hug": "Width shrinks to fit label and icons.",
|
|
151
|
+
"fixed": "Explicit width set by the consumer."
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"tokenPolicy": {
|
|
156
|
+
"allowed": [
|
|
157
|
+
"color.fill",
|
|
158
|
+
"color.text",
|
|
159
|
+
"color.border",
|
|
160
|
+
"spacing",
|
|
161
|
+
"radius",
|
|
162
|
+
"fontSize",
|
|
163
|
+
"fontWeight"
|
|
164
|
+
],
|
|
165
|
+
"forbidden": [
|
|
166
|
+
"primitive.color"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"a11y": {
|
|
170
|
+
"role": "button",
|
|
171
|
+
"keyboardNav": [
|
|
172
|
+
"Enter — activates",
|
|
173
|
+
"Space — activates"
|
|
174
|
+
],
|
|
175
|
+
"wcag": [
|
|
176
|
+
"2.1.1 Keyboard",
|
|
177
|
+
"2.4.7 Focus Visible",
|
|
178
|
+
"4.1.2 Name Role Value"
|
|
179
|
+
],
|
|
180
|
+
"applied": {
|
|
181
|
+
"nativeElement": "span",
|
|
182
|
+
"focus": [
|
|
183
|
+
{
|
|
184
|
+
"part": "chip-shell",
|
|
185
|
+
"when": ":focus-visible",
|
|
186
|
+
"outline": "2px solid var(--helix-color-border-focus)",
|
|
187
|
+
"outline-offset": "2px"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"part": "chip-dismiss",
|
|
191
|
+
"when": ":focus-visible",
|
|
192
|
+
"outline": "2px solid var(--helix-color-border-focus)",
|
|
193
|
+
"outline-offset": "2px"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"aria": {
|
|
197
|
+
"chip-dismiss": {
|
|
198
|
+
"aria-label": [
|
|
199
|
+
"Dismiss Recent",
|
|
200
|
+
"Dismiss Saved"
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"announced": [
|
|
205
|
+
"button \"Recent\"",
|
|
206
|
+
"button \"Dismiss Recent\"",
|
|
207
|
+
"button \"Saved\"",
|
|
208
|
+
"button \"Dismiss Saved\"",
|
|
209
|
+
"button \"Filter\""
|
|
210
|
+
],
|
|
211
|
+
"contrast": {
|
|
212
|
+
"chip-label (neutral s)": {
|
|
213
|
+
"light": "17.06:1 — #0f172a on #f8fafc",
|
|
214
|
+
"dark": "13.35:1 — #f1f5f9 on #1e293b"
|
|
215
|
+
},
|
|
216
|
+
"chip-dismiss (icon neutral s)": {
|
|
217
|
+
"light": "7.24:1 — #475569 on #f8fafc",
|
|
218
|
+
"dark": "5.71:1 — #94a3b8 on #1e293b"
|
|
219
|
+
},
|
|
220
|
+
"chip-label (neutral m)": {
|
|
221
|
+
"light": "17.06:1 — #0f172a on #f8fafc",
|
|
222
|
+
"dark": "13.35:1 — #f1f5f9 on #1e293b"
|
|
223
|
+
},
|
|
224
|
+
"chip-label (warning s)": {
|
|
225
|
+
"light": "4.84:1 — #b45309 on #fffbeb",
|
|
226
|
+
"dark": "4.91:1 — #fcd34d on #92400e"
|
|
227
|
+
},
|
|
228
|
+
"chip-label (info s)": {
|
|
229
|
+
"light": "5.56:1 — #0369a1 on #f0f9ff",
|
|
230
|
+
"dark": "4.53:1 — #7dd3fc on #075985"
|
|
231
|
+
},
|
|
232
|
+
"chip-label (success s)": {
|
|
233
|
+
"light": "4.79:1 — #15803d on #f0fdf4",
|
|
234
|
+
"dark": "5.07:1 — #86efac on #166534"
|
|
235
|
+
},
|
|
236
|
+
"chip-label (danger s)": {
|
|
237
|
+
"light": "5.88:1 — #b91c1c on #fff1f2",
|
|
238
|
+
"dark": "5.89:1 — #fecdd3 on #991b1b"
|
|
239
|
+
},
|
|
240
|
+
"chip-icon (icon neutral s)": {
|
|
241
|
+
"light": "17.06:1 — #0f172a on #f8fafc",
|
|
242
|
+
"dark": "13.35:1 — #f1f5f9 on #1e293b"
|
|
243
|
+
},
|
|
244
|
+
"chip-icon (icon success s)": {
|
|
245
|
+
"light": "4.79:1 — #15803d on #f0fdf4",
|
|
246
|
+
"dark": "5.08:1 — #86efac on #166534"
|
|
247
|
+
},
|
|
248
|
+
"chip-icon (icon warning s)": {
|
|
249
|
+
"light": "4.84:1 — #b45309 on #fffbeb",
|
|
250
|
+
"dark": "4.92:1 — #fcd34d on #92400e"
|
|
251
|
+
},
|
|
252
|
+
"chip-icon (icon danger s)": {
|
|
253
|
+
"light": "5.89:1 — #b91c1c on #fff1f2",
|
|
254
|
+
"dark": "5.89:1 — #fecdd3 on #991b1b"
|
|
255
|
+
},
|
|
256
|
+
"chip-icon (icon info s)": {
|
|
257
|
+
"light": "5.57:1 — #0369a1 on #f0f9ff",
|
|
258
|
+
"dark": "4.54:1 — #7dd3fc on #075985"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"targetSize": {
|
|
262
|
+
"chip": "smallest 22×22 px",
|
|
263
|
+
"chip-dismiss": "smallest 24×24 px"
|
|
264
|
+
},
|
|
265
|
+
"motion": [
|
|
266
|
+
"CSS transitions/animations: neutralised by the global prefers-reduced-motion rule",
|
|
267
|
+
"Motion (JS): inside <MotionConfig reducedMotion=\"user\">"
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
"results": {
|
|
271
|
+
"score": 100,
|
|
272
|
+
"meetsMinimum": true,
|
|
273
|
+
"checks": {
|
|
274
|
+
"contract": "pass",
|
|
275
|
+
"keys": "pass",
|
|
276
|
+
"focus-return": "n/a",
|
|
277
|
+
"keyboard": "pass",
|
|
278
|
+
"axe": "pass",
|
|
279
|
+
"contrast": "pass",
|
|
280
|
+
"focus-visible": "pass",
|
|
281
|
+
"target-size": "pass",
|
|
282
|
+
"reflow": "n/a",
|
|
283
|
+
"screen-reader": "pass",
|
|
284
|
+
"ai-visual": "pass",
|
|
285
|
+
"human": "pending"
|
|
286
|
+
},
|
|
287
|
+
"notScored": [
|
|
288
|
+
"ai-visual",
|
|
289
|
+
"human"
|
|
290
|
+
],
|
|
291
|
+
"changed": "2026-10-12"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"figma": {
|
|
295
|
+
"states": ["default", "hover", "press", "focus"],
|
|
296
|
+
"properties": [
|
|
297
|
+
{
|
|
298
|
+
"name": "state",
|
|
299
|
+
"type": "VARIANT",
|
|
300
|
+
"values": ["default", "hover", "press", "focus"],
|
|
301
|
+
"figmaOnly": true,
|
|
302
|
+
"description": "Figma-only axis: CSS pseudo-classes. disabled / isLoading are their own false/true toggles (contracts/figma-conversion.json, pattern action)."
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "dismissible",
|
|
306
|
+
"type": "BOOLEAN",
|
|
307
|
+
"codeProp": "dismissible",
|
|
308
|
+
"description": "Show/hide part (show-hide-parts.md): toggles the chip-dismiss layer. The × carries its own 2px on the label side; the chip keeps 12px on both ends either way."
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"variantCombinations": "50 variants (2026-10-21): variant × size × state = 40, disabled per variant × size = 10. Disabled keeps the variant colors at 0.72 opacity, like code.",
|
|
312
|
+
"stories": {
|
|
313
|
+
"Dismissible": "dismissible=true",
|
|
314
|
+
"Variants": "layout",
|
|
315
|
+
"WithIcons": "icon.=true, iconEnd.=true",
|
|
316
|
+
"Sizes": "layout",
|
|
317
|
+
"KeyboardActivation": {"figma": "state=focus", "reason": "keyboard focus — the focus ring is drawn in Figma (owner 2026-10-21: focus states are drawn)"}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|