Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-flexr

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-flexr - npm Package Compare versions

Comparing version 1.3.4 to 1.4.0

6

lib/cell.component.js

@@ -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 }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc