UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

34 lines (33 loc) 1.64 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "electric"; const ElectricIcon = ({ 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", { fillRule: "evenodd", d: "M15.375 1.5C15.789 1.5 16.125 1.836 16.125 2.25V6H17.25C18.078 6 18.75 6.672 18.75 7.5V12.75C18.75 16.095 16.317 18.87 13.125 19.405V22.5H10.875V19.405C7.683 18.869 5.25 16.095 5.25 12.75V7.5C5.25 6.672 5.922 6 6.75 6H7.875V2.25C7.875 1.836 8.211 1.5 8.625 1.5S9.375 1.836 9.375 2.25V6H14.625V2.25C14.625 1.836 14.961 1.5 15.375 1.5M6.75 12.75C6.75 15.65 9.1 18 12 18S17.25 15.65 17.25 12.75V7.5H6.75z", clipRule: "evenodd" }) ] }) }); }; const _generated_ElectricIcon = ElectricIcon; export default _generated_ElectricIcon; //# sourceMappingURL=ElectricIcon.js.map