UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

37 lines (36 loc) 1.61 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "bank"; const BankIcon = ({ 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: "M21.75 21.75H2.25V20.25H21.75zM6.75 18.75H5.25V11.25H6.75zM12.75 18.75H11.25V11.25H12.75zM18.75 18.75H17.25V11.25H18.75z" }), /*#__PURE__*/ jsx("path", { fillRule: "evenodd", d: "M11.503 2.434C11.763 2.246 12.102 2.222 12.381 2.364L12.497 2.433 20.458 8.224C21.118 8.704 20.778 9.75 19.961 9.75H4.04C3.22 9.75 2.88 8.705 3.542 8.224zM6.057 8.25H17.943L12 3.928z", clipRule: "evenodd" }) ] }) }); }; const _generated_BankIcon = BankIcon; export default _generated_BankIcon; //# sourceMappingURL=BankIcon.js.map