downshift 6.1.2-alpha.0 → 6.1.4

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 (36) hide show
  1. package/README.md +4 -1
  2. package/dist/downshift.cjs.js +139 -118
  3. package/dist/downshift.esm.js +140 -120
  4. package/dist/downshift.native.cjs.js +137 -116
  5. package/dist/downshift.umd.js +786 -936
  6. package/dist/downshift.umd.js.map +1 -1
  7. package/dist/downshift.umd.min.js +2 -28
  8. package/dist/downshift.umd.min.js.map +1 -1
  9. package/dist/src/hooks/reducer.d.ts +1 -0
  10. package/dist/src/hooks/useSelect/__tests__/utils.test.d.ts +1 -0
  11. package/dist/src/hooks/useSelect/reducer.d.ts +1 -0
  12. package/dist/src/hooks/useSelect/stateChangeTypes.d.ts +23 -0
  13. package/dist/src/hooks/useSelect/types.d.ts +7 -0
  14. package/dist/src/hooks/useSelect/utils.d.ts +23 -0
  15. package/dist/src/hooks/utils.d.ts +112 -0
  16. package/dist/src/is.macro.d.ts +2 -0
  17. package/dist/src/productionEnum.macro.d.ts +2 -0
  18. package/dist/src/set-a11y-status.d.ts +6 -0
  19. package/dist/src/types.d.ts +10 -0
  20. package/dist/src/utils.d.ts +156 -0
  21. package/dist/{basic.test.d.ts → test/basic.test.d.ts} +0 -0
  22. package/dist/{custom.test.d.ts → test/custom.test.d.ts} +0 -0
  23. package/dist/test/setup.d.ts +1 -0
  24. package/package.json +49 -36
  25. package/preact/dist/downshift.cjs.js +140 -118
  26. package/preact/dist/downshift.esm.js +141 -120
  27. package/preact/dist/downshift.umd.js +337 -437
  28. package/preact/dist/downshift.umd.js.map +1 -1
  29. package/preact/dist/downshift.umd.min.js +2 -11
  30. package/preact/dist/downshift.umd.min.js.map +1 -1
  31. package/typings/index.d.ts +4 -13
  32. package/dist/downshift.cjs.d.ts +0 -1
  33. package/dist/downshift.esm.d.ts +0 -1
  34. package/dist/downshift.native.cjs.d.ts +0 -1
  35. package/dist/downshift.umd.d.ts +0 -1
  36. package/dist/downshift.umd.min.d.ts +0 -1
@@ -1,5 +1,7 @@
1
1
  import * as React from 'react'
2
2
 
3
+ export {A11yStatusMessageOptions} from '../src/types'
4
+
3
5
  type Callback = () => void
4
6
 
5
7
  export interface DownshiftState<Item> {
@@ -84,17 +86,6 @@ export interface Environment {
84
86
  document: Document
85
87
  }
86
88
 
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
-
98
89
  export interface StateChangeOptions<Item>
99
90
  extends Partial<DownshiftState<Item>> {
100
91
  type: StateChangeTypes
@@ -677,9 +668,9 @@ export interface UseMultipleSelectionActions<Item> {
677
668
  setActiveIndex: (index: number) => void
678
669
  }
679
670
 
680
- export type UseMultipleSelectionReturnValue<
671
+ export type UseMultipleSelectionReturnValue<Item> = UseMultipleSelectionState<
681
672
  Item
682
- > = UseMultipleSelectionState<Item> &
673
+ > &
683
674
  UseMultipleSelectionPropGetters<Item> &
684
675
  UseMultipleSelectionActions<Item>
685
676
 
@@ -1 +0,0 @@
1
- export * from "../dist/index";
@@ -1 +0,0 @@
1
- export * from "../dist/index";
@@ -1 +0,0 @@
1
- export * from "../dist/index";
@@ -1 +0,0 @@
1
- export * from "../dist/index";
@@ -1 +0,0 @@
1
- export * from "../dist/index";