@react-types/textfield 3.9.4 → 3.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/textfield",
3
- "version": "3.9.4",
3
+ "version": "3.9.6",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "^3.24.0"
12
+ "@react-types/shared": "^3.24.1"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "gitHead": "86d80e3216bc32e75108831cf3a5a720bc849206"
20
+ "gitHead": "faf0e18467231422cb7a06eb92a74d04e271f1e8"
21
21
  }
package/src/index.d.ts CHANGED
@@ -54,7 +54,7 @@ export interface SpectrumTextFieldProps extends SpectrumTextInputBase, Omit<Aria
54
54
 
55
55
  export interface SpectrumTextAreaProps extends Omit<SpectrumTextFieldProps, 'type' | 'pattern'> {}
56
56
 
57
- export interface TextFieldRef extends FocusableRefValue<HTMLInputElement | HTMLTextAreaElement, HTMLDivElement> {
57
+ export interface TextFieldRef<T extends HTMLInputElement | HTMLTextAreaElement = HTMLInputElement> extends FocusableRefValue<T, HTMLDivElement> {
58
58
  select(): void,
59
- getInputElement(): HTMLInputElement | HTMLTextAreaElement | null
59
+ getInputElement(): T | null
60
60
  }