@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
@@ -18,7 +18,7 @@ import { ButtonGroup } from "@behavioral-agentic-design-system/core/components/u
18
18
  import { Button } from "@behavioral-agentic-design-system/core/components/ui/button"
19
19
 
20
20
  const meta: Meta<typeof ButtonGroup> = {
21
- title: "Components/ButtonGroup",
21
+ title: "Components/Actions/ButtonGroup",
22
22
  component: ButtonGroup,
23
23
  parameters: {
24
24
  layout: "centered",
@@ -12,7 +12,7 @@ import { Calendar } from "@behavioral-agentic-design-system/core/components/ui/c
12
12
  import type { DateRange } from "react-day-picker";
13
13
 
14
14
  const meta: Meta<typeof Calendar> = {
15
- title: "Components/Calendar",
15
+ title: "Components/Dates and time/Calendar",
16
16
  component: Calendar,
17
17
  parameters: { layout: "centered" },
18
18
  tags: ["autodocs"],
@@ -3,7 +3,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle, CardFooter }
3
3
  import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
4
4
 
5
5
  const meta: Meta<typeof Card> = {
6
- title: "Components/Card",
6
+ title: "Components/Layout/Card",
7
7
  component: Card,
8
8
  parameters: { layout: "centered" },
9
9
  tags: ["autodocs"],
@@ -12,7 +12,7 @@ import {
12
12
  import { Card, CardContent } from "@behavioral-agentic-design-system/core/components/ui/card";
13
13
 
14
14
  const meta: Meta<typeof Carousel> = {
15
- title: "Components/Carousel",
15
+ title: "Components/Layout/Carousel",
16
16
  component: Carousel,
17
17
  parameters: {
18
18
  layout: "centered",
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import { Cascader, type CascaderOption } from "@behavioral-agentic-design-system/core/components/ui/cascader";
4
4
 
5
5
  const meta: Meta<typeof Cascader> = {
6
- title: "Components/Cascader",
6
+ title: "Components/Selection/Cascader",
7
7
  component: Cascader,
8
8
  parameters: { layout: "centered" },
9
9
  tags: ["autodocs"],
@@ -22,7 +22,7 @@ import {
22
22
  } from "recharts";
23
23
 
24
24
  const meta: Meta<typeof ChartContainer> = {
25
- title: "Components/Chart",
25
+ title: "Components/Content and data/Chart",
26
26
  component: ChartContainer,
27
27
  parameters: { layout: "centered" },
28
28
  tags: ["autodocs"],
@@ -12,7 +12,7 @@ import {
12
12
  } from "@behavioral-agentic-design-system/core/components/ui/chat-bubble";
13
13
 
14
14
  const meta: Meta<typeof ChatBubble> = {
15
- title: "Components/ChatBubble",
15
+ title: "Components/Badges and avatars/ChatBubble",
16
16
  component: ChatBubble,
17
17
  parameters: { layout: "padded" },
18
18
  tags: ["autodocs"],
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react"
3
3
  import { ChatMarker } from "../components/ui/chat-marker"
4
4
 
5
5
  const meta: Meta<typeof ChatMarker> = {
6
- title: "UI/ChatMarker",
6
+ title: "Components/Badges and avatars/ChatMarker",
7
7
  component: ChatMarker,
8
8
  tags: ["autodocs"],
9
9
  parameters: {
@@ -1,16 +1,17 @@
1
1
  // size prop added 2026-08-23: sm=24px visible box, default=32px (unchanged).
2
- // Hit area stays 44px via before:size-11 in both sizes (WCAG 2.2 SC 2.5.5 AAA).
2
+ // lg=40px added 2026-09-05 for large-touch / accessible contexts.
3
+ // Hit area stays 44px via before:size-11 in every size (WCAG 2.2 SC 2.5.5 AAA).
3
4
  import type { Meta, StoryObj } from "@storybook/react";
4
5
  import { Checkbox } from "@behavioral-agentic-design-system/core/components/ui/checkbox";
5
6
  import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
6
7
 
7
8
  const meta: Meta<typeof Checkbox> = {
8
- title: "Components/Checkbox",
9
+ title: "Components/Selection/Checkbox",
9
10
  component: Checkbox,
10
11
  parameters: { layout: "centered" },
11
12
  tags: ["autodocs"],
12
13
  argTypes: {
13
- size: { control: "select", options: ["sm", "default"] },
14
+ size: { control: "select", options: ["sm", "default", "lg"] },
14
15
  },
15
16
  };
16
17
 
@@ -47,10 +48,12 @@ export const Disabled: Story = {
47
48
  };
48
49
 
49
50
  /**
50
- * Size ladder (peer parity: Mantine size, MUI size, Chakra size).
51
+ * Size ladder (peer parity: Mantine size, MUI size, Chakra size, Ant Design size).
51
52
  * sm = 24px visible box — fits dense tables and list rows.
52
53
  * default = 32px visible box — unchanged.
53
- * Hit area is 44px in both sizes (WCAG 2.2 SC 2.5.5 AAA pointer target).
54
+ * lg = 40px visible box — large-touch / accessible contexts (kiosk, mobile
55
+ * consent forms, low-vision users).
56
+ * Hit area is 44px in every size (WCAG 2.2 SC 2.5.5 AAA pointer target).
54
57
  */
55
58
  export const Size_Sm: Story = {
56
59
  render: () => (
@@ -61,6 +64,30 @@ export const Size_Sm: Story = {
61
64
  ),
62
65
  };
63
66
 
67
+ export const Size_Default: Story = {
68
+ render: () => (
69
+ <div className="flex items-center gap-2">
70
+ <Checkbox id="size-default" defaultChecked />
71
+ <Label htmlFor="size-default">Default checkbox</Label>
72
+ </div>
73
+ ),
74
+ };
75
+
76
+ export const Size_Lg: Story = {
77
+ render: () => (
78
+ <div className="space-y-3">
79
+ <div className="flex items-center gap-3">
80
+ <Checkbox id="size-lg" size="lg" defaultChecked />
81
+ <Label htmlFor="size-lg">Large checkbox</Label>
82
+ </div>
83
+ <div className="flex items-center gap-3">
84
+ <Checkbox id="size-lg-mixed" size="lg" checked="indeterminate" />
85
+ <Label htmlFor="size-lg-mixed">Large, indeterminate</Label>
86
+ </div>
87
+ </div>
88
+ ),
89
+ };
90
+
64
91
  export const Sizes: Story = {
65
92
  render: () => (
66
93
  <div className="space-y-3">
@@ -72,6 +99,10 @@ export const Sizes: Story = {
72
99
  <Checkbox id="sz-default" defaultChecked />
73
100
  <Label htmlFor="sz-default">Default (32px)</Label>
74
101
  </div>
102
+ <div className="flex items-center gap-3">
103
+ <Checkbox id="sz-lg" size="lg" defaultChecked />
104
+ <Label htmlFor="sz-lg">Large (40px)</Label>
105
+ </div>
75
106
  </div>
76
107
  ),
77
108
  };
@@ -6,14 +6,14 @@ import {
6
6
  } from "@behavioral-agentic-design-system/core/components/ui/checkbox-card";
7
7
 
8
8
  const meta: Meta<typeof CheckboxCard> = {
9
- title: "Components/CheckboxCard",
9
+ title: "Components/Selection/CheckboxCard",
10
10
  component: CheckboxCard,
11
11
  parameters: {
12
12
  layout: "centered",
13
13
  docs: {
14
14
  description: {
15
15
  component:
16
- "Card-shaped selection controls where the entire card surface is the hit area. A visually-hidden native input inside the label carries all keyboard and screen-reader behavior — Space toggles a CheckboxCard (multi-select, each card its own tab stop); RadioCards sharing a name form a native radio group (one tab stop, arrow keys move selection). Checked state paints border-primary + bg-primary/10 keyed off CSS :checked, so uncontrolled native radio groups always render correctly; the focus ring travels to the card surface via a peer overlay and appears instantly (excluded from the color transition). Motion: transition-colors on var(--duration-fast) + var(--ease-out).",
16
+ "Card-shaped selection controls where the entire card surface is the hit area. A visually-hidden native input inside the label carries all keyboard and screen-reader behavior — Space toggles a CheckboxCard (multi-select, each card its own tab stop); RadioCards sharing a name form a native radio group (one tab stop, arrow keys move selection). Checked state paints border-primary + bg-primary/10 keyed off CSS :checked, so uncontrolled native radio groups always render correctly; the focus ring travels to the card surface via a peer overlay and appears instantly (excluded from the color transition). Motion: transition-colors on var(--duration-fast) + var(--ease-out). Size (sm / default / lg) sets card density — padding, title-to-description gap, and the base font size children inherit (text-sm / text-sm / text-base; never below the 14px floor, card never below 44px). Peer parity: Mantine CheckboxCard, Chakra CheckboxCard, MUI Card+checkbox.",
17
17
  },
18
18
  },
19
19
  },
@@ -48,6 +48,41 @@ export const Checked: Story = {
48
48
  ),
49
49
  };
50
50
 
51
+ // Size stories omit explicit text-* on children so the card's inherited base
52
+ // font size is what renders — that is the size prop doing its job.
53
+ export const Size_Sm: Story = {
54
+ render: () => (
55
+ <CheckboxCard size="sm" className="w-72">
56
+ <span className="font-medium text-foreground">Orphan-token sweep</span>
57
+ <span className="text-muted-foreground">
58
+ 12,417 token references scanned; zeros flagged quarterly.
59
+ </span>
60
+ </CheckboxCard>
61
+ ),
62
+ };
63
+
64
+ export const Size_Default: Story = {
65
+ render: () => (
66
+ <CheckboxCard size="default" className="w-72">
67
+ <span className="font-medium text-foreground">Orphan-token sweep</span>
68
+ <span className="text-muted-foreground">
69
+ 12,417 token references scanned; zeros flagged quarterly.
70
+ </span>
71
+ </CheckboxCard>
72
+ ),
73
+ };
74
+
75
+ export const Size_Lg: Story = {
76
+ render: () => (
77
+ <CheckboxCard size="lg" className="w-80">
78
+ <span className="font-medium text-foreground">Orphan-token sweep</span>
79
+ <span className="text-muted-foreground">
80
+ 12,417 token references scanned; zeros flagged quarterly.
81
+ </span>
82
+ </CheckboxCard>
83
+ ),
84
+ };
85
+
51
86
  export const Disabled: Story = {
52
87
  render: () => (
53
88
  <CheckboxCard disabled className="w-72">
@@ -14,7 +14,7 @@ import { Label } from "@behavioral-agentic-design-system/core/components/ui/labe
14
14
  import { Separator } from "@behavioral-agentic-design-system/core/components/ui/separator";
15
15
 
16
16
  const meta: Meta<typeof CheckboxGroup> = {
17
- title: "Components/CheckboxGroup",
17
+ title: "Components/Selection/CheckboxGroup",
18
18
  component: CheckboxGroup,
19
19
  parameters: {
20
20
  layout: "centered",
@@ -10,7 +10,7 @@ import {
10
10
  } from "@behavioral-agentic-design-system/core/components/ui/card";
11
11
 
12
12
  const meta: Meta<typeof Chip> = {
13
- title: "Components/Chip",
13
+ title: "Components/Badges and avatars/Chip",
14
14
  component: Chip,
15
15
  parameters: {
16
16
  layout: "centered",
@@ -3,7 +3,7 @@ import * as React from "react"
3
3
  import { CircularProgress } from "@behavioral-agentic-design-system/core/components/ui/circular-progress"
4
4
 
5
5
  const meta: Meta<typeof CircularProgress> = {
6
- title: "Components/CircularProgress",
6
+ title: "Components/Feedback/CircularProgress",
7
7
  component: CircularProgress,
8
8
  parameters: {
9
9
  layout: "centered",
@@ -83,7 +83,15 @@ export const WithCenterLabel: Story = {
83
83
  ),
84
84
  }
85
85
 
86
+ /**
87
+ * Every option at once, for a person comparing them side by side.
88
+ *
89
+ * Tagged out of the machine-readable manifest: an assistant reading this as an
90
+ * example learns to render a gallery of variants where a screen was asked for.
91
+ * It stays visible in the sidebar, where a human reads it as the reference it is.
92
+ */
86
93
  export const AllSizes: Story = {
94
+ tags: ["!manifest"],
87
95
  render: () => (
88
96
  <div className="flex items-center gap-6">
89
97
  <CircularProgress value={65} size="sm" label="sm" />
@@ -93,7 +101,15 @@ export const AllSizes: Story = {
93
101
  ),
94
102
  }
95
103
 
104
+ /**
105
+ * Every option at once, for a person comparing them side by side.
106
+ *
107
+ * Tagged out of the machine-readable manifest: an assistant reading this as an
108
+ * example learns to render a gallery of variants where a screen was asked for.
109
+ * It stays visible in the sidebar, where a human reads it as the reference it is.
110
+ */
96
111
  export const AllVariants: Story = {
112
+ tags: ["!manifest"],
97
113
  render: () => (
98
114
  <div className="flex items-center gap-6">
99
115
  <CircularProgress value={65} variant="default" label="default" />
@@ -18,7 +18,7 @@ import {
18
18
  } from "@behavioral-agentic-design-system/core/components/ui/card"
19
19
 
20
20
  const meta: Meta<typeof Clipboard> = {
21
- title: "Components/Clipboard",
21
+ title: "Components/Actions/Clipboard",
22
22
  component: Clipboard,
23
23
  parameters: {
24
24
  layout: "centered",
@@ -4,7 +4,7 @@ import { CloseButton } from "@behavioral-agentic-design-system/core/components/u
4
4
  import { Tag } from "@behavioral-agentic-design-system/core/components/ui/tag";
5
5
 
6
6
  const meta: Meta<typeof CloseButton> = {
7
- title: "Components/CloseButton",
7
+ title: "Components/Actions/CloseButton",
8
8
  component: CloseButton,
9
9
  parameters: { layout: "centered" },
10
10
  tags: ["autodocs"],
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react"
3
3
  import { Code } from "@behavioral-agentic-design-system/core/components/ui/code"
4
4
 
5
5
  const meta: Meta<typeof Code> = {
6
- title: "Components/Code",
6
+ title: "Components/Content and data/Code",
7
7
  component: Code,
8
8
  parameters: { layout: "centered" },
9
9
  tags: ["autodocs"],
@@ -3,7 +3,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@behavioral
3
3
  import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
4
4
 
5
5
  const meta: Meta<typeof Collapsible> = {
6
- title: "Components/Collapsible",
6
+ title: "Components/Layout/Collapsible",
7
7
  component: Collapsible,
8
8
  parameters: { layout: "centered" },
9
9
  tags: ["autodocs"],
@@ -17,7 +17,7 @@ const PASTEL_SWATCHES = [
17
17
  ];
18
18
 
19
19
  const meta: Meta<typeof ColorPicker> = {
20
- title: "Components/ColorPicker",
20
+ title: "Components/Selection/ColorPicker",
21
21
  component: ColorPicker,
22
22
  parameters: { layout: "centered" },
23
23
  };
@@ -10,7 +10,7 @@ import { ColorSwatch } from "@behavioral-agentic-design-system/core/components/u
10
10
  * (rounded/circle/square). Not interactive — wrap in a Button to make it click.
11
11
  */
12
12
  const meta: Meta<typeof ColorSwatch> = {
13
- title: "Components/ColorSwatch",
13
+ title: "Components/Selection/ColorSwatch",
14
14
  component: ColorSwatch,
15
15
  parameters: {
16
16
  layout: "centered",
@@ -7,7 +7,7 @@ import { Label } from "@behavioral-agentic-design-system/core/components/ui/labe
7
7
  // role=combobox is intentionally omitted — ARIA 1.2 requires aria-controls when
8
8
  // it's present, which cannot be wired across a portal without a ref handshake.
9
9
  const meta: Meta<typeof Combobox> = {
10
- title: "Components/Combobox",
10
+ title: "Components/Selection/Combobox",
11
11
  component: Combobox,
12
12
  parameters: { layout: "centered" },
13
13
  tags: ["autodocs"],
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "@behavioral-agentic-design-system/core/components/ui/command";
3
3
 
4
4
  const meta: Meta<typeof Command> = {
5
- title: "Components/Command",
5
+ title: "Components/Navigation/Command",
6
6
  component: Command,
7
7
  parameters: { layout: "centered" },
8
8
  tags: ["autodocs"],
@@ -11,7 +11,7 @@ import {
11
11
  } from "@behavioral-agentic-design-system/core/components/ui/card";
12
12
 
13
13
  const meta: Meta<typeof Container> = {
14
- title: "Components/Container",
14
+ title: "Components/Layout/Container",
15
15
  component: Container,
16
16
  parameters: { layout: "fullscreen" },
17
17
  tags: ["autodocs"],
@@ -18,7 +18,7 @@ import {
18
18
  import { useState } from "react";
19
19
 
20
20
  const meta: Meta<typeof ContextMenu> = {
21
- title: "Components/ContextMenu",
21
+ title: "Components/Overlays/ContextMenu",
22
22
  component: ContextMenu,
23
23
  parameters: { layout: "centered" },
24
24
  tags: ["autodocs"],
@@ -6,7 +6,7 @@ import * as React from "react"
6
6
  import { CopyButton } from "@behavioral-agentic-design-system/core/components/ui/copy-button"
7
7
 
8
8
  const meta: Meta<typeof CopyButton> = {
9
- title: "Components/CopyButton",
9
+ title: "Components/Actions/CopyButton",
10
10
  component: CopyButton,
11
11
  parameters: {
12
12
  layout: "centered",
@@ -101,7 +101,15 @@ export const RealisticUse: Story = {
101
101
  },
102
102
  }
103
103
 
104
+ /**
105
+ * Every option at once, for a person comparing them side by side.
106
+ *
107
+ * Tagged out of the machine-readable manifest: an assistant reading this as an
108
+ * example learns to render a gallery of variants where a screen was asked for.
109
+ * It stays visible in the sidebar, where a human reads it as the reference it is.
110
+ */
104
111
  export const AllVariants: Story = {
112
+ tags: ["!manifest"],
105
113
  render: () => (
106
114
  <div className="flex flex-wrap items-center gap-3">
107
115
  <CopyButton value="default" variant="default">Default</CopyButton>
@@ -10,7 +10,7 @@ import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badg
10
10
  import { Separator } from "@behavioral-agentic-design-system/core/components/ui/separator";
11
11
 
12
12
  const meta: Meta<typeof DataList> = {
13
- title: "Components/DataList",
13
+ title: "Components/Content and data/DataList",
14
14
  component: DataList,
15
15
  parameters: {
16
16
  layout: "centered",
@@ -11,7 +11,7 @@ import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badg
11
11
  // ---------------------------------------------------------------------------
12
12
 
13
13
  const meta: Meta<typeof DataTable> = {
14
- title: "Components/DataTable",
14
+ title: "Components/Content and data/DataTable",
15
15
  component: DataTable,
16
16
  parameters: {
17
17
  layout: "padded",
@@ -11,7 +11,7 @@ import {
11
11
  import { Label } from "@behavioral-agentic-design-system/core/components/ui/label"
12
12
 
13
13
  const meta: Meta<typeof DateField> = {
14
- title: "Components/DateField",
14
+ title: "Components/Dates and time/DateField",
15
15
  component: DateField,
16
16
  parameters: { layout: "centered" },
17
17
  }
@@ -6,7 +6,7 @@ import { DatePicker } from "@behavioral-agentic-design-system/core/components/ui
6
6
  // on DatePicker — they now map to startMonth/endMonth + disabled internally.
7
7
  // Story coverage is unchanged; the public API is backward-compatible.
8
8
  const meta: Meta<typeof DatePicker> = {
9
- title: "Components/DatePicker",
9
+ title: "Components/Dates and time/DatePicker",
10
10
  component: DatePicker,
11
11
  parameters: { layout: "centered" },
12
12
  tags: ["autodocs"],
@@ -9,7 +9,7 @@ import {
9
9
  // on DateRangePicker — they now map to startMonth/endMonth + disabled internally.
10
10
  // Story coverage is unchanged; the public API is backward-compatible.
11
11
  const meta: Meta<typeof DateRangePicker> = {
12
- title: "Components/DateRangePicker",
12
+ title: "Components/Dates and time/DateRangePicker",
13
13
  component: DateRangePicker,
14
14
  parameters: { layout: "centered" },
15
15
  }
@@ -19,7 +19,7 @@ import {
19
19
  import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
20
20
 
21
21
  const meta: Meta<typeof Dialog> = {
22
- title: "Components/Dialog",
22
+ title: "Components/Overlays/Dialog",
23
23
  component: Dialog,
24
24
  parameters: {
25
25
  layout: "centered",
@@ -14,7 +14,7 @@ import { Textarea } from "@behavioral-agentic-design-system/core/components/ui/t
14
14
  import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
15
15
 
16
16
  const meta: Meta<typeof Drawer> = {
17
- title: "Components/Drawer",
17
+ title: "Components/Overlays/Drawer",
18
18
  component: Drawer,
19
19
  parameters: { layout: "centered" },
20
20
  tags: ["autodocs"],
@@ -9,7 +9,7 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel,
9
9
  import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
10
10
 
11
11
  const meta: Meta<typeof DropdownMenu> = {
12
- title: "Components/DropdownMenu",
12
+ title: "Components/Overlays/DropdownMenu",
13
13
  component: DropdownMenu,
14
14
  parameters: { layout: "centered" },
15
15
  tags: ["autodocs"],
@@ -10,7 +10,7 @@ import {
10
10
  } from "../components/ui/editable"
11
11
 
12
12
  const meta: Meta<typeof Editable> = {
13
- title: "Components/Editable",
13
+ title: "Components/Forms/Editable",
14
14
  component: Editable,
15
15
  parameters: { layout: "centered" },
16
16
  tags: ["autodocs"],
@@ -20,7 +20,7 @@ import {
20
20
  import { Button } from "@behavioral-agentic-design-system/core/components/ui/button"
21
21
 
22
22
  const meta: Meta<typeof EmptyState> = {
23
- title: "Components/EmptyState",
23
+ title: "Components/Feedback/EmptyState",
24
24
  component: EmptyState,
25
25
  parameters: {
26
26
  layout: "centered",
@@ -13,7 +13,7 @@ import { Textarea } from "@behavioral-agentic-design-system/core/components/ui/t
13
13
  import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
14
14
 
15
15
  const meta: Meta<typeof Field> = {
16
- title: "Components/Field",
16
+ title: "Components/Forms/Field",
17
17
  component: Field,
18
18
  parameters: { layout: "padded" },
19
19
  tags: ["autodocs"],
@@ -15,7 +15,7 @@ import { Label } from "@behavioral-agentic-design-system/core/components/ui/labe
15
15
  import { Input } from "@behavioral-agentic-design-system/core/components/ui/input";
16
16
 
17
17
  const meta: Meta<typeof Fieldset> = {
18
- title: "Components/Fieldset",
18
+ title: "Components/Forms/Fieldset",
19
19
  component: Fieldset,
20
20
  parameters: {
21
21
  layout: "centered",
@@ -19,7 +19,7 @@ import {
19
19
  } from "@behavioral-agentic-design-system/core/components/ui/card"
20
20
 
21
21
  const meta: Meta<typeof FileButton> = {
22
- title: "Components/FileButton",
22
+ title: "Components/Actions/FileButton",
23
23
  component: FileButton,
24
24
  parameters: {
25
25
  layout: "centered",
@@ -5,7 +5,7 @@ import { Label } from "@behavioral-agentic-design-system/core/components/ui/labe
5
5
  import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
6
6
 
7
7
  const meta: Meta<typeof FileUpload> = {
8
- title: "Components/FileUpload",
8
+ title: "Components/Forms/FileUpload",
9
9
  component: FileUpload,
10
10
  parameters: { layout: "padded" },
11
11
  tags: ["autodocs"],
@@ -11,7 +11,7 @@ import {
11
11
  } from "@behavioral-agentic-design-system/core/components/ui/card";
12
12
 
13
13
  const meta: Meta<typeof FloatLabel> = {
14
- title: "Components/FloatLabel",
14
+ title: "Components/Forms/FloatLabel",
15
15
  component: FloatLabel,
16
16
  parameters: {
17
17
  layout: "centered",
@@ -5,7 +5,7 @@ import { FloatingActionButton } from "@behavioral-agentic-design-system/core/com
5
5
  import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badge";
6
6
 
7
7
  const meta: Meta<typeof FloatingActionButton> = {
8
- title: "Components/FloatingActionButton",
8
+ title: "Components/Actions/FloatingActionButton",
9
9
  component: FloatingActionButton,
10
10
  parameters: {
11
11
  layout: "centered",
@@ -20,7 +20,7 @@ import {
20
20
  // ─── Meta ─────────────────────────────────────────────────────────────────────
21
21
 
22
22
  const meta: Meta<typeof FloatingIndicator> = {
23
- title: "Components/FloatingIndicator",
23
+ title: "Components/Layout/FloatingIndicator",
24
24
  component: FloatingIndicator,
25
25
  parameters: {
26
26
  layout: "centered",
@@ -4,7 +4,7 @@ import { FloatingPanel } from "@behavioral-agentic-design-system/core/components
4
4
  import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
5
5
 
6
6
  const meta: Meta<typeof FloatingPanel> = {
7
- title: "Components/FloatingPanel",
7
+ title: "Components/Layout/FloatingPanel",
8
8
  component: FloatingPanel,
9
9
  parameters: {
10
10
  layout: "fullscreen",
@@ -98,7 +98,15 @@ export const TopLeft: Story = {
98
98
 
99
99
  // All four corner anchors, rendered static so they stack in one canvas
100
100
  // instead of piling onto the same viewport corners.
101
+ /**
102
+ * Every option at once, for a person comparing them side by side.
103
+ *
104
+ * Tagged out of the machine-readable manifest: an assistant reading this as an
105
+ * example learns to render a gallery of variants where a screen was asked for.
106
+ * It stays visible in the sidebar, where a human reads it as the reference it is.
107
+ */
101
108
  export const AllPositions: Story = {
109
+ tags: ["!manifest"],
102
110
  render: () => (
103
111
  <div className="relative flex flex-col items-start gap-4 p-8">
104
112
  <FloatingPanel className="static" title="Bottom right (default)">
@@ -9,7 +9,7 @@ import { Input } from "@behavioral-agentic-design-system/core/components/ui/inpu
9
9
  import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
10
10
 
11
11
  const meta: Meta<typeof FocusTrap> = {
12
- title: "Components/FocusTrap",
12
+ title: "Components/Layout/FocusTrap",
13
13
  component: FocusTrap,
14
14
  parameters: { layout: "centered" },
15
15
  tags: ["autodocs"],
@@ -11,7 +11,7 @@ import {
11
11
  } from "@behavioral-agentic-design-system/core/components/ui/card"
12
12
 
13
13
  const meta: Meta<typeof FormatByte> = {
14
- title: "Components/FormatByte",
14
+ title: "Components/Content and data/FormatByte",
15
15
  component: FormatByte,
16
16
  parameters: { layout: "centered" },
17
17
  tags: ["autodocs"],