@nookly/pebble-icons 0.0.0-stage → 0.1.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 +110 -2
- package/frame.d.ts +10 -0
- package/frame.js +5 -0
- package/icon.d.ts +17 -0
- package/icon.js +46 -0
- package/icons/arrows.d.ts +32 -0
- package/icons/arrows.js +268 -0
- package/icons/calendar.d.ts +16 -0
- package/icons/calendar.js +224 -0
- package/icons/core.d.ts +33 -0
- package/icons/core.js +405 -0
- package/icons/devices.d.ts +20 -0
- package/icons/devices.js +215 -0
- package/icons/documents.d.ts +36 -0
- package/icons/documents.js +411 -0
- package/icons/editor.d.ts +53 -0
- package/icons/editor.js +484 -0
- package/icons/interface.d.ts +45 -0
- package/icons/interface.js +440 -0
- package/icons/symbols.d.ts +44 -0
- package/icons/symbols.js +408 -0
- package/icons/world.d.ts +30 -0
- package/icons/world.js +325 -0
- package/icons.d.ts +9 -0
- package/icons.js +11 -0
- package/index.d.ts +2 -0
- package/index.js +1 -0
- package/package.json +37 -4
- package/parts.d.ts +48 -0
- package/parts.js +45 -0
package/icons/world.js
ADDED
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
/// The wider world: maps, people, communication and the web.
|
|
2
|
+
import { createPebbleIcon } from "../icon.js";
|
|
3
|
+
import { circle, line, path, rect } from "../parts.js";
|
|
4
|
+
export const AppleIcon = /* @__PURE__ */ createPebbleIcon({
|
|
5
|
+
name: "apple",
|
|
6
|
+
back: [
|
|
7
|
+
path("M12.95 2.25C13.73 1.48 15.87 0.51 16.88 1.24C18.02 2.06 16.89 4.11 16.15 4.85C15.41 5.59 13.52 6.69 12.49 6.11C11.21 5.38 12.17 3.04 12.95 2.25Z"),
|
|
8
|
+
],
|
|
9
|
+
front: [
|
|
10
|
+
path("M12.02 21.6C10.36 21.6 9.09 22.73 7.43 21.87C3.11 19.65 0.49 10.9 4.43 7.34C5.79 6.11 7.77 5.66 9.54 6.08C10.35 6.27 10.94 6.8 11.84 6.84C13.32 6.9 14.5 5.88 16.04 5.93C24.25 6.22 21.75 18.51 16.94 21.66C15.15 22.83 13.85 21.62 12.02 21.6Z"),
|
|
11
|
+
],
|
|
12
|
+
});
|
|
13
|
+
export const BackpackIcon = /* @__PURE__ */ createPebbleIcon({
|
|
14
|
+
name: "backpack",
|
|
15
|
+
back: [
|
|
16
|
+
line("M8.8 7V5Q8.8 2 12 2T15.2 5V7", 2.6),
|
|
17
|
+
rect(1.6, 11.4, 5.6, 9, 2.4),
|
|
18
|
+
rect(16.8, 11.4, 5.6, 9, 2.4),
|
|
19
|
+
],
|
|
20
|
+
front: [
|
|
21
|
+
path("M4.4 11.6Q4.4 4.8 12 4.8T19.6 11.6V18.6Q19.6 22.6 15.6 22.6H8.4Q4.4 22.6 4.4 18.6Z"),
|
|
22
|
+
],
|
|
23
|
+
mark: [
|
|
24
|
+
rect(7.4, 13.6, 9.2, 5.8, 2.4),
|
|
25
|
+
line("M9.4 9.4h5.2", 2),
|
|
26
|
+
],
|
|
27
|
+
});
|
|
28
|
+
export const BeerIcon = /* @__PURE__ */ createPebbleIcon({
|
|
29
|
+
name: "beer",
|
|
30
|
+
back: [
|
|
31
|
+
circle(6.2, 5.6, 3.2),
|
|
32
|
+
circle(10.6, 4.2, 3.6),
|
|
33
|
+
circle(14.6, 5.8, 3),
|
|
34
|
+
],
|
|
35
|
+
front: [
|
|
36
|
+
rect(3.6, 7, 13, 15.4, 3.4),
|
|
37
|
+
line("M17 10.4h1.4q2.8 0 2.8 2.8v2.4q0 2.8-2.8 2.8H17", 2.5),
|
|
38
|
+
],
|
|
39
|
+
mark: [
|
|
40
|
+
line("M7.8 11.6v6.2M12.4 11.6v6.2", 2),
|
|
41
|
+
],
|
|
42
|
+
});
|
|
43
|
+
export const BreadIcon = /* @__PURE__ */ createPebbleIcon({
|
|
44
|
+
name: "bread",
|
|
45
|
+
front: [
|
|
46
|
+
path("M12 3.6C16.08 3.6 23.32 4.24 22.77 9.95C22.59 11.87 20.8 12.45 20.48 14.33C20.1 16.51 21.36 20.83 17.84 20.99C15.25 21.11 12.63 21 10.04 21C8.5 21 6.16 21.43 4.86 20.51C2.71 18.98 4.01 16.06 3.43 13.9C2.98 12.22 1.4 11.76 1.23 9.95C0.68 4.24 7.92 3.6 12 3.6Z"),
|
|
47
|
+
],
|
|
48
|
+
mark: [
|
|
49
|
+
line("M8.8 8.4l-1.8 3.4M13.8 8.4L12 11.8M18.4 8.8L17 11.4", 1.9),
|
|
50
|
+
],
|
|
51
|
+
});
|
|
52
|
+
export const BriefcaseIcon = /* @__PURE__ */ createPebbleIcon({
|
|
53
|
+
name: "briefcase",
|
|
54
|
+
front: [
|
|
55
|
+
line("M8.6 8V5.4q0-2 2-2h2.8q2 0 2 2V8", 2.7),
|
|
56
|
+
rect(1.8, 6.8, 20.4, 15.2, 4.4),
|
|
57
|
+
],
|
|
58
|
+
mark: [
|
|
59
|
+
rect(1.8, 12.4, 20.4, 1.9, 0),
|
|
60
|
+
],
|
|
61
|
+
});
|
|
62
|
+
export const CakeIcon = /* @__PURE__ */ createPebbleIcon({
|
|
63
|
+
name: "cake",
|
|
64
|
+
front: [
|
|
65
|
+
rect(2.4, 10.4, 19.2, 12, 3.4),
|
|
66
|
+
rect(10.7, 5, 2.6, 7, 1.3),
|
|
67
|
+
circle(12, 3.4, 2.2),
|
|
68
|
+
],
|
|
69
|
+
mark: [
|
|
70
|
+
line("M3 15.4q2.25 2.6 4.5 0t4.5 0 4.5 0 4.5 0", 1.9),
|
|
71
|
+
],
|
|
72
|
+
});
|
|
73
|
+
export const ChefHatIcon = /* @__PURE__ */ createPebbleIcon({
|
|
74
|
+
name: "chef-hat",
|
|
75
|
+
front: [
|
|
76
|
+
path("M12 1.6C13.3 1.6 14.61 1.91 15.63 2.76C16.2 3.24 16.5 3.88 17.19 4.26C18.09 4.77 19.14 4.67 20.05 5.16C22.05 6.23 22.57 8.91 21.93 10.93C21.63 11.86 21.05 12.66 20.24 13.21C19.39 13.79 18.65 13.94 18.11 14.94C17.19 16.63 18.09 18.61 17.17 20.26C15.87 22.57 12.14 22.06 9.8 22C8.1 21.96 6.62 20.72 6.42 19C6.27 17.71 6.59 16.49 6.04 15.25C5.2 13.31 2.82 13.16 2.1 11C1.42 8.98 1.92 6.27 3.91 5.18C4.84 4.68 5.9 4.78 6.81 4.26C7.5 3.88 7.8 3.24 8.37 2.76C9.39 1.91 10.7 1.6 12 1.6Z"),
|
|
77
|
+
],
|
|
78
|
+
mark: [
|
|
79
|
+
rect(6.4, 16.8, 11.2, 1.9, 0),
|
|
80
|
+
],
|
|
81
|
+
});
|
|
82
|
+
export const CoffeeIcon = /* @__PURE__ */ createPebbleIcon({
|
|
83
|
+
name: "coffee",
|
|
84
|
+
back: [
|
|
85
|
+
line("M7.4 2.4v3.4M12.4 2.4v3.4", 2.5),
|
|
86
|
+
],
|
|
87
|
+
front: [
|
|
88
|
+
path("M10 22C7.84 22 5.47 21.53 4.08 19.72C2.72 17.96 2.8 15.71 2.8 13.6C2.8 12.59 2.63 11.34 3.03 10.4C3.46 9.38 4.47 8.67 5.57 8.61C7.44 8.5 9.33 8.6 11.2 8.6C12.77 8.6 14.98 8.24 16.22 9.35C17.46 10.47 17.2 12.25 17.2 13.76C17.2 15.51 17.26 17.31 16.43 18.91C15.2 21.31 12.5 22 10 22Z"),
|
|
89
|
+
line("M17.4 10.8h1.2q2.8 0 2.8 2.8t-3.8 3.4", 2.5),
|
|
90
|
+
],
|
|
91
|
+
});
|
|
92
|
+
export const DrumstickIcon = /* @__PURE__ */ createPebbleIcon({
|
|
93
|
+
name: "drumstick",
|
|
94
|
+
back: [
|
|
95
|
+
line("M9.6 14.4l-4.8 4.8", 3.4),
|
|
96
|
+
circle(3.4, 17.8, 2.4),
|
|
97
|
+
circle(6.2, 20.6, 2.4),
|
|
98
|
+
],
|
|
99
|
+
front: [
|
|
100
|
+
path("M22.1 10.46C21.28 14.72 15.8 17.56 11.72 16.62C10.72 16.39 10.09 15.69 9.4 15C7.67 13.27 6.83 11.75 7.27 9.25C7.83 6.16 10.07 2.65 13.28 1.87C14.09 1.67 15.05 1.8 15.87 1.92C20.05 2.51 22.88 6.23 22.1 10.46Z"),
|
|
101
|
+
],
|
|
102
|
+
});
|
|
103
|
+
export const FishIcon = /* @__PURE__ */ createPebbleIcon({
|
|
104
|
+
name: "fish",
|
|
105
|
+
front: [
|
|
106
|
+
path("M14.45 19.01C11.51 18.98 9.13 17.17 7.42 14.91C6.77 14.05 6.06 13.12 6.06 12C6.06 10.88 6.77 9.95 7.42 9.09C9.16 6.8 11.6 4.96 14.59 5C17.53 5.03 20.01 6.91 21.56 9.28C22.1 10.09 22.68 10.99 22.68 12C22.68 13.01 22.1 13.91 21.56 14.72C19.98 17.14 17.44 19.02 14.45 19.01Z"),
|
|
107
|
+
path("M1 11.98C1 13.07 0.48 16.53 1.54 17.09C2.55 17.63 4.01 15.71 4.71 15.07C5.51 14.32 7.28 13.18 7.28 12C7.28 10.82 5.51 9.68 4.71 8.93C4.01 8.29 2.55 6.37 1.54 6.91C0.48 7.46 1 10.9 1 11.98Z"),
|
|
108
|
+
],
|
|
109
|
+
mark: [
|
|
110
|
+
circle(17.4, 10.4, 1.7),
|
|
111
|
+
],
|
|
112
|
+
});
|
|
113
|
+
export const FlameIcon = /* @__PURE__ */ createPebbleIcon({
|
|
114
|
+
name: "flame",
|
|
115
|
+
front: [
|
|
116
|
+
path("M12.05 22.6C9.88 22.66 7.43 22.03 5.8 20.55C3.02 18.05 2.54 12.81 5.1 9.94C6.49 8.4 7.72 11.91 8.75 10.26C9.08 9.71 8.91 8.54 9.02 7.89C9.24 6.5 9.72 5.15 10.41 3.92C10.74 3.33 11.07 2.66 11.85 2.64C12.96 2.61 14.18 5.88 14.95 6.78C16.74 8.87 19.18 10.3 20.21 12.99C21.32 15.89 19.85 19.65 17.25 21.26C15.7 22.23 13.85 22.55 12.05 22.6Z"),
|
|
117
|
+
],
|
|
118
|
+
mark: [
|
|
119
|
+
path("M12 20.2C8.43 20.18 8.59 16.66 10.37 14.59C10.76 14.13 11.34 13.3 12 13.3C12.66 13.3 13.24 14.13 13.63 14.59C15.41 16.66 15.57 20.18 12 20.2Z"),
|
|
120
|
+
],
|
|
121
|
+
});
|
|
122
|
+
export const FlowerIcon = /* @__PURE__ */ createPebbleIcon({
|
|
123
|
+
name: "flower",
|
|
124
|
+
back: [
|
|
125
|
+
line("M12 14v8", 2.8),
|
|
126
|
+
],
|
|
127
|
+
front: [
|
|
128
|
+
circle(12, 4.8, 3.8),
|
|
129
|
+
circle(16.6, 8.2, 3.8),
|
|
130
|
+
circle(14.8, 13.4, 3.8),
|
|
131
|
+
circle(9.2, 13.4, 3.8),
|
|
132
|
+
circle(7.4, 8.2, 3.8),
|
|
133
|
+
circle(12, 9.6, 3.6),
|
|
134
|
+
],
|
|
135
|
+
hole: [
|
|
136
|
+
circle(12, 9.6, 2.5),
|
|
137
|
+
],
|
|
138
|
+
});
|
|
139
|
+
export const FootballIcon = /* @__PURE__ */ createPebbleIcon({
|
|
140
|
+
name: "football",
|
|
141
|
+
front: [
|
|
142
|
+
circle(12, 12, 10.2),
|
|
143
|
+
],
|
|
144
|
+
mark: [
|
|
145
|
+
path("M9.7 8.9C10.28 8.47 11.18 7.49 11.92 7.42C12.69 7.35 13.71 8.47 14.3 8.9C14.89 9.33 16.25 9.99 16.42 10.74C16.58 11.47 15.91 12.66 15.68 13.36C15.46 14.03 15.27 15.4 14.68 15.83C14.08 16.26 12.73 16 12.02 16C11.3 16 10.02 16.25 9.39 15.87C8.73 15.48 8.54 14.01 8.31 13.32C8.07 12.62 7.33 11.3 7.63 10.59C7.91 9.91 9.12 9.33 9.7 8.9Z"),
|
|
146
|
+
line("M12 7.2V3M16.6 10.6l4-1.4M14.8 16l2.4 3.4M9.2 16l-2.4 3.4M7.4 10.6l-4-1.4", 1.6),
|
|
147
|
+
],
|
|
148
|
+
});
|
|
149
|
+
export const FriedEggIcon = /* @__PURE__ */ createPebbleIcon({
|
|
150
|
+
name: "fried-egg",
|
|
151
|
+
front: [
|
|
152
|
+
path("M3.23 18.12C1.99 15.86 1.63 12.86 2.96 10.56C3.53 9.58 4.51 8.97 5.08 8.03C5.99 6.53 6.14 4.95 7.53 3.71C10.08 1.45 14.85 1.35 17.37 3.71C18.6 4.85 18.6 6.24 19.34 7.62C19.9 8.66 20.94 9.35 21.5 10.42C22.34 12.01 22.4 13.83 21.98 15.55C21.34 18.2 19.61 20.5 16.96 21.37C15.64 21.8 14.36 21.76 13 21.8C9.24 21.92 5.29 21.83 3.23 18.12Z"),
|
|
153
|
+
],
|
|
154
|
+
hole: [
|
|
155
|
+
circle(12, 12.4, 4.8),
|
|
156
|
+
],
|
|
157
|
+
over: "M12 12.4h.01",
|
|
158
|
+
overWidth: 5.4,
|
|
159
|
+
});
|
|
160
|
+
export const HomeIcon = /* @__PURE__ */ createPebbleIcon({
|
|
161
|
+
name: "home",
|
|
162
|
+
front: [
|
|
163
|
+
path("M12 22C10.36 22 8.72 22 7.08 22C5.59 22 3.73 22.24 2.62 21.01C1.47 19.75 1.8 17.69 1.8 16.12C1.8 14.23 1.28 11.43 2.12 9.7C2.58 8.77 3.52 8.18 4.3 7.55C5.4 6.65 6.51 5.75 7.61 4.86C8.85 3.86 10.33 2.12 12 2.12C13.67 2.12 15.15 3.86 16.39 4.86C17.49 5.75 18.6 6.65 19.7 7.55C20.48 8.18 21.42 8.77 21.88 9.7C22.72 11.43 22.2 14.23 22.2 16.12C22.2 17.69 22.53 19.75 21.38 21.01C20.27 22.24 18.41 22 16.92 22C15.28 22 13.64 22 12 22Z"),
|
|
164
|
+
],
|
|
165
|
+
mark: [
|
|
166
|
+
rect(9.2, 13.8, 5.6, 8.2, 1.8),
|
|
167
|
+
],
|
|
168
|
+
});
|
|
169
|
+
export const LeafIcon = /* @__PURE__ */ createPebbleIcon({
|
|
170
|
+
name: "leaf",
|
|
171
|
+
front: [
|
|
172
|
+
path("M17.93 16.99C15.04 20.19 9.12 22.32 5.6 18.8C2.4 15.59 3.79 10.35 6.46 7.33C8.85 4.63 12.36 3.42 15.86 3.06C17.3 2.91 18.91 2.69 20.1 3.71C21.38 4.82 21.27 6.48 21.19 8C21.03 11.24 20.15 14.53 17.93 16.99Z"),
|
|
173
|
+
line("M3.2 21l3.4-3.4", 2.6),
|
|
174
|
+
],
|
|
175
|
+
mark: [
|
|
176
|
+
line("M6.6 17.6Q10 11.8 15.2 8.8", 2),
|
|
177
|
+
],
|
|
178
|
+
});
|
|
179
|
+
export const MapPinIcon = /* @__PURE__ */ createPebbleIcon({
|
|
180
|
+
name: "map-pin",
|
|
181
|
+
front: [
|
|
182
|
+
path("M20.59 10.49C20.38 14.08 18.15 17.24 15.81 19.8C14.74 20.97 13.6 22.44 11.86 22.37C10.23 22.29 9.08 20.79 8.07 19.66C5.36 16.67 3.12 13.07 3.44 8.9C3.59 6.95 4.23 5 5.68 3.63C8.78 0.69 14.82 0.65 18.06 3.39C20.09 5.12 20.73 7.93 20.59 10.49Z"),
|
|
183
|
+
],
|
|
184
|
+
hole: [
|
|
185
|
+
circle(12, 9.8, 3.3),
|
|
186
|
+
],
|
|
187
|
+
});
|
|
188
|
+
export const MoonIcon = /* @__PURE__ */ createPebbleIcon({
|
|
189
|
+
name: "moon",
|
|
190
|
+
front: [
|
|
191
|
+
path("M10.57 22.1C7.26 21.72 4.27 20.16 2.86 17.02C1 12.89 1.59 7.07 5.43 4.23C6.16 3.69 7.46 2.79 8.41 2.93C8.94 3 9.45 3.39 9.59 3.91C9.8 4.64 9.28 5.93 9.25 6.73C9.15 9.09 9.83 11.54 11.55 13.24C13.23 14.9 15.62 15.32 17.89 15.18C18.59 15.14 19.69 14.65 20.33 14.83C20.87 14.98 21.22 15.54 21.18 16.09C21.13 16.85 20.5 17.77 20.08 18.38C17.97 21.5 14.16 22.49 10.57 22.1Z"),
|
|
192
|
+
],
|
|
193
|
+
});
|
|
194
|
+
export const PawIcon = /* @__PURE__ */ createPebbleIcon({
|
|
195
|
+
name: "paw",
|
|
196
|
+
front: [
|
|
197
|
+
path("M12 11.8C15.47 11.81 18.28 14.84 18.97 18.1C19.19 19.16 19.24 20.4 18.39 21.22C16.51 23.05 14.11 21.28 12.07 21.22C10.65 21.17 9.32 22.07 7.82 21.99C2.79 21.73 5.43 15.67 7.64 13.57C8.83 12.44 10.35 11.8 12 11.8Z"),
|
|
198
|
+
circle(4.2, 10.4, 2.8),
|
|
199
|
+
circle(8.8, 5, 2.9),
|
|
200
|
+
circle(15.2, 5, 2.9),
|
|
201
|
+
circle(19.8, 10.4, 2.8),
|
|
202
|
+
],
|
|
203
|
+
});
|
|
204
|
+
export const PepperIcon = /* @__PURE__ */ createPebbleIcon({
|
|
205
|
+
name: "pepper",
|
|
206
|
+
back: [
|
|
207
|
+
line("M13.6 7.6q.2-4.2 5-5.2", 2.8),
|
|
208
|
+
],
|
|
209
|
+
front: [
|
|
210
|
+
path("M14.16 19.49C11.63 21.42 8.55 22.32 5.38 22.2C4.69 22.18 3.71 22.21 3.63 21.29C3.56 20.49 5.28 19.41 5.81 18.81C6.67 17.83 7.39 16.72 7.84 15.49C8.7 13.14 7.6 9.39 9.75 7.8C11.76 6.31 15.77 6.74 17.5 8.49C18.18 9.18 18.46 10.12 18.58 11.05C19.05 14.45 16.72 17.53 14.16 19.49Z"),
|
|
211
|
+
],
|
|
212
|
+
});
|
|
213
|
+
export const PigIcon = /* @__PURE__ */ createPebbleIcon({
|
|
214
|
+
name: "pig",
|
|
215
|
+
back: [
|
|
216
|
+
path("M6.8 7.5C6 8.05 4.89 9.18 3.88 8.66C2.69 8.06 2.74 4.13 3.73 3.4C4.69 2.7 8.73 3.88 8.91 5.2C9.06 6.3 7.57 6.97 6.8 7.5Z"),
|
|
217
|
+
path("M17.2 7.5C18 8.05 19.11 9.18 20.12 8.66C21.31 8.06 21.26 4.13 20.27 3.4C19.31 2.7 15.27 3.88 15.09 5.2C14.94 6.3 16.43 6.97 17.2 7.5Z"),
|
|
218
|
+
],
|
|
219
|
+
front: [
|
|
220
|
+
circle(12, 13, 9.4),
|
|
221
|
+
],
|
|
222
|
+
mark: [
|
|
223
|
+
circle(8.2, 9.8, 1.5),
|
|
224
|
+
circle(15.8, 9.8, 1.5),
|
|
225
|
+
rect(7.4, 13, 9.2, 5.8, 2.9),
|
|
226
|
+
],
|
|
227
|
+
over: "M10.4 15.9h.01M13.6 15.9h.01",
|
|
228
|
+
});
|
|
229
|
+
export const PlaneIcon = /* @__PURE__ */ createPebbleIcon({
|
|
230
|
+
name: "plane",
|
|
231
|
+
front: [
|
|
232
|
+
path("M17.95 11.19C19.23 11.97 21.09 12.7 22.1 13.8C22.74 14.5 23.08 17.01 21.72 17.08C21.18 17.11 20.51 16.77 20 16.61C18.91 16.28 17.81 15.95 16.71 15.62C16 15.4 15.07 14.92 14.41 15.48C14 15.83 14 16.31 14 16.8C14 18.78 15.36 18.7 16.33 20.07C16.65 20.51 16.69 21.26 16.58 21.78C16.25 23.36 13.11 21.57 12.15 21.47C10.89 21.34 9.08 22.96 7.91 22.4C7.16 22.05 7.26 20.61 7.69 20.04C8.69 18.74 10 18.75 10 16.84C10 16.36 10.02 15.89 9.65 15.53C8.21 14.15 2.2 18.56 1.45 16.47C0.71 14.4 2.43 13.38 3.9 12.49C5.16 11.73 6.42 10.97 7.68 10.2C8.3 9.83 9.2 9.47 9.67 8.91C10.9 7.44 8.52 0.72 12.2 1.23C15.38 1.67 13.26 6.75 14.14 8.6C14.66 9.72 16.92 10.57 17.95 11.19Z"),
|
|
233
|
+
],
|
|
234
|
+
});
|
|
235
|
+
export const PlantIcon = /* @__PURE__ */ createPebbleIcon({
|
|
236
|
+
name: "plant",
|
|
237
|
+
back: [
|
|
238
|
+
path("M12 14.4C13.39 14.4 16.25 13.91 17.19 15.06C17.93 15.96 17.43 17.26 17.22 18.28C16.85 20.13 16.74 22.52 14.34 22.6C12.68 22.65 9.62 23.15 8.21 22.17C7.15 21.44 7.1 19.9 6.87 18.75C6.63 17.53 5.92 15.76 7.04 14.82C8.07 13.95 10.68 14.4 12 14.4Z"),
|
|
239
|
+
],
|
|
240
|
+
front: [
|
|
241
|
+
path("M5.06 10.66C3.96 9.67 2.2 6.8 3.33 5.4C4.51 3.94 7.56 5.47 8.65 6.45C9.73 7.43 11.53 10.2 10.46 11.61C9.3 13.12 6.17 11.65 5.06 10.66Z"),
|
|
242
|
+
path("M19.45 9.2C18.42 10.51 14.92 13.11 13.48 11.2C12.29 9.63 14.09 5.96 15.14 4.61C16.15 3.33 19.38 0.86 20.85 2.66C22.11 4.22 20.51 7.85 19.45 9.2Z"),
|
|
243
|
+
rect(10.7, 10, 2.6, 6, 1.3),
|
|
244
|
+
],
|
|
245
|
+
});
|
|
246
|
+
export const RocketIcon = /* @__PURE__ */ createPebbleIcon({
|
|
247
|
+
name: "rocket",
|
|
248
|
+
back: [
|
|
249
|
+
path("M7.4 15C7.4 14.24 7.57 12.71 6.34 12.94C5.61 13.08 4.79 14.32 4.29 14.85C3.89 15.26 3.01 15.88 2.8 16.4C2.46 17.25 2.65 20.09 3.64 20.26C4.22 20.36 4.87 19.83 5.36 19.55C5.92 19.24 6.89 18.91 7.24 18.35C7.73 17.59 7.4 15.89 7.4 15Z"),
|
|
250
|
+
path("M16.6 15C16.6 14.24 16.43 12.71 17.66 12.94C18.39 13.08 19.21 14.32 19.71 14.85C20.11 15.26 20.99 15.88 21.2 16.4C21.54 17.25 21.35 20.09 20.36 20.26C19.78 20.36 19.13 19.83 18.64 19.55C18.08 19.24 17.11 18.91 16.76 18.35C16.27 17.59 16.6 15.89 16.6 15Z"),
|
|
251
|
+
path("M13.51 20.18C13.16 20.93 12.81 22.12 11.74 21.87C10.8 21.65 9.49 18.61 9.88 17.77C10.37 16.69 13.41 16.62 14.04 17.61C14.56 18.44 13.87 19.41 13.51 20.18Z"),
|
|
252
|
+
],
|
|
253
|
+
front: [
|
|
254
|
+
path("M6.61 8.66C7.21 6.36 9.83 0.86 12.89 2.07C13.74 2.41 14.44 3.3 15.01 4C17.2 6.69 17.8 9.77 17.8 13.16C17.8 14.11 17.96 15.26 17.7 16.17C17.47 16.95 16.87 17.58 16.11 17.85C15 18.25 13.43 18 12.26 18C10.64 18 8.01 18.45 6.85 17.15C6 16.2 6.2 14.79 6.2 13.6C6.2 11.93 6.19 10.29 6.61 8.66Z"),
|
|
255
|
+
],
|
|
256
|
+
hole: [
|
|
257
|
+
circle(12, 9.6, 2.6),
|
|
258
|
+
],
|
|
259
|
+
});
|
|
260
|
+
export const SaladIcon = /* @__PURE__ */ createPebbleIcon({
|
|
261
|
+
name: "salad",
|
|
262
|
+
back: [
|
|
263
|
+
circle(7, 9.4, 4.4),
|
|
264
|
+
circle(13, 7.4, 5),
|
|
265
|
+
circle(18.4, 10.2, 3.8),
|
|
266
|
+
],
|
|
267
|
+
front: [
|
|
268
|
+
path("M12 22.2C9.5 22.2 6.86 21.69 4.92 20C3.39 18.66 -0.07 12.65 4.02 12.4C7.61 12.19 11.28 12.4 14.88 12.4C16.48 12.4 19.71 11.83 21.04 12.77C22.16 13.57 21.94 14.84 21.59 15.96C20.24 20.34 16.37 22.19 12 22.2Z"),
|
|
269
|
+
],
|
|
270
|
+
});
|
|
271
|
+
export const SeedlingIcon = /* @__PURE__ */ createPebbleIcon({
|
|
272
|
+
name: "seedling",
|
|
273
|
+
back: [
|
|
274
|
+
rect(3.4, 19, 17.2, 3.6, 1.8),
|
|
275
|
+
],
|
|
276
|
+
front: [
|
|
277
|
+
line("M12 20v-8", 2.9),
|
|
278
|
+
path("M4.9 12.2C3.69 11.15 1.62 7.96 3.1 6.5C4.49 5.14 7.8 6.75 9 7.8C10.21 8.85 12.32 12.02 10.87 13.49C9.49 14.87 6.12 13.25 4.9 12.2Z"),
|
|
279
|
+
path("M19.35 9.65C18.14 10.85 14.78 12.74 13.25 11.34C11.65 9.87 13.68 6.6 14.88 5.42C16.04 4.27 19.12 2.38 20.67 3.64C22.38 5.03 20.55 8.44 19.35 9.65Z"),
|
|
280
|
+
],
|
|
281
|
+
});
|
|
282
|
+
export const SoupIcon = /* @__PURE__ */ createPebbleIcon({
|
|
283
|
+
name: "soup",
|
|
284
|
+
back: [
|
|
285
|
+
line("M8.4 2.4q-1.8 2.2 0 4.2M14.6 2.4q-1.8 2.2 0 4.2", 2.4),
|
|
286
|
+
],
|
|
287
|
+
front: [
|
|
288
|
+
path("M12 10C13.65 10 15.31 10 16.96 10C18.41 10 20.36 9.68 21.37 10.93C22.12 11.88 21.99 12.92 21.69 13.98C21.15 15.9 20.07 17.62 18.49 18.86C17.81 19.4 16.86 19.7 16.25 20.29C15.6 20.91 16.07 22.37 14.86 22.4C13.55 22.43 12.22 22.4 10.91 22.4C10.28 22.4 9.35 22.57 8.77 22.33C7.93 21.97 8.36 20.86 7.75 20.29C7.13 19.7 6.17 19.39 5.48 18.84C3.9 17.58 2.82 15.84 2.28 13.9C1.99 12.82 1.9 11.74 2.72 10.82C3.74 9.69 5.61 10 7 10C8.67 10 10.33 10 12 10Z"),
|
|
289
|
+
],
|
|
290
|
+
});
|
|
291
|
+
export const SteakIcon = /* @__PURE__ */ createPebbleIcon({
|
|
292
|
+
name: "steak",
|
|
293
|
+
back: [
|
|
294
|
+
path("M9.4 2.8Q16.6 1.4 20.4 5.4Q24 10 19.8 14.2Q15.6 18.8 8.4 18Q2 17 2 11.8Q2.2 4.4 9.4 2.8Z", "translate(0 3.4)"),
|
|
295
|
+
],
|
|
296
|
+
front: [
|
|
297
|
+
path("M9.4 2.8Q16.6 1.4 20.4 5.4Q24 10 19.8 14.2Q15.6 18.8 8.4 18Q2 17 2 11.8Q2.2 4.4 9.4 2.8Z"),
|
|
298
|
+
],
|
|
299
|
+
hole: [
|
|
300
|
+
circle(9, 10.8, 2.8),
|
|
301
|
+
],
|
|
302
|
+
});
|
|
303
|
+
export const SunIcon = /* @__PURE__ */ createPebbleIcon({
|
|
304
|
+
name: "sun",
|
|
305
|
+
front: [
|
|
306
|
+
circle(12, 12, 5.6),
|
|
307
|
+
rect(10.7, 0.4, 2.6, 4.4, 1.3, "rotate(0 12 12)"),
|
|
308
|
+
rect(10.7, 0.4, 2.6, 4.4, 1.3, "rotate(45 12 12)"),
|
|
309
|
+
rect(10.7, 0.4, 2.6, 4.4, 1.3, "rotate(90 12 12)"),
|
|
310
|
+
rect(10.7, 0.4, 2.6, 4.4, 1.3, "rotate(135 12 12)"),
|
|
311
|
+
rect(10.7, 0.4, 2.6, 4.4, 1.3, "rotate(180 12 12)"),
|
|
312
|
+
rect(10.7, 0.4, 2.6, 4.4, 1.3, "rotate(225 12 12)"),
|
|
313
|
+
rect(10.7, 0.4, 2.6, 4.4, 1.3, "rotate(270 12 12)"),
|
|
314
|
+
rect(10.7, 0.4, 2.6, 4.4, 1.3, "rotate(315 12 12)"),
|
|
315
|
+
],
|
|
316
|
+
});
|
|
317
|
+
export const WorldIcon = /* @__PURE__ */ createPebbleIcon({
|
|
318
|
+
name: "world",
|
|
319
|
+
front: [
|
|
320
|
+
circle(12, 12, 10.2),
|
|
321
|
+
],
|
|
322
|
+
mark: [
|
|
323
|
+
line("M2.8 12h18.4M12 2.8c-5.2 4.8-5.2 13.6 0 18.4M12 2.8c5.2 4.8 5.2 13.6 0 18.4", 1.7),
|
|
324
|
+
],
|
|
325
|
+
});
|
package/icons.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./icons/arrows.ts";
|
|
2
|
+
export * from "./icons/calendar.ts";
|
|
3
|
+
export * from "./icons/core.ts";
|
|
4
|
+
export * from "./icons/devices.ts";
|
|
5
|
+
export * from "./icons/documents.ts";
|
|
6
|
+
export * from "./icons/editor.ts";
|
|
7
|
+
export * from "./icons/interface.ts";
|
|
8
|
+
export * from "./icons/symbols.ts";
|
|
9
|
+
export * from "./icons/world.ts";
|
package/icons.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// Every drawing of the set, by family. A name says what the picture shows, not what an app
|
|
2
|
+
/// uses it for.
|
|
3
|
+
export * from "./icons/arrows.js";
|
|
4
|
+
export * from "./icons/calendar.js";
|
|
5
|
+
export * from "./icons/core.js";
|
|
6
|
+
export * from "./icons/devices.js";
|
|
7
|
+
export * from "./icons/documents.js";
|
|
8
|
+
export * from "./icons/editor.js";
|
|
9
|
+
export * from "./icons/interface.js";
|
|
10
|
+
export * from "./icons/symbols.js";
|
|
11
|
+
export * from "./icons/world.js";
|
package/index.d.ts
ADDED
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./icons.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nookly/pebble-icons",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Soft solid icons for React, drawn as SVG.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pebble",
|
|
7
|
+
"icons",
|
|
8
|
+
"react",
|
|
9
|
+
"svg"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/Daanieeel/nookly-icons.git",
|
|
14
|
+
"directory": "pebble-icons"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/Daanieeel/nookly-icons/tree/main/pebble-icons#readme",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/Daanieeel/nookly-icons/issues"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./index.d.ts",
|
|
26
|
+
"default": "./index.js"
|
|
27
|
+
},
|
|
28
|
+
"./icons/*": {
|
|
29
|
+
"types": "./icons/*.d.ts",
|
|
30
|
+
"default": "./icons/*.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
}
|
|
39
|
+
}
|
package/parts.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const AREA: {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
};
|
|
7
|
+
export type Part = ({
|
|
8
|
+
kind: "rect";
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
radius: number;
|
|
14
|
+
transform?: string;
|
|
15
|
+
} | {
|
|
16
|
+
kind: "circle";
|
|
17
|
+
cx: number;
|
|
18
|
+
cy: number;
|
|
19
|
+
r: number;
|
|
20
|
+
transform?: string;
|
|
21
|
+
} | {
|
|
22
|
+
kind: "path";
|
|
23
|
+
d: string;
|
|
24
|
+
transform?: string;
|
|
25
|
+
} | {
|
|
26
|
+
kind: "line";
|
|
27
|
+
d: string;
|
|
28
|
+
width: number;
|
|
29
|
+
transform?: string;
|
|
30
|
+
}) & {
|
|
31
|
+
opacity?: number;
|
|
32
|
+
};
|
|
33
|
+
export declare const rect: (x: number, y: number, width: number, height: number, radius: number, transform?: string) => Part;
|
|
34
|
+
export declare const circle: (cx: number, cy: number, r: number, transform?: string) => Part;
|
|
35
|
+
export declare const path: (d: string, transform?: string) => Part;
|
|
36
|
+
export declare const line: (d: string, width: number, transform?: string) => Part;
|
|
37
|
+
export declare const sheer: (opacity: number, part: Part) => Part;
|
|
38
|
+
export interface Paint {
|
|
39
|
+
fill?: string;
|
|
40
|
+
fillOpacity?: number;
|
|
41
|
+
stroke?: string;
|
|
42
|
+
strokeWidth?: number;
|
|
43
|
+
}
|
|
44
|
+
export declare function Parts({ parts, paint, grow, }: {
|
|
45
|
+
parts: readonly Part[];
|
|
46
|
+
paint: Paint;
|
|
47
|
+
grow?: number;
|
|
48
|
+
}): import("react").JSX.Element[];
|
package/parts.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/// The few shapes icons are made of, as data, so one drawing can be painted more than once: as a
|
|
3
|
+
/// shape, as a mask that cuts through other shapes, and as an outline.
|
|
4
|
+
/// The area masks work on, wide enough for shapes that reach past the grid.
|
|
5
|
+
export const AREA = { x: -5, y: -5, width: 34, height: 34 };
|
|
6
|
+
export const rect = (x, y, width, height, radius, transform) => ({ kind: "rect", x, y, width, height, radius, transform });
|
|
7
|
+
export const circle = (cx, cy, r, transform) => ({
|
|
8
|
+
kind: "circle",
|
|
9
|
+
cx,
|
|
10
|
+
cy,
|
|
11
|
+
r,
|
|
12
|
+
transform,
|
|
13
|
+
});
|
|
14
|
+
export const path = (d, transform) => ({ kind: "path", d, transform });
|
|
15
|
+
export const line = (d, width, transform) => ({
|
|
16
|
+
kind: "line",
|
|
17
|
+
d,
|
|
18
|
+
width,
|
|
19
|
+
transform,
|
|
20
|
+
});
|
|
21
|
+
/// The same part as a sheet of its own.
|
|
22
|
+
export const sheer = (opacity, part) => ({ ...part, opacity });
|
|
23
|
+
function Drawn({ part, paint, grow }) {
|
|
24
|
+
const { fill, fillOpacity, stroke, strokeWidth } = paint;
|
|
25
|
+
const { transform } = part;
|
|
26
|
+
const shape = { fill, fillOpacity, stroke, strokeWidth, strokeLinejoin: "round", transform };
|
|
27
|
+
switch (part.kind) {
|
|
28
|
+
case "rect":
|
|
29
|
+
return (_jsx("rect", { x: part.x, y: part.y, width: part.width, height: part.height, rx: part.radius, ...shape }));
|
|
30
|
+
case "circle":
|
|
31
|
+
return _jsx("circle", { cx: part.cx, cy: part.cy, r: part.r, ...shape });
|
|
32
|
+
case "path":
|
|
33
|
+
return _jsx("path", { d: part.d, ...shape });
|
|
34
|
+
case "line":
|
|
35
|
+
return (_jsx("path", { d: part.d, fill: "none", stroke: stroke ?? fill, strokeWidth: part.width + grow, strokeLinecap: "round", strokeLinejoin: "round", transform: transform }));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/// Parts in one paint. A line is a stroke in the paint's `stroke`, or else its `fill`; `grow`
|
|
39
|
+
/// makes it that much wider, for a mask that has to reach past an outline.
|
|
40
|
+
export function Parts({ parts, paint, grow = 0, }) {
|
|
41
|
+
return parts.map((part, at) => (
|
|
42
|
+
// A drawing never changes, so a part's place in it is its identity.
|
|
43
|
+
// oxlint-disable-next-line react/no-array-index-key
|
|
44
|
+
_jsx(Drawn, { part: part, paint: paint, grow: grow }, at)));
|
|
45
|
+
}
|