Commit 0b291c8a by Ari Rizzitano Committed by GitHub

Merge pull request #30 from edx/ari/revert-knobs

revert storybook knobs
parents fa169bc2 a1254e3c
coverage/*
dist/*
node_modules
import '@storybook/addon-options/register';
import '@storybook/addon-knobs/register';
......@@ -4,11 +4,11 @@ import { setOptions } from '@storybook/addon-options';
import CssJail from '../src/CssJail';
setOptions({
setTimeout(() => setOptions({
name: '💎 PARAGON',
url: 'https://github.com/edx/paragon',
showDownPanel: true,
});
showDownPanel: false,
}), 1000);
const req = require.context('../src', true, /\.stories\.jsx$/);
......
......@@ -24,9 +24,8 @@
"react-dom": "^15.5.4"
},
"devDependencies": {
"@storybook/addon-knobs": "^3.2.0",
"@storybook/addon-options": "^3.1.6",
"@storybook/addon-storyshots": "^3.1.7",
"@storybook/addon-options": "^3.2.6",
"@storybook/addon-storyshots": "^3.2.8",
"@storybook/react": "3.2.8",
"@storybook/storybook-deployer": "^2.0.0",
"babel-cli": "^6.24.1",
......
......@@ -2,12 +2,10 @@
/* eslint-disable no-console */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, boolean } from '@storybook/addon-knobs';
import CheckBox from './index';
storiesOf('CheckBox', module)
.addDecorator(withKnobs)
.add('basic usage', () => (
<CheckBox
name="checkbox"
......@@ -18,7 +16,7 @@ storiesOf('CheckBox', module)
<CheckBox
name="checkbox"
label="you cannot check me out"
disabled={boolean('disabled', true)}
disabled
/>
))
.add('default checked', () => (
......
/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, text } from '@storybook/addon-knobs';
import InputText from './index';
storiesOf('InputText', module)
.addDecorator(withKnobs)
.add('minimal usage', () => (
<InputText
name="name"
label={text('label', 'First Name')}
label="First Name"
value="Foo Bar"
/>
))
......@@ -18,7 +16,7 @@ storiesOf('InputText', module)
<InputText
name="username"
label="Username"
description={text('description', 'The unique name that identifies you throughout the site.')}
description="The unique name that identifies you throughout the site."
validator={(value) => {
let feedback = { isValid: true };
if (value.length < 3) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment