From ad5b2e5ae2e5fddbc5ada2e9c99e69371291b590 Mon Sep 17 00:00:00 2001 From: Karsa Date: Fri, 6 May 2022 09:21:30 +0200 Subject: [PATCH 01/17] Added `puzzle` (#633) * Added accessibility icon as per https://github.com/feathericons/feather/issues/633 * added newline to end of file * Updated icon to comply with design guidelines and more closely match accessibleicon.org * Added puzzle Co-authored-by: Karsa --- icons/puzzle.svg | 13 +++++++++++++ tags.json | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 icons/puzzle.svg diff --git a/icons/puzzle.svg b/icons/puzzle.svg new file mode 100644 index 000000000..6439615f0 --- /dev/null +++ b/icons/puzzle.svg @@ -0,0 +1,13 @@ + + + diff --git a/tags.json b/tags.json index ac3841133..0652c45d1 100644 --- a/tags.json +++ b/tags.json @@ -1956,6 +1956,12 @@ "office", "device" ], + "puzzle": [ + "component", + "module", + "part", + "piece" + ], "qr-code": [ "barcode" ], From bd4e464048f13fdc6609ef1f9f0bab5579931813 Mon Sep 17 00:00:00 2001 From: Lennard Scheibel <44374653+lscheibel@users.noreply.github.com> Date: Fri, 6 May 2022 09:21:44 +0200 Subject: [PATCH 02/17] Add vibrate-off icon (#641) --- icons/vibrate-off.svg | 17 +++++++++++++++++ tags.json | 10 +++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 icons/vibrate-off.svg diff --git a/icons/vibrate-off.svg b/icons/vibrate-off.svg new file mode 100644 index 000000000..f7484d4ad --- /dev/null +++ b/icons/vibrate-off.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/tags.json b/tags.json index 0652c45d1..3cfeae294 100644 --- a/tags.json +++ b/tags.json @@ -2638,7 +2638,15 @@ ], "vibrate": [ "smartphone", - "notification" + "notification", + "rumble", + "haptic feedback" + ], + "vibrate-off": [ + "smartphone", + "notification", + "rumble", + "haptic feedback" ], "video": [ "camera", From c9b9c9303408f0b21202fcdc09f209d0d222e90c Mon Sep 17 00:00:00 2001 From: Lucide Bot Date: Fri, 6 May 2022 07:28:43 +0000 Subject: [PATCH 03/17] :package: Bump lucide package versions to 0.39.0 --- packages/lucide-angular/package.json | 2 +- packages/lucide-flutter/pubspec.yaml | 2 +- packages/lucide-preact/package.json | 2 +- packages/lucide-react/package.json | 2 +- packages/lucide-svelte/package.json | 2 +- packages/lucide-vue-next/package.json | 2 +- packages/lucide-vue/package.json | 2 +- packages/lucide/package.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/lucide-angular/package.json b/packages/lucide-angular/package.json index 473139879..65c8dd591 100644 --- a/packages/lucide-angular/package.json +++ b/packages/lucide-angular/package.json @@ -1,7 +1,7 @@ { "name": "lucide-angular", "description": "A Lucide icon library package for Angular applications", - "version": "0.37.0", + "version": "0.39.0", "author": "SMAH1", "license": "ISC", "homepage": "https://lucide.dev", diff --git a/packages/lucide-flutter/pubspec.yaml b/packages/lucide-flutter/pubspec.yaml index db68f55f5..0cc8ba6d8 100644 --- a/packages/lucide-flutter/pubspec.yaml +++ b/packages/lucide-flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: lucide_icons description: A Lucide icon library package for Flutter applications. Fork of Feather Icons, open for anyone to contribute icons. -version: 0.37.0 +version: 0.39.0 homepage: https://lucide.dev repository: https://github.com/lucide-icons/lucide diff --git a/packages/lucide-preact/package.json b/packages/lucide-preact/package.json index a3351c80d..a9f8823da 100644 --- a/packages/lucide-preact/package.json +++ b/packages/lucide-preact/package.json @@ -1,7 +1,7 @@ { "name": "lucide-preact", "description": "A Lucide icon library package for Preact applications", - "version": "0.37.0", + "version": "0.39.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-react/package.json b/packages/lucide-react/package.json index 5ab9f530f..8c8b5e898 100644 --- a/packages/lucide-react/package.json +++ b/packages/lucide-react/package.json @@ -1,7 +1,7 @@ { "name": "lucide-react", "description": "A Lucide icon library package for React applications", - "version": "0.37.0", + "version": "0.39.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-svelte/package.json b/packages/lucide-svelte/package.json index 318dc4587..e46f3c019 100644 --- a/packages/lucide-svelte/package.json +++ b/packages/lucide-svelte/package.json @@ -1,7 +1,7 @@ { "name": "lucide-svelte", "description": "A Lucide icon library package for Svelte applications", - "version": "0.37.0", + "version": "0.39.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-vue-next/package.json b/packages/lucide-vue-next/package.json index f3cecdb32..f0564db37 100644 --- a/packages/lucide-vue-next/package.json +++ b/packages/lucide-vue-next/package.json @@ -1,6 +1,6 @@ { "name": "lucide-vue-next", - "version": "0.37.0", + "version": "0.39.0", "author": "Eric Fennis", "description": "A Lucide icon library package for Vue 3 applications", "license": "ISC", diff --git a/packages/lucide-vue/package.json b/packages/lucide-vue/package.json index 5aa7c3d96..426100bfc 100644 --- a/packages/lucide-vue/package.json +++ b/packages/lucide-vue/package.json @@ -1,6 +1,6 @@ { "name": "lucide-vue", - "version": "0.37.0", + "version": "0.39.0", "author": "Eric Fennis", "description": "A Lucide icon library package for Vue 2 applications", "license": "ISC", diff --git a/packages/lucide/package.json b/packages/lucide/package.json index f83d0bf55..17834e1e9 100644 --- a/packages/lucide/package.json +++ b/packages/lucide/package.json @@ -1,7 +1,7 @@ { "name": "lucide", "description": "A Lucide icon library package for web and javascript applications.", - "version": "0.37.0", + "version": "0.39.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", From fcc5dd70add4a68d8c00e846f8db5b0481a1b86a Mon Sep 17 00:00:00 2001 From: Karsa Date: Sat, 7 May 2022 16:56:25 +0200 Subject: [PATCH 04/17] Added `focus` (#634) * Added accessibility icon as per https://github.com/feathericons/feather/issues/633 * added newline to end of file * Updated icon to comply with design guidelines and more closely match accessibleicon.org * Added focus * Update icon to match scan-line Co-authored-by: Karsa --- icons/focus.svg | 17 +++++++++++++++++ tags.json | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 icons/focus.svg diff --git a/icons/focus.svg b/icons/focus.svg new file mode 100644 index 000000000..cd6e677b6 --- /dev/null +++ b/icons/focus.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/tags.json b/tags.json index 3cfeae294..740c44085 100644 --- a/tags.json +++ b/tags.json @@ -1136,6 +1136,11 @@ "flask-round": [ "beaker" ], + "focus": [ + "camera", + "lens", + "photo" + ], "folder": [ "directory" ], From 6706ade47c20791a258644292e52f4753beb6852 Mon Sep 17 00:00:00 2001 From: Lucide Bot Date: Sat, 7 May 2022 15:03:32 +0000 Subject: [PATCH 05/17] :package: Bump lucide package versions to 0.40.0 --- packages/lucide-angular/package.json | 2 +- packages/lucide-flutter/pubspec.yaml | 2 +- packages/lucide-preact/package.json | 2 +- packages/lucide-react/package.json | 2 +- packages/lucide-svelte/package.json | 2 +- packages/lucide-vue-next/package.json | 2 +- packages/lucide-vue/package.json | 2 +- packages/lucide/package.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/lucide-angular/package.json b/packages/lucide-angular/package.json index 65c8dd591..cab1887a7 100644 --- a/packages/lucide-angular/package.json +++ b/packages/lucide-angular/package.json @@ -1,7 +1,7 @@ { "name": "lucide-angular", "description": "A Lucide icon library package for Angular applications", - "version": "0.39.0", + "version": "0.40.0", "author": "SMAH1", "license": "ISC", "homepage": "https://lucide.dev", diff --git a/packages/lucide-flutter/pubspec.yaml b/packages/lucide-flutter/pubspec.yaml index 0cc8ba6d8..a327a543c 100644 --- a/packages/lucide-flutter/pubspec.yaml +++ b/packages/lucide-flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: lucide_icons description: A Lucide icon library package for Flutter applications. Fork of Feather Icons, open for anyone to contribute icons. -version: 0.39.0 +version: 0.40.0 homepage: https://lucide.dev repository: https://github.com/lucide-icons/lucide diff --git a/packages/lucide-preact/package.json b/packages/lucide-preact/package.json index a9f8823da..a066dbcfc 100644 --- a/packages/lucide-preact/package.json +++ b/packages/lucide-preact/package.json @@ -1,7 +1,7 @@ { "name": "lucide-preact", "description": "A Lucide icon library package for Preact applications", - "version": "0.39.0", + "version": "0.40.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-react/package.json b/packages/lucide-react/package.json index 8c8b5e898..a5997ba04 100644 --- a/packages/lucide-react/package.json +++ b/packages/lucide-react/package.json @@ -1,7 +1,7 @@ { "name": "lucide-react", "description": "A Lucide icon library package for React applications", - "version": "0.39.0", + "version": "0.40.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-svelte/package.json b/packages/lucide-svelte/package.json index e46f3c019..f1b75f940 100644 --- a/packages/lucide-svelte/package.json +++ b/packages/lucide-svelte/package.json @@ -1,7 +1,7 @@ { "name": "lucide-svelte", "description": "A Lucide icon library package for Svelte applications", - "version": "0.39.0", + "version": "0.40.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-vue-next/package.json b/packages/lucide-vue-next/package.json index f0564db37..1fae095b3 100644 --- a/packages/lucide-vue-next/package.json +++ b/packages/lucide-vue-next/package.json @@ -1,6 +1,6 @@ { "name": "lucide-vue-next", - "version": "0.39.0", + "version": "0.40.0", "author": "Eric Fennis", "description": "A Lucide icon library package for Vue 3 applications", "license": "ISC", diff --git a/packages/lucide-vue/package.json b/packages/lucide-vue/package.json index 426100bfc..3485b6c9e 100644 --- a/packages/lucide-vue/package.json +++ b/packages/lucide-vue/package.json @@ -1,6 +1,6 @@ { "name": "lucide-vue", - "version": "0.39.0", + "version": "0.40.0", "author": "Eric Fennis", "description": "A Lucide icon library package for Vue 2 applications", "license": "ISC", diff --git a/packages/lucide/package.json b/packages/lucide/package.json index 17834e1e9..a180990b0 100644 --- a/packages/lucide/package.json +++ b/packages/lucide/package.json @@ -1,7 +1,7 @@ { "name": "lucide", "description": "A Lucide icon library package for web and javascript applications.", - "version": "0.39.0", + "version": "0.40.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", From a104a1f2065840753a56cd3328cfe590db3557df Mon Sep 17 00:00:00 2001 From: Karsa Date: Sat, 7 May 2022 17:07:44 +0200 Subject: [PATCH 06/17] Fixes `cpu` (#572) * Fixes cpu * Update icons/cpu.svg Co-authored-by: Eric Fennis * Update icons/cpu.svg Co-authored-by: Eric Fennis Co-authored-by: Karsa Co-authored-by: Eric Fennis --- icons/cpu.svg | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/icons/cpu.svg b/icons/cpu.svg index 4c45b9dd3..8aa6bb9cf 100644 --- a/icons/cpu.svg +++ b/icons/cpu.svg @@ -11,12 +11,12 @@ > - - - - - - - - + + + + + + + + From ef7b4fe01402e0df0b0a2486efee827d1235c6f3 Mon Sep 17 00:00:00 2001 From: Lucide Bot Date: Sat, 7 May 2022 15:16:20 +0000 Subject: [PATCH 07/17] :package: Bump lucide package versions to 0.41.0 --- packages/lucide-angular/package.json | 2 +- packages/lucide-flutter/pubspec.yaml | 2 +- packages/lucide-preact/package.json | 2 +- packages/lucide-react/package.json | 2 +- packages/lucide-svelte/package.json | 2 +- packages/lucide-vue-next/package.json | 2 +- packages/lucide-vue/package.json | 2 +- packages/lucide/package.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/lucide-angular/package.json b/packages/lucide-angular/package.json index cab1887a7..71f6eb1a0 100644 --- a/packages/lucide-angular/package.json +++ b/packages/lucide-angular/package.json @@ -1,7 +1,7 @@ { "name": "lucide-angular", "description": "A Lucide icon library package for Angular applications", - "version": "0.40.0", + "version": "0.41.0", "author": "SMAH1", "license": "ISC", "homepage": "https://lucide.dev", diff --git a/packages/lucide-flutter/pubspec.yaml b/packages/lucide-flutter/pubspec.yaml index a327a543c..277d0bc7d 100644 --- a/packages/lucide-flutter/pubspec.yaml +++ b/packages/lucide-flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: lucide_icons description: A Lucide icon library package for Flutter applications. Fork of Feather Icons, open for anyone to contribute icons. -version: 0.40.0 +version: 0.41.0 homepage: https://lucide.dev repository: https://github.com/lucide-icons/lucide diff --git a/packages/lucide-preact/package.json b/packages/lucide-preact/package.json index a066dbcfc..07595b3af 100644 --- a/packages/lucide-preact/package.json +++ b/packages/lucide-preact/package.json @@ -1,7 +1,7 @@ { "name": "lucide-preact", "description": "A Lucide icon library package for Preact applications", - "version": "0.40.0", + "version": "0.41.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-react/package.json b/packages/lucide-react/package.json index a5997ba04..1ba1b87b1 100644 --- a/packages/lucide-react/package.json +++ b/packages/lucide-react/package.json @@ -1,7 +1,7 @@ { "name": "lucide-react", "description": "A Lucide icon library package for React applications", - "version": "0.40.0", + "version": "0.41.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-svelte/package.json b/packages/lucide-svelte/package.json index f1b75f940..70880fc64 100644 --- a/packages/lucide-svelte/package.json +++ b/packages/lucide-svelte/package.json @@ -1,7 +1,7 @@ { "name": "lucide-svelte", "description": "A Lucide icon library package for Svelte applications", - "version": "0.40.0", + "version": "0.41.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-vue-next/package.json b/packages/lucide-vue-next/package.json index 1fae095b3..444403af7 100644 --- a/packages/lucide-vue-next/package.json +++ b/packages/lucide-vue-next/package.json @@ -1,6 +1,6 @@ { "name": "lucide-vue-next", - "version": "0.40.0", + "version": "0.41.0", "author": "Eric Fennis", "description": "A Lucide icon library package for Vue 3 applications", "license": "ISC", diff --git a/packages/lucide-vue/package.json b/packages/lucide-vue/package.json index 3485b6c9e..49be2b0bb 100644 --- a/packages/lucide-vue/package.json +++ b/packages/lucide-vue/package.json @@ -1,6 +1,6 @@ { "name": "lucide-vue", - "version": "0.40.0", + "version": "0.41.0", "author": "Eric Fennis", "description": "A Lucide icon library package for Vue 2 applications", "license": "ISC", diff --git a/packages/lucide/package.json b/packages/lucide/package.json index a180990b0..20fd13c51 100644 --- a/packages/lucide/package.json +++ b/packages/lucide/package.json @@ -1,7 +1,7 @@ { "name": "lucide", "description": "A Lucide icon library package for web and javascript applications.", - "version": "0.40.0", + "version": "0.41.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", From f8192b09995795a905135c2214288083af2f7233 Mon Sep 17 00:00:00 2001 From: Karsa Date: Mon, 9 May 2022 09:21:13 +0200 Subject: [PATCH 08/17] Added factory icon (#558) * Added factory icon * slightly adjusted visual style to match lucide * Make factory more in line with other building icons * Slight adjustment to roof height * Even more drastic increase in size. * One more tiny change to roof shape * Added @ericfennis' suggestion Co-authored-by: Eric Fennis Co-authored-by: Karsa Co-authored-by: Eric Fennis --- icons/factory.svg | 16 ++++++++++++++++ tags.json | 8 ++++++++ 2 files changed, 24 insertions(+) create mode 100644 icons/factory.svg diff --git a/icons/factory.svg b/icons/factory.svg new file mode 100644 index 000000000..18afd3bb0 --- /dev/null +++ b/icons/factory.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/tags.json b/tags.json index 740c44085..d849064da 100644 --- a/tags.json +++ b/tags.json @@ -1014,6 +1014,14 @@ "logo", "social" ], + "factory": [ + "building", + "business", + "energy", + "industry", + "manufacture", + "sector" + ], "fast-forward": [ "music" ], From 0d87ec28eba768757e260dc576150e0fb83362a9 Mon Sep 17 00:00:00 2001 From: Lucide Bot Date: Mon, 9 May 2022 07:28:59 +0000 Subject: [PATCH 09/17] :package: Bump lucide package versions to 0.42.0 --- packages/lucide-angular/package.json | 2 +- packages/lucide-flutter/pubspec.yaml | 2 +- packages/lucide-preact/package.json | 2 +- packages/lucide-react/package.json | 2 +- packages/lucide-svelte/package.json | 2 +- packages/lucide-vue-next/package.json | 2 +- packages/lucide-vue/package.json | 2 +- packages/lucide/package.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/lucide-angular/package.json b/packages/lucide-angular/package.json index 71f6eb1a0..154e14fb6 100644 --- a/packages/lucide-angular/package.json +++ b/packages/lucide-angular/package.json @@ -1,7 +1,7 @@ { "name": "lucide-angular", "description": "A Lucide icon library package for Angular applications", - "version": "0.41.0", + "version": "0.42.0", "author": "SMAH1", "license": "ISC", "homepage": "https://lucide.dev", diff --git a/packages/lucide-flutter/pubspec.yaml b/packages/lucide-flutter/pubspec.yaml index 277d0bc7d..fdaece0fb 100644 --- a/packages/lucide-flutter/pubspec.yaml +++ b/packages/lucide-flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: lucide_icons description: A Lucide icon library package for Flutter applications. Fork of Feather Icons, open for anyone to contribute icons. -version: 0.41.0 +version: 0.42.0 homepage: https://lucide.dev repository: https://github.com/lucide-icons/lucide diff --git a/packages/lucide-preact/package.json b/packages/lucide-preact/package.json index 07595b3af..17455a109 100644 --- a/packages/lucide-preact/package.json +++ b/packages/lucide-preact/package.json @@ -1,7 +1,7 @@ { "name": "lucide-preact", "description": "A Lucide icon library package for Preact applications", - "version": "0.41.0", + "version": "0.42.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-react/package.json b/packages/lucide-react/package.json index 1ba1b87b1..3ac469481 100644 --- a/packages/lucide-react/package.json +++ b/packages/lucide-react/package.json @@ -1,7 +1,7 @@ { "name": "lucide-react", "description": "A Lucide icon library package for React applications", - "version": "0.41.0", + "version": "0.42.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-svelte/package.json b/packages/lucide-svelte/package.json index 70880fc64..0768c099e 100644 --- a/packages/lucide-svelte/package.json +++ b/packages/lucide-svelte/package.json @@ -1,7 +1,7 @@ { "name": "lucide-svelte", "description": "A Lucide icon library package for Svelte applications", - "version": "0.41.0", + "version": "0.42.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", diff --git a/packages/lucide-vue-next/package.json b/packages/lucide-vue-next/package.json index 444403af7..f384cab1e 100644 --- a/packages/lucide-vue-next/package.json +++ b/packages/lucide-vue-next/package.json @@ -1,6 +1,6 @@ { "name": "lucide-vue-next", - "version": "0.41.0", + "version": "0.42.0", "author": "Eric Fennis", "description": "A Lucide icon library package for Vue 3 applications", "license": "ISC", diff --git a/packages/lucide-vue/package.json b/packages/lucide-vue/package.json index 49be2b0bb..22ab1817f 100644 --- a/packages/lucide-vue/package.json +++ b/packages/lucide-vue/package.json @@ -1,6 +1,6 @@ { "name": "lucide-vue", - "version": "0.41.0", + "version": "0.42.0", "author": "Eric Fennis", "description": "A Lucide icon library package for Vue 2 applications", "license": "ISC", diff --git a/packages/lucide/package.json b/packages/lucide/package.json index 20fd13c51..aaaab18e9 100644 --- a/packages/lucide/package.json +++ b/packages/lucide/package.json @@ -1,7 +1,7 @@ { "name": "lucide", "description": "A Lucide icon library package for web and javascript applications.", - "version": "0.41.0", + "version": "0.42.0", "license": "ISC", "homepage": "https://lucide.dev", "bugs": "https://github.com/lucide-icons/lucide/issues", From aa8b23b12a21b41fe10065195f514d6de7f72473 Mon Sep 17 00:00:00 2001 From: Karsa Date: Mon, 9 May 2022 17:12:31 +0200 Subject: [PATCH 10/17] Fixes delete (#623) Co-authored-by: Karsa --- icons/delete.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icons/delete.svg b/icons/delete.svg index 46c79d050..895f9d6b0 100644 --- a/icons/delete.svg +++ b/icons/delete.svg @@ -9,7 +9,7 @@ stroke-linecap="round" stroke-linejoin="round" > - + From 96aec6562a6726d05ce41195718d2efdeebd2e3c Mon Sep 17 00:00:00 2001 From: Lennard Scheibel <44374653+lscheibel@users.noreply.github.com> Date: Mon, 9 May 2022 17:14:24 +0200 Subject: [PATCH 11/17] Add undo and redo alternative (#643) --- icons/redo-2.svg | 14 ++++++++++++++ icons/undo-2.svg | 14 ++++++++++++++ tags.json | 8 ++++++++ 3 files changed, 36 insertions(+) create mode 100644 icons/redo-2.svg create mode 100644 icons/undo-2.svg diff --git a/icons/redo-2.svg b/icons/redo-2.svg new file mode 100644 index 000000000..157ff1271 --- /dev/null +++ b/icons/redo-2.svg @@ -0,0 +1,14 @@ + + + + diff --git a/icons/undo-2.svg b/icons/undo-2.svg new file mode 100644 index 000000000..5ed8daf56 --- /dev/null +++ b/icons/undo-2.svg @@ -0,0 +1,14 @@ + + + + diff --git a/tags.json b/tags.json index d849064da..39800fa1b 100644 --- a/tags.json +++ b/tags.json @@ -1993,6 +1993,10 @@ "undo", "history" ], + "redo-2": [ + "undo", + "history" + ], "refresh-ccw": [ "arrows", "reload" @@ -2593,6 +2597,10 @@ "redo", "history" ], + "undo-2": [ + "redo", + "history" + ], "unlink": [ "url", "unchain", From 2c3546840335df816b02d5b76a4e56f2091a8ec0 Mon Sep 17 00:00:00 2001 From: Karsa Date: Mon, 9 May 2022 17:21:16 +0200 Subject: [PATCH 12/17] Added `map-pin-off`, `navigation-off` & `navigation-off-2` (#647) * Added accessibility icon as per https://github.com/feathericons/feather/issues/633 * added newline to end of file * Updated icon to comply with design guidelines and more closely match accessibleicon.org * Added various location-off icons * Renamed navigation-off-2 => navigation-2-off Co-authored-by: Karsa --- icons/map-pin-off.svg | 17 +++++++++++++++++ icons/navigation-2-off.svg | 15 +++++++++++++++ icons/navigation-off.svg | 15 +++++++++++++++ tags.json | 14 ++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 icons/map-pin-off.svg create mode 100644 icons/navigation-2-off.svg create mode 100644 icons/navigation-off.svg diff --git a/icons/map-pin-off.svg b/icons/map-pin-off.svg new file mode 100644 index 000000000..0411a3c96 --- /dev/null +++ b/icons/map-pin-off.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/icons/navigation-2-off.svg b/icons/navigation-2-off.svg new file mode 100644 index 000000000..fa69f3ddf --- /dev/null +++ b/icons/navigation-2-off.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/icons/navigation-off.svg b/icons/navigation-off.svg new file mode 100644 index 000000000..3f05f6089 --- /dev/null +++ b/icons/navigation-off.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/tags.json b/tags.json index 39800fa1b..00fc6f25a 100644 --- a/tags.json +++ b/tags.json @@ -1620,6 +1620,12 @@ "travel", "marker" ], + "map-pin-off": [ + "location", + "navigation", + "travel", + "marker" + ], "maximize": [ "fullscreen", "expand" @@ -1784,6 +1790,14 @@ "location", "travel" ], + "navigation-2-off": [ + "location", + "travel" + ], + "navigation-off": [ + "location", + "travel" + ], "network": [ "tree" ], From 7e3d6a8121baf18e2f60109426157ad38a330d5b Mon Sep 17 00:00:00 2001 From: Karsa Date: Mon, 9 May 2022 17:35:05 +0200 Subject: [PATCH 13/17] Fixes `shopping-cart` (#653) * Added accessibility icon as per https://github.com/feathericons/feather/issues/633 * added newline to end of file * Fixes shopping-cart * Update shopping-cart.svg * Updated icon to comply with design guidelines and more closely match accessibleicon.org * Adds slightly more visual weight to shopping-cart Co-authored-by: Karsa --- icons/shopping-cart.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icons/shopping-cart.svg b/icons/shopping-cart.svg index a73631c7f..6d9f8844e 100644 --- a/icons/shopping-cart.svg +++ b/icons/shopping-cart.svg @@ -9,7 +9,7 @@ stroke-linecap="round" stroke-linejoin="round" > - + - + From ea82684178f796706792e99779c0a0d5644c9113 Mon Sep 17 00:00:00 2001 From: Karsa Date: Mon, 9 May 2022 17:35:33 +0200 Subject: [PATCH 14/17] Fixes `pipette` (#579) * Fixes pipette * Update pipette.svg Co-authored-by: Karsa --- icons/pipette.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icons/pipette.svg b/icons/pipette.svg index 85eb24147..e41814ab9 100644 --- a/icons/pipette.svg +++ b/icons/pipette.svg @@ -9,7 +9,7 @@ stroke-linecap="round" stroke-linejoin="round" > - - - + + + From f3a1bba31d42606029dbd036f18291e2161da8f9 Mon Sep 17 00:00:00 2001 From: Karsa Date: Sat, 14 May 2022 20:42:27 +0200 Subject: [PATCH 15/17] Added alternate line/bar chart icons (#564) * Added alternate line/bar chart icons * Added charts to tags.json * Update bar-chart-3.svg * Update bar-chart-4.svg * Update bar-chart-horizontal.svg * Update line-chart.svg Co-authored-by: Karsa --- icons/bar-chart-3.svg | 16 ++++++++++++++++ icons/bar-chart-4.svg | 16 ++++++++++++++++ icons/bar-chart-horizontal.svg | 16 ++++++++++++++++ icons/line-chart.svg | 14 ++++++++++++++ tags.json | 20 ++++++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 icons/bar-chart-3.svg create mode 100644 icons/bar-chart-4.svg create mode 100644 icons/bar-chart-horizontal.svg create mode 100644 icons/line-chart.svg diff --git a/icons/bar-chart-3.svg b/icons/bar-chart-3.svg new file mode 100644 index 000000000..efba4b93f --- /dev/null +++ b/icons/bar-chart-3.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/icons/bar-chart-4.svg b/icons/bar-chart-4.svg new file mode 100644 index 000000000..e3e85f53e --- /dev/null +++ b/icons/bar-chart-4.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/icons/bar-chart-horizontal.svg b/icons/bar-chart-horizontal.svg new file mode 100644 index 000000000..92f5dc979 --- /dev/null +++ b/icons/bar-chart-horizontal.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/icons/line-chart.svg b/icons/line-chart.svg new file mode 100644 index 000000000..4857266a3 --- /dev/null +++ b/icons/line-chart.svg @@ -0,0 +1,14 @@ + + + + diff --git a/tags.json b/tags.json index 00fc6f25a..c2c763707 100644 --- a/tags.json +++ b/tags.json @@ -317,6 +317,21 @@ "diagram", "graph" ], + "bar-chart-3": [ + "statistics", + "diagram", + "graph" + ], + "bar-chart-4": [ + "statistics", + "diagram", + "graph" + ], + "bar-chart-horizontal": [ + "statistics", + "diagram", + "graph" + ], "baseline": [ "text", "format", @@ -1513,6 +1528,11 @@ "lightbulb-off": [ "lights" ], + "line-chart": [ + "statistics", + "diagram", + "graph" + ], "link": [ "chain", "url" From 38c834bcda7bb46eca06127357c6878daac84978 Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Sat, 14 May 2022 20:43:15 +0200 Subject: [PATCH 16/17] Add customize icon in downloadAll (#663) --- site/src/components/CustomizeIconContext.tsx | 43 ++++++++++++----- site/src/components/Header.tsx | 51 +++++++++++++++++--- site/src/components/IconListItem.tsx | 12 +++-- site/src/pages/icon/[iconName].tsx | 16 +++--- 4 files changed, 88 insertions(+), 34 deletions(-) diff --git a/site/src/components/CustomizeIconContext.tsx b/site/src/components/CustomizeIconContext.tsx index 00de9c9e9..dbebb31ea 100644 --- a/site/src/components/CustomizeIconContext.tsx +++ b/site/src/components/CustomizeIconContext.tsx @@ -1,4 +1,6 @@ -import { createContext, useState } from 'react'; +import { createContext, useRef, useState, MutableRefObject, useContext, useMemo } from 'react'; + +type IconsRef = Record; interface ICustomIconStyle { color: string; @@ -8,13 +10,14 @@ interface ICustomIconStyle { size: number; setSize: (n: number) => void; resetStyle: () => void; + iconsRef: MutableRefObject; } const DEFAULT_STYLE = { color: 'currentColor', strokeWidth: 2, size: 24, -} +}; export const IconStyleContext = createContext({ color: 'currentColor', @@ -23,25 +26,43 @@ export const IconStyleContext = createContext({ setStroke: (n: number) => null, size: 24, setSize: (n: number) => null, - resetStyle: () => null + resetStyle: () => null, + iconsRef: { current: {} }, }); -export function CustomizeIconContext({ children }) { +export function CustomizeIconContext({ children }): JSX.Element { + const iconsRef = useRef({}); const [color, setColor] = useState(DEFAULT_STYLE.color); const [stroke, setStroke] = useState(DEFAULT_STYLE.strokeWidth); const [size, setSize] = useState(DEFAULT_STYLE.size); - function resetStyle(){ + function resetStyle() { setColor(DEFAULT_STYLE.color); setStroke(DEFAULT_STYLE.strokeWidth); setSize(DEFAULT_STYLE.size); } - return ( - - {children} - + const value = useMemo( + () => ({ + color, + setColor, + strokeWidth: stroke, + setStroke, + size, + setSize, + resetStyle, + iconsRef, + }), + [color, setColor, stroke, setStroke, size, setSize, resetStyle, iconsRef], ); + + return {children}; +} + +export function useCustomizeIconContext(): ICustomIconStyle { + const context = useContext(IconStyleContext); + if (context === undefined) { + throw new Error('useCustomizeIconContext must be used within a IconStyleContextProvider'); + } + return context; } diff --git a/site/src/components/Header.tsx b/site/src/components/Header.tsx index 5ac74f349..8b5f35f3a 100644 --- a/site/src/components/Header.tsx +++ b/site/src/components/Header.tsx @@ -13,20 +13,49 @@ import AngularLogo from '../../public/framework-logos/angular.svg'; import FlutterLogo from '../../public/framework-logos/flutter.svg'; import SvelteLogo from '../../public/framework-logos/svelte.svg'; import LaravelLogo from '../../public/framework-logos/laravel.svg'; +import { useState } from 'react'; +import { useCustomizeIconContext } from './CustomizeIconContext'; +import { IconEntity } from '../types'; -function generateZip(icons) { +type IconContent = [icon: string, src:string] + +async function generateZip(icons: IconContent[]) { const zip = new JSZip(); - Object.values(icons).forEach(icon => - // @ts-ignore - zip.file(`${icon.name}.svg`, icon.src), + + const addingZipPromises = icons.map(([name, src]) => + zip.file(`${name}.svg`, src), ); + + await Promise.all(addingZipPromises) + return zip.generateAsync({ type: 'blob' }); } -const Header = ({ data }) => { +interface HeaderProps { + data: IconEntity[]; +} + +const Header = ({ data }: HeaderProps) => { + const [zippingIcons, setZippingIcons] = useState(false); + const { iconsRef } = useCustomizeIconContext(); + const downloadAllIcons = async () => { - const zip = await generateZip(data); + console.log(iconsRef); + setZippingIcons(true); + + let iconEntries: IconContent[] = Object.entries(iconsRef.current).map(([name, svgEl]) => [ + name, + svgEl.outerHTML, + ]); + + // Fallback + if (iconEntries.length === 0) { + iconEntries = data.map(icon => [icon.name, icon.src]); + } + + const zip = await generateZip(iconEntries); download(zip, 'lucide.zip'); + setZippingIcons(false); }; const repositoryUrl = 'https://github.com/lucide-icons/lucide'; @@ -76,7 +105,7 @@ const Header = ({ data }) => { name: 'lucide-laravel', Logo: LaravelLogo, href: 'https://github.com/mallardduck/blade-lucide-icons', - } + }, ]; return ( @@ -124,7 +153,13 @@ const Header = ({ data }) => { - diff --git a/site/src/components/IconListItem.tsx b/site/src/components/IconListItem.tsx index b7ab134c0..cf5c32747 100644 --- a/site/src/components/IconListItem.tsx +++ b/site/src/components/IconListItem.tsx @@ -1,8 +1,8 @@ -import { Box, Button, ButtonProps, Flex, Text, useToast } from '@chakra-ui/react'; +import { Button, ButtonProps, Flex, Text, useToast } from '@chakra-ui/react'; import download from 'downloadjs'; import copy from 'copy-to-clipboard'; -import { memo, useContext } from 'react'; -import { IconStyleContext } from './CustomizeIconContext'; +import { memo } from 'react'; +import { useCustomizeIconContext } from './CustomizeIconContext'; import { IconWrapper } from './IconWrapper'; interface IconListItemProps { @@ -13,9 +13,9 @@ interface IconListItemProps { onClick?: ButtonProps['onClick']; } -const IconListItem = ({ name, content, src, onClick }: IconListItemProps) => { +const IconListItem = ({ name, content, onClick, src: svg }: IconListItemProps) => { const toast = useToast(); - const { color, size, strokeWidth } = useContext(IconStyleContext); + const { color, size, strokeWidth, iconsRef } = useCustomizeIconContext(); return (