UNPKG

@pathwright/pathicons

Version:

Pathwright icons, synced from Figma to React components

48 lines (45 loc) 2.59 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 DownloadIcon = /*#__PURE__*/React.forwardRef(function DownloadIcon(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", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 12C1.55228 12 2 12.4477 2 13V16C2 18.7477 4.25229 21 7 21H17C19.7477 21 22 18.7477 22 16V13C22 12.4477 22.4477 12 23 12C23.5523 12 24 12.4477 24 13V16C24 19.8523 20.8523 23 17 23H7C3.14772 23 0 19.8523 0 16V13C0 12.4477 0.447715 12 1 12Z" }), /*#__PURE__*/jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.2 9.4C7.53137 8.95817 8.15817 8.86863 8.6 9.2L12 11.75L15.4 9.2C15.8418 8.86863 16.4686 8.95817 16.8 9.4C17.1314 9.84183 17.0418 10.4686 16.6 10.8L12 14.25L7.4 10.8C6.95817 10.4686 6.86863 9.84183 7.2 9.4Z" }), /*#__PURE__*/jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 1C12.5523 1 13 1.44772 13 2V13C13 13.5523 12.5523 14 12 14C11.4477 14 11 13.5523 11 13V2C11 1.44772 11.4477 1 12 1Z" })] })); }); DownloadIcon.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; DownloadIcon.defaultProps = { color: 'currentColor', size: '24' }; export { DownloadIcon as default }; //# sourceMappingURL=download.js.map