@react-spectrum/datepicker 3.12.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DateField.main.js +5 -5
- package/dist/DateField.mjs +5 -5
- package/dist/DateField.module.js +5 -5
- package/dist/DatePicker.main.js +7 -7
- package/dist/DatePicker.mjs +7 -7
- package/dist/DatePicker.module.js +7 -7
- package/dist/DatePickerField.main.js +2 -2
- package/dist/DatePickerField.main.js.map +1 -1
- package/dist/DatePickerField.mjs +2 -2
- package/dist/DatePickerField.module.js +2 -2
- package/dist/DatePickerField.module.js.map +1 -1
- package/dist/DatePickerSegment.main.js +2 -2
- package/dist/DatePickerSegment.main.js.map +1 -1
- package/dist/DatePickerSegment.mjs +2 -2
- package/dist/DatePickerSegment.module.js +2 -2
- package/dist/DatePickerSegment.module.js.map +1 -1
- package/dist/DateRangePicker.main.js +14 -9
- package/dist/DateRangePicker.main.js.map +1 -1
- package/dist/DateRangePicker.mjs +14 -9
- package/dist/DateRangePicker.module.js +14 -9
- package/dist/DateRangePicker.module.js.map +1 -1
- package/dist/Input.main.js +1 -1
- package/dist/Input.mjs +1 -1
- package/dist/Input.module.js +1 -1
- package/dist/TimeField.main.js +4 -4
- package/dist/TimeField.mjs +4 -4
- package/dist/TimeField.module.js +4 -4
- package/dist/inputgroup_vars_css.main.js +26 -26
- package/dist/inputgroup_vars_css.mjs +26 -26
- package/dist/inputgroup_vars_css.module.js +26 -26
- package/dist/{styles.d49f4d83.css → styles.cec10db3.css} +43 -44
- package/dist/styles.cec10db3.css.map +1 -0
- package/dist/styles_css.main.js +23 -23
- package/dist/styles_css.main.js.map +1 -1
- package/dist/styles_css.mjs +23 -23
- package/dist/styles_css.module.js +23 -23
- package/dist/styles_css.module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.main.js +44 -32
- package/dist/utils.main.js.map +1 -1
- package/dist/utils.mjs +37 -29
- package/dist/utils.module.js +37 -29
- package/dist/utils.module.js.map +1 -1
- package/dist/{vars.cf48e391.css → vars.fb8d1a6e.css} +132 -132
- package/dist/{vars.cf48e391.css.map → vars.fb8d1a6e.css.map} +1 -1
- package/package.json +20 -20
- package/src/DatePickerField.tsx +2 -2
- package/src/DatePickerSegment.tsx +2 -2
- package/src/DateRangePicker.tsx +30 -28
- package/src/styles.css +3 -4
- package/src/{utils.ts → utils.tsx} +9 -7
- package/dist/styles.d49f4d83.css.map +0 -1
package/dist/DateRangePicker.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {DatePickerField as $d2bb88c82604b25f$export$34dc4cfa15ead1} from "./DatePickerField.mjs";
|
|
2
|
-
import "./styles.
|
|
2
|
+
import "./styles.cec10db3.css";
|
|
3
3
|
import $dUbU7$styles_cssmodulejs from "./styles_css.mjs";
|
|
4
4
|
import {Input as $79348162c55d687f$export$f5b8910cec6cf069} from "./Input.mjs";
|
|
5
5
|
import $dUbU7$intlStringsmodulejs from "./intlStrings.mjs";
|
|
6
|
-
import "./vars.
|
|
6
|
+
import "./vars.fb8d1a6e.css";
|
|
7
7
|
import $dUbU7$inputgroup_vars_cssmodulejs from "./inputgroup_vars_css.mjs";
|
|
8
8
|
import {TimeField as $f0a04554754386b6$export$5eaee2322dd727eb} from "./TimeField.mjs";
|
|
9
|
-
import {useFocusManagerRef as $
|
|
9
|
+
import {useFocusManagerRef as $ea94a5cfe92db3c2$export$71a23a36270e4bf0, useFormatHelpText as $ea94a5cfe92db3c2$export$322f4580ccd8dde6, useFormattedDateWidth as $ea94a5cfe92db3c2$export$31e22e3c931fc056, useVisibleMonths as $ea94a5cfe92db3c2$export$12ce2869ce471b1f} from "./utils.mjs";
|
|
10
10
|
import $dUbU7$spectrumiconsworkflowCalendar from "@spectrum-icons/workflow/Calendar";
|
|
11
11
|
import {classNames as $dUbU7$classNames} from "@react-spectrum/utils";
|
|
12
12
|
import {Content as $dUbU7$Content} from "@react-spectrum/view";
|
|
@@ -79,7 +79,7 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
79
79
|
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, $dUbU7$useDateRangePicker)(props, state, targetRef);
|
|
80
80
|
let { isOpen: isOpen, setOpen: setOpen } = state;
|
|
81
81
|
let { direction: direction } = (0, $dUbU7$useLocale)();
|
|
82
|
-
let domRef = (0, $
|
|
82
|
+
let domRef = (0, $ea94a5cfe92db3c2$export$71a23a36270e4bf0)(ref);
|
|
83
83
|
let stringFormatter = (0, $dUbU7$useLocalizedStringFormatter)((0, ($parcel$interopDefault($dUbU7$intlStringsmodulejs))), '@react-spectrum/datepicker');
|
|
84
84
|
let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $dUbU7$useFocusRing)({
|
|
85
85
|
within: true,
|
|
@@ -105,7 +105,7 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
105
105
|
});
|
|
106
106
|
// Note: this description is intentionally not passed to useDatePicker.
|
|
107
107
|
// The format help text is unnecessary for screen reader users because each segment already has a label.
|
|
108
|
-
let description = (0, $
|
|
108
|
+
let description = (0, $ea94a5cfe92db3c2$export$322f4580ccd8dde6)(props);
|
|
109
109
|
if (description && !props.description) descriptionProps.id = undefined;
|
|
110
110
|
let placeholder = placeholderValue;
|
|
111
111
|
let timePlaceholder = placeholder && 'hour' in placeholder ? placeholder : null;
|
|
@@ -113,10 +113,10 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
113
113
|
let timeMaxValue = props.maxValue && 'hour' in props.maxValue ? props.maxValue : null;
|
|
114
114
|
let timeGranularity = state.granularity === 'hour' || state.granularity === 'minute' || state.granularity === 'second' ? state.granularity : null;
|
|
115
115
|
let showTimeField = !!timeGranularity;
|
|
116
|
-
let visibleMonths = (0, $
|
|
116
|
+
let visibleMonths = (0, $ea94a5cfe92db3c2$export$12ce2869ce471b1f)(maxVisibleMonths);
|
|
117
117
|
let validationState = state.validationState || (isInvalid ? 'invalid' : null);
|
|
118
118
|
// Multiplying by two for the two dates, adding one character for the dash, and then the padding around the dash
|
|
119
|
-
let approximateWidth = `calc(${(0, $
|
|
119
|
+
let approximateWidth = `calc(${(0, $ea94a5cfe92db3c2$export$31e22e3c931fc056)(state) * 2 + 1}ch + 2 * var(--spectrum-global-dimension-size-100))`;
|
|
120
120
|
return /*#__PURE__*/ (0, $dUbU7$react).createElement((0, $dUbU7$Field), {
|
|
121
121
|
...props,
|
|
122
122
|
ref: domRef,
|
|
@@ -134,6 +134,11 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
134
134
|
...(0, $dUbU7$mergeProps)(groupProps, hoverProps, focusProps),
|
|
135
135
|
className: className,
|
|
136
136
|
ref: targetRef
|
|
137
|
+
}, /*#__PURE__*/ (0, $dUbU7$react).createElement("div", {
|
|
138
|
+
style: {
|
|
139
|
+
overflow: 'hidden',
|
|
140
|
+
width: '100%'
|
|
141
|
+
}
|
|
137
142
|
}, /*#__PURE__*/ (0, $dUbU7$react).createElement((0, $79348162c55d687f$export$f5b8910cec6cf069), {
|
|
138
143
|
isDisabled: isDisabled,
|
|
139
144
|
isQuiet: isQuiet,
|
|
@@ -152,7 +157,7 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
152
157
|
"data-testid": "end-date",
|
|
153
158
|
isQuiet: props.isQuiet,
|
|
154
159
|
inputClassName: (0, $dUbU7$classNames)((0, ($parcel$interopDefault($dUbU7$inputgroup_vars_cssmodulejs))), 'spectrum-Datepicker-endField', (0, $dUbU7$classNames)((0, ($parcel$interopDefault($dUbU7$styles_cssmodulejs))), 'react-spectrum-Datepicker-endField'))
|
|
155
|
-
})), /*#__PURE__*/ (0, $dUbU7$react).createElement((0, $dUbU7$DialogTrigger), {
|
|
160
|
+
}))), /*#__PURE__*/ (0, $dUbU7$react).createElement((0, $dUbU7$DialogTrigger), {
|
|
156
161
|
type: "popover",
|
|
157
162
|
mobileType: "tray",
|
|
158
163
|
placement: direction === 'rtl' ? 'bottom right' : 'bottom left',
|
|
@@ -208,7 +213,7 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
208
213
|
}))))))));
|
|
209
214
|
});
|
|
210
215
|
function $cb301300011a98f7$var$DateRangeDash() {
|
|
211
|
-
return /*#__PURE__*/ (0, $dUbU7$react).createElement("
|
|
216
|
+
return /*#__PURE__*/ (0, $dUbU7$react).createElement("span", {
|
|
212
217
|
"aria-hidden": "true",
|
|
213
218
|
"data-testid": "date-range-dash",
|
|
214
219
|
className: (0, $dUbU7$classNames)((0, ($parcel$interopDefault($dUbU7$styles_cssmodulejs))), 'react-spectrum-Datepicker-rangeDash')
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {DatePickerField as $d2bb88c82604b25f$export$34dc4cfa15ead1} from "./DatePickerField.module.js";
|
|
2
|
-
import "./styles.
|
|
2
|
+
import "./styles.cec10db3.css";
|
|
3
3
|
import $dUbU7$styles_cssmodulejs from "./styles_css.module.js";
|
|
4
4
|
import {Input as $79348162c55d687f$export$f5b8910cec6cf069} from "./Input.module.js";
|
|
5
5
|
import $dUbU7$intlStringsmodulejs from "./intlStrings.module.js";
|
|
6
|
-
import "./vars.
|
|
6
|
+
import "./vars.fb8d1a6e.css";
|
|
7
7
|
import $dUbU7$inputgroup_vars_cssmodulejs from "./inputgroup_vars_css.module.js";
|
|
8
8
|
import {TimeField as $f0a04554754386b6$export$5eaee2322dd727eb} from "./TimeField.module.js";
|
|
9
|
-
import {useFocusManagerRef as $
|
|
9
|
+
import {useFocusManagerRef as $ea94a5cfe92db3c2$export$71a23a36270e4bf0, useFormatHelpText as $ea94a5cfe92db3c2$export$322f4580ccd8dde6, useFormattedDateWidth as $ea94a5cfe92db3c2$export$31e22e3c931fc056, useVisibleMonths as $ea94a5cfe92db3c2$export$12ce2869ce471b1f} from "./utils.module.js";
|
|
10
10
|
import $dUbU7$spectrumiconsworkflowCalendar from "@spectrum-icons/workflow/Calendar";
|
|
11
11
|
import {classNames as $dUbU7$classNames} from "@react-spectrum/utils";
|
|
12
12
|
import {Content as $dUbU7$Content} from "@react-spectrum/view";
|
|
@@ -79,7 +79,7 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
79
79
|
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, $dUbU7$useDateRangePicker)(props, state, targetRef);
|
|
80
80
|
let { isOpen: isOpen, setOpen: setOpen } = state;
|
|
81
81
|
let { direction: direction } = (0, $dUbU7$useLocale)();
|
|
82
|
-
let domRef = (0, $
|
|
82
|
+
let domRef = (0, $ea94a5cfe92db3c2$export$71a23a36270e4bf0)(ref);
|
|
83
83
|
let stringFormatter = (0, $dUbU7$useLocalizedStringFormatter)((0, ($parcel$interopDefault($dUbU7$intlStringsmodulejs))), '@react-spectrum/datepicker');
|
|
84
84
|
let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $dUbU7$useFocusRing)({
|
|
85
85
|
within: true,
|
|
@@ -105,7 +105,7 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
105
105
|
});
|
|
106
106
|
// Note: this description is intentionally not passed to useDatePicker.
|
|
107
107
|
// The format help text is unnecessary for screen reader users because each segment already has a label.
|
|
108
|
-
let description = (0, $
|
|
108
|
+
let description = (0, $ea94a5cfe92db3c2$export$322f4580ccd8dde6)(props);
|
|
109
109
|
if (description && !props.description) descriptionProps.id = undefined;
|
|
110
110
|
let placeholder = placeholderValue;
|
|
111
111
|
let timePlaceholder = placeholder && 'hour' in placeholder ? placeholder : null;
|
|
@@ -113,10 +113,10 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
113
113
|
let timeMaxValue = props.maxValue && 'hour' in props.maxValue ? props.maxValue : null;
|
|
114
114
|
let timeGranularity = state.granularity === 'hour' || state.granularity === 'minute' || state.granularity === 'second' ? state.granularity : null;
|
|
115
115
|
let showTimeField = !!timeGranularity;
|
|
116
|
-
let visibleMonths = (0, $
|
|
116
|
+
let visibleMonths = (0, $ea94a5cfe92db3c2$export$12ce2869ce471b1f)(maxVisibleMonths);
|
|
117
117
|
let validationState = state.validationState || (isInvalid ? 'invalid' : null);
|
|
118
118
|
// Multiplying by two for the two dates, adding one character for the dash, and then the padding around the dash
|
|
119
|
-
let approximateWidth = `calc(${(0, $
|
|
119
|
+
let approximateWidth = `calc(${(0, $ea94a5cfe92db3c2$export$31e22e3c931fc056)(state) * 2 + 1}ch + 2 * var(--spectrum-global-dimension-size-100))`;
|
|
120
120
|
return /*#__PURE__*/ (0, $dUbU7$react).createElement((0, $dUbU7$Field), {
|
|
121
121
|
...props,
|
|
122
122
|
ref: domRef,
|
|
@@ -134,6 +134,11 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
134
134
|
...(0, $dUbU7$mergeProps)(groupProps, hoverProps, focusProps),
|
|
135
135
|
className: className,
|
|
136
136
|
ref: targetRef
|
|
137
|
+
}, /*#__PURE__*/ (0, $dUbU7$react).createElement("div", {
|
|
138
|
+
style: {
|
|
139
|
+
overflow: 'hidden',
|
|
140
|
+
width: '100%'
|
|
141
|
+
}
|
|
137
142
|
}, /*#__PURE__*/ (0, $dUbU7$react).createElement((0, $79348162c55d687f$export$f5b8910cec6cf069), {
|
|
138
143
|
isDisabled: isDisabled,
|
|
139
144
|
isQuiet: isQuiet,
|
|
@@ -152,7 +157,7 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
152
157
|
"data-testid": "end-date",
|
|
153
158
|
isQuiet: props.isQuiet,
|
|
154
159
|
inputClassName: (0, $dUbU7$classNames)((0, ($parcel$interopDefault($dUbU7$inputgroup_vars_cssmodulejs))), 'spectrum-Datepicker-endField', (0, $dUbU7$classNames)((0, ($parcel$interopDefault($dUbU7$styles_cssmodulejs))), 'react-spectrum-Datepicker-endField'))
|
|
155
|
-
})), /*#__PURE__*/ (0, $dUbU7$react).createElement((0, $dUbU7$DialogTrigger), {
|
|
160
|
+
}))), /*#__PURE__*/ (0, $dUbU7$react).createElement((0, $dUbU7$DialogTrigger), {
|
|
156
161
|
type: "popover",
|
|
157
162
|
mobileType: "tray",
|
|
158
163
|
placement: direction === 'rtl' ? 'bottom right' : 'bottom left',
|
|
@@ -208,7 +213,7 @@ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $dUbU7$react
|
|
|
208
213
|
}))))))));
|
|
209
214
|
});
|
|
210
215
|
function $cb301300011a98f7$var$DateRangeDash() {
|
|
211
|
-
return /*#__PURE__*/ (0, $dUbU7$react).createElement("
|
|
216
|
+
return /*#__PURE__*/ (0, $dUbU7$react).createElement("span", {
|
|
212
217
|
"aria-hidden": "true",
|
|
213
218
|
"data-testid": "date-range-dash",
|
|
214
219
|
className: (0, $dUbU7$classNames)((0, ($parcel$interopDefault($dUbU7$styles_cssmodulejs))), 'react-spectrum-Datepicker-rangeDash')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;AA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iBAAS,EAAE,CAAA,GAAA,mDAAe,GAAG;qBAC3C,gCAAC,CAAA,GAAA,oBAAY;QACV,GAAG,aAAa;QACjB,eAAe;QACf,cAAc;QACd,gBAAgB;QAChB,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,mDAAe,GAAG,sCAAsC;YAAC,cAAc,oBAAoB;QAAS;QAClI,+BACC,gCAAC,CAAA,GAAA,WAAG;QAAE,KAAI;QAAW,WAAU;QAAW,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,mDAAe,GAAG;qBACvF,gCAAC,CAAA,GAAA,yCAAQ;QACP,OAAO,gBAAgB,MAAM,CAAC;QAC9B,OAAO,EAAA,mBAAA,MAAM,SAAS,cAAf,uCAAA,iBAAiB,KAAK,KAAI;QACjC,UAAU,CAAA,IAAK,MAAM,OAAO,CAAC,SAAS;QACtC,kBAAkB;QAClB,aAAa;QACb,UAAU;QACV,UAAU;QACV,WAAW,MAAM,SAAS;QAC1B,cAAc,MAAM,YAAY;QAChC,MAAA;sBACF,gCAAC,CAAA,GAAA,yCAAQ;QACP,OAAO,gBAAgB,MAAM,CAAC;QAC9B,OAAO,EAAA,oBAAA,MAAM,SAAS,cAAf,wCAAA,kBAAiB,GAAG,KAAI;QAC/B,UAAU,CAAA,IAAK,MAAM,OAAO,CAAC,OAAO;QACpC,kBAAkB;QAClB,aAAa;QACb,UAAU;QACV,UAAU;QACV,WAAW,MAAM,SAAS;QAC1B,cAAc,MAAM,YAAY;QAChC,MAAA;;AAUtB;AAEA,SAAS;IACP,qBACE,gCAAC;QACC,eAAY;QACZ,eAAY;QACZ,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,mDAAe,GAAG;;AAE9C","sources":["packages/@react-spectrum/datepicker/src/DateRangePicker.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport CalendarIcon from '@spectrum-icons/workflow/Calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport {DatePickerField} from './DatePickerField';\nimport datepickerStyles from './styles.css';\nimport {DateValue, SpectrumDateRangePickerProps} from '@react-types/datepicker';\nimport {Dialog, DialogTrigger} from '@react-spectrum/dialog';\nimport {Field} from '@react-spectrum/label';\nimport {FieldButton} from '@react-spectrum/button';\nimport {Flex} from '@react-spectrum/layout';\nimport {FocusableRef} from '@react-types/shared';\nimport {Input} from './Input';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps} from '@react-aria/utils';\nimport {RangeCalendar} from '@react-spectrum/calendar';\nimport React, {ReactElement, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/inputgroup/vars.css';\nimport {TimeField} from './TimeField';\nimport {useDateRangePicker} from '@react-aria/datepicker';\nimport {useDateRangePickerState} from '@react-stately/datepicker';\nimport {useFocusManagerRef, useFormatHelpText, useFormattedDateWidth, useVisibleMonths} from './utils';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\n/**\n * DateRangePickers combine two DateFields and a RangeCalendar popover to allow users\n * to enter or select a date and time range.\n */\nexport const DateRangePicker = React.forwardRef(function DateRangePicker<T extends DateValue>(props: SpectrumDateRangePickerProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n let {\n isQuiet,\n isDisabled,\n autoFocus,\n placeholderValue,\n maxVisibleMonths = 1,\n pageBehavior,\n firstDayOfWeek\n } = props;\n let {hoverProps, isHovered} = useHover({isDisabled});\n let targetRef = useRef<HTMLDivElement | null>(null);\n let state = useDateRangePickerState({\n ...props,\n shouldCloseOnSelect: () => !state.hasTime\n });\n let {labelProps, groupProps, buttonProps, dialogProps, startFieldProps, endFieldProps, descriptionProps, errorMessageProps, calendarProps, isInvalid, validationErrors, validationDetails} = useDateRangePicker(props, state, targetRef);\n let {isOpen, setOpen} = state;\n let {direction} = useLocale();\n let domRef = useFocusManagerRef(ref);\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/datepicker');\n\n let {isFocused, isFocusVisible, focusProps} = useFocusRing({\n within: true,\n isTextInput: true,\n autoFocus\n });\n\n let {isFocused: isFocusedButton, focusProps: focusPropsButton} = useFocusRing({\n within: false,\n isTextInput: false,\n autoFocus\n });\n\n let className = classNames(\n styles,\n 'spectrum-InputGroup',\n {\n 'spectrum-InputGroup--quiet': isQuiet,\n 'spectrum-InputGroup--invalid': isInvalid && !isDisabled,\n 'is-disabled': isDisabled,\n 'is-hovered': isHovered,\n 'is-focused': isFocused,\n 'focus-ring': isFocusVisible && !isFocusedButton\n }\n );\n\n let fieldClassName = classNames(\n styles,\n 'spectrum-InputGroup-input',\n {\n 'is-disabled': isDisabled,\n 'is-invalid': isInvalid && !isDisabled\n }\n );\n\n // Note: this description is intentionally not passed to useDatePicker.\n // The format help text is unnecessary for screen reader users because each segment already has a label.\n let description = useFormatHelpText(props);\n if (description && !props.description) {\n descriptionProps.id = undefined;\n }\n\n let placeholder: DateValue | null | undefined = placeholderValue;\n let timePlaceholder = placeholder && 'hour' in placeholder ? placeholder : null;\n let timeMinValue = props.minValue && 'hour' in props.minValue ? props.minValue : null;\n let timeMaxValue = props.maxValue && 'hour' in props.maxValue ? props.maxValue : null;\n let timeGranularity = state.granularity === 'hour' || state.granularity === 'minute' || state.granularity === 'second' ? state.granularity : null;\n let showTimeField = !!timeGranularity;\n\n let visibleMonths = useVisibleMonths(maxVisibleMonths);\n let validationState = state.validationState || (isInvalid ? 'invalid' : null);\n\n // Multiplying by two for the two dates, adding one character for the dash, and then the padding around the dash\n let approximateWidth = `calc(${useFormattedDateWidth(state) * 2 + 1}ch + 2 * var(--spectrum-global-dimension-size-100))`;\n\n return (\n <Field\n {...props}\n ref={domRef}\n elementType=\"span\"\n description={description}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n validationState={validationState}\n isInvalid={isInvalid}\n validationErrors={validationErrors}\n validationDetails={validationDetails}\n wrapperClassName={classNames(datepickerStyles, 'react-spectrum-Datepicker-fieldWrapper')}>\n <div\n {...mergeProps(groupProps, hoverProps, focusProps)}\n className={className}\n ref={targetRef}>\n <Input\n isDisabled={isDisabled}\n isQuiet={isQuiet}\n validationState={validationState}\n className={classNames(styles, 'spectrum-InputGroup-field')}\n inputClassName={fieldClassName}\n disableFocusRing\n minWidth={approximateWidth}>\n <DatePickerField\n {...startFieldProps}\n data-testid=\"start-date\"\n isQuiet={props.isQuiet}\n inputClassName={classNames(datepickerStyles, 'react-spectrum-Datepicker-startField')} />\n <DateRangeDash />\n <DatePickerField\n {...endFieldProps}\n data-testid=\"end-date\"\n isQuiet={props.isQuiet}\n inputClassName={classNames(\n styles,\n 'spectrum-Datepicker-endField',\n classNames(\n datepickerStyles,\n 'react-spectrum-Datepicker-endField'\n )\n )} />\n </Input>\n <DialogTrigger\n type=\"popover\"\n mobileType=\"tray\"\n placement={direction === 'rtl' ? 'bottom right' : 'bottom left'}\n targetRef={targetRef}\n hideArrow\n isOpen={isOpen}\n onOpenChange={setOpen}\n shouldFlip={props.shouldFlip}>\n <FieldButton\n {...mergeProps(buttonProps, focusPropsButton)}\n UNSAFE_className={classNames(styles, 'spectrum-FieldButton')}\n isQuiet={isQuiet}\n validationState={validationState}>\n <CalendarIcon />\n </FieldButton>\n <Dialog UNSAFE_className={classNames(datepickerStyles, 'react-spectrum-Datepicker-dialog')} {...dialogProps}>\n <Content>\n <div className={classNames(datepickerStyles, 'react-spectrum-Datepicker-dialogContent')}>\n <RangeCalendar\n {...calendarProps}\n visibleMonths={visibleMonths}\n pageBehavior={pageBehavior}\n firstDayOfWeek={firstDayOfWeek}\n UNSAFE_className={classNames(datepickerStyles, 'react-spectrum-Datepicker-calendar', {'is-invalid': validationState === 'invalid'})} />\n {showTimeField &&\n <Flex gap=\"size-100\" marginTop=\"size-100\" UNSAFE_className={classNames(datepickerStyles, 'react-spectrum-Datepicker-timeFields')}>\n <TimeField\n label={stringFormatter.format('startTime')}\n value={state.timeRange?.start || null}\n onChange={v => state.setTime('start', v)}\n placeholderValue={timePlaceholder}\n granularity={timeGranularity}\n minValue={timeMinValue}\n maxValue={timeMaxValue}\n hourCycle={props.hourCycle}\n hideTimeZone={props.hideTimeZone}\n flex />\n <TimeField\n label={stringFormatter.format('endTime')}\n value={state.timeRange?.end || null}\n onChange={v => state.setTime('end', v)}\n placeholderValue={timePlaceholder}\n granularity={timeGranularity}\n minValue={timeMinValue}\n maxValue={timeMaxValue}\n hourCycle={props.hourCycle}\n hideTimeZone={props.hideTimeZone}\n flex />\n </Flex>\n }\n </div>\n </Content>\n </Dialog>\n </DialogTrigger>\n </div>\n </Field>\n );\n}) as <T extends DateValue>(props: SpectrumDateRangePickerProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\n\nfunction DateRangeDash() {\n return (\n <div\n aria-hidden=\"true\"\n data-testid=\"date-range-dash\"\n className={classNames(datepickerStyles, 'react-spectrum-Datepicker-rangeDash')} />\n );\n}\n"],"names":[],"version":3,"file":"DateRangePicker.module.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;AAkCM,MAAM,0DAAkB,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC,SAAS,gBAAqC,KAAsC,EAAE,GAA8B;QA0JvI,kBAWA;IApK3B,QAAQ,CAA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BAAY;QACV,GAAG,aAAa;QACjB,eAAe;QACf,cAAc;QACd,gBAAgB;QAChB,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,mDAAe,GAAG,sCAAsC;YAAC,cAAc,oBAAoB;QAAS;QAClI,+BACC,gCAAC,CAAA,GAAA,WAAG;QAAE,KAAI;QAAW,WAAU;QAAW,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,mDAAe,GAAG;qBACvF,gCAAC,CAAA,GAAA,yCAAQ;QACP,OAAO,gBAAgB,MAAM,CAAC;QAC9B,OAAO,EAAA,mBAAA,MAAM,SAAS,cAAf,uCAAA,iBAAiB,KAAK,KAAI;QACjC,UAAU,CAAA,IAAK,MAAM,OAAO,CAAC,SAAS;QACtC,kBAAkB;QAClB,aAAa;QACb,UAAU;QACV,UAAU;QACV,WAAW,MAAM,SAAS;QAC1B,cAAc,MAAM,YAAY;QAChC,MAAA;sBACF,gCAAC,CAAA,GAAA,yCAAQ;QACP,OAAO,gBAAgB,MAAM,CAAC;QAC9B,OAAO,EAAA,oBAAA,MAAM,SAAS,cAAf,wCAAA,kBAAiB,GAAG,KAAI;QAC/B,UAAU,CAAA,IAAK,MAAM,OAAO,CAAC,OAAO;QACpC,kBAAkB;QAClB,aAAa;QACb,UAAU;QACV,UAAU;QACV,WAAW,MAAM,SAAS;QAC1B,cAAc,MAAM,YAAY;QAChC,MAAA;;AAUtB;AAEA,SAAS;IACP,qBACE,gCAAC;QACC,eAAY;QACZ,eAAY;QACZ,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,mDAAe,GAAG;;AAE9C","sources":["packages/@react-spectrum/datepicker/src/DateRangePicker.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport CalendarIcon from '@spectrum-icons/workflow/Calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport {DatePickerField} from './DatePickerField';\nimport datepickerStyles from './styles.css';\nimport {DateValue, SpectrumDateRangePickerProps} from '@react-types/datepicker';\nimport {Dialog, DialogTrigger} from '@react-spectrum/dialog';\nimport {Field} from '@react-spectrum/label';\nimport {FieldButton} from '@react-spectrum/button';\nimport {Flex} from '@react-spectrum/layout';\nimport {FocusableRef} from '@react-types/shared';\nimport {Input} from './Input';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps} from '@react-aria/utils';\nimport {RangeCalendar} from '@react-spectrum/calendar';\nimport React, {ReactElement, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/inputgroup/vars.css';\nimport {TimeField} from './TimeField';\nimport {useDateRangePicker} from '@react-aria/datepicker';\nimport {useDateRangePickerState} from '@react-stately/datepicker';\nimport {useFocusManagerRef, useFormatHelpText, useFormattedDateWidth, useVisibleMonths} from './utils';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\n/**\n * DateRangePickers combine two DateFields and a RangeCalendar popover to allow users\n * to enter or select a date and time range.\n */\nexport const DateRangePicker = React.forwardRef(function DateRangePicker<T extends DateValue>(props: SpectrumDateRangePickerProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n let {\n isQuiet,\n isDisabled,\n autoFocus,\n placeholderValue,\n maxVisibleMonths = 1,\n pageBehavior,\n firstDayOfWeek\n } = props;\n let {hoverProps, isHovered} = useHover({isDisabled});\n let targetRef = useRef<HTMLDivElement | null>(null);\n let state = useDateRangePickerState({\n ...props,\n shouldCloseOnSelect: () => !state.hasTime\n });\n let {labelProps, groupProps, buttonProps, dialogProps, startFieldProps, endFieldProps, descriptionProps, errorMessageProps, calendarProps, isInvalid, validationErrors, validationDetails} = useDateRangePicker(props, state, targetRef);\n let {isOpen, setOpen} = state;\n let {direction} = useLocale();\n let domRef = useFocusManagerRef(ref);\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/datepicker');\n\n let {isFocused, isFocusVisible, focusProps} = useFocusRing({\n within: true,\n isTextInput: true,\n autoFocus\n });\n\n let {isFocused: isFocusedButton, focusProps: focusPropsButton} = useFocusRing({\n within: false,\n isTextInput: false,\n autoFocus\n });\n\n let className = classNames(\n styles,\n 'spectrum-InputGroup',\n {\n 'spectrum-InputGroup--quiet': isQuiet,\n 'spectrum-InputGroup--invalid': isInvalid && !isDisabled,\n 'is-disabled': isDisabled,\n 'is-hovered': isHovered,\n 'is-focused': isFocused,\n 'focus-ring': isFocusVisible && !isFocusedButton\n }\n );\n\n let fieldClassName = classNames(\n styles,\n 'spectrum-InputGroup-input',\n {\n 'is-disabled': isDisabled,\n 'is-invalid': isInvalid && !isDisabled\n }\n );\n\n // Note: this description is intentionally not passed to useDatePicker.\n // The format help text is unnecessary for screen reader users because each segment already has a label.\n let description = useFormatHelpText(props);\n if (description && !props.description) {\n descriptionProps.id = undefined;\n }\n\n let placeholder: DateValue | null | undefined = placeholderValue;\n let timePlaceholder = placeholder && 'hour' in placeholder ? placeholder : null;\n let timeMinValue = props.minValue && 'hour' in props.minValue ? props.minValue : null;\n let timeMaxValue = props.maxValue && 'hour' in props.maxValue ? props.maxValue : null;\n let timeGranularity = state.granularity === 'hour' || state.granularity === 'minute' || state.granularity === 'second' ? state.granularity : null;\n let showTimeField = !!timeGranularity;\n\n let visibleMonths = useVisibleMonths(maxVisibleMonths);\n let validationState = state.validationState || (isInvalid ? 'invalid' : null);\n\n // Multiplying by two for the two dates, adding one character for the dash, and then the padding around the dash\n let approximateWidth = `calc(${useFormattedDateWidth(state) * 2 + 1}ch + 2 * var(--spectrum-global-dimension-size-100))`;\n\n return (\n <Field\n {...props}\n ref={domRef}\n elementType=\"span\"\n description={description}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n validationState={validationState}\n isInvalid={isInvalid}\n validationErrors={validationErrors}\n validationDetails={validationDetails}\n wrapperClassName={classNames(datepickerStyles, 'react-spectrum-Datepicker-fieldWrapper')}>\n <div\n {...mergeProps(groupProps, hoverProps, focusProps)}\n className={className}\n ref={targetRef}>\n <div style={{overflow: 'hidden', width: '100%'}}>\n <Input\n isDisabled={isDisabled}\n isQuiet={isQuiet}\n validationState={validationState}\n className={classNames(styles, 'spectrum-InputGroup-field')}\n inputClassName={fieldClassName}\n disableFocusRing\n minWidth={approximateWidth}>\n <DatePickerField\n {...startFieldProps}\n data-testid=\"start-date\"\n isQuiet={props.isQuiet}\n inputClassName={classNames(datepickerStyles, 'react-spectrum-Datepicker-startField')} />\n <DateRangeDash />\n <DatePickerField\n {...endFieldProps}\n data-testid=\"end-date\"\n isQuiet={props.isQuiet}\n inputClassName={classNames(\n styles,\n 'spectrum-Datepicker-endField',\n classNames(\n datepickerStyles,\n 'react-spectrum-Datepicker-endField'\n )\n )} />\n </Input>\n </div>\n <DialogTrigger\n type=\"popover\"\n mobileType=\"tray\"\n placement={direction === 'rtl' ? 'bottom right' : 'bottom left'}\n targetRef={targetRef}\n hideArrow\n isOpen={isOpen}\n onOpenChange={setOpen}\n shouldFlip={props.shouldFlip}>\n <FieldButton\n {...mergeProps(buttonProps, focusPropsButton)}\n UNSAFE_className={classNames(styles, 'spectrum-FieldButton')}\n isQuiet={isQuiet}\n validationState={validationState}>\n <CalendarIcon />\n </FieldButton>\n <Dialog UNSAFE_className={classNames(datepickerStyles, 'react-spectrum-Datepicker-dialog')} {...dialogProps}>\n <Content>\n <div className={classNames(datepickerStyles, 'react-spectrum-Datepicker-dialogContent')}>\n <RangeCalendar\n {...calendarProps}\n visibleMonths={visibleMonths}\n pageBehavior={pageBehavior}\n firstDayOfWeek={firstDayOfWeek}\n UNSAFE_className={classNames(datepickerStyles, 'react-spectrum-Datepicker-calendar', {'is-invalid': validationState === 'invalid'})} />\n {showTimeField &&\n <Flex gap=\"size-100\" marginTop=\"size-100\" UNSAFE_className={classNames(datepickerStyles, 'react-spectrum-Datepicker-timeFields')}>\n <TimeField\n label={stringFormatter.format('startTime')}\n value={state.timeRange?.start || null}\n onChange={v => state.setTime('start', v)}\n placeholderValue={timePlaceholder}\n granularity={timeGranularity}\n minValue={timeMinValue}\n maxValue={timeMaxValue}\n hourCycle={props.hourCycle}\n hideTimeZone={props.hideTimeZone}\n flex />\n <TimeField\n label={stringFormatter.format('endTime')}\n value={state.timeRange?.end || null}\n onChange={v => state.setTime('end', v)}\n placeholderValue={timePlaceholder}\n granularity={timeGranularity}\n minValue={timeMinValue}\n maxValue={timeMaxValue}\n hourCycle={props.hourCycle}\n hideTimeZone={props.hideTimeZone}\n flex />\n </Flex>\n }\n </div>\n </Content>\n </Dialog>\n </DialogTrigger>\n </div>\n </Field>\n );\n}) as <T extends DateValue>(props: SpectrumDateRangePickerProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\n\nfunction DateRangeDash() {\n return (\n <span\n aria-hidden=\"true\"\n data-testid=\"date-range-dash\"\n className={classNames(datepickerStyles, 'react-spectrum-Datepicker-rangeDash')} />\n );\n}\n"],"names":[],"version":3,"file":"DateRangePicker.module.js.map"}
|
package/dist/Input.main.js
CHANGED
package/dist/Input.mjs
CHANGED
package/dist/Input.module.js
CHANGED
package/dist/TimeField.main.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var $edac158d20ebe4a9$exports = require("./DatePickerSegment.main.js");
|
|
2
|
-
require("./styles.
|
|
2
|
+
require("./styles.cec10db3.css");
|
|
3
3
|
var $91c3db8c6a21ca71$exports = require("./styles_css.main.js");
|
|
4
4
|
var $c3ebc4931d9b9977$exports = require("./Input.main.js");
|
|
5
|
-
var $
|
|
5
|
+
var $9d3b96715dbbb2b7$exports = require("./utils.main.js");
|
|
6
6
|
var $gfZkn$reactspectrumutils = require("@react-spectrum/utils");
|
|
7
7
|
var $gfZkn$reactspectrumlabel = require("@react-spectrum/label");
|
|
8
8
|
var $gfZkn$react = require("react");
|
|
@@ -48,7 +48,7 @@ const $740ff83729a8f317$export$5eaee2322dd727eb = /*#__PURE__*/ (0, ($parcel$int
|
|
|
48
48
|
props = (0, $gfZkn$reactspectrumprovider.useProviderProps)(props);
|
|
49
49
|
props = (0, $gfZkn$reactspectrumform.useFormProps)(props);
|
|
50
50
|
let { autoFocus: autoFocus, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, isQuiet: isQuiet } = props;
|
|
51
|
-
let domRef = (0, $
|
|
51
|
+
let domRef = (0, $9d3b96715dbbb2b7$exports.useFocusManagerRef)(ref);
|
|
52
52
|
let { locale: locale } = (0, $gfZkn$reactariai18n.useLocale)();
|
|
53
53
|
let state = (0, $gfZkn$reactstatelydatepicker.useTimeFieldState)({
|
|
54
54
|
...props,
|
|
@@ -61,7 +61,7 @@ const $740ff83729a8f317$export$5eaee2322dd727eb = /*#__PURE__*/ (0, ($parcel$int
|
|
|
61
61
|
inputRef: inputRef
|
|
62
62
|
}, state, fieldRef);
|
|
63
63
|
let validationState = state.validationState || (isInvalid ? 'invalid' : null);
|
|
64
|
-
let approximateWidth = (0, $
|
|
64
|
+
let approximateWidth = (0, $9d3b96715dbbb2b7$exports.useFormattedDateWidth)(state) + 'ch';
|
|
65
65
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($gfZkn$react))).createElement((0, $gfZkn$reactspectrumlabel.Field), {
|
|
66
66
|
...props,
|
|
67
67
|
ref: domRef,
|
package/dist/TimeField.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {DatePickerSegment as $cfa347761f172638$export$6388987c5223b54e} from "./DatePickerSegment.mjs";
|
|
2
|
-
import "./styles.
|
|
2
|
+
import "./styles.cec10db3.css";
|
|
3
3
|
import $immgY$styles_cssmodulejs from "./styles_css.mjs";
|
|
4
4
|
import {Input as $79348162c55d687f$export$f5b8910cec6cf069} from "./Input.mjs";
|
|
5
|
-
import {useFocusManagerRef as $
|
|
5
|
+
import {useFocusManagerRef as $ea94a5cfe92db3c2$export$71a23a36270e4bf0, useFormattedDateWidth as $ea94a5cfe92db3c2$export$31e22e3c931fc056} from "./utils.mjs";
|
|
6
6
|
import {classNames as $immgY$classNames} from "@react-spectrum/utils";
|
|
7
7
|
import {Field as $immgY$Field} from "@react-spectrum/label";
|
|
8
8
|
import $immgY$react, {useRef as $immgY$useRef} from "react";
|
|
@@ -42,7 +42,7 @@ const $f0a04554754386b6$export$5eaee2322dd727eb = /*#__PURE__*/ (0, $immgY$react
|
|
|
42
42
|
props = (0, $immgY$useProviderProps)(props);
|
|
43
43
|
props = (0, $immgY$useFormProps)(props);
|
|
44
44
|
let { autoFocus: autoFocus, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, isQuiet: isQuiet } = props;
|
|
45
|
-
let domRef = (0, $
|
|
45
|
+
let domRef = (0, $ea94a5cfe92db3c2$export$71a23a36270e4bf0)(ref);
|
|
46
46
|
let { locale: locale } = (0, $immgY$useLocale)();
|
|
47
47
|
let state = (0, $immgY$useTimeFieldState)({
|
|
48
48
|
...props,
|
|
@@ -55,7 +55,7 @@ const $f0a04554754386b6$export$5eaee2322dd727eb = /*#__PURE__*/ (0, $immgY$react
|
|
|
55
55
|
inputRef: inputRef
|
|
56
56
|
}, state, fieldRef);
|
|
57
57
|
let validationState = state.validationState || (isInvalid ? 'invalid' : null);
|
|
58
|
-
let approximateWidth = (0, $
|
|
58
|
+
let approximateWidth = (0, $ea94a5cfe92db3c2$export$31e22e3c931fc056)(state) + 'ch';
|
|
59
59
|
return /*#__PURE__*/ (0, $immgY$react).createElement((0, $immgY$Field), {
|
|
60
60
|
...props,
|
|
61
61
|
ref: domRef,
|
package/dist/TimeField.module.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {DatePickerSegment as $cfa347761f172638$export$6388987c5223b54e} from "./DatePickerSegment.module.js";
|
|
2
|
-
import "./styles.
|
|
2
|
+
import "./styles.cec10db3.css";
|
|
3
3
|
import $immgY$styles_cssmodulejs from "./styles_css.module.js";
|
|
4
4
|
import {Input as $79348162c55d687f$export$f5b8910cec6cf069} from "./Input.module.js";
|
|
5
|
-
import {useFocusManagerRef as $
|
|
5
|
+
import {useFocusManagerRef as $ea94a5cfe92db3c2$export$71a23a36270e4bf0, useFormattedDateWidth as $ea94a5cfe92db3c2$export$31e22e3c931fc056} from "./utils.module.js";
|
|
6
6
|
import {classNames as $immgY$classNames} from "@react-spectrum/utils";
|
|
7
7
|
import {Field as $immgY$Field} from "@react-spectrum/label";
|
|
8
8
|
import $immgY$react, {useRef as $immgY$useRef} from "react";
|
|
@@ -42,7 +42,7 @@ const $f0a04554754386b6$export$5eaee2322dd727eb = /*#__PURE__*/ (0, $immgY$react
|
|
|
42
42
|
props = (0, $immgY$useProviderProps)(props);
|
|
43
43
|
props = (0, $immgY$useFormProps)(props);
|
|
44
44
|
let { autoFocus: autoFocus, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, isQuiet: isQuiet } = props;
|
|
45
|
-
let domRef = (0, $
|
|
45
|
+
let domRef = (0, $ea94a5cfe92db3c2$export$71a23a36270e4bf0)(ref);
|
|
46
46
|
let { locale: locale } = (0, $immgY$useLocale)();
|
|
47
47
|
let state = (0, $immgY$useTimeFieldState)({
|
|
48
48
|
...props,
|
|
@@ -55,7 +55,7 @@ const $f0a04554754386b6$export$5eaee2322dd727eb = /*#__PURE__*/ (0, $immgY$react
|
|
|
55
55
|
inputRef: inputRef
|
|
56
56
|
}, state, fieldRef);
|
|
57
57
|
let validationState = state.validationState || (isInvalid ? 'invalid' : null);
|
|
58
|
-
let approximateWidth = (0, $
|
|
58
|
+
let approximateWidth = (0, $ea94a5cfe92db3c2$export$31e22e3c931fc056)(state) + 'ch';
|
|
59
59
|
return /*#__PURE__*/ (0, $immgY$react).createElement((0, $immgY$Field), {
|
|
60
60
|
...props,
|
|
61
61
|
ref: domRef,
|
|
@@ -55,32 +55,32 @@ var $2f86633ce5b04f1e$export$92706f5c6fe4074;
|
|
|
55
55
|
var $2f86633ce5b04f1e$export$dcc9e00cdad967fa;
|
|
56
56
|
var $2f86633ce5b04f1e$export$f7ab13ee113f4884;
|
|
57
57
|
var $2f86633ce5b04f1e$export$5e116178f9b1556a;
|
|
58
|
-
$2f86633ce5b04f1e$export$f39a09f249340e2a = `
|
|
59
|
-
$2f86633ce5b04f1e$export$8c4ee2c50c22c514 = `
|
|
60
|
-
$2f86633ce5b04f1e$export$d35bc1e505d1ebbf = `
|
|
61
|
-
$2f86633ce5b04f1e$export$e7dc768d35940237 = `
|
|
62
|
-
$2f86633ce5b04f1e$export$b8813cd5d7824ce7 = `
|
|
63
|
-
$2f86633ce5b04f1e$export$1e0fb04f31d3c22a = `
|
|
64
|
-
$2f86633ce5b04f1e$export$58dd7cd23c92699f = `
|
|
65
|
-
$2f86633ce5b04f1e$export$1d8b0b29e11d7cd = `
|
|
66
|
-
$2f86633ce5b04f1e$export$202113e883898dc = `
|
|
67
|
-
$2f86633ce5b04f1e$export$1c72fb41fa4f21ee = `
|
|
68
|
-
$2f86633ce5b04f1e$export$eb262b15b9261fde = `
|
|
69
|
-
$2f86633ce5b04f1e$export$80f9c838a8406469 = `
|
|
70
|
-
$2f86633ce5b04f1e$export$a024c99ecf6b5741 = `
|
|
71
|
-
$2f86633ce5b04f1e$export$c9f503f672e8a3c1 = `
|
|
72
|
-
$2f86633ce5b04f1e$export$4109102f950813a6 = `
|
|
73
|
-
$2f86633ce5b04f1e$export$24c7f46a6e3605dd = `
|
|
74
|
-
$2f86633ce5b04f1e$export$2927016961429360 = `
|
|
75
|
-
$2f86633ce5b04f1e$export$5be359c1227eedcb = `
|
|
76
|
-
$2f86633ce5b04f1e$export$3b48509739a9cda0 = `
|
|
77
|
-
$2f86633ce5b04f1e$export$ebf265ffc062029b = `
|
|
78
|
-
$2f86633ce5b04f1e$export$ea77459595e26bec = `
|
|
79
|
-
$2f86633ce5b04f1e$export$b91b6af799fd93a8 = `
|
|
80
|
-
$2f86633ce5b04f1e$export$92706f5c6fe4074 = `
|
|
81
|
-
$2f86633ce5b04f1e$export$dcc9e00cdad967fa = `
|
|
82
|
-
$2f86633ce5b04f1e$export$f7ab13ee113f4884 = `
|
|
83
|
-
$2f86633ce5b04f1e$export$5e116178f9b1556a = `
|
|
58
|
+
$2f86633ce5b04f1e$export$f39a09f249340e2a = `nWhlFW_focus-ring`;
|
|
59
|
+
$2f86633ce5b04f1e$export$8c4ee2c50c22c514 = `nWhlFW_i18nFontFamily`;
|
|
60
|
+
$2f86633ce5b04f1e$export$d35bc1e505d1ebbf = `nWhlFW_is-disabled`;
|
|
61
|
+
$2f86633ce5b04f1e$export$e7dc768d35940237 = `nWhlFW_is-focused`;
|
|
62
|
+
$2f86633ce5b04f1e$export$b8813cd5d7824ce7 = `nWhlFW_is-hovered`;
|
|
63
|
+
$2f86633ce5b04f1e$export$1e0fb04f31d3c22a = `nWhlFW_is-selected`;
|
|
64
|
+
$2f86633ce5b04f1e$export$58dd7cd23c92699f = `nWhlFW_spectrum-Datepicker--datetimeRange`;
|
|
65
|
+
$2f86633ce5b04f1e$export$1d8b0b29e11d7cd = `nWhlFW_spectrum-Datepicker--range`;
|
|
66
|
+
$2f86633ce5b04f1e$export$202113e883898dc = `nWhlFW_spectrum-Datepicker--rangeDash`;
|
|
67
|
+
$2f86633ce5b04f1e$export$1c72fb41fa4f21ee = `nWhlFW_spectrum-Datepicker-endField`;
|
|
68
|
+
$2f86633ce5b04f1e$export$eb262b15b9261fde = `nWhlFW_spectrum-Datepicker-focusRing`;
|
|
69
|
+
$2f86633ce5b04f1e$export$80f9c838a8406469 = `nWhlFW_spectrum-Datepicker-startField`;
|
|
70
|
+
$2f86633ce5b04f1e$export$a024c99ecf6b5741 = `nWhlFW_spectrum-FieldButton`;
|
|
71
|
+
$2f86633ce5b04f1e$export$c9f503f672e8a3c1 = `nWhlFW_spectrum-FieldButton--invalid`;
|
|
72
|
+
$2f86633ce5b04f1e$export$4109102f950813a6 = `nWhlFW_spectrum-FocusRing-ring`;
|
|
73
|
+
$2f86633ce5b04f1e$export$24c7f46a6e3605dd = `nWhlFW_spectrum-FocusRing ${$2f86633ce5b04f1e$export$4109102f950813a6}`;
|
|
74
|
+
$2f86633ce5b04f1e$export$2927016961429360 = `nWhlFW_spectrum-FocusRing--quiet`;
|
|
75
|
+
$2f86633ce5b04f1e$export$5be359c1227eedcb = `nWhlFW_spectrum-InputGroup ${$2f86633ce5b04f1e$export$24c7f46a6e3605dd}`;
|
|
76
|
+
$2f86633ce5b04f1e$export$3b48509739a9cda0 = `nWhlFW_spectrum-InputGroup--invalid`;
|
|
77
|
+
$2f86633ce5b04f1e$export$ebf265ffc062029b = `nWhlFW_spectrum-InputGroup--quiet ${$2f86633ce5b04f1e$export$2927016961429360}`;
|
|
78
|
+
$2f86633ce5b04f1e$export$ea77459595e26bec = `nWhlFW_spectrum-InputGroup-field`;
|
|
79
|
+
$2f86633ce5b04f1e$export$b91b6af799fd93a8 = `nWhlFW_spectrum-InputGroup-icon`;
|
|
80
|
+
$2f86633ce5b04f1e$export$92706f5c6fe4074 = `nWhlFW_spectrum-InputGroup-input`;
|
|
81
|
+
$2f86633ce5b04f1e$export$dcc9e00cdad967fa = `nWhlFW_spectrum-InputGroup-input-circleLoader`;
|
|
82
|
+
$2f86633ce5b04f1e$export$f7ab13ee113f4884 = `nWhlFW_spectrum-InputGroup-input-validationIcon`;
|
|
83
|
+
$2f86633ce5b04f1e$export$5e116178f9b1556a = `nWhlFW_spectrum-InputGroup-popover--quiet`;
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
//# sourceMappingURL=inputgroup_vars_css.main.js.map
|
|
@@ -56,32 +56,32 @@ var $8fb52a80fe52b1c7$export$92706f5c6fe4074;
|
|
|
56
56
|
var $8fb52a80fe52b1c7$export$dcc9e00cdad967fa;
|
|
57
57
|
var $8fb52a80fe52b1c7$export$f7ab13ee113f4884;
|
|
58
58
|
var $8fb52a80fe52b1c7$export$5e116178f9b1556a;
|
|
59
|
-
$8fb52a80fe52b1c7$export$f39a09f249340e2a = `
|
|
60
|
-
$8fb52a80fe52b1c7$export$8c4ee2c50c22c514 = `
|
|
61
|
-
$8fb52a80fe52b1c7$export$d35bc1e505d1ebbf = `
|
|
62
|
-
$8fb52a80fe52b1c7$export$e7dc768d35940237 = `
|
|
63
|
-
$8fb52a80fe52b1c7$export$b8813cd5d7824ce7 = `
|
|
64
|
-
$8fb52a80fe52b1c7$export$1e0fb04f31d3c22a = `
|
|
65
|
-
$8fb52a80fe52b1c7$export$58dd7cd23c92699f = `
|
|
66
|
-
$8fb52a80fe52b1c7$export$1d8b0b29e11d7cd = `
|
|
67
|
-
$8fb52a80fe52b1c7$export$202113e883898dc = `
|
|
68
|
-
$8fb52a80fe52b1c7$export$1c72fb41fa4f21ee = `
|
|
69
|
-
$8fb52a80fe52b1c7$export$eb262b15b9261fde = `
|
|
70
|
-
$8fb52a80fe52b1c7$export$80f9c838a8406469 = `
|
|
71
|
-
$8fb52a80fe52b1c7$export$a024c99ecf6b5741 = `
|
|
72
|
-
$8fb52a80fe52b1c7$export$c9f503f672e8a3c1 = `
|
|
73
|
-
$8fb52a80fe52b1c7$export$4109102f950813a6 = `
|
|
74
|
-
$8fb52a80fe52b1c7$export$24c7f46a6e3605dd = `
|
|
75
|
-
$8fb52a80fe52b1c7$export$2927016961429360 = `
|
|
76
|
-
$8fb52a80fe52b1c7$export$5be359c1227eedcb = `
|
|
77
|
-
$8fb52a80fe52b1c7$export$3b48509739a9cda0 = `
|
|
78
|
-
$8fb52a80fe52b1c7$export$ebf265ffc062029b = `
|
|
79
|
-
$8fb52a80fe52b1c7$export$ea77459595e26bec = `
|
|
80
|
-
$8fb52a80fe52b1c7$export$b91b6af799fd93a8 = `
|
|
81
|
-
$8fb52a80fe52b1c7$export$92706f5c6fe4074 = `
|
|
82
|
-
$8fb52a80fe52b1c7$export$dcc9e00cdad967fa = `
|
|
83
|
-
$8fb52a80fe52b1c7$export$f7ab13ee113f4884 = `
|
|
84
|
-
$8fb52a80fe52b1c7$export$5e116178f9b1556a = `
|
|
59
|
+
$8fb52a80fe52b1c7$export$f39a09f249340e2a = `nWhlFW_focus-ring`;
|
|
60
|
+
$8fb52a80fe52b1c7$export$8c4ee2c50c22c514 = `nWhlFW_i18nFontFamily`;
|
|
61
|
+
$8fb52a80fe52b1c7$export$d35bc1e505d1ebbf = `nWhlFW_is-disabled`;
|
|
62
|
+
$8fb52a80fe52b1c7$export$e7dc768d35940237 = `nWhlFW_is-focused`;
|
|
63
|
+
$8fb52a80fe52b1c7$export$b8813cd5d7824ce7 = `nWhlFW_is-hovered`;
|
|
64
|
+
$8fb52a80fe52b1c7$export$1e0fb04f31d3c22a = `nWhlFW_is-selected`;
|
|
65
|
+
$8fb52a80fe52b1c7$export$58dd7cd23c92699f = `nWhlFW_spectrum-Datepicker--datetimeRange`;
|
|
66
|
+
$8fb52a80fe52b1c7$export$1d8b0b29e11d7cd = `nWhlFW_spectrum-Datepicker--range`;
|
|
67
|
+
$8fb52a80fe52b1c7$export$202113e883898dc = `nWhlFW_spectrum-Datepicker--rangeDash`;
|
|
68
|
+
$8fb52a80fe52b1c7$export$1c72fb41fa4f21ee = `nWhlFW_spectrum-Datepicker-endField`;
|
|
69
|
+
$8fb52a80fe52b1c7$export$eb262b15b9261fde = `nWhlFW_spectrum-Datepicker-focusRing`;
|
|
70
|
+
$8fb52a80fe52b1c7$export$80f9c838a8406469 = `nWhlFW_spectrum-Datepicker-startField`;
|
|
71
|
+
$8fb52a80fe52b1c7$export$a024c99ecf6b5741 = `nWhlFW_spectrum-FieldButton`;
|
|
72
|
+
$8fb52a80fe52b1c7$export$c9f503f672e8a3c1 = `nWhlFW_spectrum-FieldButton--invalid`;
|
|
73
|
+
$8fb52a80fe52b1c7$export$4109102f950813a6 = `nWhlFW_spectrum-FocusRing-ring`;
|
|
74
|
+
$8fb52a80fe52b1c7$export$24c7f46a6e3605dd = `nWhlFW_spectrum-FocusRing ${$8fb52a80fe52b1c7$export$4109102f950813a6}`;
|
|
75
|
+
$8fb52a80fe52b1c7$export$2927016961429360 = `nWhlFW_spectrum-FocusRing--quiet`;
|
|
76
|
+
$8fb52a80fe52b1c7$export$5be359c1227eedcb = `nWhlFW_spectrum-InputGroup ${$8fb52a80fe52b1c7$export$24c7f46a6e3605dd}`;
|
|
77
|
+
$8fb52a80fe52b1c7$export$3b48509739a9cda0 = `nWhlFW_spectrum-InputGroup--invalid`;
|
|
78
|
+
$8fb52a80fe52b1c7$export$ebf265ffc062029b = `nWhlFW_spectrum-InputGroup--quiet ${$8fb52a80fe52b1c7$export$2927016961429360}`;
|
|
79
|
+
$8fb52a80fe52b1c7$export$ea77459595e26bec = `nWhlFW_spectrum-InputGroup-field`;
|
|
80
|
+
$8fb52a80fe52b1c7$export$b91b6af799fd93a8 = `nWhlFW_spectrum-InputGroup-icon`;
|
|
81
|
+
$8fb52a80fe52b1c7$export$92706f5c6fe4074 = `nWhlFW_spectrum-InputGroup-input`;
|
|
82
|
+
$8fb52a80fe52b1c7$export$dcc9e00cdad967fa = `nWhlFW_spectrum-InputGroup-input-circleLoader`;
|
|
83
|
+
$8fb52a80fe52b1c7$export$f7ab13ee113f4884 = `nWhlFW_spectrum-InputGroup-input-validationIcon`;
|
|
84
|
+
$8fb52a80fe52b1c7$export$5e116178f9b1556a = `nWhlFW_spectrum-InputGroup-popover--quiet`;
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
export {$8fb52a80fe52b1c7$exports as default};
|
|
@@ -56,32 +56,32 @@ var $8fb52a80fe52b1c7$export$92706f5c6fe4074;
|
|
|
56
56
|
var $8fb52a80fe52b1c7$export$dcc9e00cdad967fa;
|
|
57
57
|
var $8fb52a80fe52b1c7$export$f7ab13ee113f4884;
|
|
58
58
|
var $8fb52a80fe52b1c7$export$5e116178f9b1556a;
|
|
59
|
-
$8fb52a80fe52b1c7$export$f39a09f249340e2a = `
|
|
60
|
-
$8fb52a80fe52b1c7$export$8c4ee2c50c22c514 = `
|
|
61
|
-
$8fb52a80fe52b1c7$export$d35bc1e505d1ebbf = `
|
|
62
|
-
$8fb52a80fe52b1c7$export$e7dc768d35940237 = `
|
|
63
|
-
$8fb52a80fe52b1c7$export$b8813cd5d7824ce7 = `
|
|
64
|
-
$8fb52a80fe52b1c7$export$1e0fb04f31d3c22a = `
|
|
65
|
-
$8fb52a80fe52b1c7$export$58dd7cd23c92699f = `
|
|
66
|
-
$8fb52a80fe52b1c7$export$1d8b0b29e11d7cd = `
|
|
67
|
-
$8fb52a80fe52b1c7$export$202113e883898dc = `
|
|
68
|
-
$8fb52a80fe52b1c7$export$1c72fb41fa4f21ee = `
|
|
69
|
-
$8fb52a80fe52b1c7$export$eb262b15b9261fde = `
|
|
70
|
-
$8fb52a80fe52b1c7$export$80f9c838a8406469 = `
|
|
71
|
-
$8fb52a80fe52b1c7$export$a024c99ecf6b5741 = `
|
|
72
|
-
$8fb52a80fe52b1c7$export$c9f503f672e8a3c1 = `
|
|
73
|
-
$8fb52a80fe52b1c7$export$4109102f950813a6 = `
|
|
74
|
-
$8fb52a80fe52b1c7$export$24c7f46a6e3605dd = `
|
|
75
|
-
$8fb52a80fe52b1c7$export$2927016961429360 = `
|
|
76
|
-
$8fb52a80fe52b1c7$export$5be359c1227eedcb = `
|
|
77
|
-
$8fb52a80fe52b1c7$export$3b48509739a9cda0 = `
|
|
78
|
-
$8fb52a80fe52b1c7$export$ebf265ffc062029b = `
|
|
79
|
-
$8fb52a80fe52b1c7$export$ea77459595e26bec = `
|
|
80
|
-
$8fb52a80fe52b1c7$export$b91b6af799fd93a8 = `
|
|
81
|
-
$8fb52a80fe52b1c7$export$92706f5c6fe4074 = `
|
|
82
|
-
$8fb52a80fe52b1c7$export$dcc9e00cdad967fa = `
|
|
83
|
-
$8fb52a80fe52b1c7$export$f7ab13ee113f4884 = `
|
|
84
|
-
$8fb52a80fe52b1c7$export$5e116178f9b1556a = `
|
|
59
|
+
$8fb52a80fe52b1c7$export$f39a09f249340e2a = `nWhlFW_focus-ring`;
|
|
60
|
+
$8fb52a80fe52b1c7$export$8c4ee2c50c22c514 = `nWhlFW_i18nFontFamily`;
|
|
61
|
+
$8fb52a80fe52b1c7$export$d35bc1e505d1ebbf = `nWhlFW_is-disabled`;
|
|
62
|
+
$8fb52a80fe52b1c7$export$e7dc768d35940237 = `nWhlFW_is-focused`;
|
|
63
|
+
$8fb52a80fe52b1c7$export$b8813cd5d7824ce7 = `nWhlFW_is-hovered`;
|
|
64
|
+
$8fb52a80fe52b1c7$export$1e0fb04f31d3c22a = `nWhlFW_is-selected`;
|
|
65
|
+
$8fb52a80fe52b1c7$export$58dd7cd23c92699f = `nWhlFW_spectrum-Datepicker--datetimeRange`;
|
|
66
|
+
$8fb52a80fe52b1c7$export$1d8b0b29e11d7cd = `nWhlFW_spectrum-Datepicker--range`;
|
|
67
|
+
$8fb52a80fe52b1c7$export$202113e883898dc = `nWhlFW_spectrum-Datepicker--rangeDash`;
|
|
68
|
+
$8fb52a80fe52b1c7$export$1c72fb41fa4f21ee = `nWhlFW_spectrum-Datepicker-endField`;
|
|
69
|
+
$8fb52a80fe52b1c7$export$eb262b15b9261fde = `nWhlFW_spectrum-Datepicker-focusRing`;
|
|
70
|
+
$8fb52a80fe52b1c7$export$80f9c838a8406469 = `nWhlFW_spectrum-Datepicker-startField`;
|
|
71
|
+
$8fb52a80fe52b1c7$export$a024c99ecf6b5741 = `nWhlFW_spectrum-FieldButton`;
|
|
72
|
+
$8fb52a80fe52b1c7$export$c9f503f672e8a3c1 = `nWhlFW_spectrum-FieldButton--invalid`;
|
|
73
|
+
$8fb52a80fe52b1c7$export$4109102f950813a6 = `nWhlFW_spectrum-FocusRing-ring`;
|
|
74
|
+
$8fb52a80fe52b1c7$export$24c7f46a6e3605dd = `nWhlFW_spectrum-FocusRing ${$8fb52a80fe52b1c7$export$4109102f950813a6}`;
|
|
75
|
+
$8fb52a80fe52b1c7$export$2927016961429360 = `nWhlFW_spectrum-FocusRing--quiet`;
|
|
76
|
+
$8fb52a80fe52b1c7$export$5be359c1227eedcb = `nWhlFW_spectrum-InputGroup ${$8fb52a80fe52b1c7$export$24c7f46a6e3605dd}`;
|
|
77
|
+
$8fb52a80fe52b1c7$export$3b48509739a9cda0 = `nWhlFW_spectrum-InputGroup--invalid`;
|
|
78
|
+
$8fb52a80fe52b1c7$export$ebf265ffc062029b = `nWhlFW_spectrum-InputGroup--quiet ${$8fb52a80fe52b1c7$export$2927016961429360}`;
|
|
79
|
+
$8fb52a80fe52b1c7$export$ea77459595e26bec = `nWhlFW_spectrum-InputGroup-field`;
|
|
80
|
+
$8fb52a80fe52b1c7$export$b91b6af799fd93a8 = `nWhlFW_spectrum-InputGroup-icon`;
|
|
81
|
+
$8fb52a80fe52b1c7$export$92706f5c6fe4074 = `nWhlFW_spectrum-InputGroup-input`;
|
|
82
|
+
$8fb52a80fe52b1c7$export$dcc9e00cdad967fa = `nWhlFW_spectrum-InputGroup-input-circleLoader`;
|
|
83
|
+
$8fb52a80fe52b1c7$export$f7ab13ee113f4884 = `nWhlFW_spectrum-InputGroup-input-validationIcon`;
|
|
84
|
+
$8fb52a80fe52b1c7$export$5e116178f9b1556a = `nWhlFW_spectrum-InputGroup-popover--quiet`;
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
export {$8fb52a80fe52b1c7$exports as default};
|