@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
34 lines (33 loc) • 1.57 kB
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import classnames from "classnames";
import { camelize } from "../../utils/index.js";
const iconSource = "creditCardFilled";
const CreditCardFilledIcon = ({ 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: "M20.25 3.75C21.078 3.75 21.75 4.422 21.75 5.25V17.25L21.742 17.403C21.67 18.11 21.109 18.67 20.403 18.742L20.25 18.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.75zM15.75 13.114V15.364H18.75V13.114zM3.75 8.25H20.25V5.25H3.75z",
clipRule: "evenodd"
})
]
})
});
};
const _generated_CreditCardFilledIcon = CreditCardFilledIcon;
export default _generated_CreditCardFilledIcon;
//# sourceMappingURL=CreditCardFilledIcon.js.map