@react-spectrum/calendar 3.4.7 → 3.4.9

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.
Files changed (44) hide show
  1. package/dist/Calendar.main.js +78 -0
  2. package/dist/Calendar.main.js.map +1 -0
  3. package/dist/Calendar.mjs +69 -0
  4. package/dist/Calendar.module.js +69 -0
  5. package/dist/Calendar.module.js.map +1 -0
  6. package/dist/CalendarBase.main.js +116 -0
  7. package/dist/CalendarBase.main.js.map +1 -0
  8. package/dist/CalendarBase.mjs +111 -0
  9. package/dist/CalendarBase.module.js +111 -0
  10. package/dist/CalendarBase.module.js.map +1 -0
  11. package/dist/CalendarCell.main.js +95 -0
  12. package/dist/CalendarCell.main.js.map +1 -0
  13. package/dist/CalendarCell.mjs +90 -0
  14. package/dist/CalendarCell.module.js +90 -0
  15. package/dist/CalendarCell.module.js.map +1 -0
  16. package/dist/CalendarMonth.main.js +68 -0
  17. package/dist/CalendarMonth.main.js.map +1 -0
  18. package/dist/CalendarMonth.mjs +63 -0
  19. package/dist/CalendarMonth.module.js +63 -0
  20. package/dist/CalendarMonth.module.js.map +1 -0
  21. package/dist/RangeCalendar.main.js +78 -0
  22. package/dist/RangeCalendar.main.js.map +1 -0
  23. package/dist/RangeCalendar.mjs +69 -0
  24. package/dist/RangeCalendar.module.js +69 -0
  25. package/dist/RangeCalendar.module.js.map +1 -0
  26. package/dist/calendar_vars_css.main.js +116 -0
  27. package/dist/calendar_vars_css.main.js.map +1 -0
  28. package/dist/calendar_vars_css.mjs +118 -0
  29. package/dist/calendar_vars_css.module.js +118 -0
  30. package/dist/calendar_vars_css.module.js.map +1 -0
  31. package/dist/import.mjs +2 -565
  32. package/dist/intlStrings.main.js +108 -0
  33. package/dist/intlStrings.main.js.map +1 -0
  34. package/dist/intlStrings.mjs +110 -0
  35. package/dist/intlStrings.module.js +110 -0
  36. package/dist/intlStrings.module.js.map +1 -0
  37. package/dist/main.js +4 -563
  38. package/dist/main.js.map +1 -1
  39. package/dist/module.js +2 -565
  40. package/dist/module.js.map +1 -1
  41. package/dist/{main.css → vars.3977de0b.css} +45 -111
  42. package/dist/vars.3977de0b.css.map +1 -0
  43. package/package.json +18 -18
  44. package/dist/main.css.map +0 -1
package/dist/import.mjs CHANGED
@@ -1,62 +1,6 @@
1
- import "./main.css";
2
- import $c1fdee2284f63122$exports from "./ar-AE.mjs";
3
- import $81326fc5b8464f3e$exports from "./bg-BG.mjs";
4
- import $61bec992b8f61b70$exports from "./cs-CZ.mjs";
5
- import $92192aa23ec84b2d$exports from "./da-DK.mjs";
6
- import $4db8629ea44949b0$exports from "./de-DE.mjs";
7
- import $d1795c2b69d00f6c$exports from "./el-GR.mjs";
8
- import $16d2015735d51a41$exports from "./en-US.mjs";
9
- import $96cd1e101026681b$exports from "./es-ES.mjs";
10
- import $1133d3628ea10323$exports from "./et-EE.mjs";
11
- import $53163229660d53e4$exports from "./fi-FI.mjs";
12
- import $d0808f7b535fb9b6$exports from "./fr-FR.mjs";
13
- import $658f594fbca84b9b$exports from "./he-IL.mjs";
14
- import $0b62e8a6414bc20c$exports from "./hr-HR.mjs";
15
- import $132d1b97de231314$exports from "./hu-HU.mjs";
16
- import $5653a55498966c6c$exports from "./it-IT.mjs";
17
- import $243f99057b9b0af0$exports from "./ja-JP.mjs";
18
- import $9dbe802a4c1b47ed$exports from "./ko-KR.mjs";
19
- import $ed6bec4d46a5be1b$exports from "./lt-LT.mjs";
20
- import $e203254b4140c831$exports from "./lv-LV.mjs";
21
- import $87004dc1feacb708$exports from "./nb-NO.mjs";
22
- import $fd392c0c0b12ff84$exports from "./nl-NL.mjs";
23
- import $02f96c467435edbf$exports from "./pl-PL.mjs";
24
- import $a516ff2265dc1cde$exports from "./pt-BR.mjs";
25
- import $2a8fe7dc6b71b8d6$exports from "./pt-PT.mjs";
26
- import $459c636d0d282e8f$exports from "./ro-RO.mjs";
27
- import $d49b96bc4e237385$exports from "./ru-RU.mjs";
28
- import $14f44f430d85943b$exports from "./sk-SK.mjs";
29
- import $ced45866328d3850$exports from "./sl-SI.mjs";
30
- import $46417484d64689f8$exports from "./sr-SP.mjs";
31
- import $9d8ccb39096f4575$exports from "./sv-SE.mjs";
32
- import $8e9c1a10ed1cc18a$exports from "./tr-TR.mjs";
33
- import $84c3bf1d3eaf1f59$exports from "./uk-UA.mjs";
34
- import $0212afd59952ac06$exports from "./zh-CN.mjs";
35
- import $87077630a4e30349$exports from "./zh-TW.mjs";
36
- import {createCalendar as $40VnT$createCalendar, endOfMonth as $40VnT$endOfMonth, getWeeksInMonth as $40VnT$getWeeksInMonth, isSameMonth as $40VnT$isSameMonth, isSameDay as $40VnT$isSameDay, getDayOfWeek as $40VnT$getDayOfWeek, isToday as $40VnT$isToday} from "@internationalized/date";
37
- import {createDOMRef as $40VnT$createDOMRef, useStyleProps as $40VnT$useStyleProps, classNames as $40VnT$classNames} from "@react-spectrum/utils";
38
- import $40VnT$react, {useMemo as $40VnT$useMemo, useRef as $40VnT$useRef, useImperativeHandle as $40VnT$useImperativeHandle} from "react";
39
- import {useCalendar as $40VnT$useCalendar, useCalendarGrid as $40VnT$useCalendarGrid, useCalendarCell as $40VnT$useCalendarCell, useRangeCalendar as $40VnT$useRangeCalendar} from "@react-aria/calendar";
40
- import {useCalendarState as $40VnT$useCalendarState, useRangeCalendarState as $40VnT$useRangeCalendarState} from "@react-stately/calendar";
41
- import {useLocale as $40VnT$useLocale, useLocalizedStringFormatter as $40VnT$useLocalizedStringFormatter, useDateFormatter as $40VnT$useDateFormatter} from "@react-aria/i18n";
42
- import {useProviderProps as $40VnT$useProviderProps} from "@react-spectrum/provider";
43
- import {ActionButton as $40VnT$ActionButton} from "@react-spectrum/button";
44
- import $40VnT$spectrumiconsuiChevronLeftLarge from "@spectrum-icons/ui/ChevronLeftLarge";
45
- import $40VnT$spectrumiconsuiChevronRightLarge from "@spectrum-icons/ui/ChevronRightLarge";
46
- import {HelpText as $40VnT$HelpText} from "@react-spectrum/label";
47
- import {VisuallyHidden as $40VnT$VisuallyHidden} from "@react-aria/visually-hidden";
48
- import {mergeProps as $40VnT$mergeProps} from "@react-aria/utils";
49
- import {useFocusRing as $40VnT$useFocusRing} from "@react-aria/focus";
50
- import {useHover as $40VnT$useHover} from "@react-aria/interactions";
1
+ import {Calendar as $d2b8d4577dd88671$export$e1aef45b828286de} from "./Calendar.mjs";
2
+ import {RangeCalendar as $8b1e8eddbf3b15de$export$a4f5c8b89d277a8d} from "./RangeCalendar.mjs";
51
3
 
52
-
53
- function $parcel$interopDefault(a) {
54
- return a && a.__esModule ? a.default : a;
55
- }
56
-
57
- function $parcel$export(e, n, v, s) {
58
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
59
- }
60
4
  /*
61
5
  * Copyright 2020 Adobe. All rights reserved.
62
6
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -68,513 +12,6 @@ function $parcel$export(e, n, v, s) {
68
12
  * OF ANY KIND, either express or implied. See the License for the specific language
69
13
  * governing permissions and limitations under the License.
70
14
  */ /// <reference types="css-module-types" />
71
- /*
72
- * Copyright 2020 Adobe. All rights reserved.
73
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
74
- * you may not use this file except in compliance with the License. You may obtain a copy
75
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
76
- *
77
- * Unless required by applicable law or agreed to in writing, software distributed under
78
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
79
- * OF ANY KIND, either express or implied. See the License for the specific language
80
- * governing permissions and limitations under the License.
81
- */ /*
82
- * Copyright 2020 Adobe. All rights reserved.
83
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
84
- * you may not use this file except in compliance with the License. You may obtain a copy
85
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
86
- *
87
- * Unless required by applicable law or agreed to in writing, software distributed under
88
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
89
- * OF ANY KIND, either express or implied. See the License for the specific language
90
- * governing permissions and limitations under the License.
91
- */
92
- /*
93
- * Copyright 2020 Adobe. All rights reserved.
94
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
95
- * you may not use this file except in compliance with the License. You may obtain a copy
96
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
97
- *
98
- * Unless required by applicable law or agreed to in writing, software distributed under
99
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
100
- * OF ANY KIND, either express or implied. See the License for the specific language
101
- * governing permissions and limitations under the License.
102
- */ /*
103
- * Copyright 2020 Adobe. All rights reserved.
104
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
105
- * you may not use this file except in compliance with the License. You may obtain a copy
106
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
107
- *
108
- * Unless required by applicable law or agreed to in writing, software distributed under
109
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
110
- * OF ANY KIND, either express or implied. See the License for the specific language
111
- * governing permissions and limitations under the License.
112
- */
113
-
114
-
115
-
116
-
117
- var $52c51313300b3b3e$exports = {};
118
-
119
- $parcel$export($52c51313300b3b3e$exports, "focus-ring", () => $52c51313300b3b3e$export$f39a09f249340e2a, (v) => $52c51313300b3b3e$export$f39a09f249340e2a = v);
120
- $parcel$export($52c51313300b3b3e$exports, "i18nFontFamily", () => $52c51313300b3b3e$export$8c4ee2c50c22c514, (v) => $52c51313300b3b3e$export$8c4ee2c50c22c514 = v);
121
- $parcel$export($52c51313300b3b3e$exports, "is-disabled", () => $52c51313300b3b3e$export$d35bc1e505d1ebbf, (v) => $52c51313300b3b3e$export$d35bc1e505d1ebbf = v);
122
- $parcel$export($52c51313300b3b3e$exports, "is-focused", () => $52c51313300b3b3e$export$e7dc768d35940237, (v) => $52c51313300b3b3e$export$e7dc768d35940237 = v);
123
- $parcel$export($52c51313300b3b3e$exports, "is-hovered", () => $52c51313300b3b3e$export$b8813cd5d7824ce7, (v) => $52c51313300b3b3e$export$b8813cd5d7824ce7 = v);
124
- $parcel$export($52c51313300b3b3e$exports, "is-invalid", () => $52c51313300b3b3e$export$14a30de2866685fa, (v) => $52c51313300b3b3e$export$14a30de2866685fa = v);
125
- $parcel$export($52c51313300b3b3e$exports, "is-outsideMonth", () => $52c51313300b3b3e$export$93ff5b06817b3d41, (v) => $52c51313300b3b3e$export$93ff5b06817b3d41 = v);
126
- $parcel$export($52c51313300b3b3e$exports, "is-pressed", () => $52c51313300b3b3e$export$15b73a232798b8d3, (v) => $52c51313300b3b3e$export$15b73a232798b8d3 = v);
127
- $parcel$export($52c51313300b3b3e$exports, "is-range-end", () => $52c51313300b3b3e$export$52890a3cb1ab46b, (v) => $52c51313300b3b3e$export$52890a3cb1ab46b = v);
128
- $parcel$export($52c51313300b3b3e$exports, "is-range-selection", () => $52c51313300b3b3e$export$cd2839d8bb0c6407, (v) => $52c51313300b3b3e$export$cd2839d8bb0c6407 = v);
129
- $parcel$export($52c51313300b3b3e$exports, "is-range-start", () => $52c51313300b3b3e$export$4ce7d3d24e42e411, (v) => $52c51313300b3b3e$export$4ce7d3d24e42e411 = v);
130
- $parcel$export($52c51313300b3b3e$exports, "is-selected", () => $52c51313300b3b3e$export$1e0fb04f31d3c22a, (v) => $52c51313300b3b3e$export$1e0fb04f31d3c22a = v);
131
- $parcel$export($52c51313300b3b3e$exports, "is-selection-end", () => $52c51313300b3b3e$export$50722ae5663230f9, (v) => $52c51313300b3b3e$export$50722ae5663230f9 = v);
132
- $parcel$export($52c51313300b3b3e$exports, "is-selection-start", () => $52c51313300b3b3e$export$f0091c9d6b8c19d3, (v) => $52c51313300b3b3e$export$f0091c9d6b8c19d3 = v);
133
- $parcel$export($52c51313300b3b3e$exports, "is-today", () => $52c51313300b3b3e$export$189f6cc7eaf68d8b, (v) => $52c51313300b3b3e$export$189f6cc7eaf68d8b = v);
134
- $parcel$export($52c51313300b3b3e$exports, "is-unavailable", () => $52c51313300b3b3e$export$38b08f1df825800e, (v) => $52c51313300b3b3e$export$38b08f1df825800e = v);
135
- $parcel$export($52c51313300b3b3e$exports, "next", () => $52c51313300b3b3e$export$48cfd1e771a65c4f, (v) => $52c51313300b3b3e$export$48cfd1e771a65c4f = v);
136
- $parcel$export($52c51313300b3b3e$exports, "prev", () => $52c51313300b3b3e$export$232faf9add678146, (v) => $52c51313300b3b3e$export$232faf9add678146 = v);
137
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar", () => $52c51313300b3b3e$export$2d9837ea36f7a875, (v) => $52c51313300b3b3e$export$2d9837ea36f7a875 = v);
138
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar--padded", () => $52c51313300b3b3e$export$8d90e3a3d21fe428, (v) => $52c51313300b3b3e$export$8d90e3a3d21fe428 = v);
139
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-body", () => $52c51313300b3b3e$export$33407a73687c0e62, (v) => $52c51313300b3b3e$export$33407a73687c0e62 = v);
140
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-date", () => $52c51313300b3b3e$export$c20fe43d14f8fa36, (v) => $52c51313300b3b3e$export$c20fe43d14f8fa36 = v);
141
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-dateText", () => $52c51313300b3b3e$export$cc48a6e73fdb7719, (v) => $52c51313300b3b3e$export$cc48a6e73fdb7719 = v);
142
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-dayOfWeek", () => $52c51313300b3b3e$export$7ff21fe81b21fa51, (v) => $52c51313300b3b3e$export$7ff21fe81b21fa51 = v);
143
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-header", () => $52c51313300b3b3e$export$7efb9b56af6e2d09, (v) => $52c51313300b3b3e$export$7efb9b56af6e2d09 = v);
144
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-monthHeader", () => $52c51313300b3b3e$export$185018e73e57145f, (v) => $52c51313300b3b3e$export$185018e73e57145f = v);
145
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-months", () => $52c51313300b3b3e$export$5dacd232bfef6687, (v) => $52c51313300b3b3e$export$5dacd232bfef6687 = v);
146
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-nextMonth", () => $52c51313300b3b3e$export$7876229ab722b448, (v) => $52c51313300b3b3e$export$7876229ab722b448 = v);
147
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-prevMonth", () => $52c51313300b3b3e$export$d4c1c2a202a50db2, (v) => $52c51313300b3b3e$export$d4c1c2a202a50db2 = v);
148
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-table", () => $52c51313300b3b3e$export$27f4c38933cceedf, (v) => $52c51313300b3b3e$export$27f4c38933cceedf = v);
149
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-tableCell", () => $52c51313300b3b3e$export$292b81cfd590634d, (v) => $52c51313300b3b3e$export$292b81cfd590634d = v);
150
- $parcel$export($52c51313300b3b3e$exports, "spectrum-Calendar-title", () => $52c51313300b3b3e$export$98ee27555a2b7c01, (v) => $52c51313300b3b3e$export$98ee27555a2b7c01 = v);
151
- $parcel$export($52c51313300b3b3e$exports, "spectrum-FocusRing-ring", () => $52c51313300b3b3e$export$4109102f950813a6, (v) => $52c51313300b3b3e$export$4109102f950813a6 = v);
152
- $parcel$export($52c51313300b3b3e$exports, "spectrum-FocusRing", () => $52c51313300b3b3e$export$24c7f46a6e3605dd, (v) => $52c51313300b3b3e$export$24c7f46a6e3605dd = v);
153
- $parcel$export($52c51313300b3b3e$exports, "spectrum-FocusRing--quiet", () => $52c51313300b3b3e$export$2927016961429360, (v) => $52c51313300b3b3e$export$2927016961429360 = v);
154
- $parcel$export($52c51313300b3b3e$exports, "title", () => $52c51313300b3b3e$export$fb184b623420d9be, (v) => $52c51313300b3b3e$export$fb184b623420d9be = v);
155
- var $52c51313300b3b3e$export$f39a09f249340e2a;
156
- var $52c51313300b3b3e$export$8c4ee2c50c22c514;
157
- var $52c51313300b3b3e$export$d35bc1e505d1ebbf;
158
- var $52c51313300b3b3e$export$e7dc768d35940237;
159
- var $52c51313300b3b3e$export$b8813cd5d7824ce7;
160
- var $52c51313300b3b3e$export$14a30de2866685fa;
161
- var $52c51313300b3b3e$export$93ff5b06817b3d41;
162
- var $52c51313300b3b3e$export$15b73a232798b8d3;
163
- var $52c51313300b3b3e$export$52890a3cb1ab46b;
164
- var $52c51313300b3b3e$export$cd2839d8bb0c6407;
165
- var $52c51313300b3b3e$export$4ce7d3d24e42e411;
166
- var $52c51313300b3b3e$export$1e0fb04f31d3c22a;
167
- var $52c51313300b3b3e$export$50722ae5663230f9;
168
- var $52c51313300b3b3e$export$f0091c9d6b8c19d3;
169
- var $52c51313300b3b3e$export$189f6cc7eaf68d8b;
170
- var $52c51313300b3b3e$export$38b08f1df825800e;
171
- var $52c51313300b3b3e$export$48cfd1e771a65c4f;
172
- var $52c51313300b3b3e$export$232faf9add678146;
173
- var $52c51313300b3b3e$export$2d9837ea36f7a875;
174
- var $52c51313300b3b3e$export$8d90e3a3d21fe428;
175
- var $52c51313300b3b3e$export$33407a73687c0e62;
176
- var $52c51313300b3b3e$export$c20fe43d14f8fa36;
177
- var $52c51313300b3b3e$export$cc48a6e73fdb7719;
178
- var $52c51313300b3b3e$export$7ff21fe81b21fa51;
179
- var $52c51313300b3b3e$export$7efb9b56af6e2d09;
180
- var $52c51313300b3b3e$export$185018e73e57145f;
181
- var $52c51313300b3b3e$export$5dacd232bfef6687;
182
- var $52c51313300b3b3e$export$7876229ab722b448;
183
- var $52c51313300b3b3e$export$d4c1c2a202a50db2;
184
- var $52c51313300b3b3e$export$27f4c38933cceedf;
185
- var $52c51313300b3b3e$export$292b81cfd590634d;
186
- var $52c51313300b3b3e$export$98ee27555a2b7c01;
187
- var $52c51313300b3b3e$export$4109102f950813a6;
188
- var $52c51313300b3b3e$export$24c7f46a6e3605dd;
189
- var $52c51313300b3b3e$export$2927016961429360;
190
- var $52c51313300b3b3e$export$fb184b623420d9be;
191
- $52c51313300b3b3e$export$f39a09f249340e2a = `EuwYBq_focus-ring`;
192
- $52c51313300b3b3e$export$8c4ee2c50c22c514 = `EuwYBq_i18nFontFamily`;
193
- $52c51313300b3b3e$export$d35bc1e505d1ebbf = `EuwYBq_is-disabled`;
194
- $52c51313300b3b3e$export$e7dc768d35940237 = `EuwYBq_is-focused`;
195
- $52c51313300b3b3e$export$b8813cd5d7824ce7 = `EuwYBq_is-hovered`;
196
- $52c51313300b3b3e$export$14a30de2866685fa = `EuwYBq_is-invalid`;
197
- $52c51313300b3b3e$export$93ff5b06817b3d41 = `EuwYBq_is-outsideMonth`;
198
- $52c51313300b3b3e$export$15b73a232798b8d3 = `EuwYBq_is-pressed`;
199
- $52c51313300b3b3e$export$52890a3cb1ab46b = `EuwYBq_is-range-end`;
200
- $52c51313300b3b3e$export$cd2839d8bb0c6407 = `EuwYBq_is-range-selection`;
201
- $52c51313300b3b3e$export$4ce7d3d24e42e411 = `EuwYBq_is-range-start`;
202
- $52c51313300b3b3e$export$1e0fb04f31d3c22a = `EuwYBq_is-selected`;
203
- $52c51313300b3b3e$export$50722ae5663230f9 = `EuwYBq_is-selection-end`;
204
- $52c51313300b3b3e$export$f0091c9d6b8c19d3 = `EuwYBq_is-selection-start`;
205
- $52c51313300b3b3e$export$189f6cc7eaf68d8b = `EuwYBq_is-today`;
206
- $52c51313300b3b3e$export$38b08f1df825800e = `EuwYBq_is-unavailable`;
207
- $52c51313300b3b3e$export$48cfd1e771a65c4f = `EuwYBq_next`;
208
- $52c51313300b3b3e$export$232faf9add678146 = `EuwYBq_prev`;
209
- $52c51313300b3b3e$export$2d9837ea36f7a875 = `EuwYBq_spectrum-Calendar`;
210
- $52c51313300b3b3e$export$8d90e3a3d21fe428 = `EuwYBq_spectrum-Calendar--padded`;
211
- $52c51313300b3b3e$export$33407a73687c0e62 = `EuwYBq_spectrum-Calendar-body`;
212
- $52c51313300b3b3e$export$c20fe43d14f8fa36 = `EuwYBq_spectrum-Calendar-date`;
213
- $52c51313300b3b3e$export$cc48a6e73fdb7719 = `EuwYBq_spectrum-Calendar-dateText`;
214
- $52c51313300b3b3e$export$7ff21fe81b21fa51 = `EuwYBq_spectrum-Calendar-dayOfWeek`;
215
- $52c51313300b3b3e$export$7efb9b56af6e2d09 = `EuwYBq_spectrum-Calendar-header`;
216
- $52c51313300b3b3e$export$185018e73e57145f = `EuwYBq_spectrum-Calendar-monthHeader`;
217
- $52c51313300b3b3e$export$5dacd232bfef6687 = `EuwYBq_spectrum-Calendar-months`;
218
- $52c51313300b3b3e$export$7876229ab722b448 = `EuwYBq_spectrum-Calendar-nextMonth`;
219
- $52c51313300b3b3e$export$d4c1c2a202a50db2 = `EuwYBq_spectrum-Calendar-prevMonth`;
220
- $52c51313300b3b3e$export$27f4c38933cceedf = `EuwYBq_spectrum-Calendar-table`;
221
- $52c51313300b3b3e$export$292b81cfd590634d = `EuwYBq_spectrum-Calendar-tableCell`;
222
- $52c51313300b3b3e$export$98ee27555a2b7c01 = `EuwYBq_spectrum-Calendar-title`;
223
- $52c51313300b3b3e$export$4109102f950813a6 = `EuwYBq_spectrum-FocusRing-ring`;
224
- $52c51313300b3b3e$export$24c7f46a6e3605dd = `EuwYBq_spectrum-FocusRing ${$52c51313300b3b3e$export$4109102f950813a6}`;
225
- $52c51313300b3b3e$export$2927016961429360 = `EuwYBq_spectrum-FocusRing--quiet`;
226
- $52c51313300b3b3e$export$fb184b623420d9be = `EuwYBq_title`;
227
-
228
-
229
-
230
-
231
-
232
- function $453c556b9066da11$export$5d847498420df57b({ state: state, currentMonth: currentMonth, ...props }) {
233
- let ref = (0, $40VnT$useRef)();
234
- let { cellProps: cellProps, buttonProps: buttonProps, isPressed: isPressed, isSelected: isSelected, isDisabled: isDisabled, isFocused: isFocused, isInvalid: isInvalid, formattedDate: formattedDate } = (0, $40VnT$useCalendarCell)({
235
- ...props,
236
- isDisabled: !(0, $40VnT$isSameMonth)(props.date, currentMonth)
237
- }, state, ref);
238
- let isUnavailable = state.isCellUnavailable(props.date) && !isDisabled;
239
- let isLastSelectedBeforeDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.add({
240
- days: 1
241
- }));
242
- let isFirstSelectedAfterDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.subtract({
243
- days: 1
244
- }));
245
- let highlightedRange = "highlightedRange" in state && state.highlightedRange;
246
- let isSelectionStart = isSelected && highlightedRange && (0, $40VnT$isSameDay)(props.date, highlightedRange.start);
247
- let isSelectionEnd = isSelected && highlightedRange && (0, $40VnT$isSameDay)(props.date, highlightedRange.end);
248
- let { locale: locale } = (0, $40VnT$useLocale)();
249
- let dayOfWeek = (0, $40VnT$getDayOfWeek)(props.date, locale);
250
- let isRangeStart = isSelected && (isFirstSelectedAfterDisabled || dayOfWeek === 0 || props.date.day === 1);
251
- let isRangeEnd = isSelected && (isLastSelectedBeforeDisabled || dayOfWeek === 6 || props.date.day === currentMonth.calendar.getDaysInMonth(currentMonth));
252
- let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $40VnT$useFocusRing)();
253
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $40VnT$useHover)({
254
- isDisabled: isDisabled || isUnavailable || state.isReadOnly
255
- });
256
- return /*#__PURE__*/ (0, $40VnT$react).createElement("td", {
257
- ...cellProps,
258
- className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-tableCell")
259
- }, /*#__PURE__*/ (0, $40VnT$react).createElement("span", {
260
- ...(0, $40VnT$mergeProps)(buttonProps, hoverProps, focusProps),
261
- ref: ref,
262
- className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-date", {
263
- "is-today": (0, $40VnT$isToday)(props.date, state.timeZone),
264
- "is-selected": isSelected,
265
- "is-focused": isFocused && isFocusVisible,
266
- // Style disabled (i.e. out of min/max range), but selected dates as unavailable
267
- // since it is more clear than trying to dim the selection.
268
- "is-disabled": isDisabled && !isInvalid,
269
- "is-unavailable": isUnavailable || isInvalid && isDisabled,
270
- "is-outsideMonth": !(0, $40VnT$isSameMonth)(props.date, currentMonth),
271
- "is-range-start": isRangeStart,
272
- "is-range-end": isRangeEnd,
273
- "is-range-selection": isSelected && "highlightedRange" in state,
274
- "is-selection-start": isSelectionStart,
275
- "is-selection-end": isSelectionEnd,
276
- "is-hovered": isHovered,
277
- "is-pressed": isPressed && !state.isReadOnly,
278
- "is-invalid": isInvalid
279
- })
280
- }, /*#__PURE__*/ (0, $40VnT$react).createElement("span", {
281
- className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-dateText")
282
- }, /*#__PURE__*/ (0, $40VnT$react).createElement("span", null, formattedDate))));
283
- }
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
- function $faa2f3867773cfe5$export$26e2752316b9a375(props) {
293
- let { state: state, startDate: startDate } = props;
294
- let { gridProps: gridProps, headerProps: headerProps, weekDays: weekDays } = (0, $40VnT$useCalendarGrid)({
295
- ...props,
296
- endDate: (0, $40VnT$endOfMonth)(startDate)
297
- }, state);
298
- let { locale: locale } = (0, $40VnT$useLocale)();
299
- let weeksInMonth = (0, $40VnT$getWeeksInMonth)(startDate, locale);
300
- return /*#__PURE__*/ (0, $40VnT$react).createElement("table", {
301
- ...gridProps,
302
- className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-body", "spectrum-Calendar-table")
303
- }, /*#__PURE__*/ (0, $40VnT$react).createElement("thead", headerProps, /*#__PURE__*/ (0, $40VnT$react).createElement("tr", null, weekDays.map((day, index)=>/*#__PURE__*/ (0, $40VnT$react).createElement("th", {
304
- key: index,
305
- className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-tableCell")
306
- }, /*#__PURE__*/ (0, $40VnT$react).createElement("span", {
307
- className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-dayOfWeek")
308
- }, day))))), /*#__PURE__*/ (0, $40VnT$react).createElement("tbody", null, [
309
- ...new Array(weeksInMonth).keys()
310
- ].map((weekIndex)=>/*#__PURE__*/ (0, $40VnT$react).createElement("tr", {
311
- key: weekIndex
312
- }, state.getDatesInWeek(weekIndex, startDate).map((date, i)=>date ? /*#__PURE__*/ (0, $40VnT$react).createElement((0, $453c556b9066da11$export$5d847498420df57b), {
313
- key: i,
314
- state: state,
315
- date: date,
316
- currentMonth: startDate
317
- }) : /*#__PURE__*/ (0, $40VnT$react).createElement("td", {
318
- key: i
319
- }))))));
320
- }
321
-
322
-
323
-
324
-
325
-
326
-
327
- var $3bf3e8635a799a6e$exports = {};
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
- $3bf3e8635a799a6e$exports = {
363
- "ar-AE": $c1fdee2284f63122$exports,
364
- "bg-BG": $81326fc5b8464f3e$exports,
365
- "cs-CZ": $61bec992b8f61b70$exports,
366
- "da-DK": $92192aa23ec84b2d$exports,
367
- "de-DE": $4db8629ea44949b0$exports,
368
- "el-GR": $d1795c2b69d00f6c$exports,
369
- "en-US": $16d2015735d51a41$exports,
370
- "es-ES": $96cd1e101026681b$exports,
371
- "et-EE": $1133d3628ea10323$exports,
372
- "fi-FI": $53163229660d53e4$exports,
373
- "fr-FR": $d0808f7b535fb9b6$exports,
374
- "he-IL": $658f594fbca84b9b$exports,
375
- "hr-HR": $0b62e8a6414bc20c$exports,
376
- "hu-HU": $132d1b97de231314$exports,
377
- "it-IT": $5653a55498966c6c$exports,
378
- "ja-JP": $243f99057b9b0af0$exports,
379
- "ko-KR": $9dbe802a4c1b47ed$exports,
380
- "lt-LT": $ed6bec4d46a5be1b$exports,
381
- "lv-LV": $e203254b4140c831$exports,
382
- "nb-NO": $87004dc1feacb708$exports,
383
- "nl-NL": $fd392c0c0b12ff84$exports,
384
- "pl-PL": $02f96c467435edbf$exports,
385
- "pt-BR": $a516ff2265dc1cde$exports,
386
- "pt-PT": $2a8fe7dc6b71b8d6$exports,
387
- "ro-RO": $459c636d0d282e8f$exports,
388
- "ru-RU": $d49b96bc4e237385$exports,
389
- "sk-SK": $14f44f430d85943b$exports,
390
- "sl-SI": $ced45866328d3850$exports,
391
- "sr-SP": $46417484d64689f8$exports,
392
- "sv-SE": $9d8ccb39096f4575$exports,
393
- "tr-TR": $8e9c1a10ed1cc18a$exports,
394
- "uk-UA": $84c3bf1d3eaf1f59$exports,
395
- "zh-CN": $0212afd59952ac06$exports,
396
- "zh-TW": $87077630a4e30349$exports
397
- };
398
-
399
-
400
-
401
-
402
-
403
-
404
- function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
405
- let { state: state, calendarProps: calendarProps, nextButtonProps: nextButtonProps, prevButtonProps: prevButtonProps, errorMessageProps: errorMessageProps, calendarRef: ref, visibleMonths: visibleMonths = 1 } = props;
406
- let { styleProps: styleProps } = (0, $40VnT$useStyleProps)(props);
407
- let stringFormatter = (0, $40VnT$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($3bf3e8635a799a6e$exports))), "@react-spectrum/calendar");
408
- let { direction: direction } = (0, $40VnT$useLocale)();
409
- let currentMonth = state.visibleRange.start;
410
- let monthDateFormatter = (0, $40VnT$useDateFormatter)({
411
- month: "long",
412
- year: "numeric",
413
- era: currentMonth.calendar.identifier === "gregory" && currentMonth.era === "BC" ? "short" : undefined,
414
- calendar: currentMonth.calendar.identifier,
415
- timeZone: state.timeZone
416
- });
417
- let titles = [];
418
- let calendars = [];
419
- for(let i = 0; i < visibleMonths; i++){
420
- let d = currentMonth.add({
421
- months: i
422
- });
423
- titles.push(/*#__PURE__*/ (0, $40VnT$react).createElement("div", {
424
- key: i,
425
- className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-monthHeader")
426
- }, i === 0 && /*#__PURE__*/ (0, $40VnT$react).createElement((0, $40VnT$ActionButton), {
427
- ...prevButtonProps,
428
- UNSAFE_className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-prevMonth"),
429
- isQuiet: true
430
- }, direction === "rtl" ? /*#__PURE__*/ (0, $40VnT$react).createElement((0, $40VnT$spectrumiconsuiChevronRightLarge), null) : /*#__PURE__*/ (0, $40VnT$react).createElement((0, $40VnT$spectrumiconsuiChevronLeftLarge), null)), /*#__PURE__*/ (0, $40VnT$react).createElement("h2", {
431
- // We have a visually hidden heading describing the entire visible range,
432
- // and the calendar itself describes the individual month
433
- // so we don't need to repeat that here for screen reader users.
434
- "aria-hidden": true,
435
- className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-title")
436
- }, monthDateFormatter.format(d.toDate(state.timeZone))), i === visibleMonths - 1 && /*#__PURE__*/ (0, $40VnT$react).createElement((0, $40VnT$ActionButton), {
437
- ...nextButtonProps,
438
- UNSAFE_className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-nextMonth"),
439
- isQuiet: true
440
- }, direction === "rtl" ? /*#__PURE__*/ (0, $40VnT$react).createElement((0, $40VnT$spectrumiconsuiChevronLeftLarge), null) : /*#__PURE__*/ (0, $40VnT$react).createElement((0, $40VnT$spectrumiconsuiChevronRightLarge), null))));
441
- calendars.push(/*#__PURE__*/ (0, $40VnT$react).createElement((0, $faa2f3867773cfe5$export$26e2752316b9a375), {
442
- ...props,
443
- key: i,
444
- state: state,
445
- startDate: d
446
- }));
447
- }
448
- return /*#__PURE__*/ (0, $40VnT$react).createElement("div", {
449
- ...styleProps,
450
- ...calendarProps,
451
- ref: ref,
452
- className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar", styleProps.className)
453
- }, /*#__PURE__*/ (0, $40VnT$react).createElement((0, $40VnT$VisuallyHidden), null, /*#__PURE__*/ (0, $40VnT$react).createElement("h2", null, calendarProps["aria-label"])), /*#__PURE__*/ (0, $40VnT$react).createElement("div", {
454
- className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-header")
455
- }, titles), /*#__PURE__*/ (0, $40VnT$react).createElement("div", {
456
- className: (0, $40VnT$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($52c51313300b3b3e$exports))), "spectrum-Calendar-months")
457
- }, calendars), /*#__PURE__*/ (0, $40VnT$react).createElement((0, $40VnT$VisuallyHidden), null, /*#__PURE__*/ (0, $40VnT$react).createElement("button", {
458
- "aria-label": nextButtonProps["aria-label"],
459
- disabled: nextButtonProps.isDisabled,
460
- onClick: ()=>state.focusNextPage(),
461
- tabIndex: -1
462
- })), state.isValueInvalid && /*#__PURE__*/ (0, $40VnT$react).createElement((0, $40VnT$HelpText), {
463
- showErrorIcon: true,
464
- errorMessage: props.errorMessage || stringFormatter.format("invalidSelection", {
465
- selectedCount: "highlightedRange" in state ? 2 : 1
466
- }),
467
- errorMessageProps: errorMessageProps,
468
- isInvalid: true,
469
- // Intentionally a global class name so it can be targeted in DatePicker CSS...
470
- UNSAFE_className: "spectrum-Calendar-helpText"
471
- }));
472
- }
473
-
474
-
475
-
476
-
477
-
478
-
479
-
480
-
481
-
482
- function $d2b8d4577dd88671$var$Calendar(props, ref) {
483
- props = (0, $40VnT$useProviderProps)(props);
484
- let { visibleMonths: visibleMonths = 1 } = props;
485
- visibleMonths = Math.max(visibleMonths, 1);
486
- let visibleDuration = (0, $40VnT$useMemo)(()=>({
487
- months: visibleMonths
488
- }), [
489
- visibleMonths
490
- ]);
491
- let { locale: locale } = (0, $40VnT$useLocale)();
492
- let state = (0, $40VnT$useCalendarState)({
493
- ...props,
494
- locale: locale,
495
- visibleDuration: visibleDuration,
496
- createCalendar: $40VnT$createCalendar
497
- });
498
- let domRef = (0, $40VnT$useRef)();
499
- (0, $40VnT$useImperativeHandle)(ref, ()=>({
500
- ...(0, $40VnT$createDOMRef)(domRef),
501
- focus () {
502
- state.setFocused(true);
503
- }
504
- }));
505
- let { calendarProps: calendarProps, prevButtonProps: prevButtonProps, nextButtonProps: nextButtonProps, errorMessageProps: errorMessageProps } = (0, $40VnT$useCalendar)(props, state);
506
- return /*#__PURE__*/ (0, $40VnT$react).createElement((0, $62cd1e80f0dffb66$export$bfd52a43017368fe), {
507
- ...props,
508
- visibleMonths: visibleMonths,
509
- state: state,
510
- calendarRef: domRef,
511
- calendarProps: calendarProps,
512
- prevButtonProps: prevButtonProps,
513
- nextButtonProps: nextButtonProps,
514
- errorMessageProps: errorMessageProps
515
- });
516
- }
517
- /**
518
- * Calendars display a grid of days in one or more months and allow users to select a single date.
519
- */ const $d2b8d4577dd88671$export$e1aef45b828286de = /*#__PURE__*/ (0, $40VnT$react).forwardRef($d2b8d4577dd88671$var$Calendar);
520
-
521
-
522
- /*
523
- * Copyright 2020 Adobe. All rights reserved.
524
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
525
- * you may not use this file except in compliance with the License. You may obtain a copy
526
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
527
- *
528
- * Unless required by applicable law or agreed to in writing, software distributed under
529
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
530
- * OF ANY KIND, either express or implied. See the License for the specific language
531
- * governing permissions and limitations under the License.
532
- */
533
-
534
-
535
-
536
-
537
-
538
-
539
-
540
- function $8b1e8eddbf3b15de$var$RangeCalendar(props, ref) {
541
- props = (0, $40VnT$useProviderProps)(props);
542
- let { visibleMonths: visibleMonths = 1 } = props;
543
- visibleMonths = Math.max(visibleMonths, 1);
544
- let visibleDuration = (0, $40VnT$useMemo)(()=>({
545
- months: visibleMonths
546
- }), [
547
- visibleMonths
548
- ]);
549
- let { locale: locale } = (0, $40VnT$useLocale)();
550
- let state = (0, $40VnT$useRangeCalendarState)({
551
- ...props,
552
- locale: locale,
553
- visibleDuration: visibleDuration,
554
- createCalendar: $40VnT$createCalendar
555
- });
556
- let domRef = (0, $40VnT$useRef)();
557
- (0, $40VnT$useImperativeHandle)(ref, ()=>({
558
- ...(0, $40VnT$createDOMRef)(domRef),
559
- focus () {
560
- state.setFocused(true);
561
- }
562
- }));
563
- let { calendarProps: calendarProps, prevButtonProps: prevButtonProps, nextButtonProps: nextButtonProps, errorMessageProps: errorMessageProps } = (0, $40VnT$useRangeCalendar)(props, state, domRef);
564
- return /*#__PURE__*/ (0, $40VnT$react).createElement((0, $62cd1e80f0dffb66$export$bfd52a43017368fe), {
565
- ...props,
566
- visibleMonths: visibleMonths,
567
- state: state,
568
- calendarRef: domRef,
569
- calendarProps: calendarProps,
570
- prevButtonProps: prevButtonProps,
571
- nextButtonProps: nextButtonProps,
572
- errorMessageProps: errorMessageProps
573
- });
574
- }
575
- /**
576
- * RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates.
577
- */ const $8b1e8eddbf3b15de$export$a4f5c8b89d277a8d = /*#__PURE__*/ (0, $40VnT$react).forwardRef($8b1e8eddbf3b15de$var$RangeCalendar);
578
15
 
579
16
 
580
17