From dd4c199a4d892469df2834282ac775285d8cfe7e Mon Sep 17 00:00:00 2001 From: Albert Yu Date: Mon, 17 Jul 2023 12:46:13 +0800 Subject: [PATCH] [Menu] Add MuiMenuList to createTheme components key (#37956) --- packages/mui-material/src/styles/components.d.ts | 5 +++++ packages/mui-material/src/styles/overrides.d.ts | 2 ++ 2 files changed, 7 insertions(+) diff --git a/packages/mui-material/src/styles/components.d.ts b/packages/mui-material/src/styles/components.d.ts index 4eff6d91182e9e..55829a08392385 100644 --- a/packages/mui-material/src/styles/components.d.ts +++ b/packages/mui-material/src/styles/components.d.ts @@ -338,6 +338,11 @@ export interface Components { styleOverrides?: ComponentsOverrides['MuiMenuItem']; variants?: ComponentsVariants['MuiMenuItem']; }; + MuiMenuList?: { + defaultProps?: ComponentsProps['MuiMenuList']; + styleOverrides?: ComponentsOverrides['MuiMenuList']; + variants?: ComponentsVariants['MuiMenuList']; + }; MuiMobileStepper?: { defaultProps?: ComponentsProps['MuiMobileStepper']; styleOverrides?: ComponentsOverrides['MuiMobileStepper']; diff --git a/packages/mui-material/src/styles/overrides.d.ts b/packages/mui-material/src/styles/overrides.d.ts index 927587a167786c..2715578abaf590 100644 --- a/packages/mui-material/src/styles/overrides.d.ts +++ b/packages/mui-material/src/styles/overrides.d.ts @@ -66,6 +66,7 @@ import { ListItemTextClassKey } from '../ListItemText'; import { ListSubheaderClassKey } from '../ListSubheader'; import { MenuClassKey } from '../Menu'; import { MenuItemClassKey } from '../MenuItem'; +import { MenuListClassKey } from '../MenuList'; import { MobileStepperClassKey } from '../MobileStepper'; import { ModalClassKey } from '../Modal'; import { NativeSelectClassKey } from '../NativeSelect'; @@ -204,6 +205,7 @@ export interface ComponentNameToClassKey { MuiListSubheader: ListSubheaderClassKey; MuiMenu: MenuClassKey; MuiMenuItem: MenuItemClassKey; + MuiMenuList: MenuListClassKey; MuiMobileStepper: MobileStepperClassKey; MuiModal: ModalClassKey; MuiNativeSelect: NativeSelectClassKey;