@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
|
@@ -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: () => (<Table className="w-[480px]">
|
|
16
17
|
<TableCaption>Recent invoices.</TableCaption>
|
|
17
18
|
<TableHeader>
|
|
@@ -60,30 +61,36 @@ function TeamTable({ striped, bordered, compact }: { striped?: boolean; bordered
|
|
|
60
61
|
|
|
61
62
|
/** striped: even body rows sit on bg-muted/30. Body-only — a multi-row header never stripes. Visual scanability aid, never the sole carrier of meaning. */
|
|
62
63
|
export const Striped: Story = {
|
|
64
|
+
parameters: { controls: { disable: true } },
|
|
63
65
|
render: () => <TeamTable striped />,
|
|
64
66
|
};
|
|
65
67
|
|
|
66
68
|
/** bordered: rounded outer border on the scroll container + column separators between cells. */
|
|
67
69
|
export const Bordered: Story = {
|
|
70
|
+
parameters: { controls: { disable: true } },
|
|
68
71
|
render: () => <TeamTable bordered />,
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
/** compact: h-8 header cells, py-1 body cells — dense data-only rows (~32px). CTAs inside a compact row keep their own min-h-11. */
|
|
72
75
|
export const Compact: Story = {
|
|
76
|
+
parameters: { controls: { disable: true } },
|
|
73
77
|
render: () => <TeamTable compact />,
|
|
74
78
|
};
|
|
75
79
|
|
|
76
80
|
/** The variants compose — stripes inside a bordered frame. */
|
|
77
81
|
export const StripedBordered: Story = {
|
|
82
|
+
parameters: { controls: { disable: true } },
|
|
78
83
|
render: () => <TeamTable striped bordered />,
|
|
79
84
|
};
|
|
80
85
|
|
|
81
86
|
/** Dense zebra table — the admin-list register (Mantine striped + MUI size="small" equivalent). */
|
|
82
87
|
export const CompactStriped: Story = {
|
|
88
|
+
parameters: { controls: { disable: true } },
|
|
83
89
|
render: () => <TeamTable compact striped />,
|
|
84
90
|
};
|
|
85
91
|
|
|
86
92
|
export const RealisticUse: Story = {
|
|
93
|
+
parameters: { controls: { disable: true } },
|
|
87
94
|
render: () => (<Table className="w-[480px]">
|
|
88
95
|
<TableCaption>Recent invoices.</TableCaption>
|
|
89
96
|
<TableHeader>
|
|
@@ -112,6 +119,7 @@ export const RealisticUse: Story = {
|
|
|
112
119
|
* container — not the <table> element — so the scroll boundary is correct.
|
|
113
120
|
*/
|
|
114
121
|
export const WithWrapperProps: Story = {
|
|
122
|
+
parameters: { controls: { disable: true } },
|
|
115
123
|
render: () => (
|
|
116
124
|
<Table
|
|
117
125
|
className="w-[480px]"
|
|
@@ -136,9 +144,10 @@ export const WithWrapperProps: Story = {
|
|
|
136
144
|
|
|
137
145
|
// Scrollbar styled via native CSS: [scrollbar-width:thin] [scrollbar-color:...]
|
|
138
146
|
export const WideOverflowing: Story = {
|
|
147
|
+
parameters: { controls: { disable: true } },
|
|
139
148
|
render: () => (
|
|
140
149
|
<div className="w-[380px]">
|
|
141
|
-
<Table className="min-w-[760px]">
|
|
150
|
+
<Table className="min-w-[760px]" aria-label="Component review status">
|
|
142
151
|
<TableCaption>Component review status across the registry.</TableCaption>
|
|
143
152
|
<TableHeader>
|
|
144
153
|
<TableRow>
|
|
@@ -37,6 +37,7 @@ type Story = StoryObj<typeof meta>;
|
|
|
37
37
|
// forks where --accent is a dark color (e.g. plum), rendering the pill illegibly
|
|
38
38
|
// dark. Default and RealisticUse below exercise this state.
|
|
39
39
|
export const Variant_Default: Story = {
|
|
40
|
+
parameters: { controls: { disable: true } },
|
|
40
41
|
render: () => (
|
|
41
42
|
<Tabs defaultValue="overview" className="w-[480px]">
|
|
42
43
|
<TabsList variant="default">
|
|
@@ -52,6 +53,7 @@ export const Variant_Default: Story = {
|
|
|
52
53
|
};
|
|
53
54
|
|
|
54
55
|
export const Variant_Line: Story = {
|
|
56
|
+
parameters: { controls: { disable: true } },
|
|
55
57
|
render: () => (
|
|
56
58
|
<Tabs defaultValue="overview" className="w-[480px]">
|
|
57
59
|
<TabsList variant="line">
|
|
@@ -71,6 +73,7 @@ export const Variant_Line: Story = {
|
|
|
71
73
|
// on all fork brand colors without inverting to white-on-dark. Use for filter
|
|
72
74
|
// chrome, category pickers, and tag-style navigation.
|
|
73
75
|
export const Variant_Pill: Story = {
|
|
76
|
+
parameters: { controls: { disable: true } },
|
|
74
77
|
render: () => (
|
|
75
78
|
<Tabs defaultValue="all" className="w-[480px]">
|
|
76
79
|
<TabsList variant="pill">
|
|
@@ -88,6 +91,7 @@ export const Variant_Pill: Story = {
|
|
|
88
91
|
};
|
|
89
92
|
|
|
90
93
|
export const Default: Story = {
|
|
94
|
+
parameters: { controls: { disable: true } },
|
|
91
95
|
render: () => (
|
|
92
96
|
<Tabs defaultValue="overview" className="w-[480px]">
|
|
93
97
|
<TabsList>
|
|
@@ -115,6 +119,7 @@ export const Default: Story = {
|
|
|
115
119
|
// the visible panel refused to scroll. Keep this story's shape (scrollable
|
|
116
120
|
// content + a non-last default) so a regression is reproducible by hand.
|
|
117
121
|
export const RealisticUse: Story = {
|
|
122
|
+
parameters: { controls: { disable: true } },
|
|
118
123
|
render: () => (
|
|
119
124
|
<Tabs defaultValue="reviewers" className="w-[600px] h-[240px]">
|
|
120
125
|
<TabsList>
|
|
@@ -182,6 +187,7 @@ export const RealisticUse: Story = {
|
|
|
182
187
|
// Element.scrollIntoView, which also scrolled vertical ancestors and yanked the
|
|
183
188
|
// whole page to a below-the-fold tab row on mount — corrections.md #012.)
|
|
184
189
|
export const Scrollable: Story = {
|
|
190
|
+
parameters: { controls: { disable: true } },
|
|
185
191
|
render: () => (
|
|
186
192
|
<Tabs defaultValue="account" className="w-[320px]">
|
|
187
193
|
<TabsList variant="line" scrollable className="w-full justify-start">
|
|
@@ -229,11 +235,13 @@ function ResponsiveTabs() {
|
|
|
229
235
|
}
|
|
230
236
|
|
|
231
237
|
export const ResponsiveDropdown: Story = {
|
|
238
|
+
parameters: { controls: { disable: true } },
|
|
232
239
|
render: () => <ResponsiveTabs />,
|
|
233
240
|
};
|
|
234
241
|
|
|
235
242
|
export const Interaction_Switches: Story = {
|
|
236
243
|
tags: ["test"],
|
|
244
|
+
parameters: { controls: { disable: true } },
|
|
237
245
|
render: () => (
|
|
238
246
|
<Tabs defaultValue="overview" className="w-[480px]">
|
|
239
247
|
<TabsList>
|
|
@@ -16,6 +16,7 @@ type Story = StoryObj<typeof meta>;
|
|
|
16
16
|
// not via children. Passing children renders an empty pill — see the registry
|
|
17
17
|
// + Controls panel, label is the required prop.
|
|
18
18
|
export const Default: Story = {
|
|
19
|
+
parameters: { controls: { disable: true } },
|
|
19
20
|
render: () => (<div className="flex items-center gap-2 flex-wrap">
|
|
20
21
|
<Tag label="Design" />
|
|
21
22
|
<Tag label="Engineering" />
|
|
@@ -24,29 +25,30 @@ export const Default: Story = {
|
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
export const Variant_Default: Story = {
|
|
27
|
-
|
|
28
|
+
args: { variant: "default", label: "Default" },
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
export const Variant_Success: Story = {
|
|
31
|
-
|
|
32
|
+
args: { variant: "success", label: "Success" },
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
export const Variant_Warning: Story = {
|
|
35
|
-
|
|
36
|
+
args: { variant: "warning", label: "Warning" },
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
export const Variant_Error: Story = {
|
|
39
|
-
|
|
40
|
+
args: { variant: "error", label: "Error" },
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
export const Variant_Info: Story = {
|
|
43
|
-
|
|
44
|
+
args: { variant: "info", label: "Info" },
|
|
44
45
|
};
|
|
45
46
|
|
|
46
47
|
// Size stories use real strings from content/personas/bads.json → primary.jargon
|
|
47
48
|
// (the real-content rule — no placeholder labels). Each size shows a plain tag
|
|
48
49
|
// and a dismissible one so the scaled close button is covered by Chromatic.
|
|
49
50
|
export const Size_XS: Story = {
|
|
51
|
+
parameters: { controls: { disable: true } },
|
|
50
52
|
render: () => (<div className="flex items-center gap-2 flex-wrap">
|
|
51
53
|
<Tag size="xs" label="token drift" />
|
|
52
54
|
<Tag size="xs" variant="info" label="visual regression" onClose={() => {}} />
|
|
@@ -54,6 +56,7 @@ export const Size_XS: Story = {
|
|
|
54
56
|
};
|
|
55
57
|
|
|
56
58
|
export const Size_SM: Story = {
|
|
59
|
+
parameters: { controls: { disable: true } },
|
|
57
60
|
render: () => (<div className="flex items-center gap-2 flex-wrap">
|
|
58
61
|
<Tag size="sm" label="design tokens" />
|
|
59
62
|
<Tag size="sm" variant="success" label="a11y contract" onClose={() => {}} />
|
|
@@ -61,6 +64,7 @@ export const Size_SM: Story = {
|
|
|
61
64
|
};
|
|
62
65
|
|
|
63
66
|
export const Size_MD: Story = {
|
|
67
|
+
parameters: { controls: { disable: true } },
|
|
64
68
|
render: () => (<div className="flex items-center gap-2 flex-wrap">
|
|
65
69
|
<Tag size="md" label="semantic layer" />
|
|
66
70
|
<Tag size="md" variant="warning" label="anti-pattern" onClose={() => {}} />
|
|
@@ -68,6 +72,7 @@ export const Size_MD: Story = {
|
|
|
68
72
|
};
|
|
69
73
|
|
|
70
74
|
export const Size_LG: Story = {
|
|
75
|
+
parameters: { controls: { disable: true } },
|
|
71
76
|
render: () => (<div className="flex items-center gap-2 flex-wrap">
|
|
72
77
|
<Tag size="lg" label="Radix primitive" />
|
|
73
78
|
<Tag size="lg" variant="error" label="focus trap" onClose={() => {}} />
|
|
@@ -75,6 +80,7 @@ export const Size_LG: Story = {
|
|
|
75
80
|
};
|
|
76
81
|
|
|
77
82
|
export const Variant_WithIcon: Story = {
|
|
83
|
+
parameters: { controls: { disable: true } },
|
|
78
84
|
render: () => (
|
|
79
85
|
<div className="flex items-center gap-2 flex-wrap">
|
|
80
86
|
<Tag variant="success" label="Verified" icon={<Check strokeWidth={1.5} />} />
|
|
@@ -86,6 +92,7 @@ export const Variant_WithIcon: Story = {
|
|
|
86
92
|
};
|
|
87
93
|
|
|
88
94
|
export const Variant_IconAndDismiss: Story = {
|
|
95
|
+
parameters: { controls: { disable: true } },
|
|
89
96
|
render: () => (
|
|
90
97
|
<div className="flex items-center gap-2 flex-wrap">
|
|
91
98
|
<Tag label="design-tokens" icon={<Zap strokeWidth={1.5} />} onClose={() => {}} />
|
|
@@ -96,6 +103,7 @@ export const Variant_IconAndDismiss: Story = {
|
|
|
96
103
|
};
|
|
97
104
|
|
|
98
105
|
export const RealisticUse: Story = {
|
|
106
|
+
parameters: { controls: { disable: true } },
|
|
99
107
|
render: () => (<div className="flex items-center gap-2 flex-wrap">
|
|
100
108
|
<Tag label="Design" onClose={() => {}} />
|
|
101
109
|
<Tag variant="success" label="Shipped" onClose={() => {}} />
|
|
@@ -34,10 +34,12 @@ function Controlled({
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export const Default: Story = {
|
|
37
|
+
parameters: { controls: { disable: true } },
|
|
37
38
|
render: () => <Controlled placeholder="Add a tag…" />,
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
export const WithInitialTags: Story = {
|
|
42
|
+
parameters: { controls: { disable: true } },
|
|
41
43
|
render: () => (
|
|
42
44
|
<Controlled
|
|
43
45
|
initialTags={["accessibility", "tokens", "patterns"]}
|
|
@@ -51,6 +53,7 @@ export const WithInitialTags: Story = {
|
|
|
51
53
|
// sm=36px matches Input's default for dense form chrome; lg=48px, xl=56px.
|
|
52
54
|
// Chips, the × icon, and the inner text field scale with the container.
|
|
53
55
|
export const Size_Sm: Story = {
|
|
56
|
+
parameters: { controls: { disable: true } },
|
|
54
57
|
render: () => (
|
|
55
58
|
<Controlled
|
|
56
59
|
size="sm"
|
|
@@ -61,6 +64,7 @@ export const Size_Sm: Story = {
|
|
|
61
64
|
};
|
|
62
65
|
|
|
63
66
|
export const Size_Default: Story = {
|
|
67
|
+
parameters: { controls: { disable: true } },
|
|
64
68
|
render: () => (
|
|
65
69
|
<Controlled
|
|
66
70
|
size="default"
|
|
@@ -71,6 +75,7 @@ export const Size_Default: Story = {
|
|
|
71
75
|
};
|
|
72
76
|
|
|
73
77
|
export const Size_Lg: Story = {
|
|
78
|
+
parameters: { controls: { disable: true } },
|
|
74
79
|
render: () => (
|
|
75
80
|
<Controlled
|
|
76
81
|
size="lg"
|
|
@@ -81,6 +86,7 @@ export const Size_Lg: Story = {
|
|
|
81
86
|
};
|
|
82
87
|
|
|
83
88
|
export const Size_Xl: Story = {
|
|
89
|
+
parameters: { controls: { disable: true } },
|
|
84
90
|
render: () => (
|
|
85
91
|
<Controlled
|
|
86
92
|
size="xl"
|
|
@@ -93,6 +99,7 @@ export const Size_Xl: Story = {
|
|
|
93
99
|
// Disabled: muted token colors (bg-muted/text-muted-foreground) preserve AAA
|
|
94
100
|
// contrast — avoids the opacity-50 approach which blends text to ~3:1 (AA fail).
|
|
95
101
|
export const Disabled: Story = {
|
|
102
|
+
parameters: { controls: { disable: true } },
|
|
96
103
|
render: () => (
|
|
97
104
|
<Controlled
|
|
98
105
|
initialTags={["color tokens", "spacing scale"]}
|
|
@@ -103,6 +110,7 @@ export const Disabled: Story = {
|
|
|
103
110
|
};
|
|
104
111
|
|
|
105
112
|
export const MaxTags: Story = {
|
|
113
|
+
parameters: { controls: { disable: true } },
|
|
106
114
|
render: () => (
|
|
107
115
|
<Controlled
|
|
108
116
|
initialTags={["draft", "review"]}
|
|
@@ -113,6 +121,7 @@ export const MaxTags: Story = {
|
|
|
113
121
|
};
|
|
114
122
|
|
|
115
123
|
export const AllowDuplicates: Story = {
|
|
124
|
+
parameters: { controls: { disable: true } },
|
|
116
125
|
render: () => (
|
|
117
126
|
<Controlled
|
|
118
127
|
allowDuplicates
|
|
@@ -125,6 +134,7 @@ export const AllowDuplicates: Story = {
|
|
|
125
134
|
// the listbox, Enter or click adds; already-added items show a check and drop
|
|
126
135
|
// out of the list. Full combobox ARIA (role=combobox + listbox/option).
|
|
127
136
|
export const WithSuggestions: Story = {
|
|
137
|
+
parameters: { controls: { disable: true } },
|
|
128
138
|
render: () => (
|
|
129
139
|
<div className="w-80 space-y-2">
|
|
130
140
|
<p className="text-xs text-muted-foreground">
|
|
@@ -150,6 +160,7 @@ export const WithSuggestions: Story = {
|
|
|
150
160
|
};
|
|
151
161
|
|
|
152
162
|
export const CommaDelimiter: Story = {
|
|
163
|
+
parameters: { controls: { disable: true } },
|
|
153
164
|
render: () => (
|
|
154
165
|
<div className="w-80 space-y-2">
|
|
155
166
|
<p className="text-xs text-muted-foreground">Type and press Enter or comma to add</p>
|
|
@@ -162,6 +173,7 @@ export const CommaDelimiter: Story = {
|
|
|
162
173
|
};
|
|
163
174
|
|
|
164
175
|
export const Empty: Story = {
|
|
176
|
+
parameters: { controls: { disable: true } },
|
|
165
177
|
render: () => <Controlled placeholder="Type and press Enter…" />,
|
|
166
178
|
};
|
|
167
179
|
|
|
@@ -169,6 +181,7 @@ export const Empty: Story = {
|
|
|
169
181
|
// Enter pressed to confirm an IME candidate (Japanese, Chinese, Korean) is ignored by this component.
|
|
170
182
|
// Not scriptable in a story; check by hand with an IME on.
|
|
171
183
|
export const RealisticUse: Story = {
|
|
184
|
+
parameters: { controls: { disable: true } },
|
|
172
185
|
render: () => {
|
|
173
186
|
const [tags, setTags] = React.useState<string[]>(["Accessibility", "Tokens"]);
|
|
174
187
|
return (
|
|
@@ -32,6 +32,7 @@ type Story = StoryObj<typeof meta>
|
|
|
32
32
|
// pool entries.
|
|
33
33
|
|
|
34
34
|
export const Default: Story = {
|
|
35
|
+
parameters: { controls: { disable: true } },
|
|
35
36
|
render: () => (
|
|
36
37
|
<div className="max-w-md">
|
|
37
38
|
<Text>
|
|
@@ -43,6 +44,7 @@ export const Default: Story = {
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
export const Variant_Body: Story = {
|
|
47
|
+
parameters: { controls: { disable: true } },
|
|
46
48
|
render: () => (
|
|
47
49
|
<div className="max-w-md">
|
|
48
50
|
<Text variant="body">
|
|
@@ -54,6 +56,7 @@ export const Variant_Body: Story = {
|
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
export const Variant_BodySm: Story = {
|
|
59
|
+
parameters: { controls: { disable: true } },
|
|
57
60
|
render: () => (
|
|
58
61
|
<div className="max-w-md">
|
|
59
62
|
<Text variant="body-sm">
|
|
@@ -65,6 +68,7 @@ export const Variant_BodySm: Story = {
|
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
export const Variant_Caption: Story = {
|
|
71
|
+
parameters: { controls: { disable: true } },
|
|
68
72
|
render: () => (
|
|
69
73
|
<div className="max-w-md">
|
|
70
74
|
<Text variant="caption" tone="muted">
|
|
@@ -75,6 +79,7 @@ export const Variant_Caption: Story = {
|
|
|
75
79
|
}
|
|
76
80
|
|
|
77
81
|
export const Tone_Muted: Story = {
|
|
82
|
+
parameters: { controls: { disable: true } },
|
|
78
83
|
render: () => (
|
|
79
84
|
<div className="max-w-md space-y-2">
|
|
80
85
|
<Text variant="body-sm">
|
|
@@ -91,18 +96,22 @@ export const Tone_Muted: Story = {
|
|
|
91
96
|
// (heading-sm/md/lg/xl). The size prop never changes the outline level.
|
|
92
97
|
|
|
93
98
|
export const Size_Sm: Story = {
|
|
99
|
+
parameters: { controls: { disable: true } },
|
|
94
100
|
render: () => <Heading size="sm">Customize your tokens</Heading>,
|
|
95
101
|
}
|
|
96
102
|
|
|
97
103
|
export const Size_Md: Story = {
|
|
104
|
+
parameters: { controls: { disable: true } },
|
|
98
105
|
render: () => <Heading size="md">Your design system at a glance</Heading>,
|
|
99
106
|
}
|
|
100
107
|
|
|
101
108
|
export const Size_Lg: Story = {
|
|
109
|
+
parameters: { controls: { disable: true } },
|
|
102
110
|
render: () => <Heading size="lg">Set up your design system in five minutes</Heading>,
|
|
103
111
|
}
|
|
104
112
|
|
|
105
113
|
export const Size_Xl: Story = {
|
|
114
|
+
parameters: { controls: { disable: true } },
|
|
106
115
|
render: () => <Heading size="xl">Your design system at a glance</Heading>,
|
|
107
116
|
}
|
|
108
117
|
|
|
@@ -110,6 +119,7 @@ export const Size_Xl: Story = {
|
|
|
110
119
|
// `as` is the document structure; `size` is the look. A screen reader walks
|
|
111
120
|
// h2 → h3 → h4 here even though all three render identically.
|
|
112
121
|
export const HeadingLevelsDecoupled: Story = {
|
|
122
|
+
parameters: { controls: { disable: true } },
|
|
113
123
|
render: () => (
|
|
114
124
|
<div className="max-w-md space-y-3">
|
|
115
125
|
<Heading as="h2" size="sm">
|
|
@@ -132,6 +142,7 @@ export const HeadingLevelsDecoupled: Story = {
|
|
|
132
142
|
// Unbroken long strings in a 320px box — exercises the overflow contract
|
|
133
143
|
// (min-w-0 + overflow-wrap:anywhere): the email wraps instead of bleeding.
|
|
134
144
|
export const LongContent: Story = {
|
|
145
|
+
parameters: { controls: { disable: true } },
|
|
135
146
|
render: () => (
|
|
136
147
|
<div className="w-[320px] space-y-2">
|
|
137
148
|
<Heading size="sm">Account owner</Heading>
|
|
@@ -144,6 +155,7 @@ export const LongContent: Story = {
|
|
|
144
155
|
}
|
|
145
156
|
|
|
146
157
|
export const RealisticUse: Story = {
|
|
158
|
+
parameters: { controls: { disable: true } },
|
|
147
159
|
render: () => (
|
|
148
160
|
<div className="w-[560px] space-y-6">
|
|
149
161
|
<div className="space-y-2">
|
|
@@ -15,6 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof meta>;
|
|
16
16
|
|
|
17
17
|
export const Default: Story = {
|
|
18
|
+
parameters: { controls: { disable: true } },
|
|
18
19
|
render: () => (
|
|
19
20
|
<div className="flex flex-col gap-2 w-[320px]">
|
|
20
21
|
<Label htmlFor="msg">Message</Label>
|
|
@@ -28,6 +29,7 @@ export const Disabled: Story = {
|
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
export const ShowCount: Story = {
|
|
32
|
+
parameters: { controls: { disable: true } },
|
|
31
33
|
render: () => (
|
|
32
34
|
<div className="flex flex-col gap-2 w-[320px]">
|
|
33
35
|
<Label htmlFor="msg-count">Bio</Label>
|
|
@@ -37,6 +39,7 @@ export const ShowCount: Story = {
|
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
export const ShowCountWithMax: Story = {
|
|
42
|
+
parameters: { controls: { disable: true } },
|
|
40
43
|
render: () => (
|
|
41
44
|
<div className="flex flex-col gap-2 w-[320px]">
|
|
42
45
|
<Label htmlFor="msg-max">Bio</Label>
|
|
@@ -52,6 +55,7 @@ export const ShowCountWithMax: Story = {
|
|
|
52
55
|
};
|
|
53
56
|
|
|
54
57
|
export const ShowCountAtLimit: Story = {
|
|
58
|
+
parameters: { controls: { disable: true } },
|
|
55
59
|
render: () => (
|
|
56
60
|
<div className="flex flex-col gap-2 w-[320px]">
|
|
57
61
|
<Label htmlFor="msg-limit">Bio</Label>
|
|
@@ -67,6 +71,7 @@ export const ShowCountAtLimit: Story = {
|
|
|
67
71
|
};
|
|
68
72
|
|
|
69
73
|
export const Size_Sm: Story = {
|
|
74
|
+
parameters: { controls: { disable: true } },
|
|
70
75
|
render: () => (
|
|
71
76
|
<div className="flex flex-col gap-2 w-[320px]">
|
|
72
77
|
<Label htmlFor="msg-sm">Notes (sm)</Label>
|
|
@@ -76,6 +81,7 @@ export const Size_Sm: Story = {
|
|
|
76
81
|
};
|
|
77
82
|
|
|
78
83
|
export const Size_Default: Story = {
|
|
84
|
+
parameters: { controls: { disable: true } },
|
|
79
85
|
render: () => (
|
|
80
86
|
<div className="flex flex-col gap-2 w-[320px]">
|
|
81
87
|
<Label htmlFor="msg-default">Message (default)</Label>
|
|
@@ -85,6 +91,7 @@ export const Size_Default: Story = {
|
|
|
85
91
|
};
|
|
86
92
|
|
|
87
93
|
export const Size_Lg: Story = {
|
|
94
|
+
parameters: { controls: { disable: true } },
|
|
88
95
|
render: () => (
|
|
89
96
|
<div className="flex flex-col gap-2 w-[320px]">
|
|
90
97
|
<Label htmlFor="msg-lg">Description (lg)</Label>
|
|
@@ -94,6 +101,7 @@ export const Size_Lg: Story = {
|
|
|
94
101
|
};
|
|
95
102
|
|
|
96
103
|
export const Size_Xl: Story = {
|
|
104
|
+
parameters: { controls: { disable: true } },
|
|
97
105
|
render: () => (
|
|
98
106
|
<div className="flex flex-col gap-2 w-[320px]">
|
|
99
107
|
<Label htmlFor="msg-xl">Long-form content (xl)</Label>
|
|
@@ -103,6 +111,7 @@ export const Size_Xl: Story = {
|
|
|
103
111
|
};
|
|
104
112
|
|
|
105
113
|
export const RealisticUse: Story = {
|
|
114
|
+
parameters: { controls: { disable: true } },
|
|
106
115
|
render: () => (
|
|
107
116
|
<div className="flex flex-col gap-2 w-[320px]">
|
|
108
117
|
<Label htmlFor="bio">Short bio</Label>
|
|
@@ -23,18 +23,19 @@ export default meta;
|
|
|
23
23
|
type Story = StoryObj<typeof meta>;
|
|
24
24
|
|
|
25
25
|
export const Default: Story = {
|
|
26
|
-
|
|
26
|
+
args: { },
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export const Size_Small: Story = {
|
|
30
|
-
|
|
30
|
+
args: { size: 12 },
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export const Size_Large: Story = {
|
|
34
|
-
|
|
34
|
+
args: { size: 24 },
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
export const WithCustomIcons: Story = {
|
|
38
|
+
parameters: { controls: { disable: true } },
|
|
38
39
|
render: () => (
|
|
39
40
|
<ThemeIcon
|
|
40
41
|
size={24}
|
|
@@ -50,6 +51,7 @@ export const WithCustomIcons: Story = {
|
|
|
50
51
|
* swaps, e.g. for a "follows system" row where the mode is not a choice.
|
|
51
52
|
*/
|
|
52
53
|
export const Static: Story = {
|
|
54
|
+
parameters: { controls: { disable: true } },
|
|
53
55
|
render: () => (
|
|
54
56
|
<ThemeIcon
|
|
55
57
|
size={24}
|
|
@@ -93,5 +95,6 @@ function ThemeToggleDemo() {
|
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
export const RealisticUse: Story = {
|
|
98
|
+
parameters: { controls: { disable: true } },
|
|
96
99
|
render: () => <ThemeToggleDemo />,
|
|
97
100
|
};
|
|
@@ -23,6 +23,7 @@ export const WithSeconds: Story = {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export const Sizes: Story = {
|
|
26
|
+
parameters: { controls: { disable: true } },
|
|
26
27
|
render: () => (
|
|
27
28
|
<div className="flex flex-col gap-3 w-64">
|
|
28
29
|
<TimePicker value="08:00" size="sm" />
|
|
@@ -41,6 +42,7 @@ export const Disabled: Story = {
|
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
export const RealisticUse: Story = {
|
|
45
|
+
parameters: { controls: { disable: true } },
|
|
44
46
|
render: () => {
|
|
45
47
|
const [time, setTime] = React.useState<string | undefined>("09:00")
|
|
46
48
|
return (
|
|
@@ -23,6 +23,7 @@ export default meta;
|
|
|
23
23
|
type Story = StoryObj<typeof Timeline>;
|
|
24
24
|
|
|
25
25
|
export const Default: Story = {
|
|
26
|
+
parameters: { controls: { disable: true } },
|
|
26
27
|
render: () => (
|
|
27
28
|
<div className="w-80">
|
|
28
29
|
<Timeline>
|
|
@@ -44,6 +45,7 @@ export const Default: Story = {
|
|
|
44
45
|
*/
|
|
45
46
|
export const AllStatuses: Story = {
|
|
46
47
|
tags: ["!manifest"],
|
|
48
|
+
parameters: { controls: { disable: true } },
|
|
47
49
|
render: () => (
|
|
48
50
|
<div className="w-80">
|
|
49
51
|
<Timeline>
|
|
@@ -77,6 +79,7 @@ export const AllStatuses: Story = {
|
|
|
77
79
|
};
|
|
78
80
|
|
|
79
81
|
export const WithIcons: Story = {
|
|
82
|
+
parameters: { controls: { disable: true } },
|
|
80
83
|
render: () => (
|
|
81
84
|
<div className="w-80">
|
|
82
85
|
<Timeline>
|
|
@@ -114,6 +117,7 @@ export const WithIcons: Story = {
|
|
|
114
117
|
};
|
|
115
118
|
|
|
116
119
|
export const WithDescriptions: Story = {
|
|
120
|
+
parameters: { controls: { disable: true } },
|
|
117
121
|
render: () => (
|
|
118
122
|
<div className="w-96">
|
|
119
123
|
<Timeline>
|
|
@@ -147,6 +151,7 @@ export const WithDescriptions: Story = {
|
|
|
147
151
|
};
|
|
148
152
|
|
|
149
153
|
export const WithCustomContent: Story = {
|
|
154
|
+
parameters: { controls: { disable: true } },
|
|
150
155
|
render: () => (
|
|
151
156
|
<div className="w-80">
|
|
152
157
|
<Timeline>
|
|
@@ -172,6 +177,7 @@ export const WithCustomContent: Story = {
|
|
|
172
177
|
};
|
|
173
178
|
|
|
174
179
|
export const SingleItem: Story = {
|
|
180
|
+
parameters: { controls: { disable: true } },
|
|
175
181
|
render: () => (
|
|
176
182
|
<div className="w-80">
|
|
177
183
|
<Timeline>
|
|
@@ -187,6 +193,7 @@ export const SingleItem: Story = {
|
|
|
187
193
|
};
|
|
188
194
|
|
|
189
195
|
export const ActivityFeed: Story = {
|
|
196
|
+
parameters: { controls: { disable: true } },
|
|
190
197
|
render: () => (
|
|
191
198
|
<div className="w-80">
|
|
192
199
|
<Timeline>
|
|
@@ -225,6 +232,7 @@ export const ActivityFeed: Story = {
|
|
|
225
232
|
// Alternate orientation: centered spine, items alternate sides at md+.
|
|
226
233
|
// Below md this falls back to the standard left-aligned vertical layout.
|
|
227
234
|
export const Variant_Alternate: Story = {
|
|
235
|
+
parameters: { controls: { disable: true } },
|
|
228
236
|
render: () => (
|
|
229
237
|
<div className="w-[640px] max-w-full">
|
|
230
238
|
<Timeline orientation="alternate">
|
|
@@ -268,6 +276,7 @@ export const Variant_Alternate: Story = {
|
|
|
268
276
|
|
|
269
277
|
// Alternate orientation with custom icons — same icon slot, both sides.
|
|
270
278
|
export const Variant_AlternateWithIcons: Story = {
|
|
279
|
+
parameters: { controls: { disable: true } },
|
|
271
280
|
render: () => (
|
|
272
281
|
<div className="w-[640px] max-w-full">
|
|
273
282
|
<Timeline orientation="alternate">
|
|
@@ -307,6 +316,7 @@ export const Variant_AlternateWithIcons: Story = {
|
|
|
307
316
|
// Horizontal orientation: step-progress row, dots above content.
|
|
308
317
|
// Connector line runs through all dot centers; last item's connector hidden.
|
|
309
318
|
export const Variant_Horizontal: Story = {
|
|
319
|
+
parameters: { controls: { disable: true } },
|
|
310
320
|
render: () => (
|
|
311
321
|
<div className="w-full max-w-2xl">
|
|
312
322
|
<Timeline orientation="horizontal">
|
|
@@ -341,6 +351,7 @@ export const Variant_Horizontal: Story = {
|
|
|
341
351
|
|
|
342
352
|
// Horizontal with icons — same step-indicator pattern, custom dot icons.
|
|
343
353
|
export const Variant_HorizontalWithIcons: Story = {
|
|
354
|
+
parameters: { controls: { disable: true } },
|
|
344
355
|
render: () => (
|
|
345
356
|
<div className="w-full max-w-2xl">
|
|
346
357
|
<Timeline orientation="horizontal">
|
|
@@ -375,6 +386,7 @@ export const Variant_HorizontalWithIcons: Story = {
|
|
|
375
386
|
|
|
376
387
|
// Realistic use: BADS Design System, v2.4.0 release journey
|
|
377
388
|
export const RealisticUse: Story = {
|
|
389
|
+
parameters: { controls: { disable: true } },
|
|
378
390
|
render: () => (
|
|
379
391
|
<div className="w-96 rounded-lg border border-border bg-card p-5">
|
|
380
392
|
<div className="mb-4 space-y-1">
|
|
@@ -29,6 +29,7 @@ export default meta;
|
|
|
29
29
|
type Story = StoryObj<typeof meta>;
|
|
30
30
|
|
|
31
31
|
export const Default: Story = {
|
|
32
|
+
parameters: { controls: { disable: true } },
|
|
32
33
|
render: () => (
|
|
33
34
|
<div className="flex flex-col items-center gap-2">
|
|
34
35
|
<Timer mode="countdown" startMs={5 * 60 * 1000} className="text-2xl" />
|
|
@@ -40,6 +41,7 @@ export const Default: Story = {
|
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
export const CountUp: Story = {
|
|
44
|
+
parameters: { controls: { disable: true } },
|
|
43
45
|
render: () => (
|
|
44
46
|
<div className="flex flex-col items-center gap-2">
|
|
45
47
|
<Timer mode="countup" format="HH:MM:SS" className="text-2xl" />
|
|
@@ -80,6 +82,7 @@ export const PausedInitially: Story = {
|
|
|
80
82
|
};
|
|
81
83
|
|
|
82
84
|
export const CustomFormat: Story = {
|
|
85
|
+
parameters: { controls: { disable: true } },
|
|
83
86
|
render: () => (
|
|
84
87
|
<div className="flex flex-col items-center gap-2">
|
|
85
88
|
<Timer
|
|
@@ -100,6 +103,7 @@ export const CustomFormat: Story = {
|
|
|
100
103
|
};
|
|
101
104
|
|
|
102
105
|
export const FormatMM_SS: Story = {
|
|
106
|
+
parameters: { controls: { disable: true } },
|
|
103
107
|
render: () => (
|
|
104
108
|
<div className="flex flex-col items-center gap-2">
|
|
105
109
|
<Timer
|