UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

32 lines (31 loc) 1.4 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "diamondFilled"; const DiamondFilledIcon = ({ 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: "M11.438 9.938V21.871L1.74 9.938zM12.563 21.872V9.938H22.258zM22.294 8.813H16.264L19.02 2.992zM7.736 8.813H1.706L4.979 2.992zM14.486 8.813H9.514L12 3.564zM8.625 8.06 6.05 2.625H11.2zM15.375 8.06 12.8 2.625H17.95z" }) ] }) }); }; const _generated_DiamondFilledIcon = DiamondFilledIcon; export default _generated_DiamondFilledIcon; //# sourceMappingURL=DiamondFilledIcon.js.map