Skip to content

Commit

Permalink
Merge branch 'next' of https://github.com/wfp/ui into next
Browse files Browse the repository at this point in the history
* 'next' of https://github.com/wfp/ui:
  minor additions to text input and list components
  • Loading branch information
Utzel-Butzel committed Sep 6, 2020
2 parents 11f12d1 + b9b3757 commit 88e2e6a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 50 deletions.
12 changes: 12 additions & 0 deletions src/components/List/List.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,15 @@ ListColumns.story = {
},
},
};

export const ListDetails = (args) => (
<List kind="bullets">
<ListItem kind="checkmark">hello</ListItem>
<ListItem kind="cross">hello</ListItem>
<ListItem>hello</ListItem>
</List>
);

// ListDetails.story = {

// }
7 changes: 2 additions & 5 deletions src/components/List/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,11 @@ ListItem.propTypes = {
* Specify a custom className
*/
className: PropTypes.string,
/**
* Specify if colons should be used
*/
colon: PropTypes.bool,

/**
* Specify a kind.
*/
kind: PropTypes.oneOf(['simple', 'simple-inline', 'details', 'bullet']),
kind: PropTypes.oneOf(['checkmark', 'cross']),
/**
* Specify if the List should be small
*/
Expand Down
45 changes: 0 additions & 45 deletions src/components/TextInput/TextInput-story.js

This file was deleted.

17 changes: 17 additions & 0 deletions src/components/TextInput/TextInput.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,20 @@ withError.args = {
labelText: 'The labelText',
invalid: { message: 'Please enter your first name' },
};

export const withDisabled = (args) => <TextInput {...args} />;

withDisabled.story = {
parameters: {
docs: {
storyDescription: description,
},
},
};

withDisabled.args = {
name: 'inputname',
helperText: 'Optional helperText',
labelText: 'Disabled labelText',
disabled: true,
};

0 comments on commit 88e2e6a

Please sign in to comment.