Skip to content

Commit

Permalink
Fixed issue with duplicate props in Select component, addressing chan…
Browse files Browse the repository at this point in the history
…ges in PropTypes following the previous Select definition change
  • Loading branch information
ZeeshanTamboli committed Apr 6, 2024
1 parent b03960d commit 594b2d6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/mui-material/src/Select/Select.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,26 @@ export interface BaseSelectProps<Value = unknown>
variant?: SelectVariants;
}

export interface FilledSelectProps extends Omit<FilledInputProps, 'value' | 'onChange'> {
export interface FilledSelectProps
extends Omit<FilledInputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
/**
* The variant to use.
* @default 'outlined'
*/
variant: 'filled';
}

export interface StandardSelectProps extends Omit<InputProps, 'value' | 'onChange'> {
export interface StandardSelectProps
extends Omit<InputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
/**
* The variant to use.
* @default 'outlined'
*/
variant: 'standard';
}

export interface OutlinedSelectProps extends Omit<OutlinedInputProps, 'value' | 'onChange'> {
export interface OutlinedSelectProps
extends Omit<OutlinedInputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
/**
* The variant to use.
* @default 'outlined'
Expand All @@ -193,8 +196,7 @@ export type SelectProps<Value = unknown> =
* - [Select API](https://mui.com/material-ui/api/select/)
* - inherits [OutlinedInput API](https://mui.com/material-ui/api/outlined-input/)
*/

declare const Select: (<Value>(props: SelectProps<Value>) => JSX.Element) & {
declare const Select: (<Value = unknown>(props: SelectProps<Value>) => JSX.Element) & {
muiName: string;
};

Expand Down

0 comments on commit 594b2d6

Please sign in to comment.