proicons 4.9.0 → 4.10.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/LICENSE +21 -21
- package/README.md +108 -100
- package/lib/interfaces.d.ts +6 -0
- package/lib/proicons.d.ts +1 -1
- package/lib/search.d.ts +1 -1
- package/package.json +90 -82
- package/dist/cjs/proicons.cjs +0 -1910
- package/dist/cjs/proicons.cjs.map +0 -1
- package/dist/esm/proicons.js +0 -4172
- package/dist/esm/proicons.js.map +0 -1
- package/dist/icons.json +0 -430
- package/dist/tags.json +0 -1714
- package/dist/umd/proicons.cjs +0 -1910
- package/dist/umd/proicons.cjs.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 ProCode
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 ProCode
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,100 +1,108 @@
|
|
|
1
|
-
# ProIcons
|
|
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/
|
|
9
|
-
alt="
|
|
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.
|
|
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
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
ProIcons is
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
# ProIcons
|
|
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/github/v/release/ProCode-Software/proicons?style=for-the-badge&color=orange"
|
|
9
|
+
alt="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://procode-software.github.io/proicons/docs/introduction/about">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 { icons } from 'proicons';
|
|
52
|
+
// or
|
|
53
|
+
const { icons } = require('proicons')
|
|
54
|
+
|
|
55
|
+
// Refer to the icon
|
|
56
|
+
icons.add;
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
_or_
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<!-- Insert the icon -->
|
|
63
|
+
<i proicon="add"></i>
|
|
64
|
+
|
|
65
|
+
<script src="path/to/proicons/dist/umd/proicons.cjs"></script>
|
|
66
|
+
|
|
67
|
+
<!-- Replace icons with SVG -->
|
|
68
|
+
<script>
|
|
69
|
+
proicons.replace();
|
|
70
|
+
</script>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### HTML
|
|
74
|
+
You can import the ProIcons package via a CDN provider
|
|
75
|
+
|
|
76
|
+
```html
|
|
77
|
+
<!-- Insert the icon -->
|
|
78
|
+
<i proicon="add"></i>
|
|
79
|
+
|
|
80
|
+
<script src="https://unpkg.com/proicons"></script>
|
|
81
|
+
|
|
82
|
+
<!-- Replace icons with SVG -->
|
|
83
|
+
<script>
|
|
84
|
+
proicons.replace();
|
|
85
|
+
</script>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Packages
|
|
89
|
+
ProIcons is also available in the following packages:
|
|
90
|
+
|
|
91
|
+
- **[Webfont](https://procode-software.github.io/proicons/docs/packages/webfont):** Use ProIcons on your website as a webfont, similar to Font Awesome, without the need of scripts.
|
|
92
|
+
|
|
93
|
+
## License
|
|
94
|
+
|
|
95
|
+
ProIcons is MIT-licensed, giving you peace of mind using these icons in your project. Learn more [here](./LICENSE)
|
|
96
|
+
|
|
97
|
+
> [!WARNING]
|
|
98
|
+
> 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)
|
|
99
|
+
|
|
100
|
+
## Contributing
|
|
101
|
+
For more info on how to contribute, please see our [contributing guide](https://github.com/ProCode-Software/proicons/blob/main/CONTRIBUTING.md).
|
|
102
|
+
|
|
103
|
+
## Credits
|
|
104
|
+
|
|
105
|
+
- Icon design and guidelines inspired by Microsoft's [Fluent System Icons](https://github.com/microsoft/fluentui-system-icons)
|
|
106
|
+
- Alpha bleeding script from https://github.com/Corecii/Transparent-Pixel-Fix
|
|
107
|
+
- API based on [Feather Icons](https://github.com/feathericons/feather)
|
|
108
|
+
- Website design inspired by [Lucide](https://github.com/lucide-icons/lucide) and built using [VitePress](https://github.com/vuejs/vitepress)
|
package/lib/interfaces.d.ts
CHANGED
|
@@ -21,11 +21,17 @@ export interface ProIconReplaceConfig {
|
|
|
21
21
|
useAttributes: false;
|
|
22
22
|
}
|
|
23
23
|
export declare class ProIconInfo {
|
|
24
|
+
/** The name of the icon in Friendly Form */
|
|
24
25
|
name: string;
|
|
26
|
+
/** The name of the icon in kebab-case */
|
|
25
27
|
kebabCase: string;
|
|
28
|
+
/** The name of the icon in camelCase */
|
|
26
29
|
camelCase: string;
|
|
30
|
+
/** The icon as an `SVGSVGElement`. Use the `outerHTML` property on this to return the icon as a string. */
|
|
27
31
|
element: SVGSVGElement;
|
|
32
|
+
/** The category of the icon. */
|
|
28
33
|
category: string;
|
|
34
|
+
/** An array of the icon's tags. */
|
|
29
35
|
tags: string[];
|
|
30
36
|
/**
|
|
31
37
|
*
|
package/lib/proicons.d.ts
CHANGED
package/lib/search.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ProIconInfo } from "./interfaces";
|
|
2
2
|
/** Searches for icons with names or tags that contain `key` and returns them as `ProIconInfo`. */
|
|
3
|
-
declare function search(
|
|
3
|
+
declare function search(query: string): ProIconInfo[];
|
|
4
4
|
export default search;
|
package/package.json
CHANGED
|
@@ -1,82 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "proicons",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "A collection of 400+ modern and open-source icons",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/cjs/proicons.cjs",
|
|
7
|
-
"main:umd": "dist/umd/proicons.cjs",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "proicons",
|
|
3
|
+
"version": "4.10.0",
|
|
4
|
+
"description": "A collection of 400+ modern and open-source icons",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/cjs/proicons.cjs",
|
|
7
|
+
"main:umd": "dist/umd/proicons.cjs",
|
|
8
|
+
"module": "dist/es/proicons.js",
|
|
9
|
+
"typings": "lib/proicons.d.ts",
|
|
10
|
+
"amdName": "proicons",
|
|
11
|
+
"unpkg": "dist/umd/proicons.cjs",
|
|
12
|
+
"jsdelivr": "dist/umd/proicons.cjs",
|
|
13
|
+
"browser": "dist/umd/proicons.cjs",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"lib"
|
|
17
|
+
],
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./dist/es/proicons.js",
|
|
21
|
+
"require": "./dist/cjs/proicons.cjs",
|
|
22
|
+
"types": "./lib/proicons.d.ts",
|
|
23
|
+
"default": "./dist/umd/proicons.cjs"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"workspaces": [
|
|
27
|
+
"packages/*",
|
|
28
|
+
"tools/*",
|
|
29
|
+
"site"
|
|
30
|
+
],
|
|
31
|
+
"repository": {
|
|
32
|
+
"url": "ProCode-Software/proicons"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/ProCode-Software/proicons",
|
|
38
|
+
"bugs": "https://github.com/ProCode-Software/proicons/issues",
|
|
39
|
+
"keywords": [
|
|
40
|
+
"icons",
|
|
41
|
+
"icon-pack",
|
|
42
|
+
"js",
|
|
43
|
+
"feather",
|
|
44
|
+
"lucide",
|
|
45
|
+
"fluent",
|
|
46
|
+
"font awesome",
|
|
47
|
+
"svg",
|
|
48
|
+
"proicons",
|
|
49
|
+
"procode"
|
|
50
|
+
],
|
|
51
|
+
"author": "ProCode Software",
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@twbs/fantasticon": "^3.0.0",
|
|
55
|
+
"@types/node": "^22.7.5",
|
|
56
|
+
"adm-zip": "^0.5.16",
|
|
57
|
+
"ansi-colors": "^4.1.3",
|
|
58
|
+
"chalk": "^5.3.0",
|
|
59
|
+
"d3-delaunay": "^6.0.4",
|
|
60
|
+
"jimp": "^1.6.0",
|
|
61
|
+
"minisearch": "^7.1.0",
|
|
62
|
+
"oslllo-svg-fixer": "^5.0.0",
|
|
63
|
+
"piscina": "^4.7.0",
|
|
64
|
+
"prettier": "^3.3.3",
|
|
65
|
+
"progress": "^2.0.3",
|
|
66
|
+
"sass-embedded": "^1.79.5",
|
|
67
|
+
"sharp": "^0.33.5",
|
|
68
|
+
"svg2ttf": "^6.0.3",
|
|
69
|
+
"svgo": "^3.3.2",
|
|
70
|
+
"typescript": "^5.6.3",
|
|
71
|
+
"vite": "^5.4.9",
|
|
72
|
+
"vite-plugin-html": "^3.2.2",
|
|
73
|
+
"vitepress": "^1.4.1",
|
|
74
|
+
"vue": "^3.5.12",
|
|
75
|
+
"@proicons/cli": "1.0.0"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"dev": "pnpm vite",
|
|
79
|
+
"icons:build": "node --no-deprecation ./bin/build.js",
|
|
80
|
+
"icons:optimize": "pnpm run icons:build -o",
|
|
81
|
+
"icons:build-frozen": "pnpm run icons:build -l",
|
|
82
|
+
"icons:build-rebuild": "pnpm run icons:build -r",
|
|
83
|
+
"font:build": "pnpm run icons:build -f",
|
|
84
|
+
"build": "pnpm tsc && pnpm vite build",
|
|
85
|
+
"preview": "pnpm vite preview",
|
|
86
|
+
"docs:dev": "pnpm vitepress dev site/src --port 9000",
|
|
87
|
+
"docs:build": "pnpm vitepress build site/src",
|
|
88
|
+
"docs:preview": "pnpm vitepress preview site/src"
|
|
89
|
+
}
|
|
90
|
+
}
|