@mui/x-tree-view 7.0.0-beta.0 → 7.0.0-beta.3

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,335 @@
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
+ ## v7.0.0-beta.3
7
+
8
+ _Feb 16, 2024_
9
+
10
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Charts get a [built in grid](https://next.mui.com/x/react-charts/axis/#grid)
13
+
14
+ <img src="https://github.com/mui/mui-x/assets/45398769/74299f54-f020-4135-b38c-dc88a230db30" width="510" alt="Charts Grid" />
15
+
16
+ - 🎛️ Charts get a [Gauge component](https://next.mui.com/x/react-charts/gauge/).
17
+
18
+ <img src="https://github.com/mui/mui-x/assets/45398769/fb7a94b5-bef6-4fc2-a0cd-d6ff5b60fa8b" width="510" alt="Guage Chart" />
19
+
20
+ - 🐞 Bugfixes
21
+
22
+ - 📚 Documentation improvements
23
+
24
+ ### Data Grid
25
+
26
+ #### Breaking changes
27
+
28
+ - The `rowEditCommit` event and the related prop `onRowEditCommit` was removed. The [`processRowUpdate`](https://next.mui.com/x/react-data-grid/editing/#the-processrowupdate-callback) prop can be used in place.
29
+
30
+ #### `@mui/x-data-grid@7.0.0-beta.3`
31
+
32
+ - [DataGrid] Performance: avoid style invalidation (#12019) @romgrk
33
+ - [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12073) @MBilalShafi
34
+ - [DataGrid] Fix styling grid filter input single select (#11520) @FreakDroid
35
+
36
+ #### `@mui/x-data-grid-pro@7.0.0-beta.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
37
+
38
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.3`.
39
+
40
+ #### `@mui/x-data-grid-premium@7.0.0-beta.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
41
+
42
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
43
+
44
+ ### Charts / `@mui/x-charts@7.0.0-beta.3`
45
+
46
+ - [charts] Add Gauge component (#11996) @alexfauquette
47
+ - [charts] Add a `ChartsGrid` component (#11034) @alexfauquette
48
+
49
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.3`
50
+
51
+ - [TreeView] Remove instance existence checks (#12066) @flaviendelangle
52
+
53
+ ### Docs
54
+
55
+ - [docs] Complete charts API pages (#12038) @alexfauquette
56
+ - [docs] Add more illustrations to the charts overview page (#12041) @danilo-leal
57
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
58
+ - [docs] Fix Tree space to match the reset of the docs @oliviertassinari
59
+ - [docs] Fix `dayOfWeekFormatter` typo in the pickers v6 to v7 migration document (#12043) @StylesTrip
60
+ - [docs] Fix redirection @oliviertassinari
61
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12036) @flaviendelangle
62
+ - [docs] Removed `focused` prop from demo (#12092) @michelengelen
63
+
64
+ ### Core
65
+
66
+ - [core] Fix CodeSandbox CI template @oliviertassinari
67
+ - [core] Sort prop asc (#12033) @oliviertassinari
68
+ - [core] Bump monorepo (#12055) @alexfauquette
69
+
70
+ ## v7.0.0-beta.2
71
+
72
+ _Feb 9, 2024_
73
+
74
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
75
+
76
+ - 🚀 Add slot typings on the Data Grid components (#11795) @romgrk
77
+ - 🎁 Support UTC date formatting in Charts tooltip (#11943) @shaharyar-shamshi
78
+ - 🌍 Improve Danish (da-DK) locale Data Grid (#11877) @ShahrazH
79
+ - 🐞 Bugfixes
80
+ - 📚 Documentation improvements
81
+
82
+ ### Data Grid
83
+
84
+ #### `@mui/x-data-grid@7.0.0-beta.2`
85
+
86
+ - [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
87
+ - [DataGrid] Add slot typings (#11795) @romgrk
88
+ - [DataGrid] Add support for dialogs in menu actions (#11909) @cherniavskii
89
+ - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11609) @pcorpet
90
+ - [DataGrid] Fix incorrect computation of `lastPage` in `GridPagination` (#11958) @MBilalShafi
91
+ - [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
92
+ - [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
93
+
94
+ #### `@mui/x-data-grid-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
95
+
96
+ Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
97
+
98
+ #### `@mui/x-data-grid-premium@v7.0.0-beta.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
99
+
100
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.2`, plus:
101
+
102
+ - [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
103
+ - [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
104
+
105
+ ### Date Pickers
106
+
107
+ #### `@mui/x-date-pickers@7.0.0-beta.2`
108
+
109
+ - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
110
+ - [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
111
+
112
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
113
+
114
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.2`.
115
+
116
+ ### Charts / `@mui/x-charts@7.0.0-beta.2`
117
+
118
+ - [charts] Add `reverse` property to axes (#11899) @alexfauquette
119
+ - [charts] Allow series ids to be numbers (#11941) @alexfauquette
120
+ - [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
121
+
122
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.2`
123
+
124
+ - [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
125
+ - [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
126
+
127
+ ### License
128
+
129
+ #### Breaking changes
130
+
131
+ - If you're using the [commercial license](https://next.mui.com/x/introduction/licensing), you need to update the import path:
132
+
133
+ ```diff
134
+ -import { LicenseInfo } from '@mui/x-license-pro';
135
+ +import { LicenseInfo } from '@mui/x-license';
136
+ ```
137
+
138
+ `@mui/x-license@7.0.0-beta.2`
139
+
140
+ - [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
141
+
142
+ ### Docs
143
+
144
+ - [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11985) @flaviendelangle
145
+ - [docs] Add missing `Charts` breaking change steps (#11971) @alexfauquette
146
+ - [docs] Fix `ChartsTooltip` typo (#11961) @thisisharsh7
147
+ - [docs] Refactor `Localization` documentation sections (#11989) @LukasTy
148
+ - [docs] Use "cannot" instead of "can't" or "can not" (#11986) @flaviendelangle
149
+ - [docs] Add quick fixes to the migration guide (#11806) @danilo-leal
150
+ - [docs] Avoid use of shorthand (#12000) @oliviertassinari
151
+ - [docs] Avoid the use of MUI Core @oliviertassinari
152
+ - [docs] Fix image size and dark mode @oliviertassinari
153
+ - [docs] Follow blank line convention with use client @oliviertassinari
154
+ - [docs] Stable layout between light and dark mode @oliviertassinari
155
+
156
+ ### Core
157
+
158
+ - [core] Add `docs:serve` script (#11935) @cherniavskii
159
+ - [core] Bump monorepo (#12001) @cherniavskii
160
+ - [core] Deprecate `LicenseInfo` re-exports (#11956) @cherniavskii
161
+ - [core] Fix `test_types` failing on the `next` branch (#11944) @cherniavskii
162
+ - [core] Fix failing `test_static` on the next branch (#11977) @cherniavskii
163
+ - [core] Flatten grid packages folder (#11946) @cherniavskii
164
+ - [core] Improve license info deprecation message (#11974) @cherniavskii
165
+ - [core] Integrate changes from Core #40842 PR (#11801) @michaldudak
166
+ - [core] Move next config to ESM (#11882) @Janpot
167
+ - [core] Add auto-message on closed issues (#11805) @michelengelen
168
+ - [core] Simplify bug reproduction (#11849) @oliviertassinari
169
+ - [core] Fix npm reference @oliviertassinari
170
+ - [core] Normalize issue template @oliviertassinari
171
+
172
+ ## 7.0.0-beta.1
173
+
174
+ _Feb 1, 2024_
175
+
176
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
177
+
178
+ - 🏃 Improve the filtering performance of the Data Grid by changing the `GridColDef` methods signatures (#11573) @cherniavskii
179
+ - 🎁 The Line Chart component now has animation by default (#11620) @alexfauquette
180
+ - 🚀 All charts have click handlers (#11411) @alexfauquette
181
+ Test their respective documentation demonstrations to know more about the data format:
182
+
183
+ - [Scatter Chart](https://next.mui.com/x/react-charts/scatter/#click-event)
184
+ - [Line Chart](https://next.mui.com/x/react-charts/lines/#click-event)
185
+ - [Bar Chart](https://next.mui.com/x/react-charts/bars/#click-event)
186
+ - [Pie Chart](https://next.mui.com/x/react-charts/pie/#click-event)
187
+
188
+ Big thanks to @giladappsforce and @yaredtsy for their contribution on exploring this feature.
189
+
190
+ ### Data Grid
191
+
192
+ ### Breaking changes
193
+
194
+ - The signature of `GridColDef['valueGetter']` has been changed for performance reasons:
195
+
196
+ ```diff
197
+ - valueGetter: ({ value, row }) => value,
198
+ + valueGetter: (value, row, column, apiRef) => value,
199
+ ```
200
+
201
+ The `GridValueGetterParams` interface has been removed:
202
+
203
+ ```diff
204
+ - const customValueGetter = (params: GridValueGetterParams) => params.row.budget;
205
+ + const customValueGetter: GridValueGetterFn = (value, row) => row.budget;
206
+ ```
207
+
208
+ - The signature of `GridColDef['valueFormatter']` has been changed for performance reasons:
209
+
210
+ ```diff
211
+ - valueFormatter: ({ value }) => value,
212
+ + valueFormatter: (value, row, column, apiRef) => value,
213
+ ```
214
+
215
+ The `GridValueFormatterParams` interface has been removed:
216
+
217
+ ```diff
218
+ - const gridDateFormatter = ({ value, field, id }: GridValueFormatterParams<Date>) => value.toLocaleDateString();
219
+ + const gridDateFormatter: GridValueFormatter = (value: Date) => value.toLocaleDateString();
220
+ ```
221
+
222
+ - The signature of `GridColDef['valueSetter']` has been changed for performance reasons:
223
+
224
+ ```diff
225
+ - valueSetter: (params) => {
226
+ - const [firstName, lastName] = params.value!.toString().split(' ');
227
+ - return { ...params.row, firstName, lastName };
228
+ - }
229
+ + valueSetter: (value, row) => {
230
+ + const [firstName, lastName] = value!.toString().split(' ');
231
+ + return { ...row, firstName, lastName };
232
+ +}
233
+ ```
234
+
235
+ The `GridValueSetterParams` interface has been removed:
236
+
237
+ ```diff
238
+ - const setFullName = (params: GridValueSetterParams) => {
239
+ - const [firstName, lastName] = params.value!.toString().split(' ');
240
+ - return { ...params.row, firstName, lastName };
241
+ - };
242
+ + const setFullName: GridValueSetter<Row> = (value, row) => {
243
+ + const [firstName, lastName] = value!.toString().split(' ');
244
+ + return { ...row, firstName, lastName };
245
+ + }
246
+ ```
247
+
248
+ - The signature of `GridColDef['valueParser']` has been changed for performance reasons:
249
+
250
+ ```diff
251
+ - valueParser: (value, params: GridCellParams) => value.toLowerCase(),
252
+ + valueParser: (value, row, column, apiRef) => value.toLowerCase(),
253
+ ```
254
+
255
+ - The signature of `GridColDef['colSpan']` has been changed for performance reasons:
256
+
257
+ ```diff
258
+ - colSpan: ({ row, field, value }: GridCellParams) => (row.id === 'total' ? 2 : 1),
259
+ + colSpan: (value, row, column, apiRef) => (row.id === 'total' ? 2 : 1),
260
+ ```
261
+
262
+ - The signature of `GridColDef['pastedValueParser']` has been changed for performance reasons:
263
+
264
+ ```diff
265
+ - pastedValueParser: (value, params) => new Date(value),
266
+ + pastedValueParser: (value, row, column, apiRef) => new Date(value),
267
+ ```
268
+
269
+ - The signature of `GridColDef['groupingValueGetter']` has been changed for performance reasons:
270
+
271
+ ```diff
272
+ - groupingValueGetter: (params) => params.value.name,
273
+ + groupingValueGetter: (value: { name: string }) => value.name,
274
+ ```
275
+
276
+ #### `@mui/x-data-grid@7.0.0-beta.1`
277
+
278
+ - [DataGrid] Add `toggleAllMode` prop to the `columnsManagement` slot (#10794) @H999
279
+ - [DataGrid] Change `GridColDef` methods signatures (#11573) @cherniavskii
280
+ - [DataGrid] Fix row reorder with cell selection (#11783) @PEsteves8
281
+ - [DataGrid] Make columns management' casing consistent (#11858) @MBilalShafi
282
+ - [l10n] Improve Hebrew (he-IL) locale (#11788) @danielmishan85
283
+
284
+ #### `@mui/x-data-grid-pro@7.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
285
+
286
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.1`.
287
+
288
+ #### `@mui/x-data-grid-premium@7.0.0-beta.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
289
+
290
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.1`.
291
+
292
+ ### Date Pickers
293
+
294
+ #### `@mui/x-date-pickers@7.0.0-beta.1`
295
+
296
+ - [TimePicker] Add missing toolbar classes descriptions (#11856) @LukasTy
297
+
298
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
299
+
300
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
301
+
302
+ ### Charts
303
+
304
+ #### Breaking changes
305
+
306
+ - The line chart now have animation by default.
307
+ You can disable it with `skipAnimation` prop.
308
+ See [animation documentation](next.mui.com/x/react-charts/lines/#animation) for more information.
309
+
310
+ - Pie charts `onClick` get renamed `onItemClick` for consistency with other charts click callback.
311
+
312
+ `@mui/x-charts@7.0.0-beta.1`
313
+
314
+ - [charts] Add `onClick` support (#11411) @alexfauquette
315
+ - [charts] Add line animation (#11620) @alexfauquette
316
+ - [charts] Document how to modify color according to values (#11824) @alexfauquette
317
+ - [charts] Fix Tooltip crash with out of range lines (#11898) @alexfauquette
318
+
319
+ ### Docs
320
+
321
+ - [docs] Add a general uplift to the changelog page (#11396) @danilo-leal
322
+ - [docs] Do not reference the Tree View overview page in the API pages (#11826) @flaviendelangle
323
+ - [docs] Fix charts API links (#11832) @alexfauquette
324
+ - [docs] Improve Support page (#11556) @oliviertassinari
325
+ - [docs] Improve column visibility documentation (#11857) @MBilalShafi
326
+ - [docs] Polish header @oliviertassinari
327
+ - [docs] Sync support page with core @oliviertassinari
328
+ - [docs] Update whats new page with "v7 Beta blogpost" content (#11879) @joserodolfofreitas
329
+
330
+ ### Core
331
+
332
+ - [core] Rely on immutable ref when possible (#11847) @oliviertassinari
333
+ - [core] Bump monorepo (#11897) @alexfauquette
334
+
6
335
  ## 7.0.0-beta.0
7
336
 
8
337
  _Jan 26, 2024_
@@ -1873,6 +2202,146 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
1873
2202
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
1874
2203
  - [license] Correctly throw errors (#10924) @oliviertassinari
1875
2204
 
2205
+ ## v6.19.4
2206
+
2207
+ _Feb 9, 2024_
2208
+
2209
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
2210
+
2211
+ - 🌍 Improve Danish (da-DK) locale on the Data Grid (#11972) @ShahrazH
2212
+ - 🐞 Bugfixes
2213
+ - 📚 Documentation improvements
2214
+
2215
+ ### Data Grid
2216
+
2217
+ #### `@mui/x-data-grid@v6.19.4`
2218
+
2219
+ - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
2220
+ - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
2221
+ - [DataGrid] Fix row reorder with cell selection (#11878) @PEsteves8
2222
+ - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
2223
+ - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
2224
+
2225
+ #### `@mui/x-data-grid-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2226
+
2227
+ Same changes as in `@mui/x-data-grid@v6.19.4`.
2228
+
2229
+ #### `@mui/x-data-grid-premium@v6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2230
+
2231
+ Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
2232
+
2233
+ - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
2234
+ - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
2235
+
2236
+ ### Date Pickers
2237
+
2238
+ #### `@mui/x-date-pickers@v6.19.4`
2239
+
2240
+ - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
2241
+
2242
+ #### `@mui/x-date-pickers-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2243
+
2244
+ Same changes as in `@mui/x-date-pickers@v6.19.4`.
2245
+
2246
+ ### Charts / `@mui/x-charts@v6.19.4`
2247
+
2248
+ - [charts] Add `reverse` property to axes (#11959) @alexfauquette
2249
+ - [charts] Allow series ids to be numbers (#11960) @alexfauquette
2250
+ - [charts] Fix Proptypes error by supporting string values for axes (#11953) @alexfauquette
2251
+
2252
+ ### Docs
2253
+
2254
+ - [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11987) @flaviendelangle
2255
+ - [docs] Avoid the use of MUI Core @oliviertassinari
2256
+ - [docs] Fix API links (#11930) @alexfauquette
2257
+ - [docs] Fix `ChartsTooltip` typo (#11967) @thisisharsh7
2258
+ - [docs] Refactor `Localization` documentation sections (#11997) @LukasTy
2259
+ - [code] Simplify bug reproduction (#11932) @alexfauquette
2260
+
2261
+ ## 6.19.3
2262
+
2263
+ _Feb 1, 2024_
2264
+
2265
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
2266
+
2267
+ - 🌍 Improve Hebrew (he-IL) locale (#11831) @danielmishan85
2268
+ - 🐞 Bugfixes
2269
+ - 📚 Documentation improvements
2270
+
2271
+ ### Data Grid
2272
+
2273
+ #### `@mui/x-data-grid@6.19.3`
2274
+
2275
+ - [l10n] Improve Hebrew (he-IL) locale (@danielmishan85) (#11831)
2276
+
2277
+ #### `@mui/x-data-grid-pro@6.19.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2278
+
2279
+ Same changes as in `@mui/x-data-grid@6.19.3`.
2280
+
2281
+ #### `@mui/x-data-grid-premium@6.19.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2282
+
2283
+ Same changes as in `@mui/x-data-grid-pro@6.19.3`.
2284
+
2285
+ ### Date Pickers
2286
+
2287
+ #### `@mui/x-date-pickers@6.19.3`
2288
+
2289
+ - [TimePicker] Add missing toolbar classes descriptions (#11862) @LukasTy
2290
+
2291
+ #### `@mui/x-date-pickers-pro@6.19.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2292
+
2293
+ Same changes as in `@mui/x-date-pickers@6.19.3`.
2294
+
2295
+ ### Charts / `@mui/x-charts@6.19.3`
2296
+
2297
+ - [charts] Document how to modify color according to values (#11854) @alexfauquette
2298
+
2299
+ ### Docs
2300
+
2301
+ - [docs] Add a general uplift to the whats new page (#11883) @danilo-leal
2302
+ - [docs] Fix 404 (#11852) @alexfauquette
2303
+ - [docs] Fix <title> generation (#11825) @alexfauquette
2304
+ - [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
2305
+ - [docs] Improve Support page (#11556) @oliviertassinari
2306
+ - [docs] Sync support page with core @oliviertassinari
2307
+ - [docs] These API don't exist in MUI X v6 @oliviertassinari
2308
+ - [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
2309
+
2310
+ ## 6.19.2
2311
+
2312
+ _Jan 25, 2024_
2313
+
2314
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
2315
+
2316
+ - 🚀 Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
2317
+ - 🐞 Bugfixes
2318
+
2319
+ ### Date Pickers
2320
+
2321
+ #### `@mui/x-date-pickers@6.19.2`
2322
+
2323
+ - [pickers] Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
2324
+
2325
+ #### `@mui/x-date-pickers-pro@6.19.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2326
+
2327
+ Same changes as in `@mui/x-date-pickers@6.19.2`, plus:
2328
+
2329
+ - [DateRangePicker] Remove `calendars` prop on `Mobile` (@LukasTy) (#11771)
2330
+
2331
+ ### Data Grid
2332
+
2333
+ #### `@mui/x-data-grid@6.19.2`
2334
+
2335
+ - [DataGrid] Fix support for tree with more than 50,000 children (@zenazn) (#11808)
2336
+
2337
+ #### `@mui/x-data-grid-pro@6.19.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2338
+
2339
+ Same changes as in `@mui/x-data-grid@6.19.2`.
2340
+
2341
+ #### `@mui/x-data-grid-premium@6.19.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2342
+
2343
+ Same changes as in `@mui/x-data-grid-pro@6.19.2`.
2344
+
1876
2345
  ## 6.19.1
1877
2346
 
1878
2347
  _Jan 19, 2024_
@@ -6876,7 +7345,7 @@ You can find more information about the new api, including how to set those tran
6876
7345
  - [core] Add link to the security page on the `README` (#6073) @oliviertassinari
6877
7346
  - [core] Fix scroll restoration in the docs (#5938) @oliviertassinari
6878
7347
  - [core] Remove the Storybook (#6099) @flaviendelangle
6879
- - [core] Tag release as `next` in NPM (#6256) @m4theushw
7348
+ - [core] Tag release as `next` in npm (#6256) @m4theushw
6880
7349
  - [core] Update monorepo (#6180) @flaviendelangle
6881
7350
  - [core] Use the `next` branch for Prettier (#6097) @flaviendelangle
6882
7351
  - [core] Use the official repository for `@mui/monorepo` instead of a fork (#6189) @oliviertassinari
@@ -59,12 +59,14 @@ const StyledTreeItemContent = styled(TreeItemContent, {
59
59
  })(({
60
60
  theme
61
61
  }) => ({
62
- padding: '0 8px',
62
+ padding: theme.spacing(0.5, 1),
63
+ borderRadius: theme.shape.borderRadius,
63
64
  width: '100%',
64
65
  boxSizing: 'border-box',
65
66
  // prevent width + padding to overflow
66
67
  display: 'flex',
67
68
  alignItems: 'center',
69
+ gap: theme.spacing(1),
68
70
  cursor: 'pointer',
69
71
  WebkitTapHighlightColor: 'transparent',
70
72
  '&:hover': {
@@ -95,8 +97,7 @@ const StyledTreeItemContent = styled(TreeItemContent, {
95
97
  }
96
98
  },
97
99
  [`& .${treeItemClasses.iconContainer}`]: {
98
- marginRight: 4,
99
- width: 15,
100
+ width: 16,
100
101
  display: 'flex',
101
102
  flexShrink: 0,
102
103
  justifyContent: 'center',
@@ -105,7 +106,6 @@ const StyledTreeItemContent = styled(TreeItemContent, {
105
106
  }
106
107
  },
107
108
  [`& .${treeItemClasses.label}`]: _extends({
108
- paddingLeft: 4,
109
109
  width: '100%',
110
110
  boxSizing: 'border-box',
111
111
  // prevent width + padding to overflow
@@ -121,7 +121,7 @@ const TreeItemGroup = styled(Collapse, {
121
121
  })({
122
122
  margin: 0,
123
123
  padding: 0,
124
- marginLeft: 17
124
+ paddingLeft: 12
125
125
  });
126
126
 
127
127
  /**
@@ -179,7 +179,13 @@ export const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps,
179
179
  endIcon: (_inSlots$endIcon = inSlots == null ? void 0 : inSlots.endIcon) != null ? _inSlots$endIcon : contextIcons.slots.endIcon,
180
180
  icon: inSlots == null ? void 0 : inSlots.icon
181
181
  };
182
- const expandable = Boolean(Array.isArray(children) ? children.length : children);
182
+ const isExpandable = reactChildren => {
183
+ if (Array.isArray(reactChildren)) {
184
+ return reactChildren.length > 0 && reactChildren.some(isExpandable);
185
+ }
186
+ return Boolean(reactChildren);
187
+ };
188
+ const expandable = isExpandable(children);
183
189
  const expanded = instance.isNodeExpanded(nodeId);
184
190
  const focused = instance.isNodeFocused(nodeId);
185
191
  const selected = instance.isNodeSelected(nodeId);
@@ -12,7 +12,7 @@ export function useTreeItemState(nodeId) {
12
12
  const selected = instance.isNodeSelected(nodeId);
13
13
  const disabled = instance.isNodeDisabled(nodeId);
14
14
  const handleExpansion = event => {
15
- if (instance && !disabled) {
15
+ if (!disabled) {
16
16
  if (!focused) {
17
17
  instance.focusNode(event, nodeId);
18
18
  }
@@ -25,7 +25,7 @@ export function useTreeItemState(nodeId) {
25
25
  }
26
26
  };
27
27
  const handleSelection = event => {
28
- if (instance && !disabled) {
28
+ if (!disabled) {
29
29
  if (!focused) {
30
30
  instance.focusNode(event, nodeId);
31
31
  }
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.0.0-beta.0
2
+ * @mui/x-tree-view v7.0.0-beta.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -69,7 +69,13 @@ const useTreeViewJSXNodesItemPlugin = ({
69
69
  const {
70
70
  instance
71
71
  } = useTreeViewContext();
72
- const expandable = Boolean(Array.isArray(children) ? children.length : children);
72
+ const isExpandable = reactChildren => {
73
+ if (Array.isArray(reactChildren)) {
74
+ return reactChildren.length > 0 && reactChildren.some(isExpandable);
75
+ }
76
+ return Boolean(reactChildren);
77
+ };
78
+ const expandable = isExpandable(children);
73
79
  const [treeItemElement, setTreeItemElement] = React.useState(null);
74
80
  const contentRef = React.useRef(null);
75
81
  const handleRef = useForkRef(setTreeItemElement, ref);
@@ -83,7 +89,7 @@ const useTreeViewJSXNodesItemPlugin = ({
83
89
  } = useDescendant(descendant);
84
90
  React.useEffect(() => {
85
91
  // On the first render a node's index will be -1. We want to wait for the real index.
86
- if (instance && index !== -1) {
92
+ if (index !== -1) {
87
93
  instance.insertJSXNode({
88
94
  id: nodeId,
89
95
  idAttribute: id,
@@ -97,7 +103,7 @@ const useTreeViewJSXNodesItemPlugin = ({
97
103
  return undefined;
98
104
  }, [instance, parentId, index, nodeId, expandable, disabled, id]);
99
105
  React.useEffect(() => {
100
- if (instance && label) {
106
+ if (label) {
101
107
  var _contentRef$current$t, _contentRef$current;
102
108
  return instance.mapFirstCharFromJSX(nodeId, ((_contentRef$current$t = (_contentRef$current = contentRef.current) == null ? void 0 : _contentRef$current.textContent) != null ? _contentRef$current$t : '').substring(0, 1).toLowerCase());
103
109
  }
@@ -56,12 +56,14 @@ var StyledTreeItemContent = styled(TreeItemContent, {
56
56
  })(function (_ref3) {
57
57
  var theme = _ref3.theme;
58
58
  return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
59
- padding: '0 8px',
59
+ padding: theme.spacing(0.5, 1),
60
+ borderRadius: theme.shape.borderRadius,
60
61
  width: '100%',
61
62
  boxSizing: 'border-box',
62
63
  // prevent width + padding to overflow
63
64
  display: 'flex',
64
65
  alignItems: 'center',
66
+ gap: theme.spacing(1),
65
67
  cursor: 'pointer',
66
68
  WebkitTapHighlightColor: 'transparent',
67
69
  '&:hover': {
@@ -88,8 +90,7 @@ var StyledTreeItemContent = styled(TreeItemContent, {
88
90
  }, "&.".concat(treeItemClasses.focused), {
89
91
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
90
92
  })), "& .".concat(treeItemClasses.iconContainer), {
91
- marginRight: 4,
92
- width: 15,
93
+ width: 16,
93
94
  display: 'flex',
94
95
  flexShrink: 0,
95
96
  justifyContent: 'center',
@@ -97,7 +98,6 @@ var StyledTreeItemContent = styled(TreeItemContent, {
97
98
  fontSize: 18
98
99
  }
99
100
  }), "& .".concat(treeItemClasses.label), _extends({
100
- paddingLeft: 4,
101
101
  width: '100%',
102
102
  boxSizing: 'border-box',
103
103
  // prevent width + padding to overflow
@@ -115,7 +115,7 @@ var TreeItemGroup = styled(Collapse, {
115
115
  })({
116
116
  margin: 0,
117
117
  padding: 0,
118
- marginLeft: 17
118
+ paddingLeft: 12
119
119
  });
120
120
 
121
121
  /**
@@ -169,7 +169,13 @@ export var TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, i
169
169
  endIcon: (_inSlots$endIcon = inSlots == null ? void 0 : inSlots.endIcon) != null ? _inSlots$endIcon : contextIcons.slots.endIcon,
170
170
  icon: inSlots == null ? void 0 : inSlots.icon
171
171
  };
172
- var expandable = Boolean(Array.isArray(children) ? children.length : children);
172
+ var isExpandable = function isExpandable(reactChildren) {
173
+ if (Array.isArray(reactChildren)) {
174
+ return reactChildren.length > 0 && reactChildren.some(isExpandable);
175
+ }
176
+ return Boolean(reactChildren);
177
+ };
178
+ var expandable = isExpandable(children);
173
179
  var expanded = instance.isNodeExpanded(nodeId);
174
180
  var focused = instance.isNodeFocused(nodeId);
175
181
  var selected = instance.isNodeSelected(nodeId);
@@ -9,7 +9,7 @@ export function useTreeItemState(nodeId) {
9
9
  var selected = instance.isNodeSelected(nodeId);
10
10
  var disabled = instance.isNodeDisabled(nodeId);
11
11
  var handleExpansion = function handleExpansion(event) {
12
- if (instance && !disabled) {
12
+ if (!disabled) {
13
13
  if (!focused) {
14
14
  instance.focusNode(event, nodeId);
15
15
  }
@@ -22,7 +22,7 @@ export function useTreeItemState(nodeId) {
22
22
  }
23
23
  };
24
24
  var handleSelection = function handleSelection(event) {
25
- if (instance && !disabled) {
25
+ if (!disabled) {
26
26
  if (!focused) {
27
27
  instance.focusNode(event, nodeId);
28
28
  }
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.0.0-beta.0
2
+ * @mui/x-tree-view v7.0.0-beta.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -65,7 +65,13 @@ var useTreeViewJSXNodesItemPlugin = function useTreeViewJSXNodesItemPlugin(_ref2
65
65
  inContentProps = props.ContentProps;
66
66
  var _useTreeViewContext = useTreeViewContext(),
67
67
  instance = _useTreeViewContext.instance;
68
- var expandable = Boolean(Array.isArray(children) ? children.length : children);
68
+ var isExpandable = function isExpandable(reactChildren) {
69
+ if (Array.isArray(reactChildren)) {
70
+ return reactChildren.length > 0 && reactChildren.some(isExpandable);
71
+ }
72
+ return Boolean(reactChildren);
73
+ };
74
+ var expandable = isExpandable(children);
69
75
  var _React$useState = React.useState(null),
70
76
  _React$useState2 = _slicedToArray(_React$useState, 2),
71
77
  treeItemElement = _React$useState2[0],
@@ -83,7 +89,7 @@ var useTreeViewJSXNodesItemPlugin = function useTreeViewJSXNodesItemPlugin(_ref2
83
89
  parentId = _useDescendant.parentId;
84
90
  React.useEffect(function () {
85
91
  // On the first render a node's index will be -1. We want to wait for the real index.
86
- if (instance && index !== -1) {
92
+ if (index !== -1) {
87
93
  instance.insertJSXNode({
88
94
  id: nodeId,
89
95
  idAttribute: id,
@@ -99,7 +105,7 @@ var useTreeViewJSXNodesItemPlugin = function useTreeViewJSXNodesItemPlugin(_ref2
99
105
  return undefined;
100
106
  }, [instance, parentId, index, nodeId, expandable, disabled, id]);
101
107
  React.useEffect(function () {
102
- if (instance && label) {
108
+ if (label) {
103
109
  var _contentRef$current$t, _contentRef$current;
104
110
  return instance.mapFirstCharFromJSX(nodeId, ((_contentRef$current$t = (_contentRef$current = contentRef.current) == null ? void 0 : _contentRef$current.textContent) != null ? _contentRef$current$t : '').substring(0, 1).toLowerCase());
105
111
  }
@@ -59,12 +59,14 @@ const StyledTreeItemContent = styled(TreeItemContent, {
59
59
  })(({
60
60
  theme
61
61
  }) => ({
62
- padding: '0 8px',
62
+ padding: theme.spacing(0.5, 1),
63
+ borderRadius: theme.shape.borderRadius,
63
64
  width: '100%',
64
65
  boxSizing: 'border-box',
65
66
  // prevent width + padding to overflow
66
67
  display: 'flex',
67
68
  alignItems: 'center',
69
+ gap: theme.spacing(1),
68
70
  cursor: 'pointer',
69
71
  WebkitTapHighlightColor: 'transparent',
70
72
  '&:hover': {
@@ -95,8 +97,7 @@ const StyledTreeItemContent = styled(TreeItemContent, {
95
97
  }
96
98
  },
97
99
  [`& .${treeItemClasses.iconContainer}`]: {
98
- marginRight: 4,
99
- width: 15,
100
+ width: 16,
100
101
  display: 'flex',
101
102
  flexShrink: 0,
102
103
  justifyContent: 'center',
@@ -105,7 +106,6 @@ const StyledTreeItemContent = styled(TreeItemContent, {
105
106
  }
106
107
  },
107
108
  [`& .${treeItemClasses.label}`]: _extends({
108
- paddingLeft: 4,
109
109
  width: '100%',
110
110
  boxSizing: 'border-box',
111
111
  // prevent width + padding to overflow
@@ -121,7 +121,7 @@ const TreeItemGroup = styled(Collapse, {
121
121
  })({
122
122
  margin: 0,
123
123
  padding: 0,
124
- marginLeft: 17
124
+ paddingLeft: 12
125
125
  });
126
126
 
127
127
  /**
@@ -178,7 +178,13 @@ export const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps,
178
178
  endIcon: inSlots?.endIcon ?? contextIcons.slots.endIcon,
179
179
  icon: inSlots?.icon
180
180
  };
181
- const expandable = Boolean(Array.isArray(children) ? children.length : children);
181
+ const isExpandable = reactChildren => {
182
+ if (Array.isArray(reactChildren)) {
183
+ return reactChildren.length > 0 && reactChildren.some(isExpandable);
184
+ }
185
+ return Boolean(reactChildren);
186
+ };
187
+ const expandable = isExpandable(children);
182
188
  const expanded = instance.isNodeExpanded(nodeId);
183
189
  const focused = instance.isNodeFocused(nodeId);
184
190
  const selected = instance.isNodeSelected(nodeId);
@@ -12,7 +12,7 @@ export function useTreeItemState(nodeId) {
12
12
  const selected = instance.isNodeSelected(nodeId);
13
13
  const disabled = instance.isNodeDisabled(nodeId);
14
14
  const handleExpansion = event => {
15
- if (instance && !disabled) {
15
+ if (!disabled) {
16
16
  if (!focused) {
17
17
  instance.focusNode(event, nodeId);
18
18
  }
@@ -25,7 +25,7 @@ export function useTreeItemState(nodeId) {
25
25
  }
26
26
  };
27
27
  const handleSelection = event => {
28
- if (instance && !disabled) {
28
+ if (!disabled) {
29
29
  if (!focused) {
30
30
  instance.focusNode(event, nodeId);
31
31
  }
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.0.0-beta.0
2
+ * @mui/x-tree-view v7.0.0-beta.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -69,7 +69,13 @@ const useTreeViewJSXNodesItemPlugin = ({
69
69
  const {
70
70
  instance
71
71
  } = useTreeViewContext();
72
- const expandable = Boolean(Array.isArray(children) ? children.length : children);
72
+ const isExpandable = reactChildren => {
73
+ if (Array.isArray(reactChildren)) {
74
+ return reactChildren.length > 0 && reactChildren.some(isExpandable);
75
+ }
76
+ return Boolean(reactChildren);
77
+ };
78
+ const expandable = isExpandable(children);
73
79
  const [treeItemElement, setTreeItemElement] = React.useState(null);
74
80
  const contentRef = React.useRef(null);
75
81
  const handleRef = useForkRef(setTreeItemElement, ref);
@@ -83,7 +89,7 @@ const useTreeViewJSXNodesItemPlugin = ({
83
89
  } = useDescendant(descendant);
84
90
  React.useEffect(() => {
85
91
  // On the first render a node's index will be -1. We want to wait for the real index.
86
- if (instance && index !== -1) {
92
+ if (index !== -1) {
87
93
  instance.insertJSXNode({
88
94
  id: nodeId,
89
95
  idAttribute: id,
@@ -97,7 +103,7 @@ const useTreeViewJSXNodesItemPlugin = ({
97
103
  return undefined;
98
104
  }, [instance, parentId, index, nodeId, expandable, disabled, id]);
99
105
  React.useEffect(() => {
100
- if (instance && label) {
106
+ if (label) {
101
107
  return instance.mapFirstCharFromJSX(nodeId, (contentRef.current?.textContent ?? '').substring(0, 1).toLowerCase());
102
108
  }
103
109
  return undefined;
@@ -67,12 +67,14 @@ const StyledTreeItemContent = (0, _styles.styled)(_TreeItemContent.TreeItemConte
67
67
  })(({
68
68
  theme
69
69
  }) => ({
70
- padding: '0 8px',
70
+ padding: theme.spacing(0.5, 1),
71
+ borderRadius: theme.shape.borderRadius,
71
72
  width: '100%',
72
73
  boxSizing: 'border-box',
73
74
  // prevent width + padding to overflow
74
75
  display: 'flex',
75
76
  alignItems: 'center',
77
+ gap: theme.spacing(1),
76
78
  cursor: 'pointer',
77
79
  WebkitTapHighlightColor: 'transparent',
78
80
  '&:hover': {
@@ -103,8 +105,7 @@ const StyledTreeItemContent = (0, _styles.styled)(_TreeItemContent.TreeItemConte
103
105
  }
104
106
  },
105
107
  [`& .${_treeItemClasses.treeItemClasses.iconContainer}`]: {
106
- marginRight: 4,
107
- width: 15,
108
+ width: 16,
108
109
  display: 'flex',
109
110
  flexShrink: 0,
110
111
  justifyContent: 'center',
@@ -113,7 +114,6 @@ const StyledTreeItemContent = (0, _styles.styled)(_TreeItemContent.TreeItemConte
113
114
  }
114
115
  },
115
116
  [`& .${_treeItemClasses.treeItemClasses.label}`]: (0, _extends2.default)({
116
- paddingLeft: 4,
117
117
  width: '100%',
118
118
  boxSizing: 'border-box',
119
119
  // prevent width + padding to overflow
@@ -129,7 +129,7 @@ const TreeItemGroup = (0, _styles.styled)(_Collapse.default, {
129
129
  })({
130
130
  margin: 0,
131
131
  padding: 0,
132
- marginLeft: 17
132
+ paddingLeft: 12
133
133
  });
134
134
 
135
135
  /**
@@ -186,7 +186,13 @@ const TreeItem = exports.TreeItem = /*#__PURE__*/React.forwardRef(function TreeI
186
186
  endIcon: inSlots?.endIcon ?? contextIcons.slots.endIcon,
187
187
  icon: inSlots?.icon
188
188
  };
189
- const expandable = Boolean(Array.isArray(children) ? children.length : children);
189
+ const isExpandable = reactChildren => {
190
+ if (Array.isArray(reactChildren)) {
191
+ return reactChildren.length > 0 && reactChildren.some(isExpandable);
192
+ }
193
+ return Boolean(reactChildren);
194
+ };
195
+ const expandable = isExpandable(children);
190
196
  const expanded = instance.isNodeExpanded(nodeId);
191
197
  const focused = instance.isNodeFocused(nodeId);
192
198
  const selected = instance.isNodeSelected(nodeId);
@@ -18,7 +18,7 @@ function useTreeItemState(nodeId) {
18
18
  const selected = instance.isNodeSelected(nodeId);
19
19
  const disabled = instance.isNodeDisabled(nodeId);
20
20
  const handleExpansion = event => {
21
- if (instance && !disabled) {
21
+ if (!disabled) {
22
22
  if (!focused) {
23
23
  instance.focusNode(event, nodeId);
24
24
  }
@@ -31,7 +31,7 @@ function useTreeItemState(nodeId) {
31
31
  }
32
32
  };
33
33
  const handleSelection = event => {
34
- if (instance && !disabled) {
34
+ if (!disabled) {
35
35
  if (!focused) {
36
36
  instance.focusNode(event, nodeId);
37
37
  }
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.0.0-beta.0
2
+ * @mui/x-tree-view v7.0.0-beta.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -79,7 +79,13 @@ const useTreeViewJSXNodesItemPlugin = ({
79
79
  const {
80
80
  instance
81
81
  } = (0, _useTreeViewContext.useTreeViewContext)();
82
- const expandable = Boolean(Array.isArray(children) ? children.length : children);
82
+ const isExpandable = reactChildren => {
83
+ if (Array.isArray(reactChildren)) {
84
+ return reactChildren.length > 0 && reactChildren.some(isExpandable);
85
+ }
86
+ return Boolean(reactChildren);
87
+ };
88
+ const expandable = isExpandable(children);
83
89
  const [treeItemElement, setTreeItemElement] = React.useState(null);
84
90
  const contentRef = React.useRef(null);
85
91
  const handleRef = (0, _useForkRef.default)(setTreeItemElement, ref);
@@ -93,7 +99,7 @@ const useTreeViewJSXNodesItemPlugin = ({
93
99
  } = (0, _DescendantProvider.useDescendant)(descendant);
94
100
  React.useEffect(() => {
95
101
  // On the first render a node's index will be -1. We want to wait for the real index.
96
- if (instance && index !== -1) {
102
+ if (index !== -1) {
97
103
  instance.insertJSXNode({
98
104
  id: nodeId,
99
105
  idAttribute: id,
@@ -107,7 +113,7 @@ const useTreeViewJSXNodesItemPlugin = ({
107
113
  return undefined;
108
114
  }, [instance, parentId, index, nodeId, expandable, disabled, id]);
109
115
  React.useEffect(() => {
110
- if (instance && label) {
116
+ if (label) {
111
117
  return instance.mapFirstCharFromJSX(nodeId, (contentRef.current?.textContent ?? '').substring(0, 1).toLowerCase());
112
118
  }
113
119
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-tree-view",
3
- "version": "7.0.0-beta.0",
3
+ "version": "7.0.0-beta.3",
4
4
  "description": "The community edition of the tree view components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -32,10 +32,10 @@
32
32
  "directory": "packages/x-tree-view"
33
33
  },
34
34
  "dependencies": {
35
- "@babel/runtime": "^7.23.8",
36
- "@mui/base": "^5.0.0-beta.33",
37
- "@mui/system": "^5.15.6",
38
- "@mui/utils": "^5.15.6",
35
+ "@babel/runtime": "^7.23.9",
36
+ "@mui/base": "^5.0.0-beta.36",
37
+ "@mui/system": "^5.15.9",
38
+ "@mui/utils": "^5.15.9",
39
39
  "@types/react-transition-group": "^4.4.10",
40
40
  "clsx": "^2.1.0",
41
41
  "prop-types": "^15.8.1",