pchl/styled-system/patterns/flex.d.ts

21 lines
664 B
TypeScript

import type { SystemStyleObject, ConditionalValue } from '../types'
import type { PropertyValue } from '../types/prop-type'
import type { Properties } from '../types/csstype'
import type { Tokens } from '../tokens'
export type FlexProperties = {
align?: PropertyValue<'alignItems'>
justify?: PropertyValue<'justifyContent'>
direction?: PropertyValue<'flexDirection'>
wrap?: PropertyValue<'flexWrap'>
basis?: PropertyValue<'flexBasis'>
grow?: PropertyValue<'flexGrow'>
shrink?: PropertyValue<'flexShrink'>
}
type FlexOptions = FlexProperties & Omit<SystemStyleObject, keyof FlexProperties >
export declare function flex(options?: FlexOptions): string