intelicoreact 0.3.64 → 0.3.65

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.
@@ -291,9 +291,7 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
291
291
 
292
292
  function renderInput() {
293
293
  var uniProps = _objectSpread(_objectSpread({
294
- className: (0, _classnames.default)({
295
- 'input--with-icon': icon && !action
296
- }, className),
294
+ className: (0, _classnames.default)('input', className),
297
295
  placeholder: placeholder,
298
296
  value: formatedValue,
299
297
  inputMode: isNumericMobileKeyboard ? 'numeric' : 'text',
@@ -334,7 +332,9 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
334
332
  onMouseLeave: function onMouseLeave() {
335
333
  return setOnInputHover(false);
336
334
  }
337
- }, renderInput(), icon, action, withDelete && onInputHover && /*#__PURE__*/_react.default.createElement("span", {
335
+ }, renderInput(), icon && /*#__PURE__*/_react.default.createElement("div", {
336
+ className: "input__icon-wrapper"
337
+ }, icon), action, withDelete && onInputHover && /*#__PURE__*/_react.default.createElement("span", {
338
338
  "data-testid": "icon-close",
339
339
  className: (0, _classnames.default)("input__close", {
340
340
  hidden: !(0, _fieldValueFormatters.getSafelyValue)(value)
@@ -128,8 +128,12 @@
128
128
  margin-bottom: 5px;
129
129
  }
130
130
 
131
- &--with-icon {
132
- padding: 0 40px 0 10px;
131
+ &__icon-wrapper {
132
+ height: 100%;
133
+
134
+ display: flex;
135
+ justify-content: center;
136
+ align-items: center;
133
137
  }
134
138
  }
135
139
 
@@ -128,8 +128,12 @@
128
128
  margin-bottom: 5px;
129
129
  }
130
130
 
131
- &--with-icon {
132
- padding: 0 40px 0 10px;
131
+ &__icon-wrapper {
132
+ height: 100%;
133
+
134
+ display: flex;
135
+ justify-content: center;
136
+ align-items: center;
133
137
  }
134
138
  }
135
139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.3.64",
3
+ "version": "0.3.65",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [