UNPKG

@fluentui/react-northstar

Version:
35 lines (34 loc) 950 B
import { getSizeStyles, statusIconSizeToPxValue } from './avatarSizes'; export var avatarStatusIconStyles = { root: function root(_ref) { var _ref$props = _ref.props, size = _ref$props.size, state = _ref$props.state, v = _ref.variables; return Object.assign({ display: 'inline-flex', alignItems: 'center', justifyContent: 'center' }, getSizeStyles(statusIconSizeToPxValue[size]), { color: v.statusColor }, state === 'success' && { color: v.statusSuccessColor }, state === 'info' && { color: v.statusInfoColor }, state === 'error' && { color: v.statusErrorColor }, state === 'warning' && { color: v.statusWarningColor }, { '& > :first-child': { height: '100%', width: '100%', '& svg': { height: '100%', width: '100%' } } }); } }; //# sourceMappingURL=avatarStatusIconStyles.js.map