@fluxus-ui/icons 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +40 -2
- package/bin/icons-png.mjs +51 -0
- package/dist/index.cjs +969 -0
- package/dist/index.d.cts +260 -0
- package/dist/index.d.ts +260 -0
- package/dist/index.js +881 -0
- package/dist/react.cjs +260 -0
- package/dist/react.d.cts +65 -0
- package/dist/react.d.ts +65 -0
- package/dist/react.js +236 -0
- package/package.json +77 -3
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What an icon is, and what it looks like in a state. No DOM here: the server,
|
|
3
|
+
* the build and the engine all read an icon through these. (SPEC §14.36)
|
|
4
|
+
*/
|
|
5
|
+
interface Pose {
|
|
6
|
+
/** Another outline with the same commands: the part morphs into it. */
|
|
7
|
+
d?: string;
|
|
8
|
+
x?: number;
|
|
9
|
+
y?: number;
|
|
10
|
+
/** Degrees, around the pivot of the part. */
|
|
11
|
+
r?: number;
|
|
12
|
+
s?: number;
|
|
13
|
+
/** How much of the stroke is drawn, 0–1; 'p' follows the progress of the icon. */
|
|
14
|
+
draw?: number | 'p';
|
|
15
|
+
o?: number;
|
|
16
|
+
}
|
|
17
|
+
interface IconPart {
|
|
18
|
+
id: string;
|
|
19
|
+
/** Its outline at rest, on a 16 × 16 grid: absolute commands, numbers apart by single spaces (`M3 4.5 L13 4.5`). */
|
|
20
|
+
d: string;
|
|
21
|
+
/** The pivot of `r` and `s`. Default: the centre of the grid. */
|
|
22
|
+
c?: readonly [number, number];
|
|
23
|
+
/** It sets off this much later than the rest, 0–0.5 of the way. */
|
|
24
|
+
lag?: number;
|
|
25
|
+
/** Filled as well as stroked. */
|
|
26
|
+
fill?: boolean;
|
|
27
|
+
/** Its pose at rest, when it is not the plain one. */
|
|
28
|
+
rest?: Pose;
|
|
29
|
+
/** Its pose in each other state, over the one at rest. */
|
|
30
|
+
on?: Readonly<Record<string, Pose>>;
|
|
31
|
+
}
|
|
32
|
+
interface Kick {
|
|
33
|
+
/** The part it pushes; '*' is all of them. */
|
|
34
|
+
p: string;
|
|
35
|
+
k: 'x' | 'y' | 'r' | 's';
|
|
36
|
+
/** Speed it starts with, units per second. */
|
|
37
|
+
v?: number;
|
|
38
|
+
/** Where it ends; it must look like 0 (a full turn). Default: 0. */
|
|
39
|
+
to?: number;
|
|
40
|
+
/** It waits this long, ms. */
|
|
41
|
+
wait?: number;
|
|
42
|
+
}
|
|
43
|
+
interface IconDef {
|
|
44
|
+
name: string;
|
|
45
|
+
parts: readonly IconPart[];
|
|
46
|
+
/** Pushes by what sets them off: 'hover', 'press' or the name of a state it enters. */
|
|
47
|
+
kicks?: Readonly<Record<string, readonly Kick[]>>;
|
|
48
|
+
}
|
|
49
|
+
/** A pose with nothing left out. */
|
|
50
|
+
interface Full {
|
|
51
|
+
d: string;
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
r: number;
|
|
55
|
+
s: number;
|
|
56
|
+
draw: number;
|
|
57
|
+
o: number;
|
|
58
|
+
}
|
|
59
|
+
declare const REST = "rest";
|
|
60
|
+
/** The springs of the engine, the same on every platform: a change of state, a push, and a whole turn. */
|
|
61
|
+
declare const ICON_SPRINGS: {
|
|
62
|
+
readonly state: {
|
|
63
|
+
readonly stiffness: 320;
|
|
64
|
+
readonly damping: 26;
|
|
65
|
+
};
|
|
66
|
+
readonly push: {
|
|
67
|
+
readonly stiffness: 180;
|
|
68
|
+
readonly damping: 12;
|
|
69
|
+
};
|
|
70
|
+
readonly turn: {
|
|
71
|
+
readonly stiffness: 120;
|
|
72
|
+
readonly damping: 20;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
declare const poseOf: (part: IconPart, state: string | undefined, progress: number) => Full;
|
|
76
|
+
/** Whether its stroke is ever less than whole: it needs `pathLength`. */
|
|
77
|
+
declare const draws: (part: IconPart) => boolean;
|
|
78
|
+
/** The attributes of a part in a pose; null is «not there». The engine and the markup write the same ones. */
|
|
79
|
+
declare const attrsOf: (part: IconPart, pose: Full) => Record<"d" | "transform" | "stroke-dasharray" | "visibility" | "opacity", string | null>;
|
|
80
|
+
interface MarkupOptions {
|
|
81
|
+
state?: string;
|
|
82
|
+
/** 0–1, for the parts that follow it. */
|
|
83
|
+
progress?: number;
|
|
84
|
+
/** Its name for a screen reader; without it the icon is decoration. */
|
|
85
|
+
label?: string;
|
|
86
|
+
className?: string;
|
|
87
|
+
}
|
|
88
|
+
/** The parts of an icon in a state, as markup. */
|
|
89
|
+
declare const partsMarkup: (def: IconDef, state?: string, progress?: number) => string;
|
|
90
|
+
/** An icon as an `<svg>`, in a state: what a server sends, and what the engine leaves at rest. */
|
|
91
|
+
declare const iconMarkup: (def: IconDef, { state, progress, label, className }?: MarkupOptions) => string;
|
|
92
|
+
/** An outline split into its commands and its numbers. */
|
|
93
|
+
declare const parse: (d: string) => Array<string | number>;
|
|
94
|
+
/** What is wrong with an icon; nothing when it follows the rules. */
|
|
95
|
+
declare function validateIcon(def: IconDef): string[];
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The engine of a live icon: it reads the state from the DOM and takes every
|
|
99
|
+
* part from the pose it is in to the one of that state, with a spring. A push
|
|
100
|
+
* (a hover, a press, a state it enters) is added on top and springs back.
|
|
101
|
+
* At rest it leaves exactly what `iconMarkup` writes. (SPEC §14.36)
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
interface IconOptions {
|
|
105
|
+
/** Honor prefers-reduced-motion (default: true). */
|
|
106
|
+
respectReducedMotion?: boolean;
|
|
107
|
+
}
|
|
108
|
+
interface IconHandle {
|
|
109
|
+
/** Push it as a hover, a press or a state would. */
|
|
110
|
+
kick(name: string): void;
|
|
111
|
+
destroy(): void;
|
|
112
|
+
}
|
|
113
|
+
declare function attachIcon(svg: SVGSVGElement, def: IconDef, options?: IconOptions): IconHandle;
|
|
114
|
+
|
|
115
|
+
declare const arrowDown: IconDef;
|
|
116
|
+
|
|
117
|
+
declare const arrowLeft: IconDef;
|
|
118
|
+
|
|
119
|
+
declare const arrowRight: IconDef;
|
|
120
|
+
|
|
121
|
+
declare const arrowUp: IconDef;
|
|
122
|
+
|
|
123
|
+
/** A bell that rings with the pointer. `on`: something is new, a dot says so and it rings. */
|
|
124
|
+
declare const bell: IconDef;
|
|
125
|
+
|
|
126
|
+
/** An open book. `on`: being read, the lines are written on its pages. */
|
|
127
|
+
declare const book: IconDef;
|
|
128
|
+
|
|
129
|
+
declare const calendar: IconDef;
|
|
130
|
+
|
|
131
|
+
/** A bank card; pressed, it slides as when it is swiped. */
|
|
132
|
+
declare const card: IconDef;
|
|
133
|
+
|
|
134
|
+
/** A speech bubble. `typing`: three dots appear inside it; pressed, it gives a little. */
|
|
135
|
+
declare const chat: IconDef;
|
|
136
|
+
|
|
137
|
+
/** A tick in a circle. From `off` the circle is drawn and then the tick is written. */
|
|
138
|
+
declare const check: IconDef;
|
|
139
|
+
|
|
140
|
+
/** Two ticks: seen. `single`: only the first, sent; going back to rest writes the second. */
|
|
141
|
+
declare const checkDouble: IconDef;
|
|
142
|
+
|
|
143
|
+
/** It points down; `on`: up. */
|
|
144
|
+
declare const chevron: IconDef;
|
|
145
|
+
|
|
146
|
+
/** A clock. `busy`: something is on its way, the minute hand goes round once and the hour hand moves on. */
|
|
147
|
+
declare const clock: IconDef;
|
|
148
|
+
|
|
149
|
+
/** A cross that turns a little with the pointer and shrinks when pressed. */
|
|
150
|
+
declare const close: IconDef;
|
|
151
|
+
|
|
152
|
+
/** Two sheets; `done`: the one behind goes and a tick is written on the one in front. */
|
|
153
|
+
declare const copy: IconDef;
|
|
154
|
+
|
|
155
|
+
/** An arrow into a tray. `busy`: the tray fills with the progress of the icon. `done`: the arrow gives way to a tick. */
|
|
156
|
+
declare const download: IconDef;
|
|
157
|
+
|
|
158
|
+
/** An exclamation in a circle. From `off` it is drawn, and it shakes once. */
|
|
159
|
+
declare const error: IconDef;
|
|
160
|
+
|
|
161
|
+
/** A test on a clipboard. `done`: its boxes are ticked. */
|
|
162
|
+
declare const exam: IconDef;
|
|
163
|
+
|
|
164
|
+
/** An arrow out of a box: it opens elsewhere. Pressed, the arrow goes out a little. */
|
|
165
|
+
declare const external: IconDef;
|
|
166
|
+
|
|
167
|
+
/** An eye. `off`: hidden, as a password is, the lid comes down and a stroke crosses it. */
|
|
168
|
+
declare const eye: IconDef;
|
|
169
|
+
|
|
170
|
+
/** A funnel. `on`: a filter is applied, a dot says so; pressed, it drips. */
|
|
171
|
+
declare const filter: IconDef;
|
|
172
|
+
|
|
173
|
+
/** A question in a circle; pressed, it tilts its head. */
|
|
174
|
+
declare const help: IconDef;
|
|
175
|
+
|
|
176
|
+
declare const image: IconDef;
|
|
177
|
+
|
|
178
|
+
declare const inbox: IconDef;
|
|
179
|
+
|
|
180
|
+
/** An i in a circle; pressed, the dot hops. */
|
|
181
|
+
declare const info: IconDef;
|
|
182
|
+
|
|
183
|
+
declare const list: IconDef;
|
|
184
|
+
|
|
185
|
+
/** A padlock. `open`: the shackle lifts and lets go on one side; with the pointer it lifts a little and drops. */
|
|
186
|
+
declare const lock: IconDef;
|
|
187
|
+
|
|
188
|
+
/** An arrow into a door; with the pointer it goes in a little. */
|
|
189
|
+
declare const login: IconDef;
|
|
190
|
+
|
|
191
|
+
declare const logout: IconDef;
|
|
192
|
+
|
|
193
|
+
/** A folded map. `on`: a route is drawn across it. */
|
|
194
|
+
declare const map: IconDef;
|
|
195
|
+
|
|
196
|
+
/** A first-place medal on its ribbon; pressed, it swings. */
|
|
197
|
+
declare const medal: IconDef;
|
|
198
|
+
|
|
199
|
+
/** Three lines that cross into a close mark. `on`: open. */
|
|
200
|
+
declare const menu: IconDef;
|
|
201
|
+
|
|
202
|
+
/** A microphone. `on`: it is listening, the capsule fills. */
|
|
203
|
+
declare const mic: IconDef;
|
|
204
|
+
|
|
205
|
+
/** It wobbles from its tip, as if about to write. */
|
|
206
|
+
declare const pencil: IconDef;
|
|
207
|
+
|
|
208
|
+
/** A handset; pressed, it rings. */
|
|
209
|
+
declare const phone: IconDef;
|
|
210
|
+
|
|
211
|
+
/** A play triangle whose two halves part into the bars of pause. `on`: playing. */
|
|
212
|
+
declare const play: IconDef;
|
|
213
|
+
|
|
214
|
+
/** A sway with the pointer; pressed, a quarter turn, which leaves a plus as it was. */
|
|
215
|
+
declare const plus: IconDef;
|
|
216
|
+
|
|
217
|
+
/** An arrow round a circle: a nudge with the pointer, a whole turn when pressed. */
|
|
218
|
+
declare const refresh: IconDef;
|
|
219
|
+
|
|
220
|
+
/** An arrow round a circle, the other way from `refresh`: pressed, a whole turn back. */
|
|
221
|
+
declare const retry: IconDef;
|
|
222
|
+
|
|
223
|
+
/** A lens; pressed, it gives a little and comes back. */
|
|
224
|
+
declare const search: IconDef;
|
|
225
|
+
|
|
226
|
+
/** A paper plane; pressed, it flies out and comes back. */
|
|
227
|
+
declare const send: IconDef;
|
|
228
|
+
|
|
229
|
+
/** Three sliders; pressed, their knobs move and come back. */
|
|
230
|
+
declare const settings: IconDef;
|
|
231
|
+
|
|
232
|
+
/** A shield with a tick; it beats with the pointer. */
|
|
233
|
+
declare const shield: IconDef;
|
|
234
|
+
|
|
235
|
+
/** A panel with its side bar folded; `on`: open, and the arrow turns to fold it. */
|
|
236
|
+
declare const sidebar: IconDef;
|
|
237
|
+
|
|
238
|
+
declare const stack: IconDef;
|
|
239
|
+
|
|
240
|
+
/** A tick. `off`: not drawn, and it is written when it comes; `mixed`: a dash. */
|
|
241
|
+
declare const tick: IconDef;
|
|
242
|
+
|
|
243
|
+
/** A bin whose lid lifts when the pointer comes and jumps when it is pressed. */
|
|
244
|
+
declare const trash: IconDef;
|
|
245
|
+
|
|
246
|
+
/** An arrow out of a tray. `busy`: the tray fills with the progress of the icon. `done`: the arrow gives way to a tick. */
|
|
247
|
+
declare const upload: IconDef;
|
|
248
|
+
|
|
249
|
+
declare const user: IconDef;
|
|
250
|
+
|
|
251
|
+
/** Two people; pressed, one hops and then the other. */
|
|
252
|
+
declare const users: IconDef;
|
|
253
|
+
|
|
254
|
+
/** A wand and its sparks, which flare one after another. */
|
|
255
|
+
declare const wand: IconDef;
|
|
256
|
+
|
|
257
|
+
/** The signal. `off`: no connection, the arcs fade and a stroke crosses them. */
|
|
258
|
+
declare const wifi: IconDef;
|
|
259
|
+
|
|
260
|
+
export { type Full, ICON_SPRINGS, type IconDef, type IconHandle, type IconOptions, type IconPart, type Kick, type MarkupOptions, type Pose, REST, arrowDown, arrowLeft, arrowRight, arrowUp, attachIcon, attrsOf, bell, book, calendar, card, chat, check, checkDouble, chevron, clock, close, copy, download, draws, error, exam, external, eye, filter, help, iconMarkup, image, inbox, info, list, lock, login, logout, map, medal, menu, mic, parse, partsMarkup, pencil, phone, play, plus, poseOf, refresh, retry, search, send, settings, shield, sidebar, stack, tick, trash, upload, user, users, validateIcon, wand, wifi };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What an icon is, and what it looks like in a state. No DOM here: the server,
|
|
3
|
+
* the build and the engine all read an icon through these. (SPEC §14.36)
|
|
4
|
+
*/
|
|
5
|
+
interface Pose {
|
|
6
|
+
/** Another outline with the same commands: the part morphs into it. */
|
|
7
|
+
d?: string;
|
|
8
|
+
x?: number;
|
|
9
|
+
y?: number;
|
|
10
|
+
/** Degrees, around the pivot of the part. */
|
|
11
|
+
r?: number;
|
|
12
|
+
s?: number;
|
|
13
|
+
/** How much of the stroke is drawn, 0–1; 'p' follows the progress of the icon. */
|
|
14
|
+
draw?: number | 'p';
|
|
15
|
+
o?: number;
|
|
16
|
+
}
|
|
17
|
+
interface IconPart {
|
|
18
|
+
id: string;
|
|
19
|
+
/** Its outline at rest, on a 16 × 16 grid: absolute commands, numbers apart by single spaces (`M3 4.5 L13 4.5`). */
|
|
20
|
+
d: string;
|
|
21
|
+
/** The pivot of `r` and `s`. Default: the centre of the grid. */
|
|
22
|
+
c?: readonly [number, number];
|
|
23
|
+
/** It sets off this much later than the rest, 0–0.5 of the way. */
|
|
24
|
+
lag?: number;
|
|
25
|
+
/** Filled as well as stroked. */
|
|
26
|
+
fill?: boolean;
|
|
27
|
+
/** Its pose at rest, when it is not the plain one. */
|
|
28
|
+
rest?: Pose;
|
|
29
|
+
/** Its pose in each other state, over the one at rest. */
|
|
30
|
+
on?: Readonly<Record<string, Pose>>;
|
|
31
|
+
}
|
|
32
|
+
interface Kick {
|
|
33
|
+
/** The part it pushes; '*' is all of them. */
|
|
34
|
+
p: string;
|
|
35
|
+
k: 'x' | 'y' | 'r' | 's';
|
|
36
|
+
/** Speed it starts with, units per second. */
|
|
37
|
+
v?: number;
|
|
38
|
+
/** Where it ends; it must look like 0 (a full turn). Default: 0. */
|
|
39
|
+
to?: number;
|
|
40
|
+
/** It waits this long, ms. */
|
|
41
|
+
wait?: number;
|
|
42
|
+
}
|
|
43
|
+
interface IconDef {
|
|
44
|
+
name: string;
|
|
45
|
+
parts: readonly IconPart[];
|
|
46
|
+
/** Pushes by what sets them off: 'hover', 'press' or the name of a state it enters. */
|
|
47
|
+
kicks?: Readonly<Record<string, readonly Kick[]>>;
|
|
48
|
+
}
|
|
49
|
+
/** A pose with nothing left out. */
|
|
50
|
+
interface Full {
|
|
51
|
+
d: string;
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
r: number;
|
|
55
|
+
s: number;
|
|
56
|
+
draw: number;
|
|
57
|
+
o: number;
|
|
58
|
+
}
|
|
59
|
+
declare const REST = "rest";
|
|
60
|
+
/** The springs of the engine, the same on every platform: a change of state, a push, and a whole turn. */
|
|
61
|
+
declare const ICON_SPRINGS: {
|
|
62
|
+
readonly state: {
|
|
63
|
+
readonly stiffness: 320;
|
|
64
|
+
readonly damping: 26;
|
|
65
|
+
};
|
|
66
|
+
readonly push: {
|
|
67
|
+
readonly stiffness: 180;
|
|
68
|
+
readonly damping: 12;
|
|
69
|
+
};
|
|
70
|
+
readonly turn: {
|
|
71
|
+
readonly stiffness: 120;
|
|
72
|
+
readonly damping: 20;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
declare const poseOf: (part: IconPart, state: string | undefined, progress: number) => Full;
|
|
76
|
+
/** Whether its stroke is ever less than whole: it needs `pathLength`. */
|
|
77
|
+
declare const draws: (part: IconPart) => boolean;
|
|
78
|
+
/** The attributes of a part in a pose; null is «not there». The engine and the markup write the same ones. */
|
|
79
|
+
declare const attrsOf: (part: IconPart, pose: Full) => Record<"d" | "transform" | "stroke-dasharray" | "visibility" | "opacity", string | null>;
|
|
80
|
+
interface MarkupOptions {
|
|
81
|
+
state?: string;
|
|
82
|
+
/** 0–1, for the parts that follow it. */
|
|
83
|
+
progress?: number;
|
|
84
|
+
/** Its name for a screen reader; without it the icon is decoration. */
|
|
85
|
+
label?: string;
|
|
86
|
+
className?: string;
|
|
87
|
+
}
|
|
88
|
+
/** The parts of an icon in a state, as markup. */
|
|
89
|
+
declare const partsMarkup: (def: IconDef, state?: string, progress?: number) => string;
|
|
90
|
+
/** An icon as an `<svg>`, in a state: what a server sends, and what the engine leaves at rest. */
|
|
91
|
+
declare const iconMarkup: (def: IconDef, { state, progress, label, className }?: MarkupOptions) => string;
|
|
92
|
+
/** An outline split into its commands and its numbers. */
|
|
93
|
+
declare const parse: (d: string) => Array<string | number>;
|
|
94
|
+
/** What is wrong with an icon; nothing when it follows the rules. */
|
|
95
|
+
declare function validateIcon(def: IconDef): string[];
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The engine of a live icon: it reads the state from the DOM and takes every
|
|
99
|
+
* part from the pose it is in to the one of that state, with a spring. A push
|
|
100
|
+
* (a hover, a press, a state it enters) is added on top and springs back.
|
|
101
|
+
* At rest it leaves exactly what `iconMarkup` writes. (SPEC §14.36)
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
interface IconOptions {
|
|
105
|
+
/** Honor prefers-reduced-motion (default: true). */
|
|
106
|
+
respectReducedMotion?: boolean;
|
|
107
|
+
}
|
|
108
|
+
interface IconHandle {
|
|
109
|
+
/** Push it as a hover, a press or a state would. */
|
|
110
|
+
kick(name: string): void;
|
|
111
|
+
destroy(): void;
|
|
112
|
+
}
|
|
113
|
+
declare function attachIcon(svg: SVGSVGElement, def: IconDef, options?: IconOptions): IconHandle;
|
|
114
|
+
|
|
115
|
+
declare const arrowDown: IconDef;
|
|
116
|
+
|
|
117
|
+
declare const arrowLeft: IconDef;
|
|
118
|
+
|
|
119
|
+
declare const arrowRight: IconDef;
|
|
120
|
+
|
|
121
|
+
declare const arrowUp: IconDef;
|
|
122
|
+
|
|
123
|
+
/** A bell that rings with the pointer. `on`: something is new, a dot says so and it rings. */
|
|
124
|
+
declare const bell: IconDef;
|
|
125
|
+
|
|
126
|
+
/** An open book. `on`: being read, the lines are written on its pages. */
|
|
127
|
+
declare const book: IconDef;
|
|
128
|
+
|
|
129
|
+
declare const calendar: IconDef;
|
|
130
|
+
|
|
131
|
+
/** A bank card; pressed, it slides as when it is swiped. */
|
|
132
|
+
declare const card: IconDef;
|
|
133
|
+
|
|
134
|
+
/** A speech bubble. `typing`: three dots appear inside it; pressed, it gives a little. */
|
|
135
|
+
declare const chat: IconDef;
|
|
136
|
+
|
|
137
|
+
/** A tick in a circle. From `off` the circle is drawn and then the tick is written. */
|
|
138
|
+
declare const check: IconDef;
|
|
139
|
+
|
|
140
|
+
/** Two ticks: seen. `single`: only the first, sent; going back to rest writes the second. */
|
|
141
|
+
declare const checkDouble: IconDef;
|
|
142
|
+
|
|
143
|
+
/** It points down; `on`: up. */
|
|
144
|
+
declare const chevron: IconDef;
|
|
145
|
+
|
|
146
|
+
/** A clock. `busy`: something is on its way, the minute hand goes round once and the hour hand moves on. */
|
|
147
|
+
declare const clock: IconDef;
|
|
148
|
+
|
|
149
|
+
/** A cross that turns a little with the pointer and shrinks when pressed. */
|
|
150
|
+
declare const close: IconDef;
|
|
151
|
+
|
|
152
|
+
/** Two sheets; `done`: the one behind goes and a tick is written on the one in front. */
|
|
153
|
+
declare const copy: IconDef;
|
|
154
|
+
|
|
155
|
+
/** An arrow into a tray. `busy`: the tray fills with the progress of the icon. `done`: the arrow gives way to a tick. */
|
|
156
|
+
declare const download: IconDef;
|
|
157
|
+
|
|
158
|
+
/** An exclamation in a circle. From `off` it is drawn, and it shakes once. */
|
|
159
|
+
declare const error: IconDef;
|
|
160
|
+
|
|
161
|
+
/** A test on a clipboard. `done`: its boxes are ticked. */
|
|
162
|
+
declare const exam: IconDef;
|
|
163
|
+
|
|
164
|
+
/** An arrow out of a box: it opens elsewhere. Pressed, the arrow goes out a little. */
|
|
165
|
+
declare const external: IconDef;
|
|
166
|
+
|
|
167
|
+
/** An eye. `off`: hidden, as a password is, the lid comes down and a stroke crosses it. */
|
|
168
|
+
declare const eye: IconDef;
|
|
169
|
+
|
|
170
|
+
/** A funnel. `on`: a filter is applied, a dot says so; pressed, it drips. */
|
|
171
|
+
declare const filter: IconDef;
|
|
172
|
+
|
|
173
|
+
/** A question in a circle; pressed, it tilts its head. */
|
|
174
|
+
declare const help: IconDef;
|
|
175
|
+
|
|
176
|
+
declare const image: IconDef;
|
|
177
|
+
|
|
178
|
+
declare const inbox: IconDef;
|
|
179
|
+
|
|
180
|
+
/** An i in a circle; pressed, the dot hops. */
|
|
181
|
+
declare const info: IconDef;
|
|
182
|
+
|
|
183
|
+
declare const list: IconDef;
|
|
184
|
+
|
|
185
|
+
/** A padlock. `open`: the shackle lifts and lets go on one side; with the pointer it lifts a little and drops. */
|
|
186
|
+
declare const lock: IconDef;
|
|
187
|
+
|
|
188
|
+
/** An arrow into a door; with the pointer it goes in a little. */
|
|
189
|
+
declare const login: IconDef;
|
|
190
|
+
|
|
191
|
+
declare const logout: IconDef;
|
|
192
|
+
|
|
193
|
+
/** A folded map. `on`: a route is drawn across it. */
|
|
194
|
+
declare const map: IconDef;
|
|
195
|
+
|
|
196
|
+
/** A first-place medal on its ribbon; pressed, it swings. */
|
|
197
|
+
declare const medal: IconDef;
|
|
198
|
+
|
|
199
|
+
/** Three lines that cross into a close mark. `on`: open. */
|
|
200
|
+
declare const menu: IconDef;
|
|
201
|
+
|
|
202
|
+
/** A microphone. `on`: it is listening, the capsule fills. */
|
|
203
|
+
declare const mic: IconDef;
|
|
204
|
+
|
|
205
|
+
/** It wobbles from its tip, as if about to write. */
|
|
206
|
+
declare const pencil: IconDef;
|
|
207
|
+
|
|
208
|
+
/** A handset; pressed, it rings. */
|
|
209
|
+
declare const phone: IconDef;
|
|
210
|
+
|
|
211
|
+
/** A play triangle whose two halves part into the bars of pause. `on`: playing. */
|
|
212
|
+
declare const play: IconDef;
|
|
213
|
+
|
|
214
|
+
/** A sway with the pointer; pressed, a quarter turn, which leaves a plus as it was. */
|
|
215
|
+
declare const plus: IconDef;
|
|
216
|
+
|
|
217
|
+
/** An arrow round a circle: a nudge with the pointer, a whole turn when pressed. */
|
|
218
|
+
declare const refresh: IconDef;
|
|
219
|
+
|
|
220
|
+
/** An arrow round a circle, the other way from `refresh`: pressed, a whole turn back. */
|
|
221
|
+
declare const retry: IconDef;
|
|
222
|
+
|
|
223
|
+
/** A lens; pressed, it gives a little and comes back. */
|
|
224
|
+
declare const search: IconDef;
|
|
225
|
+
|
|
226
|
+
/** A paper plane; pressed, it flies out and comes back. */
|
|
227
|
+
declare const send: IconDef;
|
|
228
|
+
|
|
229
|
+
/** Three sliders; pressed, their knobs move and come back. */
|
|
230
|
+
declare const settings: IconDef;
|
|
231
|
+
|
|
232
|
+
/** A shield with a tick; it beats with the pointer. */
|
|
233
|
+
declare const shield: IconDef;
|
|
234
|
+
|
|
235
|
+
/** A panel with its side bar folded; `on`: open, and the arrow turns to fold it. */
|
|
236
|
+
declare const sidebar: IconDef;
|
|
237
|
+
|
|
238
|
+
declare const stack: IconDef;
|
|
239
|
+
|
|
240
|
+
/** A tick. `off`: not drawn, and it is written when it comes; `mixed`: a dash. */
|
|
241
|
+
declare const tick: IconDef;
|
|
242
|
+
|
|
243
|
+
/** A bin whose lid lifts when the pointer comes and jumps when it is pressed. */
|
|
244
|
+
declare const trash: IconDef;
|
|
245
|
+
|
|
246
|
+
/** An arrow out of a tray. `busy`: the tray fills with the progress of the icon. `done`: the arrow gives way to a tick. */
|
|
247
|
+
declare const upload: IconDef;
|
|
248
|
+
|
|
249
|
+
declare const user: IconDef;
|
|
250
|
+
|
|
251
|
+
/** Two people; pressed, one hops and then the other. */
|
|
252
|
+
declare const users: IconDef;
|
|
253
|
+
|
|
254
|
+
/** A wand and its sparks, which flare one after another. */
|
|
255
|
+
declare const wand: IconDef;
|
|
256
|
+
|
|
257
|
+
/** The signal. `off`: no connection, the arcs fade and a stroke crosses them. */
|
|
258
|
+
declare const wifi: IconDef;
|
|
259
|
+
|
|
260
|
+
export { type Full, ICON_SPRINGS, type IconDef, type IconHandle, type IconOptions, type IconPart, type Kick, type MarkupOptions, type Pose, REST, arrowDown, arrowLeft, arrowRight, arrowUp, attachIcon, attrsOf, bell, book, calendar, card, chat, check, checkDouble, chevron, clock, close, copy, download, draws, error, exam, external, eye, filter, help, iconMarkup, image, inbox, info, list, lock, login, logout, map, medal, menu, mic, parse, partsMarkup, pencil, phone, play, plus, poseOf, refresh, retry, search, send, settings, shield, sidebar, stack, tick, trash, upload, user, users, validateIcon, wand, wifi };
|