Skip to content

Commit 70a7811

Browse files
committed
Initial Commit
0 parents  commit 70a7811

26 files changed

+952
-0
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015", "react", "stage-0"],
3+
}

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
lib/
3+
npm-debug.log

.idea/workspace.xml

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.jshintrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"esnext": true,
3+
"camelcase": true,
4+
"curly": true,
5+
"eqeqeq": true,
6+
"forin": true,
7+
"freeze": true,
8+
"immed": true,
9+
"latedef": "nofunc",
10+
"newcap": true,
11+
"noarg": true,
12+
"noempty": true,
13+
"nonbsp": true,
14+
"nonew": true,
15+
"undef": true,
16+
"unused": true,
17+
"node": true
18+
}

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
src/
2+
.gitignore
3+
.jshintrc

LICENSE-MIT

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2016 Aleksandar Chalakov, Code Foundries
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

README.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
material-ui-country-flags
2+
=========================
3+
4+
Library with country flag icons for [Material-UI](http://www.material-ui.com/#/). Initially created for use in [Universal Relay Boilerplate](https://github.com/codefoundries/UniversalRelayBoilerplate) by [Code Foundries](http://codefoundries.com/).
5+
6+
## Installation
7+
8+
```shell
9+
npm install material-ui-country-flags --save
10+
```
11+
12+
## Versions
13+
14+
For React 0.14 and Material-UI 0.14 please use version 2.
15+
For React 15 and Material-UI 0.15 please use version 3 and above.
16+
17+
## Usage
18+
19+
```javascript
20+
import React from 'react';
21+
import IconButton from 'material-ui/lib/icon-button';
22+
23+
import {
24+
Icon_Flag_BG,
25+
Icon_Flag_US
26+
} from 'material-ui-country-flags';
27+
28+
class MyComponent extends React.Component
29+
{
30+
render( )
31+
{
32+
return(
33+
<div>
34+
<IconButton><Icon_Flag_BG /></IconButton>
35+
<IconButton><Icon_Flag_US /></IconButton>
36+
</div>
37+
);
38+
}
39+
}
40+
41+
```
42+
43+
For more information:
44+
45+
For list of icons refer to [the src folder](src/).
46+
47+
* [Live demo](http://universal-relay-boilerplate.herokuapp.com/mui/icons_country_flags).
48+
49+
* [Source Code](https://github.com/codefoundries/UniversalRelayBoilerplate/blob/master/units/starter-kit-example-mui/webapp/components/MUI_Icons_CountryFlags.jsx) of live demo.
50+
51+
52+
## Contributing
53+
54+
All existing icons are modified versions of icons from [lipis/flag-icon-css](https://github.com/lipis/flag-icon-css/tree/master/flags/4x3). An eventual goal of the project would be to have all of those SVG files converted to Material-UI icons.
55+
56+
In lieu of a formal styleguide, take care to maintain the existing coding style.
57+
Check out [existing issues and help wanted](https://github.com/codefoundries/material-ui-country-flags/issues).
58+
59+
60+
## Release History
61+
62+
[Releases on Github project](https://github.com/codefoundries/material-ui-country-flags/releases/).

lib/Icon_Flag_BG.js

+35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Icon_Flag_DE.js

+35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Icon_Flag_FR.js

+35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Icon_Flag_IN.js

+60
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)