@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,18 +1,18 @@
1
- export interface AccordionClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element unless `square={true}`. */
5
- rounded: string;
6
- /** State class applied to the root element if `expanded={true}`. */
7
- expanded: string;
8
- /** State class applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** Styles applied to the root element unless `disableGutters={true}`. */
11
- gutters: string;
12
- /** Styles applied to the region element, the container of the children. */
13
- region: string;
14
- }
15
- export declare type AccordionClassKey = keyof AccordionClasses;
16
- export declare function getAccordionUtilityClass(slot: string): string;
17
- declare const accordionClasses: AccordionClasses;
18
- export default accordionClasses;
1
+ export interface AccordionClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element unless `square={true}`. */
5
+ rounded: string;
6
+ /** State class applied to the root element if `expanded={true}`. */
7
+ expanded: string;
8
+ /** State class applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** Styles applied to the root element unless `disableGutters={true}`. */
11
+ gutters: string;
12
+ /** Styles applied to the region element, the container of the children. */
13
+ region: string;
14
+ }
15
+ export declare type AccordionClassKey = keyof AccordionClasses;
16
+ export declare function getAccordionUtilityClass(slot: string): string;
17
+ declare const accordionClasses: AccordionClasses;
18
+ export default accordionClasses;
@@ -1,10 +1,10 @@
1
- export interface AccordionActionsClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element unless `disableSpacing={true}`. */
5
- spacing: string;
6
- }
7
- export declare type AccordionActionsClassKey = keyof AccordionActionsClasses;
8
- export declare function getAccordionActionsUtilityClass(slot: string): string;
9
- declare const accordionActionsClasses: AccordionActionsClasses;
10
- export default accordionActionsClasses;
1
+ export interface AccordionActionsClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element unless `disableSpacing={true}`. */
5
+ spacing: string;
6
+ }
7
+ export declare type AccordionActionsClassKey = keyof AccordionActionsClasses;
8
+ export declare function getAccordionActionsUtilityClass(slot: string): string;
9
+ declare const accordionActionsClasses: AccordionActionsClasses;
10
+ export default accordionActionsClasses;
@@ -1,8 +1,8 @@
1
- export interface AccordionDetailsClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type AccordionDetailsClassKey = keyof AccordionDetailsClasses;
6
- export declare function getAccordionDetailsUtilityClass(slot: string): string;
7
- declare const accordionDetailsClasses: AccordionDetailsClasses;
8
- export default accordionDetailsClasses;
1
+ export interface AccordionDetailsClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type AccordionDetailsClassKey = keyof AccordionDetailsClasses;
6
+ export declare function getAccordionDetailsUtilityClass(slot: string): string;
7
+ declare const accordionDetailsClasses: AccordionDetailsClasses;
8
+ export default accordionDetailsClasses;
@@ -1,22 +1,22 @@
1
- export interface AccordionSummaryClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */
5
- expanded: string;
6
- /** State class applied to the ButtonBase root element if the button is keyboard focused. */
7
- focusVisible: string;
8
- /** State class applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** Styles applied to the root element unless `disableGutters={true}`. */
11
- gutters: string;
12
- /** Styles applied to the children wrapper element unless `disableGutters={true}`. */
13
- contentGutters: string;
14
- /** Styles applied to the children wrapper element. */
15
- content: string;
16
- /** Styles applied to the `expandIcon`'s wrapper element. */
17
- expandIconWrapper: string;
18
- }
19
- export declare type AccordionSummaryClassKey = keyof AccordionSummaryClasses;
20
- export declare function getAccordionSummaryUtilityClass(slot: string): string;
21
- declare const accordionSummaryClasses: AccordionSummaryClasses;
22
- export default accordionSummaryClasses;
1
+ export interface AccordionSummaryClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */
5
+ expanded: string;
6
+ /** State class applied to the ButtonBase root element if the button is keyboard focused. */
7
+ focusVisible: string;
8
+ /** State class applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** Styles applied to the root element unless `disableGutters={true}`. */
11
+ gutters: string;
12
+ /** Styles applied to the children wrapper element unless `disableGutters={true}`. */
13
+ contentGutters: string;
14
+ /** Styles applied to the children wrapper element. */
15
+ content: string;
16
+ /** Styles applied to the `expandIcon`'s wrapper element. */
17
+ expandIconWrapper: string;
18
+ }
19
+ export declare type AccordionSummaryClassKey = keyof AccordionSummaryClasses;
20
+ export declare function getAccordionSummaryUtilityClass(slot: string): string;
21
+ declare const accordionSummaryClasses: AccordionSummaryClasses;
22
+ export default accordionSummaryClasses;
package/Alert/Alert.d.ts CHANGED
@@ -34,8 +34,11 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
34
34
  */
35
35
  color?: OverridableStringUnion<AlertColor, AlertPropsColorOverrides>;
36
36
  /**
37
- * The components used for each slot inside the Alert.
38
- * Either a string to use a HTML element or a component.
37
+ * The components used for each slot inside.
38
+ *
39
+ * This prop is an alias for the `slots` prop.
40
+ * It's recommended to use the `slots` prop instead.
41
+ *
39
42
  * @default {}
40
43
  */
41
44
  components?: {
@@ -43,7 +46,12 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
43
46
  CloseIcon?: React.ElementType;
44
47
  };
45
48
  /**
46
- * The props used for each slot inside.
49
+ * The extra props for the slot components.
50
+ * You can override the existing props or add new ones.
51
+ *
52
+ * This prop is an alias for the `slotProps` prop.
53
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
54
+ *
47
55
  * @default {}
48
56
  */
49
57
  componentsProps?: {
@@ -84,6 +92,29 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
84
92
  * @default 'standard'
85
93
  */
86
94
  variant?: OverridableStringUnion<'standard' | 'filled' | 'outlined', AlertPropsVariantOverrides>;
95
+ /**
96
+ * The extra props for the slot components.
97
+ * You can override the existing props or add new ones.
98
+ *
99
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
100
+ *
101
+ * @default {}
102
+ */
103
+ slotProps?: {
104
+ closeButton?: IconButtonProps;
105
+ closeIcon?: SvgIconProps;
106
+ };
107
+ /**
108
+ * The components used for each slot inside.
109
+ *
110
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
111
+ *
112
+ * @default {}
113
+ */
114
+ slots?: {
115
+ closeButton?: React.ElementType;
116
+ closeIcon?: React.ElementType;
117
+ };
87
118
  /**
88
119
  * The system prop that allows defining system overrides as well as additional CSS styles.
89
120
  */
package/Alert/Alert.js CHANGED
@@ -45,7 +45,7 @@ var _Close = _interopRequireDefault(require("../internal/svg-icons/Close"));
45
45
 
46
46
  var _jsxRuntime = require("react/jsx-runtime");
47
47
 
48
- const _excluded = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "variant"];
48
+ const _excluded = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "slotProps", "slots", "variant"];
49
49
 
50
50
  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); }
51
51
 
@@ -159,7 +159,7 @@ const defaultIconMapping = {
159
159
  })
160
160
  };
161
161
  const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
162
- var _components$CloseButt, _components$CloseIcon;
162
+ var _ref, _slots$closeButton, _ref2, _slots$closeIcon, _slotProps$closeButto, _slotProps$closeIcon;
163
163
 
164
164
  const props = (0, _useThemeProps.default)({
165
165
  props: inProps,
@@ -178,6 +178,8 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
178
178
  onClose,
179
179
  role = 'alert',
180
180
  severity = 'success',
181
+ slotProps = {},
182
+ slots = {},
181
183
  variant = 'standard'
182
184
  } = props,
183
185
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
@@ -187,8 +189,10 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
187
189
  variant
188
190
  });
189
191
  const classes = useUtilityClasses(ownerState);
190
- const AlertCloseButton = (_components$CloseButt = components.CloseButton) != null ? _components$CloseButt : _IconButton.default;
191
- const AlertCloseIcon = (_components$CloseIcon = components.CloseIcon) != null ? _components$CloseIcon : _Close.default;
192
+ const AlertCloseButton = (_ref = (_slots$closeButton = slots.closeButton) != null ? _slots$closeButton : components.CloseButton) != null ? _ref : _IconButton.default;
193
+ const AlertCloseIcon = (_ref2 = (_slots$closeIcon = slots.closeIcon) != null ? _slots$closeIcon : components.CloseIcon) != null ? _ref2 : _Close.default;
194
+ const closeButtonProps = (_slotProps$closeButto = slotProps.closeButton) != null ? _slotProps$closeButto : componentsProps.closeButton;
195
+ const closeIconProps = (_slotProps$closeIcon = slotProps.closeIcon) != null ? _slotProps$closeIcon : componentsProps.closeIcon;
192
196
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(AlertRoot, (0, _extends2.default)({
193
197
  role: role,
194
198
  elevation: 0,
@@ -217,10 +221,10 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
217
221
  title: closeText,
218
222
  color: "inherit",
219
223
  onClick: onClose
220
- }, componentsProps.closeButton, {
224
+ }, closeButtonProps, {
221
225
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertCloseIcon, (0, _extends2.default)({
222
226
  fontSize: "small"
223
- }, componentsProps.closeIcon))
227
+ }, closeIconProps))
224
228
  }))
225
229
  }) : null]
226
230
  }));
@@ -271,8 +275,11 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes
271
275
  .oneOfType([_propTypes.default.oneOf(['error', 'info', 'success', 'warning']), _propTypes.default.string]),
272
276
 
273
277
  /**
274
- * The components used for each slot inside the Alert.
275
- * Either a string to use a HTML element or a component.
278
+ * The components used for each slot inside.
279
+ *
280
+ * This prop is an alias for the `slots` prop.
281
+ * It's recommended to use the `slots` prop instead.
282
+ *
276
283
  * @default {}
277
284
  */
278
285
  components: _propTypes.default.shape({
@@ -281,7 +288,12 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes
281
288
  }),
282
289
 
283
290
  /**
284
- * The props used for each slot inside.
291
+ * The extra props for the slot components.
292
+ * You can override the existing props or add new ones.
293
+ *
294
+ * This prop is an alias for the `slotProps` prop.
295
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
296
+ *
285
297
  * @default {}
286
298
  */
287
299
  componentsProps: _propTypes.default.shape({
@@ -328,6 +340,31 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes
328
340
  */
329
341
  severity: _propTypes.default.oneOf(['error', 'info', 'success', 'warning']),
330
342
 
343
+ /**
344
+ * The extra props for the slot components.
345
+ * You can override the existing props or add new ones.
346
+ *
347
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
348
+ *
349
+ * @default {}
350
+ */
351
+ slotProps: _propTypes.default.shape({
352
+ closeButton: _propTypes.default.object,
353
+ closeIcon: _propTypes.default.object
354
+ }),
355
+
356
+ /**
357
+ * The components used for each slot inside.
358
+ *
359
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
360
+ *
361
+ * @default {}
362
+ */
363
+ slots: _propTypes.default.shape({
364
+ closeButton: _propTypes.default.elementType,
365
+ closeIcon: _propTypes.default.elementType
366
+ }),
367
+
331
368
  /**
332
369
  * The system prop that allows defining system overrides as well as additional CSS styles.
333
370
  */
@@ -1,44 +1,44 @@
1
- export interface AlertClasses {
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 `variant="standard"` and `color="success"`. */
11
- standardSuccess: string;
12
- /** Styles applied to the root element if `variant="standard"` and `color="info"`. */
13
- standardInfo: string;
14
- /** Styles applied to the root element if `variant="standard"` and `color="warning"`. */
15
- standardWarning: string;
16
- /** Styles applied to the root element if `variant="standard"` and `color="error"`. */
17
- standardError: string;
18
- /** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
19
- outlinedSuccess: string;
20
- /** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
21
- outlinedInfo: string;
22
- /** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
23
- outlinedWarning: string;
24
- /** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
25
- outlinedError: string;
26
- /** Styles applied to the root element if `variant="filled"` and `color="success"`. */
27
- filledSuccess: string;
28
- /** Styles applied to the root element if `variant="filled"` and `color="info"`. */
29
- filledInfo: string;
30
- /** Styles applied to the root element if `variant="filled"` and `color="warning"`. */
31
- filledWarning: string;
32
- /** Styles applied to the root element if `variant="filled"` and `color="error"`. */
33
- filledError: string;
34
- /** Styles applied to the icon wrapper element. */
35
- icon: string;
36
- /** Styles applied to the message wrapper element. */
37
- message: string;
38
- /** Styles applied to the action wrapper element if `action` is provided. */
39
- action: string;
40
- }
41
- export declare type AlertClassKey = keyof AlertClasses;
42
- export declare function getAlertUtilityClass(slot: string): string;
43
- declare const alertClasses: AlertClasses;
44
- export default alertClasses;
1
+ export interface AlertClasses {
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 `variant="standard"` and `color="success"`. */
11
+ standardSuccess: string;
12
+ /** Styles applied to the root element if `variant="standard"` and `color="info"`. */
13
+ standardInfo: string;
14
+ /** Styles applied to the root element if `variant="standard"` and `color="warning"`. */
15
+ standardWarning: string;
16
+ /** Styles applied to the root element if `variant="standard"` and `color="error"`. */
17
+ standardError: string;
18
+ /** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
19
+ outlinedSuccess: string;
20
+ /** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
21
+ outlinedInfo: string;
22
+ /** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
23
+ outlinedWarning: string;
24
+ /** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
25
+ outlinedError: string;
26
+ /** Styles applied to the root element if `variant="filled"` and `color="success"`. */
27
+ filledSuccess: string;
28
+ /** Styles applied to the root element if `variant="filled"` and `color="info"`. */
29
+ filledInfo: string;
30
+ /** Styles applied to the root element if `variant="filled"` and `color="warning"`. */
31
+ filledWarning: string;
32
+ /** Styles applied to the root element if `variant="filled"` and `color="error"`. */
33
+ filledError: string;
34
+ /** Styles applied to the icon wrapper element. */
35
+ icon: string;
36
+ /** Styles applied to the message wrapper element. */
37
+ message: string;
38
+ /** Styles applied to the action wrapper element if `action` is provided. */
39
+ action: string;
40
+ }
41
+ export declare type AlertClassKey = keyof AlertClasses;
42
+ export declare function getAlertUtilityClass(slot: string): string;
43
+ declare const alertClasses: AlertClasses;
44
+ export default alertClasses;
@@ -1,8 +1,8 @@
1
- export interface AlertTitleClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type AlertTitleClassKey = keyof AlertTitleClasses;
6
- export declare function getAlertTitleUtilityClass(slot: string): string;
7
- declare const alertTitleClasses: AlertTitleClasses;
8
- export default alertTitleClasses;
1
+ export interface AlertTitleClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type AlertTitleClassKey = keyof AlertTitleClasses;
6
+ export declare function getAlertTitleUtilityClass(slot: string): string;
7
+ declare const alertTitleClasses: AlertTitleClasses;
8
+ export default alertTitleClasses;
@@ -1,28 +1,28 @@
1
- export interface AppBarClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `position="fixed"`. */
5
- positionFixed: string;
6
- /** Styles applied to the root element if `position="absolute"`. */
7
- positionAbsolute: string;
8
- /** Styles applied to the root element if `position="sticky"`. */
9
- positionSticky: string;
10
- /** Styles applied to the root element if `position="static"`. */
11
- positionStatic: string;
12
- /** Styles applied to the root element if `position="relative"`. */
13
- positionRelative: string;
14
- /** Styles applied to the root element if `color="default"`. */
15
- colorDefault: string;
16
- /** Styles applied to the root element if `color="primary"`. */
17
- colorPrimary: string;
18
- /** Styles applied to the root element if `color="secondary"`. */
19
- colorSecondary: string;
20
- /** Styles applied to the root element if `color="inherit"`. */
21
- colorInherit: string;
22
- /** Styles applied to the root element if `color="transparent"`. */
23
- colorTransparent: string;
24
- }
25
- export declare type AppBarClassKey = keyof AppBarClasses;
26
- export declare function getAppBarUtilityClass(slot: string): string;
27
- declare const appBarClasses: AppBarClasses;
28
- export default appBarClasses;
1
+ export interface AppBarClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `position="fixed"`. */
5
+ positionFixed: string;
6
+ /** Styles applied to the root element if `position="absolute"`. */
7
+ positionAbsolute: string;
8
+ /** Styles applied to the root element if `position="sticky"`. */
9
+ positionSticky: string;
10
+ /** Styles applied to the root element if `position="static"`. */
11
+ positionStatic: string;
12
+ /** Styles applied to the root element if `position="relative"`. */
13
+ positionRelative: string;
14
+ /** Styles applied to the root element if `color="default"`. */
15
+ colorDefault: string;
16
+ /** Styles applied to the root element if `color="primary"`. */
17
+ colorPrimary: string;
18
+ /** Styles applied to the root element if `color="secondary"`. */
19
+ colorSecondary: string;
20
+ /** Styles applied to the root element if `color="inherit"`. */
21
+ colorInherit: string;
22
+ /** Styles applied to the root element if `color="transparent"`. */
23
+ colorTransparent: string;
24
+ }
25
+ export declare type AppBarClassKey = keyof AppBarClasses;
26
+ export declare function getAppBarUtilityClass(slot: string): string;
27
+ declare const appBarClasses: AppBarClasses;
28
+ export default appBarClasses;
@@ -258,6 +258,16 @@ export interface AutocompleteProps<
258
258
  * @default 'medium'
259
259
  */
260
260
  size?: OverridableStringUnion<'small' | 'medium', AutocompletePropsSizeOverrides>;
261
+ /**
262
+ * The props used for each slot inside.
263
+ * @default {}
264
+ */
265
+ slotProps?: {
266
+ clearIndicator?: Partial<IconButtonProps>;
267
+ paper?: PaperProps;
268
+ popper?: Partial<PopperProps>;
269
+ popupIndicator?: Partial<IconButtonProps>;
270
+ };
261
271
  /**
262
272
  * The system prop that allows defining system overrides as well as additional CSS styles.
263
273
  */
@@ -63,7 +63,7 @@ var _jsxRuntime = require("react/jsx-runtime");
63
63
 
64
64
  var _ClearIcon, _ArrowDropDownIcon;
65
65
 
66
- const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"];
66
+ const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"];
67
67
 
68
68
  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); }
69
69
 
@@ -393,7 +393,7 @@ const AutocompleteGroupUl = (0, _styled.default)('ul', {
393
393
  }
394
394
  });
395
395
  const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps, ref) {
396
- var _componentsProps$clea, _componentsProps$popu, _componentsProps$popp, _componentsProps$pape;
396
+ var _slotProps$clearIndic, _slotProps$paper, _slotProps$popper, _slotProps$popupIndic;
397
397
 
398
398
  const props = (0, _useThemeProps.default)({
399
399
  props: inProps,
@@ -454,7 +454,8 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
454
454
  renderOption: renderOptionProp,
455
455
  renderTags,
456
456
  selectOnFocus = !props.freeSolo,
457
- size = 'medium'
457
+ size = 'medium',
458
+ slotProps = {}
458
459
  } = props,
459
460
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
460
461
  /* eslint-enable @typescript-eslint/no-unused-vars */
@@ -561,6 +562,10 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
561
562
  });
562
563
  };
563
564
 
565
+ const clearIndicatorSlotProps = (_slotProps$clearIndic = slotProps.clearIndicator) != null ? _slotProps$clearIndic : componentsProps.clearIndicator;
566
+ const paperSlotProps = (_slotProps$paper = slotProps.paper) != null ? _slotProps$paper : componentsProps.paper;
567
+ const popperSlotProps = (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper;
568
+ const popupIndicatorSlotProps = (_slotProps$popupIndic = slotProps.popupIndicator) != null ? _slotProps$popupIndic : componentsProps.popupIndicator;
564
569
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
565
570
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteRoot, (0, _extends2.default)({
566
571
  ref: ref,
@@ -585,16 +590,16 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
585
590
  "aria-label": clearText,
586
591
  title: clearText,
587
592
  ownerState: ownerState
588
- }, componentsProps.clearIndicator, {
589
- className: (0, _clsx.default)(classes.clearIndicator, (_componentsProps$clea = componentsProps.clearIndicator) == null ? void 0 : _componentsProps$clea.className),
593
+ }, clearIndicatorSlotProps, {
594
+ className: (0, _clsx.default)(classes.clearIndicator, clearIndicatorSlotProps == null ? void 0 : clearIndicatorSlotProps.className),
590
595
  children: clearIcon
591
596
  })) : null, hasPopupIcon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompletePopupIndicator, (0, _extends2.default)({}, getPopupIndicatorProps(), {
592
597
  disabled: disabled,
593
598
  "aria-label": popupOpen ? closeText : openText,
594
599
  title: popupOpen ? closeText : openText,
595
600
  ownerState: ownerState
596
- }, componentsProps.popupIndicator, {
597
- className: (0, _clsx.default)(classes.popupIndicator, (_componentsProps$popu = componentsProps.popupIndicator) == null ? void 0 : _componentsProps$popu.className),
601
+ }, popupIndicatorSlotProps, {
602
+ className: (0, _clsx.default)(classes.popupIndicator, popupIndicatorSlotProps == null ? void 0 : popupIndicatorSlotProps.className),
598
603
  children: popupIcon
599
604
  })) : null]
600
605
  })
@@ -615,13 +620,13 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
615
620
  role: "presentation",
616
621
  anchorEl: anchorEl,
617
622
  open: popupOpen
618
- }, componentsProps.popper, {
619
- className: (0, _clsx.default)(classes.popper, (_componentsProps$popp = componentsProps.popper) == null ? void 0 : _componentsProps$popp.className),
623
+ }, popperSlotProps, {
624
+ className: (0, _clsx.default)(classes.popper, popperSlotProps == null ? void 0 : popperSlotProps.className),
620
625
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(AutocompletePaper, (0, _extends2.default)({
621
626
  ownerState: ownerState,
622
627
  as: PaperComponent
623
- }, componentsProps.paper, {
624
- className: (0, _clsx.default)(classes.paper, (_componentsProps$pape = componentsProps.paper) == null ? void 0 : _componentsProps$pape.className),
628
+ }, paperSlotProps, {
629
+ className: (0, _clsx.default)(classes.paper, paperSlotProps == null ? void 0 : paperSlotProps.className),
625
630
  children: [loading && groupedOptions.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteLoading, {
626
631
  className: classes.loading,
627
632
  ownerState: ownerState,
@@ -1105,6 +1110,17 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
1105
1110
  /* @typescript-to-proptypes-ignore */
1106
1111
  .oneOfType([_propTypes.default.oneOf(['small', 'medium']), _propTypes.default.string]),
1107
1112
 
1113
+ /**
1114
+ * The props used for each slot inside.
1115
+ * @default {}
1116
+ */
1117
+ slotProps: _propTypes.default.shape({
1118
+ clearIndicator: _propTypes.default.object,
1119
+ paper: _propTypes.default.object,
1120
+ popper: _propTypes.default.object,
1121
+ popupIndicator: _propTypes.default.object
1122
+ }),
1123
+
1108
1124
  /**
1109
1125
  * The system prop that allows defining system overrides as well as additional CSS styles.
1110
1126
  */