@chakra-v2/styled-system
Version:
Style function for css-in-js building component libraries
31 lines (28 loc) • 695 B
JavaScript
import { t } from '../utils/index.mjs';
import { transformFunctions } from '../utils/transform-functions.mjs';
const flexbox = {
alignItems: true,
alignContent: true,
justifyItems: true,
justifyContent: true,
flexWrap: true,
flexDirection: { transform: transformFunctions.flexDirection },
flex: true,
flexFlow: true,
flexGrow: true,
flexShrink: true,
flexBasis: t.sizes("flexBasis"),
justifySelf: true,
alignSelf: true,
order: true,
placeItems: true,
placeContent: true,
placeSelf: true,
gap: t.space("gap"),
rowGap: t.space("rowGap"),
columnGap: t.space("columnGap")
};
Object.assign(flexbox, {
flexDir: flexbox.flexDirection
});
export { flexbox };