@@ -10,7 +10,8 @@ import { FilledInputProps } from '../FilledInput';
10
10
11
11
export { SelectChangeEvent } ;
12
12
13
- export interface BaseSelectProps < Value > {
13
+ export interface BaseSelectProps < Value = unknown >
14
+ extends StandardProps < InputProps , 'value' | 'onChange' > {
14
15
/**
15
16
* If `true`, the width of the popover will automatically be set according to the items inside the
16
17
* menu, otherwise it will be at least the width of the select input.
@@ -150,24 +151,23 @@ export interface BaseSelectProps<Value> {
150
151
variant ?: 'filled' | 'standard' | 'outlined' ;
151
152
}
152
153
153
- export interface FilledSelectProps extends StandardProps < FilledInputProps , 'value' | 'onChange' > {
154
+ export interface FilledSelectProps extends Omit < FilledInputProps , 'value' | 'onChange' > {
154
155
/**
155
156
* The variant to use.
156
157
* @default 'outlined'
157
158
*/
158
159
variant : 'filled' ;
159
160
}
160
161
161
- export interface StandardSelectProps extends StandardProps < InputProps , 'value' | 'onChange' > {
162
+ export interface StandardSelectProps extends Omit < InputProps , 'value' | 'onChange' > {
162
163
/**
163
164
* The variant to use.
164
165
* @default 'outlined'
165
166
*/
166
167
variant : 'standard' ;
167
168
}
168
169
169
- export interface OutlinedSelectProps
170
- extends StandardProps < OutlinedInputProps , 'value' | 'onChange' > {
170
+ export interface OutlinedSelectProps extends Omit < OutlinedInputProps , 'value' | 'onChange' > {
171
171
/**
172
172
* The variant to use.
173
173
* @default 'outlined'
@@ -179,7 +179,7 @@ export type SelectVariants = 'outlined' | 'standard' | 'filled';
179
179
180
180
export type SelectProps <
181
181
Value = unknown ,
182
- Variant extends SelectVariants = 'outlined' ,
182
+ Variant extends SelectVariants = SelectVariants ,
183
183
> = BaseSelectProps < Value > &
184
184
( Variant extends 'filled'
185
185
? FilledSelectProps
0 commit comments