UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

25 lines 3.21 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 Cells = 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 cells', 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: "M1.455 2.909V1.454H2.91l.001 1.455H1.455zM2.91 0H1.455C.653 0 0 .652 0 1.454v1.455c0 .802.653 1.455 1.455 1.455H2.91c.802 0 1.454-.653 1.454-1.455V1.454C4.364.652 3.712 0 2.91 0zm4.363 2.909V1.454h1.455l.001 1.455H7.273zM8.728 0H7.273c-.802 0-1.455.652-1.455 1.454v1.455c0 .802.653 1.455 1.455 1.455h1.455c.802 0 1.454-.653 1.454-1.455V1.454C10.182.652 9.53 0 8.728 0zm4.364 2.909V1.454h1.454l.002 1.455h-1.456zM14.546 0h-1.454c-.802 0-1.455.652-1.455 1.454v1.455c0 .802.653 1.455 1.455 1.455h1.454c.802 0 1.455-.653 1.455-1.455V1.454C16 .652 15.348 0 14.546 0zM1.455 8.727V7.272H2.91l.001 1.455H1.455zm1.455-2.91H1.455C.653 5.818 0 6.472 0 7.273v1.455c0 .802.653 1.455 1.455 1.455H2.91c.802 0 1.454-.653 1.454-1.455V7.272c0-.801-.652-1.454-1.454-1.454zm4.363 2.91V7.272h1.455l.001 1.455H7.273zm1.455-2.91H7.273c-.802 0-1.455.654-1.455 1.455v1.455c0 .802.653 1.455 1.455 1.455h1.455c.802 0 1.454-.653 1.454-1.455V7.272c0-.801-.652-1.454-1.454-1.454zm4.364 2.91V7.272h1.454l.002 1.455h-1.456zm1.454-2.91h-1.454c-.802 0-1.455.654-1.455 1.455v1.455c0 .802.653 1.455 1.455 1.455h1.454c.802 0 1.455-.653 1.455-1.455V7.272c0-.801-.653-1.454-1.455-1.454zM1.455 14.546V13.09H2.91l.001 1.455H1.455zm1.455-2.909H1.455C.653 11.636 0 12.288 0 13.09v1.455C0 15.347.653 16 1.455 16H2.91c.802 0 1.454-.653 1.454-1.455V13.09c0-.802-.652-1.454-1.454-1.454zm4.363 2.91V13.09h1.455l.001 1.455H7.273zm1.455-2.91H7.273c-.802 0-1.455.652-1.455 1.454v1.455c0 .802.653 1.455 1.455 1.455h1.455c.802 0 1.454-.653 1.454-1.455V13.09c0-.802-.652-1.454-1.454-1.454zm4.364 2.91V13.09h1.454l.002 1.455h-1.456zm1.454-2.91h-1.454c-.802 0-1.455.652-1.455 1.454v1.455c0 .802.653 1.455 1.455 1.455h1.454c.802 0 1.455-.653 1.455-1.455V13.09c0-.802-.653-1.454-1.455-1.454z", id: "cells-a" })), React.createElement("use", { fill: "currentColor", xlinkHref: "#cells-a", fillRule: "evenodd" })))); }); //# sourceMappingURL=Cells.component.js.map