pcm-shared-components 2.0.184 → 2.0.186

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.
@@ -34,6 +34,7 @@ export const DateCalendar = props => {
34
34
  endDate,
35
35
  variant,
36
36
  vertical,
37
+ showSelectedDates,
37
38
  zIndex,
38
39
  i18next,
39
40
  daySize,
@@ -88,8 +89,8 @@ export const DateCalendar = props => {
88
89
  primaryColor: green[300],
89
90
  accessibility: green[300],
90
91
  selectedDay: green[300],
91
- selectedDayHover: green[300],
92
- normalDayHover: 'transparent'
92
+ selectedDayHover: green[300]
93
+ // normalDayHover: 'transparent',
93
94
  }
94
95
  } // Additional theme configuration
95
96
  )
@@ -106,7 +107,7 @@ export const DateCalendar = props => {
106
107
  startDatePlaceholder: i18next.t('common.app.arrival_date'),
107
108
  endDatePlaceholder: i18next.t('common.app.departure_date')
108
109
  },
109
- showSelectedDates: false,
110
+ showSelectedDates: showSelectedDates,
110
111
  showResetDates: false,
111
112
  showClose: false,
112
113
  onDayRender: handleOnDayRender,
@@ -144,7 +145,8 @@ DateCalendar.defaultProps = {
144
145
  zIndex: 1000,
145
146
  i18next: undefined,
146
147
  daySize: 40,
147
- datepickerPadding: 25
148
+ datepickerPadding: 25,
149
+ showSelectedDates: false
148
150
  };
149
151
  DateCalendar.propTypes = {
150
152
  /** Used to provide the minimum booking date. To allow date selection past todays date simply pas it an old past date example 'new Date('1999-10-02')' */
@@ -180,5 +182,7 @@ DateCalendar.propTypes = {
180
182
  /** Controls the size of the day in the calendar */
181
183
  daySize: PropTypes.number,
182
184
  /** Controls the padding of the datepicker */
183
- datepickerPadding: PropTypes.number
185
+ datepickerPadding: PropTypes.number,
186
+ /** Controls the visibility of the selected dates in the calendar */
187
+ showSelectedDates: PropTypes.bool
184
188
  };
@@ -34,7 +34,7 @@ export const commonCalendarTheme = ({
34
34
  accessibility: orange[400],
35
35
  selectedDay: orange[400],
36
36
  selectedDayHover: orange[900],
37
- normalDayHover: 'transparent',
37
+ // normalDayHover: 'transparent',
38
38
  ...themeConfig.colors // Allows overriding color settings
39
39
  },
40
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "2.0.184",
3
+ "version": "2.0.186",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {