@react-aria/searchfield
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -229,3 +229,6 @@ var { | ||
labelProps, | ||
inputProps, | ||
inputProps: _babelRuntimeHelpersExtends({}, inputProps, { | ||
// already handled by useSearchFieldState | ||
defaultValue: undefined | ||
}), | ||
clearButtonProps: { | ||
@@ -232,0 +235,0 @@ 'aria-label': formatMessage('Clear search'), |
@@ -217,3 +217,6 @@ import { useTextField } from "@react-aria/textfield"; | ||
labelProps, | ||
inputProps, | ||
inputProps: _babelRuntimeHelpersEsmExtends({}, inputProps, { | ||
// already handled by useSearchFieldState | ||
defaultValue: undefined | ||
}), | ||
clearButtonProps: { | ||
@@ -220,0 +223,0 @@ 'aria-label': formatMessage('Clear search'), |
@@ -9,3 +9,3 @@ import { AriaButtonProps } from "@react-types/button"; | ||
/** Props for the input element. */ | ||
inputProps: InputHTMLAttributes<HTMLInputElement>; | ||
inputProps: InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>; | ||
/** Props for the clear button. */ | ||
@@ -20,4 +20,4 @@ clearButtonProps: AriaButtonProps; | ||
*/ | ||
export function useSearchField(props: AriaSearchFieldProps, state: SearchFieldState, inputRef: RefObject<HTMLInputElement & HTMLTextAreaElement>): SearchFieldAria; | ||
export function useSearchField(props: AriaSearchFieldProps, state: SearchFieldState, inputRef: RefObject<HTMLInputElement | HTMLTextAreaElement>): SearchFieldAria; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@react-aria/searchfield", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,13 +21,13 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/i18n": "^3.1.0", | ||
"@react-aria/interactions": "^3.1.0", | ||
"@react-aria/textfield": "^3.1.0", | ||
"@react-aria/utils": "^3.1.0", | ||
"@react-stately/searchfield": "^3.1.0", | ||
"@react-types/button": "^3.1.0", | ||
"@react-types/searchfield": "^3.1.0", | ||
"@react-types/shared": "^3.1.0" | ||
"@react-aria/i18n": "^3.1.2", | ||
"@react-aria/interactions": "^3.2.1", | ||
"@react-aria/textfield": "^3.2.1", | ||
"@react-aria/utils": "^3.3.0", | ||
"@react-stately/searchfield": "^3.1.1", | ||
"@react-types/button": "^3.2.1", | ||
"@react-types/searchfield": "^3.1.1", | ||
"@react-types/shared": "^3.2.1" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0" | ||
"react": "^16.8.0 || ^17.0.0-rc.1" | ||
}, | ||
@@ -37,3 +37,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "211099972fe75ee581892efd01a7f89dfb9cdf69" | ||
"gitHead": "0778f71a3c13e1e24388a23b6d525e3b9f5b98f1" | ||
} |
@@ -26,3 +26,3 @@ /* | ||
/** Props for the input element. */ | ||
inputProps: InputHTMLAttributes<HTMLInputElement>, | ||
inputProps: InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, | ||
/** Props for the clear button. */ | ||
@@ -41,3 +41,3 @@ clearButtonProps: AriaButtonProps | ||
state: SearchFieldState, | ||
inputRef: RefObject<HTMLInputElement & HTMLTextAreaElement> | ||
inputRef: RefObject<HTMLInputElement | HTMLTextAreaElement> | ||
): SearchFieldAria { | ||
@@ -99,3 +99,7 @@ let formatMessage = useMessageFormatter(intlMessages); | ||
labelProps, | ||
inputProps, | ||
inputProps: { | ||
...inputProps, | ||
// already handled by useSearchFieldState | ||
defaultValue: undefined | ||
}, | ||
clearButtonProps: { | ||
@@ -102,0 +106,0 @@ 'aria-label': formatMessage('Clear search'), |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68255
570
+ Addedreact@17.0.2(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)
Updated@react-aria/i18n@^3.1.2
Updated@react-aria/textfield@^3.2.1
Updated@react-aria/utils@^3.3.0
Updated@react-types/button@^3.2.1
Updated@react-types/shared@^3.2.1