-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into feat/slider-emotion
- Loading branch information
Showing
47 changed files
with
700 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,144 @@ | ||
### [Versions](https://material-ui.com/versions/) | ||
|
||
## 5.0.0-alpha.10 | ||
|
||
###### _Sep 15, 2020_ | ||
|
||
Big thanks to the 16 contributors who made this release possible. | ||
Here are some highlights ✨: | ||
|
||
- Keep working on the breaking changes before v5-beta. | ||
As always, you should find a clear and simple upgrade path for each of them. | ||
- And many more 🐛 bug fixes and 📚 improvements. | ||
|
||
### `@material-ui/[email protected]` | ||
|
||
#### Breaking changes | ||
|
||
- [Accordion] Normalize focusVisible logic (#22567) @oliviertassinari | ||
Rename `focused` to `focusVisible` for consistency with the other components: | ||
|
||
```diff | ||
<Accordion | ||
classes={{ | ||
- focused: 'custom-focus-visible-classname', | ||
+ focusVisible: 'custom-focus-visible-classname', | ||
}} | ||
/> | ||
``` | ||
|
||
- [Stepper] Remove Paper and built-in padding (#22564) @mbrookes | ||
The root component (Paper) was replaced with a `<div>`. Stepper no longer has elevation, nor inherits Paper's props. This change is meant to encourage composition. | ||
|
||
```diff | ||
-<Stepper elevation={2}> | ||
- <Step> | ||
- <StepLabel>Hello world</StepLabel> | ||
- </Step> | ||
-</Stepper> | ||
+<Paper square elevation={2}> | ||
+ <Stepper> | ||
+ <Step> | ||
+ <StepLabel>Hello world</StepLabel> | ||
+ </Step> | ||
+ </Stepper> | ||
+<Paper> | ||
``` | ||
|
||
Remove the built-in 24px padding for consistency with the other components that avoid reserving space anytime it's possible. | ||
|
||
```diff | ||
-<Stepper> | ||
- <Step> | ||
- <StepLabel>Hello world</StepLabel> | ||
- </Step> | ||
-</Stepper> | ||
+<Stepper style={{ padding: 24 }}> | ||
+ <Step> | ||
+ <StepLabel>Hello world</StepLabel> | ||
+ </Step> | ||
+</Stepper> | ||
``` | ||
|
||
- [theme] Always return default spacing value with px units (#22552) @mbrookes | ||
|
||
`theme.spacing` now returns single values with px units by default. | ||
This change improves the integration with styled-components & emotion (with the CSS template strings syntax). | ||
|
||
Before: | ||
|
||
``` | ||
theme.spacing(2) => 16 | ||
``` | ||
|
||
After: | ||
|
||
``` | ||
theme.spacing(2) => '16px' | ||
``` | ||
|
||
You can restore the previous behavior with: | ||
|
||
```diff | ||
-const theme = createMuiTheme(); | ||
+const theme = createMuiTheme({ | ||
+ spacing: x => x * 8, | ||
+}); | ||
``` | ||
|
||
- [theme] Remove palette.text.hint key (#22537) @mbrookes | ||
|
||
The `theme.palette.text.hint` key was available but unused in Material-UI v4 components. | ||
You can use `adaptV4Theme()` to restore the previous behavior. | ||
|
||
#### Changes | ||
|
||
- [BottomNavigation] onClick does not fire if tapped while scrolling (#22524) @EliasJorgensen | ||
- [Button] Remove dead code (#22566) @oliviertassinari | ||
- [Chip] Fix focus visible style (#22430) @alexmotoc | ||
- [ImageList] Refactor using CSS grid & React context (#22395) @mbrookes | ||
- [Slider] Improve integration with form libraries (#22548) @NoNonsense126 | ||
- [StepIcon] Add className in render SvgIcon (#22559) @ZouYouShun | ||
- [SwipeableDrawer] Avoid blocking events (#22525) @JadRizk | ||
- [theme] Support spacing and border radius with CSS unit (#22530) @madmanwithabike | ||
- [theme] Fix theme object global leak (#22517) @eps1lon | ||
- [theme] Increase usage of the disabled design tokens (#22570) @LorenzHenk | ||
|
||
### `@material-ui/[email protected]` | ||
|
||
#### Breaking changes | ||
|
||
- [Rating] Use different shape for empty and filled icons (#22554) @oliviertassinari | ||
Change the default empty icon to improve accessibility (1.4.1 WCAG 2.1). | ||
If you have a custom `icon` prop but no `emptyIcon` prop, you can restore the previous behavior with: | ||
|
||
```diff | ||
<Rating | ||
icon={customIcon} | ||
+ emptyIcon={null} | ||
/> | ||
``` | ||
|
||
#### Changes | ||
|
||
- [Autocomplete] Improve TypeScript in the Google Maps demo (#22555) @L-U-C-K-Y | ||
- [Rating] Explain some styles in code comments (#22571) @eps1lon | ||
|
||
### Docs | ||
|
||
- [docs] Improve Font Awesome integration (#22496) @chrislambe | ||
- [docs] Clarify SSG acronym in Next.js example (#22558) @leerob | ||
- [docs] Add redirection for links published on npm (#22575) @oliviertassinari | ||
- [docs] Add LightyearVPN to showcase (#22568) @lightyearvpn | ||
- [docs] Fix typo, extra 'you' (#22560) @jedsmit | ||
- [docs] Option to disable ads (#22574) @oliviertassinari | ||
|
||
### Core | ||
|
||
- [core] Remove usage of deprecated event.keyCode (#22569) @oliviertassinari | ||
- [core] Remove references to other objects from created theme (#22523) @eps1lon | ||
- [core] Batch small changes (#22565) @oliviertassinari | ||
|
||
## 5.0.0-alpha.9 | ||
|
||
###### _Sep 6, 2020_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog'; | ||
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; | ||
|
||
const pageFilename = 'blog/marija-najdova-joining'; | ||
const requireRaw = require.context('!raw-loader!./', false, /marija-najdova-joining\.md$/); | ||
|
||
export default function Page({ docs }) { | ||
return <TopLayoutBlog docs={docs} />; | ||
} | ||
|
||
Page.getInitialProps = () => { | ||
const { demos, docs } = prepareMarkdown({ pageFilename, requireRaw }); | ||
return { demos, docs }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: Marija Najdova joins Material-UI | ||
description: We are excited to share that Marija Najdova has joined Material-UI. She has started this week full-time and is now part of the community team. | ||
date: 2020-09-15T00:00:00.000Z | ||
authors: ['oliviertassinari'] | ||
--- | ||
|
||
We are excited to share that [Marija Najdova](https://twitter.com/marijanajdova) has joined Material-UI. She has started this week full-time, and is now part of the community team. | ||
|
||
Before joining Material-UI, Marija worked on the React implementation of [Fluent UI](https://www.microsoft.com/design/fluent/) at Microsoft. She's passionate about React, design systems, and component driven development. At Microsoft, as part of the Fluent UI core team since 2018, she was responsible for the icons, animations and various theme related features. | ||
|
||
Marija is off to a running start, having made important changes happen during her free time, even before starting! These include a new structure for the theme object, as well as the ability to [add custom variants](https://next.material-ui.com/customization/components/#adding-new-component-variants) in v5: | ||
|
||
She is now actively working on the unstyled components and [the update of the style engine](https://github.com/mui-org/material-ui/issues/22342). These are two items we've been eager to push forward since the release of v1 but that required someone to be dedicated to tackling them. | ||
|
||
The community team will continue developing the foundations on which to build great design systems. Here's a quick view of [the community roadmap](https://github.com/mui-org/material-ui/projects/25). | ||
|
||
We couldn’t be more excited to have Marija on the team! You can follow her on [Twitter](https://twitter.com/marijanajdova). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog'; | ||
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; | ||
|
||
const pageFilename = 'blog/spotlight-damien-tassone'; | ||
const requireRaw = require.context('!raw-loader!./', false, /spotlight-damien-tassone\.md$/); | ||
|
||
export default function Page({ docs }) { | ||
return <TopLayoutBlog docs={docs} />; | ||
} | ||
|
||
Page.getInitialProps = () => { | ||
const { demos, docs } = prepareMarkdown({ pageFilename, requireRaw }); | ||
return { demos, docs }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: A spotlight on Damien Tassone joining the team | ||
description: Damien Tassone has joined Material-UI. He's the first full-time member to focus on enterprise components. | ||
date: 2020-09-15T00:00:00.000Z | ||
authors: ['oliviertassinari'] | ||
--- | ||
|
||
A few months ago, right in the middle of the COVID-19 outbreak, [Damien Tassone](https://twitter.com/madKakoO) joined Material-UI. He's the first full-time member to focus on enterprise components. Back then, we only made a quick mention of it. It's never too late to introduce him properly. | ||
|
||
Prior to joining Material-UI, Damien worked in the finance industry in London for a decade. Part of the initial Agile Market team at RBS, and more recently leading a large Commodity Trading application at Adaptive, Damien has developed his React experience as part of large projects where Components driven design plays a huge role in successfully delivering applications. He loves TypeScript. | ||
|
||
Right from the start, Damien has made fast and significant progress. He has been an amazing addition to the team, and thanks to him, we are on the verge of releasing a new advanced component: the [Data Grid](https://material-ui.com/components/data-grid). | ||
|
||
<img src="/static/blog/spotlight-damien-tassone/data-grid.png" style="margin-bottom: 3rem;" alt="Data Grid" /> | ||
|
||
The enterprise team will continue developing the data grid component, and progressively extend to new advanced components as we grow the team. Here's a quick view of [the enterprise roadmap](https://github.com/mui-org/material-ui-x/projects/1). | ||
|
||
You can follow Damien on [Twitter](https://twitter.com/madKakoO). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.