UNPKG

@pathwright/pathicons

Version:

Pathwright icons, synced from Figma to React components

50 lines (47 loc) 2.91 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 SearchListIcon = /*#__PURE__*/React.forwardRef(function SearchListIcon(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 3H19C19.55 3 20 2.55 20 2 20 1.45 19.55 1 19 1H1C.45 1 0 1.45 0 2 0 2.55.45 3 1 3ZM1 9H4C4.55 9 5 8.55 5 8 5 7.45 4.55 7 4 7H1C.45 7 0 7.45 0 8 0 8.55.45 9 1 9ZM1 15H3C3.55 15 4 14.55 4 14 4 13.45 3.55 13 3 13H1C.45 13 0 13.45 0 14 0 14.55.45 15 1 15ZM6 19H1C.45 19 0 19.45 0 20 0 20.55.45 21 1 21H6C6.55 21 7 20.55 7 20 7 19.45 6.55 19 6 19ZM23.71 21.29 19.71 17.29C19.71 17.29 19.62 17.24 19.58 17.21 20.47 16.04 21 14.58 21 13 21 9.14 17.86 6 14 6 10.14 6 7 9.14 7 13 7 16.86 10.14 20 14 20 15.58 20 17.04 19.47 18.21 18.58 18.24 18.62 18.26 18.67 18.29 18.71L22.29 22.71C22.49 22.91 22.74 23 23 23 23.26 23 23.51 22.9 23.71 22.71 24.1 22.32 24.1 21.69 23.71 21.3V21.29ZM14 18C11.24 18 9 15.76 9 13 9 10.24 11.24 8 14 8 16.76 8 19 10.24 19 13 19 15.76 16.76 18 14 18Z" }) }), /*#__PURE__*/jsx("defs", { children: /*#__PURE__*/jsx("clipPath", { id: clipPathId, children: /*#__PURE__*/jsx("path", { fill: "white", d: "M0 0H24V24H0z" }) }) })] })); }); SearchListIcon.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; SearchListIcon.defaultProps = { color: 'currentColor', size: '24' }; export { SearchListIcon as default }; //# sourceMappingURL=search-list.js.map