From 662a3d507f71f774aa2c306fb084141db51a5ba7 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:45:23 -0300 Subject: [PATCH 01/65] [website] Add new sponsors to the homepage (#42632) --- README.md | 1 + docs/data/material/discover-more/backers/backers.md | 1 + docs/src/components/home/GoldSponsors.tsx | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 9f373c703d8d22..b11d5c05d3937f 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ via [Open Collective](https://opencollective.com/mui-org) or via [Patreon](http megafamous.com dialmycalls.com goread.io + Viralyft

Gold sponsors are those who have pledged \$500/month or more to MUI. diff --git a/docs/data/material/discover-more/backers/backers.md b/docs/data/material/discover-more/backers/backers.md index 3ddd593cf5ec46..9a9cd068191a3d 100644 --- a/docs/data/material/discover-more/backers/backers.md +++ b/docs/data/material/discover-more/backers/backers.md @@ -28,6 +28,7 @@ via [Open Collective](https://opencollective.com/mui-org) or via [the for-profi megafamous.com dialmycalls.com goread.io + Viralyft

Gold sponsors are those who've pledged \$500/month or more to the MUI organization. [Tier benefits](#gold). diff --git a/docs/src/components/home/GoldSponsors.tsx b/docs/src/components/home/GoldSponsors.tsx index c15cb20a07d179..dc17665cef1cad 100644 --- a/docs/src/components/home/GoldSponsors.tsx +++ b/docs/src/components/home/GoldSponsors.tsx @@ -63,6 +63,13 @@ const GOLDs = [ description: 'Instagram followers, likes, views, and comments.', href: 'https://goread.io/?utm_source=MUI&utm_medium=referral&utm_content=homepage', }, + { + src: 'https://images.opencollective.com/viralyft/b853d22/avatar/40.png', + srcSet: 'https://images.opencollective.com/viralyft/b853d22/avatar/120.png 3x', + name: 'Viralyft', + description: 'Boost social media following & get real results.', + href: 'https://viralyft.com/?utm_source=MUI&utm_medium=referral&utm_content=homepage', + }, ]; export default function GoldSponsors() { From 70b95a5c3b18fbb2619ab749a9dfd5d35ab577f8 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 19 Jun 2024 02:18:59 +0200 Subject: [PATCH 02/65] Revert "[website] Add new sponsors to the homepage (#42632)" This reverts commit 662a3d507f71f774aa2c306fb084141db51a5ba7. --- README.md | 1 - docs/data/material/discover-more/backers/backers.md | 1 - docs/src/components/home/GoldSponsors.tsx | 7 ------- 3 files changed, 9 deletions(-) diff --git a/README.md b/README.md index b11d5c05d3937f..9f373c703d8d22 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,6 @@ via [Open Collective](https://opencollective.com/mui-org) or via [Patreon](http megafamous.com dialmycalls.com goread.io - Viralyft

Gold sponsors are those who have pledged \$500/month or more to MUI. diff --git a/docs/data/material/discover-more/backers/backers.md b/docs/data/material/discover-more/backers/backers.md index 9a9cd068191a3d..3ddd593cf5ec46 100644 --- a/docs/data/material/discover-more/backers/backers.md +++ b/docs/data/material/discover-more/backers/backers.md @@ -28,7 +28,6 @@ via [Open Collective](https://opencollective.com/mui-org) or via [the for-profi megafamous.com dialmycalls.com goread.io - Viralyft

Gold sponsors are those who've pledged \$500/month or more to the MUI organization. [Tier benefits](#gold). diff --git a/docs/src/components/home/GoldSponsors.tsx b/docs/src/components/home/GoldSponsors.tsx index dc17665cef1cad..c15cb20a07d179 100644 --- a/docs/src/components/home/GoldSponsors.tsx +++ b/docs/src/components/home/GoldSponsors.tsx @@ -63,13 +63,6 @@ const GOLDs = [ description: 'Instagram followers, likes, views, and comments.', href: 'https://goread.io/?utm_source=MUI&utm_medium=referral&utm_content=homepage', }, - { - src: 'https://images.opencollective.com/viralyft/b853d22/avatar/40.png', - srcSet: 'https://images.opencollective.com/viralyft/b853d22/avatar/120.png 3x', - name: 'Viralyft', - description: 'Boost social media following & get real results.', - href: 'https://viralyft.com/?utm_source=MUI&utm_medium=referral&utm_content=homepage', - }, ]; export default function GoldSponsors() { From c96d05e25c66a7948976882e4d72b52bdcf108f0 Mon Sep 17 00:00:00 2001 From: Siriwat K Date: Wed, 19 Jun 2024 10:24:38 +0700 Subject: [PATCH 03/65] [docs-infra] Fix wrong migration (#42675) --- docs/src/modules/components/DemoToolbarRoot.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/src/modules/components/DemoToolbarRoot.ts b/docs/src/modules/components/DemoToolbarRoot.ts index f40d3fc5ad3ece..d6be2527a0ac39 100644 --- a/docs/src/modules/components/DemoToolbarRoot.ts +++ b/docs/src/modules/components/DemoToolbarRoot.ts @@ -32,14 +32,18 @@ const DemoToolbarRoot = styled('div', { { props: ({ demoOptions }) => demoOptions.bg === 'inline', style: { - marginTop: theme.spacing(1), - borderTopWidth: 1, + [theme.breakpoints.up('sm')]: { + marginTop: theme.spacing(1), + borderTopWidth: 1, + }, }, }, { props: ({ openDemoSource }) => openDemoSource, style: { - borderRadius: 0, + [theme.breakpoints.up('sm')]: { + borderRadius: 0, + }, }, }, ], From 07507147e03b9a66fd3cbfd4f0f8d2c05925be5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aar=C3=B3n=20Garc=C3=ADa=20Herv=C3=A1s?= Date: Wed, 19 Jun 2024 14:40:39 +0200 Subject: [PATCH 04/65] [material-ui][Tab] Fix failing test (#42686) --- .../src/deprecations/tab-classes/test-cases/actual.css | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/mui-codemod/src/deprecations/tab-classes/test-cases/actual.css b/packages/mui-codemod/src/deprecations/tab-classes/test-cases/actual.css index a4c3225a1c88fc..3523390136c960 100644 --- a/packages/mui-codemod/src/deprecations/tab-classes/test-cases/actual.css +++ b/packages/mui-codemod/src/deprecations/tab-classes/test-cases/actual.css @@ -1,4 +1,3 @@ .MuiTab-root .MuiTab-iconWrapper { color: red; } - From da4546dc9a606800f898a24553d516997ca57be2 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Wed, 19 Jun 2024 15:35:16 -0300 Subject: [PATCH 05/65] [docs-infra] Add stray design polish (#42646) --- docs/src/components/about/OurValues.tsx | 6 +- docs/src/components/careers/PerksBenefits.tsx | 57 +++++++++++-------- docs/src/components/footer/EmailSubscribe.tsx | 18 +++--- docs/src/components/home/DiamondSponsors.tsx | 7 +-- docs/src/components/home/GoldSponsors.tsx | 4 +- docs/src/components/home/SponsorCard.tsx | 20 ++----- .../src/modules/components/DiamondSponsors.js | 51 +++++++++-------- .../mui-docs/src/branding/brandingTheme.ts | 39 +++++++------ 8 files changed, 100 insertions(+), 102 deletions(-) diff --git a/docs/src/components/about/OurValues.tsx b/docs/src/components/about/OurValues.tsx index a503455268348f..e56d7d74cccb6c 100644 --- a/docs/src/components/about/OurValues.tsx +++ b/docs/src/components/about/OurValues.tsx @@ -74,7 +74,7 @@ export default function OurValues() { ({ - p: 4, + p: 2.5, height: '100%', display: 'flex', flexDirection: 'column', @@ -110,14 +110,12 @@ export default function OurValues() { variant="body2" sx={[ { - fontWeight: 'bold', + fontWeight: 'semiBold', }, (theme) => ({ mb: 0.5, color: (theme.vars || theme).palette.text.primary, '&::first-letter': { - mr: 0.1, - fontSize: theme.typography.pxToRem(16), color: (theme.vars || theme).palette.primary.main, }, ...theme.applyDarkStyles({ diff --git a/docs/src/components/careers/PerksBenefits.tsx b/docs/src/components/careers/PerksBenefits.tsx index 71c9aca45a4cd2..cfae97c1469373 100644 --- a/docs/src/components/careers/PerksBenefits.tsx +++ b/docs/src/components/careers/PerksBenefits.tsx @@ -19,16 +19,37 @@ const companyInfo = [ }, { title: 'Handbook', - description: 'Learn everything about how MUI as a company is run.', + description: 'Learn everything about how MUI as a company.', routeUrl: ROUTES.handbook, }, { title: 'Blog', - description: 'Check behind-the-scenes and news about the company.', + description: 'Learn about our products and team.', routeUrl: ROUTES.blog, }, ]; +interface CardContentBlockProps { + description: string; + title: string; +} + +function CardContentBlock({ title, description }: CardContentBlockProps) { + return ( + + + {title} + + + {description} + + + Learn more + + + ); +} + function RemoteAwardCard() { return ( -
- - Remote Excellence Awards - - - Winners in the first-ever Remote Excellence Awards, in the Small & Mighty category! 🎉 - - - Learn more - -
+ + +
); } @@ -151,16 +169,7 @@ export default function PerksBenefits() { variant="outlined" sx={{ p: 2, width: '100%', flexGrow: 1, display: 'flex', flexDirection: 'column' }} > - - {title} - - - {description} - - - Learn more{' '} - - +
))} diff --git a/docs/src/components/footer/EmailSubscribe.tsx b/docs/src/components/footer/EmailSubscribe.tsx index 66c1da6ac891af..c9c18b18e2fafa 100644 --- a/docs/src/components/footer/EmailSubscribe.tsx +++ b/docs/src/components/footer/EmailSubscribe.tsx @@ -87,12 +87,12 @@ export default function EmailSubscribe({ sx }: { sx?: SxProps }) { }) { minWidth: 220, borderRadius: '8px', border: '1px solid', - borderColor: 'grey.200', + borderColor: 'grey.300', bgcolor: '#FFF', boxShadow: `inset 0 1px 2px ${ (theme.vars || theme).palette.grey[50] }, 0 2px .5px ${alpha(theme.palette.grey[100], 0.5)}`, '&:hover': { - borderColor: 'grey.300', + borderColor: 'grey.400', boxShadow: `inset 0 1px 2px ${(theme.vars || theme).palette.grey[100]}`, }, [`&.${inputBaseClasses.focused}`]: { - boxShadow: `0 0 0 3px ${(theme.vars || theme).palette.primary[200]}`, + boxShadow: `0 0 0 3px ${alpha(theme.palette.primary[500], 0.5)}`, borderColor: 'primary.500', }, [`& .${inputBaseClasses.input}`]: { borderRadius: theme.shape.borderRadius, - py: 1, - px: 1.5, + px: 1, }, }), (theme) => @@ -141,13 +140,12 @@ export default function EmailSubscribe({ sx }: { sx?: SxProps }) { boxShadow: `inset 0 1px 2px ${(theme.vars || theme).palette.common.black}`, }, [`&.${inputBaseClasses.focused}`]: { - boxShadow: `0 0 0 3px ${(theme.vars || theme).palette.primary[800]}`, borderColor: 'primary.400', }, }), ]} /> - diff --git a/docs/src/components/home/DiamondSponsors.tsx b/docs/src/components/home/DiamondSponsors.tsx index 1f021988a58bda..244567b64636c6 100644 --- a/docs/src/components/home/DiamondSponsors.tsx +++ b/docs/src/components/home/DiamondSponsors.tsx @@ -18,8 +18,7 @@ const DIAMONDs = [ { src: '/static/sponsors/doit-square.svg', name: 'Doit International', - description: - 'Delivers technology and cloud expertise to buy, optimize and manage public cloud.', + description: 'Technology and cloud expertise to buy, optimize and manage public cloud.', href: 'https://www.doit.com/?utm_source=MUI&utm_medium=referral&utm_content=homepage', }, { @@ -45,7 +44,7 @@ export default function DiamondSponsors() { variant="h6" sx={[ { - fontWeight: 'bold', + fontWeight: 'semiBold', }, (theme) => ({ mt: 4, @@ -97,7 +96,7 @@ export default function DiamondSponsors() {
- + Become our sponsor! diff --git a/docs/src/components/home/GoldSponsors.tsx b/docs/src/components/home/GoldSponsors.tsx index c15cb20a07d179..fa78d71f64289c 100644 --- a/docs/src/components/home/GoldSponsors.tsx +++ b/docs/src/components/home/GoldSponsors.tsx @@ -78,7 +78,7 @@ export default function GoldSponsors() { variant="h6" sx={[ { - fontWeight: 'bold', + fontWeight: 'semiBold', }, (theme) => ({ mt: 4, @@ -129,7 +129,7 @@ export default function GoldSponsors() {
- + Become a sponsor diff --git a/docs/src/components/home/SponsorCard.tsx b/docs/src/components/home/SponsorCard.tsx index fd31a9b4c3442a..291ad835d91eb2 100644 --- a/docs/src/components/home/SponsorCard.tsx +++ b/docs/src/components/home/SponsorCard.tsx @@ -1,9 +1,7 @@ import * as React from 'react'; import Avatar from '@mui/material/Avatar'; -import Box from '@mui/material/Box'; import Typography from '@mui/material/Typography'; import Paper from '@mui/material/Paper'; -import LaunchRounded from '@mui/icons-material/LaunchRounded'; import { Link } from '@mui/docs/Link'; export default function SponsorCard(props: { @@ -39,15 +37,8 @@ export default function SponsorCard(props: { sx={{ p: 2, display: 'flex', + gap: 2, height: '100%', - '& svg': { - transition: '0.2s', - }, - '&:hover': { - '& svg': { - transform: 'translateY(-2px)', - }, - }, }} > - - - {item.name}{' '} - +
+ + {item.name} {item.description} - +
); } diff --git a/docs/src/modules/components/DiamondSponsors.js b/docs/src/modules/components/DiamondSponsors.js index 5f1998b88be5d9..817a4526e9003a 100644 --- a/docs/src/modules/components/DiamondSponsors.js +++ b/docs/src/modules/components/DiamondSponsors.js @@ -2,6 +2,7 @@ import * as React from 'react'; import { styled, alpha } from '@mui/material/styles'; import Box from '@mui/material/Box'; import Stack from '@mui/material/Stack'; +import Divider from '@mui/material/Divider'; import Typography from '@mui/material/Typography'; import { Link } from '@mui/docs/Link'; import { useTranslate } from 'docs/src/modules/utils/i18n'; @@ -13,26 +14,28 @@ const NativeLink = styled('a')(({ theme }) => ({ display: 'flex', alignItems: 'center', justifyContent: 'center', - borderRadius: 12, - border: '1px solid', + borderLeft: '1px solid', + borderRight: '1px solid', + borderBottom: 0, borderColor: (theme.vars || theme).palette.divider, - transition: theme.transitions.create(['color', 'border-color']), - boxShadow: `${alpha(theme.palette.grey[100], 0.3)} 0 -2px 0 inset`, + transition: theme.transitions.create(['background-color']), + '&:first-of-type': { + borderTop: `1px solid ${(theme.vars || theme).palette.divider}`, + borderRadius: '12px 12px 0 0', + }, '&:hover': { backgroundColor: (theme.vars || theme).palette.grey[50], }, '&:focus-visible': { outline: `3px solid ${alpha((theme.vars || theme).palette.primary[500], 0.5)}`, - outlineOffset: '2px', + outlineOffset: '-3px', }, '& img': { display: 'inline-block', }, ...theme.applyDarkStyles({ - boxShadow: `${alpha(theme.palette.primaryDark[600], 0.1)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset`, '&:hover': { - backgroundColor: alpha(theme.palette.primary[800], 0.2), - borderColor: (theme.vars || theme).palette.primary[900], + backgroundColor: alpha(theme.palette.primary[900], 0.1), }, }), })); @@ -41,7 +44,7 @@ export default function DiamondSponsors() { const t = useTranslate(); return ( - + + + ({ - p: 1.5, + height: 45, width: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center', - borderRadius: 1, border: '1px dashed', - transition: theme.transitions.create(['color', 'border-color', 'background-color']), - backgroundColor: alpha(theme.palette.grey[50], 0.5), borderColor: (theme.vars || theme).palette.grey[300], + borderRadius: '0 0 12px 12px', + backgroundColor: alpha(theme.palette.primary[50], 0.4), + transition: theme.transitions.create(['color', 'background-color']), '&:hover': { - backgroundColor: alpha(theme.palette.primary[100], 0.5), - borderColor: (theme.vars || theme).palette.primary[300], + backgroundColor: (theme.vars || theme).palette.primary[50], + borderColor: (theme.vars || theme).palette.primary[200], + }, + '&:focus-visible': { + outlineOffset: '-3px', }, ...theme.applyDarkStyles({ - backgroundColor: alpha(theme.palette.primaryDark[700], 0.2), - borderColor: (theme.vars || theme).palette.primaryDark[700], + backgroundColor: alpha(theme.palette.primaryDark[700], 0.3), + borderColor: alpha(theme.palette.primaryDark[600], 0.5), '&:hover': { - backgroundColor: alpha(theme.palette.primary[700], 0.2), - borderColor: (theme.vars || theme).palette.primary[800], + backgroundColor: alpha(theme.palette.primary[700], 0.1), + borderColor: alpha(theme.palette.primary[600], 0.4), }, }), })} > - + {t('becomeADiamondSponsor')} - {/* - {t('diamondSponsorVacancies')} - */} ); diff --git a/packages/mui-docs/src/branding/brandingTheme.ts b/packages/mui-docs/src/branding/brandingTheme.ts index e759d2f68da2a6..6345977d7c31c8 100644 --- a/packages/mui-docs/src/branding/brandingTheme.ts +++ b/packages/mui-docs/src/branding/brandingTheme.ts @@ -226,7 +226,7 @@ export const getDesignTokens = (mode: 'light' | 'dark') => tertiary: grey[700], }), ...(mode === 'dark' && { - primary: '#fff', + primary: 'hsl(0, 0%, 100%)', secondary: grey[400], tertiary: grey[500], }), @@ -364,10 +364,10 @@ export const getDesignTokens = (mode: 'light' | 'dark') => * ...theme.vars ? { * color: theme.vars.palette.primary.main, * [theme.getColorScheme('dark')]: { - * color: '#fff', + * color: 'hsl(0, 0%, 100%)', * } * } : { - * color: theme.palette.mode === 'dark' ? '#fff' : theme.palette.primary.main, + * color: theme.palette.mode === 'dark' ? 'hsl(0, 0%, 100%)' : theme.palette.primary.main, * } * } * @@ -375,7 +375,7 @@ export const getDesignTokens = (mode: 'light' | 'dark') => * { * color: (theme.vars || theme).palette.primary.main, * ...theme.applyDarkStyles({ - * color: '#fff', + * color: 'hsl(0, 0%, 100%)', * }), * } * @@ -568,7 +568,7 @@ export function getThemedComponents(): ThemeOptions { color: (theme.vars || theme).palette.text.primary, backgroundColor: alpha(theme.palette.primaryDark[50], 0.1), borderColor: (theme.vars || theme).palette.primaryDark[100], - boxShadow: `#FFF 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`, + boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`, '&:hover': { backgroundColor: (theme.vars || theme).palette.grey[50], }, @@ -606,7 +606,7 @@ export function getThemedComponents(): ThemeOptions { }), ...(ownerState.variant === 'contained' && ownerState.color === 'primary' && { - color: '#fff', + color: 'hsl(0, 0%, 100%)', textShadow: `0 1px 1px ${alpha(theme.palette.common.black, 0.6)}`, backgroundColor: (theme.vars || theme).palette.primary[500], backgroundImage: `linear-gradient(180deg, ${alpha(theme.palette.primary[500], 0.6)} 0%, ${theme.palette.primary[600]} 100%)`, @@ -809,7 +809,7 @@ export function getThemedComponents(): ThemeOptions { color: (theme.vars || theme).palette.primary.main, backgroundColor: alpha(theme.palette.primaryDark[50], 0.1), border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`, - boxShadow: `#FFF 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`, + boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`, '&:hover': { borderColor: (theme.vars || theme).palette.grey[300], background: (theme.vars || theme).palette.grey[50], @@ -834,7 +834,7 @@ export function getThemedComponents(): ThemeOptions { color: (theme.vars || theme).palette.text.secondary, backgroundColor: alpha(theme.palette.primaryDark[50], 0.1), border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`, - boxShadow: `#FFF 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`, + boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`, '&:hover': { color: (theme.vars || theme).palette.text.primary, borderColor: (theme.vars || theme).palette.grey[300], @@ -1031,7 +1031,7 @@ export function getThemedComponents(): ThemeOptions { backgroundColor: (theme.vars || theme).palette.primary[100], }, ...theme.applyDarkStyles({ - color: '#fff', + color: 'hsl(0, 0%, 100%)', backgroundColor: alpha(theme.palette.primaryDark[500], 0.8), '&:hover': { backgroundColor: (theme.vars || theme).palette.primaryDark[600], @@ -1083,7 +1083,7 @@ export function getThemedComponents(): ThemeOptions { color: (theme.vars || theme).palette.warning[900], backgroundColor: (theme.vars || theme).palette.warning[100], ...theme.applyDarkStyles({ - color: '#fff', + color: 'hsl(0, 0%, 100%)', backgroundColor: (theme.vars || theme).palette.warning[900], }), }), @@ -1091,7 +1091,7 @@ export function getThemedComponents(): ThemeOptions { color: (theme.vars || theme).palette.success[900], backgroundColor: (theme.vars || theme).palette.success[100], ...theme.applyDarkStyles({ - color: '#fff', + color: 'hsl(0, 0%, 100%)', backgroundColor: (theme.vars || theme).palette.success[900], }), }), @@ -1136,7 +1136,7 @@ export function getThemedComponents(): ThemeOptions { backgroundColor: alpha(theme.palette.primaryDark[700], 0.4), }, '&.Mui-selected': { - color: '#fff', + color: 'hsl(0, 0%, 100%)', borderColor: `${(theme.vars || theme).palette.primary[700]} !important`, backgroundColor: (theme.vars || theme).palette.primaryDark[700], '&:hover': { @@ -1167,7 +1167,7 @@ export function getThemedComponents(): ThemeOptions { root: ({ theme, ownerState }) => [ { backgroundImage: 'none', - backgroundColor: '#fff', + backgroundColor: 'hsl(0, 0%, 100%)', '&[href]': { textDecorationLine: 'none', }, @@ -1179,7 +1179,7 @@ export function getThemedComponents(): ThemeOptions { borderColor: (theme.vars || theme).palette.grey[100], '&[href]': { textDecorationLine: 'none', - boxShadow: `hsl(200, 0%, 100%) 0 2px 0 inset, ${alpha(theme.palette.grey[100], 0.3)} 0 -2px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`, + boxShadow: `hsl(0, 0%, 100%) 0 2px 0 inset, ${alpha(theme.palette.primary[100], 0.3)} 0 -2px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`, '&:hover': { borderColor: (theme.vars || theme).palette.primary[200], boxShadow: `0px 2px 8px ${(theme.vars || theme).palette.primary[100]}`, @@ -1203,8 +1203,7 @@ export function getThemedComponents(): ThemeOptions { borderColor: (theme.vars || theme).palette.primaryDark[700], backgroundColor: alpha(theme.palette.primaryDark[800], 0.6), '&[href]': { - textDecorationLine: 'none', - boxShadow: `${alpha(theme.palette.primaryDark[700], 0.4)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`, + boxShadow: `${alpha(theme.palette.primaryDark[600], 0.1)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`, '&:hover': { borderColor: alpha(theme.palette.primary[600], 0.5), boxShadow: `0px 2px 8px ${alpha(theme.palette.primary[900], 0.6)}`, @@ -1238,7 +1237,7 @@ export function getThemedComponents(): ThemeOptions { MuiToggleButtonGroup: { styleOverrides: { root: ({ theme }) => ({ - backgroundColor: '#fff', + backgroundColor: 'hsl(0, 0%, 100%)', ...theme.applyDarkStyles({ backgroundColor: (theme.vars || theme).palette.primaryDark[900], }), @@ -1307,7 +1306,7 @@ export function getThemedComponents(): ThemeOptions { '& .MuiSwitch-switchBase': { '&.Mui-checked': { transform: 'translateX(11px)', - color: '#fff', + color: 'hsl(0, 0%, 100%)', }, }, }, @@ -1315,7 +1314,7 @@ export function getThemedComponents(): ThemeOptions { height: 20, width: 20, padding: 0, - color: '#fff', + color: 'hsl(0, 0%, 100%)', '&.Mui-checked + .MuiSwitch-track': { opacity: 1, }, @@ -1339,7 +1338,7 @@ export function getThemedComponents(): ThemeOptions { styleOverrides: { root: ({ theme }) => ({ '& .MuiSnackbarContent-root': { - backgroundColor: '#FFF', + backgroundColor: 'hsl(0, 0%, 100%)', color: (theme.vars || theme).palette.text.primary, fontWeight: theme.typography.fontWeightMedium, border: `1px solid ${(theme.vars || theme).palette.divider}`, From 6c87fe328cf61cb4f3eb64754aa4a42dba32d86b Mon Sep 17 00:00:00 2001 From: Anuj <69952370+anuujj@users.noreply.github.com> Date: Thu, 20 Jun 2024 12:06:37 +0530 Subject: [PATCH 06/65] [joy-ui] Fix issues reported by the React Compiler (#42671) --- packages/mui-joy/src/Checkbox/Checkbox.tsx | 1 + packages/mui-joy/src/FormControl/FormControl.tsx | 1 + packages/mui-joy/src/Input/Input.tsx | 1 + packages/mui-joy/src/Radio/Radio.tsx | 1 + packages/mui-joy/src/RadioGroup/RadioGroup.tsx | 1 + packages/mui-joy/src/Select/Select.tsx | 1 + packages/mui-joy/src/Switch/Switch.tsx | 1 + packages/mui-joy/src/Textarea/Textarea.tsx | 1 + packages/mui-joy/src/Tooltip/Tooltip.tsx | 1 + packages/mui-joy/src/styles/ThemeProvider.tsx | 1 + packages/mui-joy/src/styles/extendTheme.test.js | 1 + 11 files changed, 11 insertions(+) diff --git a/packages/mui-joy/src/Checkbox/Checkbox.tsx b/packages/mui-joy/src/Checkbox/Checkbox.tsx index 78f44f65f592e9..a924c348f30529 100644 --- a/packages/mui-joy/src/Checkbox/Checkbox.tsx +++ b/packages/mui-joy/src/Checkbox/Checkbox.tsx @@ -246,6 +246,7 @@ const Checkbox = React.forwardRef(function Checkbox(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/FormControl/FormControl.tsx b/packages/mui-joy/src/FormControl/FormControl.tsx index 5562aaad8b76d2..8155e98761b67f 100644 --- a/packages/mui-joy/src/FormControl/FormControl.tsx +++ b/packages/mui-joy/src/FormControl/FormControl.tsx @@ -128,6 +128,7 @@ const FormControl = React.forwardRef(function FormControl(inProps, ref) { let registerEffect: undefined | (() => () => void); if (process.env.NODE_ENV !== 'production') { + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks const registeredInput = React.useRef(false); registerEffect = () => { diff --git a/packages/mui-joy/src/Input/Input.tsx b/packages/mui-joy/src/Input/Input.tsx index 4c78559dbb456e..4f70ee4286dab3 100644 --- a/packages/mui-joy/src/Input/Input.tsx +++ b/packages/mui-joy/src/Input/Input.tsx @@ -271,6 +271,7 @@ const Input = React.forwardRef(function Input(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/Radio/Radio.tsx b/packages/mui-joy/src/Radio/Radio.tsx index 70207ef81727a6..bb8c41dae97d7f 100644 --- a/packages/mui-joy/src/Radio/Radio.tsx +++ b/packages/mui-joy/src/Radio/Radio.tsx @@ -280,6 +280,7 @@ const Radio = React.forwardRef(function Radio(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/RadioGroup/RadioGroup.tsx b/packages/mui-joy/src/RadioGroup/RadioGroup.tsx index fabd7e41b0e7ed..86b2d6eca50067 100644 --- a/packages/mui-joy/src/RadioGroup/RadioGroup.tsx +++ b/packages/mui-joy/src/RadioGroup/RadioGroup.tsx @@ -110,6 +110,7 @@ const RadioGroup = React.forwardRef(function RadioGroup(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/Select/Select.tsx b/packages/mui-joy/src/Select/Select.tsx index 5a4db947b53849..d9cafc31c217a9 100644 --- a/packages/mui-joy/src/Select/Select.tsx +++ b/packages/mui-joy/src/Select/Select.tsx @@ -375,6 +375,7 @@ const Select = React.forwardRef(function Select { if (registerEffect) { diff --git a/packages/mui-joy/src/Switch/Switch.tsx b/packages/mui-joy/src/Switch/Switch.tsx index a79c284c5f9bfa..47a23efe95cdca 100644 --- a/packages/mui-joy/src/Switch/Switch.tsx +++ b/packages/mui-joy/src/Switch/Switch.tsx @@ -259,6 +259,7 @@ const Switch = React.forwardRef(function Switch(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/Textarea/Textarea.tsx b/packages/mui-joy/src/Textarea/Textarea.tsx index 6b5c3b6567f630..c365fc898cd28e 100644 --- a/packages/mui-joy/src/Textarea/Textarea.tsx +++ b/packages/mui-joy/src/Textarea/Textarea.tsx @@ -241,6 +241,7 @@ const Textarea = React.forwardRef(function Textarea(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/Tooltip/Tooltip.tsx b/packages/mui-joy/src/Tooltip/Tooltip.tsx index 22c560f0ecf439..b3c6e14d88324a 100644 --- a/packages/mui-joy/src/Tooltip/Tooltip.tsx +++ b/packages/mui-joy/src/Tooltip/Tooltip.tsx @@ -264,6 +264,7 @@ const Tooltip = React.forwardRef(function Tooltip(inProps, ref) { const prevUserSelect: React.MutableRefObject = React.useRef(); const stopTouchInteraction = useEventCallback(() => { if (prevUserSelect.current !== undefined) { + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- WebkitUserSelect is required outside the component (document.body.style as unknown as { WebkitUserSelect?: string }).WebkitUserSelect = prevUserSelect.current; prevUserSelect.current = undefined; diff --git a/packages/mui-joy/src/styles/ThemeProvider.tsx b/packages/mui-joy/src/styles/ThemeProvider.tsx index f0ba9c0ad63c95..62037297e3f508 100644 --- a/packages/mui-joy/src/styles/ThemeProvider.tsx +++ b/packages/mui-joy/src/styles/ThemeProvider.tsx @@ -11,6 +11,7 @@ export const useTheme = (): Theme => { const theme = useSystemTheme(defaultTheme); if (process.env.NODE_ENV !== 'production') { + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useDebugValue(theme); } diff --git a/packages/mui-joy/src/styles/extendTheme.test.js b/packages/mui-joy/src/styles/extendTheme.test.js index fe85a90982d372..29a7da8c536391 100644 --- a/packages/mui-joy/src/styles/extendTheme.test.js +++ b/packages/mui-joy/src/styles/extendTheme.test.js @@ -241,6 +241,7 @@ describe('extendTheme', () => { function Test() { const theme = useTheme(); + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- styles is required outside the component styles = theme.unstable_sx({ bgcolor: 'primary.500' }); return null; } From c02ee463f5a91250f7818525c2c95e84ad0a0118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aar=C3=B3n=20Garc=C3=ADa=20Herv=C3=A1s?= Date: Thu, 20 Jun 2024 08:37:19 +0200 Subject: [PATCH 07/65] [material-ui][Autocomplete] Fix React 18.3 key spread warnings in Autocomplete demos (#42691) --- .../components/autocomplete/FixedTags.js | 18 +++++---- .../components/autocomplete/FixedTags.tsx | 18 +++++---- .../material/components/autocomplete/Sizes.js | 40 +++++++++++-------- .../components/autocomplete/Sizes.tsx | 40 +++++++++++-------- 4 files changed, 70 insertions(+), 46 deletions(-) diff --git a/docs/data/material/components/autocomplete/FixedTags.js b/docs/data/material/components/autocomplete/FixedTags.js index fc57e587e221b3..982b9f1f35c706 100644 --- a/docs/data/material/components/autocomplete/FixedTags.js +++ b/docs/data/material/components/autocomplete/FixedTags.js @@ -21,13 +21,17 @@ export default function FixedTags() { options={top100Films} getOptionLabel={(option) => option.title} renderTags={(tagValue, getTagProps) => - tagValue.map((option, index) => ( - - )) + tagValue.map((option, index) => { + const { key, ...tagProps } = getTagProps({ index }); + return ( + + ); + }) } style={{ width: 500 }} renderInput={(params) => ( diff --git a/docs/data/material/components/autocomplete/FixedTags.tsx b/docs/data/material/components/autocomplete/FixedTags.tsx index fc57e587e221b3..982b9f1f35c706 100644 --- a/docs/data/material/components/autocomplete/FixedTags.tsx +++ b/docs/data/material/components/autocomplete/FixedTags.tsx @@ -21,13 +21,17 @@ export default function FixedTags() { options={top100Films} getOptionLabel={(option) => option.title} renderTags={(tagValue, getTagProps) => - tagValue.map((option, index) => ( - - )) + tagValue.map((option, index) => { + const { key, ...tagProps } = getTagProps({ index }); + return ( + + ); + }) } style={{ width: 500 }} renderInput={(params) => ( diff --git a/docs/data/material/components/autocomplete/Sizes.js b/docs/data/material/components/autocomplete/Sizes.js index ca0235e0bc38d6..741046dabddb9d 100644 --- a/docs/data/material/components/autocomplete/Sizes.js +++ b/docs/data/material/components/autocomplete/Sizes.js @@ -66,14 +66,18 @@ export default function Sizes() { getOptionLabel={(option) => option.title} defaultValue={top100Films[13]} renderTags={(value, getTagProps) => - value.map((option, index) => ( - - )) + value.map((option, index) => { + const { key, ...tagProps } = getTagProps({ index }); + return ( + + ); + }) } renderInput={(params) => ( option.title} defaultValue={[top100Films[13]]} renderTags={(value, getTagProps) => - value.map((option, index) => ( - - )) + value.map((option, index) => { + const { key, ...tagProps } = getTagProps({ index }); + return ( + + ); + }) } renderInput={(params) => ( option.title} defaultValue={top100Films[13]} renderTags={(value, getTagProps) => - value.map((option, index) => ( - - )) + value.map((option, index) => { + const { key, ...tagProps } = getTagProps({ index }); + return ( + + ); + }) } renderInput={(params) => ( option.title} defaultValue={[top100Films[13]]} renderTags={(value, getTagProps) => - value.map((option, index) => ( - - )) + value.map((option, index) => { + const { key, ...tagProps } = getTagProps({ index }); + return ( + + ); + }) } renderInput={(params) => ( Date: Thu, 20 Jun 2024 12:10:16 +0530 Subject: [PATCH 08/65] Bump MUI X to 7.7.0 (#42655) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- docs/package.json | 18 ++++---- pnpm-lock.yaml | 106 +++++++++++++++++++++++----------------------- 2 files changed, 62 insertions(+), 62 deletions(-) diff --git a/docs/package.json b/docs/package.json index 408f24cc054f90..3b0219898c1d55 100644 --- a/docs/package.json +++ b/docs/package.json @@ -43,15 +43,15 @@ "@mui/system": "workspace:^", "@mui/types": "workspace:^", "@mui/utils": "workspace:^", - "@mui/x-charts": "7.6.2", - "@mui/x-data-grid": "7.6.2", - "@mui/x-data-grid-generator": "7.6.2", - "@mui/x-data-grid-premium": "7.6.2", - "@mui/x-data-grid-pro": "7.6.2", - "@mui/x-date-pickers": "7.6.2", - "@mui/x-date-pickers-pro": "7.6.2", - "@mui/x-license": "7.6.1", - "@mui/x-tree-view": "7.6.2", + "@mui/x-charts": "7.7.0", + "@mui/x-data-grid": "7.7.0", + "@mui/x-data-grid-generator": "7.7.0", + "@mui/x-data-grid-premium": "7.7.0", + "@mui/x-data-grid-pro": "7.7.0", + "@mui/x-date-pickers": "7.7.0", + "@mui/x-date-pickers-pro": "7.7.0", + "@mui/x-license": "7.7.0", + "@mui/x-tree-view": "7.7.0", "@popperjs/core": "^2.11.8", "@react-spring/web": "^9.7.3", "autoprefixer": "^10.4.19", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c9a39c0f74e05a..b8b8d6af61b107 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -626,32 +626,32 @@ importers: specifier: workspace:^ version: link:../packages/mui-utils/build '@mui/x-charts': - specifier: 7.6.2 - version: 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.0 + version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-data-grid': - specifier: 7.6.2 - version: 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.0 + version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-data-grid-generator': - specifier: 7.6.2 - version: 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.0 + version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-data-grid-premium': - specifier: 7.6.2 - version: 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.0 + version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-data-grid-pro': - specifier: 7.6.2 - version: 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.0 + version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-date-pickers': - specifier: 7.6.2 - version: 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.0 + version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-date-pickers-pro': - specifier: 7.6.2 - version: 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.0 + version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-license': - specifier: 7.6.1 - version: 7.6.1(@types/react@18.2.55)(react@18.2.0) + specifier: 7.7.0 + version: 7.7.0(@types/react@18.2.55)(react@18.2.0) '@mui/x-tree-view': - specifier: 7.6.2 - version: 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.0 + version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@popperjs/core': specifier: ^2.11.8 version: 2.11.8 @@ -4126,8 +4126,8 @@ packages: '@types/react': optional: true - '@mui/x-charts@7.6.2': - resolution: {integrity: sha512-oG22NRno1+HSLV/9jVLThnHAKN4g+MXOO6GqaQxN9LM0hjt1tgRsrNAlfcJndmj/dVwqFtynkFB5qWnTEBZs7Q==} + '@mui/x-charts@7.7.0': + resolution: {integrity: sha512-HkJ6RGEjCyyPuZ79I+b0mo7B4B/w9iciJKpkNJ4HM5Wu3/vsVIsq6CdYYq83hk2Mtp+G9SIUeT/17CQ/9vxs/w==} engines: {node: '>=14.0.0'} peerDependencies: '@emotion/react': ^11.9.0 @@ -4141,40 +4141,40 @@ packages: '@emotion/styled': optional: true - '@mui/x-data-grid-generator@7.6.2': - resolution: {integrity: sha512-eeoNs7OQKbLChf+W8mc3nFgtk+Vtn4qqoT9KpyMlqEXAACPdL4aKHp27SgMnP/fOz8ITHkPd7O+V7qGXNsvzQg==} + '@mui/x-data-grid-generator@7.7.0': + resolution: {integrity: sha512-EL7NWjYivg0snLtC0Oja4bwekEChZHLw9ME496GuR9qvgq2Wfm6Kaa9dW1DmLL72l/lOIeck4RjIZtfltUnTCg==} engines: {node: '>=14.0.0'} peerDependencies: '@mui/icons-material': ^5.4.1 '@mui/material': ^5.15.14 react: ^17.0.0 || ^18.0.0 - '@mui/x-data-grid-premium@7.6.2': - resolution: {integrity: sha512-o0Shcbj0srxGDmPGKcSK0mdi14CR7/3QtSUmSv+jmQrUT3fxmvsFfvV9TTI+O53QsEOIgTFjuXAiFaNp1GT5AA==} + '@mui/x-data-grid-premium@7.7.0': + resolution: {integrity: sha512-SvJdmtj6gSmd1/fc3TwZgiv9Un53RvxaRG/0/Xa+hoS1BQeI6uITrf+qqzXTr6GfATBZyg3W9P45Wagu6QXk8Q==} engines: {node: '>=14.0.0'} peerDependencies: '@mui/material': ^5.15.14 react: ^17.0.0 || ^18.0.0 react-dom: ^17.0.0 || ^18.0.0 - '@mui/x-data-grid-pro@7.6.2': - resolution: {integrity: sha512-Uhc4MZbT655WPc5AS6Yt8XynHja6oX2Jsx3PxYhUDN5w8HJY/7RpTgEa8daj/fsFthvvgBU7q2u9gziWl9uoMg==} + '@mui/x-data-grid-pro@7.7.0': + resolution: {integrity: sha512-3yMZIFj0VopJzlSCJjBVZi9fBZhFJgqxquSuOwlMUhnQ4ocOP9Uov547wzBfR4op+bJD+P+O/GFcoi83CCyDuw==} engines: {node: '>=14.0.0'} peerDependencies: '@mui/material': ^5.15.14 react: ^17.0.0 || ^18.0.0 react-dom: ^17.0.0 || ^18.0.0 - '@mui/x-data-grid@7.6.2': - resolution: {integrity: sha512-f3t6TU8+f0VgmL4aJ9N/Wm5IeWfICfVb45S469wzzldUhbb/beIO/T3uMyGP13WFhx5f8N5wRRHSYZRHpfzhZw==} + '@mui/x-data-grid@7.7.0': + resolution: {integrity: sha512-s3Oii9EKcYPnL7M4g5evNley/J0slLL6xWRi0VwYqTHPGntBAMntUktMZ63bD/xko99f5ZcFoRBYTc55+mJ+AQ==} engines: {node: '>=14.0.0'} peerDependencies: '@mui/material': ^5.15.14 react: ^17.0.0 || ^18.0.0 react-dom: ^17.0.0 || ^18.0.0 - '@mui/x-date-pickers-pro@7.6.2': - resolution: {integrity: sha512-jdloBLl4nguhFeFFzoD1ZXJAG5I/OzRf84QjYZHp12xWszCN75lJyBqTIWujkGKBFeFKGbADTUZE03UhszbqLg==} + '@mui/x-date-pickers-pro@7.7.0': + resolution: {integrity: sha512-kIP6LzzhEWE281vXSIWO3W7IdW9G6mZ4EKAEGYWE+nZ+vnCopC7xHlDOtPDi/7ag7vWZDjB12gmo+19kM+brug==} engines: {node: '>=14.0.0'} peerDependencies: '@emotion/react': ^11.9.0 @@ -4209,8 +4209,8 @@ packages: moment-jalaali: optional: true - '@mui/x-date-pickers@7.6.2': - resolution: {integrity: sha512-9e5qO76eLvjiEm7Yt4HNR1jqGFia7vnZYbhi4Tw/xQ32emMKYLUzXZLhQNtb1wa7SwHWxXcPJOkIEmvQgEvaqQ==} + '@mui/x-date-pickers@7.7.0': + resolution: {integrity: sha512-huyoA22Vi8iCkee6ro0sX7CcFIcPV/Fl7ZGWwaQC8PTAheXhz823DjMYAiwRU/imF+UFYfUInWQ4XZCIkM+2Dw==} engines: {node: '>=14.0.0'} peerDependencies: '@emotion/react': ^11.9.0 @@ -4245,14 +4245,14 @@ packages: moment-jalaali: optional: true - '@mui/x-license@7.6.1': - resolution: {integrity: sha512-tTCrsk6mFCzD+1nLiU9gh/tk4PGABLfV188bi/K2cMBUdXOBv9kUsCqqU/3sL6qVmjFwY/WP0RGwOAGizQNjLQ==} + '@mui/x-license@7.7.0': + resolution: {integrity: sha512-lslSjrgD0XmzSokYbuOZ2qiQmbEcq9w8SY4B8fnzVfwUa/pnaIFD0FmKOQRAsozwYD/P21PuXJ9r9jNAHVvc7w==} engines: {node: '>=14.0.0'} peerDependencies: react: ^17.0.0 || ^18.0.0 - '@mui/x-tree-view@7.6.2': - resolution: {integrity: sha512-0LBoKUQvMzNzJN7UmGqGV4A3NpRxB8liPrjQMfkbI6LrXBbDlqyEdJWRseK1RzxYxTfH71HqW9Z3E2wS62P1Sg==} + '@mui/x-tree-view@7.7.0': + resolution: {integrity: sha512-kUTMS77EcNjp1iXZlm4GGFzZHnQdZJfn2L9gvxAaHtNTDSRMS61jpsCcXknIyC797dmRPdALPewNzSOfkThF+Q==} engines: {node: '>=14.0.0'} peerDependencies: '@emotion/react': ^11.9.0 @@ -14620,7 +14620,7 @@ snapshots: optionalDependencies: '@types/react': 18.2.55 - '@mui/x-charts@7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-charts@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/base': 5.0.0-beta.40(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -14644,13 +14644,13 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@mui/x-data-grid-generator@7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-data-grid-generator@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/base': 5.0.0-beta.40(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/icons-material': link:packages/mui-icons-material/build '@mui/material': link:packages/mui-material/build - '@mui/x-data-grid-premium': 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/x-data-grid-premium': 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) chance: 1.1.11 clsx: 2.1.1 lru-cache: 7.18.3 @@ -14661,15 +14661,15 @@ snapshots: - '@types/react' - react-dom - '@mui/x-data-grid-premium@7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-data-grid-premium@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/material': link:packages/mui-material/build '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) - '@mui/x-data-grid': 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/x-data-grid-pro': 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/x-license': 7.6.1(@types/react@18.2.55)(react@18.2.0) + '@mui/x-data-grid': 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/x-data-grid-pro': 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/x-license': 7.7.0(@types/react@18.2.55)(react@18.2.0) '@types/format-util': 1.0.4 clsx: 2.1.1 exceljs: 4.4.0 @@ -14682,14 +14682,14 @@ snapshots: - '@emotion/styled' - '@types/react' - '@mui/x-data-grid-pro@7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-data-grid-pro@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/material': link:packages/mui-material/build '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) - '@mui/x-data-grid': 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/x-license': 7.6.1(@types/react@18.2.55)(react@18.2.0) + '@mui/x-data-grid': 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/x-license': 7.7.0(@types/react@18.2.55)(react@18.2.0) '@types/format-util': 1.0.4 clsx: 2.1.1 prop-types: 15.8.1 @@ -14701,7 +14701,7 @@ snapshots: - '@emotion/styled' - '@types/react' - '@mui/x-data-grid@7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-data-grid@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/material': link:packages/mui-material/build @@ -14717,15 +14717,15 @@ snapshots: - '@emotion/styled' - '@types/react' - '@mui/x-date-pickers-pro@7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-date-pickers-pro@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/base': 5.0.0-beta.40(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/material': link:packages/mui-material/build '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) - '@mui/x-date-pickers': 7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/x-license': 7.6.1(@types/react@18.2.55)(react@18.2.0) + '@mui/x-date-pickers': 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/x-license': 7.7.0(@types/react@18.2.55)(react@18.2.0) clsx: 2.1.1 prop-types: 15.8.1 react: 18.2.0 @@ -14740,7 +14740,7 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@mui/x-date-pickers@7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-date-pickers@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/base': 5.0.0-beta.40(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -14762,7 +14762,7 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@mui/x-license@7.6.1(@types/react@18.2.55)(react@18.2.0)': + '@mui/x-license@7.7.0(@types/react@18.2.55)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) @@ -14770,7 +14770,7 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@mui/x-tree-view@7.6.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-tree-view@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@emotion/react': 11.11.4(@types/react@18.2.55)(react@18.2.0) From 9469b10e0d35ed8f2f128e33d489b489a8c9c930 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 12:12:29 +0530 Subject: [PATCH 09/65] Bump pnpm to 9.4.0 (#42659) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +- pnpm-lock.yaml | 238 ------------------------------------------------- 2 files changed, 2 insertions(+), 240 deletions(-) diff --git a/package.json b/package.json index 6589d751485b50..2d8bdcca00c748 100644 --- a/package.json +++ b/package.json @@ -192,9 +192,9 @@ "webpack-cli": "^5.1.4", "yargs": "^17.7.2" }, - "packageManager": "pnpm@9.2.0", + "packageManager": "pnpm@9.4.0", "engines": { - "pnpm": "9.2.0" + "pnpm": "9.4.0" }, "resolutions": { "@babel/core": "^7.24.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b8b8d6af61b107..a7e0cde9541216 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3393,276 +3393,138 @@ packages: '@emotion/weak-memoize@0.3.1': resolution: {integrity: sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww==} - '@esbuild/aix-ppc64@0.20.2': - resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [aix] - '@esbuild/aix-ppc64@0.21.5': resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} engines: {node: '>=12'} cpu: [ppc64] os: [aix] - '@esbuild/android-arm64@0.20.2': - resolution: {integrity: sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - '@esbuild/android-arm64@0.21.5': resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} engines: {node: '>=12'} cpu: [arm64] os: [android] - '@esbuild/android-arm@0.20.2': - resolution: {integrity: sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - '@esbuild/android-arm@0.21.5': resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} engines: {node: '>=12'} cpu: [arm] os: [android] - '@esbuild/android-x64@0.20.2': - resolution: {integrity: sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - '@esbuild/android-x64@0.21.5': resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} engines: {node: '>=12'} cpu: [x64] os: [android] - '@esbuild/darwin-arm64@0.20.2': - resolution: {integrity: sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - '@esbuild/darwin-arm64@0.21.5': resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] - '@esbuild/darwin-x64@0.20.2': - resolution: {integrity: sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - '@esbuild/darwin-x64@0.21.5': resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} engines: {node: '>=12'} cpu: [x64] os: [darwin] - '@esbuild/freebsd-arm64@0.20.2': - resolution: {integrity: sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - '@esbuild/freebsd-arm64@0.21.5': resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-x64@0.20.2': - resolution: {integrity: sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - '@esbuild/freebsd-x64@0.21.5': resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] - '@esbuild/linux-arm64@0.20.2': - resolution: {integrity: sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - '@esbuild/linux-arm64@0.21.5': resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} engines: {node: '>=12'} cpu: [arm64] os: [linux] - '@esbuild/linux-arm@0.20.2': - resolution: {integrity: sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - '@esbuild/linux-arm@0.21.5': resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} engines: {node: '>=12'} cpu: [arm] os: [linux] - '@esbuild/linux-ia32@0.20.2': - resolution: {integrity: sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - '@esbuild/linux-ia32@0.21.5': resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} engines: {node: '>=12'} cpu: [ia32] os: [linux] - '@esbuild/linux-loong64@0.20.2': - resolution: {integrity: sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - '@esbuild/linux-loong64@0.21.5': resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} engines: {node: '>=12'} cpu: [loong64] os: [linux] - '@esbuild/linux-mips64el@0.20.2': - resolution: {integrity: sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - '@esbuild/linux-mips64el@0.21.5': resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] - '@esbuild/linux-ppc64@0.20.2': - resolution: {integrity: sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - '@esbuild/linux-ppc64@0.21.5': resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] - '@esbuild/linux-riscv64@0.20.2': - resolution: {integrity: sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - '@esbuild/linux-riscv64@0.21.5': resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] - '@esbuild/linux-s390x@0.20.2': - resolution: {integrity: sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - '@esbuild/linux-s390x@0.21.5': resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} engines: {node: '>=12'} cpu: [s390x] os: [linux] - '@esbuild/linux-x64@0.20.2': - resolution: {integrity: sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - '@esbuild/linux-x64@0.21.5': resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} engines: {node: '>=12'} cpu: [x64] os: [linux] - '@esbuild/netbsd-x64@0.20.2': - resolution: {integrity: sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - '@esbuild/netbsd-x64@0.21.5': resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] - '@esbuild/openbsd-x64@0.20.2': - resolution: {integrity: sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - '@esbuild/openbsd-x64@0.21.5': resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] - '@esbuild/sunos-x64@0.20.2': - resolution: {integrity: sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - '@esbuild/sunos-x64@0.21.5': resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} engines: {node: '>=12'} cpu: [x64] os: [sunos] - '@esbuild/win32-arm64@0.20.2': - resolution: {integrity: sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - '@esbuild/win32-arm64@0.21.5': resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} engines: {node: '>=12'} cpu: [arm64] os: [win32] - '@esbuild/win32-ia32@0.20.2': - resolution: {integrity: sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - '@esbuild/win32-ia32@0.21.5': resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} engines: {node: '>=12'} cpu: [ia32] os: [win32] - '@esbuild/win32-x64@0.20.2': - resolution: {integrity: sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - '@esbuild/win32-x64@0.21.5': resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} engines: {node: '>=12'} @@ -7277,11 +7139,6 @@ packages: es6-promisify@5.0.0: resolution: {integrity: sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==} - esbuild@0.20.2: - resolution: {integrity: sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==} - engines: {node: '>=12'} - hasBin: true - esbuild@0.21.5: resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} engines: {node: '>=12'} @@ -13937,141 +13794,72 @@ snapshots: '@emotion/weak-memoize@0.3.1': {} - '@esbuild/aix-ppc64@0.20.2': - optional: true - '@esbuild/aix-ppc64@0.21.5': optional: true - '@esbuild/android-arm64@0.20.2': - optional: true - '@esbuild/android-arm64@0.21.5': optional: true - '@esbuild/android-arm@0.20.2': - optional: true - '@esbuild/android-arm@0.21.5': optional: true - '@esbuild/android-x64@0.20.2': - optional: true - '@esbuild/android-x64@0.21.5': optional: true - '@esbuild/darwin-arm64@0.20.2': - optional: true - '@esbuild/darwin-arm64@0.21.5': optional: true - '@esbuild/darwin-x64@0.20.2': - optional: true - '@esbuild/darwin-x64@0.21.5': optional: true - '@esbuild/freebsd-arm64@0.20.2': - optional: true - '@esbuild/freebsd-arm64@0.21.5': optional: true - '@esbuild/freebsd-x64@0.20.2': - optional: true - '@esbuild/freebsd-x64@0.21.5': optional: true - '@esbuild/linux-arm64@0.20.2': - optional: true - '@esbuild/linux-arm64@0.21.5': optional: true - '@esbuild/linux-arm@0.20.2': - optional: true - '@esbuild/linux-arm@0.21.5': optional: true - '@esbuild/linux-ia32@0.20.2': - optional: true - '@esbuild/linux-ia32@0.21.5': optional: true - '@esbuild/linux-loong64@0.20.2': - optional: true - '@esbuild/linux-loong64@0.21.5': optional: true - '@esbuild/linux-mips64el@0.20.2': - optional: true - '@esbuild/linux-mips64el@0.21.5': optional: true - '@esbuild/linux-ppc64@0.20.2': - optional: true - '@esbuild/linux-ppc64@0.21.5': optional: true - '@esbuild/linux-riscv64@0.20.2': - optional: true - '@esbuild/linux-riscv64@0.21.5': optional: true - '@esbuild/linux-s390x@0.20.2': - optional: true - '@esbuild/linux-s390x@0.21.5': optional: true - '@esbuild/linux-x64@0.20.2': - optional: true - '@esbuild/linux-x64@0.21.5': optional: true - '@esbuild/netbsd-x64@0.20.2': - optional: true - '@esbuild/netbsd-x64@0.21.5': optional: true - '@esbuild/openbsd-x64@0.20.2': - optional: true - '@esbuild/openbsd-x64@0.21.5': optional: true - '@esbuild/sunos-x64@0.20.2': - optional: true - '@esbuild/sunos-x64@0.21.5': optional: true - '@esbuild/win32-arm64@0.20.2': - optional: true - '@esbuild/win32-arm64@0.21.5': optional: true - '@esbuild/win32-ia32@0.20.2': - optional: true - '@esbuild/win32-ia32@0.21.5': optional: true - '@esbuild/win32-x64@0.20.2': - optional: true - '@esbuild/win32-x64@0.21.5': optional: true @@ -18585,32 +18373,6 @@ snapshots: dependencies: es6-promise: 4.2.8 - esbuild@0.20.2: - optionalDependencies: - '@esbuild/aix-ppc64': 0.20.2 - '@esbuild/android-arm': 0.20.2 - '@esbuild/android-arm64': 0.20.2 - '@esbuild/android-x64': 0.20.2 - '@esbuild/darwin-arm64': 0.20.2 - '@esbuild/darwin-x64': 0.20.2 - '@esbuild/freebsd-arm64': 0.20.2 - '@esbuild/freebsd-x64': 0.20.2 - '@esbuild/linux-arm': 0.20.2 - '@esbuild/linux-arm64': 0.20.2 - '@esbuild/linux-ia32': 0.20.2 - '@esbuild/linux-loong64': 0.20.2 - '@esbuild/linux-mips64el': 0.20.2 - '@esbuild/linux-ppc64': 0.20.2 - '@esbuild/linux-riscv64': 0.20.2 - '@esbuild/linux-s390x': 0.20.2 - '@esbuild/linux-x64': 0.20.2 - '@esbuild/netbsd-x64': 0.20.2 - '@esbuild/openbsd-x64': 0.20.2 - '@esbuild/sunos-x64': 0.20.2 - '@esbuild/win32-arm64': 0.20.2 - '@esbuild/win32-ia32': 0.20.2 - '@esbuild/win32-x64': 0.20.2 - esbuild@0.21.5: optionalDependencies: '@esbuild/aix-ppc64': 0.21.5 From 77a76a3e576cc65d52b559028a021593937b4a7b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 12:15:28 +0530 Subject: [PATCH 10/65] Bump @googleapis/sheets to ^8.0.0 (#42663) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 2d8bdcca00c748..60ba0bb46e8aae 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "nx_test_unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.{js,ts,tsx}' 'packages-internal/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'" }, "dependencies": { - "@googleapis/sheets": "^7.0.1", + "@googleapis/sheets": "^8.0.0", "@netlify/functions": "^2.7.0", "@slack/bolt": "^3.18.0", "execa": "^9.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a7e0cde9541216..c8dea63b9ff567 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,8 +26,8 @@ importers: .: dependencies: '@googleapis/sheets': - specifier: ^7.0.1 - version: 7.0.1(encoding@0.1.13) + specifier: ^8.0.0 + version: 8.0.0(encoding@0.1.13) '@netlify/functions': specifier: ^2.7.0 version: 2.7.0(@opentelemetry/api@1.8.0) @@ -3600,8 +3600,8 @@ packages: resolution: {integrity: sha512-9KMSDtJ/sIov+5pcH+CAfiJXSiuYgN0KLKQFg0HHWR2DwcjGYkcbmhoZcWsaOWOqq4kihN1l7wX91UoRxxKKTQ==} engines: {node: '>=18.0.0'} - '@googleapis/sheets@7.0.1': - resolution: {integrity: sha512-n+ctnqtKd24Dd4X6yE2NSq47iodqxvaaRcxNdqLIkV+4GQs0u8UnF7Cj9Bqi8/sd9kdLZV70H5R7q/lzVEhpmw==} + '@googleapis/sheets@8.0.0': + resolution: {integrity: sha512-EwLC+bMLTz3n2EDJMhMdrNR+aTxDBPpcq3k6Ibc4eKrp8UbytNAEB0VgfQFOGJN7+BTCcjiojt08O/cwn+YnHg==} engines: {node: '>=12.0.0'} '@hapi/hoek@9.3.0': @@ -13954,7 +13954,7 @@ snapshots: '@gitbeaker/core': 38.12.1 '@gitbeaker/requester-utils': 38.12.1 - '@googleapis/sheets@7.0.1(encoding@0.1.13)': + '@googleapis/sheets@8.0.0(encoding@0.1.13)': dependencies: googleapis-common: 7.0.0(encoding@0.1.13) transitivePeerDependencies: From 783eb30147b1f9293068b58c59b730b5154d4033 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 12:31:46 +0530 Subject: [PATCH 11/65] Bump @vitejs/plugin-react to ^4.3.1 (#42652) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- apps/pigment-css-vite-app/package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/pigment-css-vite-app/package.json b/apps/pigment-css-vite-app/package.json index aa7854ff74a483..dae2d664aa2454 100644 --- a/apps/pigment-css-vite-app/package.json +++ b/apps/pigment-css-vite-app/package.json @@ -30,7 +30,7 @@ "@pigment-css/vite-plugin": "^0.0.13", "@types/react": "^18.2.55", "@types/react-dom": "^18.3.0", - "@vitejs/plugin-react": "^4.3.0", + "@vitejs/plugin-react": "^4.3.1", "postcss": "^8.4.38", "postcss-combine-media-query": "^1.0.1", "vite": "5.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c8dea63b9ff567..2305189bc84236 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -452,8 +452,8 @@ importers: specifier: 18.3.0 version: 18.3.0 '@vitejs/plugin-react': - specifier: ^4.3.0 - version: 4.3.0(vite@5.3.1(@types/node@18.19.34)(terser@5.29.2)) + specifier: ^4.3.1 + version: 4.3.1(vite@5.3.1(@types/node@18.19.34)(terser@5.29.2)) postcss: specifier: ^8.4.38 version: 8.4.38 @@ -5410,8 +5410,8 @@ packages: '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} - '@vitejs/plugin-react@4.3.0': - resolution: {integrity: sha512-KcEbMsn4Dpk+LIbHMj7gDPRKaTMStxxWRkRmxsg/jVdFdJCZWt1SchZcf0M4t8lIKdwwMsEyzhrcOXRrDPtOBw==} + '@vitejs/plugin-react@4.3.1': + resolution: {integrity: sha512-m/V2syj5CuVnaxcUJOQRel/Wr31FFXRFlnOoq1TVtkCxsY5veGMTEmpWHndrhB2U8ScHtCQB1e+4hWYExQc6Lg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.2.0 || ^5.0.0 @@ -16231,7 +16231,7 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitejs/plugin-react@4.3.0(vite@5.3.1(@types/node@18.19.34)(terser@5.29.2))': + '@vitejs/plugin-react@4.3.1(vite@5.3.1(@types/node@18.19.34)(terser@5.29.2))': dependencies: '@babel/core': 7.24.7 '@babel/plugin-transform-react-jsx-self': 7.24.6(@babel/core@7.24.7) From a8bc5a3302b68b081793560968d0aa40795c46fc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 12:32:07 +0530 Subject: [PATCH 12/65] Bump @babel/runtime to ^7.24.7 (#42650) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- benchmark/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/package.json b/benchmark/package.json index ed1af9c8853cf0..c8685b2f2ea1d0 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -11,7 +11,7 @@ "server:system": "cd ../ && cross-env NODE_ENV=production BABEL_ENV=benchmark babel-node benchmark/server/scenarios/system.js --inspect=0.0.0.0:9229 --extensions \".tsx,.ts,.js\"" }, "dependencies": { - "@babel/runtime": "^7.24.6", + "@babel/runtime": "^7.24.7", "@chakra-ui/system": "^2.6.2", "@emotion/react": "^11.11.4", "@emotion/server": "^11.11.0", From 3c67e7ae77fd0157aaae457f9303ac5c6594e90a Mon Sep 17 00:00:00 2001 From: Siriwat K Date: Thu, 20 Jun 2024 17:02:32 +0700 Subject: [PATCH 13/65] [codemod] Support dynamic props styled transformation (#42683) --- .../mui-codemod/src/util/migrateToVariants.js | 98 +++++++++++-------- .../src/v6.0.0/styled/styled-v6.test.js | 24 +++++ .../test-cases/ConditionalStyled.expected.js | 39 +++----- .../test-cases/DynamicPropsStyled.actual.js | 34 +++++++ .../test-cases/DynamicPropsStyled.expected.js | 65 ++++++++++++ .../test-cases/NestedSpread.expected.js | 28 +++--- 6 files changed, 203 insertions(+), 85 deletions(-) create mode 100644 packages/mui-codemod/src/v6.0.0/styled/test-cases/DynamicPropsStyled.actual.js create mode 100644 packages/mui-codemod/src/v6.0.0/styled/test-cases/DynamicPropsStyled.expected.js diff --git a/packages/mui-codemod/src/util/migrateToVariants.js b/packages/mui-codemod/src/util/migrateToVariants.js index a968084ebe880b..23dc758d3a3db6 100644 --- a/packages/mui-codemod/src/util/migrateToVariants.js +++ b/packages/mui-codemod/src/util/migrateToVariants.js @@ -368,39 +368,46 @@ export default function migrateToVariants(j, styles) { } else if (style.body.type === 'ConditionalExpression') { // skip ConditionalExpression } else { - let objectExpression = style.body; - let counter = 0; - while (objectExpression.type !== 'ObjectExpression' && counter < MAX_DEPTH) { - counter += 1; - if (objectExpression.type === 'BlockStatement') { - objectExpression = objectExpression.body.find( - (item) => item.type === 'ReturnStatement', - ).argument; - } + const expressions = []; + if (style.body.type === 'ArrayExpression') { + expressions.push(...style.body.elements); + } else { + expressions.push(style.body); } + expressions.forEach((objectExpression) => { + let counter = 0; + while (objectExpression.type !== 'ObjectExpression' && counter < MAX_DEPTH) { + counter += 1; + if (objectExpression.type === 'BlockStatement') { + objectExpression = objectExpression.body.find( + (item) => item.type === 'ReturnStatement', + ).argument; + } + } - recurseObjectExpression({ node: objectExpression, buildStyle: createBuildStyle() }); + recurseObjectExpression({ node: objectExpression, buildStyle: createBuildStyle() }); - if (variants.length) { - objectExpression.properties.push( - j.objectProperty( - j.identifier('variants'), - j.arrayExpression( - variants.filter((variant) => { - const props = variant.properties.find((prop) => prop.key.name === 'props'); - const styleVal = variant.properties.find((prop) => prop.key.name === 'style'); - return ( - props && - styleVal && - (!styleVal.value.properties || styleVal.value.properties.length > 0) && - (props.value.type === 'ArrowFunctionExpression' || - props.value.properties.length > 0) - ); - }), + if (variants.length && objectExpression.type === 'ObjectExpression') { + objectExpression.properties.push( + j.objectProperty( + j.identifier('variants'), + j.arrayExpression( + variants.filter((variant) => { + const props = variant.properties.find((prop) => prop.key.name === 'props'); + const styleVal = variant.properties.find((prop) => prop.key.name === 'style'); + return ( + props && + styleVal && + (!styleVal.value.properties || styleVal.value.properties.length > 0) && + (props.value.type === 'ArrowFunctionExpression' || + props.value.properties.length > 0) + ); + }), + ), ), - ), - ); - } + ); + } + }); } function recurseObjectExpression(data) { @@ -546,19 +553,26 @@ export default function migrateToVariants(j, styles) { }; variants.push(buildObjectAST(variant)); - // create another variant with inverted condition - let props2 = buildProps(inverseBinaryExpression(data.node.test)); - if (data.props) { - props2 = mergeProps(data.props, props2); - } - const styleVal2 = data.buildStyle(data.node.alternate); - const variant2 = { - props: props2, - style: styleVal2, - }; - variants.push(buildObjectAST(variant2)); - if (data.parentNode?.type === 'ObjectExpression') { - removeProperty(data.parentNode, data.node); + if ( + data.node.consequent.type === 'ObjectExpression' && + data.node.alternate.type === 'ObjectExpression' + ) { + // create another variant with inverted condition + let props2 = buildProps(inverseBinaryExpression(data.node.test)); + if (data.props) { + props2 = mergeProps(data.props, props2); + } + const styleVal2 = data.buildStyle(data.node.alternate); + const variant2 = { + props: props2, + style: styleVal2, + }; + variants.push(buildObjectAST(variant2)); + if (data.parentNode?.type === 'ObjectExpression') { + removeProperty(data.parentNode, data.node); + } + } else { + data.replaceValue?.(data.node.alternate); } } if ( diff --git a/packages/mui-codemod/src/v6.0.0/styled/styled-v6.test.js b/packages/mui-codemod/src/v6.0.0/styled/styled-v6.test.js index 7dee2d833d463f..0a25d06c86b652 100644 --- a/packages/mui-codemod/src/v6.0.0/styled/styled-v6.test.js +++ b/packages/mui-codemod/src/v6.0.0/styled/styled-v6.test.js @@ -177,5 +177,29 @@ describe('@mui/codemod', () => { expect(actual).to.equal(expected, 'The transformed version should be correct'); }); }); + + describe('dynamic props styled-v6', () => { + it('transforms props as needed', () => { + const actual = transform( + { source: read('./test-cases/DynamicPropsStyled.actual.js') }, + { jscodeshift }, + { printOptions: { trailingComma: false } }, + ); + + const expected = read('./test-cases/DynamicPropsStyled.expected.js'); + expect(actual).to.equal(expected, 'The transformed version should be correct'); + }); + + it('should be idempotent', () => { + const actual = transform( + { source: read('./test-cases/DynamicPropsStyled.expected.js') }, + { jscodeshift }, + {}, + ); + + const expected = read('./test-cases/DynamicPropsStyled.expected.js'); + expect(actual).to.equal(expected, 'The transformed version should be correct'); + }); + }); }); }); diff --git a/packages/mui-codemod/src/v6.0.0/styled/test-cases/ConditionalStyled.expected.js b/packages/mui-codemod/src/v6.0.0/styled/test-cases/ConditionalStyled.expected.js index 94648e44467afd..516a72110576d6 100644 --- a/packages/mui-codemod/src/v6.0.0/styled/test-cases/ConditionalStyled.expected.js +++ b/packages/mui-codemod/src/v6.0.0/styled/test-cases/ConditionalStyled.expected.js @@ -21,7 +21,9 @@ const LinearProgressBar1 = styled('span', { variant: 'buffer' }, style: { - '&:hover': {} + backgroundColor: + (theme.vars || theme).palette[ownerState.color].light, + '&:hover': {}, } }, { props: ( @@ -33,14 +35,6 @@ const LinearProgressBar1 = styled('span', { style: { backgroundColor: 'currentColor' } - }, { - props: { - variant: 'buffer', - color: 'normal' - }, - style: { - backgroundColor: (theme.vars || theme).palette[ownerState.color].light - } }, { props: ( { @@ -66,21 +60,22 @@ const LinearProgressBar1 = styled('span', { }, { props: ( { - ownerState, - color + ownerState } - ) => ownerState.variant !== 'buffer' && color === 'inherit', + ) => ownerState.variant !== 'buffer', style: { - backgroundColor: 'currentColor' + backgroundColor: + (theme.vars || theme).palette[ownerState.color].main, } }, { props: ( { - ownerState + ownerState, + color } - ) => ownerState.variant !== 'buffer' && ownerState.color !== 'inherit', + ) => ownerState.variant !== 'buffer' && color === 'inherit', style: { - backgroundColor: (theme.vars || theme).palette[ownerState.color].main + backgroundColor: 'currentColor' } }] })); @@ -91,6 +86,7 @@ const ExpandMore = styled((props) => { })(({ theme }) => ({ + transform: 'rotate(180deg)', marginLeft: 'auto', transition: theme.transitions.create('transform', { duration: theme.transitions.duration.shortest, @@ -104,16 +100,7 @@ const ExpandMore = styled((props) => { style: { transform: 'rotate(0deg)' } - }, { - props: ( - { - expand - } - ) => !!expand, - style: { - transform: 'rotate(180deg)' - } - }], + }] })); const Main = styled('main', { diff --git a/packages/mui-codemod/src/v6.0.0/styled/test-cases/DynamicPropsStyled.actual.js b/packages/mui-codemod/src/v6.0.0/styled/test-cases/DynamicPropsStyled.actual.js new file mode 100644 index 00000000000000..b8d11f6823c183 --- /dev/null +++ b/packages/mui-codemod/src/v6.0.0/styled/test-cases/DynamicPropsStyled.actual.js @@ -0,0 +1,34 @@ +import { styled, alpha } from '@mui/material/styles'; + +const DemoToolbarRoot = styled('div', { + shouldForwardProp: (prop) => prop !== 'demoOptions' && prop !== 'openDemoSource', +})(({ theme, demoOptions, openDemoSource }) => [ + { + display: 'none', + [theme.breakpoints.up('sm')]: { + top: 0, + maxHeight: 50, + display: 'block', + marginTop: demoOptions.bg === 'inline' ? theme.spacing(1) : -1, + padding: theme.spacing(0.5, 1), + border: `1px solid ${(theme.vars || theme).palette.divider}`, + borderTopWidth: demoOptions.bg === 'inline' ? 1 : 0, + backgroundColor: alpha(theme.palette.grey[50], 0.2), + borderRadius: openDemoSource ? 0 : '0 0 12px 12px', + transition: theme.transitions.create('border-radius'), + ...(theme.direction === 'rtl' && { + left: theme.spacing(1), + }), + ...(theme.direction !== 'rtl' && { + right: theme.spacing(1), + }), + }, + }, + theme.applyDarkStyles({ + [theme.breakpoints.up('sm')]: { + backgroundColor: alpha(theme.palette.primaryDark[800], 0.2), + }, + }), +]); + +export default DemoToolbarRoot; diff --git a/packages/mui-codemod/src/v6.0.0/styled/test-cases/DynamicPropsStyled.expected.js b/packages/mui-codemod/src/v6.0.0/styled/test-cases/DynamicPropsStyled.expected.js new file mode 100644 index 00000000000000..842d7c80e5cc62 --- /dev/null +++ b/packages/mui-codemod/src/v6.0.0/styled/test-cases/DynamicPropsStyled.expected.js @@ -0,0 +1,65 @@ +import { styled, alpha } from '@mui/material/styles'; + +const DemoToolbarRoot = styled('div', { + shouldForwardProp: (prop) => prop !== 'demoOptions' && prop !== 'openDemoSource', +})(({ + theme +}) => [ + { + display: 'none', + [theme.breakpoints.up('sm')]: { + top: 0, + maxHeight: 50, + display: 'block', + marginTop: -1, + padding: theme.spacing(0.5, 1), + border: `1px solid ${(theme.vars || theme).palette.divider}`, + borderTopWidth: 0, + backgroundColor: alpha(theme.palette.grey[50], 0.2), + borderRadius: '0 0 12px 12px', + transition: theme.transitions.create('border-radius'), + ...theme.applyStyles("rtl", { + left: theme.spacing(1), + }), + ...theme.applyStyles("rtl", { + right: theme.spacing(1), + }), + }, + variants: [{ + props: { + bg: 'inline' + }, + style: { + [theme.breakpoints.up('sm')]: { + marginTop: theme.spacing(1) + } + } + }, { + props: { + bg: 'inline' + }, + style: { + [theme.breakpoints.up('sm')]: { + borderTopWidth: 1 + } + } + }, { + props: ( + { + openDemoSource + } + ) => openDemoSource, + style: { + [theme.breakpoints.up('sm')]: { + borderRadius: 0 + } + } + }] + }, + theme.applyDarkStyles({ + [theme.breakpoints.up('sm')]: { + backgroundColor: alpha(theme.palette.primaryDark[800], 0.2), + }, + }), +]); +export default DemoToolbarRoot; \ No newline at end of file diff --git a/packages/mui-codemod/src/v6.0.0/styled/test-cases/NestedSpread.expected.js b/packages/mui-codemod/src/v6.0.0/styled/test-cases/NestedSpread.expected.js index 36aec722aa4883..ce68cec9154a8f 100644 --- a/packages/mui-codemod/src/v6.0.0/styled/test-cases/NestedSpread.expected.js +++ b/packages/mui-codemod/src/v6.0.0/styled/test-cases/NestedSpread.expected.js @@ -26,6 +26,13 @@ const Component = styled('div')(({ }, }, } + }, { + props: { + edge: 'start' + }, + style: { + marginLeft: -12, + } }, { props: { edge: 'start', @@ -35,14 +42,11 @@ const Component = styled('div')(({ marginLeft: -3 } }, { - props: ( - { - edge, - ownerState - } - ) => edge === 'start' && ownerState.size !== 'small', + props: { + edge: 'end' + }, style: { - marginLeft: -12 + marginRight: -12, } }, { props: { @@ -52,16 +56,6 @@ const Component = styled('div')(({ style: { marginRight: -3 } - }, { - props: ( - { - edge, - ownerState - } - ) => edge === 'end' && ownerState.size !== 'small', - style: { - marginRight: -12 - } }, { props: ( { From d73c99c2ce9272d5fc8542371b28dc75a145ebab Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 15:34:19 +0530 Subject: [PATCH 14/65] Bump @testing-library/react to ^16.0.0 (#42664) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages-internal/test-utils/package.json | 2 +- packages/mui-base/package.json | 2 +- pnpm-lock.yaml | 20 ++++++++++++-------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/packages-internal/test-utils/package.json b/packages-internal/test-utils/package.json index 59fc9175839517..516cc35228a51c 100644 --- a/packages-internal/test-utils/package.json +++ b/packages-internal/test-utils/package.json @@ -39,7 +39,7 @@ "@emotion/react": "^11.11.4", "@mnajdova/enzyme-adapter-react-18": "^0.2.0", "@testing-library/dom": "^10.1.0", - "@testing-library/react": "^15.0.7", + "@testing-library/react": "^16.0.0", "chai": "^4.4.1", "chai-dom": "^1.12.0", "dom-accessibility-api": "^0.6.3", diff --git a/packages/mui-base/package.json b/packages/mui-base/package.json index 0c40c6b8bc6004..564a1ef02307c3 100644 --- a/packages/mui-base/package.json +++ b/packages/mui-base/package.json @@ -52,7 +52,7 @@ "@mui/internal-babel-macros": "workspace:^", "@mui/internal-test-utils": "workspace:^", "@mui/types": "workspace:^", - "@testing-library/react": "^15.0.7", + "@testing-library/react": "^16.0.0", "@testing-library/user-event": "^14.5.2", "@types/chai": "^4.3.16", "@types/prop-types": "^15.7.12", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2305189bc84236..81029a29a0b82b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1009,8 +1009,8 @@ importers: specifier: ^10.1.0 version: 10.1.0 '@testing-library/react': - specifier: ^15.0.7 - version: 15.0.7(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: ^16.0.0 + version: 16.0.0(@testing-library/dom@10.1.0)(@types/react-dom@18.3.0)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) chai: specifier: ^4.4.1 version: 4.4.1 @@ -1333,8 +1333,8 @@ importers: specifier: workspace:^ version: link:../../packages-internal/test-utils '@testing-library/react': - specifier: ^15.0.7 - version: 15.0.7(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: ^16.0.0 + version: 16.0.0(@testing-library/dom@10.1.0)(@types/react-dom@18.3.0)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@testing-library/user-event': specifier: ^14.5.2 version: 14.5.2(@testing-library/dom@10.1.0) @@ -5017,16 +5017,20 @@ packages: resolution: {integrity: sha512-wdsYKy5zupPyLCW2Je5DLHSxSfbIp6h80WoHOQc+RPtmPGA52O9x5MJEkv92Sjonpq+poOAtUKhh1kBGAXBrNA==} engines: {node: '>=18'} - '@testing-library/react@15.0.7': - resolution: {integrity: sha512-cg0RvEdD1TIhhkm1IeYMQxrzy0MtUNfa3minv4MjbgcYzJAZ7yD0i0lwoPOTPr+INtiXFezt2o8xMSnyHhEn2Q==} + '@testing-library/react@16.0.0': + resolution: {integrity: sha512-guuxUKRWQ+FgNX0h0NS0FIq3Q3uLtWVpBzcLOggmfMoUpgBnzBzvLLd4fbm6yS8ydJd94cIfY4yP9qUQjM2KwQ==} engines: {node: '>=18'} peerDependencies: + '@testing-library/dom': ^10.0.0 '@types/react': 18.2.55 + '@types/react-dom': 18.3.0 react: ^18.0.0 react-dom: ^18.0.0 peerDependenciesMeta: '@types/react': optional: true + '@types/react-dom': + optional: true '@testing-library/user-event@14.5.2': resolution: {integrity: sha512-YAh82Wh4TIrxYLmfGcixwD18oIjyC1pFQC2Y01F2lzV2HTMiYrI0nze0FD0ocB//CKS/7jIUgae+adPqxK5yCQ==} @@ -15785,15 +15789,15 @@ snapshots: lz-string: 1.5.0 pretty-format: 27.5.1 - '@testing-library/react@15.0.7(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@testing-library/react@16.0.0(@testing-library/dom@10.1.0)(@types/react-dom@18.3.0)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@testing-library/dom': 10.1.0 - '@types/react-dom': 18.3.0 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) optionalDependencies: '@types/react': 18.2.55 + '@types/react-dom': 18.3.0 '@testing-library/user-event@14.5.2(@testing-library/dom@10.1.0)': dependencies: From 8e1087f3c5152394c8ecc438a3ceeb61a768d2b5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 15:39:06 +0530 Subject: [PATCH 15/65] Bump nyc to ^17.0.0 (#42666) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 29 +++++++++++++++-------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 60ba0bb46e8aae..80a071c78895b7 100644 --- a/package.json +++ b/package.json @@ -173,7 +173,7 @@ "markdownlint-cli2": "^0.13.0", "mocha": "^10.4.0", "nx": "^19.3.0", - "nyc": "^15.1.0", + "nyc": "^17.0.0", "piscina": "^4.5.1", "postcss-styled-syntax": "^0.6.4", "prettier": "^3.3.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 81029a29a0b82b..f4b0b8fc6927a7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -270,8 +270,8 @@ importers: specifier: ^19.3.0 version: 19.3.0 nyc: - specifier: ^15.1.0 - version: 15.1.0 + specifier: ^17.0.0 + version: 17.0.0 piscina: specifier: ^4.5.1 version: 4.5.1 @@ -8469,14 +8469,14 @@ packages: resolution: {integrity: sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==} engines: {node: '>=8'} - istanbul-lib-instrument@4.0.3: - resolution: {integrity: sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==} - engines: {node: '>=8'} - istanbul-lib-instrument@5.2.0: resolution: {integrity: sha512-6Lthe1hqXHBNsqvgDzGO6l03XNeu3CrG4RqQ1KM9+l5+jNGpEJfIELx1NS3SEHmJQA8np/u+E4EPRKRiu6m19A==} engines: {node: '>=8'} + istanbul-lib-instrument@6.0.2: + resolution: {integrity: sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==} + engines: {node: '>=10'} + istanbul-lib-processinfo@2.0.3: resolution: {integrity: sha512-NkwHbo3E00oybX6NGJi6ar0B29vxyvNwoC7eJ4G4Yq28UfY758Hgn/heV8VRFhevPED4LXfFz0DQ8z/0kw9zMg==} engines: {node: '>=8'} @@ -9693,9 +9693,9 @@ packages: '@swc/core': optional: true - nyc@15.1.0: - resolution: {integrity: sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==} - engines: {node: '>=8.9'} + nyc@17.0.0: + resolution: {integrity: sha512-ISp44nqNCaPugLLGGfknzQwSwt10SSS5IMoPR7GLoMAyS18Iw5js8U7ga2VF9lYuMZ42gOHr3UddZw4WZltxKg==} + engines: {node: '>=18'} hasBin: true ob1@0.80.7: @@ -19921,22 +19921,23 @@ snapshots: dependencies: append-transform: 2.0.0 - istanbul-lib-instrument@4.0.3: + istanbul-lib-instrument@5.2.0: dependencies: '@babel/core': 7.24.7 + '@babel/parser': 7.24.7 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 semver: 6.3.1 transitivePeerDependencies: - supports-color - istanbul-lib-instrument@5.2.0: + istanbul-lib-instrument@6.0.2: dependencies: '@babel/core': 7.24.7 '@babel/parser': 7.24.7 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 - semver: 6.3.1 + semver: 7.6.0 transitivePeerDependencies: - supports-color @@ -21685,7 +21686,7 @@ snapshots: transitivePeerDependencies: - debug - nyc@15.1.0: + nyc@17.0.0: dependencies: '@istanbuljs/load-nyc-config': 1.1.0 '@istanbuljs/schema': 0.1.3 @@ -21699,7 +21700,7 @@ snapshots: glob: 7.2.3 istanbul-lib-coverage: 3.2.0 istanbul-lib-hook: 3.0.0 - istanbul-lib-instrument: 4.0.3 + istanbul-lib-instrument: 6.0.2 istanbul-lib-processinfo: 2.0.3 istanbul-lib-report: 3.0.0 istanbul-lib-source-maps: 4.0.1 From 79f94eb0dd2a5748d88df6d0205b856b48b70125 Mon Sep 17 00:00:00 2001 From: Siriwat K Date: Thu, 20 Jun 2024 17:22:54 +0700 Subject: [PATCH 16/65] [material-ui] Add `DefaultPropsProvider` for Pigment CSS integration (#42638) --- .../materialUi/projectSettings.ts | 6 +- .../muiSystem/projectSettings.ts | 4 +- .../rules/mui-name-matches-component-name.js | 13 +--- .../mui-name-matches-component-name.test.js | 53 +++------------- .../src/LoadingButton/LoadingButton.js | 7 +-- packages/mui-lab/src/zero-styled/index.ts | 8 +-- .../mui-material/src/Accordion/Accordion.js | 7 +-- .../src/AccordionActions/AccordionActions.js | 7 +-- .../src/AccordionDetails/AccordionDetails.js | 7 +-- .../src/AccordionSummary/AccordionSummary.js | 7 +-- packages/mui-material/src/Alert/Alert.js | 7 +-- .../mui-material/src/AlertTitle/AlertTitle.js | 7 +-- packages/mui-material/src/AppBar/AppBar.js | 7 +-- .../src/Autocomplete/Autocomplete.js | 7 +-- packages/mui-material/src/Avatar/Avatar.js | 7 +-- .../src/AvatarGroup/AvatarGroup.js | 7 +-- .../mui-material/src/Backdrop/Backdrop.js | 7 +-- packages/mui-material/src/Badge/Badge.js | 7 +-- .../src/BottomNavigation/BottomNavigation.js | 7 +-- .../BottomNavigationAction.js | 7 +-- .../src/Breadcrumbs/Breadcrumbs.js | 7 +-- packages/mui-material/src/Button/Button.js | 7 +-- .../mui-material/src/ButtonBase/ButtonBase.js | 7 +-- .../src/ButtonBase/TouchRipple.js | 7 +-- .../src/ButtonGroup/ButtonGroup.js | 7 +-- packages/mui-material/src/Card/Card.js | 7 +-- .../src/CardActionArea/CardActionArea.js | 7 +-- .../src/CardActions/CardActions.js | 7 +-- .../src/CardContent/CardContent.js | 7 +-- .../mui-material/src/CardHeader/CardHeader.js | 7 +-- .../mui-material/src/CardMedia/CardMedia.js | 7 +-- .../mui-material/src/Checkbox/Checkbox.js | 6 +- packages/mui-material/src/Chip/Chip.js | 7 +-- .../src/CircularProgress/CircularProgress.js | 7 +-- .../mui-material/src/Collapse/Collapse.js | 7 +-- .../DefaultPropsProvider.spec.tsx | 21 +++++++ .../DefaultPropsProvider.tsx | 39 ++++++++++++ .../src/DefaultPropsProvider/index.ts | 1 + packages/mui-material/src/Dialog/Dialog.js | 6 +- .../src/DialogActions/DialogActions.js | 7 +-- .../src/DialogContent/DialogContent.js | 7 +-- .../DialogContentText/DialogContentText.js | 7 +-- .../src/DialogTitle/DialogTitle.js | 7 +-- packages/mui-material/src/Divider/Divider.js | 7 +-- packages/mui-material/src/Drawer/Drawer.js | 7 +-- packages/mui-material/src/Fab/Fab.js | 6 +- .../src/FilledInput/FilledInput.js | 7 +-- .../src/FormControl/FormControl.js | 7 +-- .../src/FormControlLabel/FormControlLabel.js | 7 +-- .../mui-material/src/FormGroup/FormGroup.js | 7 +-- .../src/FormHelperText/FormHelperText.js | 7 +-- .../mui-material/src/FormLabel/FormLabel.js | 7 +-- packages/mui-material/src/Icon/Icon.js | 7 +-- .../mui-material/src/IconButton/IconButton.js | 7 +-- .../mui-material/src/ImageList/ImageList.js | 7 +-- .../src/ImageListItem/ImageListItem.js | 7 +-- .../src/ImageListItemBar/ImageListItemBar.js | 7 +-- packages/mui-material/src/Input/Input.js | 7 +-- .../src/InputAdornment/InputAdornment.js | 7 +-- .../mui-material/src/InputBase/InputBase.js | 7 +-- .../mui-material/src/InputLabel/InputLabel.js | 7 +-- .../src/LinearProgress/LinearProgress.js | 7 +-- packages/mui-material/src/Link/Link.js | 7 +-- packages/mui-material/src/List/List.js | 7 +-- .../mui-material/src/ListItem/ListItem.js | 7 +-- .../src/ListItemAvatar/ListItemAvatar.js | 7 +-- .../src/ListItemButton/ListItemButton.js | 7 +-- .../src/ListItemIcon/ListItemIcon.js | 7 +-- .../ListItemSecondaryAction.js | 7 +-- .../src/ListItemText/ListItemText.js | 7 +-- .../src/ListSubheader/ListSubheader.js | 7 +-- packages/mui-material/src/Menu/Menu.js | 7 +-- .../mui-material/src/MenuItem/MenuItem.js | 7 +-- .../src/MobileStepper/MobileStepper.js | 7 +-- packages/mui-material/src/Modal/Modal.js | 7 +-- .../src/OutlinedInput/OutlinedInput.js | 7 +-- .../mui-material/src/Pagination/Pagination.js | 6 +- .../src/PaginationItem/PaginationItem.js | 6 +- packages/mui-material/src/Paper/Paper.js | 7 +-- packages/mui-material/src/Popover/Popover.js | 7 +-- packages/mui-material/src/Radio/Radio.js | 6 +- packages/mui-material/src/Rating/Rating.js | 7 +-- .../mui-material/src/Skeleton/Skeleton.js | 7 +-- packages/mui-material/src/Slider/Slider.js | 7 +-- .../mui-material/src/Snackbar/Snackbar.js | 7 +-- .../src/SnackbarContent/SnackbarContent.js | 7 +-- .../mui-material/src/SpeedDial/SpeedDial.js | 7 +-- .../src/SpeedDialAction/SpeedDialAction.js | 7 +-- .../src/SpeedDialIcon/SpeedDialIcon.js | 7 +-- packages/mui-material/src/Step/Step.js | 7 +-- .../mui-material/src/StepButton/StepButton.js | 7 +-- .../src/StepConnector/StepConnector.js | 7 +-- .../src/StepContent/StepContent.js | 7 +-- .../mui-material/src/StepIcon/StepIcon.js | 7 +-- .../mui-material/src/StepLabel/StepLabel.js | 7 +-- packages/mui-material/src/Stepper/Stepper.js | 7 +-- packages/mui-material/src/SvgIcon/SvgIcon.js | 7 +-- .../src/SwipeableDrawer/SwipeableDrawer.js | 7 +-- packages/mui-material/src/Switch/Switch.js | 7 +-- packages/mui-material/src/Tab/Tab.js | 7 +-- .../src/TabScrollButton/TabScrollButton.js | 7 +-- packages/mui-material/src/Table/Table.js | 7 +-- .../mui-material/src/TableBody/TableBody.js | 7 +-- .../mui-material/src/TableCell/TableCell.js | 7 +-- .../src/TableContainer/TableContainer.js | 7 +-- .../src/TableFooter/TableFooter.js | 7 +-- .../mui-material/src/TableHead/TableHead.js | 7 +-- .../src/TablePagination/TablePagination.js | 7 +-- .../mui-material/src/TableRow/TableRow.js | 7 +-- .../src/TableSortLabel/TableSortLabel.js | 7 +-- packages/mui-material/src/Tabs/Tabs.js | 7 +-- .../mui-material/src/TextField/TextField.js | 7 +-- .../src/ToggleButton/ToggleButton.js | 7 +-- .../ToggleButtonGroup/ToggleButtonGroup.js | 7 +-- packages/mui-material/src/Toolbar/Toolbar.js | 7 +-- packages/mui-material/src/Tooltip/Tooltip.js | 7 +-- .../mui-material/src/Typography/Typography.js | 6 +- .../mui-material/src/zero-styled/index.tsx | 6 -- .../DefaultPropsProvider.tsx | 61 +++++++++++++++++++ .../src/DefaultPropsProvider/index.ts | 1 + .../src/ThemeProvider/ThemeProvider.js | 5 +- .../src/cssVars/createCssVarsProvider.test.js | 8 ++- 122 files changed, 479 insertions(+), 503 deletions(-) create mode 100644 packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.spec.tsx create mode 100644 packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.tsx create mode 100644 packages/mui-material/src/DefaultPropsProvider/index.ts create mode 100644 packages/mui-system/src/DefaultPropsProvider/DefaultPropsProvider.tsx create mode 100644 packages/mui-system/src/DefaultPropsProvider/index.ts diff --git a/packages/api-docs-builder-core/materialUi/projectSettings.ts b/packages/api-docs-builder-core/materialUi/projectSettings.ts index 18b7dcf6a5928a..ccac4f8f7dfd69 100644 --- a/packages/api-docs-builder-core/materialUi/projectSettings.ts +++ b/packages/api-docs-builder-core/materialUi/projectSettings.ts @@ -28,7 +28,11 @@ export const projectSettings: ProjectSettings = { getComponentInfo: getMaterialUiComponentInfo, translationLanguages: LANGUAGES, skipComponent(filename: string) { - return filename.match(/(ThemeProvider|CssVarsProvider|InitColorSchemeScript|Grid2)/) !== null; + return ( + filename.match( + /(ThemeProvider|CssVarsProvider|DefaultPropsProvider|InitColorSchemeScript|Grid2)/, + ) !== null + ); }, translationPagesDirectory: 'docs/translations/api-docs', generateClassName: generateUtilityClass, diff --git a/packages/api-docs-builder-core/muiSystem/projectSettings.ts b/packages/api-docs-builder-core/muiSystem/projectSettings.ts index b07151a3ed78b2..3acdc3b5a2e35c 100644 --- a/packages/api-docs-builder-core/muiSystem/projectSettings.ts +++ b/packages/api-docs-builder-core/muiSystem/projectSettings.ts @@ -24,7 +24,9 @@ export const projectSettings: ProjectSettings = { translationLanguages: LANGUAGES, skipComponent(filename) { return ( - filename.match(/(ThemeProvider|CssVarsProvider|GlobalStyles|InitColorSchemeScript)/) !== null + filename.match( + /(ThemeProvider|CssVarsProvider|DefaultPropsProvider|GlobalStyles|InitColorSchemeScript)/, + ) !== null ); }, translationPagesDirectory: 'docs/translations/api-docs', diff --git a/packages/eslint-plugin-material-ui/src/rules/mui-name-matches-component-name.js b/packages/eslint-plugin-material-ui/src/rules/mui-name-matches-component-name.js index 008258d91b249c..c42ff49235e974 100644 --- a/packages/eslint-plugin-material-ui/src/rules/mui-name-matches-component-name.js +++ b/packages/eslint-plugin-material-ui/src/rules/mui-name-matches-component-name.js @@ -68,18 +68,9 @@ const rule = { return { CallExpression(node) { - const isCreateUseThemePropsCall = node.callee.name === 'createUseThemeProps'; - if (isCreateUseThemePropsCall) { - if (!node.arguments.length) { - context.report({ node, messageId: 'noNameValue' }); - } else if (node.arguments[0].type !== 'Literal' || !node.arguments[0].value) { - context.report({ node: node.arguments[0], messageId: 'noNameValue' }); - } - } - let nameLiteral = null; - const isUseThemePropsCall = node.callee.name === 'useThemeProps'; - if (isUseThemePropsCall) { + const isUseDefaultPropsCall = node.callee.name === 'useDefaultProps'; + if (isUseDefaultPropsCall) { let isCalledFromCustomHook = false; let parent = node.parent; while (parent != null) { diff --git a/packages/eslint-plugin-material-ui/src/rules/mui-name-matches-component-name.test.js b/packages/eslint-plugin-material-ui/src/rules/mui-name-matches-component-name.test.js index b151a90806a1f4..fc3d04ff919a53 100644 --- a/packages/eslint-plugin-material-ui/src/rules/mui-name-matches-component-name.test.js +++ b/packages/eslint-plugin-material-ui/src/rules/mui-name-matches-component-name.test.js @@ -9,12 +9,12 @@ ruleTester.run('mui-name-matches-component-name', rule, { inProps: StaticDateRangePickerProps, ref: React.Ref, ) { - const props = useThemeProps({ props: inProps, name: 'MuiStaticDateRangePicker' }); + const props = useDefaultProps({ props: inProps, name: 'MuiStaticDateRangePicker' }); }); `, ` function CssBaseline(inProps) { - useThemeProps({ props: inProps, name: 'MuiCssBaseline' }); + useDefaultProps({ props: inProps, name: 'MuiCssBaseline' }); } `, ` @@ -32,7 +32,7 @@ ruleTester.run('mui-name-matches-component-name', rule, { ]; }, }), - useThemeProps: (inProps) => useThemeProps({ props: inProps, name: 'MuiContainer' }), + useDefaultProps: (inProps) => useDefaultProps({ props: inProps, name: 'MuiContainer' }), }); `, ` @@ -42,12 +42,9 @@ ruleTester.run('mui-name-matches-component-name', rule, { overridesResolver: (props, styles) => styles.root, }), componentName: 'MuiGrid2', - useThemeProps: (inProps) => useThemeProps({ props: inProps, name: 'MuiGrid2' }), + useDefaultProps: (inProps) => useDefaultProps({ props: inProps, name: 'MuiGrid2' }), }) as OverridableComponent; `, - ` - const useThemeProps = createUseThemeProps('MuiBadge'); - `, { code: ` const StaticDateRangePicker = React.forwardRef(function StaticDateRangePicker( @@ -62,7 +59,7 @@ ruleTester.run('mui-name-matches-component-name', rule, { { code: ` function useDatePickerDefaultizedProps(props, name) { - useThemeProps({ props, name }); + useDefaultProps({ props, name }); } `, options: [{ customHooks: ['useDatePickerDefaultizedProps'] }], @@ -75,7 +72,7 @@ ruleTester.run('mui-name-matches-component-name', rule, { inProps: StaticDateRangePickerProps, ref: React.Ref, ) { - const props = useThemeProps({ props: inProps, name: 'MuiPickersDateRangePicker' }); + const props = useDefaultProps({ props: inProps, name: 'MuiPickersDateRangePicker' }); }); `, errors: [ @@ -87,7 +84,7 @@ ruleTester.run('mui-name-matches-component-name', rule, { ], }, { - code: 'useThemeProps({ props: inProps })', + code: 'useDefaultProps({ props: inProps })', errors: [ { message: 'Unable to find `name` property. Did you forget to pass `name`?', @@ -96,7 +93,7 @@ ruleTester.run('mui-name-matches-component-name', rule, { ], }, { - code: 'useThemeProps({ props: inProps, name })', + code: 'useDefaultProps({ props: inProps, name })', errors: [ { message: @@ -106,7 +103,7 @@ ruleTester.run('mui-name-matches-component-name', rule, { ], }, { - code: "useThemeProps({ props: inProps, name: 'MuiPickersDateRangePicker' })", + code: "useDefaultProps({ props: inProps, name: 'MuiPickersDateRangePicker' })", errors: [{ message: 'Unable to find component for this call.', type: 'CallExpression' }], }, { @@ -145,37 +142,5 @@ ruleTester.run('mui-name-matches-component-name', rule, { }, ], }, - { - code: ` - const useThemeProps = createUseThemeProps(); - - const Badge = React.forwardRef(function Badge(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiBadge' }); - }); - `, - errors: [ - { - message: - 'Unable to resolve `name`. Please hardcode the `name` i.e. use a string literal.', - type: 'CallExpression', - }, - ], - }, - { - code: ` - const useThemeProps = createUseThemeProps({ name: 'MuiBadge' }); - - const Badge = React.forwardRef(function Badge(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiBadge' }); - }); - `, - errors: [ - { - message: - 'Unable to resolve `name`. Please hardcode the `name` i.e. use a string literal.', - type: 'ObjectExpression', - }, - ], - }, ], }); diff --git a/packages/mui-lab/src/LoadingButton/LoadingButton.js b/packages/mui-lab/src/LoadingButton/LoadingButton.js index b6fe4c50569242..13d5a9aec21df1 100644 --- a/packages/mui-lab/src/LoadingButton/LoadingButton.js +++ b/packages/mui-lab/src/LoadingButton/LoadingButton.js @@ -4,15 +4,14 @@ import PropTypes from 'prop-types'; import { chainPropTypes } from '@mui/utils'; import { capitalize, unstable_useId as useId } from '@mui/material/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; +import { useDefaultProps } from '@mui/material/DefaultPropsProvider'; import Button from '@mui/material/Button'; import { ButtonGroupContext } from '@mui/material/ButtonGroup'; import CircularProgress from '@mui/material/CircularProgress'; import resolveProps from '@mui/utils/resolveProps'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; import loadingButtonClasses, { getLoadingButtonUtilityClass } from './loadingButtonClasses'; -const useThemeProps = createUseThemeProps('MuiLoadingButton'); - const useUtilityClasses = (ownerState) => { const { loading, loadingPosition, classes } = ownerState; @@ -198,7 +197,7 @@ const LoadingButtonLoadingIndicator = styled('span', { const LoadingButton = React.forwardRef(function LoadingButton(inProps, ref) { const contextProps = React.useContext(ButtonGroupContext); const resolvedProps = resolveProps(contextProps, inProps); - const props = useThemeProps({ props: resolvedProps, name: 'MuiLoadingButton' }); + const props = useDefaultProps({ props: resolvedProps, name: 'MuiLoadingButton' }); const { children, disabled = false, diff --git a/packages/mui-lab/src/zero-styled/index.ts b/packages/mui-lab/src/zero-styled/index.ts index ac070a82614dfd..b13433b3704526 100644 --- a/packages/mui-lab/src/zero-styled/index.ts +++ b/packages/mui-lab/src/zero-styled/index.ts @@ -1,8 +1,2 @@ -import { useThemeProps } from '@mui/material/styles'; - +/* eslint-disable import/prefer-default-export */ export { styled } from '@mui/material/styles'; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function createUseThemeProps(name: string) { - return useThemeProps; -} diff --git a/packages/mui-material/src/Accordion/Accordion.js b/packages/mui-material/src/Accordion/Accordion.js index dfff92e9a797e7..6d38d0f05c4443 100644 --- a/packages/mui-material/src/Accordion/Accordion.js +++ b/packages/mui-material/src/Accordion/Accordion.js @@ -5,7 +5,8 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import chainPropTypes from '@mui/utils/chainPropTypes'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Collapse from '../Collapse'; import Paper from '../Paper'; import AccordionContext from './AccordionContext'; @@ -13,8 +14,6 @@ import useControlled from '../utils/useControlled'; import useSlot from '../utils/useSlot'; import accordionClasses, { getAccordionUtilityClass } from './accordionClasses'; -const useThemeProps = createUseThemeProps('MuiAccordion'); - const useUtilityClasses = (ownerState) => { const { classes, square, expanded, disabled, disableGutters } = ownerState; @@ -126,7 +125,7 @@ const AccordionRoot = styled(Paper, { ); const Accordion = React.forwardRef(function Accordion(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiAccordion' }); + const props = useDefaultProps({ props: inProps, name: 'MuiAccordion' }); const { children: childrenProp, className, diff --git a/packages/mui-material/src/AccordionActions/AccordionActions.js b/packages/mui-material/src/AccordionActions/AccordionActions.js index 48414535b5d490..df67d059a1d7d8 100644 --- a/packages/mui-material/src/AccordionActions/AccordionActions.js +++ b/packages/mui-material/src/AccordionActions/AccordionActions.js @@ -3,11 +3,10 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getAccordionActionsUtilityClass } from './accordionActionsClasses'; -const useThemeProps = createUseThemeProps('MuiAccordionActions'); - const useUtilityClasses = (ownerState) => { const { classes, disableSpacing } = ownerState; @@ -44,7 +43,7 @@ const AccordionActionsRoot = styled('div', { }); const AccordionActions = React.forwardRef(function AccordionActions(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiAccordionActions' }); + const props = useDefaultProps({ props: inProps, name: 'MuiAccordionActions' }); const { className, disableSpacing = false, ...other } = props; const ownerState = { ...props, disableSpacing }; diff --git a/packages/mui-material/src/AccordionDetails/AccordionDetails.js b/packages/mui-material/src/AccordionDetails/AccordionDetails.js index d49d13b141d3aa..bd07c757aad8ea 100644 --- a/packages/mui-material/src/AccordionDetails/AccordionDetails.js +++ b/packages/mui-material/src/AccordionDetails/AccordionDetails.js @@ -3,11 +3,10 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getAccordionDetailsUtilityClass } from './accordionDetailsClasses'; -const useThemeProps = createUseThemeProps('MuiAccordionDetails'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -27,7 +26,7 @@ const AccordionDetailsRoot = styled('div', { })); const AccordionDetails = React.forwardRef(function AccordionDetails(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiAccordionDetails' }); + const props = useDefaultProps({ props: inProps, name: 'MuiAccordionDetails' }); const { className, ...other } = props; const ownerState = props; const classes = useUtilityClasses(ownerState); diff --git a/packages/mui-material/src/AccordionSummary/AccordionSummary.js b/packages/mui-material/src/AccordionSummary/AccordionSummary.js index 6c9ed037c3bd7a..3f23fac82bf689 100644 --- a/packages/mui-material/src/AccordionSummary/AccordionSummary.js +++ b/packages/mui-material/src/AccordionSummary/AccordionSummary.js @@ -3,15 +3,14 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import ButtonBase from '../ButtonBase'; import AccordionContext from '../Accordion/AccordionContext'; import accordionSummaryClasses, { getAccordionSummaryUtilityClass, } from './accordionSummaryClasses'; -const useThemeProps = createUseThemeProps('MuiAccordionSummary'); - const useUtilityClasses = (ownerState) => { const { classes, expanded, disabled, disableGutters } = ownerState; @@ -101,7 +100,7 @@ const AccordionSummaryExpandIconWrapper = styled('div', { })); const AccordionSummary = React.forwardRef(function AccordionSummary(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiAccordionSummary' }); + const props = useDefaultProps({ props: inProps, name: 'MuiAccordionSummary' }); const { children, className, expandIcon, focusVisibleClassName, onClick, ...other } = props; const { disabled = false, disableGutters, expanded, toggle } = React.useContext(AccordionContext); diff --git a/packages/mui-material/src/Alert/Alert.js b/packages/mui-material/src/Alert/Alert.js index 824c3fcd1ecc35..b5f3de7861f3ee 100644 --- a/packages/mui-material/src/Alert/Alert.js +++ b/packages/mui-material/src/Alert/Alert.js @@ -4,7 +4,8 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import { darken, lighten } from '@mui/system/colorManipulator'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import useSlot from '../utils/useSlot'; import capitalize from '../utils/capitalize'; import Paper from '../Paper'; @@ -16,8 +17,6 @@ import ErrorOutlineIcon from '../internal/svg-icons/ErrorOutline'; import InfoOutlinedIcon from '../internal/svg-icons/InfoOutlined'; import CloseIcon from '../internal/svg-icons/Close'; -const useThemeProps = createUseThemeProps('MuiAlert'); - const useUtilityClasses = (ownerState) => { const { variant, color, severity, classes } = ownerState; @@ -157,7 +156,7 @@ const defaultIconMapping = { }; const Alert = React.forwardRef(function Alert(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiAlert' }); + const props = useDefaultProps({ props: inProps, name: 'MuiAlert' }); const { action, children, diff --git a/packages/mui-material/src/AlertTitle/AlertTitle.js b/packages/mui-material/src/AlertTitle/AlertTitle.js index 01d427e93b9a91..f8e6d0cb3711df 100644 --- a/packages/mui-material/src/AlertTitle/AlertTitle.js +++ b/packages/mui-material/src/AlertTitle/AlertTitle.js @@ -3,12 +3,11 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Typography from '../Typography'; import { getAlertTitleUtilityClass } from './alertTitleClasses'; -const useThemeProps = createUseThemeProps('MuiAlertTitle'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -31,7 +30,7 @@ const AlertTitleRoot = styled(Typography, { }); const AlertTitle = React.forwardRef(function AlertTitle(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiAlertTitle', }); diff --git a/packages/mui-material/src/AppBar/AppBar.js b/packages/mui-material/src/AppBar/AppBar.js index 0551398ba2ddd8..d1f60b6a9960d6 100644 --- a/packages/mui-material/src/AppBar/AppBar.js +++ b/packages/mui-material/src/AppBar/AppBar.js @@ -3,13 +3,12 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import Paper from '../Paper'; import { getAppBarUtilityClass } from './appBarClasses'; -const useThemeProps = createUseThemeProps('MuiAppBar'); - const useUtilityClasses = (ownerState) => { const { color, position, classes } = ownerState; @@ -161,7 +160,7 @@ const AppBarRoot = styled(Paper, { })); const AppBar = React.forwardRef(function AppBar(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiAppBar' }); + const props = useDefaultProps({ props: inProps, name: 'MuiAppBar' }); const { className, color = 'primary', diff --git a/packages/mui-material/src/Autocomplete/Autocomplete.js b/packages/mui-material/src/Autocomplete/Autocomplete.js index ec6e7d47ecd959..c8ba035f39ee56 100644 --- a/packages/mui-material/src/Autocomplete/Autocomplete.js +++ b/packages/mui-material/src/Autocomplete/Autocomplete.js @@ -18,13 +18,12 @@ import outlinedInputClasses from '../OutlinedInput/outlinedInputClasses'; import filledInputClasses from '../FilledInput/filledInputClasses'; import ClearIcon from '../internal/svg-icons/Close'; import ArrowDropDownIcon from '../internal/svg-icons/ArrowDropDown'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import autocompleteClasses, { getAutocompleteUtilityClass } from './autocompleteClasses'; import capitalize from '../utils/capitalize'; import useSlot from '../utils/useSlot'; -const useThemeProps = createUseThemeProps('MuiAutocomplete'); - const useUtilityClasses = (ownerState) => { const { classes, @@ -411,7 +410,7 @@ const AutocompleteGroupUl = styled('ul', { export { createFilterOptions }; const Autocomplete = React.forwardRef(function Autocomplete(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiAutocomplete' }); + const props = useDefaultProps({ props: inProps, name: 'MuiAutocomplete' }); /* eslint-disable @typescript-eslint/no-unused-vars */ const { diff --git a/packages/mui-material/src/Avatar/Avatar.js b/packages/mui-material/src/Avatar/Avatar.js index 30c2f794d52534..90425bcae320aa 100644 --- a/packages/mui-material/src/Avatar/Avatar.js +++ b/packages/mui-material/src/Avatar/Avatar.js @@ -3,13 +3,12 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Person from '../internal/svg-icons/Person'; import { getAvatarUtilityClass } from './avatarClasses'; import useSlot from '../utils/useSlot'; -const useThemeProps = createUseThemeProps('MuiAvatar'); - const useUtilityClasses = (ownerState) => { const { classes, variant, colorDefault } = ownerState; @@ -143,7 +142,7 @@ function useLoaded({ crossOrigin, referrerPolicy, src, srcSet }) { } const Avatar = React.forwardRef(function Avatar(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiAvatar' }); + const props = useDefaultProps({ props: inProps, name: 'MuiAvatar' }); const { alt, children: childrenProp, diff --git a/packages/mui-material/src/AvatarGroup/AvatarGroup.js b/packages/mui-material/src/AvatarGroup/AvatarGroup.js index ba3f229dde4b0f..507109723fb912 100644 --- a/packages/mui-material/src/AvatarGroup/AvatarGroup.js +++ b/packages/mui-material/src/AvatarGroup/AvatarGroup.js @@ -5,7 +5,8 @@ import { isFragment } from 'react-is'; import clsx from 'clsx'; import chainPropTypes from '@mui/utils/chainPropTypes'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Avatar, { avatarClasses } from '../Avatar'; import avatarGroupClasses, { getAvatarGroupUtilityClass } from './avatarGroupClasses'; import useSlot from '../utils/useSlot'; @@ -15,8 +16,6 @@ const SPACINGS = { medium: -8, }; -const useThemeProps = createUseThemeProps('MuiAlert'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -49,7 +48,7 @@ const AvatarGroupRoot = styled('div', { })); const AvatarGroup = React.forwardRef(function AvatarGroup(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiAvatarGroup', }); diff --git a/packages/mui-material/src/Backdrop/Backdrop.js b/packages/mui-material/src/Backdrop/Backdrop.js index 36f8378bfd5ecc..549666a047fd94 100644 --- a/packages/mui-material/src/Backdrop/Backdrop.js +++ b/packages/mui-material/src/Backdrop/Backdrop.js @@ -3,13 +3,12 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import useSlot from '../utils/useSlot'; import Fade from '../Fade'; import { getBackdropUtilityClass } from './backdropClasses'; -const useThemeProps = createUseThemeProps('MuiBackdrop'); - const useUtilityClasses = (ownerState) => { const { classes, invisible } = ownerState; @@ -50,7 +49,7 @@ const BackdropRoot = styled('div', { }); const Backdrop = React.forwardRef(function Backdrop(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiBackdrop' }); + const props = useDefaultProps({ props: inProps, name: 'MuiBackdrop' }); const { children, className, diff --git a/packages/mui-material/src/Badge/Badge.js b/packages/mui-material/src/Badge/Badge.js index 0750bffbdcf8cc..d3543f3c12715d 100644 --- a/packages/mui-material/src/Badge/Badge.js +++ b/packages/mui-material/src/Badge/Badge.js @@ -6,15 +6,14 @@ import usePreviousProps from '@mui/utils/usePreviousProps'; import composeClasses from '@mui/utils/composeClasses'; import { useBadge } from '@mui/base/useBadge'; import { useSlotProps } from '@mui/base/utils'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import badgeClasses, { getBadgeUtilityClass } from './badgeClasses'; const RADIUS_STANDARD = 10; const RADIUS_DOT = 4; -const useThemeProps = createUseThemeProps('MuiBadge'); - const useUtilityClasses = (ownerState) => { const { color, anchorOrigin, invisible, overlap, variant, classes = {} } = ownerState; @@ -240,7 +239,7 @@ const BadgeBadge = styled('span', { })); const Badge = React.forwardRef(function Badge(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiBadge' }); + const props = useDefaultProps({ props: inProps, name: 'MuiBadge' }); const { anchorOrigin: anchorOriginProp = { vertical: 'top', diff --git a/packages/mui-material/src/BottomNavigation/BottomNavigation.js b/packages/mui-material/src/BottomNavigation/BottomNavigation.js index 0d6ce8ed1f964e..976f43c61bd4ac 100755 --- a/packages/mui-material/src/BottomNavigation/BottomNavigation.js +++ b/packages/mui-material/src/BottomNavigation/BottomNavigation.js @@ -4,11 +4,10 @@ import { isFragment } from 'react-is'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getBottomNavigationUtilityClass } from './bottomNavigationClasses'; -const useThemeProps = createUseThemeProps('MuiBottomNavigation'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -31,7 +30,7 @@ const BottomNavigationRoot = styled('div', { })); const BottomNavigation = React.forwardRef(function BottomNavigation(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiBottomNavigation' }); + const props = useDefaultProps({ props: inProps, name: 'MuiBottomNavigation' }); const { children, className, diff --git a/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.js b/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.js index e583152be06596..e47b9c83e1890c 100644 --- a/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.js +++ b/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.js @@ -3,15 +3,14 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import ButtonBase from '../ButtonBase'; import unsupportedProp from '../utils/unsupportedProp'; import bottomNavigationActionClasses, { getBottomNavigationActionUtilityClass, } from './bottomNavigationActionClasses'; -const useThemeProps = createUseThemeProps('MuiBottomNavigationAction'); - const useUtilityClasses = (ownerState) => { const { classes, showLabel, selected } = ownerState; @@ -85,7 +84,7 @@ const BottomNavigationActionLabel = styled('span', { })); const BottomNavigationAction = React.forwardRef(function BottomNavigationAction(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiBottomNavigationAction' }); + const props = useDefaultProps({ props: inProps, name: 'MuiBottomNavigationAction' }); const { className, icon, diff --git a/packages/mui-material/src/Breadcrumbs/Breadcrumbs.js b/packages/mui-material/src/Breadcrumbs/Breadcrumbs.js index ae105db224e248..45a83fbbe6c62c 100644 --- a/packages/mui-material/src/Breadcrumbs/Breadcrumbs.js +++ b/packages/mui-material/src/Breadcrumbs/Breadcrumbs.js @@ -6,13 +6,12 @@ import clsx from 'clsx'; import integerPropType from '@mui/utils/integerPropType'; import { useSlotProps } from '@mui/base/utils'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Typography from '../Typography'; import BreadcrumbCollapsed from './BreadcrumbCollapsed'; import breadcrumbsClasses, { getBreadcrumbsUtilityClass } from './breadcrumbsClasses'; -const useThemeProps = createUseThemeProps('MuiBreadcrumbs'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -81,7 +80,7 @@ function insertSeparators(items, className, separator, ownerState) { } const Breadcrumbs = React.forwardRef(function Breadcrumbs(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiBreadcrumbs' }); + const props = useDefaultProps({ props: inProps, name: 'MuiBreadcrumbs' }); const { children, className, diff --git a/packages/mui-material/src/Button/Button.js b/packages/mui-material/src/Button/Button.js index 94d8909fa339ab..a61970c0e6ec66 100644 --- a/packages/mui-material/src/Button/Button.js +++ b/packages/mui-material/src/Button/Button.js @@ -6,15 +6,14 @@ import resolveProps from '@mui/utils/resolveProps'; import composeClasses from '@mui/utils/composeClasses'; import { alpha } from '@mui/system/colorManipulator'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import ButtonBase from '../ButtonBase'; import capitalize from '../utils/capitalize'; import buttonClasses, { getButtonUtilityClass } from './buttonClasses'; import ButtonGroupContext from '../ButtonGroup/ButtonGroupContext'; import ButtonGroupButtonContext from '../ButtonGroup/ButtonGroupButtonContext'; -const useThemeProps = createUseThemeProps('MuiButton'); - const useUtilityClasses = (ownerState) => { const { color, disableElevation, fullWidth, size, variant, classes } = ownerState; @@ -351,7 +350,7 @@ const Button = React.forwardRef(function Button(inProps, ref) { const contextProps = React.useContext(ButtonGroupContext); const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext); const resolvedProps = resolveProps(contextProps, inProps); - const props = useThemeProps({ props: resolvedProps, name: 'MuiButton' }); + const props = useDefaultProps({ props: resolvedProps, name: 'MuiButton' }); const { children, color = 'primary', diff --git a/packages/mui-material/src/ButtonBase/ButtonBase.js b/packages/mui-material/src/ButtonBase/ButtonBase.js index e97439c2ae8fc5..e2dc37b66a9821 100644 --- a/packages/mui-material/src/ButtonBase/ButtonBase.js +++ b/packages/mui-material/src/ButtonBase/ButtonBase.js @@ -5,15 +5,14 @@ import clsx from 'clsx'; import refType from '@mui/utils/refType'; import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import useForkRef from '../utils/useForkRef'; import useEventCallback from '../utils/useEventCallback'; import useIsFocusVisible from '../utils/useIsFocusVisible'; import TouchRipple from './TouchRipple'; import buttonBaseClasses, { getButtonBaseUtilityClass } from './buttonBaseClasses'; -const useThemeProps = createUseThemeProps('MuiButtonBase'); - const useUtilityClasses = (ownerState) => { const { disabled, focusVisible, focusVisibleClassName, classes } = ownerState; @@ -74,7 +73,7 @@ export const ButtonBaseRoot = styled('button', { * It contains a load of style reset and some focus/ripple logic. */ const ButtonBase = React.forwardRef(function ButtonBase(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiButtonBase' }); + const props = useDefaultProps({ props: inProps, name: 'MuiButtonBase' }); const { action, centerRipple = false, diff --git a/packages/mui-material/src/ButtonBase/TouchRipple.js b/packages/mui-material/src/ButtonBase/TouchRipple.js index 0d4fc84c9aa6ac..ae7fe8c85ec36f 100644 --- a/packages/mui-material/src/ButtonBase/TouchRipple.js +++ b/packages/mui-material/src/ButtonBase/TouchRipple.js @@ -4,12 +4,11 @@ import PropTypes from 'prop-types'; import { TransitionGroup } from 'react-transition-group'; import clsx from 'clsx'; import useTimeout from '@mui/utils/useTimeout'; -import { keyframes, styled, createUseThemeProps } from '../zero-styled'; +import { keyframes, styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Ripple from './Ripple'; import touchRippleClasses from './touchRippleClasses'; -const useThemeProps = createUseThemeProps('MuiTouchRipple'); - const DURATION = 550; export const DELAY_RIPPLE = 80; @@ -120,7 +119,7 @@ export const TouchRippleRipple = styled(Ripple, { * TODO v5: Make private */ const TouchRipple = React.forwardRef(function TouchRipple(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTouchRipple' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTouchRipple' }); const { center: centerProp = false, classes = {}, className, ...other } = props; const [ripples, setRipples] = React.useState([]); diff --git a/packages/mui-material/src/ButtonGroup/ButtonGroup.js b/packages/mui-material/src/ButtonGroup/ButtonGroup.js index ad8c14004b9847..0486a079366ffe 100644 --- a/packages/mui-material/src/ButtonGroup/ButtonGroup.js +++ b/packages/mui-material/src/ButtonGroup/ButtonGroup.js @@ -6,13 +6,12 @@ import composeClasses from '@mui/utils/composeClasses'; import { alpha } from '@mui/system/colorManipulator'; import getValidReactChildren from '@mui/utils/getValidReactChildren'; import capitalize from '../utils/capitalize'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import buttonGroupClasses, { getButtonGroupUtilityClass } from './buttonGroupClasses'; import ButtonGroupContext from './ButtonGroupContext'; import ButtonGroupButtonContext from './ButtonGroupButtonContext'; -const useThemeProps = createUseThemeProps('MuiButtonGroup'); - const overridesResolver = (props, styles) => { const { ownerState } = props; @@ -247,7 +246,7 @@ const ButtonGroupRoot = styled('div', { })); const ButtonGroup = React.forwardRef(function ButtonGroup(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiButtonGroup' }); + const props = useDefaultProps({ props: inProps, name: 'MuiButtonGroup' }); const { children, className, diff --git a/packages/mui-material/src/Card/Card.js b/packages/mui-material/src/Card/Card.js index 6491c1499e6a0b..4d658cc688800c 100644 --- a/packages/mui-material/src/Card/Card.js +++ b/packages/mui-material/src/Card/Card.js @@ -4,12 +4,11 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import chainPropTypes from '@mui/utils/chainPropTypes'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Paper from '../Paper'; import { getCardUtilityClass } from './cardClasses'; -const useThemeProps = createUseThemeProps('MuiCard'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -29,7 +28,7 @@ const CardRoot = styled(Paper, { }); const Card = React.forwardRef(function Card(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiCard', }); diff --git a/packages/mui-material/src/CardActionArea/CardActionArea.js b/packages/mui-material/src/CardActionArea/CardActionArea.js index 4100818481d347..f6b5168e3ccc4b 100644 --- a/packages/mui-material/src/CardActionArea/CardActionArea.js +++ b/packages/mui-material/src/CardActionArea/CardActionArea.js @@ -3,12 +3,11 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import cardActionAreaClasses, { getCardActionAreaUtilityClass } from './cardActionAreaClasses'; import ButtonBase from '../ButtonBase'; -const useThemeProps = createUseThemeProps('MuiCardActionArea'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -61,7 +60,7 @@ const CardActionAreaFocusHighlight = styled('span', { })); const CardActionArea = React.forwardRef(function CardActionArea(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiCardActionArea' }); + const props = useDefaultProps({ props: inProps, name: 'MuiCardActionArea' }); const { children, className, focusVisibleClassName, ...other } = props; const ownerState = props; diff --git a/packages/mui-material/src/CardActions/CardActions.js b/packages/mui-material/src/CardActions/CardActions.js index 9d320165213fd3..5213656597c565 100644 --- a/packages/mui-material/src/CardActions/CardActions.js +++ b/packages/mui-material/src/CardActions/CardActions.js @@ -3,11 +3,10 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getCardActionsUtilityClass } from './cardActionsClasses'; -const useThemeProps = createUseThemeProps('MuiCardActions'); - const useUtilityClasses = (ownerState) => { const { classes, disableSpacing } = ownerState; @@ -43,7 +42,7 @@ const CardActionsRoot = styled('div', { }); const CardActions = React.forwardRef(function CardActions(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiCardActions', }); diff --git a/packages/mui-material/src/CardContent/CardContent.js b/packages/mui-material/src/CardContent/CardContent.js index 860be046db369d..b556fdcd127f9d 100644 --- a/packages/mui-material/src/CardContent/CardContent.js +++ b/packages/mui-material/src/CardContent/CardContent.js @@ -3,11 +3,10 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getCardContentUtilityClass } from './cardContentClasses'; -const useThemeProps = createUseThemeProps('MuiCardContent'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -30,7 +29,7 @@ const CardContentRoot = styled('div', { }); const CardContent = React.forwardRef(function CardContent(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiCardContent', }); diff --git a/packages/mui-material/src/CardHeader/CardHeader.js b/packages/mui-material/src/CardHeader/CardHeader.js index 694784cca9a52e..1869a47bafd733 100644 --- a/packages/mui-material/src/CardHeader/CardHeader.js +++ b/packages/mui-material/src/CardHeader/CardHeader.js @@ -4,11 +4,10 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import Typography from '../Typography'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import cardHeaderClasses, { getCardHeaderUtilityClass } from './cardHeaderClasses'; -const useThemeProps = createUseThemeProps('MuiCardHeader'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -69,7 +68,7 @@ const CardHeaderContent = styled('div', { }); const CardHeader = React.forwardRef(function CardHeader(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiCardHeader' }); + const props = useDefaultProps({ props: inProps, name: 'MuiCardHeader' }); const { action, avatar, diff --git a/packages/mui-material/src/CardMedia/CardMedia.js b/packages/mui-material/src/CardMedia/CardMedia.js index 94d3746941c149..9a11d422b579db 100644 --- a/packages/mui-material/src/CardMedia/CardMedia.js +++ b/packages/mui-material/src/CardMedia/CardMedia.js @@ -4,11 +4,10 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import chainPropTypes from '@mui/utils/chainPropTypes'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getCardMediaUtilityClass } from './cardMediaClasses'; -const useThemeProps = createUseThemeProps('MuiCardMedia'); - const useUtilityClasses = (ownerState) => { const { classes, isMediaComponent, isImageComponent } = ownerState; @@ -53,7 +52,7 @@ const MEDIA_COMPONENTS = ['video', 'audio', 'picture', 'iframe', 'img']; const IMAGE_COMPONENTS = ['picture', 'img']; const CardMedia = React.forwardRef(function CardMedia(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiCardMedia' }); + const props = useDefaultProps({ props: inProps, name: 'MuiCardMedia' }); const { children, className, component = 'div', image, src, style, ...other } = props; const isMediaComponent = MEDIA_COMPONENTS.indexOf(component) !== -1; diff --git a/packages/mui-material/src/Checkbox/Checkbox.js b/packages/mui-material/src/Checkbox/Checkbox.js index 3ee5d2c856ede9..9f76fc068f4d78 100644 --- a/packages/mui-material/src/Checkbox/Checkbox.js +++ b/packages/mui-material/src/Checkbox/Checkbox.js @@ -12,9 +12,9 @@ import IndeterminateCheckBoxIcon from '../internal/svg-icons/IndeterminateCheckB import capitalize from '../utils/capitalize'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; import checkboxClasses, { getCheckboxUtilityClass } from './checkboxClasses'; -import { createUseThemeProps, styled } from '../zero-styled'; +import { styled } from '../zero-styled'; -const useThemeProps = createUseThemeProps('MuiCheckbox'); +import { useDefaultProps } from '../DefaultPropsProvider'; const useUtilityClasses = (ownerState) => { const { classes, indeterminate, color, size } = ownerState; @@ -108,7 +108,7 @@ const defaultIcon = ; const defaultIndeterminateIcon = ; const Checkbox = React.forwardRef(function Checkbox(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiCheckbox' }); + const props = useDefaultProps({ props: inProps, name: 'MuiCheckbox' }); const { checkedIcon = defaultCheckedIcon, color = 'primary', diff --git a/packages/mui-material/src/Chip/Chip.js b/packages/mui-material/src/Chip/Chip.js index 6420d7a9da1065..9b42fef06e4edb 100644 --- a/packages/mui-material/src/Chip/Chip.js +++ b/packages/mui-material/src/Chip/Chip.js @@ -9,11 +9,10 @@ import useForkRef from '../utils/useForkRef'; import unsupportedProp from '../utils/unsupportedProp'; import capitalize from '../utils/capitalize'; import ButtonBase from '../ButtonBase'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import chipClasses, { getChipUtilityClass } from './chipClasses'; -const useThemeProps = createUseThemeProps('MuiChip'); - const useUtilityClasses = (ownerState) => { const { classes, disabled, size, color, iconColor, onDelete, clickable, variant } = ownerState; @@ -378,7 +377,7 @@ function isDeleteKeyboardEvent(keyboardEvent) { * Chips represent complex entities in small blocks, such as a contact. */ const Chip = React.forwardRef(function Chip(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiChip' }); + const props = useDefaultProps({ props: inProps, name: 'MuiChip' }); const { avatar: avatarProp, className, diff --git a/packages/mui-material/src/CircularProgress/CircularProgress.js b/packages/mui-material/src/CircularProgress/CircularProgress.js index 9be1a8db6b74bd..68fa5a0e4143eb 100644 --- a/packages/mui-material/src/CircularProgress/CircularProgress.js +++ b/packages/mui-material/src/CircularProgress/CircularProgress.js @@ -4,12 +4,11 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import chainPropTypes from '@mui/utils/chainPropTypes'; import composeClasses from '@mui/utils/composeClasses'; -import { keyframes, css, createUseThemeProps, styled } from '../zero-styled'; +import { keyframes, css, styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import { getCircularProgressUtilityClass } from './circularProgressClasses'; -const useThemeProps = createUseThemeProps('MuiCircularProgress'); - const SIZE = 44; const circularRotateKeyframe = keyframes` @@ -170,7 +169,7 @@ const CircularProgressCircle = styled('circle', { * attribute to `true` on that region until it has finished loading. */ const CircularProgress = React.forwardRef(function CircularProgress(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiCircularProgress' }); + const props = useDefaultProps({ props: inProps, name: 'MuiCircularProgress' }); const { className, color = 'primary', diff --git a/packages/mui-material/src/Collapse/Collapse.js b/packages/mui-material/src/Collapse/Collapse.js index dfbd74726d4e00..dcb6dd2ec21da0 100644 --- a/packages/mui-material/src/Collapse/Collapse.js +++ b/packages/mui-material/src/Collapse/Collapse.js @@ -6,14 +6,13 @@ import { Transition } from 'react-transition-group'; import useTimeout from '@mui/utils/useTimeout'; import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps, useTheme } from '../zero-styled'; +import { styled, useTheme } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { duration } from '../styles/createTransitions'; import { getTransitionProps } from '../transitions/utils'; import { useForkRef } from '../utils'; import { getCollapseUtilityClass } from './collapseClasses'; -const useThemeProps = createUseThemeProps('MuiCollapse'); - const useUtilityClasses = (ownerState) => { const { orientation, classes } = ownerState; @@ -133,7 +132,7 @@ const CollapseWrapperInner = styled('div', { * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally. */ const Collapse = React.forwardRef(function Collapse(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiCollapse' }); + const props = useDefaultProps({ props: inProps, name: 'MuiCollapse' }); const { addEndListener, children, diff --git a/packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.spec.tsx b/packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.spec.tsx new file mode 100644 index 00000000000000..e2746d2c6db9e6 --- /dev/null +++ b/packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.spec.tsx @@ -0,0 +1,21 @@ +import * as React from 'react'; +import DefaultPropsProvider from '@mui/material/DefaultPropsProvider'; + +function CustomComponent() { + return null; +} + +; + +; diff --git a/packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.tsx b/packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.tsx new file mode 100644 index 00000000000000..ecfd3b1c56df14 --- /dev/null +++ b/packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.tsx @@ -0,0 +1,39 @@ +'use client'; +import * as React from 'react'; +import PropTypes from 'prop-types'; +import SystemDefaultPropsProvider, { + useDefaultProps as useSystemDefaultProps, +} from '@mui/system/DefaultPropsProvider'; +import type { ComponentsPropsList } from '../styles/props'; + +function DefaultPropsProvider( + props: React.PropsWithChildren<{ + value: { [P in keyof ComponentsPropsList]?: Partial }; + }>, +) { + return ; +} + +DefaultPropsProvider.propTypes /* remove-proptypes */ = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * @ignore + */ + children: PropTypes.node, + /** + * @ignore + */ + value: PropTypes.object.isRequired, +} as any; + +export default DefaultPropsProvider; + +export function useDefaultProps>(params: { + props: Props; + name: string; +}) { + return useSystemDefaultProps(params) as Props; +} diff --git a/packages/mui-material/src/DefaultPropsProvider/index.ts b/packages/mui-material/src/DefaultPropsProvider/index.ts new file mode 100644 index 00000000000000..646b9a27128699 --- /dev/null +++ b/packages/mui-material/src/DefaultPropsProvider/index.ts @@ -0,0 +1 @@ +export { default, useDefaultProps } from './DefaultPropsProvider'; diff --git a/packages/mui-material/src/Dialog/Dialog.js b/packages/mui-material/src/Dialog/Dialog.js index 0988a7c8818508..9ada355c5155aa 100644 --- a/packages/mui-material/src/Dialog/Dialog.js +++ b/packages/mui-material/src/Dialog/Dialog.js @@ -11,9 +11,9 @@ import Paper from '../Paper'; import dialogClasses, { getDialogUtilityClass } from './dialogClasses'; import DialogContext from './DialogContext'; import Backdrop from '../Backdrop'; -import { styled, createUseThemeProps, useTheme } from '../zero-styled'; +import { styled, useTheme } from '../zero-styled'; -const useThemeProps = createUseThemeProps('MuiDialog'); +import { useDefaultProps } from '../DefaultPropsProvider'; const DialogBackdrop = styled(Backdrop, { name: 'MuiDialog', @@ -203,7 +203,7 @@ const DialogPaper = styled(Paper, { * Dialogs are overlaid modal paper based components with a backdrop. */ const Dialog = React.forwardRef(function Dialog(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiDialog' }); + const props = useDefaultProps({ props: inProps, name: 'MuiDialog' }); const theme = useTheme(); const defaultTransitionDuration = { enter: theme.transitions.duration.enteringScreen, diff --git a/packages/mui-material/src/DialogActions/DialogActions.js b/packages/mui-material/src/DialogActions/DialogActions.js index b57f1dab955c8d..8e1b730bc4c096 100644 --- a/packages/mui-material/src/DialogActions/DialogActions.js +++ b/packages/mui-material/src/DialogActions/DialogActions.js @@ -3,11 +3,10 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getDialogActionsUtilityClass } from './dialogActionsClasses'; -const useThemeProps = createUseThemeProps('MuiDialogActions'); - const useUtilityClasses = (ownerState) => { const { classes, disableSpacing } = ownerState; @@ -45,7 +44,7 @@ const DialogActionsRoot = styled('div', { }); const DialogActions = React.forwardRef(function DialogActions(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiDialogActions', }); diff --git a/packages/mui-material/src/DialogContent/DialogContent.js b/packages/mui-material/src/DialogContent/DialogContent.js index 2a9d222ef44c2b..93c017300eb144 100644 --- a/packages/mui-material/src/DialogContent/DialogContent.js +++ b/packages/mui-material/src/DialogContent/DialogContent.js @@ -3,12 +3,11 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getDialogContentUtilityClass } from './dialogContentClasses'; import dialogTitleClasses from '../DialogTitle/dialogTitleClasses'; -const useThemeProps = createUseThemeProps('MuiDialogContent'); - const useUtilityClasses = (ownerState) => { const { classes, dividers } = ownerState; @@ -54,7 +53,7 @@ const DialogContentRoot = styled('div', { })); const DialogContent = React.forwardRef(function DialogContent(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiDialogContent', }); diff --git a/packages/mui-material/src/DialogContentText/DialogContentText.js b/packages/mui-material/src/DialogContentText/DialogContentText.js index ebb915bb144f50..359a7000387e1c 100644 --- a/packages/mui-material/src/DialogContentText/DialogContentText.js +++ b/packages/mui-material/src/DialogContentText/DialogContentText.js @@ -4,12 +4,11 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Typography from '../Typography'; import { getDialogContentTextUtilityClass } from './dialogContentTextClasses'; -const useThemeProps = createUseThemeProps('MuiDialogContentText'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -33,7 +32,7 @@ const DialogContentTextRoot = styled(Typography, { })({}); const DialogContentText = React.forwardRef(function DialogContentText(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiDialogContentText' }); + const props = useDefaultProps({ props: inProps, name: 'MuiDialogContentText' }); const { children, className, ...ownerState } = props; const classes = useUtilityClasses(ownerState); diff --git a/packages/mui-material/src/DialogTitle/DialogTitle.js b/packages/mui-material/src/DialogTitle/DialogTitle.js index 9c59a9e706d32c..0f2b12d85caacb 100644 --- a/packages/mui-material/src/DialogTitle/DialogTitle.js +++ b/packages/mui-material/src/DialogTitle/DialogTitle.js @@ -4,12 +4,11 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import Typography from '../Typography'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getDialogTitleUtilityClass } from './dialogTitleClasses'; import DialogContext from '../Dialog/DialogContext'; -const useThemeProps = createUseThemeProps('MuiDialogTitle'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -30,7 +29,7 @@ const DialogTitleRoot = styled(Typography, { }); const DialogTitle = React.forwardRef(function DialogTitle(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiDialogTitle', }); diff --git a/packages/mui-material/src/Divider/Divider.js b/packages/mui-material/src/Divider/Divider.js index 986b39f01b61af..906b8c8c36f0d5 100644 --- a/packages/mui-material/src/Divider/Divider.js +++ b/packages/mui-material/src/Divider/Divider.js @@ -4,11 +4,10 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import { alpha } from '@mui/system/colorManipulator'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getDividerUtilityClass } from './dividerClasses'; -const useThemeProps = createUseThemeProps('MuiDivider'); - const useUtilityClasses = (ownerState) => { const { absolute, children, classes, flexItem, light, orientation, textAlign, variant } = ownerState; @@ -216,7 +215,7 @@ const DividerWrapper = styled('span', { })); const Divider = React.forwardRef(function Divider(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiDivider' }); + const props = useDefaultProps({ props: inProps, name: 'MuiDivider' }); const { absolute = false, children, diff --git a/packages/mui-material/src/Drawer/Drawer.js b/packages/mui-material/src/Drawer/Drawer.js index 45f7b9bbb2af61..7973cbbea62aae 100644 --- a/packages/mui-material/src/Drawer/Drawer.js +++ b/packages/mui-material/src/Drawer/Drawer.js @@ -10,11 +10,10 @@ import Slide from '../Slide'; import Paper from '../Paper'; import capitalize from '../utils/capitalize'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; -import { styled, createUseThemeProps, useTheme } from '../zero-styled'; +import { styled, useTheme } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getDrawerUtilityClass } from './drawerClasses'; -const useThemeProps = createUseThemeProps('MuiDrawer'); - const overridesResolver = (props, styles) => { const { ownerState } = props; @@ -180,7 +179,7 @@ export function getAnchor({ direction }, anchor) { * when `variant="temporary"` is set. */ const Drawer = React.forwardRef(function Drawer(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiDrawer' }); + const props = useDefaultProps({ props: inProps, name: 'MuiDrawer' }); const theme = useTheme(); const isRtl = useRtl(); const defaultTransitionDuration = { diff --git a/packages/mui-material/src/Fab/Fab.js b/packages/mui-material/src/Fab/Fab.js index cdb560dd8c09d7..71da7157e83527 100644 --- a/packages/mui-material/src/Fab/Fab.js +++ b/packages/mui-material/src/Fab/Fab.js @@ -7,9 +7,9 @@ import ButtonBase from '../ButtonBase'; import capitalize from '../utils/capitalize'; import fabClasses, { getFabUtilityClass } from './fabClasses'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; -const useThemeProps = createUseThemeProps('MuiFab'); +import { useDefaultProps } from '../DefaultPropsProvider'; const useUtilityClasses = (ownerState) => { const { color, variant, classes, size } = ownerState; @@ -163,7 +163,7 @@ const FabRoot = styled(ButtonBase, { ); const Fab = React.forwardRef(function Fab(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiFab' }); + const props = useDefaultProps({ props: inProps, name: 'MuiFab' }); const { children, className, diff --git a/packages/mui-material/src/FilledInput/FilledInput.js b/packages/mui-material/src/FilledInput/FilledInput.js index 92e49730039934..fb0a867204b7d6 100644 --- a/packages/mui-material/src/FilledInput/FilledInput.js +++ b/packages/mui-material/src/FilledInput/FilledInput.js @@ -6,7 +6,8 @@ import PropTypes from 'prop-types'; import composeClasses from '@mui/utils/composeClasses'; import InputBase from '../InputBase'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import filledInputClasses, { getFilledInputUtilityClass } from './filledInputClasses'; import { rootOverridesResolver as inputBaseRootOverridesResolver, @@ -16,8 +17,6 @@ import { } from '../InputBase/InputBase'; import { capitalize } from '../utils'; -const useThemeProps = createUseThemeProps('MuiFilledInput'); - const useUtilityClasses = (ownerState) => { const { classes, disableUnderline, startAdornment, endAdornment, size, hiddenLabel, multiline } = ownerState; @@ -270,7 +269,7 @@ const FilledInputInput = styled(InputBaseInput, { })); const FilledInput = React.forwardRef(function FilledInput(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiFilledInput' }); + const props = useDefaultProps({ props: inProps, name: 'MuiFilledInput' }); const { disableUnderline = false, diff --git a/packages/mui-material/src/FormControl/FormControl.js b/packages/mui-material/src/FormControl/FormControl.js index e4b79ab62b9ecf..e9d5d01b773a4d 100644 --- a/packages/mui-material/src/FormControl/FormControl.js +++ b/packages/mui-material/src/FormControl/FormControl.js @@ -3,15 +3,14 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { isFilled, isAdornedStart } from '../InputBase/utils'; import capitalize from '../utils/capitalize'; import isMuiElement from '../utils/isMuiElement'; import FormControlContext from './FormControlContext'; import { getFormControlUtilityClasses } from './formControlClasses'; -const useThemeProps = createUseThemeProps('MuiFormControl'); - const useUtilityClasses = (ownerState) => { const { classes, margin, fullWidth } = ownerState; const slots = { @@ -90,7 +89,7 @@ const FormControlRoot = styled('div', { * For instance, only one input can be focused at the same time, the state shouldn't be shared. */ const FormControl = React.forwardRef(function FormControl(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiFormControl' }); + const props = useDefaultProps({ props: inProps, name: 'MuiFormControl' }); const { children, className, diff --git a/packages/mui-material/src/FormControlLabel/FormControlLabel.js b/packages/mui-material/src/FormControlLabel/FormControlLabel.js index 5765933206a476..a277055f179a5c 100644 --- a/packages/mui-material/src/FormControlLabel/FormControlLabel.js +++ b/packages/mui-material/src/FormControlLabel/FormControlLabel.js @@ -5,7 +5,8 @@ import clsx from 'clsx'; import refType from '@mui/utils/refType'; import composeClasses from '@mui/utils/composeClasses'; import { useFormControl } from '../FormControl'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Stack from '../Stack'; import Typography from '../Typography'; import capitalize from '../utils/capitalize'; @@ -15,8 +16,6 @@ import formControlLabelClasses, { import formControlState from '../FormControl/formControlState'; import useSlot from '../utils/useSlot'; -const useThemeProps = createUseThemeProps('MuiFormControlLabel'); - const useUtilityClasses = (ownerState) => { const { classes, disabled, labelPlacement, error, required } = ownerState; const slots = { @@ -108,7 +107,7 @@ const AsteriskComponent = styled('span', { * Use this component if you want to display an extra label. */ const FormControlLabel = React.forwardRef(function FormControlLabel(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiFormControlLabel' }); + const props = useDefaultProps({ props: inProps, name: 'MuiFormControlLabel' }); const { checked, className, diff --git a/packages/mui-material/src/FormGroup/FormGroup.js b/packages/mui-material/src/FormGroup/FormGroup.js index 0912b1aabd7b08..d5849282e39f66 100644 --- a/packages/mui-material/src/FormGroup/FormGroup.js +++ b/packages/mui-material/src/FormGroup/FormGroup.js @@ -3,13 +3,12 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getFormGroupUtilityClass } from './formGroupClasses'; import useFormControl from '../FormControl/useFormControl'; import formControlState from '../FormControl/formControlState'; -const useThemeProps = createUseThemeProps('MuiFormGroup'); - const useUtilityClasses = (ownerState) => { const { classes, row, error } = ownerState; @@ -48,7 +47,7 @@ const FormGroupRoot = styled('div', { * For the `Radio`, you should be using the `RadioGroup` component instead of this one. */ const FormGroup = React.forwardRef(function FormGroup(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiFormGroup', }); diff --git a/packages/mui-material/src/FormHelperText/FormHelperText.js b/packages/mui-material/src/FormHelperText/FormHelperText.js index 2a3a5fc7cbe5bc..44a2ae9215e9fa 100644 --- a/packages/mui-material/src/FormHelperText/FormHelperText.js +++ b/packages/mui-material/src/FormHelperText/FormHelperText.js @@ -5,12 +5,11 @@ import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import formControlState from '../FormControl/formControlState'; import useFormControl from '../FormControl/useFormControl'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import formHelperTextClasses, { getFormHelperTextUtilityClasses } from './formHelperTextClasses'; -const useThemeProps = createUseThemeProps('MuiFormHelperText'); - const useUtilityClasses = (ownerState) => { const { classes, contained, size, disabled, error, filled, focused, required } = ownerState; const slots = { @@ -76,7 +75,7 @@ const FormHelperTextRoot = styled('p', { })); const FormHelperText = React.forwardRef(function FormHelperText(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiFormHelperText' }); + const props = useDefaultProps({ props: inProps, name: 'MuiFormHelperText' }); const { children, className, diff --git a/packages/mui-material/src/FormLabel/FormLabel.js b/packages/mui-material/src/FormLabel/FormLabel.js index efa75c022f23c8..b412549321dd2b 100644 --- a/packages/mui-material/src/FormLabel/FormLabel.js +++ b/packages/mui-material/src/FormLabel/FormLabel.js @@ -6,11 +6,10 @@ import composeClasses from '@mui/utils/composeClasses'; import formControlState from '../FormControl/formControlState'; import useFormControl from '../FormControl/useFormControl'; import capitalize from '../utils/capitalize'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import formLabelClasses, { getFormLabelUtilityClasses } from './formLabelClasses'; -const useThemeProps = createUseThemeProps('MuiFormLabel'); - const useUtilityClasses = (ownerState) => { const { classes, color, focused, disabled, error, filled, required } = ownerState; const slots = { @@ -81,7 +80,7 @@ const AsteriskComponent = styled('span', { })); const FormLabel = React.forwardRef(function FormLabel(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiFormLabel' }); + const props = useDefaultProps({ props: inProps, name: 'MuiFormLabel' }); const { children, className, diff --git a/packages/mui-material/src/Icon/Icon.js b/packages/mui-material/src/Icon/Icon.js index e382b2f5b4ed17..8368b113b52972 100644 --- a/packages/mui-material/src/Icon/Icon.js +++ b/packages/mui-material/src/Icon/Icon.js @@ -4,11 +4,10 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import capitalize from '../utils/capitalize'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getIconUtilityClass } from './iconClasses'; -const useThemeProps = createUseThemeProps('MuiIcon'); - const useUtilityClasses = (ownerState) => { const { color, fontSize, classes } = ownerState; @@ -114,7 +113,7 @@ const IconRoot = styled('span', { })); const Icon = React.forwardRef(function Icon(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiIcon' }); + const props = useDefaultProps({ props: inProps, name: 'MuiIcon' }); const { baseClassName = 'material-icons', className, diff --git a/packages/mui-material/src/IconButton/IconButton.js b/packages/mui-material/src/IconButton/IconButton.js index 6e4013edfcefcc..31ce68e22f2f82 100644 --- a/packages/mui-material/src/IconButton/IconButton.js +++ b/packages/mui-material/src/IconButton/IconButton.js @@ -5,13 +5,12 @@ import clsx from 'clsx'; import chainPropTypes from '@mui/utils/chainPropTypes'; import composeClasses from '@mui/utils/composeClasses'; import { alpha } from '@mui/system/colorManipulator'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import ButtonBase from '../ButtonBase'; import capitalize from '../utils/capitalize'; import iconButtonClasses, { getIconButtonUtilityClass } from './iconButtonClasses'; -const useThemeProps = createUseThemeProps('MuiIconButton'); - const useUtilityClasses = (ownerState) => { const { classes, disabled, color, edge, size } = ownerState; @@ -157,7 +156,7 @@ const IconButtonRoot = styled(ButtonBase, { * regarding the available icon options. */ const IconButton = React.forwardRef(function IconButton(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiIconButton' }); + const props = useDefaultProps({ props: inProps, name: 'MuiIconButton' }); const { edge = false, children, diff --git a/packages/mui-material/src/ImageList/ImageList.js b/packages/mui-material/src/ImageList/ImageList.js index ee641bf92adb8a..3f92f867e84a12 100644 --- a/packages/mui-material/src/ImageList/ImageList.js +++ b/packages/mui-material/src/ImageList/ImageList.js @@ -4,12 +4,11 @@ import integerPropType from '@mui/utils/integerPropType'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import * as React from 'react'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getImageListUtilityClass } from './imageListClasses'; import ImageListContext from './ImageListContext'; -const useThemeProps = createUseThemeProps('MuiImageList'); - const useUtilityClasses = (ownerState) => { const { classes, variant } = ownerState; @@ -48,7 +47,7 @@ const ImageListRoot = styled('ul', { }); const ImageList = React.forwardRef(function ImageList(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiImageList', }); diff --git a/packages/mui-material/src/ImageListItem/ImageListItem.js b/packages/mui-material/src/ImageListItem/ImageListItem.js index db5a43ced0b559..ecf89d2988d829 100644 --- a/packages/mui-material/src/ImageListItem/ImageListItem.js +++ b/packages/mui-material/src/ImageListItem/ImageListItem.js @@ -6,12 +6,11 @@ import PropTypes from 'prop-types'; import * as React from 'react'; import { isFragment } from 'react-is'; import ImageListContext from '../ImageList/ImageListContext'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import isMuiElement from '../utils/isMuiElement'; import imageListItemClasses, { getImageListItemUtilityClass } from './imageListItemClasses'; -const useThemeProps = createUseThemeProps('MuiImageListItem'); - const useUtilityClasses = (ownerState) => { const { classes, variant } = ownerState; @@ -82,7 +81,7 @@ const ImageListItemRoot = styled('li', { }); const ImageListItem = React.forwardRef(function ImageListItem(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiImageListItem', }); diff --git a/packages/mui-material/src/ImageListItemBar/ImageListItemBar.js b/packages/mui-material/src/ImageListItemBar/ImageListItemBar.js index f5be968bc2a616..ec6cb966f1c046 100644 --- a/packages/mui-material/src/ImageListItemBar/ImageListItemBar.js +++ b/packages/mui-material/src/ImageListItemBar/ImageListItemBar.js @@ -3,12 +3,11 @@ import composeClasses from '@mui/utils/composeClasses'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import * as React from 'react'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import { getImageListItemBarUtilityClass } from './imageListItemBarClasses'; -const useThemeProps = createUseThemeProps('MuiImageListItemBar'); - const useUtilityClasses = (ownerState) => { const { classes, position, actionIcon, actionPosition } = ownerState; @@ -172,7 +171,7 @@ const ImageListItemBarActionIcon = styled('div', { }); const ImageListItemBar = React.forwardRef(function ImageListItemBar(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiImageListItemBar', }); diff --git a/packages/mui-material/src/Input/Input.js b/packages/mui-material/src/Input/Input.js index 698f5e8ef4da13..5e60d276a63817 100644 --- a/packages/mui-material/src/Input/Input.js +++ b/packages/mui-material/src/Input/Input.js @@ -6,7 +6,8 @@ import deepmerge from '@mui/utils/deepmerge'; import refType from '@mui/utils/refType'; import InputBase from '../InputBase'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import inputClasses, { getInputUtilityClass } from './inputClasses'; import { rootOverridesResolver as inputBaseRootOverridesResolver, @@ -15,8 +16,6 @@ import { InputBaseInput, } from '../InputBase/InputBase'; -const useThemeProps = createUseThemeProps('MuiInput'); - const useUtilityClasses = (ownerState) => { const { classes, disableUnderline } = ownerState; @@ -133,7 +132,7 @@ const InputInput = styled(InputBaseInput, { })({}); const Input = React.forwardRef(function Input(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiInput' }); + const props = useDefaultProps({ props: inProps, name: 'MuiInput' }); const { disableUnderline = false, components = {}, diff --git a/packages/mui-material/src/InputAdornment/InputAdornment.js b/packages/mui-material/src/InputAdornment/InputAdornment.js index fb2e14349bb96c..58f8c75fbc7764 100644 --- a/packages/mui-material/src/InputAdornment/InputAdornment.js +++ b/packages/mui-material/src/InputAdornment/InputAdornment.js @@ -7,11 +7,10 @@ import capitalize from '../utils/capitalize'; import Typography from '../Typography'; import FormControlContext from '../FormControl/FormControlContext'; import useFormControl from '../FormControl/useFormControl'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import inputAdornmentClasses, { getInputAdornmentUtilityClass } from './inputAdornmentClasses'; -const useThemeProps = createUseThemeProps('MuiInputAdornment'); - const overridesResolver = (props, styles) => { const { ownerState } = props; @@ -88,7 +87,7 @@ const InputAdornmentRoot = styled('div', { })); const InputAdornment = React.forwardRef(function InputAdornment(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiInputAdornment' }); + const props = useDefaultProps({ props: inProps, name: 'MuiInputAdornment' }); const { children, className, diff --git a/packages/mui-material/src/InputBase/InputBase.js b/packages/mui-material/src/InputBase/InputBase.js index 0b032c6548acbb..f92d068cdc41ca 100644 --- a/packages/mui-material/src/InputBase/InputBase.js +++ b/packages/mui-material/src/InputBase/InputBase.js @@ -11,15 +11,14 @@ import composeClasses from '@mui/utils/composeClasses'; import formControlState from '../FormControl/formControlState'; import FormControlContext from '../FormControl/FormControlContext'; import useFormControl from '../FormControl/useFormControl'; -import { styled, createUseThemeProps, globalCss } from '../zero-styled'; +import { styled, globalCss } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import useForkRef from '../utils/useForkRef'; import useEnhancedEffect from '../utils/useEnhancedEffect'; import { isFilled } from './utils'; import inputBaseClasses, { getInputBaseUtilityClass } from './inputBaseClasses'; -const useThemeProps = createUseThemeProps('MuiInputBase'); - export const rootOverridesResolver = (props, styles) => { const { ownerState } = props; @@ -263,7 +262,7 @@ const InputGlobalStyles = globalCss({ * It contains a load of style reset and some state logic. */ const InputBase = React.forwardRef(function InputBase(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiInputBase' }); + const props = useDefaultProps({ props: inProps, name: 'MuiInputBase' }); const { 'aria-describedby': ariaDescribedby, autoComplete, diff --git a/packages/mui-material/src/InputLabel/InputLabel.js b/packages/mui-material/src/InputLabel/InputLabel.js index 8e6665c0edbced..71db13aecba3f4 100644 --- a/packages/mui-material/src/InputLabel/InputLabel.js +++ b/packages/mui-material/src/InputLabel/InputLabel.js @@ -8,11 +8,10 @@ import useFormControl from '../FormControl/useFormControl'; import FormLabel, { formLabelClasses } from '../FormLabel'; import capitalize from '../utils/capitalize'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getInputLabelUtilityClasses } from './inputLabelClasses'; -const useThemeProps = createUseThemeProps('MuiInputLabel'); - const useUtilityClasses = (ownerState) => { const { classes, formControl, size, shrink, disableAnimation, variant, required } = ownerState; const slots = { @@ -172,7 +171,7 @@ const InputLabelRoot = styled(FormLabel, { })); const InputLabel = React.forwardRef(function InputLabel(inProps, ref) { - const props = useThemeProps({ name: 'MuiInputLabel', props: inProps }); + const props = useDefaultProps({ name: 'MuiInputLabel', props: inProps }); const { disableAnimation = false, margin, diff --git a/packages/mui-material/src/LinearProgress/LinearProgress.js b/packages/mui-material/src/LinearProgress/LinearProgress.js index ddc40f02efc5ed..bc4366a91fa801 100644 --- a/packages/mui-material/src/LinearProgress/LinearProgress.js +++ b/packages/mui-material/src/LinearProgress/LinearProgress.js @@ -5,12 +5,11 @@ import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import { darken, lighten } from '@mui/system/colorManipulator'; import { useRtl } from '@mui/system/RtlProvider'; -import { keyframes, css, styled, createUseThemeProps } from '../zero-styled'; +import { keyframes, css, styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import { getLinearProgressUtilityClass } from './linearProgressClasses'; -const useThemeProps = createUseThemeProps('MuiLinearProgress'); - const TRANSITION_DURATION = 4; // seconds const indeterminate1Keyframe = keyframes` 0% { @@ -372,7 +371,7 @@ const LinearProgressBar2 = styled('span', { * attribute to `true` on that region until it has finished loading. */ const LinearProgress = React.forwardRef(function LinearProgress(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiLinearProgress' }); + const props = useDefaultProps({ props: inProps, name: 'MuiLinearProgress' }); const { className, color = 'primary', diff --git a/packages/mui-material/src/Link/Link.js b/packages/mui-material/src/Link/Link.js index 80cf5374e66af5..7ee5ec75e5940f 100644 --- a/packages/mui-material/src/Link/Link.js +++ b/packages/mui-material/src/Link/Link.js @@ -6,15 +6,14 @@ import { alpha } from '@mui/system/colorManipulator'; import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef'; import composeClasses from '@mui/utils/composeClasses'; import capitalize from '../utils/capitalize'; -import { styled, createUseThemeProps, useTheme } from '../zero-styled'; +import { styled, useTheme } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import useIsFocusVisible from '../utils/useIsFocusVisible'; import useForkRef from '../utils/useForkRef'; import Typography from '../Typography'; import linkClasses, { getLinkUtilityClass } from './linkClasses'; import getTextDecoration, { colorTransformations } from './getTextDecoration'; -const useThemeProps = createUseThemeProps('MuiLink'); - const useUtilityClasses = (ownerState) => { const { classes, component, focusVisible, underline } = ownerState; @@ -124,7 +123,7 @@ const LinkRoot = styled(Typography, { }); const Link = React.forwardRef(function Link(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiLink', }); diff --git a/packages/mui-material/src/List/List.js b/packages/mui-material/src/List/List.js index d2eda963fdb226..7e09c8ae812060 100644 --- a/packages/mui-material/src/List/List.js +++ b/packages/mui-material/src/List/List.js @@ -3,12 +3,11 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import ListContext from './ListContext'; import { getListUtilityClass } from './listClasses'; -const useThemeProps = createUseThemeProps('MuiList'); - const useUtilityClasses = (ownerState) => { const { classes, disablePadding, dense, subheader } = ownerState; @@ -55,7 +54,7 @@ const ListRoot = styled('ul', { }); const List = React.forwardRef(function List(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiList' }); + const props = useDefaultProps({ props: inProps, name: 'MuiList' }); const { children, className, diff --git a/packages/mui-material/src/ListItem/ListItem.js b/packages/mui-material/src/ListItem/ListItem.js index 3597750670b2a3..187bcaf84db17d 100644 --- a/packages/mui-material/src/ListItem/ListItem.js +++ b/packages/mui-material/src/ListItem/ListItem.js @@ -7,7 +7,8 @@ import composeClasses from '@mui/utils/composeClasses'; import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef'; import chainPropTypes from '@mui/utils/chainPropTypes'; import { alpha } from '@mui/system/colorManipulator'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import ButtonBase from '../ButtonBase'; import isMuiElement from '../utils/isMuiElement'; import useEnhancedEffect from '../utils/useEnhancedEffect'; @@ -17,8 +18,6 @@ import listItemClasses, { getListItemUtilityClass } from './listItemClasses'; import { listItemButtonClasses } from '../ListItemButton'; import ListItemSecondaryAction from '../ListItemSecondaryAction'; -const useThemeProps = createUseThemeProps('MuiListItem'); - export const overridesResolver = (props, styles) => { const { ownerState } = props; @@ -205,7 +204,7 @@ const ListItemContainer = styled('li', { * Uses an additional container component if `ListItemSecondaryAction` is the last child. */ const ListItem = React.forwardRef(function ListItem(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiListItem' }); + const props = useDefaultProps({ props: inProps, name: 'MuiListItem' }); const { alignItems = 'center', autoFocus = false, diff --git a/packages/mui-material/src/ListItemAvatar/ListItemAvatar.js b/packages/mui-material/src/ListItemAvatar/ListItemAvatar.js index f7138878c93ac7..e6c360ed238e50 100644 --- a/packages/mui-material/src/ListItemAvatar/ListItemAvatar.js +++ b/packages/mui-material/src/ListItemAvatar/ListItemAvatar.js @@ -4,11 +4,10 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import ListContext from '../List/ListContext'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getListItemAvatarUtilityClass } from './listItemAvatarClasses'; -const useThemeProps = createUseThemeProps('MuiListItemAvatar'); - const useUtilityClasses = (ownerState) => { const { alignItems, classes } = ownerState; @@ -46,7 +45,7 @@ const ListItemAvatarRoot = styled('div', { * A simple wrapper to apply `List` styles to an `Avatar`. */ const ListItemAvatar = React.forwardRef(function ListItemAvatar(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiListItemAvatar', }); diff --git a/packages/mui-material/src/ListItemButton/ListItemButton.js b/packages/mui-material/src/ListItemButton/ListItemButton.js index 96bcca86416d8e..7c4f5e54573778 100644 --- a/packages/mui-material/src/ListItemButton/ListItemButton.js +++ b/packages/mui-material/src/ListItemButton/ListItemButton.js @@ -4,7 +4,8 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import { alpha } from '@mui/system/colorManipulator'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; import ButtonBase from '../ButtonBase'; import useEnhancedEffect from '../utils/useEnhancedEffect'; @@ -12,8 +13,6 @@ import useForkRef from '../utils/useForkRef'; import ListContext from '../List/ListContext'; import listItemButtonClasses, { getListItemButtonUtilityClass } from './listItemButtonClasses'; -const useThemeProps = createUseThemeProps('MuiListItemButton'); - export const overridesResolver = (props, styles) => { const { ownerState } = props; @@ -144,7 +143,7 @@ const ListItemButtonRoot = styled(ButtonBase, { })); const ListItemButton = React.forwardRef(function ListItemButton(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiListItemButton' }); + const props = useDefaultProps({ props: inProps, name: 'MuiListItemButton' }); const { alignItems = 'center', autoFocus = false, diff --git a/packages/mui-material/src/ListItemIcon/ListItemIcon.js b/packages/mui-material/src/ListItemIcon/ListItemIcon.js index d3d158aef7b68c..310259d5e5d81f 100644 --- a/packages/mui-material/src/ListItemIcon/ListItemIcon.js +++ b/packages/mui-material/src/ListItemIcon/ListItemIcon.js @@ -3,12 +3,11 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getListItemIconUtilityClass } from './listItemIconClasses'; import ListContext from '../List/ListContext'; -const useThemeProps = createUseThemeProps('MuiListItemIcon'); - const useUtilityClasses = (ownerState) => { const { alignItems, classes } = ownerState; @@ -48,7 +47,7 @@ const ListItemIconRoot = styled('div', { * A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`. */ const ListItemIcon = React.forwardRef(function ListItemIcon(inProps, ref) { - const props = useThemeProps({ + const props = useDefaultProps({ props: inProps, name: 'MuiListItemIcon', }); diff --git a/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.js b/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.js index f91162f6bc3aae..b8269bbf09937a 100644 --- a/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.js +++ b/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.js @@ -3,12 +3,11 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import ListContext from '../List/ListContext'; import { getListItemSecondaryActionClassesUtilityClass } from './listItemSecondaryActionClasses'; -const useThemeProps = createUseThemeProps('MuiListItemSecondaryAction'); - const useUtilityClasses = (ownerState) => { const { disableGutters, classes } = ownerState; @@ -48,7 +47,7 @@ const ListItemSecondaryActionRoot = styled('div', { * @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details. */ const ListItemSecondaryAction = React.forwardRef(function ListItemSecondaryAction(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiListItemSecondaryAction' }); + const props = useDefaultProps({ props: inProps, name: 'MuiListItemSecondaryAction' }); const { className, ...other } = props; const context = React.useContext(ListContext); const ownerState = { ...props, disableGutters: context.disableGutters }; diff --git a/packages/mui-material/src/ListItemText/ListItemText.js b/packages/mui-material/src/ListItemText/ListItemText.js index 0352eecbe62bbf..aa7256d91194ea 100644 --- a/packages/mui-material/src/ListItemText/ListItemText.js +++ b/packages/mui-material/src/ListItemText/ListItemText.js @@ -5,11 +5,10 @@ import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import Typography from '../Typography'; import ListContext from '../List/ListContext'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import listItemTextClasses, { getListItemTextUtilityClass } from './listItemTextClasses'; -const useThemeProps = createUseThemeProps('MuiListItemText'); - const useUtilityClasses = (ownerState) => { const { classes, inset, primary, secondary, dense } = ownerState; @@ -60,7 +59,7 @@ const ListItemTextRoot = styled('div', { }); const ListItemText = React.forwardRef(function ListItemText(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiListItemText' }); + const props = useDefaultProps({ props: inProps, name: 'MuiListItemText' }); const { children, className, diff --git a/packages/mui-material/src/ListSubheader/ListSubheader.js b/packages/mui-material/src/ListSubheader/ListSubheader.js index 86d530050d3324..279c5e99f31da9 100644 --- a/packages/mui-material/src/ListSubheader/ListSubheader.js +++ b/packages/mui-material/src/ListSubheader/ListSubheader.js @@ -3,12 +3,11 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import { getListSubheaderUtilityClass } from './listSubheaderClasses'; -const useThemeProps = createUseThemeProps('MuiListSubheader'); - const useUtilityClasses = (ownerState) => { const { classes, color, disableGutters, inset, disableSticky } = ownerState; @@ -90,7 +89,7 @@ const ListSubheaderRoot = styled('li', { })); const ListSubheader = React.forwardRef(function ListSubheader(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiListSubheader' }); + const props = useDefaultProps({ props: inProps, name: 'MuiListSubheader' }); const { className, color = 'default', diff --git a/packages/mui-material/src/Menu/Menu.js b/packages/mui-material/src/Menu/Menu.js index 19269471b5d609..821f544ab16e83 100644 --- a/packages/mui-material/src/Menu/Menu.js +++ b/packages/mui-material/src/Menu/Menu.js @@ -10,11 +10,10 @@ import { useRtl } from '@mui/system/RtlProvider'; import MenuList from '../MenuList'; import Popover, { PopoverPaper } from '../Popover'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getMenuUtilityClass } from './menuClasses'; -const useThemeProps = createUseThemeProps('MuiMenu'); - const RTL_ORIGIN = { vertical: 'top', horizontal: 'right', @@ -67,7 +66,7 @@ const MenuMenuList = styled(MenuList, { }); const Menu = React.forwardRef(function Menu(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiMenu' }); + const props = useDefaultProps({ props: inProps, name: 'MuiMenu' }); const { autoFocus = true, diff --git a/packages/mui-material/src/MenuItem/MenuItem.js b/packages/mui-material/src/MenuItem/MenuItem.js index 7819d4e76e073d..eb39af185ff660 100644 --- a/packages/mui-material/src/MenuItem/MenuItem.js +++ b/packages/mui-material/src/MenuItem/MenuItem.js @@ -5,7 +5,8 @@ import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import { alpha } from '@mui/system/colorManipulator'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import ListContext from '../List/ListContext'; import ButtonBase from '../ButtonBase'; import useEnhancedEffect from '../utils/useEnhancedEffect'; @@ -15,8 +16,6 @@ import { listItemIconClasses } from '../ListItemIcon'; import { listItemTextClasses } from '../ListItemText'; import menuItemClasses, { getMenuItemUtilityClass } from './menuItemClasses'; -const useThemeProps = createUseThemeProps('MuiMenuItem'); - export const overridesResolver = (props, styles) => { const { ownerState } = props; @@ -163,7 +162,7 @@ const MenuItemRoot = styled(ButtonBase, { })); const MenuItem = React.forwardRef(function MenuItem(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiMenuItem' }); + const props = useDefaultProps({ props: inProps, name: 'MuiMenuItem' }); const { autoFocus = false, component = 'li', diff --git a/packages/mui-material/src/MobileStepper/MobileStepper.js b/packages/mui-material/src/MobileStepper/MobileStepper.js index 4bda0efad9c004..302863de7e11f5 100644 --- a/packages/mui-material/src/MobileStepper/MobileStepper.js +++ b/packages/mui-material/src/MobileStepper/MobileStepper.js @@ -7,12 +7,11 @@ import composeClasses from '@mui/utils/composeClasses'; import Paper from '../Paper'; import capitalize from '../utils/capitalize'; import LinearProgress from '../LinearProgress'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import slotShouldForwardProp from '../styles/slotShouldForwardProp'; import { getMobileStepperUtilityClass } from './mobileStepperClasses'; -const useThemeProps = createUseThemeProps('MuiMobileStepper'); - const useUtilityClasses = (ownerState) => { const { classes, position } = ownerState; @@ -128,7 +127,7 @@ const MobileStepperProgress = styled(LinearProgress, { }); const MobileStepper = React.forwardRef(function MobileStepper(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiMobileStepper' }); + const props = useDefaultProps({ props: inProps, name: 'MuiMobileStepper' }); const { activeStep = 0, backButton, diff --git a/packages/mui-material/src/Modal/Modal.js b/packages/mui-material/src/Modal/Modal.js index 8e7f5f1d9d5166..c3868f0f0e3cdd 100644 --- a/packages/mui-material/src/Modal/Modal.js +++ b/packages/mui-material/src/Modal/Modal.js @@ -9,12 +9,11 @@ import { unstable_useModal as useModal } from '@mui/base/unstable_useModal'; import composeClasses from '@mui/utils/composeClasses'; import FocusTrap from '../Unstable_TrapFocus'; import Portal from '../Portal'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Backdrop from '../Backdrop'; import { getModalUtilityClass } from './modalClasses'; -const useThemeProps = createUseThemeProps('MuiModal'); - const useUtilityClasses = (ownerState) => { const { open, exited, classes } = ownerState; @@ -75,7 +74,7 @@ const ModalBackdrop = styled(Backdrop, { * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals). */ const Modal = React.forwardRef(function Modal(inProps, ref) { - const props = useThemeProps({ name: 'MuiModal', props: inProps }); + const props = useDefaultProps({ name: 'MuiModal', props: inProps }); const { BackdropComponent = ModalBackdrop, BackdropProps, diff --git a/packages/mui-material/src/OutlinedInput/OutlinedInput.js b/packages/mui-material/src/OutlinedInput/OutlinedInput.js index 43a2aaa51e06da..d3812becdfc070 100644 --- a/packages/mui-material/src/OutlinedInput/OutlinedInput.js +++ b/packages/mui-material/src/OutlinedInput/OutlinedInput.js @@ -7,7 +7,8 @@ import NotchedOutline from './NotchedOutline'; import useFormControl from '../FormControl/useFormControl'; import formControlState from '../FormControl/formControlState'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import outlinedInputClasses, { getOutlinedInputUtilityClass } from './outlinedInputClasses'; import InputBase, { rootOverridesResolver as inputBaseRootOverridesResolver, @@ -16,8 +17,6 @@ import InputBase, { InputBaseInput, } from '../InputBase/InputBase'; -const useThemeProps = createUseThemeProps('MuiOutlinedInput'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -181,7 +180,7 @@ const OutlinedInputInput = styled(InputBaseInput, { })); const OutlinedInput = React.forwardRef(function OutlinedInput(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiOutlinedInput' }); + const props = useDefaultProps({ props: inProps, name: 'MuiOutlinedInput' }); const { components = {}, fullWidth = false, diff --git a/packages/mui-material/src/Pagination/Pagination.js b/packages/mui-material/src/Pagination/Pagination.js index 3796474ceb2f9a..56e2610ee2b4e9 100644 --- a/packages/mui-material/src/Pagination/Pagination.js +++ b/packages/mui-material/src/Pagination/Pagination.js @@ -7,9 +7,9 @@ import integerPropType from '@mui/utils/integerPropType'; import { getPaginationUtilityClass } from './paginationClasses'; import usePagination from '../usePagination'; import PaginationItem from '../PaginationItem'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; -const useThemeProps = createUseThemeProps('MuiPagination'); +import { useDefaultProps } from '../DefaultPropsProvider'; const useUtilityClasses = (ownerState) => { const { classes, variant } = ownerState; @@ -53,7 +53,7 @@ function defaultGetAriaLabel(type, page, selected) { } const Pagination = React.forwardRef(function Pagination(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiPagination' }); + const props = useDefaultProps({ props: inProps, name: 'MuiPagination' }); const { boundaryCount = 1, className, diff --git a/packages/mui-material/src/PaginationItem/PaginationItem.js b/packages/mui-material/src/PaginationItem/PaginationItem.js index 07c4df53b50452..0a5aca797d497a 100644 --- a/packages/mui-material/src/PaginationItem/PaginationItem.js +++ b/packages/mui-material/src/PaginationItem/PaginationItem.js @@ -13,9 +13,9 @@ import LastPageIcon from '../internal/svg-icons/LastPage'; import NavigateBeforeIcon from '../internal/svg-icons/NavigateBefore'; import NavigateNextIcon from '../internal/svg-icons/NavigateNext'; import useSlot from '../utils/useSlot'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; -const useThemeProps = createUseThemeProps('MuiPaginationItem'); +import { useDefaultProps } from '../DefaultPropsProvider'; const overridesResolver = (props, styles) => { const { ownerState } = props; @@ -302,7 +302,7 @@ const PaginationItemPageIcon = styled('div', { })); const PaginationItem = React.forwardRef(function PaginationItem(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiPaginationItem' }); + const props = useDefaultProps({ props: inProps, name: 'MuiPaginationItem' }); const { className, color = 'standard', diff --git a/packages/mui-material/src/Paper/Paper.js b/packages/mui-material/src/Paper/Paper.js index f4b9bbb4ae1bc8..abb07e7966bed5 100644 --- a/packages/mui-material/src/Paper/Paper.js +++ b/packages/mui-material/src/Paper/Paper.js @@ -6,12 +6,11 @@ import integerPropType from '@mui/utils/integerPropType'; import chainPropTypes from '@mui/utils/chainPropTypes'; import composeClasses from '@mui/utils/composeClasses'; import { alpha } from '@mui/system/colorManipulator'; -import { styled, createUseThemeProps, useTheme } from '../zero-styled'; +import { styled, useTheme } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import getOverlayAlpha from '../styles/getOverlayAlpha'; import { getPaperUtilityClass } from './paperClasses'; -const useThemeProps = createUseThemeProps('MuiPaper'); - const useUtilityClasses = (ownerState) => { const { square, elevation, variant, classes } = ownerState; @@ -72,7 +71,7 @@ const PaperRoot = styled('div', { })); const Paper = React.forwardRef(function Paper(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiPaper' }); + const props = useDefaultProps({ props: inProps, name: 'MuiPaper' }); const theme = useTheme(); const { diff --git a/packages/mui-material/src/Popover/Popover.js b/packages/mui-material/src/Popover/Popover.js index b0594958bf0595..427818eedef29f 100644 --- a/packages/mui-material/src/Popover/Popover.js +++ b/packages/mui-material/src/Popover/Popover.js @@ -9,7 +9,8 @@ import refType from '@mui/utils/refType'; import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef'; import integerPropType from '@mui/utils/integerPropType'; import chainPropTypes from '@mui/utils/chainPropTypes'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import debounce from '../utils/debounce'; import ownerDocument from '../utils/ownerDocument'; import ownerWindow from '../utils/ownerWindow'; @@ -20,8 +21,6 @@ import PaperBase from '../Paper'; import { getPopoverUtilityClass } from './popoverClasses'; import useSlot from '../utils/useSlot'; -const useThemeProps = createUseThemeProps('MuiPopover'); - export function getOffsetTop(rect, vertical) { let offset = 0; @@ -96,7 +95,7 @@ export const PopoverPaper = styled(PaperBase, { }); const Popover = React.forwardRef(function Popover(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiPopover' }); + const props = useDefaultProps({ props: inProps, name: 'MuiPopover' }); const { action, anchorEl, diff --git a/packages/mui-material/src/Radio/Radio.js b/packages/mui-material/src/Radio/Radio.js index 7aa76e7d0395e6..d3b81667586245 100644 --- a/packages/mui-material/src/Radio/Radio.js +++ b/packages/mui-material/src/Radio/Radio.js @@ -12,9 +12,9 @@ import createChainedFunction from '../utils/createChainedFunction'; import useRadioGroup from '../RadioGroup/useRadioGroup'; import radioClasses, { getRadioUtilityClass } from './radioClasses'; import rootShouldForwardProp from '../styles/rootShouldForwardProp'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; -const useThemeProps = createUseThemeProps('MuiRadio'); +import { useDefaultProps } from '../DefaultPropsProvider'; const useUtilityClasses = (ownerState) => { const { classes, color, size } = ownerState; @@ -108,7 +108,7 @@ const defaultCheckedIcon = ; const defaultIcon = ; const Radio = React.forwardRef(function Radio(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiRadio' }); + const props = useDefaultProps({ props: inProps, name: 'MuiRadio' }); const { checked: checkedProp, checkedIcon = defaultCheckedIcon, diff --git a/packages/mui-material/src/Rating/Rating.js b/packages/mui-material/src/Rating/Rating.js index a61b3dde83c6e6..3648cfb33d344d 100644 --- a/packages/mui-material/src/Rating/Rating.js +++ b/packages/mui-material/src/Rating/Rating.js @@ -16,12 +16,11 @@ import { } from '../utils'; import Star from '../internal/svg-icons/Star'; import StarBorder from '../internal/svg-icons/StarBorder'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import slotShouldForwardProp from '../styles/slotShouldForwardProp'; import ratingClasses, { getRatingUtilityClass } from './ratingClasses'; -const useThemeProps = createUseThemeProps('MuiRating'); - function getDecimalPrecision(num) { const decimalPart = num.toString().split('.')[1]; return decimalPart ? decimalPart.length : 0; @@ -331,7 +330,7 @@ function defaultLabelText(value) { } const Rating = React.forwardRef(function Rating(inProps, ref) { - const props = useThemeProps({ name: 'MuiRating', props: inProps }); + const props = useDefaultProps({ name: 'MuiRating', props: inProps }); const { className, defaultValue = null, diff --git a/packages/mui-material/src/Skeleton/Skeleton.js b/packages/mui-material/src/Skeleton/Skeleton.js index 46ad2e2d5c0c02..9321d08c2afbda 100644 --- a/packages/mui-material/src/Skeleton/Skeleton.js +++ b/packages/mui-material/src/Skeleton/Skeleton.js @@ -4,11 +4,10 @@ import clsx from 'clsx'; import PropTypes from 'prop-types'; import composeClasses from '@mui/utils/composeClasses'; import { alpha, unstable_getUnit as getUnit, unstable_toUnitless as toUnitless } from '../styles'; -import { keyframes, css, createUseThemeProps, styled } from '../zero-styled'; +import { keyframes, css, styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getSkeletonUtilityClass } from './skeletonClasses'; -const useThemeProps = createUseThemeProps('MuiSkeleton'); - const useUtilityClasses = (ownerState) => { const { classes, variant, animation, hasChildren, width, height } = ownerState; @@ -200,7 +199,7 @@ const SkeletonRoot = styled('span', { }); const Skeleton = React.forwardRef(function Skeleton(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiSkeleton' }); + const props = useDefaultProps({ props: inProps, name: 'MuiSkeleton' }); const { animation = 'pulse', className, diff --git a/packages/mui-material/src/Slider/Slider.js b/packages/mui-material/src/Slider/Slider.js index 00c7f49cfcaf81..ada5fda52457f3 100644 --- a/packages/mui-material/src/Slider/Slider.js +++ b/packages/mui-material/src/Slider/Slider.js @@ -8,15 +8,14 @@ import composeClasses from '@mui/utils/composeClasses'; import { useSlider, valueToPercent } from '@mui/base/useSlider'; import { alpha, lighten, darken } from '@mui/system/colorManipulator'; import { useRtl } from '@mui/system/RtlProvider'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import slotShouldForwardProp from '../styles/slotShouldForwardProp'; import shouldSpreadAdditionalProps from '../utils/shouldSpreadAdditionalProps'; import capitalize from '../utils/capitalize'; import BaseSliderValueLabel from './SliderValueLabel'; import sliderClasses, { getSliderUtilityClass } from './sliderClasses'; -const useThemeProps = createUseThemeProps('MuiSlider'); - function Identity(x) { return x; } @@ -531,7 +530,7 @@ const useUtilityClasses = (ownerState) => { const Forward = ({ children }) => children; const Slider = React.forwardRef(function Slider(inputProps, ref) { - const props = useThemeProps({ props: inputProps, name: 'MuiSlider' }); + const props = useDefaultProps({ props: inputProps, name: 'MuiSlider' }); const isRtl = useRtl(); diff --git a/packages/mui-material/src/Snackbar/Snackbar.js b/packages/mui-material/src/Snackbar/Snackbar.js index e44634c3679e1f..70abf93913296f 100644 --- a/packages/mui-material/src/Snackbar/Snackbar.js +++ b/packages/mui-material/src/Snackbar/Snackbar.js @@ -5,14 +5,13 @@ import { useSlotProps } from '@mui/base/utils'; import composeClasses from '@mui/utils/composeClasses'; import { ClickAwayListener } from '@mui/base/ClickAwayListener'; import { useSnackbar } from '@mui/base/useSnackbar'; -import { styled, createUseThemeProps, useTheme } from '../zero-styled'; +import { styled, useTheme } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import Grow from '../Grow'; import SnackbarContent from '../SnackbarContent'; import { getSnackbarUtilityClass } from './snackbarClasses'; -const useThemeProps = createUseThemeProps('MuiSnackbar'); - const useUtilityClasses = (ownerState) => { const { classes, anchorOrigin } = ownerState; @@ -92,7 +91,7 @@ const SnackbarRoot = styled('div', { })); const Snackbar = React.forwardRef(function Snackbar(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiSnackbar' }); + const props = useDefaultProps({ props: inProps, name: 'MuiSnackbar' }); const theme = useTheme(); const defaultTransitionDuration = { enter: theme.transitions.duration.enteringScreen, diff --git a/packages/mui-material/src/SnackbarContent/SnackbarContent.js b/packages/mui-material/src/SnackbarContent/SnackbarContent.js index 10e1e774167f23..da761faad762f0 100644 --- a/packages/mui-material/src/SnackbarContent/SnackbarContent.js +++ b/packages/mui-material/src/SnackbarContent/SnackbarContent.js @@ -4,12 +4,11 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import { emphasize } from '@mui/system/colorManipulator'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Paper from '../Paper'; import { getSnackbarContentUtilityClass } from './snackbarContentClasses'; -const useThemeProps = createUseThemeProps('MuiSnackbarContent'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -70,7 +69,7 @@ const SnackbarContentAction = styled('div', { }); const SnackbarContent = React.forwardRef(function SnackbarContent(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiSnackbarContent' }); + const props = useDefaultProps({ props: inProps, name: 'MuiSnackbarContent' }); const { action, className, message, role = 'alert', ...other } = props; const ownerState = props; const classes = useUtilityClasses(ownerState); diff --git a/packages/mui-material/src/SpeedDial/SpeedDial.js b/packages/mui-material/src/SpeedDial/SpeedDial.js index 5fec02b848c903..9c9badd4f085da 100644 --- a/packages/mui-material/src/SpeedDial/SpeedDial.js +++ b/packages/mui-material/src/SpeedDial/SpeedDial.js @@ -6,7 +6,8 @@ import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import useTimeout from '@mui/utils/useTimeout'; import clamp from '@mui/utils/clamp'; -import { styled, createUseThemeProps, useTheme } from '../zero-styled'; +import { styled, useTheme } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Zoom from '../Zoom'; import Fab from '../Fab'; import capitalize from '../utils/capitalize'; @@ -16,8 +17,6 @@ import useControlled from '../utils/useControlled'; import speedDialClasses, { getSpeedDialUtilityClass } from './speedDialClasses'; import useSlot from '../utils/useSlot'; -const useThemeProps = createUseThemeProps('MuiSpeedDial'); - const useUtilityClasses = (ownerState) => { const { classes, open, direction } = ownerState; @@ -143,7 +142,7 @@ const SpeedDialActions = styled('div', { }); const SpeedDial = React.forwardRef(function SpeedDial(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiSpeedDial' }); + const props = useDefaultProps({ props: inProps, name: 'MuiSpeedDial' }); const theme = useTheme(); const defaultTransitionDuration = { enter: theme.transitions.duration.enteringScreen, diff --git a/packages/mui-material/src/SpeedDialAction/SpeedDialAction.js b/packages/mui-material/src/SpeedDialAction/SpeedDialAction.js index 50729eccf4a4f1..e93a42155ccddc 100644 --- a/packages/mui-material/src/SpeedDialAction/SpeedDialAction.js +++ b/packages/mui-material/src/SpeedDialAction/SpeedDialAction.js @@ -5,14 +5,13 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import { emphasize } from '@mui/system/colorManipulator'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Fab from '../Fab'; import Tooltip from '../Tooltip'; import capitalize from '../utils/capitalize'; import speedDialActionClasses, { getSpeedDialActionUtilityClass } from './speedDialActionClasses'; -const useThemeProps = createUseThemeProps('MuiSpeedDialAction'); - const useUtilityClasses = (ownerState) => { const { open, tooltipPlacement, classes } = ownerState; @@ -137,7 +136,7 @@ const SpeedDialActionStaticTooltipLabel = styled('span', { })); const SpeedDialAction = React.forwardRef(function SpeedDialAction(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiSpeedDialAction' }); + const props = useDefaultProps({ props: inProps, name: 'MuiSpeedDialAction' }); const { className, delay = 0, diff --git a/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.js b/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.js index 06dfaebd0ae7bb..9943a79ee0a1d3 100644 --- a/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.js +++ b/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.js @@ -3,12 +3,11 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import AddIcon from '../internal/svg-icons/Add'; import speedDialIconClasses, { getSpeedDialIconUtilityClass } from './speedDialIconClasses'; -const useThemeProps = createUseThemeProps('MuiSpeedDialIcon'); - const useUtilityClasses = (ownerState) => { const { classes, open, openIcon } = ownerState; @@ -84,7 +83,7 @@ const SpeedDialIconRoot = styled('span', { })); const SpeedDialIcon = React.forwardRef(function SpeedDialIcon(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiSpeedDialIcon' }); + const props = useDefaultProps({ props: inProps, name: 'MuiSpeedDialIcon' }); const { className, icon: iconProp, open, openIcon: openIconProp, ...other } = props; const ownerState = props; diff --git a/packages/mui-material/src/Step/Step.js b/packages/mui-material/src/Step/Step.js index 61bd9567935007..048efdbb8a03a4 100644 --- a/packages/mui-material/src/Step/Step.js +++ b/packages/mui-material/src/Step/Step.js @@ -6,11 +6,10 @@ import integerPropType from '@mui/utils/integerPropType'; import composeClasses from '@mui/utils/composeClasses'; import StepperContext from '../Stepper/StepperContext'; import StepContext from './StepContext'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getStepUtilityClass } from './stepClasses'; -const useThemeProps = createUseThemeProps('MuiStep'); - const useUtilityClasses = (ownerState) => { const { classes, orientation, alternativeLabel, completed } = ownerState; @@ -54,7 +53,7 @@ const StepRoot = styled('div', { }); const Step = React.forwardRef(function Step(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiStep' }); + const props = useDefaultProps({ props: inProps, name: 'MuiStep' }); const { active: activeProp, children, diff --git a/packages/mui-material/src/StepButton/StepButton.js b/packages/mui-material/src/StepButton/StepButton.js index a724a65805bc51..86b75c33b6a9f7 100644 --- a/packages/mui-material/src/StepButton/StepButton.js +++ b/packages/mui-material/src/StepButton/StepButton.js @@ -3,7 +3,8 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import ButtonBase from '../ButtonBase'; import StepLabel from '../StepLabel'; import isMuiElement from '../utils/isMuiElement'; @@ -11,8 +12,6 @@ import StepperContext from '../Stepper/StepperContext'; import StepContext from '../Step/StepContext'; import stepButtonClasses, { getStepButtonUtilityClass } from './stepButtonClasses'; -const useThemeProps = createUseThemeProps('MuiStepButton'); - const useUtilityClasses = (ownerState) => { const { classes, orientation } = ownerState; @@ -57,7 +56,7 @@ const StepButtonRoot = styled(ButtonBase, { }); const StepButton = React.forwardRef(function StepButton(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiStepButton' }); + const props = useDefaultProps({ props: inProps, name: 'MuiStepButton' }); const { children, className, icon, optional, ...other } = props; const { disabled, active } = React.useContext(StepContext); diff --git a/packages/mui-material/src/StepConnector/StepConnector.js b/packages/mui-material/src/StepConnector/StepConnector.js index a7fb2da0d41939..3d6f439096668b 100644 --- a/packages/mui-material/src/StepConnector/StepConnector.js +++ b/packages/mui-material/src/StepConnector/StepConnector.js @@ -4,13 +4,12 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import capitalize from '../utils/capitalize'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import StepperContext from '../Stepper/StepperContext'; import StepContext from '../Step/StepContext'; import { getStepConnectorUtilityClass } from './stepConnectorClasses'; -const useThemeProps = createUseThemeProps('MuiStepConnector'); - const useUtilityClasses = (ownerState) => { const { classes, orientation, alternativeLabel, active, completed, disabled } = ownerState; @@ -98,7 +97,7 @@ const StepConnectorLine = styled('span', { }); const StepConnector = React.forwardRef(function StepConnector(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiStepConnector' }); + const props = useDefaultProps({ props: inProps, name: 'MuiStepConnector' }); const { className, ...other } = props; const { alternativeLabel, orientation = 'horizontal' } = React.useContext(StepperContext); diff --git a/packages/mui-material/src/StepContent/StepContent.js b/packages/mui-material/src/StepContent/StepContent.js index 528685347c41d0..8584ea779da836 100644 --- a/packages/mui-material/src/StepContent/StepContent.js +++ b/packages/mui-material/src/StepContent/StepContent.js @@ -3,14 +3,13 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Collapse from '../Collapse'; import StepperContext from '../Stepper/StepperContext'; import StepContext from '../Step/StepContext'; import { getStepContentUtilityClass } from './stepContentClasses'; -const useThemeProps = createUseThemeProps('MuiStepContent'); - const useUtilityClasses = (ownerState) => { const { classes, last } = ownerState; @@ -53,7 +52,7 @@ const StepContentTransition = styled(Collapse, { })({}); const StepContent = React.forwardRef(function StepContent(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiStepContent' }); + const props = useDefaultProps({ props: inProps, name: 'MuiStepContent' }); const { children, className, diff --git a/packages/mui-material/src/StepIcon/StepIcon.js b/packages/mui-material/src/StepIcon/StepIcon.js index 6ed6c6c31ccc5a..f51d3c070ef061 100644 --- a/packages/mui-material/src/StepIcon/StepIcon.js +++ b/packages/mui-material/src/StepIcon/StepIcon.js @@ -3,14 +3,13 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import CheckCircle from '../internal/svg-icons/CheckCircle'; import Warning from '../internal/svg-icons/Warning'; import SvgIcon from '../SvgIcon'; import stepIconClasses, { getStepIconUtilityClass } from './stepIconClasses'; -const useThemeProps = createUseThemeProps('MuiStepIcon'); - const useUtilityClasses = (ownerState) => { const { classes, active, completed, error } = ownerState; @@ -54,7 +53,7 @@ const StepIconText = styled('text', { })); const StepIcon = React.forwardRef(function StepIcon(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiStepIcon' }); + const props = useDefaultProps({ props: inProps, name: 'MuiStepIcon' }); const { active = false, className: classNameProp, diff --git a/packages/mui-material/src/StepLabel/StepLabel.js b/packages/mui-material/src/StepLabel/StepLabel.js index e70efaacc6c2f2..41441f449525aa 100644 --- a/packages/mui-material/src/StepLabel/StepLabel.js +++ b/packages/mui-material/src/StepLabel/StepLabel.js @@ -6,12 +6,11 @@ import * as React from 'react'; import StepContext from '../Step/StepContext'; import StepIcon from '../StepIcon'; import StepperContext from '../Stepper/StepperContext'; -import { createUseThemeProps, styled } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import stepLabelClasses, { getStepLabelUtilityClass } from './stepLabelClasses'; import useSlot from '../utils/useSlot'; -const useThemeProps = createUseThemeProps('MuiStepLabel'); - const useUtilityClasses = (ownerState) => { const { classes, orientation, active, completed, error, disabled, alternativeLabel } = ownerState; @@ -124,7 +123,7 @@ const StepLabelLabelContainer = styled('span', { })); const StepLabel = React.forwardRef(function StepLabel(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiStepLabel' }); + const props = useDefaultProps({ props: inProps, name: 'MuiStepLabel' }); const { children, className, diff --git a/packages/mui-material/src/Stepper/Stepper.js b/packages/mui-material/src/Stepper/Stepper.js index 34d5e8d0dbf35a..d80c29df95ede0 100644 --- a/packages/mui-material/src/Stepper/Stepper.js +++ b/packages/mui-material/src/Stepper/Stepper.js @@ -4,13 +4,12 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import integerPropType from '@mui/utils/integerPropType'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getStepperUtilityClass } from './stepperClasses'; import StepConnector from '../StepConnector'; import StepperContext from './StepperContext'; -const useThemeProps = createUseThemeProps('MuiStepper'); - const useUtilityClasses = (ownerState) => { const { orientation, nonLinear, alternativeLabel, classes } = ownerState; const slots = { @@ -60,7 +59,7 @@ const StepperRoot = styled('div', { const defaultConnector = ; const Stepper = React.forwardRef(function Stepper(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiStepper' }); + const props = useDefaultProps({ props: inProps, name: 'MuiStepper' }); const { activeStep = 0, alternativeLabel = false, diff --git a/packages/mui-material/src/SvgIcon/SvgIcon.js b/packages/mui-material/src/SvgIcon/SvgIcon.js index 7aeae60d5f7539..04d38dac8b3c27 100644 --- a/packages/mui-material/src/SvgIcon/SvgIcon.js +++ b/packages/mui-material/src/SvgIcon/SvgIcon.js @@ -4,11 +4,10 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import capitalize from '../utils/capitalize'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getSvgIconUtilityClass } from './svgIconClasses'; -const useThemeProps = createUseThemeProps('MuiSvgIcon'); - const useUtilityClasses = (ownerState) => { const { color, fontSize, classes } = ownerState; @@ -92,7 +91,7 @@ const SvgIconRoot = styled('svg', { })); const SvgIcon = React.forwardRef(function SvgIcon(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiSvgIcon' }); + const props = useDefaultProps({ props: inProps, name: 'MuiSvgIcon' }); const { children, className, diff --git a/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.js b/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.js index 5be8cdab8d0bb6..35a2a03ebb8f14 100644 --- a/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.js +++ b/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.js @@ -10,12 +10,11 @@ import ownerDocument from '../utils/ownerDocument'; import ownerWindow from '../utils/ownerWindow'; import useEventCallback from '../utils/useEventCallback'; import useEnhancedEffect from '../utils/useEnhancedEffect'; -import { createUseThemeProps, useTheme } from '../zero-styled'; +import { useTheme } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getTransitionProps } from '../transitions/utils'; import SwipeArea from './SwipeArea'; -const useThemeProps = createUseThemeProps('MuiSwipeableDrawer'); - // This value is closed to what browsers are using internally to // trigger a native scroll. const UNCERTAINTY_THRESHOLD = 3; // px @@ -136,7 +135,7 @@ function computeHasNativeHandler({ domTreeShapes, start, current, anchor }) { const iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent); const SwipeableDrawer = React.forwardRef(function SwipeableDrawer(inProps, ref) { - const props = useThemeProps({ name: 'MuiSwipeableDrawer', props: inProps }); + const props = useDefaultProps({ name: 'MuiSwipeableDrawer', props: inProps }); const theme = useTheme(); const transitionDurationDefault = { enter: theme.transitions.duration.enteringScreen, diff --git a/packages/mui-material/src/Switch/Switch.js b/packages/mui-material/src/Switch/Switch.js index 0731297c81972e..f69e5e7ffb799c 100644 --- a/packages/mui-material/src/Switch/Switch.js +++ b/packages/mui-material/src/Switch/Switch.js @@ -8,11 +8,10 @@ import composeClasses from '@mui/utils/composeClasses'; import { alpha, darken, lighten } from '@mui/system/colorManipulator'; import capitalize from '../utils/capitalize'; import SwitchBase from '../internal/SwitchBase'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import switchClasses, { getSwitchUtilityClass } from './switchClasses'; -const useThemeProps = createUseThemeProps('MuiSwitch'); - const useUtilityClasses = (ownerState) => { const { classes, edge, size, color, checked, disabled } = ownerState; @@ -216,7 +215,7 @@ const SwitchThumb = styled('span', { })); const Switch = React.forwardRef(function Switch(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiSwitch' }); + const props = useDefaultProps({ props: inProps, name: 'MuiSwitch' }); const { className, color = 'primary', edge = false, size = 'medium', sx, ...other } = props; const ownerState = { diff --git a/packages/mui-material/src/Tab/Tab.js b/packages/mui-material/src/Tab/Tab.js index 9a466ebf92d76c..ed3fd8ac3a3cf6 100644 --- a/packages/mui-material/src/Tab/Tab.js +++ b/packages/mui-material/src/Tab/Tab.js @@ -5,12 +5,11 @@ import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import ButtonBase from '../ButtonBase'; import capitalize from '../utils/capitalize'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import unsupportedProp from '../utils/unsupportedProp'; import tabClasses, { getTabUtilityClass } from './tabClasses'; -const useThemeProps = createUseThemeProps('MuiTab'); - const useUtilityClasses = (ownerState) => { const { classes, textColor, fullWidth, wrapped, icon, label, selected, disabled } = ownerState; @@ -186,7 +185,7 @@ const TabRoot = styled(ButtonBase, { })); const Tab = React.forwardRef(function Tab(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTab' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTab' }); const { className, disabled = false, diff --git a/packages/mui-material/src/TabScrollButton/TabScrollButton.js b/packages/mui-material/src/TabScrollButton/TabScrollButton.js index e9a3fa1e476b20..a331bde367a628 100644 --- a/packages/mui-material/src/TabScrollButton/TabScrollButton.js +++ b/packages/mui-material/src/TabScrollButton/TabScrollButton.js @@ -9,11 +9,10 @@ import { useRtl } from '@mui/system/RtlProvider'; import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft'; import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight'; import ButtonBase from '../ButtonBase'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import tabScrollButtonClasses, { getTabScrollButtonUtilityClass } from './tabScrollButtonClasses'; -const useThemeProps = createUseThemeProps('MuiTabScrollButton'); - const useUtilityClasses = (ownerState) => { const { classes, orientation, disabled } = ownerState; @@ -56,7 +55,7 @@ const TabScrollButtonRoot = styled(ButtonBase, { }); const TabScrollButton = React.forwardRef(function TabScrollButton(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTabScrollButton' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTabScrollButton' }); const { className, slots = {}, diff --git a/packages/mui-material/src/Table/Table.js b/packages/mui-material/src/Table/Table.js index d513e8e4528850..60ddc6b4626b95 100644 --- a/packages/mui-material/src/Table/Table.js +++ b/packages/mui-material/src/Table/Table.js @@ -4,11 +4,10 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import TableContext from './TableContext'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getTableUtilityClass } from './tableClasses'; -const useThemeProps = createUseThemeProps('MuiTable'); - const useUtilityClasses = (ownerState) => { const { classes, stickyHeader } = ownerState; @@ -52,7 +51,7 @@ const TableRoot = styled('table', { const defaultComponent = 'table'; const Table = React.forwardRef(function Table(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTable' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTable' }); const { className, component = defaultComponent, diff --git a/packages/mui-material/src/TableBody/TableBody.js b/packages/mui-material/src/TableBody/TableBody.js index 9116e8274d0cb1..40ad6e652d8fdf 100644 --- a/packages/mui-material/src/TableBody/TableBody.js +++ b/packages/mui-material/src/TableBody/TableBody.js @@ -4,11 +4,10 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import Tablelvl2Context from '../Table/Tablelvl2Context'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getTableBodyUtilityClass } from './tableBodyClasses'; -const useThemeProps = createUseThemeProps('MuiTableBody'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -34,7 +33,7 @@ const tablelvl2 = { const defaultComponent = 'tbody'; const TableBody = React.forwardRef(function TableBody(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTableBody' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTableBody' }); const { className, component = defaultComponent, ...other } = props; const ownerState = { diff --git a/packages/mui-material/src/TableCell/TableCell.js b/packages/mui-material/src/TableCell/TableCell.js index 71a8c53e1013a2..b4180528e0e370 100644 --- a/packages/mui-material/src/TableCell/TableCell.js +++ b/packages/mui-material/src/TableCell/TableCell.js @@ -7,11 +7,10 @@ import { darken, alpha, lighten } from '@mui/system/colorManipulator'; import capitalize from '../utils/capitalize'; import TableContext from '../Table/TableContext'; import Tablelvl2Context from '../Table/Tablelvl2Context'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import tableCellClasses, { getTableCellUtilityClass } from './tableCellClasses'; -const useThemeProps = createUseThemeProps('MuiTableCell'); - const useUtilityClasses = (ownerState) => { const { classes, variant, align, padding, size, stickyHeader } = ownerState; @@ -171,7 +170,7 @@ const TableCellRoot = styled('td', { * or otherwise a `` element. */ const TableCell = React.forwardRef(function TableCell(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTableCell' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTableCell' }); const { align = 'inherit', className, diff --git a/packages/mui-material/src/TableContainer/TableContainer.js b/packages/mui-material/src/TableContainer/TableContainer.js index f786b6192e247b..1140e605cf4220 100644 --- a/packages/mui-material/src/TableContainer/TableContainer.js +++ b/packages/mui-material/src/TableContainer/TableContainer.js @@ -3,11 +3,10 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getTableContainerUtilityClass } from './tableContainerClasses'; -const useThemeProps = createUseThemeProps('MuiTableContainer'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -28,7 +27,7 @@ const TableContainerRoot = styled('div', { }); const TableContainer = React.forwardRef(function TableContainer(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTableContainer' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTableContainer' }); const { className, component = 'div', ...other } = props; const ownerState = { diff --git a/packages/mui-material/src/TableFooter/TableFooter.js b/packages/mui-material/src/TableFooter/TableFooter.js index 5de3b7d0a3909d..5f652088392255 100644 --- a/packages/mui-material/src/TableFooter/TableFooter.js +++ b/packages/mui-material/src/TableFooter/TableFooter.js @@ -4,11 +4,10 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import Tablelvl2Context from '../Table/Tablelvl2Context'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getTableFooterUtilityClass } from './tableFooterClasses'; -const useThemeProps = createUseThemeProps('MuiTableFooter'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -34,7 +33,7 @@ const tablelvl2 = { const defaultComponent = 'tfoot'; const TableFooter = React.forwardRef(function TableFooter(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTableFooter' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTableFooter' }); const { className, component = defaultComponent, ...other } = props; const ownerState = { diff --git a/packages/mui-material/src/TableHead/TableHead.js b/packages/mui-material/src/TableHead/TableHead.js index 32943035f0911b..4724d8d0534ef0 100644 --- a/packages/mui-material/src/TableHead/TableHead.js +++ b/packages/mui-material/src/TableHead/TableHead.js @@ -4,11 +4,10 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import Tablelvl2Context from '../Table/Tablelvl2Context'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getTableHeadUtilityClass } from './tableHeadClasses'; -const useThemeProps = createUseThemeProps('MuiTableHead'); - const useUtilityClasses = (ownerState) => { const { classes } = ownerState; @@ -34,7 +33,7 @@ const tablelvl2 = { const defaultComponent = 'thead'; const TableHead = React.forwardRef(function TableHead(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTableHead' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTableHead' }); const { className, component = defaultComponent, ...other } = props; const ownerState = { diff --git a/packages/mui-material/src/TablePagination/TablePagination.js b/packages/mui-material/src/TablePagination/TablePagination.js index 3aad5afa263e01..e55660a64c54f2 100644 --- a/packages/mui-material/src/TablePagination/TablePagination.js +++ b/packages/mui-material/src/TablePagination/TablePagination.js @@ -6,7 +6,8 @@ import integerPropType from '@mui/utils/integerPropType'; import chainPropTypes from '@mui/utils/chainPropTypes'; import { isHostComponent } from '@mui/base/utils'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import InputBase from '../InputBase'; import MenuItem from '../MenuItem'; import Select from '../Select'; @@ -16,8 +17,6 @@ import TablePaginationActions from './TablePaginationActions'; import useId from '../utils/useId'; import tablePaginationClasses, { getTablePaginationUtilityClass } from './tablePaginationClasses'; -const useThemeProps = createUseThemeProps('MuiTablePagination'); - const TablePaginationRoot = styled(TableCell, { name: 'MuiTablePagination', slot: 'Root', @@ -140,7 +139,7 @@ const useUtilityClasses = (ownerState) => { * A `TableCell` based component for placing inside `TableFooter` for pagination. */ const TablePagination = React.forwardRef(function TablePagination(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTablePagination' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTablePagination' }); const { ActionsComponent = TablePaginationActions, backIconButtonProps, diff --git a/packages/mui-material/src/TableRow/TableRow.js b/packages/mui-material/src/TableRow/TableRow.js index d96f9fce5745d4..eec9ee944c429c 100644 --- a/packages/mui-material/src/TableRow/TableRow.js +++ b/packages/mui-material/src/TableRow/TableRow.js @@ -5,11 +5,10 @@ import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import { alpha } from '@mui/system/colorManipulator'; import Tablelvl2Context from '../Table/Tablelvl2Context'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import tableRowClasses, { getTableRowUtilityClass } from './tableRowClasses'; -const useThemeProps = createUseThemeProps('MuiTableRow'); - const useUtilityClasses = (ownerState) => { const { classes, selected, hover, head, footer } = ownerState; @@ -58,7 +57,7 @@ const defaultComponent = 'tr'; * based on the material table element parent (head, body, etc). */ const TableRow = React.forwardRef(function TableRow(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTableRow' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTableRow' }); const { className, component = defaultComponent, diff --git a/packages/mui-material/src/TableSortLabel/TableSortLabel.js b/packages/mui-material/src/TableSortLabel/TableSortLabel.js index 67da18573c774b..dee42f5355b249 100644 --- a/packages/mui-material/src/TableSortLabel/TableSortLabel.js +++ b/packages/mui-material/src/TableSortLabel/TableSortLabel.js @@ -5,12 +5,11 @@ import PropTypes from 'prop-types'; import * as React from 'react'; import ButtonBase from '../ButtonBase'; import ArrowDownwardIcon from '../internal/svg-icons/ArrowDownward'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import tableSortLabelClasses, { getTableSortLabelUtilityClass } from './tableSortLabelClasses'; -const useThemeProps = createUseThemeProps('MuiTableSortLabel'); - const useUtilityClasses = (ownerState) => { const { classes, direction, active } = ownerState; @@ -95,7 +94,7 @@ const TableSortLabelIcon = styled('span', { * A button based label for placing inside `TableCell` for column sorting. */ const TableSortLabel = React.forwardRef(function TableSortLabel(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTableSortLabel' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTableSortLabel' }); const { active = false, children, diff --git a/packages/mui-material/src/Tabs/Tabs.js b/packages/mui-material/src/Tabs/Tabs.js index 435b0702ddb6f9..6d02a527234fb8 100644 --- a/packages/mui-material/src/Tabs/Tabs.js +++ b/packages/mui-material/src/Tabs/Tabs.js @@ -7,7 +7,8 @@ import refType from '@mui/utils/refType'; import { useSlotProps } from '@mui/base/utils'; import composeClasses from '@mui/utils/composeClasses'; import { useRtl } from '@mui/system/RtlProvider'; -import { styled, createUseThemeProps, useTheme } from '../zero-styled'; +import { styled, useTheme } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import debounce from '../utils/debounce'; import animate from '../internal/animate'; import ScrollbarSize from './ScrollbarSize'; @@ -17,8 +18,6 @@ import tabsClasses, { getTabsUtilityClass } from './tabsClasses'; import ownerDocument from '../utils/ownerDocument'; import ownerWindow from '../utils/ownerWindow'; -const useThemeProps = createUseThemeProps('MuiTabs'); - const nextItem = (list, item) => { if (list === item) { return list.firstChild; @@ -274,7 +273,7 @@ const defaultIndicatorStyle = {}; let warnedOnceTabPresent = false; const Tabs = React.forwardRef(function Tabs(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTabs' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTabs' }); const theme = useTheme(); const isRtl = useRtl(); const { diff --git a/packages/mui-material/src/TextField/TextField.js b/packages/mui-material/src/TextField/TextField.js index 6f0c0d14c0cade..4efdcc9124f01a 100644 --- a/packages/mui-material/src/TextField/TextField.js +++ b/packages/mui-material/src/TextField/TextField.js @@ -5,7 +5,8 @@ import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import useId from '@mui/utils/useId'; import refType from '@mui/utils/refType'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import Input from '../Input'; import FilledInput from '../FilledInput'; import OutlinedInput from '../OutlinedInput'; @@ -16,8 +17,6 @@ import Select from '../Select'; import { getTextFieldUtilityClass } from './textFieldClasses'; import useSlot from '../utils/useSlot'; -const useThemeProps = createUseThemeProps('MuiTextField'); - const variantComponent = { standard: Input, filled: FilledInput, @@ -73,7 +72,7 @@ const TextFieldRoot = styled(FormControl, { * - using the underlying components directly as shown in the demos */ const TextField = React.forwardRef(function TextField(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTextField' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTextField' }); const { autoComplete, autoFocus = false, diff --git a/packages/mui-material/src/ToggleButton/ToggleButton.js b/packages/mui-material/src/ToggleButton/ToggleButton.js index f80211201960b8..4515537658200d 100644 --- a/packages/mui-material/src/ToggleButton/ToggleButton.js +++ b/packages/mui-material/src/ToggleButton/ToggleButton.js @@ -8,14 +8,13 @@ import composeClasses from '@mui/utils/composeClasses'; import { alpha } from '@mui/system/colorManipulator'; import ButtonBase from '../ButtonBase'; import capitalize from '../utils/capitalize'; -import { createUseThemeProps, styled } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import toggleButtonClasses, { getToggleButtonUtilityClass } from './toggleButtonClasses'; import ToggleButtonGroupContext from '../ToggleButtonGroup/ToggleButtonGroupContext'; import ToggleButtonGroupButtonContext from '../ToggleButtonGroup/ToggleButtonGroupButtonContext'; import isValueSelected from '../ToggleButtonGroup/isValueSelected'; -const useThemeProps = createUseThemeProps('MuiToggleButton'); - const useUtilityClasses = (ownerState) => { const { classes, fullWidth, selected, disabled, size, color } = ownerState; @@ -147,7 +146,7 @@ const ToggleButton = React.forwardRef(function ToggleButton(inProps, ref) { { ...contextProps, selected: isValueSelected(inProps.value, contextValue) }, inProps, ); - const props = useThemeProps({ props: resolvedProps, name: 'MuiToggleButton' }); + const props = useDefaultProps({ props: resolvedProps, name: 'MuiToggleButton' }); const { children, className, diff --git a/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.js b/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.js index 73e31065a0c4c1..a817027acf3fc2 100644 --- a/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.js +++ b/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.js @@ -5,7 +5,8 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; import getValidReactChildren from '@mui/utils/getValidReactChildren'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import toggleButtonGroupClasses, { getToggleButtonGroupUtilityClass, @@ -14,8 +15,6 @@ import ToggleButtonGroupContext from './ToggleButtonGroupContext'; import ToggleButtonGroupButtonContext from './ToggleButtonGroupButtonContext'; import toggleButtonClasses from '../ToggleButton/toggleButtonClasses'; -const useThemeProps = createUseThemeProps('MuiToggleButtonGroup'); - const useUtilityClasses = (ownerState) => { const { classes, orientation, fullWidth, disabled } = ownerState; @@ -125,7 +124,7 @@ const ToggleButtonGroupRoot = styled('div', { })); const ToggleButtonGroup = React.forwardRef(function ToggleButtonGroup(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiToggleButtonGroup' }); + const props = useDefaultProps({ props: inProps, name: 'MuiToggleButtonGroup' }); const { children, className, diff --git a/packages/mui-material/src/Toolbar/Toolbar.js b/packages/mui-material/src/Toolbar/Toolbar.js index 6a9733d2680580..3e6458f477c6f8 100644 --- a/packages/mui-material/src/Toolbar/Toolbar.js +++ b/packages/mui-material/src/Toolbar/Toolbar.js @@ -3,11 +3,10 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps } from '../zero-styled'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import { getToolbarUtilityClass } from './toolbarClasses'; -const useThemeProps = createUseThemeProps('MuiToolbar'); - const useUtilityClasses = (ownerState) => { const { classes, disableGutters, variant } = ownerState; @@ -60,7 +59,7 @@ const ToolbarRoot = styled('div', { })); const Toolbar = React.forwardRef(function Toolbar(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiToolbar' }); + const props = useDefaultProps({ props: inProps, name: 'MuiToolbar' }); const { className, component = 'div', diff --git a/packages/mui-material/src/Tooltip/Tooltip.js b/packages/mui-material/src/Tooltip/Tooltip.js index 512e79347176e2..f9425f6f6a3430 100644 --- a/packages/mui-material/src/Tooltip/Tooltip.js +++ b/packages/mui-material/src/Tooltip/Tooltip.js @@ -8,7 +8,8 @@ import { appendOwnerState } from '@mui/base/utils'; import composeClasses from '@mui/utils/composeClasses'; import { alpha } from '@mui/system/colorManipulator'; import { useRtl } from '@mui/system/RtlProvider'; -import { styled, createUseThemeProps, useTheme } from '../zero-styled'; +import { styled, useTheme } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import Grow from '../Grow'; import Popper from '../Popper'; @@ -19,8 +20,6 @@ import useIsFocusVisible from '../utils/useIsFocusVisible'; import useControlled from '../utils/useControlled'; import tooltipClasses, { getTooltipUtilityClass } from './tooltipClasses'; -const useThemeProps = createUseThemeProps('MuiTooltip'); - function round(value) { return Math.round(value * 1e5) / 1e5; } @@ -305,7 +304,7 @@ function composeEventHandler(handler, eventHandler) { // TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps. const Tooltip = React.forwardRef(function Tooltip(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiTooltip' }); + const props = useDefaultProps({ props: inProps, name: 'MuiTooltip' }); const { arrow = false, children: childrenProp, diff --git a/packages/mui-material/src/Typography/Typography.js b/packages/mui-material/src/Typography/Typography.js index 11c5e434c778aa..394d708564231a 100644 --- a/packages/mui-material/src/Typography/Typography.js +++ b/packages/mui-material/src/Typography/Typography.js @@ -3,11 +3,11 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import composeClasses from '@mui/utils/composeClasses'; -import { styled, createUseThemeProps, internal_createExtendSxProp } from '../zero-styled'; +import { styled, internal_createExtendSxProp } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; import capitalize from '../utils/capitalize'; import { getTypographyUtilityClass } from './typographyClasses'; -const useThemeProps = createUseThemeProps('MuiTypography'); const extendSxProp = internal_createExtendSxProp(); const useUtilityClasses = (ownerState) => { @@ -127,7 +127,7 @@ const colorTransformations = { }; const Typography = React.forwardRef(function Typography(inProps, ref) { - const { color, ...themeProps } = useThemeProps({ props: inProps, name: 'MuiTypography' }); + const { color, ...themeProps } = useDefaultProps({ props: inProps, name: 'MuiTypography' }); const textColor = colorTransformations[color]; const props = extendSxProp({ ...themeProps, diff --git a/packages/mui-material/src/zero-styled/index.tsx b/packages/mui-material/src/zero-styled/index.tsx index fa7a468615daba..e56c98cf9182d1 100644 --- a/packages/mui-material/src/zero-styled/index.tsx +++ b/packages/mui-material/src/zero-styled/index.tsx @@ -1,6 +1,5 @@ import * as React from 'react'; import { extendSxProp } from '@mui/system/styleFunctionSx'; -import useThemeProps from '../styles/useThemeProps'; import useTheme from '../styles/useTheme'; import GlobalStyles, { GlobalStylesProps } from '../GlobalStyles'; @@ -14,11 +13,6 @@ export function globalCss(styles: GlobalStylesProps['styles']) { }; } -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function createUseThemeProps(name: string) { - return useThemeProps; -} - // eslint-disable-next-line @typescript-eslint/naming-convention export function internal_createExtendSxProp() { return extendSxProp; diff --git a/packages/mui-system/src/DefaultPropsProvider/DefaultPropsProvider.tsx b/packages/mui-system/src/DefaultPropsProvider/DefaultPropsProvider.tsx new file mode 100644 index 00000000000000..0c6435addd90c6 --- /dev/null +++ b/packages/mui-system/src/DefaultPropsProvider/DefaultPropsProvider.tsx @@ -0,0 +1,61 @@ +'use client'; +import * as React from 'react'; +import PropTypes from 'prop-types'; +import resolveProps from '@mui/utils/resolveProps'; + +const PropsContext = React.createContext | undefined>(undefined); + +function DefaultPropsProvider({ + value, + children, +}: React.PropsWithChildren<{ value: Record | undefined }>) { + return {children}; +} + +DefaultPropsProvider.propTypes /* remove-proptypes */ = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * @ignore + */ + children: PropTypes.node, + /** + * @ignore + */ + value: PropTypes.object, +} as any; + +function getThemeProps< + Theme extends { + components?: Record; + }, + Props, + Name extends string, +>(params: { props: Props; name: Name; theme?: Theme }): Props { + const { theme, name, props } = params; + + if (!theme || !theme.components || !theme.components[name]) { + return props; + } + const config = theme.components[name]; + + if (config.defaultProps) { + // compatible with v5 signature + return resolveProps(config.defaultProps, props); + } + + if (!config.styleOverrides && !config.variants) { + // v6 signature, no property 'defaultProps' + return resolveProps(config as any, props); + } + return props; +} + +export function useDefaultProps({ props, name }: { props: Props; name: string }) { + const ctx = React.useContext(PropsContext); + return getThemeProps({ props, name, theme: { components: ctx } }); +} + +export default DefaultPropsProvider; diff --git a/packages/mui-system/src/DefaultPropsProvider/index.ts b/packages/mui-system/src/DefaultPropsProvider/index.ts new file mode 100644 index 00000000000000..646b9a27128699 --- /dev/null +++ b/packages/mui-system/src/DefaultPropsProvider/index.ts @@ -0,0 +1 @@ +export { default, useDefaultProps } from './DefaultPropsProvider'; diff --git a/packages/mui-system/src/ThemeProvider/ThemeProvider.js b/packages/mui-system/src/ThemeProvider/ThemeProvider.js index 760b4c4645ee50..71f7fec85e9095 100644 --- a/packages/mui-system/src/ThemeProvider/ThemeProvider.js +++ b/packages/mui-system/src/ThemeProvider/ThemeProvider.js @@ -9,6 +9,7 @@ import exactProp from '@mui/utils/exactProp'; import { ThemeContext as StyledEngineThemeContext } from '@mui/styled-engine'; import useThemeWithoutDefault from '../useThemeWithoutDefault'; import RtlProvider from '../RtlProvider'; +import DefaultPropsProvider from '../DefaultPropsProvider'; const EMPTY_THEME = {}; @@ -67,7 +68,9 @@ function ThemeProvider(props) { return ( - {children} + + {children} + ); diff --git a/packages/mui-system/src/cssVars/createCssVarsProvider.test.js b/packages/mui-system/src/cssVars/createCssVarsProvider.test.js index f011109d6a28ff..53330ceb47507c 100644 --- a/packages/mui-system/src/cssVars/createCssVarsProvider.test.js +++ b/packages/mui-system/src/cssVars/createCssVarsProvider.test.js @@ -734,14 +734,16 @@ describe('createCssVarsProvider', () => { const { CssVarsProvider } = createCssVarsProvider({ theme: createCssVarsTheme({ colorSchemes: { light: { fontSize: 16 } }, - components: 'any', + components: { + foo: 'bar', + }, }), defaultColorScheme: 'light', }); function Text() { const theme = useTheme(); - return
{theme.vars.components}
; + return
{theme.vars.components?.foo}
; } render( @@ -749,7 +751,7 @@ describe('createCssVarsProvider', () => { , ); - expect(screen.getByTestId('text').textContent).not.to.equal('var(--components)'); + expect(screen.getByTestId('text').textContent).not.to.equal('var(--components-foo)'); }); it('`defaultMode` is specified', () => { From 9476434bf51c7012cc401968b4c91ee3cd49c114 Mon Sep 17 00:00:00 2001 From: Daniel Khakbaz Date: Thu, 20 Jun 2024 15:24:30 +0330 Subject: [PATCH 17/65] [docs][material-ui][Select] Fix the `SelectAutoWidth` demo menu item value (#42648) Signed-off-by: Daniel Khakbaz Co-authored-by: ZeeshanTamboli --- docs/data/material/components/selects/SelectAutoWidth.js | 2 +- docs/data/material/components/selects/SelectAutoWidth.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/data/material/components/selects/SelectAutoWidth.js b/docs/data/material/components/selects/SelectAutoWidth.js index e47d0de7d21b6c..0d56a041c980f4 100644 --- a/docs/data/material/components/selects/SelectAutoWidth.js +++ b/docs/data/material/components/selects/SelectAutoWidth.js @@ -26,7 +26,7 @@ export default function SelectAutoWidth() { None - Twenty + Twenty Twenty one Twenty one and a half diff --git a/docs/data/material/components/selects/SelectAutoWidth.tsx b/docs/data/material/components/selects/SelectAutoWidth.tsx index c8688083fd33f9..8f0c8a7acb3d96 100644 --- a/docs/data/material/components/selects/SelectAutoWidth.tsx +++ b/docs/data/material/components/selects/SelectAutoWidth.tsx @@ -26,7 +26,7 @@ export default function SelectAutoWidth() { None - Twenty + Twenty Twenty one Twenty one and a half From a6ecef359b69844e06f3d57659fb864ecd398bb0 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com> Date: Fri, 21 Jun 2024 09:10:17 +0200 Subject: [PATCH 18/65] [docs] Fix 301 links (#42697) --- docs/pages/blog/mui-x-end-v6-features.md | 2 +- docs/pages/blog/mui-x-mid-v6-features.md | 2 +- docs/src/components/pricing/PricingTable.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pages/blog/mui-x-end-v6-features.md b/docs/pages/blog/mui-x-end-v6-features.md index e350c4af838be7..b105d483733837 100644 --- a/docs/pages/blog/mui-x-end-v6-features.md +++ b/docs/pages/blog/mui-x-end-v6-features.md @@ -146,7 +146,7 @@ Most notably: - New UI for column management - Pivoting for the [Premium](/x/react-data-grid/#premium-plan) version -We'll continue to expand our portfolio of Charts, including [Heatmap](/x/react-charts/heat-map/), [Funnel](/x/react-charts/funnel/), and [Gantt](/x/react-charts/gantt/); and explore virtualization and other advanced use cases for the Tree View component. +We'll continue to expand our portfolio of Charts, including [Heatmap](/x/react-charts/heatmap/), [Funnel](/x/react-charts/funnel/), and [Gantt](/x/react-charts/gantt/); and explore virtualization and other advanced use cases for the Tree View component. We encourage you to upvote issues on GitHub to help us prioritize. Your input directly influences our development schedule, so don't hesitate to let us know what matters most to you! diff --git a/docs/pages/blog/mui-x-mid-v6-features.md b/docs/pages/blog/mui-x-mid-v6-features.md index 8348b66c7e2baa..c8d8b3fad5152b 100644 --- a/docs/pages/blog/mui-x-mid-v6-features.md +++ b/docs/pages/blog/mui-x-mid-v6-features.md @@ -112,7 +112,7 @@ Check out the video below, highlighting some of our Charts: As we progress toward the stable version, we're committed to enhancing the overall experience for developers and users, so your feedback is fundamental! -We will also steadily expand our portfolio with new chart types such as [Heatmap](https://mui.com/x/react-charts/heat-map/), [Funnel](https://mui.com/x/react-charts/funnel/), [Gantt](https://mui.com/x/react-charts/gantt/), and more. +We will also steadily expand our portfolio with new chart types such as [Heatmap](https://mui.com/x/react-charts/heatmap/), [Funnel](https://mui.com/x/react-charts/funnel/), [Gantt](https://mui.com/x/react-charts/gantt/), and more. If there's a specific chart visualization you'd like us to prioritize, we encourage you to upvote the respective [issue on GitHub](https://github.com/mui/mui-x/issues?q=is%3Aissue+is%3Aopen+label%3A%22component%3A+charts%22+label%3A%22waiting+for+%F0%9F%91%8D%22). Your input can directly influence our development schedule, so don't hesitate to let us know what matters most to you! diff --git a/docs/src/components/pricing/PricingTable.tsx b/docs/src/components/pricing/PricingTable.tsx index ebbb229409f9b3..e6f59ff66df62f 100644 --- a/docs/src/components/pricing/PricingTable.tsx +++ b/docs/src/components/pricing/PricingTable.tsx @@ -597,8 +597,8 @@ const rowHeaders: Record = { 'charts/pie': , 'charts/sparkline': , 'charts/gauge': , - 'charts/treemap': , - 'charts/heatmap': , + 'charts/treemap': , + 'charts/heatmap': , 'charts/radar': , 'charts/funnel': , 'charts/sankey': , From e8abc17d5c4c1f759e926ece44489d22884b54b5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:12:10 +0200 Subject: [PATCH 19/65] Bump marked to ^13.0.0 (#42665) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ZeeshanTamboli --- docs/package.json | 2 +- packages/markdown/package.json | 2 +- packages/markdown/parseMarkdown.js | 24 +++++++++++++----------- pnpm-lock.yaml | 16 ++++++++-------- 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/docs/package.json b/docs/package.json index 3b0219898c1d55..664709cbb1e37a 100644 --- a/docs/package.json +++ b/docs/package.json @@ -132,7 +132,7 @@ "chai": "^4.4.1", "cross-fetch": "^4.0.0", "gm": "^1.25.0", - "marked": "^5.1.2", + "marked": "^13.0.0", "playwright": "^1.44.1", "prettier": "^3.3.2", "tailwindcss": "^3.4.4", diff --git a/packages/markdown/package.json b/packages/markdown/package.json index 69a4515e45a0fb..643f36fccae791 100644 --- a/packages/markdown/package.json +++ b/packages/markdown/package.json @@ -22,7 +22,7 @@ "dependencies": { "@babel/runtime": "^7.24.7", "lodash": "^4.17.21", - "marked": "^5.1.2", + "marked": "^13.0.0", "prismjs": "^1.29.0" }, "devDependencies": { diff --git a/packages/markdown/parseMarkdown.js b/packages/markdown/parseMarkdown.js index d0f1fd3cdab0c3..3432a346e2e728 100644 --- a/packages/markdown/parseMarkdown.js +++ b/packages/markdown/parseMarkdown.js @@ -309,12 +309,13 @@ function createRender(context) { */ function render(markdown) { const renderer = new marked.Renderer(); - renderer.heading = (headingHtml, level) => { + renderer.heading = function heading({ tokens, depth: level }) { // Main title, no need for an anchor. // It adds noises to the URL. // // Small title, no need for an anchor. // It reduces the risk of duplicated id and it's fewer elements in the DOM. + const headingHtml = this.parser.parseInline(tokens); if (level === 1 || level >= 4) { return `${headingHtml}`; } @@ -372,11 +373,12 @@ function createRender(context) { ``, ].join(''); }; - renderer.link = (href, linkTitle, linkText) => { + renderer.link = function link({ href, title, tokens }) { + const linkText = this.parser.parseInline(tokens); let more = ''; - if (linkTitle) { - more += ` title="${linkTitle}"`; + if (title) { + more += ` title="${title}"`; } if (noSEOadvantage.some((domain) => href.indexOf(domain) !== -1)) { @@ -404,17 +406,17 @@ function createRender(context) { return `${linkText}`; }; - renderer.code = (code, infostring, escaped) => { + renderer.code = ({ lang, text, escaped }) => { // https://github.com/markedjs/marked/blob/30e90e5175700890e6feb1836c57b9404c854466/src/Renderer.js#L15 - const lang = (infostring || '').match(/\S*/)[0]; - const title = (infostring || '').match(/title="([^"]*)"/)?.[1]; - const out = prism(code, lang); - if (out != null && out !== code) { + const langString = (lang || '').match(/\S*/)[0]; + const title = (lang || '').match(/title="([^"]*)"/)?.[1]; + const out = prism(text, langString); + if (out != null && out !== text) { escaped = true; - code = out; + text = out; } - code = `${code.replace(/\n$/, '')}\n`; + const code = `${text.replace(/\n$/, '')}\n`; if (!lang) { return `
${escaped ? code : escape(code, true)}
\n`; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f4b0b8fc6927a7..831d0c0d465769 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -888,8 +888,8 @@ importers: specifier: ^1.25.0 version: 1.25.0 marked: - specifier: ^5.1.2 - version: 5.1.2 + specifier: ^13.0.0 + version: 13.0.0 playwright: specifier: ^1.44.1 version: 1.44.1 @@ -1252,8 +1252,8 @@ importers: specifier: ^4.17.21 version: 4.17.21 marked: - specifier: ^5.1.2 - version: 5.1.2 + specifier: ^13.0.0 + version: 13.0.0 prismjs: specifier: ^1.29.0 version: 1.29.0 @@ -9123,9 +9123,9 @@ packages: resolution: {integrity: sha512-qwGyuyKwjkEMOJ10XN6OTKNOVYvOIi35RNvDLNxTof5s8UmyGHlCdpngRHoRGNvQVGuxO3BJ7uNSgdeX166WXw==} engines: {node: '>=18'} - marked@5.1.2: - resolution: {integrity: sha512-ahRPGXJpjMjwSOlBoTMZAK7ATXkli5qCPxZ21TG44rx1KEo44bii4ekgTDQPNRQ4Kh7JMb9Ub1PVk1NxRSsorg==} - engines: {node: '>= 16'} + marked@13.0.0: + resolution: {integrity: sha512-VTeDCd9txf4KLLljUZ0nljE/Incb9SrWuueE44QVuU0pkOdh4sfCeW1Z6lPcxyDRSVY6rm8db/0OPaN75RNUmw==} + engines: {node: '>= 18'} hasBin: true marky@1.2.5: @@ -20886,7 +20886,7 @@ snapshots: markdown-it: 14.1.0 markdownlint-micromark: 0.1.9 - marked@5.1.2: {} + marked@13.0.0: {} marky@1.2.5: {} From b9b9c217dc069ffc51f80980c58b1a987e80d55f Mon Sep 17 00:00:00 2001 From: Alex Liu Date: Sat, 22 Jun 2024 00:51:44 +0800 Subject: [PATCH 20/65] [material-ui][usePagination] Update pagination `siblingsEnd` calculation logic (#42667) Co-authored-by: ZeeshanTamboli --- packages/mui-material/src/usePagination/usePagination.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-material/src/usePagination/usePagination.js b/packages/mui-material/src/usePagination/usePagination.js index 63cd2d10cc4c0e..999a419cf4d589 100644 --- a/packages/mui-material/src/usePagination/usePagination.js +++ b/packages/mui-material/src/usePagination/usePagination.js @@ -63,7 +63,7 @@ export default function usePagination(props = {}) { boundaryCount + siblingCount * 2 + 2, ), // Less than endPages - endPages.length > 0 ? endPages[0] - 2 : count - 1, + count - boundaryCount - 1, ); // Basic list of items to render From 9ffa010dfb051830aad0a4d8f611caec6e64bd3b Mon Sep 17 00:00:00 2001 From: Diego Andai Date: Fri, 21 Jun 2024 14:37:25 -0400 Subject: [PATCH 21/65] [material-ui][Autocomplete] Fix renderOption props type (#42689) --- packages/mui-material/src/Autocomplete/Autocomplete.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-material/src/Autocomplete/Autocomplete.d.ts b/packages/mui-material/src/Autocomplete/Autocomplete.d.ts index 8c12280c8ea32d..ab215eeae54cef 100644 --- a/packages/mui-material/src/Autocomplete/Autocomplete.d.ts +++ b/packages/mui-material/src/Autocomplete/Autocomplete.d.ts @@ -325,7 +325,7 @@ export interface AutocompleteProps< * @returns {ReactNode} */ renderOption?: ( - props: React.HTMLAttributes, + props: React.HTMLAttributes & { key: any }, option: Value, state: AutocompleteRenderOptionState, ownerState: AutocompleteOwnerState, From 2e057759bf3a7e6a5a88fde8bb884aa082a34316 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sat, 22 Jun 2024 22:28:36 +0200 Subject: [PATCH 22/65] [docs] Use new email for sponsoring We want to test Front in anticipation of using it for Custom Success. Based on the experience, we could either kill Front and move to Freshdesk or stay on it. --- docs/data/material/discover-more/backers/backers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/data/material/discover-more/backers/backers.md b/docs/data/material/discover-more/backers/backers.md index 3ddd593cf5ec46..a88996b84f1ce1 100644 --- a/docs/data/material/discover-more/backers/backers.md +++ b/docs/data/material/discover-more/backers/backers.md @@ -134,7 +134,7 @@ Your organization logo will be prominently featured: - the [README.md](https://github.com/mui/material-ui#sponsors) (80k+ unique visitors/month) - the [Diamond sponsor list](#diamond-sponsors) -Please contact us at sales@mui.com before subscribing to this tier to get preliminary approval. +Please contact us at sponsoring@mui.com before subscribing to this tier to get preliminary approval. ### Gold From 6dfef05b5c1ba0231334d91f6c6282f071b9f744 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 23 Jun 2024 11:27:23 +0200 Subject: [PATCH 23/65] [docs] Fix git diff format in migration to v6 (#42711) --- .../migration/migration-v5/migration-v5.md | 6 +- packages/mui-codemod/README.md | 384 +++++++++--------- 2 files changed, 200 insertions(+), 190 deletions(-) diff --git a/docs/data/material/migration/migration-v5/migration-v5.md b/docs/data/material/migration/migration-v5/migration-v5.md index 69dee66bce5203..0d9607f8c54b5b 100644 --- a/docs/data/material/migration/migration-v5/migration-v5.md +++ b/docs/data/material/migration/migration-v5/migration-v5.md @@ -69,8 +69,8 @@ import Chip from '@mui/material/Chip'; export default function ChipExample() { const chipRef = React.useRef(null); const keyUpHandler = (event) => { - if (event.key === 'Escape' && chipRef.current) { - chipRef.current.blur(); + if (event.key === 'Escape') { + chipRef.current!.blur(); } }; return ( @@ -101,7 +101,7 @@ This removes the need for the `disableEqualOverflow` prop, so you can remove it: ```diff ``` diff --git a/packages/mui-codemod/README.md b/packages/mui-codemod/README.md index bcf8b4090895f8..87afe393fbe0f6 100644 --- a/packages/mui-codemod/README.md +++ b/packages/mui-codemod/README.md @@ -106,7 +106,7 @@ JS transforms: - [`& .${accordionSummaryClasses.contentGutters}`]: { + [`&.${accordionSummaryClasses.gutters} .${accordionSummaryClasses.content}`]: { color: 'red', - }, + }, }, }, }, @@ -119,7 +119,7 @@ JS transforms: - '& .MuiAccordionSummary-contentGutters': { + '&.MuiAccordionSummary-gutters .MuiAccordionSummary-content': { color: 'red', - }, + }, }, }, }, @@ -130,7 +130,6 @@ CSS transforms: ```diff -.MuiAccordionSummary-root .MuiAccordionSummary-contentGutters +.MuiAccordionSummary-root.MuiAccordionSummary-gutters .MuiAccordionSummary-content - /> ``` ```bash @@ -150,51 +149,51 @@ JS transforms: - [`&.${alertClasses.standardSuccess}`]: { + [`&.${alertClasses.standard}.${alertClasses.colorSuccess}`]: { color: 'red', - }, + }, - [`&.${alertClasses.standardInfo}`]: { + [`&.${alertClasses.standard}.${alertClasses.colorInfo}`]: { color: 'red', - }, + }, - [`&.${alertClasses.standardWarning}`]: { + [`&.${alertClasses.standard}.${alertClasses.colorWarning}`]: { color: 'red', - }, + }, - [`&.${alertClasses.standardError}`]: { + [`&.${alertClasses.standard}.${alertClasses.colorError}`]: { color: 'red', - }, + }, - [`&.${alertClasses.outlinedSuccess}`]: { + [`&.${alertClasses.outlined}.${alertClasses.colorSuccess}`]: { color: 'red', - }, + }, - [`&.${alertClasses.outlinedInfo}`]: { + [`&.${alertClasses.outlined}.${alertClasses.colorInfo}`]: { color: 'red', - }, + }, - [`&.${alertClasses.outlinedWarning}`]: { + [`&.${alertClasses.outlined}.${alertClasses.colorWarning}`]: { color: 'red', - }, + }, - [`&.${alertClasses.outlinedError}`]: { + [`&.${alertClasses.outlined}.${alertClasses.colorError}`]: { color: 'red', - }, + }, - [`&.${alertClasses.filledSuccess}`]: { + [`&.${alertClasses.filled}.${alertClasses.colorSuccess}`]: { color: 'red', - }, + }, - [`&.${alertClasses.filledInfo}`]: { + [`&.${alertClasses.filled}.${alertClasses.colorInfo}`]: { color: 'red', - }, + }, - [`&.${alertClasses.filledWarning}`]: { + [`&.${alertClasses.filled}.${alertClasses.colorWarning}`]: { color: 'red', - }, + }, - [`&.${alertClasses.filledError}`]: { + [`&.${alertClasses.filled}.${alertClasses.colorError}`]: { color: 'red', - }, + }, }, }, }, @@ -238,8 +237,8 @@ npx @mui/codemod@next deprecations/alert-classes ```diff ``` @@ -248,10 +247,10 @@ npx @mui/codemod@next deprecations/alert-classes MuiAlert: { defaultProps: { - components: { CloseButton: CustomButton } -+ slots: { closeButton: CustomButton }, - componentsProps: { closeButton: { testid: 'test-id' }} ++ slots: { closeButton: CustomButton }, + slotProps: { closeButton: { testid: 'test-id' } }, - }, + }, }, ``` @@ -330,29 +329,29 @@ npx @mui/codemod@next deprecations/autocomplete-props ```diff ; + /> ``` ```diff ; + /> ``` ```diff MuiAvatarGroup: { defaultProps: { - componentsProps: { -- additionalAvatar: {color: "red"} +- additionalAvatar: { color: 'red' }, + slotProps: { -+ surplus: {color: "red"} ++ surplus: { color: 'red' }, }, }, }, @@ -362,8 +361,8 @@ npx @mui/codemod@next deprecations/autocomplete-props MuiAvatarGroup: { defaultProps: { slotProps: { -- additionalAvatar: {color: "red"} -+ surplus: {color: "red"} +- additionalAvatar: { color: 'red' }, ++ surplus: { color: 'red' }, }, }, }, @@ -384,9 +383,9 @@ npx @mui/codemod@next deprecations/avatar-group-props + img: { + onError: () => {}, + onLoad: () => {}, -+ } ++ }, }} - />; + /> ``` #### `backdrop-props` @@ -394,8 +393,8 @@ npx @mui/codemod@next deprecations/avatar-group-props ```diff ``` @@ -404,8 +403,8 @@ npx @mui/codemod@next deprecations/avatar-group-props MuiBackdrop: { defaultProps: { - components: { Root: CustomRoot } -+ slots: { root: CustomRoot }, - componentsProps: { root: { testid: 'root-id' } } ++ slots: { root: CustomRoot }, + slotProps: { root: { testid: 'root-id' } }, }, }, @@ -413,8 +412,8 @@ npx @mui/codemod@next deprecations/avatar-group-props ```diff ``` @@ -427,8 +426,8 @@ npx @mui/codemod@next deprecations/backdrop-props ```diff ``` @@ -437,8 +436,8 @@ npx @mui/codemod@next deprecations/backdrop-props MuiBadge: { defaultProps: { - components: { Root: CustomRoot } -+ slots: { root: CustomRoot }, - componentsProps: { root: { testid: 'test-id' }} ++ slots: { root: CustomRoot }, + slotProps: { root: { testid: 'test-id' } }, }, }, @@ -461,135 +460,135 @@ JS transforms: - [`&.${buttonClasses.textInherit}`]: { + [`&.${buttonClasses.text}.${buttonClasses.colorInherit}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.textPrimary}`]: { + [`&.${buttonClasses.text}.${buttonClasses.colorPrimary}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.textSecondary}`]: { + [`&.${buttonClasses.text}.${buttonClasses.colorSecondary}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.textSuccess}`]: { + [`&.${buttonClasses.text}.${buttonClasses.colorSuccess}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.textError}`]: { + [`&.${buttonClasses.text}.${buttonClasses.colorError}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.textInfo}`]: { + [`&.${buttonClasses.text}.${buttonClasses.colorInfo}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.textWarning}`]: { + [`&.${buttonClasses.text}.${buttonClasses.colorWarning}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.outlinedInherit}`]: { + [`&.${buttonClasses.outlined}.${buttonClasses.colorInherit}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.outlinedPrimary}`]: { + [`&.${buttonClasses.outlined}.${buttonClasses.colorPrimary}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.outlinedSecondary}`]: { + [`&.${buttonClasses.outlined}.${buttonClasses.colorSecondary}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.outlinedSuccess}`]: { + [`&.${buttonClasses.outlined}.${buttonClasses.colorSuccess}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.outlinedError}`]: { + [`&.${buttonClasses.outlined}.${buttonClasses.colorError}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.outlinedInfo}`]: { + [`&.${buttonClasses.outlined}.${buttonClasses.colorInfo}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.outlinedWarning}`]: { + [`&.${buttonClasses.outlined}.${buttonClasses.colorWarning}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.containedInherit}`]: { + [`&.${buttonClasses.contained}.${buttonClasses.colorInherit}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.containedPrimary}`]: { + [`&.${buttonClasses.contained}.${buttonClasses.colorPrimary}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.containedSecondary}`]: { + [`&.${buttonClasses.contained}.${buttonClasses.colorSecondary}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.containedSuccess}`]: { + [`&.${buttonClasses.contained}.${buttonClasses.colorSuccess}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.containedError}`]: { + [`&.${buttonClasses.contained}.${buttonClasses.colorError}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.containedInfo}`]: { + [`&.${buttonClasses.contained}.${buttonClasses.colorInfo}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.containedWarning}`]: { + [`&.${buttonClasses.contained}.${buttonClasses.colorWarning}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.containedSizeSmall}`]: { + [`&.${buttonClasses.contained}.${buttonClasses.sizeSmall}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.containedSizeMedium}`]: { + [`&.${buttonClasses.contained}.${buttonClasses.sizeMedium}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.containedSizeLarge}`]: { + [`&.${buttonClasses.contained}.${buttonClasses.sizeLarge}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.textSizeSmall}`]: { + [`&.${buttonClasses.text}.${buttonClasses.sizeSmall}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.textSizeMedium}`]: { + [`&.${buttonClasses.text}.${buttonClasses.sizeMedium}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.textSizeLarge}`]: { + [`&.${buttonClasses.text}.${buttonClasses.sizeLarge}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.outlinedSizeSmall}`]: { + [`&.${buttonClasses.outlined}.${buttonClasses.sizeSmall}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.outlinedSizeMedium}`]: { + [`&.${buttonClasses.outlined}.${buttonClasses.sizeMedium}`]: { color: 'red', - }, + }, - [`&.${buttonClasses.outlinedSizeLarge}`]: { + [`&.${buttonClasses.outlined}.${buttonClasses.sizeLarge}`]: { color: 'red', - }, + }, - [`& .${buttonClasses.iconSizeSmall}`]: { + [`&.${buttonClasses.sizeSmall} > .${buttonClasses.icon}`]: { color: 'red', - }, + }, - [`& .${buttonClasses.iconSizeMedium}`]: { + [`&.${buttonClasses.sizeMedium} > .${buttonClasses.icon}`]: { color: 'red', - }, + }, - [`& .${buttonClasses.iconSizeLarge}`]: { + [`&.${buttonClasses.sizeLarge} > .${buttonClasses.icon}`]: { color: 'red', - }, + }, }, }, }, @@ -664,7 +663,6 @@ CSS transforms: +.MuiButton-root.MuiButton-sizeMedium > .MuiButton-icon -.MuiButton-root .MuiButton-iconSizeLarge +.MuiButton-root.MuiButton-sizeLarge > .MuiButton-icon - /> ``` ```bash @@ -684,71 +682,71 @@ JS transforms: - [`& .${buttonGroupClasses.groupedHorizontal}`]: { + [`&.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedVertical}`]: { + [`&.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedText}`]: { + [`&.${buttonGroupClasses.text} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedTextHorizontal}`]: { + [`&.${buttonGroupClasses.text}.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedTextVertical}`]: { + [`&.${buttonGroupClasses.text}.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedTextPrimary}`]: { + [`&.${buttonGroupClasses.text}.${buttonGroupClasses.colorPrimary} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedTextSecondary}`]: { + [`&.${buttonGroupClasses.text}.${buttonGroupClasses.colorSecondary} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedOutlined}`]: { + [`&.${buttonGroupClasses.outlined} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedOutlinedHorizontal}`]: { + [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedOutlinedVertical}`]: { + [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedOutlinedPrimary}`]: { + [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.colorPrimary} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedOutlinedSecondary}`]: { + [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.colorSecondary} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedContained}`]: { + [`&.${buttonGroupClasses.contained} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedContainedHorizontal}`]: { + [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedContainedVertical}`]: { + [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedContainedPrimary}`]: { + [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.colorPrimary} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${buttonGroupClasses.groupedContainedSecondary}`]: { + [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.colorSecondary} > .${buttonGroupClasses.grouped}`]: { color: 'red', - }, + }, }, }, }, @@ -811,107 +809,107 @@ JS transforms: - [`&.${chipClasses.clickableColorPrimary}`]: { + [`&.${chipClasses.clickable}.${chipClasses.colorPrimary}`]: { color: 'red', - }, + }, - [`&.${chipClasses.clickableColorSecondary}`]: { + [`&.${chipClasses.clickable}.${chipClasses.colorSecondary}`]: { color: 'red', - }, + }, - [`&.${chipClasses.deletableColorPrimary}`]: { + [`&.${chipClasses.deletable}.${chipClasses.colorPrimary}`]: { color: 'red', - }, + }, - [`&.${chipClasses.deletableColorSecondary}`]: { + [`&.${chipClasses.deletable}.${chipClasses.colorSecondary}`]: { color: 'red', - }, + }, - [`&.${chipClasses.outlinedPrimary}`]: { + [`&.${chipClasses.outlined}.${chipClasses.colorPrimary}`]: { color: 'red', - }, + }, - [`&.${chipClasses.outlinedSecondary}`]: { + [`&.${chipClasses.outlined}.${chipClasses.colorSecondary}`]: { color: 'red', - }, + }, - [`&.${chipClasses.filledPrimary}`]: { + [`&.${chipClasses.filled}.${chipClasses.colorPrimary}`]: { color: 'red', - }, + }, - [`&.${chipClasses.filledSecondary}`]: { + [`&.${chipClasses.filled}.${chipClasses.colorSecondary}`]: { color: 'red', - }, + }, - [`& .${chipClasses.avatarSmall}`]: { + [`&.${chipClasses.sizeSmall} > .${chipClasses.avatar}`]: { color: 'red', - }, + }, - [`& .${chipClasses.avatarMedium}`]: { + [`&.${chipClasses.sizeMedium} > .${chipClasses.avatar}`]: { color: 'red', - }, + }, - [`& .${chipClasses.avatarColorPrimary}`]: { + [`&.${chipClasses.colorPrimary} > .${chipClasses.avatar}`]: { color: 'red', - }, + }, - [`& .${chipClasses.avatarColorSecondary}`]: { + [`&.${chipClasses.colorSecondary} > .${chipClasses.avatar}`]: { color: 'red', - }, + }, - [`& .${chipClasses.iconSmall}`]: { + [`&.${chipClasses.sizeSmall} > .${chipClasses.icon}`]: { color: 'red', - }, + }, - [`& .${chipClasses.iconMedium}`]: { + [`&.${chipClasses.sizeMedium} > .${chipClasses.icon}`]: { color: 'red', - }, + }, - [`& .${chipClasses.iconColorPrimary}`]: { + [`&.${chipClasses.colorPrimary} > .${chipClasses.icon}`]: { color: 'red', - }, + }, - [`& .${chipClasses.iconColorSecondary}`]: { + [`&.${chipClasses.colorSecondary} > .${chipClasses.icon}`]: { color: 'red', - }, + }, - [`& .${chipClasses.labelSmall}`]: { + [`&.${chipClasses.sizeSmall} > .${chipClasses.label}`]: { color: 'red', - }, + }, - [`& .${chipClasses.labelMedium}`]: { + [`&.${chipClasses.sizeMedium} > .${chipClasses.label}`]: { color: 'red', - }, + }, - [`& .${chipClasses.deleteIconSmall}`]: { + [`&.${chipClasses.sizeSmall} > .${chipClasses.deleteIcon}`]: { color: 'red', - }, + }, - [`& .${chipClasses.deleteIconMedium}`]: { + [`&.${chipClasses.sizeMedium} > .${chipClasses.deleteIcon}`]: { color: 'red', - }, + }, - [`& .${chipClasses.deleteIconColorPrimary}`]: { + [`&.${chipClasses.colorPrimary} > .${chipClasses.deleteIcon}`]: { color: 'red', - }, + }, - [`& .${chipClasses.deleteIconColorSecondary}`]: { + [`&.${chipClasses.colorSecondary} > .${chipClasses.deleteIcon}`]: { color: 'red', - }, + }, - [`& .${chipClasses.deleteIconOutlinedColorPrimary}`]: { + [`&.${chipClasses.outlined}.${chipClasses.colorPrimary} > .${chipClasses.deleteIcon}`]: { color: 'red', - }, + }, - [`& .${chipClasses.deleteIconOutlinedColorSecondary}`]: { + [`&.${chipClasses.outlined}.${chipClasses.colorSecondary} > .${chipClasses.deleteIcon}`]: { color: 'red', - }, + }, - [`& .${chipClasses.deleteIconFilledColorPrimary}`]: { + [`&.${chipClasses.filled}.${chipClasses.colorPrimary} > .${chipClasses.deleteIcon}`]: { color: 'red', - }, + }, - [`& .${chipClasses.deleteIconFilledColorSecondary}`]: { + [`&.${chipClasses.filled}.${chipClasses.colorSecondary} > .${chipClasses.deleteIcon}`]: { color: 'red', - }, + }, }, }, }, @@ -992,11 +990,11 @@ JS transforms: - [`& .${circularProgressClasses.circleDeterminate}`]: { + [`&.${circularProgressClasses.determinate} > .${circularProgressClasses.circle}`]: { color: 'red', - }, + }, - [`& .${circularProgressClasses.circleIndeterminate}`]: { + [`&.${circularProgressClasses.indeterminate} > .${circularProgressClasses.circle}`]: { color: 'red', - }, + }, }, }, }, @@ -1005,9 +1003,12 @@ JS transforms: CSS transforms: ```diff -- .MuiCircularProgress-circleDeterminate +-.MuiCircularProgress-circleDeterminate +.MuiCircularProgress-determinate > .MuiCircularProgress-circle -- .MuiCircularProgress-circleIndeterminate +``` + +```diff +-.MuiCircularProgress-circleIndeterminate +.MuiCircularProgress-indeterminate > .MuiCircularProgress-circle ``` @@ -1020,7 +1021,7 @@ npx @mui/codemod@next deprecations/circular-progress-classes ```diff ``` @@ -1033,8 +1034,8 @@ npx @mui/codemod@next deprecations/divider-props ```diff ``` @@ -1043,8 +1044,8 @@ npx @mui/codemod@next deprecations/divider-props MuiFilledInput: { defaultProps: { - components: { Input: CustomInput, Root: CustomRoot } -+ slots: { input: CustomInput, root: CustomRoot }, - componentsProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } } ++ slots: { input: CustomInput, root: CustomRoot }, + slotProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }, }, }, @@ -1066,9 +1067,9 @@ npx @mui/codemod@next deprecations/filled-input-props ```diff MuiFormControlLabel: { defaultProps: { -- componentsProps={{ typography: typographyProps }} -+ slotProps={{ typography: typographyProps }} - }, +- componentsProps={{ typography: typographyProps }} ++ slotProps={{ typography: typographyProps }} + }, }, ``` @@ -1082,8 +1083,8 @@ npx @mui/codemod@next deprecations/form-control-label-props ```diff ``` @@ -1092,8 +1093,8 @@ npx @mui/codemod@next deprecations/form-control-label-props MuiListItem: { defaultProps: { - components: { Root: CustomRoot } -+ slots: { root: CustomRoot }, - componentsProps: { root: { testid: 'test-id' }} ++ slots: { root: CustomRoot }, + slotProps: { root: { testid: 'test-id' } }, }, }, @@ -1107,8 +1108,8 @@ npx @mui/codemod@next deprecations/list-item-props ```diff ``` @@ -1121,8 +1122,8 @@ npx @mui/codemod@next deprecations/grid-props ```diff ``` @@ -1131,8 +1132,8 @@ npx @mui/codemod@next deprecations/grid-props MuiInputBase: { defaultProps: { - components: { Input: CustomInput, Root: CustomRoot } -+ slots: { input: CustomInput, root: CustomRoot }, - componentsProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } } ++ slots: { input: CustomInput, root: CustomRoot }, + slotProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }, }, }, @@ -1147,8 +1148,8 @@ npx @mui/codemod@next deprecations/input-base-props ```diff ``` @@ -1157,8 +1158,8 @@ npx @mui/codemod@next deprecations/input-base-props MuiInput: { defaultProps: { - components: { Input: CustomInput, Root: CustomRoot } -+ slots: { input: CustomInput, root: CustomRoot }, - componentsProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } } ++ slots: { input: CustomInput, root: CustomRoot }, + slotProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }, }, }, @@ -1173,8 +1174,8 @@ npx @mui/codemod@next deprecations/input-props ```diff ``` @@ -1183,8 +1184,8 @@ npx @mui/codemod@next deprecations/input-props MuiModal: { defaultProps: { - components: { Root: CustomRoot, Backdrop: CustomBackdrop } -+ slots: { root: CustomRoot, backdrop: CustomBackdrop }, - componentsProps: { root: { testid: 'root-id' }, backdrop: { testid: 'backdrop-id' }} ++ slots: { root: CustomRoot, backdrop: CustomBackdrop }, + slotProps: { root: { testid: 'root-id' }, backdrop: { testid: 'backdrop-id' } }, }, }, @@ -1207,35 +1208,35 @@ JS transforms: - [`&.${paginationItemClasses.textPrimary}`]: { + [`&.${paginationItemClasses.text}.${paginationItemClasses.colorPrimary}`]: { color: 'red', - }, + }, - [`&.${paginationItemClasses.textSecondary}`]: { + [`&.${paginationItemClasses.text}.${paginationItemClasses.colorSecondary}`]: { color: 'red', - }, + }, - [`&.${paginationItemClasses.outlinedPrimary}`]: { + [`&.${paginationItemClasses.outlined}.${paginationItemClasses.colorPrimary}`]: { color: 'red', - }, + }, - [`&.${paginationItemClasses.outlinedSecondary}`]: { + [`&.${paginationItemClasses.outlined}.${paginationItemClasses.colorSecondary}`]: { color: 'red', - }, + }, - '&.MuiPaginationItem-textPrimary': { + '&.MuiPaginationItem-text.MuiPaginationItem-colorPrimary': { color: 'red', - }, + }, - '&.MuiPaginationItem-textSecondary': { + '&.MuiPaginationItem-text.MuiPaginationItem-colorSecondary': { color: 'red', - }, + }, - '&.MuiPaginationItem-outlinedPrimary': { + '&.MuiPaginationItem-outlined.MuiPaginationItem-colorPrimary': { color: 'red', - }, + }, - '&.MuiPaginationItem-outlinedSecondary': { + '&.MuiPaginationItem-outlined.MuiPaginationItem-colorSecondary': { color: 'red', - }, + }, }, }, }, @@ -1285,8 +1286,8 @@ npx @mui/codemod@next deprecations/pagination-item-props ```diff ``` @@ -1295,8 +1296,8 @@ npx @mui/codemod@next deprecations/pagination-item-props MuiPopper: { defaultProps: { - components: { Root: CustomRoot } -+ slots: { root: CustomRoot }, - componentsProps: { root: { testid: 'test-id' }} ++ slots: { root: CustomRoot }, + slotProps: { root: { testid: 'test-id' } }, }, }, @@ -1311,8 +1312,8 @@ npx @mui/codemod@next deprecations/popper-props ```diff ``` @@ -1321,8 +1322,8 @@ npx @mui/codemod@next deprecations/popper-props MuiOutlinedInput: { defaultProps: { - components: { Input: CustomInput, Root: CustomRoot } -+ slots: { input: CustomInput, root: CustomRoot }, - componentsProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } } ++ slots: { input: CustomInput, root: CustomRoot }, + slotProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }, }, }, @@ -1337,8 +1338,8 @@ npx @mui/codemod@next deprecations/outlined-input-props ```diff ``` @@ -1347,8 +1348,8 @@ npx @mui/codemod@next deprecations/outlined-input-props MuiSlider: { defaultProps: { - components: { Track: CustomTrack } -+ slots: { track: CustomTrack }, - componentsProps: { track: { testid: 'test-id' }} ++ slots: { track: CustomTrack }, + slotProps: { track: { testid: 'test-id' } }, }, }, @@ -1363,8 +1364,8 @@ npx @mui/codemod@next deprecations/slider-props ```diff ``` @@ -1397,11 +1398,11 @@ JS transforms: - [`& .${stepConnectorClasses.lineHorizontal}`]: { + [`&.${stepConnectorClasses.horizontal} > .${stepConnectorClasses.line}`]: { color: 'red', - }, + }, - [`& .${stepConnectorClasses.lineVertical}`]: { + [`&.${stepConnectorClasses.vertical} > .${stepConnectorClasses.line}`]: { color: 'red', - }, + }, }, }, }, @@ -1441,18 +1442,18 @@ npx @mui/codemod@latest deprecations/step-label-props ```diff ``` @@ -1473,11 +1474,11 @@ JS transforms: - [`& .${toggleButtonGroupClasses.groupedHorizontal}`]: { + [`&.${toggleButtonGroupClasses.horizontal} > .${toggleButtonGroupClasses.grouped}`]: { color: 'red', - }, + }, - [`& .${toggleButtonGroupClasses.groupedVertical}`]: { + [`&.${toggleButtonGroupClasses.vertical} > .${toggleButtonGroupClasses.grouped}`]: { color: 'red', - }, + }, }, }, }, @@ -1488,9 +1489,11 @@ CSS transforms: ```diff -.MuiToggleButtonGroup-root .MuiToggleButtonGroup-groupedHorizontal +.MuiToggleButtonGroup-root.MuiToggleButtonGroup-horizontal > .MuiToggleButtonGroup-grouped +``` + +```diff -.MuiToggleButtonGroup-root .MuiToggleButtonGroup-groupedVertical +.MuiToggleButtonGroup-root.MuiToggleButtonGroup-vertical > .MuiToggleButtonGroup-grouped - /> ``` ```bash @@ -1500,9 +1503,12 @@ npx @mui/codemod@latest deprecations/toggle-button-group-classes CSS transforms: ```diff -- .MuiStepConnector-lineHorizontal +-.MuiStepConnector-lineHorizontal +.MuiStepConnector-horizontal > .MuiStepConnector-line -- .MuiStepConnector-lineVertical +``` + +```diff +-.MuiStepConnector-lineVertical +.MuiStepConnector-vertical > .MuiStepConnector-line ``` @@ -1523,7 +1529,8 @@ JS transforms: - [`& .${tabClasses.iconWrapper}`]: { + [`& .${tabClasses.icon}`]: { color: 'red', - }, + }, + }, }, }, ``` @@ -1531,8 +1538,8 @@ JS transforms: CSS transforms: ```diff -- .MuiTab-iconWrapper -+ .MuiTab-icon +-.MuiTab-iconWrapper ++.MuiTab-icon ``` ```bash @@ -1552,11 +1559,11 @@ JS transforms: - [`& .${tableSortLabelClasses.iconDirectionDesc}`]: { + [`&.${tableSortLabelClasses.directionDesc} > .${tableSortLabelClasses.icon}`]: { color: 'red', - }, + }, - [`& .${tableSortLabelClasses.iconDirectionAsc}`]: { + [`&.${tableSortLabelClasses.directionAsc} > .${tableSortLabelClasses.icon}`]: { color: 'red', - }, + }, }, }, }, @@ -1565,9 +1572,12 @@ JS transforms: CSS transforms: ```diff -- .MuiTableSortLabel-iconDirectionDesc +-.MuiTableSortLabel-iconDirectionDesc +.MuiTableSortLabel-directionDesc > .MuiTableSortLabel-icon -- .MuiTableSortLabel-iconDirectionAsc +``` + +```diff +-.MuiTableSortLabel-iconDirectionAsc +.MuiTableSortLabel-directionAsc > .MuiTableSortLabel-icon ``` @@ -1589,7 +1599,7 @@ Update the usage of the `sx` prop to be compatible with `@pigment-css/react`. -- theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[900], +- theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[900], - }} + sx={theme => ({ + backgroundColor: theme.palette.grey[900], @@ -1609,8 +1619,8 @@ npx @mui/codemod@next v6.0.0/system-props Remove system props and add them to the `sx` prop. ```diff -- -+ +- ++ ``` #### `theme-v6` @@ -1629,14 +1639,14 @@ Update the theme creation from `@mui/system@v5` to be compatible with `@pigment- createTheme({ components: { MuiButton: { -- variants: [ -- { -- props: { color: 'primary' }, -- style: { -- color: 'red', -- }, -- }, -- ], +- variants: [ +- { +- props: { color: 'primary' }, +- style: { +- color: 'red', +- }, +- }, +- ], styleOverrides: { - root: ({ theme, ownerState }) => ({ + root: ({ theme }) => ({ @@ -1848,7 +1858,7 @@ Transforms `row` prop to `orientation` prop across `Card`, `List` and `RadioGrou ```diff ; ``` @@ -1876,7 +1886,7 @@ npx @mui/codemod@next v5.0.0/joy-avatar-remove-imgProps #### `joy-text-field-to-input` -Replace `` with composition of `Input` +Replace `` with a composition of input components: This change only affects Joy UI components. From 4a00b800e74b476283b49579f586e6b9155d9136 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 15:50:00 +0530 Subject: [PATCH 24/65] Bump @definitelytyped tools (#42716) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 ++-- pnpm-lock.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 80a071c78895b7..633827a200d0fd 100644 --- a/package.json +++ b/package.json @@ -205,8 +205,8 @@ "@babel/preset-typescript": "^7.24.7", "@babel/runtime": "^7.24.7", "@babel/types": "^7.24.7", - "@definitelytyped/header-parser": "^0.2.9", - "@definitelytyped/typescript-versions": "^0.1.1", + "@definitelytyped/header-parser": "^0.2.10", + "@definitelytyped/typescript-versions": "^0.1.2", "@definitelytyped/utils": "^0.1.6", "@types/node": "^18.19.34", "@types/react": "18.2.55", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 831d0c0d465769..14d638a88cfb02 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,8 +13,8 @@ overrides: '@babel/preset-typescript': ^7.24.7 '@babel/runtime': ^7.24.7 '@babel/types': ^7.24.7 - '@definitelytyped/header-parser': ^0.2.9 - '@definitelytyped/typescript-versions': ^0.1.1 + '@definitelytyped/header-parser': ^0.2.10 + '@definitelytyped/typescript-versions': ^0.1.2 '@definitelytyped/utils': ^0.1.6 '@types/node': ^18.19.34 '@types/react': 18.2.55 From 800fe7e2fc0a3e3c40b580c10cdc0333171cdf44 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 15:50:40 +0530 Subject: [PATCH 25/65] Bump @types/mocha to ^10.0.7 (#42717) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- packages/api-docs-builder-core/package.json | 2 +- packages/api-docs-builder/package.json | 2 +- packages/mui-babel-macros/package.json | 2 +- packages/mui-utils/package.json | 2 +- packages/rsc-builder/package.json | 2 +- pnpm-lock.yaml | 30 ++++++++++----------- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 633827a200d0fd..581dfd815d0396 100644 --- a/package.json +++ b/package.json @@ -123,7 +123,7 @@ "@types/enzyme": "^3.10.18", "@types/fs-extra": "^11.0.4", "@types/lodash": "^4.17.5", - "@types/mocha": "^10.0.6", + "@types/mocha": "^10.0.7", "@types/node": "^18.19.34", "@types/react": "^18.2.55", "@types/yargs": "^17.0.32", diff --git a/packages/api-docs-builder-core/package.json b/packages/api-docs-builder-core/package.json index b0c29c7a5af7db..8a35884418b208 100644 --- a/packages/api-docs-builder-core/package.json +++ b/packages/api-docs-builder-core/package.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@types/chai": "^4.3.16", - "@types/mocha": "^10.0.6", + "@types/mocha": "^10.0.7", "@types/node": "^18.19.34", "@types/sinon": "^17.0.3", "chai": "^4.4.1", diff --git a/packages/api-docs-builder/package.json b/packages/api-docs-builder/package.json index 7073bfa50f92b2..a06f2183a779b3 100644 --- a/packages/api-docs-builder/package.json +++ b/packages/api-docs-builder/package.json @@ -31,7 +31,7 @@ "@types/chai": "^4.3.16", "@types/doctrine": "^0.0.9", "@types/mdast": "4.0.4", - "@types/mocha": "^10.0.6", + "@types/mocha": "^10.0.7", "@types/node": "^18.19.34", "@types/react-docgen": "workspace:*", "@types/sinon": "^17.0.3", diff --git a/packages/mui-babel-macros/package.json b/packages/mui-babel-macros/package.json index bfef3cab623381..e5f8cef4c685dc 100644 --- a/packages/mui-babel-macros/package.json +++ b/packages/mui-babel-macros/package.json @@ -31,7 +31,7 @@ "@mui/internal-babel-macros": "workspace:*", "@types/babel-plugin-macros": "^3.1.3", "@types/chai": "^4.3.16", - "@types/mocha": "^10.0.6", + "@types/mocha": "^10.0.7", "@types/node": "^18.19.34", "babel-plugin-tester": "^11.0.4", "chai": "^4.4.1" diff --git a/packages/mui-utils/package.json b/packages/mui-utils/package.json index 008d99c66fd3f9..0e01886c18be7d 100644 --- a/packages/mui-utils/package.json +++ b/packages/mui-utils/package.json @@ -48,7 +48,7 @@ "@mui/internal-test-utils": "workspace:^", "@mui/types": "workspace:^", "@types/chai": "^4.3.16", - "@types/mocha": "^10.0.6", + "@types/mocha": "^10.0.7", "@types/node": "^18.19.34", "@types/react": "^18.2.55", "@types/react-dom": "^18.3.0", diff --git a/packages/rsc-builder/package.json b/packages/rsc-builder/package.json index da203c68c8b262..d8f9be5d9a9839 100644 --- a/packages/rsc-builder/package.json +++ b/packages/rsc-builder/package.json @@ -8,7 +8,7 @@ "yargs": "^17.7.2" }, "devDependencies": { - "@types/mocha": "^10.0.6", + "@types/mocha": "^10.0.7", "@types/node": "^18.19.34" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 14d638a88cfb02..9c6815627c5360 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -120,8 +120,8 @@ importers: specifier: ^4.17.5 version: 4.17.5 '@types/mocha': - specifier: ^10.0.6 - version: 10.0.6 + specifier: ^10.0.7 + version: 10.0.7 '@types/node': specifier: ^18.19.34 version: 18.19.34 @@ -1155,8 +1155,8 @@ importers: specifier: 4.0.4 version: 4.0.4 '@types/mocha': - specifier: ^10.0.6 - version: 10.0.6 + specifier: ^10.0.7 + version: 10.0.7 '@types/node': specifier: ^18.19.34 version: 18.19.34 @@ -1192,8 +1192,8 @@ importers: specifier: ^4.3.16 version: 4.3.16 '@types/mocha': - specifier: ^10.0.6 - version: 10.0.6 + specifier: ^10.0.7 + version: 10.0.7 '@types/node': specifier: ^18.19.34 version: 18.19.34 @@ -1290,8 +1290,8 @@ importers: specifier: ^4.3.16 version: 4.3.16 '@types/mocha': - specifier: ^10.0.6 - version: 10.0.6 + specifier: ^10.0.7 + version: 10.0.7 '@types/node': specifier: ^18.19.34 version: 18.19.34 @@ -2157,8 +2157,8 @@ importers: specifier: ^4.3.16 version: 4.3.16 '@types/mocha': - specifier: ^10.0.6 - version: 10.0.6 + specifier: ^10.0.7 + version: 10.0.7 '@types/node': specifier: ^18.19.34 version: 18.19.34 @@ -2210,8 +2210,8 @@ importers: version: 17.7.2 devDependencies: '@types/mocha': - specifier: ^10.0.6 - version: 10.0.6 + specifier: ^10.0.7 + version: 10.0.7 '@types/node': specifier: ^18.19.34 version: 18.19.34 @@ -5236,8 +5236,8 @@ packages: '@types/minimist@1.2.2': resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} - '@types/mocha@10.0.6': - resolution: {integrity: sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==} + '@types/mocha@10.0.7': + resolution: {integrity: sha512-GN8yJ1mNTcFcah/wKEFIJckJx9iJLoMSzWcfRRuxz/Jk+U6KQNnml+etbtxFK8lPjzOw3zp4Ha/kjSst9fsHYw==} '@types/ms@0.7.34': resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==} @@ -16030,7 +16030,7 @@ snapshots: '@types/minimist@1.2.2': {} - '@types/mocha@10.0.6': {} + '@types/mocha@10.0.7': {} '@types/ms@0.7.34': {} From 4d67b45b80ce84afbbc0a962df6389310564fad7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:15:50 +0530 Subject: [PATCH 26/65] Bump @types/node to ^18.19.39 (#42718) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- docs/package.json | 2 +- package.json | 4 +- packages-internal/scripts/package.json | 2 +- packages/api-docs-builder-core/package.json | 2 +- packages/api-docs-builder/package.json | 2 +- packages/mui-babel-macros/package.json | 2 +- packages/mui-docs/package.json | 2 +- packages/mui-utils/package.json | 2 +- packages/rsc-builder/package.json | 2 +- pnpm-lock.yaml | 134 ++++++++++---------- 10 files changed, 77 insertions(+), 77 deletions(-) diff --git a/docs/package.json b/docs/package.json index 664709cbb1e37a..8bafc08a2e02b4 100644 --- a/docs/package.json +++ b/docs/package.json @@ -121,7 +121,7 @@ "@types/chai": "^4.3.16", "@types/css-mediaquery": "^0.1.4", "@types/json2mq": "^0.2.2", - "@types/node": "^18.19.34", + "@types/node": "^18.19.39", "@types/prop-types": "^15.7.12", "@types/react": "^18.2.55", "@types/react-dom": "^18.3.0", diff --git a/package.json b/package.json index 581dfd815d0396..b2891e8a6adb80 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "@types/fs-extra": "^11.0.4", "@types/lodash": "^4.17.5", "@types/mocha": "^10.0.7", - "@types/node": "^18.19.34", + "@types/node": "^18.19.39", "@types/react": "^18.2.55", "@types/yargs": "^17.0.32", "@typescript-eslint/eslint-plugin": "^6.21.0", @@ -208,7 +208,7 @@ "@definitelytyped/header-parser": "^0.2.10", "@definitelytyped/typescript-versions": "^0.1.2", "@definitelytyped/utils": "^0.1.6", - "@types/node": "^18.19.34", + "@types/node": "^18.19.39", "@types/react": "18.2.55", "@types/react-dom": "18.3.0", "cross-fetch": "^4.0.0" diff --git a/packages-internal/scripts/package.json b/packages-internal/scripts/package.json index 5224dfaee1166c..c0886d29005233 100644 --- a/packages-internal/scripts/package.json +++ b/packages-internal/scripts/package.json @@ -42,7 +42,7 @@ "@types/chai": "^4.3.16", "@types/doctrine": "^0.0.9", "@types/lodash": "^4.17.5", - "@types/node": "^18.19.34", + "@types/node": "^18.19.39", "@types/react": "^18.2.55", "@types/uuid": "^9.0.8", "chai": "^4.4.1", diff --git a/packages/api-docs-builder-core/package.json b/packages/api-docs-builder-core/package.json index 8a35884418b208..6a3c525a78cd4a 100644 --- a/packages/api-docs-builder-core/package.json +++ b/packages/api-docs-builder-core/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@types/chai": "^4.3.16", "@types/mocha": "^10.0.7", - "@types/node": "^18.19.34", + "@types/node": "^18.19.39", "@types/sinon": "^17.0.3", "chai": "^4.4.1", "sinon": "^16.1.3", diff --git a/packages/api-docs-builder/package.json b/packages/api-docs-builder/package.json index a06f2183a779b3..d49bc0782e5f9d 100644 --- a/packages/api-docs-builder/package.json +++ b/packages/api-docs-builder/package.json @@ -32,7 +32,7 @@ "@types/doctrine": "^0.0.9", "@types/mdast": "4.0.4", "@types/mocha": "^10.0.7", - "@types/node": "^18.19.34", + "@types/node": "^18.19.39", "@types/react-docgen": "workspace:*", "@types/sinon": "^17.0.3", "chai": "^4.4.1", diff --git a/packages/mui-babel-macros/package.json b/packages/mui-babel-macros/package.json index e5f8cef4c685dc..dcbfb1f8044c0e 100644 --- a/packages/mui-babel-macros/package.json +++ b/packages/mui-babel-macros/package.json @@ -32,7 +32,7 @@ "@types/babel-plugin-macros": "^3.1.3", "@types/chai": "^4.3.16", "@types/mocha": "^10.0.7", - "@types/node": "^18.19.34", + "@types/node": "^18.19.39", "babel-plugin-tester": "^11.0.4", "chai": "^4.4.1" }, diff --git a/packages/mui-docs/package.json b/packages/mui-docs/package.json index 1466e31b395eb8..6fc9f6ff331d8c 100644 --- a/packages/mui-docs/package.json +++ b/packages/mui-docs/package.json @@ -44,7 +44,7 @@ "devDependencies": { "@mui/icons-material": "workspace:*", "@mui/material": "workspace:*", - "@types/node": "^18.19.34", + "@types/node": "^18.19.39", "@types/prop-types": "^15.7.12", "@types/react": "^18.2.55", "next": "^13.5.1", diff --git a/packages/mui-utils/package.json b/packages/mui-utils/package.json index 0e01886c18be7d..5b37484eedef98 100644 --- a/packages/mui-utils/package.json +++ b/packages/mui-utils/package.json @@ -49,7 +49,7 @@ "@mui/types": "workspace:^", "@types/chai": "^4.3.16", "@types/mocha": "^10.0.7", - "@types/node": "^18.19.34", + "@types/node": "^18.19.39", "@types/react": "^18.2.55", "@types/react-dom": "^18.3.0", "@types/react-is": "^18.3.0", diff --git a/packages/rsc-builder/package.json b/packages/rsc-builder/package.json index d8f9be5d9a9839..53c0f5fd9129fb 100644 --- a/packages/rsc-builder/package.json +++ b/packages/rsc-builder/package.json @@ -9,6 +9,6 @@ }, "devDependencies": { "@types/mocha": "^10.0.7", - "@types/node": "^18.19.34" + "@types/node": "^18.19.39" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9c6815627c5360..e5819959caafc9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ overrides: '@definitelytyped/header-parser': ^0.2.10 '@definitelytyped/typescript-versions': ^0.1.2 '@definitelytyped/utils': ^0.1.6 - '@types/node': ^18.19.34 + '@types/node': ^18.19.39 '@types/react': 18.2.55 '@types/react-dom': 18.3.0 cross-fetch: ^4.0.0 @@ -123,8 +123,8 @@ importers: specifier: ^10.0.7 version: 10.0.7 '@types/node': - specifier: ^18.19.34 - version: 18.19.34 + specifier: ^18.19.39 + version: 18.19.39 '@types/react': specifier: 18.2.55 version: 18.2.55 @@ -376,8 +376,8 @@ importers: specifier: ^0.0.14 version: 0.0.14(@types/react@18.2.55)(next@14.2.4(@babel/core@7.24.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.44.1)(babel-plugin-macros@3.1.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react@18.2.0) '@types/node': - specifier: ^18.19.34 - version: 18.19.34 + specifier: ^18.19.39 + version: 18.19.39 '@types/react': specifier: 18.2.55 version: 18.2.55 @@ -444,7 +444,7 @@ importers: version: 7.24.7(@babel/core@7.24.7) '@pigment-css/vite-plugin': specifier: ^0.0.13 - version: 0.0.13(@types/react@18.2.55)(react@18.2.0)(vite@5.3.1(@types/node@18.19.34)(terser@5.29.2)) + version: 0.0.13(@types/react@18.2.55)(react@18.2.0)(vite@5.3.1(@types/node@18.19.39)(terser@5.29.2)) '@types/react': specifier: 18.2.55 version: 18.2.55 @@ -453,7 +453,7 @@ importers: version: 18.3.0 '@vitejs/plugin-react': specifier: ^4.3.1 - version: 4.3.1(vite@5.3.1(@types/node@18.19.34)(terser@5.29.2)) + version: 4.3.1(vite@5.3.1(@types/node@18.19.39)(terser@5.29.2)) postcss: specifier: ^8.4.38 version: 8.4.38 @@ -462,10 +462,10 @@ importers: version: 1.0.1 vite: specifier: 5.3.1 - version: 5.3.1(@types/node@18.19.34)(terser@5.29.2) + version: 5.3.1(@types/node@18.19.39)(terser@5.29.2) vite-plugin-pages: specifier: ^0.32.2 - version: 0.32.2(react-router@6.23.1(react@18.2.0))(vite@5.3.1(@types/node@18.19.34)(terser@5.29.2)) + version: 0.32.2(react-router@6.23.1(react@18.2.0))(vite@5.3.1(@types/node@18.19.39)(terser@5.29.2)) benchmark: dependencies: @@ -855,8 +855,8 @@ importers: specifier: ^0.2.2 version: 0.2.2 '@types/node': - specifier: ^18.19.34 - version: 18.19.34 + specifier: ^18.19.39 + version: 18.19.39 '@types/prop-types': specifier: ^15.7.12 version: 15.7.12 @@ -961,8 +961,8 @@ importers: specifier: ^4.17.5 version: 4.17.5 '@types/node': - specifier: ^18.19.34 - version: 18.19.34 + specifier: ^18.19.39 + version: 18.19.39 '@types/react': specifier: 18.2.55 version: 18.2.55 @@ -1158,8 +1158,8 @@ importers: specifier: ^10.0.7 version: 10.0.7 '@types/node': - specifier: ^18.19.34 - version: 18.19.34 + specifier: ^18.19.39 + version: 18.19.39 '@types/react-docgen': specifier: workspace:* version: link:../react-docgen-types @@ -1195,8 +1195,8 @@ importers: specifier: ^10.0.7 version: 10.0.7 '@types/node': - specifier: ^18.19.34 - version: 18.19.34 + specifier: ^18.19.39 + version: 18.19.39 '@types/sinon': specifier: ^17.0.3 version: 17.0.3 @@ -1293,8 +1293,8 @@ importers: specifier: ^10.0.7 version: 10.0.7 '@types/node': - specifier: ^18.19.34 - version: 18.19.34 + specifier: ^18.19.39 + version: 18.19.39 babel-plugin-tester: specifier: ^11.0.4 version: 11.0.4(@babel/core@7.24.7) @@ -1448,8 +1448,8 @@ importers: specifier: workspace:* version: link:../mui-material/build '@types/node': - specifier: ^18.19.34 - version: 18.19.34 + specifier: ^18.19.39 + version: 18.19.39 '@types/prop-types': specifier: ^15.7.12 version: 15.7.12 @@ -2160,8 +2160,8 @@ importers: specifier: ^10.0.7 version: 10.0.7 '@types/node': - specifier: ^18.19.34 - version: 18.19.34 + specifier: ^18.19.39 + version: 18.19.39 '@types/react': specifier: 18.2.55 version: 18.2.55 @@ -2213,8 +2213,8 @@ importers: specifier: ^10.0.7 version: 10.0.7 '@types/node': - specifier: ^18.19.34 - version: 18.19.34 + specifier: ^18.19.39 + version: 18.19.39 packages/waterfall: {} @@ -5242,8 +5242,8 @@ packages: '@types/ms@0.7.34': resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==} - '@types/node@18.19.34': - resolution: {integrity: sha512-eXF4pfBNV5DAMKGbI02NnDtWrQ40hAN558/2vvS4gMpMIxaf6JmD7YjnZbq0Q9TDSSkKBamime8ewRoomHdt4g==} + '@types/node@18.19.39': + resolution: {integrity: sha512-nPwTRDKUctxw3di5b4TfT3I0sWDiWoPQCZjXhvdkINntwr8lcoVCKsTgnXeRubKIlfnV+eN/HYk6Jb40tbcEAQ==} '@types/normalize-package-data@2.4.1': resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} @@ -12035,7 +12035,7 @@ packages: engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: - '@types/node': ^18.19.34 + '@types/node': ^18.19.39 less: '*' lightningcss: ^1.21.0 sass: '*' @@ -13892,7 +13892,7 @@ snapshots: '@fast-csv/format@4.3.5': dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 lodash.escaperegexp: 4.1.2 lodash.isboolean: 3.0.3 lodash.isequal: 4.5.0 @@ -13901,7 +13901,7 @@ snapshots: '@fast-csv/parse@4.3.6': dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 lodash.escaperegexp: 4.1.2 lodash.groupby: 4.6.0 lodash.isfunction: 3.0.9 @@ -14089,14 +14089,14 @@ snapshots: dependencies: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 18.19.34 + '@types/node': 18.19.39 jest-mock: 29.7.0 '@jest/fake-timers@29.7.0': dependencies: '@jest/types': 29.6.3 '@sinonjs/fake-timers': 10.3.0 - '@types/node': 18.19.34 + '@types/node': 18.19.39 jest-message-util: 29.7.0 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -14109,7 +14109,7 @@ snapshots: dependencies: '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/yargs': 15.0.19 chalk: 4.1.2 @@ -14118,7 +14118,7 @@ snapshots: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/yargs': 17.0.32 chalk: 4.1.2 @@ -15132,7 +15132,7 @@ snapshots: - react - supports-color - '@pigment-css/vite-plugin@0.0.13(@types/react@18.2.55)(react@18.2.0)(vite@5.3.1(@types/node@18.19.34)(terser@5.29.2))': + '@pigment-css/vite-plugin@0.0.13(@types/react@18.2.55)(react@18.2.0)(vite@5.3.1(@types/node@18.19.39)(terser@5.29.2))': dependencies: '@babel/core': 7.24.7 '@babel/preset-typescript': 7.24.7(@babel/core@7.24.7) @@ -15140,7 +15140,7 @@ snapshots: '@wyw-in-js/shared': 0.5.3 '@wyw-in-js/transform': 0.5.3 babel-plugin-define-var: 0.1.0 - vite: 5.3.1(@types/node@18.19.34)(terser@5.29.2) + vite: 5.3.1(@types/node@18.19.39)(terser@5.29.2) transitivePeerDependencies: - '@types/react' - react @@ -15656,18 +15656,18 @@ snapshots: '@slack/logger@3.0.0': dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@slack/logger@4.0.0': dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@slack/oauth@2.6.2': dependencies: '@slack/logger': 3.0.0 '@slack/web-api': 6.12.0 '@types/jsonwebtoken': 8.5.9 - '@types/node': 18.19.34 + '@types/node': 18.19.39 jsonwebtoken: 9.0.0 lodash.isstring: 4.0.1 transitivePeerDependencies: @@ -15677,7 +15677,7 @@ snapshots: dependencies: '@slack/logger': 3.0.0 '@slack/web-api': 6.12.0 - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/p-queue': 2.3.2 '@types/ws': 7.4.7 eventemitter3: 3.1.2 @@ -15697,7 +15697,7 @@ snapshots: '@slack/logger': 3.0.0 '@slack/types': 2.11.0 '@types/is-stream': 1.1.0 - '@types/node': 18.19.34 + '@types/node': 18.19.39 axios: 1.6.8(debug@4.3.4) eventemitter3: 3.1.2 form-data: 2.5.1 @@ -15900,7 +15900,7 @@ snapshots: '@types/body-parser@1.19.2': dependencies: '@types/connect': 3.4.35 - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/chai-dom@1.11.3': dependencies: @@ -15910,11 +15910,11 @@ snapshots: '@types/cheerio@0.22.31': dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/connect@3.4.35': dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/cookie@0.4.1': {} @@ -15947,7 +15947,7 @@ snapshots: '@types/express-serve-static-core@4.17.35': dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -15964,7 +15964,7 @@ snapshots: '@types/fs-extra@11.0.4': dependencies: '@types/jsonfile': 6.1.1 - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/hoist-non-react-statics@3.3.5': dependencies: @@ -15977,7 +15977,7 @@ snapshots: '@types/is-stream@1.1.0': dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/istanbul-lib-coverage@2.0.6': {} @@ -16002,11 +16002,11 @@ snapshots: '@types/jsonfile@6.1.1': dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/jsonwebtoken@8.5.9': dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/lodash.mergewith@4.6.7': dependencies: @@ -16034,7 +16034,7 @@ snapshots: '@types/ms@0.7.34': {} - '@types/node@18.19.34': + '@types/node@18.19.39': dependencies: undici-types: 5.26.5 @@ -16099,13 +16099,13 @@ snapshots: '@types/send@0.17.1': dependencies: '@types/mime': 1.3.2 - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/serve-static@1.15.2': dependencies: '@types/http-errors': 2.0.1 '@types/mime': 3.0.1 - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/sinon@17.0.3': dependencies: @@ -16135,7 +16135,7 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 '@types/yargs-parser@21.0.3': {} @@ -16235,14 +16235,14 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitejs/plugin-react@4.3.1(vite@5.3.1(@types/node@18.19.34)(terser@5.29.2))': + '@vitejs/plugin-react@4.3.1(vite@5.3.1(@types/node@18.19.39)(terser@5.29.2))': dependencies: '@babel/core': 7.24.7 '@babel/plugin-transform-react-jsx-self': 7.24.6(@babel/core@7.24.7) '@babel/plugin-transform-react-jsx-source': 7.24.1(@babel/core@7.24.7) '@types/babel__core': 7.20.5 react-refresh: 0.14.2 - vite: 5.3.1(@types/node@18.19.34)(terser@5.29.2) + vite: 5.3.1(@types/node@18.19.39)(terser@5.29.2) transitivePeerDependencies: - supports-color @@ -17278,7 +17278,7 @@ snapshots: chrome-launcher@0.15.2: dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 escape-string-regexp: 4.0.0 is-wsl: 2.2.0 lighthouse-logger: 1.4.2 @@ -17289,7 +17289,7 @@ snapshots: chromium-edge-launcher@1.0.0: dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 escape-string-regexp: 4.0.0 is-wsl: 2.2.0 lighthouse-logger: 1.4.2 @@ -18165,7 +18165,7 @@ snapshots: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.12 - '@types/node': 18.19.34 + '@types/node': 18.19.39 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -20024,7 +20024,7 @@ snapshots: '@jest/environment': 29.7.0 '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 18.19.34 + '@types/node': 18.19.39 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -20045,13 +20045,13 @@ snapshots: jest-mock@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 18.19.34 + '@types/node': 18.19.39 jest-util: 29.7.0 jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 18.19.34 + '@types/node': 18.19.39 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -20068,13 +20068,13 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 merge-stream: 2.0.0 supports-color: 8.1.1 jest-worker@29.7.0: dependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -24380,7 +24380,7 @@ snapshots: unist-util-stringify-position: 2.0.3 vfile-message: 2.0.4 - vite-plugin-pages@0.32.2(react-router@6.23.1(react@18.2.0))(vite@5.3.1(@types/node@18.19.34)(terser@5.29.2)): + vite-plugin-pages@0.32.2(react-router@6.23.1(react@18.2.0))(vite@5.3.1(@types/node@18.19.39)(terser@5.29.2)): dependencies: '@types/debug': 4.1.12 debug: 4.3.4(supports-color@8.1.1) @@ -24390,20 +24390,20 @@ snapshots: json5: 2.2.3 local-pkg: 0.5.0 picocolors: 1.0.1 - vite: 5.3.1(@types/node@18.19.34)(terser@5.29.2) + vite: 5.3.1(@types/node@18.19.39)(terser@5.29.2) yaml: 2.4.2 optionalDependencies: react-router: 6.23.1(react@18.2.0) transitivePeerDependencies: - supports-color - vite@5.3.1(@types/node@18.19.34)(terser@5.29.2): + vite@5.3.1(@types/node@18.19.39)(terser@5.29.2): dependencies: esbuild: 0.21.5 postcss: 8.4.38 rollup: 4.13.0 optionalDependencies: - '@types/node': 18.19.34 + '@types/node': 18.19.39 fsevents: 2.3.3 terser: 5.29.2 From 4dfc98cad6667e248a4ce911e32c821623278257 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:36:34 +0530 Subject: [PATCH 27/65] Bump MUI X to 7.7.1 (#42719) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- docs/package.json | 18 ++--- pnpm-lock.yaml | 178 +++++++++++++++++++++++----------------------- 2 files changed, 98 insertions(+), 98 deletions(-) diff --git a/docs/package.json b/docs/package.json index 8bafc08a2e02b4..907cf9f2c3f0b5 100644 --- a/docs/package.json +++ b/docs/package.json @@ -43,15 +43,15 @@ "@mui/system": "workspace:^", "@mui/types": "workspace:^", "@mui/utils": "workspace:^", - "@mui/x-charts": "7.7.0", - "@mui/x-data-grid": "7.7.0", - "@mui/x-data-grid-generator": "7.7.0", - "@mui/x-data-grid-premium": "7.7.0", - "@mui/x-data-grid-pro": "7.7.0", - "@mui/x-date-pickers": "7.7.0", - "@mui/x-date-pickers-pro": "7.7.0", - "@mui/x-license": "7.7.0", - "@mui/x-tree-view": "7.7.0", + "@mui/x-charts": "7.7.1", + "@mui/x-data-grid": "7.7.1", + "@mui/x-data-grid-generator": "7.7.1", + "@mui/x-data-grid-premium": "7.7.1", + "@mui/x-data-grid-pro": "7.7.1", + "@mui/x-date-pickers": "7.7.1", + "@mui/x-date-pickers-pro": "7.7.1", + "@mui/x-license": "7.7.1", + "@mui/x-tree-view": "7.7.1", "@popperjs/core": "^2.11.8", "@react-spring/web": "^9.7.3", "autoprefixer": "^10.4.19", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e5819959caafc9..8f78387fb04f51 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -626,32 +626,32 @@ importers: specifier: workspace:^ version: link:../packages/mui-utils/build '@mui/x-charts': - specifier: 7.7.0 - version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.1 + version: 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-data-grid': - specifier: 7.7.0 - version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.1 + version: 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-data-grid-generator': - specifier: 7.7.0 - version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.1 + version: 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-data-grid-premium': - specifier: 7.7.0 - version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.1 + version: 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-data-grid-pro': - specifier: 7.7.0 - version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.1 + version: 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-date-pickers': - specifier: 7.7.0 - version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.1 + version: 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-date-pickers-pro': - specifier: 7.7.0 - version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.1 + version: 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-license': - specifier: 7.7.0 - version: 7.7.0(@types/react@18.2.55)(react@18.2.0) + specifier: 7.7.1 + version: 7.7.1(@types/react@18.2.55)(react@18.2.0) '@mui/x-tree-view': - specifier: 7.7.0 - version: 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: 7.7.1 + version: 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@popperjs/core': specifier: ^2.11.8 version: 2.11.8 @@ -1275,7 +1275,7 @@ importers: version: 7.24.7 '@mui/utils': specifier: ^5.0.0 - version: 5.15.14(@types/react@18.2.55)(react@18.2.0) + version: 5.15.20(@types/react@18.2.55)(react@18.2.0) babel-plugin-macros: specifier: ^3.1.0 version: 3.1.0 @@ -1427,7 +1427,7 @@ importers: version: link:../markdown '@mui/system': specifier: ^5.0.0 - version: 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) + version: 5.15.20(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) clipboard-copy: specifier: ^4.0.1 version: 4.0.1 @@ -3882,8 +3882,8 @@ packages: '@types/react': optional: true - '@mui/private-theming@5.15.14': - resolution: {integrity: sha512-UH0EiZckOWcxiXLX3Jbb0K7rC8mxTr9L9l6QhOZxYc4r8FHUkefltV9VDGLrzCaWh30SQiJvAEd7djX3XXY6Xw==} + '@mui/private-theming@5.15.20': + resolution: {integrity: sha512-BK8F94AIqSrnaPYXf2KAOjGZJgWfvqAVQ2gVR3EryvQFtuBnG6RwodxrCvd3B48VuMy6Wsk897+lQMUxJyk+6g==} engines: {node: '>=12.0.0'} peerDependencies: '@types/react': 18.2.55 @@ -3928,8 +3928,8 @@ packages: '@emotion/styled': optional: true - '@mui/system@5.15.15': - resolution: {integrity: sha512-aulox6N1dnu5PABsfxVGOZffDVmlxPOVgj56HrUnJE8MCSh8lOvvkd47cebIVQQYAjpwieXQXiDPj5pwM40jTQ==} + '@mui/system@5.15.20': + resolution: {integrity: sha512-LoMq4IlAAhxzL2VNUDBTQxAb4chnBe8JvRINVNDiMtHE2PiPOoHlhOPutSxEbaL5mkECPVWSv6p8JEV+uykwIA==} engines: {node: '>=12.0.0'} peerDependencies: '@emotion/react': ^11.5.0 @@ -3968,8 +3968,8 @@ packages: '@types/react': optional: true - '@mui/utils@5.15.14': - resolution: {integrity: sha512-0lF/7Hh/ezDv5X7Pry6enMsbYyGKjADzvHyo3Qrc/SSlTsQ1VkbDMbH0m2t3OR5iIVLwMoxwM7yGd+6FCMtTFA==} + '@mui/utils@5.15.20': + resolution: {integrity: sha512-mAbYx0sovrnpAu1zHc3MDIhPqL8RPVC5W5xcO1b7PiSCJPtckIZmBkp8hefamAvUiAV8gpfMOM6Zb+eSisbI2A==} engines: {node: '>=12.0.0'} peerDependencies: '@types/react': 18.2.55 @@ -3988,8 +3988,8 @@ packages: '@types/react': optional: true - '@mui/x-charts@7.7.0': - resolution: {integrity: sha512-HkJ6RGEjCyyPuZ79I+b0mo7B4B/w9iciJKpkNJ4HM5Wu3/vsVIsq6CdYYq83hk2Mtp+G9SIUeT/17CQ/9vxs/w==} + '@mui/x-charts@7.7.1': + resolution: {integrity: sha512-qUvkGGxBukHXLUqoTUs2rJZz1t+gK0P+bZzQWFbxN93XQyAhrjrOU8VN0x+G7nO3qcXrC2P6s0nevms7ZRSDrA==} engines: {node: '>=14.0.0'} peerDependencies: '@emotion/react': ^11.9.0 @@ -4003,40 +4003,40 @@ packages: '@emotion/styled': optional: true - '@mui/x-data-grid-generator@7.7.0': - resolution: {integrity: sha512-EL7NWjYivg0snLtC0Oja4bwekEChZHLw9ME496GuR9qvgq2Wfm6Kaa9dW1DmLL72l/lOIeck4RjIZtfltUnTCg==} + '@mui/x-data-grid-generator@7.7.1': + resolution: {integrity: sha512-QRZobT3MfSZMQTChBT4IbPiGPk0CKSQrZ0gHbal1CS/fBWutzbRFvAmXqNkpn/DLfypiokLmKkrNKcHSuZzwhQ==} engines: {node: '>=14.0.0'} peerDependencies: '@mui/icons-material': ^5.4.1 '@mui/material': ^5.15.14 react: ^17.0.0 || ^18.0.0 - '@mui/x-data-grid-premium@7.7.0': - resolution: {integrity: sha512-SvJdmtj6gSmd1/fc3TwZgiv9Un53RvxaRG/0/Xa+hoS1BQeI6uITrf+qqzXTr6GfATBZyg3W9P45Wagu6QXk8Q==} + '@mui/x-data-grid-premium@7.7.1': + resolution: {integrity: sha512-fZa+vs2H6xMRh1XfrZcME19QCuE8OM8lrb7ybeJ2zKwzWbLFf+5jABB68Ku1kxdX2Je+lWRShRMGDsWecV75Cg==} engines: {node: '>=14.0.0'} peerDependencies: '@mui/material': ^5.15.14 react: ^17.0.0 || ^18.0.0 react-dom: ^17.0.0 || ^18.0.0 - '@mui/x-data-grid-pro@7.7.0': - resolution: {integrity: sha512-3yMZIFj0VopJzlSCJjBVZi9fBZhFJgqxquSuOwlMUhnQ4ocOP9Uov547wzBfR4op+bJD+P+O/GFcoi83CCyDuw==} + '@mui/x-data-grid-pro@7.7.1': + resolution: {integrity: sha512-Hu7R2BlGAE9nS3Lxt0V5Tbahkbi9wnzhqybtM71tktKa7YTM68lMPgrIhf3Blz/jZXvHdCfQm+JvlAeGvB9lPw==} engines: {node: '>=14.0.0'} peerDependencies: '@mui/material': ^5.15.14 react: ^17.0.0 || ^18.0.0 react-dom: ^17.0.0 || ^18.0.0 - '@mui/x-data-grid@7.7.0': - resolution: {integrity: sha512-s3Oii9EKcYPnL7M4g5evNley/J0slLL6xWRi0VwYqTHPGntBAMntUktMZ63bD/xko99f5ZcFoRBYTc55+mJ+AQ==} + '@mui/x-data-grid@7.7.1': + resolution: {integrity: sha512-5XsvuVpJfjV2ERtNiVRWL+0UUq5rh2Tq8aLZdJ8Ca5PnweEfNzOesQMlf0lpjXqnzuoq7uTwvICqoAMjsTTglg==} engines: {node: '>=14.0.0'} peerDependencies: '@mui/material': ^5.15.14 react: ^17.0.0 || ^18.0.0 react-dom: ^17.0.0 || ^18.0.0 - '@mui/x-date-pickers-pro@7.7.0': - resolution: {integrity: sha512-kIP6LzzhEWE281vXSIWO3W7IdW9G6mZ4EKAEGYWE+nZ+vnCopC7xHlDOtPDi/7ag7vWZDjB12gmo+19kM+brug==} + '@mui/x-date-pickers-pro@7.7.1': + resolution: {integrity: sha512-+E11dpc4nf1k+SB/bU6veYU7kt6n84n2HZCiRSjr1w5hkPBWiSsioejxzgcTsn+EiZ1TnrygivF4wbxiImp/ng==} engines: {node: '>=14.0.0'} peerDependencies: '@emotion/react': ^11.9.0 @@ -4071,8 +4071,8 @@ packages: moment-jalaali: optional: true - '@mui/x-date-pickers@7.7.0': - resolution: {integrity: sha512-huyoA22Vi8iCkee6ro0sX7CcFIcPV/Fl7ZGWwaQC8PTAheXhz823DjMYAiwRU/imF+UFYfUInWQ4XZCIkM+2Dw==} + '@mui/x-date-pickers@7.7.1': + resolution: {integrity: sha512-p7/TY8QcdQd6RelNqzW5q89GeUFctvZnDHTfQVEC0l0nAy7ArE6u21uNF8QWGrijZoJXCM+OlIRzlZADaUPpWA==} engines: {node: '>=14.0.0'} peerDependencies: '@emotion/react': ^11.9.0 @@ -4107,14 +4107,14 @@ packages: moment-jalaali: optional: true - '@mui/x-license@7.7.0': - resolution: {integrity: sha512-lslSjrgD0XmzSokYbuOZ2qiQmbEcq9w8SY4B8fnzVfwUa/pnaIFD0FmKOQRAsozwYD/P21PuXJ9r9jNAHVvc7w==} + '@mui/x-license@7.7.1': + resolution: {integrity: sha512-8Ycgidva5dmBHy5Uhf1X+Rqr7zuU9u3i8hefufT44Z5xYAVR0AJWKt75cTmBclyg0hpA55m6hRZwxP0W0cYN6A==} engines: {node: '>=14.0.0'} peerDependencies: react: ^17.0.0 || ^18.0.0 - '@mui/x-tree-view@7.7.0': - resolution: {integrity: sha512-kUTMS77EcNjp1iXZlm4GGFzZHnQdZJfn2L9gvxAaHtNTDSRMS61jpsCcXknIyC797dmRPdALPewNzSOfkThF+Q==} + '@mui/x-tree-view@7.7.1': + resolution: {integrity: sha512-r2K287+dN2XI5wdovinbJfTgiBbJLZsdQyYH7EXYO1HvHLjnRmY5UjmwTnsq75LJobjok5TAQNfrz2MXfsRY8w==} engines: {node: '>=14.0.0'} peerDependencies: '@emotion/react': ^11.9.0 @@ -14239,7 +14239,7 @@ snapshots: '@babel/runtime': 7.24.7 '@floating-ui/react-dom': 2.1.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/types': 7.2.14(@types/react@18.2.55) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) '@popperjs/core': 2.11.8 clsx: 2.1.1 prop-types: 15.8.1 @@ -14253,7 +14253,7 @@ snapshots: '@babel/runtime': 7.24.7 '@floating-ui/react-dom': 2.1.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/types': 7.2.14(@types/react@18.2.55) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) '@popperjs/core': 2.11.8 clsx: 2.1.1 prop-types: 15.8.1 @@ -14267,7 +14267,7 @@ snapshots: '@babel/runtime': 7.24.7 '@floating-ui/react-dom': 2.1.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/types': 7.2.14(@types/react@18.2.55) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) '@popperjs/core': 2.11.8 clsx: 2.1.1 prop-types: 15.8.1 @@ -14283,9 +14283,9 @@ snapshots: '@babel/runtime': 7.24.7 '@mui/base': 5.0.0-beta.31(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/core-downloads-tracker': 5.15.14 - '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) + '@mui/system': 5.15.20(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) '@mui/types': 7.2.14(@types/react@18.2.55) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) clsx: 2.1.1 prop-types: 15.8.1 react: 18.2.0 @@ -14300,9 +14300,9 @@ snapshots: '@babel/runtime': 7.24.7 '@mui/base': 5.0.0-beta.31(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/core-downloads-tracker': 5.15.14 - '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) + '@mui/system': 5.15.20(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) '@mui/types': 7.2.14(@types/react@18.2.55) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) '@types/react-transition-group': 4.4.10 clsx: 2.1.1 csstype: 3.1.3 @@ -14316,10 +14316,10 @@ snapshots: '@emotion/styled': 11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) '@types/react': 18.2.55 - '@mui/private-theming@5.15.14(@types/react@18.2.55)(react@18.2.0)': + '@mui/private-theming@5.15.20(@types/react@18.2.55)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) prop-types: 15.8.1 react: 18.2.0 optionalDependencies: @@ -14356,13 +14356,13 @@ snapshots: '@emotion/react': 11.11.4(@types/react@18.2.55)(react@18.2.0) '@emotion/styled': 11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) - '@mui/system@5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0)': + '@mui/system@5.15.20(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 - '@mui/private-theming': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/private-theming': 5.15.20(@types/react@18.2.55)(react@18.2.0) '@mui/styled-engine': 5.15.14(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(react@18.2.0) '@mui/types': 7.2.14(@types/react@18.2.55) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) clsx: 2.1.1 csstype: 3.1.3 prop-types: 15.8.1 @@ -14392,7 +14392,7 @@ snapshots: optionalDependencies: '@types/react': 18.2.55 - '@mui/utils@5.15.14(@types/react@18.2.55)(react@18.2.0)': + '@mui/utils@5.15.20(@types/react@18.2.55)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@types/prop-types': 15.7.12 @@ -14412,13 +14412,13 @@ snapshots: optionalDependencies: '@types/react': 18.2.55 - '@mui/x-charts@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-charts@7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/base': 5.0.0-beta.40(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/material': link:packages/mui-material/build - '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/system': 5.15.20(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) '@react-spring/rafz': 9.7.3 '@react-spring/web': 9.7.3(react-dom@18.2.0(react@18.2.0))(react@18.2.0) clsx: 2.1.1 @@ -14436,13 +14436,13 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@mui/x-data-grid-generator@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-data-grid-generator@7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/base': 5.0.0-beta.40(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/icons-material': link:packages/mui-icons-material/build '@mui/material': link:packages/mui-material/build - '@mui/x-data-grid-premium': 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/x-data-grid-premium': 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) chance: 1.1.11 clsx: 2.1.1 lru-cache: 7.18.3 @@ -14453,15 +14453,15 @@ snapshots: - '@types/react' - react-dom - '@mui/x-data-grid-premium@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-data-grid-premium@7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/material': link:packages/mui-material/build - '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) - '@mui/x-data-grid': 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/x-data-grid-pro': 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/x-license': 7.7.0(@types/react@18.2.55)(react@18.2.0) + '@mui/system': 5.15.20(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) + '@mui/x-data-grid': 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/x-data-grid-pro': 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/x-license': 7.7.1(@types/react@18.2.55)(react@18.2.0) '@types/format-util': 1.0.4 clsx: 2.1.1 exceljs: 4.4.0 @@ -14474,14 +14474,14 @@ snapshots: - '@emotion/styled' - '@types/react' - '@mui/x-data-grid-pro@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-data-grid-pro@7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/material': link:packages/mui-material/build - '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) - '@mui/x-data-grid': 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/x-license': 7.7.0(@types/react@18.2.55)(react@18.2.0) + '@mui/system': 5.15.20(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) + '@mui/x-data-grid': 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/x-license': 7.7.1(@types/react@18.2.55)(react@18.2.0) '@types/format-util': 1.0.4 clsx: 2.1.1 prop-types: 15.8.1 @@ -14493,12 +14493,12 @@ snapshots: - '@emotion/styled' - '@types/react' - '@mui/x-data-grid@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-data-grid@7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/material': link:packages/mui-material/build - '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/system': 5.15.20(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) clsx: 2.1.1 prop-types: 15.8.1 react: 18.2.0 @@ -14509,15 +14509,15 @@ snapshots: - '@emotion/styled' - '@types/react' - '@mui/x-date-pickers-pro@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-date-pickers-pro@7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/base': 5.0.0-beta.40(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/material': link:packages/mui-material/build - '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) - '@mui/x-date-pickers': 7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/x-license': 7.7.0(@types/react@18.2.55)(react@18.2.0) + '@mui/system': 5.15.20(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) + '@mui/x-date-pickers': 7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/x-license': 7.7.1(@types/react@18.2.55)(react@18.2.0) clsx: 2.1.1 prop-types: 15.8.1 react: 18.2.0 @@ -14532,13 +14532,13 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@mui/x-date-pickers@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-date-pickers@7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(date-fns-jalali@2.21.3-1)(date-fns@2.30.0)(dayjs@1.11.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@mui/base': 5.0.0-beta.40(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/material': link:packages/mui-material/build - '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/system': 5.15.20(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) '@types/react-transition-group': 4.4.10 clsx: 2.1.1 prop-types: 15.8.1 @@ -14554,23 +14554,23 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@mui/x-license@7.7.0(@types/react@18.2.55)(react@18.2.0)': + '@mui/x-license@7.7.1(@types/react@18.2.55)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) react: 18.2.0 transitivePeerDependencies: - '@types/react' - '@mui/x-tree-view@7.7.0(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-tree-view@7.7.1(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@mui/material@packages+mui-material+build)(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.7 '@emotion/react': 11.11.4(@types/react@18.2.55)(react@18.2.0) '@emotion/styled': 11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) '@mui/base': 5.0.0-beta.40(@types/react@18.2.55)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/material': link:packages/mui-material/build - '@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) - '@mui/utils': 5.15.14(@types/react@18.2.55)(react@18.2.0) + '@mui/system': 5.15.20(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0))(@types/react@18.2.55)(react@18.2.0) + '@mui/utils': 5.15.20(@types/react@18.2.55)(react@18.2.0) '@types/react-transition-group': 4.4.10 clsx: 2.1.1 prop-types: 15.8.1 From abbe033dea3d677120d8815bb73c2e19732015df Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:44:30 +0530 Subject: [PATCH 28/65] Bump danger to ^12.3.3 (#42720) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index b2891e8a6adb80..4b2dec371e2a81 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ "concurrently": "^8.2.2", "cpy-cli": "^5.0.0", "cross-env": "^7.0.3", - "danger": "^12.3.1", + "danger": "^12.3.3", "enzyme": "^3.11.0", "eslint": "^8.57.0", "eslint-config-airbnb": "^19.0.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8f78387fb04f51..d11b0bf9707f06 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -174,8 +174,8 @@ importers: specifier: ^7.0.3 version: 7.0.3 danger: - specifier: ^12.3.1 - version: 12.3.1(encoding@0.1.13) + specifier: ^12.3.3 + version: 12.3.3(encoding@0.1.13) enzyme: specifier: ^3.11.0 version: 3.11.0 @@ -6709,8 +6709,8 @@ packages: damerau-levenshtein@1.0.8: resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==} - danger@12.3.1: - resolution: {integrity: sha512-K5ydQs6fTl6+iAWZJ5Fk238YmGMGnDx/5ZD7ZBTK4NgztAxXIupWVEYUACFy/lUpvih6EDKocn12OF1MS3UsLQ==} + danger@12.3.3: + resolution: {integrity: sha512-nZKzpgXN21rr4dwa6bFhM7G2JEa79dZRJiT3RVRSyi4yk1/hgZ2f8HDGoa7tMladTmu8WjJFyE3LpBIihh+aDw==} engines: {node: '>=18'} hasBin: true @@ -17824,7 +17824,7 @@ snapshots: damerau-levenshtein@1.0.8: {} - danger@12.3.1(encoding@0.1.13): + danger@12.3.3(encoding@0.1.13): dependencies: '@gitbeaker/rest': 38.12.1 '@octokit/rest': 18.12.0(encoding@0.1.13) From e0d119a14899f5e07737475be31f89f72a26394e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:45:50 +0530 Subject: [PATCH 29/65] Bump eslint-plugin-react to ^7.34.3 (#42721) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 25 +++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 4b2dec371e2a81..2ba29011e97ac1 100644 --- a/package.json +++ b/package.json @@ -154,7 +154,7 @@ "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-material-ui": "workspace:^", "eslint-plugin-mocha": "^10.4.3", - "eslint-plugin-react": "^7.34.2", + "eslint-plugin-react": "^7.34.3", "eslint-plugin-react-compiler": "0.0.0-experimental-51a85ea-20240601", "eslint-plugin-react-hooks": "^4.6.2", "fast-glob": "^3.3.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d11b0bf9707f06..6d2608b2070fa4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -184,7 +184,7 @@ importers: version: 8.57.0 eslint-config-airbnb: specifier: ^19.0.4 - version: 19.0.4(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-webpack@0.13.8)(eslint@8.57.0))(eslint-plugin-jsx-a11y@6.7.1(eslint@8.57.0))(eslint-plugin-react-hooks@4.6.2(eslint@8.57.0))(eslint-plugin-react@7.34.2(eslint@8.57.0))(eslint@8.57.0) + version: 19.0.4(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-webpack@0.13.8)(eslint@8.57.0))(eslint-plugin-jsx-a11y@6.7.1(eslint@8.57.0))(eslint-plugin-react-hooks@4.6.2(eslint@8.57.0))(eslint-plugin-react@7.34.3(eslint@8.57.0))(eslint@8.57.0) eslint-config-airbnb-typescript: specifier: ^18.0.0 version: 18.0.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5))(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-webpack@0.13.8)(eslint@8.57.0))(eslint@8.57.0) @@ -213,8 +213,8 @@ importers: specifier: ^10.4.3 version: 10.4.3(eslint@8.57.0) eslint-plugin-react: - specifier: ^7.34.2 - version: 7.34.2(eslint@8.57.0) + specifier: ^7.34.3 + version: 7.34.3(eslint@8.57.0) eslint-plugin-react-compiler: specifier: 0.0.0-experimental-51a85ea-20240601 version: 0.0.0-experimental-51a85ea-20240601(eslint@8.57.0) @@ -5780,8 +5780,9 @@ packages: array.prototype.toreversed@1.1.2: resolution: {integrity: sha512-wwDCoT4Ck4Cz7sLtgUmzR5UV3YF5mFHUlbChCzZBQZ+0m2cl/DH3tKgvphv1nKgFsJ48oCSg6p91q2Vm0I/ZMA==} - array.prototype.tosorted@1.1.3: - resolution: {integrity: sha512-/DdH4TiTmOKzyQbp/eadcCVexiCb36xJg7HshYOYJnNZFDj33GEv0P7GxsynpShhq4OLYJzbGcBDkLsDt7MnNg==} + array.prototype.tosorted@1.1.4: + resolution: {integrity: sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==} + engines: {node: '>= 0.4'} arraybuffer.prototype.slice@1.0.3: resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==} @@ -7277,8 +7278,8 @@ packages: peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 - eslint-plugin-react@7.34.2: - resolution: {integrity: sha512-2HCmrU+/JNigDN6tg55cRDKCQWicYAPB38JGSFDQt95jDm8rrvSUo7YPkOIm5l6ts1j1zCvysNcasvfTMQzUOw==} + eslint-plugin-react@7.34.3: + resolution: {integrity: sha512-aoW4MV891jkUulwDApQbPYTVZmeuSyFrudpbTAQuj5Fv8VL+o6df2xIGpw8B0hPjAaih1/Fb0om9grCdyFYemA==} engines: {node: '>=4'} peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 @@ -16712,7 +16713,7 @@ snapshots: es-abstract: 1.23.3 es-shim-unscopables: 1.0.2 - array.prototype.tosorted@1.1.3: + array.prototype.tosorted@1.1.4: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 @@ -18433,13 +18434,13 @@ snapshots: transitivePeerDependencies: - eslint-plugin-import - eslint-config-airbnb@19.0.4(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-webpack@0.13.8)(eslint@8.57.0))(eslint-plugin-jsx-a11y@6.7.1(eslint@8.57.0))(eslint-plugin-react-hooks@4.6.2(eslint@8.57.0))(eslint-plugin-react@7.34.2(eslint@8.57.0))(eslint@8.57.0): + eslint-config-airbnb@19.0.4(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-webpack@0.13.8)(eslint@8.57.0))(eslint-plugin-jsx-a11y@6.7.1(eslint@8.57.0))(eslint-plugin-react-hooks@4.6.2(eslint@8.57.0))(eslint-plugin-react@7.34.3(eslint@8.57.0))(eslint@8.57.0): dependencies: eslint: 8.57.0 eslint-config-airbnb-base: 15.0.0(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-webpack@0.13.8)(eslint@8.57.0))(eslint@8.57.0) eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-webpack@0.13.8)(eslint@8.57.0) eslint-plugin-jsx-a11y: 6.7.1(eslint@8.57.0) - eslint-plugin-react: 7.34.2(eslint@8.57.0) + eslint-plugin-react: 7.34.3(eslint@8.57.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.57.0) object.assign: 4.1.5 object.entries: 1.1.8 @@ -18568,13 +18569,13 @@ snapshots: dependencies: eslint: 8.57.0 - eslint-plugin-react@7.34.2(eslint@8.57.0): + eslint-plugin-react@7.34.3(eslint@8.57.0): dependencies: array-includes: 3.1.8 array.prototype.findlast: 1.2.5 array.prototype.flatmap: 1.3.2 array.prototype.toreversed: 1.1.2 - array.prototype.tosorted: 1.1.3 + array.prototype.tosorted: 1.1.4 doctrine: 2.1.0 es-iterator-helpers: 1.0.19 eslint: 8.57.0 From 8cd5c8f281ec749891af555506f6abf7fa1ff1ad Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:48:25 +0530 Subject: [PATCH 30/65] Bump nx to ^19.3.1 (#42722) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 118 ++++++++++++++++++++++++------------------------- 2 files changed, 60 insertions(+), 60 deletions(-) diff --git a/package.json b/package.json index 2ba29011e97ac1..bdd95046a9076b 100644 --- a/package.json +++ b/package.json @@ -172,7 +172,7 @@ "lodash": "^4.17.21", "markdownlint-cli2": "^0.13.0", "mocha": "^10.4.0", - "nx": "^19.3.0", + "nx": "^19.3.1", "nyc": "^17.0.0", "piscina": "^4.5.1", "postcss-styled-syntax": "^0.6.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6d2608b2070fa4..a99bba5d53f3a4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -267,8 +267,8 @@ importers: specifier: ^10.4.0 version: 10.4.0 nx: - specifier: ^19.3.0 - version: 19.3.0 + specifier: ^19.3.1 + version: 19.3.1 nyc: specifier: ^17.0.0 version: 17.0.0 @@ -4299,8 +4299,8 @@ packages: '@nrwl/devkit@17.2.8': resolution: {integrity: sha512-l2dFy5LkWqSA45s6pee6CoqJeluH+sjRdVnAAQfjLHRNSx6mFAKblyzq5h1f4P0EUCVVVqLs+kVqmNx5zxYqvw==} - '@nrwl/tao@19.3.0': - resolution: {integrity: sha512-MyGYeHbh9O4Tv9xmz3Du+/leY5sKUHaPy4ancfNyShHgYi21hemX0/YYjzzoYHi44D8GzSc1XG2rAuwba7Kilw==} + '@nrwl/tao@19.3.1': + resolution: {integrity: sha512-K3VqTNwJ5/4vAaExIVmESWnQgO95MiJEgo+OzkmfkFvYTCOH2006OwvgCJFTQdjyONJ8Ao/lUPrHSDfsoevSeA==} hasBin: true '@nx/devkit@17.2.8': @@ -4308,62 +4308,62 @@ packages: peerDependencies: nx: '>= 16 <= 18' - '@nx/nx-darwin-arm64@19.3.0': - resolution: {integrity: sha512-TMTxjrN7Y/UsKFjmz0YfhVItLTGWqvud8cmQchw5NEjdNakfjXk0mREufO5/5PwoiRIsen6MbThoTprLpjOUiQ==} + '@nx/nx-darwin-arm64@19.3.1': + resolution: {integrity: sha512-B8kpnfBBJJE4YfSvpNPNdKLi63cyd41dZJRePkBrW/7Va/wUiHuKoyAEQZEI2WmH9ZM3RNmw7dp5vESr05Sw5g==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] - '@nx/nx-darwin-x64@19.3.0': - resolution: {integrity: sha512-GH2L6ftnzdIs7JEdv7ZPCdbpAdB5sW6NijK07riYZSONzq5fEruD1yDWDkyZbYBb8RTxsparUWJnq8q1qxEPHQ==} + '@nx/nx-darwin-x64@19.3.1': + resolution: {integrity: sha512-XKY76oi7hLQAKZzGlEsqPxNWx7BOS8E801CA9k+hKNVqNJdD6Vz/1hkhzKo/TwBrPkyhdvrq+BqBMLS7ZDefKw==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] - '@nx/nx-freebsd-x64@19.3.0': - resolution: {integrity: sha512-1ow7Xku1yyjHviCKsWiuHCAnTd3fD+5O5c+e4DXHVthT8wnadKSotvBIWf38DMbMthl7na82e72OzxcdSbrVqQ==} + '@nx/nx-freebsd-x64@19.3.1': + resolution: {integrity: sha512-ZXDmzosPEq1DKC9r7UxPxF9I2GE11TmmYePcwN2xE1/you9+NUd14+SVW/jh/uH1j1n/41w0g35oNA6X0U+fGw==} engines: {node: '>= 10'} cpu: [x64] os: [freebsd] - '@nx/nx-linux-arm-gnueabihf@19.3.0': - resolution: {integrity: sha512-mYQMIUvNr2gww8vbg766uk/C1RxoC1fwioeP87bmV5NRUKSzJ8WEJVxAsqc9RGhAOUaNXOgEuKYrMcVhKyIKJQ==} + '@nx/nx-linux-arm-gnueabihf@19.3.1': + resolution: {integrity: sha512-2Ls+08J14BmkHpkQ6DhHGdW97IcY3vvqmuwogTBrt5ATmJIim3o/O4Kp4Sq+uuotf0kae0NP986BuoFw/WW/xg==} engines: {node: '>= 10'} cpu: [arm] os: [linux] - '@nx/nx-linux-arm64-gnu@19.3.0': - resolution: {integrity: sha512-rHL3eQ0RHkeAXnhHHu/NIyouN/ykiXvgyNU3TuCd50+2MZcAbjB+Xq3mwL0MwiP+BQuptiE+snTuxFUJp4ZH6A==} + '@nx/nx-linux-arm64-gnu@19.3.1': + resolution: {integrity: sha512-+UbThXaqKmctAavcwdYxmtZIjrojGLK4PJKdivR0awjPEJ9qXnxA0bOQk/GdbD8nse66LR2NnPeNDxxqfsh8tw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@nx/nx-linux-arm64-musl@19.3.0': - resolution: {integrity: sha512-im0+OgOD6ShpTkI9ZRz7BjzxhQ/Lk3xjYmmCu+PFGmaybEnkNNDFwsgS0iEVKMdWZ/EQoQvJrqOYsX125iIBuQ==} + '@nx/nx-linux-arm64-musl@19.3.1': + resolution: {integrity: sha512-JMuBbg2Zqdz4N7i+hiJGr2QdsDarDZ8vyzzeoevFq3b8nhZfqKh/lno7+Y0WkXNpH7aT05GHaUA1r1NXf/5BeQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@nx/nx-linux-x64-gnu@19.3.0': - resolution: {integrity: sha512-k8q/d6WBSXOeUpBq6Mw69yMKL4n9LaX3o4LBNwBkVCEZ8p6s0njwKefLtjwnKlai0g/k5f0NcilU2zTwP/Ex8g==} + '@nx/nx-linux-x64-gnu@19.3.1': + resolution: {integrity: sha512-cVmDMtolaqK7PziWxvjus1nCyj2wMNM+N0/4+rBEjG4v47gTtBxlZJoxK02jApdV+XELehsTjd0Z/xVfO4Rl1Q==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@nx/nx-linux-x64-musl@19.3.0': - resolution: {integrity: sha512-sahEV99glBlpGKG1TIQ5PkJ0QvpHp69wWsBFK2DKtCETxOtsWqwvIjemxTCXRirTqeHiP7BiR6VWsf2YqqqBdw==} + '@nx/nx-linux-x64-musl@19.3.1': + resolution: {integrity: sha512-UGujK/TLMz9TNJ6+6HLhoOV7pdlgPVosSyeNZcoXCHOg/Mg9NGM7Hgk9jDodtcAY+TP6QMDJIMVGuXBsCE7NLQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@nx/nx-win32-arm64-msvc@19.3.0': - resolution: {integrity: sha512-w03gFwLijStmhUji70QJHYo/U16ovybNczxGO7+5TT330X8/y+ihw9FCGHiIcujAjTAE88h0DKGn05WlNqRmfg==} + '@nx/nx-win32-arm64-msvc@19.3.1': + resolution: {integrity: sha512-q+2aaRXarh/+HOOW/JXRwEnEEwPdGipsfzXBPDuDDJ7aOYKuyG7g1DlSERKdzI/aEBP+joneZbcbZHaDcEv2xw==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] - '@nx/nx-win32-x64-msvc@19.3.0': - resolution: {integrity: sha512-M7e2zXGfTjH8NLiwqKLdWC9VlfMSQDYlI4/SM4OSpPqhUTfPlRPa+wNKNTG7perKfDXxE9ei8yjocujknXJk/A==} + '@nx/nx-win32-x64-msvc@19.3.1': + resolution: {integrity: sha512-TG4DP1lodTnIwY/CiSsc9Pk7o9/JZXgd1pP/xdHNTkrZYjE//z6TbSm+facBLuryuMhp6s/WlJaAlW241qva0Q==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -9682,8 +9682,8 @@ packages: nwsapi@2.2.7: resolution: {integrity: sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==} - nx@19.3.0: - resolution: {integrity: sha512-WILWiROUkZWwuPJ12tP24Z0NULPEhxFN9i55/fECuVXYaFtkg6FvEne9C4d4bRqhZPcbrz6WhHnzE3NhdjH7XQ==} + nx@19.3.1: + resolution: {integrity: sha512-dDkhnXMpnDN5/ZJxJXz7wPlKA3pQwQmwNQ3YmTrCwucNbpwNRdwXiDgbLpjlGCtaeE9yZh2E/dAH1HNbgViJ6g==} hasBin: true peerDependencies: '@swc-node/register': ^1.8.0 @@ -14148,7 +14148,7 @@ snapshots: '@lerna/create@8.1.3(encoding@0.1.13)': dependencies: '@npmcli/run-script': 7.0.2 - '@nx/devkit': 17.2.8(nx@19.3.0) + '@nx/devkit': 17.2.8(nx@19.3.1) '@octokit/plugin-enterprise-rest': 6.0.1 '@octokit/rest': 19.0.11(encoding@0.1.13) byte-size: 8.1.1 @@ -14185,7 +14185,7 @@ snapshots: npm-packlist: 5.1.1 npm-registry-fetch: 14.0.5 npmlog: 6.0.2 - nx: 19.3.0 + nx: 19.3.1 p-map: 4.0.0 p-map-series: 2.1.0 p-queue: 6.6.2 @@ -14726,60 +14726,60 @@ snapshots: transitivePeerDependencies: - supports-color - '@nrwl/devkit@17.2.8(nx@19.3.0)': + '@nrwl/devkit@17.2.8(nx@19.3.1)': dependencies: - '@nx/devkit': 17.2.8(nx@19.3.0) + '@nx/devkit': 17.2.8(nx@19.3.1) transitivePeerDependencies: - nx - '@nrwl/tao@19.3.0': + '@nrwl/tao@19.3.1': dependencies: - nx: 19.3.0 + nx: 19.3.1 tslib: 2.6.2 transitivePeerDependencies: - '@swc-node/register' - '@swc/core' - debug - '@nx/devkit@17.2.8(nx@19.3.0)': + '@nx/devkit@17.2.8(nx@19.3.1)': dependencies: - '@nrwl/devkit': 17.2.8(nx@19.3.0) + '@nrwl/devkit': 17.2.8(nx@19.3.1) ejs: 3.1.8 enquirer: 2.3.6 ignore: 5.3.1 - nx: 19.3.0 + nx: 19.3.1 semver: 7.5.3 tmp: 0.2.3 tslib: 2.6.2 - '@nx/nx-darwin-arm64@19.3.0': + '@nx/nx-darwin-arm64@19.3.1': optional: true - '@nx/nx-darwin-x64@19.3.0': + '@nx/nx-darwin-x64@19.3.1': optional: true - '@nx/nx-freebsd-x64@19.3.0': + '@nx/nx-freebsd-x64@19.3.1': optional: true - '@nx/nx-linux-arm-gnueabihf@19.3.0': + '@nx/nx-linux-arm-gnueabihf@19.3.1': optional: true - '@nx/nx-linux-arm64-gnu@19.3.0': + '@nx/nx-linux-arm64-gnu@19.3.1': optional: true - '@nx/nx-linux-arm64-musl@19.3.0': + '@nx/nx-linux-arm64-musl@19.3.1': optional: true - '@nx/nx-linux-x64-gnu@19.3.0': + '@nx/nx-linux-x64-gnu@19.3.1': optional: true - '@nx/nx-linux-x64-musl@19.3.0': + '@nx/nx-linux-x64-musl@19.3.1': optional: true - '@nx/nx-win32-arm64-msvc@19.3.0': + '@nx/nx-win32-arm64-msvc@19.3.1': optional: true - '@nx/nx-win32-x64-msvc@19.3.0': + '@nx/nx-win32-x64-msvc@19.3.1': optional: true '@octokit/auth-token@2.5.0': @@ -20496,7 +20496,7 @@ snapshots: dependencies: '@lerna/create': 8.1.3(encoding@0.1.13) '@npmcli/run-script': 7.0.2 - '@nx/devkit': 17.2.8(nx@19.3.0) + '@nx/devkit': 17.2.8(nx@19.3.1) '@octokit/plugin-enterprise-rest': 6.0.1 '@octokit/rest': 19.0.11(encoding@0.1.13) byte-size: 8.1.1 @@ -20539,7 +20539,7 @@ snapshots: npm-packlist: 5.1.1 npm-registry-fetch: 14.0.5 npmlog: 6.0.2 - nx: 19.3.0 + nx: 19.3.1 p-map: 4.0.0 p-map-series: 2.1.0 p-pipe: 3.1.0 @@ -21637,9 +21637,9 @@ snapshots: nwsapi@2.2.7: {} - nx@19.3.0: + nx@19.3.1: dependencies: - '@nrwl/tao': 19.3.0 + '@nrwl/tao': 19.3.1 '@yarnpkg/lockfile': 1.1.0 '@yarnpkg/parsers': 3.0.0-rc.46 '@zkochan/js-yaml': 0.0.7 @@ -21674,16 +21674,16 @@ snapshots: yargs: 17.7.2 yargs-parser: 21.1.1 optionalDependencies: - '@nx/nx-darwin-arm64': 19.3.0 - '@nx/nx-darwin-x64': 19.3.0 - '@nx/nx-freebsd-x64': 19.3.0 - '@nx/nx-linux-arm-gnueabihf': 19.3.0 - '@nx/nx-linux-arm64-gnu': 19.3.0 - '@nx/nx-linux-arm64-musl': 19.3.0 - '@nx/nx-linux-x64-gnu': 19.3.0 - '@nx/nx-linux-x64-musl': 19.3.0 - '@nx/nx-win32-arm64-msvc': 19.3.0 - '@nx/nx-win32-x64-msvc': 19.3.0 + '@nx/nx-darwin-arm64': 19.3.1 + '@nx/nx-darwin-x64': 19.3.1 + '@nx/nx-freebsd-x64': 19.3.1 + '@nx/nx-linux-arm-gnueabihf': 19.3.1 + '@nx/nx-linux-arm64-gnu': 19.3.1 + '@nx/nx-linux-arm64-musl': 19.3.1 + '@nx/nx-linux-x64-gnu': 19.3.1 + '@nx/nx-linux-x64-musl': 19.3.1 + '@nx/nx-win32-arm64-msvc': 19.3.1 + '@nx/nx-win32-x64-msvc': 19.3.1 transitivePeerDependencies: - debug From 3a21fda51ebb8074bade8e2028eda9c53261bb45 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:49:05 +0530 Subject: [PATCH 31/65] Bump tsx to ^4.15.7 (#42723) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index bdd95046a9076b..5fb06be314d6b5 100644 --- a/package.json +++ b/package.json @@ -185,7 +185,7 @@ "stylelint-config-standard": "^34.0.0", "stylelint-processor-styled-components": "^1.10.0", "terser-webpack-plugin": "^5.3.10", - "tsx": "^4.15.5", + "tsx": "^4.15.7", "typescript": "^5.4.5", "webpack": "^5.92.0", "webpack-bundle-analyzer": "^4.10.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a99bba5d53f3a4..e8ebd318067f78 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -306,8 +306,8 @@ importers: specifier: ^5.3.10 version: 5.3.10(webpack@5.92.0(webpack-cli@5.1.4)) tsx: - specifier: ^4.15.5 - version: 4.15.5 + specifier: ^4.15.7 + version: 4.15.7 typescript: specifier: ^5.4.5 version: 5.4.5 @@ -1395,7 +1395,7 @@ importers: version: 8.4.38 postcss-cli: specifier: ^11.0.0 - version: 11.0.0(jiti@1.21.0)(postcss@8.4.38)(tsx@4.15.5) + version: 11.0.0(jiti@1.21.0)(postcss@8.4.38)(tsx@4.15.7) yargs: specifier: ^17.7.2 version: 17.7.2 @@ -11740,8 +11740,8 @@ packages: resolution: {integrity: sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==} engines: {node: '>=0.6.x'} - tsx@4.15.5: - resolution: {integrity: sha512-iKi8jQ2VBmZ2kU/FkGkL2OSHBHsazsUzsdC/W/RwhKIEsIoZ1alCclZHP5jGfNHEaEWUJFM1GquzCf+4db3b0w==} + tsx@4.15.7: + resolution: {integrity: sha512-u3H0iSFDZM3za+VxkZ1kywdCeHCn+8/qHQS1MNoO2sONDgD95HlWtt8aB23OzeTmFP9IU4/8bZUdg58Uu5J4cg==} engines: {node: '>=18.0.0'} hasBin: true @@ -22181,7 +22181,7 @@ snapshots: possible-typed-array-names@1.0.0: {} - postcss-cli@11.0.0(jiti@1.21.0)(postcss@8.4.38)(tsx@4.15.5): + postcss-cli@11.0.0(jiti@1.21.0)(postcss@8.4.38)(tsx@4.15.7): dependencies: chokidar: 3.6.0 dependency-graph: 0.11.0 @@ -22190,7 +22190,7 @@ snapshots: globby: 14.0.1 picocolors: 1.0.1 postcss: 8.4.38 - postcss-load-config: 5.1.0(jiti@1.21.0)(postcss@8.4.38)(tsx@4.15.5) + postcss-load-config: 5.1.0(jiti@1.21.0)(postcss@8.4.38)(tsx@4.15.7) postcss-reporter: 7.1.0(postcss@8.4.38) pretty-hrtime: 1.0.3 read-cache: 1.0.0 @@ -22230,14 +22230,14 @@ snapshots: optionalDependencies: postcss: 8.4.38 - postcss-load-config@5.1.0(jiti@1.21.0)(postcss@8.4.38)(tsx@4.15.5): + postcss-load-config@5.1.0(jiti@1.21.0)(postcss@8.4.38)(tsx@4.15.7): dependencies: lilconfig: 3.1.1 yaml: 2.4.2 optionalDependencies: jiti: 1.21.0 postcss: 8.4.38 - tsx: 4.15.5 + tsx: 4.15.7 postcss-nested@6.0.1(postcss@8.4.38): dependencies: @@ -24092,7 +24092,7 @@ snapshots: tsscmp@1.0.6: {} - tsx@4.15.5: + tsx@4.15.7: dependencies: esbuild: 0.21.5 get-tsconfig: 4.7.5 From 4a31b981a0e7da413a4209ba59d1de50e5fb7da1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:49:40 +0530 Subject: [PATCH 32/65] Bump webpack to ^5.92.1 (#42724) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- benchmark/package.json | 2 +- package.json | 2 +- pnpm-lock.yaml | 104 ++++++++++++++++++++--------------------- test/package.json | 2 +- 4 files changed, 55 insertions(+), 55 deletions(-) diff --git a/benchmark/package.json b/benchmark/package.json index c8685b2f2ea1d0..268161e59a29f6 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -37,6 +37,6 @@ "styled-components": "^6.1.11", "styled-system": "^5.1.5", "theme-ui": "^0.16.2", - "webpack": "^5.92.0" + "webpack": "^5.92.1" } } diff --git a/package.json b/package.json index 5fb06be314d6b5..3a614aed039cf3 100644 --- a/package.json +++ b/package.json @@ -187,7 +187,7 @@ "terser-webpack-plugin": "^5.3.10", "tsx": "^4.15.7", "typescript": "^5.4.5", - "webpack": "^5.92.0", + "webpack": "^5.92.1", "webpack-bundle-analyzer": "^4.10.2", "webpack-cli": "^5.1.4", "yargs": "^17.7.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e8ebd318067f78..856000efe0b6b9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -139,7 +139,7 @@ importers: version: 6.21.0(eslint@8.57.0)(typescript@5.4.5) babel-loader: specifier: ^9.1.3 - version: 9.1.3(@babel/core@7.24.7)(webpack@5.92.0(webpack-cli@5.1.4)) + version: 9.1.3(@babel/core@7.24.7)(webpack@5.92.1(webpack-cli@5.1.4)) babel-plugin-istanbul: specifier: ^6.1.1 version: 6.1.1 @@ -163,7 +163,7 @@ importers: version: 5.3.0 compression-webpack-plugin: specifier: ^11.1.0 - version: 11.1.0(webpack@5.92.0(webpack-cli@5.1.4)) + version: 11.1.0(webpack@5.92.1(webpack-cli@5.1.4)) concurrently: specifier: ^8.2.2 version: 8.2.2 @@ -193,7 +193,7 @@ importers: version: 9.1.0(eslint@8.57.0) eslint-import-resolver-webpack: specifier: ^0.13.8 - version: 0.13.8(eslint-plugin-import@2.29.1)(webpack@5.92.0(webpack-cli@5.1.4)) + version: 0.13.8(eslint-plugin-import@2.29.1)(webpack@5.92.1(webpack-cli@5.1.4)) eslint-plugin-babel: specifier: ^5.3.1 version: 5.3.1(eslint@8.57.0) @@ -253,7 +253,7 @@ importers: version: 0.4.0 karma-webpack: specifier: ^5.0.0 - version: 5.0.0(webpack@5.92.0(webpack-cli@5.1.4)) + version: 5.0.0(webpack@5.92.1(webpack-cli@5.1.4)) lerna: specifier: ^8.1.3 version: 8.1.3(encoding@0.1.13) @@ -304,7 +304,7 @@ importers: version: 1.10.0 terser-webpack-plugin: specifier: ^5.3.10 - version: 5.3.10(webpack@5.92.0(webpack-cli@5.1.4)) + version: 5.3.10(webpack@5.92.1(webpack-cli@5.1.4)) tsx: specifier: ^4.15.7 version: 4.15.7 @@ -312,14 +312,14 @@ importers: specifier: ^5.4.5 version: 5.4.5 webpack: - specifier: ^5.92.0 - version: 5.92.0(webpack-cli@5.1.4) + specifier: ^5.92.1 + version: 5.92.1(webpack-cli@5.1.4) webpack-bundle-analyzer: specifier: ^4.10.2 version: 4.10.2 webpack-cli: specifier: ^5.1.4 - version: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0) + version: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1) yargs: specifier: ^17.7.2 version: 17.7.2 @@ -548,8 +548,8 @@ importers: specifier: ^0.16.2 version: 0.16.2(@emotion/react@11.11.4(@types/react@18.2.55)(react@18.2.0))(react@18.2.0) webpack: - specifier: ^5.92.0 - version: 5.92.0(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0)) + specifier: ^5.92.1 + version: 5.92.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1)) docs: dependencies: @@ -2289,7 +2289,7 @@ importers: version: 11.2.0 html-webpack-plugin: specifier: ^5.6.0 - version: 5.6.0(webpack@5.92.0(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0))) + version: 5.6.0(webpack@5.92.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1))) lodash: specifier: ^4.17.21 version: 4.17.21 @@ -2330,8 +2330,8 @@ importers: specifier: ^1.6.28 version: 1.6.28 webpack: - specifier: ^5.92.0 - version: 5.92.0(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0)) + specifier: ^5.92.1 + version: 5.92.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1)) yargs: specifier: ^17.7.2 version: 17.7.2 @@ -12133,8 +12133,8 @@ packages: webpack-virtual-modules@0.6.1: resolution: {integrity: sha512-poXpCylU7ExuvZK8z+On3kX+S8o/2dQ/SVYueKA0D4WEMXROXgY8Ez50/bQEUmvoSMMrWcrJqCHuhAbsiwg7Dg==} - webpack@5.92.0: - resolution: {integrity: sha512-Bsw2X39MYIgxouNATyVpCNVWBCuUwDgWtN78g6lSdPJRLaQ/PUVm/oXcaRAyY/sMFoKFQrsPeqvTizWtq7QPCA==} + webpack@5.92.1: + resolution: {integrity: sha512-JECQ7IwJb+7fgUFBlrJzbyu3GEuNBcdqr1LD7IbSzwkSmIevTm8PF+wej3Oxuz/JFBUZ6O1o43zsPkwm1C4TmA==} engines: {node: '>=10.13.0'} hasBin: true peerDependencies: @@ -16323,20 +16323,20 @@ snapshots: '@webassemblyjs/ast': 1.12.1 '@xtuc/long': 4.2.2 - '@webpack-cli/configtest@2.1.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4))': + '@webpack-cli/configtest@2.1.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1))(webpack@5.92.1(webpack-cli@5.1.4))': dependencies: - webpack: 5.92.0(webpack-cli@5.1.4) - webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0) + webpack: 5.92.1(webpack-cli@5.1.4) + webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1) - '@webpack-cli/info@2.0.2(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4))': + '@webpack-cli/info@2.0.2(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1))(webpack@5.92.1(webpack-cli@5.1.4))': dependencies: - webpack: 5.92.0(webpack-cli@5.1.4) - webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0) + webpack: 5.92.1(webpack-cli@5.1.4) + webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1) - '@webpack-cli/serve@2.0.5(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4))': + '@webpack-cli/serve@2.0.5(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1))(webpack@5.92.1(webpack-cli@5.1.4))': dependencies: - webpack: 5.92.0(webpack-cli@5.1.4) - webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0) + webpack: 5.92.1(webpack-cli@5.1.4) + webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1) '@wyw-in-js/processor-utils@0.5.3': dependencies: @@ -16823,12 +16823,12 @@ snapshots: dependencies: '@babel/core': 7.24.7 - babel-loader@9.1.3(@babel/core@7.24.7)(webpack@5.92.0(webpack-cli@5.1.4)): + babel-loader@9.1.3(@babel/core@7.24.7)(webpack@5.92.1(webpack-cli@5.1.4)): dependencies: '@babel/core': 7.24.7 find-cache-dir: 4.0.0 schema-utils: 4.2.0 - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.1(webpack-cli@5.1.4) babel-merge@3.0.0(@babel/core@7.24.7): dependencies: @@ -17475,11 +17475,11 @@ snapshots: dependencies: mime-db: 1.52.0 - compression-webpack-plugin@11.1.0(webpack@5.92.0(webpack-cli@5.1.4)): + compression-webpack-plugin@11.1.0(webpack@5.92.1(webpack-cli@5.1.4)): dependencies: schema-utils: 4.2.0 serialize-javascript: 6.0.2 - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.1(webpack-cli@5.1.4) compression@1.7.4: dependencies: @@ -18457,7 +18457,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-webpack@0.13.8(eslint-plugin-import@2.29.1)(webpack@5.92.0(webpack-cli@5.1.4)): + eslint-import-resolver-webpack@0.13.8(eslint-plugin-import@2.29.1)(webpack@5.92.1(webpack-cli@5.1.4)): dependencies: array.prototype.find: 2.2.2 debug: 3.2.7 @@ -18471,18 +18471,18 @@ snapshots: lodash: 4.17.21 resolve: 2.0.0-next.5 semver: 5.7.2 - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.1(webpack-cli@5.1.4) transitivePeerDependencies: - supports-color - eslint-module-utils@2.8.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-webpack@0.13.8(eslint-plugin-import@2.29.1)(webpack@5.92.0(webpack-cli@5.1.4)))(eslint@8.57.0): + eslint-module-utils@2.8.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-webpack@0.13.8(eslint-plugin-import@2.29.1)(webpack@5.92.1(webpack-cli@5.1.4)))(eslint@8.57.0): dependencies: debug: 3.2.7 optionalDependencies: '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.4.5) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-webpack: 0.13.8(eslint-plugin-import@2.29.1)(webpack@5.92.0(webpack-cli@5.1.4)) + eslint-import-resolver-webpack: 0.13.8(eslint-plugin-import@2.29.1)(webpack@5.92.1(webpack-cli@5.1.4)) transitivePeerDependencies: - supports-color @@ -18509,7 +18509,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-webpack@0.13.8(eslint-plugin-import@2.29.1)(webpack@5.92.0(webpack-cli@5.1.4)))(eslint@8.57.0) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-webpack@0.13.8(eslint-plugin-import@2.29.1)(webpack@5.92.1(webpack-cli@5.1.4)))(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 @@ -19498,7 +19498,7 @@ snapshots: readable-stream: 1.0.34 through2: 0.4.2 - html-webpack-plugin@5.6.0(webpack@5.92.0(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0))): + html-webpack-plugin@5.6.0(webpack@5.92.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1))): dependencies: '@types/html-minifier-terser': 6.1.0 html-minifier-terser: 6.1.0 @@ -19506,7 +19506,7 @@ snapshots: pretty-error: 4.0.0 tapable: 2.2.1 optionalDependencies: - webpack: 5.92.0(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0)) + webpack: 5.92.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1)) htmlparser2@6.1.0: dependencies: @@ -20429,11 +20429,11 @@ snapshots: dependencies: graceful-fs: 4.2.11 - karma-webpack@5.0.0(webpack@5.92.0(webpack-cli@5.1.4)): + karma-webpack@5.0.0(webpack@5.92.1(webpack-cli@5.1.4)): dependencies: glob: 7.2.3 minimatch: 3.1.2 - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.1(webpack-cli@5.1.4) webpack-merge: 4.2.2 karma@6.4.3: @@ -23938,23 +23938,23 @@ snapshots: dependencies: rimraf: 2.6.3 - terser-webpack-plugin@5.3.10(webpack@5.92.0(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0))): + terser-webpack-plugin@5.3.10(webpack@5.92.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1))): dependencies: '@jridgewell/trace-mapping': 0.3.25 jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.2 terser: 5.29.2 - webpack: 5.92.0(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0)) + webpack: 5.92.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1)) - terser-webpack-plugin@5.3.10(webpack@5.92.0(webpack-cli@5.1.4)): + terser-webpack-plugin@5.3.10(webpack@5.92.1(webpack-cli@5.1.4)): dependencies: '@jridgewell/trace-mapping': 0.3.25 jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.2 terser: 5.29.2 - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.1(webpack-cli@5.1.4) terser@5.29.2: dependencies: @@ -24462,12 +24462,12 @@ snapshots: - bufferutil - utf-8-validate - webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0): + webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1): dependencies: '@discoveryjs/json-ext': 0.5.7 - '@webpack-cli/configtest': 2.1.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4)) - '@webpack-cli/info': 2.0.2(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4)) - '@webpack-cli/serve': 2.0.5(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4)) + '@webpack-cli/configtest': 2.1.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1))(webpack@5.92.1(webpack-cli@5.1.4)) + '@webpack-cli/info': 2.0.2(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1))(webpack@5.92.1(webpack-cli@5.1.4)) + '@webpack-cli/serve': 2.0.5(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1))(webpack@5.92.1(webpack-cli@5.1.4)) colorette: 2.0.20 commander: 10.0.1 cross-spawn: 7.0.3 @@ -24476,7 +24476,7 @@ snapshots: import-local: 3.1.0 interpret: 3.1.1 rechoir: 0.8.0 - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.1(webpack-cli@5.1.4) webpack-merge: 5.9.0 optionalDependencies: webpack-bundle-analyzer: 4.10.2 @@ -24494,7 +24494,7 @@ snapshots: webpack-virtual-modules@0.6.1: {} - webpack@5.92.0(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0)): + webpack@5.92.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1)): dependencies: '@types/eslint-scope': 3.7.4 '@types/estree': 1.0.5 @@ -24517,17 +24517,17 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.10(webpack@5.92.0(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0))) + terser-webpack-plugin: 5.3.10(webpack@5.92.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1))) watchpack: 2.4.1 webpack-sources: 3.2.3 optionalDependencies: - webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0) + webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1) transitivePeerDependencies: - '@swc/core' - esbuild - uglify-js - webpack@5.92.0(webpack-cli@5.1.4): + webpack@5.92.1(webpack-cli@5.1.4): dependencies: '@types/eslint-scope': 3.7.4 '@types/estree': 1.0.5 @@ -24550,11 +24550,11 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.10(webpack@5.92.0(webpack-cli@5.1.4)) + terser-webpack-plugin: 5.3.10(webpack@5.92.1(webpack-cli@5.1.4)) watchpack: 2.4.1 webpack-sources: 3.2.3 optionalDependencies: - webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.0) + webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1) transitivePeerDependencies: - '@swc/core' - esbuild diff --git a/test/package.json b/test/package.json index 9fc9b3578bcd66..7f2aa77835bd4b 100644 --- a/test/package.json +++ b/test/package.json @@ -41,7 +41,7 @@ "stylis-plugin-rtl": "^2.1.1", "stylis-plugin-rtl-sc": "npm:stylis-plugin-rtl@^1.1.0", "webfontloader": "^1.6.28", - "webpack": "^5.92.0", + "webpack": "^5.92.1", "yargs": "^17.7.2" }, "dependencies": { From 4978ba8fb6bc12e7b7e8d972d9fc7c289154b036 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:50:27 +0530 Subject: [PATCH 33/65] Bump @argos-ci/core to ^2.3.0 (#42725) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 3a614aed039cf3..cd9363e573e7bc 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "google-auth-library": "^9.11.0" }, "devDependencies": { - "@argos-ci/core": "^2.2.0", + "@argos-ci/core": "^2.3.0", "@babel/cli": "^7.24.7", "@babel/core": "^7.24.7", "@babel/node": "^7.24.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 856000efe0b6b9..e10e0fc354a2bf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,8 +42,8 @@ importers: version: 9.11.0(encoding@0.1.13) devDependencies: '@argos-ci/core': - specifier: ^2.2.0 - version: 2.2.0 + specifier: ^2.3.0 + version: 2.3.0 '@babel/cli': specifier: ^7.24.7 version: 7.24.7(@babel/core@7.24.7) @@ -2430,8 +2430,8 @@ packages: resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} - '@argos-ci/core@2.2.0': - resolution: {integrity: sha512-T5W37CZ6HZjRcVAXuPj0wUB/Fm4VdwLvKpQL9yqSwiJganeNz7u8AFYJ30ujSUJS1jdUViW5TNnmsgDjuvGyTQ==} + '@argos-ci/core@2.3.0': + resolution: {integrity: sha512-0mHncBeOD7GFYfGZYUEcDgLyzsvPyxK/L1MROfAurFeWcw89ODG24JEdPsECtZBSCZMmMcK8XqeJIJkZsnDGZA==} engines: {node: '>=18.0.0'} '@argos-ci/util@2.0.0': @@ -12559,7 +12559,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@argos-ci/core@2.2.0': + '@argos-ci/core@2.3.0': dependencies: '@argos-ci/util': 2.0.0 axios: 1.6.8(debug@4.3.4) From eb350d577e7272dad7a146d949d12d57e020c7e4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:51:21 +0530 Subject: [PATCH 34/65] Bump aws-sdk to ^2.1646.0 (#42728) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/feedback/package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/feedback/package.json b/packages/feedback/package.json index 37daa907aead91..8b625c68c02ca0 100644 --- a/packages/feedback/package.json +++ b/packages/feedback/package.json @@ -25,6 +25,6 @@ "claudia": "^5.14.1" }, "optionalDependencies": { - "aws-sdk": "^2.1642.0" + "aws-sdk": "^2.1646.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e10e0fc354a2bf..b72b1fd645df1e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1236,8 +1236,8 @@ importers: version: 9.0.1 optionalDependencies: aws-sdk: - specifier: ^2.1642.0 - version: 2.1642.0 + specifier: ^2.1646.0 + version: 2.1646.0 devDependencies: claudia: specifier: ^5.14.1 @@ -5858,8 +5858,8 @@ packages: resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} engines: {node: '>= 0.4'} - aws-sdk@2.1642.0: - resolution: {integrity: sha512-xTqRcLbb7F3GadFQN1+m25nP1twA2Lmlmhpt5gbYb3VCR91lb+c9EnsEr7U60zLv4AR2ip/GkDtSpKS/EzLOzA==} + aws-sdk@2.1646.0: + resolution: {integrity: sha512-PAvDiR8ow3zjO0T5HMda04kXIzQ5e1zeWxWGSUodRwu9W569gZPBnqzcPX3PJFNAKBZnZBdbNgsci1g2nXCcBg==} engines: {node: '>= 10.0.0'} axe-core@4.7.2: @@ -16792,7 +16792,7 @@ snapshots: dependencies: possible-typed-array-names: 1.0.0 - aws-sdk@2.1642.0: + aws-sdk@2.1646.0: dependencies: buffer: 4.9.2 events: 1.1.1 @@ -17310,7 +17310,7 @@ snapshots: claudia@5.14.1: dependencies: archiver: 3.1.1 - aws-sdk: 2.1642.0 + aws-sdk: 2.1646.0 fs-extra: 6.0.1 glob: 7.2.3 gunzip-maybe: 1.4.2 From 55f4ddf7dcabc31ae87affcb91ec8db56c55d660 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 18:12:38 +0530 Subject: [PATCH 35/65] Bump @slack/bolt to ^3.19.0 (#42727) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index cd9363e573e7bc..c041616f018f75 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "dependencies": { "@googleapis/sheets": "^8.0.0", "@netlify/functions": "^2.7.0", - "@slack/bolt": "^3.18.0", + "@slack/bolt": "^3.19.0", "execa": "^9.2.0", "google-auth-library": "^9.11.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b72b1fd645df1e..ea178cae81cebb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,8 +32,8 @@ importers: specifier: ^2.7.0 version: 2.7.0(@opentelemetry/api@1.8.0) '@slack/bolt': - specifier: ^3.18.0 - version: 3.18.0 + specifier: ^3.19.0 + version: 3.19.0 execa: specifier: ^9.2.0 version: 9.2.0 @@ -4931,8 +4931,8 @@ packages: '@sinonjs/text-encoding@0.7.2': resolution: {integrity: sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==} - '@slack/bolt@3.18.0': - resolution: {integrity: sha512-A7bDi5kY50fS6/nsmURkQdO3iMxD8aX/rA+m1UXEM2ue2z4KijeQtx2sOZ4YkJQ/h7BsgTQM0CYh3qqmo+m5sQ==} + '@slack/bolt@3.19.0': + resolution: {integrity: sha512-P5Yup/PbO8sE5xsuqkBkpSPkxEkfWZ6yo5ZlmBGxRhhoU1usUSU2w0bgZoiDX4WFm7ZX+3x2Dyf4VMa9kzfmVQ==} engines: {node: '>=12.13.0', npm: '>=6.12.0'} '@slack/logger@3.0.0': @@ -15632,7 +15632,7 @@ snapshots: '@sinonjs/text-encoding@0.7.2': {} - '@slack/bolt@3.18.0': + '@slack/bolt@3.19.0': dependencies: '@slack/logger': 4.0.0 '@slack/oauth': 2.6.2 From 7bdc0300b01278e995b2450a1ecd8551680ea458 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 18:16:06 +0530 Subject: [PATCH 36/65] Bump jscodeshift to ^0.16.0 (#42730) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/mui-codemod/package.json | 2 +- pnpm-lock.yaml | 398 ++++++++++++++++++++++++++---- 2 files changed, 348 insertions(+), 52 deletions(-) diff --git a/packages/mui-codemod/package.json b/packages/mui-codemod/package.json index 2fe4c040851eb8..b17022668676f6 100644 --- a/packages/mui-codemod/package.json +++ b/packages/mui-codemod/package.json @@ -33,7 +33,7 @@ "@babel/core": "^7.24.7", "@babel/runtime": "^7.24.7", "@babel/traverse": "^7.24.7", - "jscodeshift": "^0.15.2", + "jscodeshift": "^0.16.0", "jscodeshift-add-imports": "^1.0.10", "postcss": "^8.4.38", "postcss-cli": "^11.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ea178cae81cebb..14a5777aa3eb0c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1385,11 +1385,11 @@ importers: specifier: ^7.24.7 version: 7.24.7 jscodeshift: - specifier: ^0.15.2 - version: 0.15.2(@babel/preset-env@7.24.7(@babel/core@7.24.7)) + specifier: ^0.16.0 + version: 0.16.0(@babel/preset-env@7.24.7(@babel/core@7.24.7)) jscodeshift-add-imports: specifier: ^1.0.10 - version: 1.0.10(jscodeshift@0.15.2(@babel/preset-env@7.24.7(@babel/core@7.24.7))) + version: 1.0.10(jscodeshift@0.16.0(@babel/preset-env@7.24.7(@babel/core@7.24.7))) postcss: specifier: ^8.4.38 version: 8.4.38 @@ -2708,8 +2708,8 @@ packages: peerDependencies: '@babel/core': ^7.24.7 - '@babel/plugin-syntax-flow@7.24.1': - resolution: {integrity: sha512-sxi2kLTI5DeW5vDtMUsk4mTPwvlUDbjOnoWayhynCwrw4QXRld4QEYwqzY8JmQXaJUtgUuCIurtSRH5sn4c7mA==} + '@babel/plugin-syntax-flow@7.24.7': + resolution: {integrity: sha512-9G8GYT/dxn/D1IIKOUBmGX0mnmj46mGH9NnZyJLwtCpgh5f7D2VbuKodb+2s9m1Yavh1s7ASQN8lf0eqrb1LTw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.24.7 @@ -2886,8 +2886,8 @@ packages: peerDependencies: '@babel/core': ^7.24.7 - '@babel/plugin-transform-flow-strip-types@7.24.1': - resolution: {integrity: sha512-iIYPIWt3dUmUKKE10s3W+jsQ3icFkw0JyRVyY1B7G4yK/nngAOHLVx8xlhA6b/Jzl/Y0nis8gjqhqKtRDQqHWQ==} + '@babel/plugin-transform-flow-strip-types@7.24.7': + resolution: {integrity: sha512-cjRKJ7FobOH2eakx7Ja+KpJRj8+y+/SiB3ooYm/n2UJfxu0oEaOoxOinitkJcPqv9KxS0kxTGPUaR7L2XcXDXA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.24.7 @@ -3150,8 +3150,8 @@ packages: peerDependencies: '@babel/core': ^7.24.7 - '@babel/preset-flow@7.24.1': - resolution: {integrity: sha512-sWCV2G9pcqZf+JHyv/RyqEIpFypxdCSxWIxQjpdaQxenNog7cN1pr76hg8u0Fz8Qgg0H4ETkGcJnXL8d4j0PPA==} + '@babel/preset-flow@7.24.7': + resolution: {integrity: sha512-NL3Lo0NorCU607zU3NwRyJbpaB6E3t0xtd3LfAQKDfkeX4/ggcDXvkmkW42QWT5owUeW/jAe4hn+2qvkV1IbfQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.24.7 @@ -5638,6 +5638,10 @@ packages: ansi-fragments@0.2.1: resolution: {integrity: sha512-DykbNHxuXQwUDRv5ibc2b0x7uw7wmwOGLBUd5RmaQ5z8Lhx19vwvKV+FAsM5rEA6dEcHxX+/Ad5s9eF2k2bB+w==} + ansi-regex@2.1.1: + resolution: {integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==} + engines: {node: '>=0.10.0'} + ansi-regex@4.1.1: resolution: {integrity: sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==} engines: {node: '>=6'} @@ -5650,6 +5654,10 @@ packages: resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} engines: {node: '>=12'} + ansi-styles@2.2.1: + resolution: {integrity: sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==} + engines: {node: '>=0.10.0'} + ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -5872,11 +5880,23 @@ packages: axobject-query@3.2.1: resolution: {integrity: sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==} + babel-code-frame@6.26.0: + resolution: {integrity: sha512-XqYMR2dfdGMW+hd0IUZ2PwK+fGeFkOxZJ0wY+JaQAHzt1Zx8LcvpiZD2NiGkEG8qx0CfkAOr5xt76d1e8vG90g==} + + babel-core@6.26.3: + resolution: {integrity: sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==} + babel-core@7.0.0-bridge.0: resolution: {integrity: sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==} peerDependencies: '@babel/core': ^7.24.7 + babel-generator@6.26.1: + resolution: {integrity: sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==} + + babel-helpers@6.24.1: + resolution: {integrity: sha512-n7pFrqQm44TCYvrCDb0MqabAF+JUBq+ijBvNMUxpkLjJaAu32faIexewMumrH5KLLJ1HDyT0PTEqRyAe/GwwuQ==} + babel-loader@9.1.3: resolution: {integrity: sha512-xG3ST4DglodGf8qSwv0MdeWLhrDsw/32QMdTO5T1ZIp9gQur0HkCyFs7Awskr10JKXFXwpAhiCuYX5oGXnRGbw==} engines: {node: '>= 14.15.0'} @@ -5890,6 +5910,9 @@ packages: peerDependencies: '@babel/core': ^7.24.7 + babel-messages@6.23.0: + resolution: {integrity: sha512-Bl3ZiA+LjqaMtNYopA9TYE9HP1tQ+E5dLxE0XrAzcIJeK2UqF0/EaqXwBn9esd4UmTfEab+P+UYQ1GnioFIb/w==} + babel-plugin-define-var@0.1.0: resolution: {integrity: sha512-WcK43U4uz+9G35Wvdnyri4Tcg8Ux9/hSbQC4ckpfrHFQp8Cuz1BIQK5NswuGxT3T8cc3d4e55wDeSO4dViOugg==} engines: {node: '>=10'} @@ -5938,6 +5961,25 @@ packages: babel-plugin-transform-react-remove-prop-types@0.4.24: resolution: {integrity: sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==} + babel-register@6.26.0: + resolution: {integrity: sha512-veliHlHX06wjaeY8xNITbveXSiI+ASFnOqvne/LaIJIqOWi2Ogmj91KOugEz/hoh/fwMhXNBJPCv8Xaz5CyM4A==} + + babel-runtime@6.26.0: + resolution: {integrity: sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==} + + babel-template@6.26.0: + resolution: {integrity: sha512-PCOcLFW7/eazGUKIoqH97sO9A2UYMahsn/yRQ7uOk37iutwjq7ODtcTNF+iFDSHNfkctqsLRjLP7URnOx0T1fg==} + + babel-traverse@6.26.0: + resolution: {integrity: sha512-iSxeXx7apsjCHe9c7n8VtRXGzI2Bk1rBSOJgCCjfyXb6v1aCqE1KSEpq/8SXuVN8Ka/Rh1WDTF0MDzkvTA4MIA==} + + babel-types@6.26.0: + resolution: {integrity: sha512-zhe3V/26rCWsEZK8kZN+HaQj5yQ1CilTObixFzKW1UWjqG7618Twz6YEsCnjfg5gBcJh02DrpCkS9h98ZqDY+g==} + + babylon@6.18.0: + resolution: {integrity: sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==} + hasBin: true + bail@1.0.5: resolution: {integrity: sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==} @@ -5997,8 +6039,8 @@ packages: brace-expansion@2.0.1: resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - braces@3.0.2: - resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} browser-stdout@1.3.1: @@ -6159,6 +6201,10 @@ packages: resolution: {integrity: sha512-/ghrgmhfY8RaSdeo43hNXxpoHAtxdbskUHjPpfqUWGttFgycUhYPGx3YZBCnUCvOa7Doivn1IZec3DEGFoMgLg==} engines: {node: '>=12'} + chalk@1.1.3: + resolution: {integrity: sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==} + engines: {node: '>=0.10.0'} + chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} engines: {node: '>=4'} @@ -6885,6 +6931,10 @@ packages: resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} + detect-indent@4.0.0: + resolution: {integrity: sha512-BDKtmHlOzwI7iRuEkhzsnPoi5ypEhWAJB5RvHWe1kMr06js3uK5B3734i3ui5Yd+wOJV1cpE4JnivPD283GU/A==} + engines: {node: '>=0.10.0'} + detect-indent@5.0.0: resolution: {integrity: sha512-rlpvsxUtM0PQvy9iZe640/IWwWYyBsTApREbA1pHOpmOUIl9MkP/U4z7vTtg4Oaojvqhxt7sdufnT0EzGaR31g==} engines: {node: '>=4'} @@ -7483,8 +7533,8 @@ packages: filelist@1.0.4: resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} - fill-range@7.0.1: - resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} final-form@4.20.10: @@ -7816,6 +7866,10 @@ packages: resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} engines: {node: '>=8'} + globals@9.18.0: + resolution: {integrity: sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==} + engines: {node: '>=0.10.0'} + globalthis@1.0.3: resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} engines: {node: '>= 0.4'} @@ -7885,6 +7939,10 @@ packages: resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} engines: {node: '>=6'} + has-ansi@2.0.0: + resolution: {integrity: sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==} + engines: {node: '>=0.10.0'} + has-bigints@1.0.2: resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} @@ -7953,6 +8011,10 @@ packages: hoist-non-react-statics@3.3.2: resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} + home-or-tmp@2.0.0: + resolution: {integrity: sha512-ycURW7oUxE2sNiPVw1HVEFsW+ecOpJ5zaj7eC0RlwhibhRBod20muUN8qu/gzx956YrLolVvs1MTXwKgC2rVEg==} + engines: {node: '>=0.10.0'} + homedir-polyfill@1.0.3: resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} engines: {node: '>=0.10.0'} @@ -8267,6 +8329,10 @@ packages: is-finalizationregistry@1.0.2: resolution: {integrity: sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==} + is-finite@1.1.0: + resolution: {integrity: sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==} + engines: {node: '>=0.10.0'} + is-fullwidth-code-point@2.0.0: resolution: {integrity: sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==} engines: {node: '>=4'} @@ -8568,6 +8634,9 @@ packages: joi@17.12.2: resolution: {integrity: sha512-RonXAIzCiHLc8ss3Ibuz45u28GOsWE1UpfDXLbN/9NKbL4tCJf8TWYVKsoYuuh+sAUt7fsSNpA+r2+TBA6Wjmw==} + js-tokens@3.0.2: + resolution: {integrity: sha512-RjTcuD4xjtthQkaWH7dFlH85L+QaVtSoOyGdZ3g6HFhS9dFNDfLyqgm2NFe2X6cQpeFmt0452FJjFG5UameExg==} + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -8601,8 +8670,8 @@ packages: peerDependencies: '@babel/preset-env': ^7.24.7 - jscodeshift@0.15.2: - resolution: {integrity: sha512-FquR7Okgmc4Sd0aEDwqho3rEiKR3BdvuG9jfdHjLJ6JQoWSMpavug3AoIfnfWhxFlf+5pzQh8qjqz0DWFrNQzA==} + jscodeshift@0.16.0: + resolution: {integrity: sha512-cIpXaBLnUJr1xdtj+odUsOn47wco6JPmmciTqF3E+BaN3DYL5YtLxwUgS1jw/Q26Dc6fsmcqnm8zDYOOlSqRsg==} hasBin: true peerDependencies: '@babel/preset-env': ^7.24.7 @@ -8623,6 +8692,10 @@ packages: resolution: {integrity: sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==} hasBin: true + jsesc@1.3.0: + resolution: {integrity: sha512-Mke0DA0QjUWuJlhsE0ZPPhYiJkRap642SmI/4ztCFaUs6V2AiH1sfecc+57NgaryfAA2VR3v6O+CSjC1jZJKOA==} + hasBin: true + jsesc@2.5.2: resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} engines: {node: '>=4'} @@ -8659,6 +8732,10 @@ packages: json2mq@0.2.0: resolution: {integrity: sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==} + json5@0.5.1: + resolution: {integrity: sha512-4xrs1aW+6N5DalkqSVA8fxh458CXvR99WU8WLKmq4v8eWAL86Xo3BVqyd3SkA9wEVjCMqyvvRRkshAdOnBp5rw==} + hasBin: true + json5@1.0.2: resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==} hasBin: true @@ -9264,6 +9341,10 @@ packages: resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} engines: {node: '>=8.6'} + micromatch@4.0.7: + resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} + engines: {node: '>=8.6'} + mime-db@1.33.0: resolution: {integrity: sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==} engines: {node: '>= 0.6'} @@ -9810,6 +9891,10 @@ packages: resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==} engines: {node: '>=10'} + os-homedir@1.0.2: + resolution: {integrity: sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==} + engines: {node: '>=0.10.0'} + os-tmpdir@1.0.2: resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==} engines: {node: '>=0.10.0'} @@ -10317,6 +10402,10 @@ packages: resolution: {integrity: sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==} engines: {node: '>=6'} + private@0.1.8: + resolution: {integrity: sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==} + engines: {node: '>= 0.6'} + proc-log@3.0.0: resolution: {integrity: sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} @@ -10816,6 +10905,9 @@ packages: regenerate@1.4.2: resolution: {integrity: sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==} + regenerator-runtime@0.11.1: + resolution: {integrity: sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==} + regenerator-runtime@0.13.11: resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==} @@ -10871,6 +10963,10 @@ packages: resolution: {integrity: sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==} engines: {node: '>=0.10'} + repeating@2.0.1: + resolution: {integrity: sha512-ZqtSMuVybkISo2OWvqvm7iHSWngvdaW3IpsT9/uP8v4gMi591LY6h35wdOfvQdWCKFWZWm2Y1Opp4kV7vQKT6A==} + engines: {node: '>=0.10.0'} + require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} @@ -11184,6 +11280,10 @@ packages: sisteransi@1.0.5: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + slash@1.0.0: + resolution: {integrity: sha512-3TYDR7xWt4dIqV2JauJr+EJeW356RXijHeUlO+8djJ+uBXPn8/2dpzBc8yQhh583sVvc9CvFAeQVgijsH+PNNg==} + engines: {node: '>=0.10.0'} + slash@2.0.0: resolution: {integrity: sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==} engines: {node: '>=6'} @@ -11243,6 +11343,9 @@ packages: resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} engines: {node: '>=0.10.0'} + source-map-support@0.4.18: + resolution: {integrity: sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==} + source-map-support@0.5.21: resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} @@ -11369,6 +11472,10 @@ packages: string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + strip-ansi@3.0.1: + resolution: {integrity: sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==} + engines: {node: '>=0.10.0'} + strip-ansi@5.2.0: resolution: {integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==} engines: {node: '>=6'} @@ -11491,6 +11598,10 @@ packages: sudo-prompt@9.2.1: resolution: {integrity: sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw==} + supports-color@2.0.0: + resolution: {integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==} + engines: {node: '>=0.8.0'} + supports-color@5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} @@ -11579,6 +11690,10 @@ packages: resolution: {integrity: sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg==} engines: {node: '>=6.0.0'} + temp@0.9.4: + resolution: {integrity: sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==} + engines: {node: '>=6.0.0'} + terser-webpack-plugin@5.3.10: resolution: {integrity: sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==} engines: {node: '>= 10.13.0'} @@ -11665,6 +11780,10 @@ packages: tmpl@1.0.5: resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} + to-fast-properties@1.0.3: + resolution: {integrity: sha512-lxrWP8ejsq+7E3nNjwYmUBMAgjMTZoTI+sdBOpvNyijeDLa29LUn9QaoXAHv4+Z578hbmHHJKZknzxVtvo77og==} + engines: {node: '>=0.10.0'} + to-fast-properties@2.0.0: resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} engines: {node: '>=4'} @@ -11707,6 +11826,10 @@ packages: resolution: {integrity: sha512-GJtWyq9InR/2HRiLZgpIKv+ufIKrVrvjQWEj7PxAXNc5dwbNJkqhAUoAGgzRmULAnoOM5EIpveYd3J2VeSAIew==} engines: {node: '>=12'} + trim-right@1.0.1: + resolution: {integrity: sha512-WZGXGstmCWgeevgTL54hrCuw1dyMQIzWy7ZfqRJfSmJZBwklI15egmQytFP6bPidmw3M8d5yEowl1niq4vmqZw==} + engines: {node: '>=0.10.0'} + trough@1.0.5: resolution: {integrity: sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==} @@ -12922,7 +13045,7 @@ snapshots: '@babel/core': 7.24.7 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-flow@7.24.1(@babel/core@7.24.7)': + '@babel/plugin-syntax-flow@7.24.7(@babel/core@7.24.7)': dependencies: '@babel/core': 7.24.7 '@babel/helper-plugin-utils': 7.24.7 @@ -13110,11 +13233,11 @@ snapshots: '@babel/helper-plugin-utils': 7.24.7 '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-transform-flow-strip-types@7.24.1(@babel/core@7.24.7)': + '@babel/plugin-transform-flow-strip-types@7.24.7(@babel/core@7.24.7)': dependencies: '@babel/core': 7.24.7 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-flow': 7.24.1(@babel/core@7.24.7) + '@babel/plugin-syntax-flow': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-for-of@7.24.7(@babel/core@7.24.7)': dependencies: @@ -13485,12 +13608,12 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/preset-flow@7.24.1(@babel/core@7.24.7)': + '@babel/preset-flow@7.24.7(@babel/core@7.24.7)': dependencies: '@babel/core': 7.24.7 '@babel/helper-plugin-utils': 7.24.7 '@babel/helper-validator-option': 7.24.7 - '@babel/plugin-transform-flow-strip-types': 7.24.1(@babel/core@7.24.7) + '@babel/plugin-transform-flow-strip-types': 7.24.7(@babel/core@7.24.7) '@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.24.7)': dependencies: @@ -15321,7 +15444,7 @@ snapshots: '@babel/plugin-proposal-optional-chaining': 7.21.0(@babel/core@7.24.7) '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.24.7) '@babel/plugin-syntax-export-default-from': 7.24.1(@babel/core@7.24.7) - '@babel/plugin-syntax-flow': 7.24.1(@babel/core@7.24.7) + '@babel/plugin-syntax-flow': 7.24.7(@babel/core@7.24.7) '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.24.7) '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.7) '@babel/plugin-transform-arrow-functions': 7.24.7(@babel/core@7.24.7) @@ -15330,7 +15453,7 @@ snapshots: '@babel/plugin-transform-classes': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-computed-properties': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-destructuring': 7.24.7(@babel/core@7.24.7) - '@babel/plugin-transform-flow-strip-types': 7.24.1(@babel/core@7.24.7) + '@babel/plugin-transform-flow-strip-types': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-function-name': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-literals': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-modules-commonjs': 7.24.7(@babel/core@7.24.7) @@ -16531,12 +16654,16 @@ snapshots: slice-ansi: 2.1.0 strip-ansi: 5.2.0 + ansi-regex@2.1.1: {} + ansi-regex@4.1.1: {} ansi-regex@5.0.1: {} ansi-regex@6.0.1: {} + ansi-styles@2.2.1: {} + ansi-styles@3.2.1: dependencies: color-convert: 1.9.3 @@ -16819,10 +16946,58 @@ snapshots: dependencies: dequal: 2.0.3 + babel-code-frame@6.26.0: + dependencies: + chalk: 1.1.3 + esutils: 2.0.3 + js-tokens: 3.0.2 + + babel-core@6.26.3: + dependencies: + babel-code-frame: 6.26.0 + babel-generator: 6.26.1 + babel-helpers: 6.24.1 + babel-messages: 6.23.0 + babel-register: 6.26.0 + babel-runtime: 6.26.0 + babel-template: 6.26.0 + babel-traverse: 6.26.0 + babel-types: 6.26.0 + babylon: 6.18.0 + convert-source-map: 1.8.0 + debug: 2.6.9 + json5: 0.5.1 + lodash: 4.17.21 + minimatch: 3.1.2 + path-is-absolute: 1.0.1 + private: 0.1.8 + slash: 1.0.0 + source-map: 0.5.7 + transitivePeerDependencies: + - supports-color + babel-core@7.0.0-bridge.0(@babel/core@7.24.7): dependencies: '@babel/core': 7.24.7 + babel-generator@6.26.1: + dependencies: + babel-messages: 6.23.0 + babel-runtime: 6.26.0 + babel-types: 6.26.0 + detect-indent: 4.0.0 + jsesc: 1.3.0 + lodash: 4.17.21 + source-map: 0.5.7 + trim-right: 1.0.1 + + babel-helpers@6.24.1: + dependencies: + babel-runtime: 6.26.0 + babel-template: 6.26.0 + transitivePeerDependencies: + - supports-color + babel-loader@9.1.3(@babel/core@7.24.7)(webpack@5.92.1(webpack-cli@5.1.4)): dependencies: '@babel/core': 7.24.7 @@ -16836,6 +17011,10 @@ snapshots: deepmerge: 2.2.1 object.omit: 3.0.0 + babel-messages@6.23.0: + dependencies: + babel-runtime: 6.26.0 + babel-plugin-define-var@0.1.0: {} babel-plugin-istanbul@6.1.1: @@ -16910,12 +17089,62 @@ snapshots: babel-plugin-transform-flow-enums@0.0.2(@babel/core@7.24.7): dependencies: - '@babel/plugin-syntax-flow': 7.24.1(@babel/core@7.24.7) + '@babel/plugin-syntax-flow': 7.24.7(@babel/core@7.24.7) transitivePeerDependencies: - '@babel/core' babel-plugin-transform-react-remove-prop-types@0.4.24: {} + babel-register@6.26.0: + dependencies: + babel-core: 6.26.3 + babel-runtime: 6.26.0 + core-js: 2.6.12 + home-or-tmp: 2.0.0 + lodash: 4.17.21 + mkdirp: 0.5.6 + source-map-support: 0.4.18 + transitivePeerDependencies: + - supports-color + + babel-runtime@6.26.0: + dependencies: + core-js: 2.6.12 + regenerator-runtime: 0.11.1 + + babel-template@6.26.0: + dependencies: + babel-runtime: 6.26.0 + babel-traverse: 6.26.0 + babel-types: 6.26.0 + babylon: 6.18.0 + lodash: 4.17.21 + transitivePeerDependencies: + - supports-color + + babel-traverse@6.26.0: + dependencies: + babel-code-frame: 6.26.0 + babel-messages: 6.23.0 + babel-runtime: 6.26.0 + babel-types: 6.26.0 + babylon: 6.18.0 + debug: 2.6.9 + globals: 9.18.0 + invariant: 2.2.4 + lodash: 4.17.21 + transitivePeerDependencies: + - supports-color + + babel-types@6.26.0: + dependencies: + babel-runtime: 6.26.0 + esutils: 2.0.3 + lodash: 4.17.21 + to-fast-properties: 1.0.3 + + babylon@6.18.0: {} + bail@1.0.5: {} balanced-match@1.0.2: {} @@ -16991,9 +17220,9 @@ snapshots: dependencies: balanced-match: 1.0.2 - braces@3.0.2: + braces@3.0.3: dependencies: - fill-range: 7.0.1 + fill-range: 7.1.1 browser-stdout@1.3.1: {} @@ -17196,6 +17425,14 @@ snapshots: dependencies: chalk: 4.1.2 + chalk@1.1.3: + dependencies: + ansi-styles: 2.2.1 + escape-string-regexp: 1.0.5 + has-ansi: 2.0.0 + strip-ansi: 3.0.1 + supports-color: 2.0.0 + chalk@2.4.2: dependencies: ansi-styles: 3.2.1 @@ -17252,7 +17489,7 @@ snapshots: chokidar@3.5.3: dependencies: anymatch: 3.1.3 - braces: 3.0.2 + braces: 3.0.3 glob-parent: 5.1.2 is-binary-path: 2.1.0 is-glob: 4.0.3 @@ -17264,7 +17501,7 @@ snapshots: chokidar@3.6.0: dependencies: anymatch: 3.1.3 - braces: 3.0.2 + braces: 3.0.3 glob-parent: 5.1.2 is-binary-path: 2.1.0 is-glob: 4.0.3 @@ -17660,7 +17897,7 @@ snapshots: cp-file: 10.0.0 globby: 13.2.2 junk: 4.0.1 - micromatch: 4.0.5 + micromatch: 4.0.7 nested-error-stacks: 2.1.1 p-filter: 3.0.0 p-map: 6.0.0 @@ -17849,7 +18086,7 @@ snapshots: lodash.mapvalues: 4.6.0 lodash.memoize: 4.1.2 memfs-or-file-map-to-github-branch: 1.2.1(encoding@0.1.13) - micromatch: 4.0.5 + micromatch: 4.0.7 node-cleanup: 2.1.2 node-fetch: 2.7.0(encoding@0.1.13) override-require: 1.1.1 @@ -18019,6 +18256,10 @@ snapshots: destroy@1.2.0: {} + detect-indent@4.0.0: + dependencies: + repeating: 2.0.1 + detect-indent@5.0.0: {} detect-libc@2.0.3: {} @@ -18834,7 +19075,7 @@ snapshots: '@nodelib/fs.walk': 1.2.8 glob-parent: 5.1.2 merge2: 1.4.1 - micromatch: 4.0.5 + micromatch: 4.0.7 fast-json-patch@3.1.1: {} @@ -18886,7 +19127,7 @@ snapshots: dependencies: minimatch: 5.1.0 - fill-range@7.0.1: + fill-range@7.1.1: dependencies: to-regex-range: 5.0.1 @@ -19270,6 +19511,8 @@ snapshots: dependencies: type-fest: 0.20.2 + globals@9.18.0: {} + globalthis@1.0.3: dependencies: define-properties: 1.2.1 @@ -19388,6 +19631,10 @@ snapshots: hard-rejection@2.1.0: {} + has-ansi@2.0.0: + dependencies: + ansi-regex: 2.1.1 + has-bigints@1.0.2: {} has-flag@2.0.0: {} @@ -19445,6 +19692,11 @@ snapshots: dependencies: react-is: 16.13.1 + home-or-tmp@2.0.0: + dependencies: + os-homedir: 1.0.2 + os-tmpdir: 1.0.2 + homedir-polyfill@1.0.3: dependencies: parse-passwd: 1.0.0 @@ -19780,6 +20032,8 @@ snapshots: dependencies: call-bind: 1.0.7 + is-finite@1.1.0: {} + is-fullwidth-code-point@2.0.0: {} is-fullwidth-code-point@3.0.0: {} @@ -20038,7 +20292,7 @@ snapshots: '@types/stack-utils': 2.0.3 chalk: 4.1.2 graceful-fs: 4.2.11 - micromatch: 4.0.5 + micromatch: 4.0.7 pretty-format: 29.7.0 slash: 3.0.0 stack-utils: 2.0.6 @@ -20092,6 +20346,8 @@ snapshots: '@sideway/formula': 3.0.1 '@sideway/pinpoint': 2.0.0 + js-tokens@3.0.2: {} + js-tokens@4.0.0: {} js-yaml@3.14.1: @@ -20107,17 +20363,17 @@ snapshots: jsc-safe-url@0.2.4: {} - jscodeshift-add-imports@1.0.10(jscodeshift@0.15.2(@babel/preset-env@7.24.7(@babel/core@7.24.7))): + jscodeshift-add-imports@1.0.10(jscodeshift@0.16.0(@babel/preset-env@7.24.7(@babel/core@7.24.7))): dependencies: '@babel/traverse': 7.24.7 - jscodeshift: 0.15.2(@babel/preset-env@7.24.7(@babel/core@7.24.7)) - jscodeshift-find-imports: 2.0.4(jscodeshift@0.15.2(@babel/preset-env@7.24.7(@babel/core@7.24.7))) + jscodeshift: 0.16.0(@babel/preset-env@7.24.7(@babel/core@7.24.7)) + jscodeshift-find-imports: 2.0.4(jscodeshift@0.16.0(@babel/preset-env@7.24.7(@babel/core@7.24.7))) transitivePeerDependencies: - supports-color - jscodeshift-find-imports@2.0.4(jscodeshift@0.15.2(@babel/preset-env@7.24.7(@babel/core@7.24.7))): + jscodeshift-find-imports@2.0.4(jscodeshift@0.16.0(@babel/preset-env@7.24.7(@babel/core@7.24.7))): dependencies: - jscodeshift: 0.15.2(@babel/preset-env@7.24.7(@babel/core@7.24.7)) + jscodeshift: 0.16.0(@babel/preset-env@7.24.7(@babel/core@7.24.7)) jscodeshift@0.14.0(@babel/preset-env@7.24.7(@babel/core@7.24.7)): dependencies: @@ -20128,14 +20384,14 @@ snapshots: '@babel/plugin-proposal-optional-chaining': 7.21.0(@babel/core@7.24.7) '@babel/plugin-transform-modules-commonjs': 7.24.7(@babel/core@7.24.7) '@babel/preset-env': 7.24.7(@babel/core@7.24.7) - '@babel/preset-flow': 7.24.1(@babel/core@7.24.7) + '@babel/preset-flow': 7.24.7(@babel/core@7.24.7) '@babel/preset-typescript': 7.24.7(@babel/core@7.24.7) '@babel/register': 7.24.6(@babel/core@7.24.7) babel-core: 7.0.0-bridge.0(@babel/core@7.24.7) chalk: 4.1.2 flow-parser: 0.206.0 graceful-fs: 4.2.11 - micromatch: 4.0.5 + micromatch: 4.0.7 neo-async: 2.6.2 node-dir: 0.1.17 recast: 0.21.5 @@ -20144,7 +20400,7 @@ snapshots: transitivePeerDependencies: - supports-color - jscodeshift@0.15.2(@babel/preset-env@7.24.7(@babel/core@7.24.7)): + jscodeshift@0.16.0(@babel/preset-env@7.24.7(@babel/core@7.24.7)): dependencies: '@babel/core': 7.24.7 '@babel/parser': 7.24.7 @@ -20153,19 +20409,19 @@ snapshots: '@babel/plugin-transform-nullish-coalescing-operator': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-optional-chaining': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-private-methods': 7.24.7(@babel/core@7.24.7) - '@babel/preset-flow': 7.24.1(@babel/core@7.24.7) + '@babel/preset-flow': 7.24.7(@babel/core@7.24.7) '@babel/preset-typescript': 7.24.7(@babel/core@7.24.7) '@babel/register': 7.24.6(@babel/core@7.24.7) - babel-core: 7.0.0-bridge.0(@babel/core@7.24.7) + babel-core: 6.26.3 chalk: 4.1.2 flow-parser: 0.206.0 graceful-fs: 4.2.11 - micromatch: 4.0.5 + micromatch: 4.0.7 neo-async: 2.6.2 node-dir: 0.1.17 recast: 0.23.9 - temp: 0.8.4 - write-file-atomic: 2.4.3 + temp: 0.9.4 + write-file-atomic: 5.0.1 optionalDependencies: '@babel/preset-env': 7.24.7(@babel/core@7.24.7) transitivePeerDependencies: @@ -20201,6 +20457,8 @@ snapshots: jsesc@0.5.0: {} + jsesc@1.3.0: {} + jsesc@2.5.2: {} json-bigint@1.0.0: @@ -20227,6 +20485,8 @@ snapshots: dependencies: string-convert: 0.2.1 + json5@0.5.1: {} + json5@1.0.2: dependencies: minimist: 1.2.6 @@ -20440,7 +20700,7 @@ snapshots: dependencies: '@colors/colors': 1.5.0 body-parser: 1.20.2 - braces: 3.0.2 + braces: 3.0.3 chokidar: 3.6.0 connect: 3.7.0 di: 0.0.1 @@ -21024,7 +21284,7 @@ snapshots: graceful-fs: 4.2.11 invariant: 2.2.4 jest-worker: 29.7.0 - micromatch: 4.0.5 + micromatch: 4.0.7 node-abort-controller: 3.1.1 nullthrows: 1.1.1 walker: 1.0.8 @@ -21157,7 +21417,12 @@ snapshots: micromatch@4.0.5: dependencies: - braces: 3.0.2 + braces: 3.0.3 + picomatch: 2.3.1 + + micromatch@4.0.7: + dependencies: + braces: 3.0.3 picomatch: 2.3.1 mime-db@1.33.0: {} @@ -21857,6 +22122,8 @@ snapshots: strip-ansi: 6.0.1 wcwidth: 1.0.1 + os-homedir@1.0.2: {} + os-tmpdir@1.0.2: {} override-require@1.1.1: {} @@ -22345,6 +22612,8 @@ snapshots: prismjs@1.29.0: {} + private@0.1.8: {} + proc-log@3.0.0: {} process-nextick-args@2.0.1: {} @@ -22963,6 +23232,8 @@ snapshots: regenerate@1.4.2: {} + regenerator-runtime@0.11.1: {} + regenerator-runtime@0.13.11: {} regenerator-runtime@0.14.0: {} @@ -23036,6 +23307,10 @@ snapshots: repeat-string@1.6.1: {} + repeating@2.0.1: + dependencies: + is-finite: 1.1.0 + require-directory@2.1.1: {} require-from-string@2.0.2: {} @@ -23416,6 +23691,8 @@ snapshots: sisteransi@1.0.5: {} + slash@1.0.0: {} + slash@2.0.0: {} slash@3.0.0: {} @@ -23495,6 +23772,10 @@ snapshots: source-map-js@1.2.0: {} + source-map-support@0.4.18: + dependencies: + source-map: 0.5.7 + source-map-support@0.5.21: dependencies: buffer-from: 1.1.2 @@ -23645,6 +23926,10 @@ snapshots: dependencies: safe-buffer: 5.2.1 + strip-ansi@3.0.1: + dependencies: + ansi-regex: 2.1.1 + strip-ansi@5.2.0: dependencies: ansi-regex: 4.1.1 @@ -23738,7 +24023,7 @@ snapshots: dependencies: '@babel/parser': 7.24.7 '@babel/traverse': 7.24.7 - micromatch: 4.0.5 + micromatch: 4.0.7 postcss: 7.0.39 transitivePeerDependencies: - supports-color @@ -23769,7 +24054,7 @@ snapshots: known-css-properties: 0.29.0 mathml-tag-names: 2.1.3 meow: 10.1.5 - micromatch: 4.0.5 + micromatch: 4.0.7 normalize-path: 3.0.0 picocolors: 1.0.1 postcss: 8.4.38 @@ -23819,6 +24104,8 @@ snapshots: sudo-prompt@9.2.1: {} + supports-color@2.0.0: {} + supports-color@5.5.0: dependencies: has-flag: 3.0.0 @@ -23883,7 +24170,7 @@ snapshots: is-glob: 4.0.3 jiti: 1.21.0 lilconfig: 2.1.0 - micromatch: 4.0.5 + micromatch: 4.0.7 normalize-path: 3.0.0 object-hash: 3.0.0 picocolors: 1.0.1 @@ -23938,6 +24225,11 @@ snapshots: dependencies: rimraf: 2.6.3 + temp@0.9.4: + dependencies: + mkdirp: 0.5.6 + rimraf: 2.6.3 + terser-webpack-plugin@5.3.10(webpack@5.92.1(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.92.1))): dependencies: '@jridgewell/trace-mapping': 0.3.25 @@ -24030,6 +24322,8 @@ snapshots: tmpl@1.0.5: {} + to-fast-properties@1.0.3: {} + to-fast-properties@2.0.0: {} to-regex-range@5.0.1: @@ -24061,6 +24355,8 @@ snapshots: trim-newlines@4.0.2: {} + trim-right@1.0.1: {} + trough@1.0.5: {} ts-api-utils@1.0.1(typescript@5.4.5): From 24e8c39d6bcf06b9b677d12b02e1a7db65ef71b7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 18:33:51 +0530 Subject: [PATCH 37/65] Bump @netlify/functions to ^2.8.0 (#42726) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 448 ++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 366 insertions(+), 84 deletions(-) diff --git a/package.json b/package.json index c041616f018f75..41b866d566993c 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ }, "dependencies": { "@googleapis/sheets": "^8.0.0", - "@netlify/functions": "^2.7.0", + "@netlify/functions": "^2.8.0", "@slack/bolt": "^3.19.0", "execa": "^9.2.0", "google-auth-library": "^9.11.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 14a5777aa3eb0c..6b07296bda41eb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,8 +29,8 @@ importers: specifier: ^8.0.0 version: 8.0.0(encoding@0.1.13) '@netlify/functions': - specifier: ^2.7.0 - version: 2.7.0(@opentelemetry/api@1.8.0) + specifier: ^2.8.0 + version: 2.8.0(@opentelemetry/api@1.8.0) '@slack/bolt': specifier: ^3.19.0 version: 3.19.0 @@ -3604,6 +3604,15 @@ packages: resolution: {integrity: sha512-EwLC+bMLTz3n2EDJMhMdrNR+aTxDBPpcq3k6Ibc4eKrp8UbytNAEB0VgfQFOGJN7+BTCcjiojt08O/cwn+YnHg==} engines: {node: '>=12.0.0'} + '@grpc/grpc-js@1.10.9': + resolution: {integrity: sha512-5tcgUctCG0qoNyfChZifz2tJqbRbXVO9J7X6duFcOjY3HUNCxg5D0ZCK7EP9vIcZ0zRpLU9bWkyCqVCLZ46IbQ==} + engines: {node: '>=12.10.0'} + + '@grpc/proto-loader@0.7.13': + resolution: {integrity: sha512-AiXO/bfe9bmxBjxxtYxFAXGZvMaN5s8kO+jBHAJCON8rJoB5YS/D6X7ZNc6XQkuHNmyl4CYaMI1fJ/Gn27RGGw==} + engines: {node: '>=6'} + hasBin: true + '@hapi/hoek@9.3.0': resolution: {integrity: sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==} @@ -3801,6 +3810,9 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + '@js-sdsl/ordered-map@4.4.2': + resolution: {integrity: sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==} + '@lerna/create@8.1.3': resolution: {integrity: sha512-JFvIYrlvR8Txa8h7VZx8VIQDltukEKOKaZL/muGO7Q/5aE2vjOKHsD/jkWYe/2uFy1xv37ubdx17O1UXQNadPg==} engines: {node: '>=18.0.0'} @@ -4123,16 +4135,16 @@ packages: react: ^17.0.0 || ^18.0.0 react-dom: ^17.0.0 || ^18.0.0 - '@netlify/functions@2.7.0': - resolution: {integrity: sha512-4pXC/fuj3eGQ86wbgPiM4zY8+AsNrdz6vcv6FEdUJnZW+LqF8IWjQcY3S0d1hLeLKODYOqq4CkrzGyCpce63Nw==} + '@netlify/functions@2.8.0': + resolution: {integrity: sha512-kHInQKtMuFlqD7vxaJ8tjd7spv6DTrRuTovvWNDmvwTfkubVfF7KYiypsPR5wkKvSz76GHv86RBCLkjIxvwgDg==} engines: {node: '>=14.0.0'} '@netlify/node-cookies@0.1.0': resolution: {integrity: sha512-OAs1xG+FfLX0LoRASpqzVntVV/RpYkgpI0VrUnw2u0Q1qiZUzcPffxRK8HF3gc4GjuhG5ahOEMJ9bswBiZPq0g==} engines: {node: ^14.16.0 || >=16.0.0} - '@netlify/serverless-functions-api@1.18.1': - resolution: {integrity: sha512-DrSvivchuwsuQW03zbVPT3nxCQa5tn7m4aoPOsQKibuJXIuSbfxzCBxPLz0+LchU5ds7YyOaCc9872Y32ngYzg==} + '@netlify/serverless-functions-api@1.18.4': + resolution: {integrity: sha512-5R0kOKrOqhlFFrA7oduzJS+LQRjnX2CX8kJaYI9PQKIpNvzF18n+LNGWTS42YxPfIpAE64yaHbppeAigms2QTw==} engines: {node: '>=18.0.0'} '@next/env@13.5.1': @@ -4523,75 +4535,124 @@ packages: '@octokit/types@9.3.2': resolution: {integrity: sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==} - '@opentelemetry/api-logs@0.50.0': - resolution: {integrity: sha512-JdZuKrhOYggqOpUljAq4WWNi5nB10PmgoF0y2CvedLGXd0kSawb/UBnWT8gg1ND3bHCNHStAIVT0ELlxJJRqrA==} + '@opentelemetry/api-logs@0.52.1': + resolution: {integrity: sha512-qnSqB2DQ9TPP96dl8cDubDvrUyWc0/sK81xHTK8eSUspzDM3bsewX903qclQFvVhgStjRWdC5bLb3kQqMkfV5A==} engines: {node: '>=14'} '@opentelemetry/api@1.8.0': resolution: {integrity: sha512-I/s6F7yKUDdtMsoBWXJe8Qz40Tui5vsuKCWJEWVL+5q9sSWRzzx6v2KeNsOBEwd94j0eWkpWCH4yB6rZg9Mf0w==} engines: {node: '>=8.0.0'} - '@opentelemetry/core@1.23.0': - resolution: {integrity: sha512-hdQ/a9TMzMQF/BO8Cz1juA43/L5YGtCSiKoOHmrTEf7VMDAZgy8ucpWx3eQTnQ3gBloRcWtzvcrMZABC3PTSKQ==} + '@opentelemetry/context-async-hooks@1.25.1': + resolution: {integrity: sha512-UW/ge9zjvAEmRWVapOP0qyCvPulWU6cQxGxDbWEFfGOj1VBBZAuOqTo3X6yWmDTD3Xe15ysCZChHncr2xFMIfQ==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.10.0' + + '@opentelemetry/core@1.25.1': + resolution: {integrity: sha512-GeT/l6rBYWVQ4XArluLVB6WWQ8flHbdb6r2FCHC3smtdOAbrJBIv35tpV/yp9bmYUJf+xmZpu9DRTIeJVhFbEQ==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.10.0' + + '@opentelemetry/exporter-trace-otlp-grpc@0.52.1': + resolution: {integrity: sha512-pVkSH20crBwMTqB3nIN4jpQKUEoB0Z94drIHpYyEqs7UBr+I0cpYyOR3bqjA/UasQUMROb3GX8ZX4/9cVRqGBQ==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 + + '@opentelemetry/exporter-trace-otlp-http@0.52.1': + resolution: {integrity: sha512-05HcNizx0BxcFKKnS5rwOV+2GevLTVIRA0tRgWYyw4yCgR53Ic/xk83toYKts7kbzcI+dswInUg/4s8oyA+tqg==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 + + '@opentelemetry/exporter-trace-otlp-proto@0.52.1': + resolution: {integrity: sha512-pt6uX0noTQReHXNeEslQv7x311/F1gJzMnp1HD2qgypLRPbXDeMzzeTngRTUaUbP6hqWNtPxuLr4DEoZG+TcEQ==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 + + '@opentelemetry/exporter-zipkin@1.25.1': + resolution: {integrity: sha512-RmOwSvkimg7ETwJbUOPTMhJm9A9bG1U8s7Zo3ajDh4zM7eYcycQ0dM7FbLD6NXWbI2yj7UY4q8BKinKYBQksyw==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 + + '@opentelemetry/instrumentation@0.52.1': + resolution: {integrity: sha512-uXJbYU/5/MBHjMp1FqrILLRuiJCs3Ofk0MeRDk8g1S1gD47U8X3JnSwcMO1rtRo1x1a7zKaQHaoYu49p/4eSKw==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.9.0' + '@opentelemetry/api': ^1.3.0 - '@opentelemetry/core@1.24.1': - resolution: {integrity: sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==} + '@opentelemetry/otlp-exporter-base@0.52.1': + resolution: {integrity: sha512-z175NXOtX5ihdlshtYBe5RpGeBoTXVCKPPLiQlD6FHvpM4Ch+p2B0yWKYSrBfLH24H9zjJiBdTrtD+hLlfnXEQ==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.9.0' + '@opentelemetry/api': ^1.0.0 - '@opentelemetry/otlp-transformer@0.50.0': - resolution: {integrity: sha512-s0sl1Yfqd5q1Kjrf6DqXPWzErL+XHhrXOfejh4Vc/SMTNqC902xDsC8JQxbjuramWt/+hibfguIvi7Ns8VLolA==} + '@opentelemetry/otlp-grpc-exporter-base@0.52.1': + resolution: {integrity: sha512-zo/YrSDmKMjG+vPeA9aBBrsQM9Q/f2zo6N04WMB3yNldJRsgpRBeLLwvAt/Ba7dpehDLOEFBd1i2JCoaFtpCoQ==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.3.0 <1.9.0' + '@opentelemetry/api': ^1.0.0 - '@opentelemetry/resources@1.23.0': - resolution: {integrity: sha512-iPRLfVfcEQynYGo7e4Di+ti+YQTAY0h5mQEUJcHlU9JOqpb4x965O6PZ+wMcwYVY63G96KtdS86YCM1BF1vQZg==} + '@opentelemetry/otlp-transformer@0.52.1': + resolution: {integrity: sha512-I88uCZSZZtVa0XniRqQWKbjAUm73I8tpEy/uJYPPYw5d7BRdVk0RfTBQw8kSUl01oVWEuqxLDa802222MYyWHg==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.9.0' + '@opentelemetry/api': '>=1.3.0 <1.10.0' - '@opentelemetry/resources@1.24.1': - resolution: {integrity: sha512-cyv0MwAaPF7O86x5hk3NNgenMObeejZFLJJDVuSeSMIsknlsj3oOZzRv3qSzlwYomXsICfBeFFlxwHQte5mGXQ==} + '@opentelemetry/propagator-b3@1.25.1': + resolution: {integrity: sha512-p6HFscpjrv7//kE+7L+3Vn00VEDUJB0n6ZrjkTYHrJ58QZ8B3ajSJhRbCcY6guQ3PDjTbxWklyvIN2ojVbIb1A==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.9.0' + '@opentelemetry/api': '>=1.0.0 <1.10.0' - '@opentelemetry/sdk-logs@0.50.0': - resolution: {integrity: sha512-PeUEupBB29p9nlPNqXoa1PUWNLsZnxG0DCDj3sHqzae+8y76B/A5hvZjg03ulWdnvBLYpnJslqzylG9E0IL87g==} + '@opentelemetry/propagator-jaeger@1.25.1': + resolution: {integrity: sha512-nBprRf0+jlgxks78G/xq72PipVK+4or9Ypntw0gVZYNTCSK8rg5SeaGV19tV920CMqBD/9UIOiFr23Li/Q8tiA==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.4.0 <1.9.0' - '@opentelemetry/api-logs': '>=0.39.1' + '@opentelemetry/api': '>=1.0.0 <1.10.0' - '@opentelemetry/sdk-metrics@1.23.0': - resolution: {integrity: sha512-4OkvW6+wST4h6LFG23rXSTf6nmTf201h9dzq7bE0z5R9ESEVLERZz6WXwE7PSgg1gdjlaznm1jLJf8GttypFDg==} + '@opentelemetry/resources@1.25.1': + resolution: {integrity: sha512-pkZT+iFYIZsVn6+GzM0kSX+u3MSLCY9md+lIJOoKl/P+gJFfxJte/60Usdp8Ce4rOs8GduUpSPNe1ddGyDT1sQ==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.3.0 <1.9.0' + '@opentelemetry/api': '>=1.0.0 <1.10.0' - '@opentelemetry/sdk-trace-base@1.23.0': - resolution: {integrity: sha512-PzBmZM8hBomUqvCddF/5Olyyviayka44O5nDWq673np3ctnvwMOvNrsUORZjKja1zJbwEuD9niAGbnVrz3jwRQ==} + '@opentelemetry/sdk-logs@0.52.1': + resolution: {integrity: sha512-MBYh+WcPPsN8YpRHRmK1Hsca9pVlyyKd4BxOC4SsgHACnl/bPp4Cri9hWhVm5+2tiQ9Zf4qSc1Jshw9tOLGWQA==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.9.0' + '@opentelemetry/api': '>=1.4.0 <1.10.0' - '@opentelemetry/sdk-trace-base@1.24.1': - resolution: {integrity: sha512-zz+N423IcySgjihl2NfjBf0qw1RWe11XIAWVrTNOSSI6dtSPJiVom2zipFB2AEEtJWpv0Iz6DY6+TjnyTV5pWg==} + '@opentelemetry/sdk-metrics@1.25.1': + resolution: {integrity: sha512-9Mb7q5ioFL4E4dDrc4wC/A3NTHDat44v4I3p2pLPSxRvqUbDIQyMVr9uK+EU69+HWhlET1VaSrRzwdckWqY15Q==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.9.0' + '@opentelemetry/api': '>=1.3.0 <1.10.0' - '@opentelemetry/semantic-conventions@1.23.0': - resolution: {integrity: sha512-MiqFvfOzfR31t8cc74CTP1OZfz7MbqpAnLCra8NqQoaHJX6ncIRTdYOQYBDQ2uFISDq0WY8Y9dDTWvsgzzBYRg==} + '@opentelemetry/sdk-node@0.52.1': + resolution: {integrity: sha512-uEG+gtEr6eKd8CVWeKMhH2olcCHM9dEK68pe0qE0be32BcCRsvYURhHaD1Srngh1SQcnQzZ4TP324euxqtBOJA==} engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.10.0' + + '@opentelemetry/sdk-trace-base@1.25.1': + resolution: {integrity: sha512-C8k4hnEbc5FamuZQ92nTOp8X/diCY56XUTnMiv9UTuJitCzaNNHAVsdm5+HLCdI8SLQsLWIrG38tddMxLVoftw==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.10.0' + + '@opentelemetry/sdk-trace-node@1.25.1': + resolution: {integrity: sha512-nMcjFIKxnFqoez4gUmihdBrbpsEnAX/Xj16sGvZm+guceYE0NE00vLhpDVK6f3q8Q4VFI5xG8JjlXKMB/SkTTQ==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.10.0' - '@opentelemetry/semantic-conventions@1.24.1': - resolution: {integrity: sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==} + '@opentelemetry/semantic-conventions@1.25.1': + resolution: {integrity: sha512-ZDjMJJQRlyk8A1KZFCc+bCbsyrn1wTwdNt56F7twdfUfnHUZUq77/WfONCj8p72NZOyP7pNTdUWSTYC3GTbuuQ==} engines: {node: '>=14'} '@pigment-css/nextjs-plugin@0.0.14': @@ -4627,6 +4688,36 @@ packages: '@popperjs/core@2.11.8': resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==} + '@protobufjs/aspromise@1.1.2': + resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} + + '@protobufjs/base64@1.1.2': + resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==} + + '@protobufjs/codegen@2.0.4': + resolution: {integrity: sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==} + + '@protobufjs/eventemitter@1.1.0': + resolution: {integrity: sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==} + + '@protobufjs/fetch@1.1.0': + resolution: {integrity: sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==} + + '@protobufjs/float@1.0.2': + resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==} + + '@protobufjs/inquire@1.1.0': + resolution: {integrity: sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==} + + '@protobufjs/path@1.1.2': + resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==} + + '@protobufjs/pool@1.1.0': + resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==} + + '@protobufjs/utf8@1.1.0': + resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} + '@react-native-community/cli-clean@12.3.6': resolution: {integrity: sha512-gUU29ep8xM0BbnZjwz9MyID74KKwutq9x5iv4BCr2im6nly4UMf1B1D+V225wR7VcDGzbgWjaezsJShLLhC5ig==} @@ -5308,6 +5399,9 @@ packages: '@types/serve-static@1.15.2': resolution: {integrity: sha512-J2LqtvFYCzaj8pVYKw8klQXrLLk7TBZmQ4ShlcdkELFKGwGMfevMLneMMRkMgZxotOD9wg497LpC7O8PcvAmfw==} + '@types/shimmer@1.0.5': + resolution: {integrity: sha512-9Hp0ObzwwO57DpLFF0InUjUm/II8GmKAvzbefxQTihCb7KI6yc9yzf0nLc4mVdby5N4DRCgQM2wCup9KTieeww==} + '@types/sinon@17.0.3': resolution: {integrity: sha512-j3uovdn8ewky9kRBG19bOwaZbexJu/XjtkHyjvUgt4xfPFz18dcORIMqnYh66Fx3Powhcr85NT5+er3+oViapw==} @@ -6284,6 +6378,9 @@ packages: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} + cjs-module-lexer@1.3.1: + resolution: {integrity: sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==} + classnames@2.3.2: resolution: {integrity: sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==} @@ -8174,6 +8271,9 @@ packages: resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} engines: {node: '>=6'} + import-in-the-middle@1.8.1: + resolution: {integrity: sha512-yhRwoHtiLGvmSozNOALgjRPFI6uYsds60EoMqqnXyyv+JOIW/BrrLejuTGBt+bq0T5tLzOHrN0T7xYTm4Qt/ng==} + import-lazy@4.0.0: resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==} engines: {node: '>=8'} @@ -9104,6 +9204,9 @@ packages: resolution: {integrity: sha512-/3ER20CTTbahrCrpYfPn7Xavv9diBROZpoXGVZDWMw4b/X4uuUwAC0ki85tgsdMRONURyIJbcOvS94QsUBYPbQ==} hasBin: true + long@5.2.3: + resolution: {integrity: sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==} + longest-streak@2.0.4: resolution: {integrity: sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg==} @@ -9482,6 +9585,9 @@ packages: resolution: {integrity: sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==} engines: {node: '>=0.10.0'} + module-details-from-path@1.0.3: + resolution: {integrity: sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==} + moo@0.5.1: resolution: {integrity: sha512-I1mnb5xn4fO80BH9BLcF0yLypy2UKl+Cb01Fu0hJRkJjlCRtxZMWkTdAtDd5ZqCOxtCkhmRwyI57vWT+1iZ67w==} @@ -10454,6 +10560,10 @@ packages: prop-types@15.8.1: resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} + protobufjs@7.3.2: + resolution: {integrity: sha512-RXyHaACeqXeqAKGLDl68rQKbmObRsTIn4TYVUUug1KfS47YWCo5MacGITEryugIgZqORCvJWEk4l449POg5Txg==} + engines: {node: '>=12.0.0'} + protocols@2.0.1: resolution: {integrity: sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q==} @@ -10975,6 +11085,10 @@ packages: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} + require-in-the-middle@7.3.0: + resolution: {integrity: sha512-nQFEv9gRw6SJAwWD2LrL0NmQvAcO7FBwJbwmr2ttPAacfy0xuiOjE5zt+zM4xDyuyvUaxBi/9gb2SoCyNEVJcw==} + engines: {node: '>=8.6.0'} + require-main-filename@2.0.0: resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} @@ -11242,6 +11356,9 @@ packages: engines: {node: '>=4'} hasBin: true + shimmer@1.2.1: + resolution: {integrity: sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==} + shx@0.3.4: resolution: {integrity: sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==} engines: {node: '>=6'} @@ -14089,6 +14206,18 @@ snapshots: - encoding - supports-color + '@grpc/grpc-js@1.10.9': + dependencies: + '@grpc/proto-loader': 0.7.13 + '@js-sdsl/ordered-map': 4.4.2 + + '@grpc/proto-loader@0.7.13': + dependencies: + lodash.camelcase: 4.3.0 + long: 5.2.3 + protobufjs: 7.3.2 + yargs: 17.7.2 + '@hapi/hoek@9.3.0': {} '@hapi/topo@5.1.0': @@ -14268,6 +14397,8 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.4.15 + '@js-sdsl/ordered-map@4.4.2': {} + '@lerna/create@8.1.3(encoding@0.1.13)': dependencies: '@npmcli/run-script': 7.0.2 @@ -14704,25 +14835,27 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@netlify/functions@2.7.0(@opentelemetry/api@1.8.0)': + '@netlify/functions@2.8.0(@opentelemetry/api@1.8.0)': dependencies: - '@netlify/serverless-functions-api': 1.18.1(@opentelemetry/api@1.8.0) + '@netlify/serverless-functions-api': 1.18.4(@opentelemetry/api@1.8.0) transitivePeerDependencies: - '@opentelemetry/api' + - supports-color '@netlify/node-cookies@0.1.0': {} - '@netlify/serverless-functions-api@1.18.1(@opentelemetry/api@1.8.0)': + '@netlify/serverless-functions-api@1.18.4(@opentelemetry/api@1.8.0)': dependencies: '@netlify/node-cookies': 0.1.0 - '@opentelemetry/core': 1.24.1(@opentelemetry/api@1.8.0) - '@opentelemetry/otlp-transformer': 0.50.0(@opentelemetry/api@1.8.0) - '@opentelemetry/resources': 1.24.1(@opentelemetry/api@1.8.0) - '@opentelemetry/sdk-trace-base': 1.24.1(@opentelemetry/api@1.8.0) - '@opentelemetry/semantic-conventions': 1.24.1 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-node': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.25.1(@opentelemetry/api@1.8.0) urlpattern-polyfill: 8.0.2 transitivePeerDependencies: - '@opentelemetry/api' + - supports-color '@next/env@13.5.1': {} @@ -15136,75 +15269,161 @@ snapshots: dependencies: '@octokit/openapi-types': 18.0.0 - '@opentelemetry/api-logs@0.50.0': + '@opentelemetry/api-logs@0.52.1': dependencies: '@opentelemetry/api': 1.8.0 '@opentelemetry/api@1.8.0': {} - '@opentelemetry/core@1.23.0(@opentelemetry/api@1.8.0)': + '@opentelemetry/context-async-hooks@1.25.1(@opentelemetry/api@1.8.0)': dependencies: '@opentelemetry/api': 1.8.0 - '@opentelemetry/semantic-conventions': 1.23.0 - '@opentelemetry/core@1.24.1(@opentelemetry/api@1.8.0)': + '@opentelemetry/core@1.25.1(@opentelemetry/api@1.8.0)': dependencies: '@opentelemetry/api': 1.8.0 - '@opentelemetry/semantic-conventions': 1.24.1 + '@opentelemetry/semantic-conventions': 1.25.1 - '@opentelemetry/otlp-transformer@0.50.0(@opentelemetry/api@1.8.0)': + '@opentelemetry/exporter-trace-otlp-grpc@0.52.1(@opentelemetry/api@1.8.0)': dependencies: + '@grpc/grpc-js': 1.10.9 '@opentelemetry/api': 1.8.0 - '@opentelemetry/api-logs': 0.50.0 - '@opentelemetry/core': 1.23.0(@opentelemetry/api@1.8.0) - '@opentelemetry/resources': 1.23.0(@opentelemetry/api@1.8.0) - '@opentelemetry/sdk-logs': 0.50.0(@opentelemetry/api-logs@0.50.0)(@opentelemetry/api@1.8.0) - '@opentelemetry/sdk-metrics': 1.23.0(@opentelemetry/api@1.8.0) - '@opentelemetry/sdk-trace-base': 1.23.0(@opentelemetry/api@1.8.0) + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-grpc-exporter-base': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.25.1(@opentelemetry/api@1.8.0) - '@opentelemetry/resources@1.23.0(@opentelemetry/api@1.8.0)': + '@opentelemetry/exporter-trace-otlp-http@0.52.1(@opentelemetry/api@1.8.0)': dependencies: '@opentelemetry/api': 1.8.0 - '@opentelemetry/core': 1.23.0(@opentelemetry/api@1.8.0) - '@opentelemetry/semantic-conventions': 1.23.0 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-exporter-base': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.25.1(@opentelemetry/api@1.8.0) - '@opentelemetry/resources@1.24.1(@opentelemetry/api@1.8.0)': + '@opentelemetry/exporter-trace-otlp-proto@0.52.1(@opentelemetry/api@1.8.0)': dependencies: '@opentelemetry/api': 1.8.0 - '@opentelemetry/core': 1.24.1(@opentelemetry/api@1.8.0) - '@opentelemetry/semantic-conventions': 1.24.1 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-exporter-base': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.25.1(@opentelemetry/api@1.8.0) - '@opentelemetry/sdk-logs@0.50.0(@opentelemetry/api-logs@0.50.0)(@opentelemetry/api@1.8.0)': + '@opentelemetry/exporter-zipkin@1.25.1(@opentelemetry/api@1.8.0)': dependencies: '@opentelemetry/api': 1.8.0 - '@opentelemetry/api-logs': 0.50.0 - '@opentelemetry/core': 1.23.0(@opentelemetry/api@1.8.0) - '@opentelemetry/resources': 1.23.0(@opentelemetry/api@1.8.0) + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.25.1 - '@opentelemetry/sdk-metrics@1.23.0(@opentelemetry/api@1.8.0)': + '@opentelemetry/instrumentation@0.52.1(@opentelemetry/api@1.8.0)': dependencies: '@opentelemetry/api': 1.8.0 - '@opentelemetry/core': 1.23.0(@opentelemetry/api@1.8.0) - '@opentelemetry/resources': 1.23.0(@opentelemetry/api@1.8.0) + '@opentelemetry/api-logs': 0.52.1 + '@types/shimmer': 1.0.5 + import-in-the-middle: 1.8.1 + require-in-the-middle: 7.3.0 + semver: 7.6.0 + shimmer: 1.2.1 + transitivePeerDependencies: + - supports-color + + '@opentelemetry/otlp-exporter-base@0.52.1(@opentelemetry/api@1.8.0)': + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.52.1(@opentelemetry/api@1.8.0) + + '@opentelemetry/otlp-grpc-exporter-base@0.52.1(@opentelemetry/api@1.8.0)': + dependencies: + '@grpc/grpc-js': 1.10.9 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-exporter-base': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.52.1(@opentelemetry/api@1.8.0) + + '@opentelemetry/otlp-transformer@0.52.1(@opentelemetry/api@1.8.0)': + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.52.1 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-logs': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.25.1(@opentelemetry/api@1.8.0) + protobufjs: 7.3.2 + + '@opentelemetry/propagator-b3@1.25.1(@opentelemetry/api@1.8.0)': + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + + '@opentelemetry/propagator-jaeger@1.25.1(@opentelemetry/api@1.8.0)': + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + + '@opentelemetry/resources@1.25.1(@opentelemetry/api@1.8.0)': + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.25.1 + + '@opentelemetry/sdk-logs@0.52.1(@opentelemetry/api@1.8.0)': + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.52.1 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.25.1(@opentelemetry/api@1.8.0) + + '@opentelemetry/sdk-metrics@1.25.1(@opentelemetry/api@1.8.0)': + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.25.1(@opentelemetry/api@1.8.0) lodash.merge: 4.6.2 - '@opentelemetry/sdk-trace-base@1.23.0(@opentelemetry/api@1.8.0)': + '@opentelemetry/sdk-node@0.52.1(@opentelemetry/api@1.8.0)': dependencies: '@opentelemetry/api': 1.8.0 - '@opentelemetry/core': 1.23.0(@opentelemetry/api@1.8.0) - '@opentelemetry/resources': 1.23.0(@opentelemetry/api@1.8.0) - '@opentelemetry/semantic-conventions': 1.23.0 + '@opentelemetry/api-logs': 0.52.1 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-trace-otlp-grpc': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-trace-otlp-http': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-trace-otlp-proto': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-zipkin': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-logs': 0.52.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.25.1 + transitivePeerDependencies: + - supports-color - '@opentelemetry/sdk-trace-base@1.24.1(@opentelemetry/api@1.8.0)': + '@opentelemetry/sdk-trace-base@1.25.1(@opentelemetry/api@1.8.0)': dependencies: '@opentelemetry/api': 1.8.0 - '@opentelemetry/core': 1.24.1(@opentelemetry/api@1.8.0) - '@opentelemetry/resources': 1.24.1(@opentelemetry/api@1.8.0) - '@opentelemetry/semantic-conventions': 1.24.1 + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.25.1 - '@opentelemetry/semantic-conventions@1.23.0': {} + '@opentelemetry/sdk-trace-node@1.25.1(@opentelemetry/api@1.8.0)': + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/context-async-hooks': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/core': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/propagator-b3': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/propagator-jaeger': 1.25.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.25.1(@opentelemetry/api@1.8.0) + semver: 7.6.0 - '@opentelemetry/semantic-conventions@1.24.1': {} + '@opentelemetry/semantic-conventions@1.25.1': {} '@pigment-css/nextjs-plugin@0.0.14(@types/react@18.2.55)(next@14.2.4(@babel/core@7.24.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.44.1)(babel-plugin-macros@3.1.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react@18.2.0)': dependencies: @@ -15281,6 +15500,29 @@ snapshots: '@popperjs/core@2.11.8': {} + '@protobufjs/aspromise@1.1.2': {} + + '@protobufjs/base64@1.1.2': {} + + '@protobufjs/codegen@2.0.4': {} + + '@protobufjs/eventemitter@1.1.0': {} + + '@protobufjs/fetch@1.1.0': + dependencies: + '@protobufjs/aspromise': 1.1.2 + '@protobufjs/inquire': 1.1.0 + + '@protobufjs/float@1.0.2': {} + + '@protobufjs/inquire@1.1.0': {} + + '@protobufjs/path@1.1.2': {} + + '@protobufjs/pool@1.1.0': {} + + '@protobufjs/utf8@1.1.0': {} + '@react-native-community/cli-clean@12.3.6(encoding@0.1.13)': dependencies: '@react-native-community/cli-tools': 12.3.6(encoding@0.1.13) @@ -16231,6 +16473,8 @@ snapshots: '@types/mime': 3.0.1 '@types/node': 18.19.39 + '@types/shimmer@1.0.5': {} + '@types/sinon@17.0.3': dependencies: '@types/sinonjs__fake-timers': 8.1.2 @@ -17540,6 +17784,8 @@ snapshots: ci-info@3.9.0: {} + cjs-module-lexer@1.3.1: {} + classnames@2.3.2: {} claudia-api-builder@4.1.2: {} @@ -19882,6 +20128,13 @@ snapshots: parent-module: 1.0.1 resolve-from: 4.0.0 + import-in-the-middle@1.8.1: + dependencies: + acorn: 8.11.3 + acorn-import-attributes: 1.9.5(acorn@8.11.3) + cjs-module-lexer: 1.3.1 + module-details-from-path: 1.0.3 + import-lazy@4.0.0: {} import-local@3.1.0: @@ -21022,6 +21275,8 @@ snapshots: dayjs: 1.11.11 yargs: 15.4.1 + long@5.2.3: {} + longest-streak@2.0.4: {} loose-envify@1.4.0: @@ -21567,6 +21822,8 @@ snapshots: modify-values@1.0.1: {} + module-details-from-path@1.0.3: {} + moo@0.5.1: {} mri@1.2.0: {} @@ -22665,6 +22922,21 @@ snapshots: object-assign: 4.1.1 react-is: 16.13.1 + protobufjs@7.3.2: + dependencies: + '@protobufjs/aspromise': 1.1.2 + '@protobufjs/base64': 1.1.2 + '@protobufjs/codegen': 2.0.4 + '@protobufjs/eventemitter': 1.1.0 + '@protobufjs/fetch': 1.1.0 + '@protobufjs/float': 1.0.2 + '@protobufjs/inquire': 1.1.0 + '@protobufjs/path': 1.1.2 + '@protobufjs/pool': 1.1.0 + '@protobufjs/utf8': 1.1.0 + '@types/node': 18.19.39 + long: 5.2.3 + protocols@2.0.1: {} proxy-addr@2.0.7: @@ -23315,6 +23587,14 @@ snapshots: require-from-string@2.0.2: {} + require-in-the-middle@7.3.0: + dependencies: + debug: 4.3.4(supports-color@8.1.1) + module-details-from-path: 1.0.3 + resolve: 1.22.8 + transitivePeerDependencies: + - supports-color + require-main-filename@2.0.0: {} requires-port@1.0.0: {} @@ -23636,6 +23916,8 @@ snapshots: interpret: 1.4.0 rechoir: 0.6.2 + shimmer@1.2.1: {} + shx@0.3.4: dependencies: minimist: 1.2.6 From d06966882c2b149a0d1f12841eeb4c4fad51a5e4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 18:40:47 +0530 Subject: [PATCH 38/65] Bump execa to ^9.3.0 (#42729) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 41b866d566993c..889b8013ec4e5d 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "@googleapis/sheets": "^8.0.0", "@netlify/functions": "^2.8.0", "@slack/bolt": "^3.19.0", - "execa": "^9.2.0", + "execa": "^9.3.0", "google-auth-library": "^9.11.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6b07296bda41eb..ac55e4b6b11299 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,8 +35,8 @@ importers: specifier: ^3.19.0 version: 3.19.0 execa: - specifier: ^9.2.0 - version: 9.2.0 + specifier: ^9.3.0 + version: 9.3.0 google-auth-library: specifier: ^9.11.0 version: 9.11.0(encoding@0.1.13) @@ -7536,8 +7536,8 @@ packages: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} - execa@9.2.0: - resolution: {integrity: sha512-vpOyYg7UAVKLAWWtRS2gAdgkT7oJbCn0me3gmUmxZih4kd3MF/oo8kNTBTIbkO3yuuF5uB4ZCZfn8BOolITYhg==} + execa@9.3.0: + resolution: {integrity: sha512-l6JFbqnHEadBoVAVpN5dl2yCyfX28WoBAGaoQcNmLLSedOxTxcn2Qa83s8I/PA5i56vWru2OHOtrwF7Om2vqlg==} engines: {node: ^18.19.0 || >=20.5.0} expand-tilde@2.0.2: @@ -19234,7 +19234,7 @@ snapshots: signal-exit: 3.0.7 strip-final-newline: 2.0.0 - execa@9.2.0: + execa@9.3.0: dependencies: '@sindresorhus/merge-streams': 4.0.0 cross-spawn: 7.0.3 From 2ef685d19ec53aafcddf15f67364a4974a86eaf2 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 23 Jun 2024 22:44:25 +0200 Subject: [PATCH 39/65] [infra] Add support donation button (#42499) Signed-off-by: Olivier Tassinari Co-authored-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/1.bug.yml | 6 ++++++ .github/ISSUE_TEMPLATE/2.feature.yml | 6 ++++++ .github/ISSUE_TEMPLATE/4.docs-feedback.yml | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/1.bug.yml b/.github/ISSUE_TEMPLATE/1.bug.yml index f1b828fc6d3db3..c8c7c2d05eb11c 100644 --- a/.github/ISSUE_TEMPLATE/1.bug.yml +++ b/.github/ISSUE_TEMPLATE/1.bug.yml @@ -59,3 +59,9 @@ body: Output from `npx @mui/envinfo` goes here. ``` + - type: markdown + attributes: + value: | + ## :heart: Love Material UI? + + Consider donating $10 to sustain our open-source work: [https://opencollective.com/mui-org](https://opencollective.com/mui-org). diff --git a/.github/ISSUE_TEMPLATE/2.feature.yml b/.github/ISSUE_TEMPLATE/2.feature.yml index 054d5527f7e13a..444adc3e659eda 100644 --- a/.github/ISSUE_TEMPLATE/2.feature.yml +++ b/.github/ISSUE_TEMPLATE/2.feature.yml @@ -32,3 +32,9 @@ body: attributes: label: Motivation description: What are you trying to accomplish? Providing context helps us come up with a solution that is more useful in the real world. + - type: markdown + attributes: + value: | + ## :heart: Love Material UI? + + Consider donating $10 to sustain our open-source work: [https://opencollective.com/mui-org](https://opencollective.com/mui-org). diff --git a/.github/ISSUE_TEMPLATE/4.docs-feedback.yml b/.github/ISSUE_TEMPLATE/4.docs-feedback.yml index 21f9ae7ba38356..49593ef995cc9c 100644 --- a/.github/ISSUE_TEMPLATE/4.docs-feedback.yml +++ b/.github/ISSUE_TEMPLATE/4.docs-feedback.yml @@ -42,3 +42,9 @@ body: attributes: label: Context description: What are you trying to accomplish? Providing context helps us come up with a solution that is more useful in the real world. + - type: markdown + attributes: + value: | + ## :heart: Love Material UI? + + Consider donating $10 to sustain our open-source work: [https://opencollective.com/mui-org](https://opencollective.com/mui-org). From f4f199b86fbbe8d8370c8ec93cccd54bb14e8532 Mon Sep 17 00:00:00 2001 From: Siriwat K Date: Mon, 24 Jun 2024 17:46:38 +0700 Subject: [PATCH 40/65] [material-ui] Support Pigment CSS for `CssBaseline`, `ScopedCssBaseline` and `Popper` (#42640) --- apps/pigment-css-next-app/src/app/layout.tsx | 17 +- .../material-ui/react-css-baseline/page.tsx | 24 +++ .../src/app/material-ui/react-popper/page.tsx | 51 ++++++ .../app/material-ui/react-text-field/page.tsx | 163 +++++++++++++++++ .../pages/material-ui/react-css-baseline.tsx | 24 +++ .../src/pages/material-ui/react-popper.tsx | 52 ++++++ .../pages/material-ui/react-text-field.tsx | 164 ++++++++++++++++++ .../src/CssBaseline/CssBaseline.js | 72 +++++++- packages/mui-material/src/Popper/Popper.tsx | 14 +- .../ScopedCssBaseline/ScopedCssBaseline.js | 32 ++-- .../mui-material/src/zero-styled/index.tsx | 17 +- 11 files changed, 589 insertions(+), 41 deletions(-) create mode 100644 apps/pigment-css-next-app/src/app/material-ui/react-css-baseline/page.tsx create mode 100644 apps/pigment-css-next-app/src/app/material-ui/react-popper/page.tsx create mode 100644 apps/pigment-css-next-app/src/app/material-ui/react-text-field/page.tsx create mode 100644 apps/pigment-css-vite-app/src/pages/material-ui/react-css-baseline.tsx create mode 100644 apps/pigment-css-vite-app/src/pages/material-ui/react-popper.tsx create mode 100644 apps/pigment-css-vite-app/src/pages/material-ui/react-text-field.tsx diff --git a/apps/pigment-css-next-app/src/app/layout.tsx b/apps/pigment-css-next-app/src/app/layout.tsx index 77126c9b714539..b232ba291a9f28 100644 --- a/apps/pigment-css-next-app/src/app/layout.tsx +++ b/apps/pigment-css-next-app/src/app/layout.tsx @@ -1,9 +1,7 @@ import type { Metadata } from 'next'; -import { css } from '@pigment-css/react'; import { Inter } from 'next/font/google'; import { AppRouterCacheProvider } from '@mui/material-nextjs/v14-appRouter'; import { ThemeProvider } from '@mui/material/styles'; -import CssBaseline from '@mui/material/CssBaseline'; import '@pigment-css/react/styles.css'; import theme from './theme'; @@ -19,20 +17,9 @@ export const metadata: Metadata = { export default function RootLayout(props: { children: React.ReactNode }) { return ( - t.vars.palette.background.default}; - color: ${({ theme: t }) => t.vars.palette.text.primary}; - background-image: url('@/assets/mui.svg'); - background-repeat: no-repeat; - background-position: 1rem 1rem; - `}`} - > + - - - {props.children} - + {props.children} diff --git a/apps/pigment-css-next-app/src/app/material-ui/react-css-baseline/page.tsx b/apps/pigment-css-next-app/src/app/material-ui/react-css-baseline/page.tsx new file mode 100644 index 00000000000000..ba513ac0612826 --- /dev/null +++ b/apps/pigment-css-next-app/src/app/material-ui/react-css-baseline/page.tsx @@ -0,0 +1,24 @@ +'use client'; +import * as React from 'react'; +import CssBaseline from '@mui/material/CssBaseline'; +import ScopedCssBaseline from '@mui/material/ScopedCssBaseline'; + +export default function CssBaselinePage() { + return ( + + +
+

CSS Baseline

+
+

Hello world

+
+
+
+

Positioned Popper

+
+ Hello world +
+
+
+ ); +} diff --git a/apps/pigment-css-next-app/src/app/material-ui/react-popper/page.tsx b/apps/pigment-css-next-app/src/app/material-ui/react-popper/page.tsx new file mode 100644 index 00000000000000..99197dba12699d --- /dev/null +++ b/apps/pigment-css-next-app/src/app/material-ui/react-popper/page.tsx @@ -0,0 +1,51 @@ +'use client'; +import * as React from 'react'; +import PopperPopupState from '../../../../../../docs/data/material/components/popper/PopperPopupState'; +import PositionedPopper from '../../../../../../docs/data/material/components/popper/PositionedPopper'; +import SimplePopper from '../../../../../../docs/data/material/components/popper/SimplePopper'; +import SpringPopper from '../../../../../../docs/data/material/components/popper/SpringPopper'; +import TransitionsPopper from '../../../../../../docs/data/material/components/popper/TransitionsPopper'; +import VirtualElementPopper from '../../../../../../docs/data/material/components/popper/VirtualElementPopper'; + +export default function Popper() { + return ( + +
+

Popper Popup State

+
+ +
+
+
+

Positioned Popper

+
+ +
+
+
+

Simple Popper

+
+ +
+
+
+

Spring Popper

+
+ +
+
+
+

Transitions Popper

+
+ +
+
+
+

Virtual Element Popper

+
+ +
+
+
+ ); +} diff --git a/apps/pigment-css-next-app/src/app/material-ui/react-text-field/page.tsx b/apps/pigment-css-next-app/src/app/material-ui/react-text-field/page.tsx new file mode 100644 index 00000000000000..f3d627bd2944ce --- /dev/null +++ b/apps/pigment-css-next-app/src/app/material-ui/react-text-field/page.tsx @@ -0,0 +1,163 @@ +'use client'; +import * as React from 'react'; +import BasicTextFields from '../../../../../../docs/data/material/components/text-fields/BasicTextFields'; +import ColorTextFields from '../../../../../../docs/data/material/components/text-fields/ColorTextFields'; +import ComposedTextField from '../../../../../../docs/data/material/components/text-fields/ComposedTextField'; +import CustomizedInputBase from '../../../../../../docs/data/material/components/text-fields/CustomizedInputBase'; +import CustomizedInputsStyleOverrides from '../../../../../../docs/data/material/components/text-fields/CustomizedInputsStyleOverrides'; +import CustomizedInputsStyled from '../../../../../../docs/data/material/components/text-fields/CustomizedInputsStyled'; +import FormPropsTextFields from '../../../../../../docs/data/material/components/text-fields/FormPropsTextFields'; +import FormattedInputs from '../../../../../../docs/data/material/components/text-fields/FormattedInputs'; +import FullWidthTextField from '../../../../../../docs/data/material/components/text-fields/FullWidthTextField'; +import HelperTextAligned from '../../../../../../docs/data/material/components/text-fields/HelperTextAligned'; +import HelperTextMisaligned from '../../../../../../docs/data/material/components/text-fields/HelperTextMisaligned'; +import InputAdornments from '../../../../../../docs/data/material/components/text-fields/InputAdornments'; +import InputWithIcon from '../../../../../../docs/data/material/components/text-fields/InputWithIcon'; +import Inputs from '../../../../../../docs/data/material/components/text-fields/Inputs'; +import LayoutTextFields from '../../../../../../docs/data/material/components/text-fields/LayoutTextFields'; +import MultilineTextFields from '../../../../../../docs/data/material/components/text-fields/MultilineTextFields'; +import SelectTextFields from '../../../../../../docs/data/material/components/text-fields/SelectTextFields'; +import StateTextFields from '../../../../../../docs/data/material/components/text-fields/StateTextFields'; +import TextFieldHiddenLabel from '../../../../../../docs/data/material/components/text-fields/TextFieldHiddenLabel'; +import TextFieldSizes from '../../../../../../docs/data/material/components/text-fields/TextFieldSizes'; +import UseFormControl from '../../../../../../docs/data/material/components/text-fields/UseFormControl'; +import ValidationTextFields from '../../../../../../docs/data/material/components/text-fields/ValidationTextFields'; + +export default function TextFields() { + return ( + +
+

Basic Text Fields

+
+ +
+
+
+

Color Text Fields

+
+ +
+
+
+

Composed Text Field

+
+ +
+
+
+

Customized Input Base

+
+ +
+
+
+

Customized Inputs Style Overrides

+
+ +
+
+
+

Customized Inputs Styled

+
+ +
+
+
+

Form Props Text Fields

+
+ +
+
+
+

Formatted Inputs

+
+ +
+
+
+

Full Width Text Field

+
+ +
+
+
+

Helper Text Aligned

+
+ +
+
+
+

Helper Text Misaligned

+
+ +
+
+
+

Input Adornments

+
+ +
+
+
+

Input With Icon

+
+ +
+
+
+

Inputs

+
+ +
+
+
+

Layout Text Fields

+
+ +
+
+
+

Multiline Text Fields

+
+ +
+
+
+

Select Text Fields

+
+ +
+
+
+

State Text Fields

+
+ +
+
+
+

Text Field Hidden Label

+
+ +
+
+
+

Text Field Sizes

+
+ +
+
+
+

Use Form Control

+
+ +
+
+
+

Validation Text Fields

+
+ +
+
+
+ ); +} diff --git a/apps/pigment-css-vite-app/src/pages/material-ui/react-css-baseline.tsx b/apps/pigment-css-vite-app/src/pages/material-ui/react-css-baseline.tsx new file mode 100644 index 00000000000000..14caca148fca49 --- /dev/null +++ b/apps/pigment-css-vite-app/src/pages/material-ui/react-css-baseline.tsx @@ -0,0 +1,24 @@ +import * as React from 'react'; +import CssBaseline from '@mui/material/CssBaseline'; +import ScopedCssBaseline from '@mui/material/ScopedCssBaseline'; +import MaterialUILayout from '../../Layout'; + +export default function CssBaselinePage() { + return ( + + +
+

CSS Baseline

+
+

Hello world

+
+
+
+

Positioned Popper

+
+ Hello world +
+
+
+ ); +} diff --git a/apps/pigment-css-vite-app/src/pages/material-ui/react-popper.tsx b/apps/pigment-css-vite-app/src/pages/material-ui/react-popper.tsx new file mode 100644 index 00000000000000..29dccd4a30a793 --- /dev/null +++ b/apps/pigment-css-vite-app/src/pages/material-ui/react-popper.tsx @@ -0,0 +1,52 @@ +import * as React from 'react'; +import MaterialUILayout from '../../Layout'; +import PopperPopupState from '../../../../../docs/data/material/components/popper/PopperPopupState.tsx'; +import PositionedPopper from '../../../../../docs/data/material/components/popper/PositionedPopper.tsx'; +import SimplePopper from '../../../../../docs/data/material/components/popper/SimplePopper.tsx'; +import SpringPopper from '../../../../../docs/data/material/components/popper/SpringPopper.tsx'; +import TransitionsPopper from '../../../../../docs/data/material/components/popper/TransitionsPopper.tsx'; +import VirtualElementPopper from '../../../../../docs/data/material/components/popper/VirtualElementPopper.tsx'; + +export default function Popper() { + return ( + +

Popper

+
+

Popper Popup State

+
+ +
+
+
+

Positioned Popper

+
+ +
+
+
+

Simple Popper

+
+ +
+
+
+

Spring Popper

+
+ +
+
+
+

Transitions Popper

+
+ +
+
+
+

Virtual Element Popper

+
+ +
+
+
+ ); +} diff --git a/apps/pigment-css-vite-app/src/pages/material-ui/react-text-field.tsx b/apps/pigment-css-vite-app/src/pages/material-ui/react-text-field.tsx new file mode 100644 index 00000000000000..bdd998a45605f0 --- /dev/null +++ b/apps/pigment-css-vite-app/src/pages/material-ui/react-text-field.tsx @@ -0,0 +1,164 @@ +import * as React from 'react'; +import MaterialUILayout from '../../Layout'; +import BasicTextFields from '../../../../../docs/data/material/components/text-fields/BasicTextFields.tsx'; +import ColorTextFields from '../../../../../docs/data/material/components/text-fields/ColorTextFields.tsx'; +import ComposedTextField from '../../../../../docs/data/material/components/text-fields/ComposedTextField.tsx'; +import CustomizedInputBase from '../../../../../docs/data/material/components/text-fields/CustomizedInputBase.tsx'; +import CustomizedInputsStyleOverrides from '../../../../../docs/data/material/components/text-fields/CustomizedInputsStyleOverrides.tsx'; +import CustomizedInputsStyled from '../../../../../docs/data/material/components/text-fields/CustomizedInputsStyled.tsx'; +import FormPropsTextFields from '../../../../../docs/data/material/components/text-fields/FormPropsTextFields.tsx'; +import FormattedInputs from '../../../../../docs/data/material/components/text-fields/FormattedInputs.tsx'; +import FullWidthTextField from '../../../../../docs/data/material/components/text-fields/FullWidthTextField.tsx'; +import HelperTextAligned from '../../../../../docs/data/material/components/text-fields/HelperTextAligned.tsx'; +import HelperTextMisaligned from '../../../../../docs/data/material/components/text-fields/HelperTextMisaligned.tsx'; +import InputAdornments from '../../../../../docs/data/material/components/text-fields/InputAdornments.tsx'; +import InputWithIcon from '../../../../../docs/data/material/components/text-fields/InputWithIcon.tsx'; +import Inputs from '../../../../../docs/data/material/components/text-fields/Inputs.tsx'; +import LayoutTextFields from '../../../../../docs/data/material/components/text-fields/LayoutTextFields.tsx'; +import MultilineTextFields from '../../../../../docs/data/material/components/text-fields/MultilineTextFields.tsx'; +import SelectTextFields from '../../../../../docs/data/material/components/text-fields/SelectTextFields.tsx'; +import StateTextFields from '../../../../../docs/data/material/components/text-fields/StateTextFields.tsx'; +import TextFieldHiddenLabel from '../../../../../docs/data/material/components/text-fields/TextFieldHiddenLabel.tsx'; +import TextFieldSizes from '../../../../../docs/data/material/components/text-fields/TextFieldSizes.tsx'; +import UseFormControl from '../../../../../docs/data/material/components/text-fields/UseFormControl.tsx'; +import ValidationTextFields from '../../../../../docs/data/material/components/text-fields/ValidationTextFields.tsx'; + +export default function TextFields() { + return ( + +

TextFields

+
+

Basic Text Fields

+
+ +
+
+
+

Color Text Fields

+
+ +
+
+
+

Composed Text Field

+
+ +
+
+
+

Customized Input Base

+
+ +
+
+
+

Customized Inputs Style Overrides

+
+ +
+
+
+

Customized Inputs Styled

+
+ +
+
+
+

Form Props Text Fields

+
+ +
+
+
+

Formatted Inputs

+
+ +
+
+
+

Full Width Text Field

+
+ +
+
+
+

Helper Text Aligned

+
+ +
+
+
+

Helper Text Misaligned

+
+ +
+
+
+

Input Adornments

+
+ +
+
+
+

Input With Icon

+
+ +
+
+
+

Inputs

+
+ +
+
+
+

Layout Text Fields

+
+ +
+
+
+

Multiline Text Fields

+
+ +
+
+
+

Select Text Fields

+
+ +
+
+
+

State Text Fields

+
+ +
+
+
+

Text Field Hidden Label

+
+ +
+
+
+

Text Field Sizes

+
+ +
+
+
+

Use Form Control

+
+ +
+
+
+

Validation Text Fields

+
+ +
+
+
+ ); +} diff --git a/packages/mui-material/src/CssBaseline/CssBaseline.js b/packages/mui-material/src/CssBaseline/CssBaseline.js index 12d16875e3f984..9caadb2ba5efb3 100644 --- a/packages/mui-material/src/CssBaseline/CssBaseline.js +++ b/packages/mui-material/src/CssBaseline/CssBaseline.js @@ -1,8 +1,11 @@ 'use client'; import * as React from 'react'; import PropTypes from 'prop-types'; -import useThemeProps from '../styles/useThemeProps'; -import GlobalStyles from '../GlobalStyles'; +import { globalCss } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; + +// to determine if the global styles are static or dynamic +const isDynamicSupport = typeof globalCss({}) === 'function'; export const html = (theme, enableColorScheme) => ({ WebkitFontSmoothing: 'antialiased', // Antialiasing. @@ -30,9 +33,20 @@ export const styles = (theme, enableColorScheme = false) => { const colorSchemeStyles = {}; if (enableColorScheme && theme.colorSchemes) { Object.entries(theme.colorSchemes).forEach(([key, scheme]) => { - colorSchemeStyles[theme.getColorSchemeSelector(key).replace(/\s*&/, '')] = { - colorScheme: scheme.palette?.mode, - }; + const selector = theme.getColorSchemeSelector(key); + if (selector.startsWith('@')) { + // for @media (prefers-color-scheme), we need to target :root + colorSchemeStyles[selector] = { + ':root': { + colorScheme: scheme.palette?.mode, + }, + }; + } else { + // else, it's likely that the selector already target an element with a class or data attribute + colorSchemeStyles[selector.replace(/\s*&/, '')] = { + colorScheme: scheme.palette?.mode, + }; + } }); } let defaultStyles = { @@ -63,15 +77,59 @@ export const styles = (theme, enableColorScheme = false) => { return defaultStyles; }; +// `ecs` stands for enableColorScheme. This is internal logic to make it work with Pigment CSS, so shorter is better. +const SELECTOR = 'mui-ecs'; +const staticStyles = (theme) => { + const result = styles(theme, false); + const baseStyles = Array.isArray(result) ? result[0] : result; + if (!theme.vars && baseStyles) { + baseStyles.html[`:root:has(${SELECTOR})`] = { colorScheme: theme.palette.mode }; + } + if (theme.colorSchemes) { + Object.entries(theme.colorSchemes).forEach(([key, scheme]) => { + const selector = theme.getColorSchemeSelector(key); + if (selector.startsWith('@')) { + // for @media (prefers-color-scheme), we need to target :root + baseStyles[selector] = { + [`:root:not(:has(.${SELECTOR}))`]: { + colorScheme: scheme.palette?.mode, + }, + }; + } else { + // else, it's likely that the selector already target an element with a class or data attribute + baseStyles[selector.replace(/\s*&/, '')] = { + [`&:not(:has(.${SELECTOR}))`]: { + colorScheme: scheme.palette?.mode, + }, + }; + } + }); + } + return result; +}; + +const GlobalStyles = globalCss( + isDynamicSupport + ? ({ theme, enableColorScheme }) => styles(theme, enableColorScheme) + : ({ theme }) => staticStyles(theme), +); + /** * Kickstart an elegant, consistent, and simple baseline to build upon. */ function CssBaseline(inProps) { - const props = useThemeProps({ props: inProps, name: 'MuiCssBaseline' }); + const props = useDefaultProps({ props: inProps, name: 'MuiCssBaseline' }); const { children, enableColorScheme = false } = props; return ( - styles(theme, enableColorScheme)} /> + {/* Emotion */} + {isDynamicSupport && } + + {/* Pigment CSS */} + {!isDynamicSupport && !enableColorScheme && ( + + )} + {children} ); diff --git a/packages/mui-material/src/Popper/Popper.tsx b/packages/mui-material/src/Popper/Popper.tsx index ea1ee028a96a75..565559630ff4b8 100644 --- a/packages/mui-material/src/Popper/Popper.tsx +++ b/packages/mui-material/src/Popper/Popper.tsx @@ -1,12 +1,14 @@ 'use client'; import { Popper as BasePopper, PopperProps as BasePopperProps } from '@mui/base/Popper'; -import { Direction, SxProps } from '@mui/system'; -import useTheme from '@mui/system/useThemeWithoutDefault'; +import { SxProps } from '@mui/system'; +import { useRtl } from '@mui/system/RtlProvider'; import refType from '@mui/utils/refType'; import HTMLElementType from '@mui/utils/HTMLElementType'; import PropTypes from 'prop-types'; import * as React from 'react'; -import { styled, Theme, useThemeProps } from '../styles'; +import { Theme } from '../styles'; +import { styled } from '../zero-styled'; +import { useDefaultProps } from '../DefaultPropsProvider'; export interface PopperProps extends Omit { /** @@ -59,8 +61,8 @@ const Popper = React.forwardRef(function Popper( inProps: PopperProps, ref: React.ForwardedRef, ) { - const theme = useTheme<{ direction?: Direction }>(); - const props = useThemeProps({ + const isRtl = useRtl(); + const props = useDefaultProps({ props: inProps, name: 'MuiPopper', }); @@ -101,7 +103,7 @@ const Popper = React.forwardRef(function Popper( return ( styles.root, -})(({ theme, ownerState }) => { +})(({ theme }) => { const colorSchemeStyles = {}; - if (ownerState.enableColorScheme && theme.colorSchemes) { + if (theme.colorSchemes) { Object.entries(theme.colorSchemes).forEach(([key, scheme]) => { - colorSchemeStyles[`&${theme.getColorSchemeSelector(key).replace(/\s*&/, '')}`] = { - colorScheme: scheme.palette?.mode, - }; + const selector = theme.getColorSchemeSelector(key); + if (selector.startsWith('@')) { + colorSchemeStyles[selector] = { + colorScheme: scheme.palette?.mode, + }; + } else { + colorSchemeStyles[`&${selector.replace(/\s*&/, '')}`] = { + colorScheme: scheme.palette?.mode, + }; + } }); } return { - ...html(theme, ownerState.enableColorScheme), + ...html(theme, false), ...body(theme), '& *, & *::before, & *::after': { boxSizing: 'inherit', @@ -40,12 +47,17 @@ const ScopedCssBaselineRoot = styled('div', { '& strong, & b': { fontWeight: theme.typography.fontWeightBold, }, - ...colorSchemeStyles, + variants: [ + { + props: { enableColorScheme: true }, + style: theme.vars ? colorSchemeStyles : { colorScheme: theme.palette.mode }, + }, + ], }; }); const ScopedCssBaseline = React.forwardRef(function ScopedCssBaseline(inProps, ref) { - const props = useThemeProps({ props: inProps, name: 'MuiScopedCssBaseline' }); + const props = useDefaultProps({ props: inProps, name: 'MuiScopedCssBaseline' }); const { className, component = 'div', enableColorScheme, ...other } = props; const ownerState = { diff --git a/packages/mui-material/src/zero-styled/index.tsx b/packages/mui-material/src/zero-styled/index.tsx index e56c98cf9182d1..159973f48008a3 100644 --- a/packages/mui-material/src/zero-styled/index.tsx +++ b/packages/mui-material/src/zero-styled/index.tsx @@ -1,5 +1,7 @@ import * as React from 'react'; +import { Interpolation } from '@mui/system'; import { extendSxProp } from '@mui/system/styleFunctionSx'; +import { Theme } from '../styles/createTheme'; import useTheme from '../styles/useTheme'; import GlobalStyles, { GlobalStylesProps } from '../GlobalStyles'; @@ -7,9 +9,18 @@ export { css, keyframes } from '@mui/system'; export { default as styled } from '../styles/styled'; -export function globalCss(styles: GlobalStylesProps['styles']) { - return function GlobalStylesWrapper() { - return ; +export function globalCss(styles: Interpolation<{ theme: Theme }>) { + return function GlobalStylesWrapper(props: Record) { + return ( + // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value. + styles({ theme, ...props }) + : styles) as GlobalStylesProps['styles'] + } + /> + ); }; } From 280c2fa9f60b24e31f0df4c082182ed3eb6a184a Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 24 Jun 2024 17:39:12 +0200 Subject: [PATCH 41/65] [docs-infra] Fix visual look of in-house ad (#42735) --- docs/src/modules/components/Ad.js | 2 +- docs/src/modules/components/AdDisplay.js | 8 +- .../src/MarkdownElement/MarkdownElement.tsx | 109 ++++++++---------- 3 files changed, 57 insertions(+), 62 deletions(-) diff --git a/docs/src/modules/components/Ad.js b/docs/src/modules/components/Ad.js index 40d16785476bb4..42a5ba21e9bf72 100644 --- a/docs/src/modules/components/Ad.js +++ b/docs/src/modules/components/Ad.js @@ -25,7 +25,7 @@ function PleaseDisableAdblock(props) { {t('adblock')} - + {t('thanks')}{' '} ❤️ diff --git a/docs/src/modules/components/AdDisplay.js b/docs/src/modules/components/AdDisplay.js index 08af4e6afb733c..3b67cec3e5e529 100644 --- a/docs/src/modules/components/AdDisplay.js +++ b/docs/src/modules/components/AdDisplay.js @@ -1,6 +1,7 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import { styled } from '@mui/material/styles'; +import { adShape } from 'docs/src/modules/components/AdManager'; import { GA_ADS_DISPLAY_RATIO } from 'docs/src/modules/constants'; import { adStylesObject } from 'docs/src/modules/components/ad.styles'; @@ -31,7 +32,7 @@ const ImageShape = styled('span')(({ theme }) => { }); export default function AdDisplay(props) { - const { ad, className, shape = 'auto' } = props; + const { ad, className, shape: shapeProp = 'auto' } = props; React.useEffect(() => { // Avoid an exceed on the Google Analytics quotas. @@ -45,13 +46,16 @@ export default function AdDisplay(props) { }); }, [ad.label]); - let Root = 'span'; + const shape = shapeProp === 'auto' ? adShape : shapeProp; + + let Root; if (shape === 'inline') { Root = InlineShape; } if (shape === 'image') { Root = ImageShape; } + /* eslint-disable material-ui/no-hardcoded-labels, react/no-danger */ return ( diff --git a/packages/mui-docs/src/MarkdownElement/MarkdownElement.tsx b/packages/mui-docs/src/MarkdownElement/MarkdownElement.tsx index 2c5c4dce602253..04387747bc51b6 100644 --- a/packages/mui-docs/src/MarkdownElement/MarkdownElement.tsx +++ b/packages/mui-docs/src/MarkdownElement/MarkdownElement.tsx @@ -121,6 +121,43 @@ const Root = styled('div')( marginBottom: 6, }, }, + '& a[target="_blank"]::after': { + content: '""', + maskImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' focusable='false' aria-hidden='true' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z'%3E%3C/path%3E%3C/svg%3E")`, + display: 'inline-flex', + width: '1em', + height: '1em', + color: 'inherit', + backgroundColor: 'currentColor', + transform: 'translate(0, 2px)', + transition: 'transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1)', // bounce effect + opacity: 0.8, + }, + '& a[target="_blank"]:hover::after': { + opacity: 1, + transform: 'translate(1px, 0)', + }, + '& a.remove-link-arrow::after': { + // Allows to remove link arrows for images + display: 'none', + }, + '& .Ad-root a::after': { + // Remove link arrow for ads + display: 'none', + }, + '& a': { + // Style taken from the Link component + color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`, + fontWeight: theme.typography.fontWeightMedium, + textDecoration: 'underline', + textDecorationColor: alpha(lightTheme.palette.primary.main, 0.4), + '&:hover': { + textDecorationColor: 'inherit', + }, + }, + '& a code': { + color: darken(lightTheme.palette.primary.main, 0.2), + }, '& h1, & h2, & h3, & h4': { display: 'flex', alignItems: 'center', @@ -134,6 +171,8 @@ const Root = styled('div')( '& .title-link-to-anchor': { color: 'inherit', textDecoration: 'none', + boxShadow: 'none', + fontWeight: 'inherit', position: 'relative', display: 'flex', alignItems: 'center', @@ -145,12 +184,6 @@ const Root = styled('div')( alignItems: 'center', visibility: 'hidden', }, - '& a:not(.title-link-to-anchor):hover': { - color: 'currentColor', - border: 'none', - boxShadow: '0 1px 0 0 currentColor', - textDecoration: 'none', - }, '& .anchor-icon, & .comment-link': { padding: 0, cursor: 'pointer', @@ -409,46 +442,6 @@ const Root = styled('div')( }, }, }, - '& a[target="_blank"]::after': { - content: '""', - maskImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' focusable='false' aria-hidden='true' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z'%3E%3C/path%3E%3C/svg%3E")`, - display: 'inline-flex', - width: '1em', - height: '1em', - color: 'inherit', - backgroundColor: 'currentColor', - transform: 'translate(0, 2px)', - transition: 'transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1)', // bounce effect - opacity: 0.8, - }, - '& a[target="_blank"]:hover::after': { - opacity: 1, - transform: 'translate(1px, 0)', - }, - '& a.remove-link-arrow::after': { - // Allows to remove link arrows for images - display: 'none', - }, - '& .Ad-root a::after': { - // Remove link arrow for ads - display: 'none', - }, - '& a:not(.title-link-to-anchor), & a:not(.title-link-to-anchor) code': { - // Style taken from the Link component - color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`, - fontWeight: theme.typography.fontWeightMedium, - textDecoration: 'underline', - textDecorationColor: alpha(lightTheme.palette.primary.main, 0.4), - '&:hover': { - textDecorationColor: 'inherit', - }, - }, - '& a code': { - color: darken(lightTheme.palette.primary.main, 0.04), - }, - '& a:not(.title-link-to-anchor) code': { - color: darken(lightTheme.palette.primary.main, 0.2), - }, '& img, & video': { // Use !important so that inline style on or