First release

This commit is contained in:
Owen Quinlan 2021-07-02 19:29:34 +10:00
commit fa6c85266e
2339 changed files with 761050 additions and 0 deletions

26
node_modules/nes.css/story/buttons/buttons.template.js generated vendored Normal file
View file

@ -0,0 +1,26 @@
import { select } from '@storybook/addon-knobs';
import sharedOption from '../_helpers/shared';
export default () => {
const buttonType = select('Button Type', {
button: 'button',
file: 'file',
}, 'button');
const buttonClasses = select('Button Classes', {
default: '',
'is-primary': 'is-primary',
...sharedOption,
'is-disabled': 'is-disabled',
}, '');
return buttonType === 'button' ? `
<button type="button" class="nes-btn ${buttonClasses}">Normal</button>
` : `
<label class="nes-btn ${buttonClasses}">
<span>Select your file</span>
<input type="file">
</label>
`;
};