|
| 1 | +{/* Copyright 2024 Adobe. All rights reserved. |
| 2 | +This file is licensed to you under the Apache License, Version 2.0 (the "License"); |
| 3 | +you may not use this file except in compliance with the License. You may obtain a copy |
| 4 | +of the License at http://www.apache.org/licenses/LICENSE-2.0 |
| 5 | +Unless required by applicable law or agreed to in writing, software distributed under |
| 6 | +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS |
| 7 | +OF ANY KIND, either express or implied. See the License for the specific language |
| 8 | +governing permissions and limitations under the License. */} |
| 9 | + |
| 10 | +import {BlogPostLayout, Hero} from '@react-spectrum/docs'; |
| 11 | +export default BlogPostLayout; |
| 12 | + |
| 13 | +--- |
| 14 | + |
| 15 | +description: We’re excited to announce that our Accordion and Disclosure components are now generally available! We've also introduced the ToggleButtonGroup component, as well as Section-level selection groups in Menu. Additionally, React Spectrum and React Aria are now Typescript Strict compliant. |
| 16 | + |
| 17 | +date: 2024-11-20 |
| 18 | +--- |
| 19 | + |
| 20 | +# November 20, 2024 Release |
| 21 | + |
| 22 | +We’re excited to announce that our Accordion and Disclosure components are now generally available! This includes [Disclosure](/react-aria/Disclosure.html) and [DisclosureGroup](/react-aria/DisclosureGroup.html) in React Aria, as well as [Disclosure](/react-spectrum/Disclosure.html) and [Accordion](/react-spectrum/Accordion.html) in React Spectrum. These components now also use the `hidden="until-found"` API currently supported in Chrome to enable searching collapsed content with ctrl + F. |
| 23 | + |
| 24 | +We are also introducing [ToggleButtonGroup](/react-aria/ToggleButtonGroup.html) in React Aria Components, which supports arrow key navigation with single and multiple selection modes. In addition, Menu now supports the ability to create [Section-level selection groups](/react-aria/Menu.html#section-level-selection), allowing you to mix actions, single, and multiple selection within the same menu. Menus can also be nested inside Dialog popovers to enable more complex use cases. |
| 25 | + |
| 26 | +Last but not least, React Spectrum and React Aria are now [Typescript Strict](https://www.typescriptlang.org/tsconfig/#strict) compliant! This has been an extremely large, multi-year effort and we thank you for your patience. This helps us reduce bugs, particularly related to `null` checks, resulting in more correct type definitions for our APIs. |
| 27 | + |
| 28 | +As always, thanks to everyone in our community for your feedback and contributions! ❤️ |
| 29 | + |
| 30 | +**Typescript Strict notice** |
| 31 | + |
| 32 | +React Spectrum and React Aria are now [Typescript Strict](https://www.typescriptlang.org/tsconfig/#strict) compliant! |
| 33 | + |
| 34 | +**Accordion changes** |
| 35 | + |
| 36 | +With the GA release of Accordion and Disclosure, take note of the following changes: |
| 37 | + |
| 38 | +- `useAccordion` and `useAccordionItem` from `@react-aria/accordion` have been deprecated in favor of `useDisclosure` from `@react-aria/disclosure` |
| 39 | +- `DisclosureHeader` from `@react-spectrum/accordion` has been updated to be `DisclosureTitle` |
| 40 | + |
| 41 | +If you're using an older pre-release version of Accordion, see the [previous release notes](/releases/2024-09-30.html#accordion-updates) for instructions on how to migrate to the released API. |
| 42 | + |
| 43 | +## Enhancements |
| 44 | + |
| 45 | +- Accordion |
| 46 | + - Support `hidden="until-found"` in `DisclosureGroup` - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7199) |
| 47 | +- Dialog |
| 48 | + - Add `<Button slot="close">` support - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7405) |
| 49 | +- Menu |
| 50 | + - Add Section-level selection groups in `Menu` - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7254) |
| 51 | + - Support nesting `Menu` inside `Dialog` popovers with additional interactive content - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7402) |
| 52 | +- ToggleButtonGroup |
| 53 | + - Add `ToggleButtonGroup` component to RAC - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7264) |
| 54 | +- Misc |
| 55 | + - Support Devanagari & Bengali decimal numbering systems - [@Rocss](https://github.com/Rocss) - [PR](https://github.com/adobe/react-spectrum/pull/6715) |
| 56 | + - Update `NumberParser` to support `roundingIncrement` - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/7186) |
| 57 | + - Add `expanded` state to RAC Tailwind plugin - [@neefrehman](https://github.com/neefrehman) - [PR](https://github.com/adobe/react-spectrum/pull/7152) |
| 58 | + - Add `pending` state to RAC Tailwind plugin - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7231) |
| 59 | + |
| 60 | +## Fixes |
| 61 | + |
| 62 | +- Accordion |
| 63 | + - Fix `Accordion` borders - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7284) |
| 64 | + - Add `box-sizing: content-box` to `Accordion` chevron - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7354) |
| 65 | +- Button |
| 66 | + - Fix `useButton` `href` condition - [@mehm8128](https://github.com/mehm8128) - [PR](https://github.com/adobe/react-spectrum/pull/7239) |
| 67 | +- Checkbox |
| 68 | + - Fix `Checkbox` validation reset not working - [@nwidynski](https://github.com/nwidynski) - [PR](https://github.com/adobe/react-spectrum/pull/7268) |
| 69 | + - Fix `ToggleProps` validate function type - [@joshuajaco](https://github.com/joshuajaco) - [PR](https://github.com/adobe/react-spectrum/pull/7347) |
| 70 | + - Add `Checkbox` default slot to `GridList` and `Table` - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/7188) |
| 71 | +- Date and time |
| 72 | + - Fix `DatePicker` with `defaultValue` to persist time zone - [@boutahlilsoufiane](https://github.com/boutahlilsoufiane) - [PR](https://github.com/adobe/react-spectrum/pull/7069) |
| 73 | + - Fix BC era timestamps in `fromAbsolute` - [@KimPeeters](https://github.com/KimPeeters) and [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/6542), [PR](https://github.com/adobe/react-spectrum/pull/7410) |
| 74 | +- Dialog |
| 75 | + - Add `data-rac` attribute to `Dialog` - amitdahan - [PR](https://github.com/adobe/react-spectrum/pull/7189) |
| 76 | +- Select |
| 77 | + - Remove iOS `HiddenSelect` workaround - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/7200) |
| 78 | + - Set default value for type parameter in `SelectProps` - [@kp047i](https://github.com/kp047i) - [PR](https://github.com/adobe/react-spectrum/pull/7014) |
| 79 | +- Slider |
| 80 | + - Update `restrictValues` in `useSliderState` - [@Danji-ya](https://github.com/Danji-ya) - [PR](https://github.com/adobe/react-spectrum/pull/7338) |
| 81 | +- Tooltip |
| 82 | + - Fix RAC `Tooltip` getting stuck on screen when scrolling - [@acr92](https://github.com/acr92) - [PR](https://github.com/adobe/react-spectrum/pull/7227) |
| 83 | +- Misc |
| 84 | + - Support React 19 prerelease - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/7383) |
| 85 | + - Add `"use strict";` to style macro CommonJS build output - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7271) |
| 86 | + - Add prefix to style macro class names - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7365) |
| 87 | + - Fix Typescript Strict Mode remaining issues - [@snowystinger](https://github.com/snowystinger) and [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7368), [PR](https://github.com/adobe/react-spectrum/pull/6761) |
| 88 | + - Add optional property types - [@alecmev](https://github.com/alecmev) - [PR](https://github.com/adobe/react-spectrum/pull/6872) |
| 89 | + |
| 90 | +## Docs |
| 91 | + |
| 92 | +- Add ARIA APG grid link to `useTagGroup` docs - [@mehm8128](https://github.com/mehm8128) - [PR](https://github.com/adobe/react-spectrum/pull/7367) |
| 93 | +- Update CodeSandbox templates in `useDatePicker` and `useDateRangePicker` - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/7342) |
| 94 | +- Fix `DisclosureGroup` anatomy diagram SVG clipping on mobile - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/7323) |
| 95 | +- Update contribution guide - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/7253) |
| 96 | +- Update `Accordion` and `DisclosureGroup` docs - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/7273) |
| 97 | +- Add Tailwind starter for `Disclosure` and `DisclosureGroup` - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7166) |
| 98 | +- Update `Accordion`, `Disclosure`, `DisclosureGroup` docs - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/7165) |
| 99 | +- Fix typo on `ProgressBar` docs - [@mehm8128](https://github.com/mehm8128) - [PR](https://github.com/adobe/react-spectrum/pull/7373) |
| 100 | +- Add `Disclosure` hook docs - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7178) |
| 101 | +- Add Q&A section to contribution guide - [@unional](https://github.com/unional) - [PR](https://github.com/adobe/react-spectrum/pull/6951) |
| 102 | +- Fix Tailwind starter `Submenu` - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7251) |
| 103 | +- Add `Accordion` to example apps - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/7296) |
| 104 | +- Fix disabled `Tag` styles in RAC Tailwind starter - [@steveoh](https://github.com/steveoh) - [PR](https://github.com/adobe/react-spectrum/pull/7247) |
| 105 | + |
| 106 | + |
| 107 | +## Released packages |
| 108 | + |
| 109 | +``` |
| 110 | + |
| 111 | + - @internationalized/[email protected] |
| 112 | + - @internationalized/[email protected] |
| 113 | + - @internationalized/[email protected] |
| 114 | + - @internationalized/[email protected] |
| 115 | + - @internationalized/[email protected] |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + - @react-spectrum/[email protected] |
| 172 | + - @react-spectrum/[email protected] |
| 173 | + - @react-spectrum/[email protected] |
| 174 | + - @react-spectrum/[email protected] |
| 175 | + - @react-spectrum/[email protected] |
| 176 | + - @react-spectrum/[email protected] |
| 177 | + - @react-spectrum/[email protected] |
| 178 | + - @react-spectrum/[email protected] |
| 179 | + - @react-spectrum/[email protected] |
| 180 | + - @react-spectrum/[email protected] |
| 181 | + - @react-spectrum/[email protected] |
| 182 | + - @react-spectrum/[email protected] |
| 183 | + - @react-spectrum/[email protected] |
| 184 | + - @react-spectrum/[email protected] |
| 185 | + - @react-spectrum/[email protected] |
| 186 | + - @react-spectrum/[email protected] |
| 187 | + - @react-spectrum/[email protected] |
| 188 | + - @react-spectrum/[email protected] |
| 189 | + - @react-spectrum/[email protected] |
| 190 | + - @react-spectrum/[email protected] |
| 191 | + - @react-spectrum/[email protected] |
| 192 | + - @react-spectrum/[email protected] |
| 193 | + - @react-spectrum/[email protected] |
| 194 | + - @react-spectrum/[email protected] |
| 195 | + - @react-spectrum/[email protected] |
| 196 | + - @react-spectrum/[email protected] |
| 197 | + - @react-spectrum/[email protected] |
| 198 | + - @react-spectrum/[email protected] |
| 199 | + - @react-spectrum/[email protected] |
| 200 | + - @react-spectrum/[email protected] |
| 201 | + - @react-spectrum/[email protected] |
| 202 | + - @react-spectrum/[email protected] |
| 203 | + - @react-spectrum/[email protected] |
| 204 | + - @react-spectrum/[email protected] |
| 205 | + - @react-spectrum/[email protected] |
| 206 | + - @react-spectrum/[email protected] |
| 207 | + - @react-spectrum/[email protected] |
| 208 | + - @react-spectrum/[email protected] |
| 209 | + - @react-spectrum/[email protected] |
| 210 | + - @react-spectrum/[email protected] |
| 211 | + - @react-spectrum/[email protected] |
| 212 | + - @react-spectrum/[email protected] |
| 213 | + - @react-spectrum/[email protected] |
| 214 | + - @react-spectrum/[email protected] |
| 215 | + - @react-spectrum/[email protected] |
| 216 | + - @react-spectrum/[email protected] |
| 217 | + - @react-spectrum/[email protected] |
| 218 | + - @react-spectrum/[email protected] |
| 219 | + - @react-spectrum/[email protected] |
| 220 | + - @react-spectrum/[email protected] |
| 221 | + - @react-spectrum/[email protected] |
| 222 | + - @react-spectrum/[email protected] |
| 223 | + - @react-spectrum/[email protected] |
| 224 | + - @react-spectrum/[email protected] |
| 225 | + - @react-spectrum/[email protected] |
| 226 | + - @react-spectrum/[email protected] |
| 227 | + - @react-spectrum/[email protected] |
| 228 | + - @react-spectrum/[email protected] |
| 229 | + - @react-spectrum/[email protected] |
| 230 | + - @react-spectrum/[email protected] |
| 231 | + - @react-spectrum/[email protected] |
| 232 | + - @react-spectrum/[email protected] |
| 233 | + - @react-spectrum/[email protected] |
| 234 | + - @react-stately/[email protected] |
| 235 | + - @react-stately/[email protected] |
| 236 | + - @react-stately/[email protected] |
| 237 | + - @react-stately/[email protected] |
| 238 | + - @react-stately/[email protected] |
| 239 | + - @react-stately/[email protected] |
| 240 | + - @react-stately/[email protected] |
| 241 | + - @react-stately/[email protected] |
| 242 | + - @react-stately/[email protected] |
| 243 | + - @react-stately/[email protected] |
| 244 | + - @react-stately/[email protected] |
| 245 | + - @react-stately/[email protected] |
| 246 | + - @react-stately/[email protected] |
| 247 | + - @react-stately/[email protected] |
| 248 | + - @react-stately/[email protected] |
| 249 | + - @react-stately/[email protected] |
| 250 | + - @react-stately/[email protected] |
| 251 | + - @react-stately/[email protected] |
| 252 | + - @react-stately/[email protected] |
| 253 | + - @react-stately/[email protected] |
| 254 | + - @react-stately/[email protected] |
| 255 | + - @react-stately/[email protected] |
| 256 | + - @react-stately/[email protected] |
| 257 | + - @react-stately/[email protected] |
| 258 | + - @react-stately/[email protected] |
| 259 | + - @react-stately/[email protected] |
| 260 | + - @react-stately/[email protected] |
| 261 | + - @react-stately/[email protected] |
| 262 | + - @react-stately/[email protected] |
| 263 | + - @react-stately/[email protected] |
| 264 | + - @react-stately/[email protected] |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | + |
| 289 | + |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + - @spectrum-icons/[email protected] |
| 313 | + - @spectrum-icons/[email protected] |
| 314 | + - @spectrum-icons/[email protected] |
| 315 | + - @spectrum-icons/[email protected] |
| 316 | + - @spectrum-icons/[email protected] |
| 317 | + - @react-spectrum/[email protected] |
| 318 | + |
| 319 | + |
| 320 | + - @react-spectrum/[email protected] |
| 321 | + - @react-spectrum/[email protected] |
| 322 | + - @react-spectrum/[email protected] |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | +``` |
0 commit comments