@zohodesk/components 1.2.4 → 1.2.6

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 (202) hide show
  1. package/README.md +8 -0
  2. package/coverage/Button/Button.js.html +1 -1
  3. package/coverage/Button/css/Button.module.css.html +1 -1
  4. package/coverage/Button/css/cssJSLogic.js.html +1 -1
  5. package/coverage/Button/css/index.html +1 -1
  6. package/coverage/Button/index.html +1 -1
  7. package/coverage/Button/props/defaultProps.js.html +1 -1
  8. package/coverage/Button/props/index.html +1 -1
  9. package/coverage/Button/props/propTypes.js.html +1 -1
  10. package/coverage/Buttongroup/Buttongroup.js.html +1 -1
  11. package/coverage/Buttongroup/Buttongroup.module.css.html +1 -1
  12. package/coverage/Buttongroup/index.html +1 -1
  13. package/coverage/Buttongroup/props/defaultProps.js.html +1 -1
  14. package/coverage/Buttongroup/props/index.html +1 -1
  15. package/coverage/Buttongroup/props/propTypes.js.html +1 -1
  16. package/coverage/index.html +1 -1
  17. package/coverage/utils/dummyFunction.js.html +1 -1
  18. package/coverage/utils/index.html +1 -1
  19. package/es/AppContainer/AppContainer.js +3 -0
  20. package/es/v1/Accordion/Accordion.js +65 -0
  21. package/es/v1/Accordion/AccordionItem.js +57 -0
  22. package/es/v1/Accordion/index.js +2 -0
  23. package/es/v1/Animation/Animation.js +127 -0
  24. package/es/v1/AppContainer/AppContainer.js +137 -0
  25. package/es/v1/Avatar/Avatar.js +189 -0
  26. package/es/v1/AvatarTeam/AvatarTeam.js +70 -0
  27. package/es/v1/Button/Button.js +68 -0
  28. package/es/v1/Buttongroup/Buttongroup.js +31 -0
  29. package/es/v1/Card/Card.js +271 -0
  30. package/es/v1/CheckBox/CheckBox.js +155 -0
  31. package/es/v1/DateTime/CalendarView.js +218 -0
  32. package/es/v1/DateTime/DateTime.js +783 -0
  33. package/es/v1/DateTime/DateTimePopupFooter.js +47 -0
  34. package/es/v1/DateTime/DateTimePopupHeader.js +105 -0
  35. package/es/v1/DateTime/DateWidget.js +1098 -0
  36. package/es/v1/DateTime/DaysRow.js +31 -0
  37. package/es/v1/DateTime/Time.js +166 -0
  38. package/es/v1/DateTime/YearView.js +264 -0
  39. package/es/v1/DateTime/index.js +1 -0
  40. package/es/v1/DropBox/DropBox.js +91 -0
  41. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +132 -0
  42. package/es/v1/DropDown/DropDown.js +73 -0
  43. package/es/v1/DropDown/DropDownHeading.js +44 -0
  44. package/es/v1/DropDown/DropDownItem.js +76 -0
  45. package/es/v1/DropDown/DropDownSearch.js +63 -0
  46. package/es/v1/DropDown/DropDownSeparator.js +15 -0
  47. package/es/v1/Heading/Heading.js +32 -0
  48. package/es/v1/Label/Label.js +40 -0
  49. package/es/v1/Layout/Box.js +115 -0
  50. package/es/v1/Layout/Container.js +132 -0
  51. package/es/v1/Layout/index.js +2 -0
  52. package/es/v1/ListItem/ListContainer.js +102 -0
  53. package/es/v1/ListItem/ListItem.js +124 -0
  54. package/es/v1/ListItem/ListItemWithAvatar.js +145 -0
  55. package/es/v1/ListItem/ListItemWithCheckBox.js +104 -0
  56. package/es/v1/ListItem/ListItemWithIcon.js +127 -0
  57. package/es/v1/ListItem/ListItemWithRadio.js +105 -0
  58. package/es/v1/ListItem/index.js +6 -0
  59. package/es/v1/Modal/Modal.js +154 -0
  60. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1079 -0
  61. package/es/v1/MultiSelect/AdvancedMultiSelect.js +568 -0
  62. package/es/v1/MultiSelect/EmptyState.js +64 -0
  63. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +50 -0
  64. package/es/v1/MultiSelect/MultiSelect.js +1120 -0
  65. package/es/v1/MultiSelect/MultiSelectHeader.js +32 -0
  66. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +216 -0
  67. package/es/v1/MultiSelect/SelectedOptions.js +82 -0
  68. package/es/v1/MultiSelect/Suggestions.js +142 -0
  69. package/es/v1/MultiSelect/index.js +4 -0
  70. package/es/v1/PopOver/PopOver.js +211 -0
  71. package/es/v1/Popup/Popup.js +645 -0
  72. package/es/v1/Radio/Radio.js +115 -0
  73. package/es/v1/Responsive/CustomResponsive.js +195 -0
  74. package/es/v1/Responsive/RefWrapper.js +39 -0
  75. package/es/v1/Responsive/ResizeComponent.js +197 -0
  76. package/es/v1/Responsive/ResizeObserver.js +140 -0
  77. package/es/v1/Responsive/Responsive.js +194 -0
  78. package/es/v1/Responsive/index.js +9 -0
  79. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +58 -0
  80. package/es/v1/Ribbon/Ribbon.js +33 -0
  81. package/es/v1/RippleEffect/RippleEffect.js +24 -0
  82. package/es/v1/Select/GroupSelect.js +803 -0
  83. package/es/v1/Select/Select.js +969 -0
  84. package/es/v1/Select/SelectWithAvatar.js +344 -0
  85. package/es/v1/Select/SelectWithIcon.js +535 -0
  86. package/es/v1/Select/index.js +4 -0
  87. package/es/v1/Stencils/Stencils.js +26 -0
  88. package/es/v1/Switch/Switch.js +94 -0
  89. package/es/v1/Tab/Tab.js +108 -0
  90. package/es/v1/Tab/TabContent.js +30 -0
  91. package/es/v1/Tab/TabContentWrapper.js +29 -0
  92. package/es/v1/Tab/TabWrapper.js +57 -0
  93. package/es/v1/Tab/Tabs.js +612 -0
  94. package/es/v1/Tab/index.js +5 -0
  95. package/es/v1/Tag/Tag.js +134 -0
  96. package/es/v1/TextBox/TextBox.js +154 -0
  97. package/es/v1/TextBoxIcon/TextBoxIcon.js +158 -0
  98. package/es/v1/Textarea/Textarea.js +102 -0
  99. package/es/v1/Tooltip/Tooltip.js +518 -0
  100. package/es/v1/Typography/Typography.js +38 -0
  101. package/es/v1/Typography/css/Typography.module.css +376 -0
  102. package/es/v1/Typography/css/cssJSLogic.js +46 -0
  103. package/es/v1/Typography/css/letterSpacingMap.js +12 -0
  104. package/es/v1/Typography/props/defaultProps.js +8 -0
  105. package/es/v1/Typography/props/propTypes.js +24 -0
  106. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +69 -0
  107. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +100 -0
  108. package/es/v1/semantic/Button/Button.js +53 -0
  109. package/es/v1/semantic/index.js +1 -0
  110. package/lib/AppContainer/AppContainer.js +5 -0
  111. package/lib/v1/Accordion/Accordion.js +96 -0
  112. package/lib/v1/Accordion/AccordionItem.js +68 -0
  113. package/lib/v1/Accordion/index.js +23 -0
  114. package/lib/v1/Animation/Animation.js +143 -0
  115. package/lib/v1/AppContainer/AppContainer.js +209 -0
  116. package/lib/v1/Avatar/Avatar.js +246 -0
  117. package/lib/v1/AvatarTeam/AvatarTeam.js +81 -0
  118. package/lib/v1/Button/Button.js +82 -0
  119. package/lib/v1/Buttongroup/Buttongroup.js +44 -0
  120. package/lib/v1/Card/Card.js +365 -0
  121. package/lib/v1/CheckBox/CheckBox.js +166 -0
  122. package/lib/v1/DateTime/CalendarView.js +285 -0
  123. package/lib/v1/DateTime/DateTime.js +872 -0
  124. package/lib/v1/DateTime/DateTimePopupFooter.js +96 -0
  125. package/lib/v1/DateTime/DateTimePopupHeader.js +166 -0
  126. package/lib/v1/DateTime/DateWidget.js +1125 -0
  127. package/lib/v1/DateTime/DaysRow.js +80 -0
  128. package/lib/v1/DateTime/Time.js +254 -0
  129. package/lib/v1/DateTime/YearView.js +325 -0
  130. package/lib/v1/DateTime/index.js +15 -0
  131. package/lib/v1/DropBox/DropBox.js +119 -0
  132. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +145 -0
  133. package/lib/v1/DropDown/DropDown.js +170 -0
  134. package/lib/v1/DropDown/DropDownHeading.js +93 -0
  135. package/lib/v1/DropDown/DropDownItem.js +127 -0
  136. package/lib/v1/DropDown/DropDownSearch.js +113 -0
  137. package/lib/v1/DropDown/DropDownSeparator.js +64 -0
  138. package/lib/v1/Heading/Heading.js +49 -0
  139. package/lib/v1/Label/Label.js +51 -0
  140. package/lib/v1/Layout/Box.js +128 -0
  141. package/lib/v1/Layout/Container.js +145 -0
  142. package/lib/v1/Layout/index.js +23 -0
  143. package/lib/v1/ListItem/ListContainer.js +120 -0
  144. package/lib/v1/ListItem/ListItem.js +138 -0
  145. package/lib/v1/ListItem/ListItemWithAvatar.js +162 -0
  146. package/lib/v1/ListItem/ListItemWithCheckBox.js +125 -0
  147. package/lib/v1/ListItem/ListItemWithIcon.js +143 -0
  148. package/lib/v1/ListItem/ListItemWithRadio.js +126 -0
  149. package/lib/v1/ListItem/index.js +55 -0
  150. package/lib/v1/Modal/Modal.js +212 -0
  151. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1167 -0
  152. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +634 -0
  153. package/lib/v1/MultiSelect/EmptyState.js +112 -0
  154. package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +62 -0
  155. package/lib/v1/MultiSelect/MultiSelect.js +1201 -0
  156. package/lib/v1/MultiSelect/MultiSelectHeader.js +78 -0
  157. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +270 -0
  158. package/lib/v1/MultiSelect/SelectedOptions.js +126 -0
  159. package/lib/v1/MultiSelect/Suggestions.js +195 -0
  160. package/lib/v1/MultiSelect/index.js +39 -0
  161. package/lib/v1/PopOver/PopOver.js +293 -0
  162. package/lib/v1/Popup/Popup.js +715 -0
  163. package/lib/v1/Radio/Radio.js +126 -0
  164. package/lib/v1/Responsive/CustomResponsive.js +242 -0
  165. package/lib/v1/Responsive/RefWrapper.js +57 -0
  166. package/lib/v1/Responsive/ResizeComponent.js +268 -0
  167. package/lib/v1/Responsive/ResizeObserver.js +168 -0
  168. package/lib/v1/Responsive/Responsive.js +274 -0
  169. package/lib/v1/Responsive/index.js +55 -0
  170. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +79 -0
  171. package/lib/v1/Ribbon/Ribbon.js +44 -0
  172. package/lib/v1/RippleEffect/RippleEffect.js +39 -0
  173. package/lib/v1/Select/GroupSelect.js +877 -0
  174. package/lib/v1/Select/Select.js +1013 -0
  175. package/lib/v1/Select/SelectWithAvatar.js +394 -0
  176. package/lib/v1/Select/SelectWithIcon.js +597 -0
  177. package/lib/v1/Select/index.js +39 -0
  178. package/lib/v1/Stencils/Stencils.js +43 -0
  179. package/lib/v1/Switch/Switch.js +108 -0
  180. package/lib/v1/Tab/Tab.js +132 -0
  181. package/lib/v1/Tab/TabContent.js +42 -0
  182. package/lib/v1/Tab/TabContentWrapper.js +42 -0
  183. package/lib/v1/Tab/TabWrapper.js +89 -0
  184. package/lib/v1/Tab/Tabs.js +680 -0
  185. package/lib/v1/Tab/index.js +47 -0
  186. package/lib/v1/Tag/Tag.js +154 -0
  187. package/lib/v1/TextBox/TextBox.js +168 -0
  188. package/lib/v1/TextBoxIcon/TextBoxIcon.js +196 -0
  189. package/lib/v1/Textarea/Textarea.js +118 -0
  190. package/lib/v1/Tooltip/Tooltip.js +586 -0
  191. package/lib/v1/Typography/Typography.js +56 -0
  192. package/lib/v1/Typography/css/Typography.module.css +376 -0
  193. package/lib/v1/Typography/css/cssJSLogic.js +41 -0
  194. package/lib/v1/Typography/css/letterSpacingMap.js +20 -0
  195. package/lib/v1/Typography/props/defaultProps.js +15 -0
  196. package/lib/v1/Typography/props/propTypes.js +35 -0
  197. package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +90 -0
  198. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +126 -0
  199. package/lib/v1/semantic/Button/Button.js +63 -0
  200. package/lib/v1/semantic/index.js +15 -0
  201. package/package.json +1 -1
  202. package/result.json +1 -1
@@ -0,0 +1,285 @@
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"] = exports.Span = 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 _Layout = require("../Layout");
17
+
18
+ var _DateTimeModule = _interopRequireDefault(require("../../DateTime/DateTime.module.css"));
19
+
20
+ var _common = require("../../utils/datetime/common");
21
+
22
+ var _DaysRow = _interopRequireDefault(require("./DaysRow"));
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
+
28
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
29
+
30
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
+
32
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
+
34
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
+
36
+ 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); }; }
37
+
38
+ 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); }
39
+
40
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
+
42
+ 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; } }
43
+
44
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
+
46
+ /* eslint css-modules/no-unused-class: [0, { markAsUsed: ['container', 'header', 'thArrowConatainer', 'thArrow', 'thMonYear', 'days', 'daysStr', 'timesection', 'timeStr', 'dropDownContainer', 'dropDown', 'footer', 'space'] }] */
47
+ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
48
+ _inherits(CalendarView, _React$PureComponent);
49
+
50
+ var _super = _createSuper(CalendarView);
51
+
52
+ function CalendarView(props) {
53
+ var _this;
54
+
55
+ _classCallCheck(this, CalendarView);
56
+
57
+ _this = _super.call(this, props);
58
+ _this.handleSelect = _this.handleSelect.bind(_assertThisInitialized(_this));
59
+ return _this;
60
+ }
61
+
62
+ _createClass(CalendarView, [{
63
+ key: "handleSelect",
64
+ value: function handleSelect(day, month, year, e) {
65
+ var onSelect = this.props.onSelect;
66
+ onSelect(day, month, year, e);
67
+ }
68
+ }, {
69
+ key: "render",
70
+ value: function render() {
71
+ var _this2 = this;
72
+
73
+ var _this$props = this.props,
74
+ date = _this$props.date,
75
+ year = _this$props.year,
76
+ month = _this$props.month,
77
+ dataId = _this$props.dataId,
78
+ needBorder = _this$props.needBorder,
79
+ dayNames = _this$props.dayNames,
80
+ dayNamesShort = _this$props.dayNamesShort,
81
+ todayMonth = _this$props.todayMonth,
82
+ todayDate = _this$props.todayDate,
83
+ todayYear = _this$props.todayYear;
84
+ var userSeeDate = new Date(year, month, 1);
85
+ var userSeeDay = userSeeDate.getDay() + 1;
86
+ var userSeeYear = userSeeDate.getFullYear();
87
+ var userSeeMonth = userSeeDate.getMonth();
88
+ var monthEnd = (0, _common.getMonthEnd)(month, year);
89
+ var lastMonth = 11;
90
+ var firstMonth = 0; // let noOfRow = 5;
91
+ // if (
92
+ // (monthEnd === 31 && userSeeDay >= 6) ||
93
+ // (monthEnd === 30 && userSeeDay === 7)
94
+ // ) {
95
+ // noOfRow = 6;
96
+ // } else if (monthEnd === 28 && userSeeDay === 1) {
97
+ // noOfRow = 4;
98
+ // }
99
+
100
+ var incremday = 1;
101
+ var incremleti = 1;
102
+ var isSelectedDay = false;
103
+ var isToday = false;
104
+
105
+ var rows = function () {
106
+ var rowArr = [];
107
+
108
+ for (var j = 1; j <= 6; j++) {
109
+ var dayArr = [];
110
+ var output = null;
111
+
112
+ for (var i = 1; i < 8; i++) {
113
+ var tdclass = "".concat(_DateTimeModule["default"].datesStr, " ").concat(_DateTimeModule["default"].grid);
114
+
115
+ if (i === 1) {
116
+ tdclass += " ".concat(_DateTimeModule["default"].sunday);
117
+ }
118
+
119
+ if (incremleti >= userSeeDay && incremday <= monthEnd) {
120
+ if (parseInt(date) === incremday && parseInt(month) === userSeeMonth && parseInt(year) === userSeeYear) {
121
+ isSelectedDay = true;
122
+ } else if (todayDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear) {
123
+ isToday = true;
124
+ isSelectedDay = false;
125
+ } else {
126
+ isSelectedDay = false;
127
+ isToday = false;
128
+ }
129
+
130
+ output = /*#__PURE__*/_react["default"].createElement(Span, {
131
+ i: i,
132
+ isActive: isSelectedDay,
133
+ tdclass: tdclass,
134
+ handleSelect: _this2.handleSelect,
135
+ incremday: incremday,
136
+ userSeeMonth: userSeeMonth,
137
+ userSeeYear: userSeeYear,
138
+ dataId: isSelectedDay ? "".concat(dataId, "_dateSelected") : "".concat(dataId, "_date"),
139
+ isToday: isToday
140
+ });
141
+ incremday++;
142
+ } else if (incremleti < userSeeDay) {
143
+ var prevMonth = userSeeMonth - 1;
144
+ var prevYear = userSeeYear;
145
+
146
+ if (userSeeMonth === firstMonth) {
147
+ prevMonth = lastMonth;
148
+ prevYear = userSeeYear - 1;
149
+ }
150
+
151
+ var prevMonthEnd = (0, _common.getMonthEnd)(prevMonth, prevYear);
152
+ var prevDate = prevMonthEnd - (userSeeDay - 1) + incremleti; // isSelectedDay =
153
+
154
+ prevDate === parseInt(date) && parseInt(month) === prevMonth && parseInt(year) === prevYear ? true : false; // isToday = prevDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear ? true : false;
155
+
156
+ output = /*#__PURE__*/_react["default"].createElement(Span, {
157
+ i: i //isActive={isSelectedDay}
158
+ ,
159
+ tdclass: "".concat(tdclass, " ").concat(_DateTimeModule["default"].invalidDate),
160
+ handleSelect: _this2.handleSelect,
161
+ incremday: prevDate,
162
+ userSeeMonth: prevMonth,
163
+ userSeeYear: prevYear,
164
+ dataId: isSelectedDay ? "".concat(dataId, "_dateSelected") : "".concat(dataId, "_invalidDate") // isToday={isToday}
165
+
166
+ });
167
+ } else if (incremleti > monthEnd) {
168
+ var nextMonth = userSeeMonth + 1;
169
+ var nextYear = userSeeYear;
170
+
171
+ if (userSeeMonth === lastMonth) {
172
+ nextMonth = firstMonth;
173
+ nextYear = userSeeYear + 1;
174
+ }
175
+
176
+ var nextDate = incremleti - (userSeeDay - 1) - monthEnd; // isSelectedDay =
177
+
178
+ nextDate === parseInt(date) && parseInt(month) === nextMonth && parseInt(year) === nextYear ? true : false; // isToday = nextDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear ? true : false;
179
+
180
+ output = /*#__PURE__*/_react["default"].createElement(Span, {
181
+ i: i // isActive={isSelectedDay}
182
+ ,
183
+ tdclass: "".concat(tdclass, " ").concat(_DateTimeModule["default"].invalidDate),
184
+ handleSelect: _this2.handleSelect,
185
+ incremday: nextDate,
186
+ userSeeMonth: nextMonth,
187
+ userSeeYear: nextYear,
188
+ dataId: isSelectedDay ? "".concat(dataId, "_dateSelected") : "".concat(dataId, "_invalidDate") //isToday={isToday}
189
+
190
+ });
191
+ } else {
192
+ output = /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
193
+ key: i,
194
+ className: "".concat(_DateTimeModule["default"].grid)
195
+ });
196
+ }
197
+
198
+ incremleti++;
199
+ dayArr.push(output);
200
+ }
201
+ /* eslint-disable react/forbid-component-props */
202
+
203
+
204
+ rowArr.push( /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
205
+ key: j,
206
+ alignBox: "row",
207
+ align: "center",
208
+ isCover: false,
209
+ className: _DateTimeModule["default"].dateRow
210
+ }, dayArr));
211
+ }
212
+
213
+ return rowArr;
214
+ }();
215
+
216
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_DaysRow["default"], {
217
+ dayNames: dayNames,
218
+ dayNamesShort: dayNamesShort,
219
+ ariaLabel: dayNamesShort
220
+ }), /*#__PURE__*/_react["default"].createElement("div", {
221
+ "data-id": "".concat(dataId, "_dateContainer"),
222
+ "data-test-id": "".concat(dataId, "_dateContainer"),
223
+ className: "".concat(_DateTimeModule["default"].dateContainer, " ").concat(needBorder ? _DateTimeModule["default"].separator : '')
224
+ }, rows));
225
+ }
226
+ }]);
227
+
228
+ return CalendarView;
229
+ }(_react["default"].PureComponent);
230
+
231
+ exports["default"] = CalendarView;
232
+ CalendarView.propTypes = _propTypes.CalendarView_propTypes;
233
+ CalendarView.defaultProps = _defaultProps.CalendarView_defaultProps;
234
+
235
+ var Span = /*#__PURE__*/function (_React$PureComponent2) {
236
+ _inherits(Span, _React$PureComponent2);
237
+
238
+ var _super2 = _createSuper(Span);
239
+
240
+ function Span(props) {
241
+ var _this3;
242
+
243
+ _classCallCheck(this, Span);
244
+
245
+ _this3 = _super2.call(this, props);
246
+ _this3.handleSelectChild = _this3.handleSelectChild.bind(_assertThisInitialized(_this3));
247
+ return _this3;
248
+ }
249
+
250
+ _createClass(Span, [{
251
+ key: "handleSelectChild",
252
+ value: function handleSelectChild(e) {
253
+ var _this$props2 = this.props,
254
+ handleSelect = _this$props2.handleSelect,
255
+ incremday = _this$props2.incremday,
256
+ userSeeMonth = _this$props2.userSeeMonth,
257
+ userSeeYear = _this$props2.userSeeYear;
258
+ handleSelect(incremday, userSeeMonth, userSeeYear, e);
259
+ }
260
+ }, {
261
+ key: "render",
262
+ value: function render() {
263
+ var _this$props3 = this.props,
264
+ tdclass = _this$props3.tdclass,
265
+ incremday = _this$props3.incremday,
266
+ i = _this$props3.i,
267
+ dataId = _this$props3.dataId,
268
+ isActive = _this$props3.isActive,
269
+ isToday = _this$props3.isToday;
270
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
271
+ dataId: dataId,
272
+ className: "".concat(tdclass, " ").concat(isActive ? _DateTimeModule["default"].active : '', " ").concat(isToday ? _DateTimeModule["default"].today : ''),
273
+ key: i,
274
+ onClick: this.handleSelectChild,
275
+ "aria-label": incremday
276
+ }, incremday);
277
+ }
278
+ }]);
279
+
280
+ return Span;
281
+ }(_react["default"].PureComponent);
282
+
283
+ exports.Span = Span;
284
+ Span.propTypes = _propTypes.Span_propTypes;
285
+ Span.defaultProps = _defaultProps.Span_defaultProps;