From 190ae2e4397464715658aa20ac8dc4e26a6d4c5d Mon Sep 17 00:00:00 2001
From: Andrew Brock
Date: Sun, 12 Sep 2021 22:27:45 +0930
Subject: [PATCH] Add Health Icons - Closes #482
---
.gitmodules | 3 +++
README.md | 1 +
packages/demo/src/App.js | 2 ++
.../demo/src/__snapshots__/App.test.js.snap | 1 +
packages/react-icons/VERSIONS | 1 +
packages/react-icons/src/icons/healthicons | 1 +
packages/react-icons/src/icons/index.js | 21 +++++++++++++++++++
7 files changed, 30 insertions(+)
create mode 160000 packages/react-icons/src/icons/healthicons
diff --git a/.gitmodules b/.gitmodules
index 7385410c51..d5c65ddfef 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -52,3 +52,6 @@
[submodule "webfont-medical-icons"]
path = packages/react-icons/src/icons/webfont-medical-icons
url = https://github.com/samcome/webfont-medical-icons.git
+[submodule "packages/react-icons/src/icons/healthicons"]
+ path = packages/react-icons/src/icons/healthicons
+ url = https://github.com/resolvetosavelives/healthicons.git
diff --git a/README.md b/README.md
index e5067c660e..14baefac3e 100644
--- a/README.md
+++ b/README.md
@@ -81,6 +81,7 @@ Icon Library|License|Version|Count
[BoxIcons](https://github.com/atisawd/boxicons)|[CC BY 4.0 License](undefined)|2.0.5|738
[css.gg](https://github.com/astrit/css.gg)|[MIT](https://opensource.org/licenses/MIT)|2.0.0|704
[VS Code Icons](https://github.com/microsoft/vscode-codicons)|[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)|0.0.1|319
+[Health Icons](https://github.com/resolvetosavelives/healthicons)|[MIT](https://opensource.org/licenses/MIT)|0.1.0|2120
You can add more icons by submitting pull requests or creating issues.
diff --git a/packages/demo/src/App.js b/packages/demo/src/App.js
index 4facd55c7f..c766ae1d3b 100644
--- a/packages/demo/src/App.js
+++ b/packages/demo/src/App.js
@@ -7,6 +7,7 @@ import { FaFolder } from "react-icons/fa";
import { MdAccessibility } from "react-icons/md";
import { TiArrowDown } from "react-icons/ti";
import { GrGrommet } from "react-icons/gr";
+import { HiAcademicCap } from "react-icons/hi";
class App extends Component {
render() {
@@ -36,6 +37,7 @@ class App extends Component {
+
);
diff --git a/packages/demo/src/__snapshots__/App.test.js.snap b/packages/demo/src/__snapshots__/App.test.js.snap
index e3655fac39..e670b1ced5 100644
--- a/packages/demo/src/__snapshots__/App.test.js.snap
+++ b/packages/demo/src/__snapshots__/App.test.js.snap
@@ -50,6 +50,7 @@ exports[`snapshot test 1`] = `
title="arrow down icon"
/>
+
`;
diff --git a/packages/react-icons/VERSIONS b/packages/react-icons/VERSIONS
index 1d5495f582..6baebcd791 100644
--- a/packages/react-icons/VERSIONS
+++ b/packages/react-icons/VERSIONS
@@ -22,3 +22,4 @@ Icon Library|License|Version|Count
[BoxIcons](https://github.com/atisawd/boxicons)|[CC BY 4.0 License](undefined)|2.0.5|738
[css.gg](https://github.com/astrit/css.gg)|[MIT](https://opensource.org/licenses/MIT)|2.0.0|704
[VS Code Icons](https://github.com/microsoft/vscode-codicons)|[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)|0.0.1|319
+[Health Icons](https://github.com/resolvetosavelives/healthicons)|[MIT](https://opensource.org/licenses/MIT)|0.1.0|2120
\ No newline at end of file
diff --git a/packages/react-icons/src/icons/healthicons b/packages/react-icons/src/icons/healthicons
new file mode 160000
index 0000000000..0df29ec918
--- /dev/null
+++ b/packages/react-icons/src/icons/healthicons
@@ -0,0 +1 @@
+Subproject commit 0df29ec9189ae204a849400c912aea01ad3d51d6
diff --git a/packages/react-icons/src/icons/index.js b/packages/react-icons/src/icons/index.js
index edb61d3c7a..133d89807c 100644
--- a/packages/react-icons/src/icons/index.js
+++ b/packages/react-icons/src/icons/index.js
@@ -349,5 +349,26 @@ module.exports = {
license: "MIT",
licenseUrl: "https://opensource.org/licenses/MIT",
},
+ {
+ id: "hi",
+ name: "Health icons",
+ contents: [
+ {
+ files: path.resolve(__dirname, "healthicons/public/icons/svg/filled/*/*.svg"),
+ formatter: (name) => `Hi${name}`,
+ },
+ {
+ files: path.resolve(__dirname, "healthicons/public/icons/svg/negative/*/*.svg"),
+ formatter: (name) => `HiNegative${name}`,
+ },
+ {
+ files: path.resolve(__dirname, "healthicons/public/icons/svg/outline/*/*.svg"),
+ formatter: (name) => `HiOutline${name}`,
+ },
+ ],
+ projectUrl: "https://github.com/resolvetosavelives/healthicons",
+ license: "MIT",
+ licenseUrl: "https://opensource.org/licenses/MIT",
+ },
],
};