Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

type MuiInputBaseProps = import('@mui/material').InputBaseProps;
type MuiInputBasePropsBlurEventHandler = Exclude<
MuiInputBaseProps['onBlur'],
undefined
>;
type MuiInputBasePropsFocusEventHandler = Exclude<
MuiInputBaseProps['onFocus'],
undefined
>;
type UncontrolledInputComponentMountEventHandler = () => void;
type UncontrolledInputComponentUnmountEventHandler = () => void;
type UncontrolledInputOptionalProps = {
onBlur?: ExtendableEventHandler<MuiInputBasePropsBlurEventHandler>;
onChange?: ExtendableEventHandler<React.ChangeEventHandler<HTMLInputElement>>;
onFocus?: ExtendableEventHandler<MuiInputBasePropsFocusEventHandler>;
onMount?: UncontrolledInputComponentMountEventHandler;
onUnmount?: UncontrolledInputComponentUnmountEventHandler;
};
type UncontrolledInputProps<InputElement extends import('react').ReactElement> =
UncontrolledInputOptionalProps & {
input: InputElement;
};
type UncontrolledInputForwardedRefContent<
ValueType extends keyof MapToInputType,
> = {
get: () => MapToInputType[ValueType];
set: (value: MapToInputType[ValueType]) => void;
};