@behavioral-agentic-design-system/core 0.45.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/package.json +17 -3
  2. package/scripts/a11y-lint.cjs +78 -15
  3. package/scripts/bads-sync.mjs +1 -1
  4. package/scripts/build-tokens.cjs +122 -7
  5. package/scripts/check-dark-contrast.mjs +204 -0
  6. package/scripts/check-flush-edges.mjs +245 -0
  7. package/scripts/design-system-advisory/README.md +239 -0
  8. package/scripts/design-system-advisory/check-copy-punctuation.mjs +44 -0
  9. package/scripts/design-system-advisory/check-even-padding.mjs +35 -0
  10. package/scripts/design-system-advisory/check-hand-built-button.mjs +46 -0
  11. package/scripts/design-system-advisory/check-html-nesting.mjs +51 -0
  12. package/scripts/design-system-advisory/check-icon-sizing.mjs +79 -0
  13. package/scripts/design-system-advisory/check-label-case.mjs +92 -0
  14. package/scripts/design-system-advisory/check-native-form-controls.mjs +53 -0
  15. package/scripts/design-system-advisory/check-radius.mjs +56 -0
  16. package/scripts/design-system-advisory/check-raw-values.mjs +61 -0
  17. package/scripts/design-system-advisory/check-small-text.mjs +72 -0
  18. package/scripts/design-system-advisory/check-tap-target.mjs +70 -0
  19. package/scripts/design-system-advisory/defaults.mjs +90 -0
  20. package/scripts/design-system-advisory/fixtures/clean.tsx.fixture +12 -0
  21. package/scripts/design-system-advisory/fixtures/violations.tsx.fixture +19 -0
  22. package/scripts/design-system-advisory/lib.mjs +255 -0
  23. package/scripts/design-system-advisory/run.mjs +189 -0
  24. package/scripts/design-system-advisory/workflow.yml +82 -0
  25. package/scripts/lib/copy-strings.mjs +146 -0
  26. package/scripts/lib/dark-contrast.mjs +120 -0
  27. package/scripts/lib/flush-edges.mjs +294 -0
  28. package/scripts/lib/lab-lint.mjs +62 -0
  29. package/scripts/lib/mount-page.mjs +25 -0
  30. package/scripts/lib/source-scan.mjs +173 -0
  31. package/scripts/lib/tells.mjs +240 -2
  32. package/scripts/lint-arbitrary-tokens.mjs +47 -0
  33. package/scripts/lint-component-token-refs.mjs +63 -0
  34. package/scripts/lint-content-hierarchy.mjs +114 -0
  35. package/scripts/lint-control-baseline.mjs +72 -0
  36. package/scripts/lint-copy-punctuation.mjs +60 -0
  37. package/scripts/lint-even-padding.mjs +58 -0
  38. package/scripts/lint-label-case.mjs +219 -0
  39. package/scripts/lint-microanimation.mjs +2 -2
  40. package/scripts/lint-proximity.mjs +181 -0
  41. package/scripts/lint-slop.mjs +1 -1
  42. package/scripts/lint-spacing-scale.mjs +78 -0
  43. package/scripts/lint-target-size.cjs +132 -0
  44. package/scripts/lint-token-primitives.mjs +307 -0
  45. package/scripts/size-audit.cjs +2 -2
  46. package/scripts/ux-tells.mjs +8 -6
  47. package/scripts/wcag-audit.cjs +25 -4
  48. package/src/api/layers/file.ts +2 -0
  49. package/src/api/site-auth.ts +14 -2
  50. package/src/app/preview/components/page.tsx +94 -14
  51. package/src/app/preview/sticker-sheet/page.tsx +329 -0
  52. package/src/app/preview/sticker-sheet/specimens.tsx +296 -0
  53. package/src/app/shell.tsx +4 -3
  54. package/src/components/Foundations/Colors.stories.tsx +119 -8
  55. package/src/components/home-tab.tsx +6 -1
  56. package/src/components/onboarding-wizard.tsx +1 -1
  57. package/src/components/ui/avatar.tsx +4 -0
  58. package/src/components/ui/chart.tsx +134 -42
  59. package/src/components/ui/checkbox-group.tsx +1 -1
  60. package/src/components/ui/checkbox.tsx +1 -1
  61. package/src/components/ui/combobox.tsx +1 -0
  62. package/src/components/ui/command.tsx +1 -1
  63. package/src/components/ui/date-picker.tsx +2 -0
  64. package/src/components/ui/date-range-picker.tsx +4 -0
  65. package/src/components/ui/file-upload.tsx +21 -2
  66. package/src/components/ui/heatmap.tsx +3 -1
  67. package/src/components/ui/input-group.tsx +5 -2
  68. package/src/components/ui/multi-select.tsx +1 -0
  69. package/src/components/ui/radio-group.tsx +2 -2
  70. package/src/components/ui/sparkline.tsx +33 -4
  71. package/src/components/ui/spinner.tsx +23 -4
  72. package/src/components/ui/table.tsx +9 -0
  73. package/src/components/ui/week-picker.tsx +0 -12
  74. package/src/data/component-added.json +8 -0
  75. package/src/data/docs-index.ts +22 -1
  76. package/src/data/history.json +161 -161
  77. package/src/data/sticker-sheet.json +9244 -0
  78. package/src/docs-trace-globs.json +1 -0
  79. package/src/lib/chart-motion.ts +41 -0
  80. package/src/lib/get-icon-color.ts +1 -1
  81. package/src/stories/Accordion.stories.tsx +7 -0
  82. package/src/stories/ActionBar.stories.tsx +5 -0
  83. package/src/stories/Affix.stories.tsx +4 -0
  84. package/src/stories/AiBadge.stories.tsx +9 -7
  85. package/src/stories/Alert.stories.tsx +13 -0
  86. package/src/stories/AlertDialog.stories.tsx +4 -0
  87. package/src/stories/Anchor.stories.tsx +5 -0
  88. package/src/stories/AngleSlider.stories.tsx +6 -3
  89. package/src/stories/AspectRatio.stories.tsx +4 -0
  90. package/src/stories/Autocomplete.stories.tsx +6 -0
  91. package/src/stories/Avatar.stories.tsx +10 -0
  92. package/src/stories/Badge.stories.tsx +14 -6
  93. package/src/stories/Blockquote.stories.tsx +6 -0
  94. package/src/stories/BottomNavigation.stories.tsx +4 -0
  95. package/src/stories/Breadcrumb.stories.tsx +3 -0
  96. package/src/stories/Burger.stories.tsx +1 -0
  97. package/src/stories/Button.stories.tsx +24 -0
  98. package/src/stories/ButtonGroup.stories.tsx +9 -0
  99. package/src/stories/Calendar.stories.tsx +3 -0
  100. package/src/stories/Card.stories.tsx +4 -0
  101. package/src/stories/Carousel.stories.tsx +6 -0
  102. package/src/stories/Cascader.stories.tsx +4 -0
  103. package/src/stories/Chart.stories.tsx +46 -1
  104. package/src/stories/ChatBubble.stories.tsx +8 -2
  105. package/src/stories/ChatMarker.stories.tsx +1 -0
  106. package/src/stories/Checkbox.stories.tsx +40 -0
  107. package/src/stories/CheckboxCard.stories.tsx +8 -0
  108. package/src/stories/CheckboxGroup.stories.tsx +19 -0
  109. package/src/stories/Chip.stories.tsx +10 -19
  110. package/src/stories/CircularProgress.stories.tsx +13 -27
  111. package/src/stories/Clipboard.stories.tsx +6 -0
  112. package/src/stories/CloseButton.stories.tsx +6 -4
  113. package/src/stories/Code.stories.tsx +8 -1
  114. package/src/stories/Collapsible.stories.tsx +2 -0
  115. package/src/stories/ColorPicker.stories.tsx +6 -0
  116. package/src/stories/ColorSwatch.stories.tsx +1 -0
  117. package/src/stories/Combobox.stories.tsx +9 -0
  118. package/src/stories/Command.stories.tsx +2 -0
  119. package/src/stories/Container.stories.tsx +8 -0
  120. package/src/stories/ContextMenu.stories.tsx +9 -0
  121. package/src/stories/CopyButton.stories.tsx +12 -36
  122. package/src/stories/DataList.stories.tsx +8 -0
  123. package/src/stories/DataTable.stories.tsx +9 -0
  124. package/src/stories/DateField.stories.tsx +7 -0
  125. package/src/stories/DatePicker.stories.tsx +34 -0
  126. package/src/stories/DateRangePicker.stories.tsx +32 -0
  127. package/src/stories/Dialog.stories.tsx +8 -0
  128. package/src/stories/Drawer.stories.tsx +6 -0
  129. package/src/stories/DropdownMenu.stories.tsx +2 -0
  130. package/src/stories/Editable.stories.tsx +10 -0
  131. package/src/stories/EmptyState.stories.tsx +9 -0
  132. package/src/stories/Field.stories.tsx +7 -0
  133. package/src/stories/Fieldset.stories.tsx +8 -0
  134. package/src/stories/FileButton.stories.tsx +4 -0
  135. package/src/stories/FileUpload.stories.tsx +16 -17
  136. package/src/stories/FloatLabel.stories.tsx +3 -8
  137. package/src/stories/FloatingActionButton.stories.tsx +10 -0
  138. package/src/stories/FloatingIndicator.stories.tsx +4 -0
  139. package/src/stories/FloatingPanel.stories.tsx +6 -0
  140. package/src/stories/FocusTrap.stories.tsx +5 -0
  141. package/src/stories/FormatByte.stories.tsx +6 -0
  142. package/src/stories/FormatDate.stories.tsx +8 -0
  143. package/src/stories/FormatNumber.stories.tsx +9 -0
  144. package/src/stories/Heatmap.stories.tsx +11 -0
  145. package/src/stories/Highlight.stories.tsx +6 -0
  146. package/src/stories/HoverCard.stories.tsx +4 -0
  147. package/src/stories/Image.stories.tsx +9 -0
  148. package/src/stories/Indicator.stories.tsx +19 -0
  149. package/src/stories/Input.stories.tsx +7 -0
  150. package/src/stories/InputClearButton.stories.tsx +3 -0
  151. package/src/stories/InputGroup.stories.tsx +40 -0
  152. package/src/stories/Kbd.stories.tsx +7 -1
  153. package/src/stories/KeyboardShortcut.stories.tsx +2 -0
  154. package/src/stories/Label.stories.tsx +2 -0
  155. package/src/stories/Link.stories.tsx +9 -0
  156. package/src/stories/List.stories.tsx +8 -0
  157. package/src/stories/Listbox.stories.tsx +1 -0
  158. package/src/stories/LoadingDots.stories.tsx +5 -3
  159. package/src/stories/LoadingOverlay.stories.tsx +5 -1
  160. package/src/stories/Mark.stories.tsx +5 -0
  161. package/src/stories/Marquee.stories.tsx +4 -0
  162. package/src/stories/Masonry.stories.tsx +5 -0
  163. package/src/stories/Menubar.stories.tsx +3 -0
  164. package/src/stories/Meter.stories.tsx +11 -17
  165. package/src/stories/MonthPicker.stories.tsx +5 -1
  166. package/src/stories/MotionToggle.stories.tsx +1 -0
  167. package/src/stories/MultiSelect.stories.tsx +9 -0
  168. package/src/stories/NativeSelect.stories.tsx +1 -0
  169. package/src/stories/NavLink.stories.tsx +7 -0
  170. package/src/stories/NavigationMenu.stories.tsx +5 -0
  171. package/src/stories/NavigationRail.stories.tsx +10 -0
  172. package/src/stories/Notification.stories.tsx +13 -34
  173. package/src/stories/NumberInput.stories.tsx +8 -1
  174. package/src/stories/Overlay.stories.tsx +5 -1
  175. package/src/stories/Pagination.stories.tsx +8 -0
  176. package/src/stories/PasswordInput.stories.tsx +2 -0
  177. package/src/stories/PinInput.stories.tsx +9 -2
  178. package/src/stories/Popover.stories.tsx +2 -0
  179. package/src/stories/Progress.stories.tsx +6 -1
  180. package/src/stories/Prose.stories.tsx +8 -0
  181. package/src/stories/QrCode.stories.tsx +2 -0
  182. package/src/stories/Questionnaire.stories.tsx +7 -0
  183. package/src/stories/RadioGroup.stories.tsx +40 -0
  184. package/src/stories/RatingGroup.stories.tsx +8 -4
  185. package/src/stories/Resizable.stories.tsx +4 -2
  186. package/src/stories/Result.stories.tsx +3 -0
  187. package/src/stories/Reveal.stories.tsx +2 -0
  188. package/src/stories/RollingNumber.stories.tsx +5 -0
  189. package/src/stories/ScrollArea.stories.tsx +3 -1
  190. package/src/stories/SearchInput.stories.tsx +8 -6
  191. package/src/stories/SegmentedControl.stories.tsx +11 -0
  192. package/src/stories/Select.stories.tsx +7 -0
  193. package/src/stories/Separator.stories.tsx +6 -0
  194. package/src/stories/Sheet.stories.tsx +5 -0
  195. package/src/stories/Sidebar.stories.tsx +40 -1
  196. package/src/stories/SimpleGrid.stories.tsx +5 -0
  197. package/src/stories/Skeleton.stories.tsx +8 -0
  198. package/src/stories/SkeletonTable.stories.tsx +6 -5
  199. package/src/stories/SkipLink.stories.tsx +3 -0
  200. package/src/stories/Slider.stories.tsx +2 -1
  201. package/src/stories/Sonner.stories.tsx +7 -0
  202. package/src/stories/Sparkline.stories.tsx +14 -1
  203. package/src/stories/Spinner.stories.tsx +20 -10
  204. package/src/stories/Spoiler.stories.tsx +5 -0
  205. package/src/stories/Squircle.stories.tsx +7 -0
  206. package/src/stories/Stack.stories.tsx +7 -0
  207. package/src/stories/StatusBadge.stories.tsx +12 -6
  208. package/src/stories/Stepper.stories.tsx +5 -0
  209. package/src/stories/Switch.stories.tsx +4 -0
  210. package/src/stories/Table.stories.tsx +10 -1
  211. package/src/stories/Tabs.stories.tsx +8 -0
  212. package/src/stories/Tag.stories.tsx +13 -5
  213. package/src/stories/TagsInput.stories.tsx +13 -0
  214. package/src/stories/Text.stories.tsx +12 -0
  215. package/src/stories/Textarea.stories.tsx +9 -0
  216. package/src/stories/ThemeIcon.stories.tsx +6 -3
  217. package/src/stories/TimePicker.stories.tsx +2 -0
  218. package/src/stories/Timeline.stories.tsx +12 -0
  219. package/src/stories/Timer.stories.tsx +4 -0
  220. package/src/stories/Toggle.stories.tsx +7 -5
  221. package/src/stories/ToggleGroup.stories.tsx +5 -0
  222. package/src/stories/ToggleTip.stories.tsx +4 -0
  223. package/src/stories/Toolbar.stories.tsx +6 -0
  224. package/src/stories/Tooltip.stories.tsx +3 -0
  225. package/src/stories/Tour.stories.tsx +3 -0
  226. package/src/stories/TransferList.stories.tsx +3 -0
  227. package/src/stories/TreeSelect.stories.tsx +4 -0
  228. package/src/stories/TreeView.stories.tsx +5 -0
  229. package/src/stories/TypingIndicator.stories.tsx +4 -0
  230. package/src/stories/VisuallyHidden.stories.tsx +3 -0
  231. package/src/stories/Watermark.stories.tsx +6 -0
  232. package/src/stories/WeekPicker.stories.tsx +4 -1
  233. package/src/stories/WordRotate.stories.tsx +5 -0
  234. package/src/stories/YearPicker.stories.tsx +5 -11
  235. package/src/styles.css +50 -2
  236. package/src/tokens.json +4 -4
  237. package/LICENSE +0 -21
@@ -13,27 +13,28 @@ 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: () => (<Toggle aria-label="Toggle bold"><Bold className="h-4 w-4" /></Toggle>),
17
18
  };
18
19
 
19
20
  export const Variant_Default: Story = {
20
- render: () => <Toggle variant="default">Default</Toggle>,
21
+ args: { variant: "default", children: "Default" },
21
22
  };
22
23
 
23
24
  export const Variant_Outline: Story = {
24
- render: () => <Toggle variant="outline">Outline</Toggle>,
25
+ args: { variant: "outline", children: "Outline" },
25
26
  };
26
27
 
27
28
  export const Size_Default: Story = {
28
- render: () => <Toggle size="default">Default</Toggle>,
29
+ args: { size: "default", children: "Default" },
29
30
  };
30
31
 
31
32
  export const Size_Sm: Story = {
32
- render: () => <Toggle size="sm">Sm</Toggle>,
33
+ args: { size: "sm", children: "Sm" },
33
34
  };
34
35
 
35
36
  export const Size_Lg: Story = {
36
- render: () => <Toggle size="lg">Lg</Toggle>,
37
+ args: { size: "lg", children: "Lg" },
37
38
  };
38
39
 
39
40
  export const Disabled: Story = {
@@ -41,5 +42,6 @@ export const Disabled: Story = {
41
42
  };
42
43
 
43
44
  export const RealisticUse: Story = {
45
+ parameters: { controls: { disable: true } },
44
46
  render: () => (<Toggle aria-label="Toggle bold"><Bold className="h-4 w-4" /></Toggle>),
45
47
  };
@@ -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: () => (<ToggleGroup type="multiple">
17
18
  <ToggleGroupItem value="bold" aria-label="Bold"><Bold className="h-4 w-4" /></ToggleGroupItem>
18
19
  <ToggleGroupItem value="italic" aria-label="Italic"><Italic className="h-4 w-4" /></ToggleGroupItem>
@@ -21,6 +22,7 @@ export const Default: Story = {
21
22
  };
22
23
 
23
24
  export const Orientation_Vertical: Story = {
25
+ parameters: { controls: { disable: true } },
24
26
  render: () => (
25
27
  <ToggleGroup type="single" orientation="vertical" variant="outline">
26
28
  <ToggleGroupItem value="bold" aria-label="Bold"><Bold className="h-4 w-4" /></ToggleGroupItem>
@@ -31,6 +33,7 @@ export const Orientation_Vertical: Story = {
31
33
  };
32
34
 
33
35
  export const Orientation_Vertical_Spaced: Story = {
36
+ parameters: { controls: { disable: true } },
34
37
  render: () => (
35
38
  <ToggleGroup type="single" orientation="vertical" spacing={1}>
36
39
  <ToggleGroupItem value="bold" aria-label="Bold"><Bold className="h-4 w-4" /></ToggleGroupItem>
@@ -41,6 +44,7 @@ export const Orientation_Vertical_Spaced: Story = {
41
44
  };
42
45
 
43
46
  export const Disabled: Story = {
47
+ parameters: { controls: { disable: true } },
44
48
  render: () => (
45
49
  <ToggleGroup type="multiple" disabled>
46
50
  <ToggleGroupItem value="bold" aria-label="Bold"><Bold className="h-4 w-4" /></ToggleGroupItem>
@@ -51,6 +55,7 @@ export const Disabled: Story = {
51
55
  };
52
56
 
53
57
  export const RealisticUse: Story = {
58
+ parameters: { controls: { disable: true } },
54
59
  render: () => (<ToggleGroup type="multiple">
55
60
  <ToggleGroupItem value="bold" aria-label="Bold"><Bold className="h-4 w-4" /></ToggleGroupItem>
56
61
  <ToggleGroupItem value="italic" aria-label="Italic"><Italic className="h-4 w-4" /></ToggleGroupItem>
@@ -16,6 +16,7 @@ const meta: Meta<typeof ToggleTip> = {
16
16
  export default meta;
17
17
 
18
18
  export const Default: StoryObj = {
19
+ parameters: { controls: { disable: true } },
19
20
  render: () => (
20
21
  <ToggleTip content="Semantic tokens alias primitives, so one brand change propagates everywhere.">
21
22
  <Button variant="ghost" size="icon" aria-label="More about semantic tokens">
@@ -26,6 +27,7 @@ export const Default: StoryObj = {
26
27
  };
27
28
 
28
29
  export const Disabled: StoryObj = {
30
+ parameters: { controls: { disable: true } },
29
31
  render: () => (
30
32
  <ToggleTip
31
33
  disabled
@@ -39,6 +41,7 @@ export const Disabled: StoryObj = {
39
41
  };
40
42
 
41
43
  export const WithFormLabel: StoryObj = {
44
+ parameters: { controls: { disable: true } },
42
45
  render: () => (
43
46
  <div className="w-80 space-y-3">
44
47
  <div className="flex items-center gap-1">
@@ -62,6 +65,7 @@ export const WithFormLabel: StoryObj = {
62
65
  };
63
66
 
64
67
  export const RealisticUse: StoryObj = {
68
+ parameters: { controls: { disable: true } },
65
69
  render: () => (
66
70
  <div className="w-96 space-y-4 rounded-lg border border-border bg-card p-4">
67
71
  <p className="text-sm font-medium text-foreground">Fork settings</p>
@@ -33,6 +33,7 @@ export default meta;
33
33
  type Story = StoryObj<typeof meta>;
34
34
 
35
35
  export const Default: Story = {
36
+ parameters: { controls: { disable: true } },
36
37
  render: () => (
37
38
  <Toolbar aria-label="Text formatting">
38
39
  <ToolbarButton aria-label="Bold">
@@ -49,6 +50,7 @@ export const Default: Story = {
49
50
  };
50
51
 
51
52
  export const WithSeparator: Story = {
53
+ parameters: { controls: { disable: true } },
52
54
  render: () => (
53
55
  <Toolbar aria-label="Rich text editor toolbar">
54
56
  <ToolbarButton aria-label="Bold">
@@ -82,6 +84,7 @@ export const WithSeparator: Story = {
82
84
  };
83
85
 
84
86
  export const WithActiveState: Story = {
87
+ parameters: { controls: { disable: true } },
85
88
  render: () => {
86
89
  const [bold, setBold] = React.useState(true);
87
90
  const [italic, setItalic] = React.useState(false);
@@ -139,6 +142,7 @@ export const WithActiveState: Story = {
139
142
  };
140
143
 
141
144
  export const Vertical: Story = {
145
+ parameters: { controls: { disable: true } },
142
146
  render: () => (
143
147
  <Toolbar orientation="vertical" aria-label="Document actions">
144
148
  <ToolbarButton aria-label="Undo">
@@ -159,6 +163,7 @@ export const Vertical: Story = {
159
163
  };
160
164
 
161
165
  export const Disabled: Story = {
166
+ parameters: { controls: { disable: true } },
162
167
  render: () => (
163
168
  <Toolbar aria-label="Disabled toolbar">
164
169
  <ToolbarButton aria-label="Bold" disabled>
@@ -182,6 +187,7 @@ export const RealisticUse: Story = {
182
187
  </div>
183
188
  ),
184
189
  ],
190
+ parameters: { controls: { disable: true } },
185
191
  render: () => {
186
192
  const [bold, setBold] = React.useState(false);
187
193
  const [italic, setItalic] = React.useState(false);
@@ -19,6 +19,7 @@ export default meta;
19
19
  type Story = StoryObj<typeof meta>;
20
20
 
21
21
  export const Default: Story = {
22
+ parameters: { controls: { disable: true } },
22
23
  render: () => (<TooltipProvider>
23
24
  <Tooltip>
24
25
  <TooltipTrigger asChild><Button variant="outline">Hover me</Button></TooltipTrigger>
@@ -28,6 +29,7 @@ export const Default: Story = {
28
29
  };
29
30
 
30
31
  export const RealisticUse: Story = {
32
+ parameters: { controls: { disable: true } },
31
33
  render: () => (<TooltipProvider>
32
34
  <Tooltip>
33
35
  <TooltipTrigger asChild><Button variant="outline">Hover me</Button></TooltipTrigger>
@@ -43,6 +45,7 @@ export const RealisticUse: Story = {
43
45
  // is the canonical demonstration of the correct pattern; see tooltip.tsx's
44
46
  // inverted-surface note and the Tooltip registry antiPattern.
45
47
  export const DeEmphasizedText: Story = {
48
+ parameters: { controls: { disable: true } },
46
49
  render: () => (<TooltipProvider>
47
50
  <Tooltip>
48
51
  <TooltipTrigger asChild><Button variant="outline">Contrast ratio</Button></TooltipTrigger>
@@ -74,6 +74,7 @@ function TourDemo({
74
74
  }
75
75
 
76
76
  export const Default: Story = {
77
+ parameters: { controls: { disable: true } },
77
78
  render: () => (
78
79
  <TourDemo
79
80
  idPrefix="tour-default"
@@ -102,6 +103,7 @@ export const Default: Story = {
102
103
  };
103
104
 
104
105
  export const Placement_TopAndLeft: Story = {
106
+ parameters: { controls: { disable: true } },
105
107
  render: () => (
106
108
  <TourDemo
107
109
  idPrefix="tour-placement"
@@ -125,6 +127,7 @@ export const Placement_TopAndLeft: Story = {
125
127
  };
126
128
 
127
129
  export const Centered_WelcomeStep: Story = {
130
+ parameters: { controls: { disable: true } },
128
131
  render: () => (
129
132
  <TourDemo
130
133
  idPrefix="tour-centered"
@@ -53,6 +53,7 @@ function ControlledTransferList(
53
53
  // ────────────────────────────────────────────────────────────────────────────
54
54
 
55
55
  export const Default: Story = {
56
+ parameters: { controls: { disable: true } },
56
57
  render: () => (
57
58
  // Right panel starts empty — "No items" placeholder renders with role="option"
58
59
  // aria-disabled="true" to satisfy listbox's aria-required-children contract.
@@ -68,6 +69,7 @@ export const Default: Story = {
68
69
  // FacetedFilter's popover, these rows render directly, so initialSelected
69
70
  // below already puts real checked Checkbox primitives in front of Chromatic.
70
71
  export const WithSearch: Story = {
72
+ parameters: { controls: { disable: true } },
71
73
  render: () => (
72
74
  <ControlledTransferList
73
75
  searchable
@@ -136,6 +138,7 @@ export const Controlled: Story = {
136
138
  // → move active item (aria-activedescendant), Space/Enter → toggle, Tab → move
137
139
  // to transfer buttons. Items are NOT individually tabbable (no nested-interactive).
138
140
  export const KeyboardNav: Story = {
141
+ parameters: { controls: { disable: true } },
139
142
  render: () => (
140
143
  <div className="space-y-2">
141
144
  <p className="text-xs text-muted-foreground max-w-sm">
@@ -114,6 +114,7 @@ const docsTree: TreeSelectNode[] = [
114
114
  ];
115
115
 
116
116
  export const Default: Story = {
117
+ parameters: { controls: { disable: true } },
117
118
  render: () => {
118
119
  const [value, setValue] = React.useState<string | string[]>("");
119
120
  return (
@@ -135,6 +136,7 @@ export const Default: Story = {
135
136
  };
136
137
 
137
138
  export const Multiple: Story = {
139
+ parameters: { controls: { disable: true } },
138
140
  render: () => {
139
141
  const [value, setValue] = React.useState<string | string[]>([
140
142
  "jordan-reeves",
@@ -162,6 +164,7 @@ export const Multiple: Story = {
162
164
  };
163
165
 
164
166
  export const Disabled: Story = {
167
+ parameters: { controls: { disable: true } },
165
168
  render: () => (
166
169
  <div className="w-80">
167
170
  <TreeSelect
@@ -176,6 +179,7 @@ export const Disabled: Story = {
176
179
  };
177
180
 
178
181
  export const RealisticUse: Story = {
182
+ parameters: { controls: { disable: true } },
179
183
  render: () => {
180
184
  const [destination, setDestination] = React.useState<string | string[]>("");
181
185
  const [reviewerValues, setReviewerValues] = React.useState<string | string[]>(
@@ -27,6 +27,7 @@ export default meta;
27
27
  type Story = StoryObj<typeof Tree>;
28
28
 
29
29
  export const Default: Story = {
30
+ parameters: { controls: { disable: true } },
30
31
  render: () => (
31
32
  <div className="w-64">
32
33
  <Tree defaultExpanded={["docs"]}>
@@ -71,6 +72,7 @@ export const Default: Story = {
71
72
  };
72
73
 
73
74
  export const WithIcons: Story = {
75
+ parameters: { controls: { disable: true } },
74
76
  render: () => (
75
77
  <div className="w-72">
76
78
  <Tree defaultExpanded={["project", "assets"]}>
@@ -110,6 +112,7 @@ export const WithIcons: Story = {
110
112
  };
111
113
 
112
114
  export const Flat: Story = {
115
+ parameters: { controls: { disable: true } },
113
116
  render: () => (
114
117
  <div className="w-56">
115
118
  <Tree>
@@ -131,6 +134,7 @@ export const Flat: Story = {
131
134
  };
132
135
 
133
136
  export const DeepNesting: Story = {
137
+ parameters: { controls: { disable: true } },
134
138
  render: () => (
135
139
  <div className="w-72">
136
140
  <Tree defaultExpanded={["l1", "l2", "l3"]}>
@@ -213,6 +217,7 @@ export const Controlled: Story = {
213
217
  };
214
218
 
215
219
  export const RealisticUse: Story = {
220
+ parameters: { controls: { disable: true } },
216
221
  render: () => (
217
222
  <div className="w-72 rounded-lg border border-border bg-card p-3">
218
223
  <p className="mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground">
@@ -30,6 +30,7 @@ export default meta;
30
30
  type Story = StoryObj<typeof meta>;
31
31
 
32
32
  export const Default: Story = {
33
+ parameters: { controls: { disable: true } },
33
34
  render: () => (
34
35
  <div className="flex flex-col items-start gap-2">
35
36
  <TypingIndicator />
@@ -41,6 +42,7 @@ export const Default: Story = {
41
42
  };
42
43
 
43
44
  export const Size_sm: Story = {
45
+ parameters: { controls: { disable: true } },
44
46
  render: () => (
45
47
  <div className="flex flex-col items-start gap-2">
46
48
  <TypingIndicator size="sm" />
@@ -52,6 +54,7 @@ export const Size_sm: Story = {
52
54
  };
53
55
 
54
56
  export const Size_lg: Story = {
57
+ parameters: { controls: { disable: true } },
55
58
  render: () => (
56
59
  <div className="flex flex-col items-start gap-2">
57
60
  <TypingIndicator size="lg" />
@@ -63,6 +66,7 @@ export const Size_lg: Story = {
63
66
  };
64
67
 
65
68
  export const CustomLabel: Story = {
69
+ parameters: { controls: { disable: true } },
66
70
  render: () => (
67
71
  <div className="flex flex-col items-start gap-2">
68
72
  <TypingIndicator label="BADS assistant is thinking…" />
@@ -27,6 +27,7 @@ type Story = StoryObj<typeof VisuallyHidden>;
27
27
  // (or run a screen reader) to confirm the hidden content is present.
28
28
 
29
29
  export const Default: Story = {
30
+ parameters: { controls: { disable: true } },
30
31
  render: () => (
31
32
  <div className="max-w-sm space-y-2">
32
33
  <p className="text-sm text-foreground">
@@ -46,6 +47,7 @@ export const Default: Story = {
46
47
  };
47
48
 
48
49
  export const WithAsChild: Story = {
50
+ parameters: { controls: { disable: true } },
49
51
  render: () => (
50
52
  <div className="max-w-sm space-y-2">
51
53
  <p className="text-sm text-foreground">
@@ -64,6 +66,7 @@ export const WithAsChild: Story = {
64
66
  };
65
67
 
66
68
  export const RealisticUse: Story = {
69
+ parameters: { controls: { disable: true } },
67
70
  render: () => (
68
71
  <Card className="w-80">
69
72
  <CardContent className="space-y-4 p-4">
@@ -43,6 +43,7 @@ const MARK_SVG =
43
43
  )
44
44
 
45
45
  export const Default: Story = {
46
+ parameters: { controls: { disable: true } },
46
47
  render: () => (
47
48
  <Watermark content="Internal review — do not distribute">
48
49
  <Card className="w-[28rem]">
@@ -69,6 +70,7 @@ export const Default: Story = {
69
70
  }
70
71
 
71
72
  export const Size_Sm: Story = {
73
+ parameters: { controls: { disable: true } },
72
74
  render: () => (
73
75
  <Watermark
74
76
  content="seoyun_park · 2026-05-26"
@@ -93,6 +95,7 @@ export const Size_Sm: Story = {
93
95
  }
94
96
 
95
97
  export const Size_Lg: Story = {
98
+ parameters: { controls: { disable: true } },
96
99
  render: () => (
97
100
  <Watermark
98
101
  content="DRAFT"
@@ -125,6 +128,7 @@ export const Size_Lg: Story = {
125
128
  }
126
129
 
127
130
  export const WithImage: Story = {
131
+ parameters: { controls: { disable: true } },
128
132
  render: () => (
129
133
  <Watermark image={MARK_SVG} gap={[110, 90]} opacity={0.1}>
130
134
  <Card className="w-[28rem]">
@@ -146,6 +150,7 @@ export const WithImage: Story = {
146
150
  }
147
151
 
148
152
  export const MultiLine: Story = {
153
+ parameters: { controls: { disable: true } },
149
154
  render: () => (
150
155
  <Watermark
151
156
  content={["Confidential", "anika.patel@stripe.com"]}
@@ -169,6 +174,7 @@ export const MultiLine: Story = {
169
174
  }
170
175
 
171
176
  export const RealisticUse: Story = {
177
+ parameters: { controls: { disable: true } },
172
178
  render: () => (
173
179
  <Watermark content="CONFIDENTIAL — internal pricing" rotate={-30}>
174
180
  <Card className="w-[30rem]">
@@ -21,10 +21,11 @@ export default meta
21
21
  type Story = StoryObj<typeof meta>
22
22
 
23
23
  export const Default: Story = {
24
- render: () => <WeekPicker className="rounded-md border" />,
24
+ args: { className: "rounded-md border" },
25
25
  }
26
26
 
27
27
  export const WithValue: Story = {
28
+ parameters: { controls: { disable: true } },
28
29
  render: () => {
29
30
  // Sprint start — week of 2026-09-07 (persona pool dates, bads.json).
30
31
  const [week, setWeek] = React.useState<Date>(new Date(2026, 8, 7))
@@ -39,6 +40,7 @@ export const WithValue: Story = {
39
40
  }
40
41
 
41
42
  export const Disabled: Story = {
43
+ parameters: { controls: { disable: true } },
42
44
  render: () => (
43
45
  <WeekPicker
44
46
  disabled
@@ -49,6 +51,7 @@ export const Disabled: Story = {
49
51
  }
50
52
 
51
53
  export const RealisticUse: Story = {
54
+ parameters: { controls: { disable: true } },
52
55
  render: () => {
53
56
  const [sprintWeek, setSprintWeek] = React.useState<Date | undefined>(
54
57
  undefined
@@ -22,6 +22,7 @@ export default meta
22
22
  type Story = StoryObj<typeof WordRotate>
23
23
 
24
24
  export const Default: Story = {
25
+ parameters: { controls: { disable: true } },
25
26
  render: () => (
26
27
  <p className="text-2xl font-semibold text-foreground">
27
28
  Design systems that are{" "}
@@ -31,6 +32,7 @@ export const Default: Story = {
31
32
  }
32
33
 
33
34
  export const FastInterval: Story = {
35
+ parameters: { controls: { disable: true } },
34
36
  render: () => (
35
37
  <p className="text-2xl font-semibold text-foreground">
36
38
  Status:{" "}
@@ -44,6 +46,7 @@ export const FastInterval: Story = {
44
46
  }
45
47
 
46
48
  export const SlowInterval: Story = {
49
+ parameters: { controls: { disable: true } },
47
50
  render: () => (
48
51
  <p className="text-2xl font-semibold text-foreground">
49
52
  Designed for{" "}
@@ -56,6 +59,7 @@ export const SlowInterval: Story = {
56
59
  }
57
60
 
58
61
  export const SingleWord: Story = {
62
+ parameters: { controls: { disable: true } },
59
63
  render: () => (
60
64
  // words.length === 1: no interval fires, word is static — correct for
61
65
  // cases where the word list is dynamically derived and might have 1 item.
@@ -67,6 +71,7 @@ export const SingleWord: Story = {
67
71
  }
68
72
 
69
73
  export const RealisticUse: Story = {
74
+ parameters: { controls: { disable: true } },
70
75
  render: () => (
71
76
  <div className="flex max-w-lg flex-col gap-6 rounded-lg border border-border bg-card p-8">
72
77
  <div className="flex flex-col gap-2">
@@ -21,10 +21,11 @@ export default meta;
21
21
  type Story = StoryObj<typeof meta>;
22
22
 
23
23
  export const Default: Story = {
24
- render: () => <YearPicker className="rounded-md border" />,
24
+ args: { className: "rounded-md border" },
25
25
  };
26
26
 
27
27
  export const Prefilled: Story = {
28
+ parameters: { controls: { disable: true } },
28
29
  render: () => {
29
30
  // Persona pool date (content/personas/bads.json → primary.dates): 2026-05-26.
30
31
  const [year, setYear] = useState<number | undefined>(2026);
@@ -40,19 +41,11 @@ export const Prefilled: Story = {
40
41
  };
41
42
 
42
43
  export const Disabled: Story = {
43
- render: () => (
44
- // When disabled: grid div gets tabIndex=0 (keyboard-reachable without
45
- // placing tabIndex=0 on a non-focusable button); year label uses
46
- // text-muted-foreground instead of opacity-50 to maintain contrast.
47
- <YearPicker
48
- disabled
49
- defaultValue={2026}
50
- className="rounded-md border"
51
- />
52
- ),
44
+ args: { disabled: true, defaultValue: 2026, className: "rounded-md border" },
53
45
  };
54
46
 
55
47
  export const WithMinMax: Story = {
48
+ parameters: { controls: { disable: true } },
56
49
  render: () => {
57
50
  // Engagement range: minYear=2020, maxYear=2030. Out-of-range cells
58
51
  // render at opacity-40 and are pointer-events-none.
@@ -70,6 +63,7 @@ export const WithMinMax: Story = {
70
63
  };
71
64
 
72
65
  export const RealisticUse: Story = {
66
+ parameters: { controls: { disable: true } },
73
67
  render: () => {
74
68
  // Persona: Jordan Reeves (content/personas/bads.json → primary.names[0]).
75
69
  // Use case: graduation year for a professional profile.
package/src/styles.css CHANGED
@@ -61,13 +61,45 @@
61
61
 
62
62
  @custom-variant dark (&:is(.dark *));
63
63
 
64
+ /* Sticker-sheet state pinning. Each variant keeps Tailwind's real behavior
65
+ (hover stays behind the (hover: hover) media guard) and ALSO matches a
66
+ data-pin attribute, so the sticker sheet can freeze hover, focus and
67
+ pressed on a specimen without touching the component. Live interaction is
68
+ unchanged because the real selectors are still there. */
69
+ @custom-variant hover {
70
+ &:is([data-pin~="hover"]) {
71
+ @slot;
72
+ }
73
+ @media (hover: hover) {
74
+ &:hover {
75
+ @slot;
76
+ }
77
+ }
78
+ }
79
+ @custom-variant focus-visible {
80
+ &:is([data-pin~="focus"]) {
81
+ @slot;
82
+ }
83
+ &:focus-visible {
84
+ @slot;
85
+ }
86
+ }
87
+ @custom-variant active {
88
+ &:is([data-pin~="pressed"]) {
89
+ @slot;
90
+ }
91
+ &:active {
92
+ @slot;
93
+ }
94
+ }
95
+
64
96
  :root {
65
97
  color-scheme: light dark;
66
98
 
67
99
  /* Brand sans from tokens.json leads. Atkinson Hyperlegible (loaded via the
68
100
  Google Fonts @import above) is the canonical fallback so unbranded
69
101
  consumers still get a high-legibility face out of the box. */
70
- --font-sans: 'Hyperlegible Sans', 'Inter', ui-sans-serif, sans-serif, system-ui, 'Atkinson Hyperlegible', ui-sans-serif, sans-serif, system-ui;
102
+ --font-sans: 'Hyperlegible Sans', 'Inter', ui-sans-serif, sans-serif, system-ui, 'Atkinson Hyperlegible';
71
103
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
72
104
  --font-serif: ui-serif, Georgia, serif;
73
105
  --font-variation-settings: normal;
@@ -594,6 +626,22 @@
594
626
  [aria-disabled="true"] {
595
627
  cursor: not-allowed;
596
628
  }
629
+ /* text-wrap: balance distributes line length evenly across all lines of
630
+ a heading, preventing the awkward single-word last line (widow) that
631
+ most headings produce at responsive widths. Supported Chrome 114+,
632
+ Firefox 121+, Safari 17.5+ (Baseline 2024). Falls back to normal wrap
633
+ with no visual regression in older engines. */
634
+ h1, h2, h3, h4, h5, h6 {
635
+ text-wrap: balance;
636
+ }
637
+ /* text-wrap: pretty prevents orphaned last words on paragraphs by
638
+ considering the last four lines when breaking. Supported Chrome 117+,
639
+ Firefox 130+ (Baseline 2025). Falls back to normal wrap — no adverse
640
+ effect. Performance overhead is negligible on typical paragraph lengths
641
+ (the engine short-circuits for < 4 lines). */
642
+ p {
643
+ text-wrap: pretty;
644
+ }
597
645
  }
598
646
 
599
647
  /* Global tracking offset — the Letter Spacing slider in the Customize
@@ -632,7 +680,7 @@ html, body {
632
680
  hard edge at full opacity.
633
681
 
634
682
  Forks with sticky chrome (a sidebar / top bar that stays put while the page
635
- scrolls): see CLAUDE.md -> "Theme transition and sticky chrome" before
683
+ scrolls): see docs/agent-rules/theme-transition-and-sticky-chrome.md -> "Theme transition and sticky chrome" before
636
684
  naming any chrome. NEVER give a backdrop-filter element a view-transition-
637
685
  name (its snapshot has no backdrop to sample and rasterizes as an opaque
638
686
  white flash). */
package/src/tokens.json CHANGED
@@ -1077,12 +1077,12 @@
1077
1077
  "sidebar-border": {
1078
1078
  "$value": "oklch(0.6100 0 0)",
1079
1079
  "$type": "color",
1080
- "$description": "AAA non-text 3:1 on sidebar."
1080
+ "$description": "Dividers and outlines inside the sidebar. Meets the AAA non-text 3:1 floor on the sidebar surface. Not for the focus indicator, use sidebar-ring."
1081
1081
  },
1082
1082
  "sidebar-ring": {
1083
1083
  "$value": "oklch(0.4500 0 0)",
1084
1084
  "$type": "color",
1085
- "$description": "AAA non-text 3:1 on sidebar."
1085
+ "$description": "Focus ring for controls inside the sidebar. Meets the AAA non-text 3:1 floor on the sidebar surface. Not for static dividers, use sidebar-border."
1086
1086
  }
1087
1087
  },
1088
1088
  "dark": {
@@ -1304,12 +1304,12 @@
1304
1304
  "sidebar-border": {
1305
1305
  "$value": "oklch(0.5500 0 0)",
1306
1306
  "$type": "color",
1307
- "$description": "AAA non-text 3:1 on dark sidebar."
1307
+ "$description": "Dividers and outlines inside the dark sidebar. Meets the AAA non-text 3:1 floor on the dark sidebar surface. Not for the focus indicator, use sidebar-ring."
1308
1308
  },
1309
1309
  "sidebar-ring": {
1310
1310
  "$value": "oklch(0.7000 0 0)",
1311
1311
  "$type": "color",
1312
- "$description": "AAA non-text 3:1 on dark sidebar."
1312
+ "$description": "Focus ring for controls inside the dark sidebar. Meets the AAA non-text 3:1 floor on the dark sidebar surface. Not for static dividers, use sidebar-border."
1313
1313
  }
1314
1314
  }
1315
1315
  },
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Matthew Stephens
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.