synapsefi-ui
Advanced tools
Comparing version 1.4.7 to 1.4.8
@@ -33,26 +33,17 @@ 'use strict'; | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
var NumberInput = function NumberInput(props) { | ||
var _ref = props.propValues || props, | ||
autofocus = _ref.autofocus, | ||
value = _ref.value, | ||
type = _ref.type, | ||
onChange = _ref.onChange, | ||
propName = _ref.propName, | ||
format = _ref.format, | ||
placeholder = _ref.placeholder, | ||
disabled = _ref.disabled, | ||
error = _ref.error, | ||
currency = _ref.currency, | ||
label = _ref.label, | ||
type = _ref.type, | ||
format = _ref.format; | ||
inputProps = _objectWithoutProperties(_ref, ['type', 'onChange', 'format', 'placeholder']); | ||
var formatSettings = (0, _number.getFormat)(type, format); | ||
return _react2.default.createElement(_reactNumberFormat2.default, _extends({}, formatSettings, { | ||
return _react2.default.createElement(_reactNumberFormat2.default, _extends({}, formatSettings, inputProps, { | ||
customInput: _Input2.default, | ||
label: label, | ||
autoFocus: autofocus, | ||
placeholder: placeholder || formatSettings.placeholder, | ||
disabled: disabled, | ||
error: error, | ||
value: value, | ||
onValueChange: function onValueChange(values, e) { | ||
@@ -59,0 +50,0 @@ return onChange(e, values.value, propName); |
{ | ||
"name": "synapsefi-ui", | ||
"description": "synapsefi-ui", | ||
"version": "1.4.7", | ||
"version": "1.4.8", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
187762
3207