-
-
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 branch 'master' into swipe-ignore
- Loading branch information
Showing
327 changed files
with
5,688 additions
and
4,171 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
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,90 @@ | ||
# [Versions](https://mui.com/versions/) | ||
|
||
## 5.11.4 | ||
|
||
<!-- generated comparing v5.11.3..master --> | ||
|
||
_Jan 9, 2023_ | ||
|
||
A big thanks to the 14 contributors who made this release possible. | ||
This release was mostly about 🐛 bug fixes and 📚 documentation improvements. | ||
|
||
### `@mui/[email protected]` | ||
|
||
- [Autocomplete] Add index to renderOption's AutocompleteRenderOptionState (#35578) @CowDotDev | ||
- [Autocomplete] Fix grammar in console.error in `useAutocomplete` (#35723) @hamirmahal | ||
- [Modal] Fix can't override Backdrop Props using new Slots API (#35140) @ZeeshanTamboli | ||
- [Select] Revert "Update `renderValue` prop's TypeScript type (#34177)" (#35733) @michaldudak | ||
- [Tabs] Throw error only if individual `Tab` is hidden, not the whole `Tabs` (#34026) @Ryczko | ||
- [TextField] Improve WCAG 2.4.7 with error={true} (#35687) @oliviertassinari | ||
- [Tooltip] Remove `data-foo` attribute (#35736) @koolskateguy89 | ||
|
||
### `@mui/[email protected]` | ||
|
||
- [Autocomplete][joy] Specify `type` attribute for popup indicator (#35648) @hbjORbj | ||
- [Joy] Miscellaneous improvements (#35769) @siriwatknp | ||
- [Joy] Improve `onKeyDown` event handler for demo (#35642) @hbjORbj | ||
|
||
### `@mui/[email protected]` | ||
|
||
- [Portal][base] Convert code to TypeScript (#35657) @sai6855 | ||
|
||
### Docs | ||
|
||
- [docs] Revise and expand Joy UI Button doc (#35737) @samuelsycamore | ||
- [docs] Document the workaround for crashing a translated page (#35720) @michaldudak | ||
- [docs] Fix API page for `MenuItem` to list all valid props (#35561) @mnajdova | ||
- [docs] Fix ad exception in Joy UI (#35685) @oliviertassinari | ||
- [docs] Fix content wider than screen regression @oliviertassinari | ||
- [examples] Add `Vite.js with TypeScript` example (#35683) @miha53cevic | ||
|
||
### Core | ||
|
||
- [core] Close 2022 developer survey @oliviertassinari | ||
- [core] Fix the product license reference name (#35703) @oliviertassinari | ||
- [core] Use TypeScript AST instead of TTP for component doc building (#35379) @flaviendelangle | ||
- [test] Always use & for nesting styles (#35702) @oliviertassinari | ||
- [website] Improve Lead Designer role description (#35684) @oliviertassinari | ||
|
||
All contributors of this release in alphabetical order: @CowDotDev, @flaviendelangle, @hamirmahal, @hbjORbj, @koolskateguy89, @michaldudak, @miha53cevic, @mnajdova, @oliviertassinari, @Ryczko, @sai6855, @samuelsycamore, @siriwatknp, @ZeeshanTamboli | ||
|
||
## 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
import * as React from 'react'; | ||
import AspectRatio from '@mui/joy/AspectRatio'; | ||
import Sheet from '@mui/joy/Sheet'; | ||
import Typography from '@mui/joy/Typography'; | ||
|
||
export default function BasicRatio() { | ||
return ( | ||
<Sheet | ||
variant="outlined" | ||
sx={{ width: 300, borderRadius: 'md', overflow: 'auto' }} | ||
> | ||
<AspectRatio> | ||
<Typography level="h2" component="div"> | ||
16/9 | ||
</Typography> | ||
</AspectRatio> | ||
</Sheet> | ||
<AspectRatio sx={{ width: 300 }}> | ||
<Typography level="h2" component="div"> | ||
16/9 | ||
</Typography> | ||
</AspectRatio> | ||
); | ||
} |
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,19 +1,13 @@ | ||
import * as React from 'react'; | ||
import AspectRatio from '@mui/joy/AspectRatio'; | ||
import Sheet from '@mui/joy/Sheet'; | ||
import Typography from '@mui/joy/Typography'; | ||
|
||
export default function BasicRatio() { | ||
return ( | ||
<Sheet | ||
variant="outlined" | ||
sx={{ width: 300, borderRadius: 'md', overflow: 'auto' }} | ||
> | ||
<AspectRatio> | ||
<Typography level="h2" component="div"> | ||
16/9 | ||
</Typography> | ||
</AspectRatio> | ||
</Sheet> | ||
<AspectRatio sx={{ width: 300 }}> | ||
<Typography level="h2" component="div"> | ||
16/9 | ||
</Typography> | ||
</AspectRatio> | ||
); | ||
} |
15 changes: 5 additions & 10 deletions
15
docs/data/joy/components/aspect-ratio/BasicRatio.tsx.preview
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,10 +1,5 @@ | ||
<Sheet | ||
variant="outlined" | ||
sx={{ width: 300, borderRadius: 'md', overflow: 'auto' }} | ||
> | ||
<AspectRatio> | ||
<Typography level="h2" component="div"> | ||
16/9 | ||
</Typography> | ||
</AspectRatio> | ||
</Sheet> | ||
<AspectRatio sx={{ width: 300 }}> | ||
<Typography level="h2" component="div"> | ||
16/9 | ||
</Typography> | ||
</AspectRatio> |
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,19 +1,21 @@ | ||
import * as React from 'react'; | ||
import AspectRatio from '@mui/joy/AspectRatio'; | ||
import Sheet from '@mui/joy/Sheet'; | ||
import Typography from '@mui/joy/Typography'; | ||
|
||
export default function CustomRatio() { | ||
return ( | ||
<Sheet | ||
<AspectRatio | ||
variant="outlined" | ||
sx={{ width: 300, borderRadius: 'md', overflow: 'auto' }} | ||
ratio="4/3" | ||
sx={{ | ||
width: 300, | ||
bgcolor: 'background.level2', | ||
borderRadius: 'md', | ||
}} | ||
> | ||
<AspectRatio ratio="4/3"> | ||
<Typography level="h2" component="div"> | ||
4/3 | ||
</Typography> | ||
</AspectRatio> | ||
</Sheet> | ||
<Typography level="h2" component="div"> | ||
4/3 | ||
</Typography> | ||
</AspectRatio> | ||
); | ||
} |
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,19 +1,21 @@ | ||
import * as React from 'react'; | ||
import AspectRatio from '@mui/joy/AspectRatio'; | ||
import Sheet from '@mui/joy/Sheet'; | ||
import Typography from '@mui/joy/Typography'; | ||
|
||
export default function CustomRatio() { | ||
return ( | ||
<Sheet | ||
<AspectRatio | ||
variant="outlined" | ||
sx={{ width: 300, borderRadius: 'md', overflow: 'auto' }} | ||
ratio="4/3" | ||
sx={{ | ||
width: 300, | ||
bgcolor: 'background.level2', | ||
borderRadius: 'md', | ||
}} | ||
> | ||
<AspectRatio ratio="4/3"> | ||
<Typography level="h2" component="div"> | ||
4/3 | ||
</Typography> | ||
</AspectRatio> | ||
</Sheet> | ||
<Typography level="h2" component="div"> | ||
4/3 | ||
</Typography> | ||
</AspectRatio> | ||
); | ||
} |
Oops, something went wrong.