Skip to content

v3.0.0

Compare
Choose a tag to compare
@aurorascharff aurorascharff released this 02 Aug 12:59
· 92 commits to main since this release

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 to numberOfElementsShown
  • Rename MdMultiAutocomplete amountOfElementsShown to numberOfElementsShown, and its selected to selectedOptions
  • Rename MdMultiSelect onChange to onSelectOption, and its selected to selectedOptions
  • Rename MdSelect onChange to onSelectOption
  • Rename MdRadioGroup selectedOption to value
  • Rename MdRadioGroupOption id to value

Type changes

  • MdCheckbox now allows only string or undefined label
  • MdCheckboxGroupOption now allows only string or undefined value and text
  • MdMultiSelectOption now allows only string value and text
  • MdMultiSelect now uses MdMultiSelectOption for its onSelectOption
  • MdRadioGroupOption now allows only string or undefined value and text
  • MdModal children must now be a React.ReactNode

Commits

Full Changelog: v2.3.0...v3.0.0