UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

27 lines 2.12 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 Upload = 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 upload', 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: "M12.333 5.334C13.252 5.334 14 6.081 14 7v7.334c0 .92-.748 1.666-1.667 1.666H3.666A1.667 1.667 0 0 1 2 14.334V7c0-.919.747-1.666 1.666-1.666h1.667a.667.667 0 1 1 0 1.333H3.666A.333.333 0 0 0 3.333 7v7.334c0 .184.149.333.333.333h8.667a.333.333 0 0 0 .333-.333V7a.333.333 0 0 0-.333-.333h-1.667a.667.667 0 0 1 0-1.333h1.667zM5.804 3.805a.666.666 0 1 1-.943-.942L7.528.196a.666.666 0 0 1 .943 0l2.666 2.667a.665.665 0 0 1 0 .942.665.665 0 0 1-.942 0L8.666 2.277v7.057a.666.666 0 1 1-1.333 0V2.277L5.804 3.805z", id: "upload-a" })), React.createElement("g", { fill: "none", fillRule: "evenodd" }, React.createElement("path", { d: "M0 0h16v16H0z" }), React.createElement("use", { fill: "currentColor", xlinkHref: "#upload-a" }))))); }); //# sourceMappingURL=Upload.component.js.map