@activecollab/components
Version:
ActiveCollab Components
57 lines (56 loc) • 2.32 kB
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["gradient"];
import React from "react";
import { GradientDefs } from "../../GradientDefs";
/**
* @component GitPullRequestClosedIcon
* @description
* Outline git pull-request glyph for a closed (unmerged) pull request.
* The left branch matches GitPullRequestIcon (two nodes and a connecting line).
* On the right, the incoming branch is shown as two evenly spaced dots leading
* up to an X node, signifying that the pull request was closed without merging.
*
* @prop {string} [gradient] - Optional CSS linear-gradient string applied to the stroke.
*
* @see https://design.activecollab.com/docs/foundations/icons
*/
const GitPullRequestClosedIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
let gradient = _ref.gradient,
props = _objectWithoutPropertiesLoose(_ref, _excluded);
return /*#__PURE__*/React.createElement("svg", _extends({
xmlns: "http://www.w3.org/2000/svg",
width: 24,
height: 24,
viewBox: "0 0 24 24",
"data-testid": "GitPullRequestClosedIcon",
fill: "none",
stroke: gradient ? "url(#icon-gradient)" : props != null && props.stroke ? props.stroke : "var(--color-theme-600)",
strokeWidth: 2,
strokeLinecap: "round",
strokeLinejoin: "round",
focusable: false,
ref: ref
}, props), /*#__PURE__*/React.createElement(GradientDefs, {
gradient: gradient
}), /*#__PURE__*/React.createElement("path", {
d: "M7 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"
}), /*#__PURE__*/React.createElement("path", {
d: "M7 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"
}), /*#__PURE__*/React.createElement("path", {
d: "M7 8v8"
}), /*#__PURE__*/React.createElement("path", {
d: "M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"
}), /*#__PURE__*/React.createElement("path", {
d: "M17 13.5v0"
}), /*#__PURE__*/React.createElement("path", {
d: "M17 10.5v0"
}), /*#__PURE__*/React.createElement("path", {
d: "M15 4l4 4"
}), /*#__PURE__*/React.createElement("path", {
d: "M19 4l-4 4"
}));
});
GitPullRequestClosedIcon.displayName = "GitPullRequestClosedIcon";
export default GitPullRequestClosedIcon;
//# sourceMappingURL=GitPullRequestClosed.js.map