2
2
3
3
## v9
4
4
5
+ Upgrading from version 8 to version 9 includes handling both [ breaking
6
+ changes] ( #breaking-changes ) and [ deprecated components] ( #deprecated-components ) .
7
+ To ensure that existing code functions correctly with v9, it is essential to
8
+ address the breaking changes. Managing the deprecated components can be deferred
9
+ as a subsequent task to prepare for v10, where these components will be
10
+ completely removed.
11
+
5
12
### Breaking Changes
6
13
7
14
The theme object, along with its utility functions, introduce a minimal set of
@@ -33,6 +40,7 @@ consider additional positioning prop support on a case-by-case basis.
33
40
- ` react-theming@v9 ` uses version range ` ^4.2.0 || ^5.3.1 ` to support ` v8 ` to ` v9 ` upgrades.
34
41
35
42
- Garden v9 upgraded from ` react-merge-refs ` v1 to v2.
43
+
36
44
- The [ breaking
37
45
change] ( https://github.com/gregberge/react-merge-refs/blob/main/CHANGELOG.md#200-2022-06-19 )
38
46
exports ESM only.
@@ -41,6 +49,11 @@ consider additional positioning prop support on a case-by-case basis.
41
49
[ jest.config.js] ( https://github.com/zendeskgarden/react-components/blob/c2aa97d1edccfa0578ee5655b543ca6635767fb9/utils/test/jest.config.js#L28-L30 )
42
50
for details.
43
51
52
+ - The following breaking changes are listed alphabetically by package. While
53
+ individual packages can be upgraded one at a time,
54
+ [ @zendeskgarden/react-theming ] ( #zendeskgardenreact-theming ) must be upgraded
55
+ first.
56
+
44
57
#### @zendeskgarden/react-accordions
45
58
46
59
- The following React component prop types have changed:
@@ -70,16 +83,6 @@ consider additional positioning prop support on a case-by-case basis.
70
83
- Removed ` IBodyProps ` type export.
71
84
- ` Header.ItemIcon ` : ` HTMLAttributes<HTMLElement> ` -> ` SVGAttributes<SVGElement> `
72
85
- ` Nav.ItemIcon ` : ` HTMLAttributes<HTMLElement> ` -> ` SVGAttributes<SVGElement> `
73
- - Subcomponent exports have been deprecated and will be removed in a future major version. Update
74
- to subcomponent properties:
75
- - ` FooterItem ` -> ` Footer.Item `
76
- - ` HeaderItem ` -> ` Header.Item `
77
- - ` HeaderItemIcon ` -> ` Header.ItemIcon `
78
- - ` HeaderItemText ` -> ` Header.ItemText `
79
- - ` HeaderItemWrapper ` -> ` Header.ItemWrapper `
80
- - ` NavItem ` -> ` Nav.Item `
81
- - ` NavItemIcon ` -> ` Nav.ItemIcon `
82
- - ` NavItemText ` -> ` Nav.ItemText `
83
86
- Added ` Nav.List ` as a semantic wrapper for ` Nav.Item ` . See the
84
87
[ README] ( ../packages/chrome/README.md#usages ) for details.
85
88
@@ -116,11 +119,6 @@ consider additional positioning prop support on a case-by-case basis.
116
119
renamed to ` @zendeskgarden/react-dropdowns.legacy ` in ` v9 `
117
120
- ` Menu ` : value ` auto ` is no longer valid for the ` fallbackPlacements ` prop.
118
121
- Removed ` label ` prop from ` OptGroup ` . Use ` legend ` instead.
119
- - Subcomponent exports have been deprecated and will be removed in a future major version. Update
120
- to subcomponent properties:
121
- - ` Hint ` -> ` Field.Hint `
122
- - ` Label ` -> ` Field.Label `
123
- - ` Message ` -> ` Field.Message `
124
122
125
123
#### @zendeskgarden/react-forms
126
124
@@ -130,19 +128,12 @@ consider additional positioning prop support on a case-by-case basis.
130
128
- removed ` IIconProps ` . Use ` IFauxInputStartIconProps ` or ` IFauxInputEndIconProps ` instead.
131
129
- ` IMediaInputProps['start'] ` : ` any ` -> ` ReactElement `
132
130
- ` IMediaInputProps['end'] ` : ` any ` -> ` ReactElement `
133
- - Subcomponent exports have been deprecated and will be removed in a future major version. Update
134
- to subcomponent properties:
135
- - ` Hint ` -> ` Field.Hint `
136
- - ` Label ` -> ` Field.Label `
137
- - ` Message ` -> ` Field.Message `
138
131
139
132
#### @zendeskgarden/react-grid
140
133
141
134
- Exported constants prefixed with ` ARRAY_ ` no longer have a prefix.
142
135
- The following types have been removed: ` ALIGN_ITEMS ` , ` ALIGN_SELF ` , ` DIRECTION ` ,
143
136
` JUSTIFY_CONTENT ` , ` TEXT_ALIGN ` , ` GRID_NUMBER ` , ` BREAKPOINT ` , ` SPACE ` , and ` WRAP `
144
- - Subcomponent exports for ` Grid ` have been deprecated and will be removed in a future major version.
145
- Update to subcomponent properties (e.g., ` Grid.Row ` ).
146
137
147
138
#### @zendeskgarden/react-modals
148
139
@@ -158,19 +149,12 @@ consider additional positioning prop support on a case-by-case basis.
158
149
[ @zendeskgarden/container-focusvisible ] ( https://www.npmjs.com/package/@zendeskgarden/container-focusvisible )
159
150
to restore the polyfill
160
151
- Removed ` GARDEN_PLACEMENT ` type export. Use ` ITooltipDialogProps['placement'] ` instead.
161
- - Subcomponent exports for ` Modal ` have been deprecated and will be removed in a future major version.
162
- Update to subcomponent properties (e.g., ` Modal.Body ` ).
163
152
164
153
#### @zendeskgarden/react-notification
165
154
166
155
- The following types have changed:
167
156
- removed ` ToastPlacement ` . Use ` IToastOptions['placement'] ` instead.
168
157
- removed ` ToastContent ` . Use ` IToast['content'] ` instead.
169
- - Subcomponent exports have been deprecated and will be removed in a future major version. Update
170
- to subcomponent properties:
171
- - ` Close ` -> ` Alert.Close ` , ` Notification.Close `
172
- - ` Paragraph ` -> ` Alert.Paragraph ` , ` Notification.Paragraph ` , ` Well.Paragraph `
173
- - ` Title ` -> ` Alert.Title ` , ` Notification.Title ` , ` Well.Title `
174
158
175
159
#### @zendeskgarden/react-pagination
176
160
@@ -182,15 +166,8 @@ consider additional positioning prop support on a case-by-case basis.
182
166
183
167
#### @zendeskgarden/react-tables
184
168
185
- - All subcomponent exports have been deprecated and will be removed in a future major version.
186
- Update to subcomponent properties (e.g., ` Table.Body ` ).
187
169
- Removed ` isHovered ` , ` isActive ` , and ` isFocused ` props from ` Table.OverflowButton `
188
170
189
- #### @zendeskgarden/react-tabs
190
-
191
- - All subcomponent exports have been deprecated and will be removed in a future major version.
192
- Update to subcomponent properties (e.g., ` Tabs.TabList ` ).
193
-
194
171
#### @zendeskgarden/react-theming
195
172
196
173
- The default ` theme ` object has removed values for ` colors.background ` and
@@ -230,8 +207,6 @@ consider additional positioning prop support on a case-by-case basis.
230
207
- ` Tooltip `
231
208
- removed ` eventsEnabled ` prop (no longer exposed by Floating UI)
232
209
- removed ` popperModifiers ` prop (see [ note] ( #breaking-changes ) )
233
- - All subcomponent exports have been deprecated and will be removed in a future major version.
234
- Update to subcomponent properties (e.g., ` Tooltip.Title ` ).
235
210
236
211
#### @zendeskgarden/react-typography
237
212
@@ -251,6 +226,81 @@ consider additional positioning prop support on a case-by-case basis.
251
226
- Migrate to ` @zendeskgarden/container-utilities ` and ` @zendeskgarden/react-theming ` to continue
252
227
receiving updates.
253
228
229
+ ### Deprecated components
230
+
231
+ The following subcomponents have been renamed to streamline imports and improve
232
+ affinity with their parent components. The deprecated exports will be removed in
233
+ a future major release. Use the following mappings to update subcomponent
234
+ properties.
235
+
236
+ <!-- markdownlint-disable MD024 -->
237
+
238
+ #### @zendeskgarden/react-chrome
239
+
240
+ - ` FooterItem ` -> ` Footer.Item `
241
+ - ` HeaderItem ` -> ` Header.Item `
242
+ - ` HeaderItemIcon ` -> ` Header.ItemIcon `
243
+ - ` HeaderItemText ` -> ` Header.ItemText `
244
+ - ` HeaderItemWrapper ` -> ` Header.ItemWrapper `
245
+ - ` NavItem ` -> ` Nav.Item `
246
+ - ` NavItemIcon ` -> ` Nav.ItemIcon `
247
+ - ` NavItemText ` -> ` Nav.ItemText `
248
+
249
+ #### @zendeskgarden/react-dropdowns
250
+
251
+ - ` Hint ` -> ` Field.Hint `
252
+ - ` Label ` -> ` Field.Label `
253
+ - ` Message ` -> ` Field.Message `
254
+
255
+ #### @zendeskgarden/react-forms
256
+
257
+ - ` Hint ` -> ` Field.Hint `
258
+ - ` Label ` -> ` Field.Label `
259
+ - ` Message ` -> ` Field.Message `
260
+
261
+ #### @zendeskgarden/react-grid
262
+
263
+ - ` Col ` -> ` Grid.Col `
264
+ - ` Row ` -> ` Grid.Row `
265
+
266
+ #### @zendeskgarden/react-modals
267
+
268
+ - ` Body ` -> ` Modal.Body `
269
+ - ` Close ` -> ` Modal.Close `
270
+ - ` Footer ` -> ` Modal.Footer `
271
+ - ` FooterItem ` -> ` Modal.FooterItem `
272
+ - ` Header ` -> ` Modal.Header `
273
+
274
+ #### @zendeskgarden/react-notification
275
+
276
+ - ` Close ` -> ` Alert.Close ` , ` Notification.Close `
277
+ - ` Paragraph ` -> ` Alert.Paragraph ` , ` Notification.Paragraph ` , ` Well.Paragraph `
278
+ - ` Title ` -> ` Alert.Title ` , ` Notification.Title ` , ` Well.Title `
279
+
280
+ #### @zendeskgarden/react-tables
281
+
282
+ - ` Body ` -> ` Table.Body `
283
+ - ` Caption ` -> ` Table.Caption `
284
+ - ` Cell ` -> ` Table.Cell `
285
+ - ` GroupRow ` -> ` Table.GroupRow `
286
+ - ` Head ` -> ` Table.Head `
287
+ - ` HeaderCell ` -> ` Table.HeaderCell `
288
+ - ` HeaderRow ` -> ` Table.HeaderRow `
289
+ - ` OverflowButton ` -> ` Table.OverflowButton `
290
+ - ` Row ` -> ` Table.Row `
291
+ - ` SortableCell ` -> ` Table.SortableCell `
292
+
293
+ #### @zendeskgarden/react-tabs
294
+
295
+ - ` Tab ` -> ` Tabs.Tab `
296
+ - ` TabList ` -> ` Tabs.TabList `
297
+ - ` TabPanel ` -> ` Tabs.TabPanel `
298
+
299
+ #### @zendeskgarden/react-tooltips
300
+
301
+ - ` Paragraph ` -> ` Tooltip.Paragraph `
302
+ - ` Title ` -> ` Tooltip.Title `
303
+
254
304
## v8
255
305
256
306
[ Migration Guide] ( https://github.com/zendeskgarden/react-components/blob/main/docs/migrations/v8.md )
0 commit comments