UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

32 lines (31 loc) 1.35 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "locationFilled"; const LocationFilledIcon = ({ 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: "M19.762 2.746C20.712 2.308 21.692 3.289 21.254 4.239L13.397 21.265C12.891 22.359 11.25 21.999 11.25 20.793V12.75H3.208C2 12.75 1.64 11.11 2.735 10.603z" }) ] }) }); }; const _generated_LocationFilledIcon = LocationFilledIcon; export default _generated_LocationFilledIcon; //# sourceMappingURL=LocationFilledIcon.js.map