intelicoreact 1.2.78 → 1.2.79

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.
@@ -444,6 +444,8 @@ var Dropdown = function Dropdown(_ref) {
444
444
  var _cn3, _cn4, _getSortedOptions;
445
445
 
446
446
  return /*#__PURE__*/_react.default.createElement("div", {
447
+ className: (0, _classnames.default)("".concat(RC, "__container-wrapper"))
448
+ }, /*#__PURE__*/_react.default.createElement("div", {
447
449
  className: (0, _classnames.default)("".concat(RC, "__list-wrapper"), (_cn3 = {}, (0, _defineProperty2.default)(_cn3, "".concat(RC, "__list-wrapper--fixed-height"), isFixedMaxHeight), (0, _defineProperty2.default)(_cn3, "".concat(RC, "__list-wrapper--with-bottom-shadow"), isScrollableList && isMobile), (0, _defineProperty2.default)(_cn3, "".concat(RC, "__list-wrapper--with-bottom-shadow-hidden"), scrollTop === scrollHeight), _cn3)),
448
450
  ref: dropdownListWrapperRef
449
451
  }, isMobile && /*#__PURE__*/_react.default.createElement("div", {
@@ -515,7 +517,7 @@ var Dropdown = function Dropdown(_ref) {
515
517
  }
516
518
  }), !filteredItems.length && !filteredGroups.length && /*#__PURE__*/_react.default.createElement("div", {
517
519
  className: "".concat(RC, "__list-item ").concat(RC, "__list-item--no-options")
518
- }, noOptionsText), disabled && isOpen && /*#__PURE__*/_react.default.createElement(_DropdownLoader.default, null)));
520
+ }, noOptionsText), disabled && isOpen && /*#__PURE__*/_react.default.createElement(_DropdownLoader.default, null))));
519
521
  };
520
522
 
521
523
  var toggleList = function toggleList(e) {
@@ -281,6 +281,26 @@
281
281
  }
282
282
  }
283
283
 
284
+ @keyframes slideup {
285
+ from {
286
+ transform: translateY(100%);
287
+ }
288
+
289
+ to {
290
+ transform: translateY(0);
291
+ }
292
+ }
293
+
294
+ @keyframes fadeIn {
295
+ from {
296
+ opacity: 0;
297
+ }
298
+
299
+ to {
300
+ opacity: 1;
301
+ }
302
+ }
303
+
284
304
  @media (max-width: 767px) {
285
305
  .dropdown-mobile {
286
306
  .dropdown {
@@ -311,10 +331,28 @@
311
331
  left: 0!important;
312
332
  top: 0!important;
313
333
  background: rgba(23, 29, 51, 0.50);
314
- padding: $spacing-s;
334
+
335
+ animation-name: fadeIn;
336
+ animation-duration: 0.25s;
337
+ animation-timing-function: ease;
338
+ animation-fill-mode: forwards;
315
339
  }
316
340
  }
317
341
 
342
+ &__container-wrapper {
343
+ overflow: hidden!important;
344
+ width: 100dvw;
345
+ height: 100dvh;
346
+ max-height: 100dvh;
347
+ position: fixed;
348
+ left: 0!important;
349
+ top: 0!important;
350
+ padding: $spacing-s;
351
+ box-sizing: border-box;
352
+ animation-duration: 0.4s;
353
+ animation-name: slideup;
354
+ }
355
+
318
356
  &__list {
319
357
  top: 0;
320
358
  padding:$spacing-m!important;
@@ -414,6 +414,8 @@ var TagsDropdown = function TagsDropdown(_ref) {
414
414
 
415
415
  var filteredOptions = getFilteredOptions(options);
416
416
  return /*#__PURE__*/_react.default.createElement("div", {
417
+ className: (0, _classnames.default)("".concat(RC, "__container-wrapper"))
418
+ }, /*#__PURE__*/_react.default.createElement("div", {
417
419
  ref: dropdownListWrapperRef,
418
420
  className: (0, _classnames.default)("".concat(RC, "__selector-wrapper"), (0, _defineProperty2.default)({}, "".concat(RC, "__selector-wrapper--fixed-height"), isFixedMaxHeight && isMobile))
419
421
  }, headerContent || isMobile ? /*#__PURE__*/_react.default.createElement("div", {
@@ -473,7 +475,7 @@ var TagsDropdown = function TagsDropdown(_ref) {
473
475
  onClick: function onClick() {
474
476
  return setIsOpen(false);
475
477
  }
476
- }, "Apply", chosenOptions !== null && chosenOptions !== void 0 && chosenOptions.length ? "(".concat(chosenOptions === null || chosenOptions === void 0 ? void 0 : chosenOptions.length, ")") : '')) : null);
478
+ }, "Apply", chosenOptions !== null && chosenOptions !== void 0 && chosenOptions.length ? "(".concat(chosenOptions === null || chosenOptions === void 0 ? void 0 : chosenOptions.length, ")") : '')) : null));
477
479
  };
478
480
 
479
481
  var closeList = function closeList(e) {
@@ -258,6 +258,26 @@
258
258
  }
259
259
  }
260
260
 
261
+ @keyframes slideup {
262
+ from {
263
+ transform: translateY(100%);
264
+ }
265
+
266
+ to {
267
+ transform: translateY(0);
268
+ }
269
+ }
270
+
271
+ @keyframes fadeIn {
272
+ from {
273
+ opacity: 0;
274
+ }
275
+
276
+ to {
277
+ opacity: 1;
278
+ }
279
+ }
280
+
261
281
  @media (max-width: 767px) {
262
282
  .tags-dropdown-mobile {
263
283
  .tags-dropdown {
@@ -273,9 +293,28 @@
273
293
  top: 0 !important;
274
294
  background: rgba(23, 29, 51, 0.5);
275
295
  padding: $spacing-s;
296
+
297
+ animation-name: fadeIn;
298
+ animation-duration: 0.25s;
299
+ animation-timing-function: ease;
300
+ animation-fill-mode: forwards;
276
301
  }
277
302
  }
278
303
 
304
+ &__container-wrapper {
305
+ overflow: hidden!important;
306
+ width: 100dvw;
307
+ height: 100dvh;
308
+ max-height: 100dvh;
309
+ position: fixed;
310
+ left: 0!important;
311
+ top: 0!important;
312
+ padding: $spacing-s;
313
+ box-sizing: border-box;
314
+ animation-duration: 0.4s;
315
+ animation-name: slideup;
316
+ }
317
+
279
318
  &__selector-wrapper {
280
319
  position: absolute;
281
320
  box-sizing: border-box;
@@ -133,7 +133,7 @@ var ApiRequestCreators = /*#__PURE__*/function (_ApiUtils) {
133
133
  return _context4.abrupt("return", this.splitProperties(_objectSpread(_objectSpread({}, props), {}, {
134
134
  callback: function () {
135
135
  var _callback2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(res) {
136
- var _props$callback3, _props$callback4;
136
+ var _res$clone, _props$callback3, _props$callback4;
137
137
 
138
138
  var output;
139
139
  return _regenerator.default.wrap(function _callee3$(_context3) {
@@ -142,7 +142,7 @@ var ApiRequestCreators = /*#__PURE__*/function (_ApiUtils) {
142
142
  case 0:
143
143
  _context3.t0 = res;
144
144
  _context3.next = 3;
145
- return _this3.getResponseBody(res.clone());
145
+ return _this3.getResponseBody((res === null || res === void 0 ? void 0 : (_res$clone = res.clone) === null || _res$clone === void 0 ? void 0 : _res$clone.call(res)) || res);
146
146
 
147
147
  case 3:
148
148
  _context3.t1 = _context3.sent;
@@ -240,6 +240,8 @@ var ApiUtils = /*#__PURE__*/function (_Utils) {
240
240
  key: "checkResponseCode",
241
241
  value: function () {
242
242
  var _checkResponseCode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(res, settings) {
243
+ var _res$clone, _res$clone2;
244
+
243
245
  var _ref3, successMess, errorMess, message;
244
246
 
245
247
  return _regenerator.default.wrap(function _callee5$(_context5) {
@@ -275,7 +277,7 @@ var ApiUtils = /*#__PURE__*/function (_Utils) {
275
277
 
276
278
  _context5.t2 = this;
277
279
  _context5.next = 12;
278
- return this.getResponseBody(res.clone());
280
+ return this.getResponseBody((res === null || res === void 0 ? void 0 : (_res$clone = res.clone) === null || _res$clone === void 0 ? void 0 : _res$clone.call(res)) || res);
279
281
 
280
282
  case 12:
281
283
  _context5.t3 = _context5.sent;
@@ -286,7 +288,7 @@ var ApiUtils = /*#__PURE__*/function (_Utils) {
286
288
 
287
289
  case 15:
288
290
  message = _context5.t0;
289
- this.sendMessage(message, settings, res.clone());
291
+ this.sendMessage(message, settings, (res === null || res === void 0 ? void 0 : (_res$clone2 = res.clone) === null || _res$clone2 === void 0 ? void 0 : _res$clone2.call(res)) || res);
290
292
  return _context5.abrupt("return", res);
291
293
 
292
294
  case 18:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.2.78",
3
+ "version": "1.2.79",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [