mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Bring back autodocs
This commit is contained in:
@@ -8,7 +8,7 @@ const meta = {
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['!autodocs'],
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
text: { control: 'text' },
|
||||
color: { options: ['primary', 'secondary', 'tertiary'] },
|
||||
|
||||
@@ -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'
|
||||
},
|
||||
};
|
||||
|
||||
@@ -8,6 +8,7 @@ const meta = {
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
color: { control: 'text' },
|
||||
children: { control: 'text' },
|
||||
|
||||
@@ -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'
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -8,7 +8,7 @@ const meta = {
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['!autodocs'],
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
color: { options: ['primary', 'secondary', 'tertiary'] },
|
||||
label: { control: 'text' },
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
|
||||
@@ -8,6 +8,7 @@ const meta = {
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
color: { options: ['primary', 'secondary', 'tertiary'] },
|
||||
},
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -11,7 +11,7 @@ const meta = {
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['!autodocs'],
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof Menu>;
|
||||
|
||||
export default meta;
|
||||
|
||||
@@ -8,6 +8,7 @@ const meta = {
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
color: { options: ['primary', 'secondary', 'tertiary', 'error'] },
|
||||
title: { control: 'text' },
|
||||
|
||||
@@ -8,6 +8,7 @@ const meta = {
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
color: { options: ['primary', 'secondary', 'tertiary', 'error'] },
|
||||
value: { control: 'text' },
|
||||
|
||||
@@ -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' },
|
||||
|
||||
@@ -8,7 +8,7 @@ const meta = {
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['!autodocs'],
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
color: { options: ['primay', 'secondary', 'tertiary', 'error'] },
|
||||
},
|
||||
|
||||
@@ -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'] },
|
||||
|
||||
@@ -8,6 +8,7 @@ const meta = {
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
color: { options: ['primary', 'secondary', 'tertiary', 'error'] },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user