@@ -18,31 +18,125 @@ const gridStyle = {
18
18
}
19
19
20
20
const iconKeyToHeaderMap = {
21
- WEB_CONTENT_ICONS : 'Web Content' ,
22
- USER_ACTIONS_ICONS : 'User Actions' ,
23
- MESSAGES_ICONS : 'Messages' ,
24
- USERS_ICONS : 'Users' ,
25
- GENDER_SEXUALITY_ICONS : 'Gender & Sexuality' ,
26
- ACCESSIBILITY_ICONS : 'Accessibility' ,
27
- VIEW_ADJUSTMENT_ICONS : 'View Adjustment' ,
28
- LITERAL_OBJECTS_ICONS : 'Literal Objects' ,
29
- SHAPES_ICONS : 'Shapes' ,
30
- ITEM_SELECTION_ICONS : 'Item Selection' ,
31
- MEDIA_ICONS : 'Media' ,
32
- POINTERS_ICONS : 'Pointers' ,
33
- MOBILE_ICONS : 'Mobile' ,
34
- COMPUTER_ICONS : 'Computer' ,
35
- FILE_SYSTEM_ICONS : 'File System' ,
36
- TECHNOLOGIES_ICONS : 'Technologies' ,
37
- RATING_ICONS : 'Rating' ,
38
- AUDIO_ICONS : 'Audio' ,
39
- MAP_LOCATIONS_TRANSPORTATION_ICONS : 'Map, Locations & Transportation' ,
40
- TABLES_ICONS : 'Tables' ,
41
- TEXT_EDITOR_ICONS : 'Text Editor' ,
42
- CURRENCY_ICONS : 'Currency' ,
43
- PAYMENT_OPTIONS_ICONS : 'Payment Options' ,
44
- NETWORKS_AND_WEBSITE_ICONS : 'Networks And Website' ,
45
- ICON_ALIASES : 'Icon Aliases' ,
21
+ ACCESSIBILITY_ICONS : {
22
+ title : 'Accessibility' ,
23
+ description : 'Icons can represent accessibility standards.' ,
24
+ } ,
25
+ ARROWS_ICONS : {
26
+ title : 'Arrows' ,
27
+ description : 'Icons can be used to indicate a direction.' ,
28
+ } ,
29
+ AUDIO_VIDEO_ICONS : {
30
+ title : 'Audio & Video' ,
31
+ description : 'Icons can be used to represent common ways to interact with audio and video.' ,
32
+ } ,
33
+ BUSINESS_ICONS : {
34
+ title : 'Business' ,
35
+ description : 'Icons can be used to represent business and common business actions.' ,
36
+ } ,
37
+ CHESS_ICONS : {
38
+ title : 'Chess' ,
39
+ description : 'Icons which represent the game chess.' ,
40
+ } ,
41
+ CODE_ICONS : {
42
+ title : 'Code' ,
43
+ description : 'Icons can represent programming and programming tools.' ,
44
+ } ,
45
+ COMMUNICATION_ICONS : {
46
+ title : 'Communication' ,
47
+ description : 'Icons which represent common ways of communication.' ,
48
+ } ,
49
+ COMPUTERS_ICONS : {
50
+ title : 'Computers' ,
51
+ description : 'Icons can represent computing devices, or types of content found on a computer.' ,
52
+ } ,
53
+ CURRENCY_ICONS : {
54
+ title : 'Currency' ,
55
+ description : 'Icons can represent units of currency.' ,
56
+ } ,
57
+ DATE_TIME_ICONS : {
58
+ title : 'Date & Time' ,
59
+ description : 'Icons that represent common ways of showing date and time.' ,
60
+ } ,
61
+ DESIGN_ICONS : {
62
+ title : 'Design' ,
63
+ description : 'Icons can represent common design related symbols or techniques.' ,
64
+ } ,
65
+ EDITORS_ICONS : {
66
+ title : 'Editors' ,
67
+ description : 'Icons can represent text editors and common editor actions.' ,
68
+ } ,
69
+ FILES_ICONS : {
70
+ title : 'Files' ,
71
+ description : 'Icons can represent elements of a computer and its file system.' ,
72
+ } ,
73
+ GENDERS_ICONS : {
74
+ title : 'Genders' ,
75
+ description : 'Icons can represent genders or types of sexuality.' ,
76
+ } ,
77
+ HANDS_ICONS : {
78
+ title : 'Hands & Gestures' ,
79
+ description : 'Icons can represent hand signals and gestures.' ,
80
+ } ,
81
+ HEALTH_ICONS : {
82
+ title : 'Health' ,
83
+ description : 'Icons which represent common health symbols.' ,
84
+ } ,
85
+ IMAGES_ICONS : {
86
+ title : 'Images' ,
87
+ description : 'Icons that represent common image symbols and actions.' ,
88
+ } ,
89
+ INTERFACES_ICONS : {
90
+ title : 'Interfaces' ,
91
+ description : 'Icons can represent common actions a user can take or use.' ,
92
+ } ,
93
+ MAPS_ICONS : {
94
+ title : 'Maps' ,
95
+ description : 'Icons can be used to represent elements on a map.' ,
96
+ } ,
97
+ OBJECTS_ICONS : {
98
+ title : 'Objects' ,
99
+ description : 'Icons can be used to represent common objects.' ,
100
+ } ,
101
+ PAYMENTS_SHOPPING_ICONS : {
102
+ title : 'Payments & Shopping' ,
103
+ description : 'Icons can represent common forms of payment and shopping actions.' ,
104
+ } ,
105
+ SHAPES_ICONS : {
106
+ title : 'Shapes' ,
107
+ description : 'Icons can be used to create shapes.' ,
108
+ } ,
109
+ SPINNERS_ICONS : {
110
+ title : 'Spinners' ,
111
+ description : 'Icons can represent loading.' ,
112
+ } ,
113
+ SPORTS_ICONS : {
114
+ title : 'Sports' ,
115
+ description : 'Icons which represent sports.' ,
116
+ } ,
117
+ STATUS_ICONS : {
118
+ title : 'Status' ,
119
+ description : 'Icons can represent different states.' ,
120
+ } ,
121
+ USERS_PEOPLE_ICONS : {
122
+ title : 'Users & People' ,
123
+ description : 'Icons can represent users or people.' ,
124
+ } ,
125
+ BRANDS_ICONS : {
126
+ title : 'Brands' ,
127
+ description : 'Icons can represent logos to common brands.' ,
128
+ } ,
129
+ ICON_ALIASES : {
130
+ title : 'Icon Aliases' ,
131
+ description : 'Some of icons have usefull aliases.' ,
132
+ } ,
133
+ DEPRECATED : {
134
+ title : 'Deprecated' ,
135
+ description : [
136
+ 'Icons which where removed in FontAwesome 5, but pointed them to another icon which matches or is similar for ' ,
137
+ 'compatibility reasons.' ,
138
+ ] . join ( '' ) ,
139
+ } ,
46
140
}
47
141
48
142
const similarityScore = ( strA , strB ) => {
@@ -104,9 +198,13 @@ export default class IconSearch extends Component {
104
198
return iconKeys . map ( iconKey => (
105
199
< Grid key = { iconKey } columns = { 5 } doubling >
106
200
< Grid . Column width = { 16 } >
107
- < Header as = 'h3' textAlign = 'left' dividing >
108
- { iconKeyToHeaderMap [ iconKey ] }
109
- </ Header >
201
+ < Header
202
+ as = 'h3'
203
+ content = { iconKeyToHeaderMap [ iconKey ] . title }
204
+ dividing
205
+ subheader = { iconKeyToHeaderMap [ iconKey ] . description }
206
+ textAlign = 'left'
207
+ />
110
208
</ Grid . Column >
111
209
{ SUI [ iconKey ] . map ( this . renderIconColumn ) }
112
210
</ Grid >
@@ -153,10 +251,10 @@ export default class IconSearch extends Component {
153
251
154
252
< Message >
155
253
Semantic includes a complete port of{ ' ' }
156
- < a href = 'http ://fontawesome.io/whats-new/ ' rel = 'noopener noreferrer' target = '_blank' > Font Awesome 4.7.0 </ a >
157
- { ' ' } designed by{ ' ' }
158
- < a href = 'http ://www. twitter.com/davegandy ' rel = 'noopener noreferrer' > Dave Gandy </ a > for its standard icon
159
- set.
254
+ < a href = 'https ://fontawesome.com/ ' rel = 'noopener noreferrer' target = '_blank' > Font Awesome 5.0.8 </ a >
255
+ { ' ' } designed by the { ' ' }
256
+ < a href = 'https ://twitter.com/fontawesome ' rel = 'noopener noreferrer' > FontAwesome </ a > for its standard icon
257
+ { ' ' } set.
160
258
</ Message >
161
259
162
260
< Form >
0 commit comments