@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
37 lines (36 loc) • 1.8 kB
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import classnames from "classnames";
import { camelize } from "../../utils/index.js";
const iconSource = "number2Circle";
const Number2CircleIcon = ({ 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", {
d: "M11.99 6.35C13.79 6.35 15.35 7.7 15.35 9.59 15.35 10.865 14.705 11.795 14 12.605L11.765 15.2H15.425V17H8.6V15.8L12.29 11.615C13.1 10.7 13.325 10.1 13.325 9.56 13.325 8.825 12.755 8.15 11.96 8.15 11.255 8.15 10.745 8.63 10.535 9.335L8.675 8.78C9.125 7.34 10.445 6.35 11.99 6.35"
}),
/*#__PURE__*/ jsx("path", {
fillRule: "evenodd",
d: "M12 1.5C17.799 1.5 22.5 6.201 22.5 12S17.799 22.5 12 22.5 1.5 17.799 1.5 12 6.201 1.5 12 1.5M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21 21 16.97 21 12 16.97 3 12 3",
clipRule: "evenodd"
})
]
})
});
};
const _generated_Number2CircleIcon = Number2CircleIcon;
export default _generated_Number2CircleIcon;
//# sourceMappingURL=Number2CircleIcon.js.map