import { WidgetDigitalInputSlots } from './slots/WidgetDigitalInputEnum'; import { WIDGET_DIGITAL_INPUT_KEY_COMPONENT } from './constants'; import { M4LOverridesStyleRules, MenuAction, MenuActions } from '@m4l/components'; import { SxProps, Theme } from '@mui/material/styles'; import { Sizes, ChipColorOptions } from '@m4l/styles'; import { ComponentProps, ReactElement } from 'react'; /** * Image resource accepted by the digital input card state. */ export type WidgetDigitalInputImageResource = string | ReactElement; /** * Props for the WidgetDigitalInput component. */ export interface WidgetDigitalInputProps { title: string; isOpen: boolean; titleOpen: string; titleClosed: string; imageUrlOpen: WidgetDigitalInputImageResource; imageUrlClosed: WidgetDigitalInputImageResource; secondValue?: string; chipColorOpen?: Extract; isAlarm?: boolean; size?: Extract; tooltip?: string; menuActions?: MenuAction[]; /** Observe the native menu lifecycle; consumers should handle repeated notifications. */ onMenuActionsOpen?: ComponentProps['onOpen']; sx?: SxProps; } /** * Props for the useGetValues hook. */ export interface useGetValuesProps { isOpen: boolean; titleOpen: string; titleClosed: string; chipColorOpen?: ChipColorOptions; imageUrlOpen: WidgetDigitalInputImageResource; imageUrlClosed: WidgetDigitalInputImageResource; size?: Extract; } export type WidgetDigitalInputOwnerState = { size?: WidgetDigitalInputProps['size']; }; export type WidgetDigitalInputSlotsType = keyof typeof WidgetDigitalInputSlots; export type WidgetDigitalInputStyles = M4LOverridesStyleRules; //# sourceMappingURL=types.d.ts.map