diff --git a/packages/mui-material/src/Select/Select.d.ts b/packages/mui-material/src/Select/Select.d.ts index e4cb507cf21000..e62fed42ba5f97 100644 --- a/packages/mui-material/src/Select/Select.d.ts +++ b/packages/mui-material/src/Select/Select.d.ts @@ -10,7 +10,8 @@ import { FilledInputProps } from '../FilledInput'; export { SelectChangeEvent }; -export interface BaseSelectProps { +export interface BaseSelectProps + extends StandardProps { /** * If `true`, the width of the popover will automatically be set according to the items inside the * menu, otherwise it will be at least the width of the select input. @@ -150,7 +151,7 @@ export interface BaseSelectProps { variant?: 'filled' | 'standard' | 'outlined'; } -export interface FilledSelectProps extends StandardProps { +export interface FilledSelectProps extends Omit { /** * The variant to use. * @default 'outlined' @@ -158,7 +159,7 @@ export interface FilledSelectProps extends StandardProps { +export interface StandardSelectProps extends Omit { /** * The variant to use. * @default 'outlined' @@ -166,8 +167,7 @@ export interface StandardSelectProps extends StandardProps { +export interface OutlinedSelectProps extends Omit { /** * The variant to use. * @default 'outlined' @@ -179,7 +179,7 @@ export type SelectVariants = 'outlined' | 'standard' | 'filled'; export type SelectProps< Value = unknown, - Variant extends SelectVariants = 'outlined', + Variant extends SelectVariants = SelectVariants, > = BaseSelectProps & (Variant extends 'filled' ? FilledSelectProps diff --git a/packages/mui-material/src/Select/Select.spec.tsx b/packages/mui-material/src/Select/Select.spec.tsx index 774b0da424bf9b..25283d8a874054 100644 --- a/packages/mui-material/src/Select/Select.spec.tsx +++ b/packages/mui-material/src/Select/Select.spec.tsx @@ -44,7 +44,7 @@ function genericValueTest() { ; +