UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

27 lines 2.13 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 MarkerOutline = 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 marker-outline', 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: "M8 14.419C6.762 13.211 3.334 9.546 3.334 6A4.672 4.672 0 0 1 8 1.334 4.672 4.672 0 0 1 12.667 6c0 3.546-3.429 7.211-4.667 8.419M8 0C4.691 0 2 2.692 2 6c0 4.913 5.334 9.636 5.562 9.835a.664.664 0 0 0 .877 0C8.666 15.636 14 10.913 14 6c0-3.308-2.691-6-6-6m0 7.333A1.335 1.335 0 0 1 6.667 6c0-.736.599-1.333 1.333-1.333.735 0 1.334.598 1.334 1.333 0 .736-.599 1.333-1.334 1.333m0-4A2.669 2.669 0 0 0 5.334 6 2.668 2.668 0 0 0 8 8.666 2.67 2.67 0 0 0 10.667 6 2.67 2.67 0 0 0 8 3.333", id: "marker-outline-a" })), React.createElement("g", { fill: "none", fillRule: "evenodd" }, React.createElement("path", { d: "M0 0h16v16H0z" }), React.createElement("use", { fill: "currentColor", xlinkHref: "#marker-outline-a" }))))); }); //# sourceMappingURL=MarkerOutline.component.js.map