intelicoreact 1.4.34 → 1.4.35

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.
@@ -675,7 +675,7 @@ const TagsDropdown = _ref => {
675
675
  className: (0, _classnames.default)("".concat(RC, "__list-item-title"), item.labelClassName)
676
676
  }, hightlightSearchValue(title)), description && /*#__PURE__*/_react.default.createElement("span", {
677
677
  className: (0, _classnames.default)("".concat(RC, "__list-item-description"))
678
- }, description)), !isMobile && (item === null || item === void 0 ? void 0 : item.isEditable) && /*#__PURE__*/_react.default.createElement("div", {
678
+ }, description)), !isMobile && (item === null || item === void 0 ? void 0 : item.isEditable) && onOptionEdit && onOptionDelete && /*#__PURE__*/_react.default.createElement("div", {
679
679
  id: "editTrigger".concat(item === null || item === void 0 ? void 0 : item.value),
680
680
  className: (0, _classnames.default)("".concat(RC, "__list-item-edit-trigger")),
681
681
  onClick: e => onOptionEditClick(e, item)
@@ -737,7 +737,7 @@ const TagsDropdown = _ref => {
737
737
  className: (0, _classnames.default)("".concat(RC, "__header-row"))
738
738
  }, headerContent)) : null, withSearchInputInList && /*#__PURE__*/_react.default.createElement("div", {
739
739
  className: (0, _classnames.default)("".concat(RC, "__input-list-wrapper"))
740
- }, renderSearchInput()), withCreateLogic && searchValue && filteredOptions.length && singleLevelOptions.every(_ref11 => {
740
+ }, renderSearchInput()), withCreateLogic && onOptionCreate && searchValue && filteredOptions.length && singleLevelOptions.every(_ref11 => {
741
741
  let {
742
742
  label
743
743
  } = _ref11;
@@ -775,7 +775,7 @@ const TagsDropdown = _ref => {
775
775
  })
776
776
  }, footerContent, isMobile && /*#__PURE__*/_react.default.createElement("button", {
777
777
  onClick: () => setIsOpen(false)
778
- }, "Apply", chosenOptions !== null && chosenOptions !== void 0 && chosenOptions.length ? "(".concat(chosenOptions === null || chosenOptions === void 0 ? void 0 : chosenOptions.length, ")") : "")) : null, editingOption && /*#__PURE__*/(0, _reactDom.createPortal)(renderEditOptionModal(), (_document$getElementB5 = document.getElementById("app")) !== null && _document$getElementB5 !== void 0 ? _document$getElementB5 : document.body), withCreateLogic && searchValue && singleLevelOptions.every(_ref14 => {
778
+ }, "Apply", chosenOptions !== null && chosenOptions !== void 0 && chosenOptions.length ? "(".concat(chosenOptions === null || chosenOptions === void 0 ? void 0 : chosenOptions.length, ")") : "")) : null, editingOption && /*#__PURE__*/(0, _reactDom.createPortal)(renderEditOptionModal(), (_document$getElementB5 = document.getElementById("app")) !== null && _document$getElementB5 !== void 0 ? _document$getElementB5 : document.body), withCreateLogic && onOptionCreate && searchValue && singleLevelOptions.every(_ref14 => {
779
779
  let {
780
780
  label
781
781
  } = _ref14;
@@ -803,7 +803,7 @@ const TagsDropdown = _ref => {
803
803
  placeholder: placeholder || "Select from list",
804
804
  attributesOfNativeInput: { ...attributesOfNativeInput,
805
805
  onKeyDown: e => {
806
- if (e.keyCode === 13 && withCreateLogic && singleLevelOptions.every(_ref15 => {
806
+ if (e.keyCode === 13 && withCreateLogic && onOptionCreate && singleLevelOptions.every(_ref15 => {
807
807
  let {
808
808
  label
809
809
  } = _ref15;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.4.34",
3
+ "version": "1.4.35",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [