react-credit-calculator
Advanced tools
Comparing version 1.0.0-rc1.4 to 1.0.0-rc1.5
@@ -381,3 +381,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
get: function get() { | ||
return this.context.calculationValue >= this.context.Conditions.max || this.context.calculationValue <= this.context.Conditions.min; | ||
return this.props.increase ? this.context.calculationValue >= this.context.Conditions.max : this.context.calculationValue <= this.context.Conditions.min; | ||
} | ||
@@ -1028,2 +1028,10 @@ }]); | ||
var __rest = undefined && undefined.__rest || function (s, e) { | ||
var t = {}; | ||
for (var p in s) { | ||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; | ||
}if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]]; | ||
}return t; | ||
}; | ||
var CalculatorSummaryButtonPropTypes = exports.CalculatorSummaryButtonPropTypes = { | ||
@@ -1054,3 +1062,7 @@ onSummary: PropTypes.func.isRequired | ||
value: function render() { | ||
return React.createElement("button", Object.assign({ type: "button" }, this.props, { onClick: this.handleClick }), this.props.children); | ||
var _a = this.props, | ||
onSummary = _a.onSummary, | ||
children = _a.children, | ||
childProps = __rest(_a, ["onSummary", "children"]); | ||
return React.createElement("button", Object.assign({ type: "button" }, childProps, { onClick: this.handleClick }), children); | ||
} | ||
@@ -1057,0 +1069,0 @@ }]); |
{ | ||
"name": "react-credit-calculator", | ||
"version": "1.0.0-rc1.4", | ||
"version": "1.0.0-rc1.5", | ||
"description": "Credit calculator based on rc-slider", | ||
@@ -28,3 +28,3 @@ "main": "build/index.js", | ||
"@types/chai-enzyme": "^0.6.3", | ||
"@types/enzyme": "^2.8.8", | ||
"@types/enzyme": "^2.8.12", | ||
"@types/mocha": "^2.2.43", | ||
@@ -45,3 +45,4 @@ "@types/prop-types": "^15.5.1", | ||
"cross-env": "^5.0.5", | ||
"enzyme": "^2.9.1", | ||
"enzyme": "^3.3.0", | ||
"enzyme-adapter-react-16": "^1.1.1", | ||
"jsdom": "^11.2.0", | ||
@@ -48,0 +49,0 @@ "jsdom-global": "^3.0.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
99347
2112
38