@retailmenot/anchor
Version:
A React UI Library by RetailMeNot
25 lines • 1.91 kB
JavaScript
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 Map = 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 map', 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: "currentColor", fillRule: "nonzero" },
React.createElement("path", { d: "M1 1.353V12.67l4.785 2.316 4.255-2.374a1.898 1.898 0 0 1 1.66-.093l3.3 1.385V2.717L10.685 1.01l-4.14 1.803c-.445.194-.948.21-1.405.044L1 1.353zm-1-.145A.898.898 0 0 1 1.205.364l4.277 1.552a.898.898 0 0 0 .665-.021l4.177-1.82a.898.898 0 0 1 .69-.011l4.418 1.75a.898.898 0 0 1 .568.834v11.41a.898.898 0 0 1-1.246.828l-3.442-1.445a.898.898 0 0 0-.785.044l-4.3 2.4a.898.898 0 0 1-.83.024l-4.89-2.366A.898.898 0 0 1 0 12.734V1.208z" }),
React.createElement("path", { d: "M5 3a.5.5 0 0 1 1 0v12a.5.5 0 1 1-1 0V3zM10 1a.5.5 0 1 1 1 0v11.5a.5.5 0 1 1-1 0V1z" })))));
});
//# sourceMappingURL=Map.component.js.map