@react-spectrum/textfield 3.14.4 → 3.15.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/import.mjs +4 -4
- package/dist/main.js +6 -6
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -4
- package/dist/module.js.map +1 -1
- package/dist/types/src/index.d.ts +5 -0
- package/package.json +12 -37
- package/src/index.ts +6 -4
- package/dist/TextArea.main.js +0 -103
- package/dist/TextArea.main.js.map +0 -1
- package/dist/TextArea.mjs +0 -94
- package/dist/TextArea.module.js +0 -94
- package/dist/TextArea.module.js.map +0 -1
- package/dist/TextField.main.js +0 -55
- package/dist/TextField.main.js.map +0 -1
- package/dist/TextField.mjs +0 -46
- package/dist/TextField.module.js +0 -46
- package/dist/TextField.module.js.map +0 -1
- package/dist/TextFieldBase.main.js +0 -124
- package/dist/TextFieldBase.main.js.map +0 -1
- package/dist/TextFieldBase.mjs +0 -119
- package/dist/TextFieldBase.module.js +0 -119
- package/dist/TextFieldBase.module.js.map +0 -1
- package/dist/ar-AE.main.js +0 -6
- package/dist/ar-AE.main.js.map +0 -1
- package/dist/ar-AE.mjs +0 -8
- package/dist/ar-AE.module.js +0 -8
- package/dist/ar-AE.module.js.map +0 -1
- package/dist/bg-BG.main.js +0 -6
- package/dist/bg-BG.main.js.map +0 -1
- package/dist/bg-BG.mjs +0 -8
- package/dist/bg-BG.module.js +0 -8
- package/dist/bg-BG.module.js.map +0 -1
- package/dist/cs-CZ.main.js +0 -6
- package/dist/cs-CZ.main.js.map +0 -1
- package/dist/cs-CZ.mjs +0 -8
- package/dist/cs-CZ.module.js +0 -8
- package/dist/cs-CZ.module.js.map +0 -1
- package/dist/da-DK.main.js +0 -6
- package/dist/da-DK.main.js.map +0 -1
- package/dist/da-DK.mjs +0 -8
- package/dist/da-DK.module.js +0 -8
- package/dist/da-DK.module.js.map +0 -1
- package/dist/de-DE.main.js +0 -6
- package/dist/de-DE.main.js.map +0 -1
- package/dist/de-DE.mjs +0 -8
- package/dist/de-DE.module.js +0 -8
- package/dist/de-DE.module.js.map +0 -1
- package/dist/el-GR.main.js +0 -6
- package/dist/el-GR.main.js.map +0 -1
- package/dist/el-GR.mjs +0 -8
- package/dist/el-GR.module.js +0 -8
- package/dist/el-GR.module.js.map +0 -1
- package/dist/en-US.main.js +0 -6
- package/dist/en-US.main.js.map +0 -1
- package/dist/en-US.mjs +0 -8
- package/dist/en-US.module.js +0 -8
- package/dist/en-US.module.js.map +0 -1
- package/dist/es-ES.main.js +0 -6
- package/dist/es-ES.main.js.map +0 -1
- package/dist/es-ES.mjs +0 -8
- package/dist/es-ES.module.js +0 -8
- package/dist/es-ES.module.js.map +0 -1
- package/dist/et-EE.main.js +0 -6
- package/dist/et-EE.main.js.map +0 -1
- package/dist/et-EE.mjs +0 -8
- package/dist/et-EE.module.js +0 -8
- package/dist/et-EE.module.js.map +0 -1
- package/dist/fi-FI.main.js +0 -6
- package/dist/fi-FI.main.js.map +0 -1
- package/dist/fi-FI.mjs +0 -8
- package/dist/fi-FI.module.js +0 -8
- package/dist/fi-FI.module.js.map +0 -1
- package/dist/fr-FR.main.js +0 -6
- package/dist/fr-FR.main.js.map +0 -1
- package/dist/fr-FR.mjs +0 -8
- package/dist/fr-FR.module.js +0 -8
- package/dist/fr-FR.module.js.map +0 -1
- package/dist/he-IL.main.js +0 -6
- package/dist/he-IL.main.js.map +0 -1
- package/dist/he-IL.mjs +0 -8
- package/dist/he-IL.module.js +0 -8
- package/dist/he-IL.module.js.map +0 -1
- package/dist/hr-HR.main.js +0 -6
- package/dist/hr-HR.main.js.map +0 -1
- package/dist/hr-HR.mjs +0 -8
- package/dist/hr-HR.module.js +0 -8
- package/dist/hr-HR.module.js.map +0 -1
- package/dist/hu-HU.main.js +0 -6
- package/dist/hu-HU.main.js.map +0 -1
- package/dist/hu-HU.mjs +0 -8
- package/dist/hu-HU.module.js +0 -8
- package/dist/hu-HU.module.js.map +0 -1
- package/dist/intlStrings.main.js +0 -108
- package/dist/intlStrings.main.js.map +0 -1
- package/dist/intlStrings.mjs +0 -110
- package/dist/intlStrings.module.js +0 -110
- package/dist/intlStrings.module.js.map +0 -1
- package/dist/it-IT.main.js +0 -6
- package/dist/it-IT.main.js.map +0 -1
- package/dist/it-IT.mjs +0 -8
- package/dist/it-IT.module.js +0 -8
- package/dist/it-IT.module.js.map +0 -1
- package/dist/ja-JP.main.js +0 -6
- package/dist/ja-JP.main.js.map +0 -1
- package/dist/ja-JP.mjs +0 -8
- package/dist/ja-JP.module.js +0 -8
- package/dist/ja-JP.module.js.map +0 -1
- package/dist/ko-KR.main.js +0 -6
- package/dist/ko-KR.main.js.map +0 -1
- package/dist/ko-KR.mjs +0 -8
- package/dist/ko-KR.module.js +0 -8
- package/dist/ko-KR.module.js.map +0 -1
- package/dist/lt-LT.main.js +0 -6
- package/dist/lt-LT.main.js.map +0 -1
- package/dist/lt-LT.mjs +0 -8
- package/dist/lt-LT.module.js +0 -8
- package/dist/lt-LT.module.js.map +0 -1
- package/dist/lv-LV.main.js +0 -6
- package/dist/lv-LV.main.js.map +0 -1
- package/dist/lv-LV.mjs +0 -8
- package/dist/lv-LV.module.js +0 -8
- package/dist/lv-LV.module.js.map +0 -1
- package/dist/nb-NO.main.js +0 -6
- package/dist/nb-NO.main.js.map +0 -1
- package/dist/nb-NO.mjs +0 -8
- package/dist/nb-NO.module.js +0 -8
- package/dist/nb-NO.module.js.map +0 -1
- package/dist/nl-NL.main.js +0 -6
- package/dist/nl-NL.main.js.map +0 -1
- package/dist/nl-NL.mjs +0 -8
- package/dist/nl-NL.module.js +0 -8
- package/dist/nl-NL.module.js.map +0 -1
- package/dist/pl-PL.main.js +0 -6
- package/dist/pl-PL.main.js.map +0 -1
- package/dist/pl-PL.mjs +0 -8
- package/dist/pl-PL.module.js +0 -8
- package/dist/pl-PL.module.js.map +0 -1
- package/dist/pt-BR.main.js +0 -6
- package/dist/pt-BR.main.js.map +0 -1
- package/dist/pt-BR.mjs +0 -8
- package/dist/pt-BR.module.js +0 -8
- package/dist/pt-BR.module.js.map +0 -1
- package/dist/pt-PT.main.js +0 -6
- package/dist/pt-PT.main.js.map +0 -1
- package/dist/pt-PT.mjs +0 -8
- package/dist/pt-PT.module.js +0 -8
- package/dist/pt-PT.module.js.map +0 -1
- package/dist/ro-RO.main.js +0 -6
- package/dist/ro-RO.main.js.map +0 -1
- package/dist/ro-RO.mjs +0 -8
- package/dist/ro-RO.module.js +0 -8
- package/dist/ro-RO.module.js.map +0 -1
- package/dist/ru-RU.main.js +0 -6
- package/dist/ru-RU.main.js.map +0 -1
- package/dist/ru-RU.mjs +0 -8
- package/dist/ru-RU.module.js +0 -8
- package/dist/ru-RU.module.js.map +0 -1
- package/dist/sk-SK.main.js +0 -6
- package/dist/sk-SK.main.js.map +0 -1
- package/dist/sk-SK.mjs +0 -8
- package/dist/sk-SK.module.js +0 -8
- package/dist/sk-SK.module.js.map +0 -1
- package/dist/sl-SI.main.js +0 -6
- package/dist/sl-SI.main.js.map +0 -1
- package/dist/sl-SI.mjs +0 -8
- package/dist/sl-SI.module.js +0 -8
- package/dist/sl-SI.module.js.map +0 -1
- package/dist/sr-SP.main.js +0 -6
- package/dist/sr-SP.main.js.map +0 -1
- package/dist/sr-SP.mjs +0 -8
- package/dist/sr-SP.module.js +0 -8
- package/dist/sr-SP.module.js.map +0 -1
- package/dist/sv-SE.main.js +0 -6
- package/dist/sv-SE.main.js.map +0 -1
- package/dist/sv-SE.mjs +0 -8
- package/dist/sv-SE.module.js +0 -8
- package/dist/sv-SE.module.js.map +0 -1
- package/dist/textfield.54643fd6.css +0 -550
- package/dist/textfield.54643fd6.css.map +0 -1
- package/dist/textfield_vars_css.main.js +0 -74
- package/dist/textfield_vars_css.main.js.map +0 -1
- package/dist/textfield_vars_css.mjs +0 -76
- package/dist/textfield_vars_css.module.js +0 -76
- package/dist/textfield_vars_css.module.js.map +0 -1
- package/dist/tr-TR.main.js +0 -6
- package/dist/tr-TR.main.js.map +0 -1
- package/dist/tr-TR.mjs +0 -8
- package/dist/tr-TR.module.js +0 -8
- package/dist/tr-TR.module.js.map +0 -1
- package/dist/types.d.ts +0 -33
- package/dist/types.d.ts.map +0 -1
- package/dist/uk-UA.main.js +0 -6
- package/dist/uk-UA.main.js.map +0 -1
- package/dist/uk-UA.mjs +0 -8
- package/dist/uk-UA.module.js +0 -8
- package/dist/uk-UA.module.js.map +0 -1
- package/dist/zh-CN.main.js +0 -6
- package/dist/zh-CN.main.js.map +0 -1
- package/dist/zh-CN.mjs +0 -8
- package/dist/zh-CN.module.js +0 -8
- package/dist/zh-CN.module.js.map +0 -1
- package/dist/zh-TW.main.js +0 -6
- package/dist/zh-TW.main.js.map +0 -1
- package/dist/zh-TW.mjs +0 -8
- package/dist/zh-TW.module.js +0 -8
- package/dist/zh-TW.module.js.map +0 -1
- package/src/TextArea.tsx +0 -98
- package/src/TextField.tsx +0 -47
- package/src/TextFieldBase.tsx +0 -182
package/dist/TextField.module.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import {TextFieldBase as $599adb75312e6492$export$d22444a338b6e3c2} from "./TextFieldBase.module.js";
|
|
2
|
-
import $9R76J$react, {forwardRef as $9R76J$forwardRef, useRef as $9R76J$useRef, useEffect as $9R76J$useEffect} from "react";
|
|
3
|
-
import {useFormProps as $9R76J$useFormProps} from "@react-spectrum/form";
|
|
4
|
-
import {useProviderProps as $9R76J$useProviderProps} from "@react-spectrum/provider";
|
|
5
|
-
import {useTextField as $9R76J$useTextField} from "@react-aria/textfield";
|
|
6
|
-
|
|
7
|
-
/*
|
|
8
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
9
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
11
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
14
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
15
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
16
|
-
* governing permissions and limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const $265457f9427aa380$export$2c73285ae9390cec = /*#__PURE__*/ (0, $9R76J$forwardRef)(function TextField(props, ref) {
|
|
23
|
-
props = (0, $9R76J$useProviderProps)(props);
|
|
24
|
-
props = (0, $9R76J$useFormProps)(props);
|
|
25
|
-
let inputRef = (0, $9R76J$useRef)(null);
|
|
26
|
-
let result = (0, $9R76J$useTextField)(props, inputRef);
|
|
27
|
-
let hasWarned = (0, $9R76J$useRef)(false);
|
|
28
|
-
(0, $9R76J$useEffect)(()=>{
|
|
29
|
-
if (props.placeholder && !hasWarned.current && process.env.NODE_ENV !== 'production') {
|
|
30
|
-
console.warn('Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/TextField.html#help-text');
|
|
31
|
-
hasWarned.current = true;
|
|
32
|
-
}
|
|
33
|
-
}, [
|
|
34
|
-
props.placeholder
|
|
35
|
-
]);
|
|
36
|
-
return /*#__PURE__*/ (0, $9R76J$react).createElement((0, $599adb75312e6492$export$d22444a338b6e3c2), {
|
|
37
|
-
...props,
|
|
38
|
-
...result,
|
|
39
|
-
ref: ref,
|
|
40
|
-
inputRef: inputRef
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export {$265457f9427aa380$export$2c73285ae9390cec as TextField};
|
|
46
|
-
//# sourceMappingURL=TextField.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAcM,MAAM,0DAAY,CAAA,GAAA,iBAAS,EAAE,SAAS,UAAU,KAA6B,EAAE,GAAsB;IAC1G,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,QAAQ,CAAA,GAAA,mBAAW,EAAE;IAErB,IAAI,WAAW,CAAA,GAAA,aAAK,EAAoB;IACxC,IAAI,SAAS,CAAA,GAAA,mBAAW,EAAE,OAAO;IAEjC,IAAI,YAAY,CAAA,GAAA,aAAK,EAAE;IACvB,CAAA,GAAA,gBAAQ,EAAE;QACR,IAAI,MAAM,WAAW,IAAI,CAAC,UAAU,OAAO,IAAI,QAAQ,GAAG,CAAC,QAAQ,KAAK,cAAc;YACpF,QAAQ,IAAI,CAAC;YACb,UAAU,OAAO,GAAG;QACtB;IACF,GAAG;QAAC,MAAM,WAAW;KAAC;IAEtB,qBACE,gCAAC,CAAA,GAAA,yCAAY;QACV,GAAG,KAAK;QACR,GAAG,MAAM;QACV,KAAK;QACL,UAAU;;AAEhB","sources":["packages/@react-spectrum/textfield/src/TextField.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 React, {forwardRef, Ref, useEffect, useRef} from 'react';\nimport {SpectrumTextFieldProps, TextFieldRef} from '@react-types/textfield';\nimport {TextFieldBase} from './TextFieldBase';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useTextField} from '@react-aria/textfield';\n\n/**\n * TextFields are text inputs that allow users to input custom text entries\n * with a keyboard. Various decorations can be displayed around the field to\n * communicate the entry requirements.\n */\nexport const TextField = forwardRef(function TextField(props: SpectrumTextFieldProps, ref: Ref<TextFieldRef>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n\n let inputRef = useRef<HTMLInputElement>(null);\n let result = useTextField(props, inputRef);\n\n let hasWarned = useRef(false);\n useEffect(() => {\n if (props.placeholder && !hasWarned.current && process.env.NODE_ENV !== 'production') {\n console.warn('Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/TextField.html#help-text');\n hasWarned.current = true;\n }\n }, [props.placeholder]);\n\n return (\n <TextFieldBase\n {...props}\n {...result}\n ref={ref}\n inputRef={inputRef} />\n );\n});\n"],"names":[],"version":3,"file":"TextField.module.js.map"}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
var $286a257fb3d9a493$exports = require("./intlStrings.main.js");
|
|
2
|
-
require("./textfield.54643fd6.css");
|
|
3
|
-
var $40cb3a00c193680f$exports = require("./textfield_vars_css.main.js");
|
|
4
|
-
var $fWjzu$spectrumiconsuiAlertMedium = require("@spectrum-icons/ui/AlertMedium");
|
|
5
|
-
var $fWjzu$spectrumiconsuiCheckmarkMedium = require("@spectrum-icons/ui/CheckmarkMedium");
|
|
6
|
-
var $fWjzu$reactspectrumutils = require("@react-spectrum/utils");
|
|
7
|
-
var $fWjzu$reactspectrumlabel = require("@react-spectrum/label");
|
|
8
|
-
var $fWjzu$reactariautils = require("@react-aria/utils");
|
|
9
|
-
var $fWjzu$react = require("react");
|
|
10
|
-
var $fWjzu$reactariafocus = require("@react-aria/focus");
|
|
11
|
-
var $fWjzu$reactariainteractions = require("@react-aria/interactions");
|
|
12
|
-
var $fWjzu$reactariai18n = require("@react-aria/i18n");
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function $parcel$interopDefault(a) {
|
|
16
|
-
return a && a.__esModule ? a.default : a;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function $parcel$export(e, n, v, s) {
|
|
20
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
$parcel$export(module.exports, "TextFieldBase", () => $86793250183ac29e$export$d22444a338b6e3c2);
|
|
24
|
-
/*
|
|
25
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
26
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
27
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
28
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
29
|
-
*
|
|
30
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
31
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
32
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
33
|
-
* governing permissions and limitations under the License.
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const $86793250183ac29e$export$d22444a338b6e3c2 = /*#__PURE__*/ (0, $fWjzu$react.forwardRef)(function TextFieldBase(props, ref) {
|
|
46
|
-
let { validationState: validationState = props.isInvalid ? 'invalid' : null, icon: icon, isQuiet: isQuiet = false, isDisabled: isDisabled, multiLine: multiLine, autoFocus: autoFocus, inputClassName: inputClassName, wrapperChildren: wrapperChildren, labelProps: labelProps, inputProps: inputProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, inputRef: userInputRef, isLoading: isLoading, loadingIndicator: loadingIndicator, validationIconClassName: validationIconClassName, disableFocusRing: disableFocusRing } = props;
|
|
47
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $fWjzu$reactariainteractions.useHover)({
|
|
48
|
-
isDisabled: isDisabled
|
|
49
|
-
});
|
|
50
|
-
let domRef = (0, $fWjzu$react.useRef)(null);
|
|
51
|
-
let defaultInputRef = (0, $fWjzu$react.useRef)(null);
|
|
52
|
-
let inputRef = userInputRef || defaultInputRef;
|
|
53
|
-
// Expose imperative interface for ref
|
|
54
|
-
(0, $fWjzu$react.useImperativeHandle)(ref, ()=>({
|
|
55
|
-
...(0, $fWjzu$reactspectrumutils.createFocusableRef)(domRef, inputRef),
|
|
56
|
-
select () {
|
|
57
|
-
if (inputRef.current) inputRef.current.select();
|
|
58
|
-
},
|
|
59
|
-
getInputElement () {
|
|
60
|
-
return inputRef.current;
|
|
61
|
-
}
|
|
62
|
-
}));
|
|
63
|
-
let ElementType = multiLine ? 'textarea' : 'input';
|
|
64
|
-
let isInvalid = validationState === 'invalid' && !isDisabled;
|
|
65
|
-
if (icon) {
|
|
66
|
-
let UNSAFE_className = (0, $fWjzu$reactspectrumutils.classNames)((0, ($parcel$interopDefault($40cb3a00c193680f$exports))), icon.props && icon.props.UNSAFE_className, 'spectrum-Textfield-icon');
|
|
67
|
-
icon = /*#__PURE__*/ (0, $fWjzu$react.cloneElement)(icon, {
|
|
68
|
-
UNSAFE_className: UNSAFE_className,
|
|
69
|
-
size: 'S'
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
let stringFormatter = (0, $fWjzu$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($286a257fb3d9a493$exports))), '@react-spectrum/textfield');
|
|
73
|
-
let validId = (0, $fWjzu$reactariautils.useId)();
|
|
74
|
-
let validationIcon = isInvalid ? /*#__PURE__*/ (0, ($parcel$interopDefault($fWjzu$react))).createElement((0, ($parcel$interopDefault($fWjzu$spectrumiconsuiAlertMedium))), null) : /*#__PURE__*/ (0, ($parcel$interopDefault($fWjzu$react))).createElement((0, ($parcel$interopDefault($fWjzu$spectrumiconsuiCheckmarkMedium))), {
|
|
75
|
-
id: validId,
|
|
76
|
-
"aria-hidden": true,
|
|
77
|
-
"aria-label": stringFormatter.format('valid')
|
|
78
|
-
});
|
|
79
|
-
let validation = /*#__PURE__*/ (0, $fWjzu$react.cloneElement)(validationIcon, {
|
|
80
|
-
UNSAFE_className: (0, $fWjzu$reactspectrumutils.classNames)((0, ($parcel$interopDefault($40cb3a00c193680f$exports))), 'spectrum-Textfield-validationIcon', validationIconClassName)
|
|
81
|
-
});
|
|
82
|
-
// Add validation icon IDREF to aria-describedby when validationState is valid
|
|
83
|
-
let inputPropsAriaDescribedBy = inputProps['aria-describedby'];
|
|
84
|
-
if (!isInvalid && validationState === 'valid' && !isLoading && !isDisabled && (!inputPropsAriaDescribedBy || !inputPropsAriaDescribedBy.includes(validId))) inputProps['aria-describedby'] = [
|
|
85
|
-
inputPropsAriaDescribedBy,
|
|
86
|
-
validId
|
|
87
|
-
].join(' ').trim();
|
|
88
|
-
let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $fWjzu$reactariafocus.useFocusRing)({
|
|
89
|
-
isTextInput: true,
|
|
90
|
-
autoFocus: autoFocus
|
|
91
|
-
});
|
|
92
|
-
let textField = /*#__PURE__*/ (0, ($parcel$interopDefault($fWjzu$react))).createElement("div", {
|
|
93
|
-
className: (0, $fWjzu$reactspectrumutils.classNames)((0, ($parcel$interopDefault($40cb3a00c193680f$exports))), 'spectrum-Textfield', {
|
|
94
|
-
'spectrum-Textfield--invalid': isInvalid,
|
|
95
|
-
'spectrum-Textfield--valid': validationState === 'valid' && !isDisabled,
|
|
96
|
-
'spectrum-Textfield--loadable': loadingIndicator,
|
|
97
|
-
'spectrum-Textfield--quiet': isQuiet,
|
|
98
|
-
'spectrum-Textfield--multiline': multiLine,
|
|
99
|
-
'focus-ring': !disableFocusRing && isFocusVisible
|
|
100
|
-
})
|
|
101
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($fWjzu$react))).createElement(ElementType, {
|
|
102
|
-
...(0, $fWjzu$reactariautils.mergeProps)(inputProps, hoverProps, focusProps),
|
|
103
|
-
ref: inputRef,
|
|
104
|
-
rows: multiLine ? 1 : undefined,
|
|
105
|
-
className: (0, $fWjzu$reactspectrumutils.classNames)((0, ($parcel$interopDefault($40cb3a00c193680f$exports))), 'spectrum-Textfield-input', {
|
|
106
|
-
'spectrum-Textfield-inputIcon': icon,
|
|
107
|
-
'is-hovered': isHovered
|
|
108
|
-
}, inputClassName)
|
|
109
|
-
}), icon, validationState && !isLoading && !isDisabled ? validation : null, isLoading && loadingIndicator, wrapperChildren);
|
|
110
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($fWjzu$react))).createElement((0, $fWjzu$reactspectrumlabel.Field), {
|
|
111
|
-
...props,
|
|
112
|
-
labelProps: labelProps,
|
|
113
|
-
descriptionProps: descriptionProps,
|
|
114
|
-
errorMessageProps: errorMessageProps,
|
|
115
|
-
wrapperClassName: (0, $fWjzu$reactspectrumutils.classNames)((0, ($parcel$interopDefault($40cb3a00c193680f$exports))), 'spectrum-Textfield-wrapper', {
|
|
116
|
-
'spectrum-Textfield-wrapper--quiet': isQuiet
|
|
117
|
-
}),
|
|
118
|
-
showErrorIcon: false,
|
|
119
|
-
ref: domRef
|
|
120
|
-
}, textField);
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
//# sourceMappingURL=TextFieldBase.main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"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","sources":["packages/@react-spectrum/textfield/src/TextFieldBase.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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium';\nimport {classNames, createFocusableRef} from '@react-spectrum/utils';\nimport {Field} from '@react-spectrum/label';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport {PressEvents, RefObject, ValidationResult} from '@react-types/shared';\nimport React, {cloneElement, forwardRef, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, ReactElement, Ref, TextareaHTMLAttributes, useImperativeHandle, useRef} from 'react';\nimport {SpectrumTextFieldProps, TextFieldRef} from '@react-types/textfield';\nimport styles from '@adobe/spectrum-css-temp/components/textfield/vars.css';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\ninterface TextFieldBaseProps extends Omit<SpectrumTextFieldProps, 'onChange' | 'validate'>, PressEvents, Partial<ValidationResult> {\n wrapperChildren?: ReactElement | ReactElement[],\n inputClassName?: string,\n validationIconClassName?: string,\n multiLine?: boolean,\n labelProps?: LabelHTMLAttributes<HTMLLabelElement>,\n inputProps: InputHTMLAttributes<HTMLInputElement> | TextareaHTMLAttributes<HTMLTextAreaElement>,\n descriptionProps?: HTMLAttributes<HTMLElement>,\n errorMessageProps?: HTMLAttributes<HTMLElement>,\n inputRef?: RefObject<HTMLInputElement | HTMLTextAreaElement | null>,\n loadingIndicator?: ReactElement,\n isLoading?: boolean,\n disableFocusRing?: boolean\n}\n\nexport const TextFieldBase = forwardRef(function TextFieldBase(props: TextFieldBaseProps, ref: Ref<TextFieldRef<HTMLInputElement | HTMLTextAreaElement>>) {\n let {\n validationState = props.isInvalid ? 'invalid' : null,\n icon,\n isQuiet = false,\n isDisabled,\n multiLine,\n autoFocus,\n inputClassName,\n wrapperChildren,\n labelProps,\n inputProps,\n descriptionProps,\n errorMessageProps,\n inputRef: userInputRef,\n isLoading,\n loadingIndicator,\n validationIconClassName,\n disableFocusRing\n } = props;\n let {hoverProps, isHovered} = useHover({isDisabled});\n let domRef = useRef<HTMLDivElement>(null);\n let defaultInputRef = useRef<HTMLInputElement | HTMLTextAreaElement>(null);\n let inputRef = userInputRef || defaultInputRef;\n\n // Expose imperative interface for ref\n useImperativeHandle(ref, () => ({\n ...createFocusableRef(domRef, inputRef),\n select() {\n if (inputRef.current) {\n inputRef.current.select();\n }\n },\n getInputElement() {\n return inputRef.current;\n }\n }));\n\n let ElementType: React.ElementType = multiLine ? 'textarea' : 'input';\n let isInvalid = validationState === 'invalid' && !isDisabled;\n\n if (icon) {\n let UNSAFE_className = classNames(\n styles,\n icon.props && (icon.props as any).UNSAFE_className,\n 'spectrum-Textfield-icon'\n );\n\n icon = cloneElement(icon, {\n UNSAFE_className,\n size: 'S'\n } as any);\n }\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/textfield');\n let validId = useId();\n let validationIcon = isInvalid\n ? <AlertMedium />\n : <CheckmarkMedium id={validId} aria-hidden aria-label={stringFormatter.format('valid')} />;\n let validation = cloneElement(validationIcon, {\n UNSAFE_className: classNames(\n styles,\n 'spectrum-Textfield-validationIcon',\n validationIconClassName\n )\n });\n\n // Add validation icon IDREF to aria-describedby when validationState is valid\n let inputPropsAriaDescribedBy = inputProps['aria-describedby'];\n if (\n !isInvalid && validationState === 'valid' && !isLoading && !isDisabled &&\n (!inputPropsAriaDescribedBy || !inputPropsAriaDescribedBy.includes(validId))\n ) {\n inputProps['aria-describedby'] = [inputPropsAriaDescribedBy, validId].join(' ').trim();\n }\n\n let {focusProps, isFocusVisible} = useFocusRing({\n isTextInput: true,\n autoFocus\n });\n\n let textField = (\n <div\n className={\n classNames(\n styles,\n 'spectrum-Textfield',\n {\n 'spectrum-Textfield--invalid': isInvalid,\n 'spectrum-Textfield--valid': validationState === 'valid' && !isDisabled,\n 'spectrum-Textfield--loadable': loadingIndicator,\n 'spectrum-Textfield--quiet': isQuiet,\n 'spectrum-Textfield--multiline': multiLine,\n 'focus-ring': !disableFocusRing && isFocusVisible\n }\n )\n }>\n <ElementType\n {...mergeProps(inputProps, hoverProps, focusProps)}\n ref={inputRef as any}\n rows={multiLine ? 1 : undefined}\n className={\n classNames(\n styles,\n 'spectrum-Textfield-input',\n {\n 'spectrum-Textfield-inputIcon': icon,\n 'is-hovered': isHovered\n },\n inputClassName\n )\n } />\n {icon}\n {validationState && !isLoading && !isDisabled ? validation : null}\n {isLoading && loadingIndicator}\n {wrapperChildren}\n </div>\n );\n\n return (\n <Field\n {...props}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n wrapperClassName={\n classNames(\n styles,\n 'spectrum-Textfield-wrapper',\n {\n 'spectrum-Textfield-wrapper--quiet': isQuiet\n }\n )\n }\n showErrorIcon={false}\n ref={domRef}>\n {textField}\n </Field>\n );\n});\n"],"names":[],"version":3,"file":"TextFieldBase.main.js.map"}
|
package/dist/TextFieldBase.mjs
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import $264pK$intlStringsmodulejs from "./intlStrings.mjs";
|
|
2
|
-
import "./textfield.54643fd6.css";
|
|
3
|
-
import $264pK$textfield_vars_cssmodulejs from "./textfield_vars_css.mjs";
|
|
4
|
-
import $264pK$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
|
|
5
|
-
import $264pK$spectrumiconsuiCheckmarkMedium from "@spectrum-icons/ui/CheckmarkMedium";
|
|
6
|
-
import {createFocusableRef as $264pK$createFocusableRef, classNames as $264pK$classNames} from "@react-spectrum/utils";
|
|
7
|
-
import {Field as $264pK$Field} from "@react-spectrum/label";
|
|
8
|
-
import {useId as $264pK$useId, mergeProps as $264pK$mergeProps} from "@react-aria/utils";
|
|
9
|
-
import $264pK$react, {forwardRef as $264pK$forwardRef, useRef as $264pK$useRef, useImperativeHandle as $264pK$useImperativeHandle, cloneElement as $264pK$cloneElement} from "react";
|
|
10
|
-
import {useFocusRing as $264pK$useFocusRing} from "@react-aria/focus";
|
|
11
|
-
import {useHover as $264pK$useHover} from "@react-aria/interactions";
|
|
12
|
-
import {useLocalizedStringFormatter as $264pK$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function $parcel$interopDefault(a) {
|
|
16
|
-
return a && a.__esModule ? a.default : a;
|
|
17
|
-
}
|
|
18
|
-
/*
|
|
19
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
20
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
21
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
22
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
-
*
|
|
24
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
25
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
26
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
27
|
-
* governing permissions and limitations under the License.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const $599adb75312e6492$export$d22444a338b6e3c2 = /*#__PURE__*/ (0, $264pK$forwardRef)(function TextFieldBase(props, ref) {
|
|
40
|
-
let { validationState: validationState = props.isInvalid ? 'invalid' : null, icon: icon, isQuiet: isQuiet = false, isDisabled: isDisabled, multiLine: multiLine, autoFocus: autoFocus, inputClassName: inputClassName, wrapperChildren: wrapperChildren, labelProps: labelProps, inputProps: inputProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, inputRef: userInputRef, isLoading: isLoading, loadingIndicator: loadingIndicator, validationIconClassName: validationIconClassName, disableFocusRing: disableFocusRing } = props;
|
|
41
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $264pK$useHover)({
|
|
42
|
-
isDisabled: isDisabled
|
|
43
|
-
});
|
|
44
|
-
let domRef = (0, $264pK$useRef)(null);
|
|
45
|
-
let defaultInputRef = (0, $264pK$useRef)(null);
|
|
46
|
-
let inputRef = userInputRef || defaultInputRef;
|
|
47
|
-
// Expose imperative interface for ref
|
|
48
|
-
(0, $264pK$useImperativeHandle)(ref, ()=>({
|
|
49
|
-
...(0, $264pK$createFocusableRef)(domRef, inputRef),
|
|
50
|
-
select () {
|
|
51
|
-
if (inputRef.current) inputRef.current.select();
|
|
52
|
-
},
|
|
53
|
-
getInputElement () {
|
|
54
|
-
return inputRef.current;
|
|
55
|
-
}
|
|
56
|
-
}));
|
|
57
|
-
let ElementType = multiLine ? 'textarea' : 'input';
|
|
58
|
-
let isInvalid = validationState === 'invalid' && !isDisabled;
|
|
59
|
-
if (icon) {
|
|
60
|
-
let UNSAFE_className = (0, $264pK$classNames)((0, ($parcel$interopDefault($264pK$textfield_vars_cssmodulejs))), icon.props && icon.props.UNSAFE_className, 'spectrum-Textfield-icon');
|
|
61
|
-
icon = /*#__PURE__*/ (0, $264pK$cloneElement)(icon, {
|
|
62
|
-
UNSAFE_className: UNSAFE_className,
|
|
63
|
-
size: 'S'
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
let stringFormatter = (0, $264pK$useLocalizedStringFormatter)((0, ($parcel$interopDefault($264pK$intlStringsmodulejs))), '@react-spectrum/textfield');
|
|
67
|
-
let validId = (0, $264pK$useId)();
|
|
68
|
-
let validationIcon = isInvalid ? /*#__PURE__*/ (0, $264pK$react).createElement((0, $264pK$spectrumiconsuiAlertMedium), null) : /*#__PURE__*/ (0, $264pK$react).createElement((0, $264pK$spectrumiconsuiCheckmarkMedium), {
|
|
69
|
-
id: validId,
|
|
70
|
-
"aria-hidden": true,
|
|
71
|
-
"aria-label": stringFormatter.format('valid')
|
|
72
|
-
});
|
|
73
|
-
let validation = /*#__PURE__*/ (0, $264pK$cloneElement)(validationIcon, {
|
|
74
|
-
UNSAFE_className: (0, $264pK$classNames)((0, ($parcel$interopDefault($264pK$textfield_vars_cssmodulejs))), 'spectrum-Textfield-validationIcon', validationIconClassName)
|
|
75
|
-
});
|
|
76
|
-
// Add validation icon IDREF to aria-describedby when validationState is valid
|
|
77
|
-
let inputPropsAriaDescribedBy = inputProps['aria-describedby'];
|
|
78
|
-
if (!isInvalid && validationState === 'valid' && !isLoading && !isDisabled && (!inputPropsAriaDescribedBy || !inputPropsAriaDescribedBy.includes(validId))) inputProps['aria-describedby'] = [
|
|
79
|
-
inputPropsAriaDescribedBy,
|
|
80
|
-
validId
|
|
81
|
-
].join(' ').trim();
|
|
82
|
-
let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $264pK$useFocusRing)({
|
|
83
|
-
isTextInput: true,
|
|
84
|
-
autoFocus: autoFocus
|
|
85
|
-
});
|
|
86
|
-
let textField = /*#__PURE__*/ (0, $264pK$react).createElement("div", {
|
|
87
|
-
className: (0, $264pK$classNames)((0, ($parcel$interopDefault($264pK$textfield_vars_cssmodulejs))), 'spectrum-Textfield', {
|
|
88
|
-
'spectrum-Textfield--invalid': isInvalid,
|
|
89
|
-
'spectrum-Textfield--valid': validationState === 'valid' && !isDisabled,
|
|
90
|
-
'spectrum-Textfield--loadable': loadingIndicator,
|
|
91
|
-
'spectrum-Textfield--quiet': isQuiet,
|
|
92
|
-
'spectrum-Textfield--multiline': multiLine,
|
|
93
|
-
'focus-ring': !disableFocusRing && isFocusVisible
|
|
94
|
-
})
|
|
95
|
-
}, /*#__PURE__*/ (0, $264pK$react).createElement(ElementType, {
|
|
96
|
-
...(0, $264pK$mergeProps)(inputProps, hoverProps, focusProps),
|
|
97
|
-
ref: inputRef,
|
|
98
|
-
rows: multiLine ? 1 : undefined,
|
|
99
|
-
className: (0, $264pK$classNames)((0, ($parcel$interopDefault($264pK$textfield_vars_cssmodulejs))), 'spectrum-Textfield-input', {
|
|
100
|
-
'spectrum-Textfield-inputIcon': icon,
|
|
101
|
-
'is-hovered': isHovered
|
|
102
|
-
}, inputClassName)
|
|
103
|
-
}), icon, validationState && !isLoading && !isDisabled ? validation : null, isLoading && loadingIndicator, wrapperChildren);
|
|
104
|
-
return /*#__PURE__*/ (0, $264pK$react).createElement((0, $264pK$Field), {
|
|
105
|
-
...props,
|
|
106
|
-
labelProps: labelProps,
|
|
107
|
-
descriptionProps: descriptionProps,
|
|
108
|
-
errorMessageProps: errorMessageProps,
|
|
109
|
-
wrapperClassName: (0, $264pK$classNames)((0, ($parcel$interopDefault($264pK$textfield_vars_cssmodulejs))), 'spectrum-Textfield-wrapper', {
|
|
110
|
-
'spectrum-Textfield-wrapper--quiet': isQuiet
|
|
111
|
-
}),
|
|
112
|
-
showErrorIcon: false,
|
|
113
|
-
ref: domRef
|
|
114
|
-
}, textField);
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
export {$599adb75312e6492$export$d22444a338b6e3c2 as TextFieldBase};
|
|
119
|
-
//# sourceMappingURL=TextFieldBase.module.js.map
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import $264pK$intlStringsmodulejs from "./intlStrings.module.js";
|
|
2
|
-
import "./textfield.54643fd6.css";
|
|
3
|
-
import $264pK$textfield_vars_cssmodulejs from "./textfield_vars_css.module.js";
|
|
4
|
-
import $264pK$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
|
|
5
|
-
import $264pK$spectrumiconsuiCheckmarkMedium from "@spectrum-icons/ui/CheckmarkMedium";
|
|
6
|
-
import {createFocusableRef as $264pK$createFocusableRef, classNames as $264pK$classNames} from "@react-spectrum/utils";
|
|
7
|
-
import {Field as $264pK$Field} from "@react-spectrum/label";
|
|
8
|
-
import {useId as $264pK$useId, mergeProps as $264pK$mergeProps} from "@react-aria/utils";
|
|
9
|
-
import $264pK$react, {forwardRef as $264pK$forwardRef, useRef as $264pK$useRef, useImperativeHandle as $264pK$useImperativeHandle, cloneElement as $264pK$cloneElement} from "react";
|
|
10
|
-
import {useFocusRing as $264pK$useFocusRing} from "@react-aria/focus";
|
|
11
|
-
import {useHover as $264pK$useHover} from "@react-aria/interactions";
|
|
12
|
-
import {useLocalizedStringFormatter as $264pK$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function $parcel$interopDefault(a) {
|
|
16
|
-
return a && a.__esModule ? a.default : a;
|
|
17
|
-
}
|
|
18
|
-
/*
|
|
19
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
20
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
21
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
22
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
-
*
|
|
24
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
25
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
26
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
27
|
-
* governing permissions and limitations under the License.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const $599adb75312e6492$export$d22444a338b6e3c2 = /*#__PURE__*/ (0, $264pK$forwardRef)(function TextFieldBase(props, ref) {
|
|
40
|
-
let { validationState: validationState = props.isInvalid ? 'invalid' : null, icon: icon, isQuiet: isQuiet = false, isDisabled: isDisabled, multiLine: multiLine, autoFocus: autoFocus, inputClassName: inputClassName, wrapperChildren: wrapperChildren, labelProps: labelProps, inputProps: inputProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, inputRef: userInputRef, isLoading: isLoading, loadingIndicator: loadingIndicator, validationIconClassName: validationIconClassName, disableFocusRing: disableFocusRing } = props;
|
|
41
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $264pK$useHover)({
|
|
42
|
-
isDisabled: isDisabled
|
|
43
|
-
});
|
|
44
|
-
let domRef = (0, $264pK$useRef)(null);
|
|
45
|
-
let defaultInputRef = (0, $264pK$useRef)(null);
|
|
46
|
-
let inputRef = userInputRef || defaultInputRef;
|
|
47
|
-
// Expose imperative interface for ref
|
|
48
|
-
(0, $264pK$useImperativeHandle)(ref, ()=>({
|
|
49
|
-
...(0, $264pK$createFocusableRef)(domRef, inputRef),
|
|
50
|
-
select () {
|
|
51
|
-
if (inputRef.current) inputRef.current.select();
|
|
52
|
-
},
|
|
53
|
-
getInputElement () {
|
|
54
|
-
return inputRef.current;
|
|
55
|
-
}
|
|
56
|
-
}));
|
|
57
|
-
let ElementType = multiLine ? 'textarea' : 'input';
|
|
58
|
-
let isInvalid = validationState === 'invalid' && !isDisabled;
|
|
59
|
-
if (icon) {
|
|
60
|
-
let UNSAFE_className = (0, $264pK$classNames)((0, ($parcel$interopDefault($264pK$textfield_vars_cssmodulejs))), icon.props && icon.props.UNSAFE_className, 'spectrum-Textfield-icon');
|
|
61
|
-
icon = /*#__PURE__*/ (0, $264pK$cloneElement)(icon, {
|
|
62
|
-
UNSAFE_className: UNSAFE_className,
|
|
63
|
-
size: 'S'
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
let stringFormatter = (0, $264pK$useLocalizedStringFormatter)((0, ($parcel$interopDefault($264pK$intlStringsmodulejs))), '@react-spectrum/textfield');
|
|
67
|
-
let validId = (0, $264pK$useId)();
|
|
68
|
-
let validationIcon = isInvalid ? /*#__PURE__*/ (0, $264pK$react).createElement((0, $264pK$spectrumiconsuiAlertMedium), null) : /*#__PURE__*/ (0, $264pK$react).createElement((0, $264pK$spectrumiconsuiCheckmarkMedium), {
|
|
69
|
-
id: validId,
|
|
70
|
-
"aria-hidden": true,
|
|
71
|
-
"aria-label": stringFormatter.format('valid')
|
|
72
|
-
});
|
|
73
|
-
let validation = /*#__PURE__*/ (0, $264pK$cloneElement)(validationIcon, {
|
|
74
|
-
UNSAFE_className: (0, $264pK$classNames)((0, ($parcel$interopDefault($264pK$textfield_vars_cssmodulejs))), 'spectrum-Textfield-validationIcon', validationIconClassName)
|
|
75
|
-
});
|
|
76
|
-
// Add validation icon IDREF to aria-describedby when validationState is valid
|
|
77
|
-
let inputPropsAriaDescribedBy = inputProps['aria-describedby'];
|
|
78
|
-
if (!isInvalid && validationState === 'valid' && !isLoading && !isDisabled && (!inputPropsAriaDescribedBy || !inputPropsAriaDescribedBy.includes(validId))) inputProps['aria-describedby'] = [
|
|
79
|
-
inputPropsAriaDescribedBy,
|
|
80
|
-
validId
|
|
81
|
-
].join(' ').trim();
|
|
82
|
-
let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $264pK$useFocusRing)({
|
|
83
|
-
isTextInput: true,
|
|
84
|
-
autoFocus: autoFocus
|
|
85
|
-
});
|
|
86
|
-
let textField = /*#__PURE__*/ (0, $264pK$react).createElement("div", {
|
|
87
|
-
className: (0, $264pK$classNames)((0, ($parcel$interopDefault($264pK$textfield_vars_cssmodulejs))), 'spectrum-Textfield', {
|
|
88
|
-
'spectrum-Textfield--invalid': isInvalid,
|
|
89
|
-
'spectrum-Textfield--valid': validationState === 'valid' && !isDisabled,
|
|
90
|
-
'spectrum-Textfield--loadable': loadingIndicator,
|
|
91
|
-
'spectrum-Textfield--quiet': isQuiet,
|
|
92
|
-
'spectrum-Textfield--multiline': multiLine,
|
|
93
|
-
'focus-ring': !disableFocusRing && isFocusVisible
|
|
94
|
-
})
|
|
95
|
-
}, /*#__PURE__*/ (0, $264pK$react).createElement(ElementType, {
|
|
96
|
-
...(0, $264pK$mergeProps)(inputProps, hoverProps, focusProps),
|
|
97
|
-
ref: inputRef,
|
|
98
|
-
rows: multiLine ? 1 : undefined,
|
|
99
|
-
className: (0, $264pK$classNames)((0, ($parcel$interopDefault($264pK$textfield_vars_cssmodulejs))), 'spectrum-Textfield-input', {
|
|
100
|
-
'spectrum-Textfield-inputIcon': icon,
|
|
101
|
-
'is-hovered': isHovered
|
|
102
|
-
}, inputClassName)
|
|
103
|
-
}), icon, validationState && !isLoading && !isDisabled ? validation : null, isLoading && loadingIndicator, wrapperChildren);
|
|
104
|
-
return /*#__PURE__*/ (0, $264pK$react).createElement((0, $264pK$Field), {
|
|
105
|
-
...props,
|
|
106
|
-
labelProps: labelProps,
|
|
107
|
-
descriptionProps: descriptionProps,
|
|
108
|
-
errorMessageProps: errorMessageProps,
|
|
109
|
-
wrapperClassName: (0, $264pK$classNames)((0, ($parcel$interopDefault($264pK$textfield_vars_cssmodulejs))), 'spectrum-Textfield-wrapper', {
|
|
110
|
-
'spectrum-Textfield-wrapper--quiet': isQuiet
|
|
111
|
-
}),
|
|
112
|
-
showErrorIcon: false,
|
|
113
|
-
ref: domRef
|
|
114
|
-
}, textField);
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
export {$599adb75312e6492$export$d22444a338b6e3c2 as TextFieldBase};
|
|
119
|
-
//# sourceMappingURL=TextFieldBase.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"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","sources":["packages/@react-spectrum/textfield/src/TextFieldBase.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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium';\nimport {classNames, createFocusableRef} from '@react-spectrum/utils';\nimport {Field} from '@react-spectrum/label';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport {PressEvents, RefObject, ValidationResult} from '@react-types/shared';\nimport React, {cloneElement, forwardRef, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, ReactElement, Ref, TextareaHTMLAttributes, useImperativeHandle, useRef} from 'react';\nimport {SpectrumTextFieldProps, TextFieldRef} from '@react-types/textfield';\nimport styles from '@adobe/spectrum-css-temp/components/textfield/vars.css';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\ninterface TextFieldBaseProps extends Omit<SpectrumTextFieldProps, 'onChange' | 'validate'>, PressEvents, Partial<ValidationResult> {\n wrapperChildren?: ReactElement | ReactElement[],\n inputClassName?: string,\n validationIconClassName?: string,\n multiLine?: boolean,\n labelProps?: LabelHTMLAttributes<HTMLLabelElement>,\n inputProps: InputHTMLAttributes<HTMLInputElement> | TextareaHTMLAttributes<HTMLTextAreaElement>,\n descriptionProps?: HTMLAttributes<HTMLElement>,\n errorMessageProps?: HTMLAttributes<HTMLElement>,\n inputRef?: RefObject<HTMLInputElement | HTMLTextAreaElement | null>,\n loadingIndicator?: ReactElement,\n isLoading?: boolean,\n disableFocusRing?: boolean\n}\n\nexport const TextFieldBase = forwardRef(function TextFieldBase(props: TextFieldBaseProps, ref: Ref<TextFieldRef<HTMLInputElement | HTMLTextAreaElement>>) {\n let {\n validationState = props.isInvalid ? 'invalid' : null,\n icon,\n isQuiet = false,\n isDisabled,\n multiLine,\n autoFocus,\n inputClassName,\n wrapperChildren,\n labelProps,\n inputProps,\n descriptionProps,\n errorMessageProps,\n inputRef: userInputRef,\n isLoading,\n loadingIndicator,\n validationIconClassName,\n disableFocusRing\n } = props;\n let {hoverProps, isHovered} = useHover({isDisabled});\n let domRef = useRef<HTMLDivElement>(null);\n let defaultInputRef = useRef<HTMLInputElement | HTMLTextAreaElement>(null);\n let inputRef = userInputRef || defaultInputRef;\n\n // Expose imperative interface for ref\n useImperativeHandle(ref, () => ({\n ...createFocusableRef(domRef, inputRef),\n select() {\n if (inputRef.current) {\n inputRef.current.select();\n }\n },\n getInputElement() {\n return inputRef.current;\n }\n }));\n\n let ElementType: React.ElementType = multiLine ? 'textarea' : 'input';\n let isInvalid = validationState === 'invalid' && !isDisabled;\n\n if (icon) {\n let UNSAFE_className = classNames(\n styles,\n icon.props && (icon.props as any).UNSAFE_className,\n 'spectrum-Textfield-icon'\n );\n\n icon = cloneElement(icon, {\n UNSAFE_className,\n size: 'S'\n } as any);\n }\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/textfield');\n let validId = useId();\n let validationIcon = isInvalid\n ? <AlertMedium />\n : <CheckmarkMedium id={validId} aria-hidden aria-label={stringFormatter.format('valid')} />;\n let validation = cloneElement(validationIcon, {\n UNSAFE_className: classNames(\n styles,\n 'spectrum-Textfield-validationIcon',\n validationIconClassName\n )\n });\n\n // Add validation icon IDREF to aria-describedby when validationState is valid\n let inputPropsAriaDescribedBy = inputProps['aria-describedby'];\n if (\n !isInvalid && validationState === 'valid' && !isLoading && !isDisabled &&\n (!inputPropsAriaDescribedBy || !inputPropsAriaDescribedBy.includes(validId))\n ) {\n inputProps['aria-describedby'] = [inputPropsAriaDescribedBy, validId].join(' ').trim();\n }\n\n let {focusProps, isFocusVisible} = useFocusRing({\n isTextInput: true,\n autoFocus\n });\n\n let textField = (\n <div\n className={\n classNames(\n styles,\n 'spectrum-Textfield',\n {\n 'spectrum-Textfield--invalid': isInvalid,\n 'spectrum-Textfield--valid': validationState === 'valid' && !isDisabled,\n 'spectrum-Textfield--loadable': loadingIndicator,\n 'spectrum-Textfield--quiet': isQuiet,\n 'spectrum-Textfield--multiline': multiLine,\n 'focus-ring': !disableFocusRing && isFocusVisible\n }\n )\n }>\n <ElementType\n {...mergeProps(inputProps, hoverProps, focusProps)}\n ref={inputRef as any}\n rows={multiLine ? 1 : undefined}\n className={\n classNames(\n styles,\n 'spectrum-Textfield-input',\n {\n 'spectrum-Textfield-inputIcon': icon,\n 'is-hovered': isHovered\n },\n inputClassName\n )\n } />\n {icon}\n {validationState && !isLoading && !isDisabled ? validation : null}\n {isLoading && loadingIndicator}\n {wrapperChildren}\n </div>\n );\n\n return (\n <Field\n {...props}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n wrapperClassName={\n classNames(\n styles,\n 'spectrum-Textfield-wrapper',\n {\n 'spectrum-Textfield-wrapper--quiet': isQuiet\n }\n )\n }\n showErrorIcon={false}\n ref={domRef}>\n {textField}\n </Field>\n );\n});\n"],"names":[],"version":3,"file":"TextFieldBase.module.js.map"}
|
package/dist/ar-AE.main.js
DELETED
package/dist/ar-AE.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,SAAS,CAAC,4BAAI,CAAC;AACnC","sources":["packages/@react-spectrum/textfield/intl/ar-AE.json"],"sourcesContent":["{\n \"valid\": \"صالح\"\n}\n"],"names":[],"version":3,"file":"ar-AE.main.js.map"}
|
package/dist/ar-AE.mjs
DELETED
package/dist/ar-AE.module.js
DELETED
package/dist/ar-AE.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,SAAS,CAAC,4BAAI,CAAC;AACnC","sources":["packages/@react-spectrum/textfield/intl/ar-AE.json"],"sourcesContent":["{\n \"valid\": \"صالح\"\n}\n"],"names":[],"version":3,"file":"ar-AE.module.js.map"}
|
package/dist/bg-BG.main.js
DELETED
package/dist/bg-BG.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,SAAS,CAAC,iDAAO,CAAC;AACtC","sources":["packages/@react-spectrum/textfield/intl/bg-BG.json"],"sourcesContent":["{\n \"valid\": \"Валиден\"\n}\n"],"names":[],"version":3,"file":"bg-BG.main.js.map"}
|
package/dist/bg-BG.mjs
DELETED
package/dist/bg-BG.module.js
DELETED
package/dist/bg-BG.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,SAAS,CAAC,iDAAO,CAAC;AACtC","sources":["packages/@react-spectrum/textfield/intl/bg-BG.json"],"sourcesContent":["{\n \"valid\": \"Валиден\"\n}\n"],"names":[],"version":3,"file":"bg-BG.module.js.map"}
|
package/dist/cs-CZ.main.js
DELETED
package/dist/cs-CZ.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,SAAS,CAAC,SAAM,CAAC;AACrC","sources":["packages/@react-spectrum/textfield/intl/cs-CZ.json"],"sourcesContent":["{\n \"valid\": \"Platné\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.main.js.map"}
|
package/dist/cs-CZ.mjs
DELETED
package/dist/cs-CZ.module.js
DELETED
package/dist/cs-CZ.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,SAAS,CAAC,SAAM,CAAC;AACrC","sources":["packages/@react-spectrum/textfield/intl/cs-CZ.json"],"sourcesContent":["{\n \"valid\": \"Platné\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.module.js.map"}
|
package/dist/da-DK.main.js
DELETED
package/dist/da-DK.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,SAAS,CAAC,MAAM,CAAC;AACrC","sources":["packages/@react-spectrum/textfield/intl/da-DK.json"],"sourcesContent":["{\n \"valid\": \"Gyldig\"\n}\n"],"names":[],"version":3,"file":"da-DK.main.js.map"}
|
package/dist/da-DK.mjs
DELETED
package/dist/da-DK.module.js
DELETED
package/dist/da-DK.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,SAAS,CAAC,MAAM,CAAC;AACrC","sources":["packages/@react-spectrum/textfield/intl/da-DK.json"],"sourcesContent":["{\n \"valid\": \"Gyldig\"\n}\n"],"names":[],"version":3,"file":"da-DK.module.js.map"}
|
package/dist/de-DE.main.js
DELETED
package/dist/de-DE.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,SAAS,CAAC,SAAM,CAAC;AACrC","sources":["packages/@react-spectrum/textfield/intl/de-DE.json"],"sourcesContent":["{\n \"valid\": \"Gültig\"\n}\n"],"names":[],"version":3,"file":"de-DE.main.js.map"}
|