From bbed06e2ba255199703343625129712ef7707697 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 16 Aug 2021 23:13:06 +0530 Subject: Revert "chore: update outdated node_modules (#1807)" This reverts commit 26a9dba22236bc22a7612107630282cfe02d20e0. --- uidev/src/stories/input.stories.tsx | 66 ++++++++++++++++++++++++++-------- uidev/src/stories/select.stories.tsx | 31 ++++++++++++---- uidev/src/stories/textarea.stories.tsx | 25 +++++++++---- uidev/src/stories/toggle.stories.tsx | 46 +++++++++++------------- 4 files changed, 114 insertions(+), 54 deletions(-) (limited to 'uidev') diff --git a/uidev/src/stories/input.stories.tsx b/uidev/src/stories/input.stories.tsx index 4136cfd4d..889539266 100644 --- a/uidev/src/stories/input.stories.tsx +++ b/uidev/src/stories/input.stories.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { v4 as uuid } from 'uuid'; +import uuid from 'uuid/v4'; import { Input } from '@meetfranz/forms'; import { storiesOf } from '../stores/stories'; @@ -10,8 +10,7 @@ const defaultProps = () => { label: 'Label', id: `test-${id}`, name: `test-${id}`, - onChange: (e: React.ChangeEvent) => - console.log('changed event', e), + onChange: (e: React.ChangeEvent) => console.log('changed event', e), }; }; @@ -22,23 +21,44 @@ const defaultPasswordProps = () => { id: `test-${id}`, name: `test-${id}`, type: 'password', - onChange: (e: React.ChangeEvent) => - console.log('changed event', e), + onChange: (e: React.ChangeEvent) => console.log('changed event', e), }; }; storiesOf('Input') .add('Basic', () => ( - + + )) + .add('Without Label', () => ( + + )) + .add('Disabled', () => ( + + )) + .add('With prefix', () => ( + )) - .add('Without Label', () => ) - .add('Disabled', () => ) - .add('With prefix', () => ) .add('With suffix', () => ( - + )) .add('With pre-suffix', () => ( - + )) .add('With error', () => ( )) .add('Type number with min & max', () => ( - + )); storiesOf('Password') - .add('Basic', () => ) + .add('Basic', () => ( + + )) .add('Show password toggle', () => ( - + )) .add('Score password', () => ( - + )) .add('Score password with error', () => ( { }, actionText: 'Select country', // defaultValue: 'AT', - onChange: (e: React.ChangeEvent) => - console.log('changed event', e), + onChange: (e: React.ChangeEvent) => console.log('changed event', e), }; }; storiesOf('Select') - .add('Basic', () => + )) .add('With preselection', () => ( - + )) + .add('With search', () => ( + )) - .add('With search', () => ) .add('With error', () => (