ui-kit-ck-consultant 0.5.199 → 0.5.200

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.
package/dist/index.js CHANGED
@@ -9872,7 +9872,13 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9872
9872
  if (_this.state.activeDate === currentDate) {
9873
9873
  return 1;
9874
9874
  } else {
9875
- if (_this.props.disabledDates && _this.props.disabledDates.includes(currentDate) || !_this.props.isWeek && [6, 7].includes(parseInt(moment(currentDate).isoWeekday())) || !_this.props.isHoliday && _this.holidays.includes(currentDate) || _this.props.minDate && moment(_this.props.minDate).isAfter(moment(currentDate)) || _this.props.maxDate && moment(_this.props.maxDate).isBefore(moment(currentDate)) || _this.props.disabledDays && _this.props.disabledDays.filter(function (element, idx) {
9875
+ if (_this.props.enabledDates && _this.props.enabledDates.length) {
9876
+ if (_this.props.enabledDates.includes(currentDate)) {
9877
+ return 0;
9878
+ } else {
9879
+ return 2;
9880
+ }
9881
+ } else if (_this.props.disabledDates && _this.props.disabledDates.includes(currentDate) || !_this.props.isWeek && [6, 7].includes(parseInt(moment(currentDate).isoWeekday())) || !_this.props.isHoliday && _this.holidays.includes(currentDate) || _this.props.minDate && moment(_this.props.minDate).isAfter(moment(currentDate)) || _this.props.maxDate && moment(_this.props.maxDate).isBefore(moment(currentDate)) || _this.props.disabledDays && _this.props.disabledDays.filter(function (element, idx) {
9876
9882
  return element === 1 && idx === col;
9877
9883
  }).length) {
9878
9884
  return 2;