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.
@@ -9869,7 +9869,13 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9869
9869
  if (_this.state.activeDate === currentDate) {
9870
9870
  return 1;
9871
9871
  } else {
9872
- 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) {
9872
+ if (_this.props.enabledDates && _this.props.enabledDates.length) {
9873
+ if (_this.props.enabledDates.includes(currentDate)) {
9874
+ return 0;
9875
+ } else {
9876
+ return 2;
9877
+ }
9878
+ } 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) {
9873
9879
  return element === 1 && idx === col;
9874
9880
  }).length) {
9875
9881
  return 2;