intelicoreact 0.3.62 → 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,7 +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: "input ".concat(className),
294
+ className: (0, _classnames.default)('input', className),
295
295
  placeholder: placeholder,
296
296
  value: formatedValue,
297
297
  inputMode: isNumericMobileKeyboard ? 'numeric' : 'text',
@@ -332,7 +332,9 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
332
332
  onMouseLeave: function onMouseLeave() {
333
333
  return setOnInputHover(false);
334
334
  }
335
- }, 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", {
336
338
  "data-testid": "icon-close",
337
339
  className: (0, _classnames.default)("input__close", {
338
340
  hidden: !(0, _fieldValueFormatters.getSafelyValue)(value)
@@ -127,6 +127,14 @@
127
127
  &-label {
128
128
  margin-bottom: 5px;
129
129
  }
130
+
131
+ &__icon-wrapper {
132
+ height: 100%;
133
+
134
+ display: flex;
135
+ justify-content: center;
136
+ align-items: center;
137
+ }
130
138
  }
131
139
 
132
140
  .input__wrap:hover .input__close {
@@ -127,6 +127,14 @@
127
127
  &-label {
128
128
  margin-bottom: 5px;
129
129
  }
130
+
131
+ &__icon-wrapper {
132
+ height: 100%;
133
+
134
+ display: flex;
135
+ justify-content: center;
136
+ align-items: center;
137
+ }
130
138
  }
131
139
 
132
140
  .input__wrap:hover .input__close {
@@ -112,4 +112,11 @@
112
112
  color: #1E1E2D;
113
113
  }
114
114
  }
115
+
116
+ svg {
117
+ min-width: 16px;
118
+ max-width: 16px;
119
+ min-height: 16px;
120
+ max-height: 16px;
121
+ }
115
122
  }
@@ -30,6 +30,8 @@ var Alert = function Alert(_ref) {
30
30
  children = _ref.children,
31
31
  noDismiss = _ref.noDismiss,
32
32
  testId = _ref.testId,
33
+ _ref$isHidden = _ref.isHidden,
34
+ isHidden = _ref$isHidden === void 0 ? false : _ref$isHidden,
33
35
  _ref$variant = _ref.variant,
34
36
  variant = _ref$variant === void 0 ? 'warning' : _ref$variant;
35
37
 
@@ -42,7 +44,9 @@ var Alert = function Alert(_ref) {
42
44
  "data-testid": "alert--key-".concat(testId, "--varint-").concat(variant),
43
45
  className: (0, _classnames.default)(className, {
44
46
  hidden: onClose
45
- }, "alert alert--".concat(variant))
47
+ }, "alert alert--".concat(variant), {
48
+ hidden: isHidden
49
+ })
46
50
  }, icon, /*#__PURE__*/_react.default.createElement("div", null, children || message), !noDismiss && /*#__PURE__*/_react.default.createElement("div", {
47
51
  className: "alert__close-btn"
48
52
  }, /*#__PURE__*/_react.default.createElement(_reactFeather.X, {
@@ -35,4 +35,11 @@
35
35
  color: #b9002c;
36
36
  }
37
37
  }
38
+
39
+ svg {
40
+ min-width: 16px;
41
+ max-width: 16px;
42
+ min-height: 16px;
43
+ max-height: 16px;
44
+ }
38
45
  }
@@ -174,7 +174,7 @@ var TagList = function TagList(_ref) {
174
174
  }, [staticTagsCount]); // Toggle Show/Hide More Tags
175
175
 
176
176
  (0, _react.useEffect)(function () {
177
- setRenderItemsCount(renderAll ? tagList.length : staticTagsCount);
177
+ setRenderItemsCount(renderAll ? tagList === null || tagList === void 0 ? void 0 : tagList.length : staticTagsCount);
178
178
  }, [renderAll]);
179
179
 
180
180
  var renderTags = function renderTags() {
@@ -196,6 +196,7 @@ var TagList = function TagList(_ref) {
196
196
  };
197
197
 
198
198
  var renderMoreTags = function renderMoreTags() {
199
+ if ((tagList === null || tagList === void 0 ? void 0 : tagList.length) < shownItemsCount || !(tagList !== null && tagList !== void 0 && tagList.length) || disableShowMore) return null;
199
200
  var restItems = tagList.length - renderItemsCount;
200
201
  if (restItems === 0 || !withToggle || staticTagsCount === -1) return null;
201
202
  return /*#__PURE__*/_react.default.createElement(_Tag.default, {
@@ -210,7 +211,7 @@ var TagList = function TagList(_ref) {
210
211
  };
211
212
 
212
213
  var renderHideTags = function renderHideTags() {
213
- if (renderItemsCount !== tagList.length || !withToggle || staticTagsCount === -1 || staticTagsCount === tagList.length) return null;
214
+ if (renderItemsCount !== (tagList === null || tagList === void 0 ? void 0 : tagList.length) || !withToggle || staticTagsCount === -1 || staticTagsCount === (tagList === null || tagList === void 0 ? void 0 : tagList.length)) return null;
214
215
  return /*#__PURE__*/_react.default.createElement(_Tag.default, {
215
216
  label: "...",
216
217
  className: "tag-list_wrapper_hide-more",
@@ -223,7 +224,7 @@ var TagList = function TagList(_ref) {
223
224
  };
224
225
 
225
226
  return /*#__PURE__*/_react.default.createElement("div", {
226
- className: "tag-list_wrapper ".concat(renderItemsCount !== tagList.length || !withToggle || staticTagsCount === -1 || staticTagsCount === tagList.length ? 'tag-list_wrapper--only-static-items' : 'tag-list_wrapper--all-items', " ").concat(className !== null && className !== void 0 ? className : ''),
227
+ className: "tag-list_wrapper ".concat(renderItemsCount !== (tagList === null || tagList === void 0 ? void 0 : tagList.length) || !withToggle || staticTagsCount === -1 || staticTagsCount === (tagList === null || tagList === void 0 ? void 0 : tagList.length) ? 'tag-list_wrapper--only-static-items' : 'tag-list_wrapper--all-items', " ").concat(className !== null && className !== void 0 ? className : ''),
227
228
  ref: wrapperRef
228
229
  }, renderTags(), renderMoreTags(), renderHideTags());
229
230
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.3.62",
3
+ "version": "0.3.65",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [