@pathwright/pathicons
Version:
Pathwright icons, synced from Figma to React components
50 lines (47 loc) • 2.41 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 SpacingHorizontalLargeIcon = /*#__PURE__*/React.forwardRef(function SpacingHorizontalLargeIcon(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: "M1 0C.45 0 0 .45 0 1V23C0 23.55.45 24 1 24 1.55 24 2 23.55 2 23V1C2 .45 1.55 0 1 0ZM23 0C22.45 0 22 .45 22 1V23C22 23.55 22.45 24 23 24 23.55 24 24 23.55 24 23V1C24 .45 23.55 0 23 0ZM15 0H9V24H15V0Z"
})
}), /*#__PURE__*/jsx("defs", {
children: /*#__PURE__*/jsx("clipPath", {
id: clipPathId,
children: /*#__PURE__*/jsx("path", {
fill: "white",
d: "M0 0H24V24H0z"
})
})
})]
}));
});
SpacingHorizontalLargeIcon.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
SpacingHorizontalLargeIcon.defaultProps = {
color: 'currentColor',
size: '24'
};
export { SpacingHorizontalLargeIcon as default };
//# sourceMappingURL=spacing-horizontal-large.js.map