@react-types/searchfield 3.6.5 → 3.6.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.
- package/package.json +4 -4
- package/src/index.d.ts +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/searchfield",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.6",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-types/shared": "^3.32.
|
|
13
|
-
"@react-types/textfield": "^3.12.
|
|
12
|
+
"@react-types/shared": "^3.32.1",
|
|
13
|
+
"@react-types/textfield": "^3.12.6"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "0bda51183baa23306342af32a82012ea0fe0f2dc"
|
|
22
22
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -21,10 +21,15 @@ export interface SearchFieldProps extends TextFieldProps {
|
|
|
21
21
|
onClear?: () => void
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export interface AriaSearchFieldProps extends SearchFieldProps, AriaTextFieldProps {
|
|
24
|
+
export interface AriaSearchFieldProps extends SearchFieldProps, Omit<AriaTextFieldProps, 'type'> {
|
|
25
25
|
/**
|
|
26
26
|
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint).
|
|
27
27
|
*/
|
|
28
|
-
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'
|
|
28
|
+
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send',
|
|
29
|
+
/**
|
|
30
|
+
* The type of input to render. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdeftype).
|
|
31
|
+
* @default 'search'
|
|
32
|
+
*/
|
|
33
|
+
type?: 'text' | 'search' | 'url' | 'tel' | 'email' | 'password' | (string & {})
|
|
29
34
|
}
|
|
30
35
|
export interface SpectrumSearchFieldProps extends SpectrumTextInputBase, Omit<AriaSearchFieldProps, 'isInvalid' | 'validationState'>, SpectrumTextFieldProps {}
|