downshift 6.1.5 → 6.1.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 +1 -1
- package/typings/index.d.ts +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "downshift",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.6",
|
|
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",
|
package/typings/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
|
|
3
|
-
export {A11yStatusMessageOptions} from '../src/types'
|
|
4
|
-
|
|
5
3
|
type Callback = () => void
|
|
6
4
|
|
|
7
5
|
export interface DownshiftState<Item> {
|
|
@@ -86,6 +84,17 @@ export interface Environment {
|
|
|
86
84
|
document: Document
|
|
87
85
|
}
|
|
88
86
|
|
|
87
|
+
export interface A11yStatusMessageOptions<Item> {
|
|
88
|
+
highlightedIndex: number | null
|
|
89
|
+
inputValue: string
|
|
90
|
+
isOpen: boolean
|
|
91
|
+
itemToString: (item: Item | null) => string
|
|
92
|
+
previousResultCount: number
|
|
93
|
+
resultCount: number
|
|
94
|
+
highlightedItem: Item
|
|
95
|
+
selectedItem: Item | null
|
|
96
|
+
}
|
|
97
|
+
|
|
89
98
|
export interface StateChangeOptions<Item>
|
|
90
99
|
extends Partial<DownshiftState<Item>> {
|
|
91
100
|
type: StateChangeTypes
|