@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
@@ -3,6 +3,7 @@
3
3
  "./layer-*/**/*.md",
4
4
  "./layer-*/**/*.json",
5
5
  "./docs/**/*.md",
6
+ "./docs/agent-rules/manifest.json",
6
7
  "./prompts/**/*.md",
7
8
  "./scripts/prompts/**/*.md",
8
9
  "./.claude/skills/**/SKILL.md",
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Chart entrance timing, derived from the BADS motion tokens.
3
+ *
4
+ * Recharts takes its animation timing as plain numbers, so the motion custom
5
+ * properties are resolved on a mounted element at runtime. Reading the live
6
+ * CSS (rather than copying numbers in) means a fork that retunes
7
+ * --duration-slow or --ease-in-out retunes its charts too.
8
+ *
9
+ * Used by ChartContainer (chart.tsx) and Sparkline (sparkline.tsx) so line,
10
+ * area and radar series draw at one pace and their point dots wait for the
11
+ * stroke instead of popping in ahead of it.
12
+ */
13
+
14
+ // A chart draw is a long-form entrance: CHART_DRAW_BEATS slow beats. At the
15
+ // default 300ms --duration-slow that is 1500ms, the pace Recharts drew at
16
+ // before this was token-driven.
17
+ const CHART_DRAW_BEATS = 5;
18
+
19
+ export type ChartMotion = {
20
+ /** How long a line / area / radar series takes to draw in, in ms. */
21
+ drawMs: number;
22
+ /** Easing for the draw, as a cubic-bezier() string Recharts accepts. */
23
+ drawEasing: string;
24
+ };
25
+
26
+ function readDurationMs(el: Element, name: string, fallbackMs: number): number {
27
+ const raw = getComputedStyle(el).getPropertyValue(name).trim();
28
+ const value = parseFloat(raw);
29
+ if (!Number.isFinite(value)) return fallbackMs;
30
+ if (raw.endsWith("ms")) return value;
31
+ if (raw.endsWith("s")) return value * 1000;
32
+ return value;
33
+ }
34
+
35
+ export function readChartMotion(el: Element): ChartMotion {
36
+ const easing = getComputedStyle(el).getPropertyValue("--ease-in-out").trim();
37
+ return {
38
+ drawMs: readDurationMs(el, "--duration-slow", 300) * CHART_DRAW_BEATS,
39
+ drawEasing: easing.startsWith("cubic-bezier(") ? easing : "ease-in-out",
40
+ };
41
+ }
@@ -2,7 +2,7 @@
2
2
  * getIconColor — map a semantic icon *role* to the Tailwind class bound to the
3
3
  * matching `--icon-*` token. This is the pattern for giving a custom icon set
4
4
  * semantic colors instead of leaving everything to `currentColor`
5
- * (see CLAUDE.md → Icons, and the `icon-*` token family in tokens.json).
5
+ * (see AGENTS.md → Icons, and the `icon-*` token family in tokens.json).
6
6
  *
7
7
  * Adapted from web-common's `get-icon-color.ts`. Their failure mode: passing a
8
8
  * token name (`"icon-brand-primary"`) or a raw Tailwind class (`"text-brand-…"`)
@@ -24,6 +24,7 @@ export default meta;
24
24
  type Story = StoryObj<typeof meta>;
25
25
 
26
26
  export const Default: Story = {
27
+ parameters: { controls: { disable: true } },
27
28
  render: () => (
28
29
  <Accordion type="single" collapsible className="w-[400px]">
29
30
  <AccordionItem value="item-1">
@@ -56,6 +57,7 @@ export const Default: Story = {
56
57
  };
57
58
 
58
59
  export const Variant_Multiple: Story = {
60
+ parameters: { controls: { disable: true } },
59
61
  render: () => (
60
62
  <Accordion type="multiple" className="w-[400px]">
61
63
  <AccordionItem value="item-1">
@@ -87,6 +89,7 @@ export const Variant_Multiple: Story = {
87
89
  };
88
90
 
89
91
  export const Variant_Contained: Story = {
92
+ parameters: { controls: { disable: true } },
90
93
  render: () => (
91
94
  <Accordion type="single" collapsible variant="contained" className="w-[400px]">
92
95
  <AccordionItem value="item-1">
@@ -128,6 +131,7 @@ export const Variant_Contained: Story = {
128
131
  };
129
132
 
130
133
  export const Variant_Separated: Story = {
134
+ parameters: { controls: { disable: true } },
131
135
  render: () => (
132
136
  <Accordion type="single" collapsible variant="separated" className="w-[400px]">
133
137
  <AccordionItem value="item-1">
@@ -204,6 +208,7 @@ export const Size_Full: Story = {
204
208
  };
205
209
 
206
210
  export const Disabled: Story = {
211
+ parameters: { controls: { disable: true } },
207
212
  render: () => (
208
213
  <Accordion type="single" collapsible className="w-[400px]">
209
214
  <AccordionItem value="item-1">
@@ -230,6 +235,7 @@ export const Disabled: Story = {
230
235
 
231
236
  export const Interaction_Opens: Story = {
232
237
  tags: ["test"],
238
+ parameters: { controls: { disable: true } },
233
239
  render: () => (
234
240
  <Accordion type="single" collapsible className="w-[400px]">
235
241
  <AccordionItem value="item-1">
@@ -249,6 +255,7 @@ export const Interaction_Opens: Story = {
249
255
  };
250
256
 
251
257
  export const RealisticUse: Story = {
258
+ parameters: { controls: { disable: true } },
252
259
  render: () => (
253
260
  <div className="w-[480px] rounded-lg border bg-card p-6">
254
261
  <h3 className="mb-4 text-2xl font-semibold">Frequently asked questions</h3>
@@ -49,6 +49,7 @@ function DemoActions({ disabled = false }: { disabled?: boolean }) {
49
49
  }
50
50
 
51
51
  export const Default: Story = {
52
+ parameters: { controls: { disable: true } },
52
53
  render: () => (
53
54
  <Frame>
54
55
  <p className="text-sm text-muted-foreground">
@@ -67,6 +68,7 @@ export const Default: Story = {
67
68
  };
68
69
 
69
70
  export const ManySelected: Story = {
71
+ parameters: { controls: { disable: true } },
70
72
  render: () => (
71
73
  <Frame>
72
74
  <p className="text-sm text-muted-foreground">
@@ -85,6 +87,7 @@ export const ManySelected: Story = {
85
87
  };
86
88
 
87
89
  export const ZeroSelected: Story = {
90
+ parameters: { controls: { disable: true } },
88
91
  render: () => (
89
92
  <Frame>
90
93
  <p className="text-sm text-muted-foreground">
@@ -104,6 +107,7 @@ export const ZeroSelected: Story = {
104
107
  };
105
108
 
106
109
  export const Disabled: Story = {
110
+ parameters: { controls: { disable: true } },
107
111
  render: () => (
108
112
  <Frame>
109
113
  <p className="text-sm text-muted-foreground">
@@ -131,6 +135,7 @@ const REVIEWERS = [
131
135
  ];
132
136
 
133
137
  export const RealisticUse: Story = {
138
+ parameters: { controls: { disable: true } },
134
139
  render: () => {
135
140
  const [selected, setSelected] = React.useState<Set<string>>(
136
141
  () => new Set(["seoyun", "anika"])
@@ -45,6 +45,7 @@ function DemoFrame({ children }: { children: React.ReactNode }) {
45
45
  }
46
46
 
47
47
  export const Default: Story = {
48
+ parameters: { controls: { disable: true } },
48
49
  render: () => (
49
50
  <DemoFrame>
50
51
  <Affix withinPortal={false} position={{ bottom: 20, right: 20 }}>
@@ -57,6 +58,7 @@ export const Default: Story = {
57
58
  };
58
59
 
59
60
  export const TopRight: Story = {
61
+ parameters: { controls: { disable: true } },
60
62
  render: () => (
61
63
  <DemoFrame>
62
64
  <Affix withinPortal={false} position={{ top: 16, right: 16 }}>
@@ -67,6 +69,7 @@ export const TopRight: Story = {
67
69
  };
68
70
 
69
71
  export const TopLeft: Story = {
72
+ parameters: { controls: { disable: true } },
70
73
  render: () => (
71
74
  <DemoFrame>
72
75
  <Affix withinPortal={false} position={{ top: 16, left: 16 }}>
@@ -77,6 +80,7 @@ export const TopLeft: Story = {
77
80
  };
78
81
 
79
82
  export const CustomZIndex: Story = {
83
+ parameters: { controls: { disable: true } },
80
84
  render: () => (
81
85
  <DemoFrame>
82
86
  {/* The zIndex prop controls stacking: the FAB (zIndex 50, default tier)
@@ -12,6 +12,7 @@ export default meta;
12
12
  type Story = StoryObj<typeof meta>;
13
13
 
14
14
  export const Default: Story = {
15
+ parameters: { controls: { disable: true } },
15
16
  render: () => (
16
17
  <div className="flex items-center gap-2">
17
18
  <AiBadge />
@@ -22,34 +23,35 @@ export const Default: Story = {
22
23
  };
23
24
 
24
25
  export const Variant_Subtle: Story = {
25
- render: () => <AiBadge variant="subtle" />,
26
+ args: { variant: "subtle" },
26
27
  };
27
28
 
28
29
  export const Variant_Solid: Story = {
29
- render: () => <AiBadge variant="solid" />,
30
+ args: { variant: "solid" },
30
31
  };
31
32
 
32
33
  export const Variant_Outline: Story = {
33
- render: () => <AiBadge variant="outline" />,
34
+ args: { variant: "outline" },
34
35
  };
35
36
 
36
37
  export const Size_Sm: Story = {
37
- render: () => <AiBadge size="sm" />,
38
+ args: { size: "sm" },
38
39
  };
39
40
 
40
41
  export const Size_Default: Story = {
41
- render: () => <AiBadge size="default" />,
42
+ args: { size: "default" },
42
43
  };
43
44
 
44
45
  export const NoIcon: Story = {
45
- render: () => <AiBadge showIcon={false} />,
46
+ args: { showIcon: false },
46
47
  };
47
48
 
48
49
  export const CustomLabel: Story = {
49
- render: () => <AiBadge>AI summary</AiBadge>,
50
+ args: { children: "AI summary" },
50
51
  };
51
52
 
52
53
  export const RealisticUse: Story = {
54
+ parameters: { controls: { disable: true } },
53
55
  render: () => (
54
56
  <div className="max-w-sm space-y-2 rounded-lg border border-border bg-card p-4">
55
57
  <div className="flex items-center gap-2">
@@ -27,6 +27,7 @@ export default meta;
27
27
  type Story = StoryObj<typeof meta>;
28
28
 
29
29
  export const Default: Story = {
30
+ parameters: { controls: { disable: true } },
30
31
  render: () => (<div className="w-[420px] flex flex-col gap-3">
31
32
  <Alert>
32
33
  <AlertCircleIcon className="h-5 w-5" />
@@ -42,6 +43,7 @@ export const Default: Story = {
42
43
  };
43
44
 
44
45
  export const Variant_Default: Story = {
46
+ parameters: { controls: { disable: true } },
45
47
  render: () => (<div className="w-[420px]">
46
48
  <Alert variant="default">
47
49
  <AlertCircleIcon className="h-5 w-5" />
@@ -52,6 +54,7 @@ export const Variant_Default: Story = {
52
54
  };
53
55
 
54
56
  export const Variant_Destructive: Story = {
57
+ parameters: { controls: { disable: true } },
55
58
  render: () => (<div className="w-[420px]">
56
59
  <Alert variant="destructive">
57
60
  <AlertCircleIcon className="h-5 w-5" />
@@ -62,6 +65,7 @@ export const Variant_Destructive: Story = {
62
65
  };
63
66
 
64
67
  export const Variant_Success: Story = {
68
+ parameters: { controls: { disable: true } },
65
69
  render: () => (<div className="w-[420px]">
66
70
  <Alert variant="success">
67
71
  <CheckCircle2Icon className="h-5 w-5" />
@@ -72,6 +76,7 @@ export const Variant_Success: Story = {
72
76
  };
73
77
 
74
78
  export const Variant_Warning: Story = {
79
+ parameters: { controls: { disable: true } },
75
80
  render: () => (<div className="w-[420px]">
76
81
  <Alert variant="warning">
77
82
  <TriangleAlertIcon className="h-5 w-5" />
@@ -82,6 +87,7 @@ export const Variant_Warning: Story = {
82
87
  };
83
88
 
84
89
  export const Variant_Info: Story = {
90
+ parameters: { controls: { disable: true } },
85
91
  render: () => (<div className="w-[420px]">
86
92
  <Alert variant="info">
87
93
  <InfoIcon className="h-5 w-5" />
@@ -95,6 +101,7 @@ export const Variant_Info: Story = {
95
101
  // Card must remain visually distinct. Pre-fix, both surfaces used bg-card and
96
102
  // the alert disappeared into the card.
97
103
  export const NestedInCard: Story = {
104
+ parameters: { controls: { disable: true } },
98
105
  render: () => (
99
106
  <Card className="w-[460px]">
100
107
  <CardHeader>
@@ -121,6 +128,7 @@ export const NestedInCard: Story = {
121
128
  };
122
129
 
123
130
  export const Size_Sm: Story = {
131
+ parameters: { controls: { disable: true } },
124
132
  render: () => (<div className="w-[420px] flex flex-col gap-3">
125
133
  <Alert size="sm">
126
134
  <AlertCircleIcon className="h-5 w-5" />
@@ -141,6 +149,7 @@ export const Size_Sm: Story = {
141
149
  };
142
150
 
143
151
  export const Sizes: Story = {
152
+ parameters: { controls: { disable: true } },
144
153
  render: () => (<div className="w-[420px] flex flex-col gap-4">
145
154
  <Alert>
146
155
  <AlertCircleIcon className="h-5 w-5" />
@@ -156,6 +165,7 @@ export const Sizes: Story = {
156
165
  };
157
166
 
158
167
  export const RealisticUse: Story = {
168
+ parameters: { controls: { disable: true } },
159
169
  render: () => (<div className="w-[420px] flex flex-col gap-3">
160
170
  <Alert>
161
171
  <AlertCircleIcon className="h-5 w-5" />
@@ -171,6 +181,7 @@ export const RealisticUse: Story = {
171
181
  };
172
182
 
173
183
  export const Dismissible: Story = {
184
+ parameters: { controls: { disable: true } },
174
185
  render: () => (<div className="w-[420px] flex flex-col gap-3">
175
186
  <Alert onDismiss={() => {}}>
176
187
  <AlertCircleIcon className="h-5 w-5" />
@@ -186,6 +197,7 @@ export const Dismissible: Story = {
186
197
  };
187
198
 
188
199
  export const WithAction: Story = {
200
+ parameters: { controls: { disable: true } },
189
201
  render: () => (<div className="w-[420px] flex flex-col gap-3">
190
202
  <Alert
191
203
  action={<Button size="sm" variant="outline">Resend link</Button>}
@@ -206,6 +218,7 @@ export const WithAction: Story = {
206
218
  };
207
219
 
208
220
  export const DismissibleWithAction: Story = {
221
+ parameters: { controls: { disable: true } },
209
222
  render: () => (<div className="w-[420px]">
210
223
  <Alert
211
224
  onDismiss={() => {}}
@@ -26,6 +26,7 @@ export default meta;
26
26
  type Story = StoryObj<typeof meta>;
27
27
 
28
28
  export const Default: Story = {
29
+ parameters: { controls: { disable: true } },
29
30
  render: () => (
30
31
  <AlertDialog>
31
32
  <AlertDialogTrigger asChild>
@@ -51,6 +52,7 @@ export const Default: Story = {
51
52
  };
52
53
 
53
54
  export const Variant_Destructive: Story = {
55
+ parameters: { controls: { disable: true } },
54
56
  render: () => (
55
57
  <AlertDialog>
56
58
  <AlertDialogTrigger asChild>
@@ -76,6 +78,7 @@ export const Variant_Destructive: Story = {
76
78
  };
77
79
 
78
80
  export const Variant_Confirm: Story = {
81
+ parameters: { controls: { disable: true } },
79
82
  render: () => (
80
83
  <AlertDialog>
81
84
  <AlertDialogTrigger asChild>
@@ -99,6 +102,7 @@ export const Variant_Confirm: Story = {
99
102
  };
100
103
 
101
104
  export const RealisticUse: Story = {
105
+ parameters: { controls: { disable: true } },
102
106
  render: () => (
103
107
  <AlertDialog>
104
108
  <AlertDialogTrigger asChild>
@@ -33,6 +33,7 @@ function DemoSection({
33
33
  }
34
34
 
35
35
  export const Default: Story = {
36
+ parameters: { controls: { disable: true } },
36
37
  render: () => (
37
38
  <div className="flex w-[640px] max-w-full gap-8">
38
39
  <div className="h-72 min-w-0 flex-1 overflow-y-auto rounded-lg border border-border p-5" tabIndex={0}>
@@ -71,6 +72,7 @@ export const Default: Story = {
71
72
  };
72
73
 
73
74
  export const WithGroups: Story = {
75
+ parameters: { controls: { disable: true } },
74
76
  render: () => (
75
77
  <div className="flex w-[640px] max-w-full gap-8">
76
78
  <div className="h-72 min-w-0 flex-1 overflow-y-auto rounded-lg border border-border p-5" tabIndex={0}>
@@ -111,6 +113,7 @@ export const WithGroups: Story = {
111
113
  };
112
114
 
113
115
  export const Sticky: Story = {
116
+ parameters: { controls: { disable: true } },
114
117
  render: () => (
115
118
  <div className="h-80 w-[640px] max-w-full overflow-y-auto rounded-lg border border-border">
116
119
  <div className="flex gap-8 p-5">
@@ -150,6 +153,7 @@ export const Sticky: Story = {
150
153
  };
151
154
 
152
155
  export const Customized: Story = {
156
+ parameters: { controls: { disable: true } },
153
157
  render: () => (
154
158
  <div className="flex w-[640px] max-w-full gap-8">
155
159
  <div className="h-64 min-w-0 flex-1 overflow-y-auto rounded-lg border border-border p-5" tabIndex={0}>
@@ -234,6 +238,7 @@ export const Controlled: Story = {
234
238
  };
235
239
 
236
240
  export const RealisticUse: Story = {
241
+ parameters: { controls: { disable: true } },
237
242
  render: () => (
238
243
  <div className="w-[720px] max-w-full rounded-lg border border-border bg-card p-6">
239
244
  <div className="mb-4 space-y-1">
@@ -41,30 +41,35 @@ function ControlledAngleSlider(
41
41
  }
42
42
 
43
43
  export const Default: Story = {
44
+ parameters: { controls: { disable: true } },
44
45
  render: () => (
45
46
  <ControlledAngleSlider defaultValue={45} aria-label="Angle" />
46
47
  ),
47
48
  };
48
49
 
49
50
  export const Size_Sm: Story = {
51
+ parameters: { controls: { disable: true } },
50
52
  render: () => (
51
53
  <ControlledAngleSlider size="sm" defaultValue={45} aria-label="Angle" />
52
54
  ),
53
55
  };
54
56
 
55
57
  export const Size_Md: Story = {
58
+ parameters: { controls: { disable: true } },
56
59
  render: () => (
57
60
  <ControlledAngleSlider size="md" defaultValue={45} aria-label="Angle" />
58
61
  ),
59
62
  };
60
63
 
61
64
  export const Size_Lg: Story = {
65
+ parameters: { controls: { disable: true } },
62
66
  render: () => (
63
67
  <ControlledAngleSlider size="lg" defaultValue={45} aria-label="Angle" />
64
68
  ),
65
69
  };
66
70
 
67
71
  export const Sizes: Story = {
72
+ parameters: { controls: { disable: true } },
68
73
  render: () => (
69
74
  <div className="flex items-end gap-8">
70
75
  <ControlledAngleSlider size="sm" defaultValue={45} aria-label="Small angle" />
@@ -75,9 +80,7 @@ export const Sizes: Story = {
75
80
  };
76
81
 
77
82
  export const Disabled: Story = {
78
- render: () => (
79
- <AngleSlider disabled defaultValue={135} aria-label="Angle (disabled)" />
80
- ),
83
+ args: { disabled: true, defaultValue: 135, "aria-label": "Angle (disabled)" },
81
84
  };
82
85
 
83
86
  export const RealisticUse: Story = {
@@ -27,6 +27,7 @@ const PlaceholderImage = ({
27
27
  );
28
28
 
29
29
  export const Default: Story = {
30
+ parameters: { controls: { disable: true } },
30
31
  render: () => (
31
32
  <div className="w-[400px]">
32
33
  <AspectRatio ratio={16 / 9}>
@@ -37,6 +38,7 @@ export const Default: Story = {
37
38
  };
38
39
 
39
40
  export const Square: Story = {
41
+ parameters: { controls: { disable: true } },
40
42
  render: () => (
41
43
  <div className="w-[300px]">
42
44
  <AspectRatio ratio={1}>
@@ -47,6 +49,7 @@ export const Square: Story = {
47
49
  };
48
50
 
49
51
  export const Portrait: Story = {
52
+ parameters: { controls: { disable: true } },
50
53
  render: () => (
51
54
  <div className="w-[200px]">
52
55
  <AspectRatio ratio={2 / 3}>
@@ -57,6 +60,7 @@ export const Portrait: Story = {
57
60
  };
58
61
 
59
62
  export const RealisticUse: Story = {
63
+ parameters: { controls: { disable: true } },
60
64
  render: () => (
61
65
  <div className="grid w-[560px] grid-cols-3 gap-3">
62
66
  {[
@@ -70,30 +70,35 @@ function Controlled({
70
70
  }
71
71
 
72
72
  export const Default: Story = {
73
+ parameters: { controls: { disable: true } },
73
74
  render: () => (
74
75
  <Controlled options={TOPICS} placeholder="Search docs topics…" />
75
76
  ),
76
77
  };
77
78
 
78
79
  export const Size_Sm: Story = {
80
+ parameters: { controls: { disable: true } },
79
81
  render: () => (
80
82
  <Controlled size="sm" options={TOPICS} placeholder="Search docs topics…" />
81
83
  ),
82
84
  };
83
85
 
84
86
  export const Size_Lg: Story = {
87
+ parameters: { controls: { disable: true } },
85
88
  render: () => (
86
89
  <Controlled size="lg" options={TOPICS} placeholder="Search docs topics…" />
87
90
  ),
88
91
  };
89
92
 
90
93
  export const Size_Xl: Story = {
94
+ parameters: { controls: { disable: true } },
91
95
  render: () => (
92
96
  <Controlled size="xl" options={TOPICS} placeholder="Search docs topics…" />
93
97
  ),
94
98
  };
95
99
 
96
100
  export const Size_2xl: Story = {
101
+ parameters: { controls: { disable: true } },
97
102
  render: () => (
98
103
  <Controlled
99
104
  size="2xl"
@@ -105,6 +110,7 @@ export const Size_2xl: Story = {
105
110
 
106
111
  // Disabled: the list never opens; Input's disabled styles apply.
107
112
  export const Disabled: Story = {
113
+ parameters: { controls: { disable: true } },
108
114
  render: () => (
109
115
  <Controlled
110
116
  disabled
@@ -1,3 +1,4 @@
1
+ // AvatarGroup renders role="group" by default; the RealisticUse story names it with aria-label.
1
2
  import type { Meta, StoryObj } from "@storybook/react";
2
3
  import { Avatar, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "@behavioral-agentic-design-system/core/components/ui/avatar";
3
4
 
@@ -12,6 +13,7 @@ export default meta;
12
13
  type Story = StoryObj<typeof meta>;
13
14
 
14
15
  export const Size_Xs: Story = {
16
+ parameters: { controls: { disable: true } },
15
17
  render: () => (
16
18
  <div className="flex items-center gap-3">
17
19
  <Avatar size="xs">
@@ -26,6 +28,7 @@ export const Size_Xs: Story = {
26
28
  };
27
29
 
28
30
  export const Default: Story = {
31
+ parameters: { controls: { disable: true } },
29
32
  render: () => (<div className="flex items-center gap-3">
30
33
  <Avatar>
31
34
  <AvatarImage src="/avatars/01.png" alt="Olivia Martin" />
@@ -38,6 +41,7 @@ export const Default: Story = {
38
41
  };
39
42
 
40
43
  export const Size_Xl: Story = {
44
+ parameters: { controls: { disable: true } },
41
45
  render: () => (
42
46
  <div className="flex items-center gap-3">
43
47
  <Avatar size="xl">
@@ -52,6 +56,7 @@ export const Size_Xl: Story = {
52
56
  };
53
57
 
54
58
  export const Size_AllSizes: Story = {
59
+ parameters: { controls: { disable: true } },
55
60
  render: () => (
56
61
  <div className="flex items-end gap-3">
57
62
  {(["xs", "sm", "default", "lg", "xl"] as const).map((size) => (
@@ -64,6 +69,7 @@ export const Size_AllSizes: Story = {
64
69
  };
65
70
 
66
71
  export const Shape_Circle: Story = {
72
+ parameters: { controls: { disable: true } },
67
73
  render: () => (
68
74
  <div className="flex items-center gap-3">
69
75
  <Avatar shape="circle" size="lg">
@@ -78,6 +84,7 @@ export const Shape_Circle: Story = {
78
84
  };
79
85
 
80
86
  export const Shape_Square: Story = {
87
+ parameters: { controls: { disable: true } },
81
88
  render: () => (
82
89
  <div className="flex items-center gap-3">
83
90
  <Avatar shape="square" size="lg">
@@ -92,6 +99,7 @@ export const Shape_Square: Story = {
92
99
  };
93
100
 
94
101
  export const Group: Story = {
102
+ parameters: { controls: { disable: true } },
95
103
  render: () => (
96
104
  <AvatarGroup aria-label="Project contributors: Jordan Reeves, Seo-yun Park, Marcus Lindqvist, and 3 more">
97
105
  <Avatar>
@@ -110,6 +118,7 @@ export const Group: Story = {
110
118
  };
111
119
 
112
120
  export const Group_Sizes: Story = {
121
+ parameters: { controls: { disable: true } },
113
122
  render: () => (
114
123
  <div className="flex flex-col items-start gap-4">
115
124
  <AvatarGroup aria-label="Reviewers: Jordan Reeves, Seo-yun Park, and 2 more">
@@ -136,6 +145,7 @@ export const Group_Sizes: Story = {
136
145
  };
137
146
 
138
147
  export const RealisticUse: Story = {
148
+ parameters: { controls: { disable: true } },
139
149
  render: () => (<div className="flex items-center gap-3">
140
150
  <Avatar>
141
151
  <AvatarImage src="/avatars/01.png" alt="Olivia Martin" />