UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

34 lines (33 loc) 2.03 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "licencePaperFilled"; const LicencePaperFilledIcon = ({ 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: "M17.29 1.577C18.166 1.454 18.958 2.114 18.996 2.998L19.091 5.185Q19.09 5.238 19.089 5.29C19.754 5.443 20.25 6.04 20.25 6.75V21C20.25 21.83 19.578 22.5 18.75 22.5H5.25C4.422 22.5 3.75 21.83 3.75 21V5.25H3.756Q3.75 5.193 3.75 5.133C3.75 4.181 4.45 3.375 5.393 3.243zM8.25 16.5C7.836 16.5 7.5 16.836 7.5 17.25S7.836 18 8.25 18H11.25C11.664 18 12 17.664 12 17.25S11.664 16.5 11.25 16.5zM8.25 12.75C7.836 12.75 7.5 13.086 7.5 13.5S7.836 14.25 8.25 14.25H15.75C16.164 14.25 16.5 13.914 16.5 13.5S16.164 12.75 15.75 12.75zM8.25 9C7.836 9 7.5 9.336 7.5 9.75S7.836 10.5 8.25 10.5H15.75C16.164 10.5 16.5 10.164 16.5 9.75S16.164 9 15.75 9zM5.6 4.728C5.4 4.756 5.25 4.928 5.25 5.13 5.25 5.196 5.302 5.25 5.367 5.25H17.592L17.498 3.062z", clipRule: "evenodd" }) ] }) }); }; const _generated_LicencePaperFilledIcon = LicencePaperFilledIcon; export default _generated_LicencePaperFilledIcon; //# sourceMappingURL=LicencePaperFilledIcon.js.map