Add folder-open SVG icon (#1449)

* Add folder-open SVG icon

* Add `.svg` extension to folder-open icon

* Enhance icon validation by ensuring only .svg files exist in filled and outline directories; update crown and folder-open SVG files for consistency and clarity.

---------

Co-authored-by: codecalm <codecalm@gmail.com>
This commit is contained in:
Marlon Daniel 2025-12-30 14:39:05 -03:00 committed by GitHub
parent 2702274bfa
commit 22e23512d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 30 additions and 1 deletions

View File

@ -14,6 +14,24 @@ const outlineIconsNames = globSync(join(ICONS_SRC_DIR, 'outline/*.svg')).map(i =
let unicodes = []
// Validate that only .svg files exist in icons/filled and icons/outline directories
types.forEach(type => {
const dirPath = join(ICONS_SRC_DIR, type)
const files = fs.readdirSync(dirPath)
files.forEach(file => {
// Ignore .DS_Store (macOS system file)
if (file === '.DS_Store') {
return
}
if (!file.endsWith('.svg')) {
console.log(`⛔️ Directory \`icons/${type}\` contains non-SVG file: \`${file}\``)
error = true
}
})
})
const duplicateExists = (arr) => {
return new Set(arr).size !== arr.length
}

View File

@ -7,5 +7,5 @@
viewBox="0 0 24 24"
fill="currentColor"
>
<path d="M19,19H5c-.5,0-.9-.3-1-.8l-2-10c0-.4.1-.8.5-1.1.4-.2.8-.2,1.1,0l4.1,3.3,3.4-5.1c.4-.6,1.3-.6,1.7,0l3.4,5.1,4.1-3.3c.3-.3.8-.3,1.1,0,.4.2.5.6.5,1.1l-2,10c0,.5-.5.8-1,.8Z" />
<path d="M19 19h-14c-.5 0 -.9 -.3 -1 -.8l-2 -10c0 -.4 .1 -.8 .5 -1.1c.4 -.2 .8 -.2 1.1 0l4.1 3.3l3.4 -5.1c.4 -.6 1.3 -.6 1.7 0l3.4 5.1l4.1 -3.3c.3 -.3 .8 -.3 1.1 0c.4 .2 .5 .6 .5 1.1l-2 10c0 .5 -.5 .8 -1 .8z" />
</svg>

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 345 B

View File

@ -0,0 +1,11 @@
<!--
-->
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="currentColor"
>
<path d="M2 6c0 -.796 .316 -1.558 .879 -2.121c.563 -.563 1.325 -.879 2.121 -.879h4l.099 .005c.229 .023 .444 .124 .608 .288l2.707 2.707h6.586c.796 0 1.558 .316 2.121 .879c.319 .319 .559 .703 .707 1.121l-14.523 0c-.407 0 -.805 .125 -1.14 .356c-.292 .203 -.525 .48 -.674 .801l-.058 .141l-1.379 3.676c-.194 .517 .068 1.093 .585 1.287c.517 .194 1.094 -.068 1.288 -.585l1.134 -3.027c.146 -.39 .519 -.649 .937 -.649h13.002l.217 .012c.216 .024 .426 .082 .624 .173c.054 .025 .107 .053 .159 .083c.199 .115 .377 .263 .525 .439c.188 .222 .325 .482 .403 .762c.077 .28 .092 .573 .045 .859c-.001 .008 -.003 .016 -.005 .024l-.995 5.21c-.131 .686 -.497 1.304 -1.036 1.749c-.47 .389 -1.046 .624 -1.65 .677l-.261 .012h-14.026c-.796 0 -1.558 -.316 -2.121 -.879c-.563 -.563 -.879 -1.325 -.879 -2.121v-11z" fill="black" />
</svg>

After

Width:  |  Height:  |  Size: 934 B