pcm-shared-components 2.0.83 → 2.0.85

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.
@@ -78,8 +78,10 @@ export const PricingCalendar = props => {
78
78
  Day: handleDayRender
79
79
  },
80
80
  defaultMonth: moment(startDate).toDate(),
81
+ month: moment(startDate).toDate(),
81
82
  fromDate: moment(startDate).toDate(),
82
83
  toDate: moment(endDate).toDate()
84
+
83
85
  // captionLayout="dropdown-buttons" fromYear={moment().add(-5,'years').year()} toYear={moment().add(5, 'years').year()}
84
86
  // selectedDays={[moment(startDate), { from: moment(startDate).toDate(), to: new moment(endDate).toDate() }]}
85
87
  }));
@@ -89,8 +91,8 @@ export default PricingCalendar;
89
91
  PricingCalendar.defaultProps = {
90
92
  RenderDay: undefined,
91
93
  priceObject: [],
92
- startDate: moment().format('YYYY-MM-DD'),
93
- endDate: moment().add(1, 'days').format('YYYY-MM-DD'),
94
+ startDate: moment(),
95
+ endDate: moment().add(1, 'days'),
94
96
  i18next: undefined
95
97
  };
96
98
  PricingCalendar.propTypes = {
@@ -99,9 +101,9 @@ PricingCalendar.propTypes = {
99
101
  /** The daily price object */
100
102
  priceObject: PropTypes.array,
101
103
  /** The start date of the calendar */
102
- startDate: PropTypes.string,
104
+ startDate: PropTypes.instanceOf(Date),
103
105
  /** The end date of the calendar */
104
- endDate: PropTypes.string,
106
+ endDate: PropTypes.instanceOf(Date),
105
107
  /** i18next localization to use for the component. Don't use the library localization or else it won't load properly on the consuming application */
106
108
  i18next: PropTypes.any
107
109
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "2.0.83",
3
+ "version": "2.0.85",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {