@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
22 lines (19 loc) • 1.23 kB
JavaScript
import React from 'react';
import camelize from '../../utils/camelize.js';
import 'lodash.throttle';
import cx from 'classnames';
const iconSource = "checkCircleFilled";
const CheckCircleFilledIcon = ({ color, size = 24, contained = false, className, }) => {
const computedClassName = cx(className, `cobalt-Icon cobalt-Icon--${iconSource}`, {
[`c-fill-${camelize(color || "")}`]: color,
"cobalt-Icon--size16": size === 16,
"cobalt-Icon--size20": size === 20,
"cobalt-Icon--size32": size === 32,
"cobalt-Icon--contained": contained,
});
const wrap = (content) => (React.createElement("span", { className: computedClassName }, content));
return wrap(React.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-11.613 4.805-4.273-4.272a.9.9 0 0 1 0-1.273l.694-.694a.9.9 0 0 1 1.272 0l2.96 2.959 5.38-5.412a.9.9 0 0 1 1.272 0l.694.694a.9.9 0 0 1 0 1.273l-6.727 6.725a.9.9 0 0 1-1.272 0Z" })));
};
export { CheckCircleFilledIcon as default };
//# sourceMappingURL=CheckCircleFilledIcon.js.map