@mui/material 5.14.18 → 5.14.20

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 +126 -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
@@ -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',
package/legacy/Tab/Tab.js CHANGED
@@ -37,7 +37,6 @@ var TabRoot = styled(ButtonBase, {
37
37
  return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles["textColor".concat(capitalize(ownerState.textColor))], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped];
38
38
  }
39
39
  })(function (_ref) {
40
- var _ref3, _ref4, _ref5;
41
40
  var theme = _ref.theme,
42
41
  ownerState = _ref.ownerState;
43
42
  return _extends({}, theme.typography.button, {
@@ -66,26 +65,26 @@ var TabRoot = styled(ButtonBase, {
66
65
  marginRight: theme.spacing(1)
67
66
  }, ownerState.iconPosition === 'end' && {
68
67
  marginLeft: theme.spacing(1)
69
- })), ownerState.textColor === 'inherit' && (_ref3 = {
68
+ })), ownerState.textColor === 'inherit' && _defineProperty(_defineProperty({
70
69
  color: 'inherit',
71
70
  opacity: 0.6
72
- }, _defineProperty(_ref3, "&.".concat(tabClasses.selected), {
71
+ }, "&.".concat(tabClasses.selected), {
73
72
  opacity: 1
74
- }), _defineProperty(_ref3, "&.".concat(tabClasses.disabled), {
73
+ }), "&.".concat(tabClasses.disabled), {
75
74
  opacity: (theme.vars || theme).palette.action.disabledOpacity
76
- }), _ref3), ownerState.textColor === 'primary' && (_ref4 = {
75
+ }), ownerState.textColor === 'primary' && _defineProperty(_defineProperty({
77
76
  color: (theme.vars || theme).palette.text.secondary
78
- }, _defineProperty(_ref4, "&.".concat(tabClasses.selected), {
77
+ }, "&.".concat(tabClasses.selected), {
79
78
  color: (theme.vars || theme).palette.primary.main
80
- }), _defineProperty(_ref4, "&.".concat(tabClasses.disabled), {
79
+ }), "&.".concat(tabClasses.disabled), {
81
80
  color: (theme.vars || theme).palette.text.disabled
82
- }), _ref4), ownerState.textColor === 'secondary' && (_ref5 = {
81
+ }), ownerState.textColor === 'secondary' && _defineProperty(_defineProperty({
83
82
  color: (theme.vars || theme).palette.text.secondary
84
- }, _defineProperty(_ref5, "&.".concat(tabClasses.selected), {
83
+ }, "&.".concat(tabClasses.selected), {
85
84
  color: (theme.vars || theme).palette.secondary.main
86
- }), _defineProperty(_ref5, "&.".concat(tabClasses.disabled), {
85
+ }), "&.".concat(tabClasses.disabled), {
87
86
  color: (theme.vars || theme).palette.text.disabled
88
- }), _ref5), ownerState.fullWidth && {
87
+ }), ownerState.fullWidth && {
89
88
  flexShrink: 1,
90
89
  flexGrow: 1,
91
90
  flexBasis: 0,
@@ -47,20 +47,19 @@ var TablePaginationToolbar = styled(Toolbar, {
47
47
  return _extends(_defineProperty({}, "& .".concat(tablePaginationClasses.actions), styles.actions), styles.toolbar);
48
48
  }
49
49
  })(function (_ref2) {
50
- var _ref3;
51
50
  var theme = _ref2.theme;
52
- return _ref3 = {
51
+ return _defineProperty(_defineProperty(_defineProperty({
53
52
  minHeight: 52,
54
53
  paddingRight: 2
55
- }, _defineProperty(_ref3, "".concat(theme.breakpoints.up('xs'), " and (orientation: landscape)"), {
54
+ }, "".concat(theme.breakpoints.up('xs'), " and (orientation: landscape)"), {
56
55
  minHeight: 52
57
- }), _defineProperty(_ref3, theme.breakpoints.up('sm'), {
56
+ }), theme.breakpoints.up('sm'), {
58
57
  minHeight: 52,
59
58
  paddingRight: 2
60
- }), _defineProperty(_ref3, "& .".concat(tablePaginationClasses.actions), {
59
+ }), "& .".concat(tablePaginationClasses.actions), {
61
60
  flexShrink: 0,
62
61
  marginLeft: 20
63
- }), _ref3;
62
+ });
64
63
  });
65
64
  var TablePaginationSpacer = styled('div', {
66
65
  name: 'MuiTablePagination',
@@ -87,8 +86,7 @@ var TablePaginationSelect = styled(Select, {
87
86
  name: 'MuiTablePagination',
88
87
  slot: 'Select',
89
88
  overridesResolver: function overridesResolver(props, styles) {
90
- var _extends3;
91
- return _extends((_extends3 = {}, _defineProperty(_extends3, "& .".concat(tablePaginationClasses.selectIcon), styles.selectIcon), _defineProperty(_extends3, "& .".concat(tablePaginationClasses.select), styles.select), _extends3), styles.input, styles.selectRoot);
89
+ return _extends(_defineProperty(_defineProperty({}, "& .".concat(tablePaginationClasses.selectIcon), styles.selectIcon), "& .".concat(tablePaginationClasses.select), styles.select), styles.input, styles.selectRoot);
92
90
  }
93
91
  })(_defineProperty({
94
92
  color: 'inherit',
@@ -32,22 +32,21 @@ var TableRowRoot = styled('tr', {
32
32
  return [styles.root, ownerState.head && styles.head, ownerState.footer && styles.footer];
33
33
  }
34
34
  })(function (_ref) {
35
- var _ref2;
36
35
  var theme = _ref.theme;
37
- return _ref2 = {
36
+ return _defineProperty(_defineProperty({
38
37
  color: 'inherit',
39
38
  display: 'table-row',
40
39
  verticalAlign: 'middle',
41
40
  // We disable the focus ring for mouse, touch and keyboard users.
42
41
  outline: 0
43
- }, _defineProperty(_ref2, "&.".concat(tableRowClasses.hover, ":hover"), {
42
+ }, "&.".concat(tableRowClasses.hover, ":hover"), {
44
43
  backgroundColor: (theme.vars || theme).palette.action.hover
45
- }), _defineProperty(_ref2, "&.".concat(tableRowClasses.selected), {
44
+ }), "&.".concat(tableRowClasses.selected), {
46
45
  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),
47
46
  '&:hover': {
48
47
  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)
49
48
  }
50
- }), _ref2;
49
+ });
51
50
  });
52
51
  var defaultComponent = 'tr';
53
52
  /**
@@ -347,7 +347,6 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
347
347
  };
348
348
  };
349
349
  var updateIndicatorState = useEventCallback(function () {
350
- var _newIndicatorStyle;
351
350
  var _getTabsMeta = getTabsMeta(),
352
351
  tabsMeta = _getTabsMeta.tabsMeta,
353
352
  tabMeta = _getTabsMeta.tabMeta;
@@ -365,7 +364,7 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
365
364
  startValue = (isRtl ? -1 : 1) * (tabMeta[startIndicator] - tabsMeta[startIndicator] + correction);
366
365
  }
367
366
  }
368
- var newIndicatorStyle = (_newIndicatorStyle = {}, _defineProperty(_newIndicatorStyle, startIndicator, startValue), _defineProperty(_newIndicatorStyle, size, tabMeta ? tabMeta[size] : 0), _newIndicatorStyle);
367
+ var newIndicatorStyle = _defineProperty(_defineProperty({}, startIndicator, startValue), size, tabMeta ? tabMeta[size] : 0);
369
368
 
370
369
  // IE11 support, replace with Number.isNaN
371
370
  // eslint-disable-next-line no-restricted-globals
@@ -35,7 +35,6 @@ var ToggleButtonRoot = styled(ButtonBase, {
35
35
  return [styles.root, styles["size".concat(capitalize(ownerState.size))]];
36
36
  }
37
37
  })(function (_ref) {
38
- var _extends2;
39
38
  var theme = _ref.theme,
40
39
  ownerState = _ref.ownerState;
41
40
  var selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
@@ -51,17 +50,17 @@ var ToggleButtonRoot = styled(ButtonBase, {
51
50
  color: (theme.vars || theme).palette.action.active
52
51
  }, ownerState.fullWidth && {
53
52
  width: '100%'
54
- }, (_extends2 = {}, _defineProperty(_extends2, "&.".concat(toggleButtonClasses.disabled), {
53
+ }, _defineProperty(_defineProperty(_defineProperty({}, "&.".concat(toggleButtonClasses.disabled), {
55
54
  color: (theme.vars || theme).palette.action.disabled,
56
55
  border: "1px solid ".concat((theme.vars || theme).palette.action.disabledBackground)
57
- }), _defineProperty(_extends2, '&:hover', {
56
+ }), '&:hover', {
58
57
  textDecoration: 'none',
59
58
  // Reset on mouse devices
60
59
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
61
60
  '@media (hover: none)': {
62
61
  backgroundColor: 'transparent'
63
62
  }
64
- }), _defineProperty(_extends2, "&.".concat(toggleButtonClasses.selected), {
63
+ }), "&.".concat(toggleButtonClasses.selected), {
65
64
  color: selectedColor,
66
65
  backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(selectedColor, theme.palette.action.selectedOpacity),
67
66
  '&:hover': {
@@ -71,7 +70,7 @@ var ToggleButtonRoot = styled(ButtonBase, {
71
70
  backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(selectedColor, theme.palette.action.selectedOpacity)
72
71
  }
73
72
  }
74
- }), _extends2), ownerState.size === 'small' && {
73
+ }), ownerState.size === 'small' && {
75
74
  padding: 7,
76
75
  fontSize: theme.typography.pxToRem(13)
77
76
  }, ownerState.size === 'large' && {
@@ -48,7 +48,6 @@ var TooltipPopper = styled(Popper, {
48
48
  return [styles.popper, !ownerState.disableInteractive && styles.popperInteractive, ownerState.arrow && styles.popperArrow, !ownerState.open && styles.popperClose];
49
49
  }
50
50
  })(function (_ref) {
51
- var _ref2;
52
51
  var theme = _ref.theme,
53
52
  ownerState = _ref.ownerState,
54
53
  open = _ref.open;
@@ -59,19 +58,19 @@ var TooltipPopper = styled(Popper, {
59
58
  pointerEvents: 'auto'
60
59
  }, !open && {
61
60
  pointerEvents: 'none'
62
- }, ownerState.arrow && (_ref2 = {}, _defineProperty(_ref2, "&[data-popper-placement*=\"bottom\"] .".concat(tooltipClasses.arrow), {
61
+ }, ownerState.arrow && _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "&[data-popper-placement*=\"bottom\"] .".concat(tooltipClasses.arrow), {
63
62
  top: 0,
64
63
  marginTop: '-0.71em',
65
64
  '&::before': {
66
65
  transformOrigin: '0 100%'
67
66
  }
68
- }), _defineProperty(_ref2, "&[data-popper-placement*=\"top\"] .".concat(tooltipClasses.arrow), {
67
+ }), "&[data-popper-placement*=\"top\"] .".concat(tooltipClasses.arrow), {
69
68
  bottom: 0,
70
69
  marginBottom: '-0.71em',
71
70
  '&::before': {
72
71
  transformOrigin: '100% 0'
73
72
  }
74
- }), _defineProperty(_ref2, "&[data-popper-placement*=\"right\"] .".concat(tooltipClasses.arrow), _extends({}, !ownerState.isRtl ? {
73
+ }), "&[data-popper-placement*=\"right\"] .".concat(tooltipClasses.arrow), _extends({}, !ownerState.isRtl ? {
75
74
  left: 0,
76
75
  marginLeft: '-0.71em'
77
76
  } : {
@@ -83,7 +82,7 @@ var TooltipPopper = styled(Popper, {
83
82
  '&::before': {
84
83
  transformOrigin: '100% 100%'
85
84
  }
86
- })), _defineProperty(_ref2, "&[data-popper-placement*=\"left\"] .".concat(tooltipClasses.arrow), _extends({}, !ownerState.isRtl ? {
85
+ })), "&[data-popper-placement*=\"left\"] .".concat(tooltipClasses.arrow), _extends({}, !ownerState.isRtl ? {
87
86
  right: 0,
88
87
  marginRight: '-0.71em'
89
88
  } : {
@@ -95,7 +94,7 @@ var TooltipPopper = styled(Popper, {
95
94
  '&::before': {
96
95
  transformOrigin: '0 0'
97
96
  }
98
- })), _ref2));
97
+ })));
99
98
  });
100
99
  var TooltipTooltip = styled('div', {
101
100
  name: 'MuiTooltip',
@@ -105,7 +104,6 @@ var TooltipTooltip = styled('div', {
105
104
  return [styles.tooltip, ownerState.touch && styles.touch, ownerState.arrow && styles.tooltipArrow, styles["tooltipPlacement".concat(capitalize(ownerState.placement.split('-')[0]))]];
106
105
  }
107
106
  })(function (_ref3) {
108
- var _extends2;
109
107
  var theme = _ref3.theme,
110
108
  ownerState = _ref3.ownerState;
111
109
  return _extends({
@@ -127,7 +125,7 @@ var TooltipTooltip = styled('div', {
127
125
  fontSize: theme.typography.pxToRem(14),
128
126
  lineHeight: "".concat(round(16 / 14), "em"),
129
127
  fontWeight: theme.typography.fontWeightRegular
130
- }, (_extends2 = {}, _defineProperty(_extends2, ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"left\"] &"), _extends({
128
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"left\"] &"), _extends({
131
129
  transformOrigin: 'right center'
132
130
  }, !ownerState.isRtl ? _extends({
133
131
  marginRight: '14px'
@@ -137,7 +135,7 @@ var TooltipTooltip = styled('div', {
137
135
  marginLeft: '14px'
138
136
  }, ownerState.touch && {
139
137
  marginLeft: '24px'
140
- }))), _defineProperty(_extends2, ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"right\"] &"), _extends({
138
+ }))), ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"right\"] &"), _extends({
141
139
  transformOrigin: 'left center'
142
140
  }, !ownerState.isRtl ? _extends({
143
141
  marginLeft: '14px'
@@ -147,17 +145,17 @@ var TooltipTooltip = styled('div', {
147
145
  marginRight: '14px'
148
146
  }, ownerState.touch && {
149
147
  marginRight: '24px'
150
- }))), _defineProperty(_extends2, ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"top\"] &"), _extends({
148
+ }))), ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"top\"] &"), _extends({
151
149
  transformOrigin: 'center bottom',
152
150
  marginBottom: '14px'
153
151
  }, ownerState.touch && {
154
152
  marginBottom: '24px'
155
- })), _defineProperty(_extends2, ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"bottom\"] &"), _extends({
153
+ })), ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"bottom\"] &"), _extends({
156
154
  transformOrigin: 'center top',
157
155
  marginTop: '14px'
158
156
  }, ownerState.touch && {
159
157
  marginTop: '24px'
160
- })), _extends2));
158
+ })));
161
159
  });
162
160
  var TooltipArrow = styled('span', {
163
161
  name: 'MuiTooltip',
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.18
2
+ * @mui/material v5.14.20
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,16 +1,15 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  export default function createMixins(breakpoints, mixins) {
4
- var _toolbar;
5
4
  return _extends({
6
- toolbar: (_toolbar = {
5
+ toolbar: _defineProperty(_defineProperty({
7
6
  minHeight: 56
8
- }, _defineProperty(_toolbar, breakpoints.up('xs'), {
7
+ }, breakpoints.up('xs'), {
9
8
  '@media (orientation: landscape)': {
10
9
  minHeight: 48
11
10
  }
12
- }), _defineProperty(_toolbar, breakpoints.up('sm'), {
11
+ }), breakpoints.up('sm'), {
13
12
  minHeight: 64
14
- }), _toolbar)
13
+ })
15
14
  }, mixins);
16
15
  }
@@ -3,7 +3,7 @@
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
5
  var _ClearIcon, _ArrowDropDownIcon;
6
- const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
6
+ const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
7
7
  _excluded2 = ["ref"],
8
8
  _excluded3 = ["key"];
9
9
  import * as React from 'react';
@@ -826,6 +826,14 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
826
826
  * @returns {boolean}
827
827
  */
828
828
  getOptionDisabled: PropTypes.func,
829
+ /**
830
+ * Used to determine the key for a given option.
831
+ * This can be useful when the labels of options are not unique (since labels are used as keys by default).
832
+ *
833
+ * @param {Value} option The option to get the key for.
834
+ * @returns {string | number}
835
+ */
836
+ getOptionKey: PropTypes.func,
829
837
  /**
830
838
  * Used to determine the string value for a given option.
831
839
  * It's used to fill the input (and the list box options if `renderOption` is not provided).
package/modern/Box/Box.js CHANGED
@@ -5,11 +5,12 @@ import PropTypes from 'prop-types';
5
5
  import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
6
6
  import { createTheme } from '../styles';
7
7
  import THEME_ID from '../styles/identifier';
8
+ import boxClasses from './boxClasses';
8
9
  const defaultTheme = createTheme();
9
10
  const Box = createBox({
10
11
  themeId: THEME_ID,
11
12
  defaultTheme,
12
- defaultClassName: 'MuiBox-root',
13
+ defaultClassName: boxClasses.root,
13
14
  generateClassName: ClassNameGenerator.generate
14
15
  });
15
16
  process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
@@ -0,0 +1,3 @@
1
+ import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
2
+ const boxClasses = generateUtilityClasses('MuiBox', ['root']);
3
+ export default boxClasses;
@@ -1,3 +1,5 @@
1
1
  'use client';
2
2
 
3
- export { default } from './Box';
3
+ export { default } from './Box';
4
+ export { default as boxClasses } from './boxClasses';
5
+ export * from './boxClasses';
@@ -358,10 +358,10 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
358
358
  }) : {};
359
359
  let deleteIcon = null;
360
360
  if (onDelete) {
361
- deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? /*#__PURE__*/React.cloneElement(deleteIconProp, {
361
+ deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? ( /*#__PURE__*/React.cloneElement(deleteIconProp, {
362
362
  className: clsx(deleteIconProp.props.className, classes.deleteIcon),
363
363
  onClick: handleDeleteIconClick
364
- }) : /*#__PURE__*/_jsx(CancelIcon, {
364
+ })) : /*#__PURE__*/_jsx(CancelIcon, {
365
365
  className: clsx(classes.deleteIcon),
366
366
  onClick: handleDeleteIconClick
367
367
  });
@@ -213,7 +213,7 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
213
213
  ownerState
214
214
  }
215
215
  };
216
- const componentsProps = slotProps ?? componentsPropsProp ? deepmerge(slotProps ?? componentsPropsProp, filledInputComponentsProps) : filledInputComponentsProps;
216
+ const componentsProps = slotProps ?? componentsPropsProp ? deepmerge(filledInputComponentsProps, slotProps ?? componentsPropsProp) : filledInputComponentsProps;
217
217
  const RootSlot = slots.root ?? components.Root ?? FilledInputRoot;
218
218
  const InputSlot = slots.input ?? components.Input ?? FilledInputInput;
219
219
  return /*#__PURE__*/_jsx(InputBase, _extends({
@@ -114,10 +114,10 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
114
114
  color: "text.secondary",
115
115
  children: children
116
116
  }) : /*#__PURE__*/_jsxs(React.Fragment, {
117
- children: [position === 'start' ? /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx("span", {
117
+ children: [position === 'start' ? ( /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx("span", {
118
118
  className: "notranslate",
119
119
  children: "\u200B"
120
- })) : null, children]
120
+ }))) : null, children]
121
121
  })
122
122
  }))
123
123
  });
@@ -105,7 +105,11 @@ const InputLabelRoot = styled(FormLabel, {
105
105
  // but it feels a better when it bleeds a bit on the left, so 32px.
106
106
  maxWidth: 'calc(133% - 32px)',
107
107
  transform: 'translate(14px, -9px) scale(0.75)'
108
- })));
108
+ }), ownerState.variant === 'standard' && {
109
+ '&:not(label) + div': {
110
+ marginTop: 16
111
+ }
112
+ }));
109
113
  const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref) {
110
114
  const props = useThemeProps({
111
115
  name: 'MuiInputLabel',
@@ -275,6 +275,9 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
275
275
  * An HTML element or function that returns one.
276
276
  * The `container` will have the portal children appended to it.
277
277
  *
278
+ * You can also provide a callback, which is called in a React layout effect.
279
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
280
+ *
278
281
  * By default, it uses the body of the top-level document object,
279
282
  * so it's simply `document.body` most of the time.
280
283
  */
@@ -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
  */
@@ -434,6 +434,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
434
434
  const classes = useUtilityClasses(ownerState);
435
435
  const paperProps = _extends({}, MenuProps.PaperProps, MenuProps.slotProps?.paper);
436
436
  const listboxId = useId();
437
+ const hiddenInputId = useId();
437
438
  return /*#__PURE__*/_jsxs(React.Fragment, {
438
439
  children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
439
440
  ref: handleDisplayRef,
@@ -464,7 +465,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
464
465
  })), /*#__PURE__*/_jsx(SelectNativeInput, _extends({
465
466
  "aria-invalid": error,
466
467
  value: Array.isArray(value) ? value.join(',') : value,
467
- name: name,
468
+ name: name ?? hiddenInputId,
468
469
  ref: inputRef,
469
470
  "aria-hidden": true,
470
471
  onChange: handleChange,
@@ -81,7 +81,7 @@ const StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, re
81
81
  icon,
82
82
  optional
83
83
  };
84
- const child = isMuiElement(children, ['StepLabel']) ? /*#__PURE__*/React.cloneElement(children, childProps) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {
84
+ const child = isMuiElement(children, ['StepLabel']) ? ( /*#__PURE__*/React.cloneElement(children, childProps)) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {
85
85
  children: children
86
86
  }));
87
87
  return /*#__PURE__*/_jsx(StepButtonRoot, _extends({
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.18
2
+ * @mui/material v5.14.20
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -38,7 +38,7 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
38
38
  var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
39
39
  var _jsxRuntime = require("react/jsx-runtime");
40
40
  var _ClearIcon, _ArrowDropDownIcon;
41
- const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
41
+ const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
42
42
  _excluded2 = ["ref"],
43
43
  _excluded3 = ["key"];
44
44
  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); }
@@ -842,6 +842,14 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
842
842
  * @returns {boolean}
843
843
  */
844
844
  getOptionDisabled: _propTypes.default.func,
845
+ /**
846
+ * Used to determine the key for a given option.
847
+ * This can be useful when the labels of options are not unique (since labels are used as keys by default).
848
+ *
849
+ * @param {Value} option The option to get the key for.
850
+ * @returns {string | number}
851
+ */
852
+ getOptionKey: _propTypes.default.func,
845
853
  /**
846
854
  * Used to determine the string value for a given option.
847
855
  * It's used to fill the input (and the list box options if `renderOption` is not provided).
package/node/Box/Box.js CHANGED
@@ -11,11 +11,12 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
  var _className = require("../className");
12
12
  var _styles = require("../styles");
13
13
  var _identifier = _interopRequireDefault(require("../styles/identifier"));
14
+ var _boxClasses = _interopRequireDefault(require("./boxClasses"));
14
15
  const defaultTheme = (0, _styles.createTheme)();
15
16
  const Box = (0, _system.createBox)({
16
17
  themeId: _identifier.default,
17
18
  defaultTheme,
18
- defaultClassName: 'MuiBox-root',
19
+ defaultClassName: _boxClasses.default.root,
19
20
  generateClassName: _className.unstable_ClassNameGenerator.generate
20
21
  });
21
22
  process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _utils = require("@mui/utils");
8
+ const boxClasses = (0, _utils.unstable_generateUtilityClasses)('MuiBox', ['root']);
9
+ var _default = exports.default = boxClasses;