@grundtone/icons 2.0.1
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/dist/index.d.mts +62 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +58 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +47 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
interface IconDefinition {
|
|
2
|
+
body: string;
|
|
3
|
+
viewBox: string;
|
|
4
|
+
category?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const iconRegistry: {
|
|
7
|
+
readonly check: {
|
|
8
|
+
readonly body: "<path d=\"M20 6L9 17l-5-5\"/>";
|
|
9
|
+
readonly viewBox: "0 0 24 24";
|
|
10
|
+
readonly category: "action";
|
|
11
|
+
};
|
|
12
|
+
readonly close: {
|
|
13
|
+
readonly body: "<path d=\"M18 6L6 18M6 6l12 12\"/>";
|
|
14
|
+
readonly viewBox: "0 0 24 24";
|
|
15
|
+
readonly category: "action";
|
|
16
|
+
};
|
|
17
|
+
readonly search: {
|
|
18
|
+
readonly body: "<circle cx=\"11\" cy=\"11\" r=\"8\"/> <path d=\"M21 21l-4.35-4.35\"/>";
|
|
19
|
+
readonly viewBox: "0 0 24 24";
|
|
20
|
+
readonly category: "action";
|
|
21
|
+
};
|
|
22
|
+
readonly 'arrow-left': {
|
|
23
|
+
readonly body: "<path d=\"M19 12H5M12 19l-7-7 7-7\"/>";
|
|
24
|
+
readonly viewBox: "0 0 24 24";
|
|
25
|
+
readonly category: "navigation";
|
|
26
|
+
};
|
|
27
|
+
readonly 'arrow-right': {
|
|
28
|
+
readonly body: "<path d=\"M5 12h14M12 5l7 7-7 7\"/>";
|
|
29
|
+
readonly viewBox: "0 0 24 24";
|
|
30
|
+
readonly category: "navigation";
|
|
31
|
+
};
|
|
32
|
+
readonly menu: {
|
|
33
|
+
readonly body: "<path d=\"M4 6h16M4 12h16M4 18h16\"/>";
|
|
34
|
+
readonly viewBox: "0 0 24 24";
|
|
35
|
+
readonly category: "navigation";
|
|
36
|
+
};
|
|
37
|
+
readonly 'alert-circle': {
|
|
38
|
+
readonly body: "<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"M12 8v4M12 16h.01\"/>";
|
|
39
|
+
readonly viewBox: "0 0 24 24";
|
|
40
|
+
readonly category: "status";
|
|
41
|
+
};
|
|
42
|
+
readonly 'alert-triangle': {
|
|
43
|
+
readonly body: "<path d=\"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"/> <path d=\"M12 9v4M12 17h.01\"/>";
|
|
44
|
+
readonly viewBox: "0 0 24 24";
|
|
45
|
+
readonly category: "status";
|
|
46
|
+
};
|
|
47
|
+
readonly 'check-circle': {
|
|
48
|
+
readonly body: "<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"m9 12 2 2 4-4\"/>";
|
|
49
|
+
readonly viewBox: "0 0 24 24";
|
|
50
|
+
readonly category: "status";
|
|
51
|
+
};
|
|
52
|
+
readonly 'info-circle': {
|
|
53
|
+
readonly body: "<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"M12 16v-4M12 8h.01\"/>";
|
|
54
|
+
readonly viewBox: "0 0 24 24";
|
|
55
|
+
readonly category: "status";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
type IconName = keyof typeof iconRegistry;
|
|
59
|
+
declare const iconCategories: readonly ["action", "navigation", "status"];
|
|
60
|
+
type IconCategory = (typeof iconCategories)[number];
|
|
61
|
+
|
|
62
|
+
export { type IconCategory, type IconDefinition, type IconName, iconCategories, iconRegistry };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
interface IconDefinition {
|
|
2
|
+
body: string;
|
|
3
|
+
viewBox: string;
|
|
4
|
+
category?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const iconRegistry: {
|
|
7
|
+
readonly check: {
|
|
8
|
+
readonly body: "<path d=\"M20 6L9 17l-5-5\"/>";
|
|
9
|
+
readonly viewBox: "0 0 24 24";
|
|
10
|
+
readonly category: "action";
|
|
11
|
+
};
|
|
12
|
+
readonly close: {
|
|
13
|
+
readonly body: "<path d=\"M18 6L6 18M6 6l12 12\"/>";
|
|
14
|
+
readonly viewBox: "0 0 24 24";
|
|
15
|
+
readonly category: "action";
|
|
16
|
+
};
|
|
17
|
+
readonly search: {
|
|
18
|
+
readonly body: "<circle cx=\"11\" cy=\"11\" r=\"8\"/> <path d=\"M21 21l-4.35-4.35\"/>";
|
|
19
|
+
readonly viewBox: "0 0 24 24";
|
|
20
|
+
readonly category: "action";
|
|
21
|
+
};
|
|
22
|
+
readonly 'arrow-left': {
|
|
23
|
+
readonly body: "<path d=\"M19 12H5M12 19l-7-7 7-7\"/>";
|
|
24
|
+
readonly viewBox: "0 0 24 24";
|
|
25
|
+
readonly category: "navigation";
|
|
26
|
+
};
|
|
27
|
+
readonly 'arrow-right': {
|
|
28
|
+
readonly body: "<path d=\"M5 12h14M12 5l7 7-7 7\"/>";
|
|
29
|
+
readonly viewBox: "0 0 24 24";
|
|
30
|
+
readonly category: "navigation";
|
|
31
|
+
};
|
|
32
|
+
readonly menu: {
|
|
33
|
+
readonly body: "<path d=\"M4 6h16M4 12h16M4 18h16\"/>";
|
|
34
|
+
readonly viewBox: "0 0 24 24";
|
|
35
|
+
readonly category: "navigation";
|
|
36
|
+
};
|
|
37
|
+
readonly 'alert-circle': {
|
|
38
|
+
readonly body: "<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"M12 8v4M12 16h.01\"/>";
|
|
39
|
+
readonly viewBox: "0 0 24 24";
|
|
40
|
+
readonly category: "status";
|
|
41
|
+
};
|
|
42
|
+
readonly 'alert-triangle': {
|
|
43
|
+
readonly body: "<path d=\"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"/> <path d=\"M12 9v4M12 17h.01\"/>";
|
|
44
|
+
readonly viewBox: "0 0 24 24";
|
|
45
|
+
readonly category: "status";
|
|
46
|
+
};
|
|
47
|
+
readonly 'check-circle': {
|
|
48
|
+
readonly body: "<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"m9 12 2 2 4-4\"/>";
|
|
49
|
+
readonly viewBox: "0 0 24 24";
|
|
50
|
+
readonly category: "status";
|
|
51
|
+
};
|
|
52
|
+
readonly 'info-circle': {
|
|
53
|
+
readonly body: "<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"M12 16v-4M12 8h.01\"/>";
|
|
54
|
+
readonly viewBox: "0 0 24 24";
|
|
55
|
+
readonly category: "status";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
type IconName = keyof typeof iconRegistry;
|
|
59
|
+
declare const iconCategories: readonly ["action", "navigation", "status"];
|
|
60
|
+
type IconCategory = (typeof iconCategories)[number];
|
|
61
|
+
|
|
62
|
+
export { type IconCategory, type IconDefinition, type IconName, iconCategories, iconRegistry };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/icons/registry.generated.ts
|
|
4
|
+
var iconRegistry = {
|
|
5
|
+
check: {
|
|
6
|
+
body: '<path d="M20 6L9 17l-5-5"/>',
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
category: "action"
|
|
9
|
+
},
|
|
10
|
+
close: {
|
|
11
|
+
body: '<path d="M18 6L6 18M6 6l12 12"/>',
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
category: "action"
|
|
14
|
+
},
|
|
15
|
+
search: {
|
|
16
|
+
body: '<circle cx="11" cy="11" r="8"/> <path d="M21 21l-4.35-4.35"/>',
|
|
17
|
+
viewBox: "0 0 24 24",
|
|
18
|
+
category: "action"
|
|
19
|
+
},
|
|
20
|
+
"arrow-left": {
|
|
21
|
+
body: '<path d="M19 12H5M12 19l-7-7 7-7"/>',
|
|
22
|
+
viewBox: "0 0 24 24",
|
|
23
|
+
category: "navigation"
|
|
24
|
+
},
|
|
25
|
+
"arrow-right": {
|
|
26
|
+
body: '<path d="M5 12h14M12 5l7 7-7 7"/>',
|
|
27
|
+
viewBox: "0 0 24 24",
|
|
28
|
+
category: "navigation"
|
|
29
|
+
},
|
|
30
|
+
menu: {
|
|
31
|
+
body: '<path d="M4 6h16M4 12h16M4 18h16"/>',
|
|
32
|
+
viewBox: "0 0 24 24",
|
|
33
|
+
category: "navigation"
|
|
34
|
+
},
|
|
35
|
+
"alert-circle": {
|
|
36
|
+
body: '<circle cx="12" cy="12" r="10"/> <path d="M12 8v4M12 16h.01"/>',
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
category: "status"
|
|
39
|
+
},
|
|
40
|
+
"alert-triangle": {
|
|
41
|
+
body: '<path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/> <path d="M12 9v4M12 17h.01"/>',
|
|
42
|
+
viewBox: "0 0 24 24",
|
|
43
|
+
category: "status"
|
|
44
|
+
},
|
|
45
|
+
"check-circle": {
|
|
46
|
+
body: '<circle cx="12" cy="12" r="10"/> <path d="m9 12 2 2 4-4"/>',
|
|
47
|
+
viewBox: "0 0 24 24",
|
|
48
|
+
category: "status"
|
|
49
|
+
},
|
|
50
|
+
"info-circle": {
|
|
51
|
+
body: '<circle cx="12" cy="12" r="10"/> <path d="M12 16v-4M12 8h.01"/>',
|
|
52
|
+
viewBox: "0 0 24 24",
|
|
53
|
+
category: "status"
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var iconCategories = ["action", "navigation", "status"];
|
|
57
|
+
|
|
58
|
+
exports.iconCategories = iconCategories;
|
|
59
|
+
exports.iconRegistry = iconRegistry;
|
|
60
|
+
//# sourceMappingURL=index.js.map
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/icons/registry.generated.ts"],"names":[],"mappings":";;;AASO,IAAM,YAAA,GAAe;AAAA,EAC1B,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,6BAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,kCAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,+DAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,YAAA,EAAc;AAAA,IACZ,IAAA,EAAM,qCAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,mCAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,qCAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,cAAA,EAAgB;AAAA,IACd,IAAA,EAAM,gEAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,gBAAA,EAAkB;AAAA,IAChB,IAAA,EAAM,oIAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,cAAA,EAAgB;AAAA,IACd,IAAA,EAAM,4DAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,iEAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA;AAEd;AAIO,IAAM,cAAA,GAAiB,CAAC,QAAA,EAAU,YAAA,EAAc,QAAQ","file":"index.js","sourcesContent":["// AUTO-GENERATED — do not edit. Source: packages/icons/src/icons/svg/**/*.svg\n// Run: pnpm generate:icons\n\nexport interface IconDefinition {\n body: string;\n viewBox: string;\n category?: string;\n}\n\nexport const iconRegistry = {\n check: {\n body: '<path d=\"M20 6L9 17l-5-5\"/>',\n viewBox: '0 0 24 24',\n category: 'action',\n },\n close: {\n body: '<path d=\"M18 6L6 18M6 6l12 12\"/>',\n viewBox: '0 0 24 24',\n category: 'action',\n },\n search: {\n body: '<circle cx=\"11\" cy=\"11\" r=\"8\"/> <path d=\"M21 21l-4.35-4.35\"/>',\n viewBox: '0 0 24 24',\n category: 'action',\n },\n 'arrow-left': {\n body: '<path d=\"M19 12H5M12 19l-7-7 7-7\"/>',\n viewBox: '0 0 24 24',\n category: 'navigation',\n },\n 'arrow-right': {\n body: '<path d=\"M5 12h14M12 5l7 7-7 7\"/>',\n viewBox: '0 0 24 24',\n category: 'navigation',\n },\n menu: {\n body: '<path d=\"M4 6h16M4 12h16M4 18h16\"/>',\n viewBox: '0 0 24 24',\n category: 'navigation',\n },\n 'alert-circle': {\n body: '<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"M12 8v4M12 16h.01\"/>',\n viewBox: '0 0 24 24',\n category: 'status',\n },\n 'alert-triangle': {\n body: '<path d=\"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"/> <path d=\"M12 9v4M12 17h.01\"/>',\n viewBox: '0 0 24 24',\n category: 'status',\n },\n 'check-circle': {\n body: '<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"m9 12 2 2 4-4\"/>',\n viewBox: '0 0 24 24',\n category: 'status',\n },\n 'info-circle': {\n body: '<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"M12 16v-4M12 8h.01\"/>',\n viewBox: '0 0 24 24',\n category: 'status',\n },\n} as const;\n\nexport type IconName = keyof typeof iconRegistry;\n\nexport const iconCategories = ['action', 'navigation', 'status'] as const;\n\nexport type IconCategory = (typeof iconCategories)[number];\n"]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// src/icons/registry.generated.ts
|
|
2
|
+
var iconRegistry = {
|
|
3
|
+
check: {
|
|
4
|
+
body: '<path d="M20 6L9 17l-5-5"/>',
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
category: "action"
|
|
7
|
+
},
|
|
8
|
+
close: {
|
|
9
|
+
body: '<path d="M18 6L6 18M6 6l12 12"/>',
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
category: "action"
|
|
12
|
+
},
|
|
13
|
+
search: {
|
|
14
|
+
body: '<circle cx="11" cy="11" r="8"/> <path d="M21 21l-4.35-4.35"/>',
|
|
15
|
+
viewBox: "0 0 24 24",
|
|
16
|
+
category: "action"
|
|
17
|
+
},
|
|
18
|
+
"arrow-left": {
|
|
19
|
+
body: '<path d="M19 12H5M12 19l-7-7 7-7"/>',
|
|
20
|
+
viewBox: "0 0 24 24",
|
|
21
|
+
category: "navigation"
|
|
22
|
+
},
|
|
23
|
+
"arrow-right": {
|
|
24
|
+
body: '<path d="M5 12h14M12 5l7 7-7 7"/>',
|
|
25
|
+
viewBox: "0 0 24 24",
|
|
26
|
+
category: "navigation"
|
|
27
|
+
},
|
|
28
|
+
menu: {
|
|
29
|
+
body: '<path d="M4 6h16M4 12h16M4 18h16"/>',
|
|
30
|
+
viewBox: "0 0 24 24",
|
|
31
|
+
category: "navigation"
|
|
32
|
+
},
|
|
33
|
+
"alert-circle": {
|
|
34
|
+
body: '<circle cx="12" cy="12" r="10"/> <path d="M12 8v4M12 16h.01"/>',
|
|
35
|
+
viewBox: "0 0 24 24",
|
|
36
|
+
category: "status"
|
|
37
|
+
},
|
|
38
|
+
"alert-triangle": {
|
|
39
|
+
body: '<path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/> <path d="M12 9v4M12 17h.01"/>',
|
|
40
|
+
viewBox: "0 0 24 24",
|
|
41
|
+
category: "status"
|
|
42
|
+
},
|
|
43
|
+
"check-circle": {
|
|
44
|
+
body: '<circle cx="12" cy="12" r="10"/> <path d="m9 12 2 2 4-4"/>',
|
|
45
|
+
viewBox: "0 0 24 24",
|
|
46
|
+
category: "status"
|
|
47
|
+
},
|
|
48
|
+
"info-circle": {
|
|
49
|
+
body: '<circle cx="12" cy="12" r="10"/> <path d="M12 16v-4M12 8h.01"/>',
|
|
50
|
+
viewBox: "0 0 24 24",
|
|
51
|
+
category: "status"
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var iconCategories = ["action", "navigation", "status"];
|
|
55
|
+
|
|
56
|
+
export { iconCategories, iconRegistry };
|
|
57
|
+
//# sourceMappingURL=index.mjs.map
|
|
58
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/icons/registry.generated.ts"],"names":[],"mappings":";AASO,IAAM,YAAA,GAAe;AAAA,EAC1B,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,6BAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,kCAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,+DAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,YAAA,EAAc;AAAA,IACZ,IAAA,EAAM,qCAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,mCAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,qCAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,cAAA,EAAgB;AAAA,IACd,IAAA,EAAM,gEAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,gBAAA,EAAkB;AAAA,IAChB,IAAA,EAAM,oIAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,cAAA,EAAgB;AAAA,IACd,IAAA,EAAM,4DAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,iEAAA;AAAA,IACN,OAAA,EAAS,WAAA;AAAA,IACT,QAAA,EAAU;AAAA;AAEd;AAIO,IAAM,cAAA,GAAiB,CAAC,QAAA,EAAU,YAAA,EAAc,QAAQ","file":"index.mjs","sourcesContent":["// AUTO-GENERATED — do not edit. Source: packages/icons/src/icons/svg/**/*.svg\n// Run: pnpm generate:icons\n\nexport interface IconDefinition {\n body: string;\n viewBox: string;\n category?: string;\n}\n\nexport const iconRegistry = {\n check: {\n body: '<path d=\"M20 6L9 17l-5-5\"/>',\n viewBox: '0 0 24 24',\n category: 'action',\n },\n close: {\n body: '<path d=\"M18 6L6 18M6 6l12 12\"/>',\n viewBox: '0 0 24 24',\n category: 'action',\n },\n search: {\n body: '<circle cx=\"11\" cy=\"11\" r=\"8\"/> <path d=\"M21 21l-4.35-4.35\"/>',\n viewBox: '0 0 24 24',\n category: 'action',\n },\n 'arrow-left': {\n body: '<path d=\"M19 12H5M12 19l-7-7 7-7\"/>',\n viewBox: '0 0 24 24',\n category: 'navigation',\n },\n 'arrow-right': {\n body: '<path d=\"M5 12h14M12 5l7 7-7 7\"/>',\n viewBox: '0 0 24 24',\n category: 'navigation',\n },\n menu: {\n body: '<path d=\"M4 6h16M4 12h16M4 18h16\"/>',\n viewBox: '0 0 24 24',\n category: 'navigation',\n },\n 'alert-circle': {\n body: '<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"M12 8v4M12 16h.01\"/>',\n viewBox: '0 0 24 24',\n category: 'status',\n },\n 'alert-triangle': {\n body: '<path d=\"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"/> <path d=\"M12 9v4M12 17h.01\"/>',\n viewBox: '0 0 24 24',\n category: 'status',\n },\n 'check-circle': {\n body: '<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"m9 12 2 2 4-4\"/>',\n viewBox: '0 0 24 24',\n category: 'status',\n },\n 'info-circle': {\n body: '<circle cx=\"12\" cy=\"12\" r=\"10\"/> <path d=\"M12 16v-4M12 8h.01\"/>',\n viewBox: '0 0 24 24',\n category: 'status',\n },\n} as const;\n\nexport type IconName = keyof typeof iconRegistry;\n\nexport const iconCategories = ['action', 'navigation', 'status'] as const;\n\nexport type IconCategory = (typeof iconCategories)[number];\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@grundtone/icons",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Icon registry and SVG data for Grundtone",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"private": false,
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.mjs",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"files": [
|
|
12
|
+
"dist/**"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.mjs",
|
|
18
|
+
"require": "./dist/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/grundtone/grundtone.git",
|
|
24
|
+
"directory": "packages/icons"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"generate:icons": "tsx scripts/generate-icon-registry.ts",
|
|
31
|
+
"build": "pnpm generate:icons && tsup",
|
|
32
|
+
"dev": "tsup --watch",
|
|
33
|
+
"lint": "eslint src",
|
|
34
|
+
"test": "vitest --passWithNoTests",
|
|
35
|
+
"clean": "rimraf .turbo node_modules dist",
|
|
36
|
+
"prepublishOnly": "test -d dist || pnpm run build"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/node": "^20.17.45",
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
41
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
42
|
+
"eslint": "^8.56.0",
|
|
43
|
+
"rimraf": "^5.0.5",
|
|
44
|
+
"tsup": "^8.0.2",
|
|
45
|
+
"tsx": "^4.19.4"
|
|
46
|
+
}
|
|
47
|
+
}
|