Bring back autodocs

This commit is contained in:
2025-04-07 21:49:32 +01:00
parent d61379ac2d
commit cb13c7ba70
19 changed files with 28 additions and 15 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['!autodocs'],
tags: ['autodocs'],
argTypes: {
text: { control: 'text' },
color: { options: ['primary', 'secondary', 'tertiary'] },
+3 -1
View File
@@ -8,6 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {
text: { control: 'text' },
color: { options: ['primary', 'secondary', 'tertiary'] },
@@ -22,6 +23,7 @@ type Story = StoryObj<typeof meta>;
export const Example: Story = {
args: {
text: 'A',
color: 'tertiary'
color: 'primary',
size: 'big'
},
};
+1
View File
@@ -8,6 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {
color: { control: 'text' },
children: { control: 'text' },
+2 -1
View File
@@ -8,6 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {
color: { options: ['primary', 'secondary', 'tertiary', 'error'] },
text: { control: 'text' },
@@ -20,7 +21,7 @@ type Story = StoryObj<typeof meta>;
export const Example: Story = {
args: {
color: 'secondary',
color: 'primary',
text: 'Hello, World!',
variant: 'primary-action'
},
+2 -1
View File
@@ -8,6 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {
color: { options: ['primary', 'secondary', 'tertiary', 'error'] },
},
@@ -19,7 +20,7 @@ type Story = StoryObj<typeof meta>;
export const Example: Story = {
args: {
color: 'secondary',
color: 'primary',
title: 'Card title',
description: 'Card description',
selected: true
+1 -1
View File
@@ -8,7 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['!autodocs'],
tags: ['autodocs'],
argTypes: {
color: { options: ['primary', 'secondary', 'tertiary'] },
label: { control: 'text' },
+2 -1
View File
@@ -8,6 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {
color: { options: ['primary', 'secondary', 'tertiary'] },
text: { control: 'text' },
@@ -21,7 +22,7 @@ type Story = StoryObj<typeof meta>;
export const Example: Story = {
args: {
color: 'tertiary',
color: 'primary',
text: 'Hello, World!',
variant: 'filled'
},
@@ -6,6 +6,7 @@ import Box from '../Box';
const meta = {
title: 'ContextMenu',
component: ContextMenu,
tags: ['autodocs'],
parameters: {
layout: 'centered',
},
+3 -3
View File
@@ -9,7 +9,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['!autodocs'],
tags: ['autodocs'],
} satisfies Meta<typeof IconButton>;
export default meta;
@@ -20,9 +20,9 @@ export const Example: Story = {
render: () => {
return (
<IconButton
color='secondary'
color='primary'
icon={<Add />}
size='medium'
size='big'
onClick={() => window.alert('Hello, World!')}
/>
)
@@ -6,6 +6,7 @@ import ImagePreview, {ImagePreviewProps} from '.';
const meta = {
title: 'ImagePreview',
component: ImagePreview,
tags: ['autodocs'],
parameters: {
layout: 'centered',
},
+1
View File
@@ -8,6 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {
color: { options: ['primary', 'secondary', 'tertiary'] },
},
+2 -2
View File
@@ -8,7 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['!autodocs'],
tags: ['autodocs'],
argTypes: {
color: { options: ['success', 'error', 'warning', 'black'] },
},
@@ -20,7 +20,7 @@ type Story = StoryObj<typeof meta>;
export const Example: Story = {
args: {
color: 'success',
color: 'primary',
children: 'Link',
url: true,
href: 'https://hazemkrimi.tech',
+1 -1
View File
@@ -11,7 +11,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['!autodocs'],
tags: ['autodocs'],
} satisfies Meta<typeof Menu>;
export default meta;
+1
View File
@@ -8,6 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {
color: { options: ['primary', 'secondary', 'tertiary', 'error'] },
title: { control: 'text' },
+1
View File
@@ -8,6 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {
color: { options: ['primary', 'secondary', 'tertiary', 'error'] },
value: { control: 'text' },
+2 -1
View File
@@ -8,6 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {
color: { options: ['primary', 'secondary', 'tertiary', 'admin', 'error'] },
value: { control: 'text' },
@@ -20,7 +21,7 @@ type Story = StoryObj<typeof meta>;
export const Example: Story = {
args: {
color: 'secondary',
color: 'primary',
value: '',
options: [
{ value: '1', label: 'Option 1' },
+1 -1
View File
@@ -8,7 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['!autodocs'],
tags: ['autodocs'],
argTypes: {
color: { options: ['primay', 'secondary', 'tertiary', 'error'] },
},
+1 -1
View File
@@ -8,7 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['!autodocs'],
tags: ['autodocs'],
argTypes: {
color: { options: ['primary', 'secondary', 'tertiary', 'error'] },
variant: { options: ['display', 'headline', 'title', 'subheader', 'body', 'caption'] },
+1
View File
@@ -8,6 +8,7 @@ const meta = {
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {
color: { options: ['primary', 'secondary', 'tertiary', 'error'] },
},