UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

35 lines (34 loc) 1.59 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "loginFilled"; const LoginFilledIcon = ({ 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: "M21 2.063C21.932 2.063 22.688 2.818 22.688 3.75V20.25C22.688 21.182 21.932 21.938 21 21.938H11.25C10.318 21.938 9.563 21.182 9.563 20.25V14.25H11.437V20.063H20.813V3.938H11.438V9.75H9.562V3.75C9.563 2.818 10.319 2.063 11.25 2.063z" }), /*#__PURE__*/ jsx("path", { d: "M19.7 12 14.164 17.538 12.837 16.212 16.112 12.938H1.5V11.062H16.112L12.837 7.789 14.163 6.462z" }) ] }) }); }; const _generated_LoginFilledIcon = LoginFilledIcon; export default _generated_LoginFilledIcon; //# sourceMappingURL=LoginFilledIcon.js.map