1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { Theme } from '..';
|
4 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
5 | import { TableRowClasses } from './tableRowClasses';
|
6 |
|
7 | export interface TableRowOwnProps {
|
8 | |
9 |
|
10 |
|
11 | children?: React.ReactNode;
|
12 | |
13 |
|
14 |
|
15 | classes?: Partial<TableRowClasses>;
|
16 | |
17 |
|
18 |
|
19 |
|
20 | hover?: boolean;
|
21 | |
22 |
|
23 |
|
24 |
|
25 | selected?: boolean;
|
26 | |
27 |
|
28 |
|
29 | sx?: SxProps<Theme>;
|
30 | }
|
31 |
|
32 | export interface TableRowTypeMap<
|
33 | AdditionalProps = {},
|
34 | RootComponent extends React.ElementType = 'tr',
|
35 | > {
|
36 | props: AdditionalProps & TableRowOwnProps;
|
37 | defaultComponent: RootComponent;
|
38 | }
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | declare const TableRow: OverridableComponent<TableRowTypeMap>;
|
52 |
|
53 | export type TableRowProps<
|
54 | RootComponent extends React.ElementType = TableRowTypeMap['defaultComponent'],
|
55 | AdditionalProps = {},
|
56 | > = OverrideProps<TableRowTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
57 | component?: React.ElementType;
|
58 | };
|
59 |
|
60 | export default TableRow;
|