@mui/material 5.11.10 → 5.11.11

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 (240) 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 +3 -1
  9. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  10. package/Avatar/avatarClasses.d.ts +20 -20
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/Backdrop/backdropClasses.d.ts +10 -10
  13. package/Badge/Badge.js +1 -1
  14. package/Badge/badgeClasses.d.ts +56 -56
  15. package/BottomNavigation/BottomNavigation.js +0 -0
  16. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  17. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  18. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  19. package/Button/buttonClasses.d.ts +100 -100
  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 +89 -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 +96 -96
  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/Container.js +0 -1
  37. package/Container/containerClasses.d.ts +6 -6
  38. package/Dialog/DialogContext.d.ts +6 -6
  39. package/Dialog/dialogClasses.d.ts +36 -36
  40. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  41. package/DialogContent/dialogContentClasses.d.ts +10 -10
  42. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  43. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  44. package/Divider/dividerClasses.d.ts +34 -34
  45. package/Drawer/drawerClasses.d.ts +30 -30
  46. package/Fab/fabClasses.d.ts +26 -26
  47. package/FilledInput/filledInputClasses.d.ts +40 -40
  48. package/FormControl/FormControlContext.d.ts +17 -17
  49. package/FormControl/formControlClasses.d.ts +14 -14
  50. package/FormControl/useFormControl.d.ts +2 -2
  51. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  52. package/FormGroup/formGroupClasses.d.ts +12 -12
  53. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  54. package/FormLabel/formLabelClasses.d.ts +22 -22
  55. package/Grid/gridClasses.d.ts +48 -48
  56. package/Icon/iconClasses.d.ts +24 -24
  57. package/IconButton/iconButtonClasses.d.ts +34 -34
  58. package/ImageList/imageListClasses.d.ts +16 -16
  59. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  60. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  61. package/Input/inputClasses.d.ts +34 -34
  62. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  63. package/InputBase/InputBase.js +2 -2
  64. package/InputBase/inputBaseClasses.d.ts +46 -46
  65. package/InputLabel/InputLabel.js +3 -1
  66. package/InputLabel/inputLabelClasses.d.ts +32 -32
  67. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  68. package/Link/getTextDecoration.d.ts +15 -15
  69. package/Link/linkClasses.d.ts +18 -18
  70. package/List/listClasses.d.ts +14 -14
  71. package/ListItem/listItemClasses.d.ts +30 -30
  72. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  73. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  74. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  75. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  76. package/ListItemText/listItemTextClasses.d.ts +18 -18
  77. package/ListSubheader/ListSubheader.js +1 -0
  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/MenuList/MenuList.js +7 -0
  82. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  83. package/Modal/Modal.d.ts +9 -1
  84. package/Modal/Modal.js +14 -9
  85. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  86. package/OutlinedInput/OutlinedInput.js +1 -1
  87. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  88. package/Pagination/paginationClasses.d.ts +14 -14
  89. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  90. package/Paper/paperClasses.d.ts +39 -39
  91. package/Popover/popoverClasses.d.ts +10 -10
  92. package/Popper/Popper.d.ts +55 -55
  93. package/README.md +0 -2
  94. package/Radio/radioClasses.d.ts +16 -16
  95. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  96. package/RadioGroup/useRadioGroup.d.ts +4 -4
  97. package/Rating/Rating.js +2 -2
  98. package/Rating/ratingClasses.d.ts +40 -40
  99. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  100. package/Select/SelectInput.js +2 -22
  101. package/Select/selectClasses.d.ts +30 -30
  102. package/Skeleton/skeletonClasses.d.ts +26 -26
  103. package/Slider/Slider.d.ts +5 -1
  104. package/Slider/Slider.js +16 -11
  105. package/Slider/SliderValueLabel.d.ts +15 -15
  106. package/Slider/SliderValueLabel.types.d.ts +24 -24
  107. package/Slider/sliderClasses.d.ts +58 -58
  108. package/Snackbar/Snackbar.js +21 -125
  109. package/Snackbar/snackbarClasses.d.ts +20 -20
  110. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  111. package/SpeedDial/speedDialClasses.d.ts +22 -22
  112. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  113. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  114. package/Stack/Stack.d.ts +0 -1
  115. package/Stack/Stack.js +9 -120
  116. package/Stack/index.d.ts +3 -0
  117. package/Stack/index.js +2 -1
  118. package/Stack/stackClasses.d.ts +6 -0
  119. package/Stack/stackClasses.js +7 -0
  120. package/Step/StepContext.d.ts +20 -20
  121. package/Step/stepClasses.d.ts +16 -16
  122. package/StepButton/stepButtonClasses.d.ts +14 -14
  123. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  124. package/StepContent/stepContentClasses.d.ts +12 -12
  125. package/StepIcon/stepIconClasses.d.ts +16 -16
  126. package/StepLabel/stepLabelClasses.d.ts +28 -28
  127. package/Stepper/StepperContext.d.ts +18 -18
  128. package/Stepper/stepperClasses.d.ts +14 -14
  129. package/SvgIcon/svgIconClasses.d.ts +26 -26
  130. package/Switch/switchClasses.d.ts +32 -32
  131. package/Tab/tabClasses.d.ts +26 -26
  132. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  133. package/Table/tableClasses.d.ts +10 -10
  134. package/TableBody/tableBodyClasses.d.ts +8 -8
  135. package/TableCell/tableCellClasses.d.ts +32 -32
  136. package/TableContainer/tableContainerClasses.d.ts +8 -8
  137. package/TableFooter/tableFooterClasses.d.ts +8 -8
  138. package/TableHead/tableHeadClasses.d.ts +8 -8
  139. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  140. package/TableRow/tableRowClasses.d.ts +16 -16
  141. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  142. package/Tabs/tabsClasses.d.ts +32 -32
  143. package/TextField/textFieldClasses.d.ts +8 -8
  144. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  145. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  146. package/Toolbar/toolbarClasses.d.ts +14 -14
  147. package/Tooltip/tooltipClasses.d.ts +30 -30
  148. package/Typography/typographyClasses.d.ts +50 -50
  149. package/Unstable_Grid2/Grid2.d.ts +4 -4
  150. package/Unstable_Grid2/Grid2.js +2 -3
  151. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  152. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  153. package/Unstable_Grid2/index.d.ts +4 -4
  154. package/className/index.d.ts +1 -1
  155. package/darkScrollbar/index.d.ts +28 -28
  156. package/generateUtilityClass/index.d.ts +2 -2
  157. package/generateUtilityClasses/index.d.ts +1 -1
  158. package/index.js +1 -1
  159. package/internal/switchBaseClasses.d.ts +12 -12
  160. package/legacy/Badge/Badge.js +1 -1
  161. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  162. package/legacy/Container/Container.js +0 -1
  163. package/legacy/InputBase/InputBase.js +2 -2
  164. package/legacy/InputLabel/InputLabel.js +3 -1
  165. package/legacy/ListSubheader/ListSubheader.js +1 -0
  166. package/legacy/MenuList/MenuList.js +7 -0
  167. package/legacy/Modal/Modal.js +14 -9
  168. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  169. package/legacy/Rating/Rating.js +2 -2
  170. package/legacy/Select/SelectInput.js +2 -22
  171. package/legacy/Slider/Slider.js +16 -12
  172. package/legacy/Snackbar/Snackbar.js +20 -119
  173. package/legacy/Stack/Stack.js +13 -122
  174. package/legacy/Stack/index.js +2 -1
  175. package/legacy/Stack/stackClasses.js +7 -0
  176. package/legacy/Unstable_Grid2/Grid2.js +2 -3
  177. package/legacy/index.js +1 -1
  178. package/legacy/styles/createTheme.js +1 -0
  179. package/legacy/useAutocomplete/useAutocomplete.js +2 -2
  180. package/locale/index.d.ts +75 -75
  181. package/modern/Badge/Badge.js +1 -1
  182. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  183. package/modern/Container/Container.js +0 -1
  184. package/modern/InputBase/InputBase.js +2 -2
  185. package/modern/InputLabel/InputLabel.js +3 -1
  186. package/modern/ListSubheader/ListSubheader.js +1 -0
  187. package/modern/MenuList/MenuList.js +7 -0
  188. package/modern/Modal/Modal.js +14 -9
  189. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  190. package/modern/Rating/Rating.js +2 -2
  191. package/modern/Select/SelectInput.js +2 -18
  192. package/modern/Slider/Slider.js +16 -11
  193. package/modern/Snackbar/Snackbar.js +21 -125
  194. package/modern/Stack/Stack.js +9 -120
  195. package/modern/Stack/index.js +2 -1
  196. package/modern/Stack/stackClasses.js +7 -0
  197. package/modern/Unstable_Grid2/Grid2.js +2 -3
  198. package/modern/index.js +1 -1
  199. package/modern/styles/createTheme.js +1 -0
  200. package/modern/useAutocomplete/useAutocomplete.js +2 -2
  201. package/node/Badge/Badge.js +2 -2
  202. package/node/BottomNavigation/BottomNavigation.js +0 -0
  203. package/node/Container/Container.js +0 -2
  204. package/node/InputBase/InputBase.js +2 -2
  205. package/node/InputLabel/InputLabel.js +3 -1
  206. package/node/ListSubheader/ListSubheader.js +1 -0
  207. package/node/MenuList/MenuList.js +7 -0
  208. package/node/Modal/Modal.js +14 -9
  209. package/node/OutlinedInput/OutlinedInput.js +1 -1
  210. package/node/Rating/Rating.js +2 -2
  211. package/node/Select/SelectInput.js +2 -22
  212. package/node/Slider/Slider.js +19 -14
  213. package/node/Snackbar/Snackbar.js +20 -124
  214. package/node/Stack/Stack.js +9 -122
  215. package/node/Stack/index.js +8 -1
  216. package/node/Stack/stackClasses.js +16 -0
  217. package/node/Unstable_Grid2/Grid2.js +0 -1
  218. package/node/index.js +1 -1
  219. package/node/styles/createTheme.js +1 -0
  220. package/node/useAutocomplete/useAutocomplete.js +8 -6
  221. package/package.json +6 -6
  222. package/styles/CssVarsProvider.d.ts +16 -16
  223. package/styles/createTheme.js +1 -0
  224. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  225. package/styles/getOverlayAlpha.d.ts +2 -2
  226. package/transitions/index.d.ts +1 -1
  227. package/transitions/transition.d.ts +13 -13
  228. package/transitions/utils.d.ts +23 -23
  229. package/types/OverridableComponentAugmentation.d.ts +31 -31
  230. package/umd/material-ui.development.js +4132 -4060
  231. package/umd/material-ui.production.min.js +21 -21
  232. package/useAutocomplete/useAutocomplete.d.ts +2 -2
  233. package/useAutocomplete/useAutocomplete.js +2 -2
  234. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  235. package/useTouchRipple/index.d.ts +1 -1
  236. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  237. package/utils/getScrollbarSize.d.ts +2 -2
  238. package/utils/ownerDocument.d.ts +2 -2
  239. package/utils/ownerWindow.d.ts +2 -2
  240. package/utils/setRef.d.ts +2 -2
@@ -1,24 +1,24 @@
1
- export interface IconClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `color="primary"`. */
5
- colorPrimary: string;
6
- /** Styles applied to the root element if `color="secondary"`. */
7
- colorSecondary: string;
8
- /** Styles applied to the root element if `color="action"`. */
9
- colorAction: string;
10
- /** Styles applied to the root element if `color="error"`. */
11
- colorError: string;
12
- /** Styles applied to the root element if `color="disabled"`. */
13
- colorDisabled: string;
14
- /** Styles applied to the root element if `fontSize="inherit"`. */
15
- fontSizeInherit: string;
16
- /** Styles applied to the root element if `fontSize="small"`. */
17
- fontSizeSmall: string;
18
- /** Styles applied to the root element if `fontSize="large"`. */
19
- fontSizeLarge: string;
20
- }
21
- export type IconClassKey = keyof IconClasses;
22
- export declare function getIconUtilityClass(slot: string): string;
23
- declare const iconClasses: IconClasses;
24
- export default iconClasses;
1
+ export interface IconClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `color="primary"`. */
5
+ colorPrimary: string;
6
+ /** Styles applied to the root element if `color="secondary"`. */
7
+ colorSecondary: string;
8
+ /** Styles applied to the root element if `color="action"`. */
9
+ colorAction: string;
10
+ /** Styles applied to the root element if `color="error"`. */
11
+ colorError: string;
12
+ /** Styles applied to the root element if `color="disabled"`. */
13
+ colorDisabled: string;
14
+ /** Styles applied to the root element if `fontSize="inherit"`. */
15
+ fontSizeInherit: string;
16
+ /** Styles applied to the root element if `fontSize="small"`. */
17
+ fontSizeSmall: string;
18
+ /** Styles applied to the root element if `fontSize="large"`. */
19
+ fontSizeLarge: string;
20
+ }
21
+ export type IconClassKey = keyof IconClasses;
22
+ export declare function getIconUtilityClass(slot: string): string;
23
+ declare const iconClasses: IconClasses;
24
+ export default iconClasses;
@@ -1,34 +1,34 @@
1
- export interface IconButtonClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `edge="start"`. */
5
- edgeStart: string;
6
- /** Styles applied to the root element if `edge="end"`. */
7
- edgeEnd: string;
8
- /** Styles applied to the root element if `color="inherit"`. */
9
- colorInherit: string;
10
- /** Styles applied to the root element if `color="primary"`. */
11
- colorPrimary: string;
12
- /** Styles applied to the root element if `color="secondary"`. */
13
- colorSecondary: string;
14
- /** Styles applied to the root element if `color="error"`. */
15
- colorError: string;
16
- /** Styles applied to the root element if `color="info"`. */
17
- colorInfo: string;
18
- /** Styles applied to the root element if `color="success"`. */
19
- colorSuccess: string;
20
- /** Styles applied to the root element if `color="warning"`. */
21
- colorWarning: string;
22
- /** State class applied to the root element if `disabled={true}`. */
23
- disabled: string;
24
- /** Styles applied to the root element if `size="small"`. */
25
- sizeSmall: string;
26
- /** Styles applied to the root element if `size="medium"`. */
27
- sizeMedium: string;
28
- /** Styles applied to the root element if `size="large"`. */
29
- sizeLarge: string;
30
- }
31
- export type IconButtonClassKey = keyof IconButtonClasses;
32
- export declare function getIconButtonUtilityClass(slot: string): string;
33
- declare const iconButtonClasses: IconButtonClasses;
34
- export default iconButtonClasses;
1
+ export interface IconButtonClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `edge="start"`. */
5
+ edgeStart: string;
6
+ /** Styles applied to the root element if `edge="end"`. */
7
+ edgeEnd: string;
8
+ /** Styles applied to the root element if `color="inherit"`. */
9
+ colorInherit: string;
10
+ /** Styles applied to the root element if `color="primary"`. */
11
+ colorPrimary: string;
12
+ /** Styles applied to the root element if `color="secondary"`. */
13
+ colorSecondary: string;
14
+ /** Styles applied to the root element if `color="error"`. */
15
+ colorError: string;
16
+ /** Styles applied to the root element if `color="info"`. */
17
+ colorInfo: string;
18
+ /** Styles applied to the root element if `color="success"`. */
19
+ colorSuccess: string;
20
+ /** Styles applied to the root element if `color="warning"`. */
21
+ colorWarning: string;
22
+ /** State class applied to the root element if `disabled={true}`. */
23
+ disabled: string;
24
+ /** Styles applied to the root element if `size="small"`. */
25
+ sizeSmall: string;
26
+ /** Styles applied to the root element if `size="medium"`. */
27
+ sizeMedium: string;
28
+ /** Styles applied to the root element if `size="large"`. */
29
+ sizeLarge: string;
30
+ }
31
+ export type IconButtonClassKey = keyof IconButtonClasses;
32
+ export declare function getIconButtonUtilityClass(slot: string): string;
33
+ declare const iconButtonClasses: IconButtonClasses;
34
+ export default iconButtonClasses;
@@ -1,16 +1,16 @@
1
- export interface ImageListClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="masonry"`. */
5
- masonry: string;
6
- /** Styles applied to the root element if `variant="quilted"`. */
7
- quilted: string;
8
- /** Styles applied to the root element if `variant="standard"`. */
9
- standard: string;
10
- /** Styles applied to the root element if `variant="woven"`. */
11
- woven: string;
12
- }
13
- export type ImageListClassKey = keyof ImageListClasses;
14
- export declare function getImageListUtilityClass(slot: string): string;
15
- declare const imageListClasses: ImageListClasses;
16
- export default imageListClasses;
1
+ export interface ImageListClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="masonry"`. */
5
+ masonry: string;
6
+ /** Styles applied to the root element if `variant="quilted"`. */
7
+ quilted: string;
8
+ /** Styles applied to the root element if `variant="standard"`. */
9
+ standard: string;
10
+ /** Styles applied to the root element if `variant="woven"`. */
11
+ woven: string;
12
+ }
13
+ export type ImageListClassKey = keyof ImageListClasses;
14
+ export declare function getImageListUtilityClass(slot: string): string;
15
+ declare const imageListClasses: ImageListClasses;
16
+ export default imageListClasses;
@@ -1,18 +1,18 @@
1
- export interface ImageListItemClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to an `img` element to ensure it covers the item. */
5
- img: string;
6
- /** Styles applied to the root element if `variant="standard"`. */
7
- standard: string;
8
- /** Styles applied to the root element if `variant="woven"`. */
9
- woven: string;
10
- /** Styles applied to the root element if `variant="masonry"`. */
11
- masonry: string;
12
- /** Styles applied to the root element if `variant="quilted"`. */
13
- quilted: string;
14
- }
15
- export type ImageListItemClassKey = keyof ImageListItemClasses;
16
- export declare function getImageListItemUtilityClass(slot: string): string;
17
- declare const imageListItemClasses: ImageListItemClasses;
18
- export default imageListItemClasses;
1
+ export interface ImageListItemClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to an `img` element to ensure it covers the item. */
5
+ img: string;
6
+ /** Styles applied to the root element if `variant="standard"`. */
7
+ standard: string;
8
+ /** Styles applied to the root element if `variant="woven"`. */
9
+ woven: string;
10
+ /** Styles applied to the root element if `variant="masonry"`. */
11
+ masonry: string;
12
+ /** Styles applied to the root element if `variant="quilted"`. */
13
+ quilted: string;
14
+ }
15
+ export type ImageListItemClassKey = keyof ImageListItemClasses;
16
+ export declare function getImageListItemUtilityClass(slot: string): string;
17
+ declare const imageListItemClasses: ImageListItemClasses;
18
+ export default imageListItemClasses;
@@ -1,30 +1,30 @@
1
- export interface ImageListItemBarClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `position="bottom"`. */
5
- positionBottom: string;
6
- /** Styles applied to the root element if `position="top"`. */
7
- positionTop: string;
8
- /** Styles applied to the root element if `position="below"`. */
9
- positionBelow: string;
10
- /** Styles applied to the title and subtitle container element. */
11
- titleWrap: string;
12
- /** Styles applied to the title and subtitle container element if `position="below"`. */
13
- titleWrapBelow: string;
14
- /** Styles applied to the container element if `actionPosition="left"`. */
15
- titleWrapActionPosLeft: string;
16
- /** Styles applied to the container element if `actionPosition="right"`. */
17
- titleWrapActionPosRight: string;
18
- /** Styles applied to the title container element. */
19
- title: string;
20
- /** Styles applied to the subtitle container element. */
21
- subtitle: string;
22
- /** Styles applied to the actionIcon if supplied. */
23
- actionIcon: string;
24
- /** Styles applied to the actionIcon if `actionPosition="left"`. */
25
- actionIconActionPosLeft: string;
26
- }
27
- export type ImageListItemBarClassKey = keyof ImageListItemBarClasses;
28
- export declare function getImageListItemBarUtilityClass(slot: string): string;
29
- declare const imageListItemBarClasses: ImageListItemBarClasses;
30
- export default imageListItemBarClasses;
1
+ export interface ImageListItemBarClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `position="bottom"`. */
5
+ positionBottom: string;
6
+ /** Styles applied to the root element if `position="top"`. */
7
+ positionTop: string;
8
+ /** Styles applied to the root element if `position="below"`. */
9
+ positionBelow: string;
10
+ /** Styles applied to the title and subtitle container element. */
11
+ titleWrap: string;
12
+ /** Styles applied to the title and subtitle container element if `position="below"`. */
13
+ titleWrapBelow: string;
14
+ /** Styles applied to the container element if `actionPosition="left"`. */
15
+ titleWrapActionPosLeft: string;
16
+ /** Styles applied to the container element if `actionPosition="right"`. */
17
+ titleWrapActionPosRight: string;
18
+ /** Styles applied to the title container element. */
19
+ title: string;
20
+ /** Styles applied to the subtitle container element. */
21
+ subtitle: string;
22
+ /** Styles applied to the actionIcon if supplied. */
23
+ actionIcon: string;
24
+ /** Styles applied to the actionIcon if `actionPosition="left"`. */
25
+ actionIconActionPosLeft: string;
26
+ }
27
+ export type ImageListItemBarClassKey = keyof ImageListItemBarClasses;
28
+ export declare function getImageListItemBarUtilityClass(slot: string): string;
29
+ declare const imageListItemBarClasses: ImageListItemBarClasses;
30
+ export default imageListItemBarClasses;
@@ -1,34 +1,34 @@
1
- export interface InputClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5
- formControl: string;
6
- /** Styles applied to the root element if the component is focused. */
7
- focused: string;
8
- /** Styles applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** Styles applied to the root element if color secondary. */
11
- colorSecondary: string;
12
- /** Styles applied to the root element unless `disableUnderline={true}`. */
13
- underline: string;
14
- /** State class applied to the root element if `error={true}`. */
15
- error: string;
16
- /** Styles applied to the input element if `size="small"`. */
17
- sizeSmall: string;
18
- /** Styles applied to the root element if `multiline={true}`. */
19
- multiline: string;
20
- /** Styles applied to the root element if `fullWidth={true}`. */
21
- fullWidth: string;
22
- /** Styles applied to the input element. */
23
- input: string;
24
- /** Styles applied to the input element if `size="small"`. */
25
- inputSizeSmall: string;
26
- /** Styles applied to the input element if `multiline={true}`. */
27
- inputMultiline: string;
28
- /** Styles applied to the input element if `type="search"`. */
29
- inputTypeSearch: string;
30
- }
31
- export type InputClassKey = keyof InputClasses;
32
- export declare function getInputUtilityClass(slot: string): string;
33
- declare const inputClasses: InputClasses;
34
- export default inputClasses;
1
+ export interface InputClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5
+ formControl: string;
6
+ /** Styles applied to the root element if the component is focused. */
7
+ focused: string;
8
+ /** Styles applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** Styles applied to the root element if color secondary. */
11
+ colorSecondary: string;
12
+ /** Styles applied to the root element unless `disableUnderline={true}`. */
13
+ underline: string;
14
+ /** State class applied to the root element if `error={true}`. */
15
+ error: string;
16
+ /** Styles applied to the input element if `size="small"`. */
17
+ sizeSmall: string;
18
+ /** Styles applied to the root element if `multiline={true}`. */
19
+ multiline: string;
20
+ /** Styles applied to the root element if `fullWidth={true}`. */
21
+ fullWidth: string;
22
+ /** Styles applied to the input element. */
23
+ input: string;
24
+ /** Styles applied to the input element if `size="small"`. */
25
+ inputSizeSmall: string;
26
+ /** Styles applied to the input element if `multiline={true}`. */
27
+ inputMultiline: string;
28
+ /** Styles applied to the input element if `type="search"`. */
29
+ inputTypeSearch: string;
30
+ }
31
+ export type InputClassKey = keyof InputClasses;
32
+ export declare function getInputUtilityClass(slot: string): string;
33
+ declare const inputClasses: InputClasses;
34
+ export default inputClasses;
@@ -1,24 +1,24 @@
1
- export interface InputAdornmentClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="filled"`. */
5
- filled: string;
6
- /** Styles applied to the root element if `variant="outlined"`. */
7
- outlined: string;
8
- /** Styles applied to the root element if `variant="standard"`. */
9
- standard: string;
10
- /** Styles applied to the root element if `position="start"`. */
11
- positionStart: string;
12
- /** Styles applied to the root element if `position="end"`. */
13
- positionEnd: string;
14
- /** Styles applied to the root element if `disablePointerEvents={true}`. */
15
- disablePointerEvents: string;
16
- /** Styles applied if the adornment is used inside <FormControl hiddenLabel />. */
17
- hiddenLabel: string;
18
- /** Styles applied if the adornment is used inside <FormControl size="small" />. */
19
- sizeSmall: string;
20
- }
21
- export type InputAdornmentClassKey = keyof InputAdornmentClasses;
22
- export declare function getInputAdornmentUtilityClass(slot: string): string;
23
- declare const inputAdornmentClasses: InputAdornmentClasses;
24
- export default inputAdornmentClasses;
1
+ export interface InputAdornmentClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="filled"`. */
5
+ filled: string;
6
+ /** Styles applied to the root element if `variant="outlined"`. */
7
+ outlined: string;
8
+ /** Styles applied to the root element if `variant="standard"`. */
9
+ standard: string;
10
+ /** Styles applied to the root element if `position="start"`. */
11
+ positionStart: string;
12
+ /** Styles applied to the root element if `position="end"`. */
13
+ positionEnd: string;
14
+ /** Styles applied to the root element if `disablePointerEvents={true}`. */
15
+ disablePointerEvents: string;
16
+ /** Styles applied if the adornment is used inside <FormControl hiddenLabel />. */
17
+ hiddenLabel: string;
18
+ /** Styles applied if the adornment is used inside <FormControl size="small" />. */
19
+ sizeSmall: string;
20
+ }
21
+ export type InputAdornmentClassKey = keyof InputAdornmentClasses;
22
+ export declare function getInputAdornmentUtilityClass(slot: string): string;
23
+ declare const inputAdornmentClasses: InputAdornmentClasses;
24
+ export default inputAdornmentClasses;
@@ -436,7 +436,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
436
436
  ref: ref,
437
437
  onClick: handleClick
438
438
  }, other, {
439
- className: clsx(classes.root, rootProps.className, className),
439
+ className: clsx(classes.root, rootProps.className, className, readOnly && 'MuiInputBase-readOnly'),
440
440
  children: [startAdornment, /*#__PURE__*/_jsx(FormControlContext.Provider, {
441
441
  value: null,
442
442
  children: /*#__PURE__*/_jsx(Input, _extends({
@@ -463,7 +463,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
463
463
  ownerState: _extends({}, ownerState, inputProps.ownerState)
464
464
  }, {
465
465
  ref: handleInputRef,
466
- className: clsx(classes.input, inputProps.className),
466
+ className: clsx(classes.input, inputProps.className, readOnly && 'MuiInputBase-readOnly'),
467
467
  onBlur: handleBlur,
468
468
  onChange: handleChange,
469
469
  onFocus: handleFocus
@@ -1,46 +1,46 @@
1
- export interface InputBaseClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5
- formControl: string;
6
- /** Styles applied to the root element if the component is focused. */
7
- focused: string;
8
- /** Styles applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** Styles applied to the root element if `startAdornment` is provided. */
11
- adornedStart: string;
12
- /** Styles applied to the root element if `endAdornment` is provided. */
13
- adornedEnd: string;
14
- /** State class applied to the root element if `error={true}`. */
15
- error: string;
16
- /** Styles applied to the input element if `size="small"`. */
17
- sizeSmall: string;
18
- /** Styles applied to the root element if `multiline={true}`. */
19
- multiline: string;
20
- /** Styles applied to the root element if the color is secondary. */
21
- colorSecondary: string;
22
- /** Styles applied to the root element if `fullWidth={true}`. */
23
- fullWidth: string;
24
- /** Styles applied to the root element if `hiddenLabel={true}`. */
25
- hiddenLabel: string;
26
- /** State class applied to the root element if `readOnly={true}`. */
27
- readOnly: string;
28
- /** Styles applied to the input element. */
29
- input: string;
30
- /** Styles applied to the input element if `size="small"`. */
31
- inputSizeSmall: string;
32
- /** Styles applied to the input element if `multiline={true}`. */
33
- inputMultiline: string;
34
- /** Styles applied to the input element if `type="search"`. */
35
- inputTypeSearch: string;
36
- /** Styles applied to the input element if `startAdornment` is provided. */
37
- inputAdornedStart: string;
38
- /** Styles applied to the input element if `endAdornment` is provided. */
39
- inputAdornedEnd: string;
40
- /** Styles applied to the input element if `hiddenLabel={true}`. */
41
- inputHiddenLabel: string;
42
- }
43
- export type InputBaseClassKey = keyof InputBaseClasses;
44
- export declare function getInputBaseUtilityClass(slot: string): string;
45
- declare const inputBaseClasses: InputBaseClasses;
46
- export default inputBaseClasses;
1
+ export interface InputBaseClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5
+ formControl: string;
6
+ /** Styles applied to the root element if the component is focused. */
7
+ focused: string;
8
+ /** Styles applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** Styles applied to the root element if `startAdornment` is provided. */
11
+ adornedStart: string;
12
+ /** Styles applied to the root element if `endAdornment` is provided. */
13
+ adornedEnd: string;
14
+ /** State class applied to the root element if `error={true}`. */
15
+ error: string;
16
+ /** Styles applied to the input element if `size="small"`. */
17
+ sizeSmall: string;
18
+ /** Styles applied to the root element if `multiline={true}`. */
19
+ multiline: string;
20
+ /** Styles applied to the root element if the color is secondary. */
21
+ colorSecondary: string;
22
+ /** Styles applied to the root element if `fullWidth={true}`. */
23
+ fullWidth: string;
24
+ /** Styles applied to the root element if `hiddenLabel={true}`. */
25
+ hiddenLabel: string;
26
+ /** State class applied to the root element if `readOnly={true}`. */
27
+ readOnly: string;
28
+ /** Styles applied to the input element. */
29
+ input: string;
30
+ /** Styles applied to the input element if `size="small"`. */
31
+ inputSizeSmall: string;
32
+ /** Styles applied to the input element if `multiline={true}`. */
33
+ inputMultiline: string;
34
+ /** Styles applied to the input element if `type="search"`. */
35
+ inputTypeSearch: string;
36
+ /** Styles applied to the input element if `startAdornment` is provided. */
37
+ inputAdornedStart: string;
38
+ /** Styles applied to the input element if `endAdornment` is provided. */
39
+ inputAdornedEnd: string;
40
+ /** Styles applied to the input element if `hiddenLabel={true}`. */
41
+ inputHiddenLabel: string;
42
+ }
43
+ export type InputBaseClassKey = keyof InputBaseClasses;
44
+ export declare function getInputBaseUtilityClass(slot: string): string;
45
+ declare const inputBaseClasses: InputBaseClasses;
46
+ export default inputBaseClasses;
@@ -98,7 +98,9 @@ const InputLabelRoot = styled(FormLabel, {
98
98
  }, ownerState.shrink && {
99
99
  userSelect: 'none',
100
100
  pointerEvents: 'auto',
101
- maxWidth: 'calc(133% - 24px)',
101
+ // Theoretically, we should have (8+5)*2/0.75 = 34px
102
+ // but it feels a better when it bleeds a bit on the left, so 32px.
103
+ maxWidth: 'calc(133% - 32px)',
102
104
  transform: 'translate(14px, -9px) scale(0.75)'
103
105
  })));
104
106
  const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref) {
@@ -1,32 +1,32 @@
1
- export interface InputLabelClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if `focused={true}`. */
5
- focused: string;
6
- /** State class applied to the root element if `disabled={true}`. */
7
- disabled: string;
8
- /** State class applied to the root element if `error={true}`. */
9
- error: string;
10
- /** State class applied to the root element if `required={true}`. */
11
- required: string;
12
- /** State class applied to the asterisk element. */
13
- asterisk: string;
14
- /** Styles applied to the root element if the component is a descendant of `FormControl`. */
15
- formControl: string;
16
- /** Styles applied to the root element if `size="small"`. */
17
- sizeSmall: string;
18
- /** Styles applied to the input element if `shrink={true}`. */
19
- shrink: string;
20
- /** Styles applied to the input element unless `disableAnimation={true}`. */
21
- animated: string;
22
- /** Styles applied to the root element if `variant="filled"`. */
23
- filled: string;
24
- /** Styles applied to the root element if `variant="outlined"`. */
25
- outlined: string;
26
- /** Styles applied to the root element if `variant="standard"`. */
27
- standard: string;
28
- }
29
- export type InputLabelClassKey = keyof InputLabelClasses;
30
- export declare function getInputLabelUtilityClasses(slot: string): string;
31
- declare const inputLabelClasses: InputLabelClasses;
32
- export default inputLabelClasses;
1
+ export interface InputLabelClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if `focused={true}`. */
5
+ focused: string;
6
+ /** State class applied to the root element if `disabled={true}`. */
7
+ disabled: string;
8
+ /** State class applied to the root element if `error={true}`. */
9
+ error: string;
10
+ /** State class applied to the root element if `required={true}`. */
11
+ required: string;
12
+ /** State class applied to the asterisk element. */
13
+ asterisk: string;
14
+ /** Styles applied to the root element if the component is a descendant of `FormControl`. */
15
+ formControl: string;
16
+ /** Styles applied to the root element if `size="small"`. */
17
+ sizeSmall: string;
18
+ /** Styles applied to the input element if `shrink={true}`. */
19
+ shrink: string;
20
+ /** Styles applied to the input element unless `disableAnimation={true}`. */
21
+ animated: string;
22
+ /** Styles applied to the root element if `variant="filled"`. */
23
+ filled: string;
24
+ /** Styles applied to the root element if `variant="outlined"`. */
25
+ outlined: string;
26
+ /** Styles applied to the root element if `variant="standard"`. */
27
+ standard: string;
28
+ }
29
+ export type InputLabelClassKey = keyof InputLabelClasses;
30
+ export declare function getInputLabelUtilityClasses(slot: string): string;
31
+ declare const inputLabelClasses: InputLabelClasses;
32
+ export default inputLabelClasses;