@apia/icons 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FileIcon.d.ts +10 -0
- package/dist/FileIcon.d.ts.map +1 -0
- package/dist/FileIcon.js +123 -0
- package/dist/FileIcon.js.map +1 -0
- package/dist/Icon.d.ts +16 -0
- package/dist/Icon.d.ts.map +1 -0
- package/dist/Icon.js +53 -0
- package/dist/Icon.js.map +1 -0
- package/dist/iconMap.d.ts +482 -0
- package/dist/iconMap.d.ts.map +1 -0
- package/dist/iconMap.js +243 -0
- package/dist/iconMap.js.map +1 -0
- package/dist/index.d.ts +3 -491
- package/dist/index.js +3 -405
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,492 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { RequireExactlyOne } from 'type-fest';
|
|
5
|
-
import * as _meronex_icons_lib from '@meronex/icons/lib';
|
|
6
|
-
|
|
7
|
-
declare const FileIcon: ({ docName, iconSize, className, }: {
|
|
8
|
-
docName: string;
|
|
9
|
-
iconSize?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
10
|
-
className?: string;
|
|
11
|
-
}) => React.JSX.Element;
|
|
12
|
-
|
|
13
|
-
type TIconType = IconType;
|
|
14
|
-
type TIconName = keyof typeof IconsMap;
|
|
15
|
-
/**
|
|
16
|
-
* La idea original al menos, es que los nombres de los íconos sean lo más
|
|
17
|
-
* genérico posible. Como ejemplo, tenemos el ícono Plus, cuyo nombre no indica
|
|
18
|
-
* nada acerca del rol que ocupa en la aplicación, sino que solamente describe
|
|
19
|
-
* qué ícono podemos esperar encontrar.
|
|
20
|
-
*
|
|
21
|
-
* Para indicar qué uso podría tener en la aplicación, se pueden agregar tags
|
|
22
|
-
* en el array tags correspondiente.
|
|
23
|
-
*/
|
|
24
|
-
declare const IconsMap: {
|
|
25
|
-
Alert: {
|
|
26
|
-
icon: IconType;
|
|
27
|
-
tags: string[];
|
|
28
|
-
};
|
|
29
|
-
AreaSelect: {
|
|
30
|
-
icon: IconType;
|
|
31
|
-
tags: never[];
|
|
32
|
-
};
|
|
33
|
-
ArrowLeft: {
|
|
34
|
-
icon: IconType;
|
|
35
|
-
tags: never[];
|
|
36
|
-
};
|
|
37
|
-
ArrowRight: {
|
|
38
|
-
icon: IconType;
|
|
39
|
-
tags: never[];
|
|
40
|
-
};
|
|
41
|
-
ArrowUp: {
|
|
42
|
-
icon: IconType;
|
|
43
|
-
tags: never[];
|
|
44
|
-
};
|
|
45
|
-
ArrowDown: {
|
|
46
|
-
icon: IconType;
|
|
47
|
-
tags: never[];
|
|
48
|
-
};
|
|
49
|
-
ArrowRightThin: {
|
|
50
|
-
icon: _meronex_icons_lib.IconType;
|
|
51
|
-
tags: never[];
|
|
52
|
-
};
|
|
53
|
-
ArrowLeftThin: {
|
|
54
|
-
icon: _meronex_icons_lib.IconType;
|
|
55
|
-
tags: never[];
|
|
56
|
-
};
|
|
57
|
-
ArrowUpThin: {
|
|
58
|
-
icon: IconType;
|
|
59
|
-
tags: never[];
|
|
60
|
-
};
|
|
61
|
-
ArrowDownThin: {
|
|
62
|
-
icon: IconType;
|
|
63
|
-
tags: never[];
|
|
64
|
-
};
|
|
65
|
-
Attach: {
|
|
66
|
-
icon: IconType;
|
|
67
|
-
tags: string[];
|
|
68
|
-
};
|
|
69
|
-
Broom: {
|
|
70
|
-
icon: IconType;
|
|
71
|
-
tags: string[];
|
|
72
|
-
};
|
|
73
|
-
Bulb: {
|
|
74
|
-
icon: IconType;
|
|
75
|
-
tags: string[];
|
|
76
|
-
};
|
|
77
|
-
Calendar: {
|
|
78
|
-
icon: IconType;
|
|
79
|
-
tags: string[];
|
|
80
|
-
};
|
|
81
|
-
Camera: {
|
|
82
|
-
icon: IconType;
|
|
83
|
-
tags: string[];
|
|
84
|
-
};
|
|
85
|
-
Check: {
|
|
86
|
-
icon: IconType;
|
|
87
|
-
tags: string[];
|
|
88
|
-
};
|
|
89
|
-
Checking: {
|
|
90
|
-
icon: _meronex_icons_lib.IconType;
|
|
91
|
-
tags: string[];
|
|
92
|
-
};
|
|
93
|
-
CircleFilled: {
|
|
94
|
-
icon: IconType;
|
|
95
|
-
tags: never[];
|
|
96
|
-
};
|
|
97
|
-
Clock: {
|
|
98
|
-
icon: IconType;
|
|
99
|
-
tags: never[];
|
|
100
|
-
};
|
|
101
|
-
CloudArrow: {
|
|
102
|
-
icon: IconType;
|
|
103
|
-
tags: string[];
|
|
104
|
-
};
|
|
105
|
-
Close: {
|
|
106
|
-
icon: IconType;
|
|
107
|
-
tags: string[];
|
|
108
|
-
};
|
|
109
|
-
CloseThin: {
|
|
110
|
-
icon: IconType;
|
|
111
|
-
tags: string[];
|
|
112
|
-
};
|
|
113
|
-
Comment: {
|
|
114
|
-
icon: IconType;
|
|
115
|
-
tags: never[];
|
|
116
|
-
};
|
|
117
|
-
Copy: {
|
|
118
|
-
icon: IconType;
|
|
119
|
-
tags: never[];
|
|
120
|
-
};
|
|
121
|
-
CrossFilter: {
|
|
122
|
-
icon: IconType;
|
|
123
|
-
tags: never[];
|
|
124
|
-
};
|
|
125
|
-
Cube: {
|
|
126
|
-
icon: IconType;
|
|
127
|
-
tags: never[];
|
|
128
|
-
};
|
|
129
|
-
Desktop: {
|
|
130
|
-
icon: IconType;
|
|
131
|
-
tags: string[];
|
|
132
|
-
};
|
|
133
|
-
Difference: {
|
|
134
|
-
icon: IconType;
|
|
135
|
-
tags: never[];
|
|
136
|
-
};
|
|
137
|
-
Download: {
|
|
138
|
-
icon: IconType;
|
|
139
|
-
tags: never[];
|
|
140
|
-
};
|
|
141
|
-
DotSmall: {
|
|
142
|
-
icon: IconType;
|
|
143
|
-
tags: never[];
|
|
144
|
-
};
|
|
145
|
-
DotBig: {
|
|
146
|
-
icon: IconType;
|
|
147
|
-
tags: never[];
|
|
148
|
-
};
|
|
149
|
-
DragAndDrop: {
|
|
150
|
-
icon: IconType;
|
|
151
|
-
tags: string[];
|
|
152
|
-
};
|
|
153
|
-
Edit: {
|
|
154
|
-
icon: IconType;
|
|
155
|
-
tags: string[];
|
|
156
|
-
};
|
|
157
|
-
Ellipsis: {
|
|
158
|
-
icon: IconType;
|
|
159
|
-
tags: string[];
|
|
160
|
-
};
|
|
161
|
-
External: {
|
|
162
|
-
icon: IconType;
|
|
163
|
-
tags: string[];
|
|
164
|
-
};
|
|
165
|
-
Erase: {
|
|
166
|
-
icon: IconType;
|
|
167
|
-
tags: string[];
|
|
168
|
-
};
|
|
169
|
-
Eye: {
|
|
170
|
-
icon: IconType;
|
|
171
|
-
tags: string[];
|
|
172
|
-
};
|
|
173
|
-
File: {
|
|
174
|
-
icon: IconType;
|
|
175
|
-
tags: string[];
|
|
176
|
-
};
|
|
177
|
-
Filter: {
|
|
178
|
-
icon: IconType;
|
|
179
|
-
tags: never[];
|
|
180
|
-
};
|
|
181
|
-
First: {
|
|
182
|
-
icon: IconType;
|
|
183
|
-
tags: never[];
|
|
184
|
-
};
|
|
185
|
-
FlowTree: {
|
|
186
|
-
icon: IconType;
|
|
187
|
-
tags: never[];
|
|
188
|
-
};
|
|
189
|
-
FolderClosed: {
|
|
190
|
-
icon: IconType;
|
|
191
|
-
tags: string[];
|
|
192
|
-
};
|
|
193
|
-
FolderOpen: {
|
|
194
|
-
icon: IconType;
|
|
195
|
-
tags: string[];
|
|
196
|
-
};
|
|
197
|
-
FolderPlus: {
|
|
198
|
-
icon: IconType;
|
|
199
|
-
tags: string[];
|
|
200
|
-
};
|
|
201
|
-
Groups: {
|
|
202
|
-
icon: IconType;
|
|
203
|
-
tags: never[];
|
|
204
|
-
};
|
|
205
|
-
Hide: {
|
|
206
|
-
icon: IconType;
|
|
207
|
-
tags: string[];
|
|
208
|
-
};
|
|
209
|
-
Hamburguer: {
|
|
210
|
-
icon: IconType;
|
|
211
|
-
tags: string[];
|
|
212
|
-
};
|
|
213
|
-
Help: {
|
|
214
|
-
icon: IconType;
|
|
215
|
-
tags: string[];
|
|
216
|
-
};
|
|
217
|
-
Home: {
|
|
218
|
-
icon: IconType;
|
|
219
|
-
tags: string[];
|
|
220
|
-
};
|
|
221
|
-
Info: {
|
|
222
|
-
icon: IconType;
|
|
223
|
-
tags: never[];
|
|
224
|
-
};
|
|
225
|
-
Laptop: {
|
|
226
|
-
icon: IconType;
|
|
227
|
-
tags: never[];
|
|
228
|
-
};
|
|
229
|
-
Last: {
|
|
230
|
-
icon: IconType;
|
|
231
|
-
tags: never[];
|
|
232
|
-
};
|
|
233
|
-
LetterAutocomplete: {
|
|
234
|
-
icon: IconType;
|
|
235
|
-
tags: never[];
|
|
236
|
-
};
|
|
237
|
-
LineArrowUp: {
|
|
238
|
-
icon: IconType;
|
|
239
|
-
tags: never[];
|
|
240
|
-
};
|
|
241
|
-
Locked: {
|
|
242
|
-
icon: IconType;
|
|
243
|
-
tags: string[];
|
|
244
|
-
};
|
|
245
|
-
Magic: {
|
|
246
|
-
icon: IconType;
|
|
247
|
-
tags: string[];
|
|
248
|
-
};
|
|
249
|
-
Maximize: {
|
|
250
|
-
icon: IconType;
|
|
251
|
-
tags: string[];
|
|
252
|
-
};
|
|
253
|
-
Merge: {
|
|
254
|
-
icon: IconType;
|
|
255
|
-
tags: never[];
|
|
256
|
-
};
|
|
257
|
-
Microphone: {
|
|
258
|
-
icon: IconType;
|
|
259
|
-
tags: string[];
|
|
260
|
-
};
|
|
261
|
-
Minimize: {
|
|
262
|
-
icon: IconType;
|
|
263
|
-
tags: string[];
|
|
264
|
-
};
|
|
265
|
-
Minus: {
|
|
266
|
-
icon: IconType;
|
|
267
|
-
tags: string[];
|
|
268
|
-
};
|
|
269
|
-
MinusReverse: {
|
|
270
|
-
icon: IconType;
|
|
271
|
-
tags: string[];
|
|
272
|
-
};
|
|
273
|
-
MinusFilled: {
|
|
274
|
-
icon: IconType;
|
|
275
|
-
tags: string[];
|
|
276
|
-
};
|
|
277
|
-
Molecule: {
|
|
278
|
-
icon: IconType;
|
|
279
|
-
tags: string[];
|
|
280
|
-
};
|
|
281
|
-
Next: {
|
|
282
|
-
icon: IconType;
|
|
283
|
-
tags: never[];
|
|
284
|
-
};
|
|
285
|
-
Note: {
|
|
286
|
-
icon: IconType;
|
|
287
|
-
tags: never[];
|
|
288
|
-
};
|
|
289
|
-
PanHand: {
|
|
290
|
-
icon: IconType;
|
|
291
|
-
tags: string[];
|
|
292
|
-
};
|
|
293
|
-
Pencil: {
|
|
294
|
-
icon: IconType;
|
|
295
|
-
tags: string[];
|
|
296
|
-
};
|
|
297
|
-
Pin: {
|
|
298
|
-
icon: IconType;
|
|
299
|
-
tags: never[];
|
|
300
|
-
};
|
|
301
|
-
Plus: {
|
|
302
|
-
icon: IconType;
|
|
303
|
-
tags: string[];
|
|
304
|
-
};
|
|
305
|
-
PlusReverse: {
|
|
306
|
-
icon: IconType;
|
|
307
|
-
tags: string[];
|
|
308
|
-
};
|
|
309
|
-
PlusFilled: {
|
|
310
|
-
icon: IconType;
|
|
311
|
-
tags: string[];
|
|
312
|
-
};
|
|
313
|
-
PlusThin: {
|
|
314
|
-
icon: IconType;
|
|
315
|
-
tags: never[];
|
|
316
|
-
};
|
|
317
|
-
Pointer: {
|
|
318
|
-
icon: IconType;
|
|
319
|
-
tags: string[];
|
|
320
|
-
};
|
|
321
|
-
Previous: {
|
|
322
|
-
icon: IconType;
|
|
323
|
-
tags: never[];
|
|
324
|
-
};
|
|
325
|
-
Print: {
|
|
326
|
-
icon: IconType;
|
|
327
|
-
tags: never[];
|
|
328
|
-
};
|
|
329
|
-
Redo: {
|
|
330
|
-
icon: IconType;
|
|
331
|
-
tags: never[];
|
|
332
|
-
};
|
|
333
|
-
RedoSmall: {
|
|
334
|
-
icon: IconType;
|
|
335
|
-
tags: never[];
|
|
336
|
-
};
|
|
337
|
-
Readonly: {
|
|
338
|
-
icon: IconType;
|
|
339
|
-
tags: never[];
|
|
340
|
-
};
|
|
341
|
-
Refresh: {
|
|
342
|
-
icon: IconType;
|
|
343
|
-
tags: string[];
|
|
344
|
-
};
|
|
345
|
-
Save: {
|
|
346
|
-
icon: IconType;
|
|
347
|
-
tags: never[];
|
|
348
|
-
};
|
|
349
|
-
Search: {
|
|
350
|
-
icon: IconType;
|
|
351
|
-
tags: never[];
|
|
352
|
-
};
|
|
353
|
-
Settings: {
|
|
354
|
-
icon: IconType;
|
|
355
|
-
tags: string[];
|
|
356
|
-
};
|
|
357
|
-
SquareFilled: {
|
|
358
|
-
icon: IconType;
|
|
359
|
-
tags: never[];
|
|
360
|
-
};
|
|
361
|
-
SquareOutline: {
|
|
362
|
-
icon: IconType;
|
|
363
|
-
tags: never[];
|
|
364
|
-
};
|
|
365
|
-
Sort: {
|
|
366
|
-
icon: IconType;
|
|
367
|
-
tags: never[];
|
|
368
|
-
};
|
|
369
|
-
SortedNone: {
|
|
370
|
-
icon: IconType;
|
|
371
|
-
tags: string[];
|
|
372
|
-
};
|
|
373
|
-
SortedUp: {
|
|
374
|
-
icon: IconType;
|
|
375
|
-
tags: string[];
|
|
376
|
-
};
|
|
377
|
-
SortedDown: {
|
|
378
|
-
icon: IconType;
|
|
379
|
-
tags: string[];
|
|
380
|
-
};
|
|
381
|
-
Star: {
|
|
382
|
-
icon: IconType;
|
|
383
|
-
tags: string[];
|
|
384
|
-
};
|
|
385
|
-
Stop: {
|
|
386
|
-
icon: IconType;
|
|
387
|
-
tags: never[];
|
|
388
|
-
};
|
|
389
|
-
Sum: {
|
|
390
|
-
icon: IconType;
|
|
391
|
-
tags: string[];
|
|
392
|
-
};
|
|
393
|
-
Tabs: {
|
|
394
|
-
icon: IconType;
|
|
395
|
-
tags: string[];
|
|
396
|
-
};
|
|
397
|
-
TaskList: {
|
|
398
|
-
icon: IconType;
|
|
399
|
-
tags: string[];
|
|
400
|
-
};
|
|
401
|
-
ThumbsDown: {
|
|
402
|
-
icon: IconType;
|
|
403
|
-
tags: string[];
|
|
404
|
-
};
|
|
405
|
-
ThumbsUp: {
|
|
406
|
-
icon: IconType;
|
|
407
|
-
tags: string[];
|
|
408
|
-
};
|
|
409
|
-
Translate: {
|
|
410
|
-
icon: IconType;
|
|
411
|
-
tags: string[];
|
|
412
|
-
};
|
|
413
|
-
Trash: {
|
|
414
|
-
icon: IconType;
|
|
415
|
-
tags: string[];
|
|
416
|
-
};
|
|
417
|
-
Undo: {
|
|
418
|
-
icon: IconType;
|
|
419
|
-
tags: string[];
|
|
420
|
-
};
|
|
421
|
-
UndoSmall: {
|
|
422
|
-
icon: IconType;
|
|
423
|
-
tags: string[];
|
|
424
|
-
};
|
|
425
|
-
Upload: {
|
|
426
|
-
icon: IconType;
|
|
427
|
-
tags: never[];
|
|
428
|
-
};
|
|
429
|
-
User: {
|
|
430
|
-
icon: IconType;
|
|
431
|
-
tags: never[];
|
|
432
|
-
};
|
|
433
|
-
User2: {
|
|
434
|
-
icon: IconType;
|
|
435
|
-
tags: never[];
|
|
436
|
-
};
|
|
437
|
-
View: {
|
|
438
|
-
icon: IconType;
|
|
439
|
-
tags: string[];
|
|
440
|
-
};
|
|
441
|
-
Volume: {
|
|
442
|
-
icon: IconType;
|
|
443
|
-
tags: never[];
|
|
444
|
-
};
|
|
445
|
-
WindowMaximize: {
|
|
446
|
-
icon: IconType;
|
|
447
|
-
tags: never[];
|
|
448
|
-
};
|
|
449
|
-
WindowMinimize: {
|
|
450
|
-
icon: IconType;
|
|
451
|
-
tags: never[];
|
|
452
|
-
};
|
|
453
|
-
Work: {
|
|
454
|
-
icon: IconType;
|
|
455
|
-
tags: never[];
|
|
456
|
-
};
|
|
457
|
-
ZoomIn: {
|
|
458
|
-
icon: IconType;
|
|
459
|
-
tags: string[];
|
|
460
|
-
};
|
|
461
|
-
ZoomOut: {
|
|
462
|
-
icon: IconType;
|
|
463
|
-
tags: string[];
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
declare const icons: Record<keyof typeof IconsMap, TIconType>;
|
|
467
|
-
/**
|
|
468
|
-
* Se puede utilizar este type guard para aceptar argumentos en los componentes
|
|
469
|
-
* que permitan pasar tanto un nombre de ícono como un ícono en sí.
|
|
470
|
-
*
|
|
471
|
-
* @example
|
|
472
|
-
*-
|
|
473
|
-
* ({icon}: {icon: TIconName | TIconType}) => {
|
|
474
|
-
* const ActualIcon = React.useMemo(
|
|
475
|
-
* ()=> isIconName(icon) ? (() => <Icon name={icon} />) : icon
|
|
476
|
-
* , [])
|
|
477
|
-
* return <ActualIcon />
|
|
478
|
-
* }
|
|
479
|
-
*/
|
|
480
|
-
declare function isIconName(arg: TIconName | TIconType): arg is TIconName;
|
|
481
|
-
|
|
482
|
-
type TIconArgs = RequireExactlyOne<{
|
|
483
|
-
icon: TIconName | TIconType;
|
|
484
|
-
name: TIconName;
|
|
485
|
-
}>;
|
|
486
|
-
declare const Icon: React__default.ForwardRefExoticComponent<(TIconArgs & IconBaseProps & {
|
|
487
|
-
title: string;
|
|
488
|
-
imageSrc?: string;
|
|
489
|
-
}) & React__default.RefAttributes<any>>;
|
|
490
|
-
|
|
491
|
-
export { FileIcon, Icon, IconsMap, type TIconName, type TIconType, icons, isIconName };
|
|
1
|
+
export { FileIcon } from './FileIcon.js';
|
|
2
|
+
export { Icon } from './Icon.js';
|
|
3
|
+
export { IconsMap, TIconName, TIconType, icons, isIconName } from './iconMap.js';
|
|
492
4
|
//# sourceMappingURL=index.d.ts.map
|