167 Commits

Author SHA1 Message Date
Aruna Herath
42131807b2 Support 'number' and 'boolean' prop types. 2016-08-30 18:13:54 +05:30
Aruna Herath
d7d32612a4 Display 'NO KNOBS' when the story is not wrapped to be used with addon. 2016-08-30 18:13:54 +05:30
Aruna Herath
c57e7e1282 Added reset button style improvements 2016-08-30 18:13:54 +05:30
Aruna Herath
7b5105c617 Use tosource instead of JSON.stringify. Some css changes. 2016-08-30 18:13:54 +05:30
Aruna Herath
da07ad6f07 Use storybook itself for sample stories.
New addon api is released with storybook now. So use it instead of an
example project.
2016-08-30 18:13:54 +05:30
Aruna Herath
b6791916e9 Merge pull request #3 from kadirahq/avoid-mutating-state
Avoid mutating state
2016-08-30 18:13:53 +05:30
Aruna Herath
59ae10966e Changes for new api
Prop editor now use the new addons api for storybook. The editor
is rendered as a panel instead of inside the story area.
2016-08-30 18:13:53 +05:30
Aruna Herath
1f6f3dd0cb Merge pull request #2 from kadirahq/style-tweaks-and-readme-update
Style tweaks and readme update
2016-08-30 18:13:53 +05:30
Aruna Herath
57a332851a Avoid mutating state
When knobs change instead of mutating the fields property in state
this assignes a new object as fields using setState.
2016-08-30 18:13:53 +05:30
Aruna Herath
b1a7fbe821 Merge pull request #1 from kadirahq/initial-call
Call storyFn once and get the initial values.
2016-08-30 18:13:53 +05:30
Aruna Herath
fa87a43461 Update readme with more content 2016-08-30 18:13:53 +05:30
Aruna Herath
729b45452b Small style tweaks 2016-08-30 18:13:53 +05:30
Aruna Herath
bb13f3e6d3 Update package.js with correct package info 2016-08-30 18:13:52 +05:30
Aruna Herath
646922bef7 Call storyFn once and get the initial values.
This avoids directly mutating the state while initialization of fields
in the PropEditor.
2016-08-30 18:13:52 +05:30
Aruna Herath
6590d7e335 Add opening and closing 2016-08-30 18:13:52 +05:30
Aruna Herath
5caff822f9 Add craeteKnob API 2016-08-30 18:13:27 +05:30
Aruna Herath
ab15a9e75c Initialized with react-cdk 2016-07-21 13:04:31 +05:30