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 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/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&amp;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)
93
-
94
- ## Credits
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"/>
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&amp;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)
@@ -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
@@ -1,4 +1,4 @@
1
- import icons from './configs/icons.json';
1
+ import icons from './icons';
2
2
  import categories from './categories';
3
3
  import replace from './replace';
4
4
  import getIconInfo from './getIconInfo';
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(key: string): ProIconInfo[];
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.9.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
- "unpkg": "dist/umd/proicons.cjs",
9
- "module": "dist/proicons.js",
10
- "typings": "lib/proicons.d.ts",
11
- "amdName": "proicons",
12
- "files": [
13
- "dist",
14
- "lib"
15
- ],
16
- "exports": {
17
- ".": {
18
- "import": "./dist/esm/proicons.js",
19
- "require": "./dist/cjs/proicons.cjs",
20
- "types": "./lib/proicons.d.ts",
21
- "default": "./dist/umd/proicons.cjs"
22
- }
23
- },
24
- "workspaces": [
25
- "packages/*",
26
- "tools/BuildIconList/"
27
- ],
28
- "repository": {
29
- "url": "ProCode-Software/proicons"
30
- },
31
- "homepage": "https://github.com/ProCode-Software/proicons",
32
- "bugs": "https://github.com/ProCode-Software/proicons/issues",
33
- "scripts": {
34
- "dev": "vite",
35
- "icons:build": "node ./bin/build.js",
36
- "build": "tsc && vite build",
37
- "preview": "vite preview",
38
- "docs:dev": "vitepress dev site/src --port 9000",
39
- "docs:build": "vitepress build site/src",
40
- "docs:preview": "vitepress preview site/src",
41
- "prepack": "node ./bin/publish.js"
42
- },
43
- "keywords": [
44
- "icons",
45
- "icon-pack",
46
- "js",
47
- "feather",
48
- "lucide",
49
- "fluent",
50
- "font awesome",
51
- "svg",
52
- "proicons",
53
- "procode"
54
- ],
55
- "author": "ProCode Software",
56
- "license": "MIT",
57
- "devDependencies": {
58
- "@twbs/fantasticon": "^3.0.0",
59
- "@types/node": "^22.3.0",
60
- "@types/rollup": "^0.54.0",
61
- "@types/webpack": "^5.28.5",
62
- "@webpack-cli/generators": "^3.0.7",
63
- "ansi-colors": "^4.1.3",
64
- "chalk": "^5.3.0",
65
- "d3-delaunay": "^6.0.4",
66
- "html-webpack-plugin": "^5.6.0",
67
- "jimp": "^1.4.0",
68
- "prettier": "^3.3.3",
69
- "progress": "^2.0.3",
70
- "rollup-plugin-dts": "^6.1.1",
71
- "sharp": "^0.33.5",
72
- "svg2ttf": "^6.0.3",
73
- "svgo": "^3.3.2",
74
- "ts-loader": "^9.5.1",
75
- "typescript": "^5.5.4",
76
- "vite": "^5.4.5",
77
- "vite-plugin-html": "^3.2.2",
78
- "vitepress": "^1.3.4",
79
- "webpack": "^5.93.0",
80
- "webpack-dev-server": "^5.0.4"
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
+ }