intelicoreact 0.3.50 → 0.3.51
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.
|
@@ -190,11 +190,11 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
190
190
|
var depend = getDepends(modalBtnTrigger);
|
|
191
191
|
|
|
192
192
|
var getMarkupForElement = function getMarkupForElement(item, index, optTestId) {
|
|
193
|
-
var _item$label2, _item$label2$toLowerC, _item$label2$toLowerC2, _item$label2$toLowerC3, _searchValue$toLowerC, _item$value, _item$value$toString;
|
|
193
|
+
var _item$label2, _item$label2$toLowerC, _item$label2$toLowerC2, _item$label2$toLowerC3, _searchValue$toLowerC, _item$value, _item$value$toString, _item$value2, _item$value2$toString;
|
|
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.replace(/ /g, '_'),
|
|
197
|
+
key: (_item$value2 = item.value) === null || _item$value2 === void 0 ? void 0 : (_item$value2$toString = _item$value2.toString()) === null || _item$value2$toString === void 0 ? void 0 : _item$value2$toString.replace(/ /g, '_'),
|
|
198
198
|
onClick: function onClick() {
|
|
199
199
|
return depend.onChange(item);
|
|
200
200
|
},
|
|
@@ -210,10 +210,10 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
var filteredOptionList = function filteredOptionList(filteredOption) {
|
|
213
|
-
var _filteredOption$items;
|
|
213
|
+
var _filteredOption$items, _filteredOption$label, _filteredOption$label2;
|
|
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.label.replace(/ /g, '_').concat(Date.now()),
|
|
216
|
+
key: (_filteredOption$label = filteredOption.label) === null || _filteredOption$label === void 0 ? void 0 : (_filteredOption$label2 = _filteredOption$label.toString()) === null || _filteredOption$label2 === void 0 ? void 0 : _filteredOption$label2.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")
|