@react-spectrum/datepicker 3.0.0-alpha.3 → 3.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.css +1 -1
- package/dist/main.js +391 -390
- package/dist/main.js.map +1 -1
- package/dist/module.js +388 -387
- package/dist/module.js.map +1 -1
- package/package.json +22 -22
package/dist/module.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
|
-
import {Calendar as $
|
|
3
|
-
import $
|
|
4
|
-
import {classNames as $
|
|
5
|
-
import {Content as $
|
|
6
|
-
import {DialogTrigger as $
|
|
7
|
-
import {Field as $
|
|
8
|
-
import {FieldButton as $
|
|
9
|
-
import {mergeProps as $
|
|
10
|
-
import $
|
|
11
|
-
import {useDatePicker as $
|
|
12
|
-
import {useDatePickerState as $
|
|
13
|
-
import {useFocusRing as $
|
|
14
|
-
import {useHover as $
|
|
15
|
-
import {useLocale as $
|
|
16
|
-
import {useProviderProps as $
|
|
17
|
-
import {createCalendar as $
|
|
18
|
-
import {NumberParser as $
|
|
19
|
-
import $
|
|
20
|
-
import $
|
|
21
|
-
import {Flex as $
|
|
2
|
+
import {Calendar as $afQpO$Calendar, RangeCalendar as $afQpO$RangeCalendar} from "@react-spectrum/calendar";
|
|
3
|
+
import $afQpO$spectrumiconsworkflowCalendar from "@spectrum-icons/workflow/Calendar";
|
|
4
|
+
import {classNames as $afQpO$classNames, useValueEffect as $afQpO$useValueEffect, useStyleProps as $afQpO$useStyleProps} from "@react-spectrum/utils";
|
|
5
|
+
import {Content as $afQpO$Content} from "@react-spectrum/view";
|
|
6
|
+
import {DialogTrigger as $afQpO$DialogTrigger, Dialog as $afQpO$Dialog} from "@react-spectrum/dialog";
|
|
7
|
+
import {Field as $afQpO$Field} from "@react-spectrum/label";
|
|
8
|
+
import {FieldButton as $afQpO$FieldButton} from "@react-spectrum/button";
|
|
9
|
+
import {mergeProps as $afQpO$mergeProps, useLayoutEffect as $afQpO$useLayoutEffect, useResizeObserver as $afQpO$useResizeObserver, useEvent as $afQpO$useEvent} from "@react-aria/utils";
|
|
10
|
+
import $afQpO$react, {useRef as $afQpO$useRef, useMemo as $afQpO$useMemo, useCallback as $afQpO$useCallback, useState as $afQpO$useState} from "react";
|
|
11
|
+
import {useDatePicker as $afQpO$useDatePicker, useDateField as $afQpO$useDateField, useDateSegment as $afQpO$useDateSegment, useDisplayNames as $afQpO$useDisplayNames, useDateRangePicker as $afQpO$useDateRangePicker} from "@react-aria/datepicker";
|
|
12
|
+
import {useDatePickerState as $afQpO$useDatePickerState, useDatePickerFieldState as $afQpO$useDatePickerFieldState, useTimeFieldState as $afQpO$useTimeFieldState, useDateRangePickerState as $afQpO$useDateRangePickerState} from "@react-stately/datepicker";
|
|
13
|
+
import {useFocusRing as $afQpO$useFocusRing, useFocusManager as $afQpO$useFocusManager, FocusRing as $afQpO$FocusRing, FocusScope as $afQpO$FocusScope} from "@react-aria/focus";
|
|
14
|
+
import {useHover as $afQpO$useHover, usePress as $afQpO$usePress} from "@react-aria/interactions";
|
|
15
|
+
import {useLocale as $afQpO$useLocale, useDateFormatter as $afQpO$useDateFormatter} from "@react-aria/i18n";
|
|
16
|
+
import {useProviderProps as $afQpO$useProviderProps, useProvider as $afQpO$useProvider} from "@react-spectrum/provider";
|
|
17
|
+
import {createCalendar as $afQpO$createCalendar} from "@internationalized/date";
|
|
18
|
+
import {NumberParser as $afQpO$NumberParser} from "@internationalized/number";
|
|
19
|
+
import $afQpO$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
|
|
20
|
+
import $afQpO$spectrumiconsuiCheckmarkMedium from "@spectrum-icons/ui/CheckmarkMedium";
|
|
21
|
+
import {Flex as $afQpO$Flex} from "@react-spectrum/layout";
|
|
22
22
|
|
|
23
23
|
function $parcel$interopDefault(a) {
|
|
24
24
|
return a && a.__esModule ? a.default : a;
|
|
@@ -26,99 +26,99 @@ function $parcel$interopDefault(a) {
|
|
|
26
26
|
function $parcel$export(e, n, v, s) {
|
|
27
27
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
28
28
|
}
|
|
29
|
-
var $
|
|
30
|
-
|
|
31
|
-
$parcel$export($
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
var $
|
|
42
|
-
|
|
43
|
-
$parcel$export($
|
|
44
|
-
$parcel$export($
|
|
45
|
-
$parcel$export($
|
|
46
|
-
$parcel$export($
|
|
47
|
-
$parcel$export($
|
|
48
|
-
$parcel$export($
|
|
49
|
-
$parcel$export($
|
|
50
|
-
$parcel$export($
|
|
51
|
-
$parcel$export($
|
|
52
|
-
$parcel$export($
|
|
53
|
-
$parcel$export($
|
|
54
|
-
$parcel$export($
|
|
55
|
-
$parcel$export($
|
|
56
|
-
$parcel$export($
|
|
57
|
-
$parcel$export($
|
|
58
|
-
$parcel$export($
|
|
59
|
-
$parcel$export($
|
|
60
|
-
$parcel$export($
|
|
61
|
-
var $
|
|
62
|
-
var $
|
|
63
|
-
var $
|
|
64
|
-
var $
|
|
65
|
-
var $
|
|
66
|
-
var $
|
|
67
|
-
var $
|
|
68
|
-
var $
|
|
69
|
-
var $
|
|
70
|
-
var $
|
|
71
|
-
var $
|
|
72
|
-
var $
|
|
73
|
-
var $
|
|
74
|
-
var $
|
|
75
|
-
var $
|
|
76
|
-
var $
|
|
77
|
-
var $
|
|
78
|
-
var $
|
|
79
|
-
$
|
|
80
|
-
$
|
|
81
|
-
$
|
|
82
|
-
$
|
|
83
|
-
$
|
|
84
|
-
$
|
|
85
|
-
$
|
|
86
|
-
$
|
|
87
|
-
$
|
|
88
|
-
$
|
|
89
|
-
$
|
|
90
|
-
$
|
|
91
|
-
$
|
|
92
|
-
$
|
|
93
|
-
$
|
|
94
|
-
$
|
|
95
|
-
$
|
|
96
|
-
$
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
function $
|
|
29
|
+
var $abe08035130a300c$exports = {};
|
|
30
|
+
|
|
31
|
+
$parcel$export($abe08035130a300c$exports, "DatePicker", () => $abe08035130a300c$export$5109c6dd95d8fb00);
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
var $a43b74d85aeb9a19$exports = {};
|
|
42
|
+
|
|
43
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-fieldWrapper", () => $a43b74d85aeb9a19$export$48501287c6ce4708, (v) => $a43b74d85aeb9a19$export$48501287c6ce4708 = v);
|
|
44
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-startField", () => $a43b74d85aeb9a19$export$eec05853f5fc7ef8, (v) => $a43b74d85aeb9a19$export$eec05853f5fc7ef8 = v);
|
|
45
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-endField", () => $a43b74d85aeb9a19$export$b41789438b49c852, (v) => $a43b74d85aeb9a19$export$b41789438b49c852 = v);
|
|
46
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-field", () => $a43b74d85aeb9a19$export$8cbece9fb909350d, (v) => $a43b74d85aeb9a19$export$8cbece9fb909350d = v);
|
|
47
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-input", () => $a43b74d85aeb9a19$export$4cdb39b006dc840a, (v) => $a43b74d85aeb9a19$export$4cdb39b006dc840a = v);
|
|
48
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-DateField", () => $a43b74d85aeb9a19$export$c96d01b692101b8a, (v) => $a43b74d85aeb9a19$export$c96d01b692101b8a = v);
|
|
49
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-TimeField", () => $a43b74d85aeb9a19$export$61c201f1ba261729, (v) => $a43b74d85aeb9a19$export$61c201f1ba261729 = v);
|
|
50
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-TimeField-fieldWrapper", () => $a43b74d85aeb9a19$export$3008240fa163ee96, (v) => $a43b74d85aeb9a19$export$3008240fa163ee96 = v);
|
|
51
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-inputContents", () => $a43b74d85aeb9a19$export$609545772ae0466a, (v) => $a43b74d85aeb9a19$export$609545772ae0466a = v);
|
|
52
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-rangeDash", () => $a43b74d85aeb9a19$export$1ae39afd2cf49425, (v) => $a43b74d85aeb9a19$export$1ae39afd2cf49425 = v);
|
|
53
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-segments", () => $a43b74d85aeb9a19$export$b9c34f0306ac2ffc, (v) => $a43b74d85aeb9a19$export$b9c34f0306ac2ffc = v);
|
|
54
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-literal", () => $a43b74d85aeb9a19$export$24a265734c16a355, (v) => $a43b74d85aeb9a19$export$24a265734c16a355 = v);
|
|
55
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-DatePicker-cell", () => $a43b74d85aeb9a19$export$947f5cb8a73639a4, (v) => $a43b74d85aeb9a19$export$947f5cb8a73639a4 = v);
|
|
56
|
+
$parcel$export($a43b74d85aeb9a19$exports, "is-placeholder", () => $a43b74d85aeb9a19$export$e5b2f5233e4e5194, (v) => $a43b74d85aeb9a19$export$e5b2f5233e4e5194 = v);
|
|
57
|
+
$parcel$export($a43b74d85aeb9a19$exports, "is-read-only", () => $a43b74d85aeb9a19$export$dddce3ae23a6e3ea, (v) => $a43b74d85aeb9a19$export$dddce3ae23a6e3ea = v);
|
|
58
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-dialog", () => $a43b74d85aeb9a19$export$7c3cb625bb792356, (v) => $a43b74d85aeb9a19$export$7c3cb625bb792356 = v);
|
|
59
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-dialogContent", () => $a43b74d85aeb9a19$export$94c97d6b6a927921, (v) => $a43b74d85aeb9a19$export$94c97d6b6a927921 = v);
|
|
60
|
+
$parcel$export($a43b74d85aeb9a19$exports, "react-spectrum-Datepicker-timeFields", () => $a43b74d85aeb9a19$export$8d47712a13573e39, (v) => $a43b74d85aeb9a19$export$8d47712a13573e39 = v);
|
|
61
|
+
var $a43b74d85aeb9a19$export$48501287c6ce4708;
|
|
62
|
+
var $a43b74d85aeb9a19$export$eec05853f5fc7ef8;
|
|
63
|
+
var $a43b74d85aeb9a19$export$b41789438b49c852;
|
|
64
|
+
var $a43b74d85aeb9a19$export$8cbece9fb909350d;
|
|
65
|
+
var $a43b74d85aeb9a19$export$4cdb39b006dc840a;
|
|
66
|
+
var $a43b74d85aeb9a19$export$c96d01b692101b8a;
|
|
67
|
+
var $a43b74d85aeb9a19$export$61c201f1ba261729;
|
|
68
|
+
var $a43b74d85aeb9a19$export$3008240fa163ee96;
|
|
69
|
+
var $a43b74d85aeb9a19$export$609545772ae0466a;
|
|
70
|
+
var $a43b74d85aeb9a19$export$1ae39afd2cf49425;
|
|
71
|
+
var $a43b74d85aeb9a19$export$b9c34f0306ac2ffc;
|
|
72
|
+
var $a43b74d85aeb9a19$export$24a265734c16a355;
|
|
73
|
+
var $a43b74d85aeb9a19$export$947f5cb8a73639a4;
|
|
74
|
+
var $a43b74d85aeb9a19$export$e5b2f5233e4e5194;
|
|
75
|
+
var $a43b74d85aeb9a19$export$dddce3ae23a6e3ea;
|
|
76
|
+
var $a43b74d85aeb9a19$export$7c3cb625bb792356;
|
|
77
|
+
var $a43b74d85aeb9a19$export$94c97d6b6a927921;
|
|
78
|
+
var $a43b74d85aeb9a19$export$8d47712a13573e39;
|
|
79
|
+
$a43b74d85aeb9a19$export$48501287c6ce4708 = "react-spectrum-Datepicker-fieldWrapper_0b973d";
|
|
80
|
+
$a43b74d85aeb9a19$export$eec05853f5fc7ef8 = "react-spectrum-Datepicker-startField_0b973d";
|
|
81
|
+
$a43b74d85aeb9a19$export$b41789438b49c852 = "react-spectrum-Datepicker-endField_0b973d";
|
|
82
|
+
$a43b74d85aeb9a19$export$8cbece9fb909350d = "react-spectrum-Datepicker-field_0b973d";
|
|
83
|
+
$a43b74d85aeb9a19$export$4cdb39b006dc840a = "react-spectrum-Datepicker-input_0b973d";
|
|
84
|
+
$a43b74d85aeb9a19$export$c96d01b692101b8a = "react-spectrum-DateField_0b973d";
|
|
85
|
+
$a43b74d85aeb9a19$export$61c201f1ba261729 = "react-spectrum-TimeField_0b973d";
|
|
86
|
+
$a43b74d85aeb9a19$export$3008240fa163ee96 = "react-spectrum-TimeField-fieldWrapper_0b973d";
|
|
87
|
+
$a43b74d85aeb9a19$export$609545772ae0466a = "react-spectrum-Datepicker-inputContents_0b973d";
|
|
88
|
+
$a43b74d85aeb9a19$export$1ae39afd2cf49425 = "react-spectrum-Datepicker-rangeDash_0b973d";
|
|
89
|
+
$a43b74d85aeb9a19$export$b9c34f0306ac2ffc = "react-spectrum-Datepicker-segments_0b973d";
|
|
90
|
+
$a43b74d85aeb9a19$export$24a265734c16a355 = "react-spectrum-Datepicker-literal_0b973d";
|
|
91
|
+
$a43b74d85aeb9a19$export$947f5cb8a73639a4 = "react-spectrum-DatePicker-cell_0b973d";
|
|
92
|
+
$a43b74d85aeb9a19$export$e5b2f5233e4e5194 = "is-placeholder_0b973d";
|
|
93
|
+
$a43b74d85aeb9a19$export$dddce3ae23a6e3ea = "is-read-only_0b973d";
|
|
94
|
+
$a43b74d85aeb9a19$export$7c3cb625bb792356 = "react-spectrum-Datepicker-dialog_0b973d";
|
|
95
|
+
$a43b74d85aeb9a19$export$94c97d6b6a927921 = "react-spectrum-Datepicker-dialogContent_0b973d";
|
|
96
|
+
$a43b74d85aeb9a19$export$8d47712a13573e39 = "react-spectrum-Datepicker-timeFields_0b973d";
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
function $8f320e1d67254f5c$export$6388987c5223b54e({ segment: segment , state: state , ...otherProps }) {
|
|
104
104
|
switch(segment.type){
|
|
105
105
|
// A separator, e.g. punctuation
|
|
106
106
|
case 'literal':
|
|
107
|
-
return(/*#__PURE__*/ $
|
|
107
|
+
return(/*#__PURE__*/ $afQpO$react.createElement($8f320e1d67254f5c$var$LiteralSegment, {
|
|
108
108
|
segment: segment
|
|
109
109
|
}));
|
|
110
110
|
// Editable segment
|
|
111
111
|
default:
|
|
112
|
-
return(/*#__PURE__*/ $
|
|
112
|
+
return(/*#__PURE__*/ $afQpO$react.createElement($8f320e1d67254f5c$var$EditableSegment, {
|
|
113
113
|
segment: segment,
|
|
114
114
|
state: state,
|
|
115
115
|
...otherProps
|
|
116
116
|
}));
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function $
|
|
120
|
-
let focusManager = $
|
|
121
|
-
let { pressProps: pressProps } = $
|
|
119
|
+
function $8f320e1d67254f5c$var$LiteralSegment({ segment: segment }) {
|
|
120
|
+
let focusManager = $afQpO$useFocusManager();
|
|
121
|
+
let { pressProps: pressProps } = $afQpO$usePress({
|
|
122
122
|
onPressStart: (e)=>{
|
|
123
123
|
if (e.pointerType === 'mouse') {
|
|
124
124
|
let res = focusManager.focusNext({
|
|
@@ -130,29 +130,29 @@ function $a37fbe55927eb047$var$LiteralSegment({ segment: segment }) {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
-
return(/*#__PURE__*/ $
|
|
133
|
+
return(/*#__PURE__*/ $afQpO$react.createElement("span", {
|
|
134
134
|
"aria-hidden": "true",
|
|
135
|
-
className: $
|
|
135
|
+
className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-literal'),
|
|
136
136
|
...pressProps,
|
|
137
137
|
"data-testid": segment.type === 'literal' ? undefined : segment.type
|
|
138
138
|
}, segment.text));
|
|
139
139
|
}
|
|
140
|
-
function $
|
|
141
|
-
let ref = $
|
|
142
|
-
let { segmentProps: segmentProps } = $
|
|
143
|
-
let { locale: locale } = $
|
|
144
|
-
let parser = $
|
|
140
|
+
function $8f320e1d67254f5c$var$EditableSegment({ segment: segment , state: state , ...otherProps }) {
|
|
141
|
+
let ref = $afQpO$useRef();
|
|
142
|
+
let { segmentProps: segmentProps } = $afQpO$useDateSegment(otherProps, segment, state, ref);
|
|
143
|
+
let { locale: locale } = $afQpO$useLocale();
|
|
144
|
+
let parser = $afQpO$useMemo(()=>new $afQpO$NumberParser(locale)
|
|
145
145
|
, [
|
|
146
146
|
locale
|
|
147
147
|
]);
|
|
148
|
-
let isNumeric = $
|
|
148
|
+
let isNumeric = $afQpO$useMemo(()=>parser.isValidPartialNumber(segment.text)
|
|
149
149
|
, [
|
|
150
150
|
segment.text,
|
|
151
151
|
parser
|
|
152
152
|
]);
|
|
153
|
-
return(/*#__PURE__*/ $
|
|
153
|
+
return(/*#__PURE__*/ $afQpO$react.createElement("div", {
|
|
154
154
|
ref: ref,
|
|
155
|
-
className: $
|
|
155
|
+
className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-DatePicker-cell', {
|
|
156
156
|
'is-placeholder': segment.isPlaceholder,
|
|
157
157
|
'is-read-only': !segment.isEditable
|
|
158
158
|
}),
|
|
@@ -170,21 +170,21 @@ function $a37fbe55927eb047$var$EditableSegment({ segment: segment , state: state
|
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
|
|
173
|
-
function $
|
|
173
|
+
function $00d145e546a6acce$export$34dc4cfa15ead1(props) {
|
|
174
174
|
let { isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , inputClassName: inputClassName } = props;
|
|
175
|
-
let ref = $
|
|
176
|
-
let { locale: locale } = $
|
|
177
|
-
let state = $
|
|
175
|
+
let ref = $afQpO$useRef();
|
|
176
|
+
let { locale: locale } = $afQpO$useLocale();
|
|
177
|
+
let state = $afQpO$useDatePickerFieldState({
|
|
178
178
|
...props,
|
|
179
179
|
locale: locale,
|
|
180
|
-
createCalendar: $
|
|
180
|
+
createCalendar: $afQpO$createCalendar
|
|
181
181
|
});
|
|
182
|
-
let { fieldProps: fieldProps } = $
|
|
183
|
-
return(/*#__PURE__*/ $
|
|
182
|
+
let { fieldProps: fieldProps } = $afQpO$useDateField(props, state, ref);
|
|
183
|
+
return(/*#__PURE__*/ $afQpO$react.createElement("div", {
|
|
184
184
|
...fieldProps,
|
|
185
|
-
className: $
|
|
185
|
+
className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-segments', inputClassName),
|
|
186
186
|
ref: ref
|
|
187
|
-
}, state.segments.map((segment, i)=>/*#__PURE__*/ $
|
|
187
|
+
}, state.segments.map((segment, i)=>/*#__PURE__*/ $afQpO$react.createElement($8f320e1d67254f5c$export$6388987c5223b54e, {
|
|
188
188
|
key: i,
|
|
189
189
|
segment: segment,
|
|
190
190
|
state: state,
|
|
@@ -207,66 +207,66 @@ function $3b03d6b984a3be7b$export$34dc4cfa15ead1(props) {
|
|
|
207
207
|
|
|
208
208
|
|
|
209
209
|
|
|
210
|
-
var $
|
|
210
|
+
var $302bd214da97cdcb$exports = {};
|
|
211
211
|
|
|
212
|
-
$parcel$export($
|
|
213
|
-
$parcel$export($
|
|
214
|
-
$parcel$export($
|
|
215
|
-
$parcel$export($
|
|
216
|
-
$parcel$export($
|
|
217
|
-
$parcel$export($
|
|
218
|
-
$parcel$export($
|
|
219
|
-
$parcel$export($
|
|
220
|
-
$parcel$export($
|
|
221
|
-
$parcel$export($
|
|
222
|
-
$parcel$export($
|
|
223
|
-
$parcel$export($
|
|
224
|
-
$parcel$export($
|
|
225
|
-
$parcel$export($
|
|
226
|
-
$parcel$export($
|
|
227
|
-
$parcel$export($
|
|
228
|
-
var $
|
|
229
|
-
var $
|
|
230
|
-
var $
|
|
231
|
-
var $
|
|
232
|
-
var $
|
|
233
|
-
var $
|
|
234
|
-
var $
|
|
235
|
-
var $
|
|
236
|
-
var $
|
|
237
|
-
var $
|
|
238
|
-
var $
|
|
239
|
-
var $
|
|
240
|
-
var $
|
|
241
|
-
var $
|
|
242
|
-
var $
|
|
243
|
-
var $
|
|
244
|
-
$
|
|
245
|
-
$
|
|
246
|
-
$
|
|
247
|
-
$
|
|
248
|
-
$
|
|
249
|
-
$
|
|
250
|
-
$
|
|
251
|
-
$
|
|
252
|
-
$
|
|
253
|
-
$
|
|
254
|
-
$
|
|
255
|
-
$
|
|
256
|
-
$
|
|
257
|
-
$
|
|
258
|
-
$
|
|
259
|
-
$
|
|
212
|
+
$parcel$export($302bd214da97cdcb$exports, "spectrum-Textfield-input", () => $302bd214da97cdcb$export$1ac009feb2b0bd0c, (v) => $302bd214da97cdcb$export$1ac009feb2b0bd0c = v);
|
|
213
|
+
$parcel$export($302bd214da97cdcb$exports, "spectrum-Textfield", () => $302bd214da97cdcb$export$2c8a10299d8b3418, (v) => $302bd214da97cdcb$export$2c8a10299d8b3418 = v);
|
|
214
|
+
$parcel$export($302bd214da97cdcb$exports, "spectrum-Textfield--quiet", () => $302bd214da97cdcb$export$bffd5e3d61a81737, (v) => $302bd214da97cdcb$export$bffd5e3d61a81737 = v);
|
|
215
|
+
$parcel$export($302bd214da97cdcb$exports, "spectrum-Textfield--multiline", () => $302bd214da97cdcb$export$9699f1c538a448a0, (v) => $302bd214da97cdcb$export$9699f1c538a448a0 = v);
|
|
216
|
+
$parcel$export($302bd214da97cdcb$exports, "is-placeholder", () => $302bd214da97cdcb$export$e5b2f5233e4e5194, (v) => $302bd214da97cdcb$export$e5b2f5233e4e5194 = v);
|
|
217
|
+
$parcel$export($302bd214da97cdcb$exports, "is-hovered", () => $302bd214da97cdcb$export$b8813cd5d7824ce7, (v) => $302bd214da97cdcb$export$b8813cd5d7824ce7 = v);
|
|
218
|
+
$parcel$export($302bd214da97cdcb$exports, "spectrum-Textfield--valid", () => $302bd214da97cdcb$export$c2abbc3f970170b7, (v) => $302bd214da97cdcb$export$c2abbc3f970170b7 = v);
|
|
219
|
+
$parcel$export($302bd214da97cdcb$exports, "spectrum-Textfield--invalid", () => $302bd214da97cdcb$export$58e50b10d30123df, (v) => $302bd214da97cdcb$export$58e50b10d30123df = v);
|
|
220
|
+
$parcel$export($302bd214da97cdcb$exports, "spectrum-Textfield--loadable", () => $302bd214da97cdcb$export$14fd30fea6f1348c, (v) => $302bd214da97cdcb$export$14fd30fea6f1348c = v);
|
|
221
|
+
$parcel$export($302bd214da97cdcb$exports, "spectrum-Textfield-validationIcon", () => $302bd214da97cdcb$export$cf0ead5b44db0da3, (v) => $302bd214da97cdcb$export$cf0ead5b44db0da3 = v);
|
|
222
|
+
$parcel$export($302bd214da97cdcb$exports, "spectrum-Textfield-icon", () => $302bd214da97cdcb$export$222d1ccd1870be1d, (v) => $302bd214da97cdcb$export$222d1ccd1870be1d = v);
|
|
223
|
+
$parcel$export($302bd214da97cdcb$exports, "spectrum-Textfield-inputIcon", () => $302bd214da97cdcb$export$c1cdcaa5fe76a871, (v) => $302bd214da97cdcb$export$c1cdcaa5fe76a871 = v);
|
|
224
|
+
$parcel$export($302bd214da97cdcb$exports, "spectrum-Textfield-circleLoader", () => $302bd214da97cdcb$export$82a249fb4d6127, (v) => $302bd214da97cdcb$export$82a249fb4d6127 = v);
|
|
225
|
+
$parcel$export($302bd214da97cdcb$exports, "is-focused", () => $302bd214da97cdcb$export$e7dc768d35940237, (v) => $302bd214da97cdcb$export$e7dc768d35940237 = v);
|
|
226
|
+
$parcel$export($302bd214da97cdcb$exports, "focus-ring", () => $302bd214da97cdcb$export$f39a09f249340e2a, (v) => $302bd214da97cdcb$export$f39a09f249340e2a = v);
|
|
227
|
+
$parcel$export($302bd214da97cdcb$exports, "is-disabled", () => $302bd214da97cdcb$export$d35bc1e505d1ebbf, (v) => $302bd214da97cdcb$export$d35bc1e505d1ebbf = v);
|
|
228
|
+
var $302bd214da97cdcb$export$1ac009feb2b0bd0c;
|
|
229
|
+
var $302bd214da97cdcb$export$2c8a10299d8b3418;
|
|
230
|
+
var $302bd214da97cdcb$export$bffd5e3d61a81737;
|
|
231
|
+
var $302bd214da97cdcb$export$9699f1c538a448a0;
|
|
232
|
+
var $302bd214da97cdcb$export$e5b2f5233e4e5194;
|
|
233
|
+
var $302bd214da97cdcb$export$b8813cd5d7824ce7;
|
|
234
|
+
var $302bd214da97cdcb$export$c2abbc3f970170b7;
|
|
235
|
+
var $302bd214da97cdcb$export$58e50b10d30123df;
|
|
236
|
+
var $302bd214da97cdcb$export$14fd30fea6f1348c;
|
|
237
|
+
var $302bd214da97cdcb$export$cf0ead5b44db0da3;
|
|
238
|
+
var $302bd214da97cdcb$export$222d1ccd1870be1d;
|
|
239
|
+
var $302bd214da97cdcb$export$c1cdcaa5fe76a871;
|
|
240
|
+
var $302bd214da97cdcb$export$82a249fb4d6127;
|
|
241
|
+
var $302bd214da97cdcb$export$e7dc768d35940237;
|
|
242
|
+
var $302bd214da97cdcb$export$f39a09f249340e2a;
|
|
243
|
+
var $302bd214da97cdcb$export$d35bc1e505d1ebbf;
|
|
244
|
+
$302bd214da97cdcb$export$1ac009feb2b0bd0c = "spectrum-Textfield-input_73bc77";
|
|
245
|
+
$302bd214da97cdcb$export$2c8a10299d8b3418 = "spectrum-Textfield_73bc77";
|
|
246
|
+
$302bd214da97cdcb$export$bffd5e3d61a81737 = "spectrum-Textfield--quiet_73bc77";
|
|
247
|
+
$302bd214da97cdcb$export$9699f1c538a448a0 = "spectrum-Textfield--multiline_73bc77";
|
|
248
|
+
$302bd214da97cdcb$export$e5b2f5233e4e5194 = "is-placeholder_73bc77";
|
|
249
|
+
$302bd214da97cdcb$export$b8813cd5d7824ce7 = "is-hovered_73bc77";
|
|
250
|
+
$302bd214da97cdcb$export$c2abbc3f970170b7 = "spectrum-Textfield--valid_73bc77";
|
|
251
|
+
$302bd214da97cdcb$export$58e50b10d30123df = "spectrum-Textfield--invalid_73bc77";
|
|
252
|
+
$302bd214da97cdcb$export$14fd30fea6f1348c = "spectrum-Textfield--loadable_73bc77";
|
|
253
|
+
$302bd214da97cdcb$export$cf0ead5b44db0da3 = "spectrum-Textfield-validationIcon_73bc77";
|
|
254
|
+
$302bd214da97cdcb$export$222d1ccd1870be1d = "spectrum-Textfield-icon_73bc77";
|
|
255
|
+
$302bd214da97cdcb$export$c1cdcaa5fe76a871 = "spectrum-Textfield-inputIcon_73bc77";
|
|
256
|
+
$302bd214da97cdcb$export$82a249fb4d6127 = "spectrum-Textfield-circleLoader_73bc77";
|
|
257
|
+
$302bd214da97cdcb$export$e7dc768d35940237 = "is-focused_73bc77";
|
|
258
|
+
$302bd214da97cdcb$export$f39a09f249340e2a = "focus-ring_73bc77";
|
|
259
|
+
$302bd214da97cdcb$export$d35bc1e505d1ebbf = "is-disabled_73bc77";
|
|
260
260
|
|
|
261
261
|
|
|
262
|
-
function $
|
|
263
|
-
let defaultRef = $
|
|
262
|
+
function $1695f8d86a3f81e5$export$f5b8910cec6cf069(props) {
|
|
263
|
+
let defaultRef = $afQpO$useRef();
|
|
264
264
|
let { isDisabled: isDisabled , isQuiet: isQuiet , inputClassName: inputClassName , validationState: validationState , children: children , fieldProps: fieldProps , inputRef: inputRef = defaultRef , className: className , autoFocus: autoFocus , style: style } = props;
|
|
265
265
|
// Reserve padding for the error icon when the width of the input is unconstrained.
|
|
266
266
|
// When constrained, don't reserve space because adding it only when invalid will
|
|
267
267
|
// not cause a layout shift.
|
|
268
|
-
let [reservePadding1, setReservePadding] = $
|
|
269
|
-
let onResize = $
|
|
268
|
+
let [reservePadding1, setReservePadding] = $afQpO$useValueEffect(false);
|
|
269
|
+
let onResize = $afQpO$useCallback(()=>setReservePadding(function*(reservePadding) {
|
|
270
270
|
if (reservePadding) // Try to collapse padding if the content is clipped.
|
|
271
271
|
{
|
|
272
272
|
if (inputRef.current.scrollWidth > inputRef.current.offsetWidth) {
|
|
@@ -287,10 +287,10 @@ function $7cd1b64b3d6f0f52$export$f5b8910cec6cf069(props) {
|
|
|
287
287
|
inputRef,
|
|
288
288
|
setReservePadding
|
|
289
289
|
]);
|
|
290
|
-
$
|
|
290
|
+
$afQpO$useLayoutEffect(onResize, [
|
|
291
291
|
onResize
|
|
292
292
|
]);
|
|
293
|
-
$
|
|
293
|
+
$afQpO$useResizeObserver({
|
|
294
294
|
ref: inputRef,
|
|
295
295
|
onResize: onResize
|
|
296
296
|
});
|
|
@@ -298,44 +298,44 @@ function $7cd1b64b3d6f0f52$export$f5b8910cec6cf069(props) {
|
|
|
298
298
|
// when there is enough space for the padding to be re-added. Ideally we'd
|
|
299
299
|
// use a resize observer on a parent element, but it's hard to know _what_
|
|
300
300
|
// parent element.
|
|
301
|
-
$
|
|
301
|
+
$afQpO$useEvent($afQpO$useRef(window), 'resize', onResize);
|
|
302
302
|
let isInvalid = validationState === 'invalid';
|
|
303
|
-
let textfieldClass = $
|
|
303
|
+
let textfieldClass = $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($302bd214da97cdcb$exports)), 'spectrum-Textfield', {
|
|
304
304
|
'spectrum-Textfield--invalid': isInvalid,
|
|
305
305
|
'spectrum-Textfield--valid': validationState === 'valid',
|
|
306
306
|
'spectrum-Textfield--quiet': isQuiet
|
|
307
|
-
}, $
|
|
308
|
-
let inputClass = $
|
|
307
|
+
}, $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-field'), className);
|
|
308
|
+
let inputClass = $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($302bd214da97cdcb$exports)), 'spectrum-Textfield-input', {
|
|
309
309
|
'is-disabled': isDisabled,
|
|
310
310
|
'is-invalid': isInvalid
|
|
311
|
-
}, reservePadding1 && $
|
|
312
|
-
let iconClass = $
|
|
311
|
+
}, reservePadding1 && $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-input'), inputClassName);
|
|
312
|
+
let iconClass = $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($302bd214da97cdcb$exports)), 'spectrum-Textfield-validationIcon');
|
|
313
313
|
let validationIcon = null;
|
|
314
|
-
if (validationState === 'invalid') validationIcon = /*#__PURE__*/ $
|
|
314
|
+
if (validationState === 'invalid') validationIcon = /*#__PURE__*/ $afQpO$react.createElement($afQpO$spectrumiconsuiAlertMedium, {
|
|
315
315
|
"data-testid": "invalid-icon",
|
|
316
316
|
UNSAFE_className: iconClass
|
|
317
317
|
});
|
|
318
|
-
else if (validationState === 'valid') validationIcon = /*#__PURE__*/ $
|
|
318
|
+
else if (validationState === 'valid') validationIcon = /*#__PURE__*/ $afQpO$react.createElement($afQpO$spectrumiconsuiCheckmarkMedium, {
|
|
319
319
|
"data-testid": "valid-icon",
|
|
320
320
|
UNSAFE_className: iconClass
|
|
321
321
|
});
|
|
322
|
-
return(/*#__PURE__*/ $
|
|
323
|
-
...$
|
|
322
|
+
return(/*#__PURE__*/ $afQpO$react.createElement("div", {
|
|
323
|
+
...$afQpO$mergeProps(fieldProps),
|
|
324
324
|
className: textfieldClass,
|
|
325
325
|
style: style
|
|
326
|
-
}, /*#__PURE__*/ $
|
|
327
|
-
focusClass: $
|
|
328
|
-
focusRingClass: $
|
|
326
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($afQpO$FocusRing, {
|
|
327
|
+
focusClass: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($302bd214da97cdcb$exports)), 'is-focused'),
|
|
328
|
+
focusRingClass: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($302bd214da97cdcb$exports)), 'focus-ring'),
|
|
329
329
|
isTextInput: true,
|
|
330
330
|
within: true
|
|
331
|
-
}, /*#__PURE__*/ $
|
|
331
|
+
}, /*#__PURE__*/ $afQpO$react.createElement("div", {
|
|
332
332
|
role: "presentation",
|
|
333
333
|
className: inputClass
|
|
334
|
-
}, /*#__PURE__*/ $
|
|
334
|
+
}, /*#__PURE__*/ $afQpO$react.createElement("div", {
|
|
335
335
|
role: "presentation",
|
|
336
|
-
className: $
|
|
336
|
+
className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-inputContents'),
|
|
337
337
|
ref: inputRef
|
|
338
|
-
}, /*#__PURE__*/ $
|
|
338
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($afQpO$FocusScope, {
|
|
339
339
|
autoFocus: autoFocus
|
|
340
340
|
}, children)))), validationIcon));
|
|
341
341
|
}
|
|
@@ -344,117 +344,117 @@ function $7cd1b64b3d6f0f52$export$f5b8910cec6cf069(props) {
|
|
|
344
344
|
|
|
345
345
|
|
|
346
346
|
|
|
347
|
-
var $
|
|
348
|
-
|
|
349
|
-
$parcel$export($
|
|
350
|
-
$parcel$export($
|
|
351
|
-
$parcel$export($
|
|
352
|
-
$parcel$export($
|
|
353
|
-
$parcel$export($
|
|
354
|
-
$parcel$export($
|
|
355
|
-
$parcel$export($
|
|
356
|
-
$parcel$export($
|
|
357
|
-
$parcel$export($
|
|
358
|
-
$parcel$export($
|
|
359
|
-
$parcel$export($
|
|
360
|
-
$parcel$export($
|
|
361
|
-
$parcel$export($
|
|
362
|
-
$parcel$export($
|
|
363
|
-
$parcel$export($
|
|
364
|
-
$parcel$export($
|
|
365
|
-
$parcel$export($
|
|
366
|
-
$parcel$export($
|
|
367
|
-
$parcel$export($
|
|
368
|
-
$parcel$export($
|
|
369
|
-
$parcel$export($
|
|
370
|
-
$parcel$export($
|
|
371
|
-
var $
|
|
372
|
-
var $
|
|
373
|
-
var $
|
|
374
|
-
var $
|
|
375
|
-
var $
|
|
376
|
-
var $
|
|
377
|
-
var $
|
|
378
|
-
var $
|
|
379
|
-
var $
|
|
380
|
-
var $
|
|
381
|
-
var $
|
|
382
|
-
var $
|
|
383
|
-
var $
|
|
384
|
-
var $
|
|
385
|
-
var $
|
|
386
|
-
var $
|
|
387
|
-
var $
|
|
388
|
-
var $
|
|
389
|
-
var $
|
|
390
|
-
var $
|
|
391
|
-
var $
|
|
392
|
-
var $
|
|
393
|
-
$
|
|
394
|
-
$
|
|
395
|
-
$
|
|
396
|
-
$
|
|
397
|
-
$
|
|
398
|
-
$
|
|
399
|
-
$
|
|
400
|
-
$
|
|
401
|
-
$
|
|
402
|
-
$
|
|
403
|
-
$
|
|
404
|
-
$
|
|
405
|
-
$
|
|
406
|
-
$
|
|
407
|
-
$
|
|
408
|
-
$
|
|
409
|
-
$
|
|
410
|
-
$
|
|
411
|
-
$
|
|
412
|
-
$
|
|
413
|
-
$
|
|
414
|
-
$
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
var $
|
|
418
|
-
|
|
419
|
-
$parcel$export($
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
function $
|
|
432
|
-
props = $
|
|
347
|
+
var $a551245eb06c6862$exports = {};
|
|
348
|
+
|
|
349
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-InputGroup", () => $a551245eb06c6862$export$5be359c1227eedcb, (v) => $a551245eb06c6862$export$5be359c1227eedcb = v);
|
|
350
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-FieldButton", () => $a551245eb06c6862$export$a024c99ecf6b5741, (v) => $a551245eb06c6862$export$a024c99ecf6b5741 = v);
|
|
351
|
+
$parcel$export($a551245eb06c6862$exports, "is-disabled", () => $a551245eb06c6862$export$d35bc1e505d1ebbf, (v) => $a551245eb06c6862$export$d35bc1e505d1ebbf = v);
|
|
352
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-InputGroup--invalid", () => $a551245eb06c6862$export$3b48509739a9cda0, (v) => $a551245eb06c6862$export$3b48509739a9cda0 = v);
|
|
353
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-InputGroup--quiet", () => $a551245eb06c6862$export$ebf265ffc062029b, (v) => $a551245eb06c6862$export$ebf265ffc062029b = v);
|
|
354
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-InputGroup-field", () => $a551245eb06c6862$export$ea77459595e26bec, (v) => $a551245eb06c6862$export$ea77459595e26bec = v);
|
|
355
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-InputGroup-input-validationIcon", () => $a551245eb06c6862$export$f7ab13ee113f4884, (v) => $a551245eb06c6862$export$f7ab13ee113f4884 = v);
|
|
356
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-InputGroup-input-circleLoader", () => $a551245eb06c6862$export$dcc9e00cdad967fa, (v) => $a551245eb06c6862$export$dcc9e00cdad967fa = v);
|
|
357
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-InputGroup-input", () => $a551245eb06c6862$export$92706f5c6fe4074, (v) => $a551245eb06c6862$export$92706f5c6fe4074 = v);
|
|
358
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-InputGroup-icon", () => $a551245eb06c6862$export$b91b6af799fd93a8, (v) => $a551245eb06c6862$export$b91b6af799fd93a8 = v);
|
|
359
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-InputGroup-popover--quiet", () => $a551245eb06c6862$export$5e116178f9b1556a, (v) => $a551245eb06c6862$export$5e116178f9b1556a = v);
|
|
360
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-Datepicker--range", () => $a551245eb06c6862$export$1d8b0b29e11d7cd, (v) => $a551245eb06c6862$export$1d8b0b29e11d7cd = v);
|
|
361
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-Datepicker--datetimeRange", () => $a551245eb06c6862$export$58dd7cd23c92699f, (v) => $a551245eb06c6862$export$58dd7cd23c92699f = v);
|
|
362
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-Datepicker-startField", () => $a551245eb06c6862$export$80f9c838a8406469, (v) => $a551245eb06c6862$export$80f9c838a8406469 = v);
|
|
363
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-Datepicker-endField", () => $a551245eb06c6862$export$1c72fb41fa4f21ee, (v) => $a551245eb06c6862$export$1c72fb41fa4f21ee = v);
|
|
364
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-Datepicker--rangeDash", () => $a551245eb06c6862$export$202113e883898dc, (v) => $a551245eb06c6862$export$202113e883898dc = v);
|
|
365
|
+
$parcel$export($a551245eb06c6862$exports, "is-focused", () => $a551245eb06c6862$export$e7dc768d35940237, (v) => $a551245eb06c6862$export$e7dc768d35940237 = v);
|
|
366
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-Datepicker-focusRing", () => $a551245eb06c6862$export$eb262b15b9261fde, (v) => $a551245eb06c6862$export$eb262b15b9261fde = v);
|
|
367
|
+
$parcel$export($a551245eb06c6862$exports, "is-hovered", () => $a551245eb06c6862$export$b8813cd5d7824ce7, (v) => $a551245eb06c6862$export$b8813cd5d7824ce7 = v);
|
|
368
|
+
$parcel$export($a551245eb06c6862$exports, "focus-ring", () => $a551245eb06c6862$export$f39a09f249340e2a, (v) => $a551245eb06c6862$export$f39a09f249340e2a = v);
|
|
369
|
+
$parcel$export($a551245eb06c6862$exports, "is-selected", () => $a551245eb06c6862$export$1e0fb04f31d3c22a, (v) => $a551245eb06c6862$export$1e0fb04f31d3c22a = v);
|
|
370
|
+
$parcel$export($a551245eb06c6862$exports, "spectrum-FieldButton--invalid", () => $a551245eb06c6862$export$c9f503f672e8a3c1, (v) => $a551245eb06c6862$export$c9f503f672e8a3c1 = v);
|
|
371
|
+
var $a551245eb06c6862$export$5be359c1227eedcb;
|
|
372
|
+
var $a551245eb06c6862$export$a024c99ecf6b5741;
|
|
373
|
+
var $a551245eb06c6862$export$d35bc1e505d1ebbf;
|
|
374
|
+
var $a551245eb06c6862$export$3b48509739a9cda0;
|
|
375
|
+
var $a551245eb06c6862$export$ebf265ffc062029b;
|
|
376
|
+
var $a551245eb06c6862$export$ea77459595e26bec;
|
|
377
|
+
var $a551245eb06c6862$export$f7ab13ee113f4884;
|
|
378
|
+
var $a551245eb06c6862$export$dcc9e00cdad967fa;
|
|
379
|
+
var $a551245eb06c6862$export$92706f5c6fe4074;
|
|
380
|
+
var $a551245eb06c6862$export$b91b6af799fd93a8;
|
|
381
|
+
var $a551245eb06c6862$export$5e116178f9b1556a;
|
|
382
|
+
var $a551245eb06c6862$export$1d8b0b29e11d7cd;
|
|
383
|
+
var $a551245eb06c6862$export$58dd7cd23c92699f;
|
|
384
|
+
var $a551245eb06c6862$export$80f9c838a8406469;
|
|
385
|
+
var $a551245eb06c6862$export$1c72fb41fa4f21ee;
|
|
386
|
+
var $a551245eb06c6862$export$202113e883898dc;
|
|
387
|
+
var $a551245eb06c6862$export$e7dc768d35940237;
|
|
388
|
+
var $a551245eb06c6862$export$eb262b15b9261fde;
|
|
389
|
+
var $a551245eb06c6862$export$b8813cd5d7824ce7;
|
|
390
|
+
var $a551245eb06c6862$export$f39a09f249340e2a;
|
|
391
|
+
var $a551245eb06c6862$export$1e0fb04f31d3c22a;
|
|
392
|
+
var $a551245eb06c6862$export$c9f503f672e8a3c1;
|
|
393
|
+
$a551245eb06c6862$export$5be359c1227eedcb = "spectrum-InputGroup_a0942f";
|
|
394
|
+
$a551245eb06c6862$export$a024c99ecf6b5741 = "spectrum-FieldButton_a0942f";
|
|
395
|
+
$a551245eb06c6862$export$d35bc1e505d1ebbf = "is-disabled_a0942f";
|
|
396
|
+
$a551245eb06c6862$export$3b48509739a9cda0 = "spectrum-InputGroup--invalid_a0942f";
|
|
397
|
+
$a551245eb06c6862$export$ebf265ffc062029b = "spectrum-InputGroup--quiet_a0942f";
|
|
398
|
+
$a551245eb06c6862$export$ea77459595e26bec = "spectrum-InputGroup-field_a0942f";
|
|
399
|
+
$a551245eb06c6862$export$f7ab13ee113f4884 = "spectrum-InputGroup-input-validationIcon_a0942f";
|
|
400
|
+
$a551245eb06c6862$export$dcc9e00cdad967fa = "spectrum-InputGroup-input-circleLoader_a0942f";
|
|
401
|
+
$a551245eb06c6862$export$92706f5c6fe4074 = "spectrum-InputGroup-input_a0942f";
|
|
402
|
+
$a551245eb06c6862$export$b91b6af799fd93a8 = "spectrum-InputGroup-icon_a0942f";
|
|
403
|
+
$a551245eb06c6862$export$5e116178f9b1556a = "spectrum-InputGroup-popover--quiet_a0942f";
|
|
404
|
+
$a551245eb06c6862$export$1d8b0b29e11d7cd = "spectrum-Datepicker--range_a0942f";
|
|
405
|
+
$a551245eb06c6862$export$58dd7cd23c92699f = "spectrum-Datepicker--datetimeRange_a0942f";
|
|
406
|
+
$a551245eb06c6862$export$80f9c838a8406469 = "spectrum-Datepicker-startField_a0942f";
|
|
407
|
+
$a551245eb06c6862$export$1c72fb41fa4f21ee = "spectrum-Datepicker-endField_a0942f";
|
|
408
|
+
$a551245eb06c6862$export$202113e883898dc = "spectrum-Datepicker--rangeDash_a0942f";
|
|
409
|
+
$a551245eb06c6862$export$e7dc768d35940237 = "is-focused_a0942f";
|
|
410
|
+
$a551245eb06c6862$export$eb262b15b9261fde = "spectrum-Datepicker-focusRing_a0942f";
|
|
411
|
+
$a551245eb06c6862$export$b8813cd5d7824ce7 = "is-hovered_a0942f";
|
|
412
|
+
$a551245eb06c6862$export$f39a09f249340e2a = "focus-ring_a0942f";
|
|
413
|
+
$a551245eb06c6862$export$1e0fb04f31d3c22a = "is-selected_a0942f";
|
|
414
|
+
$a551245eb06c6862$export$c9f503f672e8a3c1 = "spectrum-FieldButton--invalid_a0942f";
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
var $47ef222aa623d963$exports = {};
|
|
418
|
+
|
|
419
|
+
$parcel$export($47ef222aa623d963$exports, "TimeField", () => $47ef222aa623d963$export$5eaee2322dd727eb);
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
function $47ef222aa623d963$export$5eaee2322dd727eb(props) {
|
|
432
|
+
props = $afQpO$useProviderProps(props);
|
|
433
433
|
let { autoFocus: autoFocus , isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , isQuiet: isQuiet } = props;
|
|
434
|
-
let ref = $
|
|
435
|
-
let { locale: locale } = $
|
|
436
|
-
let state = $
|
|
434
|
+
let ref = $afQpO$useRef();
|
|
435
|
+
let { locale: locale } = $afQpO$useLocale();
|
|
436
|
+
let state = $afQpO$useTimeFieldState({
|
|
437
437
|
...props,
|
|
438
438
|
locale: locale,
|
|
439
|
-
createCalendar: $
|
|
439
|
+
createCalendar: $afQpO$createCalendar
|
|
440
440
|
});
|
|
441
|
-
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $
|
|
442
|
-
return(/*#__PURE__*/ $
|
|
441
|
+
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $afQpO$useDateField(props, state, ref);
|
|
442
|
+
return(/*#__PURE__*/ $afQpO$react.createElement($afQpO$Field, {
|
|
443
443
|
...props,
|
|
444
444
|
labelProps: labelProps,
|
|
445
445
|
descriptionProps: descriptionProps,
|
|
446
446
|
errorMessageProps: errorMessageProps,
|
|
447
447
|
validationState: state.validationState,
|
|
448
|
-
UNSAFE_className: $
|
|
449
|
-
}, /*#__PURE__*/ $
|
|
448
|
+
UNSAFE_className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-TimeField-fieldWrapper')
|
|
449
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($1695f8d86a3f81e5$export$f5b8910cec6cf069, {
|
|
450
450
|
fieldProps: fieldProps,
|
|
451
451
|
isDisabled: isDisabled,
|
|
452
452
|
isQuiet: isQuiet,
|
|
453
453
|
autoFocus: autoFocus,
|
|
454
454
|
validationState: state.validationState,
|
|
455
455
|
inputRef: ref,
|
|
456
|
-
className: $
|
|
457
|
-
}, state.segments.map((segment, i)=>/*#__PURE__*/ $
|
|
456
|
+
className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-TimeField')
|
|
457
|
+
}, state.segments.map((segment, i)=>/*#__PURE__*/ $afQpO$react.createElement($8f320e1d67254f5c$export$6388987c5223b54e, {
|
|
458
458
|
key: i,
|
|
459
459
|
segment: segment,
|
|
460
460
|
state: state,
|
|
@@ -474,12 +474,12 @@ function $db4e1d48b6750dce$export$5eaee2322dd727eb(props) {
|
|
|
474
474
|
|
|
475
475
|
|
|
476
476
|
|
|
477
|
-
function $
|
|
478
|
-
let formatter = $
|
|
477
|
+
function $87b26629c53defbc$export$322f4580ccd8dde6(props) {
|
|
478
|
+
let formatter = $afQpO$useDateFormatter({
|
|
479
479
|
dateStyle: 'short'
|
|
480
480
|
});
|
|
481
|
-
let displayNames = $
|
|
482
|
-
return $
|
|
481
|
+
let displayNames = $afQpO$useDisplayNames();
|
|
482
|
+
return $afQpO$useMemo(()=>{
|
|
483
483
|
if (props.description) return props.description;
|
|
484
484
|
if (props.showFormatHelpText) return formatter.formatToParts(new Date()).map((s)=>{
|
|
485
485
|
if (s.type === 'literal') return s.value;
|
|
@@ -493,11 +493,11 @@ function $c3f8e0169081ff3c$export$322f4580ccd8dde6(props) {
|
|
|
493
493
|
displayNames
|
|
494
494
|
]);
|
|
495
495
|
}
|
|
496
|
-
function $
|
|
497
|
-
let { scale: scale } = $
|
|
498
|
-
let [visibleMonths, setVisibleMonths] = $
|
|
499
|
-
$
|
|
500
|
-
let onResize = ()=>setVisibleMonths($
|
|
496
|
+
function $87b26629c53defbc$export$12ce2869ce471b1f(maxVisibleMonths) {
|
|
497
|
+
let { scale: scale } = $afQpO$useProvider();
|
|
498
|
+
let [visibleMonths, setVisibleMonths] = $afQpO$useState($87b26629c53defbc$var$getVisibleMonths(scale));
|
|
499
|
+
$afQpO$useLayoutEffect(()=>{
|
|
500
|
+
let onResize = ()=>setVisibleMonths($87b26629c53defbc$var$getVisibleMonths(scale))
|
|
501
501
|
;
|
|
502
502
|
onResize();
|
|
503
503
|
window.addEventListener('resize', onResize);
|
|
@@ -509,7 +509,7 @@ function $c3f8e0169081ff3c$export$12ce2869ce471b1f(maxVisibleMonths) {
|
|
|
509
509
|
]);
|
|
510
510
|
return Math.max(1, Math.min(visibleMonths, maxVisibleMonths, 3));
|
|
511
511
|
}
|
|
512
|
-
function $
|
|
512
|
+
function $87b26629c53defbc$var$getVisibleMonths(scale) {
|
|
513
513
|
let monthWidth = scale === 'large' ? 336 : 280;
|
|
514
514
|
let gap = scale === 'large' ? 30 : 24;
|
|
515
515
|
let popoverPadding = scale === 'large' ? 32 : 48;
|
|
@@ -520,23 +520,23 @@ function $c3f8e0169081ff3c$var$getVisibleMonths(scale) {
|
|
|
520
520
|
|
|
521
521
|
|
|
522
522
|
|
|
523
|
-
function $
|
|
524
|
-
props = $
|
|
523
|
+
function $abe08035130a300c$export$5109c6dd95d8fb00(props) {
|
|
524
|
+
props = $afQpO$useProviderProps(props);
|
|
525
525
|
let { autoFocus: autoFocus , isQuiet: isQuiet , isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , placeholderValue: placeholderValue , maxVisibleMonths: maxVisibleMonths = 1 } = props;
|
|
526
|
-
let { hoverProps: hoverProps , isHovered: isHovered } = $
|
|
526
|
+
let { hoverProps: hoverProps , isHovered: isHovered } = $afQpO$useHover({
|
|
527
527
|
isDisabled: isDisabled
|
|
528
528
|
});
|
|
529
|
-
let targetRef = $
|
|
530
|
-
let state = $
|
|
531
|
-
let { groupProps: groupProps , labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps , buttonProps: buttonProps , dialogProps: dialogProps } = $
|
|
529
|
+
let targetRef = $afQpO$useRef();
|
|
530
|
+
let state = $afQpO$useDatePickerState(props);
|
|
531
|
+
let { groupProps: groupProps , labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps , buttonProps: buttonProps , dialogProps: dialogProps } = $afQpO$useDatePicker(props, state, targetRef);
|
|
532
532
|
let { value: value , setValue: setValue , isOpen: isOpen , setOpen: setOpen } = state;
|
|
533
|
-
let { direction: direction } = $
|
|
534
|
-
let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = $
|
|
533
|
+
let { direction: direction } = $afQpO$useLocale();
|
|
534
|
+
let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = $afQpO$useFocusRing({
|
|
535
535
|
within: true,
|
|
536
536
|
isTextInput: true,
|
|
537
537
|
autoFocus: autoFocus
|
|
538
538
|
});
|
|
539
|
-
let className = $
|
|
539
|
+
let className = $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a551245eb06c6862$exports)), 'spectrum-InputGroup', {
|
|
540
540
|
'spectrum-InputGroup--quiet': isQuiet,
|
|
541
541
|
'spectrum-InputGroup--invalid': state.validationState === 'invalid',
|
|
542
542
|
'is-disabled': isDisabled,
|
|
@@ -544,13 +544,13 @@ function $ec71bf5ce783db62$export$5109c6dd95d8fb00(props) {
|
|
|
544
544
|
'is-focused': isFocused,
|
|
545
545
|
'focus-ring': isFocusVisible
|
|
546
546
|
});
|
|
547
|
-
let fieldClassName = $
|
|
547
|
+
let fieldClassName = $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a551245eb06c6862$exports)), 'spectrum-InputGroup-input', {
|
|
548
548
|
'is-disabled': isDisabled,
|
|
549
549
|
'is-invalid': state.validationState === 'invalid'
|
|
550
550
|
});
|
|
551
551
|
// Note: this description is intentionally not passed to useDatePicker.
|
|
552
552
|
// The format help text is unnecessary for screen reader users because each segment already has a label.
|
|
553
|
-
let description = $
|
|
553
|
+
let description = $87b26629c53defbc$export$322f4580ccd8dde6(props);
|
|
554
554
|
if (description && !props.description) descriptionProps.id = null;
|
|
555
555
|
let placeholder = placeholderValue;
|
|
556
556
|
let timePlaceholder = placeholder && 'hour' in placeholder ? placeholder : null;
|
|
@@ -558,8 +558,8 @@ function $ec71bf5ce783db62$export$5109c6dd95d8fb00(props) {
|
|
|
558
558
|
let timeMaxValue = props.maxValue && 'hour' in props.maxValue ? props.maxValue : null;
|
|
559
559
|
let timeGranularity = state.granularity === 'hour' || state.granularity === 'minute' || state.granularity === 'second' || state.granularity === 'millisecond' ? state.granularity : null;
|
|
560
560
|
let showTimeField = !!timeGranularity;
|
|
561
|
-
let visibleMonths = $
|
|
562
|
-
return(/*#__PURE__*/ $
|
|
561
|
+
let visibleMonths = $87b26629c53defbc$export$12ce2869ce471b1f(maxVisibleMonths);
|
|
562
|
+
return(/*#__PURE__*/ $afQpO$react.createElement($afQpO$Field, {
|
|
563
563
|
...props,
|
|
564
564
|
ref: targetRef,
|
|
565
565
|
description: description,
|
|
@@ -567,18 +567,18 @@ function $ec71bf5ce783db62$export$5109c6dd95d8fb00(props) {
|
|
|
567
567
|
descriptionProps: descriptionProps,
|
|
568
568
|
errorMessageProps: errorMessageProps,
|
|
569
569
|
validationState: state.validationState,
|
|
570
|
-
UNSAFE_className: $
|
|
571
|
-
}, /*#__PURE__*/ $
|
|
572
|
-
...$
|
|
570
|
+
UNSAFE_className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-fieldWrapper')
|
|
571
|
+
}, /*#__PURE__*/ $afQpO$react.createElement("div", {
|
|
572
|
+
...$afQpO$mergeProps(groupProps, hoverProps, focusProps),
|
|
573
573
|
className: className
|
|
574
|
-
}, /*#__PURE__*/ $
|
|
574
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($1695f8d86a3f81e5$export$f5b8910cec6cf069, {
|
|
575
575
|
isDisabled: isDisabled,
|
|
576
576
|
isQuiet: isQuiet,
|
|
577
577
|
validationState: state.validationState,
|
|
578
578
|
autoFocus: autoFocus,
|
|
579
|
-
className: $
|
|
579
|
+
className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a551245eb06c6862$exports)), 'spectrum-InputGroup-field'),
|
|
580
580
|
inputClassName: fieldClassName
|
|
581
|
-
}, /*#__PURE__*/ $
|
|
581
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($00d145e546a6acce$export$34dc4cfa15ead1, {
|
|
582
582
|
...fieldProps,
|
|
583
583
|
"data-testid": "date-field",
|
|
584
584
|
isQuiet: isQuiet,
|
|
@@ -593,7 +593,7 @@ function $ec71bf5ce783db62$export$5109c6dd95d8fb00(props) {
|
|
|
593
593
|
hourCycle: props.hourCycle,
|
|
594
594
|
inputClassName: fieldClassName,
|
|
595
595
|
hideTimeZone: props.hideTimeZone
|
|
596
|
-
})), /*#__PURE__*/ $
|
|
596
|
+
})), /*#__PURE__*/ $afQpO$react.createElement($afQpO$DialogTrigger, {
|
|
597
597
|
type: "popover",
|
|
598
598
|
mobileType: "tray",
|
|
599
599
|
placement: direction === 'rtl' ? 'bottom right' : 'bottom left',
|
|
@@ -601,27 +601,27 @@ function $ec71bf5ce783db62$export$5109c6dd95d8fb00(props) {
|
|
|
601
601
|
hideArrow: true,
|
|
602
602
|
isOpen: isOpen,
|
|
603
603
|
onOpenChange: setOpen
|
|
604
|
-
}, /*#__PURE__*/ $
|
|
604
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($afQpO$FieldButton, {
|
|
605
605
|
...buttonProps,
|
|
606
|
-
UNSAFE_className: $
|
|
606
|
+
UNSAFE_className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a551245eb06c6862$exports)), 'spectrum-FieldButton'),
|
|
607
607
|
isQuiet: isQuiet,
|
|
608
608
|
validationState: state.validationState,
|
|
609
609
|
isDisabled: isDisabled || isReadOnly
|
|
610
|
-
}, /*#__PURE__*/ $
|
|
611
|
-
UNSAFE_className: $
|
|
610
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($afQpO$spectrumiconsworkflowCalendar, null)), /*#__PURE__*/ $afQpO$react.createElement($afQpO$Dialog, {
|
|
611
|
+
UNSAFE_className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-dialog'),
|
|
612
612
|
...dialogProps
|
|
613
|
-
}, /*#__PURE__*/ $
|
|
614
|
-
UNSAFE_className: $
|
|
615
|
-
}, /*#__PURE__*/ $
|
|
613
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($afQpO$Content, {
|
|
614
|
+
UNSAFE_className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-dialogContent')
|
|
615
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($afQpO$Calendar, {
|
|
616
616
|
autoFocus: true,
|
|
617
617
|
value: state.dateValue,
|
|
618
618
|
onChange: state.setDateValue,
|
|
619
619
|
visibleMonths: visibleMonths,
|
|
620
620
|
minValue: props.minValue,
|
|
621
621
|
maxValue: props.maxValue
|
|
622
|
-
}), showTimeField && /*#__PURE__*/ $
|
|
623
|
-
className: $
|
|
624
|
-
}, /*#__PURE__*/ $
|
|
622
|
+
}), showTimeField && /*#__PURE__*/ $afQpO$react.createElement("div", {
|
|
623
|
+
className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-timeFields')
|
|
624
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($47ef222aa623d963$export$5eaee2322dd727eb, {
|
|
625
625
|
label: "Time",
|
|
626
626
|
value: state.timeValue,
|
|
627
627
|
onChange: state.setTimeValue,
|
|
@@ -636,9 +636,9 @@ function $ec71bf5ce783db62$export$5109c6dd95d8fb00(props) {
|
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
|
|
639
|
-
var $
|
|
639
|
+
var $f009753b893d884a$exports = {};
|
|
640
640
|
|
|
641
|
-
$parcel$export($
|
|
641
|
+
$parcel$export($f009753b893d884a$exports, "DateRangePicker", () => $f009753b893d884a$export$17334619f3ac2224);
|
|
642
642
|
|
|
643
643
|
|
|
644
644
|
|
|
@@ -661,24 +661,25 @@ $parcel$export($08781f05fe647367$exports, "DateRangePicker", () => $08781f05fe64
|
|
|
661
661
|
|
|
662
662
|
|
|
663
663
|
|
|
664
|
-
function $
|
|
665
|
-
|
|
664
|
+
function $f009753b893d884a$export$17334619f3ac2224(props) {
|
|
665
|
+
var ref, ref1;
|
|
666
|
+
props = $afQpO$useProviderProps(props);
|
|
666
667
|
let { isQuiet: isQuiet , isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , autoFocus: autoFocus , placeholderValue: placeholderValue , maxVisibleMonths: maxVisibleMonths = 1 , ...otherProps } = props;
|
|
667
|
-
let { styleProps: styleProps } = $
|
|
668
|
-
let { hoverProps: hoverProps , isHovered: isHovered } = $
|
|
668
|
+
let { styleProps: styleProps } = $afQpO$useStyleProps(otherProps);
|
|
669
|
+
let { hoverProps: hoverProps , isHovered: isHovered } = $afQpO$useHover({
|
|
669
670
|
isDisabled: isDisabled
|
|
670
671
|
});
|
|
671
|
-
let targetRef = $
|
|
672
|
-
let state = $
|
|
673
|
-
let { labelProps: labelProps , groupProps: groupProps , buttonProps: buttonProps , dialogProps: dialogProps , startFieldProps: startFieldProps , endFieldProps: endFieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $
|
|
672
|
+
let targetRef = $afQpO$useRef();
|
|
673
|
+
let state = $afQpO$useDateRangePickerState(props);
|
|
674
|
+
let { labelProps: labelProps , groupProps: groupProps , buttonProps: buttonProps , dialogProps: dialogProps , startFieldProps: startFieldProps , endFieldProps: endFieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $afQpO$useDateRangePicker(props, state, targetRef);
|
|
674
675
|
let { value: value , isOpen: isOpen , setOpen: setOpen } = state;
|
|
675
|
-
let { direction: direction } = $
|
|
676
|
-
let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = $
|
|
676
|
+
let { direction: direction } = $afQpO$useLocale();
|
|
677
|
+
let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = $afQpO$useFocusRing({
|
|
677
678
|
within: true,
|
|
678
679
|
isTextInput: true,
|
|
679
680
|
autoFocus: autoFocus
|
|
680
681
|
});
|
|
681
|
-
let className = $
|
|
682
|
+
let className = $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a551245eb06c6862$exports)), 'spectrum-InputGroup', {
|
|
682
683
|
'spectrum-InputGroup--quiet': isQuiet,
|
|
683
684
|
'spectrum-InputGroup--invalid': state.validationState === 'invalid',
|
|
684
685
|
'is-disabled': isDisabled,
|
|
@@ -686,13 +687,13 @@ function $08781f05fe647367$export$17334619f3ac2224(props) {
|
|
|
686
687
|
'is-focused': isFocused,
|
|
687
688
|
'focus-ring': isFocusVisible
|
|
688
689
|
}, styleProps.className);
|
|
689
|
-
let fieldClassName = $
|
|
690
|
+
let fieldClassName = $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a551245eb06c6862$exports)), 'spectrum-InputGroup-input', {
|
|
690
691
|
'is-disabled': isDisabled,
|
|
691
692
|
'is-invalid': state.validationState === 'invalid'
|
|
692
693
|
});
|
|
693
694
|
// Note: this description is intentionally not passed to useDatePicker.
|
|
694
695
|
// The format help text is unnecessary for screen reader users because each segment already has a label.
|
|
695
|
-
let description = $
|
|
696
|
+
let description = $87b26629c53defbc$export$322f4580ccd8dde6(props);
|
|
696
697
|
if (description && !props.description) descriptionProps.id = null;
|
|
697
698
|
let placeholder = placeholderValue;
|
|
698
699
|
let timePlaceholder = placeholder && 'hour' in placeholder ? placeholder : null;
|
|
@@ -700,8 +701,8 @@ function $08781f05fe647367$export$17334619f3ac2224(props) {
|
|
|
700
701
|
let timeMaxValue = props.maxValue && 'hour' in props.maxValue ? props.maxValue : null;
|
|
701
702
|
let timeGranularity = state.granularity === 'hour' || state.granularity === 'minute' || state.granularity === 'second' || state.granularity === 'millisecond' ? state.granularity : null;
|
|
702
703
|
let showTimeField = !!timeGranularity;
|
|
703
|
-
let visibleMonths = $
|
|
704
|
-
return(/*#__PURE__*/ $
|
|
704
|
+
let visibleMonths = $87b26629c53defbc$export$12ce2869ce471b1f(maxVisibleMonths);
|
|
705
|
+
return(/*#__PURE__*/ $afQpO$react.createElement($afQpO$Field, {
|
|
705
706
|
...props,
|
|
706
707
|
ref: targetRef,
|
|
707
708
|
description: description,
|
|
@@ -709,19 +710,19 @@ function $08781f05fe647367$export$17334619f3ac2224(props) {
|
|
|
709
710
|
descriptionProps: descriptionProps,
|
|
710
711
|
errorMessageProps: errorMessageProps,
|
|
711
712
|
validationState: state.validationState,
|
|
712
|
-
UNSAFE_className: $
|
|
713
|
-
}, /*#__PURE__*/ $
|
|
713
|
+
UNSAFE_className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-fieldWrapper')
|
|
714
|
+
}, /*#__PURE__*/ $afQpO$react.createElement("div", {
|
|
714
715
|
...styleProps,
|
|
715
|
-
...$
|
|
716
|
+
...$afQpO$mergeProps(groupProps, hoverProps, focusProps),
|
|
716
717
|
className: className
|
|
717
|
-
}, /*#__PURE__*/ $
|
|
718
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($1695f8d86a3f81e5$export$f5b8910cec6cf069, {
|
|
718
719
|
isDisabled: isDisabled,
|
|
719
720
|
isQuiet: isQuiet,
|
|
720
721
|
validationState: state.validationState,
|
|
721
722
|
autoFocus: autoFocus,
|
|
722
|
-
className: $
|
|
723
|
+
className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a551245eb06c6862$exports)), 'spectrum-InputGroup-field'),
|
|
723
724
|
inputClassName: fieldClassName
|
|
724
|
-
}, /*#__PURE__*/ $
|
|
725
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($00d145e546a6acce$export$34dc4cfa15ead1, {
|
|
725
726
|
...startFieldProps,
|
|
726
727
|
isQuiet: props.isQuiet,
|
|
727
728
|
isDisabled: isDisabled,
|
|
@@ -729,15 +730,15 @@ function $08781f05fe647367$export$17334619f3ac2224(props) {
|
|
|
729
730
|
isRequired: isRequired,
|
|
730
731
|
validationState: state.validationState,
|
|
731
732
|
placeholderValue: placeholderValue,
|
|
732
|
-
value: value
|
|
733
|
+
value: (value === null || value === void 0 ? void 0 : value.start) || null,
|
|
733
734
|
defaultValue: null,
|
|
734
735
|
onChange: (start)=>state.setDateTime('start', start)
|
|
735
736
|
,
|
|
736
737
|
granularity: props.granularity,
|
|
737
738
|
hourCycle: props.hourCycle,
|
|
738
739
|
hideTimeZone: props.hideTimeZone,
|
|
739
|
-
inputClassName: $
|
|
740
|
-
}), /*#__PURE__*/ $
|
|
740
|
+
inputClassName: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-startField')
|
|
741
|
+
}), /*#__PURE__*/ $afQpO$react.createElement($f009753b893d884a$var$DateRangeDash, null), /*#__PURE__*/ $afQpO$react.createElement($00d145e546a6acce$export$34dc4cfa15ead1, {
|
|
741
742
|
...endFieldProps,
|
|
742
743
|
isQuiet: props.isQuiet,
|
|
743
744
|
isDisabled: isDisabled,
|
|
@@ -745,15 +746,15 @@ function $08781f05fe647367$export$17334619f3ac2224(props) {
|
|
|
745
746
|
isRequired: isRequired,
|
|
746
747
|
validationState: state.validationState,
|
|
747
748
|
placeholderValue: placeholderValue,
|
|
748
|
-
value: value
|
|
749
|
+
value: (value === null || value === void 0 ? void 0 : value.end) || null,
|
|
749
750
|
defaultValue: null,
|
|
750
751
|
onChange: (end)=>state.setDateTime('end', end)
|
|
751
752
|
,
|
|
752
753
|
granularity: props.granularity,
|
|
753
754
|
hourCycle: props.hourCycle,
|
|
754
755
|
hideTimeZone: props.hideTimeZone,
|
|
755
|
-
inputClassName: $
|
|
756
|
-
})), /*#__PURE__*/ $
|
|
756
|
+
inputClassName: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a551245eb06c6862$exports)), 'spectrum-Datepicker-endField', $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-endField'))
|
|
757
|
+
})), /*#__PURE__*/ $afQpO$react.createElement($afQpO$DialogTrigger, {
|
|
757
758
|
type: "popover",
|
|
758
759
|
mobileType: "tray",
|
|
759
760
|
placement: direction === 'rtl' ? 'bottom right' : 'bottom left',
|
|
@@ -761,31 +762,31 @@ function $08781f05fe647367$export$17334619f3ac2224(props) {
|
|
|
761
762
|
hideArrow: true,
|
|
762
763
|
isOpen: isOpen,
|
|
763
764
|
onOpenChange: setOpen
|
|
764
|
-
}, /*#__PURE__*/ $
|
|
765
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($afQpO$FieldButton, {
|
|
765
766
|
...buttonProps,
|
|
766
|
-
UNSAFE_className: $
|
|
767
|
+
UNSAFE_className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a551245eb06c6862$exports)), 'spectrum-FieldButton'),
|
|
767
768
|
isQuiet: isQuiet,
|
|
768
769
|
validationState: state.validationState,
|
|
769
770
|
isDisabled: isDisabled || isReadOnly
|
|
770
|
-
}, /*#__PURE__*/ $
|
|
771
|
-
UNSAFE_className: $
|
|
771
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($afQpO$spectrumiconsworkflowCalendar, null)), /*#__PURE__*/ $afQpO$react.createElement($afQpO$Dialog, {
|
|
772
|
+
UNSAFE_className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-dialog'),
|
|
772
773
|
...dialogProps
|
|
773
|
-
}, /*#__PURE__*/ $
|
|
774
|
-
UNSAFE_className: $
|
|
775
|
-
}, /*#__PURE__*/ $
|
|
774
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($afQpO$Content, {
|
|
775
|
+
UNSAFE_className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-dialogContent')
|
|
776
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($afQpO$RangeCalendar, {
|
|
776
777
|
autoFocus: true,
|
|
777
778
|
value: state.dateRange,
|
|
778
779
|
onChange: state.setDateRange,
|
|
779
780
|
visibleMonths: visibleMonths,
|
|
780
781
|
minValue: props.minValue,
|
|
781
782
|
maxValue: props.maxValue
|
|
782
|
-
}), showTimeField && /*#__PURE__*/ $
|
|
783
|
+
}), showTimeField && /*#__PURE__*/ $afQpO$react.createElement($afQpO$Flex, {
|
|
783
784
|
gap: "size-100",
|
|
784
785
|
marginTop: "size-100",
|
|
785
|
-
UNSAFE_className: $
|
|
786
|
-
}, /*#__PURE__*/ $
|
|
786
|
+
UNSAFE_className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-timeFields')
|
|
787
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($47ef222aa623d963$export$5eaee2322dd727eb, {
|
|
787
788
|
label: "Start time",
|
|
788
|
-
value: state.timeRange
|
|
789
|
+
value: ((ref = state.timeRange) === null || ref === void 0 ? void 0 : ref.start) || null,
|
|
789
790
|
onChange: (v)=>state.setTime('start', v)
|
|
790
791
|
,
|
|
791
792
|
placeholderValue: timePlaceholder,
|
|
@@ -795,9 +796,9 @@ function $08781f05fe647367$export$17334619f3ac2224(props) {
|
|
|
795
796
|
hourCycle: props.hourCycle,
|
|
796
797
|
hideTimeZone: props.hideTimeZone,
|
|
797
798
|
flex: true
|
|
798
|
-
}), /*#__PURE__*/ $
|
|
799
|
+
}), /*#__PURE__*/ $afQpO$react.createElement($47ef222aa623d963$export$5eaee2322dd727eb, {
|
|
799
800
|
label: "End time",
|
|
800
|
-
value: state.timeRange
|
|
801
|
+
value: ((ref1 = state.timeRange) === null || ref1 === void 0 ? void 0 : ref1.end) || null,
|
|
801
802
|
onChange: (v)=>state.setTime('end', v)
|
|
802
803
|
,
|
|
803
804
|
placeholderValue: timePlaceholder,
|
|
@@ -809,19 +810,19 @@ function $08781f05fe647367$export$17334619f3ac2224(props) {
|
|
|
809
810
|
flex: true
|
|
810
811
|
}))))))));
|
|
811
812
|
}
|
|
812
|
-
function $
|
|
813
|
-
return(/*#__PURE__*/ $
|
|
813
|
+
function $f009753b893d884a$var$DateRangeDash() {
|
|
814
|
+
return(/*#__PURE__*/ $afQpO$react.createElement("div", {
|
|
814
815
|
"aria-hidden": "true",
|
|
815
816
|
"data-testid": "date-range-dash",
|
|
816
|
-
className: $
|
|
817
|
+
className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-rangeDash')
|
|
817
818
|
}));
|
|
818
819
|
}
|
|
819
820
|
|
|
820
821
|
|
|
821
822
|
|
|
822
|
-
var $
|
|
823
|
+
var $a042f345f41bbd27$exports = {};
|
|
823
824
|
|
|
824
|
-
$parcel$export($
|
|
825
|
+
$parcel$export($a042f345f41bbd27$exports, "DateField", () => $a042f345f41bbd27$export$d9781c7894a82487);
|
|
825
826
|
|
|
826
827
|
|
|
827
828
|
|
|
@@ -834,38 +835,38 @@ $parcel$export($ecad186dd0b02804$exports, "DateField", () => $ecad186dd0b02804$e
|
|
|
834
835
|
|
|
835
836
|
|
|
836
837
|
|
|
837
|
-
function $
|
|
838
|
-
props = $
|
|
838
|
+
function $a042f345f41bbd27$export$d9781c7894a82487(props) {
|
|
839
|
+
props = $afQpO$useProviderProps(props);
|
|
839
840
|
let { autoFocus: autoFocus , isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , isQuiet: isQuiet } = props;
|
|
840
|
-
let ref = $
|
|
841
|
-
let { locale: locale } = $
|
|
842
|
-
let state = $
|
|
841
|
+
let ref = $afQpO$useRef();
|
|
842
|
+
let { locale: locale } = $afQpO$useLocale();
|
|
843
|
+
let state = $afQpO$useDatePickerFieldState({
|
|
843
844
|
...props,
|
|
844
845
|
locale: locale,
|
|
845
|
-
createCalendar: $
|
|
846
|
+
createCalendar: $afQpO$createCalendar
|
|
846
847
|
});
|
|
847
|
-
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $
|
|
848
|
+
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $afQpO$useDateField(props, state, ref);
|
|
848
849
|
// Note: this description is intentionally not passed to useDatePicker.
|
|
849
850
|
// The format help text is unnecessary for screen reader users because each segment already has a label.
|
|
850
|
-
let description = $
|
|
851
|
+
let description = $87b26629c53defbc$export$322f4580ccd8dde6(props);
|
|
851
852
|
if (description && !props.description) descriptionProps.id = null;
|
|
852
|
-
return(/*#__PURE__*/ $
|
|
853
|
+
return(/*#__PURE__*/ $afQpO$react.createElement($afQpO$Field, {
|
|
853
854
|
...props,
|
|
854
855
|
description: description,
|
|
855
856
|
labelProps: labelProps,
|
|
856
857
|
descriptionProps: descriptionProps,
|
|
857
858
|
errorMessageProps: errorMessageProps,
|
|
858
859
|
validationState: state.validationState,
|
|
859
|
-
UNSAFE_className: $
|
|
860
|
-
}, /*#__PURE__*/ $
|
|
860
|
+
UNSAFE_className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-Datepicker-fieldWrapper')
|
|
861
|
+
}, /*#__PURE__*/ $afQpO$react.createElement($1695f8d86a3f81e5$export$f5b8910cec6cf069, {
|
|
861
862
|
fieldProps: fieldProps,
|
|
862
863
|
isDisabled: isDisabled,
|
|
863
864
|
isQuiet: isQuiet,
|
|
864
865
|
autoFocus: autoFocus,
|
|
865
866
|
validationState: state.validationState,
|
|
866
867
|
inputRef: ref,
|
|
867
|
-
className: $
|
|
868
|
-
}, state.segments.map((segment, i)=>/*#__PURE__*/ $
|
|
868
|
+
className: $afQpO$classNames((/*@__PURE__*/$parcel$interopDefault($a43b74d85aeb9a19$exports)), 'react-spectrum-DateField')
|
|
869
|
+
}, state.segments.map((segment, i)=>/*#__PURE__*/ $afQpO$react.createElement($8f320e1d67254f5c$export$6388987c5223b54e, {
|
|
869
870
|
key: i,
|
|
870
871
|
segment: segment,
|
|
871
872
|
state: state,
|
|
@@ -879,5 +880,5 @@ function $ecad186dd0b02804$export$d9781c7894a82487(props) {
|
|
|
879
880
|
|
|
880
881
|
|
|
881
882
|
|
|
882
|
-
export {$
|
|
883
|
+
export {$abe08035130a300c$export$5109c6dd95d8fb00 as DatePicker, $f009753b893d884a$export$17334619f3ac2224 as DateRangePicker, $47ef222aa623d963$export$5eaee2322dd727eb as TimeField, $a042f345f41bbd27$export$d9781c7894a82487 as DateField};
|
|
883
884
|
//# sourceMappingURL=module.js.map
|