intelicoreact 0.1.39 → 0.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,7 +77,7 @@ function InputMask() {
77
77
  _ref$blinkDuration = _ref.blinkDuration,
78
78
  blinkDuration = _ref$blinkDuration === void 0 ? 100 : _ref$blinkDuration,
79
79
  _ref$showErrors = _ref.showErrors,
80
- showErrors = _ref$showErrors === void 0 ? true : _ref$showErrors,
80
+ showErrors = _ref$showErrors === void 0 ? false : _ref$showErrors,
81
81
  _ref$className = _ref.className,
82
82
  className = _ref$className === void 0 ? '' : _ref$className,
83
83
  _ref$errors = _ref.errors,
@@ -223,7 +223,7 @@ function InputMask() {
223
223
  };
224
224
 
225
225
  var getInnerValueAsString = function getInnerValueAsString() {
226
- return innerValue.map(function (_ref4, i) {
226
+ return innerValue.slice(0, innerValue.length - 1).map(function (_ref4, i) {
227
227
  var char = _ref4.char,
228
228
  maskChar = _ref4.maskChar;
229
229
  return char === '' ? getPlaceholderCharByIndex(i) || maskChar : char;
@@ -849,10 +849,10 @@ function InputMask() {
849
849
 
850
850
  var render = function render() {
851
851
  return /*#__PURE__*/_react.default.createElement("div", {
852
- className: "input__wrap ".concat(className),
852
+ className: "input-mask_wrapper ".concat(className, " ").concat(isError ? 'input-mask_error' : ''),
853
853
  onBlur: onBlur
854
854
  }, /*#__PURE__*/_react.default.createElement("div", {
855
- className: "input-mask ".concat(isFocused ? 'input-mask_focus' : '', " ").concat(isError ? 'input-mask_error' : '', " ").concat(blinkError ? 'input-mask_blink-error' : ''),
855
+ className: "input-mask ".concat(isFocused ? 'input-mask_focus' : '', " ").concat(blinkError ? 'input-mask_blink-error' : ''),
856
856
  onMouseDown: function onMouseDown() {
857
857
  return setIsMouseDown(true);
858
858
  },
@@ -1,4 +1,4 @@
1
- .input__wrap {
1
+ .input-mask_wrapper{
2
2
  outline: none;
3
3
  display: block;
4
4
  // width: fit-content;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "description": "fixes",
5
5
  "main": "dist/index.js",
6
6
  "files": ["dist/*", "node_modules/anme/*", "node_modules/moment/*", "node_modules/moment-timezone/*"],