@zohodesk/components 1.0.0-temp-47 → 1.0.0-temp-50

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 (173) hide show
  1. package/README.md +24 -0
  2. package/assets/Appearance/dark/mode/darkMode.module.css +2 -0
  3. package/assets/Appearance/default/mode/defaultMode.module.css +2 -0
  4. package/es/Animation/Animation.js +7 -8
  5. package/es/Avatar/Avatar.js +13 -12
  6. package/es/Avatar/__tests__/Avatar.spec.js +0 -1
  7. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -1
  8. package/es/Button/Button.js +15 -16
  9. package/es/Button/Button.module.css +6 -2
  10. package/es/Button/__tests__/Button.spec.js +0 -1
  11. package/es/Buttongroup/__test__/Buttongroup.spec.js +0 -1
  12. package/es/Card/Card.js +4 -5
  13. package/es/DateTime/DateTime.js +6 -3
  14. package/es/DateTime/DateWidget.js +5 -2
  15. package/es/DateTime/YearView.js +6 -5
  16. package/es/DateTime/common.js +9 -2
  17. package/es/DateTime/dateFormatUtils/dateFormat.js +76 -57
  18. package/es/DateTime/dateFormatUtils/index.js +12 -7
  19. package/es/DateTime/dateFormatUtils/timeChange.js +4 -3
  20. package/es/DateTime/dateFormatUtils/yearChange.js +4 -3
  21. package/es/DateTime/validator.js +0 -1
  22. package/es/DropBox/DropBox.js +2 -2
  23. package/es/Label/__tests__/Label.spec.js +0 -2
  24. package/es/Layout/utils.js +2 -1
  25. package/es/ListItem/ListContainer.js +3 -8
  26. package/es/ListItem/ListItem.js +58 -39
  27. package/es/ListItem/ListItem.module.css +11 -0
  28. package/es/ListItem/ListItemWithAvatar.js +74 -53
  29. package/es/ListItem/ListItemWithCheckBox.js +54 -33
  30. package/es/ListItem/ListItemWithIcon.js +66 -47
  31. package/es/ListItem/ListItemWithRadio.js +55 -34
  32. package/es/MultiSelect/AdvancedGroupMultiSelect.js +12 -4
  33. package/es/MultiSelect/AdvancedMultiSelect.js +20 -7
  34. package/es/MultiSelect/MultiSelect.js +24 -8
  35. package/es/MultiSelect/MultiSelectWithAvatar.js +1 -1
  36. package/es/PopOver/PopOver.js +19 -20
  37. package/es/Popup/Popup.js +15 -9
  38. package/es/Popup/viewPort.js +14 -9
  39. package/es/Provider/IdProvider.js +5 -4
  40. package/es/Provider/LibraryContext.js +6 -5
  41. package/es/Provider/NumberGenerator/NumberGenerator.js +17 -15
  42. package/es/Provider/ZindexProvider.js +5 -4
  43. package/es/Responsive/CustomResponsive.js +11 -8
  44. package/es/Responsive/ResizeComponent.js +3 -1
  45. package/es/Responsive/Responsive.js +12 -9
  46. package/es/Responsive/sizeObservers.js +13 -2
  47. package/es/Ribbon/Ribbon.js +8 -8
  48. package/es/Ribbon/__tests__/Ribbon.spec.js +0 -1
  49. package/es/Select/GroupSelect.js +3 -2
  50. package/es/Select/Select.js +3 -2
  51. package/es/Select/SelectWithAvatar.js +1 -1
  52. package/es/Select/SelectWithIcon.js +1 -1
  53. package/es/Stencils/Stencils.js +5 -6
  54. package/es/Stencils/__tests__/Stencils.spec.js +0 -1
  55. package/es/Tab/Tab.js +27 -26
  56. package/es/Tab/TabContent.js +17 -14
  57. package/es/Tab/TabContentWrapper.js +17 -14
  58. package/es/Tab/TabWrapper.js +15 -14
  59. package/es/Tab/Tabs.js +2 -1
  60. package/es/TextBox/__tests__/TextBox.spec.js +0 -1
  61. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  62. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -1
  63. package/es/Textarea/__tests__/Textarea.spec.js +0 -1
  64. package/es/Tooltip/Tooltip.js +0 -1
  65. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +1 -1
  66. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
  67. package/es/a11y/FocusScope/FocusScope.js +10 -4
  68. package/es/beta/FocusRing/FocusRing.js +4 -1
  69. package/es/utils/Common.js +31 -11
  70. package/es/utils/datetime/common.js +6 -3
  71. package/es/utils/dropDownUtils.js +45 -6
  72. package/es/utils/getInitial.js +3 -1
  73. package/lib/Accordion/Accordion.js +3 -3
  74. package/lib/Accordion/AccordionItem.js +3 -3
  75. package/lib/Animation/Animation.js +10 -11
  76. package/lib/AppContainer/AppContainer.js +3 -3
  77. package/lib/Avatar/Avatar.js +14 -14
  78. package/lib/AvatarTeam/AvatarTeam.js +3 -3
  79. package/lib/Button/Button.js +18 -19
  80. package/lib/Button/Button.module.css +6 -2
  81. package/lib/Buttongroup/Buttongroup.js +3 -3
  82. package/lib/Card/Card.js +8 -9
  83. package/lib/Card/__tests__/Card.spec.js +1 -1
  84. package/lib/Card/index.js +7 -7
  85. package/lib/CheckBox/CheckBox.js +3 -3
  86. package/lib/DateTime/CalendarView.js +4 -4
  87. package/lib/DateTime/DateTime.js +3 -3
  88. package/lib/DateTime/DateTimePopupFooter.js +3 -3
  89. package/lib/DateTime/DateTimePopupHeader.js +3 -3
  90. package/lib/DateTime/DateWidget.js +3 -3
  91. package/lib/DateTime/DaysRow.js +3 -3
  92. package/lib/DateTime/Time.js +3 -3
  93. package/lib/DateTime/YearView.js +3 -3
  94. package/lib/DateTime/__tests__/CalendarView.spec.js +1 -1
  95. package/lib/DateTime/__tests__/DateTime.spec.js +1 -1
  96. package/lib/DateTime/constants.js +1 -1
  97. package/lib/DateTime/dateFormatUtils/dateFormat.js +2 -2
  98. package/lib/DateTime/dateFormatUtils/index.js +13 -13
  99. package/lib/DateTime/objectUtils.js +2 -2
  100. package/lib/DropBox/DropBox.js +9 -5
  101. package/lib/DropDown/DropDown.js +4 -4
  102. package/lib/DropDown/DropDownHeading.js +3 -3
  103. package/lib/DropDown/DropDownItem.js +3 -3
  104. package/lib/DropDown/DropDownSearch.js +3 -3
  105. package/lib/DropDown/DropDownSeparator.js +3 -3
  106. package/lib/Label/Label.js +3 -3
  107. package/lib/Layout/Box.js +1 -1
  108. package/lib/Layout/Container.js +1 -1
  109. package/lib/Layout/index.js +4 -4
  110. package/lib/Layout/utils.js +2 -2
  111. package/lib/ListItem/ListContainer.js +3 -8
  112. package/lib/ListItem/ListItem.js +61 -40
  113. package/lib/ListItem/ListItem.module.css +11 -0
  114. package/lib/ListItem/ListItemWithAvatar.js +77 -56
  115. package/lib/ListItem/ListItemWithCheckBox.js +57 -36
  116. package/lib/ListItem/ListItemWithIcon.js +69 -48
  117. package/lib/ListItem/ListItemWithRadio.js +58 -37
  118. package/lib/Modal/Modal.js +3 -3
  119. package/lib/Modal/__docs__/Modal__default.docs.js +3 -3
  120. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +4 -4
  121. package/lib/MultiSelect/AdvancedMultiSelect.js +20 -8
  122. package/lib/MultiSelect/EmptyState.js +3 -3
  123. package/lib/MultiSelect/MultiSelect.js +16 -7
  124. package/lib/MultiSelect/MultiSelectHeader.js +3 -3
  125. package/lib/MultiSelect/MultiSelectWithAvatar.js +4 -4
  126. package/lib/MultiSelect/SelectedOptions.js +3 -3
  127. package/lib/MultiSelect/Suggestions.js +5 -5
  128. package/lib/PopOver/PopOver.js +23 -24
  129. package/lib/Popup/Popup.js +35 -32
  130. package/lib/Popup/__tests__/Popup.spec.js +3 -3
  131. package/lib/Provider/IdProvider.js +3 -3
  132. package/lib/Provider/LibraryContext.js +3 -3
  133. package/lib/Provider/NumberGenerator/NumberGenerator.js +2 -2
  134. package/lib/Provider/ZindexProvider.js +1 -1
  135. package/lib/Provider.js +3 -3
  136. package/lib/Radio/Radio.js +3 -3
  137. package/lib/Responsive/CustomResponsive.js +4 -4
  138. package/lib/Responsive/RefWrapper.js +1 -1
  139. package/lib/Responsive/ResizeComponent.js +3 -3
  140. package/lib/Responsive/ResizeObserver.js +1 -1
  141. package/lib/Responsive/Responsive.js +6 -5
  142. package/lib/Responsive/sizeObservers.js +14 -6
  143. package/lib/Responsive/utils/index.js +3 -2
  144. package/lib/Responsive/utils/shallowCompare.js +1 -1
  145. package/lib/Ribbon/Ribbon.js +11 -11
  146. package/lib/Select/GroupSelect.js +4 -4
  147. package/lib/Select/Select.js +4 -4
  148. package/lib/Select/SelectWithAvatar.js +4 -4
  149. package/lib/Select/SelectWithIcon.js +4 -4
  150. package/lib/Stencils/Stencils.js +8 -9
  151. package/lib/Switch/Switch.js +3 -3
  152. package/lib/Tab/Tab.js +1 -1
  153. package/lib/Tab/TabWrapper.js +1 -1
  154. package/lib/Tab/Tabs.js +3 -3
  155. package/lib/Tab/index.js +10 -10
  156. package/lib/Tag/Tag.js +3 -3
  157. package/lib/TextBox/TextBox.js +3 -3
  158. package/lib/TextBoxIcon/TextBoxIcon.js +4 -4
  159. package/lib/Textarea/Textarea.js +3 -3
  160. package/lib/Tooltip/Tooltip.js +3 -3
  161. package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -3
  162. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +8 -6
  163. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +8 -6
  164. package/lib/a11y/FocusScope/FocusScope.js +2 -2
  165. package/lib/beta/FocusRing/FocusRing.js +3 -3
  166. package/lib/deprecated/PortalLayer/PortalLayer.js +3 -3
  167. package/lib/index.js +310 -310
  168. package/lib/semantic/Button/Button.js +3 -3
  169. package/lib/utils/Common.js +20 -16
  170. package/lib/utils/datetime/common.js +10 -10
  171. package/lib/utils/dropDownUtils.js +46 -3
  172. package/lib/utils/shallowEqual.js +1 -1
  173. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -23,9 +23,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
23
23
 
24
24
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
25
25
 
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
26
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
27
 
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
30
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -25,9 +25,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
25
25
 
26
26
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
27
27
 
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
28
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -27,9 +27,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
27
27
 
28
28
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
29
29
 
30
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
30
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
31
 
32
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
32
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
33
 
34
34
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
35
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  var _CalendarView = _interopRequireWildcard(require("../CalendarView"));
6
6
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  var _DateTime = _interopRequireWildcard(require("../DateTime"));
6
6
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.i18nMonths = exports.i18nShortMonths = exports.ampmTextDefault = exports.dayNamesShortDefault = exports.dayNamesDefault = exports.monthNamesShortDefault = exports.monthNamesDefault = exports.flags = exports.INVALID_DATE = exports.INCONSTANT = exports.patternSplitStr = exports.patternChangeStr = exports.supportedPatterns = exports.defaultFormat = void 0;
6
+ exports.supportedPatterns = exports.patternSplitStr = exports.patternChangeStr = exports.monthNamesShortDefault = exports.monthNamesDefault = exports.i18nShortMonths = exports.i18nMonths = exports.flags = exports.defaultFormat = exports.dayNamesShortDefault = exports.dayNamesDefault = exports.ampmTextDefault = exports.INVALID_DATE = exports.INCONSTANT = void 0;
7
7
  var defaultFormat = 'dd-MM-yyyy';
8
8
  exports.defaultFormat = defaultFormat;
9
9
  var supportedPatterns = ['.', '/', '-', ' ']; // RESTRICTED PATTERNS - ['@']
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.getDateDetails = getDateDetails;
6
7
  exports.getDateFormatDetails = getDateFormatDetails;
8
+ exports.getDateFormatSelection = getDateFormatSelection;
7
9
  exports.getDateTimeString = getDateTimeString;
8
- exports.getDateDetails = getDateDetails;
9
10
  exports.getIsValidDate = getIsValidDate;
10
11
  exports.getSelectedDate = getSelectedDate;
11
- exports.getDateFormatSelection = getDateFormatSelection;
12
12
 
13
13
  var _datetimejs = _interopRequireDefault(require("@zohodesk/datetimejs"));
14
14
 
@@ -3,25 +3,25 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.convertYearToTwoDigit = convertYearToTwoDigit;
7
6
  exports.addZero = addZero;
7
+ exports.arrayIsNotEqual = arrayIsNotEqual;
8
+ exports.convertTwoDigitToYear = convertTwoDigitToYear;
9
+ exports.convertYearToTwoDigit = convertYearToTwoDigit;
10
+ exports.getDayDetails = getDayDetails;
8
11
  exports.getDayEnd = getDayEnd;
9
- exports.getIsNumberTyped = getIsNumberTyped;
12
+ exports.getHourDetails = getHourDetails;
13
+ exports.getIsCurrentYear = getIsCurrentYear;
10
14
  exports.getIsDeleteTyped = getIsDeleteTyped;
15
+ exports.getIsEmptyHour = getIsEmptyHour;
16
+ exports.getIsEmptyYear = getIsEmptyYear;
11
17
  exports.getIsNewValueType = getIsNewValueType;
12
- exports.getDayDetails = getDayDetails;
13
- exports.getMonthDetails = getMonthDetails;
14
- exports.getYearDetails = getYearDetails;
15
- exports.convertTwoDigitToYear = convertTwoDigitToYear;
16
- exports.getHourDetails = getHourDetails;
17
- exports.getMinuteDetails = getMinuteDetails;
18
18
  exports.getIsNoonValueTyped = getIsNoonValueTyped;
19
- exports.getNoonDetails = getNoonDetails;
19
+ exports.getIsNumberTyped = getIsNumberTyped;
20
20
  exports.getIsSupportedKey = getIsSupportedKey;
21
- exports.arrayIsNotEqual = arrayIsNotEqual;
22
- exports.getIsEmptyHour = getIsEmptyHour;
23
- exports.getIsEmptyYear = getIsEmptyYear;
24
- exports.getIsCurrentYear = getIsCurrentYear;
21
+ exports.getMinuteDetails = getMinuteDetails;
22
+ exports.getMonthDetails = getMonthDetails;
23
+ exports.getNoonDetails = getNoonDetails;
24
+ exports.getYearDetails = getYearDetails;
25
25
  exports.removeYearPattern = removeYearPattern;
26
26
 
27
27
  var _datetimejs = _interopRequireDefault(require("@zohodesk/datetimejs"));
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.equals = exports.omit = exports.extract = exports.clone = void 0;
6
+ exports.omit = exports.extract = exports.equals = exports.clone = void 0;
7
7
 
8
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
8
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
9
9
 
10
10
  /*eslint-disable */
11
11
  var clone = function clone(a, b, c, d, e, f) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -37,9 +37,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
37
37
 
38
38
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
39
39
 
40
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
40
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
41
41
 
42
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
42
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
43
43
 
44
44
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
45
45
 
@@ -118,7 +118,9 @@ var DropBoxElement = /*#__PURE__*/function (_React$Component) {
118
118
  targetOffset = _this$props2.targetOffset,
119
119
  zIndexStyle = _this$props2.zIndexStyle,
120
120
  customStyle = _this$props2.customStyle;
121
- var isReducedMotion = this.context.isReducedMotion;
121
+
122
+ var _ref = this.context || {},
123
+ isReducedMotion = _ref.isReducedMotion;
122
124
 
123
125
  if (!isAbsolutePositioningNeeded && size === 'default' && !isActive) {
124
126
  isAbsolutePositioningNeeded = true;
@@ -278,7 +280,9 @@ var DropBox = /*#__PURE__*/function (_React$Component2) {
278
280
  var zIndexStyle = isActive && needAutoZindex ? {
279
281
  zIndex: this.getNextIndex()
280
282
  } : {};
281
- var direction = this.context.direction;
283
+
284
+ var _ref2 = this.context || {},
285
+ direction = _ref2.direction;
282
286
 
283
287
  var dropBoxEle = /*#__PURE__*/_react["default"].createElement(DropBoxElement, _extends({
284
288
  isModel: isModel,
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.DropDownItemContainer = exports.DropDownContainer = exports.DropDownTarget = exports["default"] = void 0;
8
+ exports["default"] = exports.DropDownTarget = exports.DropDownItemContainer = exports.DropDownContainer = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
@@ -25,9 +25,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
25
25
 
26
26
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
27
27
 
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
28
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -19,9 +19,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
19
19
 
20
20
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21
21
 
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
22
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -19,9 +19,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
19
19
 
20
20
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21
21
 
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
22
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -25,9 +25,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
25
25
 
26
26
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
27
27
 
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
28
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -19,9 +19,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
19
19
 
20
20
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21
21
 
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
22
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -21,9 +21,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
21
21
 
22
22
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
23
23
 
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
 
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
27
 
28
28
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
package/lib/Layout/Box.js CHANGED
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getBoxProps = getBoxProps;
7
6
  exports["default"] = Box;
7
+ exports.getBoxProps = getBoxProps;
8
8
 
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
 
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getContainerProps = getContainerProps;
7
6
  exports["default"] = Container;
7
+ exports.getContainerProps = getContainerProps;
8
8
 
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
 
@@ -3,16 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "Container", {
6
+ Object.defineProperty(exports, "Box", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _Container["default"];
9
+ return _Box["default"];
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "Box", {
12
+ Object.defineProperty(exports, "Container", {
13
13
  enumerable: true,
14
14
  get: function get() {
15
- return _Box["default"];
15
+ return _Container["default"];
16
16
  }
17
17
  });
18
18
  exports.Layout = void 0;
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getClass = getClass;
6
+ exports.ViewportSizeType = exports.ColumnSizeType = void 0;
7
7
  exports.createProps = createProps;
8
+ exports.getClass = getClass;
8
9
  exports.isInteger = isInteger;
9
10
  exports.setProps = setProps;
10
- exports.ViewportSizeType = exports.ColumnSizeType = void 0;
11
11
 
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
 
@@ -87,7 +87,7 @@ ListContainer.defaultProps = {
87
87
  target: 'blank',
88
88
  needBorder: true,
89
89
  a11y: {},
90
- customClass: {},
90
+ customClass: '',
91
91
  customProps: {}
92
92
  };
93
93
  var _default = ListContainer;
@@ -115,13 +115,8 @@ ListContainer.propTypes = {
115
115
  role: _propTypes["default"].string,
116
116
  ariaSelected: _propTypes["default"].bool
117
117
  }),
118
- customClass: _propTypes["default"].shape({
119
- customListItem: _propTypes["default"].string,
120
- customTickIcon: _propTypes["default"].string
121
- }),
122
- customProps: _propTypes["default"].shape({
123
- ListItemProps: _propTypes["default"].object
124
- })
118
+ customClass: _propTypes["default"].string,
119
+ customProps: _propTypes["default"].object
125
120
  };
126
121
 
127
122
  if (false) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -17,6 +17,8 @@ var _ListContainer = _interopRequireDefault(require("./ListContainer"));
17
17
 
18
18
  var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
19
19
 
20
+ var _CustomResponsive = require("../Responsive/CustomResponsive");
21
+
20
22
  var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
21
23
 
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -27,9 +29,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
27
29
 
28
30
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
29
31
 
30
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
32
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
33
 
32
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
34
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
35
 
34
36
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
37
 
@@ -57,6 +59,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
57
59
  _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
58
60
  _this.getRef = _this.getRef.bind(_assertThisInitialized(_this));
59
61
  _this.handleMouseEnter = _this.handleMouseEnter.bind(_assertThisInitialized(_this));
62
+ _this.responsiveFunc = _this.responsiveFunc.bind(_assertThisInitialized(_this));
60
63
  return _this;
61
64
  }
62
65
 
@@ -90,9 +93,21 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
90
93
  index = _this$props3.index;
91
94
  onMouseEnter && onMouseEnter(id, value, index, e);
92
95
  }
96
+ }, {
97
+ key: "responsiveFunc",
98
+ value: function responsiveFunc(_ref) {
99
+ var mediaQueryOR = _ref.mediaQueryOR;
100
+ return {
101
+ mobileToTab: mediaQueryOR([{
102
+ maxWidth: 700
103
+ }])
104
+ };
105
+ }
93
106
  }, {
94
107
  key: "render",
95
108
  value: function render() {
109
+ var _this2 = this;
110
+
96
111
  var _this$props4 = this.props,
97
112
  size = _this$props4.size,
98
113
  active = _this$props4.active,
@@ -125,43 +140,49 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
125
140
  ariaHidden = _a11y$ariaHidden === void 0 ? true : _a11y$ariaHidden;
126
141
  var tickIconPalette = _ListItemModule["default"]["".concat(palette, "Tick")] ? _ListItemModule["default"]["".concat(palette, "Tick")] : '';
127
142
  var dataIdString = dataId ? dataId : value ? String(value).replace("'", '_') : 'listItem';
128
- return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
129
- a11y: a11y,
130
- size: size,
131
- palette: palette,
132
- highlight: highlight,
133
- isDisabled: isDisabled,
134
- active: active,
135
- autoHover: autoHover,
136
- needTick: needTick,
137
- needBorder: needBorder,
138
- customClass: customListItem,
139
- dataId: dataIdString,
140
- isLink: isLink,
141
- href: href,
142
- target: target,
143
- disableTitle: disableTitle,
144
- title: title,
145
- onClick: this.handleClick,
146
- onMouseEnter: this.handleMouseEnter,
147
- eleRef: this.getRef,
148
- customProps: ListItemProps
149
- }, ContainerProps), value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
150
- shrink: true,
151
- adjust: true,
152
- className: _ListItemModule["default"].value
153
- }, value) : null, children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
154
- shrink: true,
155
- adjust: true,
156
- className: _ListItemModule["default"].children
157
- }, children) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
158
- className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon),
159
- "aria-hidden": ariaHidden,
160
- dataId: "".concat(dataIdString, "_tickIcon")
161
- }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
162
- name: "ZD-ticknew",
163
- size: "8"
164
- })) : null);
143
+ return /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
144
+ query: this.responsiveFunc,
145
+ responsiveId: "Helmet"
146
+ }, function (_ref2) {
147
+ var mobileToTab = _ref2.mobileToTab;
148
+ return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
149
+ a11y: a11y,
150
+ size: size,
151
+ palette: palette,
152
+ highlight: highlight,
153
+ isDisabled: isDisabled,
154
+ active: active,
155
+ autoHover: autoHover,
156
+ needTick: needTick,
157
+ needBorder: needBorder,
158
+ customClass: "".concat(customListItem, " ").concat(mobileToTab && _ListItemModule["default"].responsiveHeight),
159
+ dataId: dataIdString,
160
+ isLink: isLink,
161
+ href: href,
162
+ target: target,
163
+ disableTitle: disableTitle,
164
+ title: title,
165
+ onClick: _this2.handleClick,
166
+ onMouseEnter: _this2.handleMouseEnter,
167
+ eleRef: _this2.getRef,
168
+ customProps: ListItemProps
169
+ }, ContainerProps), value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
170
+ shrink: true,
171
+ adjust: true,
172
+ className: _ListItemModule["default"].value
173
+ }, value) : null, children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
174
+ shrink: true,
175
+ adjust: true,
176
+ className: _ListItemModule["default"].children
177
+ }, children) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
178
+ className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon),
179
+ "aria-hidden": ariaHidden,
180
+ dataId: "".concat(dataIdString, "_tickIcon")
181
+ }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
182
+ name: "ZD-ticknew",
183
+ size: "8"
184
+ })) : null);
185
+ });
165
186
  }
166
187
  }]);
167
188