@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
37 lines (36 loc) • 1.7 kB
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import classnames from "classnames";
import { camelize } from "../../utils/index.js";
const iconSource = "creditCardAddFilled";
const CreditCardAddFilledIcon = ({ 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: "M19.125 13.125V17.063H22.875V18.938H19.125V22.875H17.25V18.938H13.125V17.063H17.25V13.125z"
}),
/*#__PURE__*/ jsx("path", {
fillRule: "evenodd",
d: "M20.25 3.75C21.078 3.75 21.75 4.422 21.75 5.25V11.625H15.75V15.563H11.625V18.75H3.75L3.597 18.742C2.89 18.67 2.33 18.109 2.258 17.403L2.25 17.25V5.25C2.25 4.422 2.922 3.75 3.75 3.75zM3.75 8.25H20.25V5.25H3.75z",
clipRule: "evenodd"
})
]
})
});
};
const _generated_CreditCardAddFilledIcon = CreditCardAddFilledIcon;
export default _generated_CreditCardAddFilledIcon;
//# sourceMappingURL=CreditCardAddFilledIcon.js.map