469 Commits

Author SHA1 Message Date
Norbert de Langen
3f85893e6d
Merge branch 'master' into tech/overhaul-ui
# Conflicts:
#	ADDONS_SUPPORT.md
#	CHANGELOG.md
#	MIGRATION.md
#	README.md
#	addons/a11y/package.json
#	addons/a11y/src/components/Panel.js
#	addons/actions/package.json
#	addons/backgrounds/package.json
#	addons/centered/package.json
#	addons/events/package.json
#	addons/graphql/package.json
#	addons/info/package.json
#	addons/jest/package.json
#	addons/jest/src/index.js
#	addons/jest/src/register.js
#	addons/knobs/package.json
#	addons/knobs/src/components/types/Array.js
#	addons/links/package.json
#	addons/notes/package.json
#	addons/notes/src/index.js
#	addons/options/package.json
#	addons/storyshots/storyshots-core/package.json
#	addons/storyshots/storyshots-puppeteer/package.json
#	addons/storysource/package.json
#	addons/viewport/package.json
#	app/angular/package.json
#	app/angular/src/server/angular-cli_config.js
#	app/ember/README.md
#	app/ember/package.json
#	app/ember/src/server/index.js
#	app/html/package.json
#	app/marko/package.json
#	app/mithril/package.json
#	app/polymer/package.json
#	app/react-native/package.json
#	app/react-native/readme.md
#	app/react-native/src/bin/storybook-start.js
#	app/react/package.json
#	app/riot/package.json
#	app/svelte/package.json
#	app/vue/package.json
#	docs/src/pages/basics/guide-angular/index.md
#	docs/src/pages/basics/guide-ember/index.md
#	docs/src/pages/basics/quick-start-guide/index.md
#	docs/yarn.lock
#	examples/angular-cli/package.json
#	examples/cra-kitchen-sink/package.json
#	examples/ember-cli/package.json
#	examples/html-kitchen-sink/package.json
#	examples/marko-cli/package.json
#	examples/mithril-kitchen-sink/package.json
#	examples/official-storybook/package.json
#	examples/polymer-cli/package.json
#	examples/riot-kitchen-sink/package.json
#	examples/svelte-kitchen-sink/package.json
#	examples/vue-kitchen-sink/package.json
#	lerna.json
#	lib/addons/package.json
#	lib/channel-postmessage/package.json
#	lib/channel-websocket/package.json
#	lib/channels/package.json
#	lib/cli/generators/EMBER/index.js
#	lib/cli/lib/detect.js
#	lib/cli/lib/initiate.js
#	lib/cli/package.json
#	lib/client-logger/package.json
#	lib/codemod/package.json
#	lib/components/package.json
#	lib/components/src/layout/desktop.js
#	lib/core-events/package.json
#	lib/core/package.json
#	lib/core/src/server/templates/index.html.ejs
#	lib/node-logger/package.json
#	lib/ui/package.json
#	lib/ui/src/modules/api/actions/api.js
#	lib/ui/src/modules/shortcuts/actions/shortcuts.js
#	lib/ui/src/modules/ui/components/stories_panel/index.js
#	lib/ui/src/modules/ui/components/stories_panel/text_filter.js
#	lib/ui/src/modules/ui/components/stories_panel/text_filter.test.js
#	lib/ui/src/modules/ui/containers/header.js
#	lib/ui/src/modules/ui/containers/layout.js
#	lib/ui/src/modules/ui/libs/filters.js
#	yarn.lock
2018-10-13 16:34:21 +02:00
Filipp Riabchun
9fb1603d36
Merge pull request #4304 from jonmilner/master
add height and overflow fixes to addon panel styles
2018-10-13 11:08:07 +02:00
Filipp Riabchun
ea90cf618c
Merge branch 'master' into master 2018-10-13 01:07:14 +02:00
Norbert de Langen
ded247bef2
IMPROVE styling 2018-10-12 13:16:58 +02:00
Norbert de Langen
825d4ec53b
CHANGE knob/Date to a native datepicker 2018-10-12 11:06:28 +02:00
Norbert de Langen
fef21c26a7
Merge branch 'master' into tech/overhaul-ui
# Conflicts:
#	addons/actions/package.json
#	addons/backgrounds/package.json
#	addons/jest/src/register.js
#	addons/knobs/src/components/types/Array.js
#	addons/notes/package.json
#	addons/notes/src/index.js
#	addons/storyshots/storyshots-core/package.json
#	lib/channel-websocket/package.json
#	lib/components/package.json
#	lib/components/src/layout/desktop.js
#	lib/ui/package.json
#	lib/ui/src/modules/api/actions/api.js
#	lib/ui/src/modules/shortcuts/actions/shortcuts.js
#	lib/ui/src/modules/ui/components/stories_panel/index.js
#	lib/ui/src/modules/ui/components/stories_panel/text_filter.js
#	lib/ui/src/modules/ui/components/stories_panel/text_filter.test.js
#	lib/ui/src/modules/ui/containers/header.js
#	lib/ui/src/modules/ui/containers/layout.js
#	lib/ui/src/modules/ui/libs/filters.js
#	yarn.lock
2018-10-11 11:21:31 +02:00
do7be
c51b1ebf53 fix Array value types to string 2018-10-10 10:48:10 +09:00
Jon Milner
711611d610 add height and overflow fixes to addon panel styles 2018-10-05 19:01:01 -04:00
Norbert de Langen
444a06bf1b
Merge branch 'master' into tech/overhaul-ui
# Conflicts:
#	addons/actions/package.json
#	addons/backgrounds/package.json
#	addons/notes/package.json
#	lib/channel-websocket/package.json
#	lib/components/package.json
#	lib/core/package.json
#	lib/ui/package.json
#	lib/ui/src/modules/ui/components/stories_panel/stories_tree/index.js
#	lib/ui/src/modules/ui/components/stories_panel/stories_tree/tree_decorators.js
#	package.json
#	yarn.lock
2018-09-27 15:23:54 +02:00
Olle Bröms
ccfb1f116b Fix that colorpicker shows up on click 2018-09-24 15:50:13 +02:00
Norbert de Langen
625162455d
FIX errors display && REFACTOR addons to sync naming conventions && CHANGE to use addParameters for setOptions && FIX eslint 2018-09-12 19:31:40 +02:00
Norbert de Langen
17d878d173
FIX url encoding && REFACTOR state to only have selectedId, no selectedKind 2018-09-05 12:07:37 +02:00
Norbert de Langen
7a4454c8b0
UPGRADE to emotion 10 && UPGRADE universal-dotenv 2018-08-31 12:18:01 +02:00
Norbert de Langen
bbb08ae67e
UPGRADE to emotion 10 2018-08-25 20:13:28 +02:00
Norbert de Langen
68c1664ec9
WIP 2018-08-11 01:40:24 +02:00
Norbert de Langen
935cefd27a
FIX linting issues after eslint upgrade (partial fix) 2018-08-05 17:57:17 +02:00
Tim Holt
84c0de93f1 added horizontal styling for addon-knobs radios 2018-07-26 21:51:51 +10:00
t_hammb
4dbc6e2732 fixing addon type naming conventions. 2018-07-23 13:43:11 -07:00
t_hammb
1d0b2eaf2f updating snapshots to reflect radio button knob type addition. 2018-07-20 15:28:51 -07:00
t_hammb
912e9198e6 fixing errors from unsuccessful checks. 2018-07-19 14:14:09 -07:00
t_hammb
525bee5a07 fixing more errors and cleaning up code. 2018-07-18 11:28:29 -07:00
t_hammb
ac0394c215 fixing changes that needed to be made after PR was reviewed. 2018-07-18 11:13:21 -07:00
Bryce Hammond
28a14d322f Add radio buttons knob type 2018-07-17 16:17:57 -07:00
Ian VanSchooten
1652d64635 Use shouldComponentUpdate instead of PureComponent
Because the `knob` object prop is being regenerated each time the
parent re-renders, we can’t use the shallow prop comparison that 
PureComponent does.  So this uses a `shouldComponentUpdate` instead,
which in most cases just compares the `knob.value` prop to see if it
has changed.  I don’t believe that the `name` is changed between
renders.  Same goes for number range configurations and array
separators.
2018-07-12 11:53:16 +02:00
Ian VanSchooten
554da3b295 Expand NumberType PropTypes
It seems that some were not being accounted for.
2018-07-12 11:47:25 +02:00
Ian VanSchooten
cd544662bb Fix knobs for React < 16.3
The `getDerivedStateFromProps` lifecycle method was added in React 16.3,
and older versions of react won’t execute it.  Many of the knob components
were relying on this function to initialize component state, and so in
older versions of react state was undefined, and grabbing `value` would
blow up.

Most of the usages in these components were to memoize props, but that
can be handled more cleanly through the use of `PureComponent`, as 
mentioned in:
https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html#what-about-memoization
2018-07-10 12:34:25 +02:00
Tom Coleman
aa8a421907 Added allowDeprecatedUsage option to makeDecorator
(and enable it for all existing addons)
2018-07-04 15:56:17 +10:00
Norbert de Langen
79a5e34d03
REFACTOR Tabs to use children for data 2018-06-21 22:50:30 +02:00
Norbert de Langen
61e0b4a0d0
Merge branch 'master' into feature/theming 2018-06-21 08:51:15 +02:00
Florian Mounier
85e4955f9a Allow number knob to be empty (returns null instead of 0).
Prevent uncontrolled to controlled warning when defaulting to null (or undefined).
2018-06-19 16:23:46 +02:00
Norbert de Langen
0a2a99c874
CLEANUP 2018-06-13 21:58:56 +02:00
Norbert de Langen
b3ca126fc9
ADD explanation for knobstore's complex code && RENAME equal to deepEqual. && FIX incorrect styles 2018-06-06 08:13:27 +02:00
Norbert de Langen
6d198dda0b
ADD validation styles to form input && ADD stories 2018-06-02 16:38:31 +02:00
Norbert de Langen
a1bdf162e0
REFACTOR knobs PropField &7 REMOVE redundant component && ADD theme variable for input fill 2018-06-02 15:26:49 +02:00
Norbert de Langen
44fb086db7
CLEANUP knobs panel 2018-06-02 03:30:21 +02:00
Norbert de Langen
9ea411730a
REMOVE commented code 2018-06-02 03:15:54 +02:00
Norbert de Langen
c49dff9983
CLEANUP remove redundant dependencies 2018-06-02 02:14:58 +02:00
Norbert de Langen
bd595a49fe
FIX knob object 2018-06-02 00:48:29 +02:00
Norbert de Langen
f877ac9a08
theme knobs date 2018-06-02 00:15:47 +02:00
Norbert de Langen
18ef6de823
theme knobs text 2018-06-02 00:12:40 +02:00
Norbert de Langen
29ac4c8977
theme knobs select 2018-06-02 00:12:27 +02:00
Norbert de Langen
e66d323ea0
theme knobs object 2018-06-02 00:12:12 +02:00
Norbert de Langen
b6421217a2
theme knobs number 2018-06-02 00:11:50 +02:00
Norbert de Langen
19bf77c718
theme knobs files 2018-06-02 00:10:40 +02:00
Norbert de Langen
1b5daf3604
theme knobs color 2018-06-02 00:10:22 +02:00
Norbert de Langen
41badab474
theme knobs button 2018-06-02 00:10:09 +02:00
Norbert de Langen
d2faeb720f
REFACTOR knobs field to use field component 2018-06-02 00:08:04 +02:00
Norbert de Langen
996d276a9f
theme knobs array 2018-06-02 00:00:15 +02:00
Norbert de Langen
fb372a0689
FIX theming of a11y 2018-05-31 07:55:21 +02:00
Norbert de Langen
26fe6f55a3
FIX knobs Array 2018-05-30 17:47:18 +02:00