@mui/material 5.14.18 → 5.14.19

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.
Files changed (92) hide show
  1. package/Autocomplete/Autocomplete.js +9 -1
  2. package/Box/Box.js +2 -1
  3. package/Box/boxClasses.d.ts +7 -0
  4. package/Box/boxClasses.js +3 -0
  5. package/Box/index.d.ts +3 -0
  6. package/Box/index.js +3 -1
  7. package/CHANGELOG.md +89 -1
  8. package/Chip/Chip.js +2 -2
  9. package/FilledInput/FilledInput.js +1 -1
  10. package/InputAdornment/InputAdornment.js +2 -2
  11. package/InputLabel/InputLabel.js +5 -1
  12. package/Modal/Modal.d.ts +3 -0
  13. package/Modal/Modal.js +3 -0
  14. package/Popper/Popper.js +3 -0
  15. package/Select/Select.d.ts +1 -2
  16. package/Select/SelectInput.js +2 -1
  17. package/StepButton/StepButton.js +1 -1
  18. package/index.js +1 -1
  19. package/legacy/Accordion/Accordion.js +4 -5
  20. package/legacy/AccordionSummary/AccordionSummary.js +5 -6
  21. package/legacy/Autocomplete/Autocomplete.js +47 -39
  22. package/legacy/AvatarGroup/AvatarGroup.js +2 -3
  23. package/legacy/Box/Box.js +2 -1
  24. package/legacy/Box/boxClasses.js +3 -0
  25. package/legacy/Box/index.js +3 -1
  26. package/legacy/Button/Button.js +10 -11
  27. package/legacy/ButtonBase/ButtonBase.js +4 -5
  28. package/legacy/ButtonGroup/ButtonGroup.js +4 -5
  29. package/legacy/CardActionArea/CardActionArea.js +4 -5
  30. package/legacy/CardHeader/CardHeader.js +1 -2
  31. package/legacy/Checkbox/Checkbox.js +3 -4
  32. package/legacy/Chip/Chip.js +29 -32
  33. package/legacy/FilledInput/FilledInput.js +12 -12
  34. package/legacy/FormHelperText/FormHelperText.js +4 -5
  35. package/legacy/FormLabel/FormLabel.js +5 -6
  36. package/legacy/Input/Input.js +7 -8
  37. package/legacy/InputAdornment/InputAdornment.js +2 -2
  38. package/legacy/InputBase/InputBase.js +5 -6
  39. package/legacy/InputLabel/InputLabel.js +5 -1
  40. package/legacy/ListItem/ListItem.js +4 -5
  41. package/legacy/ListItemButton/ListItemButton.js +6 -7
  42. package/legacy/MenuItem/MenuItem.js +11 -12
  43. package/legacy/Modal/Modal.js +3 -0
  44. package/legacy/NativeSelect/NativeSelectInput.js +6 -7
  45. package/legacy/OutlinedInput/OutlinedInput.js +7 -8
  46. package/legacy/PaginationItem/PaginationItem.js +9 -10
  47. package/legacy/Popper/Popper.js +3 -0
  48. package/legacy/Rating/Rating.js +4 -5
  49. package/legacy/Select/SelectInput.js +2 -1
  50. package/legacy/Slider/Slider.js +11 -14
  51. package/legacy/SpeedDialIcon/SpeedDialIcon.js +4 -5
  52. package/legacy/StepButton/StepButton.js +1 -1
  53. package/legacy/StepIcon/StepIcon.js +5 -6
  54. package/legacy/StepLabel/StepLabel.js +10 -12
  55. package/legacy/Switch/Switch.js +14 -17
  56. package/legacy/Tab/Tab.js +10 -11
  57. package/legacy/TablePagination/TablePagination.js +6 -8
  58. package/legacy/TableRow/TableRow.js +4 -5
  59. package/legacy/Tabs/Tabs.js +1 -2
  60. package/legacy/ToggleButton/ToggleButton.js +4 -5
  61. package/legacy/Tooltip/Tooltip.js +10 -12
  62. package/legacy/index.js +1 -1
  63. package/legacy/styles/createMixins.js +4 -5
  64. package/modern/Autocomplete/Autocomplete.js +9 -1
  65. package/modern/Box/Box.js +2 -1
  66. package/modern/Box/boxClasses.js +3 -0
  67. package/modern/Box/index.js +3 -1
  68. package/modern/Chip/Chip.js +2 -2
  69. package/modern/FilledInput/FilledInput.js +1 -1
  70. package/modern/InputAdornment/InputAdornment.js +2 -2
  71. package/modern/InputLabel/InputLabel.js +5 -1
  72. package/modern/Modal/Modal.js +3 -0
  73. package/modern/Popper/Popper.js +3 -0
  74. package/modern/Select/SelectInput.js +2 -1
  75. package/modern/StepButton/StepButton.js +1 -1
  76. package/modern/index.js +1 -1
  77. package/node/Autocomplete/Autocomplete.js +9 -1
  78. package/node/Box/Box.js +2 -1
  79. package/node/Box/boxClasses.js +9 -0
  80. package/node/Box/index.js +24 -1
  81. package/node/Chip/Chip.js +2 -2
  82. package/node/FilledInput/FilledInput.js +1 -1
  83. package/node/InputAdornment/InputAdornment.js +2 -2
  84. package/node/InputLabel/InputLabel.js +5 -1
  85. package/node/Modal/Modal.js +3 -0
  86. package/node/Popper/Popper.js +3 -0
  87. package/node/Select/SelectInput.js +2 -1
  88. package/node/StepButton/StepButton.js +1 -1
  89. package/node/index.js +1 -1
  90. package/package.json +9 -9
  91. package/umd/material-ui.development.js +70 -58
  92. package/umd/material-ui.production.min.js +20 -20
@@ -47,7 +47,6 @@ export var ListItemRoot = styled('div', {
47
47
  slot: 'Root',
48
48
  overridesResolver: overridesResolver
49
49
  })(function (_ref) {
50
- var _extends2;
51
50
  var theme = _ref.theme,
52
51
  ownerState = _ref.ownerState;
53
52
  return _extends({
@@ -74,15 +73,15 @@ export var ListItemRoot = styled('div', {
74
73
  paddingRight: 48
75
74
  }), !!ownerState.secondaryAction && _defineProperty({}, "& > .".concat(listItemButtonClasses.root), {
76
75
  paddingRight: 48
77
- }), (_extends2 = {}, _defineProperty(_extends2, "&.".concat(listItemClasses.focusVisible), {
76
+ }), _defineProperty(_defineProperty(_defineProperty({}, "&.".concat(listItemClasses.focusVisible), {
78
77
  backgroundColor: (theme.vars || theme).palette.action.focus
79
- }), _defineProperty(_extends2, "&.".concat(listItemClasses.selected), _defineProperty({
78
+ }), "&.".concat(listItemClasses.selected), _defineProperty({
80
79
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
81
80
  }, "&.".concat(listItemClasses.focusVisible), {
82
81
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
83
- })), _defineProperty(_extends2, "&.".concat(listItemClasses.disabled), {
82
+ })), "&.".concat(listItemClasses.disabled), {
84
83
  opacity: (theme.vars || theme).palette.action.disabledOpacity
85
- }), _extends2), ownerState.alignItems === 'flex-start' && {
84
+ }), ownerState.alignItems === 'flex-start' && {
86
85
  alignItems: 'flex-start'
87
86
  }, ownerState.divider && {
88
87
  borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
@@ -42,10 +42,9 @@ var ListItemButtonRoot = styled(ButtonBase, {
42
42
  slot: 'Root',
43
43
  overridesResolver: overridesResolver
44
44
  })(function (_ref) {
45
- var _extends2;
46
45
  var theme = _ref.theme,
47
46
  ownerState = _ref.ownerState;
48
- return _extends((_extends2 = {
47
+ return _extends(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
49
48
  display: 'flex',
50
49
  flexGrow: 1,
51
50
  justifyContent: 'flex-start',
@@ -68,21 +67,21 @@ var ListItemButtonRoot = styled(ButtonBase, {
68
67
  backgroundColor: 'transparent'
69
68
  }
70
69
  }
71
- }, _defineProperty(_extends2, "&.".concat(listItemButtonClasses.selected), _defineProperty({
70
+ }, "&.".concat(listItemButtonClasses.selected), _defineProperty({
72
71
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
73
72
  }, "&.".concat(listItemButtonClasses.focusVisible), {
74
73
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
75
- })), _defineProperty(_extends2, "&.".concat(listItemButtonClasses.selected, ":hover"), {
74
+ })), "&.".concat(listItemButtonClasses.selected, ":hover"), {
76
75
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
77
76
  // Reset on touch devices, it doesn't add specificity
78
77
  '@media (hover: none)': {
79
78
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
80
79
  }
81
- }), _defineProperty(_extends2, "&.".concat(listItemButtonClasses.focusVisible), {
80
+ }), "&.".concat(listItemButtonClasses.focusVisible), {
82
81
  backgroundColor: (theme.vars || theme).palette.action.focus
83
- }), _defineProperty(_extends2, "&.".concat(listItemButtonClasses.disabled), {
82
+ }), "&.".concat(listItemButtonClasses.disabled), {
84
83
  opacity: (theme.vars || theme).palette.action.disabledOpacity
85
- }), _extends2), ownerState.divider && {
84
+ }), ownerState.divider && {
86
85
  borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
87
86
  backgroundClip: 'padding-box'
88
87
  }, ownerState.alignItems === 'flex-start' && {
@@ -44,7 +44,6 @@ var MenuItemRoot = styled(ButtonBase, {
44
44
  slot: 'Root',
45
45
  overridesResolver: overridesResolver
46
46
  })(function (_ref) {
47
- var _extends2;
48
47
  var theme = _ref.theme,
49
48
  ownerState = _ref.ownerState;
50
49
  return _extends({}, theme.typography.body1, {
@@ -64,7 +63,7 @@ var MenuItemRoot = styled(ButtonBase, {
64
63
  }, ownerState.divider && {
65
64
  borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
66
65
  backgroundClip: 'padding-box'
67
- }, (_extends2 = {
66
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
68
67
  '&:hover': {
69
68
  textDecoration: 'none',
70
69
  backgroundColor: (theme.vars || theme).palette.action.hover,
@@ -73,33 +72,33 @@ var MenuItemRoot = styled(ButtonBase, {
73
72
  backgroundColor: 'transparent'
74
73
  }
75
74
  }
76
- }, _defineProperty(_extends2, "&.".concat(menuItemClasses.selected), _defineProperty({
75
+ }, "&.".concat(menuItemClasses.selected), _defineProperty({
77
76
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
78
77
  }, "&.".concat(menuItemClasses.focusVisible), {
79
78
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
80
- })), _defineProperty(_extends2, "&.".concat(menuItemClasses.selected, ":hover"), {
79
+ })), "&.".concat(menuItemClasses.selected, ":hover"), {
81
80
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
82
81
  // Reset on touch devices, it doesn't add specificity
83
82
  '@media (hover: none)': {
84
83
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
85
84
  }
86
- }), _defineProperty(_extends2, "&.".concat(menuItemClasses.focusVisible), {
85
+ }), "&.".concat(menuItemClasses.focusVisible), {
87
86
  backgroundColor: (theme.vars || theme).palette.action.focus
88
- }), _defineProperty(_extends2, "&.".concat(menuItemClasses.disabled), {
87
+ }), "&.".concat(menuItemClasses.disabled), {
89
88
  opacity: (theme.vars || theme).palette.action.disabledOpacity
90
- }), _defineProperty(_extends2, "& + .".concat(dividerClasses.root), {
89
+ }), "& + .".concat(dividerClasses.root), {
91
90
  marginTop: theme.spacing(1),
92
91
  marginBottom: theme.spacing(1)
93
- }), _defineProperty(_extends2, "& + .".concat(dividerClasses.inset), {
92
+ }), "& + .".concat(dividerClasses.inset), {
94
93
  marginLeft: 52
95
- }), _defineProperty(_extends2, "& .".concat(listItemTextClasses.root), {
94
+ }), "& .".concat(listItemTextClasses.root), {
96
95
  marginTop: 0,
97
96
  marginBottom: 0
98
- }), _defineProperty(_extends2, "& .".concat(listItemTextClasses.inset), {
97
+ }), "& .".concat(listItemTextClasses.inset), {
99
98
  paddingLeft: 36
100
- }), _defineProperty(_extends2, "& .".concat(listItemIconClasses.root), {
99
+ }), "& .".concat(listItemIconClasses.root), {
101
100
  minWidth: 36
102
- }), _extends2), !ownerState.dense && _defineProperty({}, theme.breakpoints.up('sm'), {
101
+ }), !ownerState.dense && _defineProperty({}, theme.breakpoints.up('sm'), {
103
102
  minHeight: 'auto'
104
103
  }), ownerState.dense && _extends({
105
104
  minHeight: 32,
@@ -284,6 +284,9 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
284
284
  * An HTML element or function that returns one.
285
285
  * The `container` will have the portal children appended to it.
286
286
  *
287
+ * You can also provide a callback, which is called in a React layout effect.
288
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
289
+ *
287
290
  * By default, it uses the body of the top-level document object,
288
291
  * so it's simply `document.body` most of the time.
289
292
  */
@@ -27,10 +27,9 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
27
27
  return composeClasses(slots, getNativeSelectUtilityClasses, classes);
28
28
  };
29
29
  export var nativeSelectSelectStyles = function nativeSelectSelectStyles(_ref) {
30
- var _extends2;
31
30
  var ownerState = _ref.ownerState,
32
31
  theme = _ref.theme;
33
- return _extends((_extends2 = {
32
+ return _extends(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
34
33
  MozAppearance: 'none',
35
34
  // Reset
36
35
  WebkitAppearance: 'none',
@@ -53,16 +52,16 @@ export var nativeSelectSelectStyles = function nativeSelectSelectStyles(_ref) {
53
52
  '&::-ms-expand': {
54
53
  display: 'none'
55
54
  }
56
- }, _defineProperty(_extends2, "&.".concat(nativeSelectClasses.disabled), {
55
+ }, "&.".concat(nativeSelectClasses.disabled), {
57
56
  cursor: 'default'
58
- }), _defineProperty(_extends2, '&[multiple]', {
57
+ }), '&[multiple]', {
59
58
  height: 'auto'
60
- }), _defineProperty(_extends2, '&:not([multiple]) option, &:not([multiple]) optgroup', {
59
+ }), '&:not([multiple]) option, &:not([multiple]) optgroup', {
61
60
  backgroundColor: (theme.vars || theme).palette.background.paper
62
- }), _defineProperty(_extends2, '&&&', {
61
+ }), '&&&', {
63
62
  paddingRight: 24,
64
63
  minWidth: 16 // So it doesn't collapse.
65
- }), _extends2), ownerState.variant === 'filled' && {
64
+ }), ownerState.variant === 'filled' && {
66
65
  '&&&': {
67
66
  paddingRight: 32
68
67
  }
@@ -34,25 +34,24 @@ var OutlinedInputRoot = styled(InputBaseRoot, {
34
34
  slot: 'Root',
35
35
  overridesResolver: inputBaseRootOverridesResolver
36
36
  })(function (_ref) {
37
- var _extends2;
38
37
  var theme = _ref.theme,
39
38
  ownerState = _ref.ownerState;
40
39
  var borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
41
- return _extends((_extends2 = {
40
+ return _extends(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
42
41
  position: 'relative',
43
42
  borderRadius: (theme.vars || theme).shape.borderRadius
44
- }, _defineProperty(_extends2, "&:hover .".concat(outlinedInputClasses.notchedOutline), {
43
+ }, "&:hover .".concat(outlinedInputClasses.notchedOutline), {
45
44
  borderColor: (theme.vars || theme).palette.text.primary
46
- }), _defineProperty(_extends2, '@media (hover: none)', _defineProperty({}, "&:hover .".concat(outlinedInputClasses.notchedOutline), {
45
+ }), '@media (hover: none)', _defineProperty({}, "&:hover .".concat(outlinedInputClasses.notchedOutline), {
47
46
  borderColor: theme.vars ? "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / 0.23)") : borderColor
48
- })), _defineProperty(_extends2, "&.".concat(outlinedInputClasses.focused, " .").concat(outlinedInputClasses.notchedOutline), {
47
+ })), "&.".concat(outlinedInputClasses.focused, " .").concat(outlinedInputClasses.notchedOutline), {
49
48
  borderColor: (theme.vars || theme).palette[ownerState.color].main,
50
49
  borderWidth: 2
51
- }), _defineProperty(_extends2, "&.".concat(outlinedInputClasses.error, " .").concat(outlinedInputClasses.notchedOutline), {
50
+ }), "&.".concat(outlinedInputClasses.error, " .").concat(outlinedInputClasses.notchedOutline), {
52
51
  borderColor: (theme.vars || theme).palette.error.main
53
- }), _defineProperty(_extends2, "&.".concat(outlinedInputClasses.disabled, " .").concat(outlinedInputClasses.notchedOutline), {
52
+ }), "&.".concat(outlinedInputClasses.disabled, " .").concat(outlinedInputClasses.notchedOutline), {
54
53
  borderColor: (theme.vars || theme).palette.action.disabled
55
- }), _extends2), ownerState.startAdornment && {
54
+ }), ownerState.startAdornment && {
56
55
  paddingLeft: 14
57
56
  }, ownerState.endAdornment && {
58
57
  paddingRight: 14
@@ -82,10 +82,9 @@ var PaginationItemPage = styled(ButtonBase, {
82
82
  slot: 'Root',
83
83
  overridesResolver: overridesResolver
84
84
  })(function (_ref2) {
85
- var _$concat, _extends3;
86
85
  var theme = _ref2.theme,
87
86
  ownerState = _ref2.ownerState;
88
- return _extends({}, theme.typography.body2, (_extends3 = {
87
+ return _extends({}, theme.typography.body2, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
89
88
  borderRadius: 32 / 2,
90
89
  textAlign: 'center',
91
90
  boxSizing: 'border-box',
@@ -94,19 +93,19 @@ var PaginationItemPage = styled(ButtonBase, {
94
93
  padding: '0 6px',
95
94
  margin: '0 3px',
96
95
  color: (theme.vars || theme).palette.text.primary
97
- }, _defineProperty(_extends3, "&.".concat(paginationItemClasses.focusVisible), {
96
+ }, "&.".concat(paginationItemClasses.focusVisible), {
98
97
  backgroundColor: (theme.vars || theme).palette.action.focus
99
- }), _defineProperty(_extends3, "&.".concat(paginationItemClasses.disabled), {
98
+ }), "&.".concat(paginationItemClasses.disabled), {
100
99
  opacity: (theme.vars || theme).palette.action.disabledOpacity
101
- }), _defineProperty(_extends3, "transition", theme.transitions.create(['color', 'background-color'], {
100
+ }), "transition", theme.transitions.create(['color', 'background-color'], {
102
101
  duration: theme.transitions.duration.short
103
- })), _defineProperty(_extends3, '&:hover', {
102
+ })), '&:hover', {
104
103
  backgroundColor: (theme.vars || theme).palette.action.hover,
105
104
  // Reset on touch devices, it doesn't add specificity
106
105
  '@media (hover: none)': {
107
106
  backgroundColor: 'transparent'
108
107
  }
109
- }), _defineProperty(_extends3, "&.".concat(paginationItemClasses.selected), (_$concat = {
108
+ }), "&.".concat(paginationItemClasses.selected), _defineProperty(_defineProperty({
110
109
  backgroundColor: (theme.vars || theme).palette.action.selected,
111
110
  '&:hover': {
112
111
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
@@ -115,13 +114,13 @@ var PaginationItemPage = styled(ButtonBase, {
115
114
  backgroundColor: (theme.vars || theme).palette.action.selected
116
115
  }
117
116
  }
118
- }, _defineProperty(_$concat, "&.".concat(paginationItemClasses.focusVisible), {
117
+ }, "&.".concat(paginationItemClasses.focusVisible), {
119
118
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
120
- }), _defineProperty(_$concat, "&.".concat(paginationItemClasses.disabled), {
119
+ }), "&.".concat(paginationItemClasses.disabled), {
121
120
  opacity: 1,
122
121
  color: (theme.vars || theme).palette.action.disabled,
123
122
  backgroundColor: (theme.vars || theme).palette.action.selected
124
- }), _$concat)), _extends3), ownerState.size === 'small' && {
123
+ })), ownerState.size === 'small' && {
125
124
  minWidth: 26,
126
125
  height: 26,
127
126
  borderRadius: 26 / 2,
@@ -116,6 +116,9 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
116
116
  * An HTML element or function that returns one.
117
117
  * The `container` will have the portal children appended to it.
118
118
  *
119
+ * You can also provide a callback, which is called in a React layout effect.
120
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
121
+ *
119
122
  * By default, it uses the body of the top-level document object,
120
123
  * so it's simply `document.body` most of the time.
121
124
  */
@@ -68,10 +68,9 @@ var RatingRoot = styled('span', {
68
68
  return [_defineProperty({}, "& .".concat(ratingClasses.visuallyHidden), styles.visuallyHidden), styles.root, styles["size".concat(capitalize(ownerState.size))], ownerState.readOnly && styles.readOnly];
69
69
  }
70
70
  })(function (_ref2) {
71
- var _extends2;
72
71
  var theme = _ref2.theme,
73
72
  ownerState = _ref2.ownerState;
74
- return _extends((_extends2 = {
73
+ return _extends(_defineProperty(_defineProperty(_defineProperty({
75
74
  display: 'inline-flex',
76
75
  // Required to position the pristine input absolutely
77
76
  position: 'relative',
@@ -80,12 +79,12 @@ var RatingRoot = styled('span', {
80
79
  cursor: 'pointer',
81
80
  textAlign: 'left',
82
81
  WebkitTapHighlightColor: 'transparent'
83
- }, _defineProperty(_extends2, "&.".concat(ratingClasses.disabled), {
82
+ }, "&.".concat(ratingClasses.disabled), {
84
83
  opacity: (theme.vars || theme).palette.action.disabledOpacity,
85
84
  pointerEvents: 'none'
86
- }), _defineProperty(_extends2, "&.".concat(ratingClasses.focusVisible, " .").concat(ratingClasses.iconActive), {
85
+ }), "&.".concat(ratingClasses.focusVisible, " .").concat(ratingClasses.iconActive), {
87
86
  outline: '1px solid #999'
88
- }), _defineProperty(_extends2, "& .".concat(ratingClasses.visuallyHidden), visuallyHidden), _extends2), ownerState.size === 'small' && {
87
+ }), "& .".concat(ratingClasses.visuallyHidden), visuallyHidden), ownerState.size === 'small' && {
89
88
  fontSize: theme.typography.pxToRem(18)
90
89
  }, ownerState.size === 'large' && {
91
90
  fontSize: theme.typography.pxToRem(30)
@@ -446,6 +446,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
446
446
  var classes = useUtilityClasses(ownerState);
447
447
  var paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
448
448
  var listboxId = useId();
449
+ var hiddenInputId = useId();
449
450
  return /*#__PURE__*/_jsxs(React.Fragment, {
450
451
  children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
451
452
  ref: handleDisplayRef,
@@ -476,7 +477,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
476
477
  })), /*#__PURE__*/_jsx(SelectNativeInput, _extends({
477
478
  "aria-invalid": error,
478
479
  value: Array.isArray(value) ? value.join(',') : value,
479
- name: name,
480
+ name: name != null ? name : hiddenInputId,
480
481
  ref: inputRef,
481
482
  "aria-hidden": true,
482
483
  onChange: handleChange,
@@ -30,7 +30,6 @@ export var SliderRoot = styled('span', {
30
30
  return [styles.root, styles["color".concat(capitalize(ownerState.color))], ownerState.size !== 'medium' && styles["size".concat(capitalize(ownerState.size))], ownerState.marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
31
31
  }
32
32
  })(function (_ref) {
33
- var _extends2;
34
33
  var theme = _ref.theme,
35
34
  ownerState = _ref.ownerState;
36
35
  return _extends({
@@ -68,17 +67,17 @@ export var SliderRoot = styled('span', {
68
67
  width: 2
69
68
  }, ownerState.marked && {
70
69
  marginRight: 44
71
- }), (_extends2 = {
70
+ }), _defineProperty(_defineProperty({
72
71
  '@media print': {
73
72
  colorAdjust: 'exact'
74
73
  }
75
- }, _defineProperty(_extends2, "&.".concat(sliderClasses.disabled), {
74
+ }, "&.".concat(sliderClasses.disabled), {
76
75
  pointerEvents: 'none',
77
76
  cursor: 'default',
78
77
  color: (theme.vars || theme).palette.grey[400]
79
- }), _defineProperty(_extends2, "&.".concat(sliderClasses.dragging), _defineProperty({}, "& .".concat(sliderClasses.thumb, ", & .").concat(sliderClasses.track), {
78
+ }), "&.".concat(sliderClasses.dragging), _defineProperty({}, "& .".concat(sliderClasses.thumb, ", & .").concat(sliderClasses.track), {
80
79
  transition: 'none'
81
- })), _extends2));
80
+ })));
82
81
  });
83
82
  export var SliderRail = styled('span', {
84
83
  name: 'MuiSlider',
@@ -154,7 +153,6 @@ export var SliderThumb = styled('span', {
154
153
  return [styles.thumb, styles["thumbColor".concat(capitalize(ownerState.color))], ownerState.size !== 'medium' && styles["thumbSize".concat(capitalize(ownerState.size))]];
155
154
  }
156
155
  })(function (_ref4) {
157
- var _extends3;
158
156
  var theme = _ref4.theme,
159
157
  ownerState = _ref4.ownerState;
160
158
  return _extends({
@@ -180,7 +178,7 @@ export var SliderThumb = styled('span', {
180
178
  }, ownerState.orientation === 'vertical' && {
181
179
  left: '50%',
182
180
  transform: 'translate(-50%, 50%)'
183
- }, (_extends3 = {
181
+ }, _defineProperty(_defineProperty(_defineProperty({
184
182
  '&:before': _extends({
185
183
  position: 'absolute',
186
184
  content: '""',
@@ -202,18 +200,18 @@ export var SliderThumb = styled('span', {
202
200
  left: '50%',
203
201
  transform: 'translate(-50%, -50%)'
204
202
  }
205
- }, _defineProperty(_extends3, "&:hover, &.".concat(sliderClasses.focusVisible), {
203
+ }, "&:hover, &.".concat(sliderClasses.focusVisible), {
206
204
  boxShadow: "0px 0px 0px 8px ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.16)") : alpha(theme.palette[ownerState.color].main, 0.16)),
207
205
  '@media (hover: none)': {
208
206
  boxShadow: 'none'
209
207
  }
210
- }), _defineProperty(_extends3, "&.".concat(sliderClasses.active), {
208
+ }), "&.".concat(sliderClasses.active), {
211
209
  boxShadow: "0px 0px 0px 14px ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.16)") : alpha(theme.palette[ownerState.color].main, 0.16))
212
- }), _defineProperty(_extends3, "&.".concat(sliderClasses.disabled), {
210
+ }), "&.".concat(sliderClasses.disabled), {
213
211
  '&:hover': {
214
212
  boxShadow: 'none'
215
213
  }
216
- }), _extends3));
214
+ }));
217
215
  });
218
216
  export var SliderValueLabel = styled(BaseSliderValueLabel, {
219
217
  name: 'MuiSlider',
@@ -222,12 +220,11 @@ export var SliderValueLabel = styled(BaseSliderValueLabel, {
222
220
  return styles.valueLabel;
223
221
  }
224
222
  })(function (_ref5) {
225
- var _extends4;
226
223
  var theme = _ref5.theme,
227
224
  ownerState = _ref5.ownerState;
228
- return _extends((_extends4 = {}, _defineProperty(_extends4, "&.".concat(sliderClasses.valueLabelOpen), {
225
+ return _extends(_defineProperty(_defineProperty(_defineProperty({}, "&.".concat(sliderClasses.valueLabelOpen), {
229
226
  transform: "".concat(ownerState.orientation === 'vertical' ? 'translateY(-50%)' : 'translateY(-100%)', " scale(1)")
230
- }), _defineProperty(_extends4, "zIndex", 1), _defineProperty(_extends4, "whiteSpace", 'nowrap'), _extends4), theme.typography.body2, {
227
+ }), "zIndex", 1), "whiteSpace", 'nowrap'), theme.typography.body2, {
231
228
  fontWeight: 500,
232
229
  transition: theme.transitions.create(['transform'], {
233
230
  duration: theme.transitions.duration.shortest
@@ -32,12 +32,11 @@ var SpeedDialIconRoot = styled('span', {
32
32
  return [_defineProperty({}, "& .".concat(speedDialIconClasses.icon), styles.icon), _defineProperty({}, "& .".concat(speedDialIconClasses.icon), ownerState.open && styles.iconOpen), _defineProperty({}, "& .".concat(speedDialIconClasses.icon), ownerState.open && ownerState.openIcon && styles.iconWithOpenIconOpen), _defineProperty({}, "& .".concat(speedDialIconClasses.openIcon), styles.openIcon), _defineProperty({}, "& .".concat(speedDialIconClasses.openIcon), ownerState.open && styles.openIconOpen), styles.root];
33
33
  }
34
34
  })(function (_ref6) {
35
- var _ref7;
36
35
  var theme = _ref6.theme,
37
36
  ownerState = _ref6.ownerState;
38
- return _ref7 = {
37
+ return _defineProperty(_defineProperty({
39
38
  height: 24
40
- }, _defineProperty(_ref7, "& .".concat(speedDialIconClasses.icon), _extends({
39
+ }, "& .".concat(speedDialIconClasses.icon), _extends({
41
40
  transition: theme.transitions.create(['transform', 'opacity'], {
42
41
  duration: theme.transitions.duration.short
43
42
  })
@@ -45,7 +44,7 @@ var SpeedDialIconRoot = styled('span', {
45
44
  transform: 'rotate(45deg)'
46
45
  }, ownerState.openIcon && {
47
46
  opacity: 0
48
- }))), _defineProperty(_ref7, "& .".concat(speedDialIconClasses.openIcon), _extends({
47
+ }))), "& .".concat(speedDialIconClasses.openIcon), _extends({
49
48
  position: 'absolute',
50
49
  transition: theme.transitions.create(['transform', 'opacity'], {
51
50
  duration: theme.transitions.duration.short
@@ -55,7 +54,7 @@ var SpeedDialIconRoot = styled('span', {
55
54
  }, ownerState.open && {
56
55
  transform: 'rotate(0deg)',
57
56
  opacity: 1
58
- })), _ref7;
57
+ }));
59
58
  });
60
59
  var SpeedDialIcon = /*#__PURE__*/React.forwardRef(function SpeedDialIcon(inProps, ref) {
61
60
  var props = useThemeProps({
@@ -70,7 +70,7 @@ var StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, ref)
70
70
  icon: icon,
71
71
  optional: optional
72
72
  };
73
- var child = isMuiElement(children, ['StepLabel']) ? /*#__PURE__*/React.cloneElement(children, childProps) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {
73
+ var child = isMuiElement(children, ['StepLabel']) ? ( /*#__PURE__*/React.cloneElement(children, childProps)) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {
74
74
  children: children
75
75
  }));
76
76
  return /*#__PURE__*/_jsx(StepButtonRoot, _extends({
@@ -34,21 +34,20 @@ var StepIconRoot = styled(SvgIcon, {
34
34
  return styles.root;
35
35
  }
36
36
  })(function (_ref) {
37
- var _ref2;
38
37
  var theme = _ref.theme;
39
- return _ref2 = {
38
+ return _defineProperty(_defineProperty(_defineProperty({
40
39
  display: 'block',
41
40
  transition: theme.transitions.create('color', {
42
41
  duration: theme.transitions.duration.shortest
43
42
  }),
44
43
  color: (theme.vars || theme).palette.text.disabled
45
- }, _defineProperty(_ref2, "&.".concat(stepIconClasses.completed), {
44
+ }, "&.".concat(stepIconClasses.completed), {
46
45
  color: (theme.vars || theme).palette.primary.main
47
- }), _defineProperty(_ref2, "&.".concat(stepIconClasses.active), {
46
+ }), "&.".concat(stepIconClasses.active), {
48
47
  color: (theme.vars || theme).palette.primary.main
49
- }), _defineProperty(_ref2, "&.".concat(stepIconClasses.error), {
48
+ }), "&.".concat(stepIconClasses.error), {
50
49
  color: (theme.vars || theme).palette.error.main
51
- }), _ref2;
50
+ });
52
51
  });
53
52
  var StepIconText = styled('text', {
54
53
  name: 'MuiStepIcon',
@@ -39,16 +39,15 @@ var StepLabelRoot = styled('span', {
39
39
  return [styles.root, styles[ownerState.orientation]];
40
40
  }
41
41
  })(function (_ref) {
42
- var _extends2;
43
42
  var ownerState = _ref.ownerState;
44
- return _extends((_extends2 = {
43
+ return _extends(_defineProperty(_defineProperty({
45
44
  display: 'flex',
46
45
  alignItems: 'center'
47
- }, _defineProperty(_extends2, "&.".concat(stepLabelClasses.alternativeLabel), {
46
+ }, "&.".concat(stepLabelClasses.alternativeLabel), {
48
47
  flexDirection: 'column'
49
- }), _defineProperty(_extends2, "&.".concat(stepLabelClasses.disabled), {
48
+ }), "&.".concat(stepLabelClasses.disabled), {
50
49
  cursor: 'default'
51
- }), _extends2), ownerState.orientation === 'vertical' && {
50
+ }), ownerState.orientation === 'vertical' && {
52
51
  textAlign: 'left',
53
52
  padding: '8px 0'
54
53
  });
@@ -60,24 +59,23 @@ var StepLabelLabel = styled('span', {
60
59
  return styles.label;
61
60
  }
62
61
  })(function (_ref2) {
63
- var _extends3;
64
62
  var theme = _ref2.theme;
65
- return _extends({}, theme.typography.body2, (_extends3 = {
63
+ return _extends({}, theme.typography.body2, _defineProperty(_defineProperty(_defineProperty(_defineProperty({
66
64
  display: 'block',
67
65
  transition: theme.transitions.create('color', {
68
66
  duration: theme.transitions.duration.shortest
69
67
  })
70
- }, _defineProperty(_extends3, "&.".concat(stepLabelClasses.active), {
68
+ }, "&.".concat(stepLabelClasses.active), {
71
69
  color: (theme.vars || theme).palette.text.primary,
72
70
  fontWeight: 500
73
- }), _defineProperty(_extends3, "&.".concat(stepLabelClasses.completed), {
71
+ }), "&.".concat(stepLabelClasses.completed), {
74
72
  color: (theme.vars || theme).palette.text.primary,
75
73
  fontWeight: 500
76
- }), _defineProperty(_extends3, "&.".concat(stepLabelClasses.alternativeLabel), {
74
+ }), "&.".concat(stepLabelClasses.alternativeLabel), {
77
75
  marginTop: 16
78
- }), _defineProperty(_extends3, "&.".concat(stepLabelClasses.error), {
76
+ }), "&.".concat(stepLabelClasses.error), {
79
77
  color: (theme.vars || theme).palette.error.main
80
- }), _extends3));
78
+ }));
81
79
  });
82
80
  var StepLabelIconContainer = styled('span', {
83
81
  name: 'MuiStepLabel',
@@ -42,7 +42,6 @@ var SwitchRoot = styled('span', {
42
42
  return [styles.root, ownerState.edge && styles["edge".concat(capitalize(ownerState.edge))], styles["size".concat(capitalize(ownerState.size))]];
43
43
  }
44
44
  })(function (_ref) {
45
- var _ref2;
46
45
  var ownerState = _ref.ownerState;
47
46
  return _extends({
48
47
  display: 'inline-flex',
@@ -64,18 +63,18 @@ var SwitchRoot = styled('span', {
64
63
  marginLeft: -8
65
64
  }, ownerState.edge === 'end' && {
66
65
  marginRight: -8
67
- }, ownerState.size === 'small' && (_ref2 = {
66
+ }, ownerState.size === 'small' && _defineProperty(_defineProperty({
68
67
  width: 40,
69
68
  height: 24,
70
69
  padding: 7
71
- }, _defineProperty(_ref2, "& .".concat(switchClasses.thumb), {
70
+ }, "& .".concat(switchClasses.thumb), {
72
71
  width: 16,
73
72
  height: 16
74
- }), _defineProperty(_ref2, "& .".concat(switchClasses.switchBase), _defineProperty({
73
+ }), "& .".concat(switchClasses.switchBase), _defineProperty({
75
74
  padding: 4
76
75
  }, "&.".concat(switchClasses.checked), {
77
76
  transform: 'translateX(16px)'
78
- })), _ref2));
77
+ })));
79
78
  });
80
79
  var SwitchSwitchBase = styled(SwitchBase, {
81
80
  name: 'MuiSwitch',
@@ -85,9 +84,8 @@ var SwitchSwitchBase = styled(SwitchBase, {
85
84
  return [styles.switchBase, _defineProperty({}, "& .".concat(switchClasses.input), styles.input), ownerState.color !== 'default' && styles["color".concat(capitalize(ownerState.color))]];
86
85
  }
87
86
  })(function (_ref4) {
88
- var _ref5;
89
87
  var theme = _ref4.theme;
90
- return _ref5 = {
88
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
91
89
  position: 'absolute',
92
90
  top: 0,
93
91
  left: 0,
@@ -97,20 +95,19 @@ var SwitchSwitchBase = styled(SwitchBase, {
97
95
  transition: theme.transitions.create(['left', 'transform'], {
98
96
  duration: theme.transitions.duration.shortest
99
97
  })
100
- }, _defineProperty(_ref5, "&.".concat(switchClasses.checked), {
98
+ }, "&.".concat(switchClasses.checked), {
101
99
  transform: 'translateX(20px)'
102
- }), _defineProperty(_ref5, "&.".concat(switchClasses.disabled), {
100
+ }), "&.".concat(switchClasses.disabled), {
103
101
  color: theme.vars ? theme.vars.palette.Switch.defaultDisabledColor : "".concat(theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600])
104
- }), _defineProperty(_ref5, "&.".concat(switchClasses.checked, " + .").concat(switchClasses.track), {
102
+ }), "&.".concat(switchClasses.checked, " + .").concat(switchClasses.track), {
105
103
  opacity: 0.5
106
- }), _defineProperty(_ref5, "&.".concat(switchClasses.disabled, " + .").concat(switchClasses.track), {
104
+ }), "&.".concat(switchClasses.disabled, " + .").concat(switchClasses.track), {
107
105
  opacity: theme.vars ? theme.vars.opacity.switchTrackDisabled : "".concat(theme.palette.mode === 'light' ? 0.12 : 0.2)
108
- }), _defineProperty(_ref5, "& .".concat(switchClasses.input), {
106
+ }), "& .".concat(switchClasses.input), {
109
107
  left: '-100%',
110
108
  width: '300%'
111
- }), _ref5;
109
+ });
112
110
  }, function (_ref6) {
113
- var _ref7;
114
111
  var theme = _ref6.theme,
115
112
  ownerState = _ref6.ownerState;
116
113
  return _extends({
@@ -121,7 +118,7 @@ var SwitchSwitchBase = styled(SwitchBase, {
121
118
  backgroundColor: 'transparent'
122
119
  }
123
120
  }
124
- }, ownerState.color !== 'default' && (_ref7 = {}, _defineProperty(_ref7, "&.".concat(switchClasses.checked), _defineProperty({
121
+ }, ownerState.color !== 'default' && _defineProperty(_defineProperty({}, "&.".concat(switchClasses.checked), _defineProperty({
125
122
  color: (theme.vars || theme).palette[ownerState.color].main,
126
123
  '&:hover': {
127
124
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
@@ -131,9 +128,9 @@ var SwitchSwitchBase = styled(SwitchBase, {
131
128
  }
132
129
  }, "&.".concat(switchClasses.disabled), {
133
130
  color: theme.vars ? theme.vars.palette.Switch["".concat(ownerState.color, "DisabledColor")] : "".concat(theme.palette.mode === 'light' ? lighten(theme.palette[ownerState.color].main, 0.62) : darken(theme.palette[ownerState.color].main, 0.55))
134
- })), _defineProperty(_ref7, "&.".concat(switchClasses.checked, " + .").concat(switchClasses.track), {
131
+ })), "&.".concat(switchClasses.checked, " + .").concat(switchClasses.track), {
135
132
  backgroundColor: (theme.vars || theme).palette[ownerState.color].main
136
- }), _ref7));
133
+ }));
137
134
  });
138
135
  var SwitchTrack = styled('span', {
139
136
  name: 'MuiSwitch',