import { ComponentProps, ForwardRefExoticComponent } from 'react'; import { WithWhitespace } from '../Whitespace/utils'; import { Item } from './Item'; import { Box, PropsBox } from './Flex.styles'; import { WithMedia } from '../Utils/responsiveness'; export interface FlexBaseProps { direction?: PropsBox['$direction']; /** This sets display to inline-flex */ inline?: PropsBox['$inline']; /** This sets justify-content and align-items to 'center' */ center?: PropsBox['$center']; /** `space-evenly` are not supported by IE/ Edge */ justifyContent?: PropsBox['$justifyContent']; /** `space-evenly`, `baseline` and `stretch` are not supported by IE/Edge */ alignItems?: PropsBox['$alignItems']; alignContent?: PropsBox['$alignContent']; wrap?: PropsBox['$wrap']; /** This is a shorthand for <‘flex-direction’> || <‘flex-wrap’> */ flow?: PropsBox['$flow']; /** This sets spacing between the items inside the container */ gap?: PropsBox['$gap']; /** This sets the vertical spacing between the items inside the container */ rowGap?: PropsBox['$gap']; /** This sets the horizontal spacing between the items inside the container */ columnGap?: PropsBox['$gap']; flex?: PropsBox['$flex']; minHeight?: PropsBox['$minHeight']; minWidth?: PropsBox['$minWidth']; } export interface FlexProps extends FlexBaseProps, Omit, keyof PropsBox>, WithWhitespace, WithMedia { } export declare const Flex: ForwardRefExoticComponent & { Item: typeof Item; };