@behavioral-agentic-design-system/core 0.27.0 → 0.29.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 (113) hide show
  1. package/package.json +5 -5
  2. package/scripts/a11y-lint.cjs +78 -9
  3. package/scripts/build-tokens.cjs +273 -15
  4. package/scripts/wcag-audit.cjs +37 -7
  5. package/src/api/layers/file.ts +1 -0
  6. package/src/app/font-ready.tsx +6 -5
  7. package/src/app/layout.tsx +54 -3
  8. package/src/app/preview/components/page.tsx +5735 -2500
  9. package/src/app/preview/layout.tsx +4 -1
  10. package/src/app/preview/showcase-filter.tsx +66 -0
  11. package/src/app/preview/tab-replay.tsx +63 -0
  12. package/src/app/shell.tsx +91 -18
  13. package/src/components/customize/save-bar.tsx +19 -6
  14. package/src/components/docs-tab.tsx +36 -24
  15. package/src/components/layers-tab.tsx +37 -5
  16. package/src/components/ui/ai-badge.tsx +74 -0
  17. package/src/components/ui/alert.tsx +12 -0
  18. package/src/components/ui/badge.tsx +19 -0
  19. package/src/components/ui/chat-bubble.tsx +298 -0
  20. package/src/components/ui/chat-marker.tsx +120 -0
  21. package/src/components/ui/checkbox.tsx +9 -1
  22. package/src/components/ui/clipboard.tsx +291 -0
  23. package/src/components/ui/close-button.tsx +71 -0
  24. package/src/components/ui/combobox.tsx +62 -3
  25. package/src/components/ui/container.tsx +65 -0
  26. package/src/components/ui/copy-button.tsx +5 -1
  27. package/src/components/ui/data-table.tsx +388 -0
  28. package/src/components/ui/date-field.tsx +368 -0
  29. package/src/components/ui/drawer.tsx +334 -0
  30. package/src/components/ui/file-button.tsx +145 -0
  31. package/src/components/ui/floating-indicator.tsx +217 -0
  32. package/src/components/ui/focus-trap.tsx +184 -0
  33. package/src/components/ui/format-byte.tsx +113 -0
  34. package/src/components/ui/index.ts +28 -0
  35. package/src/components/ui/input.tsx +38 -3
  36. package/src/components/ui/keyboard-shortcut.tsx +146 -0
  37. package/src/components/ui/loading-dots.tsx +99 -0
  38. package/src/components/ui/mark.tsx +69 -0
  39. package/src/components/ui/month-picker.tsx +296 -0
  40. package/src/components/ui/multi-select.tsx +15 -13
  41. package/src/components/ui/nav-link.tsx +200 -0
  42. package/src/components/ui/navigation-rail.tsx +256 -0
  43. package/src/components/ui/notification.tsx +20 -0
  44. package/src/components/ui/password-input.tsx +34 -1
  45. package/src/components/ui/progress.tsx +15 -1
  46. package/src/components/ui/prose.tsx +62 -0
  47. package/src/components/ui/result.tsx +151 -0
  48. package/src/components/ui/rolling-number.tsx +201 -0
  49. package/src/components/ui/simple-grid.tsx +110 -0
  50. package/src/components/ui/skeleton.tsx +52 -3
  51. package/src/components/ui/squircle.tsx +274 -0
  52. package/src/components/ui/stack.tsx +105 -0
  53. package/src/components/ui/status-badge.tsx +93 -0
  54. package/src/components/ui/tabs.tsx +34 -7
  55. package/src/components/ui/tag.tsx +46 -5
  56. package/src/components/ui/theme-icon.tsx +138 -0
  57. package/src/components/ui/timeline.tsx +27 -10
  58. package/src/components/ui/tooltip.tsx +12 -1
  59. package/src/components/ui/tree-select.tsx +386 -0
  60. package/src/components/ui/typing-indicator.tsx +2 -2
  61. package/src/components/ui/word-rotate.tsx +6 -1
  62. package/src/components/ui/year-picker.tsx +307 -0
  63. package/src/data/docs-index.ts +10 -0
  64. package/src/hooks/use-global-primary-color.ts +57 -6
  65. package/src/stories/AiBadge.stories.tsx +67 -0
  66. package/src/stories/Alert.stories.tsx +31 -1
  67. package/src/stories/Badge.stories.tsx +63 -6
  68. package/src/stories/ChatBubble.stories.tsx +222 -0
  69. package/src/stories/ChatMarker.stories.tsx +59 -0
  70. package/src/stories/Checkbox.stories.tsx +5 -0
  71. package/src/stories/Clipboard.stories.tsx +136 -0
  72. package/src/stories/CloseButton.stories.tsx +65 -0
  73. package/src/stories/Combobox.stories.tsx +74 -3
  74. package/src/stories/Container.stories.tsx +134 -0
  75. package/src/stories/CopyButton.stories.tsx +2 -0
  76. package/src/stories/DataTable.stories.tsx +271 -0
  77. package/src/stories/DateField.stories.tsx +114 -0
  78. package/src/stories/Drawer.stories.tsx +211 -0
  79. package/src/stories/FileButton.stories.tsx +117 -0
  80. package/src/stories/FloatingIndicator.stories.tsx +343 -0
  81. package/src/stories/FocusTrap.stories.tsx +218 -0
  82. package/src/stories/FormatByte.stories.tsx +142 -0
  83. package/src/stories/Input.stories.tsx +91 -0
  84. package/src/stories/KeyboardShortcut.stories.tsx +87 -0
  85. package/src/stories/LoadingDots.stories.tsx +73 -0
  86. package/src/stories/Mark.stories.tsx +84 -0
  87. package/src/stories/MonthPicker.stories.tsx +99 -0
  88. package/src/stories/MultiSelect.stories.tsx +3 -1
  89. package/src/stories/NavLink.stories.tsx +213 -0
  90. package/src/stories/NavigationRail.stories.tsx +413 -0
  91. package/src/stories/Notification.stories.tsx +53 -0
  92. package/src/stories/PasswordInput.stories.tsx +21 -0
  93. package/src/stories/Progress.stories.tsx +38 -0
  94. package/src/stories/Prose.stories.tsx +232 -0
  95. package/src/stories/Result.stories.tsx +145 -0
  96. package/src/stories/RollingNumber.stories.tsx +226 -0
  97. package/src/stories/SimpleGrid.stories.tsx +130 -0
  98. package/src/stories/Skeleton.stories.tsx +62 -1
  99. package/src/stories/Squircle.stories.tsx +127 -0
  100. package/src/stories/Stack.stories.tsx +139 -0
  101. package/src/stories/StatusBadge.stories.tsx +125 -0
  102. package/src/stories/Tabs.stories.tsx +56 -1
  103. package/src/stories/Tag.stories.tsx +31 -0
  104. package/src/stories/ThemeIcon.stories.tsx +97 -0
  105. package/src/stories/Timeline.stories.tsx +69 -0
  106. package/src/stories/Tooltip.stories.tsx +18 -0
  107. package/src/stories/TreeSelect.stories.tsx +222 -0
  108. package/src/stories/TypingIndicator.stories.tsx +1 -0
  109. package/src/stories/WordRotate.stories.tsx +1 -0
  110. package/src/stories/YearPicker.stories.tsx +100 -0
  111. package/src/styles.css +289 -15
  112. package/src/tokens.json +96 -1
  113. package/LICENSE +0 -21
@@ -0,0 +1,413 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import * as React from "react";
3
+ import {
4
+ BarChart3Icon,
5
+ BellIcon,
6
+ BookOpenIcon,
7
+ FolderKanbanIcon,
8
+ HelpCircleIcon,
9
+ HomeIcon,
10
+ LayoutDashboardIcon,
11
+ LibraryIcon,
12
+ PaletteIcon,
13
+ SettingsIcon,
14
+ ShapesIcon,
15
+ UsersIcon,
16
+ } from "lucide-react";
17
+ import {
18
+ NavigationRail,
19
+ NavigationRailFooter,
20
+ NavigationRailHeader,
21
+ NavigationRailItem,
22
+ } from "@behavioral-agentic-design-system/core/components/ui/navigation-rail";
23
+ import {
24
+ Card,
25
+ CardContent,
26
+ } from "@behavioral-agentic-design-system/core/components/ui/card";
27
+ import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badge";
28
+
29
+ const meta: Meta<typeof NavigationRail> = {
30
+ title: "Components/NavigationRail",
31
+ component: NavigationRail,
32
+ parameters: { layout: "centered" },
33
+ tags: ["autodocs"],
34
+ argTypes: {
35
+ expanded: { control: "boolean" },
36
+ },
37
+ };
38
+
39
+ export default meta;
40
+ type Story = StoryObj<typeof NavigationRail>;
41
+
42
+ // Frame that gives the rail a realistic app-shell height inside the canvas.
43
+ function Frame({ children }: { children: React.ReactNode }) {
44
+ return (
45
+ <div className="flex h-96 overflow-hidden rounded-lg border border-border bg-background">
46
+ {children}
47
+ </div>
48
+ );
49
+ }
50
+
51
+ export const Default: Story = {
52
+ render: () => (
53
+ <Frame>
54
+ <NavigationRail defaultValue="dashboard" label="Primary">
55
+ <NavigationRailItem
56
+ value="dashboard"
57
+ icon={<LayoutDashboardIcon strokeWidth={1.5} />}
58
+ label="Home"
59
+ />
60
+ <NavigationRailItem
61
+ value="analytics"
62
+ icon={<BarChart3Icon strokeWidth={1.5} />}
63
+ label="Stats"
64
+ />
65
+ <NavigationRailItem
66
+ value="projects"
67
+ icon={<FolderKanbanIcon strokeWidth={1.5} />}
68
+ label="Work"
69
+ />
70
+ <NavigationRailItem
71
+ value="team"
72
+ icon={<UsersIcon strokeWidth={1.5} />}
73
+ label="Team"
74
+ />
75
+ <NavigationRailItem
76
+ value="settings"
77
+ icon={<SettingsIcon strokeWidth={1.5} />}
78
+ label="Setup"
79
+ />
80
+ </NavigationRail>
81
+ </Frame>
82
+ ),
83
+ };
84
+
85
+ export const Expanded: Story = {
86
+ render: () => (
87
+ <Frame>
88
+ <NavigationRail defaultValue="components" expanded label="Design system">
89
+ <NavigationRailItem
90
+ value="home"
91
+ icon={<HomeIcon strokeWidth={1.5} />}
92
+ label="Home"
93
+ />
94
+ <NavigationRailItem
95
+ value="components"
96
+ icon={<LibraryIcon strokeWidth={1.5} />}
97
+ label="Components"
98
+ />
99
+ <NavigationRailItem
100
+ value="tokens"
101
+ icon={<PaletteIcon strokeWidth={1.5} />}
102
+ label="Tokens"
103
+ />
104
+ <NavigationRailItem
105
+ value="docs"
106
+ icon={<BookOpenIcon strokeWidth={1.5} />}
107
+ label="Documentation"
108
+ />
109
+ </NavigationRail>
110
+ </Frame>
111
+ ),
112
+ };
113
+
114
+ export const WithBadge: Story = {
115
+ render: () => (
116
+ <Frame>
117
+ <NavigationRail defaultValue="home" label="Primary">
118
+ <NavigationRailItem
119
+ value="home"
120
+ icon={<HomeIcon strokeWidth={1.5} />}
121
+ label="Home"
122
+ />
123
+ <NavigationRailItem
124
+ value="alerts"
125
+ icon={<BellIcon strokeWidth={1.5} />}
126
+ label="Alerts"
127
+ badge={3}
128
+ badgeLabel="3 unread notifications"
129
+ />
130
+ <NavigationRailItem
131
+ value="projects"
132
+ icon={<FolderKanbanIcon strokeWidth={1.5} />}
133
+ label="Work"
134
+ badge="9+"
135
+ badgeLabel="More than 9 open reviews"
136
+ />
137
+ </NavigationRail>
138
+ </Frame>
139
+ ),
140
+ };
141
+
142
+ export const Disabled: Story = {
143
+ render: () => (
144
+ <Frame>
145
+ <NavigationRail defaultValue="home" label="Primary">
146
+ <NavigationRailItem
147
+ value="home"
148
+ icon={<HomeIcon strokeWidth={1.5} />}
149
+ label="Home"
150
+ />
151
+ <NavigationRailItem
152
+ value="analytics"
153
+ icon={<BarChart3Icon strokeWidth={1.5} />}
154
+ label="Stats"
155
+ disabled
156
+ />
157
+ <NavigationRailItem
158
+ value="settings"
159
+ icon={<SettingsIcon strokeWidth={1.5} />}
160
+ label="Setup"
161
+ />
162
+ </NavigationRail>
163
+ </Frame>
164
+ ),
165
+ };
166
+
167
+ export const WithHeader: Story = {
168
+ render: () => (
169
+ <Frame>
170
+ <NavigationRail defaultValue="components" label="Design system">
171
+ <NavigationRailHeader>
172
+ <span
173
+ aria-hidden="true"
174
+ className="flex size-8 items-center justify-center rounded-lg bg-primary text-primary-foreground"
175
+ >
176
+ <ShapesIcon strokeWidth={1.5} className="size-4" />
177
+ </span>
178
+ </NavigationRailHeader>
179
+ <NavigationRailItem
180
+ value="home"
181
+ icon={<HomeIcon strokeWidth={1.5} />}
182
+ label="Home"
183
+ />
184
+ <NavigationRailItem
185
+ value="components"
186
+ icon={<LibraryIcon strokeWidth={1.5} />}
187
+ label="Parts"
188
+ />
189
+ <NavigationRailItem
190
+ value="tokens"
191
+ icon={<PaletteIcon strokeWidth={1.5} />}
192
+ label="Tokens"
193
+ />
194
+ </NavigationRail>
195
+ </Frame>
196
+ ),
197
+ };
198
+
199
+ export const WithFooter: Story = {
200
+ render: () => (
201
+ <Frame>
202
+ <NavigationRail defaultValue="home" label="Primary">
203
+ <NavigationRailItem
204
+ value="home"
205
+ icon={<HomeIcon strokeWidth={1.5} />}
206
+ label="Home"
207
+ />
208
+ <NavigationRailItem
209
+ value="projects"
210
+ icon={<FolderKanbanIcon strokeWidth={1.5} />}
211
+ label="Work"
212
+ />
213
+ <NavigationRailFooter>
214
+ <NavigationRailItem
215
+ value="help"
216
+ icon={<HelpCircleIcon strokeWidth={1.5} />}
217
+ label="Help"
218
+ />
219
+ <NavigationRailItem
220
+ value="settings"
221
+ icon={<SettingsIcon strokeWidth={1.5} />}
222
+ label="Setup"
223
+ />
224
+ </NavigationRailFooter>
225
+ </NavigationRail>
226
+ </Frame>
227
+ ),
228
+ };
229
+
230
+ // Each destination shown in its active state — the accent pill + semibold
231
+ // label + icon lift that signal aria-current="page" (never color alone).
232
+ export const ActiveItem: Story = {
233
+ render: () => (
234
+ <div className="flex gap-4">
235
+ {["home", "analytics", "team"].map((active) => (
236
+ <Frame key={active}>
237
+ <NavigationRail value={active} label={`Active: ${active}`}>
238
+ <NavigationRailItem
239
+ value="home"
240
+ icon={<HomeIcon strokeWidth={1.5} />}
241
+ label="Home"
242
+ />
243
+ <NavigationRailItem
244
+ value="analytics"
245
+ icon={<BarChart3Icon strokeWidth={1.5} />}
246
+ label="Stats"
247
+ />
248
+ <NavigationRailItem
249
+ value="team"
250
+ icon={<UsersIcon strokeWidth={1.5} />}
251
+ label="Team"
252
+ />
253
+ </NavigationRail>
254
+ </Frame>
255
+ ))}
256
+ </div>
257
+ ),
258
+ };
259
+
260
+ export const AllVariants: Story = {
261
+ render: () => (
262
+ <div className="flex items-start gap-6">
263
+ <div className="space-y-2">
264
+ <p className="text-xs font-medium text-muted-foreground">Compact (80px)</p>
265
+ <Frame>
266
+ <NavigationRail defaultValue="home" label="Compact demo">
267
+ <NavigationRailItem
268
+ value="home"
269
+ icon={<HomeIcon strokeWidth={1.5} />}
270
+ label="Home"
271
+ />
272
+ <NavigationRailItem
273
+ value="analytics"
274
+ icon={<BarChart3Icon strokeWidth={1.5} />}
275
+ label="Stats"
276
+ />
277
+ <NavigationRailItem
278
+ value="settings"
279
+ icon={<SettingsIcon strokeWidth={1.5} />}
280
+ label="Setup"
281
+ />
282
+ </NavigationRail>
283
+ </Frame>
284
+ </div>
285
+ <div className="space-y-2">
286
+ <p className="text-xs font-medium text-muted-foreground">Expanded</p>
287
+ <Frame>
288
+ <NavigationRail defaultValue="home" expanded label="Expanded demo">
289
+ <NavigationRailItem
290
+ value="home"
291
+ icon={<HomeIcon strokeWidth={1.5} />}
292
+ label="Home"
293
+ />
294
+ <NavigationRailItem
295
+ value="analytics"
296
+ icon={<BarChart3Icon strokeWidth={1.5} />}
297
+ label="Analytics"
298
+ />
299
+ <NavigationRailItem
300
+ value="settings"
301
+ icon={<SettingsIcon strokeWidth={1.5} />}
302
+ label="Settings"
303
+ />
304
+ </NavigationRail>
305
+ </Frame>
306
+ </div>
307
+ </div>
308
+ ),
309
+ };
310
+
311
+ export const Minimal: Story = {
312
+ render: () => (
313
+ <Frame>
314
+ <NavigationRail defaultValue="home" label="Primary">
315
+ <NavigationRailItem
316
+ value="home"
317
+ icon={<HomeIcon strokeWidth={1.5} />}
318
+ label="Home"
319
+ />
320
+ <NavigationRailItem
321
+ value="library"
322
+ icon={<LibraryIcon strokeWidth={1.5} />}
323
+ label="Library"
324
+ />
325
+ <NavigationRailItem
326
+ value="settings"
327
+ icon={<SettingsIcon strokeWidth={1.5} />}
328
+ label="Setup"
329
+ />
330
+ </NavigationRail>
331
+ </Frame>
332
+ ),
333
+ };
334
+
335
+ // Realistic use: desktop frame of the BADS docs app — rail on the left,
336
+ // content region beside it. Content pulled from content/personas/bads.json
337
+ // (design-system practitioner audience — Jordan Reeves, design.bads.com).
338
+ export const RealisticUse: Story = {
339
+ render: () => {
340
+ const [section, setSection] = React.useState("dashboard");
341
+ const screens: Record<string, { title: string; body: string }> = {
342
+ dashboard: {
343
+ title: "Welcome back, Jordan",
344
+ body: "Story coverage is at 98.4%. Last token change was 3 days ago.",
345
+ },
346
+ analytics: {
347
+ title: "Adoption analytics",
348
+ body: "12,417 token references scanned in the last orphan-lint sweep. Zero orphans flagged.",
349
+ },
350
+ projects: {
351
+ title: "Active engagements",
352
+ body: "Tokens v2 proposal in review — design.bads.com/share/tokens-v2-proposal.",
353
+ },
354
+ team: {
355
+ title: "Team",
356
+ body: "Jordan Reeves · Design Systems Lead · jordan@reeves.design · Austin, TX",
357
+ },
358
+ settings: {
359
+ title: "Workspace settings",
360
+ body: "Theme, brand color overrides, and localStorage customizations live here.",
361
+ },
362
+ };
363
+ const screen = screens[section];
364
+ return (
365
+ <div className="flex h-[420px] w-[560px] overflow-hidden rounded-xl border border-border bg-background shadow-sm">
366
+ <NavigationRail
367
+ value={section}
368
+ onValueChange={setSection}
369
+ label="Primary"
370
+ >
371
+ <NavigationRailItem
372
+ value="dashboard"
373
+ icon={<LayoutDashboardIcon strokeWidth={1.5} />}
374
+ label="Home"
375
+ />
376
+ <NavigationRailItem
377
+ value="analytics"
378
+ icon={<BarChart3Icon strokeWidth={1.5} />}
379
+ label="Stats"
380
+ />
381
+ <NavigationRailItem
382
+ value="projects"
383
+ icon={<FolderKanbanIcon strokeWidth={1.5} />}
384
+ label="Work"
385
+ badge={2}
386
+ badgeLabel="2 proposals awaiting review"
387
+ />
388
+ <NavigationRailItem
389
+ value="team"
390
+ icon={<UsersIcon strokeWidth={1.5} />}
391
+ label="Team"
392
+ />
393
+ <NavigationRailFooter>
394
+ <NavigationRailItem
395
+ value="settings"
396
+ icon={<SettingsIcon strokeWidth={1.5} />}
397
+ label="Setup"
398
+ />
399
+ </NavigationRailFooter>
400
+ </NavigationRail>
401
+ <div className="flex-1 space-y-3 overflow-y-auto p-5">
402
+ <Badge variant="secondary">design.bads.com</Badge>
403
+ <h2 className="text-lg font-semibold">{screen.title}</h2>
404
+ <Card>
405
+ <CardContent className="p-4">
406
+ <p className="text-sm text-muted-foreground">{screen.body}</p>
407
+ </CardContent>
408
+ </Card>
409
+ </div>
410
+ </div>
411
+ );
412
+ },
413
+ };
@@ -11,6 +11,7 @@ import {
11
11
  TriangleAlert,
12
12
  } from "lucide-react";
13
13
  import { Notification } from "@behavioral-agentic-design-system/core/components/ui/notification";
14
+ import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
14
15
  import {
15
16
  Avatar,
16
17
  AvatarFallback,
@@ -119,6 +120,58 @@ export const Variant_Warning: Story = {
119
120
  ),
120
121
  };
121
122
 
123
+ export const WithActions: Story = {
124
+ render: () => (
125
+ <Notification
126
+ unread
127
+ icon={<GitPullRequest strokeWidth={1.5} />}
128
+ title="Jordan Reeves requested your review"
129
+ description="tokens-v2-proposal — 4 visual changes across Button, Tabs, and the Foundations stories."
130
+ timestamp="2 min ago"
131
+ actions={
132
+ <>
133
+ <Button size="sm">Review changes</Button>
134
+ <Button size="sm" variant="outline">
135
+ Snooze
136
+ </Button>
137
+ </>
138
+ }
139
+ />
140
+ ),
141
+ };
142
+
143
+ function WithActionsAndDismissDemo() {
144
+ const [visible, setVisible] = React.useState(true);
145
+ if (!visible) {
146
+ return (
147
+ <button
148
+ type="button"
149
+ className="text-sm font-medium text-primary underline underline-offset-4 min-h-11"
150
+ onClick={() => setVisible(true)}
151
+ >
152
+ Restore notification
153
+ </button>
154
+ );
155
+ }
156
+ return (
157
+ <Notification
158
+ variant="success"
159
+ icon={<CheckCircle2 strokeWidth={1.5} />}
160
+ title="Story coverage report ready"
161
+ description="Coverage is at 98.4% after last night's build pass."
162
+ timestamp="1 hr ago"
163
+ actions={<Button size="sm">View report</Button>}
164
+ onDismiss={() => setVisible(false)}
165
+ />
166
+ );
167
+ }
168
+
169
+ // Tab order contract: the action button comes BEFORE the dismiss X (actions
170
+ // live in the content column, dismiss is a later DOM sibling).
171
+ export const WithActionsAndDismiss: Story = {
172
+ render: () => <WithActionsAndDismissDemo />,
173
+ };
174
+
122
175
  function DismissibleDemo() {
123
176
  const [visible, setVisible] = React.useState(true);
124
177
  if (!visible) {
@@ -46,6 +46,27 @@ export const AriaInvalid: Story = {
46
46
  args: { "aria-invalid": true, placeholder: "Invalid password" },
47
47
  };
48
48
 
49
+ export const Variant_SubmitReset: Story = {
50
+ name: "Variant_SubmitReset",
51
+ render: () => (
52
+ <form
53
+ className="w-80 space-y-3"
54
+ onSubmit={(e) => {
55
+ e.preventDefault();
56
+ }}
57
+ >
58
+ <PasswordInput
59
+ defaultVisible
60
+ placeholder="Visible — submit resets to hidden"
61
+ size="xl"
62
+ />
63
+ <button type="submit" className="w-full rounded-md bg-primary px-4 py-2 text-sm text-primary-foreground min-h-11">
64
+ Submit (resets visibility)
65
+ </button>
66
+ </form>
67
+ ),
68
+ };
69
+
49
70
  export const RealisticUse: Story = {
50
71
  render: () => (
51
72
  <div className="w-80 space-y-4">
@@ -89,6 +89,40 @@ export const CustomValueFormat: Story = {
89
89
  ),
90
90
  };
91
91
 
92
+ /**
93
+ * Track-height ladder (peer parity: Mantine / Chakra / Ark Progress size).
94
+ * sm = 4px for quiet inline progress, default = 8px (unchanged), lg = 12px
95
+ * for prominent surfaces. Only the track changes — the header row
96
+ * (label / showValue) is size-independent.
97
+ */
98
+ export const Size_Sm: Story = {
99
+ args: { value: 45, size: "sm", "aria-label": "Sync progress" },
100
+ render: (args) => (
101
+ <div className="w-72">
102
+ <Progress {...args} />
103
+ </div>
104
+ ),
105
+ };
106
+
107
+ export const Size_Lg: Story = {
108
+ args: { value: 45, size: "lg", label: "Uploading exemplars", showValue: true },
109
+ render: (args) => (
110
+ <div className="w-72">
111
+ <Progress {...args} />
112
+ </div>
113
+ ),
114
+ };
115
+
116
+ export const Sizes: Story = {
117
+ render: () => (
118
+ <div className="w-72 space-y-6">
119
+ <Progress value={45} size="sm" aria-label="Small progress" />
120
+ <Progress value={45} aria-label="Default progress" />
121
+ <Progress value={45} size="lg" aria-label="Large progress" />
122
+ </div>
123
+ ),
124
+ };
125
+
92
126
  export const RealisticUse: Story = {
93
127
  render: () => (
94
128
  <div className="w-72 space-y-6">
@@ -102,6 +136,10 @@ export const RealisticUse: Story = {
102
136
  showValue
103
137
  getValueLabel={(value, max) => `${value} of ${max}`}
104
138
  />
139
+ {/* sm reads as quiet inline progress in dense rows; lg carries an
140
+ upload panel. */}
141
+ <Progress value={64} size="sm" aria-label="Background sync" />
142
+ <Progress value={38} size="lg" label="Uploading brand assets" showValue />
105
143
  </div>
106
144
  ),
107
145
  };