@mui/material 5.4.1 → 5.4.4

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 (246) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  11. package/BottomNavigation/BottomNavigation.js +0 -0
  12. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  13. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  14. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  15. package/Button/buttonClasses.d.ts +76 -76
  16. package/ButtonBase/ButtonBase.d.ts +1 -1
  17. package/ButtonBase/ButtonBase.js +1 -1
  18. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  19. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  20. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  21. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  22. package/CHANGELOG.md +177 -0
  23. package/Card/cardClasses.d.ts +8 -8
  24. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  25. package/CardActions/cardActionsClasses.d.ts +10 -10
  26. package/CardContent/cardContentClasses.d.ts +8 -8
  27. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  28. package/CardMedia/cardMediaClasses.d.ts +12 -12
  29. package/Checkbox/checkboxClasses.d.ts +18 -18
  30. package/Chip/Chip.js +1 -0
  31. package/Chip/chipClasses.d.ts +80 -80
  32. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  33. package/ClickAwayListener/index.d.ts +2 -2
  34. package/Collapse/collapseClasses.d.ts +18 -18
  35. package/Container/containerClasses.d.ts +22 -22
  36. package/Dialog/Dialog.d.ts +4 -1
  37. package/Dialog/Dialog.js +10 -6
  38. package/Dialog/DialogContext.d.ts +6 -6
  39. package/Dialog/dialogClasses.d.ts +36 -36
  40. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  41. package/DialogContent/dialogContentClasses.d.ts +10 -10
  42. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  43. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  44. package/Divider/dividerClasses.d.ts +34 -34
  45. package/Drawer/Drawer.d.ts +4 -1
  46. package/Drawer/Drawer.js +11 -9
  47. package/Drawer/drawerClasses.d.ts +30 -30
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/Fade/Fade.d.ts +2 -2
  50. package/Fade/Fade.js +8 -8
  51. package/FilledInput/filledInputClasses.d.ts +40 -40
  52. package/FilledInput/filledInputClasses.js +5 -1
  53. package/FormControl/formControlClasses.d.ts +14 -14
  54. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  55. package/FormGroup/formGroupClasses.d.ts +12 -12
  56. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  57. package/FormLabel/formLabelClasses.d.ts +22 -22
  58. package/Grid/gridClasses.d.ts +48 -48
  59. package/Icon/iconClasses.d.ts +24 -24
  60. package/IconButton/iconButtonClasses.d.ts +26 -26
  61. package/ImageList/imageListClasses.d.ts +16 -16
  62. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  63. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  64. package/Input/inputClasses.d.ts +34 -34
  65. package/Input/inputClasses.js +5 -1
  66. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  67. package/InputBase/inputBaseClasses.d.ts +44 -44
  68. package/InputLabel/inputLabelClasses.d.ts +32 -32
  69. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  70. package/Link/linkClasses.d.ts +18 -18
  71. package/List/listClasses.d.ts +14 -14
  72. package/ListItem/listItemClasses.d.ts +30 -30
  73. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  74. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  75. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  76. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  77. package/ListItemText/listItemTextClasses.d.ts +18 -18
  78. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  79. package/Menu/menuClasses.d.ts +12 -12
  80. package/MenuItem/menuItemClasses.d.ts +20 -20
  81. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  82. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  83. package/OutlinedInput/NotchedOutline.js +3 -1
  84. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  85. package/OutlinedInput/outlinedInputClasses.js +5 -1
  86. package/Pagination/paginationClasses.d.ts +14 -14
  87. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  88. package/Paper/paperClasses.d.ts +39 -39
  89. package/Popover/popoverClasses.d.ts +10 -10
  90. package/Popper/Popper.d.ts +17 -17
  91. package/Popper/Popper.js +1 -1
  92. package/README.md +1 -1
  93. package/Radio/radioClasses.d.ts +16 -16
  94. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  95. package/RadioGroup/useRadioGroup.d.ts +4 -4
  96. package/Rating/ratingClasses.d.ts +40 -40
  97. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  98. package/Select/Select.js +19 -7
  99. package/Select/selectClasses.d.ts +30 -30
  100. package/Skeleton/skeletonClasses.d.ts +24 -24
  101. package/Slide/Slide.d.ts +4 -4
  102. package/Slide/Slide.js +14 -14
  103. package/Snackbar/Snackbar.d.ts +2 -2
  104. package/Snackbar/Snackbar.js +8 -8
  105. package/Snackbar/snackbarClasses.d.ts +20 -20
  106. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  107. package/SpeedDial/SpeedDial.d.ts +2 -2
  108. package/SpeedDial/SpeedDial.js +9 -7
  109. package/SpeedDial/speedDialClasses.d.ts +22 -22
  110. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  111. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  112. package/Step/StepContext.d.ts +20 -0
  113. package/Step/StepContext.js +10 -2
  114. package/Step/index.d.ts +3 -0
  115. package/Step/index.js +3 -1
  116. package/Step/stepClasses.d.ts +16 -16
  117. package/StepButton/stepButtonClasses.d.ts +14 -14
  118. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  119. package/StepContent/stepContentClasses.d.ts +12 -12
  120. package/StepIcon/stepIconClasses.d.ts +16 -16
  121. package/StepLabel/stepLabelClasses.d.ts +28 -28
  122. package/Stepper/stepperClasses.d.ts +14 -14
  123. package/SvgIcon/svgIconClasses.d.ts +24 -24
  124. package/SwipeableDrawer/SwipeableDrawer.js +8 -6
  125. package/Switch/switchClasses.d.ts +32 -32
  126. package/Tab/tabClasses.d.ts +26 -26
  127. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  128. package/Table/tableClasses.d.ts +10 -10
  129. package/TableBody/tableBodyClasses.d.ts +8 -8
  130. package/TableCell/tableCellClasses.d.ts +32 -32
  131. package/TableContainer/tableContainerClasses.d.ts +8 -8
  132. package/TableFooter/tableFooterClasses.d.ts +8 -8
  133. package/TableHead/tableHeadClasses.d.ts +8 -8
  134. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  135. package/TableRow/tableRowClasses.d.ts +16 -16
  136. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  137. package/Tabs/tabsClasses.d.ts +32 -32
  138. package/TextField/textFieldClasses.d.ts +8 -8
  139. package/ToggleButton/ToggleButton.d.ts +15 -0
  140. package/ToggleButton/ToggleButton.js +8 -2
  141. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  142. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  143. package/Toolbar/toolbarClasses.d.ts +14 -14
  144. package/Tooltip/tooltipClasses.d.ts +30 -30
  145. package/Typography/typographyClasses.d.ts +50 -50
  146. package/Zoom/Zoom.d.ts +2 -2
  147. package/Zoom/Zoom.js +8 -8
  148. package/darkScrollbar/index.d.ts +28 -28
  149. package/index.d.ts +3 -0
  150. package/index.js +3 -1
  151. package/internal/switchBaseClasses.d.ts +12 -12
  152. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  153. package/legacy/ButtonBase/ButtonBase.js +1 -1
  154. package/legacy/Chip/Chip.js +1 -0
  155. package/legacy/Dialog/Dialog.js +10 -6
  156. package/legacy/Drawer/Drawer.js +11 -9
  157. package/legacy/Fade/Fade.js +8 -8
  158. package/legacy/FilledInput/filledInputClasses.js +5 -1
  159. package/legacy/Input/inputClasses.js +5 -1
  160. package/legacy/OutlinedInput/NotchedOutline.js +3 -1
  161. package/legacy/OutlinedInput/outlinedInputClasses.js +5 -1
  162. package/legacy/Popper/Popper.js +1 -1
  163. package/legacy/Select/Select.js +23 -7
  164. package/legacy/Slide/Slide.js +14 -14
  165. package/legacy/Snackbar/Snackbar.js +8 -8
  166. package/legacy/SpeedDial/SpeedDial.js +9 -7
  167. package/legacy/Step/StepContext.js +10 -2
  168. package/legacy/Step/index.js +3 -1
  169. package/legacy/SwipeableDrawer/SwipeableDrawer.js +8 -6
  170. package/legacy/ToggleButton/ToggleButton.js +8 -2
  171. package/legacy/Zoom/Zoom.js +8 -8
  172. package/legacy/index.js +3 -1
  173. package/legacy/locale/index.js +86 -78
  174. package/legacy/styles/makeStyles.js +1 -1
  175. package/legacy/styles/withStyles.js +1 -1
  176. package/legacy/styles/withTheme.js +1 -1
  177. package/locale/index.d.ts +68 -68
  178. package/locale/index.js +12 -6
  179. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  180. package/modern/ButtonBase/ButtonBase.js +1 -1
  181. package/modern/Chip/Chip.js +1 -0
  182. package/modern/Dialog/Dialog.js +10 -6
  183. package/modern/Drawer/Drawer.js +11 -9
  184. package/modern/Fade/Fade.js +8 -8
  185. package/modern/FilledInput/filledInputClasses.js +5 -1
  186. package/modern/Input/inputClasses.js +5 -1
  187. package/modern/OutlinedInput/NotchedOutline.js +3 -1
  188. package/modern/OutlinedInput/outlinedInputClasses.js +5 -1
  189. package/modern/Popper/Popper.js +1 -1
  190. package/modern/Select/Select.js +19 -7
  191. package/modern/Slide/Slide.js +14 -14
  192. package/modern/Snackbar/Snackbar.js +8 -8
  193. package/modern/SpeedDial/SpeedDial.js +9 -7
  194. package/modern/Step/StepContext.js +10 -2
  195. package/modern/Step/index.js +3 -1
  196. package/modern/SwipeableDrawer/SwipeableDrawer.js +8 -6
  197. package/modern/ToggleButton/ToggleButton.js +8 -2
  198. package/modern/Zoom/Zoom.js +8 -8
  199. package/modern/index.js +3 -1
  200. package/modern/locale/index.js +12 -6
  201. package/modern/styles/makeStyles.js +1 -1
  202. package/modern/styles/withStyles.js +1 -1
  203. package/modern/styles/withTheme.js +1 -1
  204. package/node/BottomNavigation/BottomNavigation.js +0 -0
  205. package/node/ButtonBase/ButtonBase.js +1 -1
  206. package/node/Chip/Chip.js +1 -0
  207. package/node/Dialog/Dialog.js +11 -7
  208. package/node/Drawer/Drawer.js +11 -10
  209. package/node/Fade/Fade.js +7 -9
  210. package/node/FilledInput/filledInputClasses.js +7 -1
  211. package/node/Input/inputClasses.js +7 -1
  212. package/node/OutlinedInput/NotchedOutline.js +3 -1
  213. package/node/OutlinedInput/outlinedInputClasses.js +7 -1
  214. package/node/Popper/Popper.js +1 -1
  215. package/node/Select/Select.js +22 -9
  216. package/node/Slide/Slide.js +14 -16
  217. package/node/Snackbar/Snackbar.js +8 -9
  218. package/node/SpeedDial/SpeedDial.js +9 -7
  219. package/node/Step/StepContext.js +11 -1
  220. package/node/Step/index.js +22 -1
  221. package/node/SwipeableDrawer/SwipeableDrawer.js +8 -7
  222. package/node/ToggleButton/ToggleButton.js +8 -2
  223. package/node/Zoom/Zoom.js +7 -9
  224. package/node/index.js +22 -1
  225. package/node/locale/index.js +12 -6
  226. package/node/styles/makeStyles.js +1 -1
  227. package/node/styles/withStyles.js +1 -1
  228. package/node/styles/withTheme.js +1 -1
  229. package/package.json +6 -6
  230. package/styles/components.d.ts +0 -339
  231. package/styles/index.d.ts +3 -0
  232. package/styles/makeStyles.js +1 -1
  233. package/styles/withStyles.js +1 -1
  234. package/styles/withTheme.js +1 -1
  235. package/transitions/index.d.ts +1 -1
  236. package/transitions/transition.d.ts +13 -13
  237. package/transitions/utils.d.ts +23 -23
  238. package/umd/material-ui.development.js +2441 -2295
  239. package/umd/material-ui.production.min.js +21 -21
  240. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  241. package/useTouchRipple/index.d.ts +1 -1
  242. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  243. package/utils/getScrollbarSize.d.ts +2 -2
  244. package/utils/ownerDocument.d.ts +2 -2
  245. package/utils/ownerWindow.d.ts +2 -2
  246. package/utils/setRef.d.ts +2 -2
@@ -1,28 +1,28 @@
1
- export default function darkScrollbar(options?: {
2
- track: string;
3
- thumb: string;
4
- active: string;
5
- }): {
6
- scrollbarColor: string;
7
- '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
- backgroundColor: string;
9
- };
10
- '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
- borderRadius: number;
12
- backgroundColor: string;
13
- minHeight: number;
14
- border: string;
15
- };
16
- '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
- backgroundColor: string;
18
- };
19
- '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
- backgroundColor: string;
21
- };
22
- '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
- backgroundColor: string;
24
- };
25
- '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
- backgroundColor: string;
27
- };
28
- };
1
+ export default function darkScrollbar(options?: {
2
+ track: string;
3
+ thumb: string;
4
+ active: string;
5
+ }): {
6
+ scrollbarColor: string;
7
+ '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
+ backgroundColor: string;
9
+ };
10
+ '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
+ borderRadius: number;
12
+ backgroundColor: string;
13
+ minHeight: number;
14
+ border: string;
15
+ };
16
+ '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
+ backgroundColor: string;
18
+ };
19
+ '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
+ backgroundColor: string;
21
+ };
22
+ '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
+ backgroundColor: string;
24
+ };
25
+ '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
+ backgroundColor: string;
27
+ };
28
+ };
package/index.d.ts CHANGED
@@ -326,6 +326,9 @@ export * from './Popover';
326
326
  export { default as Popper } from './Popper';
327
327
  export * from './Popper';
328
328
 
329
+ export { default as Portal } from './Portal';
330
+ export * from './Portal';
331
+
329
332
  export { default as Radio } from './Radio';
330
333
  export * from './Radio';
331
334
 
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.4.1
1
+ /** @license MUI v5.4.4
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -174,6 +174,8 @@ export { default as Popover } from './Popover';
174
174
  export * from './Popover';
175
175
  export { default as Popper } from './Popper';
176
176
  export * from './Popper';
177
+ export { default as Portal } from './Portal';
178
+ export * from './Portal';
177
179
  export { default as Radio } from './Radio';
178
180
  export * from './Radio';
179
181
  export { default as RadioGroup } from './RadioGroup';
@@ -1,12 +1,12 @@
1
- export interface SwitchBaseClasses {
2
- root: string;
3
- checked: string;
4
- disabled: string;
5
- input: string;
6
- edgeStart: string;
7
- edgeEnd: string;
8
- }
9
- export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
- export declare function getSwitchBaseUtilityClass(slot: string): string;
11
- declare const switchBaseClasses: SwitchBaseClasses;
12
- export default switchBaseClasses;
1
+ export interface SwitchBaseClasses {
2
+ root: string;
3
+ checked: string;
4
+ disabled: string;
5
+ input: string;
6
+ edgeStart: string;
7
+ edgeEnd: string;
8
+ }
9
+ export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
+ export declare function getSwitchBaseUtilityClass(slot: string): string;
11
+ declare const switchBaseClasses: SwitchBaseClasses;
12
+ export default switchBaseClasses;
File without changes
@@ -547,7 +547,7 @@ process.env.NODE_ENV !== "production" ? ButtonBase.propTypes
547
547
  TouchRippleProps: PropTypes.object,
548
548
 
549
549
  /**
550
- * A ref that points to the `TouchRippple` element.
550
+ * A ref that points to the `TouchRipple` element.
551
551
  */
552
552
  touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
553
553
  current: PropTypes.shape({
@@ -54,6 +54,7 @@ var ChipRoot = styled('div', {
54
54
  ownerState = _ref11.ownerState;
55
55
  var deleteIconColor = alpha(theme.palette.text.primary, 0.26);
56
56
  return _extends((_extends2 = {
57
+ maxWidth: '100%',
57
58
  fontFamily: theme.typography.fontFamily,
58
59
  fontSize: theme.typography.pxToRem(13),
59
60
  display: 'inline-flex',
@@ -9,13 +9,13 @@ import { unstable_useId as useId } from '@mui/utils';
9
9
  import capitalize from '../utils/capitalize';
10
10
  import Modal from '../Modal';
11
11
  import Fade from '../Fade';
12
- import { duration } from '../styles/createTransitions';
13
12
  import Paper from '../Paper';
14
13
  import useThemeProps from '../styles/useThemeProps';
15
14
  import styled from '../styles/styled';
16
15
  import dialogClasses, { getDialogUtilityClass } from './dialogClasses';
17
16
  import DialogContext from './DialogContext';
18
17
  import Backdrop from '../Backdrop';
18
+ import useTheme from '../styles/useTheme';
19
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
20
  var DialogBackdrop = styled(Backdrop, {
21
21
  name: 'MuiDialog',
@@ -139,10 +139,6 @@ var DialogPaper = styled(Paper, {
139
139
  maxWidth: '100%'
140
140
  }));
141
141
  });
142
- var defaultTransitionDuration = {
143
- enter: duration.enteringScreen,
144
- exit: duration.leavingScreen
145
- };
146
142
  /**
147
143
  * Dialogs are overlaid modal paper based components with a backdrop.
148
144
  */
@@ -152,6 +148,11 @@ var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
152
148
  props: inProps,
153
149
  name: 'MuiDialog'
154
150
  });
151
+ var theme = useTheme();
152
+ var defaultTransitionDuration = {
153
+ enter: theme.transitions.duration.enteringScreen,
154
+ exit: theme.transitions.duration.leavingScreen
155
+ };
155
156
 
156
157
  var ariaDescribedby = props['aria-describedby'],
157
158
  ariaLabelledbyProp = props['aria-labelledby'],
@@ -399,7 +400,10 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes
399
400
  /**
400
401
  * The duration for the transition, in milliseconds.
401
402
  * You may specify a single timeout for all transitions, or individually with an object.
402
- * @default { enter: duration.enteringScreen, exit: duration.leavingScreen }
403
+ * @default {
404
+ * enter: theme.transitions.duration.enteringScreen,
405
+ * exit: theme.transitions.duration.leavingScreen,
406
+ * }
403
407
  */
404
408
  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
405
409
  appear: PropTypes.number,
@@ -9,7 +9,6 @@ import Modal from '../Modal';
9
9
  import Slide from '../Slide';
10
10
  import Paper from '../Paper';
11
11
  import capitalize from '../utils/capitalize';
12
- import { duration } from '../styles/createTransitions';
13
12
  import useTheme from '../styles/useTheme';
14
13
  import useThemeProps from '../styles/useThemeProps';
15
14
  import styled, { rootShouldForwardProp } from '../styles/styled';
@@ -118,10 +117,6 @@ export function isHorizontal(anchor) {
118
117
  export function getAnchor(theme, anchor) {
119
118
  return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
120
119
  }
121
- var defaultTransitionDuration = {
122
- enter: duration.enteringScreen,
123
- exit: duration.leavingScreen
124
- };
125
120
  /**
126
121
  * The props of the [Modal](/api/modal/) component are available
127
122
  * when `variant="temporary"` is set.
@@ -132,6 +127,11 @@ var Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
132
127
  props: inProps,
133
128
  name: 'MuiDrawer'
134
129
  });
130
+ var theme = useTheme();
131
+ var defaultTransitionDuration = {
132
+ enter: theme.transitions.duration.enteringScreen,
133
+ exit: theme.transitions.duration.leavingScreen
134
+ };
135
135
  var _props$anchor = props.anchor,
136
136
  anchorProp = _props$anchor === void 0 ? 'left' : _props$anchor,
137
137
  BackdropProps = props.BackdropProps,
@@ -158,12 +158,11 @@ var Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
158
158
  transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
159
159
  _props$variant = props.variant,
160
160
  variant = _props$variant === void 0 ? 'temporary' : _props$variant,
161
- other = _objectWithoutProperties(props, ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"]);
162
-
163
- var theme = useTheme(); // Let's assume that the Drawer will always be rendered on user space.
161
+ other = _objectWithoutProperties(props, ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"]); // Let's assume that the Drawer will always be rendered on user space.
164
162
  // We use this state is order to skip the appear transition during the
165
163
  // initial mount of the component.
166
164
 
165
+
167
166
  var mounted = React.useRef(false);
168
167
  React.useEffect(function () {
169
168
  mounted.current = true;
@@ -317,7 +316,10 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes
317
316
  /**
318
317
  * The duration for the transition, in milliseconds.
319
318
  * You may specify a single timeout for all transitions, or individually with an object.
320
- * @default { enter: duration.enteringScreen, exit: duration.leavingScreen }
319
+ * @default {
320
+ * enter: theme.transitions.duration.enteringScreen,
321
+ * exit: theme.transitions.duration.leavingScreen,
322
+ * }
321
323
  */
322
324
  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
323
325
  appear: PropTypes.number,
@@ -4,7 +4,6 @@ import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { Transition } from 'react-transition-group';
6
6
  import { elementAcceptingRef } from '@mui/utils';
7
- import { duration } from '../styles/createTransitions';
8
7
  import useTheme from '../styles/useTheme';
9
8
  import { reflow, getTransitionProps } from '../transitions/utils';
10
9
  import useForkRef from '../utils/useForkRef';
@@ -17,16 +16,18 @@ var styles = {
17
16
  opacity: 1
18
17
  }
19
18
  };
20
- var defaultTimeout = {
21
- enter: duration.enteringScreen,
22
- exit: duration.leavingScreen
23
- };
24
19
  /**
25
20
  * The Fade transition is used by the [Modal](/components/modal/) component.
26
21
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
27
22
  */
28
23
 
29
24
  var Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
25
+ var theme = useTheme();
26
+ var defaultTimeout = {
27
+ enter: theme.transitions.duration.enteringScreen,
28
+ exit: theme.transitions.duration.leavingScreen
29
+ };
30
+
30
31
  var addEndListener = props.addEndListener,
31
32
  _props$appear = props.appear,
32
33
  appear = _props$appear === void 0 ? true : _props$appear,
@@ -46,7 +47,6 @@ var Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
46
47
  TransitionComponent = _props$TransitionComp === void 0 ? Transition : _props$TransitionComp,
47
48
  other = _objectWithoutProperties(props, ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]);
48
49
 
49
- var theme = useTheme();
50
50
  var enableStrictModeCompat = true;
51
51
  var nodeRef = React.useRef(null);
52
52
  var foreignRef = useForkRef(_children.ref, ref);
@@ -214,8 +214,8 @@ process.env.NODE_ENV !== "production" ? Fade.propTypes
214
214
  * The duration for the transition, in milliseconds.
215
215
  * You may specify a single timeout for all transitions, or individually with an object.
216
216
  * @default {
217
- * enter: duration.enteringScreen,
218
- * exit: duration.leavingScreen,
217
+ * enter: theme.transitions.duration.enteringScreen,
218
+ * exit: theme.transitions.duration.leavingScreen,
219
219
  * }
220
220
  */
221
221
  timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
@@ -1,6 +1,10 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import { generateUtilityClasses, generateUtilityClass } from '@mui/base';
3
+ import { inputBaseClasses } from '../InputBase';
2
4
  export function getFilledInputUtilityClass(slot) {
3
5
  return generateUtilityClass('MuiFilledInput', slot);
4
6
  }
5
- var filledInputClasses = generateUtilityClasses('MuiFilledInput', ['root', 'colorSecondary', 'underline', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'hiddenLabel', 'input', 'inputSizeSmall', 'inputHiddenLabel', 'inputMultiline', 'inputAdornedStart', 'inputAdornedEnd']);
7
+
8
+ var filledInputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiFilledInput', ['root', 'underline', 'input']));
9
+
6
10
  export default filledInputClasses;
@@ -1,6 +1,10 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import { generateUtilityClasses, generateUtilityClass } from '@mui/base';
3
+ import { inputBaseClasses } from '../InputBase';
2
4
  export function getInputUtilityClass(slot) {
3
5
  return generateUtilityClass('MuiInput', slot);
4
6
  }
5
- var inputClasses = generateUtilityClasses('MuiInput', ['root', 'formControl', 'focused', 'disabled', 'colorSecondary', 'underline', 'error', 'sizeSmall', 'multiline', 'fullWidth', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch']);
7
+
8
+ var inputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiInput', ['root', 'underline', 'input']));
9
+
6
10
  export default inputClasses;
@@ -27,7 +27,9 @@ var NotchedOutlineLegend = styled('legend')(function (_ref) {
27
27
  var ownerState = _ref.ownerState,
28
28
  theme = _ref.theme;
29
29
  return _extends({
30
- float: 'unset'
30
+ float: 'unset',
31
+ // Fix conflict with bootstrap
32
+ overflow: 'hidden'
31
33
  }, !ownerState.withLabel && {
32
34
  padding: 0,
33
35
  lineHeight: '11px',
@@ -1,6 +1,10 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import { generateUtilityClasses, generateUtilityClass } from '@mui/base';
3
+ import { inputBaseClasses } from '../InputBase';
2
4
  export function getOutlinedInputUtilityClass(slot) {
3
5
  return generateUtilityClass('MuiOutlinedInput', slot);
4
6
  }
5
- var outlinedInputClasses = generateUtilityClasses('MuiOutlinedInput', ['root', 'colorSecondary', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'notchedOutline', 'input', 'inputSizeSmall', 'inputMultiline', 'inputAdornedStart', 'inputAdornedEnd']);
7
+
8
+ var outlinedInputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiOutlinedInput', ['root', 'notchedOutline', 'input']));
9
+
6
10
  export default outlinedInputClasses;
@@ -90,7 +90,7 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
90
90
  effect: PropTypes.func,
91
91
  enabled: PropTypes.bool,
92
92
  fn: PropTypes.func,
93
- name: PropTypes.any.isRequired,
93
+ name: PropTypes.any,
94
94
  options: PropTypes.object,
95
95
  phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),
96
96
  requires: PropTypes.arrayOf(PropTypes.string),
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
 
4
- var _Input, _FilledInput;
4
+ var _StyledInput, _StyledFilledInput;
5
5
 
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -17,6 +17,7 @@ import FilledInput from '../FilledInput';
17
17
  import OutlinedInput from '../OutlinedInput';
18
18
  import useThemeProps from '../styles/useThemeProps';
19
19
  import useForkRef from '../utils/useForkRef';
20
+ import styled, { rootShouldForwardProp } from '../styles/styled';
20
21
  import { jsx as _jsx } from "react/jsx-runtime";
21
22
 
22
23
  var useUtilityClasses = function useUtilityClasses(ownerState) {
@@ -24,6 +25,19 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
24
25
  return classes;
25
26
  };
26
27
 
28
+ var styledRootConfig = {
29
+ name: 'MuiSelect',
30
+ overridesResolver: function overridesResolver(props, styles) {
31
+ return styles.root;
32
+ },
33
+ shouldForwardProp: function shouldForwardProp(prop) {
34
+ return rootShouldForwardProp(prop) && prop !== 'variant';
35
+ },
36
+ slot: 'Root'
37
+ };
38
+ var StyledInput = styled(Input, styledRootConfig)('');
39
+ var StyledOutlinedInput = styled(OutlinedInput, styledRootConfig)('');
40
+ var StyledFilledInput = styled(FilledInput, styledRootConfig)('');
27
41
  var Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
28
42
  var props = useThemeProps({
29
43
  name: 'MuiSelect',
@@ -58,7 +72,7 @@ var Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
58
72
  renderValue = props.renderValue,
59
73
  SelectDisplayProps = props.SelectDisplayProps,
60
74
  _props$variant = props.variant,
61
- variantProps = _props$variant === void 0 ? 'outlined' : _props$variant,
75
+ variantProp = _props$variant === void 0 ? 'outlined' : _props$variant,
62
76
  other = _objectWithoutProperties(props, ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"]);
63
77
 
64
78
  var inputComponent = native ? NativeSelectInput : SelectInput;
@@ -68,16 +82,17 @@ var Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
68
82
  muiFormControl: muiFormControl,
69
83
  states: ['variant']
70
84
  });
71
- var variant = fcs.variant || variantProps;
85
+ var variant = fcs.variant || variantProp;
72
86
  var InputComponent = input || {
73
- standard: _Input || (_Input = /*#__PURE__*/_jsx(Input, {})),
74
- outlined: /*#__PURE__*/_jsx(OutlinedInput, {
87
+ standard: _StyledInput || (_StyledInput = /*#__PURE__*/_jsx(StyledInput, {})),
88
+ outlined: /*#__PURE__*/_jsx(StyledOutlinedInput, {
75
89
  label: label
76
90
  }),
77
- filled: _FilledInput || (_FilledInput = /*#__PURE__*/_jsx(FilledInput, {}))
91
+ filled: _StyledFilledInput || (_StyledFilledInput = /*#__PURE__*/_jsx(StyledFilledInput, {}))
78
92
  }[variant];
79
93
 
80
94
  var ownerState = _extends({}, props, {
95
+ variant: variant,
81
96
  classes: classesProp
82
97
  });
83
98
 
@@ -116,7 +131,8 @@ var Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
116
131
  notched: true
117
132
  } : {}, {
118
133
  ref: inputComponentRef,
119
- className: clsx(InputComponent.props.className, className)
134
+ className: clsx(InputComponent.props.className, className),
135
+ variant: variant
120
136
  }, other));
121
137
  });
122
138
  process.env.NODE_ENV !== "production" ? Select.propTypes
@@ -7,7 +7,6 @@ import { elementAcceptingRef, HTMLElementType, chainPropTypes } from '@mui/utils
7
7
  import debounce from '../utils/debounce';
8
8
  import useForkRef from '../utils/useForkRef';
9
9
  import useTheme from '../styles/useTheme';
10
- import { duration, easing } from '../styles/createTransitions';
11
10
  import { reflow, getTransitionProps } from '../transitions/utils';
12
11
  import { ownerWindow } from '../utils'; // Translate the node so it can't be seen on the screen.
13
12
  // Later, we're going to translate the node back to its original location with `none`.
@@ -81,20 +80,22 @@ export function setTranslateValue(direction, node, containerProp) {
81
80
  node.style.transform = transform;
82
81
  }
83
82
  }
84
- var defaultEasing = {
85
- enter: easing.easeOut,
86
- exit: easing.sharp
87
- };
88
- var defaultTimeout = {
89
- enter: duration.enteringScreen,
90
- exit: duration.leavingScreen
91
- };
92
83
  /**
93
84
  * The Slide transition is used by the [Drawer](/components/drawers/) component.
94
85
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
95
86
  */
96
87
 
97
88
  var Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
89
+ var theme = useTheme();
90
+ var defaultEasing = {
91
+ enter: theme.transitions.easing.easeOut,
92
+ exit: theme.transitions.easing.sharp
93
+ };
94
+ var defaultTimeout = {
95
+ enter: theme.transitions.duration.enteringScreen,
96
+ exit: theme.transitions.duration.leavingScreen
97
+ };
98
+
98
99
  var addEndListener = props.addEndListener,
99
100
  _props$appear = props.appear,
100
101
  appear = _props$appear === void 0 ? true : _props$appear,
@@ -118,7 +119,6 @@ var Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
118
119
  TransitionComponent = _props$TransitionComp === void 0 ? Transition : _props$TransitionComp,
119
120
  other = _objectWithoutProperties(props, ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]);
120
121
 
121
- var theme = useTheme();
122
122
  var childrenRef = React.useRef(null);
123
123
  var handleRefIntermediary = useForkRef(_children.ref, childrenRef);
124
124
  var handleRef = useForkRef(handleRefIntermediary, ref);
@@ -308,8 +308,8 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes
308
308
  * The transition timing function.
309
309
  * You may specify a single easing or a object containing enter and exit values.
310
310
  * @default {
311
- * enter: easing.easeOut,
312
- * exit: easing.sharp,
311
+ * enter: theme.transitions.easing.easeOut,
312
+ * exit: theme.transitions.easing.sharp,
313
313
  * }
314
314
  */
315
315
  easing: PropTypes.oneOfType([PropTypes.shape({
@@ -361,8 +361,8 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes
361
361
  * The duration for the transition, in milliseconds.
362
362
  * You may specify a single timeout for all transitions, or individually with an object.
363
363
  * @default {
364
- * enter: duration.enteringScreen,
365
- * exit: duration.leavingScreen,
364
+ * enter: theme.transitions.duration.enteringScreen,
365
+ * exit: theme.transitions.duration.leavingScreen,
366
366
  * }
367
367
  */
368
368
  timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
@@ -9,7 +9,6 @@ import ClickAwayListener from '@mui/base/ClickAwayListener';
9
9
  import styled from '../styles/styled';
10
10
  import useTheme from '../styles/useTheme';
11
11
  import useThemeProps from '../styles/useThemeProps';
12
- import { duration } from '../styles/createTransitions';
13
12
  import useEventCallback from '../utils/useEventCallback';
14
13
  import capitalize from '../utils/capitalize';
15
14
  import Grow from '../Grow';
@@ -86,6 +85,11 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
86
85
  props: inProps,
87
86
  name: 'MuiSnackbar'
88
87
  });
88
+ var theme = useTheme();
89
+ var defaultTransitionDuration = {
90
+ enter: theme.transitions.duration.enteringScreen,
91
+ exit: theme.transitions.duration.leavingScreen
92
+ };
89
93
  var action = props.action,
90
94
  _props$anchorOrigin = props.anchorOrigin;
91
95
  _props$anchorOrigin = _props$anchorOrigin === void 0 ? {
@@ -113,10 +117,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
113
117
  _props$TransitionComp = props.TransitionComponent,
114
118
  TransitionComponent = _props$TransitionComp === void 0 ? Grow : _props$TransitionComp,
115
119
  _props$transitionDura = props.transitionDuration,
116
- transitionDuration = _props$transitionDura === void 0 ? {
117
- enter: duration.enteringScreen,
118
- exit: duration.leavingScreen
119
- } : _props$transitionDura,
120
+ transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
120
121
  _props$TransitionProp = props.TransitionProps;
121
122
  _props$TransitionProp = _props$TransitionProp === void 0 ? {} : _props$TransitionProp;
122
123
 
@@ -125,7 +126,6 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
125
126
  TransitionProps = _objectWithoutProperties(_props$TransitionProp, ["onEnter", "onExited"]),
126
127
  other = _objectWithoutProperties(props, ["action", "anchorOrigin", "autoHideDuration", "children", "className", "ClickAwayListenerProps", "ContentProps", "disableWindowBlurListener", "message", "onBlur", "onClose", "onFocus", "onMouseEnter", "onMouseLeave", "open", "resumeHideDuration", "TransitionComponent", "transitionDuration", "TransitionProps"]);
127
128
 
128
- var theme = useTheme();
129
129
  var isRtl = theme.direction === 'rtl';
130
130
 
131
131
  var ownerState = _extends({}, props, {
@@ -450,8 +450,8 @@ process.env.NODE_ENV !== "production" ? Snackbar.propTypes
450
450
  * The duration for the transition, in milliseconds.
451
451
  * You may specify a single timeout for all transitions, or individually with an object.
452
452
  * @default {
453
- * enter: duration.enteringScreen,
454
- * exit: duration.leavingScreen,
453
+ * enter: theme.transitions.duration.enteringScreen,
454
+ * exit: theme.transitions.duration.leavingScreen,
455
455
  * }
456
456
  */
457
457
  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
@@ -9,7 +9,7 @@ import clsx from 'clsx';
9
9
  import { unstable_composeClasses as composeClasses } from '@mui/base';
10
10
  import styled from '../styles/styled';
11
11
  import useThemeProps from '../styles/useThemeProps';
12
- import { duration } from '../styles/createTransitions';
12
+ import useTheme from '../styles/useTheme';
13
13
  import Zoom from '../Zoom';
14
14
  import Fab from '../Fab';
15
15
  import capitalize from '../utils/capitalize';
@@ -132,6 +132,11 @@ var SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref) {
132
132
  props: inProps,
133
133
  name: 'MuiSpeedDial'
134
134
  });
135
+ var theme = useTheme();
136
+ var defaultTransitionDuration = {
137
+ enter: theme.transitions.duration.enteringScreen,
138
+ exit: theme.transitions.duration.leavingScreen
139
+ };
135
140
  var ariaLabel = props.ariaLabel,
136
141
  _props$FabProps = props.FabProps;
137
142
  _props$FabProps = _props$FabProps === void 0 ? {} : _props$FabProps;
@@ -157,10 +162,7 @@ var SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref) {
157
162
  _props$TransitionComp = props.TransitionComponent,
158
163
  TransitionComponent = _props$TransitionComp === void 0 ? Zoom : _props$TransitionComp,
159
164
  _props$transitionDura = props.transitionDuration,
160
- transitionDuration = _props$transitionDura === void 0 ? {
161
- enter: duration.enteringScreen,
162
- exit: duration.leavingScreen
163
- } : _props$transitionDura,
165
+ transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
164
166
  TransitionProps = props.TransitionProps,
165
167
  other = _objectWithoutProperties(props, ["ariaLabel", "FabProps", "children", "className", "direction", "hidden", "icon", "onBlur", "onClose", "onFocus", "onKeyDown", "onMouseEnter", "onMouseLeave", "onOpen", "open", "openIcon", "TransitionComponent", "transitionDuration", "TransitionProps"]);
166
168
 
@@ -541,8 +543,8 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes
541
543
  * The duration for the transition, in milliseconds.
542
544
  * You may specify a single timeout for all transitions, or individually with an object.
543
545
  * @default {
544
- * enter: duration.enteringScreen,
545
- * exit: duration.leavingScreen,
546
+ * enter: theme.transitions.duration.enteringScreen,
547
+ * exit: theme.transitions.duration.leavingScreen,
546
548
  * }
547
549
  */
548
550
  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
@@ -1,12 +1,20 @@
1
1
  import * as React from 'react';
2
+
2
3
  /**
3
- * @ignore - internal component.
4
+ * Provides information about the current step in Stepper.
4
5
  */
5
-
6
6
  var StepContext = /*#__PURE__*/React.createContext({});
7
7
 
8
8
  if (process.env.NODE_ENV !== 'production') {
9
9
  StepContext.displayName = 'StepContext';
10
10
  }
11
+ /**
12
+ * Returns the current StepContext or an empty object if no StepContext
13
+ * has been defined in the component tree.
14
+ */
15
+
11
16
 
17
+ export function useStepContext() {
18
+ return React.useContext(StepContext);
19
+ }
12
20
  export default StepContext;
@@ -1,3 +1,5 @@
1
1
  export { default } from './Step';
2
2
  export { default as stepClasses } from './stepClasses';
3
- export * from './stepClasses';
3
+ export * from './stepClasses';
4
+ export { default as StepContext } from './StepContext';
5
+ export * from './StepContext';