{({ css, cx }) => (
)}
-
{this.renderFields(multiFields, singleField)}
-
+
)}
diff --git a/packages/netlify-cms-widget-relation/package.json b/packages/netlify-cms-widget-relation/package.json
index a835fd6d..12f17788 100644
--- a/packages/netlify-cms-widget-relation/package.json
+++ b/packages/netlify-cms-widget-relation/package.json
@@ -27,7 +27,7 @@
"react-window": "^1.8.5"
},
"peerDependencies": {
- "@emotion/core": "11.0.0",
+ "@emotion/react": "11.10.4",
"@emotion/styled": "11.10.4",
"immutable": "^3.7.6",
"lodash": "^4.17.11",
diff --git a/scripts/externals.js b/scripts/externals.js
index 6066d336..53c6d471 100644
--- a/scripts/externals.js
+++ b/scripts/externals.js
@@ -42,12 +42,12 @@ module.exports = {
amd: 'lodash',
umd: 'lodash',
},
- '@emotion/core': {
+ '@emotion/react': {
root: ['NetlifyCmsDefaultExports', 'EmotionCore'],
- commonjs2: '@emotion/core',
- commonjs: '@emotion/core',
- amd: '@emotion/core',
- umd: '@emotion/core',
+ commonjs2: '@emotion/react',
+ commonjs: '@emotion/react',
+ amd: '@emotion/react',
+ umd: '@emotion/react',
},
'@emotion/styled': {
root: ['NetlifyCmsDefaultExports', 'EmotionStyled'],
diff --git a/website/package.json b/website/package.json
index 59c102c2..d458dc86 100644
--- a/website/package.json
+++ b/website/package.json
@@ -15,7 +15,7 @@
"license": "MIT",
"dependencies": {
"@emotion/cache": "11.10.3",
- "@emotion/core": "11.0.0",
+ "@emotion/react": "11.10.4",
"@emotion/styled": "11.10.4",
"dayjs": "^1.8.23",
"emotion-theming": "^10.0.27",
diff --git a/website/src/cms/cms.js b/website/src/cms/cms.js
index 8ab45069..f87dfb51 100644
--- a/website/src/cms/cms.js
+++ b/website/src/cms/cms.js
@@ -2,7 +2,7 @@ import React from 'react';
import CMS from 'netlify-cms-app';
import dayjs from 'dayjs';
import Prism from 'prismjs';
-import { CacheProvider } from '@emotion/core';
+import { CacheProvider } from '@emotion/react';
import createCache from '@emotion/cache';
import BlogPostTemplate from '../components/blog-post-template';
diff --git a/website/src/components/blog-post-template.js b/website/src/components/blog-post-template.js
index cb9a936a..bb18ed54 100644
--- a/website/src/components/blog-post-template.js
+++ b/website/src/components/blog-post-template.js
@@ -1,5 +1,5 @@
import React from 'react';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import Container from './container';
import Markdown from './markdown';
diff --git a/website/src/components/button.js b/website/src/components/button.js
index 4bddc4da..1fda50e9 100644
--- a/website/src/components/button.js
+++ b/website/src/components/button.js
@@ -1,4 +1,4 @@
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import styled from '@emotion/styled';
import theme from '../theme';
diff --git a/website/src/components/community.js b/website/src/components/community.js
index c6a0c1c4..ffe334e0 100644
--- a/website/src/components/community.js
+++ b/website/src/components/community.js
@@ -1,5 +1,5 @@
import React from 'react';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import Markdownify from './markdownify';
import PageHero from './page-hero';
diff --git a/website/src/components/container.js b/website/src/components/container.js
index c0664f1e..bd9c5f9f 100644
--- a/website/src/components/container.js
+++ b/website/src/components/container.js
@@ -1,5 +1,5 @@
import styled from '@emotion/styled';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import { mq } from '../utils';
import theme from '../theme';
diff --git a/website/src/components/edit-link.js b/website/src/components/edit-link.js
index 742a3cb5..557a0e97 100644
--- a/website/src/components/edit-link.js
+++ b/website/src/components/edit-link.js
@@ -1,5 +1,5 @@
import React from 'react';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
function EditLink({ collection, filename }) {
return (
diff --git a/website/src/components/header.js b/website/src/components/header.js
index ef9a5d6f..67d6777b 100644
--- a/website/src/components/header.js
+++ b/website/src/components/header.js
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import { Link, graphql, StaticQuery } from 'gatsby';
import styled from '@emotion/styled';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import GitHubButton from 'react-github-btn';
import Container from './container';
diff --git a/website/src/components/notification.js b/website/src/components/notification.js
index 48fe8971..c8ded34f 100644
--- a/website/src/components/notification.js
+++ b/website/src/components/notification.js
@@ -1,6 +1,6 @@
import React from 'react';
import styled from '@emotion/styled';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import theme from '../theme';
diff --git a/website/src/components/page-hero.js b/website/src/components/page-hero.js
index dd12e271..8c1af706 100644
--- a/website/src/components/page-hero.js
+++ b/website/src/components/page-hero.js
@@ -1,5 +1,5 @@
import React from 'react';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import Container from './container';
import theme from '../theme';
diff --git a/website/src/components/release.js b/website/src/components/release.js
index 39fd971f..d89d133b 100644
--- a/website/src/components/release.js
+++ b/website/src/components/release.js
@@ -1,7 +1,7 @@
import React from 'react';
import moment from 'moment';
import styled from '@emotion/styled';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import Markdownify from '../components/markdownify';
import theme from '../theme';
diff --git a/website/src/components/sidebar-layout.js b/website/src/components/sidebar-layout.js
index 9f5aab6d..234c83d0 100644
--- a/website/src/components/sidebar-layout.js
+++ b/website/src/components/sidebar-layout.js
@@ -1,5 +1,5 @@
import React from 'react';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import styled from '@emotion/styled';
import Page from './page';
diff --git a/website/src/components/whats-new.js b/website/src/components/whats-new.js
index 29f0a9d2..bd9be70c 100644
--- a/website/src/components/whats-new.js
+++ b/website/src/components/whats-new.js
@@ -1,5 +1,5 @@
import React from 'react';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import Container from './container';
import Release from './release';
diff --git a/website/src/pages/blog.js b/website/src/pages/blog.js
index f5d58bb0..bab7450b 100644
--- a/website/src/pages/blog.js
+++ b/website/src/pages/blog.js
@@ -1,7 +1,7 @@
import React from 'react';
import { Helmet } from 'react-helmet';
import { Link, graphql } from 'gatsby';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import Layout from '../components/layout';
import Container from '../components/container';
diff --git a/website/src/pages/index.js b/website/src/pages/index.js
index b0f670b8..fd0d2496 100644
--- a/website/src/pages/index.js
+++ b/website/src/pages/index.js
@@ -1,7 +1,7 @@
import React from 'react';
import { graphql } from 'gatsby';
import styled from '@emotion/styled';
-import { css } from '@emotion/core';
+import { css } from '@emotion/react';
import Layout from '../components/layout';
import Markdownify from '../components/markdownify';