From cdb0d80cde1dc5dd90fb2a1c3b4fa31d68294821 Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Wed, 22 Mar 2023 16:13:00 -0400 Subject: [PATCH] feat: chevron-expand and chevron-collapse icons (#1198) --- scripts/build.ts | 2 +- src/data.json | 46 ++++++++++++++++++++++++++++ src/svg/chevron-collapse-outline.svg | 1 + src/svg/chevron-collapse-sharp.svg | 1 + src/svg/chevron-collapse.svg | 1 + src/svg/chevron-expand-outline.svg | 1 + src/svg/chevron-expand-sharp.svg | 1 + src/svg/chevron-expand.svg | 1 + 8 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 src/svg/chevron-collapse-outline.svg create mode 100644 src/svg/chevron-collapse-sharp.svg create mode 100644 src/svg/chevron-collapse.svg create mode 100644 src/svg/chevron-expand-outline.svg create mode 100644 src/svg/chevron-expand-sharp.svg create mode 100644 src/svg/chevron-expand.svg diff --git a/scripts/build.ts b/scripts/build.ts index b7dfeee79..7e8b686ea 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -94,7 +94,7 @@ async function optimizeSvgs(srcSvgData: SvgData[]) { if (item.isElem()) { item.eachAttr((attr) => { if (attr.name === 'stroke' || attr.name === 'fill') { - if (attr.value === '#000') { + if (attr.value === '#000' || attr.value === 'currentColor') { item.addAttr({ name: attr.name, value: 'currentColor', diff --git a/src/data.json b/src/data.json index bd6d559e7..719eff526 100644 --- a/src/data.json +++ b/src/data.json @@ -2545,6 +2545,29 @@ "sharp" ] }, + { + "name": "chevron-collapse", + "tags": [ + "chevron", + "collapse" + ] + }, + { + "name": "chevron-collapse-outline", + "tags": [ + "chevron", + "collapse", + "outline" + ] + }, + { + "name": "chevron-collapse-sharp", + "tags": [ + "chevron", + "collapse", + "sharp" + ] + }, { "name": "chevron-down", "tags": [ @@ -2600,6 +2623,29 @@ "sharp" ] }, + { + "name": "chevron-expand", + "tags": [ + "chevron", + "expand" + ] + }, + { + "name": "chevron-expand-outline", + "tags": [ + "chevron", + "expand", + "outline" + ] + }, + { + "name": "chevron-expand-sharp", + "tags": [ + "chevron", + "expand", + "sharp" + ] + }, { "name": "chevron-forward", "tags": [ diff --git a/src/svg/chevron-collapse-outline.svg b/src/svg/chevron-collapse-outline.svg new file mode 100644 index 000000000..573066b3f --- /dev/null +++ b/src/svg/chevron-collapse-outline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/svg/chevron-collapse-sharp.svg b/src/svg/chevron-collapse-sharp.svg new file mode 100644 index 000000000..d3fe29086 --- /dev/null +++ b/src/svg/chevron-collapse-sharp.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/svg/chevron-collapse.svg b/src/svg/chevron-collapse.svg new file mode 100644 index 000000000..6e2113281 --- /dev/null +++ b/src/svg/chevron-collapse.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/svg/chevron-expand-outline.svg b/src/svg/chevron-expand-outline.svg new file mode 100644 index 000000000..e91ae0030 --- /dev/null +++ b/src/svg/chevron-expand-outline.svg @@ -0,0 +1 @@ + diff --git a/src/svg/chevron-expand-sharp.svg b/src/svg/chevron-expand-sharp.svg new file mode 100644 index 000000000..9a2e57d4f --- /dev/null +++ b/src/svg/chevron-expand-sharp.svg @@ -0,0 +1 @@ + diff --git a/src/svg/chevron-expand.svg b/src/svg/chevron-expand.svg new file mode 100644 index 000000000..f934270e2 --- /dev/null +++ b/src/svg/chevron-expand.svg @@ -0,0 +1 @@ +