Skip to content

Commit

Permalink
Merge branch 'next' of github.com:mui/material-ui into material-ui-te…
Browse files Browse the repository at this point in the history
…mplate-dashbaord
  • Loading branch information
noraleonte committed May 29, 2024
2 parents 35adda0 + e7023c5 commit bf79bdd
Show file tree
Hide file tree
Showing 453 changed files with 1,392 additions and 803 deletions.
26 changes: 13 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ jobs:
<<: *default-job
resource_class: 'medium+'
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand Down Expand Up @@ -421,7 +421,7 @@ jobs:
test_e2e:
<<: *default-job
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -435,7 +435,7 @@ jobs:
# NOTE: This workflow runs after successful docs deploy. See /test/e2e-website/README.md#ci
<<: *default-job
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -450,7 +450,7 @@ jobs:
test_profile:
<<: *default-job
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -477,7 +477,7 @@ jobs:
test_regressions:
<<: *default-job
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand Down Expand Up @@ -531,7 +531,7 @@ jobs:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack4/
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -555,7 +555,7 @@ jobs:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack5/
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -579,7 +579,7 @@ jobs:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/create-react-app/
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -603,7 +603,7 @@ jobs:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/snowpack/
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -627,7 +627,7 @@ jobs:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/vite/
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -651,7 +651,7 @@ jobs:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/esbuild/
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand Down Expand Up @@ -679,7 +679,7 @@ jobs:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/gatsby/
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand Down Expand Up @@ -780,7 +780,7 @@ jobs:
test_benchmark:
<<: *default-job
docker:
- image: mcr.microsoft.com/playwright:v1.44.0-focal
- image: mcr.microsoft.com/playwright:v1.44.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand Down
4 changes: 3 additions & 1 deletion .codesandbox/ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@
"packages/mui-types",
"packages/mui-utils",
"packages-internal/docs-utils",
"packages-internal/scripts"
"packages-internal/scripts",
"packages-internal/test-utils"
],
"publishDirectory": {
"@mui/base": "packages/mui-base/build",
"@mui/codemod": "packages/mui-codemod/build",
"@mui/core-downloads-tracker": "packages/mui-core-downloads-tracker/build",
"@mui/docs": "packages/mui-docs/build",
"@mui/icons-material": "packages/mui-icons-material/build",
"@mui/internal-test-utils": "packages-internal/test-utils",
"@mui/internal-babel-macros": "packages/mui-babel-macros",
"@mui/internal-docs-utils": "packages-internal/docs-utils",
"@mui/internal-markdown": "packages/markdown",
Expand Down
2 changes: 1 addition & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
recursive: true,
timeout: (process.env.CIRCLECI === 'true' ? 5 : 2) * 1000, // Circle CI has low-performance CPUs.
reporter: 'dot',
require: ['@mui-internal/test-utils/setupBabel', '@mui-internal/test-utils/setupJSDOM'],
require: ['@mui/internal-test-utils/setupBabel', '@mui/internal-test-utils/setupJSDOM'],
'watch-ignore': [
// default
'.git',
Expand Down
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"express": "^4.19.2",
"fs-extra": "^11.2.0",
"jss": "^10.10.0",
"playwright": "^1.44.0",
"playwright": "^1.44.1",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
1 change: 1 addition & 0 deletions docs/data/material/guides/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ The [Data Grid and Data Grid Pro](/x/react-data-grid/) components have their own
| Nepali | ne-NP | `neNP` |
| Norwegian (bokmål) | nb-NO | `nbNO` |
| Norwegian (nynorsk) | nn-NO | `nnNO` |
| Pashto (Afghanistan) | ps-AF | `psAF` |
| Persian | fa-IR | `faIR` |
| Polish | pl-PL | `plPL` |
| Portuguese | pt-PT | `ptPT` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,64 @@ The Avatar's `imgProps` prop was deprecated in favor of `slotProps.img`:
/>;
```

## AvatarGroup

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:

```bash
npx @mui/codemod@next deprecations/avatar-group-props <path>
```

### slotProps.additionalAvatar

The AvatarGroup's `slotProps.additionalAvatar` was deprecated in favor of `slotProps.surplus`:

```diff
<AvatarGroup
slotProps={{
- additionalAvatar: {color: "red"}
+ surplus: {color: "red"}
}}
/>;
```

```diff
MuiAvatarGroup: {
defaultProps: {
slotProps: {
- additionalAvatar: {color: "red"}
+ surplus: {color: "red"}
},
},
},
```

### componentsProps

The AvatarGroup's `componentsProps` was deprecated in favor of `slotProps`:

```diff
<AvatarGroup
- componentsProps={{
- additionalAvatar: {color: "red"}
+ slotProps={{
+ surplus: {color: "red"}
}}
/>;
```

```diff
MuiAvatarGroup: {
defaultProps: {
- componentsProps: {
- additionalAvatar: {color: "red"}
+ slotProps: {
+ surplus: {color: "red"}
},
},
},
```

## Backdrop

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:
Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
"@babel/preset-typescript": "^7.24.6",
"@mui/internal-docs-utils": "workspace:^",
"@mui/internal-scripts": "workspace:^",
"@mui/internal-test-utils": "workspace:^",
"@types/autosuggest-highlight": "^3.2.3",
"@types/chai": "^4.3.16",
"@types/css-mediaquery": "^0.1.4",
Expand All @@ -132,7 +133,7 @@
"cross-fetch": "^4.0.0",
"gm": "^1.25.0",
"marked": "^5.1.2",
"playwright": "^1.44.0",
"playwright": "^1.44.1",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.3",
"yargs": "^17.7.2"
Expand Down
14 changes: 11 additions & 3 deletions docs/pages/material-ui/api/avatar-group.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"component": { "type": { "name": "elementType" } },
"componentsProps": {
"type": { "name": "shape", "description": "{ additionalAvatar?: object }" },
"default": "{}"
"deprecated": true,
"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."
},
"max": { "type": { "name": "custom", "description": "number" }, "default": "5" },
"renderSurplus": {
Expand All @@ -17,7 +18,14 @@
}
},
"slotProps": {
"type": { "name": "shape", "description": "{ additionalAvatar?: object }" },
"type": {
"name": "shape",
"description": "{ additionalAvatar?: object, surplus?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ surplus?: elementType }" },
"default": "{}"
},
"spacing": {
Expand Down Expand Up @@ -48,6 +56,7 @@
"import AvatarGroup from '@mui/material/AvatarGroup';",
"import { AvatarGroup } from '@mui/material';"
],
"slots": [{ "name": "surplus", "description": "", "class": null }],
"classes": [
{
"key": "avatar",
Expand All @@ -65,7 +74,6 @@
"spread": true,
"themeDefaultProps": true,
"muiName": "MuiAvatarGroup",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-material/src/AvatarGroup/AvatarGroup.js",
"inheritance": null,
"demos": "<ul><li><a href=\"/material-ui/react-avatar/\">Avatar</a></li></ul>",
Expand Down
Binary file removed docs/public/static/branding/mui-x/Mocktable-dark.png
Binary file not shown.
Binary file not shown.
Binary file removed docs/public/static/branding/mui-x/card.png
Binary file not shown.
Binary file removed docs/public/static/branding/mui-x/chart-dark1.png
Binary file not shown.
Binary file removed docs/public/static/branding/mui-x/chart-dark2.png
Binary file not shown.
Binary file removed docs/public/static/branding/mui-x/chart-dark3.png
Binary file not shown.
Binary file removed docs/public/static/branding/mui-x/chart-dark4.png
Binary file not shown.
Binary file removed docs/public/static/branding/mui-x/chart-light1.png
Binary file not shown.
Binary file removed docs/public/static/branding/mui-x/chart-light2.png
Binary file not shown.
Binary file removed docs/public/static/branding/mui-x/chart-light3.png
Binary file not shown.
Binary file removed docs/public/static/branding/mui-x/chart-light4.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed docs/public/static/images/avatar/1-sm.jpeg
Binary file not shown.
Binary file removed docs/public/static/images/avatar/3-sm.jpeg
Binary file not shown.
Binary file removed docs/public/static/images/packages/mui-packages.png
Binary file not shown.
Binary file removed docs/public/static/images/packages/mui-system.png
Binary file not shown.
Binary file not shown.
Binary file removed docs/public/static/images/themes-dark.jpg
Binary file not shown.
Binary file removed docs/public/static/images/themes-light.jpg
Binary file not shown.
Binary file removed docs/public/static/themes/onepirate.jpg
Binary file not shown.
Binary file removed docs/public/static/themes/paperbase.png
Binary file not shown.
72 changes: 0 additions & 72 deletions docs/src/components/productX/XSparklineDemo.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion docs/src/components/showcase/NotificationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function NotificationCard() {
>
<Avatar
slotProps={{ img: { 'aria-labelledby': 'demo-notification-card-messenger-name' } }}
src="/static/images/avatar/3-sm.jpeg"
src="/static/images/avatar/3.jpg"
sx={{ width: 40, height: 40 }}
/>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/HighlightedCode.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { expect } from 'chai';
import { createRenderer } from '@mui-internal/test-utils';
import { createRenderer } from '@mui/internal-test-utils';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import { getDesignTokens } from '@mui/docs/branding';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
Expand Down
Loading

0 comments on commit bf79bdd

Please sign in to comment.