@mui/material 5.3.1 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/Autocomplete.d.ts +5 -0
  9. package/Autocomplete/Autocomplete.js +11 -3
  10. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  11. package/Avatar/avatarClasses.d.ts +20 -20
  12. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/buttonClasses.d.ts +76 -76
  19. package/ButtonBase/TouchRipple.js +1 -2
  20. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  21. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  22. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  23. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  24. package/CHANGELOG.md +84 -0
  25. package/Card/cardClasses.d.ts +8 -8
  26. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  27. package/CardActions/cardActionsClasses.d.ts +10 -10
  28. package/CardContent/cardContentClasses.d.ts +8 -8
  29. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  30. package/CardMedia/cardMediaClasses.d.ts +12 -12
  31. package/Checkbox/checkboxClasses.d.ts +18 -18
  32. package/Chip/chipClasses.d.ts +80 -80
  33. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  34. package/ClickAwayListener/index.d.ts +2 -2
  35. package/Collapse/collapseClasses.d.ts +18 -18
  36. package/Container/containerClasses.d.ts +22 -22
  37. package/Dialog/DialogContext.d.ts +6 -6
  38. package/Dialog/dialogClasses.d.ts +36 -36
  39. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  40. package/DialogContent/dialogContentClasses.d.ts +10 -10
  41. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  42. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  43. package/Divider/dividerClasses.d.ts +34 -34
  44. package/Drawer/drawerClasses.d.ts +30 -30
  45. package/Fab/fabClasses.d.ts +26 -26
  46. package/FilledInput/filledInputClasses.d.ts +40 -40
  47. package/FormControl/formControlClasses.d.ts +14 -14
  48. package/FormControlLabel/FormControlLabel.js +11 -3
  49. package/FormControlLabel/formControlLabelClasses.d.ts +20 -18
  50. package/FormControlLabel/formControlLabelClasses.js +1 -1
  51. package/FormGroup/FormGroup.js +14 -3
  52. package/FormGroup/formGroupClasses.d.ts +12 -10
  53. package/FormGroup/formGroupClasses.js +1 -1
  54. package/FormHelperText/FormHelperText.js +7 -9
  55. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  56. package/FormLabel/formLabelClasses.d.ts +22 -22
  57. package/Grid/Grid.js +2 -4
  58. package/Grid/gridClasses.d.ts +48 -48
  59. package/Icon/iconClasses.d.ts +24 -24
  60. package/IconButton/iconButtonClasses.d.ts +26 -26
  61. package/ImageList/imageListClasses.d.ts +16 -16
  62. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  63. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  64. package/Input/inputClasses.d.ts +34 -34
  65. package/InputAdornment/InputAdornment.js +6 -9
  66. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  67. package/InputBase/inputBaseClasses.d.ts +44 -44
  68. package/InputLabel/inputLabelClasses.d.ts +32 -32
  69. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  70. package/Link/linkClasses.d.ts +18 -18
  71. package/List/listClasses.d.ts +14 -14
  72. package/ListItem/listItemClasses.d.ts +30 -30
  73. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  74. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  75. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  76. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  77. package/ListItemText/listItemTextClasses.d.ts +18 -18
  78. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  79. package/Menu/menuClasses.d.ts +12 -12
  80. package/MenuItem/menuItemClasses.d.ts +20 -20
  81. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  82. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  83. package/OutlinedInput/NotchedOutline.js +14 -16
  84. package/OutlinedInput/OutlinedInput.js +1 -1
  85. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  86. package/Pagination/paginationClasses.d.ts +14 -14
  87. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  88. package/Paper/paperClasses.d.ts +39 -39
  89. package/Popover/popoverClasses.d.ts +10 -10
  90. package/Popper/Popper.d.ts +17 -17
  91. package/Radio/RadioButtonIcon.js +2 -6
  92. package/Radio/radioClasses.d.ts +16 -16
  93. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  94. package/RadioGroup/useRadioGroup.d.ts +4 -4
  95. package/Rating/ratingClasses.d.ts +40 -40
  96. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  97. package/Select/SelectInput.js +7 -9
  98. package/Select/selectClasses.d.ts +30 -30
  99. package/Skeleton/skeletonClasses.d.ts +24 -24
  100. package/Snackbar/snackbarClasses.d.ts +20 -20
  101. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  102. package/SpeedDial/speedDialClasses.d.ts +22 -22
  103. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  104. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  105. package/Step/stepClasses.d.ts +16 -16
  106. package/StepButton/stepButtonClasses.d.ts +14 -14
  107. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  108. package/StepContent/stepContentClasses.d.ts +12 -12
  109. package/StepIcon/stepIconClasses.d.ts +16 -16
  110. package/StepLabel/stepLabelClasses.d.ts +28 -28
  111. package/Stepper/stepperClasses.d.ts +14 -14
  112. package/SvgIcon/svgIconClasses.d.ts +24 -24
  113. package/SwipeableDrawer/SwipeArea.js +1 -3
  114. package/Switch/switchClasses.d.ts +32 -32
  115. package/Tab/tabClasses.d.ts +26 -26
  116. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  117. package/Table/tableClasses.d.ts +10 -10
  118. package/TableBody/tableBodyClasses.d.ts +8 -8
  119. package/TableCell/tableCellClasses.d.ts +32 -32
  120. package/TableContainer/tableContainerClasses.d.ts +8 -8
  121. package/TableFooter/tableFooterClasses.d.ts +8 -8
  122. package/TableHead/tableHeadClasses.d.ts +8 -8
  123. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  124. package/TableRow/tableRowClasses.d.ts +16 -16
  125. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  126. package/Tabs/tabsClasses.d.ts +32 -32
  127. package/TextField/TextField.js +1 -1
  128. package/TextField/textFieldClasses.d.ts +8 -8
  129. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  130. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  131. package/Toolbar/toolbarClasses.d.ts +14 -14
  132. package/Tooltip/tooltipClasses.d.ts +30 -30
  133. package/Typography/typographyClasses.d.ts +50 -50
  134. package/darkScrollbar/index.d.ts +28 -28
  135. package/index.d.ts +7 -2
  136. package/index.js +6 -3
  137. package/internal/SwitchBase.js +2 -6
  138. package/internal/switchBaseClasses.d.ts +12 -12
  139. package/legacy/Autocomplete/Autocomplete.js +12 -3
  140. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  141. package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
  142. package/legacy/ButtonBase/TouchRipple.js +1 -2
  143. package/legacy/FormControlLabel/FormControlLabel.js +11 -3
  144. package/legacy/FormControlLabel/formControlLabelClasses.js +1 -1
  145. package/legacy/FormGroup/FormGroup.js +14 -3
  146. package/legacy/FormGroup/formGroupClasses.js +1 -1
  147. package/legacy/FormHelperText/FormHelperText.js +7 -9
  148. package/legacy/Grid/Grid.js +2 -4
  149. package/legacy/InputAdornment/InputAdornment.js +6 -9
  150. package/legacy/OutlinedInput/NotchedOutline.js +14 -16
  151. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  152. package/legacy/Radio/RadioButtonIcon.js +2 -6
  153. package/legacy/Select/SelectInput.js +7 -9
  154. package/legacy/SwipeableDrawer/SwipeArea.js +1 -3
  155. package/legacy/TextField/TextField.js +1 -1
  156. package/legacy/index.js +6 -3
  157. package/legacy/internal/SwitchBase.js +2 -6
  158. package/legacy/useMediaQuery/useMediaQuery.js +86 -31
  159. package/locale/index.d.ts +68 -68
  160. package/modern/Autocomplete/Autocomplete.js +11 -3
  161. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  162. package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
  163. package/modern/ButtonBase/TouchRipple.js +1 -2
  164. package/modern/FormControlLabel/FormControlLabel.js +11 -3
  165. package/modern/FormControlLabel/formControlLabelClasses.js +1 -1
  166. package/modern/FormGroup/FormGroup.js +14 -3
  167. package/modern/FormGroup/formGroupClasses.js +1 -1
  168. package/modern/FormHelperText/FormHelperText.js +7 -9
  169. package/modern/Grid/Grid.js +2 -4
  170. package/modern/InputAdornment/InputAdornment.js +6 -9
  171. package/modern/OutlinedInput/NotchedOutline.js +14 -16
  172. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  173. package/modern/Radio/RadioButtonIcon.js +2 -6
  174. package/modern/Select/SelectInput.js +7 -9
  175. package/modern/SwipeableDrawer/SwipeArea.js +1 -3
  176. package/modern/TextField/TextField.js +1 -1
  177. package/modern/index.js +6 -3
  178. package/modern/internal/SwitchBase.js +2 -6
  179. package/modern/useMediaQuery/useMediaQuery.js +68 -26
  180. package/node/Autocomplete/Autocomplete.js +11 -3
  181. package/node/BottomNavigation/BottomNavigation.js +0 -0
  182. package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
  183. package/node/ButtonBase/TouchRipple.js +1 -2
  184. package/node/FormControlLabel/FormControlLabel.js +12 -3
  185. package/node/FormControlLabel/formControlLabelClasses.js +1 -1
  186. package/node/FormGroup/FormGroup.js +15 -3
  187. package/node/FormGroup/formGroupClasses.js +1 -1
  188. package/node/FormHelperText/FormHelperText.js +6 -9
  189. package/node/Grid/Grid.js +2 -4
  190. package/node/InputAdornment/InputAdornment.js +5 -9
  191. package/node/OutlinedInput/NotchedOutline.js +12 -16
  192. package/node/OutlinedInput/OutlinedInput.js +1 -1
  193. package/node/Radio/RadioButtonIcon.js +2 -6
  194. package/node/Select/SelectInput.js +6 -9
  195. package/node/SwipeableDrawer/SwipeArea.js +1 -3
  196. package/node/TextField/TextField.js +1 -1
  197. package/node/index.js +41 -16
  198. package/node/internal/SwitchBase.js +2 -6
  199. package/node/useMediaQuery/useMediaQuery.js +68 -26
  200. package/package.json +3 -3
  201. package/styles/ThemeProvider.d.ts +1 -1
  202. package/transitions/index.d.ts +1 -1
  203. package/transitions/transition.d.ts +13 -13
  204. package/transitions/utils.d.ts +23 -23
  205. package/umd/material-ui.development.js +5869 -8117
  206. package/umd/material-ui.production.min.js +21 -21
  207. package/useMediaQuery/useMediaQuery.d.ts +31 -27
  208. package/useMediaQuery/useMediaQuery.js +68 -26
  209. package/useTouchRipple/index.d.ts +1 -1
  210. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  211. package/utils/getScrollbarSize.d.ts +2 -2
  212. package/utils/ownerDocument.d.ts +2 -2
  213. package/utils/ownerWindow.d.ts +2 -2
  214. package/utils/setRef.d.ts +2 -2
@@ -1,50 +1,50 @@
1
- export interface TypographyClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="body2"`. */
5
- body2: string;
6
- /** Styles applied to the root element if `variant="body1"`. */
7
- body1: string;
8
- /** Styles applied to the root element if `variant="caption"`. */
9
- caption: string;
10
- /** Styles applied to the root element if `variant="button"`. */
11
- button: string;
12
- /** Styles applied to the root element if `variant="h1"`. */
13
- h1: string;
14
- /** Styles applied to the root element if `variant="h2"`. */
15
- h2: string;
16
- /** Styles applied to the root element if `variant="h3"`. */
17
- h3: string;
18
- /** Styles applied to the root element if `variant="h4"`. */
19
- h4: string;
20
- /** Styles applied to the root element if `variant="h5"`. */
21
- h5: string;
22
- /** Styles applied to the root element if `variant="h6"`. */
23
- h6: string;
24
- /** Styles applied to the root element if `variant="subtitle1"`. */
25
- subtitle1: string;
26
- /** Styles applied to the root element if `variant="subtitle2"`. */
27
- subtitle2: string;
28
- /** Styles applied to the root element if `variant="overline"`. */
29
- overline: string;
30
- /** Styles applied to the root element if `variant="inherit"`. */
31
- inherit: string;
32
- /** Styles applied to the root element if `align="left"`. */
33
- alignLeft: string;
34
- /** Styles applied to the root element if `align="center"`. */
35
- alignCenter: string;
36
- /** Styles applied to the root element if `align="right"`. */
37
- alignRight: string;
38
- /** Styles applied to the root element if `align="justify"`. */
39
- alignJustify: string;
40
- /** Styles applied to the root element if `nowrap={true}`. */
41
- noWrap: string;
42
- /** Styles applied to the root element if `gutterBottom={true}`. */
43
- gutterBottom: string;
44
- /** Styles applied to the root element if `paragraph={true}`. */
45
- paragraph: string;
46
- }
47
- export declare type TypographyClassKey = keyof TypographyClasses;
48
- export declare function getTypographyUtilityClass(slot: string): string;
49
- declare const typographyClasses: TypographyClasses;
50
- export default typographyClasses;
1
+ export interface TypographyClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="body2"`. */
5
+ body2: string;
6
+ /** Styles applied to the root element if `variant="body1"`. */
7
+ body1: string;
8
+ /** Styles applied to the root element if `variant="caption"`. */
9
+ caption: string;
10
+ /** Styles applied to the root element if `variant="button"`. */
11
+ button: string;
12
+ /** Styles applied to the root element if `variant="h1"`. */
13
+ h1: string;
14
+ /** Styles applied to the root element if `variant="h2"`. */
15
+ h2: string;
16
+ /** Styles applied to the root element if `variant="h3"`. */
17
+ h3: string;
18
+ /** Styles applied to the root element if `variant="h4"`. */
19
+ h4: string;
20
+ /** Styles applied to the root element if `variant="h5"`. */
21
+ h5: string;
22
+ /** Styles applied to the root element if `variant="h6"`. */
23
+ h6: string;
24
+ /** Styles applied to the root element if `variant="subtitle1"`. */
25
+ subtitle1: string;
26
+ /** Styles applied to the root element if `variant="subtitle2"`. */
27
+ subtitle2: string;
28
+ /** Styles applied to the root element if `variant="overline"`. */
29
+ overline: string;
30
+ /** Styles applied to the root element if `variant="inherit"`. */
31
+ inherit: string;
32
+ /** Styles applied to the root element if `align="left"`. */
33
+ alignLeft: string;
34
+ /** Styles applied to the root element if `align="center"`. */
35
+ alignCenter: string;
36
+ /** Styles applied to the root element if `align="right"`. */
37
+ alignRight: string;
38
+ /** Styles applied to the root element if `align="justify"`. */
39
+ alignJustify: string;
40
+ /** Styles applied to the root element if `nowrap={true}`. */
41
+ noWrap: string;
42
+ /** Styles applied to the root element if `gutterBottom={true}`. */
43
+ gutterBottom: string;
44
+ /** Styles applied to the root element if `paragraph={true}`. */
45
+ paragraph: string;
46
+ }
47
+ export declare type TypographyClassKey = keyof TypographyClasses;
48
+ export declare function getTypographyUtilityClass(slot: string): string;
49
+ declare const typographyClasses: TypographyClasses;
50
+ export default typographyClasses;
@@ -1,28 +1,28 @@
1
- export default function darkScrollbar(options?: {
2
- track: string;
3
- thumb: string;
4
- active: string;
5
- }): {
6
- scrollbarColor: string;
7
- '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
- backgroundColor: string;
9
- };
10
- '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
- borderRadius: number;
12
- backgroundColor: string;
13
- minHeight: number;
14
- border: string;
15
- };
16
- '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
- backgroundColor: string;
18
- };
19
- '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
- backgroundColor: string;
21
- };
22
- '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
- backgroundColor: string;
24
- };
25
- '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
- backgroundColor: string;
27
- };
28
- };
1
+ export default function darkScrollbar(options?: {
2
+ track: string;
3
+ thumb: string;
4
+ active: string;
5
+ }): {
6
+ scrollbarColor: string;
7
+ '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
+ backgroundColor: string;
9
+ };
10
+ '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
+ borderRadius: number;
12
+ backgroundColor: string;
13
+ minHeight: number;
14
+ border: string;
15
+ };
16
+ '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
+ backgroundColor: string;
18
+ };
19
+ '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
+ backgroundColor: string;
21
+ };
22
+ '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
+ backgroundColor: string;
24
+ };
25
+ '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
+ backgroundColor: string;
27
+ };
28
+ };
package/index.d.ts CHANGED
@@ -74,8 +74,6 @@ export * from './styles';
74
74
 
75
75
  export * from './utils';
76
76
 
77
- export * from '@mui/base';
78
-
79
77
  export { default as Accordion } from './Accordion';
80
78
  export * from './Accordion';
81
79
 
@@ -476,3 +474,10 @@ export * from './GlobalStyles';
476
474
  * @deprecated will be removed in v5.beta, please use StyledEngineProvider from @mui/material/styles instead
477
475
  */
478
476
  export { StyledEngineProvider } from './styles';
477
+
478
+ export { default as unstable_composeClasses } from '@mui/base/composeClasses';
479
+
480
+ export { default as generateUtilityClass } from '@mui/base/generateUtilityClass';
481
+ export * from '@mui/base/generateUtilityClass';
482
+
483
+ export { default as generateUtilityClasses } from '@mui/base/generateUtilityClasses';
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.3.1
1
+ /** @license MUI v5.4.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -8,7 +8,6 @@ import * as colors from './colors';
8
8
  export { colors };
9
9
  export * from './styles';
10
10
  export * from './utils';
11
- export * from '@mui/base';
12
11
  export { default as Accordion } from './Accordion';
13
12
  export * from './Accordion';
14
13
  export { default as AccordionActions } from './AccordionActions';
@@ -273,4 +272,8 @@ export * from './Zoom'; // createFilterOptions is exported from Autocomplete
273
272
  export { default as useAutocomplete } from './useAutocomplete';
274
273
  export { default as GlobalStyles } from './GlobalStyles';
275
274
  export * from './GlobalStyles';
276
- export { StyledEngineProvider } from './styles';
275
+ export { StyledEngineProvider } from './styles';
276
+ export { default as unstable_composeClasses } from '@mui/base/composeClasses';
277
+ export { default as generateUtilityClass } from '@mui/base/generateUtilityClass';
278
+ export * from '@mui/base/generateUtilityClass';
279
+ export { default as generateUtilityClasses } from '@mui/base/generateUtilityClasses';
@@ -29,9 +29,7 @@ const useUtilityClasses = ownerState => {
29
29
  return composeClasses(slots, getSwitchBaseUtilityClass, classes);
30
30
  };
31
31
 
32
- const SwitchBaseRoot = styled(ButtonBase, {
33
- skipSx: true
34
- })(({
32
+ const SwitchBaseRoot = styled(ButtonBase)(({
35
33
  ownerState
36
34
  }) => _extends({
37
35
  padding: 9,
@@ -41,9 +39,7 @@ const SwitchBaseRoot = styled(ButtonBase, {
41
39
  }, ownerState.edge === 'end' && {
42
40
  marginRight: ownerState.size === 'small' ? -3 : -12
43
41
  }));
44
- const SwitchBaseInput = styled('input', {
45
- skipSx: true
46
- })({
42
+ const SwitchBaseInput = styled('input')({
47
43
  cursor: 'inherit',
48
44
  position: 'absolute',
49
45
  opacity: 0,
@@ -1,12 +1,12 @@
1
- export interface SwitchBaseClasses {
2
- root: string;
3
- checked: string;
4
- disabled: string;
5
- input: string;
6
- edgeStart: string;
7
- edgeEnd: string;
8
- }
9
- export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
- export declare function getSwitchBaseUtilityClass(slot: string): string;
11
- declare const switchBaseClasses: SwitchBaseClasses;
12
- export default switchBaseClasses;
1
+ export interface SwitchBaseClasses {
2
+ root: string;
3
+ checked: string;
4
+ disabled: string;
5
+ input: string;
6
+ edgeStart: string;
7
+ edgeEnd: string;
8
+ }
9
+ export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
+ export declare function getSwitchBaseUtilityClass(slot: string): string;
11
+ declare const switchBaseClasses: SwitchBaseClasses;
12
+ export default switchBaseClasses;
@@ -420,6 +420,8 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
420
420
  PopperComponent = _props$PopperComponen === void 0 ? Popper : _props$PopperComponen,
421
421
  _props$popupIcon = props.popupIcon,
422
422
  popupIcon = _props$popupIcon === void 0 ? _ArrowDropDownIcon || (_ArrowDropDownIcon = /*#__PURE__*/_jsx(ArrowDropDownIcon, {})) : _props$popupIcon,
423
+ _props$readOnly = props.readOnly,
424
+ readOnly = _props$readOnly === void 0 ? false : _props$readOnly,
423
425
  renderGroupProp = props.renderGroup,
424
426
  renderInput = props.renderInput,
425
427
  renderOptionProp = props.renderOption,
@@ -429,7 +431,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
429
431
  _props$size = props.size,
430
432
  size = _props$size === void 0 ? 'medium' : _props$size,
431
433
  valueProp = props.value,
432
- other = _objectWithoutProperties(props, ["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", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"]);
434
+ other = _objectWithoutProperties(props, ["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", "value"]);
433
435
  /* eslint-enable @typescript-eslint/no-unused-vars */
434
436
 
435
437
 
@@ -455,7 +457,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
455
457
  inputValue = _useAutocomplete.inputValue,
456
458
  groupedOptions = _useAutocomplete.groupedOptions;
457
459
 
458
- var hasClearIcon = !disableClearable && !disabled && dirty;
460
+ var hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
459
461
  var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
460
462
 
461
463
  var ownerState = _extends({}, props, {
@@ -582,7 +584,8 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
582
584
  },
583
585
  inputProps: _extends({
584
586
  className: clsx(classes.input),
585
- disabled: disabled
587
+ disabled: disabled,
588
+ readOnly: readOnly
586
589
  }, getInputProps())
587
590
  })
588
591
  })), popupOpen && anchorEl ? /*#__PURE__*/_jsx(AutocompletePopper, {
@@ -1025,6 +1028,12 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
1025
1028
  */
1026
1029
  popupIcon: PropTypes.node,
1027
1030
 
1031
+ /**
1032
+ * If `true`, the component becomes readonly. It is also supported for multiple tags where the tag cannot be deleted.
1033
+ * @default false
1034
+ */
1035
+ readOnly: PropTypes.bool,
1036
+
1028
1037
  /**
1029
1038
  * Render the group.
1030
1039
  *
File without changes
@@ -6,9 +6,7 @@ import styled from '../styles/styled';
6
6
  import MoreHorizIcon from '../internal/svg-icons/MoreHoriz';
7
7
  import ButtonBase from '../ButtonBase';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
- var BreadcrumbCollapsedButton = styled(ButtonBase, {
10
- skipSx: true
11
- })(function (_ref) {
9
+ var BreadcrumbCollapsedButton = styled(ButtonBase)(function (_ref) {
12
10
  var theme = _ref.theme;
13
11
  return _extends({
14
12
  display: 'flex',
@@ -22,8 +22,7 @@ var exitKeyframe = keyframes(_templateObject2 || (_templateObject2 = _taggedTemp
22
22
  var pulsateKeyframe = keyframes(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])));
23
23
  export var TouchRippleRoot = styled('span', {
24
24
  name: 'MuiTouchRipple',
25
- slot: 'Root',
26
- skipSx: true
25
+ slot: 'Root'
27
26
  })({
28
27
  overflow: 'hidden',
29
28
  pointerEvents: 'none',
@@ -12,15 +12,17 @@ import capitalize from '../utils/capitalize';
12
12
  import styled from '../styles/styled';
13
13
  import useThemeProps from '../styles/useThemeProps';
14
14
  import formControlLabelClasses, { getFormControlLabelUtilityClasses } from './formControlLabelClasses';
15
+ import formControlState from '../FormControl/formControlState';
15
16
  import { jsx as _jsx } from "react/jsx-runtime";
16
17
  import { jsxs as _jsxs } from "react/jsx-runtime";
17
18
 
18
19
  var useUtilityClasses = function useUtilityClasses(ownerState) {
19
20
  var classes = ownerState.classes,
20
21
  disabled = ownerState.disabled,
21
- labelPlacement = ownerState.labelPlacement;
22
+ labelPlacement = ownerState.labelPlacement,
23
+ error = ownerState.error;
22
24
  var slots = {
23
- root: ['root', disabled && 'disabled', "labelPlacement".concat(capitalize(labelPlacement))],
25
+ root: ['root', disabled && 'disabled', "labelPlacement".concat(capitalize(labelPlacement)), error && 'error'],
24
26
  label: ['label', disabled && 'disabled']
25
27
  };
26
28
  return composeClasses(slots, getFormControlLabelUtilityClasses, classes);
@@ -108,11 +110,17 @@ var FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(i
108
110
  controlProps[key] = props[key];
109
111
  }
110
112
  });
113
+ var fcs = formControlState({
114
+ props: props,
115
+ muiFormControl: muiFormControl,
116
+ states: ['error']
117
+ });
111
118
 
112
119
  var ownerState = _extends({}, props, {
113
120
  disabled: disabled,
114
121
  label: label,
115
- labelPlacement: labelPlacement
122
+ labelPlacement: labelPlacement,
123
+ error: fcs.error
116
124
  });
117
125
 
118
126
  var classes = useUtilityClasses(ownerState);
@@ -2,5 +2,5 @@ import { generateUtilityClasses, generateUtilityClass } from '@mui/base';
2
2
  export function getFormControlLabelUtilityClasses(slot) {
3
3
  return generateUtilityClass('MuiFormControlLabel', slot);
4
4
  }
5
- var formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label']);
5
+ var formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error']);
6
6
  export default formControlLabelClasses;
@@ -7,13 +7,16 @@ import { unstable_composeClasses as composeClasses } from '@mui/base';
7
7
  import styled from '../styles/styled';
8
8
  import useThemeProps from '../styles/useThemeProps';
9
9
  import { getFormGroupUtilityClass } from './formGroupClasses';
10
+ import useFormControl from '../FormControl/useFormControl';
11
+ import formControlState from '../FormControl/formControlState';
10
12
  import { jsx as _jsx } from "react/jsx-runtime";
11
13
 
12
14
  var useUtilityClasses = function useUtilityClasses(ownerState) {
13
15
  var classes = ownerState.classes,
14
- row = ownerState.row;
16
+ row = ownerState.row,
17
+ error = ownerState.error;
15
18
  var slots = {
16
- root: ['root', row && 'row']
19
+ root: ['root', row && 'row', error && 'error']
17
20
  };
18
21
  return composeClasses(slots, getFormGroupUtilityClass, classes);
19
22
  };
@@ -52,8 +55,16 @@ var FormGroup = /*#__PURE__*/React.forwardRef(function FormGroup(inProps, ref) {
52
55
  row = _props$row === void 0 ? false : _props$row,
53
56
  other = _objectWithoutProperties(props, ["className", "row"]);
54
57
 
58
+ var muiFormControl = useFormControl();
59
+ var fcs = formControlState({
60
+ props: props,
61
+ muiFormControl: muiFormControl,
62
+ states: ['error']
63
+ });
64
+
55
65
  var ownerState = _extends({}, props, {
56
- row: row
66
+ row: row,
67
+ error: fcs.error
57
68
  });
58
69
 
59
70
  var classes = useUtilityClasses(ownerState);
@@ -2,5 +2,5 @@ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getFormGroupUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiFormGroup', slot);
4
4
  }
5
- var formGroupClasses = generateUtilityClasses('MuiFormGroup', ['root', 'row']);
5
+ var formGroupClasses = generateUtilityClasses('MuiFormGroup', ['root', 'row', 'error']);
6
6
  export default formGroupClasses;
@@ -1,6 +1,9 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+
5
+ var _span;
6
+
4
7
  import * as React from 'react';
5
8
  import PropTypes from 'prop-types';
6
9
  import clsx from 'clsx';
@@ -104,16 +107,11 @@ var FormHelperText = /*#__PURE__*/React.forwardRef(function FormHelperText(inPro
104
107
  className: clsx(classes.root, className),
105
108
  ref: ref
106
109
  }, other, {
107
- children: children === ' ' ?
108
- /*#__PURE__*/
109
- // notranslate needed while Google Translate will not fix zero-width space issue
110
- // eslint-disable-next-line react/no-danger
111
- _jsx("span", {
110
+ children: children === ' ' ? // notranslate needed while Google Translate will not fix zero-width space issue
111
+ _span || (_span = /*#__PURE__*/_jsx("span", {
112
112
  className: "notranslate",
113
- dangerouslySetInnerHTML: {
114
- __html: '​'
115
- }
116
- }) : children
113
+ children: "\u200B"
114
+ })) : children
117
115
  }));
118
116
  });
119
117
  process.env.NODE_ENV !== "production" ? FormHelperText.propTypes
@@ -251,10 +251,8 @@ var GridRoot = styled('div', {
251
251
 
252
252
  }, ownerState.zeroMinWidth && {
253
253
  minWidth: 0
254
- }, ownerState.wrap === 'nowrap' && {
255
- flexWrap: 'nowrap'
256
- }, ownerState.wrap === 'reverse' && {
257
- flexWrap: 'wrap-reverse'
254
+ }, ownerState.wrap !== 'wrap' && {
255
+ flexWrap: ownerState.wrap
258
256
  });
259
257
  }, generateDirection, generateRowGap, generateColumnGap, generateGrid);
260
258
 
@@ -1,6 +1,9 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+
5
+ var _span;
6
+
4
7
  import * as React from 'react';
5
8
  import PropTypes from 'prop-types';
6
9
  import clsx from 'clsx';
@@ -116,17 +119,11 @@ var InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inPro
116
119
  children: children
117
120
  }) : /*#__PURE__*/_jsxs(React.Fragment, {
118
121
  children: [position === 'start' ?
119
- /*#__PURE__*/
120
-
121
122
  /* notranslate needed while Google Translate will not fix zero-width space issue */
122
-
123
- /* eslint-disable-next-line react/no-danger */
124
- _jsx("span", {
123
+ _span || (_span = /*#__PURE__*/_jsx("span", {
125
124
  className: "notranslate",
126
- dangerouslySetInnerHTML: {
127
- __html: '​'
128
- }
129
- }) : null, children]
125
+ children: "\u200B"
126
+ })) : null, children]
130
127
  })
131
128
  }))
132
129
  });
@@ -1,5 +1,8 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
+
4
+ var _span;
5
+
3
6
  import * as React from 'react';
4
7
  import PropTypes from 'prop-types';
5
8
  import styled from '../styles/styled';
@@ -20,14 +23,12 @@ var NotchedOutlineRoot = styled('fieldset')({
20
23
  overflow: 'hidden',
21
24
  minWidth: '0%'
22
25
  });
23
- var NotchedOutlineLegend = styled('legend', {
24
- skipSx: true
25
- })(function (_ref) {
26
+ var NotchedOutlineLegend = styled('legend')(function (_ref) {
26
27
  var ownerState = _ref.ownerState,
27
28
  theme = _ref.theme;
28
29
  return _extends({
29
30
  float: 'unset'
30
- }, ownerState.label === undefined && {
31
+ }, !ownerState.withLabel && {
31
32
  padding: 0,
32
33
  lineHeight: '11px',
33
34
  // sync with `height` in `legend` styles
@@ -35,7 +36,7 @@ var NotchedOutlineLegend = styled('legend', {
35
36
  duration: 150,
36
37
  easing: theme.transitions.easing.easeOut
37
38
  })
38
- }, ownerState.label !== undefined && _extends({
39
+ }, ownerState.withLabel && _extends({
39
40
  display: 'block',
40
41
  // Fix conflict with normalize.css and sanitize.css
41
42
  width: 'auto',
@@ -77,9 +78,11 @@ export default function NotchedOutline(props) {
77
78
  notched = props.notched,
78
79
  other = _objectWithoutProperties(props, ["children", "classes", "className", "label", "notched"]);
79
80
 
81
+ var withLabel = label != null && label !== '';
82
+
80
83
  var ownerState = _extends({}, props, {
81
84
  notched: notched,
82
- label: label
85
+ withLabel: withLabel
83
86
  });
84
87
 
85
88
  return /*#__PURE__*/_jsx(NotchedOutlineRoot, _extends({
@@ -89,18 +92,13 @@ export default function NotchedOutline(props) {
89
92
  }, other, {
90
93
  children: /*#__PURE__*/_jsx(NotchedOutlineLegend, {
91
94
  ownerState: ownerState,
92
- children: label ? /*#__PURE__*/_jsx("span", {
95
+ children: withLabel ? /*#__PURE__*/_jsx("span", {
93
96
  children: label
94
- }) :
95
- /*#__PURE__*/
96
- // notranslate needed while Google Translate will not fix zero-width space issue
97
- // eslint-disable-next-line react/no-danger
98
- _jsx("span", {
97
+ }) : // notranslate needed while Google Translate will not fix zero-width space issue
98
+ _span || (_span = /*#__PURE__*/_jsx("span", {
99
99
  className: "notranslate",
100
- dangerouslySetInnerHTML: {
101
- __html: '​'
102
- }
103
- })
100
+ children: "\u200B"
101
+ }))
104
102
  })
105
103
  }));
106
104
  }
@@ -137,7 +137,7 @@ var OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inProps
137
137
  renderSuffix: function renderSuffix(state) {
138
138
  return /*#__PURE__*/_jsx(NotchedOutlineRoot, {
139
139
  className: classes.notchedOutline,
140
- label: label && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/_jsxs(React.Fragment, {
140
+ label: label != null && label !== '' && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/_jsxs(React.Fragment, {
141
141
  children: [label, "\xA0", '*']
142
142
  })) : label,
143
143
  notched: typeof notched !== 'undefined' ? notched : Boolean(state.startAdornment || state.filled || state.focused)
@@ -10,15 +10,11 @@ var RadioButtonIconRoot = styled('span')({
10
10
  position: 'relative',
11
11
  display: 'flex'
12
12
  });
13
- var RadioButtonIconBackground = styled(RadioButtonUncheckedIcon, {
14
- skipSx: true
15
- })({
13
+ var RadioButtonIconBackground = styled(RadioButtonUncheckedIcon)({
16
14
  // Scale applied to prevent dot misalignment in Safari
17
15
  transform: 'scale(1)'
18
16
  });
19
- var RadioButtonIconDot = styled(RadioButtonCheckedIcon, {
20
- skipSx: true
21
- })(function (_ref) {
17
+ var RadioButtonIconDot = styled(RadioButtonCheckedIcon)(function (_ref) {
22
18
  var theme = _ref.theme,
23
19
  ownerState = _ref.ownerState;
24
20
  return _extends({
@@ -4,6 +4,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
4
4
  import _typeof from "@babel/runtime/helpers/esm/typeof";
5
5
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
6
  import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
7
+
8
+ var _span;
9
+
7
10
  import * as React from 'react';
8
11
  import { isFragment } from 'react-is';
9
12
  import PropTypes from 'prop-types';
@@ -504,16 +507,11 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
504
507
  className: clsx(classes.select, className, SelectDisplayProps.className) // The id is required for proper a11y
505
508
  ,
506
509
  id: buttonId,
507
- children: isEmpty(display) ?
508
- /*#__PURE__*/
509
- // notranslate needed while Google Translate will not fix zero-width space issue
510
- // eslint-disable-next-line react/no-danger
511
- _jsx("span", {
510
+ children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue
511
+ _span || (_span = /*#__PURE__*/_jsx("span", {
512
512
  className: "notranslate",
513
- dangerouslySetInnerHTML: {
514
- __html: '​'
515
- }
516
- }) : display
513
+ children: "\u200B"
514
+ })) : display
517
515
  })), /*#__PURE__*/_jsx(SelectNativeInput, _extends({
518
516
  value: Array.isArray(value) ? value.join(',') : value,
519
517
  name: name,
@@ -8,9 +8,7 @@ import styled from '../styles/styled';
8
8
  import capitalize from '../utils/capitalize';
9
9
  import { isHorizontal } from '../Drawer/Drawer';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
- var SwipeAreaRoot = styled('div', {
12
- skipSx: true
13
- })(function (_ref) {
11
+ var SwipeAreaRoot = styled('div')(function (_ref) {
14
12
  var theme = _ref.theme,
15
13
  ownerState = _ref.ownerState;
16
14
  return _extends({