@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
32 lines (31 loc) • 1.56 kB
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import classnames from "classnames";
import { camelize } from "../../utils/index.js";
const iconSource = "contextualWarningCircleFilled";
const ContextualWarningCircleFilledIcon = ({ 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: "m12 22c-5.523 0-10-4.477-10-10s4.477-10 10-10 10 4.477 10 10-4.477 10-10 10zm-1.495-15.503.62 7.428a.88.88 0 0 0 .856.795h.038c.432 0 .821-.356.858-.795l.619-7.428a1.36 1.36 0 0 0 -1.382-1.497h-.227c-.835 0-1.45.67-1.382 1.497zm1.495 12.503a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"
})
]
})
});
};
const _generated_ContextualWarningCircleFilledIcon = ContextualWarningCircleFilledIcon;
export default _generated_ContextualWarningCircleFilledIcon;
//# sourceMappingURL=ContextualWarningCircleFilledIcon.js.map