@pagopa/io-app-design-system 1.28.1 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/lib/commonjs/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +24 -12
  2. package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +92 -18
  3. package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +96 -48
  4. package/lib/commonjs/components/listitems/ListItemNav.js +13 -6
  5. package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
  6. package/lib/commonjs/components/listitems/ListItemRadio.js +10 -0
  7. package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
  8. package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js +10 -3
  9. package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js.map +1 -1
  10. package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +212 -68
  11. package/lib/commonjs/components/textInput/TextInputBase.js +4 -2
  12. package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
  13. package/lib/module/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +24 -12
  14. package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +92 -18
  15. package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +96 -48
  16. package/lib/module/components/listitems/ListItemNav.js +15 -8
  17. package/lib/module/components/listitems/ListItemNav.js.map +1 -1
  18. package/lib/module/components/listitems/ListItemRadio.js +11 -1
  19. package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
  20. package/lib/module/components/listitems/ListItemRadioWithAmount.js +10 -3
  21. package/lib/module/components/listitems/ListItemRadioWithAmount.js.map +1 -1
  22. package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +212 -68
  23. package/lib/module/components/textInput/TextInputBase.js +4 -2
  24. package/lib/module/components/textInput/TextInputBase.js.map +1 -1
  25. package/lib/typescript/components/listitems/ListItemNav.d.ts +4 -5
  26. package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
  27. package/lib/typescript/components/listitems/ListItemRadio.d.ts +6 -0
  28. package/lib/typescript/components/listitems/ListItemRadio.d.ts.map +1 -1
  29. package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts.map +1 -1
  30. package/lib/typescript/components/textInput/TextInputBase.d.ts +2 -1
  31. package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
  32. package/package.json +2 -2
  33. package/src/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +24 -12
  34. package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +92 -18
  35. package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +96 -48
  36. package/src/components/listitems/ListItemNav.tsx +27 -10
  37. package/src/components/listitems/ListItemRadio.tsx +14 -3
  38. package/src/components/listitems/ListItemRadioWithAmount.tsx +4 -3
  39. package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +212 -68
  40. package/src/components/textInput/TextInputBase.tsx +4 -1
@@ -112,7 +112,6 @@ exports[`Test Buttons Components - Experimental Enabled ButtonExtendedOutline Sn
112
112
  align="xMidYMid"
113
113
  bbHeight={24}
114
114
  bbWidth={24}
115
- color={4278219750}
116
115
  focusable={false}
117
116
  height={24}
118
117
  importantForAccessibility="no-hide-descendants"
@@ -135,19 +134,26 @@ exports[`Test Buttons Components - Experimental Enabled ButtonExtendedOutline Sn
135
134
  },
136
135
  ]
137
136
  }
138
- tintColor={4278219750}
137
+ tintColor="#0073E6"
139
138
  vbHeight={24}
140
139
  vbWidth={24}
141
140
  width={24}
142
141
  >
143
- <RNSVGGroup>
142
+ <RNSVGGroup
143
+ fill={
144
+ {
145
+ "payload": 4278190080,
146
+ "type": 0,
147
+ }
148
+ }
149
+ >
144
150
  <RNSVGPath
145
151
  clipRule={0}
146
152
  d="M0 12C0 5.3726 5.3726 0 12 0s12 5.3726 12 12-5.3726 12-12 12S0 18.6274 0 12Zm2 0C2 6.47717 6.47717 2 12 2c5.5228 0 10 4.47717 10 10 0 5.5228-4.4772 10-10 10-5.52283 0-10-4.4772-10-10Zm10.0281-4.50455c.8439 0 1.5281-.68415 1.5281-1.52809 0-.84394-.6842-1.52809-1.5281-1.52809-.844 0-1.5281.68415-1.5281 1.52809 0 .84394.6841 1.52809 1.5281 1.52809Zm0 1.94382h.0005c.5678 0 1.0281.46029 1.0281 1.02813v8.0045c0 .5678-.4603 1.0281-1.0281 1.0281h-.0005C11.4603 19.5 11 19.0397 11 18.4719v-8.0045c0-.56784.4603-1.02813 1.0281-1.02813Z"
147
153
  fill={
148
- [
149
- 2,
150
- ]
154
+ {
155
+ "type": 2,
156
+ }
151
157
  }
152
158
  fillRule={0}
153
159
  propList={
@@ -572,7 +578,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButton Snapshot 1`]
572
578
  }
573
579
  bbHeight={24}
574
580
  bbWidth={24}
575
- color={4278927075}
576
581
  focusable={false}
577
582
  height={24}
578
583
  importantForAccessibility="no-hide-descendants"
@@ -595,19 +600,26 @@ exports[`Test Buttons Components - Experimental Enabled IconButton Snapshot 1`]
595
600
  },
596
601
  ]
597
602
  }
598
- tintColor={4278927075}
603
+ tintColor="#0B3EE3"
599
604
  vbHeight={24}
600
605
  vbWidth={24}
601
606
  width={24}
602
607
  >
603
- <RNSVGGroup>
608
+ <RNSVGGroup
609
+ fill={
610
+ {
611
+ "payload": 4278190080,
612
+ "type": 0,
613
+ }
614
+ }
615
+ >
604
616
  <RNSVGPath
605
617
  clipRule={0}
606
618
  d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
607
619
  fill={
608
- [
609
- 2,
610
- ]
620
+ {
621
+ "type": 2,
622
+ }
611
623
  }
612
624
  fillRule={0}
613
625
  propList={
@@ -698,7 +710,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonContained Snap
698
710
  }
699
711
  bbHeight={24}
700
712
  bbWidth={24}
701
- color={4278927075}
702
713
  focusable={false}
703
714
  height={24}
704
715
  importantForAccessibility="no-hide-descendants"
@@ -721,19 +732,26 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonContained Snap
721
732
  },
722
733
  ]
723
734
  }
724
- tintColor={4278927075}
735
+ tintColor="#0B3EE3"
725
736
  vbHeight={24}
726
737
  vbWidth={24}
727
738
  width={24}
728
739
  >
729
- <RNSVGGroup>
740
+ <RNSVGGroup
741
+ fill={
742
+ {
743
+ "payload": 4278190080,
744
+ "type": 0,
745
+ }
746
+ }
747
+ >
730
748
  <RNSVGPath
731
749
  clipRule={0}
732
750
  d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
733
751
  fill={
734
- [
735
- 2,
736
- ]
752
+ {
753
+ "type": 2,
754
+ }
737
755
  }
738
756
  fillRule={0}
739
757
  propList={
@@ -822,7 +840,6 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonSolid Snapshot
822
840
  align="xMidYMid"
823
841
  bbHeight={24}
824
842
  bbWidth={24}
825
- color={4294967295}
826
843
  focusable={false}
827
844
  height={24}
828
845
  importantForAccessibility="no-hide-descendants"
@@ -845,19 +862,26 @@ exports[`Test Buttons Components - Experimental Enabled IconButtonSolid Snapshot
845
862
  },
846
863
  ]
847
864
  }
848
- tintColor={4294967295}
865
+ tintColor="#FFFFFF"
849
866
  vbHeight={24}
850
867
  vbWidth={24}
851
868
  width={24}
852
869
  >
853
- <RNSVGGroup>
870
+ <RNSVGGroup
871
+ fill={
872
+ {
873
+ "payload": 4278190080,
874
+ "type": 0,
875
+ }
876
+ }
877
+ >
854
878
  <RNSVGPath
855
879
  clipRule={0}
856
880
  d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
857
881
  fill={
858
- [
859
- 2,
860
- ]
882
+ {
883
+ "type": 2,
884
+ }
861
885
  }
862
886
  fillRule={0}
863
887
  propList={
@@ -985,7 +1009,6 @@ exports[`Test Buttons Components ButtonExtendedOutline Snapshot 1`] = `
985
1009
  align="xMidYMid"
986
1010
  bbHeight={24}
987
1011
  bbWidth={24}
988
- color={4278219750}
989
1012
  focusable={false}
990
1013
  height={24}
991
1014
  importantForAccessibility="no-hide-descendants"
@@ -1008,19 +1031,26 @@ exports[`Test Buttons Components ButtonExtendedOutline Snapshot 1`] = `
1008
1031
  },
1009
1032
  ]
1010
1033
  }
1011
- tintColor={4278219750}
1034
+ tintColor="#0073E6"
1012
1035
  vbHeight={24}
1013
1036
  vbWidth={24}
1014
1037
  width={24}
1015
1038
  >
1016
- <RNSVGGroup>
1039
+ <RNSVGGroup
1040
+ fill={
1041
+ {
1042
+ "payload": 4278190080,
1043
+ "type": 0,
1044
+ }
1045
+ }
1046
+ >
1017
1047
  <RNSVGPath
1018
1048
  clipRule={0}
1019
1049
  d="M0 12C0 5.3726 5.3726 0 12 0s12 5.3726 12 12-5.3726 12-12 12S0 18.6274 0 12Zm2 0C2 6.47717 6.47717 2 12 2c5.5228 0 10 4.47717 10 10 0 5.5228-4.4772 10-10 10-5.52283 0-10-4.4772-10-10Zm10.0281-4.50455c.8439 0 1.5281-.68415 1.5281-1.52809 0-.84394-.6842-1.52809-1.5281-1.52809-.844 0-1.5281.68415-1.5281 1.52809 0 .84394.6841 1.52809 1.5281 1.52809Zm0 1.94382h.0005c.5678 0 1.0281.46029 1.0281 1.02813v8.0045c0 .5678-.4603 1.0281-1.0281 1.0281h-.0005C11.4603 19.5 11 19.0397 11 18.4719v-8.0045c0-.56784.4603-1.02813 1.0281-1.02813Z"
1020
1050
  fill={
1021
- [
1022
- 2,
1023
- ]
1051
+ {
1052
+ "type": 2,
1053
+ }
1024
1054
  }
1025
1055
  fillRule={0}
1026
1056
  propList={
@@ -1442,7 +1472,6 @@ exports[`Test Buttons Components IconButton Snapshot 1`] = `
1442
1472
  }
1443
1473
  bbHeight={24}
1444
1474
  bbWidth={24}
1445
- color={4278219750}
1446
1475
  focusable={false}
1447
1476
  height={24}
1448
1477
  importantForAccessibility="no-hide-descendants"
@@ -1465,19 +1494,26 @@ exports[`Test Buttons Components IconButton Snapshot 1`] = `
1465
1494
  },
1466
1495
  ]
1467
1496
  }
1468
- tintColor={4278219750}
1497
+ tintColor="#0073E6"
1469
1498
  vbHeight={24}
1470
1499
  vbWidth={24}
1471
1500
  width={24}
1472
1501
  >
1473
- <RNSVGGroup>
1502
+ <RNSVGGroup
1503
+ fill={
1504
+ {
1505
+ "payload": 4278190080,
1506
+ "type": 0,
1507
+ }
1508
+ }
1509
+ >
1474
1510
  <RNSVGPath
1475
1511
  clipRule={0}
1476
1512
  d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
1477
1513
  fill={
1478
- [
1479
- 2,
1480
- ]
1514
+ {
1515
+ "type": 2,
1516
+ }
1481
1517
  }
1482
1518
  fillRule={0}
1483
1519
  propList={
@@ -1568,7 +1604,6 @@ exports[`Test Buttons Components IconButtonContained Snapshot 1`] = `
1568
1604
  }
1569
1605
  bbHeight={24}
1570
1606
  bbWidth={24}
1571
- color={4278219750}
1572
1607
  focusable={false}
1573
1608
  height={24}
1574
1609
  importantForAccessibility="no-hide-descendants"
@@ -1591,19 +1626,26 @@ exports[`Test Buttons Components IconButtonContained Snapshot 1`] = `
1591
1626
  },
1592
1627
  ]
1593
1628
  }
1594
- tintColor={4278219750}
1629
+ tintColor="#0073E6"
1595
1630
  vbHeight={24}
1596
1631
  vbWidth={24}
1597
1632
  width={24}
1598
1633
  >
1599
- <RNSVGGroup>
1634
+ <RNSVGGroup
1635
+ fill={
1636
+ {
1637
+ "payload": 4278190080,
1638
+ "type": 0,
1639
+ }
1640
+ }
1641
+ >
1600
1642
  <RNSVGPath
1601
1643
  clipRule={0}
1602
1644
  d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
1603
1645
  fill={
1604
- [
1605
- 2,
1606
- ]
1646
+ {
1647
+ "type": 2,
1648
+ }
1607
1649
  }
1608
1650
  fillRule={0}
1609
1651
  propList={
@@ -1692,7 +1734,6 @@ exports[`Test Buttons Components IconButtonSolid Snapshot 1`] = `
1692
1734
  align="xMidYMid"
1693
1735
  bbHeight={24}
1694
1736
  bbWidth={24}
1695
- color={4294967295}
1696
1737
  focusable={false}
1697
1738
  height={24}
1698
1739
  importantForAccessibility="no-hide-descendants"
@@ -1715,19 +1756,26 @@ exports[`Test Buttons Components IconButtonSolid Snapshot 1`] = `
1715
1756
  },
1716
1757
  ]
1717
1758
  }
1718
- tintColor={4294967295}
1759
+ tintColor="#FFFFFF"
1719
1760
  vbHeight={24}
1720
1761
  vbWidth={24}
1721
1762
  width={24}
1722
1763
  >
1723
- <RNSVGGroup>
1764
+ <RNSVGGroup
1765
+ fill={
1766
+ {
1767
+ "payload": 4278190080,
1768
+ "type": 0,
1769
+ }
1770
+ }
1771
+ >
1724
1772
  <RNSVGPath
1725
1773
  clipRule={0}
1726
1774
  d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
1727
1775
  fill={
1728
- [
1729
- 2,
1730
- ]
1776
+ {
1777
+ "type": 2,
1778
+ }
1731
1779
  }
1732
1780
  fillRule={0}
1733
1781
  propList={
@@ -1,5 +1,11 @@
1
1
  import React, { useCallback } from "react";
2
- import { GestureResponderEvent, Pressable, View } from "react-native";
2
+ import {
3
+ GestureResponderEvent,
4
+ Image,
5
+ Pressable,
6
+ StyleSheet,
7
+ View
8
+ } from "react-native";
3
9
  import Animated, {
4
10
  Extrapolate,
5
11
  interpolate,
@@ -14,6 +20,7 @@ import {
14
20
  IOListItemStyles,
15
21
  IOListItemVisualParams,
16
22
  IOScaleValues,
23
+ IOSelectionListItemVisualParams,
17
24
  IOSpringValues,
18
25
  IOStyles,
19
26
  hexToRgba,
@@ -23,7 +30,6 @@ import {
23
30
  import { WithTestID } from "../../utils/types";
24
31
  import { Badge } from "../badge";
25
32
  import { IOIcons, Icon } from "../icons";
26
- import { IOLogoPaymentType, LogoPayment } from "../logos";
27
33
  import { HSpacer, VSpacer } from "../spacer";
28
34
  import { Caption, H6, LabelSmall } from "../typography";
29
35
  import { LoadingSpinner } from "../loadingSpinner";
@@ -50,19 +56,26 @@ type ListItemNavPartialProps = WithTestID<{
50
56
  }>;
51
57
 
52
58
  export type ListItemNavGraphicProps =
53
- | { icon?: never; iconColor?: never; paymentLogo: IOLogoPaymentType }
54
- | { icon: IOIcons; iconColor?: IOColors; paymentLogo?: never }
55
- | { icon?: never; iconColor?: never; paymentLogo?: never };
59
+ | { icon?: never; iconColor?: never; paymentLogoUri: string }
60
+ | { icon: IOIcons; iconColor?: IOColors; paymentLogoUri?: never }
61
+ | { icon?: never; iconColor?: never; paymentLogoUri?: never };
56
62
 
57
63
  export type ListItemNav = ListItemNavPartialProps & ListItemNavGraphicProps;
58
64
 
65
+ const styles = StyleSheet.create({
66
+ paymentLogoSize: {
67
+ width: IOSelectionListItemVisualParams.iconSize,
68
+ height: IOSelectionListItemVisualParams.iconSize
69
+ }
70
+ });
71
+
59
72
  export const ListItemNav = ({
60
73
  value,
61
74
  description,
62
75
  onPress,
63
76
  icon,
64
77
  iconColor = "grey-450",
65
- paymentLogo,
78
+ paymentLogoUri,
66
79
  accessibilityLabel,
67
80
  testID,
68
81
  hideChevron = false,
@@ -203,12 +216,16 @@ export const ListItemNav = ({
203
216
  />
204
217
  </View>
205
218
  )}
206
- {paymentLogo && (
219
+ {paymentLogoUri && (
207
220
  <View style={{ marginRight: IOListItemVisualParams.iconMargin }}>
208
- <LogoPayment
209
- name={paymentLogo}
210
- size={IOListItemVisualParams.iconSize}
221
+ <Image
222
+ source={{ uri: paymentLogoUri }}
223
+ style={styles.paymentLogoSize}
211
224
  />
225
+ {/* <LogoPayment
226
+ name={paymentLogoUri}
227
+ size={IOListItemVisualParams.iconSize}
228
+ /> */}
212
229
  </View>
213
230
  )}
214
231
  <View style={IOStyles.flex}>{listItemNavContent}</View>
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { useCallback, useState } from "react";
3
- import { Pressable, View } from "react-native";
3
+ import { Image, Pressable, StyleSheet, View } from "react-native";
4
4
  import ReactNativeHapticFeedback from "react-native-haptic-feedback";
5
5
  import Animated, {
6
6
  Extrapolate,
@@ -30,8 +30,9 @@ import { HSpacer, VSpacer } from "../spacer";
30
30
  import { H6, LabelSmall } from "../typography";
31
31
 
32
32
  type ListItemRadioGraphicProps =
33
- | { icon?: never; paymentLogo: IOLogoPaymentType }
34
- | { icon: IOIcons; paymentLogo?: never };
33
+ | { icon?: never; paymentLogo: IOLogoPaymentType; uri?: never }
34
+ | { icon?: never; paymentLogo?: never; uri: string }
35
+ | { icon: IOIcons; paymentLogo?: never; uri?: never };
35
36
 
36
37
  type ListItemRadioLoadingProps =
37
38
  | {
@@ -64,6 +65,13 @@ type OwnProps = Props &
64
65
  "onPress" | "accessibilityLabel" | "disabled"
65
66
  >;
66
67
 
68
+ const styles = StyleSheet.create({
69
+ imageSize: {
70
+ width: IOSelectionListItemVisualParams.iconSize,
71
+ height: IOSelectionListItemVisualParams.iconSize
72
+ }
73
+ });
74
+
67
75
  /**
68
76
  * `ListItemRadio` component with the automatic state management that uses a {@link AnimatedCheckBox}
69
77
  * The toggleValue change when a `onPress` event is received and dispatch the `onValueChange`.
@@ -237,6 +245,9 @@ export const ListItemRadio = ({
237
245
  size={IOSelectionListItemVisualParams.iconSize}
238
246
  />
239
247
  )}
248
+ {startImage.uri && (
249
+ <Image source={startImage} style={styles.imageSize} />
250
+ )}
240
251
  {startImage.paymentLogo && (
241
252
  <LogoPayment
242
253
  name={startImage.paymentLogo}
@@ -40,9 +40,9 @@ export const ListItemRadioWithAmount = (
40
40
 
41
41
  return (
42
42
  <PressableListItemBase onPress={pressHandler}>
43
- <View>
44
- <LabelSmallAlt color={theme["textBody-default"]}>
45
- {props.label}
43
+ <View style={{ flexShrink: 1 }}>
44
+ <LabelSmallAlt numberOfLines={1} color={theme["textBody-default"]}>
45
+ {props.label} con nome molto molto lungo
46
46
  </LabelSmallAlt>
47
47
  {props.isSuggested && (
48
48
  <>
@@ -58,6 +58,7 @@ export const ListItemRadioWithAmount = (
58
58
  )}
59
59
  </View>
60
60
  <View pointerEvents="none" style={{ flexDirection: "row" }}>
61
+ <HSpacer size={8} />
61
62
  <H6 color={theme["interactiveElem-default"]}>
62
63
  {props.formattedAmountString}
63
64
  </H6>