@fluxus-ui/icons 0.0.0-stage → 0.3.0
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/LICENSE +21 -0
- package/README.md +40 -2
- package/bin/icons-png.mjs +51 -0
- package/dist/index.cjs +969 -0
- package/dist/index.d.cts +260 -0
- package/dist/index.d.ts +260 -0
- package/dist/index.js +881 -0
- package/dist/react.cjs +260 -0
- package/dist/react.d.cts +65 -0
- package/dist/react.d.ts +65 -0
- package/dist/react.js +236 -0
- package/package.json +77 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,881 @@
|
|
|
1
|
+
// src/attach.ts
|
|
2
|
+
import { prefersReducedMotion, spring } from "@fluxus-ui/core/base";
|
|
3
|
+
|
|
4
|
+
// src/pose.ts
|
|
5
|
+
var REST = "rest";
|
|
6
|
+
var ICON_SPRINGS = {
|
|
7
|
+
state: { stiffness: 320, damping: 26 },
|
|
8
|
+
push: { stiffness: 180, damping: 12 },
|
|
9
|
+
turn: { stiffness: 120, damping: 20 }
|
|
10
|
+
};
|
|
11
|
+
var poseOf = (part, state, progress) => {
|
|
12
|
+
const p = { ...part.rest, ...state ? part.on?.[state] : void 0 };
|
|
13
|
+
return { d: p.d ?? part.d, x: p.x ?? 0, y: p.y ?? 0, r: p.r ?? 0, s: p.s ?? 1, draw: p.draw === "p" ? progress : p.draw ?? 1, o: p.o ?? 1 };
|
|
14
|
+
};
|
|
15
|
+
var draws = (part) => [part.rest, ...Object.values(part.on ?? {})].some((p) => p?.draw !== void 0);
|
|
16
|
+
var n = (v) => String(+v.toFixed(2));
|
|
17
|
+
var attrsOf = (part, pose) => {
|
|
18
|
+
const [cx, cy] = part.c ?? [8, 8];
|
|
19
|
+
const t = (pose.x || pose.y ? `translate(${n(pose.x)} ${n(pose.y)})` : "") + (pose.r ? `rotate(${n(pose.r)} ${cx} ${cy})` : "") + (pose.s !== 1 ? `translate(${cx} ${cy})scale(${n(pose.s)})translate(${-cx} ${-cy})` : "");
|
|
20
|
+
const hidden = pose.draw < 1e-3 || pose.o < 1e-3;
|
|
21
|
+
return {
|
|
22
|
+
d: pose.d,
|
|
23
|
+
transform: t || null,
|
|
24
|
+
// With round caps a dash of 0 still paints a dot: a part not drawn at all is hidden instead.
|
|
25
|
+
"stroke-dasharray": pose.draw > 0.999 || hidden ? null : `${n(pose.draw)} 2`,
|
|
26
|
+
visibility: hidden ? "hidden" : null,
|
|
27
|
+
opacity: pose.o > 0.999 || hidden ? null : n(pose.o)
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
var esc = (s) => s.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<");
|
|
31
|
+
var partsMarkup = (def, state, progress = 0) => def.parts.map((part) => {
|
|
32
|
+
const attrs = attrsOf(part, poseOf(part, state, progress));
|
|
33
|
+
let out = `<path data-p="${part.id}"`;
|
|
34
|
+
if (draws(part)) out += ' pathLength="1"';
|
|
35
|
+
if (part.fill) out += ' fill="currentColor"';
|
|
36
|
+
for (const [k, v] of Object.entries(attrs)) if (v !== null) out += ` ${k}="${v}"`;
|
|
37
|
+
return `${out}/>`;
|
|
38
|
+
}).join("");
|
|
39
|
+
var iconMarkup = (def, { state, progress, label, className } = {}) => `<svg class="${esc(className ? `fx-i ${className}` : "fx-i")}" data-fx-icon="${def.name}"` + (state ? ` data-state="${esc(state)}"` : "") + (progress !== void 0 ? ` data-progress="${n(progress)}"` : "") + ' viewBox="0 0 16 16" width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"' + (label ? ` role="img" aria-label="${esc(label)}"` : ' aria-hidden="true"') + `>${partsMarkup(def, state, progress)}</svg>`;
|
|
40
|
+
var parse = (d) => (d.match(/[A-Z]|-?[\d.]+/g) ?? []).map((t) => /[A-Z]/.test(t) ? t : Number(t));
|
|
41
|
+
var mix = (a, b, t) => a.map((v, i) => typeof v === "number" ? n(v + (b[i] - v) * t) : v).join(" ");
|
|
42
|
+
var ARGS = { M: 2, L: 2, H: 1, V: 1, C: 6, S: 4, Q: 4, T: 2, A: 7, Z: 0 };
|
|
43
|
+
var shape = (d) => {
|
|
44
|
+
const num = "-?\\d+(?:\\.\\d+)?";
|
|
45
|
+
const cmd = `[MLHVCSQTAZ](?:${num}(?: ${num})*)?`;
|
|
46
|
+
if (!new RegExp(`^${cmd}(?: ${cmd})*$`).test(d)) return "absolute commands and numbers apart by single spaces";
|
|
47
|
+
let cmds = "";
|
|
48
|
+
let flags = "";
|
|
49
|
+
for (const chunk of d.split(/ (?=[A-Z])/)) {
|
|
50
|
+
const cmd2 = chunk[0];
|
|
51
|
+
const args = chunk.slice(1).split(" ").filter(Boolean);
|
|
52
|
+
const per = ARGS[cmd2];
|
|
53
|
+
if (per === 0 ? args.length !== 0 : args.length === 0 || args.length % per !== 0) return `${cmd2} takes ${per} numbers`;
|
|
54
|
+
cmds += `${cmd2}${args.length}`;
|
|
55
|
+
if (cmd2 === "A") for (let i = 0; i < args.length; i += 7) flags += `${args[i + 3]}${args[i + 4]}`;
|
|
56
|
+
}
|
|
57
|
+
return { cmds, flags };
|
|
58
|
+
};
|
|
59
|
+
function validateIcon(def) {
|
|
60
|
+
const out = [];
|
|
61
|
+
const bad = (what) => void out.push(`${def.name}: ${what}`);
|
|
62
|
+
if (!/^[a-z][a-z0-9-]*$/.test(def.name)) bad("its name is not kebab-case");
|
|
63
|
+
const ids = /* @__PURE__ */ new Set();
|
|
64
|
+
for (const part of def.parts) {
|
|
65
|
+
if (!part.id || ids.has(part.id)) bad(`part id "${part.id}" is empty or repeated`);
|
|
66
|
+
ids.add(part.id);
|
|
67
|
+
const base = shape(part.d);
|
|
68
|
+
if (typeof base === "string") bad(`${part.id}: ${base}`);
|
|
69
|
+
if (part.lag !== void 0 && (part.lag < 0 || part.lag > 0.5)) bad(`${part.id}: lag is 0\u20130.5`);
|
|
70
|
+
for (const [state, pose] of [["rest", part.rest], ...Object.entries(part.on ?? {})]) {
|
|
71
|
+
if (!pose) continue;
|
|
72
|
+
if (pose.d !== void 0) {
|
|
73
|
+
const other = shape(pose.d);
|
|
74
|
+
if (typeof other === "string") bad(`${part.id}@${state}: ${other}`);
|
|
75
|
+
else if (typeof base !== "string" && other.cmds !== base.cmds) bad(`${part.id}@${state}: not the same commands as at rest`);
|
|
76
|
+
else if (typeof base !== "string" && other.flags !== base.flags) bad(`${part.id}@${state}: arc flags differ from the ones at rest`);
|
|
77
|
+
}
|
|
78
|
+
if (typeof pose.draw === "number" && (pose.draw < 0 || pose.draw > 1)) bad(`${part.id}@${state}: draw is 0\u20131`);
|
|
79
|
+
if (pose.o !== void 0 && (pose.o < 0 || pose.o > 1)) bad(`${part.id}@${state}: o is 0\u20131`);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
for (const [name, kicks] of Object.entries(def.kicks ?? {})) {
|
|
83
|
+
for (const kick of kicks) {
|
|
84
|
+
if (kick.p !== "*" && !ids.has(kick.p)) bad(`kick ${name}: no part "${kick.p}"`);
|
|
85
|
+
if (!"xyrs".includes(kick.k) || kick.k.length !== 1) bad(`kick ${name}: "${kick.k}" is not x, y, r or s`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return out;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// src/attach.ts
|
|
92
|
+
var NUMS = ["x", "y", "r", "s", "draw", "o"];
|
|
93
|
+
var CONTROL = "[aria-pressed],[aria-expanded],[aria-checked]";
|
|
94
|
+
var HOST = 'a,button,summary,label,[role="button"],[role="menuitem"],[role="tab"],[role="switch"],[role="checkbox"]';
|
|
95
|
+
var WATCHED = ["aria-pressed", "aria-expanded", "aria-checked"];
|
|
96
|
+
function attachIcon(svg, def, options = {}) {
|
|
97
|
+
const reduced = () => (options.respectReducedMotion ?? true) && prefersReducedMotion();
|
|
98
|
+
const control = svg.closest(CONTROL);
|
|
99
|
+
const target = svg.closest(HOST) ?? control ?? svg;
|
|
100
|
+
const stateOf = () => svg.dataset.state ?? (control && WATCHED.some((a) => control.getAttribute(a) === "true") ? "on" : REST);
|
|
101
|
+
const progressOf = () => Math.min(1, Math.max(0, Number(svg.dataset.progress) || 0));
|
|
102
|
+
let state = stateOf();
|
|
103
|
+
let ends = [state, state];
|
|
104
|
+
let aim = 1;
|
|
105
|
+
let g = 1;
|
|
106
|
+
let motion = null;
|
|
107
|
+
const timers = /* @__PURE__ */ new Set();
|
|
108
|
+
const lives = [];
|
|
109
|
+
for (const part of def.parts) {
|
|
110
|
+
const el = svg.querySelector(`[data-p="${part.id}"]`);
|
|
111
|
+
if (!el) continue;
|
|
112
|
+
const pose = poseOf(part, state, progressOf());
|
|
113
|
+
lives.push({ part, el, from: pose, to: pose, off: { x: 0, y: 0, r: 0, s: 0 }, pushes: {} });
|
|
114
|
+
}
|
|
115
|
+
const now = (live) => {
|
|
116
|
+
const lag = live.part.lag ?? 0;
|
|
117
|
+
const t = lag ? Math.max(0, (g - lag) / (1 - lag)) : g;
|
|
118
|
+
const { from, to } = live;
|
|
119
|
+
const pose = { ...to, d: from.d === to.d ? to.d : t >= 1 ? to.d : t <= 0 ? from.d : mix(parse(from.d), parse(to.d), t) };
|
|
120
|
+
for (const k of NUMS) pose[k] = from[k] + (to[k] - from[k]) * t;
|
|
121
|
+
pose.draw = Math.min(1, Math.max(0, pose.draw));
|
|
122
|
+
pose.o = Math.min(1, Math.max(0, pose.o));
|
|
123
|
+
return pose;
|
|
124
|
+
};
|
|
125
|
+
const paint = () => {
|
|
126
|
+
for (const live of lives) {
|
|
127
|
+
const pose = now(live);
|
|
128
|
+
const { off } = live;
|
|
129
|
+
const attrs = attrsOf(live.part, { ...pose, x: pose.x + off.x, y: pose.y + off.y, r: pose.r + off.r, s: pose.s + off.s });
|
|
130
|
+
for (const [k, v] of Object.entries(attrs)) {
|
|
131
|
+
if (v === null) live.el.removeAttribute(k);
|
|
132
|
+
else if (live.el.getAttribute(k) !== v) live.el.setAttribute(k, v);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
const settle = () => {
|
|
137
|
+
for (const live of lives) live.from = live.to = aim ? live.to : live.from;
|
|
138
|
+
ends = [state, state];
|
|
139
|
+
aim = 1;
|
|
140
|
+
g = 1;
|
|
141
|
+
paint();
|
|
142
|
+
};
|
|
143
|
+
const go = (next, force = false) => {
|
|
144
|
+
if (next === state && !force) return;
|
|
145
|
+
const running = motion !== null && !motion.done;
|
|
146
|
+
if (reduced()) {
|
|
147
|
+
motion?.stop();
|
|
148
|
+
motion = null;
|
|
149
|
+
state = next;
|
|
150
|
+
aim = 1;
|
|
151
|
+
for (const live of lives) live.to = poseOf(live.part, next, progressOf());
|
|
152
|
+
settle();
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
if (running && !force && next === ends[1 - aim]) {
|
|
156
|
+
aim = aim ? 0 : 1;
|
|
157
|
+
state = next;
|
|
158
|
+
motion.retarget(aim);
|
|
159
|
+
} else {
|
|
160
|
+
for (const live of lives) {
|
|
161
|
+
live.from = now(live);
|
|
162
|
+
live.to = poseOf(live.part, next, progressOf());
|
|
163
|
+
}
|
|
164
|
+
motion?.stop();
|
|
165
|
+
ends = [running || force ? null : state, next];
|
|
166
|
+
state = next;
|
|
167
|
+
aim = 1;
|
|
168
|
+
g = 0;
|
|
169
|
+
motion = spring({
|
|
170
|
+
from: 0,
|
|
171
|
+
to: 1,
|
|
172
|
+
...ICON_SPRINGS.state,
|
|
173
|
+
restDelta: 2e-3,
|
|
174
|
+
onUpdate: (v) => {
|
|
175
|
+
g = v;
|
|
176
|
+
paint();
|
|
177
|
+
},
|
|
178
|
+
onRest: settle
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
if (!force) kick(next);
|
|
182
|
+
};
|
|
183
|
+
const kick = (name) => {
|
|
184
|
+
if (reduced()) return;
|
|
185
|
+
for (const k of def.kicks?.[name] ?? []) {
|
|
186
|
+
const start = () => {
|
|
187
|
+
for (const live of lives) {
|
|
188
|
+
if (k.p !== "*" && k.p !== live.part.id) continue;
|
|
189
|
+
const old = live.pushes[k.k];
|
|
190
|
+
const carried = old && !old.done ? old.velocity : 0;
|
|
191
|
+
old?.stop();
|
|
192
|
+
const to = k.to ?? 0;
|
|
193
|
+
live.pushes[k.k] = spring({
|
|
194
|
+
from: live.off[k.k],
|
|
195
|
+
to,
|
|
196
|
+
velocity: carried + (k.v ?? 0),
|
|
197
|
+
...to ? ICON_SPRINGS.turn : ICON_SPRINGS.push,
|
|
198
|
+
restDelta: k.k === "s" ? 2e-3 : 0.05,
|
|
199
|
+
restSpeed: 0.05,
|
|
200
|
+
onUpdate: (v) => {
|
|
201
|
+
live.off[k.k] = v;
|
|
202
|
+
if (!motion || motion.done) paint();
|
|
203
|
+
},
|
|
204
|
+
onRest: () => {
|
|
205
|
+
live.off[k.k] = 0;
|
|
206
|
+
paint();
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
if (k.wait) {
|
|
212
|
+
const timer = window.setTimeout(() => {
|
|
213
|
+
timers.delete(timer);
|
|
214
|
+
start();
|
|
215
|
+
}, k.wait);
|
|
216
|
+
timers.add(timer);
|
|
217
|
+
} else start();
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
paint();
|
|
221
|
+
const watcher = new MutationObserver((records) => {
|
|
222
|
+
go(stateOf(), records.some((r) => r.attributeName === "data-progress"));
|
|
223
|
+
});
|
|
224
|
+
watcher.observe(svg, { attributes: true, attributeFilter: ["data-state", "data-progress"] });
|
|
225
|
+
if (control) watcher.observe(control, { attributes: true, attributeFilter: WATCHED });
|
|
226
|
+
const onEnter = (e) => {
|
|
227
|
+
if (e.pointerType === "mouse") kick("hover");
|
|
228
|
+
};
|
|
229
|
+
const onClick = () => kick("press");
|
|
230
|
+
target.addEventListener("pointerenter", onEnter);
|
|
231
|
+
target.addEventListener("click", onClick);
|
|
232
|
+
return {
|
|
233
|
+
kick,
|
|
234
|
+
destroy() {
|
|
235
|
+
watcher.disconnect();
|
|
236
|
+
target.removeEventListener("pointerenter", onEnter);
|
|
237
|
+
target.removeEventListener("click", onClick);
|
|
238
|
+
motion?.stop();
|
|
239
|
+
for (const timer of timers) clearTimeout(timer);
|
|
240
|
+
for (const live of lives) {
|
|
241
|
+
for (const push of Object.values(live.pushes)) push.stop();
|
|
242
|
+
live.off = { x: 0, y: 0, r: 0, s: 0 };
|
|
243
|
+
}
|
|
244
|
+
settle();
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// src/icons/arrow-down.ts
|
|
250
|
+
var arrowDown = {
|
|
251
|
+
name: "arrow-down",
|
|
252
|
+
parts: [{ id: "a", d: "M8 3 L8 13 M4 9 L8 13 L12 9" }],
|
|
253
|
+
kicks: { hover: [{ p: "*", k: "y", v: 28 }] }
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
// src/icons/arrow-left.ts
|
|
257
|
+
var arrowLeft = {
|
|
258
|
+
name: "arrow-left",
|
|
259
|
+
parts: [{ id: "a", d: "M13 8 L3 8 M7 4 L3 8 L7 12" }],
|
|
260
|
+
kicks: { hover: [{ p: "*", k: "x", v: -28 }] }
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
// src/icons/arrow-right.ts
|
|
264
|
+
var arrowRight = {
|
|
265
|
+
name: "arrow-right",
|
|
266
|
+
parts: [{ id: "a", d: "M3 8 L13 8 M9 4 L13 8 L9 12" }],
|
|
267
|
+
kicks: { hover: [{ p: "*", k: "x", v: 28 }] }
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
// src/icons/arrow-up.ts
|
|
271
|
+
var arrowUp = {
|
|
272
|
+
name: "arrow-up",
|
|
273
|
+
parts: [{ id: "a", d: "M8 13 L8 3 M4 7 L8 3 L12 7" }],
|
|
274
|
+
kicks: { hover: [{ p: "*", k: "y", v: -28 }] }
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
// src/icons/bell.ts
|
|
278
|
+
var bell = {
|
|
279
|
+
name: "bell",
|
|
280
|
+
parts: [
|
|
281
|
+
{ id: "body", d: "M3.5 11.5 L4.5 10.5 V7 A3.5 3.5 0 0 1 11.5 7 V10.5 L12.5 11.5 Z", c: [8, 3] },
|
|
282
|
+
{ id: "clapper", d: "M6.75 13.5 A1.3 1.3 0 0 0 9.25 13.5", c: [8, 3] },
|
|
283
|
+
{ id: "dot", d: "M12 3.5 V3.51", c: [12, 3.5], rest: { o: 0, s: 0 }, on: { on: { o: 1, s: 1 } } }
|
|
284
|
+
],
|
|
285
|
+
kicks: {
|
|
286
|
+
hover: [
|
|
287
|
+
{ p: "body", k: "r", v: 210 },
|
|
288
|
+
{ p: "clapper", k: "r", v: 330, wait: 40 }
|
|
289
|
+
],
|
|
290
|
+
on: [
|
|
291
|
+
{ p: "body", k: "r", v: 300 },
|
|
292
|
+
{ p: "clapper", k: "r", v: 460, wait: 40 }
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
// src/icons/book.ts
|
|
298
|
+
var book = {
|
|
299
|
+
name: "book",
|
|
300
|
+
parts: [
|
|
301
|
+
{ id: "left", d: "M8 4.5 C6.5 3.5 4.5 3 2.5 3 V12 C4.5 12 6.5 12.5 8 13.5" },
|
|
302
|
+
{ id: "right", d: "M8 4.5 C9.5 3.5 11.5 3 13.5 3 V12 C11.5 12 9.5 12.5 8 13.5" },
|
|
303
|
+
{ id: "spine", d: "M8 4.5 V13.5" },
|
|
304
|
+
{ id: "lines", d: "M4.25 6 H6.25 M4.25 8.5 H6.25 M9.75 6 H11.75 M9.75 8.5 H11.75", rest: { draw: 0 }, on: { on: { draw: 1 } } }
|
|
305
|
+
]
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
// src/icons/calendar.ts
|
|
309
|
+
var calendar = {
|
|
310
|
+
name: "calendar",
|
|
311
|
+
parts: [
|
|
312
|
+
{ id: "p1", d: "M4 3.5 H12 A1.5 1.5 0 0 1 13.5 5 V12 A1.5 1.5 0 0 1 12 13.5 H4 A1.5 1.5 0 0 1 2.5 12 V5 A1.5 1.5 0 0 1 4 3.5 Z" },
|
|
313
|
+
{ id: "p2", d: "M2.5 6.5 H13.5 M5.5 2 V5 M10.5 2 V5" }
|
|
314
|
+
]
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
// src/icons/card.ts
|
|
318
|
+
var card = {
|
|
319
|
+
name: "card",
|
|
320
|
+
parts: [
|
|
321
|
+
{ id: "body", d: "M3.5 3.5 H12.5 A1.5 1.5 0 0 1 14 5 V11 A1.5 1.5 0 0 1 12.5 12.5 H3.5 A1.5 1.5 0 0 1 2 11 V5 A1.5 1.5 0 0 1 3.5 3.5 Z" },
|
|
322
|
+
{ id: "stripe", d: "M2 6.5 H14" },
|
|
323
|
+
{ id: "chip", d: "M4.5 9.75 H6.5" }
|
|
324
|
+
],
|
|
325
|
+
kicks: { press: [{ p: "*", k: "x", v: 30 }] }
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
// src/icons/chat.ts
|
|
329
|
+
var chat = {
|
|
330
|
+
name: "chat",
|
|
331
|
+
parts: [
|
|
332
|
+
{ id: "bubble", d: "M4 3 H12 A1.5 1.5 0 0 1 13.5 4.5 V9.5 A1.5 1.5 0 0 1 12 11 H7 L4 13.5 V11 A1.5 1.5 0 0 1 2.5 9.5 V4.5 A1.5 1.5 0 0 1 4 3 Z" },
|
|
333
|
+
{ id: "dots", d: "M5.5 7 V7.01 M8 7 V7.01 M10.5 7 V7.01", rest: { o: 0 }, on: { typing: { o: 1 } } }
|
|
334
|
+
],
|
|
335
|
+
kicks: { press: [{ p: "bubble", k: "s", v: 1.4 }] }
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
// src/icons/check.ts
|
|
339
|
+
var check = {
|
|
340
|
+
name: "check",
|
|
341
|
+
parts: [
|
|
342
|
+
{ id: "ring", d: "M8 2.5 A5.5 5.5 0 1 1 8 13.5 A5.5 5.5 0 1 1 8 2.5 Z", on: { off: { draw: 0 } } },
|
|
343
|
+
{ id: "tick", d: "M5.4 8.2 L7.2 10 L10.6 6.2", lag: 0.35, on: { off: { draw: 0 } } }
|
|
344
|
+
],
|
|
345
|
+
kicks: { rest: [{ p: "*", k: "s", v: 1.2, wait: 160 }] }
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
// src/icons/check-double.ts
|
|
349
|
+
var checkDouble = {
|
|
350
|
+
name: "check-double",
|
|
351
|
+
parts: [
|
|
352
|
+
{ id: "first", d: "M1.75 8.5 L4.75 11.5 L10.25 5" },
|
|
353
|
+
{ id: "second", d: "M7.75 10.75 L8.5 11.5 L14 5", lag: 0.25, on: { single: { draw: 0 } } }
|
|
354
|
+
]
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
// src/icons/chevron.ts
|
|
358
|
+
var chevron = {
|
|
359
|
+
name: "chevron",
|
|
360
|
+
parts: [{ id: "v", d: "M4.5 6.25 L8 9.75 L11.5 6.25", on: { on: { r: -180 } } }]
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
// src/icons/clock.ts
|
|
364
|
+
var clock = {
|
|
365
|
+
name: "clock",
|
|
366
|
+
parts: [
|
|
367
|
+
{ id: "face", d: "M8 2.5 A5.5 5.5 0 1 1 8 13.5 A5.5 5.5 0 1 1 8 2.5 Z" },
|
|
368
|
+
{ id: "minute", d: "M8 8 V4.75", c: [8, 8] },
|
|
369
|
+
{ id: "hour", d: "M8 8 L10.25 9.25", c: [8, 8], on: { busy: { r: 30 } } }
|
|
370
|
+
],
|
|
371
|
+
kicks: { busy: [{ p: "minute", k: "r", to: 360 }] }
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
// src/icons/close.ts
|
|
375
|
+
var close = {
|
|
376
|
+
name: "close",
|
|
377
|
+
parts: [{ id: "x", d: "M4 4 L12 12 M12 4 L4 12" }],
|
|
378
|
+
kicks: {
|
|
379
|
+
hover: [{ p: "*", k: "r", v: 240 }],
|
|
380
|
+
press: [{ p: "*", k: "s", v: -2.5 }]
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
// src/icons/copy.ts
|
|
385
|
+
var copy = {
|
|
386
|
+
name: "copy",
|
|
387
|
+
parts: [
|
|
388
|
+
{ id: "back", d: "M5.5 5.5 V3.5 A1 1 0 0 1 6.5 2.5 H12.5 A1 1 0 0 1 13.5 3.5 V9.5 A1 1 0 0 1 12.5 10.5 H10.5", on: { done: { draw: 0 } } },
|
|
389
|
+
{ id: "front", d: "M3.5 5.5 H9.5 A1 1 0 0 1 10.5 6.5 V12.5 A1 1 0 0 1 9.5 13.5 H3.5 A1 1 0 0 1 2.5 12.5 V6.5 A1 1 0 0 1 3.5 5.5 Z" },
|
|
390
|
+
{ id: "tick", d: "M4.5 9.6 L6 11.1 L8.6 8", lag: 0.3, rest: { draw: 0 }, on: { done: { draw: 1 } } }
|
|
391
|
+
],
|
|
392
|
+
kicks: { done: [{ p: "front", k: "s", v: 1.6 }] }
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
// src/icons/download.ts
|
|
396
|
+
var TRAY = "M2.5 10.5 V12.5 A1 1 0 0 0 3.5 13.5 H12.5 A1 1 0 0 0 13.5 12.5 V10.5";
|
|
397
|
+
var download = {
|
|
398
|
+
name: "download",
|
|
399
|
+
parts: [
|
|
400
|
+
{ id: "tray", d: TRAY, on: { busy: { o: 0.35 } } },
|
|
401
|
+
{ id: "fill", d: TRAY, rest: { draw: 0 }, on: { busy: { draw: "p" }, done: { draw: 0 } } },
|
|
402
|
+
{ id: "stem", d: "M8 2.5 V9.5", on: { done: { draw: 0 } } },
|
|
403
|
+
{ id: "head", d: "M5 6.5 L8 9.5 L11 6.5", on: { done: { draw: 0, y: 2 } } },
|
|
404
|
+
{ id: "tick", d: "M5 6 L7.3 8.3 L11 4", lag: 0.3, rest: { draw: 0 }, on: { done: { draw: 1 } } }
|
|
405
|
+
],
|
|
406
|
+
kicks: { busy: [{ p: "head", k: "y", v: 22 }, { p: "stem", k: "y", v: 22 }] }
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
// src/icons/error.ts
|
|
410
|
+
var error = {
|
|
411
|
+
name: "error",
|
|
412
|
+
parts: [
|
|
413
|
+
{ id: "ring", d: "M8 2.5 A5.5 5.5 0 1 1 8 13.5 A5.5 5.5 0 1 1 8 2.5 Z", on: { off: { draw: 0 } } },
|
|
414
|
+
{ id: "bar", d: "M8 5 V8.5", lag: 0.3, on: { off: { draw: 0 } } },
|
|
415
|
+
{ id: "dot", d: "M8 11 V11.01", lag: 0.4, on: { off: { o: 0 } } }
|
|
416
|
+
],
|
|
417
|
+
kicks: { rest: [{ p: "*", k: "x", v: 36, wait: 120 }] }
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
// src/icons/exam.ts
|
|
421
|
+
var exam = {
|
|
422
|
+
name: "exam",
|
|
423
|
+
parts: [
|
|
424
|
+
{ id: "board", d: "M5 3.5 H4 A1 1 0 0 0 3 4.5 V12.5 A1 1 0 0 0 4 13.5 H12 A1 1 0 0 0 13 12.5 V4.5 A1 1 0 0 0 12 3.5 H11" },
|
|
425
|
+
{ id: "clip", d: "M6 2.5 H10 V4.5 H6 Z" },
|
|
426
|
+
{ id: "lines", d: "M8.5 7.5 H10.5 M8.5 10.5 H10.5" },
|
|
427
|
+
{ id: "ticks", d: "M5 7.5 L5.75 8.25 L7 6.75 M5 10.5 L5.75 11.25 L7 9.75", lag: 0.2, rest: { draw: 0 }, on: { done: { draw: 1 } } }
|
|
428
|
+
],
|
|
429
|
+
kicks: { done: [{ p: "board", k: "s", v: 1.2 }] }
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
// src/icons/external.ts
|
|
433
|
+
var external = {
|
|
434
|
+
name: "external",
|
|
435
|
+
parts: [
|
|
436
|
+
{ id: "box", d: "M7 3.5 H4.5 A1 1 0 0 0 3.5 4.5 V11.5 A1 1 0 0 0 4.5 12.5 H11.5 A1 1 0 0 0 12.5 11.5 V9" },
|
|
437
|
+
{ id: "arrow", d: "M9 3.5 H12.5 V7 M12.5 3.5 L7.5 8.5" }
|
|
438
|
+
],
|
|
439
|
+
kicks: { press: [{ p: "arrow", k: "x", v: 20 }, { p: "arrow", k: "y", v: -20 }] }
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
// src/icons/eye.ts
|
|
443
|
+
var eye = {
|
|
444
|
+
name: "eye",
|
|
445
|
+
parts: [
|
|
446
|
+
{ id: "lid", d: "M1.5 8 C3.5 4.5 5.5 3.5 8 3.5 C10.5 3.5 12.5 4.5 14.5 8 C12.5 11.5 10.5 12.5 8 12.5 C5.5 12.5 3.5 11.5 1.5 8 Z", on: { off: { d: "M1.5 8 C3.5 9.5 5.5 10 8 10 C10.5 10 12.5 9.5 14.5 8 C12.5 11.5 10.5 12.5 8 12.5 C5.5 12.5 3.5 11.5 1.5 8 Z" } } },
|
|
447
|
+
{ id: "pupil", d: "M8 6 A2 2 0 1 1 8 10 A2 2 0 1 1 8 6 Z", on: { off: { s: 0.4, o: 0 } } },
|
|
448
|
+
{ id: "slash", d: "M2.5 2.5 L13.5 13.5", lag: 0.3, rest: { draw: 0 }, on: { off: { draw: 1 } } }
|
|
449
|
+
]
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
// src/icons/filter.ts
|
|
453
|
+
var filter = {
|
|
454
|
+
name: "filter",
|
|
455
|
+
parts: [
|
|
456
|
+
{ id: "funnel", d: "M2.5 3.5 H13.5 L9.5 8.5 V12.5 L6.5 13.5 V8.5 Z" },
|
|
457
|
+
{ id: "dot", d: "M13 11.5 V11.51", c: [13, 11.5], rest: { o: 0, s: 0 }, on: { on: { o: 1, s: 1 } } }
|
|
458
|
+
],
|
|
459
|
+
kicks: { press: [{ p: "funnel", k: "y", v: 20 }] }
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
// src/icons/help.ts
|
|
463
|
+
var help = {
|
|
464
|
+
name: "help",
|
|
465
|
+
parts: [
|
|
466
|
+
{ id: "ring", d: "M8 2.5 A5.5 5.5 0 1 1 8 13.5 A5.5 5.5 0 1 1 8 2.5 Z" },
|
|
467
|
+
{ id: "mark", d: "M6.25 6.25 A1.75 1.75 0 1 1 8.75 7.75 C8.25 8 8 8.5 8 9.25" },
|
|
468
|
+
{ id: "dot", d: "M8 11.25 V11.26" }
|
|
469
|
+
],
|
|
470
|
+
kicks: { press: [{ p: "*", k: "r", v: 200 }] }
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
// src/icons/image.ts
|
|
474
|
+
var image = {
|
|
475
|
+
name: "image",
|
|
476
|
+
parts: [
|
|
477
|
+
{ id: "p1", d: "M4 2.5 H12 A1.5 1.5 0 0 1 13.5 4 V12 A1.5 1.5 0 0 1 12 13.5 H4 A1.5 1.5 0 0 1 2.5 12 V4 A1.5 1.5 0 0 1 4 2.5 Z" },
|
|
478
|
+
{ id: "p2", d: "M6 4.8 A1.2 1.2 0 1 1 6 7.2 A1.2 1.2 0 1 1 6 4.8 Z" },
|
|
479
|
+
{ id: "p3", d: "M3 12 L6.5 8.5 L8.5 10.5 L11 8 L13.5 10.5" }
|
|
480
|
+
]
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
// src/icons/inbox.ts
|
|
484
|
+
var inbox = {
|
|
485
|
+
name: "inbox",
|
|
486
|
+
parts: [
|
|
487
|
+
{ id: "p1", d: "M2.5 9 H5.5 L6.5 11 H9.5 L10.5 9 H13.5" },
|
|
488
|
+
{ id: "p2", d: "M4 3.5 H12 L13.5 9 V12.5 A1 1 0 0 1 12.5 13.5 H3.5 A1 1 0 0 1 2.5 12.5 V9 Z" }
|
|
489
|
+
]
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
// src/icons/info.ts
|
|
493
|
+
var info = {
|
|
494
|
+
name: "info",
|
|
495
|
+
parts: [
|
|
496
|
+
{ id: "ring", d: "M8 2.5 A5.5 5.5 0 1 1 8 13.5 A5.5 5.5 0 1 1 8 2.5 Z" },
|
|
497
|
+
{ id: "bar", d: "M8 7.5 V11" },
|
|
498
|
+
{ id: "dot", d: "M8 5 V5.01" }
|
|
499
|
+
],
|
|
500
|
+
kicks: { press: [{ p: "dot", k: "y", v: -30 }, { p: "bar", k: "y", v: -10, wait: 40 }] }
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
// src/icons/list.ts
|
|
504
|
+
var list = {
|
|
505
|
+
name: "list",
|
|
506
|
+
parts: [
|
|
507
|
+
{ id: "p1", d: "M3 4 H13 M3 8 H13 M3 12 H9" }
|
|
508
|
+
]
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
// src/icons/lock.ts
|
|
512
|
+
var lock = {
|
|
513
|
+
name: "lock",
|
|
514
|
+
parts: [
|
|
515
|
+
{ id: "body", d: "M4.5 7.5 H11.5 A1 1 0 0 1 12.5 8.5 V12.5 A1 1 0 0 1 11.5 13.5 H4.5 A1 1 0 0 1 3.5 12.5 V8.5 A1 1 0 0 1 4.5 7.5 Z" },
|
|
516
|
+
{ id: "shackle", d: "M5.5 7.5 V5.5 A2.5 2.5 0 0 1 10.5 5.5 V7.5", on: { open: { y: -1.25, d: "M5.5 8.75 V5.5 A2.5 2.5 0 0 1 10.5 5.5 V6.5" } } }
|
|
517
|
+
],
|
|
518
|
+
kicks: { hover: [{ p: "shackle", k: "y", v: -16 }] }
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
// src/icons/login.ts
|
|
522
|
+
var login = {
|
|
523
|
+
name: "login",
|
|
524
|
+
parts: [
|
|
525
|
+
{ id: "door", d: "M9.5 2.5 H12.5 A1 1 0 0 1 13.5 3.5 V12.5 A1 1 0 0 1 12.5 13.5 H9.5" },
|
|
526
|
+
{ id: "arrow", d: "M6.5 5 L9.5 8 L6.5 11 M9.5 8 L2.5 8" }
|
|
527
|
+
],
|
|
528
|
+
kicks: { hover: [{ p: "arrow", k: "x", v: 24 }] }
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
// src/icons/logout.ts
|
|
532
|
+
var logout = {
|
|
533
|
+
name: "logout",
|
|
534
|
+
parts: [
|
|
535
|
+
{ id: "p1", d: "M6.5 13.5 H3.5 A1 1 0 0 1 2.5 12.5 V3.5 A1 1 0 0 1 3.5 2.5 H6.5" },
|
|
536
|
+
{ id: "p2", d: "M10.5 11 L13.5 8 L10.5 5 M13.5 8 H6" }
|
|
537
|
+
]
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
// src/icons/map.ts
|
|
541
|
+
var map = {
|
|
542
|
+
name: "map",
|
|
543
|
+
parts: [
|
|
544
|
+
{ id: "sheet", d: "M2.5 4 L6 2.5 L10 4 L13.5 2.5 V12 L10 13.5 L6 12 L2.5 13.5 Z" },
|
|
545
|
+
{ id: "folds", d: "M6 2.5 V12 M10 4 V13.5" },
|
|
546
|
+
{ id: "route", d: "M4 10.5 C5 9 6.5 9.5 8 8 C9.25 6.75 10.5 7 12 5.5", rest: { draw: 0 }, on: { on: { draw: 1 } } }
|
|
547
|
+
]
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
// src/icons/medal.ts
|
|
551
|
+
var medal = {
|
|
552
|
+
name: "medal",
|
|
553
|
+
parts: [
|
|
554
|
+
{ id: "ribbon", d: "M5 2.5 L7 7 M11 2.5 L9 7", c: [8, 2.5] },
|
|
555
|
+
{ id: "disc", d: "M8 7 A3.25 3.25 0 1 1 8 13.5 A3.25 3.25 0 1 1 8 7 Z", c: [8, 2.5] },
|
|
556
|
+
{ id: "one", d: "M7.25 9.25 L8 8.75 V11.75", c: [8, 2.5] }
|
|
557
|
+
],
|
|
558
|
+
kicks: { press: [{ p: "*", k: "r", v: 160 }] }
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
// src/icons/menu.ts
|
|
562
|
+
var menu = {
|
|
563
|
+
name: "menu",
|
|
564
|
+
parts: [
|
|
565
|
+
{ id: "top", d: "M3 4.5 L13 4.5", on: { on: { d: "M4 4 L12 12" } } },
|
|
566
|
+
{ id: "mid", d: "M3 8 L13 8", on: { on: { s: 0.2, o: 0 } } },
|
|
567
|
+
{ id: "low", d: "M3 11.5 L13 11.5", on: { on: { d: "M4 12 L12 4" } } }
|
|
568
|
+
]
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
// src/icons/mic.ts
|
|
572
|
+
var CAPSULE = "M8 2.5 A2 2 0 0 1 10 4.5 V7.5 A2 2 0 0 1 6 7.5 V4.5 A2 2 0 0 1 8 2.5 Z";
|
|
573
|
+
var mic = {
|
|
574
|
+
name: "mic",
|
|
575
|
+
parts: [
|
|
576
|
+
{ id: "capsule", d: CAPSULE },
|
|
577
|
+
{ id: "level", d: CAPSULE, fill: true, c: [8, 9.5], rest: { o: 0, s: 0.6 }, on: { on: { o: 1, s: 1 } } },
|
|
578
|
+
{ id: "cradle", d: "M4 7.5 A4 4 0 0 0 12 7.5", c: [8, 7.5] },
|
|
579
|
+
{ id: "stem", d: "M8 11.5 V13.5" }
|
|
580
|
+
],
|
|
581
|
+
kicks: { on: [{ p: "cradle", k: "s", v: 1.4 }] }
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
// src/icons/pencil.ts
|
|
585
|
+
var pencil = {
|
|
586
|
+
name: "pencil",
|
|
587
|
+
parts: [
|
|
588
|
+
{ id: "body", d: "M10.75 3.25 L12.75 5.25 L5.75 12.25 L3 13 L3.75 10.25 Z", c: [3, 13] },
|
|
589
|
+
{ id: "band", d: "M9.25 4.75 L11.25 6.75", c: [3, 13] }
|
|
590
|
+
],
|
|
591
|
+
kicks: { hover: [{ p: "*", k: "r", v: 150 }] }
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
// src/icons/phone.ts
|
|
595
|
+
var phone = {
|
|
596
|
+
name: "phone",
|
|
597
|
+
parts: [
|
|
598
|
+
{ id: "handset", d: "M5 2.5 H6.5 L7.5 5.5 L6 6.75 C6.75 8.25 7.75 9.25 9.25 10 L10.5 8.5 L13.5 9.5 V11 A2.5 2.5 0 0 1 11 13.5 C6.25 13 3 9.75 2.5 5 A2.5 2.5 0 0 1 5 2.5 Z" }
|
|
599
|
+
],
|
|
600
|
+
kicks: { press: [{ p: "*", k: "r", v: 420 }] }
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
// src/icons/play.ts
|
|
604
|
+
var play = {
|
|
605
|
+
name: "play",
|
|
606
|
+
parts: [
|
|
607
|
+
{ id: "left", fill: true, d: "M5 3.5 L8.75 5.75 L8.75 10.25 L5 12.5 Z", on: { on: { d: "M4.5 3.5 L6.5 3.5 L6.5 12.5 L4.5 12.5 Z" } } },
|
|
608
|
+
{ id: "right", fill: true, d: "M8.75 5.75 L12.5 8 L12.5 8 L8.75 10.25 Z", on: { on: { d: "M9.5 3.5 L11.5 3.5 L11.5 12.5 L9.5 12.5 Z" } } }
|
|
609
|
+
]
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
// src/icons/plus.ts
|
|
613
|
+
var plus = {
|
|
614
|
+
name: "plus",
|
|
615
|
+
parts: [{ id: "cross", d: "M8 3 L8 13 M3 8 L13 8" }],
|
|
616
|
+
kicks: {
|
|
617
|
+
hover: [{ p: "*", k: "r", v: 200 }],
|
|
618
|
+
press: [{ p: "*", k: "r", to: 90 }]
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
// src/icons/refresh.ts
|
|
623
|
+
var refresh = {
|
|
624
|
+
name: "refresh",
|
|
625
|
+
parts: [
|
|
626
|
+
{ id: "arc", d: "M13.5 8 A5.5 5.5 0 1 1 8 2.5 C9.5 2.5 10.9 3.1 11.9 4.1 L13.5 5.5" },
|
|
627
|
+
{ id: "head", d: "M13.5 2.5 V5.5 H10.5" }
|
|
628
|
+
],
|
|
629
|
+
kicks: {
|
|
630
|
+
hover: [{ p: "*", k: "r", v: 240 }],
|
|
631
|
+
press: [{ p: "*", k: "r", to: 360 }]
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
// src/icons/retry.ts
|
|
636
|
+
var retry = {
|
|
637
|
+
name: "retry",
|
|
638
|
+
parts: [
|
|
639
|
+
{ id: "arc", d: "M2.5 8 A5.5 5.5 0 1 0 8 2.5 C6.5 2.5 5.1 3.1 4.1 4.1 L2.5 5.5" },
|
|
640
|
+
{ id: "head", d: "M2.5 2.5 V5.5 H5.5" }
|
|
641
|
+
],
|
|
642
|
+
kicks: { press: [{ p: "*", k: "r", to: -360 }] }
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
// src/icons/search.ts
|
|
646
|
+
var search = {
|
|
647
|
+
name: "search",
|
|
648
|
+
parts: [
|
|
649
|
+
{ id: "lens", d: "M7 2.5 A4.5 4.5 0 1 1 7 11.5 A4.5 4.5 0 1 1 7 2.5 Z", c: [7, 7] },
|
|
650
|
+
{ id: "handle", d: "M10.25 10.25 L13.5 13.5" }
|
|
651
|
+
],
|
|
652
|
+
kicks: { press: [{ p: "lens", k: "s", v: 1.6 }] }
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
// src/icons/send.ts
|
|
656
|
+
var send = {
|
|
657
|
+
name: "send",
|
|
658
|
+
parts: [
|
|
659
|
+
{ id: "wing", d: "M13.5 2.5 L2.5 7 L7 9 L9 13.5 Z" },
|
|
660
|
+
{ id: "fold", d: "M13.5 2.5 L7 9" }
|
|
661
|
+
],
|
|
662
|
+
kicks: { press: [{ p: "*", k: "x", v: 70 }, { p: "*", k: "y", v: -70 }] }
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
// src/icons/settings.ts
|
|
666
|
+
var knob = (x, y) => `M${x} ${y - 1.25} A1.25 1.25 0 1 1 ${x} ${y + 1.25} A1.25 1.25 0 1 1 ${x} ${y - 1.25} Z`;
|
|
667
|
+
var settings = {
|
|
668
|
+
name: "settings",
|
|
669
|
+
parts: [
|
|
670
|
+
{ id: "rails", d: "M2.5 4.5 H13.5 M2.5 8 H13.5 M2.5 11.5 H13.5" },
|
|
671
|
+
{ id: "k1", d: knob(10, 4.5), fill: true },
|
|
672
|
+
{ id: "k2", d: knob(5.5, 8), fill: true },
|
|
673
|
+
{ id: "k3", d: knob(9, 11.5), fill: true }
|
|
674
|
+
],
|
|
675
|
+
kicks: {
|
|
676
|
+
press: [
|
|
677
|
+
{ p: "k1", k: "x", v: -30 },
|
|
678
|
+
{ p: "k2", k: "x", v: 30, wait: 40 },
|
|
679
|
+
{ p: "k3", k: "x", v: -30, wait: 80 }
|
|
680
|
+
]
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
// src/icons/shield.ts
|
|
685
|
+
var shield = {
|
|
686
|
+
name: "shield",
|
|
687
|
+
parts: [
|
|
688
|
+
{ id: "shell", d: "M8 2.5 L12.5 4.25 L12.5 8 C12.5 10.75 10.5 12.75 8 13.5 C5.5 12.75 3.5 10.75 3.5 8 L3.5 4.25 Z" },
|
|
689
|
+
{ id: "tick", d: "M6 8 L7.5 9.5 L10 6.5" }
|
|
690
|
+
],
|
|
691
|
+
kicks: { hover: [{ p: "*", k: "s", v: 1.2 }] }
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
// src/icons/sidebar.ts
|
|
695
|
+
var sidebar = {
|
|
696
|
+
name: "sidebar",
|
|
697
|
+
parts: [
|
|
698
|
+
{ id: "frame", d: "M3.5 2.5 H12.5 A1 1 0 0 1 13.5 3.5 V12.5 A1 1 0 0 1 12.5 13.5 H3.5 A1 1 0 0 1 2.5 12.5 V3.5 A1 1 0 0 1 3.5 2.5 Z" },
|
|
699
|
+
{ id: "bar", d: "M5 2.5 V13.5", on: { on: { x: 1.5 } } },
|
|
700
|
+
{ id: "arrow", d: "M8.5 6.25 L10.25 8 L8.5 9.75", lag: 0.15, on: { on: { d: "M10.75 6.25 L9 8 L10.75 9.75" } } }
|
|
701
|
+
]
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
// src/icons/stack.ts
|
|
705
|
+
var stack = {
|
|
706
|
+
name: "stack",
|
|
707
|
+
parts: [
|
|
708
|
+
{ id: "p1", d: "M3.5 2.5 H12.5 A1 1 0 0 1 13.5 3.5 V5.5 A1 1 0 0 1 12.5 6.5 H3.5 A1 1 0 0 1 2.5 5.5 V3.5 A1 1 0 0 1 3.5 2.5 Z" },
|
|
709
|
+
{ id: "p2", d: "M3.5 9.5 H12.5 A1 1 0 0 1 13.5 10.5 V12.5 A1 1 0 0 1 12.5 13.5 H3.5 A1 1 0 0 1 2.5 12.5 V10.5 A1 1 0 0 1 3.5 9.5 Z" }
|
|
710
|
+
]
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
// src/icons/tick.ts
|
|
714
|
+
var tick = {
|
|
715
|
+
name: "tick",
|
|
716
|
+
parts: [{ id: "v", d: "M3.5 8.5 L6.5 11.5 L12.5 4.5", on: { off: { draw: 0 }, mixed: { d: "M4 8 L8 8 L12 8" } } }],
|
|
717
|
+
kicks: {
|
|
718
|
+
hover: [{ p: "*", k: "s", v: 1.5 }],
|
|
719
|
+
press: [{ p: "*", k: "s", v: 2.5 }]
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
// src/icons/trash.ts
|
|
724
|
+
var trash = {
|
|
725
|
+
name: "trash",
|
|
726
|
+
parts: [
|
|
727
|
+
{ id: "lid", d: "M2.5 4.5 H13.5 M6 4.5 V3.5 A1 1 0 0 1 7 2.5 H9 A1 1 0 0 1 10 3.5 V4.5", c: [13.5, 4.5] },
|
|
728
|
+
{ id: "body", d: "M4 4.5 L4.6 12.6 A1 1 0 0 0 5.6 13.5 H10.4 A1 1 0 0 0 11.4 12.6 L12 4.5" },
|
|
729
|
+
{ id: "ribs", d: "M6.75 7.25 V10.75 M9.25 7.25 V10.75" }
|
|
730
|
+
],
|
|
731
|
+
kicks: {
|
|
732
|
+
hover: [{ p: "lid", k: "r", v: 190 }],
|
|
733
|
+
press: [
|
|
734
|
+
{ p: "lid", k: "r", v: 380 },
|
|
735
|
+
{ p: "lid", k: "y", v: -14 }
|
|
736
|
+
]
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
|
|
740
|
+
// src/icons/upload.ts
|
|
741
|
+
var TRAY2 = "M2.5 10.5 V12.5 A1 1 0 0 0 3.5 13.5 H12.5 A1 1 0 0 0 13.5 12.5 V10.5";
|
|
742
|
+
var upload = {
|
|
743
|
+
name: "upload",
|
|
744
|
+
parts: [
|
|
745
|
+
{ id: "tray", d: TRAY2, on: { busy: { o: 0.35 } } },
|
|
746
|
+
{ id: "fill", d: TRAY2, rest: { draw: 0 }, on: { busy: { draw: "p" }, done: { draw: 0 } } },
|
|
747
|
+
{ id: "stem", d: "M8 10.5 V3", on: { done: { draw: 0 } } },
|
|
748
|
+
{ id: "head", d: "M5 6 L8 3 L11 6", on: { done: { draw: 0, y: -2 } } },
|
|
749
|
+
{ id: "tick", d: "M5 6 L7.3 8.3 L11 4", lag: 0.3, rest: { draw: 0 }, on: { done: { draw: 1 } } }
|
|
750
|
+
],
|
|
751
|
+
kicks: { busy: [{ p: "head", k: "y", v: -22 }, { p: "stem", k: "y", v: -22 }] }
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
// src/icons/user.ts
|
|
755
|
+
var user = {
|
|
756
|
+
name: "user",
|
|
757
|
+
parts: [
|
|
758
|
+
{ id: "p1", d: "M8 3 A2.5 2.5 0 1 1 8 8 A2.5 2.5 0 1 1 8 3 Z" },
|
|
759
|
+
{ id: "p2", d: "M3 13.5 C3.6 11.1 5.6 9.5 8 9.5 C10.4 9.5 12.4 11.1 13 13.5" }
|
|
760
|
+
]
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
// src/icons/users.ts
|
|
764
|
+
var users = {
|
|
765
|
+
name: "users",
|
|
766
|
+
parts: [
|
|
767
|
+
{ id: "head", d: "M6 3 A2.25 2.25 0 1 1 6 7.5 A2.25 2.25 0 1 1 6 3 Z" },
|
|
768
|
+
{ id: "body", d: "M1.75 13.5 C2.25 11.25 3.9 9.75 6 9.75 C8.1 9.75 9.75 11.25 10.25 13.5" },
|
|
769
|
+
{ id: "head2", d: "M10.25 3.15 A2.1 2.1 0 1 1 11 7.3" },
|
|
770
|
+
{ id: "body2", d: "M11.5 9.8 C12.9 10.2 13.9 11.6 14.25 13.5" }
|
|
771
|
+
],
|
|
772
|
+
kicks: {
|
|
773
|
+
press: [
|
|
774
|
+
{ p: "head", k: "y", v: -22 },
|
|
775
|
+
{ p: "body", k: "y", v: -22 },
|
|
776
|
+
{ p: "head2", k: "y", v: -22, wait: 70 },
|
|
777
|
+
{ p: "body2", k: "y", v: -22, wait: 70 }
|
|
778
|
+
]
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
// src/icons/wand.ts
|
|
783
|
+
var wand = {
|
|
784
|
+
name: "wand",
|
|
785
|
+
parts: [
|
|
786
|
+
{ id: "stick", d: "M3 13 L9.25 6.75" },
|
|
787
|
+
{ id: "spark", d: "M11.5 2.5 V5.5 M10 4 H13", c: [11.5, 4] },
|
|
788
|
+
{ id: "small", d: "M13 8.25 V9.75 M12.25 9 H13.75", c: [13, 9] },
|
|
789
|
+
{ id: "tiny", d: "M6 2.75 V4.25 M5.25 3.5 H6.75", c: [6, 3.5] }
|
|
790
|
+
],
|
|
791
|
+
kicks: {
|
|
792
|
+
hover: [
|
|
793
|
+
{ p: "spark", k: "s", v: 5 },
|
|
794
|
+
{ p: "spark", k: "r", v: 420 },
|
|
795
|
+
{ p: "small", k: "s", v: 6, wait: 70 },
|
|
796
|
+
{ p: "tiny", k: "s", v: 6, wait: 140 }
|
|
797
|
+
],
|
|
798
|
+
press: [
|
|
799
|
+
{ p: "stick", k: "r", v: -160 },
|
|
800
|
+
{ p: "spark", k: "s", v: 8, wait: 60 },
|
|
801
|
+
{ p: "small", k: "s", v: 8, wait: 120 },
|
|
802
|
+
{ p: "tiny", k: "s", v: 8, wait: 180 }
|
|
803
|
+
]
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
// src/icons/wifi.ts
|
|
808
|
+
var wifi = {
|
|
809
|
+
name: "wifi",
|
|
810
|
+
parts: [
|
|
811
|
+
{ id: "big", d: "M1.75 6.25 A8.8 8.8 0 0 1 14.25 6.25", on: { off: { o: 0.35 } } },
|
|
812
|
+
{ id: "mid", d: "M3.75 8.5 A6 6 0 0 1 12.25 8.5", on: { off: { o: 0.35 } } },
|
|
813
|
+
{ id: "small", d: "M5.75 10.75 A3.2 3.2 0 0 1 10.25 10.75", on: { off: { o: 0.35 } } },
|
|
814
|
+
{ id: "dot", d: "M8 13 V13.01" },
|
|
815
|
+
{ id: "slash", d: "M2.5 2.5 L13.5 13.5", lag: 0.2, rest: { draw: 0 }, on: { off: { draw: 1 } } }
|
|
816
|
+
]
|
|
817
|
+
};
|
|
818
|
+
export {
|
|
819
|
+
ICON_SPRINGS,
|
|
820
|
+
REST,
|
|
821
|
+
arrowDown,
|
|
822
|
+
arrowLeft,
|
|
823
|
+
arrowRight,
|
|
824
|
+
arrowUp,
|
|
825
|
+
attachIcon,
|
|
826
|
+
attrsOf,
|
|
827
|
+
bell,
|
|
828
|
+
book,
|
|
829
|
+
calendar,
|
|
830
|
+
card,
|
|
831
|
+
chat,
|
|
832
|
+
check,
|
|
833
|
+
checkDouble,
|
|
834
|
+
chevron,
|
|
835
|
+
clock,
|
|
836
|
+
close,
|
|
837
|
+
copy,
|
|
838
|
+
download,
|
|
839
|
+
draws,
|
|
840
|
+
error,
|
|
841
|
+
exam,
|
|
842
|
+
external,
|
|
843
|
+
eye,
|
|
844
|
+
filter,
|
|
845
|
+
help,
|
|
846
|
+
iconMarkup,
|
|
847
|
+
image,
|
|
848
|
+
inbox,
|
|
849
|
+
info,
|
|
850
|
+
list,
|
|
851
|
+
lock,
|
|
852
|
+
login,
|
|
853
|
+
logout,
|
|
854
|
+
map,
|
|
855
|
+
medal,
|
|
856
|
+
menu,
|
|
857
|
+
mic,
|
|
858
|
+
parse,
|
|
859
|
+
partsMarkup,
|
|
860
|
+
pencil,
|
|
861
|
+
phone,
|
|
862
|
+
play,
|
|
863
|
+
plus,
|
|
864
|
+
poseOf,
|
|
865
|
+
refresh,
|
|
866
|
+
retry,
|
|
867
|
+
search,
|
|
868
|
+
send,
|
|
869
|
+
settings,
|
|
870
|
+
shield,
|
|
871
|
+
sidebar,
|
|
872
|
+
stack,
|
|
873
|
+
tick,
|
|
874
|
+
trash,
|
|
875
|
+
upload,
|
|
876
|
+
user,
|
|
877
|
+
users,
|
|
878
|
+
validateIcon,
|
|
879
|
+
wand,
|
|
880
|
+
wifi
|
|
881
|
+
};
|