diff --git a/.yarn/cache/@babel-helper-annotate-as-pure-npm-7.10.4-61cb45f47d-535cdf631e.zip b/.yarn/cache/@babel-helper-annotate-as-pure-npm-7.10.4-61cb45f47d-535cdf631e.zip new file mode 100644 index 000000000000..ee5458d18779 Binary files /dev/null and b/.yarn/cache/@babel-helper-annotate-as-pure-npm-7.10.4-61cb45f47d-535cdf631e.zip differ diff --git a/.yarn/cache/@babel-helper-annotate-as-pure-npm-7.12.10-d08a7ae127-d237f38b6a.zip b/.yarn/cache/@babel-helper-annotate-as-pure-npm-7.12.10-d08a7ae127-d237f38b6a.zip deleted file mode 100644 index 4924ba56a53e..000000000000 Binary files a/.yarn/cache/@babel-helper-annotate-as-pure-npm-7.12.10-d08a7ae127-d237f38b6a.zip and /dev/null differ diff --git a/.yarn/cache/@babel-helper-builder-react-jsx-experimental-npm-7.10.5-a2db210bb1-9505bc9d36.zip b/.yarn/cache/@babel-helper-builder-react-jsx-experimental-npm-7.10.5-a2db210bb1-9505bc9d36.zip new file mode 100644 index 000000000000..19d3febd3333 Binary files /dev/null and b/.yarn/cache/@babel-helper-builder-react-jsx-experimental-npm-7.10.5-a2db210bb1-9505bc9d36.zip differ diff --git a/.yarn/cache/@babel-helper-builder-react-jsx-npm-7.10.4-ea8d3e69ef-f14f786b5e.zip b/.yarn/cache/@babel-helper-builder-react-jsx-npm-7.10.4-ea8d3e69ef-f14f786b5e.zip new file mode 100644 index 000000000000..41f724454bbb Binary files /dev/null and b/.yarn/cache/@babel-helper-builder-react-jsx-npm-7.10.4-ea8d3e69ef-f14f786b5e.zip differ diff --git a/.yarn/cache/@babel-helper-module-imports-npm-7.12.5-76d7bcabe9-7f63b03496.zip b/.yarn/cache/@babel-helper-module-imports-npm-7.10.4-f55d85af2c-84d03b58e7.zip similarity index 68% rename from .yarn/cache/@babel-helper-module-imports-npm-7.12.5-76d7bcabe9-7f63b03496.zip rename to .yarn/cache/@babel-helper-module-imports-npm-7.10.4-f55d85af2c-84d03b58e7.zip index 5aeee084afcd..3f9f671a5522 100644 Binary files a/.yarn/cache/@babel-helper-module-imports-npm-7.12.5-76d7bcabe9-7f63b03496.zip and b/.yarn/cache/@babel-helper-module-imports-npm-7.10.4-f55d85af2c-84d03b58e7.zip differ diff --git a/.yarn/cache/@babel-helper-validator-identifier-npm-7.12.11-e33455648e-18de432203.zip b/.yarn/cache/@babel-helper-validator-identifier-npm-7.10.4-0689d787fa-25098ef842.zip similarity index 70% rename from .yarn/cache/@babel-helper-validator-identifier-npm-7.12.11-e33455648e-18de432203.zip rename to .yarn/cache/@babel-helper-validator-identifier-npm-7.10.4-0689d787fa-25098ef842.zip index c14907883274..a20680af7b61 100644 Binary files a/.yarn/cache/@babel-helper-validator-identifier-npm-7.12.11-e33455648e-18de432203.zip and b/.yarn/cache/@babel-helper-validator-identifier-npm-7.10.4-0689d787fa-25098ef842.zip differ diff --git a/.yarn/cache/@babel-plugin-syntax-jsx-npm-7.12.1-fec38141bc-2f0314608b.zip b/.yarn/cache/@babel-plugin-syntax-jsx-npm-7.12.1-fec38141bc-2f0314608b.zip deleted file mode 100644 index 5caada5b635f..000000000000 Binary files a/.yarn/cache/@babel-plugin-syntax-jsx-npm-7.12.1-fec38141bc-2f0314608b.zip and /dev/null differ diff --git a/.yarn/cache/@babel-plugin-transform-react-display-name-npm-7.12.1-f87cd6aece-88d6819169.zip b/.yarn/cache/@babel-plugin-transform-react-display-name-npm-7.12.1-f87cd6aece-88d6819169.zip deleted file mode 100644 index c3ff2754ca0a..000000000000 Binary files a/.yarn/cache/@babel-plugin-transform-react-display-name-npm-7.12.1-f87cd6aece-88d6819169.zip and /dev/null differ diff --git a/.yarn/cache/@babel-plugin-transform-react-display-name-npm-7.8.3-ed8fb17b9c-9e25364d95.zip b/.yarn/cache/@babel-plugin-transform-react-display-name-npm-7.8.3-ed8fb17b9c-9e25364d95.zip new file mode 100644 index 000000000000..3346aa26eec7 Binary files /dev/null and b/.yarn/cache/@babel-plugin-transform-react-display-name-npm-7.8.3-ed8fb17b9c-9e25364d95.zip differ diff --git a/.yarn/cache/@babel-plugin-transform-react-jsx-development-npm-7.12.12-5bfa52a758-c9d320ba13.zip b/.yarn/cache/@babel-plugin-transform-react-jsx-development-npm-7.12.12-5bfa52a758-c9d320ba13.zip deleted file mode 100644 index 25092bee2aa5..000000000000 Binary files a/.yarn/cache/@babel-plugin-transform-react-jsx-development-npm-7.12.12-5bfa52a758-c9d320ba13.zip and /dev/null differ diff --git a/.yarn/cache/@babel-plugin-transform-react-jsx-development-npm-7.9.0-8c5f053e35-33cc1dd4df.zip b/.yarn/cache/@babel-plugin-transform-react-jsx-development-npm-7.9.0-8c5f053e35-33cc1dd4df.zip new file mode 100644 index 000000000000..81cf66e704f4 Binary files /dev/null and b/.yarn/cache/@babel-plugin-transform-react-jsx-development-npm-7.9.0-8c5f053e35-33cc1dd4df.zip differ diff --git a/.yarn/cache/@babel-plugin-transform-react-jsx-npm-7.10.4-1a0658d38c-0fb7d136c8.zip b/.yarn/cache/@babel-plugin-transform-react-jsx-npm-7.10.4-1a0658d38c-0fb7d136c8.zip new file mode 100644 index 000000000000..bf85fd53a49a Binary files /dev/null and b/.yarn/cache/@babel-plugin-transform-react-jsx-npm-7.10.4-1a0658d38c-0fb7d136c8.zip differ diff --git a/.yarn/cache/@babel-plugin-transform-react-jsx-npm-7.12.12-8e48a3da79-e276a667c2.zip b/.yarn/cache/@babel-plugin-transform-react-jsx-npm-7.12.12-8e48a3da79-e276a667c2.zip deleted file mode 100644 index 09569deaaa33..000000000000 Binary files a/.yarn/cache/@babel-plugin-transform-react-jsx-npm-7.12.12-8e48a3da79-e276a667c2.zip and /dev/null differ diff --git a/.yarn/cache/@babel-plugin-transform-react-jsx-self-npm-7.9.0-c4e5d656a1-74db297c31.zip b/.yarn/cache/@babel-plugin-transform-react-jsx-self-npm-7.9.0-c4e5d656a1-74db297c31.zip new file mode 100644 index 000000000000..8ea56bf42553 Binary files /dev/null and b/.yarn/cache/@babel-plugin-transform-react-jsx-self-npm-7.9.0-c4e5d656a1-74db297c31.zip differ diff --git a/.yarn/cache/@babel-plugin-transform-react-jsx-source-npm-7.10.0-f724ea0344-8ae706eee0.zip b/.yarn/cache/@babel-plugin-transform-react-jsx-source-npm-7.10.0-f724ea0344-8ae706eee0.zip new file mode 100644 index 000000000000..8e27e0bd8b07 Binary files /dev/null and b/.yarn/cache/@babel-plugin-transform-react-jsx-source-npm-7.10.0-f724ea0344-8ae706eee0.zip differ diff --git a/.yarn/cache/@babel-plugin-transform-react-pure-annotations-npm-7.10.0-83ccb4ad7b-538278ac3f.zip b/.yarn/cache/@babel-plugin-transform-react-pure-annotations-npm-7.10.0-83ccb4ad7b-538278ac3f.zip new file mode 100644 index 000000000000..f31675bd005d Binary files /dev/null and b/.yarn/cache/@babel-plugin-transform-react-pure-annotations-npm-7.10.0-83ccb4ad7b-538278ac3f.zip differ diff --git a/.yarn/cache/@babel-plugin-transform-react-pure-annotations-npm-7.12.1-6f59dfc11e-b1984954da.zip b/.yarn/cache/@babel-plugin-transform-react-pure-annotations-npm-7.12.1-6f59dfc11e-b1984954da.zip deleted file mode 100644 index b3c9c59e736c..000000000000 Binary files a/.yarn/cache/@babel-plugin-transform-react-pure-annotations-npm-7.12.1-6f59dfc11e-b1984954da.zip and /dev/null differ diff --git a/.yarn/cache/@babel-preset-react-npm-7.10.0-8329b2fa60-3f9a18b24e.zip b/.yarn/cache/@babel-preset-react-npm-7.10.0-8329b2fa60-3f9a18b24e.zip new file mode 100644 index 000000000000..3b203d6a365f Binary files /dev/null and b/.yarn/cache/@babel-preset-react-npm-7.10.0-8329b2fa60-3f9a18b24e.zip differ diff --git a/.yarn/cache/@babel-preset-react-npm-7.12.10-03d6198c7b-3afd3d0191.zip b/.yarn/cache/@babel-preset-react-npm-7.12.10-03d6198c7b-3afd3d0191.zip deleted file mode 100644 index b6cc9e71bfa3..000000000000 Binary files a/.yarn/cache/@babel-preset-react-npm-7.12.10-03d6198c7b-3afd3d0191.zip and /dev/null differ diff --git a/.yarn/cache/@babel-types-npm-7.12.12-091a83fdd2-928554396c.zip b/.yarn/cache/@babel-types-npm-7.12.12-091a83fdd2-928554396c.zip deleted file mode 100644 index c9b65d3fbd49..000000000000 Binary files a/.yarn/cache/@babel-types-npm-7.12.12-091a83fdd2-928554396c.zip and /dev/null differ diff --git a/.yarn/cache/@babel-types-npm-7.12.7-e698f7394b-1536350797.zip b/.yarn/cache/@babel-types-npm-7.12.7-e698f7394b-1536350797.zip new file mode 100644 index 000000000000..1d7a07835bb6 Binary files /dev/null and b/.yarn/cache/@babel-types-npm-7.12.7-e698f7394b-1536350797.zip differ diff --git a/.yarn/offline-mirror/@babel-helper-builder-react-jsx-experimental-7.11.5.tgz b/.yarn/offline-mirror/@babel-helper-builder-react-jsx-experimental-7.11.5.tgz deleted file mode 100644 index 5b1b1ac167b6..000000000000 Binary files a/.yarn/offline-mirror/@babel-helper-builder-react-jsx-experimental-7.11.5.tgz and /dev/null differ diff --git a/.yarn/offline-mirror/@babel-plugin-transform-react-display-name-7.10.4.tgz b/.yarn/offline-mirror/@babel-plugin-transform-react-display-name-7.10.4.tgz deleted file mode 100644 index 283d2a410c40..000000000000 Binary files a/.yarn/offline-mirror/@babel-plugin-transform-react-display-name-7.10.4.tgz and /dev/null differ diff --git a/.yarn/offline-mirror/@babel-plugin-transform-react-jsx-development-7.11.5.tgz b/.yarn/offline-mirror/@babel-plugin-transform-react-jsx-development-7.11.5.tgz deleted file mode 100644 index e05dbfb4cd75..000000000000 Binary files a/.yarn/offline-mirror/@babel-plugin-transform-react-jsx-development-7.11.5.tgz and /dev/null differ diff --git a/.yarn/offline-mirror/@babel-plugin-transform-react-jsx-self-7.10.4.tgz b/.yarn/offline-mirror/@babel-plugin-transform-react-jsx-self-7.10.4.tgz deleted file mode 100644 index 2903540ec26a..000000000000 Binary files a/.yarn/offline-mirror/@babel-plugin-transform-react-jsx-self-7.10.4.tgz and /dev/null differ diff --git a/.yarn/offline-mirror/@babel-plugin-transform-react-jsx-source-7.10.5.tgz b/.yarn/offline-mirror/@babel-plugin-transform-react-jsx-source-7.10.5.tgz deleted file mode 100644 index 03651a990a99..000000000000 Binary files a/.yarn/offline-mirror/@babel-plugin-transform-react-jsx-source-7.10.5.tgz and /dev/null differ diff --git a/.yarn/offline-mirror/@babel-plugin-transform-react-pure-annotations-7.10.4.tgz b/.yarn/offline-mirror/@babel-plugin-transform-react-pure-annotations-7.10.4.tgz deleted file mode 100644 index f77fe1b02e02..000000000000 Binary files a/.yarn/offline-mirror/@babel-plugin-transform-react-pure-annotations-7.10.4.tgz and /dev/null differ diff --git a/.yarn/offline-mirror/@babel-preset-react-7.10.4.tgz b/.yarn/offline-mirror/@babel-preset-react-7.10.4.tgz deleted file mode 100644 index 19757c5f32f5..000000000000 Binary files a/.yarn/offline-mirror/@babel-preset-react-7.10.4.tgz and /dev/null differ diff --git a/.yarn/offline-mirror/@babel-types-7.11.5.tgz b/.yarn/offline-mirror/@babel-types-7.11.5.tgz deleted file mode 100644 index 23eb4970df10..000000000000 Binary files a/.yarn/offline-mirror/@babel-types-7.11.5.tgz and /dev/null differ diff --git a/packages/react/.storybook/addon-carbon-theme/components/Panel.js b/packages/react/.storybook/addon-carbon-theme/components/Panel.js index c8dbc695a073..e89db7932508 100644 --- a/packages/react/.storybook/addon-carbon-theme/components/Panel.js +++ b/packages/react/.storybook/addon-carbon-theme/components/Panel.js @@ -8,7 +8,7 @@ import React, { useCallback, useState } from 'react'; import PropTypes from 'prop-types'; import { Form } from '@storybook/components'; -import { CARBON_TYPE_TOKEN } from '../shared'; +import { CARBON_CURRENT_THEME, CARBON_TYPE_TOKEN } from '../shared'; const typeTokenPairings = [ '12-16', @@ -36,6 +36,61 @@ const typeTokenDefaults = { 'productive-heading-04': '28-36', }; +/** + * Storybook add-on panel for Carbon theme switcher. + */ +export const CarbonThemesPanel = ({ api, active }) => { + const [currentTheme, setCurrentTheme] = useState('white'); + const handleChange = useCallback( + (event) => { + const { value } = event.target; + setCurrentTheme(value); + api.getChannel().emit(CARBON_CURRENT_THEME, value); + }, + [api] + ); + return ( + active && ( +
+ + + + + + + + +
+ ) + ); +}; + +CarbonThemesPanel.propTypes = { + /** + * The Storybook API object. + */ + api: PropTypes.shape({ + getChannel: PropTypes.func, + }).isRequired, + + /** + * `true` if this Storybook add-on panel is active. + */ + active: PropTypes.bool.isRequired, +}; + /** * Storybook add-on panel for Carbon type token switcher. */ diff --git a/packages/react/.storybook/addon-carbon-theme/register.js b/packages/react/.storybook/addon-carbon-theme/register.js index 17f66250ae2e..b32c0b36821c 100644 --- a/packages/react/.storybook/addon-carbon-theme/register.js +++ b/packages/react/.storybook/addon-carbon-theme/register.js @@ -7,10 +7,24 @@ import React from 'react'; import { addons, types } from '@storybook/addons'; -import { CarbonTypePanel } from './components/Panel'; -import { CARBON_TYPE_ADDON_ID, CARBON_TYPE_PANEL_ID } from './shared'; +import { CarbonThemesPanel, CarbonTypePanel } from './components/Panel'; +import { + CARBON_THEMES_ADDON_ID, + CARBON_THEME_PANEL_ID, + CARBON_TYPE_ADDON_ID, + CARBON_TYPE_PANEL_ID, +} from './shared'; if (process.env.CARBON_REACT_STORYBOOK_USE_CUSTOM_PROPERTIES === 'true') { + addons.register(CARBON_THEMES_ADDON_ID, (api) => { + addons.addPanel(CARBON_THEME_PANEL_ID, { + title: 'Carbon theme', + render: ({ active, key }) => ( + + ), + }); + }); + addons.register(CARBON_TYPE_ADDON_ID, (api) => { addons.addPanel(CARBON_TYPE_PANEL_ID, { title: 'Carbon type', diff --git a/packages/react/.storybook/addon-carbon-theme/shared.js b/packages/react/.storybook/addon-carbon-theme/shared.js index 03d1d3b6d9ff..0d4b0bcfacd8 100644 --- a/packages/react/.storybook/addon-carbon-theme/shared.js +++ b/packages/react/.storybook/addon-carbon-theme/shared.js @@ -5,6 +5,9 @@ * LICENSE file in the root directory of this source tree. */ +export const CARBON_THEMES_ADDON_ID = 'carbon-theme'; +export const CARBON_CURRENT_THEME = `${CARBON_THEMES_ADDON_ID}/current`; +export const CARBON_THEME_PANEL_ID = `${CARBON_THEMES_ADDON_ID}/panel`; export const CARBON_TYPE_ADDON_ID = 'carbon-type'; export const CARBON_TYPE_TOKEN = `${CARBON_TYPE_ADDON_ID}/type`; export const CARBON_TYPE_PANEL_ID = `${CARBON_TYPE_ADDON_ID}/panel`; diff --git a/packages/react/.storybook/main.js b/packages/react/.storybook/main.js index b70bc4edceb3..6136cf1d8106 100644 --- a/packages/react/.storybook/main.js +++ b/packages/react/.storybook/main.js @@ -7,16 +7,10 @@ 'use strict'; -const addons = [ - 'storybook-preset-carbon', - require.resolve('./addon-carbon-theme/register'), -]; - -if (process.env.CARBON_REACT_STORYBOOK_USE_CUSTOM_PROPERTIES === 'true') { - addons.push('@carbon/storybook-addon-theme/register'); -} - module.exports = { - addons, + addons: [ + 'storybook-preset-carbon', + require.resolve('./addon-carbon-theme/register'), + ], stories: ['../src/**/*-story.js', '../src/**/*.stories.mdx'], }; diff --git a/packages/react/.storybook/preview.js b/packages/react/.storybook/preview.js index 8ed96ff0d050..6e422b07eabd 100644 --- a/packages/react/.storybook/preview.js +++ b/packages/react/.storybook/preview.js @@ -10,8 +10,10 @@ import { addDecorator, addParameters } from '@storybook/react'; import addons from '@storybook/addons'; import { themes } from '@storybook/theming'; import { configureActions } from '@storybook/addon-actions'; -import { CARBON_TYPE_TOKEN } from './addon-carbon-theme/shared'; -import { withCarbonTheme } from '@carbon/storybook-addon-theme/react'; +import { + CARBON_CURRENT_THEME, + CARBON_TYPE_TOKEN, +} from './addon-carbon-theme/shared'; import Container from './Container'; import PackageInfo from './../package.json'; @@ -101,7 +103,10 @@ configureActions({ }); addDecorator((story) => ); -addDecorator(withCarbonTheme); + +addons.getChannel().on(CARBON_CURRENT_THEME, (theme) => { + document.documentElement.setAttribute('storybook-carbon-theme', theme); +}); addons.getChannel().on(CARBON_TYPE_TOKEN, ({ tokenName, tokenValue }) => { const root = document.documentElement; diff --git a/packages/react/package.json b/packages/react/package.json index f149bdb0c987..ecb62086f7c7 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -72,7 +72,6 @@ "@babel/plugin-transform-object-assign": "^7.7.4", "@babel/preset-env": "^7.10.0", "@babel/preset-react": "^7.10.0", - "@carbon/storybook-addon-theme": "0.1.0", "@carbon/test-utils": "^10.14.0", "@percy/storybook": "^3.3.1", "@rollup/plugin-babel": "^5.2.2", diff --git a/packages/storybook-addon-carbon-theme/.babelrc b/packages/storybook-addon-carbon-theme/.babelrc deleted file mode 100644 index 7dd5e9df2340..000000000000 --- a/packages/storybook-addon-carbon-theme/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["@babel/preset-react"] -} diff --git a/packages/storybook-addon-carbon-theme/README.md b/packages/storybook-addon-carbon-theme/README.md deleted file mode 100644 index 80ec85bb0728..000000000000 --- a/packages/storybook-addon-carbon-theme/README.md +++ /dev/null @@ -1,98 +0,0 @@ -# @carbon/storybook-addon-theme - -> Carbon theme switcher for Storybook - -## Getting started - -To install `@carbon/storybook-addon-theme` in your project, you will need to run -the following command using [npm](https://www.npmjs.com/): - -```bash -npm install -S @carbon/storybook-addon-theme -``` - -If you prefer [Yarn](https://yarnpkg.com/en/), use the following command -instead: - -```bash -yarn add @carbon/storybook-addon-theme -``` - -## Usage - -`.storybook/main.js`: - -```js -module.exports = { - addons: ['@carbon/storyboook-addon-theme'], -}; -``` - -Use with a feature flag switch is possible if you construct the addons array. - -```js -const addons = [ - /* other addons */ -]; - -if (process.env.CARBON_REACT_STORYBOOK_USE_CUSTOM_PROPERTIES === 'true') { - addons.push('@carbon/storybook-addon-theme'); -} - -module.exports = { - addons, - stories: ['../src/**/*-story.js', '../src/**/*.stories.mdx'], -}; -``` - -### Global Decorator - -```js -import { withCarbonTheme } from '@carbon/storybook-addon-theme'; // for React -// import { withCarbonTheme } from '@carbon/storybook-addon-theme/vue'; // for Vue -// for Angular -// . -// . -// . -addDecorator(withCarbonTheme); -// . -// . -// . -addParameters({ - // optional - carbonTheme: { - theme: 'g10', // optional default carbon theme - themes: ['g10', 'g90'], // optional carbonTheme filter - }, -}); -``` - -within your stories: - -```js -import { withCarbonTheme } from '@carbon/storybook-addon-theme'; // for React -// import { withCarbonTheme } from '@carbon/storybook-addon-theme/vue'; // for Vue -// for Angular -// . -// . -// . -storiesOf('Component', module) - .addDecorator(withCarbonTheme) - .add(() => story, { - carbonTheme: { - // optional - theme: 'g10', // optional default carbon theme - themes: ['g10', 'g90'], // optional carbonTheme filter (additive to global) - }, - }); -``` - -## 🙌 Contributing - -We're always looking for contributors to help us fix bugs, build new features, -or help us improve the project documentation. If you're interested, definitely -check out our [Contributing Guide](/.github/CONTRIBUTING.md)! 👀 - -## 📝 License - -Licensed under the [Apache 2.0 License](/LICENSE). diff --git a/packages/storybook-addon-carbon-theme/package.json b/packages/storybook-addon-carbon-theme/package.json deleted file mode 100644 index 45c2439d71dd..000000000000 --- a/packages/storybook-addon-carbon-theme/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "@carbon/storybook-addon-theme", - "description": "Carbon theme switcher for Storybook", - "version": "0.1.0", - "license": "Apache-2.0", - "main": "dist/react.js", - "repository": { - "type": "git", - "url": "https://github.com/carbon-design-system/carbon.git", - "directory": "packages/storybook-addon-carbon-theme" - }, - "bugs": "https://github.com/carbon-design-system/carbon/issues", - "homepage": "https://github.com/storybookjs/storybook#readme", - "files": [ - "dist/**/*", - "README.md", - "*.js" - ], - "keywords": [ - "addon", - "carbon", - "theme", - "storybook", - "ibm", - "carbon-design-system", - "components", - "react" - ], - "publishConfig": { - "access": "public" - }, - "scripts": { - "clean": "rimraf dist", - "build": "npm run clean && babel src --out-dir dist -s", - "prepare": "npm run build" - }, - "peerDependencies": { - "react": "*", - "vue": "*" - }, - "dependencies": { - "@storybook/addons": "5.3.19", - "@storybook/api": "5.3.19", - "@storybook/client-api": "5.3.19", - "@storybook/client-logger": "5.3.19", - "@storybook/components": "5.3.19", - "@storybook/core-events": "5.3.19", - "@storybook/theming": "5.3.19", - "core-js": "^3.0.1", - "global": "^4.3.2" - }, - "devDependencies": { - "@babel/cli": "^7.10.0", - "@babel/core": "^7.10.0", - "@babel/preset-react": "^7.10.4" - } -} diff --git a/packages/storybook-addon-carbon-theme/react.js b/packages/storybook-addon-carbon-theme/react.js deleted file mode 100644 index 732613146821..000000000000 --- a/packages/storybook-addon-carbon-theme/react.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright IBM Corp. 2016, 2018 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ -module.exports = require('./dist/react'); diff --git a/packages/storybook-addon-carbon-theme/register.js b/packages/storybook-addon-carbon-theme/register.js deleted file mode 100644 index 25f65b255088..000000000000 --- a/packages/storybook-addon-carbon-theme/register.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright IBM Corp. 2016, 2018 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ -require('./dist/register'); diff --git a/packages/storybook-addon-carbon-theme/src/components/Panel.js b/packages/storybook-addon-carbon-theme/src/components/Panel.js deleted file mode 100644 index 8b8e1d5fb3bd..000000000000 --- a/packages/storybook-addon-carbon-theme/src/components/Panel.js +++ /dev/null @@ -1,95 +0,0 @@ -/* eslint-disable react/prop-types */ -/** - * Copyright IBM Corp. 2016, 2018 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -import React, { useEffect, useState } from 'react'; -import PropTypes from 'prop-types'; -import { Form } from '@storybook/components'; -import { SET_STORIES, STORY_CHANGED } from '@storybook/core-events'; - -import { - CARBON_CURRENT_THEME, - CARBON_THEMES, - CARBON_THEME_DEFAULT, - CARBON_THEME_PARAM, - mergeParams, -} from '../shared'; - -/** - * Storybook add-on panel for Carbon theme switcher. - */ -export const CarbonThemesPanel = ({ api, active, channel }) => { - const [theme, setTheme] = useState(CARBON_THEME_DEFAULT); - const [themes, setThemes] = useState(CARBON_THEMES); - - useEffect(() => { - // on mount sort out initial state - const handleStoryChange = () => { - const storyData = api.getCurrentStoryData(); - - let params = storyData - ? storyData.parameters - ? storyData.parameters[CARBON_THEME_PARAM] - : {} - : {}; - - params = mergeParams(params); - - setTheme(params.theme); - setThemes(params.themes); - }; - - api.on(SET_STORIES, handleStoryChange); - api.on(STORY_CHANGED, handleStoryChange); - - return () => { - api.off(SET_STORIES, handleStoryChange); - api.off(STORY_CHANGED, handleStoryChange); - }; - }, [api]); - - useEffect(() => { - channel.emit(CARBON_CURRENT_THEME, theme); - }, [theme, channel]); - - if (!active) { - return null; - } - - return ( -
- - setTheme(ev.target.value)} - size="flex"> - {themes.map((option) => ( - - ))} - - -
- ); -}; - -CarbonThemesPanel.propTypes = { - /** - * `true` if this Storybook add-on panel is active. - */ - active: PropTypes.bool.isRequired, - /** - * The Storybook API object. - */ - api: PropTypes.any, - /** - * channel - */ - channel: PropTypes.object, -}; diff --git a/packages/storybook-addon-carbon-theme/src/react.js b/packages/storybook-addon-carbon-theme/src/react.js deleted file mode 100644 index b6c5158e0a5f..000000000000 --- a/packages/storybook-addon-carbon-theme/src/react.js +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Copyright IBM Corp. 2016, 2018 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ -import { useEffect, useState } from 'react'; -import addons, { makeDecorator } from '@storybook/addons'; -import { - CARBON_CURRENT_THEME, - CARBON_THEME_PARAM, - WITH_CARBON_THEME, -} from './shared'; - -const Wrapper = (getStory, context, parameters) => { - const channel = addons.getChannel(); - const [carbonTheme, setCarbonTheme] = useState(undefined); - - const handleCarbonCurrentTheme = (theme) => { - document.documentElement.setAttribute('storybook-carbon-theme', theme); - setCarbonTheme(theme); - }; - - useEffect(() => { - channel.on(CARBON_CURRENT_THEME, handleCarbonCurrentTheme); - setCarbonTheme(carbonTheme || parameters.value); - - return () => { - channel.removeListener(CARBON_CURRENT_THEME, handleCarbonCurrentTheme); - }; // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); - - return getStory(context); -}; - -export const withCarbonTheme = makeDecorator({ - name: WITH_CARBON_THEME, - parameterName: CARBON_THEME_PARAM, - wrapper: Wrapper, -}); diff --git a/packages/storybook-addon-carbon-theme/src/register.js b/packages/storybook-addon-carbon-theme/src/register.js deleted file mode 100644 index 34baf8728084..000000000000 --- a/packages/storybook-addon-carbon-theme/src/register.js +++ /dev/null @@ -1,23 +0,0 @@ -/* eslint-disable react/prop-types */ -/* eslint-disable react/display-name */ -/** - * Copyright IBM Corp. 2016, 2018 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -import React from 'react'; -import { addons } from '@storybook/addons'; -import { CarbonThemesPanel /*, CarbonTypePanel */ } from './components/Panel'; -import { CARBON_THEMES_ADDON_ID, CARBON_THEME_PANEL_ID } from './shared'; - -addons.register(CARBON_THEMES_ADDON_ID, (api) => { - const channel = addons.getChannel(); - addons.addPanel(CARBON_THEME_PANEL_ID, { - title: 'Carbon theme', - render: ({ active, key }) => ( - - ), - }); -}); diff --git a/packages/storybook-addon-carbon-theme/src/shared.js b/packages/storybook-addon-carbon-theme/src/shared.js deleted file mode 100644 index bc767cc8c77d..000000000000 --- a/packages/storybook-addon-carbon-theme/src/shared.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Copyright IBM Corp. 2016, 2018 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -export const CARBON_THEMES = ['white', 'g10', 'g90', 'g100']; -export const WITH_CARBON_THEME = 'withCarbonTheme'; -export const CARBON_THEME_PARAM = 'carbonTheme'; -export const CARBON_THEME_DEFAULT = 'white'; - -export const CARBON_THEMES_ADDON_ID = 'carbon-theme'; -export const CARBON_THEME = `£{CARBON_THEME_PANEL_ID}/carbonTheme`; -export const CARBON_CURRENT_THEME = `${CARBON_THEMES_ADDON_ID}/current`; -export const CARBON_THEME_PANEL_ID = `${CARBON_THEMES_ADDON_ID}/panel`; - -const defaultOptions = { - theme: CARBON_THEMES[0], - themes: CARBON_THEMES, -}; - -export const mergeParams = (params) => { - const options = { themes: [], ...params }; - - if (options.themes.length) { - // filter to params.themes - options.themes = defaultOptions.themes.filter( - (option) => options.themes.indexOf(option) > -1 - ); - } - - // check not empty - if (options.themes.length === 0) { - options.themes = defaultOptions.themes.slice(0); - } - - if (!options.theme) { - options.theme = defaultOptions.theme; - } - - if (options.themes.indexOf(options.theme) < 0) { - // default theme to one that exists - const defaultThemeIndex = options.themes.indexOf(defaultOptions.theme); - options.theme = - defaultThemeIndex > 0 - ? options.themes[defaultThemeIndex] - : options.themes[0]; - } - - return options; -}; diff --git a/packages/storybook-addon-carbon-theme/src/vue.js b/packages/storybook-addon-carbon-theme/src/vue.js deleted file mode 100644 index 1514803f9f8d..000000000000 --- a/packages/storybook-addon-carbon-theme/src/vue.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Copyright IBM Corp. 2016, 2018 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ -import addons, { makeDecorator } from '@storybook/addons'; -import { - CARBON_CURRENT_THEME, - CARBON_THEME_PARAM, - WITH_CARBON_THEME, -} from './shared'; - -const Wrapper = (getStory, context, { parameters }) => { - const channel = addons.getChannel(); - - const setCarbonTheme = (theme) => { - document.documentElement.setAttribute('storybook-carbon-theme', theme); - }; - - return { - template: ``, - mounted() { - channel.on(CARBON_CURRENT_THEME, setCarbonTheme); - setCarbonTheme(parameters.value); - }, - }; -}; - -export const withCarbonTheme = makeDecorator({ - name: WITH_CARBON_THEME, - parameterName: CARBON_THEME_PARAM, - wrapper: Wrapper, -}); diff --git a/packages/storybook-addon-carbon-theme/vue.js b/packages/storybook-addon-carbon-theme/vue.js deleted file mode 100644 index 16aea871902d..000000000000 --- a/packages/storybook-addon-carbon-theme/vue.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright IBM Corp. 2016, 2018 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ -module.exports = require('./dist/vue'); diff --git a/yarn.lock b/yarn.lock index 50a31c8c647f..4d8bc4e7a174 100644 --- a/yarn.lock +++ b/yarn.lock @@ -128,12 +128,12 @@ __metadata: languageName: node linkType: hard -"@babel/helper-annotate-as-pure@npm:^7.10.4, @babel/helper-annotate-as-pure@npm:^7.12.10, @babel/helper-annotate-as-pure@npm:^7.8.3": - version: 7.12.10 - resolution: "@babel/helper-annotate-as-pure@npm:7.12.10" +"@babel/helper-annotate-as-pure@npm:^7.10.4, @babel/helper-annotate-as-pure@npm:^7.8.3": + version: 7.10.4 + resolution: "@babel/helper-annotate-as-pure@npm:7.10.4" dependencies: - "@babel/types": ^7.12.10 - checksum: d237f38b6a57704dc2a4b98d41cd1744ca12a3ee66b085c348c1ce0d93320f004510c69ab600f9ed1bd7b3737e21d39196cd7c5eb51bc07806699e98319bcbbf + "@babel/types": ^7.10.4 + checksum: 535cdf631e1e6c0bfd6820d2509c69373e2f48148505ddc2325ce8fe85302dc5681d6f6fd41261cacc458a0431edeff7c6115056144b80b02c10e111d2941c36 languageName: node linkType: hard @@ -147,6 +147,27 @@ __metadata: languageName: node linkType: hard +"@babel/helper-builder-react-jsx-experimental@npm:^7.10.4, @babel/helper-builder-react-jsx-experimental@npm:^7.9.0": + version: 7.10.5 + resolution: "@babel/helper-builder-react-jsx-experimental@npm:7.10.5" + dependencies: + "@babel/helper-annotate-as-pure": ^7.10.4 + "@babel/helper-module-imports": ^7.10.4 + "@babel/types": ^7.10.5 + checksum: 9505bc9d365e1c66cde44b196b3a5884fe35aae526cdef8696d7236cce01a58ce660f6ea727c6cba964f8f0a7b75e57634e8ccfbbeb1f5694a7277a55417eaaf + languageName: node + linkType: hard + +"@babel/helper-builder-react-jsx@npm:^7.10.4": + version: 7.10.4 + resolution: "@babel/helper-builder-react-jsx@npm:7.10.4" + dependencies: + "@babel/helper-annotate-as-pure": ^7.10.4 + "@babel/types": ^7.10.4 + checksum: f14f786b5e5d4728ecfae8679d26da6460056dee4c8c2ae7432cd0e64332a289cf44e43b0e2b349f8ce1d281595fafb6824988d9674fa29389b1e5ab2055b3be + languageName: node + linkType: hard + "@babel/helper-compilation-targets@npm:^7.10.0": version: 7.10.0 resolution: "@babel/helper-compilation-targets@npm:7.10.0" @@ -250,12 +271,12 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-imports@npm:^7.0.0, @babel/helper-module-imports@npm:^7.10.4, @babel/helper-module-imports@npm:^7.12.5, @babel/helper-module-imports@npm:^7.8.3": - version: 7.12.5 - resolution: "@babel/helper-module-imports@npm:7.12.5" +"@babel/helper-module-imports@npm:^7.0.0, @babel/helper-module-imports@npm:^7.10.4, @babel/helper-module-imports@npm:^7.8.3": + version: 7.10.4 + resolution: "@babel/helper-module-imports@npm:7.10.4" dependencies: - "@babel/types": ^7.12.5 - checksum: 7f63b03496f0d03dac33050e9f925b0b32c5acffb2f4f5bb5936431e5da3df03792f67033875005e00dd7a3b565ffc95b4af3da276ae6ff8f81d860d7acbfe65 + "@babel/types": ^7.10.4 + checksum: 84d03b58e7f04daf7c5a80765c527c24021ddbf4051567381528e2b351a550451dd87f67bf7a66f251dffcc979cd2ddaa01e1defd8b8db1095d38005e18eb806 languageName: node linkType: hard @@ -352,10 +373,10 @@ __metadata: languageName: node linkType: hard -"@babel/helper-validator-identifier@npm:^7.10.4, @babel/helper-validator-identifier@npm:^7.12.11": - version: 7.12.11 - resolution: "@babel/helper-validator-identifier@npm:7.12.11" - checksum: 18de432203264b501db2690b53370a4289dc56084f5a2c66de624b159ee28b8abaeb402b2b7584296d9261645d91ddb6bfd21125d3ffd9bf02e9262e77baf3d2 +"@babel/helper-validator-identifier@npm:^7.10.4": + version: 7.10.4 + resolution: "@babel/helper-validator-identifier@npm:7.10.4" + checksum: 25098ef842e3ffecdd9a7216f6173da7ad7be1b0b3e454a9f6965055154b9ad7a4acd2f218ba3d2efc0821bdab97837b3cb815844af7d72f66f89d446a54efc6 languageName: node linkType: hard @@ -671,7 +692,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-jsx@npm:7.10.4": +"@babel/plugin-syntax-jsx@npm:7.10.4, @babel/plugin-syntax-jsx@npm:^7.10.4, @babel/plugin-syntax-jsx@npm:^7.8.3": version: 7.10.4 resolution: "@babel/plugin-syntax-jsx@npm:7.10.4" dependencies: @@ -682,17 +703,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-jsx@npm:^7.12.1": - version: 7.12.1 - resolution: "@babel/plugin-syntax-jsx@npm:7.12.1" - dependencies: - "@babel/helper-plugin-utils": ^7.10.4 - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 2f0314608b171d0146dcb8283abfb0d48824da19b311b3aa875cb9977db23cb5e64e895390780f1839dd9679e6761b61e109d40741f174d73f200b6eceacfcbf - languageName: node - linkType: hard - "@babel/plugin-syntax-logical-assignment-operators@npm:^7.8.3": version: 7.8.3 resolution: "@babel/plugin-syntax-logical-assignment-operators@npm:7.8.3" @@ -1093,52 +1103,77 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-react-display-name@npm:^7.12.1": - version: 7.12.1 - resolution: "@babel/plugin-transform-react-display-name@npm:7.12.1" +"@babel/plugin-transform-react-display-name@npm:^7.8.3": + version: 7.8.3 + resolution: "@babel/plugin-transform-react-display-name@npm:7.8.3" dependencies: - "@babel/helper-plugin-utils": ^7.10.4 + "@babel/helper-plugin-utils": ^7.8.3 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 88d6819169bd3d84ccf47614a363b46f7269fa6d086f1a05e0b306fffd72c73c9a07cc9865e8bee2889b37754816b8ab8f668bc18cc0aa8691fde12e3338db11 + checksum: 9e25364d9509a5f5bca8748fbb4337b1c9fc5d4c9bc698f6abffb14cfb0928782d55ec91d13e6e239f8a4c4532aa2267c9a3ad0a99a6c6f4ad0e1e24f5ee710a languageName: node linkType: hard -"@babel/plugin-transform-react-jsx-development@npm:^7.12.7": - version: 7.12.12 - resolution: "@babel/plugin-transform-react-jsx-development@npm:7.12.12" +"@babel/plugin-transform-react-jsx-development@npm:^7.9.0": + version: 7.9.0 + resolution: "@babel/plugin-transform-react-jsx-development@npm:7.9.0" dependencies: - "@babel/plugin-transform-react-jsx": ^7.12.12 + "@babel/helper-builder-react-jsx-experimental": ^7.9.0 + "@babel/helper-plugin-utils": ^7.8.3 + "@babel/plugin-syntax-jsx": ^7.8.3 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: c9d320ba135288faedc46786aacf06a8de7f194f59446fb67d81768ef216677e911edd6ee0dcebdd7c6272059124216be4cf8b03ae9277807540621d663ecedd + checksum: 33cc1dd4df808ce4396d2db91560f34de4cbefe1806ab4dba268f4da1ca8b937020db449bc6134df832f99bfc38b59d589a2281bfcd9de060b0291ffa41e6eb2 languageName: node linkType: hard -"@babel/plugin-transform-react-jsx@npm:^7.12.10, @babel/plugin-transform-react-jsx@npm:^7.12.12, @babel/plugin-transform-react-jsx@npm:^7.3.0": - version: 7.12.12 - resolution: "@babel/plugin-transform-react-jsx@npm:7.12.12" +"@babel/plugin-transform-react-jsx-self@npm:^7.9.0": + version: 7.9.0 + resolution: "@babel/plugin-transform-react-jsx-self@npm:7.9.0" dependencies: - "@babel/helper-annotate-as-pure": ^7.12.10 - "@babel/helper-module-imports": ^7.12.5 - "@babel/helper-plugin-utils": ^7.10.4 - "@babel/plugin-syntax-jsx": ^7.12.1 - "@babel/types": ^7.12.12 + "@babel/helper-plugin-utils": ^7.8.3 + "@babel/plugin-syntax-jsx": ^7.8.3 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: e276a667c2e28d49747433b2677663b070b5cac7e23a64685fe76c07a94f81ba113aa195cf3ccb3ad5be512e99300209613763ae7f4062709854a9db6803e7f3 + checksum: 74db297c3181c6f3712f6109b844feeb18ab9d7298e132b31dbf04f1055fd32843098d108d53867eb44de1ae289b39dd127c57fc82b8fb930e7a50ce0f81c309 languageName: node linkType: hard -"@babel/plugin-transform-react-pure-annotations@npm:^7.12.1": - version: 7.12.1 - resolution: "@babel/plugin-transform-react-pure-annotations@npm:7.12.1" +"@babel/plugin-transform-react-jsx-source@npm:^7.10.0": + version: 7.10.0 + resolution: "@babel/plugin-transform-react-jsx-source@npm:7.10.0" dependencies: - "@babel/helper-annotate-as-pure": ^7.10.4 + "@babel/helper-plugin-utils": ^7.8.3 + "@babel/plugin-syntax-jsx": ^7.8.3 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 8ae706eee075563a9121f3142e512ca9978c86a648cfc47e2de9d1e955ad462a611a675d16951bbea610a3d5fd9b2a9d71260384c842e8cb5e073327dbd767de + languageName: node + linkType: hard + +"@babel/plugin-transform-react-jsx@npm:^7.3.0, @babel/plugin-transform-react-jsx@npm:^7.9.4": + version: 7.10.4 + resolution: "@babel/plugin-transform-react-jsx@npm:7.10.4" + dependencies: + "@babel/helper-builder-react-jsx": ^7.10.4 + "@babel/helper-builder-react-jsx-experimental": ^7.10.4 "@babel/helper-plugin-utils": ^7.10.4 + "@babel/plugin-syntax-jsx": ^7.10.4 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 0fb7d136c89f723214c48785e280429ad30f99d6c0cf07e056a769904741f733afbe46cfa7c53751be7d8fea25163b158c02aefc5df6e14eb3fe87757b383c30 + languageName: node + linkType: hard + +"@babel/plugin-transform-react-pure-annotations@npm:^7.10.0": + version: 7.10.0 + resolution: "@babel/plugin-transform-react-pure-annotations@npm:7.10.0" + dependencies: + "@babel/helper-annotate-as-pure": ^7.8.3 + "@babel/helper-plugin-utils": ^7.8.3 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: b1984954daac2a02e5a105e616df273cc13b76e8ead061913ee80089d8f77722235cd1103ca8dc4c2bbda62a53736d15037dcffe6dd9a06acfa83600299a790a + checksum: 538278ac3f12e217a5a39dc4e2c98a0dd6471f88c0a6b8b732bd6703063ba600555210cc7cc2d557e97710022fdda1e86cd78b39a65456d64c5f7cb861c82ea6 languageName: node linkType: hard @@ -1382,18 +1417,20 @@ __metadata: languageName: node linkType: hard -"@babel/preset-react@npm:^7.0.0, @babel/preset-react@npm:^7.10.0, @babel/preset-react@npm:^7.10.4": - version: 7.12.10 - resolution: "@babel/preset-react@npm:7.12.10" +"@babel/preset-react@npm:^7.0.0, @babel/preset-react@npm:^7.10.0": + version: 7.10.0 + resolution: "@babel/preset-react@npm:7.10.0" dependencies: - "@babel/helper-plugin-utils": ^7.10.4 - "@babel/plugin-transform-react-display-name": ^7.12.1 - "@babel/plugin-transform-react-jsx": ^7.12.10 - "@babel/plugin-transform-react-jsx-development": ^7.12.7 - "@babel/plugin-transform-react-pure-annotations": ^7.12.1 + "@babel/helper-plugin-utils": ^7.8.3 + "@babel/plugin-transform-react-display-name": ^7.8.3 + "@babel/plugin-transform-react-jsx": ^7.9.4 + "@babel/plugin-transform-react-jsx-development": ^7.9.0 + "@babel/plugin-transform-react-jsx-self": ^7.9.0 + "@babel/plugin-transform-react-jsx-source": ^7.10.0 + "@babel/plugin-transform-react-pure-annotations": ^7.10.0 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 3afd3d01911d330d120cab571c04cf78a083407639c506515a7e7c142881822e3e20d934b43d538bf73d38c44f4fba1f92f6a83728b42d491363d2a8896acffc + checksum: 3f9a18b24ec8f5b42bfff53ad03fae5aa43ba2752d46af4a6a9d92f370d4a46019f15bfb1ebeaf43048486fb7e4bffa406d7c6dde4b72d6c18a25a7effb4a14a languageName: node linkType: hard @@ -1471,14 +1508,14 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.10.0, @babel/types@npm:^7.10.2, @babel/types@npm:^7.10.4, @babel/types@npm:^7.10.5, @babel/types@npm:^7.11.0, @babel/types@npm:^7.12.10, @babel/types@npm:^7.12.12, @babel/types@npm:^7.12.5, @babel/types@npm:^7.12.7, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.0, @babel/types@npm:^7.4.4, @babel/types@npm:^7.6.0, @babel/types@npm:^7.7.0, @babel/types@npm:^7.8.3": - version: 7.12.12 - resolution: "@babel/types@npm:7.12.12" +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.10.0, @babel/types@npm:^7.10.2, @babel/types@npm:^7.10.4, @babel/types@npm:^7.10.5, @babel/types@npm:^7.11.0, @babel/types@npm:^7.12.5, @babel/types@npm:^7.12.7, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.0, @babel/types@npm:^7.4.4, @babel/types@npm:^7.6.0, @babel/types@npm:^7.7.0, @babel/types@npm:^7.8.3": + version: 7.12.7 + resolution: "@babel/types@npm:7.12.7" dependencies: - "@babel/helper-validator-identifier": ^7.12.11 + "@babel/helper-validator-identifier": ^7.10.4 lodash: ^4.17.19 to-fast-properties: ^2.0.0 - checksum: 928554396cb6b367e00cb6d41aee4ea0228872e8cda221d81abe786462799ecc63993f3c16845b30cd68e673269704f8007f4edc105a32c6d7e03e68a670a676 + checksum: 153635079722927a7ac35ae6c10d091e9f86fcf8411c56a2bff17befc20f53b3c1883f67f33b59d8896d65f4aed7e9aa535d24262838d0a8250f2e2ef0d9327f languageName: node linkType: hard @@ -1809,28 +1846,6 @@ __metadata: languageName: unknown linkType: soft -"@carbon/storybook-addon-theme@0.1.0, @carbon/storybook-addon-theme@workspace:packages/storybook-addon-carbon-theme": - version: 0.0.0-use.local - resolution: "@carbon/storybook-addon-theme@workspace:packages/storybook-addon-carbon-theme" - dependencies: - "@babel/cli": ^7.10.0 - "@babel/core": ^7.10.0 - "@babel/preset-react": ^7.10.4 - "@storybook/addons": 5.3.19 - "@storybook/api": 5.3.19 - "@storybook/client-api": 5.3.19 - "@storybook/client-logger": 5.3.19 - "@storybook/components": 5.3.19 - "@storybook/core-events": 5.3.19 - "@storybook/theming": 5.3.19 - core-js: ^3.0.1 - global: ^4.3.2 - peerDependencies: - react: "*" - vue: "*" - languageName: unknown - linkType: soft - "@carbon/telemetry@npm:0.0.0-alpha.6": version: 0.0.0-alpha.6 resolution: "@carbon/telemetry@npm:0.0.0-alpha.6" @@ -9083,7 +9098,6 @@ __metadata: "@babel/preset-env": ^7.10.0 "@babel/preset-react": ^7.10.0 "@carbon/icons-react": ^10.24.0 - "@carbon/storybook-addon-theme": 0.1.0 "@carbon/telemetry": 0.0.0-alpha.6 "@carbon/test-utils": ^10.14.0 "@percy/storybook": ^3.3.1