|
| 1 | +{/* Copyright 2022 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: We are excited to announce the release of drag and drop support in React Aria and React Spectrum! This includes a suite of hooks for implementing drag and drop interactions. There is also an update to all Spectrum colors, aligning React Spectrum with the latest Spectrum designs. Finally, React Aria includes a new simplified API for overlays such as popovers and modals. |
| 15 | +date: 2022-11-15 |
| 16 | +--- |
| 17 | + |
| 18 | +# November 15, 2022 Release |
| 19 | + |
| 20 | +We are excited to announce the release of drag and drop support in [React Aria](https://react-spectrum.adobe.com/react-aria/dnd.html) and [React Spectrum](https://react-spectrum.adobe.com/react-spectrum/dnd.html)! This includes a suite of hooks for implementing drag and drop interactions, with support for both mouse and touch, as well as full parity for keyboard and screen reader input. Check out our [blog post](https://react-spectrum.adobe.com/blog/drag-and-drop.html) for all the details! |
| 21 | + |
| 22 | +This release also includes an update to all Spectrum colors, aligning React Spectrum with the latest Spectrum designs. Buttons also have a refreshed design, with improved accessibility, and additional variants. |
| 23 | + |
| 24 | +React Aria also includes a new API for overlays such as [popovers](https://react-spectrum.adobe.com/react-aria/usePopover.html) and [modals](https://react-spectrum.adobe.com/react-aria/useModalOverlay.html). It is designed to make building these components much easier than before, including builtin focus management, accessibility, scroll locking, and positioning. |
| 25 | + |
| 26 | +Finally, we have plenty of bug fixes and documentation updates. Thanks to all of our contributors who helped with this release 🤩 |
| 27 | + |
| 28 | +## New Features |
| 29 | + |
| 30 | +**Drag and Drop** |
| 31 | + |
| 32 | +- React Spectrum |
| 33 | + - [Introduction](https://react-spectrum.adobe.com/react-spectrum/dnd.html) |
| 34 | + - [ListView](https://react-spectrum.adobe.com/react-spectrum/ListView.html#drag-and-drop) |
| 35 | +- React Aria |
| 36 | + - [Introduction](https://react-spectrum.adobe.com/react-aria/dnd.html) |
| 37 | + - [useDrag](https://react-spectrum.adobe.com/react-aria/useDrag.html) |
| 38 | + - [useDraggableCollection](https://react-spectrum.adobe.com/react-aria/useDraggableCollection.html) |
| 39 | + - [useDrop](https://react-spectrum.adobe.com/react-aria/useDrop.html) |
| 40 | + - [useDroppableCollection](https://react-spectrum.adobe.com/react-aria/useDroppableCollection.html) |
| 41 | + - [useClipboard](https://react-spectrum.adobe.com/react-aria/useClipboard.html) |
| 42 | + |
| 43 | +**Overlay hooks** |
| 44 | + |
| 45 | +- [usePopover](https://react-spectrum.adobe.com/react-aria/usePopover.html) |
| 46 | +- [useModalOverlay](https://react-spectrum.adobe.com/react-aria/useModalOverlay.html) |
| 47 | + |
| 48 | +## Enhancements |
| 49 | +- Add SSR support for drag and drop - [@Dev-CasperTheGhost](https://github.com/Dev-CasperTheGhost) - [PR](https://github.com/adobe/react-spectrum/pull/3616) |
| 50 | +- Export `TableCollection` and `TreeCollection` - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/3690) |
| 51 | +- Update Spectrum colors to v6 - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/3604) |
| 52 | +- `Button` and `ActionButton` design updates - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/3650) |
| 53 | +- Migrate React Spectrum to new overlay hooks - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/3677) |
| 54 | +- Add `UNSAFE_className` prop to `TableView` - [@LFDanLu](https://github.com/LFDanLu) - [PR](https://github.com/adobe/react-spectrum/pull/3722) |
| 55 | +### Spectrum color update |
| 56 | +Spectrum design has updated their [color system](https://spectrum.adobe.com/page/color-fundamentals/) with an expanded palette, improved contrast, and increased vibrance. This update applies across all React Spectrum components automatically. You can also use the new Spectrum colors in your custom components using the [View](https://react-spectrum.adobe.com/react-spectrum/View.html) component, which now has a `colorVersion` prop enabling you to opt-in. See the [styling documentation](https://react-spectrum.adobe.com/react-spectrum/styling.html#color-values) for more details, and to view the full color palette. |
| 57 | + |
| 58 | +### Design updates |
| 59 | +Spectrum has also updated the designs for Button, ActionButton, ActionGroup, and ToggleButton with improved contrast and accessibility. Button includes new outline and fill options, as well as new static color options. ActionButton, ActionGroup, ToggleButton, Picker, TextField, and other field components now have darker borders and selected states for improved contrast. |
| 60 | + |
| 61 | +The Button API has been updated to add new options, and deprecate some old ones. Deprecated options will be automatically mapped to new variants. |
| 62 | + |
| 63 | +- Added `accent` variant, replacing `cta` which is now deprecated. |
| 64 | +- Added `style` prop, accepting `fill` or `outline` for all button variants. |
| 65 | +- Added `staticColor` prop, which replaces the deprecated `overBackground` variant. |
| 66 | +- Deprecated `isQuiet`. |
| 67 | + |
| 68 | +View the updates on our [Button docs](https://react-spectrum.adobe.com/react-spectrum/Button.html#visual-options) and [Spectrum Design docs](https://spectrum.corp.adobe.com/page/button/#Accent-variant). |
| 69 | + |
| 70 | +## Fixes |
| 71 | +- Avoid widening "type" prop of `TextInputDOMProps` - [@jossmac](https://github.com/jossmac) - [PR](https://github.com/adobe/react-spectrum/pull/3623) |
| 72 | +- Expose `props` to `Section` collection item - [@luisadame](https://github.com/luisadame) - [PR](https://github.com/adobe/react-spectrum/pull/3634) |
| 73 | +- Clear slots for `ContextualHelp` slot provider for `Dialog` - [@jluyau](https://github.com/jluyau) - [PR](https://github.com/adobe/react-spectrum/pull/3635) |
| 74 | +- Fix focus for empty view in `TableView` and `ListView` - [@ktabors](https://github.com/ktabors) - [PR](https://github.com/adobe/react-spectrum/pull/3581) |
| 75 | +- Fix `TableView` crashing when adding/removing columns - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/3656) |
| 76 | +- Fix `DatePicker` and `DateField` key/focus event props - [@ktabors](https://github.com/ktabors) - [PR](https://github.com/adobe/react-spectrum/pull/3605) |
| 77 | +- Export `FocusVisibleProps` - [@warsawgentleman](https://github.com/warsawgentleman) - [PR](https://github.com/adobe/react-spectrum/pull/3639) |
| 78 | +- Remove unneeded aria-checked from `useCheckbox` and `useSwitch` - [@tywayne](https://github.com/tywayne) - [PR](https://github.com/adobe/react-spectrum/pull/3687) |
| 79 | +- Fix dragging in `ListView` with selectionMode set to `none` - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/3696) |
| 80 | +- Add generic for `DatePickerStateOptions` - [@jason89521](https://github.com/jason89521) - [PR](https://github.com/adobe/react-spectrum/pull/3682) |
| 81 | +- Update date components to use `useFocusWithin` - [@ktabors](https://github.com/ktabors) - [PR](https://github.com/adobe/react-spectrum/pull/3694) |
| 82 | +- Wait until after a layout effect to prevent scroll in popovers - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/3697) |
| 83 | +- Add preventDefault to onDragEnter and onDragLeave for iPad - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/3723) |
| 84 | +- Fix types for labelProp (htmlFor) in `useTextField` - [@LosYear](https://github.com/LosYear) - [PR](https://github.com/adobe/react-spectrum/pull/3671) |
| 85 | +- Reset `NumberField` when value is `null` - [@lishichengyan](https://github.com/lishichengyan) - [PR](https://github.com/adobe/react-spectrum/pull/3709) |
| 86 | +- Fix `TextArea` not using full height when custom height provided - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/3720) |
| 87 | +- Fix `useListData` so that reorder operations are correctly inserted at the correct index - [@LFDanLu](https://github.com/LFDanLu) - [PR](https://github.com/adobe/react-spectrum/pull/3724) |
| 88 | + |
| 89 | +## Docs |
| 90 | +- Correction of a mistake in `useBreadCrumbs` - [@Zoe-CF](https://github.com/Zoe-CF) - [PR](https://github.com/adobe/react-spectrum/pull/3607) |
| 91 | +- Display monopackage "since" version for components in React Spectrum docs - [@dannify](https://github.com/dannify) - [PR](https://github.com/adobe/react-spectrum/pull/3609) |
| 92 | +- Add link to Spectrum styling page to docs - [@matthewdeutsch](https://github.com/matthewdeutsch) - [PR](https://github.com/adobe/react-spectrum/pull/3596) |
| 93 | +- Update copy relating to theming - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/3622) |
| 94 | + |
| 95 | +## Under construction |
| 96 | +Fixes to pre-released components are listed below. Please feel free to try them out, and report any issues you encounter. |
| 97 | + |
| 98 | +- Update `TagGroup` to use keys instead of value - [@tiffany-sy-lin](https://github.com/tiffany-sy-lin) - [PR](https://github.com/adobe/react-spectrum/pull/3692) |
| 99 | +- Fix `ColorWheel` layout in a `Form` - [@lishichengyan](https://github.com/lishichengyan) - [PR](https://github.com/adobe/react-spectrum/pull/3705) |
| 100 | +- Update `TagGroup` types - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/3728) |
| 101 | + |
| 102 | +### TagGroup updates |
| 103 | +We have made improvements to the `TagGroup` component, and it is now entering beta. This includes a few breaking changes. |
| 104 | + |
| 105 | +- `isDisabled` and `disabledKeys` props have been removed. |
| 106 | +- `isRemovable` has been renamed to `allowsRemoving`. |
| 107 | +- `onRemove` now passes the removed key instead of its children and press event. |
| 108 | + |
| 109 | + |
| 110 | +## Released packages |
| 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 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 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-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-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-stately/[email protected] |
| 230 | +- @react-stately/[email protected] |
| 231 | +- @react-stately/[email protected] |
| 232 | +- @react-stately/[email protected] |
| 233 | +- @react-stately/[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 | + |
| 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 | + |
| 277 | + |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | +- @spectrum-icons/[email protected] |
| 289 | +- @spectrum-icons/[email protected] |
| 290 | +- @spectrum-icons/[email protected] |
| 291 | +- @spectrum-icons/[email protected] |
| 292 | +- @spectrum-icons/[email protected] |
| 293 | + |
| 294 | + |
| 295 | +``` |
| 296 | + |
0 commit comments