13 changed files with 143 additions and 380 deletions
@ -1,66 +1,14 @@ |
|||||
<!DOCTYPE html> |
<!doctype html><html><head><meta charset="utf-8"><title>Storybook</title><style>html, body { |
||||
<html lang="en"> |
|
||||
<head> |
|
||||
<meta charset="utf-8"> |
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
||||
<meta content="IE=edge" http-equiv="X-UA-Compatible" /> |
|
||||
<title>Storybook</title> |
|
||||
<link rel="shortcut icon" href="favicon.ico?v=1" /> |
|
||||
|
|
||||
|
|
||||
<style> |
|
||||
html, body { |
|
||||
overflow: hidden; |
overflow: hidden; |
||||
height: 100%; |
height: 100%; |
||||
width: 100%; |
width: 100%; |
||||
margin: 0; |
margin: 0; |
||||
padding: 0; |
padding: 0; |
||||
} |
}</style><script>try { |
||||
</style> |
|
||||
|
|
||||
<script> |
|
||||
try { |
|
||||
if (window.parent !== window) { |
if (window.parent !== window) { |
||||
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; |
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; |
||||
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__VUE_DEVTOOLS_GLOBAL_HOOK__; |
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__VUE_DEVTOOLS_GLOBAL_HOOK__; |
||||
} |
} |
||||
} catch (e) { |
} catch (e) { |
||||
console.warn('unable to connect to parent frame for connecting dev tools'); |
console.warn('unable to connect to parent frame for connecting dev tools'); |
||||
} |
}</script></head><body><div id="root"></div><script src="static/runtime~manager.1e37d0d1017cb5f1305c.bundle.js"></script><script src="static/manager.199b9cb1019d2fb10e21.bundle.js"></script></body></html> |
||||
</script> |
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
</head> |
|
||||
<body> |
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
<div id="root"></div> |
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
<script src="static/runtime~manager.1e37d0d1017cb5f1305c.bundle.js" defer></script> |
|
||||
|
|
||||
|
|
||||
|
|
||||
<script src="static/manager.95fafa5746254ad9f35c.bundle.js" defer></script> |
|
||||
|
|
||||
|
|
||||
|
|
||||
</body> |
|
||||
</html> |
|
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||||
|
{"version":3,"file":"static/iframe.34f6f2db343f25dfe19f.bundle.js","sources":["webpack:///./.storybook/config.js","webpack:///./app/components/UI/Heading.js"],"sourcesContent":["import React from 'react'\nimport { 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 { setDefaults, withInfo } from '@storybook/addon-info'\nimport { withConsole } from '@storybook/addon-console'\nimport { linkTo } from '@storybook/addon-links'\nimport chaptersAddon from 'react-storybook-addon-chapters'\nimport StoryRouter from 'storybook-react-router'\nimport { dark, light } from 'themes'\nimport { GlobalStyle } from 'components/UI'\nimport { setIntlConfig, withIntl } from 'storybook-addon-intl'\n\n// Register supported locales.\nimport '../app/lib/i18n/locale'\n\n// Get translations.\nimport translations from '../app/lib/i18n/translation'\n\n// Default the locale to English.\nconst defaultLocale = 'en'\n\nconst getMessages = locale => translations[locale]\n\n// Set intl configuration\nsetIntlConfig({\n locales: ['en', 'de'],\n defaultLocale: 'en',\n getMessages\n})\n\n// Info\naddDecorator(\n withInfo({\n styles: {\n button: {\n base: {\n background: dark.colors.lightningOrange\n }\n }\n }\n })\n)\n\n// Intl\naddDecorator(withIntl)\n\n// Router\naddDecorator(StoryRouter({}))\n\n// Chapters\nsetAddon(chaptersAddon)\n\n// Console.\naddDecorator((storyFn, context) => withConsole()(storyFn)(context))\n\n// Options\naddDecorator(\n withOptions({\n name: 'Zap Desktop',\n url: 'https://ln-zap.github.io/zap-desktop',\n theme: themes.dark,\n hierarchySeparator: /\\./\n })\n)\n\n// Zap Global style.\naddDecorator(story => (\n <React.Fragment>\n <GlobalStyle />\n {story()}\n </React.Fragment>\n))\n\n// Zap Themes.\nconst zapThemes = [dark, light]\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","import React from 'react'\nimport { Heading as BaseHeading } from 'rebass'\n\n/**\n * @render react\n * @name Heading\n * @example\n * <Heading />\n */\nclass Heading extends React.PureComponent {\n static displayName = 'Heading'\n\n render() {\n return <BaseHeading lineHeight=\"1.4\" fontWeight=\"normal\" fontSize={5} as=\"h2\" {...this.props} />\n }\n}\n\nHeading.h1 = props => <Heading fontSize={6} {...props} as=\"h1\" />\nHeading.h2 = props => <Heading fontSize={5} {...props} as=\"h2\" />\nHeading.h3 = props => <Heading fontSize={4} {...props} as=\"h3\" />\nHeading.h4 = props => <Heading fontSize={3} {...props} as=\"h4\" />\nHeading.h5 = props => <Heading fontSize={3} {...props} as=\"h5\" />\nHeading.h6 = props => <Heading fontSize={3} {...props} as=\"h6\" />\n\nHeading.h1.displayName = 'Heading1'\nHeading.h2.displayName = 'Heading2'\nHeading.h3.displayName = 'Heading3'\nHeading.h4.displayName = 'Heading4'\nHeading.h5.displayName = 'Heading5'\nHeading.h6.displayName = 'Heading6'\n\nexport default Heading\n"],"mappings":"AA0BA;;;;;;;;;;;;;;;;;;;;;;;ACjBA","sourceRoot":""} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue