intelicoreact 1.3.52 → 1.3.54

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.
@@ -37,6 +37,7 @@ const DropdownLiveSearch = _ref => {
37
37
  isNotValidateASCII = false,
38
38
  noOptionsText = "No options available",
39
39
  attributesOfNativeInput = {},
40
+ withMobileLogic,
40
41
  tabIndex
41
42
  } = _ref;
42
43
  const dropdownId = fieldKey || id;
@@ -321,13 +321,15 @@ const TagsDropdown = _ref => {
321
321
  let swHeight = sw === null || sw === void 0 || (_sw$getBoundingClient = sw.getBoundingClientRect()) === null || _sw$getBoundingClient === void 0 ? void 0 : _sw$getBoundingClient.height;
322
322
  const controlsHeight = swHeight - dlHeight;
323
323
  if (swHeight > maxHeight) swHeight = maxHeight - 2 * margin;
324
- const maxSwHeight = isMobile ? (sw === null || sw === void 0 || (_sw$getBoundingClient2 = sw.getBoundingClientRect()) === null || _sw$getBoundingClient2 === void 0 ? void 0 : _sw$getBoundingClient2.height) - (lh === null || lh === void 0 || (_lh$getBoundingClient = lh.getBoundingClientRect()) === null || _lh$getBoundingClient === void 0 ? void 0 : _lh$getBoundingClient.height) - (lf === null || lf === void 0 || (_lf$getBoundingClient = lf.getBoundingClientRect()) === null || _lf$getBoundingClient === void 0 ? void 0 : _lf$getBoundingClient.height) : toTop - margin >= maxHeight || toBottom - margin >= maxHeight ? maxHeight - 3 * margin : toTop > toBottom ? toTop - 3 * margin : toBottom - 4 * margin;
324
+ const maxSwHeight = (sw === null || sw === void 0 || (_sw$getBoundingClient2 = sw.getBoundingClientRect()) === null || _sw$getBoundingClient2 === void 0 ? void 0 : _sw$getBoundingClient2.height) - (lh === null || lh === void 0 || (_lh$getBoundingClient = lh.getBoundingClientRect()) === null || _lh$getBoundingClient === void 0 ? void 0 : _lh$getBoundingClient.height) - (lf === null || lf === void 0 || (_lf$getBoundingClient = lf.getBoundingClientRect()) === null || _lf$getBoundingClient === void 0 ? void 0 : _lf$getBoundingClient.height);
325
325
  const listPos = toTop < toBottom || toBottom >= swHeight ? "bottom" : "top";
326
326
  if (swHeight > (listPos === "top" ? toTop : toBottom)) swHeight = (listPos === "top" ? toTop : toBottom) - 3 * margin;
327
327
  lc.style.minWidth = "".concat(width, "px");
328
328
  lc.style.left = "".concat(left, "px");
329
329
  lc.style.top = "".concat(listPos === "bottom" ? top + height : top - swHeight - 2 * margin, "px");
330
- dl.style.maxHeight = "".concat(isMobile ? maxSwHeight : maxSwHeight - controlsHeight, "px");
330
+ if (isMobile) {
331
+ dl.style.maxHeight = "".concat(maxSwHeight, "px");
332
+ }
331
333
  };
332
334
  const renderListContainer = () => {
333
335
  const lc = getListContainer();
@@ -82,25 +82,26 @@
82
82
  &__selector-wrapper {
83
83
  position: relative;
84
84
 
85
- display: block;
85
+ display: flex;
86
+ flex-direction: column;
86
87
 
87
88
  box-sizing: border-box;
88
89
  margin-top: 4px;
89
90
 
90
91
  border: 1px solid #e2e5ec;
91
92
  box-shadow: 0 4px 25px rgb(0 0 0 / 25%);
93
+ max-height: 320px;
92
94
  }
93
95
 
94
96
  &__list {
97
+ height: 100%;
95
98
  position: relative;
96
99
  z-index: 3;
97
100
 
98
101
  overflow-y: auto;
99
102
 
100
103
  box-sizing: border-box;
101
- width: 148px;
102
104
  min-width: 100%;
103
- max-height: 320px;
104
105
  padding: 8px 0;
105
106
 
106
107
  text-align: left;
@@ -325,6 +326,7 @@
325
326
  }
326
327
 
327
328
  &__selector-wrapper {
329
+ display: block;
328
330
  position: absolute;
329
331
  bottom: $spacing-s;
330
332
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.3.52",
3
+ "version": "1.3.54",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [