1 | import * as React from 'react';
|
2 | import { PickOptional } from '../../helpers/typeUtils';
|
3 | import { OUIAProps } from '../../helpers';
|
4 | export interface NavExpandableProps extends React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, OUIAProps {
|
5 |
|
6 | title: string;
|
7 |
|
8 | srText?: string;
|
9 |
|
10 | isExpanded?: boolean;
|
11 |
|
12 | children?: React.ReactNode;
|
13 |
|
14 | className?: string;
|
15 |
|
16 | groupId?: string | number;
|
17 |
|
18 | isActive?: boolean;
|
19 |
|
20 | id?: string;
|
21 |
|
22 | onExpand?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>, val: boolean) => void;
|
23 |
|
24 | buttonProps?: any;
|
25 | }
|
26 | interface NavExpandableState {
|
27 | expandedState: boolean;
|
28 | ouiaStateId: string;
|
29 | }
|
30 | export declare class NavExpandable extends React.Component<NavExpandableProps, NavExpandableState> {
|
31 | static displayName: string;
|
32 | static defaultProps: PickOptional<NavExpandableProps>;
|
33 | id: string;
|
34 | state: {
|
35 | expandedState: boolean;
|
36 | ouiaStateId: string;
|
37 | };
|
38 | componentDidMount(): void;
|
39 | componentDidUpdate(prevProps: NavExpandableProps): void;
|
40 | onExpand: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>, onToggle: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, groupId: string | number, expandedState: boolean) => void) => void;
|
41 | render(): JSX.Element;
|
42 | }
|
43 | export {};
|
44 |
|
\ | No newline at end of file |