3 changed files with 4 additions and 1 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||
{"version":3,"file":"static/iframe.5bd7ee3791616590d84a.bundle.js","sources":["webpack:///./.storybook/config.js"],"sourcesContent":["import { addDecorator, configure, setAddon } from '@storybook/react'\nimport {withThemesProvider} from 'storybook-addon-styled-component-theme'\nimport { themes } from '@storybook/components';\nimport { withOptions } from '@storybook/addon-options'\nimport { withInfo } from '@storybook/addon-info'\nimport { withBackgrounds } from '@storybook/addon-backgrounds'\nimport { dark, light } from 'themes'\n\n// Info\naddDecorator(withInfo({ inline: true }))\n\n// Options\naddDecorator(withOptions({\n name: 'Zap Desktop',\n url: 'https://ln-zap.github.io/zap-desktop',\n theme: themes.dark,\n addonPanelInRight: true\n}))\n\n// Backgrounds\naddDecorator(\n withBackgrounds([\n { name: 'dark', value: dark.colors.darkestBackground, default: true },\n { name: 'light', value: light.colors.darkestBackground },\n ])\n);\n\n// Themes.\nconst zapThemes = [dark, light]\nconsole.log(zapThemes)\naddDecorator(withThemesProvider(zapThemes));\n\n// automatically import all files ending in *.stories.js\nconst req = require.context('../stories', true, /.stories.js$/);\nfunction loadStories() {\n req.keys().forEach(filename => req(filename));\n}\n\nconfigure(loadStories, module);\n"],"mappings":"AAAA","sourceRoot":""} |
Loading…
Reference in new issue