@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/json/tabler.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "prefix": "tabler",
3
3
  "info": {
4
4
  "name": "Tabler Icons",
5
- "total": 1318,
5
+ "total": 1298,
6
6
  "author": {
7
7
  "name": "Paweł Kuna",
8
8
  "url": "https://github.com/tabler/tabler-icons"
@@ -12,7 +12,7 @@
12
12
  "spdx": "MIT",
13
13
  "url": "https://github.com/tabler/tabler-icons/blob/master/LICENSE"
14
14
  },
15
- "version": "1.42.0",
15
+ "version": "1.41.2",
16
16
  "samples": [
17
17
  "alien",
18
18
  "device-desktop",
@@ -128,27 +128,6 @@
128
128
  "archive": {
129
129
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"4\" rx=\"2\"/><path d=\"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8\"/><path d=\"M10 12h4\"/></g>"
130
130
  },
131
- "arrow-autofit-content": {
132
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6 4L3 7l3 3\"/><path d=\"M18 4l3 3l-3 3\"/><rect x=\"4\" y=\"14\" width=\"16\" height=\"6\" rx=\"2\"/><path d=\"M10 7H3\"/><path d=\"M21 7h-7\"/></g>"
133
- },
134
- "arrow-autofit-down": {
135
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h8\"/><path d=\"M18 4v17\"/><path d=\"M15 18l3 3l3-3\"/></g>"
136
- },
137
- "arrow-autofit-height": {
138
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6\"/><path d=\"M18 14v7\"/><path d=\"M18 3v7\"/><path d=\"M15 18l3 3l3-3\"/><path d=\"M15 6l3-3l3 3\"/></g>"
139
- },
140
- "arrow-autofit-left": {
141
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8\"/><path d=\"M20 18H3\"/><path d=\"M6 15l-3 3l3 3\"/></g>"
142
- },
143
- "arrow-autofit-right": {
144
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 12V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8\"/><path d=\"M4 18h17\"/><path d=\"M18 15l3 3l-3 3\"/></g>"
145
- },
146
- "arrow-autofit-up": {
147
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8\"/><path d=\"M18 20V3\"/><path d=\"M15 6l3-3l3 3\"/></g>"
148
- },
149
- "arrow-autofit-width": {
150
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6\"/><path d=\"M10 18H3\"/><path d=\"M21 18h-7\"/><path d=\"M6 15l-3 3l3 3\"/><path d=\"M18 15l3 3l-3 3\"/></g>"
151
- },
152
131
  "arrow-back": {
153
132
  "body": "<path d=\"M9 11l-4 4l4 4m-4-4h11a4 4 0 0 0 0-8h-1\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>"
154
133
  },
@@ -329,12 +308,6 @@
329
308
  "arrows-diagonal-2": {
330
309
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M16 20h4v-4\"/><path d=\"M14 14l6 6\"/><path d=\"M8 4H4v4\"/><path d=\"M4 4l6 6\"/></g>"
331
310
  },
332
- "arrows-diagonal-minimize": {
333
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6 10h4V6\"/><path d=\"M4 4l6 6\"/><path d=\"M18 14h-4v4\"/><path d=\"M14 14l6 6\"/></g>"
334
- },
335
- "arrows-diagonal-minimize-2": {
336
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M18 10h-4V6\"/><path d=\"M20 4l-6 6\"/><path d=\"M6 14h4v4\"/><path d=\"M10 14l-6 6\"/></g>"
337
- },
338
311
  "arrows-double-ne-sw": {
339
312
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 14L14 3\"/><path d=\"M10 3h4v4\"/><path d=\"M10 17v4h4\"/><path d=\"M21 10L10 21\"/></g>"
340
313
  },
@@ -455,9 +428,6 @@
455
428
  "ball-volleyball": {
456
429
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M12 12a8 8 0 0 0 8 4M7.5 13.5A12 12 0 0 0 16 20\"/><path d=\"M12 12a8 8 0 0 0-7.464 4.928m8.415-9.575a12 12 0 0 0-9.88 4.111\"/><path d=\"M12 12a8 8 0 0 0-.536-8.928m4.085 12.075a12 12 0 0 0 1.38-10.611\"/></g>"
457
430
  },
458
- "ballon": {
459
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14 8a2 2 0 0 0-2-2\"/><path d=\"M6 8a6 6 0 1 1 12 0c0 4.97-2.686 9-6 9s-6-4.03-6-9\"/><path d=\"M12 17v1a2 2 0 0 1-2 2H7a2 2 0 0 0-2 2\"/></g>"
460
- },
461
431
  "ban": {
462
432
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M5.7 5.7l12.6 12.6\"/></g>"
463
433
  },
@@ -491,18 +461,9 @@
491
461
  "battery-charging": {
492
462
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M16 7h1a2 2 0 0 1 2 2v.5a.5.5 0 0 0 .5.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5a.5.5 0 0 0-.5.5v.5a2 2 0 0 1-2 2h-2\"/><path d=\"M8 7H6a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h1\"/><path d=\"M12 8l-2 4h3l-2 4\"/></g>"
493
463
  },
494
- "battery-charging-2": {
495
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 9a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v.5a.5.5 0 0 0 .5.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5a.5.5 0 0 0-.5.5v.5a2 2 0 0 1-2 2h-4.5\"/><path d=\"M3 15h6v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2z\"/><path d=\"M6 22v-3\"/><path d=\"M4 15v-2.5\"/><path d=\"M8 15v-2.5\"/></g>"
496
- },
497
- "battery-eco": {
498
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 9a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v.5a.5.5 0 0 0 .5.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5a.5.5 0 0 0-.5.5v.5a2 2 0 0 1-2 2h-5.5\"/><path d=\"M3 16.143C3 13.303 5.09 11 7.667 11H10v.857C10 14.697 7.91 17 5.333 17H3v-.857z\"/><path d=\"M3 20v-3\"/></g>"
499
- },
500
464
  "battery-off": {
501
465
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 3l18 18\"/><path d=\"M11 7h6a2 2 0 0 1 2 2v.5a.5.5 0 0 0 .5.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5a.5.5 0 0 0-.5.5v.5m-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1\"/></g>"
502
466
  },
503
- "beach": {
504
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M17.553 16.75a7.5 7.5 0 0 0-10.606 0\"/><path d=\"M18 3.804A6 6 0 0 0 9.804 6l10.392 6A6 6 0 0 0 18 3.804z\"/><path d=\"M16.732 10C18.39 7.13 18.957 4.356 18 3.804C17.043 3.252 14.925 5.13 13.268 8\"/><path d=\"M15 9l-3 5.196\"/><path d=\"M3 19.25A2.4 2.4 0 0 1 4 19a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2-1a2.4 2.4 0 0 1 2-1a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2-1a2.4 2.4 0 0 1 2-1a2.4 2.4 0 0 1 1 .25\"/></g>"
505
- },
506
467
  "bed": {
507
468
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7v11m0-4h18m0 4v-8a2 2 0 0 0-2-2h-8v6\"/><circle cx=\"7\" cy=\"10\" r=\"1\"/></g>"
508
469
  },
@@ -698,9 +659,6 @@
698
659
  "brand-booking": {
699
660
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 18V8.5A4.5 4.5 0 0 1 8.5 4h7A4.5 4.5 0 0 1 20 8.5v7a4.5 4.5 0 0 1-4.5 4.5H6a2 2 0 0 1-2-2z\"/><path d=\"M8 12h3.5a2 2 0 1 1 0 4H8V9a1 1 0 0 1 1-1h1.5a2 2 0 1 1 0 4H9\"/><path d=\"M16 16h.01\"/></g>"
700
661
  },
701
- "brand-bootstrap": {
702
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M2 12a2 2 0 0 0 2-2V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2\"/><path d=\"M2 12a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4a2 2 0 0 1 2-2\"/><path d=\"M9 16V8h3.5a2 2 0 1 1 0 4H9h4a2 2 0 1 1 0 4H9z\"/></g>"
703
- },
704
662
  "brand-chrome": {
705
663
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 9h8.4\"/><path d=\"M14.598 13.5l-4.2 7.275\"/><path d=\"M9.402 13.5l-4.2-7.275\"/></g>"
706
664
  },
@@ -2192,9 +2150,6 @@
2192
2150
  "hierarchy-2": {
2193
2151
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10 3h4v4h-4z\"/><path d=\"M3 17h4v4H3z\"/><path d=\"M17 17h4v4h-4z\"/><path d=\"M7 17l5-4l5 4\"/><path d=\"M12 7v6\"/></g>"
2194
2152
  },
2195
- "highlight": {
2196
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 19h4L17.5 8.5a2.828 2.828 0 1 0-4-4L3 15v4\"/><path d=\"M12.5 5.5l4 4\"/><path d=\"M4.5 13.5l4 4\"/><path d=\"M21 15v4h-8l4-4z\"/></g>"
2197
- },
2198
2153
  "history": {
2199
2154
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 8v4l2 2\"/><path d=\"M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5\"/></g>"
2200
2155
  },
@@ -2468,9 +2423,6 @@
2468
2423
  "list-check": {
2469
2424
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3.5 5.5L5 7l2.5-2.5\"/><path d=\"M3.5 11.5L5 13l2.5-2.5\"/><path d=\"M3.5 17.5L5 19l2.5-2.5\"/><path d=\"M11 6h9\"/><path d=\"M11 12h9\"/><path d=\"M11 18h9\"/></g>"
2470
2425
  },
2471
- "list-details": {
2472
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M13 5h8\"/><path d=\"M13 9h5\"/><path d=\"M13 15h8\"/><path d=\"M13 19h5\"/><rect x=\"3\" y=\"4\" width=\"6\" height=\"6\" rx=\"1\"/><rect x=\"3\" y=\"14\" width=\"6\" height=\"6\" rx=\"1\"/></g>"
2473
- },
2474
2426
  "list-numbers": {
2475
2427
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M11 6h9\"/><path d=\"M11 12h9\"/><path d=\"M12 18h8\"/><path d=\"M4 16a2 2 0 1 1 4 0c0 .591-.5 1-1 1.5L4 20h4\"/><path d=\"M6 10V4L4 6\"/></g>"
2476
2428
  },
@@ -2714,18 +2666,6 @@
2714
2666
  "mug": {
2715
2667
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4.083 5h10.834A1.08 1.08 0 0 1 16 6.077v8.615C16 17.072 14.06 19 11.667 19H7.333C4.94 19 3 17.071 3 14.692V6.077A1.08 1.08 0 0 1 4.083 5\"/><path d=\"M16 8h2.5c1.38 0 2.5 1.045 2.5 2.333v2.334C21 13.955 19.88 15 18.5 15H16\"/></g>"
2716
2668
  },
2717
- "multiplier-0-5x": {
2718
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8 16h2a2 2 0 1 0 0-4H8V8h4\"/><path d=\"M5 16v.01\"/><path d=\"M15 16l4-4\"/><path d=\"M19 16l-4-4\"/></g>"
2719
- },
2720
- "multiplier-1-5x": {
2721
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 16V8l-2 2\"/><path d=\"M10 16h2a2 2 0 1 0 0-4h-2V8h4\"/><path d=\"M7 16v.01\"/><path d=\"M17 16l4-4\"/><path d=\"M21 16l-4-4\"/></g>"
2722
- },
2723
- "multiplier-1x": {
2724
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 16V8l-2 2\"/><path d=\"M13 16l4-4\"/><path d=\"M17 16l-4-4\"/></g>"
2725
- },
2726
- "multiplier-2x": {
2727
- "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14 16l4-4\"/><path d=\"M18 16l-4-4\"/><path d=\"M6 10a2 2 0 1 1 4 0c0 .591-.417 1.318-.816 1.858L6 16.001L10 16\"/></g>"
2728
- },
2729
2669
  "mushroom": {
2730
2670
  "body": "<g class=\"icon-tabler\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 11.1C20 6.626 16.418 3 12 3s-8 3.626-8 8.1a.9.9 0 0 0 .9.9h14.2a.9.9 0 0 0 .9-.9z\"/><path d=\"M10 12v7a2 2 0 1 0 4 0v-7\"/></g>"
2731
2671
  },
package/package.json CHANGED
@@ -2,12 +2,59 @@
2
2
  "name": "@iconify/json",
3
3
  "description": "Iconify icons collection in JSON format",
4
4
  "license": "MIT",
5
- "version": "1.1.424",
5
+ "version": "2.0.0-beta.2",
6
+ "publishConfig": {
7
+ "tag": "next"
8
+ },
6
9
  "homepage": "https://iconify.design/icon-sets/",
7
- "main": "lib/finder.js",
8
10
  "bugs": "https://github.com/iconify/collections-json/issues",
9
11
  "repository": {
10
12
  "type": "git",
11
13
  "url": "git+ssh://git@github.com/iconify/collections-json.git"
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "require": "./dist/index.js",
18
+ "import": "./dist/index.mjs"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "json",
24
+ "lib",
25
+ "collections.json",
26
+ "collections.md",
27
+ "composer.md",
28
+ "readme.md"
29
+ ],
30
+ "main": "dist/index.js",
31
+ "module": "dist/index.mjs",
32
+ "types": "dist/index.d.ts",
33
+ "scripts": {
34
+ "build": "rimraf dist && tsup src/index.ts --format cjs,esm --dts",
35
+ "test-esm": "jest --clearCache && cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --config=jest.esm.config.ts",
36
+ "test-cjs": "npm run build && jest --clearCache && jest --config=jest.cjs.config.ts",
37
+ "test-locate-esm": "jest --clearCache && cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --config=jest.esm.config.ts src/locate.esm.test.ts -i",
38
+ "test-locate-cjs": "npm run build && jest --clearCache && jest --config=jest.cjs.config.ts src/locate.cjs.test.ts -i",
39
+ "test": "npm run test-esm && npm run test-cjs && npm run test-locate-esm && npm run test-locate-cjs",
40
+ "prepublishOnly": "npm run build"
41
+ },
42
+ "dependencies": {
43
+ "@iconify/types": "^1.0.9",
44
+ "pathe": "^0.0.2"
45
+ },
46
+ "devDependencies": {
47
+ "@types/jest": "^27.0.1",
48
+ "@types/node": "^16.9.1",
49
+ "@typescript-eslint/eslint-plugin": "^4.31.0",
50
+ "cross-env": "^7.0.3",
51
+ "eslint": "^7.32.0",
52
+ "esno": "^0.9.1",
53
+ "jest": "^27.2.0",
54
+ "jest-each": "^27.2.0",
55
+ "ts-jest": "^27.0.5",
56
+ "ts-node": "^10.2.1",
57
+ "tsup": "^4.14.0",
58
+ "typescript": "^4.4.3"
12
59
  }
13
- }
60
+ }
package/readme.md CHANGED
@@ -1,20 +1,28 @@
1
- # Iconify icons collection in JSON format
1
+ # Iconify icon sets in JSON format
2
2
 
3
3
  This is collection of SVG icons created by various authors, released under various free licenses. Some collections require attribution when used for commercial purposes. See [collections.md](./collections.md) for list of collections and their licenses.
4
4
 
5
- All SVG icons have been cleaned up. Content has been optimized, colors for monotone icons have been replaced with currentColor, ready to be inserted in HTML. Tools used for creating this collection are available on [Iconify GitHub repository](https://github.com/iconify), more specifically [@iconify/tools](https://github.com/iconify/tools). You can use it to create your own JSON packages from custom icon sets.
5
+ All icons have been normalized:
6
6
 
7
- This library is intended to be used in packages that build components, such as [Iconify Tools](https://github.com/iconify/tools) and [Iconify React](https://github.com/iconify/iconify-react).
7
+ - Cleaned up, removing anything that is not needed to show icon.
8
+ - Colors for monotone icons have been replaced with `currentColor`, making it easy to change icon color by changing text color.
9
+ - Icon content has been optimised to reduce its size.
8
10
 
9
- Repository is updated daily by fully automated script, so it always contains latest icons from various sources.
11
+ Repository is updated by fully automated script, so it always contains latest icons from various sources.
10
12
 
13
+ ## Format and usage
14
+
15
+ Icon sets are stored in `IconifyJSON` format. TypeScript definition is available in `@iconify/types` package. Documentation is [available on Iconify Documentation website](https://docs.iconify.design/types/iconify-json.html).
16
+
17
+ To work with icon sets, use [Iconify Utils](https://docs.iconify.design/tools/utils/). Utils package works in any JavaScript environment: Node.js, Deno, browsers, isolated JavaScript environments. For PHP applications use [Iconify JSON Tools](https://docs.iconify.design/tools/json/).
18
+
19
+ To create icon sets, use [Iconify Tools](https://docs.iconify.design/tools/tools2/). Tools package works in Node.js, it can import icons from various sources, do cleanup, optimisation, export it in `IconifyJSON` format and generate NPM packages.
11
20
 
12
21
  ## How to get this repository
13
22
 
14
23
  Instructions below are for Node.js and PHP projects.
15
24
 
16
-
17
- #### Node.js
25
+ ### Node.js
18
26
 
19
27
  Run this command to add icons to your project:
20
28
 
@@ -24,17 +32,16 @@ npm install --save @iconify/json
24
32
 
25
33
  Icons will be available in node_modules/@iconify/json
26
34
 
27
- To resolve filename for any json file, use this:
35
+ To resolve filename for any json file, use this if you are using CommonJS syntax:
28
36
 
29
37
  ```js
30
- const icons = require('@iconify/json');
38
+ import { locate } from '@iconify/json';
31
39
 
32
- // returns location of fa.json
33
- let fa = icons.locate('fa');
40
+ // returns location of mdi-light.json
41
+ const mdiLightFilename = locate('mdi-light');
34
42
  ```
35
43
 
36
-
37
- #### PHP
44
+ ### PHP
38
45
 
39
46
  Install and initialize Composer project. See documentation at [https://getcomposer.org](https://getcomposer.org)
40
47
 
@@ -60,75 +67,113 @@ If you don't use Composer, clone GitHub repository and add necessary autoload co
60
67
  To resolve filename for any json file, use this:
61
68
 
62
69
  ```php
63
- // returns location of fa.json
64
- $fa = \Iconify\IconsJSON\Finder::locate('fa');
70
+ // Returns location of mdi-light.json
71
+ $mdiLightLocation = \Iconify\IconsJSON\Finder::locate('mdi-light');
65
72
  ```
66
73
 
67
-
68
- ## Format
74
+ ## Data format
69
75
 
70
76
  Icons used by Iconify are in directory json, in Iconify JSON format.
71
77
 
72
- Why JSON instead of SVG? To load images in bulk.
78
+ Why JSON instead of SVG? There are several reasons for that:
73
79
 
74
- If you need individual SVG images, you can generate them using Iconify JSON Tools. See instructions for [PHP version](https://github.com/iconify/json-tools.php) or [Node.js version](https://github.com/iconify/json-tools.js).
80
+ - Easy to store images in bulk.
81
+ - Contains only content of icon without SVG element, making it easy to manipulate content without doing complex parsing. It also makes it easier to create components, such as React icon component, allowing to use framework native SVG element.
82
+ - Data can contain additional content: aliases for icons, icon set information, categories/tags/themes.
75
83
 
84
+ Why not XML?
85
+
86
+ - JSON is much easier to parse without additional tools. All languages support it.
76
87
 
77
88
  Format of json file is very simple:
78
89
 
79
- ```js
90
+ ```json
80
91
  {
81
- "icons": {
82
- "icon-name": {
83
- "body": "svg body",
84
- "width": width,
85
- "height": height
86
- }
87
- },
88
- "aliases": {
89
- "icon-alias": {
90
- "parent": "icon-name"
91
- }
92
- },
93
- "width": default width,
94
- "height": default height
92
+ "prefix": "mdi-light",
93
+ "icons": {
94
+ "icon-name": {
95
+ "body": "<g />",
96
+ "width": 24,
97
+ "height": 24
98
+ }
99
+ },
100
+ "aliases": {
101
+ "icon-alias": {
102
+ "parent": "icon-name"
103
+ }
104
+ }
95
105
  }
96
106
  ```
97
107
 
98
108
  "icons" object contains list of all icons.
99
109
 
100
110
  Each icon has following properties:
101
- * body - icon body
102
- * width - width in pixels
103
- * height - height in pixels
104
- * rotate - rotation. Default = 0. Values: 0 = 0deg, 1 = 90deg, 2 = 180deg, 3 = 270deg
105
- * hFlip - horizontal flip. Boolean value, default = false
106
- * vFlip - vertical flip. Boolean value, default = false
107
- * hidden - If set to true, icon is hidden. That means icon was removed from collection for some reason, but it is kept in JSON file to prevent applications that rely on old icon from breaking
108
111
 
109
- Width or height might be missing. If icon does not have width or height, use default width or height from root object.
110
- rotate, hFlip and vFlip are all optional.
112
+ - body: icon body.
113
+ - left, top: left and top coordinates of viewBox, default is 0.
114
+ - width, height: dimensions of viewBox, default is 16.
115
+ - rotate: rotation. Default = 0. Values: 0 = 0deg, 1 = 90deg, 2 = 180deg, 3 = 270deg.
116
+ - hFlip: horizontal flip. Boolean value, default = false.
117
+ - vFlip: vertical flip. Boolean value, default = false.
118
+ - hidden: if set to true, icon is hidden. That means icon was removed from collection for some reason, but it is kept in JSON file to prevent applications that rely on old icon from breaking.
119
+
120
+ Optional "aliases" object contains list of aliases for icons. Format is similar to "icons" object, but without "body" property and with additional property "parent" that points to parent icon. Transformation properties (rotate, hFlip, vFlip) are merged with parent icon's properties. Any other properties overwrite properties of parent icon.
121
+
122
+ When multiple icons have the same value, it is moved to root object to reduce duplication:
111
123
 
112
- Optional "aliases" object contains list of aliases for icons. Format is similar to "icons" object, with additional property "parent" that points to parent icon. Any other properties overwrite properties of parent icon.
124
+ ```json
125
+ {
126
+ "prefix": "mdi-light",
127
+ "icons": {
128
+ "icon1": {
129
+ "body": "<g />"
130
+ },
131
+ "icon2": {
132
+ "body": "<g />"
133
+ },
134
+ "icon-20": {
135
+ "body": "<g />",
136
+ "width": 20,
137
+ "height": 20
138
+ }
139
+ },
140
+ "width": 24,
141
+ "height": 24
142
+ }
143
+ ```
113
144
 
114
- For more information see developer documentation on [https://iconify.design/docs/json-icon-format/](https://iconify.design/docs/json-icon-format/)
145
+ In example above, "icon1" and "icon2" are 24x24, "icon-20" is 20x20.
115
146
 
147
+ For more information see developer documentation on [https://docs.iconify.design/types/iconify-json.html](https://docs.iconify.design/types/iconify-json.html)
116
148
 
117
149
  ## Extracting individual SVG icons
118
150
 
119
- See JSON tools readme for instructions for [PHP](https://github.com/iconify/json-tools.php) or [Node.js](https://github.com/iconify/json-tools.js).
151
+ For PHP use [Iconify JSON Tools](https://docs.iconify.design/tools/json/).
152
+
153
+ For JavaScript use [Iconify Utils](https://docs.iconify.design/tools/utils/), though Iconify JSON Tools are also available (but deprecated).
154
+
155
+ Example using Iconify Utils:
156
+
157
+ ```js
158
+
159
+ ```
160
+
161
+ Example using Iconify JSON Tools:
120
162
 
121
163
  ```js
122
164
  const fs = require('fs');
123
- const {SVG, Collection} = require('@iconify/json-tools');
165
+ const { SVG, Collection } = require('@iconify/json-tools');
124
166
 
125
167
  let collection = new Collection();
126
168
  collection.loadIconifyCollection('mdi');
127
- collection.listIcons(true).forEach(icon => {
128
- let svg = new SVG(collection.getIconData(icon));
129
- fs.writeFileSync('mdi-' + icon + '.svg', svg.getSVG({
130
- height: 'auto'
131
- }));
169
+ collection.listIcons(true).forEach((icon) => {
170
+ let svg = new SVG(collection.getIconData(icon));
171
+ fs.writeFileSync(
172
+ 'mdi-' + icon + '.svg',
173
+ svg.getSVG({
174
+ height: 'auto',
175
+ })
176
+ );
132
177
  });
133
178
  ```
134
179
 
@@ -146,7 +191,6 @@ foreach ($collection->listIcons(true) as $icon) {
146
191
  }
147
192
  ```
148
193
 
149
-
150
194
  ## License
151
195
 
152
196
  This is collection of works by various authors, not original collection.
package/composer.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "name": "iconify/json",
3
- "description": "Iconify icons collection in JSON format",
4
- "type": "library",
5
- "version": "1.1.424",
6
- "license": "MIT",
7
- "homepage": "https://iconify.design/icon-sets/",
8
- "autoload": {
9
- "psr-4": {
10
- "Iconify\\IconsJSON\\": "lib"
11
- }
12
- }
13
- }
package/lib/finder.js DELETED
@@ -1,49 +0,0 @@
1
- /**
2
- * This file is part of the iconify.design libraries.
3
- *
4
- * (c) Vjacheslav Trushkin <cyberalien@gmail.com>
5
- *
6
- * @license MIT
7
- *
8
- * For the full copyright and license information, please view the license.txt
9
- * file that is available in this file's directory.
10
- */
11
-
12
- "use strict";
13
-
14
- const path = require('path');
15
- const fs = require('fs');
16
- const dir = path.dirname(__dirname);
17
-
18
- module.exports = {
19
- /**
20
- * Get root directory of this package
21
- * (not really useful in Node.js because require can do it, but added anyway to match php code)
22
- *
23
- * @returns {string}
24
- */
25
- rootDir: () => dir,
26
-
27
- /**
28
- * Locate JSON file
29
- *
30
- * @param {string} name Collection name
31
- * @returns {string} Path to collection json file
32
- */
33
- locate: name => dir + '/json/' + name + '.json',
34
-
35
- /**
36
- * Get list of collections
37
- *
38
- * @return {object|null}
39
- */
40
- collections: () => {
41
- try {
42
- let data = fs.readFileSync(dir + '/collections.json', 'utf8');
43
- data = JSON.parse(data);
44
- return data;
45
- } catch (err) {
46
- return null;
47
- }
48
- }
49
- };