Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 6 additions & 6 deletions generator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('fs')
const path = require('path')
const axios = require('axios')
import fs from 'fs'
import path from 'path'
import axios from 'axios'

const GOOGLE_FONTS_URL =
'https://fonts.google.com/metadata/icons?key=material_symbols&incomplete=true'
Expand Down Expand Up @@ -41,7 +41,7 @@ function generatePropsFile() {
}
`

fs.writeFileSync(path.join(__dirname, 'src', 'types.ts'), typesFile)
fs.writeFileSync(path.join(import.meta.dirname, 'src', 'types.ts'), typesFile)
}

async function generateComponentsForAllFamilies(icon) {
Expand All @@ -64,7 +64,7 @@ async function generateComponent(icon, family, filled = false) {
console.log(`Downloading ${name}`)

await fs.writeFileSync(
path.join(__dirname, 'src', `${name}.tsx`),
path.join(import.meta.dirname, 'src', `${name}.tsx`),
mapSVGToTemplate(name, svg),
)
} catch {
Expand Down Expand Up @@ -115,6 +115,6 @@ function mapSVGToTemplate(name, svg) {
${svg}
)

export { ${name} as default }
export default ${name}
`
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"react"
],
"private": false,
"type": "module",
"publishConfig": {
"access": "public"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Icon10kOutlined.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10kOutlined: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10kOutlined as default }
export default Icon10kOutlined
2 changes: 1 addition & 1 deletion src/Icon10kOutlinedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10kOutlinedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10kOutlinedFilled as default }
export default Icon10kOutlinedFilled
2 changes: 1 addition & 1 deletion src/Icon10kRounded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10kRounded: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10kRounded as default }
export default Icon10kRounded
2 changes: 1 addition & 1 deletion src/Icon10kRoundedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10kRoundedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10kRoundedFilled as default }
export default Icon10kRoundedFilled
2 changes: 1 addition & 1 deletion src/Icon10kSharp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10kSharp: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10kSharp as default }
export default Icon10kSharp
2 changes: 1 addition & 1 deletion src/Icon10kSharpFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10kSharpFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10kSharpFilled as default }
export default Icon10kSharpFilled
2 changes: 1 addition & 1 deletion src/Icon10mpOutlined.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10mpOutlined: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10mpOutlined as default }
export default Icon10mpOutlined
2 changes: 1 addition & 1 deletion src/Icon10mpOutlinedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10mpOutlinedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10mpOutlinedFilled as default }
export default Icon10mpOutlinedFilled
2 changes: 1 addition & 1 deletion src/Icon10mpRounded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10mpRounded: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10mpRounded as default }
export default Icon10mpRounded
2 changes: 1 addition & 1 deletion src/Icon10mpRoundedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10mpRoundedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10mpRoundedFilled as default }
export default Icon10mpRoundedFilled
2 changes: 1 addition & 1 deletion src/Icon10mpSharp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10mpSharp: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10mpSharp as default }
export default Icon10mpSharp
2 changes: 1 addition & 1 deletion src/Icon10mpSharpFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon10mpSharpFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon10mpSharpFilled as default }
export default Icon10mpSharpFilled
2 changes: 1 addition & 1 deletion src/Icon11mpOutlined.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon11mpOutlined: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon11mpOutlined as default }
export default Icon11mpOutlined
2 changes: 1 addition & 1 deletion src/Icon11mpOutlinedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon11mpOutlinedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon11mpOutlinedFilled as default }
export default Icon11mpOutlinedFilled
2 changes: 1 addition & 1 deletion src/Icon11mpRounded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon11mpRounded: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon11mpRounded as default }
export default Icon11mpRounded
2 changes: 1 addition & 1 deletion src/Icon11mpRoundedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon11mpRoundedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon11mpRoundedFilled as default }
export default Icon11mpRoundedFilled
2 changes: 1 addition & 1 deletion src/Icon11mpSharp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon11mpSharp: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon11mpSharp as default }
export default Icon11mpSharp
2 changes: 1 addition & 1 deletion src/Icon11mpSharpFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon11mpSharpFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon11mpSharpFilled as default }
export default Icon11mpSharpFilled
2 changes: 1 addition & 1 deletion src/Icon123Outlined.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon123Outlined: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon123Outlined as default }
export default Icon123Outlined
2 changes: 1 addition & 1 deletion src/Icon123OutlinedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon123OutlinedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon123OutlinedFilled as default }
export default Icon123OutlinedFilled
2 changes: 1 addition & 1 deletion src/Icon123Rounded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon123Rounded: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon123Rounded as default }
export default Icon123Rounded
2 changes: 1 addition & 1 deletion src/Icon123RoundedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon123RoundedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon123RoundedFilled as default }
export default Icon123RoundedFilled
2 changes: 1 addition & 1 deletion src/Icon123Sharp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon123Sharp: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon123Sharp as default }
export default Icon123Sharp
2 changes: 1 addition & 1 deletion src/Icon123SharpFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon123SharpFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon123SharpFilled as default }
export default Icon123SharpFilled
2 changes: 1 addition & 1 deletion src/Icon12mpOutlined.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon12mpOutlined: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon12mpOutlined as default }
export default Icon12mpOutlined
2 changes: 1 addition & 1 deletion src/Icon12mpOutlinedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon12mpOutlinedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon12mpOutlinedFilled as default }
export default Icon12mpOutlinedFilled
2 changes: 1 addition & 1 deletion src/Icon12mpRounded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon12mpRounded: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon12mpRounded as default }
export default Icon12mpRounded
2 changes: 1 addition & 1 deletion src/Icon12mpRoundedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon12mpRoundedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon12mpRoundedFilled as default }
export default Icon12mpRoundedFilled
2 changes: 1 addition & 1 deletion src/Icon12mpSharp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon12mpSharp: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon12mpSharp as default }
export default Icon12mpSharp
2 changes: 1 addition & 1 deletion src/Icon12mpSharpFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon12mpSharpFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon12mpSharpFilled as default }
export default Icon12mpSharpFilled
2 changes: 1 addition & 1 deletion src/Icon13mpOutlined.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon13mpOutlined: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon13mpOutlined as default }
export default Icon13mpOutlined
2 changes: 1 addition & 1 deletion src/Icon13mpOutlinedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon13mpOutlinedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon13mpOutlinedFilled as default }
export default Icon13mpOutlinedFilled
2 changes: 1 addition & 1 deletion src/Icon13mpRounded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon13mpRounded: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon13mpRounded as default }
export default Icon13mpRounded
2 changes: 1 addition & 1 deletion src/Icon13mpRoundedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon13mpRoundedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon13mpRoundedFilled as default }
export default Icon13mpRoundedFilled
2 changes: 1 addition & 1 deletion src/Icon13mpSharp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon13mpSharp: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon13mpSharp as default }
export default Icon13mpSharp
2 changes: 1 addition & 1 deletion src/Icon13mpSharpFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon13mpSharpFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon13mpSharpFilled as default }
export default Icon13mpSharpFilled
2 changes: 1 addition & 1 deletion src/Icon14mpOutlined.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon14mpOutlined: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon14mpOutlined as default }
export default Icon14mpOutlined
2 changes: 1 addition & 1 deletion src/Icon14mpOutlinedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon14mpOutlinedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon14mpOutlinedFilled as default }
export default Icon14mpOutlinedFilled
2 changes: 1 addition & 1 deletion src/Icon14mpRounded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon14mpRounded: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon14mpRounded as default }
export default Icon14mpRounded
2 changes: 1 addition & 1 deletion src/Icon14mpRoundedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon14mpRoundedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon14mpRoundedFilled as default }
export default Icon14mpRoundedFilled
2 changes: 1 addition & 1 deletion src/Icon14mpSharp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon14mpSharp: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon14mpSharp as default }
export default Icon14mpSharp
2 changes: 1 addition & 1 deletion src/Icon14mpSharpFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon14mpSharpFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon14mpSharpFilled as default }
export default Icon14mpSharpFilled
2 changes: 1 addition & 1 deletion src/Icon15mpOutlined.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon15mpOutlined: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon15mpOutlined as default }
export default Icon15mpOutlined
2 changes: 1 addition & 1 deletion src/Icon15mpOutlinedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon15mpOutlinedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon15mpOutlinedFilled as default }
export default Icon15mpOutlinedFilled
2 changes: 1 addition & 1 deletion src/Icon15mpRounded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon15mpRounded: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon15mpRounded as default }
export default Icon15mpRounded
2 changes: 1 addition & 1 deletion src/Icon15mpRoundedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon15mpRoundedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon15mpRoundedFilled as default }
export default Icon15mpRoundedFilled
2 changes: 1 addition & 1 deletion src/Icon15mpSharp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon15mpSharp: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon15mpSharp as default }
export default Icon15mpSharp
2 changes: 1 addition & 1 deletion src/Icon15mpSharpFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon15mpSharpFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon15mpSharpFilled as default }
export default Icon15mpSharpFilled
2 changes: 1 addition & 1 deletion src/Icon16mpOutlined.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon16mpOutlined: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon16mpOutlined as default }
export default Icon16mpOutlined
2 changes: 1 addition & 1 deletion src/Icon16mpOutlinedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon16mpOutlinedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon16mpOutlinedFilled as default }
export default Icon16mpOutlinedFilled
2 changes: 1 addition & 1 deletion src/Icon16mpRounded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon16mpRounded: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon16mpRounded as default }
export default Icon16mpRounded
2 changes: 1 addition & 1 deletion src/Icon16mpRoundedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon16mpRoundedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon16mpRoundedFilled as default }
export default Icon16mpRoundedFilled
2 changes: 1 addition & 1 deletion src/Icon16mpSharp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon16mpSharp: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon16mpSharp as default }
export default Icon16mpSharp
2 changes: 1 addition & 1 deletion src/Icon16mpSharpFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon16mpSharpFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon16mpSharpFilled as default }
export default Icon16mpSharpFilled
2 changes: 1 addition & 1 deletion src/Icon17mpOutlined.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon17mpOutlined: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon17mpOutlined as default }
export default Icon17mpOutlined
2 changes: 1 addition & 1 deletion src/Icon17mpOutlinedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon17mpOutlinedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon17mpOutlinedFilled as default }
export default Icon17mpOutlinedFilled
2 changes: 1 addition & 1 deletion src/Icon17mpRounded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon17mpRounded: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon17mpRounded as default }
export default Icon17mpRounded
2 changes: 1 addition & 1 deletion src/Icon17mpRoundedFilled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon17mpRoundedFilled: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon17mpRoundedFilled as default }
export default Icon17mpRoundedFilled
2 changes: 1 addition & 1 deletion src/Icon17mpSharp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Icon17mpSharp: React.FC<IconProps> = ({ ...props }) => (
</svg>
)

export { Icon17mpSharp as default }
export default Icon17mpSharp
Loading
Loading