diff --git a/icons/audio-lines-x.json b/icons/audio-lines-x.json new file mode 100644 index 000000000..c6d77ea54 --- /dev/null +++ b/icons/audio-lines-x.json @@ -0,0 +1,55 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "danielbayley", + "karsa-mistmere" + ], + "use-cases": [ + "indicating muted, blocked, or unavailable audio playback", + "showing that an audio track, waveform, or signal has been removed", + "marking controls that disable sound, music, voice, or broadcast output", + "representing cancelled recording, paused monitoring, or silenced audio analysis", + "identifying error states for sound processing, voice activity, or media levels", + "showing a device's speaker or system volume is turned off", + "indicating a user's microphone or input is muted", + "signaling muted notifications or alerts", + "representing muted voice chat in conferencing or multiplayer games" + ], + "tags": [ + "sound", + "noise", + "mute", + "silence", + "disabled", + "cancel", + "remove", + "unavailable", + "listen", + "hearing", + "equalizer", + "equaliser", + "hertz", + "frequency", + "wavelength", + "vibrate", + "sine", + "waveform", + "synthesizer", + "synthesiser", + "levels", + "track", + "music", + "playback", + "radio", + "broadcast", + "airwaves", + "voice", + "vocals", + "singer", + "song" + ], + "categories": [ + "multimedia", + "communication" + ] +} diff --git a/icons/audio-lines-x.svg b/icons/audio-lines-x.svg new file mode 100644 index 000000000..eb855e736 --- /dev/null +++ b/icons/audio-lines-x.svg @@ -0,0 +1,20 @@ + + + + + + + + + + diff --git a/icons/angry.json b/icons/face-angry.json similarity index 52% rename from icons/angry.json rename to icons/face-angry.json index 178069075..b05521ac3 100644 --- a/icons/angry.json +++ b/icons/face-angry.json @@ -6,12 +6,23 @@ ], "use-cases": [], "tags": [ - "emoji", "anger", - "face", + "rage", + "fury", + "resentment", + "irritation", + "disgust", + "emoji", "emotion" ], "categories": [ "emoji" + ], + "aliases": [ + { + "name": "angry", + "deprecated": true, + "deprecationReason": "alias.name" + } ] } diff --git a/icons/laugh.svg b/icons/face-angry.svg similarity index 60% rename from icons/laugh.svg rename to icons/face-angry.svg index 41b443c7f..b7c18de72 100644 --- a/icons/laugh.svg +++ b/icons/face-angry.svg @@ -9,8 +9,10 @@ stroke-linecap="round" stroke-linejoin="round" > + + + + + - - - diff --git a/icons/annoyed.json b/icons/face-expressionless.json similarity index 53% rename from icons/annoyed.json rename to icons/face-expressionless.json index b38f2e28e..a01567e4b 100644 --- a/icons/annoyed.json +++ b/icons/face-expressionless.json @@ -5,12 +5,21 @@ ], "use-cases": [], "tags": [ - "emoji", "nuisance", - "face", + "annoyed", + "annoyance", + "frustration", + "emoji", "emotion" ], "categories": [ "emoji" + ], + "aliases": [ + { + "name": "annoyed", + "deprecated": true, + "deprecationReason": "alias.name" + } ] } diff --git a/icons/annoyed.svg b/icons/face-expressionless.svg similarity index 77% rename from icons/annoyed.svg rename to icons/face-expressionless.svg index 3279b6621..a10550bbb 100644 --- a/icons/annoyed.svg +++ b/icons/face-expressionless.svg @@ -9,8 +9,8 @@ stroke-linecap="round" stroke-linejoin="round" > + + + - - - diff --git a/icons/face-grinning.json b/icons/face-grinning.json new file mode 100644 index 000000000..d90e6de32 --- /dev/null +++ b/icons/face-grinning.json @@ -0,0 +1,31 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "karsa-mistmere", + "ericfennis" + ], + "use-cases": [], + "tags": [ + "happy", + "happiness", + "good", + "laugh", + "broad smile", + "pleasure", + "good cheer", + "humour", + "funny", + "emoji", + "emotion" + ], + "categories": [ + "emoji" + ], + "aliases": [ + { + "name": "laugh", + "deprecated": true, + "deprecationReason": "alias.name" + } + ] +} diff --git a/icons/angry.svg b/icons/face-grinning.svg similarity index 62% rename from icons/angry.svg rename to icons/face-grinning.svg index 41e4361ad..ada21a91b 100644 --- a/icons/angry.svg +++ b/icons/face-grinning.svg @@ -9,10 +9,8 @@ stroke-linecap="round" stroke-linejoin="round" > + + + - - - - - diff --git a/icons/face-neutral.json b/icons/face-neutral.json new file mode 100644 index 000000000..abbf36413 --- /dev/null +++ b/icons/face-neutral.json @@ -0,0 +1,31 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "colebemis", + "csandman", + "mittalyashu", + "ericfennis" + ], + "use-cases": [], + "tags": [ + "emoji", + "neutral", + "emotion", + "meh", + "blank stare", + "social masking", + "irritation", + "concern", + "deadpan" + ], + "categories": [ + "emoji" + ], + "aliases": [ + { + "name": "meh", + "deprecated": true, + "deprecationReason": "alias.name" + } + ] +} diff --git a/icons/smile.svg b/icons/face-neutral.svg similarity index 66% rename from icons/smile.svg rename to icons/face-neutral.svg index 59e020763..afa79b090 100644 --- a/icons/smile.svg +++ b/icons/face-neutral.svg @@ -9,8 +9,8 @@ stroke-linecap="round" stroke-linejoin="round" > + + + - - - diff --git a/icons/frown.json b/icons/face-slightly-frowning.json similarity index 56% rename from icons/frown.json rename to icons/face-slightly-frowning.json index 39d33df13..3fc21e638 100644 --- a/icons/frown.json +++ b/icons/face-slightly-frowning.json @@ -9,13 +9,21 @@ "use-cases": [], "tags": [ "emoji", - "face", "bad", - "sad", - "emotion" + "sadness", + "emotion", + "concern", + "disappointment" ], "categories": [ "emoji", "account" + ], + "aliases": [ + { + "name": "frown", + "deprecated": true, + "deprecationReason": "alias.name" + } ] } diff --git a/icons/frown.svg b/icons/face-slightly-frowning.svg similarity index 65% rename from icons/frown.svg rename to icons/face-slightly-frowning.svg index 370dbc736..61c813289 100644 --- a/icons/frown.svg +++ b/icons/face-slightly-frowning.svg @@ -9,8 +9,8 @@ stroke-linecap="round" stroke-linejoin="round" > + + + - - - diff --git a/icons/smile-plus.json b/icons/face-slightly-smiling-plus.json similarity index 64% rename from icons/smile-plus.json rename to icons/face-slightly-smiling-plus.json index faa6caa98..5641fbcc2 100644 --- a/icons/smile-plus.json +++ b/icons/face-slightly-smiling-plus.json @@ -6,19 +6,26 @@ ], "use-cases": [], "tags": [ - "emoji", - "face", + "smile", "happy", "good", - "emotion", "react", "reaction", - "add" + "emoji", + "add", + "emotion" ], "categories": [ "emoji", "social", "notifications", "communication" + ], + "aliases": [ + { + "name": "smile-plus", + "deprecated": true, + "deprecationReason": "alias.name" + } ] } diff --git a/icons/smile-plus.svg b/icons/face-slightly-smiling-plus.svg similarity index 60% rename from icons/smile-plus.svg rename to icons/face-slightly-smiling-plus.svg index 47bbf6b0f..3c58cc0b2 100644 --- a/icons/smile-plus.svg +++ b/icons/face-slightly-smiling-plus.svg @@ -9,10 +9,10 @@ stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + diff --git a/icons/smile.json b/icons/face-slightly-smiling.json similarity index 52% rename from icons/smile.json rename to icons/face-slightly-smiling.json index b622e70e8..d083317e6 100644 --- a/icons/smile.json +++ b/icons/face-slightly-smiling.json @@ -8,14 +8,27 @@ ], "use-cases": [], "tags": [ - "emoji", - "face", + "smile", "happy", + "happiness", "good", + "positive", + "friendly", + "patronizing", + "passive aggressive", + "ironic", + "emoji", "emotion" ], "categories": [ "emoji", "account" + ], + "aliases": [ + { + "name": "smile", + "deprecated": true, + "deprecationReason": "alias.name" + } ] } diff --git a/icons/meh.svg b/icons/face-slightly-smiling.svg similarity index 65% rename from icons/meh.svg rename to icons/face-slightly-smiling.svg index 78ac8d1e2..750065b43 100644 --- a/icons/meh.svg +++ b/icons/face-slightly-smiling.svg @@ -9,8 +9,8 @@ stroke-linecap="round" stroke-linejoin="round" > + + + - - - diff --git a/icons/laugh.json b/icons/laugh.json deleted file mode 100644 index 1c07dc1da..000000000 --- a/icons/laugh.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "../icon.schema.json", - "contributors": [ - "karsa-mistmere", - "ericfennis" - ], - "use-cases": [], - "tags": [ - "emoji", - "face", - "happy", - "good", - "emotion" - ], - "categories": [ - "emoji" - ] -} diff --git a/icons/layer-arrow-down.json b/icons/layer-arrow-down.json new file mode 100644 index 000000000..23cb90006 --- /dev/null +++ b/icons/layer-arrow-down.json @@ -0,0 +1,35 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "colebemis", + "danielbayley", + "jguddas", + "karsa-mistmere" + ], + "use-cases": [ + "lowering a selected layer by one step", + "moving an item backward in layer order" + ], + "tags": [ + "move back", + "backward", + "lower", + "demote", + "step back", + "behind", + "reorder", + "arrange", + "layer", + "layers", + "stack", + "stacking", + "z-index", + "depth", + "graphics", + "design" + ], + "categories": [ + "design", + "layout" + ] +} diff --git a/icons/layer-arrow-down.svg b/icons/layer-arrow-down.svg new file mode 100644 index 000000000..e11232dc0 --- /dev/null +++ b/icons/layer-arrow-down.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/icons/layer-arrow-up.json b/icons/layer-arrow-up.json new file mode 100644 index 000000000..a9df28a11 --- /dev/null +++ b/icons/layer-arrow-up.json @@ -0,0 +1,34 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "colebemis", + "danielbayley", + "jguddas", + "karsa-mistmere" + ], + "use-cases": [ + "raising a selected layer by one step", + "moving an item forward in layer order" + ], + "tags": [ + "move forward", + "forward", + "raise", + "lift", + "promote", + "advance", + "step forward", + "reorder", + "arrange", + "stack", + "stacking", + "z-index", + "depth", + "graphics", + "design" + ], + "categories": [ + "design", + "layout" + ] +} diff --git a/icons/layer-arrow-up.svg b/icons/layer-arrow-up.svg new file mode 100644 index 000000000..5f018c88e --- /dev/null +++ b/icons/layer-arrow-up.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/icons/layers-arrow-down.json b/icons/layers-arrow-down.json new file mode 100644 index 000000000..8ab271b7a --- /dev/null +++ b/icons/layers-arrow-down.json @@ -0,0 +1,36 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "colebemis", + "danielbayley", + "jguddas", + "karsa-mistmere" + ], + "use-cases": [ + "sending a selected object to the back of a stack", + "moving an item behind all others in layer order" + ], + "tags": [ + "send to back", + "send backward", + "back", + "background", + "bottom", + "bottommost", + "lower", + "demote", + "behind", + "reorder", + "arrange", + "stack", + "stacking", + "z-index", + "depth", + "graphics", + "design" + ], + "categories": [ + "design", + "layout" + ] +} diff --git a/icons/layers-arrow-down.svg b/icons/layers-arrow-down.svg new file mode 100644 index 000000000..10489169c --- /dev/null +++ b/icons/layers-arrow-down.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/icons/layers-arrow-up.json b/icons/layers-arrow-up.json new file mode 100644 index 000000000..90e6476a3 --- /dev/null +++ b/icons/layers-arrow-up.json @@ -0,0 +1,37 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "colebemis", + "danielbayley", + "jguddas", + "karsa-mistmere" + ], + "use-cases": [ + "bringing a selected object to the front of a stack", + "moving an item in front of all others in layer order" + ], + "tags": [ + "bring to front", + "bring forward", + "front", + "foreground", + "top", + "topmost", + "raise", + "lift", + "promote", + "reorder", + "arrange", + "stack", + "stacking", + "z-index", + "depth", + "graphics", + "design" + ], + "categories": [ + "design", + "layout", + "arrows" + ] +} diff --git a/icons/layers-arrow-up.svg b/icons/layers-arrow-up.svg new file mode 100644 index 000000000..65847d3e5 --- /dev/null +++ b/icons/layers-arrow-up.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/icons/meh.json b/icons/meh.json deleted file mode 100644 index 8676a7377..000000000 --- a/icons/meh.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "../icon.schema.json", - "contributors": [ - "colebemis", - "csandman", - "mittalyashu", - "ericfennis" - ], - "use-cases": [], - "tags": [ - "emoji", - "face", - "neutral", - "emotion" - ], - "categories": [ - "emoji" - ] -} diff --git a/icons/mic-signal.json b/icons/mic-signal.json index 5ef7b1ebe..045a0fab5 100644 --- a/icons/mic-signal.json +++ b/icons/mic-signal.json @@ -39,8 +39,7 @@ { "name": "podcast", "deprecated": true, - "deprecationReason": "alias.name", - "toBeRemovedInVersion": "v1.0" + "deprecationReason": "alias.name" } ] } diff --git a/lab/chinese-character.json b/lab/chinese-character.json new file mode 100644 index 000000000..d639af9f2 --- /dev/null +++ b/lab/chinese-character.json @@ -0,0 +1,15 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "congemcd", + "rrod497" + ], + "tags": [ + "text", + "language", + "chinese" + ], + "categories": [ + "text" + ] +} diff --git a/lab/chinese-character.svg b/lab/chinese-character.svg new file mode 100644 index 000000000..a17541863 --- /dev/null +++ b/lab/chinese-character.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/packages/astro/tests/__snapshots__/lucide-astro.spec.ts.snap b/packages/astro/tests/__snapshots__/lucide-astro.spec.ts.snap index a6ff7f2e4..35f95548d 100644 --- a/packages/astro/tests/__snapshots__/lucide-astro.spec.ts.snap +++ b/packages/astro/tests/__snapshots__/lucide-astro.spec.ts.snap @@ -12,27 +12,19 @@ exports[`Using lucide icon components > should add a non-default attribute to th stroke-linejoin="round" aria-hidden="true" style="position: absolute" - class="lucide lucide-smile" + class="lucide lucide-face-slightly-smiling" > + + + + + + - - - - - - `; @@ -127,27 +119,19 @@ exports[`Using lucide icon components > should pass children to the icon slot 1` stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" - class="lucide lucide-smile" + class="lucide lucide-face-slightly-smiling" > + + + + + + - - - - - -

Hello World

diff --git a/packages/lucide-react/tests/__snapshots__/dynamicImports.spec.tsx.snap b/packages/lucide-react/tests/__snapshots__/dynamicImports.spec.tsx.snap index 81acb4297..c4e6bb68a 100644 --- a/packages/lucide-react/tests/__snapshots__/dynamicImports.spec.tsx.snap +++ b/packages/lucide-react/tests/__snapshots__/dynamicImports.spec.tsx.snap @@ -10,27 +10,19 @@ exports[`Using dynamicImports > should render icons dynamically by using the dyn stroke-width="1" stroke-linecap="round" stroke-linejoin="round" - class="lucide lucide-smile" + class="lucide lucide-face-slightly-smiling" aria-label="smile" > + + + + + + - - - - - - `; diff --git a/packages/svelte/tests/ContextWrapper.svelte b/packages/svelte/tests/ContextWrapper.svelte index 61a2f6973..3fbd12311 100644 --- a/packages/svelte/tests/ContextWrapper.svelte +++ b/packages/svelte/tests/ContextWrapper.svelte @@ -1,5 +1,5 @@ - + Test - + diff --git a/packages/svelte/tests/TestSlots.svelte b/packages/svelte/tests/TestSlots.svelte index b82f27827..0e5d345d2 100644 --- a/packages/svelte/tests/TestSlots.svelte +++ b/packages/svelte/tests/TestSlots.svelte @@ -1,10 +1,10 @@ - + Test - + diff --git a/packages/svelte/tests/TestSlotsTitle.svelte b/packages/svelte/tests/TestSlotsTitle.svelte index dd6122d41..a04922d3e 100644 --- a/packages/svelte/tests/TestSlotsTitle.svelte +++ b/packages/svelte/tests/TestSlotsTitle.svelte @@ -1,10 +1,10 @@ - + Air conditioning - + diff --git a/packages/svelte/tests/__snapshots__/lucide-svelte.spec.ts.snap b/packages/svelte/tests/__snapshots__/lucide-svelte.spec.ts.snap index b06d5b54f..58f367ded 100644 --- a/packages/svelte/tests/__snapshots__/lucide-svelte.spec.ts.snap +++ b/packages/svelte/tests/__snapshots__/lucide-svelte.spec.ts.snap @@ -3,7 +3,7 @@ exports[`Using lucide icon components > should add a class to the element 1`] = ` @@ -59,7 +53,7 @@ exports[`Using lucide icon components > should adjust the size, stroke color and
@@ -124,27 +112,19 @@ exports[`Using lucide icon components > should not scale the strokeWidth when ab stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" - class="lucide-icon lucide lucide-smile" + class="lucide-icon lucide lucide-face-slightly-smiling" > + + + + + + - - - - - - `; @@ -152,7 +132,7 @@ exports[`Using lucide icon components > should render an component 1`] = `
@@ -209,7 +183,7 @@ exports[`Using lucide icon components > should render an component 1`] = ` exports[`Using lucide icon components > should render an icon slot 1`] = `
should render an icon slot 1`] = ` width="24" xmlns="http://www.w3.org/2000/svg" > + + + + + + + + + + + + + + + should render an icon slot 1`] = ` - - - - - - - - - - - - - - - Test diff --git a/packages/svelte/tests/lucide-svelte.spec.ts b/packages/svelte/tests/lucide-svelte.spec.ts index ec0cb6604..da19e096b 100644 --- a/packages/svelte/tests/lucide-svelte.spec.ts +++ b/packages/svelte/tests/lucide-svelte.spec.ts @@ -33,7 +33,7 @@ describe('Using lucide icon components', () => { expect(IconComponent).toMatchSnapshot(); expect(IconComponent).toHaveClass(testClass); expect(IconComponent).toHaveClass('lucide'); - expect(IconComponent).toHaveClass('lucide-smile'); + expect(IconComponent).toHaveClass('lucide-face-slightly-smiling'); }); it('should add a style attribute to the element', () => { diff --git a/packages/vue/tests/__snapshots__/lucide-vue-next.spec.ts.snap b/packages/vue/tests/__snapshots__/lucide-vue-next.spec.ts.snap index 88156ce1b..a0a83c7e9 100644 --- a/packages/vue/tests/__snapshots__/lucide-vue-next.spec.ts.snap +++ b/packages/vue/tests/__snapshots__/lucide-vue-next.spec.ts.snap @@ -3,7 +3,7 @@ exports[`Using lucide icon components > should add a class to the element 1`] = `
should add a class to the element 1`] = width="24" xmlns="http://www.w3.org/2000/svg" > + + + - - -
`; @@ -41,7 +35,7 @@ exports[`Using lucide icon components > should add a class to the element 1`] = exports[`Using lucide icon components > should add a style attribute to the element 1`] = `
should add a style attribute to the elem width="24" xmlns="http://www.w3.org/2000/svg" > + + + - - -
`; @@ -80,7 +68,7 @@ exports[`Using lucide icon components > should add a style attribute to the elem exports[`Using lucide icon components > should adjust the size, stroke color and stroke width 1`] = `
should adjust the size, stroke color and width="48" xmlns="http://www.w3.org/2000/svg" > + + + - - -
`; @@ -118,7 +100,7 @@ exports[`Using lucide icon components > should adjust the size, stroke color and exports[`Using lucide icon components > should pass children to the icon slot 1`] = `
should pass children to the icon slot 1` width="24" xmlns="http://www.w3.org/2000/svg" > + + + - - - Hello World @@ -161,7 +137,7 @@ exports[`Using lucide icon components > should pass children to the icon slot 1` exports[`Using lucide icon components > should render an component 1`] = `
should render an component 1`] = ` width="24" xmlns="http://www.w3.org/2000/svg" > + + + - - -
`; diff --git a/packages/vue/tests/__snapshots__/lucide-vue.spec.ts.snap b/packages/vue/tests/__snapshots__/lucide-vue.spec.ts.snap index 88156ce1b..a0a83c7e9 100644 --- a/packages/vue/tests/__snapshots__/lucide-vue.spec.ts.snap +++ b/packages/vue/tests/__snapshots__/lucide-vue.spec.ts.snap @@ -3,7 +3,7 @@ exports[`Using lucide icon components > should add a class to the element 1`] = `
should add a class to the element 1`] = width="24" xmlns="http://www.w3.org/2000/svg" > + + + - - -
`; @@ -41,7 +35,7 @@ exports[`Using lucide icon components > should add a class to the element 1`] = exports[`Using lucide icon components > should add a style attribute to the element 1`] = `
should add a style attribute to the elem width="24" xmlns="http://www.w3.org/2000/svg" > + + + - - -
`; @@ -80,7 +68,7 @@ exports[`Using lucide icon components > should add a style attribute to the elem exports[`Using lucide icon components > should adjust the size, stroke color and stroke width 1`] = `
should adjust the size, stroke color and width="48" xmlns="http://www.w3.org/2000/svg" > + + + - - -
`; @@ -118,7 +100,7 @@ exports[`Using lucide icon components > should adjust the size, stroke color and exports[`Using lucide icon components > should pass children to the icon slot 1`] = `
should pass children to the icon slot 1` width="24" xmlns="http://www.w3.org/2000/svg" > + + + - - - Hello World @@ -161,7 +137,7 @@ exports[`Using lucide icon components > should pass children to the icon slot 1` exports[`Using lucide icon components > should render an component 1`] = `
should render an component 1`] = ` width="24" xmlns="http://www.w3.org/2000/svg" > + + + - - -
`; diff --git a/packages/vue/tests/lucide-vue.spec.ts b/packages/vue/tests/lucide-vue.spec.ts index bde2e0fd5..857200343 100644 --- a/packages/vue/tests/lucide-vue.spec.ts +++ b/packages/vue/tests/lucide-vue.spec.ts @@ -59,7 +59,7 @@ describe('Using lucide icon components', () => { expect(icon).toHaveClass('my-icon'); expect(icon).toHaveClass('lucide'); - expect(icon).toHaveClass('lucide-smile-icon'); + expect(icon).toHaveClass('lucide-face-slightly-smiling-icon'); }); it('should add a style attribute to the element', () => { diff --git a/scripts/rename/renameIcon.function.mts b/scripts/rename/renameIcon.function.mts index 77b56ff13..07be27a6f 100644 --- a/scripts/rename/renameIcon.function.mts +++ b/scripts/rename/renameIcon.function.mts @@ -52,7 +52,6 @@ export async function renameIcon(ICONS_DIR: string, oldName: string, newName: st name: oldName, deprecated: true, deprecationReason: 'alias.name', - toBeRemovedInVersion: 'v1.0', }, ]; fs.writeFileSync(newJsonPath, JSON.stringify(jsonData, null, 2)); diff --git a/tools/build-icons/building/aliases/generateAliasesFiles.ts b/tools/build-icons/building/aliases/generateAliasesFiles.ts index d15c90da0..781754c94 100644 --- a/tools/build-icons/building/aliases/generateAliasesFiles.ts +++ b/tools/build-icons/building/aliases/generateAliasesFiles.ts @@ -110,7 +110,6 @@ export default async function generateAliasesFiles({ ? deprecationReasonTemplate(alias.deprecationReason, { componentName: toPascalCase(iconName), iconName, - toBeRemovedInVersion: alias.toBeRemovedInVersion, }) : ''; diff --git a/tools/build-icons/building/generateIconFiles.ts b/tools/build-icons/building/generateIconFiles.ts index f020f4ef3..37932c45a 100644 --- a/tools/build-icons/building/generateIconFiles.ts +++ b/tools/build-icons/building/generateIconFiles.ts @@ -48,16 +48,11 @@ function generateIconFiles({ ]); const getSvg = () => readSvg(`${iconName}.svg`, iconsDir); - const { - deprecated = false, - toBeRemovedInVersion = undefined, - aliases = [], - } = iconMetaData[iconName]; + const { deprecated = false, aliases = [] } = iconMetaData[iconName]; const deprecationReason = deprecated ? deprecationReasonTemplate(iconMetaData[iconName].deprecationReason ?? '', { componentName, iconName, - toBeRemovedInVersion, }) : ''; diff --git a/tools/build-icons/types.ts b/tools/build-icons/types.ts index 1806eb346..63682140d 100644 --- a/tools/build-icons/types.ts +++ b/tools/build-icons/types.ts @@ -32,13 +32,11 @@ export type AliasDeprecation = { name: string; deprecated: true; deprecationReason: AliasDeprecationReason; - toBeRemovedInVersion?: string; }; export type IconDeprecationReason = 'icon.renamed' | ''; export type IconMetadataBase = { - toBeRemovedInVersion?: string; categories: string[]; aliases?: AliasDeprecation[]; tags: string[]; diff --git a/tools/build-icons/utils/deprecationReasonTemplate.ts b/tools/build-icons/utils/deprecationReasonTemplate.ts index a8c2c8e4e..223bfe5e2 100644 --- a/tools/build-icons/utils/deprecationReasonTemplate.ts +++ b/tools/build-icons/utils/deprecationReasonTemplate.ts @@ -4,25 +4,20 @@ export default function deprecationReasonTemplate( deprecationReason: AliasDeprecationReason | IconDeprecationReason, { componentName, - toBeRemovedInVersion, }: { componentName: string; iconName: string; - toBeRemovedInVersion?: string; }, ) { const resourceName = deprecationReason.startsWith('icon') ? 'icon' : 'alias'; - const removalNotice = toBeRemovedInVersion - ? ` This ${resourceName} will be removed in ${toBeRemovedInVersion}` - : ''; switch (deprecationReason) { case 'alias.typo': - return `Renamed because of typo, use {@link ${componentName}} instead.${removalNotice}`; + return `Renamed because of typo, use {@link ${componentName}} instead.`; case 'alias.duplicate': - return `The icon was combined with another icon that shares the same use case, use {@link ${componentName}} instead.${removalNotice}`; + return `The icon was combined with another icon that shares the same use case, use {@link ${componentName}} instead.`; case 'alias.name': - 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.`; default: throw new Error(`Unknown deprecation reason: ${deprecationReason}`); }