@stateglyph/core 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 +21 -0
- package/THIRD_PARTY_NOTICES.md +52 -0
- package/dist/index.d.ts +1114 -0
- package/dist/index.js +1107 -0
- package/package.json +52 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1114 @@
|
|
|
1
|
+
type StateIconCategory = "async" | "media" | "navigation" | "feedback" | "device" | "form" | "commerce" | "notification";
|
|
2
|
+
type StateIconTransition = "crossfade" | "scale-fade" | "rotate" | "slide" | "morph";
|
|
3
|
+
type StateIconLibrary = "lucide" | (string & {});
|
|
4
|
+
interface StateIconStateDefinition {
|
|
5
|
+
icon: string;
|
|
6
|
+
label: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
continuous?: boolean;
|
|
9
|
+
}
|
|
10
|
+
type StateIconStates = Record<string, StateIconStateDefinition>;
|
|
11
|
+
interface StateIconSource {
|
|
12
|
+
library: StateIconLibrary;
|
|
13
|
+
license: string;
|
|
14
|
+
url: string;
|
|
15
|
+
icons: readonly string[];
|
|
16
|
+
}
|
|
17
|
+
interface StateIconDefinition<States extends StateIconStates = StateIconStates> {
|
|
18
|
+
id: string;
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
category: StateIconCategory;
|
|
22
|
+
states: States;
|
|
23
|
+
initialState: keyof States & string;
|
|
24
|
+
transition: StateIconTransition;
|
|
25
|
+
tags: readonly string[];
|
|
26
|
+
source: StateIconSource;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare function defineStateIcon<const States extends StateIconStates>(definition: StateIconDefinition<States>): StateIconDefinition<States>;
|
|
30
|
+
|
|
31
|
+
declare const stateIconCatalog: readonly [StateIconDefinition<{
|
|
32
|
+
readonly idle: {
|
|
33
|
+
readonly icon: "upload";
|
|
34
|
+
readonly label: "Upload";
|
|
35
|
+
readonly description: "Ready to upload.";
|
|
36
|
+
};
|
|
37
|
+
readonly loading: {
|
|
38
|
+
readonly icon: "loader-circle";
|
|
39
|
+
readonly label: "Uploading";
|
|
40
|
+
readonly description: "Uploading is in progress.";
|
|
41
|
+
readonly continuous: true;
|
|
42
|
+
};
|
|
43
|
+
readonly success: {
|
|
44
|
+
readonly icon: "circle-check";
|
|
45
|
+
readonly label: "Upload complete";
|
|
46
|
+
readonly description: "Upload complete successfully.";
|
|
47
|
+
};
|
|
48
|
+
readonly error: {
|
|
49
|
+
readonly icon: "circle-alert";
|
|
50
|
+
readonly label: "Upload failed";
|
|
51
|
+
readonly description: "The upload action failed.";
|
|
52
|
+
};
|
|
53
|
+
}>, StateIconDefinition<{
|
|
54
|
+
readonly idle: {
|
|
55
|
+
readonly icon: "download";
|
|
56
|
+
readonly label: "Download";
|
|
57
|
+
readonly description: "Ready to download.";
|
|
58
|
+
};
|
|
59
|
+
readonly loading: {
|
|
60
|
+
readonly icon: "loader-circle";
|
|
61
|
+
readonly label: "Downloading";
|
|
62
|
+
readonly description: "Downloading is in progress.";
|
|
63
|
+
readonly continuous: true;
|
|
64
|
+
};
|
|
65
|
+
readonly success: {
|
|
66
|
+
readonly icon: "circle-check";
|
|
67
|
+
readonly label: "Download complete";
|
|
68
|
+
readonly description: "Download complete successfully.";
|
|
69
|
+
};
|
|
70
|
+
readonly error: {
|
|
71
|
+
readonly icon: "circle-alert";
|
|
72
|
+
readonly label: "Download failed";
|
|
73
|
+
readonly description: "The download action failed.";
|
|
74
|
+
};
|
|
75
|
+
}>, StateIconDefinition<{
|
|
76
|
+
readonly idle: {
|
|
77
|
+
readonly icon: "save";
|
|
78
|
+
readonly label: "Save";
|
|
79
|
+
readonly description: "Ready to save.";
|
|
80
|
+
};
|
|
81
|
+
readonly saving: {
|
|
82
|
+
readonly icon: "loader-circle";
|
|
83
|
+
readonly label: "Saving";
|
|
84
|
+
readonly description: "Saving is in progress.";
|
|
85
|
+
readonly continuous: true;
|
|
86
|
+
};
|
|
87
|
+
readonly saved: {
|
|
88
|
+
readonly icon: "circle-check";
|
|
89
|
+
readonly label: "Saved";
|
|
90
|
+
readonly description: "Saved successfully.";
|
|
91
|
+
};
|
|
92
|
+
readonly error: {
|
|
93
|
+
readonly icon: "circle-alert";
|
|
94
|
+
readonly label: "Save failed";
|
|
95
|
+
readonly description: "The save action failed.";
|
|
96
|
+
};
|
|
97
|
+
}>, StateIconDefinition<{
|
|
98
|
+
readonly idle: {
|
|
99
|
+
readonly icon: "trash-2";
|
|
100
|
+
readonly label: "Delete";
|
|
101
|
+
readonly description: "Ready to delete.";
|
|
102
|
+
};
|
|
103
|
+
readonly deleting: {
|
|
104
|
+
readonly icon: "loader-circle";
|
|
105
|
+
readonly label: "Deleting";
|
|
106
|
+
readonly description: "Deleting is in progress.";
|
|
107
|
+
readonly continuous: true;
|
|
108
|
+
};
|
|
109
|
+
readonly deleted: {
|
|
110
|
+
readonly icon: "circle-check";
|
|
111
|
+
readonly label: "Deleted";
|
|
112
|
+
readonly description: "Deleted successfully.";
|
|
113
|
+
};
|
|
114
|
+
readonly error: {
|
|
115
|
+
readonly icon: "circle-alert";
|
|
116
|
+
readonly label: "Delete failed";
|
|
117
|
+
readonly description: "The delete action failed.";
|
|
118
|
+
};
|
|
119
|
+
}>, StateIconDefinition<{
|
|
120
|
+
readonly idle: {
|
|
121
|
+
readonly icon: "refresh-cw";
|
|
122
|
+
readonly label: "Refresh";
|
|
123
|
+
readonly description: "Ready to refresh.";
|
|
124
|
+
};
|
|
125
|
+
readonly refreshing: {
|
|
126
|
+
readonly icon: "loader-circle";
|
|
127
|
+
readonly label: "Refreshing";
|
|
128
|
+
readonly description: "Refreshing is in progress.";
|
|
129
|
+
readonly continuous: true;
|
|
130
|
+
};
|
|
131
|
+
readonly complete: {
|
|
132
|
+
readonly icon: "circle-check";
|
|
133
|
+
readonly label: "Refresh complete";
|
|
134
|
+
readonly description: "Refresh complete successfully.";
|
|
135
|
+
};
|
|
136
|
+
readonly error: {
|
|
137
|
+
readonly icon: "circle-alert";
|
|
138
|
+
readonly label: "Refresh failed";
|
|
139
|
+
readonly description: "The refresh action failed.";
|
|
140
|
+
};
|
|
141
|
+
}>, StateIconDefinition<{
|
|
142
|
+
readonly idle: {
|
|
143
|
+
readonly icon: "refresh-cw";
|
|
144
|
+
readonly label: "Sync";
|
|
145
|
+
readonly description: "Ready to sync.";
|
|
146
|
+
};
|
|
147
|
+
readonly syncing: {
|
|
148
|
+
readonly icon: "loader-circle";
|
|
149
|
+
readonly label: "Syncing";
|
|
150
|
+
readonly description: "Syncing is in progress.";
|
|
151
|
+
readonly continuous: true;
|
|
152
|
+
};
|
|
153
|
+
readonly synced: {
|
|
154
|
+
readonly icon: "circle-check";
|
|
155
|
+
readonly label: "Synced";
|
|
156
|
+
readonly description: "Synced successfully.";
|
|
157
|
+
};
|
|
158
|
+
readonly error: {
|
|
159
|
+
readonly icon: "circle-alert";
|
|
160
|
+
readonly label: "Sync failed";
|
|
161
|
+
readonly description: "The sync action failed.";
|
|
162
|
+
};
|
|
163
|
+
}>, StateIconDefinition<{
|
|
164
|
+
readonly idle: {
|
|
165
|
+
readonly icon: "send";
|
|
166
|
+
readonly label: "Send";
|
|
167
|
+
readonly description: "Ready to send.";
|
|
168
|
+
};
|
|
169
|
+
readonly sending: {
|
|
170
|
+
readonly icon: "loader-circle";
|
|
171
|
+
readonly label: "Sending";
|
|
172
|
+
readonly description: "Sending is in progress.";
|
|
173
|
+
readonly continuous: true;
|
|
174
|
+
};
|
|
175
|
+
readonly sent: {
|
|
176
|
+
readonly icon: "circle-check";
|
|
177
|
+
readonly label: "Sent";
|
|
178
|
+
readonly description: "Sent successfully.";
|
|
179
|
+
};
|
|
180
|
+
readonly error: {
|
|
181
|
+
readonly icon: "circle-alert";
|
|
182
|
+
readonly label: "Send failed";
|
|
183
|
+
readonly description: "The send action failed.";
|
|
184
|
+
};
|
|
185
|
+
}>, StateIconDefinition<{
|
|
186
|
+
readonly idle: {
|
|
187
|
+
readonly icon: "credit-card";
|
|
188
|
+
readonly label: "Payment";
|
|
189
|
+
readonly description: "Ready to payment.";
|
|
190
|
+
};
|
|
191
|
+
readonly processing: {
|
|
192
|
+
readonly icon: "loader-circle";
|
|
193
|
+
readonly label: "Processing payment";
|
|
194
|
+
readonly description: "Processing payment is in progress.";
|
|
195
|
+
readonly continuous: true;
|
|
196
|
+
};
|
|
197
|
+
readonly success: {
|
|
198
|
+
readonly icon: "circle-check";
|
|
199
|
+
readonly label: "Payment complete";
|
|
200
|
+
readonly description: "Payment complete successfully.";
|
|
201
|
+
};
|
|
202
|
+
readonly error: {
|
|
203
|
+
readonly icon: "circle-alert";
|
|
204
|
+
readonly label: "Payment failed";
|
|
205
|
+
readonly description: "The payment action failed.";
|
|
206
|
+
};
|
|
207
|
+
}>, StateIconDefinition<{
|
|
208
|
+
readonly idle: {
|
|
209
|
+
readonly icon: "shopping-cart";
|
|
210
|
+
readonly label: "Add to cart";
|
|
211
|
+
readonly description: "Ready to add to cart.";
|
|
212
|
+
};
|
|
213
|
+
readonly adding: {
|
|
214
|
+
readonly icon: "loader-circle";
|
|
215
|
+
readonly label: "Adding to cart";
|
|
216
|
+
readonly description: "Adding to cart is in progress.";
|
|
217
|
+
readonly continuous: true;
|
|
218
|
+
};
|
|
219
|
+
readonly added: {
|
|
220
|
+
readonly icon: "circle-check";
|
|
221
|
+
readonly label: "Added to cart";
|
|
222
|
+
readonly description: "Added to cart successfully.";
|
|
223
|
+
};
|
|
224
|
+
readonly error: {
|
|
225
|
+
readonly icon: "circle-alert";
|
|
226
|
+
readonly label: "Add to cart failed";
|
|
227
|
+
readonly description: "The add to cart action failed.";
|
|
228
|
+
};
|
|
229
|
+
}>, StateIconDefinition<{
|
|
230
|
+
readonly idle: {
|
|
231
|
+
readonly icon: "send-horizontal";
|
|
232
|
+
readonly label: "Submit";
|
|
233
|
+
readonly description: "Ready to submit.";
|
|
234
|
+
};
|
|
235
|
+
readonly submitting: {
|
|
236
|
+
readonly icon: "loader-circle";
|
|
237
|
+
readonly label: "Submitting";
|
|
238
|
+
readonly description: "Submitting is in progress.";
|
|
239
|
+
readonly continuous: true;
|
|
240
|
+
};
|
|
241
|
+
readonly success: {
|
|
242
|
+
readonly icon: "circle-check";
|
|
243
|
+
readonly label: "Submission complete";
|
|
244
|
+
readonly description: "Submission complete successfully.";
|
|
245
|
+
};
|
|
246
|
+
readonly error: {
|
|
247
|
+
readonly icon: "circle-alert";
|
|
248
|
+
readonly label: "Submit failed";
|
|
249
|
+
readonly description: "The submit action failed.";
|
|
250
|
+
};
|
|
251
|
+
}>, StateIconDefinition<{
|
|
252
|
+
readonly idle: {
|
|
253
|
+
readonly icon: "package";
|
|
254
|
+
readonly label: "Install";
|
|
255
|
+
readonly description: "Ready to install.";
|
|
256
|
+
};
|
|
257
|
+
readonly installing: {
|
|
258
|
+
readonly icon: "loader-circle";
|
|
259
|
+
readonly label: "Installing";
|
|
260
|
+
readonly description: "Installing is in progress.";
|
|
261
|
+
readonly continuous: true;
|
|
262
|
+
};
|
|
263
|
+
readonly installed: {
|
|
264
|
+
readonly icon: "package-check";
|
|
265
|
+
readonly label: "Installed";
|
|
266
|
+
readonly description: "Installed successfully.";
|
|
267
|
+
};
|
|
268
|
+
readonly error: {
|
|
269
|
+
readonly icon: "circle-alert";
|
|
270
|
+
readonly label: "Install failed";
|
|
271
|
+
readonly description: "The install action failed.";
|
|
272
|
+
};
|
|
273
|
+
}>, StateIconDefinition<{
|
|
274
|
+
readonly draft: {
|
|
275
|
+
readonly icon: "file-pen-line";
|
|
276
|
+
readonly label: "Draft";
|
|
277
|
+
readonly description: "The content is still a draft.";
|
|
278
|
+
};
|
|
279
|
+
readonly publishing: {
|
|
280
|
+
readonly icon: "loader-circle";
|
|
281
|
+
readonly label: "Publishing";
|
|
282
|
+
readonly description: "Publication is in progress.";
|
|
283
|
+
readonly continuous: true;
|
|
284
|
+
};
|
|
285
|
+
readonly published: {
|
|
286
|
+
readonly icon: "circle-check";
|
|
287
|
+
readonly label: "Published";
|
|
288
|
+
readonly description: "The content is published.";
|
|
289
|
+
};
|
|
290
|
+
readonly error: {
|
|
291
|
+
readonly icon: "circle-alert";
|
|
292
|
+
readonly label: "Publishing failed";
|
|
293
|
+
readonly description: "The content could not be published.";
|
|
294
|
+
};
|
|
295
|
+
}>, StateIconDefinition<{
|
|
296
|
+
readonly paused: {
|
|
297
|
+
readonly icon: "play";
|
|
298
|
+
readonly label: "Play";
|
|
299
|
+
readonly description: "Media is paused and can be played.";
|
|
300
|
+
};
|
|
301
|
+
readonly playing: {
|
|
302
|
+
readonly icon: "pause";
|
|
303
|
+
readonly label: "Pause";
|
|
304
|
+
readonly description: "Media is playing and can be paused.";
|
|
305
|
+
};
|
|
306
|
+
}>, StateIconDefinition<{
|
|
307
|
+
readonly idle: {
|
|
308
|
+
readonly icon: "play";
|
|
309
|
+
readonly label: "Play";
|
|
310
|
+
readonly description: "Media is ready to play.";
|
|
311
|
+
};
|
|
312
|
+
readonly buffering: {
|
|
313
|
+
readonly icon: "loader-circle";
|
|
314
|
+
readonly label: "Buffering";
|
|
315
|
+
readonly description: "Media is buffering.";
|
|
316
|
+
readonly continuous: true;
|
|
317
|
+
};
|
|
318
|
+
readonly playing: {
|
|
319
|
+
readonly icon: "pause";
|
|
320
|
+
readonly label: "Pause";
|
|
321
|
+
readonly description: "Media is currently playing.";
|
|
322
|
+
};
|
|
323
|
+
readonly paused: {
|
|
324
|
+
readonly icon: "play";
|
|
325
|
+
readonly label: "Resume";
|
|
326
|
+
readonly description: "Media is paused.";
|
|
327
|
+
};
|
|
328
|
+
}>, StateIconDefinition<{
|
|
329
|
+
readonly audible: {
|
|
330
|
+
readonly icon: "volume-2";
|
|
331
|
+
readonly label: "Mute audio";
|
|
332
|
+
readonly description: "Audio is audible.";
|
|
333
|
+
};
|
|
334
|
+
readonly muted: {
|
|
335
|
+
readonly icon: "volume-x";
|
|
336
|
+
readonly label: "Unmute audio";
|
|
337
|
+
readonly description: "Audio is muted.";
|
|
338
|
+
};
|
|
339
|
+
}>, StateIconDefinition<{
|
|
340
|
+
readonly active: {
|
|
341
|
+
readonly icon: "mic";
|
|
342
|
+
readonly label: "Mute microphone";
|
|
343
|
+
readonly description: "The microphone is active.";
|
|
344
|
+
};
|
|
345
|
+
readonly muted: {
|
|
346
|
+
readonly icon: "mic-off";
|
|
347
|
+
readonly label: "Unmute microphone";
|
|
348
|
+
readonly description: "The microphone is muted.";
|
|
349
|
+
};
|
|
350
|
+
}>, StateIconDefinition<{
|
|
351
|
+
readonly active: {
|
|
352
|
+
readonly icon: "video";
|
|
353
|
+
readonly label: "Disable camera";
|
|
354
|
+
readonly description: "The camera is active.";
|
|
355
|
+
};
|
|
356
|
+
readonly disabled: {
|
|
357
|
+
readonly icon: "video-off";
|
|
358
|
+
readonly label: "Enable camera";
|
|
359
|
+
readonly description: "The camera is disabled.";
|
|
360
|
+
};
|
|
361
|
+
}>, StateIconDefinition<{
|
|
362
|
+
readonly windowed: {
|
|
363
|
+
readonly icon: "maximize";
|
|
364
|
+
readonly label: "Enter fullscreen";
|
|
365
|
+
readonly description: "The view is windowed.";
|
|
366
|
+
};
|
|
367
|
+
readonly fullscreen: {
|
|
368
|
+
readonly icon: "minimize";
|
|
369
|
+
readonly label: "Exit fullscreen";
|
|
370
|
+
readonly description: "The view is fullscreen.";
|
|
371
|
+
};
|
|
372
|
+
}>, StateIconDefinition<{
|
|
373
|
+
readonly off: {
|
|
374
|
+
readonly icon: "repeat";
|
|
375
|
+
readonly label: "Turn repeat on";
|
|
376
|
+
readonly description: "Repeat is off.";
|
|
377
|
+
};
|
|
378
|
+
readonly on: {
|
|
379
|
+
readonly icon: "repeat-2";
|
|
380
|
+
readonly label: "Turn repeat off";
|
|
381
|
+
readonly description: "Repeat is on.";
|
|
382
|
+
};
|
|
383
|
+
}>, StateIconDefinition<{
|
|
384
|
+
readonly off: {
|
|
385
|
+
readonly icon: "list-ordered";
|
|
386
|
+
readonly label: "Turn shuffle on";
|
|
387
|
+
readonly description: "Shuffle is off.";
|
|
388
|
+
};
|
|
389
|
+
readonly on: {
|
|
390
|
+
readonly icon: "shuffle";
|
|
391
|
+
readonly label: "Turn shuffle off";
|
|
392
|
+
readonly description: "Shuffle is on.";
|
|
393
|
+
};
|
|
394
|
+
}>, StateIconDefinition<{
|
|
395
|
+
readonly closed: {
|
|
396
|
+
readonly icon: "menu";
|
|
397
|
+
readonly label: "Open menu";
|
|
398
|
+
readonly description: "The menu is closed.";
|
|
399
|
+
};
|
|
400
|
+
readonly open: {
|
|
401
|
+
readonly icon: "x";
|
|
402
|
+
readonly label: "Close menu";
|
|
403
|
+
readonly description: "The menu is open.";
|
|
404
|
+
};
|
|
405
|
+
}>, StateIconDefinition<{
|
|
406
|
+
readonly collapsed: {
|
|
407
|
+
readonly icon: "chevrons-up-down";
|
|
408
|
+
readonly label: "Expand";
|
|
409
|
+
readonly description: "The content is collapsed.";
|
|
410
|
+
};
|
|
411
|
+
readonly expanded: {
|
|
412
|
+
readonly icon: "chevrons-down-up";
|
|
413
|
+
readonly label: "Collapse";
|
|
414
|
+
readonly description: "The content is expanded.";
|
|
415
|
+
};
|
|
416
|
+
}>, StateIconDefinition<{
|
|
417
|
+
readonly open: {
|
|
418
|
+
readonly icon: "panel-left-close";
|
|
419
|
+
readonly label: "Close sidebar";
|
|
420
|
+
readonly description: "The sidebar is open.";
|
|
421
|
+
};
|
|
422
|
+
readonly closed: {
|
|
423
|
+
readonly icon: "panel-left-open";
|
|
424
|
+
readonly label: "Open sidebar";
|
|
425
|
+
readonly description: "The sidebar is closed.";
|
|
426
|
+
};
|
|
427
|
+
}>, StateIconDefinition<{
|
|
428
|
+
readonly grid: {
|
|
429
|
+
readonly icon: "layout-grid";
|
|
430
|
+
readonly label: "Show as list";
|
|
431
|
+
readonly description: "The collection uses a grid layout.";
|
|
432
|
+
};
|
|
433
|
+
readonly list: {
|
|
434
|
+
readonly icon: "list";
|
|
435
|
+
readonly label: "Show as grid";
|
|
436
|
+
readonly description: "The collection uses a list layout.";
|
|
437
|
+
};
|
|
438
|
+
}>, StateIconDefinition<{
|
|
439
|
+
readonly up: {
|
|
440
|
+
readonly icon: "chevron-up";
|
|
441
|
+
readonly label: "Point up";
|
|
442
|
+
readonly description: "The chevron points upward.";
|
|
443
|
+
};
|
|
444
|
+
readonly down: {
|
|
445
|
+
readonly icon: "chevron-down";
|
|
446
|
+
readonly label: "Point down";
|
|
447
|
+
readonly description: "The chevron points downward.";
|
|
448
|
+
};
|
|
449
|
+
}>, StateIconDefinition<{
|
|
450
|
+
readonly left: {
|
|
451
|
+
readonly icon: "chevron-left";
|
|
452
|
+
readonly label: "Point left";
|
|
453
|
+
readonly description: "The chevron points left.";
|
|
454
|
+
};
|
|
455
|
+
readonly right: {
|
|
456
|
+
readonly icon: "chevron-right";
|
|
457
|
+
readonly label: "Point right";
|
|
458
|
+
readonly description: "The chevron points right.";
|
|
459
|
+
};
|
|
460
|
+
}>, StateIconDefinition<{
|
|
461
|
+
readonly restored: {
|
|
462
|
+
readonly icon: "maximize-2";
|
|
463
|
+
readonly label: "Maximize panel";
|
|
464
|
+
readonly description: "The panel is restored.";
|
|
465
|
+
};
|
|
466
|
+
readonly maximized: {
|
|
467
|
+
readonly icon: "minimize-2";
|
|
468
|
+
readonly label: "Restore panel";
|
|
469
|
+
readonly description: "The panel is maximized.";
|
|
470
|
+
};
|
|
471
|
+
}>, StateIconDefinition<{
|
|
472
|
+
readonly idle: {
|
|
473
|
+
readonly icon: "copy";
|
|
474
|
+
readonly label: "Copy";
|
|
475
|
+
readonly description: "Content is ready to be copied.";
|
|
476
|
+
};
|
|
477
|
+
readonly copied: {
|
|
478
|
+
readonly icon: "check";
|
|
479
|
+
readonly label: "Copied";
|
|
480
|
+
readonly description: "Content was copied.";
|
|
481
|
+
};
|
|
482
|
+
readonly reset: {
|
|
483
|
+
readonly icon: "rotate-ccw";
|
|
484
|
+
readonly label: "Copy again";
|
|
485
|
+
readonly description: "Copy feedback has reset.";
|
|
486
|
+
};
|
|
487
|
+
}>, StateIconDefinition<{
|
|
488
|
+
readonly unliked: {
|
|
489
|
+
readonly icon: "heart";
|
|
490
|
+
readonly label: "Like";
|
|
491
|
+
readonly description: "The item is not liked.";
|
|
492
|
+
};
|
|
493
|
+
readonly liked: {
|
|
494
|
+
readonly icon: "heart-off";
|
|
495
|
+
readonly label: "Remove like";
|
|
496
|
+
readonly description: "The item is liked.";
|
|
497
|
+
};
|
|
498
|
+
}>, StateIconDefinition<{
|
|
499
|
+
readonly unbookmarked: {
|
|
500
|
+
readonly icon: "bookmark";
|
|
501
|
+
readonly label: "Add bookmark";
|
|
502
|
+
readonly description: "The item is not bookmarked.";
|
|
503
|
+
};
|
|
504
|
+
readonly bookmarked: {
|
|
505
|
+
readonly icon: "bookmark-check";
|
|
506
|
+
readonly label: "Remove bookmark";
|
|
507
|
+
readonly description: "The item is bookmarked.";
|
|
508
|
+
};
|
|
509
|
+
}>, StateIconDefinition<{
|
|
510
|
+
readonly off: {
|
|
511
|
+
readonly icon: "bell-off";
|
|
512
|
+
readonly label: "Enable notifications";
|
|
513
|
+
readonly description: "Notifications are off.";
|
|
514
|
+
};
|
|
515
|
+
readonly on: {
|
|
516
|
+
readonly icon: "bell";
|
|
517
|
+
readonly label: "Notifications on";
|
|
518
|
+
readonly description: "Notifications are enabled.";
|
|
519
|
+
};
|
|
520
|
+
readonly unread: {
|
|
521
|
+
readonly icon: "bell-ring";
|
|
522
|
+
readonly label: "Unread notifications";
|
|
523
|
+
readonly description: "There are unread notifications.";
|
|
524
|
+
};
|
|
525
|
+
}>];
|
|
526
|
+
|
|
527
|
+
declare const uploadStateIcon: StateIconDefinition<{
|
|
528
|
+
readonly idle: {
|
|
529
|
+
readonly icon: "upload";
|
|
530
|
+
readonly label: "Upload";
|
|
531
|
+
readonly description: "Ready to upload.";
|
|
532
|
+
};
|
|
533
|
+
readonly loading: {
|
|
534
|
+
readonly icon: "loader-circle";
|
|
535
|
+
readonly label: "Uploading";
|
|
536
|
+
readonly description: "Uploading is in progress.";
|
|
537
|
+
readonly continuous: true;
|
|
538
|
+
};
|
|
539
|
+
readonly success: {
|
|
540
|
+
readonly icon: "circle-check";
|
|
541
|
+
readonly label: "Upload complete";
|
|
542
|
+
readonly description: "Upload complete successfully.";
|
|
543
|
+
};
|
|
544
|
+
readonly error: {
|
|
545
|
+
readonly icon: "circle-alert";
|
|
546
|
+
readonly label: "Upload failed";
|
|
547
|
+
readonly description: "The upload action failed.";
|
|
548
|
+
};
|
|
549
|
+
}>;
|
|
550
|
+
type UploadState = keyof typeof uploadStateIcon.states;
|
|
551
|
+
|
|
552
|
+
declare const downloadStateIcon: StateIconDefinition<{
|
|
553
|
+
readonly idle: {
|
|
554
|
+
readonly icon: "download";
|
|
555
|
+
readonly label: "Download";
|
|
556
|
+
readonly description: "Ready to download.";
|
|
557
|
+
};
|
|
558
|
+
readonly loading: {
|
|
559
|
+
readonly icon: "loader-circle";
|
|
560
|
+
readonly label: "Downloading";
|
|
561
|
+
readonly description: "Downloading is in progress.";
|
|
562
|
+
readonly continuous: true;
|
|
563
|
+
};
|
|
564
|
+
readonly success: {
|
|
565
|
+
readonly icon: "circle-check";
|
|
566
|
+
readonly label: "Download complete";
|
|
567
|
+
readonly description: "Download complete successfully.";
|
|
568
|
+
};
|
|
569
|
+
readonly error: {
|
|
570
|
+
readonly icon: "circle-alert";
|
|
571
|
+
readonly label: "Download failed";
|
|
572
|
+
readonly description: "The download action failed.";
|
|
573
|
+
};
|
|
574
|
+
}>;
|
|
575
|
+
type DownloadState = keyof typeof downloadStateIcon.states;
|
|
576
|
+
|
|
577
|
+
declare const saveStateIcon: StateIconDefinition<{
|
|
578
|
+
readonly idle: {
|
|
579
|
+
readonly icon: "save";
|
|
580
|
+
readonly label: "Save";
|
|
581
|
+
readonly description: "Ready to save.";
|
|
582
|
+
};
|
|
583
|
+
readonly saving: {
|
|
584
|
+
readonly icon: "loader-circle";
|
|
585
|
+
readonly label: "Saving";
|
|
586
|
+
readonly description: "Saving is in progress.";
|
|
587
|
+
readonly continuous: true;
|
|
588
|
+
};
|
|
589
|
+
readonly saved: {
|
|
590
|
+
readonly icon: "circle-check";
|
|
591
|
+
readonly label: "Saved";
|
|
592
|
+
readonly description: "Saved successfully.";
|
|
593
|
+
};
|
|
594
|
+
readonly error: {
|
|
595
|
+
readonly icon: "circle-alert";
|
|
596
|
+
readonly label: "Save failed";
|
|
597
|
+
readonly description: "The save action failed.";
|
|
598
|
+
};
|
|
599
|
+
}>;
|
|
600
|
+
type SaveState = keyof typeof saveStateIcon.states;
|
|
601
|
+
|
|
602
|
+
declare const deleteStateIcon: StateIconDefinition<{
|
|
603
|
+
readonly idle: {
|
|
604
|
+
readonly icon: "trash-2";
|
|
605
|
+
readonly label: "Delete";
|
|
606
|
+
readonly description: "Ready to delete.";
|
|
607
|
+
};
|
|
608
|
+
readonly deleting: {
|
|
609
|
+
readonly icon: "loader-circle";
|
|
610
|
+
readonly label: "Deleting";
|
|
611
|
+
readonly description: "Deleting is in progress.";
|
|
612
|
+
readonly continuous: true;
|
|
613
|
+
};
|
|
614
|
+
readonly deleted: {
|
|
615
|
+
readonly icon: "circle-check";
|
|
616
|
+
readonly label: "Deleted";
|
|
617
|
+
readonly description: "Deleted successfully.";
|
|
618
|
+
};
|
|
619
|
+
readonly error: {
|
|
620
|
+
readonly icon: "circle-alert";
|
|
621
|
+
readonly label: "Delete failed";
|
|
622
|
+
readonly description: "The delete action failed.";
|
|
623
|
+
};
|
|
624
|
+
}>;
|
|
625
|
+
type DeleteState = keyof typeof deleteStateIcon.states;
|
|
626
|
+
|
|
627
|
+
declare const refreshStateIcon: StateIconDefinition<{
|
|
628
|
+
readonly idle: {
|
|
629
|
+
readonly icon: "refresh-cw";
|
|
630
|
+
readonly label: "Refresh";
|
|
631
|
+
readonly description: "Ready to refresh.";
|
|
632
|
+
};
|
|
633
|
+
readonly refreshing: {
|
|
634
|
+
readonly icon: "loader-circle";
|
|
635
|
+
readonly label: "Refreshing";
|
|
636
|
+
readonly description: "Refreshing is in progress.";
|
|
637
|
+
readonly continuous: true;
|
|
638
|
+
};
|
|
639
|
+
readonly complete: {
|
|
640
|
+
readonly icon: "circle-check";
|
|
641
|
+
readonly label: "Refresh complete";
|
|
642
|
+
readonly description: "Refresh complete successfully.";
|
|
643
|
+
};
|
|
644
|
+
readonly error: {
|
|
645
|
+
readonly icon: "circle-alert";
|
|
646
|
+
readonly label: "Refresh failed";
|
|
647
|
+
readonly description: "The refresh action failed.";
|
|
648
|
+
};
|
|
649
|
+
}>;
|
|
650
|
+
type RefreshState = keyof typeof refreshStateIcon.states;
|
|
651
|
+
|
|
652
|
+
declare const syncStateIcon: StateIconDefinition<{
|
|
653
|
+
readonly idle: {
|
|
654
|
+
readonly icon: "refresh-cw";
|
|
655
|
+
readonly label: "Sync";
|
|
656
|
+
readonly description: "Ready to sync.";
|
|
657
|
+
};
|
|
658
|
+
readonly syncing: {
|
|
659
|
+
readonly icon: "loader-circle";
|
|
660
|
+
readonly label: "Syncing";
|
|
661
|
+
readonly description: "Syncing is in progress.";
|
|
662
|
+
readonly continuous: true;
|
|
663
|
+
};
|
|
664
|
+
readonly synced: {
|
|
665
|
+
readonly icon: "circle-check";
|
|
666
|
+
readonly label: "Synced";
|
|
667
|
+
readonly description: "Synced successfully.";
|
|
668
|
+
};
|
|
669
|
+
readonly error: {
|
|
670
|
+
readonly icon: "circle-alert";
|
|
671
|
+
readonly label: "Sync failed";
|
|
672
|
+
readonly description: "The sync action failed.";
|
|
673
|
+
};
|
|
674
|
+
}>;
|
|
675
|
+
type SyncState = keyof typeof syncStateIcon.states;
|
|
676
|
+
|
|
677
|
+
declare const sendStateIcon: StateIconDefinition<{
|
|
678
|
+
readonly idle: {
|
|
679
|
+
readonly icon: "send";
|
|
680
|
+
readonly label: "Send";
|
|
681
|
+
readonly description: "Ready to send.";
|
|
682
|
+
};
|
|
683
|
+
readonly sending: {
|
|
684
|
+
readonly icon: "loader-circle";
|
|
685
|
+
readonly label: "Sending";
|
|
686
|
+
readonly description: "Sending is in progress.";
|
|
687
|
+
readonly continuous: true;
|
|
688
|
+
};
|
|
689
|
+
readonly sent: {
|
|
690
|
+
readonly icon: "circle-check";
|
|
691
|
+
readonly label: "Sent";
|
|
692
|
+
readonly description: "Sent successfully.";
|
|
693
|
+
};
|
|
694
|
+
readonly error: {
|
|
695
|
+
readonly icon: "circle-alert";
|
|
696
|
+
readonly label: "Send failed";
|
|
697
|
+
readonly description: "The send action failed.";
|
|
698
|
+
};
|
|
699
|
+
}>;
|
|
700
|
+
type SendState = keyof typeof sendStateIcon.states;
|
|
701
|
+
|
|
702
|
+
declare const paymentStateIcon: StateIconDefinition<{
|
|
703
|
+
readonly idle: {
|
|
704
|
+
readonly icon: "credit-card";
|
|
705
|
+
readonly label: "Payment";
|
|
706
|
+
readonly description: "Ready to payment.";
|
|
707
|
+
};
|
|
708
|
+
readonly processing: {
|
|
709
|
+
readonly icon: "loader-circle";
|
|
710
|
+
readonly label: "Processing payment";
|
|
711
|
+
readonly description: "Processing payment is in progress.";
|
|
712
|
+
readonly continuous: true;
|
|
713
|
+
};
|
|
714
|
+
readonly success: {
|
|
715
|
+
readonly icon: "circle-check";
|
|
716
|
+
readonly label: "Payment complete";
|
|
717
|
+
readonly description: "Payment complete successfully.";
|
|
718
|
+
};
|
|
719
|
+
readonly error: {
|
|
720
|
+
readonly icon: "circle-alert";
|
|
721
|
+
readonly label: "Payment failed";
|
|
722
|
+
readonly description: "The payment action failed.";
|
|
723
|
+
};
|
|
724
|
+
}>;
|
|
725
|
+
type PaymentState = keyof typeof paymentStateIcon.states;
|
|
726
|
+
|
|
727
|
+
declare const addToCartStateIcon: StateIconDefinition<{
|
|
728
|
+
readonly idle: {
|
|
729
|
+
readonly icon: "shopping-cart";
|
|
730
|
+
readonly label: "Add to cart";
|
|
731
|
+
readonly description: "Ready to add to cart.";
|
|
732
|
+
};
|
|
733
|
+
readonly adding: {
|
|
734
|
+
readonly icon: "loader-circle";
|
|
735
|
+
readonly label: "Adding to cart";
|
|
736
|
+
readonly description: "Adding to cart is in progress.";
|
|
737
|
+
readonly continuous: true;
|
|
738
|
+
};
|
|
739
|
+
readonly added: {
|
|
740
|
+
readonly icon: "circle-check";
|
|
741
|
+
readonly label: "Added to cart";
|
|
742
|
+
readonly description: "Added to cart successfully.";
|
|
743
|
+
};
|
|
744
|
+
readonly error: {
|
|
745
|
+
readonly icon: "circle-alert";
|
|
746
|
+
readonly label: "Add to cart failed";
|
|
747
|
+
readonly description: "The add to cart action failed.";
|
|
748
|
+
};
|
|
749
|
+
}>;
|
|
750
|
+
type AddToCartState = keyof typeof addToCartStateIcon.states;
|
|
751
|
+
|
|
752
|
+
declare const submitStateIcon: StateIconDefinition<{
|
|
753
|
+
readonly idle: {
|
|
754
|
+
readonly icon: "send-horizontal";
|
|
755
|
+
readonly label: "Submit";
|
|
756
|
+
readonly description: "Ready to submit.";
|
|
757
|
+
};
|
|
758
|
+
readonly submitting: {
|
|
759
|
+
readonly icon: "loader-circle";
|
|
760
|
+
readonly label: "Submitting";
|
|
761
|
+
readonly description: "Submitting is in progress.";
|
|
762
|
+
readonly continuous: true;
|
|
763
|
+
};
|
|
764
|
+
readonly success: {
|
|
765
|
+
readonly icon: "circle-check";
|
|
766
|
+
readonly label: "Submission complete";
|
|
767
|
+
readonly description: "Submission complete successfully.";
|
|
768
|
+
};
|
|
769
|
+
readonly error: {
|
|
770
|
+
readonly icon: "circle-alert";
|
|
771
|
+
readonly label: "Submit failed";
|
|
772
|
+
readonly description: "The submit action failed.";
|
|
773
|
+
};
|
|
774
|
+
}>;
|
|
775
|
+
type SubmitState = keyof typeof submitStateIcon.states;
|
|
776
|
+
|
|
777
|
+
declare const installStateIcon: StateIconDefinition<{
|
|
778
|
+
readonly idle: {
|
|
779
|
+
readonly icon: "package";
|
|
780
|
+
readonly label: "Install";
|
|
781
|
+
readonly description: "Ready to install.";
|
|
782
|
+
};
|
|
783
|
+
readonly installing: {
|
|
784
|
+
readonly icon: "loader-circle";
|
|
785
|
+
readonly label: "Installing";
|
|
786
|
+
readonly description: "Installing is in progress.";
|
|
787
|
+
readonly continuous: true;
|
|
788
|
+
};
|
|
789
|
+
readonly installed: {
|
|
790
|
+
readonly icon: "package-check";
|
|
791
|
+
readonly label: "Installed";
|
|
792
|
+
readonly description: "Installed successfully.";
|
|
793
|
+
};
|
|
794
|
+
readonly error: {
|
|
795
|
+
readonly icon: "circle-alert";
|
|
796
|
+
readonly label: "Install failed";
|
|
797
|
+
readonly description: "The install action failed.";
|
|
798
|
+
};
|
|
799
|
+
}>;
|
|
800
|
+
type InstallState = keyof typeof installStateIcon.states;
|
|
801
|
+
|
|
802
|
+
declare const publishStateIcon: StateIconDefinition<{
|
|
803
|
+
readonly draft: {
|
|
804
|
+
readonly icon: "file-pen-line";
|
|
805
|
+
readonly label: "Draft";
|
|
806
|
+
readonly description: "The content is still a draft.";
|
|
807
|
+
};
|
|
808
|
+
readonly publishing: {
|
|
809
|
+
readonly icon: "loader-circle";
|
|
810
|
+
readonly label: "Publishing";
|
|
811
|
+
readonly description: "Publication is in progress.";
|
|
812
|
+
readonly continuous: true;
|
|
813
|
+
};
|
|
814
|
+
readonly published: {
|
|
815
|
+
readonly icon: "circle-check";
|
|
816
|
+
readonly label: "Published";
|
|
817
|
+
readonly description: "The content is published.";
|
|
818
|
+
};
|
|
819
|
+
readonly error: {
|
|
820
|
+
readonly icon: "circle-alert";
|
|
821
|
+
readonly label: "Publishing failed";
|
|
822
|
+
readonly description: "The content could not be published.";
|
|
823
|
+
};
|
|
824
|
+
}>;
|
|
825
|
+
type PublishState = keyof typeof publishStateIcon.states;
|
|
826
|
+
|
|
827
|
+
declare const playPauseStateIcon: StateIconDefinition<{
|
|
828
|
+
readonly paused: {
|
|
829
|
+
readonly icon: "play";
|
|
830
|
+
readonly label: "Play";
|
|
831
|
+
readonly description: "Media is paused and can be played.";
|
|
832
|
+
};
|
|
833
|
+
readonly playing: {
|
|
834
|
+
readonly icon: "pause";
|
|
835
|
+
readonly label: "Pause";
|
|
836
|
+
readonly description: "Media is playing and can be paused.";
|
|
837
|
+
};
|
|
838
|
+
}>;
|
|
839
|
+
type PlayPauseState = keyof typeof playPauseStateIcon.states;
|
|
840
|
+
|
|
841
|
+
declare const playbackStateIcon: StateIconDefinition<{
|
|
842
|
+
readonly idle: {
|
|
843
|
+
readonly icon: "play";
|
|
844
|
+
readonly label: "Play";
|
|
845
|
+
readonly description: "Media is ready to play.";
|
|
846
|
+
};
|
|
847
|
+
readonly buffering: {
|
|
848
|
+
readonly icon: "loader-circle";
|
|
849
|
+
readonly label: "Buffering";
|
|
850
|
+
readonly description: "Media is buffering.";
|
|
851
|
+
readonly continuous: true;
|
|
852
|
+
};
|
|
853
|
+
readonly playing: {
|
|
854
|
+
readonly icon: "pause";
|
|
855
|
+
readonly label: "Pause";
|
|
856
|
+
readonly description: "Media is currently playing.";
|
|
857
|
+
};
|
|
858
|
+
readonly paused: {
|
|
859
|
+
readonly icon: "play";
|
|
860
|
+
readonly label: "Resume";
|
|
861
|
+
readonly description: "Media is paused.";
|
|
862
|
+
};
|
|
863
|
+
}>;
|
|
864
|
+
type PlaybackState = keyof typeof playbackStateIcon.states;
|
|
865
|
+
|
|
866
|
+
declare const volumeStateIcon: StateIconDefinition<{
|
|
867
|
+
readonly audible: {
|
|
868
|
+
readonly icon: "volume-2";
|
|
869
|
+
readonly label: "Mute audio";
|
|
870
|
+
readonly description: "Audio is audible.";
|
|
871
|
+
};
|
|
872
|
+
readonly muted: {
|
|
873
|
+
readonly icon: "volume-x";
|
|
874
|
+
readonly label: "Unmute audio";
|
|
875
|
+
readonly description: "Audio is muted.";
|
|
876
|
+
};
|
|
877
|
+
}>;
|
|
878
|
+
type VolumeState = keyof typeof volumeStateIcon.states;
|
|
879
|
+
|
|
880
|
+
declare const microphoneStateIcon: StateIconDefinition<{
|
|
881
|
+
readonly active: {
|
|
882
|
+
readonly icon: "mic";
|
|
883
|
+
readonly label: "Mute microphone";
|
|
884
|
+
readonly description: "The microphone is active.";
|
|
885
|
+
};
|
|
886
|
+
readonly muted: {
|
|
887
|
+
readonly icon: "mic-off";
|
|
888
|
+
readonly label: "Unmute microphone";
|
|
889
|
+
readonly description: "The microphone is muted.";
|
|
890
|
+
};
|
|
891
|
+
}>;
|
|
892
|
+
type MicrophoneState = keyof typeof microphoneStateIcon.states;
|
|
893
|
+
|
|
894
|
+
declare const cameraStateIcon: StateIconDefinition<{
|
|
895
|
+
readonly active: {
|
|
896
|
+
readonly icon: "video";
|
|
897
|
+
readonly label: "Disable camera";
|
|
898
|
+
readonly description: "The camera is active.";
|
|
899
|
+
};
|
|
900
|
+
readonly disabled: {
|
|
901
|
+
readonly icon: "video-off";
|
|
902
|
+
readonly label: "Enable camera";
|
|
903
|
+
readonly description: "The camera is disabled.";
|
|
904
|
+
};
|
|
905
|
+
}>;
|
|
906
|
+
type CameraState = keyof typeof cameraStateIcon.states;
|
|
907
|
+
|
|
908
|
+
declare const fullscreenStateIcon: StateIconDefinition<{
|
|
909
|
+
readonly windowed: {
|
|
910
|
+
readonly icon: "maximize";
|
|
911
|
+
readonly label: "Enter fullscreen";
|
|
912
|
+
readonly description: "The view is windowed.";
|
|
913
|
+
};
|
|
914
|
+
readonly fullscreen: {
|
|
915
|
+
readonly icon: "minimize";
|
|
916
|
+
readonly label: "Exit fullscreen";
|
|
917
|
+
readonly description: "The view is fullscreen.";
|
|
918
|
+
};
|
|
919
|
+
}>;
|
|
920
|
+
type FullscreenState = keyof typeof fullscreenStateIcon.states;
|
|
921
|
+
|
|
922
|
+
declare const repeatStateIcon: StateIconDefinition<{
|
|
923
|
+
readonly off: {
|
|
924
|
+
readonly icon: "repeat";
|
|
925
|
+
readonly label: "Turn repeat on";
|
|
926
|
+
readonly description: "Repeat is off.";
|
|
927
|
+
};
|
|
928
|
+
readonly on: {
|
|
929
|
+
readonly icon: "repeat-2";
|
|
930
|
+
readonly label: "Turn repeat off";
|
|
931
|
+
readonly description: "Repeat is on.";
|
|
932
|
+
};
|
|
933
|
+
}>;
|
|
934
|
+
type RepeatState = keyof typeof repeatStateIcon.states;
|
|
935
|
+
|
|
936
|
+
declare const shuffleStateIcon: StateIconDefinition<{
|
|
937
|
+
readonly off: {
|
|
938
|
+
readonly icon: "list-ordered";
|
|
939
|
+
readonly label: "Turn shuffle on";
|
|
940
|
+
readonly description: "Shuffle is off.";
|
|
941
|
+
};
|
|
942
|
+
readonly on: {
|
|
943
|
+
readonly icon: "shuffle";
|
|
944
|
+
readonly label: "Turn shuffle off";
|
|
945
|
+
readonly description: "Shuffle is on.";
|
|
946
|
+
};
|
|
947
|
+
}>;
|
|
948
|
+
type ShuffleState = keyof typeof shuffleStateIcon.states;
|
|
949
|
+
|
|
950
|
+
declare const menuStateIcon: StateIconDefinition<{
|
|
951
|
+
readonly closed: {
|
|
952
|
+
readonly icon: "menu";
|
|
953
|
+
readonly label: "Open menu";
|
|
954
|
+
readonly description: "The menu is closed.";
|
|
955
|
+
};
|
|
956
|
+
readonly open: {
|
|
957
|
+
readonly icon: "x";
|
|
958
|
+
readonly label: "Close menu";
|
|
959
|
+
readonly description: "The menu is open.";
|
|
960
|
+
};
|
|
961
|
+
}>;
|
|
962
|
+
type MenuState = keyof typeof menuStateIcon.states;
|
|
963
|
+
|
|
964
|
+
declare const expandStateIcon: StateIconDefinition<{
|
|
965
|
+
readonly collapsed: {
|
|
966
|
+
readonly icon: "chevrons-up-down";
|
|
967
|
+
readonly label: "Expand";
|
|
968
|
+
readonly description: "The content is collapsed.";
|
|
969
|
+
};
|
|
970
|
+
readonly expanded: {
|
|
971
|
+
readonly icon: "chevrons-down-up";
|
|
972
|
+
readonly label: "Collapse";
|
|
973
|
+
readonly description: "The content is expanded.";
|
|
974
|
+
};
|
|
975
|
+
}>;
|
|
976
|
+
type ExpandState = keyof typeof expandStateIcon.states;
|
|
977
|
+
|
|
978
|
+
declare const sidebarStateIcon: StateIconDefinition<{
|
|
979
|
+
readonly open: {
|
|
980
|
+
readonly icon: "panel-left-close";
|
|
981
|
+
readonly label: "Close sidebar";
|
|
982
|
+
readonly description: "The sidebar is open.";
|
|
983
|
+
};
|
|
984
|
+
readonly closed: {
|
|
985
|
+
readonly icon: "panel-left-open";
|
|
986
|
+
readonly label: "Open sidebar";
|
|
987
|
+
readonly description: "The sidebar is closed.";
|
|
988
|
+
};
|
|
989
|
+
}>;
|
|
990
|
+
type SidebarState = keyof typeof sidebarStateIcon.states;
|
|
991
|
+
|
|
992
|
+
declare const viewStateIcon: StateIconDefinition<{
|
|
993
|
+
readonly grid: {
|
|
994
|
+
readonly icon: "layout-grid";
|
|
995
|
+
readonly label: "Show as list";
|
|
996
|
+
readonly description: "The collection uses a grid layout.";
|
|
997
|
+
};
|
|
998
|
+
readonly list: {
|
|
999
|
+
readonly icon: "list";
|
|
1000
|
+
readonly label: "Show as grid";
|
|
1001
|
+
readonly description: "The collection uses a list layout.";
|
|
1002
|
+
};
|
|
1003
|
+
}>;
|
|
1004
|
+
type ViewState = keyof typeof viewStateIcon.states;
|
|
1005
|
+
|
|
1006
|
+
declare const chevronVerticalStateIcon: StateIconDefinition<{
|
|
1007
|
+
readonly up: {
|
|
1008
|
+
readonly icon: "chevron-up";
|
|
1009
|
+
readonly label: "Point up";
|
|
1010
|
+
readonly description: "The chevron points upward.";
|
|
1011
|
+
};
|
|
1012
|
+
readonly down: {
|
|
1013
|
+
readonly icon: "chevron-down";
|
|
1014
|
+
readonly label: "Point down";
|
|
1015
|
+
readonly description: "The chevron points downward.";
|
|
1016
|
+
};
|
|
1017
|
+
}>;
|
|
1018
|
+
type ChevronVerticalState = keyof typeof chevronVerticalStateIcon.states;
|
|
1019
|
+
|
|
1020
|
+
declare const chevronHorizontalStateIcon: StateIconDefinition<{
|
|
1021
|
+
readonly left: {
|
|
1022
|
+
readonly icon: "chevron-left";
|
|
1023
|
+
readonly label: "Point left";
|
|
1024
|
+
readonly description: "The chevron points left.";
|
|
1025
|
+
};
|
|
1026
|
+
readonly right: {
|
|
1027
|
+
readonly icon: "chevron-right";
|
|
1028
|
+
readonly label: "Point right";
|
|
1029
|
+
readonly description: "The chevron points right.";
|
|
1030
|
+
};
|
|
1031
|
+
}>;
|
|
1032
|
+
type ChevronHorizontalState = keyof typeof chevronHorizontalStateIcon.states;
|
|
1033
|
+
|
|
1034
|
+
declare const panelStateIcon: StateIconDefinition<{
|
|
1035
|
+
readonly restored: {
|
|
1036
|
+
readonly icon: "maximize-2";
|
|
1037
|
+
readonly label: "Maximize panel";
|
|
1038
|
+
readonly description: "The panel is restored.";
|
|
1039
|
+
};
|
|
1040
|
+
readonly maximized: {
|
|
1041
|
+
readonly icon: "minimize-2";
|
|
1042
|
+
readonly label: "Restore panel";
|
|
1043
|
+
readonly description: "The panel is maximized.";
|
|
1044
|
+
};
|
|
1045
|
+
}>;
|
|
1046
|
+
type PanelState = keyof typeof panelStateIcon.states;
|
|
1047
|
+
|
|
1048
|
+
declare const copyStateIcon: StateIconDefinition<{
|
|
1049
|
+
readonly idle: {
|
|
1050
|
+
readonly icon: "copy";
|
|
1051
|
+
readonly label: "Copy";
|
|
1052
|
+
readonly description: "Content is ready to be copied.";
|
|
1053
|
+
};
|
|
1054
|
+
readonly copied: {
|
|
1055
|
+
readonly icon: "check";
|
|
1056
|
+
readonly label: "Copied";
|
|
1057
|
+
readonly description: "Content was copied.";
|
|
1058
|
+
};
|
|
1059
|
+
readonly reset: {
|
|
1060
|
+
readonly icon: "rotate-ccw";
|
|
1061
|
+
readonly label: "Copy again";
|
|
1062
|
+
readonly description: "Copy feedback has reset.";
|
|
1063
|
+
};
|
|
1064
|
+
}>;
|
|
1065
|
+
type CopyState = keyof typeof copyStateIcon.states;
|
|
1066
|
+
|
|
1067
|
+
declare const likeStateIcon: StateIconDefinition<{
|
|
1068
|
+
readonly unliked: {
|
|
1069
|
+
readonly icon: "heart";
|
|
1070
|
+
readonly label: "Like";
|
|
1071
|
+
readonly description: "The item is not liked.";
|
|
1072
|
+
};
|
|
1073
|
+
readonly liked: {
|
|
1074
|
+
readonly icon: "heart-off";
|
|
1075
|
+
readonly label: "Remove like";
|
|
1076
|
+
readonly description: "The item is liked.";
|
|
1077
|
+
};
|
|
1078
|
+
}>;
|
|
1079
|
+
type LikeState = keyof typeof likeStateIcon.states;
|
|
1080
|
+
|
|
1081
|
+
declare const bookmarkStateIcon: StateIconDefinition<{
|
|
1082
|
+
readonly unbookmarked: {
|
|
1083
|
+
readonly icon: "bookmark";
|
|
1084
|
+
readonly label: "Add bookmark";
|
|
1085
|
+
readonly description: "The item is not bookmarked.";
|
|
1086
|
+
};
|
|
1087
|
+
readonly bookmarked: {
|
|
1088
|
+
readonly icon: "bookmark-check";
|
|
1089
|
+
readonly label: "Remove bookmark";
|
|
1090
|
+
readonly description: "The item is bookmarked.";
|
|
1091
|
+
};
|
|
1092
|
+
}>;
|
|
1093
|
+
type BookmarkState = keyof typeof bookmarkStateIcon.states;
|
|
1094
|
+
|
|
1095
|
+
declare const notificationStateIcon: StateIconDefinition<{
|
|
1096
|
+
readonly off: {
|
|
1097
|
+
readonly icon: "bell-off";
|
|
1098
|
+
readonly label: "Enable notifications";
|
|
1099
|
+
readonly description: "Notifications are off.";
|
|
1100
|
+
};
|
|
1101
|
+
readonly on: {
|
|
1102
|
+
readonly icon: "bell";
|
|
1103
|
+
readonly label: "Notifications on";
|
|
1104
|
+
readonly description: "Notifications are enabled.";
|
|
1105
|
+
};
|
|
1106
|
+
readonly unread: {
|
|
1107
|
+
readonly icon: "bell-ring";
|
|
1108
|
+
readonly label: "Unread notifications";
|
|
1109
|
+
readonly description: "There are unread notifications.";
|
|
1110
|
+
};
|
|
1111
|
+
}>;
|
|
1112
|
+
type NotificationState = keyof typeof notificationStateIcon.states;
|
|
1113
|
+
|
|
1114
|
+
export { type AddToCartState, type BookmarkState, type CameraState, type ChevronHorizontalState, type ChevronVerticalState, type CopyState, type DeleteState, type DownloadState, type ExpandState, type FullscreenState, type InstallState, type LikeState, type MenuState, type MicrophoneState, type NotificationState, type PanelState, type PaymentState, type PlayPauseState, type PlaybackState, type PublishState, type RefreshState, type RepeatState, type SaveState, type SendState, type ShuffleState, type SidebarState, type StateIconCategory, type StateIconDefinition, type StateIconLibrary, type StateIconSource, type StateIconStateDefinition, type StateIconStates, type StateIconTransition, type SubmitState, type SyncState, type UploadState, type ViewState, type VolumeState, addToCartStateIcon, bookmarkStateIcon, cameraStateIcon, chevronHorizontalStateIcon, chevronVerticalStateIcon, copyStateIcon, defineStateIcon, deleteStateIcon, downloadStateIcon, expandStateIcon, fullscreenStateIcon, installStateIcon, likeStateIcon, menuStateIcon, microphoneStateIcon, notificationStateIcon, panelStateIcon, paymentStateIcon, playPauseStateIcon, playbackStateIcon, publishStateIcon, refreshStateIcon, repeatStateIcon, saveStateIcon, sendStateIcon, shuffleStateIcon, sidebarStateIcon, stateIconCatalog, submitStateIcon, syncStateIcon, uploadStateIcon, viewStateIcon, volumeStateIcon };
|