import { FormControlLabelProps, FormControlTypeMap, MenuItemProps, } from '@material-ui/core' import { Except, Merge, SetRequired } from 'type-fest' export type IfAny = 0 extends 1 & T ? Y : N export type IsAny = IfAny export type InputType = | 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' // export type SelectItem = { // readonly value: T // readonly label: string // } export type ValueRequired< T extends { value?: any; onChange?: any; label?: any }, > = SetRequired export type CheckedRequired< T extends { checked?: any; onChange?: any; label?: any }, > = SetRequired export type SFormControlProps = Except export type SFormControlLabelProps = Merge< Pick< FormControlLabelProps, // | 'checked' | 'classes' // | 'control' | 'disabled' | 'inputRef' | 'label' | 'labelPlacement' | 'name' // | 'onChange' | 'sx' | 'value' >, { value?: T } > export type SMenuItemProps = Merge