@mui/lab 6.0.0-beta.5-dev.20240809-114550-93cb3d65e7 → 6.0.0-beta.7

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,146 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 6.0.0-rc.0
4
+
5
+ <!-- generated comparing v6.0.0-beta.6..next -->
6
+
7
+ _Aug 22, 2024_
8
+
9
+ A big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - ⚡ Rendering performance improvements
12
+
13
+ ### `@mui/material@6.0.0-rc.0`
14
+
15
+ #### Breaking changes
16
+
17
+ - [Box] Remove `component` from `BoxOwnProps` (#43384) @DiegoAndai
18
+
19
+ The `component` prop has been removed from the `BoxOwnProps` as it is already included in the `Box` type.
20
+ This might affect your code if you are using the `styled` function with the `Box` component.
21
+ If this is the case, use a `div` element instead of `Box`:
22
+
23
+ ```diff
24
+ -const StyledBox = styled(Box)`
25
+ +const StyledDiv = styled('div')`
26
+ color: white;
27
+ `;
28
+ ```
29
+
30
+ This yields the same end result.
31
+ If this doesn't work for you, you can also cast the `styled` returned value to `typeof Box`:
32
+
33
+ ```diff
34
+ const StyledBox = styled(Box)`
35
+ color: white;
36
+ -`;
37
+ +` as typeof Box;
38
+ ```
39
+
40
+ #### Changes
41
+
42
+ - [ListItem] Remove unnecessary TypeScript test (#43359) @sai6855
43
+ - Skip generating CSS variables for a custom spacing function (#43389) @siriwatknp
44
+ - Revert visual regressions from #42283 (#43364) @ZeeshanTamboli
45
+
46
+ ### `@mui/codemod@6.0.0-rc.0`
47
+
48
+ - Add Grid2 to removeSystemProps codemod (#43302) @DiegoAndai
49
+
50
+ ### Docs
51
+
52
+ - [blog] Add video to the Pigment CSS blog post (#42500) @oliviertassinari
53
+ - Fix broken link to milestones (#43379) @oliviertassinari
54
+ - Update CSS theme variables related content (#43130) @siriwatknp
55
+ - Fix link to createTheme source (#43332) @oliviertassinari
56
+ - Add cache to avoid unnecessary jsx dynamic import and theme getting (#43139) @Vxee
57
+ - Fix broken link to Next.js docs @oliviertassinari
58
+ - [material-ui] Revamp `Composition` guide (#43266) @ZeeshanTamboli
59
+ - [material-ui][Menu] Replace `PaperProps` with `slotProps.paper` in demos (#43354) @sai6855
60
+
61
+ ### Core
62
+
63
+ - [code-infra] Change docs:start script to serve the exports folder (#43375) @Janpot
64
+ - [core] Fix typescript-next CI workflow (#43394) @aarongarciah
65
+ - [core] Run `@mui/system` TypeScript module augmentation tests in CI (#43386) @ZeeshanTamboli
66
+ - [core] Enable manage-package-manager-versions pnpm flag (#43366) @aarongarciah
67
+ - [core] Replace `indexOf` with `includes` (#42883) @k-rajat19
68
+ - [docs-infra] Add GitHub source link to components (#43228) @Jay-Karia
69
+ - [docs-infra] Fix copy shortcut (#43361) @oliviertassinari
70
+ - [perf] Remove theme/styling allocations (#43372) @romgrk
71
+ - [perf] Improve `composeClasses` (#43363) @romgrk
72
+ - [perf] Remove system allocations (#43306) @romgrk
73
+
74
+ All contributors of this release in alphabetical order: @aarongarciah, @DiegoAndai, @Janpot, @Jay-Karia, @k-rajat19, @oliviertassinari, @rluzists1, @romgrk, @sai6855, @siriwatknp, @Vxee, @ZeeshanTamboli
75
+
76
+ ## 6.0.0-beta.6
77
+
78
+ <!-- generated comparing v6.0.0-beta.5..next -->
79
+
80
+ _Aug 16, 2024_
81
+
82
+ A big thanks to the 18 contributors who made this release possible.
83
+
84
+ ### `@mui/material@6.0.0-beta.6`
85
+
86
+ - [Autocomplete] Improve the `options` prop description (#41591) @pluvio72
87
+ - [Autocomplete] Remove autocomplete warning regarding value not equal to option (#43314) @ZeeshanTamboli
88
+ - [Divider] Add aria-orientation (#43241) @aarongarciah
89
+ - [IconButton] Fix hover background color behavior (#43271) @mnajdova
90
+ - [TypeScript] Refactor types so they're compatible with upcoming React 19 (#43276) @DiegoAndai
91
+ - [Typography] Replace dot notation color value to work with Pigment CSS (#43288) @siriwatknp
92
+ - [pigment-css] Fix `getSelector` prefers-color-scheme to be object (#43237) @siriwatknp
93
+ - Remove `display="block"` usage to work with Pigment CSS (#43307) @siriwatknp
94
+
95
+ ### `@mui/codemod@6.0.0-beta.6`
96
+
97
+ - [codemod] Skip sx spread transformation (#43291) @siriwatknp
98
+
99
+ ### `@mui/styles@6.0.0-beta.6`
100
+
101
+ - [styles] Fix issues reported by eslint-plugin-react-compiler (#43118) @jlewins
102
+
103
+ ### Docs
104
+
105
+ - [material-ui] Audit and copyedit the v6 migration doc (#43073) @samuelsycamore
106
+ - [material-ui] Fix Material Icon search lag and other improvements (#41330) @anle9650
107
+ - [material-ui][Popover] Fix description and title of hover interaction section (#43290) @ZeeshanTamboli
108
+ - [material-ui] Refine and unify custom template themes (#43220) @zanivan
109
+ - [joy-ui] Fix data grid redirection (#43247) @sai6855
110
+ - [mui-system] Add import statement in docs (#43223) @sai6855
111
+ - Update babel config (#43286) @romgrk
112
+ - Fix outdated references to Materal UI version (#43321) @oliviertassinari
113
+ - Polish migration git diff experience @oliviertassinari
114
+ - Update LTS to match format (#43212) @oliviertassinari
115
+ - Fix Pigment CSS migration content (#43217) @siriwatknp
116
+
117
+ ### Core
118
+
119
+ - [code-infra] Remove `userEvent` export from `@mui/internal-test-utils` (#43313) @LukasTy
120
+ - [code-infra] Remove unnecessary alias (#43320) @Janpot
121
+ - [code-infra] Fix utils bundle size entrypoint (#43304) @Janpot
122
+ - [core] missing and incorrect scripts (#43209) @Jay-Karia
123
+ - [core] Set Node 14 as minimum version in all browserslist envs (#43326) @aarongarciah
124
+ - [core] Add React 19 as peer dependency (#43216) @aarongarciah
125
+ - [core] Pin `eslint-plugin-jsx-a11y` version to 6.7.1 (#43292) @Janpot
126
+ - [core] Update supported Node.js version to 14 (#43315) @Janpot
127
+ - [core] Use fs instead of fs-extra in script utils (#43234) @DiegoAndai
128
+ - [core] Refactor system theme props (#43120) @romgrk
129
+ - [docs-infra] Fix some TS issues for X docs (#43285) @Janpot
130
+ - [docs-infra] Move API pages to TS (#43199) @alexfauquette
131
+ - [docs-infra] Fix broken sandboxes with relative module imports (#42767) @bharatkashyap
132
+ - [docs-infra] Simplify API sections typing (#43128) @alexfauquette
133
+ - [examples] Fix import (#43316) @aarongarciah
134
+ - [examples] Add material-ui-pigment-css for Next.js and Vite (#43065) @siriwatknp
135
+ - [examples] Replace wrong import with `@mui/material/styles` (#43236) @siriwatknp
136
+ - [useMediaQuery] Adapt test implementation for React 19 (#43269) @aarongarciah
137
+ - [test] Update `matchMedia` mocks (#43240) @cherniavskii
138
+ - [test] Remove unnecessary ref param (#43282) @aarongarciah
139
+ - [website] Update showcase to include Toolpad Core (#43226) @bharatkashyap
140
+ - [website] Replace React.MutableRefObject with React.RefObject (#43284) @aarongarciah
141
+
142
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @anle9650, @bharatkashyap, @cherniavskii, @DiegoAndai, @Janpot, @Jay-Karia, @jlewins, @mnajdova, @oliviertassinari, @pluvio72, @renovate[bot], @romgrk, @sai6855, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
143
+
3
144
  ## 6.0.0-beta.5
4
145
 
5
146
  <!-- generated comparing v6.0.0-beta.4..next -->
@@ -1842,6 +1983,7 @@ This release was mostly about 🐛 bug fixes and 📚 documentation improvements
1842
1983
  - [core] Fix TypeScript spelling in changelog @oliviertassinari
1843
1984
  - [core] Fix small detail in the autocomplete demo @oliviertassinari
1844
1985
  - [core] Increase node memory limit on Netlify build (#41111) @michaldudak
1986
+ - [core] Fix Netlify build cache issue (#43281) @LukasTy
1845
1987
  - [core][Tooltip] Remove incorrect code comment (#41179) @ZeeshanTamboli
1846
1988
  - [core] Fix missing context display names (#41168) @oliviertassinari
1847
1989
  - [core][base-ui] Remove `@mui/base` dev dependency from Base UI workspace (#41216) @ZeeshanTamboli
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InternalStandardProps as StandardProps } from '@mui/material';
3
2
  import { Theme } from '@mui/material/styles';
4
3
  import { SxProps } from '@mui/system';
@@ -6,6 +6,6 @@ type TreeViewComponent<Multiple extends boolean | undefined = undefined> = ((pro
6
6
  * @deprecated The TreeView component was moved from `@mui/lab` to `@mui/x-tree-view`. More information about this migration on our blog: https://mui.com/blog/lab-tree-view-to-mui-x/.
7
7
  * @ignore - do not document.
8
8
  */
9
- declare const TreeView: TreeViewComponent<undefined>;
9
+ declare const TreeView: TreeViewComponent;
10
10
  export default TreeView;
11
11
  export type TreeViewProps<Multiple> = Record<any, any>;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v6.0.0-beta.5-dev.20240809-114550-93cb3d65e7
2
+ * @mui/lab v6.0.0-beta.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v6.0.0-beta.5-dev.20240809-114550-93cb3d65e7
2
+ * @mui/lab v6.0.0-beta.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -211,7 +211,7 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
211
211
  ...other
212
212
  } = props;
213
213
  const id = (0, _utils2.unstable_useId)(idProp);
214
- const loadingIndicator = loadingIndicatorProp != null ? loadingIndicatorProp : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {
214
+ const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {
215
215
  "aria-labelledby": id,
216
216
  color: "inherit",
217
217
  size: 16
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/lab v6.0.0-beta.5-dev.20240809-114550-93cb3d65e7
2
+ * @mui/lab v6.0.0-beta.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/lab",
3
- "version": "6.0.0-beta.5-dev.20240809-114550-93cb3d65e7",
3
+ "version": "6.0.0-beta.7",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Laboratory for new MUI modules.",
@@ -31,19 +31,19 @@
31
31
  "@babel/runtime": "^7.25.0",
32
32
  "clsx": "^2.1.1",
33
33
  "prop-types": "^15.8.1",
34
- "@mui/base": "5.0.0-beta.56-dev.20240809-114550-93cb3d65e7",
35
- "@mui/system": "6.0.0-beta.5-dev.20240809-114550-93cb3d65e7",
36
- "@mui/types": "^7.2.14",
37
- "@mui/utils": "6.0.0-beta.5-dev.20240809-114550-93cb3d65e7"
34
+ "@mui/base": "5.0.0-beta.58",
35
+ "@mui/types": "^7.2.15",
36
+ "@mui/system": "6.0.0-rc.0",
37
+ "@mui/utils": "6.0.0-rc.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@emotion/react": "^11.5.0",
41
41
  "@emotion/styled": "^11.3.0",
42
- "@types/react": "^17.0.0 || ^18.0.0",
43
- "react": "^17.0.0 || ^18.0.0",
44
- "react-dom": "^17.0.0 || ^18.0.0",
45
- "@mui/material": "^6.0.0-beta.5-dev.20240809-114550-93cb3d65e7",
46
- "@mui/material-pigment-css": "^6.0.0-beta.5-dev.20240809-114550-93cb3d65e7"
42
+ "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
43
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
44
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
45
+ "@mui/material": "^6.0.0-rc.0",
46
+ "@mui/material-pigment-css": "^6.0.0-rc.0"
47
47
  },
48
48
  "peerDependenciesMeta": {
49
49
  "@types/react": {