@zohodesk/components 1.0.0-temp-444 → 1.0.0-temp-667

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 (270) hide show
  1. package/README.md +16 -0
  2. package/assets/Appearance/dark/mode/darkMode.module.css +3 -18
  3. package/assets/Appearance/default/mode/defaultMode.module.css +2 -17
  4. package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +5 -20
  5. package/es/AppContainer/AppContainer.js +1 -1
  6. package/es/Avatar/Avatar.js +1 -1
  7. package/es/Avatar/Avatar.module.css +11 -9
  8. package/es/AvatarTeam/AvatarTeam.js +1 -1
  9. package/es/AvatarTeam/AvatarTeam.module.css +21 -7
  10. package/es/Button/Button.module.css +97 -24
  11. package/es/Buttongroup/Buttongroup.module.css +37 -8
  12. package/es/CheckBox/CheckBox.js +1 -1
  13. package/es/CheckBox/CheckBox.module.css +29 -19
  14. package/es/DateTime/DateTime.js +4 -2
  15. package/es/DateTime/DateTime.module.css +40 -13
  16. package/es/DateTime/DateWidget.js +4 -2
  17. package/es/DateTime/DateWidget.module.css +9 -5
  18. package/es/DateTime/YearView.module.css +17 -6
  19. package/es/DropBox/DropBox.js +1 -1
  20. package/es/DropBox/DropBox.module.css +47 -11
  21. package/es/DropDown/DropDownHeading.module.css +7 -3
  22. package/es/DropDown/DropDownItem.module.css +32 -6
  23. package/es/LightNightMode/Colors.json +496 -397
  24. package/es/LightNightMode/docs/AlternativeColors.docs.js +21 -1
  25. package/es/ListItem/ListContainer.js +1 -1
  26. package/es/ListItem/ListItem.js +1 -1
  27. package/es/ListItem/ListItem.module.css +69 -33
  28. package/es/ListItem/ListItemWithAvatar.js +1 -1
  29. package/es/ListItem/ListItemWithCheckBox.js +1 -1
  30. package/es/ListItem/ListItemWithIcon.js +1 -1
  31. package/es/ListItem/ListItemWithRadio.js +1 -1
  32. package/es/Modal/Modal.js +1 -1
  33. package/es/MultiSelect/AdvancedGroupMultiSelect.js +14 -7
  34. package/es/MultiSelect/AdvancedMultiSelect.js +20 -8
  35. package/es/MultiSelect/MultiSelect.module.css +36 -11
  36. package/es/MultiSelect/SelectedOptions.js +1 -1
  37. package/es/MultiSelect/SelectedOptions.module.css +8 -2
  38. package/es/MultiSelect/Suggestions.js +1 -1
  39. package/es/PopOver/PopOver.module.css +1 -1
  40. package/es/Popup/Popup.js +1 -1
  41. package/es/Radio/Radio.module.css +18 -10
  42. package/es/Responsive/ResizeComponent.js +15 -73
  43. package/es/Responsive/ResizeObserver.js +2 -6
  44. package/es/Responsive/docs/style.module.css +17 -8
  45. package/es/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
  46. package/es/Ribbon/Ribbon.module.css +93 -28
  47. package/es/RippleEffect/RippleEffect.module.css +37 -44
  48. package/es/Select/Select.js +30 -8
  49. package/es/Select/Select.module.css +12 -2
  50. package/es/Select/docs/Select__default.docs.js +1 -1
  51. package/es/Stencils/Stencils.module.css +21 -3
  52. package/es/Switch/Switch.js +1 -1
  53. package/es/Switch/Switch.module.css +9 -9
  54. package/es/Tab/Tab.js +1 -1
  55. package/es/Tab/Tab.module.css +16 -7
  56. package/es/Tab/TabWrapper.js +1 -1
  57. package/es/Tab/Tabs.js +1 -1
  58. package/es/Tab/Tabs.module.css +42 -8
  59. package/es/Tab/docs/tabdocs.module.css +1 -1
  60. package/es/Tag/Tag.module.css +36 -14
  61. package/es/TextBox/TextBox.js +1 -1
  62. package/es/TextBox/TextBox.module.css +7 -11
  63. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  64. package/es/TextBoxIcon/TextBoxIcon.module.css +12 -5
  65. package/es/Textarea/Textarea.js +1 -1
  66. package/es/Textarea/Textarea.module.css +6 -7
  67. package/es/Tooltip/Tooltip.module.css +9 -8
  68. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
  69. package/es/beta/FocusRing/FocusRing.module.css +51 -26
  70. package/es/common/animation.module.css +219 -21
  71. package/es/common/basicReset.module.css +2 -12
  72. package/es/common/common.module.css +62 -18
  73. package/es/common/customscroll.module.css +17 -21
  74. package/es/common/docStyle.module.css +79 -32
  75. package/es/common/transition.module.css +50 -10
  76. package/es/css.js +0 -1
  77. package/{lib/MultiSelect → es/deprecated}/AdvancedMultiSelect.module.css +1 -1
  78. package/es/deprecated/advancedMultiSelectVariableJson.js +80 -0
  79. package/es/semantic/Button/semanticButton.module.css +3 -3
  80. package/lib/Accordion/Accordion.js +2 -2
  81. package/lib/Accordion/AccordionItem.js +2 -2
  82. package/lib/Accordion/docs/Accordion__Demo.docs.js +2 -2
  83. package/lib/Animation/Animation.js +2 -2
  84. package/lib/Animation/docs/Animation__default.docs.js +2 -2
  85. package/lib/Animation/docs/Animation__fadeIn.docs.js +2 -2
  86. package/lib/Animation/docs/Animation__scaleIn.docs.js +2 -2
  87. package/lib/Animation/docs/Animation__skewIn.docs.js +2 -2
  88. package/lib/Animation/docs/Animation__slideDown.docs.js +2 -2
  89. package/lib/Animation/docs/Animation__slideLeft.docs.js +2 -2
  90. package/lib/Animation/docs/Animation__zoomIn.docs.js +2 -2
  91. package/lib/AppContainer/AppContainer.js +11 -4
  92. package/lib/AppContainer/docs/AppContainer__default.docs.js +2 -2
  93. package/lib/Avatar/Avatar.js +3 -3
  94. package/lib/Avatar/docs/Avatar__custom.docs.js +2 -2
  95. package/lib/Avatar/docs/Avatar__default.docs.js +2 -2
  96. package/lib/Avatar/docs/Avatar__palette.docs.js +2 -2
  97. package/lib/Avatar/docs/Avatar__text.docs.js +2 -2
  98. package/lib/AvatarTeam/AvatarTeam.js +3 -3
  99. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +2 -2
  100. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +2 -2
  101. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +2 -2
  102. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +2 -2
  103. package/lib/Button/Button.js +2 -2
  104. package/lib/Button/docs/Button__custom.docs.js +2 -2
  105. package/lib/Button/docs/Button__default.docs.js +2 -2
  106. package/lib/Buttongroup/Buttongroup.js +2 -2
  107. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +2 -2
  108. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +2 -2
  109. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +2 -2
  110. package/lib/Card/Card.js +2 -2
  111. package/lib/Card/docs/Card__Custom.docs.js +2 -2
  112. package/lib/Card/docs/Card__Default.docs.js +2 -2
  113. package/lib/Card/docs/Card__Scroll.docs.js +2 -2
  114. package/lib/CheckBox/CheckBox.js +5 -4
  115. package/lib/CheckBox/CheckBox.module.css +12 -8
  116. package/lib/CheckBox/docs/CheckBox__custom.docs.js +2 -2
  117. package/lib/CheckBox/docs/CheckBox__default.docs.js +2 -2
  118. package/lib/DateTime/CalendarView.js +2 -2
  119. package/lib/DateTime/DateTime.js +50 -22
  120. package/lib/DateTime/DateTime.module.css +1 -1
  121. package/lib/DateTime/DateTimePopupFooter.js +2 -2
  122. package/lib/DateTime/DateTimePopupHeader.js +2 -2
  123. package/lib/DateTime/DateWidget.js +14 -4
  124. package/lib/DateTime/DateWidget.module.css +0 -4
  125. package/lib/DateTime/DaysRow.js +2 -2
  126. package/lib/DateTime/Time.js +2 -2
  127. package/lib/DateTime/YearView.js +2 -2
  128. package/lib/DateTime/YearView.module.css +1 -0
  129. package/lib/DateTime/docs/DateTime__default.docs.js +2 -2
  130. package/lib/DateTime/docs/DateWidget__default.docs.js +2 -2
  131. package/lib/DropBox/DropBox.js +4 -4
  132. package/lib/DropBox/docs/DropBox__custom.docs.js +2 -2
  133. package/lib/DropBox/docs/DropBox__customOrder.docs.js +2 -2
  134. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +2 -2
  135. package/lib/DropBox/docs/DropBox__position.docs.js +2 -2
  136. package/lib/DropBox/docs/DropBox__size.docs.js +2 -2
  137. package/lib/DropDown/DropDown.js +2 -2
  138. package/lib/DropDown/DropDownHeading.js +2 -2
  139. package/lib/DropDown/DropDownItem.js +2 -2
  140. package/lib/DropDown/DropDownSearch.js +2 -2
  141. package/lib/DropDown/DropDownSeparator.js +2 -2
  142. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +2 -2
  143. package/lib/DropDown/docs/DropDownHeading__default.docs.js +2 -2
  144. package/lib/Label/Label.js +2 -2
  145. package/lib/Label/docs/Label__clipped.docs.js +2 -2
  146. package/lib/Label/docs/Label__custom.docs.js +2 -2
  147. package/lib/Label/docs/Label__palette.docs.js +2 -2
  148. package/lib/Label/docs/Label__size.docs.js +2 -2
  149. package/lib/Label/docs/Label__type.docs.js +2 -2
  150. package/lib/Layout/docs/Layout__Hidden.docs.js +2 -2
  151. package/lib/Layout/docs/Layout__default.docs.js +2 -2
  152. package/lib/Layout/docs/Layout__four_Column.docs.js +2 -2
  153. package/lib/Layout/docs/Layout__three_Column.docs.js +2 -2
  154. package/lib/Layout/docs/Layout__two_Column.docs.js +2 -2
  155. package/lib/LightNightMode/Colors.json +496 -397
  156. package/lib/LightNightMode/docs/AlternativeColors.docs.js +25 -3
  157. package/lib/ListItem/ListContainer.js +8 -5
  158. package/lib/ListItem/ListItem.js +4 -4
  159. package/lib/ListItem/ListItem.module.css +18 -19
  160. package/lib/ListItem/ListItemWithAvatar.js +4 -4
  161. package/lib/ListItem/ListItemWithCheckBox.js +4 -4
  162. package/lib/ListItem/ListItemWithIcon.js +4 -4
  163. package/lib/ListItem/ListItemWithRadio.js +4 -4
  164. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +2 -2
  165. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +2 -2
  166. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +2 -2
  167. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +2 -2
  168. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +2 -2
  169. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +2 -2
  170. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +2 -2
  171. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +2 -2
  172. package/lib/ListItem/docs/ListItem__custom.docs.js +2 -2
  173. package/lib/ListItem/docs/ListItem__default.docs.js +2 -2
  174. package/lib/Modal/Modal.js +3 -3
  175. package/lib/Modal/__docs__/Modal__default.docs.js +2 -2
  176. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +120 -88
  177. package/lib/MultiSelect/AdvancedMultiSelect.js +99 -62
  178. package/lib/MultiSelect/EmptyState.js +2 -2
  179. package/lib/MultiSelect/MultiSelect.js +90 -64
  180. package/lib/MultiSelect/MultiSelect.module.css +15 -2
  181. package/lib/MultiSelect/MultiSelectHeader.js +2 -2
  182. package/lib/MultiSelect/MultiSelectWithAvatar.js +80 -55
  183. package/lib/MultiSelect/SelectedOptions.js +3 -3
  184. package/lib/MultiSelect/Suggestions.js +3 -3
  185. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -2
  186. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +2 -2
  187. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +2 -2
  188. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +2 -2
  189. package/lib/PopOver/PopOver.js +13 -6
  190. package/lib/PopOver/docs/PopOver__default.docs.js +2 -2
  191. package/lib/Popup/Popup.js +3 -3
  192. package/lib/Popup/__tests__/Popup.spec.js +2 -2
  193. package/lib/Provider/Config.js +3 -1
  194. package/lib/Provider/docs/Provider_Id__Class.docs.js +2 -2
  195. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +2 -2
  196. package/lib/Provider.js +34 -100
  197. package/lib/Radio/Radio.js +2 -2
  198. package/lib/Radio/Radio.module.css +8 -6
  199. package/lib/Radio/docs/Radio__custom.docs.js +2 -2
  200. package/lib/Radio/docs/Radio__default.docs.js +2 -2
  201. package/lib/Responsive/ResizeComponent.js +2 -2
  202. package/lib/Responsive/Responsive.js +2 -2
  203. package/lib/Responsive/docs/Responsive__Custom.docs.js +2 -2
  204. package/lib/Responsive/docs/Responsive__default.docs.js +2 -2
  205. package/lib/Responsive/sizeObservers.js +3 -3
  206. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +130 -0
  207. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
  208. package/lib/Ribbon/Ribbon.js +2 -2
  209. package/lib/Ribbon/docs/Ribbon__custom.docs.js +2 -2
  210. package/lib/Ribbon/docs/Ribbon__default.docs.js +2 -2
  211. package/lib/RippleEffect/RippleEffect.module.css +37 -15
  212. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +2 -2
  213. package/lib/Select/GroupSelect.js +102 -79
  214. package/lib/Select/Select.js +142 -87
  215. package/lib/Select/Select.module.css +6 -0
  216. package/lib/Select/SelectWithAvatar.js +98 -73
  217. package/lib/Select/SelectWithIcon.js +99 -76
  218. package/lib/Select/docs/GroupSelect__default.docs.js +2 -2
  219. package/lib/Select/docs/SelectWithAvatar__default.docs.js +2 -2
  220. package/lib/Select/docs/SelectWithIcon__default.docs.js +2 -2
  221. package/lib/Select/docs/Select__default.docs.js +3 -3
  222. package/lib/Stencils/Stencils.js +2 -2
  223. package/lib/Stencils/docs/Stencils__custom.docs.js +2 -2
  224. package/lib/Stencils/docs/Stencils__default.docs.js +2 -2
  225. package/lib/Switch/Switch.js +3 -3
  226. package/lib/Switch/Switch.module.css +3 -2
  227. package/lib/Switch/docs/Switch__custom.docs.js +2 -2
  228. package/lib/Switch/docs/Switch__default.docs.js +2 -2
  229. package/lib/Tab/Tab.js +1 -1
  230. package/lib/Tab/TabWrapper.js +1 -1
  231. package/lib/Tab/Tabs.js +70 -47
  232. package/lib/Tab/Tabs.module.css +2 -1
  233. package/lib/Tab/docs/Tab__default.docs.js +2 -2
  234. package/lib/Tag/Tag.js +3 -3
  235. package/lib/Tag/Tag.module.css +6 -2
  236. package/lib/Tag/docs/Tag__custom.docs.js +2 -2
  237. package/lib/Tag/docs/Tag__default.docs.js +2 -2
  238. package/lib/TextBox/TextBox.js +3 -3
  239. package/lib/TextBox/docs/TextBox__custom.docs.js +2 -2
  240. package/lib/TextBox/docs/TextBox__default.docs.js +2 -2
  241. package/lib/TextBox/docs/TextBox__size.docs.js +2 -2
  242. package/lib/TextBox/docs/TextBox__variant.docs.js +2 -2
  243. package/lib/TextBoxIcon/TextBoxIcon.js +3 -3
  244. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +2 -2
  245. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +2 -2
  246. package/lib/Textarea/Textarea.js +3 -3
  247. package/lib/Textarea/docs/Textarea__animated.docs.js +2 -2
  248. package/lib/Textarea/docs/Textarea__custom.docs.js +2 -2
  249. package/lib/Textarea/docs/Textarea__default.docs.js +2 -2
  250. package/lib/Textarea/docs/Textarea__disabled.docs.js +2 -2
  251. package/lib/Tooltip/Tooltip.js +62 -10
  252. package/lib/Tooltip/Tooltip.module.css +6 -1
  253. package/lib/Tooltip/__tests__/Tooltip.spec.js +2 -2
  254. package/lib/Tooltip/docs/Tooltip__default.docs.js +52 -13
  255. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -2
  256. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
  257. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  258. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
  259. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +2 -2
  260. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +2 -2
  261. package/lib/common/docStyle.module.css +6 -2
  262. package/lib/css.js +0 -2
  263. package/{es/MultiSelect → lib/deprecated}/AdvancedMultiSelect.module.css +23 -9
  264. package/lib/deprecated/PortalLayer/PortalLayer.js +2 -2
  265. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +2 -2
  266. package/lib/deprecated/advancedMultiSelectVariableJson.js +82 -0
  267. package/lib/index.js +10 -1
  268. package/lib/semantic/Button/Button.js +2 -2
  269. package/lib/semantic/Button/docs/Button__default.docs.js +2 -2
  270. package/package.json +4 -4
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+
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
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
15
+
16
+ var _Layout = require("../Layout");
17
+
18
+ var _CustomResponsive = require("../Responsive/CustomResponsive");
19
+
20
+ var _ResponsiveDropBoxModule = _interopRequireDefault(require("./ResponsiveDropBox.module.css"));
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
+
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
+
28
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
29
+
30
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
+
32
+ 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); } }
33
+
34
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
+
36
+ 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); }
37
+
38
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
+
40
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
41
+
42
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
43
+
44
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
45
+
46
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
+
48
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
+
50
+ var ResponsiveDropBox = /*#__PURE__*/function (_Component) {
51
+ _inherits(ResponsiveDropBox, _Component);
52
+
53
+ var _super = _createSuper(ResponsiveDropBox);
54
+
55
+ function ResponsiveDropBox(props) {
56
+ var _this;
57
+
58
+ _classCallCheck(this, ResponsiveDropBox);
59
+
60
+ _this = _super.call(this, props);
61
+ _this.responsiveFunc = _this.responsiveFunc.bind(_assertThisInitialized(_this));
62
+ return _this;
63
+ }
64
+
65
+ _createClass(ResponsiveDropBox, [{
66
+ key: "responsiveFunc",
67
+ value: function responsiveFunc(_ref) {
68
+ var mediaQueryOR = _ref.mediaQueryOR;
69
+ return {
70
+ tabletMode: mediaQueryOR([{
71
+ maxWidth: 700
72
+ }])
73
+ };
74
+ }
75
+ }, {
76
+ key: "render",
77
+ value: function render() {
78
+ var _this$props = this.props,
79
+ children = _this$props.children,
80
+ _this$props$customCla = _this$props.customClass,
81
+ customClass = _this$props$customCla === void 0 ? {} : _this$props$customCla,
82
+ isResponsivePadding = _this$props.isResponsivePadding,
83
+ alignBox = _this$props.alignBox;
84
+ var _customClass$customDr = customClass.customDropBox,
85
+ customDropBox = _customClass$customDr === void 0 ? '' : _customClass$customDr,
86
+ _customClass$customMo = customClass.customMobileDropBox,
87
+ customMobileDropBox = _customClass$customMo === void 0 ? '' : _customClass$customMo,
88
+ _customClass$customDr2 = customClass.customDropBoxWrap,
89
+ customDropBoxWrap = _customClass$customDr2 === void 0 ? '' : _customClass$customDr2,
90
+ _customClass$customMo2 = customClass.customMobileDropBoxWrap,
91
+ customMobileDropBoxWrap = _customClass$customMo2 === void 0 ? '' : _customClass$customMo2,
92
+ _customClass$customRe = customClass.customResponsiveContainer,
93
+ customResponsiveContainer = _customClass$customRe === void 0 ? '' : _customClass$customRe;
94
+ var dropBoxClasses = {
95
+ customDropBox: "".concat(customDropBox),
96
+ customMobileDropBox: "".concat(customMobileDropBox),
97
+ customDropBoxWrap: "".concat(customDropBoxWrap),
98
+ customMobileDropBoxWrap: "".concat(customMobileDropBoxWrap),
99
+ customResponsiveContainer: "".concat(customResponsiveContainer)
100
+ };
101
+ return /*#__PURE__*/_react["default"].createElement(_DropBox["default"], _extends({}, this.props, {
102
+ customClass: dropBoxClasses
103
+ }), /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
104
+ query: this.responsiveFunc,
105
+ responsiveId: "Helmet"
106
+ }, function (_ref2) {
107
+ var tabletMode = _ref2.tabletMode;
108
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
109
+ alignBox: alignBox,
110
+ isCover: false,
111
+ className: "".concat(tabletMode ? _ResponsiveDropBoxModule["default"].dropBoxContainer : '', " ").concat(tabletMode && isResponsivePadding ? _ResponsiveDropBoxModule["default"].boxPadding : '', " ").concat(customResponsiveContainer)
112
+ }, children);
113
+ }));
114
+ }
115
+ }]);
116
+
117
+ return ResponsiveDropBox;
118
+ }(_react.Component);
119
+
120
+ exports["default"] = ResponsiveDropBox;
121
+ ResponsiveDropBox.propTypes = {
122
+ children: _propTypes["default"].element,
123
+ customClass: _propTypes["default"].object,
124
+ isResponsivePadding: _propTypes["default"].bool,
125
+ alignBox: _propTypes["default"].oneOf(['column', 'row'])
126
+ };
127
+ ResponsiveDropBox.defaultProps = {
128
+ isResponsivePadding: false,
129
+ alignBox: 'column'
130
+ };
@@ -0,0 +1,6 @@
1
+ .dropBoxContainer {
2
+ max-height: 70vh;
3
+ }
4
+ .boxPadding{
5
+ padding-bottom: var(--zd_size10);
6
+ }
@@ -23,7 +23,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
23
23
 
24
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
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
28
28
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
29
29
 
@@ -33,7 +33,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
33
33
 
34
34
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
35
 
36
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
36
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
37
 
38
38
  var Ribbon = /*#__PURE__*/function (_React$Component) {
39
39
  _inherits(Ribbon, _React$Component);
@@ -25,7 +25,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
25
25
 
26
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
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
30
30
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
31
31
 
@@ -35,7 +35,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
35
35
 
36
36
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
37
 
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
39
 
40
40
  var Ribbon__custom = /*#__PURE__*/function (_React$Component) {
41
41
  _inherits(Ribbon__custom, _React$Component);
@@ -23,7 +23,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
23
23
 
24
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
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
28
28
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
29
29
 
@@ -33,7 +33,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
33
33
 
34
34
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
35
 
36
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
36
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
37
 
38
38
  var Ribbon__default = /*#__PURE__*/function (_React$Component) {
39
39
  _inherits(Ribbon__default, _React$Component);
@@ -8,43 +8,61 @@
8
8
  .default.defaultHover {
9
9
  border-color: var(--zdt_rippleeffect_hover_border);
10
10
  }
11
- .hoverEffect:hover.primary.defaultHover, .hoverEffect:focus.primary.defaultHover, .hoverEffect:hover.primary.borderHover, .hoverEffect:focus.primary.borderHover {
11
+ .hoverEffect:hover.primary.defaultHover, .hoverEffect:hover.primary.borderHover
12
+ /* .hoverEffect:focus.primary.borderHover */
13
+ {
12
14
  border-color: var(--zdt_rippleeffect_primary_border);
13
15
  }
14
- .primary.defaultHover, .hoverEffect:hover.primary.active.border, .hoverEffect:focus.primary.active.border {
16
+ .primary.defaultHover, .hoverEffect:hover.primary.active.border
17
+ /* .hoverEffect:focus.primary.active.border */
18
+ {
15
19
  border-color: var(--zdt_rippleeffect_primary_active_border);
16
20
  }
17
- .primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover, .hoverEffect:focus.primaryLight.borderHover {
21
+ .primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
22
+ /* .hoverEffect:focus.primaryLight.borderHover */
23
+ {
18
24
  border-color: var(--zdt_rippleeffect_primary_light_border);
19
25
  }
20
- .green.defaultHover, .hoverEffect:hover.green.borderHover, .hoverEffect:focus.green.borderHover {
26
+ .green.defaultHover, .hoverEffect:hover.green.borderHover
27
+ /* .hoverEffect:focus.green.borderHover */
28
+ {
21
29
  border-color: var(--zdt_rippleeffect_green_border);
22
30
  }
23
- .hoverEffect:hover.default.defaultHover, .hoverEffect:focus.default.defaultHover {
31
+ .hoverEffect:hover.default.defaultHover
32
+ /* .hoverEffect:focus.default.defaultHover */
33
+ {
24
34
  border-color: var(--zdt_rippleeffect_slate_border);
25
35
  }
26
- .hoverEffect:hover.default.borderHover, .hoverEffect:focus.default.borderHover {
36
+ .hoverEffect:hover.default.borderHover
37
+ /* .hoverEffect:focus.default.borderHover */
38
+ {
27
39
  border-color: var(--zdt_rippleeffect_navy_border);
28
40
  }
29
- .hoverEffect:hover.default.bgHover, .hoverEffect:focus.default.bgHover {
41
+ .hoverEffect:hover.default.bgHover
42
+ /* .hoverEffect:focus.default.bgHover */
43
+ {
30
44
  background-color: var(--zdt_rippleeffect_hover_bg);
31
45
  }
32
- .hoverEffect:hover.primaryLight.bgHover, .hoverEffect:focus.primaryLight.bgHover {
46
+ .hoverEffect:hover.primaryLight.bgHover
47
+ /* .hoverEffect:focus.primaryLight.bgHover */
48
+ {
33
49
  background-color: var(--zdt_rippleeffect_primary_light_bg);
34
50
  }
35
51
  .primaryFilled {
36
52
  background-color: var(--zdt_rippleeffect_primary_bg);
37
53
  }
38
- .hoverEffect:hover.primaryFilled, .hoverEffect:focus.primaryFilled, .primaryFilled.active {
54
+ .hoverEffect:hover.primaryFilled, .primaryFilled.active {
39
55
  background-color: var(--zdt_rippleeffect_primaryfilled_bg);
40
56
  }
41
- .hoverEffect:hover.green.bgHover, .hoverEffect:focus.green.bgHover {
57
+ .hoverEffect:hover.green.bgHover
58
+ /* .hoverEffect:focus.green.bgHover */
59
+ {
42
60
  background-color: var(--zdt_rippleeffect_green_bg);
43
61
  }
44
- .default.active, .hoverEffect:hover.default.active, .hoverEffect:focus.default.active, .primaryLight.active, .primaryDark.active {
62
+ .default.active, .hoverEffect:hover.default.active, .primaryLight.active, .primaryDark.active {
45
63
  background-color: var(--zdt_rippleeffect_primary_light_bg);
46
64
  }
47
- .default.active.border, .hoverEffect:hover.default.active.border, .hoverEffect:focus.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
65
+ .default.active.border, .hoverEffect:hover.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
48
66
  border-color: var(--zdt_rippleeffect_primary_light_border);
49
67
  }
50
68
  .green.active {
@@ -56,13 +74,17 @@
56
74
  .primary.active {
57
75
  background-color: var(--zdt_rippleeffect_primary_bg);
58
76
  }
59
- .danger.defaultHover, .hoverEffect:hover.danger.borderHover, .hoverEffect:focus.danger.borderHover {
77
+ .danger.defaultHover, .hoverEffect:hover.danger.borderHover
78
+ /* .hoverEffect:focus.danger.borderHover */
79
+ {
60
80
  border-color: var(--zdt_rippleeffect_danger_border);
61
81
  }
62
- .hoverEffect:hover.danger.bgHover, .hoverEffect:focus.danger.bgHover, .danger.active {
82
+ .hoverEffect:hover.danger.bgHover, .danger.active {
63
83
  background-color: var(--zdt_rippleeffect_danger_bg);
64
84
  }
65
- .hoverEffect:hover.primaryDark.bgHover, .hoverEffect:focus.primaryDark.bgHover {
85
+ .hoverEffect:hover.primaryDark.bgHover
86
+ /* .hoverEffect:focus.primaryDark.bgHover */
87
+ {
66
88
  background-color: var(--zdt_rippleeffect_primary_dark_bg);
67
89
  }
68
90
  .notAllowed {
@@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
21
21
 
22
22
  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); }
23
23
 
24
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
24
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
25
 
26
26
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
27
27
 
@@ -31,7 +31,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
31
31
 
32
32
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
33
33
 
34
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
34
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
35
 
36
36
  var RippleEffect__default = /*#__PURE__*/function (_React$Component) {
37
37
  _inherits(RippleEffect__default, _React$Component);
@@ -13,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
 
14
14
  var _Popup = _interopRequireDefault(require("../Popup/Popup"));
15
15
 
16
- var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
17
-
18
16
  var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon/TextBoxIcon"));
19
17
 
20
18
  var _TextBox = _interopRequireDefault(require("../TextBox/TextBox"));
@@ -33,6 +31,10 @@ var _Layout = require("../Layout");
33
31
 
34
32
  var _IdProvider = require("../Provider/IdProvider");
35
33
 
34
+ var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
35
+
36
+ var _CustomResponsive = require("../Responsive/CustomResponsive");
37
+
36
38
  var _SelectModule = _interopRequireDefault(require("./Select.module.css"));
37
39
 
38
40
  var _dropDownUtils = require("../utils/dropDownUtils");
@@ -65,7 +67,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
65
67
 
66
68
  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); }
67
69
 
68
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
70
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
69
71
 
70
72
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
71
73
 
@@ -75,7 +77,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
75
77
 
76
78
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
77
79
 
78
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
80
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
79
81
 
80
82
  /* eslint-disable react/no-unused-prop-types */
81
83
 
@@ -192,7 +194,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
192
194
  }
193
195
 
194
196
  if (selectedOption !== prevProps.selectedOption) {
195
- var _this$handleGetSelect2 = this.handleGetSelectedId(this.props, allOptionIds),
197
+ var _this$handleGetSelect2 = this.handleGetSelectedId(this.props, newOptionIds),
196
198
  _selectedId = _this$handleGetSelect2.selectedId,
197
199
  _hoverIndex = _this$handleGetSelect2.hoverIndex;
198
200
 
@@ -601,6 +603,16 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
601
603
  var searchStr = this.state.searchStr;
602
604
  isNextOptions && getNextOptions && this.handleFetchOptions(getNextOptions, searchStr);
603
605
  }
606
+ }, {
607
+ key: "responsiveFunc",
608
+ value: function responsiveFunc(_ref2) {
609
+ var mediaQueryOR = _ref2.mediaQueryOR;
610
+ return {
611
+ tabletMode: mediaQueryOR([{
612
+ maxWidth: 700
613
+ }])
614
+ };
615
+ }
604
616
  }, {
605
617
  key: "render",
606
618
  value: function render() {
@@ -660,9 +672,9 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
660
672
  suggestionGroups = _this$handleFilterSug4.suggestionGroups,
661
673
  suggestionOptionIds = _this$handleFilterSug4.suggestionOptionIds;
662
674
 
663
- var _ref2 = normalizedFormatOptions[selectedId] || {},
664
- _ref2$value = _ref2.value,
665
- selected = _ref2$value === void 0 ? '' : _ref2$value;
675
+ var _ref3 = normalizedFormatOptions[selectedId] || {},
676
+ _ref3$value = _ref3.value,
677
+ selected = _ref3$value === void 0 ? '' : _ref3$value;
666
678
 
667
679
  var setAriaId = this.getNextAriaId();
668
680
  var ariaErrorId = this.getNextAriaId();
@@ -741,78 +753,89 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
741
753
  },
742
754
  autoComplete: false,
743
755
  isFocus: isPopupReady
744
- }))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
745
- animationStyle: animationStyle,
746
- boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
747
- getRef: getContainerRef,
748
- isActive: isPopupReady,
749
- isAnimate: true,
750
- isArrow: false,
751
- onClick: removeClose,
752
- needResponsive: needResponsive,
753
- isPadding: false
754
- }, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
755
- customClass: _SelectModule["default"].box,
756
- onScroll: this.handleScroll
757
- }, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
758
- className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
759
- }, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
760
- inputRef: this.searchInputRef,
761
- maxLength: maxLength,
762
- onChange: this.handleSearch,
763
- onKeyDown: this.handleKeyDown,
764
- placeHolder: searchBoxPlaceHolder,
765
- size: searchBoxSize,
766
- value: searchStr,
767
- onClear: this.handleClearSearch,
768
- a11y: {
769
- ariaControls: setAriaId,
770
- ariaAutocomplete: 'list',
771
- ariaDescribedby: ariaErrorId
772
- },
773
- autoComplete: false
774
- }))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
775
- customClass: dropBoxSize ? _SelectModule["default"][dropBoxSize] : '',
776
- eleRef: this.suggestionContainerRef
777
- }, suggestionGroups.length ? suggestionGroups.map(function (group) {
778
- var groupId = group.id,
779
- groupName = group.name,
780
- options = group.options;
781
- var hoverId = suggestionOptionIds[hoverIndex];
782
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
783
- key: groupId
784
- }, groupName && /*#__PURE__*/_react["default"].createElement("div", {
785
- className: _SelectModule["default"].groupTitle
786
- }, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
787
- text: groupName,
788
- a11y: {
789
- role: 'heading'
790
- }
791
- })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
792
- activeId: selectedId,
793
- suggestions: options,
794
- getRef: _this7.suggestionItemRef,
795
- hoverId: hoverId,
796
- onClick: _this7.handleChange,
797
- onMouseEnter: _this7.handleMouseEnter,
798
- selectedOptions: [selectedId],
799
- needTick: needTick,
800
- needBorder: false,
801
- htmlId: setAriaId,
756
+ }))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
757
+ query: this.responsiveFunc,
758
+ responsiveId: "Helmet"
759
+ }, function (_ref4) {
760
+ var tabletMode = _ref4.tabletMode;
761
+ return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], {
762
+ animationStyle: animationStyle,
763
+ boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
764
+ getRef: getContainerRef,
765
+ isActive: isPopupReady,
766
+ isAnimate: true,
767
+ isArrow: false,
768
+ onClick: removeClose,
769
+ needResponsive: needResponsive,
770
+ isPadding: false,
771
+ isResponsivePadding: getFooter ? false : true,
772
+ alignBox: "row"
773
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
774
+ flexible: true
775
+ }, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
776
+ customClass: _SelectModule["default"].box,
777
+ onScroll: _this7.handleScroll
778
+ }, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
779
+ className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
780
+ }, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
781
+ inputRef: _this7.searchInputRef,
782
+ maxLength: maxLength,
783
+ onChange: _this7.handleSearch,
784
+ onKeyDown: _this7.handleKeyDown,
785
+ placeHolder: searchBoxPlaceHolder,
786
+ size: searchBoxSize,
787
+ value: searchStr,
788
+ onClear: _this7.handleClearSearch,
802
789
  a11y: {
803
- ariaParentRole: 'listbox',
804
- role: 'option'
805
- }
806
- }));
807
- }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
808
- options: revampedGroups,
809
- searchString: searchStr,
810
- suggestions: suggestionGroups,
811
- dataId: dataIdSrchEmptyMsg,
812
- isLoading: isFetchingOptions,
813
- i18nKeys: i18nKeys,
814
- htmlId: ariaErrorId
815
- })), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)) : null);
790
+ ariaControls: setAriaId,
791
+ ariaAutocomplete: 'list',
792
+ ariaDescribedby: ariaErrorId
793
+ },
794
+ autoComplete: false
795
+ }))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
796
+ shrink: true,
797
+ customClass: !tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '',
798
+ eleRef: _this7.suggestionContainerRef
799
+ }, suggestionGroups.length ? suggestionGroups.map(function (group) {
800
+ var groupId = group.id,
801
+ groupName = group.name,
802
+ options = group.options;
803
+ var hoverId = suggestionOptionIds[hoverIndex];
804
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
805
+ key: groupId
806
+ }, groupName && /*#__PURE__*/_react["default"].createElement("div", {
807
+ className: _SelectModule["default"].groupTitle
808
+ }, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
809
+ text: groupName,
810
+ a11y: {
811
+ role: 'heading'
812
+ }
813
+ })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
814
+ activeId: selectedId,
815
+ suggestions: options,
816
+ getRef: _this7.suggestionItemRef,
817
+ hoverId: hoverId,
818
+ onClick: _this7.handleChange,
819
+ onMouseEnter: _this7.handleMouseEnter,
820
+ selectedOptions: [selectedId],
821
+ needTick: needTick,
822
+ needBorder: false,
823
+ htmlId: setAriaId,
824
+ a11y: {
825
+ ariaParentRole: 'listbox',
826
+ role: 'option'
827
+ }
828
+ }));
829
+ }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
830
+ options: revampedGroups,
831
+ searchString: searchStr,
832
+ suggestions: suggestionGroups,
833
+ dataId: dataIdSrchEmptyMsg,
834
+ isLoading: isFetchingOptions,
835
+ i18nKeys: i18nKeys,
836
+ htmlId: ariaErrorId
837
+ })), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)));
838
+ }) : null);
816
839
  }
817
840
  }]);
818
841