@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
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
} from "@behavioral-agentic-design-system/core/components/ui/input-group";
|
|
10
10
|
import { CopyButton } from "@behavioral-agentic-design-system/core/components/ui/copy-button";
|
|
11
11
|
import { Search, Link2 } from "lucide-react";
|
|
12
|
+
import { userEvent, within, expect } from "storybook/test";
|
|
12
13
|
|
|
13
14
|
const meta: Meta<typeof InputGroup> = {
|
|
14
15
|
title: "Components/Forms/InputGroup",
|
|
@@ -27,6 +28,7 @@ export default meta;
|
|
|
27
28
|
type Story = StoryObj<typeof InputGroup>;
|
|
28
29
|
|
|
29
30
|
export const Default: Story = {
|
|
31
|
+
parameters: { controls: { disable: true } },
|
|
30
32
|
render: () => (
|
|
31
33
|
<InputGroup className="w-80">
|
|
32
34
|
<InputGroupAddon align="inline-start">
|
|
@@ -38,6 +40,7 @@ export const Default: Story = {
|
|
|
38
40
|
};
|
|
39
41
|
|
|
40
42
|
export const Size_Sm: Story = {
|
|
43
|
+
parameters: { controls: { disable: true } },
|
|
41
44
|
render: () => (
|
|
42
45
|
<InputGroup size="sm" className="w-80">
|
|
43
46
|
<InputGroupAddon align="inline-start">
|
|
@@ -52,6 +55,7 @@ export const Size_Sm: Story = {
|
|
|
52
55
|
};
|
|
53
56
|
|
|
54
57
|
export const Size_Default: Story = {
|
|
58
|
+
parameters: { controls: { disable: true } },
|
|
55
59
|
render: () => (
|
|
56
60
|
<InputGroup size="default" className="w-80">
|
|
57
61
|
<InputGroupAddon align="inline-start">
|
|
@@ -66,6 +70,7 @@ export const Size_Default: Story = {
|
|
|
66
70
|
};
|
|
67
71
|
|
|
68
72
|
export const Size_Lg: Story = {
|
|
73
|
+
parameters: { controls: { disable: true } },
|
|
69
74
|
render: () => (
|
|
70
75
|
<InputGroup size="lg" className="w-80">
|
|
71
76
|
<InputGroupAddon align="inline-start">
|
|
@@ -80,6 +85,7 @@ export const Size_Lg: Story = {
|
|
|
80
85
|
};
|
|
81
86
|
|
|
82
87
|
export const Size_Xl: Story = {
|
|
88
|
+
parameters: { controls: { disable: true } },
|
|
83
89
|
render: () => (
|
|
84
90
|
<InputGroup size="xl" className="w-80">
|
|
85
91
|
<InputGroupAddon align="inline-start">
|
|
@@ -94,6 +100,7 @@ export const Size_Xl: Story = {
|
|
|
94
100
|
};
|
|
95
101
|
|
|
96
102
|
export const Size_2xl: Story = {
|
|
103
|
+
parameters: { controls: { disable: true } },
|
|
97
104
|
render: () => (
|
|
98
105
|
<InputGroup size="2xl" className="w-80">
|
|
99
106
|
<InputGroupAddon align="inline-start">
|
|
@@ -109,6 +116,7 @@ export const Size_2xl: Story = {
|
|
|
109
116
|
|
|
110
117
|
export const TextPrefix: Story = {
|
|
111
118
|
name: "Text prefix (protocol)",
|
|
119
|
+
parameters: { controls: { disable: true } },
|
|
112
120
|
render: () => (
|
|
113
121
|
<InputGroup className="w-96">
|
|
114
122
|
<InputGroupAddon align="inline-start">
|
|
@@ -120,12 +128,41 @@ export const TextPrefix: Story = {
|
|
|
120
128
|
),
|
|
121
129
|
};
|
|
122
130
|
|
|
131
|
+
// The whole group is one field: in dark mode the input tint (bg-input/30)
|
|
132
|
+
// covers the addons and the inline button too, so the text box never reads as
|
|
133
|
+
// a lighter block floating inside the border. Typing lands in the input and
|
|
134
|
+
// the group shows a single focus ring.
|
|
135
|
+
export const Interaction_TypesInGroup: Story = {
|
|
136
|
+
parameters: { controls: { disable: true } },
|
|
137
|
+
tags: ["test"],
|
|
138
|
+
render: () => (
|
|
139
|
+
<InputGroup className="w-80">
|
|
140
|
+
<InputGroupAddon align="inline-start">
|
|
141
|
+
<InputGroupText>$</InputGroupText>
|
|
142
|
+
</InputGroupAddon>
|
|
143
|
+
<InputGroupInput placeholder="0.00" aria-label="Monthly price" inputMode="decimal" />
|
|
144
|
+
<InputGroupAddon align="inline-end">
|
|
145
|
+
<InputGroupText>/ mo</InputGroupText>
|
|
146
|
+
</InputGroupAddon>
|
|
147
|
+
</InputGroup>
|
|
148
|
+
),
|
|
149
|
+
play: async ({ canvasElement }) => {
|
|
150
|
+
const canvas = within(canvasElement);
|
|
151
|
+
const input = canvas.getByRole("textbox", { name: "Monthly price" });
|
|
152
|
+
await userEvent.click(input);
|
|
153
|
+
await userEvent.type(input, "49.00");
|
|
154
|
+
await expect(input).toHaveValue("49.00");
|
|
155
|
+
await expect(input).toHaveFocus();
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
|
|
123
159
|
// Inline copy actions compose the CopyButton primitive — it owns the real
|
|
124
160
|
// clipboard write, the token-driven icon-swap "Copied!" animation, and the
|
|
125
161
|
// aria-live announcement. Never hand-roll a copied state (the first version
|
|
126
162
|
// of this story did, and the showcase demo then shipped a dead Copy button —
|
|
127
163
|
// Sir caught it on prod, 2026-07-06).
|
|
128
164
|
export const WithButton: Story = {
|
|
165
|
+
parameters: { controls: { disable: true } },
|
|
129
166
|
render: () => (
|
|
130
167
|
<InputGroup className="w-96">
|
|
131
168
|
<InputGroupInput
|
|
@@ -146,6 +183,7 @@ export const WithButton: Story = {
|
|
|
146
183
|
};
|
|
147
184
|
|
|
148
185
|
export const Disabled: Story = {
|
|
186
|
+
parameters: { controls: { disable: true } },
|
|
149
187
|
render: () => (
|
|
150
188
|
<InputGroup className="w-80">
|
|
151
189
|
<InputGroupAddon align="inline-start">
|
|
@@ -157,6 +195,7 @@ export const Disabled: Story = {
|
|
|
157
195
|
};
|
|
158
196
|
|
|
159
197
|
export const Invalid: Story = {
|
|
198
|
+
parameters: { controls: { disable: true } },
|
|
160
199
|
render: () => (
|
|
161
200
|
<InputGroup className="w-80" aria-invalid>
|
|
162
201
|
<InputGroupAddon align="inline-start">
|
|
@@ -173,6 +212,7 @@ export const Invalid: Story = {
|
|
|
173
212
|
};
|
|
174
213
|
|
|
175
214
|
export const RealisticUse: Story = {
|
|
215
|
+
parameters: { controls: { disable: true } },
|
|
176
216
|
render: () => (
|
|
177
217
|
<div className="flex w-96 flex-col gap-4">
|
|
178
218
|
<div className="flex flex-col gap-1.5">
|
|
@@ -17,13 +17,14 @@ export default meta;
|
|
|
17
17
|
type Story = StoryObj<typeof meta>;
|
|
18
18
|
|
|
19
19
|
export const Default: Story = {
|
|
20
|
-
|
|
20
|
+
args: { children: "⌘K" },
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
// The default variant's bottom shadow now uses the real oklch --border token:
|
|
24
24
|
// it was shadow-[…hsl(var(--border))] — hsl() wrapping an oklch value is invalid
|
|
25
25
|
// CSS and silently dropped the shadow — fixed to …var(--border) (2026-07-24).
|
|
26
26
|
export const Variant_Default: Story = {
|
|
27
|
+
parameters: { controls: { disable: true } },
|
|
27
28
|
render: () => (
|
|
28
29
|
<div className="flex items-center gap-2">
|
|
29
30
|
<Kbd variant="default">⌘</Kbd>
|
|
@@ -33,6 +34,7 @@ export const Variant_Default: Story = {
|
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
export const Variant_Outline: Story = {
|
|
37
|
+
parameters: { controls: { disable: true } },
|
|
36
38
|
render: () => (
|
|
37
39
|
<div className="flex items-center gap-2">
|
|
38
40
|
<Kbd variant="outline">⌘</Kbd>
|
|
@@ -42,6 +44,7 @@ export const Variant_Outline: Story = {
|
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
export const Size_Sm: Story = {
|
|
47
|
+
parameters: { controls: { disable: true } },
|
|
45
48
|
render: () => (
|
|
46
49
|
<div className="flex items-center gap-2">
|
|
47
50
|
<Kbd size="sm">⌘</Kbd>
|
|
@@ -52,6 +55,7 @@ export const Size_Sm: Story = {
|
|
|
52
55
|
};
|
|
53
56
|
|
|
54
57
|
export const Size_Default: Story = {
|
|
58
|
+
parameters: { controls: { disable: true } },
|
|
55
59
|
render: () => (
|
|
56
60
|
<div className="flex items-center gap-2">
|
|
57
61
|
<Kbd size="default">⌘</Kbd>
|
|
@@ -62,6 +66,7 @@ export const Size_Default: Story = {
|
|
|
62
66
|
};
|
|
63
67
|
|
|
64
68
|
export const CommonShortcuts: Story = {
|
|
69
|
+
parameters: { controls: { disable: true } },
|
|
65
70
|
render: () => (
|
|
66
71
|
<div className="flex flex-col gap-3">
|
|
67
72
|
<div className="flex items-center gap-1.5">
|
|
@@ -96,6 +101,7 @@ export const RealisticUse: Story = {
|
|
|
96
101
|
</div>
|
|
97
102
|
),
|
|
98
103
|
],
|
|
104
|
+
parameters: { controls: { disable: true } },
|
|
99
105
|
render: () => (
|
|
100
106
|
<div className="space-y-4">
|
|
101
107
|
<div>
|
|
@@ -55,6 +55,7 @@ export const Variant_Outline: Story = {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export const Disabled: Story = {
|
|
58
|
+
parameters: { controls: { disable: true } },
|
|
58
59
|
render: () => (
|
|
59
60
|
<span className="flex items-center gap-2 text-sm text-muted-foreground">
|
|
60
61
|
<KeyboardShortcut keys={["meta", "K"]} size="sm" />
|
|
@@ -64,6 +65,7 @@ export const Disabled: Story = {
|
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
export const RealisticUse: Story = {
|
|
68
|
+
parameters: { controls: { disable: true } },
|
|
67
69
|
render: () => (
|
|
68
70
|
<div className="flex flex-col gap-4">
|
|
69
71
|
<div className="flex items-center justify-between rounded-md border px-4 py-2 text-sm">
|
|
@@ -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 flex-col gap-2 w-[280px]">
|
|
17
18
|
<Label htmlFor="email">Email</Label>
|
|
18
19
|
<Input id="email" type="email" placeholder="jordan@reeves.design" />
|
|
@@ -20,6 +21,7 @@ export const Default: Story = {
|
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
export const RealisticUse: Story = {
|
|
24
|
+
parameters: { controls: { disable: true } },
|
|
23
25
|
render: () => (<div className="flex flex-col gap-2 w-[280px]">
|
|
24
26
|
<Label htmlFor="email">Email</Label>
|
|
25
27
|
<Input id="email" type="email" placeholder="jordan@reeves.design" />
|
|
@@ -29,6 +29,7 @@ type Story = StoryObj<typeof meta>
|
|
|
29
29
|
// URLs, names, and copy are entries from the persona pool.
|
|
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
|
<Text>
|
|
@@ -46,6 +47,7 @@ export const Default: Story = {
|
|
|
46
47
|
// Standalone/nav context — position identifies the link, so the underline
|
|
47
48
|
// can wait for hover.
|
|
48
49
|
export const Variant_Underline_Hover: Story = {
|
|
50
|
+
parameters: { controls: { disable: true } },
|
|
49
51
|
render: () => (
|
|
50
52
|
<nav aria-label="Documentation" className="flex flex-col gap-2 text-sm">
|
|
51
53
|
<Link href="https://design.bads.com/docs/getting-started" underline="hover">
|
|
@@ -62,6 +64,7 @@ export const Variant_Underline_Hover: Story = {
|
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
export const Variant_Underline_None: Story = {
|
|
67
|
+
parameters: { controls: { disable: true } },
|
|
65
68
|
render: () => (
|
|
66
69
|
<div className="flex items-center gap-4 text-sm">
|
|
67
70
|
<Link href="https://design.bads.com" underline="none">
|
|
@@ -78,6 +81,7 @@ export const Variant_Underline_None: Story = {
|
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
export const Variant_Tone_Foreground: Story = {
|
|
84
|
+
parameters: { controls: { disable: true } },
|
|
81
85
|
render: () => (
|
|
82
86
|
<div className="max-w-md">
|
|
83
87
|
<Text>
|
|
@@ -92,6 +96,7 @@ export const Variant_Tone_Foreground: Story = {
|
|
|
92
96
|
}
|
|
93
97
|
|
|
94
98
|
export const Variant_Tone_Muted: Story = {
|
|
99
|
+
parameters: { controls: { disable: true } },
|
|
95
100
|
render: () => (
|
|
96
101
|
<div className="flex items-center gap-3 text-sm">
|
|
97
102
|
<Link href="https://design.bads.com" tone="muted" underline="hover">
|
|
@@ -110,6 +115,7 @@ export const Variant_Tone_Muted: Story = {
|
|
|
110
115
|
// external sets target="_blank" rel="noopener noreferrer", appends the
|
|
111
116
|
// aria-hidden icon, and announces "(opens in new tab)" to screen readers.
|
|
112
117
|
export const External: Story = {
|
|
118
|
+
parameters: { controls: { disable: true } },
|
|
113
119
|
render: () => (
|
|
114
120
|
<div className="max-w-md">
|
|
115
121
|
<Text>
|
|
@@ -127,6 +133,7 @@ export const External: Story = {
|
|
|
127
133
|
// slots in and receives the styles + data attributes. Demoed with a plain
|
|
128
134
|
// <a> since Storybook has no router; the contract is identical.
|
|
129
135
|
export const AsChild: Story = {
|
|
136
|
+
parameters: { controls: { disable: true } },
|
|
130
137
|
render: () => (
|
|
131
138
|
<div className="max-w-md">
|
|
132
139
|
<Text>
|
|
@@ -146,6 +153,7 @@ export const AsChild: Story = {
|
|
|
146
153
|
// contract ([overflow-wrap:anywhere]): the unbroken string wraps instead
|
|
147
154
|
// of bleeding out of the 320px box.
|
|
148
155
|
export const LongContent: Story = {
|
|
156
|
+
parameters: { controls: { disable: true } },
|
|
149
157
|
render: () => (
|
|
150
158
|
<div className="w-[320px]">
|
|
151
159
|
<Text variant="body-sm">
|
|
@@ -159,6 +167,7 @@ export const LongContent: Story = {
|
|
|
159
167
|
}
|
|
160
168
|
|
|
161
169
|
export const RealisticUse: Story = {
|
|
170
|
+
parameters: { controls: { disable: true } },
|
|
162
171
|
render: () => (
|
|
163
172
|
<Card className="w-96">
|
|
164
173
|
<CardHeader>
|
|
@@ -30,6 +30,7 @@ export default meta
|
|
|
30
30
|
type Story = StoryObj<typeof List>
|
|
31
31
|
|
|
32
32
|
export const Default: Story = {
|
|
33
|
+
parameters: { controls: { disable: true } },
|
|
33
34
|
render: () => (
|
|
34
35
|
<List className="w-64">
|
|
35
36
|
<ListItem>Migrate to v3 tokens</ListItem>
|
|
@@ -41,6 +42,7 @@ export const Default: Story = {
|
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
export const WithIcons: Story = {
|
|
45
|
+
parameters: { controls: { disable: true } },
|
|
44
46
|
render: () => (
|
|
45
47
|
<List className="w-64">
|
|
46
48
|
<ListItem icon={<CheckIcon />}>Design tokens included</ListItem>
|
|
@@ -54,6 +56,7 @@ export const WithIcons: Story = {
|
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
export const Ordered: Story = {
|
|
59
|
+
parameters: { controls: { disable: true } },
|
|
57
60
|
render: () => (
|
|
58
61
|
<List type="ol" className="w-64">
|
|
59
62
|
<ListItem icon={<span className="font-mono text-xs text-muted-foreground select-none">01</span>}>
|
|
@@ -73,6 +76,7 @@ export const Ordered: Story = {
|
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
export const Spacing_Sm: Story = {
|
|
79
|
+
parameters: { controls: { disable: true } },
|
|
76
80
|
render: () => (
|
|
77
81
|
<List spacing="sm" className="w-64">
|
|
78
82
|
<ListItem icon={<ZapIcon />}>Lint tokens</ListItem>
|
|
@@ -84,6 +88,7 @@ export const Spacing_Sm: Story = {
|
|
|
84
88
|
}
|
|
85
89
|
|
|
86
90
|
export const Spacing_Default: Story = {
|
|
91
|
+
parameters: { controls: { disable: true } },
|
|
87
92
|
render: () => (
|
|
88
93
|
<List spacing="default" className="w-64">
|
|
89
94
|
<ListItem icon={<CircleIcon />}>Default spacing</ListItem>
|
|
@@ -94,6 +99,7 @@ export const Spacing_Default: Story = {
|
|
|
94
99
|
}
|
|
95
100
|
|
|
96
101
|
export const Spacing_Lg: Story = {
|
|
102
|
+
parameters: { controls: { disable: true } },
|
|
97
103
|
render: () => (
|
|
98
104
|
<List spacing="lg" className="w-64">
|
|
99
105
|
<ListItem icon={<StarIcon />}>Generous spacing</ListItem>
|
|
@@ -104,6 +110,7 @@ export const Spacing_Lg: Story = {
|
|
|
104
110
|
}
|
|
105
111
|
|
|
106
112
|
export const Nested: Story = {
|
|
113
|
+
parameters: { controls: { disable: true } },
|
|
107
114
|
render: () => (
|
|
108
115
|
<List className="w-72">
|
|
109
116
|
<ListItem icon={<FileTextIcon />}>
|
|
@@ -129,6 +136,7 @@ export const Nested: Story = {
|
|
|
129
136
|
}
|
|
130
137
|
|
|
131
138
|
export const RealisticUse: Story = {
|
|
139
|
+
parameters: { controls: { disable: true } },
|
|
132
140
|
render: () => (
|
|
133
141
|
<div className="w-80 rounded-lg border border-border bg-card p-5 space-y-4">
|
|
134
142
|
<div>
|
|
@@ -105,6 +105,7 @@ export const MultiSelect: Story = {
|
|
|
105
105
|
// ---------------------------------------------------------------------------
|
|
106
106
|
|
|
107
107
|
export const Disabled: Story = {
|
|
108
|
+
parameters: { controls: { disable: true } },
|
|
108
109
|
render: () => (
|
|
109
110
|
<div className="w-64">
|
|
110
111
|
<Listbox
|
|
@@ -38,15 +38,17 @@ export const Color_Primary: Story = {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export const Disabled: Story = {
|
|
41
|
+
parameters: { controls: { disable: true } },
|
|
41
42
|
render: () => (
|
|
42
43
|
<span className="inline-flex items-center gap-2 text-muted-foreground">
|
|
43
|
-
<LoadingDots
|
|
44
|
+
<LoadingDots tone="muted" size="sm" aria-label="Paused" />
|
|
44
45
|
<span className="text-sm">Paused</span>
|
|
45
46
|
</span>
|
|
46
47
|
),
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export const RealisticUse: Story = {
|
|
51
|
+
parameters: { controls: { disable: true } },
|
|
50
52
|
render: () => (
|
|
51
53
|
<div className="flex flex-col gap-6">
|
|
52
54
|
<div className="space-y-2">
|
|
@@ -59,13 +61,13 @@ export const RealisticUse: Story = {
|
|
|
59
61
|
<p className="text-xs font-medium text-muted-foreground">Inline in text</p>
|
|
60
62
|
<p className="flex items-center gap-2 text-sm text-muted-foreground">
|
|
61
63
|
Fetching results
|
|
62
|
-
<LoadingDots size="sm"
|
|
64
|
+
<LoadingDots size="sm" tone="muted" />
|
|
63
65
|
</p>
|
|
64
66
|
</div>
|
|
65
67
|
<div className="space-y-2">
|
|
66
68
|
<p className="text-xs font-medium text-muted-foreground">Standalone placeholder</p>
|
|
67
69
|
<div className="flex h-10 w-full items-center justify-center rounded-md border border-dashed">
|
|
68
|
-
<LoadingDots
|
|
70
|
+
<LoadingDots tone="muted" aria-label="Loading content" />
|
|
69
71
|
</div>
|
|
70
72
|
</div>
|
|
71
73
|
</div>
|
|
@@ -50,6 +50,7 @@ function TokenProposalBody() {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export const Default: Story = {
|
|
53
|
+
parameters: { controls: { disable: true } },
|
|
53
54
|
render: () => (
|
|
54
55
|
<LoadingOverlay loading>
|
|
55
56
|
<TokenProposalBody />
|
|
@@ -58,7 +59,7 @@ export const Default: Story = {
|
|
|
58
59
|
};
|
|
59
60
|
|
|
60
61
|
export const FullScreen: Story = {
|
|
61
|
-
parameters: { layout: "fullscreen" },
|
|
62
|
+
parameters: { controls: { disable: true }, layout: "fullscreen" },
|
|
62
63
|
render: () => (
|
|
63
64
|
<div className="p-8">
|
|
64
65
|
<p className="text-sm text-muted-foreground">
|
|
@@ -74,6 +75,7 @@ export const FullScreen: Story = {
|
|
|
74
75
|
};
|
|
75
76
|
|
|
76
77
|
export const WithBlur: Story = {
|
|
78
|
+
parameters: { controls: { disable: true } },
|
|
77
79
|
render: () => (
|
|
78
80
|
<LoadingOverlay loading blur>
|
|
79
81
|
<TokenProposalBody />
|
|
@@ -100,6 +102,7 @@ function ControlledDemo() {
|
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
export const Controlled: Story = {
|
|
105
|
+
parameters: { controls: { disable: true } },
|
|
103
106
|
render: () => <ControlledDemo />,
|
|
104
107
|
};
|
|
105
108
|
|
|
@@ -144,5 +147,6 @@ function RealisticUseDemo() {
|
|
|
144
147
|
}
|
|
145
148
|
|
|
146
149
|
export const RealisticUse: Story = {
|
|
150
|
+
parameters: { controls: { disable: true } },
|
|
147
151
|
render: () => <RealisticUseDemo />,
|
|
148
152
|
};
|
|
@@ -16,6 +16,7 @@ export default meta;
|
|
|
16
16
|
type Story = StoryObj<typeof meta>;
|
|
17
17
|
|
|
18
18
|
export const Default: Story = {
|
|
19
|
+
parameters: { controls: { disable: true } },
|
|
19
20
|
render: () => (
|
|
20
21
|
<p className="max-w-prose text-base">
|
|
21
22
|
The most important constraint in BADS is{" "}
|
|
@@ -26,6 +27,7 @@ export const Default: Story = {
|
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export const Variant_Primary: Story = {
|
|
30
|
+
parameters: { controls: { disable: true } },
|
|
29
31
|
render: () => (
|
|
30
32
|
<p className="max-w-prose text-base">
|
|
31
33
|
Use <Mark variant="primary">primary tint</Mark> for branded or
|
|
@@ -36,6 +38,7 @@ export const Variant_Primary: Story = {
|
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
export const Variant_Secondary: Story = {
|
|
41
|
+
parameters: { controls: { disable: true } },
|
|
39
42
|
render: () => (
|
|
40
43
|
<p className="max-w-prose text-base">
|
|
41
44
|
A <Mark variant="secondary">secondary surface mark</Mark> reads as
|
|
@@ -46,6 +49,7 @@ export const Variant_Secondary: Story = {
|
|
|
46
49
|
};
|
|
47
50
|
|
|
48
51
|
export const InParagraph: Story = {
|
|
52
|
+
parameters: { controls: { disable: true } },
|
|
49
53
|
render: () => (
|
|
50
54
|
<div className="max-w-prose space-y-3 text-base">
|
|
51
55
|
<p>
|
|
@@ -64,6 +68,7 @@ export const InParagraph: Story = {
|
|
|
64
68
|
};
|
|
65
69
|
|
|
66
70
|
export const RealisticUse: Story = {
|
|
71
|
+
parameters: { controls: { disable: true } },
|
|
67
72
|
render: () => (
|
|
68
73
|
<div className="max-w-prose space-y-4">
|
|
69
74
|
<h3 className="text-lg font-semibold">Release notes — v2.4.0</h3>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { MarkdownPreview } from "@behavioral-agentic-design-system/core/components/markdown-preview";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof MarkdownPreview> = {
|
|
5
|
+
title: "Components/Content and data/MarkdownPreview",
|
|
6
|
+
component: MarkdownPreview,
|
|
7
|
+
parameters: { layout: "padded" },
|
|
8
|
+
tags: ["autodocs"],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
|
|
14
|
+
export const Default: Story = {
|
|
15
|
+
args: {
|
|
16
|
+
source: "# Release notes\n\nThe canvas ships with **doc frames**.\n\n- Pan and zoom\n- Pin the spec\n\n## Next\n\nSee [the report](docs/prototype-spec-report.md).",
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** Headings carry an id built from their text, so a frame can scroll to a section. */
|
|
21
|
+
export const HeadingAnchors: Story = {
|
|
22
|
+
args: { source: "## Element inventory\n\nEvery drawn element.\n\n## Open questions\n\nOne per line." },
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A `frame:` link calls onFrameLink instead of navigating. The canvas uses it to pan to
|
|
27
|
+
* the frame an inventory row names.
|
|
28
|
+
*/
|
|
29
|
+
export const FrameLink: Story = {
|
|
30
|
+
args: {
|
|
31
|
+
source: "| Element | View |\n|---|---|\n| Card grid | [cards](frame:cards) |",
|
|
32
|
+
onFrameLink: () => {},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* A table wider than its box scrolls sideways. The scroll region takes focus, so a
|
|
38
|
+
* keyboard user can reach the clipped columns (axe: scrollable-region-focusable).
|
|
39
|
+
*/
|
|
40
|
+
export const WideOverflowing: Story = {
|
|
41
|
+
decorators: [(Story) => <div className="w-[380px]"><Story /></div>],
|
|
42
|
+
args: {
|
|
43
|
+
source:
|
|
44
|
+
"| Element | Source | Built | Notes | View |\n|---|---|---|---|---|\n| Filter drawer, Sort by group | companion text, depth 2 | yes | Three options, ranked by distance, price, and rating. | listing-editorial |\n| Version number in footer | wireframe | deferred | Approved by Matthew on 2026-10-14. | |",
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const RealisticUse: Story = {
|
|
49
|
+
args: {
|
|
50
|
+
source:
|
|
51
|
+
"# Spec\n\n## Open questions\n\n- Matthew: Should the dashboard ship a loading state before the first client review?\n- Kelsey: Does the share dialog need real event copy?\n",
|
|
52
|
+
},
|
|
53
|
+
};
|
|
@@ -81,6 +81,7 @@ function TopicChips() {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
export const Default: Story = {
|
|
84
|
+
parameters: { controls: { disable: true } },
|
|
84
85
|
render: () => (
|
|
85
86
|
<div className="w-full max-w-2xl">
|
|
86
87
|
<Marquee aria-label="Documentation topics">
|
|
@@ -91,6 +92,7 @@ export const Default: Story = {
|
|
|
91
92
|
};
|
|
92
93
|
|
|
93
94
|
export const Variant_ReverseDirection: Story = {
|
|
95
|
+
parameters: { controls: { disable: true } },
|
|
94
96
|
render: () => (
|
|
95
97
|
<div className="w-full max-w-2xl">
|
|
96
98
|
<Marquee aria-label="Documentation topics" direction="right">
|
|
@@ -101,6 +103,7 @@ export const Variant_ReverseDirection: Story = {
|
|
|
101
103
|
};
|
|
102
104
|
|
|
103
105
|
export const Variant_EdgeFade: Story = {
|
|
106
|
+
parameters: { controls: { disable: true } },
|
|
104
107
|
render: () => (
|
|
105
108
|
<div className="w-full max-w-2xl">
|
|
106
109
|
<Marquee aria-label="Documentation topics" fade>
|
|
@@ -144,6 +147,7 @@ export const WithoutControl: Story = {
|
|
|
144
147
|
};
|
|
145
148
|
|
|
146
149
|
export const RealisticUse: Story = {
|
|
150
|
+
parameters: { controls: { disable: true } },
|
|
147
151
|
render: () => (
|
|
148
152
|
<div className="w-full max-w-3xl space-y-3">
|
|
149
153
|
<p className="text-sm font-medium text-muted-foreground">
|
|
@@ -74,6 +74,7 @@ function DocNoteCard({ topic, body }: { topic: string; body: string }) {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
export const Default: Story = {
|
|
77
|
+
parameters: { controls: { disable: true } },
|
|
77
78
|
render: () => (
|
|
78
79
|
<Masonry>
|
|
79
80
|
{DOC_NOTES.map((note) => (
|
|
@@ -84,6 +85,7 @@ export const Default: Story = {
|
|
|
84
85
|
};
|
|
85
86
|
|
|
86
87
|
export const TwoColumns: Story = {
|
|
88
|
+
parameters: { controls: { disable: true } },
|
|
87
89
|
render: () => (
|
|
88
90
|
<Masonry columns={2}>
|
|
89
91
|
{DOC_NOTES.map((note) => (
|
|
@@ -94,6 +96,7 @@ export const TwoColumns: Story = {
|
|
|
94
96
|
};
|
|
95
97
|
|
|
96
98
|
export const FourColumns: Story = {
|
|
99
|
+
parameters: { controls: { disable: true } },
|
|
97
100
|
render: () => (
|
|
98
101
|
<Masonry columns={4} gap="3">
|
|
99
102
|
{DOC_NOTES.map((note) => (
|
|
@@ -105,6 +108,7 @@ export const FourColumns: Story = {
|
|
|
105
108
|
|
|
106
109
|
export const Responsive: Story = {
|
|
107
110
|
name: "Responsive ({ sm: 1, md: 2, lg: 3 })",
|
|
111
|
+
parameters: { controls: { disable: true } },
|
|
108
112
|
render: () => (
|
|
109
113
|
<Masonry columns={{ sm: 1, md: 2, lg: 3 }}>
|
|
110
114
|
{DOC_NOTES.map((note) => (
|
|
@@ -158,6 +162,7 @@ function initials(name: string) {
|
|
|
158
162
|
}
|
|
159
163
|
|
|
160
164
|
export const RealisticUse: Story = {
|
|
165
|
+
parameters: { controls: { disable: true } },
|
|
161
166
|
render: () => (
|
|
162
167
|
<Masonry columns={{ sm: 1, md: 2, lg: 3 }} gap="4">
|
|
163
168
|
{TESTIMONIALS.slice(0, 2).map((t) => (
|
|
@@ -28,6 +28,7 @@ export default meta;
|
|
|
28
28
|
type Story = StoryObj<typeof meta>;
|
|
29
29
|
|
|
30
30
|
export const Default: Story = {
|
|
31
|
+
parameters: { controls: { disable: true } },
|
|
31
32
|
render: () => (
|
|
32
33
|
<Menubar>
|
|
33
34
|
<MenubarMenu>
|
|
@@ -105,6 +106,7 @@ export const Default: Story = {
|
|
|
105
106
|
};
|
|
106
107
|
|
|
107
108
|
export const WithRadioGroup: Story = {
|
|
109
|
+
parameters: { controls: { disable: true } },
|
|
108
110
|
render: () => (
|
|
109
111
|
<Menubar>
|
|
110
112
|
<MenubarMenu>
|
|
@@ -132,6 +134,7 @@ export const WithRadioGroup: Story = {
|
|
|
132
134
|
};
|
|
133
135
|
|
|
134
136
|
export const RealisticUse: Story = {
|
|
137
|
+
parameters: { controls: { disable: true } },
|
|
135
138
|
render: () => (
|
|
136
139
|
<div className="w-full max-w-2xl rounded-md border bg-card">
|
|
137
140
|
<div className="border-b px-2 py-1.5">
|