v3.0.0
What's Changed
Perform multiple refactoring changes to remove technical debt: Rename prop-types and logic of select-formelements to make them more similar, simplify implementation of radiogroup to follow the checkboxgroup logic, remove eslint allow any
and fix types, remove id: string | number
type.
Breaking changes
When upgrading, use the docstring in the library's proptypes for the affected components to simplify the process.
Interfaces
- MdAutocompleteOptionProps is now MdAutocompleteOption
- MdCheckboxGroupOptionProps is now MdCheckboxGroupOption
- MdMultiSelectOptionProps is now MdMultiSelectOption
- MdSelectOptionProps is now MdSelectOption
Prop renames
- Rename MdAutocomplete
amountOfElementsShown
tonumberOfElementsShown
- Rename MdMultiAutocomplete
amountOfElementsShown
tonumberOfElementsShown
, and itsselected
toselectedOptions
- Rename MdMultiSelect
onChange
toonSelectOption
, and itsselected
toselectedOptions
- Rename MdSelect
onChange
toonSelectOption
- Rename MdRadioGroup
selectedOption
tovalue
- Rename MdRadioGroupOption
id
tovalue
Type changes
- MdCheckbox now allows only string or undefined
label
- MdCheckboxGroupOption now allows only string or undefined
value
andtext
- MdMultiSelectOption now allows only string
value
andtext
- MdMultiSelect now uses MdMultiSelectOption for its
onSelectOption
- MdRadioGroupOption now allows only string or undefined
value
andtext
- MdModal
children
must now be a React.ReactNode
Commits
- Add role="tooltip" to MdTooltip to avoid a11y errors with its aria-label by @aurorascharff in #146
- Delete MdDatagrid component by @aurorascharff in #145
- Add notes on "Releases" and "Breaking changes" to README.md by @aurorascharff in #148
- Update README.md with additional notes on releases by @aurorascharff in #149
- Update README.md on how to test changes locally in own project by @aurorascharff in #150
- Fix: wrong npm pack command in README.md under testing in local project by @aurorascharff in #151
- Clean up components' props and implementations to remove technical debt by @aurorascharff in #138
Full Changelog: v2.3.0...v3.0.0