@mui/lab 5.0.0-alpha.170 → 5.0.0-alpha.172

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
@@ -1,5 +1,286 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v5.16.1
4
+
5
+ _Jul 11, 2024_
6
+
7
+ A big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
8
+
9
+ - ⚛️ All packages, including Material UI, are now compatible with React 18.3.1
10
+
11
+ ### `@mui/material@5.16.1`
12
+
13
+ - [AppBar] Fix inherit color is inconsistent between ThemeProvider and CssVarsProvider (#42713) @ZeeshanTamboli
14
+
15
+ ### `@mui/joy@5.0.0-beta.48`
16
+
17
+ - [Autocomplete] Fix React spread key warning (#42856) @aarongarciah
18
+
19
+ ### Docs
20
+
21
+ - [material-ui] Fix React 18.3 key spread warnings in Autocomplete demos (#42854) @aarongarciah
22
+ - [material-ui] Fix type error in virtualized table demo (#42852) @aarongarciah
23
+ - Fix typos (@omahs) (#42888) @omahs
24
+ - Fix 301 @oliviertassinari
25
+
26
+ ### Core
27
+
28
+ - [core] Bump React to 18.3.1 (#42846) @aarongarciah
29
+ - [core] Remove react-test-renderer (#42853) @aarongarciah
30
+ - [core] Replace enzyme in describeConformance (#42847) @aarongarciah
31
+ - [test] Remove enzyme (#42850) @aarongarciah
32
+ - [test] Remove createMount test util (#42849) @aarongarciah
33
+ - [base-ui] Fix React spread key warning in test (#42855) @aarongarciah
34
+ - [styles][withStyles] Expect React defaultProps warning in test (#42752) (#42851) @aarongarciah
35
+
36
+ All contributors of this release in alphabetical order: @aarongarciah, @oliviertassinari, @omahs, @ZeeshanTamboli
37
+
38
+ ## v5.16.0
39
+
40
+ <!-- generated comparing v5.15.21..master -->
41
+
42
+ _Jul 5, 2024_
43
+
44
+ A big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
45
+
46
+ - 🚀 Added `InitColorSchemeScript` for Next.js App Router (#42829) @siriwatknp
47
+
48
+ ### `@mui/material@5.16.0`
49
+
50
+ - [Alert] Add ability to override slot props (@alexey-kozlenkov) (#42808) @alexey-kozlenkov
51
+ - Add `InitColorSchemeScript` for Next.js App Router (#42829) @siriwatknp
52
+ - Add `DefaultPropsProvider` (#42820) @siriwatknp
53
+ - Support `CssVarsTheme` in `responsiveFontSizes` return type (@jxdp) (#42806) @jxdp
54
+ - Remove warning from `getInitColorSchemeScript` (#42838) @siriwatknp
55
+
56
+ ### Docs
57
+
58
+ - [docs] Fix 301 MDN redirections @oliviertassinari
59
+
60
+ ### Core
61
+
62
+ - [mui-utils][test] Remove usages of deprecated react-dom APIs (@aarongarciah) (#42813) @aarongarciah
63
+
64
+ All contributors of this release in alphabetical order: @aarongarciah, @alexey-kozlenkov, @jxdp, @oliviertassinari, @siriwatknp
65
+
66
+ ## v5.15.21
67
+
68
+ <!-- generated comparing v5.15.20..master -->
69
+
70
+ _Jun 28, 2024_
71
+
72
+ A big thanks to the 7 contributors who made this release possible.
73
+
74
+ ### `@mui/material@5.15.21`
75
+
76
+ - [Autocomplete] Fix renderOption props type (@DiegoAndai) (#42709) @DiegoAndai
77
+ - [Stepper] Generate class for `nonLinear` prop (@alexismo) (#42677) @alexismo
78
+
79
+ ### Docs
80
+
81
+ - Use new email for sponsoring @oliviertassinari
82
+ - Fix 301 links (@alexfauquette) (#42700) @alexfauquette
83
+ - [material-ui][Select] Fix the `SelectAutoWidth` demo menu item value (@Danielkhakbaz) (#42696) @Danielkhakbaz
84
+ - [material-ui][Autocomplete] Fix more React 18.3 key spread warnings in demos (#42766) @wbt
85
+ - [material-ui] Fix sign in side image (#42708) @zanivan
86
+ - [website] Add Ale to team (#42769) @alelthomas
87
+
88
+ ### Core
89
+
90
+ - [core] Cherry pick pnpm updates (#42763) @DiegoAndai
91
+ - [website] Add Armin to the team members (@arminmeh) (#42681) @arminmeh
92
+ - [website] Open Staff Engineer role for Pigment CSS (@mnajdova) (#42669) @mnajdova
93
+
94
+ All contributors of this release in alphabetical order: @alexfauquette, @alexismo, @arminmeh, @Danielkhakbaz, @DiegoAndai, @mnajdova, @oliviertassinari
95
+
96
+ ## v5.15.20
97
+
98
+ <!-- generated comparing v5.15.19..master -->
99
+
100
+ _Jun 12, 2024_
101
+
102
+ A big thanks to the 9 contributors who made this release possible.
103
+
104
+ ### `@mui/material@5.15.20`
105
+
106
+ - &#8203;<!-- 17 -->[Autocomplete] Shouldn't resize when hovering (@ZeeshanTamboli) (#42535) @ZeeshanTamboli
107
+ - &#8203;<!-- 07 -->[Tab] Fix applying `iconWrapper` styles from theme and update its description (@sai6855) (#42570) @sai6855
108
+
109
+ ### `@mui/utils@5.15.15`
110
+
111
+ - &#8203;<!-- 06 -->Allow passing `NaN` as `defaultValue` to `useControlled` (@iammminzzy) (#42571) @iammminzzy
112
+ - &#8203;<!-- 17 -->Fix GitHub-reported prototype pollution vulnerability in `deepmerge` (#41652) (#42608) @DiegoAndai
113
+
114
+ ### Docs
115
+
116
+ - &#8203;<!-- 16 -->[docs] Add Pigment CSS and Base UI logos SVGs (#42513) @danilo-leal
117
+ - &#8203;<!-- 15 -->[docs] Update twitter.com to x.com @oliviertassinari
118
+ - &#8203;<!-- 14 -->[docs] Simplify Example projects page @oliviertassinari
119
+ - &#8203;<!-- 13 -->[material-ui] Add docs for complementary stepper components (@anle9650) (#42613) @anle9650
120
+ - &#8203;<!-- 12 -->[docs] Add changelog section to the design kits page (@danilo-leal) (#42463) @danilo-leal
121
+ - &#8203;<!-- 11 -->[material-ui] Fix sentence in the All components page (@danilo-leal) (#42462) @danilo-leal
122
+ - &#8203;<!-- 10 -->[material-ui] Update Figma design kit doc redirect link (@danilo-leal) (#42456) @danilo-leal
123
+ - &#8203;<!-- 09 -->[system] Add "dynamic values" section to sx prop page (@aarongarciah) (#42453) @aarongarciah
124
+
125
+ ### Core
126
+
127
+ - &#8203;<!-- 18 -->[website] Move the `React Engineer - X` role to future roles (#42532) @DanailH
128
+ - &#8203;<!-- 08 -->[examples] Remove Pigment CSS examples (#42538) @sai6855
129
+ - &#8203;<!-- 05 -->[website] Close Developer Advocate / Content Engineer role @oliviertassinari
130
+ - &#8203;<!-- 04 -->[website] Update DoiT description and link in Sponsors section (@erezstmn-doit) (#42511) @erezstmn-doit
131
+ - &#8203;<!-- 03 -->[website] Clean up the docs-infra job ad (@danilo-leal) (#42509) @danilo-leal
132
+ - &#8203;<!-- 02 -->[website] Open the Docs-infra engineer role (@danilo-leal) (#42496) @danilo-leal
133
+ - &#8203;<!-- 01 -->[website] Fix locationCountry in about page @oliviertassinari
134
+
135
+ All contributors of this release in alphabetical order: @aarongarciah, @anle9650, @DanailH, @danilo-leal, @erezstmn-doit, @iammminzzy, @oliviertassinari, @sai6855, @ZeeshanTamboli
136
+
137
+ ## v5.15.19
138
+
139
+ <!-- generated comparing v5.15.18..master -->
140
+
141
+ _May 29, 2024_
142
+
143
+ A big thanks to the 12 contributors who made this release possible.
144
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
145
+
146
+ ### `@mui/material@5.15.19`
147
+
148
+ - &#8203;<!-- 19 -->[AlertTitle] Enable extending Typography props (@lucasgmelo) (#42334) @github-actions[bot]
149
+ - &#8203;<!-- 06 -->[responsiveFontSizes] Handled undefined variants (@brijeshb42) (#42419) @github-actions[bot]
150
+ - &#8203;<!-- 05 -->[Slider] Fix wrong CSS value (@mnajdova) (#42373) @github-actions[bot]
151
+
152
+ ### Docs
153
+
154
+ - &#8203;<!-- 13 -->Link to pnpm installation docs (#42420) @aarongarciah
155
+ - &#8203;<!-- 12 -->Remove LocalMonero (@oliviertassinari) (#42315) @github-actions[bot]
156
+ - &#8203;<!-- 10 -->[material-ui] Fix typo in style interoperability with Tailwind CSS docs (@ZeeshanTamboli) (#42312) @github-actions[bot]
157
+ - &#8203;<!-- 09 -->[material-ui][Pagination] Clarify pagination `page` prop API (@Mandar-Pandya) (#42265) @github-actions[bot]
158
+ - &#8203;<!-- 08 -->[material-ui][Tabs] Improve the Basic Tabs demo (@MatheusEli) (#42426) @github-actions[bot]
159
+ - &#8203;<!-- 07 -->[pigment-css] Fix duplication of content (#42410) @oliviertassinari
160
+
161
+ ### Core
162
+
163
+ - &#8203;<!-- 18 -->[blog] Add the "Product" tag to the Pigment CSS post (@danilo-leal) (#42366) @github-actions[bot]
164
+ - &#8203;<!-- 17 -->[blog] Update blog post OG image (@danilo-leal) (#42306) @github-actions[bot]
165
+ - &#8203;<!-- 16 -->[blog] Update Pigment CSS post (@danilo-leal) (#42267) @github-actions[bot]
166
+ - &#8203;<!-- 15 -->[core] Fix React 18.3 warnings about spreading keys in the Material UI `Autocomplete` component (#42099) (#42241) @DiegoAndai
167
+ - &#8203;<!-- 14 -->[core] Fix a few more key spread issues (@oliviertassinari) (#42318) @github-actions[bot]
168
+ - &#8203;<!-- 11 -->[docs-infra] Allow JSDoc tags (#42327) @aarongarciah
169
+ - &#8203;<!-- 04 -->[website] Add Nikita to the about page (@nikitaa24) (#42421) @github-actions[bot]
170
+ - &#8203;<!-- 03 -->[website] Fix hero spacing changes applying at the wrong breakpoint (@KenanYusuf) (#42357) @github-actions[bot]
171
+ - &#8203;<!-- 02 -->[website] Adds Kenan Yusuf to about page (@KenanYusuf) (#42330) @github-actions[bot]
172
+ - &#8203;<!-- 01 -->[website] Improve about page @oliviertassinari
173
+
174
+ All contributors of this release in alphabetical order: @aarongarciah, @brijeshb42, @danilo-leal, @DiegoAndai, @KenanYusuf, @lucasgmelo, @Mandar-Pandya, @MatheusEli, @mnajdova, @nikitaa24, @oliviertassinari, @ZeeshanTamboli
175
+
176
+ ## v5.15.18
177
+
178
+ <!-- generated comparing v5.15.17..master -->
179
+
180
+ _May 14, 2024_
181
+
182
+ A big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
183
+
184
+ ### `@mui/material@5.15.18`
185
+
186
+ - &#8203;<!-- 6 -->[Autocomplete] Improve design when there's a start adornment for small autocomplete (@TahaRhidouani) (#42176) @github-actions[bot]
187
+ - &#8203;<!-- 3 -->[ToggleButtonGroup] Add missing `selected` class in ToggleButtonGroupClasses type (@tarunrajput) (#42250) @github-actions[bot]
188
+
189
+ ### Docs
190
+
191
+ - &#8203;<!-- 4 -->[docs] Fix 301 to Figma @oliviertassinari
192
+
193
+ ### Core
194
+
195
+ - &#8203;<!-- 5 -->[blog] Introducing Pigment CSS blog post (#42198) (#42255) @samuelsycamore
196
+ - &#8203;<!-- 2 -->[website] Add redirection for talk @oliviertassinari
197
+ - &#8203;<!-- 1 -->[website] Adds Arthur Balduini team info (@arthurbalduini) (#42226) @github-actions[bot]
198
+
199
+ All contributors of this release in alphabetical order: @arthurbalduini, @oliviertassinari, @samuelsycamore, @TahaRhidouani, @tarunrajput
200
+
201
+ ## v5.15.17
202
+
203
+ <!-- generated comparing v5.15.16..master -->
204
+
205
+ _May 8, 2024_
206
+
207
+ A big thanks to the 4 contributors who made this release possible.
208
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
209
+
210
+ ### `@mui/material@5.15.17`
211
+
212
+ - [Slider] Move palette styles to the bottom (#41676) @siriwatknp
213
+
214
+ ### Docs
215
+
216
+ - Fix SEO redirection issues @oliviertassinari
217
+ - [material-ui] Fix broken link (@aarongarciah) (#42143) @github-actions[bot]
218
+ - [material-ui] Fix link on the Sync page (@danilo-leal) (#42089) @github-actions[bot]
219
+
220
+ ### Core
221
+
222
+ - [blog] Shorten title to fit @oliviertassinari
223
+ - [blog] Update Sync post OG image (@danilo-leal) (#42117) @github-actions[bot]
224
+ - [blog] A few tweaks in introducing-sync-plugin (@oliviertassinari) (#42094) @github-actions[bot]
225
+ - [docs-infra] Fix code block layout shift (#41917) @oliviertassinari
226
+ - [website] Fix home page slider's track position (@aarongarciah) (#42144) @github-actions[bot]
227
+ - [website] Closing the survey @oliviertassinari
228
+ - [website] Remove Survey banner from website and Core docs (#42104) @joserodolfofreitas
229
+
230
+ All contributors of this release in alphabetical order: @github-actions[bot], @joserodolfofreitas, @oliviertassinari, @siriwatknp
231
+
232
+ ## v5.15.16
233
+
234
+ <!-- generated comparing v5.15.15..master -->
235
+
236
+ _May 1, 2024_
237
+
238
+ A big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
239
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
240
+
241
+ ### `@mui/material@5.15.16`
242
+
243
+ - [material-ui][Dialog] Prevent onClick on the root element from being overwritten (@ryanburr) (#41914) @github-actions[bot]
244
+ - [material-ui][Select] Fix `muiName` property TypeScript error (@EyaOuenniche) (#41786) @github-actions[bot]
245
+ - —>[material-ui][l10n] Fix typo in is-IS locale (@magnimarels) (#41815) @github-actions[bot]
246
+
247
+ ### Docs
248
+
249
+ - Fix small SEO issues @oliviertassinari
250
+ - Fix 301 Toolpad links @oliviertassinari
251
+ - Fix 301 Toolpad links @oliviertassinari
252
+ - Fix 301 image redirections @oliviertassinari
253
+ - Fix small SEO issues @oliviertassinari
254
+ - Fix 301 redirection @oliviertassinari
255
+ - Fix format git diff regression (#41882) @oliviertassinari
256
+ - Fix 301 links @oliviertassinari
257
+ - [material-ui] Fix import statement in migration guide (@sai6855) (#41864) @github-actions[bot]
258
+ - [material-ui] Update Figma plugin name (@danilo-leal) (#42057) @github-actions[bot]
259
+ - [material-ui] Fix minor spelling error in the "About the lab" page (@ryanhartwig) (#42075) @github-actions[bot]
260
+ - [material-ui] Add missing backticks to HTML tag in the installation page (@Miguelrom) (#42009) @github-actions[bot]
261
+ - [material-ui] Add Connect-related content (@danilo-leal) (#41924) @DiegoAndai
262
+ - [material-ui] Fix Material 3 message typo (@aarongarciah) (#41822) @github-actions[bot]
263
+ - [material-ui] Remove Data Grid v7 beta callout (@cherniavskii) (#41842) @github-actions[bot]
264
+ - [material-ui][templates] Fix input props attributes in Landing Page template (@5-tom) (#42034) @github-actions[bot]
265
+ - [system] Update typo on the sx prop page (@bricker) (#42078) @github-actions[bot]
266
+
267
+ ### Core
268
+
269
+ - [blog] Add post to introduce the Connect plugin (@danilo-leal) (#41929) @DiegoAndai
270
+ - [core] Automate cherry-pick of PRs from `next` -> `master` (#41742) @aarongarciah
271
+ - [docs-infra] Improve Twitter OG:image (#41860) @oliviertassinari
272
+ - [docs-infra] Use edge function for card generation (#41188) @alexfauquette
273
+ - [docs-infra] Fix drawer performances (#41807) (#41820) @alexfauquette
274
+ - [docs-infra] Fix analytics about inline ads (#41474) @alexfauquette
275
+ - [website] Sync career roles (@oliviertassinari) (#42059) @github-actions[bot]
276
+ - [website] Add content about the Sync plugin in the Material UI page (@danilo-leal) (#42074) @github-actions[bot]
277
+ - [website] Add Nadja on the about page (#42054) @mnajdova
278
+ - [website] Close the `Design Engineer - X` role (#42014) @DanailH
279
+ - [website] Remove customer support agent role from website (@rluzists1) (#41996) @github-actions[bot]
280
+ - [website] Add Jose to About Us (#41759) @JCQuintas
281
+
282
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @DanailH, @DiegoAndai, @github-actions[bot], @JCQuintas, @mnajdova, @oliviertassinari
283
+
3
284
  ## v5.15.15
4
285
 
5
286
  <!-- generated comparing v5.15.14..master -->
@@ -7962,7 +8243,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
7962
8243
 
7963
8244
  <a href="https://mui.com/components/tables/#unstyled-table"><img width="800" alt="unstyled table" src="https://user-images.githubusercontent.com/4512430/144862194-584356ef-7d9d-462c-a631-186a7e716193.png"></a>
7964
8245
 
7965
- You can follow our progress with unstyled components at https://github.com/mui/material-ui/issues/27170.
8246
+ You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
7966
8247
 
7967
8248
  - 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
7968
8249
 
@@ -8229,7 +8510,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
8229
8510
 
8230
8511
  - &#8203;<!-- 27 -->[core] Rename mui/core to mui/base (#29585) @michaldudak
8231
8512
 
8232
- Based on the results of the [poll](https://twitter.com/michaldudak/status/1452630484706635779) and our internal discussions, we decided to rename the `@mui/core` package to `@mui/base`. The main rationale for this is the fact that we use the term "Core" to refer to the core components product family, the one that includes Material Design components, unstyled components, System utilities, etc. Therefore, @mui/core was effectively a subset of MUI Core. This was confusing.
8513
+ Based on the results of the [poll](https://x.com/michaldudak/status/1452630484706635779) and our internal discussions, we decided to rename the `@mui/core` package to `@mui/base`. The main rationale for this is the fact that we use the term "Core" to refer to the core components product family, the one that includes Material Design components, unstyled components, System utilities, etc. Therefore, @mui/core was effectively a subset of MUI Core. This was confusing.
8233
8514
 
8234
8515
  The new name better reflects the purpose of the package: it contains unstyled components, hooks, and utilities that serve as a **base** to build on.
8235
8516
 
@@ -9432,7 +9713,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
9432
9713
 
9433
9714
  <a href="https://mui.com/components/switches/#unstyled"><img width="832" alt="switch" src="https://user-images.githubusercontent.com/3165635/125192249-236f8a80-e247-11eb-9df9-17d476379a32.png"></a>
9434
9715
 
9435
- You can follow our progress at https://github.com/mui/material-ui/issues/27170.
9716
+ You can follow our progress at https://github.com/mui/base-ui/issues/10.
9436
9717
 
9437
9718
  - 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
9438
9719
  You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
@@ -12646,7 +12927,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
12646
12927
  ```
12647
12928
 
12648
12929
  - [Autocomplete] Remove `debug` in favor of `open` and dev tools (#23377) @eps1lon
12649
- There are a couple of simpler alternatives: `open={true}`, Chrome devtools ["Emulate focused"](https://twitter.com/sulco/status/1305841873945272321), or React devtools props.
12930
+ There are a couple of simpler alternatives: `open={true}`, Chrome devtools ["Emulate focused"](https://x.com/sulco/status/1305841873945272321), or React devtools props.
12650
12931
 
12651
12932
  #### Changes
12652
12933
 
@@ -8,7 +8,8 @@ import PropTypes from 'prop-types';
8
8
  import { chainPropTypes } from '@mui/utils';
9
9
  import { capitalize, unstable_useId as useId } from '@mui/material/utils';
10
10
  import { unstable_composeClasses as composeClasses } from '@mui/base';
11
- import { styled, useThemeProps } from '@mui/material/styles';
11
+ import { styled } from '@mui/material/styles';
12
+ import { useDefaultProps } from '@mui/material/DefaultPropsProvider';
12
13
  import Button from '@mui/material/Button';
13
14
  import { ButtonGroupContext } from '@mui/material/ButtonGroup';
14
15
  import CircularProgress from '@mui/material/CircularProgress';
@@ -117,7 +118,7 @@ const LoadingButtonLoadingIndicator = styled('span', {
117
118
  const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
118
119
  const contextProps = React.useContext(ButtonGroupContext);
119
120
  const resolvedProps = resolveProps(contextProps, inProps);
120
- const props = useThemeProps({
121
+ const props = useDefaultProps({
121
122
  props: resolvedProps,
122
123
  name: 'MuiLoadingButton'
123
124
  });
@@ -5,7 +5,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
5
5
  const _excluded = ["children", "className", "component", "columns", "spacing", "sequential", "defaultColumns", "defaultHeight", "defaultSpacing"];
6
6
  import { unstable_composeClasses as composeClasses } from '@mui/base';
7
7
  import * as ReactDOM from 'react-dom';
8
- import { styled, useThemeProps } from '@mui/material/styles';
8
+ import { styled } from '@mui/material/styles';
9
+ import { useDefaultProps } from '@mui/material/DefaultPropsProvider';
9
10
  import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
10
11
  import { deepmerge, unstable_useForkRef as useForkRef, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
11
12
  import clsx from 'clsx';
@@ -138,7 +139,7 @@ const MasonryRoot = styled('div', {
138
139
  }
139
140
  })(getStyle);
140
141
  const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
141
- const props = useThemeProps({
142
+ const props = useDefaultProps({
142
143
  props: inProps,
143
144
  name: 'MuiMasonry'
144
145
  });
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v5.0.0-alpha.170
2
+ * @mui/lab v5.0.0-alpha.172
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -8,7 +8,8 @@ import PropTypes from 'prop-types';
8
8
  import { chainPropTypes } from '@mui/utils';
9
9
  import { capitalize, unstable_useId as useId } from '@mui/material/utils';
10
10
  import { unstable_composeClasses as composeClasses } from '@mui/base';
11
- import { styled, useThemeProps } from '@mui/material/styles';
11
+ import { styled } from '@mui/material/styles';
12
+ import { useDefaultProps } from '@mui/material/DefaultPropsProvider';
12
13
  import Button from '@mui/material/Button';
13
14
  import { ButtonGroupContext } from '@mui/material/ButtonGroup';
14
15
  import CircularProgress from '@mui/material/CircularProgress';
@@ -108,7 +109,7 @@ var LoadingButtonLoadingIndicator = styled('span', {
108
109
  var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
109
110
  var contextProps = React.useContext(ButtonGroupContext);
110
111
  var resolvedProps = resolveProps(contextProps, inProps);
111
- var props = useThemeProps({
112
+ var props = useDefaultProps({
112
113
  props: resolvedProps,
113
114
  name: 'MuiLoadingButton'
114
115
  });
@@ -6,7 +6,8 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
6
6
  import _extends from "@babel/runtime/helpers/esm/extends";
7
7
  import { unstable_composeClasses as composeClasses } from '@mui/base';
8
8
  import * as ReactDOM from 'react-dom';
9
- import { styled, useThemeProps } from '@mui/material/styles';
9
+ import { styled } from '@mui/material/styles';
10
+ import { useDefaultProps } from '@mui/material/DefaultPropsProvider';
10
11
  import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
11
12
  import { deepmerge, unstable_useForkRef as useForkRef, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
12
13
  import clsx from 'clsx';
@@ -136,7 +137,7 @@ var MasonryRoot = styled('div', {
136
137
  }
137
138
  })(getStyle);
138
139
  var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
139
- var props = useThemeProps({
140
+ var props = useDefaultProps({
140
141
  props: inProps,
141
142
  name: 'MuiMasonry'
142
143
  });
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v5.0.0-alpha.170
2
+ * @mui/lab v5.0.0-alpha.172
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -8,7 +8,8 @@ import PropTypes from 'prop-types';
8
8
  import { chainPropTypes } from '@mui/utils';
9
9
  import { capitalize, unstable_useId as useId } from '@mui/material/utils';
10
10
  import { unstable_composeClasses as composeClasses } from '@mui/base';
11
- import { styled, useThemeProps } from '@mui/material/styles';
11
+ import { styled } from '@mui/material/styles';
12
+ import { useDefaultProps } from '@mui/material/DefaultPropsProvider';
12
13
  import Button from '@mui/material/Button';
13
14
  import { ButtonGroupContext } from '@mui/material/ButtonGroup';
14
15
  import CircularProgress from '@mui/material/CircularProgress';
@@ -117,7 +118,7 @@ const LoadingButtonLoadingIndicator = styled('span', {
117
118
  const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
118
119
  const contextProps = React.useContext(ButtonGroupContext);
119
120
  const resolvedProps = resolveProps(contextProps, inProps);
120
- const props = useThemeProps({
121
+ const props = useDefaultProps({
121
122
  props: resolvedProps,
122
123
  name: 'MuiLoadingButton'
123
124
  });
@@ -5,7 +5,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
5
5
  const _excluded = ["children", "className", "component", "columns", "spacing", "sequential", "defaultColumns", "defaultHeight", "defaultSpacing"];
6
6
  import { unstable_composeClasses as composeClasses } from '@mui/base';
7
7
  import * as ReactDOM from 'react-dom';
8
- import { styled, useThemeProps } from '@mui/material/styles';
8
+ import { styled } from '@mui/material/styles';
9
+ import { useDefaultProps } from '@mui/material/DefaultPropsProvider';
9
10
  import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
10
11
  import { deepmerge, unstable_useForkRef as useForkRef, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
11
12
  import clsx from 'clsx';
@@ -138,7 +139,7 @@ const MasonryRoot = styled('div', {
138
139
  }
139
140
  })(getStyle);
140
141
  const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
141
- const props = useThemeProps({
142
+ const props = useDefaultProps({
142
143
  props: inProps,
143
144
  name: 'MuiMasonry'
144
145
  });
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v5.0.0-alpha.170
2
+ * @mui/lab v5.0.0-alpha.172
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -14,6 +14,7 @@ var _utils = require("@mui/utils");
14
14
  var _utils2 = require("@mui/material/utils");
15
15
  var _base = require("@mui/base");
16
16
  var _styles = require("@mui/material/styles");
17
+ var _DefaultPropsProvider = require("@mui/material/DefaultPropsProvider");
17
18
  var _Button = _interopRequireDefault(require("@mui/material/Button"));
18
19
  var _ButtonGroup = require("@mui/material/ButtonGroup");
19
20
  var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
@@ -124,7 +125,7 @@ const LoadingButtonLoadingIndicator = (0, _styles.styled)('span', {
124
125
  const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
125
126
  const contextProps = React.useContext(_ButtonGroup.ButtonGroupContext);
126
127
  const resolvedProps = (0, _resolveProps.default)(contextProps, inProps);
127
- const props = (0, _styles.useThemeProps)({
128
+ const props = (0, _DefaultPropsProvider.useDefaultProps)({
128
129
  props: resolvedProps,
129
130
  name: 'MuiLoadingButton'
130
131
  });
@@ -11,6 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
  var _base = require("@mui/base");
12
12
  var ReactDOM = _interopRequireWildcard(require("react-dom"));
13
13
  var _styles = require("@mui/material/styles");
14
+ var _DefaultPropsProvider = require("@mui/material/DefaultPropsProvider");
14
15
  var _system = require("@mui/system");
15
16
  var _utils = require("@mui/utils");
16
17
  var _clsx = _interopRequireDefault(require("clsx"));
@@ -147,7 +148,7 @@ const MasonryRoot = (0, _styles.styled)('div', {
147
148
  }
148
149
  })(getStyle);
149
150
  const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
150
- const props = (0, _styles.useThemeProps)({
151
+ const props = (0, _DefaultPropsProvider.useDefaultProps)({
151
152
  props: inProps,
152
153
  name: 'MuiMasonry'
153
154
  });
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v5.0.0-alpha.170
2
+ * @mui/lab v5.0.0-alpha.172
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/lab",
3
- "version": "5.0.0-alpha.170",
3
+ "version": "5.0.0-alpha.172",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Laboratory for new MUI modules.",
@@ -31,9 +31,9 @@
31
31
  "@babel/runtime": "^7.23.9",
32
32
  "clsx": "^2.1.0",
33
33
  "prop-types": "^15.8.1",
34
- "@mui/types": "^7.2.14",
35
- "@mui/system": "^5.15.15",
36
- "@mui/utils": "^5.15.14",
34
+ "@mui/utils": "^5.16.1",
35
+ "@mui/system": "^5.16.1",
36
+ "@mui/types": "^7.2.15",
37
37
  "@mui/base": "5.0.0-beta.40"
38
38
  },
39
39
  "peerDependencies": {