import { WidgetBaseSlots } from './slots/WidgetBaseEnum'; import { WIDGET_BASE_KEY_COMPONENT } from './constants'; import { M4LOverridesStyleRules, MenuAction, MenuActions } from '@m4l/components'; import { SxProps, Theme } from '@mui/material/styles'; import { ReactNode, ComponentProps } from 'react'; import { Sizes } from '@m4l/styles'; /** * Props for the WidgetBase component. */ export interface WidgetBaseProps { title: string; children: ReactNode; size?: Extract; tooltip?: string; isAlarm?: boolean; menuActions?: MenuAction[]; /** Observe the native menu lifecycle; consumers should handle repeated notifications. */ onMenuActionsOpen?: ComponentProps['onOpen']; sx?: SxProps; } export type WidgetBaseOwnerState = { size?: WidgetBaseProps['size']; }; export type WidgetBaseSlotsType = keyof typeof WidgetBaseSlots; export type WidgetBaseStyles = M4LOverridesStyleRules; //# sourceMappingURL=types.d.ts.map