@mui/material 9.0.0-alpha.4 → 9.0.0-beta.0

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 (210) hide show
  1. package/ButtonGroup/ButtonGroup.js +1 -9
  2. package/ButtonGroup/ButtonGroup.mjs +1 -9
  3. package/ButtonGroup/buttonGroupClasses.d.mts +0 -68
  4. package/ButtonGroup/buttonGroupClasses.d.ts +0 -68
  5. package/ButtonGroup/buttonGroupClasses.js +1 -1
  6. package/ButtonGroup/buttonGroupClasses.mjs +1 -1
  7. package/CHANGELOG.md +71 -4
  8. package/CardHeader/CardHeader.d.mts +13 -21
  9. package/CardHeader/CardHeader.d.ts +13 -21
  10. package/CardHeader/CardHeader.js +3 -21
  11. package/CardHeader/CardHeader.mjs +3 -21
  12. package/Checkbox/Checkbox.js +1 -7
  13. package/Checkbox/Checkbox.mjs +1 -7
  14. package/Chip/Chip.js +48 -54
  15. package/Chip/Chip.mjs +48 -54
  16. package/Chip/chipClasses.d.mts +0 -104
  17. package/Chip/chipClasses.d.ts +0 -104
  18. package/Chip/chipClasses.js +1 -1
  19. package/Chip/chipClasses.mjs +1 -1
  20. package/Dialog/Dialog.d.mts +0 -21
  21. package/Dialog/Dialog.d.ts +0 -21
  22. package/Dialog/Dialog.js +36 -73
  23. package/Dialog/Dialog.mjs +36 -73
  24. package/Dialog/dialogClasses.d.mts +0 -8
  25. package/Dialog/dialogClasses.d.ts +0 -8
  26. package/Dialog/dialogClasses.js +1 -1
  27. package/Dialog/dialogClasses.mjs +1 -1
  28. package/Divider/Divider.js +2 -2
  29. package/Divider/Divider.mjs +2 -2
  30. package/Divider/dividerClasses.d.mts +0 -4
  31. package/Divider/dividerClasses.d.ts +0 -4
  32. package/Divider/dividerClasses.js +1 -1
  33. package/Divider/dividerClasses.mjs +1 -1
  34. package/Drawer/Drawer.d.mts +0 -12
  35. package/Drawer/Drawer.d.ts +0 -12
  36. package/Drawer/Drawer.js +6 -40
  37. package/Drawer/Drawer.mjs +6 -40
  38. package/Drawer/drawerClasses.d.mts +0 -32
  39. package/Drawer/drawerClasses.d.ts +0 -32
  40. package/Drawer/drawerClasses.js +1 -1
  41. package/Drawer/drawerClasses.mjs +1 -1
  42. package/FilledInput/FilledInput.js +3 -32
  43. package/FilledInput/FilledInput.mjs +3 -32
  44. package/ImageListItemBar/ImageListItemBar.js +4 -17
  45. package/ImageListItemBar/ImageListItemBar.mjs +4 -17
  46. package/ImageListItemBar/imageListItemBarClasses.d.mts +0 -16
  47. package/ImageListItemBar/imageListItemBarClasses.d.ts +0 -16
  48. package/ImageListItemBar/imageListItemBarClasses.js +1 -1
  49. package/ImageListItemBar/imageListItemBarClasses.mjs +1 -1
  50. package/Input/Input.js +3 -32
  51. package/Input/Input.mjs +3 -32
  52. package/Input/inputClasses.d.mts +0 -16
  53. package/Input/inputClasses.d.ts +0 -16
  54. package/InputBase/InputBase.d.mts +0 -27
  55. package/InputBase/InputBase.d.ts +0 -27
  56. package/InputBase/InputBase.js +6 -35
  57. package/InputBase/InputBase.mjs +6 -35
  58. package/InputBase/inputBaseClasses.d.mts +0 -20
  59. package/InputBase/inputBaseClasses.d.ts +0 -20
  60. package/InputBase/inputBaseClasses.js +1 -1
  61. package/InputBase/inputBaseClasses.mjs +1 -1
  62. package/InputLabel/InputLabel.js +1 -1
  63. package/InputLabel/InputLabel.mjs +1 -1
  64. package/LinearProgress/LinearProgress.js +6 -18
  65. package/LinearProgress/LinearProgress.mjs +6 -18
  66. package/LinearProgress/linearProgressClasses.d.mts +0 -36
  67. package/LinearProgress/linearProgressClasses.d.ts +0 -36
  68. package/LinearProgress/linearProgressClasses.js +1 -1
  69. package/LinearProgress/linearProgressClasses.mjs +1 -1
  70. package/Link/Link.d.mts +1 -1
  71. package/Link/Link.d.ts +1 -1
  72. package/ListItem/ListItem.d.mts +2 -36
  73. package/ListItem/ListItem.d.ts +2 -36
  74. package/ListItem/ListItem.js +27 -152
  75. package/ListItem/ListItem.mjs +27 -152
  76. package/ListItem/listItemClasses.d.mts +2 -4
  77. package/ListItem/listItemClasses.d.ts +2 -4
  78. package/ListItem/listItemClasses.js +1 -1
  79. package/ListItem/listItemClasses.mjs +1 -1
  80. package/ListItemButton/ListItemButton.d.mts +1 -2
  81. package/ListItemButton/ListItemButton.d.ts +1 -2
  82. package/ListItemButton/ListItemButton.js +1 -2
  83. package/ListItemButton/ListItemButton.mjs +1 -2
  84. package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +10 -6
  85. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +10 -6
  86. package/ListItemSecondaryAction/ListItemSecondaryAction.js +7 -2
  87. package/ListItemSecondaryAction/ListItemSecondaryAction.mjs +7 -2
  88. package/ListItemText/ListItemText.d.mts +12 -20
  89. package/ListItemText/ListItemText.d.ts +12 -20
  90. package/ListItemText/ListItemText.js +2 -20
  91. package/ListItemText/ListItemText.mjs +2 -20
  92. package/Modal/Modal.d.mts +1 -41
  93. package/Modal/Modal.d.ts +1 -41
  94. package/Modal/Modal.js +5 -58
  95. package/Modal/Modal.mjs +5 -58
  96. package/OutlinedInput/OutlinedInput.js +2 -14
  97. package/OutlinedInput/OutlinedInput.mjs +2 -14
  98. package/OutlinedInput/outlinedInputClasses.d.mts +0 -16
  99. package/OutlinedInput/outlinedInputClasses.d.ts +0 -16
  100. package/PaginationItem/PaginationItem.d.mts +0 -15
  101. package/PaginationItem/PaginationItem.d.ts +0 -15
  102. package/PaginationItem/PaginationItem.js +3 -24
  103. package/PaginationItem/PaginationItem.mjs +3 -24
  104. package/PaginationItem/paginationItemClasses.d.mts +0 -16
  105. package/PaginationItem/paginationItemClasses.d.ts +0 -16
  106. package/PaginationItem/paginationItemClasses.js +1 -1
  107. package/PaginationItem/paginationItemClasses.mjs +1 -1
  108. package/Radio/Radio.js +1 -13
  109. package/Radio/Radio.mjs +1 -13
  110. package/Rating/Rating.d.mts +0 -9
  111. package/Rating/Rating.d.ts +0 -9
  112. package/Rating/Rating.js +1 -17
  113. package/Rating/Rating.mjs +1 -17
  114. package/Select/SelectInput.js +2 -3
  115. package/Select/SelectInput.mjs +2 -3
  116. package/Select/selectClasses.d.mts +0 -12
  117. package/Select/selectClasses.d.ts +0 -12
  118. package/Select/selectClasses.js +1 -1
  119. package/Select/selectClasses.mjs +1 -1
  120. package/Slider/Slider.d.mts +0 -5
  121. package/Slider/Slider.d.ts +0 -5
  122. package/Slider/Slider.js +2 -8
  123. package/Slider/Slider.mjs +2 -8
  124. package/Slider/sliderClasses.d.mts +0 -28
  125. package/Slider/sliderClasses.d.ts +0 -28
  126. package/Slider/sliderClasses.js +1 -1
  127. package/Slider/sliderClasses.mjs +1 -1
  128. package/Stack/Stack.d.mts +2 -2
  129. package/Stack/Stack.d.ts +2 -2
  130. package/StepConnector/StepConnector.js +2 -8
  131. package/StepConnector/StepConnector.mjs +2 -8
  132. package/StepConnector/stepConnectorClasses.d.mts +0 -8
  133. package/StepConnector/stepConnectorClasses.d.ts +0 -8
  134. package/StepConnector/stepConnectorClasses.js +1 -1
  135. package/StepConnector/stepConnectorClasses.mjs +1 -1
  136. package/StepContent/StepContent.d.mts +1 -16
  137. package/StepContent/StepContent.d.ts +1 -16
  138. package/StepContent/StepContent.js +3 -22
  139. package/StepContent/StepContent.mjs +3 -22
  140. package/StepLabel/StepLabel.d.mts +0 -22
  141. package/StepLabel/StepLabel.d.ts +0 -22
  142. package/StepLabel/StepLabel.js +2 -31
  143. package/StepLabel/StepLabel.mjs +2 -31
  144. package/SvgIcon/createSvgIcon.d.mts +2 -0
  145. package/SvgIcon/createSvgIcon.d.ts +2 -0
  146. package/SvgIcon/createSvgIcon.js +31 -0
  147. package/SvgIcon/createSvgIcon.mjs +26 -0
  148. package/SvgIcon/index.d.mts +1 -0
  149. package/SvgIcon/index.d.ts +1 -0
  150. package/SvgIcon/index.js +8 -0
  151. package/SvgIcon/index.mjs +1 -0
  152. package/SwipeableDrawer/SwipeableDrawer.d.mts +0 -5
  153. package/SwipeableDrawer/SwipeableDrawer.d.ts +0 -5
  154. package/SwipeableDrawer/SwipeableDrawer.js +6 -37
  155. package/SwipeableDrawer/SwipeableDrawer.mjs +6 -37
  156. package/Switch/Switch.js +0 -11
  157. package/Switch/Switch.mjs +0 -11
  158. package/Tab/Tab.js +1 -3
  159. package/Tab/Tab.mjs +1 -3
  160. package/Tab/tabClasses.d.mts +0 -4
  161. package/Tab/tabClasses.d.ts +0 -4
  162. package/Tab/tabClasses.js +1 -1
  163. package/Tab/tabClasses.mjs +1 -1
  164. package/TablePagination/TablePagination.d.mts +0 -24
  165. package/TablePagination/TablePagination.d.ts +0 -24
  166. package/TablePagination/TablePagination.js +1 -29
  167. package/TablePagination/TablePagination.mjs +1 -29
  168. package/TablePaginationActions/TablePaginationActions.d.mts +0 -10
  169. package/TablePaginationActions/TablePaginationActions.d.ts +0 -10
  170. package/TablePaginationActions/TablePaginationActions.js +2 -14
  171. package/TablePaginationActions/TablePaginationActions.mjs +2 -14
  172. package/TableSortLabel/TableSortLabel.js +2 -7
  173. package/TableSortLabel/TableSortLabel.mjs +2 -7
  174. package/TableSortLabel/tableSortLabelClasses.d.mts +0 -8
  175. package/TableSortLabel/tableSortLabelClasses.d.ts +0 -8
  176. package/TableSortLabel/tableSortLabelClasses.js +1 -1
  177. package/TableSortLabel/tableSortLabelClasses.mjs +1 -1
  178. package/Tabs/Tabs.js +3 -3
  179. package/Tabs/Tabs.mjs +3 -3
  180. package/Tabs/tabsClasses.d.mts +0 -6
  181. package/Tabs/tabsClasses.d.ts +0 -6
  182. package/Tabs/tabsClasses.js +1 -1
  183. package/Tabs/tabsClasses.mjs +1 -1
  184. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -4
  185. package/ToggleButtonGroup/ToggleButtonGroup.mjs +1 -4
  186. package/ToggleButtonGroup/toggleButtonGroupClasses.d.mts +0 -8
  187. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +0 -8
  188. package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  189. package/ToggleButtonGroup/toggleButtonGroupClasses.mjs +1 -1
  190. package/Typography/Typography.d.mts +3 -3
  191. package/Typography/Typography.d.ts +3 -3
  192. package/Typography/Typography.js +2 -24
  193. package/Typography/Typography.mjs +3 -25
  194. package/index.js +1 -1
  195. package/index.mjs +1 -1
  196. package/internal/SwitchBase.d.mts +0 -10
  197. package/internal/SwitchBase.d.ts +0 -10
  198. package/internal/SwitchBase.js +1 -16
  199. package/internal/SwitchBase.mjs +1 -16
  200. package/package.json +7 -7
  201. package/styles/createThemeWithVars.js +1 -0
  202. package/styles/createThemeWithVars.mjs +1 -0
  203. package/styles/stringifyTheme.js +1 -1
  204. package/styles/stringifyTheme.mjs +1 -1
  205. package/utils/createSvgIcon.d.mts +4 -2
  206. package/utils/createSvgIcon.d.ts +4 -2
  207. package/utils/createSvgIcon.js +6 -24
  208. package/utils/createSvgIcon.mjs +2 -24
  209. package/version/index.js +2 -2
  210. package/version/index.mjs +2 -2
@@ -2,7 +2,6 @@
2
2
 
3
3
  import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
- import refType from '@mui/utils/refType';
6
5
  import composeClasses from '@mui/utils/composeClasses';
7
6
  import capitalize from "../utils/capitalize.mjs";
8
7
  import rootShouldForwardProp from "../styles/rootShouldForwardProp.mjs";
@@ -95,8 +94,6 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
95
94
  edge = false,
96
95
  icon,
97
96
  id,
98
- inputProps,
99
- inputRef,
100
97
  name,
101
98
  onBlur,
102
99
  onChange,
@@ -162,10 +159,7 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
162
159
  const classes = useUtilityClasses(ownerState);
163
160
  const externalForwardedProps = {
164
161
  slots,
165
- slotProps: {
166
- input: inputProps,
167
- ...slotProps
168
- }
162
+ slotProps
169
163
  };
170
164
  const [RootSlot, rootSlotProps] = useSlot('root', {
171
165
  ref,
@@ -197,7 +191,6 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
197
191
  }
198
192
  });
199
193
  const [InputSlot, inputSlotProps] = useSlot('input', {
200
- ref: inputRef,
201
194
  elementType: SwitchBaseInput,
202
195
  className: classes.input,
203
196
  externalForwardedProps,
@@ -285,14 +278,6 @@ process.env.NODE_ENV !== "production" ? SwitchBase.propTypes = {
285
278
  * The id of the `input` element.
286
279
  */
287
280
  id: PropTypes.string,
288
- /**
289
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
290
- */
291
- inputProps: PropTypes.object,
292
- /**
293
- * Pass a ref to the `input` element.
294
- */
295
- inputRef: refType,
296
281
  /*
297
282
  * @ignore
298
283
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "9.0.0-alpha.4",
3
+ "version": "9.0.0-beta.0",
4
4
  "author": "MUI Team",
5
5
  "description": "Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.",
6
6
  "keywords": [
@@ -25,7 +25,7 @@
25
25
  "url": "https://opencollective.com/mui-org"
26
26
  },
27
27
  "dependencies": {
28
- "@babel/runtime": "^7.28.6",
28
+ "@babel/runtime": "^7.29.2",
29
29
  "@popperjs/core": "^2.11.8",
30
30
  "@types/react-transition-group": "^4.4.12",
31
31
  "clsx": "^2.1.1",
@@ -33,10 +33,10 @@
33
33
  "prop-types": "^15.8.1",
34
34
  "react-is": "^19.2.4",
35
35
  "react-transition-group": "^4.4.5",
36
- "@mui/core-downloads-tracker": "^9.0.0-alpha.4",
37
- "@mui/types": "^9.0.0-alpha.3",
38
- "@mui/system": "9.0.0-alpha.4",
39
- "@mui/utils": "9.0.0-alpha.4"
36
+ "@mui/types": "^9.0.0-beta.0",
37
+ "@mui/core-downloads-tracker": "^9.0.0-beta.0",
38
+ "@mui/system": "9.0.0-beta.0",
39
+ "@mui/utils": "9.0.0-beta.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@emotion/react": "^11.5.0",
@@ -44,7 +44,7 @@
44
44
  "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
45
45
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
46
46
  "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
47
- "@mui/material-pigment-css": "9.0.0-alpha.4"
47
+ "@mui/material-pigment-css": "9.0.0-beta.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "@types/react": {
@@ -419,6 +419,7 @@ function createThemeWithVars(options = {}, ...args) {
419
419
  theme: this
420
420
  });
421
421
  };
422
+ theme.internal_cache = {};
422
423
  theme.toRuntimeSource = _stringifyTheme.stringifyTheme; // for Pigment CSS integration
423
424
 
424
425
  return theme;
@@ -409,6 +409,7 @@ export default function createThemeWithVars(options = {}, ...args) {
409
409
  theme: this
410
410
  });
411
411
  };
412
+ theme.internal_cache = {};
412
413
  theme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration
413
414
 
414
415
  return theme;
@@ -39,7 +39,7 @@ function stringifyTheme(baseTheme = {}) {
39
39
  // eslint-disable-next-line no-plusplus
40
40
  for (let index = 0; index < array.length; index++) {
41
41
  const [key, value] = array[index];
42
- if (!isSerializable(value) || key.startsWith('unstable_')) {
42
+ if (!isSerializable(value) || key.startsWith('unstable_') || key.startsWith('internal_')) {
43
43
  delete object[key];
44
44
  } else if ((0, _deepmerge.isPlainObject)(value)) {
45
45
  object[key] = {
@@ -32,7 +32,7 @@ export function stringifyTheme(baseTheme = {}) {
32
32
  // eslint-disable-next-line no-plusplus
33
33
  for (let index = 0; index < array.length; index++) {
34
34
  const [key, value] = array[index];
35
- if (!isSerializable(value) || key.startsWith('unstable_')) {
35
+ if (!isSerializable(value) || key.startsWith('unstable_') || key.startsWith('internal_')) {
36
36
  delete object[key];
37
37
  } else if (isPlainObject(value)) {
38
38
  object[key] = {
@@ -1,2 +1,4 @@
1
- import SvgIcon from "../SvgIcon/index.mjs";
2
- export default function createSvgIcon(path: React.ReactNode, displayName: string): typeof SvgIcon;
1
+ /**
2
+ * @deprecated Import `createSvgIcon` from `@mui/material/SvgIcon` instead.
3
+ */
4
+ export { default } from "../SvgIcon/createSvgIcon.mjs";
@@ -1,2 +1,4 @@
1
- import SvgIcon from "../SvgIcon/index.js";
2
- export default function createSvgIcon(path: React.ReactNode, displayName: string): typeof SvgIcon;
1
+ /**
2
+ * @deprecated Import `createSvgIcon` from `@mui/material/SvgIcon` instead.
3
+ */
4
+ export { default } from "../SvgIcon/createSvgIcon.js";
@@ -1,31 +1,13 @@
1
1
  "use strict";
2
- 'use client';
3
2
 
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
6
4
  Object.defineProperty(exports, "__esModule", {
7
5
  value: true
8
6
  });
9
- exports.default = createSvgIcon;
10
- var React = _interopRequireWildcard(require("react"));
11
- var _SvgIcon = _interopRequireDefault(require("../SvgIcon"));
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- /**
14
- * Private module reserved for @mui packages.
15
- */function createSvgIcon(path, displayName) {
16
- function Component(props, ref) {
17
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SvgIcon.default, {
18
- "data-testid": process.env.NODE_ENV !== 'production' ? `${displayName}Icon` : undefined,
19
- ref: ref,
20
- ...props,
21
- children: path
22
- });
7
+ Object.defineProperty(exports, "default", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _createSvgIcon.default;
23
11
  }
24
- if (process.env.NODE_ENV !== 'production') {
25
- // Need to set `displayName` on the inner component for React.memo.
26
- // React prior to 16.14 ignores `displayName` on the wrapper.
27
- Component.displayName = `${displayName}Icon`;
28
- }
29
- Component.muiName = _SvgIcon.default.muiName;
30
- return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));
31
- }
12
+ });
13
+ var _createSvgIcon = _interopRequireDefault(require("../SvgIcon/createSvgIcon"));
@@ -1,26 +1,4 @@
1
- 'use client';
2
-
3
- import * as React from 'react';
4
- import SvgIcon from "../SvgIcon/index.mjs";
5
-
6
1
  /**
7
- * Private module reserved for @mui packages.
2
+ * @deprecated Import `createSvgIcon` from `@mui/material/SvgIcon` instead.
8
3
  */
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- export default function createSvgIcon(path, displayName) {
11
- function Component(props, ref) {
12
- return /*#__PURE__*/_jsx(SvgIcon, {
13
- "data-testid": process.env.NODE_ENV !== 'production' ? `${displayName}Icon` : undefined,
14
- ref: ref,
15
- ...props,
16
- children: path
17
- });
18
- }
19
- if (process.env.NODE_ENV !== 'production') {
20
- // Need to set `displayName` on the inner component for React.memo.
21
- // React prior to 16.14 ignores `displayName` on the wrapper.
22
- Component.displayName = `${displayName}Icon`;
23
- }
24
- Component.muiName = SvgIcon.muiName;
25
- return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));
26
- }
4
+ export { default } from "../SvgIcon/createSvgIcon.mjs";
package/version/index.js CHANGED
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
7
- const version = exports.version = "9.0.0-alpha.4";
7
+ const version = exports.version = "9.0.0-beta.0";
8
8
  const major = exports.major = Number("9");
9
9
  const minor = exports.minor = Number("0");
10
10
  const patch = exports.patch = Number("0");
11
- const prerelease = exports.prerelease = "alpha.4";
11
+ const prerelease = exports.prerelease = "beta.0";
12
12
  var _default = exports.default = version;
package/version/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- export const version = "9.0.0-alpha.4";
1
+ export const version = "9.0.0-beta.0";
2
2
  export const major = Number("9");
3
3
  export const minor = Number("0");
4
4
  export const patch = Number("0");
5
- export const prerelease = "alpha.4";
5
+ export const prerelease = "beta.0";
6
6
  export default version;