Skip to content

Releases: miljodir/md-components

v3.11.0

06 Dec 11:16
42d312e
Compare
Choose a tag to compare

Highlighted changes

  • Storybook is now live on v8

What's Changed

Full Changelog: v3.9.0...v3.11.0

v3.9.0

15 Oct 08:23
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.1.0...v3.9.0

v3.1.0

03 Sep 10:35
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.0...v3.1.0

v3.0.0

02 Aug 12:59
Compare
Choose a tag to compare

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

v2.3.0

02 Aug 08:14
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.1.0...v2.3.0

v2.0.0

02 Aug 07:12
077b70f
Compare
Choose a tag to compare

What's Changed

This version extends md-components' props with appropriate standard HTML attributes. Previously, you could not add i.e. aria-attributes to components. The change required renaming certain properties because the current property is an HTML element attribute. In addition, some id-type-cleanup has been done.

Breaking Changes

When upgrading, use the docstring in the library's proptypes for the affected components to simplify the process.

  • MdAccordionItem now allows only string or undefined id.
  • MdCheckboxGroup now allows only string or undefined id.
  • MdRadioGroup now allows only string or undefined id.
  • MdFilterChip now extends HTMLButtonElement: its id is now just string or undefined.
  • MdInputChip now extends HTMLButtonElement: its id is now just string or undefined.
  • MdAutocomplete now extends HTMLInputElement: its onChange has been renamed to onSelectOption, and its size has been renamed to mode. Its id is now just string or undefined.
  • MdCheckbox now extends HTMLInputElement: its id is now just string or undefined.
  • MdInput now extends HTMLInputElement: its sizehas been replaced with mode.
  • MdMultiSelect's size has been renamed to mode. Its id is now just string or undefined.
  • MdSelect's size has been renamed to mode. Its id is now just string or undefined.
  • MdRadioButton now extends HTMLInputElement: its id is now just string or undefined.
  • MdModal id prop has been removed.
  • MdVerticalTile now extends HTMLAnchorElement and HTMLButtonElement: itssizehas been replaced with mode.
  • MdTooltip now extends HTMLDivElement: its content has been renamed to tooltipContent.

Commits

Full Changelog: https://github.com/miljodir/md-components/commits/v2.0.0

v1.6.2

02 Aug 07:43
29f8b39
Compare
Choose a tag to compare

What's Changed

Read more