From d7bda2aa8d0a39c5d168a52d178b34a2ac4b9ad0 Mon Sep 17 00:00:00 2001 From: sai6855 Date: Fri, 8 Mar 2024 18:30:41 +0530 Subject: [PATCH] fix #41356 --- packages/mui-material/src/Select/Select.d.ts | 2 +- .../mui-material/src/Select/Select.spec.tsx | 47 ++++++++++++++++++- 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/packages/mui-material/src/Select/Select.d.ts b/packages/mui-material/src/Select/Select.d.ts index fec758ad8a1a48..9aa1e668f7185f 100644 --- a/packages/mui-material/src/Select/Select.d.ts +++ b/packages/mui-material/src/Select/Select.d.ts @@ -172,7 +172,7 @@ export interface OutlinedSelectProps extends Omit; ; + + const defaultProps: SelectProps = {}; + const outlinedProps: SelectProps = { + variant: 'outlined', + }; + const filledProps: SelectProps = { + variant: 'filled', + }; + const standardProps: SelectProps = { + variant: 'standard', + }; + + ; + ; + {...outlinedProps} />; + {...defaultProps} />; + {...standardProps} />; + // @ts-expect-error variant type mismatch + {...filledProps} />; + // @ts-expect-error variant type mismatch + {...filledProps} />; + // @ts-expect-error variant type mismatch + {...filledProps} />; + + const rawDefaultProps: SelectProps = {}; + const rawOutlinedProps: SelectProps = { + variant: 'outlined', + }; + const rawFilledProps: SelectProps = { + variant: 'filled', + }; + + ; + ; + // @ts-expect-error hiddenLabel is not present in outlined variant + ; + // @ts-expect-error hiddenLabel is not present in standard variant +