@mui/material 5.10.12 → 5.10.13

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/Alert.d.ts +34 -3
  6. package/Alert/Alert.js +46 -9
  7. package/Alert/alertClasses.d.ts +44 -44
  8. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  9. package/AppBar/appBarClasses.d.ts +28 -28
  10. package/Autocomplete/Autocomplete.d.ts +10 -0
  11. package/Autocomplete/Autocomplete.js +27 -11
  12. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  13. package/Avatar/avatarClasses.d.ts +20 -20
  14. package/AvatarGroup/AvatarGroup.d.ts +18 -1
  15. package/AvatarGroup/AvatarGroup.js +25 -6
  16. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  17. package/Backdrop/Backdrop.d.ts +33 -3
  18. package/Backdrop/Backdrop.js +46 -11
  19. package/Backdrop/backdropClasses.d.ts +10 -10
  20. package/Badge/Badge.d.ts +11 -3
  21. package/Badge/Badge.js +11 -3
  22. package/Badge/badgeClasses.d.ts +56 -56
  23. package/BottomNavigation/BottomNavigation.js +0 -0
  24. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  25. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  26. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  27. package/Button/buttonClasses.d.ts +100 -100
  28. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  29. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  30. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  31. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  32. package/CHANGELOG.md +58 -0
  33. package/Card/cardClasses.d.ts +8 -8
  34. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  35. package/CardActions/cardActionsClasses.d.ts +10 -10
  36. package/CardContent/cardContentClasses.d.ts +8 -8
  37. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  38. package/CardMedia/cardMediaClasses.d.ts +12 -12
  39. package/Checkbox/checkboxClasses.d.ts +18 -18
  40. package/Chip/chipClasses.d.ts +96 -96
  41. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  42. package/ClickAwayListener/index.d.ts +2 -2
  43. package/Collapse/collapseClasses.d.ts +18 -18
  44. package/Container/containerClasses.d.ts +6 -6
  45. package/Dialog/DialogContext.d.ts +6 -6
  46. package/Dialog/dialogClasses.d.ts +36 -36
  47. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  48. package/DialogContent/dialogContentClasses.d.ts +10 -10
  49. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  50. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  51. package/Divider/dividerClasses.d.ts +34 -34
  52. package/Drawer/drawerClasses.d.ts +30 -30
  53. package/Fab/fabClasses.d.ts +26 -26
  54. package/FilledInput/FilledInput.js +48 -9
  55. package/FilledInput/filledInputClasses.d.ts +40 -40
  56. package/FormControl/formControlClasses.d.ts +14 -14
  57. package/FormControlLabel/FormControlLabel.d.ts +12 -0
  58. package/FormControlLabel/FormControlLabel.js +17 -5
  59. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  60. package/FormGroup/formGroupClasses.d.ts +12 -12
  61. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  62. package/FormLabel/formLabelClasses.d.ts +22 -22
  63. package/Grid/gridClasses.d.ts +48 -48
  64. package/Icon/iconClasses.d.ts +24 -24
  65. package/IconButton/iconButtonClasses.d.ts +26 -26
  66. package/ImageList/imageListClasses.d.ts +16 -16
  67. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  68. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  69. package/Input/Input.js +49 -10
  70. package/Input/inputClasses.d.ts +34 -34
  71. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  72. package/InputBase/InputBase.d.ts +34 -3
  73. package/InputBase/InputBase.js +45 -8
  74. package/InputBase/inputBaseClasses.d.ts +46 -46
  75. package/InputLabel/inputLabelClasses.d.ts +32 -32
  76. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  77. package/Link/getTextDecoration.d.ts +15 -15
  78. package/Link/linkClasses.d.ts +18 -18
  79. package/List/listClasses.d.ts +14 -14
  80. package/ListItem/ListItem.d.ts +32 -3
  81. package/ListItem/ListItem.js +41 -9
  82. package/ListItem/listItemClasses.d.ts +30 -30
  83. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  84. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  85. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  86. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  87. package/ListItemText/listItemTextClasses.d.ts +18 -18
  88. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  89. package/Menu/menuClasses.d.ts +12 -12
  90. package/MenuItem/menuItemClasses.d.ts +20 -20
  91. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  92. package/Modal/Modal.d.ts +11 -3
  93. package/Modal/Modal.js +11 -3
  94. package/NativeSelect/NativeSelectInput.js +11 -9
  95. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  96. package/OutlinedInput/OutlinedInput.js +26 -8
  97. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  98. package/OverridableComponentAugmentation.d.ts +31 -31
  99. package/Pagination/paginationClasses.d.ts +14 -14
  100. package/PaginationItem/PaginationItem.d.ts +19 -7
  101. package/PaginationItem/PaginationItem.js +31 -22
  102. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  103. package/Paper/paperClasses.d.ts +39 -39
  104. package/Popover/popoverClasses.d.ts +10 -10
  105. package/Popper/Popper.d.ts +37 -37
  106. package/README.md +1 -0
  107. package/Radio/radioClasses.d.ts +16 -16
  108. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  109. package/RadioGroup/useRadioGroup.d.ts +4 -4
  110. package/Rating/ratingClasses.d.ts +40 -40
  111. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  112. package/Select/Select.d.ts +3 -3
  113. package/Select/Select.js +3 -3
  114. package/Select/selectClasses.d.ts +30 -30
  115. package/Skeleton/skeletonClasses.d.ts +26 -26
  116. package/Slider/Slider.d.ts +14 -2
  117. package/Slider/Slider.js +12 -3
  118. package/Snackbar/snackbarClasses.d.ts +20 -20
  119. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  120. package/SpeedDial/speedDialClasses.d.ts +22 -22
  121. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  122. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  123. package/Step/StepContext.d.ts +20 -20
  124. package/Step/stepClasses.d.ts +16 -16
  125. package/StepButton/stepButtonClasses.d.ts +14 -14
  126. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  127. package/StepContent/stepContentClasses.d.ts +12 -12
  128. package/StepIcon/stepIconClasses.d.ts +16 -16
  129. package/StepLabel/StepLabel.d.ts +11 -0
  130. package/StepLabel/StepLabel.js +15 -3
  131. package/StepLabel/stepLabelClasses.d.ts +28 -28
  132. package/Stepper/StepperContext.d.ts +18 -18
  133. package/Stepper/stepperClasses.d.ts +14 -14
  134. package/SvgIcon/svgIconClasses.d.ts +26 -26
  135. package/Switch/switchClasses.d.ts +32 -32
  136. package/Tab/tabClasses.d.ts +26 -26
  137. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  138. package/Table/tableClasses.d.ts +10 -10
  139. package/TableBody/tableBodyClasses.d.ts +8 -8
  140. package/TableCell/tableCellClasses.d.ts +32 -32
  141. package/TableContainer/tableContainerClasses.d.ts +8 -8
  142. package/TableFooter/tableFooterClasses.d.ts +8 -8
  143. package/TableHead/tableHeadClasses.d.ts +8 -8
  144. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  145. package/TableRow/tableRowClasses.d.ts +16 -16
  146. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  147. package/Tabs/tabsClasses.d.ts +32 -32
  148. package/TextField/textFieldClasses.d.ts +8 -8
  149. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  150. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  151. package/Toolbar/toolbarClasses.d.ts +14 -14
  152. package/Tooltip/Tooltip.d.ts +43 -6
  153. package/Tooltip/Tooltip.js +68 -31
  154. package/Tooltip/tooltipClasses.d.ts +30 -30
  155. package/Typography/typographyClasses.d.ts +50 -50
  156. package/Unstable_Grid2/Grid2.d.ts +4 -4
  157. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  158. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  159. package/Unstable_Grid2/index.d.ts +4 -4
  160. package/className/index.d.ts +1 -1
  161. package/darkScrollbar/index.d.ts +28 -28
  162. package/esm/Alert/Alert.js +46 -9
  163. package/esm/Autocomplete/Autocomplete.js +27 -11
  164. package/esm/AvatarGroup/AvatarGroup.js +25 -6
  165. package/esm/Backdrop/Backdrop.js +46 -11
  166. package/esm/Badge/Badge.js +11 -3
  167. package/esm/BottomNavigation/BottomNavigation.js +0 -0
  168. package/esm/FilledInput/FilledInput.js +48 -9
  169. package/esm/FormControlLabel/FormControlLabel.js +17 -5
  170. package/esm/Input/Input.js +49 -10
  171. package/esm/InputBase/InputBase.js +45 -8
  172. package/esm/ListItem/ListItem.js +41 -9
  173. package/esm/Modal/Modal.js +11 -3
  174. package/esm/NativeSelect/NativeSelectInput.js +11 -9
  175. package/esm/OutlinedInput/OutlinedInput.js +26 -8
  176. package/esm/PaginationItem/PaginationItem.js +31 -22
  177. package/esm/Select/Select.js +3 -3
  178. package/esm/Slider/Slider.js +12 -3
  179. package/esm/StepLabel/StepLabel.js +15 -3
  180. package/esm/Tooltip/Tooltip.js +68 -31
  181. package/generateUtilityClass/index.d.ts +2 -2
  182. package/generateUtilityClasses/index.d.ts +1 -1
  183. package/index.js +1 -1
  184. package/internal/switchBaseClasses.d.ts +12 -12
  185. package/legacy/Alert/Alert.js +48 -9
  186. package/legacy/Autocomplete/Autocomplete.js +27 -10
  187. package/legacy/AvatarGroup/AvatarGroup.js +26 -6
  188. package/legacy/Backdrop/Backdrop.js +48 -11
  189. package/legacy/Badge/Badge.js +11 -3
  190. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  191. package/legacy/FilledInput/FilledInput.js +49 -9
  192. package/legacy/FormControlLabel/FormControlLabel.js +17 -4
  193. package/legacy/Input/Input.js +50 -10
  194. package/legacy/InputBase/InputBase.js +47 -8
  195. package/legacy/ListItem/ListItem.js +42 -8
  196. package/legacy/Modal/Modal.js +11 -3
  197. package/legacy/NativeSelect/NativeSelectInput.js +11 -9
  198. package/legacy/OutlinedInput/OutlinedInput.js +27 -8
  199. package/legacy/PaginationItem/PaginationItem.js +32 -22
  200. package/legacy/Select/Select.js +3 -3
  201. package/legacy/Slider/Slider.js +12 -3
  202. package/legacy/StepLabel/StepLabel.js +16 -3
  203. package/legacy/Tooltip/Tooltip.js +63 -22
  204. package/legacy/index.js +1 -1
  205. package/locale/index.d.ts +72 -72
  206. package/modern/Alert/Alert.js +45 -8
  207. package/modern/Autocomplete/Autocomplete.js +26 -10
  208. package/modern/AvatarGroup/AvatarGroup.js +24 -5
  209. package/modern/Backdrop/Backdrop.js +45 -10
  210. package/modern/Badge/Badge.js +11 -3
  211. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  212. package/modern/FilledInput/FilledInput.js +46 -9
  213. package/modern/FormControlLabel/FormControlLabel.js +15 -5
  214. package/modern/Input/Input.js +47 -10
  215. package/modern/InputBase/InputBase.js +43 -8
  216. package/modern/ListItem/ListItem.js +41 -9
  217. package/modern/Modal/Modal.js +11 -3
  218. package/modern/NativeSelect/NativeSelectInput.js +11 -9
  219. package/modern/OutlinedInput/OutlinedInput.js +25 -7
  220. package/modern/PaginationItem/PaginationItem.js +31 -22
  221. package/modern/Select/Select.js +3 -3
  222. package/modern/Slider/Slider.js +12 -3
  223. package/modern/StepLabel/StepLabel.js +13 -3
  224. package/modern/Tooltip/Tooltip.js +58 -17
  225. package/modern/index.js +1 -1
  226. package/package.json +4 -4
  227. package/styles/CssVarsProvider.d.ts +14 -14
  228. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  229. package/transitions/index.d.ts +1 -1
  230. package/transitions/transition.d.ts +13 -13
  231. package/transitions/utils.d.ts +23 -23
  232. package/umd/material-ui.development.js +534 -165
  233. package/umd/material-ui.production.min.js +14 -14
  234. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  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,34 +1,34 @@
1
- export interface DividerClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `absolute={true}`. */
5
- absolute: string;
6
- /** Styles applied to the root element if `variant="inset"`. */
7
- inset: string;
8
- /** Styles applied to the root element if `variant="fullWidth"`. */
9
- fullWidth: string;
10
- /** Styles applied to the root element if `light={true}`. */
11
- light: string;
12
- /** Styles applied to the root element if `variant="middle"`. */
13
- middle: string;
14
- /** Styles applied to the root element if `orientation="vertical"`. */
15
- vertical: string;
16
- /** Styles applied to the root element if `flexItem={true}`. */
17
- flexItem: string;
18
- /** Styles applied to the root element if divider have text. */
19
- withChildren: string;
20
- /** Styles applied to the root element if divider have text and `orientation="vertical"`. */
21
- withChildrenVertical: string;
22
- /** Styles applied to the root element if `textAlign="right" orientation="horizontal"`. */
23
- textAlignRight: string;
24
- /** Styles applied to the root element if `textAlign="left" orientation="horizontal"`. */
25
- textAlignLeft: string;
26
- /** Styles applied to the span children element if `orientation="horizontal"`. */
27
- wrapper: string;
28
- /** Styles applied to the span children element if `orientation="vertical"`. */
29
- wrapperVertical: string;
30
- }
31
- export declare type DividerClassKey = keyof DividerClasses;
32
- export declare function getDividerUtilityClass(slot: string): string;
33
- declare const dividerClasses: DividerClasses;
34
- export default dividerClasses;
1
+ export interface DividerClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `absolute={true}`. */
5
+ absolute: string;
6
+ /** Styles applied to the root element if `variant="inset"`. */
7
+ inset: string;
8
+ /** Styles applied to the root element if `variant="fullWidth"`. */
9
+ fullWidth: string;
10
+ /** Styles applied to the root element if `light={true}`. */
11
+ light: string;
12
+ /** Styles applied to the root element if `variant="middle"`. */
13
+ middle: string;
14
+ /** Styles applied to the root element if `orientation="vertical"`. */
15
+ vertical: string;
16
+ /** Styles applied to the root element if `flexItem={true}`. */
17
+ flexItem: string;
18
+ /** Styles applied to the root element if divider have text. */
19
+ withChildren: string;
20
+ /** Styles applied to the root element if divider have text and `orientation="vertical"`. */
21
+ withChildrenVertical: string;
22
+ /** Styles applied to the root element if `textAlign="right" orientation="horizontal"`. */
23
+ textAlignRight: string;
24
+ /** Styles applied to the root element if `textAlign="left" orientation="horizontal"`. */
25
+ textAlignLeft: string;
26
+ /** Styles applied to the span children element if `orientation="horizontal"`. */
27
+ wrapper: string;
28
+ /** Styles applied to the span children element if `orientation="vertical"`. */
29
+ wrapperVertical: string;
30
+ }
31
+ export declare type DividerClassKey = keyof DividerClasses;
32
+ export declare function getDividerUtilityClass(slot: string): string;
33
+ declare const dividerClasses: DividerClasses;
34
+ export default dividerClasses;
@@ -1,30 +1,30 @@
1
- export interface DrawerClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="permanent or persistent"`. */
5
- docked: string;
6
- /** Styles applied to the Paper component. */
7
- paper: string;
8
- /** Styles applied to the Paper component if `anchor="left"`. */
9
- paperAnchorLeft: string;
10
- /** Styles applied to the Paper component if `anchor="right"`. */
11
- paperAnchorRight: string;
12
- /** Styles applied to the Paper component if `anchor="top"`. */
13
- paperAnchorTop: string;
14
- /** Styles applied to the Paper component if `anchor="bottom"`. */
15
- paperAnchorBottom: string;
16
- /** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary". */
17
- paperAnchorDockedLeft: string;
18
- /** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary". */
19
- paperAnchorDockedTop: string;
20
- /** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary". */
21
- paperAnchorDockedRight: string;
22
- /** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary". */
23
- paperAnchorDockedBottom: string;
24
- /** Styles applied to the Modal component. */
25
- modal: string;
26
- }
27
- export declare type DrawerClassKey = keyof DrawerClasses;
28
- export declare function getDrawerUtilityClass(slot: string): string;
29
- declare const drawerClasses: DrawerClasses;
30
- export default drawerClasses;
1
+ export interface DrawerClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="permanent or persistent"`. */
5
+ docked: string;
6
+ /** Styles applied to the Paper component. */
7
+ paper: string;
8
+ /** Styles applied to the Paper component if `anchor="left"`. */
9
+ paperAnchorLeft: string;
10
+ /** Styles applied to the Paper component if `anchor="right"`. */
11
+ paperAnchorRight: string;
12
+ /** Styles applied to the Paper component if `anchor="top"`. */
13
+ paperAnchorTop: string;
14
+ /** Styles applied to the Paper component if `anchor="bottom"`. */
15
+ paperAnchorBottom: string;
16
+ /** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary". */
17
+ paperAnchorDockedLeft: string;
18
+ /** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary". */
19
+ paperAnchorDockedTop: string;
20
+ /** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary". */
21
+ paperAnchorDockedRight: string;
22
+ /** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary". */
23
+ paperAnchorDockedBottom: string;
24
+ /** Styles applied to the Modal component. */
25
+ modal: string;
26
+ }
27
+ export declare type DrawerClassKey = keyof DrawerClasses;
28
+ export declare function getDrawerUtilityClass(slot: string): string;
29
+ declare const drawerClasses: DrawerClasses;
30
+ export default drawerClasses;
@@ -1,26 +1,26 @@
1
- export interface FabClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `color="primary"`. */
5
- primary: string;
6
- /** Styles applied to the root element if `color="secondary"`. */
7
- secondary: string;
8
- /** Styles applied to the root element if `variant="extended"`. */
9
- extended: string;
10
- /** Styles applied to the root element if `variant="circular"`. */
11
- circular: string;
12
- /** State class applied to the ButtonBase root element if the button is keyboard focused. */
13
- focusVisible: string;
14
- /** State class applied to the root element if `disabled={true}`. */
15
- disabled: string;
16
- /** Styles applied to the root element if `color="inherit"`. */
17
- colorInherit: string;
18
- /** Styles applied to the root element if `size="small"``. */
19
- sizeSmall: string;
20
- /** Styles applied to the root element if `size="medium"``. */
21
- sizeMedium: string;
22
- }
23
- export declare type FabClassKey = keyof FabClasses;
24
- export declare function getFabUtilityClass(slot: string): string;
25
- declare const fabClasses: FabClasses;
26
- export default fabClasses;
1
+ export interface FabClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `color="primary"`. */
5
+ primary: string;
6
+ /** Styles applied to the root element if `color="secondary"`. */
7
+ secondary: string;
8
+ /** Styles applied to the root element if `variant="extended"`. */
9
+ extended: string;
10
+ /** Styles applied to the root element if `variant="circular"`. */
11
+ circular: string;
12
+ /** State class applied to the ButtonBase root element if the button is keyboard focused. */
13
+ focusVisible: string;
14
+ /** State class applied to the root element if `disabled={true}`. */
15
+ disabled: string;
16
+ /** Styles applied to the root element if `color="inherit"`. */
17
+ colorInherit: string;
18
+ /** Styles applied to the root element if `size="small"``. */
19
+ sizeSmall: string;
20
+ /** Styles applied to the root element if `size="medium"``. */
21
+ sizeMedium: string;
22
+ }
23
+ export declare type FabClassKey = keyof FabClasses;
24
+ export declare function getFabUtilityClass(slot: string): string;
25
+ declare const fabClasses: FabClasses;
26
+ export default fabClasses;
@@ -31,7 +31,7 @@ var _InputBase2 = require("../InputBase/InputBase");
31
31
 
32
32
  var _jsxRuntime = require("react/jsx-runtime");
33
33
 
34
- const _excluded = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "type"];
34
+ const _excluded = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"];
35
35
 
36
36
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
37
 
@@ -206,6 +206,8 @@ const FilledInputInput = (0, _styled.default)(_InputBase2.InputBaseComponent, {
206
206
  paddingBottom: 9
207
207
  }));
208
208
  const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps, ref) {
209
+ var _ref, _slots$root, _ref2, _slots$input;
210
+
209
211
  const props = (0, _useThemeProps.default)({
210
212
  props: inProps,
211
213
  name: 'MuiFilledInput'
@@ -217,6 +219,8 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
217
219
  // declare here to prevent spreading to DOM
218
220
  inputComponent = 'input',
219
221
  multiline = false,
222
+ slotProps,
223
+ slots = {},
220
224
  type = 'text'
221
225
  } = props,
222
226
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
@@ -235,12 +239,14 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
235
239
  ownerState
236
240
  }
237
241
  };
238
- const componentsProps = componentsPropsProp ? (0, _utils.deepmerge)(componentsPropsProp, filledInputComponentsProps) : filledInputComponentsProps;
242
+ const componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? (0, _utils.deepmerge)(slotProps != null ? slotProps : componentsPropsProp, filledInputComponentsProps) : filledInputComponentsProps;
243
+ const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : FilledInputRoot;
244
+ const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : FilledInputInput;
239
245
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, (0, _extends2.default)({
240
- components: (0, _extends2.default)({
241
- Root: FilledInputRoot,
242
- Input: FilledInputInput
243
- }, components),
246
+ slots: {
247
+ root: RootSlot,
248
+ input: InputSlot
249
+ },
244
250
  componentsProps: componentsProps,
245
251
  fullWidth: fullWidth,
246
252
  inputComponent: inputComponent,
@@ -287,8 +293,11 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
287
293
  .oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
288
294
 
289
295
  /**
290
- * The components used for each slot inside the InputBase.
291
- * Either a string to use a HTML element or a component.
296
+ * The components used for each slot inside.
297
+ *
298
+ * This prop is an alias for the `slots` prop.
299
+ * It's recommended to use the `slots` prop instead.
300
+ *
292
301
  * @default {}
293
302
  */
294
303
  components: _propTypes.default.shape({
@@ -297,7 +306,12 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
297
306
  }),
298
307
 
299
308
  /**
300
- * The props used for each slot inside the Input.
309
+ * The extra props for the slot components.
310
+ * You can override the existing props or add new ones.
311
+ *
312
+ * This prop is an alias for the `slotProps` prop.
313
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
314
+ *
301
315
  * @default {}
302
316
  */
303
317
  componentsProps: _propTypes.default.shape({
@@ -427,6 +441,31 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
427
441
  */
428
442
  rows: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
429
443
 
444
+ /**
445
+ * The extra props for the slot components.
446
+ * You can override the existing props or add new ones.
447
+ *
448
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
449
+ *
450
+ * @default {}
451
+ */
452
+ slotProps: _propTypes.default.shape({
453
+ input: _propTypes.default.object,
454
+ root: _propTypes.default.object
455
+ }),
456
+
457
+ /**
458
+ * The components used for each slot inside.
459
+ *
460
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
461
+ *
462
+ * @default {}
463
+ */
464
+ slots: _propTypes.default.shape({
465
+ input: _propTypes.default.elementType,
466
+ root: _propTypes.default.elementType
467
+ }),
468
+
430
469
  /**
431
470
  * Start `InputAdornment` for this component.
432
471
  */
@@ -1,40 +1,40 @@
1
- export interface FilledInputClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if color secondary. */
5
- colorSecondary: string;
6
- /** Styles applied to the root element unless `disableUnderline={true}`. */
7
- underline: string;
8
- /** State class applied to the root element if the component is focused. */
9
- focused: string;
10
- /** State class applied to the root element if `disabled={true}`. */
11
- disabled: string;
12
- /** Styles applied to the root element if `startAdornment` is provided. */
13
- adornedStart: string;
14
- /** Styles applied to the root element if `endAdornment` is provided. */
15
- adornedEnd: string;
16
- /** State class applied to the root element if `error={true}`. */
17
- error: string;
18
- /** Styles applied to the input element if `size="small"`. */
19
- sizeSmall: string;
20
- /** Styles applied to the root element if `multiline={true}`. */
21
- multiline: string;
22
- /** Styles applied to the root element if `hiddenLabel={true}`. */
23
- hiddenLabel: string;
24
- /** Styles applied to the input element. */
25
- input: string;
26
- /** Styles applied to the input element if `size="small"`. */
27
- inputSizeSmall: string;
28
- /** Styles applied to the `input` if in `<FormControl hiddenLabel />`. */
29
- inputHiddenLabel: string;
30
- /** Styles applied to the input element if `multiline={true}`. */
31
- inputMultiline: string;
32
- /** Styles applied to the input element if `startAdornment` is provided. */
33
- inputAdornedStart: string;
34
- /** Styles applied to the input element if `endAdornment` is provided. */
35
- inputAdornedEnd: string;
36
- }
37
- export declare type FilledInputClassKey = keyof FilledInputClasses;
38
- export declare function getFilledInputUtilityClass(slot: string): string;
39
- declare const filledInputClasses: FilledInputClasses;
40
- export default filledInputClasses;
1
+ export interface FilledInputClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if color secondary. */
5
+ colorSecondary: string;
6
+ /** Styles applied to the root element unless `disableUnderline={true}`. */
7
+ underline: string;
8
+ /** State class applied to the root element if the component is focused. */
9
+ focused: string;
10
+ /** State class applied to the root element if `disabled={true}`. */
11
+ disabled: string;
12
+ /** Styles applied to the root element if `startAdornment` is provided. */
13
+ adornedStart: string;
14
+ /** Styles applied to the root element if `endAdornment` is provided. */
15
+ adornedEnd: string;
16
+ /** State class applied to the root element if `error={true}`. */
17
+ error: string;
18
+ /** Styles applied to the input element if `size="small"`. */
19
+ sizeSmall: string;
20
+ /** Styles applied to the root element if `multiline={true}`. */
21
+ multiline: string;
22
+ /** Styles applied to the root element if `hiddenLabel={true}`. */
23
+ hiddenLabel: string;
24
+ /** Styles applied to the input element. */
25
+ input: string;
26
+ /** Styles applied to the input element if `size="small"`. */
27
+ inputSizeSmall: string;
28
+ /** Styles applied to the `input` if in `<FormControl hiddenLabel />`. */
29
+ inputHiddenLabel: string;
30
+ /** Styles applied to the input element if `multiline={true}`. */
31
+ inputMultiline: string;
32
+ /** Styles applied to the input element if `startAdornment` is provided. */
33
+ inputAdornedStart: string;
34
+ /** Styles applied to the input element if `endAdornment` is provided. */
35
+ inputAdornedEnd: string;
36
+ }
37
+ export declare type FilledInputClassKey = keyof FilledInputClasses;
38
+ export declare function getFilledInputUtilityClass(slot: string): string;
39
+ declare const filledInputClasses: FilledInputClasses;
40
+ export default filledInputClasses;
@@ -1,14 +1,14 @@
1
- export interface FormControlClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `margin="normal"`. */
5
- marginNormal: string;
6
- /** Styles applied to the root element if `margin="dense"`. */
7
- marginDense: string;
8
- /** Styles applied to the root element if `fullWidth={true}`. */
9
- fullWidth: string;
10
- }
11
- export declare type FormControlClassKey = keyof FormControlClasses;
12
- export declare function getFormControlUtilityClasses(slot: string): string;
13
- declare const formControlClasses: FormControlClasses;
14
- export default formControlClasses;
1
+ export interface FormControlClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `margin="normal"`. */
5
+ marginNormal: string;
6
+ /** Styles applied to the root element if `margin="dense"`. */
7
+ marginDense: string;
8
+ /** Styles applied to the root element if `fullWidth={true}`. */
9
+ fullWidth: string;
10
+ }
11
+ export declare type FormControlClassKey = keyof FormControlClasses;
12
+ export declare function getFormControlUtilityClasses(slot: string): string;
13
+ declare const formControlClasses: FormControlClasses;
14
+ export default formControlClasses;
@@ -59,6 +59,18 @@ export interface FormControlLabelProps
59
59
  * You can pull out the new checked state by accessing `event.target.checked` (boolean).
60
60
  */
61
61
  onChange?: (event: React.SyntheticEvent, checked: boolean) => void;
62
+ /**
63
+ * The props used for each slot inside.
64
+ * @default {}
65
+ */
66
+ slotProps?: {
67
+ /**
68
+ * Props applied to the Typography wrapper of the passed label.
69
+ * This is unused if disableTypography is true.
70
+ * @default {}
71
+ */
72
+ typography?: TypographyProps;
73
+ };
62
74
  /**
63
75
  * The system prop that allows defining system overrides as well as additional CSS styles.
64
76
  */
@@ -37,7 +37,7 @@ var _formControlState = _interopRequireDefault(require("../FormControl/formContr
37
37
 
38
38
  var _jsxRuntime = require("react/jsx-runtime");
39
39
 
40
- const _excluded = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "value"];
40
+ const _excluded = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "slotProps", "value"];
41
41
 
42
42
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
43
43
 
@@ -109,6 +109,8 @@ const FormControlLabelRoot = (0, _styled.default)('label', {
109
109
 
110
110
  exports.FormControlLabelRoot = FormControlLabelRoot;
111
111
  const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(inProps, ref) {
112
+ var _slotProps$typography;
113
+
112
114
  const props = (0, _useThemeProps.default)({
113
115
  props: inProps,
114
116
  name: 'MuiFormControlLabel'
@@ -120,7 +122,8 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
120
122
  disabled: disabledProp,
121
123
  disableTypography,
122
124
  label: labelProp,
123
- labelPlacement = 'end'
125
+ labelPlacement = 'end',
126
+ slotProps = {}
124
127
  } = props,
125
128
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
126
129
  const muiFormControl = (0, _FormControl.useFormControl)();
@@ -153,13 +156,14 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
153
156
  error: fcs.error
154
157
  });
155
158
  const classes = useUtilityClasses(ownerState);
159
+ const typographySlotProps = (_slotProps$typography = slotProps.typography) != null ? _slotProps$typography : componentsProps.typography;
156
160
  let label = labelProp;
157
161
 
158
162
  if (label != null && label.type !== _Typography.default && !disableTypography) {
159
163
  label = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, (0, _extends2.default)({
160
- component: "span",
161
- className: classes.label
162
- }, componentsProps.typography, {
164
+ component: "span"
165
+ }, typographySlotProps, {
166
+ className: (0, _clsx.default)(classes.label, typographySlotProps == null ? void 0 : typographySlotProps.className),
163
167
  children: label
164
168
  }));
165
169
  }
@@ -247,6 +251,14 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
247
251
  */
248
252
  onChange: _propTypes.default.func,
249
253
 
254
+ /**
255
+ * The props used for each slot inside.
256
+ * @default {}
257
+ */
258
+ slotProps: _propTypes.default.shape({
259
+ typography: _propTypes.default.object
260
+ }),
261
+
250
262
  /**
251
263
  * The system prop that allows defining system overrides as well as additional CSS styles.
252
264
  */
@@ -1,20 +1,20 @@
1
- export interface FormControlLabelClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `labelPlacement="start"`. */
5
- labelPlacementStart: string;
6
- /** Styles applied to the root element if `labelPlacement="top"`. */
7
- labelPlacementTop: string;
8
- /** Styles applied to the root element if `labelPlacement="bottom"`. */
9
- labelPlacementBottom: string;
10
- /** State class applied to the root element if `disabled={true}`. */
11
- disabled: string;
12
- /** Styles applied to the label's Typography component. */
13
- label: string;
14
- /** State class applied to the root element if `error={true}`. */
15
- error: string;
16
- }
17
- export declare type FormControlLabelClassKey = keyof FormControlLabelClasses;
18
- export declare function getFormControlLabelUtilityClasses(slot: string): string;
19
- declare const formControlLabelClasses: FormControlLabelClasses;
20
- export default formControlLabelClasses;
1
+ export interface FormControlLabelClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `labelPlacement="start"`. */
5
+ labelPlacementStart: string;
6
+ /** Styles applied to the root element if `labelPlacement="top"`. */
7
+ labelPlacementTop: string;
8
+ /** Styles applied to the root element if `labelPlacement="bottom"`. */
9
+ labelPlacementBottom: string;
10
+ /** State class applied to the root element if `disabled={true}`. */
11
+ disabled: string;
12
+ /** Styles applied to the label's Typography component. */
13
+ label: string;
14
+ /** State class applied to the root element if `error={true}`. */
15
+ error: string;
16
+ }
17
+ export declare type FormControlLabelClassKey = keyof FormControlLabelClasses;
18
+ export declare function getFormControlLabelUtilityClasses(slot: string): string;
19
+ declare const formControlLabelClasses: FormControlLabelClasses;
20
+ export default formControlLabelClasses;
@@ -1,12 +1,12 @@
1
- export interface FormGroupClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `row={true}`. */
5
- row: string;
6
- /** State class applied to the root element if `error={true}`. */
7
- error: string;
8
- }
9
- export declare type FormGroupClassKey = keyof FormGroupClasses;
10
- export declare function getFormGroupUtilityClass(slot: string): string;
11
- declare const formGroupClasses: FormGroupClasses;
12
- export default formGroupClasses;
1
+ export interface FormGroupClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `row={true}`. */
5
+ row: string;
6
+ /** State class applied to the root element if `error={true}`. */
7
+ error: string;
8
+ }
9
+ export declare type FormGroupClassKey = keyof FormGroupClasses;
10
+ export declare function getFormGroupUtilityClass(slot: string): string;
11
+ declare const formGroupClasses: FormGroupClasses;
12
+ export default formGroupClasses;
@@ -1,22 +1,22 @@
1
- export interface FormHelperTextClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if `error={true}`. */
5
- error: string;
6
- /** State class applied to the root element if `disabled={true}`. */
7
- disabled: string;
8
- /** Styles applied to the root element if `size="small"`. */
9
- sizeSmall: string;
10
- /** Styles applied to the root element if `variant="filled"` or `variant="outlined"`. */
11
- contained: string;
12
- /** State class applied to the root element if `focused={true}`. */
13
- focused: string;
14
- /** State class applied to the root element if `filled={true}`. */
15
- filled: string;
16
- /** State class applied to the root element if `required={true}`. */
17
- required: string;
18
- }
19
- export declare type FormHelperTextClassKey = keyof FormHelperTextClasses;
20
- export declare function getFormHelperTextUtilityClasses(slot: string): string;
21
- declare const formHelperTextClasses: FormHelperTextClasses;
22
- export default formHelperTextClasses;
1
+ export interface FormHelperTextClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if `error={true}`. */
5
+ error: string;
6
+ /** State class applied to the root element if `disabled={true}`. */
7
+ disabled: string;
8
+ /** Styles applied to the root element if `size="small"`. */
9
+ sizeSmall: string;
10
+ /** Styles applied to the root element if `variant="filled"` or `variant="outlined"`. */
11
+ contained: string;
12
+ /** State class applied to the root element if `focused={true}`. */
13
+ focused: string;
14
+ /** State class applied to the root element if `filled={true}`. */
15
+ filled: string;
16
+ /** State class applied to the root element if `required={true}`. */
17
+ required: string;
18
+ }
19
+ export declare type FormHelperTextClassKey = keyof FormHelperTextClasses;
20
+ export declare function getFormHelperTextUtilityClasses(slot: string): string;
21
+ declare const formHelperTextClasses: FormHelperTextClasses;
22
+ export default formHelperTextClasses;
@@ -1,22 +1,22 @@
1
- export interface FormLabelClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if the color is secondary. */
5
- colorSecondary: string;
6
- /** State class applied to the root element if `focused={true}`. */
7
- focused: string;
8
- /** State class applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** State class applied to the root element if `error={true}`. */
11
- error: string;
12
- /** State class applied to the root element if `filled={true}`. */
13
- filled: string;
14
- /** State class applied to the root element if `required={true}`. */
15
- required: string;
16
- /** Styles applied to the asterisk element. */
17
- asterisk: string;
18
- }
19
- export declare type FormLabelClassKey = keyof FormLabelClasses;
20
- export declare function getFormLabelUtilityClasses(slot: string): string;
21
- declare const formLabelClasses: FormLabelClasses;
22
- export default formLabelClasses;
1
+ export interface FormLabelClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if the color is secondary. */
5
+ colorSecondary: string;
6
+ /** State class applied to the root element if `focused={true}`. */
7
+ focused: string;
8
+ /** State class applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** State class applied to the root element if `error={true}`. */
11
+ error: string;
12
+ /** State class applied to the root element if `filled={true}`. */
13
+ filled: string;
14
+ /** State class applied to the root element if `required={true}`. */
15
+ required: string;
16
+ /** Styles applied to the asterisk element. */
17
+ asterisk: string;
18
+ }
19
+ export declare type FormLabelClassKey = keyof FormLabelClasses;
20
+ export declare function getFormLabelUtilityClasses(slot: string): string;
21
+ declare const formLabelClasses: FormLabelClasses;
22
+ export default formLabelClasses;