@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.
- package/package.json +17 -3
- package/scripts/a11y-lint.cjs +78 -15
- package/scripts/bads-sync.mjs +1 -1
- package/scripts/build-tokens.cjs +122 -7
- package/scripts/check-dark-contrast.mjs +204 -0
- package/scripts/check-flush-edges.mjs +245 -0
- package/scripts/design-system-advisory/README.md +239 -0
- package/scripts/design-system-advisory/check-copy-punctuation.mjs +44 -0
- package/scripts/design-system-advisory/check-even-padding.mjs +35 -0
- package/scripts/design-system-advisory/check-hand-built-button.mjs +46 -0
- package/scripts/design-system-advisory/check-html-nesting.mjs +51 -0
- package/scripts/design-system-advisory/check-icon-sizing.mjs +79 -0
- package/scripts/design-system-advisory/check-label-case.mjs +92 -0
- package/scripts/design-system-advisory/check-native-form-controls.mjs +53 -0
- package/scripts/design-system-advisory/check-radius.mjs +56 -0
- package/scripts/design-system-advisory/check-raw-values.mjs +61 -0
- package/scripts/design-system-advisory/check-small-text.mjs +72 -0
- package/scripts/design-system-advisory/check-tap-target.mjs +70 -0
- package/scripts/design-system-advisory/defaults.mjs +90 -0
- package/scripts/design-system-advisory/fixtures/clean.tsx.fixture +12 -0
- package/scripts/design-system-advisory/fixtures/violations.tsx.fixture +19 -0
- package/scripts/design-system-advisory/lib.mjs +255 -0
- package/scripts/design-system-advisory/run.mjs +189 -0
- package/scripts/design-system-advisory/workflow.yml +82 -0
- package/scripts/lib/copy-strings.mjs +146 -0
- package/scripts/lib/dark-contrast.mjs +120 -0
- package/scripts/lib/flush-edges.mjs +294 -0
- package/scripts/lib/lab-lint.mjs +62 -0
- package/scripts/lib/mount-page.mjs +25 -0
- package/scripts/lib/source-scan.mjs +173 -0
- package/scripts/lib/tells.mjs +240 -2
- package/scripts/lint-arbitrary-tokens.mjs +47 -0
- package/scripts/lint-component-token-refs.mjs +63 -0
- package/scripts/lint-content-hierarchy.mjs +114 -0
- package/scripts/lint-control-baseline.mjs +72 -0
- package/scripts/lint-copy-punctuation.mjs +60 -0
- package/scripts/lint-even-padding.mjs +58 -0
- package/scripts/lint-label-case.mjs +219 -0
- package/scripts/lint-microanimation.mjs +2 -2
- package/scripts/lint-proximity.mjs +181 -0
- package/scripts/lint-slop.mjs +1 -1
- package/scripts/lint-spacing-scale.mjs +78 -0
- package/scripts/lint-target-size.cjs +132 -0
- package/scripts/lint-token-primitives.mjs +307 -0
- package/scripts/size-audit.cjs +2 -2
- package/scripts/ux-tells.mjs +8 -6
- package/scripts/wcag-audit.cjs +25 -4
- package/src/api/layers/file.ts +2 -0
- package/src/api/site-auth.ts +14 -2
- package/src/app/preview/components/page.tsx +94 -14
- package/src/app/preview/sticker-sheet/page.tsx +329 -0
- package/src/app/preview/sticker-sheet/specimens.tsx +296 -0
- package/src/app/shell.tsx +4 -3
- package/src/components/Foundations/Colors.stories.tsx +119 -8
- package/src/components/home-tab.tsx +6 -1
- package/src/components/onboarding-wizard.tsx +1 -1
- package/src/components/ui/avatar.tsx +4 -0
- package/src/components/ui/chart.tsx +134 -42
- package/src/components/ui/checkbox-group.tsx +1 -1
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +1 -0
- package/src/components/ui/command.tsx +1 -1
- package/src/components/ui/date-picker.tsx +2 -0
- package/src/components/ui/date-range-picker.tsx +4 -0
- package/src/components/ui/file-upload.tsx +21 -2
- package/src/components/ui/heatmap.tsx +3 -1
- package/src/components/ui/input-group.tsx +5 -2
- package/src/components/ui/multi-select.tsx +1 -0
- package/src/components/ui/radio-group.tsx +2 -2
- package/src/components/ui/sparkline.tsx +33 -4
- package/src/components/ui/spinner.tsx +23 -4
- package/src/components/ui/table.tsx +9 -0
- package/src/components/ui/week-picker.tsx +0 -12
- package/src/data/component-added.json +8 -0
- package/src/data/docs-index.ts +22 -1
- package/src/data/history.json +161 -161
- package/src/data/sticker-sheet.json +9244 -0
- package/src/docs-trace-globs.json +1 -0
- package/src/lib/chart-motion.ts +41 -0
- package/src/lib/get-icon-color.ts +1 -1
- package/src/stories/Accordion.stories.tsx +7 -0
- package/src/stories/ActionBar.stories.tsx +5 -0
- package/src/stories/Affix.stories.tsx +4 -0
- package/src/stories/AiBadge.stories.tsx +9 -7
- package/src/stories/Alert.stories.tsx +13 -0
- package/src/stories/AlertDialog.stories.tsx +4 -0
- package/src/stories/Anchor.stories.tsx +5 -0
- package/src/stories/AngleSlider.stories.tsx +6 -3
- package/src/stories/AspectRatio.stories.tsx +4 -0
- package/src/stories/Autocomplete.stories.tsx +6 -0
- package/src/stories/Avatar.stories.tsx +10 -0
- package/src/stories/Badge.stories.tsx +14 -6
- package/src/stories/Blockquote.stories.tsx +6 -0
- package/src/stories/BottomNavigation.stories.tsx +4 -0
- package/src/stories/Breadcrumb.stories.tsx +3 -0
- package/src/stories/Burger.stories.tsx +1 -0
- package/src/stories/Button.stories.tsx +24 -0
- package/src/stories/ButtonGroup.stories.tsx +9 -0
- package/src/stories/Calendar.stories.tsx +3 -0
- package/src/stories/Card.stories.tsx +4 -0
- package/src/stories/Carousel.stories.tsx +6 -0
- package/src/stories/Cascader.stories.tsx +4 -0
- package/src/stories/Chart.stories.tsx +46 -1
- package/src/stories/ChatBubble.stories.tsx +8 -2
- package/src/stories/ChatMarker.stories.tsx +1 -0
- package/src/stories/Checkbox.stories.tsx +40 -0
- package/src/stories/CheckboxCard.stories.tsx +8 -0
- package/src/stories/CheckboxGroup.stories.tsx +19 -0
- package/src/stories/Chip.stories.tsx +10 -19
- package/src/stories/CircularProgress.stories.tsx +13 -27
- package/src/stories/Clipboard.stories.tsx +6 -0
- package/src/stories/CloseButton.stories.tsx +6 -4
- package/src/stories/Code.stories.tsx +8 -1
- package/src/stories/Collapsible.stories.tsx +2 -0
- package/src/stories/ColorPicker.stories.tsx +6 -0
- package/src/stories/ColorSwatch.stories.tsx +1 -0
- package/src/stories/Combobox.stories.tsx +9 -0
- package/src/stories/Command.stories.tsx +2 -0
- package/src/stories/Container.stories.tsx +8 -0
- package/src/stories/ContextMenu.stories.tsx +9 -0
- package/src/stories/CopyButton.stories.tsx +12 -36
- package/src/stories/DataList.stories.tsx +8 -0
- package/src/stories/DataTable.stories.tsx +9 -0
- package/src/stories/DateField.stories.tsx +7 -0
- package/src/stories/DatePicker.stories.tsx +34 -0
- package/src/stories/DateRangePicker.stories.tsx +32 -0
- package/src/stories/Dialog.stories.tsx +8 -0
- package/src/stories/Drawer.stories.tsx +6 -0
- package/src/stories/DropdownMenu.stories.tsx +2 -0
- package/src/stories/Editable.stories.tsx +10 -0
- package/src/stories/EmptyState.stories.tsx +9 -0
- package/src/stories/Field.stories.tsx +7 -0
- package/src/stories/Fieldset.stories.tsx +8 -0
- package/src/stories/FileButton.stories.tsx +4 -0
- package/src/stories/FileUpload.stories.tsx +16 -17
- package/src/stories/FloatLabel.stories.tsx +3 -8
- package/src/stories/FloatingActionButton.stories.tsx +10 -0
- package/src/stories/FloatingIndicator.stories.tsx +4 -0
- package/src/stories/FloatingPanel.stories.tsx +6 -0
- package/src/stories/FocusTrap.stories.tsx +5 -0
- package/src/stories/FormatByte.stories.tsx +6 -0
- package/src/stories/FormatDate.stories.tsx +8 -0
- package/src/stories/FormatNumber.stories.tsx +9 -0
- package/src/stories/Heatmap.stories.tsx +11 -0
- package/src/stories/Highlight.stories.tsx +6 -0
- package/src/stories/HoverCard.stories.tsx +4 -0
- package/src/stories/Image.stories.tsx +9 -0
- package/src/stories/Indicator.stories.tsx +19 -0
- package/src/stories/Input.stories.tsx +7 -0
- package/src/stories/InputClearButton.stories.tsx +3 -0
- package/src/stories/InputGroup.stories.tsx +40 -0
- package/src/stories/Kbd.stories.tsx +7 -1
- package/src/stories/KeyboardShortcut.stories.tsx +2 -0
- package/src/stories/Label.stories.tsx +2 -0
- package/src/stories/Link.stories.tsx +9 -0
- package/src/stories/List.stories.tsx +8 -0
- package/src/stories/Listbox.stories.tsx +1 -0
- package/src/stories/LoadingDots.stories.tsx +5 -3
- package/src/stories/LoadingOverlay.stories.tsx +5 -1
- package/src/stories/Mark.stories.tsx +5 -0
- package/src/stories/Marquee.stories.tsx +4 -0
- package/src/stories/Masonry.stories.tsx +5 -0
- package/src/stories/Menubar.stories.tsx +3 -0
- package/src/stories/Meter.stories.tsx +11 -17
- package/src/stories/MonthPicker.stories.tsx +5 -1
- package/src/stories/MotionToggle.stories.tsx +1 -0
- package/src/stories/MultiSelect.stories.tsx +9 -0
- package/src/stories/NativeSelect.stories.tsx +1 -0
- package/src/stories/NavLink.stories.tsx +7 -0
- package/src/stories/NavigationMenu.stories.tsx +5 -0
- package/src/stories/NavigationRail.stories.tsx +10 -0
- package/src/stories/Notification.stories.tsx +13 -34
- package/src/stories/NumberInput.stories.tsx +8 -1
- package/src/stories/Overlay.stories.tsx +5 -1
- package/src/stories/Pagination.stories.tsx +8 -0
- package/src/stories/PasswordInput.stories.tsx +2 -0
- package/src/stories/PinInput.stories.tsx +9 -2
- package/src/stories/Popover.stories.tsx +2 -0
- package/src/stories/Progress.stories.tsx +6 -1
- package/src/stories/Prose.stories.tsx +8 -0
- package/src/stories/QrCode.stories.tsx +2 -0
- package/src/stories/Questionnaire.stories.tsx +7 -0
- package/src/stories/RadioGroup.stories.tsx +40 -0
- package/src/stories/RatingGroup.stories.tsx +8 -4
- package/src/stories/Resizable.stories.tsx +4 -2
- package/src/stories/Result.stories.tsx +3 -0
- package/src/stories/Reveal.stories.tsx +2 -0
- package/src/stories/RollingNumber.stories.tsx +5 -0
- package/src/stories/ScrollArea.stories.tsx +3 -1
- package/src/stories/SearchInput.stories.tsx +8 -6
- package/src/stories/SegmentedControl.stories.tsx +11 -0
- package/src/stories/Select.stories.tsx +7 -0
- package/src/stories/Separator.stories.tsx +6 -0
- package/src/stories/Sheet.stories.tsx +5 -0
- package/src/stories/Sidebar.stories.tsx +40 -1
- package/src/stories/SimpleGrid.stories.tsx +5 -0
- package/src/stories/Skeleton.stories.tsx +8 -0
- package/src/stories/SkeletonTable.stories.tsx +6 -5
- package/src/stories/SkipLink.stories.tsx +3 -0
- package/src/stories/Slider.stories.tsx +2 -1
- package/src/stories/Sonner.stories.tsx +7 -0
- package/src/stories/Sparkline.stories.tsx +14 -1
- package/src/stories/Spinner.stories.tsx +20 -10
- package/src/stories/Spoiler.stories.tsx +5 -0
- package/src/stories/Squircle.stories.tsx +7 -0
- package/src/stories/Stack.stories.tsx +7 -0
- package/src/stories/StatusBadge.stories.tsx +12 -6
- package/src/stories/Stepper.stories.tsx +5 -0
- package/src/stories/Switch.stories.tsx +4 -0
- package/src/stories/Table.stories.tsx +10 -1
- package/src/stories/Tabs.stories.tsx +8 -0
- package/src/stories/Tag.stories.tsx +13 -5
- package/src/stories/TagsInput.stories.tsx +13 -0
- package/src/stories/Text.stories.tsx +12 -0
- package/src/stories/Textarea.stories.tsx +9 -0
- package/src/stories/ThemeIcon.stories.tsx +6 -3
- package/src/stories/TimePicker.stories.tsx +2 -0
- package/src/stories/Timeline.stories.tsx +12 -0
- package/src/stories/Timer.stories.tsx +4 -0
- package/src/stories/Toggle.stories.tsx +7 -5
- package/src/stories/ToggleGroup.stories.tsx +5 -0
- package/src/stories/ToggleTip.stories.tsx +4 -0
- package/src/stories/Toolbar.stories.tsx +6 -0
- package/src/stories/Tooltip.stories.tsx +3 -0
- package/src/stories/Tour.stories.tsx +3 -0
- package/src/stories/TransferList.stories.tsx +3 -0
- package/src/stories/TreeSelect.stories.tsx +4 -0
- package/src/stories/TreeView.stories.tsx +5 -0
- package/src/stories/TypingIndicator.stories.tsx +4 -0
- package/src/stories/VisuallyHidden.stories.tsx +3 -0
- package/src/stories/Watermark.stories.tsx +6 -0
- package/src/stories/WeekPicker.stories.tsx +4 -1
- package/src/stories/WordRotate.stories.tsx +5 -0
- package/src/stories/YearPicker.stories.tsx +5 -11
- package/src/styles.css +50 -2
- package/src/tokens.json +4 -4
- package/LICENSE +0 -21
|
@@ -24,6 +24,7 @@ type Story = StoryObj<typeof meta>;
|
|
|
24
24
|
// verified by eye here; this note is the regression guard. Do not remove the
|
|
25
25
|
// `before:*` hit-area utilities without a replacement that keeps the target 44px.
|
|
26
26
|
export const Default: Story = {
|
|
27
|
+
parameters: { controls: { disable: true } },
|
|
27
28
|
render: () => (<div className="flex items-center gap-2">
|
|
28
29
|
<Checkbox id="terms" defaultChecked />
|
|
29
30
|
<Label htmlFor="terms">I agree to the terms</Label>
|
|
@@ -35,6 +36,7 @@ export const Default: Story = {
|
|
|
35
36
|
// aria-checked="mixed" Radix announces). Regression guard for the 2026-07-11
|
|
36
37
|
// CheckboxGroup build's checkbox.tsx indicator fix.
|
|
37
38
|
export const Indeterminate: Story = {
|
|
39
|
+
parameters: { controls: { disable: true } },
|
|
38
40
|
render: () => (
|
|
39
41
|
<div className="flex items-center gap-2">
|
|
40
42
|
<Checkbox id="indeterminate" checked="indeterminate" />
|
|
@@ -56,6 +58,7 @@ export const Disabled: Story = {
|
|
|
56
58
|
* Hit area is 44px in every size (WCAG 2.2 SC 2.5.5 AAA pointer target).
|
|
57
59
|
*/
|
|
58
60
|
export const Size_Sm: Story = {
|
|
61
|
+
parameters: { controls: { disable: true } },
|
|
59
62
|
render: () => (
|
|
60
63
|
<div className="flex items-center gap-2">
|
|
61
64
|
<Checkbox id="size-sm" size="sm" defaultChecked />
|
|
@@ -65,6 +68,7 @@ export const Size_Sm: Story = {
|
|
|
65
68
|
};
|
|
66
69
|
|
|
67
70
|
export const Size_Default: Story = {
|
|
71
|
+
parameters: { controls: { disable: true } },
|
|
68
72
|
render: () => (
|
|
69
73
|
<div className="flex items-center gap-2">
|
|
70
74
|
<Checkbox id="size-default" defaultChecked />
|
|
@@ -74,6 +78,7 @@ export const Size_Default: Story = {
|
|
|
74
78
|
};
|
|
75
79
|
|
|
76
80
|
export const Size_Lg: Story = {
|
|
81
|
+
parameters: { controls: { disable: true } },
|
|
77
82
|
render: () => (
|
|
78
83
|
<div className="space-y-3">
|
|
79
84
|
<div className="flex items-center gap-3">
|
|
@@ -89,6 +94,7 @@ export const Size_Lg: Story = {
|
|
|
89
94
|
};
|
|
90
95
|
|
|
91
96
|
export const Sizes: Story = {
|
|
97
|
+
parameters: { controls: { disable: true } },
|
|
92
98
|
render: () => (
|
|
93
99
|
<div className="space-y-3">
|
|
94
100
|
<div className="flex items-center gap-2">
|
|
@@ -108,6 +114,7 @@ export const Sizes: Story = {
|
|
|
108
114
|
};
|
|
109
115
|
|
|
110
116
|
export const RealisticUse: Story = {
|
|
117
|
+
parameters: { controls: { disable: true } },
|
|
111
118
|
render: () => (
|
|
112
119
|
<div className="space-y-4">
|
|
113
120
|
<div className="flex items-center gap-2">
|
|
@@ -133,3 +140,36 @@ export const RealisticUse: Story = {
|
|
|
133
140
|
),
|
|
134
141
|
};
|
|
135
142
|
|
|
143
|
+
|
|
144
|
+
// Regression story for the unchecked box painting solid white on a dark
|
|
145
|
+
// surface (it was hard-coded bg-white). The `dark` class scopes the dark token
|
|
146
|
+
// set to this wrapper, so it renders the same way in light-mode Storybook.
|
|
147
|
+
export const OnDarkSurface: Story = {
|
|
148
|
+
parameters: { controls: { disable: true } },
|
|
149
|
+
render: () => (
|
|
150
|
+
<div className="dark rounded-lg bg-background p-6 text-foreground">
|
|
151
|
+
<div className="flex flex-col gap-3">
|
|
152
|
+
<div className="flex items-center gap-2">
|
|
153
|
+
<Checkbox id="dark-unchecked" />
|
|
154
|
+
<Label htmlFor="dark-unchecked">Unchecked</Label>
|
|
155
|
+
</div>
|
|
156
|
+
<div className="flex items-center gap-2">
|
|
157
|
+
<Checkbox id="dark-checked" defaultChecked />
|
|
158
|
+
<Label htmlFor="dark-checked">Checked</Label>
|
|
159
|
+
</div>
|
|
160
|
+
<div className="flex items-center gap-2">
|
|
161
|
+
<Checkbox id="dark-indeterminate" checked="indeterminate" />
|
|
162
|
+
<Label htmlFor="dark-indeterminate">Indeterminate</Label>
|
|
163
|
+
</div>
|
|
164
|
+
<div className="flex items-center gap-2">
|
|
165
|
+
<Checkbox id="dark-disabled" disabled />
|
|
166
|
+
<Label htmlFor="dark-disabled">Disabled</Label>
|
|
167
|
+
</div>
|
|
168
|
+
<div className="flex items-center gap-2">
|
|
169
|
+
<Checkbox id="dark-invalid" aria-invalid />
|
|
170
|
+
<Label htmlFor="dark-invalid">Invalid</Label>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
),
|
|
175
|
+
};
|
|
@@ -23,6 +23,7 @@ export default meta;
|
|
|
23
23
|
type Story = StoryObj<typeof CheckboxCard>;
|
|
24
24
|
|
|
25
25
|
export const Default: Story = {
|
|
26
|
+
parameters: { controls: { disable: true } },
|
|
26
27
|
render: () => (
|
|
27
28
|
<CheckboxCard className="w-72">
|
|
28
29
|
<span className="text-sm font-medium text-foreground">
|
|
@@ -36,6 +37,7 @@ export const Default: Story = {
|
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
export const Checked: Story = {
|
|
40
|
+
parameters: { controls: { disable: true } },
|
|
39
41
|
render: () => (
|
|
40
42
|
<CheckboxCard checked className="w-72">
|
|
41
43
|
<span className="text-sm font-medium text-foreground">
|
|
@@ -51,6 +53,7 @@ export const Checked: Story = {
|
|
|
51
53
|
// Size stories omit explicit text-* on children so the card's inherited base
|
|
52
54
|
// font size is what renders — that is the size prop doing its job.
|
|
53
55
|
export const Size_Sm: Story = {
|
|
56
|
+
parameters: { controls: { disable: true } },
|
|
54
57
|
render: () => (
|
|
55
58
|
<CheckboxCard size="sm" className="w-72">
|
|
56
59
|
<span className="font-medium text-foreground">Orphan-token sweep</span>
|
|
@@ -62,6 +65,7 @@ export const Size_Sm: Story = {
|
|
|
62
65
|
};
|
|
63
66
|
|
|
64
67
|
export const Size_Default: Story = {
|
|
68
|
+
parameters: { controls: { disable: true } },
|
|
65
69
|
render: () => (
|
|
66
70
|
<CheckboxCard size="default" className="w-72">
|
|
67
71
|
<span className="font-medium text-foreground">Orphan-token sweep</span>
|
|
@@ -73,6 +77,7 @@ export const Size_Default: Story = {
|
|
|
73
77
|
};
|
|
74
78
|
|
|
75
79
|
export const Size_Lg: Story = {
|
|
80
|
+
parameters: { controls: { disable: true } },
|
|
76
81
|
render: () => (
|
|
77
82
|
<CheckboxCard size="lg" className="w-80">
|
|
78
83
|
<span className="font-medium text-foreground">Orphan-token sweep</span>
|
|
@@ -84,6 +89,7 @@ export const Size_Lg: Story = {
|
|
|
84
89
|
};
|
|
85
90
|
|
|
86
91
|
export const Disabled: Story = {
|
|
92
|
+
parameters: { controls: { disable: true } },
|
|
87
93
|
render: () => (
|
|
88
94
|
<CheckboxCard disabled className="w-72">
|
|
89
95
|
<span className="text-sm font-medium text-foreground">
|
|
@@ -97,6 +103,7 @@ export const Disabled: Story = {
|
|
|
97
103
|
};
|
|
98
104
|
|
|
99
105
|
export const RadioCard_Default: Story = {
|
|
106
|
+
parameters: { controls: { disable: true } },
|
|
100
107
|
render: () => (
|
|
101
108
|
<RadioCard name="plan-single" value="pro" className="w-72">
|
|
102
109
|
<span className="text-sm font-medium text-foreground">Pro</span>
|
|
@@ -108,6 +115,7 @@ export const RadioCard_Default: Story = {
|
|
|
108
115
|
};
|
|
109
116
|
|
|
110
117
|
export const RadioCard_Checked: Story = {
|
|
118
|
+
parameters: { controls: { disable: true } },
|
|
111
119
|
render: () => (
|
|
112
120
|
<RadioCard checked name="plan-single-checked" value="pro" className="w-72">
|
|
113
121
|
<span className="text-sm font-medium text-foreground">Pro</span>
|
|
@@ -44,6 +44,7 @@ const itemRow = (
|
|
|
44
44
|
);
|
|
45
45
|
|
|
46
46
|
export const Default: Story = {
|
|
47
|
+
parameters: { controls: { disable: true } },
|
|
47
48
|
render: () => (
|
|
48
49
|
<CheckboxGroup
|
|
49
50
|
aria-label="Notification preferences"
|
|
@@ -58,6 +59,7 @@ export const Default: Story = {
|
|
|
58
59
|
};
|
|
59
60
|
|
|
60
61
|
export const Disabled: Story = {
|
|
62
|
+
parameters: { controls: { disable: true } },
|
|
61
63
|
render: () => (
|
|
62
64
|
<div className="flex w-72 flex-col gap-6">
|
|
63
65
|
<div className="flex flex-col gap-2">
|
|
@@ -140,6 +142,23 @@ export const Controlled: Story = {
|
|
|
140
142
|
},
|
|
141
143
|
};
|
|
142
144
|
|
|
145
|
+
// A label wider than the box must truncate inside the group, not widen it.
|
|
146
|
+
export const LongLabelInNarrowBox: Story = {
|
|
147
|
+
parameters: { controls: { disable: true } },
|
|
148
|
+
render: () => (
|
|
149
|
+
<div className="w-[240px] rounded-md border p-3">
|
|
150
|
+
<CheckboxGroup aria-label="Notify">
|
|
151
|
+
<div className="flex min-w-0 items-center gap-3">
|
|
152
|
+
<CheckboxGroupItem value="weekly-digest" id="long-1" />
|
|
153
|
+
<Label htmlFor="long-1" className="min-w-0 truncate" title="Send me a weekly digest of every change to the finance and procurement workspace">
|
|
154
|
+
Send me a weekly digest of every change to the finance and procurement workspace
|
|
155
|
+
</Label>
|
|
156
|
+
</div>
|
|
157
|
+
</CheckboxGroup>
|
|
158
|
+
</div>
|
|
159
|
+
),
|
|
160
|
+
};
|
|
161
|
+
|
|
143
162
|
export const RealisticUse: Story = {
|
|
144
163
|
render: function RealisticUseStory() {
|
|
145
164
|
const [value, setValue] = React.useState<string[]>([
|
|
@@ -27,14 +27,15 @@ export default meta;
|
|
|
27
27
|
type Story = StoryObj<typeof Chip>;
|
|
28
28
|
|
|
29
29
|
export const Default: Story = {
|
|
30
|
-
|
|
30
|
+
args: { children: "design tokens" },
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export const Selected: Story = {
|
|
34
|
-
|
|
34
|
+
args: { defaultSelected: true, children: "design tokens" },
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
export const Variant_Default: Story = {
|
|
38
|
+
parameters: { controls: { disable: true } },
|
|
38
39
|
render: () => (
|
|
39
40
|
<div className="flex flex-wrap gap-2">
|
|
40
41
|
<Chip variant="default">a11y contract</Chip>
|
|
@@ -46,6 +47,7 @@ export const Variant_Default: Story = {
|
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
export const Variant_Outline: Story = {
|
|
50
|
+
parameters: { controls: { disable: true } },
|
|
49
51
|
render: () => (
|
|
50
52
|
<div className="flex flex-wrap gap-2">
|
|
51
53
|
<Chip variant="outline">visual regression</Chip>
|
|
@@ -57,26 +59,19 @@ export const Variant_Outline: Story = {
|
|
|
57
59
|
};
|
|
58
60
|
|
|
59
61
|
export const Size_Sm: Story = {
|
|
60
|
-
|
|
61
|
-
<Chip size="sm" defaultSelected>
|
|
62
|
-
token drift
|
|
63
|
-
</Chip>
|
|
64
|
-
),
|
|
62
|
+
args: { size: "sm", defaultSelected: true, children: "token drift" },
|
|
65
63
|
};
|
|
66
64
|
|
|
67
65
|
export const Size_Default: Story = {
|
|
68
|
-
|
|
66
|
+
args: { defaultSelected: true, children: "token drift" },
|
|
69
67
|
};
|
|
70
68
|
|
|
71
69
|
export const Size_Lg: Story = {
|
|
72
|
-
|
|
73
|
-
<Chip size="lg" defaultSelected>
|
|
74
|
-
token drift
|
|
75
|
-
</Chip>
|
|
76
|
-
),
|
|
70
|
+
args: { size: "lg", defaultSelected: true, children: "token drift" },
|
|
77
71
|
};
|
|
78
72
|
|
|
79
73
|
export const WithIcon: Story = {
|
|
74
|
+
parameters: { controls: { disable: true } },
|
|
80
75
|
render: () => (
|
|
81
76
|
<div className="flex flex-wrap gap-2">
|
|
82
77
|
<Chip icon={<Palette strokeWidth={1.5} />}>design tokens</Chip>
|
|
@@ -88,15 +83,11 @@ export const WithIcon: Story = {
|
|
|
88
83
|
};
|
|
89
84
|
|
|
90
85
|
export const Disabled: Story = {
|
|
91
|
-
|
|
86
|
+
args: { disabled: true, children: "forced colors" },
|
|
92
87
|
};
|
|
93
88
|
|
|
94
89
|
export const DisabledSelected: Story = {
|
|
95
|
-
|
|
96
|
-
<Chip disabled defaultSelected>
|
|
97
|
-
forced colors
|
|
98
|
-
</Chip>
|
|
99
|
-
),
|
|
90
|
+
args: { disabled: true, defaultSelected: true, children: "forced colors" },
|
|
100
91
|
};
|
|
101
92
|
|
|
102
93
|
export const Controlled: Story = {
|
|
@@ -19,63 +19,46 @@ export default meta
|
|
|
19
19
|
type Story = StoryObj<typeof CircularProgress>
|
|
20
20
|
|
|
21
21
|
export const Default: Story = {
|
|
22
|
-
|
|
23
|
-
<CircularProgress value={65} label="Upload progress" />
|
|
24
|
-
),
|
|
22
|
+
args: { value: 65, label: "Upload progress" },
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
export const Variant_Muted: Story = {
|
|
28
|
-
|
|
29
|
-
<CircularProgress value={40} variant="muted" label="Background task" />
|
|
30
|
-
),
|
|
26
|
+
args: { value: 40, variant: "muted", label: "Background task" },
|
|
31
27
|
}
|
|
32
28
|
|
|
33
29
|
// success/warning now paint the real oklch token: the class was
|
|
34
30
|
// text-[hsl(var(--success))] — hsl() wrapping an oklch value is invalid CSS and
|
|
35
31
|
// silently fell back — fixed to text-[var(--success)] (2026-07-24 paydown).
|
|
36
32
|
export const Variant_Success: Story = {
|
|
37
|
-
|
|
38
|
-
<CircularProgress value={100} variant="success" label="Complete" />
|
|
39
|
-
),
|
|
33
|
+
args: { value: 100, variant: "success", label: "Complete" },
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
export const Variant_Warning: Story = {
|
|
43
|
-
|
|
44
|
-
<CircularProgress value={55} variant="warning" label="Warning level" />
|
|
45
|
-
),
|
|
37
|
+
args: { value: 55, variant: "warning", label: "Warning level" },
|
|
46
38
|
}
|
|
47
39
|
|
|
48
40
|
export const Variant_Destructive: Story = {
|
|
49
|
-
|
|
50
|
-
<CircularProgress value={20} variant="destructive" label="Critical usage" />
|
|
51
|
-
),
|
|
41
|
+
args: { value: 20, variant: "destructive", label: "Critical usage" },
|
|
52
42
|
}
|
|
53
43
|
|
|
54
44
|
export const Size_Sm: Story = {
|
|
55
|
-
|
|
56
|
-
<CircularProgress value={65} size="sm" label="Small progress" />
|
|
57
|
-
),
|
|
45
|
+
args: { value: 65, size: "sm", label: "Small progress" },
|
|
58
46
|
}
|
|
59
47
|
|
|
60
48
|
export const Size_Default: Story = {
|
|
61
|
-
|
|
62
|
-
<CircularProgress value={65} size="default" label="Default progress" />
|
|
63
|
-
),
|
|
49
|
+
args: { value: 65, size: "default", label: "Default progress" },
|
|
64
50
|
}
|
|
65
51
|
|
|
66
52
|
export const Size_Lg: Story = {
|
|
67
|
-
|
|
68
|
-
<CircularProgress value={65} size="lg" label="Large progress" />
|
|
69
|
-
),
|
|
53
|
+
args: { value: 65, size: "lg", label: "Large progress" },
|
|
70
54
|
}
|
|
71
55
|
|
|
72
56
|
export const Indeterminate: Story = {
|
|
73
|
-
|
|
74
|
-
<CircularProgress label="Loading…" />
|
|
75
|
-
),
|
|
57
|
+
args: { label: "Loading…" },
|
|
76
58
|
}
|
|
77
59
|
|
|
78
60
|
export const WithCenterLabel: Story = {
|
|
61
|
+
parameters: { controls: { disable: true } },
|
|
79
62
|
render: () => (
|
|
80
63
|
<CircularProgress value={72} size="lg" label="Storage usage: 72%">
|
|
81
64
|
<span className="text-xs font-semibold">72%</span>
|
|
@@ -92,6 +75,7 @@ export const WithCenterLabel: Story = {
|
|
|
92
75
|
*/
|
|
93
76
|
export const AllSizes: Story = {
|
|
94
77
|
tags: ["!manifest"],
|
|
78
|
+
parameters: { controls: { disable: true } },
|
|
95
79
|
render: () => (
|
|
96
80
|
<div className="flex items-center gap-6">
|
|
97
81
|
<CircularProgress value={65} size="sm" label="sm" />
|
|
@@ -110,6 +94,7 @@ export const AllSizes: Story = {
|
|
|
110
94
|
*/
|
|
111
95
|
export const AllVariants: Story = {
|
|
112
96
|
tags: ["!manifest"],
|
|
97
|
+
parameters: { controls: { disable: true } },
|
|
113
98
|
render: () => (
|
|
114
99
|
<div className="flex items-center gap-6">
|
|
115
100
|
<CircularProgress value={65} variant="default" label="default" />
|
|
@@ -122,6 +107,7 @@ export const AllVariants: Story = {
|
|
|
122
107
|
}
|
|
123
108
|
|
|
124
109
|
export const RealisticUse: Story = {
|
|
110
|
+
parameters: { controls: { disable: true } },
|
|
125
111
|
render: () => {
|
|
126
112
|
const [value, setValue] = React.useState(0)
|
|
127
113
|
React.useEffect(() => {
|
|
@@ -34,6 +34,7 @@ export default meta
|
|
|
34
34
|
type Story = StoryObj<typeof Clipboard>
|
|
35
35
|
|
|
36
36
|
export const Default: Story = {
|
|
37
|
+
parameters: { controls: { disable: true } },
|
|
37
38
|
render: () => (
|
|
38
39
|
<div className="w-96">
|
|
39
40
|
<Clipboard value="pk_live_5K8mN2qR7tLwYjAb4cDeFgHi">
|
|
@@ -47,6 +48,7 @@ export const Default: Story = {
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export const WithLabel: Story = {
|
|
51
|
+
parameters: { controls: { disable: true } },
|
|
50
52
|
render: () => (
|
|
51
53
|
<div className="w-96">
|
|
52
54
|
<Clipboard value="https://design.bads.com/share/tokens-v2-proposal">
|
|
@@ -61,6 +63,7 @@ export const WithLabel: Story = {
|
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
export const LongValue: Story = {
|
|
66
|
+
parameters: { controls: { disable: true } },
|
|
64
67
|
render: () => (
|
|
65
68
|
<div className="w-80">
|
|
66
69
|
<Clipboard value="https://design.bads.com/docs/getting-started?utm_source=onboarding&utm_campaign=client-fork-2026&session=jordan.reeves">
|
|
@@ -75,6 +78,7 @@ export const LongValue: Story = {
|
|
|
75
78
|
}
|
|
76
79
|
|
|
77
80
|
export const IconTrigger: Story = {
|
|
81
|
+
parameters: { controls: { disable: true } },
|
|
78
82
|
render: () => (
|
|
79
83
|
<div className="w-96">
|
|
80
84
|
<Clipboard value="npm install @behavioral-agentic-design-system/core">
|
|
@@ -89,6 +93,7 @@ export const IconTrigger: Story = {
|
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
export const Disabled: Story = {
|
|
96
|
+
parameters: { controls: { disable: true } },
|
|
92
97
|
render: () => (
|
|
93
98
|
<div className="w-96">
|
|
94
99
|
<Clipboard value="pk_live_5K8mN2qR7tLwYjAb4cDeFgHi" disabled>
|
|
@@ -103,6 +108,7 @@ export const Disabled: Story = {
|
|
|
103
108
|
}
|
|
104
109
|
|
|
105
110
|
export const RealisticUse: Story = {
|
|
111
|
+
parameters: { controls: { disable: true } },
|
|
106
112
|
render: () => {
|
|
107
113
|
const secretKey = "sk-proj-Xk9mNpQ2vR7tLwYjAb4cDeFgHiJkLmNo" // gitleaks:allow
|
|
108
114
|
return (
|
|
@@ -13,10 +13,11 @@ const meta: Meta<typeof CloseButton> = {
|
|
|
13
13
|
export default meta;
|
|
14
14
|
|
|
15
15
|
export const Default: StoryObj = {
|
|
16
|
-
|
|
16
|
+
args: { },
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export const Sizes: StoryObj = {
|
|
20
|
+
parameters: { controls: { disable: true } },
|
|
20
21
|
render: () => (
|
|
21
22
|
<div className="flex items-center gap-3">
|
|
22
23
|
{(["icon-xs", "icon-sm", "icon", "icon-lg", "icon-xl"] as const).map(
|
|
@@ -32,18 +33,19 @@ export const Sizes: StoryObj = {
|
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
export const Variant_Outline: StoryObj = {
|
|
35
|
-
|
|
36
|
+
args: { variant: "outline" },
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
export const Variant_Secondary: StoryObj = {
|
|
39
|
-
|
|
40
|
+
args: { variant: "secondary" },
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
export const Disabled: StoryObj = {
|
|
43
|
-
|
|
44
|
+
args: { disabled: true },
|
|
44
45
|
};
|
|
45
46
|
|
|
46
47
|
export const RealisticUse: StoryObj = {
|
|
48
|
+
parameters: { controls: { disable: true } },
|
|
47
49
|
render: () => (
|
|
48
50
|
<div className="flex w-96 items-start justify-between gap-3 rounded-lg border border-border bg-card p-4">
|
|
49
51
|
<div className="min-w-0">
|
|
@@ -17,10 +17,11 @@ export default meta
|
|
|
17
17
|
type Story = StoryObj<typeof meta>
|
|
18
18
|
|
|
19
19
|
export const Default: Story = {
|
|
20
|
-
|
|
20
|
+
args: { children: "pnpm build:tokens" },
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export const Variant_Inline: Story = {
|
|
24
|
+
parameters: { controls: { disable: true } },
|
|
24
25
|
render: () => (
|
|
25
26
|
<p className="text-sm text-foreground leading-relaxed max-w-sm">
|
|
26
27
|
Set the primary brand color via{" "}
|
|
@@ -32,6 +33,7 @@ export const Variant_Inline: Story = {
|
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export const Variant_Block: Story = {
|
|
36
|
+
parameters: { controls: { disable: true } },
|
|
35
37
|
render: () => (
|
|
36
38
|
<div className="w-[480px]">
|
|
37
39
|
<Code variant="block">
|
|
@@ -54,6 +56,7 @@ export const Variant_Block: Story = {
|
|
|
54
56
|
// and it shows the system focus-visible ring when focused (a11y: SC 2.1.1 / 2.4.7).
|
|
55
57
|
// Scrollbar styled via native CSS: [scrollbar-width:thin] [scrollbar-color:...]
|
|
56
58
|
export const Variant_Block_Scroll: Story = {
|
|
59
|
+
parameters: { controls: { disable: true } },
|
|
57
60
|
render: () => (
|
|
58
61
|
<div className="w-[360px]">
|
|
59
62
|
<Code variant="block">
|
|
@@ -65,6 +68,7 @@ pnpm --filter @behavioral-agentic-design-system/core build:tokens && pnpm a11y`}
|
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
export const Size_Sm: Story = {
|
|
71
|
+
parameters: { controls: { disable: true } },
|
|
68
72
|
render: () => (
|
|
69
73
|
<div className="flex flex-col gap-3">
|
|
70
74
|
<Code size="sm">pnpm a11y</Code>
|
|
@@ -78,6 +82,7 @@ export const Size_Sm: Story = {
|
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
export const Size_Default: Story = {
|
|
85
|
+
parameters: { controls: { disable: true } },
|
|
81
86
|
render: () => (
|
|
82
87
|
<div className="flex flex-col gap-3">
|
|
83
88
|
<Code size="default">pnpm wcag:audit</Code>
|
|
@@ -91,6 +96,7 @@ export const Size_Default: Story = {
|
|
|
91
96
|
}
|
|
92
97
|
|
|
93
98
|
export const Size_Lg: Story = {
|
|
99
|
+
parameters: { controls: { disable: true } },
|
|
94
100
|
render: () => (
|
|
95
101
|
<div className="flex flex-col gap-3">
|
|
96
102
|
<Code size="lg">design-tokens</Code>
|
|
@@ -104,6 +110,7 @@ export const Size_Lg: Story = {
|
|
|
104
110
|
}
|
|
105
111
|
|
|
106
112
|
export const RealisticUse: Story = {
|
|
113
|
+
parameters: { controls: { disable: true } },
|
|
107
114
|
render: () => (
|
|
108
115
|
<div className="max-w-md space-y-4 text-sm text-foreground leading-relaxed">
|
|
109
116
|
<div className="space-y-1">
|
|
@@ -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: () => (<Collapsible className="w-[320px] space-y-2">
|
|
17
18
|
<CollapsibleTrigger asChild><Button variant="outline" size="sm">Toggle details</Button></CollapsibleTrigger>
|
|
18
19
|
<CollapsibleContent className="rounded-md border p-3 text-sm">Hidden detail content.</CollapsibleContent>
|
|
@@ -20,6 +21,7 @@ export const Default: Story = {
|
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
export const RealisticUse: Story = {
|
|
24
|
+
parameters: { controls: { disable: true } },
|
|
23
25
|
render: () => (<Collapsible className="w-[320px] space-y-2">
|
|
24
26
|
<CollapsibleTrigger asChild><Button variant="outline" size="sm">Toggle details</Button></CollapsibleTrigger>
|
|
25
27
|
<CollapsibleContent className="rounded-md border p-3 text-sm">Hidden detail content.</CollapsibleContent>
|
|
@@ -27,6 +27,7 @@ export default meta;
|
|
|
27
27
|
type Story = StoryObj<typeof ColorPicker>;
|
|
28
28
|
|
|
29
29
|
export const Default: Story = {
|
|
30
|
+
parameters: { controls: { disable: true } },
|
|
30
31
|
render: () => (
|
|
31
32
|
<ColorPicker
|
|
32
33
|
swatches={BRAND_SWATCHES}
|
|
@@ -36,6 +37,7 @@ export const Default: Story = {
|
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
export const WithCustomInput: Story = {
|
|
40
|
+
parameters: { controls: { disable: true } },
|
|
39
41
|
render: () => (
|
|
40
42
|
<div className="space-y-3">
|
|
41
43
|
<ColorPicker
|
|
@@ -50,6 +52,7 @@ export const WithCustomInput: Story = {
|
|
|
50
52
|
// Selection is shown by an offset ring (radio convention), not a checkmark —
|
|
51
53
|
// a check reads as a multi-select checkbox, but swatches are single-select.
|
|
52
54
|
export const Selected: Story = {
|
|
55
|
+
parameters: { controls: { disable: true } },
|
|
53
56
|
render: () => (
|
|
54
57
|
<ColorPicker
|
|
55
58
|
swatches={BRAND_SWATCHES}
|
|
@@ -122,6 +125,7 @@ export const AddOnlyWheel: Story = {
|
|
|
122
125
|
};
|
|
123
126
|
|
|
124
127
|
export const PastelPalette: Story = {
|
|
128
|
+
parameters: { controls: { disable: true } },
|
|
125
129
|
render: () => (
|
|
126
130
|
<ColorPicker
|
|
127
131
|
swatches={PASTEL_SWATCHES}
|
|
@@ -131,6 +135,7 @@ export const PastelPalette: Story = {
|
|
|
131
135
|
};
|
|
132
136
|
|
|
133
137
|
export const CustomInputOnly: Story = {
|
|
138
|
+
parameters: { controls: { disable: true } },
|
|
134
139
|
render: () => (
|
|
135
140
|
<ColorPicker
|
|
136
141
|
swatches={[]}
|
|
@@ -142,6 +147,7 @@ export const CustomInputOnly: Story = {
|
|
|
142
147
|
};
|
|
143
148
|
|
|
144
149
|
export const Disabled: Story = {
|
|
150
|
+
parameters: { controls: { disable: true } },
|
|
145
151
|
render: () => (
|
|
146
152
|
<ColorPicker
|
|
147
153
|
swatches={BRAND_SWATCHES}
|
|
@@ -55,6 +55,7 @@ export const Size_Lg: Story = {
|
|
|
55
55
|
* contrast against the dark selected swatch.
|
|
56
56
|
*/
|
|
57
57
|
export const RealisticUse: Story = {
|
|
58
|
+
parameters: { controls: { disable: true } },
|
|
58
59
|
render: () => (
|
|
59
60
|
<div className="flex flex-col gap-6">
|
|
60
61
|
<div className="flex items-center gap-2">
|
|
@@ -34,6 +34,7 @@ const frameworks = [
|
|
|
34
34
|
];
|
|
35
35
|
|
|
36
36
|
export const Default: Story = {
|
|
37
|
+
parameters: { controls: { disable: true } },
|
|
37
38
|
render: () => {
|
|
38
39
|
const [value, setValue] = React.useState("");
|
|
39
40
|
return (
|
|
@@ -49,6 +50,7 @@ export const Default: Story = {
|
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
export const WithValue: Story = {
|
|
53
|
+
parameters: { controls: { disable: true } },
|
|
52
54
|
render: () => {
|
|
53
55
|
const [value, setValue] = React.useState("next");
|
|
54
56
|
return (
|
|
@@ -64,6 +66,7 @@ export const WithValue: Story = {
|
|
|
64
66
|
};
|
|
65
67
|
|
|
66
68
|
export const Disabled: Story = {
|
|
69
|
+
parameters: { controls: { disable: true } },
|
|
67
70
|
render: () => (
|
|
68
71
|
<Combobox
|
|
69
72
|
options={frameworks}
|
|
@@ -75,6 +78,7 @@ export const Disabled: Story = {
|
|
|
75
78
|
};
|
|
76
79
|
|
|
77
80
|
export const WithDisabledOptions: Story = {
|
|
81
|
+
parameters: { controls: { disable: true } },
|
|
78
82
|
render: () => {
|
|
79
83
|
const [value, setValue] = React.useState("");
|
|
80
84
|
const options = [
|
|
@@ -98,6 +102,7 @@ export const WithDisabledOptions: Story = {
|
|
|
98
102
|
|
|
99
103
|
export const Variant_Creatable: Story = {
|
|
100
104
|
name: "Variant — Creatable",
|
|
105
|
+
parameters: { controls: { disable: true } },
|
|
101
106
|
render: () => {
|
|
102
107
|
const [value, setValue] = React.useState("");
|
|
103
108
|
const [options, setOptions] = React.useState([
|
|
@@ -140,6 +145,7 @@ export const Variant_Creatable: Story = {
|
|
|
140
145
|
|
|
141
146
|
export const Size_Sm: Story = {
|
|
142
147
|
name: "Size — sm",
|
|
148
|
+
parameters: { controls: { disable: true } },
|
|
143
149
|
render: () => {
|
|
144
150
|
const [value, setValue] = React.useState("");
|
|
145
151
|
return (
|
|
@@ -156,6 +162,7 @@ export const Size_Sm: Story = {
|
|
|
156
162
|
|
|
157
163
|
export const Size_Lg: Story = {
|
|
158
164
|
name: "Size — lg",
|
|
165
|
+
parameters: { controls: { disable: true } },
|
|
159
166
|
render: () => {
|
|
160
167
|
const [value, setValue] = React.useState("");
|
|
161
168
|
return (
|
|
@@ -172,6 +179,7 @@ export const Size_Lg: Story = {
|
|
|
172
179
|
|
|
173
180
|
export const Size_Xl: Story = {
|
|
174
181
|
name: "Size — xl (CTA floor, 44px)",
|
|
182
|
+
parameters: { controls: { disable: true } },
|
|
175
183
|
render: () => {
|
|
176
184
|
const [value, setValue] = React.useState("");
|
|
177
185
|
return (
|
|
@@ -196,6 +204,7 @@ export const RealisticUse: Story = {
|
|
|
196
204
|
</div>
|
|
197
205
|
),
|
|
198
206
|
],
|
|
207
|
+
parameters: { controls: { disable: true } },
|
|
199
208
|
render: () => {
|
|
200
209
|
const [country, setCountry] = React.useState("");
|
|
201
210
|
const [timezone, setTimezone] = React.useState("");
|
|
@@ -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: () => (<Command className="rounded-lg border w-[320px]">
|
|
16
17
|
<CommandInput placeholder="Search..." />
|
|
17
18
|
<CommandList>
|
|
@@ -26,6 +27,7 @@ export const Default: Story = {
|
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export const RealisticUse: Story = {
|
|
30
|
+
parameters: { controls: { disable: true } },
|
|
29
31
|
render: () => (<Command className="rounded-lg border w-[320px]">
|
|
30
32
|
<CommandInput placeholder="Search..." />
|
|
31
33
|
<CommandList>
|