UNPKG

@nish1896/rhf-mui-components

Version:

A suite of 20+ production-ready react-hook-form components built with material-ui. Fully typed, tree-shakable, and optimized for enterprise-grade forms.

38 lines (37 loc) 2.62 kB
import { TextFieldProps } from "@mui/material/TextField"; import { ChipProps } from "@mui/material/Chip"; import { FormHelperTextProps } from "@mui/material/FormHelperText"; import { FormLabelProps } from "@mui/material/FormLabel"; import { FormControlLabelProps } from "@mui/material/FormControlLabel"; import { CheckboxProps } from "@mui/material/Checkbox"; import { RadioProps } from "@mui/material/Radio"; import { SelectProps } from "@mui/material/Select"; import { SxProps } from "@mui/system"; //#region src/types/mui.d.ts type FormLabelProps$1 = Omit<FormLabelProps, 'children' | 'required' | 'error'>; type FormControlLabelProps$1 = Omit<FormControlLabelProps, 'control' | 'label' | 'value' | 'defaultValue' | 'defaultChecked' | 'disabled' | 'key'>; type FormHelperTextProps$1 = Omit<FormHelperTextProps, 'children' | 'component' | 'error'>; type TextFieldProps$1 = Omit<TextFieldProps, 'name' | 'value' | 'defaultValue' | 'onChange' | 'error' | 'FormHelperTextProps'>; type CheckboxProps$1 = Omit<CheckboxProps, 'name' | 'value' | 'checked' | 'defaultChecked' | 'onChange'>; type RadioProps$1 = Omit<RadioProps, 'checked'>; type SelectProps$1 = Omit<SelectProps, 'name' | 'id' | 'labelId' | 'error' | 'onChange' | 'value' | 'defaultValue' | 'ref' | 'displayEmpty' | 'multiple'>; type AutoCompleteTextFieldProps = Omit<TextFieldProps, 'value' | 'onChange' | 'disabled' | 'label' | 'required' | 'error'>; type OmittedAutocompleteProps = 'freeSolo' | 'fullWidth' | 'renderInput' | 'renderOption' | 'options' | 'value' | 'defaultValue' | 'multiple' | 'onChange' | 'getOptionKey' | 'getOptionLabel' | 'isOptionEqualToValue' | 'autoHighlight' | 'disableCloseOnSelect'; type MuiChipProps = Omit<ChipProps, 'key' | 'label' | 'onDelete' | 'disabled'>; type MuiPickersAdapter = new (...args: any) => any; type RHFMuiConfigInput = { defaultFormLabelSx?: SxProps; defaultFormControlLabelSx?: SxProps; defaultFormHelperTextSx?: SxProps; dateAdapter?: MuiPickersAdapter; allLabelsAboveFields?: boolean; }; type RHFMuiConfig = { defaultFormLabelSx: SxProps; defaultFormControlLabelSx: SxProps; defaultFormHelperTextSx: SxProps; dateAdapter?: MuiPickersAdapter; allLabelsAboveFields?: boolean; }; //#endregion export { AutoCompleteTextFieldProps, CheckboxProps$1 as CheckboxProps, FormControlLabelProps$1 as FormControlLabelProps, FormHelperTextProps$1 as FormHelperTextProps, FormLabelProps$1 as FormLabelProps, MuiChipProps, MuiPickersAdapter, OmittedAutocompleteProps, RHFMuiConfig, RHFMuiConfigInput, RadioProps$1 as RadioProps, SelectProps$1 as SelectProps, TextFieldProps$1 as TextFieldProps };