UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

22 lines (19 loc) 1.28 kB
import React from 'react'; import camelize from '../../utils/camelize.js'; import 'lodash.throttle'; import cx from 'classnames'; 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, }); const wrap = (content) => (React.createElement("span", { className: computedClassName }, content)); return wrap(React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, React.createElement("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