@behavioral-agentic-design-system/core 0.42.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 (314) hide show
  1. package/package.json +38 -8
  2. package/scripts/a11y-lint.cjs +101 -14
  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/check-spec.mjs +73 -0
  8. package/scripts/deal-directions.mjs +186 -0
  9. package/scripts/design-system-advisory/README.md +239 -0
  10. package/scripts/design-system-advisory/check-copy-punctuation.mjs +44 -0
  11. package/scripts/design-system-advisory/check-even-padding.mjs +35 -0
  12. package/scripts/design-system-advisory/check-hand-built-button.mjs +46 -0
  13. package/scripts/design-system-advisory/check-html-nesting.mjs +51 -0
  14. package/scripts/design-system-advisory/check-icon-sizing.mjs +79 -0
  15. package/scripts/design-system-advisory/check-label-case.mjs +92 -0
  16. package/scripts/design-system-advisory/check-native-form-controls.mjs +53 -0
  17. package/scripts/design-system-advisory/check-radius.mjs +56 -0
  18. package/scripts/design-system-advisory/check-raw-values.mjs +61 -0
  19. package/scripts/design-system-advisory/check-small-text.mjs +72 -0
  20. package/scripts/design-system-advisory/check-tap-target.mjs +70 -0
  21. package/scripts/design-system-advisory/defaults.mjs +90 -0
  22. package/scripts/design-system-advisory/fixtures/clean.tsx.fixture +12 -0
  23. package/scripts/design-system-advisory/fixtures/violations.tsx.fixture +19 -0
  24. package/scripts/design-system-advisory/lib.mjs +255 -0
  25. package/scripts/design-system-advisory/run.mjs +189 -0
  26. package/scripts/design-system-advisory/workflow.yml +82 -0
  27. package/scripts/health-report.mjs +20 -14
  28. package/scripts/lib/copy-strings.mjs +146 -0
  29. package/scripts/lib/counted-lint.mjs +100 -0
  30. package/scripts/lib/dark-contrast.mjs +120 -0
  31. package/scripts/lib/flush-edges.mjs +294 -0
  32. package/scripts/lib/lab-lint.mjs +62 -0
  33. package/scripts/lib/marketing-library.mjs +129 -0
  34. package/scripts/lib/mount-page.mjs +25 -0
  35. package/scripts/lib/on-system.mjs +249 -0
  36. package/scripts/lib/random.mjs +22 -0
  37. package/scripts/lib/source-scan.mjs +173 -0
  38. package/scripts/lib/spec-parse.d.mts +25 -0
  39. package/scripts/lib/spec-parse.mjs +188 -0
  40. package/scripts/lib/tells.mjs +366 -0
  41. package/scripts/lint-arbitrary-tokens.mjs +47 -0
  42. package/scripts/lint-component-token-refs.mjs +63 -0
  43. package/scripts/lint-content-hierarchy.mjs +114 -0
  44. package/scripts/lint-control-baseline.mjs +72 -0
  45. package/scripts/lint-copy-punctuation.mjs +60 -0
  46. package/scripts/lint-css-vars.mjs +175 -0
  47. package/scripts/lint-even-padding.mjs +58 -0
  48. package/scripts/lint-html-nesting.mjs +116 -0
  49. package/scripts/lint-label-case.mjs +219 -0
  50. package/scripts/lint-live-ctas.mjs +138 -0
  51. package/scripts/lint-microanimation.mjs +2 -2
  52. package/scripts/lint-proximity.mjs +181 -0
  53. package/scripts/lint-slop.mjs +1 -1
  54. package/scripts/lint-spacing-scale.mjs +78 -0
  55. package/scripts/lint-target-size.cjs +132 -0
  56. package/scripts/lint-token-primitives.mjs +307 -0
  57. package/scripts/on-system-score.mjs +95 -0
  58. package/scripts/size-audit.cjs +2 -2
  59. package/scripts/slop-rules.mjs +1 -1
  60. package/scripts/source-images.mjs +180 -0
  61. package/scripts/ux-tells.mjs +80 -0
  62. package/scripts/wcag-audit.cjs +25 -4
  63. package/src/api/brand-colors.ts +3 -0
  64. package/src/api/brand-fonts.ts +3 -0
  65. package/src/api/brand-mark.ts +6 -1
  66. package/src/api/dev-write-guard.ts +53 -0
  67. package/src/api/layers/file.ts +9 -4
  68. package/src/api/onboarding-extract.ts +85 -30
  69. package/src/api/onboarding.ts +3 -0
  70. package/src/api/save-tokens.ts +3 -0
  71. package/src/api/site-auth.ts +14 -2
  72. package/src/app/layout.tsx +6 -0
  73. package/src/app/preview/canvas/page.tsx +12 -0
  74. package/src/app/preview/components/page.tsx +828 -14
  75. package/src/app/preview/sticker-sheet/page.tsx +329 -0
  76. package/src/app/preview/sticker-sheet/specimens.tsx +296 -0
  77. package/src/app/preview/studio/blank-screen.tsx +143 -0
  78. package/src/app/preview/studio/page.tsx +7 -0
  79. package/src/app/shell.tsx +164 -47
  80. package/src/components/Foundations/Colors.stories.tsx +119 -8
  81. package/src/components/canvas/canvas.tsx +458 -0
  82. package/src/components/canvas/layout.ts +72 -0
  83. package/src/components/canvas/parse-canvas.ts +32 -0
  84. package/src/components/canvas/sample.ts +90 -0
  85. package/src/components/canvas/spec-frame.tsx +43 -0
  86. package/src/components/canvas/types.ts +33 -0
  87. package/src/components/docs-tab.tsx +7 -7
  88. package/src/components/home-recent.tsx +73 -0
  89. package/src/components/home-tab.tsx +19 -14
  90. package/src/components/layers-tab.tsx +2 -2
  91. package/src/components/markdown-preview.tsx +60 -12
  92. package/src/components/onboarding-wizard.tsx +1 -1
  93. package/src/components/studio/control-panel.tsx +299 -0
  94. package/src/components/studio/control-row.tsx +77 -0
  95. package/src/components/studio/preview-frame.tsx +165 -0
  96. package/src/components/studio/preview-pane.tsx +247 -0
  97. package/src/components/studio/studio.tsx +133 -128
  98. package/src/components/studio/types.ts +218 -0
  99. package/src/components/studio/use-studio-tweaks.ts +128 -0
  100. package/src/components/studio/use-studio-view-state.ts +72 -0
  101. package/src/components/ui/autocomplete.tsx +1 -1
  102. package/src/components/ui/avatar.tsx +4 -0
  103. package/src/components/ui/chart.tsx +134 -42
  104. package/src/components/ui/checkbox-group.tsx +1 -1
  105. package/src/components/ui/checkbox.tsx +1 -1
  106. package/src/components/ui/color-picker.tsx +20 -4
  107. package/src/components/ui/combobox.tsx +1 -0
  108. package/src/components/ui/command.tsx +1 -1
  109. package/src/components/ui/data-table.tsx +64 -3
  110. package/src/components/ui/date-field.tsx +1 -1
  111. package/src/components/ui/date-picker.tsx +2 -0
  112. package/src/components/ui/date-range-picker.tsx +4 -0
  113. package/src/components/ui/editable.tsx +1 -0
  114. package/src/components/ui/faceted-filter.tsx +187 -0
  115. package/src/components/ui/file-upload.tsx +21 -2
  116. package/src/components/ui/gauge-chart.tsx +18 -4
  117. package/src/components/ui/heatmap.tsx +3 -1
  118. package/src/components/ui/inline-edit.tsx +175 -0
  119. package/src/components/ui/input-group.tsx +5 -2
  120. package/src/components/ui/month-picker.tsx +1 -1
  121. package/src/components/ui/multi-select.tsx +1 -0
  122. package/src/components/ui/number-input.tsx +28 -5
  123. package/src/components/ui/otp-input.tsx +208 -0
  124. package/src/components/ui/phone-input.tsx +274 -0
  125. package/src/components/ui/radio-group.tsx +2 -2
  126. package/src/components/ui/search-input.tsx +1 -1
  127. package/src/components/ui/sparkline.tsx +33 -4
  128. package/src/components/ui/spinner.tsx +23 -4
  129. package/src/components/ui/table.tsx +9 -0
  130. package/src/components/ui/tags-input.tsx +1 -1
  131. package/src/components/ui/timer.tsx +1 -0
  132. package/src/components/ui/transfer-list.tsx +13 -26
  133. package/src/components/ui/week-picker.tsx +1 -13
  134. package/src/components/ui/year-picker.tsx +1 -1
  135. package/src/data/component-added.json +966 -0
  136. package/src/data/docs-index.ts +35 -2
  137. package/src/data/history.json +161 -161
  138. package/src/data/sticker-sheet.json +9244 -0
  139. package/src/docs-trace-globs.json +1 -0
  140. package/src/hooks/use-global-mono-font.ts +1 -0
  141. package/src/hooks/use-global-primary-color.ts +1 -0
  142. package/src/hooks/use-global-sans-font.ts +1 -0
  143. package/src/hooks/use-global-serif-font.ts +1 -0
  144. package/src/hooks/use-global-type-scale.ts +17 -2
  145. package/src/hooks/use-mobile.ts +2 -0
  146. package/src/hooks/use-sync-type-scale.ts +7 -11
  147. package/src/lib/chart-motion.ts +41 -0
  148. package/src/lib/get-icon-color.ts +1 -1
  149. package/src/lib/spec-parse.ts +4 -0
  150. package/src/lib/svg-sanitize.ts +19 -9
  151. package/src/stories/Accordion.stories.tsx +7 -0
  152. package/src/stories/ActionBar.stories.tsx +5 -0
  153. package/src/stories/Affix.stories.tsx +4 -0
  154. package/src/stories/AiBadge.stories.tsx +9 -7
  155. package/src/stories/Alert.stories.tsx +13 -0
  156. package/src/stories/AlertDialog.stories.tsx +4 -0
  157. package/src/stories/Anchor.stories.tsx +5 -0
  158. package/src/stories/AngleSlider.stories.tsx +6 -3
  159. package/src/stories/AspectRatio.stories.tsx +4 -0
  160. package/src/stories/Autocomplete.stories.tsx +8 -0
  161. package/src/stories/Avatar.stories.tsx +10 -0
  162. package/src/stories/Badge.stories.tsx +14 -6
  163. package/src/stories/Blockquote.stories.tsx +6 -0
  164. package/src/stories/BottomNavigation.stories.tsx +4 -0
  165. package/src/stories/Breadcrumb.stories.tsx +3 -0
  166. package/src/stories/Burger.stories.tsx +1 -0
  167. package/src/stories/Button.stories.tsx +24 -0
  168. package/src/stories/ButtonGroup.stories.tsx +9 -0
  169. package/src/stories/Calendar.stories.tsx +3 -0
  170. package/src/stories/Canvas.stories.tsx +45 -0
  171. package/src/stories/Card.stories.tsx +4 -0
  172. package/src/stories/Carousel.stories.tsx +6 -0
  173. package/src/stories/Cascader.stories.tsx +4 -0
  174. package/src/stories/Chart.stories.tsx +46 -1
  175. package/src/stories/ChatBubble.stories.tsx +8 -2
  176. package/src/stories/ChatMarker.stories.tsx +1 -0
  177. package/src/stories/Checkbox.stories.tsx +40 -0
  178. package/src/stories/CheckboxCard.stories.tsx +8 -0
  179. package/src/stories/CheckboxGroup.stories.tsx +19 -0
  180. package/src/stories/Chip.stories.tsx +10 -19
  181. package/src/stories/CircularProgress.stories.tsx +13 -27
  182. package/src/stories/Clipboard.stories.tsx +6 -0
  183. package/src/stories/CloseButton.stories.tsx +6 -4
  184. package/src/stories/Code.stories.tsx +8 -1
  185. package/src/stories/Collapsible.stories.tsx +2 -0
  186. package/src/stories/ColorPicker.stories.tsx +46 -0
  187. package/src/stories/ColorSwatch.stories.tsx +1 -0
  188. package/src/stories/Combobox.stories.tsx +9 -0
  189. package/src/stories/Command.stories.tsx +2 -0
  190. package/src/stories/Container.stories.tsx +8 -0
  191. package/src/stories/ContextMenu.stories.tsx +9 -0
  192. package/src/stories/CopyButton.stories.tsx +12 -36
  193. package/src/stories/DataList.stories.tsx +8 -0
  194. package/src/stories/DataTable.stories.tsx +39 -0
  195. package/src/stories/DateField.stories.tsx +28 -0
  196. package/src/stories/DatePicker.stories.tsx +34 -0
  197. package/src/stories/DateRangePicker.stories.tsx +32 -0
  198. package/src/stories/Dialog.stories.tsx +8 -0
  199. package/src/stories/Drawer.stories.tsx +6 -0
  200. package/src/stories/DropdownMenu.stories.tsx +2 -0
  201. package/src/stories/Editable.stories.tsx +12 -0
  202. package/src/stories/EmptyState.stories.tsx +9 -0
  203. package/src/stories/FacetedFilter.stories.tsx +197 -0
  204. package/src/stories/Field.stories.tsx +7 -0
  205. package/src/stories/Fieldset.stories.tsx +8 -0
  206. package/src/stories/FileButton.stories.tsx +4 -0
  207. package/src/stories/FileUpload.stories.tsx +16 -17
  208. package/src/stories/FloatLabel.stories.tsx +3 -8
  209. package/src/stories/FloatingActionButton.stories.tsx +10 -0
  210. package/src/stories/FloatingIndicator.stories.tsx +4 -0
  211. package/src/stories/FloatingPanel.stories.tsx +6 -0
  212. package/src/stories/FocusTrap.stories.tsx +5 -0
  213. package/src/stories/FormatByte.stories.tsx +6 -0
  214. package/src/stories/FormatDate.stories.tsx +8 -0
  215. package/src/stories/FormatNumber.stories.tsx +9 -0
  216. package/src/stories/GaugeChart.stories.tsx +9 -3
  217. package/src/stories/Heatmap.stories.tsx +11 -0
  218. package/src/stories/Highlight.stories.tsx +6 -0
  219. package/src/stories/HoverCard.stories.tsx +4 -0
  220. package/src/stories/Image.stories.tsx +9 -0
  221. package/src/stories/Indicator.stories.tsx +19 -0
  222. package/src/stories/InlineEdit.stories.tsx +106 -0
  223. package/src/stories/Input.stories.tsx +7 -0
  224. package/src/stories/InputClearButton.stories.tsx +3 -0
  225. package/src/stories/InputGroup.stories.tsx +40 -0
  226. package/src/stories/Kbd.stories.tsx +7 -1
  227. package/src/stories/KeyboardShortcut.stories.tsx +2 -0
  228. package/src/stories/Label.stories.tsx +2 -0
  229. package/src/stories/Link.stories.tsx +9 -0
  230. package/src/stories/List.stories.tsx +8 -0
  231. package/src/stories/Listbox.stories.tsx +1 -0
  232. package/src/stories/LoadingDots.stories.tsx +5 -3
  233. package/src/stories/LoadingOverlay.stories.tsx +5 -1
  234. package/src/stories/Mark.stories.tsx +5 -0
  235. package/src/stories/MarkdownPreview.stories.tsx +53 -0
  236. package/src/stories/Marquee.stories.tsx +4 -0
  237. package/src/stories/Masonry.stories.tsx +5 -0
  238. package/src/stories/Menubar.stories.tsx +3 -0
  239. package/src/stories/Meter.stories.tsx +11 -17
  240. package/src/stories/MonthPicker.stories.tsx +26 -1
  241. package/src/stories/MotionToggle.stories.tsx +1 -0
  242. package/src/stories/MultiSelect.stories.tsx +9 -0
  243. package/src/stories/NativeSelect.stories.tsx +1 -0
  244. package/src/stories/NavLink.stories.tsx +7 -0
  245. package/src/stories/NavigationMenu.stories.tsx +5 -0
  246. package/src/stories/NavigationRail.stories.tsx +10 -0
  247. package/src/stories/Notification.stories.tsx +13 -34
  248. package/src/stories/NumberInput.stories.tsx +33 -1
  249. package/src/stories/OtpInput.stories.tsx +110 -0
  250. package/src/stories/Overlay.stories.tsx +5 -1
  251. package/src/stories/Pagination.stories.tsx +8 -0
  252. package/src/stories/PasswordInput.stories.tsx +2 -0
  253. package/src/stories/PhoneInput.stories.tsx +127 -0
  254. package/src/stories/PinInput.stories.tsx +9 -2
  255. package/src/stories/Popover.stories.tsx +2 -0
  256. package/src/stories/Progress.stories.tsx +6 -1
  257. package/src/stories/Prose.stories.tsx +8 -0
  258. package/src/stories/QrCode.stories.tsx +2 -0
  259. package/src/stories/Questionnaire.stories.tsx +7 -0
  260. package/src/stories/RadioGroup.stories.tsx +40 -0
  261. package/src/stories/RatingGroup.stories.tsx +8 -4
  262. package/src/stories/Resizable.stories.tsx +4 -2
  263. package/src/stories/Result.stories.tsx +3 -0
  264. package/src/stories/Reveal.stories.tsx +2 -0
  265. package/src/stories/RollingNumber.stories.tsx +5 -0
  266. package/src/stories/ScrollArea.stories.tsx +3 -1
  267. package/src/stories/SearchInput.stories.tsx +10 -6
  268. package/src/stories/SegmentedControl.stories.tsx +11 -0
  269. package/src/stories/Select.stories.tsx +7 -0
  270. package/src/stories/Separator.stories.tsx +6 -0
  271. package/src/stories/Sheet.stories.tsx +5 -0
  272. package/src/stories/Sidebar.stories.tsx +40 -1
  273. package/src/stories/SimpleGrid.stories.tsx +5 -0
  274. package/src/stories/Skeleton.stories.tsx +8 -0
  275. package/src/stories/SkeletonTable.stories.tsx +6 -5
  276. package/src/stories/SkipLink.stories.tsx +3 -0
  277. package/src/stories/Slider.stories.tsx +2 -1
  278. package/src/stories/Sonner.stories.tsx +7 -0
  279. package/src/stories/Sparkline.stories.tsx +14 -1
  280. package/src/stories/Spinner.stories.tsx +20 -10
  281. package/src/stories/Spoiler.stories.tsx +5 -0
  282. package/src/stories/Squircle.stories.tsx +7 -0
  283. package/src/stories/Stack.stories.tsx +7 -0
  284. package/src/stories/StatusBadge.stories.tsx +12 -6
  285. package/src/stories/Stepper.stories.tsx +5 -0
  286. package/src/stories/Switch.stories.tsx +4 -0
  287. package/src/stories/Table.stories.tsx +10 -1
  288. package/src/stories/Tabs.stories.tsx +8 -0
  289. package/src/stories/Tag.stories.tsx +13 -5
  290. package/src/stories/TagsInput.stories.tsx +15 -0
  291. package/src/stories/Text.stories.tsx +12 -0
  292. package/src/stories/Textarea.stories.tsx +9 -0
  293. package/src/stories/ThemeIcon.stories.tsx +6 -3
  294. package/src/stories/TimePicker.stories.tsx +2 -0
  295. package/src/stories/Timeline.stories.tsx +12 -0
  296. package/src/stories/Timer.stories.tsx +30 -0
  297. package/src/stories/Toggle.stories.tsx +7 -5
  298. package/src/stories/ToggleGroup.stories.tsx +5 -0
  299. package/src/stories/ToggleTip.stories.tsx +4 -0
  300. package/src/stories/Toolbar.stories.tsx +6 -0
  301. package/src/stories/Tooltip.stories.tsx +3 -0
  302. package/src/stories/Tour.stories.tsx +3 -0
  303. package/src/stories/TransferList.stories.tsx +7 -0
  304. package/src/stories/TreeSelect.stories.tsx +4 -0
  305. package/src/stories/TreeView.stories.tsx +5 -0
  306. package/src/stories/TypingIndicator.stories.tsx +4 -0
  307. package/src/stories/VisuallyHidden.stories.tsx +3 -0
  308. package/src/stories/Watermark.stories.tsx +6 -0
  309. package/src/stories/WeekPicker.stories.tsx +25 -1
  310. package/src/stories/WordRotate.stories.tsx +5 -0
  311. package/src/stories/YearPicker.stories.tsx +26 -11
  312. package/src/stories/story-groups.json +22 -16
  313. package/src/styles.css +50 -2
  314. package/src/tokens.json +86 -58
@@ -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
@@ -175,6 +181,8 @@ export const LongOptions: Story = {
175
181
  };
176
182
 
177
183
  // Realistic use: assign a design review — pick a teammate or type any name.
184
+ // Enter pressed to confirm an IME candidate (Japanese, Chinese, Korean) is ignored by this component.
185
+ // Not scriptable in a story; check by hand with an IME on.
178
186
  export const RealisticUse: Story = {
179
187
  render: function RealisticUseStory() {
180
188
  const [value, setValue] = React.useState("");
@@ -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" />
@@ -32,6 +32,7 @@ export default meta;
32
32
  type Story = StoryObj<typeof meta>;
33
33
 
34
34
  export const Default: Story = {
35
+ parameters: { controls: { disable: true } },
35
36
  render: () => (<div className="flex items-center gap-2">
36
37
  <Badge>Default</Badge>
37
38
  <Badge variant="secondary">Secondary</Badge>
@@ -41,30 +42,31 @@ export const Default: Story = {
41
42
  };
42
43
 
43
44
  export const Variant_Default: Story = {
44
- render: () => <Badge variant="default">Default</Badge>,
45
+ args: { variant: "default", children: "Default" },
45
46
  };
46
47
 
47
48
  export const Variant_Secondary: Story = {
48
- render: () => <Badge variant="secondary">Secondary</Badge>,
49
+ args: { variant: "secondary", children: "Secondary" },
49
50
  };
50
51
 
51
52
  export const Variant_Destructive: Story = {
52
- render: () => <Badge variant="destructive">Destructive</Badge>,
53
+ args: { variant: "destructive", children: "Destructive" },
53
54
  };
54
55
 
55
56
  export const Variant_Outline: Story = {
56
- render: () => <Badge variant="outline">Outline</Badge>,
57
+ args: { variant: "outline", children: "Outline" },
57
58
  };
58
59
 
59
60
  export const Variant_Ghost: Story = {
60
- render: () => <Badge variant="ghost">Ghost</Badge>,
61
+ args: { variant: "ghost", children: "Ghost" },
61
62
  };
62
63
 
63
64
  export const Variant_Link: Story = {
64
- render: () => <Badge variant="link">Link</Badge>,
65
+ args: { variant: "link", children: "Link" },
65
66
  };
66
67
 
67
68
  export const Variant_Success: Story = {
69
+ parameters: { controls: { disable: true } },
68
70
  render: () => (
69
71
  <Badge variant="success">
70
72
  <CircleCheck strokeWidth={1.5} aria-hidden />
@@ -74,6 +76,7 @@ export const Variant_Success: Story = {
74
76
  };
75
77
 
76
78
  export const Variant_Warning: Story = {
79
+ parameters: { controls: { disable: true } },
77
80
  render: () => (
78
81
  <Badge variant="warning">
79
82
  <TriangleAlert strokeWidth={1.5} aria-hidden />
@@ -83,6 +86,7 @@ export const Variant_Warning: Story = {
83
86
  };
84
87
 
85
88
  export const Variant_Info: Story = {
89
+ parameters: { controls: { disable: true } },
86
90
  render: () => (
87
91
  <Badge variant="info">
88
92
  <Info strokeWidth={1.5} aria-hidden />
@@ -96,6 +100,7 @@ export const Variant_Info: Story = {
96
100
  * All sizes use text-xs (14px) or text-sm (16px) — never below the 14px floor.
97
101
  */
98
102
  export const Size_Sm: Story = {
103
+ parameters: { controls: { disable: true } },
99
104
  render: () => (
100
105
  <div className="flex items-center gap-2">
101
106
  <Badge size="sm">v2.4.1</Badge>
@@ -108,6 +113,7 @@ export const Size_Sm: Story = {
108
113
  };
109
114
 
110
115
  export const Size_Lg: Story = {
116
+ parameters: { controls: { disable: true } },
111
117
  render: () => (
112
118
  <div className="flex items-center gap-2">
113
119
  <Badge size="lg">Beta</Badge>
@@ -120,6 +126,7 @@ export const Size_Lg: Story = {
120
126
  };
121
127
 
122
128
  export const Sizes: Story = {
129
+ parameters: { controls: { disable: true } },
123
130
  render: () => (
124
131
  <div className="space-y-3">
125
132
  <div className="flex items-center gap-2">
@@ -151,6 +158,7 @@ export const Sizes: Story = {
151
158
  };
152
159
 
153
160
  export const RealisticUse: Story = {
161
+ parameters: { controls: { disable: true } },
154
162
  render: () => (
155
163
  <div className="flex max-w-md flex-col gap-3">
156
164
  <div className="flex items-center gap-2">
@@ -29,6 +29,7 @@ type Story = StoryObj<typeof meta>
29
29
  // quotes are verbatim lines from the persona pool's long_form entries.
30
30
 
31
31
  export const Default: Story = {
32
+ parameters: { controls: { disable: true } },
32
33
  render: () => (
33
34
  <div className="max-w-md">
34
35
  <Blockquote>
@@ -44,6 +45,7 @@ export const Default: Story = {
44
45
  }
45
46
 
46
47
  export const Variant_Accent: Story = {
48
+ parameters: { controls: { disable: true } },
47
49
  render: () => (
48
50
  <div className="max-w-md">
49
51
  <Blockquote variant="accent">
@@ -60,6 +62,7 @@ export const Variant_Accent: Story = {
60
62
  }
61
63
 
62
64
  export const Variant_Plain: Story = {
65
+ parameters: { controls: { disable: true } },
63
66
  render: () => (
64
67
  <div className="max-w-md space-y-3 text-sm leading-relaxed text-foreground">
65
68
  <p>
@@ -79,6 +82,7 @@ export const Variant_Plain: Story = {
79
82
  // The native cite attribute carries the machine-readable source URL;
80
83
  // the visible <cite> element inside the attribution names the work.
81
84
  export const WithCitation: Story = {
85
+ parameters: { controls: { disable: true } },
82
86
  render: () => (
83
87
  <div className="max-w-md">
84
88
  <Blockquote>
@@ -97,6 +101,7 @@ export const WithCitation: Story = {
97
101
  // overflow contract (min-w-0 + overflow-wrap:anywhere): the unbroken
98
102
  // long email wraps instead of bleeding out of the 320px box.
99
103
  export const LongContent: Story = {
104
+ parameters: { controls: { disable: true } },
100
105
  render: () => (
101
106
  <div className="w-[320px]">
102
107
  <Blockquote>
@@ -117,6 +122,7 @@ export const LongContent: Story = {
117
122
  }
118
123
 
119
124
  export const RealisticUse: Story = {
125
+ parameters: { controls: { disable: true } },
120
126
  render: () => (
121
127
  <Card className="w-96">
122
128
  <CardHeader>
@@ -55,6 +55,7 @@ function Controlled({
55
55
  }
56
56
 
57
57
  export const Default: Story = {
58
+ parameters: { controls: { disable: true } },
58
59
  render: () => (
59
60
  <Controlled defaultValue="home" label="Primary">
60
61
  <BottomNavigationItem
@@ -77,6 +78,7 @@ export const Default: Story = {
77
78
  };
78
79
 
79
80
  export const FiveItems: Story = {
81
+ parameters: { controls: { disable: true } },
80
82
  render: () => (
81
83
  <Controlled defaultValue="components" label="Design system">
82
84
  <BottomNavigationItem
@@ -109,6 +111,7 @@ export const FiveItems: Story = {
109
111
  };
110
112
 
111
113
  export const Disabled: Story = {
114
+ parameters: { controls: { disable: true } },
112
115
  render: () => (
113
116
  <Controlled defaultValue="home" label="Primary">
114
117
  <BottomNavigationItem
@@ -135,6 +138,7 @@ export const Disabled: Story = {
135
138
  // bottom navigation anchored to the frame's bottom edge. Content pulled from
136
139
  // content/personas/bads.json (design-system practitioner audience).
137
140
  export const RealisticUse: Story = {
141
+ parameters: { controls: { disable: true } },
138
142
  render: () => {
139
143
  const [section, setSection] = React.useState("components");
140
144
  const screens: Record<string, { title: string; body: string }> = {
@@ -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: () => (<Breadcrumb>
16
17
  <BreadcrumbList>
17
18
  <BreadcrumbItem><BreadcrumbLink href="#">Home</BreadcrumbLink></BreadcrumbItem>
@@ -24,6 +25,7 @@ export const Default: Story = {
24
25
  };
25
26
 
26
27
  export const WithDropdown: Story = {
28
+ parameters: { controls: { disable: true } },
27
29
  render: () => (
28
30
  <Breadcrumb>
29
31
  <BreadcrumbList>
@@ -46,6 +48,7 @@ export const WithDropdown: Story = {
46
48
  };
47
49
 
48
50
  export const RealisticUse: Story = {
51
+ parameters: { controls: { disable: true } },
49
52
  render: () => (
50
53
  <Breadcrumb>
51
54
  <BreadcrumbList>
@@ -75,5 +75,6 @@ function RealisticUseDemo() {
75
75
  }
76
76
 
77
77
  export const RealisticUse: Story = {
78
+ parameters: { controls: { disable: true } },
78
79
  render: () => <RealisticUseDemo />,
79
80
  };
@@ -81,6 +81,27 @@ export const Variant_Link: Story = {
81
81
  },
82
82
  };
83
83
 
84
+ export const Variant_Secondary: Story = {
85
+ args: {
86
+ variant: "secondary",
87
+ children: "Save draft",
88
+ },
89
+ };
90
+
91
+ export const Variant_Destructive: Story = {
92
+ args: {
93
+ variant: "destructive",
94
+ children: "Delete project",
95
+ },
96
+ };
97
+
98
+ export const Variant_Accent: Story = {
99
+ args: {
100
+ variant: "accent",
101
+ children: "Upgrade plan",
102
+ },
103
+ };
104
+
84
105
  export const Disabled: Story = {
85
106
  args: {
86
107
  disabled: true,
@@ -96,6 +117,7 @@ export const Loading: Story = {
96
117
  };
97
118
 
98
119
  export const Loading_Variants: Story = {
120
+ parameters: { controls: { disable: true } },
99
121
  render: () => (
100
122
  <div className="flex flex-wrap items-center gap-3">
101
123
  <Button loading>Saving</Button>
@@ -121,6 +143,7 @@ export const Loading_Variants: Story = {
121
143
  // emitted a `[null, children]` array here that threw at prerender and broke the
122
144
  // production deploy. Rendered in every showcase shell header via asChild.
123
145
  export const AsChild: Story = {
146
+ parameters: { controls: { disable: true } },
124
147
  render: () => (
125
148
  <Button asChild variant="outline">
126
149
  <a href="#docs">Read the docs</a>
@@ -254,6 +277,7 @@ export const Interaction_DisabledReason: Story = {
254
277
  */
255
278
  export const AllSizes: Story = {
256
279
  tags: ["!manifest"],
280
+ parameters: { controls: { disable: true } },
257
281
  render: () => (
258
282
  <div className="flex flex-wrap items-center gap-3">
259
283
  <Button size="sm">Small</Button>
@@ -36,6 +36,7 @@ export default meta
36
36
  type Story = StoryObj<typeof ButtonGroup>
37
37
 
38
38
  export const Default: Story = {
39
+ parameters: { controls: { disable: true } },
39
40
  render: () => (
40
41
  <ButtonGroup aria-label="Component filter">
41
42
  <Button variant="outline">All</Button>
@@ -46,6 +47,7 @@ export const Default: Story = {
46
47
  }
47
48
 
48
49
  export const WithIcons: Story = {
50
+ parameters: { controls: { disable: true } },
49
51
  render: () => (
50
52
  <ButtonGroup aria-label="Text alignment">
51
53
  <Button variant="outline" size="icon" aria-label="Align left">
@@ -62,6 +64,7 @@ export const WithIcons: Story = {
62
64
  }
63
65
 
64
66
  export const Vertical: Story = {
67
+ parameters: { controls: { disable: true } },
65
68
  render: () => (
66
69
  <ButtonGroup orientation="vertical" aria-label="Design system views">
67
70
  <Button variant="outline">Figma</Button>
@@ -73,6 +76,7 @@ export const Vertical: Story = {
73
76
  }
74
77
 
75
78
  export const Variant_Default: Story = {
79
+ parameters: { controls: { disable: true } },
76
80
  render: () => (
77
81
  <ButtonGroup aria-label="Release channel">
78
82
  <Button variant="default">Stable</Button>
@@ -83,6 +87,7 @@ export const Variant_Default: Story = {
83
87
  }
84
88
 
85
89
  export const Variant_Secondary: Story = {
90
+ parameters: { controls: { disable: true } },
86
91
  render: () => (
87
92
  <ButtonGroup aria-label="Report period">
88
93
  <Button variant="secondary">Weekly</Button>
@@ -93,6 +98,7 @@ export const Variant_Secondary: Story = {
93
98
  }
94
99
 
95
100
  export const Size_Sm: Story = {
101
+ parameters: { controls: { disable: true } },
96
102
  render: () => (
97
103
  <ButtonGroup aria-label="Formatting">
98
104
  <Button variant="outline" size="sm">
@@ -108,6 +114,7 @@ export const Size_Sm: Story = {
108
114
  }
109
115
 
110
116
  export const Size_Lg: Story = {
117
+ parameters: { controls: { disable: true } },
111
118
  render: () => (
112
119
  <ButtonGroup aria-label="View toggle">
113
120
  <Button variant="outline" size="lg">
@@ -123,6 +130,7 @@ export const Size_Lg: Story = {
123
130
  }
124
131
 
125
132
  export const Disabled: Story = {
133
+ parameters: { controls: { disable: true } },
126
134
  render: () => (
127
135
  <ButtonGroup aria-label="Disabled group">
128
136
  <Button variant="outline" disabled>Previous</Button>
@@ -133,6 +141,7 @@ export const Disabled: Story = {
133
141
  }
134
142
 
135
143
  export const RealisticUse: Story = {
144
+ parameters: { controls: { disable: true } },
136
145
  render: () => (
137
146
  <div className="space-y-6 w-80">
138
147
  {/* Pagination */}
@@ -22,6 +22,7 @@ export default meta;
22
22
  type Story = StoryObj<typeof meta>;
23
23
 
24
24
  export const Default: Story = {
25
+ parameters: { controls: { disable: true } },
25
26
  render: () => {
26
27
  const [selected, setSelected] = useState<Date | undefined>(new Date());
27
28
  return (
@@ -36,6 +37,7 @@ export const Default: Story = {
36
37
  };
37
38
 
38
39
  export const Range: Story = {
40
+ parameters: { controls: { disable: true } },
39
41
  render: () => {
40
42
  const today = new Date();
41
43
  const start = new Date(today);
@@ -57,6 +59,7 @@ export const Range: Story = {
57
59
  };
58
60
 
59
61
  export const RealisticUse: Story = {
62
+ parameters: { controls: { disable: true } },
60
63
  render: () => {
61
64
  const [selected, setSelected] = useState<Date | undefined>(new Date());
62
65
  return (
@@ -0,0 +1,45 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Canvas } from "@behavioral-agentic-design-system/core/components/canvas/canvas";
3
+ import {
4
+ SAMPLE_CANVAS,
5
+ SAMPLE_SPEC,
6
+ sampleResolveView,
7
+ } from "@behavioral-agentic-design-system/core/components/canvas/sample";
8
+
9
+ const meta: Meta<typeof Canvas> = {
10
+ title: "Components/Layout/Canvas",
11
+ component: Canvas,
12
+ parameters: { layout: "fullscreen" },
13
+ tags: ["autodocs"],
14
+ decorators: [
15
+ (Story) => (
16
+ <div className="h-[720px] p-4">
17
+ <Story />
18
+ </div>
19
+ ),
20
+ ],
21
+ args: {
22
+ doc: SAMPLE_CANVAS,
23
+ docs: { "spec.md": SAMPLE_SPEC },
24
+ resolveView: sampleResolveView,
25
+ },
26
+ };
27
+
28
+ export default meta;
29
+ type Story = StoryObj<typeof meta>;
30
+
31
+ /** The spec is a doc frame on the canvas. It pans and zooms with the live views and scrolls inside its own frame. */
32
+ export const Default: Story = {};
33
+
34
+ /** Opens on one frame instead of the whole canvas. */
35
+ export const FocusedOnAView: Story = { args: { initialFrame: "dashboard" } };
36
+
37
+ /** A doc frame whose source is missing says so instead of rendering an empty box. */
38
+ export const MissingDocument: Story = { args: { docs: {} } };
39
+
40
+ /** With the pop-out link the reader can leave the canvas for the full-width spec. */
41
+ export const WithPopOut: Story = { args: { specHref: "/prototypes/showcase-overview?view=spec" } };
42
+
43
+ export const RealisticUse: Story = {
44
+ args: { initialFrame: "cards", specHref: "/prototypes/showcase-overview?view=spec" },
45
+ };
@@ -13,6 +13,7 @@ export default meta;
13
13
  type Story = StoryObj<typeof meta>;
14
14
 
15
15
  export const Default: Story = {
16
+ parameters: { controls: { disable: true } },
16
17
  render: () => (<Card className="w-[360px]">
17
18
  <CardHeader>
18
19
  <CardTitle>Total Revenue</CardTitle>
@@ -28,6 +29,7 @@ export const Default: Story = {
28
29
  };
29
30
 
30
31
  export const Variant_Default: Story = {
32
+ parameters: { controls: { disable: true } },
31
33
  render: () => (<Card variant="default" className="w-[360px]">
32
34
  <CardHeader>
33
35
  <CardTitle>Total Revenue</CardTitle>
@@ -43,6 +45,7 @@ export const Variant_Default: Story = {
43
45
  };
44
46
 
45
47
  export const Variant_Elevated: Story = {
48
+ parameters: { controls: { disable: true } },
46
49
  render: () => (<Card variant="elevated" className="w-[360px]">
47
50
  <CardHeader>
48
51
  <CardTitle>Total Revenue</CardTitle>
@@ -58,6 +61,7 @@ export const Variant_Elevated: Story = {
58
61
  };
59
62
 
60
63
  export const RealisticUse: Story = {
64
+ parameters: { controls: { disable: true } },
61
65
  render: () => (<Card className="w-[360px]">
62
66
  <CardHeader>
63
67
  <CardTitle>Total Revenue</CardTitle>
@@ -58,6 +58,7 @@ const SLIDES_TEAM = [
58
58
  ];
59
59
 
60
60
  export const Default: Story = {
61
+ parameters: { controls: { disable: true } },
61
62
  render: () => (
62
63
  <div className="w-[512px]">
63
64
  <Carousel aria-label="BADS feature highlights">
@@ -81,6 +82,7 @@ export const Default: Story = {
81
82
  };
82
83
 
83
84
  export const Variant_WithIndicators: Story = {
85
+ parameters: { controls: { disable: true } },
84
86
  render: () => (
85
87
  <div className="w-[512px]">
86
88
  <Carousel aria-label="BADS feature highlights with indicators">
@@ -106,6 +108,7 @@ export const Variant_WithIndicators: Story = {
106
108
 
107
109
  export const Variant_NoControls: Story = {
108
110
  name: "Variant_NoControls (keyboard + swipe only)",
111
+ parameters: { controls: { disable: true } },
109
112
  render: () => (
110
113
  <div className="w-[512px]">
111
114
  <Carousel aria-label="Team members">
@@ -133,6 +136,7 @@ export const Variant_NoControls: Story = {
133
136
  };
134
137
 
135
138
  export const Size_Wide: Story = {
139
+ parameters: { controls: { disable: true } },
136
140
  render: () => (
137
141
  <div className="w-[560px]">
138
142
  <Carousel aria-label="Wide carousel — two items visible">
@@ -156,6 +160,7 @@ export const Size_Wide: Story = {
156
160
  };
157
161
 
158
162
  export const Variant_Vertical: Story = {
163
+ parameters: { controls: { disable: true } },
159
164
  render: () => (
160
165
  <div className="h-60 w-80">
161
166
  <Carousel orientation="vertical" aria-label="Vertical feature carousel" className="h-full">
@@ -178,6 +183,7 @@ export const Variant_Vertical: Story = {
178
183
 
179
184
  export const RealisticUse: Story = {
180
185
  name: "RealisticUse — onboarding flow",
186
+ parameters: { controls: { disable: true } },
181
187
  render: () => (
182
188
  <div className="w-96 rounded-xl border bg-card p-6 shadow-sm">
183
189
  <div className="mb-4">
@@ -177,6 +177,7 @@ export const Default: Story = {
177
177
  };
178
178
 
179
179
  export const TwoLevels: Story = {
180
+ parameters: { controls: { disable: true } },
180
181
  render: () => {
181
182
  const [value, setValue] = React.useState<string[]>([]);
182
183
  return (
@@ -193,6 +194,7 @@ export const TwoLevels: Story = {
193
194
  };
194
195
 
195
196
  export const CategorySelection: Story = {
197
+ parameters: { controls: { disable: true } },
196
198
  render: () => {
197
199
  const [value, setValue] = React.useState<string[]>([]);
198
200
  const [labels, setLabels] = React.useState<string[]>([]);
@@ -215,6 +217,7 @@ export const CategorySelection: Story = {
215
217
  };
216
218
 
217
219
  export const PreselectedValue: Story = {
220
+ parameters: { controls: { disable: true } },
218
221
  render: () => (
219
222
  <div className="w-72">
220
223
  <Cascader
@@ -240,6 +243,7 @@ export const Disabled: Story = {
240
243
  };
241
244
 
242
245
  export const RealisticUse: Story = {
246
+ parameters: { controls: { disable: true } },
243
247
  render: () => {
244
248
  const [region, setRegion] = React.useState<string[]>([]);
245
249
  const [category, setCategory] = React.useState<string[]>([]);