pcm-shared-components 2.0.185 → 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,
|
|
@@ -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:
|
|
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
|
};
|