UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

27 lines 2 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 PlusSmall = 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 plus-small', 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: "M7.835 10.288h-.4V5.443c0-.32.225-.615.564-.615.34-.001.566.295.566.615v4.845c0 .319-.225.615-.498.61l-.068.005c-.339 0-.564-.296-.564-.615h.4z" }), React.createElement("path", { d: "M10.422 8.43H5.578c-.32 0-.616-.225-.615-.533v-.033c0-.338.296-.564.615-.564h4.844c.32 0 .616.226.615.534v.033c0 .338-.295.563-.614.563v-.4.07H5.577c.082 0 .184-.077.183-.267l.001.033c0-.158-.102-.236-.184-.236h4.844v.4-.4c-.082 0-.184.078-.183.267l-.001-.034c0 .16.102.238.184.237v.33z" })))))); }); //# sourceMappingURL=PlusSmall.component.js.map