22
33var _styledComponents = _interopRequireDefault ( require ( "styled-components" ) ) ;
44
5+ var _excluded = [ "bg" , "content" , "height" , "width" ] ;
6+
57var _templateObject , _templateObject2 , _templateObject3 , _templateObject4 , _templateObject5 , _templateObject6 , _templateObject7 , _templateObject8 , _templateObject9 , _templateObject10 , _templateObject11 , _templateObject12 , _templateObject13 , _templateObject14 , _templateObject15 , _templateObject16 , _templateObject17 ;
68
79function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { "default" : obj } ; }
@@ -10,6 +12,10 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
1012
1113function _objectSpread ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] != null ? arguments [ i ] : { } ; if ( i % 2 ) { ownKeys ( Object ( source ) , true ) . forEach ( function ( key ) { _defineProperty ( target , key , source [ key ] ) ; } ) ; } else if ( Object . getOwnPropertyDescriptors ) { Object . defineProperties ( target , Object . getOwnPropertyDescriptors ( source ) ) ; } else { ownKeys ( Object ( source ) ) . forEach ( function ( key ) { Object . defineProperty ( target , key , Object . getOwnPropertyDescriptor ( source , key ) ) ; } ) ; } } return target ; }
1214
15+ function _objectWithoutProperties ( source , excluded ) { if ( source == null ) return { } ; var target = _objectWithoutPropertiesLoose ( source , excluded ) ; var key , i ; if ( Object . getOwnPropertySymbols ) { var sourceSymbolKeys = Object . getOwnPropertySymbols ( source ) ; for ( i = 0 ; i < sourceSymbolKeys . length ; i ++ ) { key = sourceSymbolKeys [ i ] ; if ( excluded . indexOf ( key ) >= 0 ) continue ; if ( ! Object . prototype . propertyIsEnumerable . call ( source , key ) ) continue ; target [ key ] = source [ key ] ; } } return target ; }
16+
17+ function _objectWithoutPropertiesLoose ( source , excluded ) { if ( source == null ) return { } ; var target = { } ; var sourceKeys = Object . keys ( source ) ; var key , i ; for ( i = 0 ; i < sourceKeys . length ; i ++ ) { key = sourceKeys [ i ] ; if ( excluded . indexOf ( key ) >= 0 ) continue ; target [ key ] = source [ key ] ; } return target ; }
18+
1319function _defineProperty ( obj , key , value ) { if ( key in obj ) { Object . defineProperty ( obj , key , { value : value , enumerable : true , configurable : true , writable : true } ) ; } else { obj [ key ] = value ; } return obj ; }
1420
1521function _taggedTemplateLiteral ( strings , raw ) { if ( ! raw ) { raw = strings . slice ( 0 ) ; } return Object . freeze ( Object . defineProperties ( strings , { raw : { value : Object . freeze ( raw ) } } ) ) ; }
@@ -188,6 +194,18 @@ var ObjectPropWithSpread = function ObjectPropWithSpread() {
188194 } : { } } /> ;
189195} ;
190196
197+ var ObjectInterpolationLogical = function ObjectInterpolationLogical ( _ref4 ) {
198+ var bg = _ref4 . bg ,
199+ content = _ref4 . content ,
200+ height = _ref4 . height ,
201+ width = _ref4 . width ,
202+ p = _objectWithoutProperties ( _ref4 , _excluded ) ;
203+
204+ return < _StyledP14 $_css15 = { bg || 'red' } $_css16 = { height !== null && height !== void 0 ? height : '100%' } $_css17 = { width ? "" . concat ( width , "px" ) : '100%' } $_css18 = { content } >
205+ H
206+ </ _StyledP14 > ;
207+ } ;
208+
191209var _StyledP = ( 0 , _styledComponents [ "default" ] ) ( "p" ) ( _templateObject3 || ( _templateObject3 = _taggedTemplateLiteral ( [ "flex: 1;" ] ) ) ) ;
192210
193211var _StyledP2 = ( 0 , _styledComponents [ "default" ] ) ( "p" ) ( _templateObject4 || ( _templateObject4 = _taggedTemplateLiteral ( [ "\n flex: 1;\n " ] ) ) ) ;
@@ -255,3 +273,14 @@ var _StyledP13 = (0, _styledComponents["default"])("p")(function (p) {
255273var _StyledDiv = ( 0 , _styledComponents [ "default" ] ) ( "div" ) ( function ( p ) {
256274 return _objectSpread ( _objectSpread ( { } , p . $_css13 ) , p . $_css14 ) ;
257275} ) ;
276+
277+ var _StyledP14 = ( 0 , _styledComponents [ "default" ] ) ( "p" ) ( function ( p ) {
278+ return {
279+ background : p . $_css15 ,
280+ height : p . $_css16 ,
281+ width : p . $_css17 ,
282+ '::before' : {
283+ content : p . $_css18
284+ }
285+ } ;
286+ } ) ;
0 commit comments