@mui/material 7.1.0 → 7.1.1

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 (214) hide show
  1. package/Accordion/Accordion.d.ts +1 -1
  2. package/AccordionActions/AccordionActions.d.ts +2 -1
  3. package/AccordionDetails/AccordionDetails.d.ts +2 -1
  4. package/AccordionSummary/AccordionSummary.d.ts +2 -1
  5. package/Alert/Alert.d.ts +4 -1
  6. package/AlertTitle/AlertTitle.d.ts +2 -1
  7. package/AppBar/AppBar.d.ts +1 -1
  8. package/Autocomplete/Autocomplete.d.ts +10 -1
  9. package/Autocomplete/Autocomplete.js +31 -18
  10. package/AvatarGroup/AvatarGroup.d.ts +1 -1
  11. package/BottomNavigation/BottomNavigation.d.ts +1 -1
  12. package/BottomNavigationAction/BottomNavigationAction.d.ts +2 -1
  13. package/ButtonBase/TouchRipple.d.ts +1 -1
  14. package/ButtonGroup/ButtonGroup.d.ts +1 -1
  15. package/CHANGELOG.md +72 -0
  16. package/Card/Card.d.ts +1 -1
  17. package/CardActionArea/CardActionArea.d.ts +2 -1
  18. package/CardActions/CardActions.d.ts +2 -1
  19. package/CardContent/CardContent.d.ts +1 -1
  20. package/CardHeader/CardHeader.d.ts +1 -1
  21. package/CardMedia/CardMedia.d.ts +1 -1
  22. package/Checkbox/Checkbox.d.ts +2 -1
  23. package/Chip/Chip.d.ts +28 -2
  24. package/Chip/Chip.js +65 -14
  25. package/CircularProgress/CircularProgress.d.ts +2 -1
  26. package/Collapse/Collapse.d.ts +2 -1
  27. package/Dialog/Dialog.d.ts +2 -1
  28. package/DialogActions/DialogActions.d.ts +2 -1
  29. package/DialogContent/DialogContent.d.ts +2 -1
  30. package/Divider/Divider.d.ts +1 -1
  31. package/Drawer/Drawer.d.ts +2 -1
  32. package/Fab/Fab.d.ts +1 -1
  33. package/FilledInput/FilledInput.d.ts +2 -1
  34. package/FormControlLabel/FormControlLabel.d.ts +2 -1
  35. package/FormGroup/FormGroup.d.ts +2 -1
  36. package/IconButton/IconButton.d.ts +1 -1
  37. package/ImageList/ImageList.d.ts +1 -1
  38. package/ImageListItem/ImageListItem.d.ts +1 -1
  39. package/ImageListItemBar/ImageListItemBar.d.ts +2 -1
  40. package/Input/Input.d.ts +2 -1
  41. package/InputAdornment/InputAdornment.d.ts +1 -1
  42. package/InputBase/InputBase.d.ts +1 -1
  43. package/LinearProgress/LinearProgress.d.ts +2 -1
  44. package/List/List.d.ts +1 -1
  45. package/ListItemAvatar/ListItemAvatar.d.ts +2 -1
  46. package/ListItemIcon/ListItemIcon.d.ts +2 -1
  47. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -1
  48. package/ListItemText/ListItemText.d.ts +2 -1
  49. package/ListSubheader/ListSubheader.d.ts +1 -1
  50. package/Menu/Menu.d.ts +2 -2
  51. package/MobileStepper/MobileStepper.d.ts +2 -1
  52. package/NativeSelect/NativeSelect.d.ts +2 -1
  53. package/NativeSelect/NativeSelectInput.d.ts +1 -1
  54. package/OutlinedInput/NotchedOutline.d.ts +1 -1
  55. package/OutlinedInput/OutlinedInput.d.ts +3 -1
  56. package/Pagination/Pagination.d.ts +1 -1
  57. package/Popover/Popover.d.ts +3 -2
  58. package/Radio/Radio.d.ts +2 -1
  59. package/Rating/Rating.d.ts +1 -1
  60. package/Select/Select.d.ts +2 -1
  61. package/Select/SelectInput.d.ts +1 -1
  62. package/Skeleton/Skeleton.d.ts +1 -1
  63. package/Snackbar/Snackbar.d.ts +1 -1
  64. package/SnackbarContent/SnackbarContent.d.ts +1 -1
  65. package/SnackbarContent/SnackbarContent.js +2 -5
  66. package/SpeedDial/SpeedDial.d.ts +1 -1
  67. package/SpeedDialAction/SpeedDialAction.d.ts +1 -1
  68. package/SpeedDialIcon/SpeedDialIcon.d.ts +1 -1
  69. package/StepConnector/StepConnector.d.ts +1 -1
  70. package/StepContent/StepContent.d.ts +2 -1
  71. package/StepIcon/StepIcon.d.ts +2 -1
  72. package/StepLabel/StepLabel.d.ts +2 -2
  73. package/Switch/Switch.d.ts +2 -1
  74. package/Tab/Tab.d.ts +1 -1
  75. package/TabScrollButton/TabScrollButton.d.ts +2 -1
  76. package/Table/Table.d.ts +1 -1
  77. package/TableBody/TableBody.d.ts +1 -1
  78. package/TableCell/TableCell.d.ts +2 -1
  79. package/TableContainer/TableContainer.d.ts +1 -1
  80. package/TableFooter/TableFooter.d.ts +1 -1
  81. package/TableHead/TableHead.d.ts +1 -1
  82. package/TablePagination/TablePagination.d.ts +1 -1
  83. package/TablePagination/TablePagination.js +1 -1
  84. package/{TablePagination → TablePaginationActions}/TablePaginationActions.d.ts +11 -0
  85. package/{TablePagination → TablePaginationActions}/TablePaginationActions.js +60 -25
  86. package/TablePaginationActions/index.d.ts +4 -0
  87. package/TablePaginationActions/index.js +20 -0
  88. package/TablePaginationActions/tablePaginationActionsClasses.d.ts +8 -0
  89. package/TablePaginationActions/tablePaginationActionsClasses.js +15 -0
  90. package/TableRow/TableRow.d.ts +1 -1
  91. package/TableSortLabel/TableSortLabel.d.ts +1 -1
  92. package/TextField/TextField.d.ts +2 -2
  93. package/ToggleButton/ToggleButton.d.ts +1 -1
  94. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  95. package/Toolbar/Toolbar.d.ts +1 -1
  96. package/Tooltip/Tooltip.d.ts +2 -1
  97. package/esm/Accordion/Accordion.d.ts +1 -1
  98. package/esm/AccordionActions/AccordionActions.d.ts +2 -1
  99. package/esm/AccordionDetails/AccordionDetails.d.ts +2 -1
  100. package/esm/AccordionSummary/AccordionSummary.d.ts +2 -1
  101. package/esm/Alert/Alert.d.ts +4 -1
  102. package/esm/AlertTitle/AlertTitle.d.ts +2 -1
  103. package/esm/AppBar/AppBar.d.ts +1 -1
  104. package/esm/Autocomplete/Autocomplete.d.ts +10 -1
  105. package/esm/Autocomplete/Autocomplete.js +31 -18
  106. package/esm/AvatarGroup/AvatarGroup.d.ts +1 -1
  107. package/esm/BottomNavigation/BottomNavigation.d.ts +1 -1
  108. package/esm/BottomNavigationAction/BottomNavigationAction.d.ts +2 -1
  109. package/esm/ButtonBase/TouchRipple.d.ts +1 -1
  110. package/esm/ButtonGroup/ButtonGroup.d.ts +1 -1
  111. package/esm/Card/Card.d.ts +1 -1
  112. package/esm/CardActionArea/CardActionArea.d.ts +2 -1
  113. package/esm/CardActions/CardActions.d.ts +2 -1
  114. package/esm/CardContent/CardContent.d.ts +1 -1
  115. package/esm/CardHeader/CardHeader.d.ts +1 -1
  116. package/esm/CardMedia/CardMedia.d.ts +1 -1
  117. package/esm/Checkbox/Checkbox.d.ts +2 -1
  118. package/esm/Chip/Chip.d.ts +28 -2
  119. package/esm/Chip/Chip.js +65 -14
  120. package/esm/CircularProgress/CircularProgress.d.ts +2 -1
  121. package/esm/Collapse/Collapse.d.ts +2 -1
  122. package/esm/Dialog/Dialog.d.ts +2 -1
  123. package/esm/DialogActions/DialogActions.d.ts +2 -1
  124. package/esm/DialogContent/DialogContent.d.ts +2 -1
  125. package/esm/Divider/Divider.d.ts +1 -1
  126. package/esm/Drawer/Drawer.d.ts +2 -1
  127. package/esm/Fab/Fab.d.ts +1 -1
  128. package/esm/FilledInput/FilledInput.d.ts +2 -1
  129. package/esm/FormControlLabel/FormControlLabel.d.ts +2 -1
  130. package/esm/FormGroup/FormGroup.d.ts +2 -1
  131. package/esm/IconButton/IconButton.d.ts +1 -1
  132. package/esm/ImageList/ImageList.d.ts +1 -1
  133. package/esm/ImageListItem/ImageListItem.d.ts +1 -1
  134. package/esm/ImageListItemBar/ImageListItemBar.d.ts +2 -1
  135. package/esm/Input/Input.d.ts +2 -1
  136. package/esm/InputAdornment/InputAdornment.d.ts +1 -1
  137. package/esm/InputBase/InputBase.d.ts +1 -1
  138. package/esm/LinearProgress/LinearProgress.d.ts +2 -1
  139. package/esm/List/List.d.ts +1 -1
  140. package/esm/ListItemAvatar/ListItemAvatar.d.ts +2 -1
  141. package/esm/ListItemIcon/ListItemIcon.d.ts +2 -1
  142. package/esm/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -1
  143. package/esm/ListItemText/ListItemText.d.ts +2 -1
  144. package/esm/ListSubheader/ListSubheader.d.ts +1 -1
  145. package/esm/Menu/Menu.d.ts +2 -2
  146. package/esm/MobileStepper/MobileStepper.d.ts +2 -1
  147. package/esm/NativeSelect/NativeSelect.d.ts +2 -1
  148. package/esm/NativeSelect/NativeSelectInput.d.ts +1 -1
  149. package/esm/OutlinedInput/NotchedOutline.d.ts +1 -1
  150. package/esm/OutlinedInput/OutlinedInput.d.ts +3 -1
  151. package/esm/Pagination/Pagination.d.ts +1 -1
  152. package/esm/Popover/Popover.d.ts +3 -2
  153. package/esm/Radio/Radio.d.ts +2 -1
  154. package/esm/Rating/Rating.d.ts +1 -1
  155. package/esm/Select/Select.d.ts +2 -1
  156. package/esm/Select/SelectInput.d.ts +1 -1
  157. package/esm/Skeleton/Skeleton.d.ts +1 -1
  158. package/esm/Snackbar/Snackbar.d.ts +1 -1
  159. package/esm/SnackbarContent/SnackbarContent.d.ts +1 -1
  160. package/esm/SnackbarContent/SnackbarContent.js +2 -5
  161. package/esm/SpeedDial/SpeedDial.d.ts +1 -1
  162. package/esm/SpeedDialAction/SpeedDialAction.d.ts +1 -1
  163. package/esm/SpeedDialIcon/SpeedDialIcon.d.ts +1 -1
  164. package/esm/StepConnector/StepConnector.d.ts +1 -1
  165. package/esm/StepContent/StepContent.d.ts +2 -1
  166. package/esm/StepIcon/StepIcon.d.ts +2 -1
  167. package/esm/StepLabel/StepLabel.d.ts +2 -2
  168. package/esm/Switch/Switch.d.ts +2 -1
  169. package/esm/Tab/Tab.d.ts +1 -1
  170. package/esm/TabScrollButton/TabScrollButton.d.ts +2 -1
  171. package/esm/Table/Table.d.ts +1 -1
  172. package/esm/TableBody/TableBody.d.ts +1 -1
  173. package/esm/TableCell/TableCell.d.ts +2 -1
  174. package/esm/TableContainer/TableContainer.d.ts +1 -1
  175. package/esm/TableFooter/TableFooter.d.ts +1 -1
  176. package/esm/TableHead/TableHead.d.ts +1 -1
  177. package/esm/TablePagination/TablePagination.d.ts +1 -1
  178. package/esm/TablePagination/TablePagination.js +1 -1
  179. package/esm/{TablePagination → TablePaginationActions}/TablePaginationActions.d.ts +11 -0
  180. package/esm/{TablePagination → TablePaginationActions}/TablePaginationActions.js +60 -27
  181. package/esm/TablePaginationActions/index.d.ts +4 -0
  182. package/esm/TablePaginationActions/index.js +2 -0
  183. package/esm/TablePaginationActions/tablePaginationActionsClasses.d.ts +8 -0
  184. package/esm/TablePaginationActions/tablePaginationActionsClasses.js +7 -0
  185. package/esm/TableRow/TableRow.d.ts +1 -1
  186. package/esm/TableSortLabel/TableSortLabel.d.ts +1 -1
  187. package/esm/TextField/TextField.d.ts +2 -2
  188. package/esm/ToggleButton/ToggleButton.d.ts +1 -1
  189. package/esm/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  190. package/esm/Toolbar/Toolbar.d.ts +1 -1
  191. package/esm/Tooltip/Tooltip.d.ts +2 -1
  192. package/esm/index.d.ts +3 -43
  193. package/esm/index.js +3 -1
  194. package/esm/internal/SwitchBase.d.ts +1 -1
  195. package/esm/internal/index.d.ts +17 -0
  196. package/esm/internal/index.js +1 -0
  197. package/esm/styles/components.d.ts +5 -0
  198. package/esm/styles/index.d.ts +19 -0
  199. package/esm/styles/overrides.d.ts +2 -0
  200. package/esm/styles/props.d.ts +2 -0
  201. package/esm/useAutocomplete/useAutocomplete.js +0 -1
  202. package/esm/version/index.js +2 -2
  203. package/index.d.ts +3 -43
  204. package/index.js +20 -1
  205. package/internal/SwitchBase.d.ts +1 -1
  206. package/internal/index.d.ts +17 -0
  207. package/internal/index.js +5 -0
  208. package/package.json +6 -6
  209. package/styles/components.d.ts +5 -0
  210. package/styles/index.d.ts +19 -0
  211. package/styles/overrides.d.ts +2 -0
  212. package/styles/props.d.ts +2 -0
  213. package/useAutocomplete/useAutocomplete.js +0 -1
  214. package/version/index.js +2 -2
package/esm/Chip/Chip.js CHANGED
@@ -15,6 +15,7 @@ import memoTheme from "../utils/memoTheme.js";
15
15
  import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.js";
16
16
  import { useDefaultProps } from "../DefaultPropsProvider/index.js";
17
17
  import chipClasses, { getChipUtilityClass } from "./chipClasses.js";
18
+ import useSlot from "../utils/useSlot.js";
18
19
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
20
  const useUtilityClasses = ownerState => {
20
21
  const {
@@ -371,6 +372,8 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
371
372
  tabIndex,
372
373
  skipFocusWhenDisabled = false,
373
374
  // TODO v6: Rename to `focusableWhenDisabled`.
375
+ slots = {},
376
+ slotProps = {},
374
377
  ...other
375
378
  } = props;
376
379
  const chipRef = React.useRef(null);
@@ -452,21 +455,53 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
452
455
  console.error('MUI: The Chip component can not handle the avatar ' + 'and the icon prop at the same time. Pick one.');
453
456
  }
454
457
  }
455
- return /*#__PURE__*/_jsxs(ChipRoot, {
456
- as: component,
457
- className: clsx(classes.root, className),
458
- disabled: clickable && disabled ? true : undefined,
459
- onClick: onClick,
460
- onKeyDown: handleKeyDown,
461
- onKeyUp: handleKeyUp,
458
+ const externalForwardedProps = {
459
+ slots,
460
+ slotProps
461
+ };
462
+ const [RootSlot, rootProps] = useSlot('root', {
463
+ elementType: ChipRoot,
464
+ externalForwardedProps: {
465
+ ...externalForwardedProps,
466
+ ...other
467
+ },
468
+ ownerState,
469
+ // The `component` prop is preserved because `Chip` relies on it for internal logic. If `shouldForwardComponentProp` were `false`, `useSlot` would remove the `component` prop, potentially breaking the component's behavior.
470
+ shouldForwardComponentProp: true,
462
471
  ref: handleRef,
463
- tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,
464
- ownerState: ownerState,
465
- ...moreProps,
466
- ...other,
467
- children: [avatar || icon, /*#__PURE__*/_jsx(ChipLabel, {
468
- className: classes.label,
469
- ownerState: ownerState,
472
+ className: clsx(classes.root, className),
473
+ additionalProps: {
474
+ disabled: clickable && disabled ? true : undefined,
475
+ tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,
476
+ ...moreProps
477
+ },
478
+ getSlotProps: handlers => ({
479
+ ...handlers,
480
+ onClick: event => {
481
+ handlers.onClick?.(event);
482
+ onClick(event);
483
+ },
484
+ onKeyDown: event => {
485
+ handlers.onKeyDown?.(event);
486
+ handleKeyDown(event);
487
+ },
488
+ onKeyUp: event => {
489
+ handlers.onKeyUp?.(event);
490
+ handleKeyUp(event);
491
+ }
492
+ })
493
+ });
494
+ const [LabelSlot, labelProps] = useSlot('label', {
495
+ elementType: ChipLabel,
496
+ externalForwardedProps,
497
+ ownerState,
498
+ className: classes.label
499
+ });
500
+ return /*#__PURE__*/_jsxs(RootSlot, {
501
+ as: component,
502
+ ...rootProps,
503
+ children: [avatar || icon, /*#__PURE__*/_jsx(LabelSlot, {
504
+ ...labelProps,
470
505
  children: label
471
506
  }), deleteIcon]
472
507
  });
@@ -559,6 +594,22 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes /* remove-proptypes */ =
559
594
  * @default false
560
595
  */
561
596
  skipFocusWhenDisabled: PropTypes.bool,
597
+ /**
598
+ * The props used for each slot inside.
599
+ * @default {}
600
+ */
601
+ slotProps: PropTypes.shape({
602
+ label: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
603
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
604
+ }),
605
+ /**
606
+ * The components used for each slot inside.
607
+ * @default {}
608
+ */
609
+ slots: PropTypes.shape({
610
+ label: PropTypes.elementType,
611
+ root: PropTypes.elementType
612
+ }),
562
613
  /**
563
614
  * The system prop that allows defining system overrides as well as additional CSS styles.
564
615
  */
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { OverridableStringUnion } from '@mui/types';
4
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
4
+ import { Theme } from "../styles/index.js";
5
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
5
6
  import { CircularProgressClasses } from "./circularProgressClasses.js";
6
7
  export interface CircularProgressPropsColorOverrides {}
7
8
  export interface CircularProgressPropsVariantOverrides {}
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { TransitionProps } from "../transitions/transition.js";
5
6
  import { CollapseClasses } from "./collapseClasses.js";
6
7
  export interface CollapseProps extends StandardProps<TransitionProps, 'timeout'> {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps, Breakpoint } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { BackdropProps } from "../Backdrop/index.js";
5
6
  import { PaperProps } from "../Paper/index.js";
6
7
  import { ModalProps } from "../Modal/index.js";
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { DialogActionsClasses } from "./dialogActionsClasses.js";
5
6
  export interface DialogActionsProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
6
7
  /**
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { DialogContentClasses } from "./dialogContentClasses.js";
5
6
  export interface DialogContentProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
6
7
  /**
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { OverridableStringUnion } from '@mui/types';
3
3
  import { SxProps } from '@mui/system';
4
- import { Theme } from "../index.js";
4
+ import { Theme } from "../styles/index.js";
5
5
  import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
6
6
  import { DividerClasses } from "./dividerClasses.js";
7
7
  export interface DividerPropsVariantOverrides {}
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
5
6
  import { ModalProps } from "../Modal/index.js";
6
7
  import { BackdropProps } from "../Backdrop/index.js";
package/esm/Fab/Fab.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { OverridableStringUnion } from '@mui/types';
3
3
  import { SxProps } from '@mui/system';
4
- import { PropTypes, Theme } from "../index.js";
4
+ import { PropTypes, Theme } from "../styles/index.js";
5
5
  import { ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
6
6
  import { OverrideProps } from "../OverridableComponent/index.js";
7
7
  import { FabClasses } from "./fabClasses.js";
@@ -1,5 +1,6 @@
1
1
  import { SxProps } from '@mui/system';
2
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
2
+ import { Theme } from "../styles/index.js";
3
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
3
4
  import { InputBaseProps } from "../InputBase/index.js";
4
5
  import { FilledInputClasses } from "./filledInputClasses.js";
5
6
  export interface FilledInputProps extends StandardProps<InputBaseProps> {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { Theme, InternalStandardProps as StandardProps } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import Typography, { TypographyProps } from "../Typography/index.js";
5
6
  import { FormControlLabelClasses } from "./formControlLabelClasses.js";
6
7
  import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { FormGroupClasses } from "./formGroupClasses.js";
5
6
  export interface FormGroupProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
6
7
  /**
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { OverridableStringUnion } from '@mui/types';
4
- import { Theme } from "../index.js";
4
+ import { Theme } from "../styles/index.js";
5
5
  import { ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
6
6
  import { OverrideProps } from "../OverridableComponent/index.js";
7
7
  import { IconButtonClasses } from "./iconButtonClasses.js";
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { OverridableStringUnion } from '@mui/types';
4
- import { Theme } from "../index.js";
4
+ import { Theme } from "../styles/index.js";
5
5
  import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
6
6
  import { ImageListClasses } from "./imageListClasses.js";
7
7
  export interface ImageListPropsVariantOverrides {}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
4
  import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
5
5
  import { ImageListItemClasses } from "./imageListItemClasses.js";
6
6
  export interface ImageListItemOwnProps {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { ImageListItemBarClasses } from "./imageListItemBarClasses.js";
5
6
  export interface ImageListItemBarProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>, 'title'> {
6
7
  /**
@@ -1,5 +1,6 @@
1
1
  import { SxProps } from '@mui/system';
2
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
2
+ import { Theme } from "../styles/index.js";
3
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
3
4
  import { InputBaseProps } from "../InputBase/index.js";
4
5
  import { InputClasses } from "./inputClasses.js";
5
6
  export interface InputProps extends StandardProps<InputBaseProps> {
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
4
- import { Theme } from "../index.js";
4
+ import { Theme } from "../styles/index.js";
5
5
  import { InputAdornmentClasses } from "./inputAdornmentClasses.js";
6
6
  export interface InputAdornmentOwnProps {
7
7
  /**
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { OverridableStringUnion } from '@mui/types';
4
4
  import { Theme } from "../styles/index.js";
5
- import { InternalStandardProps as StandardProps } from "../index.js";
5
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
6
6
  import { InputBaseClasses } from "./inputBaseClasses.js";
7
7
  export interface InputBasePropsSizeOverrides {}
8
8
  export interface InputBasePropsColorOverrides {}
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { OverridableStringUnion } from '@mui/types';
4
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
4
+ import { Theme } from "../styles/index.js";
5
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
5
6
  import { LinearProgressClasses } from "./linearProgressClasses.js";
6
7
  export interface LinearProgressPropsColorOverrides {}
7
8
  export interface LinearProgressPropsVariantOverrides {}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
4
  import { OverridableComponent, OverridableTypeMap, OverrideProps } from "../OverridableComponent/index.js";
5
5
  import { ListClasses } from "./listClasses.js";
6
6
  export interface ListOwnProps {
@@ -1,5 +1,6 @@
1
1
  import { SxProps } from '@mui/system';
2
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
2
+ import { Theme } from "../styles/index.js";
3
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
3
4
  import { ListItemAvatarClasses } from "./listItemAvatarClasses.js";
4
5
  export interface ListItemAvatarProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
5
6
  /**
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { ListItemIconClasses } from "./listItemIconClasses.js";
5
6
  export interface ListItemIconProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
6
7
  /**
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { ListItemSecondaryActionClasses } from "./listItemSecondaryActionClasses.js";
5
6
  export interface ListItemSecondaryActionProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
6
7
  /**
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { TypographyProps } from "../Typography/index.js";
5
6
  import { ListItemTextClasses } from "./listItemTextClasses.js";
6
7
  import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
4
  import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
5
5
  import { ListSubheaderClasses } from "./listSubheaderClasses.js";
6
6
  export interface ListSubheaderOwnProps {
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { PaperProps } from "../Paper/index.js";
5
6
  import { PopoverProps } from "../Popover/index.js";
6
7
  import { MenuListProps } from "../MenuList/index.js";
7
8
  import { ModalProps } from "../Modal/index.js";
8
9
  import { BackdropProps } from "../Backdrop/index.js";
9
- import { Theme } from "../styles/index.js";
10
10
  import { TransitionProps } from "../transitions/transition.js";
11
11
  import { MenuClasses } from "./menuClasses.js";
12
12
  import { CreateSlotsAndSlotProps, SlotComponentProps, SlotProps } from "../utils/types.js";
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { PaperProps } from "../Paper/index.js";
5
6
  import { LinearProgressProps } from "../LinearProgress/index.js";
6
7
  import { MobileStepperClasses } from "./mobileStepperClasses.js";
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { InputProps } from "../Input/index.js";
5
6
  import { NativeSelectInputProps } from "./NativeSelectInput.js";
6
7
  import { NativeSelectClasses } from "./nativeSelectClasses.js";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
4
  export interface NativeSelectInputProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
5
5
  disabled?: boolean;
6
6
  IconComponent: React.ElementType;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { InternalStandardProps as StandardProps } from "../index.js";
2
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
3
3
  export interface NotchedOutlineProps extends StandardProps<React.FieldsetHTMLAttributes<HTMLFieldSetElement>> {
4
4
  disabled?: boolean;
5
5
  error?: boolean;
@@ -1,6 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { CreateSlotsAndSlotProps, SlotProps, InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
4
+ import { Theme } from "../styles/index.js";
5
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
6
  import { InputBaseProps } from "../InputBase/index.js";
5
7
  import { OutlinedInputClasses } from "./outlinedInputClasses.js";
6
8
  interface OutlinedInputSlots {
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { OverridableStringUnion } from '@mui/types';
3
3
  import { SxProps } from '@mui/system';
4
- import { InternalStandardProps as StandardProps } from '@mui/material';
5
4
  import { Theme } from "../styles/index.js";
5
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
6
6
  import { UsePaginationItem, UsePaginationProps } from "../usePagination/usePagination.js";
7
7
  import { PaginationClasses } from "./paginationClasses.js";
8
8
  export interface PaginationRenderItemParams extends UsePaginationItem {
@@ -1,10 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { SlotComponentProps } from '@mui/utils/types';
4
- import { BackdropProps, InternalStandardProps as StandardProps } from "../index.js";
4
+ import { BackdropProps } from "../Backdrop/index.js";
5
+ import { Theme } from "../styles/index.js";
6
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
5
7
  import Paper, { PaperProps } from "../Paper/index.js";
6
8
  import Modal, { ModalProps } from "../Modal/index.js";
7
- import { Theme } from "../styles/index.js";
8
9
  import { TransitionProps } from "../transitions/transition.js";
9
10
  import { PopoverClasses } from "./popoverClasses.js";
10
11
  import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { OverridableStringUnion } from '@mui/types';
4
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
4
+ import { Theme } from "../styles/index.js";
5
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
5
6
  import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
6
7
  import { SwitchBaseProps } from "../internal/SwitchBase.js";
7
8
  import { RadioClasses } from "./radioClasses.js";
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { OverridableStringUnion } from '@mui/types';
4
- import { Theme } from "../index.js";
4
+ import { Theme } from "../styles/index.js";
5
5
  import { RatingClasses } from "./ratingClasses.js";
6
6
  import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
7
7
  import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
4
5
  import { InputProps } from "../Input/index.js";
5
6
  import { MenuProps } from "../Menu/index.js";
6
7
  import { SelectChangeEvent, SelectInputProps } from "./SelectInput.js";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { Theme } from "../index.js";
3
+ import { Theme } from "../styles/index.js";
4
4
  import { MenuProps } from "../Menu/index.js";
5
5
 
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { OverridableStringUnion } from '@mui/types';
4
- import { Theme } from "../index.js";
4
+ import { Theme } from "../styles/index.js";
5
5
  import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
6
6
  import { SkeletonClasses } from "./skeletonClasses.js";
7
7
  export interface SkeletonPropsVariantOverrides {}
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import ClickAwayListener, { ClickAwayListenerProps } from "../ClickAwayListener/index.js";
4
4
  import { Theme } from "../styles/index.js";
5
- import { InternalStandardProps as StandardProps } from "../index.js";
5
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
6
6
  import { SnackbarContentProps } from "../SnackbarContent/index.js";
7
7
  import { TransitionProps } from "../transitions/transition.js";
8
8
  import { SnackbarClasses } from "./snackbarClasses.js";
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { Theme } from "../styles/index.js";
4
- import { InternalStandardProps as StandardProps } from "../index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
5
5
  import { PaperProps } from "../Paper/index.js";
6
6
  import { SnackbarContentClasses } from "./snackbarContentClasses.js";
7
7
  export interface SnackbarContentProps extends StandardProps<PaperProps, 'children'> {
@@ -29,16 +29,14 @@ const SnackbarContentRoot = styled(Paper, {
29
29
  theme
30
30
  }) => {
31
31
  const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;
32
- const backgroundColor = emphasize(theme.palette.background.default, emphasis);
33
32
  return {
34
33
  ...theme.typography.body2,
35
- color: theme.vars ? theme.vars.palette.SnackbarContent.color : theme.palette.getContrastText(backgroundColor),
36
- backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
34
+ color: theme.vars ? theme.vars.palette.SnackbarContent.color : theme.palette.getContrastText(emphasize(theme.palette.background.default, emphasis)),
35
+ backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : emphasize(theme.palette.background.default, emphasis),
37
36
  display: 'flex',
38
37
  alignItems: 'center',
39
38
  flexWrap: 'wrap',
40
39
  padding: '6px 16px',
41
- borderRadius: (theme.vars || theme).shape.borderRadius,
42
40
  flexGrow: 1,
43
41
  [theme.breakpoints.up('sm')]: {
44
42
  flexGrow: 'initial',
@@ -78,7 +76,6 @@ const SnackbarContent = /*#__PURE__*/React.forwardRef(function SnackbarContent(i
78
76
  const classes = useUtilityClasses(ownerState);
79
77
  return /*#__PURE__*/_jsxs(SnackbarContentRoot, {
80
78
  role: role,
81
- square: true,
82
79
  elevation: 6,
83
80
  className: clsx(classes.root, className),
84
81
  ownerState: ownerState,
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { Theme } from "../styles/index.js";
4
- import { InternalStandardProps as StandardProps } from "../index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
5
5
  import { FabProps } from "../Fab/index.js";
6
6
  import { TransitionProps } from "../transitions/index.js";
7
7
  import { SpeedDialClasses } from "./speedDialClasses.js";
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { Theme } from "../styles/index.js";
4
- import { InternalStandardProps as StandardProps } from "../index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
5
5
  import { FabProps } from "../Fab/index.js";
6
6
  import { TooltipProps } from "../Tooltip/index.js";
7
7
  import { SpeedDialActionClasses } from "./speedDialActionClasses.js";
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { Theme } from "../styles/index.js";
4
- import { InternalStandardProps as StandardProps } from "../index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
5
5
  import { SpeedDialIconClasses } from "./speedDialIconClasses.js";
6
6
  export interface SpeedDialIconProps extends StandardProps<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps } from "../index.js";
4
3
  import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
5
5
  import { StepConnectorClasses } from "./stepConnectorClasses.js";
6
6
  export type StepConnectorIcon = React.ReactElement<unknown> | string | number;
7
7
  export interface StepConnectorProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>, 'children'> {
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { CollapseProps, InternalStandardProps as StandardProps } from "../index.js";
4
3
  import { Theme } from "../styles/index.js";
4
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
5
+ import { CollapseProps } from "../Collapse/index.js";
5
6
  import { TransitionProps } from "../transitions/transition.js";
6
7
  import { StepContentClasses } from "./stepContentClasses.js";
7
8
  import { CreateSlotsAndSlotProps, SlotComponentProps } from "../utils/types.js";
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps, SvgIconOwnProps } from "../index.js";
3
+ import { SvgIconOwnProps } from "../SvgIcon/index.js";
4
4
  import { Theme } from "../styles/index.js";
5
+ import { InternalStandardProps as StandardProps } from "../internal/index.js";
5
6
  import { StepIconClasses } from "./stepIconClasses.js";
6
7
  export interface StepIconProps
7
8
  // TODO v7: extend React.HTMLAttributes<SVGSVGElement> as svg is root component of StepIcon not div