Skip to content

Commit

Permalink
feat(icons): add search icon (#518)
Browse files Browse the repository at this point in the history
Co-authored-by: lena.rashkovan <[email protected]>
  • Loading branch information
shiba-codes and lena.rashkovan authored Feb 21, 2025
1 parent 46fe18c commit 4cce650
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/icons/experimental/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions src/icons/experimental/SearchIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// DO NOT EDIT. This file was generated by running `npm run generate`.;
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';
type Props = IconProps;
const SearchIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
const sizePx = Number.isFinite(size as number)
? size
: get(`iconSizes.${size}`)(props) || get('iconSizes.medium')(props);
return (
<svg
{...props}
width={sizePx}
height={sizePx}
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M16.333 17.5l-5.25-5.25a5.08 5.08 0 01-3.167 1.083c-1.513 0-2.794-.524-3.843-1.573C3.024 10.712 2.5 9.43 2.5 7.917c0-1.514.524-2.795 1.573-3.844S6.403 2.5 7.917 2.5c1.514 0 2.795.524 3.843 1.573 1.049 1.049 1.573 2.33 1.573 3.844a5.08 5.08 0 01-1.083 3.166l5.25 5.25-1.167 1.167zm-8.416-5.833c1.041 0 1.927-.365 2.656-1.094.73-.73 1.094-1.615 1.094-2.656 0-1.042-.365-1.927-1.094-2.657-.73-.729-1.615-1.093-2.656-1.093-1.042 0-1.927.364-2.657 1.093-.729.73-1.093 1.615-1.093 2.657 0 1.041.364 1.927 1.093 2.656.73.73 1.615 1.094 2.657 1.094z"
fill="currentColor"
/>
</svg>
);
};
export default SearchIcon;
1 change: 1 addition & 0 deletions src/icons/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export { default as CarOutlineIcon } from './CarOutlineIcon';
export { default as LocationIcon } from './LocationIcon';
export { default as SpinnerIcon } from './SpinnerIcon';
export { default as PhoneCarOutlineIcon } from './PhoneCarOutlineIcon';
export { default as SearchIcon } from './SearchIcon';

0 comments on commit 4cce650

Please sign in to comment.