Skip to content

Commit

Permalink
[date picker] add pass by of base theme to the components theme augme… (
Browse files Browse the repository at this point in the history
  • Loading branch information
toruticas authored Jul 5, 2022
1 parent edb2135 commit d6adde4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/x-date-pickers/src/themeAugmentation/components.d.ts
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
import { ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@mui/material/styles';

export interface PickerComponents {
export interface PickerComponents<Theme = unknown> {
MuiCalendarPicker?: {
defaultProps?: ComponentsProps['MuiCalendarPicker'];
styleOverrides?: ComponentsOverrides['MuiCalendarPicker'];
styleOverrides?: ComponentsOverrides<Theme>['MuiCalendarPicker'];
variants?: ComponentsVariants['MuiCalendarPicker'];
};
MuiCalendarPickerSkeleton?: {
defaultProps?: ComponentsProps['MuiCalendarPickerSkeleton'];
styleOverrides?: ComponentsOverrides['MuiCalendarPickerSkeleton'];
styleOverrides?: ComponentsOverrides<Theme>['MuiCalendarPickerSkeleton'];
variants?: ComponentsVariants['MuiCalendarPickerSkeleton'];
};
MuiClockPicker?: {
defaultProps?: ComponentsProps['MuiClockPicker'];
styleOverrides?: ComponentsOverrides['MuiClockPicker'];
styleOverrides?: ComponentsOverrides<Theme>['MuiClockPicker'];
variants?: ComponentsVariants['MuiClockPicker'];
};
MuiDatePicker?: {
defaultProps?: ComponentsProps['MuiDatePicker'];
styleOverrides?: ComponentsOverrides['MuiDatePicker'];
styleOverrides?: ComponentsOverrides<Theme>['MuiDatePicker'];
variants?: ComponentsVariants['MuiDatePicker'];
};
MuiDateTimePicker?: {
defaultProps?: ComponentsProps['MuiDateTimePicker'];
styleOverrides?: ComponentsOverrides['MuiDateTimePicker'];
styleOverrides?: ComponentsOverrides<Theme>['MuiDateTimePicker'];
variants?: ComponentsVariants['MuiDateTimePicker'];
};
MuiMonthPicker?: {
defaultProps?: ComponentsProps['MuiMonthPicker'];
styleOverrides?: ComponentsOverrides['MuiMonthPicker'];
styleOverrides?: ComponentsOverrides<Theme>['MuiMonthPicker'];
variants?: ComponentsVariants['MuiMonthPicker'];
};
MuiPickersDay?: {
defaultProps?: ComponentsProps['MuiPickersDay'];
styleOverrides?: ComponentsOverrides['MuiPickersDay'];
styleOverrides?: ComponentsOverrides<Theme>['MuiPickersDay'];
variants?: ComponentsVariants['MuiPickersDay'];
};
MuiYearPicker?: {
defaultProps?: ComponentsProps['MuiYearPicker'];
styleOverrides?: ComponentsOverrides['MuiYearPicker'];
styleOverrides?: ComponentsOverrides<Theme>['MuiYearPicker'];
variants?: ComponentsVariants['MuiYearPicker'];
};
MuiPickerStaticWrapper?: {
defaultProps?: ComponentsProps['MuiPickerStaticWrapper'];
styleOverrides?: ComponentsOverrides['MuiPickerStaticWrapper'];
styleOverrides?: ComponentsOverrides<Theme>['MuiPickerStaticWrapper'];
variants?: ComponentsVariants['MuiPickerStaticWrapper'];
};
}

declare module '@mui/material/styles' {
interface Components extends PickerComponents {}
interface Components<Theme = unknown> extends PickerComponents<Theme> {}
}

0 comments on commit d6adde4

Please sign in to comment.