UNPKG

@fluentui/react-northstar

Version:
29 lines (27 loc) 815 B
"use strict"; exports.__esModule = true; exports.flexItemStyles = void 0; var _utils = require("./utils"); var flexItemStyles = { root: function root(_ref) { var p = _ref.props, v = _ref.variables; return Object.assign({}, p.align && { alignSelf: (0, _utils.toFlexAlignment)(p.align) }, p.size && (0, _utils.toFlexItemSizeValues)(v.hasOwnProperty(p.size) ? v[p.size] : p.size), typeof p.shrink === 'number' && { flexShrink: p.shrink }, p.shrink === false && { flexShrink: 0 }, p.grow && { flexGrow: p.grow }, p.grow === true && { flexGrow: 1 }, p.push && (p.flexDirection === 'column' ? { marginTop: 'auto' } : { marginLeft: 'auto' })); } }; exports.flexItemStyles = flexItemStyles; //# sourceMappingURL=flexItemStyles.js.map