@mui/lab 6.0.0-alpha.10 → 6.0.0-alpha.12

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,150 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-alpha.12
4
+
5
+ <!-- generated comparing v6.0.0-alpha.11..next -->
6
+
7
+ _Jun 24, 2024_
8
+
9
+ A big thanks to the 17 contributors who made this release possible.
10
+
11
+ ### `@mui/material@6.0.0-alpha.12`
12
+
13
+ - Add `InitColorSchemeScript` for Next.js App Router (#42247) @siriwatknp
14
+ - [Autocomplete] Fix renderOption props type (#42689) @DiegoAndai
15
+ - [Autocomplete] Fix React 18.3 key spread warnings in Autocomplete demos (#42691) @aarongarciah
16
+ - Support Pigment CSS for `CssBaseline`, `ScopedCssBaseline` and `Popper` (#42640) @siriwatknp
17
+ - Add `DefaultPropsProvider` for Pigment CSS integration (#42638) @siriwatknp
18
+ - [Stepper] Generate class for nonLinear prop (#42620) @alexismo
19
+ - [Tab] Fix failing test (#42686) @aarongarciah
20
+ - [Tab] Deprecate iconWrapper class for icon class (#42647) @sai6855
21
+ - [TableSortLabel] Deprecate composed classes (#42281) @sai6855
22
+ - [usePagination] Update pagination `siblingsEnd` calculation logic (#42667) @Mini-ghost
23
+
24
+ ### `@mui/codemod@6.0.0-alpha.12`
25
+
26
+ - Support dynamic props styled transformation (#42683) @siriwatknp
27
+
28
+ ### `@mui/system@6.0.0-alpha.12`
29
+
30
+ - Fix issues reported by react compiler in `mui-system` package (#42637) @sai6855
31
+ - [useMediaQuery] Remove deprecated types (#42560) @aarongarciah
32
+
33
+ ### `@mui/joy@5.0.0-beta.45`
34
+
35
+ - Fix issues reported by the React Compiler (#42671) @anuujj
36
+ - [Autocomplete] Fix React spread key warning (#42741) @aarongarciah
37
+
38
+ ### `@mui/lab@6.0.0-alpha.12`
39
+
40
+ - [LoadingButton] Apply wrapping element to prevent React crash on Google page translation (#35198) @BartJanvanAssen
41
+
42
+ ### Docs
43
+
44
+ - Fix git diff format in migration to v6 (#42711) @oliviertassinari
45
+ - Use new email for sponsoring @oliviertassinari
46
+ - Fix 301 links (#42697) @alexfauquette
47
+ - Normalize the capitalization of Design Kit @oliviertassinari
48
+ - Recommend setting HTML attribute instead of DOM property for RTL (#42599) @aarongarciah
49
+ - [material-ui][Select] Fix the `SelectAutoWidth` demo menu item value (#42648) @Danielkhakbaz
50
+
51
+ ### Core
52
+
53
+ - [code-infra] Try disabling animations when taking screenshots (#42537) @Janpot
54
+ - [code-infra] Fix benchmark package (#42553) @Janpot
55
+ - [core] Replace enzyme in describeConformance (#42447) @DiegoAndai
56
+ - [docs-infra] Fix layout shift demo toolbar (#42743) @oliviertassinari
57
+ - [docs-infra] Fix visual look of in-house ad (#42735) @oliviertassinari
58
+ - [docs-infra] Add stray design polish (#42646) @danilo-leal
59
+ - [docs-infra] Fix wrong migration (#42675) @siriwatknp
60
+ - [docs-infra] Fine tune markdown elements design (#42643) @danilo-leal
61
+ - [docs-infra] Revamp the product switcher design (#42603) @danilo-leal
62
+ - [docs-infra] Allow Link component to receive the `role` attribute (#42629) @danilo-leal
63
+ - [infra] Add support donation button (#42499) @oliviertassinari
64
+ - [infra] Raise `tsconfig`/`tsc` target to `es2022` (#42645) @LukasTy
65
+ - [test] Fix tests on CI (#42670) @michaldudak
66
+ - [test] Fix issues reported by react-compiler in test packages (#42626) @sai6855
67
+ - [website] Add Armin to the team members (#42679) @arminmeh
68
+ - [website] Open Staff Engineer role for Pigment CSS (#42531) @mnajdova
69
+
70
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @alexismo, @anuujj, @arminmeh, @BartJanvanAssen, @Danielkhakbaz, @danilo-leal, @DiegoAndai, @Janpot, @LukasTy, @michaldudak, @Mini-ghost, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp
71
+
72
+ ## v6.0.0-alpha.11
73
+
74
+ <!-- generated comparing v6.0.0-alpha.10..next -->
75
+
76
+ _Jun 11, 2024_
77
+
78
+ A big thanks to the 18 contributors who made this release possible.
79
+
80
+ ### `@mui/material@6.0.0-alpha.11`
81
+
82
+ - &#8203;<!-- 38 -->[Autocomplete] Shouldn't resize when hovering (#42452) @ZeeshanTamboli
83
+ - &#8203;<!-- 37 -->[Chip] Fix focus issue related with the Escape event (#41578) @shrilsharma
84
+ - &#8203;<!-- 12 -->[Grid] Fix support for CSS variables (#42574) @oliviertassinari
85
+ - &#8203;<!-- 11 -->[InputBase] Use `globalCss` for Pigment integration (#42431) @siriwatknp
86
+ - &#8203;<!-- 10 -->Change React.ReactElement type from `any` to `unknown` (#42473) @sai6855
87
+ - &#8203;<!-- 09 -->Integrate `extendSxProp` adapter (#42543) @siriwatknp
88
+ - &#8203;<!-- 08 -->[Tab] Fix applying `iconWrapper` styles from theme and update its description (#42549) @sai6855
89
+ - &#8203;<!-- 08 -->[pigment-css] Add `stringifyTheme` for Pigment CSS integration (#42476) @siriwatknp
90
+
91
+ ### `@mui/system@6.0.0-alpha.11`
92
+
93
+ - &#8203;<!-- 11 -->[Grid] Remove `disableEqualOverflow` by using `gap` (#42526) @DiegoAndai
94
+ - &#8203;<!-- 07 -->[useMediaQuery] Drop Safari < 14 support (#42464) @aarongarciah
95
+
96
+ ### `@mui/utils@6.0.0-alpha.11`
97
+
98
+ - &#8203;<!-- 04 -->Allow passing `NaN` as `defaultValue` to `useControlled` (#41559) @iammminzzy
99
+
100
+ ### `@mui/codemod@6.0.0-alpha.11`
101
+
102
+ - &#8203;<!-- 39 -->Improve styled and sx prop transformation (#42598) @siriwatknp
103
+ - &#8203;<!-- 36 -->Support more cases for sx-prop transformation (#42527) @siriwatknp
104
+
105
+ ### `@mui/private-theming@6.0.0-alpha.11`
106
+
107
+ - &#8203;<!-- 09 -->Fix issues reported by react compiler in `mui-private-theming` components (#42619) @sai6855
108
+
109
+ ### Docs
110
+
111
+ - &#8203;<!-- 31 -->Add `theme.applyStyles` and migrate docs (#42498) @siriwatknp
112
+ - &#8203;<!-- 29 -->Fix dashboard template console error (#42594) @oliviertassinari
113
+ - &#8203;<!-- 28 -->Migrate system props to `sx` prop (#42475) @siriwatknp
114
+ - &#8203;<!-- 27 -->[material-ui]Fix duplicated sentence (#42521) @alexfauquette
115
+ - &#8203;<!-- 22 -->[Grid] Fix docs spacing (#42573) @oliviertassinari
116
+ - &#8203;<!-- 21 -->[joy-ui] Add Next.js App Router instructions on how to prevent flickering (#42514) @devnyxie
117
+ - &#8203;<!-- 20 -->[joy-ui] Fix HTML tag without preformatting (#42525) @jacobmoshipco
118
+ - &#8203;<!-- 19 -->[material-ui] Add docs for complementary stepper components (#41900) @anle9650
119
+ - &#8203;<!-- 18 -->[material-ui] Fix typo on Sign-in/Sign-up templates (#42605) @zanivan
120
+ - &#8203;<!-- 17 -->[material-ui] Add container queries docs (#42434) @siriwatknp
121
+ - &#8203;<!-- 16 -->[material-ui] Fix ESLint error in Stepper demo (#42559) @aarongarciah
122
+ - &#8203;<!-- 15 -->[material-ui] Shorten useMediaQuery subheading (#42561) @aarongarciah
123
+ - &#8203;<!-- 14 -->[material-ui] Add a Refine example project (#42461) @necatiozmen
124
+
125
+ ### Core
126
+
127
+ - &#8203;<!-- 39 -->[website] Move the `React Engineer - X` role to future roles (#42532) @DanailH
128
+ - &#8203;<!-- 35 -->[core] Allow `for..of` loops (#42600) @michaldudak
129
+ - &#8203;<!-- 34 -->[core] Add comment about Object.js @oliviertassinari
130
+ - &#8203;<!-- 33 -->[core] Disable eslint-plugin-react-compiler for Base (#42563) @aarongarciah
131
+ - &#8203;<!-- 33 -->[core] Group Pigment CSS dependencies (#42174) @siriwatknp
132
+ - &#8203;<!-- 32 -->[core] Configure eslint-plugin-react-compiler (#42555) @aarongarciah
133
+ - &#8203;<!-- 31 -->[core] Skip charts animation for visual regression test (#42530) @alexfauquette
134
+ - &#8203;<!-- 26 -->[docs-infra] Simplify click header (#42593) @oliviertassinari
135
+ - &#8203;<!-- 25 -->[docs-infra] Add configurable jsdoc host variable (#42472) @tonygravell
136
+ - &#8203;<!-- 25 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
137
+ - &#8203;<!-- 24 -->[docs-infra] Prevent link anchor when selecting text (#41994) @alexfauquette
138
+ - &#8203;<!-- 23 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
139
+ - &#8203;<!-- 13 -->[examples] Remove Pigment CSS examples (#42471) @sai6855
140
+ - &#8203;<!-- 06 -->[test] Restore pnpm tc command (#42572) @oliviertassinari
141
+ - &#8203;<!-- 05 -->[test] Restore testing internal packages (#42519) @michaldudak
142
+ - &#8203;<!-- 03 -->[website] Close Developer Advocate / Content Engineer role @oliviertassinari
143
+ - &#8203;<!-- 02 -->[website] Remove blank line @oliviertassinari
144
+ - &#8203;<!-- 01 -->[website] Fix mobile layout shift @oliviertassinari
145
+
146
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @anle9650, @DanailH, @danilo-leal, @devnyxie, @DiegoAndai, @iammminzzy, @jacobmoshipco, @michaldudak, @necatiozmen, @oliviertassinari, @sai6855, @shrilsharma, @siriwatknp, @tonygravell, @zanivan, @ZeeshanTamboli
147
+
3
148
  ## v6.0.0-alpha.10
4
149
 
5
150
  <!-- generated comparing v6.0.0-alpha.9..next -->
@@ -60,13 +60,13 @@ export type LoadingButtonTypeMap<
60
60
  *
61
61
  * Demos:
62
62
  *
63
- * - [Button Group](https://mui.com/material-ui/react-button-group/)
64
- * - [Button](https://mui.com/material-ui/react-button/)
63
+ * - [Button Group](https://next.mui.com/material-ui/react-button-group/)
64
+ * - [Button](https://next.mui.com/material-ui/react-button/)
65
65
  *
66
66
  * API:
67
67
  *
68
- * - [LoadingButton API](https://mui.com/material-ui/api/loading-button/)
69
- * - inherits [Button API](https://mui.com/material-ui/api/button/)
68
+ * - [LoadingButton API](https://next.mui.com/material-ui/api/loading-button/)
69
+ * - inherits [Button API](https://next.mui.com/material-ui/api/button/)
70
70
  */
71
71
  declare const LoadingButton: ExtendButton<LoadingButtonTypeMap>;
72
72
 
@@ -5,14 +5,14 @@ import PropTypes from 'prop-types';
5
5
  import { chainPropTypes } from '@mui/utils';
6
6
  import { capitalize, unstable_useId as useId } from '@mui/material/utils';
7
7
  import { unstable_composeClasses as composeClasses } from '@mui/base';
8
+ import { useDefaultProps } from '@mui/material/DefaultPropsProvider';
8
9
  import Button from '@mui/material/Button';
9
10
  import { ButtonGroupContext } from '@mui/material/ButtonGroup';
10
11
  import CircularProgress from '@mui/material/CircularProgress';
11
12
  import resolveProps from '@mui/utils/resolveProps';
12
- import { styled, createUseThemeProps } from '../zero-styled';
13
+ import { styled } from '../zero-styled';
13
14
  import loadingButtonClasses, { getLoadingButtonUtilityClass } from './loadingButtonClasses';
14
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
- const useThemeProps = createUseThemeProps('MuiLoadingButton');
16
16
  const useUtilityClasses = ownerState => {
17
17
  const {
18
18
  loading,
@@ -188,7 +188,7 @@ const LoadingButtonLoadingIndicator = styled('span', {
188
188
  const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
189
189
  const contextProps = React.useContext(ButtonGroupContext);
190
190
  const resolvedProps = resolveProps(contextProps, inProps);
191
- const props = useThemeProps({
191
+ const props = useDefaultProps({
192
192
  props: resolvedProps,
193
193
  name: 'MuiLoadingButton'
194
194
  });
@@ -230,7 +230,11 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
230
230
  variant: variant,
231
231
  classes: classes,
232
232
  ownerState: ownerState,
233
- children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
233
+ children: [ownerState.loadingPosition === 'end' ? /*#__PURE__*/_jsx("span", {
234
+ children: children
235
+ }) : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : /*#__PURE__*/_jsx("span", {
236
+ children: children
237
+ })]
234
238
  });
235
239
  });
236
240
  process.env.NODE_ENV !== "production" ? LoadingButton.propTypes /* remove-proptypes */ = {
@@ -56,11 +56,11 @@ export interface MasonryTypeMap<
56
56
  *
57
57
  * Demos:
58
58
  *
59
- * - [Masonry](https://mui.com/material-ui/react-masonry/)
59
+ * - [Masonry](https://next.mui.com/material-ui/react-masonry/)
60
60
  *
61
61
  * API:
62
62
  *
63
- * - [Masonry API](https://mui.com/material-ui/api/masonry/)
63
+ * - [Masonry API](https://next.mui.com/material-ui/api/masonry/)
64
64
  */
65
65
  declare const Masonry: OverridableComponent<MasonryTypeMap>;
66
66
 
@@ -19,11 +19,11 @@ export interface TabContextProps {
19
19
  *
20
20
  * Demos:
21
21
  *
22
- * - [Tabs](https://mui.com/material-ui/react-tabs/)
22
+ * - [Tabs](https://next.mui.com/material-ui/react-tabs/)
23
23
  *
24
24
  * API:
25
25
  *
26
- * - [TabContext API](https://mui.com/material-ui/api/tab-context/)
26
+ * - [TabContext API](https://next.mui.com/material-ui/api/tab-context/)
27
27
  */
28
28
  export default function TabContext(props: TabContextProps): React.JSX.Element;
29
29
  export function useTabContext(): TabContextValue | null;
@@ -22,12 +22,12 @@ export interface TabListTypeMap<
22
22
  *
23
23
  * Demos:
24
24
  *
25
- * - [Tabs](https://mui.com/material-ui/react-tabs/)
25
+ * - [Tabs](https://next.mui.com/material-ui/react-tabs/)
26
26
  *
27
27
  * API:
28
28
  *
29
- * - [TabList API](https://mui.com/material-ui/api/tab-list/)
30
- * - inherits [Tabs API](https://mui.com/material-ui/api/tabs/)
29
+ * - [TabList API](https://next.mui.com/material-ui/api/tab-list/)
30
+ * - inherits [Tabs API](https://next.mui.com/material-ui/api/tabs/)
31
31
  */
32
32
  declare const TabList: OverridableComponent<TabListTypeMap>;
33
33
 
@@ -33,10 +33,10 @@ export interface TabPanelProps extends StandardProps<React.HTMLAttributes<HTMLDi
33
33
  *
34
34
  * Demos:
35
35
  *
36
- * - [Tabs](https://mui.com/material-ui/react-tabs/)
36
+ * - [Tabs](https://next.mui.com/material-ui/react-tabs/)
37
37
  *
38
38
  * API:
39
39
  *
40
- * - [TabPanel API](https://mui.com/material-ui/api/tab-panel/)
40
+ * - [TabPanel API](https://next.mui.com/material-ui/api/tab-panel/)
41
41
  */
42
42
  export default function TabPanel(props: TabPanelProps): React.JSX.Element;
@@ -4,11 +4,11 @@ import { TimelineProps } from './Timeline.types';
4
4
  *
5
5
  * Demos:
6
6
  *
7
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
7
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
8
8
  *
9
9
  * API:
10
10
  *
11
- * - [Timeline API](https://mui.com/material-ui/api/timeline/)
11
+ * - [Timeline API](https://next.mui.com/material-ui/api/timeline/)
12
12
  */
13
13
  declare const Timeline: React.ForwardRefExoticComponent<TimelineProps & React.RefAttributes<HTMLUListElement>>;
14
14
  /**
@@ -39,11 +39,11 @@ const TimelineRoot = styled('ul', {
39
39
  *
40
40
  * Demos:
41
41
  *
42
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
42
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
43
43
  *
44
44
  * API:
45
45
  *
46
- * - [Timeline API](https://mui.com/material-ui/api/timeline/)
46
+ * - [Timeline API](https://next.mui.com/material-ui/api/timeline/)
47
47
  */
48
48
  const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
49
49
  const props = useThemeProps({
@@ -24,10 +24,10 @@ export interface TimelineConnectorProps
24
24
  *
25
25
  * Demos:
26
26
  *
27
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
27
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
28
28
  *
29
29
  * API:
30
30
  *
31
- * - [TimelineConnector API](https://mui.com/material-ui/api/timeline-connector/)
31
+ * - [TimelineConnector API](https://next.mui.com/material-ui/api/timeline-connector/)
32
32
  */
33
33
  export default function TimelineConnector(props: TimelineConnectorProps): React.JSX.Element;
@@ -23,11 +23,11 @@ export interface TimelineContentProps extends StandardProps<TypographyProps> {
23
23
  *
24
24
  * Demos:
25
25
  *
26
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
26
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
27
27
  *
28
28
  * API:
29
29
  *
30
- * - [TimelineContent API](https://mui.com/material-ui/api/timeline-content/)
31
- * - inherits [Typography API](https://mui.com/material-ui/api/typography/)
30
+ * - [TimelineContent API](https://next.mui.com/material-ui/api/timeline-content/)
31
+ * - inherits [Typography API](https://next.mui.com/material-ui/api/typography/)
32
32
  */
33
33
  export default function TimelineContent(props: TimelineContentProps): React.JSX.Element;
@@ -41,10 +41,10 @@ export interface TimelineDotProps extends StandardProps<React.HTMLAttributes<HTM
41
41
  *
42
42
  * Demos:
43
43
  *
44
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
44
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
45
45
  *
46
46
  * API:
47
47
  *
48
- * - [TimelineDot API](https://mui.com/material-ui/api/timeline-dot/)
48
+ * - [TimelineDot API](https://next.mui.com/material-ui/api/timeline-dot/)
49
49
  */
50
50
  export default function TimelineDot(props: TimelineDotProps): React.JSX.Element;
@@ -27,10 +27,10 @@ export interface TimelineItemProps extends StandardProps<React.HTMLAttributes<HT
27
27
  *
28
28
  * Demos:
29
29
  *
30
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
30
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
31
31
  *
32
32
  * API:
33
33
  *
34
- * - [TimelineItem API](https://mui.com/material-ui/api/timeline-item/)
34
+ * - [TimelineItem API](https://next.mui.com/material-ui/api/timeline-item/)
35
35
  */
36
36
  export default function TimelineItem(props: TimelineItemProps): React.JSX.Element;
@@ -23,12 +23,12 @@ export interface TimelineOppositeContentProps extends StandardProps<TypographyPr
23
23
  *
24
24
  * Demos:
25
25
  *
26
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
26
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
27
27
  *
28
28
  * API:
29
29
  *
30
- * - [TimelineOppositeContent API](https://mui.com/material-ui/api/timeline-opposite-content/)
31
- * - inherits [Typography API](https://mui.com/material-ui/api/typography/)
30
+ * - [TimelineOppositeContent API](https://next.mui.com/material-ui/api/timeline-opposite-content/)
31
+ * - inherits [Typography API](https://next.mui.com/material-ui/api/typography/)
32
32
  */
33
33
  declare const TimelineOppositeContent: ((
34
34
  props: TimelineOppositeContentProps,
@@ -24,10 +24,10 @@ export interface TimelineSeparatorProps
24
24
  *
25
25
  * Demos:
26
26
  *
27
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
27
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
28
28
  *
29
29
  * API:
30
30
  *
31
- * - [TimelineSeparator API](https://mui.com/material-ui/api/timeline-separator/)
31
+ * - [TimelineSeparator API](https://next.mui.com/material-ui/api/timeline-separator/)
32
32
  */
33
33
  export default function TimelineSeparator(props: TimelineSeparatorProps): React.JSX.Element;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v6.0.0-alpha.10
2
+ * @mui/lab v6.0.0-alpha.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -5,14 +5,14 @@ import PropTypes from 'prop-types';
5
5
  import { chainPropTypes } from '@mui/utils';
6
6
  import { capitalize, unstable_useId as useId } from '@mui/material/utils';
7
7
  import { unstable_composeClasses as composeClasses } from '@mui/base';
8
+ import { useDefaultProps } from '@mui/material/DefaultPropsProvider';
8
9
  import Button from '@mui/material/Button';
9
10
  import { ButtonGroupContext } from '@mui/material/ButtonGroup';
10
11
  import CircularProgress from '@mui/material/CircularProgress';
11
12
  import resolveProps from '@mui/utils/resolveProps';
12
- import { styled, createUseThemeProps } from '../zero-styled';
13
+ import { styled } from '../zero-styled';
13
14
  import loadingButtonClasses, { getLoadingButtonUtilityClass } from './loadingButtonClasses';
14
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
- const useThemeProps = createUseThemeProps('MuiLoadingButton');
16
16
  const useUtilityClasses = ownerState => {
17
17
  const {
18
18
  loading,
@@ -188,7 +188,7 @@ const LoadingButtonLoadingIndicator = styled('span', {
188
188
  const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
189
189
  const contextProps = React.useContext(ButtonGroupContext);
190
190
  const resolvedProps = resolveProps(contextProps, inProps);
191
- const props = useThemeProps({
191
+ const props = useDefaultProps({
192
192
  props: resolvedProps,
193
193
  name: 'MuiLoadingButton'
194
194
  });
@@ -230,7 +230,11 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
230
230
  variant: variant,
231
231
  classes: classes,
232
232
  ownerState: ownerState,
233
- children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
233
+ children: [ownerState.loadingPosition === 'end' ? /*#__PURE__*/_jsx("span", {
234
+ children: children
235
+ }) : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : /*#__PURE__*/_jsx("span", {
236
+ children: children
237
+ })]
234
238
  });
235
239
  });
236
240
  process.env.NODE_ENV !== "production" ? LoadingButton.propTypes /* remove-proptypes */ = {
@@ -39,11 +39,11 @@ const TimelineRoot = styled('ul', {
39
39
  *
40
40
  * Demos:
41
41
  *
42
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
42
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
43
43
  *
44
44
  * API:
45
45
  *
46
- * - [Timeline API](https://mui.com/material-ui/api/timeline/)
46
+ * - [Timeline API](https://next.mui.com/material-ui/api/timeline/)
47
47
  */
48
48
  const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
49
49
  const props = useThemeProps({
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v6.0.0-alpha.10
2
+ * @mui/lab v6.0.0-alpha.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,7 +1,2 @@
1
- import { useThemeProps } from '@mui/material/styles';
2
- export { styled } from '@mui/material/styles';
3
-
4
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
- export function createUseThemeProps(name) {
6
- return useThemeProps;
7
- }
1
+ /* eslint-disable import/prefer-default-export */
2
+ export { styled } from '@mui/material/styles';
@@ -11,6 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
  var _utils = require("@mui/utils");
12
12
  var _utils2 = require("@mui/material/utils");
13
13
  var _base = require("@mui/base");
14
+ var _DefaultPropsProvider = require("@mui/material/DefaultPropsProvider");
14
15
  var _Button = _interopRequireDefault(require("@mui/material/Button"));
15
16
  var _ButtonGroup = require("@mui/material/ButtonGroup");
16
17
  var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
@@ -20,7 +21,6 @@ var _loadingButtonClasses = _interopRequireWildcard(require("./loadingButtonClas
20
21
  var _jsxRuntime = require("react/jsx-runtime");
21
22
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
22
23
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
- const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiLoadingButton');
24
24
  const useUtilityClasses = ownerState => {
25
25
  const {
26
26
  loading,
@@ -196,7 +196,7 @@ const LoadingButtonLoadingIndicator = (0, _zeroStyled.styled)('span', {
196
196
  const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
197
197
  const contextProps = React.useContext(_ButtonGroup.ButtonGroupContext);
198
198
  const resolvedProps = (0, _resolveProps.default)(contextProps, inProps);
199
- const props = useThemeProps({
199
+ const props = (0, _DefaultPropsProvider.useDefaultProps)({
200
200
  props: resolvedProps,
201
201
  name: 'MuiLoadingButton'
202
202
  });
@@ -238,7 +238,11 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
238
238
  variant: variant,
239
239
  classes: classes,
240
240
  ownerState: ownerState,
241
- children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
241
+ children: [ownerState.loadingPosition === 'end' ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
242
+ children: children
243
+ }) : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
244
+ children: children
245
+ })]
242
246
  });
243
247
  });
244
248
  process.env.NODE_ENV !== "production" ? LoadingButton.propTypes /* remove-proptypes */ = {
@@ -47,11 +47,11 @@ const TimelineRoot = (0, _styles.styled)('ul', {
47
47
  *
48
48
  * Demos:
49
49
  *
50
- * - [Timeline](https://mui.com/material-ui/react-timeline/)
50
+ * - [Timeline](https://next.mui.com/material-ui/react-timeline/)
51
51
  *
52
52
  * API:
53
53
  *
54
- * - [Timeline API](https://mui.com/material-ui/api/timeline/)
54
+ * - [Timeline API](https://next.mui.com/material-ui/api/timeline/)
55
55
  */
56
56
  const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
57
57
  const props = (0, _styles.useThemeProps)({
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v6.0.0-alpha.10
2
+ * @mui/lab v6.0.0-alpha.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -3,15 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.createUseThemeProps = createUseThemeProps;
7
6
  Object.defineProperty(exports, "styled", {
8
7
  enumerable: true,
9
8
  get: function () {
10
9
  return _styles.styled;
11
10
  }
12
11
  });
13
- var _styles = require("@mui/material/styles");
14
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
15
- function createUseThemeProps(name) {
16
- return _styles.useThemeProps;
17
- }
12
+ var _styles = require("@mui/material/styles");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/lab",
3
- "version": "6.0.0-alpha.10",
3
+ "version": "6.0.0-alpha.12",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Laboratory for new MUI modules.",
@@ -28,13 +28,13 @@
28
28
  "url": "https://opencollective.com/mui-org"
29
29
  },
30
30
  "dependencies": {
31
- "@babel/runtime": "^7.24.6",
31
+ "@babel/runtime": "^7.24.7",
32
32
  "clsx": "^2.1.1",
33
33
  "prop-types": "^15.8.1",
34
- "@mui/base": "5.0.0-beta.48",
35
- "@mui/system": "^6.0.0-alpha.10",
34
+ "@mui/base": "5.0.0-beta.50",
35
+ "@mui/system": "^6.0.0-alpha.12",
36
36
  "@mui/types": "^7.2.14",
37
- "@mui/utils": "^6.0.0-alpha.9"
37
+ "@mui/utils": "^6.0.0-alpha.12"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@emotion/react": "^11.5.0",
@@ -42,7 +42,7 @@
42
42
  "@types/react": "^17.0.0 || ^18.0.0",
43
43
  "react": "^17.0.0 || ^18.0.0",
44
44
  "react-dom": "^17.0.0 || ^18.0.0",
45
- "@mui/material": "^6.0.0-alpha.10"
45
+ "@mui/material": "^6.0.0-alpha.12"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "@types/react": {
@@ -1,3 +1 @@
1
- import { useThemeProps } from '@mui/material/styles';
2
1
  export { styled } from '@mui/material/styles';
3
- export declare function createUseThemeProps(name: string): typeof useThemeProps;
@@ -1,7 +1,2 @@
1
- import { useThemeProps } from '@mui/material/styles';
2
- export { styled } from '@mui/material/styles';
3
-
4
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
- export function createUseThemeProps(name) {
6
- return useThemeProps;
7
- }
1
+ /* eslint-disable import/prefer-default-export */
2
+ export { styled } from '@mui/material/styles';