@mui/material 9.0.0-alpha.4 → 9.0.0-beta.0
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/ButtonGroup/ButtonGroup.js +1 -9
- package/ButtonGroup/ButtonGroup.mjs +1 -9
- package/ButtonGroup/buttonGroupClasses.d.mts +0 -68
- package/ButtonGroup/buttonGroupClasses.d.ts +0 -68
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/ButtonGroup/buttonGroupClasses.mjs +1 -1
- package/CHANGELOG.md +71 -4
- package/CardHeader/CardHeader.d.mts +13 -21
- package/CardHeader/CardHeader.d.ts +13 -21
- package/CardHeader/CardHeader.js +3 -21
- package/CardHeader/CardHeader.mjs +3 -21
- package/Checkbox/Checkbox.js +1 -7
- package/Checkbox/Checkbox.mjs +1 -7
- package/Chip/Chip.js +48 -54
- package/Chip/Chip.mjs +48 -54
- package/Chip/chipClasses.d.mts +0 -104
- package/Chip/chipClasses.d.ts +0 -104
- package/Chip/chipClasses.js +1 -1
- package/Chip/chipClasses.mjs +1 -1
- package/Dialog/Dialog.d.mts +0 -21
- package/Dialog/Dialog.d.ts +0 -21
- package/Dialog/Dialog.js +36 -73
- package/Dialog/Dialog.mjs +36 -73
- package/Dialog/dialogClasses.d.mts +0 -8
- package/Dialog/dialogClasses.d.ts +0 -8
- package/Dialog/dialogClasses.js +1 -1
- package/Dialog/dialogClasses.mjs +1 -1
- package/Divider/Divider.js +2 -2
- package/Divider/Divider.mjs +2 -2
- package/Divider/dividerClasses.d.mts +0 -4
- package/Divider/dividerClasses.d.ts +0 -4
- package/Divider/dividerClasses.js +1 -1
- package/Divider/dividerClasses.mjs +1 -1
- package/Drawer/Drawer.d.mts +0 -12
- package/Drawer/Drawer.d.ts +0 -12
- package/Drawer/Drawer.js +6 -40
- package/Drawer/Drawer.mjs +6 -40
- package/Drawer/drawerClasses.d.mts +0 -32
- package/Drawer/drawerClasses.d.ts +0 -32
- package/Drawer/drawerClasses.js +1 -1
- package/Drawer/drawerClasses.mjs +1 -1
- package/FilledInput/FilledInput.js +3 -32
- package/FilledInput/FilledInput.mjs +3 -32
- package/ImageListItemBar/ImageListItemBar.js +4 -17
- package/ImageListItemBar/ImageListItemBar.mjs +4 -17
- package/ImageListItemBar/imageListItemBarClasses.d.mts +0 -16
- package/ImageListItemBar/imageListItemBarClasses.d.ts +0 -16
- package/ImageListItemBar/imageListItemBarClasses.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.mjs +1 -1
- package/Input/Input.js +3 -32
- package/Input/Input.mjs +3 -32
- package/Input/inputClasses.d.mts +0 -16
- package/Input/inputClasses.d.ts +0 -16
- package/InputBase/InputBase.d.mts +0 -27
- package/InputBase/InputBase.d.ts +0 -27
- package/InputBase/InputBase.js +6 -35
- package/InputBase/InputBase.mjs +6 -35
- package/InputBase/inputBaseClasses.d.mts +0 -20
- package/InputBase/inputBaseClasses.d.ts +0 -20
- package/InputBase/inputBaseClasses.js +1 -1
- package/InputBase/inputBaseClasses.mjs +1 -1
- package/InputLabel/InputLabel.js +1 -1
- package/InputLabel/InputLabel.mjs +1 -1
- package/LinearProgress/LinearProgress.js +6 -18
- package/LinearProgress/LinearProgress.mjs +6 -18
- package/LinearProgress/linearProgressClasses.d.mts +0 -36
- package/LinearProgress/linearProgressClasses.d.ts +0 -36
- package/LinearProgress/linearProgressClasses.js +1 -1
- package/LinearProgress/linearProgressClasses.mjs +1 -1
- package/Link/Link.d.mts +1 -1
- package/Link/Link.d.ts +1 -1
- package/ListItem/ListItem.d.mts +2 -36
- package/ListItem/ListItem.d.ts +2 -36
- package/ListItem/ListItem.js +27 -152
- package/ListItem/ListItem.mjs +27 -152
- package/ListItem/listItemClasses.d.mts +2 -4
- package/ListItem/listItemClasses.d.ts +2 -4
- package/ListItem/listItemClasses.js +1 -1
- package/ListItem/listItemClasses.mjs +1 -1
- package/ListItemButton/ListItemButton.d.mts +1 -2
- package/ListItemButton/ListItemButton.d.ts +1 -2
- package/ListItemButton/ListItemButton.js +1 -2
- package/ListItemButton/ListItemButton.mjs +1 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +10 -6
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +10 -6
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +7 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.mjs +7 -2
- package/ListItemText/ListItemText.d.mts +12 -20
- package/ListItemText/ListItemText.d.ts +12 -20
- package/ListItemText/ListItemText.js +2 -20
- package/ListItemText/ListItemText.mjs +2 -20
- package/Modal/Modal.d.mts +1 -41
- package/Modal/Modal.d.ts +1 -41
- package/Modal/Modal.js +5 -58
- package/Modal/Modal.mjs +5 -58
- package/OutlinedInput/OutlinedInput.js +2 -14
- package/OutlinedInput/OutlinedInput.mjs +2 -14
- package/OutlinedInput/outlinedInputClasses.d.mts +0 -16
- package/OutlinedInput/outlinedInputClasses.d.ts +0 -16
- package/PaginationItem/PaginationItem.d.mts +0 -15
- package/PaginationItem/PaginationItem.d.ts +0 -15
- package/PaginationItem/PaginationItem.js +3 -24
- package/PaginationItem/PaginationItem.mjs +3 -24
- package/PaginationItem/paginationItemClasses.d.mts +0 -16
- package/PaginationItem/paginationItemClasses.d.ts +0 -16
- package/PaginationItem/paginationItemClasses.js +1 -1
- package/PaginationItem/paginationItemClasses.mjs +1 -1
- package/Radio/Radio.js +1 -13
- package/Radio/Radio.mjs +1 -13
- package/Rating/Rating.d.mts +0 -9
- package/Rating/Rating.d.ts +0 -9
- package/Rating/Rating.js +1 -17
- package/Rating/Rating.mjs +1 -17
- package/Select/SelectInput.js +2 -3
- package/Select/SelectInput.mjs +2 -3
- package/Select/selectClasses.d.mts +0 -12
- package/Select/selectClasses.d.ts +0 -12
- package/Select/selectClasses.js +1 -1
- package/Select/selectClasses.mjs +1 -1
- package/Slider/Slider.d.mts +0 -5
- package/Slider/Slider.d.ts +0 -5
- package/Slider/Slider.js +2 -8
- package/Slider/Slider.mjs +2 -8
- package/Slider/sliderClasses.d.mts +0 -28
- package/Slider/sliderClasses.d.ts +0 -28
- package/Slider/sliderClasses.js +1 -1
- package/Slider/sliderClasses.mjs +1 -1
- package/Stack/Stack.d.mts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/StepConnector/StepConnector.js +2 -8
- package/StepConnector/StepConnector.mjs +2 -8
- package/StepConnector/stepConnectorClasses.d.mts +0 -8
- package/StepConnector/stepConnectorClasses.d.ts +0 -8
- package/StepConnector/stepConnectorClasses.js +1 -1
- package/StepConnector/stepConnectorClasses.mjs +1 -1
- package/StepContent/StepContent.d.mts +1 -16
- package/StepContent/StepContent.d.ts +1 -16
- package/StepContent/StepContent.js +3 -22
- package/StepContent/StepContent.mjs +3 -22
- package/StepLabel/StepLabel.d.mts +0 -22
- package/StepLabel/StepLabel.d.ts +0 -22
- package/StepLabel/StepLabel.js +2 -31
- package/StepLabel/StepLabel.mjs +2 -31
- package/SvgIcon/createSvgIcon.d.mts +2 -0
- package/SvgIcon/createSvgIcon.d.ts +2 -0
- package/SvgIcon/createSvgIcon.js +31 -0
- package/SvgIcon/createSvgIcon.mjs +26 -0
- package/SvgIcon/index.d.mts +1 -0
- package/SvgIcon/index.d.ts +1 -0
- package/SvgIcon/index.js +8 -0
- package/SvgIcon/index.mjs +1 -0
- package/SwipeableDrawer/SwipeableDrawer.d.mts +0 -5
- package/SwipeableDrawer/SwipeableDrawer.d.ts +0 -5
- package/SwipeableDrawer/SwipeableDrawer.js +6 -37
- package/SwipeableDrawer/SwipeableDrawer.mjs +6 -37
- package/Switch/Switch.js +0 -11
- package/Switch/Switch.mjs +0 -11
- package/Tab/Tab.js +1 -3
- package/Tab/Tab.mjs +1 -3
- package/Tab/tabClasses.d.mts +0 -4
- package/Tab/tabClasses.d.ts +0 -4
- package/Tab/tabClasses.js +1 -1
- package/Tab/tabClasses.mjs +1 -1
- package/TablePagination/TablePagination.d.mts +0 -24
- package/TablePagination/TablePagination.d.ts +0 -24
- package/TablePagination/TablePagination.js +1 -29
- package/TablePagination/TablePagination.mjs +1 -29
- package/TablePaginationActions/TablePaginationActions.d.mts +0 -10
- package/TablePaginationActions/TablePaginationActions.d.ts +0 -10
- package/TablePaginationActions/TablePaginationActions.js +2 -14
- package/TablePaginationActions/TablePaginationActions.mjs +2 -14
- package/TableSortLabel/TableSortLabel.js +2 -7
- package/TableSortLabel/TableSortLabel.mjs +2 -7
- package/TableSortLabel/tableSortLabelClasses.d.mts +0 -8
- package/TableSortLabel/tableSortLabelClasses.d.ts +0 -8
- package/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/TableSortLabel/tableSortLabelClasses.mjs +1 -1
- package/Tabs/Tabs.js +3 -3
- package/Tabs/Tabs.mjs +3 -3
- package/Tabs/tabsClasses.d.mts +0 -6
- package/Tabs/tabsClasses.d.ts +0 -6
- package/Tabs/tabsClasses.js +1 -1
- package/Tabs/tabsClasses.mjs +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -4
- package/ToggleButtonGroup/ToggleButtonGroup.mjs +1 -4
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.mts +0 -8
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +0 -8
- package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.mjs +1 -1
- package/Typography/Typography.d.mts +3 -3
- package/Typography/Typography.d.ts +3 -3
- package/Typography/Typography.js +2 -24
- package/Typography/Typography.mjs +3 -25
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internal/SwitchBase.d.mts +0 -10
- package/internal/SwitchBase.d.ts +0 -10
- package/internal/SwitchBase.js +1 -16
- package/internal/SwitchBase.mjs +1 -16
- package/package.json +7 -7
- package/styles/createThemeWithVars.js +1 -0
- package/styles/createThemeWithVars.mjs +1 -0
- package/styles/stringifyTheme.js +1 -1
- package/styles/stringifyTheme.mjs +1 -1
- package/utils/createSvgIcon.d.mts +4 -2
- package/utils/createSvgIcon.d.ts +4 -2
- package/utils/createSvgIcon.js +6 -24
- package/utils/createSvgIcon.mjs +2 -24
- package/version/index.js +2 -2
- package/version/index.mjs +2 -2
|
@@ -89,9 +89,9 @@ const useUtilityClasses = ownerState => {
|
|
|
89
89
|
} = ownerState;
|
|
90
90
|
const slots = {
|
|
91
91
|
root: ['root', `color${(0, _capitalize.default)(color)}`, variant],
|
|
92
|
-
dashed: ['dashed'
|
|
93
|
-
bar1: ['bar', 'bar1'
|
|
94
|
-
bar2: ['bar', 'bar2', variant
|
|
92
|
+
dashed: ['dashed'],
|
|
93
|
+
bar1: ['bar', 'bar1'],
|
|
94
|
+
bar2: ['bar', 'bar2', variant === 'buffer' && `color${(0, _capitalize.default)(color)}`]
|
|
95
95
|
};
|
|
96
96
|
return (0, _composeClasses.default)(slots, _linearProgressClasses.getLinearProgressUtilityClass, classes);
|
|
97
97
|
};
|
|
@@ -163,13 +163,7 @@ const LinearProgressRoot = (0, _zeroStyled.styled)('span', {
|
|
|
163
163
|
})));
|
|
164
164
|
const LinearProgressDashed = (0, _zeroStyled.styled)('span', {
|
|
165
165
|
name: 'MuiLinearProgress',
|
|
166
|
-
slot: 'Dashed'
|
|
167
|
-
overridesResolver: (props, styles) => {
|
|
168
|
-
const {
|
|
169
|
-
ownerState
|
|
170
|
-
} = props;
|
|
171
|
-
return [styles.dashed, styles[`dashedColor${(0, _capitalize.default)(ownerState.color)}`]];
|
|
172
|
-
}
|
|
166
|
+
slot: 'Dashed'
|
|
173
167
|
})((0, _memoTheme.default)(({
|
|
174
168
|
theme
|
|
175
169
|
}) => ({
|
|
@@ -206,10 +200,7 @@ const LinearProgressBar1 = (0, _zeroStyled.styled)('span', {
|
|
|
206
200
|
name: 'MuiLinearProgress',
|
|
207
201
|
slot: 'Bar1',
|
|
208
202
|
overridesResolver: (props, styles) => {
|
|
209
|
-
|
|
210
|
-
ownerState
|
|
211
|
-
} = props;
|
|
212
|
-
return [styles.bar, styles.bar1, styles[`barColor${(0, _capitalize.default)(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];
|
|
203
|
+
return [styles.bar, styles.bar1];
|
|
213
204
|
}
|
|
214
205
|
})((0, _memoTheme.default)(({
|
|
215
206
|
theme
|
|
@@ -270,10 +261,7 @@ const LinearProgressBar2 = (0, _zeroStyled.styled)('span', {
|
|
|
270
261
|
name: 'MuiLinearProgress',
|
|
271
262
|
slot: 'Bar2',
|
|
272
263
|
overridesResolver: (props, styles) => {
|
|
273
|
-
|
|
274
|
-
ownerState
|
|
275
|
-
} = props;
|
|
276
|
-
return [styles.bar, styles.bar2, styles[`barColor${(0, _capitalize.default)(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
|
|
264
|
+
return [styles.bar, styles.bar2];
|
|
277
265
|
}
|
|
278
266
|
})((0, _memoTheme.default)(({
|
|
279
267
|
theme
|
|
@@ -82,9 +82,9 @@ const useUtilityClasses = ownerState => {
|
|
|
82
82
|
} = ownerState;
|
|
83
83
|
const slots = {
|
|
84
84
|
root: ['root', `color${capitalize(color)}`, variant],
|
|
85
|
-
dashed: ['dashed'
|
|
86
|
-
bar1: ['bar', 'bar1'
|
|
87
|
-
bar2: ['bar', 'bar2', variant
|
|
85
|
+
dashed: ['dashed'],
|
|
86
|
+
bar1: ['bar', 'bar1'],
|
|
87
|
+
bar2: ['bar', 'bar2', variant === 'buffer' && `color${capitalize(color)}`]
|
|
88
88
|
};
|
|
89
89
|
return composeClasses(slots, getLinearProgressUtilityClass, classes);
|
|
90
90
|
};
|
|
@@ -156,13 +156,7 @@ const LinearProgressRoot = styled('span', {
|
|
|
156
156
|
})));
|
|
157
157
|
const LinearProgressDashed = styled('span', {
|
|
158
158
|
name: 'MuiLinearProgress',
|
|
159
|
-
slot: 'Dashed'
|
|
160
|
-
overridesResolver: (props, styles) => {
|
|
161
|
-
const {
|
|
162
|
-
ownerState
|
|
163
|
-
} = props;
|
|
164
|
-
return [styles.dashed, styles[`dashedColor${capitalize(ownerState.color)}`]];
|
|
165
|
-
}
|
|
159
|
+
slot: 'Dashed'
|
|
166
160
|
})(memoTheme(({
|
|
167
161
|
theme
|
|
168
162
|
}) => ({
|
|
@@ -199,10 +193,7 @@ const LinearProgressBar1 = styled('span', {
|
|
|
199
193
|
name: 'MuiLinearProgress',
|
|
200
194
|
slot: 'Bar1',
|
|
201
195
|
overridesResolver: (props, styles) => {
|
|
202
|
-
|
|
203
|
-
ownerState
|
|
204
|
-
} = props;
|
|
205
|
-
return [styles.bar, styles.bar1, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];
|
|
196
|
+
return [styles.bar, styles.bar1];
|
|
206
197
|
}
|
|
207
198
|
})(memoTheme(({
|
|
208
199
|
theme
|
|
@@ -263,10 +254,7 @@ const LinearProgressBar2 = styled('span', {
|
|
|
263
254
|
name: 'MuiLinearProgress',
|
|
264
255
|
slot: 'Bar2',
|
|
265
256
|
overridesResolver: (props, styles) => {
|
|
266
|
-
|
|
267
|
-
ownerState
|
|
268
|
-
} = props;
|
|
269
|
-
return [styles.bar, styles.bar2, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
|
|
257
|
+
return [styles.bar, styles.bar2];
|
|
270
258
|
}
|
|
271
259
|
})(memoTheme(({
|
|
272
260
|
theme
|
|
@@ -15,48 +15,12 @@ export interface LinearProgressClasses {
|
|
|
15
15
|
query: string;
|
|
16
16
|
/** Styles applied to the additional bar element if `variant="buffer"`. */
|
|
17
17
|
dashed: string;
|
|
18
|
-
/** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`.
|
|
19
|
-
* @deprecated Combine the [.MuiLinearProgress-dashed](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-dashed) and [.MuiLinearProgress-colorPrimary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
20
|
-
*/
|
|
21
|
-
dashedColorPrimary: string;
|
|
22
|
-
/** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`.
|
|
23
|
-
* @deprecated Combine the [.MuiLinearProgress-dashed](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-dashed) and [.MuiLinearProgress-colorSecondary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
24
|
-
*/
|
|
25
|
-
dashedColorSecondary: string;
|
|
26
18
|
/** Styles applied to the layered bar1 and bar2 elements. */
|
|
27
19
|
bar: string;
|
|
28
20
|
/** Styles applied to the bar1 element. */
|
|
29
21
|
bar1: string;
|
|
30
22
|
/** Styles applied to the bar2 element. */
|
|
31
23
|
bar2: string;
|
|
32
|
-
/** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer".
|
|
33
|
-
* @deprecated Use the [.MuiLinearProgress-bar](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar) and [.MuiLinearProgress-colorPrimary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
34
|
-
*/
|
|
35
|
-
barColorPrimary: string;
|
|
36
|
-
/** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer".
|
|
37
|
-
* @deprecated Use the [.MuiLinearProgress-bar](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar) and [.MuiLinearProgress-colorSecondary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
38
|
-
*/
|
|
39
|
-
barColorSecondary: string;
|
|
40
|
-
/** Styles applied to the bar1 element if `variant="indeterminate or query"`.
|
|
41
|
-
* @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-indeterminate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-indeterminate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
42
|
-
*/
|
|
43
|
-
bar1Indeterminate: string;
|
|
44
|
-
/** Styles applied to the bar1 element if `variant="determinate"`.
|
|
45
|
-
* @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-determinate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-determinate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
46
|
-
*/
|
|
47
|
-
bar1Determinate: string;
|
|
48
|
-
/** Styles applied to the bar1 element if `variant="buffer"`.
|
|
49
|
-
* @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-buffer](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-buffer) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
50
|
-
*/
|
|
51
|
-
bar1Buffer: string;
|
|
52
|
-
/** Styles applied to the bar2 element if `variant="indeterminate or query"`.
|
|
53
|
-
* @deprecated Use the [.MuiLinearProgress-bar2](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar2) and [.MuiLinearProgress-indeterminate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-indeterminate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
54
|
-
*/
|
|
55
|
-
bar2Indeterminate: string;
|
|
56
|
-
/** Styles applied to the bar2 element if `variant="buffer"`.
|
|
57
|
-
* @deprecated Use the [.MuiLinearProgress-bar2](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar2) and [.MuiLinearProgress-buffer](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-buffer) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
58
|
-
*/
|
|
59
|
-
bar2Buffer: string;
|
|
60
24
|
}
|
|
61
25
|
export type LinearProgressClassKey = keyof LinearProgressClasses;
|
|
62
26
|
export declare function getLinearProgressUtilityClass(slot: string): string;
|
|
@@ -15,48 +15,12 @@ export interface LinearProgressClasses {
|
|
|
15
15
|
query: string;
|
|
16
16
|
/** Styles applied to the additional bar element if `variant="buffer"`. */
|
|
17
17
|
dashed: string;
|
|
18
|
-
/** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`.
|
|
19
|
-
* @deprecated Combine the [.MuiLinearProgress-dashed](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-dashed) and [.MuiLinearProgress-colorPrimary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
20
|
-
*/
|
|
21
|
-
dashedColorPrimary: string;
|
|
22
|
-
/** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`.
|
|
23
|
-
* @deprecated Combine the [.MuiLinearProgress-dashed](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-dashed) and [.MuiLinearProgress-colorSecondary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
24
|
-
*/
|
|
25
|
-
dashedColorSecondary: string;
|
|
26
18
|
/** Styles applied to the layered bar1 and bar2 elements. */
|
|
27
19
|
bar: string;
|
|
28
20
|
/** Styles applied to the bar1 element. */
|
|
29
21
|
bar1: string;
|
|
30
22
|
/** Styles applied to the bar2 element. */
|
|
31
23
|
bar2: string;
|
|
32
|
-
/** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer".
|
|
33
|
-
* @deprecated Use the [.MuiLinearProgress-bar](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar) and [.MuiLinearProgress-colorPrimary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
34
|
-
*/
|
|
35
|
-
barColorPrimary: string;
|
|
36
|
-
/** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer".
|
|
37
|
-
* @deprecated Use the [.MuiLinearProgress-bar](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar) and [.MuiLinearProgress-colorSecondary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
38
|
-
*/
|
|
39
|
-
barColorSecondary: string;
|
|
40
|
-
/** Styles applied to the bar1 element if `variant="indeterminate or query"`.
|
|
41
|
-
* @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-indeterminate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-indeterminate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
42
|
-
*/
|
|
43
|
-
bar1Indeterminate: string;
|
|
44
|
-
/** Styles applied to the bar1 element if `variant="determinate"`.
|
|
45
|
-
* @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-determinate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-determinate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
46
|
-
*/
|
|
47
|
-
bar1Determinate: string;
|
|
48
|
-
/** Styles applied to the bar1 element if `variant="buffer"`.
|
|
49
|
-
* @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-buffer](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-buffer) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
50
|
-
*/
|
|
51
|
-
bar1Buffer: string;
|
|
52
|
-
/** Styles applied to the bar2 element if `variant="indeterminate or query"`.
|
|
53
|
-
* @deprecated Use the [.MuiLinearProgress-bar2](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar2) and [.MuiLinearProgress-indeterminate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-indeterminate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
54
|
-
*/
|
|
55
|
-
bar2Indeterminate: string;
|
|
56
|
-
/** Styles applied to the bar2 element if `variant="buffer"`.
|
|
57
|
-
* @deprecated Use the [.MuiLinearProgress-bar2](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar2) and [.MuiLinearProgress-buffer](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-buffer) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
58
|
-
*/
|
|
59
|
-
bar2Buffer: string;
|
|
60
24
|
}
|
|
61
25
|
export type LinearProgressClassKey = keyof LinearProgressClasses;
|
|
62
26
|
export declare function getLinearProgressUtilityClass(slot: string): string;
|
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
11
11
|
function getLinearProgressUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiLinearProgress', slot);
|
|
13
13
|
}
|
|
14
|
-
const linearProgressClasses = (0, _generateUtilityClasses.default)('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', '
|
|
14
|
+
const linearProgressClasses = (0, _generateUtilityClasses.default)('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'bar', 'bar1', 'bar2']);
|
|
15
15
|
var _default = exports.default = linearProgressClasses;
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getLinearProgressUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiLinearProgress', slot);
|
|
5
5
|
}
|
|
6
|
-
const linearProgressClasses = generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', '
|
|
6
|
+
const linearProgressClasses = generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'bar', 'bar1', 'bar2']);
|
|
7
7
|
export default linearProgressClasses;
|
package/Link/Link.d.mts
CHANGED
|
@@ -18,7 +18,7 @@ export interface LinkOwnProps extends DistributiveOmit<LinkBaseProps, 'classes'>
|
|
|
18
18
|
* The color of the link.
|
|
19
19
|
* @default 'primary'
|
|
20
20
|
*/
|
|
21
|
-
color?: TypographyOwnProps['color'] | undefined;
|
|
21
|
+
color?: TypographyOwnProps['color'] | 'inherit' | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
24
24
|
*/
|
package/Link/Link.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface LinkOwnProps extends DistributiveOmit<LinkBaseProps, 'classes'>
|
|
|
18
18
|
* The color of the link.
|
|
19
19
|
* @default 'primary'
|
|
20
20
|
*/
|
|
21
|
-
color?: TypographyOwnProps['color'] | undefined;
|
|
21
|
+
color?: TypographyOwnProps['color'] | 'inherit' | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
24
24
|
*/
|
package/ListItem/ListItem.d.mts
CHANGED
|
@@ -4,7 +4,6 @@ import { Theme } from "../styles/index.mjs";
|
|
|
4
4
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.mjs";
|
|
5
5
|
import { ListItemClasses } from "./listItemClasses.mjs";
|
|
6
6
|
import { SlotProps } from "../utils/types.mjs";
|
|
7
|
-
export interface ListItemComponentsPropsOverrides {}
|
|
8
7
|
export interface ListItemSecondaryActionSlotPropsOverrides {}
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -17,26 +16,13 @@ export interface ListItemBaseProps {
|
|
|
17
16
|
*/
|
|
18
17
|
alignItems?: 'flex-start' | 'center' | undefined;
|
|
19
18
|
/**
|
|
20
|
-
* The content of the component
|
|
21
|
-
* be the last child.
|
|
19
|
+
* The content of the component.
|
|
22
20
|
*/
|
|
23
21
|
children?: React.ReactNode;
|
|
24
22
|
/**
|
|
25
23
|
* Override or extend the styles applied to the component.
|
|
26
24
|
*/
|
|
27
25
|
classes?: Partial<ListItemClasses> | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* The container component used when a `ListItemSecondaryAction` is the last child.
|
|
30
|
-
* @default 'li'
|
|
31
|
-
* @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
|
-
*/
|
|
33
|
-
ContainerComponent?: React.ElementType<React.HTMLAttributes<HTMLDivElement>> | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Props applied to the container component if used.
|
|
36
|
-
* @default {}
|
|
37
|
-
* @deprecated Use the `slotProps.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
38
|
-
*/
|
|
39
|
-
ContainerProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
40
26
|
/**
|
|
41
27
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
42
28
|
* The prop defaults to the value inherited from the parent List component.
|
|
@@ -69,25 +55,6 @@ export interface ListItemBaseProps {
|
|
|
69
55
|
}
|
|
70
56
|
export interface ListItemOwnerState extends Omit<ListItemProps, 'slots' | 'slotProps'> {}
|
|
71
57
|
export interface ListItemOwnProps extends ListItemBaseProps {
|
|
72
|
-
/**
|
|
73
|
-
* The components used for each slot inside.
|
|
74
|
-
*
|
|
75
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
76
|
-
* @default {}
|
|
77
|
-
*/
|
|
78
|
-
components?: {
|
|
79
|
-
Root?: React.ElementType | undefined;
|
|
80
|
-
} | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* The extra props for the slot components.
|
|
83
|
-
* You can override the existing props or add new ones.
|
|
84
|
-
*
|
|
85
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
86
|
-
* @default {}
|
|
87
|
-
*/
|
|
88
|
-
componentsProps?: {
|
|
89
|
-
root?: (React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides) | undefined;
|
|
90
|
-
} | undefined;
|
|
91
58
|
/**
|
|
92
59
|
* The extra props for the slot components.
|
|
93
60
|
* You can override the existing props or add new ones.
|
|
@@ -95,7 +62,7 @@ export interface ListItemOwnProps extends ListItemBaseProps {
|
|
|
95
62
|
* @default {}
|
|
96
63
|
*/
|
|
97
64
|
slotProps?: {
|
|
98
|
-
root?:
|
|
65
|
+
root?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
99
66
|
secondaryAction?: SlotProps<React.ElementType<React.HTMLAttributes<HTMLDivElement>>, ListItemSecondaryActionSlotPropsOverrides, ListItemOwnerState> | undefined;
|
|
100
67
|
} | undefined;
|
|
101
68
|
/**
|
|
@@ -114,7 +81,6 @@ export interface ListItemTypeMap<AdditionalProps, RootComponent extends React.El
|
|
|
114
81
|
}
|
|
115
82
|
|
|
116
83
|
/**
|
|
117
|
-
* Uses an additional container component if `ListItemSecondaryAction` is the last child.
|
|
118
84
|
*
|
|
119
85
|
* Demos:
|
|
120
86
|
*
|
package/ListItem/ListItem.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { Theme } from "../styles/index.js";
|
|
|
4
4
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
5
5
|
import { ListItemClasses } from "./listItemClasses.js";
|
|
6
6
|
import { SlotProps } from "../utils/types.js";
|
|
7
|
-
export interface ListItemComponentsPropsOverrides {}
|
|
8
7
|
export interface ListItemSecondaryActionSlotPropsOverrides {}
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -17,26 +16,13 @@ export interface ListItemBaseProps {
|
|
|
17
16
|
*/
|
|
18
17
|
alignItems?: 'flex-start' | 'center' | undefined;
|
|
19
18
|
/**
|
|
20
|
-
* The content of the component
|
|
21
|
-
* be the last child.
|
|
19
|
+
* The content of the component.
|
|
22
20
|
*/
|
|
23
21
|
children?: React.ReactNode;
|
|
24
22
|
/**
|
|
25
23
|
* Override or extend the styles applied to the component.
|
|
26
24
|
*/
|
|
27
25
|
classes?: Partial<ListItemClasses> | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* The container component used when a `ListItemSecondaryAction` is the last child.
|
|
30
|
-
* @default 'li'
|
|
31
|
-
* @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
|
-
*/
|
|
33
|
-
ContainerComponent?: React.ElementType<React.HTMLAttributes<HTMLDivElement>> | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Props applied to the container component if used.
|
|
36
|
-
* @default {}
|
|
37
|
-
* @deprecated Use the `slotProps.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
38
|
-
*/
|
|
39
|
-
ContainerProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
40
26
|
/**
|
|
41
27
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
42
28
|
* The prop defaults to the value inherited from the parent List component.
|
|
@@ -69,25 +55,6 @@ export interface ListItemBaseProps {
|
|
|
69
55
|
}
|
|
70
56
|
export interface ListItemOwnerState extends Omit<ListItemProps, 'slots' | 'slotProps'> {}
|
|
71
57
|
export interface ListItemOwnProps extends ListItemBaseProps {
|
|
72
|
-
/**
|
|
73
|
-
* The components used for each slot inside.
|
|
74
|
-
*
|
|
75
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
76
|
-
* @default {}
|
|
77
|
-
*/
|
|
78
|
-
components?: {
|
|
79
|
-
Root?: React.ElementType | undefined;
|
|
80
|
-
} | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* The extra props for the slot components.
|
|
83
|
-
* You can override the existing props or add new ones.
|
|
84
|
-
*
|
|
85
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
86
|
-
* @default {}
|
|
87
|
-
*/
|
|
88
|
-
componentsProps?: {
|
|
89
|
-
root?: (React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides) | undefined;
|
|
90
|
-
} | undefined;
|
|
91
58
|
/**
|
|
92
59
|
* The extra props for the slot components.
|
|
93
60
|
* You can override the existing props or add new ones.
|
|
@@ -95,7 +62,7 @@ export interface ListItemOwnProps extends ListItemBaseProps {
|
|
|
95
62
|
* @default {}
|
|
96
63
|
*/
|
|
97
64
|
slotProps?: {
|
|
98
|
-
root?:
|
|
65
|
+
root?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
99
66
|
secondaryAction?: SlotProps<React.ElementType<React.HTMLAttributes<HTMLDivElement>>, ListItemSecondaryActionSlotPropsOverrides, ListItemOwnerState> | undefined;
|
|
100
67
|
} | undefined;
|
|
101
68
|
/**
|
|
@@ -114,7 +81,6 @@ export interface ListItemTypeMap<AdditionalProps, RootComponent extends React.El
|
|
|
114
81
|
}
|
|
115
82
|
|
|
116
83
|
/**
|
|
117
|
-
* Uses an additional container component if `ListItemSecondaryAction` is the last child.
|
|
118
84
|
*
|
|
119
85
|
* Demos:
|
|
120
86
|
*
|