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 = "height"; const HeightIcon = ({ 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.5 22.5H4.5V21H19.5zM15.905 8.47 14.845 9.53 12.75 7.436V16.564L14.845 14.47 15.905 15.53 12 19.436 8.095 15.53 9.155 14.47 11.25 16.564V7.436L9.155 9.53 8.095 8.47 12 4.564zM19.5 3H4.5V1.5H19.5z" }) ] }) }); }; const _generated_HeightIcon = HeightIcon; export default _generated_HeightIcon; //# sourceMappingURL=HeightIcon.js.map