@mui/material 5.14.7 → 5.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.ts +22 -20
- package/AppBar/AppBar.d.ts +33 -31
- package/Avatar/Avatar.d.ts +49 -50
- package/Backdrop/Backdrop.d.ts +87 -85
- package/Badge/Badge.d.ts +2 -2
- package/BottomNavigation/BottomNavigation.d.ts +35 -33
- package/BottomNavigationAction/BottomNavigationAction.d.ts +39 -37
- package/Breadcrumbs/Breadcrumbs.d.ts +69 -67
- package/Button/Button.d.ts +72 -73
- package/ButtonBase/ButtonBase.d.ts +83 -81
- package/ButtonGroup/ButtonGroup.d.ts +72 -70
- package/CHANGELOG.md +111 -19
- package/Card/Card.d.ts +19 -18
- package/CardActionArea/CardActionArea.d.ts +15 -13
- package/CardContent/CardContent.d.ts +18 -16
- package/CardHeader/CardHeader.d.ts +77 -67
- package/CardMedia/CardMedia.d.ts +30 -28
- package/Chip/Chip.d.ts +84 -82
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +1 -1
- package/Container/Container.d.ts +35 -33
- package/DialogContentText/DialogContentText.d.ts +14 -12
- package/DialogTitle/DialogTitle.d.ts +18 -16
- package/Divider/Divider.d.ts +49 -50
- package/Fab/Fab.d.ts +59 -56
- package/FormControl/FormControl.d.ts +74 -72
- package/FormHelperText/FormHelperText.d.ts +52 -50
- package/FormLabel/FormLabel.d.ts +7 -4
- package/Grid/Grid.d.ts +69 -68
- package/Hidden/Hidden.d.ts +10 -10
- package/Icon/Icon.d.ts +50 -48
- package/IconButton/IconButton.d.ts +52 -50
- package/ImageList/ImageList.d.ts +41 -39
- package/ImageListItem/ImageListItem.d.ts +28 -26
- package/ImageListItem/ImageListItem.js +2 -1
- package/InputAdornment/InputAdornment.d.ts +39 -37
- package/InputBase/InputBase.js +1 -1
- package/InputLabel/InputLabel.d.ts +58 -56
- package/InputLabel/InputLabel.js +2 -1
- package/Link/Link.d.ts +37 -39
- package/List/List.d.ts +34 -35
- package/ListItem/ListItem.d.ts +53 -49
- package/ListItemButton/ListItemButton.d.ts +9 -3
- package/ListSubheader/ListSubheader.d.ts +38 -36
- package/MenuItem/MenuItem.d.ts +47 -44
- package/MenuList/MenuList.d.ts +37 -35
- package/Modal/Modal.d.ts +172 -178
- package/PaginationItem/PaginationItem.d.ts +85 -83
- package/Paper/Paper.d.ts +2 -2
- package/Radio/Radio.js +3 -2
- package/Radio/radioClasses.d.ts +2 -0
- package/Radio/radioClasses.js +1 -1
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +25 -23
- package/Select/SelectInput.js +9 -5
- package/Skeleton/Skeleton.d.ts +42 -40
- package/Slider/Slider.d.ts +249 -247
- package/Stack/Stack.d.ts +39 -38
- package/Step/Step.d.ts +46 -44
- package/StepButton/StepButton.d.ts +27 -25
- package/Stepper/Stepper.d.ts +45 -44
- package/SvgIcon/SvgIcon.d.ts +77 -75
- package/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/Tab/Tab.d.ts +52 -50
- package/TabScrollButton/TabScrollButton.d.ts +3 -2
- package/Table/Table.d.ts +35 -33
- package/TableBody/TableBody.d.ts +18 -16
- package/TableContainer/TableContainer.d.ts +18 -16
- package/TableFooter/TableFooter.d.ts +18 -16
- package/TableHead/TableHead.d.ts +18 -16
- package/TablePagination/TablePagination.d.ts +113 -112
- package/TableRow/TableRow.d.ts +28 -26
- package/TableSortLabel/TableSortLabel.d.ts +40 -36
- package/Tabs/Tabs.d.ts +153 -150
- package/ToggleButton/ToggleButton.d.ts +72 -70
- package/Toolbar/Toolbar.d.ts +29 -27
- package/Typography/Typography.d.ts +2 -2
- package/index.js +1 -1
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/ImageListItem/ImageListItem.js +2 -1
- package/legacy/InputBase/InputBase.js +1 -1
- package/legacy/InputLabel/InputLabel.js +2 -1
- package/legacy/Radio/Radio.js +3 -2
- package/legacy/Radio/radioClasses.js +1 -1
- package/legacy/Select/SelectInput.js +9 -5
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/legacy/index.js +1 -1
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/ImageListItem/ImageListItem.js +2 -1
- package/modern/InputBase/InputBase.js +1 -1
- package/modern/InputLabel/InputLabel.js +2 -1
- package/modern/Radio/Radio.js +3 -2
- package/modern/Radio/radioClasses.js +1 -1
- package/modern/Select/SelectInput.js +8 -5
- package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/modern/index.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/ImageListItem/ImageListItem.js +2 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputLabel/InputLabel.js +2 -1
- package/node/Radio/Radio.js +3 -2
- package/node/Radio/radioClasses.js +1 -1
- package/node/Select/SelectInput.js +9 -5
- package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/umd/material-ui.development.js +50 -23
- package/umd/material-ui.production.min.js +5 -5
package/TableBody/TableBody.d.ts
CHANGED
|
@@ -4,25 +4,27 @@ import { Theme } from '..';
|
|
|
4
4
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
5
5
|
import { TableBodyClasses } from './tableBodyClasses';
|
|
6
6
|
|
|
7
|
+
export interface TableBodyOwnProps {
|
|
8
|
+
/**
|
|
9
|
+
* The content of the component, normally `TableRow`.
|
|
10
|
+
*/
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Override or extend the styles applied to the component.
|
|
14
|
+
*/
|
|
15
|
+
classes?: Partial<TableBodyClasses>;
|
|
16
|
+
/**
|
|
17
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18
|
+
*/
|
|
19
|
+
sx?: SxProps<Theme>;
|
|
20
|
+
}
|
|
21
|
+
|
|
7
22
|
export interface TableBodyTypeMap<
|
|
8
23
|
AdditionalProps = {},
|
|
9
|
-
|
|
24
|
+
RootComponent extends React.ElementType = 'tbody',
|
|
10
25
|
> {
|
|
11
|
-
props: AdditionalProps &
|
|
12
|
-
|
|
13
|
-
* The content of the component, normally `TableRow`.
|
|
14
|
-
*/
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Override or extend the styles applied to the component.
|
|
18
|
-
*/
|
|
19
|
-
classes?: Partial<TableBodyClasses>;
|
|
20
|
-
/**
|
|
21
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
22
|
-
*/
|
|
23
|
-
sx?: SxProps<Theme>;
|
|
24
|
-
};
|
|
25
|
-
defaultComponent: DefaultComponent;
|
|
26
|
+
props: AdditionalProps & TableBodyOwnProps;
|
|
27
|
+
defaultComponent: RootComponent;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
*
|
|
@@ -4,25 +4,27 @@ import { Theme } from '..';
|
|
|
4
4
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
5
5
|
import { TableContainerClasses } from './tableContainerClasses';
|
|
6
6
|
|
|
7
|
+
export interface TableContainerOwnProps {
|
|
8
|
+
/**
|
|
9
|
+
* The content of the component, normally `Table`.
|
|
10
|
+
*/
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Override or extend the styles applied to the component.
|
|
14
|
+
*/
|
|
15
|
+
classes?: Partial<TableContainerClasses>;
|
|
16
|
+
/**
|
|
17
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18
|
+
*/
|
|
19
|
+
sx?: SxProps<Theme>;
|
|
20
|
+
}
|
|
21
|
+
|
|
7
22
|
export interface TableContainerTypeMap<
|
|
8
23
|
AdditionalProps = {},
|
|
9
|
-
|
|
24
|
+
RootComponent extends React.ElementType = 'div',
|
|
10
25
|
> {
|
|
11
|
-
props: AdditionalProps &
|
|
12
|
-
|
|
13
|
-
* The content of the component, normally `Table`.
|
|
14
|
-
*/
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Override or extend the styles applied to the component.
|
|
18
|
-
*/
|
|
19
|
-
classes?: Partial<TableContainerClasses>;
|
|
20
|
-
/**
|
|
21
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
22
|
-
*/
|
|
23
|
-
sx?: SxProps<Theme>;
|
|
24
|
-
};
|
|
25
|
-
defaultComponent: DefaultComponent;
|
|
26
|
+
props: AdditionalProps & TableContainerOwnProps;
|
|
27
|
+
defaultComponent: RootComponent;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
*
|
|
@@ -4,25 +4,27 @@ import { Theme } from '..';
|
|
|
4
4
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
5
5
|
import { TableFooterClasses } from './tableFooterClasses';
|
|
6
6
|
|
|
7
|
+
export interface TableFooterOwnProps {
|
|
8
|
+
/**
|
|
9
|
+
* The content of the component, normally `TableRow`.
|
|
10
|
+
*/
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Override or extend the styles applied to the component.
|
|
14
|
+
*/
|
|
15
|
+
classes?: Partial<TableFooterClasses>;
|
|
16
|
+
/**
|
|
17
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18
|
+
*/
|
|
19
|
+
sx?: SxProps<Theme>;
|
|
20
|
+
}
|
|
21
|
+
|
|
7
22
|
export interface TableFooterTypeMap<
|
|
8
23
|
AdditionalProps = {},
|
|
9
|
-
|
|
24
|
+
RootComponent extends React.ElementType = 'tfoot',
|
|
10
25
|
> {
|
|
11
|
-
props: AdditionalProps &
|
|
12
|
-
|
|
13
|
-
* The content of the component, normally `TableRow`.
|
|
14
|
-
*/
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Override or extend the styles applied to the component.
|
|
18
|
-
*/
|
|
19
|
-
classes?: Partial<TableFooterClasses>;
|
|
20
|
-
/**
|
|
21
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
22
|
-
*/
|
|
23
|
-
sx?: SxProps<Theme>;
|
|
24
|
-
};
|
|
25
|
-
defaultComponent: DefaultComponent;
|
|
26
|
+
props: AdditionalProps & TableFooterOwnProps;
|
|
27
|
+
defaultComponent: RootComponent;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
*
|
package/TableHead/TableHead.d.ts
CHANGED
|
@@ -4,25 +4,27 @@ import { Theme } from '..';
|
|
|
4
4
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
5
5
|
import { TableHeadClasses } from './tableHeadClasses';
|
|
6
6
|
|
|
7
|
+
export interface TableHeadOwnProps {
|
|
8
|
+
/**
|
|
9
|
+
* The content of the component, normally `TableRow`.
|
|
10
|
+
*/
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Override or extend the styles applied to the component.
|
|
14
|
+
*/
|
|
15
|
+
classes?: Partial<TableHeadClasses>;
|
|
16
|
+
/**
|
|
17
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
18
|
+
*/
|
|
19
|
+
sx?: SxProps<Theme>;
|
|
20
|
+
}
|
|
21
|
+
|
|
7
22
|
export interface TableHeadTypeMap<
|
|
8
23
|
AdditionalProps = {},
|
|
9
|
-
|
|
24
|
+
RootComponent extends React.ElementType = 'thead',
|
|
10
25
|
> {
|
|
11
|
-
props: AdditionalProps &
|
|
12
|
-
|
|
13
|
-
* The content of the component, normally `TableRow`.
|
|
14
|
-
*/
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Override or extend the styles applied to the component.
|
|
18
|
-
*/
|
|
19
|
-
classes?: Partial<TableHeadClasses>;
|
|
20
|
-
/**
|
|
21
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
22
|
-
*/
|
|
23
|
-
sx?: SxProps<Theme>;
|
|
24
|
-
};
|
|
25
|
-
defaultComponent: DefaultComponent;
|
|
26
|
+
props: AdditionalProps & TableHeadOwnProps;
|
|
27
|
+
defaultComponent: RootComponent;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
*
|
|
@@ -15,116 +15,119 @@ export interface LabelDisplayedRowsArgs {
|
|
|
15
15
|
page: number;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
18
|
+
/**
|
|
19
|
+
* This type is kept for compatibility. Use `TablePaginationOwnProps` instead.
|
|
20
|
+
*/
|
|
21
|
+
export type TablePaginationBaseProps = Omit<TableCellProps, 'classes' | 'component' | 'children'>;
|
|
22
|
+
|
|
23
|
+
export interface TablePaginationOwnProps extends TablePaginationBaseProps {
|
|
24
|
+
/**
|
|
25
|
+
* The component used for displaying the actions.
|
|
26
|
+
* Either a string to use a HTML element or a component.
|
|
27
|
+
* @default TablePaginationActions
|
|
28
|
+
*/
|
|
29
|
+
ActionsComponent?: React.ElementType<TablePaginationActionsProps>;
|
|
30
|
+
/**
|
|
31
|
+
* Props applied to the back arrow [`IconButton`](/material-ui/api/icon-button/) component.
|
|
32
|
+
*/
|
|
33
|
+
backIconButtonProps?: Partial<IconButtonProps>;
|
|
34
|
+
/**
|
|
35
|
+
* Override or extend the styles applied to the component.
|
|
36
|
+
*/
|
|
37
|
+
classes?: Partial<TablePaginationClasses>;
|
|
38
|
+
/**
|
|
39
|
+
* The total number of rows.
|
|
40
|
+
*
|
|
41
|
+
* To enable server side pagination for an unknown number of items, provide -1.
|
|
42
|
+
*/
|
|
43
|
+
count: number;
|
|
44
|
+
/**
|
|
45
|
+
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
46
|
+
* This is important for screen reader users.
|
|
47
|
+
*
|
|
48
|
+
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
49
|
+
* @param {string} type The link or button type to format ('first' | 'last' | 'next' | 'previous').
|
|
50
|
+
* @returns {string}
|
|
51
|
+
* @default function defaultGetAriaLabel(type) {
|
|
52
|
+
* return `Go to ${type} page`;
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
getItemAriaLabel?: (type: 'first' | 'last' | 'next' | 'previous') => string;
|
|
56
|
+
/**
|
|
57
|
+
* Customize the displayed rows label. Invoked with a `{ from, to, count, page }`
|
|
58
|
+
* object.
|
|
59
|
+
*
|
|
60
|
+
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
61
|
+
* @default function defaultLabelDisplayedRows({ from, to, count }) {
|
|
62
|
+
* return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
|
|
63
|
+
* }
|
|
64
|
+
*/
|
|
65
|
+
labelDisplayedRows?: (paginationInfo: LabelDisplayedRowsArgs) => React.ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* Customize the rows per page label.
|
|
68
|
+
*
|
|
69
|
+
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
70
|
+
* @default 'Rows per page:'
|
|
71
|
+
*/
|
|
72
|
+
labelRowsPerPage?: React.ReactNode;
|
|
73
|
+
/**
|
|
74
|
+
* Props applied to the next arrow [`IconButton`](/material-ui/api/icon-button/) element.
|
|
75
|
+
*/
|
|
76
|
+
nextIconButtonProps?: Partial<IconButtonProps>;
|
|
77
|
+
/**
|
|
78
|
+
* Callback fired when the page is changed.
|
|
79
|
+
*
|
|
80
|
+
* @param {React.MouseEvent<HTMLButtonElement> | null} event The event source of the callback.
|
|
81
|
+
* @param {number} page The page selected.
|
|
82
|
+
*/
|
|
83
|
+
onPageChange: (event: React.MouseEvent<HTMLButtonElement> | null, page: number) => void;
|
|
84
|
+
/**
|
|
85
|
+
* Callback fired when the number of rows per page is changed.
|
|
86
|
+
*
|
|
87
|
+
* @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
|
|
88
|
+
*/
|
|
89
|
+
onRowsPerPageChange?: React.ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
90
|
+
/**
|
|
91
|
+
* The zero-based index of the current page.
|
|
92
|
+
*/
|
|
93
|
+
page: number;
|
|
94
|
+
/**
|
|
95
|
+
* The number of rows per page.
|
|
96
|
+
*
|
|
97
|
+
* Set -1 to display all the rows.
|
|
98
|
+
*/
|
|
99
|
+
rowsPerPage: number;
|
|
100
|
+
/**
|
|
101
|
+
* Customizes the options of the rows per page select field. If less than two options are
|
|
102
|
+
* available, no select field will be displayed.
|
|
103
|
+
* Use -1 for the value with a custom label to show all the rows.
|
|
104
|
+
* @default [10, 25, 50, 100]
|
|
105
|
+
*/
|
|
106
|
+
rowsPerPageOptions?: Array<number | { value: number; label: string }>;
|
|
107
|
+
/**
|
|
108
|
+
* Props applied to the rows per page [`Select`](/material-ui/api/select/) element.
|
|
109
|
+
* @default {}
|
|
110
|
+
*/
|
|
111
|
+
SelectProps?: Partial<SelectProps>;
|
|
112
|
+
/**
|
|
113
|
+
* If `true`, show the first-page button.
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
showFirstButton?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* If `true`, show the last-page button.
|
|
119
|
+
* @default false
|
|
120
|
+
*/
|
|
121
|
+
showLastButton?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
124
|
+
*/
|
|
125
|
+
sx?: SxProps<Theme>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface TablePaginationTypeMap<AdditionalProps, RootComponent extends React.ElementType> {
|
|
129
|
+
props: AdditionalProps & TablePaginationOwnProps;
|
|
130
|
+
defaultComponent: RootComponent;
|
|
128
131
|
}
|
|
129
132
|
|
|
130
133
|
/**
|
|
@@ -143,8 +146,6 @@ declare const TablePagination: OverridableComponent<
|
|
|
143
146
|
TablePaginationTypeMap<{}, React.JSXElementConstructor<TablePaginationBaseProps>>
|
|
144
147
|
>;
|
|
145
148
|
|
|
146
|
-
export type TablePaginationBaseProps = Omit<TableCellProps, 'classes' | 'component' | 'children'>;
|
|
147
|
-
|
|
148
149
|
export type TablePaginationProps<
|
|
149
150
|
RootComponent extends React.ElementType = React.JSXElementConstructor<TablePaginationBaseProps>,
|
|
150
151
|
AdditionalProps = {},
|
package/TableRow/TableRow.d.ts
CHANGED
|
@@ -4,35 +4,37 @@ import { Theme } from '..';
|
|
|
4
4
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
5
5
|
import { TableRowClasses } from './tableRowClasses';
|
|
6
6
|
|
|
7
|
+
export interface TableRowOwnProps {
|
|
8
|
+
/**
|
|
9
|
+
* Should be valid <tr> children such as `TableCell`.
|
|
10
|
+
*/
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Override or extend the styles applied to the component.
|
|
14
|
+
*/
|
|
15
|
+
classes?: Partial<TableRowClasses>;
|
|
16
|
+
/**
|
|
17
|
+
* If `true`, the table row will shade on hover.
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
hover?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* If `true`, the table row will have the selected shading.
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
selected?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28
|
+
*/
|
|
29
|
+
sx?: SxProps<Theme>;
|
|
30
|
+
}
|
|
31
|
+
|
|
7
32
|
export interface TableRowTypeMap<
|
|
8
33
|
AdditionalProps = {},
|
|
9
|
-
|
|
34
|
+
RootComponent extends React.ElementType = 'tr',
|
|
10
35
|
> {
|
|
11
|
-
props: AdditionalProps &
|
|
12
|
-
|
|
13
|
-
* Should be valid <tr> children such as `TableCell`.
|
|
14
|
-
*/
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Override or extend the styles applied to the component.
|
|
18
|
-
*/
|
|
19
|
-
classes?: Partial<TableRowClasses>;
|
|
20
|
-
/**
|
|
21
|
-
* If `true`, the table row will shade on hover.
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
hover?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* If `true`, the table row will have the selected shading.
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
selected?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
32
|
-
*/
|
|
33
|
-
sx?: SxProps<Theme>;
|
|
34
|
-
};
|
|
35
|
-
defaultComponent: DefaultComponent;
|
|
36
|
+
props: AdditionalProps & TableRowOwnProps;
|
|
37
|
+
defaultComponent: RootComponent;
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* Will automatically set dynamic row height
|
|
@@ -5,45 +5,49 @@ import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
|
|
5
5
|
import { OverrideProps } from '../OverridableComponent';
|
|
6
6
|
import { TableSortLabelClasses } from './tableSortLabelClasses';
|
|
7
7
|
|
|
8
|
+
export interface TableSortLabelOwnProps {
|
|
9
|
+
/**
|
|
10
|
+
* If `true`, the label will have the active styling (should be true for the sorted column).
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
active?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Label contents, the arrow will be appended automatically.
|
|
16
|
+
*/
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Override or extend the styles applied to the component.
|
|
20
|
+
*/
|
|
21
|
+
classes?: Partial<TableSortLabelClasses>;
|
|
22
|
+
/**
|
|
23
|
+
* The current sort direction.
|
|
24
|
+
* @default 'asc'
|
|
25
|
+
*/
|
|
26
|
+
direction?: 'asc' | 'desc';
|
|
27
|
+
/**
|
|
28
|
+
* Hide sort icon when active is false.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
hideSortIcon?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Sort icon to use.
|
|
34
|
+
* @default ArrowDownwardIcon
|
|
35
|
+
*/
|
|
36
|
+
IconComponent?: React.JSXElementConstructor<{
|
|
37
|
+
className: string;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
41
|
+
*/
|
|
42
|
+
sx?: SxProps<Theme>;
|
|
43
|
+
}
|
|
44
|
+
|
|
8
45
|
export type TableSortLabelTypeMap<
|
|
9
46
|
AdditionalProps = {},
|
|
10
|
-
|
|
47
|
+
RootComponent extends React.ElementType = 'span',
|
|
11
48
|
> = ExtendButtonBaseTypeMap<{
|
|
12
|
-
props: AdditionalProps &
|
|
13
|
-
|
|
14
|
-
* If `true`, the label will have the active styling (should be true for the sorted column).
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
active?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Label contents, the arrow will be appended automatically.
|
|
20
|
-
*/
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* Override or extend the styles applied to the component.
|
|
24
|
-
*/
|
|
25
|
-
classes?: Partial<TableSortLabelClasses>;
|
|
26
|
-
/**
|
|
27
|
-
* The current sort direction.
|
|
28
|
-
* @default 'asc'
|
|
29
|
-
*/
|
|
30
|
-
direction?: 'asc' | 'desc';
|
|
31
|
-
/**
|
|
32
|
-
* Hide sort icon when active is false.
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
hideSortIcon?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Sort icon to use.
|
|
38
|
-
* @default ArrowDownwardIcon
|
|
39
|
-
*/
|
|
40
|
-
IconComponent?: React.JSXElementConstructor<{ className: string }>;
|
|
41
|
-
/**
|
|
42
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
43
|
-
*/
|
|
44
|
-
sx?: SxProps<Theme>;
|
|
45
|
-
};
|
|
46
|
-
defaultComponent: DefaultComponent;
|
|
49
|
+
props: AdditionalProps & TableSortLabelOwnProps;
|
|
50
|
+
defaultComponent: RootComponent;
|
|
47
51
|
}>;
|
|
48
52
|
|
|
49
53
|
/**
|