1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { Theme } from '..';
|
4 | import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
5 | import { OverrideProps } from '../OverridableComponent';
|
6 | import { TableSortLabelClasses } from './tableSortLabelClasses';
|
7 |
|
8 | export interface TableSortLabelOwnProps {
|
9 | |
10 |
|
11 |
|
12 |
|
13 | active?: boolean;
|
14 | |
15 |
|
16 |
|
17 | children?: React.ReactNode;
|
18 | |
19 |
|
20 |
|
21 | classes?: Partial<TableSortLabelClasses>;
|
22 | |
23 |
|
24 |
|
25 |
|
26 | direction?: 'asc' | 'desc';
|
27 | |
28 |
|
29 |
|
30 |
|
31 | hideSortIcon?: boolean;
|
32 | |
33 |
|
34 |
|
35 |
|
36 | IconComponent?: React.JSXElementConstructor<{
|
37 | className: string;
|
38 | }>;
|
39 | |
40 |
|
41 |
|
42 | sx?: SxProps<Theme>;
|
43 | }
|
44 |
|
45 | export type TableSortLabelTypeMap<
|
46 | AdditionalProps = {},
|
47 | RootComponent extends React.ElementType = 'span',
|
48 | > = ExtendButtonBaseTypeMap<{
|
49 | props: AdditionalProps & TableSortLabelOwnProps;
|
50 | defaultComponent: RootComponent;
|
51 | }>;
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 | declare const TableSortLabel: ExtendButtonBase<TableSortLabelTypeMap>;
|
66 |
|
67 | export type TableSortLabelProps<
|
68 | RootComponent extends React.ElementType = TableSortLabelTypeMap['defaultComponent'],
|
69 | AdditionalProps = {},
|
70 | > = OverrideProps<TableSortLabelTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
71 | component?: React.ElementType;
|
72 | };
|
73 |
|
74 | export default TableSortLabel;
|