1
1
import React from 'react' ;
2
2
3
+
4
+ import styles from './Icon.module.css' ;
5
+
3
6
/* eslint-disable max-len */
4
7
5
8
// These icons came from Material Design originally
6
9
// https://material.io/tools/icons/?icon=assignment&style=outline
7
10
8
11
// M.D. 'play_arrow'
9
12
export const BuildIcon = ( ) => (
10
- < svg className = " icon" height = "14" viewBox = "8 4 10 16" width = "12" xmlns = "http://www.w3.org/2000/svg" >
13
+ < svg className = { styles . icon } height = "14" viewBox = "8 4 10 16" width = "12" xmlns = "http://www.w3.org/2000/svg" >
11
14
< path d = "M8 5v14l11-7z" />
12
15
</ svg >
13
16
) ;
14
17
15
18
// M.D. 'keyboard_arrow_down'
16
19
export const ExpandableIcon = ( ) => (
17
- < svg className = " icon" height = "10" viewBox = "6 8 12 8" width = "10" opacity = "0.5" xmlns = "http://www.w3.org/2000/svg" >
20
+ < svg className = { styles . icon } height = "10" viewBox = "6 8 12 8" width = "10" opacity = "0.5" xmlns = "http://www.w3.org/2000/svg" >
18
21
< path d = "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" />
19
22
</ svg >
20
23
) ;
21
24
22
25
// M.D. 'more_horiz'
23
26
export const MoreOptionsIcon = ( ) => (
24
- < svg className = " icon" height = "18" viewBox = "0 0 24 24" width = "18" opacity = "0.5" xmlns = "http://www.w3.org/2000/svg" >
27
+ < svg className = { styles . icon } height = "18" viewBox = "0 0 24 24" width = "18" opacity = "0.5" xmlns = "http://www.w3.org/2000/svg" >
25
28
< path d = "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" />
26
29
</ svg >
27
30
) ;
28
31
29
32
export const MoreOptionsActiveIcon = ( ) => (
30
- < svg className = " icon" height = "18" viewBox = "0 0 24 24" width = "18" xmlns = "http://www.w3.org/2000/svg" >
33
+ < svg className = { styles . icon } height = "18" viewBox = "0 0 24 24" width = "18" xmlns = "http://www.w3.org/2000/svg" >
31
34
< g fillRule = "evenodd" fill = "#428bca" >
32
35
33
36
< path d = "M4,5 h16 a3,3 0 0,1 3,3 v8 a3,3 0 0,1 -3,3 h-16 a3,3 0 0,1 -3,-3 v-8 a3,3 0 0,1 3,-3 Z
@@ -38,27 +41,27 @@ export const MoreOptionsActiveIcon = () => (
38
41
39
42
// M.D. 'settings',
40
43
export const ConfigIcon = ( ) => (
41
- < svg className = " icon" height = "15" viewBox = "0 0 24 24" width = "15" opacity = "0.5" xmlns = "http://www.w3.org/2000/svg" >
44
+ < svg className = { styles . icon } height = "15" viewBox = "0 0 24 24" width = "15" opacity = "0.5" xmlns = "http://www.w3.org/2000/svg" >
42
45
< path d = "M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z" />
43
46
</ svg >
44
47
) ;
45
48
46
49
// M.D. 'help_outline'
47
50
export const HelpIcon = ( ) => (
48
- < svg className = " icon" height = "18" viewBox = "0 0 24 24" width = "18" opacity = "0.5" xmlns = "http://www.w3.org/2000/svg" >
51
+ < svg className = { styles . icon } height = "18" viewBox = "0 0 24 24" width = "18" opacity = "0.5" xmlns = "http://www.w3.org/2000/svg" >
49
52
< path d = "M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z" />
50
53
</ svg >
51
54
) ;
52
55
53
56
export const CheckmarkIcon = ( ) => (
54
- < svg className = " icon icon--checkmark" height = "18" viewBox = "2 2 22 22" width = "18" opacity = "0.5" xmlns = "http://www.w3.org/2000/svg" >
57
+ < svg className = { styles . icon } height = "18" viewBox = "2 2 22 22" width = "18" opacity = "0.5" xmlns = "http://www.w3.org/2000/svg" >
55
58
< path d = "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" />
56
59
</ svg >
57
60
) ;
58
61
59
62
// M.D. 'assignment' (outline)
60
63
export const ClipboardIcon = ( ) => (
61
- < svg className = " icon" height = "18" width = "18" viewBox = "0 0 24 24" xmlns = "http://www.w3.org/2000/svg" >
64
+ < svg className = { styles . icon } height = "18" width = "18" viewBox = "0 0 24 24" xmlns = "http://www.w3.org/2000/svg" >
62
65
< rect x = "7" y = "15" width = "7" height = "2" />
63
66
< rect x = "7" y = "11" width = "10" height = "2" />
64
67
< rect x = "7" y = "7" width = "10" height = "2" />
@@ -68,7 +71,7 @@ export const ClipboardIcon = () => (
68
71
69
72
// M.D. 'close'
70
73
export const Close = ( ) => (
71
- < svg className = " icon" width = "24px" height = "24px" viewBox = "0 0 24 24" >
74
+ < svg className = { styles . icon } width = "24px" height = "24px" viewBox = "0 0 24 24" >
72
75
< path d = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41z" />
73
76
</ svg >
74
77
) ;
0 commit comments