diff --git a/Fonts/SimpleLineIcons.ttf b/Fonts/SimpleLineIcons.ttf new file mode 100644 index 000000000..6ecb68683 Binary files /dev/null and b/Fonts/SimpleLineIcons.ttf differ diff --git a/README.md b/README.md index b583d57b5..89cb7334a 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Perfect for buttons, logos and nav/tab bars. Easy to extend, style and integrate * [`MaterialIcons`](https://www.google.com/design/icons/) by Google, Inc. (v2.2.3, **932** icons) * [`Octicons`](http://octicons.github.com) by Github, Inc. (v3.5.0, **166** icons) * [`Zocial`](http://zocial.smcllns.com/) by Sam Collins (v1.0, **100** icons) +* [`SimpleLineIcons`](http://simplelineicons.com/) by Sabbir & Contributors (v2.4.1, **189** icons) ## Installation diff --git a/RNIMigration.js b/RNIMigration.js index 1cd0b239b..623fd012b 100644 --- a/RNIMigration.js +++ b/RNIMigration.js @@ -6,13 +6,15 @@ var Foundation = require('react-native-vector-icons/Foundation'); var Ionicons = require('react-native-vector-icons/Ionicons'); var MaterialIcons = require('react-native-vector-icons/MaterialIcons'); var Zocial = require('react-native-vector-icons/Zocial'); +var SimpleLineIcons = require('react-native-vector-icons/SimpleLineIcons'); var iconSetMap = { fontawesome: FontAwesome, foundation: Foundation, ion: Ionicons, material: MaterialIcons, - zocial: Zocial + zocial: Zocial, + simpleline: SimpleLineIcons }; // This is a composition is a drop in replacement for users migrating from the diff --git a/SimpleLineIcons.js b/SimpleLineIcons.js new file mode 100644 index 000000000..575740990 --- /dev/null +++ b/SimpleLineIcons.js @@ -0,0 +1,203 @@ +/** + * SimpleLineIcons icon set component. + * Usage: + */ + +import createIconSet from './lib/create-icon-set'; +const glyphMap = { + "user": 57349, + "people": 57345, + "user-female": 57344, + "user-follow": 57346, + "user-following": 57347, + "user-unfollow": 57348, + "login": 57446, + "logout": 57445, + "emotsmile": 57377, + "phone": 58880, + "call-end": 57416, + "call-in": 57415, + "call-out": 57414, + "map": 57395, + "location-pin": 57494, + "direction": 57410, + "directions": 57409, + "compass": 57413, + "layers": 57396, + "menu": 58881, + "list": 57447, + "options-vertical": 58882, + "options": 58883, + "arrow-down": 58884, + "arrow-left": 58885, + "arrow-right": 58886, + "arrow-up": 58887, + "arrow-up-circle": 57464, + "arrow-left-circle": 57466, + "arrow-right-circle": 57465, + "arrow-down-circle": 57467, + "check": 57472, + "clock": 57473, + "plus": 57493, + "minus": 58901, + "close": 57474, + "event": 58905, + "exclamation": 58903, + "organization": 58902, + "trophy": 57350, + "screen-smartphone": 57360, + "screen-desktop": 57361, + "plane": 57362, + "notebook": 57363, + "mustache": 57364, + "mouse": 57365, + "magnet": 57366, + "energy": 57376, + "disc": 57378, + "cursor": 57454, + "cursor-move": 57379, + "crop": 57380, + "chemistry": 57382, + "speedometer": 57351, + "shield": 57358, + "screen-tablet": 57359, + "magic-wand": 57367, + "hourglass": 57368, + "graduation": 57369, + "ghost": 57370, + "game-controller": 57371, + "fire": 57372, + "eyeglass": 57373, + "envelope-open": 57374, + "envelope-letter": 57375, + "bell": 57383, + "badge": 57384, + "anchor": 57385, + "wallet": 57386, + "vector": 57387, + "speech": 57388, + "puzzle": 57389, + "printer": 57390, + "present": 57391, + "playlist": 57392, + "pin": 57393, + "picture": 57394, + "handbag": 57397, + "globe-alt": 57398, + "globe": 57399, + "folder-alt": 57401, + "folder": 57481, + "film": 57402, + "feed": 57403, + "drop": 57406, + "drawer": 57407, + "docs": 57408, + "doc": 57477, + "diamond": 57411, + "cup": 57412, + "calculator": 57417, + "bubbles": 57418, + "briefcase": 57419, + "book-open": 57420, + "basket-loaded": 57421, + "basket": 57422, + "bag": 57423, + "action-undo": 57424, + "action-redo": 57425, + "wrench": 57426, + "umbrella": 57427, + "trash": 57428, + "tag": 57429, + "support": 57430, + "frame": 57400, + "size-fullscreen": 57431, + "size-actual": 57432, + "shuffle": 57433, + "share-alt": 57434, + "share": 57435, + "rocket": 57436, + "question": 57437, + "pie-chart": 57438, + "pencil": 57439, + "note": 57440, + "loop": 57444, + "home": 57449, + "grid": 57450, + "graph": 57451, + "microphone": 57443, + "music-tone-alt": 57441, + "music-tone": 57442, + "earphones-alt": 57404, + "earphones": 57405, + "equalizer": 57452, + "like": 57448, + "dislike": 57453, + "control-start": 57455, + "control-rewind": 57456, + "control-play": 57457, + "control-pause": 57458, + "control-forward": 57459, + "control-end": 57460, + "volume-1": 57503, + "volume-2": 57504, + "volume-off": 57505, + "calendar": 57461, + "bulb": 57462, + "chart": 57463, + "ban": 57468, + "bubble": 57469, + "camrecorder": 57470, + "camera": 57471, + "cloud-download": 57475, + "cloud-upload": 57476, + "envelope": 57478, + "eye": 57479, + "flag": 57480, + "heart": 57482, + "info": 57483, + "key": 57484, + "link": 57485, + "lock": 57486, + "lock-open": 57487, + "magnifier": 57488, + "magnifier-add": 57489, + "magnifier-remove": 57490, + "paper-clip": 57491, + "paper-plane": 57492, + "power": 57495, + "refresh": 57496, + "reload": 57497, + "settings": 57498, + "star": 57499, + "symbol-female": 57500, + "symbol-male": 57501, + "target": 57502, + "credit-card": 57381, + "paypal": 58888, + "social-tumblr": 57354, + "social-twitter": 57353, + "social-facebook": 57355, + "social-instagram": 58889, + "social-linkedin": 58890, + "social-pinterest": 58891, + "social-github": 58892, + "social-google": 58893, + "social-reddit": 58894, + "social-skype": 58895, + "social-dribbble": 57357, + "social-behance": 58896, + "social-foursqare": 58897, + "social-soundcloud": 58898, + "social-spotify": 58899, + "social-stumbleupon": 58900, + "social-youtube": 57352, + "social-dropbox": 57356, + "social-vkontakte": 58904, + "social-steam": 58912 +}; + +let SimpleLineIcons = createIconSet(glyphMap, 'simple-line-icons', 'SimpleLineIcons.ttf'); + +module.exports = SimpleLineIcons; +module.exports.glyphMap = glyphMap; + diff --git a/bower.json b/bower.json index b6bc23805..29a62a577 100644 --- a/bower.json +++ b/bower.json @@ -16,6 +16,7 @@ ], "devDependencies": { "css-social-buttons": "~1.0.0", - "foundation-icon-fonts": "*" + "foundation-icon-fonts": "*", + "simple-line-icons": "2.4.1" } } diff --git a/package.json b/package.json index cbc2e977d..729530778 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "scripts": { "test": "eslint index.js lib/{create-icon-set-from-fontello,create-icon-set-from-icomoon,create-icon-set,icon-button,tab-bar-item-ios,toolbar-android}.js", - "build": "rm -rf {Fonts,Entypo.js,EvilIcons.js,FontAwesome.js,Foundation.js,Ionicons.js,MaterialIcons.js,Octicons.js,Zocial.js} && mkdir Fonts && npm run build-entypo && npm run build-evilicons && npm run build-fontawesome && npm run build-foundation && npm run build-ionicons && npm run build-materialicons && npm run build-octicons && npm run build-zocial", + "build": "rm -rf {Fonts,Entypo.js,EvilIcons.js,FontAwesome.js,Foundation.js,Ionicons.js,MaterialIcons.js,Octicons.js,Zocial.js,SimpleLineIcons.js} && mkdir Fonts && npm run build-entypo && npm run build-evilicons && npm run build-fontawesome && npm run build-foundation && npm run build-ionicons && npm run build-materialicons && npm run build-octicons && npm run build-zocial && npm run build-simplelineicons", "build-entypo": "mkdir -p tmp/svg && curl https://dl.dropboxusercontent.com/u/4339492/entypo.zip > tmp/entypo.zip && unzip -j tmp/entypo.zip *.svg -x __MACOSX/* -d tmp/svg && fontcustom compile tmp/svg -o tmp -n Entypo -t css -h && node generate-icon tmp/Entypo.css --componentName=Entypo --fontFamily=Entypo > Entypo.js && cp tmp/Entypo.ttf Fonts && rm -rf {tmp,.fontcustom-manifest.json}", "build-evilicons": "fontcustom compile node_modules/evil-icons/assets/icons -o tmp -n EvilIcons -t css -h && node generate-icon tmp/EvilIcons.css --prefix=.icon-ei- --componentName=EvilIcons --fontFamily=EvilIcons > EvilIcons.js && cp tmp/EvilIcons.ttf Fonts && rm -rf {tmp,.fontcustom-manifest.json}", "build-fontawesome": "node generate-icon node_modules/font-awesome/css/font-awesome.css --prefix=.fa- --componentName=FontAwesome --fontFamily=FontAwesome > FontAwesome.js && cp node_modules/font-awesome/fonts/fontawesome-webfont.ttf Fonts/FontAwesome.ttf", @@ -16,7 +16,8 @@ "build-ionicons": "node generate-icon node_modules/ionicons/dist/css/ionicons.css --prefix=.ion- --componentName=Ionicons --fontFamily=Ionicons > Ionicons.js && cp node_modules/ionicons/dist/fonts/ionicons.ttf Fonts/Ionicons.ttf", "build-materialicons": "node generate-material-icons node_modules/material-design-icons/iconfont/codepoints --componentName=MaterialIcons --fontFamily='Material Icons' > MaterialIcons.js && cp node_modules/material-design-icons/iconfont/MaterialIcons-Regular.ttf Fonts/MaterialIcons.ttf", "build-octicons": "node generate-icon node_modules/octicons/octicons/octicons.css --prefix=.octicon- --componentName=Octicons --fontFamily=octicons > Octicons.js && cp node_modules/octicons/octicons/octicons.ttf Fonts/Octicons.ttf", - "build-zocial": "node generate-icon bower_components/css-social-buttons/css/zocial.css --prefix=.zocial. --componentName=Zocial --fontFamily=zocial > Zocial.js && cp bower_components/css-social-buttons/css/zocial.ttf Fonts/Zocial.ttf" + "build-zocial": "node generate-icon bower_components/css-social-buttons/css/zocial.css --prefix=.zocial. --componentName=Zocial --fontFamily=zocial > Zocial.js && cp bower_components/css-social-buttons/css/zocial.ttf Fonts/Zocial.ttf", + "build-simplelineicons": "node generate-icon bower_components/simple-line-icons/css/simple-line-icons.css --prefix=.icon- --componentName=SimpleLineIcons --fontFamily=simple-line-icons > SimpleLineIcons.js && cp bower_components/simple-line-icons/fonts/Simple-Line-Icons.ttf Fonts/SimpleLineIcons.ttf" }, "keywords": [ "react-native",