UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

34 lines (33 loc) 1.61 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "closeCircleFilled"; const CloseCircleFilledIcon = ({ color, size = 24, contained = false, className })=>{ const computedClassName = classnames(className, `cobalt-Icon cobalt-Icon--${iconSource}`, { [`c-fill-${camelize(color || "")}`]: color, "cobalt-Icon--size16": 16 === size, "cobalt-Icon--size20": 20 === size, "cobalt-Icon--size32": 32 === size, "cobalt-Icon--contained": contained }); return /*#__PURE__*/ jsx("span", { className: computedClassName, children: /*#__PURE__*/ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: [ /*#__PURE__*/ jsx("title", { children: iconSource }), /*#__PURE__*/ jsx("path", { fillRule: "evenodd", d: "M12 1.5C17.799 1.5 22.5 6.201 22.5 12 22.5 17.255 18.64 21.61 13.599 22.38Q13.078 22.457 12.54 22.485 12.272 22.5 12 22.5C6.201 22.5 1.5 17.799 1.5 12S6.201 1.5 12 1.5M12 10.674 8.163 6.837 6.837 8.163 10.674 12 6.837 15.837 8.163 17.163 12 13.326 15.837 17.163 17.163 15.837 13.326 12 17.163 8.163 15.837 6.837z", clipRule: "evenodd" }) ] }) }); }; const _generated_CloseCircleFilledIcon = CloseCircleFilledIcon; export default _generated_CloseCircleFilledIcon; //# sourceMappingURL=CloseCircleFilledIcon.js.map