UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

35 lines (34 loc) 1.7 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "evBatteryFilled"; const EvBatteryFilledIcon = ({ 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.75 10.875H15.773L9.75 18.705V13.125H6.727L12.75 5.295z" }), /*#__PURE__*/ jsx("path", { d: "M9.16 7.5H3.75V14.533L3.68 14.625H3.75V16.5H8.25V18H3.75C2.922 18 2.25 17.328 2.25 16.5V7.5C2.25 6.672 2.922 6 3.75 6H10.315zM19.125 6C19.953 6 20.625 6.672 20.625 7.5V9.05C21.272 9.215 21.75 9.8 21.75 10.5V13.5C21.75 14.199 21.272 14.784 20.625 14.95V16.5C20.625 17.328 19.953 18 19.125 18H12.185L13.34 16.5H19.125V13.5H20.25V10.5H19.125V7.5H14.25V6z" }) ] }) }); }; const _generated_EvBatteryFilledIcon = EvBatteryFilledIcon; export default _generated_EvBatteryFilledIcon; //# sourceMappingURL=EvBatteryFilledIcon.js.map