UNPKG

@activecollab/components

Version:

ActiveCollab Components

57 lines (56 loc) 2.77 kB
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 SparkIcon * @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 ( * <SparkIcon gradient="linear-gradient(135deg, #4da2ed, #f72222)" /> * ) * * @example * return ( * <SparkIcon className="mr-2" /> * ) * * @see * https://system.activecollab.com/?path=/story/foundation-icons-icons--icons * @see * https://design.activecollab.com/docs/foundations/icons */ const SparkIcon = /*#__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": "SparkIcon", 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: "M11.616 3.523c.082-.232.442-.232.524 0a15.2 15.2 0 0 0 3.574 5.643 15.2 15.2 0 0 0 5.428 3.498l.212.078c.231.082.232.44 0 .522l-.212.077a15.2 15.2 0 0 0-5.428 3.497 15.3 15.3 0 0 0-3.363 5.081l-.132.346-.077.212-.019.041c-.1.177-.385.177-.485 0l-.019-.04-.078-.213-.134-.346a15.3 15.3 0 0 0-3.365-5.08 15.3 15.3 0 0 0-5.284-3.446l-.358-.13c-.232-.082-.232-.443 0-.524a15.2 15.2 0 0 0 5.642-3.573 15.2 15.2 0 0 0 3.574-5.643m.262 4.017a17.4 17.4 0 0 1-2.421 3.04A17.3 17.3 0 0 1 6.415 13a17.4 17.4 0 0 1 3.041 2.424 17.4 17.4 0 0 1 2.423 3.04 17.3 17.3 0 0 1 2.42-3.04 17.4 17.4 0 0 1 3.04-2.422 17.4 17.4 0 0 1-3.04-2.422 17.4 17.4 0 0 1-2.421-3.04", clipRule: "evenodd" }), /*#__PURE__*/React.createElement("path", { d: "M19.707 2.103c.037-.094.19-.094.226 0A4.2 4.2 0 0 0 22.31 4.48c.094.037.094.19 0 .227a4.2 4.2 0 0 0-2.377 2.376c-.036.094-.189.094-.225 0a4.2 4.2 0 0 0-2.377-2.376c-.094-.037-.094-.19 0-.227a4.19 4.19 0 0 0 2.376-2.377" })); }); SparkIcon.displayName = "SparkIcon"; export default SparkIcon; //# sourceMappingURL=Spark.js.map