Skip to content

Commit 75b74b1

Browse files
authored
docs: January 2025 release notes (#7597)
1 parent 09e7f44 commit 75b74b1

File tree

3 files changed

+317
-0
lines changed

3 files changed

+317
-0
lines changed

.storybook-s2/docs/Migrating.jsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ export function Migrating() {
4444
<li className={style({font: 'body', marginY: 8})}>Add <Code>allowsMultipleExpanded</Code> to allow multiple <Code>Disclosure</Code> components to be expanded at once (previously default behavior)</li>
4545
</ul>
4646

47+
<H3>ActionBar</H3>
48+
<ul className="sb-unstyled">
49+
<li className={style({font: 'body', marginY: 8})}>Remove <Code>ActionBarContainer</Code> and move <Code>ActionBar</Code> to <Code>renderActionBar</Code> prop of <Code>TableView</Code> or <Code>CardView</Code></li>
50+
<li className={style({font: 'body', marginY: 8})}>Update <Code>Item</Code> to <Code>ActionButton</Code></li>
51+
<li className={style({font: 'body', marginY: 8})}>Update root level <Code>onAction</Code> to be called via <Code>onPress</Code> on each <Code>ActionButton</Code></li>
52+
<li className={style({font: 'body', marginY: 8})}>Apply <Code>isDisabled</Code> directly on each <Code>ActionButton</Code> or <Code>ToggleButton</Code> instead of root level <Code>disabledKeys</Code></li>
53+
<li className={style({font: 'body', marginY: 8})}>Update <Code>key</Code> to be <Code>id</Code> (and keep <Code>key</Code> if rendered inside <Code>array.map</Code>)</li>
54+
<li className={style({font: 'body', marginY: 8})}>Convert dynamic collections render function to <Code>items.map</Code></li>
55+
<li className={style({font: 'body', marginY: 8})}>[PENDING] Comment out <Code>buttonLabelBehavior</Code> (it has not been implemented yet)</li>
56+
</ul>
57+
4758
<H3>ActionButton</H3>
4859
<P>No updates needed.</P>
4960

.storybook-s2/docs/Release Notes.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ export default MDXLayout;
44

55
# Release Notes
66

7+
## v0.6.0
8+
9+
### New Components
10+
11+
* [ActionBar](?path=/docs/actionbar--docs)
12+
13+
### Updates
14+
15+
* [Button](?path=/docs/button--docs): Add `genai` and `premium` gradient variants
16+
* [Menu](?path=/docs/menu--docs): Add `hideLinkOutIcon` prop, update alignment of items in different sections, and show checkmark on selected items that are links.
17+
* Added `staticColor="auto"` option to [ActionButton](?path=/docs/actionbutton--docs), [ToggleButton](?path=/docs/togglebutton--docs), [Divider](?path=/docs/divider--docs), [Meter](?path=/docs/meter--docs), [ProgressBar](?path=/docs/progressbar--docs), and [Link](?path=/docs/link--docs)
18+
* [ContextualHelp](?path=/docs/contextualhelp--docs): Fix alignment with field labels
19+
* [InlineAlert](?path=/docs/inlinealert--docs): Remove maximum width
20+
* [CheckboxGroup](?path=/docs/checkboxgroup--docs): Fix `isRequired` within a Form
21+
22+
### Codemods
23+
24+
* Added TableView codemods
25+
726
## v0.5.0
827

928
In this release we have updated our Dialog and DialogTrigger APIs to improve layout flexibility for custom dialogs and popovers. Dialog has been split into four components:
Lines changed: 287 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,287 @@
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+
- @react-aria/[email protected]
88+
- @react-aria/[email protected]
89+
- @react-aria/[email protected]
90+
- @react-aria/[email protected]
91+
- @react-aria/[email protected]
92+
- @react-aria/[email protected]
93+
- @react-aria/[email protected]
94+
- @react-aria/[email protected]
95+
- @react-aria/[email protected]
96+
- @react-aria/[email protected]
97+
- @react-aria/[email protected]
98+
- @react-aria/[email protected]
99+
- @react-aria/[email protected]
100+
- @react-aria/[email protected]
101+
- @react-aria/[email protected]
102+
- @react-aria/[email protected]
103+
- @react-aria/[email protected]
104+
- @react-aria/[email protected]
105+
- @react-aria/[email protected]
106+
- @react-aria/[email protected]
107+
- @react-aria/[email protected]
108+
- @react-aria/[email protected]
109+
- @react-aria/[email protected]
110+
- @react-aria/[email protected]
111+
- @react-aria/[email protected]
112+
- @react-aria/[email protected]
113+
- @react-aria/[email protected]
114+
- @react-aria/[email protected]
115+
- @react-aria/[email protected]
116+
- @react-aria/[email protected]
117+
- @react-aria/[email protected]
118+
- @react-aria/[email protected]
119+
- @react-aria/[email protected]
120+
- @react-aria/[email protected]
121+
- @react-aria/[email protected]
122+
- @react-aria/[email protected]
123+
- @react-aria/[email protected]
124+
- @react-aria/[email protected]
125+
- @react-aria/[email protected]
126+
- @react-aria/[email protected]
127+
- @react-aria/[email protected]
128+
- @react-aria/[email protected]
129+
- @react-aria/[email protected]
130+
- @react-aria/[email protected]
131+
- @react-aria/[email protected]
132+
- @react-aria/[email protected]
133+
- @react-aria/[email protected]
134+
- @react-aria/[email protected]
135+
- @react-aria/[email protected]
136+
- @react-aria/[email protected]
137+
- @react-aria/[email protected]
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+
- @react-types/[email protected]
230+
- @react-types/[email protected]
231+
- @react-types/[email protected]
232+
- @react-types/[email protected]
233+
- @react-types/[email protected]
234+
- @react-types/[email protected]
235+
- @react-types/[email protected]
236+
- @react-types/[email protected]
237+
- @react-types/[email protected]
238+
- @react-types/[email protected]
239+
- @react-types/[email protected]
240+
- @react-types/[email protected]
241+
- @react-types/[email protected]
242+
- @react-types/[email protected]
243+
- @react-types/[email protected]
244+
- @react-types/[email protected]
245+
- @react-types/[email protected]
246+
- @react-types/[email protected]
247+
- @react-types/[email protected]
248+
- @react-types/[email protected]
249+
- @react-types/[email protected]
250+
- @react-types/[email protected]
251+
- @react-types/[email protected]
252+
- @react-types/[email protected]
253+
- @react-types/[email protected]
254+
- @react-types/[email protected]
255+
- @react-types/[email protected]
256+
- @react-types/[email protected]
257+
- @react-types/[email protected]
258+
- @react-types/[email protected]
259+
- @react-types/[email protected]
260+
- @react-types/[email protected]
261+
- @react-types/[email protected]
262+
- @react-types/[email protected]
263+
- @react-types/[email protected]
264+
- @react-types/[email protected]
265+
- @react-types/[email protected]
266+
- @react-types/[email protected]
267+
- @react-types/[email protected]
268+
- @react-types/[email protected]
269+
- @react-types/[email protected]
270+
- @react-types/[email protected]
271+
- @react-types/[email protected]
272+
- @react-types/[email protected]
273+
- @react-types/[email protected]
274+
- @react-types/[email protected]
275+
- @react-types/[email protected]
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+
- @react-aria/[email protected]
283+
- @react-spectrum/[email protected]
284+
285+
286+
287+
```

0 commit comments

Comments
 (0)