@mui/material 6.0.0-alpha.0 → 6.0.0-alpha.2
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/AppBar/AppBar.js +118 -68
- package/Badge/Badge.d.ts +2 -4
- package/Badge/Badge.js +2 -4
- package/Button/Button.js +220 -131
- package/ButtonBase/ButtonBase.js +2 -2
- package/ButtonBase/Ripple.js +1 -1
- package/ButtonBase/TouchRipple.js +3 -4
- package/ButtonGroup/ButtonGroup.js +167 -70
- package/CHANGELOG.md +170 -4
- package/Grid/Grid.js +3 -0
- package/RadioGroup/RadioGroup.d.ts +0 -2
- package/RadioGroup/RadioGroup.js +23 -2
- package/RadioGroup/index.d.ts +3 -0
- package/RadioGroup/index.js +3 -1
- package/RadioGroup/radioGroupClasses.d.ts +6 -0
- package/RadioGroup/radioGroupClasses.js +7 -0
- package/Select/Select.d.ts +9 -6
- package/Slider/Slider.js +22 -22
- package/Table/Table.d.ts +0 -2
- package/Table/Table.js +0 -2
- package/index.js +1 -1
- package/legacy/AppBar/AppBar.js +124 -64
- package/legacy/Badge/Badge.js +2 -4
- package/legacy/Button/Button.js +218 -123
- package/legacy/ButtonBase/ButtonBase.js +2 -2
- package/legacy/ButtonBase/Ripple.js +1 -1
- package/legacy/ButtonBase/TouchRipple.js +3 -4
- package/legacy/ButtonGroup/ButtonGroup.js +163 -68
- package/legacy/Grid/Grid.js +3 -0
- package/legacy/RadioGroup/RadioGroup.js +21 -2
- package/legacy/RadioGroup/index.js +3 -1
- package/legacy/RadioGroup/radioGroupClasses.js +7 -0
- package/legacy/Slider/Slider.js +24 -24
- package/legacy/Table/Table.js +0 -2
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +1 -1
- package/legacy/styles/experimental_extendTheme.js +24 -2
- package/legacy/zero-styled/index.js +1 -0
- package/locale/index.js +1 -1
- package/modern/AppBar/AppBar.js +118 -68
- package/modern/Badge/Badge.js +2 -4
- package/modern/Button/Button.js +220 -131
- package/modern/ButtonBase/ButtonBase.js +2 -2
- package/modern/ButtonBase/Ripple.js +1 -1
- package/modern/ButtonBase/TouchRipple.js +3 -4
- package/modern/ButtonGroup/ButtonGroup.js +167 -70
- package/modern/Grid/Grid.js +3 -0
- package/modern/RadioGroup/RadioGroup.js +23 -2
- package/modern/RadioGroup/index.js +3 -1
- package/modern/RadioGroup/radioGroupClasses.js +7 -0
- package/modern/Slider/Slider.js +22 -22
- package/modern/Table/Table.js +0 -2
- package/modern/index.js +1 -1
- package/modern/locale/index.js +1 -1
- package/modern/styles/experimental_extendTheme.js +24 -2
- package/modern/zero-styled/index.js +1 -0
- package/node/AppBar/AppBar.js +125 -66
- package/node/Badge/Badge.js +2 -4
- package/node/Button/Button.js +224 -135
- package/node/ButtonBase/ButtonBase.js +4 -4
- package/node/ButtonBase/Ripple.js +1 -1
- package/node/ButtonBase/TouchRipple.js +9 -10
- package/node/ButtonGroup/ButtonGroup.js +169 -72
- package/node/Grid/Grid.js +3 -0
- package/node/RadioGroup/RadioGroup.js +23 -2
- package/node/RadioGroup/index.js +25 -1
- package/node/RadioGroup/radioGroupClasses.js +15 -0
- package/node/Slider/Slider.js +25 -25
- package/node/Table/Table.js +0 -2
- package/node/index.js +1 -1
- package/node/locale/index.js +1 -1
- package/node/styles/experimental_extendTheme.js +24 -2
- package/node/zero-styled/index.js +7 -0
- package/package.json +6 -6
- package/styles/components.d.ts +5 -0
- package/styles/experimental_extendTheme.d.ts +2 -0
- package/styles/experimental_extendTheme.js +24 -2
- package/styles/overrides.d.ts +2 -0
- package/umd/material-ui.development.js +888 -593
- package/umd/material-ui.production.min.js +4 -4
- package/zero-styled/index.d.ts +1 -0
- package/zero-styled/index.js +1 -0
package/ButtonBase/ButtonBase.js
CHANGED
|
@@ -9,14 +9,14 @@ import clsx from 'clsx';
|
|
|
9
9
|
import refType from '@mui/utils/refType';
|
|
10
10
|
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
11
11
|
import composeClasses from '@mui/utils/composeClasses';
|
|
12
|
-
import styled from '../
|
|
13
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
12
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
14
13
|
import useForkRef from '../utils/useForkRef';
|
|
15
14
|
import useEventCallback from '../utils/useEventCallback';
|
|
16
15
|
import useIsFocusVisible from '../utils/useIsFocusVisible';
|
|
17
16
|
import TouchRipple from './TouchRipple';
|
|
18
17
|
import buttonBaseClasses, { getButtonBaseUtilityClass } from './buttonBaseClasses';
|
|
19
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
const useThemeProps = createUseThemeProps('MuiButtonBase');
|
|
20
20
|
const useUtilityClasses = ownerState => {
|
|
21
21
|
const {
|
|
22
22
|
disabled,
|
package/ButtonBase/Ripple.js
CHANGED
|
@@ -50,7 +50,7 @@ function Ripple(props) {
|
|
|
50
50
|
})
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
|
|
53
|
+
process.env.NODE_ENV !== "production" ? Ripple.propTypes /* remove-proptypes */ = {
|
|
54
54
|
/**
|
|
55
55
|
* Override or extend the styles applied to the component.
|
|
56
56
|
*/
|
|
@@ -7,13 +7,12 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { TransitionGroup } from 'react-transition-group';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import { keyframes } from '@mui/system';
|
|
11
10
|
import useTimeout from '@mui/utils/useTimeout';
|
|
12
|
-
import styled from '../
|
|
13
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
11
|
+
import { keyframes, styled, createUseThemeProps } from '../zero-styled';
|
|
14
12
|
import Ripple from './Ripple';
|
|
15
13
|
import touchRippleClasses from './touchRippleClasses';
|
|
16
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
const useThemeProps = createUseThemeProps('MuiTouchRipple');
|
|
17
16
|
const DURATION = 550;
|
|
18
17
|
export const DELAY_RIPPLE = 80;
|
|
19
18
|
const enterKeyframe = keyframes`
|
|
@@ -310,7 +309,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
310
309
|
})
|
|
311
310
|
}));
|
|
312
311
|
});
|
|
313
|
-
process.env.NODE_ENV !== "production" ? TouchRipple.propTypes = {
|
|
312
|
+
process.env.NODE_ENV !== "production" ? TouchRipple.propTypes /* remove-proptypes */ = {
|
|
314
313
|
/**
|
|
315
314
|
* If `true`, the ripple starts at the center of the component
|
|
316
315
|
* rather than at the point of interaction.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["children", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -10,12 +10,12 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
10
10
|
import { alpha } from '@mui/system/colorManipulator';
|
|
11
11
|
import getValidReactChildren from '@mui/utils/getValidReactChildren';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
|
-
import styled from '../
|
|
14
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
13
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
15
14
|
import buttonGroupClasses, { getButtonGroupUtilityClass } from './buttonGroupClasses';
|
|
16
15
|
import ButtonGroupContext from './ButtonGroupContext';
|
|
17
16
|
import ButtonGroupButtonContext from './ButtonGroupButtonContext';
|
|
18
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
const useThemeProps = createUseThemeProps('MuiButtonGroup');
|
|
19
19
|
const overridesResolver = (props, styles) => {
|
|
20
20
|
const {
|
|
21
21
|
ownerState
|
|
@@ -62,80 +62,177 @@ const ButtonGroupRoot = styled('div', {
|
|
|
62
62
|
slot: 'Root',
|
|
63
63
|
overridesResolver
|
|
64
64
|
})(({
|
|
65
|
-
theme
|
|
66
|
-
|
|
67
|
-
}) => _extends({
|
|
65
|
+
theme
|
|
66
|
+
}) => ({
|
|
68
67
|
display: 'inline-flex',
|
|
69
|
-
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
68
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
69
|
+
variants: [{
|
|
70
|
+
props: {
|
|
71
|
+
variant: 'contained'
|
|
72
|
+
},
|
|
73
|
+
style: {
|
|
74
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
75
|
+
}
|
|
76
|
+
}, {
|
|
77
|
+
props: {
|
|
78
|
+
disableElevation: true
|
|
79
|
+
},
|
|
80
|
+
style: {
|
|
82
81
|
boxShadow: 'none'
|
|
83
|
-
})
|
|
84
|
-
}, ownerState.variant === 'contained' && {
|
|
85
|
-
boxShadow: 'none'
|
|
86
|
-
}),
|
|
87
|
-
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: _extends({}, ownerState.orientation === 'horizontal' && {
|
|
88
|
-
borderTopRightRadius: 0,
|
|
89
|
-
borderBottomRightRadius: 0
|
|
90
|
-
}, ownerState.orientation === 'vertical' && {
|
|
91
|
-
borderBottomRightRadius: 0,
|
|
92
|
-
borderBottomLeftRadius: 0
|
|
93
|
-
}, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
|
|
94
|
-
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
95
|
-
[`&.${buttonGroupClasses.disabled}`]: {
|
|
96
|
-
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
97
82
|
}
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
83
|
+
}, {
|
|
84
|
+
props: {
|
|
85
|
+
fullWidth: true
|
|
86
|
+
},
|
|
87
|
+
style: {
|
|
88
|
+
width: '100%'
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
props: {
|
|
92
|
+
orientation: 'vertical'
|
|
93
|
+
},
|
|
94
|
+
style: {
|
|
95
|
+
flexDirection: 'column',
|
|
96
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
97
|
+
borderTopRightRadius: 0,
|
|
98
|
+
borderTopLeftRadius: 0
|
|
99
|
+
},
|
|
100
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
101
|
+
borderBottomRightRadius: 0,
|
|
102
|
+
borderBottomLeftRadius: 0
|
|
103
|
+
}
|
|
102
104
|
}
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
}, {
|
|
106
|
+
props: {
|
|
107
|
+
orientation: 'horizontal'
|
|
108
|
+
},
|
|
109
|
+
style: {
|
|
110
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
111
|
+
borderTopRightRadius: 0,
|
|
112
|
+
borderBottomRightRadius: 0
|
|
113
|
+
},
|
|
114
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
115
|
+
borderTopLeftRadius: 0,
|
|
116
|
+
borderBottomLeftRadius: 0
|
|
117
|
+
}
|
|
113
118
|
}
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
}, {
|
|
120
|
+
props: {
|
|
121
|
+
variant: 'text',
|
|
122
|
+
orientation: 'horizontal'
|
|
123
|
+
},
|
|
124
|
+
style: {
|
|
125
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
126
|
+
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
127
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
128
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
129
|
+
}
|
|
130
|
+
}
|
|
118
131
|
}
|
|
119
|
-
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
120
|
-
borderColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
121
132
|
}, {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
props: {
|
|
134
|
+
variant: 'text',
|
|
135
|
+
orientation: 'vertical'
|
|
136
|
+
},
|
|
137
|
+
style: {
|
|
138
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
139
|
+
borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
140
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
141
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}, ...Object.entries(theme.palette).filter(([, value]) => value.main).flatMap(([color]) => [{
|
|
146
|
+
props: {
|
|
147
|
+
variant: 'text',
|
|
148
|
+
color
|
|
149
|
+
},
|
|
150
|
+
style: {
|
|
151
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
152
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / 0.5)` : alpha(theme.palette[color].main, 0.5)
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}]), {
|
|
156
|
+
props: {
|
|
157
|
+
variant: 'outlined',
|
|
158
|
+
orientation: 'horizontal'
|
|
159
|
+
},
|
|
160
|
+
style: {
|
|
161
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
162
|
+
borderRightColor: 'transparent',
|
|
163
|
+
'&:hover': {
|
|
164
|
+
borderRightColor: 'currentColor'
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
168
|
+
marginLeft: -1
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
props: {
|
|
173
|
+
variant: 'outlined',
|
|
174
|
+
orientation: 'vertical'
|
|
175
|
+
},
|
|
176
|
+
style: {
|
|
177
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
178
|
+
borderBottomColor: 'transparent',
|
|
179
|
+
'&:hover': {
|
|
180
|
+
borderBottomColor: 'currentColor'
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
184
|
+
marginTop: -1
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}, {
|
|
188
|
+
props: {
|
|
189
|
+
variant: 'contained',
|
|
190
|
+
orientation: 'horizontal'
|
|
191
|
+
},
|
|
192
|
+
style: {
|
|
193
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
194
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
195
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
196
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}, {
|
|
201
|
+
props: {
|
|
202
|
+
variant: 'contained',
|
|
203
|
+
orientation: 'vertical'
|
|
204
|
+
},
|
|
205
|
+
style: {
|
|
206
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
207
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
208
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
209
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}, ...Object.entries(theme.palette).filter(([, value]) => value.dark).map(([color]) => ({
|
|
214
|
+
props: {
|
|
215
|
+
variant: 'contained',
|
|
216
|
+
color
|
|
217
|
+
},
|
|
218
|
+
style: {
|
|
219
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
220
|
+
borderColor: (theme.vars || theme).palette[color].dark
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}))],
|
|
224
|
+
[`& .${buttonGroupClasses.grouped}`]: {
|
|
225
|
+
minWidth: 40,
|
|
226
|
+
boxShadow: 'none',
|
|
227
|
+
props: {
|
|
228
|
+
variant: 'contained'
|
|
229
|
+
},
|
|
230
|
+
style: {
|
|
231
|
+
'&:hover': {
|
|
232
|
+
boxShadow: 'none'
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
139
236
|
}));
|
|
140
237
|
const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, ref) {
|
|
141
238
|
const props = useThemeProps({
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,131 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.0.0-alpha.2
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-alpha.1..next -->
|
|
6
|
+
|
|
7
|
+
_Apr 9, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 5 contributors who made this release possible.
|
|
10
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
11
|
+
|
|
12
|
+
### `@mui/material@6.0.0-alpha.2`
|
|
13
|
+
|
|
14
|
+
- ​<!-- 03 -->[typescript][Select] Fix `muiName` property TypeScript error (#41726) @EyaOuenniche
|
|
15
|
+
- ​<!-- 04 -->[l10n] Fix typo in is-IS locale (#41810) @magnimarels
|
|
16
|
+
|
|
17
|
+
### `@pigment-css/react@0.0.6`
|
|
18
|
+
|
|
19
|
+
- ​<!-- 12 -->[core] Remove `muiName` during eval phase (#41811) @brijeshb42
|
|
20
|
+
|
|
21
|
+
### `@pigment-css/nextjs-plugin@0.0.6`
|
|
22
|
+
|
|
23
|
+
- ​<!-- 02 -->[nextjs] Handle file references passed through imports (#41817) @brijeshb42
|
|
24
|
+
- ​<!-- 01 -->[nextjs] Allow usage of url() CSS function (#41758) @brijeshb42
|
|
25
|
+
|
|
26
|
+
### Docs
|
|
27
|
+
|
|
28
|
+
- ​<!-- 11 -->[docs] Fix 301 links @oliviertassinari
|
|
29
|
+
- ​<!-- 06 -->[pigment-css][docs] Fix README typo (#41808) @aarongarciah
|
|
30
|
+
- ​<!-- 05 -->[pigment-css][docs] Fix output on dynamic styles example (#41805) @aarongarciah
|
|
31
|
+
- ​<!-- 07 -->[material-ui][docs] Fix Material 3 message typo (#41821) @aarongarciah
|
|
32
|
+
- ​<!-- 08 -->[material-ui][docs] Add stray design tweaks to free templates (#41696) @zanivan
|
|
33
|
+
|
|
34
|
+
### Core
|
|
35
|
+
|
|
36
|
+
- ​<!-- 13 -->[core] Remove unused files (#41818) @mnajdova
|
|
37
|
+
- ​<!-- 10 -->[docs-infra] Fix analytics about inline ads (#41474) (#41819) @alexfauquette
|
|
38
|
+
- ​<!-- 08 -->[docs-infra] Fix drawer performances (#41807) @alexfauquette
|
|
39
|
+
|
|
40
|
+
All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @brijeshb42, @EyaOuenniche, @oliviertassinari
|
|
41
|
+
|
|
42
|
+
## v6.0.0-alpha.1
|
|
43
|
+
|
|
44
|
+
<!-- generated comparing v6.0.0-alpha.0..next -->
|
|
45
|
+
|
|
46
|
+
_Apr 5, 2024_
|
|
47
|
+
|
|
48
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
49
|
+
|
|
50
|
+
- 🔥 Converted 3 more Material UI components to use Pigment CSS. Current progress is 36%!
|
|
51
|
+
- 🚀 Added a spacing CSS variable to the Material UI and Joy UI themes.
|
|
52
|
+
- 💫 Added 3 redesigned free Material UI templates: [Sign-in](https://next.mui.com/material-ui/getting-started/templates/sign-in/), [Sign-in side](https://next.mui.com/material-ui/getting-started/templates/sign-in-side/), and [Sign-up](https://next.mui.com/material-ui/getting-started/templates/sign-up/).
|
|
53
|
+
|
|
54
|
+
### `@mui/material@6.0.0-alpha.1`
|
|
55
|
+
|
|
56
|
+
- [AppBar] Convert to support CSS extraction (#41247) @mnajdova
|
|
57
|
+
- [Badge] Deprecate components and componentsProps (#41655) @skmanoj322
|
|
58
|
+
- [Button] Convert to support CSS extraction (#41378) @siriwatknp
|
|
59
|
+
- [ButtonGroup] Convert to support CSS extraction (#41666) @zanivan
|
|
60
|
+
- [RadioGroup] Apply classnames (#41610) @ZeeshanTamboli
|
|
61
|
+
- [Slider] Move palette styles to the bottom (#41676) @siriwatknp
|
|
62
|
+
- Add the `spacing` theme token (#40224) @siriwatknp
|
|
63
|
+
|
|
64
|
+
### `@mui/system@6.0.0-alpha.1`
|
|
65
|
+
|
|
66
|
+
- Add the `spacing` theme token to be used in `theme.spacing()` (#40224) @siriwatknp
|
|
67
|
+
|
|
68
|
+
### `@mui/codemod@6.0.0-alpha.1`
|
|
69
|
+
|
|
70
|
+
- [codemod] Setup v6 codemod structure (#41668) @DiegoAndai
|
|
71
|
+
|
|
72
|
+
### `@mui/lab@6.0.0-alpha.1`
|
|
73
|
+
|
|
74
|
+
- [TabPanel] Add keepMounted prop to match Joy UI (#41651) @ppaskaris-plooto
|
|
75
|
+
|
|
76
|
+
### `@mui/joy@5.0.0-beta.34`
|
|
77
|
+
|
|
78
|
+
- Add `spacing` theme token (#40224) @siriwatknp
|
|
79
|
+
|
|
80
|
+
### `@pigment-css/react@0.0.5`
|
|
81
|
+
|
|
82
|
+
- Improve sx prop support (#41589) @brijeshb42
|
|
83
|
+
- Fix Emotion styled error (#41699) @siriwatknp
|
|
84
|
+
- Fix propTypes removal during eval stage (#41695) @brijeshb42
|
|
85
|
+
- Fix props forwarding (#41688) @siriwatknp
|
|
86
|
+
- Fix sx prop transformation on Box (#41705) @brijeshb42
|
|
87
|
+
|
|
88
|
+
### `@pigment-css/vite-plugin@0.0.5`
|
|
89
|
+
|
|
90
|
+
- Use constant filename for pigment styles (#41667) @brijeshb42
|
|
91
|
+
|
|
92
|
+
### `@pigment-css/nextjs-plugin@0.0.5`
|
|
93
|
+
|
|
94
|
+
- Add missing RTL implementation (#41751) @brijeshb42
|
|
95
|
+
|
|
96
|
+
### Docs
|
|
97
|
+
|
|
98
|
+
- [pigment-css] Update README.md installation to use the next tag (#41649) @mnajdova
|
|
99
|
+
- [pigment-css] Add "Building design system components" guide with Pigment CSS (#41635) @siriwatknp
|
|
100
|
+
- Continue migration of Base UI to sperate repository @oliviertassinari
|
|
101
|
+
- Stick to one way to write IE 11 @oliviertassinari
|
|
102
|
+
- Fix typo in CONTRIBUTING.md (#41670) @adriancuadrado
|
|
103
|
+
- Drop IE 11 official support (#41611) @iammminzzy
|
|
104
|
+
- [material-ui] Fix typo on the Accordion page (#41687) @connorshea
|
|
105
|
+
- [pigment-css] Add small edits on the README (#41646) @danilo-leal
|
|
106
|
+
- [pigment-css] Edit the example app's README files (#41639) @danilo-leal
|
|
107
|
+
|
|
108
|
+
### Core
|
|
109
|
+
|
|
110
|
+
- [code-infra] Move BrandingProvider/brandingTheme/InfoCard to @mui/docs (#41206) @Janpot
|
|
111
|
+
- [core] Automate cherry-pick of PRs from `next` -> `master` (#41741) @aarongarciah
|
|
112
|
+
- [core] Update the prettier script to use the next branch (#41637) @mnajdova
|
|
113
|
+
- [docs-infra] Skip loading source for non-editable modules (#41588) @bharatkashyap
|
|
114
|
+
- [docs-infra] Vale rule for M3 (#41737) @oliviertassinari
|
|
115
|
+
- [docs-infra] Allows to remove edit button (#41702) @alexfauquette
|
|
116
|
+
- [pigment-css][examples] Add example project with Remix (#41700) @brijeshb42
|
|
117
|
+
- [examples] Update MUI's packages to the next version (#41701) @mnajdova
|
|
118
|
+
- [material-ui] Refine the Sign-in and Sign-up templates (#41192) @zanivan
|
|
119
|
+
- [test] Add test to display options provided to the options prop even if loading is true. (#41675) @ZeeshanTamboli
|
|
120
|
+
- [blog] Refresh the design slightly (#41697) @danilo-leal
|
|
121
|
+
- [website] Use en-US over en-UK for career link @oliviertassinari
|
|
122
|
+
- [website] Add Aarón to About Us (#41736) @aarongarciah
|
|
123
|
+
- [website] Refine button design and other details (#41686) @danilo-leal
|
|
124
|
+
- [website] Improve job og image (#41672) @oliviertassinari
|
|
125
|
+
- [website] Page <title> should have no dots @oliviertassinari
|
|
126
|
+
|
|
127
|
+
All contributors of this release in alphabetical order: @aarongarciah, @adriancuadrado, @alexfauquette, @bharatkashyap, @brijeshb42, @connorshea, @danilo-leal, @DiegoAndai, @iammminzzy, @Janpot, @JCQuintas, @levigunz, @mnajdova, @oliviertassinari, @ppaskaris-plooto, @siriwatknp, @skmanoj322, @zanivan, @ZeeshanTamboli
|
|
128
|
+
|
|
3
129
|
## v6.0.0-alpha.0
|
|
4
130
|
|
|
5
131
|
<!-- generated comparing v5.15.14..next -->
|
|
@@ -79,6 +205,46 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
79
205
|
|
|
80
206
|
All contributors of this release in alphabetical order: @aacevski, @brijeshb42, @cherniavskii, @cipherlogs, @danilo-leal, @DiegoAndai, @harry-whorlow, @Janpot, @joserodolfofreitas, @michael-land, @michaldudak, @mnajdova, @nekoya, @sai6855, @siriwatknp, @StylesTrip, @zanivan, @ZeeshanTamboli
|
|
81
207
|
|
|
208
|
+
## v5.15.15
|
|
209
|
+
|
|
210
|
+
<!-- generated comparing v5.15.14..master -->
|
|
211
|
+
|
|
212
|
+
_Apr 4, 2024_
|
|
213
|
+
|
|
214
|
+
A big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
215
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
216
|
+
|
|
217
|
+
### `@mui/material@5.15.15`
|
|
218
|
+
|
|
219
|
+
- [Autocomplete] Display options provided to the `options` prop even if loading is true (#41677) @ZeeshanTamboli
|
|
220
|
+
- [RadioGroup] Apply classnames (#41681) @ZeeshanTamboli
|
|
221
|
+
|
|
222
|
+
### `@mui/system@5.15.15`
|
|
223
|
+
|
|
224
|
+
- Fix typo to avoid infinite recursion in function call (#41678) @ZeeshanTamboli
|
|
225
|
+
|
|
226
|
+
### Docs
|
|
227
|
+
|
|
228
|
+
- [material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41679) @ZeeshanTamboli
|
|
229
|
+
- [material-ui] Remove deleted page from the sidenav (#41594) @danilo-leal
|
|
230
|
+
- [material-ui] Fix typo in CSS theme variables customization (#41680) @ZeeshanTamboli
|
|
231
|
+
- Continue migration of Base UI to sperate repository @oliviertassinari
|
|
232
|
+
- Add notification for MUI X v7 blog post (#41587) (#41605) @cherniavskii
|
|
233
|
+
- Update the versions dropdown to show v6 (#41557) @mnajdova
|
|
234
|
+
|
|
235
|
+
### Core
|
|
236
|
+
|
|
237
|
+
- [blog] Link to Romain's blog post in MUI X v7 announcement post (#41641) @cherniavskii
|
|
238
|
+
- [blog] Blog post with MUI X v7.0.0 annoucement (#41563) (#41604) @cherniavskii
|
|
239
|
+
- [blog] Add post about remote (#41565) @danilo-leal
|
|
240
|
+
- [core] Continue rename of Toolpad @oliviertassinari
|
|
241
|
+
- [docs-infra] Add Toolpad product/category IDs to types (#41551) @bharatkashyap
|
|
242
|
+
- [website] Add Aarón to About Us (#41747) @aarongarciah
|
|
243
|
+
- [website] Add stray design adjustments throughout the site (#41642) @mnajdova
|
|
244
|
+
- [website] Update pricing table (#41606) @cherniavskii
|
|
245
|
+
|
|
246
|
+
All contributors of this release in alphabetical order: @aarongarciah, @bharatkashyap, @cherniavskii, @danilo-leal, @mnajdova, @oliviertassinari, @ZeeshanTamboli
|
|
247
|
+
|
|
82
248
|
## v5.15.14
|
|
83
249
|
|
|
84
250
|
<!-- generated comparing v5.15.13..master -->
|
|
@@ -893,7 +1059,7 @@ A big thanks to the 22 contributors who made this release possible. Here are som
|
|
|
893
1059
|
- [material-ui] Revise the Alert demo page (#34892) @samuelsycamore
|
|
894
1060
|
- [material-ui] Revise the Accordion page (#40284) @anle9650
|
|
895
1061
|
- [material-ui] Add docs for complementary Card components (#40346) @anle9650
|
|
896
|
-
- [material-ui] Add Material 3 components page (#40350) @DiegoAndai
|
|
1062
|
+
- [material-ui] Add Material Design 3 components page (#40350) @DiegoAndai
|
|
897
1063
|
- Fix strange italic style @oliviertassinari
|
|
898
1064
|
- Fix references to ESLint @oliviertassinari
|
|
899
1065
|
- Fix 301 redirections @oliviertassinari
|
|
@@ -8001,7 +8167,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
|
|
|
8001
8167
|
|
|
8002
8168
|
<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>
|
|
8003
8169
|
|
|
8004
|
-
You can follow our progress with unstyled components at https://github.com/mui/
|
|
8170
|
+
You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
|
|
8005
8171
|
|
|
8006
8172
|
- 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
|
|
8007
8173
|
|
|
@@ -9471,7 +9637,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
9471
9637
|
|
|
9472
9638
|
<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>
|
|
9473
9639
|
|
|
9474
|
-
You can follow our progress at https://github.com/mui/
|
|
9640
|
+
You can follow our progress at https://github.com/mui/base-ui/issues/10.
|
|
9475
9641
|
|
|
9476
9642
|
- 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
|
|
9477
9643
|
You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
|
|
@@ -13057,7 +13223,7 @@ Here are some highlights ✨:
|
|
|
13057
13223
|
|
|
13058
13224
|
1. `stable` (default, formerly `esm`) which targets a snapshot (on release) of `> 0.5%, last 2 versions, Firefox ESR, not dead, not IE 11"`
|
|
13059
13225
|
2. `node` (formerly default) which targets a snapshot (on release) of `maintained node versions`
|
|
13060
|
-
3. `legacy` (new) which is `stable` +
|
|
13226
|
+
3. `legacy` (new) which is `stable` + IE 11
|
|
13061
13227
|
4. `modern` (formerly `es`) which targets the last 1 version of evergreen browsers and active node (currently that is 14
|
|
13062
13228
|
|
|
13063
13229
|
The change yields a 6% reduction in bundle size 📦 (Babel only).
|
package/Grid/Grid.js
CHANGED
|
@@ -28,6 +28,9 @@ import gridClasses, { getGridUtilityClass } from './gridClasses';
|
|
|
28
28
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
29
|
function getOffset(val) {
|
|
30
30
|
const parse = parseFloat(val);
|
|
31
|
+
if (Number.isNaN(parse)) {
|
|
32
|
+
return val;
|
|
33
|
+
}
|
|
31
34
|
return `${parse}${String(val).replace(String(parse), '') || 'px'}`;
|
|
32
35
|
}
|
|
33
36
|
export function generateGrid({
|
package/RadioGroup/RadioGroup.js
CHANGED
|
@@ -2,21 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["actions", "children", "defaultValue", "name", "onChange", "value"];
|
|
5
|
+
const _excluded = ["actions", "children", "className", "defaultValue", "name", "onChange", "value"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
+
import clsx from 'clsx';
|
|
9
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
8
10
|
import FormGroup from '../FormGroup';
|
|
11
|
+
import { getRadioGroupUtilityClass } from './radioGroupClasses';
|
|
9
12
|
import useForkRef from '../utils/useForkRef';
|
|
10
13
|
import useControlled from '../utils/useControlled';
|
|
11
14
|
import RadioGroupContext from './RadioGroupContext';
|
|
12
15
|
import useId from '../utils/useId';
|
|
13
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
const useUtilityClasses = props => {
|
|
18
|
+
const {
|
|
19
|
+
classes,
|
|
20
|
+
row,
|
|
21
|
+
error
|
|
22
|
+
} = props;
|
|
23
|
+
const slots = {
|
|
24
|
+
root: ['root', row && 'row', error && 'error']
|
|
25
|
+
};
|
|
26
|
+
return composeClasses(slots, getRadioGroupUtilityClass, classes);
|
|
27
|
+
};
|
|
14
28
|
const RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
|
|
15
29
|
const {
|
|
16
30
|
// private
|
|
17
31
|
// eslint-disable-next-line react/prop-types
|
|
18
32
|
actions,
|
|
19
33
|
children,
|
|
34
|
+
className,
|
|
20
35
|
defaultValue,
|
|
21
36
|
name: nameProp,
|
|
22
37
|
onChange,
|
|
@@ -24,6 +39,7 @@ const RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref)
|
|
|
24
39
|
} = props,
|
|
25
40
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
26
41
|
const rootRef = React.useRef(null);
|
|
42
|
+
const classes = useUtilityClasses(props);
|
|
27
43
|
const [value, setValueState] = useControlled({
|
|
28
44
|
controlled: valueProp,
|
|
29
45
|
default: defaultValue,
|
|
@@ -56,7 +72,8 @@ const RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref)
|
|
|
56
72
|
value: contextValue,
|
|
57
73
|
children: /*#__PURE__*/_jsx(FormGroup, _extends({
|
|
58
74
|
role: "radiogroup",
|
|
59
|
-
ref: handleRef
|
|
75
|
+
ref: handleRef,
|
|
76
|
+
className: clsx(classes.root, className)
|
|
60
77
|
}, other, {
|
|
61
78
|
children: children
|
|
62
79
|
}))
|
|
@@ -71,6 +88,10 @@ process.env.NODE_ENV !== "production" ? RadioGroup.propTypes /* remove-proptypes
|
|
|
71
88
|
* The content of the component.
|
|
72
89
|
*/
|
|
73
90
|
children: PropTypes.node,
|
|
91
|
+
/**
|
|
92
|
+
* @ignore
|
|
93
|
+
*/
|
|
94
|
+
className: PropTypes.string,
|
|
74
95
|
/**
|
|
75
96
|
* The default value. Use when the component is not controlled.
|
|
76
97
|
*/
|
package/RadioGroup/index.d.ts
CHANGED
package/RadioGroup/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
export { default } from './RadioGroup';
|
|
4
|
-
export { default as useRadioGroup } from './useRadioGroup';
|
|
4
|
+
export { default as useRadioGroup } from './useRadioGroup';
|
|
5
|
+
export { default as radioGroupClasses } from './radioGroupClasses';
|
|
6
|
+
export * from './radioGroupClasses';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormGroupClasses } from '../FormGroup';
|
|
2
|
+
export type RadioGroupClassKey = keyof FormGroupClasses;
|
|
3
|
+
export type RadioGroupClasses = FormGroupClasses;
|
|
4
|
+
export declare function getRadioGroupUtilityClass(slot: string): string;
|
|
5
|
+
declare const radioGroupClasses: RadioGroupClasses;
|
|
6
|
+
export default radioGroupClasses;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
3
|
+
export function getRadioGroupUtilityClass(slot) {
|
|
4
|
+
return generateUtilityClass('MuiRadioGroup', slot);
|
|
5
|
+
}
|
|
6
|
+
const radioGroupClasses = generateUtilityClasses('MuiRadioGroup', ['root', 'row', 'error']);
|
|
7
|
+
export default radioGroupClasses;
|