|
4 | 4 |
|
5 | 5 | ### Breaking Changes |
6 | 6 |
|
| 7 | +Garden has transitioned from utilizing [Popper](https://popper.js.org/docs/) to |
| 8 | +adopting the enhanced [Floating UI](https://floating-ui.com/) library. In the |
| 9 | +past, Popper's [modifiers](https://popper.js.org/docs/v2/modifiers/) were |
| 10 | +directly accessible as component props, creating a rigid dependency that |
| 11 | +hindered updates to the positioning library. To address this, these properties |
| 12 | +have been removed since Floating UI is designed to intuitively handle component |
| 13 | +positioning in the majority of scenarios. Should you find yourself in need of |
| 14 | +specific functionality provided by the former modifiers, we encourage you to |
| 15 | +file an [issue](https://github.com/zendeskgarden/react-components/issues), |
| 16 | +making sure to mention the relevant Floating UI |
| 17 | +[middleware](https://floating-ui.com/docs/middleware) for clarity. Garden will |
| 18 | +consider additional positioning prop support on a case-by-case basis. |
| 19 | + |
7 | 20 | #### All Packages |
8 | 21 |
|
9 | 22 | - Garden v9 packages use `styled-components` version range `^5.1.0`. |
|
21 | 34 |
|
22 | 35 | #### @zendeskgarden/react-colorpickers |
23 | 36 |
|
| 37 | +- `ColorPickerDialog`: removed `popperModifiers` prop (see [note](#breaking-changes)) |
24 | 38 | - `ColorSwatch` |
25 | 39 | - The new `name` prop is required because the refactored component is now |
26 | 40 | backed by a native radio or checkbox group. |
27 | 41 | - Removed `rowIndex`, `colIndex`, `defaultRowIndex`, and `defaultColIndex`. |
28 | 42 | For the sake of accessibility, focus state should not be exposed or controlled. |
29 | | -- `ColorSwatchDialog`: same breaking changes as `ColorSwatch`. |
| 43 | +- `ColorSwatchDialog` |
| 44 | + - same breaking changes as `ColorSwatch`. |
| 45 | + - `popperModifiers` prop (see [note](#breaking-changes)) |
| 46 | + |
| 47 | +#### @zendeskgarden/react-datepickers |
| 48 | + |
| 49 | +- Removed `GardenPlacement` type export. Use `IDatePickerProps['placement']` instead. |
| 50 | +- `DatePicker` |
| 51 | + - removed `eventsEnabled` prop (no longer exposed by Floating UI) |
| 52 | + - removed `popperModifiers` prop (see [note](#breaking-changes)) |
| 53 | + |
| 54 | +#### @zendeskgarden/react-dropdowns |
| 55 | + |
| 56 | +- `Menu`: value `auto` is no longer valid for the `fallbackPlacements` prop. |
| 57 | + |
| 58 | +#### @zendeskgarden/react-modals |
| 59 | + |
| 60 | +- `TooltipModal`: removed `popperModifiers` prop (see [note](#breaking-changes)) |
30 | 61 |
|
31 | 62 | #### @zendeskgarden/react-theming |
32 | 63 |
|
33 | 64 | - Utility function `isRtl` has been removed. Use `props.theme.rtl` instead. |
34 | 65 | - Utility function `getDocument` has been removed. Use `useDocument` instead. |
35 | 66 |
|
| 67 | +#### @zendeskgarden/react-tooltips |
| 68 | + |
| 69 | +- `Tooltip` |
| 70 | + - removed `eventsEnabled` prop (no longer exposed by Floating UI) |
| 71 | + - removed `popperModifiers` prop (see [note](#breaking-changes)) |
| 72 | + |
36 | 73 | #### @zendeskgarden/react-utilities |
37 | 74 |
|
38 | 75 | - This package has been removed. |
|
0 commit comments