@mui/lab 6.0.0-alpha.11 → 6.0.0-alpha.13
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 +108 -0
- package/LoadingButton/LoadingButton.js +8 -4
- package/index.js +1 -1
- package/modern/LoadingButton/LoadingButton.js +8 -4
- package/modern/index.js +1 -1
- package/modern/zero-styled/index.js +2 -7
- package/node/LoadingButton/LoadingButton.js +7 -3
- package/node/index.js +1 -1
- package/node/zero-styled/index.js +1 -6
- package/package.json +6 -6
- package/zero-styled/index.d.ts +0 -2
- package/zero-styled/index.js +2 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,113 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.0.0-alpha.13
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-alpha.12..next -->
|
|
6
|
+
|
|
7
|
+
_Jun 27, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🚀 Added layout components for Pigment CSS integration (#42693) @siriwatknp
|
|
12
|
+
|
|
13
|
+
### `@mui/material@6.0.0-alpha.13`
|
|
14
|
+
|
|
15
|
+
- [Autocomplete] Fix more React 18.3 key spread warnings in demos (#42639) @wbt
|
|
16
|
+
- [Container][Grid][Stack][Hidden] Export Pigment CSS layout components (#42693) @siriwatknp
|
|
17
|
+
- [Text Field] when click password visibility button, text caret position change to very front. (#42595) @appleSimple
|
|
18
|
+
- [Modal] migrate useSlotProps to useSLot (#42150) @sai6855
|
|
19
|
+
|
|
20
|
+
### `@mui/styles@6.0.0-alpha.13`
|
|
21
|
+
|
|
22
|
+
- [withStyles] Expect React defaultProps warning in test (#42752) @aarongarciah
|
|
23
|
+
|
|
24
|
+
### Docs
|
|
25
|
+
|
|
26
|
+
- Fix link in CONTRIBUTING.md (#42755) @Janpot
|
|
27
|
+
- Add documentation on migrating JSS's alternative, array-based syntax to syntax supported by Emotion (#42053) @cjl750
|
|
28
|
+
- Fix type error in virtualized table demo (#42757) @aarongarciah
|
|
29
|
+
- Add first batch of v6 migration (#42242) @siriwatknp
|
|
30
|
+
- Fix quotes on font-family dedeclaration in the Landing Page template theme (#42748) @joetats
|
|
31
|
+
|
|
32
|
+
### Core
|
|
33
|
+
|
|
34
|
+
- [code-infra] Refactor eslint `import/no-cycle` rule (#42705) @LukasTy
|
|
35
|
+
- [core] Target direct version for prerelease (#42768) @siriwatknp
|
|
36
|
+
- [test] Remove enzyme (#42706) @aarongarciah
|
|
37
|
+
- [test] Remove createMount test util (#42703) @aarongarciah
|
|
38
|
+
- [website] Add Ale to team (#42764) @alelthomas
|
|
39
|
+
|
|
40
|
+
All contributors of this release in alphabetical order: @aarongarciah, @alelthomas, @appleSimple, @cjl750, @Janpot, @joetats, @LukasTy, @sai6855, @siriwatknp, @wbt
|
|
41
|
+
|
|
42
|
+
## v6.0.0-alpha.12
|
|
43
|
+
|
|
44
|
+
<!-- generated comparing v6.0.0-alpha.11..next -->
|
|
45
|
+
|
|
46
|
+
_Jun 24, 2024_
|
|
47
|
+
|
|
48
|
+
A big thanks to the 17 contributors who made this release possible.
|
|
49
|
+
|
|
50
|
+
### `@mui/material@6.0.0-alpha.12`
|
|
51
|
+
|
|
52
|
+
- Add `InitColorSchemeScript` for Next.js App Router (#42247) @siriwatknp
|
|
53
|
+
- [Autocomplete] Fix renderOption props type (#42689) @DiegoAndai
|
|
54
|
+
- [Autocomplete] Fix React 18.3 key spread warnings in Autocomplete demos (#42691) @aarongarciah
|
|
55
|
+
- Support Pigment CSS for `CssBaseline`, `ScopedCssBaseline` and `Popper` (#42640) @siriwatknp
|
|
56
|
+
- Add `DefaultPropsProvider` for Pigment CSS integration (#42638) @siriwatknp
|
|
57
|
+
- [Stepper] Generate class for nonLinear prop (#42620) @alexismo
|
|
58
|
+
- [Tab] Fix failing test (#42686) @aarongarciah
|
|
59
|
+
- [Tab] Deprecate iconWrapper class for icon class (#42647) @sai6855
|
|
60
|
+
- [TableSortLabel] Deprecate composed classes (#42281) @sai6855
|
|
61
|
+
- [usePagination] Update pagination `siblingsEnd` calculation logic (#42667) @Mini-ghost
|
|
62
|
+
|
|
63
|
+
### `@mui/codemod@6.0.0-alpha.12`
|
|
64
|
+
|
|
65
|
+
- Support dynamic props styled transformation (#42683) @siriwatknp
|
|
66
|
+
|
|
67
|
+
### `@mui/system@6.0.0-alpha.12`
|
|
68
|
+
|
|
69
|
+
- Fix issues reported by react compiler in `mui-system` package (#42637) @sai6855
|
|
70
|
+
- [useMediaQuery] Remove deprecated types (#42560) @aarongarciah
|
|
71
|
+
|
|
72
|
+
### `@mui/joy@5.0.0-beta.45`
|
|
73
|
+
|
|
74
|
+
- Fix issues reported by the React Compiler (#42671) @anuujj
|
|
75
|
+
- [Autocomplete] Fix React spread key warning (#42741) @aarongarciah
|
|
76
|
+
|
|
77
|
+
### `@mui/lab@6.0.0-alpha.12`
|
|
78
|
+
|
|
79
|
+
- [LoadingButton] Apply wrapping element to prevent React crash on Google page translation (#35198) @BartJanvanAssen
|
|
80
|
+
|
|
81
|
+
### Docs
|
|
82
|
+
|
|
83
|
+
- Fix git diff format in migration to v6 (#42711) @oliviertassinari
|
|
84
|
+
- Use new email for sponsoring @oliviertassinari
|
|
85
|
+
- Fix 301 links (#42697) @alexfauquette
|
|
86
|
+
- Normalize the capitalization of Design Kit @oliviertassinari
|
|
87
|
+
- Recommend setting HTML attribute instead of DOM property for RTL (#42599) @aarongarciah
|
|
88
|
+
- [material-ui][Select] Fix the `SelectAutoWidth` demo menu item value (#42648) @Danielkhakbaz
|
|
89
|
+
|
|
90
|
+
### Core
|
|
91
|
+
|
|
92
|
+
- [code-infra] Try disabling animations when taking screenshots (#42537) @Janpot
|
|
93
|
+
- [code-infra] Fix benchmark package (#42553) @Janpot
|
|
94
|
+
- [core] Replace enzyme in describeConformance (#42447) @DiegoAndai
|
|
95
|
+
- [docs-infra] Fix layout shift demo toolbar (#42743) @oliviertassinari
|
|
96
|
+
- [docs-infra] Fix visual look of in-house ad (#42735) @oliviertassinari
|
|
97
|
+
- [docs-infra] Add stray design polish (#42646) @danilo-leal
|
|
98
|
+
- [docs-infra] Fix wrong migration (#42675) @siriwatknp
|
|
99
|
+
- [docs-infra] Fine tune markdown elements design (#42643) @danilo-leal
|
|
100
|
+
- [docs-infra] Revamp the product switcher design (#42603) @danilo-leal
|
|
101
|
+
- [docs-infra] Allow Link component to receive the `role` attribute (#42629) @danilo-leal
|
|
102
|
+
- [infra] Add support donation button (#42499) @oliviertassinari
|
|
103
|
+
- [infra] Raise `tsconfig`/`tsc` target to `es2022` (#42645) @LukasTy
|
|
104
|
+
- [test] Fix tests on CI (#42670) @michaldudak
|
|
105
|
+
- [test] Fix issues reported by react-compiler in test packages (#42626) @sai6855
|
|
106
|
+
- [website] Add Armin to the team members (#42679) @arminmeh
|
|
107
|
+
- [website] Open Staff Engineer role for Pigment CSS (#42531) @mnajdova
|
|
108
|
+
|
|
109
|
+
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
|
|
110
|
+
|
|
3
111
|
## v6.0.0-alpha.11
|
|
4
112
|
|
|
5
113
|
<!-- generated comparing v6.0.0-alpha.10..next -->
|
|
@@ -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
|
|
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 =
|
|
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' ?
|
|
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 */ = {
|
package/index.js
CHANGED
|
@@ -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
|
|
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 =
|
|
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' ?
|
|
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 */ = {
|
package/modern/index.js
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
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 =
|
|
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' ?
|
|
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 */ = {
|
package/node/index.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "6.0.0-alpha.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Laboratory for new MUI modules.",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
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.
|
|
35
|
-
"@mui/system": "
|
|
36
|
-
"@mui/
|
|
37
|
-
"@mui/
|
|
34
|
+
"@mui/base": "5.0.0-beta.51",
|
|
35
|
+
"@mui/system": "6.0.0-alpha.13",
|
|
36
|
+
"@mui/utils": "6.0.0-alpha.13",
|
|
37
|
+
"@mui/types": "^7.2.14"
|
|
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.
|
|
45
|
+
"@mui/material": "^6.0.0-alpha.13"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
48
48
|
"@types/react": {
|
package/zero-styled/index.d.ts
CHANGED
package/zero-styled/index.js
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
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';
|