May 19, 2023 Release
In this release, we are moving TagGroup and Column Resizing to GA. We have also been making many improvements and bug fixes to the new React Aria Components we announced last release. We have also added the much asked for Search to our docs. We hope this will aid in discoverability for our components and hooks.
As always, thanks to all of our contributors for helping to make this release possible! Special shoutout to @auskast for an extensive PR to help us improve our React Aria Components.
New Components/Features#
- TagGroup
- Column Resizing
TagGroup API update#
This last release of TagGroup required a breaking change to our pre-release in order to support future features more easily. Please see the details below on breaking changes.
- The
onRemovecallback prop now accepts aSet<Key>instead of a single Key. ** Add link to docs - Removed
labelPropsof a Tag from needing to be a separate element, and just uses the tag itself in the aria-labelledby of the remove button. - Removed Spectrum specific props from
TagGrouphooks in React Aria. - Users no longer need to pass
onRemovefromuseTagGrouptouseTag. - Removed
allowsRemovalprop and instead infer this fromonRemovebeing present or not. - Removes TagKeyboardDelegate and adds an orientation option to ListKeyboardDelegate instead, along with support for shouldFocusWrap in arrow left/right.
- Removed
@react-stately/tagpackage as functionality is covered by the@react-stately/listpackage.
Enhancements#
- Add weekdayStyle prop to CalendarGrid - @devongovett - PR
- Custom drag preview support in TableView/ListView - @reidbarber - PR
- TagGroup Empty state - @reidbarber - PR
- Dom attributes for
Itemin ActionGroup's collapsed menu - @cgood92 - PR
Fixes#
- Fix refs on
Linkand ability to prevent link navigation - @snowystinger - PR - Update
ColorFieldandNumberFieldvalidation to prevent invalid characters - @snowystinger - PR - Fix
Tableselect-all error when triggered twice with keyboard - @tianenpang - PR - Merge UNSAFE_className in Date and Tag components to fix order - @akash1412 - PR
- Improve
useRestoreFocuslogic to fix focus issues withComboBoxtrigger - @boutahlilsoufiane - PR - Fix
ComboBoxborder and background colors in Windows High Contrast Mode - @jcpengy10 - PR - Improve
TableViewDnD style specificity - @reidbarber - PR
Docs#
- Fix broken links - @ktabors - PR
- Update broken Spectrum link in
Dialog- @matthewdeutsch - PR - Update Next.js config in SSR docs - @reidbarber - PR
Under construction#
Fixes to pre-released components are listed below. Please feel free to try them out, and report any issues you encounter.
-
React Aria Components (Alpha)
-
Add
classNameprop toTableHeader- @akash1412 - PR -
Fix(#4369): Fix children renderProps for react-aria-components - @auskast - PR
-
RAC: Allow form attributes in Button - @reidbarber - PR
-
Fix react 18 animation flicker - @snowystinger - PR
-
RAC Select: propagate placeholder to Button label - @reidbarber - PR
-
Fix RAC collections in React canary versions - @devongovett - PR
-
Remove extraneous children set on Selects button context - @LFDanLu - PR
-
Fix Infinite rendering in RAC ComboBox/Select with renderProps - @LFDanLu - PR
-
Add support for refs to collection components - @devongovett - PR
-
Ensure collections update when descendants re-render - @devongovett - PR
-
Fix RAC collections in React canary versions - @devongovett - PR
Released packages#