55 Commits

Author SHA1 Message Date
Norbert de Langen
3fc09942eb CHANGE all decorators to use storyFn instead of fn 2019-02-20 01:45:52 +01:00
Norbert de Langen
991adb372a ADD default backgrounds to official example 2019-02-14 15:05:50 +01:00
domyen
287442a609 Use createGlobal instead of createReset because colors are inherited from body
@ndelangen this messes with the grid plugin but setting body background and color is a common pattern to support. e.g., when theming a dark mode ;)
2019-02-08 19:27:28 -05:00
Norbert de Langen
8a3ba251ac REFACTOR global styles into reset & global && FIX background tool && ADD preview background to theme 2019-02-07 13:28:34 +01:00
domyen
4d915a8cfe ADD Global styles to app and storybook 2019-01-31 17:15:58 -05:00
Tom Coleman
a2f7e5fdcd UPGRADE from react-chromatic to storybook-chromatic@1.2.4 2019-01-18 15:37:08 +11:00
Norbert de Langen
ae9e32f8d0
MIGRATE to wrap emotion into a @storybook/theming package
- This ensures a single version
- This adds a good place to add themes
- Addons can take a dependency on something storybook
- We could migrate to another styling lib without asking all users to migrate with us
2019-01-14 22:48:33 +01:00
Norbert de Langen
1a271ba5f8
IMPROVE warnings 2018-12-29 22:04:17 +01:00
Norbert de Langen
0c400dda64
FIX reset 2018-12-24 15:28:13 +01:00
Norbert de Langen
547e12430b
Merge branch 'tech/overhaul-ui' into tech/overhaul-ui-new-story-format
# Conflicts:
#	examples/official-storybook/config.js
#	examples/official-storybook/stories/core.stories.js
2018-12-24 10:07:43 +01:00
Norbert de Langen
0e905b5cb0
REMOVE a ton of cruft from snapshots (reset & divs) 2018-12-22 00:08:44 +01:00
Tom Coleman
d353b9f0cf Use module.hot.dispose to do previousExports. 2018-12-21 11:34:24 +11:00
Tom Coleman
e8dc5313b0 Change .examples -> .stories 2018-12-20 14:16:17 +11:00
Tom Coleman
f080c5eb9e Merge 4848-new-example-format into tech/overhaul-ui 2018-12-20 13:19:56 +11:00
Norbert de Langen
2fae294e11
Merge branch 'pr/lifeiscontent/4925' into tech/overhaul-ui
# Conflicts:
#	addons/a11y/package.json
#	addons/actions/package.json
#	addons/backgrounds/package.json
#	addons/cssresources/package.json
#	addons/events/package.json
#	addons/info/package.json
#	addons/info/src/__snapshots__/index.test.js.snap
#	addons/jest/package.json
#	addons/knobs/package.json
#	addons/notes/package.json
#	addons/viewport/package.json
#	app/react/package.json
#	examples/cra-kitchen-sink/package.json
#	examples/official-storybook/config.js
#	examples/official-storybook/package.json
#	lib/components/package.json
#	lib/components/src/layout/desktop.js
#	lib/components/src/layout/index.js
#	lib/core/package.json
#	lib/ui/package.json
#	lib/ui/src/modules/ui/components/search_box.js
#	lib/ui/src/modules/ui/components/shortcuts_help.js
#	lib/ui/src/modules/ui/components/stories_panel/__snapshots__/index.stories.storyshot
#	lib/ui/src/modules/ui/components/stories_panel/__snapshots__/text_filter.stories.storyshot
#	lib/ui/src/modules/ui/components/stories_panel/stories_tree/__snapshots__/index.stories.storyshot
#	lib/ui/src/modules/ui/components/stories_panel/stories_tree/tree_decorators.js
#	package.json
#	yarn.lock
2018-12-12 15:47:20 +01:00
Norbert de Langen
a8bf858179
REFACTOR state management 2018-12-11 01:10:15 +01:00
Norbert de Langen
ec82d04797
REFACTOR a11y addon && FIX issues with decorators reloading 2018-12-10 19:27:12 +01:00
Norbert de Langen
a9ee8a5dad
Merge branch 'next' into tech/overhaul-ui
# Conflicts:
#	.babelrc.js
#	addons/a11y/package.json
#	addons/actions/package.json
#	addons/backgrounds/package.json
#	addons/cssresources/package.json
#	addons/events/package.json
#	addons/graphql/package.json
#	addons/info/package.json
#	addons/info/src/components/PropTable.js
#	addons/jest/package.json
#	addons/knobs/package.json
#	addons/links/package.json
#	addons/notes/package.json
#	addons/ondevice-backgrounds/package.json
#	addons/options/package.json
#	addons/storyshots/storyshots-core/package.json
#	addons/storyshots/storyshots-puppeteer/package.json
#	addons/storysource/package.json
#	app/angular/package.json
#	app/ember/package.json
#	app/html/package.json
#	app/marko/package.json
#	app/mithril/package.json
#	app/polymer/package.json
#	app/react/package.json
#	app/riot/package.json
#	app/svelte/package.json
#	app/vue/package.json
#	examples/official-storybook/stories/addon-a11y.stories.js
#	examples/official-storybook/stories/addon-actions.stories.js
#	lib/addons/package.json
#	lib/channel-postmessage/package.json
#	lib/channel-websocket/package.json
#	lib/components/package.json
#	lib/components/src/layout/mobile.js
#	lib/core/package.json
#	lib/core/src/server/common/babel.js
#	lib/ui/package.json
#	lib/ui/src/modules/ui/components/stories_panel/index.js
#	lib/ui/src/modules/ui/components/stories_panel/stories_tree/index.test.js
#	lib/ui/src/modules/ui/components/stories_panel/stories_tree/tree_decorators_utils.js
#	lib/ui/src/modules/ui/components/stories_panel/text_filter.js
#	yarn.lock
2018-12-06 16:49:52 +01:00
Norbert de Langen
f940f87490
REFACTOR viewports to use addParameters & only render tool 2018-12-06 12:02:21 +01:00
Aaron Reisman
4ef4c2389a Upgrade emotion@10.0.2 2018-12-04 18:47:58 -08:00
Norbert de Langen
b806539e6a
REFACTOR addon-cssresources 2018-12-04 21:23:02 +01:00
Hypnosphi
6936c27fae Run prettier 2018-12-04 19:54:10 +01:00
Norbert de Langen
efbf470d6a
Merge branch 'next' into tech/overhaul-ui
# Conflicts:
#	CHANGELOG.md
#	addons/actions/package.json
#	addons/backgrounds/package.json
#	addons/notes/package.json
#	addons/storyshots/storyshots-core/package.json
#	addons/storyshots/storyshots-puppeteer/package.json
#	examples/cra-kitchen-sink/.storybook/config.js
#	examples/cra-kitchen-sink/src/stories/index.stories.js
#	lib/addons/package.json
#	lib/channel-websocket/package.json
#	lib/components/package.json
#	lib/components/src/addon_panel/__snapshots__/index.stories.storyshot
#	lib/components/src/header/__snapshots__/header.stories.storyshot
#	lib/components/src/layout/__snapshots__/index.stories.storyshot
#	lib/components/src/theme.js
#	lib/ui/package.json
#	lib/ui/src/modules/ui/components/stories_panel/__snapshots__/index.stories.storyshot
#	lib/ui/src/modules/ui/components/stories_panel/__snapshots__/text_filter.stories.storyshot
#	lib/ui/src/modules/ui/components/stories_panel/stories_tree/__snapshots__/index.stories.storyshot
#	lib/ui/src/modules/ui/configs/handle_routing.js
#	yarn.lock
2018-11-28 17:01:29 +01:00
Neville Mehta
fc01782358 Merge branch 'master' of github.com:storybooks/storybook into addon-cssresources 2018-11-22 14:40:19 -08:00
Norbert de Langen
13781c39e5 Merge branch 'next' into tech/overhaul-ui 2018-11-08 12:03:03 +01:00
Neville Mehta
e5b6cdbccf create cssresources addon 2018-10-29 15:03:59 -07:00
Neville Mehta
593387bd59 Merge branch 'master' of github.com:storybooks/storybook into addon-resources 2018-10-20 11:39:39 -07:00
Neville Mehta
eab5a76d98 add resources plugin complete refactor 2018-10-20 01:39:21 -07:00
Pavan Kumar Sunkara
d854660fd9 Get loadEnv working 2018-10-14 17:39:35 +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
39b62a8e18
WIP FIX broken options 2018-09-12 12:40:58 +02:00
Norbert de Langen
fd8fc2ba2e
Merge branch 'master' into tech/overhaul-ui
# Conflicts:
#	addons/actions/package.json
#	addons/options/README.md
#	lib/components/package.json
#	lib/core/package.json
#	lib/ui/package.json
#	lib/ui/src/modules/api/actions/api.js
#	lib/ui/src/modules/api/actions/api.test.js
#	lib/ui/src/modules/api/index.js
#	lib/ui/src/modules/shortcuts/actions/shortcuts.js
#	lib/ui/src/modules/shortcuts/actions/shortcuts.test.js
#	lib/ui/src/modules/shortcuts/index.js
#	yarn.lock
2018-09-11 16:53:05 +02:00
Neville Mehta
80f9184cc9 revert changes to official-storybook/config.js 2018-09-10 00:50:25 -07:00
Neville Mehta
570f509f43 rudimentary resources addon to dynamically add/remove css 2018-09-10 00:23:15 -07:00
Tom Coleman
d309b918cc Deprecate setOptions, use withOptions as a decorator to solve resetting issue 2018-09-08 14:26:33 +10:00
Norbert de Langen
403af09fd3
CLEANUP 2018-09-06 16:33:46 +02:00
Norbert de Langen
dd4c00ef54
FIX blue styles on RoutedLink && IMPROVE theme for SyntaxHihglighter && ADD reset for base styles 2018-09-06 15:16:38 +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
Tom Coleman
d15db5afac Don't use the theme provider for error stories
@ndelangen it might make more sense to only apply it to "Components|..." story, I think I am right in saying these are the only ones where it matters?
2018-08-09 11:50:48 +10:00
Norbert de Langen
1dba82b02b
ADD ability to set theme using setOptions 2018-06-03 21:25:00 +02:00
Hypnosphi
bb007734e3 Don't scroll story on knob change 2018-05-23 21:18:29 +03:00
Norbert de Langen
5eec2c8689
FIX styling issue in storysource addon && CLEANUP && ADD emotion-theming 2018-05-15 23:52:57 +02:00
Mohamed Shaaban
33a38ef619 viewport-addon: configure => configureViewport 2018-04-14 18:33:48 +02:00
Mohamed Shaaban
d3046596ba Allow setting custom default viewport per story
Fix linting issues
2018-03-20 00:51:41 +01:00
Mohamed Shaaban
29c81a738a Add custom viewports to the official-storybook example 2018-03-20 00:50:22 +01:00
Igor
603a09c962
Merge branch 'master' into addon-stories 2018-02-18 15:45:18 +02:00
Hypnosphi
398ff2639e eslint: remove unused disable directives 2018-02-17 20:35:37 +03:00
igor
a1f54bc6ae First addon stories integration 2018-01-31 14:54:29 +02:00
Hypnosphi
bdb1d2a397 Improve dotenv file support 2018-01-24 00:41:29 +03:00