Skip to content

Commit bf79bdd

Browse files
committed
Merge branch 'next' of github.com:mui/material-ui into material-ui-template-dashbaord
2 parents 35adda0 + e7023c5 commit bf79bdd

File tree

453 files changed

+1392
-803
lines changed

Some content is hidden

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

453 files changed

+1392
-803
lines changed

.circleci/config.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ jobs:
391391
<<: *default-job
392392
resource_class: 'medium+'
393393
docker:
394-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
394+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
395395
environment:
396396
NODE_ENV: development # Needed if playwright is in `devDependencies`
397397
steps:
@@ -421,7 +421,7 @@ jobs:
421421
test_e2e:
422422
<<: *default-job
423423
docker:
424-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
424+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
425425
environment:
426426
NODE_ENV: development # Needed if playwright is in `devDependencies`
427427
steps:
@@ -435,7 +435,7 @@ jobs:
435435
# NOTE: This workflow runs after successful docs deploy. See /test/e2e-website/README.md#ci
436436
<<: *default-job
437437
docker:
438-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
438+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
439439
environment:
440440
NODE_ENV: development # Needed if playwright is in `devDependencies`
441441
steps:
@@ -450,7 +450,7 @@ jobs:
450450
test_profile:
451451
<<: *default-job
452452
docker:
453-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
453+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
454454
environment:
455455
NODE_ENV: development # Needed if playwright is in `devDependencies`
456456
steps:
@@ -477,7 +477,7 @@ jobs:
477477
test_regressions:
478478
<<: *default-job
479479
docker:
480-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
480+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
481481
environment:
482482
NODE_ENV: development # Needed if playwright is in `devDependencies`
483483
steps:
@@ -531,7 +531,7 @@ jobs:
531531
<<: *default-job
532532
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack4/
533533
docker:
534-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
534+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
535535
environment:
536536
NODE_ENV: development # Needed if playwright is in `devDependencies`
537537
steps:
@@ -555,7 +555,7 @@ jobs:
555555
<<: *default-job
556556
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack5/
557557
docker:
558-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
558+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
559559
environment:
560560
NODE_ENV: development # Needed if playwright is in `devDependencies`
561561
steps:
@@ -579,7 +579,7 @@ jobs:
579579
<<: *default-job
580580
working_directory: /tmp/material-ui/test/bundling/fixtures/create-react-app/
581581
docker:
582-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
582+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
583583
environment:
584584
NODE_ENV: development # Needed if playwright is in `devDependencies`
585585
steps:
@@ -603,7 +603,7 @@ jobs:
603603
<<: *default-job
604604
working_directory: /tmp/material-ui/test/bundling/fixtures/snowpack/
605605
docker:
606-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
606+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
607607
environment:
608608
NODE_ENV: development # Needed if playwright is in `devDependencies`
609609
steps:
@@ -627,7 +627,7 @@ jobs:
627627
<<: *default-job
628628
working_directory: /tmp/material-ui/test/bundling/fixtures/vite/
629629
docker:
630-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
630+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
631631
environment:
632632
NODE_ENV: development # Needed if playwright is in `devDependencies`
633633
steps:
@@ -651,7 +651,7 @@ jobs:
651651
<<: *default-job
652652
working_directory: /tmp/material-ui/test/bundling/fixtures/esbuild/
653653
docker:
654-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
654+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
655655
environment:
656656
NODE_ENV: development # Needed if playwright is in `devDependencies`
657657
steps:
@@ -679,7 +679,7 @@ jobs:
679679
<<: *default-job
680680
working_directory: /tmp/material-ui/test/bundling/fixtures/gatsby/
681681
docker:
682-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
682+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
683683
environment:
684684
NODE_ENV: development # Needed if playwright is in `devDependencies`
685685
steps:
@@ -780,7 +780,7 @@ jobs:
780780
test_benchmark:
781781
<<: *default-job
782782
docker:
783-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
783+
- image: mcr.microsoft.com/playwright:v1.44.1-focal
784784
environment:
785785
NODE_ENV: development # Needed if playwright is in `devDependencies`
786786
steps:

.codesandbox/ci.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@
2222
"packages/mui-types",
2323
"packages/mui-utils",
2424
"packages-internal/docs-utils",
25-
"packages-internal/scripts"
25+
"packages-internal/scripts",
26+
"packages-internal/test-utils"
2627
],
2728
"publishDirectory": {
2829
"@mui/base": "packages/mui-base/build",
2930
"@mui/codemod": "packages/mui-codemod/build",
3031
"@mui/core-downloads-tracker": "packages/mui-core-downloads-tracker/build",
3132
"@mui/docs": "packages/mui-docs/build",
3233
"@mui/icons-material": "packages/mui-icons-material/build",
34+
"@mui/internal-test-utils": "packages-internal/test-utils",
3335
"@mui/internal-babel-macros": "packages/mui-babel-macros",
3436
"@mui/internal-docs-utils": "packages-internal/docs-utils",
3537
"@mui/internal-markdown": "packages/markdown",

.mocharc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
recursive: true,
1111
timeout: (process.env.CIRCLECI === 'true' ? 5 : 2) * 1000, // Circle CI has low-performance CPUs.
1212
reporter: 'dot',
13-
require: ['@mui-internal/test-utils/setupBabel', '@mui-internal/test-utils/setupJSDOM'],
13+
require: ['@mui/internal-test-utils/setupBabel', '@mui/internal-test-utils/setupJSDOM'],
1414
'watch-ignore': [
1515
// default
1616
'.git',

benchmark/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"express": "^4.19.2",
2525
"fs-extra": "^11.2.0",
2626
"jss": "^10.10.0",
27-
"playwright": "^1.44.0",
27+
"playwright": "^1.44.1",
2828
"prop-types": "^15.8.1",
2929
"react": "^18.2.0",
3030
"react-dom": "^18.2.0",

docs/data/material/guides/localization/localization.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ The [Data Grid and Data Grid Pro](/x/react-data-grid/) components have their own
7777
| Nepali | ne-NP | `neNP` |
7878
| Norwegian (bokmål) | nb-NO | `nbNO` |
7979
| Norwegian (nynorsk) | nn-NO | `nnNO` |
80+
| Pashto (Afghanistan) | ps-AF | `psAF` |
8081
| Persian | fa-IR | `faIR` |
8182
| Polish | pl-PL | `plPL` |
8283
| Portuguese | pt-PT | `ptPT` |

docs/data/material/migration/migrating-from-deprecated-apis/migrating-from-deprecated-apis.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,64 @@ The Avatar's `imgProps` prop was deprecated in favor of `slotProps.img`:
313313
/>;
314314
```
315315

316+
## AvatarGroup
317+
318+
Use the [codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#avatar-group-props) below to migrate the code as described in the following sections:
319+
320+
```bash
321+
npx @mui/codemod@next deprecations/avatar-group-props <path>
322+
```
323+
324+
### slotProps.additionalAvatar
325+
326+
The AvatarGroup's `slotProps.additionalAvatar` was deprecated in favor of `slotProps.surplus`:
327+
328+
```diff
329+
<AvatarGroup
330+
slotProps={{
331+
- additionalAvatar: {color: "red"}
332+
+ surplus: {color: "red"}
333+
}}
334+
/>;
335+
```
336+
337+
```diff
338+
MuiAvatarGroup: {
339+
defaultProps: {
340+
slotProps: {
341+
- additionalAvatar: {color: "red"}
342+
+ surplus: {color: "red"}
343+
},
344+
},
345+
},
346+
```
347+
348+
### componentsProps
349+
350+
The AvatarGroup's `componentsProps` was deprecated in favor of `slotProps`:
351+
352+
```diff
353+
<AvatarGroup
354+
- componentsProps={{
355+
- additionalAvatar: {color: "red"}
356+
+ slotProps={{
357+
+ surplus: {color: "red"}
358+
}}
359+
/>;
360+
```
361+
362+
```diff
363+
MuiAvatarGroup: {
364+
defaultProps: {
365+
- componentsProps: {
366+
- additionalAvatar: {color: "red"}
367+
+ slotProps: {
368+
+ surplus: {color: "red"}
369+
},
370+
},
371+
},
372+
```
373+
316374
## Backdrop
317375

318376
Use the [codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#backdrop-props) below to migrate the code as described in the following sections:

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"@babel/preset-typescript": "^7.24.6",
117117
"@mui/internal-docs-utils": "workspace:^",
118118
"@mui/internal-scripts": "workspace:^",
119+
"@mui/internal-test-utils": "workspace:^",
119120
"@types/autosuggest-highlight": "^3.2.3",
120121
"@types/chai": "^4.3.16",
121122
"@types/css-mediaquery": "^0.1.4",
@@ -132,7 +133,7 @@
132133
"cross-fetch": "^4.0.0",
133134
"gm": "^1.25.0",
134135
"marked": "^5.1.2",
135-
"playwright": "^1.44.0",
136+
"playwright": "^1.44.1",
136137
"prettier": "^3.2.5",
137138
"tailwindcss": "^3.4.3",
138139
"yargs": "^17.7.2"

docs/pages/material-ui/api/avatar-group.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"component": { "type": { "name": "elementType" } },
66
"componentsProps": {
77
"type": { "name": "shape", "description": "{ additionalAvatar?: object }" },
8-
"default": "{}"
8+
"deprecated": true,
9+
"deprecationInfo": "use the <code>slotProps</code> prop instead. This prop will be removed in v7. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
910
},
1011
"max": { "type": { "name": "custom", "description": "number" }, "default": "5" },
1112
"renderSurplus": {
@@ -17,7 +18,14 @@
1718
}
1819
},
1920
"slotProps": {
20-
"type": { "name": "shape", "description": "{ additionalAvatar?: object }" },
21+
"type": {
22+
"name": "shape",
23+
"description": "{ additionalAvatar?: object, surplus?: func<br>&#124;&nbsp;object }"
24+
},
25+
"default": "{}"
26+
},
27+
"slots": {
28+
"type": { "name": "shape", "description": "{ surplus?: elementType }" },
2129
"default": "{}"
2230
},
2331
"spacing": {
@@ -48,6 +56,7 @@
4856
"import AvatarGroup from '@mui/material/AvatarGroup';",
4957
"import { AvatarGroup } from '@mui/material';"
5058
],
59+
"slots": [{ "name": "surplus", "description": "", "class": null }],
5160
"classes": [
5261
{
5362
"key": "avatar",
@@ -65,7 +74,6 @@
6574
"spread": true,
6675
"themeDefaultProps": true,
6776
"muiName": "MuiAvatarGroup",
68-
"forwardsRefTo": "HTMLDivElement",
6977
"filename": "/packages/mui-material/src/AvatarGroup/AvatarGroup.js",
7078
"inheritance": null,
7179
"demos": "<ul><li><a href=\"/material-ui/react-avatar/\">Avatar</a></li></ul>",
-54.5 KB
Binary file not shown.
-52.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)