All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
5.1.6 (2023-12-11)
5.1.5 (2023-05-09)
- @react-md/autocomplete: Prevent event default when pressing enter with open
AutoComplete
(#1439) (c505642)
5.1.4 (2022-06-16)
Note: Version bump only for package @react-md/autocomplete
5.1.3 (2022-05-07)
- fix typos throughout codebase (725d1a2)
- @react-md/autocomplete: fix typos in utils tests (c0333cc)
- typos: fix additional typos throughout repo (ef20132)
5.1.2 (2022-04-02)
Note: Version bump only for package @react-md/autocomplete
5.1.1 (2022-04-01)
Note: Version bump only for package @react-md/autocomplete
5.1.0 (2022-03-18)
- run lint-scripts --fix for consistent-type-imports (42d839d)
5.0.0 (2022-01-31)
Note: Version bump only for package @react-md/autocomplete
4.0.3 (2021-12-31)
4.0.2 (2021-11-30)
Note: Version bump only for package @react-md/autocomplete
4.0.1 (2021-11-27)
- Updated imports to use
import type
when possible (ba96bb6)
4.0.0 (2021-11-24)
- Update to use new JSX Transform and latest
eslint
(8111cd3) - @react-md/transition: No longer use findDOMNode for transitions (cb952da)
- Minimum React version is now 16.14 instead of 16.8
- react-md: There will no longer be run-time prop validation with
the
prop-types
package.
3.1.0 (2021-09-10)
- typescript: updated all array types to be readonly (8f71bcb)
- ran
yarn format
to include new files (48d3d7f)
3.0.1 (2021-08-15)
3.0.0 (2021-08-13)
Note: Version bump only for package @react-md/autocomplete
2.9.1 (2021-07-27)
- install: slighly reduce install size by excluding tests in publish (9d01a44)
2.9.0 (2021-07-18)
Note: Version bump only for package @react-md/autocomplete
2.8.5 (2021-07-03)
Note: Version bump only for package @react-md/autocomplete
2.8.4 (2021-06-10)
- ran
prettier
after upgrading to v2.3.0 (3ce236a)
2.8.3 (2021-05-18)
- react-md.dev: updated tsdoc to work with
typedoc
(cf54c35)
2.8.2 (2021-04-23)
Note: Version bump only for package @react-md/autocomplete
2.8.1 (2021-04-23)
Note: Version bump only for package @react-md/autocomplete
2.8.0 (2021-04-22)
- tsconfig: separate tsconfig by package instead of a single root (b278230)
2.7.1 (2021-03-23)
- ts: stopped using FC type (c5daa47)
2.7.0 (2021-02-28)
- tsdoc: fixed some tsdoc annotations and styling (0449b86)
- tsdoc: updated @since annotations (c62027e)
- updated test coverage to not include conditional component PropTypes (24e5df1)
2.6.0 (2021-02-13)
Note: Version bump only for package @react-md/autocomplete
2.5.5 (2021-01-30)
Note: Version bump only for package @react-md/autocomplete
2.5.4 (2021-01-27)
Note: Version bump only for package @react-md/autocomplete
2.5.3 (2021-01-12)
Note: Version bump only for package @react-md/autocomplete
2.5.2 (2021-01-12)
Note: Version bump only for package @react-md/autocomplete
2.5.1 (2020-12-16)
Note: Version bump only for package @react-md/autocomplete
2.5.0 (2020-12-15)
Note: Version bump only for package @react-md/autocomplete
2.4.3 (2020-11-14)
Note: Version bump only for package @react-md/autocomplete
2.4.2 (2020-10-23)
Note: Version bump only for package
2.4.1 (2020-10-17)
Note: Version bump only for package @react-md/autocomplete
2.4.0 (2020-10-17)
- @react-md/theme: Better Contrast Colors by Default and dev-utils refactor (#955) (519b128)
2.3.1 (2020-09-15)
Note: Version bump only for package @react-md/autocomplete
2.3.0 (2020-09-10)
Note: Version bump only for package @react-md/autocomplete
2.2.2 (2020-09-02)
Note: Version bump only for package @react-md/autocomplete
2.2.1 (2020-09-02)
Note: Version bump only for package @react-md/autocomplete
2.2.0 (2020-08-11)
Note: Version bump only for package @react-md/autocomplete
2.1.2 (2020-08-01)
Note: Version bump only for package @react-md/autocomplete
2.1.1 (2020-07-21)
Note: Version bump only for package @react-md/autocomplete
2.1.0 (2020-07-12)
2.0.3 (2020-07-07)
Note: Version bump only for package @react-md/autocomplete
2.0.2 (2020-06-30)
- LICENSE: Removed the time range from license since it was incorrect (50c9021)
- Added
sideEffects
field topackage.json
(31820b9) sideEffects
formatting (78a7b6b)
No changes.
The v2 release completely re-write the Autocomplete
component and renamed it
to AutoComplete
. There is a new API for dealing with data as well as a lot of
accessibility fixes.
- correctly forwards the ref to the
<input />
element - inherits all the new text field styles
- inherits all the new
Option
/ListItem
styles - lots of accessibility fixes since it now respects to the combobox role
- opinionated better focus styles to help show keyboard focus vs "real" focus
- the
"inline"
autocomplete is no longer a clickable<span>
and instead is done withinput.setSelectionRange
- supports both
"inline"
and"menu"
autocomplete behavior instead of being separate - supports limited highlighting of text within the search results
- defaults to showing the list of suggestions once focused instead of after typing a letter
- added additional filter options to the filter function
- added a flag to be able to filter the data when there is no
value
for custom display items - added
getResultId
,getResultLabel
andgetResultValue
to customizing the displayed matches a bit nicer (this is also have thedata
is filtered)
Everything is honestly a breaking change, but here's a few that are important to mention:
- no longer has any styles of its own
- only supports "smart" menus (automatically render itself within the viewport)
- the
value
is no longer controllable (will be added in a later release) - no longer supports adding
aria-setsize
andaria-posinset
for each option automatically when paginating results (will be added in a later release) - no longer supports rendering items that are not searchable and focusable (will be added in a later release)
- the visibility of the autocomplete list is no longer controllable
- renamed
dataLabel
tolabelKey
- renamed
dataValue
tovalueKey
- renamed the
deleteKeys
toomitKeys
- all the positioning options were renamed
- removed
$md-inline-autocomplete
- removed
$md-autocomplete-suggestion-top
- removed
$md-autocomplete-suggestion-mobile-floating-top
- removed
$md-autocomplete-suggestion-mobile-block-top
- removed
$md-autocomplete-suggestion-desktop-floating-top
- removed
$md-autocomplete-suggestion-desktop-block-top
- removed
@mixin react-md-autocompletes
- removed
@mixin react-md-theme-autocompletes
- removed
@mixin react-md-autocompletes-mobile
- removed
@mixin react-md-autocompletes-desktop
- removed
@mixin react-md-autocompletes-media