diff --git a/packages/babel-plugin-emotion/test/macro/__snapshots__/css.test.js.snap b/packages/babel-plugin-emotion/test/macro/__snapshots__/css.test.js.snap index e3b311255..f0ecdfbb4 100644 --- a/packages/babel-plugin-emotion/test/macro/__snapshots__/css.test.js.snap +++ b/packages/babel-plugin-emotion/test/macro/__snapshots__/css.test.js.snap @@ -2,18 +2,18 @@ exports[`css @supports 1`] = ` @supports (display:grid) { - .glamor-0 { + .emotion-0 { display: grid; } }
`; exports[`css auto px 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -25,12 +25,12 @@ exports[`css auto px 1`] = ` }
`; exports[`css composition 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -41,17 +41,17 @@ exports[`css composition 1`] = ` justify-content: center; } -.glamor-0:hover { +.emotion-0:hover { color: hotpink; }
`; exports[`css composition stuff 1`] = ` -.glamor-0 { +.emotion-0 { -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; @@ -59,12 +59,12 @@ exports[`css composition stuff 1`] = ` }
`; exports[`css composition stuff 2`] = ` -.glamor-0 { +.emotion-0 { -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; @@ -72,12 +72,12 @@ exports[`css composition stuff 2`] = ` }
`; exports[`css composition with objects 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -90,60 +90,60 @@ exports[`css composition with objects 1`] = ` justify-content: center; } -.glamor-0:hover { +.emotion-0:hover { color: blue; } -.glamor-0:after { +.emotion-0:after { content: " "; color: red; } @media (min-width:420px) { - .glamor-0 { + .emotion-0 { color: green; } }
`; exports[`css computed key is only dynamic 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 10px; width: 20px; }
`; exports[`css css variables 1`] = ` -.glamor-0 { +.emotion-0 { --some-var: 1px; width: var(--some-var); }
`; exports[`css float property 1`] = ` -.glamor-0 { +.emotion-0 { float: left; }
`; exports[`css flushes correctly 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -151,18 +151,18 @@ exports[`css flushes correctly 1`] = ` }
`; exports[`css flushes correctly 2`] = `
`; exports[`css handles more than 10 dynamic properties 1`] = ` -.glamor-0 { +.emotion-0 { text-decoration: underline; border-right: solid blue 54px; background: white; @@ -177,12 +177,12 @@ exports[`css handles more than 10 dynamic properties 1`] = ` }
`; exports[`css handles objects 1`] = ` -.glamor-0 { +.emotion-0 { float: left; display: -webkit-box; display: -webkit-flex; @@ -195,34 +195,34 @@ exports[`css handles objects 1`] = ` }
`; exports[`css nested 1`] = ` -.glamor-0 { +.emotion-0 { color: yellow; } -.glamor-0 .some-class { +.emotion-0 .some-class { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } -.glamor-0 .some-class .some-other-class { +.emotion-0 .some-class .some-other-class { background-color: hotpink; } @media (max-width:600px) { - .glamor-0 .some-class { + .emotion-0 .some-class { background-color: pink; } }
`; @@ -281,37 +281,37 @@ exports[`css nested at rules 1`] = ` `; exports[`css nested selector without parent declaration 1`] = ` -.glamor-0 { +.emotion-0 { color: blue; } -.glamor-1 .glamor-0 { +.emotion-1 .emotion-0 { color: red; }
`; exports[`css null rule 1`] = `
`; exports[`css random expression 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; background: green; } @media (min-width:420px) { - .glamor-0 { + .emotion-0 { color: blue; width: 96px; height: 96px; @@ -320,12 +320,12 @@ exports[`css random expression 1`] = ` }
`; exports[`css random interpolation with undefined values 1`] = ` -.glamor-0 { +.emotion-0 { -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; @@ -333,6 +333,6 @@ exports[`css random interpolation with undefined values 1`] = ` }
`; diff --git a/packages/babel-plugin-emotion/test/macro/__snapshots__/keyframes.test.js.snap b/packages/babel-plugin-emotion/test/macro/__snapshots__/keyframes.test.js.snap index 0d831cbe5..c715992aa 100644 --- a/packages/babel-plugin-emotion/test/macro/__snapshots__/keyframes.test.js.snap +++ b/packages/babel-plugin-emotion/test/macro/__snapshots__/keyframes.test.js.snap @@ -1,13 +1,13 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`keyframes - macro keyframes with interpolation 1`] = ` -.glamor-0 { +.emotion-0 { -webkit-animation: animation-1q8eu9e 2s linear infinite; animation: animation-1q8eu9e 2s linear infinite; }

hello world

@@ -49,13 +49,13 @@ exports[`keyframes - macro keyframes with interpolation 2`] = ` `; exports[`keyframes - macro renders 1`] = ` -.glamor-0 { +.emotion-0 { -webkit-animation: animation-16qlhaj 2s linear infinite; animation: animation-16qlhaj 2s linear infinite; }

hello world

diff --git a/packages/babel-plugin-emotion/test/macro/__snapshots__/react.test.js.snap b/packages/babel-plugin-emotion/test/macro/__snapshots__/react.test.js.snap index 8de47d8e6..57fa81391 100644 --- a/packages/babel-plugin-emotion/test/macro/__snapshots__/react.test.js.snap +++ b/packages/babel-plugin-emotion/test/macro/__snapshots__/react.test.js.snap @@ -1,50 +1,50 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`styled basic render 1`] = ` -.glamor-0 { +.emotion-0 { color: blue; font-size: 20px; } @media (min-width:420px) { - .glamor-0 { + .emotion-0 { color: blue; } }

hello world

`; exports[`styled basic render with object as style 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; }

hello world

`; exports[`styled call expression 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; }

hello world

`; exports[`styled change theme 1`] = ` -.glamor-0 { +.emotion-0 { color: green; } @@ -65,7 +65,7 @@ exports[`styled change theme 1`] = ` >
this will be green then pink
@@ -75,7 +75,7 @@ exports[`styled change theme 1`] = ` `; exports[`styled change theme 2`] = ` -.glamor-0 { +.emotion-0 { color: pink; } @@ -96,7 +96,7 @@ exports[`styled change theme 2`] = ` >
this will be green then pink
@@ -125,7 +125,7 @@ exports[`styled change theme 3`] = ` `; exports[`styled composing components 1`] = ` -.glamor-0 { +.emotion-0 { color: green; display: none; display: -webkit-box; @@ -139,27 +139,27 @@ exports[`styled composing components 1`] = ` } `; exports[`styled composition 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; font-size: 13.333333333333334px; }

hello world

`; exports[`styled composition 2`] = ` -.glamor-0 { +.emotion-0 { color: blue; color: red; color: blue; @@ -168,7 +168,7 @@ exports[`styled composition 2`] = ` }

hello world @@ -176,64 +176,64 @@ exports[`styled composition 2`] = ` `; exports[`styled composition based on props 1`] = ` -.glamor-0 { +.emotion-0 { color: blue; }

hello world

`; exports[`styled composition based on props 2`] = ` -.glamor-0 { +.emotion-0 { color: green; }

hello world

`; exports[`styled composition of nested pseudo selectors 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 2rem; padding: 16px; } -.glamor-0:hover { +.emotion-0:hover { color: blue; } -.glamor-0:hover:active { +.emotion-0:hover:active { color: red; } -.glamor-0:hover { +.emotion-0:hover { color: pink; } -.glamor-0:hover:active { +.emotion-0:hover:active { color: purple; } -.glamor-0:hover.some-class { +.emotion-0:hover.some-class { color: yellow; } `; exports[`styled composition with objects 1`] = ` -.glamor-0 { +.emotion-0 { color: #333; font-size: 1.333em; height: 64px; @@ -242,13 +242,13 @@ exports[`styled composition with objects 1`] = ` } @media only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min--moz-device-pixel-ratio:1.5), only screen and (-o-min-device-pixel-ratio:1.5/1), only screen and (min-resolution:144dpi), only screen and (min-resolution:1.5dppx) { - .glamor-0 { + .emotion-0 { font-size: 1.4323121856191332em; } }

hello world @@ -256,13 +256,13 @@ exports[`styled composition with objects 1`] = ` `; exports[`styled function in expression 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; font-size: 40px; }

hello world @@ -270,19 +270,19 @@ exports[`styled function in expression 1`] = ` `; exports[`styled function that function returns gets called with props 1`] = ` -.glamor-0 { +.emotion-0 { color: hotpink; background-color: yellow; }
`; exports[`styled glamorous style api & composition 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; -webkit-flex: 1; -ms-flex: 1; @@ -294,7 +294,7 @@ exports[`styled glamorous style api & composition 1`] = ` }

hello world @@ -302,7 +302,7 @@ exports[`styled glamorous style api & composition 1`] = ` `; exports[`styled handles more than 10 dynamic properties 1`] = ` -.glamor-0 { +.emotion-0 { text-decoration: underline; border-right: solid blue 54px; background: white; @@ -318,14 +318,14 @@ exports[`styled handles more than 10 dynamic properties 1`] = ` }

hello world

`; exports[`styled higher order component 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; background-color: #7fc8d6; background-color: '#343a40'; @@ -335,124 +335,124 @@ exports[`styled higher order component 1`] = ` }
`; exports[`styled inline function return value is a function 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; }

hello world

`; exports[`styled innerRef 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 12px; }

hello world

`; exports[`styled input placeholder 1`] = ` -.glamor-0::-webkit-input-placeholder { +.emotion-0::-webkit-input-placeholder { background-color: green; } -.glamor-0::-moz-placeholder { +.emotion-0::-moz-placeholder { background-color: green; } -.glamor-0:-ms-input-placeholder { +.emotion-0:-ms-input-placeholder { background-color: green; } -.glamor-0::placeholder { +.emotion-0::placeholder { background-color: green; } hello world `; exports[`styled input placeholder object 1`] = ` -.glamor-0::-webkit-input-placeholder { +.emotion-0::-webkit-input-placeholder { background-color: green; } -.glamor-0::-moz-placeholder { +.emotion-0::-moz-placeholder { background-color: green; } -.glamor-0:-ms-input-placeholder { +.emotion-0:-ms-input-placeholder { background-color: green; } -.glamor-0::placeholder { +.emotion-0::placeholder { background-color: green; } hello world `; exports[`styled name with class component 1`] = ` -.glamor-0 { +.emotion-0 { color: hotpink; }
`; exports[`styled nested 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; } -.glamor-2 { +.emotion-2 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } -.glamor-2 div { +.emotion-2 div { color: green; } -.glamor-2 div span { +.emotion-2 div span { color: red; }
hello

This will be green

@@ -461,19 +461,19 @@ exports[`styled nested 1`] = ` `; exports[`styled no dynamic 1`] = ` -.glamor-0 { +.emotion-0 { float: left; }

hello world

`; exports[`styled no prop filtering on non string tags 1`] = ` -.glamor-0 { +.emotion-0 { color: green; } @@ -481,7 +481,7 @@ exports[`styled no prop filtering on non string tags 1`] = ` a={true} aria-label="some label" b={true} - className="glamor-0 glamor-1" + className="emotion-0 emotion-1" cool={true} data-wow="value" filtering={true} @@ -495,7 +495,7 @@ exports[`styled no prop filtering on non string tags 1`] = ` `; exports[`styled object as style 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; -webkit-flex: 1; -ms-flex: 1; @@ -507,7 +507,7 @@ exports[`styled object as style 1`] = ` }

hello world @@ -515,7 +515,7 @@ exports[`styled object as style 1`] = ` `; exports[`styled object composition 1`] = ` -.glamor-0 { +.emotion-0 { border-radius: 50%; -webkit-transition: -webkit-transform 400ms ease-in-out; -webkit-transition: transform 400ms ease-in-out; @@ -527,19 +527,19 @@ exports[`styled object composition 1`] = ` color: blue; } -.glamor-0:hover { +.emotion-0:hover { -webkit-transform: scale(1.2); -ms-transform: scale(1.2); transform: scale(1.2); } `; exports[`styled objects 1`] = ` -.glamor-0 { +.emotion-0 { padding: 10px; display: -webkit-box; display: -webkit-flex; @@ -548,7 +548,7 @@ exports[`styled objects 1`] = ` }

hello world @@ -556,25 +556,25 @@ exports[`styled objects 1`] = ` `; exports[`styled objects with spread properties 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; }
hello world
`; exports[`styled prop filtering 1`] = ` -.glamor-0 { +.emotion-0 { color: green; } hello world

`; exports[`styled random object expression 1`] = ` -.glamor-0 { +.emotion-0 { background-color: hotpink; font-size: 1rem; margin-top: 0; @@ -653,36 +653,36 @@ exports[`styled random object expression 1`] = ` }

hello world

`; exports[`styled theme prop exists without ThemeProvider 1`] = ` -.glamor-0 { +.emotion-0 { color: green; background-color: yellow; }
`; exports[`styled theme prop exists without ThemeProvider with a theme prop on the component 1`] = ` -.glamor-0 { +.emotion-0 { color: hotpink; background-color: yellow; }
`; exports[`styled themes 1`] = ` -.glamor-0 { +.emotion-0 { background-color: #ffd43b; color: blue; height: 64px; @@ -692,7 +692,7 @@ exports[`styled themes 1`] = ` } hello world @@ -716,7 +716,7 @@ exports[`styled theming 1`] = ` >
this will be green then pink
@@ -743,7 +743,7 @@ exports[`styled theming 2`] = ` >
this will be green then pink
@@ -777,7 +777,7 @@ You may have forgotten to import it." `; exports[`styled with higher order component that hoists statics 1`] = ` -.glamor-1 { +.emotion-1 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -787,26 +787,26 @@ exports[`styled with higher order component that hoists statics 1`] = ` }
`; exports[`styled withComponent will replace tags but keep styling classes 1`] = ` -.glamor-0 { +.emotion-0 { color: green; }

My Title

My Subtitle

@@ -815,18 +815,18 @@ exports[`styled withComponent will replace tags but keep styling classes 1`] = ` `; exports[`styled withComponent with function interpolation 1`] = ` -.glamor-0 { +.emotion-0 { color: green; } -.glamor-2 { +.emotion-2 { color: hotpink; }

My Title

@@ -835,7 +835,7 @@ exports[`styled withComponent with function interpolation 1`] = ` color="hotpink" >

My Subtitle diff --git a/packages/create-emotion/test/__snapshots__/css.test.js.snap b/packages/create-emotion/test/__snapshots__/css.test.js.snap index e4e2758ff..f72e76cf3 100644 --- a/packages/create-emotion/test/__snapshots__/css.test.js.snap +++ b/packages/create-emotion/test/__snapshots__/css.test.js.snap @@ -2,38 +2,38 @@ exports[`css @supports 1`] = ` @supports (display:grid) { - .glamor-0 { + .emotion-0 { display: grid; } }
`; exports[`css array with explicit false 1`] = ` -.glamor-0 { +.emotion-0 { display: flex; }
`; exports[`css array with explicit true 1`] = ` -.glamor-0 { +.emotion-0 { display: flex; }
`; exports[`css auto px 1`] = ` -.glamor-0 { +.emotion-0 { display: flex; -webkit-flex: 1; -ms-flex: 1; @@ -42,22 +42,22 @@ exports[`css auto px 1`] = ` }
`; exports[`css boolean as value 1`] = ` -.glamor-0 { +.emotion-0 { display: flex; }
`; exports[`css composition stuff 1`] = ` -.glamor-0 { +.emotion-0 { -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; @@ -65,12 +65,12 @@ exports[`css composition stuff 1`] = ` }
`; exports[`css composition stuff 2`] = ` -.glamor-0 { +.emotion-0 { -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; @@ -78,12 +78,12 @@ exports[`css composition stuff 2`] = ` }
`; exports[`css composition with objects 1`] = ` -.glamor-0 { +.emotion-0 { display: flex; width: 30px; height: calc(40vw - 50px); @@ -93,55 +93,55 @@ exports[`css composition with objects 1`] = ` justify-content: center; } -.glamor-0:hover { +.emotion-0:hover { color: blue; } -.glamor-0:after { +.emotion-0:after { content: " "; color: red; } @media (min-width:420px) { - .glamor-0 { + .emotion-0 { color: green; } }
`; exports[`css computed key is only dynamic 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 10px; width: 20px; }
`; exports[`css css variables 1`] = ` -.glamor-0 { +.emotion-0 { --some-var: 1px; width: var(--some-var); }
`; exports[`css explicit & 1`] = ` -.glamor-0.another-class { +.emotion-0.another-class { display: flex; }
`; @@ -153,69 +153,69 @@ exports[`css explicit & 2`] = ` exports[`css explicit false 1`] = `
`; exports[`css falsy property value in object 1`] = ` -.glamor-0 { +.emotion-0 { display: flex; }
`; exports[`css falsy value in nested selector on object 1`] = ` -.glamor-0:hover { +.emotion-0:hover { color: hotpink; }
`; exports[`css float property 1`] = ` -.glamor-0 { +.emotion-0 { float: right; }
`; exports[`css flushes correctly 1`] = ` -.glamor-0 { +.emotion-0 { display: flex; }
`; exports[`css flushes correctly 2`] = `
`; exports[`css handles array of objects 1`] = ` -.glamor-0 { +.emotion-0 { height: 50px; width: 20px; }
`; exports[`css handles more than 10 dynamic properties 1`] = ` -.glamor-0 { +.emotion-0 { text-decoration: underline; border-left: solid blue 54px; background: white; @@ -230,12 +230,12 @@ exports[`css handles more than 10 dynamic properties 1`] = ` }
`; exports[`css handles objects 1`] = ` -.glamor-0 { +.emotion-0 { float: right; display: flex; color: blue; @@ -245,17 +245,17 @@ exports[`css handles objects 1`] = ` }
`; exports[`css manually use label property 1`] = ` -.glamor-0 { +.emotion-0 { color: hotpink; }
`; @@ -281,45 +281,45 @@ exports[`css media query specificity 1`] = ` `; exports[`css media query specificity 2`] = ` -.glamor-0 { +.emotion-0 { width: 32px; height: 32px; border-radius: 50%; } @media (min-width:420px) { - .glamor-0 { + .emotion-0 { width: 96px; height: 96px; } }
`; exports[`css nested 1`] = ` -.glamor-0 { +.emotion-0 { color: yellow; } -.glamor-0 .some-class { +.emotion-0 .some-class { display: flex; } -.glamor-0 .some-class .some-other-class { +.emotion-0 .some-class .some-other-class { background-color: hotpink; } @media (max-width:600px) { - .glamor-0 .some-class { + .emotion-0 .some-class { background-color: pink; } }
`; exports[`css nested selector without parent declaration 1`] = ` -.glamor-0 { +.emotion-0 { color: blue; } -.glamor-1 .glamor-0 { +.emotion-1 .emotion-0 { color: red; }
`; exports[`css null rule 1`] = `
`; exports[`css null value 1`] = `
`; exports[`css null value 2`] = `
`; exports[`css random expression 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; background: green; } @media (min-width:420px) { - .glamor-0 { + .emotion-0 { color: blue; width: 96px; height: 96px; @@ -403,12 +403,12 @@ exports[`css random expression 1`] = ` }
`; exports[`css random interpolation with undefined values 1`] = ` -.glamor-0 { +.emotion-0 { -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; @@ -416,33 +416,33 @@ exports[`css random interpolation with undefined values 1`] = ` }
`; exports[`css registered styles as nested selector value in object 1`] = ` -.glamor-0:hover { +.emotion-0:hover { display: flex; background-color: hotpink; }
`; exports[`css return function in interpolation 1`] = ` -.glamor-0 { +.emotion-0 { color: blue; }
`; exports[`css simple composition 1`] = ` -.glamor-0 { +.emotion-0 { display: flex; -webkit-box-pack: center; -webkit-justify-content: center; @@ -450,31 +450,31 @@ exports[`css simple composition 1`] = ` justify-content: center; } -.glamor-0:hover { +.emotion-0:hover { color: hotpink; }
`; exports[`css weakmap 1`] = ` -.glamor-0 { +.emotion-0 { display: flex; }
`; exports[`css weakmap 2`] = ` -.glamor-0 { +.emotion-0 { display: flex; }
`; diff --git a/packages/create-emotion/test/__snapshots__/styled.test.js.snap b/packages/create-emotion/test/__snapshots__/styled.test.js.snap index cf31c0881..6b6506986 100644 --- a/packages/create-emotion/test/__snapshots__/styled.test.js.snap +++ b/packages/create-emotion/test/__snapshots__/styled.test.js.snap @@ -1,50 +1,50 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`styled basic render 1`] = ` -.glamor-0 { +.emotion-0 { color: blue; font-size: 20px; } @media (min-width:420px) { - .glamor-0 { + .emotion-0 { color: blue; } }

hello world

`; exports[`styled basic render with object as style 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; }

hello world

`; exports[`styled call expression 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; }
hello world
`; exports[`styled change theme 1`] = ` -.glamor-0 { +.emotion-0 { color: green; } @@ -65,7 +65,7 @@ exports[`styled change theme 1`] = ` >
this will be green then pink
@@ -75,7 +75,7 @@ exports[`styled change theme 1`] = ` `; exports[`styled change theme 2`] = ` -.glamor-0 { +.emotion-0 { color: pink; } @@ -96,7 +96,7 @@ exports[`styled change theme 2`] = ` >
this will be green then pink
@@ -125,7 +125,7 @@ exports[`styled change theme 3`] = ` `; exports[`styled composing components 1`] = ` -.glamor-0 { +.emotion-0 { color: green; display: none; display: flex; @@ -136,27 +136,27 @@ exports[`styled composing components 1`] = ` } `; exports[`styled composition 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; font-size: 13.333333333333334px; }

hello world

`; exports[`styled composition 2`] = ` -.glamor-0 { +.emotion-0 { color: blue; color: red; color: blue; @@ -165,7 +165,7 @@ exports[`styled composition 2`] = ` }

hello world @@ -173,64 +173,64 @@ exports[`styled composition 2`] = ` `; exports[`styled composition based on props 1`] = ` -.glamor-0 { +.emotion-0 { color: blue; }

hello world

`; exports[`styled composition based on props 2`] = ` -.glamor-0 { +.emotion-0 { color: green; }

hello world

`; exports[`styled composition of nested pseudo selectors 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 2rem; padding: 16px; } -.glamor-0:hover { +.emotion-0:hover { color: blue; } -.glamor-0:hover:active { +.emotion-0:hover:active { color: red; } -.glamor-0:hover { +.emotion-0:hover { color: pink; } -.glamor-0:hover:active { +.emotion-0:hover:active { color: purple; } -.glamor-0:hover.some-class { +.emotion-0:hover.some-class { color: yellow; } `; exports[`styled composition with objects 1`] = ` -.glamor-0 { +.emotion-0 { color: #333; font-size: 1.333em; height: 64px; @@ -239,13 +239,13 @@ exports[`styled composition with objects 1`] = ` } @media only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min--moz-device-pixel-ratio:1.5), only screen and (-o-min-device-pixel-ratio:1.5/1), only screen and (min-resolution:144dpi), only screen and (min-resolution:1.5dppx) { - .glamor-0 { + .emotion-0 { font-size: 1.4323121856191332em; } }

hello world @@ -253,13 +253,13 @@ exports[`styled composition with objects 1`] = ` `; exports[`styled function in expression 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; font-size: 40px; }

hello world @@ -267,19 +267,19 @@ exports[`styled function in expression 1`] = ` `; exports[`styled function that function returns gets called with props 1`] = ` -.glamor-0 { +.emotion-0 { color: hotpink; background-color: yellow; }
`; exports[`styled glamorous style api & composition 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; -webkit-flex: 1; -ms-flex: 1; @@ -288,7 +288,7 @@ exports[`styled glamorous style api & composition 1`] = ` }

hello world @@ -296,7 +296,7 @@ exports[`styled glamorous style api & composition 1`] = ` `; exports[`styled handles more than 10 dynamic properties 1`] = ` -.glamor-0 { +.emotion-0 { text-decoration: underline; border-left: solid blue 54px; background: white; @@ -312,14 +312,14 @@ exports[`styled handles more than 10 dynamic properties 1`] = ` }

hello world

`; exports[`styled higher order component 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; background-color: #7fc8d6; background-color: '#343a40'; @@ -329,121 +329,121 @@ exports[`styled higher order component 1`] = ` }
`; exports[`styled inline function return value is a function 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; }

hello world

`; exports[`styled innerRef 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 12px; }

hello world

`; exports[`styled input placeholder 1`] = ` -.glamor-0::-webkit-input-placeholder { +.emotion-0::-webkit-input-placeholder { background-color: green; } -.glamor-0::-moz-placeholder { +.emotion-0::-moz-placeholder { background-color: green; } -.glamor-0:-ms-input-placeholder { +.emotion-0:-ms-input-placeholder { background-color: green; } -.glamor-0::placeholder { +.emotion-0::placeholder { background-color: green; } hello world `; exports[`styled input placeholder object 1`] = ` -.glamor-0::-webkit-input-placeholder { +.emotion-0::-webkit-input-placeholder { background-color: green; } -.glamor-0::-moz-placeholder { +.emotion-0::-moz-placeholder { background-color: green; } -.glamor-0:-ms-input-placeholder { +.emotion-0:-ms-input-placeholder { background-color: green; } -.glamor-0::placeholder { +.emotion-0::placeholder { background-color: green; } hello world `; exports[`styled name with class component 1`] = ` -.glamor-0 { +.emotion-0 { color: hotpink; }
`; exports[`styled nested 1`] = ` -.glamor-2 { +.emotion-2 { display: flex; } -.glamor-2 div { +.emotion-2 div { color: green; } -.glamor-2 div span { +.emotion-2 div span { color: red; } -.glamor-0 { +.emotion-0 { font-size: 20px; }
hello

This will be green

@@ -452,19 +452,19 @@ exports[`styled nested 1`] = ` `; exports[`styled no dynamic 1`] = ` -.glamor-0 { +.emotion-0 { float: right; }

hello world

`; exports[`styled no prop filtering on non string tags 1`] = ` -.glamor-0 { +.emotion-0 { color: green; } @@ -472,7 +472,7 @@ exports[`styled no prop filtering on non string tags 1`] = ` a={true} aria-label="some label" b={true} - className="glamor-0 glamor-1" + className="emotion-0 emotion-1" cool={true} data-wow="value" filtering={true} @@ -486,7 +486,7 @@ exports[`styled no prop filtering on non string tags 1`] = ` `; exports[`styled no prop filtering on string tags started with upper case 1`] = ` -.glamor-0 { +.emotion-0 { color: green; } @@ -494,7 +494,7 @@ exports[`styled no prop filtering on string tags started with upper case 1`] = ` a={true} aria-label="some label" b={true} - className="glamor-0 glamor-1" + className="emotion-0 emotion-1" cool={true} data-wow="value" filtering={true} @@ -508,7 +508,7 @@ exports[`styled no prop filtering on string tags started with upper case 1`] = ` `; exports[`styled object as style 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; -webkit-flex: 1; -ms-flex: 1; @@ -517,7 +517,7 @@ exports[`styled object as style 1`] = ` }

hello world @@ -525,7 +525,7 @@ exports[`styled object as style 1`] = ` `; exports[`styled object composition 1`] = ` -.glamor-0 { +.emotion-0 { border-radius: 50%; -webkit-transition: -webkit-transform 400ms ease-in-out; -webkit-transition: transform 400ms ease-in-out; @@ -537,25 +537,25 @@ exports[`styled object composition 1`] = ` color: blue; } -.glamor-0:hover { +.emotion-0:hover { -webkit-transform: scale(1.2); -ms-transform: scale(1.2); transform: scale(1.2); } `; exports[`styled objects 1`] = ` -.glamor-0 { +.emotion-0 { padding: 10px; display: flex; }

hello world @@ -563,25 +563,25 @@ exports[`styled objects 1`] = ` `; exports[`styled objects with spread properties 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; }
hello world
`; exports[`styled prop filtering 1`] = ` -.glamor-0 { +.emotion-0 { color: green; } hello world

`; exports[`styled random object expression 1`] = ` -.glamor-0 { +.emotion-0 { background-color: hotpink; font-size: 1rem; margin-top: 0; @@ -631,36 +631,36 @@ exports[`styled random object expression 1`] = ` }

hello world

`; exports[`styled theme prop exists without ThemeProvider 1`] = ` -.glamor-0 { +.emotion-0 { color: green; background-color: yellow; }
`; exports[`styled theme prop exists without ThemeProvider with a theme prop on the component 1`] = ` -.glamor-0 { +.emotion-0 { color: hotpink; background-color: yellow; }
`; exports[`styled themes 1`] = ` -.glamor-0 { +.emotion-0 { background-color: #ffd43b; color: blue; height: 64px; @@ -670,7 +670,7 @@ exports[`styled themes 1`] = ` } hello world @@ -694,7 +694,7 @@ exports[`styled theming 1`] = ` >
this will be green then pink
@@ -721,7 +721,7 @@ exports[`styled theming 2`] = ` >
this will be green then pink
@@ -755,14 +755,14 @@ You may have forgotten to import it." `; exports[`styled with higher order component that hoists statics 1`] = ` -.glamor-1 { +.emotion-1 { display: flex; color: hotpink; padding: 8px; }
`; @@ -773,21 +773,21 @@ exports[`styled withComponent creates a new, unique stable class per invocation exports[`styled withComponent creates a new, unique stable class per invocation 3`] = `"e1x6erbc56"`; exports[`styled withComponent will replace tags but keep styling classes 1`] = ` -.glamor-0 { +.emotion-0 { color: green; }

My Title

My Subtitle

@@ -796,18 +796,18 @@ exports[`styled withComponent will replace tags but keep styling classes 1`] = ` `; exports[`styled withComponent with function interpolation 1`] = ` -.glamor-0 { +.emotion-0 { color: green; } -.glamor-2 { +.emotion-2 { color: hotpink; }

My Title

@@ -816,7 +816,7 @@ exports[`styled withComponent with function interpolation 1`] = ` color="hotpink" >

My Subtitle diff --git a/packages/emotion-theming/test/__snapshots__/index.test.js.snap b/packages/emotion-theming/test/__snapshots__/index.test.js.snap index e348e87ee..ce59146c1 100644 --- a/packages/emotion-theming/test/__snapshots__/index.test.js.snap +++ b/packages/emotion-theming/test/__snapshots__/index.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`emotion integration test 1`] = ` -.glamor-0 { +.emotion-0 { color: red; background-color: green; border: 1px solid blue; @@ -17,7 +17,7 @@ exports[`emotion integration test 1`] = ` >
diff --git a/packages/emotion/test/__snapshots__/component-selector.test.js.snap b/packages/emotion/test/__snapshots__/component-selector.test.js.snap index 2d6aeea7d..c5015c3a0 100644 --- a/packages/emotion/test/__snapshots__/component-selector.test.js.snap +++ b/packages/emotion/test/__snapshots__/component-selector.test.js.snap @@ -1,19 +1,19 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`component selector should be converted to use the emotion target className 1`] = ` -.glamor-2 .glamor-1 { +.emotion-2 .emotion-1 { color: red; } -.glamor-0 { +.emotion-0 { color: blue; }
`; diff --git a/packages/emotion/test/__snapshots__/css-prop.test.js.snap b/packages/emotion/test/__snapshots__/css-prop.test.js.snap index 337ea8b9a..0c78d69af 100644 --- a/packages/emotion/test/__snapshots__/css-prop.test.js.snap +++ b/packages/emotion/test/__snapshots__/css-prop.test.js.snap @@ -1,20 +1,20 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`css prop react basic 1`] = ` -.glamor-0 { +.emotion-0 { color: red; font-size: 1px; }

hello world

`; exports[`css prop react kitchen sink 1`] = ` -.glamor-4 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -34,52 +34,52 @@ exports[`css prop react kitchen sink 1`] = ` align-items: center; } -.glamor-0 { +.emotion-0 { font-size: 6; color: red; } -.glamor-1 { +.emotion-1 { color: blue; } -.glamor-2 { +.emotion-2 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; } -.glamor-3 { +.emotion-3 { color: red; border-radius: 5; } -.glamor-3:hover { +.emotion-3:hover { font-weight: bold; color: gray; }

BOOM

Hello

World

hello world

@@ -87,30 +87,30 @@ exports[`css prop react kitchen sink 1`] = ` `; exports[`css prop react merging regular classes 1`] = ` -.glamor-0 { +.emotion-0 { display: block; }
`; exports[`css prop react objects 1`] = ` -.glamor-0 { +.emotion-0 { color: red; font-size: 1px; }

hello world

`; exports[`css prop react specificity with composition 1`] = ` -.glamor-0 { +.emotion-0 { display: block; display: -webkit-box; display: -webkit-flex; @@ -119,19 +119,19 @@ exports[`css prop react specificity with composition 1`] = ` }
`; exports[`css prop react string expression 1`] = ` -.glamor-0 { +.emotion-0 { color: red; background: blue; font-size: 48px; }

hello world

diff --git a/packages/emotion/test/__snapshots__/css.test.js.snap b/packages/emotion/test/__snapshots__/css.test.js.snap index 07c6f5167..a767c477f 100644 --- a/packages/emotion/test/__snapshots__/css.test.js.snap +++ b/packages/emotion/test/__snapshots__/css.test.js.snap @@ -2,18 +2,18 @@ exports[`css @supports 1`] = ` @supports (display:grid) { - .glamor-0 { + .emotion-0 { display: grid; } }
`; exports[`css array with explicit false 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -21,12 +21,12 @@ exports[`css array with explicit false 1`] = ` }
`; exports[`css array with explicit true 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -34,12 +34,12 @@ exports[`css array with explicit true 1`] = ` }
`; exports[`css auto px 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -52,12 +52,12 @@ exports[`css auto px 1`] = ` }
`; exports[`css boolean as value 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -65,12 +65,12 @@ exports[`css boolean as value 1`] = ` }
`; exports[`css composition stuff 1`] = ` -.glamor-0 { +.emotion-0 { -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; @@ -78,12 +78,12 @@ exports[`css composition stuff 1`] = ` }
`; exports[`css composition stuff 2`] = ` -.glamor-0 { +.emotion-0 { -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; @@ -91,12 +91,12 @@ exports[`css composition stuff 2`] = ` }
`; exports[`css composition with objects 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -109,50 +109,50 @@ exports[`css composition with objects 1`] = ` justify-content: center; } -.glamor-0:hover { +.emotion-0:hover { color: blue; } -.glamor-0:after { +.emotion-0:after { content: " "; color: red; } @media (min-width:420px) { - .glamor-0 { + .emotion-0 { color: green; } }
`; exports[`css computed key is only dynamic 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 10px; width: 20px; }
`; exports[`css css variables 1`] = ` -.glamor-0 { +.emotion-0 { --some-var: 1px; width: var(--some-var); }
`; exports[`css explicit & 1`] = ` -.glamor-0.another-class { +.emotion-0.another-class { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -160,7 +160,7 @@ exports[`css explicit & 1`] = ` }
`; @@ -175,12 +175,12 @@ exports[`css explicit & 2`] = ` exports[`css explicit false 1`] = `
`; exports[`css falsy property value in object 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -188,32 +188,32 @@ exports[`css falsy property value in object 1`] = ` }
`; exports[`css falsy value in nested selector on object 1`] = ` -.glamor-0:hover { +.emotion-0:hover { color: hotpink; }
`; exports[`css float property 1`] = ` -.glamor-0 { +.emotion-0 { float: left; }
`; exports[`css flushes correctly 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -221,29 +221,29 @@ exports[`css flushes correctly 1`] = ` }
`; exports[`css flushes correctly 2`] = `
`; exports[`css handles array of objects 1`] = ` -.glamor-0 { +.emotion-0 { height: 50px; width: 20px; }
`; exports[`css handles more than 10 dynamic properties 1`] = ` -.glamor-0 { +.emotion-0 { text-decoration: underline; border-right: solid blue 54px; background: white; @@ -258,12 +258,12 @@ exports[`css handles more than 10 dynamic properties 1`] = ` }
`; exports[`css handles objects 1`] = ` -.glamor-0 { +.emotion-0 { float: left; display: -webkit-box; display: -webkit-flex; @@ -276,17 +276,17 @@ exports[`css handles objects 1`] = ` }
`; exports[`css manually use label property 1`] = ` -.glamor-0 { +.emotion-0 { color: hotpink; }
`; @@ -312,69 +312,69 @@ exports[`css media query specificity 1`] = ` `; exports[`css media query specificity 2`] = ` -.glamor-0 { +.emotion-0 { width: 32px; height: 32px; border-radius: 50%; } @media (min-width:420px) { - .glamor-0 { + .emotion-0 { width: 96px; height: 96px; } }
`; exports[`css multiline declaration 1`] = ` -.glamor-0 { +.emotion-0 { display: grid; grid: 'AppBar' auto 'Main' 1fr / 1fr; }
`; exports[`css multiline selector 1`] = ` -.glamor-0 .my-class:hover .its-child { +.emotion-0 .my-class:hover .its-child { background: pink; }
`; exports[`css nested 1`] = ` -.glamor-0 { +.emotion-0 { color: yellow; } -.glamor-0 .some-class { +.emotion-0 .some-class { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } -.glamor-0 .some-class .some-other-class { +.emotion-0 .some-class .some-other-class { background-color: hotpink; } @media (max-width:600px) { - .glamor-0 .some-class { + .emotion-0 .some-class { background-color: pink; } }
`; @@ -442,49 +442,49 @@ exports[`css nested at rules 1`] = ` `; exports[`css nested selector without parent declaration 1`] = ` -.glamor-0 { +.emotion-0 { color: blue; } -.glamor-1 .glamor-0 { +.emotion-1 .emotion-0 { color: red; }
`; exports[`css null rule 1`] = `
`; exports[`css null value 1`] = `
`; exports[`css null value 2`] = `
`; exports[`css random expression 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; background: green; } @media (min-width:420px) { - .glamor-0 { + .emotion-0 { color: blue; width: 96px; height: 96px; @@ -493,12 +493,12 @@ exports[`css random expression 1`] = ` }
`; exports[`css random interpolation with undefined values 1`] = ` -.glamor-0 { +.emotion-0 { -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; @@ -506,12 +506,12 @@ exports[`css random interpolation with undefined values 1`] = ` }
`; exports[`css registered styles as nested selector value in object 1`] = ` -.glamor-0:hover { +.emotion-0:hover { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -520,38 +520,38 @@ exports[`css registered styles as nested selector value in object 1`] = ` }
`; exports[`css return function in interpolation 1`] = ` -.glamor-0 { +.emotion-0 { color: blue; }
`; exports[`css rule after media query 1`] = ` @media (min-width:600px) { - .glamor-0 { + .emotion-0 { color: green; } } -.glamor-0:hover { +.emotion-0:hover { color: hotpink; }
`; exports[`css simple composition 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -562,17 +562,17 @@ exports[`css simple composition 1`] = ` justify-content: center; } -.glamor-0:hover { +.emotion-0:hover { color: hotpink; }
`; exports[`css weakmap 1`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -580,12 +580,12 @@ exports[`css weakmap 1`] = ` }
`; exports[`css weakmap 2`] = ` -.glamor-0 { +.emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -593,6 +593,6 @@ exports[`css weakmap 2`] = ` }
`; diff --git a/packages/emotion/test/__snapshots__/cx.test.js.snap b/packages/emotion/test/__snapshots__/cx.test.js.snap index fa111933d..60b3fd86a 100644 --- a/packages/emotion/test/__snapshots__/cx.test.js.snap +++ b/packages/emotion/test/__snapshots__/cx.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`cx all types 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; background: green; font-size: 20px; @@ -11,12 +11,12 @@ exports[`cx all types 1`] = ` }
`; exports[`cx fun fun functions 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; background: green; font-size: 20px; @@ -26,23 +26,23 @@ exports[`cx fun fun functions 1`] = ` }
`; exports[`cx merge 2 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; background: green; }
`; exports[`cx merge 3 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; background: green; font-size: 20px; @@ -50,12 +50,12 @@ exports[`cx merge 3 1`] = ` }
`; exports[`cx merge 4 1`] = ` -.glamor-0 { +.emotion-0 { font-size: 20px; background: green; font-size: 20px; @@ -63,6 +63,6 @@ exports[`cx merge 4 1`] = ` }
`; diff --git a/packages/emotion/test/__snapshots__/keyframes.test.js.snap b/packages/emotion/test/__snapshots__/keyframes.test.js.snap index 7544856b1..3cc2c473c 100644 --- a/packages/emotion/test/__snapshots__/keyframes.test.js.snap +++ b/packages/emotion/test/__snapshots__/keyframes.test.js.snap @@ -1,13 +1,13 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`keyframes keyframes with interpolation 1`] = ` -.glamor-0 { +.emotion-0 { -webkit-animation: animation-1q8eu9e 2s linear infinite; animation: animation-1q8eu9e 2s linear infinite; }

hello world

@@ -49,13 +49,13 @@ exports[`keyframes keyframes with interpolation 2`] = ` `; exports[`keyframes renders 1`] = ` -.glamor-0 { +.emotion-0 { -webkit-animation: animation-16qlhaj 2s linear infinite; animation: animation-16qlhaj 2s linear infinite; }

hello world

diff --git a/packages/emotion/test/__snapshots__/label-pattern.test.js.snap b/packages/emotion/test/__snapshots__/label-pattern.test.js.snap index ee4fe87e5..f5281e919 100644 --- a/packages/emotion/test/__snapshots__/label-pattern.test.js.snap +++ b/packages/emotion/test/__snapshots__/label-pattern.test.js.snap @@ -1,14 +1,14 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`label pattern input + label styled 1`] = ` -.glamor-0 + label::after { +.emotion-0 + label::after { color: pink; background: orange; }