@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/README.md +48 -0
- package/icon.d.ts +2 -1
- package/icon.js +21 -8
- package/icons/arrows.js +69 -29
- package/icons/calendar.js +138 -56
- package/icons/core.js +235 -86
- package/icons/devices.js +61 -21
- package/icons/documents.js +163 -57
- package/icons/editor.js +152 -52
- package/icons/interface.js +150 -54
- package/icons/symbols.js +212 -76
- package/icons/world.js +72 -32
- package/motion.css +6205 -0
- package/package.json +6 -3
- package/parts.d.ts +11 -1
- package/parts.js +34 -8
package/README.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Soft solid icons for React: smooth, rounded shapes in one colour, with the layers of an icon
|
|
4
4
|
cut apart by a thin gap. Plain SVG, no dependencies and no stylesheet.
|
|
5
5
|
|
|
6
|
+

|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
|
|
6
10
|
```bash
|
|
7
11
|
npm install @nookly/pebble-icons
|
|
8
12
|
```
|
|
@@ -47,6 +51,50 @@ to be found at a glance.
|
|
|
47
51
|
|
|
48
52
|
[`@nookly/duotone-icons`](../duotone-icons) draws the same set as an outline with a tinted fill.
|
|
49
53
|
|
|
54
|
+
## Motion
|
|
55
|
+
|
|
56
|
+
Every icon has a small cartoon motion of its own for hover: the lid of the trash flies open, the
|
|
57
|
+
bell swings, the bars of the chart spring up. Import the stylesheet once and turn it on around
|
|
58
|
+
the icons, for a whole app on `<html>`:
|
|
59
|
+
|
|
60
|
+
```tsx
|
|
61
|
+
import "@nookly/pebble-icons/motion.css";
|
|
62
|
+
|
|
63
|
+
<nav data-pebble-motion="">
|
|
64
|
+
<button>
|
|
65
|
+
<TrashIcon />
|
|
66
|
+
</button>
|
|
67
|
+
</nav>;
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
How exaggerated the bounce is comes from one number, `--pebble-spring`: `0` moves stiffly, `1`
|
|
71
|
+
is the full cartoon and the default is `0.75`. Set it on `:root`, or on any element for the icons
|
|
72
|
+
inside it.
|
|
73
|
+
|
|
74
|
+
```css
|
|
75
|
+
:root {
|
|
76
|
+
--pebble-spring: 0.5;
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
An icon moves when the pointer is on it, or on the button, link, menu item, option, tab, tree
|
|
81
|
+
item, summary or `data-slot="badge"` around it. Mark any other row or card with
|
|
82
|
+
`data-pebble-group`. A button of its own inside a hovered row waits for the pointer itself. Nothing
|
|
83
|
+
moves without a pointer that can hover, or for someone who asked their system for less motion.
|
|
84
|
+
|
|
85
|
+
### A motion for a new icon
|
|
86
|
+
|
|
87
|
+
`src/motion.css` is written from the tables in `motion/`, never by hand.
|
|
88
|
+
|
|
89
|
+
1. Name the parts that move on their own in the drawing: `moving("lid", [rect(…)])`. Every
|
|
90
|
+
other part answers to its layer: `back`, `front` (what is cut out of it too), `mark` or
|
|
91
|
+
`over`. A badge and the strike of a crossed out picture move by themselves.
|
|
92
|
+
2. Add the drawing to the table of its family in `motion/sets/`. Most of what an icon needs is
|
|
93
|
+
in `motion/shared.ts` (`jelly`, `pop`, `hop`, `draw`, `lunge`, …); write its own keyframes
|
|
94
|
+
with `performer` where the picture calls for it.
|
|
95
|
+
3. Run `bun run motion`, then `bun run test`. The tests fail for a drawing without a motion, a
|
|
96
|
+
part that does not exist and a stylesheet that is out of date.
|
|
97
|
+
|
|
50
98
|
## Icons
|
|
51
99
|
|
|
52
100
|
309 icons, from `AlarmClockIcon` to `ZoomOutIcon`. They are exported from the package, and
|
package/icon.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface Drawing {
|
|
|
12
12
|
mark?: Part[];
|
|
13
13
|
over?: string;
|
|
14
14
|
overWidth?: number;
|
|
15
|
+
overMove?: string;
|
|
15
16
|
badge?: Sign;
|
|
16
17
|
}
|
|
17
|
-
export declare function createPebbleIcon(
|
|
18
|
+
export declare function createPebbleIcon(source: Drawing): PebbleIcon;
|
package/icon.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
/// through the shape, so the icon takes any colour and sits on any surface.
|
|
4
4
|
import { useId } from "react";
|
|
5
5
|
import { IconFrame } from "./frame.js";
|
|
6
|
-
import { AREA, Parts } from "./parts.js";
|
|
6
|
+
import { AREA, Movable, Parts, layered } from "./parts.js";
|
|
7
7
|
/// The gap between the front shape and the one behind it, on each side.
|
|
8
8
|
const GAP = 1.3;
|
|
9
9
|
/// The badge keeps clear of a wider circle, which leaves a gap around it.
|
|
@@ -11,14 +11,15 @@ const BADGE = { cx: 17.6, cy: 17.6, r: 6.2, clear: 8.4 };
|
|
|
11
11
|
const INK = { fill: "currentColor" };
|
|
12
12
|
const CUT = { fill: "#000" };
|
|
13
13
|
/// Everything a mask cuts out of a white sheet.
|
|
14
|
-
function Cut({ id, parts, around = 0 }) {
|
|
15
|
-
return (_jsxs("mask", { id: id, maskUnits: "userSpaceOnUse", ...AREA, children: [_jsx("rect", { ...AREA, fill: "#fff" }), _jsx(Parts, { parts: parts, paint: around ? { ...CUT, stroke: "#000", strokeWidth: around } : CUT, grow: around })] }));
|
|
14
|
+
function Cut({ icon, id, parts, around = 0, }) {
|
|
15
|
+
return (_jsxs("mask", { id: id, maskUnits: "userSpaceOnUse", ...AREA, children: [_jsx("rect", { ...AREA, fill: "#fff" }), _jsx(Parts, { icon: icon, parts: parts, paint: around ? { ...CUT, stroke: "#000", strokeWidth: around } : CUT, grow: around })] }));
|
|
16
16
|
}
|
|
17
17
|
const by = (id, used) => (used ? `url(#${id})` : undefined);
|
|
18
18
|
function Picture({ drawing, ...props }) {
|
|
19
19
|
// React's ids carry punctuation that `url(#…)` can't hold.
|
|
20
20
|
const id = `pebble-${useId().replace(/[^\w-]/g, "")}`;
|
|
21
|
-
const { back = [], front, hole = [], mark = [], over, overWidth = 1.9, badge } = drawing;
|
|
21
|
+
const { back = [], front, hole = [], mark = [], over, overWidth = 1.9, overMove, badge } = drawing;
|
|
22
|
+
const icon = drawing.name;
|
|
22
23
|
const holes = `${id}-hole`;
|
|
23
24
|
const marks = `${id}-mark`;
|
|
24
25
|
const clear = `${id}-clear`;
|
|
@@ -31,13 +32,25 @@ function Picture({ drawing, ...props }) {
|
|
|
31
32
|
const picture = (_jsxs(_Fragment, { children: [_jsxs("defs", { children: [inFront.map((parts, at) => (
|
|
32
33
|
// A drawing never changes, so a sheet's place in it is its identity.
|
|
33
34
|
// oxlint-disable-next-line react/no-array-index-key
|
|
34
|
-
_jsx(Cut, { id: `${id}-behind-${at}`, parts: parts, around: GAP * 2 }, at))), hole.length > 0 && _jsx(Cut, { id: holes, parts: hole }), mark.length > 0 && _jsx(Cut, { id: marks, parts: mark })] }), _jsxs("g", { mask: by(marks, mark.length > 0), children: [sheets.map((sheet, at) => (
|
|
35
|
+
_jsx(Cut, { icon: icon, id: `${id}-behind-${at}`, parts: parts, around: GAP * 2 }, at))), hole.length > 0 && _jsx(Cut, { icon: icon, id: holes, parts: hole }), mark.length > 0 && _jsx(Cut, { icon: icon, id: marks, parts: mark })] }), _jsxs("g", { mask: by(marks, mark.length > 0), children: [sheets.map((sheet, at) => (
|
|
35
36
|
// oxlint-disable-next-line react/no-array-index-key
|
|
36
|
-
_jsx("g", { mask: by(`${id}-behind-${at}`, true), children: _jsx(Parts, { parts: sheet, paint: INK }) }, at))), _jsx("g", { mask: by(holes, hole.length > 0), children: _jsx(Parts, { parts: front, paint: INK }) })] }), over && (_jsx("path", { d: over, fill: "none", stroke: "currentColor", strokeWidth: overWidth, strokeLinecap: "round", strokeLinejoin: "round" }))] }));
|
|
37
|
+
_jsx("g", { mask: by(`${id}-behind-${at}`, true), children: _jsx(Parts, { icon: icon, parts: sheet, paint: INK }) }, at))), _jsx("g", { mask: by(holes, hole.length > 0), children: _jsx(Parts, { icon: icon, parts: front, paint: INK }) })] }), over && (_jsx(Movable, { icon: icon, move: overMove, children: _jsx("path", { d: over, fill: "none", stroke: "currentColor", strokeWidth: overWidth, strokeLinecap: "round", strokeLinejoin: "round" }) }))] }));
|
|
37
38
|
const { size, title, ...svg } = props;
|
|
38
|
-
return (_jsx(IconFrame, { ...svg, size: size, title: title, name: drawing.name, children: badge ? (_jsxs(_Fragment, { children: [_jsxs("mask", { id: clear, maskUnits: "userSpaceOnUse", ...AREA, children: [_jsx("rect", { ...AREA, fill: "#fff" }), _jsx("circle", { cx: BADGE.cx, cy: BADGE.cy, r: BADGE.clear, fill: "#000" })] }), _jsxs("mask", { id: sign, maskUnits: "userSpaceOnUse", ...AREA, children: [_jsx("rect", { ...AREA, fill: "#fff" }), _jsx("path", { d: badge.sign, fill: "#000", stroke: "#000", strokeWidth: badge.width ?? 2.5, strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("g", { mask: by(clear, true), children: picture }), _jsx("g", { mask: by(sign, true), children: _jsx("circle", { cx: BADGE.cx, cy: BADGE.cy, r: BADGE.r, fill: "currentColor" }) })] })) : (picture) }));
|
|
39
|
+
return (_jsx(IconFrame, { ...svg, size: size, title: title, name: drawing.name, children: badge ? (_jsxs(_Fragment, { children: [_jsxs("mask", { id: clear, maskUnits: "userSpaceOnUse", ...AREA, children: [_jsx("rect", { ...AREA, fill: "#fff" }), _jsx("circle", { cx: BADGE.cx, cy: BADGE.cy, r: BADGE.clear, fill: "#000" })] }), _jsxs("mask", { id: sign, maskUnits: "userSpaceOnUse", ...AREA, children: [_jsx("rect", { ...AREA, fill: "#fff" }), _jsx("path", { d: badge.sign, fill: "#000", stroke: "#000", strokeWidth: badge.width ?? 2.5, strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("g", { mask: by(clear, true), children: picture }), _jsx(Movable, { icon: icon, move: "badge", children: _jsx("g", { mask: by(sign, true), children: _jsx("circle", { cx: BADGE.cx, cy: BADGE.cy, r: BADGE.r, fill: "currentColor" }) }) })] })) : (picture) }));
|
|
39
40
|
}
|
|
40
|
-
|
|
41
|
+
/// The drawing with every part named. What is cut out of the front lies on the front.
|
|
42
|
+
function movable(drawing) {
|
|
43
|
+
return {
|
|
44
|
+
...drawing,
|
|
45
|
+
back: drawing.back && layered("back", drawing.back),
|
|
46
|
+
front: layered("front", drawing.front),
|
|
47
|
+
hole: drawing.hole && layered("front", drawing.hole),
|
|
48
|
+
mark: drawing.mark && layered("mark", drawing.mark),
|
|
49
|
+
overMove: drawing.over && (drawing.overMove ?? "over"),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function createPebbleIcon(source) {
|
|
53
|
+
const drawing = movable(source);
|
|
41
54
|
function Icon(props) {
|
|
42
55
|
return _jsx(Picture, { ...props, drawing: drawing });
|
|
43
56
|
}
|
package/icons/arrows.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
/// Arrows, chevrons and the other symbols that point or move.
|
|
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 ArrowAutofitWidthIcon = /* @__PURE__ */ createPebbleIcon({
|
|
5
5
|
name: "arrow-autofit-width",
|
|
6
6
|
back: [
|
|
7
7
|
rect(3, 2.4, 18, 8, 3),
|
|
8
8
|
],
|
|
9
9
|
front: [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
...moving("shaft", [
|
|
11
|
+
line("M7 17h10", 3),
|
|
12
|
+
]),
|
|
13
|
+
...moving("left", [
|
|
14
|
+
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(2 17) rotate(180) scale(0.85)"),
|
|
15
|
+
]),
|
|
16
|
+
...moving("right", [
|
|
17
|
+
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(22 17) rotate(0) scale(0.85)"),
|
|
18
|
+
]),
|
|
13
19
|
],
|
|
14
20
|
});
|
|
15
21
|
export const ArrowBackUpIcon = /* @__PURE__ */ createPebbleIcon({
|
|
@@ -84,28 +90,40 @@ export const ArrowUpRightIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
84
90
|
export const ArrowsDiffIcon = /* @__PURE__ */ createPebbleIcon({
|
|
85
91
|
name: "arrows-diff",
|
|
86
92
|
front: [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
...moving("top", [
|
|
94
|
+
line("M4 7h9.6", 3.2),
|
|
95
|
+
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(21.2 7) rotate(0) scale(0.85)"),
|
|
96
|
+
]),
|
|
97
|
+
...moving("bottom", [
|
|
98
|
+
line("M20 17h-9.6", 3.2),
|
|
99
|
+
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(2.8 17) rotate(180) scale(0.85)"),
|
|
100
|
+
]),
|
|
91
101
|
],
|
|
92
102
|
});
|
|
93
103
|
export const ArrowsMaximizeIcon = /* @__PURE__ */ createPebbleIcon({
|
|
94
104
|
name: "arrows-maximize",
|
|
95
105
|
front: [
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
106
|
+
...moving("ne", [
|
|
107
|
+
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(21.2 2.8) rotate(-45) scale(1.2)"),
|
|
108
|
+
line("M17 7l-3.4 3.4", 3.4),
|
|
109
|
+
]),
|
|
110
|
+
...moving("sw", [
|
|
111
|
+
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(2.8 21.2) rotate(135) scale(1.2)"),
|
|
112
|
+
line("M7 17l3.4-3.4", 3.4),
|
|
113
|
+
]),
|
|
100
114
|
],
|
|
101
115
|
});
|
|
102
116
|
export const ArrowsMinimizeIcon = /* @__PURE__ */ createPebbleIcon({
|
|
103
117
|
name: "arrows-minimize",
|
|
104
118
|
front: [
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
119
|
+
...moving("ne", [
|
|
120
|
+
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(13.4 10.6) rotate(135) scale(1.15)"),
|
|
121
|
+
line("M20.4 3.6l-3 3", 3.4),
|
|
122
|
+
]),
|
|
123
|
+
...moving("sw", [
|
|
124
|
+
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(10.6 13.4) rotate(-45) scale(1.15)"),
|
|
125
|
+
line("M3.6 20.4l3-3", 3.4),
|
|
126
|
+
]),
|
|
109
127
|
],
|
|
110
128
|
});
|
|
111
129
|
export const CaretDownIcon = /* @__PURE__ */ createPebbleIcon({
|
|
@@ -135,7 +153,9 @@ export const ChevronLeftIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
135
153
|
export const ChevronRightIcon = /* @__PURE__ */ createPebbleIcon({
|
|
136
154
|
name: "chevron-right",
|
|
137
155
|
front: [
|
|
138
|
-
|
|
156
|
+
...moving("tip", [
|
|
157
|
+
line("M8.8 5.4l6.6 6.6-6.6 6.6", 4),
|
|
158
|
+
]),
|
|
139
159
|
],
|
|
140
160
|
});
|
|
141
161
|
export const ChevronUpIcon = /* @__PURE__ */ createPebbleIcon({
|
|
@@ -147,11 +167,15 @@ export const ChevronUpIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
147
167
|
export const DownloadIcon = /* @__PURE__ */ createPebbleIcon({
|
|
148
168
|
name: "download",
|
|
149
169
|
back: [
|
|
150
|
-
|
|
170
|
+
...moving("tray", [
|
|
171
|
+
line("M3.8 15.8v1.4a3.4 3.4 0 0 0 3.4 3.4h9.6a3.4 3.4 0 0 0 3.4-3.4v-1.4", 3.8),
|
|
172
|
+
]),
|
|
151
173
|
],
|
|
152
174
|
front: [
|
|
153
|
-
|
|
154
|
-
|
|
175
|
+
...moving("arrow", [
|
|
176
|
+
line("M12 3.6v6", 4),
|
|
177
|
+
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 16.4) rotate(90) scale(1.15)"),
|
|
178
|
+
]),
|
|
155
179
|
],
|
|
156
180
|
});
|
|
157
181
|
export const ExternalLinkIcon = /* @__PURE__ */ createPebbleIcon({
|
|
@@ -170,9 +194,13 @@ export const HistoryIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
170
194
|
circle(12.2, 12, 7),
|
|
171
195
|
],
|
|
172
196
|
front: [
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
197
|
+
...moving("arrow", [
|
|
198
|
+
line("M6.2 7.4a7.8 7.8 0 1 1-1.4 7.2", 3),
|
|
199
|
+
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(3.4 11.6) rotate(112) scale(0.9)"),
|
|
200
|
+
]),
|
|
201
|
+
...moving("hands", [
|
|
202
|
+
line("M12.4 8v4.4l3 2", 2.8),
|
|
203
|
+
]),
|
|
176
204
|
],
|
|
177
205
|
});
|
|
178
206
|
export const LoaderIcon = /* @__PURE__ */ createPebbleIcon({
|
|
@@ -197,8 +225,12 @@ export const LogoutIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
197
225
|
export const PauseIcon = /* @__PURE__ */ createPebbleIcon({
|
|
198
226
|
name: "pause",
|
|
199
227
|
front: [
|
|
200
|
-
|
|
201
|
-
|
|
228
|
+
...moving("left", [
|
|
229
|
+
rect(4.6, 3.4, 5.4, 17.2, 2.2),
|
|
230
|
+
]),
|
|
231
|
+
...moving("right", [
|
|
232
|
+
rect(14, 3.4, 5.4, 17.2, 2.2),
|
|
233
|
+
]),
|
|
202
234
|
],
|
|
203
235
|
});
|
|
204
236
|
export const PlayIcon = /* @__PURE__ */ createPebbleIcon({
|
|
@@ -232,10 +264,14 @@ export const RepeatOffIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
232
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(21.2 6.8) rotate(0) scale(0.9)"),
|
|
233
265
|
line("M19.6 12.6v.6a4 4 0 0 1-4 4H9.2", 3.2),
|
|
234
266
|
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(2.8 17.2) rotate(180) scale(0.9)"),
|
|
235
|
-
|
|
267
|
+
...moving("strike", [
|
|
268
|
+
line("M3.4 3.4l17.2 17.2", 2.8),
|
|
269
|
+
]),
|
|
236
270
|
],
|
|
237
271
|
hole: [
|
|
238
|
-
|
|
272
|
+
...moving("strike", [
|
|
273
|
+
line("M6.2 2.2l17.4 17.4M.4 4.8l17.4 17.4", 1.5),
|
|
274
|
+
]),
|
|
239
275
|
],
|
|
240
276
|
});
|
|
241
277
|
export const RestoreIcon = /* @__PURE__ */ createPebbleIcon({
|
|
@@ -252,8 +288,12 @@ export const RestoreIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
252
288
|
export const SelectorIcon = /* @__PURE__ */ createPebbleIcon({
|
|
253
289
|
name: "selector",
|
|
254
290
|
front: [
|
|
255
|
-
|
|
256
|
-
|
|
291
|
+
...moving("up", [
|
|
292
|
+
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.4) rotate(-90) scale(1.05)"),
|
|
293
|
+
]),
|
|
294
|
+
...moving("down", [
|
|
295
|
+
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.6) rotate(90) scale(1.05)"),
|
|
296
|
+
]),
|
|
257
297
|
],
|
|
258
298
|
});
|
|
259
299
|
export const UploadIcon = /* @__PURE__ */ createPebbleIcon({
|
package/icons/calendar.js
CHANGED
|
@@ -1,29 +1,41 @@
|
|
|
1
1
|
/// Calendars and clocks.
|
|
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 AlarmClockIcon = /* @__PURE__ */ createPebbleIcon({
|
|
5
5
|
name: "alarm-clock",
|
|
6
6
|
back: [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
...moving("bells", [
|
|
8
|
+
circle(5.2, 5.6, 3.9),
|
|
9
|
+
circle(18.8, 5.6, 3.9),
|
|
10
|
+
]),
|
|
11
|
+
...moving("feet", [
|
|
12
|
+
line("M6.8 19.4L4.8 22.2M17.2 19.4L19.2 22.2", 2.8),
|
|
13
|
+
]),
|
|
10
14
|
],
|
|
11
15
|
front: [
|
|
12
|
-
|
|
16
|
+
...moving("face", [
|
|
17
|
+
circle(12, 12.8, 9),
|
|
18
|
+
]),
|
|
13
19
|
],
|
|
14
20
|
mark: [
|
|
15
|
-
|
|
21
|
+
...moving("hands", [
|
|
22
|
+
line("M12 8.2V13L15.4 15", 2.6),
|
|
23
|
+
]),
|
|
16
24
|
],
|
|
17
25
|
});
|
|
18
26
|
export const CalendarBlankIcon = /* @__PURE__ */ createPebbleIcon({
|
|
19
27
|
name: "calendar-blank",
|
|
20
28
|
back: [
|
|
21
29
|
rect(3.6, 2.8, 16.8, 13, 4.5),
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
...moving("rings", [
|
|
31
|
+
rect(6.4, 0.8, 3.4, 6.4, 1.7),
|
|
32
|
+
rect(14.2, 0.8, 3.4, 6.4, 1.7),
|
|
33
|
+
]),
|
|
24
34
|
],
|
|
25
35
|
front: [
|
|
26
|
-
|
|
36
|
+
...moving("page", [
|
|
37
|
+
rect(2, 7.6, 20, 14.8, 5),
|
|
38
|
+
]),
|
|
27
39
|
],
|
|
28
40
|
mark: [
|
|
29
41
|
rect(6.4, 12.2, 11.2, 2.9, 1.45),
|
|
@@ -33,11 +45,15 @@ export const CalendarCheckIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
33
45
|
name: "calendar-check",
|
|
34
46
|
back: [
|
|
35
47
|
rect(3.6, 2.8, 16.8, 13, 4.5),
|
|
36
|
-
|
|
37
|
-
|
|
48
|
+
...moving("rings", [
|
|
49
|
+
rect(6.4, 0.8, 3.4, 6.4, 1.7),
|
|
50
|
+
rect(14.2, 0.8, 3.4, 6.4, 1.7),
|
|
51
|
+
]),
|
|
38
52
|
],
|
|
39
53
|
front: [
|
|
40
|
-
|
|
54
|
+
...moving("page", [
|
|
55
|
+
rect(2, 7.6, 20, 14.8, 5),
|
|
56
|
+
]),
|
|
41
57
|
],
|
|
42
58
|
mark: [
|
|
43
59
|
line("M8.2 15.2l2.7 2.7 5-5.2", 2.8),
|
|
@@ -47,11 +63,15 @@ export const CalendarDotIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
47
63
|
name: "calendar-dot",
|
|
48
64
|
back: [
|
|
49
65
|
rect(3.6, 2.8, 16.8, 13, 4.5),
|
|
50
|
-
|
|
51
|
-
|
|
66
|
+
...moving("rings", [
|
|
67
|
+
rect(6.4, 0.8, 3.4, 6.4, 1.7),
|
|
68
|
+
rect(14.2, 0.8, 3.4, 6.4, 1.7),
|
|
69
|
+
]),
|
|
52
70
|
],
|
|
53
71
|
front: [
|
|
54
|
-
|
|
72
|
+
...moving("page", [
|
|
73
|
+
rect(2, 7.6, 20, 14.8, 5),
|
|
74
|
+
]),
|
|
55
75
|
],
|
|
56
76
|
mark: [
|
|
57
77
|
circle(12, 15.2, 3.2),
|
|
@@ -61,11 +81,15 @@ export const CalendarDueIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
61
81
|
name: "calendar-due",
|
|
62
82
|
back: [
|
|
63
83
|
rect(3.6, 2.8, 16.8, 13, 4.5),
|
|
64
|
-
|
|
65
|
-
|
|
84
|
+
...moving("rings", [
|
|
85
|
+
rect(6.4, 0.8, 3.4, 6.4, 1.7),
|
|
86
|
+
rect(14.2, 0.8, 3.4, 6.4, 1.7),
|
|
87
|
+
]),
|
|
66
88
|
],
|
|
67
89
|
front: [
|
|
68
|
-
|
|
90
|
+
...moving("page", [
|
|
91
|
+
rect(2, 7.6, 20, 14.8, 5),
|
|
92
|
+
]),
|
|
69
93
|
],
|
|
70
94
|
mark: [
|
|
71
95
|
line("M12 11.6v4", 2.9),
|
|
@@ -76,43 +100,67 @@ export const CalendarMonthIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
76
100
|
name: "calendar-month",
|
|
77
101
|
back: [
|
|
78
102
|
rect(3.6, 2.8, 16.8, 13, 4.5),
|
|
79
|
-
|
|
80
|
-
|
|
103
|
+
...moving("rings", [
|
|
104
|
+
rect(6.4, 0.8, 3.4, 6.4, 1.7),
|
|
105
|
+
rect(14.2, 0.8, 3.4, 6.4, 1.7),
|
|
106
|
+
]),
|
|
81
107
|
],
|
|
82
108
|
front: [
|
|
83
|
-
|
|
109
|
+
...moving("page", [
|
|
110
|
+
rect(2, 7.6, 20, 14.8, 5),
|
|
111
|
+
]),
|
|
84
112
|
],
|
|
85
113
|
mark: [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
114
|
+
...moving("month-1", [
|
|
115
|
+
rect(6.2, 11.2, 5, 3.6, 1.2),
|
|
116
|
+
]),
|
|
117
|
+
...moving("month-2", [
|
|
118
|
+
rect(6.2, 16.6, 5, 3.6, 1.2),
|
|
119
|
+
]),
|
|
120
|
+
...moving("month-3", [
|
|
121
|
+
rect(12.8, 11.2, 5, 3.6, 1.2),
|
|
122
|
+
]),
|
|
123
|
+
...moving("month-4", [
|
|
124
|
+
rect(12.8, 16.6, 5, 3.6, 1.2),
|
|
125
|
+
]),
|
|
90
126
|
],
|
|
91
127
|
});
|
|
92
128
|
export const CalendarOffIcon = /* @__PURE__ */ createPebbleIcon({
|
|
93
129
|
name: "calendar-off",
|
|
94
130
|
back: [
|
|
95
131
|
rect(3.6, 2.8, 16.8, 13, 4.5),
|
|
96
|
-
|
|
97
|
-
|
|
132
|
+
...moving("rings", [
|
|
133
|
+
rect(6.4, 0.8, 3.4, 6.4, 1.7),
|
|
134
|
+
rect(14.2, 0.8, 3.4, 6.4, 1.7),
|
|
135
|
+
]),
|
|
98
136
|
],
|
|
99
137
|
front: [
|
|
100
|
-
|
|
101
|
-
|
|
138
|
+
...moving("page", [
|
|
139
|
+
rect(2, 7.6, 20, 14.8, 5),
|
|
140
|
+
]),
|
|
141
|
+
...moving("strike", [
|
|
142
|
+
line("M3.4 3.4l17.2 17.2", 2.8),
|
|
143
|
+
]),
|
|
102
144
|
],
|
|
103
145
|
hole: [
|
|
104
|
-
|
|
146
|
+
...moving("strike", [
|
|
147
|
+
line("M6.2 2.2l17.4 17.4M.4 4.8l17.4 17.4", 1.5),
|
|
148
|
+
]),
|
|
105
149
|
],
|
|
106
150
|
});
|
|
107
151
|
export const CalendarPlusIcon = /* @__PURE__ */ createPebbleIcon({
|
|
108
152
|
name: "calendar-plus",
|
|
109
153
|
back: [
|
|
110
154
|
rect(3.6, 2.8, 16.8, 13, 4.5),
|
|
111
|
-
|
|
112
|
-
|
|
155
|
+
...moving("rings", [
|
|
156
|
+
rect(6.4, 0.8, 3.4, 6.4, 1.7),
|
|
157
|
+
rect(14.2, 0.8, 3.4, 6.4, 1.7),
|
|
158
|
+
]),
|
|
113
159
|
],
|
|
114
160
|
front: [
|
|
115
|
-
|
|
161
|
+
...moving("page", [
|
|
162
|
+
rect(2, 7.6, 20, 14.8, 5),
|
|
163
|
+
]),
|
|
116
164
|
],
|
|
117
165
|
mark: [
|
|
118
166
|
line("M12 11.4v7.6M8.2 15.2h7.6", 2.8),
|
|
@@ -122,27 +170,41 @@ export const CalendarStatsIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
122
170
|
name: "calendar-stats",
|
|
123
171
|
back: [
|
|
124
172
|
rect(3.6, 2.8, 16.8, 13, 4.5),
|
|
125
|
-
|
|
126
|
-
|
|
173
|
+
...moving("rings", [
|
|
174
|
+
rect(6.4, 0.8, 3.4, 6.4, 1.7),
|
|
175
|
+
rect(14.2, 0.8, 3.4, 6.4, 1.7),
|
|
176
|
+
]),
|
|
127
177
|
],
|
|
128
178
|
front: [
|
|
129
|
-
|
|
179
|
+
...moving("page", [
|
|
180
|
+
rect(2, 7.6, 20, 14.8, 5),
|
|
181
|
+
]),
|
|
130
182
|
],
|
|
131
183
|
mark: [
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
184
|
+
...moving("bar-1", [
|
|
185
|
+
rect(6, 15.6, 3, 4.4, 1.2),
|
|
186
|
+
]),
|
|
187
|
+
...moving("bar-2", [
|
|
188
|
+
rect(10.5, 11.2, 3, 8.8, 1.2),
|
|
189
|
+
]),
|
|
190
|
+
...moving("bar-3", [
|
|
191
|
+
rect(15, 13.4, 3, 6.6, 1.2),
|
|
192
|
+
]),
|
|
135
193
|
],
|
|
136
194
|
});
|
|
137
195
|
export const CalendarUserIcon = /* @__PURE__ */ createPebbleIcon({
|
|
138
196
|
name: "calendar-user",
|
|
139
197
|
back: [
|
|
140
198
|
rect(3.6, 2.8, 16.8, 13, 4.5),
|
|
141
|
-
|
|
142
|
-
|
|
199
|
+
...moving("rings", [
|
|
200
|
+
rect(6.4, 0.8, 3.4, 6.4, 1.7),
|
|
201
|
+
rect(14.2, 0.8, 3.4, 6.4, 1.7),
|
|
202
|
+
]),
|
|
143
203
|
],
|
|
144
204
|
front: [
|
|
145
|
-
|
|
205
|
+
...moving("page", [
|
|
206
|
+
rect(2, 7.6, 20, 14.8, 5),
|
|
207
|
+
]),
|
|
146
208
|
],
|
|
147
209
|
mark: [
|
|
148
210
|
circle(12, 12.8, 2.5),
|
|
@@ -153,27 +215,41 @@ export const CalendarWeekIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
153
215
|
name: "calendar-week",
|
|
154
216
|
back: [
|
|
155
217
|
rect(3.6, 2.8, 16.8, 13, 4.5),
|
|
156
|
-
|
|
157
|
-
|
|
218
|
+
...moving("rings", [
|
|
219
|
+
rect(6.4, 0.8, 3.4, 6.4, 1.7),
|
|
220
|
+
rect(14.2, 0.8, 3.4, 6.4, 1.7),
|
|
221
|
+
]),
|
|
158
222
|
],
|
|
159
223
|
front: [
|
|
160
|
-
|
|
224
|
+
...moving("page", [
|
|
225
|
+
rect(2, 7.6, 20, 14.8, 5),
|
|
226
|
+
]),
|
|
161
227
|
],
|
|
162
228
|
mark: [
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
229
|
+
...moving("week-1", [
|
|
230
|
+
rect(5.8, 11.2, 3, 8.8, 1.5),
|
|
231
|
+
]),
|
|
232
|
+
...moving("week-2", [
|
|
233
|
+
rect(10.5, 11.2, 3, 8.8, 1.5),
|
|
234
|
+
]),
|
|
235
|
+
...moving("week-3", [
|
|
236
|
+
rect(15.2, 11.2, 3, 8.8, 1.5),
|
|
237
|
+
]),
|
|
166
238
|
],
|
|
167
239
|
});
|
|
168
240
|
export const CalendarXIcon = /* @__PURE__ */ createPebbleIcon({
|
|
169
241
|
name: "calendar-x",
|
|
170
242
|
back: [
|
|
171
243
|
rect(3.6, 2.8, 16.8, 13, 4.5),
|
|
172
|
-
|
|
173
|
-
|
|
244
|
+
...moving("rings", [
|
|
245
|
+
rect(6.4, 0.8, 3.4, 6.4, 1.7),
|
|
246
|
+
rect(14.2, 0.8, 3.4, 6.4, 1.7),
|
|
247
|
+
]),
|
|
174
248
|
],
|
|
175
249
|
front: [
|
|
176
|
-
|
|
250
|
+
...moving("page", [
|
|
251
|
+
rect(2, 7.6, 20, 14.8, 5),
|
|
252
|
+
]),
|
|
177
253
|
],
|
|
178
254
|
mark: [
|
|
179
255
|
line("M9 12.2l6 6M15 12.2l-6 6", 2.7),
|
|
@@ -211,14 +287,20 @@ export const ClockPlusIcon = /* @__PURE__ */ createPebbleIcon({
|
|
|
211
287
|
export const HourglassIcon = /* @__PURE__ */ createPebbleIcon({
|
|
212
288
|
name: "hourglass",
|
|
213
289
|
back: [
|
|
214
|
-
|
|
215
|
-
|
|
290
|
+
...moving("glass", [
|
|
291
|
+
rect(3.4, 1.2, 17.2, 4.2, 2.1),
|
|
292
|
+
rect(3.4, 18.6, 17.2, 4.2, 2.1),
|
|
293
|
+
]),
|
|
216
294
|
],
|
|
217
295
|
front: [
|
|
218
|
-
|
|
296
|
+
...moving("glass", [
|
|
297
|
+
path("M12 20C9.63 20 5.16 20.46 5.93 16.71C6.27 15.01 7.93 13.66 7.93 12C7.93 9.68 4.66 7.84 6.25 5.26C6.71 4.53 7.5 4.05 8.37 4C9.87 3.92 11.41 4 12.92 4C14.31 4 16.18 3.7 17.27 4.7C19.9 7.09 16.33 9.37 16.09 11.62C15.9 13.45 17.62 14.77 18.03 16.53C18.94 20.4 14.46 20 12 20Z"),
|
|
298
|
+
]),
|
|
219
299
|
],
|
|
220
300
|
mark: [
|
|
221
|
-
|
|
222
|
-
|
|
301
|
+
...moving("glass", [
|
|
302
|
+
path("M12 7.6C12.55 7.6 14.12 7.33 14.45 7.85C14.89 8.55 12.63 10.4 12 10.4C11.37 10.4 9.11 8.55 9.55 7.85C9.88 7.33 11.45 7.6 12 7.6Z"),
|
|
303
|
+
path("M12 14.2C12.92 14.2 16.69 16.08 15.16 17.26C14.69 17.62 13.51 17.4 12.94 17.4C11.7 17.4 10.44 17.49 9.21 17.4C7.69 17.29 9.33 15.34 9.81 14.95C10.43 14.45 11.2 14.2 12 14.2Z"),
|
|
304
|
+
]),
|
|
223
305
|
],
|
|
224
306
|
});
|