UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

20 lines (17 loc) 1.26 kB
import { jsx, jsxs } from 'react/jsx-runtime'; import cx from 'classnames'; import 'lodash.throttle'; import camelize from '../../utils/camelize.js'; const iconSource = "contextualWarningCircle"; const ContextualWarningCircleIcon = ({ 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 20c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8zm0-18a10 10 0 1 1 -10 10c0-5.523 4.477-10 10-10zm-1.246 5.447a1.132 1.132 0 0 1 1.151-1.247h.19c.693 0 1.208.557 1.15 1.247l-.515 6.188a.735.735 0 0 1 -.714.662h-.032a.733.733 0 0 1 -.714-.662zm1.246 10.416a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5z" })] }) })); }; export { ContextualWarningCircleIcon as default }; //# sourceMappingURL=ContextualWarningCircleIcon.js.map