UNPKG

@fluentui/react-northstar

Version:
36 lines (35 loc) 1.17 kB
import { getSizeStyles, statusSizeToPxValue } from './avatarSizes'; export var avatarStatusStyles = { root: function root(_ref) { var _ref$props = _ref.props, color = _ref$props.color, size = _ref$props.size, state = _ref$props.state, v = _ref.variables; return Object.assign({ display: 'inline-flex', alignItems: 'center', justifyContent: 'center' }, getSizeStyles(statusSizeToPxValue[size]), { verticalAlign: 'middle', borderRadius: '9999px', position: 'absolute', bottom: 0, right: 0, boxShadow: "0 0 0 " + v.statusBorderWidth + " " + v.statusBorderColor }, state === 'success' && { backgroundColor: v.statusSuccessBackgroundColor }, state === 'info' && { backgroundColor: v.statusInfoBackgroundColor }, state === 'warning' && { backgroundColor: v.statusWarningBackgroundColor }, state === 'error' && { backgroundColor: v.statusErrorBackgroundColor }, state === 'unknown' && { backgroundColor: v.statusBackgroundColor }, !!color && { backgroundColor: color }); } }; //# sourceMappingURL=avatarStatusStyles.js.map