use @emotion/css instead of plain emotion

This commit is contained in:
Emi Matchu 2020-12-25 09:09:16 -08:00
parent 406849182a
commit b023cbeaf9
16 changed files with 26 additions and 14 deletions

View file

@ -8,6 +8,7 @@
"@auth0/auth0-react": "^1.0.0", "@auth0/auth0-react": "^1.0.0",
"@chakra-ui/icons": "^1.0.2", "@chakra-ui/icons": "^1.0.2",
"@chakra-ui/react": "^1.0.4", "@chakra-ui/react": "^1.0.4",
"@emotion/css": "^11.1.3",
"@emotion/react": "^11.1.4", "@emotion/react": "^11.1.4",
"@emotion/styled": "^11.0.0", "@emotion/styled": "^11.0.0",
"@loadable/component": "^5.12.0", "@loadable/component": "^5.12.0",

View file

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { css } from "emotion"; import { css } from "@emotion/css";
import gql from "graphql-tag"; import gql from "graphql-tag";
import { import {
Box, Box,

View file

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { css } from "emotion"; import { css } from "@emotion/css";
import { import {
AspectRatio, AspectRatio,
Button, Button,

View file

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { css } from "emotion"; import { css } from "@emotion/css";
import { Box, Skeleton, useColorModeValue, useToken } from "@chakra-ui/react"; import { Box, Skeleton, useColorModeValue, useToken } from "@chakra-ui/react";
import gql from "graphql-tag"; import gql from "graphql-tag";
import { useQuery } from "@apollo/client"; import { useQuery } from "@apollo/client";

View file

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { css } from "emotion"; import { css } from "@emotion/css";
import { VStack } from "@chakra-ui/react"; import { VStack } from "@chakra-ui/react";
import { Heading1, Heading2, Heading3 } from "./util"; import { Heading1, Heading2, Heading3 } from "./util";

View file

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { css } from "emotion"; import { css } from "@emotion/css";
import { import {
Badge, Badge,
Box, Box,

View file

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { css, cx } from "emotion"; import { css, cx } from "@emotion/css";
import { import {
Box, Box,
Flex, Flex,

View file

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { css } from "emotion"; import { css } from "@emotion/css";
import { import {
Box, Box,
Editable, Editable,

View file

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { css, cx } from "emotion"; import { css, cx } from "@emotion/css";
import { import {
Box, Box,
Button, Button,

View file

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import gql from "graphql-tag"; import gql from "graphql-tag";
import { useQuery } from "@apollo/client"; import { useQuery } from "@apollo/client";
import { css, cx } from "emotion"; import { css, cx } from "@emotion/css";
import { import {
Box, Box,
Button, Button,

View file

@ -12,7 +12,7 @@ import {
useColorModeValue, useColorModeValue,
} from "@chakra-ui/react"; } from "@chakra-ui/react";
import { CloseIcon, SearchIcon } from "@chakra-ui/icons"; import { CloseIcon, SearchIcon } from "@chakra-ui/icons";
import { css, cx } from "emotion"; import { css, cx } from "@emotion/css";
import Autosuggest from "react-autosuggest"; import Autosuggest from "react-autosuggest";
/** /**

View file

@ -1,7 +1,7 @@
import * as React from "react"; import * as React from "react";
import gql from "graphql-tag"; import gql from "graphql-tag";
import { useQuery, useMutation } from "@apollo/client"; import { useQuery, useMutation } from "@apollo/client";
import { css } from "emotion"; import { css } from "@emotion/css";
import { import {
Badge, Badge,
Box, Box,

View file

@ -1,5 +1,5 @@
import * as React from "react"; import * as React from "react";
import { css } from "emotion"; import { css } from "@emotion/css";
import { Box, useColorModeValue } from "@chakra-ui/react"; import { Box, useColorModeValue } from "@chakra-ui/react";
import { createIcon } from "@chakra-ui/icons"; import { createIcon } from "@chakra-ui/icons";

View file

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { css } from "emotion"; import { css } from "@emotion/css";
import { import {
Badge, Badge,
Box, Box,

View file

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { Box, DarkMode, Flex, Text } from "@chakra-ui/react"; import { Box, DarkMode, Flex, Text } from "@chakra-ui/react";
import { WarningIcon } from "@chakra-ui/icons"; import { WarningIcon } from "@chakra-ui/icons";
import { css } from "emotion"; import { css } from "@emotion/css";
import { CSSTransition, TransitionGroup } from "react-transition-group"; import { CSSTransition, TransitionGroup } from "react-transition-group";
import OutfitMovieLayer, { import OutfitMovieLayer, {

View file

@ -2585,6 +2585,17 @@
"@emotion/utils" "0.11.3" "@emotion/utils" "0.11.3"
babel-plugin-emotion "^10.0.27" babel-plugin-emotion "^10.0.27"
"@emotion/css@^11.1.3":
version "11.1.3"
resolved "https://registry.yarnpkg.com/@emotion/css/-/css-11.1.3.tgz#9ed44478b19e5d281ccbbd46d74d123d59be793f"
integrity sha512-RSQP59qtCNTf5NWD6xM08xsQdCZmVYnX/panPYvB6LQAPKQB6GL49Njf0EMbS3CyDtrlWsBcmqBtysFvfWT3rA==
dependencies:
"@emotion/babel-plugin" "^11.0.0"
"@emotion/cache" "^11.1.3"
"@emotion/serialize" "^1.0.0"
"@emotion/sheet" "^1.0.0"
"@emotion/utils" "^1.0.0"
"@emotion/hash@0.8.0", "@emotion/hash@^0.8.0": "@emotion/hash@0.8.0", "@emotion/hash@^0.8.0":
version "0.8.0" version "0.8.0"
resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413" resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413"