intelicoreact 1.0.18 → 1.0.20
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.
|
@@ -288,7 +288,8 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
288
288
|
if (inputRef !== null && inputRef !== void 0 && inputRef.current && typeof isFocusDefault === 'boolean') setIsFocused(isFocusDefault);
|
|
289
289
|
setEditing(isFocusDefault);
|
|
290
290
|
}, [inputRef, isFocusDefault]);
|
|
291
|
-
|
|
291
|
+
|
|
292
|
+
var renderInput = function renderInput() {
|
|
292
293
|
var uniProps = _objectSpread(_objectSpread({
|
|
293
294
|
className: (0, _classnames.default)('input', className, {
|
|
294
295
|
'input--with-icon': icon
|
|
@@ -323,7 +324,8 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
323
324
|
if (uniProps.onFocus) uniProps.onFocus.apply(uniProps, arguments);
|
|
324
325
|
}
|
|
325
326
|
}));
|
|
326
|
-
}
|
|
327
|
+
};
|
|
328
|
+
|
|
327
329
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
328
330
|
className: (0, _classnames.default)("input__wrap", (0, _defineProperty2.default)({}, "input__wrap_focus", isFocused), (0, _defineProperty2.default)({}, "input__wrap_error", error || isToHighlightError), (0, _defineProperty2.default)({}, "input__wrap--disabled", disabled)),
|
|
329
331
|
onMouseEnter: function onMouseEnter() {
|
|
@@ -332,7 +334,7 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
332
334
|
onMouseLeave: function onMouseLeave() {
|
|
333
335
|
return setOnInputHover(false);
|
|
334
336
|
}
|
|
335
|
-
}, renderInput, icon, action, withDelete && onInputHover && /*#__PURE__*/_react.default.createElement("span", {
|
|
337
|
+
}, renderInput(), icon, action, withDelete && onInputHover && /*#__PURE__*/_react.default.createElement("span", {
|
|
336
338
|
"data-testid": "icon-close",
|
|
337
339
|
className: (0, _classnames.default)("input__close", {
|
|
338
340
|
hidden: !(0, _fieldValueFormatters.getSafelyValue)(value)
|