Skip to content

Commit 54fbaa6

Browse files
committed
Merge branch 'main' of github.com:adobe/react-spectrum
2 parents 2f75a53 + fa6dce8 commit 54fbaa6

File tree

3 files changed

+292
-1
lines changed

3 files changed

+292
-1
lines changed

packages/@react-spectrum/menu/docs/Menu.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ import {Keyboard, Text} from '@react-spectrum/text';
289289
</MenuTrigger>
290290
```
291291

292-
## Unavailable Items <VersionBadge version="alpha" style={{marginLeft: 4, verticalAlign: 'bottom'}} />
292+
## Unavailable Items <VersionBadge version="beta" style={{marginLeft: 4, verticalAlign: 'bottom'}} />
293293

294294
ContextualHelpTrigger disables a menu item's action and replaces it with a popover with information on why the item is unavailable and may link users to more information elsewhere.
295295

Lines changed: 288 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,288 @@
1+
{/* Copyright 2023 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: In this release, we’re moving React Aria Components from alpha to beta! With this milestone, we’ve made some API updates based on early feedback, introduced a new Tailwind CSS plugin, and updated the documentation with improved content and organization. This release also deprecates the `validationState` prop in many components and replaces it with an `isInvalid` boolean prop. It also includes fixes for an infinite resize loop bug in `ButtonGroup`, a press handling bug on certain Android devices, and new documentation for our pre-release components.
15+
date: 2023-09-07
16+
---
17+
18+
# September 7, 2023 Release
19+
In this release, we’re moving React Aria Components from alpha to beta! With this milestone, we’ve made some API updates based on early feedback, introduced a new Tailwind CSS plugin, and updated the documentation with improved content and organization.
20+
21+
This release also deprecates the `validationState` prop in many components and replaces it with an `isInvalid` boolean prop. It also includes fixes for an infinite resize loop bug in `ButtonGroup`, a press handling bug on certain Android devices, and new documentation for our pre-release components.
22+
23+
As always, huge thanks to all of our contributors!
24+
25+
## Updates to React Aria Components
26+
27+
React Aria Components includes the following API changes:
28+
29+
- All states are now exposed on DOM elements as data attributes. Previously, some states were documented as ARIA attributes or native CSS pseudo classes, but this caused some confusion. Switching to data attributes for all states ensures API consistency and allows us to handle future ARIA pattern changes more easily without breaking your styles. See the Styling section in each component’s documentation for the full list of supported states.
30+
- Breadcrumbs now uses the `<Breadcrumb>` component instead of `<Item>`. In addition, it does not include a `<nav>` element by default anymore. The `<ol>` element is now the root element.
31+
- All components with validation support moved from the `validationState` prop to the `isInvalid` prop. This is exposed as `data-invalid` instead of `data-validation-state` as well.
32+
33+
In addition to the above API changes, we also released the following improvements:
34+
35+
- New [Styling](https://react-spectrum.adobe.com/react-aria/styling.html) page in the docs that gives an overview of the various methods to style React Aria Components, including states, render props, slots, and animation with CSS keyframes and Framer Motion.
36+
- A new [Tailwind CSS plugin](https://react-spectrum.adobe.com/react-aria/styling.html#plugin) that gives you shorter modifier names and autocomplete for the states of React Aria Components.
37+
- Our collection components now render on the server during SSR.
38+
- Updates to the documentation of every component:
39+
- The anatomy section has been expanded to include improved visuals and the corresponding JSX structure for every element and supported slot within a component.
40+
- The content has been reorganized into sub sections and ordered to place reference material at the end of the page, and move more examples toward the top.
41+
- The “Advanced Customization” section has been updated to document the public contexts provided and consumed by each component, and how you can use these to create your own higher level patterns.
42+
- Documentation has been grouped into sections in the left navigation for Components, Hooks, Interactions, and Utilities to make it easier to find what you’re looking for.
43+
44+
Thanks to everyone who tried out React Aria Components while it was in alpha! Your feedback has been extremely valuable as we iterate toward a full release.
45+
46+
## Validation state deprecation
47+
48+
In React Spectrum and React Aria hooks, we have deprecated the `validationState` prop in many components, and replaced it with the `isInvalid` boolean prop. Most components do not include a visual “valid” state, so the previous API was confusing. For React Spectrum, field-like components such as `TextField` and `ComboBox` continue to support the `validationState` prop to display a green checkmark, but other components such as `CheckboxGroup` now use `isInvalid` instead. In React Aria, all hooks have migrated to `isInvalid`. The old API will continue to work in both but is marked as deprecated, and you can update in your own time.
49+
50+
## Fixes
51+
- Add checks to prevent event bubbling in `useDatePickerGroup` - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/4956)
52+
- Do not close overlays on blur if relatedTarget is null - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/4931)
53+
- Removing `aria-disabled` so TalkBack users can open the context dialog - [@LFDanLu](https://github.com/LFDanLu) - [PR](https://github.com/adobe/react-spectrum/pull/4710)
54+
- Update translations for `Actionbar`, `Button`, `Dropzone`, `Menu` - [@rgeraghty](https://github.com/rgeraghty) - [PR](https://github.com/adobe/react-spectrum/pull/5037)
55+
- Replace `validationState` with `isInvalid` - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/4972)
56+
- Fix `MenuItem` to chain provided `onClose` pressed - [@LFDanLu](https://github.com/LFDanLu) - [PR](https://github.com/adobe/react-spectrum/pull/4959)
57+
- Add check to detect Android pointer type as touch - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/4940)
58+
- Update hidden textfield in `Select` to not be focusable - [@pr7prashant](https://github.com/pr7prashant) - [PR](https://github.com/adobe/react-spectrum/pull/4943)
59+
- Keep focus on last pressed column header in `TableView` when loading - [@jluyau](https://github.com/jluyau) - [PR](https://github.com/adobe/react-spectrum/pull/4249)
60+
- Fix `RadioGroup` lost roving tab index - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/4985)
61+
- Fix missing peerDependency on react-dom - [@wojtekmaj](https://github.com/wojtekmaj) - [PR](https://github.com/adobe/react-spectrum/pull/5002)
62+
- Fix `ButtonGroup` infinite update loop - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/5010)
63+
- Make all submenus close upon user interact outside - [@LFDanLu](https://github.com/LFDanLu) - [PR](https://github.com/adobe/react-spectrum/pull/4988)
64+
65+
## Docs
66+
- Remove unnecessary props from docs - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/5023)
67+
- Move `ContextualHelpTrigger` docs to Menu - [@LFDanLu](https://github.com/LFDanLu) - [PR](https://github.com/adobe/react-spectrum/pull/5017)
68+
- Add Unavailable Menu Item docs - [@ktabors](https://github.com/ktabors) - [PR](https://github.com/adobe/react-spectrum/pull/4763)
69+
- Fix `Popover` tips in FF - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/5040)
70+
71+
## Under construction
72+
73+
Fixes to pre-released components are listed below. Please feel free to try them out, and report any issues you encounter.
74+
75+
- [Unavailable Menu Items](https://react-spectrum.adobe.com/react-spectrum/Menu.html#unavailable-items) (beta)
76+
- Fix Unavailable Menu Item's Popover positioning - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/4917)
77+
- DropZone (alpha)
78+
- React Spectrum `DropZone` - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/4757)
79+
80+
### React Aria Components (Beta)
81+
82+
- Migrate all RAC render props to data attributes - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/4891)
83+
- Update Tabs navigation for arrow keys - [@mariareedstrom](https://github.com/mariareedstrom) - [PR](https://github.com/adobe/react-spectrum/pull/4821)
84+
- Add support for SSR to collections - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/4913)
85+
- Add Tailwind plugin for React Aria Component states - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/4933)
86+
- Add docs for contexts in React Aria Components - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/4960)
87+
- Fix some colors in docs - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/4990)
88+
- Table - allow passing render prop to Cell - [@nirtamir2](https://github.com/nirtamir2) - [PR](https://github.com/adobe/react-spectrum/pull/4995)
89+
- Fix Modal in SSR - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/4998)
90+
- Reorganize React Aria Components docs - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/4999)
91+
- Add data-selection-mode attribute - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/5018)
92+
- Update Breadcrumbs API - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/5014)
93+
- Add missing variants to Tailwind plugin - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/5027)
94+
- Add styling guide for React Aria Components - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/5016)
95+
- Update Table, GridList, and ListBox anatomy diagrams - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/5041)
96+
97+
98+
99+
## Released packages
100+
101+
```
102+
- @adobe/react-spectrum@3.30.0
103+
- @internationalized/date@3.5.0
104+
- @react-aria/accordion@3.0.0-alpha.21
105+
- @react-aria/actiongroup@3.6.2
106+
- @react-aria/aria-modal-polyfill@3.7.5
107+
- @react-aria/autocomplete@3.0.0-alpha.20
108+
- @react-aria/breadcrumbs@3.5.5
109+
- @react-aria/button@3.8.2
110+
- @react-aria/calendar@3.5.0
111+
- @react-aria/checkbox@3.11.0
112+
- @react-aria/color@3.0.0-beta.24
113+
- @react-aria/combobox@3.6.4
114+
- @react-aria/datepicker@3.7.0
115+
- @react-aria/dialog@3.5.5
116+
- @react-aria/dnd@3.4.1
117+
- @react-aria/focus@3.14.1
118+
- @react-aria/grid@3.8.2
119+
- @react-aria/gridlist@3.6.0
120+
- @react-aria/i18n@3.8.2
121+
- @react-aria/interactions@3.18.0
122+
- @react-aria/label@3.7.0
123+
- @react-aria/landmark@3.0.0-beta.4
124+
- @react-aria/link@3.5.4
125+
- @react-aria/listbox@3.10.2
126+
- @react-aria/menu@3.10.2
127+
- @react-aria/meter@3.4.5
128+
- @react-aria/numberfield@3.8.0
129+
- @react-aria/overlays@3.17.0
130+
- @react-aria/progress@3.4.5
131+
- @react-aria/radio@3.8.0
132+
- @react-aria/searchfield@3.5.5
133+
- @react-aria/select@3.12.1
134+
- @react-aria/selection@3.16.2
135+
- @react-aria/separator@3.3.5
136+
- @react-aria/slider@3.7.0
137+
- @react-aria/spinbutton@3.5.2
138+
- @react-aria/ssr@3.8.0
139+
- @react-aria/switch@3.5.4
140+
- @react-aria/table@3.12.0
141+
- @react-aria/tabs@3.7.0
142+
- @react-aria/tag@3.1.2
143+
- @react-aria/textfield@3.12.0
144+
- @react-aria/toast@3.0.0-beta.4
145+
- @react-aria/toggle@3.8.0
146+
- @react-aria/tooltip@3.6.2
147+
- @react-aria/utils@3.20.0
148+
- @react-aria/virtualizer@3.9.2
149+
- @react-aria/visually-hidden@3.8.4
150+
- @react-spectrum/accordion@3.0.0-alpha.23
151+
- @react-spectrum/actionbar@3.2.0
152+
- @react-spectrum/actiongroup@3.9.2
153+
- @react-spectrum/autocomplete@3.0.0-alpha.21
154+
- @react-spectrum/avatar@3.0.4
155+
- @react-spectrum/badge@3.1.5
156+
- @react-spectrum/breadcrumbs@3.8.2
157+
- @react-spectrum/button@3.13.0
158+
- @react-spectrum/buttongroup@3.6.5
159+
- @react-spectrum/calendar@3.4.0
160+
- @react-spectrum/card@3.0.0-alpha.22
161+
- @react-spectrum/checkbox@3.8.0
162+
- @react-spectrum/color@3.0.0-beta.25
163+
- @react-spectrum/combobox@3.10.1
164+
- @react-spectrum/contextualhelp@3.6.2
165+
- @react-spectrum/datepicker@3.7.1
166+
- @react-spectrum/dialog@3.8.2
167+
- @react-spectrum/divider@3.5.5
168+
- @react-spectrum/dnd@3.3.2
169+
- @react-spectrum/form@3.6.5
170+
- @react-spectrum/icon@3.7.5
171+
- @react-spectrum/illustratedmessage@3.4.5
172+
- @react-spectrum/image@3.4.5
173+
- @react-spectrum/inlinealert@3.1.0
174+
- @react-spectrum/label@3.14.0
175+
- @react-spectrum/labeledvalue@3.1.5
176+
- @react-spectrum/layout@3.5.5
177+
- @react-spectrum/link@3.5.5
178+
- @react-spectrum/list@3.6.2
179+
- @react-spectrum/listbox@3.11.2
180+
- @react-spectrum/menu@3.14.0
181+
- @react-spectrum/meter@3.4.5
182+
- @react-spectrum/numberfield@3.7.1
183+
- @react-spectrum/overlays@5.4.0
184+
- @react-spectrum/picker@3.12.0
185+
- @react-spectrum/progress@3.6.2
186+
- @react-spectrum/provider@3.8.2
187+
- @react-spectrum/radio@3.6.0
188+
- @react-spectrum/searchfield@3.7.5
189+
- @react-spectrum/slider@3.6.1
190+
- @react-spectrum/statuslight@3.5.5
191+
- @react-spectrum/switch@3.4.5
192+
- @react-spectrum/table@3.11.1
193+
- @react-spectrum/tabs@3.7.2
194+
- @react-spectrum/tag@3.1.2
195+
- @react-spectrum/text@3.4.5
196+
- @react-spectrum/textfield@3.10.5
197+
- @react-spectrum/theme-dark@3.5.5
198+
- @react-spectrum/theme-default@3.5.5
199+
- @react-spectrum/theme-express@3.0.0-alpha.7
200+
- @react-spectrum/theme-light@3.4.5
201+
- @react-spectrum/toast@3.0.0-beta.4
202+
- @react-spectrum/tooltip@3.5.4
203+
- @react-spectrum/utils@3.10.2
204+
- @react-spectrum/view@3.6.2
205+
- @react-spectrum/well@3.4.5
206+
- @react-stately/calendar@3.4.0
207+
- @react-stately/checkbox@3.5.0
208+
- @react-stately/collections@3.10.1
209+
- @react-stately/color@3.4.2
210+
- @react-stately/combobox@3.7.0
211+
- @react-stately/data@3.10.2
212+
- @react-stately/datepicker@3.7.0
213+
- @react-stately/dnd@3.2.4
214+
- @react-stately/grid@3.8.1
215+
- @react-stately/layout@3.13.1
216+
- @react-stately/list@3.9.2
217+
- @react-stately/menu@3.5.5
218+
- @react-stately/numberfield@3.6.1
219+
- @react-stately/overlays@3.6.2
220+
- @react-stately/radio@3.9.0
221+
- @react-stately/searchfield@3.4.5
222+
- @react-stately/select@3.5.4
223+
- @react-stately/selection@3.13.4
224+
- @react-stately/slider@3.4.2
225+
- @react-stately/table@3.11.1
226+
- @react-stately/tabs@3.6.0
227+
- @react-stately/toggle@3.6.2
228+
- @react-stately/tooltip@3.4.4
229+
- @react-stately/tree@3.7.2
230+
- @react-stately/virtualizer@3.6.2
231+
- @react-types/accordion@3.0.0-alpha.16
232+
- @react-types/actionbar@3.1.2
233+
- @react-types/actiongroup@3.4.4
234+
- @react-types/autocomplete@3.0.0-alpha.16
235+
- @react-types/avatar@3.0.2
236+
- @react-types/badge@3.1.4
237+
- @react-types/breadcrumbs@3.6.2
238+
- @react-types/button@3.8.0
239+
- @react-types/buttongroup@3.3.4
240+
- @react-types/calendar@3.4.0
241+
- @react-types/card@3.0.0-alpha.18
242+
- @react-types/checkbox@3.5.1
243+
- @react-types/color@3.0.0-beta.19
244+
- @react-types/combobox@3.8.0
245+
- @react-types/contextualhelp@3.2.5
246+
- @react-types/datepicker@3.6.0
247+
- @react-types/dialog@3.5.5
248+
- @react-types/divider@3.3.4
249+
- @react-types/form@3.5.3
250+
- @react-types/grid@3.2.1
251+
- @react-types/illustratedmessage@3.3.4
252+
- @react-types/image@3.3.4
253+
- @react-types/label@3.8.0
254+
- @react-types/layout@3.3.10
255+
- @react-types/link@3.4.5
256+
- @react-types/list@3.2.6
257+
- @react-types/listbox@3.4.4
258+
- @react-types/menu@3.9.4
259+
- @react-types/meter@3.3.4
260+
- @react-types/numberfield@3.6.0
261+
- @react-types/overlays@3.8.2
262+
- @react-types/progress@3.4.3
263+
- @react-types/provider@3.6.4
264+
- @react-types/radio@3.5.1
265+
- @react-types/searchfield@3.5.0
266+
- @react-types/select@3.8.3
267+
- @react-types/shared@3.20.0
268+
- @react-types/slider@3.6.1
269+
- @react-types/statuslight@3.3.4
270+
- @react-types/switch@3.4.1
271+
- @react-types/table@3.8.1
272+
- @react-types/tabs@3.3.2
273+
- @react-types/text@3.3.4
274+
- @react-types/textfield@3.8.0
275+
- @react-types/tooltip@3.4.4
276+
- @react-types/view@3.4.4
277+
- @react-types/well@3.3.4
278+
- @spectrum-icons/color@3.5.5
279+
- @spectrum-icons/express@3.0.0-alpha.9
280+
- @spectrum-icons/illustrations@3.6.5
281+
- @spectrum-icons/ui@3.5.5
282+
- @spectrum-icons/workflow@4.2.4
283+
- react-aria@3.28.0
284+
- react-aria-components@1.0.0-beta.0
285+
- react-stately@3.26.0
286+
- tailwindcss-react-aria-components@3.0.0-beta.0
287+
```
288+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# tailwindcss-react-aria-components
2+
3+
A Tailwind CSS plugin that makes styling states of React Aria Components easier, with shorter names and autocomplete in your editor. [Read docs](https://react-spectrum.adobe.com/react-aria/styling.html#plugin).

0 commit comments

Comments
 (0)