UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

37 lines (36 loc) 1.77 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "creditCardError"; const CreditCardErrorIcon = ({ 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: "M22.956 16.061 20.038 18.978 22.956 21.894 21.894 22.956 18.978 20.039 16.06 22.956 15 21.894 17.916 18.978 15 16.06 16.06 15 18.979 17.916 21.895 15z" }), /*#__PURE__*/ jsx("path", { fillRule: "evenodd", d: "M20.25 3.739C21.078 3.739 21.75 4.411 21.75 5.239V13.023L20.25 14.523V10.114H3.75V17.239H14.057L15.557 18.739H3.75L3.597 18.731C2.89 18.659 2.33 18.098 2.258 17.392L2.25 17.24V5.239C2.25 4.411 2.922 3.739 3.75 3.739zM3.75 8.614H20.25V5.239H3.75z", clipRule: "evenodd" }) ] }) }); }; const _generated_CreditCardErrorIcon = CreditCardErrorIcon; export default _generated_CreditCardErrorIcon; //# sourceMappingURL=CreditCardErrorIcon.js.map