November 20, 2024 Release
We’re excited to announce that our Accordion and Disclosure components are now generally available! This includes Disclosure and DisclosureGroup in React Aria, as well as Disclosure and Accordion in React Spectrum.
We are also excited to introduce the ToggleButtonGroup component, as well as Section-level selection groups in Menu.
Additionally, we are excited to announce that React Spectrum and React Aria are now Typescript Strict compliant.
As always, thanks to everyone in our community for your feedback and contributions! ❤️
Typescript Strict notice
React Spectrum and React Aria are now Typescript Strict compliant. This has been an extremely large, multi-year effort. We thank you for your patience and for you understanding when it comes to how this affects your applications. The benefit is that our code will now run more predictably and places we were making assumptions about null vs undefined are now spelled out.
Accordion API updates
With the GA release of our Accordion component, we have moved away from the Collection API in favor of wrapping Disclosure components, which can be used standalone. This includes a few breaking changes.
Itemhas been replaced with theDisclosurecomponent, which consists of two children:DisclosureTitleandDisclosurePaneltitleonItemis now a child ofDisclosureTitle- Children of
Itemis now children ofDisclosurePanel keyonItemis nowidonDisclosuredisabledKeyshas been removed in favor of addingisDisabledon individualDisclosurecomponentsallowsMultipleExpandedcan be added to allow multipleDisclosurecomponents to be expanded at once (previously default behavior)
Enhancements#
- Accordion
- Support
hidden="until-found"inDisclosureGroup- @reidbarber - PR
- Support
- Dialog
- Add
<Button slot="close">support - @devongovett - PR
- Add
- Menu
- Add Section-level selection groups in
Menu- @devongovett - PR - Support nesting
MenuinsideDialogpopovers with additional interactive content - @devongovett - PR
- Add Section-level selection groups in
- ToggleButtonGroup
- Add
ToggleButtonGroupcomponent to RAC - @devongovett - PR
- Add
- Misc
- Support Devanagari & Bengali decimal numbering systems - @Rocss - PR
- Update
NumberParserto supportroundingIncrement- @snowystinger - PR - Add
expandedstate to RAC Tailwind plugin - @neefrehman - PR - Add
pendingstate to RAC Tailwind plugin - @reidbarber - PR
Fixes#
- Accordion
- Fix
Accordionborders - @reidbarber - PR - Add
box-sizing: content-boxtoAccordionchevron - @reidbarber - PR
- Fix
- Button
- Checkbox
- Fix
Checkboxvalidation reset not working - @nwidynski - PR - Fix
TogglePropsvalidate function type - @joshuajaco - PR - Add
Checkboxdefault slot toGridListandTable- @snowystinger - PR
- Fix
- Date and time
- Fix
DatePickerwithdefaultValueto persist time zone - @boutahlilsoufiane - PR - Fix BC era timestamps in
fromAbsolute- @KimPeeters - PR
- Fix
- Dialog
- Add
data-racattribute toDialog- amitdahan - PR
- Add
- Select
- Remove iOS
HiddenSelectworkaround - @snowystinger - PR - Set default value for type parameter in
SelectProps- @kp047i - PR
- Remove iOS
- Slider
- Tooltip
- Misc
- Support React 19 prerelease - @snowystinger - PR
- Add
"use strict";to style macro CommonJS build output - @reidbarber - PR - Add prefix to style macro class names - @reidbarber - PR
- Fix Typescript Strict Mode remaining issues - @snowystinger and @devongovett - PR, PR
- Add optional property types - @alecmev - PR
Docs#
- Add ARIA APG grid link to
useTagGroupdocs - @mehm8128 - PR - Update CodeSandbox templates in
useDatePickeranduseDateRangePicker- @yihuiliao - PR - Fix
DisclosureGroupanatomy diagram SVG clipping on mobile - @yihuiliao - PR - Update contribution guide - @yihuiliao - PR
- Update
AccordionandDisclosureGroupdocs - @yihuiliao - PR - Add Tailwind starter for
DisclosureandDisclosureGroup- @reidbarber - PR - Update
Accordion,Disclosure,DisclosureGroupdocs - @yihuiliao - PR - Fix typo on
ProgressBardocs - @mehm8128 - PR - Add
Disclosurehook docs - @reidbarber - PR - Add Q&A section to contribution guide - @unional - PR
- Fix Tailwind starter
Submenu- @reidbarber - PR - Add
Accordionto example apps - @yihuiliao - PR - Fix disabled
Tagstyles in RAC Tailwind starter - @steveoh - PR
Under Construction#
TODO
Released packages#
TODO