Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade styled components to v5.1.1 #449

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"prop-types": "^15.7.2",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"styled-components": ">= 4"
"styled-components": ">= 5"
},
"devDependencies": {
"@babel/cli": "^7.7.7",
Expand Down Expand Up @@ -80,7 +80,7 @@
"eslint-plugin-react": "^7.10.0",
"eslint-plugin-standard": "^3.1.0",
"husky": "^1.3.1",
"jest-styled-components": "^6.3.4",
"jest-styled-components": "^7.0.2",
"lint-staged": "^8.1.5",
"prettier": "^1.16.4",
"prop-types": "^15.7.2",
Expand All @@ -93,7 +93,7 @@
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-peer-deps-external": "^2.2.0",
"rollup-plugin-url": "^2.2.2",
"styled-components": "^4.4.1"
"styled-components": "^5.1.1"
},
"files": [
"dist"
Expand Down
44 changes: 22 additions & 22 deletions src/Button/__snapshots__/Button.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ exports[`Button Icon component sanity matches default snapshot 1`] = `
}

<button
class="c0"
class="sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -329,7 +329,7 @@ exports[`Button Icon component sanity matches themed snapshot 1`] = `
}

<button
class="c0"
class="sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -510,7 +510,7 @@ exports[`Button Icon only component sanity matches default snapshot 1`] = `
}

<button
class="c0"
class="sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -686,7 +686,7 @@ exports[`Button Icon with position prop component sanity matches default snapsho
}

<button
class="c0"
class="sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -851,7 +851,7 @@ exports[`Button component sanity matches default snapshot 1`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -998,7 +998,7 @@ exports[`Button component sanity matches themed snapshot 1`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -1145,7 +1145,7 @@ exports[`Button disabled component sanity matches default snapshot 1`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf c0"
color="white"
disabled=""
font-family="sansSerif"
Expand Down Expand Up @@ -1293,7 +1293,7 @@ exports[`Button disabled component sanity matches themed snapshot 1`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf c0"
color="white"
disabled=""
font-family="sansSerif"
Expand Down Expand Up @@ -1446,7 +1446,7 @@ exports[`Button size variant component sanity matches default snapshot 1`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -1597,7 +1597,7 @@ exports[`Button size variant component sanity matches default snapshot 2`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -1749,7 +1749,7 @@ exports[`Button size variant component sanity matches themed snapshot 1`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -1900,7 +1900,7 @@ exports[`Button size variant component sanity matches themed snapshot 2`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -2073,7 +2073,7 @@ exports[`Button.Outline component sanity matches default snapshot 1`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf sc-jwDLgl c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -2246,7 +2246,7 @@ exports[`Button.Outline component sanity matches themed snapshot 1`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf sc-jwDLgl c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -2377,7 +2377,7 @@ exports[`Button.Text component sanity matches default snapshot 1`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -2508,7 +2508,7 @@ exports[`Button.Text component sanity matches themed snapshot 1`] = `
}

<button
class="c0"
class="sc-AxjAm sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -2681,7 +2681,7 @@ exports[`Link Button Outline component sanity matches default snapshot 1`] = `
}

<a
class="c0"
class="sc-AxjAm sc-kcIISf sc-jwDLgl c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -2833,7 +2833,7 @@ exports[`Link Button component sanity matches default snapshot 1`] = `
}

<a
class="c0"
class="sc-AxjAm sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -3003,14 +3003,14 @@ exports[`Loading Button component sanity matches default snapshot 1`] = `
height: 100%;
width: 100%;
display: block;
-webkit-animation: bAyNlV 1000ms linear infinite;
animation: bAyNlV 1000ms linear infinite;
-webkit-animation: hseeoX 1000ms linear infinite;
animation: hseeoX 1000ms linear infinite;
-webkit-animation-timing-function: cubic-bezier(0.445,0.05,0.55,0.95);
animation-timing-function: cubic-bezier(0.445,0.05,0.55,0.95);
}

<button
class="c0"
class="sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -3218,7 +3218,7 @@ exports[`Loading Button component sanity matches default snapshot 2`] = `
}

<button
class="c0"
class="sc-kcIISf c0"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down
16 changes: 8 additions & 8 deletions src/EthAddress/__snapshots__/EthAddress.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ exports[`EthAddress component sanity matches default snapshot 1`] = `
>
<div>
<button
class="c5"
class="sc-khKixi c5"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -488,7 +488,7 @@ exports[`EthAddress component sanity matches default snapshot 1`] = `
</button>
</div>
<button
class="c8"
class="sc-khKixi c8"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -948,7 +948,7 @@ exports[`EthAddress component sanity matches default snapshot textLabels 1`] = `
>
<div>
<button
class="c5"
class="sc-khKixi c5"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand All @@ -963,7 +963,7 @@ exports[`EthAddress component sanity matches default snapshot textLabels 1`] = `
</button>
</div>
<button
class="c6"
class="sc-khKixi c6"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -1433,7 +1433,7 @@ exports[`EthAddress component sanity matches themed snapshot 1`] = `
>
<div>
<button
class="c5"
class="sc-khKixi c5"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -1468,7 +1468,7 @@ exports[`EthAddress component sanity matches themed snapshot 1`] = `
</button>
</div>
<button
class="c8"
class="sc-khKixi c8"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -1928,7 +1928,7 @@ exports[`EthAddress component sanity matches themed snapshot textLabels 1`] = `
>
<div>
<button
class="c5"
class="sc-khKixi c5"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand All @@ -1943,7 +1943,7 @@ exports[`EthAddress component sanity matches themed snapshot textLabels 1`] = `
</button>
</div>
<button
class="c6"
class="sc-khKixi c6"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down
4 changes: 2 additions & 2 deletions src/Input/__snapshots__/FileInput.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ exports[`File Input component sanity matches default snapshot 1`] = `
type="file"
/>
<button
class="c2"
class="sc-kcIISf c2"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down Expand Up @@ -379,7 +379,7 @@ exports[`File Input component sanity matches themed snapshot 1`] = `
type="file"
/>
<button
class="c2"
class="sc-kcIISf c2"
color="white"
font-family="sansSerif"
font-size="inherit"
Expand Down
4 changes: 2 additions & 2 deletions src/Input/__snapshots__/Input.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ exports[`Input component sanity matches default snapshot 1`] = `
}

<input
class="c0"
class="sc-pIWYI c0"
color="text"
font-size="1rem"
height="3rem"
Expand Down Expand Up @@ -191,7 +191,7 @@ exports[`Input component sanity matches themed snapshot 1`] = `
}

<input
class="c0"
class="sc-pIWYI c0"
color="text"
font-size="1rem"
height="3rem"
Expand Down
4 changes: 2 additions & 2 deletions src/Link/__snapshots__/Link.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports[`Link component sanity matches default snapshot 1`] = `
}

<a
class="c0"
class="sc-AxjAm c0"
color="primary"
font-size="1"
font-weight="3"
Expand Down Expand Up @@ -61,7 +61,7 @@ exports[`Link component sanity matches themed snapshot 1`] = `
}

<a
class="c0"
class="sc-AxjAm c0"
color="primary"
font-size="1"
font-weight="3"
Expand Down
8 changes: 4 additions & 4 deletions src/Loader/__snapshots__/Loader.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ exports[`Loader component sanity matches default snapshot 1`] = `
height: 100%;
width: 100%;
display: block;
-webkit-animation: bAyNlV 1000ms linear infinite;
animation: bAyNlV 1000ms linear infinite;
-webkit-animation: hseeoX 1000ms linear infinite;
animation: hseeoX 1000ms linear infinite;
-webkit-animation-timing-function: cubic-bezier(0.445,0.05,0.55,0.95);
animation-timing-function: cubic-bezier(0.445,0.05,0.55,0.95);
}
Expand Down Expand Up @@ -92,8 +92,8 @@ exports[`Loader component sanity matches themed snapshot 1`] = `
height: 100%;
width: 100%;
display: block;
-webkit-animation: bAyNlV 1000ms linear infinite;
animation: bAyNlV 1000ms linear infinite;
-webkit-animation: hseeoX 1000ms linear infinite;
animation: hseeoX 1000ms linear infinite;
-webkit-animation-timing-function: cubic-bezier(0.445,0.05,0.55,0.95);
animation-timing-function: cubic-bezier(0.445,0.05,0.55,0.95);
}
Expand Down
Loading