import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { Input } from '../lib'; const defaultProps = { label: 'Label', id: 'test1', name: 'test1', onChange: action('changed'), focus: true, }; const defaultPasswordProps = { label: 'Password', type: 'password', id: 'test1', name: 'test1', onChange: action('changed'), focus: true, }; storiesOf('Input', module) .add('Basic', () => ( )) .add('Without Label', () => ( )) .add('Disabled', () => ( )) .add('With prefix', () => ( )) .add('With suffix', () => ( )) .add('With pre-/suffix', () => ( )) .add('With error', () => ( )); storiesOf('Password', module) // .addDecorator(withThemesProvider(themes)) .add('Basic', () => ( )) .add('Show password toggle', () => ( )) .add('Score password', () => ( )) .add('Score password with error', () => ( ));