UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

32 lines (31 loc) 1.46 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "bankFilled"; const BankFilledIcon = ({ 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.938H2.25V20.063H21.75zM6.938 18.75H5.063V11.25H6.938zM12.938 18.75H11.062V11.25H12.939zM18.938 18.75H17.063V11.25H18.938zM11.503 2.434C11.763 2.246 12.102 2.222 12.381 2.363L12.497 2.434 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.224z" }) ] }) }); }; const _generated_BankFilledIcon = BankFilledIcon; export default _generated_BankFilledIcon; //# sourceMappingURL=BankFilledIcon.js.map