Skip to content

Commit 7e95a90

Browse files
committed
Merge branch 'master' into improve-color-map-filter
2 parents 982213f + b734f95 commit 7e95a90

File tree

41 files changed

+795
-476
lines changed

Some content is hidden

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

41 files changed

+795
-476
lines changed

CHANGELOG.old.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,8 +4127,8 @@ A big thanks to the 17 contributors who made this release possible. Here are som
41274127

41284128
```diff
41294129
import {
4130-
unstable_createCssVarsProvider as createCssVarsProvider,
4131-
+ unstable_createCssVarsTheme as createCssVarsTheme,
4130+
unstable_createCssVarsProvider as createCssVarsProvider,
4131+
+ unstable_createCssVarsTheme as createCssVarsTheme,
41324132
} from '@mui/system';
41334133

41344134
const { CssVarsProvider } = createCssVarsProvider({

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55

66
<h1 align="center">Material UI</h1>
77

8-
**Material UI** contains foundational React UI component libraries for shipping new features faster:
9-
10-
- [Material UI](https://mui.com/material-ui/) is a comprehensive library of components that features our implementation of Google's [Material Design](https://m2.material.io/design/introduction/) system.
11-
12-
- [Joy UI](https://mui.com/joy-ui/getting-started/) is a library of beautifully designed React UI components built to spark joy.
13-
148
<div align="center">
159

1610
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/mui/material-ui/blob/HEAD/LICENSE)
@@ -27,30 +21,37 @@
2721

2822
</div>
2923

30-
## Documentation
24+
[Material UI](https://mui.com/material-ui/) is a comprehensive library of React components that features our independent implementation of Google's [Material Design](https://m2.material.io/design/introduction/) system.
25+
It's trusted by some of the world's greatest product teams because it's been rigorously battle-tested through more than a decade of development by thousands of open-source contributors.
3126

32-
### Material UI
27+
Material UI's core functionality is extended by [MUI X](https://github.com/mui/mui-x), a suite of complex components for advanced use cases.
3328

34-
Visit [https://mui.com/material-ui/](https://mui.com/material-ui/) to view the full documentation.
29+
## Documentation
30+
31+
Get started in the [Material UI documentation](https://mui.com/material-ui/getting-started/).
3532

3633
<details>
3734
<summary>Older versions</summary>
3835

39-
- **[v4.x](https://v4.mui.com/)** ([Migration from v4 to v5](https://mui.com/material-ui/migration/migration-v4/))
40-
- **[v3.x](https://v3.mui.com/)** ([Migration from v3 to v4](https://mui.com/material-ui/migration/migration-v3/))
41-
- **[v0.x](https://v0.mui.com/)** ([Migration to v1](https://mui.com/material-ui/migration/migration-v0x/))
36+
- **[v5.x](https://v5.mui.com/)** ([Upgrading from v5 to v6](https://mui.com/material-ui/migration/upgrade-to-v6/))
37+
- **[v4.x](https://v4.mui.com/)** ([Upgrading from v4 to v5](https://mui.com/material-ui/migration/migration-v4/))
38+
- **[v3.x](https://v3.mui.com/)** ([Upgrading from v3 to v4](https://mui.com/material-ui/migration/migration-v3/))
39+
- **[v0.x](https://v0.mui.com/)** ([Upgrading to v1](https://mui.com/material-ui/migration/migration-v0x/))
4240

4341
</details>
4442

45-
**Note:** `@next` only points to pre-releases.
43+
**Note:** `@next` points to pre-releases.
4644
Use `@latest` for the latest stable release.
4745

48-
### Joy UI
46+
## Joy UI
47+
48+
This repository also contains Joy UI, an experimental component library that implements our own in-house Joy Design.
49+
Joy UI is in beta and _development is currently on hold_.
50+
When starting a new project from scratch, we recommend Material UI over Joy UI because we can guarantee ongoing support.
4951

50-
Visit [https://mui.com/joy-ui/getting-started/](https://mui.com/joy-ui/getting-started/) to view the full documentation.
52+
You're welcome to open new issues and PRs to help improve Joy UI, but please keep in mind that the maintainers are primarily focused on other projects and may not be able to respond in a timely manner.
5153

52-
**Note**: Joy UI is still in beta.
53-
We are adding new components regularly and you're welcome to contribute!
54+
View the [Joy UI documentation](https://mui.com/joy-ui/getting-started/).
5455

5556
## Sponsors
5657

@@ -108,7 +109,7 @@ You can find complete templates and themes in the [MUI Store](https://mui.com/s
108109
Read the [contributing guide](/CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes.
109110

110111
Contributing is about more than just issues and pull requests!
111-
There are many other ways to [support Material UI](https://mui.com/material-ui/getting-started/faq/#mui-is-awesome-how-can-i-support-the-project) beyond contributing to the code base.
112+
There are many other ways to [support Material UI](https://mui.com/material-ui/getting-started/faq/#mui-is-an-awesome-organization-how-can-i-support-it) beyond contributing to the code base.
112113

113114
## Changelog
114115

@@ -120,12 +121,11 @@ Future plans and high-priority features and enhancements can be found in the [ro
120121

121122
## License
122123

123-
This project is licensed under the terms of the
124-
[MIT license](/LICENSE).
124+
This project is licensed under the terms of the [MIT license](/LICENSE).
125125

126126
## Security
127127

128-
For details of supported versions and contact details for reporting security issues, please refer to the [security policy](https://github.com/mui/material-ui/security/policy).
128+
For details on supported versions and contact information for reporting security issues, please refer to the [security policy](https://github.com/mui/material-ui/security/policy).
129129

130130
## Sponsoring services
131131

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"devDependencies": {
2626
"@pigment-css/nextjs-plugin": "0.0.21",
27-
"@types/node": "^20.14.8",
27+
"@types/node": "^20.16.5",
2828
"@types/react": "^18.3.4",
2929
"@types/react-dom": "^18.3.0",
3030
"eslint": "^8.57.0",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@types/react": "^18.3.4",
3131
"@types/react-dom": "^18.3.0",
3232
"@vitejs/plugin-react": "^4.3.1",
33-
"postcss": "^8.4.44",
33+
"postcss": "^8.4.45",
3434
"postcss-combine-media-query": "^1.0.1",
3535
"vite": "5.4.2",
3636
"vite-plugin-pages": "^0.32.3",

docs/data/docs/pages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { MuiPage } from 'docs/src/MuiPage';
22
import standardNavIcons from 'docs/src/modules/components/AppNavIcons';
33

44
const pages: readonly MuiPage[] = [
5-
{ pathname: '/versions' },
5+
{ pathname: 'https://mui.com/versions/' },
66
{
77
pathname: 'https://mui.com/store/',
88
title: 'Templates',
@@ -13,7 +13,7 @@ const pages: readonly MuiPage[] = [
1313
'data-ga-event-label': 'sidenav',
1414
},
1515
},
16-
{ pathname: '/blog', title: 'Blog', icon: standardNavIcons.BookIcon },
16+
{ pathname: 'https://mui.com/blog/', title: 'Blog', icon: standardNavIcons.BookIcon },
1717
];
1818

1919
export default pages;

docs/data/joy/getting-started/overview/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ title: Overview
1111
Joy UI is an open-source React component library that follows a lightly opinionated design direction, for a clean and modern UI that gives you plenty of room to customize the look and feel.
1212

1313
:::warning
14-
Joy UI development is temporarily on hold as the maintainers focus on the next two major releases of Material UI.
14+
Joy UI is in beta and _development is currently on hold_.
1515
Read [this blog post](/blog/2023-material-ui-v6-and-beyond/) to learn more.
1616

17-
However, you're welcome to look for the [`package: joy-ui`](https://github.com/mui/material-ui/labels/package%3A%20joy-ui) label on open issues and pull requests in the `mui/material-ui` GitHub repository to see what other community members are working on, and submit your own.
17+
You're welcome to open new issues and PRs to help improve Joy UI, but please keep in mind that the maintainers are primarily focused on other projects and may not be able to respond in a timely manner.
1818
:::
1919

2020
## Why use Joy UI

docs/data/material/components/autocomplete/Asynchronous.js

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,44 +14,30 @@ function sleep(duration) {
1414
export default function Asynchronous() {
1515
const [open, setOpen] = React.useState(false);
1616
const [options, setOptions] = React.useState([]);
17-
const loading = open && options.length === 0;
18-
19-
React.useEffect(() => {
20-
let active = true;
21-
22-
if (!loading) {
23-
return undefined;
24-
}
17+
const [loading, setLoading] = React.useState(false);
2518

19+
const handleOpen = () => {
20+
setOpen(true);
2621
(async () => {
22+
setLoading(true);
2723
await sleep(1e3); // For demo purposes.
24+
setLoading(false);
2825

29-
if (active) {
30-
setOptions([...topFilms]);
31-
}
26+
setOptions([...topFilms]);
3227
})();
28+
};
3329

34-
return () => {
35-
active = false;
36-
};
37-
}, [loading]);
38-
39-
React.useEffect(() => {
40-
if (!open) {
41-
setOptions([]);
42-
}
43-
}, [open]);
30+
const handleClose = () => {
31+
setOpen(false);
32+
setOptions([]);
33+
};
4434

4535
return (
4636
<Autocomplete
4737
sx={{ width: 300 }}
4838
open={open}
49-
onOpen={() => {
50-
setOpen(true);
51-
}}
52-
onClose={() => {
53-
setOpen(false);
54-
}}
39+
onOpen={handleOpen}
40+
onClose={handleClose}
5541
isOptionEqualToValue={(option, value) => option.title === value.title}
5642
getOptionLabel={(option) => option.title}
5743
options={options}

docs/data/material/components/autocomplete/Asynchronous.tsx

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -19,44 +19,30 @@ function sleep(duration: number): Promise<void> {
1919
export default function Asynchronous() {
2020
const [open, setOpen] = React.useState(false);
2121
const [options, setOptions] = React.useState<readonly Film[]>([]);
22-
const loading = open && options.length === 0;
23-
24-
React.useEffect(() => {
25-
let active = true;
26-
27-
if (!loading) {
28-
return undefined;
29-
}
22+
const [loading, setLoading] = React.useState(false);
3023

24+
const handleOpen = () => {
25+
setOpen(true);
3126
(async () => {
27+
setLoading(true);
3228
await sleep(1e3); // For demo purposes.
29+
setLoading(false);
3330

34-
if (active) {
35-
setOptions([...topFilms]);
36-
}
31+
setOptions([...topFilms]);
3732
})();
33+
};
3834

39-
return () => {
40-
active = false;
41-
};
42-
}, [loading]);
43-
44-
React.useEffect(() => {
45-
if (!open) {
46-
setOptions([]);
47-
}
48-
}, [open]);
35+
const handleClose = () => {
36+
setOpen(false);
37+
setOptions([]);
38+
};
4939

5040
return (
5141
<Autocomplete
5242
sx={{ width: 300 }}
5343
open={open}
54-
onOpen={() => {
55-
setOpen(true);
56-
}}
57-
onClose={() => {
58-
setOpen(false);
59-
}}
44+
onOpen={handleOpen}
45+
onClose={handleClose}
6046
isOptionEqualToValue={(option, value) => option.title === value.title}
6147
getOptionLabel={(option) => option.title}
6248
options={options}

docs/data/material/customization/css-theme-variables/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { ThemeProvider, createTheme } from '@mui/material/styles';
1717
const theme = createTheme({ cssVariables: true });
1818

1919
function App() {
20-
return <ThemeProvider>{/* ...you app */}</ThemeProvider>;
20+
return <ThemeProvider theme={theme}>{/* ...your app */}</ThemeProvider>;
2121
}
2222
```
2323

docs/data/material/design-resources/material-ui-for-figma/material-ui-for-figma.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,14 @@ If you need to replace a single component that's been updated, there are a coupl
100100
## Feedback and bug reports
101101

102102
If you've got any feedback, we'd love to [hear from you](https://github.com/mui/mui-design-kits/discussions/84).
103+
104+
## Integrations
105+
106+
### Quest
107+
108+
[Quest](https://www.quest.ai/) provides a native integration with this design kit.
109+
110+
When you design your components with the kit, you can use [Quest plugin](https://www.figma.com/community/plugin/862039267149408972/figma-to-react-from-quest) to convert your Figma designs into Material UI code.
111+
The code generated should be clean and production-ready.
112+
113+
Visit the [Quest documentation](https://docs.quest.ai/quest-docs) for more details.

0 commit comments

Comments
 (0)