1 | import * as React from 'react';
|
2 | import { ToolbarItemProps } from './ToolbarItem';
|
3 | import { ToolbarContext } from './ToolbarUtils';
|
4 | import { PickOptional } from '../../helpers/typeUtils';
|
5 | export interface ToolbarChipGroup {
|
6 |
|
7 | key: string;
|
8 |
|
9 | name: string;
|
10 | }
|
11 | export interface ToolbarChip {
|
12 |
|
13 | key: string;
|
14 |
|
15 | node: React.ReactNode;
|
16 | }
|
17 | export interface ToolbarFilterProps extends ToolbarItemProps {
|
18 |
|
19 | chips?: (string | ToolbarChip)[];
|
20 |
|
21 | deleteChipGroup?: (category: string | ToolbarChipGroup) => void;
|
22 |
|
23 | deleteChip?: (category: string | ToolbarChipGroup, chip: ToolbarChip | string) => void;
|
24 |
|
25 | chipGroupExpandedText?: string;
|
26 |
|
27 | chipGroupCollapsedText?: string;
|
28 |
|
29 | children: React.ReactNode;
|
30 |
|
31 | categoryName: string | ToolbarChipGroup;
|
32 |
|
33 | showToolbarItem?: boolean;
|
34 | }
|
35 | interface ToolbarFilterState {
|
36 | isMounted: boolean;
|
37 | }
|
38 | export declare class ToolbarFilter extends React.Component<ToolbarFilterProps, ToolbarFilterState> {
|
39 | static displayName: string;
|
40 | static contextType: React.Context<import("./ToolbarUtils").ToolbarContextProps>;
|
41 | context: React.ContextType<typeof ToolbarContext>;
|
42 | static defaultProps: PickOptional<ToolbarFilterProps>;
|
43 | constructor(props: ToolbarFilterProps);
|
44 | componentDidMount(): void;
|
45 | componentDidUpdate(): void;
|
46 | render(): JSX.Element;
|
47 | }
|
48 | export {};
|
49 |
|
\ | No newline at end of file |