Skip to content

Commit

Permalink
Rorder variants in docs demos
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Nov 13, 2020
1 parent 4d3b03d commit d9e4380
Show file tree
Hide file tree
Showing 21 changed files with 238 additions and 240 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/components/text-fields/BasicTextFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export default function BasicTextFields() {

return (
<form className={classes.root} noValidate autoComplete="off">
<TextField id="standard-basic" label="Standard" variant="standard" />
<TextField id="filled-basic" label="Filled" variant="filled" />
<TextField id="outlined-basic" label="Outlined" />
<TextField id="filled-basic" label="Filled" variant="filled" />
<TextField id="standard-basic" label="Standard" variant="standard" />
</form>
);
}
4 changes: 2 additions & 2 deletions docs/src/pages/components/text-fields/BasicTextFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export default function BasicTextFields() {

return (
<form className={classes.root} noValidate autoComplete="off">
<TextField id="standard-basic" label="Standard" variant="standard" />
<TextField id="filled-basic" label="Filled" variant="filled" />
<TextField id="outlined-basic" label="Outlined" />
<TextField id="filled-basic" label="Filled" variant="filled" />
<TextField id="standard-basic" label="Standard" variant="standard" />
</form>
);
}
10 changes: 5 additions & 5 deletions docs/src/pages/components/text-fields/ColorTextFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ export default function ColorTextFields() {
return (
<form className={classes.root} noValidate autoComplete="off">
<TextField
id="standard-secondary"
label="Standard secondary"
id="outlined-secondary"
label="Outlined secondary"
color="secondary"
variant="standard"
/>
<TextField
id="filled-secondary"
Expand All @@ -29,9 +28,10 @@ export default function ColorTextFields() {
color="secondary"
/>
<TextField
id="outlined-secondary"
label="Outlined secondary"
id="standard-secondary"
label="Standard secondary"
color="secondary"
variant="standard"
/>
</form>
);
Expand Down
10 changes: 5 additions & 5 deletions docs/src/pages/components/text-fields/ColorTextFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ export default function ColorTextFields() {
return (
<form className={classes.root} noValidate autoComplete="off">
<TextField
id="standard-secondary"
label="Standard secondary"
id="outlined-secondary"
label="Outlined secondary"
color="secondary"
variant="standard"
/>
<TextField
id="filled-secondary"
Expand All @@ -31,9 +30,10 @@ export default function ColorTextFields() {
color="secondary"
/>
<TextField
id="outlined-secondary"
label="Outlined secondary"
id="standard-secondary"
label="Standard secondary"
color="secondary"
variant="standard"
/>
</form>
);
Expand Down
6 changes: 2 additions & 4 deletions docs/src/pages/components/text-fields/CustomizedInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ function RedditTextField(props) {
const classes = useStylesReddit();

return (
<TextField
InputProps={{ classes, disableUnderline: true }}
{...props}
/>
<TextField InputProps={{ classes, disableUnderline: true }} {...props} />
);
}

Expand Down Expand Up @@ -194,6 +191,7 @@ export default function CustomizedInputs() {
className={classes.margin}
label="CSS validation style"
required
variant="outlined"
defaultValue="Success"
id="validation-outlined-input"
/>
Expand Down
50 changes: 25 additions & 25 deletions docs/src/pages/components/text-fields/FormPropsTextFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,55 +19,44 @@ export default function FormPropsTextFields() {
<div>
<TextField
required
id="standard-required"
id="outlined-required"
label="Required"
defaultValue="Hello World"
variant="standard"
/>
<TextField
disabled
id="standard-disabled"
id="outlined-disabled"
label="Disabled"
defaultValue="Hello World"
variant="standard"
/>
<TextField
id="standard-password-input"
id="outlined-password-input"
label="Password"
type="password"
autoComplete="current-password"
variant="standard"
/>
<TextField
id="standard-read-only-input"
id="outlined-read-only-input"
label="Read Only"
defaultValue="Hello World"
InputProps={{
readOnly: true,
}}
variant="standard"
/>
<TextField
id="standard-number"
id="outlined-number"
label="Number"
type="number"
InputLabelProps={{
shrink: true,
}}
variant="standard"
/>
<TextField
id="standard-search"
label="Search field"
type="search"
variant="standard"
/>
<TextField id="outlined-search" label="Search field" type="search" />
<TextField
id="standard-helperText"
id="outlined-helperText"
label="Helper text"
defaultValue="Default Value"
helperText="Some important text"
variant="standard"
/>
</div>
<div>
Expand Down Expand Up @@ -127,44 +116,55 @@ export default function FormPropsTextFields() {
<div>
<TextField
required
id="outlined-required"
id="standard-required"
label="Required"
defaultValue="Hello World"
variant="standard"
/>
<TextField
disabled
id="outlined-disabled"
id="standard-disabled"
label="Disabled"
defaultValue="Hello World"
variant="standard"
/>
<TextField
id="outlined-password-input"
id="standard-password-input"
label="Password"
type="password"
autoComplete="current-password"
variant="standard"
/>
<TextField
id="outlined-read-only-input"
id="standard-read-only-input"
label="Read Only"
defaultValue="Hello World"
InputProps={{
readOnly: true,
}}
variant="standard"
/>
<TextField
id="outlined-number"
id="standard-number"
label="Number"
type="number"
InputLabelProps={{
shrink: true,
}}
variant="standard"
/>
<TextField id="outlined-search" label="Search field" type="search" />
<TextField
id="outlined-helperText"
id="standard-search"
label="Search field"
type="search"
variant="standard"
/>
<TextField
id="standard-helperText"
label="Helper text"
defaultValue="Default Value"
helperText="Some important text"
variant="standard"
/>
</div>
</form>
Expand Down
50 changes: 25 additions & 25 deletions docs/src/pages/components/text-fields/FormPropsTextFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,55 +21,44 @@ export default function FormPropsTextFields() {
<div>
<TextField
required
id="standard-required"
id="outlined-required"
label="Required"
defaultValue="Hello World"
variant="standard"
/>
<TextField
disabled
id="standard-disabled"
id="outlined-disabled"
label="Disabled"
defaultValue="Hello World"
variant="standard"
/>
<TextField
id="standard-password-input"
id="outlined-password-input"
label="Password"
type="password"
autoComplete="current-password"
variant="standard"
/>
<TextField
id="standard-read-only-input"
id="outlined-read-only-input"
label="Read Only"
defaultValue="Hello World"
InputProps={{
readOnly: true,
}}
variant="standard"
/>
<TextField
id="standard-number"
id="outlined-number"
label="Number"
type="number"
InputLabelProps={{
shrink: true,
}}
variant="standard"
/>
<TextField
id="standard-search"
label="Search field"
type="search"
variant="standard"
/>
<TextField id="outlined-search" label="Search field" type="search" />
<TextField
id="standard-helperText"
id="outlined-helperText"
label="Helper text"
defaultValue="Default Value"
helperText="Some important text"
variant="standard"
/>
</div>
<div>
Expand Down Expand Up @@ -129,44 +118,55 @@ export default function FormPropsTextFields() {
<div>
<TextField
required
id="outlined-required"
id="standard-required"
label="Required"
defaultValue="Hello World"
variant="standard"
/>
<TextField
disabled
id="outlined-disabled"
id="standard-disabled"
label="Disabled"
defaultValue="Hello World"
variant="standard"
/>
<TextField
id="outlined-password-input"
id="standard-password-input"
label="Password"
type="password"
autoComplete="current-password"
variant="standard"
/>
<TextField
id="outlined-read-only-input"
id="standard-read-only-input"
label="Read Only"
defaultValue="Hello World"
InputProps={{
readOnly: true,
}}
variant="standard"
/>
<TextField
id="outlined-number"
id="standard-number"
label="Number"
type="number"
InputLabelProps={{
shrink: true,
}}
variant="standard"
/>
<TextField id="outlined-search" label="Search field" type="search" />
<TextField
id="outlined-helperText"
id="standard-search"
label="Search field"
type="search"
variant="standard"
/>
<TextField
id="standard-helperText"
label="Helper text"
defaultValue="Default Value"
helperText="Some important text"
variant="standard"
/>
</div>
</form>
Expand Down
Loading

0 comments on commit d9e4380

Please sign in to comment.