-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from Giveth/add-bookmark-icon
Add bookmark icon
- Loading branch information
Showing
11 changed files
with
210 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@giveth/ui-design-system", | ||
"version": "1.11.31", | ||
"version": "1.11.32", | ||
"files": [ | ||
"/lib" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React, { FC } from 'react'; | ||
import { IIconProps } from '../type'; | ||
import { IconBookmark16 } from './Bookmark16'; | ||
import { IconBookmark24 } from './Bookmark24'; | ||
import { IconBookmark32 } from './Bookmark32'; | ||
|
||
export const IconBookmark: FC<IIconProps> = ({ | ||
size = 16, | ||
color = 'currentColor', | ||
}) => { | ||
switch (size.toString()) { | ||
case '16': | ||
return <IconBookmark16 color={color} />; | ||
case '24': | ||
return <IconBookmark24 color={color} />; | ||
case '32': | ||
return <IconBookmark32 color={color} />; | ||
default: | ||
return <IconBookmark24 size={size} color={color} />; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React, { FC } from 'react'; | ||
import { IIconProps } from '../type'; | ||
|
||
export const IconBookmark16: FC<IIconProps> = ({ | ||
size = 16, | ||
color = 'currentColor', | ||
}) => ( | ||
<svg | ||
width={size} | ||
height={size} | ||
viewBox='0 0 16 16' | ||
fill='none' | ||
xmlns='http://www.w3.org/2000/svg' | ||
> | ||
<path | ||
d='M12.2457 14.8993L8 10.6536L3.75429 14.8993V2.16214C3.75429 1.88062 3.86612 1.61065 4.06517 1.41159C4.26423 1.21254 4.5342 1.10071 4.81572 1.10071H11.1843C11.4658 1.10071 11.7358 1.21254 11.9348 1.41159C12.1338 1.61065 12.2457 1.88062 12.2457 2.16214V14.8993Z' | ||
stroke={color} | ||
strokeWidth='1.71' | ||
strokeLinecap='round' | ||
strokeLinejoin='round' | ||
/> | ||
</svg> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React, { FC } from 'react'; | ||
import { IIconProps } from '../type'; | ||
|
||
export const IconBookmark24: FC<IIconProps> = ({ | ||
size = 24, | ||
color = 'currentColor', | ||
}) => ( | ||
<svg | ||
width={size} | ||
height={size} | ||
viewBox='0 0 24 24' | ||
fill='none' | ||
xmlns='http://www.w3.org/2000/svg' | ||
> | ||
<path | ||
d='M18.3686 22.3489L12 15.9804L5.63143 22.3489V3.24322C5.63143 2.82095 5.79918 2.41599 6.09775 2.1174C6.39634 1.81882 6.8013 1.65108 7.22357 1.65108H16.7764C17.1987 1.65108 17.6037 1.81882 17.9022 2.1174C18.2008 2.41599 18.3686 2.82095 18.3686 3.24322V22.3489Z' | ||
stroke={color} | ||
strokeWidth='1.71' | ||
strokeLinecap='round' | ||
strokeLinejoin='round' | ||
/> | ||
</svg> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React, { FC } from 'react'; | ||
import { IIconProps } from '../type'; | ||
|
||
export const IconBookmark32: FC<IIconProps> = ({ | ||
size = 32, | ||
color = 'currentColor', | ||
}) => ( | ||
<svg | ||
width={size} | ||
height={size} | ||
viewBox='0 0 32 32' | ||
fill='none' | ||
xmlns='http://www.w3.org/2000/svg' | ||
> | ||
<path | ||
d='M24.4914 29.7986L16 21.3071L7.50857 29.7986V4.32429C7.50857 3.76126 7.73224 3.22132 8.13033 2.8232C8.52846 2.42509 9.0684 2.20143 9.63143 2.20143H22.3686C22.9316 2.20143 23.4716 2.42509 23.8696 2.8232C24.2677 3.22132 24.4914 3.76126 24.4914 4.32429V29.7986Z' | ||
stroke={color} | ||
strokeWidth='1.71' | ||
strokeLinecap='round' | ||
strokeLinejoin='round' | ||
/> | ||
</svg> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React, { FC } from 'react'; | ||
import { IIconProps } from '../type'; | ||
import { IconBookmarkFilled16 } from './BookmarkFilled16'; | ||
import { IconBookmarkFilled24 } from './BookmarkFilled24'; | ||
import { IconBookmarkFilled32 } from './BookmarkFilled32'; | ||
|
||
export const IconBookmarkFilled: FC<IIconProps> = ({ | ||
size = 16, | ||
color = 'currentColor', | ||
}) => { | ||
switch (size.toString()) { | ||
case '16': | ||
return <IconBookmarkFilled16 color={color} />; | ||
case '24': | ||
return <IconBookmarkFilled24 color={color} />; | ||
case '32': | ||
return <IconBookmarkFilled32 color={color} />; | ||
default: | ||
return <IconBookmarkFilled24 size={size} color={color} />; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React, { FC } from 'react'; | ||
import { IIconProps } from '../type'; | ||
|
||
export const IconBookmarkFilled16: FC<IIconProps> = ({ | ||
size = 16, | ||
color = 'currentColor', | ||
}) => ( | ||
<svg | ||
width={size} | ||
height={size} | ||
viewBox='0 0 16 16' | ||
fill='none' | ||
xmlns='http://www.w3.org/2000/svg' | ||
> | ||
<path | ||
d='M12.2457 14.8993L8 10.6536L3.75429 14.8993V2.16214C3.75429 1.88062 3.86612 1.61065 4.06517 1.41159C4.26423 1.21254 4.5342 1.10071 4.81571 1.10071H11.1843C11.4658 1.10071 11.7358 1.21254 11.9348 1.41159C12.1338 1.61065 12.2457 1.88062 12.2457 2.16214V14.8993Z' | ||
fill={color} | ||
stroke={color} | ||
strokeWidth='1.71' | ||
strokeLinecap='round' | ||
strokeLinejoin='round' | ||
/> | ||
</svg> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React, { FC } from 'react'; | ||
import { IIconProps } from '../type'; | ||
|
||
export const IconBookmarkFilled24: FC<IIconProps> = ({ | ||
size = 24, | ||
color = 'currentColor', | ||
}) => ( | ||
<svg | ||
width={size} | ||
height={size} | ||
viewBox='0 0 24 24' | ||
fill='none' | ||
xmlns='http://www.w3.org/2000/svg' | ||
> | ||
<path | ||
d='M18.3686 22.3489L12 15.9804L5.63143 22.3489V3.24322C5.63143 2.82095 5.79918 2.41599 6.09775 2.1174C6.39634 1.81882 6.8013 1.65108 7.22357 1.65108H16.7764C17.1987 1.65108 17.6037 1.81882 17.9022 2.1174C18.2008 2.41599 18.3686 2.82095 18.3686 3.24322V22.3489Z' | ||
fill={color} | ||
stroke={color} | ||
strokeWidth='1.71' | ||
strokeLinecap='round' | ||
strokeLinejoin='round' | ||
/> | ||
</svg> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React, { FC } from 'react'; | ||
import { IIconProps } from '../type'; | ||
|
||
export const IconBookmarkFilled32: FC<IIconProps> = ({ | ||
size = 32, | ||
color = 'currentColor', | ||
}) => ( | ||
<svg | ||
width={size} | ||
height={size} | ||
viewBox='0 0 32 32' | ||
fill='none' | ||
xmlns='http://www.w3.org/2000/svg' | ||
> | ||
<path | ||
d='M24.4914 29.7986L16 21.3071L7.50857 29.7986V4.32429C7.50857 3.76126 7.73224 3.22132 8.13033 2.8232C8.52846 2.42509 9.0684 2.20143 9.63143 2.20143H22.3686C22.9316 2.20143 23.4716 2.42509 23.8696 2.8232C24.2677 3.22132 24.4914 3.76126 24.4914 4.32429V29.7986Z' | ||
fill={color} | ||
stroke={color} | ||
strokeWidth='1.71' | ||
strokeLinecap='round' | ||
strokeLinejoin='round' | ||
/> | ||
</svg> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters