@behavioral-agentic-design-system/core 0.45.0 → 0.48.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 (240) 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 +183 -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/number-field.tsx +390 -0
  70. package/src/components/ui/radio-group.tsx +2 -2
  71. package/src/components/ui/sparkline.tsx +33 -4
  72. package/src/components/ui/spinner.tsx +23 -4
  73. package/src/components/ui/table.tsx +9 -0
  74. package/src/components/ui/week-picker.tsx +0 -12
  75. package/src/data/component-added.json +12 -0
  76. package/src/data/docs-index.ts +22 -1
  77. package/src/data/history.json +162 -162
  78. package/src/data/sticker-sheet.json +9297 -0
  79. package/src/docs-trace-globs.json +1 -0
  80. package/src/lib/chart-motion.ts +41 -0
  81. package/src/lib/get-icon-color.ts +1 -1
  82. package/src/stories/Accordion.stories.tsx +7 -0
  83. package/src/stories/ActionBar.stories.tsx +5 -0
  84. package/src/stories/Affix.stories.tsx +4 -0
  85. package/src/stories/AiBadge.stories.tsx +9 -7
  86. package/src/stories/Alert.stories.tsx +13 -0
  87. package/src/stories/AlertDialog.stories.tsx +4 -0
  88. package/src/stories/Anchor.stories.tsx +5 -0
  89. package/src/stories/AngleSlider.stories.tsx +6 -3
  90. package/src/stories/AspectRatio.stories.tsx +4 -0
  91. package/src/stories/Autocomplete.stories.tsx +6 -0
  92. package/src/stories/Avatar.stories.tsx +10 -0
  93. package/src/stories/Badge.stories.tsx +14 -6
  94. package/src/stories/Blockquote.stories.tsx +6 -0
  95. package/src/stories/BottomNavigation.stories.tsx +4 -0
  96. package/src/stories/Breadcrumb.stories.tsx +3 -0
  97. package/src/stories/Burger.stories.tsx +1 -0
  98. package/src/stories/Button.stories.tsx +24 -0
  99. package/src/stories/ButtonGroup.stories.tsx +9 -0
  100. package/src/stories/Calendar.stories.tsx +3 -0
  101. package/src/stories/Card.stories.tsx +4 -0
  102. package/src/stories/Carousel.stories.tsx +6 -0
  103. package/src/stories/Cascader.stories.tsx +4 -0
  104. package/src/stories/Chart.stories.tsx +46 -1
  105. package/src/stories/ChatBubble.stories.tsx +8 -2
  106. package/src/stories/ChatMarker.stories.tsx +1 -0
  107. package/src/stories/Checkbox.stories.tsx +40 -0
  108. package/src/stories/CheckboxCard.stories.tsx +8 -0
  109. package/src/stories/CheckboxGroup.stories.tsx +20 -0
  110. package/src/stories/Chip.stories.tsx +10 -19
  111. package/src/stories/CircularProgress.stories.tsx +13 -27
  112. package/src/stories/Clipboard.stories.tsx +6 -0
  113. package/src/stories/CloseButton.stories.tsx +6 -4
  114. package/src/stories/Code.stories.tsx +8 -1
  115. package/src/stories/Collapsible.stories.tsx +2 -0
  116. package/src/stories/ColorPicker.stories.tsx +6 -0
  117. package/src/stories/ColorSwatch.stories.tsx +1 -0
  118. package/src/stories/Combobox.stories.tsx +9 -0
  119. package/src/stories/Command.stories.tsx +2 -0
  120. package/src/stories/Container.stories.tsx +8 -0
  121. package/src/stories/ContextMenu.stories.tsx +9 -0
  122. package/src/stories/CopyButton.stories.tsx +12 -36
  123. package/src/stories/DataList.stories.tsx +8 -0
  124. package/src/stories/DataTable.stories.tsx +9 -0
  125. package/src/stories/DateField.stories.tsx +7 -0
  126. package/src/stories/DatePicker.stories.tsx +34 -0
  127. package/src/stories/DateRangePicker.stories.tsx +32 -0
  128. package/src/stories/Dialog.stories.tsx +8 -0
  129. package/src/stories/Drawer.stories.tsx +6 -0
  130. package/src/stories/DropdownMenu.stories.tsx +2 -0
  131. package/src/stories/Editable.stories.tsx +10 -0
  132. package/src/stories/EmptyState.stories.tsx +9 -0
  133. package/src/stories/Field.stories.tsx +7 -0
  134. package/src/stories/Fieldset.stories.tsx +8 -0
  135. package/src/stories/FileButton.stories.tsx +4 -0
  136. package/src/stories/FileUpload.stories.tsx +16 -17
  137. package/src/stories/FloatLabel.stories.tsx +3 -8
  138. package/src/stories/FloatingActionButton.stories.tsx +10 -0
  139. package/src/stories/FloatingIndicator.stories.tsx +4 -0
  140. package/src/stories/FloatingPanel.stories.tsx +6 -0
  141. package/src/stories/FocusTrap.stories.tsx +5 -0
  142. package/src/stories/FormatByte.stories.tsx +6 -0
  143. package/src/stories/FormatDate.stories.tsx +8 -0
  144. package/src/stories/FormatNumber.stories.tsx +9 -0
  145. package/src/stories/Heatmap.stories.tsx +11 -0
  146. package/src/stories/Highlight.stories.tsx +6 -0
  147. package/src/stories/HoverCard.stories.tsx +4 -0
  148. package/src/stories/Image.stories.tsx +9 -0
  149. package/src/stories/Indicator.stories.tsx +19 -0
  150. package/src/stories/Input.stories.tsx +7 -0
  151. package/src/stories/InputClearButton.stories.tsx +3 -0
  152. package/src/stories/InputGroup.stories.tsx +40 -0
  153. package/src/stories/Kbd.stories.tsx +7 -1
  154. package/src/stories/KeyboardShortcut.stories.tsx +2 -0
  155. package/src/stories/Label.stories.tsx +2 -0
  156. package/src/stories/Link.stories.tsx +9 -0
  157. package/src/stories/List.stories.tsx +8 -0
  158. package/src/stories/Listbox.stories.tsx +1 -0
  159. package/src/stories/LoadingDots.stories.tsx +5 -3
  160. package/src/stories/LoadingOverlay.stories.tsx +5 -1
  161. package/src/stories/Mark.stories.tsx +5 -0
  162. package/src/stories/Marquee.stories.tsx +4 -0
  163. package/src/stories/Masonry.stories.tsx +5 -0
  164. package/src/stories/Menubar.stories.tsx +3 -0
  165. package/src/stories/Meter.stories.tsx +11 -17
  166. package/src/stories/MonthPicker.stories.tsx +5 -1
  167. package/src/stories/MotionToggle.stories.tsx +1 -0
  168. package/src/stories/MultiSelect.stories.tsx +9 -0
  169. package/src/stories/NativeSelect.stories.tsx +1 -0
  170. package/src/stories/NavLink.stories.tsx +7 -0
  171. package/src/stories/NavigationMenu.stories.tsx +5 -0
  172. package/src/stories/NavigationRail.stories.tsx +10 -0
  173. package/src/stories/Notification.stories.tsx +13 -34
  174. package/src/stories/NumberField.stories.tsx +214 -0
  175. package/src/stories/NumberInput.stories.tsx +8 -1
  176. package/src/stories/Overlay.stories.tsx +5 -1
  177. package/src/stories/Pagination.stories.tsx +8 -0
  178. package/src/stories/PasswordInput.stories.tsx +2 -0
  179. package/src/stories/PinInput.stories.tsx +9 -2
  180. package/src/stories/Popover.stories.tsx +2 -0
  181. package/src/stories/Progress.stories.tsx +6 -1
  182. package/src/stories/Prose.stories.tsx +8 -0
  183. package/src/stories/QrCode.stories.tsx +2 -0
  184. package/src/stories/Questionnaire.stories.tsx +7 -0
  185. package/src/stories/RadioGroup.stories.tsx +40 -0
  186. package/src/stories/RatingGroup.stories.tsx +8 -4
  187. package/src/stories/Resizable.stories.tsx +4 -2
  188. package/src/stories/Result.stories.tsx +3 -0
  189. package/src/stories/Reveal.stories.tsx +2 -0
  190. package/src/stories/RollingNumber.stories.tsx +5 -0
  191. package/src/stories/ScrollArea.stories.tsx +3 -1
  192. package/src/stories/SearchInput.stories.tsx +8 -6
  193. package/src/stories/SegmentedControl.stories.tsx +11 -0
  194. package/src/stories/Select.stories.tsx +7 -0
  195. package/src/stories/Separator.stories.tsx +6 -0
  196. package/src/stories/Sheet.stories.tsx +5 -0
  197. package/src/stories/Sidebar.stories.tsx +40 -1
  198. package/src/stories/SimpleGrid.stories.tsx +5 -0
  199. package/src/stories/Skeleton.stories.tsx +8 -0
  200. package/src/stories/SkeletonTable.stories.tsx +6 -5
  201. package/src/stories/SkipLink.stories.tsx +3 -0
  202. package/src/stories/Slider.stories.tsx +2 -1
  203. package/src/stories/Sonner.stories.tsx +7 -0
  204. package/src/stories/Sparkline.stories.tsx +14 -1
  205. package/src/stories/Spinner.stories.tsx +20 -10
  206. package/src/stories/Spoiler.stories.tsx +5 -0
  207. package/src/stories/Squircle.stories.tsx +7 -0
  208. package/src/stories/Stack.stories.tsx +7 -0
  209. package/src/stories/StatusBadge.stories.tsx +12 -6
  210. package/src/stories/Stepper.stories.tsx +5 -0
  211. package/src/stories/Switch.stories.tsx +4 -0
  212. package/src/stories/Table.stories.tsx +10 -1
  213. package/src/stories/Tabs.stories.tsx +8 -0
  214. package/src/stories/Tag.stories.tsx +13 -5
  215. package/src/stories/TagsInput.stories.tsx +13 -0
  216. package/src/stories/Text.stories.tsx +12 -0
  217. package/src/stories/Textarea.stories.tsx +9 -0
  218. package/src/stories/ThemeIcon.stories.tsx +6 -3
  219. package/src/stories/TimePicker.stories.tsx +2 -0
  220. package/src/stories/Timeline.stories.tsx +12 -0
  221. package/src/stories/Timer.stories.tsx +4 -0
  222. package/src/stories/Toggle.stories.tsx +7 -5
  223. package/src/stories/ToggleGroup.stories.tsx +5 -0
  224. package/src/stories/ToggleTip.stories.tsx +4 -0
  225. package/src/stories/Toolbar.stories.tsx +6 -0
  226. package/src/stories/Tooltip.stories.tsx +3 -0
  227. package/src/stories/Tour.stories.tsx +3 -0
  228. package/src/stories/TransferList.stories.tsx +3 -0
  229. package/src/stories/TreeSelect.stories.tsx +4 -0
  230. package/src/stories/TreeView.stories.tsx +5 -0
  231. package/src/stories/TypingIndicator.stories.tsx +4 -0
  232. package/src/stories/VisuallyHidden.stories.tsx +3 -0
  233. package/src/stories/Watermark.stories.tsx +6 -0
  234. package/src/stories/WeekPicker.stories.tsx +4 -1
  235. package/src/stories/WordRotate.stories.tsx +5 -0
  236. package/src/stories/YearPicker.stories.tsx +5 -11
  237. package/src/stories/story-groups.json +2 -1
  238. package/src/styles.css +50 -2
  239. package/src/tokens.json +4 -4
  240. package/LICENSE +0 -21
@@ -38,6 +38,7 @@ type Story = StoryObj<typeof meta>
38
38
  const KICKOFF = new Date(2026, 0, 15) // 2026-01-15
39
39
 
40
40
  export const Default: Story = {
41
+ parameters: { controls: { disable: true } },
41
42
  render: () => (
42
43
  <p className="text-sm text-foreground">
43
44
  Engagement start:{" "}
@@ -47,6 +48,7 @@ export const Default: Story = {
47
48
  }
48
49
 
49
50
  export const DateStyle_Full: Story = {
51
+ parameters: { controls: { disable: true } },
50
52
  render: () => (
51
53
  <p className="text-sm text-foreground">
52
54
  <FormatDate value={KICKOFF} dateStyle="full" className="font-medium" />
@@ -55,6 +57,7 @@ export const DateStyle_Full: Story = {
55
57
  }
56
58
 
57
59
  export const DateStyle_Long: Story = {
60
+ parameters: { controls: { disable: true } },
58
61
  render: () => (
59
62
  <p className="text-sm text-foreground">
60
63
  <FormatDate value={KICKOFF} dateStyle="long" className="font-medium" />
@@ -63,6 +66,7 @@ export const DateStyle_Long: Story = {
63
66
  }
64
67
 
65
68
  export const DateStyle_Short: Story = {
69
+ parameters: { controls: { disable: true } },
66
70
  render: () => (
67
71
  <p className="text-sm text-foreground">
68
72
  <FormatDate value={KICKOFF} dateStyle="short" className="font-medium" />
@@ -71,6 +75,7 @@ export const DateStyle_Short: Story = {
71
75
  }
72
76
 
73
77
  export const WithTime: Story = {
78
+ parameters: { controls: { disable: true } },
74
79
  render: () => (
75
80
  <p className="text-sm text-foreground">
76
81
  Report generated:{" "}
@@ -85,6 +90,7 @@ export const WithTime: Story = {
85
90
  }
86
91
 
87
92
  export const WithTimeStyle_Short: Story = {
93
+ parameters: { controls: { disable: true } },
88
94
  render: () => (
89
95
  <div className="space-y-2 text-sm text-foreground">
90
96
  <p>
@@ -110,6 +116,7 @@ export const WithTimeStyle_Short: Story = {
110
116
  }
111
117
 
112
118
  export const RelativeFallback: Story = {
119
+ parameters: { controls: { disable: true } },
113
120
  render: () => (
114
121
  <div className="space-y-2 text-sm">
115
122
  <p className="text-foreground">
@@ -130,6 +137,7 @@ export const RelativeFallback: Story = {
130
137
  }
131
138
 
132
139
  export const RealisticUse: Story = {
140
+ parameters: { controls: { disable: true } },
133
141
  render: () => (
134
142
  <Card className="w-96">
135
143
  <CardHeader>
@@ -40,6 +40,7 @@ type Story = StoryObj<typeof meta>
40
40
  // Hyperlegible). Stories that pass `tabular` explicitly are just being explicit.
41
41
 
42
42
  export const Default: Story = {
43
+ parameters: { controls: { disable: true } },
43
44
  render: () => (
44
45
  <p className="text-sm text-foreground">
45
46
  Orphan-token lint scanned{" "}
@@ -50,6 +51,7 @@ export const Default: Story = {
50
51
  }
51
52
 
52
53
  export const Currency: Story = {
54
+ parameters: { controls: { disable: true } },
53
55
  render: () => (
54
56
  <div className="space-y-2 text-sm text-foreground">
55
57
  <p>
@@ -84,6 +86,7 @@ export const Currency: Story = {
84
86
  }
85
87
 
86
88
  export const Percent: Story = {
89
+ parameters: { controls: { disable: true } },
87
90
  render: () => (
88
91
  <div className="space-y-2 text-sm text-foreground">
89
92
  <p>
@@ -110,6 +113,7 @@ export const Percent: Story = {
110
113
  }
111
114
 
112
115
  export const Unit: Story = {
116
+ parameters: { controls: { disable: true } },
113
117
  render: () => (
114
118
  <div className="space-y-2 text-sm text-foreground">
115
119
  <p>
@@ -136,6 +140,7 @@ export const Unit: Story = {
136
140
  }
137
141
 
138
142
  export const Compact: Story = {
143
+ parameters: { controls: { disable: true } },
139
144
  render: () => (
140
145
  <div className="space-y-2 text-sm text-foreground">
141
146
  <p>
@@ -155,6 +160,7 @@ export const Compact: Story = {
155
160
  }
156
161
 
157
162
  export const Locales: Story = {
163
+ parameters: { controls: { disable: true } },
158
164
  render: () => (
159
165
  <div className="space-y-2 text-sm text-foreground">
160
166
  <p>
@@ -196,6 +202,7 @@ export const Locales: Story = {
196
202
  }
197
203
 
198
204
  export const Tabular: Story = {
205
+ parameters: { controls: { disable: true } },
199
206
  render: () => (
200
207
  <div className="grid w-64 grid-cols-[1fr_auto] gap-x-6 gap-y-1 text-sm text-foreground">
201
208
  <span className="text-muted-foreground">Client savings</span>
@@ -230,6 +237,7 @@ export const Tabular: Story = {
230
237
  // Hyperlegible Sans face this is where the decimals cramp/overlap — which is
231
238
  // exactly why tabular is the default.
232
239
  export const Proportional: Story = {
240
+ parameters: { controls: { disable: true } },
233
241
  render: () => (
234
242
  <div className="space-y-2 text-sm text-foreground">
235
243
  <p>
@@ -250,6 +258,7 @@ export const Proportional: Story = {
250
258
  }
251
259
 
252
260
  export const RealisticUse: Story = {
261
+ parameters: { controls: { disable: true } },
253
262
  render: () => (
254
263
  <Card className="w-96">
255
264
  <CardHeader>
@@ -60,6 +60,17 @@ type Story = StoryObj<typeof meta>;
60
60
 
61
61
  export const Default: Story = {};
62
62
 
63
+ // Wider than its box. The heatmap scrolls inside its own region; its screen-reader-only cell text (position:
64
+ // absolute) must stay inside that region, or it stretches the whole page sideways. Check the story canvas has no
65
+ // horizontal page scrollbar.
66
+ export const InNarrowBox: Story = {
67
+ render: (args) => (
68
+ <div className="w-[240px]">
69
+ <Heatmap {...args} />
70
+ </div>
71
+ ),
72
+ };
73
+
63
74
  export const Size_SM: Story = {
64
75
  args: { size: "sm" },
65
76
  };
@@ -19,6 +19,7 @@ type Story = StoryObj<typeof meta>
19
19
  // Content pulled from content/personas/bads.json (primary persona pool).
20
20
 
21
21
  export const Default: Story = {
22
+ parameters: { controls: { disable: true } },
22
23
  render: () => (
23
24
  <p className="max-w-md text-sm leading-relaxed text-foreground">
24
25
  <Highlight highlight="tokens">
@@ -30,6 +31,7 @@ export const Default: Story = {
30
31
  }
31
32
 
32
33
  export const MultipleTerms: Story = {
34
+ parameters: { controls: { disable: true } },
33
35
  render: () => (
34
36
  <p className="max-w-md text-sm leading-relaxed text-foreground">
35
37
  <Highlight highlight={["components", "AAA", "Storybook"]}>
@@ -41,6 +43,7 @@ export const MultipleTerms: Story = {
41
43
  }
42
44
 
43
45
  export const NoMatch: Story = {
46
+ parameters: { controls: { disable: true } },
44
47
  render: () => (
45
48
  <div className="max-w-md space-y-2 text-sm leading-relaxed text-foreground">
46
49
  <p>
@@ -60,6 +63,7 @@ export const NoMatch: Story = {
60
63
  // Queries containing regex-special characters (:, $, parentheses, dots)
61
64
  // must be escaped, not interpreted — an unescaped "(AAA)" would throw.
62
65
  export const SpecialCharacters: Story = {
66
+ parameters: { controls: { disable: true } },
63
67
  render: () => (
64
68
  <div className="max-w-md space-y-2 text-sm leading-relaxed text-foreground">
65
69
  <p>
@@ -79,6 +83,7 @@ export const SpecialCharacters: Story = {
79
83
  }
80
84
 
81
85
  export const CustomMark: Story = {
86
+ parameters: { controls: { disable: true } },
82
87
  render: () => (
83
88
  <p className="max-w-md text-sm leading-relaxed text-foreground">
84
89
  <Highlight
@@ -93,6 +98,7 @@ export const CustomMark: Story = {
93
98
  }
94
99
 
95
100
  export const RealisticUse: Story = {
101
+ parameters: { controls: { disable: true } },
96
102
  render: () => {
97
103
  const query = "token"
98
104
  const results = [
@@ -23,6 +23,7 @@ export default meta;
23
23
  type Story = StoryObj<typeof meta>;
24
24
 
25
25
  export const Default: Story = {
26
+ parameters: { controls: { disable: true } },
26
27
  render: () => (
27
28
  <HoverCard>
28
29
  <HoverCardTrigger asChild>
@@ -64,6 +65,7 @@ export const Default: Story = {
64
65
  };
65
66
 
66
67
  export const LinkPreview: Story = {
68
+ parameters: { controls: { disable: true } },
67
69
  render: () => (
68
70
  <HoverCard>
69
71
  <HoverCardTrigger asChild>
@@ -94,6 +96,7 @@ export const LinkPreview: Story = {
94
96
  };
95
97
 
96
98
  export const AlignStart: Story = {
99
+ parameters: { controls: { disable: true } },
97
100
  render: () => (
98
101
  <HoverCard>
99
102
  <HoverCardTrigger asChild>
@@ -115,6 +118,7 @@ export const AlignStart: Story = {
115
118
  };
116
119
 
117
120
  export const RealisticUse: Story = {
121
+ parameters: { controls: { disable: true } },
118
122
  render: () => (
119
123
  <div className="flex items-center gap-2 text-sm text-muted-foreground">
120
124
  <span>Reviewed by</span>
@@ -31,6 +31,7 @@ const AVATAR = "/avatars/01.png";
31
31
  const BROKEN = "/blog/this-image-does-not-exist.jpg";
32
32
 
33
33
  export const Default: Story = {
34
+ parameters: { controls: { disable: true } },
34
35
  render: () => (
35
36
  <div className="w-96">
36
37
  <Image src={COVER} alt="Abstract cover art for a web development trends article" />
@@ -39,6 +40,7 @@ export const Default: Story = {
39
40
  };
40
41
 
41
42
  export const Ratio_16x9: Story = {
43
+ parameters: { controls: { disable: true } },
42
44
  render: () => (
43
45
  <div className="w-96">
44
46
  <Image
@@ -51,6 +53,7 @@ export const Ratio_16x9: Story = {
51
53
  };
52
54
 
53
55
  export const Ratio_Square: Story = {
56
+ parameters: { controls: { disable: true } },
54
57
  render: () => (
55
58
  <div className="w-48">
56
59
  <Image src={AVATAR} alt="Portrait of Jordan Reeves" ratio="1/1" />
@@ -59,6 +62,7 @@ export const Ratio_Square: Story = {
59
62
  };
60
63
 
61
64
  export const Fit_Contain: Story = {
65
+ parameters: { controls: { disable: true } },
62
66
  render: () => (
63
67
  <div className="w-96">
64
68
  <Image
@@ -72,6 +76,7 @@ export const Fit_Contain: Story = {
72
76
  };
73
77
 
74
78
  export const Radius_Full: Story = {
79
+ parameters: { controls: { disable: true } },
75
80
  render: () => (
76
81
  <div className="w-32">
77
82
  <Image src={AVATAR} alt="Portrait of Seo-yun Park" ratio="1/1" radius="full" />
@@ -80,6 +85,7 @@ export const Radius_Full: Story = {
80
85
  };
81
86
 
82
87
  export const Fallback_Default: Story = {
88
+ parameters: { controls: { disable: true } },
83
89
  render: () => (
84
90
  <div className="w-96">
85
91
  <Image
@@ -92,6 +98,7 @@ export const Fallback_Default: Story = {
92
98
  };
93
99
 
94
100
  export const Fallback_Text: Story = {
101
+ parameters: { controls: { disable: true } },
95
102
  render: () => (
96
103
  <div className="w-96">
97
104
  <Image
@@ -105,6 +112,7 @@ export const Fallback_Text: Story = {
105
112
  };
106
113
 
107
114
  export const WithCaption: Story = {
115
+ parameters: { controls: { disable: true } },
108
116
  render: () => (
109
117
  <div className="w-96">
110
118
  <Image
@@ -118,6 +126,7 @@ export const WithCaption: Story = {
118
126
  };
119
127
 
120
128
  export const RealisticUse: Story = {
129
+ parameters: { controls: { disable: true } },
121
130
  render: () => (
122
131
  <Card className="w-96 overflow-hidden pt-0">
123
132
  <Image
@@ -22,6 +22,7 @@ export default meta
22
22
  type Story = StoryObj<typeof Indicator>
23
23
 
24
24
  export const Default: Story = {
25
+ parameters: { controls: { disable: true } },
25
26
  render: () => (
26
27
  <Indicator>
27
28
  <Avatar>
@@ -32,6 +33,7 @@ export const Default: Story = {
32
33
  }
33
34
 
34
35
  export const WithLabel: Story = {
36
+ parameters: { controls: { disable: true } },
35
37
  render: () => (
36
38
  <Indicator label={5}>
37
39
  <Button variant="outline" size="icon" aria-label="Notifications">
@@ -42,6 +44,7 @@ export const WithLabel: Story = {
42
44
  }
43
45
 
44
46
  export const LargeCount: Story = {
47
+ parameters: { controls: { disable: true } },
45
48
  render: () => (
46
49
  <Indicator label={142} size="lg">
47
50
  <Button variant="outline" size="icon" aria-label="Messages">
@@ -52,6 +55,7 @@ export const LargeCount: Story = {
52
55
  }
53
56
 
54
57
  export const Variant_Destructive: Story = {
58
+ parameters: { controls: { disable: true } },
55
59
  render: () => (
56
60
  <Indicator variant="destructive" label={3}>
57
61
  <Button variant="outline" size="icon" aria-label="Cart">
@@ -65,6 +69,7 @@ export const Variant_Destructive: Story = {
65
69
  // bg-[hsl(var(--success))] — hsl() wrapping an oklch value is invalid CSS and
66
70
  // silently fell back — fixed to bg-[var(--success)] (2026-07-24 paydown).
67
71
  export const Variant_Success: Story = {
72
+ parameters: { controls: { disable: true } },
68
73
  render: () => (
69
74
  <Indicator variant="success">
70
75
  <Avatar>
@@ -75,6 +80,7 @@ export const Variant_Success: Story = {
75
80
  }
76
81
 
77
82
  export const Variant_Warning: Story = {
83
+ parameters: { controls: { disable: true } },
78
84
  render: () => (
79
85
  <Indicator variant="warning" label="!">
80
86
  <Avatar>
@@ -85,6 +91,7 @@ export const Variant_Warning: Story = {
85
91
  }
86
92
 
87
93
  export const Variant_Secondary: Story = {
94
+ parameters: { controls: { disable: true } },
88
95
  render: () => (
89
96
  <Indicator variant="secondary" label={2}>
90
97
  <Avatar>
@@ -95,6 +102,7 @@ export const Variant_Secondary: Story = {
95
102
  }
96
103
 
97
104
  export const Size_Sm: Story = {
105
+ parameters: { controls: { disable: true } },
98
106
  render: () => (
99
107
  <Indicator size="sm">
100
108
  <Avatar>
@@ -105,6 +113,7 @@ export const Size_Sm: Story = {
105
113
  }
106
114
 
107
115
  export const Size_Default: Story = {
116
+ parameters: { controls: { disable: true } },
108
117
  render: () => (
109
118
  <Indicator size="default" label={4}>
110
119
  <Avatar>
@@ -115,6 +124,7 @@ export const Size_Default: Story = {
115
124
  }
116
125
 
117
126
  export const Size_Lg: Story = {
127
+ parameters: { controls: { disable: true } },
118
128
  render: () => (
119
129
  <Indicator size="lg" label={12}>
120
130
  <Avatar>
@@ -125,6 +135,7 @@ export const Size_Lg: Story = {
125
135
  }
126
136
 
127
137
  export const Position_TopLeft: Story = {
138
+ parameters: { controls: { disable: true } },
128
139
  render: () => (
129
140
  <Indicator position="top-left" label={2}>
130
141
  <Avatar>
@@ -135,6 +146,7 @@ export const Position_TopLeft: Story = {
135
146
  }
136
147
 
137
148
  export const Position_BottomRight: Story = {
149
+ parameters: { controls: { disable: true } },
138
150
  render: () => (
139
151
  <Indicator position="bottom-right" variant="success">
140
152
  <Avatar>
@@ -145,6 +157,7 @@ export const Position_BottomRight: Story = {
145
157
  }
146
158
 
147
159
  export const Position_BottomLeft: Story = {
160
+ parameters: { controls: { disable: true } },
148
161
  render: () => (
149
162
  <Indicator position="bottom-left">
150
163
  <Avatar>
@@ -155,6 +168,7 @@ export const Position_BottomLeft: Story = {
155
168
  }
156
169
 
157
170
  export const WithBorder: Story = {
171
+ parameters: { controls: { disable: true } },
158
172
  render: () => (
159
173
  <div className="flex gap-4 bg-muted p-4 rounded-lg">
160
174
  <Indicator withBorder>
@@ -172,6 +186,7 @@ export const WithBorder: Story = {
172
186
  }
173
187
 
174
188
  export const Processing: Story = {
189
+ parameters: { controls: { disable: true } },
175
190
  render: () => (
176
191
  <Indicator processing variant="success">
177
192
  <Avatar>
@@ -182,6 +197,7 @@ export const Processing: Story = {
182
197
  }
183
198
 
184
199
  export const Disabled: Story = {
200
+ parameters: { controls: { disable: true } },
185
201
  render: () => (
186
202
  <Indicator disabled label={5}>
187
203
  <Avatar>
@@ -200,6 +216,7 @@ export const Disabled: Story = {
200
216
  */
201
217
  export const AllPositions: Story = {
202
218
  tags: ["!manifest"],
219
+ parameters: { controls: { disable: true } },
203
220
  render: () => (
204
221
  <div className="grid grid-cols-3 gap-8 p-4">
205
222
  {(["top-left", "top-right", "middle-left", "middle-right", "bottom-left", "bottom-right"] as const).map((pos) => (
@@ -215,6 +232,7 @@ export const AllPositions: Story = {
215
232
  }
216
233
 
217
234
  export const RealisticUse: Story = {
235
+ parameters: { controls: { disable: true } },
218
236
  render: () => (
219
237
  <div className="flex items-center gap-6 p-4">
220
238
  {/* Online status on avatar */}
@@ -257,6 +275,7 @@ export const RealisticUse: Story = {
257
275
  */
258
276
  export const AllVariants: Story = {
259
277
  tags: ["!manifest"],
278
+ parameters: { controls: { disable: true } },
260
279
  render: () => (
261
280
  <div className="flex flex-wrap items-center gap-6">
262
281
  {(["default", "secondary", "destructive", "success", "warning"] as const).map((v) => (
@@ -68,6 +68,7 @@ export const WithError: Story = {
68
68
 
69
69
  export const Variant_Ghost: Story = {
70
70
  name: "Variant: Ghost (inline edit)",
71
+ parameters: { controls: { disable: true } },
71
72
  render: () => {
72
73
  const [value, setValue] = React.useState("Amara Okafor");
73
74
  return (
@@ -92,6 +93,7 @@ export const Variant_Ghost: Story = {
92
93
 
93
94
  export const Variant_Filled: Story = {
94
95
  name: "Variant: Filled",
96
+ parameters: { controls: { disable: true } },
95
97
  render: () => {
96
98
  const [value, setValue] = React.useState("maya.chen@lumenworks.studio");
97
99
  return (
@@ -111,6 +113,7 @@ export const Variant_Filled: Story = {
111
113
 
112
114
  export const Variant_AllThree: Story = {
113
115
  name: "Variant: outline / ghost / filled",
116
+ parameters: { controls: { disable: true } },
114
117
  render: () => (
115
118
  <div className="flex w-72 flex-col gap-4">
116
119
  <Input variant="outline" aria-label="Outline variant" placeholder="Search projects…" />
@@ -156,6 +159,7 @@ export const Variant_WithBothSections: Story = {
156
159
 
157
160
  export const Variant_WithRightText: Story = {
158
161
  name: "Variant: With text sections (currency, percent)",
162
+ parameters: { controls: { disable: true } },
159
163
  render: () => (
160
164
  <div className="flex w-72 flex-col gap-4">
161
165
  <Input
@@ -191,6 +195,7 @@ export const Variant_WithRightText: Story = {
191
195
 
192
196
  export const RealisticUse: Story = {
193
197
  name: "Realistic use: search with clear",
198
+ parameters: { controls: { disable: true } },
194
199
  render: () => {
195
200
  const [value, setValue] = React.useState("design tokens");
196
201
  return (
@@ -219,6 +224,7 @@ export const RealisticUse_Email: Story = {
219
224
 
220
225
  export const Clearable: Story = {
221
226
  name: "Clearable",
227
+ parameters: { controls: { disable: true } },
222
228
  render: () => {
223
229
  const [value, setValue] = React.useState("Clearable input");
224
230
  return (
@@ -235,6 +241,7 @@ export const Clearable: Story = {
235
241
 
236
242
  export const ClearableEmpty: Story = {
237
243
  name: "Clearable (empty — no X shown)",
244
+ parameters: { controls: { disable: true } },
238
245
  render: () => {
239
246
  const [value, setValue] = React.useState("");
240
247
  return (
@@ -19,6 +19,7 @@ export default meta;
19
19
  type Story = StoryObj<typeof meta>;
20
20
 
21
21
  export const Default: Story = {
22
+ parameters: { controls: { disable: true } },
22
23
  render: () => (
23
24
  // Positioned absolutely against its input, so it needs a relative box to
24
25
  // sit in even when shown in isolation.
@@ -30,6 +31,7 @@ export const Default: Story = {
30
31
 
31
32
  export const OffsetForRightSection: Story = {
32
33
  name: "Offset (input has a rightSection)",
34
+ parameters: { controls: { disable: true } },
33
35
  render: () => (
34
36
  <div className="relative h-9 w-[240px] rounded-md border border-input">
35
37
  <InputClearButton className="right-8" />
@@ -41,6 +43,7 @@ export const OffsetForRightSection: Story = {
41
43
  };
42
44
 
43
45
  export const RealisticUse: Story = {
46
+ parameters: { controls: { disable: true } },
44
47
  render: () => (
45
48
  <div className="flex w-[320px] flex-col gap-3">
46
49
  <Label htmlFor="search-city">Search by city</Label>
@@ -9,6 +9,7 @@ import {
9
9
  } from "@behavioral-agentic-design-system/core/components/ui/input-group";
10
10
  import { CopyButton } from "@behavioral-agentic-design-system/core/components/ui/copy-button";
11
11
  import { Search, Link2 } from "lucide-react";
12
+ import { userEvent, within, expect } from "storybook/test";
12
13
 
13
14
  const meta: Meta<typeof InputGroup> = {
14
15
  title: "Components/Forms/InputGroup",
@@ -27,6 +28,7 @@ export default meta;
27
28
  type Story = StoryObj<typeof InputGroup>;
28
29
 
29
30
  export const Default: Story = {
31
+ parameters: { controls: { disable: true } },
30
32
  render: () => (
31
33
  <InputGroup className="w-80">
32
34
  <InputGroupAddon align="inline-start">
@@ -38,6 +40,7 @@ export const Default: Story = {
38
40
  };
39
41
 
40
42
  export const Size_Sm: Story = {
43
+ parameters: { controls: { disable: true } },
41
44
  render: () => (
42
45
  <InputGroup size="sm" className="w-80">
43
46
  <InputGroupAddon align="inline-start">
@@ -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
  <InputGroup size="default" className="w-80">
57
61
  <InputGroupAddon align="inline-start">
@@ -66,6 +70,7 @@ export const Size_Default: Story = {
66
70
  };
67
71
 
68
72
  export const Size_Lg: Story = {
73
+ parameters: { controls: { disable: true } },
69
74
  render: () => (
70
75
  <InputGroup size="lg" className="w-80">
71
76
  <InputGroupAddon align="inline-start">
@@ -80,6 +85,7 @@ export const Size_Lg: Story = {
80
85
  };
81
86
 
82
87
  export const Size_Xl: Story = {
88
+ parameters: { controls: { disable: true } },
83
89
  render: () => (
84
90
  <InputGroup size="xl" className="w-80">
85
91
  <InputGroupAddon align="inline-start">
@@ -94,6 +100,7 @@ export const Size_Xl: Story = {
94
100
  };
95
101
 
96
102
  export const Size_2xl: Story = {
103
+ parameters: { controls: { disable: true } },
97
104
  render: () => (
98
105
  <InputGroup size="2xl" className="w-80">
99
106
  <InputGroupAddon align="inline-start">
@@ -109,6 +116,7 @@ export const Size_2xl: Story = {
109
116
 
110
117
  export const TextPrefix: Story = {
111
118
  name: "Text prefix (protocol)",
119
+ parameters: { controls: { disable: true } },
112
120
  render: () => (
113
121
  <InputGroup className="w-96">
114
122
  <InputGroupAddon align="inline-start">
@@ -120,12 +128,41 @@ export const TextPrefix: Story = {
120
128
  ),
121
129
  };
122
130
 
131
+ // The whole group is one field: in dark mode the input tint (bg-input/30)
132
+ // covers the addons and the inline button too, so the text box never reads as
133
+ // a lighter block floating inside the border. Typing lands in the input and
134
+ // the group shows a single focus ring.
135
+ export const Interaction_TypesInGroup: Story = {
136
+ parameters: { controls: { disable: true } },
137
+ tags: ["test"],
138
+ render: () => (
139
+ <InputGroup className="w-80">
140
+ <InputGroupAddon align="inline-start">
141
+ <InputGroupText>$</InputGroupText>
142
+ </InputGroupAddon>
143
+ <InputGroupInput placeholder="0.00" aria-label="Monthly price" inputMode="decimal" />
144
+ <InputGroupAddon align="inline-end">
145
+ <InputGroupText>/ mo</InputGroupText>
146
+ </InputGroupAddon>
147
+ </InputGroup>
148
+ ),
149
+ play: async ({ canvasElement }) => {
150
+ const canvas = within(canvasElement);
151
+ const input = canvas.getByRole("textbox", { name: "Monthly price" });
152
+ await userEvent.click(input);
153
+ await userEvent.type(input, "49.00");
154
+ await expect(input).toHaveValue("49.00");
155
+ await expect(input).toHaveFocus();
156
+ },
157
+ };
158
+
123
159
  // Inline copy actions compose the CopyButton primitive — it owns the real
124
160
  // clipboard write, the token-driven icon-swap "Copied!" animation, and the
125
161
  // aria-live announcement. Never hand-roll a copied state (the first version
126
162
  // of this story did, and the showcase demo then shipped a dead Copy button —
127
163
  // Sir caught it on prod, 2026-07-06).
128
164
  export const WithButton: Story = {
165
+ parameters: { controls: { disable: true } },
129
166
  render: () => (
130
167
  <InputGroup className="w-96">
131
168
  <InputGroupInput
@@ -146,6 +183,7 @@ export const WithButton: Story = {
146
183
  };
147
184
 
148
185
  export const Disabled: Story = {
186
+ parameters: { controls: { disable: true } },
149
187
  render: () => (
150
188
  <InputGroup className="w-80">
151
189
  <InputGroupAddon align="inline-start">
@@ -157,6 +195,7 @@ export const Disabled: Story = {
157
195
  };
158
196
 
159
197
  export const Invalid: Story = {
198
+ parameters: { controls: { disable: true } },
160
199
  render: () => (
161
200
  <InputGroup className="w-80" aria-invalid>
162
201
  <InputGroupAddon align="inline-start">
@@ -173,6 +212,7 @@ export const Invalid: Story = {
173
212
  };
174
213
 
175
214
  export const RealisticUse: Story = {
215
+ parameters: { controls: { disable: true } },
176
216
  render: () => (
177
217
  <div className="flex w-96 flex-col gap-4">
178
218
  <div className="flex flex-col gap-1.5">