@activecollab/components
Version:
ActiveCollab Components
68 lines (67 loc) • 2.9 kB
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["gradient"];
import React, { useState } from "react";
import { GradientDefs } from "../../GradientDefs";
let maskUid = 0;
/**
* @component GearFailedIcon
* @description
* Outline gear/cog glyph with a cutout in the lower-right corner holding an X
* badge — used to signify a failed settings/configuration action. The cutout
* separates the X from the gear outline.
*
* @prop {string} [gradient] - Optional CSS linear-gradient string applied to the stroke.
*
* @see https://design.activecollab.com/docs/foundations/icons
*/
const GearFailedIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
let gradient = _ref.gradient,
props = _objectWithoutPropertiesLoose(_ref, _excluded);
const _useState = useState(() => "gear-failed-cut-" + ++maskUid),
maskId = _useState[0];
return /*#__PURE__*/React.createElement("svg", _extends({
xmlns: "http://www.w3.org/2000/svg",
width: 24,
height: 24,
viewBox: "0 0 24 24",
"data-testid": "GearFailedIcon",
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("defs", null, /*#__PURE__*/React.createElement("mask", {
id: maskId
}, /*#__PURE__*/React.createElement("rect", {
x: 0,
y: 0,
width: 24,
height: 24,
fill: "#fff",
stroke: "none"
}), /*#__PURE__*/React.createElement("circle", {
cx: 17.5,
cy: 17.5,
r: 5.5,
fill: "#000",
stroke: "none"
}))), /*#__PURE__*/React.createElement("g", {
mask: "url(#" + maskId + ")"
}, /*#__PURE__*/React.createElement("path", {
d: "M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"
}), /*#__PURE__*/React.createElement("path", {
d: "M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"
})), /*#__PURE__*/React.createElement("path", {
d: "M15 15l5 5"
}), /*#__PURE__*/React.createElement("path", {
d: "M20 15l-5 5"
}));
});
GearFailedIcon.displayName = "GearFailedIcon";
export default GearFailedIcon;
//# sourceMappingURL=GearFailed.js.map