@skyscanner/backpack-web 23.2.1 → 23.3.0
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/bpk-component-aria-live/src/BpkAriaLive.js +0 -1
- package/bpk-component-badge/src/BpkBadge.js +0 -1
- package/{bpk-scrim-utils/src/customPropTypes.js → bpk-component-banner-alert/index.d.ts} +16 -14
- package/bpk-component-banner-alert/src/AnimateAndFade.d.ts +61 -0
- package/bpk-component-banner-alert/src/AnimateAndFade.js +3 -9
- package/bpk-component-banner-alert/src/BpkBannerAlert.d.ts +29 -0
- package/bpk-component-banner-alert/src/BpkBannerAlert.js +42 -21
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.d.ts +30 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +31 -33
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.d.ts +35 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +15 -28
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.d.ts +58 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +65 -87
- package/bpk-component-banner-alert/src/common-types.d.ts +44 -0
- package/bpk-component-banner-alert/src/common-types.js +5 -23
- package/bpk-component-banner-alert/src/themeAttributes.d.ts +20 -0
- package/bpk-component-banner-alert/src/withBannerAlertState.d.ts +169 -0
- package/bpk-component-banner-alert/src/withBannerAlertState.js +10 -29
- package/bpk-component-boilerplate/src/BpkBoilerplate.js +0 -1
- package/bpk-component-button/index.js +13 -0
- package/bpk-component-button/src/BpkButtonV2/BpkButton.js +0 -1
- package/bpk-component-calendar/index.d.ts +30 -0
- package/bpk-component-calendar/index.js +5 -4
- package/bpk-component-calendar/src/BpkCalendarContainer.d.ts +429 -0
- package/bpk-component-calendar/src/BpkCalendarContainer.js +19 -29
- package/bpk-component-calendar/src/BpkCalendarDate.d.ts +62 -0
- package/bpk-component-calendar/src/BpkCalendarDate.js +15 -39
- package/bpk-component-calendar/src/BpkCalendarGrid.d.ts +68 -0
- package/bpk-component-calendar/src/BpkCalendarGrid.js +9 -40
- package/bpk-component-calendar/src/BpkCalendarGridHeader.d.ts +36 -0
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +33 -52
- package/bpk-component-calendar/src/BpkCalendarGridTransition.d.ts +56 -0
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +43 -42
- package/bpk-component-calendar/src/BpkCalendarNav.d.ts +37 -0
- package/bpk-component-calendar/src/BpkCalendarNav.js +18 -32
- package/bpk-component-calendar/src/Week.d.ts +51 -0
- package/bpk-component-calendar/src/Week.js +48 -70
- package/bpk-component-calendar/src/composeCalendar.d.ts +52 -0
- package/bpk-component-calendar/src/composeCalendar.js +34 -95
- package/bpk-component-calendar/src/custom-proptypes-legacy.js +140 -0
- package/bpk-component-calendar/src/custom-proptypes.d.ts +46 -0
- package/bpk-component-calendar/src/custom-proptypes.js +2 -61
- package/bpk-component-calendar/src/date-utils.d.ts +54 -0
- package/bpk-component-calendar/src/utils.d.ts +26 -0
- package/bpk-component-calendar/src/utils.js +1 -0
- package/bpk-component-calendar/test-utils.d.ts +56 -0
- package/bpk-component-calendar/test-utils.js +2 -2
- package/bpk-component-card/index.d.ts +24 -0
- package/bpk-component-card/src/BpkCard.d.ts +39 -0
- package/bpk-component-card/src/BpkCard.js +9 -25
- package/bpk-component-card/src/BpkCardWrapper.d.ts +33 -0
- package/bpk-component-card/src/BpkCardWrapper.js +10 -18
- package/bpk-component-card/src/BpkDividedCard.d.ts +43 -0
- package/bpk-component-card/src/BpkDividedCard.js +9 -24
- package/bpk-component-chip/index.d.ts +32 -0
- package/bpk-component-chip/src/BpkDismissibleChip.d.ts +28 -0
- package/bpk-component-chip/src/BpkDismissibleChip.js +9 -8
- package/bpk-component-chip/src/BpkDropdownChip.d.ts +29 -0
- package/bpk-component-chip/src/BpkDropdownChip.js +39 -25
- package/bpk-component-chip/src/BpkSelectableChip.d.ts +39 -0
- package/bpk-component-chip/src/BpkSelectableChip.js +34 -48
- package/bpk-component-chip/src/commonTypes.d.ts +56 -0
- package/bpk-component-chip/src/commonTypes.js +8 -2
- package/bpk-component-dialog/src/BpkDialog.js +0 -1
- package/bpk-component-dialog/src/BpkDialogInner.js +0 -2
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +0 -2
- package/bpk-component-icon/src/classNameModifierHOCFactory.js +0 -1
- package/bpk-component-icon/src/withAlignment.js +1 -1
- package/bpk-component-icon/src/withDescription.js +1 -1
- package/bpk-component-icon/src/withRtlSupport.js +0 -2
- package/bpk-component-input/index.d.ts +39 -0
- package/bpk-component-input/src/BpkClearButton.d.ts +28 -0
- package/bpk-component-input/src/BpkClearButton.js +6 -14
- package/bpk-component-input/src/BpkInput.d.ts +46 -0
- package/bpk-component-input/src/BpkInput.js +7 -3
- package/bpk-component-input/src/common-types.d.ts +91 -0
- package/bpk-component-input/src/common-types.js +4 -1
- package/bpk-component-input/src/withOpenEvents.d.ts +121 -0
- package/bpk-component-input/src/withOpenEvents.js +14 -25
- package/bpk-component-modal/index.js +11 -4
- package/bpk-component-modal/src/BpkModalV2/BpKModal.module.css +18 -0
- package/bpk-component-modal/src/BpkModalV2/BpkModal.d.ts +35 -0
- package/bpk-component-modal/src/BpkModalV2/BpkModal.js +133 -0
- package/bpk-component-rtl-toggle/index.d.ts +23 -0
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.d.ts +41 -0
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +9 -12
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.d.ts +151 -0
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +9 -2
- package/bpk-component-rtl-toggle/src/utils.d.ts +25 -0
- package/bpk-react-utils/index.d.ts +58 -0
- package/bpk-react-utils/index.js +1 -0
- package/bpk-react-utils/src/Portal.d.ts +76 -0
- package/bpk-react-utils/src/Portal.js +33 -43
- package/bpk-react-utils/src/TransitionInitialMount.d.ts +27 -0
- package/bpk-react-utils/src/TransitionInitialMount.js +7 -8
- package/bpk-react-utils/src/cssModules.d.ts +22 -0
- package/bpk-react-utils/src/deprecated.js +2 -1
- package/bpk-react-utils/src/deviceDetection.d.ts +22 -0
- package/bpk-react-utils/src/deviceDetection.js +3 -1
- package/bpk-react-utils/src/isRTL.d.ts +20 -0
- package/bpk-react-utils/src/isRTL.js +3 -1
- package/bpk-react-utils/src/withDefaultProps.d.ts +33 -0
- package/bpk-react-utils/src/withDefaultProps.js +11 -24
- package/bpk-react-utils/src/wrapDisplayName.d.ts +21 -0
- package/bpk-scrim-utils/src/BpkScrim.d.ts +24 -0
- package/bpk-scrim-utils/src/BpkScrim.js +5 -10
- package/bpk-scrim-utils/src/scroll-utils.d.ts +24 -0
- package/bpk-scrim-utils/src/scroll-utils.js +1 -1
- package/bpk-scrim-utils/src/withScrim.d.ts +95 -0
- package/bpk-scrim-utils/src/withScrim.js +5 -12
- package/package.json +1 -1
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import type { ComponentType } from 'react';
|
|
20
|
+
import type { SelectionConfiguration } from './custom-proptypes';
|
|
21
|
+
type Props = {
|
|
22
|
+
fixedWidth: boolean;
|
|
23
|
+
maxDate: Date;
|
|
24
|
+
minDate: Date;
|
|
25
|
+
onDateSelect?: (date: Date, newDate?: Date) => void;
|
|
26
|
+
onMonthChange?: (event: UIEvent, { month, source }: {
|
|
27
|
+
month: Date;
|
|
28
|
+
source: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
selectionConfiguration: SelectionConfiguration;
|
|
31
|
+
initiallyFocusedDate: Date | null;
|
|
32
|
+
};
|
|
33
|
+
type CalendarProps<P> = P & Props;
|
|
34
|
+
type State = {
|
|
35
|
+
preventKeyboardFocus: boolean;
|
|
36
|
+
focusedDate: Date;
|
|
37
|
+
};
|
|
38
|
+
declare const withCalendarState: <P extends {}>(Calendar: ComponentType<P>) => {
|
|
39
|
+
new (props: CalendarProps<P>): {
|
|
40
|
+
UNSAFE_componentWillReceiveProps(nextProps: CalendarProps<P>): void;
|
|
41
|
+
handleDateFocus: (event: UIEvent, { date, source }: {
|
|
42
|
+
date: Date;
|
|
43
|
+
source: string;
|
|
44
|
+
}) => void;
|
|
45
|
+
handleDateSelect: (date: Date) => void;
|
|
46
|
+
handleMonthChange: (event: UIEvent, { month, source }: {
|
|
47
|
+
month: Date;
|
|
48
|
+
source: string;
|
|
49
|
+
}) => void;
|
|
50
|
+
handleDateKeyDown: (event: KeyboardEvent) => void;
|
|
51
|
+
render(): JSX.Element;
|
|
52
|
+
context: any;
|
|
53
|
+
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<CalendarProps<P>>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
|
|
54
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
55
|
+
readonly props: Readonly<CalendarProps<P>> & Readonly<{
|
|
56
|
+
children?: import("react").ReactNode;
|
|
57
|
+
}>;
|
|
58
|
+
state: Readonly<State>;
|
|
59
|
+
refs: {
|
|
60
|
+
[key: string]: import("react").ReactInstance;
|
|
61
|
+
};
|
|
62
|
+
componentDidMount?(): void;
|
|
63
|
+
shouldComponentUpdate?(nextProps: Readonly<CalendarProps<P>>, nextState: Readonly<State>, nextContext: any): boolean;
|
|
64
|
+
componentWillUnmount?(): void;
|
|
65
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
66
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<CalendarProps<P>>, prevState: Readonly<State>): any;
|
|
67
|
+
componentDidUpdate?(prevProps: Readonly<CalendarProps<P>>, prevState: Readonly<State>, snapshot?: any): void;
|
|
68
|
+
componentWillMount?(): void;
|
|
69
|
+
UNSAFE_componentWillMount?(): void;
|
|
70
|
+
componentWillReceiveProps?(nextProps: Readonly<CalendarProps<P>>, nextContext: any): void;
|
|
71
|
+
componentWillUpdate?(nextProps: Readonly<CalendarProps<P>>, nextState: Readonly<State>, nextContext: any): void;
|
|
72
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<CalendarProps<P>>, nextState: Readonly<State>, nextContext: any): void;
|
|
73
|
+
};
|
|
74
|
+
defaultProps: {
|
|
75
|
+
fixedWidth: boolean;
|
|
76
|
+
maxDate: Date;
|
|
77
|
+
minDate: Date;
|
|
78
|
+
onDateSelect: () => void;
|
|
79
|
+
onMonthChange: () => void;
|
|
80
|
+
selectionConfiguration: {
|
|
81
|
+
type: "single";
|
|
82
|
+
date: null;
|
|
83
|
+
};
|
|
84
|
+
initiallyFocusedDate: null;
|
|
85
|
+
};
|
|
86
|
+
contextType?: import("react").Context<any> | undefined;
|
|
87
|
+
};
|
|
88
|
+
declare const _default: {
|
|
89
|
+
new (props: CalendarProps<{
|
|
90
|
+
changeMonthLabel?: string | null | undefined;
|
|
91
|
+
daysOfWeek: import("./custom-proptypes").DaysOfWeek;
|
|
92
|
+
formatDateFull: (date: Date) => string | Date;
|
|
93
|
+
formatMonth: (date: Date) => string | Date;
|
|
94
|
+
id: string;
|
|
95
|
+
maxDate: Date;
|
|
96
|
+
minDate: Date;
|
|
97
|
+
month: Date;
|
|
98
|
+
nextMonthLabel?: string | null | undefined;
|
|
99
|
+
previousMonthLabel?: string | null | undefined;
|
|
100
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
101
|
+
className?: string | null | undefined;
|
|
102
|
+
dateModifiers?: import("./custom-proptypes").DateModifiers | undefined;
|
|
103
|
+
fixedWidth?: boolean | undefined;
|
|
104
|
+
focusedDate?: Date | null | undefined;
|
|
105
|
+
markOutsideDays?: boolean | undefined;
|
|
106
|
+
markToday?: boolean | undefined;
|
|
107
|
+
onMonthChange?: (() => void) | undefined;
|
|
108
|
+
onDateClick?: (() => void) | undefined;
|
|
109
|
+
onDateKeyDown?: (() => void) | undefined;
|
|
110
|
+
preventKeyboardFocus?: boolean | undefined;
|
|
111
|
+
selectionConfiguration?: SelectionConfiguration | undefined;
|
|
112
|
+
gridClassName?: string | null | undefined;
|
|
113
|
+
weekDayKey?: string | undefined;
|
|
114
|
+
navProps?: {} | null | undefined;
|
|
115
|
+
headerProps?: {} | null | undefined;
|
|
116
|
+
gridProps?: {} | null | undefined;
|
|
117
|
+
dateProps?: {} | null | undefined;
|
|
118
|
+
}>): {
|
|
119
|
+
UNSAFE_componentWillReceiveProps(nextProps: CalendarProps<{
|
|
120
|
+
changeMonthLabel?: string | null | undefined;
|
|
121
|
+
daysOfWeek: import("./custom-proptypes").DaysOfWeek;
|
|
122
|
+
formatDateFull: (date: Date) => string | Date;
|
|
123
|
+
formatMonth: (date: Date) => string | Date;
|
|
124
|
+
id: string;
|
|
125
|
+
maxDate: Date;
|
|
126
|
+
minDate: Date;
|
|
127
|
+
month: Date;
|
|
128
|
+
nextMonthLabel?: string | null | undefined;
|
|
129
|
+
previousMonthLabel?: string | null | undefined;
|
|
130
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
131
|
+
className?: string | null | undefined;
|
|
132
|
+
dateModifiers?: import("./custom-proptypes").DateModifiers | undefined;
|
|
133
|
+
fixedWidth?: boolean | undefined;
|
|
134
|
+
focusedDate?: Date | null | undefined;
|
|
135
|
+
markOutsideDays?: boolean | undefined;
|
|
136
|
+
markToday?: boolean | undefined;
|
|
137
|
+
onMonthChange?: (() => void) | undefined;
|
|
138
|
+
onDateClick?: (() => void) | undefined;
|
|
139
|
+
onDateKeyDown?: (() => void) | undefined;
|
|
140
|
+
preventKeyboardFocus?: boolean | undefined;
|
|
141
|
+
selectionConfiguration?: SelectionConfiguration | undefined;
|
|
142
|
+
gridClassName?: string | null | undefined;
|
|
143
|
+
weekDayKey?: string | undefined;
|
|
144
|
+
navProps?: {} | null | undefined;
|
|
145
|
+
headerProps?: {} | null | undefined;
|
|
146
|
+
gridProps?: {} | null | undefined;
|
|
147
|
+
dateProps?: {} | null | undefined;
|
|
148
|
+
}>): void;
|
|
149
|
+
handleDateFocus: (event: UIEvent, { date, source }: {
|
|
150
|
+
date: Date;
|
|
151
|
+
source: string;
|
|
152
|
+
}) => void;
|
|
153
|
+
handleDateSelect: (date: Date) => void;
|
|
154
|
+
handleMonthChange: (event: UIEvent, { month, source }: {
|
|
155
|
+
month: Date;
|
|
156
|
+
source: string;
|
|
157
|
+
}) => void;
|
|
158
|
+
handleDateKeyDown: (event: KeyboardEvent) => void;
|
|
159
|
+
render(): JSX.Element;
|
|
160
|
+
context: any;
|
|
161
|
+
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<CalendarProps<{
|
|
162
|
+
changeMonthLabel?: string | null | undefined;
|
|
163
|
+
daysOfWeek: import("./custom-proptypes").DaysOfWeek;
|
|
164
|
+
formatDateFull: (date: Date) => string | Date;
|
|
165
|
+
formatMonth: (date: Date) => string | Date;
|
|
166
|
+
id: string;
|
|
167
|
+
maxDate: Date;
|
|
168
|
+
minDate: Date;
|
|
169
|
+
month: Date;
|
|
170
|
+
nextMonthLabel?: string | null | undefined;
|
|
171
|
+
previousMonthLabel?: string | null | undefined;
|
|
172
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
173
|
+
className?: string | null | undefined;
|
|
174
|
+
dateModifiers?: import("./custom-proptypes").DateModifiers | undefined;
|
|
175
|
+
fixedWidth?: boolean | undefined;
|
|
176
|
+
focusedDate?: Date | null | undefined;
|
|
177
|
+
markOutsideDays?: boolean | undefined;
|
|
178
|
+
markToday?: boolean | undefined;
|
|
179
|
+
onMonthChange?: (() => void) | undefined;
|
|
180
|
+
onDateClick?: (() => void) | undefined;
|
|
181
|
+
onDateKeyDown?: (() => void) | undefined;
|
|
182
|
+
preventKeyboardFocus?: boolean | undefined;
|
|
183
|
+
selectionConfiguration?: SelectionConfiguration | undefined;
|
|
184
|
+
gridClassName?: string | null | undefined;
|
|
185
|
+
weekDayKey?: string | undefined;
|
|
186
|
+
navProps?: {} | null | undefined;
|
|
187
|
+
headerProps?: {} | null | undefined;
|
|
188
|
+
gridProps?: {} | null | undefined;
|
|
189
|
+
dateProps?: {} | null | undefined;
|
|
190
|
+
}>>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
|
|
191
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
192
|
+
readonly props: Readonly<CalendarProps<{
|
|
193
|
+
changeMonthLabel?: string | null | undefined;
|
|
194
|
+
daysOfWeek: import("./custom-proptypes").DaysOfWeek;
|
|
195
|
+
formatDateFull: (date: Date) => string | Date;
|
|
196
|
+
formatMonth: (date: Date) => string | Date;
|
|
197
|
+
id: string;
|
|
198
|
+
maxDate: Date;
|
|
199
|
+
minDate: Date;
|
|
200
|
+
month: Date;
|
|
201
|
+
nextMonthLabel?: string | null | undefined;
|
|
202
|
+
previousMonthLabel?: string | null | undefined;
|
|
203
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
204
|
+
className?: string | null | undefined;
|
|
205
|
+
dateModifiers?: import("./custom-proptypes").DateModifiers | undefined;
|
|
206
|
+
fixedWidth?: boolean | undefined;
|
|
207
|
+
focusedDate?: Date | null | undefined;
|
|
208
|
+
markOutsideDays?: boolean | undefined;
|
|
209
|
+
markToday?: boolean | undefined;
|
|
210
|
+
onMonthChange?: (() => void) | undefined;
|
|
211
|
+
onDateClick?: (() => void) | undefined;
|
|
212
|
+
onDateKeyDown?: (() => void) | undefined;
|
|
213
|
+
preventKeyboardFocus?: boolean | undefined;
|
|
214
|
+
selectionConfiguration?: SelectionConfiguration | undefined;
|
|
215
|
+
gridClassName?: string | null | undefined;
|
|
216
|
+
weekDayKey?: string | undefined;
|
|
217
|
+
navProps?: {} | null | undefined;
|
|
218
|
+
headerProps?: {} | null | undefined;
|
|
219
|
+
gridProps?: {} | null | undefined;
|
|
220
|
+
dateProps?: {} | null | undefined;
|
|
221
|
+
}>> & Readonly<{
|
|
222
|
+
children?: import("react").ReactNode;
|
|
223
|
+
}>;
|
|
224
|
+
state: Readonly<State>;
|
|
225
|
+
refs: {
|
|
226
|
+
[key: string]: import("react").ReactInstance;
|
|
227
|
+
};
|
|
228
|
+
componentDidMount?(): void;
|
|
229
|
+
shouldComponentUpdate?(nextProps: Readonly<CalendarProps<{
|
|
230
|
+
changeMonthLabel?: string | null | undefined;
|
|
231
|
+
daysOfWeek: import("./custom-proptypes").DaysOfWeek;
|
|
232
|
+
formatDateFull: (date: Date) => string | Date;
|
|
233
|
+
formatMonth: (date: Date) => string | Date;
|
|
234
|
+
id: string;
|
|
235
|
+
maxDate: Date;
|
|
236
|
+
minDate: Date;
|
|
237
|
+
month: Date;
|
|
238
|
+
nextMonthLabel?: string | null | undefined;
|
|
239
|
+
previousMonthLabel?: string | null | undefined;
|
|
240
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
241
|
+
className?: string | null | undefined;
|
|
242
|
+
dateModifiers?: import("./custom-proptypes").DateModifiers | undefined;
|
|
243
|
+
fixedWidth?: boolean | undefined;
|
|
244
|
+
focusedDate?: Date | null | undefined;
|
|
245
|
+
markOutsideDays?: boolean | undefined;
|
|
246
|
+
markToday?: boolean | undefined;
|
|
247
|
+
onMonthChange?: (() => void) | undefined;
|
|
248
|
+
onDateClick?: (() => void) | undefined;
|
|
249
|
+
onDateKeyDown?: (() => void) | undefined;
|
|
250
|
+
preventKeyboardFocus?: boolean | undefined;
|
|
251
|
+
selectionConfiguration?: SelectionConfiguration | undefined;
|
|
252
|
+
gridClassName?: string | null | undefined;
|
|
253
|
+
weekDayKey?: string | undefined;
|
|
254
|
+
navProps?: {} | null | undefined;
|
|
255
|
+
headerProps?: {} | null | undefined;
|
|
256
|
+
gridProps?: {} | null | undefined;
|
|
257
|
+
dateProps?: {} | null | undefined;
|
|
258
|
+
}>>, nextState: Readonly<State>, nextContext: any): boolean;
|
|
259
|
+
componentWillUnmount?(): void;
|
|
260
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
261
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<CalendarProps<{
|
|
262
|
+
changeMonthLabel?: string | null | undefined;
|
|
263
|
+
daysOfWeek: import("./custom-proptypes").DaysOfWeek;
|
|
264
|
+
formatDateFull: (date: Date) => string | Date;
|
|
265
|
+
formatMonth: (date: Date) => string | Date;
|
|
266
|
+
id: string;
|
|
267
|
+
maxDate: Date;
|
|
268
|
+
minDate: Date;
|
|
269
|
+
month: Date;
|
|
270
|
+
nextMonthLabel?: string | null | undefined;
|
|
271
|
+
previousMonthLabel?: string | null | undefined;
|
|
272
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
273
|
+
className?: string | null | undefined;
|
|
274
|
+
dateModifiers?: import("./custom-proptypes").DateModifiers | undefined;
|
|
275
|
+
fixedWidth?: boolean | undefined;
|
|
276
|
+
focusedDate?: Date | null | undefined;
|
|
277
|
+
markOutsideDays?: boolean | undefined;
|
|
278
|
+
markToday?: boolean | undefined;
|
|
279
|
+
onMonthChange?: (() => void) | undefined;
|
|
280
|
+
onDateClick?: (() => void) | undefined;
|
|
281
|
+
onDateKeyDown?: (() => void) | undefined;
|
|
282
|
+
preventKeyboardFocus?: boolean | undefined;
|
|
283
|
+
selectionConfiguration?: SelectionConfiguration | undefined;
|
|
284
|
+
gridClassName?: string | null | undefined;
|
|
285
|
+
weekDayKey?: string | undefined;
|
|
286
|
+
navProps?: {} | null | undefined;
|
|
287
|
+
headerProps?: {} | null | undefined;
|
|
288
|
+
gridProps?: {} | null | undefined;
|
|
289
|
+
dateProps?: {} | null | undefined;
|
|
290
|
+
}>>, prevState: Readonly<State>): any;
|
|
291
|
+
componentDidUpdate?(prevProps: Readonly<CalendarProps<{
|
|
292
|
+
changeMonthLabel?: string | null | undefined;
|
|
293
|
+
daysOfWeek: import("./custom-proptypes").DaysOfWeek;
|
|
294
|
+
formatDateFull: (date: Date) => string | Date;
|
|
295
|
+
formatMonth: (date: Date) => string | Date;
|
|
296
|
+
id: string;
|
|
297
|
+
maxDate: Date;
|
|
298
|
+
minDate: Date;
|
|
299
|
+
month: Date;
|
|
300
|
+
nextMonthLabel?: string | null | undefined;
|
|
301
|
+
previousMonthLabel?: string | null | undefined;
|
|
302
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
303
|
+
className?: string | null | undefined;
|
|
304
|
+
dateModifiers?: import("./custom-proptypes").DateModifiers | undefined;
|
|
305
|
+
fixedWidth?: boolean | undefined;
|
|
306
|
+
focusedDate?: Date | null | undefined;
|
|
307
|
+
markOutsideDays?: boolean | undefined;
|
|
308
|
+
markToday?: boolean | undefined;
|
|
309
|
+
onMonthChange?: (() => void) | undefined;
|
|
310
|
+
onDateClick?: (() => void) | undefined;
|
|
311
|
+
onDateKeyDown?: (() => void) | undefined;
|
|
312
|
+
preventKeyboardFocus?: boolean | undefined;
|
|
313
|
+
selectionConfiguration?: SelectionConfiguration | undefined;
|
|
314
|
+
gridClassName?: string | null | undefined;
|
|
315
|
+
weekDayKey?: string | undefined;
|
|
316
|
+
navProps?: {} | null | undefined;
|
|
317
|
+
headerProps?: {} | null | undefined;
|
|
318
|
+
gridProps?: {} | null | undefined;
|
|
319
|
+
dateProps?: {} | null | undefined;
|
|
320
|
+
}>>, prevState: Readonly<State>, snapshot?: any): void;
|
|
321
|
+
componentWillMount?(): void;
|
|
322
|
+
UNSAFE_componentWillMount?(): void;
|
|
323
|
+
componentWillReceiveProps?(nextProps: Readonly<CalendarProps<{
|
|
324
|
+
changeMonthLabel?: string | null | undefined;
|
|
325
|
+
daysOfWeek: import("./custom-proptypes").DaysOfWeek;
|
|
326
|
+
formatDateFull: (date: Date) => string | Date;
|
|
327
|
+
formatMonth: (date: Date) => string | Date;
|
|
328
|
+
id: string;
|
|
329
|
+
maxDate: Date;
|
|
330
|
+
minDate: Date;
|
|
331
|
+
month: Date;
|
|
332
|
+
nextMonthLabel?: string | null | undefined;
|
|
333
|
+
previousMonthLabel?: string | null | undefined;
|
|
334
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
335
|
+
className?: string | null | undefined;
|
|
336
|
+
dateModifiers?: import("./custom-proptypes").DateModifiers | undefined;
|
|
337
|
+
fixedWidth?: boolean | undefined;
|
|
338
|
+
focusedDate?: Date | null | undefined;
|
|
339
|
+
markOutsideDays?: boolean | undefined;
|
|
340
|
+
markToday?: boolean | undefined;
|
|
341
|
+
onMonthChange?: (() => void) | undefined;
|
|
342
|
+
onDateClick?: (() => void) | undefined;
|
|
343
|
+
onDateKeyDown?: (() => void) | undefined;
|
|
344
|
+
preventKeyboardFocus?: boolean | undefined;
|
|
345
|
+
selectionConfiguration?: SelectionConfiguration | undefined;
|
|
346
|
+
gridClassName?: string | null | undefined;
|
|
347
|
+
weekDayKey?: string | undefined;
|
|
348
|
+
navProps?: {} | null | undefined;
|
|
349
|
+
headerProps?: {} | null | undefined;
|
|
350
|
+
gridProps?: {} | null | undefined;
|
|
351
|
+
dateProps?: {} | null | undefined;
|
|
352
|
+
}>>, nextContext: any): void;
|
|
353
|
+
componentWillUpdate?(nextProps: Readonly<CalendarProps<{
|
|
354
|
+
changeMonthLabel?: string | null | undefined;
|
|
355
|
+
daysOfWeek: import("./custom-proptypes").DaysOfWeek;
|
|
356
|
+
formatDateFull: (date: Date) => string | Date;
|
|
357
|
+
formatMonth: (date: Date) => string | Date;
|
|
358
|
+
id: string;
|
|
359
|
+
maxDate: Date;
|
|
360
|
+
minDate: Date;
|
|
361
|
+
month: Date;
|
|
362
|
+
nextMonthLabel?: string | null | undefined;
|
|
363
|
+
previousMonthLabel?: string | null | undefined;
|
|
364
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
365
|
+
className?: string | null | undefined;
|
|
366
|
+
dateModifiers?: import("./custom-proptypes").DateModifiers | undefined;
|
|
367
|
+
fixedWidth?: boolean | undefined;
|
|
368
|
+
focusedDate?: Date | null | undefined;
|
|
369
|
+
markOutsideDays?: boolean | undefined;
|
|
370
|
+
markToday?: boolean | undefined;
|
|
371
|
+
onMonthChange?: (() => void) | undefined;
|
|
372
|
+
onDateClick?: (() => void) | undefined;
|
|
373
|
+
onDateKeyDown?: (() => void) | undefined;
|
|
374
|
+
preventKeyboardFocus?: boolean | undefined;
|
|
375
|
+
selectionConfiguration?: SelectionConfiguration | undefined;
|
|
376
|
+
gridClassName?: string | null | undefined;
|
|
377
|
+
weekDayKey?: string | undefined;
|
|
378
|
+
navProps?: {} | null | undefined;
|
|
379
|
+
headerProps?: {} | null | undefined;
|
|
380
|
+
gridProps?: {} | null | undefined;
|
|
381
|
+
dateProps?: {} | null | undefined;
|
|
382
|
+
}>>, nextState: Readonly<State>, nextContext: any): void;
|
|
383
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<CalendarProps<{
|
|
384
|
+
changeMonthLabel?: string | null | undefined;
|
|
385
|
+
daysOfWeek: import("./custom-proptypes").DaysOfWeek;
|
|
386
|
+
formatDateFull: (date: Date) => string | Date;
|
|
387
|
+
formatMonth: (date: Date) => string | Date;
|
|
388
|
+
id: string;
|
|
389
|
+
maxDate: Date;
|
|
390
|
+
minDate: Date;
|
|
391
|
+
month: Date;
|
|
392
|
+
nextMonthLabel?: string | null | undefined;
|
|
393
|
+
previousMonthLabel?: string | null | undefined;
|
|
394
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
395
|
+
className?: string | null | undefined;
|
|
396
|
+
dateModifiers?: import("./custom-proptypes").DateModifiers | undefined;
|
|
397
|
+
fixedWidth?: boolean | undefined;
|
|
398
|
+
focusedDate?: Date | null | undefined;
|
|
399
|
+
markOutsideDays?: boolean | undefined;
|
|
400
|
+
markToday?: boolean | undefined;
|
|
401
|
+
onMonthChange?: (() => void) | undefined;
|
|
402
|
+
onDateClick?: (() => void) | undefined;
|
|
403
|
+
onDateKeyDown?: (() => void) | undefined;
|
|
404
|
+
preventKeyboardFocus?: boolean | undefined;
|
|
405
|
+
selectionConfiguration?: SelectionConfiguration | undefined;
|
|
406
|
+
gridClassName?: string | null | undefined;
|
|
407
|
+
weekDayKey?: string | undefined;
|
|
408
|
+
navProps?: {} | null | undefined;
|
|
409
|
+
headerProps?: {} | null | undefined;
|
|
410
|
+
gridProps?: {} | null | undefined;
|
|
411
|
+
dateProps?: {} | null | undefined;
|
|
412
|
+
}>>, nextState: Readonly<State>, nextContext: any): void;
|
|
413
|
+
};
|
|
414
|
+
defaultProps: {
|
|
415
|
+
fixedWidth: boolean;
|
|
416
|
+
maxDate: Date;
|
|
417
|
+
minDate: Date;
|
|
418
|
+
onDateSelect: () => void;
|
|
419
|
+
onMonthChange: () => void;
|
|
420
|
+
selectionConfiguration: {
|
|
421
|
+
type: "single";
|
|
422
|
+
date: null;
|
|
423
|
+
};
|
|
424
|
+
initiallyFocusedDate: null;
|
|
425
|
+
};
|
|
426
|
+
contextType?: import("react").Context<any> | undefined;
|
|
427
|
+
};
|
|
428
|
+
export default _default;
|
|
429
|
+
export { withCalendarState };
|
|
@@ -4,10 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.withCalendarState = exports.default = void 0;
|
|
7
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
7
|
var _react = require("react");
|
|
9
8
|
var _bpkReactUtils = require("../../bpk-react-utils");
|
|
10
|
-
var _customProptypes =
|
|
9
|
+
var _customProptypes = require("./custom-proptypes");
|
|
11
10
|
var _BpkCalendarNav = _interopRequireDefault(require("./BpkCalendarNav"));
|
|
12
11
|
var _BpkCalendarGrid = require("./BpkCalendarGrid");
|
|
13
12
|
var _BpkCalendarGridHeader = _interopRequireDefault(require("./BpkCalendarGridHeader"));
|
|
@@ -15,9 +14,7 @@ var _BpkCalendarDate = _interopRequireDefault(require("./BpkCalendarDate"));
|
|
|
15
14
|
var _composeCalendar = _interopRequireDefault(require("./composeCalendar"));
|
|
16
15
|
var _dateUtils = require("./date-utils");
|
|
17
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
const _excluded = ["maxDate", "minDate", "selectionConfiguration"];
|
|
19
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
const _excluded = ["maxDate", "minDate", "onDateSelect", "onMonthChange", "selectionConfiguration"];
|
|
21
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
19
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
20
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -41,23 +38,26 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
|
|
|
41
38
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
42
39
|
* See the License for the specific language governing permissions and
|
|
43
40
|
* limitations under the License.
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Updates the current focused date
|
|
44
|
+
* @param {Object} currentProps current input properties
|
|
45
|
+
* @param {Object} nextProps next input properties when component changes
|
|
46
|
+
* @returns {Boolean} if the selected date has changed
|
|
47
|
+
*/
|
|
50
48
|
const focusedDateHasChanged = (currentProps, nextProps) => {
|
|
51
49
|
const currentSelectConfig = currentProps.selectionConfiguration;
|
|
52
50
|
const nextSelectConfig = nextProps.selectionConfiguration;
|
|
53
|
-
const rawNextSelectedDate = nextSelectConfig.date
|
|
54
|
-
const rawSelectedDate = currentSelectConfig.date
|
|
51
|
+
const rawNextSelectedDate = nextSelectConfig.type === _customProptypes.CALENDAR_SELECTION_TYPE.single ? nextSelectConfig.date : nextSelectConfig.startDate;
|
|
52
|
+
const rawSelectedDate = currentSelectConfig.type === _customProptypes.CALENDAR_SELECTION_TYPE.single ? currentSelectConfig.date : currentSelectConfig.startDate;
|
|
55
53
|
if (!rawSelectedDate && !rawNextSelectedDate) {
|
|
56
54
|
return false;
|
|
57
55
|
}
|
|
58
56
|
if (rawSelectedDate && !rawNextSelectedDate || !rawSelectedDate && rawNextSelectedDate) {
|
|
59
57
|
return true;
|
|
60
58
|
}
|
|
59
|
+
|
|
60
|
+
// @ts-expect-error TS reporting incorrectly as we are already checking above that the dates are not null
|
|
61
61
|
return !(0, _dateUtils.isSameDay)(rawNextSelectedDate, rawSelectedDate);
|
|
62
62
|
};
|
|
63
63
|
|
|
@@ -153,7 +153,6 @@ const withCalendarState = Calendar => {
|
|
|
153
153
|
});
|
|
154
154
|
});
|
|
155
155
|
_defineProperty(this, "handleDateKeyDown", event => {
|
|
156
|
-
event.persist();
|
|
157
156
|
const reverse = (0, _bpkReactUtils.isRTL)() ? -1 : 1;
|
|
158
157
|
const {
|
|
159
158
|
focusedDate
|
|
@@ -243,11 +242,11 @@ const withCalendarState = Calendar => {
|
|
|
243
242
|
{
|
|
244
243
|
maxDate,
|
|
245
244
|
minDate,
|
|
245
|
+
onDateSelect,
|
|
246
|
+
onMonthChange,
|
|
246
247
|
selectionConfiguration
|
|
247
248
|
} = _this$props,
|
|
248
249
|
calendarProps = _objectWithoutProperties(_this$props, _excluded);
|
|
249
|
-
delete calendarProps.onDateSelect;
|
|
250
|
-
delete calendarProps.onMonthChange;
|
|
251
250
|
const sanitisedMinDate = (0, _dateUtils.startOfDay)(minDate);
|
|
252
251
|
const sanitisedMaxDate = (0, _dateUtils.startOfDay)(maxDate);
|
|
253
252
|
const sanitisedFocusedDate = (0, _dateUtils.dateToBoundaries)(this.state.focusedDate, sanitisedMinDate, sanitisedMaxDate);
|
|
@@ -266,27 +265,18 @@ const withCalendarState = Calendar => {
|
|
|
266
265
|
}));
|
|
267
266
|
}
|
|
268
267
|
}
|
|
269
|
-
BpkCalendarContainer
|
|
270
|
-
fixedWidth: _propTypes.default.bool,
|
|
271
|
-
maxDate: _propTypes.default.instanceOf(Date),
|
|
272
|
-
minDate: _propTypes.default.instanceOf(Date),
|
|
273
|
-
onDateSelect: _propTypes.default.func,
|
|
274
|
-
onMonthChange: _propTypes.default.func,
|
|
275
|
-
selectionConfiguration: _customProptypes.default.SelectionConfiguration,
|
|
276
|
-
initiallyFocusedDate: _propTypes.default.instanceOf(Date)
|
|
277
|
-
};
|
|
278
|
-
BpkCalendarContainer.defaultProps = {
|
|
268
|
+
_defineProperty(BpkCalendarContainer, "defaultProps", {
|
|
279
269
|
fixedWidth: true,
|
|
280
270
|
maxDate: (0, _dateUtils.addMonths)(new Date(), 12),
|
|
281
271
|
minDate: new Date(),
|
|
282
|
-
onDateSelect:
|
|
283
|
-
onMonthChange:
|
|
272
|
+
onDateSelect: () => {},
|
|
273
|
+
onMonthChange: () => {},
|
|
284
274
|
selectionConfiguration: {
|
|
285
275
|
type: _customProptypes.CALENDAR_SELECTION_TYPE.single,
|
|
286
276
|
date: null
|
|
287
277
|
},
|
|
288
278
|
initiallyFocusedDate: null
|
|
289
|
-
};
|
|
279
|
+
});
|
|
290
280
|
return BpkCalendarContainer;
|
|
291
281
|
};
|
|
292
282
|
exports.withCalendarState = withCalendarState;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import type { KeyboardEvent } from 'react';
|
|
20
|
+
import { PureComponent } from 'react';
|
|
21
|
+
import type { DateModifiers } from './custom-proptypes';
|
|
22
|
+
export declare const SELECTION_TYPES: {
|
|
23
|
+
readonly none: "none";
|
|
24
|
+
readonly single: "single";
|
|
25
|
+
readonly start: "start";
|
|
26
|
+
readonly middle: "middle";
|
|
27
|
+
readonly end: "end";
|
|
28
|
+
readonly sameDay: "sameDay";
|
|
29
|
+
};
|
|
30
|
+
export declare const ROW_TYPES: {
|
|
31
|
+
readonly start: "start";
|
|
32
|
+
readonly middle: "middle";
|
|
33
|
+
readonly end: "end";
|
|
34
|
+
readonly both: "both";
|
|
35
|
+
};
|
|
36
|
+
export type SelectionTypes = typeof SELECTION_TYPES[keyof typeof SELECTION_TYPES];
|
|
37
|
+
export type Props = DefaultProps & {
|
|
38
|
+
date: Date;
|
|
39
|
+
};
|
|
40
|
+
type DefaultProps = {
|
|
41
|
+
className: string | null;
|
|
42
|
+
isBlocked: boolean;
|
|
43
|
+
isFocused: boolean;
|
|
44
|
+
isKeyboardFocusable: boolean;
|
|
45
|
+
isOutside: boolean;
|
|
46
|
+
isSelected: boolean;
|
|
47
|
+
isToday: boolean;
|
|
48
|
+
modifiers: DateModifiers;
|
|
49
|
+
onClick: ((date: Date) => void) | null;
|
|
50
|
+
onDateKeyDown: (event: KeyboardEvent<HTMLButtonElement>) => void;
|
|
51
|
+
preventKeyboardFocus?: boolean;
|
|
52
|
+
selectionType: SelectionTypes;
|
|
53
|
+
style: {};
|
|
54
|
+
};
|
|
55
|
+
declare class BpkCalendarDate extends PureComponent<Props> {
|
|
56
|
+
static defaultProps: DefaultProps;
|
|
57
|
+
componentDidMount(): void;
|
|
58
|
+
componentDidUpdate(prevProps: Props): void;
|
|
59
|
+
button: HTMLButtonElement | null;
|
|
60
|
+
render(): JSX.Element;
|
|
61
|
+
}
|
|
62
|
+
export default BpkCalendarDate;
|