proicons 4.8.0 → 4.9.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/README.md +97 -2
- package/dist/cjs/proicons.cjs +1910 -0
- package/dist/cjs/proicons.cjs.map +1 -0
- package/dist/esm/proicons.js +4172 -0
- package/dist/esm/proicons.js.map +1 -0
- package/dist/icons.json +3 -3
- package/dist/tags.json +2 -1
- package/dist/umd/proicons.cjs +1910 -0
- package/dist/umd/proicons.cjs.map +1 -0
- package/lib/categories.d.ts +1 -0
- package/lib/getIconInfo.d.ts +9 -0
- package/lib/interfaces.d.ts +22 -2
- package/lib/proicons.d.ts +5 -437
- package/lib/replace.d.ts +5 -0
- package/lib/search.d.ts +1 -0
- package/package.json +81 -41
- package/dist/proicons.js +0 -2
- package/dist/proicons.js.map +0 -1
- package/src/configs/icons.json +0 -430
- package/src/configs/tags.json +0 -1713
package/README.md
CHANGED
|
@@ -1,5 +1,100 @@
|
|
|
1
1
|
# ProIcons
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
<img src="https://raw.githubusercontent.com/ProCode-Software/proicons/main/.github/images/github-cover_light.png#gh-light-mode-only">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/ProCode-Software/proicons/main/.github/images/github-cover_dark.png#gh-dark-mode-only">
|
|
5
|
+
|
|
6
|
+
<p align="center">
|
|
7
|
+
<a href="https://github.com/ProCode-Software/proicons/releases">
|
|
8
|
+
<img src="https://img.shields.io/npm/v/proicons?style=for-the-badge&color=orange"
|
|
9
|
+
alt="NPM Version">
|
|
10
|
+
</a>
|
|
11
|
+
<a href="">
|
|
12
|
+
<img src="https://img.shields.io/github/stars/ProCode-Software/proicons?style=for-the-badge"
|
|
13
|
+
alt="Stars">
|
|
14
|
+
</a>
|
|
15
|
+
<a href="https://www.npmjs.com/package/proicons">
|
|
16
|
+
<img src="https://img.shields.io/npm/dm/proicons?label=downloads&style=for-the-badge"
|
|
17
|
+
alt="NPM Package">
|
|
18
|
+
</a>
|
|
19
|
+
<a href="https://github.com/ProCode-Software/proicons/blob/main/LICENSE">
|
|
20
|
+
<img src="https://img.shields.io/github/license/ProCode-Software/proicons?style=for-the-badge"
|
|
21
|
+
alt="License">
|
|
22
|
+
</a>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<b>A collection of 400+ modern and open-source icons and logos</b>
|
|
27
|
+
<br>
|
|
28
|
+
<a href="https://procode-software.github.io/proicons">Icons</a> |
|
|
29
|
+
<a href="https://github.com/ProCode-Software/proicons/wiki">Documentation</a> |
|
|
30
|
+
<a href="https://github.com/ProCode-Software/proicons">GitHub</a> |
|
|
31
|
+
<a href="https://www.npmjs.com/package/proicons">NPM Package</a>
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
> **Work in progress**
|
|
35
|
+
>
|
|
36
|
+
> Most of the website and planned packages aren't currently finished, but you can start using the beta package right now on NPM. See [ROADMAP.md](/ROADMAP.md) to learn more.
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
### Node.js
|
|
41
|
+
|
|
42
|
+
1. Install the ProIcons package via [NPM](https://www.npmjs.com/package/proicons):
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
npm install proicons
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
2. Use ProIcons inside JavaScript
|
|
49
|
+
|
|
50
|
+
```javascript
|
|
51
|
+
import proicons from 'proicons';
|
|
52
|
+
|
|
53
|
+
// Refer to the icon
|
|
54
|
+
proicons.icons.add;
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
_or_
|
|
58
|
+
|
|
59
|
+
```html
|
|
60
|
+
<!-- Insert the icon -->
|
|
61
|
+
<i proicon="add"></i>
|
|
62
|
+
|
|
63
|
+
<script src="path/to/proicons/dist/proicons.js"></script>
|
|
64
|
+
|
|
65
|
+
<!-- Replace icons with SVG -->
|
|
66
|
+
<script>
|
|
67
|
+
proicons.replace();
|
|
68
|
+
</script>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### HTML
|
|
72
|
+
|
|
73
|
+
If you are not inside a Node environment, you can import the ProIcons script via a CDN provider
|
|
74
|
+
|
|
75
|
+
```html
|
|
76
|
+
<!-- Insert the icon -->
|
|
77
|
+
<i proicon="add"></i>
|
|
78
|
+
|
|
79
|
+
<script src="https://unpkg.com/proicons"></script>
|
|
80
|
+
|
|
81
|
+
<!-- Replace icons with SVG -->
|
|
82
|
+
<script>
|
|
83
|
+
proicons.replace();
|
|
84
|
+
</script>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## License
|
|
88
|
+
|
|
89
|
+
ProIcons is MIT-licensed, giving you peace of mind using these icons in your project. Learn more [here](./LICENSE)
|
|
90
|
+
|
|
91
|
+
> [!WARNING]
|
|
92
|
+
> This library contains brand icons that may not be MIT-licensed and may have additional terms and guidelines. Learn more [here](https://procode-software.github.io/proicons/docs/introduction/about#usage-of-brand-icons)
|
|
3
93
|
|
|
4
94
|
## Credits
|
|
5
|
-
|
|
95
|
+
|
|
96
|
+
- Icon design and guidelines inspired by Microsoft's [Fluent System Icons](https://github.com/microsoft/fluentui-system-icons)
|
|
97
|
+
- Alpha bleeding script from https://github.com/Corecii/Transparent-Pixel-Fix
|
|
98
|
+
- API based on [Feather Icons](https://github.com/feathericons/feather)
|
|
99
|
+
|
|
100
|
+
<img src="https://img.shields.io/badge/dynamic/json?label=icons&style=for-the-badge&prefix=%20&query=%24%5B%3F(%40.length)%5D&url=https://raw.githubusercontent.com/ProCode-Software/proicons/main/src/configs/icons.json" alt="Number of icons currently in the library"/>
|