downshift 8.0.1 → 8.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "downshift",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.",
5
5
  "main": "dist/downshift.cjs.js",
6
6
  "react-native": "dist/downshift.native.cjs.js",
@@ -95,7 +95,6 @@
95
95
  "@testing-library/user-event": "^14.4.3",
96
96
  "@types/jest": "^26.0.24",
97
97
  "@types/react": "^17.0.15",
98
- "@types/react-native": "^0.71.3",
99
98
  "@typescript-eslint/eslint-plugin": "^4.28.5",
100
99
  "@typescript-eslint/parser": "^4.28.5",
101
100
  "babel-plugin-macros": "^3.1.0",
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react'
2
- import * as ReactNative from 'react-native'
3
2
 
4
3
  type Callback = () => void
5
4
 
@@ -159,7 +158,7 @@ interface GetToggleButtonPropsReturnValue {
159
158
  'aria-label': 'close menu' | 'open menu'
160
159
  'aria-haspopup': true
161
160
  'data-toggle': true
162
- onPress?: (event: ReactNative.GestureResponderEvent) => void
161
+ onPress?: (event: React.BaseSyntheticEvent) => void
163
162
  onClick?: React.MouseEventHandler
164
163
  onKeyDown?: React.KeyboardEventHandler
165
164
  onKeyUp?: React.KeyboardEventHandler
@@ -602,7 +601,7 @@ export interface UseComboboxGetToggleButtonPropsReturnValue {
602
601
  'aria-controls': string
603
602
  'aria-expanded': boolean
604
603
  id: string
605
- onPress?: (event: ReactNative.GestureResponderEvent) => void
604
+ onPress?: (event: React.BaseSyntheticEvent) => void
606
605
  onClick?: React.MouseEventHandler
607
606
  ref?: React.RefObject
608
607
  tabIndex: -1