Update icon definitions to new figma export format (#8860)

Related to #8387

Updated icons file to match the export format of figma plugin.
This commit is contained in:
Paweł Grabarz 2024-02-05 16:29:45 +01:00 committed by GitHub
parent fa4b980d67
commit d418a02014
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 911 additions and 1610 deletions

View File

@ -2,7 +2,7 @@ import * as fs from 'node:fs/promises'
console.info('Reading icons from "./src/assets/icons.svg"...')
const icons = await fs.readFile('./src/assets/icons.svg', { encoding: 'utf-8' })
const iconNames = icons.match(/(?<=^ {4}<g id=")[^"]+/gm) ?? []
const iconNames = icons.match(/(?<=<symbol id=")[^"]+/gm) ?? []
// All generated files MUST follow Prettier formatting.
console.info('Writing icon names to "./src/util/iconList.json"...')

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 110 KiB