@hero-design/rn 8.12.1 → 8.12.3

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.
Files changed (41) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/es/index.js +102 -46
  3. package/lib/index.js +101 -45
  4. package/package.json +5 -5
  5. package/src/components/Button/Button.tsx +42 -2
  6. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +1 -1
  7. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +1 -1
  8. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  9. package/src/components/Button/StyledButton.tsx +21 -14
  10. package/src/components/Button/__tests__/Button.spec.tsx +46 -1
  11. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1564 -0
  12. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +126 -110
  13. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +24 -22
  14. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +12 -9
  15. package/src/components/FAB/ActionGroup/ActionItem.tsx +17 -6
  16. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +15 -17
  17. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +170 -160
  18. package/src/components/FAB/FAB.tsx +3 -1
  19. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +36 -27
  20. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  21. package/src/components/Tabs/__tests__/index.spec.tsx +5 -5
  22. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +12 -9
  23. package/src/components/Typography/Text/StyledText.tsx +1 -0
  24. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +1 -0
  25. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +23 -0
  26. package/src/components/Typography/Text/index.tsx +1 -0
  27. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +19 -0
  28. package/src/theme/components/button.ts +16 -2
  29. package/src/theme/components/fab.ts +2 -0
  30. package/src/theme/components/typography.ts +2 -0
  31. package/src/theme/global/borders.ts +2 -0
  32. package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +4 -4
  33. package/types/components/Button/Button.d.ts +1 -1
  34. package/types/components/Button/StyledButton.d.ts +4 -3
  35. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +3 -3
  36. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  37. package/types/components/Typography/Text/index.d.ts +1 -1
  38. package/types/theme/components/button.d.ts +14 -0
  39. package/types/theme/components/fab.d.ts +2 -0
  40. package/types/theme/components/typography.d.ts +2 -0
  41. package/types/theme/global/borders.d.ts +1 -0
@@ -0,0 +1,1564 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Button renders correctly 1`] = `
4
+ <View
5
+ accessibilityState={
6
+ Object {
7
+ "disabled": false,
8
+ }
9
+ }
10
+ accessible={true}
11
+ focusable={true}
12
+ onClick={[Function]}
13
+ onResponderGrant={[Function]}
14
+ onResponderMove={[Function]}
15
+ onResponderRelease={[Function]}
16
+ onResponderTerminate={[Function]}
17
+ onResponderTerminationRequest={[Function]}
18
+ onStartShouldSetResponder={[Function]}
19
+ style={
20
+ Array [
21
+ Object {
22
+ "alignItems": "center",
23
+ "alignSelf": "stretch",
24
+ "backgroundColor": "#401960",
25
+ "borderRadius": 32,
26
+ "flexDirection": "row",
27
+ "justifyContent": "center",
28
+ "padding": 16,
29
+ },
30
+ undefined,
31
+ ]
32
+ }
33
+ >
34
+ <Text
35
+ disabled={false}
36
+ ellipsizeMode="tail"
37
+ numberOfLines={1}
38
+ style={
39
+ Array [
40
+ Object {
41
+ "color": "#001f23",
42
+ "fontFamily": "BeVietnamPro-Regular",
43
+ "fontSize": 14,
44
+ "letterSpacing": 0.42,
45
+ "lineHeight": 22,
46
+ },
47
+ Array [
48
+ Object {
49
+ "color": "#ffffff",
50
+ "flexShrink": 1,
51
+ "fontFamily": "BeVietnamPro-SemiBold",
52
+ "fontSize": 18,
53
+ "lineHeight": 24,
54
+ "textAlign": "center",
55
+ },
56
+ undefined,
57
+ ],
58
+ ]
59
+ }
60
+ themeFontSize="medium"
61
+ themeFontWeight="regular"
62
+ themeIntent="body"
63
+ themeTypeface="neutral"
64
+ themeVariant="filled-primary"
65
+ >
66
+ A button
67
+ </Text>
68
+ </View>
69
+ `;
70
+
71
+ exports[`Button renders correctly 2`] = `
72
+ <View
73
+ accessibilityState={
74
+ Object {
75
+ "disabled": true,
76
+ }
77
+ }
78
+ accessible={true}
79
+ focusable={true}
80
+ onClick={[Function]}
81
+ onResponderGrant={[Function]}
82
+ onResponderMove={[Function]}
83
+ onResponderRelease={[Function]}
84
+ onResponderTerminate={[Function]}
85
+ onResponderTerminationRequest={[Function]}
86
+ onStartShouldSetResponder={[Function]}
87
+ style={
88
+ Array [
89
+ Object {
90
+ "alignItems": "center",
91
+ "alignSelf": "stretch",
92
+ "backgroundColor": "#401960",
93
+ "borderRadius": 32,
94
+ "flexDirection": "row",
95
+ "justifyContent": "center",
96
+ "padding": 16,
97
+ },
98
+ undefined,
99
+ ]
100
+ }
101
+ >
102
+ <View
103
+ collapsable={false}
104
+ style={
105
+ Array [
106
+ Object {
107
+ "alignItems": "center",
108
+ "flexDirection": "row",
109
+ "justifyContent": "center",
110
+ "paddingVertical": 2,
111
+ },
112
+ Object {},
113
+ ]
114
+ }
115
+ testID="undefined-loading-indicator"
116
+ >
117
+ <View
118
+ collapsable={false}
119
+ style={
120
+ Object {
121
+ "transform": Array [
122
+ Object {
123
+ "scale": 1,
124
+ },
125
+ ],
126
+ }
127
+ }
128
+ >
129
+ <View
130
+ collapsable={false}
131
+ size={12}
132
+ style={
133
+ Array [
134
+ Object {
135
+ "backgroundColor": "#ffffff",
136
+ "borderRadius": 8,
137
+ "height": 12,
138
+ "marginBottom": 4,
139
+ "marginHorizontal": 8,
140
+ "marginTop": 4,
141
+ "width": 12,
142
+ },
143
+ Object {},
144
+ ]
145
+ }
146
+ themeVariant="filled-primary"
147
+ />
148
+ </View>
149
+ <View
150
+ collapsable={false}
151
+ style={
152
+ Object {
153
+ "transform": Array [
154
+ Object {
155
+ "scale": 1,
156
+ },
157
+ ],
158
+ }
159
+ }
160
+ >
161
+ <View
162
+ collapsable={false}
163
+ size={12}
164
+ style={
165
+ Array [
166
+ Object {
167
+ "backgroundColor": "#ffffff",
168
+ "borderRadius": 8,
169
+ "height": 12,
170
+ "marginBottom": 4,
171
+ "marginHorizontal": 8,
172
+ "marginTop": 4,
173
+ "width": 12,
174
+ },
175
+ Object {},
176
+ ]
177
+ }
178
+ themeVariant="filled-primary"
179
+ />
180
+ </View>
181
+ <View
182
+ collapsable={false}
183
+ style={
184
+ Object {
185
+ "transform": Array [
186
+ Object {
187
+ "scale": 1,
188
+ },
189
+ ],
190
+ }
191
+ }
192
+ >
193
+ <View
194
+ collapsable={false}
195
+ size={12}
196
+ style={
197
+ Array [
198
+ Object {
199
+ "backgroundColor": "#ffffff",
200
+ "borderRadius": 8,
201
+ "height": 12,
202
+ "marginBottom": 4,
203
+ "marginHorizontal": 8,
204
+ "marginTop": 4,
205
+ "width": 12,
206
+ },
207
+ Object {},
208
+ ]
209
+ }
210
+ themeVariant="filled-primary"
211
+ />
212
+ </View>
213
+ </View>
214
+ </View>
215
+ `;
216
+
217
+ exports[`Button renders correctly 3`] = `
218
+ <View
219
+ accessibilityState={
220
+ Object {
221
+ "disabled": true,
222
+ }
223
+ }
224
+ accessible={true}
225
+ focusable={true}
226
+ onClick={[Function]}
227
+ onResponderGrant={[Function]}
228
+ onResponderMove={[Function]}
229
+ onResponderRelease={[Function]}
230
+ onResponderTerminate={[Function]}
231
+ onResponderTerminationRequest={[Function]}
232
+ onStartShouldSetResponder={[Function]}
233
+ style={
234
+ Array [
235
+ Object {
236
+ "alignItems": "center",
237
+ "alignSelf": "stretch",
238
+ "backgroundColor": "#bfc1c5",
239
+ "borderRadius": 32,
240
+ "flexDirection": "row",
241
+ "justifyContent": "center",
242
+ "padding": 16,
243
+ },
244
+ undefined,
245
+ ]
246
+ }
247
+ >
248
+ <Text
249
+ disabled={true}
250
+ ellipsizeMode="tail"
251
+ numberOfLines={1}
252
+ style={
253
+ Array [
254
+ Object {
255
+ "color": "#001f23",
256
+ "fontFamily": "BeVietnamPro-Regular",
257
+ "fontSize": 14,
258
+ "letterSpacing": 0.42,
259
+ "lineHeight": 22,
260
+ },
261
+ Array [
262
+ Object {
263
+ "color": "#ffffff",
264
+ "flexShrink": 1,
265
+ "fontFamily": "BeVietnamPro-SemiBold",
266
+ "fontSize": 18,
267
+ "lineHeight": 24,
268
+ "textAlign": "center",
269
+ },
270
+ undefined,
271
+ ],
272
+ ]
273
+ }
274
+ themeFontSize="medium"
275
+ themeFontWeight="regular"
276
+ themeIntent="body"
277
+ themeTypeface="neutral"
278
+ themeVariant="filled-primary"
279
+ >
280
+ A button
281
+ </Text>
282
+ </View>
283
+ `;
284
+
285
+ exports[`Button renders correctly 4`] = `
286
+ <View
287
+ accessibilityState={
288
+ Object {
289
+ "disabled": false,
290
+ }
291
+ }
292
+ accessible={true}
293
+ focusable={true}
294
+ onClick={[Function]}
295
+ onResponderGrant={[Function]}
296
+ onResponderMove={[Function]}
297
+ onResponderRelease={[Function]}
298
+ onResponderTerminate={[Function]}
299
+ onResponderTerminationRequest={[Function]}
300
+ onStartShouldSetResponder={[Function]}
301
+ style={
302
+ Array [
303
+ Object {
304
+ "alignItems": "center",
305
+ "alignSelf": "stretch",
306
+ "backgroundColor": "transparent",
307
+ "borderColor": "#401960",
308
+ "borderRadius": 32,
309
+ "borderWidth": 2,
310
+ "flexDirection": "row",
311
+ "justifyContent": "center",
312
+ "padding": 14,
313
+ },
314
+ undefined,
315
+ ]
316
+ }
317
+ >
318
+ <Text
319
+ disabled={false}
320
+ ellipsizeMode="tail"
321
+ numberOfLines={1}
322
+ style={
323
+ Array [
324
+ Object {
325
+ "color": "#001f23",
326
+ "fontFamily": "BeVietnamPro-Regular",
327
+ "fontSize": 14,
328
+ "letterSpacing": 0.42,
329
+ "lineHeight": 22,
330
+ },
331
+ Array [
332
+ Object {
333
+ "color": "#401960",
334
+ "flexShrink": 1,
335
+ "fontFamily": "BeVietnamPro-SemiBold",
336
+ "fontSize": 18,
337
+ "lineHeight": 24,
338
+ "textAlign": "center",
339
+ },
340
+ undefined,
341
+ ],
342
+ ]
343
+ }
344
+ themeFontSize="medium"
345
+ themeFontWeight="regular"
346
+ themeIntent="body"
347
+ themeTypeface="neutral"
348
+ themeVariant="outlined-primary"
349
+ >
350
+ A button
351
+ </Text>
352
+ </View>
353
+ `;
354
+
355
+ exports[`Button renders correctly 5`] = `
356
+ <View
357
+ accessibilityState={
358
+ Object {
359
+ "disabled": true,
360
+ }
361
+ }
362
+ accessible={true}
363
+ focusable={true}
364
+ onClick={[Function]}
365
+ onResponderGrant={[Function]}
366
+ onResponderMove={[Function]}
367
+ onResponderRelease={[Function]}
368
+ onResponderTerminate={[Function]}
369
+ onResponderTerminationRequest={[Function]}
370
+ onStartShouldSetResponder={[Function]}
371
+ style={
372
+ Array [
373
+ Object {
374
+ "alignItems": "center",
375
+ "alignSelf": "stretch",
376
+ "backgroundColor": "transparent",
377
+ "borderColor": "#401960",
378
+ "borderRadius": 32,
379
+ "borderWidth": 2,
380
+ "flexDirection": "row",
381
+ "justifyContent": "center",
382
+ "padding": 14,
383
+ },
384
+ undefined,
385
+ ]
386
+ }
387
+ >
388
+ <View
389
+ collapsable={false}
390
+ style={
391
+ Array [
392
+ Object {
393
+ "alignItems": "center",
394
+ "flexDirection": "row",
395
+ "justifyContent": "center",
396
+ "paddingVertical": 2,
397
+ },
398
+ Object {},
399
+ ]
400
+ }
401
+ testID="undefined-loading-indicator"
402
+ >
403
+ <View
404
+ collapsable={false}
405
+ style={
406
+ Object {
407
+ "transform": Array [
408
+ Object {
409
+ "scale": 1,
410
+ },
411
+ ],
412
+ }
413
+ }
414
+ >
415
+ <View
416
+ collapsable={false}
417
+ size={12}
418
+ style={
419
+ Array [
420
+ Object {
421
+ "backgroundColor": "#401960",
422
+ "borderRadius": 8,
423
+ "height": 12,
424
+ "marginBottom": 4,
425
+ "marginHorizontal": 8,
426
+ "marginTop": 4,
427
+ "width": 12,
428
+ },
429
+ Object {},
430
+ ]
431
+ }
432
+ themeVariant="outlined-primary"
433
+ />
434
+ </View>
435
+ <View
436
+ collapsable={false}
437
+ style={
438
+ Object {
439
+ "transform": Array [
440
+ Object {
441
+ "scale": 1,
442
+ },
443
+ ],
444
+ }
445
+ }
446
+ >
447
+ <View
448
+ collapsable={false}
449
+ size={12}
450
+ style={
451
+ Array [
452
+ Object {
453
+ "backgroundColor": "#401960",
454
+ "borderRadius": 8,
455
+ "height": 12,
456
+ "marginBottom": 4,
457
+ "marginHorizontal": 8,
458
+ "marginTop": 4,
459
+ "width": 12,
460
+ },
461
+ Object {},
462
+ ]
463
+ }
464
+ themeVariant="outlined-primary"
465
+ />
466
+ </View>
467
+ <View
468
+ collapsable={false}
469
+ style={
470
+ Object {
471
+ "transform": Array [
472
+ Object {
473
+ "scale": 1,
474
+ },
475
+ ],
476
+ }
477
+ }
478
+ >
479
+ <View
480
+ collapsable={false}
481
+ size={12}
482
+ style={
483
+ Array [
484
+ Object {
485
+ "backgroundColor": "#401960",
486
+ "borderRadius": 8,
487
+ "height": 12,
488
+ "marginBottom": 4,
489
+ "marginHorizontal": 8,
490
+ "marginTop": 4,
491
+ "width": 12,
492
+ },
493
+ Object {},
494
+ ]
495
+ }
496
+ themeVariant="outlined-primary"
497
+ />
498
+ </View>
499
+ </View>
500
+ </View>
501
+ `;
502
+
503
+ exports[`Button renders correctly 6`] = `
504
+ <View
505
+ accessibilityState={
506
+ Object {
507
+ "disabled": true,
508
+ }
509
+ }
510
+ accessible={true}
511
+ focusable={true}
512
+ onClick={[Function]}
513
+ onResponderGrant={[Function]}
514
+ onResponderMove={[Function]}
515
+ onResponderRelease={[Function]}
516
+ onResponderTerminate={[Function]}
517
+ onResponderTerminationRequest={[Function]}
518
+ onStartShouldSetResponder={[Function]}
519
+ style={
520
+ Array [
521
+ Object {
522
+ "alignItems": "center",
523
+ "alignSelf": "stretch",
524
+ "backgroundColor": "transparent",
525
+ "borderColor": "#bfc1c5",
526
+ "borderRadius": 32,
527
+ "borderWidth": 2,
528
+ "flexDirection": "row",
529
+ "justifyContent": "center",
530
+ "padding": 14,
531
+ },
532
+ undefined,
533
+ ]
534
+ }
535
+ >
536
+ <Text
537
+ disabled={true}
538
+ ellipsizeMode="tail"
539
+ numberOfLines={1}
540
+ style={
541
+ Array [
542
+ Object {
543
+ "color": "#001f23",
544
+ "fontFamily": "BeVietnamPro-Regular",
545
+ "fontSize": 14,
546
+ "letterSpacing": 0.42,
547
+ "lineHeight": 22,
548
+ },
549
+ Array [
550
+ Object {
551
+ "color": "#bfc1c5",
552
+ "flexShrink": 1,
553
+ "fontFamily": "BeVietnamPro-SemiBold",
554
+ "fontSize": 18,
555
+ "lineHeight": 24,
556
+ "textAlign": "center",
557
+ },
558
+ undefined,
559
+ ],
560
+ ]
561
+ }
562
+ themeFontSize="medium"
563
+ themeFontWeight="regular"
564
+ themeIntent="body"
565
+ themeTypeface="neutral"
566
+ themeVariant="outlined-primary"
567
+ >
568
+ A button
569
+ </Text>
570
+ </View>
571
+ `;
572
+
573
+ exports[`Button renders correctly 7`] = `
574
+ <View
575
+ accessibilityState={
576
+ Object {
577
+ "disabled": false,
578
+ }
579
+ }
580
+ accessible={true}
581
+ focusable={true}
582
+ onClick={[Function]}
583
+ onResponderGrant={[Function]}
584
+ onResponderMove={[Function]}
585
+ onResponderRelease={[Function]}
586
+ onResponderTerminate={[Function]}
587
+ onResponderTerminationRequest={[Function]}
588
+ onStartShouldSetResponder={[Function]}
589
+ style={
590
+ Array [
591
+ Object {
592
+ "alignItems": "center",
593
+ "backgroundColor": "transparent",
594
+ "borderRadius": 4,
595
+ "borderWidth": 0,
596
+ "flexDirection": "row",
597
+ "justifyContent": "center",
598
+ "padding": 12,
599
+ },
600
+ undefined,
601
+ ]
602
+ }
603
+ >
604
+ <Text
605
+ disabled={false}
606
+ ellipsizeMode="tail"
607
+ numberOfLines={1}
608
+ style={
609
+ Array [
610
+ Object {
611
+ "color": "#001f23",
612
+ "fontFamily": "BeVietnamPro-Regular",
613
+ "fontSize": 14,
614
+ "letterSpacing": 0.42,
615
+ "lineHeight": 22,
616
+ },
617
+ Array [
618
+ Object {
619
+ "color": "#401960",
620
+ "flexShrink": 1,
621
+ "fontFamily": "BeVietnamPro-SemiBold",
622
+ "fontSize": 16,
623
+ "lineHeight": 24,
624
+ "textAlign": "center",
625
+ },
626
+ undefined,
627
+ ],
628
+ ]
629
+ }
630
+ themeFontSize="medium"
631
+ themeFontWeight="regular"
632
+ themeIntent="body"
633
+ themeTypeface="neutral"
634
+ themeVariant="text-primary"
635
+ >
636
+ A button
637
+ </Text>
638
+ </View>
639
+ `;
640
+
641
+ exports[`Button renders correctly 8`] = `
642
+ <View
643
+ accessibilityState={
644
+ Object {
645
+ "disabled": true,
646
+ }
647
+ }
648
+ accessible={true}
649
+ focusable={true}
650
+ onClick={[Function]}
651
+ onResponderGrant={[Function]}
652
+ onResponderMove={[Function]}
653
+ onResponderRelease={[Function]}
654
+ onResponderTerminate={[Function]}
655
+ onResponderTerminationRequest={[Function]}
656
+ onStartShouldSetResponder={[Function]}
657
+ style={
658
+ Array [
659
+ Object {
660
+ "alignItems": "center",
661
+ "backgroundColor": "#ece8ef",
662
+ "borderRadius": 4,
663
+ "borderWidth": 0,
664
+ "flexDirection": "row",
665
+ "justifyContent": "center",
666
+ "padding": 12,
667
+ },
668
+ undefined,
669
+ ]
670
+ }
671
+ >
672
+ <View
673
+ collapsable={false}
674
+ style={
675
+ Array [
676
+ Object {
677
+ "alignItems": "center",
678
+ "flexDirection": "row",
679
+ "justifyContent": "center",
680
+ "paddingVertical": 2,
681
+ },
682
+ Object {},
683
+ ]
684
+ }
685
+ testID="undefined-loading-indicator"
686
+ >
687
+ <View
688
+ collapsable={false}
689
+ style={
690
+ Object {
691
+ "transform": Array [
692
+ Object {
693
+ "scale": 1,
694
+ },
695
+ ],
696
+ }
697
+ }
698
+ >
699
+ <View
700
+ collapsable={false}
701
+ size={12}
702
+ style={
703
+ Array [
704
+ Object {
705
+ "backgroundColor": "#795e90",
706
+ "borderRadius": 8,
707
+ "height": 12,
708
+ "marginBottom": 4,
709
+ "marginHorizontal": 8,
710
+ "marginTop": 4,
711
+ "width": 12,
712
+ },
713
+ Object {},
714
+ ]
715
+ }
716
+ themeVariant="text-primary"
717
+ />
718
+ </View>
719
+ <View
720
+ collapsable={false}
721
+ style={
722
+ Object {
723
+ "transform": Array [
724
+ Object {
725
+ "scale": 1,
726
+ },
727
+ ],
728
+ }
729
+ }
730
+ >
731
+ <View
732
+ collapsable={false}
733
+ size={12}
734
+ style={
735
+ Array [
736
+ Object {
737
+ "backgroundColor": "#795e90",
738
+ "borderRadius": 8,
739
+ "height": 12,
740
+ "marginBottom": 4,
741
+ "marginHorizontal": 8,
742
+ "marginTop": 4,
743
+ "width": 12,
744
+ },
745
+ Object {},
746
+ ]
747
+ }
748
+ themeVariant="text-primary"
749
+ />
750
+ </View>
751
+ <View
752
+ collapsable={false}
753
+ style={
754
+ Object {
755
+ "transform": Array [
756
+ Object {
757
+ "scale": 1,
758
+ },
759
+ ],
760
+ }
761
+ }
762
+ >
763
+ <View
764
+ collapsable={false}
765
+ size={12}
766
+ style={
767
+ Array [
768
+ Object {
769
+ "backgroundColor": "#795e90",
770
+ "borderRadius": 8,
771
+ "height": 12,
772
+ "marginBottom": 4,
773
+ "marginHorizontal": 8,
774
+ "marginTop": 4,
775
+ "width": 12,
776
+ },
777
+ Object {},
778
+ ]
779
+ }
780
+ themeVariant="text-primary"
781
+ />
782
+ </View>
783
+ </View>
784
+ </View>
785
+ `;
786
+
787
+ exports[`Button renders correctly 9`] = `
788
+ <View
789
+ accessibilityState={
790
+ Object {
791
+ "disabled": true,
792
+ }
793
+ }
794
+ accessible={true}
795
+ focusable={true}
796
+ onClick={[Function]}
797
+ onResponderGrant={[Function]}
798
+ onResponderMove={[Function]}
799
+ onResponderRelease={[Function]}
800
+ onResponderTerminate={[Function]}
801
+ onResponderTerminationRequest={[Function]}
802
+ onStartShouldSetResponder={[Function]}
803
+ style={
804
+ Array [
805
+ Object {
806
+ "alignItems": "center",
807
+ "backgroundColor": "transparent",
808
+ "borderRadius": 4,
809
+ "borderWidth": 0,
810
+ "flexDirection": "row",
811
+ "justifyContent": "center",
812
+ "padding": 12,
813
+ },
814
+ undefined,
815
+ ]
816
+ }
817
+ >
818
+ <Text
819
+ disabled={true}
820
+ ellipsizeMode="tail"
821
+ numberOfLines={1}
822
+ style={
823
+ Array [
824
+ Object {
825
+ "color": "#001f23",
826
+ "fontFamily": "BeVietnamPro-Regular",
827
+ "fontSize": 14,
828
+ "letterSpacing": 0.42,
829
+ "lineHeight": 22,
830
+ },
831
+ Array [
832
+ Object {
833
+ "color": "#bfc1c5",
834
+ "flexShrink": 1,
835
+ "fontFamily": "BeVietnamPro-SemiBold",
836
+ "fontSize": 16,
837
+ "lineHeight": 24,
838
+ "textAlign": "center",
839
+ },
840
+ undefined,
841
+ ],
842
+ ]
843
+ }
844
+ themeFontSize="medium"
845
+ themeFontWeight="regular"
846
+ themeIntent="body"
847
+ themeTypeface="neutral"
848
+ themeVariant="text-primary"
849
+ >
850
+ A button
851
+ </Text>
852
+ </View>
853
+ `;
854
+
855
+ exports[`Button renders correctly 10`] = `
856
+ <View
857
+ accessibilityState={
858
+ Object {
859
+ "disabled": false,
860
+ }
861
+ }
862
+ accessible={true}
863
+ focusable={true}
864
+ onClick={[Function]}
865
+ onResponderGrant={[Function]}
866
+ onResponderMove={[Function]}
867
+ onResponderRelease={[Function]}
868
+ onResponderTerminate={[Function]}
869
+ onResponderTerminationRequest={[Function]}
870
+ onStartShouldSetResponder={[Function]}
871
+ style={
872
+ Array [
873
+ Object {
874
+ "alignItems": "center",
875
+ "backgroundColor": "transparent",
876
+ "borderRadius": 4,
877
+ "borderWidth": 0,
878
+ "flexDirection": "row",
879
+ "justifyContent": "center",
880
+ "padding": 12,
881
+ },
882
+ undefined,
883
+ ]
884
+ }
885
+ >
886
+ <Text
887
+ disabled={false}
888
+ ellipsizeMode="tail"
889
+ numberOfLines={1}
890
+ style={
891
+ Array [
892
+ Object {
893
+ "color": "#001f23",
894
+ "fontFamily": "BeVietnamPro-Regular",
895
+ "fontSize": 14,
896
+ "letterSpacing": 0.42,
897
+ "lineHeight": 22,
898
+ },
899
+ Array [
900
+ Object {
901
+ "color": "#795e90",
902
+ "flexShrink": 1,
903
+ "fontFamily": "BeVietnamPro-SemiBold",
904
+ "fontSize": 16,
905
+ "lineHeight": 24,
906
+ "textAlign": "center",
907
+ },
908
+ undefined,
909
+ ],
910
+ ]
911
+ }
912
+ themeFontSize="medium"
913
+ themeFontWeight="regular"
914
+ themeIntent="body"
915
+ themeTypeface="neutral"
916
+ themeVariant="text-secondary"
917
+ >
918
+ A button
919
+ </Text>
920
+ </View>
921
+ `;
922
+
923
+ exports[`Button renders correctly 11`] = `
924
+ <View
925
+ accessibilityState={
926
+ Object {
927
+ "disabled": true,
928
+ }
929
+ }
930
+ accessible={true}
931
+ focusable={true}
932
+ onClick={[Function]}
933
+ onResponderGrant={[Function]}
934
+ onResponderMove={[Function]}
935
+ onResponderRelease={[Function]}
936
+ onResponderTerminate={[Function]}
937
+ onResponderTerminationRequest={[Function]}
938
+ onStartShouldSetResponder={[Function]}
939
+ style={
940
+ Array [
941
+ Object {
942
+ "alignItems": "center",
943
+ "backgroundColor": "#ece8ef",
944
+ "borderRadius": 4,
945
+ "borderWidth": 0,
946
+ "flexDirection": "row",
947
+ "justifyContent": "center",
948
+ "padding": 12,
949
+ },
950
+ undefined,
951
+ ]
952
+ }
953
+ >
954
+ <View
955
+ collapsable={false}
956
+ style={
957
+ Array [
958
+ Object {
959
+ "alignItems": "center",
960
+ "flexDirection": "row",
961
+ "justifyContent": "center",
962
+ "paddingVertical": 2,
963
+ },
964
+ Object {},
965
+ ]
966
+ }
967
+ testID="undefined-loading-indicator"
968
+ >
969
+ <View
970
+ collapsable={false}
971
+ style={
972
+ Object {
973
+ "transform": Array [
974
+ Object {
975
+ "scale": 1,
976
+ },
977
+ ],
978
+ }
979
+ }
980
+ >
981
+ <View
982
+ collapsable={false}
983
+ size={12}
984
+ style={
985
+ Array [
986
+ Object {
987
+ "backgroundColor": "#795e90",
988
+ "borderRadius": 8,
989
+ "height": 12,
990
+ "marginBottom": 4,
991
+ "marginHorizontal": 8,
992
+ "marginTop": 4,
993
+ "width": 12,
994
+ },
995
+ Object {},
996
+ ]
997
+ }
998
+ themeVariant="text-secondary"
999
+ />
1000
+ </View>
1001
+ <View
1002
+ collapsable={false}
1003
+ style={
1004
+ Object {
1005
+ "transform": Array [
1006
+ Object {
1007
+ "scale": 1,
1008
+ },
1009
+ ],
1010
+ }
1011
+ }
1012
+ >
1013
+ <View
1014
+ collapsable={false}
1015
+ size={12}
1016
+ style={
1017
+ Array [
1018
+ Object {
1019
+ "backgroundColor": "#795e90",
1020
+ "borderRadius": 8,
1021
+ "height": 12,
1022
+ "marginBottom": 4,
1023
+ "marginHorizontal": 8,
1024
+ "marginTop": 4,
1025
+ "width": 12,
1026
+ },
1027
+ Object {},
1028
+ ]
1029
+ }
1030
+ themeVariant="text-secondary"
1031
+ />
1032
+ </View>
1033
+ <View
1034
+ collapsable={false}
1035
+ style={
1036
+ Object {
1037
+ "transform": Array [
1038
+ Object {
1039
+ "scale": 1,
1040
+ },
1041
+ ],
1042
+ }
1043
+ }
1044
+ >
1045
+ <View
1046
+ collapsable={false}
1047
+ size={12}
1048
+ style={
1049
+ Array [
1050
+ Object {
1051
+ "backgroundColor": "#795e90",
1052
+ "borderRadius": 8,
1053
+ "height": 12,
1054
+ "marginBottom": 4,
1055
+ "marginHorizontal": 8,
1056
+ "marginTop": 4,
1057
+ "width": 12,
1058
+ },
1059
+ Object {},
1060
+ ]
1061
+ }
1062
+ themeVariant="text-secondary"
1063
+ />
1064
+ </View>
1065
+ </View>
1066
+ </View>
1067
+ `;
1068
+
1069
+ exports[`Button renders correctly 12`] = `
1070
+ <View
1071
+ accessibilityState={
1072
+ Object {
1073
+ "disabled": true,
1074
+ }
1075
+ }
1076
+ accessible={true}
1077
+ focusable={true}
1078
+ onClick={[Function]}
1079
+ onResponderGrant={[Function]}
1080
+ onResponderMove={[Function]}
1081
+ onResponderRelease={[Function]}
1082
+ onResponderTerminate={[Function]}
1083
+ onResponderTerminationRequest={[Function]}
1084
+ onStartShouldSetResponder={[Function]}
1085
+ style={
1086
+ Array [
1087
+ Object {
1088
+ "alignItems": "center",
1089
+ "backgroundColor": "transparent",
1090
+ "borderRadius": 4,
1091
+ "borderWidth": 0,
1092
+ "flexDirection": "row",
1093
+ "justifyContent": "center",
1094
+ "padding": 12,
1095
+ },
1096
+ undefined,
1097
+ ]
1098
+ }
1099
+ >
1100
+ <Text
1101
+ disabled={true}
1102
+ ellipsizeMode="tail"
1103
+ numberOfLines={1}
1104
+ style={
1105
+ Array [
1106
+ Object {
1107
+ "color": "#001f23",
1108
+ "fontFamily": "BeVietnamPro-Regular",
1109
+ "fontSize": 14,
1110
+ "letterSpacing": 0.42,
1111
+ "lineHeight": 22,
1112
+ },
1113
+ Array [
1114
+ Object {
1115
+ "color": "#bfc1c5",
1116
+ "flexShrink": 1,
1117
+ "fontFamily": "BeVietnamPro-SemiBold",
1118
+ "fontSize": 16,
1119
+ "lineHeight": 24,
1120
+ "textAlign": "center",
1121
+ },
1122
+ undefined,
1123
+ ],
1124
+ ]
1125
+ }
1126
+ themeFontSize="medium"
1127
+ themeFontWeight="regular"
1128
+ themeIntent="body"
1129
+ themeTypeface="neutral"
1130
+ themeVariant="text-secondary"
1131
+ >
1132
+ A button
1133
+ </Text>
1134
+ </View>
1135
+ `;
1136
+
1137
+ exports[`Button renders correctly 13`] = `
1138
+ <View
1139
+ accessibilityState={
1140
+ Object {
1141
+ "disabled": false,
1142
+ }
1143
+ }
1144
+ accessible={true}
1145
+ focusable={true}
1146
+ onClick={[Function]}
1147
+ onResponderGrant={[Function]}
1148
+ onResponderMove={[Function]}
1149
+ onResponderRelease={[Function]}
1150
+ onResponderTerminate={[Function]}
1151
+ onResponderTerminationRequest={[Function]}
1152
+ onStartShouldSetResponder={[Function]}
1153
+ style={
1154
+ Array [
1155
+ Object {
1156
+ "alignItems": "center",
1157
+ "backgroundColor": "transparent",
1158
+ "borderRadius": 4,
1159
+ "borderWidth": 0,
1160
+ "flexDirection": "row",
1161
+ "justifyContent": "center",
1162
+ "padding": 12,
1163
+ },
1164
+ undefined,
1165
+ ]
1166
+ }
1167
+ >
1168
+ <Text
1169
+ disabled={false}
1170
+ ellipsizeMode="tail"
1171
+ numberOfLines={1}
1172
+ style={
1173
+ Array [
1174
+ Object {
1175
+ "color": "#001f23",
1176
+ "fontFamily": "BeVietnamPro-Regular",
1177
+ "fontSize": 14,
1178
+ "letterSpacing": 0.42,
1179
+ "lineHeight": 22,
1180
+ },
1181
+ Array [
1182
+ Object {
1183
+ "color": "#de350b",
1184
+ "flexShrink": 1,
1185
+ "fontFamily": "BeVietnamPro-SemiBold",
1186
+ "fontSize": 16,
1187
+ "lineHeight": 24,
1188
+ "textAlign": "center",
1189
+ },
1190
+ undefined,
1191
+ ],
1192
+ ]
1193
+ }
1194
+ themeFontSize="medium"
1195
+ themeFontWeight="regular"
1196
+ themeIntent="body"
1197
+ themeTypeface="neutral"
1198
+ themeVariant="text-danger"
1199
+ >
1200
+ A button
1201
+ </Text>
1202
+ </View>
1203
+ `;
1204
+
1205
+ exports[`Button renders correctly 14`] = `
1206
+ <View
1207
+ accessibilityState={
1208
+ Object {
1209
+ "disabled": true,
1210
+ }
1211
+ }
1212
+ accessible={true}
1213
+ focusable={true}
1214
+ onClick={[Function]}
1215
+ onResponderGrant={[Function]}
1216
+ onResponderMove={[Function]}
1217
+ onResponderRelease={[Function]}
1218
+ onResponderTerminate={[Function]}
1219
+ onResponderTerminationRequest={[Function]}
1220
+ onStartShouldSetResponder={[Function]}
1221
+ style={
1222
+ Array [
1223
+ Object {
1224
+ "alignItems": "center",
1225
+ "backgroundColor": "#ece8ef",
1226
+ "borderRadius": 4,
1227
+ "borderWidth": 0,
1228
+ "flexDirection": "row",
1229
+ "justifyContent": "center",
1230
+ "padding": 12,
1231
+ },
1232
+ undefined,
1233
+ ]
1234
+ }
1235
+ >
1236
+ <View
1237
+ collapsable={false}
1238
+ style={
1239
+ Array [
1240
+ Object {
1241
+ "alignItems": "center",
1242
+ "flexDirection": "row",
1243
+ "justifyContent": "center",
1244
+ "paddingVertical": 2,
1245
+ },
1246
+ Object {},
1247
+ ]
1248
+ }
1249
+ testID="undefined-loading-indicator"
1250
+ >
1251
+ <View
1252
+ collapsable={false}
1253
+ style={
1254
+ Object {
1255
+ "transform": Array [
1256
+ Object {
1257
+ "scale": 1,
1258
+ },
1259
+ ],
1260
+ }
1261
+ }
1262
+ >
1263
+ <View
1264
+ collapsable={false}
1265
+ size={12}
1266
+ style={
1267
+ Array [
1268
+ Object {
1269
+ "backgroundColor": "#de350b",
1270
+ "borderRadius": 8,
1271
+ "height": 12,
1272
+ "marginBottom": 4,
1273
+ "marginHorizontal": 8,
1274
+ "marginTop": 4,
1275
+ "width": 12,
1276
+ },
1277
+ Object {},
1278
+ ]
1279
+ }
1280
+ themeVariant="text-danger"
1281
+ />
1282
+ </View>
1283
+ <View
1284
+ collapsable={false}
1285
+ style={
1286
+ Object {
1287
+ "transform": Array [
1288
+ Object {
1289
+ "scale": 1,
1290
+ },
1291
+ ],
1292
+ }
1293
+ }
1294
+ >
1295
+ <View
1296
+ collapsable={false}
1297
+ size={12}
1298
+ style={
1299
+ Array [
1300
+ Object {
1301
+ "backgroundColor": "#de350b",
1302
+ "borderRadius": 8,
1303
+ "height": 12,
1304
+ "marginBottom": 4,
1305
+ "marginHorizontal": 8,
1306
+ "marginTop": 4,
1307
+ "width": 12,
1308
+ },
1309
+ Object {},
1310
+ ]
1311
+ }
1312
+ themeVariant="text-danger"
1313
+ />
1314
+ </View>
1315
+ <View
1316
+ collapsable={false}
1317
+ style={
1318
+ Object {
1319
+ "transform": Array [
1320
+ Object {
1321
+ "scale": 1,
1322
+ },
1323
+ ],
1324
+ }
1325
+ }
1326
+ >
1327
+ <View
1328
+ collapsable={false}
1329
+ size={12}
1330
+ style={
1331
+ Array [
1332
+ Object {
1333
+ "backgroundColor": "#de350b",
1334
+ "borderRadius": 8,
1335
+ "height": 12,
1336
+ "marginBottom": 4,
1337
+ "marginHorizontal": 8,
1338
+ "marginTop": 4,
1339
+ "width": 12,
1340
+ },
1341
+ Object {},
1342
+ ]
1343
+ }
1344
+ themeVariant="text-danger"
1345
+ />
1346
+ </View>
1347
+ </View>
1348
+ </View>
1349
+ `;
1350
+
1351
+ exports[`Button renders correctly 15`] = `
1352
+ <View
1353
+ accessibilityState={
1354
+ Object {
1355
+ "disabled": true,
1356
+ }
1357
+ }
1358
+ accessible={true}
1359
+ focusable={true}
1360
+ onClick={[Function]}
1361
+ onResponderGrant={[Function]}
1362
+ onResponderMove={[Function]}
1363
+ onResponderRelease={[Function]}
1364
+ onResponderTerminate={[Function]}
1365
+ onResponderTerminationRequest={[Function]}
1366
+ onStartShouldSetResponder={[Function]}
1367
+ style={
1368
+ Array [
1369
+ Object {
1370
+ "alignItems": "center",
1371
+ "backgroundColor": "transparent",
1372
+ "borderRadius": 4,
1373
+ "borderWidth": 0,
1374
+ "flexDirection": "row",
1375
+ "justifyContent": "center",
1376
+ "padding": 12,
1377
+ },
1378
+ undefined,
1379
+ ]
1380
+ }
1381
+ >
1382
+ <Text
1383
+ disabled={true}
1384
+ ellipsizeMode="tail"
1385
+ numberOfLines={1}
1386
+ style={
1387
+ Array [
1388
+ Object {
1389
+ "color": "#001f23",
1390
+ "fontFamily": "BeVietnamPro-Regular",
1391
+ "fontSize": 14,
1392
+ "letterSpacing": 0.42,
1393
+ "lineHeight": 22,
1394
+ },
1395
+ Array [
1396
+ Object {
1397
+ "color": "#bfc1c5",
1398
+ "flexShrink": 1,
1399
+ "fontFamily": "BeVietnamPro-SemiBold",
1400
+ "fontSize": 16,
1401
+ "lineHeight": 24,
1402
+ "textAlign": "center",
1403
+ },
1404
+ undefined,
1405
+ ],
1406
+ ]
1407
+ }
1408
+ themeFontSize="medium"
1409
+ themeFontWeight="regular"
1410
+ themeIntent="body"
1411
+ themeTypeface="neutral"
1412
+ themeVariant="text-danger"
1413
+ >
1414
+ A button
1415
+ </Text>
1416
+ </View>
1417
+ `;
1418
+
1419
+ exports[`Button renders loading icon 1`] = `
1420
+ <View
1421
+ accessibilityState={
1422
+ Object {
1423
+ "disabled": true,
1424
+ }
1425
+ }
1426
+ accessible={true}
1427
+ focusable={true}
1428
+ onClick={[Function]}
1429
+ onResponderGrant={[Function]}
1430
+ onResponderMove={[Function]}
1431
+ onResponderRelease={[Function]}
1432
+ onResponderTerminate={[Function]}
1433
+ onResponderTerminationRequest={[Function]}
1434
+ onStartShouldSetResponder={[Function]}
1435
+ style={
1436
+ Array [
1437
+ Object {
1438
+ "alignItems": "center",
1439
+ "alignSelf": "stretch",
1440
+ "backgroundColor": "#401960",
1441
+ "borderRadius": 32,
1442
+ "flexDirection": "row",
1443
+ "justifyContent": "center",
1444
+ "padding": 16,
1445
+ },
1446
+ undefined,
1447
+ ]
1448
+ }
1449
+ testID="button"
1450
+ >
1451
+ <View
1452
+ collapsable={false}
1453
+ style={
1454
+ Array [
1455
+ Object {
1456
+ "alignItems": "center",
1457
+ "flexDirection": "row",
1458
+ "justifyContent": "center",
1459
+ "paddingVertical": 2,
1460
+ },
1461
+ Object {},
1462
+ ]
1463
+ }
1464
+ testID="button-loading-indicator"
1465
+ >
1466
+ <View
1467
+ collapsable={false}
1468
+ style={
1469
+ Object {
1470
+ "transform": Array [
1471
+ Object {
1472
+ "scale": 1,
1473
+ },
1474
+ ],
1475
+ }
1476
+ }
1477
+ >
1478
+ <View
1479
+ collapsable={false}
1480
+ size={12}
1481
+ style={
1482
+ Array [
1483
+ Object {
1484
+ "backgroundColor": "#ffffff",
1485
+ "borderRadius": 8,
1486
+ "height": 12,
1487
+ "marginBottom": 4,
1488
+ "marginHorizontal": 8,
1489
+ "marginTop": 4,
1490
+ "width": 12,
1491
+ },
1492
+ Object {},
1493
+ ]
1494
+ }
1495
+ themeVariant="filled-primary"
1496
+ />
1497
+ </View>
1498
+ <View
1499
+ collapsable={false}
1500
+ style={
1501
+ Object {
1502
+ "transform": Array [
1503
+ Object {
1504
+ "scale": 1,
1505
+ },
1506
+ ],
1507
+ }
1508
+ }
1509
+ >
1510
+ <View
1511
+ collapsable={false}
1512
+ size={12}
1513
+ style={
1514
+ Array [
1515
+ Object {
1516
+ "backgroundColor": "#ffffff",
1517
+ "borderRadius": 8,
1518
+ "height": 12,
1519
+ "marginBottom": 4,
1520
+ "marginHorizontal": 8,
1521
+ "marginTop": 4,
1522
+ "width": 12,
1523
+ },
1524
+ Object {},
1525
+ ]
1526
+ }
1527
+ themeVariant="filled-primary"
1528
+ />
1529
+ </View>
1530
+ <View
1531
+ collapsable={false}
1532
+ style={
1533
+ Object {
1534
+ "transform": Array [
1535
+ Object {
1536
+ "scale": 1,
1537
+ },
1538
+ ],
1539
+ }
1540
+ }
1541
+ >
1542
+ <View
1543
+ collapsable={false}
1544
+ size={12}
1545
+ style={
1546
+ Array [
1547
+ Object {
1548
+ "backgroundColor": "#ffffff",
1549
+ "borderRadius": 8,
1550
+ "height": 12,
1551
+ "marginBottom": 4,
1552
+ "marginHorizontal": 8,
1553
+ "marginTop": 4,
1554
+ "width": 12,
1555
+ },
1556
+ Object {},
1557
+ ]
1558
+ }
1559
+ themeVariant="filled-primary"
1560
+ />
1561
+ </View>
1562
+ </View>
1563
+ </View>
1564
+ `;