First release
This commit is contained in:
commit
fa6c85266e
2339 changed files with 761050 additions and 0 deletions
8
node_modules/nes.css/story/containers/containers.stories.js
generated
vendored
Normal file
8
node_modules/nes.css/story/containers/containers.stories.js
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { storiesOf } from '@storybook/html';
|
||||
import { withKnobs } from '@storybook/addon-knobs';
|
||||
|
||||
import Containers from './containers.template';
|
||||
|
||||
storiesOf('Containers', module)
|
||||
.addDecorator(withKnobs)
|
||||
.add('Container', () => Containers());
|
31
node_modules/nes.css/story/containers/containers.template.js
generated
vendored
Normal file
31
node_modules/nes.css/story/containers/containers.template.js
generated
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
import { select, boolean } from '@storybook/addon-knobs';
|
||||
import classNames from 'classnames';
|
||||
|
||||
export default () => {
|
||||
const isDark = boolean('is-dark', false);
|
||||
const isRounded = boolean('is-rounded', false);
|
||||
const withTitle = boolean('with-title', false);
|
||||
|
||||
const containerAlignment = select('Alignment', {
|
||||
default: '',
|
||||
'is-centered': 'is-centered',
|
||||
'is-right': 'is-right',
|
||||
}, '');
|
||||
|
||||
const containerClasses = classNames(
|
||||
'nes-container',
|
||||
containerAlignment,
|
||||
{
|
||||
'is-dark': isDark,
|
||||
'is-rounded': isRounded,
|
||||
'with-title': withTitle,
|
||||
},
|
||||
);
|
||||
|
||||
return `
|
||||
<div class="${containerClasses}">
|
||||
${withTitle ? '<p class="title">Container</p>' : ''}
|
||||
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
|
||||
</div>
|
||||
`;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue