-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
340 additions
and
252 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
This file was deleted.
Oops, something went wrong.
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,55 @@ | ||
import React from 'react' | ||
import { IconProps } from '../../../types' | ||
import BaseIcon from '../../components/BaseIcon' | ||
import DEFAULT_ICON from '../../constant' | ||
|
||
type IconVariant = 'primary' | ||
type Props = Omit<IconProps, 'variant'> & { | ||
variant?: IconVariant | ||
accentColor?: string | ||
} | ||
|
||
export const DownloadIcon = React.forwardRef<SVGSVGElement, Props>((props, forwardedRef) => { | ||
//props | ||
const { | ||
variant = 'primary', | ||
color = DEFAULT_ICON.COLOR, | ||
accentColor = DEFAULT_ICON.COLOR, | ||
size = DEFAULT_ICON.SIZE, | ||
inActive = false, | ||
...restProps | ||
} = props | ||
|
||
const modifiedColor = inActive ? DEFAULT_ICON.INACTIVE_COLOR : color | ||
|
||
const iconSize = typeof size === 'number' ? `${size}px` : size | ||
|
||
// variants | ||
const primary = ( | ||
<svg style={{ width: iconSize }} {...restProps} ref={forwardedRef} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'> | ||
<g clip-path='url(#clip0_123_6780)'> | ||
<path | ||
d='M3.33301 14.167V15.8337C3.33301 16.2757 3.5086 16.6996 3.82116 17.0122C4.13372 17.3247 4.55765 17.5003 4.99967 17.5003H14.9997C15.4417 17.5003 15.8656 17.3247 16.1782 17.0122C16.4907 16.6996 16.6663 16.2757 16.6663 15.8337V14.167' | ||
stroke={accentColor} | ||
stroke-width='1.21' | ||
stroke-linecap='round' | ||
stroke-linejoin='round' | ||
/> | ||
<path | ||
d='M5.83301 9.16699L9.99967 13.3337L14.1663 9.16699' | ||
stroke={modifiedColor} | ||
stroke-width='1.21' | ||
stroke-linecap='round' | ||
stroke-linejoin='round' | ||
/> | ||
<path d='M10 3.33301V13.333' stroke={modifiedColor} stroke-width='1.21' stroke-linecap='round' stroke-linejoin='round' /> | ||
</g> | ||
<defs> | ||
<clipPath id='clip0_123_6780'> | ||
<rect width='20' height='20' fill='white' /> | ||
</clipPath> | ||
</defs> | ||
</svg> | ||
) | ||
return <BaseIcon variants={{ primary }} variant={variant} /> | ||
}) |
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,94 +1,94 @@ | ||
export * from './AddFolderIcon' | ||
export * from './BorderSquareIcon' | ||
export * from './CardBgIcon' | ||
export * from './CartIcon' | ||
export * from './CelebrateIcon' | ||
export * from './CheckFillCircleIcon' | ||
export * from './ComputerBgIcon' | ||
export * from './ContactSupportIcon' | ||
export * from './CouponIcon' | ||
export * from './CreateProfileIcon' | ||
export * from './DiamonIcon' | ||
export * from './DublicateStackIcon' | ||
export * from './DuplicateFillIcon' | ||
export * from './DuplicateIcon' | ||
export * from './EditAlbumNameIcon' | ||
export * from './EditPhotoIcon' | ||
export * from './ExitAppBgIcon' | ||
export * from './ExpandIcon' | ||
export * from './EyeCheckedIcon' | ||
export * from './EyeCrossedIcon' | ||
export * from './EyeIcon' | ||
export * from './FacebookPeopleIcon' | ||
export * from './FilterCircleIcon' | ||
export * from './FilterIcon' | ||
export * from './FinderIcon' | ||
export * from './FiveStarBgIcon' | ||
export * from './FolderOutlineBgIcon' | ||
export * from './FullScreenIcon' | ||
export * from './GridBgIcon' | ||
export * from './GridDotsIcon' | ||
export * from './GridIcon' | ||
export * from './GridThreeLitIcon' | ||
export * from './GridTwoLitIcon' | ||
export * from './GroupingLessIcon' | ||
export * from './GroupingMoreIcon' | ||
export * from './HomeIcon' | ||
export * from './ImageBorderCircleIcon' | ||
export * from './ImageBorderIcon' | ||
export * from './ImageCrossedBgIcon' | ||
export * from './ImageCrossedIcon' | ||
export * from './ImageIcon' | ||
export * from './ImageStackIcon' | ||
export * from './KeyCircleIcon' | ||
export * from './KeyIcon' | ||
export * from './LinkIcon' | ||
export * from './ListNotSelectedIcon' | ||
export * from './ListSelectedIcon' | ||
export * from './LoaderIcon' | ||
export * from './LockIcon' | ||
export * from './LoopCircleIcon' | ||
export * from './LoopIcon' | ||
export * from './LoupeIcon' | ||
export * from './MaximizeIcon' | ||
export * from './MenuIcon' | ||
export * from './MinimizeIcon' | ||
export * from './MoneyBagIcon' | ||
export * from './MouseLeftClick' | ||
export * from './MouseLeftClickCircleIcon' | ||
export * from './MouseRightClick' | ||
export * from './MoveBgIcon' | ||
export * from './NoDuplicateIcon' | ||
export * from './NoneIcon' | ||
export * from './NoneSelectedIcon' | ||
export * from './NotAllowIcon' | ||
export * from './NotSelectedCircleIcon' | ||
export * from './RecullIcon' | ||
export * from './ReloadIcon' | ||
export * from './ReloadWarningIcon' | ||
export * from './RotateLeftSquareIcon' | ||
export * from './RotateRightSquareIcon' | ||
export * from './SelectedFillCircleIcon' | ||
export * from './ShareIcon' | ||
export * from './ShowDuplicateIcon' | ||
export * from './SmileyHappyIcon' | ||
export * from './SmileySadIcon' | ||
export * from './SortCircleIcon' | ||
export * from './SortDuplicateCircleIcon' | ||
export * from './SortDuplicatesIcon' | ||
export * from './SortIcon' | ||
export * from './SortOptionAlphaIcon' | ||
export * from './SortOptionNumIcon' | ||
export * from './SparkleIcon' | ||
export * from './SprayBgIcon' | ||
export * from './SprayCanIcon' | ||
export * from './SprayCircleIcon' | ||
export * from './StackThreeIcon' | ||
export * from './StackTwoIcon' | ||
export * from './StorageCrossedIcon' | ||
export * from './SurveyModeIcon' | ||
export * from './ThunderBgIcon' | ||
export * from './UploadFolderIcon' | ||
export * from './ViewAllIcon' | ||
export * from './ZoomCircleIcon' | ||
export * from './ZoomIcon' | ||
export * from './BorderSquareIcon'; | ||
export * from './CardBgIcon'; | ||
export * from './CartIcon'; | ||
export * from './CelebrateIcon'; | ||
export * from './CheckFillCircleIcon'; | ||
export * from './ComputerBgIcon'; | ||
export * from './ContactSupportIcon'; | ||
export * from './CouponIcon'; | ||
export * from './CreateProfileIcon'; | ||
export * from './DiamonIcon'; | ||
export * from './DownloadIcon'; | ||
export * from './DublicateStackIcon'; | ||
export * from './DuplicateFillIcon'; | ||
export * from './DuplicateIcon'; | ||
export * from './EditAlbumNameIcon'; | ||
export * from './EditPhotoIcon'; | ||
export * from './ExitAppBgIcon'; | ||
export * from './ExpandIcon'; | ||
export * from './EyeCheckedIcon'; | ||
export * from './EyeCrossedIcon'; | ||
export * from './EyeIcon'; | ||
export * from './FacebookPeopleIcon'; | ||
export * from './FilterCircleIcon'; | ||
export * from './FilterIcon'; | ||
export * from './FinderIcon'; | ||
export * from './FiveStarBgIcon'; | ||
export * from './FolderOutlineBgIcon'; | ||
export * from './FullScreenIcon'; | ||
export * from './GridBgIcon'; | ||
export * from './GridDotsIcon'; | ||
export * from './GridIcon'; | ||
export * from './GridThreeLitIcon'; | ||
export * from './GridTwoLitIcon'; | ||
export * from './GroupingLessIcon'; | ||
export * from './GroupingMoreIcon'; | ||
export * from './HomeIcon'; | ||
export * from './ImageBorderCircleIcon'; | ||
export * from './ImageBorderIcon'; | ||
export * from './ImageCrossedBgIcon'; | ||
export * from './ImageCrossedIcon'; | ||
export * from './ImageIcon'; | ||
export * from './ImageStackIcon'; | ||
export * from './KeyCircleIcon'; | ||
export * from './KeyIcon'; | ||
export * from './LinkIcon'; | ||
export * from './ListNotSelectedIcon'; | ||
export * from './ListSelectedIcon'; | ||
export * from './LoaderIcon'; | ||
export * from './LockIcon'; | ||
export * from './LoopCircleIcon'; | ||
export * from './LoopIcon'; | ||
export * from './LoupeIcon'; | ||
export * from './MaximizeIcon'; | ||
export * from './MenuIcon'; | ||
export * from './MinimizeIcon'; | ||
export * from './MoneyBagIcon'; | ||
export * from './MouseLeftClick'; | ||
export * from './MouseLeftClickCircleIcon'; | ||
export * from './MouseRightClick'; | ||
export * from './MoveBgIcon'; | ||
export * from './NoDuplicateIcon'; | ||
export * from './NoneIcon'; | ||
export * from './NoneSelectedIcon'; | ||
export * from './NotAllowIcon'; | ||
export * from './NotSelectedCircleIcon'; | ||
export * from './RecullIcon'; | ||
export * from './ReloadIcon'; | ||
export * from './ReloadWarningIcon'; | ||
export * from './RotateLeftSquareIcon'; | ||
export * from './RotateRightSquareIcon'; | ||
export * from './SelectedFillCircleIcon'; | ||
export * from './ShareIcon'; | ||
export * from './ShowDuplicateIcon'; | ||
export * from './SmileyHappyIcon'; | ||
export * from './SmileySadIcon'; | ||
export * from './SortCircleIcon'; | ||
export * from './SortDuplicateCircleIcon'; | ||
export * from './SortDuplicatesIcon'; | ||
export * from './SortIcon'; | ||
export * from './SortOptionAlphaIcon'; | ||
export * from './SortOptionNumIcon'; | ||
export * from './SparkleIcon'; | ||
export * from './SprayBgIcon'; | ||
export * from './SprayCanIcon'; | ||
export * from './SprayCircleIcon'; | ||
export * from './StackThreeIcon'; | ||
export * from './StackTwoIcon'; | ||
export * from './StorageCrossedIcon'; | ||
export * from './SurveyModeIcon'; | ||
export * from './ThunderBgIcon'; | ||
export * from './UploadFolderIcon'; | ||
export * from './ViewAllIcon'; | ||
export * from './ZoomCircleIcon'; | ||
export * from './ZoomIcon'; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.