File tree Expand file tree Collapse file tree 9 files changed +1709
-1578
lines changed
transpile-css-prop-all-options-on Expand file tree Collapse file tree 9 files changed +1709
-1578
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ branches:
55node_js :
66 - 10
77 - 12
8+ - 14
Original file line number Diff line number Diff line change 2222 "babel-core" : " 7.0.0-bridge.0" ,
2323 "babel-plugin-transform-es2015-modules-commonjs" : " ^6.26.2" ,
2424 "babel-test" : " ^0.2.1" ,
25- "jest" : " ^25 .1.0" ,
25+ "jest" : " ^26 .1.0" ,
2626 "jest-file-snapshot" : " ^0.3.6" ,
27- "prettier" : " ^1.18.2 " ,
27+ "prettier" : " ^2.0.5 " ,
2828 "rimraf" : " ^3.0.0" ,
2929 "styled-components" : " ^5.0.0"
3030 },
Original file line number Diff line number Diff line change 11import { createGlobalStyle } from 'styled-components' ;
2- const GlobalStyle =
3- /*#__PURE__*/
4- createGlobalStyle `
2+ const GlobalStyle = /*#__PURE__*/ createGlobalStyle `
53 body {
64 color: red;
75 }
Original file line number Diff line number Diff line change 11import styled , { css } from 'styled-components' ;
2- const partial =
3- /*#__PURE__*/
4- css ( [ "color:red;" ] ) ;
5- const Component =
6- /*#__PURE__*/
7- styled . div . withConfig ( {
2+ const partial = /*#__PURE__*/ css ( [ "color:red;" ] ) ;
3+ const Component = /*#__PURE__*/ styled . div . withConfig ( {
84 displayName : "code__Component" ,
95 componentId : "sc-4wpzk3-0"
106} ) ( [ "" , ";background:blue;" ] , partial ) ;
Original file line number Diff line number Diff line change 11import { keyframes } from 'styled-components' ;
2- const Animation =
3- /*#__PURE__*/
4- keyframes ( [ "0%{opacity:0;}100%{opacity:1;}" ] ) ;
2+ const Animation = /*#__PURE__*/ keyframes ( [ "0%{opacity:0;}100%{opacity:1;}" ] ) ;
Original file line number Diff line number Diff line change 11import styled from 'styled-components' ;
2- const Test =
3- /*#__PURE__*/
4- styled . div . withConfig ( {
2+ const Test = /*#__PURE__*/ styled . div . withConfig ( {
53 displayName : "code__Test" ,
64 componentId : "u20i28-0"
75} ) ( [ "width:100%;" ] ) ;
8- const Test2 =
9- /*#__PURE__*/
10- styled ( 'div' ) . withConfig ( {
6+ const Test2 = /*#__PURE__*/ styled ( 'div' ) . withConfig ( {
117 displayName : "code__Test2" ,
128 componentId : "u20i28-1"
139} ) ( [ "" ] ) ;
@@ -29,23 +25,17 @@ Component = styled.div.withConfig({
2925 displayName : "code__Component" ,
3026 componentId : "u20i28-5"
3127} ) ( [ "" ] ) ;
32- const WrappedComponent =
33- /*#__PURE__*/
34- styled ( Inner ) . withConfig ( {
28+ const WrappedComponent = /*#__PURE__*/ styled ( Inner ) . withConfig ( {
3529 displayName : "code__WrappedComponent" ,
3630 componentId : "u20i28-6"
3731} ) ( [ "" ] ) ;
38- const StyledObjectForm =
39- /*#__PURE__*/
40- styled . div . withConfig ( {
32+ const StyledObjectForm = /*#__PURE__*/ styled . div . withConfig ( {
4133 displayName : "code__StyledObjectForm" ,
4234 componentId : "u20i28-7"
4335} ) ( {
4436 color : red
4537} ) ;
46- const StyledFunctionForm =
47- /*#__PURE__*/
48- styled . div . withConfig ( {
38+ const StyledFunctionForm = /*#__PURE__*/ styled . div . withConfig ( {
4939 displayName : "code__StyledFunctionForm" ,
5040 componentId : "u20i28-8"
5141} ) ( p => ( {
Original file line number Diff line number Diff line change 11import { withTheme } from 'styled-components' ;
2- const ThemedComponent =
3- /*#__PURE__*/
4- withTheme ( ( ) => null ) ;
2+ const ThemedComponent = /*#__PURE__*/ withTheme ( ( ) => null ) ;
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ var _StyledP13 = (0, _styledComponents["default"])("p").withConfig({
247247 displayName : "code___StyledP13" ,
248248 componentId : "sc-7evkve-20"
249249} ) ( function ( p ) {
250- return _objectSpread ( { } , _objectSpread ( {
250+ return _objectSpread ( _objectSpread ( { } , _objectSpread ( {
251251 '::before' : {
252252 content : p . _css8
253253 } ,
@@ -261,7 +261,7 @@ var _StyledP13 = (0, _styledComponents["default"])("p").withConfig({
261261 '::after' : {
262262 content : p . _css11
263263 }
264- } ) , {
264+ } ) ) , { } , {
265265 background : p . _css12 ,
266266 textAlign : 'left' ,
267267 '::before' : {
You can’t perform that action at this time.
0 commit comments