@nice2dev/icons-gaming 1.2.0 → 1.2.2

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/index.d.ts CHANGED
@@ -37,6 +37,8 @@ export declare interface BarProps {
37
37
  className?: string;
38
38
  /** Inline style */
39
39
  style?: default_2.CSSProperties;
40
+ /** Accessible name; without it the icon is decorative (hidden from screen readers). */
41
+ title?: string;
40
42
  }
41
43
 
42
44
  export declare type CharacterAnimation = 'idle' | 'move' | 'jump' | 'attack-melee' | 'attack-ranged' | 'attack-magic' | 'damage' | 'death' | 'none';
@@ -68,7 +70,9 @@ export declare const consumableIcons: {
68
70
  };
69
71
 
70
72
  export declare const containerIcons: {
71
- GiChest: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
73
+ GiChest: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>> & {
74
+ displayName: string;
75
+ };
72
76
  GiBarrel: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
73
77
  GiCrate: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
74
78
  GiBag: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
@@ -87,6 +91,8 @@ export declare interface CooldownProps {
87
91
  animated?: boolean;
88
92
  className?: string;
89
93
  style?: default_2.CSSProperties;
94
+ /** Accessible name; without it the icon is decorative (hidden from screen readers). */
95
+ title?: string;
90
96
  }
91
97
 
92
98
  export declare function createGameIcon(options: CreateGameIconOptions): default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
@@ -111,6 +117,8 @@ export declare interface DamageNumberProps {
111
117
  animated?: boolean;
112
118
  className?: string;
113
119
  style?: default_2.CSSProperties;
120
+ /** Accessible name; without it the icon is decorative (hidden from screen readers). */
121
+ title?: string;
114
122
  }
115
123
 
116
124
  export declare const environmentIcons: {
@@ -136,6 +144,8 @@ export declare interface GameIconProps {
136
144
  className?: string;
137
145
  /** Inline style */
138
146
  style?: default_2.CSSProperties;
147
+ /** Accessible name; without it the icon is decorative (hidden from screen readers). */
148
+ title?: string;
139
149
  }
140
150
 
141
151
  export declare function getCharacterAnimation(animation: string): default_2.ReactNode;
@@ -171,7 +181,9 @@ export declare const GiBridge: ForwardRefExoticComponent<GameIconProps & RefAttr
171
181
  export declare const GiCampfire: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
172
182
 
173
183
  /** Chest with optional "open" animation (lid rotates). */
174
- export declare const GiChest: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
184
+ export declare const GiChest: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>> & {
185
+ displayName: string;
186
+ };
175
187
 
176
188
  export declare const GiChestplate: ForwardRefExoticComponent<GameIconProps & RefAttributes<SVGSVGElement>>;
177
189
 
@@ -185,9 +197,15 @@ export declare const GiComboCounter: default_2.ForwardRefExoticComponent<{
185
197
  animated?: boolean;
186
198
  className?: string;
187
199
  style?: default_2.CSSProperties;
188
- } & default_2.RefAttributes<SVGSVGElement>>;
200
+ /** Accessible name; without it the icon is decorative (hidden from screen readers). */
201
+ title?: string;
202
+ } & default_2.RefAttributes<SVGSVGElement>> & {
203
+ displayName: string;
204
+ };
189
205
 
190
- export declare const GiCooldown: default_2.ForwardRefExoticComponent<CooldownProps & default_2.RefAttributes<SVGSVGElement>>;
206
+ export declare const GiCooldown: default_2.ForwardRefExoticComponent<CooldownProps & default_2.RefAttributes<SVGSVGElement>> & {
207
+ displayName: string;
208
+ };
191
209
 
192
210
  export declare const GiCrate: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
193
211
 
@@ -195,7 +213,9 @@ export declare const GiCrown: default_2.ForwardRefExoticComponent<GameIconProps
195
213
 
196
214
  export declare const GiDagger: ForwardRefExoticComponent<GameIconProps & RefAttributes<SVGSVGElement>>;
197
215
 
198
- export declare const GiDamageNumber: default_2.ForwardRefExoticComponent<DamageNumberProps & default_2.RefAttributes<SVGSVGElement>>;
216
+ export declare const GiDamageNumber: default_2.ForwardRefExoticComponent<DamageNumberProps & default_2.RefAttributes<SVGSVGElement>> & {
217
+ displayName: string;
218
+ };
199
219
 
200
220
  export declare const GiDemon: ForwardRefExoticComponent<GameIconProps & RefAttributes<SVGSVGElement>>;
201
221
 
@@ -228,7 +248,9 @@ export declare const GiHealthBar: default_2.ForwardRefExoticComponent<BarProps &
228
248
  export declare const GiHealthPotion: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
229
249
 
230
250
  /** Single heart with configurable fill level (0–1). */
231
- export declare const GiHeart: default_2.ForwardRefExoticComponent<HeartIconProps & default_2.RefAttributes<SVGSVGElement>>;
251
+ export declare const GiHeart: default_2.ForwardRefExoticComponent<HeartIconProps & default_2.RefAttributes<SVGSVGElement>> & {
252
+ displayName: string;
253
+ };
232
254
 
233
255
  /** Row of hearts (like Zelda). */
234
256
  export declare const GiHeartRow: default_2.ForwardRefExoticComponent<{
@@ -240,7 +262,11 @@ export declare const GiHeartRow: default_2.ForwardRefExoticComponent<{
240
262
  animation?: string;
241
263
  className?: string;
242
264
  style?: default_2.CSSProperties;
243
- } & default_2.RefAttributes<SVGSVGElement>>;
265
+ /** Accessible name; without it the icon is decorative (hidden from screen readers). */
266
+ title?: string;
267
+ } & default_2.RefAttributes<SVGSVGElement>> & {
268
+ displayName: string;
269
+ };
244
270
 
245
271
  export declare const GiHelmet: ForwardRefExoticComponent<GameIconProps & RefAttributes<SVGSVGElement>>;
246
272
 
@@ -260,9 +286,15 @@ export declare const GiLevelBadge: default_2.ForwardRefExoticComponent<{
260
286
  animated?: boolean;
261
287
  className?: string;
262
288
  style?: default_2.CSSProperties;
263
- } & default_2.RefAttributes<SVGSVGElement>>;
289
+ /** Accessible name; without it the icon is decorative (hidden from screen readers). */
290
+ title?: string;
291
+ } & default_2.RefAttributes<SVGSVGElement>> & {
292
+ displayName: string;
293
+ };
264
294
 
265
- export declare const GiLoadingSpinner: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
295
+ export declare const GiLoadingSpinner: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>> & {
296
+ displayName: string;
297
+ };
266
298
 
267
299
  export declare const GiMage: ForwardRefExoticComponent<GameIconProps & RefAttributes<SVGSVGElement>>;
268
300
 
@@ -272,7 +304,9 @@ export declare const GiManaPotion: default_2.ForwardRefExoticComponent<GameIconP
272
304
 
273
305
  export declare const GiMerchant: ForwardRefExoticComponent<GameIconProps & RefAttributes<SVGSVGElement>>;
274
306
 
275
- export declare const GiMinimapDot: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
307
+ export declare const GiMinimapDot: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>> & {
308
+ displayName: string;
309
+ };
276
310
 
277
311
  export declare const GiMountain: ForwardRefExoticComponent<GameIconProps & RefAttributes<SVGSVGElement>>;
278
312
 
@@ -370,7 +404,9 @@ export declare interface HeartIconProps extends GameIconProps {
370
404
  }
371
405
 
372
406
  export declare const heartIcons: {
373
- GiHeart: default_2.ForwardRefExoticComponent<HeartIconProps & default_2.RefAttributes<SVGSVGElement>>;
407
+ GiHeart: default_2.ForwardRefExoticComponent<HeartIconProps & default_2.RefAttributes<SVGSVGElement>> & {
408
+ displayName: string;
409
+ };
374
410
  GiHeartRow: default_2.ForwardRefExoticComponent<{
375
411
  current: number;
376
412
  max: number;
@@ -380,11 +416,17 @@ export declare const heartIcons: {
380
416
  animation?: string;
381
417
  className?: string;
382
418
  style?: default_2.CSSProperties;
383
- } & default_2.RefAttributes<SVGSVGElement>>;
419
+ /** Accessible name; without it the icon is decorative (hidden from screen readers). */
420
+ title?: string;
421
+ } & default_2.RefAttributes<SVGSVGElement>> & {
422
+ displayName: string;
423
+ };
384
424
  };
385
425
 
386
426
  export declare const indicatorIcons: {
387
- GiCooldown: default_2.ForwardRefExoticComponent<CooldownProps & default_2.RefAttributes<SVGSVGElement>>;
427
+ GiCooldown: default_2.ForwardRefExoticComponent<CooldownProps & default_2.RefAttributes<SVGSVGElement>> & {
428
+ displayName: string;
429
+ };
388
430
  GiComboCounter: default_2.ForwardRefExoticComponent<{
389
431
  count: number;
390
432
  size?: number;
@@ -393,7 +435,11 @@ export declare const indicatorIcons: {
393
435
  animated?: boolean;
394
436
  className?: string;
395
437
  style?: default_2.CSSProperties;
396
- } & default_2.RefAttributes<SVGSVGElement>>;
438
+ /** Accessible name; without it the icon is decorative (hidden from screen readers). */
439
+ title?: string;
440
+ } & default_2.RefAttributes<SVGSVGElement>> & {
441
+ displayName: string;
442
+ };
397
443
  GiLevelBadge: default_2.ForwardRefExoticComponent<{
398
444
  level: number;
399
445
  size?: number;
@@ -402,10 +448,20 @@ export declare const indicatorIcons: {
402
448
  animated?: boolean;
403
449
  className?: string;
404
450
  style?: default_2.CSSProperties;
405
- } & default_2.RefAttributes<SVGSVGElement>>;
406
- GiDamageNumber: default_2.ForwardRefExoticComponent<DamageNumberProps & default_2.RefAttributes<SVGSVGElement>>;
407
- GiMinimapDot: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
408
- GiLoadingSpinner: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>>;
451
+ /** Accessible name; without it the icon is decorative (hidden from screen readers). */
452
+ title?: string;
453
+ } & default_2.RefAttributes<SVGSVGElement>> & {
454
+ displayName: string;
455
+ };
456
+ GiDamageNumber: default_2.ForwardRefExoticComponent<DamageNumberProps & default_2.RefAttributes<SVGSVGElement>> & {
457
+ displayName: string;
458
+ };
459
+ GiMinimapDot: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>> & {
460
+ displayName: string;
461
+ };
462
+ GiLoadingSpinner: default_2.ForwardRefExoticComponent<GameIconProps & default_2.RefAttributes<SVGSVGElement>> & {
463
+ displayName: string;
464
+ };
409
465
  };
410
466
 
411
467
  export declare const npcIcons: {