@behavioral-agentic-design-system/core 0.47.0 → 0.49.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 +1 -1
- package/scripts/build-tokens.cjs +24 -3
- package/scripts/ux-smoke.mjs +5 -1
- package/src/api/save-tokens.ts +170 -24
- package/src/app/layout.tsx +12 -1
- package/src/app/preview/components/page.tsx +114 -18
- package/src/app/preview/global-font-client.tsx +2 -0
- package/src/app/providers.tsx +2 -0
- package/src/app/shell.tsx +50 -156
- package/src/components/customize/brand-mark-section.tsx +65 -95
- package/src/components/customize/font-pickers.tsx +25 -2
- package/src/components/customize/save-bar.tsx +120 -7
- package/src/components/customize/theme-io.tsx +62 -21
- package/src/components/customize-tab.tsx +3 -1
- package/src/components/home-recent.tsx +58 -25
- package/src/components/motion/reveal.tsx +168 -12
- package/src/components/studio/control-panel.tsx +98 -19
- package/src/components/studio/import-theme-dialog.tsx +167 -0
- package/src/components/studio/tokens-panel.tsx +215 -0
- package/src/components/studio/types.ts +5 -2
- package/src/components/studio/use-studio-tweaks.ts +36 -4
- package/src/components/studio/use-token-edits.ts +160 -0
- package/src/components/ui/number-field.tsx +390 -0
- package/src/components/ui/toggle-tip.tsx +38 -29
- package/src/data/component-added.json +4 -0
- package/src/data/component-stories.json +1214 -0
- package/src/data/docs-index.ts +7 -2
- package/src/data/hidden-views.ts +22 -0
- package/src/data/history.json +51 -51
- package/src/data/sticker-sheet.json +1918 -1808
- package/src/fonts/Figtree-OFL.txt +93 -0
- package/src/fonts/figtree-latin-ext-wght-normal.woff2 +0 -0
- package/src/fonts/figtree-latin-wght-italic.woff2 +0 -0
- package/src/fonts/figtree-latin-wght-normal.woff2 +0 -0
- package/src/fonts-cdn.css +3 -1
- package/src/fonts.css +44 -0
- package/src/hooks/use-global-heading-font.ts +104 -0
- package/src/hooks/use-global-sans-font.ts +8 -3
- package/src/hooks/use-global-theme.ts +2 -2
- package/src/hooks/use-token-overrides.ts +62 -14
- package/src/lib/css-color.ts +42 -0
- package/src/lib/storybook-url.ts +28 -0
- package/src/lib/theme-editor.ts +7 -1
- package/src/lib/theme-import.ts +99 -0
- package/src/lib/theme-transition.ts +93 -0
- package/src/lib/token-list.ts +133 -0
- package/src/lib/token-value.ts +31 -0
- package/src/stories/Accordion.stories.tsx +1 -1
- package/src/stories/Affix.stories.tsx +1 -1
- package/src/stories/AiBadge.stories.tsx +1 -1
- package/src/stories/Alert.stories.tsx +1 -1
- package/src/stories/AlertDialog.stories.tsx +1 -1
- package/src/stories/AngleSlider.stories.tsx +1 -1
- package/src/stories/AnnouncementBar.stories.tsx +2 -2
- package/src/stories/AspectRatio.stories.tsx +1 -1
- package/src/stories/Attachment.stories.tsx +1 -1
- package/src/stories/Autocomplete.stories.tsx +1 -1
- package/src/stories/Avatar.stories.tsx +1 -1
- package/src/stories/Badge.stories.tsx +1 -1
- package/src/stories/Blockquote.stories.tsx +1 -1
- package/src/stories/Burger.stories.tsx +1 -1
- package/src/stories/Button.stories.tsx +1 -1
- package/src/stories/ButtonGroup.stories.tsx +1 -1
- package/src/stories/Calendar.stories.tsx +1 -1
- package/src/stories/Callout.stories.tsx +1 -1
- package/src/stories/Canvas.stories.tsx +1 -1
- package/src/stories/Card.stories.tsx +1 -1
- package/src/stories/Carousel.stories.tsx +1 -1
- package/src/stories/Cascader.stories.tsx +1 -1
- package/src/stories/Chart.stories.tsx +1 -1
- package/src/stories/ChatBubble.stories.tsx +1 -1
- package/src/stories/ChatMarker.stories.tsx +1 -1
- package/src/stories/Checkbox.stories.tsx +1 -1
- package/src/stories/CheckboxCard.stories.tsx +1 -1
- package/src/stories/CheckboxGroup.stories.tsx +2 -1
- package/src/stories/Chip.stories.tsx +1 -1
- package/src/stories/CircularProgress.stories.tsx +1 -1
- package/src/stories/Clipboard.stories.tsx +1 -1
- package/src/stories/CloseButton.stories.tsx +1 -1
- package/src/stories/Code.stories.tsx +1 -1
- package/src/stories/Collapsible.stories.tsx +1 -1
- package/src/stories/ColorPicker.stories.tsx +1 -1
- package/src/stories/ColorSwatch.stories.tsx +1 -1
- package/src/stories/Combobox.stories.tsx +1 -1
- package/src/stories/Container.stories.tsx +1 -1
- package/src/stories/ContextMenu.stories.tsx +1 -1
- package/src/stories/CopyButton.stories.tsx +1 -1
- package/src/stories/DataList.stories.tsx +1 -1
- package/src/stories/DataTable.stories.tsx +1 -1
- package/src/stories/DateField.stories.tsx +1 -1
- package/src/stories/DatePicker.stories.tsx +1 -1
- package/src/stories/DateRangePicker.stories.tsx +1 -1
- package/src/stories/Dialog.stories.tsx +1 -1
- package/src/stories/Drawer.stories.tsx +1 -1
- package/src/stories/DropdownMenu.stories.tsx +1 -1
- package/src/stories/Editable.stories.tsx +1 -1
- package/src/stories/EmptyState.stories.tsx +1 -1
- package/src/stories/FacetedFilter.stories.tsx +1 -1
- package/src/stories/Field.stories.tsx +1 -1
- package/src/stories/Fieldset.stories.tsx +1 -1
- package/src/stories/FileButton.stories.tsx +1 -1
- package/src/stories/FileUpload.stories.tsx +1 -1
- package/src/stories/FloatLabel.stories.tsx +1 -1
- package/src/stories/FloatingActionButton.stories.tsx +1 -1
- package/src/stories/FloatingIndicator.stories.tsx +1 -1
- package/src/stories/FloatingPanel.stories.tsx +1 -1
- package/src/stories/FocusTrap.stories.tsx +1 -1
- package/src/stories/FormatByte.stories.tsx +1 -1
- package/src/stories/FormatDate.stories.tsx +1 -1
- package/src/stories/FormatNumber.stories.tsx +1 -1
- package/src/stories/FormatRelativeTime.stories.tsx +1 -1
- package/src/stories/GaugeChart.stories.tsx +1 -1
- package/src/stories/Grid.stories.tsx +1 -1
- package/src/stories/Heatmap.stories.tsx +1 -1
- package/src/stories/Highlight.stories.tsx +1 -1
- package/src/stories/HoverCard.stories.tsx +1 -1
- package/src/stories/Icon.stories.tsx +1 -1
- package/src/stories/Image.stories.tsx +1 -1
- package/src/stories/Indicator.stories.tsx +1 -1
- package/src/stories/InfiniteScroll.stories.tsx +1 -1
- package/src/stories/InlineEdit.stories.tsx +1 -1
- package/src/stories/Input.stories.tsx +1 -1
- package/src/stories/InputClearButton.stories.tsx +1 -1
- package/src/stories/InputGroup.stories.tsx +1 -1
- package/src/stories/JsonInput.stories.tsx +1 -1
- package/src/stories/Kbd.stories.tsx +1 -1
- package/src/stories/KeyboardShortcut.stories.tsx +1 -1
- package/src/stories/Label.stories.tsx +1 -1
- package/src/stories/List.stories.tsx +1 -1
- package/src/stories/Listbox.stories.tsx +1 -1
- package/src/stories/LoadingDots.stories.tsx +1 -1
- package/src/stories/LoadingOverlay.stories.tsx +1 -1
- package/src/stories/Mark.stories.tsx +1 -1
- package/src/stories/MarkdownPreview.stories.tsx +1 -1
- package/src/stories/Marquee.stories.tsx +1 -1
- package/src/stories/Masonry.stories.tsx +1 -1
- package/src/stories/Meter.stories.tsx +1 -1
- package/src/stories/MonthPicker.stories.tsx +1 -1
- package/src/stories/MotionToggle.stories.tsx +1 -1
- package/src/stories/MultiSelect.stories.tsx +1 -1
- package/src/stories/NativeSelect.stories.tsx +1 -1
- package/src/stories/NavigationProgress.stories.tsx +1 -1
- package/src/stories/Notification.stories.tsx +1 -1
- package/src/stories/NumberField.stories.tsx +214 -0
- package/src/stories/NumberInput.stories.tsx +1 -1
- package/src/stories/OtpInput.stories.tsx +1 -1
- package/src/stories/Overlay.stories.tsx +1 -1
- package/src/stories/PageHeader.stories.tsx +1 -1
- package/src/stories/PasswordInput.stories.tsx +1 -1
- package/src/stories/PasswordStrengthInput.stories.tsx +1 -1
- package/src/stories/PhoneInput.stories.tsx +1 -1
- package/src/stories/Pill.stories.tsx +1 -1
- package/src/stories/PinInput.stories.tsx +1 -1
- package/src/stories/Popover.stories.tsx +1 -1
- package/src/stories/Portal.stories.tsx +1 -1
- package/src/stories/Presence.stories.tsx +1 -1
- package/src/stories/Progress.stories.tsx +1 -1
- package/src/stories/ProgressStack.stories.tsx +1 -1
- package/src/stories/Prose.stories.tsx +1 -1
- package/src/stories/QrCode.stories.tsx +1 -1
- package/src/stories/Questionnaire.stories.tsx +1 -1
- package/src/stories/RadioGroup.stories.tsx +1 -1
- package/src/stories/RatingGroup.stories.tsx +1 -1
- package/src/stories/Resizable.stories.tsx +1 -1
- package/src/stories/Result.stories.tsx +1 -1
- package/src/stories/Reveal.stories.tsx +1 -1
- package/src/stories/RollingNumber.stories.tsx +1 -1
- package/src/stories/ScrollArea.stories.tsx +1 -1
- package/src/stories/ScrollProgress.stories.tsx +1 -1
- package/src/stories/SearchInput.stories.tsx +1 -1
- package/src/stories/SegmentedControl.stories.tsx +1 -1
- package/src/stories/Select.stories.tsx +1 -1
- package/src/stories/Separator.stories.tsx +1 -1
- package/src/stories/Sheet.stories.tsx +1 -1
- package/src/stories/SignaturePad.stories.tsx +1 -1
- package/src/stories/SimpleGrid.stories.tsx +1 -1
- package/src/stories/Skeleton.stories.tsx +1 -1
- package/src/stories/SkeletonTable.stories.tsx +1 -1
- package/src/stories/Slider.stories.tsx +1 -1
- package/src/stories/Snackbar.stories.tsx +1 -1
- package/src/stories/Sonner.stories.tsx +1 -1
- package/src/stories/SortableList.stories.tsx +1 -1
- package/src/stories/Sparkline.stories.tsx +1 -1
- package/src/stories/Spinner.stories.tsx +1 -1
- package/src/stories/Spoiler.stories.tsx +1 -1
- package/src/stories/Squircle.stories.tsx +1 -1
- package/src/stories/Stack.stories.tsx +1 -1
- package/src/stories/StatusBadge.stories.tsx +1 -1
- package/src/stories/Switch.stories.tsx +1 -1
- package/src/stories/Table.stories.tsx +1 -1
- package/src/stories/Tag.stories.tsx +1 -1
- package/src/stories/TagsInput.stories.tsx +1 -1
- package/src/stories/Text.stories.tsx +1 -1
- package/src/stories/Textarea.stories.tsx +1 -1
- package/src/stories/ThemeIcon.stories.tsx +1 -1
- package/src/stories/TimePicker.stories.tsx +1 -1
- package/src/stories/Timeline.stories.tsx +1 -1
- package/src/stories/Timer.stories.tsx +1 -1
- package/src/stories/Toggle.stories.tsx +1 -1
- package/src/stories/ToggleGroup.stories.tsx +1 -1
- package/src/stories/ToggleTip.stories.tsx +106 -1
- package/src/stories/Tooltip.stories.tsx +56 -1
- package/src/stories/TransferList.stories.tsx +1 -1
- package/src/stories/TreeSelect.stories.tsx +1 -1
- package/src/stories/TypingIndicator.stories.tsx +1 -1
- package/src/stories/VisuallyHidden.stories.tsx +1 -1
- package/src/stories/Watermark.stories.tsx +1 -1
- package/src/stories/WeekPicker.stories.tsx +1 -1
- package/src/stories/WordRotate.stories.tsx +1 -1
- package/src/stories/YearPicker.stories.tsx +1 -1
- package/src/stories/story-groups.json +216 -223
- package/src/styles.css +20 -3
- package/src/tokens.default.json +6 -1
- package/src/tokens.json +7 -2
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "@behavioral-agentic-design-system/core/components/ui/avatar";
|
|
19
19
|
|
|
20
20
|
const meta: Meta<typeof Notification> = {
|
|
21
|
-
title: "Components/Feedback/Notification",
|
|
21
|
+
title: "Components/Feedback & Overlays/Notification",
|
|
22
22
|
component: Notification,
|
|
23
23
|
parameters: { layout: "centered" },
|
|
24
24
|
tags: ["autodocs"],
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
// ring-[3px] advisory marker added to number-field.tsx (2026-11-11); story coverage unchanged.
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { NumberField } from "@behavioral-agentic-design-system/core/components/ui/number-field";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof NumberField> = {
|
|
7
|
+
title: "Components/Forms & Inputs/NumberField",
|
|
8
|
+
component: NumberField,
|
|
9
|
+
parameters: { layout: "centered" },
|
|
10
|
+
tags: ["autodocs"],
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof NumberField>;
|
|
14
|
+
|
|
15
|
+
// ─── Controlled wrapper ────────────────────────────────────────────────────────
|
|
16
|
+
function Controlled(props: Omit<React.ComponentProps<typeof NumberField>, "value" | "onChange">) {
|
|
17
|
+
const [value, setValue] = React.useState(props.defaultValue ?? 0);
|
|
18
|
+
return <NumberField {...props} value={value} onChange={setValue} />;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// ─── Default ──────────────────────────────────────────────────────────────────
|
|
22
|
+
export const Default: Story = {
|
|
23
|
+
parameters: { controls: { disable: true } },
|
|
24
|
+
render: () => (
|
|
25
|
+
<div className="w-64">
|
|
26
|
+
<Controlled label="Quantity" defaultValue={1} min={1} />
|
|
27
|
+
</div>
|
|
28
|
+
),
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// ─── Required ─────────────────────────────────────────────────────────────────
|
|
32
|
+
export const Required: Story = {
|
|
33
|
+
parameters: { controls: { disable: true } },
|
|
34
|
+
render: () => (
|
|
35
|
+
<div className="w-64">
|
|
36
|
+
<Controlled
|
|
37
|
+
label="Seat count"
|
|
38
|
+
required
|
|
39
|
+
defaultValue={1}
|
|
40
|
+
min={1}
|
|
41
|
+
max={50}
|
|
42
|
+
helperText="Maximum 50 seats per booking"
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
),
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// ─── With helper text ─────────────────────────────────────────────────────────
|
|
49
|
+
export const WithHelperText: Story = {
|
|
50
|
+
parameters: { controls: { disable: true } },
|
|
51
|
+
render: () => (
|
|
52
|
+
<div className="w-64">
|
|
53
|
+
<Controlled
|
|
54
|
+
label="Line spacing"
|
|
55
|
+
defaultValue={1.5}
|
|
56
|
+
step={0.1}
|
|
57
|
+
min={1}
|
|
58
|
+
max={3}
|
|
59
|
+
helperText="Recommended: 1.4–1.8 for body text"
|
|
60
|
+
/>
|
|
61
|
+
</div>
|
|
62
|
+
),
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// ─── Error / invalid state ─────────────────────────────────────────────────────
|
|
66
|
+
export const Invalid: Story = {
|
|
67
|
+
parameters: { controls: { disable: true } },
|
|
68
|
+
render: () => (
|
|
69
|
+
<div className="w-64">
|
|
70
|
+
<Controlled
|
|
71
|
+
label="Stock quantity"
|
|
72
|
+
defaultValue={-1}
|
|
73
|
+
min={0}
|
|
74
|
+
errorMessage="Quantity cannot be negative"
|
|
75
|
+
/>
|
|
76
|
+
</div>
|
|
77
|
+
),
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// ─── Disabled ─────────────────────────────────────────────────────────────────
|
|
81
|
+
export const Disabled: Story = {
|
|
82
|
+
parameters: { controls: { disable: true } },
|
|
83
|
+
render: () => (
|
|
84
|
+
<div className="w-64">
|
|
85
|
+
<Controlled label="Seat count" defaultValue={5} disabled />
|
|
86
|
+
</div>
|
|
87
|
+
),
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// ─── Size_Sm ──────────────────────────────────────────────────────────────────
|
|
91
|
+
export const Size_Sm: Story = {
|
|
92
|
+
parameters: { controls: { disable: true } },
|
|
93
|
+
render: () => (
|
|
94
|
+
<div className="w-64">
|
|
95
|
+
<Controlled label="Quantity" size="sm" defaultValue={1} min={1} />
|
|
96
|
+
</div>
|
|
97
|
+
),
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
// ─── Size_Default ─────────────────────────────────────────────────────────────
|
|
101
|
+
export const Size_Default: Story = {
|
|
102
|
+
parameters: { controls: { disable: true } },
|
|
103
|
+
render: () => (
|
|
104
|
+
<div className="w-64">
|
|
105
|
+
<Controlled label="Quantity" size="default" defaultValue={1} min={1} />
|
|
106
|
+
</div>
|
|
107
|
+
),
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// ─── Size_Lg ──────────────────────────────────────────────────────────────────
|
|
111
|
+
export const Size_Lg: Story = {
|
|
112
|
+
parameters: { controls: { disable: true } },
|
|
113
|
+
render: () => (
|
|
114
|
+
<div className="w-64">
|
|
115
|
+
<Controlled label="Quantity" size="lg" defaultValue={1} min={1} />
|
|
116
|
+
</div>
|
|
117
|
+
),
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// ─── Currency format ──────────────────────────────────────────────────────────
|
|
121
|
+
export const Variant_Currency: Story = {
|
|
122
|
+
parameters: { controls: { disable: true } },
|
|
123
|
+
render: () => (
|
|
124
|
+
<div className="w-64">
|
|
125
|
+
<Controlled
|
|
126
|
+
label="Price"
|
|
127
|
+
defaultValue={29.99}
|
|
128
|
+
step={0.01}
|
|
129
|
+
min={0}
|
|
130
|
+
formatOptions={{ style: "currency", currency: "USD" }}
|
|
131
|
+
helperText="Enter price before tax"
|
|
132
|
+
/>
|
|
133
|
+
</div>
|
|
134
|
+
),
|
|
135
|
+
name: "Variant: Currency (USD)",
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
// ─── Percentage format ────────────────────────────────────────────────────────
|
|
139
|
+
export const Variant_Percentage: Story = {
|
|
140
|
+
parameters: { controls: { disable: true } },
|
|
141
|
+
render: () => (
|
|
142
|
+
<div className="w-64">
|
|
143
|
+
<Controlled
|
|
144
|
+
label="Discount"
|
|
145
|
+
defaultValue={25}
|
|
146
|
+
min={0}
|
|
147
|
+
max={100}
|
|
148
|
+
step={5}
|
|
149
|
+
formatOptions={{ style: "percent", maximumFractionDigits: 0 }}
|
|
150
|
+
helperText="Applied at checkout"
|
|
151
|
+
/>
|
|
152
|
+
</div>
|
|
153
|
+
),
|
|
154
|
+
name: "Variant: Percentage",
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
// ─── Locale format ────────────────────────────────────────────────────────────
|
|
158
|
+
export const Variant_EuroCurrency: Story = {
|
|
159
|
+
parameters: { controls: { disable: true } },
|
|
160
|
+
render: () => (
|
|
161
|
+
<div className="w-64">
|
|
162
|
+
<Controlled
|
|
163
|
+
label="Preis"
|
|
164
|
+
defaultValue={1234.5}
|
|
165
|
+
step={0.01}
|
|
166
|
+
min={0}
|
|
167
|
+
locale="de-DE"
|
|
168
|
+
formatOptions={{ style: "currency", currency: "EUR" }}
|
|
169
|
+
/>
|
|
170
|
+
</div>
|
|
171
|
+
),
|
|
172
|
+
name: "Variant: Euro (de-DE locale)",
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
// ─── Realistic use ────────────────────────────────────────────────────────────
|
|
176
|
+
export const RealisticUse: Story = {
|
|
177
|
+
parameters: { controls: { disable: true } },
|
|
178
|
+
render: () => {
|
|
179
|
+
const [quantity, setQuantity] = React.useState(2);
|
|
180
|
+
const [price, setPrice] = React.useState(49.0);
|
|
181
|
+
const total = quantity * price;
|
|
182
|
+
return (
|
|
183
|
+
<div className="w-80 flex flex-col gap-5">
|
|
184
|
+
<NumberField
|
|
185
|
+
label="Quantity"
|
|
186
|
+
value={quantity}
|
|
187
|
+
onChange={setQuantity}
|
|
188
|
+
min={1}
|
|
189
|
+
max={99}
|
|
190
|
+
required
|
|
191
|
+
helperText="Maximum 99 per order"
|
|
192
|
+
/>
|
|
193
|
+
<NumberField
|
|
194
|
+
label="Unit price"
|
|
195
|
+
value={price}
|
|
196
|
+
onChange={setPrice}
|
|
197
|
+
step={0.01}
|
|
198
|
+
min={0}
|
|
199
|
+
formatOptions={{ style: "currency", currency: "USD" }}
|
|
200
|
+
helperText="Price before quantity discount"
|
|
201
|
+
/>
|
|
202
|
+
<div className="flex justify-between text-sm pt-1 border-t border-border">
|
|
203
|
+
<span className="text-muted-foreground">Total</span>
|
|
204
|
+
<span className="font-medium tabular-nums">
|
|
205
|
+
{new Intl.NumberFormat("en-US", {
|
|
206
|
+
style: "currency",
|
|
207
|
+
currency: "USD",
|
|
208
|
+
}).format(total)}
|
|
209
|
+
</span>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
);
|
|
213
|
+
},
|
|
214
|
+
};
|
|
@@ -5,7 +5,7 @@ import { Label } from "@behavioral-agentic-design-system/core/components/ui/labe
|
|
|
5
5
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof NumberInput> = {
|
|
8
|
-
title: "Components/Forms/NumberInput",
|
|
8
|
+
title: "Components/Forms & Inputs/NumberInput",
|
|
9
9
|
component: NumberInput,
|
|
10
10
|
parameters: { layout: "centered" },
|
|
11
11
|
tags: ["autodocs"],
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { OTPInput } from "@behavioral-agentic-design-system/core/components/ui/otp-input";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof OTPInput> = {
|
|
6
|
-
title: "Components/Forms/OTPInput",
|
|
6
|
+
title: "Components/Forms & Inputs/OTPInput",
|
|
7
7
|
component: OTPInput,
|
|
8
8
|
parameters: { layout: "centered" },
|
|
9
9
|
tags: ["autodocs"],
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "@behavioral-agentic-design-system/core/components/ui/card";
|
|
14
14
|
|
|
15
15
|
const meta: Meta<typeof Overlay> = {
|
|
16
|
-
title: "Components/
|
|
16
|
+
title: "Components/Foundations/Overlay",
|
|
17
17
|
component: Overlay,
|
|
18
18
|
parameters: {
|
|
19
19
|
layout: "centered",
|
|
@@ -3,7 +3,7 @@ import { PageHeader } from "@behavioral-agentic-design-system/core/components/ui
|
|
|
3
3
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button"
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof PageHeader> = {
|
|
6
|
-
title: "Components/
|
|
6
|
+
title: "Components/Foundations/PageHeader",
|
|
7
7
|
component: PageHeader,
|
|
8
8
|
parameters: { layout: "padded" },
|
|
9
9
|
tags: ["autodocs"],
|
|
@@ -3,7 +3,7 @@ import { PasswordInput } from "@behavioral-agentic-design-system/core/components
|
|
|
3
3
|
import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof PasswordInput> = {
|
|
6
|
-
title: "Components/Forms/PasswordInput",
|
|
6
|
+
title: "Components/Forms & Inputs/PasswordInput",
|
|
7
7
|
component: PasswordInput,
|
|
8
8
|
parameters: { layout: "centered" },
|
|
9
9
|
args: { placeholder: "Enter password" },
|
|
@@ -5,7 +5,7 @@ import { Label } from "@behavioral-agentic-design-system/core/components/ui/labe
|
|
|
5
5
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button"
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof PasswordStrengthInput> = {
|
|
8
|
-
title: "Components/Forms/PasswordStrengthInput",
|
|
8
|
+
title: "Components/Forms & Inputs/PasswordStrengthInput",
|
|
9
9
|
component: PasswordStrengthInput,
|
|
10
10
|
parameters: { layout: "centered" },
|
|
11
11
|
args: {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "@behavioral-agentic-design-system/core/components/ui/field";
|
|
10
10
|
|
|
11
11
|
const meta: Meta<typeof PhoneInput> = {
|
|
12
|
-
title: "Components/Forms/PhoneInput",
|
|
12
|
+
title: "Components/Forms & Inputs/PhoneInput",
|
|
13
13
|
component: PhoneInput,
|
|
14
14
|
parameters: {
|
|
15
15
|
layout: "centered",
|
|
@@ -4,7 +4,7 @@ import { Avatar, AvatarFallback } from "@behavioral-agentic-design-system/core/c
|
|
|
4
4
|
import { GitBranch, Globe, Lock, Palette } from "lucide-react";
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof Pill> = {
|
|
7
|
-
title: "Components/
|
|
7
|
+
title: "Components/Data Display/Pill",
|
|
8
8
|
component: Pill,
|
|
9
9
|
parameters: { layout: "centered" },
|
|
10
10
|
tags: ["autodocs"],
|
|
@@ -5,7 +5,7 @@ import { Label } from "@behavioral-agentic-design-system/core/components/ui/labe
|
|
|
5
5
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof PinInput> = {
|
|
8
|
-
title: "Components/Forms/PinInput",
|
|
8
|
+
title: "Components/Forms & Inputs/PinInput",
|
|
9
9
|
component: PinInput,
|
|
10
10
|
parameters: { layout: "centered" },
|
|
11
11
|
tags: ["autodocs"],
|
|
@@ -9,7 +9,7 @@ import { Popover, PopoverContent, PopoverTrigger } from "@behavioral-agentic-des
|
|
|
9
9
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
|
|
10
10
|
|
|
11
11
|
const meta: Meta<typeof Popover> = {
|
|
12
|
-
title: "Components/Overlays/Popover",
|
|
12
|
+
title: "Components/Feedback & Overlays/Popover",
|
|
13
13
|
component: Popover,
|
|
14
14
|
parameters: { layout: "centered" },
|
|
15
15
|
tags: ["autodocs"],
|
|
@@ -9,7 +9,7 @@ import { Label } from "@behavioral-agentic-design-system/core/components/ui/labe
|
|
|
9
9
|
import { PortalThemeProvider } from "../hooks/use-portal-theme-class"
|
|
10
10
|
|
|
11
11
|
const meta: Meta<typeof Portal> = {
|
|
12
|
-
title: "Components/Overlays/Portal",
|
|
12
|
+
title: "Components/Feedback & Overlays/Portal",
|
|
13
13
|
component: Portal,
|
|
14
14
|
parameters: { layout: "centered" },
|
|
15
15
|
tags: ["autodocs"],
|
|
@@ -15,7 +15,7 @@ import { Input } from "@behavioral-agentic-design-system/core/components/ui/inpu
|
|
|
15
15
|
import { Label } from "@behavioral-agentic-design-system/core/components/ui/label"
|
|
16
16
|
|
|
17
17
|
const meta: Meta<typeof Presence> = {
|
|
18
|
-
title: "Components/Feedback/Presence",
|
|
18
|
+
title: "Components/Feedback & Overlays/Presence",
|
|
19
19
|
component: Presence,
|
|
20
20
|
parameters: { layout: "centered" },
|
|
21
21
|
tags: ["autodocs"],
|
|
@@ -15,7 +15,7 @@ import { Progress } from "@behavioral-agentic-design-system/core/components/ui/p
|
|
|
15
15
|
* (`getValueLabel`), so the visible and announced values cannot diverge.
|
|
16
16
|
*/
|
|
17
17
|
const meta: Meta<typeof Progress> = {
|
|
18
|
-
title: "Components/Feedback/Progress",
|
|
18
|
+
title: "Components/Feedback & Overlays/Progress",
|
|
19
19
|
component: Progress,
|
|
20
20
|
parameters: {
|
|
21
21
|
layout: "centered",
|
|
@@ -20,7 +20,7 @@ import { ProgressStack } from "@behavioral-agentic-design-system/core/components
|
|
|
20
20
|
* final state immediately.
|
|
21
21
|
*/
|
|
22
22
|
const meta: Meta<typeof ProgressStack> = {
|
|
23
|
-
title: "Components/
|
|
23
|
+
title: "Components/Data Display/ProgressStack",
|
|
24
24
|
component: ProgressStack,
|
|
25
25
|
parameters: { layout: "centered" },
|
|
26
26
|
tags: ["autodocs"],
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "@behavioral-agentic-design-system/core/components/ui/card"
|
|
8
8
|
|
|
9
9
|
const meta: Meta<typeof Prose> = {
|
|
10
|
-
title: "Components/
|
|
10
|
+
title: "Components/Data Display/Prose",
|
|
11
11
|
component: Prose,
|
|
12
12
|
parameters: { layout: "centered" },
|
|
13
13
|
tags: ["autodocs"],
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { Separator } from "@behavioral-agentic-design-system/core/components/ui/separator";
|
|
13
13
|
|
|
14
14
|
const meta: Meta<typeof QRCode> = {
|
|
15
|
-
title: "Components/
|
|
15
|
+
title: "Components/Data Display/QRCode",
|
|
16
16
|
component: QRCode,
|
|
17
17
|
parameters: {
|
|
18
18
|
layout: "centered",
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "@behavioral-agentic-design-system/core/components/ui/questionnaire"
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof Questionnaire> = {
|
|
9
|
-
title: "Components/Forms/Questionnaire",
|
|
9
|
+
title: "Components/Forms & Inputs/Questionnaire",
|
|
10
10
|
component: Questionnaire,
|
|
11
11
|
parameters: {
|
|
12
12
|
layout: "centered",
|
|
@@ -3,7 +3,7 @@ import { RadioGroup, RadioGroupItem } from "@behavioral-agentic-design-system/co
|
|
|
3
3
|
import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof RadioGroup> = {
|
|
6
|
-
title: "Components/
|
|
6
|
+
title: "Components/Forms & Inputs/RadioGroup",
|
|
7
7
|
component: RadioGroup,
|
|
8
8
|
parameters: { layout: "centered" },
|
|
9
9
|
tags: ["autodocs"],
|
|
@@ -8,7 +8,7 @@ import { RatingGroup } from "@behavioral-agentic-design-system/core/components/u
|
|
|
8
8
|
// the affordance rather than a decorative pop.
|
|
9
9
|
|
|
10
10
|
const meta: Meta<typeof RatingGroup> = {
|
|
11
|
-
title: "Components/
|
|
11
|
+
title: "Components/Forms & Inputs/RatingGroup",
|
|
12
12
|
component: RatingGroup,
|
|
13
13
|
parameters: { layout: "centered" },
|
|
14
14
|
tags: ["autodocs"],
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@behavioral-agentic-design-system/core/components/ui/resizable";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof ResizablePanelGroup> = {
|
|
5
|
-
title: "Components/
|
|
5
|
+
title: "Components/Foundations/Resizable",
|
|
6
6
|
component: ResizablePanelGroup,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
tags: ["autodocs"],
|
|
@@ -5,7 +5,7 @@ import { Result } from "@behavioral-agentic-design-system/core/components/ui/res
|
|
|
5
5
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button"
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof Result> = {
|
|
8
|
-
title: "Components/Feedback/Result",
|
|
8
|
+
title: "Components/Feedback & Overlays/Result",
|
|
9
9
|
component: Result,
|
|
10
10
|
parameters: {
|
|
11
11
|
layout: "centered",
|
|
@@ -11,7 +11,7 @@ import { Card, CardContent, CardHeader, CardTitle } from "@behavioral-agentic-de
|
|
|
11
11
|
* The stories document usage; the behavior is best seen live by scrolling.
|
|
12
12
|
*/
|
|
13
13
|
const meta: Meta<typeof Reveal> = {
|
|
14
|
-
title: "Components/
|
|
14
|
+
title: "Components/Data Display/Reveal",
|
|
15
15
|
component: Reveal,
|
|
16
16
|
parameters: {
|
|
17
17
|
layout: "fullscreen",
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
|
|
12
12
|
|
|
13
13
|
const meta: Meta<typeof RollingNumber> = {
|
|
14
|
-
title: "Components/
|
|
14
|
+
title: "Components/Data Display/RollingNumber",
|
|
15
15
|
component: RollingNumber,
|
|
16
16
|
parameters: {
|
|
17
17
|
layout: "centered",
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { ScrollArea } from "@behavioral-agentic-design-system/core/components/ui/scroll-area";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof ScrollArea> = {
|
|
5
|
-
title: "Components/
|
|
5
|
+
title: "Components/Foundations/ScrollArea",
|
|
6
6
|
component: ScrollArea,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
tags: ["autodocs"],
|
|
@@ -3,7 +3,7 @@ import * as React from "react"
|
|
|
3
3
|
import { ScrollProgress } from "@behavioral-agentic-design-system/core/components/ui/scroll-progress"
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof ScrollProgress> = {
|
|
6
|
-
title: "Components/Feedback/ScrollProgress",
|
|
6
|
+
title: "Components/Feedback & Overlays/ScrollProgress",
|
|
7
7
|
component: ScrollProgress,
|
|
8
8
|
parameters: { layout: "fullscreen" },
|
|
9
9
|
tags: ["autodocs"],
|
|
@@ -4,7 +4,7 @@ import { SearchInput } from "@behavioral-agentic-design-system/core/components/u
|
|
|
4
4
|
import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof SearchInput> = {
|
|
7
|
-
title: "Components/Forms/SearchInput",
|
|
7
|
+
title: "Components/Forms & Inputs/SearchInput",
|
|
8
8
|
component: SearchInput,
|
|
9
9
|
parameters: { layout: "centered" },
|
|
10
10
|
tags: ["autodocs"],
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "@behavioral-agentic-design-system/core/components/ui/segmented-control";
|
|
14
14
|
|
|
15
15
|
const meta: Meta<typeof SegmentedControl> = {
|
|
16
|
-
title: "Components/
|
|
16
|
+
title: "Components/Forms & Inputs/SegmentedControl",
|
|
17
17
|
component: SegmentedControl,
|
|
18
18
|
parameters: { layout: "centered" },
|
|
19
19
|
tags: ["autodocs"],
|
|
@@ -9,7 +9,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
9
9
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from "@behavioral-agentic-design-system/core/components/ui/select";
|
|
10
10
|
|
|
11
11
|
const meta: Meta<typeof Select> = {
|
|
12
|
-
title: "Components/
|
|
12
|
+
title: "Components/Forms & Inputs/Select",
|
|
13
13
|
component: Select,
|
|
14
14
|
parameters: { layout: "centered" },
|
|
15
15
|
tags: ["autodocs"],
|
|
@@ -5,7 +5,7 @@ import { Separator } from "@behavioral-agentic-design-system/core/components/ui/
|
|
|
5
5
|
// never nest it inside a <p>; that's invalid HTML and throws React hydration
|
|
6
6
|
// error #418 at runtime even though `next build` reports success.
|
|
7
7
|
const meta: Meta<typeof Separator> = {
|
|
8
|
-
title: "Components/
|
|
8
|
+
title: "Components/Foundations/Separator",
|
|
9
9
|
component: Separator,
|
|
10
10
|
parameters: { layout: "centered" },
|
|
11
11
|
tags: ["autodocs"],
|
|
@@ -25,7 +25,7 @@ import { PortalThemeProvider } from "@behavioral-agentic-design-system/core/hook
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
const meta: Meta<typeof Sheet> = {
|
|
28
|
-
title: "Components/Overlays/Sheet",
|
|
28
|
+
title: "Components/Feedback & Overlays/Sheet",
|
|
29
29
|
component: Sheet,
|
|
30
30
|
parameters: { layout: "centered" },
|
|
31
31
|
tags: ["autodocs"],
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "@behavioral-agentic-design-system/core/components/ui/card"
|
|
14
14
|
|
|
15
15
|
const meta: Meta<typeof SignaturePad> = {
|
|
16
|
-
title: "Components/Forms/SignaturePad",
|
|
16
|
+
title: "Components/Forms & Inputs/SignaturePad",
|
|
17
17
|
component: SignaturePad,
|
|
18
18
|
parameters: {
|
|
19
19
|
layout: "centered",
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "@behavioral-agentic-design-system/core/components/ui/card";
|
|
11
11
|
|
|
12
12
|
const meta: Meta<typeof SimpleGrid> = {
|
|
13
|
-
title: "Components/
|
|
13
|
+
title: "Components/Foundations/SimpleGrid",
|
|
14
14
|
component: SimpleGrid,
|
|
15
15
|
parameters: { layout: "padded" },
|
|
16
16
|
tags: ["autodocs"],
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { Skeleton, SkeletonRegion } from "@behavioral-agentic-design-system/core/components/ui/skeleton";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof Skeleton> = {
|
|
5
|
-
title: "Components/Feedback/Skeleton",
|
|
5
|
+
title: "Components/Feedback & Overlays/Skeleton",
|
|
6
6
|
component: Skeleton,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
tags: ["autodocs"],
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
// under the file's real meta instead — mis-titled and impossible to find under
|
|
17
17
|
// its own name in the sidebar.
|
|
18
18
|
const meta: Meta<typeof SkeletonTable> = {
|
|
19
|
-
title: "Components/Feedback/SkeletonTable",
|
|
19
|
+
title: "Components/Feedback & Overlays/SkeletonTable",
|
|
20
20
|
component: SkeletonTable,
|
|
21
21
|
parameters: { layout: "padded" },
|
|
22
22
|
tags: ["autodocs"],
|
|
@@ -9,7 +9,7 @@ import { Slider } from "@behavioral-agentic-design-system/core/components/ui/sli
|
|
|
9
9
|
* border. Documented AAA exception lives in AGENTS.md → Known AAA exceptions.
|
|
10
10
|
*/
|
|
11
11
|
const meta: Meta<typeof Slider> = {
|
|
12
|
-
title: "Components/
|
|
12
|
+
title: "Components/Forms & Inputs/Slider",
|
|
13
13
|
component: Slider,
|
|
14
14
|
parameters: {
|
|
15
15
|
layout: "centered",
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button"
|
|
13
13
|
|
|
14
14
|
const meta: Meta<typeof SnackbarProvider> = {
|
|
15
|
-
title: "Components/Feedback/Snackbar",
|
|
15
|
+
title: "Components/Feedback & Overlays/Snackbar",
|
|
16
16
|
component: SnackbarProvider,
|
|
17
17
|
// The outlet is position: fixed at the bottom of the viewport, so the
|
|
18
18
|
// story needs the whole canvas, not a centered box.
|
|
@@ -4,7 +4,7 @@ import { Button } from "@behavioral-agentic-design-system/core/components/ui/but
|
|
|
4
4
|
import { toast } from "sonner";
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof Toaster> = {
|
|
7
|
-
title: "Components/Feedback/Sonner",
|
|
7
|
+
title: "Components/Feedback & Overlays/Sonner",
|
|
8
8
|
component: Toaster,
|
|
9
9
|
parameters: {
|
|
10
10
|
layout: "centered",
|
|
@@ -11,7 +11,7 @@ import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badg
|
|
|
11
11
|
// ─── Meta ─────────────────────────────────────────────────────────────────────
|
|
12
12
|
|
|
13
13
|
const meta = {
|
|
14
|
-
title: "Components/
|
|
14
|
+
title: "Components/Foundations/SortableList",
|
|
15
15
|
component: SortableList,
|
|
16
16
|
parameters: {
|
|
17
17
|
layout: "padded",
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import { FormatNumber } from "@behavioral-agentic-design-system/core/components/ui/format-number"
|
|
12
12
|
|
|
13
13
|
const meta: Meta<typeof Sparkline> = {
|
|
14
|
-
title: "Components/
|
|
14
|
+
title: "Components/Data Display/Sparkline",
|
|
15
15
|
component: Sparkline,
|
|
16
16
|
parameters: { layout: "centered" },
|
|
17
17
|
tags: ["autodocs"],
|
|
@@ -3,7 +3,7 @@ import { Spinner } from "@behavioral-agentic-design-system/core/components/ui/sp
|
|
|
3
3
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Spinner> = {
|
|
6
|
-
title: "Components/Feedback/Spinner",
|
|
6
|
+
title: "Components/Feedback & Overlays/Spinner",
|
|
7
7
|
component: Spinner,
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: "centered",
|