UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

28 lines 1.95 kB
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; // REACT import * as React from 'react'; import classNames from 'classnames'; import { Scale, StyledIcon, DefaultColor, DefaultScale, } from '../utils'; /* eslint-disable max-len */ export const SadFace = React.forwardRef((_a, ref) => { var { color = DefaultColor, scale = DefaultScale, className } = _a, props = __rest(_a, ["color", "scale", "className"]); return (React.createElement(StyledIcon, Object.assign({ ref: ref, className: classNames('anchor-icon sad-face', className), scale: scale, "$color": color }, props), React.createElement("svg", { width: Scale[scale], height: Scale[scale], viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg" }, React.createElement("g", { fill: "none", fillRule: "evenodd" }, React.createElement("path", { d: "M0 0h16v16H0z" }), React.createElement("g", { transform: "translate(2 3)", fill: "currentColor" }, React.createElement("circle", { opacity: ".9", cx: "2.75", cy: "1.25", r: "1.25" }), React.createElement("circle", { opacity: ".9", cx: "9.25", cy: "1.25", r: "1.25" }), React.createElement("path", { d: "M11.5 9.264c0 .407-.344.736-.769.736-.424 0-.769-.33-.769-.736C9.962 7.17 8.188 5.472 6 5.472S2.038 7.17 2.038 9.264c0 .407-.345.736-.77.736C.845 10 .5 9.67.5 9.264.5 6.357 2.962 4 6 4s5.5 2.357 5.5 5.264z", fillRule: "nonzero" })))))); }); //# sourceMappingURL=SadFace.component.js.map