@retailmenot/anchor
Version:
A React UI Library by RetailMeNot
27 lines • 1.91 kB
JavaScript
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 Pencil = 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 pencil', 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: "M11.224 6.792L9.208 4.785l1.14-1.134 1.995 2.02-1.119 1.121zM5.37 12.667H3.333v-2.083l4.893-4.853 2.032 2.025-4.888 4.911zm8.43-7.492l-2.987-2.974a.67.67 0 0 0-.957 0L2.192 9.818a.678.678 0 0 0-.192.484v2.973c0 .376.283.725.667.725h2.988a.713.713 0 0 0 .485-.222l7.66-7.63a.69.69 0 0 0 0-.973z", id: "pencil-a" })),
React.createElement("g", { fill: "none", fillRule: "evenodd" },
React.createElement("path", { d: "M0 0h16v16H0z" }),
React.createElement("use", { fill: "currentColor", xlinkHref: "#pencil-a" })))));
});
//# sourceMappingURL=Pencil.component.js.map