@iconify/json 1.1.424 → 2.0.0-beta.2
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 +1325 -819
- package/collections.md +5 -5
- package/dist/index.d.ts +49 -0
- package/dist/index.js +32 -0
- package/dist/index.mjs +32 -0
- package/json/carbon.json +7 -7
- package/json/codicon.json +3 -6
- package/json/mdi.json +43 -249
- package/json/tabler.json +2 -62
- package/package.json +50 -3
- package/readme.md +96 -52
- package/composer.json +0 -13
- package/lib/finder.js +0 -49
package/collections.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
### Material Design Icons
|
|
6
|
-
* Number of icons:
|
|
6
|
+
* Number of icons: 6595
|
|
7
7
|
* Author: Austin Andrews
|
|
8
8
|
* URL: https://github.com/Templarian/MaterialDesign
|
|
9
9
|
* License: Open Font License
|
|
@@ -170,12 +170,12 @@
|
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
### Tabler Icons
|
|
173
|
-
* Number of icons:
|
|
173
|
+
* Number of icons: 1298
|
|
174
174
|
* Author: Paweł Kuna
|
|
175
175
|
* URL: https://github.com/tabler/tabler-icons
|
|
176
176
|
* License: MIT
|
|
177
177
|
* License URL: https://github.com/tabler/tabler-icons/blob/master/LICENSE
|
|
178
|
-
* Version: 1.
|
|
178
|
+
* Version: 1.41.2
|
|
179
179
|
* Palette: Colorless
|
|
180
180
|
|
|
181
181
|
|
|
@@ -326,12 +326,12 @@
|
|
|
326
326
|
|
|
327
327
|
|
|
328
328
|
### Codicons
|
|
329
|
-
* Number of icons:
|
|
329
|
+
* Number of icons: 386
|
|
330
330
|
* Author: Microsoft Corporation
|
|
331
331
|
* URL: https://github.com/microsoft/vscode-codicons
|
|
332
332
|
* License: CC BY 4.0
|
|
333
333
|
* License URL: https://raw.githubusercontent.com/microsoft/vscode-codicons/master/LICENSE
|
|
334
|
-
* Version: 0.0.
|
|
334
|
+
* Version: 0.0.25
|
|
335
335
|
* Palette: Colorless
|
|
336
336
|
|
|
337
337
|
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
declare type IconifyMetaDataCollection = {
|
|
19
|
+
[prefix: string]: IconifyInfo;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Locate JSON file
|
|
23
|
+
*
|
|
24
|
+
* @param {string} name Collection name
|
|
25
|
+
* @returns {string} Path to collection json file
|
|
26
|
+
*/
|
|
27
|
+
declare const locate: (name: string) => PathLike;
|
|
28
|
+
/**
|
|
29
|
+
* Loads a collection.
|
|
30
|
+
*
|
|
31
|
+
* @param {PathLike} path The path to locate the `json` collection file.
|
|
32
|
+
* @return {Promise<IconifyJSON>}
|
|
33
|
+
*/
|
|
34
|
+
declare const loadCollection: (path: PathLike) => Promise<IconifyJSON>;
|
|
35
|
+
/**
|
|
36
|
+
* Get a collection.
|
|
37
|
+
*
|
|
38
|
+
* @param {string} name The name of the collection
|
|
39
|
+
* @return {Promise<IconifyJSON>}
|
|
40
|
+
*/
|
|
41
|
+
declare const lookupCollection: (name: string) => Promise<IconifyJSON>;
|
|
42
|
+
/**
|
|
43
|
+
* Get list of collections info.
|
|
44
|
+
*
|
|
45
|
+
* @return {Promise<IconifyMetaDataCollection>}
|
|
46
|
+
*/
|
|
47
|
+
declare const lookupCollections: () => Promise<IconifyMetaDataCollection>;
|
|
48
|
+
|
|
49
|
+
export { IconifyMetaDataCollection, loadCollection, locate, lookupCollection, lookupCollections };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";var __import_meta_url = typeof document === 'undefined' ? 'file://' + __filename : new URL('index.js', document.baseURI).href;Object.defineProperty(exports, "__esModule", {value: true});// src/index.ts
|
|
2
|
+
var _fs = require('fs');
|
|
3
|
+
var _url = require('url');
|
|
4
|
+
var _pathe = require('pathe');
|
|
5
|
+
var _dirname = typeof __dirname !== "undefined" ? __dirname : _pathe.dirname.call(void 0, _url.fileURLToPath.call(void 0, __import_meta_url));
|
|
6
|
+
var dir = _pathe.join.call(void 0, _dirname, "/..");
|
|
7
|
+
var locate = (name) => _pathe.join.call(void 0, dir, `./json/${name}.json`);
|
|
8
|
+
var loadCollection = async (path) => {
|
|
9
|
+
return JSON.parse(await _fs.promises.readFile(path, "utf8"));
|
|
10
|
+
};
|
|
11
|
+
var lookupCollection = async (name) => {
|
|
12
|
+
return await loadCollection(locate(name));
|
|
13
|
+
};
|
|
14
|
+
var lookupCollections = async () => {
|
|
15
|
+
return JSON.parse(await _fs.promises.readFile(_pathe.join.call(void 0, dir, "./collections.json"), "utf8"));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.loadCollection = loadCollection; exports.locate = locate; exports.lookupCollection = lookupCollection; exports.lookupCollections = lookupCollections;
|
|
23
|
+
/**
|
|
24
|
+
* This file is part of the iconify.design libraries.
|
|
25
|
+
*
|
|
26
|
+
* (c) Vjacheslav Trushkin <cyberalien@gmail.com>
|
|
27
|
+
*
|
|
28
|
+
* @license MIT
|
|
29
|
+
*
|
|
30
|
+
* For the full copyright and license information, please view the license.txt
|
|
31
|
+
* file that is available in this file's directory.
|
|
32
|
+
*/
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { promises as fs } from "fs";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
import { dirname, join } from "pathe";
|
|
5
|
+
var _dirname = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url));
|
|
6
|
+
var dir = join(_dirname, "/..");
|
|
7
|
+
var locate = (name) => join(dir, `./json/${name}.json`);
|
|
8
|
+
var loadCollection = async (path) => {
|
|
9
|
+
return JSON.parse(await fs.readFile(path, "utf8"));
|
|
10
|
+
};
|
|
11
|
+
var lookupCollection = async (name) => {
|
|
12
|
+
return await loadCollection(locate(name));
|
|
13
|
+
};
|
|
14
|
+
var lookupCollections = async () => {
|
|
15
|
+
return JSON.parse(await fs.readFile(join(dir, "./collections.json"), "utf8"));
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
loadCollection,
|
|
19
|
+
locate,
|
|
20
|
+
lookupCollection,
|
|
21
|
+
lookupCollections
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* This file is part of the iconify.design libraries.
|
|
25
|
+
*
|
|
26
|
+
* (c) Vjacheslav Trushkin <cyberalien@gmail.com>
|
|
27
|
+
*
|
|
28
|
+
* @license MIT
|
|
29
|
+
*
|
|
30
|
+
* For the full copyright and license information, please view the license.txt
|
|
31
|
+
* file that is available in this file's directory.
|
|
32
|
+
*/
|
package/json/carbon.json
CHANGED
|
@@ -6080,13 +6080,11 @@
|
|
|
6080
6080
|
"apple",
|
|
6081
6081
|
"arrow-annotation",
|
|
6082
6082
|
"auto-scroll",
|
|
6083
|
-
"autoscaling",
|
|
6084
6083
|
"barrier",
|
|
6085
6084
|
"basketball",
|
|
6086
6085
|
"bat",
|
|
6087
6086
|
"bee-bat",
|
|
6088
6087
|
"bloch-sphere",
|
|
6089
|
-
"block-storage",
|
|
6090
6088
|
"brush-freehand",
|
|
6091
6089
|
"brush-polygon",
|
|
6092
6090
|
"building",
|
|
@@ -6098,12 +6096,16 @@
|
|
|
6098
6096
|
"chemistry-reference",
|
|
6099
6097
|
"circle-measurement",
|
|
6100
6098
|
"circuit-composer",
|
|
6099
|
+
"cloud-alerting",
|
|
6101
6100
|
"cloud-auditing",
|
|
6101
|
+
"cloud-data-ops",
|
|
6102
6102
|
"cloud-foundry-1",
|
|
6103
6103
|
"cloud-logging",
|
|
6104
6104
|
"cloud-monitoring",
|
|
6105
6105
|
"cloud-registry",
|
|
6106
6106
|
"cloud-satellite",
|
|
6107
|
+
"cloud-service-management",
|
|
6108
|
+
"cloud-services",
|
|
6107
6109
|
"cobb-angle",
|
|
6108
6110
|
"composer-edit",
|
|
6109
6111
|
"content-delivery-network",
|
|
@@ -6202,7 +6204,6 @@
|
|
|
6202
6204
|
"monster",
|
|
6203
6205
|
"nominate",
|
|
6204
6206
|
"noodle-bowl",
|
|
6205
|
-
"object-storage",
|
|
6206
6207
|
"operation",
|
|
6207
6208
|
"operation-gauge",
|
|
6208
6209
|
"operation-if",
|
|
@@ -6302,11 +6303,13 @@
|
|
|
6302
6303
|
"application-virtual",
|
|
6303
6304
|
"application-web",
|
|
6304
6305
|
"archive",
|
|
6306
|
+
"autoscaling",
|
|
6305
6307
|
"badge",
|
|
6306
6308
|
"bare-metal-server",
|
|
6307
6309
|
"bare-metal-server-01",
|
|
6308
6310
|
"bare-metal-server-02",
|
|
6309
6311
|
"bastion-host",
|
|
6312
|
+
"block-storage",
|
|
6310
6313
|
"block-storage-alt",
|
|
6311
6314
|
"blockchain",
|
|
6312
6315
|
"book",
|
|
@@ -6404,11 +6407,7 @@
|
|
|
6404
6407
|
"closed-caption",
|
|
6405
6408
|
"closed-caption-alt",
|
|
6406
6409
|
"closed-caption-filled",
|
|
6407
|
-
"cloud-alerting",
|
|
6408
|
-
"cloud-data-ops",
|
|
6409
6410
|
"cloud-foundry-2",
|
|
6410
|
-
"cloud-service-management",
|
|
6411
|
-
"cloud-services",
|
|
6412
6411
|
"code-signing-service",
|
|
6413
6412
|
"column-dependency",
|
|
6414
6413
|
"communication-unified",
|
|
@@ -6701,6 +6700,7 @@
|
|
|
6701
6700
|
"number-small-7",
|
|
6702
6701
|
"number-small-8",
|
|
6703
6702
|
"number-small-9",
|
|
6703
|
+
"object-storage",
|
|
6704
6704
|
"object-storage-alt",
|
|
6705
6705
|
"omega",
|
|
6706
6706
|
"ordinal",
|
package/json/codicon.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"prefix": "codicon",
|
|
3
3
|
"info": {
|
|
4
4
|
"name": "Codicons",
|
|
5
|
-
"total":
|
|
5
|
+
"total": 386,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Microsoft Corporation",
|
|
8
8
|
"url": "https://github.com/microsoft/vscode-codicons"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"spdx": "CC-BY-4.0",
|
|
13
13
|
"url": "https://raw.githubusercontent.com/microsoft/vscode-codicons/master/LICENSE"
|
|
14
14
|
},
|
|
15
|
-
"version": "0.0.
|
|
15
|
+
"version": "0.0.25",
|
|
16
16
|
"samples": [
|
|
17
17
|
"account",
|
|
18
18
|
"bell-dot",
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
"hidden": true
|
|
584
584
|
},
|
|
585
585
|
"issue-draft": {
|
|
586
|
-
"body": "<g fill=\"currentColor\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"
|
|
586
|
+
"body": "<g fill=\"currentColor\"><circle cx=\"7.5\" cy=\"7.5\" r=\"1\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13.684 9.51l-.952-.31A5.497 5.497 0 0 0 13 7.5c0-.595-.094-1.166-.268-1.7l.952-.31C13.889 6.124 14 6.8 14 7.5c0 .701-.111 1.377-.316 2.01zm-.391-4.962l-.89.455a5.528 5.528 0 0 0-2.406-2.405l.455-.89a6.529 6.529 0 0 1 2.84 2.84zM9.509 1.317l-.309.95A5.495 5.495 0 0 0 7.5 2c-.595 0-1.166.094-1.7.268l-.31-.951A6.495 6.495 0 0 1 7.5 1c.701 0 1.377.111 2.01.317zm-4.96.39l.454.89a5.528 5.528 0 0 0-2.405 2.406l-.89-.455a6.528 6.528 0 0 1 2.84-2.84zM1.316 5.491A6.495 6.495 0 0 0 1 7.5c0 .701.111 1.377.317 2.01l.95-.31A5.495 5.495 0 0 1 2 7.5c0-.595.094-1.166.268-1.7l-.951-.31zm.39 4.96l.89-.454a5.528 5.528 0 0 0 2.406 2.405l-.455.89a6.529 6.529 0 0 1-2.84-2.84zm3.784 3.232l.309-.95A5.497 5.497 0 0 0 7.5 13c.595 0 1.166-.094 1.7-.268l.31.952A6.494 6.494 0 0 1 7.5 14a6.494 6.494 0 0 1-2.01-.316zm4.96-.39l-.454-.89a5.528 5.528 0 0 0 2.405-2.406l.89.455a6.53 6.53 0 0 1-2.84 2.84z\"/></g>"
|
|
587
587
|
},
|
|
588
588
|
"issue-reopened": {
|
|
589
589
|
"body": "<g fill=\"currentColor\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.28 5.656L2 7.006l-.66-.26L0 3.506l.92-.38l.81 1.95a6.48 6.48 0 0 1 12.48 1.93h-1a5.48 5.48 0 0 0-10.64-1.28l2.32-1l.39.93zm8.86 2.68l1.34 3.23l-.92.44l-.82-2a6.49 6.49 0 0 1-12.5-2h1v-.5a5.49 5.49 0 0 0 10.64 1.89l-2.25.93l-.39-.92l3.25-1.35l.65.28z\"/><circle cx=\"7.74\" cy=\"7.54\" r=\"1\"/></g>"
|
|
@@ -716,9 +716,6 @@
|
|
|
716
716
|
"new-folder": {
|
|
717
717
|
"body": "<g fill=\"currentColor\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.5 2H7.71l-.85-.85L6.51 1h-5l-.5.5v11l.5.5H7v-1H1.99V6h4.49l.35-.15l.86-.86H14v1.5l-.001.51h1.011V2.5L14.5 2zm-.51 2h-6.5l-.35.15l-.86.86H2v-3h4.29l.85.85l.36.15H14l-.01.99zM13 16h-1v-3H9v-1h3V9h1v3h3v1h-3v3z\"/></g>"
|
|
718
718
|
},
|
|
719
|
-
"newline": {
|
|
720
|
-
"body": "<g fill=\"currentColor\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 5.5v1.984a.5.5 0 0 1-.5.5H4.618l1.633-1.633l-.707-.707l-2.121 2.121L3 8.188v.568L5.544 11.3l.707-.707l-1.61-1.609H11.5a1.5 1.5 0 0 0 1.5-1.5V5.5h-1z\"/></g>"
|
|
721
|
-
},
|
|
722
719
|
"no-newline": {
|
|
723
720
|
"body": "<g fill=\"currentColor\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2.333 5.506a3 3 0 1 1 3.334 4.989a3 3 0 0 1-3.334-4.99zm2.677.777A1.986 1.986 0 0 0 2 8.009c.004.353.102.698.283 1.001L5.01 6.283zM2.99 9.717A1.986 1.986 0 0 0 6 7.991a1.988 1.988 0 0 0-.283-1.001L2.99 9.717zM14 5v1.984a.5.5 0 0 1-.5.5H9.367L11 5.851l-.707-.707l-2.121 2.121l-.423.423v.568l2.544 2.544l.707-.707l-1.61-1.609h4.11a1.5 1.5 0 0 0 1.5-1.5V5h-1z\"/></g>"
|
|
724
721
|
},
|