@behavioral-agentic-design-system/core 0.42.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +38 -8
- package/scripts/a11y-lint.cjs +101 -14
- 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/check-spec.mjs +73 -0
- package/scripts/deal-directions.mjs +186 -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/health-report.mjs +20 -14
- package/scripts/lib/copy-strings.mjs +146 -0
- package/scripts/lib/counted-lint.mjs +100 -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/marketing-library.mjs +129 -0
- package/scripts/lib/mount-page.mjs +25 -0
- package/scripts/lib/on-system.mjs +249 -0
- package/scripts/lib/random.mjs +22 -0
- package/scripts/lib/source-scan.mjs +173 -0
- package/scripts/lib/spec-parse.d.mts +25 -0
- package/scripts/lib/spec-parse.mjs +188 -0
- package/scripts/lib/tells.mjs +366 -0
- 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-css-vars.mjs +175 -0
- package/scripts/lint-even-padding.mjs +58 -0
- package/scripts/lint-html-nesting.mjs +116 -0
- package/scripts/lint-label-case.mjs +219 -0
- package/scripts/lint-live-ctas.mjs +138 -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/on-system-score.mjs +95 -0
- package/scripts/size-audit.cjs +2 -2
- package/scripts/slop-rules.mjs +1 -1
- package/scripts/source-images.mjs +180 -0
- package/scripts/ux-tells.mjs +80 -0
- package/scripts/wcag-audit.cjs +25 -4
- package/src/api/brand-colors.ts +3 -0
- package/src/api/brand-fonts.ts +3 -0
- package/src/api/brand-mark.ts +6 -1
- package/src/api/dev-write-guard.ts +53 -0
- package/src/api/layers/file.ts +9 -4
- package/src/api/onboarding-extract.ts +85 -30
- package/src/api/onboarding.ts +3 -0
- package/src/api/save-tokens.ts +3 -0
- package/src/api/site-auth.ts +14 -2
- package/src/app/layout.tsx +6 -0
- package/src/app/preview/canvas/page.tsx +12 -0
- package/src/app/preview/components/page.tsx +828 -14
- package/src/app/preview/sticker-sheet/page.tsx +329 -0
- package/src/app/preview/sticker-sheet/specimens.tsx +296 -0
- package/src/app/preview/studio/blank-screen.tsx +143 -0
- package/src/app/preview/studio/page.tsx +7 -0
- package/src/app/shell.tsx +164 -47
- package/src/components/Foundations/Colors.stories.tsx +119 -8
- package/src/components/canvas/canvas.tsx +458 -0
- package/src/components/canvas/layout.ts +72 -0
- package/src/components/canvas/parse-canvas.ts +32 -0
- package/src/components/canvas/sample.ts +90 -0
- package/src/components/canvas/spec-frame.tsx +43 -0
- package/src/components/canvas/types.ts +33 -0
- package/src/components/docs-tab.tsx +7 -7
- package/src/components/home-recent.tsx +73 -0
- package/src/components/home-tab.tsx +19 -14
- package/src/components/layers-tab.tsx +2 -2
- package/src/components/markdown-preview.tsx +60 -12
- package/src/components/onboarding-wizard.tsx +1 -1
- package/src/components/studio/control-panel.tsx +299 -0
- package/src/components/studio/control-row.tsx +77 -0
- package/src/components/studio/preview-frame.tsx +165 -0
- package/src/components/studio/preview-pane.tsx +247 -0
- package/src/components/studio/studio.tsx +133 -128
- package/src/components/studio/types.ts +218 -0
- package/src/components/studio/use-studio-tweaks.ts +128 -0
- package/src/components/studio/use-studio-view-state.ts +72 -0
- package/src/components/ui/autocomplete.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/color-picker.tsx +20 -4
- package/src/components/ui/combobox.tsx +1 -0
- package/src/components/ui/command.tsx +1 -1
- package/src/components/ui/data-table.tsx +64 -3
- package/src/components/ui/date-field.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/editable.tsx +1 -0
- package/src/components/ui/faceted-filter.tsx +187 -0
- package/src/components/ui/file-upload.tsx +21 -2
- package/src/components/ui/gauge-chart.tsx +18 -4
- package/src/components/ui/heatmap.tsx +3 -1
- package/src/components/ui/inline-edit.tsx +175 -0
- package/src/components/ui/input-group.tsx +5 -2
- package/src/components/ui/month-picker.tsx +1 -1
- package/src/components/ui/multi-select.tsx +1 -0
- package/src/components/ui/number-input.tsx +28 -5
- package/src/components/ui/otp-input.tsx +208 -0
- package/src/components/ui/phone-input.tsx +274 -0
- package/src/components/ui/radio-group.tsx +2 -2
- package/src/components/ui/search-input.tsx +1 -1
- 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/tags-input.tsx +1 -1
- package/src/components/ui/timer.tsx +1 -0
- package/src/components/ui/transfer-list.tsx +13 -26
- package/src/components/ui/week-picker.tsx +1 -13
- package/src/components/ui/year-picker.tsx +1 -1
- package/src/data/component-added.json +966 -0
- package/src/data/docs-index.ts +35 -2
- 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/hooks/use-global-mono-font.ts +1 -0
- package/src/hooks/use-global-primary-color.ts +1 -0
- package/src/hooks/use-global-sans-font.ts +1 -0
- package/src/hooks/use-global-serif-font.ts +1 -0
- package/src/hooks/use-global-type-scale.ts +17 -2
- package/src/hooks/use-mobile.ts +2 -0
- package/src/hooks/use-sync-type-scale.ts +7 -11
- package/src/lib/chart-motion.ts +41 -0
- package/src/lib/get-icon-color.ts +1 -1
- package/src/lib/spec-parse.ts +4 -0
- package/src/lib/svg-sanitize.ts +19 -9
- 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 +8 -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/Canvas.stories.tsx +45 -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 +46 -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 +39 -0
- package/src/stories/DateField.stories.tsx +28 -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 +12 -0
- package/src/stories/EmptyState.stories.tsx +9 -0
- package/src/stories/FacetedFilter.stories.tsx +197 -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/GaugeChart.stories.tsx +9 -3
- 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/InlineEdit.stories.tsx +106 -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/MarkdownPreview.stories.tsx +53 -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 +26 -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 +33 -1
- package/src/stories/OtpInput.stories.tsx +110 -0
- 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/PhoneInput.stories.tsx +127 -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 +10 -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 +15 -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 +30 -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 +7 -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 +25 -1
- package/src/stories/WordRotate.stories.tsx +5 -0
- package/src/stories/YearPicker.stories.tsx +26 -11
- package/src/stories/story-groups.json +22 -16
- package/src/styles.css +50 -2
- package/src/tokens.json +86 -58
|
@@ -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: () => (<div className="flex items-center gap-3 w-[320px]">
|
|
16
17
|
<Skeleton className="h-12 w-12 rounded-full" />
|
|
17
18
|
<div className="flex-1 space-y-2">
|
|
@@ -22,6 +23,7 @@ export const Default: Story = {
|
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
export const Variant_Circle: Story = {
|
|
26
|
+
parameters: { controls: { disable: true } },
|
|
25
27
|
render: () => (
|
|
26
28
|
<div className="flex items-center gap-3">
|
|
27
29
|
<Skeleton shape="circle" className="size-6" />
|
|
@@ -32,6 +34,7 @@ export const Variant_Circle: Story = {
|
|
|
32
34
|
};
|
|
33
35
|
|
|
34
36
|
export const Variant_Text: Story = {
|
|
37
|
+
parameters: { controls: { disable: true } },
|
|
35
38
|
render: () => (
|
|
36
39
|
<div className="w-[320px] space-y-6">
|
|
37
40
|
<Skeleton shape="text" />
|
|
@@ -41,6 +44,7 @@ export const Variant_Text: Story = {
|
|
|
41
44
|
};
|
|
42
45
|
|
|
43
46
|
export const Variant_Wave: Story = {
|
|
47
|
+
parameters: { controls: { disable: true } },
|
|
44
48
|
render: () => (
|
|
45
49
|
<div className="flex items-start gap-3 w-[320px]">
|
|
46
50
|
<Skeleton animation="wave" shape="circle" className="size-12" />
|
|
@@ -53,6 +57,7 @@ export const Variant_Wave: Story = {
|
|
|
53
57
|
};
|
|
54
58
|
|
|
55
59
|
export const Variant_NoAnimation: Story = {
|
|
60
|
+
parameters: { controls: { disable: true } },
|
|
56
61
|
render: () => (
|
|
57
62
|
<div className="flex items-start gap-3 w-[320px]">
|
|
58
63
|
<Skeleton animation={false} shape="circle" className="size-12" />
|
|
@@ -65,6 +70,7 @@ export const Variant_NoAnimation: Story = {
|
|
|
65
70
|
};
|
|
66
71
|
|
|
67
72
|
export const WithAnimation: Story = {
|
|
73
|
+
parameters: { controls: { disable: true } },
|
|
68
74
|
render: () => (
|
|
69
75
|
<div className="w-[320px] space-y-6">
|
|
70
76
|
{(["pulse", "wave", false] as const).map((animation) => (
|
|
@@ -86,6 +92,7 @@ export const WithAnimation: Story = {
|
|
|
86
92
|
};
|
|
87
93
|
|
|
88
94
|
export const WithRegion: Story = {
|
|
95
|
+
parameters: { controls: { disable: true } },
|
|
89
96
|
render: () => (
|
|
90
97
|
<SkeletonRegion label="Loading activity feed…" className="w-[320px] space-y-4">
|
|
91
98
|
{Array.from({ length: 3 }, (_, i) => (
|
|
@@ -102,6 +109,7 @@ export const WithRegion: Story = {
|
|
|
102
109
|
};
|
|
103
110
|
|
|
104
111
|
export const RealisticUse: Story = {
|
|
112
|
+
parameters: { controls: { disable: true } },
|
|
105
113
|
render: () => (<div className="flex items-start gap-3 w-[320px]">
|
|
106
114
|
<Skeleton shape="circle" className="size-12" />
|
|
107
115
|
<div className="flex-1 space-y-2">
|
|
@@ -32,24 +32,24 @@ export default meta;
|
|
|
32
32
|
type Story = StoryObj<typeof meta>;
|
|
33
33
|
|
|
34
34
|
export const Default: Story = {
|
|
35
|
-
|
|
35
|
+
args: { },
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
/** For tables whose header renders separately, or is sticky outside the scroll area. */
|
|
39
39
|
export const NoHeader: Story = {
|
|
40
|
-
|
|
40
|
+
args: { showHeader: false },
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
export const CustomShape: Story = {
|
|
44
|
-
|
|
44
|
+
args: { rows: 3, columns: 6 },
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export const Animation_Wave: Story = {
|
|
48
|
-
|
|
48
|
+
args: { animation: "wave" },
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
export const Animation_None: Story = {
|
|
52
|
-
|
|
52
|
+
args: { animation: false },
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
/**
|
|
@@ -58,6 +58,7 @@ export const Animation_None: Story = {
|
|
|
58
58
|
* resolves into a 3×6 table reads as a layout bug rather than a load.
|
|
59
59
|
*/
|
|
60
60
|
export const RealisticUse: Story = {
|
|
61
|
+
parameters: { controls: { disable: true } },
|
|
61
62
|
render: () => (
|
|
62
63
|
<div className="w-full max-w-[720px] space-y-8">
|
|
63
64
|
<div>
|
|
@@ -31,6 +31,7 @@ export default meta;
|
|
|
31
31
|
type Story = StoryObj<typeof meta>;
|
|
32
32
|
|
|
33
33
|
export const Default: Story = {
|
|
34
|
+
parameters: { controls: { disable: true } },
|
|
34
35
|
render: () => (
|
|
35
36
|
<div>
|
|
36
37
|
<SkipLink href="#skiplink-demo-main" />
|
|
@@ -64,6 +65,7 @@ export const Default: Story = {
|
|
|
64
65
|
};
|
|
65
66
|
|
|
66
67
|
export const WithCustomLabel: Story = {
|
|
68
|
+
parameters: { controls: { disable: true } },
|
|
67
69
|
render: () => (
|
|
68
70
|
<div>
|
|
69
71
|
<SkipLink href="#skiplink-custom-main">Skip to token dashboard</SkipLink>
|
|
@@ -84,6 +86,7 @@ export const WithCustomLabel: Story = {
|
|
|
84
86
|
|
|
85
87
|
// Real content from content/personas/bads.json (primary persona pool).
|
|
86
88
|
export const RealisticUse: Story = {
|
|
89
|
+
parameters: { controls: { disable: true } },
|
|
87
90
|
render: () => (
|
|
88
91
|
<div className="overflow-hidden rounded-lg border border-border">
|
|
89
92
|
<SkipLink href="#skiplink-shell-main" />
|
|
@@ -6,7 +6,7 @@ import { Slider } from "@behavioral-agentic-design-system/core/components/ui/sli
|
|
|
6
6
|
* per the storybook rule. Track surface uses `bg-primary/30 dark:bg-primary/60`
|
|
7
7
|
* (matches Progress); thumb uses `bg-white border-2 border-primary` so it
|
|
8
8
|
* contrasts against any track tint while inheriting the brand color on its
|
|
9
|
-
* border. Documented AAA exception lives in
|
|
9
|
+
* border. Documented AAA exception lives in AGENTS.md → Known AAA exceptions.
|
|
10
10
|
*/
|
|
11
11
|
const meta: Meta<typeof Slider> = {
|
|
12
12
|
title: "Components/Selection/Slider",
|
|
@@ -109,6 +109,7 @@ export const ValueLabelAlways: Story = {
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
export const RealisticUse: Story = {
|
|
112
|
+
parameters: { controls: { disable: true } },
|
|
112
113
|
render: () => (
|
|
113
114
|
<div className="w-80 space-y-6">
|
|
114
115
|
<div className="space-y-3">
|
|
@@ -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
|
<>
|
|
27
28
|
<Button
|
|
@@ -37,6 +38,7 @@ export const Default: Story = {
|
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
export const Variant_Success: Story = {
|
|
41
|
+
parameters: { controls: { disable: true } },
|
|
40
42
|
render: () => (
|
|
41
43
|
<>
|
|
42
44
|
<Button
|
|
@@ -54,6 +56,7 @@ export const Variant_Success: Story = {
|
|
|
54
56
|
};
|
|
55
57
|
|
|
56
58
|
export const Variant_Error: Story = {
|
|
59
|
+
parameters: { controls: { disable: true } },
|
|
57
60
|
render: () => (
|
|
58
61
|
<>
|
|
59
62
|
<Button
|
|
@@ -72,6 +75,7 @@ export const Variant_Error: Story = {
|
|
|
72
75
|
};
|
|
73
76
|
|
|
74
77
|
export const Variant_Warning: Story = {
|
|
78
|
+
parameters: { controls: { disable: true } },
|
|
75
79
|
render: () => (
|
|
76
80
|
<>
|
|
77
81
|
<Button
|
|
@@ -89,6 +93,7 @@ export const Variant_Warning: Story = {
|
|
|
89
93
|
};
|
|
90
94
|
|
|
91
95
|
export const Variant_Info: Story = {
|
|
96
|
+
parameters: { controls: { disable: true } },
|
|
92
97
|
render: () => (
|
|
93
98
|
<>
|
|
94
99
|
<Button
|
|
@@ -107,6 +112,7 @@ export const Variant_Info: Story = {
|
|
|
107
112
|
};
|
|
108
113
|
|
|
109
114
|
export const WithAction: Story = {
|
|
115
|
+
parameters: { controls: { disable: true } },
|
|
110
116
|
render: () => (
|
|
111
117
|
<>
|
|
112
118
|
<Button
|
|
@@ -125,6 +131,7 @@ export const WithAction: Story = {
|
|
|
125
131
|
};
|
|
126
132
|
|
|
127
133
|
export const RealisticUse: Story = {
|
|
134
|
+
parameters: { controls: { disable: true } },
|
|
128
135
|
render: () => (
|
|
129
136
|
<>
|
|
130
137
|
<div className="flex flex-col gap-2">
|
|
@@ -43,6 +43,7 @@ const FLAT_DATA = [64, 64, 64, 64, 64, 64, 64, 64]
|
|
|
43
43
|
// (hooks/use-reduced-motion), the same one ChartContainer reads, so a
|
|
44
44
|
// reduced-motion user gets the final frame immediately in every story below.
|
|
45
45
|
export const Default: Story = {
|
|
46
|
+
parameters: { controls: { disable: true } },
|
|
46
47
|
render: () => (
|
|
47
48
|
<div className="flex flex-col gap-2">
|
|
48
49
|
<Sparkline
|
|
@@ -58,6 +59,7 @@ export const Default: Story = {
|
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
export const WithLine: Story = {
|
|
62
|
+
parameters: { controls: { disable: true } },
|
|
61
63
|
render: () => (
|
|
62
64
|
<div className="flex flex-col gap-2">
|
|
63
65
|
<Sparkline
|
|
@@ -74,6 +76,7 @@ export const WithLine: Story = {
|
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
export const WithDot: Story = {
|
|
79
|
+
parameters: { controls: { disable: true } },
|
|
77
80
|
render: () => (
|
|
78
81
|
<div className="flex flex-col gap-2">
|
|
79
82
|
<Sparkline
|
|
@@ -83,13 +86,22 @@ export const WithDot: Story = {
|
|
|
83
86
|
aria-label="Monthly revenue with current value dot"
|
|
84
87
|
/>
|
|
85
88
|
<p className="text-xs text-muted-foreground">
|
|
86
|
-
withDot — marks the last data point as the current value
|
|
89
|
+
withDot — marks the last data point as the current value. The dot
|
|
90
|
+
arrives when the draw reaches it, never ahead of it.
|
|
87
91
|
</p>
|
|
92
|
+
<Sparkline
|
|
93
|
+
data={REVENUE_DATA}
|
|
94
|
+
type="line"
|
|
95
|
+
withDot
|
|
96
|
+
className="w-32"
|
|
97
|
+
aria-label="Monthly revenue line with current value dot"
|
|
98
|
+
/>
|
|
88
99
|
</div>
|
|
89
100
|
),
|
|
90
101
|
}
|
|
91
102
|
|
|
92
103
|
export const Negative: Story = {
|
|
104
|
+
parameters: { controls: { disable: true } },
|
|
93
105
|
render: () => (
|
|
94
106
|
<div className="flex flex-col gap-4">
|
|
95
107
|
<div className="flex flex-col gap-1">
|
|
@@ -150,6 +162,7 @@ export const FlatData: Story = {
|
|
|
150
162
|
}
|
|
151
163
|
|
|
152
164
|
export const RealisticUse: Story = {
|
|
165
|
+
parameters: { controls: { disable: true } },
|
|
153
166
|
render: () => {
|
|
154
167
|
const stats = [
|
|
155
168
|
{
|
|
@@ -21,39 +21,47 @@ export default meta;
|
|
|
21
21
|
type Story = StoryObj<typeof meta>;
|
|
22
22
|
|
|
23
23
|
export const Default: Story = {
|
|
24
|
-
|
|
24
|
+
args: { },
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export const Variant_Default: Story = {
|
|
28
|
-
|
|
28
|
+
args: { variant: "default" },
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export const Variant_Muted: Story = {
|
|
32
|
-
|
|
32
|
+
args: { variant: "muted" },
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export const Variant_Primary: Story = {
|
|
36
|
+
args: { variant: "primary" },
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// `default` takes the surrounding text color, so inside a primary Button the
|
|
40
|
+
// ring is primary-foreground in both themes with no extra class.
|
|
41
|
+
export const InPrimaryButton: Story = {
|
|
42
|
+
parameters: { controls: { disable: true } },
|
|
36
43
|
render: () => (
|
|
37
|
-
<
|
|
38
|
-
<Spinner
|
|
39
|
-
|
|
44
|
+
<Button disabled className="gap-2">
|
|
45
|
+
<Spinner size="xs" label="Saving" />
|
|
46
|
+
Saving changes…
|
|
47
|
+
</Button>
|
|
40
48
|
),
|
|
41
49
|
};
|
|
42
50
|
|
|
43
51
|
export const Size_Xs: Story = {
|
|
44
|
-
|
|
52
|
+
args: { size: "xs" },
|
|
45
53
|
};
|
|
46
54
|
|
|
47
55
|
export const Size_Sm: Story = {
|
|
48
|
-
|
|
56
|
+
args: { size: "sm" },
|
|
49
57
|
};
|
|
50
58
|
|
|
51
59
|
export const Size_Default: Story = {
|
|
52
|
-
|
|
60
|
+
args: { size: "default" },
|
|
53
61
|
};
|
|
54
62
|
|
|
55
63
|
export const Size_Lg: Story = {
|
|
56
|
-
|
|
64
|
+
args: { size: "lg" },
|
|
57
65
|
};
|
|
58
66
|
|
|
59
67
|
/**
|
|
@@ -65,6 +73,7 @@ export const Size_Lg: Story = {
|
|
|
65
73
|
*/
|
|
66
74
|
export const AllSizes: Story = {
|
|
67
75
|
tags: ["!manifest"],
|
|
76
|
+
parameters: { controls: { disable: true } },
|
|
68
77
|
render: () => (
|
|
69
78
|
<div className="flex items-center gap-4">
|
|
70
79
|
<Spinner size="xs" />
|
|
@@ -76,6 +85,7 @@ export const AllSizes: Story = {
|
|
|
76
85
|
};
|
|
77
86
|
|
|
78
87
|
export const RealisticUse: Story = {
|
|
88
|
+
parameters: { controls: { disable: true } },
|
|
79
89
|
render: () => (
|
|
80
90
|
<div className="flex flex-col gap-6">
|
|
81
91
|
{/* Button loading state */}
|
|
@@ -37,6 +37,7 @@ const RELEASE_NOTE =
|
|
|
37
37
|
"This release adds three primitives to the registry, tightens the focus-ring offset to 2px across every interactive component, and regenerates both CSS files from tokens.json. The orphan-token lint now runs quarterly instead of weekly after two false-positive cycles flagged chart-config inputs that were never meant to be utility classes. Upgrading is a standard package bump — no breaking API changes, but re-run pnpm build:tokens if your fork overrides the motion durations."
|
|
38
38
|
|
|
39
39
|
export const Default: Story = {
|
|
40
|
+
parameters: { controls: { disable: true } },
|
|
40
41
|
render: () => (
|
|
41
42
|
<div className="w-96">
|
|
42
43
|
<Spoiler maxHeight={96}>
|
|
@@ -50,6 +51,7 @@ export const Default: Story = {
|
|
|
50
51
|
// conditional control is the component's contract — short content must
|
|
51
52
|
// never grow a dead "Show more" button.
|
|
52
53
|
export const ShortContent: Story = {
|
|
54
|
+
parameters: { controls: { disable: true } },
|
|
53
55
|
render: () => (
|
|
54
56
|
<div className="w-96 space-y-2">
|
|
55
57
|
<Spoiler maxHeight={96}>
|
|
@@ -86,10 +88,12 @@ function ControlledExpanded() {
|
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
export const Expanded: Story = {
|
|
91
|
+
parameters: { controls: { disable: true } },
|
|
89
92
|
render: () => <ControlledExpanded />,
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
export const CustomLabels: Story = {
|
|
96
|
+
parameters: { controls: { disable: true } },
|
|
93
97
|
render: () => (
|
|
94
98
|
<div className="w-96">
|
|
95
99
|
<Spoiler
|
|
@@ -104,6 +108,7 @@ export const CustomLabels: Story = {
|
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
export const RealisticUse: Story = {
|
|
111
|
+
parameters: { controls: { disable: true } },
|
|
107
112
|
render: () => (
|
|
108
113
|
<Card className="w-96">
|
|
109
114
|
<CardHeader>
|
|
@@ -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: () => (
|
|
17
18
|
<Squircle className="grid size-40 place-content-center bg-primary text-primary-foreground">
|
|
18
19
|
<span className="text-sm font-medium">Squircle</span>
|
|
@@ -24,6 +25,7 @@ export const Default: Story = {
|
|
|
24
25
|
// box (radius unchanged) — the proof that Squircle RE-CURVES the radius scale rather than competing
|
|
25
26
|
// with it. All four share the same --radius, only the corner curve differs.
|
|
26
27
|
export const SmoothingScale: Story = {
|
|
28
|
+
parameters: { controls: { disable: true } },
|
|
27
29
|
render: () => (
|
|
28
30
|
<div className="flex items-end gap-6">
|
|
29
31
|
{[0, 0.3, 0.6, 1].map((s) => (
|
|
@@ -41,6 +43,7 @@ export const SmoothingScale: Story = {
|
|
|
41
43
|
|
|
42
44
|
// When radius ≥ min(width, height) / 2 the shape auto-resolves to a smooth capsule (stadium).
|
|
43
45
|
export const Capsule: Story = {
|
|
46
|
+
parameters: { controls: { disable: true } },
|
|
44
47
|
render: () => (
|
|
45
48
|
<Squircle
|
|
46
49
|
radius={999}
|
|
@@ -54,6 +57,7 @@ export const Capsule: Story = {
|
|
|
54
57
|
// The optional border follows the squircle edge (drawn via an even-odd clipped overlay), not a
|
|
55
58
|
// rectangle — so a bordered squircle stays a squircle. Border color defaults to the --border token.
|
|
56
59
|
export const WithBorder: Story = {
|
|
60
|
+
parameters: { controls: { disable: true } },
|
|
57
61
|
render: () => (
|
|
58
62
|
<Squircle
|
|
59
63
|
radius={28}
|
|
@@ -70,6 +74,7 @@ export const WithBorder: Story = {
|
|
|
70
74
|
// itself. The correct interactive pattern is Squircle as a DECORATIVE BACKGROUND inside a real control
|
|
71
75
|
// that owns an unclipped, visible focus ring. Tab to the button below — the ring is intact.
|
|
72
76
|
export const InteractiveSurface: Story = {
|
|
77
|
+
parameters: { controls: { disable: true } },
|
|
73
78
|
render: () => (
|
|
74
79
|
<button
|
|
75
80
|
type="button"
|
|
@@ -85,6 +90,7 @@ export const InteractiveSurface: Story = {
|
|
|
85
90
|
|
|
86
91
|
// Polymorphic host: `as` swaps the element for non-interactive semantics (article/section/li/etc.).
|
|
87
92
|
export const AsPolymorphic: Story = {
|
|
93
|
+
parameters: { controls: { disable: true } },
|
|
88
94
|
render: () => (
|
|
89
95
|
<Squircle
|
|
90
96
|
as="article"
|
|
@@ -99,6 +105,7 @@ export const AsPolymorphic: Story = {
|
|
|
99
105
|
// Squircles beside a normal rounded Card at the SAME --radius — the coexistence read: identical
|
|
100
106
|
// corner radius, softer curve. Avatar + media thumbnail + label, real content.
|
|
101
107
|
export const RealisticUse: Story = {
|
|
108
|
+
parameters: { controls: { disable: true } },
|
|
102
109
|
render: () => (
|
|
103
110
|
<div className="flex items-center gap-6">
|
|
104
111
|
<div className="flex flex-col items-center gap-3">
|
|
@@ -15,6 +15,7 @@ export default meta;
|
|
|
15
15
|
// ─── Stack stories ─────────────────────────────────────────────────────────────
|
|
16
16
|
|
|
17
17
|
export const Default: StoryObj = {
|
|
18
|
+
parameters: { controls: { disable: true } },
|
|
18
19
|
render: () => (
|
|
19
20
|
<Stack className="w-64 rounded-lg border border-border bg-card p-4">
|
|
20
21
|
<div className="h-8 rounded bg-muted" />
|
|
@@ -25,6 +26,7 @@ export const Default: StoryObj = {
|
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
export const Stack_GapVariants: StoryObj = {
|
|
29
|
+
parameters: { controls: { disable: true } },
|
|
28
30
|
render: () => (
|
|
29
31
|
<div className="flex gap-8">
|
|
30
32
|
{(["xs", "sm", "md", "lg", "xl"] as const).map((gap) => (
|
|
@@ -40,6 +42,7 @@ export const Stack_GapVariants: StoryObj = {
|
|
|
40
42
|
};
|
|
41
43
|
|
|
42
44
|
export const Stack_AlignVariants: StoryObj = {
|
|
45
|
+
parameters: { controls: { disable: true } },
|
|
43
46
|
render: () => (
|
|
44
47
|
<div className="flex gap-6">
|
|
45
48
|
{(["start", "center", "end", "stretch"] as const).map((align) => (
|
|
@@ -57,6 +60,7 @@ export const Stack_AlignVariants: StoryObj = {
|
|
|
57
60
|
// ─── Group stories ─────────────────────────────────────────────────────────────
|
|
58
61
|
|
|
59
62
|
export const Group_Default: StoryObj = {
|
|
63
|
+
parameters: { controls: { disable: true } },
|
|
60
64
|
render: () => (
|
|
61
65
|
<Group className="max-w-sm">
|
|
62
66
|
<Badge variant="secondary">Design systems</Badge>
|
|
@@ -69,6 +73,7 @@ export const Group_Default: StoryObj = {
|
|
|
69
73
|
};
|
|
70
74
|
|
|
71
75
|
export const Group_JustifyVariants: StoryObj = {
|
|
76
|
+
parameters: { controls: { disable: true } },
|
|
72
77
|
render: () => (
|
|
73
78
|
<Stack gap="sm" className="w-96">
|
|
74
79
|
{(["start", "center", "end", "between"] as const).map((justify) => (
|
|
@@ -89,6 +94,7 @@ export const Group_JustifyVariants: StoryObj = {
|
|
|
89
94
|
};
|
|
90
95
|
|
|
91
96
|
export const Group_NoWrap: StoryObj = {
|
|
97
|
+
parameters: { controls: { disable: true } },
|
|
92
98
|
render: () => (
|
|
93
99
|
// tabIndex={0} makes the scrollable region keyboard-accessible (axe scrollable-region-focusable)
|
|
94
100
|
<Group wrap={false} gap="sm" className="overflow-x-auto max-w-xs" tabIndex={0} aria-label="Workflow step progress">
|
|
@@ -104,6 +110,7 @@ export const Group_NoWrap: StoryObj = {
|
|
|
104
110
|
// ─── RealisticUse: Stack + Group composing a settings section ─────────────────
|
|
105
111
|
|
|
106
112
|
export const RealisticUse: StoryObj = {
|
|
113
|
+
parameters: { controls: { disable: true } },
|
|
107
114
|
render: () => (
|
|
108
115
|
<Stack gap="lg" className="w-96 rounded-xl border border-border bg-card p-6">
|
|
109
116
|
<Stack gap="xs">
|
|
@@ -23,6 +23,7 @@ export default meta;
|
|
|
23
23
|
type Story = StoryObj<typeof meta>;
|
|
24
24
|
|
|
25
25
|
export const Default: Story = {
|
|
26
|
+
parameters: { controls: { disable: true } },
|
|
26
27
|
render: () => (
|
|
27
28
|
<div className="flex flex-wrap items-center gap-4">
|
|
28
29
|
<StatusBadge status="active" />
|
|
@@ -36,30 +37,31 @@ export const Default: Story = {
|
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
export const Variant_Active: Story = {
|
|
39
|
-
|
|
40
|
+
args: { status: "active" },
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
export const Variant_Pending: Story = {
|
|
43
|
-
|
|
44
|
+
args: { status: "pending" },
|
|
44
45
|
};
|
|
45
46
|
|
|
46
47
|
export const Variant_Processing: Story = {
|
|
47
|
-
|
|
48
|
+
args: { status: "processing" },
|
|
48
49
|
};
|
|
49
50
|
|
|
50
51
|
export const Variant_Error: Story = {
|
|
51
|
-
|
|
52
|
+
args: { status: "error" },
|
|
52
53
|
};
|
|
53
54
|
|
|
54
55
|
export const Variant_Offline: Story = {
|
|
55
|
-
|
|
56
|
+
args: { status: "offline" },
|
|
56
57
|
};
|
|
57
58
|
|
|
58
59
|
export const Variant_Warning: Story = {
|
|
59
|
-
|
|
60
|
+
args: { status: "warning" },
|
|
60
61
|
};
|
|
61
62
|
|
|
62
63
|
export const Size_Sm: Story = {
|
|
64
|
+
parameters: { controls: { disable: true } },
|
|
63
65
|
render: () => (
|
|
64
66
|
<div className="flex flex-wrap items-center gap-4">
|
|
65
67
|
<StatusBadge status="active" size="sm" />
|
|
@@ -70,6 +72,7 @@ export const Size_Sm: Story = {
|
|
|
70
72
|
};
|
|
71
73
|
|
|
72
74
|
export const Size_Default: Story = {
|
|
75
|
+
parameters: { controls: { disable: true } },
|
|
73
76
|
render: () => (
|
|
74
77
|
<div className="flex flex-wrap items-center gap-4">
|
|
75
78
|
<StatusBadge status="active" size="default" />
|
|
@@ -80,6 +83,7 @@ export const Size_Default: Story = {
|
|
|
80
83
|
};
|
|
81
84
|
|
|
82
85
|
export const Size_Lg: Story = {
|
|
86
|
+
parameters: { controls: { disable: true } },
|
|
83
87
|
render: () => (
|
|
84
88
|
<div className="flex flex-wrap items-center gap-4">
|
|
85
89
|
<StatusBadge status="active" size="lg" />
|
|
@@ -90,6 +94,7 @@ export const Size_Lg: Story = {
|
|
|
90
94
|
};
|
|
91
95
|
|
|
92
96
|
export const CustomLabel: Story = {
|
|
97
|
+
parameters: { controls: { disable: true } },
|
|
93
98
|
render: () => (
|
|
94
99
|
<div className="flex flex-col gap-2">
|
|
95
100
|
<StatusBadge status="active" label="Live" />
|
|
@@ -102,6 +107,7 @@ export const CustomLabel: Story = {
|
|
|
102
107
|
};
|
|
103
108
|
|
|
104
109
|
export const RealisticUse: Story = {
|
|
110
|
+
parameters: { controls: { disable: true } },
|
|
105
111
|
render: () => (
|
|
106
112
|
<div className="flex w-80 flex-col divide-y divide-border rounded-lg border border-border bg-card">
|
|
107
113
|
{(
|
|
@@ -31,6 +31,7 @@ type Story = StoryObj<typeof meta>;
|
|
|
31
31
|
// ─── Stories ──────────────────────────────────────────────────────────────────
|
|
32
32
|
|
|
33
33
|
export const Default: Story = {
|
|
34
|
+
parameters: { controls: { disable: true } },
|
|
34
35
|
render: () => (
|
|
35
36
|
<div className="w-[480px]">
|
|
36
37
|
<Stepper value={2} aria-label="Checkout steps">
|
|
@@ -60,6 +61,7 @@ export const Default: Story = {
|
|
|
60
61
|
|
|
61
62
|
export const Variant_WithDescriptions: Story = {
|
|
62
63
|
name: "Variant_WithDescriptions",
|
|
64
|
+
parameters: { controls: { disable: true } },
|
|
63
65
|
render: () => (
|
|
64
66
|
<div className="w-[560px]">
|
|
65
67
|
<Stepper value={2} aria-label="Account setup">
|
|
@@ -93,6 +95,7 @@ export const Variant_WithDescriptions: Story = {
|
|
|
93
95
|
|
|
94
96
|
export const Variant_Vertical: Story = {
|
|
95
97
|
name: "Variant_Vertical",
|
|
98
|
+
parameters: { controls: { disable: true } },
|
|
96
99
|
render: () => (
|
|
97
100
|
<div className="w-72">
|
|
98
101
|
<Stepper value={2} orientation="vertical" aria-label="Onboarding steps">
|
|
@@ -133,6 +136,7 @@ export const Variant_Vertical: Story = {
|
|
|
133
136
|
|
|
134
137
|
export const Variant_Error: Story = {
|
|
135
138
|
name: "Variant_Error",
|
|
139
|
+
parameters: { controls: { disable: true } },
|
|
136
140
|
render: () => (
|
|
137
141
|
<div className="w-[480px]">
|
|
138
142
|
<Stepper value={2} aria-label="Import steps — step 2 has an error">
|
|
@@ -157,6 +161,7 @@ export const Variant_Error: Story = {
|
|
|
157
161
|
|
|
158
162
|
export const Size_Compact: Story = {
|
|
159
163
|
name: "Size_Compact",
|
|
164
|
+
parameters: { controls: { disable: true } },
|
|
160
165
|
render: () => (
|
|
161
166
|
<div className="w-[400px]">
|
|
162
167
|
<Stepper value={3} aria-label="Quiz progress">
|
|
@@ -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: () => (<div className="flex items-center gap-2">
|
|
17
18
|
<Switch id="airplane" />
|
|
18
19
|
<Label htmlFor="airplane">Airplane mode</Label>
|
|
@@ -20,6 +21,7 @@ export const Default: Story = {
|
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
export const Checked: Story = {
|
|
24
|
+
parameters: { controls: { disable: true } },
|
|
23
25
|
render: () => (<div className="flex items-center gap-2">
|
|
24
26
|
<Switch id="checked" defaultChecked />
|
|
25
27
|
<Label htmlFor="checked">Enabled</Label>
|
|
@@ -33,6 +35,7 @@ export const Disabled: Story = {
|
|
|
33
35
|
// Both sizes, both states — guards the sm checked state, where the check
|
|
34
36
|
// indicator must clear the thumb rather than tuck under it.
|
|
35
37
|
export const Sizes: Story = {
|
|
38
|
+
parameters: { controls: { disable: true } },
|
|
36
39
|
render: () => (
|
|
37
40
|
<div className="flex items-center gap-8">
|
|
38
41
|
<div className="flex flex-col items-center gap-3">
|
|
@@ -55,6 +58,7 @@ export const Sizes: Story = {
|
|
|
55
58
|
};
|
|
56
59
|
|
|
57
60
|
export const RealisticUse: Story = {
|
|
61
|
+
parameters: { controls: { disable: true } },
|
|
58
62
|
render: () => (<div className="flex items-center gap-2">
|
|
59
63
|
<Switch id="airplane" />
|
|
60
64
|
<Label htmlFor="airplane">Airplane mode</Label>
|