diff --git a/.eslintignore b/.eslintignore index 73cb24becbf2..af5321f2b3bb 100644 --- a/.eslintignore +++ b/.eslintignore @@ -10,6 +10,7 @@ lib/cli/test scripts/storage *.bundle.js *.js.map +*.d.ts !.remarkrc.js !.babelrc.js @@ -18,7 +19,3 @@ scripts/storage !.jest.config.js !.storybook -REACT_NATIVE -examples-native -react-native -ondevice-* \ No newline at end of file diff --git a/.github/automention.yml b/.github/automention.yml index b137b453dbc3..d81044a919e5 100644 --- a/.github/automention.yml +++ b/.github/automention.yml @@ -5,7 +5,7 @@ 'app: polymer': ['stijnkoopal', 'ndelangen'] 'app: preact': ['BartWaardenburg'] 'app: react-native': ['benoitdion', 'gongreg'] -'app: react-native-server': ['benoitdion', 'igor-dv'] +'app: react-native-server': ['benoitdion', 'gongreg'] 'app: svelte': ['cam-stitt', 'plumpNation'] 'app: vue': ['backbone87', 'elevatebart', 'pksunkara'] 'api: addons': ['ndelangen'] diff --git a/CHANGELOG.md b/CHANGELOG.md index ec565d470609..70df979a20ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,75 @@ +## 5.2.0-alpha.36 (July 5, 2019) + +### Features + +* Addon-docs: Added inline option to Story block ([#7308](https://github.com/storybookjs/storybook/pull/7308)) +* Addon-knobs: Ensure unique knob names across groups ([#6793](https://github.com/storybookjs/storybook/pull/6793)) +* Core: Enable webpack to rebuild changes in node_modules ([#6265](https://github.com/storybooorybook/pull/6265)) +* Addons: Disable option for addon tab ([#6923](https://github.com/storybookjs/storybook/pull/6923)) + +### Bug Fixes + +* Fix lint error from #6923 ([#7311](https://github.com/storybookjs/storybook/pull/7311)) +* Addon-actions: fix serialization performance ([#7256](https://github.com/storybookjs/storybook/pull/7256)) + +### Maintenance + +* Typescript: Migrate @storybook/addon-event ([#7190](https://github.com/storybookjs/storybook/pull/7190)) +* Typescript: Improve actions type ([#7012](https://github.com/storybookjs/storybook/pull/7012)) + +## 5.2.0-alpha.35 (July 3, 2019) + +### Bug Fixes + +* React-Native: Fix null story check ([#7243](https://github.com/storybookjs/storybook/pull/7243)) + +## 5.2.0-alpha.34 (July 2, 2019) + +### Bug Fixes + +* CLI: Fix `--preview-url` for static builds ([#7245](https://github.com/storybookjs/storybook/pull/7245)) +* Addon-docs: Fix non-React support & add Vue example ([#7222](https://github.com/storybookjs/storybook/pull/7222)) +* CLI: Move the free port logic so that loadOptions don't override it ([#7237](https://github.com/storybookjs/storybook/pull/7237)) + +## 5.2.0-alpha.33 (July 1, 2019) + +### Features + +* CLI: Add `--preview-url` for custom preview ([#7235](https://github.com/storybookjs/storybook/pull/7235)) + +### Bug Fixes + +* React-Native: Upgrade to new `story_store` API ([#7234](https://github.com/storybookjs/storybook/pull/7234)) + +## 5.2.0-alpha.32 (June 29, 2019) + +### Features + +* Addon-docs: Add .story.mdx support to preset ([#7229](https://github.com/storybookjs/storybook/pull/7229)) + +### Bug Fixes + +* React-native: Fix react native server ([#7187](https://github.com/storybookjs/storybook/pull/7187)) +* Addon-docs: Fix source-loader in monorepo examples ([#7214](https://github.com/storybookjs/storybook/pull/7214)) + +### Maintenance + +* Addon-docs: Convert repo stories to new module format ([#7175](https://github.com/storybookjs/storybook/pull/7175)) + +## 5.2.0-alpha.31 (June 27, 2019) + +### Breaking Changes + +* Module format: story field for name/parameters annotation ([#7202](https://github.com/storybookjs/storybook/pull/7202)) + +### Features + +* Core: Story sorting ([#6472](https://github.com/storybookjs/storybook/pull/6472)) + +### Maintenance + +* Addon-docs: Fix source-loader CI errors ([#7203](https://github.com/storybookjs/storybook/pull/7203)) + ## 5.2.0-alpha.30 (June 25, 2019) This release merges `release/docs-technical-preview` branch back into `next` through a series of PRs. It also contains other changes that came in on `next` since the last alpha. @@ -34,6 +106,19 @@ This release merges `release/docs-technical-preview` branch back into `next` thr * Upgrade core-js to 3.x in devkits ([#7171](https://github.com/storybookjs/storybook/pull/7171)) * UPGRADE lazy-universal-dotenv ([#7151](https://github.com/storybookjs/storybook/pull/7151)) +## 5.1.9 (June 20, 2019) + +### Bug Fixes + +* Core: Fix JSON babel config error reporting ([#7104](https://github.com/storybookjs/storybook/pull/7104)) +* UI: Fix about page version check message ([#7105](https://github.com/storybookjs/storybook/pull/7105)) + +### Dependency Upgrades + +* Add missing dependencies to ui/react ([#7081](https://github.com/storybookjs/storybook/pull/7081)) +* UPGRADE lazy-universal-dotenv ([#7151](https://github.com/storybookjs/storybook/pull/7151)) +* Make compatible with yarn Pnp ([#6922](https://github.com/storybookjs/storybook/pull/6922)) + ## 5.2.0-alpha.29 (June 17, 2019) ### Features @@ -65,160 +150,81 @@ Publish failed * CLI: improve bootstrap list ([#6993](https://github.com/storybookjs/storybook/pull/6993)) * CLI: replaced merge-dirs dependency by fs-extra ([#7100](https://github.com/storybookjs/storybook/pull/7100)) -## 5.2.0-alpha.26 (June 14, 2019) - -- Merge in changes from 5.1.7/next branch. -- Fix earlier merge problems relating to addon-docs: - - Restore `--docs` command-line functionality - - Fix refreshing docs page bug - -## 5.2.0-alpha.25 (June 14, 2019) +## 5.1.8 (June 14, 2019) -Publish failed - -## 5.2.0-alpha.24 (June 13, 2019) - -Merge in changes from 5.1.3/next branch. +### Bug Fixes -## 5.2.0-alpha.23 (June 10, 2019) +* CLI: Fix RN template to not import addons ([#7096](https://github.com/storybookjs/storybook/pull/7096)) -Merge in changes from 5.1.3/next branch. Releasing from the addon-docs branch to keep things moving until we can merge addon-docs into next. - -## 5.2.0-alpha.22 (June 7, 2019) +## 5.1.7 (June 14, 2019) -- Merge in changes from 5.1.1 -- Addon-docs: - - Inline stories respect height prop - - Export Description block +### Bug Fixes -## 5.2.0-alpha.21 (June 2, 2019) +* UI: Fix warning of loading prop not being a string ([#7080](https://github.com/storybookjs/storybook/pull/7080)) -- Core: Convert module format to use default export for metadata -- Addon-docs: Compile MDX to default export modules format -- Source-loader: Support parameter injection for default export metadata +## 5.1.6 (June 14, 2019) -## 5.2.0-alpha.20 (May 31, 2019) +Publish failed -- Addon-docs: Use Meta doc block instead of exporting componentMeta +## 5.1.5 (June 14, 2019) -## 5.2.0-alpha.19 (May 28, 2019) +### Bug Fixes -- Source-loader: Fix bad package dependencies +* Core: Upgrade plugin core-js fix ([#7086](https://github.com/storybookjs/storybook/pull/7086)) +* UI: Fix sidebar loading visibility ([#7073](https://github.com/storybookjs/storybook/pull/7073)) +* UI: Fix unnecessary large bundlesize ([#7091](https://github.com/storybookjs/storybook/pull/7091)) +* Addon-contexts, RN-server: Add core-js dep ([#7094](https://github.com/storybookjs/storybook/pull/7094)) -## 5.2.0-alpha.18 (May 26, 2019) - -- Addon-docs: Codemod for adding component parameters -- Core: Babel config loading bugfix ([#6878](https://github.com/storybookjs/storybook/pull/6878)) +## 5.2.0-alpha.26 (June 14, 2019) -## 5.2.0-alpha.17 (May 26, 2019) +- Merge in changes from 5.1.7/next branch. +- Fix earlier merge problems relating to addon-docs: + - Restore `--docs` command-line functionality + - Fix refreshing docs page bug -- Addon-docs: Refer to selected story/component with `id="."` / `of="."` +## 5.2.0-alpha.25 (June 14, 2019) -## 5.2.0-alpha.16 (May 25, 2019) +Publish failed -- Addon-docs: Auto-configure `inlineStories` & `getPropDefs` based on framework +## 5.1.4 (June 13, 2019) -## 5.2.0-alpha.15 (May 25, 2019) +### Bug Fixes -- Addon-docs: Expanded Vue support - - Props table support - - iframeHeight configuration parameter +* Core: Fix core-js 3 errors ([#7051](https://github.com/storybookjs/storybook/pull/7051)) +* UI: Fix syntax highlighter plain text not visible ([#7057](https://github.com/storybookjs/storybook/pull/7057)) +* Addon-actions: Add default options to action(s) ([#6438](https://github.com/storybookjs/storybook/pull/6438)) -## 5.2.0-alpha.14 (May 25, 2019) +### Dependency Upgrades -- Addon-docs: Expanded source formats via `@storybook/source-loader` - - Legacy `storiesOf` format x (JS / TSX) - - Component modules format x (JS / TSX) - - Component MDX format +* fix: add missing core-js dependency ([#7016](https://github.com/storybookjs/storybook/pull/7016)) +* chore: set react version to 16.8.3 to match react native ([#7008](https://github.com/storybookjs/storybook/pull/7008)) -## 5.2.0-alpha.13 (May 24, 2019) +## 5.2.0-alpha.24 (June 13, 2019) -- Addon-docs: Add documentation-only `--docs` option to build storybook +Merge in changes from 5.1.3/next branch. -## 5.2.0-alpha.12 (May 21, 2019) +## 5.2.0-alpha.23 (June 10, 2019) -- Addon-docs: Fix regression in preview source for legacy stories +Merge in changes from 5.1.3/next branch. Releasing from the addon-docs branch to keep things moving until we can merge addon-docs into next. -## 5.2.0-alpha.11 (May 21, 2019) +## 5.2.0-alpha.22 (June 7, 2019) +- Merge in changes from 5.1.1 - Addon-docs: - - Source refer to stories by name - - Source support for multi-story previews - - Fix loader bug for plaintext stories - -## 5.2.0-alpha.10 (May 19, 2019) - -- Addon-docs: Display source dropdown in preview component - -## 5.2.0-alpha.9 (May 17, 2019) - -- Addon-docs bugfixes: - - Fix broken components stories - - Fix regression in iframe preview - - Fix docgen props block - - Fix margin styling on docs page - -## 5.2.0-alpha.8 (May 15, 2019) - -- Addon-docs: Optimize docs pane rerendering - -## 5.2.0-alpha.7 (May 15, 2019) - -- Addon-docs: Docs page bugfix -- Addon-docs: Fix source block for legacy stories - -NOTE: use `@storybook/addon-storysource/loader` with option `injectParameters: true` for legacy source - -## 5.2.0-alpha.6 (May 14, 2019) - -- Addon-docs: Docs page content update -- Addon-docs: Preview component redefinition - -#### Breaking changes - -Preview behavior has been updated. Docs page content has been updated. - -Before: - -- `` defines a story, `` references it - -After: - -- `` defines a story, `` references it -- `` shows one or more stories in a grid - -## 5.2.0-alpha.5 (May 12, 2019) - -- Addon-docs: Description block refactor and bugfixes - -## 5.2.0-alpha.4 (May 11, 2019) - -- Addon-docs: Source, Props, DocsPage doc blocks - -#### Breaking changes - -- Doc blocks & presets have moved. Update your MDX stories and `presets.js` file accordingly: - - `import { Preview, Story } from '@storybook/addon-docs/blocks'; - - `module.exports = ['@storybook/addon-docs/common/preset'];` - -## 5.2.0-alpha.3 (May 1, 2019) - -- Addon-docs: Add Story decorator and parameter support -- Addon-docs: Remove need for extra project babelrc + - Inline stories respect height prop + - Export Description block -## 5.2.0-alpha.2 (April 30, 2019) +## 5.1.3 (June 6, 2019) -- Addon-docs: Streamline setup, fix MDX dependencies, improve MDX import, and update guide +### Bug Fixes -## 5.2.0-alpha.0 (April 29, 2019) +* UI: Fix links that are not working with plain left click ([#6970](https://github.com/storybookjs/storybook/pull/6970)) +* Core: Don't redefine `process` variable ([#6991](https://github.com/storybookjs/storybook/pull/6991)) +* Core: Don't mutate user's babel config ([#6987](https://github.com/storybookjs/storybook/pull/6987)) -Storybook Docs technical preview: +## 5.1.2 (June 6, 2019) -- Docs addon -- MDX story format -- Module story format -- Load API -- [Guide](https://docs.google.com/document/d/1un6YX7xDKEKl5-MVb-egnOYN8dynb5Hf7mq0hipk8JE/edit?usp=sharing) +Publish failed ## 5.1.1 (June 5, 2019) @@ -264,6 +270,16 @@ Publish failed * Core: Fix webpack `process.*` variable definitions ([#6946](https://github.com/storybookjs/storybook/pull/6946)) * Angular: Fix tsconfig.app.json detection for Angular 8 ([#6940](https://github.com/storybookjs/storybook/pull/6940)) +## 5.2.0-alpha.21 (June 2, 2019) + +- Core: Convert module format to use default export for metadata +- Addon-docs: Compile MDX to default export modules format +- Source-loader: Support parameter injection for default export metadata + +## 5.2.0-alpha.20 (May 31, 2019) + +- Addon-docs: Use Meta doc block instead of exporting componentMeta + ## 5.1.0-rc.3 (May 29, 2019) ### Features @@ -284,12 +300,46 @@ Publish failed * Bump ts-node from 8.1.0 to 8.2.0 ([#6890](https://github.com/storybookjs/storybook/pull/6890)) * Bump svelte from 3.4.2 to 3.4.4 ([#6892](https://github.com/storybookjs/storybook/pull/6892)) +## 5.2.0-alpha.19 (May 28, 2019) + +- Source-loader: Fix bad package dependencies + ## 5.1.0-rc.2 (May 27, 2019) ### Bug Fixes * Core: Fix JS/JSON loading babel config ([#6878](https://github.com/storybookjs/storybook/pull/6878)) +## 5.2.0-alpha.18 (May 26, 2019) + +- Addon-docs: Codemod for adding component parameters +- Core: Babel config loading bugfix ([#6878](https://github.com/storybookjs/storybook/pull/6878)) + +## 5.2.0-alpha.17 (May 26, 2019) + +- Addon-docs: Refer to selected story/component with `id="."` / `of="."` + +## 5.2.0-alpha.16 (May 25, 2019) + +- Addon-docs: Auto-configure `inlineStories` & `getPropDefs` based on framework + +## 5.2.0-alpha.15 (May 25, 2019) + +- Addon-docs: Expanded Vue support + - Props table support + - iframeHeight configuration parameter + +## 5.2.0-alpha.14 (May 25, 2019) + +- Addon-docs: Expanded source formats via `@storybook/source-loader` + - Legacy `storiesOf` format x (JS / TSX) + - Component modules format x (JS / TSX) + - Component MDX format + +## 5.2.0-alpha.13 (May 24, 2019) + +- Addon-docs: Add documentation-only `--docs` option to build storybook + ## 5.1.0-rc.1 (May 24, 2019) ### Features @@ -344,6 +394,29 @@ Publish failed * Bump svelte from 3.4.1 to 3.4.2 ([#6838](https://github.com/storybookjs/storybook/pull/6838)) * Misc upgrades ([#6820](https://github.com/storybookjs/storybook/pull/6820)) +## 5.2.0-alpha.12 (May 21, 2019) + +- Addon-docs: Fix regression in preview source for legacy stories + +## 5.2.0-alpha.11 (May 21, 2019) + +- Addon-docs: + - Source refer to stories by name + - Source support for multi-story previews + - Fix loader bug for plaintext stories + +## 5.2.0-alpha.10 (May 19, 2019) + +- Addon-docs: Display source dropdown in preview component + +## 5.2.0-alpha.9 (May 17, 2019) + +- Addon-docs bugfixes: + - Fix broken components stories + - Fix regression in iframe preview + - Fix docgen props block + - Fix margin styling on docs page + ## 5.1.0-beta.1 (May 16, 2019) ### Bug Fixes @@ -361,6 +434,49 @@ Publish failed * Bump fs-extra from 7.0.1 to 8.0.1 ([#6776](https://github.com/storybookjs/storybook/pull/6776)) +## 5.2.0-alpha.8 (May 15, 2019) + +- Addon-docs: Optimize docs pane rerendering + +## 5.2.0-alpha.7 (May 15, 2019) + +- Addon-docs: Docs page bugfix +- Addon-docs: Fix source block for legacy stories + +NOTE: use `@storybook/addon-storysource/loader` with option `injectParameters: true` for legacy source + +## 5.2.0-alpha.6 (May 14, 2019) + +- Addon-docs: Docs page content update +- Addon-docs: Preview component redefinition + +#### Breaking changes + +Preview behavior has been updated. Docs page content has been updated. + +Before: + +- `` defines a story, `` references it + +After: + +- `` defines a story, `` references it +- `` shows one or more stories in a grid + +## 5.2.0-alpha.5 (May 12, 2019) + +- Addon-docs: Description block refactor and bugfixes + +## 5.2.0-alpha.4 (May 11, 2019) + +- Addon-docs: Source, Props, DocsPage doc blocks + +#### Breaking changes + +- Doc blocks & presets have moved. Update your MDX stories and `presets.js` file accordingly: + - `import { Preview, Story } from '@storybook/addon-docs/blocks'; + - `module.exports = ['@storybook/addon-docs/common/preset'];` + ## 5.1.0-beta.0 (May 10, 2019) Welcome to the 5.1 beta! Feature development's done; `beta.0` kicks off the stabilization process for the 5.1 final release. 🚀 @@ -426,6 +542,25 @@ Failed publish - CLI: Refactor how we install dev dependencies in cli ([#6695](https://github.com/storybookjs/storybook/pull/6695)) +## 5.2.0-alpha.3 (May 1, 2019) + +- Addon-docs: Add Story decorator and parameter support +- Addon-docs: Remove need for extra project babelrc + +## 5.2.0-alpha.2 (April 30, 2019) + +- Addon-docs: Streamline setup, fix MDX dependencies, improve MDX import, and update guide + +## 5.2.0-alpha.0 (April 29, 2019) + +Storybook Docs technical preview: + +- Docs addon +- MDX story format +- Module story format +- Load API +- [Guide](https://docs.google.com/document/d/1un6YX7xDKEKl5-MVb-egnOYN8dynb5Hf7mq0hipk8JE/edit?usp=sharing) + ## 5.0.11 (April 28, 2019) ### Bug Fixes diff --git a/MIGRATION.md b/MIGRATION.md index 593bc601f8ee..9d1c4b5985e1 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -1,62 +1,66 @@ # Migration -- [From version 5.1.x to 5.2.x](#from-version-51x-to-52x) - - [Docs mode docgen](#docs-mode-docgen) -- [From version 5.0.x to 5.1.x](#from-version-50x-to-51x) - - [React native server](#react-native-server) - - [Angular 7](#angular-7) - - [CoreJS 3](#corejs-3) -- [From version 5.0.1 to 5.0.2](#from-version-501-to-502) - - [Deprecate webpack extend mode](#deprecate-webpack-extend-mode) -- [From version 4.1.x to 5.0.x](#from-version-41x-to-50x) - - [Webpack config simplification](#webpack-config-simplification) - - [Theming overhaul](#theming-overhaul) - - [Story hierarchy defaults](#story-hierarchy-defaults) - - [Options addon deprecated](#options-addon-deprecated) - - [Individual story decorators](#individual-story-decorators) - - [Addon backgrounds uses parameters](#addon-backgrounds-uses-parameters) - - [Addon cssresources name attribute renamed](#addon-cssresources-name-attribute-renamed) - - [Addon viewport uses parameters](#addon-viewport-uses-parameters) - - [Addon a11y uses parameters](#addon-a11y-uses-parameters-decorator-renamed) - - [New keyboard shortcuts defaults](#new-keyboard-shortcuts-defaults) - - [New URL structure](#new-url-structure) - - [Vue integration](#vue-integration) -- [From version 4.0.x to 4.1.x](#from-version-40x-to-41x) - - [Private addon config](#private-addon-config) - - [React 15.x](#react-15x) -- [From version 3.4.x to 4.0.x](#from-version-34x-to-40x) - - [React 16.3+](#react-163) - - [Generic addons](#generic-addons) - - [Knobs select ordering](#knobs-select-ordering) - - [Knobs URL parameters](#knobs-url-parameters) - - [Keyboard shortcuts moved](#keyboard-shortcuts-moved) - - [Removed addWithInfo](#removed-addwithinfo) - - [Removed RN packager](#removed-rn-packager) - - [Removed RN addons](#removed-rn-addons) - - [Storyshots Changes](#storyshots-changes) - - [Webpack 4](#webpack-4) - - [Babel 7](#babel-7) - - [Create-react-app](#create-react-app) - - [Upgrade CRA1 to babel 7](#upgrade-cra1-to-babel-7) - - [Migrate CRA1 while keeping babel 6](#migrate-cra1-while-keeping-babel-6) - - [start-storybook opens browser](#start-storybook-opens-browser) - - [CLI Rename](#cli-rename) - - [Addon story parameters](#addon-story-parameters) -- [From version 3.3.x to 3.4.x](#from-version-33x-to-34x) -- [From version 3.2.x to 3.3.x](#from-version-32x-to-33x) - - [`babel-core` is now a peer dependency (#2494)](#babel-core-is-now-a-peer-dependency-2494) - - [Base webpack config now contains vital plugins (#1775)](#base-webpack-config-now-contains-vital-plugins-1775) - - [Refactored Knobs](#refactored-knobs) -- [From version 3.1.x to 3.2.x](#from-version-31x-to-32x) - - [Moved TypeScript addons definitions](#moved-typescript-addons-definitions) - - [Updated Addons API](#updated-addons-api) -- [From version 3.0.x to 3.1.x](#from-version-30x-to-31x) - - [Moved TypeScript definitions](#moved-typescript-definitions) - - [Deprecated head.html](#deprecated-headhtml) -- [From version 2.x.x to 3.x.x](#from-version-2xx-to-3xx) - - [Webpack upgrade](#webpack-upgrade) - - [Packages renaming](#packages-renaming) - - [Deprecated embedded addons](#deprecated-embedded-addons) +- [Migration](#Migration) + - [From version 5.1.x to 5.2.x](#From-version-51x-to-52x) + - [Docs mode docgen](#Docs-mode-docgen) + - [storySort option](#storySort-option) + - [From version 5.0.x to 5.1.x](#From-version-50x-to-51x) + - [React native server](#React-native-server) + - [Angular 7](#Angular-7) + - [CoreJS 3](#CoreJS-3) + - [From version 5.0.1 to 5.0.2](#From-version-501-to-502) + - [Deprecate webpack extend mode](#Deprecate-webpack-extend-mode) + - [From version 4.1.x to 5.0.x](#From-version-41x-to-50x) + - [sortStoriesByKind](#sortStoriesByKind) + - [Webpack config simplification](#Webpack-config-simplification) + - [Theming overhaul](#Theming-overhaul) + - [Story hierarchy defaults](#Story-hierarchy-defaults) + - [Options addon deprecated](#Options-addon-deprecated) + - [Individual story decorators](#Individual-story-decorators) + - [Addon backgrounds uses parameters](#Addon-backgrounds-uses-parameters) + - [Addon cssresources name attribute renamed](#Addon-cssresources-name-attribute-renamed) + - [Addon viewport uses parameters](#Addon-viewport-uses-parameters) + - [Addon a11y uses parameters, decorator renamed](#Addon-a11y-uses-parameters-decorator-renamed) + - [New keyboard shortcuts defaults](#New-keyboard-shortcuts-defaults) + - [New URL structure](#New-URL-structure) + - [Rename of the `--secure` cli parameter to `--https`](#Rename-of-the---secure-cli-parameter-to---https) + - [Vue integration](#Vue-integration) + - [From version 4.0.x to 4.1.x](#From-version-40x-to-41x) + - [Private addon config](#Private-addon-config) + - [React 15.x](#React-15x) + - [From version 3.4.x to 4.0.x](#From-version-34x-to-40x) + - [React 16.3+](#React-163) + - [Generic addons](#Generic-addons) + - [Knobs select ordering](#Knobs-select-ordering) + - [Knobs URL parameters](#Knobs-URL-parameters) + - [Keyboard shortcuts moved](#Keyboard-shortcuts-moved) + - [Removed addWithInfo](#Removed-addWithInfo) + - [Removed RN packager](#Removed-RN-packager) + - [Removed RN addons](#Removed-RN-addons) + - [Storyshots Changes](#Storyshots-Changes) + - [Webpack 4](#Webpack-4) + - [Babel 7](#Babel-7) + - [Create-react-app](#Create-react-app) + - [Upgrade CRA1 to babel 7](#Upgrade-CRA1-to-babel-7) + - [Migrate CRA1 while keeping babel 6](#Migrate-CRA1-while-keeping-babel-6) + - [start-storybook opens browser](#start-storybook-opens-browser) + - [CLI Rename](#CLI-Rename) + - [Addon story parameters](#Addon-story-parameters) + - [From version 3.3.x to 3.4.x](#From-version-33x-to-34x) + - [From version 3.2.x to 3.3.x](#From-version-32x-to-33x) + - [`babel-core` is now a peer dependency (#2494)](#babel-core-is-now-a-peer-dependency-2494) + - [Base webpack config now contains vital plugins (#1775)](#Base-webpack-config-now-contains-vital-plugins-1775) + - [Refactored Knobs](#Refactored-Knobs) + - [From version 3.1.x to 3.2.x](#From-version-31x-to-32x) + - [Moved TypeScript addons definitions](#Moved-TypeScript-addons-definitions) + - [Updated Addons API](#Updated-Addons-API) + - [From version 3.0.x to 3.1.x](#From-version-30x-to-31x) + - [Moved TypeScript definitions](#Moved-TypeScript-definitions) + - [Deprecated head.html](#Deprecated-headhtml) + - [From version 2.x.x to 3.x.x](#From-version-2xx-to-3xx) + - [Webpack upgrade](#Webpack-upgrade) + - [Packages renaming](#Packages-renaming) + - [Deprecated embedded addons](#Deprecated-embedded-addons) ## From version 5.1.x to 5.2.x @@ -67,6 +71,20 @@ This isn't a breaking change per se, because `addon-docs` is a new feature. Howe 1. Support for only one prop table 2. Prop table docgen info should be stored on the component and not in the global variable `STORYBOOK_REACT_CLASSES` as before. +### storySort option + +In 5.0.x the global option `sortStoriesByKind` option was [inadverttly removed](#sortstoriesbykind). In 5.2 we've introduced a new option, `storySort`, to replace it. `storySort` takes a comparator function, so it is strictly more powerful than `sortStoriesByKind`. + +For example, here's how to sort by story ID using `storySort`: + +```js +addParameters({ + options: { + storySort: (a, b) => a[1].id.localeCompare(b[1].id), + }, +}); +``` + ## From version 5.0.x to 5.1.x ### React native server diff --git a/addons/a11y/package.json b/addons/a11y/package.json index 7605352ad11c..455f356162db 100644 --- a/addons/a11y/package.json +++ b/addons/a11y/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-a11y", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "a11y addon for storybook", "keywords": [ "a11y", @@ -26,12 +26,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.2.0-alpha.30", - "@storybook/api": "5.2.0-alpha.30", - "@storybook/client-logger": "5.2.0-alpha.30", - "@storybook/components": "5.2.0-alpha.30", - "@storybook/core-events": "5.2.0-alpha.30", - "@storybook/theming": "5.2.0-alpha.30", + "@storybook/addons": "5.2.0-alpha.36", + "@storybook/api": "5.2.0-alpha.36", + "@storybook/client-logger": "5.2.0-alpha.36", + "@storybook/components": "5.2.0-alpha.36", + "@storybook/core-events": "5.2.0-alpha.36", + "@storybook/theming": "5.2.0-alpha.36", "axe-core": "^3.2.2", "common-tags": "^1.8.0", "core-js": "^3.0.1", diff --git a/addons/a11y/src/register.tsx b/addons/a11y/src/register.tsx index a0995ab4fcee..9b360ec97d4c 100644 --- a/addons/a11y/src/register.tsx +++ b/addons/a11y/src/register.tsx @@ -2,7 +2,7 @@ import React, { Fragment, FunctionComponent } from 'react'; import { styled } from '@storybook/theming'; import { addons, types } from '@storybook/addons'; -import { ADDON_ID, PANEL_ID } from './constants'; +import { ADDON_ID, PANEL_ID, PARAM_KEY } from './constants'; import { ColorBlindness } from './components/ColorBlindness'; import { A11YPanel } from './components/A11YPanel'; @@ -94,6 +94,7 @@ addons.register(ADDON_ID, api => { title: 'Accessibility', type: types.PANEL, render: ({ active, key }) => , + paramKey: PARAM_KEY, }); addons.add(PANEL_ID, { diff --git a/addons/actions/package.json b/addons/actions/package.json index 8c9d126aa810..e0defa858bc7 100644 --- a/addons/actions/package.json +++ b/addons/actions/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-actions", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Action Logger addon for storybook", "keywords": [ "storybook" @@ -21,11 +21,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.2.0-alpha.30", - "@storybook/api": "5.2.0-alpha.30", - "@storybook/components": "5.2.0-alpha.30", - "@storybook/core-events": "5.2.0-alpha.30", - "@storybook/theming": "5.2.0-alpha.30", + "@storybook/addons": "5.2.0-alpha.36", + "@storybook/api": "5.2.0-alpha.36", + "@storybook/components": "5.2.0-alpha.36", + "@storybook/core-events": "5.2.0-alpha.36", + "@storybook/theming": "5.2.0-alpha.36", "core-js": "^3.0.1", "fast-deep-equal": "^2.0.1", "global": "^4.3.2", diff --git a/addons/actions/src/constants.ts b/addons/actions/src/constants.ts index 1bc018e8d9ba..9bc6f11ef5c4 100644 --- a/addons/actions/src/constants.ts +++ b/addons/actions/src/constants.ts @@ -1,3 +1,4 @@ +export const PARAM_KEY = 'actions'; export const ADDON_ID = 'storybook/actions'; export const PANEL_ID = `${ADDON_ID}/panel`; export const EVENT_ID = `${ADDON_ID}/action-event`; diff --git a/addons/actions/src/manager.tsx b/addons/actions/src/manager.tsx index be1e6f8e1261..d77272be077b 100644 --- a/addons/actions/src/manager.tsx +++ b/addons/actions/src/manager.tsx @@ -1,13 +1,14 @@ import React from 'react'; import addons from '@storybook/addons'; import ActionLogger from './containers/ActionLogger'; -import { ADDON_ID, PANEL_ID } from '.'; +import { ADDON_ID, PANEL_ID, PARAM_KEY } from './constants'; export function register() { addons.register(ADDON_ID, api => { addons.addPanel(PANEL_ID, { title: 'Actions', render: ({ active, key }) => , + paramKey: PARAM_KEY, }); }); } diff --git a/addons/actions/src/models/ActionOptions.ts b/addons/actions/src/models/ActionOptions.ts index 548c9c5075bb..c4a838b17c25 100644 --- a/addons/actions/src/models/ActionOptions.ts +++ b/addons/actions/src/models/ActionOptions.ts @@ -2,4 +2,5 @@ export interface ActionOptions { depth?: number; clearOnStoryChange?: boolean; limit?: number; + allowFunction?: boolean; } diff --git a/addons/actions/src/models/ActionsFunction.ts b/addons/actions/src/models/ActionsFunction.ts new file mode 100644 index 000000000000..8c870cdf5ad1 --- /dev/null +++ b/addons/actions/src/models/ActionsFunction.ts @@ -0,0 +1,81 @@ +import { ActionOptions } from './ActionOptions'; +import { ActionsMap } from './ActionsMap'; + +export interface ActionsFunction { + (handlerMap: Record, options?: ActionOptions): ActionsMap; + (...handlers: T[]): ActionsMap; + + (handler1: T, options?: ActionOptions): ActionsMap; + (handler1: T, handler2: T, options?: ActionOptions): ActionsMap; + (handler1: T, handler2: T, handler3: T, options?: ActionOptions): ActionsMap; + ( + handler1: T, + handler2: T, + handler3: T, + handler4: T, + options?: ActionOptions + ): ActionsMap; + ( + handler1: T, + handler2: T, + handler3: T, + handler4: T, + handler5: T, + options?: ActionOptions + ): ActionsMap; + ( + handler1: T, + handler2: T, + handler3: T, + handler4: T, + handler5: T, + handler6: T, + options?: ActionOptions + ): ActionsMap; + ( + handler1: T, + handler2: T, + handler3: T, + handler4: T, + handler5: T, + handler6: T, + handler7: T, + options?: ActionOptions + ): ActionsMap; + ( + handler1: T, + handler2: T, + handler3: T, + handler4: T, + handler5: T, + handler6: T, + handler7: T, + handler8: T, + options?: ActionOptions + ): ActionsMap; + ( + handler1: T, + handler2: T, + handler3: T, + handler4: T, + handler5: T, + handler6: T, + handler7: T, + handler8: T, + handler9: T, + options?: ActionOptions + ): ActionsMap; + ( + handler1: T, + handler2: T, + handler3: T, + handler4: T, + handler5: T, + handler6: T, + handler7: T, + handler8: T, + handler9: T, + handler10: T, + options?: ActionOptions + ): ActionsMap; +} diff --git a/addons/actions/src/models/ActionsMap.ts b/addons/actions/src/models/ActionsMap.ts index d7d1b6f05a37..7dde0c7c0ddd 100644 --- a/addons/actions/src/models/ActionsMap.ts +++ b/addons/actions/src/models/ActionsMap.ts @@ -1,5 +1,3 @@ import { HandlerFunction } from './HandlerFunction'; -export interface ActionsMap { - [key: string]: HandlerFunction; -} +export type ActionsMap = Record; diff --git a/addons/actions/src/models/index.ts b/addons/actions/src/models/index.ts index eb72774241b1..d8c7de6271d0 100644 --- a/addons/actions/src/models/index.ts +++ b/addons/actions/src/models/index.ts @@ -1,4 +1,5 @@ export * from './ActionDisplay'; +export * from './ActionsFunction'; export * from './ActionOptions'; export * from './ActionsMap'; export * from './DecoratorFunction'; diff --git a/addons/actions/src/preview/__tests__/action.test.js b/addons/actions/src/preview/__tests__/action.test.js index 75128b8b5c25..36a954efdb58 100644 --- a/addons/actions/src/preview/__tests__/action.test.js +++ b/addons/actions/src/preview/__tests__/action.test.js @@ -91,3 +91,62 @@ describe('Depth config', () => { }); }); }); + +describe('allowFunction config', () => { + it('with global allowFunction false', () => { + const channel = createChannel(); + + const allowFunction = false; + + configureActions({ + allowFunction, + }); + + action('test-action')({ + root: { + one: { + a: 1, + b: () => 'foo', + }, + }, + }); + + expect(getChannelData(channel)[0]).toEqual({ + root: { + one: { + a: 1, + b: expect.any(Function), + }, + }, + }); + }); + + // TODO: this test is pretty pointless, as the real channel isn't used, nothing is changed + it('with global allowFunction true', () => { + const channel = createChannel(); + + const allowFunction = true; + + configureActions({ + allowFunction, + }); + + action('test-action')({ + root: { + one: { + a: 1, + b: () => 'foo', + }, + }, + }); + + expect(getChannelData(channel)[0]).toEqual({ + root: { + one: { + a: 1, + b: expect.any(Function), + }, + }, + }); + }); +}); diff --git a/addons/actions/src/preview/action.ts b/addons/actions/src/preview/action.ts index f24843595593..1a3642325579 100644 --- a/addons/actions/src/preview/action.ts +++ b/addons/actions/src/preview/action.ts @@ -22,6 +22,7 @@ export function action(name: string, options: ActionOptions = {}): HandlerFuncti options: { ...actionOptions, depth: minDepth + (actionOptions.depth || 3), + allowFunction: actionOptions.allowFunction || false, }, }; channel.emit(EVENT_ID, actionDisplayToEmit); diff --git a/addons/actions/src/preview/actions.ts b/addons/actions/src/preview/actions.ts index 416440a66cee..41c6d077a6a4 100644 --- a/addons/actions/src/preview/actions.ts +++ b/addons/actions/src/preview/actions.ts @@ -1,8 +1,8 @@ import { action } from './action'; -import { ActionOptions, ActionsMap } from '../models'; +import { ActionsFunction, ActionOptions, ActionsMap } from '../models'; import { config } from './configureActions'; -export function actions(...args: any[]): ActionsMap { +export const actions: ActionsFunction = (...args: any[]) => { let options: ActionOptions = config; const names = args; // last argument can be options @@ -26,4 +26,4 @@ export function actions(...args: any[]): ActionsMap { actionsObject[name] = action(namesObject[name], options); }); return actionsObject; -} +}; diff --git a/addons/backgrounds/package.json b/addons/backgrounds/package.json index 47835f1e5f12..83f032a17cb3 100644 --- a/addons/backgrounds/package.json +++ b/addons/backgrounds/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-backgrounds", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "A storybook addon to show different backgrounds for your preview", "keywords": [ "addon", @@ -25,12 +25,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.2.0-alpha.30", - "@storybook/api": "5.2.0-alpha.30", - "@storybook/client-logger": "5.2.0-alpha.30", - "@storybook/components": "5.2.0-alpha.30", - "@storybook/core-events": "5.2.0-alpha.30", - "@storybook/theming": "5.2.0-alpha.30", + "@storybook/addons": "5.2.0-alpha.36", + "@storybook/api": "5.2.0-alpha.36", + "@storybook/client-logger": "5.2.0-alpha.36", + "@storybook/components": "5.2.0-alpha.36", + "@storybook/core-events": "5.2.0-alpha.36", + "@storybook/theming": "5.2.0-alpha.36", "core-js": "^3.0.1", "memoizerific": "^1.11.3", "react": "^16.8.3", diff --git a/addons/centered/package.json b/addons/centered/package.json index 1e74c0af8fb5..aaf82a990dd6 100644 --- a/addons/centered/package.json +++ b/addons/centered/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-centered", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Storybook decorator to center components", "keywords": [ "addon", @@ -28,9 +28,12 @@ "util-deprecate": "^1.0.2" }, "devDependencies": { - "@types/mithril": "^1.1.16" + "@types/mithril": "^1.1.16", + "mithril": "*", + "preact": "*", + "react": "*" }, - "optionalDependencies": { + "peerDependencies": { "mithril": "*", "preact": "*", "react": "*" diff --git a/addons/contexts/package.json b/addons/contexts/package.json index fef15dd8e282..6ee78d994d4a 100644 --- a/addons/contexts/package.json +++ b/addons/contexts/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-contexts", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Storybook Addon Contexts", "keywords": [ "storybook", @@ -28,17 +28,20 @@ "dev:check-types": "tsc --noEmit" }, "dependencies": { - "@storybook/addons": "5.2.0-alpha.30", - "@storybook/api": "5.2.0-alpha.30", - "@storybook/components": "5.2.0-alpha.30", - "@storybook/core-events": "5.2.0-alpha.30", + "@storybook/addons": "5.2.0-alpha.36", + "@storybook/api": "5.2.0-alpha.36", + "@storybook/components": "5.2.0-alpha.36", + "@storybook/core-events": "5.2.0-alpha.36", "core-js": "^3.0.1" }, "peerDependencies": { "global": "*", - "qs": "*" + "qs": "*", + "preact": "*", + "react": "*", + "vue": "*" }, - "optionalDependencies": { + "devDependencies": { "preact": "*", "react": "*", "vue": "*" diff --git a/addons/cssresources/package.json b/addons/cssresources/package.json index 65652d32938e..483e88cad34a 100644 --- a/addons/cssresources/package.json +++ b/addons/cssresources/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-cssresources", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "A storybook addon to switch between css resources at runtime for your story", "keywords": [ "addon", @@ -25,10 +25,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.2.0-alpha.30", - "@storybook/api": "5.2.0-alpha.30", - "@storybook/components": "5.2.0-alpha.30", - "@storybook/core-events": "5.2.0-alpha.30", + "@storybook/addons": "5.2.0-alpha.36", + "@storybook/api": "5.2.0-alpha.36", + "@storybook/components": "5.2.0-alpha.36", + "@storybook/core-events": "5.2.0-alpha.36", "core-js": "^3.0.1", "global": "^4.3.2", "react": "^16.8.3" diff --git a/addons/cssresources/src/register.tsx b/addons/cssresources/src/register.tsx index 4c893c5ccc92..4366ea61801a 100644 --- a/addons/cssresources/src/register.tsx +++ b/addons/cssresources/src/register.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { addons, types } from '@storybook/addons'; -import { ADDON_ID, PANEL_ID } from './constants'; +import { ADDON_ID, PANEL_ID, PARAM_KEY } from './constants'; import { CssResourcePanel } from './css-resource-panel'; addons.register(ADDON_ID, api => { @@ -10,5 +10,6 @@ addons.register(ADDON_ID, api => { type: types.PANEL, title: 'CSS resources', render: ({ active }) => , + paramKey: PARAM_KEY, }); }); diff --git a/addons/design-assets/package.json b/addons/design-assets/package.json index 67c1a2b18489..f7a97800c79d 100644 --- a/addons/design-assets/package.json +++ b/addons/design-assets/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-design-assets", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Design asset preview for storybook", "keywords": [ "addon", @@ -27,12 +27,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.2.0-alpha.30", - "@storybook/api": "5.2.0-alpha.30", - "@storybook/client-logger": "5.2.0-alpha.30", - "@storybook/components": "5.2.0-alpha.30", - "@storybook/core-events": "5.2.0-alpha.30", - "@storybook/theming": "5.2.0-alpha.30", + "@storybook/addons": "5.2.0-alpha.36", + "@storybook/api": "5.2.0-alpha.36", + "@storybook/client-logger": "5.2.0-alpha.36", + "@storybook/components": "5.2.0-alpha.36", + "@storybook/core-events": "5.2.0-alpha.36", + "@storybook/theming": "5.2.0-alpha.36", "common-tags": "^1.8.0", "core-js": "^3.0.1", "global": "^4.3.2", diff --git a/addons/design-assets/src/register.tsx b/addons/design-assets/src/register.tsx index 61fda7a988db..fb903ec514e5 100644 --- a/addons/design-assets/src/register.tsx +++ b/addons/design-assets/src/register.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { addons, types } from '@storybook/addons'; import { AddonPanel } from '@storybook/components'; -import { ADDON_ID, PANEL_ID } from './constants'; +import { ADDON_ID, PANEL_ID, PARAM_KEY } from './constants'; import { Panel } from './panel'; addons.register(ADDON_ID, () => { @@ -14,5 +14,6 @@ addons.register(ADDON_ID, () => { ), + paramKey: PARAM_KEY, }); }); diff --git a/addons/docs/__snapshots__/mdx-compiler-plugin.test.js.snap b/addons/docs/__snapshots__/mdx-compiler-plugin.test.js.snap index 39e17c6b1afe..34e98971afbf 100644 --- a/addons/docs/__snapshots__/mdx-compiler-plugin.test.js.snap +++ b/addons/docs/__snapshots__/mdx-compiler-plugin.test.js.snap @@ -90,7 +90,8 @@ function MDXContent({ components, ...props }) { MDXContent.isMDXComponent = true; export const one = () => ; -one.parameters = { mdxSource: \`\` }; +one.story = {}; +one.story.parameters = { mdxSource: \`\` }; const componentMeta = { title: 'Button', @@ -159,11 +160,13 @@ function MDXContent({ components, ...props }) { MDXContent.isMDXComponent = true; export const one = () => ; -one.parameters = { mdxSource: \`\` }; +one.story = {}; +one.story.parameters = { mdxSource: \`\` }; export const helloStory = () => ; -helloStory.title = 'hello story'; -helloStory.parameters = { mdxSource: \`\` }; +helloStory.story = {}; +helloStory.story.name = 'hello story'; +helloStory.story.parameters = { mdxSource: \`\` }; const componentMeta = { title: 'Button', includeStories: ['one', 'helloStory'] }; @@ -229,8 +232,9 @@ export const toStorybook = () => ({ declarations: [Welcome], }, }); -toStorybook.title = 'to storybook'; -toStorybook.parameters = { +toStorybook.story = {}; +toStorybook.story.name = 'to storybook'; +toStorybook.story.parameters = { mdxSource: \`{ template: \\\\\`\\\\\`, props: { @@ -304,12 +308,14 @@ function MDXContent({ components, ...props }) { MDXContent.isMDXComponent = true; export const componentNotes = () => ; -componentNotes.title = 'component notes'; -componentNotes.parameters = { mdxSource: \`\` }; +componentNotes.story = {}; +componentNotes.story.name = 'component notes'; +componentNotes.story.parameters = { mdxSource: \`\` }; export const storyNotes = () => ; -storyNotes.title = 'story notes'; -storyNotes.parameters = { +storyNotes.story = {}; +storyNotes.story.name = 'story notes'; +storyNotes.story.parameters = { mdxSource: \`\`, ...{ notes: 'story notes', @@ -385,11 +391,13 @@ function MDXContent({ components, ...props }) { MDXContent.isMDXComponent = true; export const helloButton = () => ; -helloButton.title = 'hello button'; -helloButton.parameters = { mdxSource: \`\` }; +helloButton.story = {}; +helloButton.story.name = 'hello button'; +helloButton.story.parameters = { mdxSource: \`\` }; export const two = () => ; -two.parameters = { mdxSource: \`\` }; +two.story = {}; +two.story.parameters = { mdxSource: \`\` }; const componentMeta = { title: 'Button', @@ -448,11 +456,13 @@ function MDXContent({ components, ...props }) { MDXContent.isMDXComponent = true; export const one = () => ; -one.parameters = { mdxSource: \`\` }; +one.story = {}; +one.story.parameters = { mdxSource: \`\` }; export const helloStory = () => ; -helloStory.title = 'hello story'; -helloStory.parameters = { mdxSource: \`\` }; +helloStory.story = {}; +helloStory.story.name = 'hello story'; +helloStory.story.parameters = { mdxSource: \`\` }; const componentMeta = { title: 'Button', includeStories: ['one', 'helloStory'] }; @@ -542,7 +552,8 @@ function MDXContent({ components, ...props }) { MDXContent.isMDXComponent = true; export const text = () => 'Plain text'; -text.parameters = { mdxSource: \`'Plain text'\` }; +text.story = {}; +text.story.parameters = { mdxSource: \`'Plain text'\` }; const componentMeta = { title: 'Text', includeStories: ['text'] }; diff --git a/addons/docs/angular/index.js b/addons/docs/angular/index.js new file mode 100644 index 000000000000..38c1756201b7 --- /dev/null +++ b/addons/docs/angular/index.js @@ -0,0 +1 @@ +module.exports = require('../common/index'); diff --git a/addons/docs/angular/preset.js b/addons/docs/angular/preset.js new file mode 100644 index 000000000000..a9b8af2cce0a --- /dev/null +++ b/addons/docs/angular/preset.js @@ -0,0 +1 @@ +module.exports = require('../common/preset'); diff --git a/addons/docs/common/preset.js b/addons/docs/common/preset.js index da25537f1083..3831a573b203 100644 --- a/addons/docs/common/preset.js +++ b/addons/docs/common/preset.js @@ -26,20 +26,8 @@ function webpack(webpackConfig = {}, options = {}) { ...module, rules: [ ...(module.rules || []), - // { - // test: [/\.stories\.(jsx?$|ts?$)/], - // enforce: 'pre', - // use: [ - // { - // loader: require.resolve('@storybook/addon-storysource/loader'), - // options: { - // injectParameters: true, - // }, - // }, - // ], - // }, { - test: /\.stories.mdx$/, + test: /\.(stories|story).mdx$/, use: [ { loader: 'babel-loader', @@ -55,7 +43,7 @@ function webpack(webpackConfig = {}, options = {}) { }, { test: /\.mdx$/, - exclude: /\.stories.mdx$/, + exclude: /\.(stories|story).mdx$/, use: [ { loader: 'babel-loader', @@ -72,11 +60,7 @@ function webpack(webpackConfig = {}, options = {}) { } function addons(entry = []) { - return [ - ...entry, - // require.resolve('@storybook/addon-storysource/register'), - require.resolve('../register'), - ]; + return [...entry, require.resolve('../register')]; } module.exports = { webpack, addons }; diff --git a/addons/docs/mdx-compiler-plugin.js b/addons/docs/mdx-compiler-plugin.js index 6c520273b467..c5586977381b 100644 --- a/addons/docs/mdx-compiler-plugin.js +++ b/addons/docs/mdx-compiler-plugin.js @@ -65,9 +65,10 @@ function genStoryExport(ast, counter) { ${storyCode} );` ); + statements.push(`${storyKey}.story = {};`); if (storyName !== storyKey) { - statements.push(`${storyKey}.title = '${storyName}';`); + statements.push(`${storyKey}.story.name = '${storyName}';`); } let parameters = getAttr(ast.openingElement, 'parameters'); @@ -76,9 +77,9 @@ function genStoryExport(ast, counter) { if (parameters) { const { code: params } = generate(parameters, {}); // FIXME: hack in the story's source as a parameter - statements.push(`${storyKey}.parameters = { mdxSource: ${source}, ...${params} };`); + statements.push(`${storyKey}.story.parameters = { mdxSource: ${source}, ...${params} };`); } else { - statements.push(`${storyKey}.parameters = { mdxSource: ${source} };`); + statements.push(`${storyKey}.story.parameters = { mdxSource: ${source} };`); } // console.log(statements); diff --git a/addons/docs/package.json b/addons/docs/package.json index 1c66b826cda9..e4d17072cf2e 100644 --- a/addons/docs/package.json +++ b/addons/docs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-docs", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Superior documentation for your components", "keywords": [ "addon", @@ -28,11 +28,11 @@ "@mdx-js/loader": "^1.0.0", "@mdx-js/mdx": "^1.0.0", "@mdx-js/react": "^1.0.16", - "@storybook/addons": "5.2.0-alpha.30", - "@storybook/api": "5.2.0-alpha.30", - "@storybook/components": "5.2.0-alpha.30", - "@storybook/router": "5.2.0-alpha.30", - "@storybook/theming": "5.2.0-alpha.30", + "@storybook/addons": "5.2.0-alpha.36", + "@storybook/api": "5.2.0-alpha.36", + "@storybook/components": "5.2.0-alpha.36", + "@storybook/router": "5.2.0-alpha.36", + "@storybook/theming": "5.2.0-alpha.36", "core-js": "^3.0.1", "global": "^4.3.2", "lodash": "^4.17.11", diff --git a/addons/docs/src/blocks/Story.tsx b/addons/docs/src/blocks/Story.tsx index 7fde8e353b34..888d379c6ef4 100644 --- a/addons/docs/src/blocks/Story.tsx +++ b/addons/docs/src/blocks/Story.tsx @@ -7,6 +7,7 @@ import { DocsContext, DocsContextProps } from './DocsContext'; interface CommonProps { height?: string; + inline?: boolean; } type StoryDefProps = { @@ -38,13 +39,15 @@ export const getStoryProps = ( const inputId = id === CURRENT_SELECTION ? currentId : id; const previewId = inputId || toId(mdxKind, name); - const { height } = props; + const { height, inline } = props; const data = storyStore.fromId(previewId); const { framework = null } = parameters || {}; + + // prefer props, then global options, then framework-inferred values const { inlineStories = inferInlineStories(framework), iframeHeight = undefined } = (parameters && parameters.options && parameters.options.docs) || {}; return { - inline: inlineStories, + inline: typeof inline === 'boolean' ? inline : inlineStories, id: previewId, storyFn: data && data.getDecorated(), height: height || iframeHeight, diff --git a/addons/events/package.json b/addons/events/package.json index dbd2d88cb668..c9d4ece739e4 100644 --- a/addons/events/package.json +++ b/addons/events/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-events", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Add events to your Storybook stories.", "keywords": [ "addon", @@ -19,14 +19,15 @@ }, "license": "MIT", "main": "dist/index.js", - "jsnext:main": "src/index.js", + "types": "dist/index.d.ts", "scripts": { "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.2.0-alpha.30", - "@storybook/core-events": "5.2.0-alpha.30", - "@storybook/theming": "5.2.0-alpha.30", + "@storybook/addons": "5.2.0-alpha.36", + "@storybook/api": "5.2.0-alpha.36", + "@storybook/core-events": "5.2.0-alpha.36", + "@storybook/theming": "5.2.0-alpha.36", "core-js": "^3.0.1", "format-json": "^1.0.3", "lodash": "^4.17.11", diff --git a/addons/events/src/components/Event.js b/addons/events/src/components/Event.tsx similarity index 78% rename from addons/events/src/components/Event.js rename to addons/events/src/components/Event.tsx index 7e3634959479..fec6b93aae8f 100644 --- a/addons/events/src/components/Event.js +++ b/addons/events/src/components/Event.tsx @@ -5,10 +5,19 @@ import isEqual from 'lodash/isEqual'; import { styled } from '@storybook/theming'; import json from 'format-json'; - import Textarea from 'react-textarea-autosize'; +import { OnEmitEvent } from '../index'; + +interface StyledTextareaProps { + shown: boolean; + failed: boolean; + value?: string; + onChange?: (event: React.ChangeEvent) => void; +} -const StyledTextarea = styled(Textarea)( +const StyledTextarea = styled(({ shown, failed, ...rest }: StyledTextareaProps) => ( + ); - -storiesOf('Addons|Info/GitHub issues', module) - .addDecorator(withInfo) - .add( - '#1814', - () => ( -
- - ); + +export default { + title: 'Addons|Info/GitHub issues', + decorators: [withInfo], +}; + +export const issue1814 = () => ( +
+ + -
-
- -
-
- -
-
-`; - -exports[`Storyshots Basics|Form/Textarea sizes 1`] = ` -.emotion-6 > * { - margin-top: 10px; -} - -.emotion-6 > *:first-of-type { - margin-top: 0; -} - -.emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; -} - -.emotion-0 { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - border: 0; - box-sizing: inherit; - display: block; - margin: 0; - background: #FFFFFF; - padding: .42em 1em; - font-size: 13px; - position: relative; - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - color: #333333; - box-shadow: rgba(0,0,0,.1) 0 0 0 1px inset; - border-radius: 4px; - line-height: 20px; - display: inline; - text-align: left; - overflow: visible; -} - -.emotion-0:focus { - box-shadow: #1EA7FD 0 0 0 1px inset; -} - -.emotion-0[disabled] { - cursor: not-allowed; - opacity: 0.5; -} - -.emotion-0:-webkit-autofill { - -webkit-box-shadow: 0 0 0 3em #FFFFFF inset; -} - -.emotion-0::-webkit-input-placeholder { - color: #999999; -} - -.emotion-0::-moz-placeholder { - color: #999999; -} - -.emotion-0:-ms-input-placeholder { - color: #999999; -} - -.emotion-0::placeholder { - color: #999999; -} - -.emotion-2 { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - border: 0; - box-sizing: inherit; - display: block; - margin: 0; - background: #FFFFFF; - padding: .42em 1em; - font-size: 13px; - position: relative; - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - color: #333333; - box-shadow: rgba(0,0,0,.1) 0 0 0 1px inset; - border-radius: 4px; - line-height: 20px; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: left; - overflow: visible; -} - -.emotion-2:focus { - box-shadow: #1EA7FD 0 0 0 1px inset; -} - -.emotion-2[disabled] { - cursor: not-allowed; - opacity: 0.5; -} - -.emotion-2:-webkit-autofill { - -webkit-box-shadow: 0 0 0 3em #FFFFFF inset; -} - -.emotion-2::-webkit-input-placeholder { - color: #999999; -} - -.emotion-2::-moz-placeholder { - color: #999999; -} - -.emotion-2:-ms-input-placeholder { - color: #999999; -} - -.emotion-2::placeholder { - color: #999999; -} - -.emotion-4 { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - border: 0; - box-sizing: inherit; - display: block; - margin: 0; - background: #FFFFFF; - padding: .42em 1em; - font-size: 13px; - position: relative; - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - color: #333333; - box-shadow: rgba(0,0,0,.1) 0 0 0 1px inset; - border-radius: 4px; - line-height: 20px; - width: 100%; - text-align: left; - overflow: visible; -} - -.emotion-4:focus { - box-shadow: #1EA7FD 0 0 0 1px inset; -} - -.emotion-4[disabled] { - cursor: not-allowed; - opacity: 0.5; -} - -.emotion-4:-webkit-autofill { - -webkit-box-shadow: 0 0 0 3em #FFFFFF inset; -} - -.emotion-4::-webkit-input-placeholder { - color: #999999; -} - -.emotion-4::-moz-placeholder { - color: #999999; -} - -.emotion-4:-ms-input-placeholder { - color: #999999; -} - -.emotion-4::placeholder { - color: #999999; -} - -
-
- -
-
- -
-
- -
-
-`; - -exports[`Storyshots Basics|Form/Textarea validations 1`] = ` -.emotion-8 > * { - margin-top: 10px; -} - -.emotion-8 > *:first-of-type { - margin-top: 0; -} - -.emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; -} - -.emotion-6 { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - border: 0; - box-sizing: inherit; - display: block; - margin: 0; - background: #FFFFFF; - padding: .42em 1em; - font-size: 13px; - position: relative; - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - color: #333333; - box-shadow: rgba(0,0,0,.1) 0 0 0 1px inset; - border-radius: 4px; - line-height: 20px; - width: 100%; - text-align: left; - overflow: visible; -} - -.emotion-6:focus { - box-shadow: #1EA7FD 0 0 0 1px inset; -} - -.emotion-6[disabled] { - cursor: not-allowed; - opacity: 0.5; -} - -.emotion-6:-webkit-autofill { - -webkit-box-shadow: 0 0 0 3em #FFFFFF inset; -} - -.emotion-6::-webkit-input-placeholder { - color: #999999; -} - -.emotion-6::-moz-placeholder { - color: #999999; -} - -.emotion-6:-ms-input-placeholder { - color: #999999; -} - -.emotion-6::placeholder { - color: #999999; -} - -.emotion-0 { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - border: 0; - box-sizing: inherit; - display: block; - margin: 0; - background: #FFFFFF; - padding: .42em 1em; - font-size: 13px; - position: relative; - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - color: #333333; - box-shadow: rgba(0,0,0,.1) 0 0 0 1px inset; - border-radius: 4px; - line-height: 20px; - width: 100%; - text-align: left; - box-shadow: #FF4400 0 0 0 1px inset !important; - overflow: visible; -} - -.emotion-0:focus { - box-shadow: #1EA7FD 0 0 0 1px inset; -} - -.emotion-0[disabled] { - cursor: not-allowed; - opacity: 0.5; -} - -.emotion-0:-webkit-autofill { - -webkit-box-shadow: 0 0 0 3em #FFFFFF inset; -} - -.emotion-0::-webkit-input-placeholder { - color: #999999; -} - -.emotion-0::-moz-placeholder { - color: #999999; -} - -.emotion-0:-ms-input-placeholder { - color: #999999; -} - -.emotion-0::placeholder { - color: #999999; -} - -.emotion-2 { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - border: 0; - box-sizing: inherit; - display: block; - margin: 0; - background: #FFFFFF; - padding: .42em 1em; - font-size: 13px; - position: relative; - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - color: #333333; - box-shadow: rgba(0,0,0,.1) 0 0 0 1px inset; - border-radius: 4px; - line-height: 20px; - width: 100%; - text-align: left; - box-shadow: #E69D00 0 0 0 1px inset; - overflow: visible; -} - -.emotion-2:focus { - box-shadow: #1EA7FD 0 0 0 1px inset; -} - -.emotion-2[disabled] { - cursor: not-allowed; - opacity: 0.5; -} - -.emotion-2:-webkit-autofill { - -webkit-box-shadow: 0 0 0 3em #FFFFFF inset; -} - -.emotion-2::-webkit-input-placeholder { - color: #999999; -} - -.emotion-2::-moz-placeholder { - color: #999999; -} - -.emotion-2:-ms-input-placeholder { - color: #999999; -} - -.emotion-2::placeholder { - color: #999999; -} - -.emotion-4 { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - border: 0; - box-sizing: inherit; - display: block; - margin: 0; - background: #FFFFFF; - padding: .42em 1em; - font-size: 13px; - position: relative; - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - color: #333333; - box-shadow: rgba(0,0,0,.1) 0 0 0 1px inset; - border-radius: 4px; - line-height: 20px; - width: 100%; - text-align: left; - box-shadow: #66BF3C 0 0 0 1px inset !important; - overflow: visible; -} - -.emotion-4:focus { - box-shadow: #1EA7FD 0 0 0 1px inset; -} - -.emotion-4[disabled] { - cursor: not-allowed; - opacity: 0.5; -} - -.emotion-4:-webkit-autofill { - -webkit-box-shadow: 0 0 0 3em #FFFFFF inset; -} - -.emotion-4::-webkit-input-placeholder { - color: #999999; -} - -.emotion-4::-moz-placeholder { - color: #999999; -} - -.emotion-4:-ms-input-placeholder { - color: #999999; -} - -.emotion-4::placeholder { - color: #999999; -} - -
-
- -
-
- -
-
- -
-
- -
-
-`; diff --git a/lib/components/src/icon/__snapshots__/icon.stories.storyshot b/lib/components/src/icon/__snapshots__/icon.stories.storyshot deleted file mode 100644 index 0c674a0fdaef..000000000000 --- a/lib/components/src/icon/__snapshots__/icon.stories.storyshot +++ /dev/null @@ -1,4960 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Basics|Icon labels 1`] = ` -.emotion-1 { - shape-rendering: inherit; - -webkit-transform: translate3d(0,0,0); - -ms-transform: translate3d(0,0,0); - transform: translate3d(0,0,0); - display: block; -} - -.emotion-0 { - fill: currentColor; -} - -.emotion-604 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-flow: row wrap; - -ms-flex-flow: row wrap; - flex-flow: row wrap; -} - -.emotion-3 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-flex: 0 1 20%; - -ms-flex: 0 1 20%; - flex: 0 1 20%; - min-width: 120px; - padding: 0px 7.5px 20px; -} - -.emotion-3 svg { - margin-right: 10px; - width: 24px; - height: 24px; -} - -.emotion-2 { - color: #333; - font-size: 12px; -} - -
-
- - - - -
- add -
-
-
- - - - -
- admin -
-
-
- - - - -
- alert -
-
-
- - - - -
- arrowdown -
-
-
- - - - -
- arrowleft -
-
-
- - - - -
- arrowleftalt -
-
-
- - - - -
- arrowright -
-
-
- - - - -
- arrowrightalt -
-
-
- - - - -
- arrowup -
-
-
- - - - -
- back -
-
-
- - - - -
- basket -
-
-
- - - - -
- batchaccept -
-
-
- - - - -
- batchdeny -
-
-
- - - - -
- beaker -
-
-
- - - - -
- bell -
-
-
- - - - -
- bitbucket -
-
-
- - - - -
- book -
-
-
- - - - -
- bookmark -
-
-
- - - - -
- bookmarkhollow -
-
-
- - - - -
- bottombar -
-
-
- - - - -
- box -
-
-
- - - - -
- branch -
-
-
- - - - -
- browser -
-
-
- - - - -
- button -
-
-
- - - - -
- calendar -
-
-
- - - - -
- camera -
-
-
- - - - -
- category -
-
-
- - - - -
- certificate -
-
-
- - - - -
- check -
-
-
- - - - -
- chevrondown -
-
-
- - - - -
- chroma -
-
-
- - - - -
- circle -
-
-
- - - - -
- circlehollow -
-
-
- - - - -
- close -
-
-
- - - - -
- closeAlt -
-
-
- - - - -
- cog -
-
-
- - - - -
- comment -
-
-
- - - - -
- commit -
-
-
- - - - -
- compass -
-
-
- - - - -
- component -
-
-
- - - - -
- copy -
-
-
- - - - -
- cpu -
-
-
- - - - -
- credit -
-
-
- - - - -
- cross -
-
-
- - - - -
- dashboard -
-
-
- - - - -
- database -
-
-
- - - - -
- delete -
-
-
- - - - -
- discord -
-
-
- - - - -
- docchart -
-
-
- - - - -
- doclist -
-
-
- - - - -
- document -
-
-
- - - - -
- download -
-
-
- - - - -
- edit -
-
-
- - - - -
- ellipsis -
-
-
- - - - -
- email -
-
-
- - - - -
- expand -
-
-
- - - - -
- expandalt -
-
-
- - - - -
- eye -
-
-
- - - - -
- eyeclose -
-
-
- - - - -
- facebook -
-
-
- - - - -
- facehappy -
-
-
- - - - -
- faceneutral -
-
-
- - - - -
- facesad -
-
-
- - - - -
- filter -
-
-
- - - - -
- flag -
-
-
- - - - -
- folder -
-
-
- - - - -
- form -
-
-
- - - - -
- gdrive -
-
-
- - - - -
- github -
-
-
- - - - -
- gitlab -
-
-
- - - - -
- globe -
-
-
- - - - -
- google -
-
-
- - - - -
- graphbar -
-
-
- - - - -
- graphline -
-
-
- - - - -
- graphql -
-
-
- - - - -
- grid -
-
-
- - - - -
- grow -
-
-
- - - - -
- heart -
-
-
- - - - -
- hearthollow -
-
-
- - - - -
- home -
-
-
- - - - -
- hourglass -
-
-
- - - - -
- info -
-
-
- - - - -
- key -
-
-
- - - - -
- lightning -
-
-
- - - - -
- link -
-
-
- - - - -
- listunordered -
-
-
- - - - -
- location -
-
-
- - - - -
- lock -
-
-
- - - - -
- medium -
-
-
- - - - -
- memory -
-
-
- - - - -
- menu -
-
-
- - - - -
- merge -
-
-
- - - - -
- mirror -
-
-
- - - - -
- mobile -
-
-
- - - - -
- nut -
-
-
- - - - -
- outbox -
-
-
- - - - -
- paintbrush -
-
-
- - - - -
- paperclip -
-
-
- - - - -
- paragraph -
-
-
- - - - -
- phone -
-
-
- - - - -
- photo -
-
-
- - - - -
- pin -
-
-
- - - - -
- play -
-
-
- - - - -
- plus -
-
-
- - - - -
- power -
-
-
- - - - -
- print -
-
-
- - - - -
- proceed -
-
-
- - - - -
- profile -
-
-
- - - - -
- pullrequest -
-
-
- - - - -
- question -
-
-
- - - - -
- redirect -
-
-
- - - - -
- redux -
-
-
- - - - -
- reply -
-
-
- - - - -
- repository -
-
-
- - - - -
- requestchange -
-
-
- - - - -
- rss -
-
-
- - - - -
- search -
-
-
- - - - -
- share -
-
-
- - - - -
- shield -
-
-
- - - - -
- sidebar -
-
-
- - - - -
- sidebaralt -
-
-
- - - - -
- speaker -
-
-
- - - - -
- star -
-
-
- - - - -
- starhollow -
-
-
- - - - -
- stop -
-
-
- - - - -
- structure -
-
-
- - - - -
- subtract -
-
-
- - - - -
- support -
-
-
- - - - -
- switchalt -
-
-
- - - - -
- sync -
-
-
- - - - -
- tablet -
-
-
- - - - -
- thumbsup -
-
-
- - - - -
- time -
-
-
- - - - -
- timer -
-
-
- - - - -
- transfer -
-
-
- - - - -
- trash -
-
-
- - - - -
- twitter -
-
-
- - - - -
- undo -
-
-
- - - - -
- unlock -
-
-
- - - - -
- upload -
-
-
- - - - -
- user -
-
-
- - - - -
- useradd -
-
-
- - - - -
- useralt -
-
-
- - - - -
- users -
-
-
- - - - -
- video -
-
-
- - - - -
- watch -
-
-
- - - - -
- wrench -
-
-
- - - - -
- youtube -
-
-
- - - - -
- zoom -
-
-
- - - - -
- zoomout -
-
-
- - - - -
- zoomreset -
-
-
-`; - -exports[`Storyshots Basics|Icon no labels 1`] = ` -.emotion-1 { - shape-rendering: inherit; - -webkit-transform: translate3d(0,0,0); - -ms-transform: translate3d(0,0,0); - transform: translate3d(0,0,0); - display: block; -} - -.emotion-0 { - fill: currentColor; -} - -.emotion-453 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-flow: row wrap; - -ms-flex-flow: row wrap; - flex-flow: row wrap; -} - -.emotion-2 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-flex: 0 1 20%; - -ms-flex: 0 1 20%; - flex: 0 1 20%; - min-width: 120px; - padding: 0px 7.5px 20px; - -webkit-flex: none; - -ms-flex: none; - flex: none; - min-width: auto; - padding: 0; - background: #fff; - border: 1px solid #666; -} - -.emotion-2 svg { - margin-right: 10px; - width: 24px; - height: 24px; -} - -.emotion-2 svg { - display: block; - margin-right: 0; - width: 48px; - height: 48px; -} - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
-`; diff --git a/lib/components/src/spaced/__snapshots__/Spaced.stories.storyshot b/lib/components/src/spaced/__snapshots__/Spaced.stories.storyshot deleted file mode 100644 index 38ceb1d92beb..000000000000 --- a/lib/components/src/spaced/__snapshots__/Spaced.stories.storyshot +++ /dev/null @@ -1,249 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Basics|Spaced col 1`] = ` -.emotion-0 { - background: silver; - display: inline-block; - padding: 20px; -} - -.emotion-4 { - display: inline-block; - vertical-align: inherit; -} - -.emotion-4 > * { - margin-left: 10px; - vertical-align: inherit; -} - -.emotion-4 > *:first-of-type { - margin-left: 0; -} - -.emotion-1 { - background: hotpink; - display: inline-block; - padding: 20px; -} - -
- -
- - - -
- -
-`; - -exports[`Storyshots Basics|Spaced col outer 1`] = ` -.emotion-0 { - background: silver; - display: inline-block; - padding: 20px; -} - -.emotion-1 { - background: hotpink; - display: inline-block; - padding: 20px; -} - -.emotion-4 { - display: inline-block; - vertical-align: inherit; - margin-left: 10px; - margin-right: 10px; -} - -.emotion-4 > * { - margin-left: 10px; - vertical-align: inherit; -} - -.emotion-4 > *:first-of-type { - margin-left: 0; -} - -
- -
- - - -
- -
-`; - -exports[`Storyshots Basics|Spaced row 1`] = ` -.emotion-4 > * { - margin-top: 10px; -} - -.emotion-4 > *:first-of-type { - margin-top: 0; -} - -.emotion-0 { - background: silver; - padding: 20px; -} - -.emotion-1 { - background: hotpink; - padding: 20px; -} - -
-
-
-
-
-
-
-
-
-`; - -exports[`Storyshots Basics|Spaced row multiply 1`] = ` -.emotion-0 { - background: silver; - padding: 20px; -} - -.emotion-1 { - background: hotpink; - padding: 20px; -} - -.emotion-4 { - margin-top: 5px; - margin-bottom: 5px; -} - -.emotion-4 > * { - margin-top: 30px; -} - -.emotion-4 > *:first-of-type { - margin-top: 0; -} - -
-
-
-
-
-
-
-
-
-`; - -exports[`Storyshots Basics|Spaced row outer 1`] = ` -.emotion-0 { - background: silver; - padding: 20px; -} - -.emotion-1 { - background: hotpink; - padding: 20px; -} - -.emotion-4 { - margin-top: 10px; - margin-bottom: 10px; -} - -.emotion-4 > * { - margin-top: 10px; -} - -.emotion-4 > *:first-of-type { - margin-top: 0; -} - -
-
-
-
-
-
-
-
-
-`; diff --git a/lib/components/src/syntaxhighlighter/__snapshots__/syntaxhighlighter.stories.storyshot b/lib/components/src/syntaxhighlighter/__snapshots__/syntaxhighlighter.stories.storyshot deleted file mode 100644 index 946591470588..000000000000 --- a/lib/components/src/syntaxhighlighter/__snapshots__/syntaxhighlighter.stories.storyshot +++ /dev/null @@ -1,3974 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Basics|SyntaxHighlighter bash 1`] = ` -.emotion-2 { - overflow-y: auto; - height: 100%; - overflow-x: auto; - width: 100%; - position: relative; -} - -.emotion-2 code { - padding-right: 10px; -} - -.emotion-2 * .token { - font-family: "Operator Mono","Fira Code Retina","Fira Code","FiraCode-Retina","Andale Mono","Lucida Console",Consolas,Monaco,monospace; - -webkit-font-smoothing: antialiased; -} - -.emotion-2 * .token.comment { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.prolog { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.doctype { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.cdata { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.string { - color: #A31515; -} - -.emotion-2 * .token.punctuation { - color: #393A34; -} - -.emotion-2 * .token.operator { - color: #393A34; -} - -.emotion-2 * .token.url { - color: #36acaa; -} - -.emotion-2 * .token.symbol { - color: #36acaa; -} - -.emotion-2 * .token.number { - color: #36acaa; -} - -.emotion-2 * .token.boolean { - color: #36acaa; -} - -.emotion-2 * .token.variable { - color: #36acaa; -} - -.emotion-2 * .token.constant { - color: #36acaa; -} - -.emotion-2 * .token.inserted { - color: #36acaa; -} - -.emotion-2 * .token.atrule { - color: #0000ff; -} - -.emotion-2 * .token.keyword { - color: #0000ff; -} - -.emotion-2 * .token.attr-value { - color: #0000ff; -} - -.emotion-2 * .token.function { - color: #393A34; -} - -.emotion-2 * .token.deleted { - color: #9a050f; -} - -.emotion-2 * .token.important { - font-weight: bold; -} - -.emotion-2 * .token.bold { - font-weight: bold; -} - -.emotion-2 * .token.italic { - font-style: italic; -} - -.emotion-2 * .token.class-name { - color: #2B91AF; -} - -.emotion-2 * .token.tag { - color: #800000; -} - -.emotion-2 * .token.selector { - color: #800000; -} - -.emotion-2 * .token.attr-name { - color: #ff0000; -} - -.emotion-2 * .token.property { - color: #ff0000; -} - -.emotion-2 * .token.regex { - color: #ff0000; -} - -.emotion-2 * .token.entity { - color: #ff0000; -} - -.emotion-2 * .token.directive.tag .tag { - background: #ffff00; - color: #393A34; -} - -.emotion-2 * .language-json .token.boolean { - color: #0000ff; -} - -.emotion-2 * .language-json .token.number { - color: #0000ff; -} - -.emotion-2 * .language-json .token.property { - color: #2B91AF; -} - -.emotion-2 * .namespace { - opacity: 0.7; -} - -.emotion-0 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - padding-right: 0; - opacity: 1; -} - -.emotion-3 { - position: relative; - overflow: hidden; - color: #333333; -} - -.emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -webkit-justify-content: flex-start; - -ms-flex-pack: start; - justify-content: flex-start; - margin: 0; - padding: 0; -} - -
-
-
-
-
-
-
-
-
-
-
-                
-                  npx npm-check-updates 
-                  
-                    '/storybook/'
-                  
-                   -u 
-                  
-                    &&
-                  
-                   
-                  
-                    npm
-                  
-                   
-                  
-                    install
-                  
-                
-              
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`; - -exports[`Storyshots Basics|SyntaxHighlighter bordered & copy-able 1`] = ` -.emotion-5 { - position: relative; - overflow: hidden; - color: #333333; - border: 1px solid rgba(0,0,0,.1); - background: #FFFFFF; -} - -.emotion-2 { - overflow-y: auto; - height: 100%; - overflow-x: auto; - width: 100%; - position: relative; -} - -.emotion-2 code { - padding-right: 10px; -} - -.emotion-2 * .token { - font-family: "Operator Mono","Fira Code Retina","Fira Code","FiraCode-Retina","Andale Mono","Lucida Console",Consolas,Monaco,monospace; - -webkit-font-smoothing: antialiased; -} - -.emotion-2 * .token.comment { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.prolog { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.doctype { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.cdata { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.string { - color: #A31515; -} - -.emotion-2 * .token.punctuation { - color: #393A34; -} - -.emotion-2 * .token.operator { - color: #393A34; -} - -.emotion-2 * .token.url { - color: #36acaa; -} - -.emotion-2 * .token.symbol { - color: #36acaa; -} - -.emotion-2 * .token.number { - color: #36acaa; -} - -.emotion-2 * .token.boolean { - color: #36acaa; -} - -.emotion-2 * .token.variable { - color: #36acaa; -} - -.emotion-2 * .token.constant { - color: #36acaa; -} - -.emotion-2 * .token.inserted { - color: #36acaa; -} - -.emotion-2 * .token.atrule { - color: #0000ff; -} - -.emotion-2 * .token.keyword { - color: #0000ff; -} - -.emotion-2 * .token.attr-value { - color: #0000ff; -} - -.emotion-2 * .token.function { - color: #393A34; -} - -.emotion-2 * .token.deleted { - color: #9a050f; -} - -.emotion-2 * .token.important { - font-weight: bold; -} - -.emotion-2 * .token.bold { - font-weight: bold; -} - -.emotion-2 * .token.italic { - font-style: italic; -} - -.emotion-2 * .token.class-name { - color: #2B91AF; -} - -.emotion-2 * .token.tag { - color: #800000; -} - -.emotion-2 * .token.selector { - color: #800000; -} - -.emotion-2 * .token.attr-name { - color: #ff0000; -} - -.emotion-2 * .token.property { - color: #ff0000; -} - -.emotion-2 * .token.regex { - color: #ff0000; -} - -.emotion-2 * .token.entity { - color: #ff0000; -} - -.emotion-2 * .token.directive.tag .tag { - background: #ffff00; - color: #393A34; -} - -.emotion-2 * .language-json .token.boolean { - color: #0000ff; -} - -.emotion-2 * .language-json .token.number { - color: #0000ff; -} - -.emotion-2 * .language-json .token.property { - color: #2B91AF; -} - -.emotion-2 * .namespace { - opacity: 0.7; -} - -.emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -webkit-justify-content: flex-start; - -ms-flex-pack: start; - justify-content: flex-start; - margin: 0; - padding: 10px; -} - -.emotion-0 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - padding-right: 0; - opacity: 1; -} - -.emotion-4 { - position: absolute; - bottom: 0; - right: 0; - max-width: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - background: #FFFFFF; - z-index: 1; -} - -.emotion-3 { - border: 0 none; - padding: 4px 10px; - cursor: pointer; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: #333333; - background: #FFFFFF; - font-size: 12px; - line-height: 16px; - font-weight: 700; - border-top: 1px solid rgba(0,0,0,.1); - border-left: 1px solid rgba(0,0,0,.1); - margin-left: -1px; - border-radius: 4px 0 0 0; -} - -.emotion-3:not(:last-child) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-3 + * { - border-left: 1px solid rgba(0,0,0,.1); - border-radius: 0; -} - -.emotion-3:focus { - box-shadow: #1EA7FD 0 -3px 0 0 inset; - outline: 0 none; -} - -
-
-
-
-
-
-
-
-
-
-
-                
-                  
-                    import
-                  
-                   
-                  
-                    {
-                  
-                   Good
-                  
-                    ,
-                  
-                   Things 
-                  
-                    }
-                  
-                   
-                  
-                    from
-                  
-                   
-                  
-                    'life'
-                  
-                  
-                    ;
-                  
-                  
-
-
-                  
-                    const
-                  
-                   
-                  
-                    result
-                  
-                   
-                  
-                    =
-                  
-                   
-                  
-                    (
-                  
-                  
-                    )
-                  
-                   
-                  
-                    =>
-                  
-                   
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Good
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Things
-                      
-                    
-                     
-                    
-                      />
-                    
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Good
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    ;
-                  
-                  
-
-
-                  
-                    export
-                  
-                   
-                  
-                    {
-                  
-                   result 
-                  
-                    as
-                  
-                   
-                  
-                    default
-                  
-                   
-                  
-                    }
-                  
-                  
-                    ;
-                  
-                
-              
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-`; - -exports[`Storyshots Basics|SyntaxHighlighter dark unsupported 1`] = ` -.emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -webkit-justify-content: flex-start; - -ms-flex-pack: start; - justify-content: flex-start; - margin: 0; - padding: 10px; -} - -.emotion-0 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - padding-right: 0; - opacity: 1; -} - -.emotion-2 { - overflow-y: auto; - height: 100%; - overflow-x: auto; - width: 100%; - position: relative; -} - -.emotion-2 code { - padding-right: 10px; -} - -.emotion-2 * .token { - font-family: "Operator Mono","Fira Code Retina","Fira Code","FiraCode-Retina","Andale Mono","Lucida Console",Consolas,Monaco,monospace; - -webkit-font-smoothing: antialiased; -} - -.emotion-2 * .token.comment { - color: #7C7C7C; - font-style: italic; -} - -.emotion-2 * .token.prolog { - color: #7C7C7C; - font-style: italic; -} - -.emotion-2 * .token.doctype { - color: #7C7C7C; - font-style: italic; -} - -.emotion-2 * .token.cdata { - color: #7C7C7C; - font-style: italic; -} - -.emotion-2 * .token.string { - color: #92C379; -} - -.emotion-2 * .token.punctuation { - color: #EDEDED; -} - -.emotion-2 * .token.operator { - color: #EDEDED; -} - -.emotion-2 * .token.url { - color: #C6C5FE; -} - -.emotion-2 * .token.symbol { - color: #C6C5FE; -} - -.emotion-2 * .token.number { - color: #C6C5FE; -} - -.emotion-2 * .token.boolean { - color: #C6C5FE; -} - -.emotion-2 * .token.variable { - color: #C6C5FE; -} - -.emotion-2 * .token.constant { - color: #C6C5FE; -} - -.emotion-2 * .token.inserted { - color: #C6C5FE; -} - -.emotion-2 * .token.atrule { - color: #B474DD; -} - -.emotion-2 * .token.keyword { - color: #B474DD; -} - -.emotion-2 * .token.attr-value { - color: #B474DD; -} - -.emotion-2 * .token.function { - color: #EDEDED; -} - -.emotion-2 * .token.deleted { - color: #9a050f; -} - -.emotion-2 * .token.important { - font-weight: bold; -} - -.emotion-2 * .token.bold { - font-weight: bold; -} - -.emotion-2 * .token.italic { - font-style: italic; -} - -.emotion-2 * .token.class-name { - color: #FFFFB6; -} - -.emotion-2 * .token.tag { - color: #A8FF60; -} - -.emotion-2 * .token.selector { - color: #A8FF60; -} - -.emotion-2 * .token.attr-name { - color: #96CBFE; -} - -.emotion-2 * .token.property { - color: #96CBFE; -} - -.emotion-2 * .token.regex { - color: #96CBFE; -} - -.emotion-2 * .token.entity { - color: #96CBFE; -} - -.emotion-2 * .token.directive.tag .tag { - background: #ffff00; - color: #EDEDED; -} - -.emotion-2 * .language-json .token.boolean { - color: #B474DD; -} - -.emotion-2 * .language-json .token.number { - color: #B474DD; -} - -.emotion-2 * .language-json .token.property { - color: #FFFFB6; -} - -.emotion-2 * .namespace { - opacity: 0.7; -} - -.emotion-4 { - position: absolute; - bottom: 0; - right: 0; - max-width: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - background: #333; - z-index: 1; -} - -.emotion-3 { - border: 0 none; - padding: 4px 10px; - cursor: pointer; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: #FFFFFF; - background: #333; - font-size: 12px; - line-height: 16px; - font-weight: 700; - border-top: 1px solid rgba(255,255,255,.1); - border-left: 1px solid rgba(255,255,255,.1); - margin-left: -1px; - border-radius: 4px 0 0 0; -} - -.emotion-3:not(:last-child) { - border-right: 1px solid rgba(255,255,255,.1); -} - -.emotion-3 + * { - border-left: 1px solid rgba(255,255,255,.1); - border-radius: 0; -} - -.emotion-3:focus { - box-shadow: #1EA7FD 0 -3px 0 0 inset; - outline: 0 none; -} - -.emotion-5 { - position: relative; - overflow: hidden; - color: #FFFFFF; - border: 1px solid rgba(255,255,255,.1); - background: #333333; -} - -
-
-
-
-
-
-
-
-
-
-
-                
-                  // A Hello World! program in C#.
-using System;
-namespace HelloWorld
-{
-  class Hello
-  {
-    static void Main()
-    {
-      Console.WriteLine("Hello World!");
-
-      // Keep the console window open in debug mode.
-      Console.WriteLine("Press any key to exit.");
-      Console.ReadKey();
-    }
-  }
-}
-                
-              
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-`; - -exports[`Storyshots Basics|SyntaxHighlighter jsx 1`] = ` -.emotion-2 { - overflow-y: auto; - height: 100%; - overflow-x: auto; - width: 100%; - position: relative; -} - -.emotion-2 code { - padding-right: 10px; -} - -.emotion-2 * .token { - font-family: "Operator Mono","Fira Code Retina","Fira Code","FiraCode-Retina","Andale Mono","Lucida Console",Consolas,Monaco,monospace; - -webkit-font-smoothing: antialiased; -} - -.emotion-2 * .token.comment { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.prolog { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.doctype { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.cdata { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.string { - color: #A31515; -} - -.emotion-2 * .token.punctuation { - color: #393A34; -} - -.emotion-2 * .token.operator { - color: #393A34; -} - -.emotion-2 * .token.url { - color: #36acaa; -} - -.emotion-2 * .token.symbol { - color: #36acaa; -} - -.emotion-2 * .token.number { - color: #36acaa; -} - -.emotion-2 * .token.boolean { - color: #36acaa; -} - -.emotion-2 * .token.variable { - color: #36acaa; -} - -.emotion-2 * .token.constant { - color: #36acaa; -} - -.emotion-2 * .token.inserted { - color: #36acaa; -} - -.emotion-2 * .token.atrule { - color: #0000ff; -} - -.emotion-2 * .token.keyword { - color: #0000ff; -} - -.emotion-2 * .token.attr-value { - color: #0000ff; -} - -.emotion-2 * .token.function { - color: #393A34; -} - -.emotion-2 * .token.deleted { - color: #9a050f; -} - -.emotion-2 * .token.important { - font-weight: bold; -} - -.emotion-2 * .token.bold { - font-weight: bold; -} - -.emotion-2 * .token.italic { - font-style: italic; -} - -.emotion-2 * .token.class-name { - color: #2B91AF; -} - -.emotion-2 * .token.tag { - color: #800000; -} - -.emotion-2 * .token.selector { - color: #800000; -} - -.emotion-2 * .token.attr-name { - color: #ff0000; -} - -.emotion-2 * .token.property { - color: #ff0000; -} - -.emotion-2 * .token.regex { - color: #ff0000; -} - -.emotion-2 * .token.entity { - color: #ff0000; -} - -.emotion-2 * .token.directive.tag .tag { - background: #ffff00; - color: #393A34; -} - -.emotion-2 * .language-json .token.boolean { - color: #0000ff; -} - -.emotion-2 * .language-json .token.number { - color: #0000ff; -} - -.emotion-2 * .language-json .token.property { - color: #2B91AF; -} - -.emotion-2 * .namespace { - opacity: 0.7; -} - -.emotion-0 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - padding-right: 0; - opacity: 1; -} - -.emotion-3 { - position: relative; - overflow: hidden; - color: #333333; -} - -.emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -webkit-justify-content: flex-start; - -ms-flex-pack: start; - justify-content: flex-start; - margin: 0; - padding: 0; -} - -
-
-
-
-
-
-
-
-
-
-
-                
-                  
-                    import
-                  
-                   
-                  
-                    {
-                  
-                   Good
-                  
-                    ,
-                  
-                   Things 
-                  
-                    }
-                  
-                   
-                  
-                    from
-                  
-                   
-                  
-                    'life'
-                  
-                  
-                    ;
-                  
-                  
-
-
-                  
-                    const
-                  
-                   
-                  
-                    result
-                  
-                   
-                  
-                    =
-                  
-                   
-                  
-                    (
-                  
-                  
-                    )
-                  
-                   
-                  
-                    =>
-                  
-                   
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Good
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Things
-                      
-                    
-                     
-                    
-                      all
-                    
-                    
-                      
-                        =
-                      
-                      
-                        {
-                      
-                      
-                        true
-                      
-                      
-                        }
-                      
-                    
-                     
-                    
-                      />
-                    
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Good
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    ;
-                  
-                  
-
-
-                  
-                    export
-                  
-                   
-                  
-                    {
-                  
-                   result 
-                  
-                    as
-                  
-                   
-                  
-                    default
-                  
-                   
-                  
-                    }
-                  
-                  
-                    ;
-                  
-                
-              
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`; - -exports[`Storyshots Basics|SyntaxHighlighter padded 1`] = ` -.emotion-2 { - overflow-y: auto; - height: 100%; - overflow-x: auto; - width: 100%; - position: relative; -} - -.emotion-2 code { - padding-right: 10px; -} - -.emotion-2 * .token { - font-family: "Operator Mono","Fira Code Retina","Fira Code","FiraCode-Retina","Andale Mono","Lucida Console",Consolas,Monaco,monospace; - -webkit-font-smoothing: antialiased; -} - -.emotion-2 * .token.comment { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.prolog { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.doctype { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.cdata { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.string { - color: #A31515; -} - -.emotion-2 * .token.punctuation { - color: #393A34; -} - -.emotion-2 * .token.operator { - color: #393A34; -} - -.emotion-2 * .token.url { - color: #36acaa; -} - -.emotion-2 * .token.symbol { - color: #36acaa; -} - -.emotion-2 * .token.number { - color: #36acaa; -} - -.emotion-2 * .token.boolean { - color: #36acaa; -} - -.emotion-2 * .token.variable { - color: #36acaa; -} - -.emotion-2 * .token.constant { - color: #36acaa; -} - -.emotion-2 * .token.inserted { - color: #36acaa; -} - -.emotion-2 * .token.atrule { - color: #0000ff; -} - -.emotion-2 * .token.keyword { - color: #0000ff; -} - -.emotion-2 * .token.attr-value { - color: #0000ff; -} - -.emotion-2 * .token.function { - color: #393A34; -} - -.emotion-2 * .token.deleted { - color: #9a050f; -} - -.emotion-2 * .token.important { - font-weight: bold; -} - -.emotion-2 * .token.bold { - font-weight: bold; -} - -.emotion-2 * .token.italic { - font-style: italic; -} - -.emotion-2 * .token.class-name { - color: #2B91AF; -} - -.emotion-2 * .token.tag { - color: #800000; -} - -.emotion-2 * .token.selector { - color: #800000; -} - -.emotion-2 * .token.attr-name { - color: #ff0000; -} - -.emotion-2 * .token.property { - color: #ff0000; -} - -.emotion-2 * .token.regex { - color: #ff0000; -} - -.emotion-2 * .token.entity { - color: #ff0000; -} - -.emotion-2 * .token.directive.tag .tag { - background: #ffff00; - color: #393A34; -} - -.emotion-2 * .language-json .token.boolean { - color: #0000ff; -} - -.emotion-2 * .language-json .token.number { - color: #0000ff; -} - -.emotion-2 * .language-json .token.property { - color: #2B91AF; -} - -.emotion-2 * .namespace { - opacity: 0.7; -} - -.emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -webkit-justify-content: flex-start; - -ms-flex-pack: start; - justify-content: flex-start; - margin: 0; - padding: 10px; -} - -.emotion-0 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - padding-right: 0; - opacity: 1; -} - -.emotion-3 { - position: relative; - overflow: hidden; - color: #333333; -} - -
-
-
-
-
-
-
-
-
-
-
-                
-                  
-                    import
-                  
-                   
-                  
-                    {
-                  
-                   Good
-                  
-                    ,
-                  
-                   Things 
-                  
-                    }
-                  
-                   
-                  
-                    from
-                  
-                   
-                  
-                    'life'
-                  
-                  
-                    ;
-                  
-                  
-
-
-                  
-                    const
-                  
-                   
-                  
-                    result
-                  
-                   
-                  
-                    =
-                  
-                   
-                  
-                    (
-                  
-                  
-                    )
-                  
-                   
-                  
-                    =>
-                  
-                   
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Good
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Things
-                      
-                    
-                     
-                    
-                      />
-                    
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Good
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    ;
-                  
-                  
-
-
-                  
-                    export
-                  
-                   
-                  
-                    {
-                  
-                   result 
-                  
-                    as
-                  
-                   
-                  
-                    default
-                  
-                   
-                  
-                    }
-                  
-                  
-                    ;
-                  
-                
-              
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`; - -exports[`Storyshots Basics|SyntaxHighlighter showLineNumbers 1`] = ` -.emotion-2 { - overflow-y: auto; - height: 100%; - overflow-x: auto; - width: 100%; - position: relative; -} - -.emotion-2 code { - padding-right: 10px; -} - -.emotion-2 * .token { - font-family: "Operator Mono","Fira Code Retina","Fira Code","FiraCode-Retina","Andale Mono","Lucida Console",Consolas,Monaco,monospace; - -webkit-font-smoothing: antialiased; -} - -.emotion-2 * .token.comment { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.prolog { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.doctype { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.cdata { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.string { - color: #A31515; -} - -.emotion-2 * .token.punctuation { - color: #393A34; -} - -.emotion-2 * .token.operator { - color: #393A34; -} - -.emotion-2 * .token.url { - color: #36acaa; -} - -.emotion-2 * .token.symbol { - color: #36acaa; -} - -.emotion-2 * .token.number { - color: #36acaa; -} - -.emotion-2 * .token.boolean { - color: #36acaa; -} - -.emotion-2 * .token.variable { - color: #36acaa; -} - -.emotion-2 * .token.constant { - color: #36acaa; -} - -.emotion-2 * .token.inserted { - color: #36acaa; -} - -.emotion-2 * .token.atrule { - color: #0000ff; -} - -.emotion-2 * .token.keyword { - color: #0000ff; -} - -.emotion-2 * .token.attr-value { - color: #0000ff; -} - -.emotion-2 * .token.function { - color: #393A34; -} - -.emotion-2 * .token.deleted { - color: #9a050f; -} - -.emotion-2 * .token.important { - font-weight: bold; -} - -.emotion-2 * .token.bold { - font-weight: bold; -} - -.emotion-2 * .token.italic { - font-style: italic; -} - -.emotion-2 * .token.class-name { - color: #2B91AF; -} - -.emotion-2 * .token.tag { - color: #800000; -} - -.emotion-2 * .token.selector { - color: #800000; -} - -.emotion-2 * .token.attr-name { - color: #ff0000; -} - -.emotion-2 * .token.property { - color: #ff0000; -} - -.emotion-2 * .token.regex { - color: #ff0000; -} - -.emotion-2 * .token.entity { - color: #ff0000; -} - -.emotion-2 * .token.directive.tag .tag { - background: #ffff00; - color: #393A34; -} - -.emotion-2 * .language-json .token.boolean { - color: #0000ff; -} - -.emotion-2 * .language-json .token.number { - color: #0000ff; -} - -.emotion-2 * .language-json .token.property { - color: #2B91AF; -} - -.emotion-2 * .namespace { - opacity: 0.7; -} - -.emotion-0 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - padding-right: 0; - opacity: 1; -} - -.emotion-3 { - position: relative; - overflow: hidden; - color: #333333; -} - -.emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -webkit-justify-content: flex-start; - -ms-flex-pack: start; - justify-content: flex-start; - margin: 0; - padding: 0; -} - -
-
-
-
-
-
-
-
-
-
-
-                
-                  
-                    1
-
-                  
-                  
-                    2
-
-                  
-                  
-                    3
-
-                  
-                  
-                    4
-
-                  
-                  
-                    5
-
-                  
-                
-                
-                  
-                    import
-                  
-                   
-                  
-                    {
-                  
-                   Good
-                  
-                    ,
-                  
-                   Things 
-                  
-                    }
-                  
-                   
-                  
-                    from
-                  
-                   
-                  
-                    'life'
-                  
-                  
-                    ;
-                  
-                  
-
-
-                  
-                    const
-                  
-                   
-                  
-                    result
-                  
-                   
-                  
-                    =
-                  
-                   
-                  
-                    (
-                  
-                  
-                    )
-                  
-                   
-                  
-                    =>
-                  
-                   
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Good
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Things
-                      
-                    
-                     
-                    
-                      />
-                    
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Good
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    ;
-                  
-                  
-
-
-                  
-                    export
-                  
-                   
-                  
-                    {
-                  
-                   result 
-                  
-                    as
-                  
-                   
-                  
-                    default
-                  
-                   
-                  
-                    }
-                  
-                  
-                    ;
-                  
-                
-              
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`; - -exports[`Storyshots Basics|SyntaxHighlighter story 1`] = ` -.emotion-2 { - overflow-y: auto; - height: 100%; - overflow-x: auto; - width: 100%; - position: relative; -} - -.emotion-2 code { - padding-right: 10px; -} - -.emotion-2 * .token { - font-family: "Operator Mono","Fira Code Retina","Fira Code","FiraCode-Retina","Andale Mono","Lucida Console",Consolas,Monaco,monospace; - -webkit-font-smoothing: antialiased; -} - -.emotion-2 * .token.comment { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.prolog { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.doctype { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.cdata { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.string { - color: #A31515; -} - -.emotion-2 * .token.punctuation { - color: #393A34; -} - -.emotion-2 * .token.operator { - color: #393A34; -} - -.emotion-2 * .token.url { - color: #36acaa; -} - -.emotion-2 * .token.symbol { - color: #36acaa; -} - -.emotion-2 * .token.number { - color: #36acaa; -} - -.emotion-2 * .token.boolean { - color: #36acaa; -} - -.emotion-2 * .token.variable { - color: #36acaa; -} - -.emotion-2 * .token.constant { - color: #36acaa; -} - -.emotion-2 * .token.inserted { - color: #36acaa; -} - -.emotion-2 * .token.atrule { - color: #0000ff; -} - -.emotion-2 * .token.keyword { - color: #0000ff; -} - -.emotion-2 * .token.attr-value { - color: #0000ff; -} - -.emotion-2 * .token.function { - color: #393A34; -} - -.emotion-2 * .token.deleted { - color: #9a050f; -} - -.emotion-2 * .token.important { - font-weight: bold; -} - -.emotion-2 * .token.bold { - font-weight: bold; -} - -.emotion-2 * .token.italic { - font-style: italic; -} - -.emotion-2 * .token.class-name { - color: #2B91AF; -} - -.emotion-2 * .token.tag { - color: #800000; -} - -.emotion-2 * .token.selector { - color: #800000; -} - -.emotion-2 * .token.attr-name { - color: #ff0000; -} - -.emotion-2 * .token.property { - color: #ff0000; -} - -.emotion-2 * .token.regex { - color: #ff0000; -} - -.emotion-2 * .token.entity { - color: #ff0000; -} - -.emotion-2 * .token.directive.tag .tag { - background: #ffff00; - color: #393A34; -} - -.emotion-2 * .language-json .token.boolean { - color: #0000ff; -} - -.emotion-2 * .language-json .token.number { - color: #0000ff; -} - -.emotion-2 * .language-json .token.property { - color: #2B91AF; -} - -.emotion-2 * .namespace { - opacity: 0.7; -} - -.emotion-0 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - padding-right: 0; - opacity: 1; -} - -.emotion-3 { - position: relative; - overflow: hidden; - color: #333333; -} - -.emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -webkit-justify-content: flex-start; - -ms-flex-pack: start; - justify-content: flex-start; - margin: 0; - padding: 0; -} - -
-
-
-
-
-
-
-
-
-
-
-                
-                  
-                    import
-                  
-                   React 
-                  
-                    from
-                  
-                   
-                  
-                    'react'
-                  
-                  
-                    ;
-                  
-                  
-
-                  
-                    import
-                  
-                   
-                  
-                    {
-                  
-                   storiesOf 
-                  
-                    }
-                  
-                   
-                  
-                    from
-                  
-                   
-                  
-                    '@storybook/react'
-                  
-                  
-                    ;
-                  
-                  
-
-                  
-                    import
-                  
-                   
-                  
-                    {
-                  
-                   styled 
-                  
-                    }
-                  
-                   
-                  
-                    from
-                  
-                   
-                  
-                    '@storybook/theming'
-                  
-                  
-                    ;
-                  
-                  
-
-
-                  
-                    import
-                  
-                   Heading 
-                  
-                    from
-                  
-                   
-                  
-                    './heading'
-                  
-                  
-                    ;
-                  
-                  
-
-
-                  
-                    const
-                  
-                   Holder 
-                  
-                    =
-                  
-                   styled
-                  
-                    .
-                  
-                  
-                    div
-                  
-                  
-                    (
-                  
-                  
-                    {
-                  
-                  
-  margin
-                  
-                    :
-                  
-                   
-                  
-                    10
-                  
-                  
-                    ,
-                  
-                  
-  border
-                  
-                    :
-                  
-                   
-                  
-                    '1px dashed deepskyblue'
-                  
-                  
-                    ,
-                  
-                  
-  
-                  
-                    // overflow: 'hidden',
-                  
-                  
-
-                  
-                    }
-                  
-                  
-                    )
-                  
-                  
-                    ;
-                  
-                  
-
-
-                  
-                    storiesOf
-                  
-                  
-                    (
-                  
-                  
-                    'Basics|Heading'
-                  
-                  
-                    ,
-                  
-                   module
-                  
-                    )
-                  
-                  
-                    .
-                  
-                  
-                    add
-                  
-                  
-                    (
-                  
-                  
-                    'types'
-                  
-                  
-                    ,
-                  
-                   
-                  
-                    (
-                  
-                  
-                    )
-                  
-                   
-                  
-                    =>
-                  
-                   
-                  
-                    (
-                  
-                  
-  
-                  
-                    
-                      
-                        <
-                      
-                      div
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-    
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Holder
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-      
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Heading
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    DEFAULT WITH ALL CAPS
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Heading
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-    
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Holder
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-    
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Holder
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-      
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Heading
-                      
-                    
-                     
-                    
-                      sub
-                    
-                    
-                      
-                        =
-                      
-                      
-                        "
-                      
-                      With a great sub
-                      
-                        "
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    THIS LONG DEFAULT WITH ALL CAPS & SUB
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Heading
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-    
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Holder
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-    
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Holder
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-      
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Heading
-                      
-                    
-                     
-                    
-                      type
-                    
-                    
-                      
-                        =
-                      
-                      
-                        "
-                      
-                      page
-                      
-                        "
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    page type
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Heading
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-    
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Holder
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-    
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Holder
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-      
-                  
-                  
-                    
-                      
-                        <
-                      
-                      
-                        Heading
-                      
-                    
-                     
-                    
-                      type
-                    
-                    
-                      
-                        =
-                      
-                      
-                        "
-                      
-                      page
-                      
-                        "
-                      
-                    
-                     
-                    
-                      sub
-                    
-                    
-                      
-                        =
-                      
-                      
-                        "
-                      
-                      With a sub
-                      
-                        "
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-        page type
-      
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Heading
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-    
-                  
-                  
-                    
-                      
-                        </
-                      
-                      
-                        Holder
-                      
-                    
-                    
-                      >
-                    
-                  
-                  
-                    
-  
-                  
-                  
-                    
-                      
-                        </
-                      
-                      div
-                    
-                    
-                      >
-                    
-                  
-                  
-
-                  
-                    )
-                  
-                  
-                    )
-                  
-                  
-                    ;
-                  
-                
-              
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`; - -exports[`Storyshots Basics|SyntaxHighlighter unsupported 1`] = ` -.emotion-5 { - position: relative; - overflow: hidden; - color: #333333; - border: 1px solid rgba(0,0,0,.1); - background: #FFFFFF; -} - -.emotion-2 { - overflow-y: auto; - height: 100%; - overflow-x: auto; - width: 100%; - position: relative; -} - -.emotion-2 code { - padding-right: 10px; -} - -.emotion-2 * .token { - font-family: "Operator Mono","Fira Code Retina","Fira Code","FiraCode-Retina","Andale Mono","Lucida Console",Consolas,Monaco,monospace; - -webkit-font-smoothing: antialiased; -} - -.emotion-2 * .token.comment { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.prolog { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.doctype { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.cdata { - color: #008000; - font-style: italic; -} - -.emotion-2 * .token.string { - color: #A31515; -} - -.emotion-2 * .token.punctuation { - color: #393A34; -} - -.emotion-2 * .token.operator { - color: #393A34; -} - -.emotion-2 * .token.url { - color: #36acaa; -} - -.emotion-2 * .token.symbol { - color: #36acaa; -} - -.emotion-2 * .token.number { - color: #36acaa; -} - -.emotion-2 * .token.boolean { - color: #36acaa; -} - -.emotion-2 * .token.variable { - color: #36acaa; -} - -.emotion-2 * .token.constant { - color: #36acaa; -} - -.emotion-2 * .token.inserted { - color: #36acaa; -} - -.emotion-2 * .token.atrule { - color: #0000ff; -} - -.emotion-2 * .token.keyword { - color: #0000ff; -} - -.emotion-2 * .token.attr-value { - color: #0000ff; -} - -.emotion-2 * .token.function { - color: #393A34; -} - -.emotion-2 * .token.deleted { - color: #9a050f; -} - -.emotion-2 * .token.important { - font-weight: bold; -} - -.emotion-2 * .token.bold { - font-weight: bold; -} - -.emotion-2 * .token.italic { - font-style: italic; -} - -.emotion-2 * .token.class-name { - color: #2B91AF; -} - -.emotion-2 * .token.tag { - color: #800000; -} - -.emotion-2 * .token.selector { - color: #800000; -} - -.emotion-2 * .token.attr-name { - color: #ff0000; -} - -.emotion-2 * .token.property { - color: #ff0000; -} - -.emotion-2 * .token.regex { - color: #ff0000; -} - -.emotion-2 * .token.entity { - color: #ff0000; -} - -.emotion-2 * .token.directive.tag .tag { - background: #ffff00; - color: #393A34; -} - -.emotion-2 * .language-json .token.boolean { - color: #0000ff; -} - -.emotion-2 * .language-json .token.number { - color: #0000ff; -} - -.emotion-2 * .language-json .token.property { - color: #2B91AF; -} - -.emotion-2 * .namespace { - opacity: 0.7; -} - -.emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -webkit-justify-content: flex-start; - -ms-flex-pack: start; - justify-content: flex-start; - margin: 0; - padding: 10px; -} - -.emotion-0 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - padding-right: 0; - opacity: 1; -} - -.emotion-4 { - position: absolute; - bottom: 0; - right: 0; - max-width: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - background: #FFFFFF; - z-index: 1; -} - -.emotion-3 { - border: 0 none; - padding: 4px 10px; - cursor: pointer; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: #333333; - background: #FFFFFF; - font-size: 12px; - line-height: 16px; - font-weight: 700; - border-top: 1px solid rgba(0,0,0,.1); - border-left: 1px solid rgba(0,0,0,.1); - margin-left: -1px; - border-radius: 4px 0 0 0; -} - -.emotion-3:not(:last-child) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-3 + * { - border-left: 1px solid rgba(0,0,0,.1); - border-radius: 0; -} - -.emotion-3:focus { - box-shadow: #1EA7FD 0 -3px 0 0 inset; - outline: 0 none; -} - -
-
-
-
-
-
-
-
-
-
-
-                
-                  // A Hello World! program in C#.
-using System;
-namespace HelloWorld
-{
-  class Hello
-  {
-    static void Main()
-    {
-      Console.WriteLine("Hello World!");
-
-      // Keep the console window open in debug mode.
-      Console.WriteLine("Press any key to exit.");
-      Console.ReadKey();
-    }
-  }
-}
-                
-              
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-`; diff --git a/lib/components/src/tabs/__snapshots__/tabs.stories.storyshot b/lib/components/src/tabs/__snapshots__/tabs.stories.storyshot deleted file mode 100644 index a936ac0a198e..000000000000 --- a/lib/components/src/tabs/__snapshots__/tabs.stories.storyshot +++ /dev/null @@ -1,2029 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Basics|Tabs stateful - dynamic 1`] = ` -.emotion-9 { - overflow-y: hidden; - overflow-x: auto; - width: 100%; - color: #999999; - width: 100%; - height: 40px; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - box-shadow: rgba(0,0,0,.1) 0 -1px 0 0 inset; - background: #FFFFFF; -} - -.emotion-8 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - position: relative; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - height: 40px; -} - -.emotion-7 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - white-space: nowrap; - -webkit-flex-basis: auto; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - -.emotion-7 > * { - margin-left: 15px; -} - -.emotion-6 { - overflow: hidden; -} - -.emotion-6:first-of-type { - margin-left: 0; -} - -.emotion-0 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: inherit; - border-bottom-color: transparent; -} - -.emotion-0:empty { - display: none; -} - -.emotion-0:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-2 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: #1EA7FD; - border-bottom-color: #1EA7FD; -} - -.emotion-2:empty { - display: none; -} - -.emotion-2:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-12 { - display: block; -} - -.emotion-11 { - display: block; - position: relative; - font-size: 13px; -} - -.emotion-10 { - display: none; -} - -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CONTENT 6 -
-
-
-
-
-`; - -exports[`Storyshots Basics|Tabs stateful - no initial 1`] = ` -.emotion-9 { - overflow-y: hidden; - overflow-x: auto; - width: 100%; - color: #999999; - width: 100%; - height: 40px; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - box-shadow: rgba(0,0,0,.1) 0 -1px 0 0 inset; - background: #FFFFFF; -} - -.emotion-8 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - position: relative; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - height: 40px; -} - -.emotion-7 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - white-space: nowrap; - -webkit-flex-basis: auto; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - -.emotion-7 > * { - margin-left: 15px; -} - -.emotion-6 { - overflow: hidden; -} - -.emotion-6:first-of-type { - margin-left: 0; -} - -.emotion-1 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: inherit; - border-bottom-color: transparent; -} - -.emotion-1:empty { - display: none; -} - -.emotion-1:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-0 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: #1EA7FD; - border-bottom-color: #1EA7FD; -} - -.emotion-0:empty { - display: none; -} - -.emotion-0:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-12 { - display: block; -} - -.emotion-11 { - display: block; - position: relative; - font-size: 13px; -} - -.emotion-10 { - display: none; -} - -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CONTENT 1 -
- -
-
- CONTENT 6 -
-
-
-
-
-`; - -exports[`Storyshots Basics|Tabs stateful - static 1`] = ` -.emotion-5 { - overflow-y: hidden; - overflow-x: auto; - width: 100%; - color: #999999; - width: 100%; - height: 40px; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - box-shadow: rgba(0,0,0,.1) 0 -1px 0 0 inset; - background: #FFFFFF; -} - -.emotion-4 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - position: relative; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - height: 40px; -} - -.emotion-3 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - white-space: nowrap; - -webkit-flex-basis: auto; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - -.emotion-3 > * { - margin-left: 15px; -} - -.emotion-2 { - overflow: hidden; -} - -.emotion-2:first-of-type { - margin-left: 0; -} - -.emotion-0 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: inherit; - border-bottom-color: transparent; -} - -.emotion-0:empty { - display: none; -} - -.emotion-0:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-1 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: #1EA7FD; - border-bottom-color: #1EA7FD; -} - -.emotion-1:empty { - display: none; -} - -.emotion-1:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-6 { - display: block; -} - -.emotion-7 { - display: block; - position: relative; - font-size: 13px; -} - -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- test2 is always active (but visually hidden) -
-
-
-
-
-`; - -exports[`Storyshots Basics|Tabs stateless - absolute 1`] = ` -.emotion-9 { - overflow-y: hidden; - overflow-x: auto; - width: 100%; - color: #999999; - width: 100%; - height: 40px; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - box-shadow: rgba(0,0,0,.1) 0 -1px 0 0 inset; - background: #FFFFFF; -} - -.emotion-8 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - position: relative; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - height: 40px; -} - -.emotion-7 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - white-space: nowrap; - -webkit-flex-basis: auto; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - -.emotion-7 > * { - margin-left: 15px; -} - -.emotion-6 { - overflow: hidden; -} - -.emotion-6:first-of-type { - margin-left: 0; -} - -.emotion-0 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: inherit; - border-bottom-color: transparent; -} - -.emotion-0:empty { - display: none; -} - -.emotion-0:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-2 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: #1EA7FD; - border-bottom-color: #1EA7FD; -} - -.emotion-2:empty { - display: none; -} - -.emotion-2:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-11 { - display: block; - position: relative; - font-size: 13px; - height: calc(100% - 40px); - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 40px; - overflow: auto; -} - -.emotion-11 > *:first-child { - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - height: 100%; - overflow: auto; -} - -.emotion-10 { - display: none; -} - -.emotion-12 { - background-clip: padding-box; - border: 1px solid rgba(0,0,0,.1); - border-radius: 4px; - overflow: hidden; - width: 100%; - height: 100%; - box-sizing: border-box; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; -} - -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CONTENT 6 -
-
-
-
-
-`; - -exports[`Storyshots Basics|Tabs stateless - bordered 1`] = ` -.emotion-9 { - overflow-y: hidden; - overflow-x: auto; - width: 100%; - color: #999999; - width: 100%; - height: 40px; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - box-shadow: rgba(0,0,0,.1) 0 -1px 0 0 inset; - background: #FFFFFF; -} - -.emotion-8 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - position: relative; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - height: 40px; -} - -.emotion-7 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - white-space: nowrap; - -webkit-flex-basis: auto; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - -.emotion-7 > * { - margin-left: 15px; -} - -.emotion-6 { - overflow: hidden; -} - -.emotion-6:first-of-type { - margin-left: 0; -} - -.emotion-0 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: inherit; - border-bottom-color: transparent; -} - -.emotion-0:empty { - display: none; -} - -.emotion-0:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-2 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: #1EA7FD; - border-bottom-color: #1EA7FD; -} - -.emotion-2:empty { - display: none; -} - -.emotion-2:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-11 { - display: block; - position: relative; - font-size: 13px; -} - -.emotion-10 { - display: none; -} - -.emotion-12 { - background-clip: padding-box; - border: 1px solid rgba(0,0,0,.1); - border-radius: 4px; - overflow: hidden; - display: block; -} - -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CONTENT 6 -
-
-
-
-
-`; - -exports[`Storyshots Basics|Tabs stateless - empty 1`] = ` -.emotion-1 { - padding: 30px; - text-align: center; - color: #333333; - font-size: 13px; -} - -.emotion-0 { - font-weight: 700; -} - -
-
-
- Nothing found -
-
-
-`; - -exports[`Storyshots Basics|Tabs stateless - with tools 1`] = ` -.emotion-10 { - overflow-y: hidden; - overflow-x: auto; - width: 100%; - color: #999999; - width: 100%; - height: 40px; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - box-shadow: rgba(0,0,0,.1) 0 -1px 0 0 inset; - background: #FFFFFF; -} - -.emotion-9 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - position: relative; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - height: 40px; -} - -.emotion-7 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - white-space: nowrap; - -webkit-flex-basis: auto; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - -.emotion-7 > * { - margin-left: 15px; -} - -.emotion-6 { - overflow: hidden; -} - -.emotion-6:first-of-type { - margin-left: 0; -} - -.emotion-0 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: inherit; - border-bottom-color: transparent; -} - -.emotion-0:empty { - display: none; -} - -.emotion-0:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-2 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: #1EA7FD; - border-bottom-color: #1EA7FD; -} - -.emotion-2:empty { - display: none; -} - -.emotion-2:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-8 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - white-space: nowrap; - -webkit-flex-basis: auto; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - margin-left: 30px; -} - -.emotion-8 > * { - margin-right: 15px; -} - -.emotion-13 { - display: block; -} - -.emotion-12 { - display: block; - position: relative; - font-size: 13px; -} - -.emotion-11 { - display: none; -} - -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CONTENT 6 -
-
-
-
-
-`; diff --git a/lib/components/src/tooltip/__snapshots__/ListItem.stories.storyshot b/lib/components/src/tooltip/__snapshots__/ListItem.stories.storyshot deleted file mode 100644 index a65a0547e467..000000000000 --- a/lib/components/src/tooltip/__snapshots__/ListItem.stories.storyshot +++ /dev/null @@ -1,1212 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots basics|Tooltip/ListItem active icon 1`] = ` -.emotion-3 { - shape-rendering: inherit; - -webkit-transform: translate3d(0,0,0); - -ms-transform: translate3d(0,0,0); - transform: translate3d(0,0,0); - display: block; -} - -.emotion-2 { - fill: currentColor; -} - -.emotion-5 { - font-size: 12px; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - color: rgba(51,51,51,0.5); - -webkit-text-decoration: none; - text-decoration: none; - cursor: pointer; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 18px; - padding: 7px 15px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-5 > * + * { - padding-left: 10px; -} - -.emotion-5:hover { - background: rgba(0,0,0,.05); -} - -.emotion-5:hover svg { - opacity: 1; -} - -.emotion-1 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: left; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.emotion-1 > * + * { - padding-left: 10px; -} - -.emotion-0 { - color: #333333; - font-weight: 400; - color: #FF4785; - font-weight: 700; -} - -.emotion-4 svg { - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - opacity: 0; - height: 12px; - width: 12px; - margin: 3px 0; - vertical-align: top; -} - -.emotion-4 path { - fill: inherit; -} - -.emotion-4 svg { - opacity: 1; -} - -.emotion-4 path { - fill: #FF4785; -} - - - - - active icon - - - - - - - - -`; - -exports[`Storyshots basics|Tooltip/ListItem all 1`] = ` -@keyframes animation-0 { - 0%, 100% { - opacity: 1; - } - - 50% { - opacity: .4; - } -} - -@keyframes animation-0 { - 0%, 100% { - opacity: 1; - } - - 50% { - opacity: .4; - } -} - -@keyframes animation-0 { - 0%, 100% { - opacity: 1; - } - - 50% { - opacity: .4; - } -} - -@keyframes animation-0 { - 0%, 100% { - opacity: 1; - } - - 50% { - opacity: .4; - } -} - -@keyframes animation-0 { - 0%, 100% { - opacity: 1; - } - - 50% { - opacity: .4; - } -} - -.emotion-9 { - shape-rendering: inherit; - -webkit-transform: translate3d(0,0,0); - -ms-transform: translate3d(0,0,0); - transform: translate3d(0,0,0); - display: block; -} - -.emotion-8 { - fill: currentColor; -} - -.emotion-2 { - font-size: 12px; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - color: rgba(51,51,51,0.5); - -webkit-text-decoration: none; - text-decoration: none; - cursor: pointer; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 18px; - padding: 7px 15px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-2 > * + * { - padding-left: 10px; -} - -.emotion-2:hover { - background: rgba(0,0,0,.05); -} - -.emotion-2:hover svg { - opacity: 1; -} - -.emotion-1 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: left; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.emotion-1 > * + * { - padding-left: 10px; -} - -.emotion-3 { - color: #333333; - font-weight: 400; -} - -.emotion-0 { - color: #333333; - font-weight: 400; - -webkit-animation: animation-0 1.5s ease-in-out infinite; - animation: animation-0 1.5s ease-in-out infinite; - color: transparent; - cursor: progress; -} - -.emotion-10 svg { - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - opacity: 0; - height: 12px; - width: 12px; - margin: 3px 0; - vertical-align: top; -} - -.emotion-10 path { - fill: inherit; -} - -.emotion-14 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: center; -} - -.emotion-18 svg { - opacity: 1; -} - -.emotion-18 path { - fill: #FF4785; -} - -.emotion-19 { - color: #333333; - font-weight: 400; - color: #FF4785; - font-weight: 700; -} - -.emotion-20 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: center; - color: #FF4785; -} - -.emotion-22 svg { - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - opacity: 0; - height: 12px; - width: 12px; - margin: 3px 0; - vertical-align: top; -} - -.emotion-22 path { - fill: inherit; -} - -.emotion-22 svg { - opacity: 1; -} - -.emotion-22 path { - fill: #FF4785; -} - -.emotion-37 { - font-size: 12px; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - color: rgba(51,51,51,0.5); - -webkit-text-decoration: none; - text-decoration: none; - cursor: pointer; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 18px; - padding: 7px 15px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - cursor: not-allowed; -} - -.emotion-37 > * + * { - padding-left: 10px; -} - -.emotion-37:hover { - background: rgba(0,0,0,.05); -} - -.emotion-37:hover svg { - opacity: 1; -} - -.emotion-33 { - color: #333333; - font-weight: 400; - color: rgba(51,51,51,0.3); -} - -.emotion-34 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: center; - color: #999999; -} - - -`; - -exports[`Storyshots basics|Tooltip/ListItem default 1`] = ` -.emotion-2 { - font-size: 12px; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - color: rgba(51,51,51,0.5); - -webkit-text-decoration: none; - text-decoration: none; - cursor: pointer; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 18px; - padding: 7px 15px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-2 > * + * { - padding-left: 10px; -} - -.emotion-2:hover { - background: rgba(0,0,0,.05); -} - -.emotion-2:hover svg { - opacity: 1; -} - -.emotion-1 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: left; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.emotion-1 > * + * { - padding-left: 10px; -} - -.emotion-0 { - color: #333333; - font-weight: 400; -} - - - - - Default - - - -`; - -exports[`Storyshots basics|Tooltip/ListItem default icon 1`] = ` -.emotion-3 { - shape-rendering: inherit; - -webkit-transform: translate3d(0,0,0); - -ms-transform: translate3d(0,0,0); - transform: translate3d(0,0,0); - display: block; -} - -.emotion-2 { - fill: currentColor; -} - -.emotion-5 { - font-size: 12px; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - color: rgba(51,51,51,0.5); - -webkit-text-decoration: none; - text-decoration: none; - cursor: pointer; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 18px; - padding: 7px 15px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-5 > * + * { - padding-left: 10px; -} - -.emotion-5:hover { - background: rgba(0,0,0,.05); -} - -.emotion-5:hover svg { - opacity: 1; -} - -.emotion-1 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: left; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.emotion-1 > * + * { - padding-left: 10px; -} - -.emotion-0 { - color: #333333; - font-weight: 400; -} - -.emotion-4 svg { - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - opacity: 0; - height: 12px; - width: 12px; - margin: 3px 0; - vertical-align: top; -} - -.emotion-4 path { - fill: inherit; -} - - - - - Default icon - - - - - - - - -`; - -exports[`Storyshots basics|Tooltip/ListItem disabled 1`] = ` -.emotion-3 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: left; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.emotion-3 > * + * { - padding-left: 10px; -} - -.emotion-4 svg { - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - opacity: 0; - height: 12px; - width: 12px; - margin: 3px 0; - vertical-align: top; -} - -.emotion-4 path { - fill: inherit; -} - -.emotion-5 { - font-size: 12px; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - color: rgba(51,51,51,0.5); - -webkit-text-decoration: none; - text-decoration: none; - cursor: pointer; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 18px; - padding: 7px 15px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - cursor: not-allowed; -} - -.emotion-5 > * + * { - padding-left: 10px; -} - -.emotion-5:hover { - background: rgba(0,0,0,.05); -} - -.emotion-5:hover svg { - opacity: 1; -} - -.emotion-1 { - color: #333333; - font-weight: 400; - color: rgba(51,51,51,0.3); -} - -.emotion-2 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: center; - color: #999999; -} - - - - left - - - - disabled - - - center - - - - right - - -`; - -exports[`Storyshots basics|Tooltip/ListItem loading 1`] = ` -@keyframes animation-0 { - 0%, 100% { - opacity: 1; - } - - 50% { - opacity: .4; - } -} - -@keyframes animation-0 { - 0%, 100% { - opacity: 1; - } - - 50% { - opacity: .4; - } -} - -@keyframes animation-0 { - 0%, 100% { - opacity: 1; - } - - 50% { - opacity: .4; - } -} - -@keyframes animation-0 { - 0%, 100% { - opacity: 1; - } - - 50% { - opacity: .4; - } -} - -@keyframes animation-0 { - 0%, 100% { - opacity: 1; - } - - 50% { - opacity: .4; - } -} - -.emotion-2 { - font-size: 12px; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - color: rgba(51,51,51,0.5); - -webkit-text-decoration: none; - text-decoration: none; - cursor: pointer; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 18px; - padding: 7px 15px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-2 > * + * { - padding-left: 10px; -} - -.emotion-2:hover { - background: rgba(0,0,0,.05); -} - -.emotion-2:hover svg { - opacity: 1; -} - -.emotion-1 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: left; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.emotion-1 > * + * { - padding-left: 10px; -} - -.emotion-0 { - color: #333333; - font-weight: 400; - -webkit-animation: animation-0 1.5s ease-in-out infinite; - animation: animation-0 1.5s ease-in-out infinite; - color: transparent; - cursor: progress; -} - - - - - - Loading state - - - - -`; - -exports[`Storyshots basics|Tooltip/ListItem w/positions 1`] = ` -.emotion-5 { - font-size: 12px; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - color: rgba(51,51,51,0.5); - -webkit-text-decoration: none; - text-decoration: none; - cursor: pointer; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 18px; - padding: 7px 15px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-5 > * + * { - padding-left: 10px; -} - -.emotion-5:hover { - background: rgba(0,0,0,.05); -} - -.emotion-5:hover svg { - opacity: 1; -} - -.emotion-3 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: left; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.emotion-3 > * + * { - padding-left: 10px; -} - -.emotion-1 { - color: #333333; - font-weight: 400; -} - -.emotion-4 svg { - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - opacity: 0; - height: 12px; - width: 12px; - margin: 3px 0; - vertical-align: top; -} - -.emotion-4 path { - fill: inherit; -} - -.emotion-2 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: center; -} - - - - left - - - - title - - - center - - - - right - - -`; - -exports[`Storyshots basics|Tooltip/ListItem w/positions active 1`] = ` -.emotion-5 { - font-size: 12px; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - color: rgba(51,51,51,0.5); - -webkit-text-decoration: none; - text-decoration: none; - cursor: pointer; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 18px; - padding: 7px 15px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-5 > * + * { - padding-left: 10px; -} - -.emotion-5:hover { - background: rgba(0,0,0,.05); -} - -.emotion-5:hover svg { - opacity: 1; -} - -.emotion-3 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: left; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.emotion-3 > * + * { - padding-left: 10px; -} - -.emotion-0 svg { - opacity: 1; -} - -.emotion-0 path { - fill: #FF4785; -} - -.emotion-1 { - color: #333333; - font-weight: 400; - color: #FF4785; - font-weight: 700; -} - -.emotion-2 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: center; - color: #FF4785; -} - -.emotion-4 svg { - -webkit-transition: all 200ms ease-out; - transition: all 200ms ease-out; - opacity: 0; - height: 12px; - width: 12px; - margin: 3px 0; - vertical-align: top; -} - -.emotion-4 path { - fill: inherit; -} - -.emotion-4 svg { - opacity: 1; -} - -.emotion-4 path { - fill: #FF4785; -} - - - - left - - - - active - - - center - - - - right - - -`; diff --git a/lib/components/src/tooltip/__snapshots__/Tooltip.stories.storyshot b/lib/components/src/tooltip/__snapshots__/Tooltip.stories.storyshot deleted file mode 100644 index baeb3ec46624..000000000000 --- a/lib/components/src/tooltip/__snapshots__/Tooltip.stories.storyshot +++ /dev/null @@ -1,269 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots basics/Tooltip/Tooltip basic, default 1`] = ` -.emotion-2 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 10px; - margin-top: 0px; - margin-left: 0px; - margin-right: 0px; - background: rgba(255,255,255,0.95); - -webkit-filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - border-radius: 8px; - font-size: 12px; -} - -.emotion-0 { - position: absolute; - border-style: solid; - margin-bottom: 0px; - margin-top: 8px; - margin-right: 8px; - margin-left: 8px; - bottom: -8px; - top: autopx; - right: autopx; - left: autopx; - border-bottom-width: 0px; - border-top-width: 8px; - border-right-width: 8px; - border-left-width: 8px; - border-top-color: rgba(255,255,255,0.95); - border-bottom-color: transparent; - border-left-color: transparent; - border-right-color: transparent; -} - -.emotion-1 { - width: 100px; - height: 100px; - font-size: 16px; - text-align: center; - line-height: 100px; -} - -
-
-
- Text -
-
-`; - -exports[`Storyshots basics/Tooltip/Tooltip basic, default, bottom 1`] = ` -.emotion-1 { - width: 100px; - height: 100px; - font-size: 16px; - text-align: center; - line-height: 100px; -} - -.emotion-2 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 0px; - margin-top: 10px; - margin-left: 0px; - margin-right: 0px; - background: rgba(255,255,255,0.95); - -webkit-filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - border-radius: 8px; - font-size: 12px; -} - -.emotion-0 { - position: absolute; - border-style: solid; - margin-bottom: 8px; - margin-top: 0px; - margin-right: 8px; - margin-left: 8px; - bottom: autopx; - top: -8px; - right: autopx; - left: autopx; - border-bottom-width: 8px; - border-top-width: 0px; - border-right-width: 8px; - border-left-width: 8px; - border-top-color: transparent; - border-bottom-color: rgba(255,255,255,0.95); - border-left-color: transparent; - border-right-color: transparent; -} - -
-
-
- Text -
-
-`; - -exports[`Storyshots basics/Tooltip/Tooltip basic, default, left 1`] = ` -.emotion-1 { - width: 100px; - height: 100px; - font-size: 16px; - text-align: center; - line-height: 100px; -} - -.emotion-2 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 0px; - margin-top: 0px; - margin-left: 0px; - margin-right: 10px; - background: rgba(255,255,255,0.95); - -webkit-filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - border-radius: 8px; - font-size: 12px; -} - -.emotion-0 { - position: absolute; - border-style: solid; - margin-bottom: 8px; - margin-top: 8px; - margin-right: 0px; - margin-left: 8px; - bottom: autopx; - top: autopx; - right: -8px; - left: autopx; - border-bottom-width: 8px; - border-top-width: 8px; - border-right-width: 0px; - border-left-width: 8px; - border-top-color: transparent; - border-bottom-color: transparent; - border-left-color: rgba(255,255,255,0.95); - border-right-color: transparent; -} - -
-
-
- Text -
-
-`; - -exports[`Storyshots basics/Tooltip/Tooltip basic, default, right 1`] = ` -.emotion-1 { - width: 100px; - height: 100px; - font-size: 16px; - text-align: center; - line-height: 100px; -} - -.emotion-2 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 0px; - margin-top: 0px; - margin-left: 10px; - margin-right: 0px; - background: rgba(255,255,255,0.95); - -webkit-filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - border-radius: 8px; - font-size: 12px; -} - -.emotion-0 { - position: absolute; - border-style: solid; - margin-bottom: 8px; - margin-top: 8px; - margin-right: 8px; - margin-left: 0px; - bottom: autopx; - top: autopx; - right: autopx; - left: -8px; - border-bottom-width: 8px; - border-top-width: 8px; - border-right-width: 8px; - border-left-width: 0px; - border-top-color: transparent; - border-bottom-color: transparent; - border-left-color: transparent; - border-right-color: rgba(255,255,255,0.95); -} - -
-
-
- Text -
-
-`; - -exports[`Storyshots basics/Tooltip/Tooltip no chrome 1`] = ` -.emotion-0 { - width: 100px; - height: 100px; - font-size: 16px; - text-align: center; - line-height: 100px; -} - -.emotion-1 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 8px; - margin-top: 0px; - margin-left: 0px; - margin-right: 0px; -} - -
-
- Text -
-
-`; diff --git a/lib/components/src/tooltip/__snapshots__/TooltipLinkList.stories.storyshot b/lib/components/src/tooltip/__snapshots__/TooltipLinkList.stories.storyshot deleted file mode 100644 index 7a2cc780cf91..000000000000 --- a/lib/components/src/tooltip/__snapshots__/TooltipLinkList.stories.storyshot +++ /dev/null @@ -1,326 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots basics/Tooltip/TooltipLinkList links 1`] = ` -.emotion-8 { - min-width: 180px; - overflow: hidden; - border-radius: 8px; -} - -.emotion-4 { - font-size: 12px; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - color: rgba(51,51,51,0.5); - -webkit-text-decoration: none; - text-decoration: none; - cursor: pointer; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 18px; - padding: 7px 15px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-4 > * + * { - padding-left: 10px; -} - -.emotion-4:hover { - background: rgba(0,0,0,.05); -} - -.emotion-4:hover svg { - opacity: 1; -} - -.emotion-3 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: left; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.emotion-3 > * + * { - padding-left: 10px; -} - -.emotion-2 { - color: #333333; - font-weight: 400; -} - -.emotion-0 { - display: inline-block; - cursor: pointer; -} - -.emotion-9 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 10px; - margin-top: 0px; - margin-left: 0px; - margin-right: 0px; - background: rgba(255,255,255,0.95); - -webkit-filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - border-radius: 8px; - font-size: 12px; -} - -.emotion-1 { - position: absolute; - border-style: solid; - margin-bottom: 0px; - margin-top: 8px; - margin-right: 8px; - margin-left: 8px; - bottom: -8px; - top: autopx; - right: autopx; - left: autopx; - border-bottom-width: 0px; - border-top-width: 8px; - border-right-width: 8px; - border-left-width: 8px; - border-top-color: rgba(255,255,255,0.95); - border-bottom-color: transparent; - border-left-color: transparent; - border-right-color: transparent; -} - -
-
-
- Tooltip -
-
- -`; - -exports[`Storyshots basics/Tooltip/TooltipLinkList links and callback 1`] = ` -.emotion-11 { - min-width: 180px; - overflow: hidden; - border-radius: 8px; -} - -.emotion-4 { - font-size: 12px; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - color: rgba(51,51,51,0.5); - -webkit-text-decoration: none; - text-decoration: none; - cursor: pointer; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 18px; - padding: 7px 15px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-4 > * + * { - padding-left: 10px; -} - -.emotion-4:hover { - background: rgba(0,0,0,.05); -} - -.emotion-4:hover svg { - opacity: 1; -} - -.emotion-3 { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: left; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.emotion-3 > * + * { - padding-left: 10px; -} - -.emotion-2 { - color: #333333; - font-weight: 400; -} - -.emotion-0 { - display: inline-block; - cursor: pointer; -} - -.emotion-12 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 10px; - margin-top: 0px; - margin-left: 0px; - margin-right: 0px; - background: rgba(255,255,255,0.95); - -webkit-filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - border-radius: 8px; - font-size: 12px; -} - -.emotion-1 { - position: absolute; - border-style: solid; - margin-bottom: 0px; - margin-top: 8px; - margin-right: 8px; - margin-left: 8px; - bottom: -8px; - top: autopx; - right: autopx; - left: autopx; - border-bottom-width: 0px; - border-top-width: 8px; - border-right-width: 8px; - border-left-width: 8px; - border-top-color: rgba(255,255,255,0.95); - border-bottom-color: transparent; - border-left-color: transparent; - border-right-color: transparent; -} - -
-
-
- Tooltip -
-
- -`; diff --git a/lib/components/src/tooltip/__snapshots__/TooltipMessage.stories.storyshot b/lib/components/src/tooltip/__snapshots__/TooltipMessage.stories.storyshot deleted file mode 100644 index b38f7898aa3e..000000000000 --- a/lib/components/src/tooltip/__snapshots__/TooltipMessage.stories.storyshot +++ /dev/null @@ -1,514 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots basics/Tooltip/TooltipMessage default 1`] = ` -.emotion-0 { - display: inline-block; - cursor: pointer; -} - -.emotion-6 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 10px; - margin-top: 0px; - margin-left: 0px; - margin-right: 0px; - background: rgba(255,255,255,0.95); - -webkit-filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - border-radius: 8px; - font-size: 12px; -} - -.emotion-1 { - position: absolute; - border-style: solid; - margin-bottom: 0px; - margin-top: 8px; - margin-right: 8px; - margin-left: 8px; - bottom: -8px; - top: autopx; - right: autopx; - left: autopx; - border-bottom-width: 0px; - border-top-width: 8px; - border-right-width: 8px; - border-left-width: 8px; - border-top-color: rgba(255,255,255,0.95); - border-bottom-color: transparent; - border-left-color: transparent; - border-right-color: transparent; -} - -.emotion-5 { - padding: 15px; - width: 280px; - box-sizing: border-box; -} - -.emotion-4 { - color: #444444; - line-height: 18px; -} - -.emotion-2 { - font-weight: 900; -} - -
-
-
- Tooltip -
-
-
-
-
-
-
- Lorem ipsum dolor sit -
- - Amet consectatur vestibulum concet durum politu coret weirom - -
-
-
-
-`; - -exports[`Storyshots basics/Tooltip/TooltipMessage minimal message 1`] = ` -.emotion-0 { - display: inline-block; - cursor: pointer; -} - -.emotion-5 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 10px; - margin-top: 0px; - margin-left: 0px; - margin-right: 0px; - background: rgba(255,255,255,0.95); - -webkit-filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - border-radius: 8px; - font-size: 12px; -} - -.emotion-1 { - position: absolute; - border-style: solid; - margin-bottom: 0px; - margin-top: 8px; - margin-right: 8px; - margin-left: 8px; - bottom: -8px; - top: autopx; - right: autopx; - left: autopx; - border-bottom-width: 0px; - border-top-width: 8px; - border-right-width: 8px; - border-left-width: 8px; - border-top-color: rgba(255,255,255,0.95); - border-bottom-color: transparent; - border-left-color: transparent; - border-right-color: transparent; -} - -.emotion-4 { - padding: 15px; - width: 280px; - box-sizing: border-box; -} - -.emotion-3 { - color: #444444; - line-height: 18px; -} - -
-
-
- Tooltip -
-
-
-
-
-
- - Amet consectatur vestibulum concet durum politu coret weirom - -
-
-
-
-`; - -exports[`Storyshots basics/Tooltip/TooltipMessage with link 1`] = ` -.emotion-0 { - display: inline-block; - cursor: pointer; -} - -.emotion-6 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; -} - -.emotion-6 svg path { - fill: #1EA7FD; -} - -.emotion-6:hover, -.emotion-6:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-6:hover svg path, -.emotion-6:focus svg path { - fill: #0297f5; -} - -.emotion-6:active { - color: #028ee6; -} - -.emotion-6:active svg path { - fill: #028ee6; -} - -.emotion-6 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - -.emotion-9 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 10px; - margin-top: 0px; - margin-left: 0px; - margin-right: 0px; - background: rgba(255,255,255,0.95); - -webkit-filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - border-radius: 8px; - font-size: 12px; -} - -.emotion-1 { - position: absolute; - border-style: solid; - margin-bottom: 0px; - margin-top: 8px; - margin-right: 8px; - margin-left: 8px; - bottom: -8px; - top: autopx; - right: autopx; - left: autopx; - border-bottom-width: 0px; - border-top-width: 8px; - border-right-width: 8px; - border-left-width: 8px; - border-top-color: rgba(255,255,255,0.95); - border-bottom-color: transparent; - border-left-color: transparent; - border-right-color: transparent; -} - -.emotion-8 { - padding: 15px; - width: 280px; - box-sizing: border-box; -} - -.emotion-4 { - color: #444444; - line-height: 18px; -} - -.emotion-2 { - font-weight: 900; -} - -.emotion-7 { - margin-top: 8px; - text-align: center; -} - -.emotion-7 > * { - margin: 0 8px; - font-weight: 900; -} - -
-
-
- Tooltip -
-
-
-
-
-
-
- Lorem ipsum dolor sit -
- - Amet consectatur vestibulum concet durum politu coret weirom - -
- -
-
-
-`; - -exports[`Storyshots basics/Tooltip/TooltipMessage with links 1`] = ` -.emotion-0 { - display: inline-block; - cursor: pointer; -} - -.emotion-6 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; -} - -.emotion-6 svg path { - fill: #1EA7FD; -} - -.emotion-6:hover, -.emotion-6:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-6:hover svg path, -.emotion-6:focus svg path { - fill: #0297f5; -} - -.emotion-6:active { - color: #028ee6; -} - -.emotion-6:active svg path { - fill: #028ee6; -} - -.emotion-6 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - -.emotion-11 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 10px; - margin-top: 0px; - margin-left: 0px; - margin-right: 0px; - background: rgba(255,255,255,0.95); - -webkit-filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - border-radius: 8px; - font-size: 12px; -} - -.emotion-1 { - position: absolute; - border-style: solid; - margin-bottom: 0px; - margin-top: 8px; - margin-right: 8px; - margin-left: 8px; - bottom: -8px; - top: autopx; - right: autopx; - left: autopx; - border-bottom-width: 0px; - border-top-width: 8px; - border-right-width: 8px; - border-left-width: 8px; - border-top-color: rgba(255,255,255,0.95); - border-bottom-color: transparent; - border-left-color: transparent; - border-right-color: transparent; -} - -.emotion-10 { - padding: 15px; - width: 280px; - box-sizing: border-box; -} - -.emotion-4 { - color: #444444; - line-height: 18px; -} - -.emotion-2 { - font-weight: 900; -} - -.emotion-9 { - margin-top: 8px; - text-align: center; -} - -.emotion-9 > * { - margin: 0 8px; - font-weight: 900; -} - -
-
-
- Tooltip -
-
-
-
-
-
-
- Lorem ipsum dolor sit -
- - Amet consectatur vestibulum concet durum politu coret weirom - -
- -
-
-
-`; diff --git a/lib/components/src/tooltip/__snapshots__/TooltipNote.stories.storyshot b/lib/components/src/tooltip/__snapshots__/TooltipNote.stories.storyshot deleted file mode 100644 index 0eea0521232a..000000000000 --- a/lib/components/src/tooltip/__snapshots__/TooltipNote.stories.storyshot +++ /dev/null @@ -1,54 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots basics/Tooltip/TooltipNote default 1`] = ` -.emotion-0 { - display: inline-block; - cursor: pointer; -} - -.emotion-2 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 8px; - margin-top: 0px; - margin-left: 0px; - margin-right: 0px; -} - -.emotion-1 { - padding: 2px 6px; - line-height: 16px; - font-size: 10px; - font-weight: 700; - color: #FFFFFF; - box-shadow: 0 0 5px 0 rgba(0,0,0,0.3); - border-radius: 4px; - white-space: nowrap; - pointer-events: none; - z-index: -1; - background: rgba(0,0,0,0.4); - margin: 6px; -} - -
-
-
- Tooltip -
-
-
-
- Lorem ipsum dolor -
-
-
-`; diff --git a/lib/components/src/tooltip/__snapshots__/WithTooltip.stories.storyshot b/lib/components/src/tooltip/__snapshots__/WithTooltip.stories.storyshot deleted file mode 100644 index 5faba31ab234..000000000000 --- a/lib/components/src/tooltip/__snapshots__/WithTooltip.stories.storyshot +++ /dev/null @@ -1,448 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots basics/Tooltip/WithTooltip no chrome 1`] = ` -.emotion-2 { - display: inline-block; - cursor: pointer; -} - -.emotion-4 { - height: 300px; -} - -.emotion-3 { - width: 500px; - height: 500px; - overflow-y: scroll; - background: #eee; - position: relative; -} - -.emotion-0 { - height: 100px; -} - -.emotion-1 { - width: 200px; - height: 100px; - background-color: red; - color: white; -} - -
-
-
-
-
- Click me! -
-
-
-
-`; - -exports[`Storyshots basics/Tooltip/WithTooltip simple click 1`] = ` -.emotion-2 { - display: inline-block; - cursor: pointer; -} - -.emotion-4 { - height: 300px; -} - -.emotion-3 { - width: 500px; - height: 500px; - overflow-y: scroll; - background: #eee; - position: relative; -} - -.emotion-0 { - height: 100px; -} - -.emotion-1 { - width: 200px; - height: 100px; - background-color: red; - color: white; -} - -
-
-
-
-
- Click me! -
-
-
-
-`; - -exports[`Storyshots basics/Tooltip/WithTooltip simple click closeOnClick 1`] = ` -.emotion-2 { - display: inline-block; - cursor: pointer; -} - -.emotion-4 { - height: 300px; -} - -.emotion-3 { - width: 500px; - height: 500px; - overflow-y: scroll; - background: #eee; - position: relative; -} - -.emotion-0 { - height: 100px; -} - -.emotion-1 { - width: 200px; - height: 100px; - background-color: red; - color: white; -} - -
-
-
-
-
- Click me! -
-
-
-
-`; - -exports[`Storyshots basics/Tooltip/WithTooltip simple click start open 1`] = ` -.emotion-2 { - display: inline-block; - cursor: pointer; -} - -.emotion-8 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; -} - -.emotion-8 svg path { - fill: #1EA7FD; -} - -.emotion-8:hover, -.emotion-8:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-8:hover svg path, -.emotion-8:focus svg path { - fill: #0297f5; -} - -.emotion-8:active { - color: #028ee6; -} - -.emotion-8:active svg path { - fill: #028ee6; -} - -.emotion-8 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - -.emotion-11 { - display: inline-block; - z-index: 2147483647; - margin-bottom: 10px; - margin-top: 0px; - margin-left: 0px; - margin-right: 0px; - background: rgba(255,255,255,0.95); - -webkit-filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)); - border-radius: 8px; - font-size: 12px; -} - -.emotion-3 { - position: absolute; - border-style: solid; - margin-bottom: 0px; - margin-top: 8px; - margin-right: 8px; - margin-left: 8px; - bottom: -8px; - top: autopx; - right: autopx; - left: autopx; - border-bottom-width: 0px; - border-top-width: 8px; - border-right-width: 8px; - border-left-width: 8px; - border-top-color: rgba(255,255,255,0.95); - border-bottom-color: transparent; - border-left-color: transparent; - border-right-color: transparent; -} - -.emotion-10 { - padding: 15px; - width: 280px; - box-sizing: border-box; -} - -.emotion-6 { - color: #444444; - line-height: 18px; -} - -.emotion-4 { - font-weight: 900; -} - -.emotion-9 { - margin-top: 8px; - text-align: center; -} - -.emotion-9 > * { - margin: 0 8px; - font-weight: 900; -} - -.emotion-13 { - height: 300px; -} - -.emotion-12 { - width: 500px; - height: 500px; - overflow-y: scroll; - background: #eee; - position: relative; -} - -.emotion-0 { - height: 100px; -} - -.emotion-1 { - width: 200px; - height: 100px; - background-color: red; - color: white; -} - -
-
-
-
-
- Click me! -
-
-
-
-
-
-
- Lorem ipsum dolor sit -
- - Amet consectatur vestibulum concet durum politu coret weirom - -
- -
-
-
-
-`; - -exports[`Storyshots basics/Tooltip/WithTooltip simple hover 1`] = ` -.emotion-2 { - display: inline-block; - cursor: pointer; -} - -.emotion-4 { - height: 300px; -} - -.emotion-3 { - width: 500px; - height: 500px; - overflow-y: scroll; - background: #eee; - position: relative; -} - -.emotion-0 { - height: 100px; -} - -.emotion-1 { - width: 200px; - height: 100px; - background-color: red; - color: white; -} - -
-
-
-
-
- Hover me! -
-
-
-
-`; - -exports[`Storyshots basics/Tooltip/WithTooltip simple hover, functional 1`] = ` -.emotion-2 { - display: inline-block; - cursor: pointer; -} - -.emotion-4 { - height: 300px; -} - -.emotion-3 { - width: 500px; - height: 500px; - overflow-y: scroll; - background: #eee; - position: relative; -} - -.emotion-0 { - height: 100px; -} - -.emotion-1 { - width: 200px; - height: 100px; - background-color: red; - color: white; -} - -
-
-
-
-
- Hover me! -
-
-
-
-`; diff --git a/lib/components/src/typography/__snapshots__/typography.stories.storyshot b/lib/components/src/typography/__snapshots__/typography.stories.storyshot deleted file mode 100644 index 5d48136bc13f..000000000000 --- a/lib/components/src/typography/__snapshots__/typography.stories.storyshot +++ /dev/null @@ -1,186 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Basics|typography all 1`] = ` -.emotion-16 { - padding: 3rem; -} - -.emotion-0 { - margin-bottom: 3rem; -} - -.emotion-15 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; -} - -.emotion-15 > * { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - padding-right: 40px; -} - -.emotion-10 { - font-weight: 900; -} - -.emotion-10 > * { - margin-bottom: 1rem; -} - -.emotion-1 { - font-size: 48px; -} - -.emotion-2 { - font-size: 40px; -} - -.emotion-3 { - font-size: 32px; -} - -.emotion-4 { - font-size: 28px; -} - -.emotion-6 { - font-size: 20px; -} - -.emotion-7 { - font-size: 16px; -} - -.emotion-8 { - font-size: 14px; -} - -.emotion-9 { - font-size: 12px; -} - -.emotion-14 > * { - margin-bottom: 1rem; -} - -
-
-
- - Font-family: - - "Nunito sans", Apple system font ... sans-serif -
-
- - UI text size: - - 13px -
-
- - Document/Markdown text size: - - 14px -
-
- - Code font: - - - - Operator Mono, Fira Code, Consolas ... monospace - -
-
- - Weights: - - 400(normal), 600(bold), 900(black) -
-
-
-
-
- 48 heading -
-
- 40 heading -
-
- 32 heading -
-
- 28 heading -
-
- 24 heading -
-
- 20 heading -
-
- 16 heading -
-
- 14 heading -
-
- 12 heading -
-
-
-
- 16 The quick brown fox jumps over the lazy dog -
-
- 14 The quick brown fox jumps over the lazy dog -
-
- 12 The quick brown fox jumps over the lazy dog -
-
-
-
-`; diff --git a/lib/components/src/typography/link/__snapshots__/link.stories.storyshot b/lib/components/src/typography/link/__snapshots__/link.stories.storyshot deleted file mode 100644 index d43a0dd939db..000000000000 --- a/lib/components/src/typography/link/__snapshots__/link.stories.storyshot +++ /dev/null @@ -1,664 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Basics|Link cancel w/ href 1`] = ` -.emotion-1 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; -} - -.emotion-1 svg path { - fill: #1EA7FD; -} - -.emotion-1:hover, -.emotion-1:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-1:hover svg path, -.emotion-1:focus svg path { - fill: #0297f5; -} - -.emotion-1:active { - color: #028ee6; -} - -.emotion-1:active svg path { - fill: #028ee6; -} - -.emotion-1 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - - - - Link - - -`; - -exports[`Storyshots Basics|Link cancel w/ onClick 1`] = ` -.emotion-1 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; -} - -.emotion-1 svg path { - fill: #1EA7FD; -} - -.emotion-1:hover, -.emotion-1:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-1:hover svg path, -.emotion-1:focus svg path { - fill: #0297f5; -} - -.emotion-1:active { - color: #028ee6; -} - -.emotion-1:active svg path { - fill: #028ee6; -} - -.emotion-1 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - - - - Try clicking with different mouse buttons and modifier keys (shift/ctrl/alt/cmd) - - -`; - -exports[`Storyshots Basics|Link no-cancel w/ href 1`] = ` -.emotion-1 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; -} - -.emotion-1 svg path { - fill: #1EA7FD; -} - -.emotion-1:hover, -.emotion-1:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-1:hover svg path, -.emotion-1:focus svg path { - fill: #0297f5; -} - -.emotion-1:active { - color: #028ee6; -} - -.emotion-1:active svg path { - fill: #028ee6; -} - -.emotion-1 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - - - - Link - - -`; - -exports[`Storyshots Basics|Link no-cancel w/ onClick 1`] = ` -.emotion-1 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; -} - -.emotion-1 svg path { - fill: #1EA7FD; -} - -.emotion-1:hover, -.emotion-1:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-1:hover svg path, -.emotion-1:focus svg path { - fill: #0297f5; -} - -.emotion-1:active { - color: #028ee6; -} - -.emotion-1:active svg path { - fill: #028ee6; -} - -.emotion-1 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - - - - any click will go through - - -`; - -exports[`Storyshots Basics|Link styled links 1`] = ` -.emotion-9 { - shape-rendering: inherit; - -webkit-transform: translate3d(0,0,0); - -ms-transform: translate3d(0,0,0); - transform: translate3d(0,0,0); - display: block; -} - -.emotion-8 { - fill: currentColor; -} - -.emotion-1 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; -} - -.emotion-1 svg path { - fill: #1EA7FD; -} - -.emotion-1:hover, -.emotion-1:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-1:hover svg path, -.emotion-1:focus svg path { - fill: #0297f5; -} - -.emotion-1:active { - color: #028ee6; -} - -.emotion-1:active svg path { - fill: #028ee6; -} - -.emotion-1 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - -.emotion-3 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; - color: #999999; -} - -.emotion-3 svg path { - fill: #1EA7FD; -} - -.emotion-3:hover, -.emotion-3:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-3:hover svg path, -.emotion-3:focus svg path { - fill: #0297f5; -} - -.emotion-3:active { - color: #028ee6; -} - -.emotion-3:active svg path { - fill: #028ee6; -} - -.emotion-3 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - -.emotion-3 svg path { - fill: #999999; -} - -.emotion-3:hover { - color: #666666; -} - -.emotion-3:hover svg path { - fill: #666666; -} - -.emotion-3:active { - color: #444444; -} - -.emotion-3:active svg path { - fill: #444444; -} - -.emotion-5 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; - color: #666666; -} - -.emotion-5 svg path { - fill: #1EA7FD; -} - -.emotion-5:hover, -.emotion-5:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-5:hover svg path, -.emotion-5:focus svg path { - fill: #0297f5; -} - -.emotion-5:active { - color: #028ee6; -} - -.emotion-5:active svg path { - fill: #028ee6; -} - -.emotion-5 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - -.emotion-5 svg path { - fill: #666666; -} - -.emotion-5:hover { - color: #333333; -} - -.emotion-5:hover svg path { - fill: #333333; -} - -.emotion-5:active { - color: #999999; -} - -.emotion-5:active svg path { - fill: #999999; -} - -.emotion-7 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; - color: inherit; -} - -.emotion-7 svg path { - fill: #1EA7FD; -} - -.emotion-7:hover, -.emotion-7:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-7:hover svg path, -.emotion-7:focus svg path { - fill: #0297f5; -} - -.emotion-7:active { - color: #028ee6; -} - -.emotion-7:active svg path { - fill: #028ee6; -} - -.emotion-7 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - -.emotion-7:hover, -.emotion-7:active { - color: inherit; - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.emotion-14 svg { - height: 1em; - width: 1em; - vertical-align: middle; - position: relative; - bottom: 0; - margin-right: 0; -} - -.emotion-18 > svg:last-of-type { - height: 0.7em; - width: 0.7em; - margin-right: 0; - margin-left: 0.25em; - bottom: auto; - vertical-align: inherit; -} - -.emotion-18 svg { - height: 1em; - width: 1em; - vertical-align: middle; - position: relative; - bottom: 0; - margin-right: 0; -} - -.emotion-21 { - display: inline-block; - -webkit-transition: all 150ms ease-out; - transition: all 150ms ease-out; - -webkit-text-decoration: none; - text-decoration: none; - color: #1EA7FD; - color: #FFFFFF; -} - -.emotion-21 svg path { - fill: #1EA7FD; -} - -.emotion-21:hover, -.emotion-21:focus { - cursor: pointer; - color: #0297f5; -} - -.emotion-21:hover svg path, -.emotion-21:focus svg path { - fill: #0297f5; -} - -.emotion-21:active { - color: #028ee6; -} - -.emotion-21:active svg path { - fill: #028ee6; -} - -.emotion-21 svg { - display: inline-block; - height: 1em; - width: 1em; - vertical-align: text-top; - position: relative; - bottom: -0.125em; - margin-right: 0.4em; -} - -.emotion-21 svg path { - fill: #FFFFFF; -} - -.emotion-21:hover { - color: #F8F8F8; -} - -.emotion-21:hover svg path { - fill: #F8F8F8; -} - -.emotion-21:active { - color: #F3F3F3; -} - -.emotion-21:active svg path { - fill: #F3F3F3; -} - - -`; diff --git a/lib/core-events/package.json b/lib/core-events/package.json index 15c2b5fbff47..a953373b8359 100644 --- a/lib/core-events/package.json +++ b/lib/core-events/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-events", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Event names used in storybook core", "keywords": [ "storybook" diff --git a/lib/core/package.json b/lib/core/package.json index 6f3d6c8b1fae..9a6bd428f5ba 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" @@ -25,15 +25,15 @@ "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/plugin-transform-react-constant-elements": "^7.2.0", "@babel/preset-env": "^7.4.5", - "@storybook/addons": "5.2.0-alpha.30", - "@storybook/channel-postmessage": "5.2.0-alpha.30", - "@storybook/client-api": "5.2.0-alpha.30", - "@storybook/client-logger": "5.2.0-alpha.30", - "@storybook/core-events": "5.2.0-alpha.30", - "@storybook/node-logger": "5.2.0-alpha.30", - "@storybook/router": "5.2.0-alpha.30", - "@storybook/theming": "5.2.0-alpha.30", - "@storybook/ui": "5.2.0-alpha.30", + "@storybook/addons": "5.2.0-alpha.36", + "@storybook/channel-postmessage": "5.2.0-alpha.36", + "@storybook/client-api": "5.2.0-alpha.36", + "@storybook/client-logger": "5.2.0-alpha.36", + "@storybook/core-events": "5.2.0-alpha.36", + "@storybook/node-logger": "5.2.0-alpha.36", + "@storybook/router": "5.2.0-alpha.36", + "@storybook/theming": "5.2.0-alpha.36", + "@storybook/ui": "5.2.0-alpha.36", "airbnb-js-shims": "^1 || ^2", "ansi-to-html": "^0.6.11", "autoprefixer": "^9.4.9", diff --git a/lib/core/src/client/preview/start.js b/lib/core/src/client/preview/start.js index a4a33b914e03..2ba30f35876f 100644 --- a/lib/core/src/client/preview/start.js +++ b/lib/core/src/client/preview/start.js @@ -190,11 +190,35 @@ export default function start(render, { decorateStory } = {}) { addons.getChannel().emit(Events.STORY_CHANGED, id); } + // Docs view renders into a different root ID to avoid conflicts + // with the user's view layer. Therefore we need to clean up whenever + // we transition between view modes + if (viewMode !== previousViewMode) { + switch (viewMode) { + case 'docs': { + document.getElementById('root').setAttribute('hidden', true); + document.getElementById('docs-root').removeAttribute('hidden'); + break; + } + case 'story': + default: { + if (previousViewMode === 'docs') { + document.getElementById('docs-root').setAttribute('hidden', true); + ReactDOM.unmountComponentAtNode(document.getElementById('docs-root')); + document.getElementById('root').removeAttribute('hidden'); + } + } + } + } + // Given a cleaned up state, render the appropriate view mode switch (viewMode) { case 'docs': { const NoDocs = () =>
No docs found
; const StoryDocs = (parameters && parameters.docs) || NoDocs; - ReactDOM.render(, document.getElementById('root')); + ReactDOM.render( + , + document.getElementById('docs-root') + ); break; } case 'story': @@ -323,9 +347,9 @@ export default function start(render, { decorateStory } = {}) { Object.keys(exports).forEach(key => { if (isExportStory(key, meta)) { - const story = exports[key]; - const { title = story.title || key, parameters } = story; - kind.add(title, story, parameters); + const storyFn = exports[key]; + const { name, parameters } = storyFn.story || {}; + kind.add(name || key, storyFn, parameters); } }); diff --git a/lib/core/src/server/build-dev.js b/lib/core/src/server/build-dev.js index 5290bf067a46..8ee8062ac87e 100644 --- a/lib/core/src/server/build-dev.js +++ b/lib/core/src/server/build-dev.js @@ -16,6 +16,8 @@ import semver from 'semver'; import { stripIndents } from 'common-tags'; import Table from 'cli-table3'; import prettyTime from 'pretty-hrtime'; +import inquirer from 'inquirer'; +import detectFreePort from 'detect-port'; import storybook from './dev-server'; import { getDevCli } from './cli'; @@ -35,6 +37,12 @@ const writeStats = async (name, stats) => { ); }; +const getFreePort = port => + detectFreePort(port).catch(error => { + logger.error(error); + process.exit(-1); + }); + async function getServer(app, options) { if (!options.https) { return http.createServer(app); @@ -238,7 +246,24 @@ function openInBrowser(address) { export async function buildDevStandalone(options) { try { - const { port, host, extendServer } = options; + const { host, extendServer } = options; + + const port = await getFreePort(options.port); + + if (!options.ci && !options.smokeTest && options.port != null && port !== options.port) { + const { shouldChangePort } = await inquirer.prompt({ + type: 'confirm', + default: true, + name: 'shouldChangePort', + message: `Port ${ + options.port + } is not available. Would you like to run Storybook on port ${port} instead?`, + }); + + if (!shouldChangePort) { + process.exit(1); + } + } // Used with `app.listen` below const listenAddr = [port]; @@ -343,6 +368,7 @@ export async function buildDev({ packageJson, ...loadOptions }) { ...loadOptions, packageJson, configDir: loadOptions.configDir || cliOptions.configDir || './.storybook', + ignorePreview: !!cliOptions.previewUrl, docsMode: !!cliOptions.docs, }); } diff --git a/lib/core/src/server/build-static.js b/lib/core/src/server/build-static.js index 853edf9c5bc0..90990f2c2ec0 100644 --- a/lib/core/src/server/build-static.js +++ b/lib/core/src/server/build-static.js @@ -124,6 +124,7 @@ async function buildManager(configType, outputDir, configDir, options) { corePresets: [require.resolve('./manager/manager-preset.js')], frameworkPresets: options.frameworkPresets, docsMode: options.docsMode, + previewUrl: options.previewUrl, }); if (options.debugWebpack) { @@ -204,6 +205,7 @@ export function buildStatic({ packageJson, ...loadOptions }) { packageJson, configDir: loadOptions.configDir || cliOptions.configDir || './.storybook', outputDir: loadOptions.outputDir || cliOptions.outputDir || './storybook-static', + ignorePreview: !!cliOptions.previewUrl, docsMode: !!cliOptions.docs, }); } diff --git a/lib/core/src/server/cli/dev.js b/lib/core/src/server/cli/dev.js index 61ea25e2770f..71136e3c6b1c 100644 --- a/lib/core/src/server/cli/dev.js +++ b/lib/core/src/server/cli/dev.js @@ -1,16 +1,9 @@ import program from 'commander'; import chalk from 'chalk'; -import detectFreePort from 'detect-port'; import inquirer from 'inquirer'; import { logger } from '@storybook/node-logger'; import { parseList, getEnvConfig } from './utils'; -const getFreePort = port => - detectFreePort(port).catch(error => { - logger.error(error); - process.exit(-1); - }); - async function getCLI(packageJson) { process.env.NODE_ENV = process.env.NODE_ENV || 'development'; @@ -36,6 +29,10 @@ async function getCLI(packageJson) { .option('--quiet', 'Suppress verbose build output') .option('--no-dll', 'Do not use dll reference') .option('--debug-webpack', 'Display final webpack configurations for debugging purposes') + .option( + '--preview-url [string]', + 'Disables the default storybook preview and lets your use your own' + ) .option('--docs', 'Build a documentation-only site using addon-docs') .parse(process.argv); @@ -64,22 +61,7 @@ async function getCLI(packageJson) { program.port = parseInt(program.port, 10); } - const port = await getFreePort(program.port); - - if (!program.ci && !program.smokeTest && program.port != null && port !== program.port) { - const { shouldChangePort } = await inquirer.prompt({ - type: 'confirm', - default: true, - name: 'shouldChangePort', - message: `Port ${program.port} is not available. -Would you like to run Storybook on port ${port} instead?`, - }); - if (!shouldChangePort) { - process.exit(1); - } - } - - return { ...program, port }; + return { ...program }; } export default getCLI; diff --git a/lib/core/src/server/cli/prod.js b/lib/core/src/server/cli/prod.js index d20e410390f9..99ad8f81076e 100644 --- a/lib/core/src/server/cli/prod.js +++ b/lib/core/src/server/cli/prod.js @@ -16,6 +16,10 @@ function getCLI(packageJson) { .option('--loglevel [level]', 'Control level of logging during build') .option('--no-dll', 'Do not use dll reference') .option('--debug-webpack', 'Display final webpack configurations for debugging purposes') + .option( + '--preview-url [string]', + 'Disables the default storybook preview and lets your use your own' + ) .option('--docs', 'Build a documentation-only site using addon-docs') .parse(process.argv); diff --git a/lib/core/src/server/dev-server.js b/lib/core/src/server/dev-server.js index 9962d613d89b..0645bbe6ee7e 100644 --- a/lib/core/src/server/dev-server.js +++ b/lib/core/src/server/dev-server.js @@ -45,7 +45,6 @@ export default function(options) { webpack(config).watch( { aggregateTimeout: 1, - ignored: /node_modules/, }, (err, stats) => { managerTotalTime = process.hrtime(startTime); @@ -99,7 +98,6 @@ export default function(options) { publicPath: previewConfig.output.publicPath, watchOptions: { aggregateTimeout: 1, - ignored: /node_modules/, ...(previewConfig.watchOptions || {}), }, // this actually causes 0 (regular) output from wdm & webpack diff --git a/lib/core/src/server/manager/manager-webpack.config.js b/lib/core/src/server/manager/manager-webpack.config.js index 4d0af42b1acf..8884951613bb 100644 --- a/lib/core/src/server/manager/manager-webpack.config.js +++ b/lib/core/src/server/manager/manager-webpack.config.js @@ -28,6 +28,7 @@ export default ({ outputDir, cache, babelOptions, + previewUrl, }) => { const { raw, stringified } = loadEnv(); const isProd = configType === 'PRODUCTION'; @@ -72,7 +73,8 @@ export default ({ new DefinePlugin({ 'process.env': stringified, NODE_ENV: JSON.stringify(process.env.NODE_ENV), - DOCS_MODE: docsMode, // global docs mode + DOCS_MODE: JSON.stringify(docsMode), // global docs mode + PREVIEW_URL: JSON.stringify(previewUrl), // global preview URL }), // See https://github.com/graphql/graphql-language-service/issues/111#issuecomment-306723400 new ContextReplacementPlugin(/graphql-language-service-interface[/\\]dist/, /\.js$/), diff --git a/lib/core/src/server/templates/index.ejs b/lib/core/src/server/templates/index.ejs index 514b7be4e6e6..5731c9b020b8 100644 --- a/lib/core/src/server/templates/index.ejs +++ b/lib/core/src/server/templates/index.ejs @@ -1,48 +1,36 @@ - - - - <%= options.title || 'Storybook'%> - - <% if (files.favicon) { %> - - <% } %> - - - - <% if (typeof headHtmlSnippet !== 'undefined') { %> - <%= headHtmlSnippet %> - <% } %> - - <% files.css.forEach(file => { %> - - <% }); %> - - - - -<% if (typeof bodyHtmlSnippet !== 'undefined') { %> - <%= bodyHtmlSnippet %> -<% } %> - -
- -<% if (options.window) { %> - -<% } %> - -<% dlls.forEach(file => { %> - -<% }); %> - -<% files.js.forEach(file => { %> - -<% }); %> - - + + + <%= options.title || 'Storybook'%> + + <% if (files.favicon) { %> + + <% } %> + + + + <% if (typeof headHtmlSnippet !== 'undefined') { %> <%= headHtmlSnippet %> <% } %> <% + files.css.forEach(file => { %> + + <% }); %> + + + <% if (typeof bodyHtmlSnippet !== 'undefined') { %> <%= bodyHtmlSnippet %> <% } %> + +
+
+ + <% if (options.window) { %> + + <% } %> <% dlls.forEach(file => { %> + + <% }); %> <% files.js.forEach(file => { %> + + <% }); %> + diff --git a/lib/node-logger/package.json b/lib/node-logger/package.json index 96c8b0c5850b..48a9f4ae52a0 100644 --- a/lib/node-logger/package.json +++ b/lib/node-logger/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/node-logger", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "", "keywords": [ "storybook" diff --git a/lib/router/package.json b/lib/router/package.json index a3ec7bec724d..84d9523f4f47 100644 --- a/lib/router/package.json +++ b/lib/router/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/router", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Core Storybook Router", "keywords": [ "storybook" diff --git a/lib/source-loader/package.json b/lib/source-loader/package.json index 8c0e86df7678..8d6f108fb324 100644 --- a/lib/source-loader/package.json +++ b/lib/source-loader/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/source-loader", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Source loader", "keywords": [ "lib", @@ -22,8 +22,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.2.0-alpha.30", - "@storybook/router": "5.2.0-alpha.30", + "@storybook/addons": "5.2.0-alpha.36", + "@storybook/router": "5.2.0-alpha.36", "core-js": "^3.0.1", "estraverse": "^4.2.0", "global": "^4.3.2", diff --git a/lib/source-loader/src/abstract-syntax-tree/__snapshots__/inject-decorator.test.js.snap b/lib/source-loader/src/abstract-syntax-tree/__snapshots__/inject-decorator.test.js.snap index 6cd7c5d832e7..65ba7d29a2ed 100644 --- a/lib/source-loader/src/abstract-syntax-tree/__snapshots__/inject-decorator.test.js.snap +++ b/lib/source-loader/src/abstract-syntax-tree/__snapshots__/inject-decorator.test.js.snap @@ -10,7 +10,7 @@ import { storiesOf } from '@storybook/angular'; }) class WithNgContentComponent {} -storiesOf('Custom|ng-content', module).addDecorator(withSourceLoader(__STORY__, __ADDS_MAP__,__MAIN_FILE_LOCATION__,__MODULE_DEPENDENCIES__,__LOCAL_DEPENDENCIES__,__SOURCE_PREFIX__,__IDS_TO_FRAMEWORKS__)).add('Default', () => ({ +storiesOf('Custom|ng-content', module).add('Default', () => ({ template: \`

This is rendered in ng-content

\`, moduleMetadata: { declarations: [WithNgContentComponent], @@ -53,14 +53,13 @@ class Table extends React.Component { } } -const stories = storiesOf('Table', module).addDecorator(withSourceLoader(__STORY__, __ADDS_MAP__,__MAIN_FILE_LOCATION__,__MODULE_DEPENDENCIES__,__LOCAL_DEPENDENCIES__,__SOURCE_PREFIX__,__IDS_TO_FRAMEWORKS__)); +const stories = storiesOf('Table', module); stories.add('Flow Class', withInfo('Lorum Ipsum Nem')(() => )); " `; exports[`inject-decorator injectDecorator option is false - ts does not inject stories decorator after the all "storiesOf" functions 1`] = ` -"var addSourceDecorator = require(\\"@storybook/source-loader\\").addSource; -import { Component } from '@angular/core'; +"import { Component } from '@angular/core'; import { Store, StoreModule } from '@ngrx/store'; import { storiesOf, moduleMetadata } from '@storybook/angular'; @@ -105,7 +104,7 @@ import FlowTypeButton from '../components/FlowTypeButton'; import BaseButton from '../components/BaseButton'; import TableComponent from '../components/TableComponent'; -storiesOf('Addons|Info.React Docgen', module).addDecorator(withSourceLoader(__STORY__, __ADDS_MAP__,__MAIN_FILE_LOCATION__,__MODULE_DEPENDENCIES__,__LOCAL_DEPENDENCIES__,__SOURCE_PREFIX__,__IDS_TO_FRAMEWORKS__)) +storiesOf('Addons|Info.React Docgen', module) .add( 'Comments from PropType declarations', withInfo( @@ -136,12 +135,12 @@ const Button = () =>
)); " `; -exports[`inject-decorator positive - ts calculates "adds" map 1`] = `Object {}`; +exports[`inject-decorator positive - ts calculates "adds" map 1`] = ` +Object { + "ngrx-store--with-component": Object { + "endBody": Object { + "col": 3, + "line": 32, + }, + "endLoc": Object { + "col": 3, + "line": 32, + }, + "startBody": Object { + "col": 25, + "line": 28, + }, + "startLoc": Object { + "col": 7, + "line": 28, + }, + }, +} +`; exports[`inject-decorator positive - ts injects stories decorator after the all "storiesOf" functions 1`] = ` -"var addSourceDecorator = require(\\"@storybook/source-loader\\").addSource; -import { Component } from '@angular/core'; +"import { Component } from '@angular/core'; import { Store, StoreModule } from '@ngrx/store'; import { storiesOf, moduleMetadata } from '@storybook/angular'; @@ -358,7 +377,7 @@ class WithStoreComponent { } } -storiesOf('ngrx|Store', module) +storiesOf('ngrx|Store', module).addDecorator(withSourceLoader(__STORY__, __ADDS_MAP__,__MAIN_FILE_LOCATION__,__MODULE_DEPENDENCIES__,__LOCAL_DEPENDENCIES__,__SOURCE_PREFIX__,__IDS_TO_FRAMEWORKS__)) .addDecorator( moduleMetadata({ imports: [StoreModule.forRoot({})], @@ -787,8 +806,8 @@ storiesOf('Addons|Info.GitHub issues', module).addDecorator(withSourceLoader(__S `; exports[`inject-decorator stories with ugly comments in ts should delete ugly comments from the generated story source 1`] = ` -"/* global window */ -/* eslint-disable global-require, import/no-dynamic-require */ +" + import React from 'react'; @@ -808,17 +827,13 @@ class WithStoreComponent { } } -/* - eslint-disable some kind - of multi line ignore, though - I'm not sure it's possible. -*/ + import { storiesOf } from '@storybook/react'; -/* eslint-disable-line */ const x = 0; + const x = 0; + -// eslint-disable-line storiesOf('Foo', module) .add('bar', () =>
baz
); diff --git a/lib/source-loader/src/abstract-syntax-tree/inject-decorator.js b/lib/source-loader/src/abstract-syntax-tree/inject-decorator.js index aa620eee0392..9cd8008f9f13 100644 --- a/lib/source-loader/src/abstract-syntax-tree/inject-decorator.js +++ b/lib/source-loader/src/abstract-syntax-tree/inject-decorator.js @@ -21,7 +21,7 @@ function extendOptions(source, comments, filepath, options) { } function inject(source, filepath, options = {}, log = message => {}) { - const { injectDecorator = true } = options; + const { injectDecorator = true, inspectDependencies } = options; const obviouslyNotCode = ['md', 'txt', 'json'].includes(options.parser); let parser = null; try { @@ -48,7 +48,9 @@ function inject(source, filepath, options = {}, log = message => {}) { const storySource = generateStorySource(extendOptions(source, comments, filepath, options)); const newAst = parser.parse(storySource); - const { dependencies, storiesOfIdentifiers } = generateDependencies(newAst); + const { dependencies, storiesOfIdentifiers } = inspectDependencies + ? generateDependencies(newAst) + : { dependencies: [], storiesOfIdentifiers: {} }; const { addsMap, idsToFrameworks } = generateStoriesLocationsMap(newAst, storiesOfIdentifiers); let newSource = cleanedSource; diff --git a/lib/source-loader/src/abstract-syntax-tree/inject-decorator.test.js b/lib/source-loader/src/abstract-syntax-tree/inject-decorator.test.js index 17023390707e..755feb9117fd 100644 --- a/lib/source-loader/src/abstract-syntax-tree/inject-decorator.test.js +++ b/lib/source-loader/src/abstract-syntax-tree/inject-decorator.test.js @@ -2,18 +2,13 @@ import fs from 'fs'; import path from 'path'; import injectDecorator from './inject-decorator'; -const ADD_DECORATOR_STATEMENT = '.addDecorator(withStorySource(__STORY__, __ADDS_MAP__))'; - describe('inject-decorator', () => { describe('positive', () => { const mockFilePath = './__mocks__/inject-decorator.stories.txt'; const source = fs.readFileSync(mockFilePath, 'utf-8'); - const result = injectDecorator( - source, - ADD_DECORATOR_STATEMENT, - path.resolve(__dirname, mockFilePath), - { parser: 'javascript' } - ); + const result = injectDecorator(source, path.resolve(__dirname, mockFilePath), { + parser: 'javascript', + }); it('returns "changed" flag', () => { expect(result.changed).toBeTruthy(); @@ -31,12 +26,9 @@ describe('inject-decorator', () => { describe('positive - angular', () => { const mockFilePath = './__mocks__/inject-decorator.angular-stories.txt'; const source = fs.readFileSync(mockFilePath, 'utf-8'); - const result = injectDecorator( - source, - ADD_DECORATOR_STATEMENT, - path.resolve(__dirname, mockFilePath), - { parser: 'typescript' } - ); + const result = injectDecorator(source, path.resolve(__dirname, mockFilePath), { + parser: 'typescript', + }); it('returns "changed" flag', () => { expect(result.changed).toBeTruthy(); @@ -54,12 +46,9 @@ describe('inject-decorator', () => { describe('positive - flow', () => { const mockFilePath = './__mocks__/inject-decorator.flow-stories.txt'; const source = fs.readFileSync(mockFilePath, 'utf-8'); - const result = injectDecorator( - source, - ADD_DECORATOR_STATEMENT, - path.resolve(__dirname, mockFilePath), - { parser: 'flow' } - ); + const result = injectDecorator(source, path.resolve(__dirname, mockFilePath), { + parser: 'flow', + }); it('returns "changed" flag', () => { expect(result.changed).toBeTruthy(); @@ -77,12 +66,9 @@ describe('inject-decorator', () => { describe('positive - ts', () => { const mockFilePath = './__mocks__/inject-decorator.ts.txt'; const source = fs.readFileSync(mockFilePath, 'utf-8'); - const result = injectDecorator( - source, - ADD_DECORATOR_STATEMENT, - path.resolve(__dirname, mockFilePath), - { parser: 'typescript' } - ); + const result = injectDecorator(source, path.resolve(__dirname, mockFilePath), { + parser: 'typescript', + }); it('returns "changed" flag', () => { expect(result.changed).toBeTruthy(); @@ -100,12 +86,9 @@ describe('inject-decorator', () => { describe('stories with ugly comments', () => { const mockFilePath = './__mocks__/inject-decorator.ugly-comments-stories.txt'; const source = fs.readFileSync(mockFilePath, 'utf-8'); - const result = injectDecorator( - source, - ADD_DECORATOR_STATEMENT, - path.resolve(__dirname, mockFilePath), - { parser: 'javascript' } - ); + const result = injectDecorator(source, path.resolve(__dirname, mockFilePath), { + parser: 'javascript', + }); it('should delete ugly comments from the generated story source', () => { expect(result.storySource).toMatchSnapshot(); @@ -115,12 +98,9 @@ describe('inject-decorator', () => { describe('stories with ugly comments in ts', () => { const mockFilePath = './__mocks__/inject-decorator.ts.ugly-comments-stories.txt'; const source = fs.readFileSync(mockFilePath, 'utf-8'); - const result = injectDecorator( - source, - ADD_DECORATOR_STATEMENT, - path.resolve(__dirname, mockFilePath), - { parser: 'typescript' } - ); + const result = injectDecorator(source, path.resolve(__dirname, mockFilePath), { + parser: 'typescript', + }); it('should delete ugly comments from the generated story source', () => { expect(result.storySource).toMatchSnapshot(); @@ -131,11 +111,7 @@ describe('inject-decorator', () => { const mockFilePath = './__mocks__/inject-decorator.no-stories.txt'; const source = fs.readFileSync(mockFilePath, 'utf-8'); - const result = injectDecorator( - source, - ADD_DECORATOR_STATEMENT, - path.resolve(__dirname, mockFilePath) - ); + const result = injectDecorator(source, path.resolve(__dirname, mockFilePath)); expect(result.changed).toBeFalsy(); expect(result.addsMap).toEqual({}); @@ -145,15 +121,10 @@ describe('inject-decorator', () => { describe('injectDecorator option is false', () => { const mockFilePath = './__mocks__/inject-decorator.stories.txt'; const source = fs.readFileSync(mockFilePath, 'utf-8'); - const result = injectDecorator( - source, - ADD_DECORATOR_STATEMENT, - path.resolve(__dirname, mockFilePath), - { - injectDecorator: false, - parser: 'javascript', - } - ); + const result = injectDecorator(source, path.resolve(__dirname, mockFilePath), { + injectDecorator: false, + parser: 'javascript', + }); it('does not inject stories decorator after the all "storiesOf" functions', () => { expect(result.source).toMatchSnapshot(); @@ -163,15 +134,10 @@ describe('inject-decorator', () => { describe('injectDecorator option is false - angular', () => { const mockFilePath = './__mocks__/inject-decorator.angular-stories.txt'; const source = fs.readFileSync(mockFilePath, 'utf-8'); - const result = injectDecorator( - source, - ADD_DECORATOR_STATEMENT, - path.resolve(__dirname, mockFilePath), - { - injectDecorator: false, - parser: 'typescript', - } - ); + const result = injectDecorator(source, path.resolve(__dirname, mockFilePath), { + injectDecorator: false, + parser: 'typescript', + }); it('does not inject stories decorator after the all "storiesOf" functions', () => { expect(result.source).toMatchSnapshot(); @@ -181,15 +147,10 @@ describe('inject-decorator', () => { describe('injectDecorator option is false - flow', () => { const mockFilePath = './__mocks__/inject-decorator.flow-stories.txt'; const source = fs.readFileSync(mockFilePath, 'utf-8'); - const result = injectDecorator( - source, - ADD_DECORATOR_STATEMENT, - path.resolve(__dirname, mockFilePath), - { - injectDecorator: false, - parser: 'flow', - } - ); + const result = injectDecorator(source, path.resolve(__dirname, mockFilePath), { + injectDecorator: false, + parser: 'flow', + }); it('does not inject stories decorator after the all "storiesOf" functions', () => { expect(result.source).toMatchSnapshot(); @@ -199,15 +160,10 @@ describe('inject-decorator', () => { describe('injectDecorator option is false - ts', () => { const mockFilePath = './__mocks__/inject-decorator.ts.txt'; const source = fs.readFileSync(mockFilePath, 'utf-8'); - const result = injectDecorator( - source, - ADD_DECORATOR_STATEMENT, - path.resolve(__dirname, mockFilePath), - { - injectDecorator: false, - parser: 'typescript', - } - ); + const result = injectDecorator(source, path.resolve(__dirname, mockFilePath), { + injectDecorator: false, + parser: 'typescript', + }); it('does not inject stories decorator after the all "storiesOf" functions', () => { expect(result.source).toMatchSnapshot(); diff --git a/lib/source-loader/src/dependencies-lookup/readAsObject.js b/lib/source-loader/src/dependencies-lookup/readAsObject.js index 4ab9f83d8b8b..3cff31e0b93b 100644 --- a/lib/source-loader/src/dependencies-lookup/readAsObject.js +++ b/lib/source-loader/src/dependencies-lookup/readAsObject.js @@ -26,6 +26,7 @@ function extractLocalDependenciesFrom(tree) { function readAsObject(classLoader, inputSource, mainFile) { const options = getOptions(classLoader) || {}; + const { inspectLocalDependencies } = options; const result = injectDecorator( inputSource, classLoader.resourcePath, @@ -47,7 +48,9 @@ function readAsObject(classLoader, inputSource, mainFile) { const resource = classLoader.resourcePath || classLoader.resource; const moduleDependencies = (result.dependencies || []).filter(d => d[0] === '.' || d[0] === '/'); - const workspaceFileNames = moduleDependencies.map(d => path.join(path.dirname(resource), d)); + const workspaceFileNames = inspectLocalDependencies + ? moduleDependencies.map(d => path.join(path.dirname(resource), d)) + : []; return Promise.all( workspaceFileNames.map( diff --git a/lib/source-loader/src/preview.js b/lib/source-loader/src/preview.js index 55f2df746a25..a40d84a72cd2 100644 --- a/lib/source-loader/src/preview.js +++ b/lib/source-loader/src/preview.js @@ -36,7 +36,7 @@ function sendEvent( }); } -export function addSource(story, sourceContext) { +export function addSource(storyFn, sourceContext) { const { __STORY__: source, __ADDS_MAP__: locationsMap = {}, @@ -46,7 +46,7 @@ export function addSource(story, sourceContext) { __SOURCE_PREFIX__: prefix, __IDS_TO_FRAMEWORKS__: idsToFrameworks, } = sourceContext; - const decorated = function(context) { + const decorated = context => { sendEvent( context, source, @@ -57,13 +57,12 @@ export function addSource(story, sourceContext) { prefix, idsToFrameworks ); - if (typeof story === 'function') { - return story(); + if (typeof storyFn === 'function') { + return storyFn(context); } - return story; + return storyFn; }; - decorated.storyData = (story || {}).storyData; - decorated.title = (story || {}).title; + decorated.story = (storyFn || {}).story; return decorated; } @@ -76,7 +75,7 @@ export function withSource( prefix, idsToFrameworks ) { - return (story, context) => { + return (storyFn, context) => { sendEvent( context, source, @@ -87,6 +86,6 @@ export function withSource( prefix, idsToFrameworks ); - return story(); + return storyFn(context); }; } diff --git a/lib/theming/package.json b/lib/theming/package.json index b7c17abd3e93..45f865791c61 100644 --- a/lib/theming/package.json +++ b/lib/theming/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/theming", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Core Storybook Components", "keywords": [ "storybook" @@ -23,7 +23,7 @@ "dependencies": { "@emotion/core": "^10.0.9", "@emotion/styled": "^10.0.7", - "@storybook/client-logger": "5.2.0-alpha.30", + "@storybook/client-logger": "5.2.0-alpha.36", "common-tags": "^1.8.0", "core-js": "^3.0.1", "deep-object-diff": "^1.1.0", diff --git a/lib/ui/README.md b/lib/ui/README.md index ef00985cca40..57178dd4bc22 100644 --- a/lib/ui/README.md +++ b/lib/ui/README.md @@ -174,3 +174,14 @@ The above action(or the `handleShortcut` method) accepts events as a constant de ### URL Changes TODO: state we use reach/router customized to query params + +### Story Order + +Stories are sorted in the order in which they were imported. This can be overridden by adding storySort to the Parameters for the stories in `.storybook/config.js`: +```js +addParameters({ + options: { + storySort: (a, b) => a[1].id.localeCompare(b[1].id), + }, +}); +``` diff --git a/lib/ui/package.json b/lib/ui/package.json index 43f667fc49ab..5293115d7e24 100644 --- a/lib/ui/package.json +++ b/lib/ui/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/ui", - "version": "5.2.0-alpha.30", + "version": "5.2.0-alpha.36", "description": "Core Storybook UI", "keywords": [ "storybook" @@ -22,14 +22,14 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.2.0-alpha.30", - "@storybook/api": "5.2.0-alpha.30", - "@storybook/channels": "5.2.0-alpha.30", - "@storybook/client-logger": "5.2.0-alpha.30", - "@storybook/components": "5.2.0-alpha.30", - "@storybook/core-events": "5.2.0-alpha.30", - "@storybook/router": "5.2.0-alpha.30", - "@storybook/theming": "5.2.0-alpha.30", + "@storybook/addons": "5.2.0-alpha.36", + "@storybook/api": "5.2.0-alpha.36", + "@storybook/channels": "5.2.0-alpha.36", + "@storybook/client-logger": "5.2.0-alpha.36", + "@storybook/components": "5.2.0-alpha.36", + "@storybook/core-events": "5.2.0-alpha.36", + "@storybook/router": "5.2.0-alpha.36", + "@storybook/theming": "5.2.0-alpha.36", "copy-to-clipboard": "^3.0.8", "core-js": "^3.0.1", "core-js-pure": "^3.0.1", diff --git a/lib/ui/src/components/layout/__snapshots__/layout.stories.storyshot b/lib/ui/src/components/layout/__snapshots__/layout.stories.storyshot deleted file mode 100644 index 8d1cebbbd65b..000000000000 --- a/lib/ui/src/components/layout/__snapshots__/layout.stories.storyshot +++ /dev/null @@ -1,3221 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots UI|Layout/Desktop bottom Panel 1`] = ` -.emotion-0 { - z-index: 10; - position: absolute; - top: 0; - left: 0; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: rgba(0,0,0,.1); - overflow: hidden; - -webkit-transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - cursor: col-resize; - height: 100%; - width: 10px; - margin-left: 0; - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 50px 100%; - background-position: 10px 50%; - background-repeat: no-repeat; -} - -.emotion-0:hover { - color: #1EA7FD; -} - -.emotion-0:hover { - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 50px 100%; - background-position: 0 50%; - background-repeat: no-repeat; -} - -.emotion-3 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-2 { - background: hotpink; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-5 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - z-index: 9; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-8 { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: #FFFFFF; - border-radius: 4px; - overflow: hidden; - box-shadow: 0 1px 5px 0 rgba(0,0,0,0.1); -} - -.emotion-4 { - background: deepskyblue; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-6 { - background: orangered; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-1 { - z-index: 10; - position: absolute; - top: 0; - left: 0; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: rgba(0,0,0,.1); - overflow: hidden; - -webkit-transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - cursor: row-resize; - height: 10px; - width: 100%; - margin-top: 0; - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 100% 50px; - background-position: 50% 10px; - background-repeat: no-repeat; -} - -.emotion-1:hover { - color: #1EA7FD; -} - -.emotion-1:hover { - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 100% 50px; - background-position: 50% 0; - background-repeat: no-repeat; -} - -.emotion-7 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - border-top: 1px solid rgba(0,0,0,.1); - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -
-
-
-
-
-

- 1 -

-
-        {
-  "debug": {
-    "animate": true,
-    "hidden": false,
-    "position": {
-      "height": 768,
-      "left": 0,
-      "top": 0,
-      "width": 210
-    }
-  }
-}
-      
-
-
-
-
-
-
-

- 1 -

-
-            {
-  "id": "main",
-  "debug": {
-    "animate": true,
-    "isFullscreen": false,
-    "position": {
-      "height": 451,
-      "left": 0,
-      "top": 0,
-      "width": 804
-    }
-  }
-}
-          
-
-
-
-
-

- 1 -

-
-            {
-  "debug": {
-    "animate": true,
-    "align": "bottom",
-    "hidden": false,
-    "position": {
-      "height": 297,
-      "left": 0,
-      "top": 451,
-      "width": 804
-    }
-  }
-}
-          
-
-
-
-
-
-`; - -exports[`Storyshots UI|Layout/Desktop default 1`] = ` -.emotion-0 { - z-index: 10; - position: absolute; - top: 0; - left: 0; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: rgba(0,0,0,.1); - overflow: hidden; - -webkit-transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - cursor: col-resize; - height: 100%; - width: 10px; - margin-left: 0; - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 50px 100%; - background-position: 10px 50%; - background-repeat: no-repeat; -} - -.emotion-0:hover { - color: #1EA7FD; -} - -.emotion-0:hover { - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 50px 100%; - background-position: 0 50%; - background-repeat: no-repeat; -} - -.emotion-3 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-2 { - background: hotpink; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-5 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - z-index: 9; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-8 { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: #FFFFFF; - border-radius: 4px; - overflow: hidden; - box-shadow: 0 1px 5px 0 rgba(0,0,0,0.1); -} - -.emotion-4 { - background: deepskyblue; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-7 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - border-left: 1px solid rgba(0,0,0,.1); - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-6 { - background: orangered; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -
-
-
-
-
-

- 1 -

-
-        {
-  "debug": {
-    "animate": true,
-    "hidden": false,
-    "position": {
-      "height": 768,
-      "left": 0,
-      "top": 0,
-      "width": 210
-    }
-  }
-}
-      
-
-
-
-
-
-
-

- 1 -

-
-            {
-  "id": "main",
-  "debug": {
-    "animate": true,
-    "isFullscreen": false,
-    "position": {
-      "height": 748,
-      "left": 0,
-      "top": 0,
-      "width": 414
-    }
-  }
-}
-          
-
-
-
-
-

- 1 -

-
-            {
-  "debug": {
-    "animate": true,
-    "align": "right",
-    "hidden": false,
-    "position": {
-      "height": 748,
-      "left": 414,
-      "top": 0,
-      "width": 390
-    }
-  }
-}
-          
-
-
-
-
-
-`; - -exports[`Storyshots UI|Layout/Desktop full 1`] = ` -.emotion-1 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - z-index: 9; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-0 { - background: deepskyblue; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-3 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - border-left: 1px solid rgba(0,0,0,.1); - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-2 { - background: orangered; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-4 { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - box-shadow: none; - border-radius: 0; -} - -
-
-
-
-
-

- 1 -

-
-            {
-  "id": "main",
-  "debug": {
-    "animate": true,
-    "isFullscreen": true,
-    "position": {}
-  }
-}
-          
-
-
-
-
-

- 1 -

-
-            {
-  "debug": {
-    "animate": true,
-    "align": "right",
-    "hidden": true,
-    "position": {
-      "height": 748,
-      "left": 614,
-      "top": 0,
-      "width": 390
-    }
-  }
-}
-          
-
-
-
-
-
-`; - -exports[`Storyshots UI|Layout/Desktop no Nav 1`] = ` -.emotion-0 { - z-index: 10; - position: absolute; - top: 0; - left: 0; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: rgba(0,0,0,.1); - overflow: hidden; - -webkit-transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - cursor: col-resize; - height: 100%; - width: 10px; - margin-left: 0; - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 50px 100%; - background-position: 10px 50%; - background-repeat: no-repeat; -} - -.emotion-0:hover { - color: #1EA7FD; -} - -.emotion-0:hover { - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 50px 100%; - background-position: 0 50%; - background-repeat: no-repeat; -} - -.emotion-2 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - z-index: 9; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-5 { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: #FFFFFF; - border-radius: 4px; - overflow: hidden; - box-shadow: 0 1px 5px 0 rgba(0,0,0,0.1); -} - -.emotion-1 { - background: deepskyblue; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-4 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - border-left: 1px solid rgba(0,0,0,.1); - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-3 { - background: orangered; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -
-
-
-
-
-
-

- 1 -

-
-            {
-  "id": "main",
-  "debug": {
-    "animate": true,
-    "isFullscreen": false,
-    "position": {
-      "height": 748,
-      "left": 0,
-      "top": 0,
-      "width": 614
-    }
-  }
-}
-          
-
-
-
-
-

- 1 -

-
-            {
-  "debug": {
-    "animate": true,
-    "align": "right",
-    "hidden": false,
-    "position": {
-      "height": 748,
-      "left": 614,
-      "top": 0,
-      "width": 390
-    }
-  }
-}
-          
-
-
-
-
-
-`; - -exports[`Storyshots UI|Layout/Desktop no Panel 1`] = ` -.emotion-0 { - z-index: 10; - position: absolute; - top: 0; - left: 0; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: rgba(0,0,0,.1); - overflow: hidden; - -webkit-transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - cursor: col-resize; - height: 100%; - width: 10px; - margin-left: 0; - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 50px 100%; - background-position: 10px 50%; - background-repeat: no-repeat; -} - -.emotion-0:hover { - color: #1EA7FD; -} - -.emotion-0:hover { - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 50px 100%; - background-position: 0 50%; - background-repeat: no-repeat; -} - -.emotion-2 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-1 { - background: hotpink; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-4 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - z-index: 9; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-7 { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: #FFFFFF; - border-radius: 4px; - overflow: hidden; - box-shadow: 0 1px 5px 0 rgba(0,0,0,0.1); -} - -.emotion-3 { - background: deepskyblue; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-6 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - border-left: 1px solid rgba(0,0,0,.1); - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-5 { - background: orangered; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -
-
-
-
-

- 1 -

-
-        {
-  "debug": {
-    "animate": true,
-    "hidden": false,
-    "position": {
-      "height": 768,
-      "left": 0,
-      "top": 0,
-      "width": 210
-    }
-  }
-}
-      
-
-
-
-
-
-
-

- 1 -

-
-            {
-  "id": "main",
-  "debug": {
-    "animate": true,
-    "isFullscreen": false,
-    "position": {}
-  }
-}
-          
-
-
-
-
-

- 1 -

-
-            {
-  "debug": {
-    "animate": true,
-    "align": "right",
-    "hidden": true,
-    "position": {
-      "height": 748,
-      "left": 414,
-      "top": 0,
-      "width": 390
-    }
-  }
-}
-          
-
-
-
-
-
-`; - -exports[`Storyshots UI|Layout/Desktop no Panel, no Nav 1`] = ` -.emotion-1 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - z-index: 9; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-0 { - background: deepskyblue; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-3 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - border-left: 1px solid rgba(0,0,0,.1); - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-2 { - background: orangered; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-4 { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - box-shadow: none; - border-radius: 0; -} - -
-
-
-
-
-

- 1 -

-
-            {
-  "id": "main",
-  "debug": {
-    "animate": true,
-    "isFullscreen": true,
-    "position": {}
-  }
-}
-          
-
-
-
-
-

- 1 -

-
-            {
-  "debug": {
-    "animate": true,
-    "align": "right",
-    "hidden": true,
-    "position": {
-      "height": 748,
-      "left": 614,
-      "top": 0,
-      "width": 390
-    }
-  }
-}
-          
-
-
-
-
-
-`; - -exports[`Storyshots UI|Layout/Desktop page 1`] = ` -.emotion-0 { - z-index: 10; - position: absolute; - top: 0; - left: 0; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: rgba(0,0,0,.1); - overflow: hidden; - -webkit-transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - transition: color 0.2s linear,background-position 0.2s linear,background-size 0.2s linear,background 0.2s linear; - cursor: col-resize; - height: 100%; - width: 10px; - margin-left: 0; - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 50px 100%; - background-position: 10px 50%; - background-repeat: no-repeat; -} - -.emotion-0:hover { - color: #1EA7FD; -} - -.emotion-0:hover { - background-image: radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%); - background-size: 50px 100%; - background-position: 0 50%; - background-repeat: no-repeat; -} - -.emotion-2 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-1 { - background: hotpink; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-9 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - z-index: 9; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-8 { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: #FFFFFF; - border-radius: 4px; - overflow: hidden; - box-shadow: 0 1px 5px 0 rgba(0,0,0,0.1); -} - -.emotion-3 { - background: deepskyblue; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-5 { - background: orangered; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-4 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 0; - z-index: 9; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-6 { - position: absolute; - box-sizing: border-box; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 0; - border-left: 1px solid rgba(0,0,0,.1); - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,-webkit-transform 0.1s ease-out; - -webkit-transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; - transition: width 0.1s ease-out,height 0.1s ease-out,top 0.1s ease-out,left 0.1s ease-out,background 0.1s ease-out,opacity 0.1s ease-out,transform 0.1s ease-out; -} - -.emotion-7 { - background: cyan; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -
-
-
-
-

- 1 -

-
-        {
-  "debug": {
-    "animate": true,
-    "hidden": false,
-    "position": {
-      "height": 768,
-      "left": 0,
-      "top": 0,
-      "width": 210
-    }
-  }
-}
-      
-
-
-
-
- - -
-

- 1 -

-
-          {}
-        
-
-
-
-
-`; - -exports[`Storyshots UI|Layout/Mobile initial 0 1`] = ` -.emotion-8 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: inherit; - border-bottom-color: transparent; -} - -.emotion-8:empty { - display: none; -} - -.emotion-8:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-7 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: #1EA7FD; - border-bottom-color: #1EA7FD; -} - -.emotion-7:empty { - display: none; -} - -.emotion-7:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-0 { - background: hotpink; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-2 { - background: deepskyblue; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-4 { - background: orangered; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-11 { - position: fixed; - left: 0; - top: 0; - width: 100vw; - height: 100vh; - overflow: hidden; -} - -.emotion-6 { - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: calc(100% - 40px); -} - -.emotion-1 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 80vw; - -webkit-transform: translateX(-80vw); - -ms-transform: translateX(-80vw); - transform: translateX(-80vw); - left: 0; - -webkit-transform: translateX(-0px); - -ms-transform: translateX(-0px); - transform: translateX(-0px); -} - -.emotion-1:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-1:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -.emotion-3 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 100%; - -webkit-transform: translateX(0) scale(1); - -ms-transform: translateX(0) scale(1); - transform: translateX(0) scale(1); - left: 0; - -webkit-transform: translateX(40vw) translateY(-42.5vh) translateY(40px) scale(0.2); - -ms-transform: translateX(40vw) translateY(-42.5vh) translateY(40px) scale(0.2); - transform: translateX(40vw) translateY(-42.5vh) translateY(40px) scale(0.2); -} - -.emotion-3:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-3:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -.emotion-5 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 80vw; - -webkit-transform: translateX(80vw); - -ms-transform: translateX(80vw); - transform: translateX(80vw); - right: 0; -} - -.emotion-5:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-5:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -.emotion-10 { - position: fixed; - bottom: 0; - left: 0; - width: 100vw; - height: 40px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - box-shadow: 0 1px 5px 0 rgba(0,0,0,0.1); - background: #FFFFFF; -} - -.emotion-10 > * { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; -} - -
-
-
-
-

- 1 -

-
-          {}
-        
-
-
-
-
-
-
-

- 1 -

-
-              {
-  "id": "main",
-  "viewMode": "story",
-  "debug": {
-    "initialActive": 0
-  }
-}
-            
-
-
-
-
-
-
-

- 1 -

-
-          {
-  "hidden": false
-}
-        
-
-
-
- -
-`; - -exports[`Storyshots UI|Layout/Mobile initial 1 1`] = ` -.emotion-7 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: inherit; - border-bottom-color: transparent; -} - -.emotion-7:empty { - display: none; -} - -.emotion-7:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-8 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: #1EA7FD; - border-bottom-color: #1EA7FD; -} - -.emotion-8:empty { - display: none; -} - -.emotion-8:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-0 { - background: hotpink; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-2 { - background: deepskyblue; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-4 { - background: orangered; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-11 { - position: fixed; - left: 0; - top: 0; - width: 100vw; - height: 100vh; - overflow: hidden; -} - -.emotion-6 { - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: calc(100% - 40px); -} - -.emotion-5 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 80vw; - -webkit-transform: translateX(80vw); - -ms-transform: translateX(80vw); - transform: translateX(80vw); - right: 0; -} - -.emotion-5:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-5:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -.emotion-10 { - position: fixed; - bottom: 0; - left: 0; - width: 100vw; - height: 40px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - box-shadow: 0 1px 5px 0 rgba(0,0,0,0.1); - background: #FFFFFF; -} - -.emotion-10 > * { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; -} - -.emotion-1 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 80vw; - -webkit-transform: translateX(-80vw); - -ms-transform: translateX(-80vw); - transform: translateX(-80vw); - left: 0; -} - -.emotion-1:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-1:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -.emotion-3 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 100%; - -webkit-transform: translateX(0) scale(1); - -ms-transform: translateX(0) scale(1); - transform: translateX(0) scale(1); - left: 0; -} - -.emotion-3:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-3:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -
-
-
-
-

- 1 -

-
-          {}
-        
-
-
-
-
-
-
-

- 1 -

-
-              {
-  "id": "main",
-  "viewMode": "story",
-  "debug": {
-    "initialActive": 1
-  }
-}
-            
-
-
-
-
-
-
-

- 1 -

-
-          {
-  "hidden": false
-}
-        
-
-
-
- -
-`; - -exports[`Storyshots UI|Layout/Mobile initial 2 1`] = ` -.emotion-7 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: inherit; - border-bottom-color: transparent; -} - -.emotion-7:empty { - display: none; -} - -.emotion-7:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-9 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: #1EA7FD; - border-bottom-color: #1EA7FD; -} - -.emotion-9:empty { - display: none; -} - -.emotion-9:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-0 { - background: hotpink; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-2 { - background: deepskyblue; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-4 { - background: orangered; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-11 { - position: fixed; - left: 0; - top: 0; - width: 100vw; - height: 100vh; - overflow: hidden; -} - -.emotion-6 { - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: calc(100% - 40px); -} - -.emotion-10 { - position: fixed; - bottom: 0; - left: 0; - width: 100vw; - height: 40px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - box-shadow: 0 1px 5px 0 rgba(0,0,0,0.1); - background: #FFFFFF; -} - -.emotion-10 > * { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; -} - -.emotion-1 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 80vw; - -webkit-transform: translateX(-80vw); - -ms-transform: translateX(-80vw); - transform: translateX(-80vw); - left: 0; -} - -.emotion-1:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-1:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -.emotion-3 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 100%; - -webkit-transform: translateX(0) scale(1); - -ms-transform: translateX(0) scale(1); - transform: translateX(0) scale(1); - left: 0; - -webkit-transform: translateX(-40vw) translateY(-42.5vh) translateY(40px) scale(0.2); - -ms-transform: translateX(-40vw) translateY(-42.5vh) translateY(40px) scale(0.2); - transform: translateX(-40vw) translateY(-42.5vh) translateY(40px) scale(0.2); -} - -.emotion-3:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-3:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -.emotion-5 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 80vw; - -webkit-transform: translateX(80vw); - -ms-transform: translateX(80vw); - transform: translateX(80vw); - right: 0; - -webkit-transform: translateX(0px); - -ms-transform: translateX(0px); - transform: translateX(0px); -} - -.emotion-5:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-5:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -
-
-
-
-

- 1 -

-
-          {}
-        
-
-
-
-
-
-
-

- 1 -

-
-              {
-  "id": "main",
-  "viewMode": "story",
-  "debug": {
-    "initialActive": 2
-  }
-}
-            
-
-
-
-
-
-
-

- 1 -

-
-          {
-  "hidden": false
-}
-        
-
-
-
- -
-`; - -exports[`Storyshots UI|Layout/Mobile page 1`] = ` -.emotion-8 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: inherit; - border-bottom-color: transparent; -} - -.emotion-8:empty { - display: none; -} - -.emotion-8:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-9 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: #1EA7FD; - border-bottom-color: #1EA7FD; -} - -.emotion-9:empty { - display: none; -} - -.emotion-9:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-0 { - background: hotpink; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-2 { - background: deepskyblue; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-5 { - background: orangered; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-3 { - background: cyan; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - overflow: hidden; -} - -.emotion-12 { - position: fixed; - left: 0; - top: 0; - width: 100vw; - height: 100vh; - overflow: hidden; -} - -.emotion-7 { - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: calc(100% - 40px); -} - -.emotion-6 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 80vw; - -webkit-transform: translateX(80vw); - -ms-transform: translateX(80vw); - transform: translateX(80vw); - right: 0; -} - -.emotion-6:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-6:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -.emotion-11 { - position: fixed; - bottom: 0; - left: 0; - width: 100vw; - height: 40px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - box-shadow: 0 1px 5px 0 rgba(0,0,0,0.1); - background: #FFFFFF; -} - -.emotion-11 > * { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; -} - -.emotion-1 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 80vw; - -webkit-transform: translateX(-80vw); - -ms-transform: translateX(-80vw); - transform: translateX(-80vw); - left: 0; -} - -.emotion-1:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-1:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -.emotion-4 { - -webkit-transition: -webkit-transform .2s ease; - -webkit-transition: transform .2s ease; - transition: transform .2s ease; - position: absolute; - top: 0; - height: 100%; - overflow: auto; - background: #FFFFFF; - width: 100%; - -webkit-transform: translateX(0) scale(1); - -ms-transform: translateX(0) scale(1); - transform: translateX(0) scale(1); - left: 0; -} - -.emotion-4:nth-of-type(1) { - border-right: 1px solid rgba(0,0,0,.1); -} - -.emotion-4:nth-of-type(3) { - border-left: 1px solid rgba(0,0,0,.1); -} - -
-
-
-
-

- 1 -

-
-          {}
-        
-
-
-
-
-
-
-

- 1 -

-
-              {
-  "id": "main",
-  "viewMode": "settings",
-  "debug": {
-    "initialActive": 1
-  }
-}
-            
-
-
-
-

- 1 -

-
-            {}
-          
-
-
-
-
-
-

- 1 -

-
-          {
-  "hidden": false
-}
-        
-
-
-
- -
-`; diff --git a/lib/ui/src/components/notifications/item.stories.js b/lib/ui/src/components/notifications/item.stories.js index f3a90bd5da12..d4901c14969a 100644 --- a/lib/ui/src/components/notifications/item.stories.js +++ b/lib/ui/src/components/notifications/item.stories.js @@ -6,24 +6,24 @@ export default { component: NotificationItem, title: 'UI|Notifications/Item', decorators: [storyFn =>
{storyFn()}
], + excludeStories: /.*Data$/, }; -function buildExample(notification) { - const story = () => ; - story.storyData = { notification }; - return story; -} - -export const simple = buildExample({ +export const simpleData = { content: '🎉 Storybook is cool!', -}); +}; -export const longText = buildExample({ +export const longData = { content: '🎉 This is a long message that extends over two lines!', -}); +}; -export const withLink = buildExample({ - ...simple.storyData.notification, +export const linkData = { content: '🎉 Storybook X.X is available! Download now »', link: '/some/path', -}); +}; + +export const simple = () => ; + +export const longText = () => ; + +export const withLink = () => ; diff --git a/lib/ui/src/components/notifications/notifications.stories.js b/lib/ui/src/components/notifications/notifications.stories.js index 9c77ae15349c..99037e165683 100644 --- a/lib/ui/src/components/notifications/notifications.stories.js +++ b/lib/ui/src/components/notifications/notifications.stories.js @@ -1,31 +1,29 @@ import React from 'react'; import NotificationList from './notifications'; -import * as NotificationItemStories from './item.stories'; +import itemMeta, * as itemStories from './item.stories'; export default { component: NotificationList, title: 'UI|Notifications/Notifications', decorators: [storyFn =>
{storyFn()}
], + excludeStories: /.*Data$/, }; -const notifications = Object.values(NotificationItemStories) - .filter(s => s.storyData) - .map(({ storyData: { notification } }, index) => ({ - ...notification, - id: index.toString(), - })); +const items = Array.from(Object.entries(itemStories)) + .filter(entry => itemMeta.excludeStories.exec(entry[0])) + .map(entry => entry[1]); -export const single = () => ; -single.storyData = { notifications: notifications.slice(0, 1) }; +export const singleData = [items[0]]; +export const allData = items; -export const all = () => ; -all.storyData = { notifications }; +export const single = () => ; + +export const all = () => ; export const placement = () => ( ); -all.storyData = { notifications }; diff --git a/lib/ui/src/components/panel/__snapshots__/panel.stories.storyshot b/lib/ui/src/components/panel/__snapshots__/panel.stories.storyshot deleted file mode 100644 index e47ade3cbf0d..000000000000 --- a/lib/ui/src/components/panel/__snapshots__/panel.stories.storyshot +++ /dev/null @@ -1,394 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots UI|Panel default 1`] = ` -.emotion-14 { - width: 100%; - height: 100%; - box-sizing: border-box; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; -} - -.emotion-12 { - overflow-y: hidden; - overflow-x: auto; - width: 100%; - color: #999999; - width: 100%; - height: 40px; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - box-shadow: rgba(0,0,0,.1) 0 -1px 0 0 inset; - background: #FFFFFF; -} - -.emotion-11 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - position: relative; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - height: 40px; -} - -.emotion-3 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - white-space: nowrap; - -webkit-flex-basis: auto; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - -.emotion-3 > * { - margin-left: 15px; -} - -.emotion-2 { - overflow: hidden; -} - -.emotion-2:first-of-type { - margin-left: 0; -} - -.emotion-0 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: inherit; - border-bottom-color: transparent; -} - -.emotion-0:empty { - display: none; -} - -.emotion-0:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-1 { - white-space: normal; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - overflow: hidden; - vertical-align: top; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - padding: 0 15px; - text-transform: capitalize; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; - height: 40px; - line-height: 12px; - cursor: pointer; - background: transparent; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - font-weight: bold; - font-size: 13px; - color: #1EA7FD; - border-bottom-color: #1EA7FD; -} - -.emotion-1:empty { - display: none; -} - -.emotion-1:focus { - outline: 0 none; - border-bottom-color: #1EA7FD; -} - -.emotion-10 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - white-space: nowrap; - -webkit-flex-basis: auto; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - margin-left: 30px; -} - -.emotion-10 > * { - margin-right: 15px; -} - -.emotion-6 { - height: 40px; - background: none; - color: inherit; - padding: 0; - cursor: pointer; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; -} - -.emotion-6:hover, -.emotion-6:focus { - outline: 0 none; - color: #1EA7FD; -} - -.emotion-6 > svg { - width: 15px; -} - -@media (max-width:599px) { - .emotion-6 { - display: none; - } -} - -.emotion-5 { - shape-rendering: inherit; - -webkit-transform: translate3d(0,0,0); - -ms-transform: translate3d(0,0,0); - transform: translate3d(0,0,0); - display: block; -} - -.emotion-4 { - fill: currentColor; -} - -.emotion-13 { - display: block; - position: relative; - font-size: 13px; - height: calc(100% - 40px); - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 40px; - overflow: auto; -} - -.emotion-13 > *:first-child { - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - height: 100%; - overflow: auto; -} - -
-
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- TEST 2 -
-
-
-`; - -exports[`Storyshots UI|Panel no panels 1`] = ` -.emotion-1 { - padding: 30px; - text-align: center; - color: #333333; - font-size: 13px; -} - -.emotion-0 { - font-weight: 700; -} - -
-
- Nothing found -
-
-`; diff --git a/lib/ui/src/components/preview/__snapshots__/preview.stories.storyshot b/lib/ui/src/components/preview/__snapshots__/preview.stories.storyshot deleted file mode 100644 index 728662d428f4..000000000000 --- a/lib/ui/src/components/preview/__snapshots__/preview.stories.storyshot +++ /dev/null @@ -1,800 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots UI|Preview/Preview no tabs 1`] = ` -Array [ - .emotion-25 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - position: relative; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - height: 40px; -} - -.emotion-13 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - white-space: nowrap; - -webkit-flex-basis: auto; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - -.emotion-13 > * { - margin-left: 15px; -} - -.emotion-24 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - white-space: nowrap; - -webkit-flex-basis: auto; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - margin-left: 30px; -} - -.emotion-24 > * { - margin-right: 15px; -} - -.emotion-1 { - shape-rendering: inherit; - -webkit-transform: translate3d(0,0,0); - -ms-transform: translate3d(0,0,0); - transform: translate3d(0,0,0); - display: block; -} - -.emotion-0 { - fill: currentColor; -} - -.emotion-26 { - overflow-y: hidden; - overflow-x: auto; - width: 100%; - color: #999999; - width: 100%; - height: 40px; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - box-shadow: rgba(0,0,0,.1) 0 -1px 0 0 inset; - background: #FFFFFF; - position: absolute; - left: 0; - right: 0; - top: 0; - -webkit-transition: -webkit-transform .2s linear; - -webkit-transition: transform .2s linear; - transition: transform .2s linear; - -webkit-tranform: translateY(0px); - tranform: translateY(0px); -} - -.emotion-2 { - height: 40px; - background: none; - color: inherit; - padding: 0; - cursor: pointer; - border: 0 solid transparent; - border-top: 3px solid transparent; - border-bottom: 3px solid transparent; - -webkit-transition: color 0.2s linear,border-bottom-color 0.2s linear; - transition: color 0.2s linear,border-bottom-color 0.2s linear; -} - -.emotion-2:hover, -.emotion-2:focus { - outline: 0 none; - color: #1EA7FD; -} - -.emotion-2 > svg { - width: 15px; -} - -.emotion-9 { - width: 1px; - height: 24px; - background: rgba(0,0,0,.1); - margin-top: 8px; -} - -.emotion-9 + .emotion-9 { - display: none; -} - -@media (max-width:599px) { - .emotion-17 { - display: none; - } -} - -
-
-
-
-
-
-
-
-
-
-
- - - - - -
-
- - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
, - .emotion-1 { - position: absolute; - overflow: auto; - left: 0; - right: 0; - bottom: 0; - top: 40px; - z-index: 3; - -webkit-transition: all 0.1s linear; - transition: all 0.1s linear; - height: calc(100% - 40px); - background: transparent; -} - -.emotion-0 { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - -webkit-transition: background .1s linear; - transition: background .1s linear; - background: #FFFFFF; -} - -.emotion-0 iframe { - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - border: 0 none; -} - -
-
-
-