UNPKG

@pathwright/pathicons

Version:

Pathwright icons, synced from Figma to React components

56 lines (53 loc) 3.37 kB
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty'; import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties'; import React, { useId } from 'react'; import PropTypes from 'prop-types'; import { jsxs, jsx } from 'react/jsx-runtime'; var _excluded = ["color", "size"]; function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } var ShapesIcon = /*#__PURE__*/React.forwardRef(function ShapesIcon(props, ref) { var color = props.color, size = props.size, otherProps = _objectWithoutProperties(props, _excluded); var clipPathId = useId(); return /*#__PURE__*/jsxs("svg", _objectSpread(_objectSpread({ ref: ref, xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: color }, otherProps), {}, { children: [/*#__PURE__*/jsxs("g", { clipPath: "url(#".concat(clipPathId, ")"), children: [/*#__PURE__*/jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13 6C13 5.44772 13.4477 5 14 5H15C17.2023 5 19 6.79772 19 9V15C19 17.2023 17.2023 19 15 19H9.00001C7.265 19 5.78464 17.8922 5.23717 16.3432C5.05312 15.8225 5.32604 15.2512 5.84676 15.0672C6.36748 14.8831 6.9388 15.156 7.12285 15.6768C7.39538 16.4478 8.13501 17 9.00001 17H15C16.0977 17 17 16.0977 17 15V9C17 7.90228 16.0977 7 15 7H14C13.4477 7 13 6.55228 13 6Z" }), /*#__PURE__*/jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M20.5329 12.0529C20.9234 11.6624 21.5566 11.6624 21.9471 12.0529 24.6785 14.7843 24.6763 19.2163 21.9486 21.9556 19.215 24.7009 14.7818 24.6844 12.0444 21.9586 11.653 21.5689 11.6517 20.9358 12.0414 20.5444 12.4311 20.1531 13.0642 20.1517 13.4556 20.5414 15.4182 22.4956 18.585 22.4991 20.5314 20.5444 22.4837 18.5838 22.4815 15.4158 20.5329 13.4671 20.1424 13.0766 20.1424 12.4434 20.5329 12.0529ZM7.5 0C7.86699 0 8.2045.201023 8.37929.523717L14.8793 12.5237C15.0471 12.8336 15.0395 13.2089 14.8592 13.5117 14.6788 13.8145 14.3524 14 14 14H1C.647585 14 .321187 13.8145.140849 13.5117-.0394898 13.2089-.0471413 12.8336.120708 12.5237L6.62071.523717C6.7955.201023 7.13301 0 7.5 0ZM2.67895 12H12.3211L7.5 3.09959 2.67895 12Z" })] }), /*#__PURE__*/jsx("defs", { children: /*#__PURE__*/jsx("clipPath", { id: clipPathId, children: /*#__PURE__*/jsx("path", { fill: "white", d: "M0 0H24V24H0z" }) }) })] })); }); ShapesIcon.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; ShapesIcon.defaultProps = { color: 'currentColor', size: '24' }; export { ShapesIcon as default }; //# sourceMappingURL=shapes.js.map