@hero-design/rn 8.29.4 → 8.30.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.
@@ -0,0 +1,742 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Rate renders correctly 1`] = `
4
+ <View
5
+ style={
6
+ Array [
7
+ Object {},
8
+ Array [
9
+ Object {
10
+ "flexDirection": "row",
11
+ },
12
+ undefined,
13
+ ],
14
+ ]
15
+ }
16
+ >
17
+ <View
18
+ accessibilityState={
19
+ Object {
20
+ "disabled": false,
21
+ }
22
+ }
23
+ accessible={true}
24
+ collapsable={false}
25
+ focusable={true}
26
+ onBlur={[Function]}
27
+ onClick={[Function]}
28
+ onFocus={[Function]}
29
+ onResponderGrant={[Function]}
30
+ onResponderMove={[Function]}
31
+ onResponderRelease={[Function]}
32
+ onResponderTerminate={[Function]}
33
+ onResponderTerminationRequest={[Function]}
34
+ onStartShouldSetResponder={[Function]}
35
+ testID="1"
36
+ >
37
+ <View
38
+ collapsable={false}
39
+ style={
40
+ Object {
41
+ "marginRight": 4,
42
+ "padding": 8,
43
+ }
44
+ }
45
+ >
46
+ <HeroIcon
47
+ name="star"
48
+ style={
49
+ Array [
50
+ Object {
51
+ "color": "#401960",
52
+ "fontSize": 24,
53
+ },
54
+ undefined,
55
+ ]
56
+ }
57
+ themeIntent="primary"
58
+ themeSize="medium"
59
+ />
60
+ </View>
61
+ </View>
62
+ <View
63
+ accessibilityState={
64
+ Object {
65
+ "disabled": false,
66
+ }
67
+ }
68
+ accessible={true}
69
+ collapsable={false}
70
+ focusable={true}
71
+ onBlur={[Function]}
72
+ onClick={[Function]}
73
+ onFocus={[Function]}
74
+ onResponderGrant={[Function]}
75
+ onResponderMove={[Function]}
76
+ onResponderRelease={[Function]}
77
+ onResponderTerminate={[Function]}
78
+ onResponderTerminationRequest={[Function]}
79
+ onStartShouldSetResponder={[Function]}
80
+ testID="2"
81
+ >
82
+ <View
83
+ collapsable={false}
84
+ style={
85
+ Object {
86
+ "marginRight": 4,
87
+ "padding": 8,
88
+ }
89
+ }
90
+ >
91
+ <HeroIcon
92
+ name="star"
93
+ style={
94
+ Array [
95
+ Object {
96
+ "color": "#401960",
97
+ "fontSize": 24,
98
+ },
99
+ undefined,
100
+ ]
101
+ }
102
+ themeIntent="primary"
103
+ themeSize="medium"
104
+ />
105
+ </View>
106
+ </View>
107
+ <View
108
+ accessibilityState={
109
+ Object {
110
+ "disabled": false,
111
+ }
112
+ }
113
+ accessible={true}
114
+ collapsable={false}
115
+ focusable={true}
116
+ onBlur={[Function]}
117
+ onClick={[Function]}
118
+ onFocus={[Function]}
119
+ onResponderGrant={[Function]}
120
+ onResponderMove={[Function]}
121
+ onResponderRelease={[Function]}
122
+ onResponderTerminate={[Function]}
123
+ onResponderTerminationRequest={[Function]}
124
+ onStartShouldSetResponder={[Function]}
125
+ testID="3"
126
+ >
127
+ <View
128
+ collapsable={false}
129
+ style={
130
+ Object {
131
+ "marginRight": 4,
132
+ "padding": 8,
133
+ "transform": Array [
134
+ Object {
135
+ "scale": 0.8,
136
+ },
137
+ ],
138
+ }
139
+ }
140
+ >
141
+ <HeroIcon
142
+ name="star"
143
+ style={
144
+ Array [
145
+ Object {
146
+ "color": "#401960",
147
+ "fontSize": 24,
148
+ },
149
+ undefined,
150
+ ]
151
+ }
152
+ themeIntent="primary"
153
+ themeSize="medium"
154
+ />
155
+ </View>
156
+ </View>
157
+ <View
158
+ accessibilityState={
159
+ Object {
160
+ "disabled": false,
161
+ }
162
+ }
163
+ accessible={true}
164
+ collapsable={false}
165
+ focusable={true}
166
+ onBlur={[Function]}
167
+ onClick={[Function]}
168
+ onFocus={[Function]}
169
+ onResponderGrant={[Function]}
170
+ onResponderMove={[Function]}
171
+ onResponderRelease={[Function]}
172
+ onResponderTerminate={[Function]}
173
+ onResponderTerminationRequest={[Function]}
174
+ onStartShouldSetResponder={[Function]}
175
+ testID="4"
176
+ >
177
+ <View
178
+ collapsable={false}
179
+ style={
180
+ Object {
181
+ "marginRight": 4,
182
+ "padding": 8,
183
+ }
184
+ }
185
+ >
186
+ <HeroIcon
187
+ name="star-outlined"
188
+ style={
189
+ Array [
190
+ Object {
191
+ "color": "#401960",
192
+ "fontSize": 24,
193
+ },
194
+ undefined,
195
+ ]
196
+ }
197
+ themeIntent="primary"
198
+ themeSize="medium"
199
+ />
200
+ </View>
201
+ </View>
202
+ <View
203
+ accessibilityState={
204
+ Object {
205
+ "disabled": false,
206
+ }
207
+ }
208
+ accessible={true}
209
+ collapsable={false}
210
+ focusable={true}
211
+ onBlur={[Function]}
212
+ onClick={[Function]}
213
+ onFocus={[Function]}
214
+ onResponderGrant={[Function]}
215
+ onResponderMove={[Function]}
216
+ onResponderRelease={[Function]}
217
+ onResponderTerminate={[Function]}
218
+ onResponderTerminationRequest={[Function]}
219
+ onStartShouldSetResponder={[Function]}
220
+ testID="5"
221
+ >
222
+ <View
223
+ collapsable={false}
224
+ style={
225
+ Object {
226
+ "marginRight": 4,
227
+ "padding": 8,
228
+ }
229
+ }
230
+ >
231
+ <HeroIcon
232
+ name="star-outlined"
233
+ style={
234
+ Array [
235
+ Object {
236
+ "color": "#401960",
237
+ "fontSize": 24,
238
+ },
239
+ undefined,
240
+ ]
241
+ }
242
+ themeIntent="primary"
243
+ themeSize="medium"
244
+ />
245
+ </View>
246
+ </View>
247
+ </View>
248
+ `;
249
+
250
+ exports[`Rate renders correctly it is readonly 1`] = `
251
+ <View
252
+ style={
253
+ Array [
254
+ Object {},
255
+ Array [
256
+ Object {
257
+ "flexDirection": "row",
258
+ },
259
+ undefined,
260
+ ],
261
+ ]
262
+ }
263
+ >
264
+ <View
265
+ accessibilityState={
266
+ Object {
267
+ "disabled": true,
268
+ }
269
+ }
270
+ accessible={true}
271
+ collapsable={false}
272
+ focusable={true}
273
+ onBlur={[Function]}
274
+ onClick={[Function]}
275
+ onFocus={[Function]}
276
+ onResponderGrant={[Function]}
277
+ onResponderMove={[Function]}
278
+ onResponderRelease={[Function]}
279
+ onResponderTerminate={[Function]}
280
+ onResponderTerminationRequest={[Function]}
281
+ onStartShouldSetResponder={[Function]}
282
+ testID="1"
283
+ >
284
+ <View
285
+ collapsable={false}
286
+ style={
287
+ Object {
288
+ "marginRight": 4,
289
+ "padding": 8,
290
+ }
291
+ }
292
+ >
293
+ <HeroIcon
294
+ name="star"
295
+ style={
296
+ Array [
297
+ Object {
298
+ "color": "#401960",
299
+ "fontSize": 24,
300
+ },
301
+ undefined,
302
+ ]
303
+ }
304
+ themeIntent="primary"
305
+ themeSize="medium"
306
+ />
307
+ </View>
308
+ </View>
309
+ <View
310
+ accessibilityState={
311
+ Object {
312
+ "disabled": true,
313
+ }
314
+ }
315
+ accessible={true}
316
+ collapsable={false}
317
+ focusable={true}
318
+ onBlur={[Function]}
319
+ onClick={[Function]}
320
+ onFocus={[Function]}
321
+ onResponderGrant={[Function]}
322
+ onResponderMove={[Function]}
323
+ onResponderRelease={[Function]}
324
+ onResponderTerminate={[Function]}
325
+ onResponderTerminationRequest={[Function]}
326
+ onStartShouldSetResponder={[Function]}
327
+ testID="2"
328
+ >
329
+ <View
330
+ collapsable={false}
331
+ style={
332
+ Object {
333
+ "marginRight": 4,
334
+ "padding": 8,
335
+ }
336
+ }
337
+ >
338
+ <HeroIcon
339
+ name="star"
340
+ style={
341
+ Array [
342
+ Object {
343
+ "color": "#401960",
344
+ "fontSize": 24,
345
+ },
346
+ undefined,
347
+ ]
348
+ }
349
+ themeIntent="primary"
350
+ themeSize="medium"
351
+ />
352
+ </View>
353
+ </View>
354
+ <View
355
+ accessibilityState={
356
+ Object {
357
+ "disabled": true,
358
+ }
359
+ }
360
+ accessible={true}
361
+ collapsable={false}
362
+ focusable={true}
363
+ onBlur={[Function]}
364
+ onClick={[Function]}
365
+ onFocus={[Function]}
366
+ onResponderGrant={[Function]}
367
+ onResponderMove={[Function]}
368
+ onResponderRelease={[Function]}
369
+ onResponderTerminate={[Function]}
370
+ onResponderTerminationRequest={[Function]}
371
+ onStartShouldSetResponder={[Function]}
372
+ testID="3"
373
+ >
374
+ <View
375
+ collapsable={false}
376
+ style={
377
+ Object {
378
+ "marginRight": 4,
379
+ "padding": 8,
380
+ "transform": Array [
381
+ Object {
382
+ "scale": 0.8,
383
+ },
384
+ ],
385
+ }
386
+ }
387
+ >
388
+ <HeroIcon
389
+ name="star"
390
+ style={
391
+ Array [
392
+ Object {
393
+ "color": "#401960",
394
+ "fontSize": 24,
395
+ },
396
+ undefined,
397
+ ]
398
+ }
399
+ themeIntent="primary"
400
+ themeSize="medium"
401
+ />
402
+ </View>
403
+ </View>
404
+ <View
405
+ accessibilityState={
406
+ Object {
407
+ "disabled": true,
408
+ }
409
+ }
410
+ accessible={true}
411
+ collapsable={false}
412
+ focusable={true}
413
+ onBlur={[Function]}
414
+ onClick={[Function]}
415
+ onFocus={[Function]}
416
+ onResponderGrant={[Function]}
417
+ onResponderMove={[Function]}
418
+ onResponderRelease={[Function]}
419
+ onResponderTerminate={[Function]}
420
+ onResponderTerminationRequest={[Function]}
421
+ onStartShouldSetResponder={[Function]}
422
+ testID="4"
423
+ >
424
+ <View
425
+ collapsable={false}
426
+ style={
427
+ Object {
428
+ "marginRight": 4,
429
+ "padding": 8,
430
+ }
431
+ }
432
+ >
433
+ <HeroIcon
434
+ name="star-outlined"
435
+ style={
436
+ Array [
437
+ Object {
438
+ "color": "#401960",
439
+ "fontSize": 24,
440
+ },
441
+ undefined,
442
+ ]
443
+ }
444
+ themeIntent="primary"
445
+ themeSize="medium"
446
+ />
447
+ </View>
448
+ </View>
449
+ <View
450
+ accessibilityState={
451
+ Object {
452
+ "disabled": true,
453
+ }
454
+ }
455
+ accessible={true}
456
+ collapsable={false}
457
+ focusable={true}
458
+ onBlur={[Function]}
459
+ onClick={[Function]}
460
+ onFocus={[Function]}
461
+ onResponderGrant={[Function]}
462
+ onResponderMove={[Function]}
463
+ onResponderRelease={[Function]}
464
+ onResponderTerminate={[Function]}
465
+ onResponderTerminationRequest={[Function]}
466
+ onStartShouldSetResponder={[Function]}
467
+ testID="5"
468
+ >
469
+ <View
470
+ collapsable={false}
471
+ style={
472
+ Object {
473
+ "marginRight": 4,
474
+ "padding": 8,
475
+ }
476
+ }
477
+ >
478
+ <HeroIcon
479
+ name="star-outlined"
480
+ style={
481
+ Array [
482
+ Object {
483
+ "color": "#401960",
484
+ "fontSize": 24,
485
+ },
486
+ undefined,
487
+ ]
488
+ }
489
+ themeIntent="primary"
490
+ themeSize="medium"
491
+ />
492
+ </View>
493
+ </View>
494
+ </View>
495
+ `;
496
+
497
+ exports[`Rate renders correctly when disabled 1`] = `
498
+ <View
499
+ style={
500
+ Array [
501
+ Object {},
502
+ Array [
503
+ Object {
504
+ "flexDirection": "row",
505
+ },
506
+ undefined,
507
+ ],
508
+ ]
509
+ }
510
+ >
511
+ <View
512
+ accessibilityState={
513
+ Object {
514
+ "disabled": true,
515
+ }
516
+ }
517
+ accessible={true}
518
+ collapsable={false}
519
+ focusable={true}
520
+ onBlur={[Function]}
521
+ onClick={[Function]}
522
+ onFocus={[Function]}
523
+ onResponderGrant={[Function]}
524
+ onResponderMove={[Function]}
525
+ onResponderRelease={[Function]}
526
+ onResponderTerminate={[Function]}
527
+ onResponderTerminationRequest={[Function]}
528
+ onStartShouldSetResponder={[Function]}
529
+ testID="1"
530
+ >
531
+ <View
532
+ collapsable={false}
533
+ style={
534
+ Object {
535
+ "marginRight": 4,
536
+ "padding": 8,
537
+ }
538
+ }
539
+ >
540
+ <HeroIcon
541
+ name="star"
542
+ style={
543
+ Array [
544
+ Object {
545
+ "color": "#bfc1c5",
546
+ "fontSize": 24,
547
+ },
548
+ undefined,
549
+ ]
550
+ }
551
+ themeIntent="disabled-text"
552
+ themeSize="medium"
553
+ />
554
+ </View>
555
+ </View>
556
+ <View
557
+ accessibilityState={
558
+ Object {
559
+ "disabled": true,
560
+ }
561
+ }
562
+ accessible={true}
563
+ collapsable={false}
564
+ focusable={true}
565
+ onBlur={[Function]}
566
+ onClick={[Function]}
567
+ onFocus={[Function]}
568
+ onResponderGrant={[Function]}
569
+ onResponderMove={[Function]}
570
+ onResponderRelease={[Function]}
571
+ onResponderTerminate={[Function]}
572
+ onResponderTerminationRequest={[Function]}
573
+ onStartShouldSetResponder={[Function]}
574
+ testID="2"
575
+ >
576
+ <View
577
+ collapsable={false}
578
+ style={
579
+ Object {
580
+ "marginRight": 4,
581
+ "padding": 8,
582
+ }
583
+ }
584
+ >
585
+ <HeroIcon
586
+ name="star"
587
+ style={
588
+ Array [
589
+ Object {
590
+ "color": "#bfc1c5",
591
+ "fontSize": 24,
592
+ },
593
+ undefined,
594
+ ]
595
+ }
596
+ themeIntent="disabled-text"
597
+ themeSize="medium"
598
+ />
599
+ </View>
600
+ </View>
601
+ <View
602
+ accessibilityState={
603
+ Object {
604
+ "disabled": true,
605
+ }
606
+ }
607
+ accessible={true}
608
+ collapsable={false}
609
+ focusable={true}
610
+ onBlur={[Function]}
611
+ onClick={[Function]}
612
+ onFocus={[Function]}
613
+ onResponderGrant={[Function]}
614
+ onResponderMove={[Function]}
615
+ onResponderRelease={[Function]}
616
+ onResponderTerminate={[Function]}
617
+ onResponderTerminationRequest={[Function]}
618
+ onStartShouldSetResponder={[Function]}
619
+ testID="3"
620
+ >
621
+ <View
622
+ collapsable={false}
623
+ style={
624
+ Object {
625
+ "marginRight": 4,
626
+ "padding": 8,
627
+ "transform": Array [
628
+ Object {
629
+ "scale": 0.8,
630
+ },
631
+ ],
632
+ }
633
+ }
634
+ >
635
+ <HeroIcon
636
+ name="star"
637
+ style={
638
+ Array [
639
+ Object {
640
+ "color": "#bfc1c5",
641
+ "fontSize": 24,
642
+ },
643
+ undefined,
644
+ ]
645
+ }
646
+ themeIntent="disabled-text"
647
+ themeSize="medium"
648
+ />
649
+ </View>
650
+ </View>
651
+ <View
652
+ accessibilityState={
653
+ Object {
654
+ "disabled": true,
655
+ }
656
+ }
657
+ accessible={true}
658
+ collapsable={false}
659
+ focusable={true}
660
+ onBlur={[Function]}
661
+ onClick={[Function]}
662
+ onFocus={[Function]}
663
+ onResponderGrant={[Function]}
664
+ onResponderMove={[Function]}
665
+ onResponderRelease={[Function]}
666
+ onResponderTerminate={[Function]}
667
+ onResponderTerminationRequest={[Function]}
668
+ onStartShouldSetResponder={[Function]}
669
+ testID="4"
670
+ >
671
+ <View
672
+ collapsable={false}
673
+ style={
674
+ Object {
675
+ "marginRight": 4,
676
+ "padding": 8,
677
+ }
678
+ }
679
+ >
680
+ <HeroIcon
681
+ name="star-outlined"
682
+ style={
683
+ Array [
684
+ Object {
685
+ "color": "#bfc1c5",
686
+ "fontSize": 24,
687
+ },
688
+ undefined,
689
+ ]
690
+ }
691
+ themeIntent="disabled-text"
692
+ themeSize="medium"
693
+ />
694
+ </View>
695
+ </View>
696
+ <View
697
+ accessibilityState={
698
+ Object {
699
+ "disabled": true,
700
+ }
701
+ }
702
+ accessible={true}
703
+ collapsable={false}
704
+ focusable={true}
705
+ onBlur={[Function]}
706
+ onClick={[Function]}
707
+ onFocus={[Function]}
708
+ onResponderGrant={[Function]}
709
+ onResponderMove={[Function]}
710
+ onResponderRelease={[Function]}
711
+ onResponderTerminate={[Function]}
712
+ onResponderTerminationRequest={[Function]}
713
+ onStartShouldSetResponder={[Function]}
714
+ testID="5"
715
+ >
716
+ <View
717
+ collapsable={false}
718
+ style={
719
+ Object {
720
+ "marginRight": 4,
721
+ "padding": 8,
722
+ }
723
+ }
724
+ >
725
+ <HeroIcon
726
+ name="star-outlined"
727
+ style={
728
+ Array [
729
+ Object {
730
+ "color": "#bfc1c5",
731
+ "fontSize": 24,
732
+ },
733
+ undefined,
734
+ ]
735
+ }
736
+ themeIntent="disabled-text"
737
+ themeSize="medium"
738
+ />
739
+ </View>
740
+ </View>
741
+ </View>
742
+ `;