rename stories

This commit is contained in:
Pavel Laptev 2024-08-22 22:08:28 +02:00 committed by GitButler
parent bbb2db580c
commit 18570f36ba
6 changed files with 60 additions and 60 deletions

View File

@ -0,0 +1,25 @@
import DemoBadge from './DemoBadge.svelte';
import type { Meta, StoryObj } from '@storybook/svelte';
const meta = {
title: 'Elements / Badge',
component: DemoBadge
} satisfies Meta<DemoBadge>;
export default meta;
type Story = StoryObj<typeof meta>;
export const IconStory: Story = {
name: 'Badge',
args: {
label: '127',
help: 'This is a badge',
style: 'neutral'
},
argTypes: {
style: {
options: ['neutral', 'success', 'warning', 'error'],
control: { type: 'select' }
}
}
};

View File

@ -1,25 +0,0 @@
import DemoBadge from './DemoBadge.svelte';
import type { Meta, StoryObj } from '@storybook/svelte';
const meta = {
title: 'Elements / Badge',
component: DemoBadge
} satisfies Meta<DemoBadge>;
export default meta;
type Story = StoryObj<typeof meta>;
export const IconStory: Story = {
name: 'Badge',
args: {
label: '127',
help: 'This is a badge',
style: 'neutral'
},
argTypes: {
style: {
options: ['neutral', 'success', 'warning', 'error'],
control: { type: 'select' }
}
}
};

View File

@ -0,0 +1,21 @@
import DemoCheckbox from './DemoCheckbox.svelte';
import type { Meta, StoryObj } from '@storybook/svelte';
const meta = {
title: 'Inputs / Checkbox',
component: DemoCheckbox
} satisfies Meta<DemoCheckbox>;
export default meta;
type Story = StoryObj<typeof meta>;
export const CheckboxStory: Story = {
name: 'Checkbox',
args: {
name: 'Checkbox',
checked: false,
disabled: false,
indeterminate: false,
small: false
}
};

View File

@ -1,21 +0,0 @@
import DemoCheckbox from './DemoCheckbox.svelte';
import type { Meta, StoryObj } from '@storybook/svelte';
const meta = {
title: 'Inputs / Checkbox',
component: DemoCheckbox
} satisfies Meta<DemoCheckbox>;
export default meta;
type Story = StoryObj<typeof meta>;
export const CheckboxStory: Story = {
name: 'Checkbox',
args: {
name: 'Checkbox',
checked: false,
disabled: false,
indeterminate: false,
small: false
}
};

View File

@ -0,0 +1,14 @@
import allIcons from './allIcons.svelte';
import type { Meta, StoryObj } from '@storybook/svelte';
const meta = {
title: 'Elements / Icon / All icons',
component: allIcons
} satisfies Meta<allIcons>;
export default meta;
type Story = StoryObj<typeof meta>;
export const IconStory: Story = {
name: 'All icons'
};

View File

@ -1,14 +0,0 @@
import allIcons from './allIcons.svelte';
import type { Meta, StoryObj } from '@storybook/svelte';
const meta = {
title: 'Elements / Icon / All icons',
component: allIcons
} satisfies Meta<allIcons>;
export default meta;
type Story = StoryObj<typeof meta>;
export const IconStory: Story = {
name: 'All icons'
};