@behavioral-agentic-design-system/core 0.38.0 → 0.39.1

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 (187) hide show
  1. package/package.json +2 -2
  2. package/scripts/a11y-lint.cjs +47 -34
  3. package/scripts/a11y-ratchet.mjs +10 -23
  4. package/scripts/build-tokens.cjs +42 -5
  5. package/scripts/health-report.mjs +52 -10
  6. package/scripts/lib/scan-roots.cjs +143 -0
  7. package/scripts/lint-slop.mjs +21 -28
  8. package/scripts/lint-token-intent.mjs +10 -16
  9. package/scripts/size-audit.cjs +15 -27
  10. package/src/api/layers/file.ts +1 -0
  11. package/src/app/preview/components/page.tsx +366 -0
  12. package/src/app/preview/health/page.tsx +8 -5
  13. package/src/app/preview/history/page.tsx +11 -0
  14. package/src/app/shell.tsx +262 -86
  15. package/src/components/Foundations/Typography.stories.tsx +82 -21
  16. package/src/components/customize/discipline-section.tsx +94 -0
  17. package/src/components/customize-tab.tsx +2 -0
  18. package/src/components/ui/accordion.tsx +67 -5
  19. package/src/components/ui/alert.tsx +20 -7
  20. package/src/components/ui/avatar.tsx +18 -4
  21. package/src/components/ui/breadcrumb.tsx +47 -0
  22. package/src/components/ui/checkbox-card.tsx +48 -8
  23. package/src/components/ui/checkbox.tsx +17 -8
  24. package/src/components/ui/format-date.tsx +107 -0
  25. package/src/components/ui/progress.tsx +6 -5
  26. package/src/components/ui/sparkline.tsx +210 -0
  27. package/src/components/ui/tag.tsx +17 -1
  28. package/src/components/ui/tags-input.tsx +84 -11
  29. package/src/components/ui/toggle-group.tsx +13 -0
  30. package/src/components/ui/week-picker.tsx +463 -0
  31. package/src/data/docs-index.ts +11 -0
  32. package/src/data/history.json +269 -0
  33. package/src/stories/Accordion.stories.tsx +59 -1
  34. package/src/stories/ActionBar.stories.tsx +1 -1
  35. package/src/stories/Affix.stories.tsx +1 -1
  36. package/src/stories/AiBadge.stories.tsx +1 -1
  37. package/src/stories/Alert.stories.tsx +36 -1
  38. package/src/stories/AlertDialog.stories.tsx +1 -1
  39. package/src/stories/Anchor.stories.tsx +1 -1
  40. package/src/stories/AngleSlider.stories.tsx +1 -1
  41. package/src/stories/AspectRatio.stories.tsx +1 -1
  42. package/src/stories/Autocomplete.stories.tsx +1 -1
  43. package/src/stories/Avatar.stories.tsx +41 -1
  44. package/src/stories/Badge.stories.tsx +1 -1
  45. package/src/stories/Blockquote.stories.tsx +1 -1
  46. package/src/stories/BottomNavigation.stories.tsx +1 -1
  47. package/src/stories/Breadcrumb.stories.tsx +38 -5
  48. package/src/stories/Burger.stories.tsx +1 -1
  49. package/src/stories/Button.stories.tsx +9 -1
  50. package/src/stories/ButtonGroup.stories.tsx +1 -1
  51. package/src/stories/Calendar.stories.tsx +1 -1
  52. package/src/stories/Card.stories.tsx +1 -1
  53. package/src/stories/Carousel.stories.tsx +1 -1
  54. package/src/stories/Cascader.stories.tsx +1 -1
  55. package/src/stories/Chart.stories.tsx +1 -1
  56. package/src/stories/ChatBubble.stories.tsx +1 -1
  57. package/src/stories/ChatMarker.stories.tsx +1 -1
  58. package/src/stories/Checkbox.stories.tsx +36 -5
  59. package/src/stories/CheckboxCard.stories.tsx +37 -2
  60. package/src/stories/CheckboxGroup.stories.tsx +1 -1
  61. package/src/stories/Chip.stories.tsx +1 -1
  62. package/src/stories/CircularProgress.stories.tsx +17 -1
  63. package/src/stories/Clipboard.stories.tsx +1 -1
  64. package/src/stories/CloseButton.stories.tsx +1 -1
  65. package/src/stories/Code.stories.tsx +1 -1
  66. package/src/stories/Collapsible.stories.tsx +1 -1
  67. package/src/stories/ColorPicker.stories.tsx +1 -1
  68. package/src/stories/ColorSwatch.stories.tsx +1 -1
  69. package/src/stories/Combobox.stories.tsx +1 -1
  70. package/src/stories/Command.stories.tsx +1 -1
  71. package/src/stories/Container.stories.tsx +1 -1
  72. package/src/stories/ContextMenu.stories.tsx +1 -1
  73. package/src/stories/CopyButton.stories.tsx +9 -1
  74. package/src/stories/DataList.stories.tsx +1 -1
  75. package/src/stories/DataTable.stories.tsx +1 -1
  76. package/src/stories/DateField.stories.tsx +1 -1
  77. package/src/stories/DatePicker.stories.tsx +1 -1
  78. package/src/stories/DateRangePicker.stories.tsx +1 -1
  79. package/src/stories/Dialog.stories.tsx +1 -1
  80. package/src/stories/Drawer.stories.tsx +1 -1
  81. package/src/stories/DropdownMenu.stories.tsx +1 -1
  82. package/src/stories/Editable.stories.tsx +1 -1
  83. package/src/stories/EmptyState.stories.tsx +1 -1
  84. package/src/stories/Field.stories.tsx +1 -1
  85. package/src/stories/Fieldset.stories.tsx +1 -1
  86. package/src/stories/FileButton.stories.tsx +1 -1
  87. package/src/stories/FileUpload.stories.tsx +1 -1
  88. package/src/stories/FloatLabel.stories.tsx +1 -1
  89. package/src/stories/FloatingActionButton.stories.tsx +1 -1
  90. package/src/stories/FloatingIndicator.stories.tsx +1 -1
  91. package/src/stories/FloatingPanel.stories.tsx +9 -1
  92. package/src/stories/FocusTrap.stories.tsx +1 -1
  93. package/src/stories/FormatByte.stories.tsx +1 -1
  94. package/src/stories/FormatDate.stories.tsx +174 -0
  95. package/src/stories/FormatNumber.stories.tsx +1 -1
  96. package/src/stories/Highlight.stories.tsx +1 -1
  97. package/src/stories/HoverCard.stories.tsx +1 -1
  98. package/src/stories/Image.stories.tsx +1 -1
  99. package/src/stories/Indicator.stories.tsx +17 -1
  100. package/src/stories/Input.stories.tsx +1 -1
  101. package/src/stories/InputClearButton.stories.tsx +1 -1
  102. package/src/stories/InputGroup.stories.tsx +1 -1
  103. package/src/stories/Kbd.stories.tsx +1 -1
  104. package/src/stories/KeyboardShortcut.stories.tsx +1 -1
  105. package/src/stories/Label.stories.tsx +1 -1
  106. package/src/stories/Link.stories.tsx +1 -1
  107. package/src/stories/List.stories.tsx +1 -1
  108. package/src/stories/Listbox.stories.tsx +1 -1
  109. package/src/stories/LoadingDots.stories.tsx +1 -1
  110. package/src/stories/LoadingOverlay.stories.tsx +1 -1
  111. package/src/stories/Mark.stories.tsx +1 -1
  112. package/src/stories/Marquee.stories.tsx +1 -1
  113. package/src/stories/Masonry.stories.tsx +1 -1
  114. package/src/stories/Menubar.stories.tsx +1 -1
  115. package/src/stories/Meter.stories.tsx +1 -1
  116. package/src/stories/MonthPicker.stories.tsx +1 -1
  117. package/src/stories/MotionToggle.stories.tsx +1 -1
  118. package/src/stories/MultiSelect.stories.tsx +1 -1
  119. package/src/stories/NativeSelect.stories.tsx +1 -1
  120. package/src/stories/NavLink.stories.tsx +1 -1
  121. package/src/stories/NavigationMenu.stories.tsx +1 -1
  122. package/src/stories/NavigationRail.stories.tsx +9 -1
  123. package/src/stories/Notification.stories.tsx +1 -1
  124. package/src/stories/NumberInput.stories.tsx +1 -1
  125. package/src/stories/Overlay.stories.tsx +1 -1
  126. package/src/stories/Pagination.stories.tsx +1 -1
  127. package/src/stories/PasswordInput.stories.tsx +1 -1
  128. package/src/stories/PinInput.stories.tsx +1 -1
  129. package/src/stories/Popover.stories.tsx +1 -1
  130. package/src/stories/Progress.stories.tsx +11 -1
  131. package/src/stories/Prose.stories.tsx +1 -1
  132. package/src/stories/QrCode.stories.tsx +1 -1
  133. package/src/stories/Questionnaire.stories.tsx +1 -1
  134. package/src/stories/RadioGroup.stories.tsx +1 -1
  135. package/src/stories/RatingGroup.stories.tsx +1 -1
  136. package/src/stories/Resizable.stories.tsx +1 -1
  137. package/src/stories/Result.stories.tsx +1 -1
  138. package/src/stories/Reveal.stories.tsx +1 -1
  139. package/src/stories/RollingNumber.stories.tsx +1 -1
  140. package/src/stories/ScrollArea.stories.tsx +1 -1
  141. package/src/stories/SearchInput.stories.tsx +1 -1
  142. package/src/stories/SegmentedControl.stories.tsx +1 -1
  143. package/src/stories/Select.stories.tsx +1 -1
  144. package/src/stories/Separator.stories.tsx +1 -1
  145. package/src/stories/Sheet.stories.tsx +10 -4
  146. package/src/stories/Sidebar.stories.tsx +1 -1
  147. package/src/stories/SignaturePad.stories.tsx +1 -1
  148. package/src/stories/SimpleGrid.stories.tsx +1 -1
  149. package/src/stories/Skeleton.stories.tsx +1 -1
  150. package/src/stories/SkeletonTable.stories.tsx +1 -1
  151. package/src/stories/SkipLink.stories.tsx +1 -1
  152. package/src/stories/Slider.stories.tsx +1 -1
  153. package/src/stories/Sonner.stories.tsx +1 -1
  154. package/src/stories/Sparkline.stories.tsx +244 -0
  155. package/src/stories/Spinner.stories.tsx +9 -1
  156. package/src/stories/Spoiler.stories.tsx +1 -1
  157. package/src/stories/Squircle.stories.tsx +1 -1
  158. package/src/stories/Stack.stories.tsx +1 -1
  159. package/src/stories/StatusBadge.stories.tsx +1 -1
  160. package/src/stories/Stepper.stories.tsx +1 -1
  161. package/src/stories/Switch.stories.tsx +1 -1
  162. package/src/stories/Table.stories.tsx +1 -1
  163. package/src/stories/Tabs.stories.tsx +1 -1
  164. package/src/stories/Tag.stories.tsx +23 -1
  165. package/src/stories/TagsInput.stories.tsx +46 -1
  166. package/src/stories/Text.stories.tsx +1 -1
  167. package/src/stories/Textarea.stories.tsx +1 -1
  168. package/src/stories/ThemeIcon.stories.tsx +1 -1
  169. package/src/stories/TimePicker.stories.tsx +1 -1
  170. package/src/stories/Timeline.stories.tsx +9 -1
  171. package/src/stories/Timer.stories.tsx +1 -1
  172. package/src/stories/Toggle.stories.tsx +1 -1
  173. package/src/stories/ToggleGroup.stories.tsx +21 -1
  174. package/src/stories/ToggleTip.stories.tsx +1 -1
  175. package/src/stories/Toolbar.stories.tsx +1 -1
  176. package/src/stories/Tooltip.stories.tsx +1 -1
  177. package/src/stories/Tour.stories.tsx +1 -1
  178. package/src/stories/TransferList.stories.tsx +1 -1
  179. package/src/stories/TreeSelect.stories.tsx +1 -1
  180. package/src/stories/TreeView.stories.tsx +1 -1
  181. package/src/stories/TypingIndicator.stories.tsx +1 -1
  182. package/src/stories/VisuallyHidden.stories.tsx +1 -1
  183. package/src/stories/Watermark.stories.tsx +1 -1
  184. package/src/stories/WeekPicker.stories.tsx +90 -0
  185. package/src/stories/WordRotate.stories.tsx +1 -1
  186. package/src/stories/YearPicker.stories.tsx +1 -1
  187. package/src/stories/story-groups.json +199 -0
@@ -0,0 +1,269 @@
1
+ {
2
+ "$comment": "GENERATED by scripts/build-history.mjs — do not edit. Regenerate with `pnpm build:history`.",
3
+ "generatedAt": "2026-09-09",
4
+ "stats": [
5
+ {
6
+ "label": "commits",
7
+ "value": 1214
8
+ },
9
+ {
10
+ "label": "components",
11
+ "value": 180
12
+ },
13
+ {
14
+ "label": "semantic tokens",
15
+ "value": 45
16
+ },
17
+ {
18
+ "label": "layers",
19
+ "value": 10
20
+ }
21
+ ],
22
+ "genesis": {
23
+ "sha": "548b1ffe",
24
+ "date": "2026-05-04",
25
+ "subject": "Initial commit: BADS template v0.1.0"
26
+ },
27
+ "milestones": [
28
+ {
29
+ "sha": "f916cd24",
30
+ "date": "2026-09-09",
31
+ "scope": "shell",
32
+ "title": "replace the top tabs with a left rail, and promote the discipline tree upstream"
33
+ },
34
+ {
35
+ "sha": "2b3fe69f",
36
+ "date": "2026-09-09",
37
+ "scope": "storybook",
38
+ "title": "keep the variant galleries out of the AI manifest (#460)"
39
+ },
40
+ {
41
+ "sha": "31fd2924",
42
+ "date": "2026-09-09",
43
+ "scope": "progress",
44
+ "title": "add xl size (16px) to track height ladder (#445)"
45
+ },
46
+ {
47
+ "sha": "98ca9802",
48
+ "date": "2026-09-09",
49
+ "scope": "alert",
50
+ "title": "add sm size variant for compact / dense-layout use (#446)"
51
+ },
52
+ {
53
+ "sha": "7cda871b",
54
+ "date": "2026-09-09",
55
+ "scope": "components",
56
+ "title": "FormatDate + WeekPicker + Sparkline [Night Shift]"
57
+ },
58
+ {
59
+ "sha": "0fedeb8c",
60
+ "date": "2026-09-06",
61
+ "scope": "accordion",
62
+ "title": "add contained and separated visual variants (#447)"
63
+ },
64
+ {
65
+ "sha": "a7e9e817",
66
+ "date": "2026-09-06",
67
+ "scope": "tags-input",
68
+ "title": "add size prop sm/default/lg/xl (#444)"
69
+ },
70
+ {
71
+ "sha": "cef5617b",
72
+ "date": "2026-09-06",
73
+ "scope": "checkbox-card",
74
+ "title": "add size prop sm/default/lg (#443)"
75
+ },
76
+ {
77
+ "sha": "3e333c2f",
78
+ "date": "2026-09-06",
79
+ "scope": "checkbox",
80
+ "title": "add lg size 40px (#442)"
81
+ },
82
+ {
83
+ "sha": "640e144f",
84
+ "date": "2026-09-06",
85
+ "scope": "breadcrumb",
86
+ "title": "add dropdown variant for long paths (#439)"
87
+ },
88
+ {
89
+ "sha": "03279eba",
90
+ "date": "2026-09-05",
91
+ "scope": "components",
92
+ "title": "Avatar xl/xs sizes, ToggleGroup vertical, Tag icon slot (night-shift 2026-09-03)"
93
+ },
94
+ {
95
+ "sha": "f9c74daa",
96
+ "date": "2026-09-03",
97
+ "scope": "night-shift",
98
+ "title": "give Carl a bundle-delta efficiency floor"
99
+ },
100
+ {
101
+ "sha": "b1e04bbc",
102
+ "date": "2026-09-03",
103
+ "scope": "night-shift",
104
+ "title": "add four governance crew members + weekly deep-dive"
105
+ },
106
+ {
107
+ "sha": "cfc3e8d9",
108
+ "date": "2026-09-03",
109
+ "scope": "night-shift",
110
+ "title": "add Code Review Carl — staff-engineer review pass (step 3f)"
111
+ },
112
+ {
113
+ "sha": "8aee3811",
114
+ "date": "2026-09-01",
115
+ "scope": "scripts",
116
+ "title": "port accent-as-text lint from CL-BADS, add stale-exception detection to wcag-audit"
117
+ },
118
+ {
119
+ "sha": "e2165388",
120
+ "date": "2026-09-01",
121
+ "scope": "eval",
122
+ "title": "score the rules BADS actually enforces, from one shared definition"
123
+ },
124
+ {
125
+ "sha": "02b90ce5",
126
+ "date": "2026-09-01",
127
+ "scope": "multi-select",
128
+ "title": "add size prop (sm/default/lg/xl) (#430)"
129
+ },
130
+ {
131
+ "sha": "6878a6a2",
132
+ "date": "2026-09-01",
133
+ "scope": "combobox",
134
+ "title": "add size prop (sm/default/lg/xl) threading to Button trigger (#429)"
135
+ },
136
+ {
137
+ "sha": "020526e3",
138
+ "date": "2026-08-31",
139
+ "scope": "cards",
140
+ "title": "add ChatThread composition (#421)"
141
+ },
142
+ {
143
+ "sha": "8a53f8db",
144
+ "date": "2026-08-31",
145
+ "scope": "radio-group",
146
+ "title": "wire orientation prop to visual layout (#420)"
147
+ },
148
+ {
149
+ "sha": "266f9d18",
150
+ "date": "2026-08-31",
151
+ "scope": "switch",
152
+ "title": "add lg size variant (44×80px, SC 2.5.5 Enhanced compliant) (#419)"
153
+ },
154
+ {
155
+ "sha": "ff566d2a",
156
+ "date": "2026-08-31",
157
+ "scope": "home",
158
+ "title": "upstream shows a fork prompt; forks show their own prompts"
159
+ },
160
+ {
161
+ "sha": "cfa883eb",
162
+ "date": "2026-08-31",
163
+ "scope": "drift",
164
+ "title": "Phase B — ship the checks to consumers, make fleet drift visible"
165
+ },
166
+ {
167
+ "sha": "6ecf12ac",
168
+ "date": "2026-08-31",
169
+ "scope": "drift",
170
+ "title": "drift elimination Phase A — generated-artifact gate, registry truth, doctor, sync manifest v2, CLAUDE.md freshness"
171
+ },
172
+ {
173
+ "sha": "0f7128a2",
174
+ "date": "2026-08-30",
175
+ "scope": "pagination",
176
+ "title": "size prop — sm / default / lg (Tier 4, Night Shift 2026-08-30) (#414)"
177
+ },
178
+ {
179
+ "sha": "dabbf55e",
180
+ "date": "2026-08-30",
181
+ "scope": "progress",
182
+ "title": "striped and animated variants (Tier 4, Night Shift 2026-08-30)"
183
+ },
184
+ {
185
+ "sha": "9112a926",
186
+ "date": "2026-08-30",
187
+ "scope": "Textarea",
188
+ "title": "add size prop — sm / default / lg / xl via CVA (#404)"
189
+ },
190
+ {
191
+ "sha": "938f194a",
192
+ "date": "2026-08-29",
193
+ "scope": "Input",
194
+ "title": "add ghost and filled variant props (#411)"
195
+ },
196
+ {
197
+ "sha": "4f0e1b1e",
198
+ "date": "2026-08-29",
199
+ "scope": null,
200
+ "title": "add Table striped/bordered/compact variants (#409) [Night Shift]"
201
+ },
202
+ {
203
+ "sha": "20f54a22",
204
+ "date": "2026-08-29",
205
+ "scope": "DataTable",
206
+ "title": "add stickyHeader prop + Table wrapperClassName/wrapperStyle (#405)"
207
+ },
208
+ {
209
+ "sha": "11e74884",
210
+ "date": "2026-08-28",
211
+ "scope": "RadioGroupItem",
212
+ "title": "add size prop — sm / default / lg via CVA (#406)"
213
+ },
214
+ {
215
+ "sha": "d277fc62",
216
+ "date": "2026-08-27",
217
+ "scope": "select",
218
+ "title": "add lg and xl size variants (#396)"
219
+ },
220
+ {
221
+ "sha": "ad927e12",
222
+ "date": "2026-08-27",
223
+ "scope": "search-input",
224
+ "title": "add SearchInput composition primitive (#397)"
225
+ },
226
+ {
227
+ "sha": "506ab78a",
228
+ "date": "2026-08-26",
229
+ "scope": "ethics",
230
+ "title": "apply 8 HIGH data-entry findings — registry anti-patterns + lint"
231
+ },
232
+ {
233
+ "sha": "b8a14b22",
234
+ "date": "2026-08-26",
235
+ "scope": "lint",
236
+ "title": "guard against analytics SDKs in @core; close stale PostHog findings"
237
+ },
238
+ {
239
+ "sha": "056731e7",
240
+ "date": "2026-08-26",
241
+ "scope": "skeleton-table",
242
+ "title": "add SkeletonTable sub-component [Night Shift] (#355)"
243
+ },
244
+ {
245
+ "sha": "d9e2c5f2",
246
+ "date": "2026-08-26",
247
+ "scope": "[Night Shift]",
248
+ "title": "feat([Night Shift]) Add Progress intent prop (#367)"
249
+ },
250
+ {
251
+ "sha": "86a364ac",
252
+ "date": "2026-08-26",
253
+ "scope": "[Night Shift]",
254
+ "title": "feat([Night Shift]) Add Checkbox size prop (#368)"
255
+ },
256
+ {
257
+ "sha": "a6aac73f",
258
+ "date": "2026-08-26",
259
+ "scope": "rename",
260
+ "title": "make a fresh fork's docs speak as the fork (#381)"
261
+ },
262
+ {
263
+ "sha": "0fd4f0d9",
264
+ "date": "2026-08-26",
265
+ "scope": null,
266
+ "title": "add ToggleTip component (#378) [Night Shift]"
267
+ }
268
+ ]
269
+ }
@@ -14,7 +14,7 @@ import {
14
14
  // from comments and compiles them into invalid CSS that breaks the build.
15
15
 
16
16
  const meta: Meta<typeof Accordion> = {
17
- title: "Components/Accordion",
17
+ title: "Components/Layout/Accordion",
18
18
  component: Accordion,
19
19
  parameters: { layout: "centered" },
20
20
  tags: ["autodocs"],
@@ -86,6 +86,64 @@ export const Variant_Multiple: Story = {
86
86
  ),
87
87
  };
88
88
 
89
+ export const Variant_Contained: Story = {
90
+ render: () => (
91
+ <Accordion type="single" collapsible variant="contained" className="w-[400px]">
92
+ <AccordionItem value="item-1">
93
+ <AccordionTrigger>Workspace settings</AccordionTrigger>
94
+ <AccordionContent className="text-muted-foreground">
95
+ Configure your workspace name, slug, and time zone. Changes take
96
+ effect immediately for all members.
97
+ </AccordionContent>
98
+ </AccordionItem>
99
+ <AccordionItem value="item-2">
100
+ <AccordionTrigger>Billing and plan</AccordionTrigger>
101
+ <AccordionContent className="text-muted-foreground">
102
+ View your current plan, payment method, and invoices. Upgrade or
103
+ downgrade at any time — changes apply at the next billing cycle.
104
+ </AccordionContent>
105
+ </AccordionItem>
106
+ <AccordionItem value="item-3">
107
+ <AccordionTrigger>Notifications</AccordionTrigger>
108
+ <AccordionContent className="text-muted-foreground">
109
+ Control which events send an email or in-app notification to your
110
+ team. Per-member overrides are available in each member's profile.
111
+ </AccordionContent>
112
+ </AccordionItem>
113
+ </Accordion>
114
+ ),
115
+ };
116
+
117
+ export const Variant_Separated: Story = {
118
+ render: () => (
119
+ <Accordion type="single" collapsible variant="separated" className="w-[400px]">
120
+ <AccordionItem value="item-1">
121
+ <AccordionTrigger>What is BADS?</AccordionTrigger>
122
+ <AccordionContent className="text-muted-foreground">
123
+ BADS (Behavioral Agentic Design System) is a portable, distributable
124
+ design system built as the starting point for client engagements. It
125
+ ships tokens, components, ethics layers, and agent interfaces.
126
+ </AccordionContent>
127
+ </AccordionItem>
128
+ <AccordionItem value="item-2">
129
+ <AccordionTrigger>How do I customize tokens?</AccordionTrigger>
130
+ <AccordionContent className="text-muted-foreground">
131
+ Edit <code>tokens.json</code> and run{" "}
132
+ <code>pnpm build:tokens</code>. Both the published CSS and the local
133
+ preview regenerate automatically.
134
+ </AccordionContent>
135
+ </AccordionItem>
136
+ <AccordionItem value="item-3">
137
+ <AccordionTrigger>What accessibility standard does BADS target?</AccordionTrigger>
138
+ <AccordionContent className="text-muted-foreground">
139
+ BADS targets WCAG 2.2 AAA out of the box — 7:1 contrast for normal
140
+ text, 44 × 44 px touch targets, and reduced-motion respected.
141
+ </AccordionContent>
142
+ </AccordionItem>
143
+ </Accordion>
144
+ ),
145
+ };
146
+
89
147
  export const Disabled: Story = {
90
148
  render: () => (
91
149
  <Accordion type="single" collapsible className="w-[400px]">
@@ -7,7 +7,7 @@ import { Checkbox } from "@behavioral-agentic-design-system/core/components/ui/c
7
7
  import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
8
8
 
9
9
  const meta: Meta<typeof ActionBar> = {
10
- title: "Components/ActionBar",
10
+ title: "Components/Navigation/ActionBar",
11
11
  component: ActionBar,
12
12
  parameters: { layout: "fullscreen" },
13
13
  tags: ["autodocs"],
@@ -6,7 +6,7 @@ import { Button } from "@behavioral-agentic-design-system/core/components/ui/but
6
6
  import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badge";
7
7
 
8
8
  const meta: Meta<typeof Affix> = {
9
- title: "Components/Affix",
9
+ title: "Components/Layout/Affix",
10
10
  component: Affix,
11
11
  parameters: {
12
12
  layout: "centered",
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { AiBadge } from "@behavioral-agentic-design-system/core/components/ui/ai-badge";
3
3
 
4
4
  const meta: Meta<typeof AiBadge> = {
5
- title: "Components/AiBadge",
5
+ title: "Components/Badges and avatars/AiBadge",
6
6
  component: AiBadge,
7
7
  parameters: { layout: "centered" },
8
8
  tags: ["autodocs"],
@@ -15,7 +15,7 @@ import { Button } from "@behavioral-agentic-design-system/core/components/ui/but
15
15
  import { Card, CardContent, CardHeader, CardTitle } from "@behavioral-agentic-design-system/core/components/ui/card";
16
16
 
17
17
  const meta: Meta<typeof Alert> = {
18
- title: "Components/Alert",
18
+ title: "Components/Feedback/Alert",
19
19
  component: Alert,
20
20
  parameters: { layout: "centered" },
21
21
  tags: ["autodocs"],
@@ -118,6 +118,41 @@ export const NestedInCard: Story = {
118
118
  ),
119
119
  };
120
120
 
121
+ export const Size_Sm: Story = {
122
+ render: () => (<div className="w-[420px] flex flex-col gap-3">
123
+ <Alert size="sm">
124
+ <AlertCircleIcon className="h-5 w-5" />
125
+ <AlertTitle>Heads up</AlertTitle>
126
+ <AlertDescription>Check your notification settings.</AlertDescription>
127
+ </Alert>
128
+ <Alert size="sm" variant="destructive">
129
+ <AlertCircleIcon className="h-5 w-5" />
130
+ <AlertTitle>Connection lost</AlertTitle>
131
+ <AlertDescription>Changes may not have been saved.</AlertDescription>
132
+ </Alert>
133
+ <Alert size="sm" variant="success">
134
+ <CheckCircle2Icon className="h-5 w-5" />
135
+ <AlertTitle>Saved</AlertTitle>
136
+ <AlertDescription>Your changes were applied.</AlertDescription>
137
+ </Alert>
138
+ </div>),
139
+ };
140
+
141
+ export const Sizes: Story = {
142
+ render: () => (<div className="w-[420px] flex flex-col gap-4">
143
+ <Alert>
144
+ <AlertCircleIcon className="h-5 w-5" />
145
+ <AlertTitle>Default size</AlertTitle>
146
+ <AlertDescription>Standard padding for standalone notices.</AlertDescription>
147
+ </Alert>
148
+ <Alert size="sm">
149
+ <AlertCircleIcon className="h-5 w-5" />
150
+ <AlertTitle>Small (sm)</AlertTitle>
151
+ <AlertDescription>Compact padding for dense layouts or inline notices.</AlertDescription>
152
+ </Alert>
153
+ </div>),
154
+ };
155
+
121
156
  export const RealisticUse: Story = {
122
157
  render: () => (<div className="w-[420px] flex flex-col gap-3">
123
158
  <Alert>
@@ -14,7 +14,7 @@ import { Button } from "@behavioral-agentic-design-system/core/components/ui/but
14
14
  import { buttonVariants } from "@behavioral-agentic-design-system/core/components/ui/button";
15
15
 
16
16
  const meta: Meta<typeof AlertDialog> = {
17
- title: "Components/AlertDialog",
17
+ title: "Components/Feedback/AlertDialog",
18
18
  component: AlertDialog,
19
19
  parameters: {
20
20
  layout: "centered",
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import { Anchor } from "@behavioral-agentic-design-system/core/components/ui/anchor";
4
4
 
5
5
  const meta: Meta<typeof Anchor> = {
6
- title: "Components/Anchor",
6
+ title: "Components/Navigation/Anchor",
7
7
  component: Anchor,
8
8
  parameters: { layout: "padded" },
9
9
  tags: ["autodocs"],
@@ -10,7 +10,7 @@ import {
10
10
  import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
11
11
 
12
12
  const meta: Meta<typeof AngleSlider> = {
13
- title: "Components/AngleSlider",
13
+ title: "Components/Selection/AngleSlider",
14
14
  component: AngleSlider,
15
15
  parameters: {
16
16
  layout: "centered",
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { AspectRatio } from "@behavioral-agentic-design-system/core/components/ui/aspect-ratio";
3
3
 
4
4
  const meta: Meta<typeof AspectRatio> = {
5
- title: "Components/AspectRatio",
5
+ title: "Components/Layout/AspectRatio",
6
6
  component: AspectRatio,
7
7
  parameters: { layout: "centered" },
8
8
  tags: ["autodocs"],
@@ -4,7 +4,7 @@ import { Autocomplete } from "@behavioral-agentic-design-system/core/components/
4
4
  import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
5
5
 
6
6
  const meta: Meta<typeof Autocomplete> = {
7
- title: "Components/Autocomplete",
7
+ title: "Components/Selection/Autocomplete",
8
8
  component: Autocomplete,
9
9
  parameters: { layout: "centered" },
10
10
  tags: ["autodocs"],
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Avatar, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "@behavioral-agentic-design-system/core/components/ui/avatar";
3
3
 
4
4
  const meta: Meta<typeof Avatar> = {
5
- title: "Components/Avatar",
5
+ title: "Components/Badges and avatars/Avatar",
6
6
  component: Avatar,
7
7
  parameters: { layout: "centered" },
8
8
  tags: ["autodocs"],
@@ -11,6 +11,20 @@ const meta: Meta<typeof Avatar> = {
11
11
  export default meta;
12
12
  type Story = StoryObj<typeof meta>;
13
13
 
14
+ export const Size_Xs: Story = {
15
+ render: () => (
16
+ <div className="flex items-center gap-3">
17
+ <Avatar size="xs">
18
+ <AvatarImage src="/avatars/01.png" alt="Jordan Reeves" />
19
+ <AvatarFallback>JR</AvatarFallback>
20
+ </Avatar>
21
+ <Avatar size="xs">
22
+ <AvatarFallback>SP</AvatarFallback>
23
+ </Avatar>
24
+ </div>
25
+ ),
26
+ };
27
+
14
28
  export const Default: Story = {
15
29
  render: () => (<div className="flex items-center gap-3">
16
30
  <Avatar>
@@ -23,6 +37,32 @@ export const Default: Story = {
23
37
  </div>),
24
38
  };
25
39
 
40
+ export const Size_Xl: Story = {
41
+ render: () => (
42
+ <div className="flex items-center gap-3">
43
+ <Avatar size="xl">
44
+ <AvatarImage src="/avatars/01.png" alt="Olivia Martin" />
45
+ <AvatarFallback>OM</AvatarFallback>
46
+ </Avatar>
47
+ <Avatar size="xl">
48
+ <AvatarFallback>MS</AvatarFallback>
49
+ </Avatar>
50
+ </div>
51
+ ),
52
+ };
53
+
54
+ export const Size_AllSizes: Story = {
55
+ render: () => (
56
+ <div className="flex items-end gap-3">
57
+ {(["xs", "sm", "default", "lg", "xl"] as const).map((size) => (
58
+ <Avatar key={size} size={size}>
59
+ <AvatarFallback>NN</AvatarFallback>
60
+ </Avatar>
61
+ ))}
62
+ </div>
63
+ ),
64
+ };
65
+
26
66
  export const Shape_Circle: Story = {
27
67
  render: () => (
28
68
  <div className="flex items-center gap-3">
@@ -16,7 +16,7 @@ import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badg
16
16
  * BADS text-xs = 14px and text-sm = 16px — both meet the AAA 14px floor.
17
17
  */
18
18
  const meta: Meta<typeof Badge> = {
19
- title: "Components/Badge",
19
+ title: "Components/Badges and avatars/Badge",
20
20
  component: Badge,
21
21
  parameters: { layout: "centered" },
22
22
  tags: ["autodocs"],
@@ -13,7 +13,7 @@ import {
13
13
  } from "@behavioral-agentic-design-system/core/components/ui/card"
14
14
 
15
15
  const meta: Meta<typeof Blockquote> = {
16
- title: "Components/Blockquote",
16
+ title: "Components/Content and data/Blockquote",
17
17
  component: Blockquote,
18
18
  parameters: { layout: "centered" },
19
19
  tags: ["autodocs"],
@@ -20,7 +20,7 @@ import {
20
20
  import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badge";
21
21
 
22
22
  const meta: Meta<typeof BottomNavigation> = {
23
- title: "Components/BottomNavigation",
23
+ title: "Components/Navigation/BottomNavigation",
24
24
  component: BottomNavigation,
25
25
  parameters: { layout: "centered" },
26
26
  tags: ["autodocs"],
@@ -1,8 +1,8 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "@behavioral-agentic-design-system/core/components/ui/breadcrumb";
2
+ import { Breadcrumb, BreadcrumbDropdown, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "@behavioral-agentic-design-system/core/components/ui/breadcrumb";
3
3
 
4
4
  const meta: Meta<typeof Breadcrumb> = {
5
- title: "Components/Breadcrumb",
5
+ title: "Components/Navigation/Breadcrumb",
6
6
  component: Breadcrumb,
7
7
  parameters: { layout: "centered" },
8
8
  tags: ["autodocs"],
@@ -23,14 +23,47 @@ export const Default: Story = {
23
23
  </Breadcrumb>),
24
24
  };
25
25
 
26
+ export const WithDropdown: Story = {
27
+ render: () => (
28
+ <Breadcrumb>
29
+ <BreadcrumbList>
30
+ <BreadcrumbItem><BreadcrumbLink href="#">Home</BreadcrumbLink></BreadcrumbItem>
31
+ <BreadcrumbSeparator />
32
+ <BreadcrumbItem>
33
+ <BreadcrumbDropdown
34
+ items={[
35
+ { label: "Design System", href: "#" },
36
+ { label: "Components", href: "#" },
37
+ { label: "Primitives", href: "#" },
38
+ ]}
39
+ />
40
+ </BreadcrumbItem>
41
+ <BreadcrumbSeparator />
42
+ <BreadcrumbItem><BreadcrumbPage>Breadcrumb</BreadcrumbPage></BreadcrumbItem>
43
+ </BreadcrumbList>
44
+ </Breadcrumb>
45
+ ),
46
+ };
47
+
26
48
  export const RealisticUse: Story = {
27
- render: () => (<Breadcrumb>
49
+ render: () => (
50
+ <Breadcrumb>
28
51
  <BreadcrumbList>
29
52
  <BreadcrumbItem><BreadcrumbLink href="#">Home</BreadcrumbLink></BreadcrumbItem>
30
53
  <BreadcrumbSeparator />
31
- <BreadcrumbItem><BreadcrumbLink href="#">Components</BreadcrumbLink></BreadcrumbItem>
54
+ <BreadcrumbItem>
55
+ <BreadcrumbDropdown
56
+ items={[
57
+ { label: "Documentation", href: "#" },
58
+ { label: "Components", href: "#" },
59
+ ]}
60
+ />
61
+ </BreadcrumbItem>
62
+ <BreadcrumbSeparator />
63
+ <BreadcrumbItem><BreadcrumbLink href="#">Navigation</BreadcrumbLink></BreadcrumbItem>
32
64
  <BreadcrumbSeparator />
33
65
  <BreadcrumbItem><BreadcrumbPage>Breadcrumb</BreadcrumbPage></BreadcrumbItem>
34
66
  </BreadcrumbList>
35
- </Breadcrumb>),
67
+ </Breadcrumb>
68
+ ),
36
69
  };
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
3
3
  import { Burger } from "@behavioral-agentic-design-system/core/components/ui/burger";
4
4
 
5
5
  const meta: Meta<typeof Burger> = {
6
- title: "Components/Burger",
6
+ title: "Components/Actions/Burger",
7
7
  component: Burger,
8
8
  parameters: { layout: "centered" },
9
9
  tags: ["autodocs"],
@@ -8,7 +8,7 @@ import { Button } from "@behavioral-agentic-design-system/core/components/ui/but
8
8
  import { Heart } from "lucide-react"
9
9
 
10
10
  const meta: Meta<typeof Button> = {
11
- title: "Components/Button",
11
+ title: "Components/Actions/Button",
12
12
  component: Button,
13
13
  parameters: {
14
14
  layout: "centered",
@@ -245,7 +245,15 @@ export const Interaction_DisabledReason: Story = {
245
245
  },
246
246
  };
247
247
 
248
+ /**
249
+ * Every option at once, for a person comparing them side by side.
250
+ *
251
+ * Tagged out of the machine-readable manifest: an assistant reading this as an
252
+ * example learns to render a gallery of variants where a screen was asked for.
253
+ * It stays visible in the sidebar, where a human reads it as the reference it is.
254
+ */
248
255
  export const AllSizes: Story = {
256
+ tags: ["!manifest"],
249
257
  render: () => (
250
258
  <div className="flex flex-wrap items-center gap-3">
251
259
  <Button size="sm">Small</Button>