forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Batch small changes (mui#22183)
- Loading branch information
1 parent
d625cec
commit 8ba0e51
Showing
17 changed files
with
111 additions
and
72 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
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 |
---|---|---|
|
@@ -34,7 +34,7 @@ Here are some highlights ✨: | |
} | ||
|
||
// Enjoy! | ||
<Button variant="dashed" /> | ||
<Button variant="dashed" />; | ||
``` | ||
|
||
More details in [the documentation](https://material-ui.com/customization/components/#adding-new-component-variants) and [RFC](#21749). | ||
|
@@ -135,7 +135,7 @@ Here are some highlights ✨: | |
It better matches the behavior of Gmail, Google Keep, material.io, etc. | ||
You can restore the previous behavior with: | ||
|
||
```diff | ||
```diff | ||
-<Snackbar /> | ||
+<Snackbar anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }} /> | ||
``` | ||
|
@@ -262,7 +262,7 @@ Here are some highlights ✨: | |
- [docs] Disallow undefined array members at runtime where they're unexpected (#21990) @eps1lon | ||
- [docs] Improve Autocomplete GitHub demo (#22153) @aquibbaig | ||
- [docs] Improve draggable dialog demo wording (#22021) @Sanskar95 | ||
- [docs] Improve transition props API descriptions (#21952) @maksimgm | ||
- [docs] Improve transition props API descriptions (#21952) @maksimgm | ||
- [docs] Port buildApi to TypeScript (#22055) @eps1lon | ||
- [docs] Update build instructions for component API (#21970) @eps1lon | ||
- [docs] Update grouped instruction of autocomplete (#22056) @yfng96 | ||
|
@@ -294,13 +294,25 @@ Big thanks to the 18 contributors who made this release possible. | |
|
||
### `@material-ui/[email protected]` | ||
|
||
#### Breaking changes | ||
|
||
- [Grid] Rename justify prop to justifyContent (#21845) @mnajdova | ||
|
||
Rename `justify` prop with `justifyContent` to be aligned with the CSS property name. | ||
|
||
```diff | ||
-<Grid justify="center"> | ||
+<Grid justifyContent="center"> | ||
``` | ||
|
||
#### Changes | ||
|
||
- [Accordion] Add new classes key (#21920) @natac13 | ||
- [Accordion] Fix IconButtonProps spreading logic (#21850) @kgregory | ||
- [Avatar] Fix group size (#21896) @natac13 | ||
- [Button] Custom variant (#21648) @mnajdova | ||
- [CssBaseline] Export ScopedCssBaseline from barrel index (#21869) @mherczeg | ||
- [Dialog] Fix body scrollbar close behavior (#21951) @maksimgm | ||
- [Grid] Rename justify prop to justifyContent (#21845) @mnajdova | ||
- [Icon] Hide name placeholder while "Material Icons" font is loading (#21950) @maksimgm | ||
- [Select] Ensure that onChange is called before onClose (#21878) @DanailH | ||
- [Slider] Make `index` public in the ValueLabel props (#21932) @govardhan-srinivas | ||
|
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
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,42 @@ | ||
const path = require('path'); | ||
|
||
// This module isn't used to build the documentation. We use Next.js for that. | ||
// This module is used by the visual regression tests to run the demos. | ||
module.exports = { | ||
context: path.resolve(__dirname), | ||
resolve: { | ||
modules: [__dirname, 'node_modules'], | ||
alias: { | ||
'@material-ui/core': path.resolve(__dirname, './packages/material-ui/src'), | ||
'@material-ui/docs': path.resolve(__dirname, './packages/material-ui-docs/src'), | ||
'@material-ui/icons': path.resolve(__dirname, './packages/material-ui-icons/src'), | ||
'@material-ui/lab': path.resolve(__dirname, './packages/material-ui-lab/src'), | ||
'@material-ui/styles': path.resolve(__dirname, './packages/material-ui-styles/src'), | ||
'@material-ui/system': path.resolve(__dirname, './packages/material-ui-system/src'), | ||
'@material-ui/utils': path.resolve(__dirname, './packages/material-ui-utils/src'), | ||
docs: path.resolve(__dirname, './docs'), | ||
}, | ||
extensions: ['.js', '.ts', '.tsx', '.d.ts'], | ||
}, | ||
output: { | ||
path: path.join(__dirname, 'build'), | ||
filename: 'bundle.js', | ||
publicPath: '/build/', | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(js|ts|tsx)$/, | ||
exclude: /node_modules/, | ||
loader: 'babel-loader', | ||
query: { | ||
cacheDirectory: true, | ||
}, | ||
}, | ||
{ | ||
test: /\.md$/, | ||
loader: 'raw-loader', | ||
}, | ||
], | ||
}, | ||
}; |