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

react-credit-calculator

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-credit-calculator - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

650

build/index.js

@@ -84,19 +84,4 @@ (function webpackUniversalModuleDefinition(root, factory) {

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Calculator = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__("react");
var React = _interopRequireWildcard(_react);
var _CalculatorProps = __webpack_require__("./src/Calculator/CalculatorProps.ts");
var _CalculatorContext = __webpack_require__("./src/Calculator/CalculatorContext.ts");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -108,3 +93,8 @@

var Calculator = exports.Calculator = function (_React$Component) {
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__("react");
var CalculatorProps_1 = __webpack_require__("./src/Calculator/CalculatorProps.ts");
var CalculatorContext_1 = __webpack_require__("./src/Calculator/CalculatorContext.ts");
var Calculator = function (_React$Component) {
_inherits(Calculator, _React$Component);

@@ -194,4 +184,5 @@

Calculator.propTypes = _CalculatorProps.CalculatorPropTypes;
Calculator.childContextTypes = _CalculatorContext.CalculatorContextTypes;
Calculator.propTypes = CalculatorProps_1.CalculatorPropTypes;
Calculator.childContextTypes = CalculatorContext_1.CalculatorContextTypes;
exports.Calculator = Calculator;

@@ -206,14 +197,5 @@ /***/ }),

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorContextTypes = undefined;
var _propTypes = __webpack_require__("prop-types");
var PropTypes = _interopRequireWildcard(_propTypes);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
var CalculatorContextTypes = exports.CalculatorContextTypes = {
Object.defineProperty(exports, "__esModule", { value: true });
var PropTypes = __webpack_require__("prop-types");
exports.CalculatorContextTypes = {
Credit: PropTypes.shape({

@@ -250,14 +232,5 @@ amount: PropTypes.number.isRequired,

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorPropTypes = undefined;
var _propTypes = __webpack_require__("prop-types");
var PropTypes = _interopRequireWildcard(_propTypes);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
var CalculatorPropTypes = exports.CalculatorPropTypes = {
Object.defineProperty(exports, "__esModule", { value: true });
var PropTypes = __webpack_require__("prop-types");
exports.CalculatorPropTypes = {
interest: PropTypes.number.isRequired,

@@ -288,42 +261,12 @@ amount: PropTypes.shape({

Object.defineProperty(exports, "__esModule", {
value: true
});
var _Calculator = __webpack_require__("./src/Calculator/Calculator.tsx");
Object.keys(_Calculator).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _Calculator[key];
function __export(m) {
for (var p in m) {
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
});
});
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(__webpack_require__("./src/Calculator/Calculator.tsx"));
__export(__webpack_require__("./src/Calculator/CalculatorContext.ts"));
__export(__webpack_require__("./src/Calculator/CalculatorProps.ts"));
var _CalculatorContext = __webpack_require__("./src/Calculator/CalculatorContext.ts");
Object.keys(_CalculatorContext).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorContext[key];
}
});
});
var _CalculatorProps = __webpack_require__("./src/Calculator/CalculatorProps.ts");
Object.keys(_CalculatorProps).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorProps[key];
}
});
});
/***/ }),

@@ -337,19 +280,4 @@

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorButton = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__("react");
var React = _interopRequireWildcard(_react);
var _CalculatorControlWrapperContext = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperContext.ts");
var _CalculatorButtonProps = __webpack_require__("./src/CalculatorButton/CalculatorButtonProps.ts");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -369,4 +297,8 @@

};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__("react");
var CalculatorControlWrapperContext_1 = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperContext.ts");
var CalculatorButtonProps_1 = __webpack_require__("./src/CalculatorButton/CalculatorButtonProps.ts");
var CalculatorButton = exports.CalculatorButton = function (_React$Component) {
var CalculatorButton = function (_React$Component) {
_inherits(CalculatorButton, _React$Component);

@@ -407,4 +339,5 @@

CalculatorButton.contextTypes = _CalculatorControlWrapperContext.CalculatorControlWrapperContextTypes;
CalculatorButton.propTypes = _CalculatorButtonProps.CalculatorButtonPropTypes;
CalculatorButton.contextTypes = CalculatorControlWrapperContext_1.CalculatorControlWrapperContextTypes;
CalculatorButton.propTypes = CalculatorButtonProps_1.CalculatorButtonPropTypes;
exports.CalculatorButton = CalculatorButton;

@@ -419,14 +352,5 @@ /***/ }),

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorButtonPropTypes = undefined;
var _propTypes = __webpack_require__("prop-types");
var PropTypes = _interopRequireWildcard(_propTypes);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
var CalculatorButtonPropTypes = exports.CalculatorButtonPropTypes = {
Object.defineProperty(exports, "__esModule", { value: true });
var PropTypes = __webpack_require__("prop-types");
exports.CalculatorButtonPropTypes = {
increase: PropTypes.bool.isRequired

@@ -443,30 +367,11 @@ };

Object.defineProperty(exports, "__esModule", {
value: true
});
var _CalculatorButton = __webpack_require__("./src/CalculatorButton/CalculatorButton.tsx");
Object.keys(_CalculatorButton).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorButton[key];
function __export(m) {
for (var p in m) {
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
});
});
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(__webpack_require__("./src/CalculatorButton/CalculatorButton.tsx"));
__export(__webpack_require__("./src/CalculatorButton/CalculatorButtonProps.ts"));
var _CalculatorButtonProps = __webpack_require__("./src/CalculatorButton/CalculatorButtonProps.ts");
Object.keys(_CalculatorButtonProps).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorButtonProps[key];
}
});
});
/***/ }),

@@ -480,21 +385,4 @@

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorControlWrapper = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__("react");
var React = _interopRequireWildcard(_react);
var _CalculatorControlWrapperProps = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperProps.ts");
var _CalculatorControlWrapperContext = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperContext.ts");
var _CalculatorContext = __webpack_require__("./src/Calculator/CalculatorContext.ts");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -506,3 +394,9 @@

var CalculatorControlWrapper = exports.CalculatorControlWrapper = function (_React$Component) {
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__("react");
var CalculatorControlWrapperProps_1 = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperProps.ts");
var CalculatorControlWrapperContext_1 = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperContext.ts");
var CalculatorContext_1 = __webpack_require__("./src/Calculator/CalculatorContext.ts");
var CalculatorControlWrapper = function (_React$Component) {
_inherits(CalculatorControlWrapper, _React$Component);

@@ -534,5 +428,5 @@

switch (this.props.type) {
case _CalculatorControlWrapperProps.CalculatorControlTypes.amount:
case CalculatorControlWrapperProps_1.CalculatorControlTypes.amount:
return this.context.onAmountChange;
case _CalculatorControlWrapperProps.CalculatorControlTypes.term:
case CalculatorControlWrapperProps_1.CalculatorControlTypes.term:
return this.context.onTermChange;

@@ -550,5 +444,6 @@ default:

CalculatorControlWrapper.propTypes = _CalculatorControlWrapperProps.CalculatorControlWrapperPropTypes;
CalculatorControlWrapper.contextTypes = _CalculatorContext.CalculatorContextTypes;
CalculatorControlWrapper.childContextTypes = _CalculatorControlWrapperContext.CalculatorControlWrapperContextTypes;
CalculatorControlWrapper.propTypes = CalculatorControlWrapperProps_1.CalculatorControlWrapperPropTypes;
CalculatorControlWrapper.contextTypes = CalculatorContext_1.CalculatorContextTypes;
CalculatorControlWrapper.childContextTypes = CalculatorControlWrapperContext_1.CalculatorControlWrapperContextTypes;
exports.CalculatorControlWrapper = CalculatorControlWrapper;

@@ -563,14 +458,5 @@ /***/ }),

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorControlWrapperContextTypes = undefined;
var _propTypes = __webpack_require__("prop-types");
var PropTypes = _interopRequireWildcard(_propTypes);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
var CalculatorControlWrapperContextTypes = exports.CalculatorControlWrapperContextTypes = {
Object.defineProperty(exports, "__esModule", { value: true });
var PropTypes = __webpack_require__("prop-types");
exports.CalculatorControlWrapperContextTypes = {
Conditions: PropTypes.shape({

@@ -593,19 +479,10 @@ min: PropTypes.number.isRequired,

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorControlWrapperPropTypes = exports.CalculatorControlTypes = undefined;
var _propTypes = __webpack_require__("prop-types");
var PropTypes = _interopRequireWildcard(_propTypes);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
var CalculatorControlTypes = exports.CalculatorControlTypes = undefined;
Object.defineProperty(exports, "__esModule", { value: true });
var PropTypes = __webpack_require__("prop-types");
var CalculatorControlTypes;
(function (CalculatorControlTypes) {
CalculatorControlTypes["term"] = "Term";
CalculatorControlTypes["amount"] = "Amount";
})(CalculatorControlTypes || (exports.CalculatorControlTypes = CalculatorControlTypes = {}));
var CalculatorControlWrapperPropTypes = exports.CalculatorControlWrapperPropTypes = {
})(CalculatorControlTypes = exports.CalculatorControlTypes || (exports.CalculatorControlTypes = {}));
exports.CalculatorControlWrapperPropTypes = {
type: PropTypes.oneOf(Object.keys(CalculatorControlTypes).map(function (key) {

@@ -625,42 +502,12 @@ return CalculatorControlTypes[key];

Object.defineProperty(exports, "__esModule", {
value: true
});
var _CalculatorControlWrapper = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapper.tsx");
Object.keys(_CalculatorControlWrapper).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorControlWrapper[key];
function __export(m) {
for (var p in m) {
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
});
});
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(__webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapper.tsx"));
__export(__webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperContext.ts"));
__export(__webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperProps.ts"));
var _CalculatorControlWrapperContext = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperContext.ts");
Object.keys(_CalculatorControlWrapperContext).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorControlWrapperContext[key];
}
});
});
var _CalculatorControlWrapperProps = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperProps.ts");
Object.keys(_CalculatorControlWrapperProps).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorControlWrapperProps[key];
}
});
});
/***/ }),

@@ -674,17 +521,4 @@

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorInput = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__("react");
var React = _interopRequireWildcard(_react);
var _CalculatorControlWrapperContext = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperContext.ts");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -696,3 +530,7 @@

var CalculatorInput = exports.CalculatorInput = function (_React$Component) {
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__("react");
var CalculatorControlWrapperContext_1 = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperContext.ts");
var CalculatorInput = function (_React$Component) {
_inherits(CalculatorInput, _React$Component);

@@ -735,3 +573,4 @@

CalculatorInput.contextTypes = _CalculatorControlWrapperContext.CalculatorControlWrapperContextTypes;
CalculatorInput.contextTypes = CalculatorControlWrapperContext_1.CalculatorControlWrapperContextTypes;
exports.CalculatorInput = CalculatorInput;

@@ -746,17 +585,9 @@ /***/ }),

Object.defineProperty(exports, "__esModule", {
value: true
});
var _CalculatorInput = __webpack_require__("./src/CalculatorInput/CalculatorInput.tsx");
Object.keys(_CalculatorInput).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorInput[key];
function __export(m) {
for (var p in m) {
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
});
});
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(__webpack_require__("./src/CalculatorInput/CalculatorInput.tsx"));

@@ -771,19 +602,4 @@ /***/ }),

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorLabel = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__("react");
var React = _interopRequireWildcard(_react);
var _CalculatorLabelProps = __webpack_require__("./src/CalculatorLabel/CalculatorLabelProps.ts");
var _CalculatorLabelContext = __webpack_require__("./src/CalculatorLabel/CalculatorLabelContext.ts");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -803,4 +619,8 @@

};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__("react");
var CalculatorLabelProps_1 = __webpack_require__("./src/CalculatorLabel/CalculatorLabelProps.ts");
var CalculatorLabelContext_1 = __webpack_require__("./src/CalculatorLabel/CalculatorLabelContext.ts");
var CalculatorLabel = exports.CalculatorLabel = function (_React$Component) {
var CalculatorLabel = function (_React$Component) {
_inherits(CalculatorLabel, _React$Component);

@@ -827,11 +647,11 @@

switch (this.props.labelType) {
case _CalculatorLabelProps.CalculatorLabelTypes.amount:
case CalculatorLabelProps_1.CalculatorLabelTypes.amount:
return this.context.Credit.amount;
case _CalculatorLabelProps.CalculatorLabelTypes.interest:
case CalculatorLabelProps_1.CalculatorLabelTypes.interest:
return this.context.Credit.interest;
case _CalculatorLabelProps.CalculatorLabelTypes.term:
case CalculatorLabelProps_1.CalculatorLabelTypes.term:
return this.context.Credit.term;
case _CalculatorLabelProps.CalculatorLabelTypes.total:
case CalculatorLabelProps_1.CalculatorLabelTypes.total:
return Math.round(this.context.Credit.amount + this.context.Credit.interest);
case _CalculatorLabelProps.CalculatorLabelTypes.returnDate:
case CalculatorLabelProps_1.CalculatorLabelTypes.returnDate:
return this.props.returnDateFormat ? this.props.returnDateFormat(this.returnDate) : this.context.Credit.term;

@@ -854,4 +674,5 @@ default:

CalculatorLabel.propTypes = _CalculatorLabelProps.CalculatorLabelPropTypes;
CalculatorLabel.contextTypes = _CalculatorLabelContext.CalculatorLabelContextTypes;
CalculatorLabel.propTypes = CalculatorLabelProps_1.CalculatorLabelPropTypes;
CalculatorLabel.contextTypes = CalculatorLabelContext_1.CalculatorLabelContextTypes;
exports.CalculatorLabel = CalculatorLabel;

@@ -866,14 +687,5 @@ /***/ }),

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorLabelContextTypes = undefined;
var _propTypes = __webpack_require__("prop-types");
var PropTypes = _interopRequireWildcard(_propTypes);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
var CalculatorLabelContextTypes = exports.CalculatorLabelContextTypes = {
Object.defineProperty(exports, "__esModule", { value: true });
var PropTypes = __webpack_require__("prop-types");
exports.CalculatorLabelContextTypes = {
Credit: PropTypes.shape({

@@ -894,14 +706,5 @@ amount: PropTypes.number.isRequired,

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorLabelPropTypes = exports.CalculatorLabelTypes = undefined;
var _propTypes = __webpack_require__("prop-types");
var PropTypes = _interopRequireWildcard(_propTypes);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
var CalculatorLabelTypes = exports.CalculatorLabelTypes = undefined;
Object.defineProperty(exports, "__esModule", { value: true });
var PropTypes = __webpack_require__("prop-types");
var CalculatorLabelTypes;
(function (CalculatorLabelTypes) {

@@ -913,4 +716,4 @@ CalculatorLabelTypes["term"] = "term";

CalculatorLabelTypes["returnDate"] = "returnDate";
})(CalculatorLabelTypes || (exports.CalculatorLabelTypes = CalculatorLabelTypes = {}));
var CalculatorLabelPropTypes = exports.CalculatorLabelPropTypes = {
})(CalculatorLabelTypes = exports.CalculatorLabelTypes || (exports.CalculatorLabelTypes = {}));
exports.CalculatorLabelPropTypes = {
labelType: PropTypes.oneOf(Object.keys(CalculatorLabelTypes)),

@@ -928,42 +731,12 @@ returnDateFormat: PropTypes.func

Object.defineProperty(exports, "__esModule", {
value: true
});
var _CalculatorLabel = __webpack_require__("./src/CalculatorLabel/CalculatorLabel.tsx");
Object.keys(_CalculatorLabel).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorLabel[key];
function __export(m) {
for (var p in m) {
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
});
});
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(__webpack_require__("./src/CalculatorLabel/CalculatorLabel.tsx"));
__export(__webpack_require__("./src/CalculatorLabel/CalculatorLabelContext.ts"));
__export(__webpack_require__("./src/CalculatorLabel/CalculatorLabelProps.ts"));
var _CalculatorLabelContext = __webpack_require__("./src/CalculatorLabel/CalculatorLabelContext.ts");
Object.keys(_CalculatorLabelContext).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorLabelContext[key];
}
});
});
var _CalculatorLabelProps = __webpack_require__("./src/CalculatorLabel/CalculatorLabelProps.ts");
Object.keys(_CalculatorLabelProps).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorLabelProps[key];
}
});
});
/***/ }),

@@ -977,23 +750,4 @@

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorSlider = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__("react");
var React = _interopRequireWildcard(_react);
var _CalculatorControlWrapperContext = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperContext.ts");
var _rcSlider = __webpack_require__("rc-slider");
var _rcSlider2 = _interopRequireDefault(_rcSlider);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -1005,3 +759,8 @@

var CalculatorSlider = exports.CalculatorSlider = function (_React$Component) {
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__("react");
var CalculatorControlWrapperContext_1 = __webpack_require__("./src/CalculatorControlWrapper/CalculatorControlWrapperContext.ts");
var rc_slider_1 = __webpack_require__("rc-slider");
var CalculatorSlider = function (_React$Component) {
_inherits(CalculatorSlider, _React$Component);

@@ -1018,3 +777,3 @@

value: function render() {
return React.createElement(_rcSlider2.default, Object.assign({}, this.props, { value: this.context.calculationValue, min: this.context.Conditions.min, max: this.context.Conditions.max, step: this.context.Conditions.step, onChange: this.context.onCalculationChange }));
return React.createElement(rc_slider_1.default, Object.assign({}, this.props, { value: this.context.calculationValue, min: this.context.Conditions.min, max: this.context.Conditions.max, step: this.context.Conditions.step, onChange: this.context.onCalculationChange }));
}

@@ -1026,3 +785,4 @@ }]);

CalculatorSlider.contextTypes = _CalculatorControlWrapperContext.CalculatorControlWrapperContextTypes;
CalculatorSlider.contextTypes = CalculatorControlWrapperContext_1.CalculatorControlWrapperContextTypes;
exports.CalculatorSlider = CalculatorSlider;

@@ -1037,17 +797,9 @@ /***/ }),

Object.defineProperty(exports, "__esModule", {
value: true
});
var _CalculatorSlider = __webpack_require__("./src/CalculatorSlider/CalculatorSlider.tsx");
Object.keys(_CalculatorSlider).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorSlider[key];
function __export(m) {
for (var p in m) {
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
});
});
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(__webpack_require__("./src/CalculatorSlider/CalculatorSlider.tsx"));

@@ -1062,21 +814,4 @@ /***/ }),

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalculatorSummaryButton = exports.CalculatorSummaryButtonPropTypes = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__("react");
var React = _interopRequireWildcard(_react);
var _propTypes = __webpack_require__("prop-types");
var PropTypes = _interopRequireWildcard(_propTypes);
var _Calculator = __webpack_require__("./src/Calculator/index.ts");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -1096,7 +831,11 @@

};
var CalculatorSummaryButtonPropTypes = exports.CalculatorSummaryButtonPropTypes = {
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__("react");
var PropTypes = __webpack_require__("prop-types");
var Calculator_1 = __webpack_require__("./src/Calculator/index.ts");
exports.CalculatorSummaryButtonPropTypes = {
onSummary: PropTypes.func.isRequired
};
var CalculatorSummaryButton = exports.CalculatorSummaryButton = function (_React$Component) {
var CalculatorSummaryButton = function (_React$Component) {
_inherits(CalculatorSummaryButton, _React$Component);

@@ -1133,4 +872,5 @@

CalculatorSummaryButton.contextTypes = _Calculator.CalculatorContextTypes;
CalculatorSummaryButton.propTypes = CalculatorSummaryButtonPropTypes;
CalculatorSummaryButton.contextTypes = Calculator_1.CalculatorContextTypes;
CalculatorSummaryButton.propTypes = exports.CalculatorSummaryButtonPropTypes;
exports.CalculatorSummaryButton = CalculatorSummaryButton;

@@ -1145,17 +885,9 @@ /***/ }),

Object.defineProperty(exports, "__esModule", {
value: true
});
var _CalculatorSummaryButton = __webpack_require__("./src/CalculatorSummaryButton/CalculatorSummaryButton.tsx");
Object.keys(_CalculatorSummaryButton).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorSummaryButton[key];
function __export(m) {
for (var p in m) {
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
});
});
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(__webpack_require__("./src/CalculatorSummaryButton/CalculatorSummaryButton.tsx"));

@@ -1170,90 +902,16 @@ /***/ }),

Object.defineProperty(exports, "__esModule", {
value: true
});
var _Calculator = __webpack_require__("./src/Calculator/index.ts");
Object.keys(_Calculator).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _Calculator[key];
function __export(m) {
for (var p in m) {
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
});
});
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(__webpack_require__("./src/Calculator/index.ts"));
__export(__webpack_require__("./src/CalculatorInput/index.ts"));
__export(__webpack_require__("./src/CalculatorLabel/index.ts"));
__export(__webpack_require__("./src/CalculatorSlider/index.ts"));
__export(__webpack_require__("./src/CalculatorButton/index.ts"));
__export(__webpack_require__("./src/CalculatorSummaryButton/index.ts"));
__export(__webpack_require__("./src/CalculatorControlWrapper/index.ts"));
var _CalculatorInput = __webpack_require__("./src/CalculatorInput/index.ts");
Object.keys(_CalculatorInput).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorInput[key];
}
});
});
var _CalculatorLabel = __webpack_require__("./src/CalculatorLabel/index.ts");
Object.keys(_CalculatorLabel).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorLabel[key];
}
});
});
var _CalculatorSlider = __webpack_require__("./src/CalculatorSlider/index.ts");
Object.keys(_CalculatorSlider).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorSlider[key];
}
});
});
var _CalculatorButton = __webpack_require__("./src/CalculatorButton/index.ts");
Object.keys(_CalculatorButton).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorButton[key];
}
});
});
var _CalculatorSummaryButton = __webpack_require__("./src/CalculatorSummaryButton/index.ts");
Object.keys(_CalculatorSummaryButton).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorSummaryButton[key];
}
});
});
var _CalculatorControlWrapper = __webpack_require__("./src/CalculatorControlWrapper/index.ts");
Object.keys(_CalculatorControlWrapper).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _CalculatorControlWrapper[key];
}
});
});
/***/ }),

@@ -1260,0 +918,0 @@

{
"name": "react-credit-calculator",
"version": "1.2.2",
"version": "1.2.3",
"description": "Credit calculator based on rc-slider",

@@ -52,3 +52,3 @@ "main": "build/index.js",

"prop-types": "^15.5.10",
"rc-slider": "^8.3.1",
"rc-slider": "^8.6.1",
"react": "^16.2.0",

@@ -55,0 +55,0 @@ "react-dom": "^16.2.0",

{
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"sourceMap": true,

@@ -5,0 +6,0 @@ "removeComments": true,

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