Skip to content

Releases: 5rabbits/portrait

v0.9.0

18 Mar 14:32
Compare
Choose a tag to compare
  • Adds disabled prop to LayoutLink.

v0.8.2

25 Jun 14:45
Compare
Choose a tag to compare
  • #27 Fixes Select search with special characters.

v0.8.1

25 Jun 14:44
Compare
Choose a tag to compare

No changes since v0.8.1-beta

v0.8.0

11 Nov 00:41
Compare
Choose a tag to compare

Breaking changes

Selectable now exposes helper methods to get props for options, search input and overflow container. This allows us to add common use cases features without modifying any markup. Of course all the default behaviour can be completely replaced if you need more control.

These are the changes:

  • Added blurOnSelect (false by default). Causes the control to lose focus after selecting an option.
  • Added optionHeight (disabled by default). Defines a fixed option height to enable scroll virtualization.
  • The renderer now gets new properties:
    • getInputProps(otherProps = {}): Default props for the search input. Automatically handles filtering and keyboard navigation.
    • getOptionProps(option, otherProps = {}): Default props for options. Automatically handles selection by click, focusing on mouse enter and some functional styling (mainly for virtual scroll).
    • getContainerProps(otherProps = {}): Default props for the options container. If optionHeight is defined and the container has a fixed height (height or max-height), automatically enables and handles virtual scroll to render a massive amount of options with good performance.
    • viewportOptions: Array of options that are in the current container viewport. Contains all options if virtual scroll is disabled.
  • Properties removed from renderer:
    • overflowRef (included in getContainerProps).

v0.7.0

25 Oct 18:20
Compare
Choose a tag to compare

Changes

  • Adds support for React 16.
  • Updates package metadata.

v0.6.2

14 Sep 19:32
Compare
Choose a tag to compare

Changes

  • Uses a more visually friendly color transformation to highlight the focused option in the Select component.

V0.6.1

14 Sep 19:32
Compare
Choose a tag to compare

Changes

  • Add callback to add new option on select.

v0.6.0

05 Sep 16:53
Compare
Choose a tag to compare

Changes

  • Adds a Select component. #20
  • Adds controllable HoC. #21
  • Adds Selectable component. #21

v0.5.1

23 Aug 13:33
Compare
Choose a tag to compare

Changes

  • Fix warning on SearchInput
  • Update react-route

v0.5.0

10 Aug 13:54
Compare
Choose a tag to compare

Changes

  • Add controlled pattern to SearchInput