@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
76 lines • 2.93 kB
TypeScript
import { Property, Globals } from 'csstype';
import { StyleFnConfig } from './buildStyleFns';
import { SystemPropValues } from './systemProps';
/** style props to for CSS flexbox container properties
* @deprecated
*/
export type FlexStyleProps = {
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
* @deprecated
*/
alignItems?: Property.AlignItems;
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
* @deprecated
*/
alignContent?: Property.AlignContent;
/**
* - sets [CSS display property](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
* - @default 'flex'
* @deprecated
*/
display?: 'flex' | 'inline-flex' | 'none' | Globals | (string & {});
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
* @deprecated
*/
justifyItems?: Property.JustifyItems;
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
* @deprecated
*/
justifyContent?: Property.JustifyContent;
/** sets [CSS flex-wrap property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap)
* @deprecated
*/
flexWrap?: Property.FlexWrap;
/** sets [CSS flex-direction property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction)
* @deprecated
*/
flexDirection?: Property.FlexDirection;
/**
* - sets [CSS gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/gap)
* - system tokens: `space`
* @deprecated
*/
gap?: SystemPropValues['space'];
/**
* - sets [CSS column-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap)
* - system tokens: `space`
* @deprecated
*/
columnGap?: SystemPropValues['space'];
/**
* - sets [CSS row-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap)
* - system tokens: `space`
* @deprecated
*/
rowGap?: SystemPropValues['space'];
};
/** @deprecated */
export declare const flexStyleFnConfigs: StyleFnConfig[];
/** @deprecated */
export declare const flexStyleFns: import("./buildStyleFns").StyleFns;
/**
* A style prop function that takes component props and returns flexbox styles.
* If no `FlexStyleProps` are found, it returns an empty object.
*
* @example
* ```tsx
* const FlexExample = () => (
* <Flex justifyContent="center" alignItems="center">
* Hello, flex!
* </Flex>
* );
* ```
* @deprecated ⚠️ `flex` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs
*/
export declare const flex: (props: FlexStyleProps) => {};
//# sourceMappingURL=flex.d.ts.map