@hero-design/rn 8.45.0-test.0 → 8.45.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.
Files changed (37) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +12 -2
  3. package/es/index.js +731 -584
  4. package/lib/index.js +731 -584
  5. package/package.json +1 -1
  6. package/src/components/Accordion/index.tsx +1 -1
  7. package/src/components/Avatar/AvatarStack/StyledAvatarStack.tsx +63 -9
  8. package/src/components/Avatar/AvatarStack/__tests__/StyledAvatarStack.spec.tsx +71 -9
  9. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +271 -2
  10. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +2156 -7
  11. package/src/components/Avatar/AvatarStack/__tests__/index.spec.tsx +140 -6
  12. package/src/components/Avatar/AvatarStack/index.tsx +94 -9
  13. package/src/components/Carousel/index.tsx +18 -11
  14. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +102 -57
  15. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +34 -19
  16. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +34 -19
  17. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +34 -19
  18. package/src/components/RichTextEditor/RichTextEditor.tsx +76 -38
  19. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +126 -102
  20. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +235 -146
  21. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +201 -127
  22. package/src/components/TextInput/StyledTextInput.tsx +8 -31
  23. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +0 -44
  24. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +21 -638
  25. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +1126 -833
  26. package/src/components/TextInput/__tests__/index.spec.tsx +2 -2
  27. package/src/components/TextInput/index.tsx +113 -57
  28. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +68 -38
  29. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +68 -38
  30. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +2 -2
  31. package/src/theme/components/textInput.ts +2 -2
  32. package/types/components/Accordion/index.d.ts +1 -1
  33. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +13 -0
  34. package/types/components/Avatar/AvatarStack/index.d.ts +14 -2
  35. package/types/components/Avatar/index.d.ts +1 -1
  36. package/types/components/TextInput/StyledTextInput.d.ts +4 -24
  37. package/types/components/TextInput/index.d.ts +1 -0
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`AvatarStack renders correctly by default 1`] = `
3
+ exports[`AvatarStack allow rendering custom surplus 1`] = `
4
4
  <View
5
5
  style={
6
6
  {
@@ -14,14 +14,15 @@ exports[`AvatarStack renders correctly by default 1`] = `
14
14
  {
15
15
  "flexDirection": "row",
16
16
  "height": 32,
17
- "width": 121.6,
17
+ "width": 144,
18
18
  },
19
19
  undefined,
20
20
  ]
21
21
  }
22
- testID="group-avatar"
23
22
  themeAvatarCount={5}
23
+ themeHasSurplus={true}
24
24
  themeSize="small"
25
+ themeVariant="horizontal"
25
26
  >
26
27
  <View
27
28
  accessibilityState={
@@ -60,6 +61,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
60
61
  "opacity": 1,
61
62
  "overflow": "hidden",
62
63
  "position": "absolute",
64
+ "top": undefined,
63
65
  "width": 32,
64
66
  }
65
67
  }
@@ -149,6 +151,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
149
151
  "opacity": 1,
150
152
  "overflow": "hidden",
151
153
  "position": "absolute",
154
+ "top": undefined,
152
155
  "width": 32,
153
156
  }
154
157
  }
@@ -238,6 +241,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
238
241
  "opacity": 1,
239
242
  "overflow": "hidden",
240
243
  "position": "absolute",
244
+ "top": undefined,
241
245
  "width": 32,
242
246
  }
243
247
  }
@@ -327,6 +331,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
327
331
  "opacity": 1,
328
332
  "overflow": "hidden",
329
333
  "position": "absolute",
334
+ "top": undefined,
330
335
  "width": 32,
331
336
  }
332
337
  }
@@ -416,6 +421,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
416
421
  "opacity": 1,
417
422
  "overflow": "hidden",
418
423
  "position": "absolute",
424
+ "top": undefined,
419
425
  "width": 32,
420
426
  }
421
427
  }
@@ -468,6 +474,53 @@ exports[`AvatarStack renders correctly by default 1`] = `
468
474
  </Text>
469
475
  </View>
470
476
  </View>
477
+ <View
478
+ style={
479
+ [
480
+ {},
481
+ [
482
+ {
483
+ "borderRadius": 999,
484
+ "height": 32,
485
+ "left": 112,
486
+ "overflow": "hidden",
487
+ "position": "absolute",
488
+ "top": undefined,
489
+ "width": 32,
490
+ },
491
+ {
492
+ "backgroundColor": "#40575a",
493
+ },
494
+ ],
495
+ ]
496
+ }
497
+ testID="surplus-container"
498
+ themeIndex={5}
499
+ themeSize="small"
500
+ themeVariant="horizontal"
501
+ >
502
+ <Text
503
+ allowFontScaling={false}
504
+ style={
505
+ [
506
+ {
507
+ "color": "#001f23",
508
+ "fontFamily": "BeVietnamPro-Regular",
509
+ "fontSize": 16,
510
+ "letterSpacing": 0.48,
511
+ "lineHeight": 24,
512
+ },
513
+ undefined,
514
+ ]
515
+ }
516
+ themeIntent="body"
517
+ themeTypeface="neutral"
518
+ themeVariant="regular"
519
+ >
520
+ Custom surplus
521
+ 20
522
+ </Text>
523
+ </View>
471
524
  </View>
472
525
  <View
473
526
  pointerEvents="box-none"
@@ -492,7 +545,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
492
545
  </View>
493
546
  `;
494
547
 
495
- exports[`AvatarStack renders correctly with custom props 1`] = `
548
+ exports[`AvatarStack does not render surplus when max is equal or larger than the number of avatars 1`] = `
496
549
  <View
497
550
  style={
498
551
  {
@@ -505,15 +558,2106 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
505
558
  [
506
559
  {
507
560
  "flexDirection": "row",
508
- "height": 40,
509
- "width": 123.99999999999999,
561
+ "height": 32,
562
+ "width": 99.19999999999999,
510
563
  },
511
564
  undefined,
512
565
  ]
513
566
  }
514
- testID="group-avatar"
515
567
  themeAvatarCount={4}
568
+ themeHasSurplus={false}
569
+ themeSize="small"
570
+ themeVariant="horizontal"
571
+ >
572
+ <View
573
+ accessibilityState={
574
+ {
575
+ "busy": undefined,
576
+ "checked": undefined,
577
+ "disabled": true,
578
+ "expanded": undefined,
579
+ "selected": undefined,
580
+ }
581
+ }
582
+ accessibilityValue={
583
+ {
584
+ "max": undefined,
585
+ "min": undefined,
586
+ "now": undefined,
587
+ "text": undefined,
588
+ }
589
+ }
590
+ accessible={true}
591
+ collapsable={false}
592
+ focusable={false}
593
+ onClick={[Function]}
594
+ onResponderGrant={[Function]}
595
+ onResponderMove={[Function]}
596
+ onResponderRelease={[Function]}
597
+ onResponderTerminate={[Function]}
598
+ onResponderTerminationRequest={[Function]}
599
+ onStartShouldSetResponder={[Function]}
600
+ style={
601
+ {
602
+ "backgroundColor": "#001f23",
603
+ "borderRadius": 999,
604
+ "height": 32,
605
+ "left": 0,
606
+ "opacity": 1,
607
+ "overflow": "hidden",
608
+ "position": "absolute",
609
+ "top": undefined,
610
+ "width": 32,
611
+ }
612
+ }
613
+ >
614
+ <View
615
+ style={
616
+ [
617
+ {
618
+ "alignItems": "center",
619
+ "height": "100%",
620
+ "justifyContent": "center",
621
+ "width": "100%",
622
+ },
623
+ undefined,
624
+ ]
625
+ }
626
+ >
627
+ <Text
628
+ allowFontScaling={false}
629
+ style={
630
+ [
631
+ {
632
+ "color": "#001f23",
633
+ "fontFamily": "BeVietnamPro-Regular",
634
+ "fontSize": 14,
635
+ "letterSpacing": 0.42,
636
+ "lineHeight": 22,
637
+ },
638
+ [
639
+ {
640
+ "color": "#ffffff",
641
+ "fontFamily": "BeVietnamPro-Regular",
642
+ "fontSize": 16,
643
+ "lineHeight": 0,
644
+ "overflow": "hidden",
645
+ "textAlign": "center",
646
+ "textAlignVertical": "center",
647
+ },
648
+ undefined,
649
+ ],
650
+ ]
651
+ }
652
+ themeFontSize="medium"
653
+ themeFontWeight="regular"
654
+ themeIntent="body"
655
+ themeSize="small"
656
+ themeTypeface="neutral"
657
+ >
658
+ TT
659
+ </Text>
660
+ </View>
661
+ </View>
662
+ <View
663
+ accessibilityState={
664
+ {
665
+ "busy": undefined,
666
+ "checked": undefined,
667
+ "disabled": true,
668
+ "expanded": undefined,
669
+ "selected": undefined,
670
+ }
671
+ }
672
+ accessibilityValue={
673
+ {
674
+ "max": undefined,
675
+ "min": undefined,
676
+ "now": undefined,
677
+ "text": undefined,
678
+ }
679
+ }
680
+ accessible={true}
681
+ collapsable={false}
682
+ focusable={false}
683
+ onClick={[Function]}
684
+ onResponderGrant={[Function]}
685
+ onResponderMove={[Function]}
686
+ onResponderRelease={[Function]}
687
+ onResponderTerminate={[Function]}
688
+ onResponderTerminationRequest={[Function]}
689
+ onStartShouldSetResponder={[Function]}
690
+ style={
691
+ {
692
+ "backgroundColor": "#0d2a2e",
693
+ "borderRadius": 999,
694
+ "height": 32,
695
+ "left": 22.4,
696
+ "opacity": 1,
697
+ "overflow": "hidden",
698
+ "position": "absolute",
699
+ "top": undefined,
700
+ "width": 32,
701
+ }
702
+ }
703
+ >
704
+ <View
705
+ style={
706
+ [
707
+ {
708
+ "alignItems": "center",
709
+ "height": "100%",
710
+ "justifyContent": "center",
711
+ "width": "100%",
712
+ },
713
+ undefined,
714
+ ]
715
+ }
716
+ >
717
+ <Text
718
+ allowFontScaling={false}
719
+ style={
720
+ [
721
+ {
722
+ "color": "#001f23",
723
+ "fontFamily": "BeVietnamPro-Regular",
724
+ "fontSize": 14,
725
+ "letterSpacing": 0.42,
726
+ "lineHeight": 22,
727
+ },
728
+ [
729
+ {
730
+ "color": "#ffffff",
731
+ "fontFamily": "BeVietnamPro-Regular",
732
+ "fontSize": 16,
733
+ "lineHeight": 0,
734
+ "overflow": "hidden",
735
+ "textAlign": "center",
736
+ "textAlignVertical": "center",
737
+ },
738
+ undefined,
739
+ ],
740
+ ]
741
+ }
742
+ themeFontSize="medium"
743
+ themeFontWeight="regular"
744
+ themeIntent="body"
745
+ themeSize="small"
746
+ themeTypeface="neutral"
747
+ >
748
+ SS
749
+ </Text>
750
+ </View>
751
+ </View>
752
+ <View
753
+ accessibilityState={
754
+ {
755
+ "busy": undefined,
756
+ "checked": undefined,
757
+ "disabled": true,
758
+ "expanded": undefined,
759
+ "selected": undefined,
760
+ }
761
+ }
762
+ accessibilityValue={
763
+ {
764
+ "max": undefined,
765
+ "min": undefined,
766
+ "now": undefined,
767
+ "text": undefined,
768
+ }
769
+ }
770
+ accessible={true}
771
+ collapsable={false}
772
+ focusable={false}
773
+ onClick={[Function]}
774
+ onResponderGrant={[Function]}
775
+ onResponderMove={[Function]}
776
+ onResponderRelease={[Function]}
777
+ onResponderTerminate={[Function]}
778
+ onResponderTerminationRequest={[Function]}
779
+ onStartShouldSetResponder={[Function]}
780
+ style={
781
+ {
782
+ "backgroundColor": "#193539",
783
+ "borderRadius": 999,
784
+ "height": 32,
785
+ "left": 44.8,
786
+ "opacity": 1,
787
+ "overflow": "hidden",
788
+ "position": "absolute",
789
+ "top": undefined,
790
+ "width": 32,
791
+ }
792
+ }
793
+ >
794
+ <View
795
+ style={
796
+ [
797
+ {
798
+ "alignItems": "center",
799
+ "height": "100%",
800
+ "justifyContent": "center",
801
+ "width": "100%",
802
+ },
803
+ undefined,
804
+ ]
805
+ }
806
+ >
807
+ <Text
808
+ allowFontScaling={false}
809
+ style={
810
+ [
811
+ {
812
+ "color": "#001f23",
813
+ "fontFamily": "BeVietnamPro-Regular",
814
+ "fontSize": 14,
815
+ "letterSpacing": 0.42,
816
+ "lineHeight": 22,
817
+ },
818
+ [
819
+ {
820
+ "color": "#ffffff",
821
+ "fontFamily": "BeVietnamPro-Regular",
822
+ "fontSize": 16,
823
+ "lineHeight": 0,
824
+ "overflow": "hidden",
825
+ "textAlign": "center",
826
+ "textAlignVertical": "center",
827
+ },
828
+ undefined,
829
+ ],
830
+ ]
831
+ }
832
+ themeFontSize="medium"
833
+ themeFontWeight="regular"
834
+ themeIntent="body"
835
+ themeSize="small"
836
+ themeTypeface="neutral"
837
+ >
838
+ AA
839
+ </Text>
840
+ </View>
841
+ </View>
842
+ <View
843
+ accessibilityState={
844
+ {
845
+ "busy": undefined,
846
+ "checked": undefined,
847
+ "disabled": true,
848
+ "expanded": undefined,
849
+ "selected": undefined,
850
+ }
851
+ }
852
+ accessibilityValue={
853
+ {
854
+ "max": undefined,
855
+ "min": undefined,
856
+ "now": undefined,
857
+ "text": undefined,
858
+ }
859
+ }
860
+ accessible={true}
861
+ collapsable={false}
862
+ focusable={false}
863
+ onClick={[Function]}
864
+ onResponderGrant={[Function]}
865
+ onResponderMove={[Function]}
866
+ onResponderRelease={[Function]}
867
+ onResponderTerminate={[Function]}
868
+ onResponderTerminationRequest={[Function]}
869
+ onStartShouldSetResponder={[Function]}
870
+ style={
871
+ {
872
+ "backgroundColor": "#264144",
873
+ "borderRadius": 999,
874
+ "height": 32,
875
+ "left": 67.19999999999999,
876
+ "opacity": 1,
877
+ "overflow": "hidden",
878
+ "position": "absolute",
879
+ "top": undefined,
880
+ "width": 32,
881
+ }
882
+ }
883
+ >
884
+ <View
885
+ style={
886
+ [
887
+ {
888
+ "alignItems": "center",
889
+ "height": "100%",
890
+ "justifyContent": "center",
891
+ "width": "100%",
892
+ },
893
+ undefined,
894
+ ]
895
+ }
896
+ >
897
+ <Text
898
+ allowFontScaling={false}
899
+ style={
900
+ [
901
+ {
902
+ "color": "#001f23",
903
+ "fontFamily": "BeVietnamPro-Regular",
904
+ "fontSize": 14,
905
+ "letterSpacing": 0.42,
906
+ "lineHeight": 22,
907
+ },
908
+ [
909
+ {
910
+ "color": "#ffffff",
911
+ "fontFamily": "BeVietnamPro-Regular",
912
+ "fontSize": 16,
913
+ "lineHeight": 0,
914
+ "overflow": "hidden",
915
+ "textAlign": "center",
916
+ "textAlignVertical": "center",
917
+ },
918
+ undefined,
919
+ ],
920
+ ]
921
+ }
922
+ themeFontSize="medium"
923
+ themeFontWeight="regular"
924
+ themeIntent="body"
925
+ themeSize="small"
926
+ themeTypeface="neutral"
927
+ >
928
+ OO
929
+ </Text>
930
+ </View>
931
+ </View>
932
+ </View>
933
+ <View
934
+ pointerEvents="box-none"
935
+ position="bottom"
936
+ style={
937
+ [
938
+ {
939
+ "bottom": 0,
940
+ "elevation": 9999,
941
+ "flexDirection": "column-reverse",
942
+ "left": 0,
943
+ "paddingHorizontal": 24,
944
+ "paddingVertical": 16,
945
+ "position": "absolute",
946
+ "right": 0,
947
+ "top": 0,
948
+ },
949
+ undefined,
950
+ ]
951
+ }
952
+ />
953
+ </View>
954
+ `;
955
+
956
+ exports[`AvatarStack does not render surplus when total is equal to the number of avatars 1`] = `
957
+ <View
958
+ style={
959
+ {
960
+ "flex": 1,
961
+ }
962
+ }
963
+ >
964
+ <View
965
+ style={
966
+ [
967
+ {
968
+ "flexDirection": "row",
969
+ "height": 32,
970
+ "width": 99.19999999999999,
971
+ },
972
+ undefined,
973
+ ]
974
+ }
975
+ themeAvatarCount={4}
976
+ themeHasSurplus={false}
977
+ themeSize="small"
978
+ themeVariant="horizontal"
979
+ >
980
+ <View
981
+ accessibilityState={
982
+ {
983
+ "busy": undefined,
984
+ "checked": undefined,
985
+ "disabled": true,
986
+ "expanded": undefined,
987
+ "selected": undefined,
988
+ }
989
+ }
990
+ accessibilityValue={
991
+ {
992
+ "max": undefined,
993
+ "min": undefined,
994
+ "now": undefined,
995
+ "text": undefined,
996
+ }
997
+ }
998
+ accessible={true}
999
+ collapsable={false}
1000
+ focusable={false}
1001
+ onClick={[Function]}
1002
+ onResponderGrant={[Function]}
1003
+ onResponderMove={[Function]}
1004
+ onResponderRelease={[Function]}
1005
+ onResponderTerminate={[Function]}
1006
+ onResponderTerminationRequest={[Function]}
1007
+ onStartShouldSetResponder={[Function]}
1008
+ style={
1009
+ {
1010
+ "backgroundColor": "#001f23",
1011
+ "borderRadius": 999,
1012
+ "height": 32,
1013
+ "left": 0,
1014
+ "opacity": 1,
1015
+ "overflow": "hidden",
1016
+ "position": "absolute",
1017
+ "top": undefined,
1018
+ "width": 32,
1019
+ }
1020
+ }
1021
+ >
1022
+ <View
1023
+ style={
1024
+ [
1025
+ {
1026
+ "alignItems": "center",
1027
+ "height": "100%",
1028
+ "justifyContent": "center",
1029
+ "width": "100%",
1030
+ },
1031
+ undefined,
1032
+ ]
1033
+ }
1034
+ >
1035
+ <Text
1036
+ allowFontScaling={false}
1037
+ style={
1038
+ [
1039
+ {
1040
+ "color": "#001f23",
1041
+ "fontFamily": "BeVietnamPro-Regular",
1042
+ "fontSize": 14,
1043
+ "letterSpacing": 0.42,
1044
+ "lineHeight": 22,
1045
+ },
1046
+ [
1047
+ {
1048
+ "color": "#ffffff",
1049
+ "fontFamily": "BeVietnamPro-Regular",
1050
+ "fontSize": 16,
1051
+ "lineHeight": 0,
1052
+ "overflow": "hidden",
1053
+ "textAlign": "center",
1054
+ "textAlignVertical": "center",
1055
+ },
1056
+ undefined,
1057
+ ],
1058
+ ]
1059
+ }
1060
+ themeFontSize="medium"
1061
+ themeFontWeight="regular"
1062
+ themeIntent="body"
1063
+ themeSize="small"
1064
+ themeTypeface="neutral"
1065
+ >
1066
+ TT
1067
+ </Text>
1068
+ </View>
1069
+ </View>
1070
+ <View
1071
+ accessibilityState={
1072
+ {
1073
+ "busy": undefined,
1074
+ "checked": undefined,
1075
+ "disabled": true,
1076
+ "expanded": undefined,
1077
+ "selected": undefined,
1078
+ }
1079
+ }
1080
+ accessibilityValue={
1081
+ {
1082
+ "max": undefined,
1083
+ "min": undefined,
1084
+ "now": undefined,
1085
+ "text": undefined,
1086
+ }
1087
+ }
1088
+ accessible={true}
1089
+ collapsable={false}
1090
+ focusable={false}
1091
+ onClick={[Function]}
1092
+ onResponderGrant={[Function]}
1093
+ onResponderMove={[Function]}
1094
+ onResponderRelease={[Function]}
1095
+ onResponderTerminate={[Function]}
1096
+ onResponderTerminationRequest={[Function]}
1097
+ onStartShouldSetResponder={[Function]}
1098
+ style={
1099
+ {
1100
+ "backgroundColor": "#0d2a2e",
1101
+ "borderRadius": 999,
1102
+ "height": 32,
1103
+ "left": 22.4,
1104
+ "opacity": 1,
1105
+ "overflow": "hidden",
1106
+ "position": "absolute",
1107
+ "top": undefined,
1108
+ "width": 32,
1109
+ }
1110
+ }
1111
+ >
1112
+ <View
1113
+ style={
1114
+ [
1115
+ {
1116
+ "alignItems": "center",
1117
+ "height": "100%",
1118
+ "justifyContent": "center",
1119
+ "width": "100%",
1120
+ },
1121
+ undefined,
1122
+ ]
1123
+ }
1124
+ >
1125
+ <Text
1126
+ allowFontScaling={false}
1127
+ style={
1128
+ [
1129
+ {
1130
+ "color": "#001f23",
1131
+ "fontFamily": "BeVietnamPro-Regular",
1132
+ "fontSize": 14,
1133
+ "letterSpacing": 0.42,
1134
+ "lineHeight": 22,
1135
+ },
1136
+ [
1137
+ {
1138
+ "color": "#ffffff",
1139
+ "fontFamily": "BeVietnamPro-Regular",
1140
+ "fontSize": 16,
1141
+ "lineHeight": 0,
1142
+ "overflow": "hidden",
1143
+ "textAlign": "center",
1144
+ "textAlignVertical": "center",
1145
+ },
1146
+ undefined,
1147
+ ],
1148
+ ]
1149
+ }
1150
+ themeFontSize="medium"
1151
+ themeFontWeight="regular"
1152
+ themeIntent="body"
1153
+ themeSize="small"
1154
+ themeTypeface="neutral"
1155
+ >
1156
+ SS
1157
+ </Text>
1158
+ </View>
1159
+ </View>
1160
+ <View
1161
+ accessibilityState={
1162
+ {
1163
+ "busy": undefined,
1164
+ "checked": undefined,
1165
+ "disabled": true,
1166
+ "expanded": undefined,
1167
+ "selected": undefined,
1168
+ }
1169
+ }
1170
+ accessibilityValue={
1171
+ {
1172
+ "max": undefined,
1173
+ "min": undefined,
1174
+ "now": undefined,
1175
+ "text": undefined,
1176
+ }
1177
+ }
1178
+ accessible={true}
1179
+ collapsable={false}
1180
+ focusable={false}
1181
+ onClick={[Function]}
1182
+ onResponderGrant={[Function]}
1183
+ onResponderMove={[Function]}
1184
+ onResponderRelease={[Function]}
1185
+ onResponderTerminate={[Function]}
1186
+ onResponderTerminationRequest={[Function]}
1187
+ onStartShouldSetResponder={[Function]}
1188
+ style={
1189
+ {
1190
+ "backgroundColor": "#193539",
1191
+ "borderRadius": 999,
1192
+ "height": 32,
1193
+ "left": 44.8,
1194
+ "opacity": 1,
1195
+ "overflow": "hidden",
1196
+ "position": "absolute",
1197
+ "top": undefined,
1198
+ "width": 32,
1199
+ }
1200
+ }
1201
+ >
1202
+ <View
1203
+ style={
1204
+ [
1205
+ {
1206
+ "alignItems": "center",
1207
+ "height": "100%",
1208
+ "justifyContent": "center",
1209
+ "width": "100%",
1210
+ },
1211
+ undefined,
1212
+ ]
1213
+ }
1214
+ >
1215
+ <Text
1216
+ allowFontScaling={false}
1217
+ style={
1218
+ [
1219
+ {
1220
+ "color": "#001f23",
1221
+ "fontFamily": "BeVietnamPro-Regular",
1222
+ "fontSize": 14,
1223
+ "letterSpacing": 0.42,
1224
+ "lineHeight": 22,
1225
+ },
1226
+ [
1227
+ {
1228
+ "color": "#ffffff",
1229
+ "fontFamily": "BeVietnamPro-Regular",
1230
+ "fontSize": 16,
1231
+ "lineHeight": 0,
1232
+ "overflow": "hidden",
1233
+ "textAlign": "center",
1234
+ "textAlignVertical": "center",
1235
+ },
1236
+ undefined,
1237
+ ],
1238
+ ]
1239
+ }
1240
+ themeFontSize="medium"
1241
+ themeFontWeight="regular"
1242
+ themeIntent="body"
1243
+ themeSize="small"
1244
+ themeTypeface="neutral"
1245
+ >
1246
+ AA
1247
+ </Text>
1248
+ </View>
1249
+ </View>
1250
+ <View
1251
+ accessibilityState={
1252
+ {
1253
+ "busy": undefined,
1254
+ "checked": undefined,
1255
+ "disabled": true,
1256
+ "expanded": undefined,
1257
+ "selected": undefined,
1258
+ }
1259
+ }
1260
+ accessibilityValue={
1261
+ {
1262
+ "max": undefined,
1263
+ "min": undefined,
1264
+ "now": undefined,
1265
+ "text": undefined,
1266
+ }
1267
+ }
1268
+ accessible={true}
1269
+ collapsable={false}
1270
+ focusable={false}
1271
+ onClick={[Function]}
1272
+ onResponderGrant={[Function]}
1273
+ onResponderMove={[Function]}
1274
+ onResponderRelease={[Function]}
1275
+ onResponderTerminate={[Function]}
1276
+ onResponderTerminationRequest={[Function]}
1277
+ onStartShouldSetResponder={[Function]}
1278
+ style={
1279
+ {
1280
+ "backgroundColor": "#264144",
1281
+ "borderRadius": 999,
1282
+ "height": 32,
1283
+ "left": 67.19999999999999,
1284
+ "opacity": 1,
1285
+ "overflow": "hidden",
1286
+ "position": "absolute",
1287
+ "top": undefined,
1288
+ "width": 32,
1289
+ }
1290
+ }
1291
+ >
1292
+ <View
1293
+ style={
1294
+ [
1295
+ {
1296
+ "alignItems": "center",
1297
+ "height": "100%",
1298
+ "justifyContent": "center",
1299
+ "width": "100%",
1300
+ },
1301
+ undefined,
1302
+ ]
1303
+ }
1304
+ >
1305
+ <Text
1306
+ allowFontScaling={false}
1307
+ style={
1308
+ [
1309
+ {
1310
+ "color": "#001f23",
1311
+ "fontFamily": "BeVietnamPro-Regular",
1312
+ "fontSize": 14,
1313
+ "letterSpacing": 0.42,
1314
+ "lineHeight": 22,
1315
+ },
1316
+ [
1317
+ {
1318
+ "color": "#ffffff",
1319
+ "fontFamily": "BeVietnamPro-Regular",
1320
+ "fontSize": 16,
1321
+ "lineHeight": 0,
1322
+ "overflow": "hidden",
1323
+ "textAlign": "center",
1324
+ "textAlignVertical": "center",
1325
+ },
1326
+ undefined,
1327
+ ],
1328
+ ]
1329
+ }
1330
+ themeFontSize="medium"
1331
+ themeFontWeight="regular"
1332
+ themeIntent="body"
1333
+ themeSize="small"
1334
+ themeTypeface="neutral"
1335
+ >
1336
+ OO
1337
+ </Text>
1338
+ </View>
1339
+ </View>
1340
+ </View>
1341
+ <View
1342
+ pointerEvents="box-none"
1343
+ position="bottom"
1344
+ style={
1345
+ [
1346
+ {
1347
+ "bottom": 0,
1348
+ "elevation": 9999,
1349
+ "flexDirection": "column-reverse",
1350
+ "left": 0,
1351
+ "paddingHorizontal": 24,
1352
+ "paddingVertical": 16,
1353
+ "position": "absolute",
1354
+ "right": 0,
1355
+ "top": 0,
1356
+ },
1357
+ undefined,
1358
+ ]
1359
+ }
1360
+ />
1361
+ </View>
1362
+ `;
1363
+
1364
+ exports[`AvatarStack render correctly surplus when both max and total are set 1`] = `
1365
+ <View
1366
+ style={
1367
+ {
1368
+ "flex": 1,
1369
+ }
1370
+ }
1371
+ >
1372
+ <View
1373
+ style={
1374
+ [
1375
+ {
1376
+ "flexDirection": "row",
1377
+ "height": 32,
1378
+ "width": 76.8,
1379
+ },
1380
+ undefined,
1381
+ ]
1382
+ }
1383
+ themeAvatarCount={2}
1384
+ themeHasSurplus={true}
1385
+ themeSize="small"
1386
+ themeVariant="horizontal"
1387
+ >
1388
+ <View
1389
+ accessibilityState={
1390
+ {
1391
+ "busy": undefined,
1392
+ "checked": undefined,
1393
+ "disabled": true,
1394
+ "expanded": undefined,
1395
+ "selected": undefined,
1396
+ }
1397
+ }
1398
+ accessibilityValue={
1399
+ {
1400
+ "max": undefined,
1401
+ "min": undefined,
1402
+ "now": undefined,
1403
+ "text": undefined,
1404
+ }
1405
+ }
1406
+ accessible={true}
1407
+ collapsable={false}
1408
+ focusable={false}
1409
+ onClick={[Function]}
1410
+ onResponderGrant={[Function]}
1411
+ onResponderMove={[Function]}
1412
+ onResponderRelease={[Function]}
1413
+ onResponderTerminate={[Function]}
1414
+ onResponderTerminationRequest={[Function]}
1415
+ onStartShouldSetResponder={[Function]}
1416
+ style={
1417
+ {
1418
+ "backgroundColor": "#001f23",
1419
+ "borderRadius": 999,
1420
+ "height": 32,
1421
+ "left": 0,
1422
+ "opacity": 1,
1423
+ "overflow": "hidden",
1424
+ "position": "absolute",
1425
+ "top": undefined,
1426
+ "width": 32,
1427
+ }
1428
+ }
1429
+ >
1430
+ <View
1431
+ style={
1432
+ [
1433
+ {
1434
+ "alignItems": "center",
1435
+ "height": "100%",
1436
+ "justifyContent": "center",
1437
+ "width": "100%",
1438
+ },
1439
+ undefined,
1440
+ ]
1441
+ }
1442
+ >
1443
+ <Text
1444
+ allowFontScaling={false}
1445
+ style={
1446
+ [
1447
+ {
1448
+ "color": "#001f23",
1449
+ "fontFamily": "BeVietnamPro-Regular",
1450
+ "fontSize": 14,
1451
+ "letterSpacing": 0.42,
1452
+ "lineHeight": 22,
1453
+ },
1454
+ [
1455
+ {
1456
+ "color": "#ffffff",
1457
+ "fontFamily": "BeVietnamPro-Regular",
1458
+ "fontSize": 16,
1459
+ "lineHeight": 0,
1460
+ "overflow": "hidden",
1461
+ "textAlign": "center",
1462
+ "textAlignVertical": "center",
1463
+ },
1464
+ undefined,
1465
+ ],
1466
+ ]
1467
+ }
1468
+ themeFontSize="medium"
1469
+ themeFontWeight="regular"
1470
+ themeIntent="body"
1471
+ themeSize="small"
1472
+ themeTypeface="neutral"
1473
+ >
1474
+ TT
1475
+ </Text>
1476
+ </View>
1477
+ </View>
1478
+ <View
1479
+ accessibilityState={
1480
+ {
1481
+ "busy": undefined,
1482
+ "checked": undefined,
1483
+ "disabled": true,
1484
+ "expanded": undefined,
1485
+ "selected": undefined,
1486
+ }
1487
+ }
1488
+ accessibilityValue={
1489
+ {
1490
+ "max": undefined,
1491
+ "min": undefined,
1492
+ "now": undefined,
1493
+ "text": undefined,
1494
+ }
1495
+ }
1496
+ accessible={true}
1497
+ collapsable={false}
1498
+ focusable={false}
1499
+ onClick={[Function]}
1500
+ onResponderGrant={[Function]}
1501
+ onResponderMove={[Function]}
1502
+ onResponderRelease={[Function]}
1503
+ onResponderTerminate={[Function]}
1504
+ onResponderTerminationRequest={[Function]}
1505
+ onStartShouldSetResponder={[Function]}
1506
+ style={
1507
+ {
1508
+ "backgroundColor": "#0d2a2e",
1509
+ "borderRadius": 999,
1510
+ "height": 32,
1511
+ "left": 22.4,
1512
+ "opacity": 1,
1513
+ "overflow": "hidden",
1514
+ "position": "absolute",
1515
+ "top": undefined,
1516
+ "width": 32,
1517
+ }
1518
+ }
1519
+ >
1520
+ <View
1521
+ style={
1522
+ [
1523
+ {
1524
+ "alignItems": "center",
1525
+ "height": "100%",
1526
+ "justifyContent": "center",
1527
+ "width": "100%",
1528
+ },
1529
+ undefined,
1530
+ ]
1531
+ }
1532
+ >
1533
+ <Text
1534
+ allowFontScaling={false}
1535
+ style={
1536
+ [
1537
+ {
1538
+ "color": "#001f23",
1539
+ "fontFamily": "BeVietnamPro-Regular",
1540
+ "fontSize": 14,
1541
+ "letterSpacing": 0.42,
1542
+ "lineHeight": 22,
1543
+ },
1544
+ [
1545
+ {
1546
+ "color": "#ffffff",
1547
+ "fontFamily": "BeVietnamPro-Regular",
1548
+ "fontSize": 16,
1549
+ "lineHeight": 0,
1550
+ "overflow": "hidden",
1551
+ "textAlign": "center",
1552
+ "textAlignVertical": "center",
1553
+ },
1554
+ undefined,
1555
+ ],
1556
+ ]
1557
+ }
1558
+ themeFontSize="medium"
1559
+ themeFontWeight="regular"
1560
+ themeIntent="body"
1561
+ themeSize="small"
1562
+ themeTypeface="neutral"
1563
+ >
1564
+ SS
1565
+ </Text>
1566
+ </View>
1567
+ </View>
1568
+ <View
1569
+ style={
1570
+ [
1571
+ {},
1572
+ [
1573
+ {
1574
+ "borderRadius": 999,
1575
+ "height": 32,
1576
+ "left": 44.8,
1577
+ "overflow": "hidden",
1578
+ "position": "absolute",
1579
+ "top": undefined,
1580
+ "width": 32,
1581
+ },
1582
+ {
1583
+ "backgroundColor": "#193539",
1584
+ },
1585
+ ],
1586
+ ]
1587
+ }
1588
+ testID="surplus-container"
1589
+ themeIndex={2}
1590
+ themeSize="small"
1591
+ themeVariant="horizontal"
1592
+ >
1593
+ <Text
1594
+ allowFontScaling={false}
1595
+ style={
1596
+ [
1597
+ {
1598
+ "color": "#001f23",
1599
+ "fontFamily": "BeVietnamPro-Regular",
1600
+ "fontSize": 16,
1601
+ "letterSpacing": 0.48,
1602
+ "lineHeight": 24,
1603
+ },
1604
+ undefined,
1605
+ ]
1606
+ }
1607
+ themeIntent="body"
1608
+ themeTypeface="neutral"
1609
+ themeVariant="regular"
1610
+ >
1611
+ Custom surplus
1612
+ 23
1613
+ </Text>
1614
+ </View>
1615
+ </View>
1616
+ <View
1617
+ pointerEvents="box-none"
1618
+ position="bottom"
1619
+ style={
1620
+ [
1621
+ {
1622
+ "bottom": 0,
1623
+ "elevation": 9999,
1624
+ "flexDirection": "column-reverse",
1625
+ "left": 0,
1626
+ "paddingHorizontal": 24,
1627
+ "paddingVertical": 16,
1628
+ "position": "absolute",
1629
+ "right": 0,
1630
+ "top": 0,
1631
+ },
1632
+ undefined,
1633
+ ]
1634
+ }
1635
+ />
1636
+ </View>
1637
+ `;
1638
+
1639
+ exports[`AvatarStack renders correctly when variant is horizontal 1`] = `
1640
+ <View
1641
+ style={
1642
+ {
1643
+ "flex": 1,
1644
+ }
1645
+ }
1646
+ >
1647
+ <View
1648
+ style={
1649
+ [
1650
+ {
1651
+ "flexDirection": "row",
1652
+ "height": 32,
1653
+ "width": 121.6,
1654
+ },
1655
+ undefined,
1656
+ ]
1657
+ }
1658
+ testID="group-avatar"
1659
+ themeAvatarCount={5}
1660
+ themeHasSurplus={false}
1661
+ themeSize="small"
1662
+ themeVariant="horizontal"
1663
+ >
1664
+ <View
1665
+ accessibilityState={
1666
+ {
1667
+ "busy": undefined,
1668
+ "checked": undefined,
1669
+ "disabled": true,
1670
+ "expanded": undefined,
1671
+ "selected": undefined,
1672
+ }
1673
+ }
1674
+ accessibilityValue={
1675
+ {
1676
+ "max": undefined,
1677
+ "min": undefined,
1678
+ "now": undefined,
1679
+ "text": undefined,
1680
+ }
1681
+ }
1682
+ accessible={true}
1683
+ collapsable={false}
1684
+ focusable={false}
1685
+ onClick={[Function]}
1686
+ onResponderGrant={[Function]}
1687
+ onResponderMove={[Function]}
1688
+ onResponderRelease={[Function]}
1689
+ onResponderTerminate={[Function]}
1690
+ onResponderTerminationRequest={[Function]}
1691
+ onStartShouldSetResponder={[Function]}
1692
+ style={
1693
+ {
1694
+ "backgroundColor": "#001f23",
1695
+ "borderRadius": 999,
1696
+ "height": 32,
1697
+ "left": 0,
1698
+ "opacity": 1,
1699
+ "overflow": "hidden",
1700
+ "position": "absolute",
1701
+ "top": undefined,
1702
+ "width": 32,
1703
+ }
1704
+ }
1705
+ >
1706
+ <View
1707
+ style={
1708
+ [
1709
+ {
1710
+ "alignItems": "center",
1711
+ "height": "100%",
1712
+ "justifyContent": "center",
1713
+ "width": "100%",
1714
+ },
1715
+ undefined,
1716
+ ]
1717
+ }
1718
+ >
1719
+ <Text
1720
+ allowFontScaling={false}
1721
+ style={
1722
+ [
1723
+ {
1724
+ "color": "#001f23",
1725
+ "fontFamily": "BeVietnamPro-Regular",
1726
+ "fontSize": 14,
1727
+ "letterSpacing": 0.42,
1728
+ "lineHeight": 22,
1729
+ },
1730
+ [
1731
+ {
1732
+ "color": "#ffffff",
1733
+ "fontFamily": "BeVietnamPro-Regular",
1734
+ "fontSize": 16,
1735
+ "lineHeight": 0,
1736
+ "overflow": "hidden",
1737
+ "textAlign": "center",
1738
+ "textAlignVertical": "center",
1739
+ },
1740
+ undefined,
1741
+ ],
1742
+ ]
1743
+ }
1744
+ themeFontSize="medium"
1745
+ themeFontWeight="regular"
1746
+ themeIntent="body"
1747
+ themeSize="small"
1748
+ themeTypeface="neutral"
1749
+ >
1750
+ TT
1751
+ </Text>
1752
+ </View>
1753
+ </View>
1754
+ <View
1755
+ accessibilityState={
1756
+ {
1757
+ "busy": undefined,
1758
+ "checked": undefined,
1759
+ "disabled": true,
1760
+ "expanded": undefined,
1761
+ "selected": undefined,
1762
+ }
1763
+ }
1764
+ accessibilityValue={
1765
+ {
1766
+ "max": undefined,
1767
+ "min": undefined,
1768
+ "now": undefined,
1769
+ "text": undefined,
1770
+ }
1771
+ }
1772
+ accessible={true}
1773
+ collapsable={false}
1774
+ focusable={false}
1775
+ onClick={[Function]}
1776
+ onResponderGrant={[Function]}
1777
+ onResponderMove={[Function]}
1778
+ onResponderRelease={[Function]}
1779
+ onResponderTerminate={[Function]}
1780
+ onResponderTerminationRequest={[Function]}
1781
+ onStartShouldSetResponder={[Function]}
1782
+ style={
1783
+ {
1784
+ "backgroundColor": "#0d2a2e",
1785
+ "borderRadius": 999,
1786
+ "height": 32,
1787
+ "left": 22.4,
1788
+ "opacity": 1,
1789
+ "overflow": "hidden",
1790
+ "position": "absolute",
1791
+ "top": undefined,
1792
+ "width": 32,
1793
+ }
1794
+ }
1795
+ >
1796
+ <View
1797
+ style={
1798
+ [
1799
+ {
1800
+ "alignItems": "center",
1801
+ "height": "100%",
1802
+ "justifyContent": "center",
1803
+ "width": "100%",
1804
+ },
1805
+ undefined,
1806
+ ]
1807
+ }
1808
+ >
1809
+ <Text
1810
+ allowFontScaling={false}
1811
+ style={
1812
+ [
1813
+ {
1814
+ "color": "#001f23",
1815
+ "fontFamily": "BeVietnamPro-Regular",
1816
+ "fontSize": 14,
1817
+ "letterSpacing": 0.42,
1818
+ "lineHeight": 22,
1819
+ },
1820
+ [
1821
+ {
1822
+ "color": "#ffffff",
1823
+ "fontFamily": "BeVietnamPro-Regular",
1824
+ "fontSize": 16,
1825
+ "lineHeight": 0,
1826
+ "overflow": "hidden",
1827
+ "textAlign": "center",
1828
+ "textAlignVertical": "center",
1829
+ },
1830
+ undefined,
1831
+ ],
1832
+ ]
1833
+ }
1834
+ themeFontSize="medium"
1835
+ themeFontWeight="regular"
1836
+ themeIntent="body"
1837
+ themeSize="small"
1838
+ themeTypeface="neutral"
1839
+ >
1840
+ SS
1841
+ </Text>
1842
+ </View>
1843
+ </View>
1844
+ <View
1845
+ accessibilityState={
1846
+ {
1847
+ "busy": undefined,
1848
+ "checked": undefined,
1849
+ "disabled": true,
1850
+ "expanded": undefined,
1851
+ "selected": undefined,
1852
+ }
1853
+ }
1854
+ accessibilityValue={
1855
+ {
1856
+ "max": undefined,
1857
+ "min": undefined,
1858
+ "now": undefined,
1859
+ "text": undefined,
1860
+ }
1861
+ }
1862
+ accessible={true}
1863
+ collapsable={false}
1864
+ focusable={false}
1865
+ onClick={[Function]}
1866
+ onResponderGrant={[Function]}
1867
+ onResponderMove={[Function]}
1868
+ onResponderRelease={[Function]}
1869
+ onResponderTerminate={[Function]}
1870
+ onResponderTerminationRequest={[Function]}
1871
+ onStartShouldSetResponder={[Function]}
1872
+ style={
1873
+ {
1874
+ "backgroundColor": "#193539",
1875
+ "borderRadius": 999,
1876
+ "height": 32,
1877
+ "left": 44.8,
1878
+ "opacity": 1,
1879
+ "overflow": "hidden",
1880
+ "position": "absolute",
1881
+ "top": undefined,
1882
+ "width": 32,
1883
+ }
1884
+ }
1885
+ >
1886
+ <View
1887
+ style={
1888
+ [
1889
+ {
1890
+ "alignItems": "center",
1891
+ "height": "100%",
1892
+ "justifyContent": "center",
1893
+ "width": "100%",
1894
+ },
1895
+ undefined,
1896
+ ]
1897
+ }
1898
+ >
1899
+ <Text
1900
+ allowFontScaling={false}
1901
+ style={
1902
+ [
1903
+ {
1904
+ "color": "#001f23",
1905
+ "fontFamily": "BeVietnamPro-Regular",
1906
+ "fontSize": 14,
1907
+ "letterSpacing": 0.42,
1908
+ "lineHeight": 22,
1909
+ },
1910
+ [
1911
+ {
1912
+ "color": "#ffffff",
1913
+ "fontFamily": "BeVietnamPro-Regular",
1914
+ "fontSize": 16,
1915
+ "lineHeight": 0,
1916
+ "overflow": "hidden",
1917
+ "textAlign": "center",
1918
+ "textAlignVertical": "center",
1919
+ },
1920
+ undefined,
1921
+ ],
1922
+ ]
1923
+ }
1924
+ themeFontSize="medium"
1925
+ themeFontWeight="regular"
1926
+ themeIntent="body"
1927
+ themeSize="small"
1928
+ themeTypeface="neutral"
1929
+ >
1930
+ AA
1931
+ </Text>
1932
+ </View>
1933
+ </View>
1934
+ <View
1935
+ accessibilityState={
1936
+ {
1937
+ "busy": undefined,
1938
+ "checked": undefined,
1939
+ "disabled": true,
1940
+ "expanded": undefined,
1941
+ "selected": undefined,
1942
+ }
1943
+ }
1944
+ accessibilityValue={
1945
+ {
1946
+ "max": undefined,
1947
+ "min": undefined,
1948
+ "now": undefined,
1949
+ "text": undefined,
1950
+ }
1951
+ }
1952
+ accessible={true}
1953
+ collapsable={false}
1954
+ focusable={false}
1955
+ onClick={[Function]}
1956
+ onResponderGrant={[Function]}
1957
+ onResponderMove={[Function]}
1958
+ onResponderRelease={[Function]}
1959
+ onResponderTerminate={[Function]}
1960
+ onResponderTerminationRequest={[Function]}
1961
+ onStartShouldSetResponder={[Function]}
1962
+ style={
1963
+ {
1964
+ "backgroundColor": "#264144",
1965
+ "borderRadius": 999,
1966
+ "height": 32,
1967
+ "left": 67.19999999999999,
1968
+ "opacity": 1,
1969
+ "overflow": "hidden",
1970
+ "position": "absolute",
1971
+ "top": undefined,
1972
+ "width": 32,
1973
+ }
1974
+ }
1975
+ >
1976
+ <View
1977
+ style={
1978
+ [
1979
+ {
1980
+ "alignItems": "center",
1981
+ "height": "100%",
1982
+ "justifyContent": "center",
1983
+ "width": "100%",
1984
+ },
1985
+ undefined,
1986
+ ]
1987
+ }
1988
+ >
1989
+ <Text
1990
+ allowFontScaling={false}
1991
+ style={
1992
+ [
1993
+ {
1994
+ "color": "#001f23",
1995
+ "fontFamily": "BeVietnamPro-Regular",
1996
+ "fontSize": 14,
1997
+ "letterSpacing": 0.42,
1998
+ "lineHeight": 22,
1999
+ },
2000
+ [
2001
+ {
2002
+ "color": "#ffffff",
2003
+ "fontFamily": "BeVietnamPro-Regular",
2004
+ "fontSize": 16,
2005
+ "lineHeight": 0,
2006
+ "overflow": "hidden",
2007
+ "textAlign": "center",
2008
+ "textAlignVertical": "center",
2009
+ },
2010
+ undefined,
2011
+ ],
2012
+ ]
2013
+ }
2014
+ themeFontSize="medium"
2015
+ themeFontWeight="regular"
2016
+ themeIntent="body"
2017
+ themeSize="small"
2018
+ themeTypeface="neutral"
2019
+ >
2020
+ OO
2021
+ </Text>
2022
+ </View>
2023
+ </View>
2024
+ <View
2025
+ accessibilityState={
2026
+ {
2027
+ "busy": undefined,
2028
+ "checked": undefined,
2029
+ "disabled": true,
2030
+ "expanded": undefined,
2031
+ "selected": undefined,
2032
+ }
2033
+ }
2034
+ accessibilityValue={
2035
+ {
2036
+ "max": undefined,
2037
+ "min": undefined,
2038
+ "now": undefined,
2039
+ "text": undefined,
2040
+ }
2041
+ }
2042
+ accessible={true}
2043
+ collapsable={false}
2044
+ focusable={false}
2045
+ onClick={[Function]}
2046
+ onResponderGrant={[Function]}
2047
+ onResponderMove={[Function]}
2048
+ onResponderRelease={[Function]}
2049
+ onResponderTerminate={[Function]}
2050
+ onResponderTerminationRequest={[Function]}
2051
+ onStartShouldSetResponder={[Function]}
2052
+ style={
2053
+ {
2054
+ "backgroundColor": "#334c4f",
2055
+ "borderRadius": 999,
2056
+ "height": 32,
2057
+ "left": 89.6,
2058
+ "opacity": 1,
2059
+ "overflow": "hidden",
2060
+ "position": "absolute",
2061
+ "top": undefined,
2062
+ "width": 32,
2063
+ }
2064
+ }
2065
+ >
2066
+ <View
2067
+ style={
2068
+ [
2069
+ {
2070
+ "alignItems": "center",
2071
+ "height": "100%",
2072
+ "justifyContent": "center",
2073
+ "width": "100%",
2074
+ },
2075
+ undefined,
2076
+ ]
2077
+ }
2078
+ >
2079
+ <Text
2080
+ allowFontScaling={false}
2081
+ style={
2082
+ [
2083
+ {
2084
+ "color": "#001f23",
2085
+ "fontFamily": "BeVietnamPro-Regular",
2086
+ "fontSize": 14,
2087
+ "letterSpacing": 0.42,
2088
+ "lineHeight": 22,
2089
+ },
2090
+ [
2091
+ {
2092
+ "color": "#ffffff",
2093
+ "fontFamily": "BeVietnamPro-Regular",
2094
+ "fontSize": 16,
2095
+ "lineHeight": 0,
2096
+ "overflow": "hidden",
2097
+ "textAlign": "center",
2098
+ "textAlignVertical": "center",
2099
+ },
2100
+ undefined,
2101
+ ],
2102
+ ]
2103
+ }
2104
+ themeFontSize="medium"
2105
+ themeFontWeight="regular"
2106
+ themeIntent="body"
2107
+ themeSize="small"
2108
+ themeTypeface="neutral"
2109
+ >
2110
+ NA
2111
+ </Text>
2112
+ </View>
2113
+ </View>
2114
+ </View>
2115
+ <View
2116
+ pointerEvents="box-none"
2117
+ position="bottom"
2118
+ style={
2119
+ [
2120
+ {
2121
+ "bottom": 0,
2122
+ "elevation": 9999,
2123
+ "flexDirection": "column-reverse",
2124
+ "left": 0,
2125
+ "paddingHorizontal": 24,
2126
+ "paddingVertical": 16,
2127
+ "position": "absolute",
2128
+ "right": 0,
2129
+ "top": 0,
2130
+ },
2131
+ undefined,
2132
+ ]
2133
+ }
2134
+ />
2135
+ </View>
2136
+ `;
2137
+
2138
+ exports[`AvatarStack renders correctly when variant is vertical 1`] = `
2139
+ <View
2140
+ style={
2141
+ {
2142
+ "flex": 1,
2143
+ }
2144
+ }
2145
+ >
2146
+ <View
2147
+ style={
2148
+ [
2149
+ {
2150
+ "flexDirection": "column",
2151
+ "height": 121.6,
2152
+ "width": 32,
2153
+ },
2154
+ undefined,
2155
+ ]
2156
+ }
2157
+ testID="group-avatar"
2158
+ themeAvatarCount={5}
2159
+ themeHasSurplus={false}
2160
+ themeSize="small"
2161
+ themeVariant="vertical"
2162
+ >
2163
+ <View
2164
+ accessibilityState={
2165
+ {
2166
+ "busy": undefined,
2167
+ "checked": undefined,
2168
+ "disabled": true,
2169
+ "expanded": undefined,
2170
+ "selected": undefined,
2171
+ }
2172
+ }
2173
+ accessibilityValue={
2174
+ {
2175
+ "max": undefined,
2176
+ "min": undefined,
2177
+ "now": undefined,
2178
+ "text": undefined,
2179
+ }
2180
+ }
2181
+ accessible={true}
2182
+ collapsable={false}
2183
+ focusable={false}
2184
+ onClick={[Function]}
2185
+ onResponderGrant={[Function]}
2186
+ onResponderMove={[Function]}
2187
+ onResponderRelease={[Function]}
2188
+ onResponderTerminate={[Function]}
2189
+ onResponderTerminationRequest={[Function]}
2190
+ onStartShouldSetResponder={[Function]}
2191
+ style={
2192
+ {
2193
+ "backgroundColor": "#001f23",
2194
+ "borderRadius": 999,
2195
+ "height": 32,
2196
+ "left": undefined,
2197
+ "opacity": 1,
2198
+ "overflow": "hidden",
2199
+ "position": "absolute",
2200
+ "top": 0,
2201
+ "width": 32,
2202
+ }
2203
+ }
2204
+ >
2205
+ <View
2206
+ style={
2207
+ [
2208
+ {
2209
+ "alignItems": "center",
2210
+ "height": "100%",
2211
+ "justifyContent": "center",
2212
+ "width": "100%",
2213
+ },
2214
+ undefined,
2215
+ ]
2216
+ }
2217
+ >
2218
+ <Text
2219
+ allowFontScaling={false}
2220
+ style={
2221
+ [
2222
+ {
2223
+ "color": "#001f23",
2224
+ "fontFamily": "BeVietnamPro-Regular",
2225
+ "fontSize": 14,
2226
+ "letterSpacing": 0.42,
2227
+ "lineHeight": 22,
2228
+ },
2229
+ [
2230
+ {
2231
+ "color": "#ffffff",
2232
+ "fontFamily": "BeVietnamPro-Regular",
2233
+ "fontSize": 16,
2234
+ "lineHeight": 0,
2235
+ "overflow": "hidden",
2236
+ "textAlign": "center",
2237
+ "textAlignVertical": "center",
2238
+ },
2239
+ undefined,
2240
+ ],
2241
+ ]
2242
+ }
2243
+ themeFontSize="medium"
2244
+ themeFontWeight="regular"
2245
+ themeIntent="body"
2246
+ themeSize="small"
2247
+ themeTypeface="neutral"
2248
+ >
2249
+ TT
2250
+ </Text>
2251
+ </View>
2252
+ </View>
2253
+ <View
2254
+ accessibilityState={
2255
+ {
2256
+ "busy": undefined,
2257
+ "checked": undefined,
2258
+ "disabled": true,
2259
+ "expanded": undefined,
2260
+ "selected": undefined,
2261
+ }
2262
+ }
2263
+ accessibilityValue={
2264
+ {
2265
+ "max": undefined,
2266
+ "min": undefined,
2267
+ "now": undefined,
2268
+ "text": undefined,
2269
+ }
2270
+ }
2271
+ accessible={true}
2272
+ collapsable={false}
2273
+ focusable={false}
2274
+ onClick={[Function]}
2275
+ onResponderGrant={[Function]}
2276
+ onResponderMove={[Function]}
2277
+ onResponderRelease={[Function]}
2278
+ onResponderTerminate={[Function]}
2279
+ onResponderTerminationRequest={[Function]}
2280
+ onStartShouldSetResponder={[Function]}
2281
+ style={
2282
+ {
2283
+ "backgroundColor": "#0d2a2e",
2284
+ "borderRadius": 999,
2285
+ "height": 32,
2286
+ "left": undefined,
2287
+ "opacity": 1,
2288
+ "overflow": "hidden",
2289
+ "position": "absolute",
2290
+ "top": 22.4,
2291
+ "width": 32,
2292
+ }
2293
+ }
2294
+ >
2295
+ <View
2296
+ style={
2297
+ [
2298
+ {
2299
+ "alignItems": "center",
2300
+ "height": "100%",
2301
+ "justifyContent": "center",
2302
+ "width": "100%",
2303
+ },
2304
+ undefined,
2305
+ ]
2306
+ }
2307
+ >
2308
+ <Text
2309
+ allowFontScaling={false}
2310
+ style={
2311
+ [
2312
+ {
2313
+ "color": "#001f23",
2314
+ "fontFamily": "BeVietnamPro-Regular",
2315
+ "fontSize": 14,
2316
+ "letterSpacing": 0.42,
2317
+ "lineHeight": 22,
2318
+ },
2319
+ [
2320
+ {
2321
+ "color": "#ffffff",
2322
+ "fontFamily": "BeVietnamPro-Regular",
2323
+ "fontSize": 16,
2324
+ "lineHeight": 0,
2325
+ "overflow": "hidden",
2326
+ "textAlign": "center",
2327
+ "textAlignVertical": "center",
2328
+ },
2329
+ undefined,
2330
+ ],
2331
+ ]
2332
+ }
2333
+ themeFontSize="medium"
2334
+ themeFontWeight="regular"
2335
+ themeIntent="body"
2336
+ themeSize="small"
2337
+ themeTypeface="neutral"
2338
+ >
2339
+ SS
2340
+ </Text>
2341
+ </View>
2342
+ </View>
2343
+ <View
2344
+ accessibilityState={
2345
+ {
2346
+ "busy": undefined,
2347
+ "checked": undefined,
2348
+ "disabled": true,
2349
+ "expanded": undefined,
2350
+ "selected": undefined,
2351
+ }
2352
+ }
2353
+ accessibilityValue={
2354
+ {
2355
+ "max": undefined,
2356
+ "min": undefined,
2357
+ "now": undefined,
2358
+ "text": undefined,
2359
+ }
2360
+ }
2361
+ accessible={true}
2362
+ collapsable={false}
2363
+ focusable={false}
2364
+ onClick={[Function]}
2365
+ onResponderGrant={[Function]}
2366
+ onResponderMove={[Function]}
2367
+ onResponderRelease={[Function]}
2368
+ onResponderTerminate={[Function]}
2369
+ onResponderTerminationRequest={[Function]}
2370
+ onStartShouldSetResponder={[Function]}
2371
+ style={
2372
+ {
2373
+ "backgroundColor": "#193539",
2374
+ "borderRadius": 999,
2375
+ "height": 32,
2376
+ "left": undefined,
2377
+ "opacity": 1,
2378
+ "overflow": "hidden",
2379
+ "position": "absolute",
2380
+ "top": 44.8,
2381
+ "width": 32,
2382
+ }
2383
+ }
2384
+ >
2385
+ <View
2386
+ style={
2387
+ [
2388
+ {
2389
+ "alignItems": "center",
2390
+ "height": "100%",
2391
+ "justifyContent": "center",
2392
+ "width": "100%",
2393
+ },
2394
+ undefined,
2395
+ ]
2396
+ }
2397
+ >
2398
+ <Text
2399
+ allowFontScaling={false}
2400
+ style={
2401
+ [
2402
+ {
2403
+ "color": "#001f23",
2404
+ "fontFamily": "BeVietnamPro-Regular",
2405
+ "fontSize": 14,
2406
+ "letterSpacing": 0.42,
2407
+ "lineHeight": 22,
2408
+ },
2409
+ [
2410
+ {
2411
+ "color": "#ffffff",
2412
+ "fontFamily": "BeVietnamPro-Regular",
2413
+ "fontSize": 16,
2414
+ "lineHeight": 0,
2415
+ "overflow": "hidden",
2416
+ "textAlign": "center",
2417
+ "textAlignVertical": "center",
2418
+ },
2419
+ undefined,
2420
+ ],
2421
+ ]
2422
+ }
2423
+ themeFontSize="medium"
2424
+ themeFontWeight="regular"
2425
+ themeIntent="body"
2426
+ themeSize="small"
2427
+ themeTypeface="neutral"
2428
+ >
2429
+ AA
2430
+ </Text>
2431
+ </View>
2432
+ </View>
2433
+ <View
2434
+ accessibilityState={
2435
+ {
2436
+ "busy": undefined,
2437
+ "checked": undefined,
2438
+ "disabled": true,
2439
+ "expanded": undefined,
2440
+ "selected": undefined,
2441
+ }
2442
+ }
2443
+ accessibilityValue={
2444
+ {
2445
+ "max": undefined,
2446
+ "min": undefined,
2447
+ "now": undefined,
2448
+ "text": undefined,
2449
+ }
2450
+ }
2451
+ accessible={true}
2452
+ collapsable={false}
2453
+ focusable={false}
2454
+ onClick={[Function]}
2455
+ onResponderGrant={[Function]}
2456
+ onResponderMove={[Function]}
2457
+ onResponderRelease={[Function]}
2458
+ onResponderTerminate={[Function]}
2459
+ onResponderTerminationRequest={[Function]}
2460
+ onStartShouldSetResponder={[Function]}
2461
+ style={
2462
+ {
2463
+ "backgroundColor": "#264144",
2464
+ "borderRadius": 999,
2465
+ "height": 32,
2466
+ "left": undefined,
2467
+ "opacity": 1,
2468
+ "overflow": "hidden",
2469
+ "position": "absolute",
2470
+ "top": 67.19999999999999,
2471
+ "width": 32,
2472
+ }
2473
+ }
2474
+ >
2475
+ <View
2476
+ style={
2477
+ [
2478
+ {
2479
+ "alignItems": "center",
2480
+ "height": "100%",
2481
+ "justifyContent": "center",
2482
+ "width": "100%",
2483
+ },
2484
+ undefined,
2485
+ ]
2486
+ }
2487
+ >
2488
+ <Text
2489
+ allowFontScaling={false}
2490
+ style={
2491
+ [
2492
+ {
2493
+ "color": "#001f23",
2494
+ "fontFamily": "BeVietnamPro-Regular",
2495
+ "fontSize": 14,
2496
+ "letterSpacing": 0.42,
2497
+ "lineHeight": 22,
2498
+ },
2499
+ [
2500
+ {
2501
+ "color": "#ffffff",
2502
+ "fontFamily": "BeVietnamPro-Regular",
2503
+ "fontSize": 16,
2504
+ "lineHeight": 0,
2505
+ "overflow": "hidden",
2506
+ "textAlign": "center",
2507
+ "textAlignVertical": "center",
2508
+ },
2509
+ undefined,
2510
+ ],
2511
+ ]
2512
+ }
2513
+ themeFontSize="medium"
2514
+ themeFontWeight="regular"
2515
+ themeIntent="body"
2516
+ themeSize="small"
2517
+ themeTypeface="neutral"
2518
+ >
2519
+ OO
2520
+ </Text>
2521
+ </View>
2522
+ </View>
2523
+ <View
2524
+ accessibilityState={
2525
+ {
2526
+ "busy": undefined,
2527
+ "checked": undefined,
2528
+ "disabled": true,
2529
+ "expanded": undefined,
2530
+ "selected": undefined,
2531
+ }
2532
+ }
2533
+ accessibilityValue={
2534
+ {
2535
+ "max": undefined,
2536
+ "min": undefined,
2537
+ "now": undefined,
2538
+ "text": undefined,
2539
+ }
2540
+ }
2541
+ accessible={true}
2542
+ collapsable={false}
2543
+ focusable={false}
2544
+ onClick={[Function]}
2545
+ onResponderGrant={[Function]}
2546
+ onResponderMove={[Function]}
2547
+ onResponderRelease={[Function]}
2548
+ onResponderTerminate={[Function]}
2549
+ onResponderTerminationRequest={[Function]}
2550
+ onStartShouldSetResponder={[Function]}
2551
+ style={
2552
+ {
2553
+ "backgroundColor": "#334c4f",
2554
+ "borderRadius": 999,
2555
+ "height": 32,
2556
+ "left": undefined,
2557
+ "opacity": 1,
2558
+ "overflow": "hidden",
2559
+ "position": "absolute",
2560
+ "top": 89.6,
2561
+ "width": 32,
2562
+ }
2563
+ }
2564
+ >
2565
+ <View
2566
+ style={
2567
+ [
2568
+ {
2569
+ "alignItems": "center",
2570
+ "height": "100%",
2571
+ "justifyContent": "center",
2572
+ "width": "100%",
2573
+ },
2574
+ undefined,
2575
+ ]
2576
+ }
2577
+ >
2578
+ <Text
2579
+ allowFontScaling={false}
2580
+ style={
2581
+ [
2582
+ {
2583
+ "color": "#001f23",
2584
+ "fontFamily": "BeVietnamPro-Regular",
2585
+ "fontSize": 14,
2586
+ "letterSpacing": 0.42,
2587
+ "lineHeight": 22,
2588
+ },
2589
+ [
2590
+ {
2591
+ "color": "#ffffff",
2592
+ "fontFamily": "BeVietnamPro-Regular",
2593
+ "fontSize": 16,
2594
+ "lineHeight": 0,
2595
+ "overflow": "hidden",
2596
+ "textAlign": "center",
2597
+ "textAlignVertical": "center",
2598
+ },
2599
+ undefined,
2600
+ ],
2601
+ ]
2602
+ }
2603
+ themeFontSize="medium"
2604
+ themeFontWeight="regular"
2605
+ themeIntent="body"
2606
+ themeSize="small"
2607
+ themeTypeface="neutral"
2608
+ >
2609
+ NA
2610
+ </Text>
2611
+ </View>
2612
+ </View>
2613
+ </View>
2614
+ <View
2615
+ pointerEvents="box-none"
2616
+ position="bottom"
2617
+ style={
2618
+ [
2619
+ {
2620
+ "bottom": 0,
2621
+ "elevation": 9999,
2622
+ "flexDirection": "column-reverse",
2623
+ "left": 0,
2624
+ "paddingHorizontal": 24,
2625
+ "paddingVertical": 16,
2626
+ "position": "absolute",
2627
+ "right": 0,
2628
+ "top": 0,
2629
+ },
2630
+ undefined,
2631
+ ]
2632
+ }
2633
+ />
2634
+ </View>
2635
+ `;
2636
+
2637
+ exports[`AvatarStack renders correctly with custom props 1`] = `
2638
+ <View
2639
+ style={
2640
+ {
2641
+ "flex": 1,
2642
+ }
2643
+ }
2644
+ >
2645
+ <View
2646
+ style={
2647
+ [
2648
+ {
2649
+ "flexDirection": "row",
2650
+ "height": 40,
2651
+ "width": 123.99999999999999,
2652
+ },
2653
+ undefined,
2654
+ ]
2655
+ }
2656
+ testID="group-avatar"
2657
+ themeAvatarCount={3}
2658
+ themeHasSurplus={true}
516
2659
  themeSize="medium"
2660
+ themeVariant="horizontal"
517
2661
  >
518
2662
  <View
519
2663
  accessibilityState={
@@ -552,6 +2696,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
552
2696
  "opacity": 1,
553
2697
  "overflow": "hidden",
554
2698
  "position": "absolute",
2699
+ "top": undefined,
555
2700
  "width": 40,
556
2701
  }
557
2702
  }
@@ -641,6 +2786,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
641
2786
  "opacity": 1,
642
2787
  "overflow": "hidden",
643
2788
  "position": "absolute",
2789
+ "top": undefined,
644
2790
  "width": 40,
645
2791
  }
646
2792
  }
@@ -730,6 +2876,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
730
2876
  "opacity": 1,
731
2877
  "overflow": "hidden",
732
2878
  "position": "absolute",
2879
+ "top": undefined,
733
2880
  "width": 40,
734
2881
  }
735
2882
  }
@@ -819,9 +2966,11 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
819
2966
  "opacity": 1,
820
2967
  "overflow": "hidden",
821
2968
  "position": "absolute",
2969
+ "top": undefined,
822
2970
  "width": 40,
823
2971
  }
824
2972
  }
2973
+ testID="surplus-container"
825
2974
  >
826
2975
  <View
827
2976
  style={