UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

27 lines 2.14 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 Lightning = 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 lightning', 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", xmlnsXlink: "http://www.w3.org/1999/xlink" }, React.createElement("defs", null, React.createElement("path", { d: "M11.719 8.33a.357.357 0 0 0 .105-.255c0-.19-.142-.344-.317-.344H8.918c-.402 0-.686-.43-.556-.844L9.8 2.292 4.28 7.67a.357.357 0 0 0-.105.255c0 .19.142.344.317.344h2.589c.402 0 .686.43.556.844L6.2 13.708 11.72 8.33zm-.212-1.876c.825 0 1.493.726 1.493 1.62 0 .46-.18.899-.495 1.206l-6.677 6.506a.727.727 0 0 1-1.086-.063.889.889 0 0 1-.156-.826l1.675-5.351H4.493C3.668 9.546 3 8.82 3 7.926c0-.46.18-.899.495-1.206L10.172.214a.727.727 0 0 1 1.086.063c.185.225.245.54.156.826L9.739 6.454h1.768z", id: "lightning-a" })), React.createElement("g", { fill: "none", fillRule: "evenodd" }, React.createElement("path", { d: "M0 0h16v16H0z" }), React.createElement("use", { fill: "currentColor", fillRule: "nonzero", xlinkHref: "#lightning-a" }))))); }); //# sourceMappingURL=Lightning.component.js.map