@activecollab/components
Version:
ActiveCollab Components
54 lines (53 loc) • 2.49 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 AssignIcon
* @description
*
* The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
* The Icon component is
* customizable, allowing for variations in size, color, and style to fit the needs of the application.
*
* @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.
* Format: "linear-gradient(<angle>deg, <color1>, <color2>, ...)"
*
* @example
* return (
* <AssignIcon gradient="linear-gradient(135deg, #4da2ed, #f72222)" />
* )
*
* @example
* return (
* <AssignIcon className="mr-2" />
* )
*
* @see
* https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
* @see
* https://design.activecollab.com/docs/foundations/icons
*/
const AssignIcon = /*#__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": "AssignIcon",
fill: gradient ? "url(#icon-gradient)" : props != null && props.fill ? props.fill : "var(--color-theme-600)",
focusable: false,
ref: ref
}, props), /*#__PURE__*/React.createElement(GradientDefs, {
gradient: gradient
}), /*#__PURE__*/React.createElement("path", {
fillRule: "evenodd",
d: "M12 2q1.029.002 2.001.2v2.052a8 8 0 0 0-7.86 13.195 4 4 0 0 1 1.981-1.05A19.3 19.3 0 0 1 12 16q1.938 0 3.877.398c.76.156 1.444.525 1.983 1.048A7.97 7.97 0 0 0 20 12c0-.69-.087-1.36-.252-2H21.8q.198.97.2 2a9.97 9.97 0 0 1-3.073 7.212l-.001.001-.056.053a10 10 0 0 1-1.61 1.24A9.95 9.95 0 0 1 12 22a9.95 9.95 0 0 1-4.951-1.31l-.31-.184-.02-.013a10 10 0 0 1-1.634-1.27l-.012-.01A9.97 9.97 0 0 1 2 12C2 6.477 6.477 2 12 2m0 16q-1.735 0-3.476.357a2 2 0 0 0-.831.385A7.96 7.96 0 0 0 12 20a7.96 7.96 0 0 0 4.307-1.257 2 2 0 0 0-.832-.386A17.3 17.3 0 0 0 12 18m0-11a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8-7v2h2v2h-2v2h-2V5.999L16 6V4l2-.001V2z"
}));
});
AssignIcon.displayName = "AssignIcon";
export default AssignIcon;
//# sourceMappingURL=Assign.js.map