diff --git a/apps/local-ui-lib/index.d.ts b/apps/local-ui-lib/index.d.ts index a24be41b..7b290dd4 100644 --- a/apps/local-ui-lib/index.d.ts +++ b/apps/local-ui-lib/index.d.ts @@ -1,6 +1,8 @@ +import type * as React from 'react'; + export const bounceAnim: string; export const Button: React.ComponentType< - JSX.IntrinsicElements['button'] & { + React.JSX.IntrinsicElements['button'] & { isRed?: boolean; sx?: unknown; } diff --git a/packages/pigment-css-react/src/Box.d.ts b/packages/pigment-css-react/src/Box.d.ts index 5eeb4754..2e0e8efc 100644 --- a/packages/pigment-css-react/src/Box.d.ts +++ b/packages/pigment-css-react/src/Box.d.ts @@ -1,3 +1,4 @@ +import type * as React from 'react'; import type { BaseDefaultProps, Substitute, NoInfer } from './base'; import type { SxProp } from './sx'; @@ -33,7 +34,7 @@ export interface PolymorphicComponent extends React.ForwardRefExoticComponent { ( props: PolymorphicComponentProps, - ): JSX.Element; + ): React.JSX.Element; } declare const Box: PolymorphicComponent<{}>; diff --git a/packages/pigment-css-react/src/base.ts b/packages/pigment-css-react/src/base.ts index 1451eef2..05fbc6b6 100644 --- a/packages/pigment-css-react/src/base.ts +++ b/packages/pigment-css-react/src/base.ts @@ -1,3 +1,4 @@ +import type * as React from 'react'; import type * as CSS from 'csstype'; import { OverridableStringUnion } from '@mui/types'; @@ -63,7 +64,7 @@ export interface PolymorphicComponent { ( props: PolymorphicComponentProps, - ): JSX.Element; + ): React.JSX.Element; } export interface BreakpointOverrides {} diff --git a/packages/pigment-css-react/src/styled.d.ts b/packages/pigment-css-react/src/styled.d.ts index d0fd15ef..f86241df 100644 --- a/packages/pigment-css-react/src/styled.d.ts +++ b/packages/pigment-css-react/src/styled.d.ts @@ -70,7 +70,10 @@ export interface CreateStyled { } export type CreateStyledIndex = { - [Key in keyof JSX.IntrinsicElements]: CreateStyledComponent; + [Key in keyof React.JSX.IntrinsicElements]: CreateStyledComponent< + Key, + React.JSX.IntrinsicElements[Key] + >; }; declare const styled: CreateStyled & CreateStyledIndex;