intelicoreact 0.3.2 → 0.3.3
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.
|
@@ -78,7 +78,8 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
78
78
|
_ref$isCropFirstNool = _ref.isCropFirstNool,
|
|
79
79
|
isCropFirstNool = _ref$isCropFirstNool === void 0 ? false : _ref$isCropFirstNool,
|
|
80
80
|
_ref$testId = _ref.testId,
|
|
81
|
-
testId = _ref$testId === void 0 ? 'input' : _ref$testId
|
|
81
|
+
testId = _ref$testId === void 0 ? 'input' : _ref$testId,
|
|
82
|
+
action = _ref.action;
|
|
82
83
|
var DEFAULT_BLINK_TIME = 100; // STATES
|
|
83
84
|
|
|
84
85
|
var _useState = (0, _react.useState)(false),
|
|
@@ -241,7 +242,7 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
241
242
|
onMouseLeave: function onMouseLeave() {
|
|
242
243
|
return setOnInputHover(false);
|
|
243
244
|
}
|
|
244
|
-
}, renderInput(), icon, withDelete && onInputHover && /*#__PURE__*/_react.default.createElement("span", {
|
|
245
|
+
}, renderInput(), icon, action, withDelete && onInputHover && /*#__PURE__*/_react.default.createElement("span", {
|
|
245
246
|
"data-testid": "icon-close",
|
|
246
247
|
className: (0, _classnames.default)("input__close", {
|
|
247
248
|
hidden: !value
|