UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

27 lines 2 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 Envelope = 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 envelope', 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", { fill: "currentColor", fillRule: "nonzero" }, React.createElement("path", { d: "M3.333 3.933a.733.733 0 0 0-.733.734v6.666c0 .405.328.734.733.734h9.334a.733.733 0 0 0 .733-.734V4.667a.733.733 0 0 0-.733-.734H3.333zm0-1.2h9.334c1.067 0 1.933.866 1.933 1.934v6.666a1.933 1.933 0 0 1-1.933 1.934H3.333A1.933 1.933 0 0 1 1.4 11.333V4.667c0-1.068.866-1.934 1.933-1.934z" }), React.createElement("path", { d: "M2.242 5.09a.6.6 0 1 1 .849-.848l4.39 4.39a.733.733 0 0 0 1.038 0l4.39-4.39a.6.6 0 1 1 .849.849l-4.39 4.39a1.933 1.933 0 0 1-2.735 0l-4.39-4.39z" })))))); }); //# sourceMappingURL=Envelope.component.js.map