diff --git a/stories/organisms/LoginForm.stories.ts b/stories/organisms/LoginForm.stories.ts index d67df3e..3b69ad1 100644 --- a/stories/organisms/LoginForm.stories.ts +++ b/stories/organisms/LoginForm.stories.ts @@ -1,3 +1,5 @@ +import { withActions } from '@storybook/addon-actions/decorator'; +import { withLinks } from '@storybook/addon-links'; import type { Meta, StoryObj } from '@storybook/svelte'; import LoginForm from '$lib/components/organisms/LoginForm.svelte'; @@ -6,11 +8,17 @@ const meta = { title: 'Organisms/LoginForm', component: LoginForm, tags: ['autodocs'], + args: { + sb: 'Templates/Profile' + }, argTypes: { form: { controls: 'object' }, i18n: { controls: 'object' }, + onSubmit: { action: 'submit' }, + sb: { control: 'radio', options: ['Templates/Profile'] }, servers: { controls: 'object' } - } + }, + decorators: [withActions, withLinks] } satisfies Meta; export default meta; diff --git a/stories/templates/Login.stories.ts b/stories/templates/Login.stories.ts index d5c2ee4..4c24b9f 100644 --- a/stories/templates/Login.stories.ts +++ b/stories/templates/Login.stories.ts @@ -1,3 +1,5 @@ +import { withActions } from '@storybook/addon-actions/decorator'; +import { withLinks } from '@storybook/addon-links'; import type { Meta, StoryObj } from '@storybook/svelte'; import Login from '$lib/components/templates/Login.svelte'; @@ -6,9 +8,15 @@ const meta = { title: 'Templates/Login', component: Login, tags: ['autodocs'], + args: { + sb: 'Templates/Profile' + }, argTypes: { - form: { controls: 'object' } - } + onSubmit: { action: 'submit' }, + form: { controls: 'object' }, + sb: { control: 'radio', options: ['Templates/Profile'] } + }, + decorators: [withActions, withLinks] } satisfies Meta; export default meta; diff --git a/stories/templates/Profile.stories.ts b/stories/templates/Profile.stories.ts index 682828c..0c12897 100644 --- a/stories/templates/Profile.stories.ts +++ b/stories/templates/Profile.stories.ts @@ -1,3 +1,5 @@ +import { withActions } from '@storybook/addon-actions/decorator'; +import { withLinks } from '@storybook/addon-links'; import type { Meta, StoryObj } from '@storybook/svelte'; import Profile from '$lib/components/templates/Profile.svelte'; @@ -6,9 +8,15 @@ const meta = { title: 'Templates/Profile', component: Profile, tags: ['autodocs'], + args: { + sb: 'Templates/ImportProject' + }, argTypes: { - data: { controls: 'object' } - } + onClick: { action: 'click' }, + data: { controls: 'object' }, + sb: { control: 'radio', options: ['Templates/ImportProject'] } + }, + decorators: [withActions, withLinks] } satisfies Meta; export default meta;