diff --git a/docs/app/experiments/dialog.tsx b/docs/app/experiments/dialog.tsx index 79dfd39804..c1dd9fe760 100644 --- a/docs/app/experiments/dialog.tsx +++ b/docs/app/experiments/dialog.tsx @@ -150,7 +150,7 @@ function ReactSpringDialogDemo({ animated, keepMounted, modal, dismissible }: De ); } -function ReactSpringTransition(props: { open: boolean; children?: React.ReactElement }) { +function ReactSpringTransition(props: { open: boolean; children?: React.ReactElement }) { const { open, children } = props; const api = useSpringRef(); @@ -179,6 +179,7 @@ function ReactSpringTransition(props: { open: boolean; children?: React.ReactEle }, [api, open, mounted, setMounted]); return mounted ? ( + /* @ts-ignore springAnimated.div props type does not include children and errors in React 19 */ {children} diff --git a/docs/data/components/tooltip/UnstyledTooltipFollowCursor.js b/docs/data/components/tooltip/UnstyledTooltipFollowCursor.js index 957eceae5c..1d8e8265a0 100644 --- a/docs/data/components/tooltip/UnstyledTooltipFollowCursor.js +++ b/docs/data/components/tooltip/UnstyledTooltipFollowCursor.js @@ -6,7 +6,7 @@ import { styled } from '@mui/system'; export default function UnstyledTooltipFollowCursor() { return (
- + Anchor Tooltip diff --git a/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx b/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx index 957eceae5c..1d8e8265a0 100644 --- a/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx +++ b/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx @@ -6,7 +6,7 @@ import { styled } from '@mui/system'; export default function UnstyledTooltipFollowCursor() { return (
- + Anchor Tooltip diff --git a/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx.preview b/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx.preview index c95cdc12a4..122da4a445 100644 --- a/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx.preview +++ b/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx.preview @@ -1,4 +1,4 @@ - + Anchor Tooltip diff --git a/docs/next-env.d.ts b/docs/next-env.d.ts index 4f11a03dc6..40c3d68096 100644 --- a/docs/next-env.d.ts +++ b/docs/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. diff --git a/docs/next.config.mjs b/docs/next.config.mjs index 97659e6bce..9a24d92526 100644 --- a/docs/next.config.mjs +++ b/docs/next.config.mjs @@ -63,6 +63,7 @@ const nextConfig = { : {}), experimental: { esmExternals: true, + workerThreads: false, }, }; diff --git a/docs/src/blocks/Demo/DemoSourceCopy.tsx b/docs/src/blocks/Demo/DemoSourceCopy.tsx index 92177f5d6f..e78d1b43ff 100644 --- a/docs/src/blocks/Demo/DemoSourceCopy.tsx +++ b/docs/src/blocks/Demo/DemoSourceCopy.tsx @@ -43,6 +43,6 @@ export namespace DemoSourceCopy { export interface Props extends React.ButtonHTMLAttributes { onCopied?: () => void; onError?: (error: unknown) => void; - render?: React.ReactElement; + render?: React.ReactElement>; } } diff --git a/docs/src/blocks/GoogleAnalytics.tsx b/docs/src/blocks/GoogleAnalytics.tsx index 5883fec613..a1e83a8c5a 100644 --- a/docs/src/blocks/GoogleAnalytics.tsx +++ b/docs/src/blocks/GoogleAnalytics.tsx @@ -26,12 +26,12 @@ const GoogleAnalytics = React.memo(function GoogleAnalytics(props: GoogleAnalyti } }, []); - const timeout = React.useRef(); + const timeout = React.useRef | null>(null); React.useEffect(() => { // Wait for the title to be updated. // React fires useEffect twice in dev mode - clearTimeout(timeout.current); + clearTimeout(timeout.current ?? undefined); timeout.current = setTimeout(() => { // Remove hash as it's never sent to the server // https://github.com/vercel/next.js/issues/25202 diff --git a/docs/src/design-system/ToggleButtonGroup.tsx b/docs/src/design-system/ToggleButtonGroup.tsx index cf3a1eab00..00ced02b1d 100644 --- a/docs/src/design-system/ToggleButtonGroup.tsx +++ b/docs/src/design-system/ToggleButtonGroup.tsx @@ -47,4 +47,4 @@ export const ToggleButtonGroup = React.forwardRef(function ToggleButtonGroup< ); }) as