@hackthedev/icons 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Icons.js +15 -0
- package/README.md +0 -0
- package/package.json +14 -0
package/Icons.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
class Icon {
|
|
2
|
+
static icon_list = {
|
|
3
|
+
edit_black: `<svg class="svg-icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="#000" d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zm2.92 2.33H5v-.92L14.06 7.5l.92.92L5.92 19.58zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>`,
|
|
4
|
+
edit: `<svg class="svg-icon" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zm2.92 2.33H5v-.92L14.06 7.5l.92.92L5.92 19.58zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>`,
|
|
5
|
+
pin: `<svg class="svg-icon" viewBox="0 0 24 24"><path d="M16 9V3H8v6l-2 4v2h6v7l2-7h4v-2l-2-4z"/></svg>`,
|
|
6
|
+
unpin: `<svg class="svg-icon" viewBox="0 0 24 24"><path d="M3 5.27 4.28 4l15.5 15.5L18.5 21l-6.5-6.5L9 21v-7H5v-2l2-4V5h1.73L3 5.27zM16 9l2 4v2h-2.73l-5-5H16V3h-2v4h2v2z"/></svg>`,
|
|
7
|
+
del: `<svg class="svg-icon" viewBox="0 0 24 24"><path d="M6 7h12v2H6V7zm2 3h8l-1 9H9L8 10zm3-6h2l1 1h4v2H6V5h4l1-1z"/></svg>`
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
static fallback = "del";
|
|
11
|
+
|
|
12
|
+
static display(name) {
|
|
13
|
+
return this.icon_list[name] || this.icon_list[this.fallback];
|
|
14
|
+
}
|
|
15
|
+
}
|
package/README.md
ADDED
|
File without changes
|
package/package.json
ADDED