@pagopa/io-app-design-system 1.1.3 → 1.3.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 (247) hide show
  1. package/README.md +1 -0
  2. package/lib/commonjs/components/accordion/RawAccordion.js.map +1 -1
  3. package/lib/commonjs/components/alert/Alert.js.map +1 -1
  4. package/lib/commonjs/components/avatar/__test__/avatar.test.js.map +1 -1
  5. package/lib/commonjs/components/badge/Badge.js.map +1 -1
  6. package/lib/commonjs/components/banner/Banner.js +1 -1
  7. package/lib/commonjs/components/banner/Banner.js.map +1 -1
  8. package/lib/commonjs/components/banner/__test__/banner.test.js.map +1 -1
  9. package/lib/commonjs/components/buttons/ButtonExtendedOutline.js.map +1 -1
  10. package/lib/commonjs/components/buttons/ButtonOutline.js +3 -3
  11. package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
  12. package/lib/commonjs/components/buttons/ButtonSolid.js +3 -3
  13. package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
  14. package/lib/commonjs/components/common/AnimatedTick.js +2 -1
  15. package/lib/commonjs/components/common/AnimatedTick.js.map +1 -1
  16. package/lib/commonjs/components/contentWrapper/ContentWrapper.js.map +1 -1
  17. package/lib/commonjs/components/icons/Icon.js +124 -120
  18. package/lib/commonjs/components/icons/Icon.js.map +1 -1
  19. package/lib/commonjs/components/icons/svg/IconLight.js +31 -0
  20. package/lib/commonjs/components/icons/svg/IconLight.js.map +1 -0
  21. package/lib/commonjs/components/icons/svg/IconLightFilled.js +31 -0
  22. package/lib/commonjs/components/icons/svg/IconLightFilled.js.map +1 -0
  23. package/lib/commonjs/components/icons/svg/originals/IconLight.svg +3 -0
  24. package/lib/commonjs/components/icons/svg/originals/IconLightFilled.svg +3 -0
  25. package/lib/commonjs/components/index.js +11 -0
  26. package/lib/commonjs/components/index.js.map +1 -1
  27. package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
  28. package/lib/commonjs/components/listitems/ListItemIDP.js.map +1 -1
  29. package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
  30. package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
  31. package/lib/commonjs/components/listitems/PressableListItemsBase.js.map +1 -1
  32. package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
  33. package/lib/commonjs/components/listitems/hooks/useListItemSpringAnimation.js.map +1 -1
  34. package/lib/commonjs/components/pictograms/Pictogram.js +37 -31
  35. package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
  36. package/lib/commonjs/components/pictograms/svg/PictogramFocusOn.js +56 -0
  37. package/lib/commonjs/components/pictograms/svg/PictogramFocusOn.js.map +1 -0
  38. package/lib/commonjs/components/pictograms/svg/PictogramSuccess.js +61 -0
  39. package/lib/commonjs/components/pictograms/svg/PictogramSuccess.js.map +1 -0
  40. package/lib/commonjs/components/pictograms/svg/originals/PictogramFocusOn.svg +19 -0
  41. package/lib/commonjs/components/pictograms/svg/originals/PictogramSuccess.svg +35 -0
  42. package/lib/commonjs/components/spacer/Spacer.js.map +1 -1
  43. package/lib/commonjs/components/tabs/TabItem.js +123 -0
  44. package/lib/commonjs/components/tabs/TabItem.js.map +1 -0
  45. package/lib/commonjs/components/tabs/TabNavigation.js +80 -0
  46. package/lib/commonjs/components/tabs/TabNavigation.js.map +1 -0
  47. package/lib/commonjs/components/tabs/index.js +20 -0
  48. package/lib/commonjs/components/tabs/index.js.map +1 -0
  49. package/lib/commonjs/components/typography/Body.js.map +1 -1
  50. package/lib/commonjs/components/typography/Factory.js.map +1 -1
  51. package/lib/commonjs/components/typography/H1.js.map +1 -1
  52. package/lib/commonjs/components/typography/H2.js.map +1 -1
  53. package/lib/commonjs/components/typography/H4.js.map +1 -1
  54. package/lib/commonjs/components/typography/H5.js.map +1 -1
  55. package/lib/commonjs/components/typography/H6.js.map +1 -1
  56. package/lib/commonjs/components/typography/Label.js.map +1 -1
  57. package/lib/commonjs/components/typography/LabelHeader.js +37 -0
  58. package/lib/commonjs/components/typography/LabelHeader.js.map +1 -0
  59. package/lib/commonjs/components/typography/LabelSmall.js.map +1 -1
  60. package/lib/commonjs/components/typography/Monospace.js.map +1 -1
  61. package/lib/commonjs/components/typography/common.js +2 -2
  62. package/lib/commonjs/components/typography/common.js.map +1 -1
  63. package/lib/commonjs/utils/hooks/useSpringPressProgressValue.js +31 -0
  64. package/lib/commonjs/utils/hooks/useSpringPressProgressValue.js.map +1 -0
  65. package/lib/commonjs/utils/image.js.map +1 -1
  66. package/lib/module/components/accordion/RawAccordion.js.map +1 -1
  67. package/lib/module/components/alert/Alert.js.map +1 -1
  68. package/lib/module/components/avatar/__test__/avatar.test.js.map +1 -1
  69. package/lib/module/components/badge/Badge.js.map +1 -1
  70. package/lib/module/components/banner/Banner.js +1 -1
  71. package/lib/module/components/banner/Banner.js.map +1 -1
  72. package/lib/module/components/banner/__test__/banner.test.js.map +1 -1
  73. package/lib/module/components/buttons/ButtonExtendedOutline.js.map +1 -1
  74. package/lib/module/components/buttons/ButtonOutline.js +3 -3
  75. package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
  76. package/lib/module/components/buttons/ButtonSolid.js +3 -3
  77. package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
  78. package/lib/module/components/buttons/IconButtonContained.js.map +1 -1
  79. package/lib/module/components/buttons/IconButtonSolid.js.map +1 -1
  80. package/lib/module/components/common/AnimatedTick.js +2 -1
  81. package/lib/module/components/common/AnimatedTick.js.map +1 -1
  82. package/lib/module/components/contentWrapper/ContentWrapper.js.map +1 -1
  83. package/lib/module/components/icons/Icon.js +124 -120
  84. package/lib/module/components/icons/Icon.js.map +1 -1
  85. package/lib/module/components/icons/svg/IconLight.js +23 -0
  86. package/lib/module/components/icons/svg/IconLight.js.map +1 -0
  87. package/lib/module/components/icons/svg/IconLightFilled.js +23 -0
  88. package/lib/module/components/icons/svg/IconLightFilled.js.map +1 -0
  89. package/lib/module/components/icons/svg/originals/IconLight.svg +3 -0
  90. package/lib/module/components/icons/svg/originals/IconLightFilled.svg +3 -0
  91. package/lib/module/components/index.js +1 -0
  92. package/lib/module/components/index.js.map +1 -1
  93. package/lib/module/components/listitems/ListItemAction.js.map +1 -1
  94. package/lib/module/components/listitems/ListItemIDP.js.map +1 -1
  95. package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
  96. package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
  97. package/lib/module/components/listitems/PressableListItemsBase.js.map +1 -1
  98. package/lib/module/components/listitems/__test__/listitem.test.js.map +1 -1
  99. package/lib/module/components/listitems/hooks/useListItemSpringAnimation.js.map +1 -1
  100. package/lib/module/components/pictograms/Pictogram.js +37 -31
  101. package/lib/module/components/pictograms/Pictogram.js.map +1 -1
  102. package/lib/module/components/pictograms/svg/PictogramFocusOn.js +48 -0
  103. package/lib/module/components/pictograms/svg/PictogramFocusOn.js.map +1 -0
  104. package/lib/module/components/pictograms/svg/PictogramSuccess.js +51 -0
  105. package/lib/module/components/pictograms/svg/PictogramSuccess.js.map +1 -0
  106. package/lib/module/components/pictograms/svg/originals/PictogramFocusOn.svg +19 -0
  107. package/lib/module/components/pictograms/svg/originals/PictogramSuccess.svg +35 -0
  108. package/lib/module/components/spacer/Spacer.js.map +1 -1
  109. package/lib/module/components/tabs/TabItem.js +114 -0
  110. package/lib/module/components/tabs/TabItem.js.map +1 -0
  111. package/lib/module/components/tabs/TabNavigation.js +73 -0
  112. package/lib/module/components/tabs/TabNavigation.js.map +1 -0
  113. package/lib/module/components/tabs/index.js +3 -0
  114. package/lib/module/components/tabs/index.js.map +1 -0
  115. package/lib/module/components/typography/Body.js.map +1 -1
  116. package/lib/module/components/typography/Factory.js.map +1 -1
  117. package/lib/module/components/typography/H1.js.map +1 -1
  118. package/lib/module/components/typography/H2.js.map +1 -1
  119. package/lib/module/components/typography/H4.js.map +1 -1
  120. package/lib/module/components/typography/H5.js.map +1 -1
  121. package/lib/module/components/typography/H6.js.map +1 -1
  122. package/lib/module/components/typography/Label.js.map +1 -1
  123. package/lib/module/components/typography/LabelHeader.js +27 -0
  124. package/lib/module/components/typography/LabelHeader.js.map +1 -0
  125. package/lib/module/components/typography/LabelSmall.js.map +1 -1
  126. package/lib/module/components/typography/Monospace.js.map +1 -1
  127. package/lib/module/components/typography/common.js +2 -2
  128. package/lib/module/components/typography/common.js.map +1 -1
  129. package/lib/module/utils/hooks/useSpringPressProgressValue.js +22 -0
  130. package/lib/module/utils/hooks/useSpringPressProgressValue.js.map +1 -0
  131. package/lib/module/utils/image.js.map +1 -1
  132. package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
  133. package/lib/typescript/components/badge/Badge.d.ts.map +1 -1
  134. package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
  135. package/lib/typescript/components/buttons/ButtonExtendedOutline.d.ts.map +1 -1
  136. package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
  137. package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
  138. package/lib/typescript/components/buttons/IconButtonContained.d.ts.map +1 -1
  139. package/lib/typescript/components/common/AnimatedTick.d.ts.map +1 -1
  140. package/lib/typescript/components/contentWrapper/ContentWrapper.d.ts.map +1 -1
  141. package/lib/typescript/components/icons/Icon.d.ts +2 -0
  142. package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
  143. package/lib/typescript/components/icons/svg/IconLight.d.ts +5 -0
  144. package/lib/typescript/components/icons/svg/IconLight.d.ts.map +1 -0
  145. package/lib/typescript/components/icons/svg/IconLightFilled.d.ts +5 -0
  146. package/lib/typescript/components/icons/svg/IconLightFilled.d.ts.map +1 -0
  147. package/lib/typescript/components/index.d.ts +1 -0
  148. package/lib/typescript/components/index.d.ts.map +1 -1
  149. package/lib/typescript/components/listitems/ListItemAction.d.ts.map +1 -1
  150. package/lib/typescript/components/listitems/ListItemIDP.d.ts +1 -1
  151. package/lib/typescript/components/listitems/ListItemIDP.d.ts.map +1 -1
  152. package/lib/typescript/components/listitems/ListItemNavAlert.d.ts.map +1 -1
  153. package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
  154. package/lib/typescript/components/listitems/PressableListItemsBase.d.ts.map +1 -1
  155. package/lib/typescript/components/listitems/hooks/useListItemSpringAnimation.d.ts.map +1 -1
  156. package/lib/typescript/components/pictograms/Pictogram.d.ts +3 -0
  157. package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
  158. package/lib/typescript/components/pictograms/svg/PictogramFocusOn.d.ts +5 -0
  159. package/lib/typescript/components/pictograms/svg/PictogramFocusOn.d.ts.map +1 -0
  160. package/lib/typescript/components/pictograms/svg/PictogramSuccess.d.ts +5 -0
  161. package/lib/typescript/components/pictograms/svg/PictogramSuccess.d.ts.map +1 -0
  162. package/lib/typescript/components/spacer/Spacer.d.ts.map +1 -1
  163. package/lib/typescript/components/tabs/TabItem.d.ts +19 -0
  164. package/lib/typescript/components/tabs/TabItem.d.ts.map +1 -0
  165. package/lib/typescript/components/tabs/TabNavigation.d.ts +15 -0
  166. package/lib/typescript/components/tabs/TabNavigation.d.ts.map +1 -0
  167. package/lib/typescript/components/tabs/index.d.ts +3 -0
  168. package/lib/typescript/components/tabs/index.d.ts.map +1 -0
  169. package/lib/typescript/components/typography/Body.d.ts.map +1 -1
  170. package/lib/typescript/components/typography/Factory.d.ts.map +1 -1
  171. package/lib/typescript/components/typography/H1.d.ts.map +1 -1
  172. package/lib/typescript/components/typography/H2.d.ts.map +1 -1
  173. package/lib/typescript/components/typography/H4.d.ts.map +1 -1
  174. package/lib/typescript/components/typography/H5.d.ts.map +1 -1
  175. package/lib/typescript/components/typography/H6.d.ts.map +1 -1
  176. package/lib/typescript/components/typography/Label.d.ts.map +1 -1
  177. package/lib/typescript/components/typography/LabelHeader.d.ts +19 -0
  178. package/lib/typescript/components/typography/LabelHeader.d.ts.map +1 -0
  179. package/lib/typescript/components/typography/LabelSmall.d.ts.map +1 -1
  180. package/lib/typescript/components/typography/Monospace.d.ts.map +1 -1
  181. package/lib/typescript/components/typography/common.d.ts +2 -2
  182. package/lib/typescript/components/typography/common.d.ts.map +1 -1
  183. package/lib/typescript/utils/hooks/useSpringPressProgressValue.d.ts +11 -0
  184. package/lib/typescript/utils/hooks/useSpringPressProgressValue.d.ts.map +1 -0
  185. package/lib/typescript/utils/image.d.ts.map +1 -1
  186. package/package.json +6 -4
  187. package/src/components/Advice/index.tsx +1 -1
  188. package/src/components/accordion/RawAccordion.tsx +3 -3
  189. package/src/components/alert/Alert.tsx +4 -1
  190. package/src/components/avatar/Avatar.tsx +1 -1
  191. package/src/components/avatar/__test__/avatar.test.tsx +7 -4
  192. package/src/components/avatar/index.tsx +1 -1
  193. package/src/components/badge/Badge.tsx +16 -11
  194. package/src/components/banner/Banner.tsx +206 -195
  195. package/src/components/banner/__test__/banner.test.tsx +11 -9
  196. package/src/components/banner/index.tsx +1 -1
  197. package/src/components/buttons/ButtonExtendedOutline.tsx +80 -80
  198. package/src/components/buttons/ButtonOutline.tsx +278 -280
  199. package/src/components/buttons/ButtonSolid.tsx +142 -141
  200. package/src/components/buttons/IconButtonContained.tsx +17 -17
  201. package/src/components/buttons/IconButtonSolid.tsx +11 -11
  202. package/src/components/common/AnimatedTick.tsx +1 -0
  203. package/src/components/contentWrapper/ContentWrapper.tsx +12 -12
  204. package/src/components/contentWrapper/index.tsx +1 -1
  205. package/src/components/divider/index.tsx +1 -1
  206. package/src/components/icons/Icon.tsx +124 -120
  207. package/src/components/icons/index.tsx +1 -1
  208. package/src/components/icons/svg/IconLight.tsx +16 -0
  209. package/src/components/icons/svg/IconLightFilled.tsx +16 -0
  210. package/src/components/icons/svg/originals/IconLight.svg +3 -0
  211. package/src/components/icons/svg/originals/IconLightFilled.svg +3 -0
  212. package/src/components/index.tsx +1 -0
  213. package/src/components/listitems/ListItemAction.tsx +120 -119
  214. package/src/components/listitems/ListItemIDP.tsx +115 -115
  215. package/src/components/listitems/ListItemNavAlert.tsx +114 -110
  216. package/src/components/listitems/ListItemTransaction.tsx +2 -6
  217. package/src/components/listitems/PressableListItemsBase.tsx +29 -29
  218. package/src/components/listitems/__test__/listitem.test.tsx +53 -15
  219. package/src/components/listitems/hooks/useListItemSpringAnimation.ts +54 -52
  220. package/src/components/pictograms/Pictogram.tsx +36 -31
  221. package/src/components/pictograms/svg/PictogramFocusOn.tsx +39 -0
  222. package/src/components/pictograms/svg/PictogramSuccess.tsx +49 -0
  223. package/src/components/pictograms/svg/originals/PictogramFocusOn.svg +19 -0
  224. package/src/components/pictograms/svg/originals/PictogramSuccess.svg +35 -0
  225. package/src/components/spacer/Spacer.tsx +21 -18
  226. package/src/components/spacer/index.tsx +1 -1
  227. package/src/components/tabs/TabItem.tsx +183 -0
  228. package/src/components/tabs/TabNavigation.tsx +114 -0
  229. package/src/components/tabs/index.tsx +2 -0
  230. package/src/components/typography/Body.tsx +10 -10
  231. package/src/components/typography/Factory.tsx +38 -38
  232. package/src/components/typography/H1.tsx +19 -19
  233. package/src/components/typography/H2.tsx +19 -19
  234. package/src/components/typography/H4.tsx +12 -12
  235. package/src/components/typography/H5.tsx +24 -24
  236. package/src/components/typography/H6.tsx +10 -10
  237. package/src/components/typography/Label.tsx +16 -16
  238. package/src/components/typography/LabelHeader.tsx +44 -0
  239. package/src/components/typography/LabelSmall.tsx +27 -28
  240. package/src/components/typography/Monospace.tsx +14 -14
  241. package/src/components/typography/common.tsx +20 -20
  242. package/src/components/typography/index.tsx +0 -1
  243. package/src/index.tsx +0 -1
  244. package/src/json-import.d.ts +3 -4
  245. package/src/utils/dates.ts +1 -1
  246. package/src/utils/hooks/useSpringPressProgressValue.ts +28 -0
  247. package/src/utils/image.ts +22 -22
@@ -3,148 +3,150 @@ import { ColorValue, StyleProp } from "react-native";
3
3
  import { IOColors } from "../../core/IOColors";
4
4
 
5
5
  /* Icons */
6
- import IconSpid from "./svg/IconSpid";
7
- import IconCie from "./svg/IconCie";
8
- import IconQrCode from "./svg/IconQrCode";
9
- import IconBell from "./svg/IconBell";
10
- import IconHome from "./svg/IconHome";
11
- import IconHomeFill from "./svg/IconHomeFill";
12
- import IconCopy from "./svg/IconCopy";
13
- import IconSelfCertification from "./svg/IconSelfCertification";
14
- import IconInstitution from "./svg/IconInstitution";
15
- import IconHourglass from "./svg/IconHourglass";
16
- import IconPEC from "./svg/IconPEC";
17
- import IconMessageLegal from "./svg/IconMessageLegal";
18
- import IconShareiOs from "./svg/IconShareiOs";
19
- import IconShareAndroid from "./svg/IconShareAndroid";
20
- import IconLockOn from "./svg/IconLockOn";
21
- import IconLockOff from "./svg/IconLockOff";
22
- import IconInitiatives from "./svg/IconInitiatives";
23
- import IconAnalytics from "./svg/IconAnalytics";
24
- import IconFornitori from "./svg/IconFornitori";
25
- import IconEyeShow from "./svg/IconEyeShow";
26
- import IconEyeHide from "./svg/IconEyeHide";
27
- import IconPinOff from "./svg/IconPinOff";
28
- import IconPinOn from "./svg/IconPinOn";
29
- import IconEmojiSad from "./svg/IconEmojiSad";
30
- import IconEmojiHappy from "./svg/IconEmojiHappy";
31
- import IconPhone from "./svg/IconPhone";
32
- import IconEmail from "./svg/IconEmail";
33
- import IconEmailFill from "./svg/IconEmailFill";
34
- import IconMessage from "./svg/IconMessage";
35
- import IconDocument from "./svg/IconDocument";
36
- import IconDocumentSign from "./svg/IconDocumentSign";
37
- import IconGiacenza from "./svg/IconGiacenza";
38
- import IconChat from "./svg/IconChat";
6
+ import IconAbacus from "./svg/IconAbacus";
7
+ import IconAdd from "./svg/IconAdd";
39
8
  import IconAgreement from "./svg/IconAgreement";
40
- import IconSave from "./svg/IconSave";
41
- import IconSuccess from "./svg/IconSuccess";
42
- import IconOk from "./svg/IconOk";
43
- import IconFiscalCodeIndividual from "./svg/IconFiscalCodeIndividual";
44
- import IconCreditCard from "./svg/IconCreditCard";
45
- import IconBonus from "./svg/IconBonus";
46
- import IconTransactions from "./svg/IconTransactions";
47
9
  import IconAmount from "./svg/IconAmount";
48
- import IconPSP from "./svg/IconPSP";
49
- import IconAdd from "./svg/IconAdd";
50
- import IconCoggle from "./svg/IconCoggle";
51
- import IconInfo from "./svg/IconInfo";
52
- import IconInfoFilled from "./svg/IconInfoFilled";
53
- import IconNotice from "./svg/IconNotice";
54
- import IconNoticeFilled from "./svg/IconNoticeFilled";
55
- import IconRefund from "./svg/IconRefund";
56
- import IconReload from "./svg/IconReload";
57
- import IconHistory from "./svg/IconHistory";
58
- import IconEdit from "./svg/IconEdit";
10
+ import IconAnalytics from "./svg/IconAnalytics";
11
+ import IconArchive from "./svg/IconArchive";
12
+ import IconArrowBottom from "./svg/IconArrowBottom";
13
+ import IconArrowLeft from "./svg/IconArrowLeft";
14
+ import IconArrowRight from "./svg/IconArrowRight";
15
+ import IconArrowTop from "./svg/IconArrowTop";
16
+ import IconAttachment from "./svg/IconAttachment";
17
+ import IconBackAndroid from "./svg/IconBackAndroid";
18
+ import IconBackiOS from "./svg/IconBackiOS";
19
+ import IconBarcode from "./svg/IconBarcode";
59
20
  import IconBattery from "./svg/IconBattery";
60
- import IconTrashcan from "./svg/IconTrashcan";
21
+ import IconBell from "./svg/IconBell";
22
+ import IconBiomFaceID from "./svg/IconBiomFaceID";
23
+ import IconBiomFingerprint from "./svg/IconBiomFingerprint";
24
+ import IconBonus from "./svg/IconBonus";
61
25
  import IconCalendar from "./svg/IconCalendar";
62
- import IconLightbulb from "./svg/IconLightbulb";
63
- import IconMagicWand from "./svg/IconMagicWand";
64
- import IconProfile from "./svg/IconProfile";
65
- import IconProfileFilled from "./svg/IconProfileFilled";
66
- import IconProfileAlt from "./svg/IconProfileAlt";
67
- import IconStarFilled from "./svg/IconStarFilled";
68
- import IconStarEmpty from "./svg/IconStarEmpty";
69
- import IconAbacus from "./svg/IconAbacus";
70
- import IconSwitchOff from "./svg/IconSwitchOff";
71
- import IconDevice from "./svg/IconDevice";
72
- import IconDotMenu from "./svg/IconDotMenu";
73
- import IconBarcode from "./svg/IconBarcode";
74
- import IconLogin from "./svg/IconLogin";
75
- import IconLogout from "./svg/IconLogout";
76
- import IconLadybug from "./svg/IconLadybug";
77
- import IconTag from "./svg/IconTag";
78
- import IconGallery from "./svg/IconGallery";
79
26
  import IconCancel from "./svg/IconCancel";
80
- import IconQuestion from "./svg/IconQuestion";
81
- import IconSearch from "./svg/IconSearch";
27
+ import IconCanceled from "./svg/IconCanceled";
28
+ import IconCategCulture from "./svg/IconCategCulture";
29
+ import IconCategFinance from "./svg/IconCategFinance";
30
+ import IconCategHome from "./svg/IconCategHome";
31
+ import IconCategJobOffers from "./svg/IconCategJobOffers";
32
+ import IconCategLearning from "./svg/IconCategLearning";
33
+ import IconCategMobility from "./svg/IconCategMobility";
34
+ import IconCategShopping from "./svg/IconCategShopping";
35
+ import IconCategSport from "./svg/IconCategSport";
36
+ import IconCategSustainability from "./svg/IconCategSustainability";
37
+ import IconCategTelco from "./svg/IconCategTelco";
38
+ import IconCategTravel from "./svg/IconCategTravel";
39
+ import IconCategWellness from "./svg/IconCategWellness";
40
+ import IconChat from "./svg/IconChat";
41
+ import IconCheckTick from "./svg/IconCheckTick";
42
+ import IconCheckTickBig from "./svg/IconCheckTickBig";
43
+ import IconChevronBottom from "./svg/IconChevronBottom";
44
+ import IconChevronLeft from "./svg/IconChevronLeft";
45
+ import IconChevronRight from "./svg/IconChevronRight";
46
+ import IconChevronRightListItem from "./svg/IconChevronRightListItem";
47
+ import IconChevronTop from "./svg/IconChevronTop";
48
+ import IconCie from "./svg/IconCie";
82
49
  import IconCloseLarge from "./svg/IconCloseLarge";
50
+ import IconCloseMedium from "./svg/IconCloseMedium";
83
51
  import IconCloseSmall from "./svg/IconCloseSmall";
52
+ import IconCoggle from "./svg/IconCoggle";
53
+ import IconCopy from "./svg/IconCopy";
54
+ import IconCreditCard from "./svg/IconCreditCard";
55
+ import IconDevice from "./svg/IconDevice";
56
+ import IconDocument from "./svg/IconDocument";
84
57
  import IconDocumentAttachment from "./svg/IconDocumentAttachment";
85
58
  import IconDocumentAttachmentPDF from "./svg/IconDocumentAttachmentPDF";
86
- import IconAttachment from "./svg/IconAttachment";
87
- import IconLocationiOS from "./svg/IconLocationiOS";
88
- import IconLocationiOSFilled from "./svg/IconLocationiOSFilled";
89
- import IconLocationAndroid from "./svg/IconLocationAndroid";
90
- import IconExternalLink from "./svg/IconExternalLink";
91
- import IconWarningFilled from "./svg/IconWarningFilled";
92
- import IconCanceled from "./svg/IconCanceled";
59
+ import IconDocumentSign from "./svg/IconDocumentSign";
60
+ import IconDotMenu from "./svg/IconDotMenu";
61
+ import IconEdit from "./svg/IconEdit";
62
+ import IconEmail from "./svg/IconEmail";
63
+ import IconEmailFill from "./svg/IconEmailFill";
64
+ import IconEmojiHappy from "./svg/IconEmojiHappy";
65
+ import IconEmojiSad from "./svg/IconEmojiSad";
93
66
  import IconErrorFilled from "./svg/IconErrorFilled";
67
+ import IconExternalLink from "./svg/IconExternalLink";
68
+ import IconEyeHide from "./svg/IconEyeHide";
69
+ import IconEyeShow from "./svg/IconEyeShow";
70
+ import IconFiscalCodeIndividual from "./svg/IconFiscalCodeIndividual";
71
+ import IconFornitori from "./svg/IconFornitori";
72
+ import IconGallery from "./svg/IconGallery";
73
+ import IconGiacenza from "./svg/IconGiacenza";
74
+ import IconHistory from "./svg/IconHistory";
75
+ import IconHome from "./svg/IconHome";
76
+ import IconHomeFill from "./svg/IconHomeFill";
77
+ import IconHourglass from "./svg/IconHourglass";
78
+ import IconInfo from "./svg/IconInfo";
79
+ import IconInfoFilled from "./svg/IconInfoFilled";
80
+ import IconInitiatives from "./svg/IconInitiatives";
81
+ import IconInstitution from "./svg/IconInstitution";
82
+ import IconLadybug from "./svg/IconLadybug";
94
83
  import IconLegalValue from "./svg/IconLegalValue";
95
- import IconChevronRight from "./svg/IconChevronRight";
96
- import IconChevronTop from "./svg/IconChevronTop";
97
- import IconChevronBottom from "./svg/IconChevronBottom";
98
- import IconChevronLeft from "./svg/IconChevronLeft";
99
- import IconChevronRightListItem from "./svg/IconChevronRightListItem";
100
- import IconArrowBottom from "./svg/IconArrowBottom";
101
- import IconArrowLeft from "./svg/IconArrowLeft";
102
- import IconArrowTop from "./svg/IconArrowTop";
103
- import IconArrowRight from "./svg/IconArrowRight";
104
- import IconBackiOS from "./svg/IconBackiOS";
105
- import IconBackAndroid from "./svg/IconBackAndroid";
84
+ import IconLight from "./svg/IconLight";
85
+ import IconLightFilled from "./svg/IconLightFilled";
86
+ import IconLightbulb from "./svg/IconLightbulb";
87
+ import IconLocationAndroid from "./svg/IconLocationAndroid";
88
+ import IconLocationiOS from "./svg/IconLocationiOS";
89
+ import IconLocationiOSFilled from "./svg/IconLocationiOSFilled";
90
+ import IconLockOff from "./svg/IconLockOff";
91
+ import IconLockOn from "./svg/IconLockOn";
92
+ import IconLogin from "./svg/IconLogin";
93
+ import IconLogout from "./svg/IconLogout";
94
+ import IconMagicWand from "./svg/IconMagicWand";
95
+ import IconMerchant from "./svg/IconMerchant";
96
+ import IconMessage from "./svg/IconMessage";
97
+ import IconMessageLegal from "./svg/IconMessageLegal";
106
98
  import IconNavMessages from "./svg/IconNavMessages";
107
- import IconNavWallet from "./svg/IconNavWallet";
99
+ import IconNavMessagesFocused from "./svg/IconNavMessagesFocused";
100
+ import IconNavProfile from "./svg/IconNavProfile";
101
+ import IconNavProfileFocused from "./svg/IconNavProfileFocused";
108
102
  import IconNavScan from "./svg/IconNavScan";
109
103
  import IconNavServices from "./svg/IconNavServices";
110
- import IconNavProfile from "./svg/IconNavProfile";
111
- import IconNavMessagesFocused from "./svg/IconNavMessagesFocused";
112
- import IconNavWalletFocused from "./svg/IconNavWalletFocused";
113
104
  import IconNavServicesFocused from "./svg/IconNavServicesFocused";
114
- import IconNavProfileFocused from "./svg/IconNavProfileFocused";
115
- import IconBiomFingerprint from "./svg/IconBiomFingerprint";
116
- import IconBiomFaceID from "./svg/IconBiomFaceID";
117
- import IconCategCulture from "./svg/IconCategCulture";
118
- import IconCategWellness from "./svg/IconCategWellness";
119
- import IconCategLearning from "./svg/IconCategLearning";
120
- import IconCategSport from "./svg/IconCategSport";
121
- import IconCategHome from "./svg/IconCategHome";
122
- import IconCategTelco from "./svg/IconCategTelco";
123
- import IconCategFinance from "./svg/IconCategFinance";
124
- import IconCategTravel from "./svg/IconCategTravel";
125
- import IconCategMobility from "./svg/IconCategMobility";
126
- import IconCategJobOffers from "./svg/IconCategJobOffers";
127
- import IconCategShopping from "./svg/IconCategShopping";
128
- import IconCategSustainability from "./svg/IconCategSustainability";
105
+ import IconNavWallet from "./svg/IconNavWallet";
106
+ import IconNavWalletFocused from "./svg/IconNavWalletFocused";
107
+ import IconNotice from "./svg/IconNotice";
108
+ import IconNoticeFilled from "./svg/IconNoticeFilled";
109
+ import IconOk from "./svg/IconOk";
110
+ import IconPEC from "./svg/IconPEC";
111
+ import IconPSP from "./svg/IconPSP";
112
+ import IconPhone from "./svg/IconPhone";
113
+ import IconPinOff from "./svg/IconPinOff";
114
+ import IconPinOn from "./svg/IconPinOn";
129
115
  import IconProductIOApp from "./svg/IconProductIOApp";
130
116
  import IconProductIOAppBlueBg from "./svg/IconProductIOAppBlueBg";
131
117
  import IconProductPagoPA from "./svg/IconProductPagoPA";
132
- import IconWebsite from "./svg/IconWebsite";
118
+ import IconProfile from "./svg/IconProfile";
119
+ import IconProfileAlt from "./svg/IconProfileAlt";
120
+ import IconProfileFilled from "./svg/IconProfileFilled";
121
+ import IconQrCode from "./svg/IconQrCode";
122
+ import IconQuestion from "./svg/IconQuestion";
123
+ import IconRefund from "./svg/IconRefund";
124
+ import IconReload from "./svg/IconReload";
125
+ import IconSave from "./svg/IconSave";
126
+ import IconSearch from "./svg/IconSearch";
133
127
  import IconSecurity from "./svg/IconSecurity";
134
- import LegIconRadioOn from "./svg/LegIconRadioOn";
135
- import LegIconRadioOff from "./svg/LegIconRadioOff";
136
- import LegIconCheckOn from "./svg/LegIconCheckOn";
137
- import LegIconCheckOff from "./svg/LegIconCheckOff";
138
- import IconCloseMedium from "./svg/IconCloseMedium";
139
- import IconCheckTick from "./svg/IconCheckTick";
140
- import IconCheckTickBig from "./svg/IconCheckTickBig";
141
- import IconMerchant from "./svg/IconMerchant";
128
+ import IconSelfCertification from "./svg/IconSelfCertification";
129
+ import IconShareAndroid from "./svg/IconShareAndroid";
130
+ import IconShareiOs from "./svg/IconShareiOs";
131
+ import IconSpid from "./svg/IconSpid";
132
+ import IconStarEmpty from "./svg/IconStarEmpty";
133
+ import IconStarFilled from "./svg/IconStarFilled";
134
+ import IconSuccess from "./svg/IconSuccess";
135
+ import IconSwitchOff from "./svg/IconSwitchOff";
136
+ import IconSystemAppsAndroid from "./svg/IconSystemAppsAndroid";
137
+ import IconSystemNotificationsInstructions from "./svg/IconSystemNotificationsInstructions";
142
138
  import IconSystemSettingsAndroid from "./svg/IconSystemSettingsAndroid";
143
139
  import IconSystemSettingsiOS from "./svg/IconSystemSettingsiOS";
144
140
  import IconSystemToggleInstructions from "./svg/IconSystemToggleInstructions";
145
- import IconSystemAppsAndroid from "./svg/IconSystemAppsAndroid";
146
- import IconSystemNotificationsInstructions from "./svg/IconSystemNotificationsInstructions";
147
- import IconArchive from "./svg/IconArchive";
141
+ import IconTag from "./svg/IconTag";
142
+ import IconTransactions from "./svg/IconTransactions";
143
+ import IconTrashcan from "./svg/IconTrashcan";
144
+ import IconWarningFilled from "./svg/IconWarningFilled";
145
+ import IconWebsite from "./svg/IconWebsite";
146
+ import LegIconCheckOff from "./svg/LegIconCheckOff";
147
+ import LegIconCheckOn from "./svg/LegIconCheckOn";
148
+ import LegIconRadioOff from "./svg/LegIconRadioOff";
149
+ import LegIconRadioOn from "./svg/LegIconRadioOn";
148
150
 
149
151
  export const IOIcons = {
150
152
  archive: IconArchive,
@@ -284,6 +286,8 @@ export const IOIcons = {
284
286
  checkTick: IconCheckTick,
285
287
  checkTickBig: IconCheckTickBig,
286
288
  merchant: IconMerchant,
289
+ light: IconLight,
290
+ lightFilled: IconLightFilled,
287
291
  systemSettingsAndroid: IconSystemSettingsAndroid,
288
292
  systemSettingsiOS: IconSystemSettingsiOS,
289
293
  systemToggleInstructions: IconSystemToggleInstructions,
@@ -1 +1 @@
1
- export * from "./Icon";
1
+ export * from "./Icon";
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { Svg, Path } from "react-native-svg";
3
+ import { SVGIconProps } from "../Icon";
4
+
5
+ const IconLadybug = ({ size, style, ...props }: SVGIconProps) => (
6
+ <Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
7
+ <Path
8
+ fillRule="evenodd"
9
+ clipRule="evenodd"
10
+ d="M8.52556 7.36919L5 4.02177V2H19V4.02177L15.4862 7.35806L15.4817 7.36231C14.8473 7.96113 14.5 8.79051 14.5 9.64538V22H9.5V9.64538C9.5 8.78028 9.14259 7.95878 8.52556 7.36919ZM16.8562 8.81519L20.6438 5.21888C20.87 5.00278 21 4.70203 21 4.38868V1.13994C21 0.509642 20.496 0 19.8728 0H4.12723C3.50396 0 3 0.509642 3 1.13994V4.38868C3 4.70383 3.12822 5.00458 3.35615 5.21888L7.14385 8.81519C7.37 9.03129 7.5 9.33203 7.5 9.64538V22.8601C7.5 23.4904 8.00396 24 8.62723 24H15.3728C15.996 24 16.5 23.4904 16.5 22.8601V9.64538C16.5 9.33023 16.6282 9.02949 16.8562 8.81519ZM11.0098 9.82483V8.07369C11.0098 7.52736 11.4527 7.08447 11.999 7.08447C12.5453 7.08447 12.9882 7.52736 12.9882 8.07369V9.82483C12.9882 10.3712 12.5453 10.814 11.999 10.814C11.4527 10.814 11.0098 10.3712 11.0098 9.82483Z"
11
+ fill="currentColor"
12
+ />
13
+ </Svg>
14
+ );
15
+
16
+ export default IconLadybug;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { Svg, Path } from "react-native-svg";
3
+ import { SVGIconProps } from "../Icon";
4
+
5
+ const IconLadybug = ({ size, style, ...props }: SVGIconProps) => (
6
+ <Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
7
+ <Path
8
+ fillRule="evenodd"
9
+ clipRule="evenodd"
10
+ d="M19.8728 0H4.12723C3.50396 0 3 0.509642 3 1.13994V4.38868C3 4.70383 3.12822 5.00458 3.35615 5.21888L7.14385 8.81519C7.37 9.03129 7.5 9.33203 7.5 9.64538V22.8601C7.5 23.4904 8.00396 24 8.62723 24H15.3728C15.996 24 16.5 23.4904 16.5 22.8601V9.64538C16.5 9.33023 16.6282 9.02949 16.8562 8.81519L20.6438 5.21888C20.87 5.00278 21 4.70203 21 4.38868V1.13994C21 0.509642 20.496 0 19.8728 0ZM12.9883 9.82492C12.9883 10.3712 12.5454 10.8141 11.9991 10.8141C11.4528 10.8141 11.0099 10.3712 11.0099 9.82492V8.07378C11.0099 7.52745 11.4528 7.08457 11.9991 7.08457C12.5454 7.08457 12.9883 7.52745 12.9883 8.07378V9.82492Z"
11
+ fill="currentColor"
12
+ />
13
+ </Svg>
14
+ );
15
+
16
+ export default IconLadybug;
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8.52556 7.36919L5 4.02177V2H19V4.02177L15.4862 7.35806L15.4817 7.36231C14.8473 7.96113 14.5 8.79051 14.5 9.64538V22H9.5V9.64538C9.5 8.78028 9.14259 7.95878 8.52556 7.36919ZM16.8562 8.81519L20.6438 5.21888C20.87 5.00278 21 4.70203 21 4.38868V1.13994C21 0.509642 20.496 0 19.8728 0H4.12723C3.50396 0 3 0.509642 3 1.13994V4.38868C3 4.70383 3.12822 5.00458 3.35615 5.21888L7.14385 8.81519C7.37 9.03129 7.5 9.33203 7.5 9.64538V22.8601C7.5 23.4904 8.00396 24 8.62723 24H15.3728C15.996 24 16.5 23.4904 16.5 22.8601V9.64538C16.5 9.33023 16.6282 9.02949 16.8562 8.81519ZM11.0098 9.82483V8.07369C11.0098 7.52736 11.4527 7.08447 11.999 7.08447C12.5453 7.08447 12.9882 7.52736 12.9882 8.07369V9.82483C12.9882 10.3712 12.5453 10.814 11.999 10.814C11.4527 10.814 11.0098 10.3712 11.0098 9.82483Z" fill="white"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M19.8728 0H4.12723C3.50396 0 3 0.509642 3 1.13994V4.38868C3 4.70383 3.12822 5.00458 3.35615 5.21888L7.14385 8.81519C7.37 9.03129 7.5 9.33203 7.5 9.64538V22.8601C7.5 23.4904 8.00396 24 8.62723 24H15.3728C15.996 24 16.5 23.4904 16.5 22.8601V9.64538C16.5 9.33023 16.6282 9.02949 16.8562 8.81519L20.6438 5.21888C20.87 5.00278 21 4.70203 21 4.38868V1.13994C21 0.509642 20.496 0 19.8728 0ZM12.9883 9.82492C12.9883 10.3712 12.5454 10.8141 11.9991 10.8141C11.4528 10.8141 11.0099 10.3712 11.0099 9.82492V8.07378C11.0099 7.52745 11.4528 7.08457 11.9991 7.08457C12.5454 7.08457 12.9883 7.52745 12.9883 8.07378V9.82492Z" fill="white"/>
3
+ </svg>
@@ -15,4 +15,5 @@ export * from "./radio";
15
15
  export * from "./spacer";
16
16
  export * from "./switch";
17
17
  export * from "./tag";
18
+ export * from "./tabs";
18
19
  export * from "./typography";
@@ -1,154 +1,155 @@
1
1
  import React, { useCallback } from "react";
2
2
  import {
3
- GestureResponderEvent,
4
- Pressable,
5
- StyleSheet,
6
- Text,
7
- View
3
+ GestureResponderEvent,
4
+ Pressable,
5
+ StyleSheet,
6
+ Text,
7
+ View
8
8
  } from "react-native";
9
9
  import Animated, {
10
- Extrapolate,
11
- interpolate,
12
- interpolateColor,
13
- useAnimatedStyle,
14
- useDerivedValue,
15
- useSharedValue,
16
- withSpring
10
+ Extrapolate,
11
+ interpolate,
12
+ interpolateColor,
13
+ useAnimatedStyle,
14
+ useDerivedValue,
15
+ useSharedValue,
16
+ withSpring
17
17
  } from "react-native-reanimated";
18
18
  import {
19
- IOColors,
20
- IOListItemStyles,
21
- IOListItemVisualParams,
22
- IOScaleValues,
23
- IOSpringValues,
24
- IOStyles,
25
- hexToRgba, useIOTheme
19
+ IOColors,
20
+ IOListItemStyles,
21
+ IOListItemVisualParams,
22
+ IOScaleValues,
23
+ IOSpringValues,
24
+ IOStyles,
25
+ hexToRgba,
26
+ useIOTheme
26
27
  } from "../../core";
27
28
  import { makeFontStyleObject } from "../../utils/fonts";
28
29
  import { WithTestID } from "../../utils/types";
29
30
  import { AnimatedIcon, IOIcons } from "../icons";
30
31
 
31
32
  export type ListItemAction = WithTestID<{
32
- label: string;
33
- variant: "primary" | "danger";
34
- onPress: (event: GestureResponderEvent) => void;
35
- icon?: IOIcons;
36
- // Accessibility
37
- accessibilityLabel: string;
33
+ label: string;
34
+ variant: "primary" | "danger";
35
+ onPress: (event: GestureResponderEvent) => void;
36
+ icon?: IOIcons;
37
+ // Accessibility
38
+ accessibilityLabel: string;
38
39
  }>;
39
40
 
40
41
  const styles = StyleSheet.create({
41
- label: {
42
- fontSize: 16,
43
- lineHeight: 20,
44
- ...makeFontStyleObject("Regular", false, "ReadexPro")
45
- },
42
+ label: {
43
+ fontSize: 16,
44
+ lineHeight: 20,
45
+ ...makeFontStyleObject("Regular", false, "ReadexPro")
46
+ }
46
47
  });
47
48
 
48
49
  export const ListItemAction = ({
49
- variant,
50
- label,
51
- onPress,
52
- icon,
53
- accessibilityLabel,
54
- testID
50
+ variant,
51
+ label,
52
+ onPress,
53
+ icon,
54
+ accessibilityLabel,
55
+ testID
55
56
  }: ListItemAction) => {
56
- const isPressed = useSharedValue(0);
57
+ const isPressed = useSharedValue(0);
57
58
 
58
- const theme = useIOTheme();
59
+ const theme = useIOTheme();
59
60
 
60
- const mapBackgroundStates: Record<string, string> = {
61
- default: hexToRgba(IOColors[theme["listItem-pressed"]], 0),
62
- pressed: IOColors[theme["listItem-pressed"]]
63
- };
61
+ const mapBackgroundStates: Record<string, string> = {
62
+ default: hexToRgba(IOColors[theme["listItem-pressed"]], 0),
63
+ pressed: IOColors[theme["listItem-pressed"]]
64
+ };
64
65
 
65
- const mapForegroundColor: Record<
66
- NonNullable<ListItemAction["variant"]>,
67
- string
68
- > = {
69
- primary: IOColors[theme["interactiveElem-default"]],
70
- danger: IOColors[theme.errorText]
71
- };
66
+ const mapForegroundColor: Record<
67
+ NonNullable<ListItemAction["variant"]>,
68
+ string
69
+ > = {
70
+ primary: IOColors[theme["interactiveElem-default"]],
71
+ danger: IOColors[theme.errorText]
72
+ };
72
73
 
73
- // Scaling transformation applied when the button is pressed
74
- const animationScaleValue = IOScaleValues?.basicButton?.pressedState;
74
+ // Scaling transformation applied when the button is pressed
75
+ const animationScaleValue = IOScaleValues?.basicButton?.pressedState;
75
76
 
76
- const progressPressed = useDerivedValue(() =>
77
- withSpring(isPressed.value, IOSpringValues.button)
78
- );
77
+ const progressPressed = useDerivedValue(() =>
78
+ withSpring(isPressed.value, IOSpringValues.button)
79
+ );
79
80
 
80
- // Interpolate animation values from `isPressed` values
81
- const animatedScaleStyle = useAnimatedStyle(() => {
82
- const scale = interpolate(
83
- progressPressed.value,
84
- [0, 1],
85
- [1, animationScaleValue],
86
- Extrapolate.CLAMP
87
- );
81
+ // Interpolate animation values from `isPressed` values
82
+ const animatedScaleStyle = useAnimatedStyle(() => {
83
+ const scale = interpolate(
84
+ progressPressed.value,
85
+ [0, 1],
86
+ [1, animationScaleValue],
87
+ Extrapolate.CLAMP
88
+ );
88
89
 
89
- return {
90
- transform: [{ scale }]
91
- };
92
- });
90
+ return {
91
+ transform: [{ scale }]
92
+ };
93
+ });
93
94
 
94
- const animatedBackgroundStyle = useAnimatedStyle(() => {
95
- const backgroundColor = interpolateColor(
96
- progressPressed.value,
97
- [0, 1],
98
- [mapBackgroundStates.default, mapBackgroundStates.pressed]
99
- );
95
+ const animatedBackgroundStyle = useAnimatedStyle(() => {
96
+ const backgroundColor = interpolateColor(
97
+ progressPressed.value,
98
+ [0, 1],
99
+ [mapBackgroundStates.default, mapBackgroundStates.pressed]
100
+ );
100
101
 
101
- return {
102
- backgroundColor
103
- };
104
- });
102
+ return {
103
+ backgroundColor
104
+ };
105
+ });
105
106
 
106
- const handlePressIn = useCallback(() => {
107
- // eslint-disable-next-line functional/immutable-data
108
- isPressed.value = 1;
109
- }, [isPressed]);
110
- const handlePressOut = useCallback(() => {
111
- // eslint-disable-next-line functional/immutable-data
112
- isPressed.value = 0;
113
- }, [isPressed]);
107
+ const handlePressIn = useCallback(() => {
108
+ // eslint-disable-next-line functional/immutable-data
109
+ isPressed.value = 1;
110
+ }, [isPressed]);
111
+ const handlePressOut = useCallback(() => {
112
+ // eslint-disable-next-line functional/immutable-data
113
+ isPressed.value = 0;
114
+ }, [isPressed]);
114
115
 
115
- return (
116
- <Pressable
117
- onPress={onPress}
118
- onPressIn={handlePressIn}
119
- onPressOut={handlePressOut}
120
- onTouchEnd={handlePressOut}
121
- accessible={true}
122
- accessibilityLabel={accessibilityLabel}
123
- accessibilityRole="button"
124
- testID={testID}
116
+ return (
117
+ <Pressable
118
+ onPress={onPress}
119
+ onPressIn={handlePressIn}
120
+ onPressOut={handlePressOut}
121
+ onTouchEnd={handlePressOut}
122
+ accessible={true}
123
+ accessibilityLabel={accessibilityLabel}
124
+ accessibilityRole="button"
125
+ testID={testID}
126
+ >
127
+ <Animated.View
128
+ style={[IOListItemStyles.listItem, animatedBackgroundStyle]}
129
+ >
130
+ <Animated.View
131
+ style={[IOListItemStyles.listItemInner, animatedScaleStyle]}
125
132
  >
126
- <Animated.View
127
- style={[IOListItemStyles.listItem, animatedBackgroundStyle]}
133
+ {icon && (
134
+ <View style={{ marginRight: IOListItemVisualParams.iconMargin }}>
135
+ <AnimatedIcon
136
+ name={icon}
137
+ color={mapForegroundColor[variant] as IOColors}
138
+ size={IOListItemVisualParams.iconSize}
139
+ />
140
+ </View>
141
+ )}
142
+ <View style={IOStyles.flex}>
143
+ <Text
144
+ style={[styles.label, { color: mapForegroundColor[variant] }]}
128
145
  >
129
- <Animated.View
130
- style={[IOListItemStyles.listItemInner, animatedScaleStyle]}
131
- >
132
- {icon && (
133
- <View style={{ marginRight: IOListItemVisualParams.iconMargin }}>
134
- <AnimatedIcon
135
- name={icon}
136
- color={mapForegroundColor[variant] as IOColors}
137
- size={IOListItemVisualParams.iconSize}
138
- />
139
- </View>
140
- )}
141
- <View style={IOStyles.flex}>
142
- <Text
143
- style={[styles.label, { color: mapForegroundColor[variant] }]}
144
- >
145
- {label}
146
- </Text>
147
- </View>
148
- </Animated.View>
149
- </Animated.View>
150
- </Pressable>
151
- );
146
+ {label}
147
+ </Text>
148
+ </View>
149
+ </Animated.View>
150
+ </Animated.View>
151
+ </Pressable>
152
+ );
152
153
  };
153
154
 
154
155
  export default ListItemAction;