UNPKG

@pathwright/pathicons

Version:

Pathwright icons, synced from Figma to React components

50 lines (47 loc) 2.83 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 MapFillAltIcon = /*#__PURE__*/React.forwardRef(function MapFillAltIcon(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__*/jsx("g", { clipPath: "url(#".concat(clipPathId, ")"), children: /*#__PURE__*/jsx("path", { d: "M23.39 3.08002L16.39 0.0800168C16.33 0.0600168 16.27 0.0400168 16.21 0.0300168C16.19 0.0300168 16.18 0.0200168 16.16 0.0200168C16 1.68141e-05 15.84 0.0100168 15.69 0.0600168L7.08 2.92002L1.45 0.110017C1.14 -0.0499832 0.77 -0.0299832 0.47 0.150017C0.18 0.330017 0 0.650017 0 1.00002V20C0 20.38 0.21 20.73 0.55 20.89L6.55 23.89C6.55 23.89 6.59 23.89 6.6 23.9C6.73 23.95 6.86 23.99 6.99 23.99C7.09 23.99 7.19 23.97 7.28 23.94C7.28 23.94 7.29 23.94 7.3 23.94L15.94 21.06L22.59 23.91C22.72 23.96 22.85 23.99 22.98 23.99C23.17 23.99 23.36 23.93 23.53 23.82C23.81 23.63 23.98 23.32 23.98 22.99V4.00002C23.98 3.60002 23.74 3.24002 23.37 3.08002H23.39ZM8 4.72002L15 2.39002V19.28L8 21.61V4.72002Z" }) }), /*#__PURE__*/jsx("defs", { children: /*#__PURE__*/jsx("clipPath", { id: clipPathId, children: /*#__PURE__*/jsx("path", { fill: "white", d: "M0 0H24V24H0z" }) }) })] })); }); MapFillAltIcon.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; MapFillAltIcon.defaultProps = { color: 'currentColor', size: '24' }; export { MapFillAltIcon as default }; //# sourceMappingURL=map-fill-alt.js.map