1 | import * as React from 'react';
|
2 | import { PickOptional } from '../../helpers/typeUtils';
|
3 | export interface SelectToggleProps extends React.HTMLProps<HTMLElement> {
|
4 |
|
5 | id: string;
|
6 |
|
7 | children: React.ReactNode;
|
8 |
|
9 | className?: string;
|
10 |
|
11 | isOpen?: boolean;
|
12 |
|
13 | onToggle?: (isExpanded: boolean, event: React.MouseEvent | React.ChangeEvent | React.KeyboardEvent | Event) => void;
|
14 |
|
15 | onEnter?: () => void;
|
16 |
|
17 | onClose?: () => void;
|
18 |
|
19 | onBlur?: (event?: any) => void;
|
20 |
|
21 | handleTypeaheadKeys?: (position: string, shiftKey?: boolean) => void;
|
22 |
|
23 | moveFocusToLastMenuItem?: () => void;
|
24 |
|
25 | parentRef: React.RefObject<HTMLDivElement>;
|
26 |
|
27 | menuRef?: React.RefObject<HTMLElement>;
|
28 |
|
29 | footerRef?: React.RefObject<HTMLDivElement>;
|
30 |
|
31 | isActive?: boolean;
|
32 |
|
33 | isPlain?: boolean;
|
34 |
|
35 | isDisabled?: boolean;
|
36 |
|
37 | hasPlaceholderStyle?: boolean;
|
38 |
|
39 | type?: 'reset' | 'button' | 'submit' | undefined;
|
40 |
|
41 | 'aria-labelledby'?: string;
|
42 |
|
43 | 'aria-label'?: string;
|
44 |
|
45 | variant?: 'single' | 'checkbox' | 'typeahead' | 'typeaheadmulti';
|
46 |
|
47 | hasClearButton?: boolean;
|
48 |
|
49 | hasFooter?: boolean;
|
50 |
|
51 | onClickTypeaheadToggleButton?: () => void;
|
52 | }
|
53 | export declare class SelectToggle extends React.Component<SelectToggleProps> {
|
54 | static displayName: string;
|
55 | private toggle;
|
56 | static defaultProps: PickOptional<SelectToggleProps>;
|
57 | constructor(props: SelectToggleProps);
|
58 | componentDidMount(): void;
|
59 | componentWillUnmount(): void;
|
60 | onDocClick: (event: Event) => void;
|
61 | handleGlobalKeys: (event: KeyboardEvent) => void;
|
62 | onKeyDown: (event: React.KeyboardEvent) => void;
|
63 | render(): JSX.Element;
|
64 | }
|
65 | //# sourceMappingURL=SelectToggle.d.ts.map |
\ | No newline at end of file |