-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
635 additions
and
745 deletions.
There are no files selected for viewing
45 changes: 0 additions & 45 deletions
45
src/components/form/primitive/Checkbox/Checkbox.stories.mdx
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
src/components/form/primitive/Checkbox/Checkbox.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { Meta, StoryObj } from '@storybook/react' | ||
import { | ||
Controls, | ||
Description, | ||
Primary, | ||
Stories, | ||
Subheading, | ||
Title, | ||
} from '@storybook/addon-docs' | ||
import { Theme } from '../../../../../.storybook/components' | ||
import { Checkbox } from './Checkbox' | ||
|
||
const meta = { | ||
component: Checkbox, | ||
args: { | ||
name: 'name', | ||
label: 'Accept privacy policy', | ||
disabled: false, | ||
}, | ||
parameters: { | ||
docs: { | ||
page: () => ( | ||
<> | ||
<Title /> | ||
<Description /> | ||
<Primary /> | ||
<Subheading>Props</Subheading> | ||
<Controls /> | ||
<Theme component="form" items={['checkbox']} /> | ||
<Stories /> | ||
</> | ||
), | ||
}, | ||
}, | ||
} satisfies Meta<typeof Checkbox> | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = {} | ||
|
||
export const WithLongMessage: Story = { | ||
args: { | ||
name: 'checkbox-w-long-text', | ||
label: | ||
'This checkbox has a very long text to show the behavior of a line break within the checkbox component. Adjust the width of the window to see the positioning of the elements within the component.', | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { | ||
Controls, | ||
Description, | ||
Primary, | ||
Stories, | ||
Subheading, | ||
Title, | ||
} from '@storybook/addon-docs' | ||
import { Meta, StoryObj } from '@storybook/react' | ||
import { Theme } from '../../../../.storybook/components' | ||
import { FieldSet } from './index' | ||
|
||
const meta = { | ||
component: FieldSet, | ||
args: { | ||
label: 'Label', | ||
children: <>FieldSet Content</>, | ||
}, | ||
argTypes: { | ||
disabled: { type: 'boolean' }, | ||
children: { control: { disable: true } }, | ||
}, | ||
parameters: { | ||
docs: { | ||
page: () => ( | ||
<> | ||
<Title /> | ||
<Description /> | ||
<Primary /> | ||
<Subheading>Props</Subheading> | ||
<Controls /> | ||
<Theme component="form" items={['fieldset']} /> | ||
<Stories /> | ||
</> | ||
), | ||
}, | ||
}, | ||
} satisfies Meta<typeof FieldSet> | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = {} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.