@mui/lab 5.0.0-alpha.155 → 5.0.0-alpha.156
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 +60 -2
- package/LoadingButton/LoadingButton.d.ts +1 -0
- package/LoadingButton/LoadingButton.js +5 -1
- package/index.js +1 -1
- package/legacy/LoadingButton/LoadingButton.js +5 -1
- package/legacy/index.js +1 -1
- package/modern/LoadingButton/LoadingButton.js +5 -1
- package/modern/index.js +1 -1
- package/node/LoadingButton/LoadingButton.js +5 -1
- package/node/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.15.0
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.14.20..master -->
|
|
6
|
+
|
|
7
|
+
_Dec 11, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🚀 Added [a new package for a better Material UI integration with Next.js](https://mui.com/material-ui/guides/nextjs) (#39947) @siriwatknp
|
|
12
|
+
|
|
13
|
+
### `@mui/material@5.15.0`
|
|
14
|
+
|
|
15
|
+
- ​<!-- 12 -->Revert "[Select][material-ui] Add name to hidden input element" (#40174) @mj12albert
|
|
16
|
+
- ​<!-- 02 -->[material-ui] Refactor ComponentsVariants type into a generic (#39623) @blakenetz
|
|
17
|
+
|
|
18
|
+
### `@mui/material-nextjs@5.15.0`
|
|
19
|
+
|
|
20
|
+
- ​<!-- 01 -->[material-ui] Add new Next.js integration package (#39947) @siriwatknp
|
|
21
|
+
|
|
22
|
+
### `@mui/material-next@6.0.0-alpha.113`
|
|
23
|
+
|
|
24
|
+
- ​<!-- 11 -->[Badge][material-next] Apply new OwnerState type to Badge (#40119) @lhilgert9
|
|
25
|
+
- ​<!-- 06 -->[material-next][ButtonGroup] Change `ButtonGroup` files to ts (#39794) @lhilgert9
|
|
26
|
+
|
|
27
|
+
### `@mui/icons-material@5.15.0`
|
|
28
|
+
|
|
29
|
+
- ​<!-- 05 -->[icons] Add X logo (#38811) @abreel
|
|
30
|
+
|
|
31
|
+
### `@mui/base@5.0.0-beta.27`
|
|
32
|
+
|
|
33
|
+
- ​<!-- 10 -->[base-ui] useControllableReducer warns when controlled props become uncontrolled (and vice versa) (#39096) @mj12albert
|
|
34
|
+
|
|
35
|
+
### `@mui/joy@5.0.0-beta.18`
|
|
36
|
+
|
|
37
|
+
- ​<!-- 04 -->[joy-ui][Radio][Input] Fix inheritance of disabled prop (#39934) @sai6855
|
|
38
|
+
|
|
39
|
+
### `@mui/lab@5.0.0-alpha.156`
|
|
40
|
+
|
|
41
|
+
- ​<!-- 03 -->[lab][LoadingButton] LoadingButton now inherits props from ButtonGroup (#39679) @lhilgert9
|
|
42
|
+
|
|
43
|
+
### Docs
|
|
44
|
+
|
|
45
|
+
- ​<!-- 09 -->[docs] Fix reference to non-existent checkmark in supported-components.md (#40056) @mbrookes
|
|
46
|
+
- ​<!-- 09 -->[docs][base-ui] Add copy button & primary color picker to the component gallery page (#39884) @mnajdova
|
|
47
|
+
- ​<!-- 08 -->[docs-infra] Update CodeSandbox links (#39992) @anle9650
|
|
48
|
+
- ​<!-- 04 -->[material-ui][docs] Fix wrong root element for emotion styles in shadow DOM (#35326) @EloB
|
|
49
|
+
- ​<!-- 03 -->[material-ui][docs] Move the responsive font charts from recharts to MUI X (#40097) @alexfauquette
|
|
50
|
+
- ​<!-- 02 -->[joy-ui][templates] Remove outdated code (#40095) @zanivan
|
|
51
|
+
- ​<!-- 05 -->[material-ui][docs][Popper] Update Positioned Popper demo styles (#40170) @sai6855
|
|
52
|
+
|
|
53
|
+
### Core
|
|
54
|
+
|
|
55
|
+
- ​<!-- 08 -->[blog] Add a Phuket retreat blog post (#40055) @mikailaread
|
|
56
|
+
- ​<!-- 07 -->[blog] Adjust the latest MUI X blog post (#40046) @danilo-leal
|
|
57
|
+
- ​<!-- 05 -->[core] Migrate from tslint to eslint (#40020) @ZeeshanTamboli
|
|
58
|
+
|
|
59
|
+
All contributors of this release in alphabetical order: @abreel, @alexfauquette, @anle9650, @blakenetz, @danilo-leal, @EloB, @lhilgert9, @mbrookes, @mikailaread, @mj12albert, @mnajdova, @sai6855, @siriwatknp, @zanivan, @ZeeshanTamboli
|
|
60
|
+
|
|
3
61
|
## 5.14.20
|
|
4
62
|
|
|
5
63
|
<!-- generated comparing v5.14.19..master -->
|
|
@@ -11056,7 +11114,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
|
|
|
11056
11114
|
<Typography variant="poster">poster</Typography>;
|
|
11057
11115
|
```
|
|
11058
11116
|
|
|
11059
|
-
[A full demo](https://codesandbox.io/
|
|
11117
|
+
[A full demo](https://codesandbox.io/p/sandbox/fontsizetheme-material-demo-forked-l9u05?file=/demo.tsx:725-773)
|
|
11060
11118
|
|
|
11061
11119
|
- 📚 Add a shortcut to open the Algolia search (#23959) @hmaddisb.
|
|
11062
11120
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
@@ -12250,7 +12308,7 @@ Here are some highlights ✨:
|
|
|
12250
12308
|
|
|
12251
12309
|
You can find a [new version](https://mui.com/components/slider-styled/) of the slider in the lab powered by [emotion](https://emotion.sh/).
|
|
12252
12310
|
|
|
12253
|
-
In the event that you are already using styled-components in your application, you can swap emotion for styled-components 💅. Check [this CodeSandbox](https://codesandbox.io/
|
|
12311
|
+
In the event that you are already using styled-components in your application, you can swap emotion for styled-components 💅. Check [this CodeSandbox](https://codesandbox.io/p/sandbox/sliderstyled-with-styled-components-forked-olc27?file=/package.json) for a demo. It relies on aliases to prevent any bundle size overhead.
|
|
12254
12312
|
|
|
12255
12313
|
The new styling solution saves 2kB gzipped in the bundle compared to JSS, and about 14 kB gzipped if you were already using emotion or styled-components.
|
|
12256
12314
|
|
|
@@ -8,7 +8,9 @@ import { capitalize, unstable_useId as useId } from '@mui/material/utils';
|
|
|
8
8
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
9
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
10
10
|
import Button from '@mui/material/Button';
|
|
11
|
+
import { ButtonGroupContext } from '@mui/material/ButtonGroup';
|
|
11
12
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
13
|
+
import resolveProps from '@mui/utils/resolveProps';
|
|
12
14
|
import loadingButtonClasses, { getLoadingButtonUtilityClass } from './loadingButtonClasses';
|
|
13
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -111,8 +113,10 @@ const LoadingButtonLoadingIndicator = styled('span', {
|
|
|
111
113
|
right: -10
|
|
112
114
|
}));
|
|
113
115
|
const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
|
|
116
|
+
const contextProps = React.useContext(ButtonGroupContext);
|
|
117
|
+
const resolvedProps = resolveProps(contextProps, inProps);
|
|
114
118
|
const props = useThemeProps({
|
|
115
|
-
props:
|
|
119
|
+
props: resolvedProps,
|
|
116
120
|
name: 'MuiLoadingButton'
|
|
117
121
|
});
|
|
118
122
|
const {
|
package/index.js
CHANGED
|
@@ -8,7 +8,9 @@ import { capitalize, unstable_useId as useId } from '@mui/material/utils';
|
|
|
8
8
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
9
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
10
10
|
import Button from '@mui/material/Button';
|
|
11
|
+
import { ButtonGroupContext } from '@mui/material/ButtonGroup';
|
|
11
12
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
13
|
+
import resolveProps from '@mui/utils/resolveProps';
|
|
12
14
|
import loadingButtonClasses, { getLoadingButtonUtilityClass } from './loadingButtonClasses';
|
|
13
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -102,8 +104,10 @@ var LoadingButtonLoadingIndicator = styled('span', {
|
|
|
102
104
|
});
|
|
103
105
|
});
|
|
104
106
|
var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
|
|
107
|
+
var contextProps = React.useContext(ButtonGroupContext);
|
|
108
|
+
var resolvedProps = resolveProps(contextProps, inProps);
|
|
105
109
|
var props = useThemeProps({
|
|
106
|
-
props:
|
|
110
|
+
props: resolvedProps,
|
|
107
111
|
name: 'MuiLoadingButton'
|
|
108
112
|
});
|
|
109
113
|
var children = props.children,
|
package/legacy/index.js
CHANGED
|
@@ -8,7 +8,9 @@ import { capitalize, unstable_useId as useId } from '@mui/material/utils';
|
|
|
8
8
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
9
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
10
10
|
import Button from '@mui/material/Button';
|
|
11
|
+
import { ButtonGroupContext } from '@mui/material/ButtonGroup';
|
|
11
12
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
13
|
+
import resolveProps from '@mui/utils/resolveProps';
|
|
12
14
|
import loadingButtonClasses, { getLoadingButtonUtilityClass } from './loadingButtonClasses';
|
|
13
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -111,8 +113,10 @@ const LoadingButtonLoadingIndicator = styled('span', {
|
|
|
111
113
|
right: -10
|
|
112
114
|
}));
|
|
113
115
|
const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
|
|
116
|
+
const contextProps = React.useContext(ButtonGroupContext);
|
|
117
|
+
const resolvedProps = resolveProps(contextProps, inProps);
|
|
114
118
|
const props = useThemeProps({
|
|
115
|
-
props:
|
|
119
|
+
props: resolvedProps,
|
|
116
120
|
name: 'MuiLoadingButton'
|
|
117
121
|
});
|
|
118
122
|
const {
|
package/modern/index.js
CHANGED
|
@@ -14,7 +14,9 @@ var _utils2 = require("@mui/material/utils");
|
|
|
14
14
|
var _base = require("@mui/base");
|
|
15
15
|
var _styles = require("@mui/material/styles");
|
|
16
16
|
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
17
|
+
var _ButtonGroup = require("@mui/material/ButtonGroup");
|
|
17
18
|
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
19
|
+
var _resolveProps = _interopRequireDefault(require("@mui/utils/resolveProps"));
|
|
18
20
|
var _loadingButtonClasses = _interopRequireWildcard(require("./loadingButtonClasses"));
|
|
19
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
22
|
const _excluded = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"];
|
|
@@ -119,8 +121,10 @@ const LoadingButtonLoadingIndicator = (0, _styles.styled)('span', {
|
|
|
119
121
|
right: -10
|
|
120
122
|
}));
|
|
121
123
|
const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
|
|
124
|
+
const contextProps = React.useContext(_ButtonGroup.ButtonGroupContext);
|
|
125
|
+
const resolvedProps = (0, _resolveProps.default)(contextProps, inProps);
|
|
122
126
|
const props = (0, _styles.useThemeProps)({
|
|
123
|
-
props:
|
|
127
|
+
props: resolvedProps,
|
|
124
128
|
name: 'MuiLoadingButton'
|
|
125
129
|
});
|
|
126
130
|
const {
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/lab",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.156",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Laboratory for new MUI modules.",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"url": "https://opencollective.com/mui-org"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@babel/runtime": "^7.23.
|
|
32
|
-
"@mui/base": "5.0.0-beta.
|
|
33
|
-
"@mui/system": "^5.
|
|
34
|
-
"@mui/types": "^7.2.
|
|
35
|
-
"@mui/utils": "^5.
|
|
31
|
+
"@babel/runtime": "^7.23.5",
|
|
32
|
+
"@mui/base": "5.0.0-beta.27",
|
|
33
|
+
"@mui/system": "^5.15.0",
|
|
34
|
+
"@mui/types": "^7.2.11",
|
|
35
|
+
"@mui/utils": "^5.15.0",
|
|
36
36
|
"clsx": "^2.0.0",
|
|
37
37
|
"prop-types": "^15.8.1"
|
|
38
38
|
},
|