@zohodesk/components 1.0.0-alpha-239 → 1.0.0-alpha-240

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.
Files changed (41) hide show
  1. package/README.md +5 -0
  2. package/assets/Appearance/dark/mode/darkMode.module.css +0 -2
  3. package/assets/Appearance/default/mode/defaultMode.module.css +1 -3
  4. package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +0 -2
  5. package/es/DateTime/DateTime.js +42 -21
  6. package/es/DateTime/DateWidget.module.css +0 -4
  7. package/es/MultiSelect/AdvancedGroupMultiSelect.js +100 -75
  8. package/es/MultiSelect/AdvancedMultiSelect.js +75 -49
  9. package/es/MultiSelect/MultiSelect.js +80 -55
  10. package/es/MultiSelect/MultiSelect.module.css +6 -1
  11. package/es/MultiSelect/MultiSelectWithAvatar.js +77 -52
  12. package/es/PopOver/PopOver.js +10 -4
  13. package/es/ResponsiveDropBox/ResponsiveDropBox.js +74 -0
  14. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
  15. package/es/Select/GroupSelect.js +99 -74
  16. package/es/Select/Select.js +95 -68
  17. package/es/Select/Select.module.css +6 -0
  18. package/es/Select/SelectWithAvatar.js +91 -66
  19. package/es/Select/SelectWithIcon.js +99 -74
  20. package/es/Tab/Tabs.js +68 -43
  21. package/es/Tab/Tabs.module.css +2 -1
  22. package/es/index.js +2 -1
  23. package/lib/DateTime/DateTime.js +42 -22
  24. package/lib/DateTime/DateWidget.module.css +0 -4
  25. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +99 -77
  26. package/lib/MultiSelect/AdvancedMultiSelect.js +76 -50
  27. package/lib/MultiSelect/MultiSelect.js +81 -56
  28. package/lib/MultiSelect/MultiSelect.module.css +6 -1
  29. package/lib/MultiSelect/MultiSelectWithAvatar.js +78 -53
  30. package/lib/PopOver/PopOver.js +11 -4
  31. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +130 -0
  32. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
  33. package/lib/Select/GroupSelect.js +99 -76
  34. package/lib/Select/Select.js +102 -75
  35. package/lib/Select/Select.module.css +6 -0
  36. package/lib/Select/SelectWithAvatar.js +96 -71
  37. package/lib/Select/SelectWithIcon.js +97 -74
  38. package/lib/Tab/Tabs.js +67 -44
  39. package/lib/Tab/Tabs.module.css +2 -1
  40. package/lib/index.js +10 -1
  41. package/package.json +3 -3
@@ -15,8 +15,6 @@ var _Select = require("./Select");
15
15
 
16
16
  var _Popup = _interopRequireDefault(require("../Popup/Popup"));
17
17
 
18
- var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
19
-
20
18
  var _Tag = _interopRequireDefault(require("../Tag/Tag"));
21
19
 
22
20
  var _TextBox = _interopRequireDefault(require("../TextBox/TextBox"));
@@ -35,6 +33,10 @@ var _DropDownHeading = _interopRequireDefault(require("../DropDown/DropDownHeadi
35
33
 
36
34
  var _IdProvider = require("../Provider/IdProvider");
37
35
 
36
+ var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
37
+
38
+ var _CustomResponsive = require("../Responsive/CustomResponsive");
39
+
38
40
  var _MultiSelectModule = _interopRequireDefault(require("../MultiSelect/MultiSelect.module.css"));
39
41
 
40
42
  var _SelectModule = _interopRequireDefault(require("./Select.module.css"));
@@ -151,9 +153,21 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
151
153
  this.handleKeyDown(e);
152
154
  }
153
155
  }
156
+ }, {
157
+ key: "responsiveFunc",
158
+ value: function responsiveFunc(_ref2) {
159
+ var mediaQueryOR = _ref2.mediaQueryOR;
160
+ return {
161
+ tabletMode: mediaQueryOR([{
162
+ maxWidth: 700
163
+ }])
164
+ };
165
+ }
154
166
  }, {
155
167
  key: "render",
156
168
  value: function render() {
169
+ var _this2 = this;
170
+
157
171
  var _this$props = this.props,
158
172
  dropBoxSize = _this$props.dropBoxSize,
159
173
  emptyMessage = _this$props.emptyMessage,
@@ -202,10 +216,10 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
202
216
  options = _this$state.options;
203
217
  var suggestions = this.handleFilterSuggestions();
204
218
 
205
- var _ref2 = this.normalizedFormatOptions[selectedId] || {},
206
- id = _ref2.id,
207
- text = _ref2.value,
208
- photoURL = _ref2.photoURL;
219
+ var _ref3 = this.normalizedFormatOptions[selectedId] || {},
220
+ id = _ref3.id,
221
+ text = _ref3.value,
222
+ photoURL = _ref3.photoURL;
209
223
 
210
224
  var setAriaId = this.getNextAriaId();
211
225
  var ariaErrorId = this.getNextAriaId();
@@ -265,71 +279,82 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
265
279
  borderColor: borderColor,
266
280
  htmlId: htmlId,
267
281
  autoComplete: false
268
- }))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
269
- animationStyle: animationStyle,
270
- boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
271
- getRef: getContainerRef,
272
- isActive: isPopupReady,
273
- isAnimate: true,
274
- isArrow: false,
275
- onClick: removeClose,
276
- needResponsive: needResponsive,
277
- isPadding: false
278
- }, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
279
- onScroll: this.handleScroll
280
- }, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
281
- className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
282
- }, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
283
- inputRef: this.searchInputRef,
284
- maxLength: maxLength,
285
- onChange: this.handleSearch,
286
- onKeyDown: this.handleKeyDown,
287
- placeHolder: searchBoxPlaceHolder,
288
- size: searchBoxSize,
289
- value: searchStr,
290
- onClear: this.handleClearSearch,
291
- dataId: "".concat(dataId, "_search"),
292
- a11y: {
293
- ariaAutocomplete: 'list',
294
- ariaControls: setAriaId,
295
- ariaDescribedby: ariaErrorId
296
- },
297
- autoComplete: false
298
- }))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
299
- customClass: dropBoxSize ? _MultiSelectModule["default"][dropBoxSize] : '',
300
- eleRef: this.suggestionContainerRef
301
- }, groupName ? /*#__PURE__*/_react["default"].createElement("div", {
302
- className: _MultiSelectModule["default"].title
303
- }, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
304
- text: groupName,
305
- a11y: {
306
- role: 'heading'
307
- }
308
- })) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
309
- activeId: selectedId,
310
- suggestions: suggestions,
311
- getRef: this.suggestionItemRef,
312
- hoverOption: hoverIndex,
313
- onClick: this.handleChange,
314
- onMouseEnter: this.handleMouseEnter,
315
- needTick: true,
316
- needBorder: false,
317
- selectedOptions: [selectedId],
318
- className: _SelectModule["default"].listItemContainer,
319
- htmlId: setAriaId,
320
- a11y: {
321
- ariaParentRole: 'listbox',
322
- role: 'option'
323
- }
324
- }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
325
- isLoading: isFetchingOptions,
326
- options: options,
327
- searchString: searchStr,
328
- suggestions: suggestions,
329
- dataId: dataId,
330
- i18nKeys: i18nKeys,
331
- htmlId: ariaErrorId
332
- })))) : null);
282
+ }))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
283
+ query: this.responsiveFunc,
284
+ responsiveId: "Helmet"
285
+ }, function (_ref4) {
286
+ var tabletMode = _ref4.tabletMode;
287
+ return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], {
288
+ animationStyle: animationStyle,
289
+ boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
290
+ getRef: getContainerRef,
291
+ isActive: isPopupReady,
292
+ isAnimate: true,
293
+ isArrow: false,
294
+ onClick: removeClose,
295
+ needResponsive: needResponsive,
296
+ isPadding: false,
297
+ isResponsivePadding: true,
298
+ alignBox: "row"
299
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
300
+ flexible: true
301
+ }, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
302
+ onScroll: _this2.handleScroll
303
+ }, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
304
+ className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
305
+ }, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
306
+ inputRef: _this2.searchInputRef,
307
+ maxLength: maxLength,
308
+ onChange: _this2.handleSearch,
309
+ onKeyDown: _this2.handleKeyDown,
310
+ placeHolder: searchBoxPlaceHolder,
311
+ size: searchBoxSize,
312
+ value: searchStr,
313
+ onClear: _this2.handleClearSearch,
314
+ dataId: "".concat(dataId, "_search"),
315
+ a11y: {
316
+ ariaAutocomplete: 'list',
317
+ ariaControls: setAriaId,
318
+ ariaDescribedby: ariaErrorId
319
+ },
320
+ autoComplete: false
321
+ }))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
322
+ shrink: true,
323
+ customClass: !tabletMode && dropBoxSize ? _MultiSelectModule["default"][dropBoxSize] : '',
324
+ eleRef: _this2.suggestionContainerRef
325
+ }, groupName ? /*#__PURE__*/_react["default"].createElement("div", {
326
+ className: _MultiSelectModule["default"].title
327
+ }, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
328
+ text: groupName,
329
+ a11y: {
330
+ role: 'heading'
331
+ }
332
+ })) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
333
+ activeId: selectedId,
334
+ suggestions: suggestions,
335
+ getRef: _this2.suggestionItemRef,
336
+ hoverOption: hoverIndex,
337
+ onClick: _this2.handleChange,
338
+ onMouseEnter: _this2.handleMouseEnter,
339
+ needTick: true,
340
+ needBorder: false,
341
+ selectedOptions: [selectedId],
342
+ className: _SelectModule["default"].listItemContainer,
343
+ htmlId: setAriaId,
344
+ a11y: {
345
+ ariaParentRole: 'listbox',
346
+ role: 'option'
347
+ }
348
+ }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
349
+ isLoading: isFetchingOptions,
350
+ options: options,
351
+ searchString: searchStr,
352
+ suggestions: suggestions,
353
+ dataId: dataId,
354
+ i18nKeys: i18nKeys,
355
+ htmlId: ariaErrorId
356
+ })))));
357
+ }) : null);
333
358
  }
334
359
  }]);
335
360
 
@@ -17,8 +17,6 @@ var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon/TextBoxIcon"))
17
17
 
18
18
  var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
19
19
 
20
- var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
21
-
22
20
  var _ListItemWithIcon = _interopRequireDefault(require("../ListItem/ListItemWithIcon"));
23
21
 
24
22
  var _Card = _interopRequireWildcard(require("../Card/Card"));
@@ -29,6 +27,10 @@ var _Layout = require("../Layout");
29
27
 
30
28
  var _IdProvider = require("../Provider/IdProvider");
31
29
 
30
+ var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
31
+
32
+ var _CustomResponsive = require("../Responsive/CustomResponsive");
33
+
32
34
  var _Common = require("../utils/Common.js");
33
35
 
34
36
  var _SelectModule = _interopRequireDefault(require("./Select.module.css"));
@@ -294,6 +296,16 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
294
296
  isNextOptions && getNextOptions && getNextOptions(e);
295
297
  }
296
298
  }
299
+ }, {
300
+ key: "responsiveFunc",
301
+ value: function responsiveFunc(_ref) {
302
+ var mediaQueryOR = _ref.mediaQueryOR;
303
+ return {
304
+ tabletMode: mediaQueryOR([{
305
+ maxWidth: 700
306
+ }])
307
+ };
308
+ }
297
309
  }, {
298
310
  key: "render",
299
311
  value: function render() {
@@ -408,80 +420,91 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
408
420
  }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
409
421
  name: "ZD-down",
410
422
  size: "7"
411
- })))))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
412
- animationStyle: animationStyle,
413
- boxPosition: position,
414
- isActive: isPopupReady,
415
- isAnimate: true,
416
- isArrow: false,
417
- onClick: removeClose,
418
- getRef: getContainerRef,
419
- needResponsive: needResponsive,
420
- dataId: "".concat(dataId, "_suggestions"),
421
- size: boxSize,
422
- isPadding: false
423
- }, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
424
- onScroll: this.handleScroll,
425
- htmlId: setAriaId,
426
- a11y: {
427
- role: 'listbox'
428
- }
429
- }, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
430
- className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
431
- }, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
432
- onClear: this.onSearchClear,
433
- onChange: this.onSearch,
434
- placeHolder: searchBoxPlaceHolder,
435
- value: searchValue,
436
- maxLength: maxLength,
437
- onKeyDown: this.handleKeyDown,
438
- inputRef: this.searchInputRef,
439
- size: searchBoxSize,
440
- dataId: "".concat(dataId, "_search"),
441
- a11y: {
442
- ariaDescribedby: ariaErrorId
443
- },
444
- autoComplete: false
445
- }))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
446
- customClass: "".concat(_SelectModule["default"].dropBoxList, " ").concat(dropBoxSize ? _SelectModule["default"][dropBoxSize] : ''),
447
- eleRef: this.scrollContentRef
448
- }, options.length ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, options.map(function (options, i) {
449
- var iconName = options.iconName,
450
- iconSize = options.iconSize,
451
- iconColor = options.iconColor;
452
- return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
453
- key: options[idKey],
454
- value: options[valueKey],
455
- size: "medium",
456
- onClick: _this4.handleChange,
457
- id: options[idKey],
458
- index: i,
459
- title: options[valueKey],
460
- palette: "default",
461
- dataId: options[idKey],
462
- iconName: iconName,
463
- iconSize: iconSize,
464
- iconClass: iconColor,
465
- active: selectedId === options[idKey],
466
- needBorder: needListBorder,
467
- needTick: needTick,
468
- onMouseEnter: _this4.handleMouseEnter,
469
- highlight: selectedIndex === i,
470
- getRef: _this4.itemRef,
423
+ })))))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
424
+ query: this.responsiveFunc,
425
+ responsiveId: "Helmet"
426
+ }, function (_ref2) {
427
+ var tabletMode = _ref2.tabletMode;
428
+ return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], {
429
+ animationStyle: animationStyle,
430
+ boxPosition: position,
431
+ isActive: isPopupReady,
432
+ isAnimate: true,
433
+ isArrow: false,
434
+ onClick: removeClose,
435
+ getRef: getContainerRef,
436
+ needResponsive: needResponsive,
437
+ dataId: "".concat(dataId, "_suggestions"),
438
+ size: boxSize,
439
+ isPadding: false,
440
+ isResponsivePadding: true,
441
+ alignBox: "row"
442
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
443
+ flexible: true
444
+ }, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
445
+ onScroll: _this4.handleScroll,
446
+ htmlId: setAriaId,
471
447
  a11y: {
472
- role: 'option',
473
- ariaSelected: selectedId === options[idKey]
448
+ role: 'listbox'
474
449
  }
475
- });
476
- })) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
477
- isLoading: isFetchingOptions,
478
- options: options,
479
- searchString: searchValue,
480
- suggestions: options,
481
- dataId: dataId,
482
- i18nKeys: i18nKeys,
483
- htmlId: ariaErrorId
484
- })))) : null);
450
+ }, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
451
+ className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
452
+ }, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
453
+ onClear: _this4.onSearchClear,
454
+ onChange: _this4.onSearch,
455
+ placeHolder: searchBoxPlaceHolder,
456
+ value: searchValue,
457
+ maxLength: maxLength,
458
+ onKeyDown: _this4.handleKeyDown,
459
+ inputRef: _this4.searchInputRef,
460
+ size: searchBoxSize,
461
+ dataId: "".concat(dataId, "_search"),
462
+ a11y: {
463
+ ariaDescribedby: ariaErrorId
464
+ },
465
+ autoComplete: false
466
+ }))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
467
+ customClass: "".concat(tabletMode ? _SelectModule["default"].responsivedropBoxList : _SelectModule["default"].dropBoxList, " ").concat(!tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : ''),
468
+ shrink: true,
469
+ eleRef: _this4.scrollContentRef
470
+ }, options.length ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, options.map(function (options, i) {
471
+ var iconName = options.iconName,
472
+ iconSize = options.iconSize,
473
+ iconColor = options.iconColor;
474
+ return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
475
+ key: options[idKey],
476
+ value: options[valueKey],
477
+ size: "medium",
478
+ onClick: _this4.handleChange,
479
+ id: options[idKey],
480
+ index: i,
481
+ title: options[valueKey],
482
+ palette: "default",
483
+ dataId: options[idKey],
484
+ iconName: iconName,
485
+ iconSize: iconSize,
486
+ iconClass: iconColor,
487
+ active: selectedId === options[idKey],
488
+ needBorder: needListBorder,
489
+ needTick: needTick,
490
+ onMouseEnter: _this4.handleMouseEnter,
491
+ highlight: selectedIndex === i,
492
+ getRef: _this4.itemRef,
493
+ a11y: {
494
+ role: 'option',
495
+ ariaSelected: selectedId === options[idKey]
496
+ }
497
+ });
498
+ })) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
499
+ isLoading: isFetchingOptions,
500
+ options: options,
501
+ searchString: searchValue,
502
+ suggestions: options,
503
+ dataId: dataId,
504
+ i18nKeys: i18nKeys,
505
+ htmlId: ariaErrorId
506
+ })))));
507
+ }) : null);
485
508
  }
486
509
  }]);
487
510
 
package/lib/Tab/Tabs.js CHANGED
@@ -17,8 +17,6 @@ var _Layout = require("../Layout");
17
17
 
18
18
  var _Tab = _interopRequireDefault(require("./Tab"));
19
19
 
20
- var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
21
-
22
20
  var _ResizeObserver = _interopRequireDefault(require("../Responsive/ResizeObserver"));
23
21
 
24
22
  var _ListItem = _interopRequireDefault(require("../ListItem/ListItem"));
@@ -29,6 +27,10 @@ var _TabsModule = _interopRequireDefault(require("./Tabs.module.css"));
29
27
 
30
28
  var _Popup = _interopRequireDefault(require("../Popup/Popup"));
31
29
 
30
+ var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
31
+
32
+ var _CustomResponsive = require("../Responsive/CustomResponsive");
33
+
32
34
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
33
35
 
34
36
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -446,6 +448,16 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
446
448
  boxPosition = boxPosition ? boxPosition : popupPosition;
447
449
  togglePopup(e, boxPosition);
448
450
  }
451
+ }, {
452
+ key: "responsiveFunc",
453
+ value: function responsiveFunc(_ref) {
454
+ var mediaQueryOR = _ref.mediaQueryOR;
455
+ return {
456
+ tabletMode: mediaQueryOR([{
457
+ maxWidth: 700
458
+ }])
459
+ };
460
+ }
449
461
  }, {
450
462
  key: "renderTabs",
451
463
  value: function renderTabs(mainTabs, moreTabs, isVirtual) {
@@ -523,50 +535,61 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
523
535
  }, MoreButtonProps), /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
524
536
  name: iconName,
525
537
  size: iconSize
526
- })), isPopupOpen && /*#__PURE__*/_react["default"].createElement(_DropBox["default"], _extends({
527
- isActive: isPopupReady,
528
- isAnimate: true,
529
- size: "medium",
530
- customClass: {
531
- customDropBoxWrap: "".concat(moreContainerClass, " ").concat(popupClass)
532
- },
533
- boxPosition: position,
534
- getRef: getContainerRef,
535
- isBoxPaddingNeed: true,
536
- isArrow: false
537
- }, DropBoxProps), getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(this.props), /*#__PURE__*/_react["default"].createElement("div", {
538
- className: "".concat(_TabsModule["default"].menuBox, " ").concat(moreBoxClass),
539
- onScroll: this.onScroll
540
- }, _react["default"].Children.map(moreTabs, function (child) {
541
- if (!child) {
542
- return null;
543
- }
544
-
545
- var _child$props = child.props,
546
- text = _child$props.text,
547
- id = _child$props.id,
548
- title = _child$props.title,
549
- isLink = _child$props.isLink,
550
- href = _child$props.href,
551
- children = _child$props.children,
552
- dataId = _child$props.dataId;
553
- var value = text ? text : showTitleInMoreOptions ? title : null;
554
- return /*#__PURE__*/_react["default"].isValidElement(child) && /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
555
- key: id,
556
- value: value,
557
- onClick: _this8.moreTabSelect,
558
- id: id,
559
- title: title || text,
560
- isLink: isLink,
561
- href: href,
562
- autoHover: true,
538
+ })), isPopupOpen && /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
539
+ query: this.responsiveFunc,
540
+ responsiveId: "Helmet"
541
+ }, function (_ref2) {
542
+ var tabletMode = _ref2.tabletMode;
543
+ return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], _extends({
544
+ isActive: isPopupReady,
545
+ isAnimate: true,
546
+ size: "medium",
563
547
  customClass: {
564
- customListItem: menuItemClass
548
+ customDropBoxWrap: "".concat(moreContainerClass, " ").concat(popupClass)
565
549
  },
566
- target: "self",
567
- dataId: "".concat(dataId, "_Tab")
568
- }, ListItemProps), !showTitleInMoreOptions ? children : null);
569
- })))) : null);
550
+ boxPosition: position,
551
+ getRef: getContainerRef,
552
+ isBoxPaddingNeed: true,
553
+ isArrow: false
554
+ }, DropBoxProps, {
555
+ isResponsivePadding: true
556
+ }), getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(_this8.props), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
557
+ flexible: true,
558
+ shrink: true,
559
+ scroll: "vertical",
560
+ className: "".concat(tabletMode ? '' : _TabsModule["default"].menuBox, " ").concat(moreBoxClass),
561
+ onScroll: _this8.onScroll
562
+ }, _react["default"].Children.map(moreTabs, function (child) {
563
+ if (!child) {
564
+ return null;
565
+ }
566
+
567
+ var _child$props = child.props,
568
+ text = _child$props.text,
569
+ id = _child$props.id,
570
+ title = _child$props.title,
571
+ isLink = _child$props.isLink,
572
+ href = _child$props.href,
573
+ children = _child$props.children,
574
+ dataId = _child$props.dataId;
575
+ var value = text ? text : showTitleInMoreOptions ? title : null;
576
+ return /*#__PURE__*/_react["default"].isValidElement(child) && /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
577
+ key: id,
578
+ value: value,
579
+ onClick: _this8.moreTabSelect,
580
+ id: id,
581
+ title: title || text,
582
+ isLink: isLink,
583
+ href: href,
584
+ autoHover: true,
585
+ customClass: {
586
+ customListItem: menuItemClass
587
+ },
588
+ target: "self",
589
+ dataId: "".concat(dataId, "_Tab")
590
+ }, ListItemProps), !showTitleInMoreOptions ? children : null);
591
+ })));
592
+ })) : null);
570
593
  }
571
594
  }, {
572
595
  key: "render",
@@ -118,13 +118,14 @@
118
118
  }
119
119
  .menuBox {
120
120
  max-height: var(--zd_size220);
121
- composes: oflowy from '../common/common.module.css';
122
121
  }
123
122
 
123
+
124
124
  [dir=ltr] .bottomRightToLeft, [dir=ltr] .topRightToLeft, [dir=ltr] .bottomCenterToLeft {
125
125
  right: calc(var(--tab_position_gap) * -1);
126
126
  }
127
127
 
128
+
128
129
  [dir=rtl] .bottomRightToLeft, [dir=rtl] .topRightToLeft, [dir=rtl] .bottomCenterToLeft {
129
130
  left: calc(var(--tab_position_gap) * -1);
130
131
  }
package/lib/index.js CHANGED
@@ -154,7 +154,8 @@ var _exportNames = {
154
154
  FocusScope__default: true,
155
155
  FocusRing: true,
156
156
  FocusRing__default: true,
157
- LightNightMode__AlternativeColors: true
157
+ LightNightMode__AlternativeColors: true,
158
+ ResponsiveDropBox: true
158
159
  };
159
160
  Object.defineProperty(exports, "Accordion", {
160
161
  enumerable: true,
@@ -786,6 +787,12 @@ Object.defineProperty(exports, "ReactDOM", {
786
787
  return _reactDom["default"];
787
788
  }
788
789
  });
790
+ Object.defineProperty(exports, "ResponsiveDropBox", {
791
+ enumerable: true,
792
+ get: function get() {
793
+ return _ResponsiveDropBox["default"];
794
+ }
795
+ });
789
796
  Object.defineProperty(exports, "Responsive__Custom", {
790
797
  enumerable: true,
791
798
  get: function get() {
@@ -1409,4 +1416,6 @@ var _FocusRing__default = _interopRequireDefault(require("./beta/FocusRing/docs/
1409
1416
 
1410
1417
  var _AlternativeColors = _interopRequireDefault(require("./LightNightMode/docs/AlternativeColors.docs"));
1411
1418
 
1419
+ var _ResponsiveDropBox = _interopRequireDefault(require("./ResponsiveDropBox/ResponsiveDropBox"));
1420
+
1412
1421
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.0.0-alpha-239",
3
+ "version": "1.0.0-alpha-240",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",
@@ -58,8 +58,8 @@
58
58
  "react-sortable-hoc": "^0.8.3"
59
59
  },
60
60
  "react-cli": {
61
- "preprocessor": {
62
- "runner": "preprocess/index.js"
61
+ "preprocess": {
62
+ "runner": "./preprocess/index.js"
63
63
  },
64
64
  "docs": {
65
65
  "disableES5Transpile": true,