Skip to content

Commit ec55ce4

Browse files
authored
Merge branch 'master' into deprecated-menu-props
2 parents 10b073a + 1922fd0 commit ec55ce4

File tree

274 files changed

+6316
-1489
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+6316
-1489
lines changed

.circleci/config.yml

+11-59
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ commands:
7272
name: Set npm registry public signing keys
7373
command: |
7474
echo "export COREPACK_INTEGRITY_KEYS='$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')'" >> $BASH_ENV
75-
7675
- when:
7776
condition: << parameters.browsers >>
7877
steps:
@@ -87,59 +86,31 @@ commands:
8786
name: Install pnpm package manager
8887
# See https://stackoverflow.com/a/73411601
8988
command: corepack enable --install-directory ~/bin
90-
9189
- run:
9290
name: View install environment
9391
command: |
9492
node --version
9593
pnpm --version
96-
9794
install_js:
9895
parameters:
9996
browsers:
10097
type: boolean
10198
default: false
10299
description: 'Set to true if you intend to any browser (for example with playwright).'
103-
104100
steps:
105101
- setup_corepack:
106102
browsers: << parameters.browsers >>
107-
108103
- run:
109104
name: Resolve React version
110105
command: |
111106
pnpm use-react-version
112107
# log a patch for maintainers who want to check out this change
113108
git --no-pager diff HEAD
114-
115109
- run:
116110
name: Install js dependencies
117111
command: pnpm install
118112

119113
jobs:
120-
checkout:
121-
<<: *default-job
122-
steps:
123-
- checkout
124-
- install_js
125-
- when:
126-
# Install can be "dirty" when running with non-default versions of React
127-
condition:
128-
equal: [<< parameters.react-version >>, stable]
129-
steps:
130-
- run:
131-
name: Should not have any git not staged
132-
command: git add -A && git diff --exit-code --staged
133-
- run:
134-
name: '`pnpm dedupe` was run?'
135-
command: |
136-
# #target-branch-reference
137-
if [[ $(git diff --name-status master | grep -E 'pnpm-workspace\.yaml|pnpm-lock.yaml|package\.json') == "" ]];
138-
then
139-
echo "No changes to dependencies detected. Skipping..."
140-
else
141-
pnpm dedupe --check
142-
fi
143114
test_unit:
144115
<<: *default-job
145116
steps:
@@ -204,6 +175,16 @@ jobs:
204175
steps:
205176
- checkout
206177
- install_js
178+
- run:
179+
name: '`pnpm dedupe` was run?'
180+
command: |
181+
# #target-branch-reference
182+
if [[ $(git diff --name-status master | grep -E 'pnpm-workspace\.yaml|pnpm-lock.yaml|package\.json') == "" ]];
183+
then
184+
echo "No changes to dependencies detected. Skipping..."
185+
else
186+
pnpm dedupe --check
187+
fi
207188
- run:
208189
name: '`pnpm prettier` changes committed?'
209190
command: pnpm prettier --check
@@ -264,7 +245,7 @@ jobs:
264245
git add -f packages/mui-material/build || echo '/material declarations do not exist'
265246
git add -f packages/mui-lab/build || echo '/lab declarations do not exist'
266247
git add -f packages/mui-utils/build || echo '/utils declarations do not exist'
267-
pnpm -r build:stable && pnpm -r build:types
248+
pnpm -r build:stable && pnpm -r build:types
268249
git --no-pager diff
269250
- run:
270251
name: Any defect declaration files?
@@ -298,14 +279,12 @@ jobs:
298279
set +e
299280
pnpm typescript:ci
300281
exit 0
301-
302282
- restore_cache:
303283
name: Restore generated declaration files
304284
keys:
305285
# We assume that the target branch is `next` and that declaration files are persisted in commit order.
306286
# "If there are multiple matches, the most recently generated cache will be used."
307287
- typescript-declaration-files-next
308-
309288
- run:
310289
name: Diff declaration files
311290
command: |
@@ -314,7 +293,6 @@ jobs:
314293
git add -f packages/mui-utils/build || echo '/utils declarations do not exist'
315294
pnpm -r build:types
316295
git --no-pager diff
317-
318296
- run:
319297
name: Log defect declaration files
320298
command: |
@@ -444,7 +422,6 @@ jobs:
444422
root: packed
445423
paths:
446424
- '*'
447-
448425
test_bundling_node_cjs:
449426
<<: *default-job
450427
working_directory: /tmp/material-ui/test/bundling/fixtures/node-cjs/
@@ -604,7 +581,6 @@ jobs:
604581
- run:
605582
name: Test fixture
606583
command: pnpm start
607-
608584
test_bundle_size_monitor:
609585
<<: *default-job
610586
steps:
@@ -691,51 +667,28 @@ workflows:
691667
when:
692668
equal: [pipeline, << pipeline.parameters.workflow >>]
693669
jobs:
694-
- checkout:
695-
<<: *default-context
696670
- test_unit:
697671
<<: *default-context
698-
requires:
699-
- checkout
700672
- test_lint:
701673
<<: *default-context
702-
requires:
703-
- checkout
704674
- test_static:
705675
<<: *default-context
706-
requires:
707-
- checkout
708676
- test_types:
709677
<<: *default-context
710-
requires:
711-
- checkout
712678
- test_browser:
713679
<<: *default-context
714-
requires:
715-
- checkout
716680
- test_regressions:
717681
<<: *default-context
718-
requires:
719-
- checkout
720682
- test_e2e:
721683
<<: *default-context
722-
requires:
723-
- checkout
724684
- test_bundle_size_monitor:
725685
<<: *default-context
726-
requires:
727-
- checkout
728686
e2e-website:
729687
when:
730688
equal: [e2e-website, << pipeline.parameters.workflow >>]
731689
jobs:
732-
- checkout:
733-
<<: *default-context
734690
- test_e2e_website:
735691
<<: *default-context
736-
requires:
737-
- checkout
738-
739692
bundling:
740693
when:
741694
equal: [bundling, << pipeline.parameters.workflow >>]
@@ -778,7 +731,6 @@ workflows:
778731
<<: *default-context
779732
requires:
780733
- test_bundling_prepare
781-
782734
profile:
783735
when:
784736
equal: [profile, << pipeline.parameters.workflow >>]

.github/workflows/ci-check.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ name: CI Check
66
on:
77
push:
88
branches-ignore:
9+
# Renovate branches are always Pull Requests.
10+
# We don't need to run CI twice (push+pull_request)
911
- 'renovate/**'
12+
- 'dependabot/**'
1013
pull_request:
1114
paths:
1215
- 'docs/**'

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
# Renovate branches are always Pull Requests.
77
# We don't need to run CI twice (push+pull_request)
88
- 'renovate/**'
9+
- 'dependabot/**'
910
pull_request:
1011
paths-ignore:
1112
# should sync with ci-check.yml as a workaround to bypass github checks
@@ -16,6 +17,8 @@ permissions: {}
1617
jobs:
1718
continuous-releases:
1819
runs-on: ubuntu-latest
20+
# do not run on forks
21+
if: github.repository == 'mui/material-ui'
1922
steps:
2023
- run: echo "${{ github.actor }}"
2124
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

SECURITY.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ The versions of the project that are currently supported with security updates.
66

77
| Material UI version | Release | Supported |
88
| ------------------: | :--------- | :----------------------------------- |
9-
| ^6.0.0 | 2024-08-26 | :white_check_mark: Stable major |
9+
| ^7.0.0 | 2025-03-26 | :white_check_mark: Stable major |
10+
| ^6.0.0 | 2024-08-26 | :white_check_mark: Long-term support |
1011
| ^5.0.0 | 2021-09-16 | :white_check_mark: Long-term support |
1112
| ^4.0.0 | 2019-06-23 | :x: |
1213
| ^3.0.0 | 2018-08-27 | :x: |

apps/bare-next-app/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
},
2424
"devDependencies": {
2525
"@pigment-css/nextjs-plugin": "0.0.30",
26-
"@types/node": "^20.17.32",
27-
"@types/react": "^19.1.2",
28-
"@types/react-dom": "^19.1.3",
26+
"@types/node": "^20.17.46",
27+
"@types/react": "^19.1.4",
28+
"@types/react-dom": "^19.1.4",
2929
"eslint": "^8.57.1",
3030
"typescript": "^5.8.3"
3131
},

apps/pigment-css-next-app/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
},
2323
"devDependencies": {
2424
"@pigment-css/nextjs-plugin": "0.0.30",
25-
"@types/node": "^20.17.32",
26-
"@types/react": "^19.1.2",
27-
"@types/react-dom": "^19.1.3",
25+
"@types/node": "^20.17.46",
26+
"@types/react": "^19.1.4",
27+
"@types/react-dom": "^19.1.4",
2828
"eslint": "^8.57.1",
2929
"typescript": "^5.8.3"
3030
},

apps/pigment-css-vite-app/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"@babel/preset-react": "^7.27.1",
2828
"@babel/preset-typescript": "^7.27.1",
2929
"@pigment-css/vite-plugin": "0.0.30",
30-
"@types/react": "^19.1.2",
31-
"@types/react-dom": "^19.1.3",
30+
"@types/react": "^19.1.4",
31+
"@types/react-dom": "^19.1.4",
3232
"@types/webfontloader": "^1.6.38",
3333
"@vitejs/plugin-react": "^4.4.1",
3434
"postcss": "^8.5.3",

docs/data/material/discover-more/related-projects/related-projects.md

+1-18
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,11 @@ The MUI org and developers from the community have built some excellent supplem
77
Do you have a project that you think should be featured here?
88
Feel free to submit a pull request and the maintainers will work with you to write the description.
99

10-
## Third-party app starters
11-
12-
### Admin frameworks
10+
## Third-party admin frameworks
1311

1412
- [React-admin](https://github.com/marmelab/react-admin): A front-end framework for building data-driven applications running in the browser on top of REST/GraphQL APIs.
1513
- [Refine](https://github.com/refinedev/refine): An open source, headless React meta-framework for the rapid development of web applications.
1614

17-
### Paid starters
18-
19-
- [Divjoy](https://divjoy.com?via=material-ui):
20-
21-
- Create a Material UI app in minutes.
22-
- Templates, authentication, database integration, subscription payments, and more.
23-
24-
- [ScaffoldHub](https://v2.scaffoldhub.io/scaffolds/react-material-ui?partner=1):
25-
- Tool for building web applications.
26-
- Choose your framework and library (React with Material UI).
27-
- Choose your database (SQL, MongoDB or Firestore).
28-
- Model your database and application with the intuitive GUI.
29-
- Generate your application, including a complete scaffolded backend.
30-
- Preview your application online and download the generated code.
31-
3215
## Third-party theming tools
3316

3417
- [Material palette generator](https://m2.material.io/inline-tools/color/): The official Material Design 2 palette generator tool.

docs/data/material/migration/upgrade-to-v6/upgrade-to-v6.md

+57
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,63 @@ yarn add react@<version> react-dom@<version>
8888

8989
</codeblock>
9090

91+
### React 18 and below
92+
93+
If you are using React 18 or below, you need to set up a resolution of `react-is` package to the same version as the `react` you are using.
94+
95+
For example, if you are using `[email protected]`, do the following steps:
96+
97+
1. Install `[email protected]`.
98+
99+
<codeblock storageKey="package-manager">
100+
101+
```bash npm
102+
npm install [email protected]
103+
```
104+
105+
```bash pnpm
106+
107+
```
108+
109+
```bash yarn
110+
111+
```
112+
113+
</codeblock>
114+
115+
2. Set the resolutions or overrides in the `package.json`.
116+
117+
<codeblock storageKey="package-manager">
118+
119+
```json npm
120+
{
121+
122+
"overrides": {
123+
"react-is": "^18.3.1"
124+
}
125+
}
126+
```
127+
128+
```json pnpm
129+
{
130+
131+
"overrides": {
132+
"react-is": "^18.3.1"
133+
}
134+
}
135+
```
136+
137+
```json yarn
138+
{
139+
140+
"resolutions": {
141+
"react-is": "^18.3.1"
142+
}
143+
}
144+
```
145+
146+
</codeblock>
147+
91148
### Minimum TypeScript version
92149

93150
The minimum supported version of TypeScript has been increased from v3.5 to 4.7.

0 commit comments

Comments
 (0)