@rokkit/icons 1.0.0-next.119 → 1.0.0-next.120

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.
Files changed (45) hide show
  1. package/lib/app/icons.json +114 -114
  2. package/lib/app/index.d.ts +6 -6
  3. package/lib/app/index.js +8 -8
  4. package/lib/app/index.mjs +5 -5
  5. package/lib/app/package.json +22 -23
  6. package/lib/app.json +2 -2
  7. package/lib/auth/icons.json +45 -45
  8. package/lib/auth/index.d.ts +6 -6
  9. package/lib/auth/index.js +8 -8
  10. package/lib/auth/index.mjs +5 -5
  11. package/lib/auth/package.json +22 -23
  12. package/lib/auth.json +2 -2
  13. package/lib/base/icons.json +207 -207
  14. package/lib/base/index.d.ts +6 -6
  15. package/lib/base/index.js +8 -8
  16. package/lib/base/index.mjs +5 -5
  17. package/lib/base/package.json +22 -23
  18. package/lib/base.json +2 -2
  19. package/lib/components/icons.json +90 -90
  20. package/lib/components/index.d.ts +6 -6
  21. package/lib/components/index.js +8 -8
  22. package/lib/components/index.mjs +5 -5
  23. package/lib/components/package.json +22 -23
  24. package/lib/components.json +2 -2
  25. package/lib/light/icons.json +21 -21
  26. package/lib/light/index.d.ts +6 -6
  27. package/lib/light/index.js +8 -8
  28. package/lib/light/index.mjs +5 -5
  29. package/lib/light/package.json +22 -23
  30. package/lib/light.json +2 -2
  31. package/lib/solid/icons.json +42 -42
  32. package/lib/solid/index.d.ts +6 -6
  33. package/lib/solid/index.js +8 -8
  34. package/lib/solid/index.mjs +5 -5
  35. package/lib/solid/package.json +22 -23
  36. package/lib/solid.json +2 -2
  37. package/lib/twotone/icons.json +18 -18
  38. package/lib/twotone/index.d.ts +6 -6
  39. package/lib/twotone/index.js +8 -8
  40. package/lib/twotone/index.mjs +5 -5
  41. package/lib/twotone/package.json +22 -23
  42. package/lib/twotone.json +2 -2
  43. package/package.json +23 -31
  44. package/src/convert.js +0 -109
  45. package/src/index.js +0 -16
@@ -1,44 +1,44 @@
1
1
  {
2
- "prefix": "solid",
3
- "icons": {
4
- "action-add": {
5
- "body": "<path fill=\"currentColor\" d=\"M12 2a10 10 0 100 20 10 10 0 000-20m3 11h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V9a1 1 0 012 0v2h2a1 1 0 010 2\"/>"
6
- },
7
- "action-clear": {
8
- "body": "<path fill=\"currentColor\" d=\"M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 002 2h8a2 2 0 002-2V7H6z\"/>"
9
- },
10
- "action-close": {
11
- "body": "<path fill=\"currentColor\" d=\"M12 1.5C6.15 1.5 1.5 6.15 1.5 12S6.15 22.5 12 22.5 22.5 17.85 22.5 12 17.85 1.5 12 1.5m4.05 15.75L12 13.2l-4.05 4.05-1.2-1.2L10.8 12 6.75 7.95l1.2-1.2L12 10.8l4.05-4.05 1.2 1.2L13.2 12l4.05 4.05z\"/>"
12
- },
13
- "action-remove": {
14
- "body": "<path fill=\"currentColor\" d=\"M12 2a10 10 0 100 20 10 10 0 000-20m3 11H9a1 1 0 010-2h6a1 1 0 010 2\"/>"
15
- },
16
- "action-search": {
17
- "body": "<path fill=\"currentColor\" d=\"M10 2.5a7.5 7.5 0 015.964 12.048l4.743 4.745a1 1 0 01-1.32 1.497l-.094-.083-4.745-4.743A7.5 7.5 0 1110 2.5m0 2a5.5 5.5 0 100 11 5.5 5.5 0 000-11\"/>"
18
- },
19
- "minus": {
20
- "body": "<path fill=\"currentColor\" d=\"M18 3H6a3 3 0 00-3 3v12a3 3 0 003 3h12a3 3 0 003-3V6a3 3 0 00-3-3m-3 10H9a1 1 0 010-2h6a1 1 0 010 2\"/>"
21
- },
22
- "minus-circle": {
23
- "body": "<path fill=\"currentColor\" d=\"M12 2a10 10 0 100 20 10 10 0 000-20m3 11H9a1 1 0 010-2h6a1 1 0 010 2\"/>"
24
- },
25
- "mode-dark": {
26
- "body": "<path fill=\"currentColor\" d=\"M9.822 2.238a9 9 0 0011.94 11.94C20.768 18.654 16.775 22 12 22 6.477 22 2 17.523 2 12c0-4.775 3.346-8.768 7.822-9.762\"/>"
27
- },
28
- "mode-light": {
29
- "body": "<g fill=\"none\"><g clip-path=\"url(#svgID0)\"><path fill=\"currentColor\" d=\"M18.375 12A6.375 6.375 0 1112 5.625 6.384 6.384 0 0118.375 12M12 4.125a.75.75 0 00.75-.75V1.5a.75.75 0 10-1.5 0v1.875a.75.75 0 00.75.75M5.372 6.431a.76.76 0 001.06 0 .75.75 0 000-1.06l-1.323-1.33a.76.76 0 10-1.068 1.068zM4.125 12a.75.75 0 00-.75-.75H1.5a.75.75 0 100 1.5h1.875a.75.75 0 00.75-.75m1.247 5.569L4.04 18.89a.76.76 0 000 1.068.8.8 0 00.534.216c.2 0 .39-.078.534-.216l1.322-1.33a.75.75 0 00-1.06-1.06M12 19.875a.75.75 0 00-.75.75V22.5a.75.75 0 101.5 0v-1.875a.75.75 0 00-.75-.75m6.628-2.306a.75.75 0 00-1.06 1.06l1.323 1.33a.78.78 0 00.534.216.8.8 0 00.534-.216.76.76 0 000-1.068zM22.5 11.25h-1.875a.75.75 0 100 1.5H22.5a.75.75 0 100-1.5m-4.397-4.603a.73.73 0 00.525-.216L19.96 5.11a.76.76 0 00-1.068-1.068l-1.322 1.33a.75.75 0 00.245 1.223q.139.056.29.053\"/></g><defs><clipPath id=\"svgID0\"><path fill=\"#fff\" d=\"M0 0h24v24H0z\"/></clipPath></defs></g>"
30
- },
31
- "node-closed": {
32
- "body": "<path fill=\"currentColor\" d=\"M18 3H6a3 3 0 00-3 3v12a3 3 0 003 3h12a3 3 0 003-3V6a3 3 0 00-3-3m-3 10h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V9a1 1 0 012 0v2h2a1 1 0 010 2\"/>"
33
- },
34
- "node-opened": {
35
- "body": "<path fill=\"currentColor\" d=\"M18 3H6a3 3 0 00-3 3v12a3 3 0 003 3h12a3 3 0 003-3V6a3 3 0 00-3-3m-3 10H9a1 1 0 010-2h6a1 1 0 010 2\"/>"
36
- },
37
- "plus": {
38
- "body": "<path fill=\"currentColor\" d=\"M18 3H6a3 3 0 00-3 3v12a3 3 0 003 3h12a3 3 0 003-3V6a3 3 0 00-3-3m-3 10h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V9a1 1 0 012 0v2h2a1 1 0 010 2\"/>"
39
- }
40
- },
41
- "lastModified": 1746486657,
42
- "width": 24,
43
- "height": 24
2
+ "prefix": "solid",
3
+ "icons": {
4
+ "action-add": {
5
+ "body": "<path fill=\"currentColor\" d=\"M12 2a10 10 0 100 20 10 10 0 000-20m3 11h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V9a1 1 0 012 0v2h2a1 1 0 010 2\"/>"
6
+ },
7
+ "action-clear": {
8
+ "body": "<path fill=\"currentColor\" d=\"M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 002 2h8a2 2 0 002-2V7H6z\"/>"
9
+ },
10
+ "action-close": {
11
+ "body": "<path fill=\"currentColor\" d=\"M12 1.5C6.15 1.5 1.5 6.15 1.5 12S6.15 22.5 12 22.5 22.5 17.85 22.5 12 17.85 1.5 12 1.5m4.05 15.75L12 13.2l-4.05 4.05-1.2-1.2L10.8 12 6.75 7.95l1.2-1.2L12 10.8l4.05-4.05 1.2 1.2L13.2 12l4.05 4.05z\"/>"
12
+ },
13
+ "action-remove": {
14
+ "body": "<path fill=\"currentColor\" d=\"M12 2a10 10 0 100 20 10 10 0 000-20m3 11H9a1 1 0 010-2h6a1 1 0 010 2\"/>"
15
+ },
16
+ "action-search": {
17
+ "body": "<path fill=\"currentColor\" d=\"M10 2.5a7.5 7.5 0 015.964 12.048l4.743 4.745a1 1 0 01-1.32 1.497l-.094-.083-4.745-4.743A7.5 7.5 0 1110 2.5m0 2a5.5 5.5 0 100 11 5.5 5.5 0 000-11\"/>"
18
+ },
19
+ "minus": {
20
+ "body": "<path fill=\"currentColor\" d=\"M18 3H6a3 3 0 00-3 3v12a3 3 0 003 3h12a3 3 0 003-3V6a3 3 0 00-3-3m-3 10H9a1 1 0 010-2h6a1 1 0 010 2\"/>"
21
+ },
22
+ "minus-circle": {
23
+ "body": "<path fill=\"currentColor\" d=\"M12 2a10 10 0 100 20 10 10 0 000-20m3 11H9a1 1 0 010-2h6a1 1 0 010 2\"/>"
24
+ },
25
+ "mode-dark": {
26
+ "body": "<path fill=\"currentColor\" d=\"M9.822 2.238a9 9 0 0011.94 11.94C20.768 18.654 16.775 22 12 22 6.477 22 2 17.523 2 12c0-4.775 3.346-8.768 7.822-9.762\"/>"
27
+ },
28
+ "mode-light": {
29
+ "body": "<g fill=\"none\"><g clip-path=\"url(#svgID0)\"><path fill=\"currentColor\" d=\"M18.375 12A6.375 6.375 0 1112 5.625 6.384 6.384 0 0118.375 12M12 4.125a.75.75 0 00.75-.75V1.5a.75.75 0 10-1.5 0v1.875a.75.75 0 00.75.75M5.372 6.431a.76.76 0 001.06 0 .75.75 0 000-1.06l-1.323-1.33a.76.76 0 10-1.068 1.068zM4.125 12a.75.75 0 00-.75-.75H1.5a.75.75 0 100 1.5h1.875a.75.75 0 00.75-.75m1.247 5.569L4.04 18.89a.76.76 0 000 1.068.8.8 0 00.534.216c.2 0 .39-.078.534-.216l1.322-1.33a.75.75 0 00-1.06-1.06M12 19.875a.75.75 0 00-.75.75V22.5a.75.75 0 101.5 0v-1.875a.75.75 0 00-.75-.75m6.628-2.306a.75.75 0 00-1.06 1.06l1.323 1.33a.78.78 0 00.534.216.8.8 0 00.534-.216.76.76 0 000-1.068zM22.5 11.25h-1.875a.75.75 0 100 1.5H22.5a.75.75 0 100-1.5m-4.397-4.603a.73.73 0 00.525-.216L19.96 5.11a.76.76 0 00-1.068-1.068l-1.322 1.33a.75.75 0 00.245 1.223q.139.056.29.053\"/></g><defs><clipPath id=\"svgID0\"><path fill=\"#fff\" d=\"M0 0h24v24H0z\"/></clipPath></defs></g>"
30
+ },
31
+ "node-closed": {
32
+ "body": "<path fill=\"currentColor\" d=\"M18 3H6a3 3 0 00-3 3v12a3 3 0 003 3h12a3 3 0 003-3V6a3 3 0 00-3-3m-3 10h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V9a1 1 0 012 0v2h2a1 1 0 010 2\"/>"
33
+ },
34
+ "node-opened": {
35
+ "body": "<path fill=\"currentColor\" d=\"M18 3H6a3 3 0 00-3 3v12a3 3 0 003 3h12a3 3 0 003-3V6a3 3 0 00-3-3m-3 10H9a1 1 0 010-2h6a1 1 0 010 2\"/>"
36
+ },
37
+ "plus": {
38
+ "body": "<path fill=\"currentColor\" d=\"M18 3H6a3 3 0 00-3 3v12a3 3 0 003 3h12a3 3 0 003-3V6a3 3 0 00-3-3m-3 10h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V9a1 1 0 012 0v2h2a1 1 0 010 2\"/>"
39
+ }
40
+ },
41
+ "lastModified": 1748289407,
42
+ "width": 24,
43
+ "height": 24
44
44
  }
@@ -1,8 +1,8 @@
1
- import type { IconifyJSON, IconifyInfo, IconifyMetaData, IconifyChars } from '@iconify/types'
1
+ import type { IconifyJSON, IconifyInfo, IconifyMetaData, IconifyChars } from '@iconify/types';
2
2
 
3
- export { IconifyJSON, IconifyInfo, IconifyMetaData, IconifyChars }
3
+ export { IconifyJSON, IconifyInfo, IconifyMetaData, IconifyChars };
4
4
 
5
- export declare const icons: IconifyJSON
6
- export declare const info: IconifyInfo
7
- export declare const metadata: IconifyMetaData
8
- export declare const chars: IconifyChars
5
+ export declare const icons: IconifyJSON;
6
+ export declare const info: IconifyInfo;
7
+ export declare const metadata: IconifyMetaData;
8
+ export declare const chars: IconifyChars;
@@ -1,9 +1,9 @@
1
- const icons = require('./icons.json')
2
- const info = {}
3
- const metadata = {}
4
- const chars = {}
1
+ const icons = require('./icons.json');
2
+ const info = {};
3
+ const metadata = {};
4
+ const chars = {};
5
5
 
6
- exports.icons = icons
7
- exports.info = info
8
- exports.metadata = metadata
9
- exports.chars = chars
6
+ exports.icons = icons;
7
+ exports.info = info;
8
+ exports.metadata = metadata;
9
+ exports.chars = chars;
@@ -1,6 +1,6 @@
1
- import icons from './icons.json' with { type: 'json' }
1
+ import icons from './icons.json' with { type: 'json' };
2
2
 
3
- const info = {}
4
- const metadata = {}
5
- const chars = {}
6
- export { icons, info, metadata, chars }
3
+ const info = {};
4
+ const metadata = {};
5
+ const chars = {};
6
+ export { icons, info, metadata, chars };
@@ -1,25 +1,24 @@
1
1
  {
2
- "name": "@rokkit/solid",
3
- "description": "solid icon set in Iconify JSON format",
4
- "version": "1.0.0",
5
- "main": "index.js",
6
- "module": "index.mjs",
7
- "types": "index.d.ts",
8
- "bugs": "https://github.com/jerrythomas/rokkit/issues",
9
- "homepage": "https://github.com/jerrythomas/rokkit",
10
- "exports": {
11
- "./*": "./*",
12
- ".": {
13
- "types": "./index.d.ts",
14
- "require": "./index.js",
15
- "import": "./index.mjs"
16
- },
17
- "./icons.json": "./icons.json"
18
- },
19
- "iconSet": {
20
- "icons": "icons.json"
21
- },
22
- "dependencies": {
23
- "@iconify/types": "*"
24
- }
2
+ "name": "@rokkit/solid",
3
+ "description": "solid icon set in Iconify JSON format",
4
+ "version": "1.0.0",
5
+ "main": "index.js",
6
+ "module": "index.mjs",
7
+ "types": "index.d.ts",
8
+ "homepage": "https://github.com/jerrythomas/rokkit",
9
+ "exports": {
10
+ "./*": "./*",
11
+ ".": {
12
+ "types": "./index.d.ts",
13
+ "require": "./index.js",
14
+ "import": "./index.mjs"
15
+ },
16
+ "./icons.json": "./icons.json"
17
+ },
18
+ "iconSet": {
19
+ "icons": "icons.json"
20
+ },
21
+ "dependencies": {
22
+ "@iconify/types": "*"
23
+ }
25
24
  }
package/lib/solid.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "prefix": "solid",
3
- "lastModified": 1746486657,
3
+ "lastModified": 1748289407,
4
4
  "icons": {
5
5
  "action-add": {
6
6
  "body": "<path fill=\"currentColor\" d=\"M12 2a10 10 0 100 20 10 10 0 000-20m3 11h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V9a1 1 0 012 0v2h2a1 1 0 010 2\"/>"
@@ -41,4 +41,4 @@
41
41
  },
42
42
  "width": 24,
43
43
  "height": 24
44
- }
44
+ }
@@ -1,20 +1,20 @@
1
1
  {
2
- "prefix": "twotone",
3
- "icons": {
4
- "heart": {
5
- "body": "<g fill=\"currentColor\"><path d=\"M21.633 6.647a6.1 6.1 0 00-1.334-1.94A6.22 6.22 0 0015.93 2.93 6.26 6.26 0 0012 4.315 6.26 6.26 0 008.07 2.93 6.22 6.22 0 003.7 4.706a6.06 6.06 0 00-1.825 4.33c0 .78.16 1.593.476 2.42.265.692.644 1.409 1.13 2.133.768 1.146 1.825 2.342 3.138 3.553a35 35 0 004.42 3.453l.556.356a.75.75 0 00.808 0l.556-.357a35.5 35.5 0 004.42-3.452c1.312-1.211 2.37-2.407 3.138-3.553.485-.724.867-1.441 1.13-2.133.316-.827.476-1.64.476-2.42a6 6 0 00-.49-2.39M12 19.097S3.656 13.75 3.656 9.035c0-2.388 1.976-4.324 4.414-4.324 1.713 0 3.199.956 3.93 2.353a4.43 4.43 0 013.93-2.353c2.438 0 4.414 1.936 4.414 4.324 0 4.716-8.344 10.062-8.344 10.062\"/><path fill-opacity=\".15\" d=\"M15.93 4.71A4.43 4.43 0 0012 7.064a4.43 4.43 0 00-3.93-2.353c-2.438 0-4.414 1.936-4.414 4.324C3.656 13.751 12 19.097 12 19.097s8.344-5.346 8.344-10.062c0-2.388-1.976-4.324-4.414-4.324\"/></g>"
6
- },
7
- "state-info": {
8
- "body": "<g fill=\"currentColor\"><path d=\"M21 12a9 9 0 11-17.999 0A9 9 0 0121 12\" opacity=\".2\"/><path d=\"M13.5 16.5a.75.75 0 01-.75.75 1.5 1.5 0 01-1.5-1.5V12a.75.75 0 110-1.5 1.5 1.5 0 011.5 1.5v3.75a.75.75 0 01.75.75m8.25-4.5A9.75 9.75 0 1112 2.25 9.76 9.76 0 0121.75 12m-1.5 0A8.25 8.25 0 1012 20.25 8.26 8.26 0 0020.25 12m-8.625-3a1.125 1.125 0 100-2.25 1.125 1.125 0 000 2.25\"/></g>"
9
- },
10
- "state-unknown": {
11
- "body": "<g fill=\"currentColor\"><path d=\"M21 12a9 9 0 11-17.999 0A9 9 0 0121 12\" opacity=\".2\"/><path d=\"M13.125 16.875a1.125 1.125 0 11-2.25 0 1.125 1.125 0 012.25 0M12 6.75c-2.068 0-3.75 1.514-3.75 3.375v.375a.75.75 0 101.5 0v-.375c0-1.031 1.01-1.875 2.25-1.875s2.25.844 2.25 1.875S13.24 12 12 12a.75.75 0 00-.75.75v.75a.75.75 0 101.5 0v-.068c1.71-.314 3-1.678 3-3.307 0-1.86-1.682-3.375-3.75-3.375M21.75 12A9.75 9.75 0 1112 2.25 9.76 9.76 0 0121.75 12m-1.5 0A8.25 8.25 0 1012 20.25 8.26 8.26 0 0020.25 12\"/></g>"
12
- },
13
- "state-warning": {
14
- "body": "<g fill=\"currentColor\"><path d=\"M20.2 20.25H3.8c-1.183 0-1.925-1.239-1.35-2.242l8.199-14.237c.59-1.032 2.111-1.032 2.702 0l8.2 14.237c.574 1.003-.168 2.242-1.352 2.242\" opacity=\".2\"/><path d=\"M22.2 17.633 14.002 3.396a2.322 2.322 0 00-4.004 0L1.8 17.633a2.2 2.2 0 000 2.224A2.28 2.28 0 003.802 21h16.397a2.28 2.28 0 002-1.143 2.2 2.2 0 00.001-2.224m-1.3 1.473a.8.8 0 01-.701.394H3.802a.8.8 0 01-.702-.394.71.71 0 010-.724l8.2-14.237a.82.82 0 011.406 0l8.199 14.237a.71.71 0 01-.004.724M11.25 13.5V9.75a.75.75 0 111.5 0v3.75a.75.75 0 11-1.5 0m1.875 3.375a1.125 1.125 0 11-2.25 0 1.125 1.125 0 012.25 0\"/></g>"
15
- }
16
- },
17
- "lastModified": 1746486657,
18
- "width": 24,
19
- "height": 24
2
+ "prefix": "twotone",
3
+ "icons": {
4
+ "heart": {
5
+ "body": "<g fill=\"currentColor\"><path d=\"M21.633 6.647a6.1 6.1 0 00-1.334-1.94A6.22 6.22 0 0015.93 2.93 6.26 6.26 0 0012 4.315 6.26 6.26 0 008.07 2.93 6.22 6.22 0 003.7 4.706a6.06 6.06 0 00-1.825 4.33c0 .78.16 1.593.476 2.42.265.692.644 1.409 1.13 2.133.768 1.146 1.825 2.342 3.138 3.553a35 35 0 004.42 3.453l.556.356a.75.75 0 00.808 0l.556-.357a35.5 35.5 0 004.42-3.452c1.312-1.211 2.37-2.407 3.138-3.553.485-.724.867-1.441 1.13-2.133.316-.827.476-1.64.476-2.42a6 6 0 00-.49-2.39M12 19.097S3.656 13.75 3.656 9.035c0-2.388 1.976-4.324 4.414-4.324 1.713 0 3.199.956 3.93 2.353a4.43 4.43 0 013.93-2.353c2.438 0 4.414 1.936 4.414 4.324 0 4.716-8.344 10.062-8.344 10.062\"/><path fill-opacity=\".15\" d=\"M15.93 4.71A4.43 4.43 0 0012 7.064a4.43 4.43 0 00-3.93-2.353c-2.438 0-4.414 1.936-4.414 4.324C3.656 13.751 12 19.097 12 19.097s8.344-5.346 8.344-10.062c0-2.388-1.976-4.324-4.414-4.324\"/></g>"
6
+ },
7
+ "state-info": {
8
+ "body": "<g fill=\"currentColor\"><path d=\"M21 12a9 9 0 11-17.999 0A9 9 0 0121 12\" opacity=\".2\"/><path d=\"M13.5 16.5a.75.75 0 01-.75.75 1.5 1.5 0 01-1.5-1.5V12a.75.75 0 110-1.5 1.5 1.5 0 011.5 1.5v3.75a.75.75 0 01.75.75m8.25-4.5A9.75 9.75 0 1112 2.25 9.76 9.76 0 0121.75 12m-1.5 0A8.25 8.25 0 1012 20.25 8.26 8.26 0 0020.25 12m-8.625-3a1.125 1.125 0 100-2.25 1.125 1.125 0 000 2.25\"/></g>"
9
+ },
10
+ "state-unknown": {
11
+ "body": "<g fill=\"currentColor\"><path d=\"M21 12a9 9 0 11-17.999 0A9 9 0 0121 12\" opacity=\".2\"/><path d=\"M13.125 16.875a1.125 1.125 0 11-2.25 0 1.125 1.125 0 012.25 0M12 6.75c-2.068 0-3.75 1.514-3.75 3.375v.375a.75.75 0 101.5 0v-.375c0-1.031 1.01-1.875 2.25-1.875s2.25.844 2.25 1.875S13.24 12 12 12a.75.75 0 00-.75.75v.75a.75.75 0 101.5 0v-.068c1.71-.314 3-1.678 3-3.307 0-1.86-1.682-3.375-3.75-3.375M21.75 12A9.75 9.75 0 1112 2.25 9.76 9.76 0 0121.75 12m-1.5 0A8.25 8.25 0 1012 20.25 8.26 8.26 0 0020.25 12\"/></g>"
12
+ },
13
+ "state-warning": {
14
+ "body": "<g fill=\"currentColor\"><path d=\"M20.2 20.25H3.8c-1.183 0-1.925-1.239-1.35-2.242l8.199-14.237c.59-1.032 2.111-1.032 2.702 0l8.2 14.237c.574 1.003-.168 2.242-1.352 2.242\" opacity=\".2\"/><path d=\"M22.2 17.633 14.002 3.396a2.322 2.322 0 00-4.004 0L1.8 17.633a2.2 2.2 0 000 2.224A2.28 2.28 0 003.802 21h16.397a2.28 2.28 0 002-1.143 2.2 2.2 0 00.001-2.224m-1.3 1.473a.8.8 0 01-.701.394H3.802a.8.8 0 01-.702-.394.71.71 0 010-.724l8.2-14.237a.82.82 0 011.406 0l8.199 14.237a.71.71 0 01-.004.724M11.25 13.5V9.75a.75.75 0 111.5 0v3.75a.75.75 0 11-1.5 0m1.875 3.375a1.125 1.125 0 11-2.25 0 1.125 1.125 0 012.25 0\"/></g>"
15
+ }
16
+ },
17
+ "lastModified": 1748289407,
18
+ "width": 24,
19
+ "height": 24
20
20
  }
@@ -1,8 +1,8 @@
1
- import type { IconifyJSON, IconifyInfo, IconifyMetaData, IconifyChars } from '@iconify/types'
1
+ import type { IconifyJSON, IconifyInfo, IconifyMetaData, IconifyChars } from '@iconify/types';
2
2
 
3
- export { IconifyJSON, IconifyInfo, IconifyMetaData, IconifyChars }
3
+ export { IconifyJSON, IconifyInfo, IconifyMetaData, IconifyChars };
4
4
 
5
- export declare const icons: IconifyJSON
6
- export declare const info: IconifyInfo
7
- export declare const metadata: IconifyMetaData
8
- export declare const chars: IconifyChars
5
+ export declare const icons: IconifyJSON;
6
+ export declare const info: IconifyInfo;
7
+ export declare const metadata: IconifyMetaData;
8
+ export declare const chars: IconifyChars;
@@ -1,9 +1,9 @@
1
- const icons = require('./icons.json')
2
- const info = {}
3
- const metadata = {}
4
- const chars = {}
1
+ const icons = require('./icons.json');
2
+ const info = {};
3
+ const metadata = {};
4
+ const chars = {};
5
5
 
6
- exports.icons = icons
7
- exports.info = info
8
- exports.metadata = metadata
9
- exports.chars = chars
6
+ exports.icons = icons;
7
+ exports.info = info;
8
+ exports.metadata = metadata;
9
+ exports.chars = chars;
@@ -1,6 +1,6 @@
1
- import icons from './icons.json' with { type: 'json' }
1
+ import icons from './icons.json' with { type: 'json' };
2
2
 
3
- const info = {}
4
- const metadata = {}
5
- const chars = {}
6
- export { icons, info, metadata, chars }
3
+ const info = {};
4
+ const metadata = {};
5
+ const chars = {};
6
+ export { icons, info, metadata, chars };
@@ -1,25 +1,24 @@
1
1
  {
2
- "name": "@rokkit/twotone",
3
- "description": "twotone icon set in Iconify JSON format",
4
- "version": "1.0.0",
5
- "main": "index.js",
6
- "module": "index.mjs",
7
- "types": "index.d.ts",
8
- "bugs": "https://github.com/jerrythomas/rokkit/issues",
9
- "homepage": "https://github.com/jerrythomas/rokkit",
10
- "exports": {
11
- "./*": "./*",
12
- ".": {
13
- "types": "./index.d.ts",
14
- "require": "./index.js",
15
- "import": "./index.mjs"
16
- },
17
- "./icons.json": "./icons.json"
18
- },
19
- "iconSet": {
20
- "icons": "icons.json"
21
- },
22
- "dependencies": {
23
- "@iconify/types": "*"
24
- }
2
+ "name": "@rokkit/twotone",
3
+ "description": "twotone icon set in Iconify JSON format",
4
+ "version": "1.0.0",
5
+ "main": "index.js",
6
+ "module": "index.mjs",
7
+ "types": "index.d.ts",
8
+ "homepage": "https://github.com/jerrythomas/rokkit",
9
+ "exports": {
10
+ "./*": "./*",
11
+ ".": {
12
+ "types": "./index.d.ts",
13
+ "require": "./index.js",
14
+ "import": "./index.mjs"
15
+ },
16
+ "./icons.json": "./icons.json"
17
+ },
18
+ "iconSet": {
19
+ "icons": "icons.json"
20
+ },
21
+ "dependencies": {
22
+ "@iconify/types": "*"
23
+ }
25
24
  }
package/lib/twotone.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "prefix": "twotone",
3
- "lastModified": 1746486657,
3
+ "lastModified": 1748289407,
4
4
  "icons": {
5
5
  "heart": {
6
6
  "body": "<g fill=\"currentColor\"><path d=\"M21.633 6.647a6.1 6.1 0 00-1.334-1.94A6.22 6.22 0 0015.93 2.93 6.26 6.26 0 0012 4.315 6.26 6.26 0 008.07 2.93 6.22 6.22 0 003.7 4.706a6.06 6.06 0 00-1.825 4.33c0 .78.16 1.593.476 2.42.265.692.644 1.409 1.13 2.133.768 1.146 1.825 2.342 3.138 3.553a35 35 0 004.42 3.453l.556.356a.75.75 0 00.808 0l.556-.357a35.5 35.5 0 004.42-3.452c1.312-1.211 2.37-2.407 3.138-3.553.485-.724.867-1.441 1.13-2.133.316-.827.476-1.64.476-2.42a6 6 0 00-.49-2.39M12 19.097S3.656 13.75 3.656 9.035c0-2.388 1.976-4.324 4.414-4.324 1.713 0 3.199.956 3.93 2.353a4.43 4.43 0 013.93-2.353c2.438 0 4.414 1.936 4.414 4.324 0 4.716-8.344 10.062-8.344 10.062\"/><path fill-opacity=\".15\" d=\"M15.93 4.71A4.43 4.43 0 0012 7.064a4.43 4.43 0 00-3.93-2.353c-2.438 0-4.414 1.936-4.414 4.324C3.656 13.751 12 19.097 12 19.097s8.344-5.346 8.344-10.062c0-2.388-1.976-4.324-4.414-4.324\"/></g>"
@@ -17,4 +17,4 @@
17
17
  },
18
18
  "width": 24,
19
19
  "height": 24
20
- }
20
+ }
package/package.json CHANGED
@@ -1,36 +1,7 @@
1
1
  {
2
2
  "name": "@rokkit/icons",
3
- "version": "1.0.0-next.119",
4
- "description": "A minimal icon set for use in applications.",
3
+ "version": "1.0.0-next.120",
5
4
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
- "license": "MIT",
7
- "bin": "src/index.js",
8
- "main": "src/index.js",
9
- "module": "src/index.js",
10
- "type": "module",
11
- "scripts": {
12
- "format": "prettier --write .",
13
- "lint": "eslint --fix .",
14
- "build": "node src/index.js && pnpm format",
15
- "latest": "pnpm upgrade --latest",
16
- "release": "pnpm publish --access public"
17
- },
18
- "publishConfig": {
19
- "access": "public"
20
- },
21
- "dependencies": {
22
- "@mdi/svg": "^7.4.47"
23
- },
24
- "devDependencies": {
25
- "@iconify/tools": "4.0.6",
26
- "@iconify/types": "^2.0.0",
27
- "iconify": "^1.4.0"
28
- },
29
- "files": [
30
- "lib",
31
- "src/**/*.js",
32
- "!src/**/*.spec.js"
33
- ],
34
5
  "exports": {
35
6
  "./package.json": "./package.json",
36
7
  "./ui.json": "./lib/base.json",
@@ -42,5 +13,26 @@
42
13
  "./app.json": "./lib/app.json",
43
14
  ".": "./lib/base.json",
44
15
  "./utils": "./src/convert.js"
45
- }
16
+ },
17
+ "description": "A minimal icon set for use in applications.",
18
+ "files": [
19
+ "lib/**/*",
20
+ "README.md",
21
+ "package.json"
22
+ ],
23
+ "license": "MIT",
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "devDependencies": {
28
+ "@rokkit/cli": "link:@rokkit/cli"
29
+ },
30
+ "scripts": {
31
+ "format": "prettier --write .",
32
+ "lint": "eslint --fix .",
33
+ "build": "rokkit-cli build",
34
+ "latest": "pnpm upgrade --latest",
35
+ "release": "pnpm publish --access public"
36
+ },
37
+ "type": "module"
46
38
  }
package/src/convert.js DELETED
@@ -1,109 +0,0 @@
1
- import {
2
- importDirectory,
3
- cleanupSVG,
4
- runSVGO,
5
- parseColors,
6
- isEmptyColor,
7
- exportJSONPackage
8
- } from '@iconify/tools'
9
- import fs from 'fs'
10
- import { pick } from 'ramda'
11
- import pkg from '../package.json' with { type: 'json' }
12
-
13
- const PACKAGE_INFO = {
14
- namespace: '@rokkit',
15
- version: pkg.version,
16
- homepage: 'https://github.com/jerrythomas/rokkit'
17
- }
18
- /**
19
- * Clean up and optimise SVG icon
20
- *
21
- * @param {string} svg SVG code
22
- * @param {boolean} color True if color should be preserved
23
- */
24
- export function cleanAndOptimizeIcon(svg, color) {
25
- // Clean up icon code
26
- cleanupSVG(svg)
27
-
28
- if (!color) {
29
- parseColors(svg, {
30
- defaultColor: 'currentColor',
31
- callback: (_, colorStr, value) => {
32
- return !value || isEmptyColor(value) ? colorStr : 'currentColor'
33
- }
34
- })
35
- }
36
-
37
- // Optimise
38
- runSVGO(svg)
39
- }
40
-
41
- /**
42
- * Process icons
43
- *
44
- * @param {IconifyTools} iconSet Icon set
45
- * @param {boolean} color True if color should be preserved
46
- */
47
- export function processIcons(iconSet, color) {
48
- iconSet.forEach((name) => {
49
- const svg = iconSet.toSVG(name)
50
-
51
- try {
52
- cleanAndOptimizeIcon(svg, color)
53
- } catch (err) {
54
- // eslint-disable-next-line no-console
55
- console.error(`Error parsing ${name}: ${err.reason}`)
56
- iconSet.remove(name)
57
- return
58
- }
59
-
60
- iconSet.fromSVG(name, svg)
61
- })
62
- }
63
-
64
- /**
65
- * Convert individual icons into a json bundle
66
- *
67
- * @param {string} folder Folder with icons
68
- * @param {string} prefix Prefix for icon set
69
- * @param {boolean} color True if color should be preserved
70
- */
71
- export async function bundle(folder, prefix, color = false, location = '.') {
72
- const iconSet = await importDirectory(folder, { prefix })
73
-
74
- // Validate, clean up, fix palette and optimise
75
- processIcons(iconSet, color)
76
-
77
- // Export
78
- const collection = JSON.stringify(iconSet.export(), null, 2)
79
- fs.writeFileSync(`${location}/${prefix}.json`, collection, 'utf8')
80
- return iconSet
81
- }
82
- /**
83
- * Convert icons
84
- *
85
- * @param {string} folder Folder with icons
86
- * @param {string} prefix Prefix for icon set
87
- * @param {boolean} color True if color should be preserved
88
- */
89
- export async function convert(folder, prefix, color = false) {
90
- // Import icons
91
- // const iconSet = await importDirectory(folder, { prefix })
92
-
93
- // // Validate, clean up, fix palette and optimise
94
- // processIcons(iconSet, color)
95
-
96
- // // Export
97
- // const collection = JSON.stringify(iconSet.export(), null, 2)
98
- // fs.writeFileSync(`./lib/${prefix}.json`, collection, 'utf8')
99
- const iconSet = await bundle(folder, prefix, color, './lib')
100
- const target = `./lib/${iconSet.prefix}`
101
- await exportJSONPackage(iconSet, {
102
- target,
103
- package: {
104
- name: `${PACKAGE_INFO.namespace}/${iconSet.prefix}`,
105
- ...pick(['version', 'homepage'], PACKAGE_INFO)
106
- },
107
- cleanup: true
108
- })
109
- }
package/src/index.js DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env node
2
- import sade from 'sade'
3
- import { convert } from './convert.js'
4
-
5
- function main() {
6
- const groups = ['auth', 'app', 'base', 'light', 'solid', 'twotone', 'components']
7
-
8
- for (const group of groups) {
9
- convert(`./src/${group}`, group, group === 'auth')
10
- }
11
- }
12
-
13
- const prog = sade('bundle', true)
14
- prog.action(() => main())
15
-
16
- prog.parse(process.argv)