intelicoreact 1.3.14 → 1.3.16

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.
@@ -298,7 +298,7 @@ var Dropdown = function Dropdown(_ref) {
298
298
  var depend = getDepends(modalBtnTrigger);
299
299
 
300
300
  var getMarkupForElement = function getMarkupForElement(item, index, optTestId) {
301
- var _item$value, _item$value$toString, _item$value2, _item$value2$toString, _cn;
301
+ var _item$value, _item$value$toString, _item$value2, _item$value2$toString, _cn, _item$customMobileIco;
302
302
 
303
303
  return /*#__PURE__*/_react.default.createElement("button", {
304
304
  "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"),
@@ -314,10 +314,10 @@ var Dropdown = function Dropdown(_ref) {
314
314
  dangerouslySetInnerHTML: {
315
315
  __html: hightlightedText(item.label, item.postfix, item.description)
316
316
  }
317
- }), (item === null || item === void 0 ? void 0 : item.icon) || '', isMobile && /*#__PURE__*/_react.default.createElement(_RadioInput.default, {
317
+ }), (item === null || item === void 0 ? void 0 : item.icon) || '', isMobile ? (_item$customMobileIco = item === null || item === void 0 ? void 0 : item.customMobileIcon) !== null && _item$customMobileIco !== void 0 ? _item$customMobileIco : /*#__PURE__*/_react.default.createElement(_RadioInput.default, {
318
318
  value: item.value,
319
319
  checked: value
320
- }));
320
+ }) : '');
321
321
  };
322
322
 
323
323
  var filteredOptionList = function filteredOptionList(filteredOption) {
@@ -23,6 +23,8 @@ var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
23
23
 
24
24
  var _dependencies = require("./dependencies");
25
25
 
26
+ var _useIsMobile2 = _interopRequireDefault(require("../../../Functions/useIsMobile"));
27
+
26
28
  var _OpenedPart = _interopRequireDefault(require("./components/OpenedPart"));
27
29
 
28
30
  var _Arrow = _interopRequireDefault(require("../../UI/Arrow/Arrow"));
@@ -72,6 +74,10 @@ var InputDateRange = function InputDateRange(props) {
72
74
  isDontLimitFuture = props.isDontLimitFuture,
73
75
  isListTop = props.isListTop,
74
76
  isAltArrows = props.isAltArrows;
77
+
78
+ var _useIsMobile = (0, _useIsMobile2.default)(),
79
+ isMobile = _useIsMobile.isMobile;
80
+
75
81
  var formatedMinDate = checkFormat(minDate, minMaxDateParseFormat);
76
82
  var formatedMaxDate = checkFormat(maxDate, minMaxDateParseFormat);
77
83
  var momentMinDate = (0, _momentTimezone.default)(formatedMinDate, minMaxDateParseFormat).startOf('day');
@@ -95,7 +101,7 @@ var InputDateRange = function InputDateRange(props) {
95
101
  setIsCompare = _useState4[1];
96
102
 
97
103
  var dropdownContainers = document.getElementsByClassName('dropdown__container');
98
- var ref = !isUseAbs ? (0, _dependencies.useClickOutside)(toggleOff, dropdownContainers) : (0, _react.useRef)(null);
104
+ var ref = !isUseAbs && !isMobile ? (0, _dependencies.useClickOutside)(toggleOff, dropdownContainers) : (0, _react.useRef)(null);
99
105
  var internalContainerRef = (0, _react.useRef)(null);
100
106
 
101
107
  var _useState5 = (0, _react.useState)(Math.random().toString(16).slice(2)),
@@ -16,6 +16,7 @@
16
16
  overflow-y: auto;
17
17
  box-sizing: border-box;
18
18
  border-radius: 16px 16px 0 0;
19
+ z-index: 100;
19
20
 
20
21
  .modal {
21
22
  margin-top: 16px!important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.3.14",
3
+ "version": "1.3.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [