@zoobzio/icons 0.0.0-stage → 0.0.11

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.
@@ -0,0 +1,13 @@
1
+ {
2
+ "files": [
3
+ "index.mjs",
4
+ "index.d.mts",
5
+ "config.mjs",
6
+ "config.d.mts",
7
+ "sheet.mjs",
8
+ "sheet.d.mts",
9
+ "sets.mjs",
10
+ "sets.d.mts",
11
+ "sprite.svg"
12
+ ]
13
+ }
@@ -0,0 +1,8 @@
1
+ // Generated by @icon-sheets/kit from "foundation". Do not edit by hand.
2
+ import type { IconifyIcon, Identity } from "icon-sheets";
3
+ import type { IconSheetsConfig } from "icon-sheets/config";
4
+ import type { Alias } from "./index.mjs";
5
+ export type Contract = Identity & { icons: Record<Alias, IconifyIcon> };
6
+ export declare const contract: Contract;
7
+ declare const config: IconSheetsConfig<Contract>;
8
+ export default config;
@@ -0,0 +1,178 @@
1
+ // Generated by @icon-sheets/kit from "foundation". Do not edit by hand.
2
+ export const contract = {
3
+ "id": "foundation",
4
+ "name": "Foundation",
5
+ "icons": {
6
+ "actions": {
7
+ "width": 24,
8
+ "height": 24,
9
+ "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"19\" cy=\"12\" r=\"1\"/><circle cx=\"5\" cy=\"12\" r=\"1\"/></g>"
10
+ },
11
+ "add": {
12
+ "width": 24,
13
+ "height": 24,
14
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14m-7-7v14\"/>"
15
+ },
16
+ "blockquote": {
17
+ "width": 24,
18
+ "height": 24,
19
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M17 5H3m18 7H8m13 7H8m-5-7v7\"/>"
20
+ },
21
+ "bold": {
22
+ "width": 24,
23
+ "height": 24,
24
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8\"/>"
25
+ },
26
+ "bullet-list": {
27
+ "width": 24,
28
+ "height": 24,
29
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13\"/>"
30
+ },
31
+ "calendar": {
32
+ "width": 24,
33
+ "height": 24,
34
+ "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M8 2v3m8-3v3\"/><rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\"/><path d=\"M3 9h18\"/></g>"
35
+ },
36
+ "check": {
37
+ "width": 24,
38
+ "height": 24,
39
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20 6L9 17l-5-5\"/>"
40
+ },
41
+ "close": {
42
+ "width": 24,
43
+ "height": 24,
44
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M18 6L6 18M6 6l12 12\"/>"
45
+ },
46
+ "code": {
47
+ "width": 24,
48
+ "height": 24,
49
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m16 18l6-6l-6-6M8 6l-6 6l6 6\"/>"
50
+ },
51
+ "code-block": {
52
+ "width": 24,
53
+ "height": 24,
54
+ "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"m10 9l-3 3l3 3m4 0l3-3l-3-3\"/><rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\"/></g>"
55
+ },
56
+ "columns": {
57
+ "width": 24,
58
+ "height": 24,
59
+ "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\"/><path d=\"M9 3v18m6-18v18\"/></g>"
60
+ },
61
+ "drag": {
62
+ "width": 24,
63
+ "height": 24,
64
+ "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"9\" cy=\"12\" r=\"1\"/><circle cx=\"9\" cy=\"5\" r=\"1\"/><circle cx=\"9\" cy=\"19\" r=\"1\"/><circle cx=\"15\" cy=\"12\" r=\"1\"/><circle cx=\"15\" cy=\"5\" r=\"1\"/><circle cx=\"15\" cy=\"19\" r=\"1\"/></g>"
65
+ },
66
+ "expand": {
67
+ "width": 24,
68
+ "height": 24,
69
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"/>"
70
+ },
71
+ "filter": {
72
+ "width": 24,
73
+ "height": 24,
74
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z\"/>"
75
+ },
76
+ "first": {
77
+ "width": 24,
78
+ "height": 24,
79
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m11 17l-5-5l5-5m7 10l-5-5l5-5\"/>"
80
+ },
81
+ "folder": {
82
+ "width": 24,
83
+ "height": 24,
84
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\"/>"
85
+ },
86
+ "heading": {
87
+ "width": 24,
88
+ "height": 24,
89
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 12h12M6 20V4m12 16V4\"/>"
90
+ },
91
+ "italic": {
92
+ "width": 24,
93
+ "height": 24,
94
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M19 4h-9m4 16H5M15 4L9 20\"/>"
95
+ },
96
+ "keywords": {
97
+ "width": 24,
98
+ "height": 24,
99
+ "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1zM2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193\"/><circle cx=\"10.5\" cy=\"6.5\" r=\".5\" fill=\"currentColor\"/></g>"
100
+ },
101
+ "last": {
102
+ "width": 24,
103
+ "height": 24,
104
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 17l5-5l-5-5m7 10l5-5l-5-5\"/>"
105
+ },
106
+ "next": {
107
+ "width": 24,
108
+ "height": 24,
109
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m9 18l6-6l-6-6\"/>"
110
+ },
111
+ "ordered-list": {
112
+ "width": 24,
113
+ "height": 24,
114
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M11 5h10m-10 7h10m-10 7h10M4 4h1v5M4 9h2m.5 11H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02\"/>"
115
+ },
116
+ "prev": {
117
+ "width": 24,
118
+ "height": 24,
119
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m15 18l-6-6l6-6\"/>"
120
+ },
121
+ "redo": {
122
+ "width": 24,
123
+ "height": 24,
124
+ "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"m15 14l5-5l-5-5\"/><path d=\"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13\"/></g>"
125
+ },
126
+ "refresh": {
127
+ "width": 24,
128
+ "height": 24,
129
+ "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8\"/><path d=\"M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16\"/><path d=\"M8 16H3v5\"/></g>"
130
+ },
131
+ "remove": {
132
+ "width": 24,
133
+ "height": 24,
134
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M18 6L6 18M6 6l12 12\"/>"
135
+ },
136
+ "rule": {
137
+ "width": 24,
138
+ "height": 24,
139
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14\"/>"
140
+ },
141
+ "search": {
142
+ "width": 24,
143
+ "height": 24,
144
+ "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"m21 21l-4.34-4.34\"/><circle cx=\"11\" cy=\"11\" r=\"8\"/></g>"
145
+ },
146
+ "sort-asc": {
147
+ "width": 24,
148
+ "height": 24,
149
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m5 12l7-7l7 7m-7 7V5\"/>"
150
+ },
151
+ "sort-desc": {
152
+ "width": 24,
153
+ "height": 24,
154
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 5v14m7-7l-7 7l-7-7\"/>"
155
+ },
156
+ "strike": {
157
+ "width": 24,
158
+ "height": 24,
159
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M16 4H9a3 3 0 0 0-2.83 4M14 12a4 4 0 0 1 0 8H6m-2-8h16\"/>"
160
+ },
161
+ "top": {
162
+ "width": 24,
163
+ "height": 24,
164
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m5 12l7-7l7 7m-7 7V5\"/>"
165
+ },
166
+ "underline": {
167
+ "width": 24,
168
+ "height": 24,
169
+ "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 4v6a6 6 0 0 0 12 0V4M4 20h16\"/>"
170
+ },
171
+ "undo": {
172
+ "width": 24,
173
+ "height": 24,
174
+ "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M9 14L4 9l5-5\"/><path d=\"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11\"/></g>"
175
+ }
176
+ }
177
+ };
178
+ export default { contract };
@@ -0,0 +1,42 @@
1
+ // Generated by @icon-sheets/kit from "foundation". Do not edit by hand.
2
+ export type Alias =
3
+ | "actions"
4
+ | "add"
5
+ | "blockquote"
6
+ | "bold"
7
+ | "bullet-list"
8
+ | "calendar"
9
+ | "check"
10
+ | "close"
11
+ | "code"
12
+ | "code-block"
13
+ | "columns"
14
+ | "drag"
15
+ | "expand"
16
+ | "filter"
17
+ | "first"
18
+ | "folder"
19
+ | "heading"
20
+ | "italic"
21
+ | "keywords"
22
+ | "last"
23
+ | "next"
24
+ | "ordered-list"
25
+ | "prev"
26
+ | "redo"
27
+ | "refresh"
28
+ | "remove"
29
+ | "rule"
30
+ | "search"
31
+ | "sort-asc"
32
+ | "sort-desc"
33
+ | "strike"
34
+ | "top"
35
+ | "underline"
36
+ | "undo";
37
+ export type SetId = never;
38
+ export declare const prefix: "";
39
+ export declare const aliases: readonly Alias[];
40
+ export declare const setIds: readonly SetId[];
41
+ export declare const isAlias: (value: unknown) => value is Alias;
42
+ export declare const href: <A extends Alias>(alias: A) => `#${A}`;
@@ -0,0 +1,42 @@
1
+ // Generated by @icon-sheets/kit from "foundation". Do not edit by hand.
2
+ export const prefix = "";
3
+ export const aliases = Object.freeze([
4
+ "actions",
5
+ "add",
6
+ "blockquote",
7
+ "bold",
8
+ "bullet-list",
9
+ "calendar",
10
+ "check",
11
+ "close",
12
+ "code",
13
+ "code-block",
14
+ "columns",
15
+ "drag",
16
+ "expand",
17
+ "filter",
18
+ "first",
19
+ "folder",
20
+ "heading",
21
+ "italic",
22
+ "keywords",
23
+ "last",
24
+ "next",
25
+ "ordered-list",
26
+ "prev",
27
+ "redo",
28
+ "refresh",
29
+ "remove",
30
+ "rule",
31
+ "search",
32
+ "sort-asc",
33
+ "sort-desc",
34
+ "strike",
35
+ "top",
36
+ "underline",
37
+ "undo"
38
+ ]);
39
+ export const setIds = Object.freeze([]);
40
+ const known = new Set(aliases);
41
+ export const isAlias = (value) => typeof value === "string" && known.has(value);
42
+ export const href = (alias) => `#${prefix}${alias}`;
@@ -0,0 +1,5 @@
1
+ // Generated by @icon-sheets/kit from "foundation". Do not edit by hand.
2
+ import type { Set as IconSet } from "icon-sheets";
3
+ import type { Alias, SetId } from "./index.mjs";
4
+ export declare const sets: { readonly [K in SetId]: IconSet<Alias> };
5
+ export default sets;
@@ -0,0 +1,3 @@
1
+ // Generated by @icon-sheets/kit from "foundation". Do not edit by hand.
2
+ export const sets = Object.freeze({});
3
+ export default sets;
@@ -0,0 +1,5 @@
1
+ // Generated by @icon-sheets/kit from "foundation". Do not edit by hand.
2
+ import type { SetId } from "./index.mjs";
3
+ export declare const sheets: { readonly [K in SetId]: string };
4
+ declare const sheet: string;
5
+ export default sheet;
@@ -0,0 +1,3 @@
1
+ // Generated by @icon-sheets/kit from "foundation". Do not edit by hand.
2
+ export const sheets = Object.freeze({});
3
+ export default "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"display:none\"><symbol id=\"actions\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"19\" cy=\"12\" r=\"1\"/><circle cx=\"5\" cy=\"12\" r=\"1\"/></g></symbol><symbol id=\"add\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14m-7-7v14\"/></symbol><symbol id=\"blockquote\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M17 5H3m18 7H8m13 7H8m-5-7v7\"/></symbol><symbol id=\"bold\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8\"/></symbol><symbol id=\"bullet-list\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13\"/></symbol><symbol id=\"calendar\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M8 2v3m8-3v3\"/><rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\"/><path d=\"M3 9h18\"/></g></symbol><symbol id=\"check\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20 6L9 17l-5-5\"/></symbol><symbol id=\"close\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M18 6L6 18M6 6l12 12\"/></symbol><symbol id=\"code\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m16 18l6-6l-6-6M8 6l-6 6l6 6\"/></symbol><symbol id=\"code-block\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"m10 9l-3 3l3 3m4 0l3-3l-3-3\"/><rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\"/></g></symbol><symbol id=\"columns\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\"/><path d=\"M9 3v18m6-18v18\"/></g></symbol><symbol id=\"drag\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"9\" cy=\"12\" r=\"1\"/><circle cx=\"9\" cy=\"5\" r=\"1\"/><circle cx=\"9\" cy=\"19\" r=\"1\"/><circle cx=\"15\" cy=\"12\" r=\"1\"/><circle cx=\"15\" cy=\"5\" r=\"1\"/><circle cx=\"15\" cy=\"19\" r=\"1\"/></g></symbol><symbol id=\"expand\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"/></symbol><symbol id=\"filter\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z\"/></symbol><symbol id=\"first\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m11 17l-5-5l5-5m7 10l-5-5l5-5\"/></symbol><symbol id=\"folder\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\"/></symbol><symbol id=\"heading\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 12h12M6 20V4m12 16V4\"/></symbol><symbol id=\"italic\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M19 4h-9m4 16H5M15 4L9 20\"/></symbol><symbol id=\"keywords\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1zM2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193\"/><circle cx=\"10.5\" cy=\"6.5\" r=\".5\" fill=\"currentColor\"/></g></symbol><symbol id=\"last\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 17l5-5l-5-5m7 10l5-5l-5-5\"/></symbol><symbol id=\"next\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m9 18l6-6l-6-6\"/></symbol><symbol id=\"ordered-list\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M11 5h10m-10 7h10m-10 7h10M4 4h1v5M4 9h2m.5 11H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02\"/></symbol><symbol id=\"prev\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m15 18l-6-6l6-6\"/></symbol><symbol id=\"redo\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"m15 14l5-5l-5-5\"/><path d=\"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13\"/></g></symbol><symbol id=\"refresh\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8\"/><path d=\"M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16\"/><path d=\"M8 16H3v5\"/></g></symbol><symbol id=\"remove\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M18 6L6 18M6 6l12 12\"/></symbol><symbol id=\"rule\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14\"/></symbol><symbol id=\"search\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"m21 21l-4.34-4.34\"/><circle cx=\"11\" cy=\"11\" r=\"8\"/></g></symbol><symbol id=\"sort-asc\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m5 12l7-7l7 7m-7 7V5\"/></symbol><symbol id=\"sort-desc\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 5v14m7-7l-7 7l-7-7\"/></symbol><symbol id=\"strike\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M16 4H9a3 3 0 0 0-2.83 4M14 12a4 4 0 0 1 0 8H6m-2-8h16\"/></symbol><symbol id=\"top\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m5 12l7-7l7 7m-7 7V5\"/></symbol><symbol id=\"underline\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 4v6a6 6 0 0 0 12 0V4M4 20h16\"/></symbol><symbol id=\"undo\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M9 14L4 9l5-5\"/><path d=\"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11\"/></g></symbol></svg>";
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"><symbol id="actions" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></g></symbol><symbol id="add" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-7-7v14"/></symbol><symbol id="blockquote" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 5H3m18 7H8m13 7H8m-5-7v7"/></symbol><symbol id="bold" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"/></symbol><symbol id="bullet-list" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13"/></symbol><symbol id="calendar" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M8 2v3m8-3v3"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M3 9h18"/></g></symbol><symbol id="check" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 6L9 17l-5-5"/></symbol><symbol id="close" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/></symbol><symbol id="code" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m16 18l6-6l-6-6M8 6l-6 6l6 6"/></symbol><symbol id="code-block" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></symbol><symbol id="columns" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18m6-18v18"/></g></symbol><symbol id="drag" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="9" cy="12" r="1"/><circle cx="9" cy="5" r="1"/><circle cx="9" cy="19" r="1"/><circle cx="15" cy="12" r="1"/><circle cx="15" cy="5" r="1"/><circle cx="15" cy="19" r="1"/></g></symbol><symbol id="expand" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/></symbol><symbol id="filter" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"/></symbol><symbol id="first" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m11 17l-5-5l5-5m7 10l-5-5l5-5"/></symbol><symbol id="folder" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></symbol><symbol id="heading" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 12h12M6 20V4m12 16V4"/></symbol><symbol id="italic" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 4h-9m4 16H5M15 4L9 20"/></symbol><symbol id="keywords" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1zM2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193"/><circle cx="10.5" cy="6.5" r=".5" fill="currentColor"/></g></symbol><symbol id="last" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 17l5-5l-5-5m7 10l5-5l-5-5"/></symbol><symbol id="next" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 18l6-6l-6-6"/></symbol><symbol id="ordered-list" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5h10m-10 7h10m-10 7h10M4 4h1v5M4 9h2m.5 11H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02"/></symbol><symbol id="prev" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 18l-6-6l6-6"/></symbol><symbol id="redo" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m15 14l5-5l-5-5"/><path d="M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"/></g></symbol><symbol id="refresh" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></g></symbol><symbol id="remove" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/></symbol><symbol id="rule" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14"/></symbol><symbol id="search" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m21 21l-4.34-4.34"/><circle cx="11" cy="11" r="8"/></g></symbol><symbol id="sort-asc" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m5 12l7-7l7 7m-7 7V5"/></symbol><symbol id="sort-desc" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 5v14m7-7l-7 7l-7-7"/></symbol><symbol id="strike" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 4H9a3 3 0 0 0-2.83 4M14 12a4 4 0 0 1 0 8H6m-2-8h16"/></symbol><symbol id="top" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m5 12l7-7l7 7m-7 7V5"/></symbol><symbol id="underline" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 4v6a6 6 0 0 0 12 0V4M4 20h16"/></symbol><symbol id="undo" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M9 14L4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"/></g></symbol></svg>
package/README.md CHANGED
@@ -1,3 +1,65 @@
1
- # Temporary Holding Version
1
+ # @zoobzio/icons
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The foundation design system's icon contract, as an
4
+ [icon-sheets](https://github.com/zoobzio/icon-sheets) config built by
5
+ `@icon-sheets/kit` into a resolved contract, a typed alias union, and SVG
6
+ sprites.
7
+
8
+ The components of `@zoobzio/vue` draw no icons of their own: each leaves
9
+ its icons to slots, a `prepend` or `append` beside content (`itemPrepend`,
10
+ `triggerAppend`, `prevPrepend`, …) or the slot that replaces a button
11
+ (`refresh`, `actions`, `first`, …). This package names the roles those
12
+ slots play, and the Nuxt layer fills the slots from these aliases by
13
+ default. The vue package never depends on it.
14
+
15
+ ## Layout
16
+
17
+ ```
18
+ icon-sheets.config.ts each alias mapped to its lucide ref
19
+ .output/ the kit's output (generated, not committed)
20
+ ```
21
+
22
+ Aliases name an icon by role (`prev`, `close`, `sort-asc`), not by glyph,
23
+ so a consumer rebinds a role without touching the components that draw it.
24
+ The ref behind each one resolves from the locally installed
25
+ `@iconify-json/lucide` package.
26
+
27
+ ## Exports
28
+
29
+ - `@zoobzio/icons`: `type Alias`, `aliases`, `isAlias`, `prefix`, `href`.
30
+ - `@zoobzio/icons/config`: the resolved contract.
31
+ - `@zoobzio/icons/sets`: the resolved sets, keyed by id (none yet).
32
+ - `@zoobzio/icons/sheet`: the hidden sprite markup, for inlining.
33
+ - `@zoobzio/icons/sprite.svg`: the standalone sprite file.
34
+
35
+ ## Extending the contract
36
+
37
+ `@zoobzio/nuxt` hands `config`, `sets` and `prefix` to `@icon-sheets/nuxt`
38
+ as its default `iconSheets` option. An app that extends the layer gets
39
+ every alias here with no setup, and an app with its own icons package
40
+ passes it the same way:
41
+
42
+ ```ts
43
+ // nuxt.config.ts
44
+ import { prefix } from "@acme/icons";
45
+ import config from "@acme/icons/config";
46
+ import sets from "@acme/icons/sets";
47
+
48
+ export default defineNuxtConfig({
49
+ extends: ["@zoobzio/nuxt"],
50
+ iconSheets: { ...config, sets, prefix },
51
+ });
52
+ ```
53
+
54
+ Nuxt merges a layer's config under the app's, object by object, so the
55
+ app's `contract.icons` lands over this package's: the app adds its own
56
+ aliases, rebinds a foundation alias by declaring it again, and keeps every
57
+ alias it leaves alone. The `Alias` union the app compiles against is the
58
+ merged set, so a wrapper's default and an app's own `<Icon name="…" />`
59
+ are checked against the same names.
60
+
61
+ ## Scripts
62
+
63
+ - `pnpm build`: writes `.output/`. It also runs on install via `prepare`.
64
+ - `pnpm test`: rebuilds, then checks the output against the config and
65
+ its Iconify sources.
package/package.json CHANGED
@@ -1,6 +1,52 @@
1
1
  {
2
2
  "name": "@zoobzio/icons",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.11",
4
+ "description": "The foundation design system's icon contract: the aliases its components draw by default, authored as an icon-sheets config and built by @icon-sheets/kit into a typed alias union, a resolved contract, and SVG sprites.",
5
+ "license": "MIT",
6
+ "author": {
7
+ "name": "Alex Thorwaldson",
8
+ "email": "alex@zoobz.io",
9
+ "url": "https://zoobz.io"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/zoobzio/foundation.git",
14
+ "directory": "packages/icons"
15
+ },
16
+ "files": [
17
+ ".output"
18
+ ],
19
+ "type": "module",
20
+ "sideEffects": false,
21
+ "main": "./.output/index.mjs",
22
+ "types": "./.output/index.d.mts",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./.output/index.d.mts",
26
+ "import": "./.output/index.mjs"
27
+ },
28
+ "./*.svg": "./.output/*.svg",
29
+ "./*": {
30
+ "types": "./.output/*.d.mts",
31
+ "import": "./.output/*.mjs"
32
+ },
33
+ "./package.json": "./package.json"
34
+ },
35
+ "scripts": {
36
+ "build": "icon-sheets build",
37
+ "stub": "icon-sheets build",
38
+ "prepare": "icon-sheets build",
39
+ "lint": "oxlint",
40
+ "typecheck": "tsc --noEmit",
41
+ "test": "vitest run"
42
+ },
43
+ "dependencies": {
44
+ "icon-sheets": "catalog:"
45
+ },
46
+ "devDependencies": {
47
+ "@icon-sheets/kit": "catalog:",
48
+ "@iconify-json/lucide": "catalog:",
49
+ "@types/node": "catalog:",
50
+ "vitest": "catalog:"
51
+ }
52
+ }