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