1 | import * as React from 'react';
|
2 | import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
3 | import { SvgIconProps } from '../SvgIcon';
|
4 | import { OverrideProps } from '../OverridableComponent';
|
5 |
|
6 | export type TableSortLabelTypeMap<
|
7 | P = {},
|
8 | D extends React.ElementType = 'span'
|
9 | > = ExtendButtonBaseTypeMap<{
|
10 | props: P & {
|
11 | active?: boolean;
|
12 | direction?: 'asc' | 'desc';
|
13 | hideSortIcon?: boolean;
|
14 | IconComponent?: React.ComponentType<{ className: string }>;
|
15 | };
|
16 | defaultComponent: D;
|
17 | classKey: TableSortLabelClassKey;
|
18 | }>;
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | declare const TableSortLabel: ExtendButtonBase<TableSortLabelTypeMap>;
|
32 |
|
33 | export type TableSortLabelClassKey =
|
34 | | 'root'
|
35 | | 'active'
|
36 | | 'icon'
|
37 | | 'iconDirectionDesc'
|
38 | | 'iconDirectionAsc';
|
39 |
|
40 | export type TableSortLabelProps<
|
41 | D extends React.ElementType = TableSortLabelTypeMap['defaultComponent'],
|
42 | P = {}
|
43 | > = OverrideProps<TableSortLabelTypeMap<P, D>, D>;
|
44 |
|
45 | export default TableSortLabel;
|