-
-
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 base-ui]-NumberInput]-Support-adornments
- Loading branch information
Showing
74 changed files
with
948 additions
and
278 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,60 @@ | ||
# [Versions](https://mui.com/versions/) | ||
|
||
## 5.14.10 | ||
|
||
<!-- generated comparing v5.14.9..master --> | ||
|
||
_Sep 18, 2023_ | ||
|
||
A big thanks to the 16 contributors who made this release possible. This release was mostly about 🐛 bug fixes and 📚 documentation improvements. | ||
|
||
### `@mui/[email protected]` | ||
|
||
- ​<!-- 20 -->[Chip] Add cursor CSS property reset (#38984) @DiegoAndai | ||
|
||
### `@mui/[email protected]` | ||
|
||
- ​<!-- 05 -->[utils] Move @types/prop-types back to dependencies (#39030) @Methuselah96 | ||
|
||
### `@mui/[email protected]` | ||
|
||
- ​<!-- 24 -->[NumberInput][base-ui] Warn when changing control mode with `useControlled` (#38757) @sai6855 | ||
- ​<!-- 23 -->[Select][base-ui] Fix Select button layout shift, add placeholder prop (#38796) @mj12albert | ||
- ​<!-- 22 -->[useList][base-ui] Accept arbitrary external props and forward to root (#38848) @mj12albert | ||
- ​<!-- 25 -->[Autocomplete][base-ui] Added ref to getInputProps return value (#38919) @DarhkVoyd | ||
|
||
### `@mui/[email protected]` | ||
|
||
- ​<!-- 26 -->[AccordionGroup][joy-ui] Fix console warning when using custom color (#38950) @sai6855 | ||
- ​<!-- 07 -->[GlobalStyles][joy-ui] Ensure compatibility with RSC (#38955) @mateuseap | ||
|
||
### Docs | ||
|
||
- ​<!-- 21 -->[docs][base] Add Tailwind CSS + plain CSS demo on the NumberInput page (#38928) @alisasanib | ||
- ​<!-- 13 -->[docs][Dialog] Add non-modal dialog docs & demo (#38684) @mnajdova | ||
- ​<!-- 12 -->[docs] Fix number input wrong demo @oliviertassinari | ||
- ​<!-- 11 -->[docs] Exclude joy-ui LinearProgressCountup from visual regression (#38969) @siriwatknp | ||
- ​<!-- 09 -->[docs][joy-ui] Revise the Overview page (#38842) @danilo-leal | ||
- ​<!-- 08 -->[docs][material-ui][Pagination] Add `TablePagination` to the API components list (#38486) @MonstraG | ||
|
||
### Core | ||
|
||
- ​<!-- 19 -->[core] Add more context about useEventCallback @oliviertassinari | ||
- ​<!-- 18 -->[core] Allow deeper import of @mui/utils (#38806) @oliviertassinari | ||
- ​<!-- 17 -->[core] Remove react-dom from @mui/utils peerDependencies (#38974) @michaldudak | ||
- ​<!-- 16 -->[core] Remove react from styled-engine dependencies (#38971) @michaldudak | ||
- ​<!-- 15 -->[core] Fix image loading bug on Safari @oliviertassinari | ||
- ​<!-- 14 -->[core] Fix bundle size upload to S3 job (#38956) @Janpot | ||
- ​<!-- 20 -->[core] Move eslint to peer dependencies of eslint-plugin-material-ui (#39033) @michaldudak | ||
- ​<!-- 10 -->[docs-infra] Display markdown lists correctly in docs for props description (#38973) @ZeeshanTamboli | ||
- ​<!-- 04 -->[website] Improve lighthouse score (#39011) @oliviertassinari | ||
- ​<!-- 03 -->[website] Fix lighthouse issues @oliviertassinari | ||
- ​<!-- 02 -->[website] Create the `InfoCard` component (#38987) @danilo-leal | ||
- ​<!-- 01 -->[website] Small tweaks for performance @oliviertassinari | ||
- ​<!-- 06 -->[zero][next] Setup nextjs plugin package (#38852) @brijeshb42 | ||
|
||
All contributors of this release in alphabetical order: @alisasanib, @brijeshb42, @danilo-leal, @DarhkVoyd, @DiegoAndai, @Janpot, @mateuseap, @Methuselah96, @michaldudak, @mj12albert, @mnajdova, @MonstraG, @oliviertassinari, @sai6855, @siriwatknp, @ZeeshanTamboli | ||
|
||
## 5.14.9 | ||
|
||
<!-- generated comparing v5.14.8..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
69 changes: 69 additions & 0 deletions
69
docs/data/joy/components/circular-progress/CircularProgressCountUp.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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import * as React from 'react'; | ||
import Stack from '@mui/joy/Stack'; | ||
import Button from '@mui/joy/Button'; | ||
import Typography from '@mui/joy/Typography'; | ||
import CircularProgress from '@mui/joy/CircularProgress'; | ||
import { useCountUp } from 'use-count-up'; | ||
|
||
export default function CircularProgressCountUp() { | ||
const [isLoading, setIsLoading] = React.useState(false); | ||
const [buttonLabel, setButtonLabel] = React.useState('Start'); | ||
|
||
const { value: value1, reset: resetValue1 } = useCountUp({ | ||
isCounting: isLoading, | ||
duration: 1, | ||
start: 0, | ||
end: 25, | ||
onComplete: () => { | ||
setIsLoading(false); | ||
setButtonLabel('Reset'); | ||
}, | ||
}); | ||
|
||
const { value: value2, reset } = useCountUp({ | ||
isCounting: true, | ||
duration: 1, | ||
start: 0, | ||
end: 75, | ||
}); | ||
|
||
const handleButtonClick = () => { | ||
if (isLoading) { | ||
setIsLoading(false); | ||
setButtonLabel('Start'); | ||
resetValue1(); | ||
} else if (buttonLabel === 'Reset') { | ||
setButtonLabel('Start'); | ||
resetValue1(); | ||
} else { | ||
setIsLoading(true); | ||
setButtonLabel('Reset'); | ||
} | ||
}; | ||
|
||
return ( | ||
<Stack direction="row" alignItems="center" flexWrap="wrap" spacing={8}> | ||
<Stack spacing={2}> | ||
<CircularProgress size="lg" determinate value={value1}> | ||
<Typography>{value1}%</Typography> | ||
</CircularProgress> | ||
<Button | ||
size="sm" | ||
variant="outlined" | ||
color="neutral" | ||
onClick={handleButtonClick} | ||
> | ||
{buttonLabel} | ||
</Button> | ||
</Stack> | ||
<Stack spacing={2}> | ||
<CircularProgress size="lg" determinate value={value2}> | ||
<Typography>{value2}%</Typography> | ||
</CircularProgress> | ||
<Button size="sm" variant="outlined" color="neutral" onClick={reset}> | ||
Reload | ||
</Button> | ||
</Stack> | ||
</Stack> | ||
); | ||
} |
69 changes: 69 additions & 0 deletions
69
docs/data/joy/components/circular-progress/CircularProgressCountUp.tsx
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,69 @@ | ||
import * as React from 'react'; | ||
import Stack from '@mui/joy/Stack'; | ||
import Button from '@mui/joy/Button'; | ||
import Typography from '@mui/joy/Typography'; | ||
import CircularProgress from '@mui/joy/CircularProgress'; | ||
import { useCountUp } from 'use-count-up'; | ||
|
||
export default function CircularProgressCountUp() { | ||
const [isLoading, setIsLoading] = React.useState(false); | ||
const [buttonLabel, setButtonLabel] = React.useState('Start'); | ||
|
||
const { value: value1, reset: resetValue1 } = useCountUp({ | ||
isCounting: isLoading, | ||
duration: 1, | ||
start: 0, | ||
end: 25, | ||
onComplete: () => { | ||
setIsLoading(false); | ||
setButtonLabel('Reset'); | ||
}, | ||
}); | ||
|
||
const { value: value2, reset } = useCountUp({ | ||
isCounting: true, | ||
duration: 1, | ||
start: 0, | ||
end: 75, | ||
}); | ||
|
||
const handleButtonClick = () => { | ||
if (isLoading) { | ||
setIsLoading(false); | ||
setButtonLabel('Start'); | ||
resetValue1(); | ||
} else if (buttonLabel === 'Reset') { | ||
setButtonLabel('Start'); | ||
resetValue1(); | ||
} else { | ||
setIsLoading(true); | ||
setButtonLabel('Reset'); | ||
} | ||
}; | ||
|
||
return ( | ||
<Stack direction="row" alignItems="center" flexWrap="wrap" spacing={8}> | ||
<Stack spacing={2}> | ||
<CircularProgress size="lg" determinate value={value1 as number}> | ||
<Typography>{value1}%</Typography> | ||
</CircularProgress> | ||
<Button | ||
size="sm" | ||
variant="outlined" | ||
color="neutral" | ||
onClick={handleButtonClick} | ||
> | ||
{buttonLabel} | ||
</Button> | ||
</Stack> | ||
<Stack spacing={2}> | ||
<CircularProgress size="lg" determinate value={value2 as number}> | ||
<Typography>{value2}%</Typography> | ||
</CircularProgress> | ||
<Button size="sm" variant="outlined" color="neutral" onClick={reset}> | ||
Reload | ||
</Button> | ||
</Stack> | ||
</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
Oops, something went wrong.