UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

35 lines (34 loc) 1.51 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "externalLink"; const ExternalLinkIcon = ({ 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 7.5H4.5V19.5H16.5V11.25H18V19.5L17.992 19.653C17.92 20.36 17.359 20.92 16.653 20.992L16.5 21H4.5C3.723 21 3.085 20.41 3.008 19.653L3 19.5V7.5C3 6.672 3.672 6 4.5 6H12.75z" }), /*#__PURE__*/ jsx("path", { d: "M21 10.5H19.5V5.56L8.78 16.28 7.72 15.22 18.44 4.5H13.5V3H21z" }) ] }) }); }; const _generated_ExternalLinkIcon = ExternalLinkIcon; export default _generated_ExternalLinkIcon; //# sourceMappingURL=ExternalLinkIcon.js.map