Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Commit

Permalink
Bump styled components (#1728)
Browse files Browse the repository at this point in the history
* chore: bump styled components to 5.2

* chore: export ServerStyleSheet from styled-components

* fix: yarn.lock

* tests: update snapshots
  • Loading branch information
faroceann authored Sep 22, 2020
1 parent 28b59aa commit ba65b76
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion core/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react-popper": "1.3.2",
"react-select": "2.3.0",
"react-sortable-hoc": "^0.8.3",
"styled-components": "5.0.0"
"styled-components": "5.2.0"
},
"peerDependencies": {
"react": ">= 16.8.6",
Expand Down
4 changes: 2 additions & 2 deletions core/components/styled.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled, { createGlobalStyle, css, keyframes, ThemeProvider } from "styled-components";
import styled, { createGlobalStyle, css, keyframes, ServerStyleSheet, ThemeProvider } from "styled-components";

import domElements from "./_helpers/dom-elements";
/* import cosmos specific helpers */
Expand Down Expand Up @@ -34,4 +34,4 @@ domElements.forEach((domElement) => {
});

export default styledWithHelpers;
export { keyframes, css, createGlobalStyle, ThemeProvider };
export { keyframes, css, createGlobalStyle, ThemeProvider, ServerStyleSheet };
32 changes: 16 additions & 16 deletions internal/test/unit/__snapshots__/select.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Select async variant renders ReactSelect 1`] = `
<div
class="sc-fzXfNS eRkzCO"
class="sc-jNnnWF"
data-cosmos-key="select.wrapper"
>
<div
Expand Down Expand Up @@ -49,14 +49,14 @@ exports[`Select async variant renders ReactSelect 1`] = `
>
<i
aria-hidden="true"
class="sc-AykKG cDHlYS sc-fzXfNM hOMxOk"
class="sc-eCApGN bEFYQX sc-jcwofb igzzSo"
color="default"
data-cosmos-key="icon"
name="dropdown-fill"
size="14"
>
<svg
class="sc-AykKH fyfrZH"
class="sc-jSFkmK iKoGjl"
color="#333"
height="14"
viewBox="0 0 20 20"
Expand All @@ -75,7 +75,7 @@ exports[`Select async variant renders ReactSelect 1`] = `

exports[`Select customOptionRenderer variant renders ReactSelect 1`] = `
<div
class="sc-fzXfNS eRkzCO"
class="sc-jNnnWF"
data-cosmos-key="select.wrapper"
>
<div
Expand Down Expand Up @@ -105,14 +105,14 @@ exports[`Select customOptionRenderer variant renders ReactSelect 1`] = `
>
<i
aria-hidden="true"
class="sc-AykKG cDHlYS sc-fzXfNM hOMxOk"
class="sc-eCApGN bEFYQX sc-jcwofb igzzSo"
color="default"
data-cosmos-key="icon"
name="dropdown-fill"
size="14"
>
<svg
class="sc-AykKH fyfrZH"
class="sc-jSFkmK iKoGjl"
color="#333"
height="14"
viewBox="0 0 20 20"
Expand All @@ -131,7 +131,7 @@ exports[`Select customOptionRenderer variant renders ReactSelect 1`] = `

exports[`Select multiple variant renders ReactSelect 1`] = `
<div
class="sc-fzXfNS eRkzCO"
class="sc-jNnnWF"
data-cosmos-key="select.wrapper"
>
<div
Expand Down Expand Up @@ -161,14 +161,14 @@ exports[`Select multiple variant renders ReactSelect 1`] = `
>
<i
aria-hidden="true"
class="sc-AykKG cDHlYS sc-fzXfNM hOMxOk"
class="sc-eCApGN bEFYQX sc-jcwofb igzzSo"
color="default"
data-cosmos-key="icon"
name="dropdown-fill"
size="14"
>
<svg
class="sc-AykKH fyfrZH"
class="sc-jSFkmK iKoGjl"
color="#333"
height="14"
viewBox="0 0 20 20"
Expand All @@ -187,7 +187,7 @@ exports[`Select multiple variant renders ReactSelect 1`] = `

exports[`Select searchable variant renders ReactSelect 1`] = `
<div
class="sc-fzXfNS eRkzCO"
class="sc-jNnnWF"
data-cosmos-key="select.wrapper"
>
<div
Expand Down Expand Up @@ -234,14 +234,14 @@ exports[`Select searchable variant renders ReactSelect 1`] = `
>
<i
aria-hidden="true"
class="sc-AykKG cDHlYS sc-fzXfNM hOMxOk"
class="sc-eCApGN bEFYQX sc-jcwofb igzzSo"
color="default"
data-cosmos-key="icon"
name="dropdown-fill"
size="14"
>
<svg
class="sc-AykKH fyfrZH"
class="sc-jSFkmK iKoGjl"
color="#333"
height="14"
viewBox="0 0 20 20"
Expand All @@ -260,17 +260,17 @@ exports[`Select searchable variant renders ReactSelect 1`] = `

exports[`Select simple variant renders SimpleSelect 1`] = `
<div
class="sc-fzXfNh dqVlVQ"
class="sc-bYwzba gBeoyx"
>
<i
class="sc-AykKG cDHlYS sc-fzXfNi oXrmB"
class="sc-eCApGN bEFYQX sc-kLokih dYREUu"
color="default"
data-cosmos-key="icon"
name="dropdown-fill"
size="14"
>
<svg
class="sc-AykKH fyfrZH"
class="sc-jSFkmK iKoGjl"
color="#333"
height="14"
viewBox="0 0 20 20"
Expand All @@ -282,7 +282,7 @@ exports[`Select simple variant renders SimpleSelect 1`] = `
</svg>
</i>
<select
class="sc-fzXfMD sc-fzXfNg gnEaJI"
class="sc-bCwgka sc-ezzayL cdDQkD gySXpF"
data-cosmos-key="select"
placeholder="Something"
>
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1076,10 +1076,10 @@
dependencies:
"@emotion/memoize" "^0.6.6"

"@emotion/is-prop-valid@^0.8.3":
version "0.8.6"
resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.6.tgz#4757646f0a58e9dec614c47c838e7147d88c263c"
integrity sha512-mnZMho3Sq8BfzkYYRVc8ilQTnc8U02Ytp6J1AwM6taQStZ3AhsEJBX2LzhA/LJirNCwM2VtHL3VFIZ+sNJUgUQ==
"@emotion/is-prop-valid@^0.8.8":
version "0.8.8"
resolved "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz#db28b1c4368a259b60a97311d6a952d4fd01ac1a"
integrity sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==
dependencies:
"@emotion/memoize" "0.7.4"

Expand Down Expand Up @@ -14033,14 +14033,14 @@ style-loader@^0.23.1:
loader-utils "^1.1.0"
schema-utils "^1.0.0"

styled-components@5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-5.0.0.tgz#fc59932c9b574571fa3cd462c862af1956114ff2"
integrity sha512-F7VhIXIbUXJ8KO3pU9wap2Hxdtqa6PZ1uHrx+YXTgRjyxGlwvBHb8LULXPabmDA+uEliTXRJM5WcZntJnKNn3g==
styled-components@5.2:
version "5.2.0"
resolved "https://registry.npmjs.org/styled-components/-/styled-components-5.2.0.tgz#6dcb5aa8a629c84b8d5ab34b7167e3e0c6f7ed74"
integrity sha512-9qE8Vgp8C5cpGAIdFaQVAl89Zgx1TDM4Yf4tlHbO9cPijtpSXTMLHy9lmP0lb+yImhgPFb1AmZ1qMUubmg3HLg==
dependencies:
"@babel/helper-module-imports" "^7.0.0"
"@babel/traverse" "^7.4.5"
"@emotion/is-prop-valid" "^0.8.3"
"@emotion/is-prop-valid" "^0.8.8"
"@emotion/stylis" "^0.8.4"
"@emotion/unitless" "^0.7.4"
babel-plugin-styled-components ">= 1"
Expand Down

0 comments on commit ba65b76

Please sign in to comment.