From 306f203acee3656c6178c55a86f0bead65777761 Mon Sep 17 00:00:00 2001 From: Trevor Date: Sun, 6 Jan 2019 10:45:44 +0900 Subject: [PATCH 1/4] [Grid] Apply theme.spacing.unit to grid spacing --- docs/src/pages/demos/chips/ChipsPlayground.js | 4 ++-- .../pages/demos/lists/InteractiveList.hooks.js | 4 ++-- docs/src/pages/demos/lists/InteractiveList.js | 4 ++-- docs/src/pages/demos/text-fields/InputWithIcon.js | 2 +- .../pages/demos/tooltips/PositionedTooltips.js | 2 +- docs/src/pages/discover-more/team/Team.js | 2 +- .../page-layout-examples/PageLayoutExamples.js | 2 +- .../page-layout-examples/album/Album.js | 4 ++-- .../page-layout-examples/blog/Blog.js | 4 ++-- .../page-layout-examples/checkout/AddressForm.js | 2 +- .../page-layout-examples/checkout/PaymentForm.js | 2 +- .../page-layout-examples/checkout/Review.js | 2 +- .../page-layout-examples/pricing/Pricing.js | 4 ++-- docs/src/pages/lab/toggle-button/ToggleButtons.js | 2 +- docs/src/pages/layout/grid/AutoGrid.js | 4 ++-- docs/src/pages/layout/grid/AutoGridNoWrap.js | 6 +++--- docs/src/pages/layout/grid/CSSGrid.js | 2 +- docs/src/pages/layout/grid/CenteredGrid.js | 2 +- docs/src/pages/layout/grid/ComplexGrid.js | 4 ++-- docs/src/pages/layout/grid/FullWidthGrid.js | 2 +- docs/src/pages/layout/grid/InteractiveGrid.js | 4 ++-- docs/src/pages/layout/grid/NestedGrid.js | 8 ++++---- docs/src/pages/layout/grid/SpacingGrid.js | 15 +++++++++------ docs/src/pages/layout/grid/grid-zh.md | 4 ++-- docs/src/pages/layout/grid/grid.md | 2 +- docs/src/pages/layout/hidden/GridIntegration.js | 2 +- docs/src/pages/premium-themes/PremiumThemes.js | 2 +- .../instapaper/pages/instapaper/Profile.js | 4 ++-- docs/src/pages/premium-themes/onepirate/SignUp.js | 2 +- .../onepirate/modules/views/AppFooter.js | 4 ++-- .../onepirate/modules/views/ProductCTA.js | 2 +- .../onepirate/modules/views/ProductHowItWorks.js | 2 +- .../onepirate/modules/views/ProductValues.js | 2 +- .../src/pages/premium-themes/paperbase/Content.js | 2 +- docs/src/pages/premium-themes/paperbase/Header.js | 4 ++-- .../tweeper/components/tweeper/Header.js | 2 +- .../tweeper/components/tweeper/Tweet.js | 6 +++--- .../tweeper/pages/tweeper/Profile.js | 2 +- docs/src/pages/style/color/ColorTool.js | 2 +- docs/src/pages/system/basics/RealWorld.js | 4 ++-- docs/src/pages/utils/popover/AnchorPlayground.js | 4 ++-- docs/src/pages/utils/popper/PositionedPopper.js | 2 +- docs/src/pages/utils/popper/ScrollPlayground.js | 2 +- packages/material-ui/src/Grid/Grid.d.ts | 2 +- packages/material-ui/src/Grid/Grid.js | 10 ++++++---- packages/material-ui/src/Grid/Grid.test.js | 4 ++-- pages/api/grid.md | 13 ++++++++----- test/regressions/tests/Grid/AutoGrid.js | 4 ++-- test/regressions/tests/Grid/SimpleGrid.js | 2 +- test/regressions/tests/Grid/StressGrid.js | 10 +++++----- test/regressions/tests/Table/PaddingTable.js | 2 +- .../tests/Tooltip/PositionedTooltips.js | 2 +- 52 files changed, 100 insertions(+), 92 deletions(-) diff --git a/docs/src/pages/demos/chips/ChipsPlayground.js b/docs/src/pages/demos/chips/ChipsPlayground.js index 5dc631bb6b222e..f03c0c32270327 100644 --- a/docs/src/pages/demos/chips/ChipsPlayground.js +++ b/docs/src/pages/demos/chips/ChipsPlayground.js @@ -115,7 +115,7 @@ class ChipsPlayground extends React.Component { return ( - + - + color diff --git a/docs/src/pages/demos/lists/InteractiveList.hooks.js b/docs/src/pages/demos/lists/InteractiveList.hooks.js index 47045cf88a31b2..310d87036ee034 100644 --- a/docs/src/pages/demos/lists/InteractiveList.hooks.js +++ b/docs/src/pages/demos/lists/InteractiveList.hooks.js @@ -66,7 +66,7 @@ function InteractiveList() { label="Enable secondary text" /> - + Text only @@ -105,7 +105,7 @@ function InteractiveList() { - + Avatar with text diff --git a/docs/src/pages/demos/lists/InteractiveList.js b/docs/src/pages/demos/lists/InteractiveList.js index 31189ea4a053a1..e7324b4625248c 100644 --- a/docs/src/pages/demos/lists/InteractiveList.js +++ b/docs/src/pages/demos/lists/InteractiveList.js @@ -72,7 +72,7 @@ class InteractiveList extends React.Component { label="Enable secondary text" /> - + Text only @@ -111,7 +111,7 @@ class InteractiveList extends React.Component { - + Avatar with text diff --git a/docs/src/pages/demos/text-fields/InputWithIcon.js b/docs/src/pages/demos/text-fields/InputWithIcon.js index d96bcabc23e79c..7c0447c6ae7c2d 100644 --- a/docs/src/pages/demos/text-fields/InputWithIcon.js +++ b/docs/src/pages/demos/text-fields/InputWithIcon.js @@ -45,7 +45,7 @@ function InputWithIcon(props) { />
- + diff --git a/docs/src/pages/demos/tooltips/PositionedTooltips.js b/docs/src/pages/demos/tooltips/PositionedTooltips.js index 95e5a0864b084c..4de9e0ecd26c65 100644 --- a/docs/src/pages/demos/tooltips/PositionedTooltips.js +++ b/docs/src/pages/demos/tooltips/PositionedTooltips.js @@ -42,7 +42,7 @@ function PositionedTooltips(props) { - + diff --git a/docs/src/pages/discover-more/team/Team.js b/docs/src/pages/discover-more/team/Team.js index 07c7c1f77b5990..93da5d7e9e905f 100644 --- a/docs/src/pages/discover-more/team/Team.js +++ b/docs/src/pages/discover-more/team/Team.js @@ -108,7 +108,7 @@ const styles = theme => ({ function Team(props) { const { classes } = props; return ( - + {members.map(member => ( diff --git a/docs/src/pages/getting-started/page-layout-examples/PageLayoutExamples.js b/docs/src/pages/getting-started/page-layout-examples/PageLayoutExamples.js index ae46a87faa40da..4d8cf49c0b99bf 100644 --- a/docs/src/pages/getting-started/page-layout-examples/PageLayoutExamples.js +++ b/docs/src/pages/getting-started/page-layout-examples/PageLayoutExamples.js @@ -88,7 +88,7 @@ function PageLayoutExamples(props) { const { classes, t } = props; return ( - + {layouts(t).map(layout => ( diff --git a/docs/src/pages/getting-started/page-layout-examples/album/Album.js b/docs/src/pages/getting-started/page-layout-examples/album/Album.js index 2a634ddf808156..46f308a2998a86 100644 --- a/docs/src/pages/getting-started/page-layout-examples/album/Album.js +++ b/docs/src/pages/getting-started/page-layout-examples/album/Album.js @@ -91,7 +91,7 @@ function Album(props) { entirely.
- +
{/* End hero unit */} - + {cards.map(card => ( diff --git a/docs/src/pages/getting-started/page-layout-examples/blog/Blog.js b/docs/src/pages/getting-started/page-layout-examples/blog/Blog.js index 1048d99cfda32e..556bea9907d0b6 100644 --- a/docs/src/pages/getting-started/page-layout-examples/blog/Blog.js +++ b/docs/src/pages/getting-started/page-layout-examples/blog/Blog.js @@ -178,7 +178,7 @@ function Blog(props) { {/* End main featured post */} {/* Sub featured posts */} - + {featuredPosts.map(post => ( @@ -210,7 +210,7 @@ function Blog(props) { ))} {/* End sub featured posts */} - + {/* Main content */} diff --git a/docs/src/pages/getting-started/page-layout-examples/checkout/AddressForm.js b/docs/src/pages/getting-started/page-layout-examples/checkout/AddressForm.js index 970d96d1fa456c..2edde63e3785c2 100644 --- a/docs/src/pages/getting-started/page-layout-examples/checkout/AddressForm.js +++ b/docs/src/pages/getting-started/page-layout-examples/checkout/AddressForm.js @@ -11,7 +11,7 @@ function AddressForm() { Shipping address - + Payment method - + diff --git a/docs/src/pages/getting-started/page-layout-examples/checkout/Review.js b/docs/src/pages/getting-started/page-layout-examples/checkout/Review.js index a83fd1481b2230..a196e7a0857017 100644 --- a/docs/src/pages/getting-started/page-layout-examples/checkout/Review.js +++ b/docs/src/pages/getting-started/page-layout-examples/checkout/Review.js @@ -55,7 +55,7 @@ function Review(props) { - + Shipping diff --git a/docs/src/pages/getting-started/page-layout-examples/pricing/Pricing.js b/docs/src/pages/getting-started/page-layout-examples/pricing/Pricing.js index c4c2a409676b3d..ffdc345a1d7f07 100644 --- a/docs/src/pages/getting-started/page-layout-examples/pricing/Pricing.js +++ b/docs/src/pages/getting-started/page-layout-examples/pricing/Pricing.js @@ -146,7 +146,7 @@ function Pricing(props) {
{/* End hero unit */} - + {tiers.map(tier => ( // Enterprise card is full width at sm breakpoint @@ -186,7 +186,7 @@ function Pricing(props) { {/* Footer */}