@behavioral-agentic-design-system/core 0.45.0 → 0.47.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 (237) hide show
  1. package/package.json +17 -3
  2. package/scripts/a11y-lint.cjs +78 -15
  3. package/scripts/bads-sync.mjs +1 -1
  4. package/scripts/build-tokens.cjs +122 -7
  5. package/scripts/check-dark-contrast.mjs +204 -0
  6. package/scripts/check-flush-edges.mjs +245 -0
  7. package/scripts/design-system-advisory/README.md +239 -0
  8. package/scripts/design-system-advisory/check-copy-punctuation.mjs +44 -0
  9. package/scripts/design-system-advisory/check-even-padding.mjs +35 -0
  10. package/scripts/design-system-advisory/check-hand-built-button.mjs +46 -0
  11. package/scripts/design-system-advisory/check-html-nesting.mjs +51 -0
  12. package/scripts/design-system-advisory/check-icon-sizing.mjs +79 -0
  13. package/scripts/design-system-advisory/check-label-case.mjs +92 -0
  14. package/scripts/design-system-advisory/check-native-form-controls.mjs +53 -0
  15. package/scripts/design-system-advisory/check-radius.mjs +56 -0
  16. package/scripts/design-system-advisory/check-raw-values.mjs +61 -0
  17. package/scripts/design-system-advisory/check-small-text.mjs +72 -0
  18. package/scripts/design-system-advisory/check-tap-target.mjs +70 -0
  19. package/scripts/design-system-advisory/defaults.mjs +90 -0
  20. package/scripts/design-system-advisory/fixtures/clean.tsx.fixture +12 -0
  21. package/scripts/design-system-advisory/fixtures/violations.tsx.fixture +19 -0
  22. package/scripts/design-system-advisory/lib.mjs +255 -0
  23. package/scripts/design-system-advisory/run.mjs +189 -0
  24. package/scripts/design-system-advisory/workflow.yml +82 -0
  25. package/scripts/lib/copy-strings.mjs +146 -0
  26. package/scripts/lib/dark-contrast.mjs +120 -0
  27. package/scripts/lib/flush-edges.mjs +294 -0
  28. package/scripts/lib/lab-lint.mjs +62 -0
  29. package/scripts/lib/mount-page.mjs +25 -0
  30. package/scripts/lib/source-scan.mjs +173 -0
  31. package/scripts/lib/tells.mjs +240 -2
  32. package/scripts/lint-arbitrary-tokens.mjs +47 -0
  33. package/scripts/lint-component-token-refs.mjs +63 -0
  34. package/scripts/lint-content-hierarchy.mjs +114 -0
  35. package/scripts/lint-control-baseline.mjs +72 -0
  36. package/scripts/lint-copy-punctuation.mjs +60 -0
  37. package/scripts/lint-even-padding.mjs +58 -0
  38. package/scripts/lint-label-case.mjs +219 -0
  39. package/scripts/lint-microanimation.mjs +2 -2
  40. package/scripts/lint-proximity.mjs +181 -0
  41. package/scripts/lint-slop.mjs +1 -1
  42. package/scripts/lint-spacing-scale.mjs +78 -0
  43. package/scripts/lint-target-size.cjs +132 -0
  44. package/scripts/lint-token-primitives.mjs +307 -0
  45. package/scripts/size-audit.cjs +2 -2
  46. package/scripts/ux-tells.mjs +8 -6
  47. package/scripts/wcag-audit.cjs +25 -4
  48. package/src/api/layers/file.ts +2 -0
  49. package/src/api/site-auth.ts +14 -2
  50. package/src/app/preview/components/page.tsx +94 -14
  51. package/src/app/preview/sticker-sheet/page.tsx +329 -0
  52. package/src/app/preview/sticker-sheet/specimens.tsx +296 -0
  53. package/src/app/shell.tsx +4 -3
  54. package/src/components/Foundations/Colors.stories.tsx +119 -8
  55. package/src/components/home-tab.tsx +6 -1
  56. package/src/components/onboarding-wizard.tsx +1 -1
  57. package/src/components/ui/avatar.tsx +4 -0
  58. package/src/components/ui/chart.tsx +134 -42
  59. package/src/components/ui/checkbox-group.tsx +1 -1
  60. package/src/components/ui/checkbox.tsx +1 -1
  61. package/src/components/ui/combobox.tsx +1 -0
  62. package/src/components/ui/command.tsx +1 -1
  63. package/src/components/ui/date-picker.tsx +2 -0
  64. package/src/components/ui/date-range-picker.tsx +4 -0
  65. package/src/components/ui/file-upload.tsx +21 -2
  66. package/src/components/ui/heatmap.tsx +3 -1
  67. package/src/components/ui/input-group.tsx +5 -2
  68. package/src/components/ui/multi-select.tsx +1 -0
  69. package/src/components/ui/radio-group.tsx +2 -2
  70. package/src/components/ui/sparkline.tsx +33 -4
  71. package/src/components/ui/spinner.tsx +23 -4
  72. package/src/components/ui/table.tsx +9 -0
  73. package/src/components/ui/week-picker.tsx +0 -12
  74. package/src/data/component-added.json +8 -0
  75. package/src/data/docs-index.ts +22 -1
  76. package/src/data/history.json +161 -161
  77. package/src/data/sticker-sheet.json +9244 -0
  78. package/src/docs-trace-globs.json +1 -0
  79. package/src/lib/chart-motion.ts +41 -0
  80. package/src/lib/get-icon-color.ts +1 -1
  81. package/src/stories/Accordion.stories.tsx +7 -0
  82. package/src/stories/ActionBar.stories.tsx +5 -0
  83. package/src/stories/Affix.stories.tsx +4 -0
  84. package/src/stories/AiBadge.stories.tsx +9 -7
  85. package/src/stories/Alert.stories.tsx +13 -0
  86. package/src/stories/AlertDialog.stories.tsx +4 -0
  87. package/src/stories/Anchor.stories.tsx +5 -0
  88. package/src/stories/AngleSlider.stories.tsx +6 -3
  89. package/src/stories/AspectRatio.stories.tsx +4 -0
  90. package/src/stories/Autocomplete.stories.tsx +6 -0
  91. package/src/stories/Avatar.stories.tsx +10 -0
  92. package/src/stories/Badge.stories.tsx +14 -6
  93. package/src/stories/Blockquote.stories.tsx +6 -0
  94. package/src/stories/BottomNavigation.stories.tsx +4 -0
  95. package/src/stories/Breadcrumb.stories.tsx +3 -0
  96. package/src/stories/Burger.stories.tsx +1 -0
  97. package/src/stories/Button.stories.tsx +24 -0
  98. package/src/stories/ButtonGroup.stories.tsx +9 -0
  99. package/src/stories/Calendar.stories.tsx +3 -0
  100. package/src/stories/Card.stories.tsx +4 -0
  101. package/src/stories/Carousel.stories.tsx +6 -0
  102. package/src/stories/Cascader.stories.tsx +4 -0
  103. package/src/stories/Chart.stories.tsx +46 -1
  104. package/src/stories/ChatBubble.stories.tsx +8 -2
  105. package/src/stories/ChatMarker.stories.tsx +1 -0
  106. package/src/stories/Checkbox.stories.tsx +40 -0
  107. package/src/stories/CheckboxCard.stories.tsx +8 -0
  108. package/src/stories/CheckboxGroup.stories.tsx +19 -0
  109. package/src/stories/Chip.stories.tsx +10 -19
  110. package/src/stories/CircularProgress.stories.tsx +13 -27
  111. package/src/stories/Clipboard.stories.tsx +6 -0
  112. package/src/stories/CloseButton.stories.tsx +6 -4
  113. package/src/stories/Code.stories.tsx +8 -1
  114. package/src/stories/Collapsible.stories.tsx +2 -0
  115. package/src/stories/ColorPicker.stories.tsx +6 -0
  116. package/src/stories/ColorSwatch.stories.tsx +1 -0
  117. package/src/stories/Combobox.stories.tsx +9 -0
  118. package/src/stories/Command.stories.tsx +2 -0
  119. package/src/stories/Container.stories.tsx +8 -0
  120. package/src/stories/ContextMenu.stories.tsx +9 -0
  121. package/src/stories/CopyButton.stories.tsx +12 -36
  122. package/src/stories/DataList.stories.tsx +8 -0
  123. package/src/stories/DataTable.stories.tsx +9 -0
  124. package/src/stories/DateField.stories.tsx +7 -0
  125. package/src/stories/DatePicker.stories.tsx +34 -0
  126. package/src/stories/DateRangePicker.stories.tsx +32 -0
  127. package/src/stories/Dialog.stories.tsx +8 -0
  128. package/src/stories/Drawer.stories.tsx +6 -0
  129. package/src/stories/DropdownMenu.stories.tsx +2 -0
  130. package/src/stories/Editable.stories.tsx +10 -0
  131. package/src/stories/EmptyState.stories.tsx +9 -0
  132. package/src/stories/Field.stories.tsx +7 -0
  133. package/src/stories/Fieldset.stories.tsx +8 -0
  134. package/src/stories/FileButton.stories.tsx +4 -0
  135. package/src/stories/FileUpload.stories.tsx +16 -17
  136. package/src/stories/FloatLabel.stories.tsx +3 -8
  137. package/src/stories/FloatingActionButton.stories.tsx +10 -0
  138. package/src/stories/FloatingIndicator.stories.tsx +4 -0
  139. package/src/stories/FloatingPanel.stories.tsx +6 -0
  140. package/src/stories/FocusTrap.stories.tsx +5 -0
  141. package/src/stories/FormatByte.stories.tsx +6 -0
  142. package/src/stories/FormatDate.stories.tsx +8 -0
  143. package/src/stories/FormatNumber.stories.tsx +9 -0
  144. package/src/stories/Heatmap.stories.tsx +11 -0
  145. package/src/stories/Highlight.stories.tsx +6 -0
  146. package/src/stories/HoverCard.stories.tsx +4 -0
  147. package/src/stories/Image.stories.tsx +9 -0
  148. package/src/stories/Indicator.stories.tsx +19 -0
  149. package/src/stories/Input.stories.tsx +7 -0
  150. package/src/stories/InputClearButton.stories.tsx +3 -0
  151. package/src/stories/InputGroup.stories.tsx +40 -0
  152. package/src/stories/Kbd.stories.tsx +7 -1
  153. package/src/stories/KeyboardShortcut.stories.tsx +2 -0
  154. package/src/stories/Label.stories.tsx +2 -0
  155. package/src/stories/Link.stories.tsx +9 -0
  156. package/src/stories/List.stories.tsx +8 -0
  157. package/src/stories/Listbox.stories.tsx +1 -0
  158. package/src/stories/LoadingDots.stories.tsx +5 -3
  159. package/src/stories/LoadingOverlay.stories.tsx +5 -1
  160. package/src/stories/Mark.stories.tsx +5 -0
  161. package/src/stories/Marquee.stories.tsx +4 -0
  162. package/src/stories/Masonry.stories.tsx +5 -0
  163. package/src/stories/Menubar.stories.tsx +3 -0
  164. package/src/stories/Meter.stories.tsx +11 -17
  165. package/src/stories/MonthPicker.stories.tsx +5 -1
  166. package/src/stories/MotionToggle.stories.tsx +1 -0
  167. package/src/stories/MultiSelect.stories.tsx +9 -0
  168. package/src/stories/NativeSelect.stories.tsx +1 -0
  169. package/src/stories/NavLink.stories.tsx +7 -0
  170. package/src/stories/NavigationMenu.stories.tsx +5 -0
  171. package/src/stories/NavigationRail.stories.tsx +10 -0
  172. package/src/stories/Notification.stories.tsx +13 -34
  173. package/src/stories/NumberInput.stories.tsx +8 -1
  174. package/src/stories/Overlay.stories.tsx +5 -1
  175. package/src/stories/Pagination.stories.tsx +8 -0
  176. package/src/stories/PasswordInput.stories.tsx +2 -0
  177. package/src/stories/PinInput.stories.tsx +9 -2
  178. package/src/stories/Popover.stories.tsx +2 -0
  179. package/src/stories/Progress.stories.tsx +6 -1
  180. package/src/stories/Prose.stories.tsx +8 -0
  181. package/src/stories/QrCode.stories.tsx +2 -0
  182. package/src/stories/Questionnaire.stories.tsx +7 -0
  183. package/src/stories/RadioGroup.stories.tsx +40 -0
  184. package/src/stories/RatingGroup.stories.tsx +8 -4
  185. package/src/stories/Resizable.stories.tsx +4 -2
  186. package/src/stories/Result.stories.tsx +3 -0
  187. package/src/stories/Reveal.stories.tsx +2 -0
  188. package/src/stories/RollingNumber.stories.tsx +5 -0
  189. package/src/stories/ScrollArea.stories.tsx +3 -1
  190. package/src/stories/SearchInput.stories.tsx +8 -6
  191. package/src/stories/SegmentedControl.stories.tsx +11 -0
  192. package/src/stories/Select.stories.tsx +7 -0
  193. package/src/stories/Separator.stories.tsx +6 -0
  194. package/src/stories/Sheet.stories.tsx +5 -0
  195. package/src/stories/Sidebar.stories.tsx +40 -1
  196. package/src/stories/SimpleGrid.stories.tsx +5 -0
  197. package/src/stories/Skeleton.stories.tsx +8 -0
  198. package/src/stories/SkeletonTable.stories.tsx +6 -5
  199. package/src/stories/SkipLink.stories.tsx +3 -0
  200. package/src/stories/Slider.stories.tsx +2 -1
  201. package/src/stories/Sonner.stories.tsx +7 -0
  202. package/src/stories/Sparkline.stories.tsx +14 -1
  203. package/src/stories/Spinner.stories.tsx +20 -10
  204. package/src/stories/Spoiler.stories.tsx +5 -0
  205. package/src/stories/Squircle.stories.tsx +7 -0
  206. package/src/stories/Stack.stories.tsx +7 -0
  207. package/src/stories/StatusBadge.stories.tsx +12 -6
  208. package/src/stories/Stepper.stories.tsx +5 -0
  209. package/src/stories/Switch.stories.tsx +4 -0
  210. package/src/stories/Table.stories.tsx +10 -1
  211. package/src/stories/Tabs.stories.tsx +8 -0
  212. package/src/stories/Tag.stories.tsx +13 -5
  213. package/src/stories/TagsInput.stories.tsx +13 -0
  214. package/src/stories/Text.stories.tsx +12 -0
  215. package/src/stories/Textarea.stories.tsx +9 -0
  216. package/src/stories/ThemeIcon.stories.tsx +6 -3
  217. package/src/stories/TimePicker.stories.tsx +2 -0
  218. package/src/stories/Timeline.stories.tsx +12 -0
  219. package/src/stories/Timer.stories.tsx +4 -0
  220. package/src/stories/Toggle.stories.tsx +7 -5
  221. package/src/stories/ToggleGroup.stories.tsx +5 -0
  222. package/src/stories/ToggleTip.stories.tsx +4 -0
  223. package/src/stories/Toolbar.stories.tsx +6 -0
  224. package/src/stories/Tooltip.stories.tsx +3 -0
  225. package/src/stories/Tour.stories.tsx +3 -0
  226. package/src/stories/TransferList.stories.tsx +3 -0
  227. package/src/stories/TreeSelect.stories.tsx +4 -0
  228. package/src/stories/TreeView.stories.tsx +5 -0
  229. package/src/stories/TypingIndicator.stories.tsx +4 -0
  230. package/src/stories/VisuallyHidden.stories.tsx +3 -0
  231. package/src/stories/Watermark.stories.tsx +6 -0
  232. package/src/stories/WeekPicker.stories.tsx +4 -1
  233. package/src/stories/WordRotate.stories.tsx +5 -0
  234. package/src/stories/YearPicker.stories.tsx +5 -11
  235. package/src/styles.css +50 -2
  236. package/src/tokens.json +4 -4
  237. package/LICENSE +0 -21
@@ -17,13 +17,14 @@ export default meta;
17
17
  type Story = StoryObj<typeof meta>;
18
18
 
19
19
  export const Default: Story = {
20
- render: () => <Kbd>⌘K</Kbd>,
20
+ args: { children: "⌘K" },
21
21
  };
22
22
 
23
23
  // The default variant's bottom shadow now uses the real oklch --border token:
24
24
  // it was shadow-[…hsl(var(--border))] — hsl() wrapping an oklch value is invalid
25
25
  // CSS and silently dropped the shadow — fixed to …var(--border) (2026-07-24).
26
26
  export const Variant_Default: Story = {
27
+ parameters: { controls: { disable: true } },
27
28
  render: () => (
28
29
  <div className="flex items-center gap-2">
29
30
  <Kbd variant="default">⌘</Kbd>
@@ -33,6 +34,7 @@ export const Variant_Default: Story = {
33
34
  };
34
35
 
35
36
  export const Variant_Outline: Story = {
37
+ parameters: { controls: { disable: true } },
36
38
  render: () => (
37
39
  <div className="flex items-center gap-2">
38
40
  <Kbd variant="outline">⌘</Kbd>
@@ -42,6 +44,7 @@ export const Variant_Outline: Story = {
42
44
  };
43
45
 
44
46
  export const Size_Sm: Story = {
47
+ parameters: { controls: { disable: true } },
45
48
  render: () => (
46
49
  <div className="flex items-center gap-2">
47
50
  <Kbd size="sm">⌘</Kbd>
@@ -52,6 +55,7 @@ export const Size_Sm: Story = {
52
55
  };
53
56
 
54
57
  export const Size_Default: Story = {
58
+ parameters: { controls: { disable: true } },
55
59
  render: () => (
56
60
  <div className="flex items-center gap-2">
57
61
  <Kbd size="default">⌘</Kbd>
@@ -62,6 +66,7 @@ export const Size_Default: Story = {
62
66
  };
63
67
 
64
68
  export const CommonShortcuts: Story = {
69
+ parameters: { controls: { disable: true } },
65
70
  render: () => (
66
71
  <div className="flex flex-col gap-3">
67
72
  <div className="flex items-center gap-1.5">
@@ -96,6 +101,7 @@ export const RealisticUse: Story = {
96
101
  </div>
97
102
  ),
98
103
  ],
104
+ parameters: { controls: { disable: true } },
99
105
  render: () => (
100
106
  <div className="space-y-4">
101
107
  <div>
@@ -55,6 +55,7 @@ export const Variant_Outline: Story = {
55
55
  }
56
56
 
57
57
  export const Disabled: Story = {
58
+ parameters: { controls: { disable: true } },
58
59
  render: () => (
59
60
  <span className="flex items-center gap-2 text-sm text-muted-foreground">
60
61
  <KeyboardShortcut keys={["meta", "K"]} size="sm" />
@@ -64,6 +65,7 @@ export const Disabled: Story = {
64
65
  }
65
66
 
66
67
  export const RealisticUse: Story = {
68
+ parameters: { controls: { disable: true } },
67
69
  render: () => (
68
70
  <div className="flex flex-col gap-4">
69
71
  <div className="flex items-center justify-between rounded-md border px-4 py-2 text-sm">
@@ -13,6 +13,7 @@ export default meta;
13
13
  type Story = StoryObj<typeof meta>;
14
14
 
15
15
  export const Default: Story = {
16
+ parameters: { controls: { disable: true } },
16
17
  render: () => (<div className="flex flex-col gap-2 w-[280px]">
17
18
  <Label htmlFor="email">Email</Label>
18
19
  <Input id="email" type="email" placeholder="jordan@reeves.design" />
@@ -20,6 +21,7 @@ export const Default: Story = {
20
21
  };
21
22
 
22
23
  export const RealisticUse: Story = {
24
+ parameters: { controls: { disable: true } },
23
25
  render: () => (<div className="flex flex-col gap-2 w-[280px]">
24
26
  <Label htmlFor="email">Email</Label>
25
27
  <Input id="email" type="email" placeholder="jordan@reeves.design" />
@@ -29,6 +29,7 @@ type Story = StoryObj<typeof meta>
29
29
  // URLs, names, and copy are entries from the persona pool.
30
30
 
31
31
  export const Default: Story = {
32
+ parameters: { controls: { disable: true } },
32
33
  render: () => (
33
34
  <div className="max-w-md">
34
35
  <Text>
@@ -46,6 +47,7 @@ export const Default: Story = {
46
47
  // Standalone/nav context — position identifies the link, so the underline
47
48
  // can wait for hover.
48
49
  export const Variant_Underline_Hover: Story = {
50
+ parameters: { controls: { disable: true } },
49
51
  render: () => (
50
52
  <nav aria-label="Documentation" className="flex flex-col gap-2 text-sm">
51
53
  <Link href="https://design.bads.com/docs/getting-started" underline="hover">
@@ -62,6 +64,7 @@ export const Variant_Underline_Hover: Story = {
62
64
  }
63
65
 
64
66
  export const Variant_Underline_None: Story = {
67
+ parameters: { controls: { disable: true } },
65
68
  render: () => (
66
69
  <div className="flex items-center gap-4 text-sm">
67
70
  <Link href="https://design.bads.com" underline="none">
@@ -78,6 +81,7 @@ export const Variant_Underline_None: Story = {
78
81
  }
79
82
 
80
83
  export const Variant_Tone_Foreground: Story = {
84
+ parameters: { controls: { disable: true } },
81
85
  render: () => (
82
86
  <div className="max-w-md">
83
87
  <Text>
@@ -92,6 +96,7 @@ export const Variant_Tone_Foreground: Story = {
92
96
  }
93
97
 
94
98
  export const Variant_Tone_Muted: Story = {
99
+ parameters: { controls: { disable: true } },
95
100
  render: () => (
96
101
  <div className="flex items-center gap-3 text-sm">
97
102
  <Link href="https://design.bads.com" tone="muted" underline="hover">
@@ -110,6 +115,7 @@ export const Variant_Tone_Muted: Story = {
110
115
  // external sets target="_blank" rel="noopener noreferrer", appends the
111
116
  // aria-hidden icon, and announces "(opens in new tab)" to screen readers.
112
117
  export const External: Story = {
118
+ parameters: { controls: { disable: true } },
113
119
  render: () => (
114
120
  <div className="max-w-md">
115
121
  <Text>
@@ -127,6 +133,7 @@ export const External: Story = {
127
133
  // slots in and receives the styles + data attributes. Demoed with a plain
128
134
  // <a> since Storybook has no router; the contract is identical.
129
135
  export const AsChild: Story = {
136
+ parameters: { controls: { disable: true } },
130
137
  render: () => (
131
138
  <div className="max-w-md">
132
139
  <Text>
@@ -146,6 +153,7 @@ export const AsChild: Story = {
146
153
  // contract ([overflow-wrap:anywhere]): the unbroken string wraps instead
147
154
  // of bleeding out of the 320px box.
148
155
  export const LongContent: Story = {
156
+ parameters: { controls: { disable: true } },
149
157
  render: () => (
150
158
  <div className="w-[320px]">
151
159
  <Text variant="body-sm">
@@ -159,6 +167,7 @@ export const LongContent: Story = {
159
167
  }
160
168
 
161
169
  export const RealisticUse: Story = {
170
+ parameters: { controls: { disable: true } },
162
171
  render: () => (
163
172
  <Card className="w-96">
164
173
  <CardHeader>
@@ -30,6 +30,7 @@ export default meta
30
30
  type Story = StoryObj<typeof List>
31
31
 
32
32
  export const Default: Story = {
33
+ parameters: { controls: { disable: true } },
33
34
  render: () => (
34
35
  <List className="w-64">
35
36
  <ListItem>Migrate to v3 tokens</ListItem>
@@ -41,6 +42,7 @@ export const Default: Story = {
41
42
  }
42
43
 
43
44
  export const WithIcons: Story = {
45
+ parameters: { controls: { disable: true } },
44
46
  render: () => (
45
47
  <List className="w-64">
46
48
  <ListItem icon={<CheckIcon />}>Design tokens included</ListItem>
@@ -54,6 +56,7 @@ export const WithIcons: Story = {
54
56
  }
55
57
 
56
58
  export const Ordered: Story = {
59
+ parameters: { controls: { disable: true } },
57
60
  render: () => (
58
61
  <List type="ol" className="w-64">
59
62
  <ListItem icon={<span className="font-mono text-xs text-muted-foreground select-none">01</span>}>
@@ -73,6 +76,7 @@ export const Ordered: Story = {
73
76
  }
74
77
 
75
78
  export const Spacing_Sm: Story = {
79
+ parameters: { controls: { disable: true } },
76
80
  render: () => (
77
81
  <List spacing="sm" className="w-64">
78
82
  <ListItem icon={<ZapIcon />}>Lint tokens</ListItem>
@@ -84,6 +88,7 @@ export const Spacing_Sm: Story = {
84
88
  }
85
89
 
86
90
  export const Spacing_Default: Story = {
91
+ parameters: { controls: { disable: true } },
87
92
  render: () => (
88
93
  <List spacing="default" className="w-64">
89
94
  <ListItem icon={<CircleIcon />}>Default spacing</ListItem>
@@ -94,6 +99,7 @@ export const Spacing_Default: Story = {
94
99
  }
95
100
 
96
101
  export const Spacing_Lg: Story = {
102
+ parameters: { controls: { disable: true } },
97
103
  render: () => (
98
104
  <List spacing="lg" className="w-64">
99
105
  <ListItem icon={<StarIcon />}>Generous spacing</ListItem>
@@ -104,6 +110,7 @@ export const Spacing_Lg: Story = {
104
110
  }
105
111
 
106
112
  export const Nested: Story = {
113
+ parameters: { controls: { disable: true } },
107
114
  render: () => (
108
115
  <List className="w-72">
109
116
  <ListItem icon={<FileTextIcon />}>
@@ -129,6 +136,7 @@ export const Nested: Story = {
129
136
  }
130
137
 
131
138
  export const RealisticUse: Story = {
139
+ parameters: { controls: { disable: true } },
132
140
  render: () => (
133
141
  <div className="w-80 rounded-lg border border-border bg-card p-5 space-y-4">
134
142
  <div>
@@ -105,6 +105,7 @@ export const MultiSelect: Story = {
105
105
  // ---------------------------------------------------------------------------
106
106
 
107
107
  export const Disabled: Story = {
108
+ parameters: { controls: { disable: true } },
108
109
  render: () => (
109
110
  <div className="w-64">
110
111
  <Listbox
@@ -38,15 +38,17 @@ export const Color_Primary: Story = {
38
38
  }
39
39
 
40
40
  export const Disabled: Story = {
41
+ parameters: { controls: { disable: true } },
41
42
  render: () => (
42
43
  <span className="inline-flex items-center gap-2 text-muted-foreground">
43
- <LoadingDots color="muted" size="sm" aria-label="Paused" />
44
+ <LoadingDots tone="muted" size="sm" aria-label="Paused" />
44
45
  <span className="text-sm">Paused</span>
45
46
  </span>
46
47
  ),
47
48
  }
48
49
 
49
50
  export const RealisticUse: Story = {
51
+ parameters: { controls: { disable: true } },
50
52
  render: () => (
51
53
  <div className="flex flex-col gap-6">
52
54
  <div className="space-y-2">
@@ -59,13 +61,13 @@ export const RealisticUse: Story = {
59
61
  <p className="text-xs font-medium text-muted-foreground">Inline in text</p>
60
62
  <p className="flex items-center gap-2 text-sm text-muted-foreground">
61
63
  Fetching results
62
- <LoadingDots size="sm" color="muted" />
64
+ <LoadingDots size="sm" tone="muted" />
63
65
  </p>
64
66
  </div>
65
67
  <div className="space-y-2">
66
68
  <p className="text-xs font-medium text-muted-foreground">Standalone placeholder</p>
67
69
  <div className="flex h-10 w-full items-center justify-center rounded-md border border-dashed">
68
- <LoadingDots color="muted" aria-label="Loading content" />
70
+ <LoadingDots tone="muted" aria-label="Loading content" />
69
71
  </div>
70
72
  </div>
71
73
  </div>
@@ -50,6 +50,7 @@ function TokenProposalBody() {
50
50
  }
51
51
 
52
52
  export const Default: Story = {
53
+ parameters: { controls: { disable: true } },
53
54
  render: () => (
54
55
  <LoadingOverlay loading>
55
56
  <TokenProposalBody />
@@ -58,7 +59,7 @@ export const Default: Story = {
58
59
  };
59
60
 
60
61
  export const FullScreen: Story = {
61
- parameters: { layout: "fullscreen" },
62
+ parameters: { controls: { disable: true }, layout: "fullscreen" },
62
63
  render: () => (
63
64
  <div className="p-8">
64
65
  <p className="text-sm text-muted-foreground">
@@ -74,6 +75,7 @@ export const FullScreen: Story = {
74
75
  };
75
76
 
76
77
  export const WithBlur: Story = {
78
+ parameters: { controls: { disable: true } },
77
79
  render: () => (
78
80
  <LoadingOverlay loading blur>
79
81
  <TokenProposalBody />
@@ -100,6 +102,7 @@ function ControlledDemo() {
100
102
  }
101
103
 
102
104
  export const Controlled: Story = {
105
+ parameters: { controls: { disable: true } },
103
106
  render: () => <ControlledDemo />,
104
107
  };
105
108
 
@@ -144,5 +147,6 @@ function RealisticUseDemo() {
144
147
  }
145
148
 
146
149
  export const RealisticUse: Story = {
150
+ parameters: { controls: { disable: true } },
147
151
  render: () => <RealisticUseDemo />,
148
152
  };
@@ -16,6 +16,7 @@ export default meta;
16
16
  type Story = StoryObj<typeof meta>;
17
17
 
18
18
  export const Default: Story = {
19
+ parameters: { controls: { disable: true } },
19
20
  render: () => (
20
21
  <p className="max-w-prose text-base">
21
22
  The most important constraint in BADS is{" "}
@@ -26,6 +27,7 @@ export const Default: Story = {
26
27
  };
27
28
 
28
29
  export const Variant_Primary: Story = {
30
+ parameters: { controls: { disable: true } },
29
31
  render: () => (
30
32
  <p className="max-w-prose text-base">
31
33
  Use <Mark variant="primary">primary tint</Mark> for branded or
@@ -36,6 +38,7 @@ export const Variant_Primary: Story = {
36
38
  };
37
39
 
38
40
  export const Variant_Secondary: Story = {
41
+ parameters: { controls: { disable: true } },
39
42
  render: () => (
40
43
  <p className="max-w-prose text-base">
41
44
  A <Mark variant="secondary">secondary surface mark</Mark> reads as
@@ -46,6 +49,7 @@ export const Variant_Secondary: Story = {
46
49
  };
47
50
 
48
51
  export const InParagraph: Story = {
52
+ parameters: { controls: { disable: true } },
49
53
  render: () => (
50
54
  <div className="max-w-prose space-y-3 text-base">
51
55
  <p>
@@ -64,6 +68,7 @@ export const InParagraph: Story = {
64
68
  };
65
69
 
66
70
  export const RealisticUse: Story = {
71
+ parameters: { controls: { disable: true } },
67
72
  render: () => (
68
73
  <div className="max-w-prose space-y-4">
69
74
  <h3 className="text-lg font-semibold">Release notes — v2.4.0</h3>
@@ -81,6 +81,7 @@ function TopicChips() {
81
81
  }
82
82
 
83
83
  export const Default: Story = {
84
+ parameters: { controls: { disable: true } },
84
85
  render: () => (
85
86
  <div className="w-full max-w-2xl">
86
87
  <Marquee aria-label="Documentation topics">
@@ -91,6 +92,7 @@ export const Default: Story = {
91
92
  };
92
93
 
93
94
  export const Variant_ReverseDirection: Story = {
95
+ parameters: { controls: { disable: true } },
94
96
  render: () => (
95
97
  <div className="w-full max-w-2xl">
96
98
  <Marquee aria-label="Documentation topics" direction="right">
@@ -101,6 +103,7 @@ export const Variant_ReverseDirection: Story = {
101
103
  };
102
104
 
103
105
  export const Variant_EdgeFade: Story = {
106
+ parameters: { controls: { disable: true } },
104
107
  render: () => (
105
108
  <div className="w-full max-w-2xl">
106
109
  <Marquee aria-label="Documentation topics" fade>
@@ -144,6 +147,7 @@ export const WithoutControl: Story = {
144
147
  };
145
148
 
146
149
  export const RealisticUse: Story = {
150
+ parameters: { controls: { disable: true } },
147
151
  render: () => (
148
152
  <div className="w-full max-w-3xl space-y-3">
149
153
  <p className="text-sm font-medium text-muted-foreground">
@@ -74,6 +74,7 @@ function DocNoteCard({ topic, body }: { topic: string; body: string }) {
74
74
  }
75
75
 
76
76
  export const Default: Story = {
77
+ parameters: { controls: { disable: true } },
77
78
  render: () => (
78
79
  <Masonry>
79
80
  {DOC_NOTES.map((note) => (
@@ -84,6 +85,7 @@ export const Default: Story = {
84
85
  };
85
86
 
86
87
  export const TwoColumns: Story = {
88
+ parameters: { controls: { disable: true } },
87
89
  render: () => (
88
90
  <Masonry columns={2}>
89
91
  {DOC_NOTES.map((note) => (
@@ -94,6 +96,7 @@ export const TwoColumns: Story = {
94
96
  };
95
97
 
96
98
  export const FourColumns: Story = {
99
+ parameters: { controls: { disable: true } },
97
100
  render: () => (
98
101
  <Masonry columns={4} gap="3">
99
102
  {DOC_NOTES.map((note) => (
@@ -105,6 +108,7 @@ export const FourColumns: Story = {
105
108
 
106
109
  export const Responsive: Story = {
107
110
  name: "Responsive ({ sm: 1, md: 2, lg: 3 })",
111
+ parameters: { controls: { disable: true } },
108
112
  render: () => (
109
113
  <Masonry columns={{ sm: 1, md: 2, lg: 3 }}>
110
114
  {DOC_NOTES.map((note) => (
@@ -158,6 +162,7 @@ function initials(name: string) {
158
162
  }
159
163
 
160
164
  export const RealisticUse: Story = {
165
+ parameters: { controls: { disable: true } },
161
166
  render: () => (
162
167
  <Masonry columns={{ sm: 1, md: 2, lg: 3 }} gap="4">
163
168
  {TESTIMONIALS.slice(0, 2).map((t) => (
@@ -28,6 +28,7 @@ export default meta;
28
28
  type Story = StoryObj<typeof meta>;
29
29
 
30
30
  export const Default: Story = {
31
+ parameters: { controls: { disable: true } },
31
32
  render: () => (
32
33
  <Menubar>
33
34
  <MenubarMenu>
@@ -105,6 +106,7 @@ export const Default: Story = {
105
106
  };
106
107
 
107
108
  export const WithRadioGroup: Story = {
109
+ parameters: { controls: { disable: true } },
108
110
  render: () => (
109
111
  <Menubar>
110
112
  <MenubarMenu>
@@ -132,6 +134,7 @@ export const WithRadioGroup: Story = {
132
134
  };
133
135
 
134
136
  export const RealisticUse: Story = {
137
+ parameters: { controls: { disable: true } },
135
138
  render: () => (
136
139
  <div className="w-full max-w-2xl rounded-md border bg-card">
137
140
  <div className="border-b px-2 py-1.5">
@@ -26,35 +26,34 @@ export default meta
26
26
  type Story = StoryObj<typeof Meter>
27
27
 
28
28
  export const Default: Story = {
29
- render: () => <Meter value={62} aria-label="Storage used" />,
29
+ args: { value: 62, "aria-label": "Storage used" },
30
30
  }
31
31
 
32
32
  export const WithLabel: Story = {
33
+ parameters: { controls: { disable: true } },
33
34
  render: () => (
34
35
  <Meter value={12.4} min={0} max={20} label="Asset storage" showValue getValueLabel={(v, _min, max) => `${v} GB of ${max} GB`} />
35
36
  ),
36
37
  }
37
38
 
38
39
  export const Variant_Success: Story = {
40
+ parameters: { controls: { disable: true } },
39
41
  render: () => (
40
42
  <Meter value={98.4} variant="success" label="Story coverage" showValue getValueLabel={(v) => `${v}%`} />
41
43
  ),
42
44
  }
43
45
 
44
46
  export const Variant_Warning: Story = {
45
- render: () => (
46
- <Meter value={78} variant="warning" label="Token budget used" showValue />
47
- ),
47
+ args: { value: 78, variant: "warning", label: "Token budget used", showValue: true },
48
48
  }
49
49
 
50
50
  export const Variant_Destructive: Story = {
51
- render: () => (
52
- <Meter value={94} variant="destructive" label="Contrast failures quota" showValue />
53
- ),
51
+ args: { value: 94, variant: "destructive", label: "Contrast failures quota", showValue: true },
54
52
  }
55
53
 
56
54
  export const WithVariants: Story = {
57
55
  name: "WithVariants (threshold walk)",
56
+ parameters: { controls: { disable: true } },
58
57
  render: () => {
59
58
  // The variant is explicit — the consumer maps value → threshold. This is
60
59
  // the canonical mapping for a "remaining capacity" reading.
@@ -80,17 +79,15 @@ export const WithVariants: Story = {
80
79
  }
81
80
 
82
81
  export const Size_Sm: Story = {
83
- render: () => <Meter value={62} size="sm" aria-label="Storage used (small)" />,
82
+ args: { value: 62, size: "sm", "aria-label": "Storage used (small)" },
84
83
  }
85
84
 
86
85
  export const Size_Default: Story = {
87
- render: () => (
88
- <Meter value={62} size="default" aria-label="Storage used (default)" />
89
- ),
86
+ args: { value: 62, size: "default", "aria-label": "Storage used (default)" },
90
87
  }
91
88
 
92
89
  export const Size_Lg: Story = {
93
- render: () => <Meter value={62} size="lg" aria-label="Storage used (large)" />,
90
+ args: { value: 62, size: "lg", "aria-label": "Storage used (large)" },
94
91
  }
95
92
 
96
93
  export const Disabled: Story = {
@@ -99,14 +96,11 @@ export const Disabled: Story = {
99
96
  // the reduced contrast is expected and acceptable for this state.
100
97
  a11y: { config: { rules: [{ id: "color-contrast", enabled: false }] } },
101
98
  },
102
- render: () => (
103
- // Label stays at full opacity (full contrast) when disabled — only the
104
- // track bar is dimmed. Keeps the label readable at WCAG AAA 7:1.
105
- <Meter value={62} disabled label="Asset storage (workspace archived)" showValue />
106
- ),
99
+ args: { value: 62, disabled: true, label: "Asset storage (workspace archived)", showValue: true },
107
100
  }
108
101
 
109
102
  export const RealisticUse: Story = {
103
+ parameters: { controls: { disable: true } },
110
104
  render: () => {
111
105
  // Persona content pool (content/personas/bads.json): Jordan Reeves,
112
106
  // design.bads.com, registry/story-coverage metrics.
@@ -21,10 +21,11 @@ export default meta;
21
21
  type Story = StoryObj<typeof meta>;
22
22
 
23
23
  export const Default: Story = {
24
- render: () => <MonthPicker className="rounded-md border" />,
24
+ args: { className: "rounded-md border" },
25
25
  };
26
26
 
27
27
  export const Selected: Story = {
28
+ parameters: { controls: { disable: true } },
28
29
  render: () => {
29
30
  // Persona pool date (content/personas/bads.json → primary.dates): 2026-05-26,
30
31
  // normalized by the component to the first of the month.
@@ -40,6 +41,7 @@ export const Selected: Story = {
40
41
  };
41
42
 
42
43
  export const Disabled: Story = {
44
+ parameters: { controls: { disable: true } },
43
45
  render: () => (
44
46
  // When disabled: grid div gets tabIndex=0 (keyboard-reachable without
45
47
  // placing tabIndex=0 on a non-focusable button); year text uses
@@ -53,6 +55,7 @@ export const Disabled: Story = {
53
55
  };
54
56
 
55
57
  export const WithDisabledMonths: Story = {
58
+ parameters: { controls: { disable: true } },
56
59
  render: () => {
57
60
  // Months before the engagement kickoff (persona pool date 2026-01-15)
58
61
  // are not selectable.
@@ -70,6 +73,7 @@ export const WithDisabledMonths: Story = {
70
73
  };
71
74
 
72
75
  export const RealisticUse: Story = {
76
+ parameters: { controls: { disable: true } },
73
77
  render: () => {
74
78
  const [period, setPeriod] = useState<Date>(new Date(2026, 4, 1));
75
79
  const label = period.toLocaleString("en-US", {
@@ -40,6 +40,7 @@ export const Size_Lg: Story = {
40
40
  // Realistic use: an Appearance settings row pairing the label + control + hint,
41
41
  // the shape a fork drops into its own settings surface.
42
42
  export const RealisticUse: Story = {
43
+ parameters: { controls: { disable: true } },
43
44
  render: () => (
44
45
  <div className="flex w-96 flex-col gap-4 rounded-lg border bg-card p-6">
45
46
  <div className="flex flex-col gap-1">
@@ -39,6 +39,7 @@ export default meta
39
39
  type Story = StoryObj<typeof MultiSelect>
40
40
 
41
41
  export const Default: Story = {
42
+ parameters: { controls: { disable: true } },
42
43
  render: () => {
43
44
  const [val, setVal] = React.useState<string[]>([])
44
45
  return (
@@ -50,6 +51,7 @@ export const Default: Story = {
50
51
  }
51
52
 
52
53
  export const WithPreselected: Story = {
54
+ parameters: { controls: { disable: true } },
53
55
  render: () => {
54
56
  const [val, setVal] = React.useState<string[]>(["next", "remix"])
55
57
  return (
@@ -61,6 +63,7 @@ export const WithPreselected: Story = {
61
63
  }
62
64
 
63
65
  export const WithMaxCount: Story = {
66
+ parameters: { controls: { disable: true } },
64
67
  render: () => {
65
68
  const [val, setVal] = React.useState<string[]>(["next", "remix", "astro", "nuxt"])
66
69
  return (
@@ -77,6 +80,7 @@ export const WithMaxCount: Story = {
77
80
  }
78
81
 
79
82
  export const Disabled: Story = {
83
+ parameters: { controls: { disable: true } },
80
84
  render: () => (
81
85
  <div className="w-72">
82
86
  <MultiSelect options={FRAMEWORKS} value={["next"]} disabled />
@@ -85,6 +89,7 @@ export const Disabled: Story = {
85
89
  }
86
90
 
87
91
  export const EmptyState: Story = {
92
+ parameters: { controls: { disable: true } },
88
93
  render: () => (
89
94
  <div className="w-72">
90
95
  <MultiSelect options={[]} value={[]} emptyText="No frameworks found." />
@@ -94,6 +99,7 @@ export const EmptyState: Story = {
94
99
 
95
100
  export const Size_Sm: Story = {
96
101
  name: "Size — sm",
102
+ parameters: { controls: { disable: true } },
97
103
  render: () => {
98
104
  const [val, setVal] = React.useState<string[]>([])
99
105
  return (
@@ -106,6 +112,7 @@ export const Size_Sm: Story = {
106
112
 
107
113
  export const Size_Lg: Story = {
108
114
  name: "Size — lg",
115
+ parameters: { controls: { disable: true } },
109
116
  render: () => {
110
117
  const [val, setVal] = React.useState<string[]>([])
111
118
  return (
@@ -118,6 +125,7 @@ export const Size_Lg: Story = {
118
125
 
119
126
  export const Size_Xl: Story = {
120
127
  name: "Size — xl (CTA floor, 44 px)",
128
+ parameters: { controls: { disable: true } },
121
129
  render: () => {
122
130
  const [val, setVal] = React.useState<string[]>([])
123
131
  return (
@@ -129,6 +137,7 @@ export const Size_Xl: Story = {
129
137
  }
130
138
 
131
139
  export const RealisticUse: Story = {
140
+ parameters: { controls: { disable: true } },
132
141
  render: () => {
133
142
  const [tags, setTags] = React.useState<string[]>(["next", "remix"])
134
143
  return (
@@ -85,6 +85,7 @@ export const WithError: Story = {
85
85
  };
86
86
 
87
87
  export const RealisticUse: Story = {
88
+ parameters: { controls: { disable: true } },
88
89
  render: () => (
89
90
  <div className="flex flex-col gap-3 w-64">
90
91
  <label htmlFor="focus-area" className="text-sm font-medium text-foreground">