-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into discovery-amount
- Loading branch information
Showing
91 changed files
with
1,968 additions
and
956 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,42 @@ | ||
# [Versions](https://mui.com/versions/) | ||
|
||
## 5.11.3 | ||
|
||
<!-- generated comparing v5.11.2..master --> | ||
|
||
_Jan 2, 2023_ | ||
|
||
A big thanks to the 6 contributors who made this release possible. | ||
This release was mostly about 🐛 bug fixes and 📚 documentation improvements. | ||
|
||
### `@mui/[email protected]` | ||
|
||
- ​<!-- 02 -->[Select] Update `renderValue` prop's TypeScript type (#34177) @ZeeshanTamboli | ||
|
||
### `@mui/[email protected]` | ||
|
||
- ​<!-- 14 -->[Autocomplete][joy] Export component (#35647) @mbranch | ||
|
||
### Docs | ||
|
||
- ​<!-- 13 -->[blog] Fix handling of markdown links (#35628) @oliviertassinari | ||
- ​<!-- 09 -->[docs] Fix demo code selection through copy shortcut key on Firefox browser (#35670) @ZeeshanTamboli | ||
- ​<!-- 08 -->[docs] Fix layout shift when streaming the page (#35627) @oliviertassinari | ||
- ​<!-- 07 -->[docs] Fix switch name to reflect the color (#35052) @rjhcnf | ||
- ​<!-- 06 -->[docs] Fix anchor link in the card's docs and fix a typo (#35634) @ZeeshanTamboli | ||
- ​<!-- 05 -->[docs] Fix layout shift with modal (#35591) @oliviertassinari | ||
- ​<!-- 04 -->[Joy][docs] Add documentation for `Input` component (#35482) @hbjORbj | ||
- ​<!-- 03 -->[docs][joy] Improved readability on theme tokens page (#35639) @badalsaibo | ||
|
||
### Core | ||
|
||
- ​<!-- 12 -->[core] Disable prefetch of footer links @oliviertassinari | ||
- ​<!-- 11 -->[core] A few SEO fixes (#35672) @oliviertassinari | ||
- ​<!-- 10 -->[core] Remove need for scopePathnames (#35584) @oliviertassinari | ||
- ​<!-- 01 -->[test] Fix Algolia noisy lvl1 anchor (#35686) @oliviertassinari | ||
|
||
All contributors of this release in alphabetical order: @badalsaibo, @hbjORbj, @mbranch, @oliviertassinari, @rjhcnf, @ZeeshanTamboli | ||
|
||
## 5.11.2 | ||
|
||
<!-- generated comparing v5.11.1..master --> | ||
|
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,6 @@ | ||
import * as React from 'react'; | ||
import Input from '@mui/joy/Input'; | ||
|
||
export default function BasicInput() { | ||
return <Input placeholder="Type in here…" />; | ||
} |
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,6 @@ | ||
import * as React from 'react'; | ||
import Input from '@mui/joy/Input'; | ||
|
||
export default function BasicInput() { | ||
return <Input placeholder="Type in here…" />; | ||
} |
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 @@ | ||
<Input placeholder="Type in here…" /> |
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,22 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/joy/Box'; | ||
import Input from '@mui/joy/Input'; | ||
|
||
export default function InputColors() { | ||
return ( | ||
<Box | ||
sx={{ | ||
py: 2, | ||
display: 'grid', | ||
gap: 2, | ||
alignItems: 'center', | ||
flexWrap: 'wrap', | ||
}} | ||
> | ||
<Input placeholder="Type in here…" variant="outlined" color="primary" /> | ||
<Input placeholder="Type in here…" variant="outlined" color="neutral" /> | ||
<Input placeholder="Type in here…" variant="outlined" color="danger" /> | ||
<Input placeholder="Type in here…" variant="outlined" color="warning" /> | ||
</Box> | ||
); | ||
} |
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,22 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/joy/Box'; | ||
import Input from '@mui/joy/Input'; | ||
|
||
export default function InputColors() { | ||
return ( | ||
<Box | ||
sx={{ | ||
py: 2, | ||
display: 'grid', | ||
gap: 2, | ||
alignItems: 'center', | ||
flexWrap: 'wrap', | ||
}} | ||
> | ||
<Input placeholder="Type in here…" variant="outlined" color="primary" /> | ||
<Input placeholder="Type in here…" variant="outlined" color="neutral" /> | ||
<Input placeholder="Type in here…" variant="outlined" color="danger" /> | ||
<Input placeholder="Type in here…" variant="outlined" color="warning" /> | ||
</Box> | ||
); | ||
} |
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,4 @@ | ||
<Input placeholder="Type in here…" variant="outlined" color="primary" /> | ||
<Input placeholder="Type in here…" variant="outlined" color="neutral" /> | ||
<Input placeholder="Type in here…" variant="outlined" color="danger" /> | ||
<Input placeholder="Type in here…" variant="outlined" color="warning" /> |
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,31 @@ | ||
import * as React from 'react'; | ||
import Divider from '@mui/joy/Divider'; | ||
import Input from '@mui/joy/Input'; | ||
import Select from '@mui/joy/Select'; | ||
import Option from '@mui/joy/Option'; | ||
|
||
export default function InputDecorators() { | ||
const [currency, setCurrency] = React.useState('dollar'); | ||
return ( | ||
<Input | ||
placeholder="Amount" | ||
startDecorator={{ dollar: '$', baht: '฿', yen: '¥' }[currency]} | ||
endDecorator={ | ||
<React.Fragment> | ||
<Divider orientation="vertical" /> | ||
<Select | ||
variant="plain" | ||
value={currency} | ||
onChange={(_, value) => setCurrency(value)} | ||
sx={{ mr: -1.5, '&:hover': { bgcolor: 'transparent' } }} | ||
> | ||
<Option value="dollar">US dollar</Option> | ||
<Option value="baht">Thai baht</Option> | ||
<Option value="yen">Japanese yen</Option> | ||
</Select> | ||
</React.Fragment> | ||
} | ||
sx={{ width: 300 }} | ||
/> | ||
); | ||
} |
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,31 @@ | ||
import * as React from 'react'; | ||
import Divider from '@mui/joy/Divider'; | ||
import Input from '@mui/joy/Input'; | ||
import Select from '@mui/joy/Select'; | ||
import Option from '@mui/joy/Option'; | ||
|
||
export default function InputDecorators() { | ||
const [currency, setCurrency] = React.useState('dollar'); | ||
return ( | ||
<Input | ||
placeholder="Amount" | ||
startDecorator={{ dollar: '$', baht: '฿', yen: '¥' }[currency]} | ||
endDecorator={ | ||
<React.Fragment> | ||
<Divider orientation="vertical" /> | ||
<Select | ||
variant="plain" | ||
value={currency} | ||
onChange={(_, value) => setCurrency(value!)} | ||
sx={{ mr: -1.5, '&:hover': { bgcolor: 'transparent' } }} | ||
> | ||
<Option value="dollar">US dollar</Option> | ||
<Option value="baht">Thai baht</Option> | ||
<Option value="yen">Japanese yen</Option> | ||
</Select> | ||
</React.Fragment> | ||
} | ||
sx={{ width: 300 }} | ||
/> | ||
); | ||
} |
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 * as React from 'react'; | ||
import FormControl from '@mui/joy/FormControl'; | ||
import FormLabel from '@mui/joy/FormLabel'; | ||
import FormHelperText from '@mui/joy/FormHelperText'; | ||
import Input from '@mui/joy/Input'; | ||
|
||
export default function InputField() { | ||
return ( | ||
<FormControl> | ||
<FormLabel>Label</FormLabel> | ||
<Input placeholder="Placeholder" /> | ||
<FormHelperText>This is a helper text.</FormHelperText> | ||
</FormControl> | ||
); | ||
} |
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 * as React from 'react'; | ||
import FormControl from '@mui/joy/FormControl'; | ||
import FormLabel from '@mui/joy/FormLabel'; | ||
import FormHelperText from '@mui/joy/FormHelperText'; | ||
import Input from '@mui/joy/Input'; | ||
|
||
export default function InputField() { | ||
return ( | ||
<FormControl> | ||
<FormLabel>Label</FormLabel> | ||
<Input placeholder="Placeholder" /> | ||
<FormHelperText>This is a helper text.</FormHelperText> | ||
</FormControl> | ||
); | ||
} |
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,5 @@ | ||
<FormControl> | ||
<FormLabel>Label</FormLabel> | ||
<Input placeholder="Placeholder" /> | ||
<FormHelperText>This is a helper text.</FormHelperText> | ||
</FormControl> |
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,33 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/joy/Box'; | ||
import Button from '@mui/joy/Button'; | ||
import Input from '@mui/joy/Input'; | ||
|
||
export default function InputFormProps() { | ||
return ( | ||
<Box | ||
sx={{ | ||
py: 2, | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: 2, | ||
alignItems: 'center', | ||
flexWrap: 'wrap', | ||
}} | ||
> | ||
<form | ||
onSubmit={(event) => { | ||
event.preventDefault(); | ||
}} | ||
> | ||
<Input | ||
placeholder="Try to submit with no text!" | ||
required | ||
sx={{ mb: 1, fontSize: 'var(--joy-fontSize-sm)' }} | ||
/> | ||
<Input placeholder="It is disabled" disabled sx={{ mb: 1 }} /> | ||
<Button type="submit">Submit</Button> | ||
</form> | ||
</Box> | ||
); | ||
} |
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,33 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/joy/Box'; | ||
import Button from '@mui/joy/Button'; | ||
import Input from '@mui/joy/Input'; | ||
|
||
export default function InputFormProps() { | ||
return ( | ||
<Box | ||
sx={{ | ||
py: 2, | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: 2, | ||
alignItems: 'center', | ||
flexWrap: 'wrap', | ||
}} | ||
> | ||
<form | ||
onSubmit={(event) => { | ||
event.preventDefault(); | ||
}} | ||
> | ||
<Input | ||
placeholder="Try to submit with no text!" | ||
required | ||
sx={{ mb: 1, fontSize: 'var(--joy-fontSize-sm)' }} | ||
/> | ||
<Input placeholder="It is disabled" disabled sx={{ mb: 1 }} /> | ||
<Button type="submit">Submit</Button> | ||
</form> | ||
</Box> | ||
); | ||
} |
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,13 @@ | ||
<form | ||
onSubmit={(event) => { | ||
event.preventDefault(); | ||
}} | ||
> | ||
<Input | ||
placeholder="Try to submit with no text!" | ||
required | ||
sx={{ mb: 1, fontSize: 'var(--joy-fontSize-sm)' }} | ||
/> | ||
<Input placeholder="It is disabled" disabled sx={{ mb: 1 }} /> | ||
<Button type="submit">Submit</Button> | ||
</form> |
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,13 @@ | ||
import * as React from 'react'; | ||
import Input from '@mui/joy/Input'; | ||
import Stack from '@mui/joy/Stack'; | ||
|
||
export default function InputSizes() { | ||
return ( | ||
<Stack spacing={2}> | ||
<Input size="sm" placeholder="Small" /> | ||
<Input size="md" placeholder="Medium" /> | ||
<Input size="lg" placeholder="Large" /> | ||
</Stack> | ||
); | ||
} |
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,13 @@ | ||
import * as React from 'react'; | ||
import Input from '@mui/joy/Input'; | ||
import Stack from '@mui/joy/Stack'; | ||
|
||
export default function InputSizes() { | ||
return ( | ||
<Stack spacing={2}> | ||
<Input size="sm" placeholder="Small" /> | ||
<Input size="md" placeholder="Medium" /> | ||
<Input size="lg" placeholder="Large" /> | ||
</Stack> | ||
); | ||
} |
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,3 @@ | ||
<Input size="sm" placeholder="Small" /> | ||
<Input size="md" placeholder="Medium" /> | ||
<Input size="lg" placeholder="Large" /> |
Oops, something went wrong.