@zohodesk/components 1.0.0-temp-199.4 → 1.0.0-temp-210.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 (84) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +16 -1
  3. package/es/DateTime/CalendarView.js +8 -5
  4. package/es/DateTime/DateTime.js +18 -4
  5. package/es/DateTime/DateTime.module.css +5 -5
  6. package/es/DateTime/DateWidget.js +5 -1
  7. package/es/DateTime/DaysRow.js +3 -2
  8. package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +7 -7
  9. package/es/DateTime/props/defaultProps.js +9 -3
  10. package/es/DateTime/props/propTypes.js +11 -4
  11. package/es/ListItem/ListItem.js +2 -2
  12. package/es/ListItem/ListItem.module.css +18 -85
  13. package/es/ListItem/ListItemWithAvatar.js +3 -3
  14. package/es/ListItem/ListItemWithIcon.js +2 -2
  15. package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -7
  16. package/es/MultiSelect/AdvancedMultiSelect.js +1 -2
  17. package/es/MultiSelect/MultiSelect.js +2 -7
  18. package/es/MultiSelect/Suggestions.js +4 -8
  19. package/es/MultiSelect/props/defaultProps.js +4 -6
  20. package/es/MultiSelect/props/propTypes.js +3 -6
  21. package/es/Popup/Popup.js +32 -13
  22. package/es/Popup/intersectionObserver.js +23 -19
  23. package/es/Select/GroupSelect.js +2 -7
  24. package/es/Select/SelectWithAvatar.js +2 -7
  25. package/es/Select/SelectWithIcon.js +2 -4
  26. package/es/Select/props/defaultProps.js +2 -4
  27. package/es/Select/props/propTypes.js +2 -4
  28. package/es/v1/DateTime/CalendarView.js +9 -6
  29. package/es/v1/DateTime/DateTime.js +18 -4
  30. package/es/v1/DateTime/DateWidget.js +5 -1
  31. package/es/v1/DateTime/DaysRow.js +3 -2
  32. package/es/v1/DateTime/props/defaultProps.js +9 -3
  33. package/es/v1/DateTime/props/propTypes.js +11 -4
  34. package/es/v1/MultiSelect/AdvancedMultiSelect.js +1 -2
  35. package/es/v1/MultiSelect/MultiSelect.js +2 -7
  36. package/es/v1/MultiSelect/Suggestions.js +4 -8
  37. package/es/v1/MultiSelect/props/defaultProps.js +2 -4
  38. package/es/v1/MultiSelect/props/propTypes.js +2 -6
  39. package/es/v1/Select/GroupSelect.js +2 -7
  40. package/es/v1/Select/SelectWithAvatar.js +2 -7
  41. package/es/v1/Select/props/defaultProps.js +2 -4
  42. package/es/v1/Select/props/propTypes.js +2 -6
  43. package/lib/DateTime/CalendarView.js +8 -5
  44. package/lib/DateTime/DateTime.js +27 -4
  45. package/lib/DateTime/DateTime.module.css +5 -5
  46. package/lib/DateTime/DateWidget.js +5 -1
  47. package/lib/DateTime/DaysRow.js +3 -2
  48. package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +7 -7
  49. package/lib/DateTime/props/defaultProps.js +9 -3
  50. package/lib/DateTime/props/propTypes.js +11 -4
  51. package/lib/ListItem/ListItem.js +2 -2
  52. package/lib/ListItem/ListItem.module.css +18 -85
  53. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  54. package/lib/ListItem/ListItemWithIcon.js +2 -2
  55. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -7
  56. package/lib/MultiSelect/AdvancedMultiSelect.js +1 -3
  57. package/lib/MultiSelect/MultiSelect.js +3 -6
  58. package/lib/MultiSelect/Suggestions.js +4 -8
  59. package/lib/MultiSelect/props/defaultProps.js +4 -6
  60. package/lib/MultiSelect/props/propTypes.js +6 -8
  61. package/lib/Popup/Popup.js +32 -14
  62. package/lib/Popup/intersectionObserver.js +25 -21
  63. package/lib/Select/GroupSelect.js +3 -8
  64. package/lib/Select/SelectWithAvatar.js +3 -8
  65. package/lib/Select/SelectWithIcon.js +3 -5
  66. package/lib/Select/props/defaultProps.js +2 -4
  67. package/lib/Select/props/propTypes.js +2 -4
  68. package/lib/v1/DateTime/CalendarView.js +9 -6
  69. package/lib/v1/DateTime/DateTime.js +27 -4
  70. package/lib/v1/DateTime/DateWidget.js +5 -1
  71. package/lib/v1/DateTime/DaysRow.js +3 -2
  72. package/lib/v1/DateTime/props/defaultProps.js +9 -3
  73. package/lib/v1/DateTime/props/propTypes.js +11 -4
  74. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -3
  75. package/lib/v1/MultiSelect/MultiSelect.js +3 -8
  76. package/lib/v1/MultiSelect/Suggestions.js +4 -8
  77. package/lib/v1/MultiSelect/props/defaultProps.js +2 -4
  78. package/lib/v1/MultiSelect/props/propTypes.js +2 -6
  79. package/lib/v1/Select/GroupSelect.js +3 -8
  80. package/lib/v1/Select/SelectWithAvatar.js +3 -8
  81. package/lib/v1/Select/props/defaultProps.js +2 -4
  82. package/lib/v1/Select/props/propTypes.js +2 -6
  83. package/package.json +4 -4
  84. package/result.json +1 -1
@@ -108,10 +108,7 @@ export const MultiSelect_propTypes = {
108
108
  needSelectAll: PropTypes.bool,
109
109
  selectAllText: PropTypes.string,
110
110
  setAriaId: PropTypes.string,
111
- ariaErrorId: PropTypes.string,
112
- customProps: {
113
- suggestionsProps: PropTypes.object
114
- }
111
+ ariaErrorId: PropTypes.string
115
112
  };
116
113
  export const MultiSelectHeader_propTypes = {
117
114
  dataId: PropTypes.string,
@@ -176,8 +173,7 @@ export const Suggestions_propTypes = {
176
173
  logo: PropTypes.string,
177
174
  optionType: PropTypes.string,
178
175
  listItemProps: PropTypes.object
179
- })),
180
- needMultiLineText: PropTypes.bool
176
+ }))
181
177
  };
182
178
  export const AdvancedGroupMultiSelect_propTypes = {
183
179
  animationStyle: PropTypes.string,
@@ -590,12 +590,8 @@ export class GroupSelectComponent extends PureComponent {
590
590
  htmlId,
591
591
  iconOnHover,
592
592
  isLoading,
593
- dataSelectorId,
594
- customProps
593
+ dataSelectorId
595
594
  } = this.props;
596
- const {
597
- suggestionsProps = {}
598
- } = customProps;
599
595
  i18nKeys = Object.assign({}, i18nKeys, {
600
596
  emptyText: i18nKeys.emptyText || emptyMessage,
601
597
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -788,8 +784,7 @@ export class GroupSelectComponent extends PureComponent {
788
784
  ariaParentRole: 'listbox',
789
785
  role: 'option'
790
786
  },
791
- dataId: `${dataId}_Options`,
792
- ...suggestionsProps
787
+ dataId: `${dataId}_Options`
793
788
  }));
794
789
  }) : /*#__PURE__*/React.createElement(EmptyState, {
795
790
  options: revampedGroups,
@@ -163,12 +163,8 @@ class SelectWithAvatarComponent extends SelectComponent {
163
163
  needEffect,
164
164
  isLoading,
165
165
  dataSelectorId,
166
- getTargetRef,
167
- customProps
166
+ getTargetRef
168
167
  } = this.props;
169
- const {
170
- suggestionsProps = {}
171
- } = customProps;
172
168
  i18nKeys = Object.assign({}, i18nKeys, {
173
169
  emptyText: i18nKeys.emptyText || emptyMessage,
174
170
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -325,8 +321,7 @@ class SelectWithAvatarComponent extends SelectComponent {
325
321
  a11y: {
326
322
  ariaParentRole: 'listbox',
327
323
  role: 'option'
328
- },
329
- ...suggestionsProps
324
+ }
330
325
  }) : /*#__PURE__*/React.createElement(EmptyState, {
331
326
  isLoading: isFetchingOptions,
332
327
  options: options,
@@ -69,8 +69,7 @@ export const GroupSelect_defaultProps = {
69
69
  isRestrictScroll: false,
70
70
  i18nKeys: {},
71
71
  iconOnHover: false,
72
- isLoading: false,
73
- customProps: {}
72
+ isLoading: false
74
73
  };
75
74
  export const SelectWithAvatar_defaultProps = {
76
75
  animationStyle: 'bounce',
@@ -96,8 +95,7 @@ export const SelectWithAvatar_defaultProps = {
96
95
  isRestrictScroll: false,
97
96
  i18nKeys: {},
98
97
  needEffect: true,
99
- isLoading: false,
100
- customProps: {}
98
+ isLoading: false
101
99
  };
102
100
  export const SelectWithIcon_defaultProps = {
103
101
  isReadOnly: false,
@@ -174,10 +174,7 @@ export const GroupSelect_propTypes = {
174
174
  }),
175
175
  isLoading: PropTypes.bool,
176
176
  dataSelectorId: PropTypes.string,
177
- isDefaultSelectValue: PropTypes.bool,
178
- customProps: PropTypes.shape({
179
- suggestionsProps: PropTypes.object
180
- })
177
+ isDefaultSelectValue: PropTypes.bool
181
178
  };
182
179
  export const SelectWithAvatar_propTypes = { ...Select_propTypes,
183
180
  textBoxClass: PropTypes.string,
@@ -238,8 +235,7 @@ export const SelectWithAvatar_propTypes = { ...Select_propTypes,
238
235
  htmlId: PropTypes.string,
239
236
  needEffect: PropTypes.bool,
240
237
  isLoading: PropTypes.bool,
241
- dataSelectorId: PropTypes.string,
242
- customProps: PropTypes.object
238
+ dataSelectorId: PropTypes.string
243
239
  };
244
240
  export const SelectWithIcon_propTypes = {
245
241
  animationStyle: PropTypes.oneOf(['default', 'bounce']),
@@ -80,9 +80,11 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
80
80
  dayNamesShort = _this$props.dayNamesShort,
81
81
  todayMonth = _this$props.todayMonth,
82
82
  todayDate = _this$props.todayDate,
83
- todayYear = _this$props.todayYear;
83
+ todayYear = _this$props.todayYear,
84
+ weekStartDay = _this$props.weekStartDay,
85
+ holidays = _this$props.holidays;
84
86
  var userSeeDate = new Date(year, month, 1);
85
- var userSeeDay = userSeeDate.getDay() + 1;
87
+ var userSeeDay = (userSeeDate.getDay() - weekStartDay + dayNames.length) % dayNames.length + 1;
86
88
  var userSeeYear = userSeeDate.getFullYear();
87
89
  var userSeeMonth = userSeeDate.getMonth();
88
90
  var monthEnd = (0, _common.getMonthEnd)(month, year);
@@ -113,8 +115,8 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
113
115
  isSelectedDay = false;
114
116
  var tdclass = "".concat(_DateTimeModule["default"].datesStr, " ").concat(_DateTimeModule["default"].grid);
115
117
 
116
- if (i === 1) {
117
- tdclass += " ".concat(_DateTimeModule["default"].sunday);
118
+ if (holidays.includes(i - 1)) {
119
+ tdclass += " ".concat(_DateTimeModule["default"].holiday);
118
120
  }
119
121
 
120
122
  if (incremleti >= userSeeDay && incremday <= monthEnd) {
@@ -218,7 +220,8 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
218
220
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_DaysRow["default"], {
219
221
  dayNames: dayNames,
220
222
  dayNamesShort: dayNamesShort,
221
- ariaLabel: dayNamesShort
223
+ ariaLabel: dayNamesShort,
224
+ holidays: holidays
222
225
  }), /*#__PURE__*/_react["default"].createElement("div", {
223
226
  "data-id": "".concat(dataId, "_dateContainer"),
224
227
  "data-test-id": "".concat(dataId, "_dateContainer"),
@@ -43,6 +43,14 @@ var _dateFormat = require("./dateFormatUtils/dateFormat");
43
43
 
44
44
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
45
45
 
46
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
47
+
48
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
49
+
50
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
51
+
52
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
53
+
46
54
  function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
47
55
 
48
56
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -726,7 +734,9 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
726
734
  isRestrictScroll = _this$props7.isRestrictScroll,
727
735
  dropBoxPortalId = _this$props7.dropBoxPortalId,
728
736
  _this$props7$customPr = _this$props7.customProps,
729
- customProps = _this$props7$customPr === void 0 ? {} : _this$props7$customPr;
737
+ customProps = _this$props7$customPr === void 0 ? {} : _this$props7$customPr,
738
+ weekStartDay = _this$props7.weekStartDay,
739
+ holidays = _this$props7.holidays;
730
740
  var _customProps$TimeProp = customProps.TimeProps,
731
741
  TimeProps = _customProps$TimeProp === void 0 ? {} : _customProps$TimeProp;
732
742
  var _i18nKeys$timeText = i18nKeys.timeText,
@@ -752,6 +762,17 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
752
762
  _i18nKeys$dayNamesSho = i18nKeys.dayNamesShort,
753
763
  dayNamesShort = _i18nKeys$dayNamesSho === void 0 ? _constants.dayNamesShortDefault : _i18nKeys$dayNamesSho;
754
764
  var showmonthtxt = title(date, year, month, monthNames);
765
+ var customDayNames = dayNames,
766
+ customDayNamesShort = dayNamesShort,
767
+ customizedHolidays = holidays;
768
+
769
+ if (weekStartDay !== 0) {
770
+ customDayNames = [].concat(_toConsumableArray(dayNames.slice(weekStartDay)), _toConsumableArray(dayNames.slice(0, weekStartDay)));
771
+ customDayNamesShort = [].concat(_toConsumableArray(dayNamesShort.slice(weekStartDay)), _toConsumableArray(dayNamesShort.slice(0, weekStartDay)));
772
+ customizedHolidays = holidays.map(function (dayIndex) {
773
+ return customDayNames.indexOf(dayNames[dayIndex]);
774
+ });
775
+ }
755
776
 
756
777
  var childEle = /*#__PURE__*/_react["default"].createElement("div", {
757
778
  className: "".concat(_DateTimeModule["default"].container, " ").concat(innerClass),
@@ -774,11 +795,13 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
774
795
  year: year,
775
796
  month: month,
776
797
  onSelect: this.dateSelect,
777
- dayNames: dayNames,
778
- dayNamesShort: dayNamesShort,
798
+ dayNames: customDayNames,
799
+ dayNamesShort: customDayNamesShort,
779
800
  todayDate: todayDate,
780
801
  todayMonth: todayMonth,
781
- todayYear: todayYear
802
+ todayYear: todayYear,
803
+ weekStartDay: weekStartDay,
804
+ holidays: customizedHolidays
782
805
  }), isDateTimeField ? /*#__PURE__*/_react["default"].createElement(_Time["default"], {
783
806
  timeText: timeText,
784
807
  dataId: dataId,
@@ -112,9 +112,9 @@
112
112
  margin-bottom: 0 ;
113
113
  }
114
114
 
115
- .sunday,
116
- .sunday:hover,
117
- .invalidDate.sunday:hover {
115
+ .holiday,
116
+ .holiday:hover,
117
+ .invalidDate.holiday:hover {
118
118
  color: var(--zdt_datetime_invalid_hover_text);
119
119
  }
120
120
 
@@ -122,7 +122,7 @@
122
122
  color: var(--zdt_datetime_invalid_text);
123
123
  }
124
124
 
125
- .invalidDate.sunday,.inActiveDate.sunday:hover {
125
+ .invalidDate.holiday,.inActiveDate.holiday:hover {
126
126
  color: var(--zdt_datetime_invaliddate_text);
127
127
  }
128
128
 
@@ -155,7 +155,7 @@ cursor: no-drop;
155
155
  {
156
156
  color: var(--zdt_datetime_invalid_text);
157
157
  }
158
- .inActiveDate:hover, .inActiveDate.sunday:hover{
158
+ .inActiveDate:hover, .inActiveDate.holiday:hover{
159
159
  background-color: var(--zdt_datetime_inactivedate_hover_bg);
160
160
 
161
161
  }
@@ -1032,6 +1032,8 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
1032
1032
  a11y = _this$props12.a11y,
1033
1033
  boxSize = _this$props12.boxSize,
1034
1034
  onError = _this$props12.onError,
1035
+ weekStartDay = _this$props12.weekStartDay,
1036
+ holidays = _this$props12.holidays,
1035
1037
  _this$props12$customP = _this$props12.customProps,
1036
1038
  customProps = _this$props12$customP === void 0 ? {} : _this$props12$customP;
1037
1039
  var _customProps$DateTime = customProps.DateTimeProps,
@@ -1134,7 +1136,9 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
1134
1136
  dropBoxPortalId: dropBoxPortalId,
1135
1137
  boxSize: boxSize,
1136
1138
  onError: onError,
1137
- customProps: DateTimeProps
1139
+ customProps: DateTimeProps,
1140
+ weekStartDay: weekStartDay,
1141
+ holidays: holidays
1138
1142
  }));
1139
1143
  }
1140
1144
  }]);
@@ -57,7 +57,8 @@ var DaysRow = /*#__PURE__*/function (_PureComponent) {
57
57
  value: function render() {
58
58
  var _this$props = this.props,
59
59
  dayNames = _this$props.dayNames,
60
- dayNamesShort = _this$props.dayNamesShort;
60
+ dayNamesShort = _this$props.dayNamesShort,
61
+ holidays = _this$props.holidays;
61
62
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
62
63
  alignBox: "row",
63
64
  align: "center",
@@ -65,7 +66,7 @@ var DaysRow = /*#__PURE__*/function (_PureComponent) {
65
66
  }, dayNames.map(function (dayName, index) {
66
67
  return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
67
68
  key: dayName,
68
- className: "".concat(_DateTimeModule["default"].daysStr, " ").concat(_DateTimeModule["default"].grid, " ").concat(index === 0 ? _DateTimeModule["default"].sunday : ''),
69
+ className: "".concat(_DateTimeModule["default"].daysStr, " ").concat(_DateTimeModule["default"].grid, " ").concat(holidays.includes(index) ? _DateTimeModule["default"].holiday : ''),
69
70
  "data-title": dayName,
70
71
  "aria-label": dayName
71
72
  }, dayNamesShort[index]);
@@ -96,7 +96,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
96
96
  >
97
97
  <div
98
98
  aria-label="Sunday"
99
- class="daysStr grid sunday shrinkOff"
99
+ class="daysStr grid holiday shrinkOff"
100
100
  data-id="boxComponent"
101
101
  data-selector-id="box"
102
102
  data-test-id="boxComponent"
@@ -178,7 +178,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
178
178
  >
179
179
  <div
180
180
  aria-label="25"
181
- class="datesStr grid sunday invalidDate shrinkOff"
181
+ class="datesStr grid holiday invalidDate shrinkOff"
182
182
  data-id="dateTime_invalidDate"
183
183
  data-selector-id="box"
184
184
  data-test-id="dateTime_invalidDate"
@@ -248,7 +248,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
248
248
  >
249
249
  <div
250
250
  aria-label="2"
251
- class="datesStr grid sunday shrinkOff"
251
+ class="datesStr grid holiday shrinkOff"
252
252
  data-id="dateTime_date"
253
253
  data-selector-id="box"
254
254
  data-test-id="dateTime_date"
@@ -318,7 +318,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
318
318
  >
319
319
  <div
320
320
  aria-label="9"
321
- class="datesStr grid sunday shrinkOff"
321
+ class="datesStr grid holiday shrinkOff"
322
322
  data-id="dateTime_date"
323
323
  data-selector-id="box"
324
324
  data-test-id="dateTime_date"
@@ -388,7 +388,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
388
388
  >
389
389
  <div
390
390
  aria-label="16"
391
- class="datesStr grid sunday shrinkOff"
391
+ class="datesStr grid holiday shrinkOff"
392
392
  data-id="dateTime_date"
393
393
  data-selector-id="box"
394
394
  data-test-id="dateTime_date"
@@ -458,7 +458,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
458
458
  >
459
459
  <div
460
460
  aria-label="23"
461
- class="datesStr grid sunday shrinkOff"
461
+ class="datesStr grid holiday shrinkOff"
462
462
  data-id="dateTime_date"
463
463
  data-selector-id="box"
464
464
  data-test-id="dateTime_date"
@@ -528,7 +528,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
528
528
  >
529
529
  <div
530
530
  aria-label="30"
531
- class="datesStr grid sunday shrinkOff"
531
+ class="datesStr grid holiday shrinkOff"
532
532
  data-id="dateTime_date"
533
533
  data-selector-id="box"
534
534
  data-test-id="dateTime_date"
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.YearView_defaultProps = exports.Time_defaultProps = exports.Span_defaultProps = exports.DateWidget_defaultProps = exports.DateTime_defaultProps = exports.DateTimePopupFooter_defaultProps = exports.CalendarView_defaultProps = void 0;
7
7
  var CalendarView_defaultProps = {
8
8
  dataId: 'dateContainer',
9
- needBorder: true
9
+ needBorder: true,
10
+ weekStartDay: 0,
11
+ holidays: [0]
10
12
  };
11
13
  exports.CalendarView_defaultProps = CalendarView_defaultProps;
12
14
  var Span_defaultProps = {
@@ -29,7 +31,9 @@ var DateTime_defaultProps = {
29
31
  is24Hour: false,
30
32
  isDefaultPosition: false,
31
33
  customDateFormat: null,
32
- customProps: {}
34
+ customProps: {},
35
+ weekStartDay: 0,
36
+ holidays: [0]
33
37
  };
34
38
  exports.DateTime_defaultProps = DateTime_defaultProps;
35
39
  var DateWidget_defaultProps = {
@@ -53,7 +57,9 @@ var DateWidget_defaultProps = {
53
57
  needErrorOnBlur: false,
54
58
  isEditable: false,
55
59
  iconOnHover: false,
56
- is24Hour: false
60
+ is24Hour: false,
61
+ weekStartDay: 0,
62
+ holidays: [0]
57
63
  };
58
64
  exports.DateWidget_defaultProps = DateWidget_defaultProps;
59
65
  var YearView_defaultProps = {
@@ -34,7 +34,9 @@ var CalendarView_propTypes = {
34
34
  dayNamesShort: _propTypes["default"].array,
35
35
  todayMonth: _propTypes["default"].string,
36
36
  todayDate: _propTypes["default"].string,
37
- todayYear: _propTypes["default"].string
37
+ todayYear: _propTypes["default"].string,
38
+ weekStartDay: _propTypes["default"].oneOf([0, 1, 2, 3, 4, 5, 6]),
39
+ holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
38
40
  };
39
41
  exports.CalendarView_propTypes = CalendarView_propTypes;
40
42
  var Span_propTypes = {
@@ -98,7 +100,9 @@ var DateTime_propTypes = {
98
100
  targetOffset: _propTypes["default"].string,
99
101
  isRestrictScroll: _propTypes["default"].bool,
100
102
  dropBoxPortalId: _propTypes["default"].string,
101
- customProps: _propTypes["default"].object
103
+ customProps: _propTypes["default"].object,
104
+ weekStartDay: _propTypes["default"].oneOf([0, 1, 2, 3, 4, 5, 6]),
105
+ holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
102
106
  };
103
107
  exports.DateTime_propTypes = DateTime_propTypes;
104
108
  var DateWidget_propTypes = {
@@ -168,7 +172,9 @@ var DateWidget_propTypes = {
168
172
  dropBoxPortalId: _propTypes["default"].string,
169
173
  a11y: _propTypes["default"].object,
170
174
  getPopupProps: _propTypes["default"].func,
171
- customProps: _propTypes["default"].object
175
+ customProps: _propTypes["default"].object,
176
+ weekStartDay: _propTypes["default"].oneOf([0, 1, 2, 3, 4, 5, 6]),
177
+ holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
172
178
  };
173
179
  exports.DateWidget_propTypes = DateWidget_propTypes;
174
180
  var YearView_propTypes = {
@@ -199,7 +205,8 @@ var DateTimePopupHeader_propTypes = {
199
205
  exports.DateTimePopupHeader_propTypes = DateTimePopupHeader_propTypes;
200
206
  var DaysRow_propTypes = {
201
207
  dayNames: _propTypes["default"].array,
202
- dayNamesShort: _propTypes["default"].object
208
+ dayNamesShort: _propTypes["default"].object,
209
+ holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
203
210
  };
204
211
  exports.DaysRow_propTypes = DaysRow_propTypes;
205
212
  var Time_propTypes = {
@@ -150,7 +150,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
150
150
  autoHover: autoHover,
151
151
  needTick: needTick,
152
152
  needBorder: needBorder,
153
- customClass: "".concat(needMultiLineText ? _ListItemModule["default"].txtAlignBaseLine + ' ' + _ListItemModule["default"].autoHeight : '', " ").concat(customListItem),
153
+ customClass: customListItem,
154
154
  dataId: dataIdString,
155
155
  dataSelectorId: "".concat(dataSelectorId),
156
156
  isLink: isLink,
@@ -171,7 +171,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
171
171
  adjust: true,
172
172
  className: _ListItemModule["default"].children
173
173
  }, children) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
174
- className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
174
+ className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon),
175
175
  "aria-hidden": ariaHidden,
176
176
  dataId: "".concat(dataIdString, "_tickIcon"),
177
177
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")