@pathwright/pathicons
Version:
Pathwright icons, synced from Figma to React components
52 lines (49 loc) • 2.65 kB
JavaScript
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 OverlappingSquaresFillIcon = /*#__PURE__*/React.forwardRef(function OverlappingSquaresFillIcon(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", {
d: "M20.69 6.31006C20.88 6.84006 21 7.40006 21 8.00006V16.0001C21 18.7601 18.76 21.0001 16 21.0001H8C7.41 21.0001 6.84 20.8801 6.31 20.6901C7.01 22.6201 8.83 24.0001 11 24.0001H19C21.76 24.0001 24 21.7601 24 19.0001V11.0001C24 8.84006 22.61 7.01006 20.69 6.31006Z"
}), /*#__PURE__*/jsx("path", {
d: "M13 0H5C2.23858 0 0 2.23858 0 5V13C0 15.7614 2.23858 18 5 18H13C15.7614 18 18 15.7614 18 13V5C18 2.23858 15.7614 0 13 0Z"
})]
}), /*#__PURE__*/jsx("defs", {
children: /*#__PURE__*/jsx("clipPath", {
id: clipPathId,
children: /*#__PURE__*/jsx("path", {
fill: "white",
d: "M0 0H24V24H0z"
})
})
})]
}));
});
OverlappingSquaresFillIcon.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
OverlappingSquaresFillIcon.defaultProps = {
color: 'currentColor',
size: '24'
};
export { OverlappingSquaresFillIcon as default };
//# sourceMappingURL=overlapping-squares-fill.js.map