File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
- // Components
1
+ export * from './core' ;
2
+
2
3
export { default as AsyncTypeahead } from './components/AsyncTypeahead' ;
3
4
export { default as ClearButton } from './components/ClearButton' ;
4
5
export { default as Highlighter } from './components/Highlighter' ;
Original file line number Diff line number Diff line change 9
9
MenuItem ,
10
10
Token ,
11
11
Typeahead ,
12
+ TypeaheadContext ,
12
13
TypeaheadInputMulti ,
13
14
TypeaheadInputSingle ,
14
15
TypeaheadMenu ,
@@ -17,6 +18,7 @@ import {
17
18
useItem ,
18
19
useOverlay ,
19
20
useToken ,
21
+ useTypeahead ,
20
22
} from '..' ;
21
23
22
24
import _AsyncTypeahead from '../components/AsyncTypeahead' ;
@@ -41,6 +43,11 @@ import {
41
43
useToken as _useToken ,
42
44
} from '../hooks' ;
43
45
46
+ import {
47
+ useTypeahead as _useTypeahead ,
48
+ TypeaheadContext as _TypeaheadContext ,
49
+ } from '../core' ;
50
+
44
51
describe ( 'index.ts exports' , ( ) => {
45
52
it ( 'exports the components' , ( ) => {
46
53
expect ( AsyncTypeahead ) . toBe ( _AsyncTypeahead ) ;
@@ -65,4 +72,9 @@ describe('index.ts exports', () => {
65
72
expect ( useOverlay ) . toBe ( _useOverlay ) ;
66
73
expect ( useToken ) . toBe ( _useToken ) ;
67
74
} ) ;
75
+
76
+ it ( 'exports core hooks and context' , ( ) => {
77
+ expect ( TypeaheadContext ) . toBe ( _TypeaheadContext ) ;
78
+ expect ( useTypeahead ) . toBe ( _useTypeahead ) ;
79
+ } ) ;
68
80
} ) ;
You can’t perform that action at this time.
0 commit comments