ui-kit-ck-consultant 0.5.160 → 0.5.164

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.
@@ -3445,10 +3445,13 @@ var ListingHorizontalItem = /*#__PURE__*/function (_React$Component) {
3445
3445
  return /*#__PURE__*/React.createElement("div", {
3446
3446
  className: listingClass
3447
3447
  }, /*#__PURE__*/React.createElement("div", {
3448
- className: style$s.listing_horizontal_icon
3449
- }, this.props.icon ? this.props.icon : this.props.green ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3448
+ className: style$s.listing_horizontal_icon,
3449
+ style: this.props.color ? {
3450
+ backgroundColor: this.props.color
3451
+ } : null
3452
+ }, this.props.icon ? this.props.icon : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3450
3453
  icon: faCheck
3451
- }) : ''), /*#__PURE__*/React.createElement("div", {
3454
+ })), /*#__PURE__*/React.createElement("div", {
3452
3455
  className: style$s.listing_horizontal_text
3453
3456
  }, /*#__PURE__*/React.createElement("span", null, this.props.date), /*#__PURE__*/React.createElement("span", null, this.props.title), /*#__PURE__*/React.createElement("span", null, this.props.subtitle)));
3454
3457
  };
@@ -3497,6 +3500,7 @@ var ListingHorizontal = /*#__PURE__*/function (_React$Component) {
3497
3500
  key: idx,
3498
3501
  green: element.green,
3499
3502
  orange: element.orange,
3503
+ color: element.color,
3500
3504
  title: element.title,
3501
3505
  subtitle: element.subtitle,
3502
3506
  date: element.date,
@@ -9768,7 +9772,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9768
9772
  if (_this.state.activeDate === currentDate) {
9769
9773
  return 1;
9770
9774
  } else {
9771
- 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)) {
9775
+ 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))) {
9772
9776
  return 2;
9773
9777
  } else {
9774
9778
  return 0;
@@ -9839,14 +9843,19 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9839
9843
  this.getArrayDays();
9840
9844
  this.getArrayTime();
9841
9845
  this.setState({
9842
- year: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('YYYY')) : this.tate.year,
9843
- month: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('M')) : this.tate.month,
9846
+ year: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('YYYY')) : this.state.year,
9847
+ month: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('M')) : this.state.month,
9844
9848
  activeDate: this.props.valueDate ? this.props.valueDate : this.state.activeDate,
9845
9849
  activeTime: this.props.valueTime ? this.props.valueTime : this.state.Time
9846
9850
  });
9847
9851
  };
9848
9852
 
9849
9853
  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
9854
+ if (prevProps.show !== this.props.show) {
9855
+ this.getArrayDays();
9856
+ this.getArrayTime();
9857
+ }
9858
+
9850
9859
  if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
9851
9860
  this.setState({
9852
9861
  year: parseInt(moment(this.props.valueDate).format('YYYY')),