@behavioral-agentic-design-system/core 0.37.0 → 0.39.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 +8 -4
- package/scripts/a11y-lint.cjs +8 -2
- package/scripts/a11y-ratchet.mjs +172 -0
- package/scripts/accent-as-text.mjs +274 -0
- package/scripts/bads-doctor.mjs +2 -1
- package/scripts/check-stories.mjs +265 -52
- package/scripts/contrast.mjs +44 -0
- package/scripts/health-report.mjs +211 -122
- package/scripts/lint-slop.mjs +44 -2
- package/scripts/oklch-to-hex.cjs +7 -1
- package/scripts/ratchet.mjs +326 -0
- package/scripts/slop-rules.mjs +156 -0
- package/scripts/token-nearest.mjs +333 -0
- package/scripts/wcag-audit.cjs +59 -8
- package/src/app/preview/components/page.tsx +363 -0
- package/src/components/Foundations/Typography.stories.tsx +82 -21
- package/src/components/ui/accordion.tsx +67 -5
- package/src/components/ui/alert.tsx +20 -7
- package/src/components/ui/avatar.tsx +18 -4
- package/src/components/ui/breadcrumb.tsx +47 -0
- package/src/components/ui/checkbox-card.tsx +48 -8
- package/src/components/ui/checkbox.tsx +17 -8
- package/src/components/ui/format-date.tsx +107 -0
- package/src/components/ui/progress.tsx +6 -5
- package/src/components/ui/sparkline.tsx +198 -0
- package/src/components/ui/tag.tsx +17 -1
- package/src/components/ui/tags-input.tsx +84 -11
- package/src/components/ui/toggle-group.tsx +13 -0
- package/src/components/ui/week-picker.tsx +463 -0
- package/src/data/docs-index.ts +12 -0
- package/src/lib/theme-editor.ts +7 -1
- package/src/stories/Accordion.stories.tsx +59 -1
- package/src/stories/ActionBar.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 +36 -1
- package/src/stories/AlertDialog.stories.tsx +1 -1
- package/src/stories/Anchor.stories.tsx +1 -1
- package/src/stories/AngleSlider.stories.tsx +1 -1
- package/src/stories/AspectRatio.stories.tsx +1 -1
- package/src/stories/Autocomplete.stories.tsx +1 -1
- package/src/stories/Avatar.stories.tsx +41 -1
- package/src/stories/Badge.stories.tsx +1 -1
- package/src/stories/Blockquote.stories.tsx +1 -1
- package/src/stories/BottomNavigation.stories.tsx +1 -1
- package/src/stories/Breadcrumb.stories.tsx +38 -5
- package/src/stories/Burger.stories.tsx +1 -1
- package/src/stories/Button.stories.tsx +9 -1
- package/src/stories/ButtonGroup.stories.tsx +1 -1
- package/src/stories/Calendar.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 +36 -5
- package/src/stories/CheckboxCard.stories.tsx +37 -2
- package/src/stories/CheckboxGroup.stories.tsx +1 -1
- package/src/stories/Chip.stories.tsx +1 -1
- package/src/stories/CircularProgress.stories.tsx +17 -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/Command.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 +9 -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/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 +9 -1
- package/src/stories/FocusTrap.stories.tsx +1 -1
- package/src/stories/FormatByte.stories.tsx +1 -1
- package/src/stories/FormatDate.stories.tsx +174 -0
- package/src/stories/FormatNumber.stories.tsx +1 -1
- package/src/stories/Highlight.stories.tsx +1 -1
- package/src/stories/HoverCard.stories.tsx +1 -1
- package/src/stories/Image.stories.tsx +1 -1
- package/src/stories/Indicator.stories.tsx +17 -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/Kbd.stories.tsx +1 -1
- package/src/stories/KeyboardShortcut.stories.tsx +1 -1
- package/src/stories/Label.stories.tsx +1 -1
- package/src/stories/Link.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/Marquee.stories.tsx +1 -1
- package/src/stories/Masonry.stories.tsx +1 -1
- package/src/stories/Menubar.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/NavLink.stories.tsx +1 -1
- package/src/stories/NavigationMenu.stories.tsx +1 -1
- package/src/stories/NavigationRail.stories.tsx +9 -1
- package/src/stories/Notification.stories.tsx +1 -1
- package/src/stories/NumberInput.stories.tsx +1 -1
- package/src/stories/Overlay.stories.tsx +1 -1
- package/src/stories/Pagination.stories.tsx +1 -1
- package/src/stories/PasswordInput.stories.tsx +1 -1
- package/src/stories/PinInput.stories.tsx +1 -1
- package/src/stories/Popover.stories.tsx +1 -1
- package/src/stories/Progress.stories.tsx +11 -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/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/Sidebar.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/SkipLink.stories.tsx +1 -1
- package/src/stories/Slider.stories.tsx +1 -1
- package/src/stories/Sonner.stories.tsx +1 -1
- package/src/stories/Sparkline.stories.tsx +208 -0
- package/src/stories/Spinner.stories.tsx +9 -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/Stepper.stories.tsx +1 -1
- package/src/stories/Switch.stories.tsx +1 -1
- package/src/stories/Table.stories.tsx +1 -1
- package/src/stories/Tabs.stories.tsx +1 -1
- package/src/stories/Tag.stories.tsx +23 -1
- package/src/stories/TagsInput.stories.tsx +46 -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 +9 -1
- package/src/stories/Timer.stories.tsx +1 -1
- package/src/stories/Toggle.stories.tsx +1 -1
- package/src/stories/ToggleGroup.stories.tsx +21 -1
- package/src/stories/ToggleTip.stories.tsx +1 -1
- package/src/stories/Toolbar.stories.tsx +1 -1
- package/src/stories/Tooltip.stories.tsx +1 -1
- package/src/stories/Tour.stories.tsx +1 -1
- package/src/stories/TransferList.stories.tsx +1 -1
- package/src/stories/TreeSelect.stories.tsx +1 -1
- package/src/stories/TreeView.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 +90 -0
- package/src/stories/WordRotate.stories.tsx +1 -1
- package/src/stories/YearPicker.stories.tsx +1 -1
- package/src/stories/story-groups.json +199 -0
|
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
3
3
|
import { Mark } from "@behavioral-agentic-design-system/core/components/ui/mark";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Mark> = {
|
|
6
|
-
title: "Components/Mark",
|
|
6
|
+
title: "Components/Content and data/Mark",
|
|
7
7
|
component: Mark,
|
|
8
8
|
parameters: { layout: "centered" },
|
|
9
9
|
tags: ["autodocs"],
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@behavioral-agentic-design-system/core/components/ui/card";
|
|
12
12
|
|
|
13
13
|
const meta: Meta<typeof Marquee> = {
|
|
14
|
-
title: "Components/Marquee",
|
|
14
|
+
title: "Components/Content and data/Marquee",
|
|
15
15
|
component: Marquee,
|
|
16
16
|
parameters: { layout: "padded" },
|
|
17
17
|
tags: ["autodocs"],
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "@behavioral-agentic-design-system/core/components/ui/avatar";
|
|
16
16
|
|
|
17
17
|
const meta: Meta<typeof Masonry> = {
|
|
18
|
-
title: "Components/Masonry",
|
|
18
|
+
title: "Components/Layout/Masonry",
|
|
19
19
|
component: Masonry,
|
|
20
20
|
parameters: { layout: "padded" },
|
|
21
21
|
tags: ["autodocs"],
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "@behavioral-agentic-design-system/core/components/ui/menubar";
|
|
19
19
|
|
|
20
20
|
const meta: Meta<typeof Menubar> = {
|
|
21
|
-
title: "Components/Menubar",
|
|
21
|
+
title: "Components/Navigation/Menubar",
|
|
22
22
|
component: Menubar,
|
|
23
23
|
parameters: { layout: "centered" },
|
|
24
24
|
tags: ["autodocs"],
|
|
@@ -3,7 +3,7 @@ import * as React from "react"
|
|
|
3
3
|
import { Meter } from "@behavioral-agentic-design-system/core/components/ui/meter"
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Meter> = {
|
|
6
|
-
title: "Components/Meter",
|
|
6
|
+
title: "Components/Feedback/Meter",
|
|
7
7
|
component: Meter,
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: "centered",
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
|
|
12
12
|
|
|
13
13
|
const meta: Meta<typeof MonthPicker> = {
|
|
14
|
-
title: "Components/MonthPicker",
|
|
14
|
+
title: "Components/Dates and time/MonthPicker",
|
|
15
15
|
component: MonthPicker,
|
|
16
16
|
parameters: { layout: "centered" },
|
|
17
17
|
tags: ["autodocs"],
|
|
@@ -4,7 +4,7 @@ import { userEvent, within, expect, waitFor } from "storybook/test";
|
|
|
4
4
|
import { MotionToggle } from "@behavioral-agentic-design-system/core/components/ui/motion-toggle";
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof MotionToggle> = {
|
|
7
|
-
title: "Components/MotionToggle",
|
|
7
|
+
title: "Components/Actions/MotionToggle",
|
|
8
8
|
component: MotionToggle,
|
|
9
9
|
parameters: { layout: "centered" },
|
|
10
10
|
tags: ["autodocs"],
|
|
@@ -2,7 +2,7 @@ import { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { NativeSelect } from "@behavioral-agentic-design-system/core/components/ui/native-select";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof NativeSelect> = {
|
|
5
|
-
title: "Components/NativeSelect",
|
|
5
|
+
title: "Components/Selection/NativeSelect",
|
|
6
6
|
component: NativeSelect,
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: "centered",
|
|
@@ -11,7 +11,7 @@ import { NavLink } from "@behavioral-agentic-design-system/core/components/ui/na
|
|
|
11
11
|
import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badge";
|
|
12
12
|
|
|
13
13
|
const meta: Meta<typeof NavLink> = {
|
|
14
|
-
title: "Components/NavLink",
|
|
14
|
+
title: "Components/Navigation/NavLink",
|
|
15
15
|
component: NavLink,
|
|
16
16
|
parameters: { layout: "centered" },
|
|
17
17
|
tags: ["autodocs"],
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { cn } from "@behavioral-agentic-design-system/core/lib/utils";
|
|
13
13
|
|
|
14
14
|
const meta: Meta<typeof NavigationMenu> = {
|
|
15
|
-
title: "Components/NavigationMenu",
|
|
15
|
+
title: "Components/Navigation/NavigationMenu",
|
|
16
16
|
component: NavigationMenu,
|
|
17
17
|
parameters: {
|
|
18
18
|
layout: "centered",
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badge";
|
|
28
28
|
|
|
29
29
|
const meta: Meta<typeof NavigationRail> = {
|
|
30
|
-
title: "Components/NavigationRail",
|
|
30
|
+
title: "Components/Navigation/NavigationRail",
|
|
31
31
|
component: NavigationRail,
|
|
32
32
|
parameters: { layout: "centered" },
|
|
33
33
|
tags: ["autodocs"],
|
|
@@ -257,7 +257,15 @@ export const ActiveItem: Story = {
|
|
|
257
257
|
),
|
|
258
258
|
};
|
|
259
259
|
|
|
260
|
+
/**
|
|
261
|
+
* Every option at once, for a person comparing them side by side.
|
|
262
|
+
*
|
|
263
|
+
* Tagged out of the machine-readable manifest: an assistant reading this as an
|
|
264
|
+
* example learns to render a gallery of variants where a screen was asked for.
|
|
265
|
+
* It stays visible in the sidebar, where a human reads it as the reference it is.
|
|
266
|
+
*/
|
|
260
267
|
export const AllVariants: Story = {
|
|
268
|
+
tags: ["!manifest"],
|
|
261
269
|
render: () => (
|
|
262
270
|
<div className="flex items-start gap-6">
|
|
263
271
|
<div className="space-y-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/Notification",
|
|
21
|
+
title: "Components/Feedback/Notification",
|
|
22
22
|
component: Notification,
|
|
23
23
|
parameters: { layout: "centered" },
|
|
24
24
|
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 NumberInput> = {
|
|
8
|
-
title: "Components/NumberInput",
|
|
8
|
+
title: "Components/Forms/NumberInput",
|
|
9
9
|
component: NumberInput,
|
|
10
10
|
parameters: { layout: "centered" },
|
|
11
11
|
tags: ["autodocs"],
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "@behavioral-agentic-design-system/core/components/ui/table";
|
|
19
19
|
|
|
20
20
|
const meta: Meta<typeof Pagination> = {
|
|
21
|
-
title: "Components/Pagination",
|
|
21
|
+
title: "Components/Navigation/Pagination",
|
|
22
22
|
component: Pagination,
|
|
23
23
|
parameters: { layout: "centered" },
|
|
24
24
|
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/PasswordInput",
|
|
6
|
+
title: "Components/Forms/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 PinInput> = {
|
|
8
|
-
title: "Components/PinInput",
|
|
8
|
+
title: "Components/Forms/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/Popover",
|
|
12
|
+
title: "Components/Overlays/Popover",
|
|
13
13
|
component: Popover,
|
|
14
14
|
parameters: { layout: "centered" },
|
|
15
15
|
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/Progress",
|
|
18
|
+
title: "Components/Feedback/Progress",
|
|
19
19
|
component: Progress,
|
|
20
20
|
parameters: {
|
|
21
21
|
layout: "centered",
|
|
@@ -113,12 +113,22 @@ export const Size_Lg: Story = {
|
|
|
113
113
|
),
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
+
export const Size_Xl: Story = {
|
|
117
|
+
args: { value: 62, size: "xl", label: "Storage used", showValue: true },
|
|
118
|
+
render: (args) => (
|
|
119
|
+
<div className="w-72">
|
|
120
|
+
<Progress {...args} />
|
|
121
|
+
</div>
|
|
122
|
+
),
|
|
123
|
+
};
|
|
124
|
+
|
|
116
125
|
export const Sizes: Story = {
|
|
117
126
|
render: () => (
|
|
118
127
|
<div className="w-72 space-y-6">
|
|
119
128
|
<Progress value={45} size="sm" aria-label="Small progress" />
|
|
120
129
|
<Progress value={45} aria-label="Default progress" />
|
|
121
130
|
<Progress value={45} size="lg" aria-label="Large progress" />
|
|
131
|
+
<Progress value={45} size="xl" aria-label="XL progress" />
|
|
122
132
|
</div>
|
|
123
133
|
),
|
|
124
134
|
};
|
|
@@ -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/Prose",
|
|
10
|
+
title: "Components/Content and data/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/QRCode",
|
|
15
|
+
title: "Components/Content and data/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/Questionnaire",
|
|
9
|
+
title: "Components/Forms/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/RadioGroup",
|
|
6
|
+
title: "Components/Selection/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/RatingGroup",
|
|
11
|
+
title: "Components/Selection/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/Resizable",
|
|
5
|
+
title: "Components/Layout/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/Result",
|
|
8
|
+
title: "Components/Feedback/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: "
|
|
14
|
+
title: "Components/Content and data/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/RollingNumber",
|
|
14
|
+
title: "Components/Content and data/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/ScrollArea",
|
|
5
|
+
title: "Components/Layout/ScrollArea",
|
|
6
6
|
component: ScrollArea,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
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/SearchInput",
|
|
7
|
+
title: "Components/Forms/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/SegmentedControl",
|
|
16
|
+
title: "Components/Selection/SegmentedControl",
|
|
17
17
|
component: SegmentedControl,
|
|
18
18
|
parameters: { layout: "centered" },
|
|
19
19
|
tags: ["autodocs"],
|
|
@@ -8,7 +8,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
8
8
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from "@behavioral-agentic-design-system/core/components/ui/select";
|
|
9
9
|
|
|
10
10
|
const meta: Meta<typeof Select> = {
|
|
11
|
-
title: "Components/Select",
|
|
11
|
+
title: "Components/Selection/Select",
|
|
12
12
|
component: Select,
|
|
13
13
|
parameters: { layout: "centered" },
|
|
14
14
|
tags: ["autodocs"],
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { Separator } from "@behavioral-agentic-design-system/core/components/ui/separator";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof Separator> = {
|
|
5
|
-
title: "Components/Separator",
|
|
5
|
+
title: "Components/Layout/Separator",
|
|
6
6
|
component: Separator,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
tags: ["autodocs"],
|
|
@@ -16,7 +16,7 @@ import { Textarea } from "@behavioral-agentic-design-system/core/components/ui/t
|
|
|
16
16
|
import { Avatar, AvatarFallback } from "@behavioral-agentic-design-system/core/components/ui/avatar";
|
|
17
17
|
|
|
18
18
|
const meta: Meta<typeof Sheet> = {
|
|
19
|
-
title: "Components/Sheet",
|
|
19
|
+
title: "Components/Overlays/Sheet",
|
|
20
20
|
component: Sheet,
|
|
21
21
|
parameters: { layout: "centered" },
|
|
22
22
|
tags: ["autodocs"],
|
|
@@ -8,7 +8,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
8
8
|
import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvider } from "@behavioral-agentic-design-system/core/components/ui/sidebar";
|
|
9
9
|
|
|
10
10
|
const meta: Meta<typeof Sidebar> = {
|
|
11
|
-
title: "Components/Sidebar",
|
|
11
|
+
title: "Components/Navigation/Sidebar",
|
|
12
12
|
component: Sidebar,
|
|
13
13
|
parameters: { layout: "centered" },
|
|
14
14
|
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/SignaturePad",
|
|
16
|
+
title: "Components/Forms/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/SimpleGrid",
|
|
13
|
+
title: "Components/Layout/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/Skeleton",
|
|
5
|
+
title: "Components/Feedback/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/SkeletonTable",
|
|
19
|
+
title: "Components/Feedback/SkeletonTable",
|
|
20
20
|
component: SkeletonTable,
|
|
21
21
|
parameters: { layout: "padded" },
|
|
22
22
|
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 SkipLink> = {
|
|
16
|
-
title: "Components/SkipLink",
|
|
16
|
+
title: "Components/Navigation/SkipLink",
|
|
17
17
|
component: SkipLink,
|
|
18
18
|
parameters: {
|
|
19
19
|
layout: "padded",
|
|
@@ -9,7 +9,7 @@ import { Slider } from "@behavioral-agentic-design-system/core/components/ui/sli
|
|
|
9
9
|
* border. Documented AAA exception lives in CLAUDE.md → Known AAA exceptions.
|
|
10
10
|
*/
|
|
11
11
|
const meta: Meta<typeof Slider> = {
|
|
12
|
-
title: "Components/Slider",
|
|
12
|
+
title: "Components/Selection/Slider",
|
|
13
13
|
component: Slider,
|
|
14
14
|
parameters: {
|
|
15
15
|
layout: "centered",
|
|
@@ -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/Sonner",
|
|
7
|
+
title: "Components/Feedback/Sonner",
|
|
8
8
|
component: Toaster,
|
|
9
9
|
parameters: {
|
|
10
10
|
layout: "centered",
|