import * as StyledSystem from "styled-system"; import * as Emotion from "@emotion/styled"; import * as React from "react"; import * as CSS from "csstype"; interface ICustomConfig { // Border radius shorthand rounded?: StyledSystem.BorderRadiusProps; roundedTop?: StyledSystem.BorderRadiusProps; roundedBottom?: StyledSystem.BorderRadiusProps; roundedLeft?: StyledSystem.BorderRadiusProps; roundedRight?: StyledSystem.BorderRadiusProps; roundedTopRight?: StyledSystem.BorderRadiusProps; roundedTopLeft?: StyledSystem.BorderRadiusProps; roundedBottomRight?: StyledSystem.BorderRadiusProps; roundedBottomLeft?: StyledSystem.BorderRadiusProps; // Custom border color borderBottomColor?: StyledSystem.BorderColorProps; borderTopColor?: StyledSystem.BorderColorProps; borderRightColor?: StyledSystem.BorderColorProps; borderLeftColor?: StyledSystem.BorderColorProps; // CSS properties textDecoration?: StyledSystem.ResponsiveValue; textTransform?: StyledSystem.ResponsiveValue; overflowX?: StyledSystem.ResponsiveValue; overflowY?: StyledSystem.ResponsiveValue; appearance?: StyledSystem.ResponsiveValue; transform?: StyledSystem.ResponsiveValue; transformOrigin?: StyledSystem.ResponsiveValue< CSS.TransformOriginProperty >; whiteSpace?: StyledSystem.ResponsiveValue; animation?: StyledSystem.ResponsiveValue; userSelect?: StyledSystem.ResponsiveValue; pointerEvents?: StyledSystem.ResponsiveValue; boxSizing?: StyledSystem.ResponsiveValue; cursor?: StyledSystem.ResponsiveValue; resize?: StyledSystem.ResponsiveValue; transition?: StyledSystem.ResponsiveValue; objectFit?: StyledSystem.ResponsiveValue; objectPosition?: StyledSystem.ResponsiveValue< CSS.ObjectPositionProperty >; backgroundAttachment?: StyledSystem.ResponsiveValue< CSS.BackgroundAttachmentProperty >; bgAttachment?: StyledSystem.ResponsiveValue; // SVG color properties fill?: StyledSystem.ColorProps; stroke?: StyledSystem.ColorProps; } interface FontSizeProps { fontSize: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl"; } interface FontWeightProps { fontWeight?: | "hairline" | "thin" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black"; } interface LineHeightProps { lineHeight: "none" | "shorter" | "short" | "normal" | "tall" | "taller"; } interface LetterSpacingProps { letterSpacing: "tighter" | "tight" | "normal" | "wide" | "wider" | "widest"; } export type BoxProps = React.AriaAttributes & React.RefAttributes & React.HTMLAttributes & StyledSystem.LayoutProps & StyledSystem.ColorProps & StyledSystem.SpaceProps & StyledSystem.BordersProps & StyledSystem.BackgroundProps & StyledSystem.PositionProps & StyledSystem.FlexboxProps & StyledSystem.ShadowProps & StyledSystem.OpacityProps & StyledSystem.TypographyProps & FontSizeProps & LetterSpacingProps & LineHeightProps & ICustomConfig & { wordBreak: "normal" | "words" | "all" | "truncate"; as: React.ReactType; }; declare const Box: Emotion.StyledComponent; export default Box;