diff --git a/.changeset/olive-toys-try.md b/.changeset/olive-toys-try.md new file mode 100644 index 0000000000..2c3875c402 --- /dev/null +++ b/.changeset/olive-toys-try.md @@ -0,0 +1,8 @@ +--- +'@react-select/docs': major +'react-select': major +--- + +Upgrades Emotion dependency to v11.0.0 + +BREAKING CHANGE: The NonceProvider component now requires a `cacheKey` prop that corresponds to the `key` for the Emotion cache. diff --git a/babel.config.js b/babel.config.js index 629bd0c472..be16f9c219 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,6 +1,6 @@ module.exports = { plugins: [ - 'emotion', + '@emotion/babel-plugin', ['@babel/plugin-proposal-class-properties', { loose: true }], '@babel/plugin-transform-runtime', ], diff --git a/docs/App/Footer.js b/docs/App/Footer.js index e991fcad58..037bd524cb 100644 --- a/docs/App/Footer.js +++ b/docs/App/Footer.js @@ -1,7 +1,7 @@ // @flow /** @jsx jsx */ import { type Node } from 'react'; -import { jsx } from '@emotion/core'; +import { jsx } from '@emotion/react'; // const smallDevice = '@media (max-width: 769px)'; const largeDevice = '@media (min-width: 770px)'; diff --git a/docs/App/GitHubButton.js b/docs/App/GitHubButton.js index 01ffae7ac4..250778a2af 100644 --- a/docs/App/GitHubButton.js +++ b/docs/App/GitHubButton.js @@ -1,6 +1,6 @@ // @flow /** @jsx jsx */ -import { jsx } from '@emotion/core'; +import { jsx } from '@emotion/react'; type Props = { count: number, repo: string }; diff --git a/docs/App/Header.js b/docs/App/Header.js index 303710ed16..c5ac2bc791 100644 --- a/docs/App/Header.js +++ b/docs/App/Header.js @@ -2,7 +2,7 @@ /** @jsx jsx */ import fetch from 'unfetch'; import { Component, type Node } from 'react'; -import { jsx } from '@emotion/core'; +import { jsx } from '@emotion/react'; import { withRouter } from 'react-router-dom'; import Select from 'react-select'; diff --git a/docs/App/PageNav.js b/docs/App/PageNav.js index 03caa781ec..b5e8751ac2 100644 --- a/docs/App/PageNav.js +++ b/docs/App/PageNav.js @@ -1,7 +1,7 @@ // @flow /** @jsx jsx */ import { Component, type ElementRef } from 'react'; -import { jsx } from '@emotion/core'; +import { jsx } from '@emotion/react'; import { Route, Switch } from 'react-router-dom'; import type { RouterProps } from '../types'; diff --git a/docs/App/TwitterButton.js b/docs/App/TwitterButton.js index 1721ca0b9e..76d2eac0f7 100644 --- a/docs/App/TwitterButton.js +++ b/docs/App/TwitterButton.js @@ -1,6 +1,6 @@ // @flow /** @jsx jsx */ -import { jsx } from '@emotion/core'; +import { jsx } from '@emotion/react'; const TwitterButton = () => (