@mui/material 5.12.2 → 5.12.3

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 (228) hide show
  1. package/Accordion/Accordion.d.ts +71 -57
  2. package/Accordion/accordionClasses.d.ts +18 -18
  3. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  4. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  5. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  6. package/Alert/alertClasses.d.ts +44 -44
  7. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/autocompleteClasses.d.ts +56 -56
  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/badgeClasses.d.ts +56 -56
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/BottomNavigationAction.js +4 -1
  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/ButtonGroup.js +8 -2
  23. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  24. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  25. package/CHANGELOG.md +120 -0
  26. package/Card/cardClasses.d.ts +8 -8
  27. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  28. package/CardActions/cardActionsClasses.d.ts +10 -10
  29. package/CardContent/cardContentClasses.d.ts +8 -8
  30. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  31. package/CardMedia/cardMediaClasses.d.ts +12 -12
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/Chip.js +1 -1
  34. package/Chip/chipClasses.d.ts +96 -96
  35. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  36. package/ClickAwayListener/index.d.ts +2 -2
  37. package/Collapse/collapseClasses.d.ts +18 -18
  38. package/Container/containerClasses.d.ts +6 -6
  39. package/Dialog/DialogContext.d.ts +6 -6
  40. package/Dialog/dialogClasses.d.ts +36 -36
  41. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  42. package/DialogContent/dialogContentClasses.d.ts +10 -10
  43. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  44. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  45. package/Divider/Divider.js +10 -11
  46. package/Divider/dividerClasses.d.ts +34 -34
  47. package/Drawer/drawerClasses.d.ts +30 -30
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/FilledInput/filledInputClasses.d.ts +42 -42
  50. package/FormControl/FormControlContext.d.ts +17 -17
  51. package/FormControl/formControlClasses.d.ts +14 -14
  52. package/FormControl/useFormControl.d.ts +2 -2
  53. package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
  54. package/FormGroup/formGroupClasses.d.ts +12 -12
  55. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  56. package/FormLabel/formLabelClasses.d.ts +22 -22
  57. package/Grid/gridClasses.d.ts +48 -48
  58. package/Icon/iconClasses.d.ts +24 -24
  59. package/IconButton/iconButtonClasses.d.ts +34 -34
  60. package/ImageList/imageListClasses.d.ts +16 -16
  61. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  62. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  63. package/Input/inputClasses.d.ts +38 -34
  64. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  65. package/InputBase/InputBase.js +1 -1
  66. package/InputBase/inputBaseClasses.d.ts +46 -46
  67. package/InputLabel/inputLabelClasses.d.ts +32 -32
  68. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  69. package/Link/getTextDecoration.d.ts +15 -15
  70. package/Link/linkClasses.d.ts +18 -18
  71. package/List/listClasses.d.ts +14 -14
  72. package/ListItem/listItemClasses.d.ts +30 -30
  73. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  74. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  75. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  76. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  77. package/ListItemText/listItemTextClasses.d.ts +18 -18
  78. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  79. package/Menu/menuClasses.d.ts +12 -12
  80. package/MenuItem/menuItemClasses.d.ts +20 -20
  81. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  82. package/NativeSelect/nativeSelectClasses.d.ts +34 -34
  83. package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
  84. package/Pagination/paginationClasses.d.ts +14 -14
  85. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  86. package/Paper/Paper.d.ts +6 -1
  87. package/Paper/paperClasses.d.ts +39 -39
  88. package/Popover/popoverClasses.d.ts +10 -10
  89. package/Popper/Popper.d.ts +65 -55
  90. package/Popper/Popper.js +4 -3
  91. package/Radio/radioClasses.d.ts +16 -16
  92. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  93. package/RadioGroup/useRadioGroup.d.ts +4 -4
  94. package/Rating/ratingClasses.d.ts +40 -40
  95. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  96. package/Select/SelectInput.js +4 -1
  97. package/Select/selectClasses.d.ts +32 -32
  98. package/Skeleton/skeletonClasses.d.ts +26 -26
  99. package/Slider/Slider.js +1 -1
  100. package/Slider/SliderValueLabel.d.ts +15 -15
  101. package/Slider/SliderValueLabel.types.d.ts +24 -24
  102. package/Slider/sliderClasses.d.ts +58 -58
  103. package/Snackbar/Snackbar.js +4 -3
  104. package/Snackbar/snackbarClasses.d.ts +20 -20
  105. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  106. package/SpeedDial/speedDialClasses.d.ts +22 -22
  107. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  108. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  109. package/Stack/stackClasses.d.ts +6 -6
  110. package/Step/StepContext.d.ts +20 -20
  111. package/Step/stepClasses.d.ts +16 -16
  112. package/StepButton/stepButtonClasses.d.ts +14 -14
  113. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  114. package/StepContent/stepContentClasses.d.ts +12 -12
  115. package/StepIcon/stepIconClasses.d.ts +16 -16
  116. package/StepLabel/stepLabelClasses.d.ts +28 -28
  117. package/Stepper/StepperContext.d.ts +18 -18
  118. package/Stepper/stepperClasses.d.ts +14 -14
  119. package/SvgIcon/svgIconClasses.d.ts +26 -26
  120. package/SwipeableDrawer/SwipeableDrawer.js +1 -1
  121. package/Switch/switchClasses.d.ts +32 -32
  122. package/Tab/tabClasses.d.ts +26 -26
  123. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  124. package/Table/tableClasses.d.ts +10 -10
  125. package/TableBody/tableBodyClasses.d.ts +8 -8
  126. package/TableCell/tableCellClasses.d.ts +32 -32
  127. package/TableContainer/tableContainerClasses.d.ts +8 -8
  128. package/TableFooter/tableFooterClasses.d.ts +8 -8
  129. package/TableHead/tableHeadClasses.d.ts +8 -8
  130. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  131. package/TableRow/tableRowClasses.d.ts +16 -16
  132. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  133. package/Tabs/tabsClasses.d.ts +32 -32
  134. package/TextField/TextField.d.ts +21 -2
  135. package/TextField/TextField.js +7 -1
  136. package/TextField/textFieldClasses.d.ts +8 -8
  137. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  138. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  139. package/Toolbar/toolbarClasses.d.ts +14 -14
  140. package/Tooltip/tooltipClasses.d.ts +30 -30
  141. package/Typography/typographyClasses.d.ts +50 -50
  142. package/Unstable_Grid2/Grid2.d.ts +4 -4
  143. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  144. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  145. package/Unstable_Grid2/index.d.ts +4 -4
  146. package/className/index.d.ts +1 -1
  147. package/darkScrollbar/index.d.ts +28 -28
  148. package/generateUtilityClass/index.d.ts +2 -2
  149. package/generateUtilityClasses/index.d.ts +1 -1
  150. package/index.js +1 -1
  151. package/internal/switchBaseClasses.d.ts +12 -12
  152. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  153. package/legacy/ButtonGroup/ButtonGroup.js +7 -3
  154. package/legacy/Divider/Divider.js +17 -17
  155. package/legacy/Drawer/Drawer.js +4 -4
  156. package/legacy/InputBase/InputBase.js +1 -1
  157. package/legacy/ListItem/ListItem.js +4 -4
  158. package/legacy/Menu/Menu.js +4 -4
  159. package/legacy/Popover/Popover.js +4 -4
  160. package/legacy/Popper/Popper.js +4 -3
  161. package/legacy/Slider/Slider.js +1 -1
  162. package/legacy/Snackbar/Snackbar.js +16 -15
  163. package/legacy/SpeedDial/SpeedDial.js +8 -8
  164. package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
  165. package/legacy/TextField/TextField.js +7 -1
  166. package/legacy/index.js +1 -1
  167. package/legacy/useMediaQuery/useMediaQuery.js +8 -0
  168. package/locale/index.d.ts +76 -76
  169. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  170. package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -1
  171. package/modern/ButtonGroup/ButtonGroup.js +8 -2
  172. package/modern/Chip/Chip.js +1 -1
  173. package/modern/Divider/Divider.js +10 -11
  174. package/modern/InputBase/InputBase.js +1 -1
  175. package/modern/Popper/Popper.js +4 -3
  176. package/modern/Select/SelectInput.js +4 -1
  177. package/modern/Slider/Slider.js +1 -1
  178. package/modern/Snackbar/Snackbar.js +4 -3
  179. package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -1
  180. package/modern/TextField/TextField.js +7 -1
  181. package/modern/index.js +1 -1
  182. package/modern/useMediaQuery/useMediaQuery.js +8 -0
  183. package/node/BottomNavigation/BottomNavigation.js +0 -0
  184. package/node/BottomNavigationAction/BottomNavigationAction.js +4 -1
  185. package/node/ButtonBase/Ripple.js +1 -2
  186. package/node/ButtonGroup/ButtonGroup.js +8 -2
  187. package/node/Chip/Chip.js +1 -1
  188. package/node/Divider/Divider.js +10 -11
  189. package/node/Grid/Grid.js +10 -1
  190. package/node/Hidden/Hidden.js +2 -2
  191. package/node/Hidden/HiddenJs.js +1 -2
  192. package/node/InputBase/InputBase.js +1 -1
  193. package/node/Popper/Popper.js +4 -3
  194. package/node/Select/SelectInput.js +4 -1
  195. package/node/Slide/Slide.js +2 -3
  196. package/node/Slider/Slider.js +1 -1
  197. package/node/Snackbar/Snackbar.js +4 -3
  198. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  199. package/node/SwipeableDrawer/SwipeableDrawer.js +3 -4
  200. package/node/Switch/Switch.js +1 -1
  201. package/node/TabScrollButton/TabScrollButton.js +1 -0
  202. package/node/TablePagination/TablePaginationActions.js +2 -2
  203. package/node/TextField/TextField.js +7 -1
  204. package/node/ToggleButton/ToggleButton.js +1 -1
  205. package/node/index.js +1 -1
  206. package/node/styles/index.js +5 -1
  207. package/node/useMediaQuery/useMediaQuery.js +12 -0
  208. package/node/utils/createSvgIcon.js +1 -2
  209. package/package.json +5 -5
  210. package/styles/CssVarsProvider.d.ts +20 -20
  211. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  212. package/styles/getOverlayAlpha.d.ts +2 -2
  213. package/styles/identifier.d.ts +2 -2
  214. package/styles/shouldSkipGeneratingVar.d.ts +1 -1
  215. package/transitions/index.d.ts +1 -1
  216. package/transitions/transition.d.ts +13 -13
  217. package/transitions/utils.d.ts +23 -23
  218. package/types/OverridableComponentAugmentation.d.ts +31 -31
  219. package/umd/material-ui.development.js +91 -72
  220. package/umd/material-ui.production.min.js +5 -5
  221. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  222. package/useMediaQuery/useMediaQuery.js +8 -0
  223. package/useTouchRipple/index.d.ts +1 -1
  224. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  225. package/utils/getScrollbarSize.d.ts +2 -2
  226. package/utils/ownerDocument.d.ts +2 -2
  227. package/utils/ownerWindow.d.ts +2 -2
  228. package/utils/setRef.d.ts +2 -2
@@ -1,58 +1,58 @@
1
- export interface ButtonGroupClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="contained"`. */
5
- contained: string;
6
- /** Styles applied to the root element if `variant="outlined"`. */
7
- outlined: string;
8
- /** Styles applied to the root element if `variant="text"`. */
9
- text: string;
10
- /** Styles applied to the root element if `disableElevation={true}`. */
11
- disableElevation: string;
12
- /** State class applied to the child elements if `disabled={true}`. */
13
- disabled: string;
14
- /** Styles applied to the root element if `fullWidth={true}`. */
15
- fullWidth: string;
16
- /** Styles applied to the root element if `orientation="vertical"`. */
17
- vertical: string;
18
- /** Styles applied to the children. */
19
- grouped: string;
20
- /** Styles applied to the children if `orientation="horizontal"`. */
21
- groupedHorizontal: string;
22
- /** Styles applied to the children if `orientation="vertical"`. */
23
- groupedVertical: string;
24
- /** Styles applied to the children if `variant="text"`. */
25
- groupedText: string;
26
- /** Styles applied to the children if `variant="text"` and `orientation="horizontal"`. */
27
- groupedTextHorizontal: string;
28
- /** Styles applied to the children if `variant="text"` and `orientation="vertical"`. */
29
- groupedTextVertical: string;
30
- /** Styles applied to the children if `variant="text"` and `color="primary"`. */
31
- groupedTextPrimary: string;
32
- /** Styles applied to the children if `variant="text"` and `color="secondary"`. */
33
- groupedTextSecondary: string;
34
- /** Styles applied to the children if `variant="outlined"`. */
35
- groupedOutlined: string;
36
- /** Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`. */
37
- groupedOutlinedHorizontal: string;
38
- /** Styles applied to the children if `variant="outlined"` and `orientation="vertical"`. */
39
- groupedOutlinedVertical: string;
40
- /** Styles applied to the children if `variant="outlined"` and `color="primary"`. */
41
- groupedOutlinedPrimary: string;
42
- /** Styles applied to the children if `variant="outlined"` and `color="secondary"`. */
43
- groupedOutlinedSecondary: string;
44
- /** Styles applied to the children if `variant="contained"`. */
45
- groupedContained: string;
46
- /** Styles applied to the children if `variant="contained"` and `orientation="horizontal"`. */
47
- groupedContainedHorizontal: string;
48
- /** Styles applied to the children if `variant="contained"` and `orientation="vertical"`. */
49
- groupedContainedVertical: string;
50
- /** Styles applied to the children if `variant="contained"` and `color="primary"`. */
51
- groupedContainedPrimary: string;
52
- /** Styles applied to the children if `variant="contained"` and `color="secondary"`. */
53
- groupedContainedSecondary: string;
54
- }
55
- export type ButtonGroupClassKey = keyof ButtonGroupClasses;
56
- export declare function getButtonGroupUtilityClass(slot: string): string;
57
- declare const buttonGroupClasses: ButtonGroupClasses;
58
- export default buttonGroupClasses;
1
+ export interface ButtonGroupClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="contained"`. */
5
+ contained: string;
6
+ /** Styles applied to the root element if `variant="outlined"`. */
7
+ outlined: string;
8
+ /** Styles applied to the root element if `variant="text"`. */
9
+ text: string;
10
+ /** Styles applied to the root element if `disableElevation={true}`. */
11
+ disableElevation: string;
12
+ /** State class applied to the child elements if `disabled={true}`. */
13
+ disabled: string;
14
+ /** Styles applied to the root element if `fullWidth={true}`. */
15
+ fullWidth: string;
16
+ /** Styles applied to the root element if `orientation="vertical"`. */
17
+ vertical: string;
18
+ /** Styles applied to the children. */
19
+ grouped: string;
20
+ /** Styles applied to the children if `orientation="horizontal"`. */
21
+ groupedHorizontal: string;
22
+ /** Styles applied to the children if `orientation="vertical"`. */
23
+ groupedVertical: string;
24
+ /** Styles applied to the children if `variant="text"`. */
25
+ groupedText: string;
26
+ /** Styles applied to the children if `variant="text"` and `orientation="horizontal"`. */
27
+ groupedTextHorizontal: string;
28
+ /** Styles applied to the children if `variant="text"` and `orientation="vertical"`. */
29
+ groupedTextVertical: string;
30
+ /** Styles applied to the children if `variant="text"` and `color="primary"`. */
31
+ groupedTextPrimary: string;
32
+ /** Styles applied to the children if `variant="text"` and `color="secondary"`. */
33
+ groupedTextSecondary: string;
34
+ /** Styles applied to the children if `variant="outlined"`. */
35
+ groupedOutlined: string;
36
+ /** Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`. */
37
+ groupedOutlinedHorizontal: string;
38
+ /** Styles applied to the children if `variant="outlined"` and `orientation="vertical"`. */
39
+ groupedOutlinedVertical: string;
40
+ /** Styles applied to the children if `variant="outlined"` and `color="primary"`. */
41
+ groupedOutlinedPrimary: string;
42
+ /** Styles applied to the children if `variant="outlined"` and `color="secondary"`. */
43
+ groupedOutlinedSecondary: string;
44
+ /** Styles applied to the children if `variant="contained"`. */
45
+ groupedContained: string;
46
+ /** Styles applied to the children if `variant="contained"` and `orientation="horizontal"`. */
47
+ groupedContainedHorizontal: string;
48
+ /** Styles applied to the children if `variant="contained"` and `orientation="vertical"`. */
49
+ groupedContainedVertical: string;
50
+ /** Styles applied to the children if `variant="contained"` and `color="primary"`. */
51
+ groupedContainedPrimary: string;
52
+ /** Styles applied to the children if `variant="contained"` and `color="secondary"`. */
53
+ groupedContainedSecondary: string;
54
+ }
55
+ export type ButtonGroupClassKey = keyof ButtonGroupClasses;
56
+ export declare function getButtonGroupUtilityClass(slot: string): string;
57
+ declare const buttonGroupClasses: ButtonGroupClasses;
58
+ export default buttonGroupClasses;
package/CHANGELOG.md CHANGED
@@ -1,5 +1,125 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.12.3
4
+
5
+ <!-- generated comparing v5.12.2..master -->
6
+
7
+ _May 2, 2023_
8
+
9
+ A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - all planned breaking changes for Base UI are done. The first beta release should come next week 🎉
12
+ - 🐛 bug fixes and 📚 documentation improvements.
13
+
14
+ ### `@mui/material@5.12.3`
15
+
16
+ - &#8203;<!-- 43 -->[Accordion] Add missing `component` type (#37111) @sai6855
17
+ - &#8203;<!-- 23 -->[ButtonGroup] Should not retain divider color when it is disabled and variant is `text` (#36967) @DavidBoyer11
18
+ - &#8203;<!-- 21 -->[Divider] Fix styles on dividers with text (#35072) @maxdestors
19
+ - &#8203;<!-- 04 -->[TextField] Improve IntelliSense support for props (#36737) @sai6855
20
+ - &#8203;<!-- 03 -->[TextField] Fix running click event on disabled (#36892) @sai6855
21
+
22
+ ### `@mui/joy@5.0.0-alpha.78`
23
+
24
+ - &#8203;<!-- 09 -->[Joy] Miscellaneous fixes and docs improvement (#37026) @siriwatknp
25
+
26
+ ### `@mui/base@5.0.0-alpha.128`
27
+
28
+ #### Breaking changes
29
+
30
+ - The `component` prop is no longer supported because it can be replaced with the slots API. This is how the transformation will look like:
31
+
32
+ ```diff
33
+ <Button
34
+ - component="span"
35
+ + slots={{ root: "span" }}
36
+ />
37
+ ```
38
+
39
+ If using TypeScript, the custom component type should be added as a generic on the `Button` component.
40
+
41
+ ```diff
42
+ -<Button
43
+ +<Button<typeof CustomComponent>
44
+ slots={{ root: CustomComponent }}
45
+ customProp="foo"
46
+ />
47
+ ```
48
+
49
+ There is codemod that you can run in your project to do the transformation:
50
+
51
+ ```sh
52
+ npx @mui/codemod v5.0.0/base-remove-component-prop <path>
53
+ ```
54
+
55
+ The full documentation about the codemod can be found [here](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#base-remove-component-prop).
56
+
57
+ This is the list of PR related to this change:
58
+
59
+ - &#8203;<!-- 40 -->[Button][base] Drop `component` prop (#36677) @mnajdova
60
+ - &#8203;<!-- 42 -->[Badge][base] Drop `component` prop (#37028) @hbjORbj
61
+ - &#8203;<!-- 37 -->[FormControl][base] Drop component prop (#37031) @hbjORbj
62
+ - &#8203;<!-- 35 -->[Input][base] Drop component prop (#37057) @hbjORbj
63
+ - &#8203;<!-- 34 -->[Menu][base] Drop component prop (#37033) @hbjORbj
64
+ - &#8203;<!-- 33 -->[MenuItem][base] Drop component prop (#37032) @hbjORbj
65
+ - &#8203;<!-- 32 -->[Modal][base] Drop component prop (#37058) @hbjORbj
66
+ - &#8203;<!-- 31 -->[Option][base] Drop component prop (#37052) @hbjORbj
67
+ - &#8203;<!-- 30 -->[OptionGroup][base] Drop component prop (#37055) @hbjORbj
68
+ - &#8203;<!-- 31 -->[Popper][base] Drop component prop (#37084) @hbjORbj
69
+ - &#8203;<!-- 29 -->[Select][base] Drop component prop (#37035) @hbjORbj
70
+ - &#8203;<!-- 28 -->[Slider][base] Drop component prop (#37056) @hbjORbj
71
+ - &#8203;<!-- 27 -->[Snackbar][base] Drop component prop (#37041) @nicolas-ot
72
+ - &#8203;<!-- 26 -->[Switch][base] Drop component prop (#37053) @hbjORbj
73
+ - &#8203;<!-- 25 -->[Tab][base] Drop component prop (#36768) @sai6855
74
+ - &#8203;<!-- 24 -->[Tabs][base] Drop component prop (#36770) @sai6855
75
+ - &#8203;<!-- 08 -->[TablePagination][base] Drop component prop (#37059) @sai6855
76
+ - &#8203;<!-- 07 -->[TabPanel][base] Drop component prop (#37054) @sai6855
77
+ - &#8203;<!-- 06 -->[TabsList][base] Drop component prop (#37042) @sai6855
78
+
79
+ - &#8203;<!-- 41 -->[base] Improve API consistency (#36970) @michaldudak
80
+
81
+ Brought consistency to Base UI components and hooks' parameters and return values:
82
+
83
+ 1. Whenever a hook needs a ref, it's now called `<slot_name>Ref`, which matches the `get<slot_name>Props` in the return value.
84
+ 2. All hooks that accept external refs now return merged refs, making combining multiple hooks on one element easier. This was proven necessary in several compound components (like menuItem being both a button and a list item). The type of this value is `React.RefCallback` as using the more general `React.Ref` caused variance issues.
85
+ 3. Type of accepted refs is standardized to `React.Ref<Element>`
86
+ 4. Naming and typing of the forwarded ref in unstyled components were standardized - it's forwardedRef: React.ForwardedRef<Element> (unless a more specific type is needed).
87
+ 5. The shape of the definition of unstyled components was standardized - it's React.forwardRef(function Component(props: Props, forwardedRef: React.Ref<Element>) { ... });. Specifically, the generic parameters of forwardRef were removed as they are specified in function arguments.
88
+
89
+ #### Changes
90
+
91
+ - &#8203;<!-- 36 -->[FormControl][base] Do not use optional fields in useFormControlContext's return value (#37037) @michaldudak
92
+
93
+ ### Docs
94
+
95
+ - &#8203;<!-- 39 -->[base][docs] Add Base UI Quickstart Guide (#36717) @mj12albert
96
+ - &#8203;<!-- 20 -->[docs] Fix Material UI's API linking to Base UI (#37121) @mnajdova
97
+ - &#8203;<!-- 19 -->[docs] Fix pagination in the DataGrid demo (#37114) @cherniavskii
98
+ - &#8203;<!-- 18 -->[docs] Add notification to the release of the new Time Picker UI (#37065) @joserodolfofreitas
99
+ - &#8203;<!-- 17 -->[docs] Specify "Material UI" (not "MUI") where appropriate throughout the docs (#37066) @samuelsycamore
100
+ - &#8203;<!-- 16 -->[docs] Use focus-visible instead of focus for Menu demos (#36847) @michaldudak
101
+ - &#8203;<!-- 15 -->[docs] Fix small regressions API pages (#36972) @oliviertassinari
102
+ - &#8203;<!-- 14 -->[docs] Handle a few docs-feedback (#36977) @oliviertassinari
103
+ - &#8203;<!-- 13 -->[docs] Fix anchor link in customization (#37004) @oliviertassinari
104
+ - &#8203;<!-- 12 -->[docs] Add a note about minimal required version for theme merging to the guides (#36973) @jakub-stastny
105
+ - &#8203;<!-- 11 -->[docs] smooth scrolling added for `back to top` (#37011) @PunitSoniME
106
+ - &#8203;<!-- 10 -->[docs] Remove `useFormControl` return values from demos page (#37036) @ZeeshanTamboli
107
+ - &#8203;<!-- 47 --> [docs][base] Move styles to the bottom of demos code for `SwitchUnstyled` (#36720) @varunmulay22
108
+ - &#8203;<!-- 46 --> [docs][base] Move styles to the bottom of demos code for `InputUnstyled` (#36724) @varunmulay22
109
+ - &#8203;<!-- 45 --> [docs][base] Move styles to the bottom of demos code for `SliderUnstyled` (#36721) @varunmulay22
110
+ - &#8203;<!-- 44 --> [docs][base] Move styles to the bottom of demos code for `Snackbar` (#36719) @varunmulay22
111
+ - &#8203;<!-- 38 -->[docs][base] Move styles to the bottom of demos code for `SelectUnstyled` (#36718) @varunmulay22
112
+ - &#8203;<!-- 05 -->[templates] Image not displayed in blog layout of React template. (#36991) @navedqb
113
+ - &#8203;<!-- 02 -->[website] Take the design role offline @oliviertassinari
114
+ - &#8203;<!-- 01 -->[website] Fix URL convention @oliviertassinari
115
+ - &#8203;<!-- 21 -->[docs] Turn off job banner on docs (#36080) @joserodolfofreitas
116
+
117
+ ### Core
118
+
119
+ - &#8203;<!-- 22 -->[core] Allow type alias as well in hooks API docs generation (#37034) @ZeeshanTamboli
120
+
121
+ All contributors of this release in alphabetical order: @cherniavskii, @DavidBoyer11, @hbjORbj, @jakub-stastny, @joserodolfofreitas, @maxdestors, @michaldudak, @mj12albert, @mnajdova, @navedqb, @nicolas-ot, @oliviertassinari, @PunitSoniME, @sai6855, @samuelsycamore, @siriwatknp, @varunmulay22, @ZeeshanTamboli
122
+
3
123
  ## 5.12.2
4
124
 
5
125
  <!-- generated comparing v5.12.1..master -->
@@ -1,8 +1,8 @@
1
- export interface CardClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type CardClassKey = keyof CardClasses;
6
- export declare function getCardUtilityClass(slot: string): string;
7
- declare const cardClasses: CardClasses;
8
- export default cardClasses;
1
+ export interface CardClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export type CardClassKey = keyof CardClasses;
6
+ export declare function getCardUtilityClass(slot: string): string;
7
+ declare const cardClasses: CardClasses;
8
+ export default cardClasses;
@@ -1,12 +1,12 @@
1
- export interface CardActionAreaClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the ButtonBase root element if the action area is keyboard focused. */
5
- focusVisible: string;
6
- /** Styles applied to the overlay that covers the action area when it is keyboard focused. */
7
- focusHighlight: string;
8
- }
9
- export type CardActionAreaClassKey = keyof CardActionAreaClasses;
10
- export declare function getCardActionAreaUtilityClass(slot: string): string;
11
- declare const cardActionAreaClasses: CardActionAreaClasses;
12
- export default cardActionAreaClasses;
1
+ export interface CardActionAreaClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the ButtonBase root element if the action area is keyboard focused. */
5
+ focusVisible: string;
6
+ /** Styles applied to the overlay that covers the action area when it is keyboard focused. */
7
+ focusHighlight: string;
8
+ }
9
+ export type CardActionAreaClassKey = keyof CardActionAreaClasses;
10
+ export declare function getCardActionAreaUtilityClass(slot: string): string;
11
+ declare const cardActionAreaClasses: CardActionAreaClasses;
12
+ export default cardActionAreaClasses;
@@ -1,10 +1,10 @@
1
- export interface CardActionsClasses {
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 type CardActionsClassKey = keyof CardActionsClasses;
8
- export declare function getCardActionsUtilityClass(slot: string): string;
9
- declare const cardActionsClasses: CardActionsClasses;
10
- export default cardActionsClasses;
1
+ export interface CardActionsClasses {
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 type CardActionsClassKey = keyof CardActionsClasses;
8
+ export declare function getCardActionsUtilityClass(slot: string): string;
9
+ declare const cardActionsClasses: CardActionsClasses;
10
+ export default cardActionsClasses;
@@ -1,8 +1,8 @@
1
- export interface CardContentClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type CardContentClassKey = keyof CardContentClasses;
6
- export declare function getCardContentUtilityClass(slot: string): string;
7
- declare const cardContentClasses: CardContentClasses;
8
- export default cardContentClasses;
1
+ export interface CardContentClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export type CardContentClassKey = keyof CardContentClasses;
6
+ export declare function getCardContentUtilityClass(slot: string): string;
7
+ declare const cardContentClasses: CardContentClasses;
8
+ export default cardContentClasses;
@@ -1,18 +1,18 @@
1
- export interface CardHeaderClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the avatar element. */
5
- avatar: string;
6
- /** Styles applied to the action element. */
7
- action: string;
8
- /** Styles applied to the content wrapper element. */
9
- content: string;
10
- /** Styles applied to the title Typography element. */
11
- title: string;
12
- /** Styles applied to the subheader Typography element. */
13
- subheader: string;
14
- }
15
- export type CardHeaderClassKey = keyof CardHeaderClasses;
16
- export declare function getCardHeaderUtilityClass(slot: string): string;
17
- declare const cardHeaderClasses: CardHeaderClasses;
18
- export default cardHeaderClasses;
1
+ export interface CardHeaderClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the avatar element. */
5
+ avatar: string;
6
+ /** Styles applied to the action element. */
7
+ action: string;
8
+ /** Styles applied to the content wrapper element. */
9
+ content: string;
10
+ /** Styles applied to the title Typography element. */
11
+ title: string;
12
+ /** Styles applied to the subheader Typography element. */
13
+ subheader: string;
14
+ }
15
+ export type CardHeaderClassKey = keyof CardHeaderClasses;
16
+ export declare function getCardHeaderUtilityClass(slot: string): string;
17
+ declare const cardHeaderClasses: CardHeaderClasses;
18
+ export default cardHeaderClasses;
@@ -1,12 +1,12 @@
1
- export interface CardMediaClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `component="video, audio, picture, iframe, or img"`. */
5
- media: string;
6
- /** Styles applied to the root element if `component="picture or img"`. */
7
- img: string;
8
- }
9
- export type CardMediaClassKey = keyof CardMediaClasses;
10
- export declare function getCardMediaUtilityClass(slot: string): string;
11
- declare const cardMediaClasses: CardMediaClasses;
12
- export default cardMediaClasses;
1
+ export interface CardMediaClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `component="video, audio, picture, iframe, or img"`. */
5
+ media: string;
6
+ /** Styles applied to the root element if `component="picture or img"`. */
7
+ img: string;
8
+ }
9
+ export type CardMediaClassKey = keyof CardMediaClasses;
10
+ export declare function getCardMediaUtilityClass(slot: string): string;
11
+ declare const cardMediaClasses: CardMediaClasses;
12
+ export default cardMediaClasses;
@@ -1,18 +1,18 @@
1
- export interface CheckboxClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if `checked={true}`. */
5
- checked: string;
6
- /** State class applied to the root element if `disabled={true}`. */
7
- disabled: string;
8
- /** State class applied to the root element if `indeterminate={true}`. */
9
- indeterminate: 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
- }
15
- export type CheckboxClassKey = keyof CheckboxClasses;
16
- export declare function getCheckboxUtilityClass(slot: string): string;
17
- declare const checkboxClasses: CheckboxClasses;
18
- export default checkboxClasses;
1
+ export interface CheckboxClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if `checked={true}`. */
5
+ checked: string;
6
+ /** State class applied to the root element if `disabled={true}`. */
7
+ disabled: string;
8
+ /** State class applied to the root element if `indeterminate={true}`. */
9
+ indeterminate: 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
+ }
15
+ export type CheckboxClassKey = keyof CheckboxClasses;
16
+ export declare function getCheckboxUtilityClass(slot: string): string;
17
+ declare const checkboxClasses: CheckboxClasses;
18
+ export default checkboxClasses;
package/Chip/Chip.js CHANGED
@@ -293,7 +293,7 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
293
293
  size = 'medium',
294
294
  variant = 'filled',
295
295
  tabIndex,
296
- skipFocusWhenDisabled = false
296
+ skipFocusWhenDisabled = false // TODO v6: Rename to `focusableWhenDisabled`.
297
297
  } = props,
298
298
  other = _objectWithoutPropertiesLoose(props, _excluded);
299
299
  const chipRef = React.useRef(null);
@@ -1,96 +1,96 @@
1
- export interface ChipClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `size="small"`. */
5
- sizeSmall: string;
6
- /** Styles applied to the root element if `size="medium"`. */
7
- sizeMedium: string;
8
- /** Styles applied to the root element if `color="error"`. */
9
- colorError: string;
10
- /** Styles applied to the root element if `color="info"`. */
11
- colorInfo: string;
12
- /** Styles applied to the root element if `color="primary"`. */
13
- colorPrimary: string;
14
- /** Styles applied to the root element if `color="secondary"`. */
15
- colorSecondary: string;
16
- /** Styles applied to the root element if `color="success"`. */
17
- colorSuccess: string;
18
- /** Styles applied to the root element if `color="warning"`. */
19
- colorWarning: string;
20
- /** State class applied to the root element if `disabled={true}`. */
21
- disabled: string;
22
- /** Styles applied to the root element if `onClick` is defined or `clickable={true}`. */
23
- clickable: string;
24
- /** Styles applied to the root element if `onClick` and `color="primary"` is defined or `clickable={true}`. */
25
- clickableColorPrimary: string;
26
- /** Styles applied to the root element if `onClick` and `color="secondary"` is defined or `clickable={true}`. */
27
- clickableColorSecondary: string;
28
- /** Styles applied to the root element if `onDelete` is defined. */
29
- deletable: string;
30
- /** Styles applied to the root element if `onDelete` and `color="primary"` is defined. */
31
- deletableColorPrimary: string;
32
- /** Styles applied to the root element if `onDelete` and `color="secondary"` is defined. */
33
- deletableColorSecondary: string;
34
- /** Styles applied to the root element if `variant="outlined"`. */
35
- outlined: string;
36
- /** Styles applied to the root element if `variant="filled"`. */
37
- filled: string;
38
- /** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
39
- outlinedPrimary: string;
40
- /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
41
- outlinedSecondary: string;
42
- /** Styles applied to the root element if `variant="filled"` and `color="primary"`. */
43
- filledPrimary: string;
44
- /** Styles applied to the root element if `variant="filled"` and `color="secondary"`. */
45
- filledSecondary: string;
46
- /** Styles applied to the avatar element. */
47
- avatar: string;
48
- /** Styles applied to the avatar element if `size="small"`. */
49
- avatarSmall: string;
50
- /** Styles applied to the avatar element if `size="medium"`. */
51
- avatarMedium: string;
52
- /** Styles applied to the avatar element if `color="primary"`. */
53
- avatarColorPrimary: string;
54
- /** Styles applied to the avatar element if `color="secondary"`. */
55
- avatarColorSecondary: string;
56
- /** Styles applied to the icon element. */
57
- icon: string;
58
- /** Styles applied to the icon element if `size="small"`. */
59
- iconSmall: string;
60
- /** Styles applied to the icon element if `size="medium"`. */
61
- iconMedium: string;
62
- /** Styles applied to the icon element if `color="primary"`. */
63
- iconColorPrimary: string;
64
- /** Styles applied to the icon element if `color="secondary"`. */
65
- iconColorSecondary: string;
66
- /** Styles applied to the label `span` element. */
67
- label: string;
68
- /** Styles applied to the label `span` element if `size="small"`. */
69
- labelSmall: string;
70
- /** Styles applied to the label `span` element if `size="medium"`. */
71
- labelMedium: string;
72
- /** Styles applied to the deleteIcon element. */
73
- deleteIcon: string;
74
- /** Styles applied to the deleteIcon element if `size="small"`. */
75
- deleteIconSmall: string;
76
- /** Styles applied to the deleteIcon element if `size="medium"`. */
77
- deleteIconMedium: string;
78
- /** Styles applied to the deleteIcon element if `color="primary"` and `variant="filled"`. */
79
- deleteIconColorPrimary: string;
80
- /** Styles applied to the deleteIcon element if `color="secondary"` and `variant="filled"`. */
81
- deleteIconColorSecondary: string;
82
- /** Styles applied to the deleteIcon element if `color="primary"` and `variant="outlined"`. */
83
- deleteIconOutlinedColorPrimary: string;
84
- /** Styles applied to the deleteIcon element if `color="secondary"` and `variant="outlined"`. */
85
- deleteIconOutlinedColorSecondary: string;
86
- /** Styles applied to the deleteIcon element if `color="primary"` and `variant="filled"`. */
87
- deleteIconFilledColorPrimary: string;
88
- /** Styles applied to the deleteIcon element if `color="secondary"` and `variant="filled"`. */
89
- deleteIconFilledColorSecondary: string;
90
- /** State class applied to the root element if keyboard focused. */
91
- focusVisible: string;
92
- }
93
- export type ChipClassKey = keyof ChipClasses;
94
- export declare function getChipUtilityClass(slot: string): string;
95
- declare const chipClasses: ChipClasses;
96
- export default chipClasses;
1
+ export interface ChipClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `size="small"`. */
5
+ sizeSmall: string;
6
+ /** Styles applied to the root element if `size="medium"`. */
7
+ sizeMedium: string;
8
+ /** Styles applied to the root element if `color="error"`. */
9
+ colorError: string;
10
+ /** Styles applied to the root element if `color="info"`. */
11
+ colorInfo: string;
12
+ /** Styles applied to the root element if `color="primary"`. */
13
+ colorPrimary: string;
14
+ /** Styles applied to the root element if `color="secondary"`. */
15
+ colorSecondary: string;
16
+ /** Styles applied to the root element if `color="success"`. */
17
+ colorSuccess: string;
18
+ /** Styles applied to the root element if `color="warning"`. */
19
+ colorWarning: string;
20
+ /** State class applied to the root element if `disabled={true}`. */
21
+ disabled: string;
22
+ /** Styles applied to the root element if `onClick` is defined or `clickable={true}`. */
23
+ clickable: string;
24
+ /** Styles applied to the root element if `onClick` and `color="primary"` is defined or `clickable={true}`. */
25
+ clickableColorPrimary: string;
26
+ /** Styles applied to the root element if `onClick` and `color="secondary"` is defined or `clickable={true}`. */
27
+ clickableColorSecondary: string;
28
+ /** Styles applied to the root element if `onDelete` is defined. */
29
+ deletable: string;
30
+ /** Styles applied to the root element if `onDelete` and `color="primary"` is defined. */
31
+ deletableColorPrimary: string;
32
+ /** Styles applied to the root element if `onDelete` and `color="secondary"` is defined. */
33
+ deletableColorSecondary: string;
34
+ /** Styles applied to the root element if `variant="outlined"`. */
35
+ outlined: string;
36
+ /** Styles applied to the root element if `variant="filled"`. */
37
+ filled: string;
38
+ /** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
39
+ outlinedPrimary: string;
40
+ /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
41
+ outlinedSecondary: string;
42
+ /** Styles applied to the root element if `variant="filled"` and `color="primary"`. */
43
+ filledPrimary: string;
44
+ /** Styles applied to the root element if `variant="filled"` and `color="secondary"`. */
45
+ filledSecondary: string;
46
+ /** Styles applied to the avatar element. */
47
+ avatar: string;
48
+ /** Styles applied to the avatar element if `size="small"`. */
49
+ avatarSmall: string;
50
+ /** Styles applied to the avatar element if `size="medium"`. */
51
+ avatarMedium: string;
52
+ /** Styles applied to the avatar element if `color="primary"`. */
53
+ avatarColorPrimary: string;
54
+ /** Styles applied to the avatar element if `color="secondary"`. */
55
+ avatarColorSecondary: string;
56
+ /** Styles applied to the icon element. */
57
+ icon: string;
58
+ /** Styles applied to the icon element if `size="small"`. */
59
+ iconSmall: string;
60
+ /** Styles applied to the icon element if `size="medium"`. */
61
+ iconMedium: string;
62
+ /** Styles applied to the icon element if `color="primary"`. */
63
+ iconColorPrimary: string;
64
+ /** Styles applied to the icon element if `color="secondary"`. */
65
+ iconColorSecondary: string;
66
+ /** Styles applied to the label `span` element. */
67
+ label: string;
68
+ /** Styles applied to the label `span` element if `size="small"`. */
69
+ labelSmall: string;
70
+ /** Styles applied to the label `span` element if `size="medium"`. */
71
+ labelMedium: string;
72
+ /** Styles applied to the deleteIcon element. */
73
+ deleteIcon: string;
74
+ /** Styles applied to the deleteIcon element if `size="small"`. */
75
+ deleteIconSmall: string;
76
+ /** Styles applied to the deleteIcon element if `size="medium"`. */
77
+ deleteIconMedium: string;
78
+ /** Styles applied to the deleteIcon element if `color="primary"` and `variant="filled"`. */
79
+ deleteIconColorPrimary: string;
80
+ /** Styles applied to the deleteIcon element if `color="secondary"` and `variant="filled"`. */
81
+ deleteIconColorSecondary: string;
82
+ /** Styles applied to the deleteIcon element if `color="primary"` and `variant="outlined"`. */
83
+ deleteIconOutlinedColorPrimary: string;
84
+ /** Styles applied to the deleteIcon element if `color="secondary"` and `variant="outlined"`. */
85
+ deleteIconOutlinedColorSecondary: string;
86
+ /** Styles applied to the deleteIcon element if `color="primary"` and `variant="filled"`. */
87
+ deleteIconFilledColorPrimary: string;
88
+ /** Styles applied to the deleteIcon element if `color="secondary"` and `variant="filled"`. */
89
+ deleteIconFilledColorSecondary: string;
90
+ /** State class applied to the root element if keyboard focused. */
91
+ focusVisible: string;
92
+ }
93
+ export type ChipClassKey = keyof ChipClasses;
94
+ export declare function getChipUtilityClass(slot: string): string;
95
+ declare const chipClasses: ChipClasses;
96
+ export default chipClasses;