diff --git a/ui/app/components/ui/button-group/button-group.stories.js b/ui/app/components/ui/button-group/button-group.stories.js index 1596680c1..069ae6f2c 100644 --- a/ui/app/components/ui/button-group/button-group.stories.js +++ b/ui/app/components/ui/button-group/button-group.stories.js @@ -1,49 +1,52 @@ import React from 'react' -import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import ButtonGroup from '.' import Button from '../button' import { text, boolean } from '@storybook/addon-knobs/react' -storiesOf('ButtonGroup', module) - .add('with Buttons', () => ( - ( + + - - - - )) - .add('with a disabled Button', () => ( - + - - - )) + {text('Button2', 'Average')} + + + +) + +export const withDisabledButton = () => ( + + + + +) diff --git a/ui/app/components/ui/button/button.stories.js b/ui/app/components/ui/button/button.stories.js index 6540d5aa1..7ab14f282 100644 --- a/ui/app/components/ui/button/button.stories.js +++ b/ui/app/components/ui/button/button.stories.js @@ -1,71 +1,78 @@ import React from 'react' -import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import Button from '.' import { text, boolean } from '@storybook/addon-knobs/react' -// ', 'secondary', 'default', 'warning', 'danger', 'danger-primary', 'link'], 'primary')} -storiesOf('Button', module) - .add('Button - Primary', () => ( - - )) - .add('Button - Secondary', () => ( - - )) - .add('Button - Default', () => ( - - )) - .add('Button - Warning', () => ( - - )) - .add('Button - Danger', () => ( - - )) - .add('Button - Danger Primary', () => ( - - )) - .add('Button - Link', () => ( - - )) +export default { + title: 'Button', +} + +export const primaryType = () => ( + +) + +export const secondaryType = () => ( + +) + +export const defaultType = () => ( + +) + +export const warningType = () => ( + +) + +export const dangerType = () => ( + +) + +export const dangerPrimaryType = () => ( + +) + +export const linkType = () => ( + +) diff --git a/ui/app/components/ui/text-field/text-field.stories.js b/ui/app/components/ui/text-field/text-field.stories.js index 9ef76d1d3..e9096bcc5 100644 --- a/ui/app/components/ui/text-field/text-field.stories.js +++ b/ui/app/components/ui/text-field/text-field.stories.js @@ -1,53 +1,61 @@ import React from 'react' -import { storiesOf } from '@storybook/react' import TextField from '.' -storiesOf('TextField', module) - .add('text', () => ( - - )) - .add('password', () => ( - - )) - .add('error', () => ( - - )) - .add('Mascara text', () => ( - - )) - .add('Material text', () => ( - - )) - .add('Material password', () => ( - - )) - .add('Material error', () => ( - - )) +export default { + title: 'TextField', +} + +export const text = () => ( + +) + +export const password = () => ( + +) + +export const error = () => ( + +) + +export const mascaraText = () => ( + +) + +export const materialText = () => ( + +) + +export const materialPassword = () => ( + +) + +export const materialError = () => ( + +)