Skip to content

Commit 60e9b96

Browse files
authored
Merge branch 'master' into joy/autocomplete
Signed-off-by: Siriwat K <[email protected]>
2 parents 9780a9d + e72393b commit 60e9b96

File tree

128 files changed

+4767
-1205
lines changed

Some content is hidden

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

128 files changed

+4767
-1205
lines changed

.circleci/config.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ jobs:
342342
test_browser:
343343
<<: *defaults
344344
docker:
345-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
345+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
346346
environment:
347347
NODE_ENV: development # Needed if playwright is in `devDependencies`
348348
steps:
@@ -372,7 +372,7 @@ jobs:
372372
test_e2e:
373373
<<: *defaults
374374
docker:
375-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
375+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
376376
environment:
377377
NODE_ENV: development # Needed if playwright is in `devDependencies`
378378
steps:
@@ -391,7 +391,7 @@ jobs:
391391
test_e2e_website:
392392
<<: *defaults
393393
docker:
394-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
394+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
395395
environment:
396396
NODE_ENV: development # Needed if playwright is in `devDependencies`
397397
steps:
@@ -406,7 +406,7 @@ jobs:
406406
test_profile:
407407
<<: *defaults
408408
docker:
409-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
409+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
410410
environment:
411411
NODE_ENV: development # Needed if playwright is in `devDependencies`
412412
steps:
@@ -433,7 +433,7 @@ jobs:
433433
test_regressions:
434434
<<: *defaults
435435
docker:
436-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
436+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
437437
environment:
438438
NODE_ENV: development # Needed if playwright is in `devDependencies`
439439
steps:
@@ -487,7 +487,7 @@ jobs:
487487
<<: *defaults
488488
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack4/
489489
docker:
490-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
490+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
491491
environment:
492492
NODE_ENV: development # Needed if playwright is in `devDependencies`
493493
steps:
@@ -511,7 +511,7 @@ jobs:
511511
<<: *defaults
512512
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack5/
513513
docker:
514-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
514+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
515515
environment:
516516
NODE_ENV: development # Needed if playwright is in `devDependencies`
517517
steps:
@@ -535,7 +535,7 @@ jobs:
535535
<<: *defaults
536536
working_directory: /tmp/material-ui/test/bundling/fixtures/create-react-app/
537537
docker:
538-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
538+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
539539
environment:
540540
NODE_ENV: development # Needed if playwright is in `devDependencies`
541541
steps:
@@ -559,7 +559,7 @@ jobs:
559559
<<: *defaults
560560
working_directory: /tmp/material-ui/test/bundling/fixtures/snowpack/
561561
docker:
562-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
562+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
563563
environment:
564564
NODE_ENV: development # Needed if playwright is in `devDependencies`
565565
steps:
@@ -583,7 +583,7 @@ jobs:
583583
<<: *defaults
584584
working_directory: /tmp/material-ui/test/bundling/fixtures/vite/
585585
docker:
586-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
586+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
587587
environment:
588588
NODE_ENV: development # Needed if playwright is in `devDependencies`
589589
steps:
@@ -607,7 +607,7 @@ jobs:
607607
<<: *defaults
608608
working_directory: /tmp/material-ui/test/bundling/fixtures/esbuild/
609609
docker:
610-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
610+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
611611
environment:
612612
NODE_ENV: development # Needed if playwright is in `devDependencies`
613613
steps:
@@ -635,7 +635,7 @@ jobs:
635635
<<: *defaults
636636
working_directory: /tmp/material-ui/test/bundling/fixtures/gatsby/
637637
docker:
638-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
638+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
639639
environment:
640640
NODE_ENV: development # Needed if playwright is in `devDependencies`
641641
steps:
@@ -737,7 +737,7 @@ jobs:
737737
test_benchmark:
738738
<<: *defaults
739739
docker:
740-
- image: mcr.microsoft.com/playwright:v1.26.0-focal
740+
- image: mcr.microsoft.com/playwright:v1.26.1-focal
741741
environment:
742742
NODE_ENV: development # Needed if playwright is in `devDependencies`
743743
steps:

CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,61 @@
11
# [Versions](https://mui.com/versions/)
22

3+
## 5.10.8
4+
5+
<!-- generated comparing v5.10.7..master -->
6+
7+
_Oct 3, 2022_
8+
9+
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
10+
11+
- 🚀 [SnackbarUnstyled](https://mui.com/base/react-snackbar/) component & headless hook are added to MUI Base (#33227) @ZeeshanTamboli
12+
- 📚 [CSS variables documentation](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/) for Material UI has been added by @siriwatknp (#33958)
13+
- And more 🐛 bug fixes and 📚 documentation improvements.
14+
15+
16+
17+
- &#8203;<!-- 28 -->[Autocomplete] Skip filtering when list of options is loading (#33278) @ndebeiss
18+
- &#8203;<!-- 13 -->[Fab] Add `disabled` class to FAB button (#34245) @meenarama
19+
- &#8203;<!-- 09 -->[l10n] Add Arabic Saudi Arabia (ar-SA) locale (#33340) @rolule
20+
- &#8203;<!-- 08 -->[l10n] zhTW refinement (#33391) @Aporim2051
21+
- &#8203;<!-- 07 -->[Popover] Add `ownerState` on the paper slot (#34445) @kabernardes
22+
- &#8203;<!-- 05 -->[Slider] Fixed incorrect marks displayed due to duplicate keys in range (#33526) @kskd1804
23+
- &#8203;<!-- 03 -->[TextField] Fix typo in FormControlLabel declaration file (#34535) @hghmn
24+
25+
26+
27+
- &#8203;<!-- 04 -->[SnackbarUnstyled] Create component and `useSnackbar` hook (#33227) @ZeeshanTamboli
28+
29+
30+
31+
- &#8203;<!-- 12 -->[Joy] Fix `variantPlain` classname missing in few components (#34534) @hbjORbj
32+
- &#8203;<!-- 11 -->[Joy] Fix input decorator color and list padding (#34586) @siriwatknp
33+
- &#8203;<!-- 10 -->[Joy] Miscellaneous fixes (#34492) @siriwatknp
34+
35+
### Docs
36+
37+
- &#8203;<!-- 27 -->[blog] Fix 404 link in base introduction @oliviertassinari
38+
- &#8203;<!-- 21 -->[docs] Fix CI build (#34589) @mnajdova
39+
- &#8203;<!-- 20 -->[docs] Temporary remove date picker from home page (#34541) @siriwatknp
40+
- &#8203;<!-- 19 -->[docs] Revise and expand Joy UI "Tutorial" doc (#34569) @samuelsycamore
41+
- &#8203;<!-- 18 -->[docs] Fix SEO issues (#34537) @oliviertassinari
42+
- &#8203;<!-- 17 -->[docs] Add CSS variables documentation for Material UI (#33958) @siriwatknp
43+
- &#8203;<!-- 16 -->[docs] Capitalize Material Design on the Breakpoints page (#34481) @Dustin-Digitar
44+
- &#8203;<!-- 15 -->[docs] Able to load doc components inside markdown files (#34243) @flaviendelangle
45+
- &#8203;<!-- 14 -->[docs] Use mouse pointer on esc button in the search modal (#34485) @minkyngkm
46+
- &#8203;<!-- 02 -->[website] Fix typo in pricing FAQ @oliviertassinari
47+
- &#8203;<!-- 01 -->[website] Move the React Engineer role from open to next (#34494) @mnajdova
48+
49+
### Core
50+
51+
- &#8203;<!-- 26 -->[core] Update root package.json version (#34592) @mnajdova
52+
- &#8203;<!-- 25 -->[core] Remove useless comment in fixtures (#34581) @Garz4
53+
- &#8203;<!-- 24 -->[core] Fix link to CODE_OF_CONDUCT.md (#34543) @peippo
54+
- &#8203;<!-- 23 -->[core] Remove outdated docsearch.js dependency (#34421) @oliviertassinari
55+
- &#8203;<!-- 22 -->[core] Add `newFeature` to the typing of MuiPage (#34511) @flaviendelangle
56+
57+
All contributors of this release in alphabetical order: @Aporim2051, @Dustin-Digitar, @flaviendelangle, @Garz4, @hbjORbj, @hghmn, @kabernardes, @kskd1804, @meenarama, @minkyngkm, @mnajdova, @ndebeiss, @oliviertassinari, @peippo, @rolule, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
58+
359
## 5.10.7
460

561
<!-- generated comparing v5.10.6..master -->

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ If you're reading this, you're awesome! Thank you for helping us make this proje
55
## Code of Conduct
66

77
MUI has adopted the [Contributor Covenant](https://www.contributor-covenant.org/) as its Code of Conduct, and we expect project participants to adhere to it.
8-
Please read [the full text](/CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated.
8+
Please read [the full text](https://github.com/mui/.github/blob/master/CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated.
99

1010
## A large spectrum of contributions
1111

benchmark/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
"@emotion/react": "^11.10.4",
1616
"@emotion/styled": "^11.10.4",
1717
"@mdx-js/react": "^2.1.3",
18-
"@mui/material": "^5.10.7",
19-
"@mui/styles": "^5.10.7",
20-
"@mui/system": "^5.10.7",
18+
"@mui/material": "^5.10.8",
19+
"@mui/styles": "^5.10.8",
20+
"@mui/system": "^5.10.8",
2121
"@styled-system/css": "^5.1.5",
2222
"benchmark": "^2.1.4",
23-
"playwright": "^1.26.0",
23+
"playwright": "^1.26.1",
2424
"react": "^18.2.0",
2525
"react-dom": "^18.2.0",
2626
"react-is": "^18.2.0",
2727
"react-jss": "^10.9.2",
2828
"react-redux": "^7.2.9",
2929
"redux": "^4.2.0",
3030
"serve-handler": "^6.1.3",
31-
"styled-components": "^5.3.5",
31+
"styled-components": "^5.3.6",
3232
"theme-ui": "^0.14.7",
3333
"webpack": "^5.74.0",
3434
"webpack-cli": "^4.10.0"
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
import * as React from 'react';
2+
import { Transition } from 'react-transition-group';
3+
import { styled } from '@mui/system';
4+
import CheckRoundedIcon from '@mui/icons-material/CheckRounded';
5+
import CloseIcon from '@mui/icons-material/Close';
6+
import SnackbarUnstyled from '@mui/base/SnackbarUnstyled';
7+
8+
const blue = {
9+
50: '#F0F7FF',
10+
100: '#DAECFF',
11+
400: '#3399FF',
12+
600: '#0072E5',
13+
900: '#003A75',
14+
};
15+
16+
const grey = {
17+
200: '#E0E3E7',
18+
800: '#2D3843',
19+
};
20+
21+
const StyledSnackbar = styled(SnackbarUnstyled)`
22+
position: fixed;
23+
z-index: 5500;
24+
display: flex;
25+
bottom: 16px;
26+
right: 16px;
27+
max-width: 560px;
28+
min-width: 300px;
29+
`;
30+
31+
const SnackbarContent = styled('div')(
32+
({ theme }) => `
33+
display: flex;
34+
overflow: hidden;
35+
background-color: ${theme.palette.mode === 'dark' ? blue[900] : blue[50]};
36+
border-radius: 8px;
37+
border: 1px solid ${theme.palette.mode === 'dark' ? blue[600] : blue[400]};
38+
box-shadow: ${
39+
theme.palette.mode === 'dark'
40+
? `0 5px 13px -3px rgba(0,0,0,0.4)`
41+
: `0 5px 13px -3px ${grey[200]}`
42+
};
43+
padding: 0.875rem;
44+
color: ${theme.palette.mode === 'dark' ? '#fff' : blue[900]};
45+
font-family: IBM Plex Sans, sans-serif;
46+
font-weight: 500;
47+
text-align: start;
48+
position: relative;
49+
50+
& .snackbar-message {
51+
flex: 1 1 0%;
52+
max-width: 100%;
53+
}
54+
55+
& .snackbar-title {
56+
line-height: 1.5rem;
57+
margin-right: 0.5rem;
58+
}
59+
60+
& .snackbar-description {
61+
line-height: 1.5rem;
62+
font-weight: 400;
63+
color: ${theme.palette.mode === 'dark' ? blue[100] : grey[800]};
64+
}
65+
66+
& .snackbar-close-icon {
67+
cursor: pointer;
68+
font-size: 10px;
69+
position: absolute;
70+
top: 0.725rem;
71+
right: 0.725rem;
72+
width: 1.25rem;
73+
height: 1.5rem;
74+
display: flex;
75+
align-items: center;
76+
justify-content: center;
77+
}
78+
`,
79+
);
80+
81+
const positioningStyles = {
82+
entering: 'translateX(0)',
83+
entered: 'translateX(0)',
84+
exiting: 'translateX(500px)',
85+
exited: 'translateX(500px)',
86+
unmounted: 'translateX(500px)',
87+
};
88+
89+
export default function TransitionComponentSnackbar() {
90+
const [open, setOpen] = React.useState(false);
91+
const [exited, setExited] = React.useState(true);
92+
const nodeRef = React.useRef(null);
93+
94+
const handleClose = (_, reason) => {
95+
if (reason === 'clickaway') {
96+
return;
97+
}
98+
99+
setOpen(false);
100+
};
101+
102+
const handleClick = () => {
103+
setOpen(true);
104+
};
105+
106+
const handleOnEnter = () => {
107+
setExited(false);
108+
};
109+
110+
const handleOnExited = () => {
111+
setExited(true);
112+
};
113+
114+
return (
115+
<React.Fragment>
116+
<button type="button" onClick={handleClick}>
117+
Open snackbar
118+
</button>
119+
<StyledSnackbar
120+
autoHideDuration={5000}
121+
open={open}
122+
onClose={handleClose}
123+
exited={exited}
124+
>
125+
<Transition
126+
timeout={{ enter: 400, exit: 400 }}
127+
in={open}
128+
appear
129+
unmountOnExit
130+
onEnter={handleOnEnter}
131+
onExited={handleOnExited}
132+
nodeRef={nodeRef}
133+
>
134+
{(status) => (
135+
<SnackbarContent
136+
style={{
137+
transform: positioningStyles[status],
138+
transition: 'transform 300ms ease',
139+
}}
140+
ref={nodeRef}
141+
>
142+
<CheckRoundedIcon
143+
sx={{
144+
flexShrink: 0,
145+
marginRight: '0.75rem',
146+
width: '1.25rem',
147+
height: '1.5rem',
148+
}}
149+
/>
150+
<div className="snackbar-message">
151+
<div className="snackbar-title">Notifications sent</div>
152+
<div className="snackbar-description">
153+
All your notifications were sent to the desired address.
154+
</div>
155+
</div>
156+
<CloseIcon onClick={handleClose} className="snackbar-close-icon" />
157+
</SnackbarContent>
158+
)}
159+
</Transition>
160+
</StyledSnackbar>
161+
</React.Fragment>
162+
);
163+
}

0 commit comments

Comments
 (0)