Skip to content

Commit

Permalink
refactor(icons): update
Browse files Browse the repository at this point in the history
  • Loading branch information
ChesterSim committed Oct 14, 2024
1 parent fef623d commit 23a7e09
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 20 deletions.
34 changes: 34 additions & 0 deletions icons/src/icons/components/Calculator.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import * as React from 'react';
import { IconProps } from '../../types';
import { IconWrapper } from '../IconWrapper';

const Calculator = (allProps: IconProps) => {
const { svgProps: props, ...restProps } = allProps;
return (
<IconWrapper
icon={
<svg
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M3.25 7A.75.75 0 014 6.25h6a.75.75 0 010 1.5H4A.75.75 0 013.25 7z"
fill={allProps.color ? allProps.color : 'currentColor'}
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M7 3.25a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0V4A.75.75 0 017 3.25zM13.25 17a.75.75 0 01.75-.75h6a.75.75 0 010 1.5h-6a.75.75 0 01-.75-.75zM4.47 19.53a.75.75 0 010-1.06l14-14a.75.75 0 111.06 1.06l-14 14a.75.75 0 01-1.06 0z"
fill={allProps.color ? allProps.color : 'currentColor'}
/>
</svg>
}
{...restProps}
/>
);
};
export default Calculator;
8 changes: 5 additions & 3 deletions icons/src/icons/components/EyeShow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ const EyeShow = (allProps: IconProps) => {
<path
fillRule="evenodd"
clipRule="evenodd"
d="M4.012 12a11.49 11.49 0 001.77 2.372C7.133 15.758 9.165 17.1 12 17.1s4.867-1.343 6.218-2.728A11.496 11.496 0 0019.988 12a11.497 11.497 0 00-1.77-2.372C16.867 8.242 14.835 6.9 12 6.9S7.133 8.242 5.782 9.628A11.491 11.491 0 004.012 12zM21 12l.82-.37v-.001l-.001-.002-.003-.006-.008-.019a4.876 4.876 0 00-.14-.278 11.43 11.43 0 00-.425-.739 13.295 13.295 0 00-1.736-2.213C17.933 6.758 15.465 5.1 12 5.1S6.067 6.758 4.493 8.372a13.29 13.29 0 00-1.736 2.213 11.435 11.435 0 00-.535.955 4.789 4.789 0 00-.03.062l-.008.019-.003.006-.001.002c0 .001 0 .002.82.371l-.82-.37a.9.9 0 000 .74L3 12l-.82.37v.001l.001.002.003.006.008.019a4.789 4.789 0 00.14.278c.095.182.236.436.425.739.377.603.95 1.407 1.736 2.213C6.067 17.242 8.535 18.9 12 18.9s5.933-1.657 7.507-3.272a13.296 13.296 0 001.736-2.213 11.43 11.43 0 00.535-.955l.03-.062.008-.019.003-.006v-.002h.001c0-.001 0-.002-.82-.371zm0 0l.82.37a.9.9 0 000-.74L21 12zm-17.18-.37v-.001z"
d="M3.84 12a11.638 11.638 0 001.834 2.476C7.045 15.881 9.113 17.25 12 17.25c2.888 0 4.956-1.369 6.326-2.774A11.637 11.637 0 0020.159 12a11.639 11.639 0 00-1.834-2.476C16.956 8.119 14.889 6.75 12 6.75c-2.888 0-4.956 1.369-6.325 2.774A11.64 11.64 0 003.84 12zM21 12l.684-.308-.002-.003-.002-.006-.008-.018a4.359 4.359 0 00-.136-.271c-.094-.18-.234-.43-.42-.729A13.142 13.142 0 0019.4 8.476C17.843 6.881 15.412 5.25 12 5.25c-3.412 0-5.844 1.631-7.4 3.226a13.143 13.143 0 00-1.716 2.189 11.279 11.279 0 00-.527.94 4.787 4.787 0 00-.029.06l-.008.018-.002.006-.001.002L3 12l-.684-.308a.75.75 0 000 .616L3 12l-.684.308v.001l.002.002.002.006.008.018a4.787 4.787 0 00.136.271c.094.18.233.43.42.729.373.596.94 1.392 1.717 2.189C6.155 17.119 8.588 18.75 12 18.75s5.844-1.631 7.4-3.226a13.144 13.144 0 001.716-2.189 11.246 11.246 0 00.527-.94l.029-.06.008-.018.002-.006.001-.002L21 12zm0 0l.684.308a.751.751 0 000-.616L21 12z"
fill={allProps.color ? allProps.color : 'currentColor'}
/>
<path
d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"
<circle
cx={12}
cy={12}
r={3}
fill={allProps.color ? allProps.color : 'currentColor'}
/>
</svg>
Expand Down
42 changes: 42 additions & 0 deletions icons/src/icons/components/Health.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import * as React from 'react';
import { IconProps } from '../../types';
import { IconWrapper } from '../IconWrapper';

const Health = (allProps: IconProps) => {
const { svgProps: props, ...restProps } = allProps;
return (
<IconWrapper
icon={
<svg
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M3.923 4.898A5.732 5.732 0 017.95 3.25c.866 0 1.647.122 2.41.45.57.246 1.104.595 1.64 1.056.536-.46 1.07-.81 1.64-1.056.763-.328 1.544-.45 2.41-.45 1.509 0 2.958.592 4.027 1.648a5.608 5.608 0 011.673 3.99c0 1.359-.518 2.513-1.211 3.494a.743.743 0 01-.076.106c-.505.693-1.093 1.298-1.639 1.826l-6.297 6.22a.75.75 0 01-1.054 0l-6.296-6.218c-.552-.528-1.143-1.133-1.647-1.827a.753.753 0 01-.079-.11c-.69-.979-1.201-2.131-1.201-3.49 0-1.499.603-2.934 1.673-3.99zm1.803 7.852c.16.163.324.325.492.485l.01.01 5.772 5.7 5.778-5.706c.168-.162.332-.325.49-.489H15.15a.75.75 0 01-.688-.451l-.52-1.2-1.221 4.22a.75.75 0 01-1.405.1l-1.235-2.746a.748.748 0 01-.33.077H5.725zm3.563-1.5H4.5c-.46-.723-.749-1.498-.749-2.361 0-1.095.44-2.147 1.227-2.923A4.232 4.232 0 017.95 4.75c.718 0 1.287.1 1.816.328.534.23 1.075.61 1.707 1.233a.75.75 0 001.054 0c.632-.624 1.173-1.003 1.707-1.233.53-.228 1.098-.328 1.816-.328 1.117 0 2.186.438 2.973 1.216a4.109 4.109 0 011.227 2.923c0 .861-.292 1.636-.757 2.361h-3.85l-1.155-2.66a.75.75 0 00-1.408.09l-1.233 4.263-.963-2.14a.75.75 0 00-1.353-.03l-.242.477z"
fill="url(#prefix__paint0_linear_1585_3499)"
/>
<defs>
<linearGradient
id="prefix__paint0_linear_1585_3499"
x1={2.25}
y1={12}
x2={21.75}
y2={12}
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#E8A2A0" />
<stop offset={0.5} stopColor="#9468F1" />
<stop offset={1} stopColor="#71CCE9" />
</linearGradient>
</defs>
</svg>
}
{...restProps}
/>
);
};
export default Health;
28 changes: 28 additions & 0 deletions icons/src/icons/components/Link.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import * as React from 'react';
import { IconProps } from '../../types';
import { IconWrapper } from '../IconWrapper';

const Link = (allProps: IconProps) => {
const { svgProps: props, ...restProps } = allProps;
return (
<IconWrapper
icon={
<svg
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M5.317 15.476c.055-.933.48-1.87 1.203-2.592l1.237-1.238a.75.75 0 00-1.06-1.06l-1.238 1.237c-.965.966-1.562 2.243-1.64 3.565-.078 1.325.374 2.594 1.287 3.506.912.913 2.18 1.365 3.506 1.287 1.322-.078 2.6-.675 3.565-1.64l1.237-1.238a.75.75 0 00-1.06-1.06l-1.238 1.237c-.722.722-1.66 1.148-2.592 1.203-.929.055-1.77-.261-2.358-.85-.588-.587-.904-1.428-.85-2.357zm5.269-8.78a.75.75 0 001.06 1.061l1.238-1.237c.722-.722 1.66-1.148 2.592-1.203.929-.055 1.77.261 2.358.85.588.587.904 1.428.85 2.357-.056.933-.482 1.87-1.204 2.592l-1.237 1.238a.75.75 0 101.06 1.06l1.238-1.237c.965-.966 1.562-2.243 1.64-3.565.078-1.325-.374-2.594-1.287-3.506-.912-.913-2.18-1.365-3.506-1.287-1.322.078-2.6.675-3.565 1.64l-1.237 1.238zM8.64 14.299a.75.75 0 001.06 1.06l5.658-5.656a.75.75 0 00-1.06-1.06L8.64 14.297z"
fill={allProps.color ? allProps.color : 'currentColor'}
/>
</svg>
}
{...restProps}
/>
);
};
export default Link;
6 changes: 3 additions & 3 deletions icons/src/icons/components/NewMarket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const NewMarket = (allProps: IconProps) => {
y2={12}
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#FFC2C0" />
<stop offset={0.5} stopColor="#AC85FF" />
<stop offset={1} stopColor="#89E3FF" />
<stop stopColor="#E8A2A0" />
<stop offset={0.5} stopColor="#9468F1" />
<stop offset={1} stopColor="#71CCE9" />
</linearGradient>
</defs>
</svg>
Expand Down
14 changes: 0 additions & 14 deletions icons/src/icons/components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@ const Settings = (allProps: IconProps) => {
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M17.961 15.24a1.35 1.35 0 01.094-.786 1.351 1.351 0 011.235-.818h.074a1.636 1.636 0 100-3.272h-.14a1.35 1.35 0 01-1.235-.819c-.183-.289-.138-.688-.093-.85a1.35 1.35 0 01.363-.704l.05-.05a1.638 1.638 0 10-2.316-2.315l-.05.05a1.35 1.35 0 01-1.489.27 1.35 1.35 0 01-.818-1.236v-.074a1.636 1.636 0 10-3.272 0v.14a1.35 1.35 0 01-.819 1.235H9.48a1.35 1.35 0 01-1.49-.27l-.048-.05a1.636 1.636 0 10-2.316 2.316l.05.05a1.35 1.35 0 01.27 1.488 1.35 1.35 0 01-1.236.884h-.074a1.636 1.636 0 100 3.273h.14a1.35 1.35 0 011.235.818 1.35 1.35 0 01-.27 1.49l-.05.048a1.636 1.636 0 102.316 2.316l.05-.05a1.35 1.35 0 011.488-.27 1.35 1.35 0 01.884 1.236v.074a1.636 1.636 0 103.273 0v-.14a1.35 1.35 0 01.818-1.235 1.35 1.35 0 011.49.27l.048.05a1.638 1.638 0 102.316-2.316l-.05-.05a1.35 1.35 0 01-.363-.702z"
stroke={allProps.color ? allProps.color : 'currentColor'}
strokeWidth={1.5}
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M12 15a3 3 0 100-6 3 3 0 000 6z"
stroke={allProps.color ? allProps.color : 'currentColor'}
strokeWidth={1.5}
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M12.07 21.75c-.64 0-1.24-.25-1.69-.7-.45-.45-.7-1.05-.7-1.69 0-.18-.04-.29-.11-.39a.58.58 0 00-.28-.21.636.636 0 00-.39-.06.58.58 0 00-.31.16c-.27.27-.53.44-.82.56-.58.24-1.25.24-1.83 0a2.38 2.38 0 01-1.29-1.28c-.12-.29-.18-.6-.18-.92 0-.32.06-.62.18-.91.12-.29.3-.56.52-.78.13-.13.18-.24.2-.35.02-.12 0-.24-.04-.35a.541.541 0 00-.22-.27c-.1-.07-.21-.1-.33-.1h-.14c-.64 0-1.24-.25-1.69-.7-.45-.45-.7-1.05-.7-1.69 0-.64.25-1.24.7-1.69.45-.45 1.05-.7 1.69-.7.18 0 .29-.04.39-.11.1-.07.17-.17.21-.28.07-.15.08-.28.06-.39a.58.58 0 00-.16-.31 2.382 2.382 0 01-.56-2.64c.12-.29.3-.55.52-.78.22-.22.48-.4.77-.52.59-.24 1.24-.24 1.83 0 .29.12.55.3.78.52.13.13.24.18.35.2.12.02.24 0 .35-.04.05-.02.11-.04.16-.05.07-.04.13-.1.17-.17.06-.1.1-.21.1-.33v-.14c0-.64.25-1.24.7-1.69.9-.9 2.47-.9 3.38 0 .45.45.7 1.05.7 1.69 0 .19.04.3.1.4.06.1.15.17.26.22.12.05.24.07.36.04a.58.58 0 00.31-.16c.26-.27.53-.44.82-.56.59-.24 1.25-.24 1.83 0 .29.12.55.3.78.52.22.22.4.48.52.77.12.29.18.6.18.91 0 .31-.06.62-.18.92-.12.29-.29.55-.52.77a.72.72 0 00-.21.36c-.03.14-.03.27 0 .32 0 .02.05.09.05.1.05.11.12.2.22.26s.21.1.33.1h.14c.64 0 1.24.25 1.69.7.45.45.7 1.05.7 1.69 0 .64-.25 1.24-.7 1.69-.45.45-1.05.7-1.69.7-.19 0-.3.04-.4.1-.1.06-.17.15-.22.26-.05.12-.07.24-.05.36.02.12.08.23.16.31a2.382 2.382 0 01.74 1.73c0 .31-.06.62-.18.92a2.353 2.353 0 01-1.29 1.29c-.58.24-1.25.24-1.83 0-.29-.12-.55-.29-.77-.52a.72.72 0 00-.36-.21c-.12-.02-.24 0-.35.04-.12.05-.21.12-.27.22-.07.1-.1.21-.1.33v.14c0 .64-.25 1.24-.7 1.69-.45.45-1.05.7-1.69.7zM9 17.19c.29 0 .58.06.85.18.35.13.69.39.94.73.25.35.38.75.39 1.17 0 .33.09.55.26.72.33.33.92.33 1.25 0 .17-.17.26-.39.26-.63v-.14c0-.41.12-.81.35-1.15.22-.34.54-.61.92-.77.38-.17.8-.22 1.21-.14.42.08.8.27 1.09.57.14.14.24.2.34.25.22.09.46.09.68 0 .11-.04.21-.11.29-.19.08-.08.15-.18.19-.29.05-.11.07-.22.07-.34 0-.12-.02-.23-.07-.34a.972.972 0 00-.19-.29c-.35-.35-.54-.73-.62-1.15-.08-.42-.02-.84.15-1.22.16-.37.42-.69.77-.92.34-.23.74-.35 1.15-.35.31 0 .54-.09.7-.26.17-.17.26-.39.26-.63s-.09-.46-.26-.63a.877.877 0 00-.63-.26h-.14c-.41 0-.81-.12-1.15-.35-.33-.22-.58-.52-.75-.87-.26-.46-.25-1.04-.15-1.4.06-.35.26-.73.55-1.03.14-.14.2-.24.25-.34.05-.11.07-.22.07-.34 0-.12-.02-.23-.07-.34a.812.812 0 00-.19-.29.812.812 0 00-.29-.19.89.89 0 00-.68 0c-.11.04-.2.11-.28.19-.36.35-.74.55-1.15.62a2.148 2.148 0 01-2.14-.92c-.23-.35-.35-.74-.35-1.15 0-.31-.09-.54-.26-.7a.913.913 0 00-1.25 0c-.17.17-.26.39-.26.63v.14c0 .41-.12.81-.35 1.15-.23.34-.55.61-.92.77-.07.03-.13.05-.2.06-.34.12-.71.15-1.08.09-.41-.07-.79-.27-1.09-.57-.14-.14-.23-.2-.34-.25a.89.89 0 00-.68 0 .91.91 0 00-.29.19c-.08.08-.15.18-.19.29-.04.11-.07.22-.07.34 0 .12.02.23.07.34.04.11.11.2.19.29.35.36.55.73.62 1.15.08.41.02.84-.15 1.22-.13.35-.39.69-.73.94-.35.25-.75.38-1.17.39-.33 0-.55.09-.72.26-.17.17-.26.39-.26.63s.09.46.26.63c.17.17.39.26.63.26h.14c.41 0 .81.12 1.15.35.34.22.61.54.77.92.17.38.22.8.14 1.22-.07.41-.27.79-.57 1.09-.14.14-.2.23-.25.34-.04.11-.07.22-.07.34 0 .12.02.23.07.34.04.11.11.2.19.29.08.08.18.15.29.19.22.09.46.09.68 0 .11-.04.21-.11.29-.19.35-.35.73-.54 1.15-.62.13-.02.25-.03.38-.03z"
fill={allProps.color ? allProps.color : 'currentColor'}
Expand Down
3 changes: 3 additions & 0 deletions icons/src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export { default as Bank } from './components/Bank';
export { default as Bankrupt } from './components/Bankrupt';
export { default as Bolt } from './components/Bolt';
export { default as Bridge } from './components/Bridge';
export { default as Calculator } from './components/Calculator';
export { default as Calendar } from './components/Calendar';
export { default as CaretDown } from './components/CaretDown';
export { default as CaretUp } from './components/CaretUp';
Expand Down Expand Up @@ -63,6 +64,7 @@ export { default as GraphCircle } from './components/GraphCircle';
export { default as GraphSquare } from './components/GraphSquare';
export { default as GridMenu } from './components/GridMenu';
export { default as Hamburger } from './components/Hamburger';
export { default as Health } from './components/Health';
export { default as Heart } from './components/Heart';
export { default as Help } from './components/Help';
export { default as History } from './components/History';
Expand All @@ -76,6 +78,7 @@ export { default as Layout } from './components/Layout';
export { default as LendBorrow } from './components/LendBorrow';
export { default as Lightning } from './components/Lightning';
export { default as Like } from './components/Like';
export { default as Link } from './components/Link';
export { default as LiqHalf } from './components/LiqHalf';
export { default as Loader } from './components/Loader';
export { default as Loading } from './components/Loading';
Expand Down

0 comments on commit 23a7e09

Please sign in to comment.