UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

26 lines 1.92 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 Cart = 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 cart', 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: "none", fillRule: "evenodd" }, React.createElement("path", { d: "M0 0h16v16H0z" }), React.createElement("g", { fill: "currentColor", fillRule: "nonzero" }, React.createElement("path", { d: "M6.889 14.667a1.111 1.111 0 1 1 0-2.223 1.111 1.111 0 0 1 0 2.223zM11.331 14.667a1.111 1.111 0 1 1 0-2.223 1.111 1.111 0 0 1 0 2.223zM4.216 2.681h9.71a.874.874 0 0 1 .853 1.064L13.626 8.93a.874.874 0 0 1-.854.685h-7.49l.187 1.215h7.346a.504.504 0 1 1 0 1.007H5.037a.504.504 0 0 1-.498-.427L3.123 2.207h-1.42a.504.504 0 1 1 0-1.007h1.853c.248 0 .46.181.497.427l.163 1.054zm.913 5.926h7.537l1.093-4.918H4.372l.757 4.918z" })))))); }); //# sourceMappingURL=Cart.component.js.map