What's changed?
2.0.0
Released - 14 Dec, 2024
New Components 🔥
New Features 🎉
- Add
allLabelsAboveFields
prop in ConfigProvider component to setshowLabelAboveFormField
to true for all components. - Added
required
prop for all components to indicate in the formLabel that the field needs to be filled with the relevant value before submission. - Add
fontSize
,fontFamily
,fontColor
,fontBackgroundColor
options in the toolbar for RHFRichTextEditor. - Introduce
form-helpers
module which exposes internal utility functions to the developers.
Enhancements ✨
- Added a new form example containing all components with validation handled through the
registerOptions
prop. - Added a checkbox to enable or disable all form fields in the forms that include every component of this package.
- Version-Specific Documentation.
Fixes 🛠️
- Code optimization
- Upgrade MUI Versions
- Checkbox default label now renders with label prop
- Add
disabled
prop inRHFCheckboxGroup
&RHFRadioGroup
- Improve implementation for
RHFNativeSelect
&RHFColorPicker
. Check Migration Guide for more details. - Update v1 docs
Compatibility with MUI v6 and above
Introduced a flag isAboveMuiV5
in the code to handle the deprecation of the following props when using this package with MUI v6 or above. The dependencies have also been upgraded to care care of this.
Mui Component | Deprecated Prop in v5 | Use Instead | Components Affected |
---|---|---|---|
Autocomplete | ChipProps | slotProps.chip | RHFAutocomplete, RHFMultiAutocomplete, RHFCountrySelect |
TextField | inputProps | slotProps.htmlInput | RHFAutocomplete, RHFMultiAutocomplete, RHFCountrySelect |
TextField | InputProps | slotProps.input | RHFPasswordInput, RHFTagsInput, RHFPhoneInput |
Upgrade Dependencies
Package Name | Previous Version | Current Version |
---|---|---|
Docusaurus | 3.5.2 | 3.6.3 |
@mui/material, @mui/icons-material | 5.16.7 | 6.1.10 |
@mui/material-nextjs | 5.16.6 | 6.1.9 |
@mui/x-tree-view | 6.17.0 | 7.23.0 |
@mui/x-date pickers | 7.23.0 | 7.23.2 |
react-color-palette | 7.2.2 | 7.3.0 |
1.0.3
Released - 1 Nov, 2024
- Fix
defaultFormHelperTextSx
bug inConfigProvider
. - Handle snake-case convention to render default form label text.
- Added Examples and Playground links on appbar in docs website.
- Added downloads per month metric in README.
- Use tsc-alias for alias imports.
- Lint package using my own eslint config.
- Update search keywords in
package.json
. - Change next version from
14.2.3
to14.2.16
. - Remove badges from demo website homepage due to size inconsistency.