intelicoreact 0.3.32 → 0.3.34

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.
@@ -1361,9 +1361,7 @@ function InputMask() {
1361
1361
  return onCharClick(e, i);
1362
1362
  },
1363
1363
  onFocus: function onFocus() {
1364
- var _inputRef$current;
1365
-
1366
- if (isUseAutoSelect) inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.select();
1364
+ // if (isUseAutoSelect) inputRef?.current?.select();
1367
1365
  if (_onFocus) _onFocus.apply(void 0, arguments);
1368
1366
  },
1369
1367
  onBlur: onBlur,
@@ -33,6 +33,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
33
33
 
34
34
  var RadioGroup = function RadioGroup(_ref) {
35
35
  var className = _ref.className,
36
+ disabled = _ref.disabled,
36
37
  _ref$onChange = _ref.onChange,
37
38
  onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
38
39
  _ref$direction = _ref.direction,
@@ -68,7 +69,9 @@ var RadioGroup = function RadioGroup(_ref) {
68
69
  }
69
70
  };
70
71
  return /*#__PURE__*/_react.default.createElement("div", {
71
- className: (0, _classnames.default)('radio-group', className, "radio-group--".concat(direction))
72
+ className: (0, _classnames.default)('radio-group', className, "radio-group--".concat(direction), {
73
+ 'radio-group--disabled': disabled
74
+ })
72
75
  }, values.map(function (item) {
73
76
  return /*#__PURE__*/_react.default.createElement(_RadioInput.default, (0, _extends2.default)({
74
77
  key: item.id
@@ -13,4 +13,9 @@
13
13
  margin-right: 10px;
14
14
  }
15
15
  }
16
+
17
+ &--disabled {
18
+ opacity: 0.5;
19
+ pointer-events: none;
20
+ }
16
21
  }
@@ -53,6 +53,7 @@ var TagsDropdown = function TagsDropdown(_ref) {
53
53
  hintSide = _ref.hintSide,
54
54
  disabled = _ref.disabled,
55
55
  isValuesInTags = _ref.isValuesInTags,
56
+ error = _ref.error,
56
57
  _ref$isNotValidateASC = _ref.isNotValidateASCII,
57
58
  isNotValidateASCII = _ref$isNotValidateASC === void 0 ? false : _ref$isNotValidateASC,
58
59
  _ref$noTagsWrap = _ref.noTagsWrap,
@@ -83,7 +84,7 @@ var TagsDropdown = function TagsDropdown(_ref) {
83
84
  setSearchValue = _useState4[1];
84
85
 
85
86
  var dropdownRef = (0, _react.useRef)(null);
86
- var singleLevelOptions = options.reduce(function (acc, item) {
87
+ var singleLevelOptions = options === null || options === void 0 ? void 0 : options.reduce(function (acc, item) {
87
88
  return [].concat((0, _toConsumableArray2.default)(acc), (0, _toConsumableArray2.default)(item.groupName ? item.list : [item]));
88
89
  }, []);
89
90
 
@@ -192,7 +193,9 @@ var TagsDropdown = function TagsDropdown(_ref) {
192
193
  className: (0, _classnames.default)(RC, className, (0, _defineProperty2.default)({}, "".concat(RC, "_disabled"), disabled)),
193
194
  ref: dropdownRef
194
195
  }, /*#__PURE__*/_react.default.createElement("div", {
195
- className: "".concat(RC, "__trigger"),
196
+ className: (0, _classnames.default)("".concat(RC, "__trigger"), {
197
+ 'tags-dropdown__error': error
198
+ }),
196
199
  onClick: function onClick(e) {
197
200
  var _e$target, _e$target2, _e$target2$parentNode, _e$target3, _e$target3$className, _e$target4, _e$target4$className, _e$target5, _e$target6, _e$target7;
198
201
 
@@ -171,6 +171,10 @@
171
171
  margin-bottom: 5px;
172
172
  }
173
173
 
174
+ &__error {
175
+ border-color: #f06d8d;
176
+ }
177
+
174
178
  .tag {
175
179
  margin-top: 1px;
176
180
  margin-bottom: 1px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.3.32",
3
+ "version": "0.3.34",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [