First release
This commit is contained in:
commit
fa6c85266e
2339 changed files with 761050 additions and 0 deletions
8
node_modules/nes.css/story/dialogs/dialogs.stories.js
generated
vendored
Normal file
8
node_modules/nes.css/story/dialogs/dialogs.stories.js
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { storiesOf } from '@storybook/html';
|
||||
import { withKnobs } from '@storybook/addon-knobs';
|
||||
|
||||
import Dialogs from './dialogs.template';
|
||||
|
||||
storiesOf('Dialogs', module)
|
||||
.addDecorator(withKnobs)
|
||||
.add('Dialog', () => Dialogs());
|
23
node_modules/nes.css/story/dialogs/dialogs.template.js
generated
vendored
Normal file
23
node_modules/nes.css/story/dialogs/dialogs.template.js
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { boolean } from '@storybook/addon-knobs';
|
||||
import classNames from 'classnames';
|
||||
|
||||
export default () => {
|
||||
const isOpen = boolean('Open', true) ? 'open' : '';
|
||||
const isRounded = boolean('is-rounded', false);
|
||||
const isDark = boolean('is-dark', false);
|
||||
|
||||
const dialogClasses = classNames(
|
||||
'nes-dialog',
|
||||
{
|
||||
'is-rounded': isRounded,
|
||||
'is-dark': isDark,
|
||||
},
|
||||
);
|
||||
|
||||
return `
|
||||
<dialog class="${dialogClasses}" ${isOpen}>
|
||||
<p class="title">Dialog</p>
|
||||
<p>Alert: this is a dialog.</p>
|
||||
</dialog>
|
||||
`;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue