import type { AsElementType, OtherHTMLAttributes, Renderable } from '@instructure/shared-types'; import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion'; import type { NewComponentTypes } from '@instructure/ui-themes'; type FlexOwnProps = { /** * It's recommended that you use `Flex.Item` for children, but you can also * pass any markup or a function returning markup. * * Note that if you do not use `Flex.Item`, the `withVisualDebug` and * `direction` props will not automatically be set on the children. */ children?: Renderable; /** * the element type to render as */ as?: AsElementType; /** * provides a reference to the underlying html root element */ elementRef?: (element: Element | null) => void; /** * Sets the height of the component's container (optional) */ height?: string | number; /** * Sets the width of the component's container (optional) */ width?: string | number; /** * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`, * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via * familiar CSS-like shorthand. For example: `margin="small auto large"`. */ margin?: Spacing; /** * Valid values are `0`, `none`, `auto`, and Spacing token values, * see https://instructure.design/layout-spacing. Apply these values via * familiar CSS-like shorthand. For example, `gap="small auto large"`. */ gap?: Spacing; /** * Valid values are `0`, `none`, `xxx-small`, `xx-small`, `x-small`, * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via * familiar CSS-like shorthand. For example: `padding="small x-large large"`. */ padding?: Spacing; /** * Sets the CSS display rule for the component's container */ display?: 'flex' | 'inline-flex'; /** * Designates the text alignment */ textAlign?: 'start' | 'center' | 'end'; /** * Sets the flex-direction to row (horizontal) or column (vertical) */ direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse'; /** * Aligns Flex.Items on the vertical axis (horizontal if direction is column) */ alignItems?: 'center' | 'start' | 'end' | 'stretch'; /** * Aligns Flex.Items on the horizontal axis (vertical if direction is column) */ justifyItems?: 'center' | 'start' | 'end' | 'space-around' | 'space-between'; /** * Determines if the Flex.Items should wrap when they exceed their container's width */ wrap?: 'wrap' | 'no-wrap' | 'wrap-reverse'; /** * Activate a dotted outline around the component to make building your * layout easier */ withVisualDebug?: boolean; }; type PropKeys = keyof FlexOwnProps; type AllowedPropKeys = Readonly>; type FlexProps = FlexOwnProps & WithStyleProps, FlexStyle> & OtherHTMLAttributes; type FlexStyle = ComponentStyle<'flex'>; declare const allowedProps: AllowedPropKeys; export type { FlexProps, FlexStyle }; export { allowedProps }; //# sourceMappingURL=props.d.ts.map