@behavioral-agentic-design-system/core 0.45.0 → 0.48.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 +183 -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/number-field.tsx +390 -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 +12 -0
- package/src/data/docs-index.ts +22 -1
- package/src/data/history.json +162 -162
- package/src/data/sticker-sheet.json +9297 -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 +20 -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/NumberField.stories.tsx +214 -0
- 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/stories/story-groups.json +2 -1
- package/src/styles.css +50 -2
- package/src/tokens.json +4 -4
- package/LICENSE +0 -21
|
@@ -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
|
-
|
|
45
|
+
args: { variant: "default", children: "Default" },
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
export const Variant_Secondary: Story = {
|
|
48
|
-
|
|
49
|
+
args: { variant: "secondary", children: "Secondary" },
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
export const Variant_Destructive: Story = {
|
|
52
|
-
|
|
53
|
+
args: { variant: "destructive", children: "Destructive" },
|
|
53
54
|
};
|
|
54
55
|
|
|
55
56
|
export const Variant_Outline: Story = {
|
|
56
|
-
|
|
57
|
+
args: { variant: "outline", children: "Outline" },
|
|
57
58
|
};
|
|
58
59
|
|
|
59
60
|
export const Variant_Ghost: Story = {
|
|
60
|
-
|
|
61
|
+
args: { variant: "ghost", children: "Ghost" },
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
export const Variant_Link: Story = {
|
|
64
|
-
|
|
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>
|
|
@@ -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 (
|
|
@@ -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[]>([]);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
// ChartContainer's dot-
|
|
1
|
+
// ChartContainer's dot-entrance keyframe + per-series --color-* custom
|
|
2
2
|
// properties are generated per instance via a raw <style> tag scoped to a
|
|
3
3
|
// runtime [data-chart=<id>] selector — see the escape-hatch note on that
|
|
4
4
|
// <style> element in chart.tsx for why (scripts/lint-inline-styles.mjs).
|
|
5
5
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
6
|
+
import { expect, waitFor } from "storybook/test";
|
|
6
7
|
import {
|
|
7
8
|
ChartContainer,
|
|
8
9
|
ChartTooltip,
|
|
@@ -50,6 +51,7 @@ const twoSeriesConfig = {
|
|
|
50
51
|
};
|
|
51
52
|
|
|
52
53
|
export const Default: Story = {
|
|
54
|
+
parameters: { controls: { disable: true } },
|
|
53
55
|
render: () => (
|
|
54
56
|
<ChartContainer
|
|
55
57
|
config={{ desktop: { label: "Desktop", color: "var(--chart-1)" } }}
|
|
@@ -72,6 +74,7 @@ export const Default: Story = {
|
|
|
72
74
|
};
|
|
73
75
|
|
|
74
76
|
export const Variant_Line: Story = {
|
|
77
|
+
parameters: { controls: { disable: true } },
|
|
75
78
|
render: () => (
|
|
76
79
|
<ChartContainer config={twoSeriesConfig} className="h-56 w-[520px]">
|
|
77
80
|
<LineChart data={monthlyData} margin={{ top: 8, right: 16, left: 8, bottom: 0 }}>
|
|
@@ -87,6 +90,7 @@ export const Variant_Line: Story = {
|
|
|
87
90
|
};
|
|
88
91
|
|
|
89
92
|
export const Variant_Area: Story = {
|
|
93
|
+
parameters: { controls: { disable: true } },
|
|
90
94
|
render: () => (
|
|
91
95
|
<ChartContainer config={twoSeriesConfig} className="h-56 w-[520px]">
|
|
92
96
|
<AreaChart data={monthlyData} margin={{ top: 8, right: 16, left: 8, bottom: 0 }}>
|
|
@@ -111,6 +115,7 @@ export const Variant_Area: Story = {
|
|
|
111
115
|
};
|
|
112
116
|
|
|
113
117
|
export const Variant_Radar: Story = {
|
|
118
|
+
parameters: { controls: { disable: true } },
|
|
114
119
|
render: () => (
|
|
115
120
|
<ChartContainer config={twoSeriesConfig} className="h-72 w-[520px]">
|
|
116
121
|
<RadarChart
|
|
@@ -135,6 +140,7 @@ export const Variant_Radar: Story = {
|
|
|
135
140
|
};
|
|
136
141
|
|
|
137
142
|
export const Variant_WithReferenceDot: Story = {
|
|
143
|
+
parameters: { controls: { disable: true } },
|
|
138
144
|
render: () => (
|
|
139
145
|
<ChartContainer config={twoSeriesConfig} className="h-56 w-[520px]">
|
|
140
146
|
<LineChart data={monthlyData} margin={{ top: 8, right: 16, left: 8, bottom: 0 }}>
|
|
@@ -149,11 +155,49 @@ export const Variant_WithReferenceDot: Story = {
|
|
|
149
155
|
),
|
|
150
156
|
};
|
|
151
157
|
|
|
158
|
+
// Point dots wait for the stroke. Recharts mounts every dot at its final
|
|
159
|
+
// position as soon as the series mounts, but the line takes the whole draw
|
|
160
|
+
// (5 x --duration-slow) to reach them, so ChartContainer holds the series
|
|
161
|
+
// dots until the draw has finished and then fades them in over
|
|
162
|
+
// --duration-slow. The hover activeDot is never delayed, and reduced-motion
|
|
163
|
+
// users get the dots immediately with no fade.
|
|
164
|
+
export const Variant_LineWithDots: Story = {
|
|
165
|
+
parameters: { controls: { disable: true } },
|
|
166
|
+
tags: ["test"],
|
|
167
|
+
render: () => (
|
|
168
|
+
<ChartContainer config={twoSeriesConfig} className="h-56 w-[520px]">
|
|
169
|
+
<LineChart data={monthlyData} margin={{ top: 8, right: 16, left: 8, bottom: 0 }}>
|
|
170
|
+
<CartesianGrid vertical={false} />
|
|
171
|
+
<XAxis dataKey="month" tickLine={false} axisLine={false} tickMargin={8} />
|
|
172
|
+
<ChartTooltip content={<ChartTooltipContent />} />
|
|
173
|
+
<Line type="monotone" dataKey="desktop" stroke="var(--color-desktop)" strokeWidth={2} dot={{ fill: "var(--color-desktop)" }} activeDot={{ r: 5 }} />
|
|
174
|
+
<Line type="monotone" dataKey="mobile" stroke="var(--color-mobile)" strokeWidth={2} dot={{ fill: "var(--color-mobile)" }} activeDot={{ r: 5 }} />
|
|
175
|
+
</LineChart>
|
|
176
|
+
</ChartContainer>
|
|
177
|
+
),
|
|
178
|
+
play: async ({ canvasElement }) => {
|
|
179
|
+
// Every series dot is held until the line has drawn all the way in, and
|
|
180
|
+
// all six months end up visible.
|
|
181
|
+
await waitFor(() => {
|
|
182
|
+
const dots = canvasElement.querySelectorAll(".recharts-line-dots .recharts-dot");
|
|
183
|
+
expect(dots.length).toBe(monthlyData.length * 2);
|
|
184
|
+
});
|
|
185
|
+
const reduced = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
186
|
+
const dot = canvasElement.querySelector(".recharts-line-dots .recharts-dot") as Element;
|
|
187
|
+
if (!reduced) {
|
|
188
|
+
const delay = parseFloat(getComputedStyle(dot).animationDelay) * 1000;
|
|
189
|
+
expect(delay).toBeGreaterThanOrEqual(1000);
|
|
190
|
+
}
|
|
191
|
+
await waitFor(() => expect(Number(getComputedStyle(dot).opacity)).toBe(1), { timeout: 4000 });
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
|
|
152
195
|
// `animate={false}` freezes the chart at its final frame on demand. It is the
|
|
153
196
|
// same output reduced-motion users get automatically: ChartContainer reads the
|
|
154
197
|
// shared `useReducedMotion` hook (hooks/use-reduced-motion) and drops the
|
|
155
198
|
// entrance for them regardless of this prop.
|
|
156
199
|
export const Variant_NoAnimation: Story = {
|
|
200
|
+
parameters: { controls: { disable: true } },
|
|
157
201
|
render: () => (
|
|
158
202
|
<ChartContainer config={twoSeriesConfig} className="h-56 w-[520px]" animate={false}>
|
|
159
203
|
<LineChart data={monthlyData} margin={{ top: 8, right: 16, left: 8, bottom: 0 }}>
|
|
@@ -168,6 +212,7 @@ export const Variant_NoAnimation: Story = {
|
|
|
168
212
|
};
|
|
169
213
|
|
|
170
214
|
export const RealisticUse: Story = {
|
|
215
|
+
parameters: { controls: { disable: true } },
|
|
171
216
|
render: () => (
|
|
172
217
|
<ChartContainer config={twoSeriesConfig} className="h-64 w-[520px]">
|
|
173
218
|
<BarChart data={monthlyData}>
|
|
@@ -63,6 +63,7 @@ const THREAD = [
|
|
|
63
63
|
];
|
|
64
64
|
|
|
65
65
|
export const Default: Story = {
|
|
66
|
+
parameters: { controls: { disable: true } },
|
|
66
67
|
render: () => (
|
|
67
68
|
<div className="w-full max-w-md">
|
|
68
69
|
<ChatBubble position="received">
|
|
@@ -75,6 +76,7 @@ export const Default: Story = {
|
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
export const Variant_Sent: Story = {
|
|
79
|
+
parameters: { controls: { disable: true } },
|
|
78
80
|
render: () => (
|
|
79
81
|
<div className="w-full max-w-md">
|
|
80
82
|
<ChatBubble position="sent">
|
|
@@ -87,6 +89,7 @@ export const Variant_Sent: Story = {
|
|
|
87
89
|
};
|
|
88
90
|
|
|
89
91
|
export const Variant_Received: Story = {
|
|
92
|
+
parameters: { controls: { disable: true } },
|
|
90
93
|
render: () => (
|
|
91
94
|
<div className="w-full max-w-md">
|
|
92
95
|
<ChatBubble position="received">
|
|
@@ -100,7 +103,7 @@ export const Variant_Received: Story = {
|
|
|
100
103
|
};
|
|
101
104
|
|
|
102
105
|
export const Variant_Typing: Story = {
|
|
103
|
-
parameters: {
|
|
106
|
+
parameters: { controls: { disable: true },
|
|
104
107
|
docs: {
|
|
105
108
|
description: {
|
|
106
109
|
story:
|
|
@@ -119,6 +122,7 @@ export const Variant_Typing: Story = {
|
|
|
119
122
|
};
|
|
120
123
|
|
|
121
124
|
export const WithAvatar: Story = {
|
|
125
|
+
parameters: { controls: { disable: true } },
|
|
122
126
|
render: () => (
|
|
123
127
|
<div className="w-full max-w-md">
|
|
124
128
|
<ChatBubble position="received">
|
|
@@ -133,6 +137,7 @@ export const WithAvatar: Story = {
|
|
|
133
137
|
};
|
|
134
138
|
|
|
135
139
|
export const WithReadReceipt: Story = {
|
|
140
|
+
parameters: { controls: { disable: true } },
|
|
136
141
|
render: () => (
|
|
137
142
|
<div className="w-full max-w-md space-y-3">
|
|
138
143
|
{(["sent", "delivered", "read"] as const).map((status) => (
|
|
@@ -153,7 +158,7 @@ export const WithReadReceipt: Story = {
|
|
|
153
158
|
};
|
|
154
159
|
|
|
155
160
|
export const WithActions: Story = {
|
|
156
|
-
parameters: {
|
|
161
|
+
parameters: { controls: { disable: true },
|
|
157
162
|
docs: {
|
|
158
163
|
description: {
|
|
159
164
|
story:
|
|
@@ -185,6 +190,7 @@ export const WithActions: Story = {
|
|
|
185
190
|
};
|
|
186
191
|
|
|
187
192
|
export const RealisticUse: Story = {
|
|
193
|
+
parameters: { controls: { disable: true } },
|
|
188
194
|
render: () => (
|
|
189
195
|
<div
|
|
190
196
|
role="log"
|
|
@@ -40,6 +40,7 @@ export const Variant_Divider: Story = {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export const RealisticUse: Story = {
|
|
43
|
+
parameters: { controls: { disable: true } },
|
|
43
44
|
render: () => (
|
|
44
45
|
<div className="flex w-72 flex-col gap-1 rounded-lg border bg-card p-4">
|
|
45
46
|
<div className="rounded-lg bg-muted px-3 py-2 text-sm">
|