v2.0.0-beta.14
Pre-release2.0.0-beta.14 (2024-07-15)
Bug Fixes
temporary workaround for types build error (1874533)
removed tailwind utilities import from utilities.css (5b64e12)
The downstream user can then choose to import them or not.
removed usage of some tailwind colors that shouldn't have been used (708462f)
- added a recorder color since that doesn't need to be danger red
removed accidentally left in border (a78b9eb)
fixed useDivideAttrs not correctly dividing attributes (24c1f6e)
fix missing indicator class in input component (14da66d)
Features
improved suggestions (636dda1)
The suggestions logic is now de-coupled from the component and can be re-used if
needed.
-
The submit event also works more consistently.
-
The open/close logic in general has been cleaned up.
-
Added a
suggestionSelectorprop option for determining which option to
select (this can be used to implement fuzzy matching). -
You can now filter the handling of all events to the suggestions component.
BREAKING CHANGE: -isValid,isOpenandactiveSuggestionare no longer v-models.isValid
is only a prop, the others are now only events. -
The suggestions component should be controled instead from the
suggestions
object it exposes which contains all the variables and functions from the
composable. Before these were partially exposed at the root. -
The component is no longer generic for the model or input value only for the
suggestions list and it still has some edge cases to iron out. In general though
it works better than before. -
data-is-active-suggestionhas been removed, given aria-selected is the same
thing. -
The way the submit event works is now slightly different.
added export of the twMerge config used (twMergeExtend) (e6ff086)
BREAKING CHANGES
-
isValid,isOpenandactiveSuggestionare no longer v-models.isValid
is only a prop, the others are now only events.
-
The suggestions component should be controled instead from the
suggestions
object it exposes which contains all the variables and functions from the
composable. Before these were partially exposed at the root. -
The component is no longer generic for the model or input value only for the
suggestions list and it still has some edge cases to iron out. In general though
it works better than before. -
data-is-active-suggestionhas been removed, given aria-selected is the same
thing. -
The way the submit event works is now slightly different.