Skip to content

Commit c80d7ca

Browse files
committed
Final version of 0.1.0
1 parent 500d54b commit c80d7ca

1,323 files changed

Lines changed: 19346 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.githooks/pre-commit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -o pipefail
5+
6+
npm run lint

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Create Relase & Publish Package
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/create-release@v1
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
with:
15+
tag_name: ${{ github.ref }}
16+
release_name: Release ${{ github.ref }}
17+
draft: false
18+
prerelease: false
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: '12.x'
22+
registry-url: 'https://registry.npmjs.org'
23+
- run: npm install
24+
- run: npm publish
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "tsc",
88
"generate": "rm -rf src/* && node generator.js",
9-
"lint": "eslint --ext js,ts,tsx ./generator.js",
9+
"lint": "eslint --ext js,ts,tsx src ./generator.js",
1010
"lint:fix": "npm run lint -- --fix",
1111
"test": "jest --config jestconfig.json --passWithNoTests",
1212
"prepare": "npm run build",

readme.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
React Material Icons
22
====================
33

4+
[![npm version](https://badge.fury.io/js/%40aboutbits%2Freact-material-icons.svg)](https://badge.fury.io/js/%40aboutbits%2Freact-material-icons)
5+
46
This package includes all [Material Icons](https://material.io/resources/icons/?style=baseline) as reusable React components.
57

68
## Table of content
@@ -13,11 +15,13 @@ This package includes all [Material Icons](https://material.io/resources/icons/?
1315
## Usage
1416

1517
First, you have to install the package:
18+
1619
```bash
1720
npm install @aboutbits/react-material-icons
1821
```
1922

2023
Second, you can use the icons in you React application like this:
24+
2125
```jsx
2226
import React from 'react'
2327

@@ -33,13 +37,15 @@ SVG related parameters like height and width can be passed as props.
3337
## Generate Components
3438

3539
To generate the components, simply run the following command:
40+
3641
```bash
3742
npm run generate
3843
```
3944

4045
## Build & Publish
4146

4247
To publish the package commit all changes and push them to master. Then run one of the following commands locally:
48+
4349
```bash
4450
npm version patch
4551
npm version minor
@@ -63,4 +69,4 @@ For support, please contact [info@aboutbits.it](mailto:info@aboutbits.it).
6369

6470
### License
6571

66-
The MIT License (MIT). Please see the [license file](license.md) for more information.
72+
The MIT License (MIT). Please see the [license file](license.md) for more information.

src/components/Icon360.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react'
2+
import { IconProps } from './types'
3+
const Icon360: React.FC<IconProps> = (props) => (
4+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
5+
<path d="M0 0h24v24H0z" fill="none" />
6+
<path d="M12 7C6.48 7 2 9.24 2 12c0 2.24 2.94 4.13 7 4.77V20l4-4-4-4v2.73c-3.15-.56-5-1.9-5-2.73 0-1.06 3.04-3 8-3s8 1.94 8 3c0 .73-1.46 1.89-4 2.53v2.05c3.53-.77 6-2.53 6-4.58 0-2.76-4.48-5-10-5z" />
7+
</svg>
8+
)
9+
10+
export { Icon360 }

src/components/Icon3dRotation.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react'
2+
import { IconProps } from './types'
3+
const Icon3dRotation: React.FC<IconProps> = (props) => (
4+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
5+
<path d="M0 0h24v24H0z" fill="none" />
6+
<path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-.02-.38-.07-.56-.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61-.31.2-.09.37-.2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07-.48 0-.36-.06-.68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.05 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12.26-.18.54-.18.85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.15-.05.3-.08.48-.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.14.27-.25.37-.11.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6.07s.33.13.45.23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.55.33-.95.33zm8.55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2.3c.55 0 1.06-.09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26-.99.26-1.57v-.4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2zm-.39 3.16c0 .42-.05.79-.14 1.13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h-.91V9.12h.97c.72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99v.4zM12 0l-.66.03 3.81 3.81 1.33-1.33c3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0z" />
7+
</svg>
8+
)
9+
10+
export { Icon3dRotation }

src/components/Icon4k.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react'
2+
import { IconProps } from './types'
3+
const Icon4k: React.FC<IconProps> = (props) => (
4+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
5+
<path d="M0 0h24v24H0V0z" fill="none" />
6+
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 10.5h-1V15H9.5v-1.5h-3V9H8v3h1.5V9H11v3h1v1.5zm6 1.5h-1.75l-1.75-2.25V15H13V9h1.5v2.25L16.25 9H18l-2.25 3L18 15z" />
7+
</svg>
8+
)
9+
10+
export { Icon4k }

src/components/Icon5g.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from 'react'
2+
import { IconProps } from './types'
3+
const Icon5g: React.FC<IconProps> = (props) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
enable-background="new 0 0 24 24"
7+
viewBox="0 0 24 24"
8+
{...props}
9+
>
10+
<g>
11+
<rect fill="none" height="24" width="24" />
12+
</g>
13+
<g>
14+
<g>
15+
<path d="M17,13h2v2h-5V9h7c0-1.1-0.9-2-2-2h-5c-1.1,0-2,0.9-2,2v6c0,1.1,0.9,2,2,2h5c1.1,0,2-0.9,2-2v-4h-4V13z" />
16+
<path d="M3,13h5v2H3v2h5c1.1,0,2-0.9,2-2v-2c0-1.1-0.9-2-2-2H5V9h5V7H3V13z" />
17+
</g>
18+
</g>
19+
</svg>
20+
)
21+
22+
export { Icon5g }

src/components/Icon6FtApart.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react'
2+
import { IconProps } from './types'
3+
const Icon6FtApart: React.FC<IconProps> = (props) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
enable-background="new 0 0 24 24"
7+
viewBox="0 0 24 24"
8+
{...props}
9+
>
10+
<rect fill="none" height="24" width="24" x="0" />
11+
<path d="M6,6c1.1,0,2-0.9,2-2S7.1,2,6,2S4,2.9,4,4S4.9,6,6,6z M10,9.43c0-0.81-0.48-1.53-1.22-1.85C7.93,7.21,6.99,7,6,7 C5.01,7,4.07,7.21,3.22,7.58C2.48,7.9,2,8.62,2,9.43V10h8V9.43z M18,6c1.1,0,2-0.9,2-2s-0.9-2-2-2s-2,0.9-2,2S16.9,6,18,6z M22,9.43 c0-0.81-0.48-1.53-1.22-1.85C19.93,7.21,18.99,7,18,7c-0.99,0-1.93,0.21-2.78,0.58C14.48,7.9,14,8.62,14,9.43V10h8V9.43z M19,17 v-2.01L5,15v2l-3-3l3-3v2.01L19,13v-2l3,3L19,17z M10,19v-1H7.5C7.22,18,7,18.22,7,18.5v3C7,21.78,7.22,22,7.5,22h2 c0.28,0,0.5-0.22,0.5-0.5V20c0-0.28-0.22-0.5-0.5-0.5H8V19H10z M9,20.5V21H8v-0.5H9z M17.5,19h-1v3h-1v-3h-1v-1h3V19z M12.5,19v0.5 h1v1h-1V22h-1v-4H14v1H12.5z" />
12+
</svg>
13+
)
14+
15+
export { Icon6FtApart }

src/components/IconAcUnit.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react'
2+
import { IconProps } from './types'
3+
const IconAcUnit: React.FC<IconProps> = (props) => (
4+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
5+
<path d="M0 0h24v24H0z" fill="none" />
6+
<path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.24 3.24 1.41 1.42L9 13h2v2l-4.66 4.66 1.42 1.41L11 17.83V22h2v-4.17l3.24 3.24 1.42-1.41L13 15v-2h2l4.66 4.66 1.41-1.42L17.83 13H22z" />
7+
</svg>
8+
)
9+
10+
export { IconAcUnit }

0 commit comments

Comments
 (0)