UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

45 lines (44 loc) 2.33 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "camera"; const CameraIcon = ({ 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: "M12 8.25C14.485 8.25 16.5 10.265 16.5 12.75S14.485 17.25 12 17.25 7.5 15.235 7.5 12.75 9.515 8.25 12 8.25M12 9.75C10.343 9.75 9 11.093 9 12.75S10.343 15.75 12 15.75 15 14.407 15 12.75 13.657 9.75 12 9.75", clipRule: "evenodd" }), /*#__PURE__*/ jsx("path", { d: "M5.625 8.25C6.246 8.25 6.75 8.754 6.75 9.375S6.246 10.5 5.625 10.5 4.5 9.996 4.5 9.375 5.004 8.25 5.625 8.25" }), /*#__PURE__*/ jsx("path", { fillRule: "evenodd", d: "M12 2.25C15 2.25 15.75 3 15.75 3L17.25 5.25H21C21.828 5.25 22.5 5.922 22.5 6.75V18.75C22.5 19.578 21.828 20.25 21 20.25H3C2.172 20.25 1.5 19.578 1.5 18.75V6.75C1.5 5.922 2.172 5.25 3 5.25H6.75L8.25 3S9 2.25 12 2.25M12 3.75C10.62 3.75 9.85 3.923 9.475 4.048Q9.376 4.081 9.313 4.108L7.553 6.75H3V18.75H21V6.75H16.447L14.686 4.107Q14.623 4.081 14.526 4.048C14.15 3.923 13.378 3.75 12 3.75", clipRule: "evenodd" }), /*#__PURE__*/ jsx("path", { d: "M21.75 2.25C21.75 3.078 21.078 3.75 20.25 3.75H18V2.25z" }) ] }) }); }; const _generated_CameraIcon = CameraIcon; export default _generated_CameraIcon; //# sourceMappingURL=CameraIcon.js.map