@react-spectrum/datepicker 3.9.4 → 3.9.6

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 (74) hide show
  1. package/dist/DateField.main.js +110 -0
  2. package/dist/DateField.main.js.map +1 -0
  3. package/dist/DateField.mjs +105 -0
  4. package/dist/DateField.module.js +105 -0
  5. package/dist/DateField.module.js.map +1 -0
  6. package/dist/DatePicker.main.js +198 -0
  7. package/dist/DatePicker.main.js.map +1 -0
  8. package/dist/DatePicker.mjs +193 -0
  9. package/dist/DatePicker.module.js +193 -0
  10. package/dist/DatePicker.module.js.map +1 -0
  11. package/dist/DatePickerField.main.js +72 -0
  12. package/dist/DatePickerField.main.js.map +1 -0
  13. package/dist/DatePickerField.mjs +67 -0
  14. package/dist/DatePickerField.module.js +67 -0
  15. package/dist/DatePickerField.module.js.map +1 -0
  16. package/dist/DatePickerSegment.main.js +76 -0
  17. package/dist/DatePickerSegment.main.js.map +1 -0
  18. package/dist/DatePickerSegment.mjs +71 -0
  19. package/dist/DatePickerSegment.module.js +71 -0
  20. package/dist/DatePickerSegment.module.js.map +1 -0
  21. package/dist/DateRangePicker.main.js +225 -0
  22. package/dist/DateRangePicker.main.js.map +1 -0
  23. package/dist/DateRangePicker.mjs +220 -0
  24. package/dist/DateRangePicker.module.js +220 -0
  25. package/dist/DateRangePicker.module.js.map +1 -0
  26. package/dist/Input.main.js +123 -0
  27. package/dist/Input.main.js.map +1 -0
  28. package/dist/Input.mjs +118 -0
  29. package/dist/Input.module.js +118 -0
  30. package/dist/Input.module.js.map +1 -0
  31. package/dist/TimeField.main.js +102 -0
  32. package/dist/TimeField.main.js.map +1 -0
  33. package/dist/TimeField.mjs +97 -0
  34. package/dist/TimeField.module.js +97 -0
  35. package/dist/TimeField.module.js.map +1 -0
  36. package/dist/import.mjs +4 -1136
  37. package/dist/inputgroup_vars_css.main.js +86 -0
  38. package/dist/inputgroup_vars_css.main.js.map +1 -0
  39. package/dist/inputgroup_vars_css.mjs +88 -0
  40. package/dist/inputgroup_vars_css.module.js +88 -0
  41. package/dist/inputgroup_vars_css.module.js.map +1 -0
  42. package/dist/intlStrings.main.js +108 -0
  43. package/dist/intlStrings.main.js.map +1 -0
  44. package/dist/intlStrings.mjs +110 -0
  45. package/dist/intlStrings.module.js +110 -0
  46. package/dist/intlStrings.module.js.map +1 -0
  47. package/dist/main.js +8 -1136
  48. package/dist/main.js.map +1 -1
  49. package/dist/module.js +4 -1136
  50. package/dist/module.js.map +1 -1
  51. package/dist/styles.36ea4632.css +209 -0
  52. package/dist/styles.36ea4632.css.map +1 -0
  53. package/dist/styles_css.main.js +74 -0
  54. package/dist/styles_css.main.js.map +1 -0
  55. package/dist/styles_css.mjs +76 -0
  56. package/dist/styles_css.module.js +76 -0
  57. package/dist/styles_css.module.js.map +1 -0
  58. package/dist/textfield_vars_css.main.js +74 -0
  59. package/dist/textfield_vars_css.main.js.map +1 -0
  60. package/dist/textfield_vars_css.mjs +76 -0
  61. package/dist/textfield_vars_css.module.js +76 -0
  62. package/dist/textfield_vars_css.module.js.map +1 -0
  63. package/dist/utils.main.js +89 -0
  64. package/dist/utils.main.js.map +1 -0
  65. package/dist/utils.mjs +82 -0
  66. package/dist/utils.module.js +82 -0
  67. package/dist/utils.module.js.map +1 -0
  68. package/dist/vars.3692148b.css +549 -0
  69. package/dist/vars.3692148b.css.map +1 -0
  70. package/dist/vars.ccbd2e3f.css +649 -0
  71. package/dist/vars.ccbd2e3f.css.map +1 -0
  72. package/package.json +22 -22
  73. package/dist/main.css +0 -1626
  74. package/dist/main.css.map +0 -1
package/dist/import.mjs CHANGED
@@ -1,67 +1,8 @@
1
- import "./main.css";
2
- import $557f7da83617ebdf$exports from "./ar-AE.mjs";
3
- import $d9d9d0bb24b4de48$exports from "./bg-BG.mjs";
4
- import $957f034d30ca532a$exports from "./cs-CZ.mjs";
5
- import $b5644a9daaf97251$exports from "./da-DK.mjs";
6
- import $7766b8cb542dd7d4$exports from "./de-DE.mjs";
7
- import $ac788cb25511130e$exports from "./el-GR.mjs";
8
- import $1729b68fc5d3f126$exports from "./en-US.mjs";
9
- import $76a414311c9ecad7$exports from "./es-ES.mjs";
10
- import $2c9039f4a2d8ea02$exports from "./et-EE.mjs";
11
- import $59d615bd839f58d3$exports from "./fi-FI.mjs";
12
- import $ab45056fafb7a102$exports from "./fr-FR.mjs";
13
- import $67d5b76c8e7450d9$exports from "./he-IL.mjs";
14
- import $2f9e52c02bf38498$exports from "./hr-HR.mjs";
15
- import $a151dd0df33d619b$exports from "./hu-HU.mjs";
16
- import $a3dd26e20adf6e63$exports from "./it-IT.mjs";
17
- import $60886f131a8aaf64$exports from "./ja-JP.mjs";
18
- import $be521f3abe2a5b42$exports from "./ko-KR.mjs";
19
- import $18449f05cd88144d$exports from "./lt-LT.mjs";
20
- import $ab3b62ef853668f6$exports from "./lv-LV.mjs";
21
- import $bd4ef464092f2e3d$exports from "./nb-NO.mjs";
22
- import $615f888e9fb9e405$exports from "./nl-NL.mjs";
23
- import $348051b3267461b4$exports from "./pl-PL.mjs";
24
- import $80e1f5b9b1708516$exports from "./pt-BR.mjs";
25
- import $3f165936910f27a7$exports from "./pt-PT.mjs";
26
- import $725af9f963c35984$exports from "./ro-RO.mjs";
27
- import $5ced0dcf66f00658$exports from "./ru-RU.mjs";
28
- import $f99469db2a9ce4d6$exports from "./sk-SK.mjs";
29
- import $23b4f990ce23d252$exports from "./sl-SI.mjs";
30
- import $76c292be85991194$exports from "./sr-SP.mjs";
31
- import $eb1e0d6d87dadd36$exports from "./sv-SE.mjs";
32
- import $c111b245b4961c2e$exports from "./tr-TR.mjs";
33
- import $64c0344455eff457$exports from "./uk-UA.mjs";
34
- import $08d7bccfda7015e7$exports from "./zh-CN.mjs";
35
- import $c7c7bc6cc4226b9e$exports from "./zh-TW.mjs";
36
- import {Calendar as $aayOp$Calendar, RangeCalendar as $aayOp$RangeCalendar} from "@react-spectrum/calendar";
37
- import $aayOp$spectrumiconsworkflowCalendar from "@spectrum-icons/workflow/Calendar";
38
- import {classNames as $aayOp$classNames, useValueEffect as $aayOp$useValueEffect, createDOMRef as $aayOp$createDOMRef} from "@react-spectrum/utils";
39
- import {Content as $aayOp$Content} from "@react-spectrum/view";
40
- import {DialogTrigger as $aayOp$DialogTrigger, Dialog as $aayOp$Dialog} from "@react-spectrum/dialog";
41
- import {Field as $aayOp$Field} from "@react-spectrum/label";
42
- import {FieldButton as $aayOp$FieldButton} from "@react-spectrum/button";
43
- import {mergeProps as $aayOp$mergeProps, useLayoutEffect as $aayOp$useLayoutEffect, useResizeObserver as $aayOp$useResizeObserver, useEvent as $aayOp$useEvent, mergeRefs as $aayOp$mergeRefs} from "@react-aria/utils";
44
- import $aayOp$react, {useRef as $aayOp$useRef, useCallback as $aayOp$useCallback, useMemo as $aayOp$useMemo, useState as $aayOp$useState, useImperativeHandle as $aayOp$useImperativeHandle} from "react";
45
- import {useDatePicker as $aayOp$useDatePicker, useDateField as $aayOp$useDateField, useDateSegment as $aayOp$useDateSegment, useTimeField as $aayOp$useTimeField, useDisplayNames as $aayOp$useDisplayNames, useDateRangePicker as $aayOp$useDateRangePicker} from "@react-aria/datepicker";
46
- import {useDatePickerState as $aayOp$useDatePickerState, useDateFieldState as $aayOp$useDateFieldState, useTimeFieldState as $aayOp$useTimeFieldState, useDateRangePickerState as $aayOp$useDateRangePickerState} from "@react-stately/datepicker";
47
- import {useFocusRing as $aayOp$useFocusRing, createFocusManager as $aayOp$createFocusManager} from "@react-aria/focus";
48
- import {useFormProps as $aayOp$useFormProps} from "@react-spectrum/form";
49
- import {useHover as $aayOp$useHover} from "@react-aria/interactions";
50
- import {useLocale as $aayOp$useLocale, useLocalizedStringFormatter as $aayOp$useLocalizedStringFormatter, useDateFormatter as $aayOp$useDateFormatter} from "@react-aria/i18n";
51
- import {useProviderProps as $aayOp$useProviderProps, useProvider as $aayOp$useProvider} from "@react-spectrum/provider";
52
- import {createCalendar as $aayOp$createCalendar} from "@internationalized/date";
53
- import $aayOp$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
54
- import $aayOp$spectrumiconsuiCheckmarkMedium from "@spectrum-icons/ui/CheckmarkMedium";
55
- import {Flex as $aayOp$Flex} from "@react-spectrum/layout";
1
+ import {DatePicker as $beaeefa091999363$export$5109c6dd95d8fb00} from "./DatePicker.mjs";
2
+ import {DateRangePicker as $cb301300011a98f7$export$17334619f3ac2224} from "./DateRangePicker.mjs";
3
+ import {TimeField as $f0a04554754386b6$export$5eaee2322dd727eb} from "./TimeField.mjs";
4
+ import {DateField as $0129798af6791690$export$d9781c7894a82487} from "./DateField.mjs";
56
5
 
57
-
58
- function $parcel$interopDefault(a) {
59
- return a && a.__esModule ? a.default : a;
60
- }
61
-
62
- function $parcel$export(e, n, v, s) {
63
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
64
- }
65
6
  /*
66
7
  * Copyright 2020 Adobe. All rights reserved.
67
8
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -73,1081 +14,8 @@ function $parcel$export(e, n, v, s) {
73
14
  * OF ANY KIND, either express or implied. See the License for the specific language
74
15
  * governing permissions and limitations under the License.
75
16
  */ /// <reference types="css-module-types" />
76
- /*
77
- * Copyright 2020 Adobe. All rights reserved.
78
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
79
- * you may not use this file except in compliance with the License. You may obtain a copy
80
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
81
- *
82
- * Unless required by applicable law or agreed to in writing, software distributed under
83
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
84
- * OF ANY KIND, either express or implied. See the License for the specific language
85
- * governing permissions and limitations under the License.
86
- */
87
-
88
-
89
-
90
- /*
91
- * Copyright 2020 Adobe. All rights reserved.
92
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
93
- * you may not use this file except in compliance with the License. You may obtain a copy
94
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
95
- *
96
- * Unless required by applicable law or agreed to in writing, software distributed under
97
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
98
- * OF ANY KIND, either express or implied. See the License for the specific language
99
- * governing permissions and limitations under the License.
100
- */
101
-
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
- var $465eb3a688ef3440$exports = {};
115
-
116
- $parcel$export($465eb3a688ef3440$exports, "is-invalid", () => $465eb3a688ef3440$export$14a30de2866685fa, (v) => $465eb3a688ef3440$export$14a30de2866685fa = v);
117
- $parcel$export($465eb3a688ef3440$exports, "is-placeholder", () => $465eb3a688ef3440$export$e5b2f5233e4e5194, (v) => $465eb3a688ef3440$export$e5b2f5233e4e5194 = v);
118
- $parcel$export($465eb3a688ef3440$exports, "is-read-only", () => $465eb3a688ef3440$export$dddce3ae23a6e3ea, (v) => $465eb3a688ef3440$export$dddce3ae23a6e3ea = v);
119
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-DateField", () => $465eb3a688ef3440$export$c96d01b692101b8a, (v) => $465eb3a688ef3440$export$c96d01b692101b8a = v);
120
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-DateField-Input", () => $465eb3a688ef3440$export$d57270210c079fad, (v) => $465eb3a688ef3440$export$d57270210c079fad = v);
121
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-DatePicker-cell", () => $465eb3a688ef3440$export$947f5cb8a73639a4, (v) => $465eb3a688ef3440$export$947f5cb8a73639a4 = v);
122
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-DatePicker-placeholder", () => $465eb3a688ef3440$export$d7b1df8540d8ce55, (v) => $465eb3a688ef3440$export$d7b1df8540d8ce55 = v);
123
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-calendar", () => $465eb3a688ef3440$export$640bfc6f7362791a, (v) => $465eb3a688ef3440$export$640bfc6f7362791a = v);
124
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-dialog", () => $465eb3a688ef3440$export$7c3cb625bb792356, (v) => $465eb3a688ef3440$export$7c3cb625bb792356 = v);
125
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-dialogContent", () => $465eb3a688ef3440$export$94c97d6b6a927921, (v) => $465eb3a688ef3440$export$94c97d6b6a927921 = v);
126
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-endField", () => $465eb3a688ef3440$export$b41789438b49c852, (v) => $465eb3a688ef3440$export$b41789438b49c852 = v);
127
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-field", () => $465eb3a688ef3440$export$8cbece9fb909350d, (v) => $465eb3a688ef3440$export$8cbece9fb909350d = v);
128
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-fieldWrapper", () => $465eb3a688ef3440$export$48501287c6ce4708, (v) => $465eb3a688ef3440$export$48501287c6ce4708 = v);
129
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-input", () => $465eb3a688ef3440$export$4cdb39b006dc840a, (v) => $465eb3a688ef3440$export$4cdb39b006dc840a = v);
130
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-inputContents", () => $465eb3a688ef3440$export$609545772ae0466a, (v) => $465eb3a688ef3440$export$609545772ae0466a = v);
131
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-literal", () => $465eb3a688ef3440$export$24a265734c16a355, (v) => $465eb3a688ef3440$export$24a265734c16a355 = v);
132
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-rangeDash", () => $465eb3a688ef3440$export$1ae39afd2cf49425, (v) => $465eb3a688ef3440$export$1ae39afd2cf49425 = v);
133
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-segments", () => $465eb3a688ef3440$export$b9c34f0306ac2ffc, (v) => $465eb3a688ef3440$export$b9c34f0306ac2ffc = v);
134
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-startField", () => $465eb3a688ef3440$export$eec05853f5fc7ef8, (v) => $465eb3a688ef3440$export$eec05853f5fc7ef8 = v);
135
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-timeFields", () => $465eb3a688ef3440$export$8d47712a13573e39, (v) => $465eb3a688ef3440$export$8d47712a13573e39 = v);
136
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-TimeField", () => $465eb3a688ef3440$export$61c201f1ba261729, (v) => $465eb3a688ef3440$export$61c201f1ba261729 = v);
137
- $parcel$export($465eb3a688ef3440$exports, "react-spectrum-TimeField-fieldWrapper", () => $465eb3a688ef3440$export$3008240fa163ee96, (v) => $465eb3a688ef3440$export$3008240fa163ee96 = v);
138
- var $465eb3a688ef3440$export$14a30de2866685fa;
139
- var $465eb3a688ef3440$export$e5b2f5233e4e5194;
140
- var $465eb3a688ef3440$export$dddce3ae23a6e3ea;
141
- var $465eb3a688ef3440$export$c96d01b692101b8a;
142
- var $465eb3a688ef3440$export$d57270210c079fad;
143
- var $465eb3a688ef3440$export$947f5cb8a73639a4;
144
- var $465eb3a688ef3440$export$d7b1df8540d8ce55;
145
- var $465eb3a688ef3440$export$640bfc6f7362791a;
146
- var $465eb3a688ef3440$export$7c3cb625bb792356;
147
- var $465eb3a688ef3440$export$94c97d6b6a927921;
148
- var $465eb3a688ef3440$export$b41789438b49c852;
149
- var $465eb3a688ef3440$export$8cbece9fb909350d;
150
- var $465eb3a688ef3440$export$48501287c6ce4708;
151
- var $465eb3a688ef3440$export$4cdb39b006dc840a;
152
- var $465eb3a688ef3440$export$609545772ae0466a;
153
- var $465eb3a688ef3440$export$24a265734c16a355;
154
- var $465eb3a688ef3440$export$1ae39afd2cf49425;
155
- var $465eb3a688ef3440$export$b9c34f0306ac2ffc;
156
- var $465eb3a688ef3440$export$eec05853f5fc7ef8;
157
- var $465eb3a688ef3440$export$8d47712a13573e39;
158
- var $465eb3a688ef3440$export$61c201f1ba261729;
159
- var $465eb3a688ef3440$export$3008240fa163ee96;
160
- $465eb3a688ef3440$export$14a30de2866685fa = `_2n04KW_is-invalid`;
161
- $465eb3a688ef3440$export$e5b2f5233e4e5194 = `_2n04KW_is-placeholder`;
162
- $465eb3a688ef3440$export$dddce3ae23a6e3ea = `_2n04KW_is-read-only`;
163
- $465eb3a688ef3440$export$c96d01b692101b8a = `_2n04KW_react-spectrum-DateField`;
164
- $465eb3a688ef3440$export$d57270210c079fad = `_2n04KW_react-spectrum-DateField-Input`;
165
- $465eb3a688ef3440$export$947f5cb8a73639a4 = `_2n04KW_react-spectrum-DatePicker-cell`;
166
- $465eb3a688ef3440$export$d7b1df8540d8ce55 = `_2n04KW_react-spectrum-DatePicker-placeholder`;
167
- $465eb3a688ef3440$export$640bfc6f7362791a = `_2n04KW_react-spectrum-Datepicker-calendar`;
168
- $465eb3a688ef3440$export$7c3cb625bb792356 = `_2n04KW_react-spectrum-Datepicker-dialog`;
169
- $465eb3a688ef3440$export$94c97d6b6a927921 = `_2n04KW_react-spectrum-Datepicker-dialogContent`;
170
- $465eb3a688ef3440$export$b41789438b49c852 = `_2n04KW_react-spectrum-Datepicker-endField`;
171
- $465eb3a688ef3440$export$8cbece9fb909350d = `_2n04KW_react-spectrum-Datepicker-field`;
172
- $465eb3a688ef3440$export$48501287c6ce4708 = `_2n04KW_react-spectrum-Datepicker-fieldWrapper`;
173
- $465eb3a688ef3440$export$4cdb39b006dc840a = `_2n04KW_react-spectrum-Datepicker-input`;
174
- $465eb3a688ef3440$export$609545772ae0466a = `_2n04KW_react-spectrum-Datepicker-inputContents`;
175
- $465eb3a688ef3440$export$24a265734c16a355 = `_2n04KW_react-spectrum-Datepicker-literal`;
176
- $465eb3a688ef3440$export$1ae39afd2cf49425 = `_2n04KW_react-spectrum-Datepicker-rangeDash`;
177
- $465eb3a688ef3440$export$b9c34f0306ac2ffc = `_2n04KW_react-spectrum-Datepicker-segments`;
178
- $465eb3a688ef3440$export$eec05853f5fc7ef8 = `_2n04KW_react-spectrum-Datepicker-startField`;
179
- $465eb3a688ef3440$export$8d47712a13573e39 = `_2n04KW_react-spectrum-Datepicker-timeFields`;
180
- $465eb3a688ef3440$export$61c201f1ba261729 = `_2n04KW_react-spectrum-TimeField`;
181
- $465eb3a688ef3440$export$3008240fa163ee96 = `_2n04KW_react-spectrum-TimeField-fieldWrapper`;
182
-
183
-
184
-
185
- function $cfa347761f172638$export$6388987c5223b54e({ segment: segment, state: state, ...otherProps }) {
186
- switch(segment.type){
187
- // A separator, e.g. punctuation
188
- case "literal":
189
- return /*#__PURE__*/ (0, $aayOp$react).createElement($cfa347761f172638$var$LiteralSegment, {
190
- segment: segment
191
- });
192
- // Editable segment
193
- default:
194
- return /*#__PURE__*/ (0, $aayOp$react).createElement($cfa347761f172638$var$EditableSegment, {
195
- segment: segment,
196
- state: state,
197
- ...otherProps
198
- });
199
- }
200
- }
201
- function $cfa347761f172638$var$LiteralSegment({ segment: segment }) {
202
- return /*#__PURE__*/ (0, $aayOp$react).createElement("span", {
203
- "aria-hidden": "true",
204
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-literal"),
205
- "data-testid": segment.type === "literal" ? undefined : segment.type
206
- }, segment.text);
207
- }
208
- function $cfa347761f172638$var$EditableSegment({ segment: segment, state: state }) {
209
- let ref = (0, $aayOp$useRef)();
210
- let { segmentProps: segmentProps } = (0, $aayOp$useDateSegment)(segment, state, ref);
211
- return /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
212
- ...segmentProps,
213
- ref: ref,
214
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-DatePicker-cell", {
215
- "is-placeholder": segment.isPlaceholder,
216
- "is-read-only": !segment.isEditable
217
- }),
218
- style: {
219
- ...segmentProps.style,
220
- minWidth: segment.maxValue != null ? String(segment.maxValue).length + "ch" : null
221
- },
222
- "data-testid": segment.type
223
- }, /*#__PURE__*/ (0, $aayOp$react).createElement("span", {
224
- "aria-hidden": "true",
225
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-DatePicker-placeholder")
226
- }, segment.placeholder), segment.isPlaceholder ? "" : segment.text);
227
- }
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
- function $d2bb88c82604b25f$export$34dc4cfa15ead1(props) {
236
- let { isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, inputClassName: inputClassName } = props;
237
- let ref = (0, $aayOp$useRef)();
238
- let { locale: locale } = (0, $aayOp$useLocale)();
239
- let state = (0, $aayOp$useDateFieldState)({
240
- ...props,
241
- locale: locale,
242
- createCalendar: $aayOp$createCalendar
243
- });
244
- let inputRef = (0, $aayOp$useRef)();
245
- let { fieldProps: fieldProps, inputProps: inputProps } = (0, $aayOp$useDateField)({
246
- ...props,
247
- inputRef: inputRef
248
- }, state, ref);
249
- return /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
250
- ...fieldProps,
251
- "data-testid": props["data-testid"],
252
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-segments", inputClassName),
253
- ref: ref
254
- }, state.segments.map((segment, i)=>/*#__PURE__*/ (0, $aayOp$react).createElement((0, $cfa347761f172638$export$6388987c5223b54e), {
255
- key: i,
256
- segment: segment,
257
- state: state,
258
- isDisabled: isDisabled,
259
- isReadOnly: isReadOnly,
260
- isRequired: isRequired
261
- })), /*#__PURE__*/ (0, $aayOp$react).createElement("input", {
262
- ...inputProps,
263
- ref: inputRef
264
- }));
265
- }
266
-
267
-
268
-
269
-
270
-
271
-
272
- /*
273
- * Copyright 2020 Adobe. All rights reserved.
274
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
275
- * you may not use this file except in compliance with the License. You may obtain a copy
276
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
277
- *
278
- * Unless required by applicable law or agreed to in writing, software distributed under
279
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
280
- * OF ANY KIND, either express or implied. See the License for the specific language
281
- * governing permissions and limitations under the License.
282
- */
283
-
284
-
285
-
286
-
287
-
288
- var $c14528ddc146317f$exports = {};
289
-
290
- $parcel$export($c14528ddc146317f$exports, "focus-ring", () => $c14528ddc146317f$export$f39a09f249340e2a, (v) => $c14528ddc146317f$export$f39a09f249340e2a = v);
291
- $parcel$export($c14528ddc146317f$exports, "i18nFontFamily", () => $c14528ddc146317f$export$8c4ee2c50c22c514, (v) => $c14528ddc146317f$export$8c4ee2c50c22c514 = v);
292
- $parcel$export($c14528ddc146317f$exports, "is-disabled", () => $c14528ddc146317f$export$d35bc1e505d1ebbf, (v) => $c14528ddc146317f$export$d35bc1e505d1ebbf = v);
293
- $parcel$export($c14528ddc146317f$exports, "is-focused", () => $c14528ddc146317f$export$e7dc768d35940237, (v) => $c14528ddc146317f$export$e7dc768d35940237 = v);
294
- $parcel$export($c14528ddc146317f$exports, "is-hovered", () => $c14528ddc146317f$export$b8813cd5d7824ce7, (v) => $c14528ddc146317f$export$b8813cd5d7824ce7 = v);
295
- $parcel$export($c14528ddc146317f$exports, "is-placeholder", () => $c14528ddc146317f$export$e5b2f5233e4e5194, (v) => $c14528ddc146317f$export$e5b2f5233e4e5194 = v);
296
- $parcel$export($c14528ddc146317f$exports, "spectrum-FocusRing-ring", () => $c14528ddc146317f$export$4109102f950813a6, (v) => $c14528ddc146317f$export$4109102f950813a6 = v);
297
- $parcel$export($c14528ddc146317f$exports, "spectrum-FocusRing", () => $c14528ddc146317f$export$24c7f46a6e3605dd, (v) => $c14528ddc146317f$export$24c7f46a6e3605dd = v);
298
- $parcel$export($c14528ddc146317f$exports, "spectrum-FocusRing--quiet", () => $c14528ddc146317f$export$2927016961429360, (v) => $c14528ddc146317f$export$2927016961429360 = v);
299
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield", () => $c14528ddc146317f$export$2c8a10299d8b3418, (v) => $c14528ddc146317f$export$2c8a10299d8b3418 = v);
300
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--invalid", () => $c14528ddc146317f$export$58e50b10d30123df, (v) => $c14528ddc146317f$export$58e50b10d30123df = v);
301
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--loadable", () => $c14528ddc146317f$export$14fd30fea6f1348c, (v) => $c14528ddc146317f$export$14fd30fea6f1348c = v);
302
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--multiline", () => $c14528ddc146317f$export$9699f1c538a448a0, (v) => $c14528ddc146317f$export$9699f1c538a448a0 = v);
303
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--quiet", () => $c14528ddc146317f$export$bffd5e3d61a81737, (v) => $c14528ddc146317f$export$bffd5e3d61a81737 = v);
304
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--valid", () => $c14528ddc146317f$export$c2abbc3f970170b7, (v) => $c14528ddc146317f$export$c2abbc3f970170b7 = v);
305
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-circleLoader", () => $c14528ddc146317f$export$82a249fb4d6127, (v) => $c14528ddc146317f$export$82a249fb4d6127 = v);
306
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-icon", () => $c14528ddc146317f$export$222d1ccd1870be1d, (v) => $c14528ddc146317f$export$222d1ccd1870be1d = v);
307
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-input", () => $c14528ddc146317f$export$1ac009feb2b0bd0c, (v) => $c14528ddc146317f$export$1ac009feb2b0bd0c = v);
308
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-inputIcon", () => $c14528ddc146317f$export$c1cdcaa5fe76a871, (v) => $c14528ddc146317f$export$c1cdcaa5fe76a871 = v);
309
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-validationIcon", () => $c14528ddc146317f$export$cf0ead5b44db0da3, (v) => $c14528ddc146317f$export$cf0ead5b44db0da3 = v);
310
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-wrapper", () => $c14528ddc146317f$export$dd1165e0e6012973, (v) => $c14528ddc146317f$export$dd1165e0e6012973 = v);
311
- $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-wrapper--quiet", () => $c14528ddc146317f$export$9fcb3d6af94a9d12, (v) => $c14528ddc146317f$export$9fcb3d6af94a9d12 = v);
312
- var $c14528ddc146317f$export$f39a09f249340e2a;
313
- var $c14528ddc146317f$export$8c4ee2c50c22c514;
314
- var $c14528ddc146317f$export$d35bc1e505d1ebbf;
315
- var $c14528ddc146317f$export$e7dc768d35940237;
316
- var $c14528ddc146317f$export$b8813cd5d7824ce7;
317
- var $c14528ddc146317f$export$e5b2f5233e4e5194;
318
- var $c14528ddc146317f$export$4109102f950813a6;
319
- var $c14528ddc146317f$export$24c7f46a6e3605dd;
320
- var $c14528ddc146317f$export$2927016961429360;
321
- var $c14528ddc146317f$export$2c8a10299d8b3418;
322
- var $c14528ddc146317f$export$58e50b10d30123df;
323
- var $c14528ddc146317f$export$14fd30fea6f1348c;
324
- var $c14528ddc146317f$export$9699f1c538a448a0;
325
- var $c14528ddc146317f$export$bffd5e3d61a81737;
326
- var $c14528ddc146317f$export$c2abbc3f970170b7;
327
- var $c14528ddc146317f$export$82a249fb4d6127;
328
- var $c14528ddc146317f$export$222d1ccd1870be1d;
329
- var $c14528ddc146317f$export$1ac009feb2b0bd0c;
330
- var $c14528ddc146317f$export$c1cdcaa5fe76a871;
331
- var $c14528ddc146317f$export$cf0ead5b44db0da3;
332
- var $c14528ddc146317f$export$dd1165e0e6012973;
333
- var $c14528ddc146317f$export$9fcb3d6af94a9d12;
334
- $c14528ddc146317f$export$f39a09f249340e2a = `YO3Nla_focus-ring`;
335
- $c14528ddc146317f$export$8c4ee2c50c22c514 = `YO3Nla_i18nFontFamily`;
336
- $c14528ddc146317f$export$d35bc1e505d1ebbf = `YO3Nla_is-disabled`;
337
- $c14528ddc146317f$export$e7dc768d35940237 = `YO3Nla_is-focused`;
338
- $c14528ddc146317f$export$b8813cd5d7824ce7 = `YO3Nla_is-hovered`;
339
- $c14528ddc146317f$export$e5b2f5233e4e5194 = `YO3Nla_is-placeholder`;
340
- $c14528ddc146317f$export$4109102f950813a6 = `YO3Nla_spectrum-FocusRing-ring`;
341
- $c14528ddc146317f$export$24c7f46a6e3605dd = `YO3Nla_spectrum-FocusRing ${$c14528ddc146317f$export$4109102f950813a6}`;
342
- $c14528ddc146317f$export$2927016961429360 = `YO3Nla_spectrum-FocusRing--quiet`;
343
- $c14528ddc146317f$export$2c8a10299d8b3418 = `YO3Nla_spectrum-Textfield ${$c14528ddc146317f$export$24c7f46a6e3605dd}`;
344
- $c14528ddc146317f$export$58e50b10d30123df = `YO3Nla_spectrum-Textfield--invalid`;
345
- $c14528ddc146317f$export$14fd30fea6f1348c = `YO3Nla_spectrum-Textfield--loadable`;
346
- $c14528ddc146317f$export$9699f1c538a448a0 = `YO3Nla_spectrum-Textfield--multiline`;
347
- $c14528ddc146317f$export$bffd5e3d61a81737 = `YO3Nla_spectrum-Textfield--quiet ${$c14528ddc146317f$export$2927016961429360}`;
348
- $c14528ddc146317f$export$c2abbc3f970170b7 = `YO3Nla_spectrum-Textfield--valid`;
349
- $c14528ddc146317f$export$82a249fb4d6127 = `YO3Nla_spectrum-Textfield-circleLoader`;
350
- $c14528ddc146317f$export$222d1ccd1870be1d = `YO3Nla_spectrum-Textfield-icon`;
351
- $c14528ddc146317f$export$1ac009feb2b0bd0c = `YO3Nla_spectrum-Textfield-input ${$c14528ddc146317f$export$8c4ee2c50c22c514}`;
352
- $c14528ddc146317f$export$c1cdcaa5fe76a871 = `YO3Nla_spectrum-Textfield-inputIcon`;
353
- $c14528ddc146317f$export$cf0ead5b44db0da3 = `YO3Nla_spectrum-Textfield-validationIcon`;
354
- $c14528ddc146317f$export$dd1165e0e6012973 = `YO3Nla_spectrum-Textfield-wrapper`;
355
- $c14528ddc146317f$export$9fcb3d6af94a9d12 = `YO3Nla_spectrum-Textfield-wrapper--quiet`;
356
-
357
-
358
-
359
- function $79348162c55d687f$var$Input(props, ref) {
360
- let inputRef = (0, $aayOp$useRef)(null);
361
- let { isDisabled: isDisabled, isQuiet: isQuiet, inputClassName: inputClassName, validationState: validationState, children: children, fieldProps: fieldProps, className: className, style: style, disableFocusRing: disableFocusRing } = props;
362
- // Reserve padding for the error icon when the width of the input is unconstrained.
363
- // When constrained, don't reserve space because adding it only when invalid will
364
- // not cause a layout shift.
365
- let [reservePadding, setReservePadding] = (0, $aayOp$useValueEffect)(false);
366
- let onResize = (0, $aayOp$useCallback)(()=>setReservePadding(function*(reservePadding) {
367
- if (inputRef.current) {
368
- if (reservePadding) // Try to collapse padding if the content is clipped.
369
- {
370
- if (inputRef.current.scrollWidth > inputRef.current.offsetWidth) {
371
- let width = inputRef.current.parentElement.offsetWidth;
372
- yield false;
373
- // If removing padding causes a layout shift, add it back.
374
- if (inputRef.current.parentElement.offsetWidth !== width) yield true;
375
- }
376
- } else // Try to add padding if the content is not clipped.
377
- if (inputRef.current.offsetWidth >= inputRef.current.scrollWidth) {
378
- let width = inputRef.current.parentElement.offsetWidth;
379
- yield true;
380
- // If adding padding does not change the width (i.e. width is constrained), remove it again.
381
- if (inputRef.current.parentElement.offsetWidth === width) yield false;
382
- }
383
- }
384
- }), [
385
- inputRef,
386
- setReservePadding
387
- ]);
388
- (0, $aayOp$useLayoutEffect)(onResize, [
389
- onResize
390
- ]);
391
- (0, $aayOp$useResizeObserver)({
392
- ref: inputRef,
393
- onResize: onResize
394
- });
395
- // We also need to listen for resize events of the window so we can detect
396
- // when there is enough space for the padding to be re-added. Ideally we'd
397
- // use a resize observer on a parent element, but it's hard to know _what_
398
- // parent element.
399
- (0, $aayOp$useEvent)((0, $aayOp$useRef)(typeof window !== "undefined" ? window : null), "resize", onResize);
400
- let { focusProps: focusProps, isFocusVisible: isFocusVisible, isFocused: isFocused } = (0, $aayOp$useFocusRing)({
401
- isTextInput: true,
402
- within: true
403
- });
404
- let isInvalid = validationState === "invalid" && !isDisabled;
405
- let textfieldClass = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports))), "spectrum-Textfield", {
406
- "spectrum-Textfield--invalid": isInvalid,
407
- "spectrum-Textfield--valid": validationState === "valid" && !isDisabled,
408
- "spectrum-Textfield--quiet": isQuiet,
409
- "focus-ring": isFocusVisible && !disableFocusRing
410
- }, (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-field"), className);
411
- let inputClass = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports))), "spectrum-Textfield-input", {
412
- "is-disabled": isDisabled,
413
- "is-focused": isFocused
414
- }, (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-DateField-Input"), reservePadding && (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-input"), inputClassName);
415
- let iconClass = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports))), "spectrum-Textfield-validationIcon");
416
- let validationIcon = null;
417
- if (validationState === "invalid" && !isDisabled) validationIcon = /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$spectrumiconsuiAlertMedium), {
418
- "data-testid": "invalid-icon",
419
- UNSAFE_className: iconClass
420
- });
421
- else if (validationState === "valid" && !isDisabled) validationIcon = /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$spectrumiconsuiCheckmarkMedium), {
422
- "data-testid": "valid-icon",
423
- UNSAFE_className: iconClass
424
- });
425
- return /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
426
- role: "presentation",
427
- ...(0, $aayOp$mergeProps)(fieldProps, focusProps),
428
- className: textfieldClass,
429
- style: style
430
- }, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
431
- role: "presentation",
432
- className: inputClass
433
- }, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
434
- role: "presentation",
435
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-inputContents"),
436
- ref: (0, $aayOp$mergeRefs)(ref, inputRef)
437
- }, children)), validationIcon);
438
- }
439
- const $79348162c55d687f$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, $aayOp$react).forwardRef($79348162c55d687f$var$Input);
440
-
441
-
442
- var $0e5701b873e6b9fd$exports = {};
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
-
470
-
471
-
472
-
473
-
474
-
475
-
476
-
477
- $0e5701b873e6b9fd$exports = {
478
- "ar-AE": $557f7da83617ebdf$exports,
479
- "bg-BG": $d9d9d0bb24b4de48$exports,
480
- "cs-CZ": $957f034d30ca532a$exports,
481
- "da-DK": $b5644a9daaf97251$exports,
482
- "de-DE": $7766b8cb542dd7d4$exports,
483
- "el-GR": $ac788cb25511130e$exports,
484
- "en-US": $1729b68fc5d3f126$exports,
485
- "es-ES": $76a414311c9ecad7$exports,
486
- "et-EE": $2c9039f4a2d8ea02$exports,
487
- "fi-FI": $59d615bd839f58d3$exports,
488
- "fr-FR": $ab45056fafb7a102$exports,
489
- "he-IL": $67d5b76c8e7450d9$exports,
490
- "hr-HR": $2f9e52c02bf38498$exports,
491
- "hu-HU": $a151dd0df33d619b$exports,
492
- "it-IT": $a3dd26e20adf6e63$exports,
493
- "ja-JP": $60886f131a8aaf64$exports,
494
- "ko-KR": $be521f3abe2a5b42$exports,
495
- "lt-LT": $18449f05cd88144d$exports,
496
- "lv-LV": $ab3b62ef853668f6$exports,
497
- "nb-NO": $bd4ef464092f2e3d$exports,
498
- "nl-NL": $615f888e9fb9e405$exports,
499
- "pl-PL": $348051b3267461b4$exports,
500
- "pt-BR": $80e1f5b9b1708516$exports,
501
- "pt-PT": $3f165936910f27a7$exports,
502
- "ro-RO": $725af9f963c35984$exports,
503
- "ru-RU": $5ced0dcf66f00658$exports,
504
- "sk-SK": $f99469db2a9ce4d6$exports,
505
- "sl-SI": $23b4f990ce23d252$exports,
506
- "sr-SP": $76c292be85991194$exports,
507
- "sv-SE": $eb1e0d6d87dadd36$exports,
508
- "tr-TR": $c111b245b4961c2e$exports,
509
- "uk-UA": $64c0344455eff457$exports,
510
- "zh-CN": $08d7bccfda7015e7$exports,
511
- "zh-TW": $c7c7bc6cc4226b9e$exports
512
- };
513
-
514
-
515
-
516
-
517
-
518
- var $8fb52a80fe52b1c7$exports = {};
519
-
520
- $parcel$export($8fb52a80fe52b1c7$exports, "focus-ring", () => $8fb52a80fe52b1c7$export$f39a09f249340e2a, (v) => $8fb52a80fe52b1c7$export$f39a09f249340e2a = v);
521
- $parcel$export($8fb52a80fe52b1c7$exports, "i18nFontFamily", () => $8fb52a80fe52b1c7$export$8c4ee2c50c22c514, (v) => $8fb52a80fe52b1c7$export$8c4ee2c50c22c514 = v);
522
- $parcel$export($8fb52a80fe52b1c7$exports, "is-disabled", () => $8fb52a80fe52b1c7$export$d35bc1e505d1ebbf, (v) => $8fb52a80fe52b1c7$export$d35bc1e505d1ebbf = v);
523
- $parcel$export($8fb52a80fe52b1c7$exports, "is-focused", () => $8fb52a80fe52b1c7$export$e7dc768d35940237, (v) => $8fb52a80fe52b1c7$export$e7dc768d35940237 = v);
524
- $parcel$export($8fb52a80fe52b1c7$exports, "is-hovered", () => $8fb52a80fe52b1c7$export$b8813cd5d7824ce7, (v) => $8fb52a80fe52b1c7$export$b8813cd5d7824ce7 = v);
525
- $parcel$export($8fb52a80fe52b1c7$exports, "is-selected", () => $8fb52a80fe52b1c7$export$1e0fb04f31d3c22a, (v) => $8fb52a80fe52b1c7$export$1e0fb04f31d3c22a = v);
526
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker--datetimeRange", () => $8fb52a80fe52b1c7$export$58dd7cd23c92699f, (v) => $8fb52a80fe52b1c7$export$58dd7cd23c92699f = v);
527
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker--range", () => $8fb52a80fe52b1c7$export$1d8b0b29e11d7cd, (v) => $8fb52a80fe52b1c7$export$1d8b0b29e11d7cd = v);
528
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker--rangeDash", () => $8fb52a80fe52b1c7$export$202113e883898dc, (v) => $8fb52a80fe52b1c7$export$202113e883898dc = v);
529
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker-endField", () => $8fb52a80fe52b1c7$export$1c72fb41fa4f21ee, (v) => $8fb52a80fe52b1c7$export$1c72fb41fa4f21ee = v);
530
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker-focusRing", () => $8fb52a80fe52b1c7$export$eb262b15b9261fde, (v) => $8fb52a80fe52b1c7$export$eb262b15b9261fde = v);
531
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker-startField", () => $8fb52a80fe52b1c7$export$80f9c838a8406469, (v) => $8fb52a80fe52b1c7$export$80f9c838a8406469 = v);
532
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-FieldButton", () => $8fb52a80fe52b1c7$export$a024c99ecf6b5741, (v) => $8fb52a80fe52b1c7$export$a024c99ecf6b5741 = v);
533
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-FieldButton--invalid", () => $8fb52a80fe52b1c7$export$c9f503f672e8a3c1, (v) => $8fb52a80fe52b1c7$export$c9f503f672e8a3c1 = v);
534
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-FocusRing-ring", () => $8fb52a80fe52b1c7$export$4109102f950813a6, (v) => $8fb52a80fe52b1c7$export$4109102f950813a6 = v);
535
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-FocusRing", () => $8fb52a80fe52b1c7$export$24c7f46a6e3605dd, (v) => $8fb52a80fe52b1c7$export$24c7f46a6e3605dd = v);
536
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-FocusRing--quiet", () => $8fb52a80fe52b1c7$export$2927016961429360, (v) => $8fb52a80fe52b1c7$export$2927016961429360 = v);
537
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup", () => $8fb52a80fe52b1c7$export$5be359c1227eedcb, (v) => $8fb52a80fe52b1c7$export$5be359c1227eedcb = v);
538
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup--invalid", () => $8fb52a80fe52b1c7$export$3b48509739a9cda0, (v) => $8fb52a80fe52b1c7$export$3b48509739a9cda0 = v);
539
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup--quiet", () => $8fb52a80fe52b1c7$export$ebf265ffc062029b, (v) => $8fb52a80fe52b1c7$export$ebf265ffc062029b = v);
540
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-field", () => $8fb52a80fe52b1c7$export$ea77459595e26bec, (v) => $8fb52a80fe52b1c7$export$ea77459595e26bec = v);
541
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-icon", () => $8fb52a80fe52b1c7$export$b91b6af799fd93a8, (v) => $8fb52a80fe52b1c7$export$b91b6af799fd93a8 = v);
542
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-input", () => $8fb52a80fe52b1c7$export$92706f5c6fe4074, (v) => $8fb52a80fe52b1c7$export$92706f5c6fe4074 = v);
543
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-input-circleLoader", () => $8fb52a80fe52b1c7$export$dcc9e00cdad967fa, (v) => $8fb52a80fe52b1c7$export$dcc9e00cdad967fa = v);
544
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-input-validationIcon", () => $8fb52a80fe52b1c7$export$f7ab13ee113f4884, (v) => $8fb52a80fe52b1c7$export$f7ab13ee113f4884 = v);
545
- $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-popover--quiet", () => $8fb52a80fe52b1c7$export$5e116178f9b1556a, (v) => $8fb52a80fe52b1c7$export$5e116178f9b1556a = v);
546
- var $8fb52a80fe52b1c7$export$f39a09f249340e2a;
547
- var $8fb52a80fe52b1c7$export$8c4ee2c50c22c514;
548
- var $8fb52a80fe52b1c7$export$d35bc1e505d1ebbf;
549
- var $8fb52a80fe52b1c7$export$e7dc768d35940237;
550
- var $8fb52a80fe52b1c7$export$b8813cd5d7824ce7;
551
- var $8fb52a80fe52b1c7$export$1e0fb04f31d3c22a;
552
- var $8fb52a80fe52b1c7$export$58dd7cd23c92699f;
553
- var $8fb52a80fe52b1c7$export$1d8b0b29e11d7cd;
554
- var $8fb52a80fe52b1c7$export$202113e883898dc;
555
- var $8fb52a80fe52b1c7$export$1c72fb41fa4f21ee;
556
- var $8fb52a80fe52b1c7$export$eb262b15b9261fde;
557
- var $8fb52a80fe52b1c7$export$80f9c838a8406469;
558
- var $8fb52a80fe52b1c7$export$a024c99ecf6b5741;
559
- var $8fb52a80fe52b1c7$export$c9f503f672e8a3c1;
560
- var $8fb52a80fe52b1c7$export$4109102f950813a6;
561
- var $8fb52a80fe52b1c7$export$24c7f46a6e3605dd;
562
- var $8fb52a80fe52b1c7$export$2927016961429360;
563
- var $8fb52a80fe52b1c7$export$5be359c1227eedcb;
564
- var $8fb52a80fe52b1c7$export$3b48509739a9cda0;
565
- var $8fb52a80fe52b1c7$export$ebf265ffc062029b;
566
- var $8fb52a80fe52b1c7$export$ea77459595e26bec;
567
- var $8fb52a80fe52b1c7$export$b91b6af799fd93a8;
568
- var $8fb52a80fe52b1c7$export$92706f5c6fe4074;
569
- var $8fb52a80fe52b1c7$export$dcc9e00cdad967fa;
570
- var $8fb52a80fe52b1c7$export$f7ab13ee113f4884;
571
- var $8fb52a80fe52b1c7$export$5e116178f9b1556a;
572
- $8fb52a80fe52b1c7$export$f39a09f249340e2a = `ZTA2ya_focus-ring`;
573
- $8fb52a80fe52b1c7$export$8c4ee2c50c22c514 = `ZTA2ya_i18nFontFamily`;
574
- $8fb52a80fe52b1c7$export$d35bc1e505d1ebbf = `ZTA2ya_is-disabled`;
575
- $8fb52a80fe52b1c7$export$e7dc768d35940237 = `ZTA2ya_is-focused`;
576
- $8fb52a80fe52b1c7$export$b8813cd5d7824ce7 = `ZTA2ya_is-hovered`;
577
- $8fb52a80fe52b1c7$export$1e0fb04f31d3c22a = `ZTA2ya_is-selected`;
578
- $8fb52a80fe52b1c7$export$58dd7cd23c92699f = `ZTA2ya_spectrum-Datepicker--datetimeRange`;
579
- $8fb52a80fe52b1c7$export$1d8b0b29e11d7cd = `ZTA2ya_spectrum-Datepicker--range`;
580
- $8fb52a80fe52b1c7$export$202113e883898dc = `ZTA2ya_spectrum-Datepicker--rangeDash`;
581
- $8fb52a80fe52b1c7$export$1c72fb41fa4f21ee = `ZTA2ya_spectrum-Datepicker-endField`;
582
- $8fb52a80fe52b1c7$export$eb262b15b9261fde = `ZTA2ya_spectrum-Datepicker-focusRing`;
583
- $8fb52a80fe52b1c7$export$80f9c838a8406469 = `ZTA2ya_spectrum-Datepicker-startField`;
584
- $8fb52a80fe52b1c7$export$a024c99ecf6b5741 = `ZTA2ya_spectrum-FieldButton`;
585
- $8fb52a80fe52b1c7$export$c9f503f672e8a3c1 = `ZTA2ya_spectrum-FieldButton--invalid`;
586
- $8fb52a80fe52b1c7$export$4109102f950813a6 = `ZTA2ya_spectrum-FocusRing-ring`;
587
- $8fb52a80fe52b1c7$export$24c7f46a6e3605dd = `ZTA2ya_spectrum-FocusRing ${$8fb52a80fe52b1c7$export$4109102f950813a6}`;
588
- $8fb52a80fe52b1c7$export$2927016961429360 = `ZTA2ya_spectrum-FocusRing--quiet`;
589
- $8fb52a80fe52b1c7$export$5be359c1227eedcb = `ZTA2ya_spectrum-InputGroup ${$8fb52a80fe52b1c7$export$24c7f46a6e3605dd}`;
590
- $8fb52a80fe52b1c7$export$3b48509739a9cda0 = `ZTA2ya_spectrum-InputGroup--invalid`;
591
- $8fb52a80fe52b1c7$export$ebf265ffc062029b = `ZTA2ya_spectrum-InputGroup--quiet ${$8fb52a80fe52b1c7$export$2927016961429360}`;
592
- $8fb52a80fe52b1c7$export$ea77459595e26bec = `ZTA2ya_spectrum-InputGroup-field`;
593
- $8fb52a80fe52b1c7$export$b91b6af799fd93a8 = `ZTA2ya_spectrum-InputGroup-icon`;
594
- $8fb52a80fe52b1c7$export$92706f5c6fe4074 = `ZTA2ya_spectrum-InputGroup-input`;
595
- $8fb52a80fe52b1c7$export$dcc9e00cdad967fa = `ZTA2ya_spectrum-InputGroup-input-circleLoader`;
596
- $8fb52a80fe52b1c7$export$f7ab13ee113f4884 = `ZTA2ya_spectrum-InputGroup-input-validationIcon`;
597
- $8fb52a80fe52b1c7$export$5e116178f9b1556a = `ZTA2ya_spectrum-InputGroup-popover--quiet`;
598
-
599
-
600
- /*
601
- * Copyright 2020 Adobe. All rights reserved.
602
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
603
- * you may not use this file except in compliance with the License. You may obtain a copy
604
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
605
- *
606
- * Unless required by applicable law or agreed to in writing, software distributed under
607
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
608
- * OF ANY KIND, either express or implied. See the License for the specific language
609
- * governing permissions and limitations under the License.
610
- */
611
-
612
-
613
-
614
-
615
-
616
- /*
617
- * Copyright 2020 Adobe. All rights reserved.
618
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
619
- * you may not use this file except in compliance with the License. You may obtain a copy
620
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
621
- *
622
- * Unless required by applicable law or agreed to in writing, software distributed under
623
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
624
- * OF ANY KIND, either express or implied. See the License for the specific language
625
- * governing permissions and limitations under the License.
626
- */
627
-
628
-
629
-
630
-
631
-
632
-
633
- function $04e96200274b03de$export$322f4580ccd8dde6(props) {
634
- let formatter = (0, $aayOp$useDateFormatter)({
635
- dateStyle: "short"
636
- });
637
- let displayNames = (0, $aayOp$useDisplayNames)();
638
- return (0, $aayOp$useMemo)(()=>{
639
- if (props.description) return props.description;
640
- if (props.showFormatHelpText) return formatter.formatToParts(new Date()).map((s)=>{
641
- if (s.type === "literal") return s.value;
642
- return displayNames.of(s.type);
643
- }).join(" ");
644
- return "";
645
- }, [
646
- props.description,
647
- props.showFormatHelpText,
648
- formatter,
649
- displayNames
650
- ]);
651
- }
652
- function $04e96200274b03de$export$12ce2869ce471b1f(maxVisibleMonths) {
653
- let { scale: scale } = (0, $aayOp$useProvider)();
654
- let [visibleMonths, setVisibleMonths] = (0, $aayOp$useState)($04e96200274b03de$var$getVisibleMonths(scale));
655
- (0, $aayOp$useLayoutEffect)(()=>{
656
- let onResize = ()=>setVisibleMonths($04e96200274b03de$var$getVisibleMonths(scale));
657
- onResize();
658
- window.addEventListener("resize", onResize);
659
- return ()=>{
660
- window.removeEventListener("resize", onResize);
661
- };
662
- }, [
663
- scale
664
- ]);
665
- return Math.max(1, Math.min(visibleMonths, maxVisibleMonths, 3));
666
- }
667
- function $04e96200274b03de$var$getVisibleMonths(scale) {
668
- if (typeof window === "undefined") return 1;
669
- let monthWidth = scale === "large" ? 336 : 280;
670
- let gap = scale === "large" ? 30 : 24;
671
- let popoverPadding = scale === "large" ? 32 : 48;
672
- return Math.floor((window.innerWidth - popoverPadding * 2) / (monthWidth + gap));
673
- }
674
- function $04e96200274b03de$export$71a23a36270e4bf0(ref) {
675
- let domRef = (0, $aayOp$useRef)();
676
- (0, $aayOp$useImperativeHandle)(ref, ()=>({
677
- ...(0, $aayOp$createDOMRef)(domRef),
678
- focus () {
679
- (0, $aayOp$createFocusManager)(domRef).focusFirst({
680
- tabbable: true
681
- });
682
- }
683
- }));
684
- return domRef;
685
- }
686
-
687
-
688
-
689
-
690
-
691
-
692
-
693
- function $f0a04554754386b6$var$TimeField(props, ref) {
694
- props = (0, $aayOp$useProviderProps)(props);
695
- props = (0, $aayOp$useFormProps)(props);
696
- let { autoFocus: autoFocus, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, isQuiet: isQuiet } = props;
697
- let domRef = (0, $04e96200274b03de$export$71a23a36270e4bf0)(ref);
698
- let { locale: locale } = (0, $aayOp$useLocale)();
699
- let state = (0, $aayOp$useTimeFieldState)({
700
- ...props,
701
- locale: locale
702
- });
703
- let fieldRef = (0, $aayOp$useRef)(null);
704
- let inputRef = (0, $aayOp$useRef)(null);
705
- let { labelProps: labelProps, fieldProps: fieldProps, inputProps: inputProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = (0, $aayOp$useTimeField)({
706
- ...props,
707
- inputRef: inputRef
708
- }, state, fieldRef);
709
- let validationState = state.validationState || (isInvalid ? "invalid" : null);
710
- return /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Field), {
711
- ...props,
712
- ref: domRef,
713
- elementType: "span",
714
- labelProps: labelProps,
715
- descriptionProps: descriptionProps,
716
- errorMessageProps: errorMessageProps,
717
- validationState: validationState,
718
- isInvalid: isInvalid,
719
- validationErrors: validationErrors,
720
- validationDetails: validationDetails,
721
- wrapperClassName: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-TimeField-fieldWrapper")
722
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $79348162c55d687f$export$f5b8910cec6cf069), {
723
- ref: fieldRef,
724
- fieldProps: fieldProps,
725
- isDisabled: isDisabled,
726
- isQuiet: isQuiet,
727
- autoFocus: autoFocus,
728
- validationState: validationState,
729
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-TimeField")
730
- }, state.segments.map((segment, i)=>/*#__PURE__*/ (0, $aayOp$react).createElement((0, $cfa347761f172638$export$6388987c5223b54e), {
731
- key: i,
732
- segment: segment,
733
- state: state,
734
- isDisabled: isDisabled,
735
- isReadOnly: isReadOnly,
736
- isRequired: isRequired
737
- })), /*#__PURE__*/ (0, $aayOp$react).createElement("input", {
738
- ...inputProps,
739
- ref: inputRef
740
- })));
741
- }
742
- /**
743
- * TimeFields allow users to enter and edit time values using a keyboard.
744
- * Each part of the time is displayed in an individually editable segment.
745
- */ const $f0a04554754386b6$export$5eaee2322dd727eb = /*#__PURE__*/ (0, $aayOp$react).forwardRef($f0a04554754386b6$var$TimeField);
746
-
747
-
748
-
749
-
750
-
751
-
752
-
753
-
754
-
755
-
756
- function $beaeefa091999363$var$DatePicker(props, ref) {
757
- props = (0, $aayOp$useProviderProps)(props);
758
- props = (0, $aayOp$useFormProps)(props);
759
- let { autoFocus: autoFocus, isQuiet: isQuiet, isDisabled: isDisabled, placeholderValue: placeholderValue, maxVisibleMonths: maxVisibleMonths = 1, pageBehavior: pageBehavior } = props;
760
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $aayOp$useHover)({
761
- isDisabled: isDisabled
762
- });
763
- let targetRef = (0, $aayOp$useRef)();
764
- let state = (0, $aayOp$useDatePickerState)({
765
- ...props,
766
- shouldCloseOnSelect: ()=>!state.hasTime
767
- });
768
- let { groupProps: groupProps, labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, buttonProps: buttonProps, dialogProps: dialogProps, calendarProps: calendarProps, isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = (0, $aayOp$useDatePicker)(props, state, targetRef);
769
- let { isOpen: isOpen, setOpen: setOpen } = state;
770
- let { direction: direction } = (0, $aayOp$useLocale)();
771
- let domRef = (0, $04e96200274b03de$export$71a23a36270e4bf0)(ref);
772
- let stringFormatter = (0, $aayOp$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($0e5701b873e6b9fd$exports))), "@react-spectrum/datepicker");
773
- let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $aayOp$useFocusRing)({
774
- within: true,
775
- isTextInput: true,
776
- autoFocus: autoFocus
777
- });
778
- let { isFocused: isFocusedButton, focusProps: focusPropsButton } = (0, $aayOp$useFocusRing)({
779
- within: false,
780
- isTextInput: false,
781
- autoFocus: autoFocus
782
- });
783
- let className = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup", {
784
- "spectrum-InputGroup--quiet": isQuiet,
785
- "spectrum-InputGroup--invalid": isInvalid && !isDisabled,
786
- "is-disabled": isDisabled,
787
- "is-hovered": isHovered,
788
- "is-focused": isFocused,
789
- "focus-ring": isFocusVisible && !isFocusedButton
790
- });
791
- let fieldClassName = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup-input", {
792
- "is-disabled": isDisabled,
793
- "is-invalid": isInvalid && !isDisabled
794
- });
795
- // Note: this description is intentionally not passed to useDatePicker.
796
- // The format help text is unnecessary for screen reader users because each segment already has a label.
797
- let description = (0, $04e96200274b03de$export$322f4580ccd8dde6)(props);
798
- if (description && !props.description) descriptionProps.id = null;
799
- let placeholder = placeholderValue;
800
- let timePlaceholder = placeholder && "hour" in placeholder ? placeholder : null;
801
- let timeMinValue = props.minValue && "hour" in props.minValue ? props.minValue : null;
802
- let timeMaxValue = props.maxValue && "hour" in props.maxValue ? props.maxValue : null;
803
- let timeGranularity = state.granularity === "hour" || state.granularity === "minute" || state.granularity === "second" ? state.granularity : null;
804
- let showTimeField = !!timeGranularity;
805
- let visibleMonths = (0, $04e96200274b03de$export$12ce2869ce471b1f)(maxVisibleMonths);
806
- let validationState = state.validationState || (isInvalid ? "invalid" : null);
807
- return /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Field), {
808
- ...props,
809
- ref: domRef,
810
- elementType: "span",
811
- description: description,
812
- labelProps: labelProps,
813
- descriptionProps: descriptionProps,
814
- errorMessageProps: errorMessageProps,
815
- validationState: validationState,
816
- isInvalid: isInvalid,
817
- validationErrors: validationErrors,
818
- validationDetails: validationDetails,
819
- wrapperClassName: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-fieldWrapper")
820
- }, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
821
- ...(0, $aayOp$mergeProps)(groupProps, hoverProps, focusProps),
822
- className: className,
823
- ref: targetRef
824
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $79348162c55d687f$export$f5b8910cec6cf069), {
825
- isDisabled: isDisabled,
826
- isQuiet: isQuiet,
827
- validationState: validationState,
828
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup-field"),
829
- inputClassName: fieldClassName,
830
- disableFocusRing: true
831
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $d2bb88c82604b25f$export$34dc4cfa15ead1), {
832
- ...fieldProps,
833
- "data-testid": "date-field",
834
- isQuiet: isQuiet
835
- })), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$DialogTrigger), {
836
- type: "popover",
837
- mobileType: "tray",
838
- placement: direction === "rtl" ? "bottom right" : "bottom left",
839
- targetRef: targetRef,
840
- hideArrow: true,
841
- isOpen: isOpen,
842
- onOpenChange: setOpen,
843
- shouldFlip: props.shouldFlip
844
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$FieldButton), {
845
- ...(0, $aayOp$mergeProps)(buttonProps, focusPropsButton),
846
- UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-FieldButton"),
847
- isQuiet: isQuiet,
848
- validationState: validationState
849
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$spectrumiconsworkflowCalendar), null)), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Dialog), {
850
- UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-dialog"),
851
- ...dialogProps
852
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Content), null, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
853
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-dialogContent")
854
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Calendar), {
855
- ...calendarProps,
856
- visibleMonths: visibleMonths,
857
- pageBehavior: pageBehavior,
858
- UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-calendar", {
859
- "is-invalid": isInvalid
860
- })
861
- }), showTimeField && /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
862
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-timeFields")
863
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $f0a04554754386b6$export$5eaee2322dd727eb), {
864
- label: stringFormatter.format("time"),
865
- value: state.timeValue,
866
- onChange: state.setTimeValue,
867
- placeholderValue: timePlaceholder,
868
- granularity: timeGranularity,
869
- minValue: timeMinValue,
870
- maxValue: timeMaxValue,
871
- hourCycle: props.hourCycle,
872
- hideTimeZone: props.hideTimeZone,
873
- marginTop: "size-100"
874
- }))))))));
875
- }
876
- /**
877
- * DatePickers combine a DateField and a Calendar popover to allow users to enter or select a date and time value.
878
- */ const $beaeefa091999363$export$5109c6dd95d8fb00 = /*#__PURE__*/ (0, $aayOp$react).forwardRef($beaeefa091999363$var$DatePicker);
879
-
880
-
881
- /*
882
- * Copyright 2020 Adobe. All rights reserved.
883
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
884
- * you may not use this file except in compliance with the License. You may obtain a copy
885
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
886
- *
887
- * Unless required by applicable law or agreed to in writing, software distributed under
888
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
889
- * OF ANY KIND, either express or implied. See the License for the specific language
890
- * governing permissions and limitations under the License.
891
- */
892
-
893
-
894
-
895
-
896
-
897
-
898
-
899
-
900
-
901
-
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
-
914
-
915
- function $cb301300011a98f7$var$DateRangePicker(props, ref) {
916
- var _state_timeRange, _state_timeRange1;
917
- props = (0, $aayOp$useProviderProps)(props);
918
- props = (0, $aayOp$useFormProps)(props);
919
- let { isQuiet: isQuiet, isDisabled: isDisabled, autoFocus: autoFocus, placeholderValue: placeholderValue, maxVisibleMonths: maxVisibleMonths = 1, pageBehavior: pageBehavior } = props;
920
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $aayOp$useHover)({
921
- isDisabled: isDisabled
922
- });
923
- let targetRef = (0, $aayOp$useRef)();
924
- let state = (0, $aayOp$useDateRangePickerState)({
925
- ...props,
926
- shouldCloseOnSelect: ()=>!state.hasTime
927
- });
928
- let { labelProps: labelProps, groupProps: groupProps, buttonProps: buttonProps, dialogProps: dialogProps, startFieldProps: startFieldProps, endFieldProps: endFieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, calendarProps: calendarProps, isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = (0, $aayOp$useDateRangePicker)(props, state, targetRef);
929
- let { isOpen: isOpen, setOpen: setOpen } = state;
930
- let { direction: direction } = (0, $aayOp$useLocale)();
931
- let domRef = (0, $04e96200274b03de$export$71a23a36270e4bf0)(ref);
932
- let stringFormatter = (0, $aayOp$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($0e5701b873e6b9fd$exports))), "@react-spectrum/datepicker");
933
- let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $aayOp$useFocusRing)({
934
- within: true,
935
- isTextInput: true,
936
- autoFocus: autoFocus
937
- });
938
- let { isFocused: isFocusedButton, focusProps: focusPropsButton } = (0, $aayOp$useFocusRing)({
939
- within: false,
940
- isTextInput: false,
941
- autoFocus: autoFocus
942
- });
943
- let className = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup", {
944
- "spectrum-InputGroup--quiet": isQuiet,
945
- "spectrum-InputGroup--invalid": isInvalid && !isDisabled,
946
- "is-disabled": isDisabled,
947
- "is-hovered": isHovered,
948
- "is-focused": isFocused,
949
- "focus-ring": isFocusVisible && !isFocusedButton
950
- });
951
- let fieldClassName = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup-input", {
952
- "is-disabled": isDisabled,
953
- "is-invalid": isInvalid && !isDisabled
954
- });
955
- // Note: this description is intentionally not passed to useDatePicker.
956
- // The format help text is unnecessary for screen reader users because each segment already has a label.
957
- let description = (0, $04e96200274b03de$export$322f4580ccd8dde6)(props);
958
- if (description && !props.description) descriptionProps.id = null;
959
- let placeholder = placeholderValue;
960
- let timePlaceholder = placeholder && "hour" in placeholder ? placeholder : null;
961
- let timeMinValue = props.minValue && "hour" in props.minValue ? props.minValue : null;
962
- let timeMaxValue = props.maxValue && "hour" in props.maxValue ? props.maxValue : null;
963
- let timeGranularity = state.granularity === "hour" || state.granularity === "minute" || state.granularity === "second" ? state.granularity : null;
964
- let showTimeField = !!timeGranularity;
965
- let visibleMonths = (0, $04e96200274b03de$export$12ce2869ce471b1f)(maxVisibleMonths);
966
- let validationState = state.validationState || (isInvalid ? "invalid" : null);
967
- return /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Field), {
968
- ...props,
969
- ref: domRef,
970
- elementType: "span",
971
- description: description,
972
- labelProps: labelProps,
973
- descriptionProps: descriptionProps,
974
- errorMessageProps: errorMessageProps,
975
- validationState: validationState,
976
- isInvalid: isInvalid,
977
- validationErrors: validationErrors,
978
- validationDetails: validationDetails,
979
- wrapperClassName: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-fieldWrapper")
980
- }, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
981
- ...(0, $aayOp$mergeProps)(groupProps, hoverProps, focusProps),
982
- className: className,
983
- ref: targetRef
984
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $79348162c55d687f$export$f5b8910cec6cf069), {
985
- isDisabled: isDisabled,
986
- isQuiet: isQuiet,
987
- validationState: validationState,
988
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup-field"),
989
- inputClassName: fieldClassName,
990
- disableFocusRing: true
991
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $d2bb88c82604b25f$export$34dc4cfa15ead1), {
992
- ...startFieldProps,
993
- "data-testid": "start-date",
994
- isQuiet: props.isQuiet,
995
- inputClassName: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-startField")
996
- }), /*#__PURE__*/ (0, $aayOp$react).createElement($cb301300011a98f7$var$DateRangeDash, null), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $d2bb88c82604b25f$export$34dc4cfa15ead1), {
997
- ...endFieldProps,
998
- "data-testid": "end-date",
999
- isQuiet: props.isQuiet,
1000
- inputClassName: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-Datepicker-endField", (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-endField"))
1001
- })), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$DialogTrigger), {
1002
- type: "popover",
1003
- mobileType: "tray",
1004
- placement: direction === "rtl" ? "bottom right" : "bottom left",
1005
- targetRef: targetRef,
1006
- hideArrow: true,
1007
- isOpen: isOpen,
1008
- onOpenChange: setOpen,
1009
- shouldFlip: props.shouldFlip
1010
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$FieldButton), {
1011
- ...(0, $aayOp$mergeProps)(buttonProps, focusPropsButton),
1012
- UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-FieldButton"),
1013
- isQuiet: isQuiet,
1014
- validationState: validationState
1015
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$spectrumiconsworkflowCalendar), null)), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Dialog), {
1016
- UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-dialog"),
1017
- ...dialogProps
1018
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Content), null, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
1019
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-dialogContent")
1020
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$RangeCalendar), {
1021
- ...calendarProps,
1022
- visibleMonths: visibleMonths,
1023
- pageBehavior: pageBehavior,
1024
- UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-calendar", {
1025
- "is-invalid": validationState === "invalid"
1026
- })
1027
- }), showTimeField && /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Flex), {
1028
- gap: "size-100",
1029
- marginTop: "size-100",
1030
- UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-timeFields")
1031
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $f0a04554754386b6$export$5eaee2322dd727eb), {
1032
- label: stringFormatter.format("startTime"),
1033
- value: ((_state_timeRange = state.timeRange) === null || _state_timeRange === void 0 ? void 0 : _state_timeRange.start) || null,
1034
- onChange: (v)=>state.setTime("start", v),
1035
- placeholderValue: timePlaceholder,
1036
- granularity: timeGranularity,
1037
- minValue: timeMinValue,
1038
- maxValue: timeMaxValue,
1039
- hourCycle: props.hourCycle,
1040
- hideTimeZone: props.hideTimeZone,
1041
- flex: true
1042
- }), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $f0a04554754386b6$export$5eaee2322dd727eb), {
1043
- label: stringFormatter.format("endTime"),
1044
- value: ((_state_timeRange1 = state.timeRange) === null || _state_timeRange1 === void 0 ? void 0 : _state_timeRange1.end) || null,
1045
- onChange: (v)=>state.setTime("end", v),
1046
- placeholderValue: timePlaceholder,
1047
- granularity: timeGranularity,
1048
- minValue: timeMinValue,
1049
- maxValue: timeMaxValue,
1050
- hourCycle: props.hourCycle,
1051
- hideTimeZone: props.hideTimeZone,
1052
- flex: true
1053
- }))))))));
1054
- }
1055
- function $cb301300011a98f7$var$DateRangeDash() {
1056
- return /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
1057
- "aria-hidden": "true",
1058
- "data-testid": "date-range-dash",
1059
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-rangeDash")
1060
- });
1061
- }
1062
- /**
1063
- * DateRangePickers combine two DateFields and a RangeCalendar popover to allow users
1064
- * to enter or select a date and time range.
1065
- */ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $aayOp$react).forwardRef($cb301300011a98f7$var$DateRangePicker);
1066
-
1067
-
1068
-
1069
- /*
1070
- * Copyright 2020 Adobe. All rights reserved.
1071
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1072
- * you may not use this file except in compliance with the License. You may obtain a copy
1073
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1074
- *
1075
- * Unless required by applicable law or agreed to in writing, software distributed under
1076
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1077
- * OF ANY KIND, either express or implied. See the License for the specific language
1078
- * governing permissions and limitations under the License.
1079
- */
1080
-
1081
-
1082
-
1083
-
1084
-
1085
-
1086
-
1087
-
1088
-
1089
-
1090
17
 
1091
18
 
1092
- function $0129798af6791690$var$DateField(props, ref) {
1093
- props = (0, $aayOp$useProviderProps)(props);
1094
- props = (0, $aayOp$useFormProps)(props);
1095
- let { autoFocus: autoFocus, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, isQuiet: isQuiet } = props;
1096
- let domRef = (0, $04e96200274b03de$export$71a23a36270e4bf0)(ref);
1097
- let { locale: locale } = (0, $aayOp$useLocale)();
1098
- let state = (0, $aayOp$useDateFieldState)({
1099
- ...props,
1100
- locale: locale,
1101
- createCalendar: $aayOp$createCalendar
1102
- });
1103
- let fieldRef = (0, $aayOp$useRef)(null);
1104
- let inputRef = (0, $aayOp$useRef)(null);
1105
- let { labelProps: labelProps, fieldProps: fieldProps, inputProps: inputProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = (0, $aayOp$useDateField)({
1106
- ...props,
1107
- inputRef: inputRef
1108
- }, state, fieldRef);
1109
- // Note: this description is intentionally not passed to useDatePicker.
1110
- // The format help text is unnecessary for screen reader users because each segment already has a label.
1111
- let description = (0, $04e96200274b03de$export$322f4580ccd8dde6)(props);
1112
- if (description && !props.description) descriptionProps.id = null;
1113
- let validationState = state.validationState || (isInvalid ? "invalid" : null);
1114
- return /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Field), {
1115
- ...props,
1116
- ref: domRef,
1117
- elementType: "span",
1118
- description: description,
1119
- labelProps: labelProps,
1120
- descriptionProps: descriptionProps,
1121
- errorMessageProps: errorMessageProps,
1122
- validationState: validationState,
1123
- isInvalid: isInvalid,
1124
- validationErrors: validationErrors,
1125
- validationDetails: validationDetails,
1126
- wrapperClassName: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-fieldWrapper")
1127
- }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $79348162c55d687f$export$f5b8910cec6cf069), {
1128
- ref: fieldRef,
1129
- fieldProps: fieldProps,
1130
- isDisabled: isDisabled,
1131
- isQuiet: isQuiet,
1132
- autoFocus: autoFocus,
1133
- validationState: validationState,
1134
- className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-DateField")
1135
- }, state.segments.map((segment, i)=>/*#__PURE__*/ (0, $aayOp$react).createElement((0, $cfa347761f172638$export$6388987c5223b54e), {
1136
- key: i,
1137
- segment: segment,
1138
- state: state,
1139
- isDisabled: isDisabled,
1140
- isReadOnly: isReadOnly,
1141
- isRequired: isRequired
1142
- })), /*#__PURE__*/ (0, $aayOp$react).createElement("input", {
1143
- ...inputProps,
1144
- ref: inputRef
1145
- })));
1146
- }
1147
- /**
1148
- * DateFields allow users to enter and edit date and time values using a keyboard.
1149
- * Each part of a date value is displayed in an individually editable segment.
1150
- */ const $0129798af6791690$export$d9781c7894a82487 = /*#__PURE__*/ (0, $aayOp$react).forwardRef($0129798af6791690$var$DateField);
1151
19
 
1152
20
 
1153
21