react-flexr
Advanced tools
Comparing version 1.6.2 to 1.6.3
@@ -47,5 +47,7 @@ 'use strict'; | ||
base: { | ||
flex: 1, | ||
padding: '0 ' + _defaults.variables.gutter | ||
}, | ||
baseFlex: { | ||
flex: 1 | ||
}, | ||
flex: { | ||
@@ -84,7 +86,5 @@ display: 'flex' | ||
var calcSize = '0 0 ' + 100 / denominator * numerator + '%'; | ||
var calcSize = '' + 100 / denominator * numerator + '%'; | ||
return { | ||
WebkitFlex: calcSize, | ||
msFlex: calcSize, | ||
flex: calcSize | ||
width: calcSize | ||
}; | ||
@@ -113,4 +113,5 @@ } | ||
flex: '' + growStyle + ' 1 auto', | ||
WebkitFlex: '' + growStyle + ' 1 auto' | ||
} : null, style].concat(Array.isArray(styles) ? styles : [styles]); | ||
WebkitFlex: '' + growStyle + ' 1 auto', | ||
msFlex: '' + growStyle + ' 1 auto' | ||
} : CellStyles.baseFlex, style].concat(Array.isArray(styles) ? styles : [styles]); | ||
@@ -117,0 +118,0 @@ return currentBreakpointProp === 'hidden' ? null : _react2['default'].createElement( |
@@ -10,5 +10,7 @@ import StyleSheet from 'react-style'; | ||
base: { | ||
flex: 1, | ||
padding: `0 ${ variables.gutter }` | ||
}, | ||
baseFlex: { | ||
flex: 1 | ||
}, | ||
flex: { | ||
@@ -51,7 +53,5 @@ display: 'flex' | ||
const [ numerator, denominator ] = size ? size.split('/') : []; | ||
const calcSize = `0 0 ${ ( 100 / denominator ) * numerator }%`; | ||
const calcSize = `${ ( 100 / denominator ) * numerator }%`; | ||
return { | ||
WebkitFlex: calcSize, | ||
msFlex: calcSize, | ||
flex: calcSize | ||
width: calcSize | ||
}; | ||
@@ -88,4 +88,5 @@ } | ||
flex: `${ growStyle } 1 auto`, | ||
WebkitFlex: `${ growStyle } 1 auto` | ||
} : null, | ||
WebkitFlex: `${ growStyle } 1 auto`, | ||
msFlex: `${ growStyle } 1 auto` | ||
} : CellStyles.baseFlex, | ||
style | ||
@@ -92,0 +93,0 @@ ].concat( Array.isArray(styles) ? styles : [styles] ); |
{ | ||
"name": "react-flexr", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"description": "React flexbox grid made simple.", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
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
31454
605