Skip to content

Commit

Permalink
feat(Card): Card released
Browse files Browse the repository at this point in the history
  • Loading branch information
Utzel-Butzel committed Mar 6, 2019
1 parent 22ca498 commit cb0e025
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Card/Card-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ storiesOf('Card', module)
.addDecorator(withKnobs)
.addParameters({ jest: ['Card-test'] })
.addDecorator(story => <div style={{ width: '100%' }}>{story()}</div>)
.add('Default', () => {
.add('Default (Draft)', () => {
const setProps = props.set();
return <Card {...setProps} more={buttons[setProps.moreButton]} />;
});
12 changes: 7 additions & 5 deletions src/components/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,13 @@ export default class Modal extends Component {
{!passiveModal && (
<div className={`${prefix}--modal-footer`}>
<div className={`${prefix}--modal__buttons-container`}>
<Button
kind={danger ? 'tertiary' : 'secondary'}
onClick={onSecondaryButtonClick}>
{secondaryButtonText}
</Button>
{secondaryButtonText && (
<Button
kind={danger ? 'tertiary' : 'secondary'}
onClick={onSecondaryButtonClick}>
{secondaryButtonText}
</Button>
)}
<Button
kind={danger ? 'danger--primary' : 'primary'}
disabled={primaryButtonDisabled}
Expand Down
30 changes: 30 additions & 0 deletions src/components/Module/Module-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,36 @@ storiesOf('Module', module)
</Module>
)
)
.add(
'Multiple Headers',
/*`
Modules are used to organize content in a structural manner.
Modules are separated into different components. Module components can be
'single' or 'double' with the default as 'double'.
ModuleHeader and ModuleBody components hold the content of the
Module
`,*/
() => (
<Module className="some-class">
<ModuleHeader>Module Example</ModuleHeader>
<ModuleBody>
<p>
It has survived not only five centuries, but also the leap into
electronic typesetting, remaining essentially unchanged.
</p>
</ModuleBody>
<ModuleHeader>Module Example</ModuleHeader>
<ModuleBody>
<p>
It has survived not only five centuries, but also the leap into
electronic typesetting, remaining essentially unchanged.
</p>
</ModuleBody>
</Module>
)
)
.add(
'No Header',
/*`
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export BreadcrumbItem from './components/BreadcrumbItem';
export BreadcrumbHome from './components/BreadcrumbHome';
export Button from './components/Button';

export Card from './components/Card';
export Checkbox from './components/Checkbox';
export Credits from './components/Credits';

Expand Down

0 comments on commit cb0e025

Please sign in to comment.