Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Oct 30, 2024
1 parent 3a6a713 commit 66706fe
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions packages/x-date-pickers-pro/src/internals/models/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,6 @@ import type {
RangePosition,
} from '../../models';

interface BaseForwardedMultiInputFieldProps extends RangeFieldSeparatorProps {
className: string | undefined;
sx: SxProps<any> | undefined;
slots?: {
root?: React.ElementType;
separator?: React.ElementType;
textField?: React.ElementType;
};
slotProps?: {
root?: SlotComponentProps<
React.ElementType<MultiInputFieldSlotRootProps>,
{},
Record<string, any>
>;
textField?: SlotComponentProps<
typeof TextField,
{},
{ position?: RangePosition } & Record<string, any>
>;
};
}

/**
* Props the multi input field can receive when used inside a picker.
* Only contains what the MUI components are passing to the field,
Expand Down Expand Up @@ -60,5 +38,25 @@ export interface BaseMultiInputFieldProps<
>,
'format' | 'value' | 'onChange' | 'timezone'
>,
BaseForwardedMultiInputFieldProps,
MultiInputFieldRefs {}
RangeFieldSeparatorProps,
MultiInputFieldRefs {
className: string | undefined;
sx: SxProps<any> | undefined;
slots?: {
root?: React.ElementType;
separator?: React.ElementType;
textField?: React.ElementType;
};
slotProps?: {
root?: SlotComponentProps<
React.ElementType<MultiInputFieldSlotRootProps>,
{},
Record<string, any>
>;
textField?: SlotComponentProps<
typeof TextField,
{},
{ position?: RangePosition } & Record<string, any>
>;
};
}

0 comments on commit 66706fe

Please sign in to comment.