@react-types/textfield 3.9.6 → 3.10.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/package.json +4 -4
- package/src/index.d.ts +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/textfield",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-types/shared": "^3.
|
|
12
|
+
"@react-types/shared": "^3.26.0"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
|
|
15
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "71f0ef23053f9e03ee7e97df736e8b083e006849"
|
|
21
21
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -30,9 +30,9 @@ import {
|
|
|
30
30
|
} from '@react-types/shared';
|
|
31
31
|
import {ReactElement} from 'react';
|
|
32
32
|
|
|
33
|
-
export interface TextFieldProps extends InputBase, Validation<string>, HelpTextProps, FocusableProps
|
|
33
|
+
export interface TextFieldProps<T = HTMLInputElement> extends InputBase, Validation<string>, HelpTextProps, FocusableProps<T>, TextInputBase, ValueBase<string>, LabelableProps {}
|
|
34
34
|
|
|
35
|
-
export interface AriaTextFieldProps extends TextFieldProps
|
|
35
|
+
export interface AriaTextFieldProps<T = HTMLInputElement> extends TextFieldProps<T>, AriaLabelingProps, FocusableDOMProps, TextInputDOMProps, AriaValidationProps {
|
|
36
36
|
// https://www.w3.org/TR/wai-aria-1.2/#textbox
|
|
37
37
|
/** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
|
|
38
38
|
'aria-activedescendant'?: string,
|
|
@@ -45,14 +45,15 @@ export interface AriaTextFieldProps extends TextFieldProps, AriaLabelingProps, F
|
|
|
45
45
|
'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
interface SpectrumTextFieldBaseProps {
|
|
49
49
|
/** An icon to display at the start of the input. */
|
|
50
50
|
icon?: ReactElement | null,
|
|
51
51
|
/** Whether the input should be displayed with a quiet style. */
|
|
52
52
|
isQuiet?: boolean
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export interface
|
|
55
|
+
export interface SpectrumTextFieldProps extends SpectrumTextFieldBaseProps, SpectrumTextInputBase, Omit<AriaTextFieldProps, 'isInvalid' | 'validationState'>, SpectrumFieldValidation<string>, SpectrumLabelableProps, StyleProps {}
|
|
56
|
+
export interface SpectrumTextAreaProps extends SpectrumTextFieldBaseProps, SpectrumTextInputBase, Omit<AriaTextFieldProps<HTMLTextAreaElement>, 'isInvalid' | 'validationState' | 'type' | 'pattern'>, SpectrumFieldValidation<string>, SpectrumLabelableProps, StyleProps {}
|
|
56
57
|
|
|
57
58
|
export interface TextFieldRef<T extends HTMLInputElement | HTMLTextAreaElement = HTMLInputElement> extends FocusableRefValue<T, HTMLDivElement> {
|
|
58
59
|
select(): void,
|