From 55249f5d5f792db89fff02bd53ee7ac2c925cf08 Mon Sep 17 00:00:00 2001 From: Diego Andai Date: Wed, 27 Nov 2024 12:50:30 -0300 Subject: [PATCH] [typescript] Cherry pick React 19 type PRs to v5.x (#44577) --- docs/data/base/components/select/select.md | 2 +- .../joy/components/input/DebouncedInput.js | 2 +- .../joy/components/input/DebouncedInput.tsx | 4 +++- .../snackbar/SnackbarHideDuration.js | 4 ++-- .../snackbar/SnackbarHideDuration.tsx | 4 ++-- .../material/components/app-bar/BackToTop.tsx | 2 +- .../components/app-bar/ElevateAppBar.tsx | 2 +- .../components/app-bar/HideAppBar.tsx | 2 +- .../components/autocomplete/Virtualize.tsx | 12 +++++++---- .../components/dialogs/FullScreenDialog.tsx | 2 +- .../components/lists/InteractiveList.tsx | 2 +- .../components/popper/SpringPopper.tsx | 2 +- .../progress/CircularIntegration.js | 2 +- .../progress/CircularIntegration.tsx | 2 +- .../components/progress/DelayingAppearance.js | 2 +- .../progress/DelayingAppearance.tsx | 4 +++- .../components/rating/RadioGroupRating.tsx | 2 +- .../steppers/CustomizedSteppers.tsx | 2 +- .../integrations/routing/ListRouter.tsx | 2 +- docs/pages/base-ui/api/use-autocomplete.json | 4 ++-- docs/src/components/about/HowToSupport.tsx | 2 +- docs/src/components/header/HeaderNavBar.tsx | 2 +- .../home/MaterialDesignComponents.tsx | 2 +- docs/src/components/home/UserFeedbacks.tsx | 2 +- docs/src/components/pricing/PricingTable.tsx | 2 +- docs/src/components/productX/XRoadmap.tsx | 2 +- .../components/showcase/ViewToggleButton.tsx | 2 +- .../components/typography/SectionHeadline.tsx | 2 +- docs/src/layouts/HeroContainer.tsx | 4 ++-- .../modules/components/JoyThemeBuilder.tsx | 21 ++++++++++++------- docs/src/modules/components/JoyUsageDemo.tsx | 2 +- .../modules/components/JoyVariablesDemo.tsx | 4 ++-- docs/types/docs.d.ts | 2 +- packages/mui-base/src/Button/Button.tsx | 2 +- packages/mui-base/src/Tab/Tab.tsx | 2 +- .../src/useAutocomplete/useAutocomplete.d.ts | 2 +- packages/mui-base/src/useButton/useButton.ts | 2 +- .../src/useCompound/useCompound.test.tsx | 8 +++---- .../src/useCompound/useCompoundParent.ts | 9 +++++--- packages/mui-base/src/useMenu/menuReducer.ts | 2 +- .../src/useMenuItem/useMenuItem.types.ts | 2 +- .../mui-base/src/useOption/useOption.types.ts | 2 +- packages/mui-base/src/useSlider/useSlider.ts | 6 +++--- .../mui-base/src/useTabs/TabsProvider.tsx | 2 +- packages/mui-base/src/useTabs/useTabs.ts | 2 +- packages/mui-base/src/utils/useMessageBus.ts | 2 +- .../test/describeConformanceUnstyled.tsx | 2 +- .../mui-joy/src/Autocomplete/Autocomplete.tsx | 2 +- .../mui-joy/src/ButtonGroup/ButtonGroup.tsx | 7 ++++--- packages/mui-joy/src/Card/Card.tsx | 7 ++++--- packages/mui-joy/src/ListItem/ListItem.tsx | 4 ++-- .../mui-joy/src/ModalDialog/ModalDialog.tsx | 7 ++++--- packages/mui-joy/src/Tab/Tab.tsx | 2 +- .../ToggleButtonGroup/ToggleButtonGroup.tsx | 7 ++++--- packages/mui-joy/src/Tooltip/Tooltip.tsx | 2 +- packages/mui-lab/src/Timeline/Timeline.tsx | 5 ++--- .../mui-lab/src/Timeline/Timeline.types.ts | 2 +- packages/mui-lab/test/describeConformance.ts | 2 +- .../pagesRouterV13Document.tsx | 2 +- .../mui-material/src/Popper/Popper.spec.tsx | 2 +- packages/mui-material/src/Slider/useSlider.ts | 6 +++--- .../mui-material/src/styles/styled.spec.tsx | 4 ++-- .../src/useAutocomplete/useAutocomplete.d.ts | 2 +- .../mui-material/test/describeConformance.ts | 2 +- .../src/GlobalStyles/GlobalStyles.d.ts | 2 +- .../src/GlobalStyles/GlobalStyles.spec.tsx | 2 +- .../src/GlobalStyles/GlobalStyles.d.ts | 2 +- .../src/GlobalStyles/GlobalStyles.spec.tsx | 2 +- packages/mui-system/src/Stack/createStack.tsx | 4 ++-- .../src/Unstable_Grid/createGrid.tsx | 7 +++++-- .../src/cssVars/createCssVarsProvider.d.ts | 2 +- .../mui-system/test/describeConformance.ts | 2 +- .../getValidReactChildren.ts | 2 +- packages/mui-utils/src/setRef/setRef.spec.tsx | 2 +- packages/test-utils/src/createRenderer.tsx | 16 ++++++++------ 75 files changed, 144 insertions(+), 118 deletions(-) diff --git a/docs/data/base/components/select/select.md b/docs/data/base/components/select/select.md index 7b66ecc94cc074..d3c996083bff70 100644 --- a/docs/data/base/components/select/select.md +++ b/docs/data/base/components/select/select.md @@ -60,7 +60,7 @@ const CustomSelect = React.forwardRef(function CustomSelect( return