@pagopa/io-app-design-system 1.0.0-9 → 1.1.1

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 (342) hide show
  1. package/README.md +39 -4
  2. package/lib/commonjs/components/Advice/Advice.js +5 -7
  3. package/lib/commonjs/components/Advice/Advice.js.map +1 -1
  4. package/lib/commonjs/components/Advice/__test__/advice.test.js +2 -2
  5. package/lib/commonjs/components/Advice/__test__/advice.test.js.map +1 -1
  6. package/lib/commonjs/components/accordion/RawAccordion.js.map +1 -1
  7. package/lib/commonjs/components/badge/__test__/badge.test.js.map +1 -1
  8. package/lib/commonjs/components/buttons/ButtonLink.js +4 -5
  9. package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
  10. package/lib/commonjs/components/buttons/IconButton.js +0 -2
  11. package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
  12. package/lib/commonjs/components/buttons/IconButtonContained.js +131 -0
  13. package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -0
  14. package/lib/commonjs/components/buttons/IconButtonSolid.js +109 -0
  15. package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -0
  16. package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +370 -0
  17. package/lib/commonjs/components/buttons/__test__/button.test.js +27 -0
  18. package/lib/commonjs/components/buttons/__test__/button.test.js.map +1 -1
  19. package/lib/commonjs/components/buttons/index.js +30 -8
  20. package/lib/commonjs/components/buttons/index.js.map +1 -1
  21. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +1 -1
  22. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
  23. package/lib/commonjs/components/icons/Icon.js +35 -9
  24. package/lib/commonjs/components/icons/Icon.js.map +1 -1
  25. package/lib/commonjs/components/icons/index.js +0 -18
  26. package/lib/commonjs/components/icons/index.js.map +1 -1
  27. package/lib/commonjs/components/icons/svg/{LegIconSearch.js → IconCheckTick.js} +4 -9
  28. package/lib/commonjs/components/icons/svg/{IconCompleted.js.map → IconCheckTick.js.map} +1 -1
  29. package/lib/commonjs/components/icons/svg/{IconCompleted.js → IconCheckTickBig.js} +3 -3
  30. package/lib/commonjs/components/icons/svg/IconCheckTickBig.js.map +1 -0
  31. package/lib/commonjs/components/icons/svg/IconMerchant.js +31 -0
  32. package/lib/commonjs/components/icons/svg/IconMerchant.js.map +1 -0
  33. package/lib/commonjs/components/icons/svg/IconSystemAppsAndroid.js +49 -0
  34. package/lib/commonjs/components/icons/svg/IconSystemAppsAndroid.js.map +1 -0
  35. package/lib/commonjs/components/icons/svg/IconSystemNotificationsInstructions.js +42 -0
  36. package/lib/commonjs/components/icons/svg/IconSystemNotificationsInstructions.js.map +1 -0
  37. package/lib/commonjs/components/icons/svg/IconSystemSettingsAndroid.js +34 -0
  38. package/lib/commonjs/components/icons/svg/IconSystemSettingsAndroid.js.map +1 -0
  39. package/lib/commonjs/components/icons/svg/IconSystemSettingsiOS.js +68 -0
  40. package/lib/commonjs/components/icons/svg/IconSystemSettingsiOS.js.map +1 -0
  41. package/lib/commonjs/components/icons/svg/{LegIconChevronLeft.js → IconSystemToggleInstructions.js} +5 -5
  42. package/lib/commonjs/components/icons/svg/IconSystemToggleInstructions.js.map +1 -0
  43. package/lib/commonjs/components/index.js +72 -72
  44. package/lib/commonjs/components/index.js.map +1 -1
  45. package/lib/commonjs/components/layout/GradientBottomActions.js +90 -0
  46. package/lib/commonjs/components/layout/GradientBottomActions.js.map +1 -0
  47. package/lib/commonjs/components/layout/GradientScrollView.js +111 -0
  48. package/lib/commonjs/components/layout/GradientScrollView.js.map +1 -0
  49. package/lib/commonjs/components/layout/HeaderFirstLevel.js +62 -0
  50. package/lib/commonjs/components/layout/HeaderFirstLevel.js.map +1 -0
  51. package/lib/commonjs/components/layout/index.js +17 -0
  52. package/lib/commonjs/components/layout/index.js.map +1 -0
  53. package/lib/commonjs/components/listitems/ListItemCheckbox.js +135 -0
  54. package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -0
  55. package/lib/commonjs/components/listitems/ListItemInfo.js +3 -6
  56. package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
  57. package/lib/commonjs/components/listitems/ListItemInfoCopy.js +1 -4
  58. package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
  59. package/lib/commonjs/components/listitems/ListItemRadio.js +136 -0
  60. package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -0
  61. package/lib/commonjs/components/listitems/ListItemSwitch.js +82 -0
  62. package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -0
  63. package/lib/commonjs/components/listitems/ListItemTransaction.js +2 -3
  64. package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
  65. package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +0 -14
  66. package/lib/commonjs/components/listitems/index.js +33 -0
  67. package/lib/commonjs/components/listitems/index.js.map +1 -1
  68. package/lib/commonjs/components/logos/svg/LogoPaymentExtMaestro.js +3 -19
  69. package/lib/commonjs/components/logos/svg/LogoPaymentExtMaestro.js.map +1 -1
  70. package/lib/commonjs/components/logos/svg/LogoPaymentExtMastercard.js +5 -21
  71. package/lib/commonjs/components/logos/svg/LogoPaymentExtMastercard.js.map +1 -1
  72. package/lib/commonjs/components/logos/svg/LogoPaymentExtPayPal.js +9 -28
  73. package/lib/commonjs/components/logos/svg/LogoPaymentExtPayPal.js.map +1 -1
  74. package/lib/commonjs/components/logos/svg/LogoPaymentMaestro.js +8 -18
  75. package/lib/commonjs/components/logos/svg/LogoPaymentMaestro.js.map +1 -1
  76. package/lib/commonjs/components/logos/svg/LogoPaymentMastercard.js +7 -17
  77. package/lib/commonjs/components/logos/svg/LogoPaymentMastercard.js.map +1 -1
  78. package/lib/commonjs/components/logos/svg/LogoPaymentPayPal.js +5 -5
  79. package/lib/commonjs/components/logos/svg/LogoPaymentPayPal.js.map +1 -1
  80. package/lib/commonjs/components/radio/AnimatedRadio.js +1 -1
  81. package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
  82. package/lib/commonjs/components/radio/RadioGroup.js +36 -0
  83. package/lib/commonjs/components/radio/RadioGroup.js.map +1 -0
  84. package/lib/commonjs/components/radio/index.js +11 -0
  85. package/lib/commonjs/components/radio/index.js.map +1 -1
  86. package/lib/commonjs/components/typography/H3.js +20 -49
  87. package/lib/commonjs/components/typography/H3.js.map +1 -1
  88. package/lib/commonjs/components/typography/Link.js +17 -23
  89. package/lib/commonjs/components/typography/Link.js.map +1 -1
  90. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +50 -45
  91. package/lib/commonjs/core/IOColors.js +1 -1
  92. package/lib/commonjs/core/IOColors.js.map +1 -1
  93. package/lib/commonjs/core/IOSpacing.js +1 -1
  94. package/lib/commonjs/core/IOSpacing.js.map +1 -1
  95. package/lib/commonjs/core/IOStyles.js +7 -1
  96. package/lib/commonjs/core/IOStyles.js.map +1 -1
  97. package/lib/commonjs/index.js +30 -8
  98. package/lib/commonjs/index.js.map +1 -1
  99. package/lib/commonjs/json-import.d.js +2 -0
  100. package/lib/commonjs/json-import.d.js.map +1 -0
  101. package/lib/module/components/Advice/Advice.js +4 -6
  102. package/lib/module/components/Advice/Advice.js.map +1 -1
  103. package/lib/module/components/Advice/__test__/advice.test.js +1 -1
  104. package/lib/module/components/Advice/__test__/advice.test.js.map +1 -1
  105. package/lib/module/components/accordion/RawAccordion.js +1 -1
  106. package/lib/module/components/accordion/RawAccordion.js.map +1 -1
  107. package/lib/module/components/badge/__test__/badge.test.js.map +1 -1
  108. package/lib/module/components/buttons/ButtonLink.js +4 -5
  109. package/lib/module/components/buttons/ButtonLink.js.map +1 -1
  110. package/lib/module/components/buttons/IconButton.js +0 -2
  111. package/lib/module/components/buttons/IconButton.js.map +1 -1
  112. package/lib/module/components/buttons/IconButtonContained.js +122 -0
  113. package/lib/module/components/buttons/IconButtonContained.js.map +1 -0
  114. package/lib/module/components/buttons/IconButtonSolid.js +100 -0
  115. package/lib/module/components/buttons/IconButtonSolid.js.map +1 -0
  116. package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +370 -0
  117. package/lib/module/components/buttons/__test__/button.test.js +27 -0
  118. package/lib/module/components/buttons/__test__/button.test.js.map +1 -1
  119. package/lib/module/components/buttons/index.js +4 -2
  120. package/lib/module/components/buttons/index.js.map +1 -1
  121. package/lib/module/components/checkbox/AnimatedCheckbox.js +3 -3
  122. package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
  123. package/lib/module/components/icons/Icon.js +33 -8
  124. package/lib/module/components/icons/Icon.js.map +1 -1
  125. package/lib/module/components/icons/index.js +0 -1
  126. package/lib/module/components/icons/index.js.map +1 -1
  127. package/lib/module/components/icons/svg/{LegIconSearch.js → IconCheckTick.js} +4 -9
  128. package/lib/module/components/icons/svg/{IconCompleted.js.map → IconCheckTick.js.map} +1 -1
  129. package/lib/module/components/icons/svg/{IconCompleted.js → IconCheckTickBig.js} +3 -3
  130. package/lib/module/components/icons/svg/IconCheckTickBig.js.map +1 -0
  131. package/lib/module/components/icons/svg/IconMerchant.js +23 -0
  132. package/lib/module/components/icons/svg/IconMerchant.js.map +1 -0
  133. package/lib/module/components/icons/svg/IconSystemAppsAndroid.js +41 -0
  134. package/lib/module/components/icons/svg/IconSystemAppsAndroid.js.map +1 -0
  135. package/lib/module/components/icons/svg/IconSystemNotificationsInstructions.js +34 -0
  136. package/lib/module/components/icons/svg/IconSystemNotificationsInstructions.js.map +1 -0
  137. package/lib/module/components/icons/svg/IconSystemSettingsAndroid.js +26 -0
  138. package/lib/module/components/icons/svg/IconSystemSettingsAndroid.js.map +1 -0
  139. package/lib/module/components/icons/svg/IconSystemSettingsiOS.js +60 -0
  140. package/lib/module/components/icons/svg/IconSystemSettingsiOS.js.map +1 -0
  141. package/lib/module/components/icons/svg/{LegIconChevronLeft.js → IconSystemToggleInstructions.js} +5 -5
  142. package/lib/module/components/icons/svg/IconSystemToggleInstructions.js.map +1 -0
  143. package/lib/module/components/index.js +13 -13
  144. package/lib/module/components/index.js.map +1 -1
  145. package/lib/module/components/layout/GradientBottomActions.js +79 -0
  146. package/lib/module/components/layout/GradientBottomActions.js.map +1 -0
  147. package/lib/module/components/layout/GradientScrollView.js +100 -0
  148. package/lib/module/components/layout/GradientScrollView.js.map +1 -0
  149. package/lib/module/components/layout/HeaderFirstLevel.js +52 -0
  150. package/lib/module/components/layout/HeaderFirstLevel.js.map +1 -0
  151. package/lib/module/components/layout/index.js +2 -0
  152. package/lib/module/components/layout/index.js.map +1 -0
  153. package/lib/module/components/listitems/ListItemCheckbox.js +126 -0
  154. package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -0
  155. package/lib/module/components/listitems/ListItemInfo.js +3 -6
  156. package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
  157. package/lib/module/components/listitems/ListItemInfoCopy.js +1 -4
  158. package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
  159. package/lib/module/components/listitems/ListItemRadio.js +127 -0
  160. package/lib/module/components/listitems/ListItemRadio.js.map +1 -0
  161. package/lib/module/components/listitems/ListItemSwitch.js +74 -0
  162. package/lib/module/components/listitems/ListItemSwitch.js.map +1 -0
  163. package/lib/module/components/listitems/ListItemTransaction.js +2 -3
  164. package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
  165. package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +0 -14
  166. package/lib/module/components/listitems/index.js +3 -0
  167. package/lib/module/components/listitems/index.js.map +1 -1
  168. package/lib/module/components/logos/svg/LogoPaymentExtMaestro.js +3 -19
  169. package/lib/module/components/logos/svg/LogoPaymentExtMaestro.js.map +1 -1
  170. package/lib/module/components/logos/svg/LogoPaymentExtMastercard.js +5 -21
  171. package/lib/module/components/logos/svg/LogoPaymentExtMastercard.js.map +1 -1
  172. package/lib/module/components/logos/svg/LogoPaymentExtPayPal.js +10 -29
  173. package/lib/module/components/logos/svg/LogoPaymentExtPayPal.js.map +1 -1
  174. package/lib/module/components/logos/svg/LogoPaymentMaestro.js +9 -19
  175. package/lib/module/components/logos/svg/LogoPaymentMaestro.js.map +1 -1
  176. package/lib/module/components/logos/svg/LogoPaymentMastercard.js +8 -18
  177. package/lib/module/components/logos/svg/LogoPaymentMastercard.js.map +1 -1
  178. package/lib/module/components/logos/svg/LogoPaymentPayPal.js +5 -5
  179. package/lib/module/components/logos/svg/LogoPaymentPayPal.js.map +1 -1
  180. package/lib/module/components/radio/AnimatedRadio.js +3 -3
  181. package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
  182. package/lib/module/components/radio/RadioGroup.js +28 -0
  183. package/lib/module/components/radio/RadioGroup.js.map +1 -0
  184. package/lib/module/components/radio/index.js +1 -0
  185. package/lib/module/components/radio/index.js.map +1 -1
  186. package/lib/module/components/typography/H3.js +19 -47
  187. package/lib/module/components/typography/H3.js.map +1 -1
  188. package/lib/module/components/typography/Link.js +17 -23
  189. package/lib/module/components/typography/Link.js.map +1 -1
  190. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +50 -45
  191. package/lib/module/core/IOColors.js +1 -1
  192. package/lib/module/core/IOColors.js.map +1 -1
  193. package/lib/module/core/IOSpacing.js +1 -1
  194. package/lib/module/core/IOSpacing.js.map +1 -1
  195. package/lib/module/core/IOStyles.js +5 -0
  196. package/lib/module/core/IOStyles.js.map +1 -1
  197. package/lib/module/index.js +3 -1
  198. package/lib/module/index.js.map +1 -1
  199. package/lib/module/json-import.d.js +2 -0
  200. package/lib/module/json-import.d.js.map +1 -0
  201. package/lib/typescript/components/Advice/Advice.d.ts +7 -3
  202. package/lib/typescript/components/Advice/Advice.d.ts.map +1 -1
  203. package/lib/typescript/components/accordion/RawAccordion.d.ts +2 -2
  204. package/lib/typescript/components/accordion/RawAccordion.d.ts.map +1 -1
  205. package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
  206. package/lib/typescript/components/buttons/IconButton.d.ts.map +1 -1
  207. package/lib/typescript/components/buttons/IconButtonContained.d.ts +15 -0
  208. package/lib/typescript/components/buttons/IconButtonContained.d.ts.map +1 -0
  209. package/lib/typescript/components/buttons/IconButtonSolid.d.ts +15 -0
  210. package/lib/typescript/components/buttons/IconButtonSolid.d.ts.map +1 -0
  211. package/lib/typescript/components/buttons/index.d.ts +4 -2
  212. package/lib/typescript/components/buttons/index.d.ts.map +1 -1
  213. package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
  214. package/lib/typescript/components/icons/Icon.d.ts +16 -3
  215. package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
  216. package/lib/typescript/components/icons/index.d.ts +0 -1
  217. package/lib/typescript/components/icons/index.d.ts.map +1 -1
  218. package/lib/typescript/components/icons/svg/IconCheckTick.d.ts +5 -0
  219. package/lib/typescript/components/icons/svg/IconCheckTick.d.ts.map +1 -0
  220. package/lib/typescript/components/icons/svg/IconCheckTickBig.d.ts +5 -0
  221. package/lib/typescript/components/icons/svg/IconCheckTickBig.d.ts.map +1 -0
  222. package/lib/typescript/components/icons/svg/IconMerchant.d.ts +5 -0
  223. package/lib/typescript/components/icons/svg/IconMerchant.d.ts.map +1 -0
  224. package/lib/typescript/components/icons/svg/IconSystemAppsAndroid.d.ts +5 -0
  225. package/lib/typescript/components/icons/svg/IconSystemAppsAndroid.d.ts.map +1 -0
  226. package/lib/typescript/components/icons/svg/IconSystemNotificationsInstructions.d.ts +5 -0
  227. package/lib/typescript/components/icons/svg/IconSystemNotificationsInstructions.d.ts.map +1 -0
  228. package/lib/typescript/components/icons/svg/IconSystemSettingsAndroid.d.ts +5 -0
  229. package/lib/typescript/components/icons/svg/IconSystemSettingsAndroid.d.ts.map +1 -0
  230. package/lib/typescript/components/icons/svg/IconSystemSettingsiOS.d.ts +5 -0
  231. package/lib/typescript/components/icons/svg/IconSystemSettingsiOS.d.ts.map +1 -0
  232. package/lib/typescript/components/icons/svg/IconSystemToggleInstructions.d.ts +5 -0
  233. package/lib/typescript/components/icons/svg/IconSystemToggleInstructions.d.ts.map +1 -0
  234. package/lib/typescript/components/index.d.ts +13 -13
  235. package/lib/typescript/components/index.d.ts.map +1 -1
  236. package/lib/typescript/components/layout/GradientBottomActions.d.ts +22 -0
  237. package/lib/typescript/components/layout/GradientBottomActions.d.ts.map +1 -0
  238. package/lib/typescript/components/layout/GradientScrollView.d.ts +14 -0
  239. package/lib/typescript/components/layout/GradientScrollView.d.ts.map +1 -0
  240. package/lib/typescript/components/layout/HeaderFirstLevel.d.ts +11 -0
  241. package/lib/typescript/components/layout/HeaderFirstLevel.d.ts.map +1 -0
  242. package/lib/typescript/components/layout/index.d.ts +2 -0
  243. package/lib/typescript/components/layout/index.d.ts.map +1 -0
  244. package/lib/typescript/components/listitems/ListItemCheckbox.d.ts +21 -0
  245. package/lib/typescript/components/listitems/ListItemCheckbox.d.ts.map +1 -0
  246. package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
  247. package/lib/typescript/components/listitems/ListItemInfoCopy.d.ts.map +1 -1
  248. package/lib/typescript/components/listitems/ListItemRadio.d.ts +22 -0
  249. package/lib/typescript/components/listitems/ListItemRadio.d.ts.map +1 -0
  250. package/lib/typescript/components/listitems/ListItemSwitch.d.ts +18 -0
  251. package/lib/typescript/components/listitems/ListItemSwitch.d.ts.map +1 -0
  252. package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
  253. package/lib/typescript/components/listitems/index.d.ts +3 -0
  254. package/lib/typescript/components/listitems/index.d.ts.map +1 -1
  255. package/lib/typescript/components/logos/svg/LogoPaymentExtMaestro.d.ts.map +1 -1
  256. package/lib/typescript/components/logos/svg/LogoPaymentExtMastercard.d.ts +2 -2
  257. package/lib/typescript/components/logos/svg/LogoPaymentExtMastercard.d.ts.map +1 -1
  258. package/lib/typescript/components/logos/svg/LogoPaymentExtPayPal.d.ts.map +1 -1
  259. package/lib/typescript/components/logos/svg/LogoPaymentMaestro.d.ts.map +1 -1
  260. package/lib/typescript/components/logos/svg/LogoPaymentMastercard.d.ts.map +1 -1
  261. package/lib/typescript/components/radio/AnimatedRadio.d.ts.map +1 -1
  262. package/lib/typescript/components/radio/RadioGroup.d.ts +22 -0
  263. package/lib/typescript/components/radio/RadioGroup.d.ts.map +1 -0
  264. package/lib/typescript/components/radio/index.d.ts +1 -0
  265. package/lib/typescript/components/radio/index.d.ts.map +1 -1
  266. package/lib/typescript/components/typography/H3.d.ts +11 -30
  267. package/lib/typescript/components/typography/H3.d.ts.map +1 -1
  268. package/lib/typescript/components/typography/Link.d.ts +4 -4
  269. package/lib/typescript/components/typography/Link.d.ts.map +1 -1
  270. package/lib/typescript/core/IOColors.d.ts +2 -1
  271. package/lib/typescript/core/IOColors.d.ts.map +1 -1
  272. package/lib/typescript/core/IOSpacing.d.ts +1 -1
  273. package/lib/typescript/core/IOSpacing.d.ts.map +1 -1
  274. package/lib/typescript/core/IOStyles.d.ts +6 -2
  275. package/lib/typescript/core/IOStyles.d.ts.map +1 -1
  276. package/lib/typescript/index.d.ts +3 -1
  277. package/lib/typescript/index.d.ts.map +1 -1
  278. package/package.json +12 -8
  279. package/src/components/Advice/Advice.tsx +19 -23
  280. package/src/components/Advice/__test__/advice.test.tsx +4 -2
  281. package/src/components/accordion/RawAccordion.tsx +6 -6
  282. package/src/components/badge/__test__/badge.test.tsx +4 -2
  283. package/src/components/buttons/ButtonLink.tsx +177 -177
  284. package/src/components/buttons/IconButton.tsx +9 -6
  285. package/src/components/buttons/IconButtonContained.tsx +201 -0
  286. package/src/components/buttons/IconButtonSolid.tsx +168 -0
  287. package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +370 -0
  288. package/src/components/buttons/__test__/button.test.tsx +59 -4
  289. package/src/components/buttons/index.tsx +5 -3
  290. package/src/components/checkbox/AnimatedCheckbox.tsx +6 -8
  291. package/src/components/icons/Icon.tsx +37 -8
  292. package/src/components/icons/index.tsx +1 -2
  293. package/src/components/icons/svg/IconCheckTick.tsx +16 -0
  294. package/src/components/icons/svg/{IconCompleted.tsx → IconCheckTickBig.tsx} +2 -2
  295. package/src/components/icons/svg/IconMerchant.tsx +16 -0
  296. package/src/components/icons/svg/IconSystemAppsAndroid.tsx +17 -0
  297. package/src/components/icons/svg/IconSystemNotificationsInstructions.tsx +28 -0
  298. package/src/components/icons/svg/IconSystemSettingsAndroid.tsx +15 -0
  299. package/src/components/icons/svg/IconSystemSettingsiOS.tsx +58 -0
  300. package/src/components/icons/svg/IconSystemToggleInstructions.tsx +18 -0
  301. package/src/components/index.tsx +13 -13
  302. package/src/components/layout/GradientBottomActions.tsx +119 -0
  303. package/src/components/layout/GradientScrollView.tsx +167 -0
  304. package/src/components/layout/HeaderFirstLevel.tsx +76 -0
  305. package/src/components/layout/index.tsx +1 -0
  306. package/src/components/listitems/ListItemCheckbox.tsx +182 -0
  307. package/src/components/listitems/ListItemInfo.tsx +53 -58
  308. package/src/components/listitems/ListItemInfoCopy.tsx +122 -127
  309. package/src/components/listitems/ListItemRadio.tsx +185 -0
  310. package/src/components/listitems/ListItemSwitch.tsx +109 -0
  311. package/src/components/listitems/ListItemTransaction.tsx +154 -151
  312. package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +0 -14
  313. package/src/components/listitems/index.tsx +3 -0
  314. package/src/components/logos/svg/LogoPaymentExtMaestro.tsx +3 -20
  315. package/src/components/logos/svg/LogoPaymentExtMastercard.tsx +5 -22
  316. package/src/components/logos/svg/LogoPaymentExtPayPal.tsx +9 -31
  317. package/src/components/logos/svg/LogoPaymentMaestro.tsx +8 -6
  318. package/src/components/logos/svg/LogoPaymentMastercard.tsx +8 -6
  319. package/src/components/logos/svg/LogoPaymentPayPal.tsx +5 -5
  320. package/src/components/radio/AnimatedRadio.tsx +6 -8
  321. package/src/components/radio/RadioGroup.tsx +43 -0
  322. package/src/components/radio/index.tsx +1 -0
  323. package/src/components/typography/H3.tsx +25 -91
  324. package/src/components/typography/Link.tsx +23 -30
  325. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +50 -45
  326. package/src/core/IOColors.ts +2 -2
  327. package/src/core/IOSpacing.ts +2 -2
  328. package/src/core/IOStyles.ts +9 -0
  329. package/src/index.tsx +4 -1
  330. package/src/json-import.d.ts +13 -0
  331. package/lib/commonjs/components/icons/svg/LegIconChevronLeft.js.map +0 -1
  332. package/lib/commonjs/components/icons/svg/LegIconSearch.js.map +0 -1
  333. package/lib/module/components/icons/svg/LegIconChevronLeft.js.map +0 -1
  334. package/lib/module/components/icons/svg/LegIconSearch.js.map +0 -1
  335. package/lib/typescript/components/icons/svg/IconCompleted.d.ts +0 -5
  336. package/lib/typescript/components/icons/svg/IconCompleted.d.ts.map +0 -1
  337. package/lib/typescript/components/icons/svg/LegIconChevronLeft.d.ts +0 -5
  338. package/lib/typescript/components/icons/svg/LegIconChevronLeft.d.ts.map +0 -1
  339. package/lib/typescript/components/icons/svg/LegIconSearch.d.ts +0 -5
  340. package/lib/typescript/components/icons/svg/LegIconSearch.d.ts.map +0 -1
  341. package/src/components/icons/svg/LegIconChevronLeft.tsx +0 -14
  342. package/src/components/icons/svg/LegIconSearch.tsx +0 -22
@@ -0,0 +1,185 @@
1
+ import * as React from "react";
2
+ import { useCallback, useState } from "react";
3
+ import { Pressable, View } from "react-native";
4
+ import ReactNativeHapticFeedback from "react-native-haptic-feedback";
5
+ import Animated, {
6
+ Extrapolate,
7
+ interpolate,
8
+ interpolateColor,
9
+ useAnimatedStyle,
10
+ useDerivedValue,
11
+ useSharedValue,
12
+ withSpring
13
+ } from "react-native-reanimated";
14
+ import {
15
+ IOColors,
16
+ IOScaleValues,
17
+ IOSelectionListItemStyles,
18
+ IOSelectionListItemVisualParams,
19
+ IOSpringValues,
20
+ IOStyles,
21
+ hexToRgba,
22
+ useIOTheme
23
+ } from "../../core";
24
+ import { WithTestID } from "../../utils/types";
25
+ import { IOIcons, Icon } from "../icons";
26
+ import { HSpacer, VSpacer } from "../spacer";
27
+ import { H6, LabelSmall } from "../typography";
28
+ import { AnimatedRadio } from "../radio/AnimatedRadio";
29
+
30
+ type Props = WithTestID<{
31
+ value: string;
32
+ description?: string;
33
+ icon?: IOIcons;
34
+ selected: boolean;
35
+ onValueChange?: (newValue: boolean) => void;
36
+ }>;
37
+
38
+ const DISABLED_OPACITY = 0.5;
39
+
40
+ // disabled: the component is no longer touchable
41
+ // onPress:
42
+ type OwnProps = Props &
43
+ Pick<
44
+ React.ComponentProps<typeof Pressable>,
45
+ "onPress" | "accessibilityLabel" | "disabled"
46
+ >;
47
+
48
+ /**
49
+ * with the automatic state management that uses a {@link AnimatedCheckBox}
50
+ * The toggleValue change when a `onPress` event is received and dispatch the `onValueChange`.
51
+ *
52
+ * @param props
53
+ * @constructor
54
+ */
55
+ export const ListItemRadio = ({
56
+ value,
57
+ description,
58
+ icon,
59
+ selected,
60
+ disabled,
61
+ onValueChange,
62
+ testID
63
+ }: OwnProps) => {
64
+ const [toggleValue, setToggleValue] = useState(selected ?? false);
65
+ // Animations
66
+ const isPressed: Animated.SharedValue<number> = useSharedValue(0);
67
+
68
+ // Scaling transformation applied when the button is pressed
69
+ const animationScaleValue = IOScaleValues?.basicButton?.pressedState;
70
+
71
+ const progressPressed = useDerivedValue(() =>
72
+ withSpring(isPressed.value, IOSpringValues.button)
73
+ );
74
+
75
+ // Theme
76
+ const theme = useIOTheme();
77
+
78
+ const mapBackgroundStates: Record<string, string> = {
79
+ default: hexToRgba(IOColors[theme["listItem-pressed"]], 0),
80
+ pressed: IOColors[theme["listItem-pressed"]]
81
+ };
82
+
83
+ // Interpolate animation values from `isPressed` values
84
+ const animatedScaleStyle = useAnimatedStyle(() => {
85
+ const scale = interpolate(
86
+ progressPressed.value,
87
+ [0, 1],
88
+ [1, animationScaleValue],
89
+ Extrapolate.CLAMP
90
+ );
91
+
92
+ return {
93
+ transform: [{ scale }]
94
+ };
95
+ });
96
+
97
+ const handlePressIn = useCallback(() => {
98
+ // eslint-disable-next-line functional/immutable-data
99
+ isPressed.value = 1;
100
+ }, [isPressed]);
101
+ const handlePressOut = useCallback(() => {
102
+ // eslint-disable-next-line functional/immutable-data
103
+ isPressed.value = 0;
104
+ }, [isPressed]);
105
+
106
+ const animatedBackgroundStyle = useAnimatedStyle(() => {
107
+ const backgroundColor = interpolateColor(
108
+ progressPressed.value,
109
+ [0, 1],
110
+ [mapBackgroundStates.default, mapBackgroundStates.pressed]
111
+ );
112
+
113
+ return {
114
+ backgroundColor
115
+ };
116
+ });
117
+
118
+ const toggleRadioItem = () => {
119
+ ReactNativeHapticFeedback.trigger("impactLight");
120
+ setToggleValue(!toggleValue);
121
+ if (onValueChange !== undefined) {
122
+ onValueChange(!toggleValue);
123
+ }
124
+ };
125
+
126
+ return (
127
+ <Pressable
128
+ onPress={toggleRadioItem}
129
+ onPressIn={handlePressIn}
130
+ onPressOut={handlePressOut}
131
+ onTouchEnd={handlePressOut}
132
+ testID={testID}
133
+ disabled={disabled}
134
+ >
135
+ <Animated.View
136
+ style={[
137
+ IOSelectionListItemStyles.listItem,
138
+ animatedBackgroundStyle,
139
+ { opacity: disabled ? DISABLED_OPACITY : 1 }
140
+ ]}
141
+ // This is required to avoid opacity
142
+ // inheritance on Android
143
+ needsOffscreenAlphaCompositing={true}
144
+ >
145
+ <Animated.View style={animatedScaleStyle}>
146
+ <View style={IOSelectionListItemStyles.listItemInner}>
147
+ <View style={[IOStyles.row, { flexShrink: 1 }]}>
148
+ {icon && (
149
+ <View
150
+ style={{
151
+ marginRight: IOSelectionListItemVisualParams.iconMargin
152
+ }}
153
+ >
154
+ <Icon
155
+ name={icon}
156
+ color="grey-300"
157
+ size={IOSelectionListItemVisualParams.iconSize}
158
+ />
159
+ </View>
160
+ )}
161
+
162
+ <H6 color={"black"} style={{ flexShrink: 1 }}>
163
+ {value}
164
+ </H6>
165
+ </View>
166
+ <HSpacer size={8} />
167
+ <View pointerEvents="none">
168
+ <AnimatedRadio checked={selected ?? toggleValue} />
169
+ </View>
170
+ </View>
171
+ {description && (
172
+ <View>
173
+ <VSpacer
174
+ size={IOSelectionListItemVisualParams.descriptionMargin}
175
+ />
176
+ <LabelSmall weight="Regular" color={theme["textBody-tertiary"]}>
177
+ {description}
178
+ </LabelSmall>
179
+ </View>
180
+ )}
181
+ </Animated.View>
182
+ </Animated.View>
183
+ </Pressable>
184
+ );
185
+ };
@@ -0,0 +1,109 @@
1
+ import React from "react";
2
+ import { GestureResponderEvent, Switch, View } from "react-native";
3
+ import {
4
+ IOSelectionListItemStyles,
5
+ IOSelectionListItemVisualParams,
6
+ IOStyles,
7
+ useIOTheme
8
+ } from "../../core";
9
+ import { IOIcons, Icon } from "../icons";
10
+ import { HSpacer, VSpacer } from "../spacer";
11
+ import { H6, LabelSmall, Link } from "../typography";
12
+ import { NativeSwitch } from "../switch/NativeSwitch";
13
+
14
+ type Props = {
15
+ label: string;
16
+ onSwitchValueChange?: (newValue: boolean) => void;
17
+ description?: string;
18
+ icon?: IOIcons;
19
+ action?: SwitchAction;
20
+ };
21
+
22
+ type SwitchAction = {
23
+ label: string;
24
+ onPress: (event: GestureResponderEvent) => void;
25
+ };
26
+
27
+ const DISABLED_OPACITY = 0.5;
28
+
29
+ type OwnProps = Props &
30
+ Pick<React.ComponentProps<typeof Switch>, "value" | "disabled">;
31
+
32
+ export const ListItemSwitch = React.memo(
33
+ ({
34
+ label,
35
+ description,
36
+ icon,
37
+ value,
38
+ disabled,
39
+ action,
40
+ onSwitchValueChange
41
+ }: OwnProps) => {
42
+ const theme = useIOTheme();
43
+
44
+ return (
45
+ <View
46
+ testID="ListItemSwitch"
47
+ style={[
48
+ IOSelectionListItemStyles.listItem,
49
+ {
50
+ opacity: disabled ? DISABLED_OPACITY : 1
51
+ }
52
+ ]}
53
+ pointerEvents={disabled ? "none" : "auto"}
54
+ needsOffscreenAlphaCompositing={true}
55
+ >
56
+ <View
57
+ style={[
58
+ IOSelectionListItemStyles.listItemInner,
59
+ { alignItems: "center" }
60
+ ]}
61
+ >
62
+ <View style={{ flexShrink: 1 }}>
63
+ <View style={[IOStyles.row, { flexShrink: 1 }]}>
64
+ {icon && (
65
+ <View
66
+ style={{
67
+ marginRight: IOSelectionListItemVisualParams.iconMargin
68
+ }}
69
+ >
70
+ <Icon
71
+ name={icon}
72
+ color="grey-300"
73
+ size={IOSelectionListItemVisualParams.iconSize}
74
+ />
75
+ </View>
76
+ )}
77
+ <H6 color={"black"} style={{ flexShrink: 1 }}>
78
+ {label}
79
+ </H6>
80
+ </View>
81
+ {description && (
82
+ <>
83
+ <VSpacer
84
+ size={IOSelectionListItemVisualParams.descriptionMargin}
85
+ />
86
+ <LabelSmall weight="Regular" color={theme["textBody-tertiary"]}>
87
+ {description}
88
+ </LabelSmall>
89
+ </>
90
+ )}
91
+ {action && (
92
+ <>
93
+ <VSpacer size={IOSelectionListItemVisualParams.actionMargin} />
94
+ <Link fontSize="small" onPress={action.onPress}>
95
+ {action.label}
96
+ </Link>
97
+ </>
98
+ )}
99
+ </View>
100
+
101
+ <HSpacer size={8} />
102
+ <View style={{ flexShrink: 0, alignSelf: "flex-start" }}>
103
+ <NativeSwitch value={value} onValueChange={onSwitchValueChange} />
104
+ </View>
105
+ </View>
106
+ </View>
107
+ );
108
+ }
109
+ );
@@ -1,15 +1,15 @@
1
1
  import * as O from "fp-ts/lib/Option";
2
2
  import { pipe } from "fp-ts/lib/function";
3
- import I18n from "i18n-js";
4
3
  import React from "react";
5
4
  import { ImageURISource, StyleSheet, View } from "react-native";
6
5
  import Placeholder from "rn-placeholder";
7
6
  import {
8
- IOListItemStyles,
9
- IOListItemVisualParams,
10
- IOStyles,
11
- IOVisualCostants,
12
- useIOTheme
7
+ IOColors,
8
+ IOListItemStyles,
9
+ IOListItemVisualParams,
10
+ IOStyles,
11
+ IOVisualCostants,
12
+ useIOTheme
13
13
  } from "../../core";
14
14
  import { WithTestID } from "../../utils/types";
15
15
  import { Avatar } from "../avatar/Avatar";
@@ -18,181 +18,184 @@ import { Icon } from "../icons";
18
18
  import { IOLogoPaymentType, LogoPayment } from "../logos";
19
19
  import { VSpacer } from "../spacer";
20
20
  import { H6, LabelSmall } from "../typography";
21
- import { PressableBaseProps, PressableListItemBase } from "./PressableListItemsBase";
21
+ import {
22
+ PressableBaseProps,
23
+ PressableListItemBase
24
+ } from "./PressableListItemsBase";
22
25
 
23
26
  type LogoNameOrUri = IOLogoPaymentType | ImageURISource;
24
27
  export type ListItemTransaction = WithTestID<
25
- PressableBaseProps & {
26
- hasChevronRight?: boolean;
27
- isLoading?: boolean;
28
- paymentLogoOrUrl?: LogoNameOrUri;
29
- subtitle: string;
30
- title: string;
31
- } & (
32
- | {
33
- transactionStatus: "success";
34
- transactionAmount: string;
28
+ PressableBaseProps & {
29
+ hasChevronRight?: boolean;
30
+ isLoading?: boolean;
31
+ paymentLogoOrUrl?: LogoNameOrUri;
32
+ subtitle: string;
33
+ title: string;
34
+ } & (
35
+ | {
36
+ transactionStatus: "success";
37
+ transactionAmount: string;
35
38
  }
36
- | {
37
- transactionStatus: "failure" | "pending";
38
- transactionAmount?: string;
39
+ | {
40
+ transactionStatus: "failure" | "pending";
41
+ transactionAmount?: string;
39
42
  }
40
43
  )
41
44
  >;
42
45
 
43
46
  type LeftComponentProps = {
44
- logoNameOrUrl: LogoNameOrUri;
47
+ logoNameOrUrl: LogoNameOrUri;
45
48
  };
46
49
 
47
50
  const isImageUrI = (
48
- value: IOLogoPaymentType | ImageURISource
51
+ value: IOLogoPaymentType | ImageURISource
49
52
  ): value is ImageURISource =>
50
- typeof value === "object" && value.uri !== undefined;
53
+ typeof value === "object" && value.uri !== undefined;
51
54
 
52
55
  const LeftComponent = ({ logoNameOrUrl }: LeftComponentProps) => {
53
- if (isImageUrI(logoNameOrUrl)) {
54
- return <Avatar shape="circle" size="small" logoUri={[logoNameOrUrl]} />;
55
- } else {
56
- return (
57
- <View
58
- style={{
59
- width: IOVisualCostants.avatarSizeSmall,
60
- height: IOVisualCostants.avatarSizeSmall,
61
- alignItems: "center",
62
- justifyContent: "center"
63
- }}
64
- >
65
- <LogoPayment name={logoNameOrUrl} />
66
- </View>
67
- );
68
- }
56
+ if (isImageUrI(logoNameOrUrl)) {
57
+ return <Avatar shape="circle" size="small" logoUri={[logoNameOrUrl]} />;
58
+ } else {
59
+ return (
60
+ <View
61
+ style={{
62
+ width: IOVisualCostants.avatarSizeSmall,
63
+ height: IOVisualCostants.avatarSizeSmall,
64
+ alignItems: "center",
65
+ justifyContent: "center"
66
+ }}
67
+ >
68
+ <LogoPayment name={logoNameOrUrl} />
69
+ </View>
70
+ );
71
+ }
69
72
  };
70
73
 
71
74
  export const ListItemTransaction = ({
72
- accessibilityLabel,
73
- hasChevronRight = false,
74
- isLoading = false,
75
- paymentLogoOrUrl,
76
- onPress,
77
- subtitle,
78
- testID,
79
- title,
80
- transactionAmount,
81
- transactionStatus = "success"
75
+ accessibilityLabel,
76
+ hasChevronRight = false,
77
+ isLoading = false,
78
+ paymentLogoOrUrl,
79
+ onPress,
80
+ subtitle,
81
+ testID,
82
+ title,
83
+ transactionAmount,
84
+ transactionStatus = "success"
82
85
  }: ListItemTransaction) => {
83
- const theme = useIOTheme();
86
+ const theme = useIOTheme();
84
87
 
85
- if (isLoading) {
86
- return <SkeletonComponent />;
87
- }
88
+ if (isLoading) {
89
+ return <SkeletonComponent />;
90
+ }
88
91
 
89
- const designSystemBlue = "blue";
90
- const ListItemTransactionContent = () => {
91
- const TransactionAmountOrBadgeComponent = () => {
92
- switch (transactionStatus) {
93
- case "success":
94
- return (
95
- <H6 color={hasChevronRight ? designSystemBlue : "black"}>
96
- {transactionAmount || "-"}
97
- </H6>
98
- );
92
+ const designSystemBlue: IOColors = "blue";
93
+ const ListItemTransactionContent = () => {
94
+ const TransactionAmountOrBadgeComponent = () => {
95
+ switch (transactionStatus) {
96
+ case "success":
97
+ return (
98
+ <H6 color={hasChevronRight ? designSystemBlue : "black"}>
99
+ {transactionAmount || "-"}
100
+ </H6>
101
+ );
99
102
 
100
- case "failure":
101
- return (
102
- <Badge variant="error" text={I18n.t("global.badges.failed")} />
103
- );
104
- case "pending":
105
- return (
106
- <Badge variant="info" text={I18n.t("global.badges.onGoing")} />
107
- );
108
- }
109
- };
110
-
111
- return (
112
- <>
113
- {paymentLogoOrUrl && (
114
- <View style={{ marginRight: IOListItemVisualParams.iconMargin }}>
115
- <LeftComponent logoNameOrUrl={paymentLogoOrUrl} />
116
- </View>
117
- )}
118
- <View style={IOStyles.flex}>
119
- <H6 color={theme["textBody-default"]}>{title}</H6>
120
- <LabelSmall weight="Regular" color={theme["textBody-tertiary"]}>
121
- {subtitle}
122
- </LabelSmall>
123
- <VSpacer size={4} />
124
- </View>
125
- <View style={Styles.rightSection}>
126
- <TransactionAmountOrBadgeComponent />
127
- {hasChevronRight && (
128
- <Icon
129
- name="chevronRightListItem"
130
- color={designSystemBlue}
131
- size={IOListItemVisualParams.chevronSize}
132
- />
133
- )}
134
- </View>
135
- </>
136
- );
103
+ case "failure":
104
+ return (
105
+ <Badge variant="error" text={"Failed"} />
106
+ );
107
+ case "pending":
108
+ return (
109
+ <Badge variant="info" text={"Cancelled"} />
110
+ );
111
+ }
137
112
  };
138
113
 
139
- return pipe(
140
- onPress,
141
- O.fromNullable,
142
- O.fold(
143
- () => (
144
- <View
145
- style={IOListItemStyles.listItem}
146
- testID={testID}
147
- accessible={true}
148
- accessibilityLabel={accessibilityLabel}
149
- >
150
- <View style={IOListItemStyles.listItemInner}>
151
- <ListItemTransactionContent />
152
- </View>
153
- </View>
154
- ),
155
- onPress => (
156
- <PressableListItemBase
157
- onPress={onPress}
158
- testID={testID}
159
- accessibilityLabel={accessibilityLabel}
160
- >
161
- <ListItemTransactionContent />
162
- </PressableListItemBase>
163
- )
164
- )
114
+ return (
115
+ <>
116
+ {paymentLogoOrUrl && (
117
+ <View style={{ marginRight: IOListItemVisualParams.iconMargin }}>
118
+ <LeftComponent logoNameOrUrl={paymentLogoOrUrl} />
119
+ </View>
120
+ )}
121
+ <View style={IOStyles.flex}>
122
+ <H6 color={theme["textBody-default"]}>{title}</H6>
123
+ <LabelSmall weight="Regular" color={theme["textBody-tertiary"]}>
124
+ {subtitle}
125
+ </LabelSmall>
126
+ <VSpacer size={4} />
127
+ </View>
128
+ <View style={Styles.rightSection}>
129
+ <TransactionAmountOrBadgeComponent />
130
+ {hasChevronRight && (
131
+ <Icon
132
+ name="chevronRightListItem"
133
+ color={designSystemBlue}
134
+ size={IOListItemVisualParams.chevronSize}
135
+ />
136
+ )}
137
+ </View>
138
+ </>
165
139
  );
140
+ };
141
+
142
+ return pipe(
143
+ onPress,
144
+ O.fromNullable,
145
+ O.fold(
146
+ () => (
147
+ <View
148
+ style={IOListItemStyles.listItem}
149
+ testID={testID}
150
+ accessible={true}
151
+ accessibilityLabel={accessibilityLabel}
152
+ >
153
+ <View style={IOListItemStyles.listItemInner}>
154
+ <ListItemTransactionContent />
155
+ </View>
156
+ </View>
157
+ ),
158
+ onPress => (
159
+ <PressableListItemBase
160
+ onPress={onPress}
161
+ testID={testID}
162
+ accessibilityLabel={accessibilityLabel}
163
+ >
164
+ <ListItemTransactionContent />
165
+ </PressableListItemBase>
166
+ )
167
+ )
168
+ );
166
169
  };
167
170
 
168
171
  const SkeletonComponent = () => (
169
- <View style={IOListItemStyles.listItem} accessible={false}>
170
- <View style={IOListItemStyles.listItemInner}>
171
- <View style={{ marginRight: IOListItemVisualParams.iconMargin }}>
172
- <Placeholder.Box
173
- animate="fade"
174
- height={IOVisualCostants.avatarSizeSmall}
175
- width={IOVisualCostants.avatarSizeSmall}
176
- radius={100}
177
- />
178
- </View>
179
- <View style={IOStyles.flex}>
180
- <Placeholder.Box animate="fade" radius={8} width={62} height={16} />
181
- <VSpacer size={4} />
182
- <Placeholder.Box animate="fade" radius={8} width={107} height={16} />
183
- </View>
184
- <View style={{ marginLeft: IOListItemVisualParams.iconMargin }}>
185
- <Placeholder.Box animate="fade" radius={8} width={70} height={24} />
186
- </View>
187
- </View>
172
+ <View style={IOListItemStyles.listItem} accessible={false}>
173
+ <View style={IOListItemStyles.listItemInner}>
174
+ <View style={{ marginRight: IOListItemVisualParams.iconMargin }}>
175
+ <Placeholder.Box
176
+ animate="fade"
177
+ height={IOVisualCostants.avatarSizeSmall}
178
+ width={IOVisualCostants.avatarSizeSmall}
179
+ radius={100}
180
+ />
181
+ </View>
182
+ <View style={IOStyles.flex}>
183
+ <Placeholder.Box animate="fade" radius={8} width={62} height={16} />
184
+ <VSpacer size={4} />
185
+ <Placeholder.Box animate="fade" radius={8} width={107} height={16} />
186
+ </View>
187
+ <View style={{ marginLeft: IOListItemVisualParams.iconMargin }}>
188
+ <Placeholder.Box animate="fade" radius={8} width={70} height={24} />
189
+ </View>
188
190
  </View>
191
+ </View>
189
192
  );
190
193
 
191
194
  const Styles = StyleSheet.create({
192
- rightSection: {
193
- marginLeft: IOListItemVisualParams.iconMargin,
194
- flexDirection: "row",
195
- alignItems: "center",
196
- height: "100%"
197
- }
195
+ rightSection: {
196
+ marginLeft: IOListItemVisualParams.iconMargin,
197
+ flexDirection: "row",
198
+ alignItems: "center",
199
+ height: "100%"
200
+ }
198
201
  });
@@ -246,13 +246,6 @@ exports[`Test List Item Components ListItemInfo Snapshot 1`] = `
246
246
  >
247
247
  label
248
248
  </Text>
249
- <View
250
- style={
251
- {
252
- "height": 4,
253
- }
254
- }
255
- />
256
249
  <Text
257
250
  color="black"
258
251
  defaultColor="black"
@@ -388,13 +381,6 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
388
381
  >
389
382
  label
390
383
  </Text>
391
- <View
392
- style={
393
- {
394
- "height": 4,
395
- }
396
- }
397
- />
398
384
  <Text
399
385
  color="blueIO-500"
400
386
  defaultColor="black"
@@ -6,3 +6,6 @@ export * from "./ListItemNav";
6
6
  export * from "./ListItemNavAlert";
7
7
  export * from "./ListItemTransaction";
8
8
  export * from "./PressableListItemsBase";
9
+ export * from "./ListItemSwitch";
10
+ export * from "./ListItemCheckbox";
11
+ export * from "./ListItemRadio";