mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-28 13:26:16 +03:00
rename stories
This commit is contained in:
parent
bbb2db580c
commit
18570f36ba
25
packages/ui/src/stories/badge/Badge.stories.ts
Normal file
25
packages/ui/src/stories/badge/Badge.stories.ts
Normal 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' }
|
||||
}
|
||||
}
|
||||
};
|
@ -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' }
|
||||
}
|
||||
}
|
||||
};
|
21
packages/ui/src/stories/checkbox/Checkbox.stories.ts
Normal file
21
packages/ui/src/stories/checkbox/Checkbox.stories.ts
Normal 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
|
||||
}
|
||||
};
|
@ -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
|
||||
}
|
||||
};
|
14
packages/ui/src/stories/icon/AllIcon.stories.ts
Normal file
14
packages/ui/src/stories/icon/AllIcon.stories.ts
Normal 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'
|
||||
};
|
@ -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'
|
||||
};
|
Loading…
Reference in New Issue
Block a user