forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 2
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/move-slider-styled-to-core
- Loading branch information
Showing
165 changed files
with
2,010 additions
and
1,097 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
27 changes: 0 additions & 27 deletions
27
benchmark/browser/scenarios/basic-styled-components/index.js
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.
27 changes: 12 additions & 15 deletions
27
benchmark/browser/scenarios/box-material-ui-styles/index.js
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,24 +1,21 @@ | ||
import * as React from 'react'; | ||
import { createMuiTheme } from '@material-ui/core/styles'; | ||
import { ThemeProvider as StylesThemeProvider } from '@material-ui/styles'; | ||
import BoxStyles from '@material-ui/core/Box'; | ||
|
||
const materialSystemTheme = createMuiTheme(); | ||
import Box from '@material-ui/core/Box'; | ||
|
||
export default function BoxMaterialUIStyles() { | ||
return ( | ||
<StylesThemeProvider theme={materialSystemTheme}> | ||
<React.Fragment> | ||
{new Array(1000).fill().map(() => ( | ||
<BoxStyles | ||
color="primary.main" | ||
bgcolor="background.paper" | ||
fontFamily="h6.fontFamily" | ||
fontSize={['h6.fontSize', 'h4.fontSize', 'h3.fontSize']} | ||
p={[2, 3, 4]} | ||
<Box | ||
width={200} | ||
height={200} | ||
borderWidth="3px" | ||
borderColor="white" | ||
backgroundColor={{ sm: 'primary.main' }} | ||
borderStyle={{ sm: 'dashed' }} | ||
> | ||
@material-ui/styles | ||
</BoxStyles> | ||
test case | ||
</Box> | ||
))} | ||
</StylesThemeProvider> | ||
</React.Fragment> | ||
); | ||
} |
Oops, something went wrong.