UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

35 lines (34 loc) 1.6 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "logoutFilled"; const LogoutFilledIcon = ({ 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: "M12.75 2.063C13.682 2.063 14.438 2.818 14.438 3.75V9.75H12.562V3.938H3.188V20.063H12.563V14.25H14.437V20.25C14.438 21.182 13.683 21.938 12.75 21.938H3C2.068 21.938 1.313 21.182 1.313 20.25V3.75C1.313 2.818 2.068 2.063 3 2.063z" }), /*#__PURE__*/ jsx("path", { d: "M22.7 12 17.164 17.538 15.837 16.212 19.112 12.938H4.5V11.062H19.112L15.837 7.789 17.163 6.462z" }) ] }) }); }; const _generated_LogoutFilledIcon = LogoutFilledIcon; export default _generated_LogoutFilledIcon; //# sourceMappingURL=LogoutFilledIcon.js.map