|
| 1 | +{/* Copyright 2025 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 | +description: Happy New Year! Our first release of 2025 includes a new `firstDayOfWeek` prop for our calendar and date picker components, support for CSS transitions in our overlay components, a new `Autocomplete` component in alpha, and a new test utils package. |
| 15 | +date: 2025-01-15 |
| 16 | +--- |
| 17 | + |
| 18 | +# January 15, 2025 Release |
| 19 | + |
| 20 | +Happy New Year! Our first release of 2025 includes a new [firstDayOfWeek](../react-aria/Calendar.html#custom-first-day-of-week) prop for our calendar and date picker components, support for [CSS transitions](../react-aria/styling.html#animation) in our overlay components, a new [Autocomplete](../react-aria/Autocomplete.html) component in alpha, and a new [React Aria test utils](../react-aria/testing.html#react-aria-test-utils) package. |
| 21 | +As always, a huge shoutout to everyone in the community for their feedback and contributions! |
| 22 | + |
| 23 | +### firstDayOfWeek |
| 24 | + |
| 25 | +By default, our date picker components determine the first day of the week from the locale. However, a common request was for the ability to override this for certain use cases regardless of the locale. [Calendar](../react-aria/Calendar.html#custom-first-day-of-week), [RangeCalendar](../react-aria/RangeCalendar.html#custom-first-day-of-week), [DatePicker](../react-aria/DatePicker.html#custom-first-day-of-week), and [DateRangePicker](../react-aria/DateRangePicker.html#custom-first-day-of-week) now support a `firstDayOfWeek` prop to enable this. In addition, our [@internationalized/date](../internationalized/date/index.html) package now includes an option to override the locale in methods such as `startOfWeek`, `endOfWeek`, `getDayOfWeek`, and `getWeeksInMonth`. |
| 26 | + |
| 27 | +### CSS transitions |
| 28 | + |
| 29 | +Overlay components including `Modal`, `Popover`, and `Tooltip` now support CSS transitions for entry and exit animations, in addition to the existing support for keyframe animations. CSS transitions have the benefit of being *interruptible*. If the user opens and closes an overlay quickly, transitions will smoothly animate from their current position rather than jumping to the ending state of the animation before starting the new one. You can use CSS transitions using the existing `[data-entering]` and `[data-exiting]` states. See our [animation guide](../react-aria/styling.html#animation) for more details. |
| 30 | + |
| 31 | +### Autocomplete |
| 32 | + |
| 33 | +The new [Autocomplete](../react-aria/Autocomplete.html) component is now available in alpha! Similar to a [ComboBox](../react-aria/ComboBox.html), this component provides the ability to display a list of suggestions as the user types in a text input. However, it is more flexible, supporting use cases such as command palettes and searchable menus where the text input is a sibling of the suggestion list rather than a separate popover. It supports both [TextField](../react-aria/TextField.html) and [SearchField](../react-aria/SearchField.html) inputs, and both [ListBox](../react-aria/ListBox.html) and [Menu](../react-aria/Menu.html) collections, customizable filters, and arrow key navigation while keeping focus on the input element. There are more features to come in future releases, but we'd love your feedback on this initial alpha release! |
| 34 | + |
| 35 | +### React Aria Test Utils |
| 36 | + |
| 37 | +We are also excited to announce the alpha release of the [@react-aria/test-utils](https://www.npmjs.com/package/@react-aria/test-utils) package! This package features a set of utilities that aim to make writing tests against our components much simpler and less time consuming. It includes high level methods to interact with components implementing ARIA patterns, so you don't need to figure out how to manually fire the correct sequences of events or navigate the DOM structure. See the respective [React Aria](../react-aria/testing.html#react-aria-test-utils) and [React Spectrum](../react-spectrum/testing.html#react-spectrum-test-utils) testing pages for more details. It is still very much a work in progress so if you discover any issues or have any feedback, please feel free to report them via GitHub issues! |
| 38 | + |
| 39 | +## Enhancements |
| 40 | + |
| 41 | +- Calendar |
| 42 | + - Add `firstDayOfWeek` prop to Calendar, RangeCalendar, DatePicker, and DateRangePicker - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7363) |
| 43 | +- Overlays |
| 44 | + - Add support for CSS transitions in `Modal`, `Popover`, and `Tooltip` – [@devongovett](https://github.com/devongovett) – [PR](https://github.com/adobe/react-spectrum/pull/7488) |
| 45 | +- Misc |
| 46 | + - Remove custom hit testing in `usePress` - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7427) |
| 47 | + |
| 48 | +## Fixes |
| 49 | + |
| 50 | +- Button |
| 51 | + - Disable form submission in `isPending` state - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/7498) |
| 52 | +- Date and Time |
| 53 | + - Fix keyboard selection of an unavailable dates - [@richardbann](https://github.com/richardbann) - [PR](https://github.com/adobe/react-spectrum/pull/7455) |
| 54 | + - Remove min/max limits for all segments in `@internationalized/date` `parseDuration` - [@limkhl](https://github.com/limkhl) - [PR](https://github.com/adobe/react-spectrum/pull/7064) |
| 55 | +- Form |
| 56 | + - Skip native validation on disabled form elements - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7531) |
| 57 | +- Menu |
| 58 | + - Fix Talkback focus cursor movement when inside dialogs - [@LFDanLu](https://github.com/LFDanLu) - [PR](https://github.com/adobe/react-spectrum/pull/7478) |
| 59 | +- Select |
| 60 | + - Fix form `autoComplete` prop - [@nabanitabania](https://github.com/nabanitabania) - [PR](https://github.com/adobe/react-spectrum/pull/7452) |
| 61 | +- TagGroup |
| 62 | + - Prevent disabled tags from being removed with keyboard navigation - [@minzzang144](https://github.com/minzzang144) - [PR](https://github.com/adobe/react-spectrum/pull/7394) |
| 63 | +- Overlays |
| 64 | + - Prevent `Popover` from closing on scroll - [@jabrks](https://github.com/jabrks) - [PR](https://github.com/adobe/react-spectrum/pull/7541) |
| 65 | + - Fix dismissing iOS keyboard when input in dialog has focus - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7479) |
| 66 | + - Include scroll padding in `scrollIntoView` caclulations inside overlays - [@jeffijoe](https://github.com/jeffijoe) - [PR](https://github.com/adobe/react-spectrum/pull/7484) |
| 67 | +- Misc |
| 68 | + - Skip elements with `contenteditable=false` in FocusScope - [@nwidynski](https://github.com/nwidynski) - [PR](https://github.com/adobe/react-spectrum/pull/7340) |
| 69 | + - Fix `@react-aria/optimize-locales-plugin` path resolution on Windows - [@ohansFavour](https://github.com/ohansFavour) - [PR](https://github.com/adobe/react-spectrum/pull/7568) |
| 70 | + - Reduce unnecessary re-renders in React Spectrum slot provider - [@mdwyer6](https://github.com/mdwyer6) - [PR](https://github.com/adobe/react-spectrum/pull/7485) |
| 71 | + |
| 72 | +## Docs |
| 73 | + |
| 74 | +- Prevent `Combobox` docs example from clearing `defaultInputValue` or controlled value on blur - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/7439) |
| 75 | +- Improve RAC `Calendar` state example - [@nathanpower](https://github.com/nathanpower) - [PR](https://github.com/adobe/react-spectrum/pull/7473) |
| 76 | +- Fix broken links in docs - [@ktabors](https://github.com/ktabors) - [PR](https://github.com/adobe/react-spectrum/pull/7530) |
| 77 | + |
| 78 | +## Under Construction |
| 79 | + |
| 80 | +- Add `Autocomplete` component - [@LFDanLu](https://github.com/LFDanLu) - [PR](https://github.com/adobe/react-spectrum/pull/7181) |
| 81 | + |
| 82 | +## Released packages |
| 83 | + |
| 84 | +``` |
| 85 | + |
| 86 | + - @internationalized/[email protected] |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + - @react-spectrum/[email protected] |
| 139 | + - @react-spectrum/[email protected] |
| 140 | + - @react-spectrum/[email protected] |
| 141 | + - @react-spectrum/[email protected] |
| 142 | + - @react-spectrum/[email protected] |
| 143 | + - @react-spectrum/[email protected] |
| 144 | + - @react-spectrum/[email protected] |
| 145 | + - @react-spectrum/[email protected] |
| 146 | + - @react-spectrum/[email protected] |
| 147 | + - @react-spectrum/[email protected] |
| 148 | + - @react-spectrum/[email protected] |
| 149 | + - @react-spectrum/[email protected] |
| 150 | + - @react-spectrum/[email protected] |
| 151 | + - @react-spectrum/[email protected] |
| 152 | + - @react-spectrum/[email protected] |
| 153 | + - @react-spectrum/[email protected] |
| 154 | + - @react-spectrum/[email protected] |
| 155 | + - @react-spectrum/[email protected] |
| 156 | + - @react-spectrum/[email protected] |
| 157 | + - @react-spectrum/[email protected] |
| 158 | + - @react-spectrum/[email protected] |
| 159 | + - @react-spectrum/[email protected] |
| 160 | + - @react-spectrum/[email protected] |
| 161 | + - @react-spectrum/[email protected] |
| 162 | + - @react-spectrum/[email protected] |
| 163 | + - @react-spectrum/[email protected] |
| 164 | + - @react-spectrum/[email protected] |
| 165 | + - @react-spectrum/[email protected] |
| 166 | + - @react-spectrum/[email protected] |
| 167 | + - @react-spectrum/[email protected] |
| 168 | + - @react-spectrum/[email protected] |
| 169 | + - @react-spectrum/[email protected] |
| 170 | + - @react-spectrum/[email protected] |
| 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-stately/[email protected] |
| 201 | + - @react-stately/[email protected] |
| 202 | + - @react-stately/[email protected] |
| 203 | + - @react-stately/[email protected] |
| 204 | + - @react-stately/[email protected] |
| 205 | + - @react-stately/[email protected] |
| 206 | + - @react-stately/[email protected] |
| 207 | + - @react-stately/[email protected] |
| 208 | + - @react-stately/[email protected] |
| 209 | + - @react-stately/[email protected] |
| 210 | + - @react-stately/[email protected] |
| 211 | + - @react-stately/[email protected] |
| 212 | + - @react-stately/[email protected] |
| 213 | + - @react-stately/[email protected] |
| 214 | + - @react-stately/[email protected] |
| 215 | + - @react-stately/[email protected] |
| 216 | + - @react-stately/[email protected] |
| 217 | + - @react-stately/[email protected] |
| 218 | + - @react-stately/[email protected] |
| 219 | + - @react-stately/[email protected] |
| 220 | + - @react-stately/[email protected] |
| 221 | + - @react-stately/[email protected] |
| 222 | + - @react-stately/[email protected] |
| 223 | + - @react-stately/[email protected] |
| 224 | + - @react-stately/[email protected] |
| 225 | + - @react-stately/[email protected] |
| 226 | + - @react-stately/[email protected] |
| 227 | + - @react-stately/[email protected] |
| 228 | + - @react-stately/[email protected] |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + |
| 258 | + |
| 259 | + |
| 260 | + |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + - @spectrum-icons/[email protected] |
| 277 | + - @spectrum-icons/[email protected] |
| 278 | + - @spectrum-icons/[email protected] |
| 279 | + - @spectrum-icons/[email protected] |
| 280 | + - @spectrum-icons/[email protected] |
| 281 | + - @react-spectrum/[email protected] |
| 282 | + |
| 283 | + - @react-spectrum/[email protected] |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | +``` |
0 commit comments