import { type ElementType, type JSXElementConstructor } from 'react'; import { type BackgroundAccentColorsType, type BackgroundColorsDictionaryType, type BackgroundEmotionColorsType, type BackgroundGradientsDictionaryType, type BackgroundNeutralColorsType, type BorderAccentColorsType, type BorderColorsDictionaryType, type BorderEmotionColorsType, type BorderRadiiTokenType, type BorderStylesDictionaryType, type BorderWidthsDictionaryType, type ChildrenProps, type SingleOrResponsive, type SpaceToken, type SpiritPolymorphicElementPropsWithRef, type StyleProps, type TextColorProps } from './shared'; export type BoxBackgroundColorsType = BackgroundColorsDictionaryType | BackgroundAccentColorsType | BackgroundEmotionColorsType | BackgroundNeutralColorsType; export interface BoxBaseProps extends ChildrenProps, TextColorProps, StyleProps { backgroundColor?: BoxBackgroundColorsType; backgroundGradient?: SingleOrResponsive; borderColor?: BorderAccentColorsType | BorderEmotionColorsType | BorderColorsDictionaryType; borderRadius?: SingleOrResponsive; borderStyle?: BorderStylesDictionaryType; borderWidth?: BorderWidthsDictionaryType; padding?: SingleOrResponsive; paddingX?: SingleOrResponsive; paddingY?: SingleOrResponsive; paddingTop?: SingleOrResponsive; paddingBottom?: SingleOrResponsive; paddingLeft?: SingleOrResponsive; paddingRight?: SingleOrResponsive; } export type BoxProps = { elementType?: E | JSXElementConstructor; } & BoxBaseProps; export type SpiritBoxProps = BoxProps & SpiritPolymorphicElementPropsWithRef>;