Skip to content

Commit 38f4fde

Browse files
committed
reorganize stories
1 parent 9e530fd commit 38f4fde

File tree

11 files changed

+25
-15
lines changed

11 files changed

+25
-15
lines changed

src/components/Cards/Card/__stories__/Card.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/nextjs';
22
import Card from '../Card';
33

44
const meta: Meta<typeof Card> = {
5-
title: 'ArticleCard',
5+
title: 'Cards/ArticleCard',
66
component: Card,
77
};
88
export default meta;

src/components/Cards/FlatCard/__stories__/FlatCard.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/nextjs';
22
import FlatCard from '../FlatCard';
33

44
const meta: Meta<typeof FlatCard> = {
5-
title: 'FlatCard',
5+
title: 'Cards/FlatCard',
66
component: FlatCard,
77
};
88
export default meta;

src/components/Form/Checkbox/__stories__/Checkbox.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/nextjs';
22
import Checkbox from '../Checkbox';
33

44
const meta: Meta<typeof Checkbox> = {
5-
title: 'Checkbox',
5+
title: 'Forms/Checkbox',
66
component: Checkbox,
77
};
88
export default meta;

src/components/Form/Input/__stories__/Input.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/nextjs';
22
import Input from '../Input';
33

44
const meta: Meta<typeof Input> = {
5-
title: 'Input',
5+
title: 'Forms/Input',
66
component: Input,
77
};
88
export default meta;

src/components/Form/Label/__stories__/Label.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/nextjs';
22
import Label from '../Label';
33

44
const meta: Meta<typeof Label> = {
5-
title: 'FormLabel',
5+
title: 'Forms/FormLabel',
66
component: Label,
77
args: { children: 'Field Label' },
88
};

src/components/ui/__stories__/Button.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/nextjs';
22
import { Button } from '../button';
33

44
const meta: Meta<typeof Button> = {
5-
title: 'Button',
5+
title: 'Buttons/Button',
66
component: Button,
77
args: { children: 'Button' },
88
};

src/components/ui/__stories__/Card.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter }
33
import { Button } from '../button';
44

55
const meta: Meta<typeof Card> = {
6-
title: 'Card',
6+
title: 'Cards/Card',
77
component: Card,
88
};
99
export default meta;

src/components/ui/__stories__/DropdownMenu.stories.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
DropdownMenu,
44
DropdownMenuTrigger,
55
DropdownMenuContent,
6+
DropdownMenuGroup,
67
DropdownMenuItem,
78
DropdownMenuLabel,
89
DropdownMenuSeparator,
@@ -21,12 +22,14 @@ export const Default: Story = {
2122
<DropdownMenu>
2223
<DropdownMenuTrigger render={<Button variant="outline" />}>Open</DropdownMenuTrigger>
2324
<DropdownMenuContent>
24-
<DropdownMenuLabel>My Account</DropdownMenuLabel>
25-
<DropdownMenuSeparator />
26-
<DropdownMenuItem>Profile</DropdownMenuItem>
27-
<DropdownMenuItem>Settings</DropdownMenuItem>
28-
<DropdownMenuSeparator />
29-
<DropdownMenuItem variant="destructive">Log out</DropdownMenuItem>
25+
<DropdownMenuGroup>
26+
<DropdownMenuLabel>My Account</DropdownMenuLabel>
27+
<DropdownMenuSeparator />
28+
<DropdownMenuItem>Profile</DropdownMenuItem>
29+
<DropdownMenuItem>Settings</DropdownMenuItem>
30+
<DropdownMenuSeparator />
31+
<DropdownMenuItem variant="destructive">Log out</DropdownMenuItem>
32+
</DropdownMenuGroup>
3033
</DropdownMenuContent>
3134
</DropdownMenu>
3235
),

src/components/ui/__stories__/Field.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from '../field';
1111

1212
const meta: Meta<typeof Field> = {
13-
title: 'Field',
13+
title: 'Forms/Field',
1414
component: Field,
1515
};
1616
export default meta;

src/components/ui/__stories__/InlineLoadingSpinner.stories.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ import { InlineLoadingSpinner } from '../../InlineLoadingSpinner';
44
const meta: Meta<typeof InlineLoadingSpinner> = {
55
title: 'InlineLoadingSpinner',
66
component: InlineLoadingSpinner,
7+
decorators: [
8+
(Story) => (
9+
<div className="flex items-center justify-center rounded-md bg-gray-800 p-8">
10+
<Story />
11+
</div>
12+
),
13+
],
714
};
815
export default meta;
916
type Story = StoryObj<typeof InlineLoadingSpinner>;

0 commit comments

Comments
 (0)