@mui/material 6.0.0-alpha.5 → 6.0.0-alpha.6
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/Accordion/Accordion.js +2 -2
- package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
- package/Alert/Alert.d.ts +2 -2
- package/Alert/Alert.js +2 -2
- package/Alert/alertClasses.d.ts +12 -12
- package/Avatar/Avatar.d.ts +1 -1
- package/Avatar/Avatar.js +1 -1
- package/Backdrop/Backdrop.d.ts +1 -1
- package/Backdrop/Backdrop.js +1 -1
- package/Badge/Badge.d.ts +2 -2
- package/Badge/Badge.js +2 -2
- package/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/Button/Button.js +1 -1
- package/Button/buttonClasses.d.ts +33 -33
- package/ButtonGroup/buttonGroupClasses.d.ts +17 -17
- package/CHANGELOG.md +48 -0
- package/Checkbox/Checkbox.js +3 -1
- package/Chip/chipClasses.d.ts +28 -26
- package/Chip/chipClasses.js +1 -1
- package/Collapse/Collapse.js +66 -35
- package/Dialog/Dialog.js +105 -61
- package/DialogActions/DialogActions.js +16 -12
- package/DialogContent/DialogContent.js +25 -15
- package/DialogContentText/DialogContentText.js +3 -2
- package/DialogTitle/DialogTitle.js +2 -2
- package/Divider/Divider.d.ts +1 -1
- package/Divider/Divider.js +1 -1
- package/Drawer/Drawer.js +73 -32
- package/Fab/Fab.js +1 -1
- package/FilledInput/FilledInput.d.ts +1 -0
- package/FilledInput/FilledInput.js +170 -87
- package/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormHelperText/FormHelperText.js +2 -2
- package/FormLabel/FormLabel.js +23 -13
- package/Grow/Grow.js +3 -1
- package/Icon/Icon.js +63 -23
- package/ImageList/ImageList.js +2 -2
- package/ImageListItem/ImageListItem.js +2 -2
- package/ImageListItemBar/ImageListItemBar.js +2 -2
- package/Input/Input.d.ts +1 -0
- package/Input/Input.js +84 -61
- package/InputAdornment/InputAdornment.js +37 -21
- package/InputBase/InputBase.js +58 -28
- package/InputLabel/InputLabel.js +120 -58
- package/Link/Link.js +99 -54
- package/Link/getTextDecoration.d.ts +2 -8
- package/Link/getTextDecoration.js +16 -8
- package/List/List.js +22 -13
- package/ListItem/ListItem.js +2 -2
- package/ListItemAvatar/ListItemAvatar.js +2 -2
- package/ListItemButton/ListItemButton.js +3 -2
- package/ListItemIcon/ListItemIcon.js +14 -9
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/ListItemText/ListItemText.js +2 -2
- package/ListSubheader/ListSubheader.js +5 -3
- package/Menu/Menu.js +3 -2
- package/MenuItem/MenuItem.js +47 -27
- package/NativeSelect/NativeSelectInput.js +78 -49
- package/OutlinedInput/NotchedOutline.js +60 -43
- package/OutlinedInput/OutlinedInput.js +97 -39
- package/Pagination/Pagination.js +2 -2
- package/PaginationItem/PaginationItem.d.ts +1 -1
- package/PaginationItem/PaginationItem.js +1 -1
- package/PaginationItem/paginationItemClasses.d.ts +4 -4
- package/Paper/Paper.js +44 -21
- package/Radio/Radio.js +5 -3
- package/Radio/RadioButtonIcon.js +1 -1
- package/Rating/Rating.js +3 -2
- package/Select/Select.js +2 -1
- package/Select/SelectInput.js +8 -6
- package/Skeleton/Skeleton.js +109 -61
- package/Slider/Slider.d.ts +2 -2
- package/Slider/Slider.js +2 -2
- package/Snackbar/Snackbar.js +66 -40
- package/SnackbarContent/SnackbarContent.js +2 -2
- package/SpeedDial/SpeedDial.d.ts +28 -1
- package/SpeedDial/SpeedDial.js +107 -49
- package/SpeedDialAction/SpeedDialAction.js +50 -24
- package/SpeedDialIcon/SpeedDialIcon.js +37 -16
- package/StepConnector/stepConnectorClasses.d.ts +2 -2
- package/StepLabel/StepLabel.d.ts +3 -3
- package/StepLabel/StepLabel.js +3 -3
- package/SwipeableDrawer/SwipeArea.js +39 -18
- package/Tab/Tab.js +127 -55
- package/TabScrollButton/TabScrollButton.js +27 -15
- package/Table/Table.js +2 -2
- package/TableBody/TableBody.js +2 -2
- package/TableCell/TableCell.js +2 -2
- package/TableContainer/TableContainer.js +2 -2
- package/TableFooter/TableFooter.js +2 -2
- package/TableHead/TableHead.js +2 -2
- package/TablePagination/TablePagination.js +2 -2
- package/TableRow/TableRow.js +2 -2
- package/TableSortLabel/TableSortLabel.js +2 -2
- package/Tabs/Tabs.js +107 -54
- package/TextField/TextField.js +2 -2
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
- package/Toolbar/Toolbar.js +3 -7
- package/Tooltip/Tooltip.js +185 -88
- package/Typography/Typography.js +89 -39
- package/index.js +1 -1
- package/internal/SwitchBase.js +39 -11
- package/modern/Accordion/Accordion.js +2 -2
- package/modern/Alert/Alert.js +2 -2
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/Backdrop/Backdrop.js +1 -1
- package/modern/Badge/Badge.js +2 -2
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/modern/Button/Button.js +1 -1
- package/modern/Checkbox/Checkbox.js +3 -1
- package/modern/Chip/chipClasses.js +1 -1
- package/modern/Collapse/Collapse.js +66 -35
- package/modern/Dialog/Dialog.js +105 -61
- package/modern/DialogActions/DialogActions.js +16 -12
- package/modern/DialogContent/DialogContent.js +25 -15
- package/modern/DialogContentText/DialogContentText.js +3 -2
- package/modern/DialogTitle/DialogTitle.js +2 -2
- package/modern/Divider/Divider.js +1 -1
- package/modern/Drawer/Drawer.js +73 -32
- package/modern/Fab/Fab.js +1 -1
- package/modern/FilledInput/FilledInput.js +170 -87
- package/modern/FormControlLabel/FormControlLabel.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +2 -2
- package/modern/FormLabel/FormLabel.js +23 -13
- package/modern/Grow/Grow.js +3 -1
- package/modern/Icon/Icon.js +63 -23
- package/modern/ImageList/ImageList.js +2 -2
- package/modern/ImageListItem/ImageListItem.js +2 -2
- package/modern/ImageListItemBar/ImageListItemBar.js +2 -2
- package/modern/Input/Input.js +84 -61
- package/modern/InputAdornment/InputAdornment.js +37 -21
- package/modern/InputBase/InputBase.js +58 -28
- package/modern/InputLabel/InputLabel.js +120 -58
- package/modern/Link/Link.js +99 -54
- package/modern/Link/getTextDecoration.js +16 -8
- package/modern/List/List.js +22 -13
- package/modern/ListItem/ListItem.js +2 -2
- package/modern/ListItemAvatar/ListItemAvatar.js +2 -2
- package/modern/ListItemButton/ListItemButton.js +3 -2
- package/modern/ListItemIcon/ListItemIcon.js +14 -9
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/modern/ListItemText/ListItemText.js +2 -2
- package/modern/ListSubheader/ListSubheader.js +5 -3
- package/modern/Menu/Menu.js +3 -2
- package/modern/MenuItem/MenuItem.js +47 -27
- package/modern/NativeSelect/NativeSelectInput.js +78 -49
- package/modern/OutlinedInput/NotchedOutline.js +60 -43
- package/modern/OutlinedInput/OutlinedInput.js +97 -39
- package/modern/Pagination/Pagination.js +2 -2
- package/modern/PaginationItem/PaginationItem.js +1 -1
- package/modern/Paper/Paper.js +44 -21
- package/modern/Radio/Radio.js +5 -3
- package/modern/Radio/RadioButtonIcon.js +1 -1
- package/modern/Rating/Rating.js +3 -2
- package/modern/Select/Select.js +2 -1
- package/modern/Select/SelectInput.js +8 -6
- package/modern/Skeleton/Skeleton.js +109 -61
- package/modern/Slider/Slider.js +2 -2
- package/modern/Snackbar/Snackbar.js +66 -40
- package/modern/SnackbarContent/SnackbarContent.js +2 -2
- package/modern/SpeedDial/SpeedDial.js +107 -49
- package/modern/SpeedDialAction/SpeedDialAction.js +50 -24
- package/modern/SpeedDialIcon/SpeedDialIcon.js +37 -16
- package/modern/StepLabel/StepLabel.js +3 -3
- package/modern/SwipeableDrawer/SwipeArea.js +39 -18
- package/modern/Tab/Tab.js +127 -55
- package/modern/TabScrollButton/TabScrollButton.js +27 -15
- package/modern/Table/Table.js +2 -2
- package/modern/TableBody/TableBody.js +2 -2
- package/modern/TableCell/TableCell.js +2 -2
- package/modern/TableContainer/TableContainer.js +2 -2
- package/modern/TableFooter/TableFooter.js +2 -2
- package/modern/TableHead/TableHead.js +2 -2
- package/modern/TablePagination/TablePagination.js +2 -2
- package/modern/TableRow/TableRow.js +2 -2
- package/modern/TableSortLabel/TableSortLabel.js +2 -2
- package/modern/Tabs/Tabs.js +107 -54
- package/modern/TextField/TextField.js +2 -2
- package/modern/Toolbar/Toolbar.js +3 -7
- package/modern/Tooltip/Tooltip.js +185 -88
- package/modern/Typography/Typography.js +89 -39
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +39 -11
- package/node/Accordion/Accordion.js +2 -2
- package/node/Alert/Alert.js +2 -2
- package/node/Avatar/Avatar.js +1 -1
- package/node/Backdrop/Backdrop.js +1 -1
- package/node/Badge/Badge.js +2 -2
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -3
- package/node/Button/Button.js +2 -2
- package/node/Checkbox/Checkbox.js +3 -1
- package/node/Chip/chipClasses.js +1 -1
- package/node/Collapse/Collapse.js +70 -39
- package/node/Dialog/Dialog.js +110 -66
- package/node/DialogActions/DialogActions.js +18 -14
- package/node/DialogContent/DialogContent.js +27 -17
- package/node/DialogContentText/DialogContentText.js +6 -5
- package/node/DialogTitle/DialogTitle.js +4 -4
- package/node/Divider/Divider.js +1 -1
- package/node/Drawer/Drawer.js +78 -37
- package/node/Fab/Fab.js +2 -2
- package/node/FilledInput/FilledInput.js +176 -91
- package/node/FormControlLabel/FormControlLabel.js +1 -1
- package/node/FormHelperText/FormHelperText.js +4 -4
- package/node/FormLabel/FormLabel.js +26 -16
- package/node/Grow/Grow.js +3 -1
- package/node/Icon/Icon.js +65 -25
- package/node/ImageList/ImageList.js +4 -4
- package/node/ImageListItem/ImageListItem.js +4 -4
- package/node/ImageListItemBar/ImageListItemBar.js +8 -8
- package/node/Input/Input.js +87 -64
- package/node/InputAdornment/InputAdornment.js +39 -23
- package/node/InputBase/InputBase.js +61 -31
- package/node/InputLabel/InputLabel.js +123 -61
- package/node/Link/Link.js +101 -56
- package/node/Link/getTextDecoration.js +18 -10
- package/node/List/List.js +24 -15
- package/node/ListItem/ListItem.js +5 -5
- package/node/ListItemAvatar/ListItemAvatar.js +4 -4
- package/node/ListItemButton/ListItemButton.js +6 -5
- package/node/ListItemIcon/ListItemIcon.js +16 -11
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
- package/node/ListItemText/ListItemText.js +4 -4
- package/node/ListSubheader/ListSubheader.js +7 -5
- package/node/Menu/Menu.js +8 -7
- package/node/MenuItem/MenuItem.js +50 -30
- package/node/NativeSelect/NativeSelectInput.js +80 -53
- package/node/OutlinedInput/NotchedOutline.js +64 -47
- package/node/OutlinedInput/OutlinedInput.js +101 -43
- package/node/Pagination/Pagination.js +5 -5
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/Paper/Paper.js +49 -28
- package/node/Radio/Radio.js +6 -4
- package/node/Radio/RadioButtonIcon.js +2 -2
- package/node/Rating/Rating.js +9 -8
- package/node/Select/Select.js +6 -5
- package/node/Select/SelectInput.js +9 -7
- package/node/Skeleton/Skeleton.js +113 -65
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +68 -42
- package/node/SnackbarContent/SnackbarContent.js +6 -6
- package/node/SpeedDial/SpeedDial.js +111 -53
- package/node/SpeedDialAction/SpeedDialAction.js +54 -28
- package/node/SpeedDialIcon/SpeedDialIcon.js +39 -18
- package/node/StepLabel/StepLabel.js +3 -3
- package/node/SwipeableDrawer/SwipeArea.js +41 -20
- package/node/Tab/Tab.js +129 -57
- package/node/TabScrollButton/TabScrollButton.js +29 -17
- package/node/Table/Table.js +4 -4
- package/node/TableBody/TableBody.js +4 -4
- package/node/TableCell/TableCell.js +4 -4
- package/node/TableContainer/TableContainer.js +4 -4
- package/node/TableFooter/TableFooter.js +4 -4
- package/node/TableHead/TableHead.js +4 -4
- package/node/TablePagination/TablePagination.js +10 -10
- package/node/TableRow/TableRow.js +4 -4
- package/node/TableSortLabel/TableSortLabel.js +5 -5
- package/node/Tabs/Tabs.js +113 -60
- package/node/TextField/TextField.js +4 -4
- package/node/Toolbar/Toolbar.js +5 -9
- package/node/Tooltip/Tooltip.js +189 -92
- package/node/Typography/Typography.js +90 -40
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +41 -13
- package/package.json +4 -4
- package/umd/material-ui.development.js +2585 -1287
- package/umd/material-ui.production.min.js +4 -4
package/node/Avatar/Avatar.js
CHANGED
|
@@ -254,7 +254,7 @@ process.env.NODE_ENV !== "production" ? Avatar.propTypes /* remove-proptypes */
|
|
|
254
254
|
/**
|
|
255
255
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.
|
|
256
256
|
* It can be used to listen for the loading error event.
|
|
257
|
-
* @deprecated Use `slotProps.img` instead. This prop will be removed in v7. [
|
|
257
|
+
* @deprecated Use `slotProps.img` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
258
258
|
*/
|
|
259
259
|
imgProps: _propTypes.default.object,
|
|
260
260
|
/**
|
|
@@ -197,7 +197,7 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
197
197
|
* The component used for the transition.
|
|
198
198
|
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
199
199
|
* @default Fade
|
|
200
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. [
|
|
200
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
201
201
|
*/
|
|
202
202
|
TransitionComponent: _propTypes.default.elementType,
|
|
203
203
|
/**
|
package/node/Badge/Badge.js
CHANGED
|
@@ -366,7 +366,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
|
|
|
366
366
|
/**
|
|
367
367
|
* The components used for each slot inside.
|
|
368
368
|
*
|
|
369
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [
|
|
369
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
370
370
|
*
|
|
371
371
|
* @default {}
|
|
372
372
|
*/
|
|
@@ -378,7 +378,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
|
|
|
378
378
|
* The extra props for the slot components.
|
|
379
379
|
* You can override the existing props or add new ones.
|
|
380
380
|
*
|
|
381
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [
|
|
381
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
382
382
|
*
|
|
383
383
|
* @default {}
|
|
384
384
|
*/
|
|
@@ -11,14 +11,14 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
14
|
-
var
|
|
14
|
+
var _zeroStyled = require("../zero-styled");
|
|
15
15
|
var _MoreHoriz = _interopRequireDefault(require("../internal/svg-icons/MoreHoriz"));
|
|
16
16
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
const _excluded = ["slots", "slotProps"];
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
|
-
const BreadcrumbCollapsedButton = (0,
|
|
21
|
+
const BreadcrumbCollapsedButton = (0, _zeroStyled.styled)(_ButtonBase.default)(({
|
|
22
22
|
theme
|
|
23
23
|
}) => (0, _extends2.default)({
|
|
24
24
|
display: 'flex',
|
|
@@ -45,7 +45,7 @@ const BreadcrumbCollapsedButton = (0, _styled.default)(_ButtonBase.default)(({
|
|
|
45
45
|
backgroundColor: (0, _colorManipulator.emphasize)(theme.palette.grey[600], 0.12)
|
|
46
46
|
})
|
|
47
47
|
}));
|
|
48
|
-
const BreadcrumbCollapsedIcon = (0,
|
|
48
|
+
const BreadcrumbCollapsedIcon = (0, _zeroStyled.styled)(_MoreHoriz.default)({
|
|
49
49
|
width: 24,
|
|
50
50
|
height: 16
|
|
51
51
|
});
|
package/node/Button/Button.js
CHANGED
|
@@ -14,7 +14,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
14
14
|
var _resolveProps = _interopRequireDefault(require("@mui/utils/resolveProps"));
|
|
15
15
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
16
|
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
17
|
-
var
|
|
17
|
+
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
18
18
|
var _zeroStyled = require("../zero-styled");
|
|
19
19
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
20
20
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
@@ -73,7 +73,7 @@ const commonIconStyles = [{
|
|
|
73
73
|
}
|
|
74
74
|
}];
|
|
75
75
|
const ButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
76
|
-
shouldForwardProp: prop => (0,
|
|
76
|
+
shouldForwardProp: prop => (0, _rootShouldForwardProp.default)(prop) || prop === 'classes',
|
|
77
77
|
name: 'MuiButton',
|
|
78
78
|
slot: 'Root',
|
|
79
79
|
overridesResolver: (props, styles) => {
|
|
@@ -23,7 +23,7 @@ var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShoul
|
|
|
23
23
|
var _checkboxClasses = _interopRequireWildcard(require("./checkboxClasses"));
|
|
24
24
|
var _zeroStyled = require("../zero-styled");
|
|
25
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
|
-
const _excluded = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"];
|
|
26
|
+
const _excluded = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "disableRipple", "className"];
|
|
27
27
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
28
28
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
29
29
|
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiCheckbox');
|
|
@@ -118,12 +118,14 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {
|
|
|
118
118
|
indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,
|
|
119
119
|
inputProps,
|
|
120
120
|
size = 'medium',
|
|
121
|
+
disableRipple = false,
|
|
121
122
|
className
|
|
122
123
|
} = props,
|
|
123
124
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
124
125
|
const icon = indeterminate ? indeterminateIconProp : iconProp;
|
|
125
126
|
const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
|
126
127
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
128
|
+
disableRipple,
|
|
127
129
|
color,
|
|
128
130
|
indeterminate,
|
|
129
131
|
size
|
package/node/Chip/chipClasses.js
CHANGED
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
11
11
|
function getChipUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiChip', slot);
|
|
13
13
|
}
|
|
14
|
-
const chipClasses = (0, _generateUtilityClasses.default)('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
|
|
14
|
+
const chipClasses = (0, _generateUtilityClasses.default)('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorDefault', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
|
|
15
15
|
var _default = exports.default = chipClasses;
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -15,8 +15,7 @@ var _reactTransitionGroup = require("react-transition-group");
|
|
|
15
15
|
var _useTimeout = _interopRequireDefault(require("@mui/utils/useTimeout"));
|
|
16
16
|
var _elementTypeAcceptingRef = _interopRequireDefault(require("@mui/utils/elementTypeAcceptingRef"));
|
|
17
17
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
18
|
-
var
|
|
19
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
18
|
+
var _zeroStyled = require("../zero-styled");
|
|
20
19
|
var _createTransitions = require("../styles/createTransitions");
|
|
21
20
|
var _utils = require("../transitions/utils");
|
|
22
21
|
var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
|
|
@@ -26,6 +25,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
26
25
|
const _excluded = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
|
|
27
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
28
27
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiCollapse');
|
|
29
29
|
const useUtilityClasses = ownerState => {
|
|
30
30
|
const {
|
|
31
31
|
orientation,
|
|
@@ -40,7 +40,7 @@ const useUtilityClasses = ownerState => {
|
|
|
40
40
|
};
|
|
41
41
|
return (0, _composeClasses.default)(slots, _collapseClasses.getCollapseUtilityClass, classes);
|
|
42
42
|
};
|
|
43
|
-
const CollapseRoot = (0,
|
|
43
|
+
const CollapseRoot = (0, _zeroStyled.styled)('div', {
|
|
44
44
|
name: 'MuiCollapse',
|
|
45
45
|
slot: 'Root',
|
|
46
46
|
overridesResolver: (props, styles) => {
|
|
@@ -50,50 +50,79 @@ const CollapseRoot = (0, _styled.default)('div', {
|
|
|
50
50
|
return [styles.root, styles[ownerState.orientation], ownerState.state === 'entered' && styles.entered, ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px' && styles.hidden];
|
|
51
51
|
}
|
|
52
52
|
})(({
|
|
53
|
-
theme
|
|
54
|
-
|
|
55
|
-
}) => (0, _extends2.default)({
|
|
53
|
+
theme
|
|
54
|
+
}) => ({
|
|
56
55
|
height: 0,
|
|
57
56
|
overflow: 'hidden',
|
|
58
|
-
transition: theme.transitions.create('height')
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
57
|
+
transition: theme.transitions.create('height'),
|
|
58
|
+
variants: [{
|
|
59
|
+
props: {
|
|
60
|
+
orientation: 'horizontal'
|
|
61
|
+
},
|
|
62
|
+
style: {
|
|
63
|
+
height: 'auto',
|
|
64
|
+
width: 0,
|
|
65
|
+
transition: theme.transitions.create('width')
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
props: {
|
|
69
|
+
state: 'entered'
|
|
70
|
+
},
|
|
71
|
+
style: {
|
|
72
|
+
height: 'auto',
|
|
73
|
+
overflow: 'visible'
|
|
74
|
+
}
|
|
75
|
+
}, {
|
|
76
|
+
props: {
|
|
77
|
+
state: 'entered',
|
|
78
|
+
orientation: 'horizontal'
|
|
79
|
+
},
|
|
80
|
+
style: {
|
|
81
|
+
width: 'auto'
|
|
82
|
+
}
|
|
83
|
+
}, {
|
|
84
|
+
props: ({
|
|
85
|
+
ownerState
|
|
86
|
+
}) => ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px',
|
|
87
|
+
style: {
|
|
88
|
+
visibility: 'hidden'
|
|
89
|
+
}
|
|
90
|
+
}]
|
|
70
91
|
}));
|
|
71
|
-
const CollapseWrapper = (0,
|
|
92
|
+
const CollapseWrapper = (0, _zeroStyled.styled)('div', {
|
|
72
93
|
name: 'MuiCollapse',
|
|
73
94
|
slot: 'Wrapper',
|
|
74
95
|
overridesResolver: (props, styles) => styles.wrapper
|
|
75
|
-
})(
|
|
76
|
-
ownerState
|
|
77
|
-
}) => (0, _extends2.default)({
|
|
96
|
+
})({
|
|
78
97
|
// Hack to get children with a negative margin to not falsify the height computation.
|
|
79
98
|
display: 'flex',
|
|
80
|
-
width: '100%'
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
99
|
+
width: '100%',
|
|
100
|
+
variants: [{
|
|
101
|
+
props: {
|
|
102
|
+
orientation: 'horizontal'
|
|
103
|
+
},
|
|
104
|
+
style: {
|
|
105
|
+
width: 'auto',
|
|
106
|
+
height: '100%'
|
|
107
|
+
}
|
|
108
|
+
}]
|
|
109
|
+
});
|
|
110
|
+
const CollapseWrapperInner = (0, _zeroStyled.styled)('div', {
|
|
86
111
|
name: 'MuiCollapse',
|
|
87
112
|
slot: 'WrapperInner',
|
|
88
113
|
overridesResolver: (props, styles) => styles.wrapperInner
|
|
89
|
-
})(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
114
|
+
})({
|
|
115
|
+
width: '100%',
|
|
116
|
+
variants: [{
|
|
117
|
+
props: {
|
|
118
|
+
orientation: 'horizontal'
|
|
119
|
+
},
|
|
120
|
+
style: {
|
|
121
|
+
width: 'auto',
|
|
122
|
+
height: '100%'
|
|
123
|
+
}
|
|
124
|
+
}]
|
|
125
|
+
});
|
|
97
126
|
|
|
98
127
|
/**
|
|
99
128
|
* The Collapse transition is used by the
|
|
@@ -101,7 +130,7 @@ const CollapseWrapperInner = (0, _styled.default)('div', {
|
|
|
101
130
|
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
102
131
|
*/
|
|
103
132
|
const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
104
|
-
const props = (
|
|
133
|
+
const props = useThemeProps({
|
|
105
134
|
props: inProps,
|
|
106
135
|
name: 'MuiCollapse'
|
|
107
136
|
});
|
|
@@ -381,5 +410,7 @@ process.env.NODE_ENV !== "production" ? Collapse.propTypes /* remove-proptypes *
|
|
|
381
410
|
exit: _propTypes.default.number
|
|
382
411
|
})])
|
|
383
412
|
} : void 0;
|
|
384
|
-
Collapse
|
|
413
|
+
if (Collapse) {
|
|
414
|
+
Collapse.muiSupportAuto = true;
|
|
415
|
+
}
|
|
385
416
|
var _default = exports.default = Collapse;
|
package/node/Dialog/Dialog.js
CHANGED
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
@@ -17,17 +17,17 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
|
17
17
|
var _Modal = _interopRequireDefault(require("../Modal"));
|
|
18
18
|
var _Fade = _interopRequireDefault(require("../Fade"));
|
|
19
19
|
var _Paper = _interopRequireDefault(require("../Paper"));
|
|
20
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
21
|
-
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
22
20
|
var _dialogClasses = _interopRequireWildcard(require("./dialogClasses"));
|
|
23
21
|
var _DialogContext = _interopRequireDefault(require("./DialogContext"));
|
|
24
22
|
var _Backdrop = _interopRequireDefault(require("../Backdrop"));
|
|
25
23
|
var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
|
|
24
|
+
var _zeroStyled = require("../zero-styled");
|
|
26
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
26
|
const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
28
27
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
29
28
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
30
|
-
const
|
|
29
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiDialog');
|
|
30
|
+
const DialogBackdrop = (0, _zeroStyled.styled)(_Backdrop.default, {
|
|
31
31
|
name: 'MuiDialog',
|
|
32
32
|
slot: 'Backdrop',
|
|
33
33
|
overrides: (props, styles) => styles.backdrop
|
|
@@ -50,7 +50,7 @@ const useUtilityClasses = ownerState => {
|
|
|
50
50
|
};
|
|
51
51
|
return (0, _composeClasses.default)(slots, _dialogClasses.getDialogUtilityClass, classes);
|
|
52
52
|
};
|
|
53
|
-
const DialogRoot = (0,
|
|
53
|
+
const DialogRoot = (0, _zeroStyled.styled)(_Modal.default, {
|
|
54
54
|
name: 'MuiDialog',
|
|
55
55
|
slot: 'Root',
|
|
56
56
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -60,7 +60,7 @@ const DialogRoot = (0, _styled.default)(_Modal.default, {
|
|
|
60
60
|
position: 'absolute !important'
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
|
-
const DialogContainer = (0,
|
|
63
|
+
const DialogContainer = (0, _zeroStyled.styled)('div', {
|
|
64
64
|
name: 'MuiDialog',
|
|
65
65
|
slot: 'Container',
|
|
66
66
|
overridesResolver: (props, styles) => {
|
|
@@ -69,32 +69,41 @@ const DialogContainer = (0, _styled.default)('div', {
|
|
|
69
69
|
} = props;
|
|
70
70
|
return [styles.container, styles[`scroll${(0, _capitalize.default)(ownerState.scroll)}`]];
|
|
71
71
|
}
|
|
72
|
-
})(
|
|
73
|
-
ownerState
|
|
74
|
-
}) => (0, _extends2.default)({
|
|
72
|
+
})({
|
|
75
73
|
height: '100%',
|
|
76
74
|
'@media print': {
|
|
77
75
|
height: 'auto'
|
|
78
76
|
},
|
|
79
77
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
80
|
-
outline: 0
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
78
|
+
outline: 0,
|
|
79
|
+
variants: [{
|
|
80
|
+
props: {
|
|
81
|
+
scroll: 'paper'
|
|
82
|
+
},
|
|
83
|
+
style: {
|
|
84
|
+
display: 'flex',
|
|
85
|
+
justifyContent: 'center',
|
|
86
|
+
alignItems: 'center'
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
props: {
|
|
90
|
+
scroll: 'body'
|
|
91
|
+
},
|
|
92
|
+
style: {
|
|
93
|
+
overflowY: 'auto',
|
|
94
|
+
overflowX: 'hidden',
|
|
95
|
+
textAlign: 'center',
|
|
96
|
+
'&::after': {
|
|
97
|
+
content: '""',
|
|
98
|
+
display: 'inline-block',
|
|
99
|
+
verticalAlign: 'middle',
|
|
100
|
+
height: '100%',
|
|
101
|
+
width: '0'
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}]
|
|
105
|
+
});
|
|
106
|
+
const DialogPaper = (0, _zeroStyled.styled)(_Paper.default, {
|
|
98
107
|
name: 'MuiDialog',
|
|
99
108
|
slot: 'Paper',
|
|
100
109
|
overridesResolver: (props, styles) => {
|
|
@@ -104,9 +113,8 @@ const DialogPaper = (0, _styled.default)(_Paper.default, {
|
|
|
104
113
|
return [styles.paper, styles[`scrollPaper${(0, _capitalize.default)(ownerState.scroll)}`], styles[`paperWidth${(0, _capitalize.default)(String(ownerState.maxWidth))}`], ownerState.fullWidth && styles.paperFullWidth, ownerState.fullScreen && styles.paperFullScreen];
|
|
105
114
|
}
|
|
106
115
|
})(({
|
|
107
|
-
theme
|
|
108
|
-
|
|
109
|
-
}) => (0, _extends2.default)({
|
|
116
|
+
theme
|
|
117
|
+
}) => ({
|
|
110
118
|
margin: 32,
|
|
111
119
|
position: 'relative',
|
|
112
120
|
overflowY: 'auto',
|
|
@@ -114,51 +122,87 @@ const DialogPaper = (0, _styled.default)(_Paper.default, {
|
|
|
114
122
|
'@media print': {
|
|
115
123
|
overflowY: 'visible',
|
|
116
124
|
boxShadow: 'none'
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}, !ownerState.maxWidth && {
|
|
127
|
-
maxWidth: 'calc(100% - 64px)'
|
|
128
|
-
}, ownerState.maxWidth === 'xs' && {
|
|
129
|
-
maxWidth: theme.breakpoints.unit === 'px' ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`,
|
|
130
|
-
[`&.${_dialogClasses.default.paperScrollBody}`]: {
|
|
131
|
-
[theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {
|
|
132
|
-
maxWidth: 'calc(100% - 64px)'
|
|
125
|
+
},
|
|
126
|
+
variants: [{
|
|
127
|
+
props: {
|
|
128
|
+
scroll: 'paper'
|
|
129
|
+
},
|
|
130
|
+
style: {
|
|
131
|
+
display: 'flex',
|
|
132
|
+
flexDirection: 'column',
|
|
133
|
+
maxHeight: 'calc(100% - 64px)'
|
|
133
134
|
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
}, {
|
|
136
|
+
props: {
|
|
137
|
+
scroll: 'body'
|
|
138
|
+
},
|
|
139
|
+
style: {
|
|
140
|
+
display: 'inline-block',
|
|
141
|
+
verticalAlign: 'middle',
|
|
142
|
+
textAlign: 'left' // 'initial' doesn't work on IE11
|
|
143
|
+
}
|
|
144
|
+
}, {
|
|
145
|
+
props: ({
|
|
146
|
+
ownerState
|
|
147
|
+
}) => !ownerState.maxWidth,
|
|
148
|
+
style: {
|
|
139
149
|
maxWidth: 'calc(100% - 64px)'
|
|
140
150
|
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
}, {
|
|
152
|
+
props: {
|
|
153
|
+
maxWidth: 'xs'
|
|
154
|
+
},
|
|
155
|
+
style: {
|
|
156
|
+
maxWidth: theme.breakpoints.unit === 'px' ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`,
|
|
157
|
+
[`&.${_dialogClasses.default.paperScrollBody}`]: {
|
|
158
|
+
[theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {
|
|
159
|
+
maxWidth: 'calc(100% - 64px)'
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}, ...Object.keys(theme.breakpoints.values).filter(maxWidth => maxWidth !== 'xs').map(maxWidth => ({
|
|
164
|
+
props: {
|
|
165
|
+
maxWidth
|
|
166
|
+
},
|
|
167
|
+
style: {
|
|
168
|
+
maxWidth: `${theme.breakpoints.values[maxWidth]}${theme.breakpoints.unit}`,
|
|
169
|
+
[`&.${_dialogClasses.default.paperScrollBody}`]: {
|
|
170
|
+
[theme.breakpoints.down(theme.breakpoints.values[maxWidth] + 32 * 2)]: {
|
|
171
|
+
maxWidth: 'calc(100% - 64px)'
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
})), {
|
|
176
|
+
props: ({
|
|
177
|
+
ownerState
|
|
178
|
+
}) => ownerState.fullWidth,
|
|
179
|
+
style: {
|
|
180
|
+
width: 'calc(100% - 64px)'
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
props: ({
|
|
184
|
+
ownerState
|
|
185
|
+
}) => ownerState.fullScreen,
|
|
186
|
+
style: {
|
|
187
|
+
margin: 0,
|
|
188
|
+
width: '100%',
|
|
189
|
+
maxWidth: '100%',
|
|
190
|
+
height: '100%',
|
|
191
|
+
maxHeight: 'none',
|
|
192
|
+
borderRadius: 0,
|
|
193
|
+
[`&.${_dialogClasses.default.paperScrollBody}`]: {
|
|
194
|
+
margin: 0,
|
|
195
|
+
maxWidth: '100%'
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}]
|
|
155
199
|
}));
|
|
156
200
|
|
|
157
201
|
/**
|
|
158
202
|
* Dialogs are overlaid modal paper based components with a backdrop.
|
|
159
203
|
*/
|
|
160
204
|
const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
161
|
-
const props = (
|
|
205
|
+
const props = useThemeProps({
|
|
162
206
|
props: inProps,
|
|
163
207
|
name: 'MuiDialog'
|
|
164
208
|
});
|
|
@@ -6,19 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
|
-
var
|
|
16
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
15
|
+
var _zeroStyled = require("../zero-styled");
|
|
17
16
|
var _dialogActionsClasses = require("./dialogActionsClasses");
|
|
18
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
18
|
const _excluded = ["className", "disableSpacing"];
|
|
20
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiDialogActions');
|
|
22
22
|
const useUtilityClasses = ownerState => {
|
|
23
23
|
const {
|
|
24
24
|
classes,
|
|
@@ -29,7 +29,7 @@ const useUtilityClasses = ownerState => {
|
|
|
29
29
|
};
|
|
30
30
|
return (0, _composeClasses.default)(slots, _dialogActionsClasses.getDialogActionsUtilityClass, classes);
|
|
31
31
|
};
|
|
32
|
-
const DialogActionsRoot = (0,
|
|
32
|
+
const DialogActionsRoot = (0, _zeroStyled.styled)('div', {
|
|
33
33
|
name: 'MuiDialogActions',
|
|
34
34
|
slot: 'Root',
|
|
35
35
|
overridesResolver: (props, styles) => {
|
|
@@ -38,21 +38,25 @@ const DialogActionsRoot = (0, _styled.default)('div', {
|
|
|
38
38
|
} = props;
|
|
39
39
|
return [styles.root, !ownerState.disableSpacing && styles.spacing];
|
|
40
40
|
}
|
|
41
|
-
})(
|
|
42
|
-
ownerState
|
|
43
|
-
}) => (0, _extends2.default)({
|
|
41
|
+
})({
|
|
44
42
|
display: 'flex',
|
|
45
43
|
alignItems: 'center',
|
|
46
44
|
padding: 8,
|
|
47
45
|
justifyContent: 'flex-end',
|
|
48
|
-
flex: '0 0 auto'
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
flex: '0 0 auto',
|
|
47
|
+
variants: [{
|
|
48
|
+
props: ({
|
|
49
|
+
ownerState
|
|
50
|
+
}) => !ownerState.disableSpacing,
|
|
51
|
+
style: {
|
|
52
|
+
'& > :not(style) ~ :not(style)': {
|
|
53
|
+
marginLeft: 8
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}]
|
|
57
|
+
});
|
|
54
58
|
const DialogActions = /*#__PURE__*/React.forwardRef(function DialogActions(inProps, ref) {
|
|
55
|
-
const props = (
|
|
59
|
+
const props = useThemeProps({
|
|
56
60
|
props: inProps,
|
|
57
61
|
name: 'MuiDialogActions'
|
|
58
62
|
});
|