Releases: dohomi/react-hook-form-mui
MUI pickers version 6 and some more improvements
Breaking change due to new version of Pickers.
Upgrade to https://next.mui.com/x/migration/migration-pickers-v5/
Steps to upgrade:
@mui/x-date-pickers
=> >=6
The component signature did not change
fixes #144
Add readonly prop to DatePicker and DateTimePicker
New prop is available to disable keyboard input:
<DatePickerElement name="date" textReadOnly/>
https://react-hook-form-material-ui.vercel.app/?path=/story/datepickerelement--disable-text-input
https://react-hook-form-material-ui.vercel.app/?path=/story/datetimepickerelement--disable-text-input
Add DateTimePicker
Add Datetimepicker
closes #90
Support small prop on MultiSelectElement
As the title say this is a minor bugfix for MultiSelectElement to support the small prop
New Component
New component ToggleButtonGroupElement
Check out the API:
https://react-hook-form-material-ui.vercel.app/?path=/story/togglebuttongroupelement--basic
Restructure Repo as Monorepo and re-export react-hook-form API
Due to context issues this release got refactored to a monorepo and the NextJS and Storybook examples are now using the compiled version of the library.
Beside that the API of react-hook-form
is getting re-exported so the context of useWatch
can be defined inside of NextJS.
https://github.com/dohomi/react-hook-form-mui/blob/master/apps/nextjs/src/pages/withSub.tsx#L5
Fixes #89
Minor fix for onChange TextFieldElement
New DateTimePickerElement
Add new component DateTimePickerElement
For the use of the new element checkout the docs:
https://react-hook-form-material-ui.vercel.app/?path=/story/datetimepickerelement--basic
Thanks to @Morriz for his contribution.
Add example for month picker
Small fix on Multi-Select to support grid layout
Add example how a UI of a month picker could look like
Multi-Select:
https://react-hook-form-material-ui.vercel.app/?path=/story/multiselectelement--month-picker
Select:
https://react-hook-form-material-ui.vercel.app/?path=/story/selectelement--month-picker
- Add example for month picker: c67b8ff
Add Slider Element
New Component SliderElement
For use check https://react-hook-form-material-ui.vercel.app/?path=/story/slider-element--basic