@@ -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,15 +151,15 @@ 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'
@@ -167,7 +168,7 @@ export interface StandardSelectProps extends StandardProps<InputProps, 'value' |
167
168
}
168
169
169
170
export interface OutlinedSelectProps
170
- extends StandardProps < OutlinedInputProps , 'value' | 'onChange' > {
171
+ extends Omit < OutlinedInputProps , 'value' | 'onChange' > {
171
172
/**
172
173
* The variant to use.
173
174
* @default 'outlined'
@@ -179,7 +180,7 @@ export type SelectVariants = 'outlined' | 'standard' | 'filled';
179
180
180
181
export type SelectProps <
181
182
Value = unknown ,
182
- Variant extends SelectVariants = 'outlined' ,
183
+ Variant extends SelectVariants = SelectVariants ,
183
184
> = BaseSelectProps < Value > &
184
185
( Variant extends 'filled'
185
186
? FilledSelectProps
0 commit comments