@behavioral-agentic-design-system/core 0.38.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 +2 -2
- package/src/app/preview/components/page.tsx +362 -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 +7 -0
- 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
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { AspectRatio } from "@behavioral-agentic-design-system/core/components/ui/aspect-ratio";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof AspectRatio> = {
|
|
5
|
-
title: "Components/AspectRatio",
|
|
5
|
+
title: "Components/Layout/AspectRatio",
|
|
6
6
|
component: AspectRatio,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
tags: ["autodocs"],
|
|
@@ -4,7 +4,7 @@ import { Autocomplete } from "@behavioral-agentic-design-system/core/components/
|
|
|
4
4
|
import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof Autocomplete> = {
|
|
7
|
-
title: "Components/Autocomplete",
|
|
7
|
+
title: "Components/Selection/Autocomplete",
|
|
8
8
|
component: Autocomplete,
|
|
9
9
|
parameters: { layout: "centered" },
|
|
10
10
|
tags: ["autodocs"],
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { Avatar, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "@behavioral-agentic-design-system/core/components/ui/avatar";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof Avatar> = {
|
|
5
|
-
title: "Components/Avatar",
|
|
5
|
+
title: "Components/Badges and avatars/Avatar",
|
|
6
6
|
component: Avatar,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
tags: ["autodocs"],
|
|
@@ -11,6 +11,20 @@ const meta: Meta<typeof Avatar> = {
|
|
|
11
11
|
export default meta;
|
|
12
12
|
type Story = StoryObj<typeof meta>;
|
|
13
13
|
|
|
14
|
+
export const Size_Xs: Story = {
|
|
15
|
+
render: () => (
|
|
16
|
+
<div className="flex items-center gap-3">
|
|
17
|
+
<Avatar size="xs">
|
|
18
|
+
<AvatarImage src="/avatars/01.png" alt="Jordan Reeves" />
|
|
19
|
+
<AvatarFallback>JR</AvatarFallback>
|
|
20
|
+
</Avatar>
|
|
21
|
+
<Avatar size="xs">
|
|
22
|
+
<AvatarFallback>SP</AvatarFallback>
|
|
23
|
+
</Avatar>
|
|
24
|
+
</div>
|
|
25
|
+
),
|
|
26
|
+
};
|
|
27
|
+
|
|
14
28
|
export const Default: Story = {
|
|
15
29
|
render: () => (<div className="flex items-center gap-3">
|
|
16
30
|
<Avatar>
|
|
@@ -23,6 +37,32 @@ export const Default: Story = {
|
|
|
23
37
|
</div>),
|
|
24
38
|
};
|
|
25
39
|
|
|
40
|
+
export const Size_Xl: Story = {
|
|
41
|
+
render: () => (
|
|
42
|
+
<div className="flex items-center gap-3">
|
|
43
|
+
<Avatar size="xl">
|
|
44
|
+
<AvatarImage src="/avatars/01.png" alt="Olivia Martin" />
|
|
45
|
+
<AvatarFallback>OM</AvatarFallback>
|
|
46
|
+
</Avatar>
|
|
47
|
+
<Avatar size="xl">
|
|
48
|
+
<AvatarFallback>MS</AvatarFallback>
|
|
49
|
+
</Avatar>
|
|
50
|
+
</div>
|
|
51
|
+
),
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const Size_AllSizes: Story = {
|
|
55
|
+
render: () => (
|
|
56
|
+
<div className="flex items-end gap-3">
|
|
57
|
+
{(["xs", "sm", "default", "lg", "xl"] as const).map((size) => (
|
|
58
|
+
<Avatar key={size} size={size}>
|
|
59
|
+
<AvatarFallback>NN</AvatarFallback>
|
|
60
|
+
</Avatar>
|
|
61
|
+
))}
|
|
62
|
+
</div>
|
|
63
|
+
),
|
|
64
|
+
};
|
|
65
|
+
|
|
26
66
|
export const Shape_Circle: Story = {
|
|
27
67
|
render: () => (
|
|
28
68
|
<div className="flex items-center gap-3">
|
|
@@ -16,7 +16,7 @@ import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badg
|
|
|
16
16
|
* BADS text-xs = 14px and text-sm = 16px — both meet the AAA 14px floor.
|
|
17
17
|
*/
|
|
18
18
|
const meta: Meta<typeof Badge> = {
|
|
19
|
-
title: "Components/Badge",
|
|
19
|
+
title: "Components/Badges and avatars/Badge",
|
|
20
20
|
component: Badge,
|
|
21
21
|
parameters: { layout: "centered" },
|
|
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 Blockquote> = {
|
|
16
|
-
title: "Components/Blockquote",
|
|
16
|
+
title: "Components/Content and data/Blockquote",
|
|
17
17
|
component: Blockquote,
|
|
18
18
|
parameters: { layout: "centered" },
|
|
19
19
|
tags: ["autodocs"],
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badge";
|
|
21
21
|
|
|
22
22
|
const meta: Meta<typeof BottomNavigation> = {
|
|
23
|
-
title: "Components/BottomNavigation",
|
|
23
|
+
title: "Components/Navigation/BottomNavigation",
|
|
24
24
|
component: BottomNavigation,
|
|
25
25
|
parameters: { layout: "centered" },
|
|
26
26
|
tags: ["autodocs"],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "@behavioral-agentic-design-system/core/components/ui/breadcrumb";
|
|
2
|
+
import { Breadcrumb, BreadcrumbDropdown, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "@behavioral-agentic-design-system/core/components/ui/breadcrumb";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof Breadcrumb> = {
|
|
5
|
-
title: "Components/Breadcrumb",
|
|
5
|
+
title: "Components/Navigation/Breadcrumb",
|
|
6
6
|
component: Breadcrumb,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
tags: ["autodocs"],
|
|
@@ -23,14 +23,47 @@ export const Default: Story = {
|
|
|
23
23
|
</Breadcrumb>),
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
+
export const WithDropdown: Story = {
|
|
27
|
+
render: () => (
|
|
28
|
+
<Breadcrumb>
|
|
29
|
+
<BreadcrumbList>
|
|
30
|
+
<BreadcrumbItem><BreadcrumbLink href="#">Home</BreadcrumbLink></BreadcrumbItem>
|
|
31
|
+
<BreadcrumbSeparator />
|
|
32
|
+
<BreadcrumbItem>
|
|
33
|
+
<BreadcrumbDropdown
|
|
34
|
+
items={[
|
|
35
|
+
{ label: "Design System", href: "#" },
|
|
36
|
+
{ label: "Components", href: "#" },
|
|
37
|
+
{ label: "Primitives", href: "#" },
|
|
38
|
+
]}
|
|
39
|
+
/>
|
|
40
|
+
</BreadcrumbItem>
|
|
41
|
+
<BreadcrumbSeparator />
|
|
42
|
+
<BreadcrumbItem><BreadcrumbPage>Breadcrumb</BreadcrumbPage></BreadcrumbItem>
|
|
43
|
+
</BreadcrumbList>
|
|
44
|
+
</Breadcrumb>
|
|
45
|
+
),
|
|
46
|
+
};
|
|
47
|
+
|
|
26
48
|
export const RealisticUse: Story = {
|
|
27
|
-
render: () => (
|
|
49
|
+
render: () => (
|
|
50
|
+
<Breadcrumb>
|
|
28
51
|
<BreadcrumbList>
|
|
29
52
|
<BreadcrumbItem><BreadcrumbLink href="#">Home</BreadcrumbLink></BreadcrumbItem>
|
|
30
53
|
<BreadcrumbSeparator />
|
|
31
|
-
<BreadcrumbItem
|
|
54
|
+
<BreadcrumbItem>
|
|
55
|
+
<BreadcrumbDropdown
|
|
56
|
+
items={[
|
|
57
|
+
{ label: "Documentation", href: "#" },
|
|
58
|
+
{ label: "Components", href: "#" },
|
|
59
|
+
]}
|
|
60
|
+
/>
|
|
61
|
+
</BreadcrumbItem>
|
|
62
|
+
<BreadcrumbSeparator />
|
|
63
|
+
<BreadcrumbItem><BreadcrumbLink href="#">Navigation</BreadcrumbLink></BreadcrumbItem>
|
|
32
64
|
<BreadcrumbSeparator />
|
|
33
65
|
<BreadcrumbItem><BreadcrumbPage>Breadcrumb</BreadcrumbPage></BreadcrumbItem>
|
|
34
66
|
</BreadcrumbList>
|
|
35
|
-
</Breadcrumb>
|
|
67
|
+
</Breadcrumb>
|
|
68
|
+
),
|
|
36
69
|
};
|
|
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
3
3
|
import { Burger } from "@behavioral-agentic-design-system/core/components/ui/burger";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Burger> = {
|
|
6
|
-
title: "Components/Burger",
|
|
6
|
+
title: "Components/Actions/Burger",
|
|
7
7
|
component: Burger,
|
|
8
8
|
parameters: { layout: "centered" },
|
|
9
9
|
tags: ["autodocs"],
|
|
@@ -8,7 +8,7 @@ import { Button } from "@behavioral-agentic-design-system/core/components/ui/but
|
|
|
8
8
|
import { Heart } from "lucide-react"
|
|
9
9
|
|
|
10
10
|
const meta: Meta<typeof Button> = {
|
|
11
|
-
title: "Components/Button",
|
|
11
|
+
title: "Components/Actions/Button",
|
|
12
12
|
component: Button,
|
|
13
13
|
parameters: {
|
|
14
14
|
layout: "centered",
|
|
@@ -245,7 +245,15 @@ export const Interaction_DisabledReason: Story = {
|
|
|
245
245
|
},
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
+
/**
|
|
249
|
+
* Every option at once, for a person comparing them side by side.
|
|
250
|
+
*
|
|
251
|
+
* Tagged out of the machine-readable manifest: an assistant reading this as an
|
|
252
|
+
* example learns to render a gallery of variants where a screen was asked for.
|
|
253
|
+
* It stays visible in the sidebar, where a human reads it as the reference it is.
|
|
254
|
+
*/
|
|
248
255
|
export const AllSizes: Story = {
|
|
256
|
+
tags: ["!manifest"],
|
|
249
257
|
render: () => (
|
|
250
258
|
<div className="flex flex-wrap items-center gap-3">
|
|
251
259
|
<Button size="sm">Small</Button>
|
|
@@ -18,7 +18,7 @@ import { ButtonGroup } from "@behavioral-agentic-design-system/core/components/u
|
|
|
18
18
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button"
|
|
19
19
|
|
|
20
20
|
const meta: Meta<typeof ButtonGroup> = {
|
|
21
|
-
title: "Components/ButtonGroup",
|
|
21
|
+
title: "Components/Actions/ButtonGroup",
|
|
22
22
|
component: ButtonGroup,
|
|
23
23
|
parameters: {
|
|
24
24
|
layout: "centered",
|
|
@@ -12,7 +12,7 @@ import { Calendar } from "@behavioral-agentic-design-system/core/components/ui/c
|
|
|
12
12
|
import type { DateRange } from "react-day-picker";
|
|
13
13
|
|
|
14
14
|
const meta: Meta<typeof Calendar> = {
|
|
15
|
-
title: "Components/Calendar",
|
|
15
|
+
title: "Components/Dates and time/Calendar",
|
|
16
16
|
component: Calendar,
|
|
17
17
|
parameters: { layout: "centered" },
|
|
18
18
|
tags: ["autodocs"],
|
|
@@ -3,7 +3,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle, CardFooter }
|
|
|
3
3
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Card> = {
|
|
6
|
-
title: "Components/Card",
|
|
6
|
+
title: "Components/Layout/Card",
|
|
7
7
|
component: Card,
|
|
8
8
|
parameters: { layout: "centered" },
|
|
9
9
|
tags: ["autodocs"],
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { Card, CardContent } from "@behavioral-agentic-design-system/core/components/ui/card";
|
|
13
13
|
|
|
14
14
|
const meta: Meta<typeof Carousel> = {
|
|
15
|
-
title: "Components/Carousel",
|
|
15
|
+
title: "Components/Layout/Carousel",
|
|
16
16
|
component: Carousel,
|
|
17
17
|
parameters: {
|
|
18
18
|
layout: "centered",
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { Cascader, type CascaderOption } from "@behavioral-agentic-design-system/core/components/ui/cascader";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Cascader> = {
|
|
6
|
-
title: "Components/Cascader",
|
|
6
|
+
title: "Components/Selection/Cascader",
|
|
7
7
|
component: Cascader,
|
|
8
8
|
parameters: { layout: "centered" },
|
|
9
9
|
tags: ["autodocs"],
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "@behavioral-agentic-design-system/core/components/ui/chat-bubble";
|
|
13
13
|
|
|
14
14
|
const meta: Meta<typeof ChatBubble> = {
|
|
15
|
-
title: "Components/ChatBubble",
|
|
15
|
+
title: "Components/Badges and avatars/ChatBubble",
|
|
16
16
|
component: ChatBubble,
|
|
17
17
|
parameters: { layout: "padded" },
|
|
18
18
|
tags: ["autodocs"],
|
|
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react"
|
|
|
3
3
|
import { ChatMarker } from "../components/ui/chat-marker"
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof ChatMarker> = {
|
|
6
|
-
title: "
|
|
6
|
+
title: "Components/Badges and avatars/ChatMarker",
|
|
7
7
|
component: ChatMarker,
|
|
8
8
|
tags: ["autodocs"],
|
|
9
9
|
parameters: {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
// size prop added 2026-08-23: sm=24px visible box, default=32px (unchanged).
|
|
2
|
-
//
|
|
2
|
+
// lg=40px added 2026-09-05 for large-touch / accessible contexts.
|
|
3
|
+
// Hit area stays 44px via before:size-11 in every size (WCAG 2.2 SC 2.5.5 AAA).
|
|
3
4
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
5
|
import { Checkbox } from "@behavioral-agentic-design-system/core/components/ui/checkbox";
|
|
5
6
|
import { Label } from "@behavioral-agentic-design-system/core/components/ui/label";
|
|
6
7
|
|
|
7
8
|
const meta: Meta<typeof Checkbox> = {
|
|
8
|
-
title: "Components/Checkbox",
|
|
9
|
+
title: "Components/Selection/Checkbox",
|
|
9
10
|
component: Checkbox,
|
|
10
11
|
parameters: { layout: "centered" },
|
|
11
12
|
tags: ["autodocs"],
|
|
12
13
|
argTypes: {
|
|
13
|
-
size: { control: "select", options: ["sm", "default"] },
|
|
14
|
+
size: { control: "select", options: ["sm", "default", "lg"] },
|
|
14
15
|
},
|
|
15
16
|
};
|
|
16
17
|
|
|
@@ -47,10 +48,12 @@ export const Disabled: Story = {
|
|
|
47
48
|
};
|
|
48
49
|
|
|
49
50
|
/**
|
|
50
|
-
* Size ladder (peer parity: Mantine size, MUI size, Chakra size).
|
|
51
|
+
* Size ladder (peer parity: Mantine size, MUI size, Chakra size, Ant Design size).
|
|
51
52
|
* sm = 24px visible box — fits dense tables and list rows.
|
|
52
53
|
* default = 32px visible box — unchanged.
|
|
53
|
-
*
|
|
54
|
+
* lg = 40px visible box — large-touch / accessible contexts (kiosk, mobile
|
|
55
|
+
* consent forms, low-vision users).
|
|
56
|
+
* Hit area is 44px in every size (WCAG 2.2 SC 2.5.5 AAA pointer target).
|
|
54
57
|
*/
|
|
55
58
|
export const Size_Sm: Story = {
|
|
56
59
|
render: () => (
|
|
@@ -61,6 +64,30 @@ export const Size_Sm: Story = {
|
|
|
61
64
|
),
|
|
62
65
|
};
|
|
63
66
|
|
|
67
|
+
export const Size_Default: Story = {
|
|
68
|
+
render: () => (
|
|
69
|
+
<div className="flex items-center gap-2">
|
|
70
|
+
<Checkbox id="size-default" defaultChecked />
|
|
71
|
+
<Label htmlFor="size-default">Default checkbox</Label>
|
|
72
|
+
</div>
|
|
73
|
+
),
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const Size_Lg: Story = {
|
|
77
|
+
render: () => (
|
|
78
|
+
<div className="space-y-3">
|
|
79
|
+
<div className="flex items-center gap-3">
|
|
80
|
+
<Checkbox id="size-lg" size="lg" defaultChecked />
|
|
81
|
+
<Label htmlFor="size-lg">Large checkbox</Label>
|
|
82
|
+
</div>
|
|
83
|
+
<div className="flex items-center gap-3">
|
|
84
|
+
<Checkbox id="size-lg-mixed" size="lg" checked="indeterminate" />
|
|
85
|
+
<Label htmlFor="size-lg-mixed">Large, indeterminate</Label>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
),
|
|
89
|
+
};
|
|
90
|
+
|
|
64
91
|
export const Sizes: Story = {
|
|
65
92
|
render: () => (
|
|
66
93
|
<div className="space-y-3">
|
|
@@ -72,6 +99,10 @@ export const Sizes: Story = {
|
|
|
72
99
|
<Checkbox id="sz-default" defaultChecked />
|
|
73
100
|
<Label htmlFor="sz-default">Default (32px)</Label>
|
|
74
101
|
</div>
|
|
102
|
+
<div className="flex items-center gap-3">
|
|
103
|
+
<Checkbox id="sz-lg" size="lg" defaultChecked />
|
|
104
|
+
<Label htmlFor="sz-lg">Large (40px)</Label>
|
|
105
|
+
</div>
|
|
75
106
|
</div>
|
|
76
107
|
),
|
|
77
108
|
};
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "@behavioral-agentic-design-system/core/components/ui/checkbox-card";
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof CheckboxCard> = {
|
|
9
|
-
title: "Components/CheckboxCard",
|
|
9
|
+
title: "Components/Selection/CheckboxCard",
|
|
10
10
|
component: CheckboxCard,
|
|
11
11
|
parameters: {
|
|
12
12
|
layout: "centered",
|
|
13
13
|
docs: {
|
|
14
14
|
description: {
|
|
15
15
|
component:
|
|
16
|
-
"Card-shaped selection controls where the entire card surface is the hit area. A visually-hidden native input inside the label carries all keyboard and screen-reader behavior — Space toggles a CheckboxCard (multi-select, each card its own tab stop); RadioCards sharing a name form a native radio group (one tab stop, arrow keys move selection). Checked state paints border-primary + bg-primary/10 keyed off CSS :checked, so uncontrolled native radio groups always render correctly; the focus ring travels to the card surface via a peer overlay and appears instantly (excluded from the color transition). Motion: transition-colors on var(--duration-fast) + var(--ease-out).",
|
|
16
|
+
"Card-shaped selection controls where the entire card surface is the hit area. A visually-hidden native input inside the label carries all keyboard and screen-reader behavior — Space toggles a CheckboxCard (multi-select, each card its own tab stop); RadioCards sharing a name form a native radio group (one tab stop, arrow keys move selection). Checked state paints border-primary + bg-primary/10 keyed off CSS :checked, so uncontrolled native radio groups always render correctly; the focus ring travels to the card surface via a peer overlay and appears instantly (excluded from the color transition). Motion: transition-colors on var(--duration-fast) + var(--ease-out). Size (sm / default / lg) sets card density — padding, title-to-description gap, and the base font size children inherit (text-sm / text-sm / text-base; never below the 14px floor, card never below 44px). Peer parity: Mantine CheckboxCard, Chakra CheckboxCard, MUI Card+checkbox.",
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
},
|
|
@@ -48,6 +48,41 @@ export const Checked: Story = {
|
|
|
48
48
|
),
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
+
// Size stories omit explicit text-* on children so the card's inherited base
|
|
52
|
+
// font size is what renders — that is the size prop doing its job.
|
|
53
|
+
export const Size_Sm: Story = {
|
|
54
|
+
render: () => (
|
|
55
|
+
<CheckboxCard size="sm" className="w-72">
|
|
56
|
+
<span className="font-medium text-foreground">Orphan-token sweep</span>
|
|
57
|
+
<span className="text-muted-foreground">
|
|
58
|
+
12,417 token references scanned; zeros flagged quarterly.
|
|
59
|
+
</span>
|
|
60
|
+
</CheckboxCard>
|
|
61
|
+
),
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export const Size_Default: Story = {
|
|
65
|
+
render: () => (
|
|
66
|
+
<CheckboxCard size="default" className="w-72">
|
|
67
|
+
<span className="font-medium text-foreground">Orphan-token sweep</span>
|
|
68
|
+
<span className="text-muted-foreground">
|
|
69
|
+
12,417 token references scanned; zeros flagged quarterly.
|
|
70
|
+
</span>
|
|
71
|
+
</CheckboxCard>
|
|
72
|
+
),
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const Size_Lg: Story = {
|
|
76
|
+
render: () => (
|
|
77
|
+
<CheckboxCard size="lg" className="w-80">
|
|
78
|
+
<span className="font-medium text-foreground">Orphan-token sweep</span>
|
|
79
|
+
<span className="text-muted-foreground">
|
|
80
|
+
12,417 token references scanned; zeros flagged quarterly.
|
|
81
|
+
</span>
|
|
82
|
+
</CheckboxCard>
|
|
83
|
+
),
|
|
84
|
+
};
|
|
85
|
+
|
|
51
86
|
export const Disabled: Story = {
|
|
52
87
|
render: () => (
|
|
53
88
|
<CheckboxCard disabled className="w-72">
|
|
@@ -14,7 +14,7 @@ import { Label } from "@behavioral-agentic-design-system/core/components/ui/labe
|
|
|
14
14
|
import { Separator } from "@behavioral-agentic-design-system/core/components/ui/separator";
|
|
15
15
|
|
|
16
16
|
const meta: Meta<typeof CheckboxGroup> = {
|
|
17
|
-
title: "Components/CheckboxGroup",
|
|
17
|
+
title: "Components/Selection/CheckboxGroup",
|
|
18
18
|
component: CheckboxGroup,
|
|
19
19
|
parameters: {
|
|
20
20
|
layout: "centered",
|
|
@@ -3,7 +3,7 @@ import * as React from "react"
|
|
|
3
3
|
import { CircularProgress } from "@behavioral-agentic-design-system/core/components/ui/circular-progress"
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof CircularProgress> = {
|
|
6
|
-
title: "Components/CircularProgress",
|
|
6
|
+
title: "Components/Feedback/CircularProgress",
|
|
7
7
|
component: CircularProgress,
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: "centered",
|
|
@@ -83,7 +83,15 @@ export const WithCenterLabel: Story = {
|
|
|
83
83
|
),
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Every option at once, for a person comparing them side by side.
|
|
88
|
+
*
|
|
89
|
+
* Tagged out of the machine-readable manifest: an assistant reading this as an
|
|
90
|
+
* example learns to render a gallery of variants where a screen was asked for.
|
|
91
|
+
* It stays visible in the sidebar, where a human reads it as the reference it is.
|
|
92
|
+
*/
|
|
86
93
|
export const AllSizes: Story = {
|
|
94
|
+
tags: ["!manifest"],
|
|
87
95
|
render: () => (
|
|
88
96
|
<div className="flex items-center gap-6">
|
|
89
97
|
<CircularProgress value={65} size="sm" label="sm" />
|
|
@@ -93,7 +101,15 @@ export const AllSizes: Story = {
|
|
|
93
101
|
),
|
|
94
102
|
}
|
|
95
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Every option at once, for a person comparing them side by side.
|
|
106
|
+
*
|
|
107
|
+
* Tagged out of the machine-readable manifest: an assistant reading this as an
|
|
108
|
+
* example learns to render a gallery of variants where a screen was asked for.
|
|
109
|
+
* It stays visible in the sidebar, where a human reads it as the reference it is.
|
|
110
|
+
*/
|
|
96
111
|
export const AllVariants: Story = {
|
|
112
|
+
tags: ["!manifest"],
|
|
97
113
|
render: () => (
|
|
98
114
|
<div className="flex items-center gap-6">
|
|
99
115
|
<CircularProgress value={65} variant="default" label="default" />
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "@behavioral-agentic-design-system/core/components/ui/card"
|
|
19
19
|
|
|
20
20
|
const meta: Meta<typeof Clipboard> = {
|
|
21
|
-
title: "Components/Clipboard",
|
|
21
|
+
title: "Components/Actions/Clipboard",
|
|
22
22
|
component: Clipboard,
|
|
23
23
|
parameters: {
|
|
24
24
|
layout: "centered",
|
|
@@ -4,7 +4,7 @@ import { CloseButton } from "@behavioral-agentic-design-system/core/components/u
|
|
|
4
4
|
import { Tag } from "@behavioral-agentic-design-system/core/components/ui/tag";
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof CloseButton> = {
|
|
7
|
-
title: "Components/CloseButton",
|
|
7
|
+
title: "Components/Actions/CloseButton",
|
|
8
8
|
component: CloseButton,
|
|
9
9
|
parameters: { layout: "centered" },
|
|
10
10
|
tags: ["autodocs"],
|
|
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react"
|
|
|
3
3
|
import { Code } from "@behavioral-agentic-design-system/core/components/ui/code"
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Code> = {
|
|
6
|
-
title: "Components/Code",
|
|
6
|
+
title: "Components/Content and data/Code",
|
|
7
7
|
component: Code,
|
|
8
8
|
parameters: { layout: "centered" },
|
|
9
9
|
tags: ["autodocs"],
|
|
@@ -3,7 +3,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@behavioral
|
|
|
3
3
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Collapsible> = {
|
|
6
|
-
title: "Components/Collapsible",
|
|
6
|
+
title: "Components/Layout/Collapsible",
|
|
7
7
|
component: Collapsible,
|
|
8
8
|
parameters: { layout: "centered" },
|
|
9
9
|
tags: ["autodocs"],
|
|
@@ -10,7 +10,7 @@ import { ColorSwatch } from "@behavioral-agentic-design-system/core/components/u
|
|
|
10
10
|
* (rounded/circle/square). Not interactive — wrap in a Button to make it click.
|
|
11
11
|
*/
|
|
12
12
|
const meta: Meta<typeof ColorSwatch> = {
|
|
13
|
-
title: "Components/ColorSwatch",
|
|
13
|
+
title: "Components/Selection/ColorSwatch",
|
|
14
14
|
component: ColorSwatch,
|
|
15
15
|
parameters: {
|
|
16
16
|
layout: "centered",
|
|
@@ -7,7 +7,7 @@ import { Label } from "@behavioral-agentic-design-system/core/components/ui/labe
|
|
|
7
7
|
// role=combobox is intentionally omitted — ARIA 1.2 requires aria-controls when
|
|
8
8
|
// it's present, which cannot be wired across a portal without a ref handshake.
|
|
9
9
|
const meta: Meta<typeof Combobox> = {
|
|
10
|
-
title: "Components/Combobox",
|
|
10
|
+
title: "Components/Selection/Combobox",
|
|
11
11
|
component: Combobox,
|
|
12
12
|
parameters: { layout: "centered" },
|
|
13
13
|
tags: ["autodocs"],
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "@behavioral-agentic-design-system/core/components/ui/command";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof Command> = {
|
|
5
|
-
title: "Components/Command",
|
|
5
|
+
title: "Components/Navigation/Command",
|
|
6
6
|
component: Command,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
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 Container> = {
|
|
14
|
-
title: "Components/Container",
|
|
14
|
+
title: "Components/Layout/Container",
|
|
15
15
|
component: Container,
|
|
16
16
|
parameters: { layout: "fullscreen" },
|
|
17
17
|
tags: ["autodocs"],
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import { useState } from "react";
|
|
19
19
|
|
|
20
20
|
const meta: Meta<typeof ContextMenu> = {
|
|
21
|
-
title: "Components/ContextMenu",
|
|
21
|
+
title: "Components/Overlays/ContextMenu",
|
|
22
22
|
component: ContextMenu,
|
|
23
23
|
parameters: { layout: "centered" },
|
|
24
24
|
tags: ["autodocs"],
|
|
@@ -6,7 +6,7 @@ import * as React from "react"
|
|
|
6
6
|
import { CopyButton } from "@behavioral-agentic-design-system/core/components/ui/copy-button"
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof CopyButton> = {
|
|
9
|
-
title: "Components/CopyButton",
|
|
9
|
+
title: "Components/Actions/CopyButton",
|
|
10
10
|
component: CopyButton,
|
|
11
11
|
parameters: {
|
|
12
12
|
layout: "centered",
|
|
@@ -101,7 +101,15 @@ export const RealisticUse: Story = {
|
|
|
101
101
|
},
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Every option at once, for a person comparing them side by side.
|
|
106
|
+
*
|
|
107
|
+
* Tagged out of the machine-readable manifest: an assistant reading this as an
|
|
108
|
+
* example learns to render a gallery of variants where a screen was asked for.
|
|
109
|
+
* It stays visible in the sidebar, where a human reads it as the reference it is.
|
|
110
|
+
*/
|
|
104
111
|
export const AllVariants: Story = {
|
|
112
|
+
tags: ["!manifest"],
|
|
105
113
|
render: () => (
|
|
106
114
|
<div className="flex flex-wrap items-center gap-3">
|
|
107
115
|
<CopyButton value="default" variant="default">Default</CopyButton>
|
|
@@ -10,7 +10,7 @@ import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badg
|
|
|
10
10
|
import { Separator } from "@behavioral-agentic-design-system/core/components/ui/separator";
|
|
11
11
|
|
|
12
12
|
const meta: Meta<typeof DataList> = {
|
|
13
|
-
title: "Components/DataList",
|
|
13
|
+
title: "Components/Content and data/DataList",
|
|
14
14
|
component: DataList,
|
|
15
15
|
parameters: {
|
|
16
16
|
layout: "centered",
|
|
@@ -11,7 +11,7 @@ import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badg
|
|
|
11
11
|
// ---------------------------------------------------------------------------
|
|
12
12
|
|
|
13
13
|
const meta: Meta<typeof DataTable> = {
|
|
14
|
-
title: "Components/DataTable",
|
|
14
|
+
title: "Components/Content and data/DataTable",
|
|
15
15
|
component: DataTable,
|
|
16
16
|
parameters: {
|
|
17
17
|
layout: "padded",
|