@mui/material 5.14.7 → 5.14.8
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/Accordion/Accordion.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.ts +22 -20
- package/AppBar/AppBar.d.ts +33 -31
- package/Avatar/Avatar.d.ts +49 -50
- package/Backdrop/Backdrop.d.ts +87 -85
- package/Badge/Badge.d.ts +2 -2
- package/BottomNavigation/BottomNavigation.d.ts +35 -33
- package/BottomNavigationAction/BottomNavigationAction.d.ts +39 -37
- package/Breadcrumbs/Breadcrumbs.d.ts +69 -67
- package/Button/Button.d.ts +72 -73
- package/ButtonBase/ButtonBase.d.ts +83 -81
- package/ButtonGroup/ButtonGroup.d.ts +72 -70
- package/CHANGELOG.md +111 -19
- package/Card/Card.d.ts +19 -18
- package/CardActionArea/CardActionArea.d.ts +15 -13
- package/CardContent/CardContent.d.ts +18 -16
- package/CardHeader/CardHeader.d.ts +77 -67
- package/CardMedia/CardMedia.d.ts +30 -28
- package/Chip/Chip.d.ts +84 -82
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +1 -1
- package/Container/Container.d.ts +35 -33
- package/DialogContentText/DialogContentText.d.ts +14 -12
- package/DialogTitle/DialogTitle.d.ts +18 -16
- package/Divider/Divider.d.ts +49 -50
- package/Fab/Fab.d.ts +59 -56
- package/FormControl/FormControl.d.ts +74 -72
- package/FormHelperText/FormHelperText.d.ts +52 -50
- package/FormLabel/FormLabel.d.ts +7 -4
- package/Grid/Grid.d.ts +69 -68
- package/Hidden/Hidden.d.ts +10 -10
- package/Icon/Icon.d.ts +50 -48
- package/IconButton/IconButton.d.ts +52 -50
- package/ImageList/ImageList.d.ts +41 -39
- package/ImageListItem/ImageListItem.d.ts +28 -26
- package/ImageListItem/ImageListItem.js +2 -1
- package/InputAdornment/InputAdornment.d.ts +39 -37
- package/InputBase/InputBase.js +1 -1
- package/InputLabel/InputLabel.d.ts +58 -56
- package/InputLabel/InputLabel.js +2 -1
- package/Link/Link.d.ts +37 -39
- package/List/List.d.ts +34 -35
- package/ListItem/ListItem.d.ts +53 -49
- package/ListItemButton/ListItemButton.d.ts +9 -3
- package/ListSubheader/ListSubheader.d.ts +38 -36
- package/MenuItem/MenuItem.d.ts +47 -44
- package/MenuList/MenuList.d.ts +37 -35
- package/Modal/Modal.d.ts +172 -178
- package/PaginationItem/PaginationItem.d.ts +85 -83
- package/Paper/Paper.d.ts +2 -2
- package/Radio/Radio.js +3 -2
- package/Radio/radioClasses.d.ts +2 -0
- package/Radio/radioClasses.js +1 -1
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +25 -23
- package/Select/SelectInput.js +9 -5
- package/Skeleton/Skeleton.d.ts +42 -40
- package/Slider/Slider.d.ts +249 -247
- package/Stack/Stack.d.ts +39 -38
- package/Step/Step.d.ts +46 -44
- package/StepButton/StepButton.d.ts +27 -25
- package/Stepper/Stepper.d.ts +45 -44
- package/SvgIcon/SvgIcon.d.ts +77 -75
- package/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/Tab/Tab.d.ts +52 -50
- package/TabScrollButton/TabScrollButton.d.ts +3 -2
- package/Table/Table.d.ts +35 -33
- package/TableBody/TableBody.d.ts +18 -16
- package/TableContainer/TableContainer.d.ts +18 -16
- package/TableFooter/TableFooter.d.ts +18 -16
- package/TableHead/TableHead.d.ts +18 -16
- package/TablePagination/TablePagination.d.ts +113 -112
- package/TableRow/TableRow.d.ts +28 -26
- package/TableSortLabel/TableSortLabel.d.ts +40 -36
- package/Tabs/Tabs.d.ts +153 -150
- package/ToggleButton/ToggleButton.d.ts +72 -70
- package/Toolbar/Toolbar.d.ts +29 -27
- package/Typography/Typography.d.ts +2 -2
- package/index.js +1 -1
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/ImageListItem/ImageListItem.js +2 -1
- package/legacy/InputBase/InputBase.js +1 -1
- package/legacy/InputLabel/InputLabel.js +2 -1
- package/legacy/Radio/Radio.js +3 -2
- package/legacy/Radio/radioClasses.js +1 -1
- package/legacy/Select/SelectInput.js +9 -5
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/legacy/index.js +1 -1
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/ImageListItem/ImageListItem.js +2 -1
- package/modern/InputBase/InputBase.js +1 -1
- package/modern/InputLabel/InputLabel.js +2 -1
- package/modern/Radio/Radio.js +3 -2
- package/modern/Radio/radioClasses.js +1 -1
- package/modern/Select/SelectInput.js +8 -5
- package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/modern/index.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/ImageListItem/ImageListItem.js +2 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputLabel/InputLabel.js +2 -1
- package/node/Radio/Radio.js +3 -2
- package/node/Radio/radioClasses.js +1 -1
- package/node/Select/SelectInput.js +9 -5
- package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/umd/material-ui.development.js +50 -23
- package/umd/material-ui.production.min.js +5 -5
|
@@ -97,6 +97,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
97
97
|
* @ignore - internal component.
|
|
98
98
|
*/
|
|
99
99
|
var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {
|
|
100
|
+
var _MenuProps$slotProps;
|
|
100
101
|
var ariaDescribedby = props['aria-describedby'],
|
|
101
102
|
ariaLabel = props['aria-label'],
|
|
102
103
|
autoFocus = props.autoFocus,
|
|
@@ -443,6 +444,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
|
|
|
443
444
|
error: error
|
|
444
445
|
});
|
|
445
446
|
var classes = useUtilityClasses(ownerState);
|
|
447
|
+
var paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
446
448
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
447
449
|
children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
|
|
448
450
|
ref: handleDisplayRef,
|
|
@@ -504,11 +506,13 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
|
|
|
504
506
|
role: 'listbox',
|
|
505
507
|
disableListWrap: true
|
|
506
508
|
}, MenuProps.MenuListProps),
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
509
|
+
slotProps: {
|
|
510
|
+
paper: _extends({}, paperProps, {
|
|
511
|
+
style: _extends({
|
|
512
|
+
minWidth: menuMinWidth
|
|
513
|
+
}, paperProps != null ? paperProps.style : null)
|
|
514
|
+
})
|
|
515
|
+
},
|
|
512
516
|
children: items
|
|
513
517
|
}))]
|
|
514
518
|
});
|
|
@@ -515,7 +515,7 @@ process.env.NODE_ENV !== "production" ? SwipeableDrawer.propTypes /* remove-prop
|
|
|
515
515
|
*
|
|
516
516
|
* @default false
|
|
517
517
|
*/
|
|
518
|
-
allowSwipeInChildren: PropTypes.oneOfType([PropTypes.
|
|
518
|
+
allowSwipeInChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
|
|
519
519
|
/**
|
|
520
520
|
* @ignore
|
|
521
521
|
*/
|
|
@@ -570,20 +570,20 @@ process.env.NODE_ENV !== "production" ? SwipeableDrawer.propTypes /* remove-prop
|
|
|
570
570
|
/**
|
|
571
571
|
* Callback fired when the component requests to be closed.
|
|
572
572
|
*
|
|
573
|
-
* @param {
|
|
573
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
574
574
|
*/
|
|
575
575
|
onClose: PropTypes.func.isRequired,
|
|
576
576
|
/**
|
|
577
577
|
* Callback fired when the component requests to be opened.
|
|
578
578
|
*
|
|
579
|
-
* @param {
|
|
579
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
580
580
|
*/
|
|
581
581
|
onOpen: PropTypes.func.isRequired,
|
|
582
582
|
/**
|
|
583
583
|
* If `true`, the component is shown.
|
|
584
584
|
* @default false
|
|
585
585
|
*/
|
|
586
|
-
open: PropTypes.bool
|
|
586
|
+
open: PropTypes.bool,
|
|
587
587
|
/**
|
|
588
588
|
* @ignore
|
|
589
589
|
*/
|
package/legacy/index.js
CHANGED
|
@@ -214,7 +214,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-pro
|
|
|
214
214
|
/**
|
|
215
215
|
* The size of the component.
|
|
216
216
|
* If using a number, the pixel unit is assumed.
|
|
217
|
-
* If using a string, you need to provide the CSS unit, e.g '3rem'.
|
|
217
|
+
* If using a string, you need to provide the CSS unit, e.g. '3rem'.
|
|
218
218
|
* @default 40
|
|
219
219
|
*/
|
|
220
220
|
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -107,7 +107,8 @@ const ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inPro
|
|
|
107
107
|
height,
|
|
108
108
|
gridColumnEnd: variant !== 'masonry' ? `span ${cols}` : undefined,
|
|
109
109
|
gridRowEnd: variant !== 'masonry' ? `span ${rows}` : undefined,
|
|
110
|
-
marginBottom: variant === 'masonry' ? gap : undefined
|
|
110
|
+
marginBottom: variant === 'masonry' ? gap : undefined,
|
|
111
|
+
breakInside: variant === 'masonry' ? 'avoid' : undefined
|
|
111
112
|
}, style),
|
|
112
113
|
ownerState: ownerState
|
|
113
114
|
}, other, {
|
|
@@ -52,7 +52,7 @@ const useUtilityClasses = ownerState => {
|
|
|
52
52
|
type
|
|
53
53
|
} = ownerState;
|
|
54
54
|
const slots = {
|
|
55
|
-
root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size
|
|
55
|
+
root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size && size !== 'medium' && `size${capitalize(size)}`, multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],
|
|
56
56
|
input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']
|
|
57
57
|
};
|
|
58
58
|
return composeClasses(slots, getInputBaseUtilityClass, classes);
|
|
@@ -11,6 +11,7 @@ import formControlState from '../FormControl/formControlState';
|
|
|
11
11
|
import useFormControl from '../FormControl/useFormControl';
|
|
12
12
|
import FormLabel, { formLabelClasses } from '../FormLabel';
|
|
13
13
|
import useThemeProps from '../styles/useThemeProps';
|
|
14
|
+
import capitalize from '../utils/capitalize';
|
|
14
15
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
15
16
|
import { getInputLabelUtilityClasses } from './inputLabelClasses';
|
|
16
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -25,7 +26,7 @@ const useUtilityClasses = ownerState => {
|
|
|
25
26
|
required
|
|
26
27
|
} = ownerState;
|
|
27
28
|
const slots = {
|
|
28
|
-
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size
|
|
29
|
+
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size && size !== 'normal' && `size${capitalize(size)}`, variant],
|
|
29
30
|
asterisk: [required && 'asterisk']
|
|
30
31
|
};
|
|
31
32
|
const composedClasses = composeClasses(slots, getInputLabelUtilityClasses, classes);
|
package/modern/Radio/Radio.js
CHANGED
|
@@ -21,10 +21,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
21
21
|
const useUtilityClasses = ownerState => {
|
|
22
22
|
const {
|
|
23
23
|
classes,
|
|
24
|
-
color
|
|
24
|
+
color,
|
|
25
|
+
size
|
|
25
26
|
} = ownerState;
|
|
26
27
|
const slots = {
|
|
27
|
-
root: ['root', `color${capitalize(color)}`]
|
|
28
|
+
root: ['root', `color${capitalize(color)}`, size !== 'medium' && `size${capitalize(size)}`]
|
|
28
29
|
};
|
|
29
30
|
return _extends({}, classes, composeClasses(slots, getRadioUtilityClass, classes));
|
|
30
31
|
};
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
|
|
|
3
3
|
export function getRadioUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiRadio', slot);
|
|
5
5
|
}
|
|
6
|
-
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary']);
|
|
6
|
+
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);
|
|
7
7
|
export default radioClasses;
|
|
@@ -432,6 +432,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
432
432
|
error
|
|
433
433
|
});
|
|
434
434
|
const classes = useUtilityClasses(ownerState);
|
|
435
|
+
const paperProps = _extends({}, MenuProps.PaperProps, MenuProps.slotProps?.paper);
|
|
435
436
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
436
437
|
children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
|
|
437
438
|
ref: handleDisplayRef,
|
|
@@ -493,11 +494,13 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
493
494
|
role: 'listbox',
|
|
494
495
|
disableListWrap: true
|
|
495
496
|
}, MenuProps.MenuListProps),
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
497
|
+
slotProps: {
|
|
498
|
+
paper: _extends({}, paperProps, {
|
|
499
|
+
style: _extends({
|
|
500
|
+
minWidth: menuMinWidth
|
|
501
|
+
}, paperProps != null ? paperProps.style : null)
|
|
502
|
+
})
|
|
503
|
+
},
|
|
501
504
|
children: items
|
|
502
505
|
}))]
|
|
503
506
|
});
|
|
@@ -501,7 +501,7 @@ process.env.NODE_ENV !== "production" ? SwipeableDrawer.propTypes /* remove-prop
|
|
|
501
501
|
*
|
|
502
502
|
* @default false
|
|
503
503
|
*/
|
|
504
|
-
allowSwipeInChildren: PropTypes.oneOfType([PropTypes.
|
|
504
|
+
allowSwipeInChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
|
|
505
505
|
/**
|
|
506
506
|
* @ignore
|
|
507
507
|
*/
|
|
@@ -556,20 +556,20 @@ process.env.NODE_ENV !== "production" ? SwipeableDrawer.propTypes /* remove-prop
|
|
|
556
556
|
/**
|
|
557
557
|
* Callback fired when the component requests to be closed.
|
|
558
558
|
*
|
|
559
|
-
* @param {
|
|
559
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
560
560
|
*/
|
|
561
561
|
onClose: PropTypes.func.isRequired,
|
|
562
562
|
/**
|
|
563
563
|
* Callback fired when the component requests to be opened.
|
|
564
564
|
*
|
|
565
|
-
* @param {
|
|
565
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
566
566
|
*/
|
|
567
567
|
onOpen: PropTypes.func.isRequired,
|
|
568
568
|
/**
|
|
569
569
|
* If `true`, the component is shown.
|
|
570
570
|
* @default false
|
|
571
571
|
*/
|
|
572
|
-
open: PropTypes.bool
|
|
572
|
+
open: PropTypes.bool,
|
|
573
573
|
/**
|
|
574
574
|
* @ignore
|
|
575
575
|
*/
|
package/modern/index.js
CHANGED
|
@@ -222,7 +222,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-pro
|
|
|
222
222
|
/**
|
|
223
223
|
* The size of the component.
|
|
224
224
|
* If using a number, the pixel unit is assumed.
|
|
225
|
-
* If using a string, you need to provide the CSS unit, e.g '3rem'.
|
|
225
|
+
* If using a string, you need to provide the CSS unit, e.g. '3rem'.
|
|
226
226
|
* @default 40
|
|
227
227
|
*/
|
|
228
228
|
size: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
@@ -115,7 +115,8 @@ const ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inPro
|
|
|
115
115
|
height,
|
|
116
116
|
gridColumnEnd: variant !== 'masonry' ? `span ${cols}` : undefined,
|
|
117
117
|
gridRowEnd: variant !== 'masonry' ? `span ${rows}` : undefined,
|
|
118
|
-
marginBottom: variant === 'masonry' ? gap : undefined
|
|
118
|
+
marginBottom: variant === 'masonry' ? gap : undefined,
|
|
119
|
+
breakInside: variant === 'masonry' ? 'avoid' : undefined
|
|
119
120
|
}, style),
|
|
120
121
|
ownerState: ownerState
|
|
121
122
|
}, other, {
|
|
@@ -60,7 +60,7 @@ const useUtilityClasses = ownerState => {
|
|
|
60
60
|
type
|
|
61
61
|
} = ownerState;
|
|
62
62
|
const slots = {
|
|
63
|
-
root: ['root', `color${(0, _capitalize.default)(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size
|
|
63
|
+
root: ['root', `color${(0, _capitalize.default)(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size && size !== 'medium' && `size${(0, _capitalize.default)(size)}`, multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],
|
|
64
64
|
input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']
|
|
65
65
|
};
|
|
66
66
|
return (0, _base.unstable_composeClasses)(slots, _inputBaseClasses.getInputBaseUtilityClass, classes);
|
|
@@ -16,6 +16,7 @@ var _formControlState = _interopRequireDefault(require("../FormControl/formContr
|
|
|
16
16
|
var _useFormControl = _interopRequireDefault(require("../FormControl/useFormControl"));
|
|
17
17
|
var _FormLabel = _interopRequireWildcard(require("../FormLabel"));
|
|
18
18
|
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
19
|
+
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
19
20
|
var _styled = _interopRequireWildcard(require("../styles/styled"));
|
|
20
21
|
var _inputLabelClasses = require("./inputLabelClasses");
|
|
21
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -33,7 +34,7 @@ const useUtilityClasses = ownerState => {
|
|
|
33
34
|
required
|
|
34
35
|
} = ownerState;
|
|
35
36
|
const slots = {
|
|
36
|
-
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size
|
|
37
|
+
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size && size !== 'normal' && `size${(0, _capitalize.default)(size)}`, variant],
|
|
37
38
|
asterisk: [required && 'asterisk']
|
|
38
39
|
};
|
|
39
40
|
const composedClasses = (0, _composeClasses.unstable_composeClasses)(slots, _inputLabelClasses.getInputLabelUtilityClasses, classes);
|
package/node/Radio/Radio.js
CHANGED
|
@@ -29,10 +29,11 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
29
29
|
const useUtilityClasses = ownerState => {
|
|
30
30
|
const {
|
|
31
31
|
classes,
|
|
32
|
-
color
|
|
32
|
+
color,
|
|
33
|
+
size
|
|
33
34
|
} = ownerState;
|
|
34
35
|
const slots = {
|
|
35
|
-
root: ['root', `color${(0, _capitalize.default)(color)}`]
|
|
36
|
+
root: ['root', `color${(0, _capitalize.default)(color)}`, size !== 'medium' && `size${(0, _capitalize.default)(size)}`]
|
|
36
37
|
};
|
|
37
38
|
return (0, _extends2.default)({}, classes, (0, _composeClasses.unstable_composeClasses)(slots, _radioClasses.getRadioUtilityClass, classes));
|
|
38
39
|
};
|
|
@@ -11,6 +11,6 @@ var _generateUtilityClass = _interopRequireDefault(require("../generateUtilityCl
|
|
|
11
11
|
function getRadioUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiRadio', slot);
|
|
13
13
|
}
|
|
14
|
-
const radioClasses = (0, _utils.unstable_generateUtilityClasses)('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary']);
|
|
14
|
+
const radioClasses = (0, _utils.unstable_generateUtilityClasses)('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);
|
|
15
15
|
var _default = radioClasses;
|
|
16
16
|
exports.default = _default;
|
|
@@ -115,6 +115,7 @@ const useUtilityClasses = ownerState => {
|
|
|
115
115
|
* @ignore - internal component.
|
|
116
116
|
*/
|
|
117
117
|
const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {
|
|
118
|
+
var _MenuProps$slotProps;
|
|
118
119
|
const {
|
|
119
120
|
'aria-describedby': ariaDescribedby,
|
|
120
121
|
'aria-label': ariaLabel,
|
|
@@ -438,6 +439,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
438
439
|
error
|
|
439
440
|
});
|
|
440
441
|
const classes = useUtilityClasses(ownerState);
|
|
442
|
+
const paperProps = (0, _extends2.default)({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
441
443
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
442
444
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(SelectSelect, (0, _extends2.default)({
|
|
443
445
|
ref: handleDisplayRef,
|
|
@@ -499,11 +501,13 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
499
501
|
role: 'listbox',
|
|
500
502
|
disableListWrap: true
|
|
501
503
|
}, MenuProps.MenuListProps),
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
slotProps: {
|
|
505
|
+
paper: (0, _extends2.default)({}, paperProps, {
|
|
506
|
+
style: (0, _extends2.default)({
|
|
507
|
+
minWidth: menuMinWidth
|
|
508
|
+
}, paperProps != null ? paperProps.style : null)
|
|
509
|
+
})
|
|
510
|
+
},
|
|
507
511
|
children: items
|
|
508
512
|
}))]
|
|
509
513
|
});
|
|
@@ -508,7 +508,7 @@ process.env.NODE_ENV !== "production" ? SwipeableDrawer.propTypes /* remove-prop
|
|
|
508
508
|
*
|
|
509
509
|
* @default false
|
|
510
510
|
*/
|
|
511
|
-
allowSwipeInChildren: _propTypes.default.oneOfType([_propTypes.default.
|
|
511
|
+
allowSwipeInChildren: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.bool]),
|
|
512
512
|
/**
|
|
513
513
|
* @ignore
|
|
514
514
|
*/
|
|
@@ -563,20 +563,20 @@ process.env.NODE_ENV !== "production" ? SwipeableDrawer.propTypes /* remove-prop
|
|
|
563
563
|
/**
|
|
564
564
|
* Callback fired when the component requests to be closed.
|
|
565
565
|
*
|
|
566
|
-
* @param {
|
|
566
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
567
567
|
*/
|
|
568
568
|
onClose: _propTypes.default.func.isRequired,
|
|
569
569
|
/**
|
|
570
570
|
* Callback fired when the component requests to be opened.
|
|
571
571
|
*
|
|
572
|
-
* @param {
|
|
572
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
573
573
|
*/
|
|
574
574
|
onOpen: _propTypes.default.func.isRequired,
|
|
575
575
|
/**
|
|
576
576
|
* If `true`, the component is shown.
|
|
577
577
|
* @default false
|
|
578
578
|
*/
|
|
579
|
-
open: _propTypes.default.bool
|
|
579
|
+
open: _propTypes.default.bool,
|
|
580
580
|
/**
|
|
581
581
|
* @ignore
|
|
582
582
|
*/
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.22.10",
|
|
49
|
-
"@mui/base": "5.0.0-beta.
|
|
50
|
-
"@mui/core-downloads-tracker": "^5.14.
|
|
51
|
-
"@mui/system": "^5.14.
|
|
49
|
+
"@mui/base": "5.0.0-beta.14",
|
|
50
|
+
"@mui/core-downloads-tracker": "^5.14.8",
|
|
51
|
+
"@mui/system": "^5.14.8",
|
|
52
52
|
"@mui/types": "^7.2.4",
|
|
53
|
-
"@mui/utils": "^5.14.
|
|
53
|
+
"@mui/utils": "^5.14.8",
|
|
54
54
|
"@types/react-transition-group": "^4.4.6",
|
|
55
55
|
"clsx": "^2.0.0",
|
|
56
56
|
"csstype": "^3.1.2",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.14.
|
|
2
|
+
* @mui/material v5.14.8
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -6950,10 +6950,20 @@
|
|
|
6950
6950
|
const maxWidth = props => {
|
|
6951
6951
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
6952
6952
|
const styleFromPropValue = propValue => {
|
|
6953
|
-
var _props$theme;
|
|
6953
|
+
var _props$theme, _props$theme2;
|
|
6954
6954
|
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values$1[propValue];
|
|
6955
|
+
if (!breakpoint) {
|
|
6956
|
+
return {
|
|
6957
|
+
maxWidth: sizingTransform(propValue)
|
|
6958
|
+
};
|
|
6959
|
+
}
|
|
6960
|
+
if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {
|
|
6961
|
+
return {
|
|
6962
|
+
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
6963
|
+
};
|
|
6964
|
+
}
|
|
6955
6965
|
return {
|
|
6956
|
-
maxWidth: breakpoint
|
|
6966
|
+
maxWidth: breakpoint
|
|
6957
6967
|
};
|
|
6958
6968
|
};
|
|
6959
6969
|
return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
|
|
@@ -19601,7 +19611,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19601
19611
|
});
|
|
19602
19612
|
};
|
|
19603
19613
|
React__namespace.useEffect(() => {
|
|
19604
|
-
const handleResize =
|
|
19614
|
+
const handleResize = () => {
|
|
19615
|
+
renders.current = 0;
|
|
19616
|
+
|
|
19617
|
+
// If the TextareaAutosize component is replaced by Suspense with a fallback, the last
|
|
19618
|
+
// ResizeObserver's handler that runs because of the change in the layout is trying to
|
|
19619
|
+
// access a dom node that is no longer there (as the fallback component is being shown instead).
|
|
19620
|
+
// See https://github.com/mui/material-ui/issues/32640
|
|
19621
|
+
if (inputRef.current) {
|
|
19622
|
+
syncHeightWithFlushSync();
|
|
19623
|
+
}
|
|
19624
|
+
};
|
|
19625
|
+
const handleResizeWindow = debounce$1(() => {
|
|
19605
19626
|
renders.current = 0;
|
|
19606
19627
|
|
|
19607
19628
|
// If the TextareaAutosize component is replaced by Suspense with a fallback, the last
|
|
@@ -19615,14 +19636,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19615
19636
|
let resizeObserver;
|
|
19616
19637
|
const input = inputRef.current;
|
|
19617
19638
|
const containerWindow = ownerWindow(input);
|
|
19618
|
-
containerWindow.addEventListener('resize',
|
|
19639
|
+
containerWindow.addEventListener('resize', handleResizeWindow);
|
|
19619
19640
|
if (typeof ResizeObserver !== 'undefined') {
|
|
19620
19641
|
resizeObserver = new ResizeObserver(handleResize);
|
|
19621
19642
|
resizeObserver.observe(input);
|
|
19622
19643
|
}
|
|
19623
19644
|
return () => {
|
|
19624
|
-
|
|
19625
|
-
containerWindow.removeEventListener('resize',
|
|
19645
|
+
handleResizeWindow.clear();
|
|
19646
|
+
containerWindow.removeEventListener('resize', handleResizeWindow);
|
|
19626
19647
|
if (resizeObserver) {
|
|
19627
19648
|
resizeObserver.disconnect();
|
|
19628
19649
|
}
|
|
@@ -21613,7 +21634,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21613
21634
|
type
|
|
21614
21635
|
} = ownerState;
|
|
21615
21636
|
const slots = {
|
|
21616
|
-
root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size
|
|
21637
|
+
root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size && size !== 'medium' && `size${capitalize(size)}`, multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],
|
|
21617
21638
|
input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']
|
|
21618
21639
|
};
|
|
21619
21640
|
return composeClasses(slots, getInputBaseUtilityClass, classes);
|
|
@@ -27129,7 +27150,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27129
27150
|
/**
|
|
27130
27151
|
* The size of the component.
|
|
27131
27152
|
* If using a number, the pixel unit is assumed.
|
|
27132
|
-
* If using a string, you need to provide the CSS unit, e.g '3rem'.
|
|
27153
|
+
* If using a string, you need to provide the CSS unit, e.g. '3rem'.
|
|
27133
27154
|
* @default 40
|
|
27134
27155
|
*/
|
|
27135
27156
|
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -32808,7 +32829,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32808
32829
|
height,
|
|
32809
32830
|
gridColumnEnd: variant !== 'masonry' ? `span ${cols}` : undefined,
|
|
32810
32831
|
gridRowEnd: variant !== 'masonry' ? `span ${rows}` : undefined,
|
|
32811
|
-
marginBottom: variant === 'masonry' ? gap : undefined
|
|
32832
|
+
marginBottom: variant === 'masonry' ? gap : undefined,
|
|
32833
|
+
breakInside: variant === 'masonry' ? 'avoid' : undefined
|
|
32812
32834
|
}, style),
|
|
32813
32835
|
ownerState: ownerState
|
|
32814
32836
|
}, other, {
|
|
@@ -33599,7 +33621,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33599
33621
|
required
|
|
33600
33622
|
} = ownerState;
|
|
33601
33623
|
const slots = {
|
|
33602
|
-
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size
|
|
33624
|
+
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size && size !== 'normal' && `size${capitalize(size)}`, variant],
|
|
33603
33625
|
asterisk: [required && 'asterisk']
|
|
33604
33626
|
};
|
|
33605
33627
|
const composedClasses = composeClasses(slots, getInputLabelUtilityClasses, classes);
|
|
@@ -38659,17 +38681,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
38659
38681
|
function getRadioUtilityClass(slot) {
|
|
38660
38682
|
return generateUtilityClass('MuiRadio', slot);
|
|
38661
38683
|
}
|
|
38662
|
-
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary']);
|
|
38684
|
+
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);
|
|
38663
38685
|
var radioClasses$1 = radioClasses;
|
|
38664
38686
|
|
|
38665
38687
|
const _excluded$H = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"];
|
|
38666
38688
|
const useUtilityClasses$A = ownerState => {
|
|
38667
38689
|
const {
|
|
38668
38690
|
classes,
|
|
38669
|
-
color
|
|
38691
|
+
color,
|
|
38692
|
+
size
|
|
38670
38693
|
} = ownerState;
|
|
38671
38694
|
const slots = {
|
|
38672
|
-
root: ['root', `color${capitalize(color)}`]
|
|
38695
|
+
root: ['root', `color${capitalize(color)}`, size !== 'medium' && `size${capitalize(size)}`]
|
|
38673
38696
|
};
|
|
38674
38697
|
return _extends({}, classes, composeClasses(slots, getRadioUtilityClass, classes));
|
|
38675
38698
|
};
|
|
@@ -39779,6 +39802,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39779
39802
|
* @ignore - internal component.
|
|
39780
39803
|
*/
|
|
39781
39804
|
const SelectInput = /*#__PURE__*/React__namespace.forwardRef(function SelectInput(props, ref) {
|
|
39805
|
+
var _MenuProps$slotProps;
|
|
39782
39806
|
const {
|
|
39783
39807
|
'aria-describedby': ariaDescribedby,
|
|
39784
39808
|
'aria-label': ariaLabel,
|
|
@@ -40102,6 +40126,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40102
40126
|
error
|
|
40103
40127
|
});
|
|
40104
40128
|
const classes = useUtilityClasses$x(ownerState);
|
|
40129
|
+
const paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
40105
40130
|
return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
40106
40131
|
children: [/*#__PURE__*/jsxRuntime_1(SelectSelect, _extends({
|
|
40107
40132
|
ref: handleDisplayRef,
|
|
@@ -40163,11 +40188,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40163
40188
|
role: 'listbox',
|
|
40164
40189
|
disableListWrap: true
|
|
40165
40190
|
}, MenuProps.MenuListProps),
|
|
40166
|
-
|
|
40167
|
-
|
|
40168
|
-
|
|
40169
|
-
|
|
40170
|
-
|
|
40191
|
+
slotProps: {
|
|
40192
|
+
paper: _extends({}, paperProps, {
|
|
40193
|
+
style: _extends({
|
|
40194
|
+
minWidth: menuMinWidth
|
|
40195
|
+
}, paperProps != null ? paperProps.style : null)
|
|
40196
|
+
})
|
|
40197
|
+
},
|
|
40171
40198
|
children: items
|
|
40172
40199
|
}))]
|
|
40173
40200
|
});
|
|
@@ -45664,7 +45691,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45664
45691
|
*
|
|
45665
45692
|
* @default false
|
|
45666
45693
|
*/
|
|
45667
|
-
allowSwipeInChildren: PropTypes.oneOfType([PropTypes.
|
|
45694
|
+
allowSwipeInChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
|
|
45668
45695
|
/**
|
|
45669
45696
|
* @ignore
|
|
45670
45697
|
*/
|
|
@@ -45719,20 +45746,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45719
45746
|
/**
|
|
45720
45747
|
* Callback fired when the component requests to be closed.
|
|
45721
45748
|
*
|
|
45722
|
-
* @param {
|
|
45749
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
45723
45750
|
*/
|
|
45724
45751
|
onClose: PropTypes.func.isRequired,
|
|
45725
45752
|
/**
|
|
45726
45753
|
* Callback fired when the component requests to be opened.
|
|
45727
45754
|
*
|
|
45728
|
-
* @param {
|
|
45755
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
45729
45756
|
*/
|
|
45730
45757
|
onOpen: PropTypes.func.isRequired,
|
|
45731
45758
|
/**
|
|
45732
45759
|
* If `true`, the component is shown.
|
|
45733
45760
|
* @default false
|
|
45734
45761
|
*/
|
|
45735
|
-
open: PropTypes.bool
|
|
45762
|
+
open: PropTypes.bool,
|
|
45736
45763
|
/**
|
|
45737
45764
|
* @ignore
|
|
45738
45765
|
*/
|