@pluralsight/ps-design-system-icon
Version:
Design System component for icon ui
37 lines • 2.1 kB
JavaScript
// This file is generated by running the "icons" bin script.
// Manual changes might be lost - proceed with caution!
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
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;
};
import React, { forwardRef } from 'react';
import Icon from '..';
var PencilIcon = forwardRef(function (props, ref) {
var ariaLabel = props["aria-label"], rest = __rest(props, ['aria-label']);
return (React.createElement(Icon, __assign({}, rest, { ref: ref }),
React.createElement("svg", __assign({ "aria-label": "pencil icon", viewBox: "0 0 24 24", role: 'img' }, (ariaLabel && { 'aria-label': ariaLabel })),
React.createElement("path", { d: "M5.276 15.862 5 19l3.14-.275 8.085-8.086-2.863-2.863-8.086 8.086zM17.64 9.225l.767-.767a2 2 0 0 0 .592-1.431 2 2 0 0 0-.593-1.433 1.996 1.996 0 0 0-1.43-.591c-.545 0-1.048.208-1.433.593l-.766.766 2.863 2.863zm-.665-6.222c1.076 0 2.086.418 2.845 1.177A3.997 3.997 0 0 1 21 7.027a4 4 0 0 1-1.179 2.846L9.411 20.282a.995.995 0 0 1-.464.263l-4.705.427a1.002 1.002 0 0 1-1.213-1.213l.427-4.704a.998.998 0 0 1 .263-.464L14.13 4.18a3.997 3.997 0 0 1 2.845-1.179z" }))));
});
PencilIcon.displayName = "PencilIcon";
PencilIcon.colors = Icon.colors;
PencilIcon.sizes = Icon.sizes;
export { PencilIcon };
//# sourceMappingURL=Pencil.dist.js.map