@react-types/searchfield 3.6.7 → 3.7.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.
Files changed (2) hide show
  1. package/package.json +8 -5
  2. package/src/index.d.ts +3 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/searchfield",
3
- "version": "3.6.7",
3
+ "version": "3.7.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,14 +9,17 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "^3.33.0",
13
- "@react-types/textfield": "^3.12.7"
12
+ "@react-aria/searchfield": "^3.9.0",
13
+ "@react-spectrum/searchfield": "^3.9.0",
14
+ "@react-stately/searchfield": "^3.6.0"
14
15
  },
15
16
  "peerDependencies": {
16
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
17
+ "@react-spectrum/provider": "^3.0.0",
18
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
19
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
17
20
  },
18
21
  "publishConfig": {
19
22
  "access": "public"
20
23
  },
21
- "gitHead": "66e51757606b43a89ed02c574ca24517323a2ab9"
24
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
22
25
  }
package/src/index.d.ts CHANGED
@@ -10,26 +10,6 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {AriaTextFieldProps, SpectrumTextFieldProps, TextFieldProps} from '@react-types/textfield';
14
- import {SpectrumTextInputBase} from '@react-types/shared';
15
-
16
- export interface SearchFieldProps extends TextFieldProps {
17
- /** Handler that is called when the SearchField is submitted. */
18
- onSubmit?: (value: string) => void,
19
-
20
- /** Handler that is called when the clear button is pressed. */
21
- onClear?: () => void
22
- }
23
-
24
- export interface AriaSearchFieldProps extends SearchFieldProps, Omit<AriaTextFieldProps, 'type'> {
25
- /**
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
- */
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 & {})
34
- }
35
- export interface SpectrumSearchFieldProps extends SpectrumTextInputBase, Omit<AriaSearchFieldProps, 'isInvalid' | 'validationState'>, SpectrumTextFieldProps {}
13
+ export {SearchFieldProps} from '@react-stately/searchfield';
14
+ export {AriaSearchFieldProps} from '@react-aria/searchfield';
15
+ export {SpectrumSearchFieldProps} from '@react-spectrum/searchfield';