Socket
Socket
Sign inDemoInstall

@react-aria/textfield

Package Overview
Dependencies
5
Maintainers
2
Versions
700
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-nightly.2962 to 3.0.0-nightly.2969

10

dist/types.d.ts
import { AriaTextFieldProps } from "@react-types/textfield";
import { DOMFactory, HTMLAttributes, LabelHTMLAttributes, ReactDOM, RefObject } from "react";
import { HTMLAttributes, JSX, LabelHTMLAttributes, RefObject } from "react";
import { DOMAttributes, ValidationResult } from "@react-types/shared";

@@ -15,5 +15,3 @@ /**

*/
type IntrinsicHTMLAttributes = {
[K in keyof ReactDOM]: ReactDOM[K] extends DOMFactory<infer T, any> ? T : never;
};
type IntrinsicHTMLAttributes = JSX.IntrinsicElements;
type DefaultElementType = 'input';

@@ -61,3 +59,3 @@ /**

*/
type TextFieldRefObject<T extends TextFieldIntrinsicElements> = RefObject<TextFieldHTMLElementType[T]>;
type TextFieldRefObject<T extends TextFieldIntrinsicElements> = RefObject<TextFieldHTMLElementType[T] | null>;
export interface TextFieldAria<T extends TextFieldIntrinsicElements = DefaultElementType> extends ValidationResult {

@@ -83,5 +81,5 @@ /** Props for the input element. */

}
export function useFormattedTextField(props: AriaTextFieldProps, state: FormattedTextFieldState, inputRef: RefObject<HTMLInputElement>): TextFieldAria;
export function useFormattedTextField(props: AriaTextFieldProps, state: FormattedTextFieldState, inputRef: RefObject<HTMLInputElement | null>): TextFieldAria;
export type { AriaTextFieldProps } from '@react-types/textfield';
//# sourceMappingURL=types.d.ts.map

22

package.json
{
"name": "@react-aria/textfield",
"version": "3.0.0-nightly.2962+59136f78e",
"version": "3.0.0-nightly.2969+2fd87d9f1",
"description": "Spectrum UI components in React",

@@ -25,14 +25,14 @@ "license": "Apache-2.0",

"dependencies": {
"@react-aria/focus": "3.0.0-nightly.2962+59136f78e",
"@react-aria/form": "3.0.6-nightly.4674+59136f78e",
"@react-aria/label": "3.0.0-nightly.2962+59136f78e",
"@react-aria/utils": "3.0.0-nightly.2962+59136f78e",
"@react-stately/form": "3.0.4-nightly.4674+59136f78e",
"@react-stately/utils": "3.0.0-nightly.2962+59136f78e",
"@react-types/shared": "3.0.0-nightly.2962+59136f78e",
"@react-types/textfield": "3.0.0-nightly.2962+59136f78e",
"@react-aria/focus": "3.0.0-nightly.2969+2fd87d9f1",
"@react-aria/form": "3.0.6-nightly.4681+2fd87d9f1",
"@react-aria/label": "3.0.0-nightly.2969+2fd87d9f1",
"@react-aria/utils": "3.0.0-nightly.2969+2fd87d9f1",
"@react-stately/form": "3.0.4-nightly.4681+2fd87d9f1",
"@react-stately/utils": "3.0.0-nightly.2969+2fd87d9f1",
"@react-types/shared": "3.0.0-nightly.2969+2fd87d9f1",
"@react-types/textfield": "3.0.0-nightly.2969+2fd87d9f1",
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
},

@@ -42,3 +42,3 @@ "publishConfig": {

},
"gitHead": "59136f78e853e97bb4067a1268750c9f85900bf6"
"gitHead": "2fd87d9f1d894e6b00a595cce73c6e8828029132"
}

@@ -31,3 +31,3 @@ /*

export function useFormattedTextField(props: AriaTextFieldProps, state: FormattedTextFieldState, inputRef: RefObject<HTMLInputElement>): TextFieldAria {
export function useFormattedTextField(props: AriaTextFieldProps, state: FormattedTextFieldState, inputRef: RefObject<HTMLInputElement | null>): TextFieldAria {
// All browsers implement the 'beforeinput' event natively except Firefox

@@ -34,0 +34,0 @@ // (currently behind a flag as of Firefox 84). React's polyfill does not

@@ -16,6 +16,5 @@ /*

ChangeEvent,
DOMFactory,
HTMLAttributes,
type JSX,
LabelHTMLAttributes,
ReactDOM,
RefObject,

@@ -44,5 +43,3 @@ useEffect

*/
type IntrinsicHTMLAttributes = {
[K in keyof ReactDOM]: ReactDOM[K] extends DOMFactory<infer T, any> ? T : never
};
type IntrinsicHTMLAttributes = JSX.IntrinsicElements;

@@ -97,3 +94,3 @@ type DefaultElementType = 'input';

*/
type TextFieldRefObject<T extends TextFieldIntrinsicElements> = RefObject<TextFieldHTMLElementType[T]>;
type TextFieldRefObject<T extends TextFieldIntrinsicElements> = RefObject<TextFieldHTMLElementType[T] | null>;

@@ -100,0 +97,0 @@ export interface TextFieldAria<T extends TextFieldIntrinsicElements = DefaultElementType> extends ValidationResult {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc