import { CSSProperties, HTMLAttributes, ReactNode } from 'react'; import { StyleProp, TGrow, TSpacing, TWidthHeight } from '../../types'; export interface IFlexProps extends Pick, 'id' | 'style' | 'onClick'> { /** * the content to render inside the Flex container */ children: ReactNode | JSX.Element; /** * the items alignment of the Flex container * @default flex-start * @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items */ align?: StyleProp; /** * the items alignment of the Flex container * @default flex-start * @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content */ justify?: StyleProp; /** * the wrap of the Flex container * @default nowrap * @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap */ wrap?: StyleProp; /** * the gap between the Flex items */ spacing?: StyleProp; /** * the gap between the Flex items */ xSpacing?: StyleProp; /** * the gap between the Flex items */ ySpacing?: StyleProp; /** * the direction of the Flex container * @default row * @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction */ direction?: StyleProp; /** * set the maxWidth of the Flex, if not set it will be 'auto'. * @default auto * @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-width */ maxWidth?: StyleProp; /** * set the maxWidth of the Flex, if not set it will be 'auto'. * @default auto * @see https://developer.mozilla.org/en-US/docs/Web/CSS/width */ width?: StyleProp; /** * set the minWidth of the Flex, if not set it will be 'auto'. * @default auto * @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-width */ minWidth?: StyleProp; /** * set the minHeight of the Flex, if not set it will be 'auto'. * @default auto * @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-height */ minHeight?: StyleProp; /** * set the maxHeight of the Flex, if not set it will be 'auto'. * @default auto * @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-height */ maxHeight?: StyleProp; /** * set the height of the Flex, if not set it will be 'auto'. * @default auto * @see https://developer.mozilla.org/en-US/docs/Web/CSS/height */ height?: StyleProp; /** * set the grow of the Flex, if not set it will be 0. * @default 0 * @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow */ grow?: StyleProp; /** * set the shrink of the Flex, if not set it will be 1. * @default 1 * @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink */ shrink?: StyleProp; } //# sourceMappingURL=types.d.ts.map