Skip to content

Commit 4ad077f

Browse files
authored
Merge pull request #22 from aboutbits/ignore-certain-icons
Ignore certain icons
2 parents ca009e1 + c335ac1 commit 4ad077f

6 files changed

Lines changed: 54 additions & 17 deletions

File tree

generator.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const ICON_FAMILIES = [
1111
{ id: 'materialiconstwotone', postfix: 'TwoTone' },
1212
]
1313

14+
const ignoredIcons = [
15+
'addchart', // This icon exists twice 'addchart' and 'add_chart'. That's why we decide to only use one version, so that we don't get naming collisions.
16+
]
17+
1418
;(async () => {
1519
generatePropsFile()
1620

@@ -21,6 +25,8 @@ const ICON_FAMILIES = [
2125
const icons = await JSON.parse(data)
2226

2327
for (let i = 0; i < icons.icons.length; i++) {
28+
if (ignoredIcons.includes(icons.icons[i].name)) continue
29+
2430
generateComponentsForAllFamilies(icons.icons[i])
2531
}
2632
})()

src/IconAddChartOutlined.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { IconProps } from './types'
33

4-
const IconAddchartOutlined: React.FC<IconProps> = ({ ...props }) => (
4+
const IconAddChartOutlined: React.FC<IconProps> = ({ ...props }) => (
55
<svg
66
xmlns="http://www.w3.org/2000/svg"
77
enableBackground="new 0 0 24 24"
@@ -11,9 +11,17 @@ const IconAddchartOutlined: React.FC<IconProps> = ({ ...props }) => (
1111
{props.title && <title>{props.title}</title>}
1212
<g>
1313
<rect fill="none" height="24" width="24" />
14-
<path d="M22,5v2h-3v3h-2V7h-3V5h3V2h2v3H22z M19,19H5V5h6V3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2v-6h-2V19z M15,13v4h2v-4H15z M11,17h2V9h-2V17z M9,17v-6H7v6H9z" />
14+
</g>
15+
<g>
16+
<g>
17+
<path d="M19,19H5V5h9V3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2v-9h-2V19z" />
18+
<rect height="4" width="2" x="15" y="13" />
19+
<rect height="7" width="2" x="7" y="10" />
20+
<rect height="10" width="2" x="11" y="7" />
21+
<polygon points="19,5 19,3 17,3 17,5 15,5 15,7 17,7 17,9 19,9 19,7 21,7 21,5" />
22+
</g>
1523
</g>
1624
</svg>
1725
)
1826

19-
export { IconAddchartOutlined as default }
27+
export { IconAddChartOutlined as default }

src/IconAddChartRounded.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { IconProps } from './types'
33

4-
const IconAddchartRounded: React.FC<IconProps> = ({ ...props }) => (
4+
const IconAddChartRounded: React.FC<IconProps> = ({ ...props }) => (
55
<svg
66
xmlns="http://www.w3.org/2000/svg"
77
enableBackground="new 0 0 24 24"
@@ -11,9 +11,17 @@ const IconAddchartRounded: React.FC<IconProps> = ({ ...props }) => (
1111
{props.title && <title>{props.title}</title>}
1212
<g>
1313
<rect fill="none" height="24" width="24" />
14-
<path d="M11,10c0-0.55,0.45-1,1-1s1,0.45,1,1v7h-2V10z M20,13c-0.55,0-1,0.45-1,1v5H5V5h5c0.55,0,1-0.45,1-1c0-0.55-0.45-1-1-1H5 C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2v-5C21,13.45,20.55,13,20,13z M21,5h-2V3c0-0.55-0.45-1-1-1s-1,0.45-1,1v2 h-2c-0.55,0-1,0.45-1,1c0,0.55,0.45,1,1,1h2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V7h2c0.55,0,1-0.45,1-1C22,5.45,21.55,5,21,5z M16,13 c-0.55,0-1,0.45-1,1v3h2v-3C17,13.45,16.55,13,16,13z M7,12v5h2v-5c0-0.55-0.45-1-1-1S7,11.45,7,12z" />
14+
</g>
15+
<g>
16+
<g>
17+
<path d="M16,17c0.55,0,1-0.45,1-1v-2c0-0.55-0.45-1-1-1s-1,0.45-1,1v2C15,16.55,15.45,17,16,17z" />
18+
<path d="M20,10c-0.55,0-1,0.45-1,1v8H5V5h8c0.55,0,1-0.45,1-1s-0.45-1-1-1H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14 c1.1,0,2-0.9,2-2v-8C21,10.45,20.55,10,20,10z" />
19+
<path d="M7,11v5c0,0.55,0.45,1,1,1s1-0.45,1-1v-5c0-0.55-0.45-1-1-1S7,10.45,7,11z" />
20+
<path d="M11,8v8c0,0.55,0.45,1,1,1s1-0.45,1-1V8c0-0.55-0.45-1-1-1S11,7.45,11,8z" />
21+
<path d="M16,7h1v1c0,0.55,0.45,1,1,1s1-0.45,1-1V7h1c0.55,0,1-0.45,1-1s-0.45-1-1-1h-1V4c0-0.55-0.45-1-1-1s-1,0.45-1,1v1h-1 c-0.55,0-1,0.45-1,1S15.45,7,16,7z" />
22+
</g>
1523
</g>
1624
</svg>
1725
)
1826

19-
export { IconAddchartRounded as default }
27+
export { IconAddChartRounded as default }

src/IconAddChartSharp.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { IconProps } from './types'
33

4-
const IconAddchartSharp: React.FC<IconProps> = ({ ...props }) => (
4+
const IconAddChartSharp: React.FC<IconProps> = ({ ...props }) => (
55
<svg
66
xmlns="http://www.w3.org/2000/svg"
77
enableBackground="new 0 0 24 24"
@@ -11,10 +11,17 @@ const IconAddchartSharp: React.FC<IconProps> = ({ ...props }) => (
1111
{props.title && <title>{props.title}</title>}
1212
<g>
1313
<rect fill="none" height="24" width="24" />
14-
<path d="M11,9h2v8h-2V9z M9,17v-6H7v6H9z M19,19H5V5h6V3H3v18h18v-8h-2V19z M15,13v4h2v-4H15z M19,5V2h-2v3h-3v2h3v3h2V7h3V5H19z" />
1514
</g>
16-
<g />
15+
<g>
16+
<g>
17+
<polygon points="19,19 5,19 5,5 14,5 14,3 3,3 3,21 21,21 21,10 19,10" />
18+
<rect height="10" width="2" x="11" y="7" />
19+
<rect height="4" width="2" x="15" y="13" />
20+
<rect height="7" width="2" x="7" y="10" />
21+
<polygon points="19,5 19,3 17,3 17,5 15,5 15,7 17,7 17,9 19,9 19,7 21,7 21,5" />
22+
</g>
23+
</g>
1724
</svg>
1825
)
1926

20-
export { IconAddchartSharp as default }
27+
export { IconAddChartSharp as default }

src/IconAddChartTwoTone.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { IconProps } from './types'
33

4-
const IconAddchartTwoTone: React.FC<IconProps> = ({ ...props }) => (
4+
const IconAddChartTwoTone: React.FC<IconProps> = ({ ...props }) => (
55
<svg
66
xmlns="http://www.w3.org/2000/svg"
77
enableBackground="new 0 0 24 24"
@@ -11,9 +11,17 @@ const IconAddchartTwoTone: React.FC<IconProps> = ({ ...props }) => (
1111
{props.title && <title>{props.title}</title>}
1212
<g>
1313
<rect fill="none" height="24" width="24" />
14-
<path d="M22,5v2h-3v3h-2V7h-3V5h3V2h2v3H22z M19,19H5V5h6V3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2v-6h-2V19z M15,13v4h2v-4H15z M11,17h2V9h-2V17z M9,17v-6H7v6H9z" />
14+
</g>
15+
<g>
16+
<g>
17+
<rect height="10" width="2" x="11" y="7" />
18+
<rect height="4" width="2" x="15" y="13" />
19+
<path d="M19,19H5V5h9V3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2v-9h-2V19z" />
20+
<rect height="7" width="2" x="7" y="10" />
21+
<polygon points="19,5 19,3 17,3 17,5 15,5 15,7 17,7 17,9 19,9 19,7 21,7 21,5" />
22+
</g>
1523
</g>
1624
</svg>
1725
)
1826

19-
export { IconAddchartTwoTone as default }
27+
export { IconAddChartTwoTone as default }

src/IconAddchart.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react'
22
import { IconProps } from './types'
33

4-
const IconAddchart: React.FC<IconProps> = ({ ...props }) => (
4+
const IconAddChart: React.FC<IconProps> = ({ ...props }) => (
55
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
66
{props.title && <title>{props.title}</title>}
7-
<path d="M0 0h24v24H0z" fill="none" />
8-
<path d="M22 5v2h-3v3h-2V7h-3V5h3V2h2v3h3zm-3 14H5V5h6V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6h-2v6zm-4-6v4h2v-4h-2zm-4 4h2V9h-2v8zm-2 0v-6H7v6h2z" />
7+
<path d="M0 0h24v24H0V0z" fill="none" />
8+
<path d="M6 9.99h2v7H6zm8 3h2v4h-2zm-4-6h2v10h-2zM20 7V4h-2v3h-3v2h3v3h2V9h3V7zm-2 12H4V5h12V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5h-2v5z" />
99
</svg>
1010
)
1111

12-
export { IconAddchart as default }
12+
export { IconAddChart as default }

0 commit comments

Comments
 (0)