UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

20 lines (17 loc) 1.25 kB
import { jsx, jsxs } from 'react/jsx-runtime'; import cx from 'classnames'; import 'lodash.throttle'; import camelize from '../../utils/camelize.js'; const iconSource = "contextualWarningCircleFilled"; const ContextualWarningCircleFilledIcon = ({ 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, }); return (jsx("span", { className: computedClassName, children: jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: [jsx("title", { children: iconSource }), 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" })] }) })); }; export { ContextualWarningCircleFilledIcon as default }; //# sourceMappingURL=ContextualWarningCircleFilledIcon.js.map