UNPKG

@atlaskit/icon

Version:

A React package that contains icons

18 lines (15 loc) 797 B
import _taggedTemplateLiteral from 'babel-runtime/helpers/taggedTemplateLiteral'; var _templateObject = _taggedTemplateLiteral(['\n width: ', ';\n height: ', ';\n display: inline-block;\n border-radius: 50%;\n background-color: ', ';\n opacity: ', ';\n'], ['\n width: ', ';\n height: ', ';\n display: inline-block;\n border-radius: 50%;\n background-color: ', ';\n opacity: ', ';\n']); import styled from 'styled-components'; import { sizes } from '../constants'; export default styled.div(_templateObject, function (props) { return sizes[props.size]; }, function (props) { return sizes[props.size]; }, function (_ref) { var color = _ref.color; return color || 'currentColor'; }, function (_ref2) { var weight = _ref2.weight; return weight === 'strong' ? 0.3 : 0.15; });