@react-spectrum/calendar 3.3.1 → 3.4.1
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/dist/import.mjs +118 -94
- package/dist/main.css +1 -1
- package/dist/main.js +118 -94
- package/dist/main.js.map +1 -1
- package/dist/module.js +118 -94
- package/dist/module.js.map +1 -1
- package/package.json +17 -17
- package/src/CalendarBase.tsx +2 -2
package/dist/main.js
CHANGED
|
@@ -83,98 +83,122 @@ $parcel$export(module.exports, "RangeCalendar", () => $4d045066f2092e3b$export$a
|
|
|
83
83
|
|
|
84
84
|
var $915891ae6206caad$exports = {};
|
|
85
85
|
|
|
86
|
+
$parcel$export($915891ae6206caad$exports, "focus-ring", () => $915891ae6206caad$export$f39a09f249340e2a, (v) => $915891ae6206caad$export$f39a09f249340e2a = v);
|
|
87
|
+
$parcel$export($915891ae6206caad$exports, "i18nFontFamily", () => $915891ae6206caad$export$8c4ee2c50c22c514, (v) => $915891ae6206caad$export$8c4ee2c50c22c514 = v);
|
|
88
|
+
$parcel$export($915891ae6206caad$exports, "is-disabled", () => $915891ae6206caad$export$d35bc1e505d1ebbf, (v) => $915891ae6206caad$export$d35bc1e505d1ebbf = v);
|
|
89
|
+
$parcel$export($915891ae6206caad$exports, "is-focused", () => $915891ae6206caad$export$e7dc768d35940237, (v) => $915891ae6206caad$export$e7dc768d35940237 = v);
|
|
90
|
+
$parcel$export($915891ae6206caad$exports, "is-hovered", () => $915891ae6206caad$export$b8813cd5d7824ce7, (v) => $915891ae6206caad$export$b8813cd5d7824ce7 = v);
|
|
91
|
+
$parcel$export($915891ae6206caad$exports, "is-invalid", () => $915891ae6206caad$export$14a30de2866685fa, (v) => $915891ae6206caad$export$14a30de2866685fa = v);
|
|
92
|
+
$parcel$export($915891ae6206caad$exports, "is-outsideMonth", () => $915891ae6206caad$export$93ff5b06817b3d41, (v) => $915891ae6206caad$export$93ff5b06817b3d41 = v);
|
|
93
|
+
$parcel$export($915891ae6206caad$exports, "is-pressed", () => $915891ae6206caad$export$15b73a232798b8d3, (v) => $915891ae6206caad$export$15b73a232798b8d3 = v);
|
|
94
|
+
$parcel$export($915891ae6206caad$exports, "is-range-end", () => $915891ae6206caad$export$52890a3cb1ab46b, (v) => $915891ae6206caad$export$52890a3cb1ab46b = v);
|
|
95
|
+
$parcel$export($915891ae6206caad$exports, "is-range-selection", () => $915891ae6206caad$export$cd2839d8bb0c6407, (v) => $915891ae6206caad$export$cd2839d8bb0c6407 = v);
|
|
96
|
+
$parcel$export($915891ae6206caad$exports, "is-range-start", () => $915891ae6206caad$export$4ce7d3d24e42e411, (v) => $915891ae6206caad$export$4ce7d3d24e42e411 = v);
|
|
97
|
+
$parcel$export($915891ae6206caad$exports, "is-selected", () => $915891ae6206caad$export$1e0fb04f31d3c22a, (v) => $915891ae6206caad$export$1e0fb04f31d3c22a = v);
|
|
98
|
+
$parcel$export($915891ae6206caad$exports, "is-selection-end", () => $915891ae6206caad$export$50722ae5663230f9, (v) => $915891ae6206caad$export$50722ae5663230f9 = v);
|
|
99
|
+
$parcel$export($915891ae6206caad$exports, "is-selection-start", () => $915891ae6206caad$export$f0091c9d6b8c19d3, (v) => $915891ae6206caad$export$f0091c9d6b8c19d3 = v);
|
|
100
|
+
$parcel$export($915891ae6206caad$exports, "is-today", () => $915891ae6206caad$export$189f6cc7eaf68d8b, (v) => $915891ae6206caad$export$189f6cc7eaf68d8b = v);
|
|
101
|
+
$parcel$export($915891ae6206caad$exports, "is-unavailable", () => $915891ae6206caad$export$38b08f1df825800e, (v) => $915891ae6206caad$export$38b08f1df825800e = v);
|
|
102
|
+
$parcel$export($915891ae6206caad$exports, "next", () => $915891ae6206caad$export$48cfd1e771a65c4f, (v) => $915891ae6206caad$export$48cfd1e771a65c4f = v);
|
|
103
|
+
$parcel$export($915891ae6206caad$exports, "prev", () => $915891ae6206caad$export$232faf9add678146, (v) => $915891ae6206caad$export$232faf9add678146 = v);
|
|
86
104
|
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar", () => $915891ae6206caad$export$2d9837ea36f7a875, (v) => $915891ae6206caad$export$2d9837ea36f7a875 = v);
|
|
87
105
|
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar--padded", () => $915891ae6206caad$export$8d90e3a3d21fe428, (v) => $915891ae6206caad$export$8d90e3a3d21fe428 = v);
|
|
106
|
+
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-body", () => $915891ae6206caad$export$33407a73687c0e62, (v) => $915891ae6206caad$export$33407a73687c0e62 = v);
|
|
107
|
+
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-date", () => $915891ae6206caad$export$c20fe43d14f8fa36, (v) => $915891ae6206caad$export$c20fe43d14f8fa36 = v);
|
|
108
|
+
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-dateText", () => $915891ae6206caad$export$cc48a6e73fdb7719, (v) => $915891ae6206caad$export$cc48a6e73fdb7719 = v);
|
|
109
|
+
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-dayOfWeek", () => $915891ae6206caad$export$7ff21fe81b21fa51, (v) => $915891ae6206caad$export$7ff21fe81b21fa51 = v);
|
|
88
110
|
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-header", () => $915891ae6206caad$export$7efb9b56af6e2d09, (v) => $915891ae6206caad$export$7efb9b56af6e2d09 = v);
|
|
89
111
|
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-monthHeader", () => $915891ae6206caad$export$185018e73e57145f, (v) => $915891ae6206caad$export$185018e73e57145f = v);
|
|
90
|
-
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-title", () => $915891ae6206caad$export$98ee27555a2b7c01, (v) => $915891ae6206caad$export$98ee27555a2b7c01 = v);
|
|
91
|
-
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-prevMonth", () => $915891ae6206caad$export$d4c1c2a202a50db2, (v) => $915891ae6206caad$export$d4c1c2a202a50db2 = v);
|
|
92
|
-
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-nextMonth", () => $915891ae6206caad$export$7876229ab722b448, (v) => $915891ae6206caad$export$7876229ab722b448 = v);
|
|
93
112
|
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-months", () => $915891ae6206caad$export$5dacd232bfef6687, (v) => $915891ae6206caad$export$5dacd232bfef6687 = v);
|
|
94
|
-
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-
|
|
95
|
-
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-
|
|
113
|
+
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-nextMonth", () => $915891ae6206caad$export$7876229ab722b448, (v) => $915891ae6206caad$export$7876229ab722b448 = v);
|
|
114
|
+
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-prevMonth", () => $915891ae6206caad$export$d4c1c2a202a50db2, (v) => $915891ae6206caad$export$d4c1c2a202a50db2 = v);
|
|
96
115
|
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-table", () => $915891ae6206caad$export$27f4c38933cceedf, (v) => $915891ae6206caad$export$27f4c38933cceedf = v);
|
|
97
116
|
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-tableCell", () => $915891ae6206caad$export$292b81cfd590634d, (v) => $915891ae6206caad$export$292b81cfd590634d = v);
|
|
98
|
-
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-
|
|
99
|
-
$parcel$export($915891ae6206caad$exports, "spectrum-
|
|
100
|
-
$parcel$export($915891ae6206caad$exports, "
|
|
101
|
-
$parcel$export($915891ae6206caad$exports, "
|
|
102
|
-
$parcel$export($915891ae6206caad$exports, "
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
117
|
+
$parcel$export($915891ae6206caad$exports, "spectrum-Calendar-title", () => $915891ae6206caad$export$98ee27555a2b7c01, (v) => $915891ae6206caad$export$98ee27555a2b7c01 = v);
|
|
118
|
+
$parcel$export($915891ae6206caad$exports, "spectrum-FocusRing-ring", () => $915891ae6206caad$export$4109102f950813a6, (v) => $915891ae6206caad$export$4109102f950813a6 = v);
|
|
119
|
+
$parcel$export($915891ae6206caad$exports, "spectrum-FocusRing", () => $915891ae6206caad$export$24c7f46a6e3605dd, (v) => $915891ae6206caad$export$24c7f46a6e3605dd = v);
|
|
120
|
+
$parcel$export($915891ae6206caad$exports, "spectrum-FocusRing--quiet", () => $915891ae6206caad$export$2927016961429360, (v) => $915891ae6206caad$export$2927016961429360 = v);
|
|
121
|
+
$parcel$export($915891ae6206caad$exports, "title", () => $915891ae6206caad$export$fb184b623420d9be, (v) => $915891ae6206caad$export$fb184b623420d9be = v);
|
|
122
|
+
var $915891ae6206caad$export$f39a09f249340e2a;
|
|
123
|
+
var $915891ae6206caad$export$8c4ee2c50c22c514;
|
|
124
|
+
var $915891ae6206caad$export$d35bc1e505d1ebbf;
|
|
125
|
+
var $915891ae6206caad$export$e7dc768d35940237;
|
|
126
|
+
var $915891ae6206caad$export$b8813cd5d7824ce7;
|
|
127
|
+
var $915891ae6206caad$export$14a30de2866685fa;
|
|
128
|
+
var $915891ae6206caad$export$93ff5b06817b3d41;
|
|
129
|
+
var $915891ae6206caad$export$15b73a232798b8d3;
|
|
130
|
+
var $915891ae6206caad$export$52890a3cb1ab46b;
|
|
131
|
+
var $915891ae6206caad$export$cd2839d8bb0c6407;
|
|
132
|
+
var $915891ae6206caad$export$4ce7d3d24e42e411;
|
|
133
|
+
var $915891ae6206caad$export$1e0fb04f31d3c22a;
|
|
134
|
+
var $915891ae6206caad$export$50722ae5663230f9;
|
|
135
|
+
var $915891ae6206caad$export$f0091c9d6b8c19d3;
|
|
136
|
+
var $915891ae6206caad$export$189f6cc7eaf68d8b;
|
|
137
|
+
var $915891ae6206caad$export$38b08f1df825800e;
|
|
138
|
+
var $915891ae6206caad$export$48cfd1e771a65c4f;
|
|
139
|
+
var $915891ae6206caad$export$232faf9add678146;
|
|
114
140
|
var $915891ae6206caad$export$2d9837ea36f7a875;
|
|
115
141
|
var $915891ae6206caad$export$8d90e3a3d21fe428;
|
|
142
|
+
var $915891ae6206caad$export$33407a73687c0e62;
|
|
143
|
+
var $915891ae6206caad$export$c20fe43d14f8fa36;
|
|
144
|
+
var $915891ae6206caad$export$cc48a6e73fdb7719;
|
|
145
|
+
var $915891ae6206caad$export$7ff21fe81b21fa51;
|
|
116
146
|
var $915891ae6206caad$export$7efb9b56af6e2d09;
|
|
117
147
|
var $915891ae6206caad$export$185018e73e57145f;
|
|
118
|
-
var $915891ae6206caad$export$98ee27555a2b7c01;
|
|
119
|
-
var $915891ae6206caad$export$d4c1c2a202a50db2;
|
|
120
|
-
var $915891ae6206caad$export$7876229ab722b448;
|
|
121
148
|
var $915891ae6206caad$export$5dacd232bfef6687;
|
|
122
|
-
var $915891ae6206caad$export$
|
|
123
|
-
var $915891ae6206caad$export$
|
|
149
|
+
var $915891ae6206caad$export$7876229ab722b448;
|
|
150
|
+
var $915891ae6206caad$export$d4c1c2a202a50db2;
|
|
124
151
|
var $915891ae6206caad$export$27f4c38933cceedf;
|
|
125
152
|
var $915891ae6206caad$export$292b81cfd590634d;
|
|
126
|
-
var $915891ae6206caad$export$
|
|
127
|
-
var $915891ae6206caad$export$
|
|
128
|
-
var $915891ae6206caad$export$
|
|
129
|
-
var $915891ae6206caad$export$
|
|
130
|
-
var $915891ae6206caad$export$
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
$915891ae6206caad$export$
|
|
143
|
-
$915891ae6206caad$export$
|
|
144
|
-
$915891ae6206caad$export$
|
|
145
|
-
$915891ae6206caad$export$
|
|
146
|
-
$915891ae6206caad$export$
|
|
147
|
-
$915891ae6206caad$export$
|
|
148
|
-
$915891ae6206caad$export$
|
|
149
|
-
$915891ae6206caad$export$
|
|
150
|
-
$915891ae6206caad$export$
|
|
151
|
-
$915891ae6206caad$export$33407a73687c0e62 =
|
|
152
|
-
$915891ae6206caad$export$
|
|
153
|
-
$915891ae6206caad$export$
|
|
154
|
-
$915891ae6206caad$export$
|
|
155
|
-
$915891ae6206caad$export$
|
|
156
|
-
$915891ae6206caad$export$
|
|
157
|
-
$915891ae6206caad$export$
|
|
158
|
-
$915891ae6206caad$export$
|
|
159
|
-
$915891ae6206caad$export$
|
|
160
|
-
$915891ae6206caad$export$
|
|
161
|
-
$915891ae6206caad$export$
|
|
162
|
-
$915891ae6206caad$export$
|
|
163
|
-
$915891ae6206caad$export$
|
|
164
|
-
$915891ae6206caad$export$
|
|
165
|
-
$915891ae6206caad$export$
|
|
166
|
-
$915891ae6206caad$export$
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
function $52c7c3c887827b64$export$5d847498420df57b({ state: state , currentMonth: currentMonth , ...props }) {
|
|
153
|
+
var $915891ae6206caad$export$98ee27555a2b7c01;
|
|
154
|
+
var $915891ae6206caad$export$4109102f950813a6;
|
|
155
|
+
var $915891ae6206caad$export$24c7f46a6e3605dd;
|
|
156
|
+
var $915891ae6206caad$export$2927016961429360;
|
|
157
|
+
var $915891ae6206caad$export$fb184b623420d9be;
|
|
158
|
+
$915891ae6206caad$export$f39a09f249340e2a = `EuwYBq_focus-ring`;
|
|
159
|
+
$915891ae6206caad$export$8c4ee2c50c22c514 = `EuwYBq_i18nFontFamily`;
|
|
160
|
+
$915891ae6206caad$export$d35bc1e505d1ebbf = `EuwYBq_is-disabled`;
|
|
161
|
+
$915891ae6206caad$export$e7dc768d35940237 = `EuwYBq_is-focused`;
|
|
162
|
+
$915891ae6206caad$export$b8813cd5d7824ce7 = `EuwYBq_is-hovered`;
|
|
163
|
+
$915891ae6206caad$export$14a30de2866685fa = `EuwYBq_is-invalid`;
|
|
164
|
+
$915891ae6206caad$export$93ff5b06817b3d41 = `EuwYBq_is-outsideMonth`;
|
|
165
|
+
$915891ae6206caad$export$15b73a232798b8d3 = `EuwYBq_is-pressed`;
|
|
166
|
+
$915891ae6206caad$export$52890a3cb1ab46b = `EuwYBq_is-range-end`;
|
|
167
|
+
$915891ae6206caad$export$cd2839d8bb0c6407 = `EuwYBq_is-range-selection`;
|
|
168
|
+
$915891ae6206caad$export$4ce7d3d24e42e411 = `EuwYBq_is-range-start`;
|
|
169
|
+
$915891ae6206caad$export$1e0fb04f31d3c22a = `EuwYBq_is-selected`;
|
|
170
|
+
$915891ae6206caad$export$50722ae5663230f9 = `EuwYBq_is-selection-end`;
|
|
171
|
+
$915891ae6206caad$export$f0091c9d6b8c19d3 = `EuwYBq_is-selection-start`;
|
|
172
|
+
$915891ae6206caad$export$189f6cc7eaf68d8b = `EuwYBq_is-today`;
|
|
173
|
+
$915891ae6206caad$export$38b08f1df825800e = `EuwYBq_is-unavailable`;
|
|
174
|
+
$915891ae6206caad$export$48cfd1e771a65c4f = `EuwYBq_next`;
|
|
175
|
+
$915891ae6206caad$export$232faf9add678146 = `EuwYBq_prev`;
|
|
176
|
+
$915891ae6206caad$export$2d9837ea36f7a875 = `EuwYBq_spectrum-Calendar`;
|
|
177
|
+
$915891ae6206caad$export$8d90e3a3d21fe428 = `EuwYBq_spectrum-Calendar--padded`;
|
|
178
|
+
$915891ae6206caad$export$33407a73687c0e62 = `EuwYBq_spectrum-Calendar-body`;
|
|
179
|
+
$915891ae6206caad$export$c20fe43d14f8fa36 = `EuwYBq_spectrum-Calendar-date`;
|
|
180
|
+
$915891ae6206caad$export$cc48a6e73fdb7719 = `EuwYBq_spectrum-Calendar-dateText`;
|
|
181
|
+
$915891ae6206caad$export$7ff21fe81b21fa51 = `EuwYBq_spectrum-Calendar-dayOfWeek`;
|
|
182
|
+
$915891ae6206caad$export$7efb9b56af6e2d09 = `EuwYBq_spectrum-Calendar-header`;
|
|
183
|
+
$915891ae6206caad$export$185018e73e57145f = `EuwYBq_spectrum-Calendar-monthHeader`;
|
|
184
|
+
$915891ae6206caad$export$5dacd232bfef6687 = `EuwYBq_spectrum-Calendar-months`;
|
|
185
|
+
$915891ae6206caad$export$7876229ab722b448 = `EuwYBq_spectrum-Calendar-nextMonth`;
|
|
186
|
+
$915891ae6206caad$export$d4c1c2a202a50db2 = `EuwYBq_spectrum-Calendar-prevMonth`;
|
|
187
|
+
$915891ae6206caad$export$27f4c38933cceedf = `EuwYBq_spectrum-Calendar-table`;
|
|
188
|
+
$915891ae6206caad$export$292b81cfd590634d = `EuwYBq_spectrum-Calendar-tableCell`;
|
|
189
|
+
$915891ae6206caad$export$98ee27555a2b7c01 = `EuwYBq_spectrum-Calendar-title`;
|
|
190
|
+
$915891ae6206caad$export$4109102f950813a6 = `EuwYBq_spectrum-FocusRing-ring`;
|
|
191
|
+
$915891ae6206caad$export$24c7f46a6e3605dd = `EuwYBq_spectrum-FocusRing ${$915891ae6206caad$export$4109102f950813a6}`;
|
|
192
|
+
$915891ae6206caad$export$2927016961429360 = `EuwYBq_spectrum-FocusRing--quiet`;
|
|
193
|
+
$915891ae6206caad$export$fb184b623420d9be = `EuwYBq_title`;
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
function $52c7c3c887827b64$export$5d847498420df57b({ state: state, currentMonth: currentMonth, ...props }) {
|
|
176
200
|
let ref = (0, $4BAFd$react.useRef)();
|
|
177
|
-
let { cellProps: cellProps
|
|
201
|
+
let { cellProps: cellProps, buttonProps: buttonProps, isPressed: isPressed, isSelected: isSelected, isDisabled: isDisabled, isFocused: isFocused, isInvalid: isInvalid, formattedDate: formattedDate } = (0, $4BAFd$reactariacalendar.useCalendarCell)({
|
|
178
202
|
...props,
|
|
179
203
|
isDisabled: !(0, $4BAFd$internationalizeddate.isSameMonth)(props.date, currentMonth)
|
|
180
204
|
}, state, ref);
|
|
@@ -188,12 +212,12 @@ function $52c7c3c887827b64$export$5d847498420df57b({ state: state , currentMonth
|
|
|
188
212
|
let highlightedRange = "highlightedRange" in state && state.highlightedRange;
|
|
189
213
|
let isSelectionStart = isSelected && highlightedRange && (0, $4BAFd$internationalizeddate.isSameDay)(props.date, highlightedRange.start);
|
|
190
214
|
let isSelectionEnd = isSelected && highlightedRange && (0, $4BAFd$internationalizeddate.isSameDay)(props.date, highlightedRange.end);
|
|
191
|
-
let { locale: locale
|
|
215
|
+
let { locale: locale } = (0, $4BAFd$reactariai18n.useLocale)();
|
|
192
216
|
let dayOfWeek = (0, $4BAFd$internationalizeddate.getDayOfWeek)(props.date, locale);
|
|
193
217
|
let isRangeStart = isSelected && (isFirstSelectedAfterDisabled || dayOfWeek === 0 || props.date.day === 1);
|
|
194
218
|
let isRangeEnd = isSelected && (isLastSelectedBeforeDisabled || dayOfWeek === 6 || props.date.day === currentMonth.calendar.getDaysInMonth(currentMonth));
|
|
195
|
-
let { focusProps: focusProps
|
|
196
|
-
let { hoverProps: hoverProps
|
|
219
|
+
let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $4BAFd$reactariafocus.useFocusRing)();
|
|
220
|
+
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $4BAFd$reactariainteractions.useHover)({
|
|
197
221
|
isDisabled: isDisabled || isUnavailable || state.isReadOnly
|
|
198
222
|
});
|
|
199
223
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($4BAFd$react))).createElement("td", {
|
|
@@ -233,12 +257,12 @@ function $52c7c3c887827b64$export$5d847498420df57b({ state: state , currentMonth
|
|
|
233
257
|
|
|
234
258
|
|
|
235
259
|
function $02c19eea15a72a7b$export$26e2752316b9a375(props) {
|
|
236
|
-
let { state: state
|
|
237
|
-
let { gridProps: gridProps
|
|
260
|
+
let { state: state, startDate: startDate } = props;
|
|
261
|
+
let { gridProps: gridProps, headerProps: headerProps, weekDays: weekDays } = (0, $4BAFd$reactariacalendar.useCalendarGrid)({
|
|
238
262
|
...props,
|
|
239
263
|
endDate: (0, $4BAFd$internationalizeddate.endOfMonth)(startDate)
|
|
240
264
|
}, state);
|
|
241
|
-
let { locale: locale
|
|
265
|
+
let { locale: locale } = (0, $4BAFd$reactariai18n.useLocale)();
|
|
242
266
|
let weeksInMonth = (0, $4BAFd$internationalizeddate.getWeeksInMonth)(startDate, locale);
|
|
243
267
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($4BAFd$react))).createElement("table", {
|
|
244
268
|
...gridProps,
|
|
@@ -617,10 +641,10 @@ $7e7c3b1f5233ce23$exports = {
|
|
|
617
641
|
|
|
618
642
|
|
|
619
643
|
function $6d416018158e3a26$export$bfd52a43017368fe(props) {
|
|
620
|
-
let { state: state
|
|
621
|
-
let { styleProps: styleProps
|
|
644
|
+
let { state: state, calendarProps: calendarProps, nextButtonProps: nextButtonProps, prevButtonProps: prevButtonProps, errorMessageProps: errorMessageProps, calendarRef: ref, visibleMonths: visibleMonths = 1 } = props;
|
|
645
|
+
let { styleProps: styleProps } = (0, $4BAFd$reactspectrumutils.useStyleProps)(props);
|
|
622
646
|
let stringFormatter = (0, $4BAFd$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($7e7c3b1f5233ce23$exports))));
|
|
623
|
-
let { direction: direction
|
|
647
|
+
let { direction: direction } = (0, $4BAFd$reactariai18n.useLocale)();
|
|
624
648
|
let currentMonth = state.visibleRange.start;
|
|
625
649
|
let monthDateFormatter = (0, $4BAFd$reactariai18n.useDateFormatter)({
|
|
626
650
|
month: "long",
|
|
@@ -674,13 +698,13 @@ function $6d416018158e3a26$export$bfd52a43017368fe(props) {
|
|
|
674
698
|
disabled: nextButtonProps.isDisabled,
|
|
675
699
|
onClick: ()=>state.focusNextPage(),
|
|
676
700
|
tabIndex: -1
|
|
677
|
-
})), state.
|
|
701
|
+
})), state.isValueInvalid && /*#__PURE__*/ (0, ($parcel$interopDefault($4BAFd$react))).createElement((0, $4BAFd$reactspectrumlabel.HelpText), {
|
|
678
702
|
showErrorIcon: true,
|
|
679
703
|
errorMessage: props.errorMessage || stringFormatter.format("invalidSelection", {
|
|
680
704
|
selectedCount: "highlightedRange" in state ? 2 : 1
|
|
681
705
|
}),
|
|
682
706
|
errorMessageProps: errorMessageProps,
|
|
683
|
-
|
|
707
|
+
isInvalid: true,
|
|
684
708
|
// Intentionally a global class name so it can be targeted in DatePicker CSS...
|
|
685
709
|
UNSAFE_className: "spectrum-Calendar-helpText"
|
|
686
710
|
}));
|
|
@@ -696,14 +720,14 @@ function $6d416018158e3a26$export$bfd52a43017368fe(props) {
|
|
|
696
720
|
|
|
697
721
|
function $d9490b77e8681e44$var$Calendar(props, ref) {
|
|
698
722
|
props = (0, $4BAFd$reactspectrumprovider.useProviderProps)(props);
|
|
699
|
-
let { visibleMonths: visibleMonths = 1
|
|
723
|
+
let { visibleMonths: visibleMonths = 1 } = props;
|
|
700
724
|
visibleMonths = Math.max(visibleMonths, 1);
|
|
701
725
|
let visibleDuration = (0, $4BAFd$react.useMemo)(()=>({
|
|
702
726
|
months: visibleMonths
|
|
703
727
|
}), [
|
|
704
728
|
visibleMonths
|
|
705
729
|
]);
|
|
706
|
-
let { locale: locale
|
|
730
|
+
let { locale: locale } = (0, $4BAFd$reactariai18n.useLocale)();
|
|
707
731
|
let state = (0, $4BAFd$reactstatelycalendar.useCalendarState)({
|
|
708
732
|
...props,
|
|
709
733
|
locale: locale,
|
|
@@ -717,7 +741,7 @@ function $d9490b77e8681e44$var$Calendar(props, ref) {
|
|
|
717
741
|
state.setFocused(true);
|
|
718
742
|
}
|
|
719
743
|
}));
|
|
720
|
-
let { calendarProps: calendarProps
|
|
744
|
+
let { calendarProps: calendarProps, prevButtonProps: prevButtonProps, nextButtonProps: nextButtonProps, errorMessageProps: errorMessageProps } = (0, $4BAFd$reactariacalendar.useCalendar)(props, state);
|
|
721
745
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($4BAFd$react))).createElement((0, $6d416018158e3a26$export$bfd52a43017368fe), {
|
|
722
746
|
...props,
|
|
723
747
|
visibleMonths: visibleMonths,
|
|
@@ -754,14 +778,14 @@ function $d9490b77e8681e44$var$Calendar(props, ref) {
|
|
|
754
778
|
|
|
755
779
|
function $4d045066f2092e3b$var$RangeCalendar(props, ref) {
|
|
756
780
|
props = (0, $4BAFd$reactspectrumprovider.useProviderProps)(props);
|
|
757
|
-
let { visibleMonths: visibleMonths = 1
|
|
781
|
+
let { visibleMonths: visibleMonths = 1 } = props;
|
|
758
782
|
visibleMonths = Math.max(visibleMonths, 1);
|
|
759
783
|
let visibleDuration = (0, $4BAFd$react.useMemo)(()=>({
|
|
760
784
|
months: visibleMonths
|
|
761
785
|
}), [
|
|
762
786
|
visibleMonths
|
|
763
787
|
]);
|
|
764
|
-
let { locale: locale
|
|
788
|
+
let { locale: locale } = (0, $4BAFd$reactariai18n.useLocale)();
|
|
765
789
|
let state = (0, $4BAFd$reactstatelycalendar.useRangeCalendarState)({
|
|
766
790
|
...props,
|
|
767
791
|
locale: locale,
|
|
@@ -775,7 +799,7 @@ function $4d045066f2092e3b$var$RangeCalendar(props, ref) {
|
|
|
775
799
|
state.setFocused(true);
|
|
776
800
|
}
|
|
777
801
|
}));
|
|
778
|
-
let { calendarProps: calendarProps
|
|
802
|
+
let { calendarProps: calendarProps, prevButtonProps: prevButtonProps, nextButtonProps: nextButtonProps, errorMessageProps: errorMessageProps } = (0, $4BAFd$reactariacalendar.useRangeCalendar)(props, state, domRef);
|
|
779
803
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($4BAFd$react))).createElement((0, $6d416018158e3a26$export$bfd52a43017368fe), {
|
|
780
804
|
...props,
|
|
781
805
|
visibleMonths: visibleMonths,
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;ACAA;;;;;;;;;;CAUC;ACVD;;;;;;;;;;ACAA;;;;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C,EAAE,GAA8B;IAC9G,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,iBAAC,gBAAgB,IAAE,GAAG;IAC1B,gBAAgB,KAAK,IAAI,eAAe;IACxC,IAAI,kBAAkB,CAAA,GAAA,oBAAM,EAAE,IAAO,CAAA;YAAC,QAAQ;QAAa,CAAA,GAAI;QAAC;KAAc;IAC9E,IAAI,UAAC,OAAM,EAAC,GAAG,CAAA,GAAA,8BAAQ;IACvB,IAAI,QAAQ,CAAA,GAAA,iDAAoB,EAAE;QAChC,GAAG,KAAK;gBACR;yBACA;wBACA;IACF;IAEA,IAAI,SAAS,CAAA,GAAA,mBAAK;IAClB,CAAA,GAAA,gCAAkB,EAAE,KAAK,IAAO,CAAA;YAC9B,GAAG,CAAA,GAAA,sCAAW,EAAE,OAAO;YACvB;gBACE,MAAM,WAAW;YACnB;QACF,CAAA;IAEA,IAAI,iBAAC,cAAa,mBAAE,gBAAe,mBAAE,gBAAe,qBAAE,kBAAiB,EAAC,GAAG,CAAA,GAAA,yCAAe,EAAE,OAAO,OAAO;IAE1G,qBACE,0DAAC,CAAA,GAAA,yCAAW;QACT,GAAG,KAAK;QACT,eAAe;QACf,OAAO;QACP,aAAa;QACb,eAAe;QACf,iBAAiB;QACjB,iBAAiB;QACjB,mBAAmB;;AAEzB;AAEA;;CAEC,GACD,MAAM,0DAAiB,CAAA,GAAA,sCAAI,EAAE,WAAW;;","sources":["packages/@react-spectrum/calendar/src/index.ts","packages/@react-spectrum/calendar/src/Calendar.tsx","packages/@react-spectrum/calendar/src/CalendarBase.tsx","packages/@react-spectrum/calendar/src/CalendarMonth.tsx","packages/@react-spectrum/calendar/src/CalendarCell.tsx","packages/@adobe/spectrum-css-temp/components/calendar/vars.css","packages/@react-spectrum/calendar/src/*.js","packages/@react-spectrum/calendar/intl/ar-AE.json","packages/@react-spectrum/calendar/intl/bg-BG.json","packages/@react-spectrum/calendar/intl/cs-CZ.json","packages/@react-spectrum/calendar/intl/da-DK.json","packages/@react-spectrum/calendar/intl/de-DE.json","packages/@react-spectrum/calendar/intl/el-GR.json","packages/@react-spectrum/calendar/intl/en-US.json","packages/@react-spectrum/calendar/intl/es-ES.json","packages/@react-spectrum/calendar/intl/et-EE.json","packages/@react-spectrum/calendar/intl/fi-FI.json","packages/@react-spectrum/calendar/intl/fr-FR.json","packages/@react-spectrum/calendar/intl/he-IL.json","packages/@react-spectrum/calendar/intl/hr-HR.json","packages/@react-spectrum/calendar/intl/hu-HU.json","packages/@react-spectrum/calendar/intl/it-IT.json","packages/@react-spectrum/calendar/intl/ja-JP.json","packages/@react-spectrum/calendar/intl/ko-KR.json","packages/@react-spectrum/calendar/intl/lt-LT.json","packages/@react-spectrum/calendar/intl/lv-LV.json","packages/@react-spectrum/calendar/intl/nb-NO.json","packages/@react-spectrum/calendar/intl/nl-NL.json","packages/@react-spectrum/calendar/intl/pl-PL.json","packages/@react-spectrum/calendar/intl/pt-BR.json","packages/@react-spectrum/calendar/intl/pt-PT.json","packages/@react-spectrum/calendar/intl/ro-RO.json","packages/@react-spectrum/calendar/intl/ru-RU.json","packages/@react-spectrum/calendar/intl/sk-SK.json","packages/@react-spectrum/calendar/intl/sl-SI.json","packages/@react-spectrum/calendar/intl/sr-SP.json","packages/@react-spectrum/calendar/intl/sv-SE.json","packages/@react-spectrum/calendar/intl/tr-TR.json","packages/@react-spectrum/calendar/intl/uk-UA.json","packages/@react-spectrum/calendar/intl/zh-CN.json","packages/@react-spectrum/calendar/intl/zh-TW.json","packages/@react-spectrum/calendar/src/RangeCalendar.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Calendar} from './Calendar';\nexport {RangeCalendar} from './RangeCalendar';\nexport type {SpectrumCalendarProps, SpectrumRangeCalendarProps} from '@react-types/calendar';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {CalendarBase} from './CalendarBase';\nimport {createCalendar} from '@internationalized/date';\nimport {createDOMRef} from '@react-spectrum/utils';\nimport {DateValue, SpectrumCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useCalendar} from '@react-aria/calendar';\nimport {useCalendarState} from '@react-stately/calendar';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction Calendar<T extends DateValue>(props: SpectrumCalendarProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n let {visibleMonths = 1} = props;\n visibleMonths = Math.max(visibleMonths, 1);\n let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);\n let {locale} = useLocale();\n let state = useCalendarState({\n ...props,\n locale,\n visibleDuration,\n createCalendar\n });\n\n let domRef = useRef();\n useImperativeHandle(ref, () => ({\n ...createDOMRef(domRef),\n focus() {\n state.setFocused(true);\n }\n }));\n\n let {calendarProps, prevButtonProps, nextButtonProps, errorMessageProps} = useCalendar(props, state);\n\n return (\n <CalendarBase\n {...props}\n visibleMonths={visibleMonths}\n state={state}\n calendarRef={domRef}\n calendarProps={calendarProps}\n prevButtonProps={prevButtonProps}\n nextButtonProps={nextButtonProps}\n errorMessageProps={errorMessageProps} />\n );\n}\n\n/**\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n */\nconst _Calendar = React.forwardRef(Calendar) as <T extends DateValue>(props: SpectrumCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_Calendar as Calendar};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ActionButton} from '@react-spectrum/button';\nimport {AriaButtonProps} from '@react-types/button';\nimport {CalendarMonth} from './CalendarMonth';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport ChevronLeft from '@spectrum-icons/ui/ChevronLeftLarge';\nimport ChevronRight from '@spectrum-icons/ui/ChevronRightLarge';\nimport {classNames, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport {HelpText} from '@react-spectrum/label';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {HTMLAttributes, RefObject} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useDateFormatter, useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {VisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface CalendarBaseProps<T extends CalendarState | RangeCalendarState> extends CalendarPropsBase, DOMProps, StyleProps {\n state: T,\n visibleMonths?: number,\n calendarProps: HTMLAttributes<HTMLElement>,\n nextButtonProps: AriaButtonProps,\n prevButtonProps: AriaButtonProps,\n errorMessageProps: HTMLAttributes<HTMLElement>,\n calendarRef: RefObject<HTMLDivElement>\n}\n\nexport function CalendarBase<T extends CalendarState | RangeCalendarState>(props: CalendarBaseProps<T>) {\n let {\n state,\n calendarProps,\n nextButtonProps,\n prevButtonProps,\n errorMessageProps,\n calendarRef: ref,\n visibleMonths = 1\n } = props;\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {direction} = useLocale();\n let currentMonth = state.visibleRange.start;\n let monthDateFormatter = useDateFormatter({\n month: 'long',\n year: 'numeric',\n era: currentMonth.calendar.identifier === 'gregory' && currentMonth.era === 'BC' ? 'short' : undefined,\n calendar: currentMonth.calendar.identifier,\n timeZone: state.timeZone\n });\n\n let titles = [];\n let calendars = [];\n for (let i = 0; i < visibleMonths; i++) {\n let d = currentMonth.add({months: i});\n titles.push(\n <div key={i} className={classNames(styles, 'spectrum-Calendar-monthHeader')}>\n {i === 0 &&\n <ActionButton\n {...prevButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-prevMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronRight /> : <ChevronLeft />}\n </ActionButton>\n }\n <h2\n // We have a visually hidden heading describing the entire visible range,\n // and the calendar itself describes the individual month\n // so we don't need to repeat that here for screen reader users.\n aria-hidden\n className={classNames(styles, 'spectrum-Calendar-title')}>\n {monthDateFormatter.format(d.toDate(state.timeZone))}\n </h2>\n {i === visibleMonths - 1 &&\n <ActionButton\n {...nextButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-nextMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronLeft /> : <ChevronRight />}\n </ActionButton>\n }\n </div>\n );\n\n calendars.push(\n <CalendarMonth\n {...props}\n key={i}\n state={state}\n startDate={d} />\n );\n }\n\n return (\n <div\n {...styleProps}\n {...calendarProps}\n ref={ref}\n className={\n classNames(styles,\n 'spectrum-Calendar',\n styleProps.className\n )\n }>\n {/* Add a screen reader only description of the entire visible range rather than\n * a separate heading above each month grid. This is placed first in the DOM order\n * so that it is the first thing a touch screen reader user encounters.\n * In addition, VoiceOver on iOS does not announce the aria-label of the grid\n * elements, so the aria-label of the Calendar is included here as well. */}\n <VisuallyHidden>\n <h2>{calendarProps['aria-label']}</h2>\n </VisuallyHidden>\n <div className={classNames(styles, 'spectrum-Calendar-header')}>\n {titles}\n </div>\n <div className={classNames(styles, 'spectrum-Calendar-months')}>\n {calendars}\n </div>\n {/* For touch screen readers, add a visually hidden next button after the month grid\n * so it's easy to navigate after reaching the end without going all the way\n * back to the start of the month. */}\n <VisuallyHidden>\n <button\n aria-label={nextButtonProps['aria-label']}\n disabled={nextButtonProps.isDisabled}\n onClick={() => state.focusNextPage()}\n tabIndex={-1} />\n </VisuallyHidden>\n {state.validationState === 'invalid' &&\n <HelpText\n showErrorIcon\n errorMessage={props.errorMessage || stringFormatter.format('invalidSelection', {selectedCount: 'highlightedRange' in state ? 2 : 1})}\n errorMessageProps={errorMessageProps}\n validationState=\"invalid\"\n // Intentionally a global class name so it can be targeted in DatePicker CSS...\n UNSAFE_className=\"spectrum-Calendar-helpText\" />\n }\n </div>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {CalendarCell} from './CalendarCell';\nimport {CalendarDate, endOfMonth, getWeeksInMonth} from '@internationalized/date';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport React from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useCalendarGrid} from '@react-aria/calendar';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface CalendarMonthProps extends CalendarPropsBase, DOMProps, StyleProps {\n state: CalendarState | RangeCalendarState,\n startDate: CalendarDate\n}\n\nexport function CalendarMonth(props: CalendarMonthProps) {\n let {\n state,\n startDate\n } = props;\n let {\n gridProps,\n headerProps,\n weekDays\n } = useCalendarGrid({\n ...props,\n endDate: endOfMonth(startDate)\n }, state);\n\n let {locale} = useLocale();\n let weeksInMonth = getWeeksInMonth(startDate, locale);\n\n return (\n <table\n {...gridProps}\n className={classNames(styles, 'spectrum-Calendar-body', 'spectrum-Calendar-table')}>\n <thead {...headerProps}>\n <tr>\n {weekDays.map((day, index) => (\n <th\n key={index}\n className={classNames(styles, 'spectrum-Calendar-tableCell')}>\n <span className={classNames(styles, 'spectrum-Calendar-dayOfWeek')}>\n {day}\n </span>\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {[...new Array(weeksInMonth).keys()].map(weekIndex => (\n <tr key={weekIndex}>\n {state.getDatesInWeek(weekIndex, startDate).map((date, i) => (\n date ? (\n <CalendarCell\n key={i}\n state={state}\n date={date}\n currentMonth={startDate} />\n ) : <td key={i} />\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaCalendarCellProps, useCalendarCell} from '@react-aria/calendar';\nimport {CalendarDate, getDayOfWeek, isSameDay, isSameMonth, isToday} from '@internationalized/date';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface CalendarCellProps extends AriaCalendarCellProps {\n state: CalendarState | RangeCalendarState,\n currentMonth: CalendarDate\n}\n\nexport function CalendarCell({state, currentMonth, ...props}: CalendarCellProps) {\n let ref = useRef<HTMLElement>();\n let {\n cellProps,\n buttonProps,\n isPressed,\n isSelected,\n isDisabled,\n isFocused,\n isInvalid,\n formattedDate\n } = useCalendarCell({\n ...props,\n isDisabled: !isSameMonth(props.date, currentMonth)\n }, state, ref);\n let isUnavailable = state.isCellUnavailable(props.date) && !isDisabled;\n let isLastSelectedBeforeDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.add({days: 1}));\n let isFirstSelectedAfterDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.subtract({days: 1}));\n let highlightedRange = 'highlightedRange' in state && state.highlightedRange;\n let isSelectionStart = isSelected && highlightedRange && isSameDay(props.date, highlightedRange.start);\n let isSelectionEnd = isSelected && highlightedRange && isSameDay(props.date, highlightedRange.end);\n let {locale} = useLocale();\n let dayOfWeek = getDayOfWeek(props.date, locale);\n let isRangeStart = isSelected && (isFirstSelectedAfterDisabled || dayOfWeek === 0 || props.date.day === 1);\n let isRangeEnd = isSelected && (isLastSelectedBeforeDisabled || dayOfWeek === 6 || props.date.day === currentMonth.calendar.getDaysInMonth(currentMonth));\n let {focusProps, isFocusVisible} = useFocusRing();\n let {hoverProps, isHovered} = useHover({isDisabled: isDisabled || isUnavailable || state.isReadOnly});\n\n return (\n <td\n {...cellProps}\n className={classNames(styles, 'spectrum-Calendar-tableCell')}>\n <span\n {...mergeProps(buttonProps, hoverProps, focusProps)}\n ref={ref}\n className={classNames(styles, 'spectrum-Calendar-date', {\n 'is-today': isToday(props.date, state.timeZone),\n 'is-selected': isSelected,\n 'is-focused': isFocused && isFocusVisible,\n // Style disabled (i.e. out of min/max range), but selected dates as unavailable\n // since it is more clear than trying to dim the selection.\n 'is-disabled': isDisabled && !isInvalid,\n 'is-unavailable': isUnavailable || (isInvalid && isDisabled),\n 'is-outsideMonth': !isSameMonth(props.date, currentMonth),\n 'is-range-start': isRangeStart,\n 'is-range-end': isRangeEnd,\n 'is-range-selection': isSelected && 'highlightedRange' in state,\n 'is-selection-start': isSelectionStart,\n 'is-selection-end': isSelectionEnd,\n 'is-hovered': isHovered,\n 'is-pressed': isPressed && !state.isReadOnly,\n 'is-invalid': isInvalid\n })}>\n <span className={classNames(styles, 'spectrum-Calendar-dateText')}>\n <span>{formattedDate}</span>\n </span>\n </span>\n </td>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"invalidSelection\": \"{selectedCount, plural, one {التاريخ} other {التواريخ}} المحدد/المحددة غير متوفرة.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Избраната дата не е налична} other {Избраните дати не са налични}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybrané datum není} other {Vybraná data nejsou}} k dispozici.\"\n}\n","{\n \"invalidSelection\": \"Valgte {selectedCount, plural, one {dato} other {datoer}} ikke ledige.\"\n}\n","{\n \"invalidSelection\": \"Ausgewählte(s) {selectedCount, plural, one {Datum} other {Daten}} nicht verfügbar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη} other {Οι επιλεγμένες ημερομηνίες δεν είναι διαθέσιμες}}.\"\n}\n","{\n \"invalidSelection\": \"Selected {selectedCount, plural, one {date} other {dates}} unavailable.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La fecha seleccionada no está disponible} other {Las fechas seleccionadas no están disponibles}}.\"\n}\n","{\n \"invalidSelection\": \"Valitud {selectedCount, plural, one {kuupäev} other {kuupäevad}} pole saadaval.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valittu päivämäärä ei ole} other {Valitut päivämäärät eivät ole}} saatavilla.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La date sélectionnée est indisponible} other {Les dates sélectionnées sont indisponibles}}.\"\n}\n","{\n \"invalidSelection\": \"נבחר {selectedCount, plural, one {תאריך} other {תאריכים}} אינו זמין.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Odabrani datum nije dostupan} other {Odabrani datumi nisu dostupni}}.\"\n}\n","{\n \"invalidSelection\": \"A kijelölt {selectedCount, plural, one {dátum nem érhető el} other {dátumok nem érhetőek el}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selezionata non disponibile} other {Date selezionate non disponibili}}.\"\n}\n","{\n \"invalidSelection\": \"選択した{selectedCount, plural, one {日付} other {日付}}は使用できません。\"\n}\n","{\n \"invalidSelection\": \"선택한 {selectedCount, plural, one {일자를} other {일자를}} 사용할 수 없습니다.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Datos} other {Datų}} pasirinkimas negalimas.\"\n}\n","{\n \"invalidSelection\": \"Atlasītais(-ie) {selectedCount, plural, one {date} other {dates}} nav pieejams(-i).\"\n}\n","{\n \"invalidSelection\": \"Valgt(e) {selectedCount, plural, one {dato} other {datoer}} er utilgjengelig.\"\n}\n","{\n \"invalidSelection\": \"Geselecteerde {selectedCount, plural, one {datum} other {datums}} niet beschikbaar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Wybrana data jest niedostępna} other {Wybrane daty są niedostępne}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data} other {Datas}} selecionada(s) indisponível(is).\"\n}\n","{\n \"invalidSelection\": \"A(s) {selectedCount, plural, one {data} other {datas}} selecionada(s) não está(ão) disponível/disponível(eis).\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selectată nu este disponibilă} other {Datele selectate nu sunt disponibile}}.\"\n}\n","{\n \"invalidSelection\": \"Выбранные {selectedCount, plural, one {дата} other {даты}} недоступны.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybratý dátum} other {Vybraté dátumy}}: nedostupné.\"\n}\n","{\n \"invalidSelection\": \"Izbrano {selectedCount, plural, one {date} other {dates}} ni na voljo.\"\n}\n","{\n \"invalidSelection\": \"Izabrani {selectedCount, plural, one {date} other {dates}} nije dostupan.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valt datum är inte tillgängligt.} other {Valda datum är inte tillgängliga.}}\"\n}\n","{\n \"invalidSelection\": \"Seçilen {selectedCount, plural, one {tarih} other {tarihler}} müsait değil.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Вибрана дата недоступна} other {Вибрані дати недоступні}}.\"\n}\n","{\n \"invalidSelection\": \"选定的 {selectedCount, plural, one {个日期} other {个日期}} 不可用。\"\n}\n","{\n \"invalidSelection\": \"所選的{selectedCount, plural, one {日期} other {日期}}無法使用。\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {CalendarBase} from './CalendarBase';\nimport {createCalendar} from '@internationalized/date';\nimport {createDOMRef} from '@react-spectrum/utils';\nimport {DateValue, SpectrumRangeCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRangeCalendar} from '@react-aria/calendar';\nimport {useRangeCalendarState} from '@react-stately/calendar';\n\nfunction RangeCalendar<T extends DateValue>(props: SpectrumRangeCalendarProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n let {visibleMonths = 1} = props;\n visibleMonths = Math.max(visibleMonths, 1);\n let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);\n let {locale} = useLocale();\n let state = useRangeCalendarState({\n ...props,\n locale,\n visibleDuration,\n createCalendar\n });\n\n let domRef = useRef();\n useImperativeHandle(ref, () => ({\n ...createDOMRef(domRef),\n focus() {\n state.setFocused(true);\n }\n }));\n\n let {calendarProps, prevButtonProps, nextButtonProps, errorMessageProps} = useRangeCalendar(props, state, domRef);\n\n return (\n <CalendarBase\n {...props}\n visibleMonths={visibleMonths}\n state={state}\n calendarRef={domRef}\n calendarProps={calendarProps}\n prevButtonProps={prevButtonProps}\n nextButtonProps={nextButtonProps}\n errorMessageProps={errorMessageProps} />\n );\n}\n\n/**\n * RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates.\n */\nconst _RangeCalendar = React.forwardRef(RangeCalendar) as <T extends DateValue>(props: SpectrumRangeCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_RangeCalendar as RangeCalendar};\n"],"names":[],"version":3,"file":"main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;ACAA;;;;;;;;;;CAUC;ACVD;;;;;;;;;;ACAA;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAnCA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAoC,CAAC,sBAAsB,CAAC;AAC5D,4CAA+B,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;QACT,eAAe;QACf,OAAO;QACP,aAAa;QACb,eAAe;QACf,iBAAiB;QACjB,iBAAiB;QACjB,mBAAmB;;AAEzB;AAEA;;CAEC,GACD,MAAM,0DAAY,CAAA,GAAA,sCAAI,EAAE,WAAW;;;AwC9DnC;;;;;;;;;;CAUC;;;;;;;;AAaD,SAAS,oCAAmC,KAAoC,EAAE,GAA8B;IAC9G,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,iBAAC,gBAAgB,GAAE,GAAG;IAC1B,gBAAgB,KAAK,IAAI,eAAe;IACxC,IAAI,kBAAkB,CAAA,GAAA,oBAAM,EAAE,IAAO,CAAA;YAAC,QAAQ;QAAa,CAAA,GAAI;QAAC;KAAc;IAC9E,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,8BAAQ;IACvB,IAAI,QAAQ,CAAA,GAAA,iDAAoB,EAAE;QAChC,GAAG,KAAK;gBACR;yBACA;wBACA;IACF;IAEA,IAAI,SAAS,CAAA,GAAA,mBAAK;IAClB,CAAA,GAAA,gCAAkB,EAAE,KAAK,IAAO,CAAA;YAC9B,GAAG,CAAA,GAAA,sCAAW,EAAE,OAAO;YACvB;gBACE,MAAM,WAAW;YACnB;QACF,CAAA;IAEA,IAAI,iBAAC,aAAa,mBAAE,eAAe,mBAAE,eAAe,qBAAE,iBAAiB,EAAC,GAAG,CAAA,GAAA,yCAAe,EAAE,OAAO,OAAO;IAE1G,qBACE,0DAAC,CAAA,GAAA,yCAAW;QACT,GAAG,KAAK;QACT,eAAe;QACf,OAAO;QACP,aAAa;QACb,eAAe;QACf,iBAAiB;QACjB,iBAAiB;QACjB,mBAAmB;;AAEzB;AAEA;;CAEC,GACD,MAAM,0DAAiB,CAAA,GAAA,sCAAI,EAAE,WAAW;;","sources":["packages/@react-spectrum/calendar/src/index.ts","packages/@react-spectrum/calendar/src/Calendar.tsx","packages/@react-spectrum/calendar/src/CalendarBase.tsx","packages/@react-spectrum/calendar/src/CalendarMonth.tsx","packages/@react-spectrum/calendar/src/CalendarCell.tsx","packages/@adobe/spectrum-css-temp/components/calendar/vars.css","packages/@react-spectrum/calendar/src/*.js","packages/@react-spectrum/calendar/intl/ar-AE.json","packages/@react-spectrum/calendar/intl/bg-BG.json","packages/@react-spectrum/calendar/intl/cs-CZ.json","packages/@react-spectrum/calendar/intl/da-DK.json","packages/@react-spectrum/calendar/intl/de-DE.json","packages/@react-spectrum/calendar/intl/el-GR.json","packages/@react-spectrum/calendar/intl/en-US.json","packages/@react-spectrum/calendar/intl/es-ES.json","packages/@react-spectrum/calendar/intl/et-EE.json","packages/@react-spectrum/calendar/intl/fi-FI.json","packages/@react-spectrum/calendar/intl/fr-FR.json","packages/@react-spectrum/calendar/intl/he-IL.json","packages/@react-spectrum/calendar/intl/hr-HR.json","packages/@react-spectrum/calendar/intl/hu-HU.json","packages/@react-spectrum/calendar/intl/it-IT.json","packages/@react-spectrum/calendar/intl/ja-JP.json","packages/@react-spectrum/calendar/intl/ko-KR.json","packages/@react-spectrum/calendar/intl/lt-LT.json","packages/@react-spectrum/calendar/intl/lv-LV.json","packages/@react-spectrum/calendar/intl/nb-NO.json","packages/@react-spectrum/calendar/intl/nl-NL.json","packages/@react-spectrum/calendar/intl/pl-PL.json","packages/@react-spectrum/calendar/intl/pt-BR.json","packages/@react-spectrum/calendar/intl/pt-PT.json","packages/@react-spectrum/calendar/intl/ro-RO.json","packages/@react-spectrum/calendar/intl/ru-RU.json","packages/@react-spectrum/calendar/intl/sk-SK.json","packages/@react-spectrum/calendar/intl/sl-SI.json","packages/@react-spectrum/calendar/intl/sr-SP.json","packages/@react-spectrum/calendar/intl/sv-SE.json","packages/@react-spectrum/calendar/intl/tr-TR.json","packages/@react-spectrum/calendar/intl/uk-UA.json","packages/@react-spectrum/calendar/intl/zh-CN.json","packages/@react-spectrum/calendar/intl/zh-TW.json","packages/@react-spectrum/calendar/src/RangeCalendar.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Calendar} from './Calendar';\nexport {RangeCalendar} from './RangeCalendar';\nexport type {SpectrumCalendarProps, SpectrumRangeCalendarProps} from '@react-types/calendar';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {CalendarBase} from './CalendarBase';\nimport {createCalendar} from '@internationalized/date';\nimport {createDOMRef} from '@react-spectrum/utils';\nimport {DateValue, SpectrumCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useCalendar} from '@react-aria/calendar';\nimport {useCalendarState} from '@react-stately/calendar';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction Calendar<T extends DateValue>(props: SpectrumCalendarProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n let {visibleMonths = 1} = props;\n visibleMonths = Math.max(visibleMonths, 1);\n let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);\n let {locale} = useLocale();\n let state = useCalendarState({\n ...props,\n locale,\n visibleDuration,\n createCalendar\n });\n\n let domRef = useRef();\n useImperativeHandle(ref, () => ({\n ...createDOMRef(domRef),\n focus() {\n state.setFocused(true);\n }\n }));\n\n let {calendarProps, prevButtonProps, nextButtonProps, errorMessageProps} = useCalendar(props, state);\n\n return (\n <CalendarBase\n {...props}\n visibleMonths={visibleMonths}\n state={state}\n calendarRef={domRef}\n calendarProps={calendarProps}\n prevButtonProps={prevButtonProps}\n nextButtonProps={nextButtonProps}\n errorMessageProps={errorMessageProps} />\n );\n}\n\n/**\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n */\nconst _Calendar = React.forwardRef(Calendar) as <T extends DateValue>(props: SpectrumCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_Calendar as Calendar};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ActionButton} from '@react-spectrum/button';\nimport {AriaButtonProps} from '@react-types/button';\nimport {CalendarMonth} from './CalendarMonth';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport ChevronLeft from '@spectrum-icons/ui/ChevronLeftLarge';\nimport ChevronRight from '@spectrum-icons/ui/ChevronRightLarge';\nimport {classNames, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport {HelpText} from '@react-spectrum/label';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {HTMLAttributes, RefObject} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useDateFormatter, useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {VisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface CalendarBaseProps<T extends CalendarState | RangeCalendarState> extends CalendarPropsBase, DOMProps, StyleProps {\n state: T,\n visibleMonths?: number,\n calendarProps: HTMLAttributes<HTMLElement>,\n nextButtonProps: AriaButtonProps,\n prevButtonProps: AriaButtonProps,\n errorMessageProps: HTMLAttributes<HTMLElement>,\n calendarRef: RefObject<HTMLDivElement>\n}\n\nexport function CalendarBase<T extends CalendarState | RangeCalendarState>(props: CalendarBaseProps<T>) {\n let {\n state,\n calendarProps,\n nextButtonProps,\n prevButtonProps,\n errorMessageProps,\n calendarRef: ref,\n visibleMonths = 1\n } = props;\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {direction} = useLocale();\n let currentMonth = state.visibleRange.start;\n let monthDateFormatter = useDateFormatter({\n month: 'long',\n year: 'numeric',\n era: currentMonth.calendar.identifier === 'gregory' && currentMonth.era === 'BC' ? 'short' : undefined,\n calendar: currentMonth.calendar.identifier,\n timeZone: state.timeZone\n });\n\n let titles = [];\n let calendars = [];\n for (let i = 0; i < visibleMonths; i++) {\n let d = currentMonth.add({months: i});\n titles.push(\n <div key={i} className={classNames(styles, 'spectrum-Calendar-monthHeader')}>\n {i === 0 &&\n <ActionButton\n {...prevButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-prevMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronRight /> : <ChevronLeft />}\n </ActionButton>\n }\n <h2\n // We have a visually hidden heading describing the entire visible range,\n // and the calendar itself describes the individual month\n // so we don't need to repeat that here for screen reader users.\n aria-hidden\n className={classNames(styles, 'spectrum-Calendar-title')}>\n {monthDateFormatter.format(d.toDate(state.timeZone))}\n </h2>\n {i === visibleMonths - 1 &&\n <ActionButton\n {...nextButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-nextMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronLeft /> : <ChevronRight />}\n </ActionButton>\n }\n </div>\n );\n\n calendars.push(\n <CalendarMonth\n {...props}\n key={i}\n state={state}\n startDate={d} />\n );\n }\n\n return (\n <div\n {...styleProps}\n {...calendarProps}\n ref={ref}\n className={\n classNames(styles,\n 'spectrum-Calendar',\n styleProps.className\n )\n }>\n {/* Add a screen reader only description of the entire visible range rather than\n * a separate heading above each month grid. This is placed first in the DOM order\n * so that it is the first thing a touch screen reader user encounters.\n * In addition, VoiceOver on iOS does not announce the aria-label of the grid\n * elements, so the aria-label of the Calendar is included here as well. */}\n <VisuallyHidden>\n <h2>{calendarProps['aria-label']}</h2>\n </VisuallyHidden>\n <div className={classNames(styles, 'spectrum-Calendar-header')}>\n {titles}\n </div>\n <div className={classNames(styles, 'spectrum-Calendar-months')}>\n {calendars}\n </div>\n {/* For touch screen readers, add a visually hidden next button after the month grid\n * so it's easy to navigate after reaching the end without going all the way\n * back to the start of the month. */}\n <VisuallyHidden>\n <button\n aria-label={nextButtonProps['aria-label']}\n disabled={nextButtonProps.isDisabled}\n onClick={() => state.focusNextPage()}\n tabIndex={-1} />\n </VisuallyHidden>\n {state.isValueInvalid &&\n <HelpText\n showErrorIcon\n errorMessage={props.errorMessage || stringFormatter.format('invalidSelection', {selectedCount: 'highlightedRange' in state ? 2 : 1})}\n errorMessageProps={errorMessageProps}\n isInvalid\n // Intentionally a global class name so it can be targeted in DatePicker CSS...\n UNSAFE_className=\"spectrum-Calendar-helpText\" />\n }\n </div>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {CalendarCell} from './CalendarCell';\nimport {CalendarDate, endOfMonth, getWeeksInMonth} from '@internationalized/date';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport React from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useCalendarGrid} from '@react-aria/calendar';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface CalendarMonthProps extends CalendarPropsBase, DOMProps, StyleProps {\n state: CalendarState | RangeCalendarState,\n startDate: CalendarDate\n}\n\nexport function CalendarMonth(props: CalendarMonthProps) {\n let {\n state,\n startDate\n } = props;\n let {\n gridProps,\n headerProps,\n weekDays\n } = useCalendarGrid({\n ...props,\n endDate: endOfMonth(startDate)\n }, state);\n\n let {locale} = useLocale();\n let weeksInMonth = getWeeksInMonth(startDate, locale);\n\n return (\n <table\n {...gridProps}\n className={classNames(styles, 'spectrum-Calendar-body', 'spectrum-Calendar-table')}>\n <thead {...headerProps}>\n <tr>\n {weekDays.map((day, index) => (\n <th\n key={index}\n className={classNames(styles, 'spectrum-Calendar-tableCell')}>\n <span className={classNames(styles, 'spectrum-Calendar-dayOfWeek')}>\n {day}\n </span>\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {[...new Array(weeksInMonth).keys()].map(weekIndex => (\n <tr key={weekIndex}>\n {state.getDatesInWeek(weekIndex, startDate).map((date, i) => (\n date ? (\n <CalendarCell\n key={i}\n state={state}\n date={date}\n currentMonth={startDate} />\n ) : <td key={i} />\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaCalendarCellProps, useCalendarCell} from '@react-aria/calendar';\nimport {CalendarDate, getDayOfWeek, isSameDay, isSameMonth, isToday} from '@internationalized/date';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface CalendarCellProps extends AriaCalendarCellProps {\n state: CalendarState | RangeCalendarState,\n currentMonth: CalendarDate\n}\n\nexport function CalendarCell({state, currentMonth, ...props}: CalendarCellProps) {\n let ref = useRef<HTMLElement>();\n let {\n cellProps,\n buttonProps,\n isPressed,\n isSelected,\n isDisabled,\n isFocused,\n isInvalid,\n formattedDate\n } = useCalendarCell({\n ...props,\n isDisabled: !isSameMonth(props.date, currentMonth)\n }, state, ref);\n let isUnavailable = state.isCellUnavailable(props.date) && !isDisabled;\n let isLastSelectedBeforeDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.add({days: 1}));\n let isFirstSelectedAfterDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.subtract({days: 1}));\n let highlightedRange = 'highlightedRange' in state && state.highlightedRange;\n let isSelectionStart = isSelected && highlightedRange && isSameDay(props.date, highlightedRange.start);\n let isSelectionEnd = isSelected && highlightedRange && isSameDay(props.date, highlightedRange.end);\n let {locale} = useLocale();\n let dayOfWeek = getDayOfWeek(props.date, locale);\n let isRangeStart = isSelected && (isFirstSelectedAfterDisabled || dayOfWeek === 0 || props.date.day === 1);\n let isRangeEnd = isSelected && (isLastSelectedBeforeDisabled || dayOfWeek === 6 || props.date.day === currentMonth.calendar.getDaysInMonth(currentMonth));\n let {focusProps, isFocusVisible} = useFocusRing();\n let {hoverProps, isHovered} = useHover({isDisabled: isDisabled || isUnavailable || state.isReadOnly});\n\n return (\n <td\n {...cellProps}\n className={classNames(styles, 'spectrum-Calendar-tableCell')}>\n <span\n {...mergeProps(buttonProps, hoverProps, focusProps)}\n ref={ref}\n className={classNames(styles, 'spectrum-Calendar-date', {\n 'is-today': isToday(props.date, state.timeZone),\n 'is-selected': isSelected,\n 'is-focused': isFocused && isFocusVisible,\n // Style disabled (i.e. out of min/max range), but selected dates as unavailable\n // since it is more clear than trying to dim the selection.\n 'is-disabled': isDisabled && !isInvalid,\n 'is-unavailable': isUnavailable || (isInvalid && isDisabled),\n 'is-outsideMonth': !isSameMonth(props.date, currentMonth),\n 'is-range-start': isRangeStart,\n 'is-range-end': isRangeEnd,\n 'is-range-selection': isSelected && 'highlightedRange' in state,\n 'is-selection-start': isSelectionStart,\n 'is-selection-end': isSelectionEnd,\n 'is-hovered': isHovered,\n 'is-pressed': isPressed && !state.isReadOnly,\n 'is-invalid': isInvalid\n })}>\n <span className={classNames(styles, 'spectrum-Calendar-dateText')}>\n <span>{formattedDate}</span>\n </span>\n </span>\n </td>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"invalidSelection\": \"{selectedCount, plural, one {التاريخ} other {التواريخ}} المحدد/المحددة غير متوفرة.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Избраната дата не е налична} other {Избраните дати не са налични}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybrané datum není} other {Vybraná data nejsou}} k dispozici.\"\n}\n","{\n \"invalidSelection\": \"Valgte {selectedCount, plural, one {dato} other {datoer}} ikke ledige.\"\n}\n","{\n \"invalidSelection\": \"Ausgewählte(s) {selectedCount, plural, one {Datum} other {Daten}} nicht verfügbar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη} other {Οι επιλεγμένες ημερομηνίες δεν είναι διαθέσιμες}}.\"\n}\n","{\n \"invalidSelection\": \"Selected {selectedCount, plural, one {date} other {dates}} unavailable.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La fecha seleccionada no está disponible} other {Las fechas seleccionadas no están disponibles}}.\"\n}\n","{\n \"invalidSelection\": \"Valitud {selectedCount, plural, one {kuupäev} other {kuupäevad}} pole saadaval.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valittu päivämäärä ei ole} other {Valitut päivämäärät eivät ole}} saatavilla.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La date sélectionnée est indisponible} other {Les dates sélectionnées sont indisponibles}}.\"\n}\n","{\n \"invalidSelection\": \"נבחר {selectedCount, plural, one {תאריך} other {תאריכים}} אינו זמין.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Odabrani datum nije dostupan} other {Odabrani datumi nisu dostupni}}.\"\n}\n","{\n \"invalidSelection\": \"A kijelölt {selectedCount, plural, one {dátum nem érhető el} other {dátumok nem érhetőek el}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selezionata non disponibile} other {Date selezionate non disponibili}}.\"\n}\n","{\n \"invalidSelection\": \"選択した{selectedCount, plural, one {日付} other {日付}}は使用できません。\"\n}\n","{\n \"invalidSelection\": \"선택한 {selectedCount, plural, one {일자를} other {일자를}} 사용할 수 없습니다.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Datos} other {Datų}} pasirinkimas negalimas.\"\n}\n","{\n \"invalidSelection\": \"Atlasītais(-ie) {selectedCount, plural, one {date} other {dates}} nav pieejams(-i).\"\n}\n","{\n \"invalidSelection\": \"Valgt(e) {selectedCount, plural, one {dato} other {datoer}} er utilgjengelig.\"\n}\n","{\n \"invalidSelection\": \"Geselecteerde {selectedCount, plural, one {datum} other {datums}} niet beschikbaar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Wybrana data jest niedostępna} other {Wybrane daty są niedostępne}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data} other {Datas}} selecionada(s) indisponível(is).\"\n}\n","{\n \"invalidSelection\": \"A(s) {selectedCount, plural, one {data} other {datas}} selecionada(s) não está(ão) disponível/disponível(eis).\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selectată nu este disponibilă} other {Datele selectate nu sunt disponibile}}.\"\n}\n","{\n \"invalidSelection\": \"Выбранные {selectedCount, plural, one {дата} other {даты}} недоступны.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybratý dátum} other {Vybraté dátumy}}: nedostupné.\"\n}\n","{\n \"invalidSelection\": \"Izbrano {selectedCount, plural, one {date} other {dates}} ni na voljo.\"\n}\n","{\n \"invalidSelection\": \"Izabrani {selectedCount, plural, one {date} other {dates}} nije dostupan.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valt datum är inte tillgängligt.} other {Valda datum är inte tillgängliga.}}\"\n}\n","{\n \"invalidSelection\": \"Seçilen {selectedCount, plural, one {tarih} other {tarihler}} müsait değil.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Вибрана дата недоступна} other {Вибрані дати недоступні}}.\"\n}\n","{\n \"invalidSelection\": \"选定的 {selectedCount, plural, one {个日期} other {个日期}} 不可用。\"\n}\n","{\n \"invalidSelection\": \"所選的{selectedCount, plural, one {日期} other {日期}}無法使用。\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {CalendarBase} from './CalendarBase';\nimport {createCalendar} from '@internationalized/date';\nimport {createDOMRef} from '@react-spectrum/utils';\nimport {DateValue, SpectrumRangeCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRangeCalendar} from '@react-aria/calendar';\nimport {useRangeCalendarState} from '@react-stately/calendar';\n\nfunction RangeCalendar<T extends DateValue>(props: SpectrumRangeCalendarProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n let {visibleMonths = 1} = props;\n visibleMonths = Math.max(visibleMonths, 1);\n let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);\n let {locale} = useLocale();\n let state = useRangeCalendarState({\n ...props,\n locale,\n visibleDuration,\n createCalendar\n });\n\n let domRef = useRef();\n useImperativeHandle(ref, () => ({\n ...createDOMRef(domRef),\n focus() {\n state.setFocused(true);\n }\n }));\n\n let {calendarProps, prevButtonProps, nextButtonProps, errorMessageProps} = useRangeCalendar(props, state, domRef);\n\n return (\n <CalendarBase\n {...props}\n visibleMonths={visibleMonths}\n state={state}\n calendarRef={domRef}\n calendarProps={calendarProps}\n prevButtonProps={prevButtonProps}\n nextButtonProps={nextButtonProps}\n errorMessageProps={errorMessageProps} />\n );\n}\n\n/**\n * RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates.\n */\nconst _RangeCalendar = React.forwardRef(RangeCalendar) as <T extends DateValue>(props: SpectrumRangeCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_RangeCalendar as RangeCalendar};\n"],"names":[],"version":3,"file":"main.js.map"}
|