UNPKG

@pathwright/pathicons

Version:

Pathwright icons, synced from Figma to React components

40 lines (37 loc) 2.36 kB
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty'; import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties'; import React 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 PieChartIcon = /*#__PURE__*/React.forwardRef(function PieChartIcon(props, ref) { var color = props.color, size = props.size, otherProps = _objectWithoutProperties(props, _excluded); 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("path", { d: "M11.43 12.82C11.6 12.94 11.8 13 12 13C12.12 13 12.23 12.98 12.34 12.94L20.8 9.86C21.05 9.77 21.25 9.58 21.36 9.34C21.47 9.1 21.48 8.82 21.39 8.58C19.97 4.65 16.19 2 12 2C11.45 2 11 2.45 11 3V12C11 12.33 11.16 12.63 11.43 12.82Z" }), /*#__PURE__*/jsx("path", { d: "M21.05 11.92C20.5 11.87 20.01 12.26 19.95 12.81C19.54 16.91 16.12 20 12 20C7.59 20 4 16.41 4 12C4 9.07001 5.6 6.38001 8.17 4.98001C8.65 4.71001 8.83 4.11001 8.57 3.62001C8.31 3.13001 7.7 2.96001 7.21 3.22001C4 4.98001 2 8.34002 2 12C2 17.51 6.49 22 12 22C17.15 22 21.43 18.14 21.95 13.02C22 12.47 21.6 11.98 21.05 11.92Z" })] })); }); PieChartIcon.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; PieChartIcon.defaultProps = { color: 'currentColor', size: '24' }; export { PieChartIcon as default }; //# sourceMappingURL=pie-chart.js.map