fix(icons): combined layers and layers-3 icon (#2596)

* Updated icons/layers.svg

* Updated icons/layers.json

* chore: removed layers-3 icon

* Update tools/build-icons/utils/deprecationReasonTemplate.mjs

---------

Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
This commit is contained in:
Jakob Guddas
2024-12-03 11:36:22 +01:00
committed by GitHub
parent 212b488dae
commit ee575f6ae9
6 changed files with 14 additions and 41 deletions

View File

@@ -142,7 +142,7 @@
}, },
"aliasDeprecationReasons": { "aliasDeprecationReasons": {
"type": "string", "type": "string",
"enum": ["alias.typo", "alias.name"] "enum": ["alias.typo", "alias.name", "alias.duplicate"]
}, },
"versionNumber": { "versionNumber": {
"type": "string", "type": "string",

View File

@@ -1,21 +0,0 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"danielbayley"
],
"tags": [
"stack",
"pile",
"pages",
"sheets",
"paperwork",
"copies",
"copy",
"duplicate",
"triple"
],
"categories": [
"design",
"layout"
]
}

View File

@@ -1,15 +0,0 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" />
<path d="m6.08 9.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59" />
<path d="m6.08 14.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59" />
</svg>

Before

Width:  |  Height:  |  Size: 557 B

View File

@@ -2,7 +2,8 @@
"$schema": "../icon.schema.json", "$schema": "../icon.schema.json",
"contributors": [ "contributors": [
"colebemis", "colebemis",
"danielbayley" "danielbayley",
"jguddas"
], ],
"tags": [ "tags": [
"stack", "stack",
@@ -16,5 +17,11 @@
"categories": [ "categories": [
"design", "design",
"layout" "layout"
],
"aliases": [
{
"name": "layers-3",
"deprecationReason": "alias.duplicate"
}
] ]
} }

View File

@@ -9,7 +9,7 @@
stroke-linecap="round" stroke-linecap="round"
stroke-linejoin="round" stroke-linejoin="round"
> >
<path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" /> <path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z" />
<path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" /> <path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12" />
<path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" /> <path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17" />
</svg> </svg>

Before

Width:  |  Height:  |  Size: 452 B

After

Width:  |  Height:  |  Size: 510 B

View File

@@ -11,6 +11,8 @@ export default function deprecationReasonTemplate(
switch (deprecationReason) { switch (deprecationReason) {
case 'alias.typo': case 'alias.typo':
return `Renamed because of typo, use {@link ${componentName}} instead.${removalNotice}`; return `Renamed because of typo, use {@link ${componentName}} instead.${removalNotice}`;
case 'alias.duplicate':
return `The icon was combined with another icon that shares the same use case, use {@link ${componentName}} instead.${removalNotice}`;
case 'alias.naming': case 'alias.naming':
return `The name of this icon was changed because it didn't meet our guidelines anymore, use {@link ${componentName}} instead.${removalNotice}`; return `The name of this icon was changed because it didn't meet our guidelines anymore, use {@link ${componentName}} instead.${removalNotice}`;
case 'icon.brand': case 'icon.brand':