intelicoreact 0.3.65 → 0.3.67

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,7 +291,9 @@ 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)('input', className),
294
+ className: (0, _classnames.default)('input', className, {
295
+ 'input--with-icon': icon
296
+ }),
295
297
  placeholder: placeholder,
296
298
  value: formatedValue,
297
299
  inputMode: isNumericMobileKeyboard ? 'numeric' : 'text',
@@ -332,9 +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 && /*#__PURE__*/_react.default.createElement("div", {
336
- className: "input__icon-wrapper"
337
- }, icon), action, withDelete && onInputHover && /*#__PURE__*/_react.default.createElement("span", {
337
+ }, renderInput(), 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,12 +128,8 @@
128
128
  margin-bottom: 5px;
129
129
  }
130
130
 
131
- &__icon-wrapper {
132
- height: 100%;
133
-
134
- display: flex;
135
- justify-content: center;
136
- align-items: center;
131
+ &--with-icon {
132
+ padding: 0 40px 0 10px;
137
133
  }
138
134
  }
139
135
 
@@ -128,12 +128,8 @@
128
128
  margin-bottom: 5px;
129
129
  }
130
130
 
131
- &__icon-wrapper {
132
- height: 100%;
133
-
134
- display: flex;
135
- justify-content: center;
136
- align-items: center;
131
+ &--with-icon {
132
+ padding: 0 40px 0 10px;
137
133
  }
138
134
  }
139
135
 
@@ -65,7 +65,8 @@ var Modal = function Modal(_ref) {
65
65
  isCloseBtnIconPositionRight = _ref.isCloseBtnIconPositionRight,
66
66
  _ref$submitOnEnter = _ref.submitOnEnter,
67
67
  submitOnEnter = _ref$submitOnEnter === void 0 ? true : _ref$submitOnEnter,
68
- leftContentOfFooter = _ref.leftContentOfFooter;
68
+ leftContentOfFooter = _ref.leftContentOfFooter,
69
+ testId = _ref.testId;
69
70
  if (!isOpen) return null;
70
71
 
71
72
  var renderModalTitle = function renderModalTitle() {
@@ -92,7 +93,7 @@ var Modal = function Modal(_ref) {
92
93
  style: {
93
94
  zIndex: zIndex
94
95
  },
95
- "data-testid": "modal--".concat(title === null || title === void 0 ? void 0 : title.replace(/\s/gi, '-'), "--container"),
96
+ "data-testid": testId,
96
97
  className: "modal-box j5"
97
98
  }, /*#__PURE__*/_react.default.createElement("div", {
98
99
  "data-testid": 'modal-closeOverlay',
@@ -15,15 +15,16 @@ var _io = require("react-icons/io5");
15
15
 
16
16
  var _reactFeather = require("react-feather");
17
17
 
18
- require("./Tag.scss");
19
-
20
18
  var _utils = require("../../../Functions/utils");
21
19
 
20
+ require("./Tag.scss");
21
+
22
22
  var Tag = function Tag(_ref) {
23
23
  var className = _ref.className,
24
24
  label = _ref.label,
25
25
  warning = _ref.warning,
26
26
  removeItem = _ref.removeItem,
27
+ noDismiss = _ref.noDismiss,
27
28
  name = _ref.name,
28
29
  _ref$onClick = _ref.onClick,
29
30
  onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
@@ -41,7 +42,7 @@ var Tag = function Tag(_ref) {
41
42
  className: "advanced-tags--warning-icon mr5"
42
43
  }), /*#__PURE__*/_react.default.createElement("span", {
43
44
  className: "tag__label"
44
- }, label || name), removeItem && /*#__PURE__*/_react.default.createElement("button", {
45
+ }, label || name), removeItem && !noDismiss && /*#__PURE__*/_react.default.createElement("button", {
45
46
  "data-testid": testIdRemove,
46
47
  onClick: function onClick() {
47
48
  return removeItem();
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  &-warn {
32
- background-color: $color--error;
32
+ background-color: $color--error-bg;
33
33
 
34
34
  .tag__label {
35
35
  color: #b9002c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.3.65",
3
+ "version": "0.3.67",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [