react-reflex
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -82,8 +82,2 @@ 'use strict'; | ||
///////////////////////////////////////////////////////// | ||
///////////////////////////////////////////////////////// | ||
// | ||
// | ||
///////////////////////////////////////////////////////// | ||
function ReflexContainer(props) { | ||
@@ -118,8 +112,2 @@ (0, _classCallCheck3.default)(this, ReflexContainer); | ||
///////////////////////////////////////////////////////// | ||
// | ||
// | ||
///////////////////////////////////////////////////////// | ||
(0, _createClass3.default)(ReflexContainer, [{ | ||
@@ -258,6 +246,4 @@ key: 'setPartialState', | ||
case 'vertical': | ||
default: | ||
return domElement.offsetWidth; | ||
default: | ||
return 0; | ||
} | ||
@@ -283,2 +269,3 @@ } | ||
case 'vertical': | ||
default: | ||
return pos.pageX - this.previousPos; | ||
@@ -307,2 +294,3 @@ } | ||
case 'vertical': | ||
default: | ||
document.body.style.cursor = 'col-resize'; | ||
@@ -347,2 +335,3 @@ this.previousPos = pos.pageX; | ||
case 'vertical': | ||
default: | ||
this.previousPos = pos.pageX; | ||
@@ -617,8 +606,5 @@ break; | ||
case 'vertical': | ||
default: | ||
return 1.0 / domElement.offsetWidth; | ||
default: | ||
return 0; | ||
} | ||
@@ -935,10 +921,23 @@ } | ||
///////////////////////////////////////////////////////// | ||
// | ||
// | ||
///////////////////////////////////////////////////////// | ||
ReflexContainer.propTypes = { | ||
orientation: _propTypes2.default.string, | ||
orientation: _propTypes2.default.oneOf(['horizontal', 'vertical']), | ||
className: _propTypes2.default.string, | ||
style: _propTypes2.default.object }; | ||
ReflexContainer.defaultProps = { | ||
style: _propTypes2.default.object | ||
///////////////////////////////////////////////////////// | ||
// | ||
// | ||
///////////////////////////////////////////////////////// | ||
};ReflexContainer.defaultProps = { | ||
orientation: 'horizontal', | ||
className: '', | ||
style: {} }; | ||
style: {} | ||
}; | ||
exports.default = ReflexContainer; |
@@ -30,8 +30,2 @@ import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray'; | ||
///////////////////////////////////////////////////////// | ||
///////////////////////////////////////////////////////// | ||
// | ||
// | ||
///////////////////////////////////////////////////////// | ||
function ReflexContainer(props) { | ||
@@ -66,8 +60,2 @@ _classCallCheck(this, ReflexContainer); | ||
///////////////////////////////////////////////////////// | ||
// | ||
// | ||
///////////////////////////////////////////////////////// | ||
_createClass(ReflexContainer, [{ | ||
@@ -206,6 +194,4 @@ key: 'setPartialState', | ||
case 'vertical': | ||
default: | ||
return domElement.offsetWidth; | ||
default: | ||
return 0; | ||
} | ||
@@ -231,2 +217,3 @@ } | ||
case 'vertical': | ||
default: | ||
return pos.pageX - this.previousPos; | ||
@@ -255,2 +242,3 @@ } | ||
case 'vertical': | ||
default: | ||
document.body.style.cursor = 'col-resize'; | ||
@@ -295,2 +283,3 @@ this.previousPos = pos.pageX; | ||
case 'vertical': | ||
default: | ||
this.previousPos = pos.pageX; | ||
@@ -565,8 +554,5 @@ break; | ||
case 'vertical': | ||
default: | ||
return 1.0 / domElement.offsetWidth; | ||
default: | ||
return 0; | ||
} | ||
@@ -884,12 +870,23 @@ } | ||
///////////////////////////////////////////////////////// | ||
// | ||
// | ||
///////////////////////////////////////////////////////// | ||
ReflexContainer.propTypes = { | ||
orientation: PropTypes.string, | ||
orientation: PropTypes.oneOf(['horizontal', 'vertical']), | ||
className: PropTypes.string, | ||
style: PropTypes.object }; | ||
ReflexContainer.defaultProps = { | ||
style: PropTypes.object | ||
///////////////////////////////////////////////////////// | ||
// | ||
// | ||
///////////////////////////////////////////////////////// | ||
};ReflexContainer.defaultProps = { | ||
orientation: 'horizontal', | ||
className: '', | ||
style: {} }; | ||
style: {} | ||
}; | ||
export default ReflexContainer; |
{ | ||
"name": "react-reflex", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Flex layout component for advanced React web applications", | ||
@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1574294
18
2628