@xsolla/xui-calendar 0.119.0 → 0.121.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/package.json +7 -7
- package/native/index.js.flow +0 -285
- package/web/index.js.flow +0 -285
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-calendar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.121.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"test:coverage": "vitest run --coverage"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xsolla/xui-button": "0.
|
|
17
|
-
"@xsolla/xui-core": "0.
|
|
18
|
-
"@xsolla/xui-icons-base": "0.
|
|
19
|
-
"@xsolla/xui-primitives-core": "0.
|
|
20
|
-
"@xsolla/xui-select": "0.
|
|
21
|
-
"@xsolla/xui-tag": "0.
|
|
16
|
+
"@xsolla/xui-button": "0.121.0",
|
|
17
|
+
"@xsolla/xui-core": "0.121.0",
|
|
18
|
+
"@xsolla/xui-icons-base": "0.121.0",
|
|
19
|
+
"@xsolla/xui-primitives-core": "0.121.0",
|
|
20
|
+
"@xsolla/xui-select": "0.121.0",
|
|
21
|
+
"@xsolla/xui-tag": "0.121.0",
|
|
22
22
|
"date-fns": "^3.0.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
package/native/index.js.flow
DELETED
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for index
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.21.0
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as react from "react";
|
|
9
|
-
import react__default, { Node } from "react";
|
|
10
|
-
import * as locales from "date-fns/locale";
|
|
11
|
-
declare type CalendarLocaleType = $Keys<typeof locales>;
|
|
12
|
-
declare interface CalendarChipOption {
|
|
13
|
-
label: string;
|
|
14
|
-
value: string;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Number of days the chip represents as a range from today.
|
|
18
|
-
* 0 = today only, 7 = last 7 days, 30 = last 30 days, etc.
|
|
19
|
-
*/
|
|
20
|
-
days?: number;
|
|
21
|
-
}
|
|
22
|
-
declare interface CalendarChipsProps {
|
|
23
|
-
/**
|
|
24
|
-
* Array of chip options to display.
|
|
25
|
-
*/
|
|
26
|
-
chips: CalendarChipOption[];
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The currently active chip value.
|
|
30
|
-
*/
|
|
31
|
-
activeChip?: string | null;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Callback fired when a chip is selected.
|
|
35
|
-
*/
|
|
36
|
-
onChipSelect?: (value: string) => void;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Test ID for testing frameworks
|
|
40
|
-
*/
|
|
41
|
-
testID?: string;
|
|
42
|
-
}
|
|
43
|
-
declare interface CalendarGridProps {
|
|
44
|
-
currentMonth: Date;
|
|
45
|
-
locale?: CalendarLocaleType;
|
|
46
|
-
firstDayOfWeek?: number;
|
|
47
|
-
selectsRange?: boolean;
|
|
48
|
-
minDate?: Date | null;
|
|
49
|
-
maxDate?: Date | null;
|
|
50
|
-
startDate?: Date | null;
|
|
51
|
-
endDate?: Date | null;
|
|
52
|
-
selectedDate?: Date | null;
|
|
53
|
-
selectingRange?: Date | null;
|
|
54
|
-
onDayPress?: (date: Date) => void;
|
|
55
|
-
testID?: string;
|
|
56
|
-
}
|
|
57
|
-
declare interface CalendarHeaderProps {
|
|
58
|
-
monthDate: Date;
|
|
59
|
-
decreaseMonth: () => void;
|
|
60
|
-
increaseMonth: () => void;
|
|
61
|
-
changeYear: (year: number) => void;
|
|
62
|
-
changeMonth: (month: number) => void;
|
|
63
|
-
prevMonthButtonDisabled?: boolean;
|
|
64
|
-
nextMonthButtonDisabled?: boolean;
|
|
65
|
-
locale: CalendarLocaleType;
|
|
66
|
-
minDate?: Date | null;
|
|
67
|
-
maxDate?: Date | null;
|
|
68
|
-
contextMenuMaxHeight?: number;
|
|
69
|
-
}
|
|
70
|
-
declare interface CalendarProps {
|
|
71
|
-
locale?: CalendarLocaleType;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* The day to use as first day of the week, starting from 0 (Sunday) to 6 (Saturday).
|
|
75
|
-
*/
|
|
76
|
-
firstDayOfWeek?: number;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* The month to display in the calendar at first render.
|
|
80
|
-
*/
|
|
81
|
-
initialMonth?: Date;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* The month to display in the calendar.
|
|
85
|
-
*/
|
|
86
|
-
month?: Date;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Select in range mode for calendar
|
|
90
|
-
*/
|
|
91
|
-
selectsRange?: boolean;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* The minimum selectable date
|
|
95
|
-
*/
|
|
96
|
-
minDate?: Date | null;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* The maximum selectable date
|
|
100
|
-
*/
|
|
101
|
-
maxDate?: Date | null;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* For range mode. Start date in selected period
|
|
105
|
-
*/
|
|
106
|
-
startDate?: Date | null;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* For range mode. End date in selected period
|
|
110
|
-
*/
|
|
111
|
-
endDate?: Date | null;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* The selected date
|
|
115
|
-
*/
|
|
116
|
-
selectedDate?: Date | null;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Property sets the maximum height of a context menus for selecting month and year.
|
|
120
|
-
*/
|
|
121
|
-
contextMenuMaxHeight?: number;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Returns custom content to display above the calendar's date picker.
|
|
125
|
-
*/
|
|
126
|
-
topContent?: (datePicker: {
|
|
127
|
-
close: () => void,
|
|
128
|
-
...
|
|
129
|
-
}) => Node;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Returns custom content to display beneath the calendar's date picker.
|
|
133
|
-
*/
|
|
134
|
-
bottomContent?: (datePicker: {
|
|
135
|
-
close: () => void,
|
|
136
|
-
...
|
|
137
|
-
}) => Node;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Preset chip options displayed above the calendar header.
|
|
141
|
-
*/
|
|
142
|
-
chips?: CalendarChipOption[];
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* The currently active chip value.
|
|
146
|
-
*/
|
|
147
|
-
activeChip?: string | null;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Callback fired when a chip is selected.
|
|
151
|
-
*/
|
|
152
|
-
onChipSelect?: (value: string) => void;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Test ID for testing frameworks
|
|
156
|
-
*/
|
|
157
|
-
testID?: string;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Callback fired when the date changes
|
|
161
|
-
*/
|
|
162
|
-
onChange?: (date: Date | [Date | null, Date | null]) => void;
|
|
163
|
-
}
|
|
164
|
-
declare interface DualCalendarProps {
|
|
165
|
-
locale?: CalendarLocaleType;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* The day to use as first day of the week, starting from 0 (Sunday) to 6 (Saturday).
|
|
169
|
-
*/
|
|
170
|
-
firstDayOfWeek?: number;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* The month to display in the left calendar at first render.
|
|
174
|
-
*/
|
|
175
|
-
initialMonth?: Date;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* The month to display in the left calendar (controlled).
|
|
179
|
-
*/
|
|
180
|
-
month?: Date;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* The minimum selectable date
|
|
184
|
-
*/
|
|
185
|
-
minDate?: Date | null;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* The maximum selectable date
|
|
189
|
-
*/
|
|
190
|
-
maxDate?: Date | null;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Start date of the selected range
|
|
194
|
-
*/
|
|
195
|
-
startDate?: Date | null;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* End date of the selected range
|
|
199
|
-
*/
|
|
200
|
-
endDate?: Date | null;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* Property sets the maximum height of a context menus for selecting month and year.
|
|
204
|
-
*/
|
|
205
|
-
contextMenuMaxHeight?: number;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Returns custom content to display above the calendars.
|
|
209
|
-
*/
|
|
210
|
-
topContent?: (datePicker: {
|
|
211
|
-
close: () => void,
|
|
212
|
-
...
|
|
213
|
-
}) => Node;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Returns custom content to display beneath the calendars.
|
|
217
|
-
*/
|
|
218
|
-
bottomContent?: (datePicker: {
|
|
219
|
-
close: () => void,
|
|
220
|
-
...
|
|
221
|
-
}) => Node;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Preset chip options displayed above the calendar headers.
|
|
225
|
-
*/
|
|
226
|
-
chips?: CalendarChipOption[];
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* The currently active chip value.
|
|
230
|
-
*/
|
|
231
|
-
activeChip?: string | null;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Callback fired when a chip is selected.
|
|
235
|
-
*/
|
|
236
|
-
onChipSelect?: (value: string) => void;
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Test ID for testing frameworks
|
|
240
|
-
*/
|
|
241
|
-
testID?: string;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Callback fired when the date range changes.
|
|
245
|
-
*/
|
|
246
|
-
onChange?: (dates: [Date | null, Date | null]) => void;
|
|
247
|
-
}
|
|
248
|
-
declare var Calendar: react.ForwardRefExoticComponent<{
|
|
249
|
-
...CalendarProps,
|
|
250
|
-
...react.RefAttributes<any>,
|
|
251
|
-
}>;
|
|
252
|
-
declare var DualCalendar: react.ForwardRefExoticComponent<{
|
|
253
|
-
...DualCalendarProps,
|
|
254
|
-
...react.RefAttributes<any>,
|
|
255
|
-
}>;
|
|
256
|
-
declare var CalendarHeader: react__default.FC<CalendarHeaderProps>;
|
|
257
|
-
declare var CalendarGrid: react__default.FC<CalendarGridProps>;
|
|
258
|
-
declare var CalendarChips: react__default.FC<CalendarChipsProps>;
|
|
259
|
-
declare function formatDate(
|
|
260
|
-
date: Date,
|
|
261
|
-
formatStr: string,
|
|
262
|
-
locale?: CalendarLocaleType
|
|
263
|
-
): string;
|
|
264
|
-
declare function getMonthInLocale(
|
|
265
|
-
month: number,
|
|
266
|
-
locale?: CalendarLocaleType
|
|
267
|
-
): string;
|
|
268
|
-
export type {
|
|
269
|
-
CalendarChipOption,
|
|
270
|
-
CalendarChipsProps,
|
|
271
|
-
CalendarGridProps,
|
|
272
|
-
CalendarHeaderProps,
|
|
273
|
-
CalendarLocaleType,
|
|
274
|
-
CalendarProps,
|
|
275
|
-
DualCalendarProps,
|
|
276
|
-
};
|
|
277
|
-
declare export {
|
|
278
|
-
Calendar,
|
|
279
|
-
CalendarChips,
|
|
280
|
-
CalendarGrid,
|
|
281
|
-
CalendarHeader,
|
|
282
|
-
DualCalendar,
|
|
283
|
-
formatDate,
|
|
284
|
-
getMonthInLocale,
|
|
285
|
-
};
|
package/web/index.js.flow
DELETED
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for index
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.21.0
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as react from "react";
|
|
9
|
-
import react__default, { Node } from "react";
|
|
10
|
-
import * as locales from "date-fns/locale";
|
|
11
|
-
declare type CalendarLocaleType = $Keys<typeof locales>;
|
|
12
|
-
declare interface CalendarChipOption {
|
|
13
|
-
label: string;
|
|
14
|
-
value: string;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Number of days the chip represents as a range from today.
|
|
18
|
-
* 0 = today only, 7 = last 7 days, 30 = last 30 days, etc.
|
|
19
|
-
*/
|
|
20
|
-
days?: number;
|
|
21
|
-
}
|
|
22
|
-
declare interface CalendarChipsProps {
|
|
23
|
-
/**
|
|
24
|
-
* Array of chip options to display.
|
|
25
|
-
*/
|
|
26
|
-
chips: CalendarChipOption[];
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The currently active chip value.
|
|
30
|
-
*/
|
|
31
|
-
activeChip?: string | null;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Callback fired when a chip is selected.
|
|
35
|
-
*/
|
|
36
|
-
onChipSelect?: (value: string) => void;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Test ID for testing frameworks
|
|
40
|
-
*/
|
|
41
|
-
testID?: string;
|
|
42
|
-
}
|
|
43
|
-
declare interface CalendarGridProps {
|
|
44
|
-
currentMonth: Date;
|
|
45
|
-
locale?: CalendarLocaleType;
|
|
46
|
-
firstDayOfWeek?: number;
|
|
47
|
-
selectsRange?: boolean;
|
|
48
|
-
minDate?: Date | null;
|
|
49
|
-
maxDate?: Date | null;
|
|
50
|
-
startDate?: Date | null;
|
|
51
|
-
endDate?: Date | null;
|
|
52
|
-
selectedDate?: Date | null;
|
|
53
|
-
selectingRange?: Date | null;
|
|
54
|
-
onDayPress?: (date: Date) => void;
|
|
55
|
-
testID?: string;
|
|
56
|
-
}
|
|
57
|
-
declare interface CalendarHeaderProps {
|
|
58
|
-
monthDate: Date;
|
|
59
|
-
decreaseMonth: () => void;
|
|
60
|
-
increaseMonth: () => void;
|
|
61
|
-
changeYear: (year: number) => void;
|
|
62
|
-
changeMonth: (month: number) => void;
|
|
63
|
-
prevMonthButtonDisabled?: boolean;
|
|
64
|
-
nextMonthButtonDisabled?: boolean;
|
|
65
|
-
locale: CalendarLocaleType;
|
|
66
|
-
minDate?: Date | null;
|
|
67
|
-
maxDate?: Date | null;
|
|
68
|
-
contextMenuMaxHeight?: number;
|
|
69
|
-
}
|
|
70
|
-
declare interface CalendarProps {
|
|
71
|
-
locale?: CalendarLocaleType;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* The day to use as first day of the week, starting from 0 (Sunday) to 6 (Saturday).
|
|
75
|
-
*/
|
|
76
|
-
firstDayOfWeek?: number;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* The month to display in the calendar at first render.
|
|
80
|
-
*/
|
|
81
|
-
initialMonth?: Date;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* The month to display in the calendar.
|
|
85
|
-
*/
|
|
86
|
-
month?: Date;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Select in range mode for calendar
|
|
90
|
-
*/
|
|
91
|
-
selectsRange?: boolean;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* The minimum selectable date
|
|
95
|
-
*/
|
|
96
|
-
minDate?: Date | null;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* The maximum selectable date
|
|
100
|
-
*/
|
|
101
|
-
maxDate?: Date | null;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* For range mode. Start date in selected period
|
|
105
|
-
*/
|
|
106
|
-
startDate?: Date | null;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* For range mode. End date in selected period
|
|
110
|
-
*/
|
|
111
|
-
endDate?: Date | null;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* The selected date
|
|
115
|
-
*/
|
|
116
|
-
selectedDate?: Date | null;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Property sets the maximum height of a context menus for selecting month and year.
|
|
120
|
-
*/
|
|
121
|
-
contextMenuMaxHeight?: number;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Returns custom content to display above the calendar's date picker.
|
|
125
|
-
*/
|
|
126
|
-
topContent?: (datePicker: {
|
|
127
|
-
close: () => void,
|
|
128
|
-
...
|
|
129
|
-
}) => Node;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Returns custom content to display beneath the calendar's date picker.
|
|
133
|
-
*/
|
|
134
|
-
bottomContent?: (datePicker: {
|
|
135
|
-
close: () => void,
|
|
136
|
-
...
|
|
137
|
-
}) => Node;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Preset chip options displayed above the calendar header.
|
|
141
|
-
*/
|
|
142
|
-
chips?: CalendarChipOption[];
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* The currently active chip value.
|
|
146
|
-
*/
|
|
147
|
-
activeChip?: string | null;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Callback fired when a chip is selected.
|
|
151
|
-
*/
|
|
152
|
-
onChipSelect?: (value: string) => void;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Test ID for testing frameworks
|
|
156
|
-
*/
|
|
157
|
-
testID?: string;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Callback fired when the date changes
|
|
161
|
-
*/
|
|
162
|
-
onChange?: (date: Date | [Date | null, Date | null]) => void;
|
|
163
|
-
}
|
|
164
|
-
declare interface DualCalendarProps {
|
|
165
|
-
locale?: CalendarLocaleType;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* The day to use as first day of the week, starting from 0 (Sunday) to 6 (Saturday).
|
|
169
|
-
*/
|
|
170
|
-
firstDayOfWeek?: number;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* The month to display in the left calendar at first render.
|
|
174
|
-
*/
|
|
175
|
-
initialMonth?: Date;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* The month to display in the left calendar (controlled).
|
|
179
|
-
*/
|
|
180
|
-
month?: Date;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* The minimum selectable date
|
|
184
|
-
*/
|
|
185
|
-
minDate?: Date | null;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* The maximum selectable date
|
|
189
|
-
*/
|
|
190
|
-
maxDate?: Date | null;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Start date of the selected range
|
|
194
|
-
*/
|
|
195
|
-
startDate?: Date | null;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* End date of the selected range
|
|
199
|
-
*/
|
|
200
|
-
endDate?: Date | null;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* Property sets the maximum height of a context menus for selecting month and year.
|
|
204
|
-
*/
|
|
205
|
-
contextMenuMaxHeight?: number;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Returns custom content to display above the calendars.
|
|
209
|
-
*/
|
|
210
|
-
topContent?: (datePicker: {
|
|
211
|
-
close: () => void,
|
|
212
|
-
...
|
|
213
|
-
}) => Node;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Returns custom content to display beneath the calendars.
|
|
217
|
-
*/
|
|
218
|
-
bottomContent?: (datePicker: {
|
|
219
|
-
close: () => void,
|
|
220
|
-
...
|
|
221
|
-
}) => Node;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Preset chip options displayed above the calendar headers.
|
|
225
|
-
*/
|
|
226
|
-
chips?: CalendarChipOption[];
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* The currently active chip value.
|
|
230
|
-
*/
|
|
231
|
-
activeChip?: string | null;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Callback fired when a chip is selected.
|
|
235
|
-
*/
|
|
236
|
-
onChipSelect?: (value: string) => void;
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Test ID for testing frameworks
|
|
240
|
-
*/
|
|
241
|
-
testID?: string;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Callback fired when the date range changes.
|
|
245
|
-
*/
|
|
246
|
-
onChange?: (dates: [Date | null, Date | null]) => void;
|
|
247
|
-
}
|
|
248
|
-
declare var Calendar: react.ForwardRefExoticComponent<{
|
|
249
|
-
...CalendarProps,
|
|
250
|
-
...react.RefAttributes<any>,
|
|
251
|
-
}>;
|
|
252
|
-
declare var DualCalendar: react.ForwardRefExoticComponent<{
|
|
253
|
-
...DualCalendarProps,
|
|
254
|
-
...react.RefAttributes<any>,
|
|
255
|
-
}>;
|
|
256
|
-
declare var CalendarHeader: react__default.FC<CalendarHeaderProps>;
|
|
257
|
-
declare var CalendarGrid: react__default.FC<CalendarGridProps>;
|
|
258
|
-
declare var CalendarChips: react__default.FC<CalendarChipsProps>;
|
|
259
|
-
declare function formatDate(
|
|
260
|
-
date: Date,
|
|
261
|
-
formatStr: string,
|
|
262
|
-
locale?: CalendarLocaleType
|
|
263
|
-
): string;
|
|
264
|
-
declare function getMonthInLocale(
|
|
265
|
-
month: number,
|
|
266
|
-
locale?: CalendarLocaleType
|
|
267
|
-
): string;
|
|
268
|
-
export type {
|
|
269
|
-
CalendarChipOption,
|
|
270
|
-
CalendarChipsProps,
|
|
271
|
-
CalendarGridProps,
|
|
272
|
-
CalendarHeaderProps,
|
|
273
|
-
CalendarLocaleType,
|
|
274
|
-
CalendarProps,
|
|
275
|
-
DualCalendarProps,
|
|
276
|
-
};
|
|
277
|
-
declare export {
|
|
278
|
-
Calendar,
|
|
279
|
-
CalendarChips,
|
|
280
|
-
CalendarGrid,
|
|
281
|
-
CalendarHeader,
|
|
282
|
-
DualCalendar,
|
|
283
|
-
formatDate,
|
|
284
|
-
getMonthInLocale,
|
|
285
|
-
};
|