@zohodesk/components 1.2.3 → 1.2.5

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 (205) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/PropValidationExcludeFilesArray.js +10 -2
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +8 -0
  5. package/coverage/Button/Button.js.html +1 -1
  6. package/coverage/Button/css/Button.module.css.html +1 -1
  7. package/coverage/Button/css/cssJSLogic.js.html +1 -1
  8. package/coverage/Button/css/index.html +1 -1
  9. package/coverage/Button/index.html +1 -1
  10. package/coverage/Button/props/defaultProps.js.html +1 -1
  11. package/coverage/Button/props/index.html +1 -1
  12. package/coverage/Button/props/propTypes.js.html +1 -1
  13. package/coverage/Buttongroup/Buttongroup.js.html +1 -1
  14. package/coverage/Buttongroup/Buttongroup.module.css.html +1 -1
  15. package/coverage/Buttongroup/index.html +1 -1
  16. package/coverage/Buttongroup/props/defaultProps.js.html +1 -1
  17. package/coverage/Buttongroup/props/index.html +1 -1
  18. package/coverage/Buttongroup/props/propTypes.js.html +1 -1
  19. package/coverage/index.html +1 -1
  20. package/coverage/utils/dummyFunction.js.html +1 -1
  21. package/coverage/utils/index.html +1 -1
  22. package/es/index.js +2 -1
  23. package/es/v1/Accordion/Accordion.js +65 -0
  24. package/es/v1/Accordion/AccordionItem.js +57 -0
  25. package/es/v1/Accordion/index.js +2 -0
  26. package/es/v1/Animation/Animation.js +127 -0
  27. package/es/v1/AppContainer/AppContainer.js +134 -0
  28. package/es/v1/Avatar/Avatar.js +189 -0
  29. package/es/v1/AvatarTeam/AvatarTeam.js +70 -0
  30. package/es/v1/Button/Button.js +68 -0
  31. package/es/v1/Buttongroup/Buttongroup.js +31 -0
  32. package/es/v1/Card/Card.js +271 -0
  33. package/es/v1/CheckBox/CheckBox.js +155 -0
  34. package/es/v1/DateTime/CalendarView.js +218 -0
  35. package/es/v1/DateTime/DateTime.js +783 -0
  36. package/es/v1/DateTime/DateTimePopupFooter.js +47 -0
  37. package/es/v1/DateTime/DateTimePopupHeader.js +105 -0
  38. package/es/v1/DateTime/DateWidget.js +1098 -0
  39. package/es/v1/DateTime/DaysRow.js +31 -0
  40. package/es/v1/DateTime/Time.js +166 -0
  41. package/es/v1/DateTime/YearView.js +264 -0
  42. package/es/v1/DateTime/index.js +1 -0
  43. package/es/v1/DropBox/DropBox.js +91 -0
  44. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +132 -0
  45. package/es/v1/DropDown/DropDown.js +73 -0
  46. package/es/v1/DropDown/DropDownHeading.js +44 -0
  47. package/es/v1/DropDown/DropDownItem.js +76 -0
  48. package/es/v1/DropDown/DropDownSearch.js +63 -0
  49. package/es/v1/DropDown/DropDownSeparator.js +15 -0
  50. package/es/v1/Heading/Heading.js +32 -0
  51. package/es/v1/Label/Label.js +40 -0
  52. package/es/v1/Layout/Box.js +115 -0
  53. package/es/v1/Layout/Container.js +132 -0
  54. package/es/v1/Layout/index.js +2 -0
  55. package/es/v1/ListItem/ListContainer.js +102 -0
  56. package/es/v1/ListItem/ListItem.js +124 -0
  57. package/es/v1/ListItem/ListItemWithAvatar.js +145 -0
  58. package/es/v1/ListItem/ListItemWithCheckBox.js +104 -0
  59. package/es/v1/ListItem/ListItemWithIcon.js +127 -0
  60. package/es/v1/ListItem/ListItemWithRadio.js +105 -0
  61. package/es/v1/ListItem/index.js +6 -0
  62. package/es/v1/Modal/Modal.js +154 -0
  63. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1079 -0
  64. package/es/v1/MultiSelect/AdvancedMultiSelect.js +568 -0
  65. package/es/v1/MultiSelect/EmptyState.js +64 -0
  66. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +50 -0
  67. package/es/v1/MultiSelect/MultiSelect.js +1120 -0
  68. package/es/v1/MultiSelect/MultiSelectHeader.js +32 -0
  69. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +216 -0
  70. package/es/v1/MultiSelect/SelectedOptions.js +82 -0
  71. package/es/v1/MultiSelect/Suggestions.js +142 -0
  72. package/es/v1/MultiSelect/index.js +4 -0
  73. package/es/v1/PopOver/PopOver.js +211 -0
  74. package/es/v1/Popup/Popup.js +645 -0
  75. package/es/v1/Radio/Radio.js +115 -0
  76. package/es/v1/Responsive/CustomResponsive.js +195 -0
  77. package/es/v1/Responsive/RefWrapper.js +39 -0
  78. package/es/v1/Responsive/ResizeComponent.js +197 -0
  79. package/es/v1/Responsive/ResizeObserver.js +140 -0
  80. package/es/v1/Responsive/Responsive.js +194 -0
  81. package/es/v1/Responsive/index.js +9 -0
  82. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +58 -0
  83. package/es/v1/Ribbon/Ribbon.js +33 -0
  84. package/es/v1/RippleEffect/RippleEffect.js +24 -0
  85. package/es/v1/Select/GroupSelect.js +803 -0
  86. package/es/v1/Select/Select.js +969 -0
  87. package/es/v1/Select/SelectWithAvatar.js +344 -0
  88. package/es/v1/Select/SelectWithIcon.js +535 -0
  89. package/es/v1/Select/index.js +4 -0
  90. package/es/v1/Stencils/Stencils.js +26 -0
  91. package/es/v1/Switch/Switch.js +94 -0
  92. package/es/v1/Tab/Tab.js +108 -0
  93. package/es/v1/Tab/TabContent.js +30 -0
  94. package/es/v1/Tab/TabContentWrapper.js +29 -0
  95. package/es/v1/Tab/TabWrapper.js +57 -0
  96. package/es/v1/Tab/Tabs.js +612 -0
  97. package/es/v1/Tab/index.js +5 -0
  98. package/es/v1/Tag/Tag.js +134 -0
  99. package/es/v1/TextBox/TextBox.js +154 -0
  100. package/es/v1/TextBoxIcon/TextBoxIcon.js +158 -0
  101. package/es/v1/Textarea/Textarea.js +102 -0
  102. package/es/v1/Tooltip/Tooltip.js +518 -0
  103. package/es/v1/Typography/Typography.js +38 -0
  104. package/es/v1/Typography/css/Typography.module.css +376 -0
  105. package/es/v1/Typography/css/cssJSLogic.js +46 -0
  106. package/es/v1/Typography/css/letterSpacingMap.js +12 -0
  107. package/es/v1/Typography/props/defaultProps.js +8 -0
  108. package/es/v1/Typography/props/propTypes.js +24 -0
  109. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +69 -0
  110. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +100 -0
  111. package/es/v1/semantic/Button/Button.js +53 -0
  112. package/es/v1/semantic/index.js +1 -0
  113. package/lib/index.js +10 -1
  114. package/lib/v1/Accordion/Accordion.js +96 -0
  115. package/lib/v1/Accordion/AccordionItem.js +68 -0
  116. package/lib/v1/Accordion/index.js +23 -0
  117. package/lib/v1/Animation/Animation.js +143 -0
  118. package/lib/v1/AppContainer/AppContainer.js +204 -0
  119. package/lib/v1/Avatar/Avatar.js +246 -0
  120. package/lib/v1/AvatarTeam/AvatarTeam.js +81 -0
  121. package/lib/v1/Button/Button.js +82 -0
  122. package/lib/v1/Buttongroup/Buttongroup.js +44 -0
  123. package/lib/v1/Card/Card.js +365 -0
  124. package/lib/v1/CheckBox/CheckBox.js +166 -0
  125. package/lib/v1/DateTime/CalendarView.js +285 -0
  126. package/lib/v1/DateTime/DateTime.js +872 -0
  127. package/lib/v1/DateTime/DateTimePopupFooter.js +96 -0
  128. package/lib/v1/DateTime/DateTimePopupHeader.js +166 -0
  129. package/lib/v1/DateTime/DateWidget.js +1125 -0
  130. package/lib/v1/DateTime/DaysRow.js +80 -0
  131. package/lib/v1/DateTime/Time.js +254 -0
  132. package/lib/v1/DateTime/YearView.js +325 -0
  133. package/lib/v1/DateTime/index.js +15 -0
  134. package/lib/v1/DropBox/DropBox.js +119 -0
  135. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +145 -0
  136. package/lib/v1/DropDown/DropDown.js +170 -0
  137. package/lib/v1/DropDown/DropDownHeading.js +93 -0
  138. package/lib/v1/DropDown/DropDownItem.js +127 -0
  139. package/lib/v1/DropDown/DropDownSearch.js +113 -0
  140. package/lib/v1/DropDown/DropDownSeparator.js +64 -0
  141. package/lib/v1/Heading/Heading.js +49 -0
  142. package/lib/v1/Label/Label.js +51 -0
  143. package/lib/v1/Layout/Box.js +128 -0
  144. package/lib/v1/Layout/Container.js +145 -0
  145. package/lib/v1/Layout/index.js +23 -0
  146. package/lib/v1/ListItem/ListContainer.js +120 -0
  147. package/lib/v1/ListItem/ListItem.js +138 -0
  148. package/lib/v1/ListItem/ListItemWithAvatar.js +162 -0
  149. package/lib/v1/ListItem/ListItemWithCheckBox.js +125 -0
  150. package/lib/v1/ListItem/ListItemWithIcon.js +143 -0
  151. package/lib/v1/ListItem/ListItemWithRadio.js +126 -0
  152. package/lib/v1/ListItem/index.js +55 -0
  153. package/lib/v1/Modal/Modal.js +212 -0
  154. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1167 -0
  155. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +634 -0
  156. package/lib/v1/MultiSelect/EmptyState.js +112 -0
  157. package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +62 -0
  158. package/lib/v1/MultiSelect/MultiSelect.js +1201 -0
  159. package/lib/v1/MultiSelect/MultiSelectHeader.js +78 -0
  160. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +270 -0
  161. package/lib/v1/MultiSelect/SelectedOptions.js +126 -0
  162. package/lib/v1/MultiSelect/Suggestions.js +195 -0
  163. package/lib/v1/MultiSelect/index.js +39 -0
  164. package/lib/v1/PopOver/PopOver.js +293 -0
  165. package/lib/v1/Popup/Popup.js +715 -0
  166. package/lib/v1/Radio/Radio.js +126 -0
  167. package/lib/v1/Responsive/CustomResponsive.js +242 -0
  168. package/lib/v1/Responsive/RefWrapper.js +57 -0
  169. package/lib/v1/Responsive/ResizeComponent.js +268 -0
  170. package/lib/v1/Responsive/ResizeObserver.js +168 -0
  171. package/lib/v1/Responsive/Responsive.js +274 -0
  172. package/lib/v1/Responsive/index.js +55 -0
  173. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +79 -0
  174. package/lib/v1/Ribbon/Ribbon.js +44 -0
  175. package/lib/v1/RippleEffect/RippleEffect.js +39 -0
  176. package/lib/v1/Select/GroupSelect.js +877 -0
  177. package/lib/v1/Select/Select.js +1013 -0
  178. package/lib/v1/Select/SelectWithAvatar.js +394 -0
  179. package/lib/v1/Select/SelectWithIcon.js +597 -0
  180. package/lib/v1/Select/index.js +39 -0
  181. package/lib/v1/Stencils/Stencils.js +43 -0
  182. package/lib/v1/Switch/Switch.js +108 -0
  183. package/lib/v1/Tab/Tab.js +132 -0
  184. package/lib/v1/Tab/TabContent.js +42 -0
  185. package/lib/v1/Tab/TabContentWrapper.js +42 -0
  186. package/lib/v1/Tab/TabWrapper.js +89 -0
  187. package/lib/v1/Tab/Tabs.js +680 -0
  188. package/lib/v1/Tab/index.js +47 -0
  189. package/lib/v1/Tag/Tag.js +154 -0
  190. package/lib/v1/TextBox/TextBox.js +168 -0
  191. package/lib/v1/TextBoxIcon/TextBoxIcon.js +196 -0
  192. package/lib/v1/Textarea/Textarea.js +118 -0
  193. package/lib/v1/Tooltip/Tooltip.js +586 -0
  194. package/lib/v1/Typography/Typography.js +56 -0
  195. package/lib/v1/Typography/css/Typography.module.css +376 -0
  196. package/lib/v1/Typography/css/cssJSLogic.js +41 -0
  197. package/lib/v1/Typography/css/letterSpacingMap.js +20 -0
  198. package/lib/v1/Typography/props/defaultProps.js +15 -0
  199. package/lib/v1/Typography/props/propTypes.js +35 -0
  200. package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +90 -0
  201. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +126 -0
  202. package/lib/v1/semantic/Button/Button.js +63 -0
  203. package/lib/v1/semantic/index.js +15 -0
  204. package/package.json +4 -4
  205. package/result.json +1 -1
@@ -0,0 +1,80 @@
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 = require("../../DateTime/props/propTypes");
13
+
14
+ var _DateTimeModule = _interopRequireDefault(require("../../DateTime/DateTime.module.css"));
15
+
16
+ var _Layout = require("../Layout");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ 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); }
21
+
22
+ 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; }
23
+
24
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
+
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
+
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
+
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
+
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
+
34
+ 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); }; }
35
+
36
+ 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); }
37
+
38
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
+
40
+ 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; } }
41
+
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
+
44
+ var DaysRow = /*#__PURE__*/function (_PureComponent) {
45
+ _inherits(DaysRow, _PureComponent);
46
+
47
+ var _super = _createSuper(DaysRow);
48
+
49
+ function DaysRow() {
50
+ _classCallCheck(this, DaysRow);
51
+
52
+ return _super.apply(this, arguments);
53
+ }
54
+
55
+ _createClass(DaysRow, [{
56
+ key: "render",
57
+ value: function render() {
58
+ var _this$props = this.props,
59
+ dayNames = _this$props.dayNames,
60
+ dayNamesShort = _this$props.dayNamesShort;
61
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
62
+ alignBox: "row",
63
+ align: "center",
64
+ className: _DateTimeModule["default"].days
65
+ }, dayNames.map(function (dayName, index) {
66
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
67
+ key: dayName,
68
+ className: "".concat(_DateTimeModule["default"].daysStr, " ").concat(_DateTimeModule["default"].grid, " ").concat(index === 0 ? _DateTimeModule["default"].sunday : ''),
69
+ "data-title": dayName,
70
+ "aria-label": dayName
71
+ }, dayNamesShort[index]);
72
+ }));
73
+ }
74
+ }]);
75
+
76
+ return DaysRow;
77
+ }(_react.PureComponent);
78
+
79
+ exports["default"] = DaysRow;
80
+ DaysRow.propTypes = _propTypes.DaysRow_propTypes;
@@ -0,0 +1,254 @@
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 = require("../../DateTime/props/propTypes");
13
+
14
+ var _defaultProps = require("../../DateTime/props/defaultProps");
15
+
16
+ var _Layout = require("../Layout");
17
+
18
+ var _Select = _interopRequireDefault(require("../Select/Select"));
19
+
20
+ var _DateTimeModule = _interopRequireDefault(require("../../DateTime/DateTime.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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
+
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); } }
31
+
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; }
33
+
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); }
35
+
36
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
+
38
+ 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); }; }
39
+
40
+ 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); }
41
+
42
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
43
+
44
+ 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; } }
45
+
46
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
47
+
48
+ var Time = /*#__PURE__*/function (_PureComponent) {
49
+ _inherits(Time, _PureComponent);
50
+
51
+ var _super = _createSuper(Time);
52
+
53
+ function Time() {
54
+ _classCallCheck(this, Time);
55
+
56
+ return _super.apply(this, arguments);
57
+ }
58
+
59
+ _createClass(Time, [{
60
+ key: "render",
61
+ value: function render() {
62
+ var _this$props = this.props,
63
+ timeText = _this$props.timeText,
64
+ dataId = _this$props.dataId,
65
+ hourSuggestions = _this$props.hourSuggestions,
66
+ onHourSelect = _this$props.onHourSelect,
67
+ hours = _this$props.hours,
68
+ hourEmptyText = _this$props.hourEmptyText,
69
+ needResponsive = _this$props.needResponsive,
70
+ minSuggestions = _this$props.minSuggestions,
71
+ onMinutesSelect = _this$props.onMinutesSelect,
72
+ mins = _this$props.mins,
73
+ minuteEmptyText = _this$props.minuteEmptyText,
74
+ ampmSuggestions = _this$props.ampmSuggestions,
75
+ onAmPmSelect = _this$props.onAmPmSelect,
76
+ amPm = _this$props.amPm,
77
+ is24Hour = _this$props.is24Hour;
78
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
79
+ className: _DateTimeModule["default"].text
80
+ }, timeText), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
81
+ alignBox: "row",
82
+ align: "vertical",
83
+ className: _DateTimeModule["default"].timesection,
84
+ isCover: false,
85
+ dataId: "".concat(dataId, "_timeContainer")
86
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
87
+ flexible: true,
88
+ className: _DateTimeModule["default"].dropDownContainer
89
+ }, /*#__PURE__*/_react["default"].createElement(Hour, {
90
+ hourSuggestions: hourSuggestions,
91
+ onHourSelect: onHourSelect,
92
+ hours: hours,
93
+ needResponsive: needResponsive,
94
+ hourEmptyText: hourEmptyText
95
+ })), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
96
+ flexible: true,
97
+ className: _DateTimeModule["default"].dropDownContainer
98
+ }, /*#__PURE__*/_react["default"].createElement(Minute, {
99
+ minSuggestions: minSuggestions,
100
+ onMinutesSelect: onMinutesSelect,
101
+ mins: mins,
102
+ minuteEmptyText: minuteEmptyText,
103
+ needResponsive: needResponsive
104
+ })), !is24Hour ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
105
+ flexible: true,
106
+ className: _DateTimeModule["default"].dropDownContainer
107
+ }, /*#__PURE__*/_react["default"].createElement(AmPm, {
108
+ ampmSuggestions: ampmSuggestions,
109
+ onAmPmSelect: onAmPmSelect,
110
+ amPm: amPm,
111
+ needResponsive: needResponsive
112
+ })) : null));
113
+ }
114
+ }]);
115
+
116
+ return Time;
117
+ }(_react.PureComponent);
118
+
119
+ exports["default"] = Time;
120
+ Time.propTypes = _propTypes.Time_propTypes;
121
+ Time.defaultProps = _defaultProps.Time_defaultProps;
122
+
123
+ var Hour = /*#__PURE__*/function (_React$PureComponent) {
124
+ _inherits(Hour, _React$PureComponent);
125
+
126
+ var _super2 = _createSuper(Hour);
127
+
128
+ function Hour() {
129
+ _classCallCheck(this, Hour);
130
+
131
+ return _super2.apply(this, arguments);
132
+ }
133
+
134
+ _createClass(Hour, [{
135
+ key: "render",
136
+ value: function render() {
137
+ var _this$props2 = this.props,
138
+ hourSuggestions = _this$props2.hourSuggestions,
139
+ onHourSelect = _this$props2.onHourSelect,
140
+ hours = _this$props2.hours,
141
+ needResponsive = _this$props2.needResponsive,
142
+ hourEmptyText = _this$props2.hourEmptyText;
143
+ return /*#__PURE__*/_react["default"].createElement(_Select["default"], {
144
+ options: hourSuggestions,
145
+ onChange: onHourSelect,
146
+ selectedValue: hours,
147
+ needSearch: true,
148
+ emptyMessage: hourEmptyText,
149
+ animationStyle: "bounce",
150
+ textBoxSize: "xmedium",
151
+ textBoxVariant: "primary",
152
+ searchBoxSize: "xmedium",
153
+ searchBoxPlaceHolder: "",
154
+ maxLength: "2",
155
+ popupGroup: "calender",
156
+ size: "small",
157
+ dataId: "hourField",
158
+ needResponsive: needResponsive,
159
+ needListBorder: true,
160
+ needTick: false,
161
+ listItemSize: "small"
162
+ });
163
+ }
164
+ }]);
165
+
166
+ return Hour;
167
+ }(_react["default"].PureComponent);
168
+
169
+ var Minute = /*#__PURE__*/function (_React$PureComponent2) {
170
+ _inherits(Minute, _React$PureComponent2);
171
+
172
+ var _super3 = _createSuper(Minute);
173
+
174
+ function Minute() {
175
+ _classCallCheck(this, Minute);
176
+
177
+ return _super3.apply(this, arguments);
178
+ }
179
+
180
+ _createClass(Minute, [{
181
+ key: "render",
182
+ value: function render() {
183
+ var _this$props3 = this.props,
184
+ minSuggestions = _this$props3.minSuggestions,
185
+ onMinutesSelect = _this$props3.onMinutesSelect,
186
+ mins = _this$props3.mins,
187
+ minuteEmptyText = _this$props3.minuteEmptyText,
188
+ needResponsive = _this$props3.needResponsive;
189
+ return /*#__PURE__*/_react["default"].createElement(_Select["default"], {
190
+ options: minSuggestions,
191
+ onChange: onMinutesSelect,
192
+ selectedValue: mins,
193
+ needSearch: true,
194
+ emptyMessage: minuteEmptyText,
195
+ animationStyle: "bounce",
196
+ textBoxSize: "xmedium",
197
+ textBoxVariant: "primary",
198
+ searchBoxSize: "xmedium",
199
+ searchBoxPlaceHolder: "",
200
+ maxLength: "2",
201
+ popupGroup: "calender",
202
+ size: "small",
203
+ dataId: "minuteField",
204
+ needResponsive: needResponsive,
205
+ needListBorder: true,
206
+ needTick: false,
207
+ listItemSize: "small"
208
+ });
209
+ }
210
+ }]);
211
+
212
+ return Minute;
213
+ }(_react["default"].PureComponent);
214
+
215
+ var AmPm = /*#__PURE__*/function (_React$PureComponent3) {
216
+ _inherits(AmPm, _React$PureComponent3);
217
+
218
+ var _super4 = _createSuper(AmPm);
219
+
220
+ function AmPm() {
221
+ _classCallCheck(this, AmPm);
222
+
223
+ return _super4.apply(this, arguments);
224
+ }
225
+
226
+ _createClass(AmPm, [{
227
+ key: "render",
228
+ value: function render() {
229
+ var _this$props4 = this.props,
230
+ ampmSuggestions = _this$props4.ampmSuggestions,
231
+ onAmPmSelect = _this$props4.onAmPmSelect,
232
+ amPm = _this$props4.amPm,
233
+ needResponsive = _this$props4.needResponsive;
234
+ return /*#__PURE__*/_react["default"].createElement(_Select["default"], {
235
+ options: ampmSuggestions,
236
+ onChange: onAmPmSelect,
237
+ selectedValue: amPm,
238
+ animationStyle: "bounce",
239
+ textBoxSize: "xmedium",
240
+ textBoxVariant: "primary",
241
+ maxLength: "2",
242
+ popupGroup: "calender",
243
+ size: "small",
244
+ dataId: "ampmField",
245
+ needResponsive: needResponsive,
246
+ needListBorder: true,
247
+ needTick: false,
248
+ listItemSize: "small"
249
+ });
250
+ }
251
+ }]);
252
+
253
+ return AmPm;
254
+ }(_react["default"].PureComponent);
@@ -0,0 +1,325 @@
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 = _interopRequireDefault(require("react"));
11
+
12
+ var _propTypes = require("../../DateTime/props/propTypes");
13
+
14
+ var _defaultProps = require("../../DateTime/props/defaultProps");
15
+
16
+ var _virtualizer = require("@zohodesk/virtualizer");
17
+
18
+ var _Layout = require("../Layout");
19
+
20
+ var _icons = require("@zohodesk/icons");
21
+
22
+ var _Heading = _interopRequireDefault(require("../Heading/Heading"));
23
+
24
+ var _YearViewModule = _interopRequireDefault(require("../../DateTime/YearView.module.css"));
25
+
26
+ var _dateFormatUtils = require("../../DateTime/dateFormatUtils");
27
+
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
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 monthNamesData = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
51
+
52
+ function getYears() {
53
+ var years = [];
54
+
55
+ var _getYearDetails = (0, _dateFormatUtils.getYearDetails)(),
56
+ startPoint = _getYearDetails.startPoint,
57
+ endPoint = _getYearDetails.endPoint;
58
+
59
+ for (var i = startPoint; i <= endPoint; i++) {
60
+ years.push(i);
61
+ }
62
+
63
+ return years;
64
+ }
65
+
66
+ var Year = /*#__PURE__*/function (_React$PureComponent) {
67
+ _inherits(Year, _React$PureComponent);
68
+
69
+ var _super = _createSuper(Year);
70
+
71
+ function Year(props) {
72
+ var _this;
73
+
74
+ _classCallCheck(this, Year);
75
+
76
+ _this = _super.call(this, props);
77
+ _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
78
+ return _this;
79
+ }
80
+
81
+ _createClass(Year, [{
82
+ key: "handleClick",
83
+ value: function handleClick() {
84
+ var _this$props = this.props,
85
+ year = _this$props.year,
86
+ onClick = _this$props.onClick;
87
+ onClick && onClick(year);
88
+ }
89
+ }, {
90
+ key: "render",
91
+ value: function render() {
92
+ var _this$props2 = this.props,
93
+ year = _this$props2.year,
94
+ isActive = _this$props2.isActive,
95
+ isOpen = _this$props2.isOpen;
96
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
97
+ className: "".concat(_YearViewModule["default"].year, " ").concat(isActive ? _YearViewModule["default"].isActive : ''),
98
+ onClick: this.handleClick,
99
+ dataId: isActive ? "yearAtv_".concat(year) : "year_".concat(year)
100
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
101
+ alignBox: "row",
102
+ align: "vertical"
103
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
104
+ flexible: true
105
+ }, /*#__PURE__*/_react["default"].createElement(_Heading["default"], {
106
+ className: _YearViewModule["default"].yearText,
107
+ title: year,
108
+ a11y: {
109
+ tabindex: '0'
110
+ },
111
+ tagName: "h4"
112
+ })), /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
113
+ name: "ZD-arrowDownSingle",
114
+ size: "7",
115
+ isBold: true,
116
+ iconClass: isOpen ? "".concat(_YearViewModule["default"].arrow, " ").concat(_YearViewModule["default"].arrowActive) : _YearViewModule["default"].arrow
117
+ })));
118
+ }
119
+ }]);
120
+
121
+ return Year;
122
+ }(_react["default"].PureComponent);
123
+
124
+ var Month = /*#__PURE__*/function (_React$PureComponent2) {
125
+ _inherits(Month, _React$PureComponent2);
126
+
127
+ var _super2 = _createSuper(Month);
128
+
129
+ function Month(props) {
130
+ var _this2;
131
+
132
+ _classCallCheck(this, Month);
133
+
134
+ _this2 = _super2.call(this, props);
135
+ _this2.handleClick = _this2.handleClick.bind(_assertThisInitialized(_this2));
136
+ return _this2;
137
+ }
138
+
139
+ _createClass(Month, [{
140
+ key: "handleClick",
141
+ value: function handleClick() {
142
+ var _this$props3 = this.props,
143
+ month = _this$props3.month,
144
+ onClick = _this$props3.onClick;
145
+ var monthIndex = monthNamesData.indexOf(month);
146
+ monthIndex = monthIndex === -1 ? 0 : monthIndex;
147
+ onClick && onClick(monthIndex);
148
+ }
149
+ }, {
150
+ key: "render",
151
+ value: function render() {
152
+ var _this$props4 = this.props,
153
+ month = _this$props4.month,
154
+ isActive = _this$props4.isActive,
155
+ displayText = _this$props4.displayText,
156
+ hoverText = _this$props4.hoverText;
157
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
158
+ dataId: "month_".concat(month),
159
+ className: "".concat(_YearViewModule["default"].month, " ").concat(isActive ? _YearViewModule["default"].currentMonth : ''),
160
+ onClick: this.handleClick,
161
+ "data-title": hoverText,
162
+ "aria-label": month
163
+ }, displayText);
164
+ }
165
+ }]);
166
+
167
+ return Month;
168
+ }(_react["default"].PureComponent);
169
+
170
+ var YearView = /*#__PURE__*/function (_React$PureComponent3) {
171
+ _inherits(YearView, _React$PureComponent3);
172
+
173
+ var _super3 = _createSuper(YearView);
174
+
175
+ function YearView(props) {
176
+ var _this3;
177
+
178
+ _classCallCheck(this, YearView);
179
+
180
+ _this3 = _super3.call(this, props);
181
+ _this3.renderListItem = _this3.renderListItem.bind(_assertThisInitialized(_this3));
182
+ _this3.handleMonthClick = _this3.handleMonthClick.bind(_assertThisInitialized(_this3));
183
+ _this3.handleYearClick = _this3.handleYearClick.bind(_assertThisInitialized(_this3));
184
+ _this3.getPublicMethods = _this3.getPublicMethods.bind(_assertThisInitialized(_this3));
185
+ _this3.handleScrollToYear = _this3.handleScrollToYear.bind(_assertThisInitialized(_this3));
186
+ _this3.handleUpdateLocalYear = _this3.handleUpdateLocalYear.bind(_assertThisInitialized(_this3));
187
+ _this3.years = getYears();
188
+ _this3.state = {
189
+ localYear: ''
190
+ };
191
+ return _this3;
192
+ }
193
+
194
+ _createClass(YearView, [{
195
+ key: "componentDidMount",
196
+ value: function componentDidMount() {
197
+ this.handleScrollToYear(this.props);
198
+ this.handleUpdateLocalYear(this.props);
199
+ }
200
+ }, {
201
+ key: "componentDidUpdate",
202
+ value: function componentDidUpdate(prevProps) {
203
+ var viewedYear = this.props.viewedYear;
204
+ viewedYear = parseInt(viewedYear) || 0;
205
+ var oldViewedYear = prevProps.viewedYear;
206
+ oldViewedYear = parseInt(oldViewedYear) || 0;
207
+
208
+ if (viewedYear !== oldViewedYear) {
209
+ this.handleScrollToYear(this.props);
210
+ this.handleUpdateLocalYear(this.props);
211
+ }
212
+ }
213
+ }, {
214
+ key: "handleUpdateLocalYear",
215
+ value: function handleUpdateLocalYear(props) {
216
+ var _this4 = this;
217
+
218
+ var viewedYear = props.viewedYear;
219
+ viewedYear = parseInt(viewedYear) || 0;
220
+ setTimeout(function () {
221
+ _this4.setState({
222
+ localYear: viewedYear
223
+ });
224
+ }, 150);
225
+ }
226
+ }, {
227
+ key: "handleScrollToYear",
228
+ value: function handleScrollToYear(props) {
229
+ var _this$years = this.years,
230
+ years = _this$years === void 0 ? [] : _this$years,
231
+ scrollToIndex = this.scrollToIndex;
232
+ var viewedYear = props.viewedYear;
233
+ viewedYear = parseInt(viewedYear) || 0;
234
+ var yearIndex = years.indexOf(viewedYear);
235
+ yearIndex >= 0 && scrollToIndex && scrollToIndex(yearIndex, 0, {
236
+ duration: 0
237
+ });
238
+ }
239
+ }, {
240
+ key: "getPublicMethods",
241
+ value: function getPublicMethods(methods) {
242
+ var scrollToIndex = methods.scrollToIndex;
243
+ this.scrollToIndex = scrollToIndex;
244
+ }
245
+ }, {
246
+ key: "handleMonthClick",
247
+ value: function handleMonthClick(month) {
248
+ var onSelectMonth = this.props.onSelectMonth;
249
+ onSelectMonth && onSelectMonth(month);
250
+ }
251
+ }, {
252
+ key: "handleYearClick",
253
+ value: function handleYearClick(year) {
254
+ var onSelectYear = this.props.onSelectYear;
255
+ onSelectYear && onSelectYear(year);
256
+ }
257
+ }, {
258
+ key: "renderListItem",
259
+ value: function renderListItem(_ref) {
260
+ var _this5 = this;
261
+
262
+ var index = _ref.index,
263
+ virtualizerStyle = _ref.style,
264
+ ref = _ref.ref;
265
+ var years = this.years;
266
+ var year = years[index];
267
+ var _this$props5 = this.props,
268
+ viewedYear = _this$props5.viewedYear,
269
+ viewedMonth = _this$props5.viewedMonth,
270
+ monthNamesShort = _this$props5.monthNamesShort,
271
+ isMonthOpen = _this$props5.isMonthOpen;
272
+ viewedYear = parseInt(viewedYear) || 0;
273
+ var localYear = this.state.localYear;
274
+ localYear = parseInt(localYear) || 0;
275
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
276
+ isCover: false,
277
+ className: _YearViewModule["default"].yearBox,
278
+ eleRef: ref,
279
+ style: virtualizerStyle
280
+ }, /*#__PURE__*/_react["default"].createElement(Year, {
281
+ year: year,
282
+ onClick: this.handleYearClick,
283
+ isActive: viewedYear === year,
284
+ isOpen: isMonthOpen
285
+ }), viewedYear === year && isMonthOpen ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
286
+ flexible: true
287
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
288
+ alignBox: "row",
289
+ wrap: "wrap",
290
+ align: "between",
291
+ className: "".concat(_YearViewModule["default"].yearContainer, " ").concat(viewedYear !== localYear && viewedYear === year ? _YearViewModule["default"].toggleYear : '')
292
+ }, monthNamesData.map(function (month, index) {
293
+ var monthIndex = monthNamesData.indexOf(month);
294
+ return /*#__PURE__*/_react["default"].createElement(Month, {
295
+ key: month,
296
+ month: month,
297
+ onClick: _this5.handleMonthClick,
298
+ isActive: monthIndex === viewedMonth,
299
+ displayText: monthNamesShort[index] // hoverText={monthNames[index]}
300
+
301
+ });
302
+ }))) : null);
303
+ }
304
+ }, {
305
+ key: "render",
306
+ value: function render() {
307
+ var _this$years2 = this.years,
308
+ years = _this$years2 === void 0 ? [] : _this$years2;
309
+ return /*#__PURE__*/_react["default"].createElement(_virtualizer.Virtualizer, {
310
+ elementRenderer: this.renderListItem,
311
+ elementsCount: years.length,
312
+ className: _YearViewModule["default"].container,
313
+ getExposedPublicMethods: this.getPublicMethods,
314
+ isElementsFixedHeight: false,
315
+ dataId: "yearList"
316
+ });
317
+ }
318
+ }]);
319
+
320
+ return YearView;
321
+ }(_react["default"].PureComponent);
322
+
323
+ exports["default"] = YearView;
324
+ YearView.propTypes = _propTypes.YearView_propTypes;
325
+ YearView.defaultProps = _defaultProps.YearView_defaultProps;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "DateWidget", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _DateWidget["default"];
10
+ }
11
+ });
12
+
13
+ var _DateWidget = _interopRequireDefault(require("./DateWidget"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }