UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

27 lines 2.09 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 Download = 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 download', 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: "M10.395 11.85a.727.727 0 1 1 1.028 1.028l-2.908 2.91A.724.724 0 0 1 8 16a.724.724 0 0 1-.514-.212l-2.91-2.91a.727.727 0 1 1 1.029-1.028l1.668 1.668v-7.7a.726.726 0 1 1 1.455 0v7.7l1.667-1.668zM12.182 0A1.82 1.82 0 0 1 14 1.818v6.573a1.82 1.82 0 0 1-1.818 1.818h-2.121V8.754h2.121c.2 0 .363-.163.363-.363V1.818c0-.2-.163-.363-.363-.363H3.818c-.2 0-.364.163-.364.363v6.573c0 .2.164.363.364.363H5.94v1.455H3.818A1.82 1.82 0 0 1 2 8.391V1.818A1.82 1.82 0 0 1 3.818 0h8.364z", id: "download-a" })), React.createElement("g", { fill: "none", fillRule: "evenodd" }, React.createElement("path", { d: "M0 0h16v16H0z" }), React.createElement("use", { fill: "currentColor", xlinkHref: "#download-a" }))))); }); //# sourceMappingURL=Download.component.js.map