UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

34 lines (33 loc) 1.46 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "pinFilled"; const PinFilledIcon = ({ 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 1.5C16.556 1.5 20.25 4.78 20.25 9.75 20.25 15.75 13.375 22.5 12 22.5S3.75 15.75 3.75 9.75C3.75 4.78 7.444 1.5 12 1.5M12 6C9.929 6 8.25 7.679 8.25 9.75S9.929 13.5 12 13.5 15.75 11.821 15.75 9.75 14.071 6 12 6", clipRule: "evenodd" }) ] }) }); }; const _generated_PinFilledIcon = PinFilledIcon; export default _generated_PinFilledIcon; //# sourceMappingURL=PinFilledIcon.js.map