@mui/x-tree-view 7.19.0 → 7.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/CHANGELOG.md +224 -43
  2. package/RichTreeView/RichTreeView.js +14 -53
  3. package/SimpleTreeView/SimpleTreeView.js +8 -8
  4. package/TreeItem/TreeItem.js +25 -12
  5. package/TreeItem/TreeItem.types.d.ts +6 -4
  6. package/TreeItem/TreeItemContent.d.ts +5 -5
  7. package/TreeItem/TreeItemContent.js +29 -33
  8. package/TreeItem/treeItemClasses.d.ts +1 -1
  9. package/TreeItem2/TreeItem2.types.d.ts +1 -1
  10. package/TreeItem2DragAndDropOverlay/TreeItem2DragAndDropOverlay.js +7 -7
  11. package/TreeItem2Icon/TreeItem2Icon.types.d.ts +1 -1
  12. package/TreeView/TreeView.d.ts +1 -1
  13. package/TreeView/TreeView.js +8 -8
  14. package/index.js +1 -1
  15. package/internals/components/RichTreeViewItems.d.ts +35 -0
  16. package/internals/components/RichTreeViewItems.js +56 -0
  17. package/internals/corePlugins/corePlugins.d.ts +1 -1
  18. package/internals/corePlugins/corePlugins.js +1 -1
  19. package/internals/corePlugins/useTreeViewId/useTreeViewId.js +3 -3
  20. package/internals/corePlugins/useTreeViewId/useTreeViewId.types.d.ts +1 -1
  21. package/internals/corePlugins/useTreeViewId/useTreeViewId.utils.d.ts +1 -1
  22. package/internals/corePlugins/useTreeViewId/useTreeViewId.utils.js +1 -1
  23. package/internals/index.d.ts +1 -0
  24. package/internals/index.js +1 -0
  25. package/internals/models/treeView.d.ts +2 -2
  26. package/internals/plugins/useTreeViewExpansion/useTreeViewExpansion.types.d.ts +2 -2
  27. package/internals/plugins/useTreeViewFocus/useTreeViewFocus.types.d.ts +1 -1
  28. package/internals/plugins/useTreeViewIcons/useTreeViewIcons.types.d.ts +1 -1
  29. package/internals/plugins/useTreeViewItems/index.d.ts +1 -1
  30. package/internals/plugins/useTreeViewItems/useTreeViewItems.types.d.ts +8 -8
  31. package/internals/plugins/useTreeViewJSXItems/useTreeViewJSXItems.js +1 -1
  32. package/internals/plugins/useTreeViewKeyboardNavigation/useTreeViewKeyboardNavigation.js +3 -3
  33. package/internals/plugins/useTreeViewLabel/useTreeViewLabel.js +1 -1
  34. package/internals/plugins/useTreeViewLabel/useTreeViewLabel.types.d.ts +1 -1
  35. package/internals/plugins/useTreeViewSelection/useTreeViewSelection.types.d.ts +3 -3
  36. package/modern/RichTreeView/RichTreeView.js +14 -53
  37. package/modern/SimpleTreeView/SimpleTreeView.js +8 -8
  38. package/modern/TreeItem/TreeItem.js +25 -12
  39. package/modern/TreeItem/TreeItemContent.js +29 -33
  40. package/modern/TreeItem2DragAndDropOverlay/TreeItem2DragAndDropOverlay.js +7 -7
  41. package/modern/TreeView/TreeView.js +8 -8
  42. package/modern/index.js +1 -1
  43. package/modern/internals/components/RichTreeViewItems.js +56 -0
  44. package/modern/internals/corePlugins/corePlugins.js +1 -1
  45. package/modern/internals/corePlugins/useTreeViewId/useTreeViewId.js +3 -3
  46. package/modern/internals/corePlugins/useTreeViewId/useTreeViewId.utils.js +1 -1
  47. package/modern/internals/index.js +1 -0
  48. package/modern/internals/plugins/useTreeViewJSXItems/useTreeViewJSXItems.js +1 -1
  49. package/modern/internals/plugins/useTreeViewKeyboardNavigation/useTreeViewKeyboardNavigation.js +3 -3
  50. package/modern/internals/plugins/useTreeViewLabel/useTreeViewLabel.js +1 -1
  51. package/modern/useTreeItem2/useTreeItem2.js +11 -11
  52. package/node/RichTreeView/RichTreeView.js +14 -53
  53. package/node/SimpleTreeView/SimpleTreeView.js +8 -8
  54. package/node/TreeItem/TreeItem.js +25 -12
  55. package/node/TreeItem/TreeItemContent.js +29 -33
  56. package/node/TreeItem2DragAndDropOverlay/TreeItem2DragAndDropOverlay.js +7 -7
  57. package/node/TreeView/TreeView.js +8 -8
  58. package/node/index.js +1 -1
  59. package/node/internals/components/RichTreeViewItems.js +64 -0
  60. package/node/internals/corePlugins/corePlugins.js +1 -1
  61. package/node/internals/corePlugins/useTreeViewId/useTreeViewId.js +3 -3
  62. package/node/internals/corePlugins/useTreeViewId/useTreeViewId.utils.js +1 -1
  63. package/node/internals/index.js +7 -0
  64. package/node/internals/plugins/useTreeViewJSXItems/useTreeViewJSXItems.js +1 -1
  65. package/node/internals/plugins/useTreeViewKeyboardNavigation/useTreeViewKeyboardNavigation.js +3 -3
  66. package/node/internals/plugins/useTreeViewLabel/useTreeViewLabel.js +1 -1
  67. package/node/useTreeItem2/useTreeItem2.js +11 -11
  68. package/package.json +4 -4
  69. package/useTreeItem2/index.d.ts +1 -1
  70. package/useTreeItem2/useTreeItem2.js +11 -11
  71. package/useTreeItem2/useTreeItem2.types.d.ts +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,185 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.21.0
7
+
8
+ _Oct 17, 2024_
9
+
10
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 💫 Added [`dataset` prop support for the Scatter Chart component](https://mui.com/x/react-charts/scatter/#using-a-dataset)
13
+ - 🐞 Bugfixes
14
+ - 📚 Documentation improvements
15
+
16
+ Special thanks go out to the community contributors who have helped make this release possible:
17
+ @k-rajat19, @kalyan90, @rotembarsela, @wangkailang.
18
+ Following are all team members who have contributed to this release:
19
+ @arthurbalduini, @cherniavskii, @flaviendelangle, @JCQuintas, @LukasTy, @MBilalShafi, @arminmeh, @romgrk, @KenanYusuf, @oliviertassinari, @samuelsycamore.
20
+
21
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
22
+
23
+ ### Data Grid
24
+
25
+ #### `@mui/x-data-grid@7.21.0`
26
+
27
+ - [DataGrid] Fix `onRowSelectionModelChange` firing unnecessarily on initial render (#14909) @MBilalShafi
28
+ - [DataGrid] Fix `onRowSelectionModelChange` not being called after row is removed (#14972) @arminmeh
29
+ - [DataGrid] Fix pagination scrollbar issue on small zoom (#14911) @cherniavskii
30
+ - [DataGrid] Fix scroll jumping (#14929) @romgrk
31
+ - [DataGrid] Fix excessive white space at the end of the Data Grid (#14864) @kalyan90
32
+
33
+ #### `@mui/x-data-grid-pro@7.21.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
34
+
35
+ Same changes as in `@mui/x-data-grid@7.21.0`, plus:
36
+
37
+ - [DataGridPro] Fix indeterminate checkbox state for server-side data (#14956) @MBilalShafi
38
+ - [DataGridPro] Fix scrolling performance when `rowHeight={undefined}` (#14983) @cherniavskii
39
+ - [DataGridPro] List view (#14393) @KenanYusuf @cherniavskii
40
+
41
+ #### `@mui/x-data-grid-premium@7.21.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
42
+
43
+ Same changes as in `@mui/x-data-grid-pro@7.21.0`.
44
+
45
+ ### Date and Time Pickers
46
+
47
+ #### `@mui/x-date-pickers@7.21.0`
48
+
49
+ - [pickers] Cleanup `PageUp` and `PageDown` event handlers on time components (#14928) @arthurbalduini
50
+ - [pickers] Create the new picker's `ownerState` object (#14889) @flaviendelangle
51
+ - [pickers] Fix `PickerValidDate` usage in the Date Range Picker Toolbar (#14925) @flaviendelangle
52
+
53
+ #### `@mui/x-date-pickers-pro@7.21.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
54
+
55
+ Same changes as in `@mui/x-date-pickers@7.21.0`.
56
+
57
+ ### Charts
58
+
59
+ #### `@mui/x-charts@7.21.0`
60
+
61
+ - [charts] Allow `dataset` to be used with the Scatter Chart (#14915) @JCQuintas
62
+ - [charts] Ensure `reduce motion` preference disables animation on page load (#14417) @JCQuintas
63
+
64
+ #### `@mui/x-charts-pro@7.0.0-beta.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
65
+
66
+ Same changes as in `@mui/x-charts@7.21.0`.
67
+
68
+ ### Tree View
69
+
70
+ #### `@mui/x-tree-view@7.21.0`
71
+
72
+ - [TreeView] Fix `alpha` usage with CSS variables (#14969) @wangkailang
73
+ - [TreeView] Fix usage of the `aria-selected` attribute (#14991) @flaviendelangle
74
+ - [TreeView] Fix hydration error (#15002) @flaviendelangle
75
+
76
+ ### `@mui/x-codemod@7.21.0`
77
+
78
+ - [codemod] Add a new utility to rename imports (#14919) @flaviendelangle
79
+
80
+ ### Docs
81
+
82
+ - [docs] Add recipe showing how to toggle detail panels on row click (#14666) @k-rajat19
83
+ - [docs] Fix broken link to the validation section in the Data grid component (#14973) @arminmeh
84
+ - [docs] Update v5 migration codesandbox @oliviertassinari
85
+ - [docs] Enforce component style rules for the Tree View (#14963) @samuelsycamore
86
+
87
+ ### Core
88
+
89
+ - [core] Fix shortcut with localization keyboard (#14220) @rotembarsela
90
+ - [core] Fix docs deploy command (#14920) @arminmeh
91
+ - [code-infra] Prepare some tests to work in `vitest/playwright` (#14926) @JCQuintas
92
+ - [test] Fix `AdapterDayjs` coverage calculation (#14957) @LukasTy
93
+ - [test] Fix split infinitive API convention use @oliviertassinari
94
+
95
+ ## 7.20.0
96
+
97
+ _Oct 11, 2024_
98
+
99
+ We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
100
+
101
+ - 📚 Updated ["What's new"](https://mui.com/x/whats-new/) page giving more detailed overview of the latest new features and other highlights
102
+ - 📚 New [collapsible column groups demo](https://mui.com/x/react-data-grid/column-groups/#collapsible-column-groups) for the Data Grid component
103
+ - 📚 New [Tree Item Customization](https://mui.com/x/react-tree-view/tree-item-customization/) documentation to learn how to use the new APIs to create custom Tree Items. The old APIs (`props.ContentComponent` and `props.ContentProps`) have been deprecated and will be removed in the new major version of the Tree View component.
104
+ - 🌍 Improve Japanese (ja-JP) locale on the Data Grid component
105
+ - 🐞 Bugfixes
106
+ - 📚 Other documentation improvements
107
+
108
+ Special thanks go out to the community contributors who have helped make this release possible:
109
+ @k-rajat19, @kalyan90, @uma-neko, @vfbiby.
110
+ Following are all team members who have contributed to this release: @alelthomas, @arminmeh, @arthurbalduini,
111
+ @cherniavskii, @flaviendelangle, @JCQuintas, @MBilalShafi, @noraleonte, @oliviertassinari, @samuelsycamore, @siriwatknp.
112
+
113
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
114
+
115
+ ### Data Grid
116
+
117
+ #### `@mui/x-data-grid@7.20.0`
118
+
119
+ - [DataGrid] Add `onColumnHeaderContextMenu` event (#14734) @vfbiby
120
+ - [DataGrid] Avoid row spanning computation of outdated rows (#14902) @MBilalShafi
121
+ - [DataGrid] Fix scrollbar position not being updated after `scrollToIndexes` (#14888) @arminmeh
122
+ - [DataGrid] Pass `rowId` param to `processRowUpdate` (#14821) @k-rajat19
123
+ - [l10n] Improve Japanese (ja-JP) locale (#14870) @uma-neko
124
+
125
+ #### `@mui/x-data-grid-pro@7.20.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
126
+
127
+ Same changes as in `@mui/x-data-grid@7.20.0`, plus:
128
+
129
+ - [DataGridPro] Fix wording on the `rowSelectionPropagation` JSDoc and doc section (#14907) @flaviendelangle
130
+
131
+ #### `@mui/x-data-grid-premium@7.20.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
132
+
133
+ Same changes as in `@mui/x-data-grid-pro@7.20.0`.
134
+
135
+ ### Date and Time Pickers
136
+
137
+ #### `@mui/x-date-pickers@7.20.0`
138
+
139
+ - [pickers] Add `PageUp` and `PageDown` support for time components (#14812) @arthurbalduini
140
+ - [pickers] Fix regression on `PickerValidDate` (#14896) @flaviendelangle
141
+ - [pickers] Move the `DateFieldInPickerProps` interface to the `DatePicker` folder and rename it `DatePickerFieldProps` (same for time and date time) (#14828) @flaviendelangle
142
+
143
+ #### `@mui/x-date-pickers-pro@7.20.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
144
+
145
+ Same changes as in `@mui/x-date-pickers@7.20.0`.
146
+
147
+ ### Charts
148
+
149
+ #### `@mui/x-charts@7.20.0`
150
+
151
+ No changes since `@mui/x-charts@v7.19.0`.
152
+
153
+ #### `@mui/x-charts-pro@7.0.0-beta.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
154
+
155
+ Same changes as in `@mui/x-charts@7.20.0`.
156
+
157
+ ### Tree View
158
+
159
+ #### `@mui/x-tree-view@7.20.0`
160
+
161
+ - [TreeItem] Deprecate the `ContentComponent` and `ContentProps` props (#14908) @flaviendelangle
162
+ - [TreeView] Rework how items are being rendered in Rich Tree View components (#14749) @flaviendelangle
163
+
164
+ ### Docs
165
+
166
+ - [docs] Update "What's new" page (#14858) @cherniavskii
167
+ - [docs] Add collapsible column groups demo (#14818) @cherniavskii
168
+ - [docs] Add custom columns panel demo (#14825) @cherniavskii
169
+ - [docs] Capitalize all instances of "Data Grid" (#14884) @samuelsycamore
170
+ - [docs] Divide charts `tooltip` and `highlighting` pages (#14824) @JCQuintas
171
+ - [docs] Document the `<TreeItem2 />` component and the `useTreeItem2` hook (#14551) @noraleonte
172
+ - [docs] Fix column pinning for "Disable detail panel content scroll" section (#14854 and #14885) @kalyan90
173
+ - [docs] Fix detail panel demo not working well with pinned columns (#14883) @cherniavskii
174
+ - [docs] New recipe of a read-only field (#14606) @flaviendelangle
175
+ - [docs] Change demo name example (#14822) @alelthomas
176
+
177
+ ### Core
178
+
179
+ - [core] Support `@mui/utils` v6 (#14867) @siriwatknp
180
+ - [code-infra] Remove deprecated `data-mui-test` in favour of `data-testid` (#14882) @JCQuintas
181
+ - [code-infra] Update renovate config and add a `vitest` group (#14856) @JCQuintas
182
+ - [test] Replace `waitFor()` with `act()` (#14851) @oliviertassinari
183
+ - [test] Restore "pnpm tc" CLI (#14852) @oliviertassinari
184
+
6
185
  ## 7.19.0
7
186
 
8
187
  _Oct 4, 2024_
@@ -90,13 +269,13 @@ Same changes as in `@mui/x-charts@7.19.0`.
90
269
 
91
270
  - [TreeView] Apply experimental features in `getDefaultizedParams` instead of in the plugin render (#14661) @flaviendelangle
92
271
  - [TreeView] Export `publicAPI` form `useTreeItem2Utils` (#14729) @noraleonte
93
- - [TreeView] Fix cursor navigation interfering with browser shortcut keys (#14798) @sai6855
272
+ - [TreeView] Fix cursor navigation interfering with browser shortcut keys (#14798) @sai6855
94
273
  - [TreeView] Fix invalid test for items reordering (#14665) @flaviendelangle
95
274
  - [TreeView] Remove `instance.getTreeItemIdAttribute` (#14667) @flaviendelangle
96
275
 
97
276
  ### Docs
98
277
 
99
- - [docs] Added warning callout for Firefox reordering bug (#14516) @michelengelen
278
+ - [docs] Added warning callout for Firefox reordering bug (#14516) @michelengelen
100
279
  - [docs] Copyedit `pages.ts` navigation (#14782) @samuelsycamore
101
280
  - [docs] Fix typo in row spanning doc (#14770) @flaviendelangle
102
281
  - [docs] Fix typo in the Tree View migration guide to v7 (#14727) @Sanderand
@@ -121,7 +300,7 @@ We'd like to offer a big thanks to the 14 contributors who made this release pos
121
300
 
122
301
  - 💫 Support [Row spanning](https://mui.com/x/react-data-grid/row-spanning/) on the Data Grid that automatically merges the consecutive cells in a column based on the cell value
123
302
 
124
- <img width="600" src="https://github.com/user-attachments/assets/d32ec936-d238-4c92-9e1a-af6788d74cdf" alt="data grid row spanning" />
303
+ <img width="600" src="https://github.com/user-attachments/assets/d32ec936-d238-4c92-9e1a-af6788d74cdf" alt="Data Grid row spanning" />
125
304
 
126
305
  - ⏰ Support `date-fns` v4 (#14673) @LukasTy
127
306
  - 🎉 Add option for Pickers to change the order of displayed years (#11780) @thomasmoon
@@ -277,7 +456,7 @@ Same changes as in `@mui/x-charts@7.17.0`.
277
456
 
278
457
  ### Docs
279
458
 
280
- - [docs] Add missing callout on "Imperative API" tree view sections (#14503) @flaviendelangle
459
+ - [docs] Add missing callout on "Imperative API" Tree View sections (#14503) @flaviendelangle
281
460
  - [docs] Fix broken redirection to MUI X v5 @oliviertassinari
282
461
  - [docs] Fix multiple `console.error` messages on `charts` docs (#14554) @JCQuintas
283
462
  - [docs] Fixed typo in Row Grouping recipes (#14549) @Miodini
@@ -560,7 +739,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
560
739
  #### `@mui/x-data-grid@7.13.0`
561
740
 
562
741
  - [DataGrid] Fix CSV export for `null` and `undefined` values (#14166) @k-rajat19
563
- - [DataGrid] Fix error logged during skeleton loading with nested data grid (#14186) @KenanYusuf
742
+ - [DataGrid] Fix error logged during skeleton loading with nested Data Grid (#14186) @KenanYusuf
564
743
  - [DataGrid] Remove needless check in `useGridStateInitialization` (#14181) @k-rajat19
565
744
  - [DataGrid] Add recipe for persisting filters in local storage (#14208) @cherniavskii
566
745
  - [l10n] Improve Vietnamese (vi-VN) locale (#14216) @hungnd-casso
@@ -618,7 +797,7 @@ Same changes as in `@mui/x-charts@7.13.0`.
618
797
  - [core] Fix ESLint issue (#14207) @LukasTy
619
798
  - [core] Fix Netlify build cache issue (#14182) @cherniavskii
620
799
  - [code-infra] Refactor Netlify `cache-docs` plugin setup (#14105) @LukasTy
621
- - [internals] Move utils needed for tree view virtualization to shared package (#14202) @flaviendelangle
800
+ - [internals] Move utils needed for Tree View virtualization to shared package (#14202) @flaviendelangle
622
801
 
623
802
  ## 7.12.1
624
803
 
@@ -678,6 +857,8 @@ Same changes as in `@mui/x-charts@7.12.1`, plus:
678
857
 
679
858
  #### `@mui/x-tree-view@7.12.1`
680
859
 
860
+ No changes since `@mui/x-tree-view@7.12.0`.
861
+
681
862
  ### Docs
682
863
 
683
864
  - [docs] Add a warning to promote the usage of `updateRows` (#14027) @MBilalShafi
@@ -707,7 +888,7 @@ This expansion of the Pro plan comes with some adjustments to our pricing strate
707
888
 
708
889
  We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
709
890
 
710
- - 🎁 Introduce [item reordering using drag and drop](https://mui.com/x/react-tree-view/rich-tree-view/ordering/) on the `RichTreeViewPro` component
891
+ - 🎁 Introduce [item reordering using drag and drop](https://mui.com/x/react-tree-view/rich-tree-view/ordering/) on the `<RichTreeViewPro />` component
711
892
 
712
893
  <img width="287" src="https://github.com/user-attachments/assets/78bd83c5-7ce4-4ed7-acf9-be70b2dbce54" alt="Item reordering using drag and drop" />
713
894
 
@@ -1200,7 +1381,7 @@ Same changes as in `@mui/x-date-pickers@7.8.0`.
1200
1381
 
1201
1382
  - [core] Add eslint rule to restrict import from `../internals` root (#13633) @JCQuintas
1202
1383
  - [docs-infra] Sync `\_app` folder with monorepo (#13582) @Janpot
1203
- - [license] Allow usage of charts and tree view pro package for old premium licenses (#13619) @flaviendelangle
1384
+ - [license] Allow usage of Charts and Tree View Pro package for old premium licenses (#13619) @flaviendelangle
1204
1385
 
1205
1386
  ## 7.7.1
1206
1387
 
@@ -1268,7 +1449,7 @@ Same changes as in `@mui/x-date-pickers@7.7.1`, plus:
1268
1449
  - [TreeView] Improve typing to support optional dependencies in plugins and in the item (#13523) @flaviendelangle
1269
1450
  - [TreeView] Move `useTreeViewId` to the core plugins (#13566) @flaviendelangle
1270
1451
  - [TreeView] Remove unused state from `useTreeViewId` (#13579) @flaviendelangle
1271
- - [TreeView] Support `itemId` with escaping characters when using `SimpleTreeView` (#13487) @oukunan
1452
+ - [TreeView] Support `itemId` with escaping characters when using Simple Tree View (#13487) @oukunan
1272
1453
 
1273
1454
  ### Docs
1274
1455
 
@@ -1348,7 +1529,7 @@ Same changes as in `@mui/x-date-pickers@7.7.0`.
1348
1529
  - [TreeView] Improve TypeScript for plugins (#13380) @flaviendelangle
1349
1530
  - [TreeView] Improve the typing of the cancelable events (#13152) @flaviendelangle
1350
1531
  - [TreeView] Prepare support for PigmentCSS (#13412) @flaviendelangle
1351
- - [TreeView] Refactor the tree view internals to prepare for headless API (#13311) @flaviendelangle
1532
+ - [TreeView] Refactor the Tree View internals to prepare for headless API (#13311) @flaviendelangle
1352
1533
 
1353
1534
  ### Docs
1354
1535
 
@@ -1363,7 +1544,7 @@ Same changes as in `@mui/x-date-pickers@7.7.0`.
1363
1544
  - [core] Add `eslint-plugin-react-compiler` experimental version and rules (#13415) @JCQuintas
1364
1545
  - [core] Minor setup cleanup (#13467) @LukasTy
1365
1546
  - [infra] Adjust CI setup (#13448) @LukasTy
1366
- - [test] Add tests for the custom slots of `TreeItem2` (#13314) @flaviendelangle
1547
+ - [test] Add tests for the custom slots of `<TreeItem2 />` (#13314) @flaviendelangle
1367
1548
 
1368
1549
  ## 7.6.2
1369
1550
 
@@ -1528,7 +1709,7 @@ Same changes as in `@mui/x-date-pickers@7.6.0`.
1528
1709
  - [docs] Fix a small typo in property comment (#13245) @Janpot
1529
1710
  - [docs] Improve the Data Grid FAQ page (#13258) @MBilalShafi
1530
1711
  - [docs] Removes unused lines in TreeItem2 styling (#13264) @arthurbalduini
1531
- - [docs] Small improvements on accessibility data grid doc (#13233) @arthurbalduini
1712
+ - [docs] Small improvements on accessibility Data Grid doc (#13233) @arthurbalduini
1532
1713
  - [docs] Update Pickers demo configurations (#13303) @LukasTy
1533
1714
 
1534
1715
  ### Core
@@ -1542,13 +1723,13 @@ Same changes as in `@mui/x-date-pickers@7.6.0`.
1542
1723
  - [test] Use test-utils from npm (#12880) @michaldudak
1543
1724
  - [typescript] Remove duplicate `DateRangePosition` type in favor of `RangePosition` (#13288) @LukasTy
1544
1725
 
1545
- ## v7.5.1
1726
+ ## 7.5.1
1546
1727
 
1547
1728
  _May 23, 2024_
1548
1729
 
1549
1730
  We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
1550
1731
 
1551
- - 🧰 Improve tree view testing
1732
+ - 🧰 Improve Tree View testing
1552
1733
  - 📊 Add `label` to be displayed in BarChart
1553
1734
 
1554
1735
  ### Data Grid
@@ -1602,7 +1783,7 @@ Same changes as in `@mui/x-date-pickers@7.5.1`.
1602
1783
  - [code-infra] Run corepack enable on all CI jobs (#13205) @Janpot
1603
1784
  - [code-infra] Use `nx` for lerna tasks (#13166) @LukasTy
1604
1785
 
1605
- ## v7.5.0
1786
+ ## 7.5.0
1606
1787
 
1607
1788
  _May 17, 2024_
1608
1789
 
@@ -1724,7 +1905,7 @@ Same changes as in `@mui/x-date-pickers@7.4.0`.
1724
1905
 
1725
1906
  #### `@mui/x-tree-view@7.4.0`
1726
1907
 
1727
- - [TreeView] Fix props propagation and theme entry in `TreeItem2` (#12889) @flaviendelangle
1908
+ - [TreeView] Fix props propagation and theme entry in `<TreeItem2 />` (#12889) @flaviendelangle
1728
1909
 
1729
1910
  ### Docs
1730
1911
 
@@ -2034,7 +2215,7 @@ Same changes as in `@mui/x-date-pickers@7.2.0`, plus:
2034
2215
  ### Docs
2035
2216
 
2036
2217
  - [docs] Add `AxisFormatter` documentation for customizing tick/tooltip value formatting (#12700) @JCQuintas
2037
- - [docs] Add file explorer example to rich tree view customization docs (#12707) @noraleonte
2218
+ - [docs] Add file explorer example to rich Tree View customization docs (#12707) @noraleonte
2038
2219
  - [docs] Do not use import of depth 3 in the doc (#12716) @flaviendelangle
2039
2220
  - [docs] Explain how to clip plots with composition (#12679) @alexfauquette
2040
2221
  - [docs] Fix typo in Data Grid v7 migration page (#12720) @bfaulk96
@@ -2110,7 +2291,7 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
2110
2291
  #### `@mui/x-tree-view@7.1.1`
2111
2292
 
2112
2293
  - [TreeView] Add JSDoc to all `publicAPI` methods (#12649) @flaviendelangle
2113
- - [TreeView] Create `RichTreeViewPro` component (not released yet) (#12610) @flaviendelangle
2294
+ - [TreeView] Create `<RichTreeViewPro />` component (not released yet) (#12610) @flaviendelangle
2114
2295
  - [TreeView] Create Pro package (not released yet) (#12240) @flaviendelangle
2115
2296
  - [TreeView] Fix typo in errors (#12623) @alissa-tung
2116
2297
  - [TreeView] New API method: `setItemExpansion` (#12595) @flaviendelangle
@@ -2127,16 +2308,16 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
2127
2308
  - [docs] Fix typo in `getItemId` prop description (#12637) @flaviendelangle
2128
2309
  - [docs] Make the Charts `margin` usage more visible (#12591) @alexfauquette
2129
2310
  - [docs] Match IE 11 spacing with Material UI @oliviertassinari
2130
- - [docs] Move data grid interfaces to standard API page layout (#12016) @alexfauquette
2311
+ - [docs] Move Data Grid interfaces to standard API page layout (#12016) @alexfauquette
2131
2312
  - [docs] Remove ` around @default values (#12158) @alexfauquette
2132
2313
  - [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
2133
- - [docs] Use `TreeItem2` for icon expansion example on `RichTreeView` (#12563) @flaviendelangle
2314
+ - [docs] Use `<TreeItem2 />` for icon expansion example on `<RichTreeView />` (#12563) @flaviendelangle
2134
2315
 
2135
2316
  ### Core
2136
2317
 
2137
2318
  - [core] Add cherry-pick `master` to `v6` action (#12648) @LukasTy
2138
2319
  - [core] Fix typo in `@mui/x-tree-view-pro/themeAugmentation` (#12674) @flaviendelangle
2139
- - [core] Introduce `describeTreeView` to run test on `SimpleTreeView` and `RichTreeView`, using `TreeItem` and `TreeItem2` + migrate expansion tests (#12428) @flaviendelangle
2320
+ - [core] Introduce `describeTreeView` to run test on `<SimpleTreeView />` and `<RichTreeView />`, using `<TreeItem />` and `<TreeItem2 />` + migrate expansion tests (#12428) @flaviendelangle
2140
2321
  - [core] Limit `test-types` CI step allowed memory (#12651) @LukasTy
2141
2322
  - [core] Remove explicit `express` package (#12602) @LukasTy
2142
2323
  - [core] Update to new embedded translations in the docs package (#12232) @Janpot
@@ -2201,7 +2382,7 @@ Same changes as in `@mui/x-date-pickers@7.1.0`, plus:
2201
2382
 
2202
2383
  #### `@mui/x-tree-view@7.1.0`
2203
2384
 
2204
- - [TreeView] Do not use outdated version of the state to compute new label first char in `RichTreeView` (#12512) @flaviendelangle
2385
+ - [TreeView] Do not use outdated version of the state to compute new label first char in Rich Tree View (#12512) @flaviendelangle
2205
2386
 
2206
2387
  ### Docs
2207
2388
 
@@ -2328,7 +2509,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0`, plus:
2328
2509
 
2329
2510
  #### Breaking changes
2330
2511
 
2331
- - The required `nodeId` prop used by the `TreeItem` has been renamed to `itemId` for consistency:
2512
+ - The required `nodeId` prop used by `<TreeItem />` has been renamed to `itemId` for consistency:
2332
2513
 
2333
2514
  ```diff
2334
2515
  <TreeView>
@@ -2481,7 +2662,7 @@ The `onNodeFocus` callback has been renamed to `onItemFocus` for consistency:
2481
2662
  #### `@mui/x-tree-view@7.0.0-beta.7`
2482
2663
 
2483
2664
  - [TreeView] Clean the usage of the term "item" and "node" in API introduced during v7 (#12368) @noraleonte
2484
- - [TreeView] Introduce a new `TreeItem2` component and a new `useTreeItem2` hook (#11721) @flaviendelangle
2665
+ - [TreeView] Introduce a new `<TreeItem2 />` component and a new `useTreeItem2` hook (#11721) @flaviendelangle
2485
2666
  - [TreeView] Rename `onNodeFocus` to `onItemFocus` (#12419) @noraleonte
2486
2667
 
2487
2668
  ### Docs
@@ -2539,9 +2720,9 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.6`.
2539
2720
 
2540
2721
  #### Breaking changes
2541
2722
 
2542
- - The component used to animate the item children is now defined as a slot on the `TreeItem` component.
2723
+ - The component used to animate the item children is now defined as a slot on the `<TreeItem />` component.
2543
2724
 
2544
- If you were passing a `TransitionComponent` or `TransitionProps` to your `TreeItem` component,
2725
+ If you were passing a `TransitionComponent` or `TransitionProps` to your `<TreeItem />` component,
2545
2726
  you need to use the new `groupTransition` slot on this component:
2546
2727
 
2547
2728
  ```diff
@@ -2557,7 +2738,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.6`.
2557
2738
  </SimpleTreeView>
2558
2739
  ```
2559
2740
 
2560
- - The `group` class of the `TreeItem` component has been renamed to `groupTransition` to match with its new slot name.
2741
+ - The `group` class of the `<TreeItem />` component has been renamed to `groupTransition` to match with its new slot name.
2561
2742
 
2562
2743
  ```diff
2563
2744
  const StyledTreeItem = styled(TreeItem)({
@@ -2571,14 +2752,14 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.6`.
2571
2752
  #### `@mui/x-tree-view@7.0.0-beta.6`
2572
2753
 
2573
2754
  - [TreeView] Fix invalid nodes state when updating `props.items` (#12359) @flaviendelangle
2574
- - [TreeView] In the `RichTreeView`, do not use the item id as the HTML id attribute (#12319) @flaviendelangle
2755
+ - [TreeView] In the Rich Tree View, do not use the item id as the HTML id attribute (#12319) @flaviendelangle
2575
2756
  - [TreeView] New instance and publicAPI method: `getItem` (#12251) @flaviendelangle
2576
2757
  - [TreeView] Replace `TransitionComponent` and `TransitionProps` with a `groupTransition` slot (#12336) @flaviendelangle
2577
2758
 
2578
2759
  ### Docs
2579
2760
 
2580
2761
  - [docs] Add a note about `z-index` usage in SVG (#12337) @alexfauquette
2581
- - [docs] `RichTreeView` customization docs (#12231) @noraleonte
2762
+ - [docs] Rich Tree View customization docs (#12231) @noraleonte
2582
2763
 
2583
2764
  ### Core
2584
2765
 
@@ -3231,7 +3412,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.0`, plus:
3231
3412
 
3232
3413
  ### Docs
3233
3414
 
3234
- - [docs] Add `contextValue` to the headless tree view doc (#11705) @flaviendelangle
3415
+ - [docs] Add `contextValue` to the headless Tree View doc (#11705) @flaviendelangle
3235
3416
  - [docs] Add section for the `disableSelection` prop (#11821) @flaviendelangle
3236
3417
  - [docs] Fix brand name non-breaking space (#11758) @oliviertassinari
3237
3418
  - [docs] Fix typo in Data Grid components page (#11775) @flaviendelangle
@@ -3254,7 +3435,7 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
3254
3435
 
3255
3436
  - 🎁 The Data Grid headers have been refactored to bring immense improvements to scrolling, state management, and overall performance of the grid.
3256
3437
  - ⚙️ The Data Grid disabled column-specific features like filtering, sorting, grouping, etc. could now be accessed programmatically. See the related [docs](https://next.mui.com/x/react-data-grid/api-object/#access-the-disabled-column-features) section.
3257
- - 🚀 Uplift the `SimpleTreeView` customization examples (#11424) @noraleonte
3438
+ - 🚀 Uplift the Simple Tree View customization examples (#11424) @noraleonte
3258
3439
  - 🌍 Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11668) on the Data Grid @BCaspari
3259
3440
  - 🐞 Bugfixes
3260
3441
  - 💔 Bump `@mui/material` peer dependency for all packages (#11692) @LukasTy
@@ -3465,7 +3646,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.9`.
3465
3646
  ```
3466
3647
 
3467
3648
  - The `useTreeItem` hook has been renamed `useTreeItemState`.
3468
- This will help create a new headless version of the `TreeItem` component based on a future `useTreeItem` hook.
3649
+ This will help create a new headless version of the Tree Item component based on a future `useTreeItem` hook.
3469
3650
 
3470
3651
  ```diff
3471
3652
  -import { TreeItem, useTreeItem } from '@mui/x-tree-view/TreeItem';
@@ -3565,13 +3746,13 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.9`.
3565
3746
  - [docs] Cleanup and fix Pickers Playground styling (#11700) @LukasTy
3566
3747
  - [docs] First draft of the Tree View custom plugin doc (#11564) @flaviendelangle
3567
3748
  - [docs] Fix Pickers migration syntax and diffs (#11695) @LukasTy
3568
- - [docs] Fix generated tree view API docs (#11737) @LukasTy
3749
+ - [docs] Fix generated Tree View API docs (#11737) @LukasTy
3569
3750
  - [docs] Generate docs for Tree View slots (#11730) @flaviendelangle
3570
3751
  - [docs] Improve codemod for v7 (#11650) @oliviertassinari
3571
- - [docs] Improve data grid `pageSizeOptions` prop documentation (#11682) @oliviertassinari
3752
+ - [docs] Improve Data Grid `pageSizeOptions` prop documentation (#11682) @oliviertassinari
3572
3753
  - [docs] Parse markdown on API docs demo titles (#11728) @LukasTy
3573
3754
  - [docs] Remove the description from the `className` prop (#11693) @oliviertassinari
3574
- - [docs] Uplift `SimpleTreeView` customization examples (#11424) @noraleonte
3755
+ - [docs] Uplift Simple Tree View customization examples (#11424) @noraleonte
3575
3756
  - [docs] Uplift the Date Pickers playground (#11555) @danilo-leal
3576
3757
 
3577
3758
  ### Core
@@ -3648,16 +3829,16 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.8`.
3648
3829
 
3649
3830
  ### Tree View / `@mui/x-tree-view@7.0.0-alpha.8`
3650
3831
 
3651
- - [tree view] Cleanup `onKeyDown` handler (#11481) @flaviendelangle
3652
- - [tree view] Define the parameters used by each plugin to avoid listing them in each component (#11473) @flaviendelangle
3832
+ - [TreeView] Cleanup `onKeyDown` handler (#11481) @flaviendelangle
3833
+ - [TreeView] Define the parameters used by each plugin to avoid listing them in each component (#11473) @flaviendelangle
3653
3834
 
3654
3835
  ### Docs
3655
3836
 
3656
3837
  - [docs] Fix parsing of `x-date-pickers-pro` demo adapter imports (#11628) @LukasTy
3657
3838
  - [docs] Improve `git diff` format @oliviertassinari
3658
3839
  - [docs] Push up the MUI X brand (#11533) @oliviertassinari
3659
- - [docs] Remove old data grid translation files (#11646) @cherniavskii
3660
- - [docs] Improve Server-side data grid docs (#11589) @oliviertassinari
3840
+ - [docs] Remove old Data Grid translation files (#11646) @cherniavskii
3841
+ - [docs] Improve Server-side Data Grid docs (#11589) @oliviertassinari
3661
3842
  - [docs] Improve charts landing page (#11570) @oliviertassinari
3662
3843
 
3663
3844
  ### Core
@@ -3676,7 +3857,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
3676
3857
 
3677
3858
  - 🎁 New component to create a Tree View from a structured data source:
3678
3859
 
3679
- You can now directly pass your data to the `RichTreeView` component instead of manually converting it into JSX `TreeItem` components:
3860
+ You can now directly pass your data to the `<RichTreeView />` component instead of manually converting it into JSX `<TreeItem />` components:
3680
3861
 
3681
3862
  ```tsx
3682
3863
  const ITEMS = [
@@ -4167,7 +4348,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
4167
4348
 
4168
4349
  - The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
4169
4350
 
4170
- - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#data-grid-prop-filterDebounceMs) prop to customize filter debounce time.
4351
+ - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the Data Grid exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#data-grid-prop-filterDebounceMs) prop to customize filter debounce time.
4171
4352
 
4172
4353
  - The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
4173
4354
 
@@ -4879,7 +5060,7 @@ A special shoutout to thank the 12 contributors who made this release possible.
4879
5060
  - 🚀 First v7 alpha release
4880
5061
  - ✨ Fix aggregation label not showing when `renderHeader` is used (#10961) @cherniavskii
4881
5062
  - 📘 Server side data source [early documentation](https://mui.com/x/react-data-grid/server-side-data/)
4882
- - 💫 New recipes added for the data grid
5063
+ - 💫 New recipes added for the Data Grid
4883
5064
  - 📈 `<ChartsReferenceLine />` component is now available
4884
5065
  - 🌍 Add Basque (eu) locale, improve Czech (cs-CZ) and Spanish (es-ES) locales
4885
5066
  - 🐞 Bugfixes
@@ -5007,7 +5188,7 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
5007
5188
 
5008
5189
  ### Core
5009
5190
 
5010
- - [core] Adds migration docs for charts, pickers and tree view (#10926) @michelengelen
5191
+ - [core] Adds migration docs for Charts, Pickers, and Tree View (#10926) @michelengelen
5011
5192
  - [core] Bump monorepo (#10959) @LukasTy
5012
5193
  - [core] Changed prettier branch value to next (#10917) @michelengelen
5013
5194
  - [core] Fix GitHub title tag consistency @oliviertassinari
@@ -11,7 +11,7 @@ import { styled, createUseThemeProps } from "../internals/zero-styled/index.js";
11
11
  import { useTreeView } from "../internals/useTreeView/index.js";
12
12
  import { TreeViewProvider } from "../internals/TreeViewProvider/index.js";
13
13
  import { RICH_TREE_VIEW_PLUGINS } from "./RichTreeView.plugins.js";
14
- import { TreeItem } from "../TreeItem/index.js";
14
+ import { RichTreeViewItems } from "../internals/components/RichTreeViewItems.js";
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
16
  const useThemeProps = createUseThemeProps('MuiRichTreeView');
17
17
  const useUtilityClasses = ownerState => {
@@ -34,33 +34,6 @@ export const RichTreeViewRoot = styled('ul', {
34
34
  outline: 0,
35
35
  position: 'relative'
36
36
  });
37
- function WrappedTreeItem({
38
- slots,
39
- slotProps,
40
- label,
41
- id,
42
- itemId,
43
- children
44
- }) {
45
- const Item = slots?.item ?? TreeItem;
46
- const itemProps = useSlotProps({
47
- elementType: Item,
48
- externalSlotProps: slotProps?.item,
49
- additionalProps: {
50
- itemId,
51
- id,
52
- label
53
- },
54
- ownerState: {
55
- itemId,
56
- label
57
- }
58
- });
59
- return /*#__PURE__*/_jsx(Item, _extends({}, itemProps, {
60
- children: children
61
- }));
62
- }
63
-
64
37
  /**
65
38
  *
66
39
  * Demos:
@@ -78,7 +51,7 @@ const RichTreeView = /*#__PURE__*/React.forwardRef(function RichTreeView(inProps
78
51
  });
79
52
  if (process.env.NODE_ENV !== 'production') {
80
53
  if (props.children != null) {
81
- warnOnce(['MUI X: The `RichTreeView` component does not support JSX children.', 'If you want to add items, you need to use the `items` prop.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/.']);
54
+ warnOnce(['MUI X: The Rich Tree View component does not support JSX children.', 'If you want to add items, you need to use the `items` prop.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/.']);
82
55
  }
83
56
  }
84
57
  const {
@@ -103,26 +76,14 @@ const RichTreeView = /*#__PURE__*/React.forwardRef(function RichTreeView(inProps
103
76
  getSlotProps: getRootProps,
104
77
  ownerState: props
105
78
  });
106
- const itemsToRender = instance.getItemsToRender();
107
- const renderItem = ({
108
- label,
109
- itemId,
110
- id,
111
- children
112
- }) => {
113
- return /*#__PURE__*/_jsx(WrappedTreeItem, {
114
- slots: slots,
115
- slotProps: slotProps,
116
- label: label,
117
- id: id,
118
- itemId: itemId,
119
- children: children?.map(renderItem)
120
- }, itemId);
121
- };
122
79
  return /*#__PURE__*/_jsx(TreeViewProvider, {
123
80
  value: contextValue,
124
81
  children: /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {
125
- children: itemsToRender.map(renderItem)
82
+ children: /*#__PURE__*/_jsx(RichTreeViewItems, {
83
+ slots: slots,
84
+ slotProps: slotProps,
85
+ itemsToRender: instance.getItemsToRender()
86
+ })
126
87
  }))
127
88
  });
128
89
  });
@@ -147,7 +108,7 @@ process.env.NODE_ENV !== "production" ? RichTreeView.propTypes = {
147
108
  })
148
109
  }),
149
110
  /**
150
- * If `true`, the tree view renders a checkbox at the left of its label that allows selecting it.
111
+ * If `true`, the Tree View renders a checkbox at the left of its label that allows selecting it.
151
112
  * @default false
152
113
  */
153
114
  checkboxSelection: PropTypes.bool,
@@ -250,26 +211,26 @@ process.env.NODE_ENV !== "production" ? RichTreeView.propTypes = {
250
211
  */
251
212
  multiSelect: PropTypes.bool,
252
213
  /**
253
- * Callback fired when tree items are expanded/collapsed.
214
+ * Callback fired when Tree Items are expanded/collapsed.
254
215
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
255
216
  * @param {array} itemIds The ids of the expanded items.
256
217
  */
257
218
  onExpandedItemsChange: PropTypes.func,
258
219
  /**
259
- * Callback fired when the `content` slot of a given tree item is clicked.
220
+ * Callback fired when the `content` slot of a given Tree Item is clicked.
260
221
  * @param {React.MouseEvent} event The DOM event that triggered the change.
261
222
  * @param {string} itemId The id of the focused item.
262
223
  */
263
224
  onItemClick: PropTypes.func,
264
225
  /**
265
- * Callback fired when a tree item is expanded or collapsed.
226
+ * Callback fired when a Tree Item is expanded or collapsed.
266
227
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
267
228
  * @param {array} itemId The itemId of the modified item.
268
229
  * @param {array} isExpanded `true` if the item has just been expanded, `false` if it has just been collapsed.
269
230
  */
270
231
  onItemExpansionToggle: PropTypes.func,
271
232
  /**
272
- * Callback fired when a given tree item is focused.
233
+ * Callback fired when a given Tree Item is focused.
273
234
  * @param {React.SyntheticEvent | null} event The DOM event that triggered the change. **Warning**: This is a generic event not a focus event.
274
235
  * @param {string} itemId The id of the focused item.
275
236
  */
@@ -281,14 +242,14 @@ process.env.NODE_ENV !== "production" ? RichTreeView.propTypes = {
281
242
  */
282
243
  onItemLabelChange: PropTypes.func,
283
244
  /**
284
- * Callback fired when a tree item is selected or deselected.
245
+ * Callback fired when a Tree Item is selected or deselected.
285
246
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
286
247
  * @param {array} itemId The itemId of the modified item.
287
248
  * @param {array} isSelected `true` if the item has just been selected, `false` if it has just been deselected.
288
249
  */
289
250
  onItemSelectionToggle: PropTypes.func,
290
251
  /**
291
- * Callback fired when tree items are selected/deselected.
252
+ * Callback fired when Tree Items are selected/deselected.
292
253
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
293
254
  * @param {string[] | string} itemIds The ids of the selected items.
294
255
  * When `multiSelect` is `true`, this is an array of strings; when false (default) a string.