@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
32 lines (31 loc) • 1.39 kB
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import classnames from "classnames";
import { camelize } from "../../utils/index.js";
const iconSource = "pencilFilled";
const PencilFilledIcon = ({ 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: "M18.31 10.5 8.56 20.25H21.75V21.75H3C2.586 21.75 2.25 21.414 2.25 21V16.94L13.5 5.69zM16.94 2.25C17.525 1.665 18.475 1.665 19.06 2.25L21.75 4.94C22.336 5.526 22.336 6.475 21.75 7.06L19.5 9.31 14.69 4.5z"
})
]
})
});
};
const _generated_PencilFilledIcon = PencilFilledIcon;
export default _generated_PencilFilledIcon;
//# sourceMappingURL=PencilFilledIcon.js.map