Skip to content

Commit 9d6dd73

Browse files
committed
Fix integration regression
1 parent b2cb357 commit 9d6dd73

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/react/src/BaseStyles.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import React, {type PropsWithChildren} from 'react'
1+
import React from 'react'
22
import {clsx} from 'clsx'
33
import styled, {createGlobalStyle} from 'styled-components'
4+
import type {ComponentProps} from './utils/types'
45
import type {SystemCommonProps, SystemTypographyProps} from './constants'
56
import {COMMON, TYPOGRAPHY} from './constants'
67
import {useTheme} from './ThemeProvider'
@@ -43,12 +44,7 @@ const Base = toggleStyledComponent(
4344
`,
4445
)
4546

46-
export type BaseStylesProps = PropsWithChildren &
47-
SystemTypographyProps &
48-
SystemCommonProps & {
49-
className?: string
50-
style?: React.CSSProperties
51-
}
47+
export type BaseStylesProps = ComponentProps<typeof Base>
5248

5349
function BaseStyles(props: BaseStylesProps) {
5450
const {children, color = 'fg.default', fontFamily = 'normal', lineHeight = 'default', className, ...rest} = props

0 commit comments

Comments
 (0)