Skip to content

Commit 61ee0a7

Browse files
feat: added common icons
1 parent 4eb425c commit 61ee0a7

35 files changed

+290
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import Svg, {Path} from 'react-native-svg';
3+
4+
import {path} from './path.json';
5+
import type {IconProps} from '../icon-props';
6+
7+
const DEFAULT_SIZE = 24;
8+
const DEFAULT_COLOR = '#000';
9+
10+
export const ArrowForwardIcon = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE, ...props}: IconProps) => (
11+
<Svg viewBox="0 0 24 24" width={size} height={size} {...props}>
12+
<Path fill={color} d={path} />
13+
</Svg>
14+
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "M16.175 13h-12.175v-2h12.175l-5.6-5.6 1.425-1.4 8 8-8 8-1.425-1.4 5.6-5.6z"
3+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import Svg, {Path} from 'react-native-svg';
3+
4+
import {path} from './path.json';
5+
import type {IconProps} from '../icon-props';
6+
7+
const DEFAULT_SIZE = 24;
8+
const DEFAULT_COLOR = '#000';
9+
10+
export const DownloadIcon: React.FC<IconProps> = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE, ...props}) => (
11+
<Svg viewBox="0 0 24 24" width={size} height={size} {...props}>
12+
<Path fill={color} d={path} />
13+
</Svg>
14+
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "M12 16l-5-5 1.4-1.45 2.6 2.6v-8.15h2v8.15l2.6-2.6 1.4 1.45-5 5zM6 20c-0.55 0-1.021-0.196-1.413-0.588s-0.588-0.862-0.588-1.413v-3h2v3h12v-3h2v3c0 0.55-0.196 1.021-0.588 1.413s-0.863 0.588-1.413 0.588h-12z"
3+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import Svg, {Path} from 'react-native-svg';
3+
4+
import {path} from './path.json';
5+
import type {IconProps} from '../icon-props';
6+
7+
const DEFAULT_SIZE = 24;
8+
const DEFAULT_COLOR = '#000';
9+
10+
export const FavoriteFilledIcon: React.FC<IconProps> = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE, ...props}) => (
11+
<Svg viewBox="0 0 24 24" width={size} height={size} {...props}>
12+
<Path fill={color} d={path} />
13+
</Svg>
14+
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "M12 21l-1.45-1.3q-2.525-2.275-4.175-3.925t-2.625-2.963-1.362-2.412-0.387-2.25q0-2.35 1.575-3.925t3.925-1.575q1.3 0 2.475 0.55t2.025 1.55q0.85-1 2.025-1.55t2.475-0.55q2.35 0 3.925 1.575t1.575 3.925q0 1.15-0.387 2.25t-1.362 2.412-2.625 2.963-4.175 3.925l-1.45 1.3z"
3+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import Svg, {Path} from 'react-native-svg';
3+
4+
import {path} from './path.json';
5+
import type {IconProps} from '../icon-props';
6+
7+
const DEFAULT_SIZE = 24;
8+
const DEFAULT_COLOR = '#000';
9+
10+
export const FavoriteIcon: React.FC<IconProps> = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE, ...props}) => (
11+
<Svg viewBox="0 0 24 24" width={size} height={size} {...props}>
12+
<Path fill={color} d={path} />
13+
</Svg>
14+
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "M12 21l-1.45-1.3c-1.683-1.517-3.075-2.825-4.175-3.925s-1.975-2.083-2.625-2.95c-0.65-0.883-1.108-1.692-1.375-2.425-0.25-0.733-0.375-1.483-0.375-2.25 0-1.567 0.525-2.875 1.575-3.925s2.358-1.575 3.925-1.575c0.867 0 1.692 0.183 2.475 0.55s1.458 0.883 2.025 1.55c0.567-0.667 1.242-1.183 2.025-1.55s1.608-0.55 2.475-0.55c1.567 0 2.875 0.525 3.925 1.575s1.575 2.358 1.575 3.925c0 0.767-0.133 1.517-0.4 2.25-0.25 0.733-0.7 1.542-1.35 2.425-0.65 0.867-1.525 1.85-2.625 2.95s-2.492 2.408-4.175 3.925l-1.45 1.3zM12 18.3c1.6-1.433 2.917-2.658 3.95-3.675 1.033-1.033 1.85-1.925 2.45-2.675 0.6-0.767 1.017-1.442 1.25-2.025 0.233-0.6 0.35-1.192 0.35-1.775 0-1-0.333-1.833-1-2.5s-1.5-1-2.5-1c-0.783 0-1.508 0.225-2.175 0.675-0.667 0.433-1.125 0.992-1.375 1.675h-1.9c-0.25-0.683-0.708-1.242-1.375-1.675-0.667-0.45-1.392-0.675-2.175-0.675-1 0-1.833 0.333-2.5 1s-1 1.5-1 2.5c0 0.583 0.117 1.175 0.35 1.775 0.233 0.583 0.65 1.258 1.25 2.025 0.6 0.75 1.417 1.642 2.45 2.675 1.033 1.017 2.35 2.242 3.95 3.675z"
3+
}

src/components/icons/index.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,41 @@
1+
export {MailIcon} from './mail-icon/MailIcon.component';
2+
export {SendIcon} from './send-icon/SendIcon.component';
3+
export {ListIcon} from './list-icon/ListIcon.component';
4+
export {MenuIcon} from './menu-icon/MenuIcon.component';
15
export {DoneIcon} from './done-icon/DoneIcon.component';
26
export {EditIcon} from './edit-icon/EditIcon.component';
37
export {PlusIcon} from './plus-icon/PlusIcon.component';
8+
export {ShareIcon} from './share-icon/ShareIcon.component';
49
export {PhotoIcon} from './photo-icon/PhotoIcon.component';
510
export {TodayIcon} from './today-icon/TodayIcon.component';
611
export {CloseIcon} from './close-icon/CloseIcon.component';
712
export {ErrorIcon} from './error-icon/ErrorIcon.component';
13+
export {UploadIcon} from './upload-icon/UploadIcon.component';
814
export {DeleteIcon} from './delete-icon/DeleteIcon.component';
915
export {SearchIcon} from './search-icon/SearchIcon.component';
1016
export {CommuteIcon} from './commute-icon/CommuteIcon.component';
1117
export {VideoCamIcon} from './videocam-icon/CloseIcon.component';
18+
export {SettingsIcon} from './settings-icon/SettingsIcon.component';
19+
export {FavoriteIcon} from './favorite-icon/FavoriteIcon.component';
20+
export {DownloadIcon} from './download-icon/DownloadIcon.component';
1221
export {LocationIcon} from './location-icon/LocationIcon.component';
1322
export {MoreVertIcon} from './more-vert-icon/MoreVertIcon.component';
1423
export {MusicNoteIcon} from './music-note-icon/MusicNoteIcon.component';
1524
export {ArrowBackIcon} from './arrow-back-icon/ArrowBackIcon.component';
25+
export {StarFilledIcon} from './star-filled-icon/StarFilledIcon.component';
26+
export {MailFilledIcon} from './mail-filled-icon/MailFilledIcon.component';
1627
export {AttachFileIcon} from './attach-file-icon/AttachFileIcon.component';
1728
export {CheckSmallIcon} from './check-small-icon/CheckSmallIcon.component';
29+
export {NavigateNextIcon} from './navigate-next-icon/NavigateNextIcon.component';
1830
export {FileDownloadIcon} from './file-download-icon/FileDownloadIcon.component';
1931
export {NotificationsIcon} from './notifications-icon/NotificationsIcon.component';
2032
export {CommuteFilledIcon} from './commute-filled-icon/CommuteFilledIcon.component';
33+
export {ArrowForwardIcon} from './arrow-forward-icon copy/ArrowForwardIcon.component';
34+
export {FavoriteFilledIcon} from './favorite-filled-icon/FavoriteFilledIcon.component';
35+
export {SettingsFilledIcon} from './settings-filled-icon/SettingsFilledIcon.component';
2136
export {BookmarkFilledIcon} from './bookmark-filled-icon/BookmarkFilledIcon.component';
2237
export {BookmarkBorderIcon} from './bookmark-border-icon/BookmarkBorderIcon.component';
2338
export {LocationFilledIcon} from './location-filled-icon/LocationFilledIcon.component';
39+
export {NavigateBeforeIcon} from './navigate-before-icon/NavigateBeforeIcon.component';
2440
export {NotificationsFilledIcon} from './notifications-filled-icon/NotificationsFilledIcon.component';
2541
export {AccountCircleFilledIcon} from './account-circle-filled-icon/AccountCircleFilledIcon.component';
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import Svg, {Path} from 'react-native-svg';
3+
4+
import {path} from './path.json';
5+
import type {IconProps} from '../icon-props';
6+
7+
const DEFAULT_SIZE = 24;
8+
const DEFAULT_COLOR = '#000';
9+
10+
export const ListIcon: React.FC<IconProps> = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE, ...props}) => (
11+
<Svg viewBox="0 0 24 24" width={size} height={size} {...props}>
12+
<Path fill={color} d={path} />
13+
</Svg>
14+
);

0 commit comments

Comments
 (0)