@pagopa/io-app-design-system 1.29.0 → 1.31.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.
- package/lib/commonjs/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +24 -12
- package/lib/commonjs/components/avatar/Avatar.js +2 -0
- package/lib/commonjs/components/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +4 -0
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +92 -18
- package/lib/commonjs/components/buttons/ButtonSolid.js +4 -2
- package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +96 -50
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +3 -2
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js +11 -7
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
- package/lib/commonjs/components/checkbox/CheckboxLabel.js +5 -0
- package/lib/commonjs/components/checkbox/CheckboxLabel.js.map +1 -1
- package/lib/commonjs/components/image/Image.js +3 -1
- package/lib/commonjs/components/image/Image.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js +2 -1
- package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +6 -0
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +154 -68
- package/lib/commonjs/components/logos/LogoPaymentCard.js +7 -2
- package/lib/commonjs/components/logos/LogoPaymentCard.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleIDP.js +1 -0
- package/lib/commonjs/components/modules/ModuleIDP.js.map +1 -1
- package/lib/commonjs/components/radio/AnimatedRadio.js +1 -0
- package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/commonjs/components/radio/RadioButtonLabel.js +8 -3
- package/lib/commonjs/components/radio/RadioButtonLabel.js.map +1 -1
- package/lib/commonjs/components/switch/AnimatedSwitch.js +3 -2
- package/lib/commonjs/components/switch/AnimatedSwitch.js.map +1 -1
- package/lib/commonjs/components/switch/SwitchLabel.js +7 -2
- package/lib/commonjs/components/switch/SwitchLabel.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputBase.js +17 -12
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/core/IOStyles.js +1 -1
- package/lib/commonjs/core/IOStyles.js.map +1 -1
- package/lib/module/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +24 -12
- package/lib/module/components/avatar/Avatar.js +2 -0
- package/lib/module/components/avatar/Avatar.js.map +1 -1
- package/lib/module/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +4 -0
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +92 -18
- package/lib/module/components/buttons/ButtonSolid.js +4 -2
- package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +96 -50
- package/lib/module/components/checkbox/AnimatedCheckbox.js +3 -2
- package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js +11 -7
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
- package/lib/module/components/checkbox/CheckboxLabel.js +5 -0
- package/lib/module/components/checkbox/CheckboxLabel.js.map +1 -1
- package/lib/module/components/image/Image.js +3 -1
- package/lib/module/components/image/Image.js.map +1 -1
- package/lib/module/components/listitems/ListItemNav.js +2 -1
- package/lib/module/components/listitems/ListItemNav.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadio.js +6 -0
- package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +154 -68
- package/lib/module/components/logos/LogoPaymentCard.js +9 -4
- package/lib/module/components/logos/LogoPaymentCard.js.map +1 -1
- package/lib/module/components/modules/ModuleIDP.js +1 -0
- package/lib/module/components/modules/ModuleIDP.js.map +1 -1
- package/lib/module/components/radio/AnimatedRadio.js +1 -0
- package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/module/components/radio/RadioButtonLabel.js +8 -3
- package/lib/module/components/radio/RadioButtonLabel.js.map +1 -1
- package/lib/module/components/switch/AnimatedSwitch.js +5 -4
- package/lib/module/components/switch/AnimatedSwitch.js.map +1 -1
- package/lib/module/components/switch/SwitchLabel.js +7 -2
- package/lib/module/components/switch/SwitchLabel.js.map +1 -1
- package/lib/module/components/textInput/TextInputBase.js +18 -13
- package/lib/module/components/textInput/TextInputBase.js.map +1 -1
- package/lib/module/core/IOStyles.js +1 -1
- package/lib/module/core/IOStyles.js.map +1 -1
- package/lib/typescript/components/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/AnimatedMessageCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/CheckboxLabel.d.ts.map +1 -1
- package/lib/typescript/components/image/Image.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemRadio.d.ts.map +1 -1
- package/lib/typescript/components/logos/LogoPaymentCard.d.ts +5 -3
- package/lib/typescript/components/logos/LogoPaymentCard.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleIDP.d.ts.map +1 -1
- package/lib/typescript/components/radio/AnimatedRadio.d.ts.map +1 -1
- package/lib/typescript/components/radio/RadioButtonLabel.d.ts.map +1 -1
- package/lib/typescript/components/switch/AnimatedSwitch.d.ts.map +1 -1
- package/lib/typescript/components/switch/SwitchLabel.d.ts.map +1 -1
- package/lib/typescript/components/textInput/TextInputBase.d.ts +2 -1
- package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +24 -12
- package/src/components/avatar/Avatar.tsx +2 -0
- package/src/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +4 -0
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +92 -18
- package/src/components/buttons/ButtonSolid.tsx +3 -1
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +96 -50
- package/src/components/checkbox/AnimatedCheckbox.tsx +2 -1
- package/src/components/checkbox/AnimatedMessageCheckbox.tsx +9 -7
- package/src/components/checkbox/CheckboxLabel.tsx +5 -0
- package/src/components/image/Image.tsx +6 -1
- package/src/components/listitems/ListItemNav.tsx +2 -1
- package/src/components/listitems/ListItemRadio.tsx +10 -1
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +154 -68
- package/src/components/logos/LogoPaymentCard.tsx +15 -6
- package/src/components/modules/ModuleIDP.tsx +5 -1
- package/src/components/radio/AnimatedRadio.tsx +1 -0
- package/src/components/radio/RadioButtonLabel.tsx +7 -2
- package/src/components/switch/AnimatedSwitch.tsx +9 -8
- package/src/components/switch/SwitchLabel.tsx +6 -1
- package/src/components/textInput/TextInputBase.tsx +20 -14
- package/src/core/IOStyles.ts +1 -1
|
@@ -211,6 +211,11 @@ export const ListItemRadio = ({
|
|
|
211
211
|
<SkeletonComponent />
|
|
212
212
|
) : (
|
|
213
213
|
<Pressable
|
|
214
|
+
accessibilityRole="radio"
|
|
215
|
+
accessibilityState={{
|
|
216
|
+
checked: selected ?? toggleValue,
|
|
217
|
+
disabled: !!disabled
|
|
218
|
+
}}
|
|
214
219
|
onPress={toggleRadioItem}
|
|
215
220
|
onPressIn={handlePressIn}
|
|
216
221
|
onPressOut={handlePressOut}
|
|
@@ -246,7 +251,11 @@ export const ListItemRadio = ({
|
|
|
246
251
|
/>
|
|
247
252
|
)}
|
|
248
253
|
{startImage.uri && (
|
|
249
|
-
<Image
|
|
254
|
+
<Image
|
|
255
|
+
accessibilityIgnoresInvertColors
|
|
256
|
+
source={startImage}
|
|
257
|
+
style={styles.imageSize}
|
|
258
|
+
/>
|
|
250
259
|
)}
|
|
251
260
|
{startImage.paymentLogo && (
|
|
252
261
|
<LogoPayment
|
|
@@ -179,6 +179,7 @@ exports[`Test List Item Components - Experimental Enabled ListItemIDP Snapshot
|
|
|
179
179
|
}
|
|
180
180
|
/>
|
|
181
181
|
<Image
|
|
182
|
+
accessibilityIgnoresInvertColors={true}
|
|
182
183
|
source={
|
|
183
184
|
{
|
|
184
185
|
"uri": "undefined",
|
|
@@ -447,7 +448,6 @@ exports[`Test List Item Components - Experimental Enabled ListItemInfoCopy Snap
|
|
|
447
448
|
align="xMidYMid"
|
|
448
449
|
bbHeight={24}
|
|
449
450
|
bbWidth={24}
|
|
450
|
-
color={4278927075}
|
|
451
451
|
focusable={false}
|
|
452
452
|
height={24}
|
|
453
453
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -470,19 +470,26 @@ exports[`Test List Item Components - Experimental Enabled ListItemInfoCopy Snap
|
|
|
470
470
|
},
|
|
471
471
|
]
|
|
472
472
|
}
|
|
473
|
-
tintColor=
|
|
473
|
+
tintColor="#0B3EE3"
|
|
474
474
|
vbHeight={24}
|
|
475
475
|
vbWidth={24}
|
|
476
476
|
width={24}
|
|
477
477
|
>
|
|
478
|
-
<RNSVGGroup
|
|
478
|
+
<RNSVGGroup
|
|
479
|
+
fill={
|
|
480
|
+
{
|
|
481
|
+
"payload": 4278190080,
|
|
482
|
+
"type": 0,
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
>
|
|
479
486
|
<RNSVGPath
|
|
480
487
|
clipRule={0}
|
|
481
488
|
d="M12 18h8a2 2 0 0 0 2-2V9h-4a3 3 0 0 1-3-3V2h-3a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2Zm9.332-11.987a2 2 0 0 1 .603.987H18a1 1 0 0 1-1-1V2.227a2 2 0 0 1 .406.281l3.926 3.505ZM14 20h-2a4 4 0 0 1-4-4V6H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2Zm2 0h4a4 4 0 0 0 4-4V7.505a4 4 0 0 0-1.336-2.984l-3.926-3.505A4 4 0 0 0 16.074 0H12a4 4 0 0 0-4 4H4a4 4 0 0 0-4 4v12a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4Z"
|
|
482
489
|
fill={
|
|
483
|
-
|
|
484
|
-
2,
|
|
485
|
-
|
|
490
|
+
{
|
|
491
|
+
"type": 2,
|
|
492
|
+
}
|
|
486
493
|
}
|
|
487
494
|
fillRule={0}
|
|
488
495
|
propList={
|
|
@@ -618,7 +625,6 @@ exports[`Test List Item Components - Experimental Enabled ListItemNav Snapshot
|
|
|
618
625
|
align="xMidYMid"
|
|
619
626
|
bbHeight={24}
|
|
620
627
|
bbWidth={24}
|
|
621
|
-
color={4278927075}
|
|
622
628
|
focusable={false}
|
|
623
629
|
height={24}
|
|
624
630
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -641,19 +647,26 @@ exports[`Test List Item Components - Experimental Enabled ListItemNav Snapshot
|
|
|
641
647
|
},
|
|
642
648
|
]
|
|
643
649
|
}
|
|
644
|
-
tintColor=
|
|
650
|
+
tintColor="#0B3EE3"
|
|
645
651
|
vbHeight={24}
|
|
646
652
|
vbWidth={24}
|
|
647
653
|
width={24}
|
|
648
654
|
>
|
|
649
|
-
<RNSVGGroup
|
|
655
|
+
<RNSVGGroup
|
|
656
|
+
fill={
|
|
657
|
+
{
|
|
658
|
+
"payload": 4278190080,
|
|
659
|
+
"type": 0,
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
>
|
|
650
663
|
<RNSVGPath
|
|
651
664
|
clipRule={0}
|
|
652
665
|
d="M16.2929 5.29289c.3905-.39052 1.0237-.39052 1.4142 0l6 6.00001c.3905.3905.3905 1.0237 0 1.4142l-6 6c-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142L21.5858 12l-5.2929-5.29289c-.3905-.39053-.3905-1.02369 0-1.41422Z"
|
|
653
666
|
fill={
|
|
654
|
-
|
|
655
|
-
2,
|
|
656
|
-
|
|
667
|
+
{
|
|
668
|
+
"type": 2,
|
|
669
|
+
}
|
|
657
670
|
}
|
|
658
671
|
fillRule={0}
|
|
659
672
|
propList={
|
|
@@ -751,7 +764,6 @@ exports[`Test List Item Components - Experimental Enabled ListItemNavAlert Snap
|
|
|
751
764
|
align="xMidYMid"
|
|
752
765
|
bbHeight={24}
|
|
753
766
|
bbWidth={24}
|
|
754
|
-
color={4294862438}
|
|
755
767
|
focusable={false}
|
|
756
768
|
height={24}
|
|
757
769
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -774,19 +786,26 @@ exports[`Test List Item Components - Experimental Enabled ListItemNavAlert Snap
|
|
|
774
786
|
},
|
|
775
787
|
]
|
|
776
788
|
}
|
|
777
|
-
tintColor=
|
|
789
|
+
tintColor="#FE6666"
|
|
778
790
|
vbHeight={24}
|
|
779
791
|
vbWidth={24}
|
|
780
792
|
width={24}
|
|
781
793
|
>
|
|
782
|
-
<RNSVGGroup
|
|
794
|
+
<RNSVGGroup
|
|
795
|
+
fill={
|
|
796
|
+
{
|
|
797
|
+
"payload": 4278190080,
|
|
798
|
+
"type": 0,
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
>
|
|
783
802
|
<RNSVGPath
|
|
784
803
|
clipRule={0}
|
|
785
804
|
d="M7.00702 1c-.73494 0-1.41405.39209-1.78152 1.02856L.2756 11.0274c-.36747.6365-.36747 1.4206 0 2.0571l4.9499 8.8783c.36747.6365 1.04658 1.0286 1.78152 1.0286h9.94288c.7349 0 1.414-.3921 1.7815-1.0286l4.993-8.8783c.3675-.6365.3675-1.4206 0-2.0571l-4.993-8.99884C18.3639 1.39209 17.6848 1 16.9499 1H7.00702Zm5.02608 13.5549c.5676 0 1.0283-.4601 1.0283-1.0277V5.52583c0-.56758-.4601-1.02769-1.0277-1.02769-.5676 0-1.0282.46011-1.0282 1.02769v8.00137c0 .5676.4601 1.0277 1.0276 1.0277Zm0 1.9431c.8436 0 1.5275.6839 1.5275 1.5275 0 .8436-.6839 1.5275-1.5275 1.5275-.8436 0-1.5274-.6839-1.5274-1.5275 0-.8436.6838-1.5275 1.5274-1.5275Z"
|
|
786
805
|
fill={
|
|
787
|
-
|
|
788
|
-
2,
|
|
789
|
-
|
|
806
|
+
{
|
|
807
|
+
"type": 2,
|
|
808
|
+
}
|
|
790
809
|
}
|
|
791
810
|
fillRule={0}
|
|
792
811
|
propList={
|
|
@@ -851,7 +870,6 @@ exports[`Test List Item Components - Experimental Enabled ListItemNavAlert Snap
|
|
|
851
870
|
align="xMidYMid"
|
|
852
871
|
bbHeight={24}
|
|
853
872
|
bbWidth={24}
|
|
854
|
-
color={4278927075}
|
|
855
873
|
focusable={false}
|
|
856
874
|
height={24}
|
|
857
875
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -874,19 +892,26 @@ exports[`Test List Item Components - Experimental Enabled ListItemNavAlert Snap
|
|
|
874
892
|
},
|
|
875
893
|
]
|
|
876
894
|
}
|
|
877
|
-
tintColor=
|
|
895
|
+
tintColor="#0B3EE3"
|
|
878
896
|
vbHeight={24}
|
|
879
897
|
vbWidth={24}
|
|
880
898
|
width={24}
|
|
881
899
|
>
|
|
882
|
-
<RNSVGGroup
|
|
900
|
+
<RNSVGGroup
|
|
901
|
+
fill={
|
|
902
|
+
{
|
|
903
|
+
"payload": 4278190080,
|
|
904
|
+
"type": 0,
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
>
|
|
883
908
|
<RNSVGPath
|
|
884
909
|
clipRule={0}
|
|
885
910
|
d="M16.2929 5.29289c.3905-.39052 1.0237-.39052 1.4142 0l6 6.00001c.3905.3905.3905 1.0237 0 1.4142l-6 6c-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142L21.5858 12l-5.2929-5.29289c-.3905-.39053-.3905-1.02369 0-1.41422Z"
|
|
886
911
|
fill={
|
|
887
|
-
|
|
888
|
-
2,
|
|
889
|
-
|
|
912
|
+
{
|
|
913
|
+
"type": 2,
|
|
914
|
+
}
|
|
890
915
|
}
|
|
891
916
|
fillRule={0}
|
|
892
917
|
propList={
|
|
@@ -1031,7 +1056,6 @@ exports[`Test List Item Components - Experimental Enabled ListItemRadioWithAmou
|
|
|
1031
1056
|
align="xMidYMid"
|
|
1032
1057
|
bbHeight={16}
|
|
1033
1058
|
bbWidth={16}
|
|
1034
|
-
color={4283766755}
|
|
1035
1059
|
focusable={false}
|
|
1036
1060
|
height={16}
|
|
1037
1061
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -1054,18 +1078,25 @@ exports[`Test List Item Components - Experimental Enabled ListItemRadioWithAmou
|
|
|
1054
1078
|
},
|
|
1055
1079
|
]
|
|
1056
1080
|
}
|
|
1057
|
-
tintColor=
|
|
1081
|
+
tintColor="#5517E3"
|
|
1058
1082
|
vbHeight={17}
|
|
1059
1083
|
vbWidth={16}
|
|
1060
1084
|
width={16}
|
|
1061
1085
|
>
|
|
1062
|
-
<RNSVGGroup
|
|
1086
|
+
<RNSVGGroup
|
|
1087
|
+
fill={
|
|
1088
|
+
{
|
|
1089
|
+
"payload": 4278190080,
|
|
1090
|
+
"type": 0,
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
>
|
|
1063
1094
|
<RNSVGPath
|
|
1064
1095
|
d="M5.64418.97979c.23675-.63972 1.14156-.63972 1.37831 0l1.27772 3.45256a.73476.73476 0 0 0 .43411.43411l3.45258 1.27772c.6397.23675.6397 1.14156 0 1.37831L8.73432 8.80021a.73476.73476 0 0 0-.43411.43411L7.02249 12.6869c-.23675.6397-1.14156.6397-1.37831 0L4.36646 9.23432a.73476.73476 0 0 0-.43411-.43411L.47979 7.52249c-.63972-.23675-.63972-1.14156 0-1.37831l3.45256-1.27772a.73476.73476 0 0 0 .43411-.43411L5.64418.97979Zm6.65942 9.10601c.1246-.33665.6008-.33665.7255 0l.6724 1.8172a.38723.38723 0 0 0 .2285.2285l1.8172.6725c.3366.1246.3366.6008 0 .7254l-1.8172.6725a.3868.3868 0 0 0-.2285.2284l-.6724 1.8172c-.1247.3367-.6009.3367-.7255 0l-.6725-1.8172a.38638.38638 0 0 0-.2284-.2284l-1.81717-.6725c-.3367-.1246-.3367-.6008 0-.7254l1.81717-.6725a.3868.3868 0 0 0 .2284-.2285l.6725-1.8172Z"
|
|
1065
1096
|
fill={
|
|
1066
|
-
|
|
1067
|
-
2,
|
|
1068
|
-
|
|
1097
|
+
{
|
|
1098
|
+
"type": 2,
|
|
1099
|
+
}
|
|
1069
1100
|
}
|
|
1070
1101
|
propList={
|
|
1071
1102
|
[
|
|
@@ -1184,7 +1215,7 @@ exports[`Test List Item Components - Experimental Enabled ListItemRadioWithAmou
|
|
|
1184
1215
|
"text": undefined,
|
|
1185
1216
|
}
|
|
1186
1217
|
}
|
|
1187
|
-
accessible={
|
|
1218
|
+
accessible={false}
|
|
1188
1219
|
collapsable={false}
|
|
1189
1220
|
focusable={true}
|
|
1190
1221
|
onBlur={[Function]}
|
|
@@ -1272,7 +1303,14 @@ exports[`Test List Item Components - Experimental Enabled ListItemRadioWithAmou
|
|
|
1272
1303
|
vbHeight={24}
|
|
1273
1304
|
vbWidth={24}
|
|
1274
1305
|
>
|
|
1275
|
-
<RNSVGGroup
|
|
1306
|
+
<RNSVGGroup
|
|
1307
|
+
fill={
|
|
1308
|
+
{
|
|
1309
|
+
"payload": 4278190080,
|
|
1310
|
+
"type": 0,
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
>
|
|
1276
1314
|
<RNSVGPath
|
|
1277
1315
|
d="m7 12 4 4 7-7"
|
|
1278
1316
|
fill={null}
|
|
@@ -1287,7 +1325,12 @@ exports[`Test List Item Components - Experimental Enabled ListItemRadioWithAmou
|
|
|
1287
1325
|
"strokeLinejoin",
|
|
1288
1326
|
]
|
|
1289
1327
|
}
|
|
1290
|
-
stroke={
|
|
1328
|
+
stroke={
|
|
1329
|
+
{
|
|
1330
|
+
"payload": 4294967295,
|
|
1331
|
+
"type": 0,
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1291
1334
|
strokeDasharray={null}
|
|
1292
1335
|
strokeLinecap={1}
|
|
1293
1336
|
strokeLinejoin={1}
|
|
@@ -1479,7 +1522,7 @@ exports[`Test List Item Components - Experimental Enabled ListItemRadioWithAmou
|
|
|
1479
1522
|
"text": undefined,
|
|
1480
1523
|
}
|
|
1481
1524
|
}
|
|
1482
|
-
accessible={
|
|
1525
|
+
accessible={false}
|
|
1483
1526
|
collapsable={false}
|
|
1484
1527
|
focusable={true}
|
|
1485
1528
|
onBlur={[Function]}
|
|
@@ -1941,6 +1984,7 @@ exports[`Test List Item Components ListItemIDP Snapshot 1`] = `
|
|
|
1941
1984
|
}
|
|
1942
1985
|
/>
|
|
1943
1986
|
<Image
|
|
1987
|
+
accessibilityIgnoresInvertColors={true}
|
|
1944
1988
|
source={
|
|
1945
1989
|
{
|
|
1946
1990
|
"uri": "undefined",
|
|
@@ -2209,7 +2253,6 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
|
|
|
2209
2253
|
align="xMidYMid"
|
|
2210
2254
|
bbHeight={24}
|
|
2211
2255
|
bbWidth={24}
|
|
2212
|
-
color={4278219750}
|
|
2213
2256
|
focusable={false}
|
|
2214
2257
|
height={24}
|
|
2215
2258
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -2232,19 +2275,26 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
|
|
|
2232
2275
|
},
|
|
2233
2276
|
]
|
|
2234
2277
|
}
|
|
2235
|
-
tintColor=
|
|
2278
|
+
tintColor="#0073E6"
|
|
2236
2279
|
vbHeight={24}
|
|
2237
2280
|
vbWidth={24}
|
|
2238
2281
|
width={24}
|
|
2239
2282
|
>
|
|
2240
|
-
<RNSVGGroup
|
|
2283
|
+
<RNSVGGroup
|
|
2284
|
+
fill={
|
|
2285
|
+
{
|
|
2286
|
+
"payload": 4278190080,
|
|
2287
|
+
"type": 0,
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
>
|
|
2241
2291
|
<RNSVGPath
|
|
2242
2292
|
clipRule={0}
|
|
2243
2293
|
d="M12 18h8a2 2 0 0 0 2-2V9h-4a3 3 0 0 1-3-3V2h-3a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2Zm9.332-11.987a2 2 0 0 1 .603.987H18a1 1 0 0 1-1-1V2.227a2 2 0 0 1 .406.281l3.926 3.505ZM14 20h-2a4 4 0 0 1-4-4V6H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2Zm2 0h4a4 4 0 0 0 4-4V7.505a4 4 0 0 0-1.336-2.984l-3.926-3.505A4 4 0 0 0 16.074 0H12a4 4 0 0 0-4 4H4a4 4 0 0 0-4 4v12a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4Z"
|
|
2244
2294
|
fill={
|
|
2245
|
-
|
|
2246
|
-
2,
|
|
2247
|
-
|
|
2295
|
+
{
|
|
2296
|
+
"type": 2,
|
|
2297
|
+
}
|
|
2248
2298
|
}
|
|
2249
2299
|
fillRule={0}
|
|
2250
2300
|
propList={
|
|
@@ -2380,7 +2430,6 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
|
|
|
2380
2430
|
align="xMidYMid"
|
|
2381
2431
|
bbHeight={24}
|
|
2382
2432
|
bbWidth={24}
|
|
2383
|
-
color={4278219750}
|
|
2384
2433
|
focusable={false}
|
|
2385
2434
|
height={24}
|
|
2386
2435
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -2403,19 +2452,26 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
|
|
|
2403
2452
|
},
|
|
2404
2453
|
]
|
|
2405
2454
|
}
|
|
2406
|
-
tintColor=
|
|
2455
|
+
tintColor="#0073E6"
|
|
2407
2456
|
vbHeight={24}
|
|
2408
2457
|
vbWidth={24}
|
|
2409
2458
|
width={24}
|
|
2410
2459
|
>
|
|
2411
|
-
<RNSVGGroup
|
|
2460
|
+
<RNSVGGroup
|
|
2461
|
+
fill={
|
|
2462
|
+
{
|
|
2463
|
+
"payload": 4278190080,
|
|
2464
|
+
"type": 0,
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
>
|
|
2412
2468
|
<RNSVGPath
|
|
2413
2469
|
clipRule={0}
|
|
2414
2470
|
d="M16.2929 5.29289c.3905-.39052 1.0237-.39052 1.4142 0l6 6.00001c.3905.3905.3905 1.0237 0 1.4142l-6 6c-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142L21.5858 12l-5.2929-5.29289c-.3905-.39053-.3905-1.02369 0-1.41422Z"
|
|
2415
2471
|
fill={
|
|
2416
|
-
|
|
2417
|
-
2,
|
|
2418
|
-
|
|
2472
|
+
{
|
|
2473
|
+
"type": 2,
|
|
2474
|
+
}
|
|
2419
2475
|
}
|
|
2420
2476
|
fillRule={0}
|
|
2421
2477
|
propList={
|
|
@@ -2513,7 +2569,6 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
|
|
|
2513
2569
|
align="xMidYMid"
|
|
2514
2570
|
bbHeight={24}
|
|
2515
2571
|
bbWidth={24}
|
|
2516
|
-
color={4294862438}
|
|
2517
2572
|
focusable={false}
|
|
2518
2573
|
height={24}
|
|
2519
2574
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -2536,19 +2591,26 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
|
|
|
2536
2591
|
},
|
|
2537
2592
|
]
|
|
2538
2593
|
}
|
|
2539
|
-
tintColor=
|
|
2594
|
+
tintColor="#FE6666"
|
|
2540
2595
|
vbHeight={24}
|
|
2541
2596
|
vbWidth={24}
|
|
2542
2597
|
width={24}
|
|
2543
2598
|
>
|
|
2544
|
-
<RNSVGGroup
|
|
2599
|
+
<RNSVGGroup
|
|
2600
|
+
fill={
|
|
2601
|
+
{
|
|
2602
|
+
"payload": 4278190080,
|
|
2603
|
+
"type": 0,
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
>
|
|
2545
2607
|
<RNSVGPath
|
|
2546
2608
|
clipRule={0}
|
|
2547
2609
|
d="M7.00702 1c-.73494 0-1.41405.39209-1.78152 1.02856L.2756 11.0274c-.36747.6365-.36747 1.4206 0 2.0571l4.9499 8.8783c.36747.6365 1.04658 1.0286 1.78152 1.0286h9.94288c.7349 0 1.414-.3921 1.7815-1.0286l4.993-8.8783c.3675-.6365.3675-1.4206 0-2.0571l-4.993-8.99884C18.3639 1.39209 17.6848 1 16.9499 1H7.00702Zm5.02608 13.5549c.5676 0 1.0283-.4601 1.0283-1.0277V5.52583c0-.56758-.4601-1.02769-1.0277-1.02769-.5676 0-1.0282.46011-1.0282 1.02769v8.00137c0 .5676.4601 1.0277 1.0276 1.0277Zm0 1.9431c.8436 0 1.5275.6839 1.5275 1.5275 0 .8436-.6839 1.5275-1.5275 1.5275-.8436 0-1.5274-.6839-1.5274-1.5275 0-.8436.6838-1.5275 1.5274-1.5275Z"
|
|
2548
2610
|
fill={
|
|
2549
|
-
|
|
2550
|
-
2,
|
|
2551
|
-
|
|
2611
|
+
{
|
|
2612
|
+
"type": 2,
|
|
2613
|
+
}
|
|
2552
2614
|
}
|
|
2553
2615
|
fillRule={0}
|
|
2554
2616
|
propList={
|
|
@@ -2613,7 +2675,6 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
|
|
|
2613
2675
|
align="xMidYMid"
|
|
2614
2676
|
bbHeight={24}
|
|
2615
2677
|
bbWidth={24}
|
|
2616
|
-
color={4278219750}
|
|
2617
2678
|
focusable={false}
|
|
2618
2679
|
height={24}
|
|
2619
2680
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -2636,19 +2697,26 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
|
|
|
2636
2697
|
},
|
|
2637
2698
|
]
|
|
2638
2699
|
}
|
|
2639
|
-
tintColor=
|
|
2700
|
+
tintColor="#0073E6"
|
|
2640
2701
|
vbHeight={24}
|
|
2641
2702
|
vbWidth={24}
|
|
2642
2703
|
width={24}
|
|
2643
2704
|
>
|
|
2644
|
-
<RNSVGGroup
|
|
2705
|
+
<RNSVGGroup
|
|
2706
|
+
fill={
|
|
2707
|
+
{
|
|
2708
|
+
"payload": 4278190080,
|
|
2709
|
+
"type": 0,
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
>
|
|
2645
2713
|
<RNSVGPath
|
|
2646
2714
|
clipRule={0}
|
|
2647
2715
|
d="M16.2929 5.29289c.3905-.39052 1.0237-.39052 1.4142 0l6 6.00001c.3905.3905.3905 1.0237 0 1.4142l-6 6c-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142L21.5858 12l-5.2929-5.29289c-.3905-.39053-.3905-1.02369 0-1.41422Z"
|
|
2648
2716
|
fill={
|
|
2649
|
-
|
|
2650
|
-
2,
|
|
2651
|
-
|
|
2717
|
+
{
|
|
2718
|
+
"type": 2,
|
|
2719
|
+
}
|
|
2652
2720
|
}
|
|
2653
2721
|
fillRule={0}
|
|
2654
2722
|
propList={
|
|
@@ -2793,7 +2861,6 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
|
|
|
2793
2861
|
align="xMidYMid"
|
|
2794
2862
|
bbHeight={16}
|
|
2795
2863
|
bbWidth={16}
|
|
2796
|
-
color={4283766755}
|
|
2797
2864
|
focusable={false}
|
|
2798
2865
|
height={16}
|
|
2799
2866
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -2816,18 +2883,25 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
|
|
|
2816
2883
|
},
|
|
2817
2884
|
]
|
|
2818
2885
|
}
|
|
2819
|
-
tintColor=
|
|
2886
|
+
tintColor="#5517E3"
|
|
2820
2887
|
vbHeight={17}
|
|
2821
2888
|
vbWidth={16}
|
|
2822
2889
|
width={16}
|
|
2823
2890
|
>
|
|
2824
|
-
<RNSVGGroup
|
|
2891
|
+
<RNSVGGroup
|
|
2892
|
+
fill={
|
|
2893
|
+
{
|
|
2894
|
+
"payload": 4278190080,
|
|
2895
|
+
"type": 0,
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
>
|
|
2825
2899
|
<RNSVGPath
|
|
2826
2900
|
d="M5.64418.97979c.23675-.63972 1.14156-.63972 1.37831 0l1.27772 3.45256a.73476.73476 0 0 0 .43411.43411l3.45258 1.27772c.6397.23675.6397 1.14156 0 1.37831L8.73432 8.80021a.73476.73476 0 0 0-.43411.43411L7.02249 12.6869c-.23675.6397-1.14156.6397-1.37831 0L4.36646 9.23432a.73476.73476 0 0 0-.43411-.43411L.47979 7.52249c-.63972-.23675-.63972-1.14156 0-1.37831l3.45256-1.27772a.73476.73476 0 0 0 .43411-.43411L5.64418.97979Zm6.65942 9.10601c.1246-.33665.6008-.33665.7255 0l.6724 1.8172a.38723.38723 0 0 0 .2285.2285l1.8172.6725c.3366.1246.3366.6008 0 .7254l-1.8172.6725a.3868.3868 0 0 0-.2285.2284l-.6724 1.8172c-.1247.3367-.6009.3367-.7255 0l-.6725-1.8172a.38638.38638 0 0 0-.2284-.2284l-1.81717-.6725c-.3367-.1246-.3367-.6008 0-.7254l1.81717-.6725a.3868.3868 0 0 0 .2284-.2285l.6725-1.8172Z"
|
|
2827
2901
|
fill={
|
|
2828
|
-
|
|
2829
|
-
2,
|
|
2830
|
-
|
|
2902
|
+
{
|
|
2903
|
+
"type": 2,
|
|
2904
|
+
}
|
|
2831
2905
|
}
|
|
2832
2906
|
propList={
|
|
2833
2907
|
[
|
|
@@ -2946,7 +3020,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
|
|
|
2946
3020
|
"text": undefined,
|
|
2947
3021
|
}
|
|
2948
3022
|
}
|
|
2949
|
-
accessible={
|
|
3023
|
+
accessible={false}
|
|
2950
3024
|
collapsable={false}
|
|
2951
3025
|
focusable={true}
|
|
2952
3026
|
onBlur={[Function]}
|
|
@@ -3034,7 +3108,14 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
|
|
|
3034
3108
|
vbHeight={24}
|
|
3035
3109
|
vbWidth={24}
|
|
3036
3110
|
>
|
|
3037
|
-
<RNSVGGroup
|
|
3111
|
+
<RNSVGGroup
|
|
3112
|
+
fill={
|
|
3113
|
+
{
|
|
3114
|
+
"payload": 4278190080,
|
|
3115
|
+
"type": 0,
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
>
|
|
3038
3119
|
<RNSVGPath
|
|
3039
3120
|
d="m7 12 4 4 7-7"
|
|
3040
3121
|
fill={null}
|
|
@@ -3049,7 +3130,12 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
|
|
|
3049
3130
|
"strokeLinejoin",
|
|
3050
3131
|
]
|
|
3051
3132
|
}
|
|
3052
|
-
stroke={
|
|
3133
|
+
stroke={
|
|
3134
|
+
{
|
|
3135
|
+
"payload": 4294967295,
|
|
3136
|
+
"type": 0,
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3053
3139
|
strokeDasharray={null}
|
|
3054
3140
|
strokeLinecap={1}
|
|
3055
3141
|
strokeLinejoin={1}
|
|
@@ -3241,7 +3327,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 2`] = `
|
|
|
3241
3327
|
"text": undefined,
|
|
3242
3328
|
}
|
|
3243
3329
|
}
|
|
3244
|
-
accessible={
|
|
3330
|
+
accessible={false}
|
|
3245
3331
|
collapsable={false}
|
|
3246
3332
|
focusable={true}
|
|
3247
3333
|
onBlur={[Function]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { StyleSheet, View } from "react-native";
|
|
3
|
+
import { WithTestID } from "src/utils/types";
|
|
4
|
+
import { IOColors, hexToRgba } from "../../core";
|
|
4
5
|
|
|
5
6
|
/* Logos */
|
|
6
|
-
import LogoPaymentCardPayPal from "./svg/LogoPaymentCardPayPal";
|
|
7
7
|
import LogoPaymentCardBancomatPay from "./svg/LogoPaymentCardBancomatPay";
|
|
8
|
+
import LogoPaymentCardPayPal from "./svg/LogoPaymentCardPayPal";
|
|
8
9
|
import { SVGCardLogoProps } from "./types";
|
|
9
10
|
|
|
10
11
|
export const IOPaymentCardLogos = {
|
|
@@ -14,13 +15,14 @@ export const IOPaymentCardLogos = {
|
|
|
14
15
|
|
|
15
16
|
export type IOLogoPaymentCardType = keyof typeof IOPaymentCardLogos;
|
|
16
17
|
|
|
17
|
-
type IOPaymentLogos = {
|
|
18
|
+
type IOPaymentLogos = WithTestID<{
|
|
18
19
|
name: IOLogoPaymentCardType;
|
|
20
|
+
accessibilityLabel: string;
|
|
19
21
|
align: "start" | "center" | "end";
|
|
20
22
|
width?: "100%" | number;
|
|
21
23
|
height?: number;
|
|
22
24
|
debugMode?: boolean;
|
|
23
|
-
}
|
|
25
|
+
}>;
|
|
24
26
|
|
|
25
27
|
const preserveAspectRatioValues: Record<
|
|
26
28
|
IOPaymentLogos["align"],
|
|
@@ -42,12 +44,19 @@ const LogoPaymentCard = ({
|
|
|
42
44
|
width = "100%",
|
|
43
45
|
height = 32,
|
|
44
46
|
align = "center",
|
|
47
|
+
accessibilityLabel,
|
|
48
|
+
testID,
|
|
45
49
|
debugMode = false,
|
|
46
50
|
...props
|
|
47
51
|
}: IOPaymentLogos) => {
|
|
48
52
|
const LogoElement = IOPaymentCardLogos[name];
|
|
49
53
|
return (
|
|
50
|
-
<View
|
|
54
|
+
<View
|
|
55
|
+
accessible={true}
|
|
56
|
+
accessibilityLabel={accessibilityLabel}
|
|
57
|
+
style={[{ width, height }, debugMode && styles.debugMode]}
|
|
58
|
+
testID={testID}
|
|
59
|
+
>
|
|
51
60
|
<LogoElement
|
|
52
61
|
preserveAspectRatio={preserveAspectRatioValues[align]}
|
|
53
62
|
{...props}
|
|
@@ -49,13 +49,18 @@ export const RadioButtonLabel = ({
|
|
|
49
49
|
|
|
50
50
|
return (
|
|
51
51
|
<Pressable
|
|
52
|
-
|
|
52
|
+
accessibilityRole="radio"
|
|
53
|
+
accessibilityState={{
|
|
54
|
+
checked: checked ?? toggleValue,
|
|
55
|
+
disabled: !!disabled
|
|
56
|
+
}}
|
|
53
57
|
onPress={toggleRadioButton}
|
|
54
|
-
testID="AnimatedRadioButton"
|
|
55
58
|
style={{
|
|
56
59
|
alignSelf: "flex-start",
|
|
57
60
|
opacity: disabled ? DISABLED_OPACITY : 1
|
|
58
61
|
}}
|
|
62
|
+
disabled={disabled}
|
|
63
|
+
testID="AnimatedRadioButton"
|
|
59
64
|
>
|
|
60
65
|
<View
|
|
61
66
|
style={[
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React, { useEffect } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Pressable, PressableProps, StyleSheet } from "react-native";
|
|
3
3
|
import Animated, {
|
|
4
|
-
|
|
5
|
-
useAnimatedStyle,
|
|
4
|
+
Easing,
|
|
6
5
|
interpolate,
|
|
6
|
+
interpolateColor,
|
|
7
|
+
useAnimatedStyle,
|
|
8
|
+
useSharedValue,
|
|
7
9
|
withSpring,
|
|
8
|
-
withTiming
|
|
9
|
-
Easing,
|
|
10
|
-
interpolateColor
|
|
10
|
+
withTiming
|
|
11
11
|
} from "react-native-reanimated";
|
|
12
|
-
import { IOColors } from "../../core/IOColors";
|
|
13
12
|
import { IOSpringValues } from "../../core/IOAnimations";
|
|
14
|
-
import {
|
|
13
|
+
import { IOColors } from "../../core/IOColors";
|
|
15
14
|
import { IOSwitchVisualParams } from "../../core/IOStyles";
|
|
15
|
+
import { AnimatedTick } from "../common/AnimatedTick";
|
|
16
16
|
|
|
17
17
|
type Props = {
|
|
18
18
|
checked?: boolean;
|
|
@@ -106,6 +106,7 @@ export const AnimatedSwitch = ({ checked, onPress, disabled }: OwnProps) => {
|
|
|
106
106
|
|
|
107
107
|
return (
|
|
108
108
|
<Pressable
|
|
109
|
+
accessibilityRole="switch"
|
|
109
110
|
disabled={disabled}
|
|
110
111
|
testID="AnimatedSwitch"
|
|
111
112
|
onPress={onPress}
|
|
@@ -78,11 +78,16 @@ export const SwitchLabel = ({
|
|
|
78
78
|
<Pressable
|
|
79
79
|
disabled={disabled}
|
|
80
80
|
onPress={toggleCheckbox}
|
|
81
|
-
|
|
81
|
+
accessibilityRole="switch"
|
|
82
|
+
accessibilityState={{
|
|
83
|
+
checked: checked ?? toggleValue,
|
|
84
|
+
disabled: !!disabled
|
|
85
|
+
}}
|
|
82
86
|
style={{
|
|
83
87
|
alignSelf: "flex-start",
|
|
84
88
|
opacity: disabled ? DISABLED_OPACITY : 1
|
|
85
89
|
}}
|
|
90
|
+
testID="SwitchLabel"
|
|
86
91
|
>
|
|
87
92
|
<View
|
|
88
93
|
style={[
|