@@ -125,8 +125,18 @@ export interface TablePaginationOwnProps extends TablePaginationBaseProps {
125
125
sx ?: SxProps < Theme > ;
126
126
}
127
127
128
+ type SelectVariant = 'filled' | 'standard' | 'outlined' ;
129
+
130
+ export type SelectPropsByVariant < Variant extends SelectVariant = SelectVariant > =
131
+ Variant extends 'filled'
132
+ ? TablePaginationOwnProps
133
+ : Variant extends 'standard'
134
+ ? TablePaginationOwnProps
135
+ : TablePaginationOwnProps ;
136
+
137
+
128
138
export interface TablePaginationTypeMap < AdditionalProps , RootComponent extends React . ElementType > {
129
- props : AdditionalProps & TablePaginationOwnProps ;
139
+ props : AdditionalProps & SelectPropsByVariant ;
130
140
defaultComponent : RootComponent ;
131
141
}
132
142
@@ -143,12 +153,12 @@ export interface TablePaginationTypeMap<AdditionalProps, RootComponent extends R
143
153
* - inherits [TableCell API](https://mui.com/material-ui/api/table-cell/)
144
154
*/
145
155
declare const TablePagination : OverridableComponent <
146
- TablePaginationTypeMap < { } , React . JSXElementConstructor < TablePaginationBaseProps > >
156
+ TablePaginationTypeMap < { } , React . JSXElementConstructor < TablePaginationBaseProps > >
147
157
> ;
148
158
149
159
export type TablePaginationProps <
150
- RootComponent extends React . ElementType = React . JSXElementConstructor < TablePaginationBaseProps > ,
151
- AdditionalProps = { } ,
160
+ RootComponent extends React . ElementType = React . JSXElementConstructor < TablePaginationBaseProps > ,
161
+ AdditionalProps = { } ,
152
162
> = OverrideProps < TablePaginationTypeMap < AdditionalProps , RootComponent > , RootComponent > & {
153
163
component ?: React . ElementType ;
154
164
} ;
0 commit comments