react-flexr
Advanced tools
Comparing version 1.3.4 to 1.4.0
@@ -126,9 +126,9 @@ 'use strict'; | ||
var growStyle = typeof grow === 'number' ? grow : grow === false ? 0 : 1; | ||
var growStyle = typeof grow === 'number' ? grow : grow === false ? 0 : undefined; | ||
var responsiveSize = findResponsiveSize(_staticProperties$baseMethods$breakpoints$variables.breakpoints, this.props); | ||
this.styles = [CellStyles.base, align ? CellStyles[align] : null, gutter ? { padding: '0 ' + gutter } : null, flex ? CellStyles.flex : null, responsiveSize ? calcWidth(responsiveSize) : size ? calcWidth(size) : grow ? { flex: '' + growStyle + ' 1 auto' } : null, style, styles]; | ||
this.styles = [CellStyles.base, align ? CellStyles[align] : null, gutter ? { padding: '0 ' + gutter } : null, flex ? CellStyles.flex : null, responsiveSize && responsiveSize !== 'hidden' ? calcWidth(responsiveSize) : size ? calcWidth(size) : growStyle !== undefined ? { flex: '' + growStyle + ' 1 auto' } : null, style, styles]; | ||
return _React2['default'].createElement( | ||
return responsiveSize === 'hidden' ? null : _React2['default'].createElement( | ||
'div', | ||
@@ -135,0 +135,0 @@ _extends({}, rest, { styles: this.styles }), |
{ | ||
"name": "react-flexr", | ||
"version": "1.3.4", | ||
"version": "1.4.0", | ||
"description": "React flexbox grid made simple.", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
@@ -56,3 +56,3 @@ import StyleSheet from 'react-style'; | ||
grow === false ? 0 : | ||
1; | ||
undefined; | ||
@@ -66,5 +66,5 @@ const responsiveSize = findResponsiveSize(breakpoints, this.props); | ||
flex ? CellStyles.flex : null, | ||
responsiveSize ? calcWidth( responsiveSize ) : | ||
responsiveSize && responsiveSize !== 'hidden' ? calcWidth( responsiveSize ) : | ||
size ? calcWidth(size) : | ||
grow ? { flex: `${ growStyle } 1 auto` } : null, | ||
growStyle !== undefined ? { flex: `${ growStyle } 1 auto` } : null, | ||
style, | ||
@@ -74,3 +74,4 @@ styles | ||
return ( | ||
return responsiveSize === 'hidden' ? | ||
null : ( | ||
<div { ...rest } styles={ this.styles }> | ||
@@ -77,0 +78,0 @@ { children } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24412
506