@nookly/pebble-icons 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/icons/editor.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /// What a text editor is made of.
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 BoldIcon = /* @__PURE__ */ createPebbleIcon({
5
5
  name: "bold",
6
6
  front: [
@@ -55,65 +55,105 @@ export const FunctionIcon = /* @__PURE__ */ createPebbleIcon({
55
55
  export const GridIcon = /* @__PURE__ */ createPebbleIcon({
56
56
  name: "grid",
57
57
  back: [
58
- rect(12.8, 2.2, 9, 9, 3),
59
- rect(2.2, 12.8, 9, 9, 3),
58
+ ...moving("tile-2", [
59
+ rect(12.8, 2.2, 9, 9, 3),
60
+ ]),
61
+ ...moving("tile-4", [
62
+ rect(2.2, 12.8, 9, 9, 3),
63
+ ]),
60
64
  ],
61
65
  front: [
62
- rect(2.2, 2.2, 9, 9, 3),
63
- rect(12.8, 12.8, 9, 9, 3),
66
+ ...moving("tile-1", [
67
+ rect(2.2, 2.2, 9, 9, 3),
68
+ ]),
69
+ ...moving("tile-3", [
70
+ rect(12.8, 12.8, 9, 9, 3),
71
+ ]),
64
72
  ],
65
73
  });
66
74
  export const GridPlusIcon = /* @__PURE__ */ createPebbleIcon({
67
75
  name: "grid-plus",
68
76
  back: [
69
- rect(12.8, 2.2, 9, 9, 3),
70
- rect(2.2, 12.8, 9, 9, 3),
77
+ ...moving("tile-2", [
78
+ rect(12.8, 2.2, 9, 9, 3),
79
+ ]),
80
+ ...moving("tile-4", [
81
+ rect(2.2, 12.8, 9, 9, 3),
82
+ ]),
71
83
  ],
72
84
  front: [
73
- rect(2.2, 2.2, 9, 9, 3),
74
- line("M17.3 13.6v7.4M13.6 17.3H21", 3.2),
85
+ ...moving("tile-1", [
86
+ rect(2.2, 2.2, 9, 9, 3),
87
+ ]),
88
+ ...moving("plus", [
89
+ line("M17.3 13.6v7.4M13.6 17.3H21", 3.2),
90
+ ]),
75
91
  ],
76
92
  });
77
93
  export const Heading1Icon = /* @__PURE__ */ createPebbleIcon({
78
94
  name: "heading-1",
79
95
  front: [
80
- line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
81
- line("M15.8 12.6l2.8-1.8V18", 2.7),
96
+ ...moving("letter", [
97
+ line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
98
+ ]),
99
+ ...moving("digit", [
100
+ line("M15.8 12.6l2.8-1.8V18", 2.7),
101
+ ]),
82
102
  ],
83
103
  });
84
104
  export const Heading2Icon = /* @__PURE__ */ createPebbleIcon({
85
105
  name: "heading-2",
86
106
  front: [
87
- line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
88
- line("M15.4 12.6c.4-1.4 1.4-2 2.7-2 1.6 0 2.5.9 2.5 2.2 0 .8-.4 1.5-1.2 2.3L15.6 18h5.2", 2.7),
107
+ ...moving("letter", [
108
+ line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
109
+ ]),
110
+ ...moving("digit", [
111
+ line("M15.4 12.6c.4-1.4 1.4-2 2.7-2 1.6 0 2.5.9 2.5 2.2 0 .8-.4 1.5-1.2 2.3L15.6 18h5.2", 2.7),
112
+ ]),
89
113
  ],
90
114
  });
91
115
  export const Heading3Icon = /* @__PURE__ */ createPebbleIcon({
92
116
  name: "heading-3",
93
117
  front: [
94
- line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
95
- line("M15.6 10.8h4.8l-2.8 3c2 0 3.2.9 3.2 2.2 0 1.3-1.2 2.2-2.8 2.2-1.2 0-2.2-.5-2.7-1.4", 2.7),
118
+ ...moving("letter", [
119
+ line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
120
+ ]),
121
+ ...moving("digit", [
122
+ line("M15.6 10.8h4.8l-2.8 3c2 0 3.2.9 3.2 2.2 0 1.3-1.2 2.2-2.8 2.2-1.2 0-2.2-.5-2.7-1.4", 2.7),
123
+ ]),
96
124
  ],
97
125
  });
98
126
  export const Heading4Icon = /* @__PURE__ */ createPebbleIcon({
99
127
  name: "heading-4",
100
128
  front: [
101
- line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
102
- line("M19.2 18.2v-7.4L15 16h6.2", 2.7),
129
+ ...moving("letter", [
130
+ line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
131
+ ]),
132
+ ...moving("digit", [
133
+ line("M19.2 18.2v-7.4L15 16h6.2", 2.7),
134
+ ]),
103
135
  ],
104
136
  });
105
137
  export const Heading5Icon = /* @__PURE__ */ createPebbleIcon({
106
138
  name: "heading-5",
107
139
  front: [
108
- line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
109
- line("M20.2 10.8H16l-.4 3.4c.6-.5 1.4-.7 2.4-.7 1.6 0 2.8.9 2.8 2.4s-1.2 2.4-2.8 2.4c-1.2 0-2.2-.5-2.7-1.4", 2.7),
140
+ ...moving("letter", [
141
+ line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
142
+ ]),
143
+ ...moving("digit", [
144
+ line("M20.2 10.8H16l-.4 3.4c.6-.5 1.4-.7 2.4-.7 1.6 0 2.8.9 2.8 2.4s-1.2 2.4-2.8 2.4c-1.2 0-2.2-.5-2.7-1.4", 2.7),
145
+ ]),
110
146
  ],
111
147
  });
112
148
  export const Heading6Icon = /* @__PURE__ */ createPebbleIcon({
113
149
  name: "heading-6",
114
150
  front: [
115
- line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
116
- line("M20 11.4c-.5-.5-1.1-.7-1.8-.7-1.8 0-2.8 1.6-2.8 4.2 0 2.4 1.1 3.4 2.8 3.4 1.5 0 2.7-.9 2.7-2.4s-1.1-2.3-2.6-2.3c-1.2 0-2.3.6-2.8 1.6", 2.7),
151
+ ...moving("letter", [
152
+ line("M3.2 6v12M10.4 6v12M3.2 12h7.2", 3),
153
+ ]),
154
+ ...moving("digit", [
155
+ line("M20 11.4c-.5-.5-1.1-.7-1.8-.7-1.8 0-2.8 1.6-2.8 4.2 0 2.4 1.1 3.4 2.8 3.4 1.5 0 2.7-.9 2.7-2.4s-1.1-2.3-2.6-2.3c-1.2 0-2.3.6-2.8 1.6", 2.7),
156
+ ]),
117
157
  ],
118
158
  });
119
159
  export const HeadingIcon = /* @__PURE__ */ createPebbleIcon({
@@ -131,11 +171,17 @@ export const ItalicIcon = /* @__PURE__ */ createPebbleIcon({
131
171
  export const KanbanIcon = /* @__PURE__ */ createPebbleIcon({
132
172
  name: "kanban",
133
173
  back: [
134
- rect(9.1, 2.6, 5.8, 11.4, 2.4),
174
+ ...moving("column-2", [
175
+ rect(9.1, 2.6, 5.8, 11.4, 2.4),
176
+ ]),
135
177
  ],
136
178
  front: [
137
- rect(2, 2.6, 5.8, 18.8, 2.4),
138
- rect(16.2, 2.6, 5.8, 15.4, 2.4),
179
+ ...moving("column-1", [
180
+ rect(2, 2.6, 5.8, 18.8, 2.4),
181
+ ]),
182
+ ...moving("column-3", [
183
+ rect(16.2, 2.6, 5.8, 15.4, 2.4),
184
+ ]),
139
185
  ],
140
186
  });
141
187
  export const LetterCaseIcon = /* @__PURE__ */ createPebbleIcon({
@@ -162,8 +208,12 @@ export const ListDetailsIcon = /* @__PURE__ */ createPebbleIcon({
162
208
  line("M14.2 5h6.4M14.2 9h3.6M14.2 15.4h6.4M14.2 19.4h3.6", 2.8),
163
209
  ],
164
210
  front: [
165
- rect(2.4, 2.8, 8, 8, 2.6),
166
- rect(2.4, 13.2, 8, 8, 2.6),
211
+ ...moving("box-1", [
212
+ rect(2.4, 2.8, 8, 8, 2.6),
213
+ ]),
214
+ ...moving("box-2", [
215
+ rect(2.4, 13.2, 8, 8, 2.6),
216
+ ]),
167
217
  ],
168
218
  });
169
219
  export const ListIcon = /* @__PURE__ */ createPebbleIcon({
@@ -172,9 +222,15 @@ export const ListIcon = /* @__PURE__ */ createPebbleIcon({
172
222
  line("M11 6h9.4M11 12h9.4M11 18h9.4", 3.4),
173
223
  ],
174
224
  front: [
175
- circle(4.4, 6, 2.4),
176
- circle(4.4, 12, 2.4),
177
- circle(4.4, 18, 2.4),
225
+ ...moving("bullet-1", [
226
+ circle(4.4, 6, 2.4),
227
+ ]),
228
+ ...moving("bullet-2", [
229
+ circle(4.4, 12, 2.4),
230
+ ]),
231
+ ...moving("bullet-3", [
232
+ circle(4.4, 18, 2.4),
233
+ ]),
178
234
  ],
179
235
  });
180
236
  export const ListNumbersIcon = /* @__PURE__ */ createPebbleIcon({
@@ -189,8 +245,12 @@ export const ListNumbersIcon = /* @__PURE__ */ createPebbleIcon({
189
245
  export const MathFractionIcon = /* @__PURE__ */ createPebbleIcon({
190
246
  name: "math-fraction",
191
247
  back: [
192
- rect(7.4, 1.6, 9.2, 7.4, 2.6),
193
- rect(7.4, 15, 9.2, 7.4, 2.6),
248
+ ...moving("top", [
249
+ rect(7.4, 1.6, 9.2, 7.4, 2.6),
250
+ ]),
251
+ ...moving("bottom", [
252
+ rect(7.4, 15, 9.2, 7.4, 2.6),
253
+ ]),
194
254
  ],
195
255
  front: [
196
256
  line("M3.6 12h16.8", 3.4),
@@ -223,13 +283,19 @@ export const NumberIcon = /* @__PURE__ */ createPebbleIcon({
223
283
  export const PencilRulerIcon = /* @__PURE__ */ createPebbleIcon({
224
284
  name: "pencil-ruler",
225
285
  back: [
226
- rect(8.6, -0.6, 6.8, 25.2, 2.2, "rotate(-45 12 12)"),
286
+ ...moving("ruler", [
287
+ rect(8.6, -0.6, 6.8, 25.2, 2.2, "rotate(-45 12 12)"),
288
+ ]),
227
289
  ],
228
290
  front: [
229
- path("M8.6 2.6Q8.6-.2 12-.2T15.4 2.6V17.4L13.2 22.2Q12 24.2 10.8 22.2L8.6 17.4Z", "rotate(45 12 12)"),
291
+ ...moving("pencil", [
292
+ path("M8.6 2.6Q8.6-.2 12-.2T15.4 2.6V17.4L13.2 22.2Q12 24.2 10.8 22.2L8.6 17.4Z", "rotate(45 12 12)"),
293
+ ]),
230
294
  ],
231
295
  mark: [
232
- line("M9.8 5.4h4.4M9.8 16.4h4.4", 1.5, "rotate(45 12 12)"),
296
+ ...moving("pencil", [
297
+ line("M9.8 5.4h4.4M9.8 16.4h4.4", 1.5, "rotate(45 12 12)"),
298
+ ]),
233
299
  ],
234
300
  });
235
301
  export const RectangleIcon = /* @__PURE__ */ createPebbleIcon({
@@ -259,9 +325,13 @@ export const ReplaceIcon = /* @__PURE__ */ createPebbleIcon({
259
325
  rect(2, 2, 8.4, 8.4, 2.8),
260
326
  ],
261
327
  front: [
262
- rect(12, 12, 10, 10, 3),
263
- line("M12.8 5h1.4a4 4 0 0 1 4 4", 2.8),
264
- path("M-6-4.4Q-6-6.8-4.2-5.2L-.4-1.6Q1.1 0-.4 1.6L-4.2 5.2Q-6 6.8-6 4.4Z", "translate(18.2 11) rotate(90) scale(0.6)"),
328
+ ...moving("target", [
329
+ rect(12, 12, 10, 10, 3),
330
+ ]),
331
+ ...moving("arrow", [
332
+ line("M12.8 5h1.4a4 4 0 0 1 4 4", 2.8),
333
+ path("M-6-4.4Q-6-6.8-4.2-5.2L-.4-1.6Q1.1 0-.4 1.6L-4.2 5.2Q-6 6.8-6 4.4Z", "translate(18.2 11) rotate(90) scale(0.6)"),
334
+ ]),
265
335
  ],
266
336
  });
267
337
  export const RowInsertBottomIcon = /* @__PURE__ */ createPebbleIcon({
@@ -312,9 +382,15 @@ export const SelectAllIcon = /* @__PURE__ */ createPebbleIcon({
312
382
  export const SeparatorIcon = /* @__PURE__ */ createPebbleIcon({
313
383
  name: "separator",
314
384
  front: [
315
- line("M3.6 12h16.8", 3.4),
316
- path("M-6-4.4Q-6-6.8-4.2-5.2L-.4-1.6Q1.1 0-.4 1.6L-4.2 5.2Q-6 6.8-6 4.4Z", "translate(12 2.2) rotate(-90) scale(0.8)"),
317
- path("M-6-4.4Q-6-6.8-4.2-5.2L-.4-1.6Q1.1 0-.4 1.6L-4.2 5.2Q-6 6.8-6 4.4Z", "translate(12 21.8) rotate(90) scale(0.8)"),
385
+ ...moving("line", [
386
+ line("M3.6 12h16.8", 3.4),
387
+ ]),
388
+ ...moving("up", [
389
+ path("M-6-4.4Q-6-6.8-4.2-5.2L-.4-1.6Q1.1 0-.4 1.6L-4.2 5.2Q-6 6.8-6 4.4Z", "translate(12 2.2) rotate(-90) scale(0.8)"),
390
+ ]),
391
+ ...moving("down", [
392
+ path("M-6-4.4Q-6-6.8-4.2-5.2L-.4-1.6Q1.1 0-.4 1.6L-4.2 5.2Q-6 6.8-6 4.4Z", "translate(12 21.8) rotate(90) scale(0.8)"),
393
+ ]),
318
394
  ],
319
395
  });
320
396
  export const SidebarLeftCollapseIcon = /* @__PURE__ */ createPebbleIcon({
@@ -323,8 +399,12 @@ export const SidebarLeftCollapseIcon = /* @__PURE__ */ createPebbleIcon({
323
399
  rect(2, 2.8, 20, 18.4, 4.6),
324
400
  ],
325
401
  front: [
326
- rect(2, 2.8, 7.8, 18.4, 3.6),
327
- line("M17.6 8.8L14.4 12l3.2 3.2", 3),
402
+ ...moving("column", [
403
+ rect(2, 2.8, 7.8, 18.4, 3.6),
404
+ ]),
405
+ ...moving("arrow", [
406
+ line("M17.6 8.8L14.4 12l3.2 3.2", 3),
407
+ ]),
328
408
  ],
329
409
  });
330
410
  export const SidebarLeftExpandIcon = /* @__PURE__ */ createPebbleIcon({
@@ -333,8 +413,12 @@ export const SidebarLeftExpandIcon = /* @__PURE__ */ createPebbleIcon({
333
413
  rect(2, 2.8, 20, 18.4, 4.6),
334
414
  ],
335
415
  front: [
336
- rect(2, 2.8, 7.8, 18.4, 3.6),
337
- line("M14.6 8.8l3.2 3.2-3.2 3.2", 3),
416
+ ...moving("column", [
417
+ rect(2, 2.8, 7.8, 18.4, 3.6),
418
+ ]),
419
+ ...moving("arrow", [
420
+ line("M14.6 8.8l3.2 3.2-3.2 3.2", 3),
421
+ ]),
338
422
  ],
339
423
  });
340
424
  export const SidebarLeftIcon = /* @__PURE__ */ createPebbleIcon({
@@ -343,7 +427,9 @@ export const SidebarLeftIcon = /* @__PURE__ */ createPebbleIcon({
343
427
  rect(2, 2.8, 20, 18.4, 4.6),
344
428
  ],
345
429
  front: [
346
- rect(2, 2.8, 7.8, 18.4, 3.6),
430
+ ...moving("column", [
431
+ rect(2, 2.8, 7.8, 18.4, 3.6),
432
+ ]),
347
433
  ],
348
434
  });
349
435
  export const SidebarRightCollapseIcon = /* @__PURE__ */ createPebbleIcon({
@@ -352,8 +438,12 @@ export const SidebarRightCollapseIcon = /* @__PURE__ */ createPebbleIcon({
352
438
  rect(2, 2.8, 20, 18.4, 4.6),
353
439
  ],
354
440
  front: [
355
- rect(14.2, 2.8, 7.8, 18.4, 3.6),
356
- line("M6.4 8.8L9.6 12l-3.2 3.2", 3),
441
+ ...moving("column", [
442
+ rect(14.2, 2.8, 7.8, 18.4, 3.6),
443
+ ]),
444
+ ...moving("arrow", [
445
+ line("M6.4 8.8L9.6 12l-3.2 3.2", 3),
446
+ ]),
357
447
  ],
358
448
  });
359
449
  export const SidebarRightExpandIcon = /* @__PURE__ */ createPebbleIcon({
@@ -362,8 +452,12 @@ export const SidebarRightExpandIcon = /* @__PURE__ */ createPebbleIcon({
362
452
  rect(2, 2.8, 20, 18.4, 4.6),
363
453
  ],
364
454
  front: [
365
- rect(14.2, 2.8, 7.8, 18.4, 3.6),
366
- line("M9.4 8.8L6.2 12l3.2 3.2", 3),
455
+ ...moving("column", [
456
+ rect(14.2, 2.8, 7.8, 18.4, 3.6),
457
+ ]),
458
+ ...moving("arrow", [
459
+ line("M9.4 8.8L6.2 12l3.2 3.2", 3),
460
+ ]),
367
461
  ],
368
462
  });
369
463
  export const SidebarRightIcon = /* @__PURE__ */ createPebbleIcon({
@@ -372,7 +466,9 @@ export const SidebarRightIcon = /* @__PURE__ */ createPebbleIcon({
372
466
  rect(2, 2.8, 20, 18.4, 4.6),
373
467
  ],
374
468
  front: [
375
- rect(14.2, 2.8, 7.8, 18.4, 3.6),
469
+ ...moving("column", [
470
+ rect(14.2, 2.8, 7.8, 18.4, 3.6),
471
+ ]),
376
472
  ],
377
473
  });
378
474
  export const SpellcheckIcon = /* @__PURE__ */ createPebbleIcon({
@@ -421,10 +517,14 @@ export const TableOffIcon = /* @__PURE__ */ createPebbleIcon({
421
517
  ],
422
518
  front: [
423
519
  rect(2, 2.4, 20, 6.4, 2.8),
424
- line("M3.4 3.4l17.2 17.2", 2.8),
520
+ ...moving("strike", [
521
+ line("M3.4 3.4l17.2 17.2", 2.8),
522
+ ]),
425
523
  ],
426
524
  hole: [
427
- line("M6.2 2.2l17.4 17.4M.4 4.8l17.4 17.4", 1.5),
525
+ ...moving("strike", [
526
+ line("M6.2 2.2l17.4 17.4M.4 4.8l17.4 17.4", 1.5),
527
+ ]),
428
528
  ],
429
529
  });
430
530
  export const TableRowIcon = /* @__PURE__ */ createPebbleIcon({