@nookly/pebble-icons 0.1.0 → 0.2.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/icons/core.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /// The drawings the sidebar and the titlebar started with.
2
2
  import { createPebbleIcon } from "../icon.js";
3
- import { circle, line, path, rect, sheer } from "../parts.js";
3
+ import { circle, line, moving, path, rect, sheer } from "../parts.js";
4
4
  export const ArrowLeftIcon = /* @__PURE__ */ createPebbleIcon({
5
5
  name: "arrow-left",
6
6
  front: [
@@ -16,87 +16,136 @@ export const ArrowRightIcon = /* @__PURE__ */ createPebbleIcon({
16
16
  export const BookIcon = /* @__PURE__ */ createPebbleIcon({
17
17
  name: "book",
18
18
  back: [
19
- rect(7, 1.6, 14.4, 17.4, 4.4),
19
+ ...moving("pages", [
20
+ rect(7, 1.6, 14.4, 17.4, 4.4),
21
+ ]),
20
22
  ],
21
23
  front: [
22
- rect(2.6, 5, 15, 17.4, 4.8),
24
+ ...moving("cover", [
25
+ rect(2.6, 5, 15, 17.4, 4.8),
26
+ ]),
23
27
  ],
24
28
  mark: [
25
- rect(6, 8.8, 8.2, 2.7, 1.35),
26
- rect(6, 16.2, 8.2, 2.7, 1.35),
29
+ ...moving("cover", [
30
+ rect(6, 8.8, 8.2, 2.7, 1.35),
31
+ rect(6, 16.2, 8.2, 2.7, 1.35),
32
+ ]),
27
33
  ],
28
34
  });
29
35
  export const BookmarkIcon = /* @__PURE__ */ createPebbleIcon({
30
36
  name: "bookmark",
31
37
  back: [
32
- path("M15.48 1.4C17.31 1.4 19.81 1 21.15 2.57C22.15 3.73 22 5.37 22 6.8C22 8.31 22 9.81 22 11.32C22 12.94 22.63 16.69 21.4 17.84C19.66 19.48 17.58 16.66 15.82 16.46C13.85 16.24 12.63 18.47 10.76 18.34C10.06 18.3 9.43 17.85 9.16 17.2C8.87 16.51 9 15.58 9 14.84C9 13.52 9 12.2 9 10.88C9 9.47 9 8.05 9 6.64C9 5.3 8.89 3.8 9.76 2.67C11.06 0.99 13.62 1.4 15.48 1.4Z"),
38
+ ...moving("behind", [
39
+ path("M15.48 1.4C17.31 1.4 19.81 1 21.15 2.57C22.15 3.73 22 5.37 22 6.8C22 8.31 22 9.81 22 11.32C22 12.94 22.63 16.69 21.4 17.84C19.66 19.48 17.58 16.66 15.82 16.46C13.85 16.24 12.63 18.47 10.76 18.34C10.06 18.3 9.43 17.85 9.16 17.2C8.87 16.51 9 15.58 9 14.84C9 13.52 9 12.2 9 10.88C9 9.47 9 8.05 9 6.64C9 5.3 8.89 3.8 9.76 2.67C11.06 0.99 13.62 1.4 15.48 1.4Z"),
40
+ ]),
33
41
  ],
34
42
  front: [
35
- path("M10 5C11.98 5 14.76 4.54 16.17 6.3C17.72 8.23 17 12 17 14.32C17 15.56 17 16.8 17 18.04C17 18.79 17.12 19.67 16.83 20.38C16.51 21.14 15.81 21.66 14.97 21.7C12.99 21.77 11.8 19.38 9.73 19.57C7.75 19.75 5.62 23.07 3.65 21.1C2.39 19.84 3 16.37 3 14.68C3 13.27 3 11.85 3 10.44C3 8.94 2.89 7.22 4.04 6.06C5.51 4.57 8.1 5 10 5Z"),
43
+ ...moving("ribbon", [
44
+ path("M10 5C11.98 5 14.76 4.54 16.17 6.3C17.72 8.23 17 12 17 14.32C17 15.56 17 16.8 17 18.04C17 18.79 17.12 19.67 16.83 20.38C16.51 21.14 15.81 21.66 14.97 21.7C12.99 21.77 11.8 19.38 9.73 19.57C7.75 19.75 5.62 23.07 3.65 21.1C2.39 19.84 3 16.37 3 14.68C3 13.27 3 11.85 3 10.44C3 8.94 2.89 7.22 4.04 6.06C5.51 4.57 8.1 5 10 5Z"),
45
+ ]),
36
46
  ],
37
47
  mark: [
38
- line("M7.2 10.4h5.6", 2.5),
48
+ ...moving("ribbon", [
49
+ line("M7.2 10.4h5.6", 2.5),
50
+ ]),
39
51
  ],
40
52
  });
41
53
  export const CalendarClockIcon = /* @__PURE__ */ createPebbleIcon({
42
54
  name: "calendar-clock",
43
55
  back: [
44
56
  rect(3.6, 2.8, 16.8, 13, 4.5),
45
- rect(6.4, 0.8, 3.4, 6.4, 1.7),
46
- rect(14.2, 0.8, 3.4, 6.4, 1.7),
57
+ ...moving("rings", [
58
+ rect(6.4, 0.8, 3.4, 6.4, 1.7),
59
+ rect(14.2, 0.8, 3.4, 6.4, 1.7),
60
+ ]),
47
61
  ],
48
62
  front: [
49
- rect(2, 7.6, 20, 14.8, 5),
63
+ ...moving("page", [
64
+ rect(2, 7.6, 20, 14.8, 5),
65
+ ]),
50
66
  ],
51
67
  mark: [
52
- circle(12, 15.2, 5),
68
+ ...moving("face", [
69
+ circle(12, 15.2, 5),
70
+ ]),
53
71
  ],
54
72
  over: "M12 12.8v2.6l1.8 1.3",
73
+ overMove: "hands",
55
74
  });
56
75
  export const CalendarGridIcon = /* @__PURE__ */ createPebbleIcon({
57
76
  name: "calendar-grid",
58
77
  back: [
59
78
  rect(3.6, 2.8, 16.8, 13, 4.5),
60
- rect(6.4, 0.8, 3.4, 6.4, 1.7),
61
- rect(14.2, 0.8, 3.4, 6.4, 1.7),
79
+ ...moving("rings", [
80
+ rect(6.4, 0.8, 3.4, 6.4, 1.7),
81
+ rect(14.2, 0.8, 3.4, 6.4, 1.7),
82
+ ]),
62
83
  ],
63
84
  front: [
64
- rect(2, 7.6, 20, 14.8, 5),
85
+ ...moving("page", [
86
+ rect(2, 7.6, 20, 14.8, 5),
87
+ ]),
65
88
  ],
66
89
  mark: [
67
- circle(7.4, 13.2, 1.45),
68
- circle(7.4, 17.9, 1.45),
69
- circle(12, 13.2, 1.45),
70
- circle(12, 17.9, 1.45),
71
- circle(16.6, 13.2, 1.45),
72
- circle(16.6, 17.9, 1.45),
90
+ ...moving("day-1", [
91
+ circle(7.4, 13.2, 1.45),
92
+ ]),
93
+ ...moving("day-4", [
94
+ circle(7.4, 17.9, 1.45),
95
+ ]),
96
+ ...moving("day-2", [
97
+ circle(12, 13.2, 1.45),
98
+ ]),
99
+ ...moving("day-5", [
100
+ circle(12, 17.9, 1.45),
101
+ ]),
102
+ ...moving("day-3", [
103
+ circle(16.6, 13.2, 1.45),
104
+ ]),
105
+ ...moving("day-6", [
106
+ circle(16.6, 17.9, 1.45),
107
+ ]),
73
108
  ],
74
109
  });
75
110
  export const CalendarIcon = /* @__PURE__ */ createPebbleIcon({
76
111
  name: "calendar",
77
112
  back: [
78
113
  rect(3.6, 2.8, 16.8, 13, 4.5),
79
- rect(6.4, 0.8, 3.4, 6.4, 1.7),
80
- rect(14.2, 0.8, 3.4, 6.4, 1.7),
114
+ ...moving("rings", [
115
+ rect(6.4, 0.8, 3.4, 6.4, 1.7),
116
+ rect(14.2, 0.8, 3.4, 6.4, 1.7),
117
+ ]),
81
118
  ],
82
119
  front: [
83
- rect(2, 7.6, 20, 14.8, 5),
120
+ ...moving("page", [
121
+ rect(2, 7.6, 20, 14.8, 5),
122
+ ]),
84
123
  ],
85
124
  mark: [
86
- rect(6.4, 12.2, 11.2, 2.9, 1.45),
87
- circle(8.2, 18.2, 1.65),
125
+ ...moving("page", [
126
+ rect(6.4, 12.2, 11.2, 2.9, 1.45),
127
+ ]),
128
+ ...moving("today", [
129
+ circle(8.2, 18.2, 1.65),
130
+ ]),
88
131
  ],
89
132
  });
90
133
  export const CardsIcon = /* @__PURE__ */ createPebbleIcon({
91
134
  name: "cards",
92
135
  back: [
93
- rect(8.8, 1.8, 12.8, 16.4, 4.2, "rotate(12 15 10)"),
136
+ ...moving("card-back", [
137
+ rect(8.8, 1.8, 12.8, 16.4, 4.2, "rotate(12 15 10)"),
138
+ ]),
94
139
  ],
95
140
  front: [
96
- rect(2.4, 4.8, 14.4, 17.8, 4.6, "rotate(-8 9.6 13.7)"),
141
+ ...moving("card-front", [
142
+ rect(2.4, 4.8, 14.4, 17.8, 4.6, "rotate(-8 9.6 13.7)"),
143
+ ]),
97
144
  ],
98
145
  mark: [
99
- rect(6.9, 11, 5.4, 5.4, 1.4, "rotate(37 9.6 13.7)"),
146
+ ...moving("card-front", [
147
+ rect(6.9, 11, 5.4, 5.4, 1.4, "rotate(37 9.6 13.7)"),
148
+ ]),
100
149
  ],
101
150
  });
102
151
  export const ChartIcon = /* @__PURE__ */ createPebbleIcon({
@@ -105,33 +154,51 @@ export const ChartIcon = /* @__PURE__ */ createPebbleIcon({
105
154
  rect(2, 11, 20, 11.4, 4.6),
106
155
  ],
107
156
  front: [
108
- rect(3.2, 9.4, 4.8, 10.4, 2.4),
109
- rect(9.6, 1.8, 4.8, 18, 2.4),
110
- rect(16, 5.6, 4.8, 14.2, 2.4),
157
+ ...moving("bar-1", [
158
+ rect(3.2, 9.4, 4.8, 10.4, 2.4),
159
+ ]),
160
+ ...moving("bar-2", [
161
+ rect(9.6, 1.8, 4.8, 18, 2.4),
162
+ ]),
163
+ ...moving("bar-3", [
164
+ rect(16, 5.6, 4.8, 14.2, 2.4),
165
+ ]),
111
166
  ],
112
167
  });
113
168
  export const CheckSquareIcon = /* @__PURE__ */ createPebbleIcon({
114
169
  name: "check-square",
115
170
  back: [
116
- rect(6.2, 1.8, 16, 16, 5.6),
171
+ ...moving("shadow", [
172
+ rect(6.2, 1.8, 16, 16, 5.6),
173
+ ]),
117
174
  ],
118
175
  front: [
119
- rect(2, 5.4, 16.8, 16.8, 6),
176
+ ...moving("box", [
177
+ rect(2, 5.4, 16.8, 16.8, 6),
178
+ ]),
120
179
  ],
121
180
  mark: [
122
- line("M6.4 14l2.9 2.9 5.2-5.6", 3),
181
+ ...moving("tick", [
182
+ line("M6.4 14l2.9 2.9 5.2-5.6", 3),
183
+ ]),
123
184
  ],
124
185
  });
125
186
  export const ClipboardCheckIcon = /* @__PURE__ */ createPebbleIcon({
126
187
  name: "clipboard-check",
127
188
  back: [
128
- rect(6, 1.4, 12, 11, 3.8),
189
+ ...moving("clip", [
190
+ rect(6, 1.4, 12, 11, 3.8),
191
+ ]),
129
192
  ],
130
193
  front: [
131
- rect(3, 5.8, 18, 16.6, 5.2),
194
+ ...moving("board", [
195
+ rect(3, 5.8, 18, 16.6, 5.2),
196
+ ]),
132
197
  ],
133
198
  mark: [
134
- line("M8.4 14.2l2.6 2.6 4.8-5.1", 2.9),
199
+ ...moving("tick", [
200
+ line("M8.4 14.2l2.6 2.6 4.8-5.1", 2.9),
201
+ ]),
135
202
  ],
136
203
  });
137
204
  export const CloudCheckIcon = /* @__PURE__ */ createPebbleIcon({
@@ -162,10 +229,14 @@ export const CloudOffIcon = /* @__PURE__ */ createPebbleIcon({
162
229
  ],
163
230
  front: [
164
231
  path("M12.56 21.4C10.99 21.4 9.41 21.4 7.84 21.4C6.27 21.4 4.6 21.47 3.2 20.63C0.8 19.2 0.53 15.09 2.23 13.03C3.01 12.08 4.23 11.95 5.05 11.07C5.81 10.26 5.96 9.14 6.55 8.22C7.77 6.33 9.87 5.59 12.05 5.6C13.97 5.61 15.91 6.17 17.17 7.69C17.8 8.45 18.04 9.42 18.78 10.09C19.73 10.95 20.99 10.99 21.82 12.05C23.68 14.42 23.35 19.2 20.53 20.71C18.25 21.92 15.06 21.4 12.56 21.4Z"),
165
- line("M3.4 3.6l17.2 17.2", 2.8),
232
+ ...moving("strike", [
233
+ line("M3.4 3.6l17.2 17.2", 2.8),
234
+ ]),
166
235
  ],
167
236
  hole: [
168
- line("M6.1 2.3l17.2 17.2M.9 5.1l17.2 17.2", 1.5),
237
+ ...moving("strike", [
238
+ line("M6.1 2.3l17.2 17.2M.9 5.1l17.2 17.2", 1.5),
239
+ ]),
169
240
  ],
170
241
  });
171
242
  export const CloudStormIcon = /* @__PURE__ */ createPebbleIcon({
@@ -210,7 +281,9 @@ export const ColumnsIcon = /* @__PURE__ */ createPebbleIcon({
210
281
  rect(1.6, 3.2, 20.8, 17.6, 4.6),
211
282
  ],
212
283
  hole: [
213
- rect(11, 1, 2, 22, 0),
284
+ ...moving("divider", [
285
+ rect(11, 1, 2, 22, 0),
286
+ ]),
214
287
  ],
215
288
  });
216
289
  export const DashboardIcon = /* @__PURE__ */ createPebbleIcon({
@@ -219,22 +292,36 @@ export const DashboardIcon = /* @__PURE__ */ createPebbleIcon({
219
292
  rect(6.4, 6.4, 11.2, 11.2, 4),
220
293
  ],
221
294
  front: [
222
- rect(2, 2, 9.3, 12, 3.8),
223
- rect(2, 15.4, 9.3, 6.6, 3),
224
- rect(12.7, 2, 9.3, 6.8, 3.2),
225
- rect(12.7, 10.2, 9.3, 11.8, 3.8),
295
+ ...moving("tile-a", [
296
+ rect(2, 2, 9.3, 12, 3.8),
297
+ ]),
298
+ ...moving("tile-b", [
299
+ rect(2, 15.4, 9.3, 6.6, 3),
300
+ ]),
301
+ ...moving("tile-c", [
302
+ rect(12.7, 2, 9.3, 6.8, 3.2),
303
+ ]),
304
+ ...moving("tile-d", [
305
+ rect(12.7, 10.2, 9.3, 11.8, 3.8),
306
+ ]),
226
307
  ],
227
308
  });
228
309
  export const FileIcon = /* @__PURE__ */ createPebbleIcon({
229
310
  name: "file",
230
311
  back: [
231
- rect(7.4, 1.6, 14, 17, 4.4),
312
+ ...moving("sheet", [
313
+ rect(7.4, 1.6, 14, 17, 4.4),
314
+ ]),
232
315
  ],
233
316
  front: [
234
- path("M2.8 9.6Q2.8 5 7.4 5H12.4Q14 5 15.1 6.1L17.3 8.3Q18.4 9.4 18.4 11V17.8Q18.4 22.4 13.8 22.4H7.4Q2.8 22.4 2.8 17.8Z"),
317
+ ...moving("front", [
318
+ path("M2.8 9.6Q2.8 5 7.4 5H12.4Q14 5 15.1 6.1L17.3 8.3Q18.4 9.4 18.4 11V17.8Q18.4 22.4 13.8 22.4H7.4Q2.8 22.4 2.8 17.8Z"),
319
+ ]),
235
320
  ],
236
321
  mark: [
237
- path("M12.65 10.75C11.86 9.94 12.11 6.32 13.61 7.61C14.22 8.14 16.02 9.55 16.02 10.38C16.03 11.63 13.29 11.37 12.65 10.75Z"),
322
+ ...moving("fold", [
323
+ path("M12.65 10.75C11.86 9.94 12.11 6.32 13.61 7.61C14.22 8.14 16.02 9.55 16.02 10.38C16.03 11.63 13.29 11.37 12.65 10.75Z"),
324
+ ]),
238
325
  ],
239
326
  });
240
327
  export const FileImportIcon = /* @__PURE__ */ createPebbleIcon({
@@ -252,10 +339,14 @@ export const FileImportIcon = /* @__PURE__ */ createPebbleIcon({
252
339
  export const FolderIcon = /* @__PURE__ */ createPebbleIcon({
253
340
  name: "folder",
254
341
  back: [
255
- path("M10.08 18.4C8.01 18.4 5.11 18.9 3.57 17.16C2.16 15.57 2.6 12.95 2.6 11C2.6 7.76 1.88 3.09 6.32 2.81C7.55 2.74 9.28 2.54 10.39 3.14C11.42 3.69 11.9 4.74 13.15 5.02C15.47 5.54 18.62 4.22 20.46 6.26C21.77 7.73 21.4 10.08 21.4 11.89C21.4 13.71 21.7 15.98 20.24 17.36C18.93 18.6 16.98 18.4 15.32 18.4C13.57 18.4 11.83 18.4 10.08 18.4Z"),
342
+ ...moving("pocket", [
343
+ path("M10.08 18.4C8.01 18.4 5.11 18.9 3.57 17.16C2.16 15.57 2.6 12.95 2.6 11C2.6 7.76 1.88 3.09 6.32 2.81C7.55 2.74 9.28 2.54 10.39 3.14C11.42 3.69 11.9 4.74 13.15 5.02C15.47 5.54 18.62 4.22 20.46 6.26C21.77 7.73 21.4 10.08 21.4 11.89C21.4 13.71 21.7 15.98 20.24 17.36C18.93 18.6 16.98 18.4 15.32 18.4C13.57 18.4 11.83 18.4 10.08 18.4Z"),
344
+ ]),
256
345
  ],
257
346
  front: [
258
- rect(1.8, 8.6, 20.4, 13.4, 4.6),
347
+ ...moving("flap", [
348
+ rect(1.8, 8.6, 20.4, 13.4, 4.6),
349
+ ]),
259
350
  ],
260
351
  });
261
352
  export const GearIcon = /* @__PURE__ */ createPebbleIcon({
@@ -281,15 +372,23 @@ export const GearIcon = /* @__PURE__ */ createPebbleIcon({
281
372
  export const GraduationCapIcon = /* @__PURE__ */ createPebbleIcon({
282
373
  name: "graduation-cap",
283
374
  back: [
284
- path("M12 20.8C9.86 20.8 6.59 19.92 5.64 17.76C5.17 16.7 5.4 15.3 5.4 14.17C5.4 12.95 5.18 11.51 6.19 10.61C7.26 9.65 9.35 10 10.72 10C12.59 10 14.5 9.9 16.36 10C17.21 10.05 17.98 10.57 18.36 11.33C18.79 12.2 18.6 13.45 18.6 14.41C18.6 15.66 18.85 17.16 18.09 18.24C16.84 20.03 14.07 20.8 12 20.8Z"),
285
- line("M20.8 9v6.8", 2),
286
- circle(20.8, 17.6, 1.9),
375
+ ...moving("cap", [
376
+ path("M12 20.8C9.86 20.8 6.59 19.92 5.64 17.76C5.17 16.7 5.4 15.3 5.4 14.17C5.4 12.95 5.18 11.51 6.19 10.61C7.26 9.65 9.35 10 10.72 10C12.59 10 14.5 9.9 16.36 10C17.21 10.05 17.98 10.57 18.36 11.33C18.79 12.2 18.6 13.45 18.6 14.41C18.6 15.66 18.85 17.16 18.09 18.24C16.84 20.03 14.07 20.8 12 20.8Z"),
377
+ ]),
378
+ ...moving("tassel", [
379
+ line("M20.8 9v6.8", 2),
380
+ circle(20.8, 17.6, 1.9),
381
+ ]),
287
382
  ],
288
383
  front: [
289
- path("M12.02 13.7C9.95 13.7 7.7 12.11 5.87 11.24C4.78 10.73 1.56 9.8 1.56 8.4C1.56 6.99 4.81 6.06 5.9 5.54C7.71 4.68 9.93 3.11 11.98 3.1C14.04 3.09 16.28 4.68 18.1 5.54C19.19 6.06 22.44 6.99 22.44 8.4C22.44 9.81 19.19 10.74 18.1 11.26C16.28 12.12 14.07 13.68 12.02 13.7Z"),
384
+ ...moving("cap", [
385
+ path("M12.02 13.7C9.95 13.7 7.7 12.11 5.87 11.24C4.78 10.73 1.56 9.8 1.56 8.4C1.56 6.99 4.81 6.06 5.9 5.54C7.71 4.68 9.93 3.11 11.98 3.1C14.04 3.09 16.28 4.68 18.1 5.54C19.19 6.06 22.44 6.99 22.44 8.4C22.44 9.81 19.19 10.74 18.1 11.26C16.28 12.12 14.07 13.68 12.02 13.7Z"),
386
+ ]),
290
387
  ],
291
388
  mark: [
292
- circle(12, 8.4, 1.7),
389
+ ...moving("cap", [
390
+ circle(12, 8.4, 1.7),
391
+ ]),
293
392
  ],
294
393
  });
295
394
  export const NoteIcon = /* @__PURE__ */ createPebbleIcon({
@@ -298,12 +397,20 @@ export const NoteIcon = /* @__PURE__ */ createPebbleIcon({
298
397
  rect(7, 1.6, 14.4, 17, 4.4),
299
398
  ],
300
399
  front: [
301
- rect(2.6, 5, 15.4, 17.4, 4.8),
400
+ ...moving("page", [
401
+ rect(2.6, 5, 15.4, 17.4, 4.8),
402
+ ]),
302
403
  ],
303
404
  mark: [
304
- line("M6.8 10.4h7", 2.2),
305
- line("M6.8 14.4h7", 2.2),
306
- line("M6.8 18.4h3.8", 2.2),
405
+ ...moving("line-1", [
406
+ line("M6.8 10.4h7", 2.2),
407
+ ]),
408
+ ...moving("line-2", [
409
+ line("M6.8 14.4h7", 2.2),
410
+ ]),
411
+ ...moving("line-3", [
412
+ line("M6.8 18.4h3.8", 2.2),
413
+ ]),
307
414
  ],
308
415
  });
309
416
  export const PencilIcon = /* @__PURE__ */ createPebbleIcon({
@@ -321,41 +428,67 @@ export const PencilIcon = /* @__PURE__ */ createPebbleIcon({
321
428
  export const PinIcon = /* @__PURE__ */ createPebbleIcon({
322
429
  name: "pin",
323
430
  back: [
324
- circle(15.2, 14.6, 5.4),
325
- rect(10.3, 14, 3.4, 9.6, 1.7, "rotate(45 12 12)"),
431
+ ...moving("spot", [
432
+ circle(15.2, 14.6, 5.4),
433
+ ]),
434
+ ...moving("needle", [
435
+ rect(10.3, 14, 3.4, 9.6, 1.7, "rotate(45 12 12)"),
436
+ ]),
326
437
  ],
327
438
  front: [
328
- rect(6.2, 1, 11.6, 5.8, 2.9, "rotate(45 12 12)"),
329
- path("M12 17.6C9.52 17.6 4.14 18.53 4.18 14.89C4.2 13.21 6.74 12.52 7.47 11.41C8.28 10.19 7.92 8.56 8.41 7.24C9.14 5.25 11.37 5.46 13.1 5.5C16.58 5.58 15.3 9.25 16.43 11.25C17.12 12.47 19.8 13.15 19.82 14.89C19.86 18.53 14.48 17.6 12 17.6Z", "rotate(45 12 12)"),
439
+ ...moving("head", [
440
+ rect(6.2, 1, 11.6, 5.8, 2.9, "rotate(45 12 12)"),
441
+ path("M12 17.6C9.52 17.6 4.14 18.53 4.18 14.89C4.2 13.21 6.74 12.52 7.47 11.41C8.28 10.19 7.92 8.56 8.41 7.24C9.14 5.25 11.37 5.46 13.1 5.5C16.58 5.58 15.3 9.25 16.43 11.25C17.12 12.47 19.8 13.15 19.82 14.89C19.86 18.53 14.48 17.6 12 17.6Z", "rotate(45 12 12)"),
442
+ ]),
330
443
  ],
331
444
  });
332
445
  export const PotIcon = /* @__PURE__ */ createPebbleIcon({
333
446
  name: "pot",
334
447
  back: [
335
- circle(4.2, 14, 3),
336
- circle(19.8, 14, 3),
337
- line("M9 2.4C7.9 3.7 10.1 4.9 9 6.4", 2.3),
338
- line("M15 2.4C13.9 3.7 16.1 4.9 15 6.4", 2.3),
339
- ],
340
- front: [
341
- path("M12 22.4C9.76 22.4 7.15 22.61 5.45 20.85C3.8 19.14 4 16.63 4 14.44C4 12.45 3.59 9.74 6.19 9.21C8.1 8.81 10.52 9.2 12.48 9.2C14.32 9.2 17.73 8.58 19.15 9.89C20.37 11.02 20 13.04 20 14.56C20 16.77 20.17 19.31 18.43 20.97C16.71 22.61 14.19 22.4 12 22.4Z"),
448
+ ...moving("pan", [
449
+ circle(4.2, 14, 3),
450
+ circle(19.8, 14, 3),
451
+ ]),
452
+ ...moving("steam-1", [
453
+ line("M9 2.4C7.9 3.7 10.1 4.9 9 6.4", 2.3),
454
+ ]),
455
+ ...moving("steam-2", [
456
+ line("M15 2.4C13.9 3.7 16.1 4.9 15 6.4", 2.3),
457
+ ]),
458
+ ],
459
+ front: [
460
+ ...moving("pan", [
461
+ path("M12 22.4C9.76 22.4 7.15 22.61 5.45 20.85C3.8 19.14 4 16.63 4 14.44C4 12.45 3.59 9.74 6.19 9.21C8.1 8.81 10.52 9.2 12.48 9.2C14.32 9.2 17.73 8.58 19.15 9.89C20.37 11.02 20 13.04 20 14.56C20 16.77 20.17 19.31 18.43 20.97C16.71 22.61 14.19 22.4 12 22.4Z"),
462
+ ]),
342
463
  ],
343
464
  mark: [
344
- line("M7.8 13.6h8.4", 2.5),
465
+ ...moving("pan", [
466
+ line("M7.8 13.6h8.4", 2.5),
467
+ ]),
345
468
  ],
346
469
  });
347
470
  export const ScreenIcon = /* @__PURE__ */ createPebbleIcon({
348
471
  name: "screen",
349
472
  back: [
350
- circle(17.2, 6.6, 5),
351
- rect(6.6, 14, 8.8, 8.6, 3),
473
+ ...moving("bubble", [
474
+ circle(17.2, 6.6, 5),
475
+ ]),
476
+ ...moving("stand", [
477
+ rect(6.6, 14, 8.8, 8.6, 3),
478
+ ]),
352
479
  ],
353
480
  front: [
354
- rect(1.8, 4.8, 19, 13.8, 4.6),
481
+ ...moving("board", [
482
+ rect(1.8, 4.8, 19, 13.8, 4.6),
483
+ ]),
355
484
  ],
356
485
  mark: [
357
- line("M6.4 10h8", 2.5),
358
- line("M6.4 14h4.4", 2.5),
486
+ ...moving("line-1", [
487
+ line("M6.4 10h8", 2.5),
488
+ ]),
489
+ ...moving("line-2", [
490
+ line("M6.4 14h4.4", 2.5),
491
+ ]),
359
492
  ],
360
493
  });
361
494
  export const SearchIcon = /* @__PURE__ */ createPebbleIcon({
@@ -373,33 +506,49 @@ export const SearchIcon = /* @__PURE__ */ createPebbleIcon({
373
506
  export const StackIcon = /* @__PURE__ */ createPebbleIcon({
374
507
  name: "stack",
375
508
  back: [
376
- sheer(0.36, rect(0, 0, 17, 17, 4.4, "translate(12 16.4) scale(1 .56) rotate(45) translate(-8.5 -8.5)")),
377
- sheer(0.64, rect(0, 0, 17, 17, 4.4, "translate(12 11.8) scale(1 .56) rotate(45) translate(-8.5 -8.5)")),
509
+ ...moving("low", [
510
+ sheer(0.36, rect(0, 0, 17, 17, 4.4, "translate(12 16.4) scale(1 .56) rotate(45) translate(-8.5 -8.5)")),
511
+ ]),
512
+ ...moving("middle", [
513
+ sheer(0.64, rect(0, 0, 17, 17, 4.4, "translate(12 11.8) scale(1 .56) rotate(45) translate(-8.5 -8.5)")),
514
+ ]),
378
515
  ],
379
516
  front: [
380
- rect(0, 0, 17, 17, 4.4, "translate(12 7.2) scale(1 .56) rotate(45) translate(-8.5 -8.5)"),
517
+ ...moving("top", [
518
+ rect(0, 0, 17, 17, 4.4, "translate(12 7.2) scale(1 .56) rotate(45) translate(-8.5 -8.5)"),
519
+ ]),
381
520
  ],
382
521
  });
383
522
  export const TrashIcon = /* @__PURE__ */ createPebbleIcon({
384
523
  name: "trash",
385
524
  back: [
386
- rect(7.9, 1, 8.2, 5.4, 2.4),
387
- rect(2.4, 3.8, 19.2, 5, 2.5),
525
+ ...moving("lid", [
526
+ rect(7.9, 1, 8.2, 5.4, 2.4),
527
+ rect(2.4, 3.8, 19.2, 5, 2.5),
528
+ ]),
388
529
  ],
389
530
  front: [
390
- path("M12 22.6C10.04 22.6 7.52 22.99 6.06 21.36C4.6 19.72 4.84 16.84 4.66 14.79C4.52 13.25 3.99 11.15 4.41 9.67C4.76 8.41 5.91 7.49 7.21 7.41C9.19 7.28 11.22 7.4 13.2 7.4C14.94 7.4 17.45 7 18.77 8.28C20.32 9.8 19.5 12.95 19.33 14.95C19.14 17.06 19.41 20.1 17.66 21.64C16.16 22.96 13.84 22.6 12 22.6Z"),
531
+ ...moving("bin", [
532
+ path("M12 22.6C10.04 22.6 7.52 22.99 6.06 21.36C4.6 19.72 4.84 16.84 4.66 14.79C4.52 13.25 3.99 11.15 4.41 9.67C4.76 8.41 5.91 7.49 7.21 7.41C9.19 7.28 11.22 7.4 13.2 7.4C14.94 7.4 17.45 7 18.77 8.28C20.32 9.8 19.5 12.95 19.33 14.95C19.14 17.06 19.41 20.1 17.66 21.64C16.16 22.96 13.84 22.6 12 22.6Z"),
533
+ ]),
391
534
  ],
392
535
  mark: [
393
- line("M9.6 12.2v5.8M14.4 12.2v5.8", 2.5),
536
+ ...moving("bin", [
537
+ line("M9.6 12.2v5.8M14.4 12.2v5.8", 2.5),
538
+ ]),
394
539
  ],
395
540
  });
396
541
  export const WarningIcon = /* @__PURE__ */ createPebbleIcon({
397
542
  name: "warning",
398
543
  front: [
399
- path("M12 22.2C10.19 22.2 8.37 22.2 6.56 22.2C4.65 22.2 2.18 22.61 1.09 20.64C0.04 18.76 1.57 16.7 2.5 15.09C3.39 13.55 4.28 12 5.17 10.45C6.07 8.89 6.97 7.33 7.86 5.77C8.81 4.14 9.79 1.76 12 1.76C14.21 1.76 15.19 4.14 16.14 5.77C17.03 7.33 17.93 8.89 18.83 10.45C19.72 12 20.61 13.55 21.5 15.09C22.43 16.7 23.96 18.76 22.91 20.64C21.82 22.61 19.35 22.2 17.44 22.2C15.63 22.2 13.81 22.2 12 22.2Z"),
544
+ ...moving("sign", [
545
+ path("M12 22.2C10.19 22.2 8.37 22.2 6.56 22.2C4.65 22.2 2.18 22.61 1.09 20.64C0.04 18.76 1.57 16.7 2.5 15.09C3.39 13.55 4.28 12 5.17 10.45C6.07 8.89 6.97 7.33 7.86 5.77C8.81 4.14 9.79 1.76 12 1.76C14.21 1.76 15.19 4.14 16.14 5.77C17.03 7.33 17.93 8.89 18.83 10.45C19.72 12 20.61 13.55 21.5 15.09C22.43 16.7 23.96 18.76 22.91 20.64C21.82 22.61 19.35 22.2 17.44 22.2C15.63 22.2 13.81 22.2 12 22.2Z"),
546
+ ]),
400
547
  ],
401
548
  mark: [
402
- line("M12 8.6v5.4", 2.8),
403
- circle(12, 18, 1.65),
549
+ ...moving("bang", [
550
+ line("M12 8.6v5.4", 2.8),
551
+ circle(12, 18, 1.65),
552
+ ]),
404
553
  ],
405
554
  });
package/icons/devices.js CHANGED
@@ -1,15 +1,21 @@
1
1
  /// Screens, devices and the hardware around them.
2
2
  import { createPebbleIcon } from "../icon.js";
3
- import { circle, line, path, rect } from "../parts.js";
3
+ import { circle, line, moving, path, rect } from "../parts.js";
4
4
  export const AppWindowIcon = /* @__PURE__ */ createPebbleIcon({
5
5
  name: "app-window",
6
6
  front: [
7
7
  rect(1.8, 3.2, 20.4, 17.6, 4.4),
8
8
  ],
9
9
  mark: [
10
- rect(3.6, 8.6, 16.8, 1.9, 0.9),
11
- circle(6.2, 6.2, 1.1),
12
- circle(9.8, 6.2, 1.1),
10
+ ...moving("bar", [
11
+ rect(3.6, 8.6, 16.8, 1.9, 0.9),
12
+ ]),
13
+ ...moving("dot-1", [
14
+ circle(6.2, 6.2, 1.1),
15
+ ]),
16
+ ...moving("dot-2", [
17
+ circle(9.8, 6.2, 1.1),
18
+ ]),
13
19
  ],
14
20
  });
15
21
  export const CameraIcon = /* @__PURE__ */ createPebbleIcon({
@@ -21,7 +27,9 @@ export const CameraIcon = /* @__PURE__ */ createPebbleIcon({
21
27
  rect(1.6, 5.8, 20.8, 15.8, 4.6),
22
28
  ],
23
29
  hole: [
24
- circle(12, 13.6, 4),
30
+ ...moving("lens", [
31
+ circle(12, 13.6, 4),
32
+ ]),
25
33
  ],
26
34
  });
27
35
  export const ChipIcon = /* @__PURE__ */ createPebbleIcon({
@@ -96,8 +104,12 @@ export const FloppyIcon = /* @__PURE__ */ createPebbleIcon({
96
104
  path("M3.56 20.46C2.45 19.35 2.6 17.68 2.6 16.24C2.6 14.83 2.6 13.41 2.6 12C2.6 10.59 2.6 9.17 2.6 7.76C2.6 6.31 2.45 4.61 3.59 3.51C5.25 1.91 8.81 2.6 10.92 2.6C12.85 2.6 15.63 2.11 17.13 3.53C18.37 4.71 20.32 6.19 21.06 7.73C21.81 9.29 21.4 11.77 21.4 13.48C21.4 15.58 22.09 19.12 20.26 20.62C19.12 21.56 17.54 21.4 16.16 21.4C14.63 21.4 13.09 21.4 11.56 21.4C10.24 21.4 8.92 21.4 7.6 21.4C6.21 21.4 4.64 21.51 3.56 20.46Z"),
97
105
  ],
98
106
  mark: [
99
- rect(6.8, 2.6, 8.4, 5.8, 1.4),
100
- circle(12, 15, 3.2),
107
+ ...moving("label", [
108
+ rect(6.8, 2.6, 8.4, 5.8, 1.4),
109
+ ]),
110
+ ...moving("disk", [
111
+ circle(12, 15, 3.2),
112
+ ]),
101
113
  ],
102
114
  });
103
115
  export const KeyboardIcon = /* @__PURE__ */ createPebbleIcon({
@@ -106,11 +118,21 @@ export const KeyboardIcon = /* @__PURE__ */ createPebbleIcon({
106
118
  rect(1.2, 4.4, 21.6, 15.2, 4),
107
119
  ],
108
120
  mark: [
109
- circle(5.4, 9.4, 1.35),
110
- circle(9.8, 9.4, 1.35),
111
- circle(14.2, 9.4, 1.35),
112
- circle(18.6, 9.4, 1.35),
113
- line("M7.8 15.2h8.4", 2.3),
121
+ ...moving("key-1", [
122
+ circle(5.4, 9.4, 1.35),
123
+ ]),
124
+ ...moving("key-2", [
125
+ circle(9.8, 9.4, 1.35),
126
+ ]),
127
+ ...moving("key-3", [
128
+ circle(14.2, 9.4, 1.35),
129
+ ]),
130
+ ...moving("key-4", [
131
+ circle(18.6, 9.4, 1.35),
132
+ ]),
133
+ ...moving("space", [
134
+ line("M7.8 15.2h8.4", 2.3),
135
+ ]),
114
136
  ],
115
137
  });
116
138
  export const LaptopIcon = /* @__PURE__ */ createPebbleIcon({
@@ -129,10 +151,14 @@ export const LaptopOffIcon = /* @__PURE__ */ createPebbleIcon({
129
151
  ],
130
152
  front: [
131
153
  rect(3.8, 3.6, 16.4, 12.6, 3.2),
132
- line("M3.4 3.4l17.2 17.2", 2.8),
154
+ ...moving("strike", [
155
+ line("M3.4 3.4l17.2 17.2", 2.8),
156
+ ]),
133
157
  ],
134
158
  hole: [
135
- line("M6.2 2.2l17.4 17.4M.4 4.8l17.4 17.4", 1.5),
159
+ ...moving("strike", [
160
+ line("M6.2 2.2l17.4 17.4M.4 4.8l17.4 17.4", 1.5),
161
+ ]),
136
162
  ],
137
163
  });
138
164
  export const MobileIcon = /* @__PURE__ */ createPebbleIcon({
@@ -170,8 +196,12 @@ export const PhotoIcon = /* @__PURE__ */ createPebbleIcon({
170
196
  rect(2.2, 2.8, 19.6, 18.4, 4.6),
171
197
  ],
172
198
  mark: [
173
- circle(8.2, 8.6, 2),
174
- path("M12.12 18.4C10.91 18.4 9.69 18.4 8.48 18.4C7.84 18.4 6.65 18.62 6.19 18.1C5.97 17.84 5.9 17.47 6.03 17.15C6.39 16.3 7.53 15.46 8.16 14.78C8.83 14.06 9.72 12.65 10.69 12.35C12.09 11.91 12.52 14.29 13.8 14.01C14.85 13.77 15.21 12.1 16.4 12.1C17.21 12.1 19.11 14.05 19.4 14.8C19.58 15.27 19.4 16.17 19.4 16.68C19.4 17.19 19.52 17.84 19.06 18.2C18.53 18.63 17.33 18.4 16.68 18.4C15.16 18.4 13.64 18.4 12.12 18.4Z"),
199
+ ...moving("sun", [
200
+ circle(8.2, 8.6, 2),
201
+ ]),
202
+ ...moving("hills", [
203
+ path("M12.12 18.4C10.91 18.4 9.69 18.4 8.48 18.4C7.84 18.4 6.65 18.62 6.19 18.1C5.97 17.84 5.9 17.47 6.03 17.15C6.39 16.3 7.53 15.46 8.16 14.78C8.83 14.06 9.72 12.65 10.69 12.35C12.09 11.91 12.52 14.29 13.8 14.01C14.85 13.77 15.21 12.1 16.4 12.1C17.21 12.1 19.11 14.05 19.4 14.8C19.58 15.27 19.4 16.17 19.4 16.68C19.4 17.19 19.52 17.84 19.06 18.2C18.53 18.63 17.33 18.4 16.68 18.4C15.16 18.4 13.64 18.4 12.12 18.4Z"),
204
+ ]),
175
205
  ],
176
206
  });
177
207
  export const PlugIcon = /* @__PURE__ */ createPebbleIcon({
@@ -190,8 +220,12 @@ export const ServerIcon = /* @__PURE__ */ createPebbleIcon({
190
220
  rect(2.2, 12.8, 19.6, 8.8, 3),
191
221
  ],
192
222
  mark: [
193
- circle(6.8, 6.8, 1.5),
194
- circle(6.8, 17.2, 1.5),
223
+ ...moving("light-1", [
224
+ circle(6.8, 6.8, 1.5),
225
+ ]),
226
+ ...moving("light-2", [
227
+ circle(6.8, 17.2, 1.5),
228
+ ]),
195
229
  ],
196
230
  });
197
231
  export const TabletIcon = /* @__PURE__ */ createPebbleIcon({
@@ -206,10 +240,16 @@ export const TabletIcon = /* @__PURE__ */ createPebbleIcon({
206
240
  export const TerminalIcon = /* @__PURE__ */ createPebbleIcon({
207
241
  name: "terminal",
208
242
  front: [
209
- rect(1.8, 3.2, 20.4, 17.6, 4.4),
243
+ ...moving("window", [
244
+ rect(1.8, 3.2, 20.4, 17.6, 4.4),
245
+ ]),
210
246
  ],
211
247
  mark: [
212
- line("M6.2 8.4l3.6 3.6-3.6 3.6", 2.4),
213
- line("M12.6 16h5", 2.4),
248
+ ...moving("prompt", [
249
+ line("M6.2 8.4l3.6 3.6-3.6 3.6", 2.4),
250
+ ]),
251
+ ...moving("cursor", [
252
+ line("M12.6 16h5", 2.4),
253
+ ]),
214
254
  ],
215
255
  });