@iconify/json 2.2.176 → 2.2.177
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/collections.json +1 -1
- package/collections.md +1 -1
- package/composer.json +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +53 -0
- package/dist/index.d.mts +53 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +1 -1
- package/json/lucide.json +11 -2
- package/package.json +8 -8
package/collections.json
CHANGED
package/collections.md
CHANGED
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
* File: [json/ion.json](json/ion.json) ([in IconifyJSON format](https://docs.iconify.design/types/iconify-json.html))
|
|
150
150
|
|
|
151
151
|
## Lucide
|
|
152
|
-
* Number of icons:
|
|
152
|
+
* Number of icons: 1418
|
|
153
153
|
* Author: Lucide Contributors
|
|
154
154
|
* URL: https://github.com/lucide-icons/lucide
|
|
155
155
|
* License: ISC
|
package/composer.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ const fs = require('fs');
|
|
|
4
4
|
const url = require('url');
|
|
5
5
|
const pathe = require('pathe');
|
|
6
6
|
|
|
7
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
8
|
/**
|
|
8
9
|
* This file is part of the iconify.design libraries.
|
|
9
10
|
*
|
|
@@ -14,7 +15,7 @@ const pathe = require('pathe');
|
|
|
14
15
|
* For the full copyright and license information, please view the license.txt
|
|
15
16
|
* file that is available in this file's directory.
|
|
16
17
|
*/
|
|
17
|
-
const _dirname = typeof __dirname !== "undefined" ? __dirname : pathe.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (
|
|
18
|
+
const _dirname = typeof __dirname !== "undefined" ? __dirname : pathe.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))));
|
|
18
19
|
const dir = pathe.join(_dirname, "/..");
|
|
19
20
|
const locate = (name) => pathe.join(dir, `./json/${name}.json`);
|
|
20
21
|
const loadCollection = async (path) => {
|
|
@@ -29,6 +30,7 @@ const lookupCollections = async () => {
|
|
|
29
30
|
);
|
|
30
31
|
};
|
|
31
32
|
|
|
33
|
+
exports.dir = dir;
|
|
32
34
|
exports.loadCollection = loadCollection;
|
|
33
35
|
exports.locate = locate;
|
|
34
36
|
exports.lookupCollection = lookupCollection;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PathLike } from 'fs';
|
|
2
|
+
import { IconifyInfo, IconifyJSON } from '@iconify/types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This file is part of the iconify.design libraries.
|
|
6
|
+
*
|
|
7
|
+
* (c) Vjacheslav Trushkin <cyberalien@gmail.com>
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*
|
|
11
|
+
* For the full copyright and license information, please view the license.txt
|
|
12
|
+
* file that is available in this file's directory.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Collection info map
|
|
17
|
+
*/
|
|
18
|
+
type IconifyMetaDataCollection = {
|
|
19
|
+
[prefix: string]: IconifyInfo;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Directory of this package
|
|
23
|
+
*/
|
|
24
|
+
declare const dir: string;
|
|
25
|
+
/**
|
|
26
|
+
* Locate JSON file
|
|
27
|
+
*
|
|
28
|
+
* @param {string} name Collection name
|
|
29
|
+
* @returns {string} Path to collection json file
|
|
30
|
+
*/
|
|
31
|
+
declare const locate: (name: string) => PathLike;
|
|
32
|
+
/**
|
|
33
|
+
* Loads a collection.
|
|
34
|
+
*
|
|
35
|
+
* @param {PathLike} path The path to locate the `json` collection file.
|
|
36
|
+
* @return {Promise<IconifyJSON>}
|
|
37
|
+
*/
|
|
38
|
+
declare const loadCollection: (path: PathLike) => Promise<IconifyJSON>;
|
|
39
|
+
/**
|
|
40
|
+
* Get a collection.
|
|
41
|
+
*
|
|
42
|
+
* @param {string} name The name of the collection
|
|
43
|
+
* @return {Promise<IconifyJSON>}
|
|
44
|
+
*/
|
|
45
|
+
declare const lookupCollection: (name: string) => Promise<IconifyJSON>;
|
|
46
|
+
/**
|
|
47
|
+
* Get list of collections info.
|
|
48
|
+
*
|
|
49
|
+
* @return {Promise<IconifyMetaDataCollection>}
|
|
50
|
+
*/
|
|
51
|
+
declare const lookupCollections: () => Promise<IconifyMetaDataCollection>;
|
|
52
|
+
|
|
53
|
+
export { type IconifyMetaDataCollection, dir, loadCollection, locate, lookupCollection, lookupCollections };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PathLike } from 'fs';
|
|
2
|
+
import { IconifyInfo, IconifyJSON } from '@iconify/types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This file is part of the iconify.design libraries.
|
|
6
|
+
*
|
|
7
|
+
* (c) Vjacheslav Trushkin <cyberalien@gmail.com>
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*
|
|
11
|
+
* For the full copyright and license information, please view the license.txt
|
|
12
|
+
* file that is available in this file's directory.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Collection info map
|
|
17
|
+
*/
|
|
18
|
+
type IconifyMetaDataCollection = {
|
|
19
|
+
[prefix: string]: IconifyInfo;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Directory of this package
|
|
23
|
+
*/
|
|
24
|
+
declare const dir: string;
|
|
25
|
+
/**
|
|
26
|
+
* Locate JSON file
|
|
27
|
+
*
|
|
28
|
+
* @param {string} name Collection name
|
|
29
|
+
* @returns {string} Path to collection json file
|
|
30
|
+
*/
|
|
31
|
+
declare const locate: (name: string) => PathLike;
|
|
32
|
+
/**
|
|
33
|
+
* Loads a collection.
|
|
34
|
+
*
|
|
35
|
+
* @param {PathLike} path The path to locate the `json` collection file.
|
|
36
|
+
* @return {Promise<IconifyJSON>}
|
|
37
|
+
*/
|
|
38
|
+
declare const loadCollection: (path: PathLike) => Promise<IconifyJSON>;
|
|
39
|
+
/**
|
|
40
|
+
* Get a collection.
|
|
41
|
+
*
|
|
42
|
+
* @param {string} name The name of the collection
|
|
43
|
+
* @return {Promise<IconifyJSON>}
|
|
44
|
+
*/
|
|
45
|
+
declare const lookupCollection: (name: string) => Promise<IconifyJSON>;
|
|
46
|
+
/**
|
|
47
|
+
* Get list of collections info.
|
|
48
|
+
*
|
|
49
|
+
* @return {Promise<IconifyMetaDataCollection>}
|
|
50
|
+
*/
|
|
51
|
+
declare const lookupCollections: () => Promise<IconifyMetaDataCollection>;
|
|
52
|
+
|
|
53
|
+
export { type IconifyMetaDataCollection, dir, loadCollection, locate, lookupCollection, lookupCollections };
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,10 @@ import { IconifyInfo, IconifyJSON } from '@iconify/types';
|
|
|
18
18
|
type IconifyMetaDataCollection = {
|
|
19
19
|
[prefix: string]: IconifyInfo;
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Directory of this package
|
|
23
|
+
*/
|
|
24
|
+
declare const dir: string;
|
|
21
25
|
/**
|
|
22
26
|
* Locate JSON file
|
|
23
27
|
*
|
|
@@ -46,4 +50,4 @@ declare const lookupCollection: (name: string) => Promise<IconifyJSON>;
|
|
|
46
50
|
*/
|
|
47
51
|
declare const lookupCollections: () => Promise<IconifyMetaDataCollection>;
|
|
48
52
|
|
|
49
|
-
export { IconifyMetaDataCollection, loadCollection, locate, lookupCollection, lookupCollections };
|
|
53
|
+
export { type IconifyMetaDataCollection, dir, loadCollection, locate, lookupCollection, lookupCollections };
|
package/dist/index.mjs
CHANGED
package/json/lucide.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"prefix": "lucide",
|
|
3
3
|
"info": {
|
|
4
4
|
"name": "Lucide",
|
|
5
|
-
"total":
|
|
5
|
+
"total": 1418,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Lucide Contributors",
|
|
8
8
|
"url": "https://github.com/lucide-icons/lucide"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"category": "General",
|
|
22
22
|
"palette": false
|
|
23
23
|
},
|
|
24
|
-
"lastModified":
|
|
24
|
+
"lastModified": 1706684468,
|
|
25
25
|
"icons": {
|
|
26
26
|
"a-arrow-down": {
|
|
27
27
|
"body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3.5 13h6M2 16l4.5-9l4.5 9m7-9v9m-4-4l4 4l4-4\"/>"
|
|
@@ -155,6 +155,9 @@
|
|
|
155
155
|
"align-vertical-space-between": {
|
|
156
156
|
"body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><rect width=\"14\" height=\"6\" x=\"5\" y=\"15\" rx=\"2\"/><rect width=\"10\" height=\"6\" x=\"7\" y=\"3\" rx=\"2\"/><path d=\"M2 21h20M2 3h20\"/></g>"
|
|
157
157
|
},
|
|
158
|
+
"ambulance": {
|
|
159
|
+
"body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M10 10H6m8 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2m14 0h2a1 1 0 0 0 1-1v-3.28a1 1 0 0 0-.684-.948l-1.923-.641a1 1 0 0 1-.578-.502l-1.539-3.076A1 1 0 0 0 16.382 8H14M8 8v4m1 6h6\"/><circle cx=\"17\" cy=\"18\" r=\"2\"/><circle cx=\"7\" cy=\"18\" r=\"2\"/></g>"
|
|
160
|
+
},
|
|
158
161
|
"ampersand": {
|
|
159
162
|
"body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M17.5 12c0 4.4-3.6 8-8 8A4.5 4.5 0 0 1 5 15.5c0-6 8-4 8-8.5a3 3 0 1 0-6 0c0 3 2.5 8.5 12 13m-3-8h3\"/>"
|
|
160
163
|
},
|
|
@@ -1031,6 +1034,9 @@
|
|
|
1031
1034
|
"circle-equal": {
|
|
1032
1035
|
"body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M7 10h10M7 14h10\"/><circle cx=\"12\" cy=\"12\" r=\"10\"/></g>"
|
|
1033
1036
|
},
|
|
1037
|
+
"circle-fading-plus": {
|
|
1038
|
+
"body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 2a10 10 0 0 1 7.38 16.75M12 8v8m4-4H8M2.5 8.875a10 10 0 0 0-.5 3M2.83 16a10 10 0 0 0 2.43 3.4M4.636 5.235a10 10 0 0 1 .891-.857M8.644 21.42a10 10 0 0 0 7.631-.38\"/>"
|
|
1039
|
+
},
|
|
1034
1040
|
"circle-off": {
|
|
1035
1041
|
"body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m2 2l20 20M8.35 2.69A10 10 0 0 1 21.3 15.65m-2.22 3.43A10 10 0 1 1 4.92 4.92\"/>"
|
|
1036
1042
|
},
|
|
@@ -2162,6 +2168,9 @@
|
|
|
2162
2168
|
"headphones": {
|
|
2163
2169
|
"body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3\"/>"
|
|
2164
2170
|
},
|
|
2171
|
+
"headset": {
|
|
2172
|
+
"body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2z\"/><path d=\"M21 16v2a4 4 0 0 1-4 4h-5\"/></g>"
|
|
2173
|
+
},
|
|
2165
2174
|
"heart": {
|
|
2166
2175
|
"body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2c-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z\"/>"
|
|
2167
2176
|
},
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@iconify/json",
|
|
3
3
|
"description": "Hundreds of open source icon sets in IconifyJSON format",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "2.2.
|
|
5
|
+
"version": "2.2.177",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://iconify.design/icon-sets/",
|
|
8
8
|
"bugs": "https://github.com/iconify/icon-sets/issues",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@iconify/types": "*",
|
|
53
|
-
"pathe": "^1.1.
|
|
53
|
+
"pathe": "^1.1.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@types/jest": "^29.5.
|
|
57
|
-
"@types/node": "^
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
56
|
+
"@types/jest": "^29.5.11",
|
|
57
|
+
"@types/node": "^20.11.10",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
|
59
59
|
"cross-env": "^7.0.3",
|
|
60
|
-
"eslint": "^8.
|
|
61
|
-
"unbuild": "^
|
|
62
|
-
"vitest": "^
|
|
60
|
+
"eslint": "^8.56.0",
|
|
61
|
+
"unbuild": "^2.0.0",
|
|
62
|
+
"vitest": "^1.2.2"
|
|
63
63
|
}
|
|
64
64
|
}
|