intelicoreact 0.3.47 → 0.3.50

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.
@@ -194,7 +194,7 @@ var Dropdown = function Dropdown(_ref) {
194
194
 
195
195
  return item !== null && item !== void 0 && (_item$label2 = item.label) !== null && _item$label2 !== void 0 && (_item$label2$toLowerC = _item$label2.toLowerCase) !== null && _item$label2$toLowerC !== void 0 && (_item$label2$toLowerC2 = _item$label2$toLowerC.call(_item$label2)) !== null && _item$label2$toLowerC2 !== void 0 && (_item$label2$toLowerC3 = _item$label2$toLowerC2.includes) !== null && _item$label2$toLowerC3 !== void 0 && _item$label2$toLowerC3.call(_item$label2$toLowerC2, (searchValue === null || searchValue === void 0 ? void 0 : (_searchValue$toLowerC = searchValue.toLowerCase) === null || _searchValue$toLowerC === void 0 ? void 0 : _searchValue$toLowerC.call(searchValue)) || '') ? /*#__PURE__*/_react.default.createElement("button", {
196
196
  "data-testid": "dropdown--button--key-".concat(optTestId || (item === null || item === void 0 ? void 0 : (_item$value = item.value) === null || _item$value === void 0 ? void 0 : (_item$value$toString = _item$value.toString()) === null || _item$value$toString === void 0 ? void 0 : _item$value$toString.replace(/\s/, '-')) || (item === null || item === void 0 ? void 0 : item.key) || 'item', "--option"),
197
- key: item.value,
197
+ key: item.value.replace(/ /g, '_'),
198
198
  onClick: function onClick() {
199
199
  return depend.onChange(item);
200
200
  },
@@ -213,7 +213,7 @@ var Dropdown = function Dropdown(_ref) {
213
213
  var _filteredOption$items;
214
214
 
215
215
  return ((_filteredOption$items = filteredOption.items) === null || _filteredOption$items === void 0 ? void 0 : _filteredOption$items.length) > 0 ? /*#__PURE__*/_react.default.createElement("div", {
216
- key: filteredOption.value,
216
+ key: filteredOption.label.replace(/ /g, '_').concat(Date.now()),
217
217
  className: "".concat(RC, "-group")
218
218
  }, /*#__PURE__*/_react.default.createElement("div", {
219
219
  className: "".concat(RC, "-group__name")
@@ -377,15 +377,21 @@ function InputMask2() {
377
377
  };
378
378
 
379
379
  var getClearInnerValueAsString = function getClearInnerValueAsString() {
380
- return innerValue.reduce(function (result, _ref9, i, arr) {
381
- var char = _ref9.char,
382
- maskChar = _ref9.maskChar,
383
- isSpecialSymbol = _ref9.isSpecialSymbol,
384
- isCharSymbol = _ref9.isCharSymbol;
385
- if (char !== maskChar && char !== '' || !isSpecialSymbol || isCharSymbol) result += char; // || isCharSymbol
380
+ var _getInputValue, _getInputValue$split;
386
381
 
387
- return result;
388
- }, '');
382
+ var symbolsInfo = innerValue === null || innerValue === void 0 ? void 0 : innerValue.map(function (_ref9) {
383
+ var isSpecialSymbol = _ref9.isSpecialSymbol,
384
+ isCharSymbol = _ref9.isCharSymbol;
385
+ return {
386
+ isSpecialSymbol: isSpecialSymbol,
387
+ isCharSymbol: isCharSymbol
388
+ };
389
+ });
390
+ var clearValue = (_getInputValue = getInputValue()) === null || _getInputValue === void 0 ? void 0 : (_getInputValue$split = _getInputValue.split('')) === null || _getInputValue$split === void 0 ? void 0 : _getInputValue$split.reduce(function (resultStr, symbol, i) {
391
+ if (!symbolsInfo[i].isSpecialSymbol || symbolsInfo[i].isCharSymbol) resultStr += symbol;
392
+ return resultStr;
393
+ }, "");
394
+ return clearValue;
389
395
  };
390
396
 
391
397
  var getInputValue = function getInputValue() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.3.47",
3
+ "version": "0.3.50",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [