@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
@@ -4,30 +4,13 @@ import { SVGLogoProps } from "../LogoPayment";
4
4
 
5
5
  const LogoPaymentExtMaestro = ({ size }: SVGLogoProps) => (
6
6
  <Svg width={size} height={size} viewBox="0 0 48 30">
7
+ <Path fill="#7673C0" d="M17.5039 3.17151h12.975v23.318h-12.975z" />
7
8
  <Path
8
- d="M47.76 28.32c0 .888-.72 1.584-1.584 1.584H1.584C.696 29.904 0 29.184 0 28.32V1.632C0 .744.72.048 1.584.048h44.592c.888 0 1.584.72 1.584 1.584V28.32Z"
9
- fill="#000"
10
- />
11
- <Path fill="#000" d="M3.6 2.16h40.397v25.546H3.6z" />
12
- <Path
13
- fillRule="evenodd"
14
- clipRule="evenodd"
15
- d="M28.298 23.734h-.813v1.04c0 .24.081.383.331.383a.923.923 0 0 0 .442-.13l.144.428a1.172 1.172 0 0 1-.624.177c-.59 0-.797-.317-.797-.85V23.74h-.466v-.456h.466v-.696h.504v.696h.813v.45Zm-10.02.396v1.44l-.501-.007v-1.275c0-.389-.163-.605-.504-.605a.54.54 0 0 0-.562.61v1.27h-.504v-1.275c0-.389-.168-.605-.499-.605a.535.535 0 0 0-.562.61v1.277h-.504v-2.292h.5v.283a.758.758 0 0 1 .672-.34c.308-.014.6.143.758.407a.888.888 0 0 1 .806-.408.852.852 0 0 1 .9.91Zm2.808-.85v1.145l-.004 1.14h-.5v-.278a.869.869 0 0 1-.72.336 1.2 1.2 0 0 1 0-2.4c.28-.011.549.114.72.336v-.279h.504Zm-1.855 1.145a.694.694 0 1 1 .696.735.687.687 0 0 1-.7-.735h.004Zm13.001-1.109a1.289 1.289 0 0 0-.48-.09l-.005-.006a1.29 1.29 0 0 0-.88.353c-.11.109-.198.239-.257.382a1.275 1.275 0 0 0 0 .96 1.17 1.17 0 0 0 .645.636c.317.123.668.123.984 0a1.16 1.16 0 0 0 .65-.636 1.272 1.272 0 0 0 0-.96 1.16 1.16 0 0 0-.657-.639Zm-.48.39a.743.743 0 0 0-.286.052.674.674 0 0 0-.379.391.833.833 0 0 0 0 .595.672.672 0 0 0 .38.391.78.78 0 0 0 .808-.15.694.694 0 0 0 .151-.24.833.833 0 0 0 0-.596.694.694 0 0 0-.15-.24.685.685 0 0 0-.24-.151.743.743 0 0 0-.289-.067l.005.014Zm-9.04-.48c.64 0 1.086.48 1.086 1.2 0 .066 0 .129-.007.186H22.09a.636.636 0 0 0 .686.562c.243-.004.478-.088.667-.24l.24.37a1.392 1.392 0 0 1-.938.321 1.2 1.2 0 0 1-.034-2.4Zm-.62.998a.59.59 0 0 1 .61-.557.57.57 0 0 1 .58.556h-1.19Zm3.086-.557c.253.002.501.07.72.196l.224-.403a1.713 1.713 0 0 0-.934-.24c-.586 0-.96.279-.96.735 0 .374.278.605.792.677l.24.033c.274.038.403.11.403.24 0 .178-.182.278-.523.278a1.222 1.222 0 0 1-.763-.24l-.24.39c.29.202.637.306.991.297.66 0 1.044-.346 1.044-.749s-.302-.614-.802-.686l-.24-.034c-.216-.029-.388-.058-.388-.226s.163-.268.436-.268Zm5.201-.384a1.062 1.062 0 0 0-.355-.063l.01.01a.677.677 0 0 0-.605.336v-.278h-.495v2.291h.5v-1.284c0-.379.153-.59.48-.59a.809.809 0 0 1 .312.058l.153-.48Zm3.096 1.95a.24.24 0 0 1 .166.066.223.223 0 0 1-.074.37.227.227 0 0 1-.092.019.24.24 0 0 1-.216-.14.225.225 0 0 1 .05-.25.238.238 0 0 1 .075-.047.238.238 0 0 1 .08-.015l.011-.002Zm.07.392a.172.172 0 0 1-.07.015v-.01a.178.178 0 0 1-.127-.053.178.178 0 0 1 0-.24.18.18 0 0 1 .197-.038.177.177 0 0 1 0 .326Zm-.055-.271a.096.096 0 0 1 .062.02.06.06 0 0 1 .022.05.058.058 0 0 1-.017.043.084.084 0 0 1-.05.021l.069.08h-.055l-.065-.08h-.022v.08h-.045v-.212l.1-.002Zm-.053.098v-.057l.053.014a.05.05 0 0 1 .028 0 .024.024 0 0 1 0 .022.024.024 0 0 1 0 .021.05.05 0 0 1-.028 0h-.053Z"
16
- fill="#fff"
17
- />
18
- <Path fill="#7673C0" d="M20.018 5.794h7.56V19.38h-7.56z" />
19
- <Path
20
- d="M20.498 12.586a8.626 8.626 0 0 1 3.3-6.792 8.64 8.64 0 1 0 0 13.586 8.626 8.626 0 0 1-3.3-6.794Z"
9
+ d="M18.3276 14.8324c-.0035-4.5495 2.085-8.84799 5.6638-11.65693-6.0799-4.7781-14.81073-4.08212-20.05683 1.5988-5.24609 5.68093-5.24609 14.43953 0 20.12043 5.2461 5.6809 13.97693 6.3769 20.05683 1.5988-3.58-2.8099-5.6686-7.1101-5.6638-11.6611Z"
21
10
  fill="#EB001B"
22
11
  />
23
12
  <Path
24
- fillRule="evenodd"
25
- clipRule="evenodd"
26
- d="M37.018 17.774v.823h-.083v-.823h-.155v-.17h.393v.17h-.155Zm.762-.17v.993l-.083.007v-.752l-.128.646h-.09l-.128-.646v.745h-.086v-.993h.119l.139.71.138-.71h.119Z"
27
- fill="#00A1DF"
28
- />
29
- <Path
30
- d="M37.778 12.586a8.64 8.64 0 0 1-13.98 6.792 8.64 8.64 0 0 0 0-13.587 8.64 8.64 0 0 1 13.98 6.793v.002Z"
13
+ d="M46.4766 25v-.8294h.3081v-.169H46v.169h.3082V25h.1684ZM48 25v-1h-.2405l-.2767.6878L47.2061 24h-.2407v1h.1699v-.7543l.2594.6503h.1761l.2595-.652V25H48ZM47.985 14.8325C47.9849 20.51 44.7431 25.689 39.6364 28.17s-11.1817 1.8285-15.6449-1.6805c3.5772-2.8114 5.6658-7.1093 5.6658-11.659 0-4.5498-2.0886-8.84772-5.6658-11.65904C28.4547-.33753 34.5297-.99009 39.6364 1.49092c5.1067 2.48101 8.3485 7.66002 8.3486 13.33748v.0041Z"
31
14
  fill="#00A1DF"
32
15
  />
33
16
  </Svg>
@@ -2,35 +2,18 @@ import React from "react";
2
2
  import { Svg, Path } from "react-native-svg";
3
3
  import { SVGLogoProps } from "../LogoPayment";
4
4
 
5
- const LogoPaymentExtMaestro = ({ size }: SVGLogoProps) => (
5
+ const LogoPaymentExtMastercard = ({ size }: SVGLogoProps) => (
6
6
  <Svg width={size} height={size} viewBox="0 0 48 30">
7
+ <Path fill="#FF5F00" d="M17.5039 3.17151h12.975v23.318h-12.975z" />
7
8
  <Path
8
- d="M46.272 29.904H1.656c-.888 0-1.584-.72-1.584-1.584V1.632C.072.744.792.048 1.656.048h44.592c.888 0 1.584.72 1.584 1.584V28.32a1.547 1.547 0 0 1-1.56 1.584Z"
9
- fill="#000"
10
- />
11
- <Path fill="#000" d="M3.84 2.16h40.397v25.546H3.84z" />
12
- <Path
13
- fillRule="evenodd"
14
- clipRule="evenodd"
15
- d="M36.67 24.43v-2.076h-.461v1.2a.91.91 0 0 0-.744-.336 1.206 1.206 0 1 0 0 2.412.91.91 0 0 0 .744-.336v.278h.46V24.43Zm-14.907-1.15h.835l-.002.413h-.835v1.102c0 .23.11.384.35.384a.923.923 0 0 0 .442-.13l.144.408a1.174 1.174 0 0 1-.624.178c-.59 0-.778-.317-.778-.85v-1.087h-.48v-.418h.48v-.696h.468v.696Zm-6.643.852v1.44l-.478.003v-1.323c0-.389-.182-.605-.523-.605a.554.554 0 0 0-.58.61v1.318h-.466v-1.323c0-.389-.187-.605-.519-.605a.552.552 0 0 0-.58.61v1.32h-.466V23.28h.473v.281a.785.785 0 0 1 .691-.336c.308-.013.6.144.758.408a.89.89 0 0 1 .807-.408.838.838 0 0 1 .883.907Zm11.74-.91a.72.72 0 0 0-.623.337v-.279h-.456v2.297h.46v-1.296c0-.38.183-.624.51-.624a.812.812 0 0 1 .311.058l.154-.435a1.067 1.067 0 0 0-.355-.062v.005Zm-7.38 0c.33-.01.654.073.937.24l-.209.382a1.48 1.48 0 0 0-.72-.197c-.274 0-.456.14-.456.284 0 .144.192.21.408.24l.24.033c.497.072.778.238.778.675 0 .436-.368.744-1.03.744a1.714 1.714 0 0 1-.994-.298l.24-.36c.22.165.49.25.764.24.34 0 .542-.115.542-.293 0-.13-.149-.225-.422-.264l-.24-.033c-.514-.072-.773-.298-.773-.672 0-.447.355-.72.936-.72Zm7.897 1.2a1.145 1.145 0 0 0 1.2 1.2 1.2 1.2 0 0 0 .825-.273l-.24-.36a1.01 1.01 0 0 1-.6.206.782.782 0 0 1 0-1.557c.217.002.428.075.6.206l.24-.36a1.2 1.2 0 0 0-.825-.273 1.145 1.145 0 0 0-1.2 1.2v.012Zm-4.366 0c0-.72.463-1.2 1.135-1.2l.008-.002c.645 0 1.082.48 1.082 1.2v.192H23.52c.044.346.345.6.694.588.242-.004.477-.088.667-.24l.24.341a1.397 1.397 0 0 1-.941.322 1.13 1.13 0 0 1-1.169-1.2Zm1.56-.61a.585.585 0 0 0-.421-.162.614.614 0 0 0-.63.58h1.231a.585.585 0 0 0-.18-.417Zm-6.643-.532V25.577h-.46v-.278a.91.91 0 0 1-.745.336 1.206 1.206 0 0 1 0-2.412.91.91 0 0 1 .744.336v-.279h.461Zm-1.86 1.145a.72.72 0 0 1 .72-.778.782.782 0 0 1 0 1.558.72.72 0 0 1-.72-.778v-.002Zm17.11-.864a.72.72 0 0 1 .624-.336v-.005c.12 0 .24.022.355.063l-.154.432a.812.812 0 0 0-.312-.058c-.326 0-.509.245-.509.624v1.296h-.46V23.28h.456v.281Zm4.324 1.685a.24.24 0 0 1 .166.065.223.223 0 0 1-.074.37.227.227 0 0 1-.092.018.24.24 0 0 1-.216-.139.225.225 0 0 1 .05-.25.238.238 0 0 1 .075-.047.237.237 0 0 1 .091-.024v.007Zm.07.391a.172.172 0 0 1-.07.014v-.004a.179.179 0 0 1-.07-.01.18.18 0 0 1-.057-.038.178.178 0 0 1 0-.24.174.174 0 0 1 .058-.039.176.176 0 0 1 .194.039.178.178 0 0 1 0 .24.184.184 0 0 1-.055.038Zm-.055-.271a.096.096 0 0 1 .062.019.06.06 0 0 1 .022.05.058.058 0 0 1-.017.044.085.085 0 0 1-.05.021l.07.08h-.056l-.065-.08h-.021v.08h-.046v-.212l.1-.002Zm-.053.098v-.057l.053.014a.052.052 0 0 1 .029 0 .024.024 0 0 1 0 .022.024.024 0 0 1 0 .021.05.05 0 0 1-.03 0h-.052Zm-5.431-1.034v-1.15h-.461v.279a.91.91 0 0 0-.744-.336 1.206 1.206 0 1 0 0 2.412.91.91 0 0 0 .744-.336v.278h.46V24.43Zm-1.67-.547a.72.72 0 0 0-.19.547v.002a.72.72 0 0 0 .72.778.782.782 0 0 0 0-1.558.72.72 0 0 0-.53.231Zm4.636 0a.72.72 0 0 0-.19.547l-.009-.005a.72.72 0 0 0 .72.775.782.782 0 0 0 .01-1.548.72.72 0 0 0-.531.231Z"
16
- fill="#fff"
17
- />
18
- <Path fill="#FF5F00" d="M20.258 5.794h7.56V19.38h-7.56z" />
19
- <Path
20
- d="M20.738 12.588a8.626 8.626 0 0 1 3.3-6.792 8.64 8.64 0 1 0 0 13.587 8.626 8.626 0 0 1-3.3-6.795Z"
9
+ d="M18.3276 14.8324c-.0035-4.5495 2.085-8.84799 5.6638-11.65693-6.0799-4.7781-14.81073-4.08212-20.05683 1.5988-5.24609 5.68093-5.24609 14.43953 0 20.12043 5.2461 5.6809 13.97693 6.3769 20.05683 1.5988-3.58-2.8099-5.6686-7.1101-5.6638-11.6611Z"
21
10
  fill="#EB001B"
22
11
  />
23
12
  <Path
24
- fillRule="evenodd"
25
- clipRule="evenodd"
26
- d="M37.265 17.778v.828h-.083v-.828h-.155v-.172h.393v.172h-.155Zm.762-.172v1h-.086v-.757l-.128.65h-.09l-.128-.65v.757h-.083v-1h.12l.138.715.138-.715h.12Z"
27
- fill="#F79E1B"
28
- />
29
- <Path
30
- d="M38.018 12.588a8.64 8.64 0 0 1-13.98 6.792 8.64 8.64 0 0 0 0-13.586 8.64 8.64 0 0 1 13.98 6.792v.002Z"
13
+ d="M46.4766 25v-.8294h.3081v-.169H46v.169h.3082V25h.1684ZM48 25v-1h-.2405l-.2767.6878L47.2061 24h-.2407v1h.1699v-.7543l.2594.6503h.1761l.2595-.652V25H48ZM47.985 14.8325C47.9849 20.51 44.7431 25.689 39.6364 28.17s-11.1817 1.8285-15.6449-1.6805c3.5772-2.8114 5.6658-7.1093 5.6658-11.659 0-4.5498-2.0886-8.84772-5.6658-11.65904C28.4547-.33753 34.5297-.99009 39.6364 1.49092c5.1067 2.48101 8.3485 7.66002 8.3486 13.33748v.0041Z"
31
14
  fill="#F79E1B"
32
15
  />
33
16
  </Svg>
34
17
  );
35
18
 
36
- export default LogoPaymentExtMaestro;
19
+ export default LogoPaymentExtMastercard;
@@ -1,46 +1,24 @@
1
1
  import React from "react";
2
- import { Svg, Path, Rect } from "react-native-svg";
2
+ import { Svg, Path } from "react-native-svg";
3
3
  import { SVGLogoProps } from "../LogoPayment";
4
4
 
5
5
  const LogoPaymentExtPayPal = ({ size }: SVGLogoProps) => (
6
- <Svg width={size} height={size} viewBox="0 0 49 31">
7
- <Rect
8
- x="1"
9
- y="1"
10
- width="47.5"
11
- height="29.5"
12
- rx="2"
13
- fill="#fff"
14
- stroke="#E6E9F2"
15
- stroke-width=".5"
16
- />
6
+ <Svg width={size} height={size} viewBox="0 0 48 30">
17
7
  <Path
18
- d="m22.853 19.206.273-1.733-.608-.014h-2.902l2.017-12.785a.165.165 0 0 1 .164-.14h4.892c1.624 0 2.745.338 3.33 1.005.274.313.45.64.534 1 .088.378.09.829.003 1.379l-.006.04v.353l.274.155c.21.106.398.25.556.424.235.267.386.607.45 1.01.067.415.045.909-.064 1.467-.125.643-.327 1.202-.6 1.66-.242.41-.566.766-.952 1.043a3.859 3.859 0 0 1-1.282.579 6.392 6.392 0 0 1-1.603.185h-.38c-.273 0-.537.098-.745.274a1.152 1.152 0 0 0-.388.692l-.028.156-.482 3.054-.022.112c-.006.036-.016.053-.03.065a.081.081 0 0 1-.05.019h-2.351Z"
8
+ d="m18.8221 28.2894.491-3.119-1.0938-.0254h-5.2232l3.6298-23.01568c.0224-.14534.1478-.2524.2949-.25163h8.807c2.9238 0 4.9415.60842 5.995 1.8093.4939.56335.8084 1.15205.9605 1.7999.1596.67978.1624 1.49194.0066 2.4825l-.0113.0723v.63471l.4939.27979c.377.19102.7159.4494.9999.7624.4226.48171.6958 1.09381.8113 1.81961.1192.7465.0798 1.6347-.1155 2.6403-.2254 1.1567-.5897 2.1642-1.0817 2.9885a6.14686 6.14686 0 0 1-1.7135 1.8779c-.6535.4638-1.43.8159-2.3078 1.0412-.8507.2216-1.8206.3333-2.8844.3333h-.6854c-.4901 0-.9662.1766-1.3398.493a2.07504 2.07504 0 0 0-.6986 1.2468l-.0516.2808-.8676 5.4973-.0394.2019c-.0104.0639-.0282.0958-.0545.1174a.1453.1453 0 0 1-.0901.0328h-4.2317Z"
19
9
  fill="#253B80"
20
10
  />
21
11
  <Path
22
- d="M31.084 7.999a8.738 8.738 0 0 1-.05.287c-.645 3.312-2.852 4.456-5.671 4.456h-1.436a.697.697 0 0 0-.689.59l-.735 4.662-.208 1.32a.367.367 0 0 0 .363.425h2.545c.302 0 .558-.219.605-.516l.026-.13.479-3.041.03-.167a.612.612 0 0 1 .606-.518h.38c2.467 0 4.398-1.001 4.962-3.899.236-1.21.114-2.221-.51-2.932a2.433 2.433 0 0 0-.697-.537Z"
23
- fill="#179BD7"
24
- />
25
- <Path
26
- d="M30.41 7.73a5.087 5.087 0 0 0-.628-.14 7.971 7.971 0 0 0-1.265-.092h-3.835a.611.611 0 0 0-.604.518l-.816 5.166-.024.15a.697.697 0 0 1 .69-.59h1.435c2.819 0 5.026-1.144 5.671-4.456.019-.098.036-.194.05-.287a3.434 3.434 0 0 0-.675-.27Z"
27
- fill="#222D65"
12
+ d="M33.6404 8.11493c-.0263.16807-.0564.33989-.0902.5164-1.1614 5.96307-5.1349 8.02307-10.2098 8.02307h-2.5839c-.6206 0-1.1436.4507-1.2403 1.0628l-1.3229 8.3902-.3746 2.3783a.66074.66074 0 0 0 .1502.5325c.1255.147.309.2318.5023.2318h4.5829c.5427 0 1.0037-.3944 1.0891-.9296l.0451-.2328.8629-5.4758.0553-.3004c.0846-.5371.5465-.9314 1.0892-.9314h.6854c4.4401 0 7.916-1.8028 8.9319-7.0194.4244-2.1792.2047-3.9988-.9182-5.27859a4.38323 4.38323 0 0 0-1.2544-.96708Z"
13
+ fill="#0070E0"
28
14
  />
29
15
  <Path
30
- d="M24.078 8.016a.611.611 0 0 1 .604-.518h3.835c.454 0 .878.03 1.265.092.262.042.52.104.772.185.19.063.367.138.53.224.192-1.224 0-2.058-.663-2.812C29.691 4.356 28.375 4 26.69 4h-4.892a.7.7 0 0 0-.69.59l-2.039 12.917a.42.42 0 0 0 .415.486h3.02l.759-4.81.816-5.167Z"
31
- fill="#253B80"
32
- />
33
- <Path
34
- fill-rule="evenodd"
35
- clip-rule="evenodd"
36
- d="M15.782 21.18h-1.803a.25.25 0 0 0-.248.21l-.73 4.624a.15.15 0 0 0 .15.174h.86a.25.25 0 0 0 .248-.212l.197-1.247a.25.25 0 0 1 .247-.212h.57c1.188 0 1.874-.575 2.053-1.713.08-.499.003-.89-.23-1.164-.256-.302-.71-.46-1.314-.46Zm.208 1.688c-.099.647-.593.647-1.071.647h-.272l.19-1.208a.15.15 0 0 1 .149-.127h.125c.325 0 .632 0 .791.185.095.111.124.276.088.503Zm4.318-.021h.863a.15.15 0 0 1 .148.173l-.466 2.956a.25.25 0 0 1-.248.212h-.778a.15.15 0 0 1-.148-.175l.039-.24s-.427.495-1.195.495c-.448 0-.825-.13-1.088-.44-.287-.337-.404-.82-.322-1.326.16-1.014.974-1.736 1.928-1.736.416 0 .833.09 1.02.362l.06.087.039-.241a.15.15 0 0 1 .148-.127Zm-.34 1.68a.962.962 0 0 1-.974.825c-.251 0-.451-.08-.58-.233-.128-.151-.176-.367-.136-.607a.966.966 0 0 1 .968-.83c.245 0 .445.081.576.235.131.155.184.372.146.61Zm4.934-1.68h.868a.15.15 0 0 1 .123.236l-2.886 4.166a.25.25 0 0 1-.205.107h-.867a.15.15 0 0 1-.123-.237l.899-1.268-.956-2.805a.15.15 0 0 1 .143-.199h.852c.111 0 .209.073.24.179l.508 1.694 1.197-1.763a.252.252 0 0 1 .207-.11Z"
37
- fill="#253B80"
16
+ d="M32.425 7.63047a9.15908 9.15908 0 0 0-1.1295-.25069 14.34964 14.34964 0 0 0-2.2778-.16619h-6.9029c-.5428-.00033-1.0048.39504-1.0882.93141l-1.4685 9.3009-.0422.2714c.0945-.6118.6212-1.0632 1.2403-1.0629h2.5839c5.0748 0 9.0483-2.0609 10.2098-8.02304.0347-.17652.0638-.34834.0901-.51641a6.19233 6.19233 0 0 0-.9549-.40279 8.39347 8.39347 0 0 0-.2601-.08169Z"
17
+ fill="#001C64"
38
18
  />
39
19
  <Path
40
- fill-rule="evenodd"
41
- clip-rule="evenodd"
42
- d="m34.31 26.014.74-4.708a.15.15 0 0 1 .148-.127h.833a.15.15 0 0 1 .148.174l-.73 4.623a.25.25 0 0 1-.247.212h-.744a.15.15 0 0 1-.148-.174Zm-5.667-4.835h-1.804a.25.25 0 0 0-.247.212l-.73 4.623a.15.15 0 0 0 .149.174h.925c.087 0 .16-.063.173-.148l.207-1.311a.25.25 0 0 1 .248-.212h.57c1.188 0 1.873-.575 2.053-1.713.08-.499.003-.89-.23-1.164-.257-.302-.71-.46-1.314-.46Zm.208 1.689c-.099.647-.593.647-1.071.647h-.272l.191-1.208a.15.15 0 0 1 .148-.127h.125c.325 0 .633 0 .791.185.095.111.124.276.088.503Zm4.318-.021h.863a.15.15 0 0 1 .15.173l-.468 2.956a.25.25 0 0 1-.247.212h-.778a.15.15 0 0 1-.148-.175l.038-.24s-.426.495-1.195.495c-.448 0-.824-.13-1.087-.44-.287-.337-.404-.82-.322-1.326.159-1.014.973-1.736 1.928-1.736.416 0 .832.09 1.02.362l.06.087.038-.241a.15.15 0 0 1 .148-.127Zm-.34 1.68a.962.962 0 0 1-.975.825c-.25 0-.45-.08-.58-.233-.127-.151-.175-.367-.135-.607a.967.967 0 0 1 .968-.83c.245 0 .444.081.575.235.133.155.185.372.147.61Z"
43
- fill="#179BD7"
20
+ d="M21.0267 8.14499c.0826-.53662.5452-.93216 1.0882-.93047h6.9029c.8178 0 1.5811.05352 2.2778.16619a9.16165 9.16165 0 0 1 1.3906.33143c.3427.11361.661.24788.9548.4028.3456-2.20364-.0028-3.70403-1.1943-5.06264C31.1332 1.5566 28.7624.91626 25.7288.91626h-8.8071c-.6197 0-1.1483.45068-1.244 1.06379L12.0093 25.2323a.75701.75701 0 0 0 .1717.6095.75684.75684 0 0 0 .5747.2656h5.4373l1.3652-8.6615 1.4685-9.30091Z"
21
+ fill="#003087"
44
22
  />
45
23
  </Svg>
46
24
  );
@@ -1,15 +1,17 @@
1
1
  import React from "react";
2
- import { Svg, Rect, Circle, Path } from "react-native-svg";
2
+ import { Svg, Path } from "react-native-svg";
3
3
  import { SVGLogoProps } from "../LogoPayment";
4
4
 
5
5
  const LogoPaymentMaestro = ({ size }: SVGLogoProps) => (
6
6
  <Svg width={size} height={size} viewBox="0 0 24 24">
7
- <Rect y="4" width="24" height="16" rx="2" fill="#252525" />
8
- <Circle cx="9" cy="12" r="5" fill="red" />
9
- <Circle cx="15" cy="12" r="5" fill="#00A1DF" />
7
+ <Path fill="#7673C0" d="M8.75415 6.58813h6.48917v11.662H8.75415z" />
10
8
  <Path
11
- d="M12 8c1.214.912 2 2.364 2 4a4.992 4.992 0 0 1-2 4 4.992 4.992 0 0 1-2-4c0-1.636.786-3.088 2-4Z"
12
- fill="#7673C0"
9
+ d="M9.16616 12.4181c-.0018-2.2753 1.04274-4.42514 2.83254-5.82997-3.04065-2.38965-7.4072-2.04157-10.03091.79961-2.62372 2.84116-2.62372 7.22156 0 10.06276 2.62371 2.8412 6.99026 3.1892 10.03091.7996-1.7904-1.4053-2.83497-3.556-2.83254-5.832Z"
10
+ fill="#EB001B"
11
+ />
12
+ <Path
13
+ d="M23.2411 17.4813v-.4132h.1534v-.0841h-.3908v.0841h.1535v.4132h.0839Zm.7588 0v-.4981h-.1198l-.1378.3426-.1378-.3426h-.1199v.4981h.0846v-.3758l.1292.324h.0877l.1293-.3248v.3766h.0845ZM23.9986 12.4181c-.0001 2.8395-1.6214 5.4296-4.1754 6.6705-2.554 1.2408-5.5922.9144-7.8244-.8405 1.7891-1.406 2.8336-3.5555 2.8336-5.831 0-2.2754-1.0445-4.42495-2.8336-5.83097 2.2322-1.75494 5.2704-2.0813 7.8244-.84048 2.554 1.24082 4.1753 3.83098 4.1754 6.67045v.002Z"
14
+ fill="#00A1DF"
13
15
  />
14
16
  </Svg>
15
17
  );
@@ -1,15 +1,17 @@
1
1
  import React from "react";
2
- import { Svg, Rect, Circle, Path } from "react-native-svg";
2
+ import { Svg, Path } from "react-native-svg";
3
3
  import { SVGLogoProps } from "../LogoPayment";
4
4
 
5
5
  const LogoPaymentMastercard = ({ size }: SVGLogoProps) => (
6
6
  <Svg width={size} height={size} viewBox="0 0 24 24">
7
- <Rect y="4" width="24" height="16" rx="2" fill="#252525" />
8
- <Circle cx="9" cy="12" r="5" fill="#EB001B" />
9
- <Circle cx="15" cy="12" r="5" fill="#F79E1B" />
7
+ <Path fill="#FF5F00" d="M8.75195 5.58569h6.48752v11.659H8.75195z" />
10
8
  <Path
11
- d="M12 8c1.214.912 2 2.364 2 4a4.992 4.992 0 0 1-2 4 4.992 4.992 0 0 1-2-4c0-1.636.786-3.088 2-4Z"
12
- fill="#FF5F00"
9
+ d="M9.16382 11.4162c-.00179-2.27475 1.04248-4.42399 2.83188-5.82847-3.03993-2.38904-7.40537-2.04106-10.02841.7994-2.62305 2.84046-2.62305 7.21977 0 10.06017 2.62304 2.8405 6.98848 3.1885 10.02841.7994-1.79-1.4049-2.8343-3.555-2.83188-5.8305Z"
10
+ fill="#EB001B"
11
+ />
12
+ <Path
13
+ d="M23.2383 16.5v-.4147h.154v-.0845H23v.0845h.1541V16.5h.0842Zm.7617 0V16h-.1203l-.1383.3439L23.603 16h-.1203v.5h.0849v-.3772l.1298.3252h.088l.1297-.326v.378H24ZM23.9924 11.4163c-.0001 2.8387-1.621 5.4282-4.1743 6.6687-2.5534 1.2405-5.5909.9142-7.8225-.8403 1.7886-1.4056 2.833-3.5546 2.833-5.8295 0-2.27484-1.0444-4.42381-2.833-5.82947 2.2316-1.7545 5.2691-2.08077 7.8225-.84027 2.5533 1.24051 4.1742 3.83001 4.1743 6.66874v.0021Z"
14
+ fill="#F79E1B"
13
15
  />
14
16
  </Svg>
15
17
  );
@@ -5,15 +5,15 @@ import { SVGLogoProps } from "../LogoPayment";
5
5
  const LogoPaymentPayPal = ({ size }: SVGLogoProps) => (
6
6
  <Svg width={size} height={size} viewBox="0 0 24 24">
7
7
  <Path
8
- d="M19.22 7.336c.26-1.634 0-2.746-.894-3.752C17.341 2.476 15.564 2 13.291 2H6.689a.952.952 0 0 0-.614.225.932.932 0 0 0-.319.564L3.007 20.023a.554.554 0 0 0 .323.596.572.572 0 0 0 .237.052h4.075l-.281 1.764a.484.484 0 0 0 .279.52.5.5 0 0 0 .206.046h3.435a.832.832 0 0 0 .532-.197.815.815 0 0 0 .278-.49l.035-.172.646-4.057.042-.229a.816.816 0 0 1 .28-.491.833.833 0 0 1 .536-.195h.513c3.328 0 5.934-1.336 6.695-5.203.318-1.616.154-2.963-.687-3.912a3.25 3.25 0 0 0-.94-.717"
9
- fill="#009CDE"
8
+ d="M19.2206 8.31688c.2592-1.63369 0-2.74569-.8944-3.7513-.9846-1.10858-2.7618-1.5845-5.0354-1.5845H6.68879c-.22503.00029-.44257.07995-.61351.22464-.17095.1447-.28408.34495-.31906.56475L3.0071 21.0043a.55436.55436 0 0 0 .01458.2396.55941.55941 0 0 0 .11462.2117.56714.56714 0 0 0 .19365.1448.57183.57183 0 0 0 .23716.0514h4.07508l-.28116 1.7641a.4841.4841 0 0 0 .01218.2085.48744.48744 0 0 0 .09894.1845.49417.49417 0 0 0 .16771.127.49976.49976 0 0 0 .20597.0463h3.43527c.1952-.0013.3837-.071.532-.1966.1483-.1257.2467-.2992.2779-.4898l.0347-.1728.6468-4.0567.0416-.2288c.0316-.1915.1309-.3657.2804-.4914.1494-.1257.3391-.1949.5353-.1951h.5138c3.3276 0 5.9332-1.3362 6.6946-5.203.3182-1.6154.1539-2.96311-.6873-3.91152-.2664-.29417-.5852-.53733-.9407-.71731"
9
+ fill="#0070E0"
10
10
  />
11
11
  <Path
12
- d="M19.22 7.336c.26-1.634 0-2.746-.894-3.752C17.341 2.476 15.564 2 13.291 2H6.689a.952.952 0 0 0-.614.225.932.932 0 0 0-.319.564L3.007 20.023a.554.554 0 0 0 .323.596.572.572 0 0 0 .237.052h4.075l1.024-6.418-.031.201a.927.927 0 0 1 .315-.563.946.946 0 0 1 .61-.225h1.937c3.805 0 6.783-1.529 7.653-5.95.025-.13.047-.257.067-.381"
13
- fill="#012169"
12
+ d="M19.2206 8.31688c.2592-1.63369 0-2.74569-.8944-3.7513-.9846-1.10858-2.7618-1.5845-5.0354-1.5845H6.68879c-.22503.00029-.44257.07995-.61351.22464-.17095.1447-.28408.34495-.31906.56475L3.0071 21.0043a.55436.55436 0 0 0 .01458.2396.55941.55941 0 0 0 .11462.2117.56714.56714 0 0 0 .19365.1448.57183.57183 0 0 0 .23716.0514h4.07508l1.02397-6.4181-.03124.2014c.03393-.2189.14585-.4187.31557-.5632.16972-.1445.38608-.2243.61006-.225h1.93685c3.8044 0 6.7826-1.5285 7.6527-5.94905.0254-.13042.0474-.25741.0671-.38211"
13
+ fill="#001C64"
14
14
  />
15
15
  <Path
16
- d="M9.765 7.358a.812.812 0 0 1 .463-.61.826.826 0 0 1 .356-.08h5.175c.571-.004 1.142.037 1.706.123a7.014 7.014 0 0 1 .847.186l.196.06c.246.08.485.18.715.299.259-1.634 0-2.746-.895-3.752C17.344 2.476 15.567 2 13.293 2H6.689a.952.952 0 0 0-.614.225.932.932 0 0 0-.319.564L3.007 20.023a.554.554 0 0 0 .323.596.572.572 0 0 0 .237.052h4.075l1.024-6.418 1.1-6.895Z"
16
+ d="M9.76535 8.33862a.81197.81197 0 0 1 .15504-.36155c.08061-.10626.18631-.19146.30781-.24823a.82557.82557 0 0 1 .3563-.08008h5.1743a10.85686 10.85686 0 0 1 1.7066.12356c.1493.02288.2951.05034.4362.08123.1412.03089.2777.06635.4108.1041l.1955.06064c.2463.07968.4855.17956.715.29859.2592-1.63369.0001-2.74569-.8943-3.7513-.9847-1.10858-2.7619-1.5845-5.0355-1.5845H6.68879c-.22503.00029-.44257.07995-.61351.22464-.17095.1447-.28408.34495-.31906.56475L3.0071 21.0043a.55436.55436 0 0 0 .01458.2396.55941.55941 0 0 0 .11462.2117.56714.56714 0 0 0 .19365.1448.57183.57183 0 0 0 .23716.0514h4.07508l1.02397-6.4181 1.09919-6.89508Z"
17
17
  fill="#003087"
18
18
  />
19
19
  </Svg>
@@ -1,16 +1,16 @@
1
1
  import React, { useEffect } from "react";
2
- import { StyleSheet, View, Pressable, PressableProps } from "react-native";
2
+ import { Pressable, PressableProps, StyleSheet, View } from "react-native";
3
3
  import Animated, {
4
- useSharedValue,
5
- useAnimatedStyle,
4
+ Easing,
6
5
  interpolate,
6
+ useAnimatedStyle,
7
+ useSharedValue,
7
8
  withSpring,
8
- withTiming,
9
- Easing
9
+ withTiming
10
10
  } from "react-native-reanimated";
11
- import { IOSelectionTickVisualParams } from "../../core/IOStyles";
12
11
  import { IOSpringValues } from "../../core/IOAnimations";
13
12
  import { IOColors } from "../../core/IOColors";
13
+ import { IOSelectionTickVisualParams } from "../../core/IOStyles";
14
14
  import { AnimatedTick } from "../common/AnimatedTick";
15
15
 
16
16
  type Props = {
@@ -83,7 +83,6 @@ export const AnimatedRadio = ({ checked, onPress, disabled }: OwnProps) => {
83
83
  onPress={onPress}
84
84
  style={styles.radioWrapper}
85
85
  >
86
- {/* ◀ REMOVE_LEGACY_COMPONENT: Remove the following conditions */}
87
86
  <View
88
87
  style={[
89
88
  styles.radioBorder,
@@ -103,7 +102,6 @@ export const AnimatedRadio = ({ checked, onPress, disabled }: OwnProps) => {
103
102
  animatedCheckboxSquare
104
103
  ]}
105
104
  />
106
- {/* REMOVE_LEGACY_COMPONENT: End ▶ */}
107
105
  {isChecked && (
108
106
  <View>
109
107
  <AnimatedTick
@@ -0,0 +1,43 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ import { Divider } from "../divider";
4
+ import { IOIcons } from "../icons";
5
+ import { ListItemRadio } from "../listitems/ListItemRadio";
6
+
7
+ export type NewRadioItem<T> = {
8
+ id: T;
9
+ value: string;
10
+ description?: string;
11
+ icon?: IOIcons;
12
+ disabled?: boolean;
13
+ };
14
+
15
+ type Props<T> = {
16
+ items: ReadonlyArray<NewRadioItem<T>>;
17
+ selectedItem?: T;
18
+ onPress: (selected: T) => void;
19
+ };
20
+
21
+ /**
22
+ * A list of radio buttons.
23
+ * The management of the selection is demanded and derived by the `selectedItem` prop.
24
+ * The item with the `id` equal to the `selectedItem` is the active one.
25
+ */
26
+ export const RadioGroup = <T,>({ items, selectedItem, onPress }: Props<T>) => (
27
+ <View>
28
+ {items.map((item, index) => (
29
+ <React.Fragment key={`radio_item_${item.id}`}>
30
+ <ListItemRadio
31
+ testID={`RadioItemTestID_${item.id}`}
32
+ value={item.value}
33
+ description={item.description}
34
+ icon={item.icon}
35
+ disabled={item.disabled}
36
+ onValueChange={() => onPress(item.id)}
37
+ selected={selectedItem === item.id}
38
+ />
39
+ {index < items.length - 1 && <Divider />}
40
+ </React.Fragment>
41
+ ))}
42
+ </View>
43
+ );
@@ -1 +1,2 @@
1
1
  export * from "./AnimatedRadio";
2
+ export * from "./RadioGroup";
@@ -1,101 +1,35 @@
1
- import React from "react";
2
- import type { IOColors, IOTheme } from "../../core/IOColors";
3
- import { FontFamily, IOFontWeight } from "../../utils/fonts";
1
+ import * as React from "react";
2
+ import { IOFontFamily, IOFontWeight } from "../../utils/fonts";
3
+ import { IOColorsStatusForeground, IOTheme } from "../../core";
4
+ import { ExternalTypographyProps, TypographyProps } from "./common";
4
5
  import { useTypographyFactory } from "./Factory";
5
- import { ExternalTypographyProps, RequiredTypographyProps } from "./common";
6
6
 
7
- // these colors are allowed only when the weight is SemiBold
8
- type AllowedSemiBoldColors = Extract<
9
- IOColors,
10
- | "bluegreyDark"
11
- | "bluegreyLight"
12
- | "white"
13
- | "red"
14
- | "blue"
15
- | "bluegrey"
16
- | "grey"
17
- >;
7
+ type AllowedColors = IOColorsStatusForeground | IOTheme["textHeading-default"];
8
+ type AllowedWeight = Extract<IOFontWeight, "Bold" | "Regular">;
18
9
 
19
- // when the weight is bold, only the white color is allowed
20
- type AllowedBoldColors = Extract<
21
- IOColors,
22
- | "white"
23
- | "bluegreyLight"
24
- | "black"
25
- | "bluegreyDark"
26
- | "blue"
27
- | "bluegrey"
28
- | "grey-200"
10
+ type OwnProps = ExternalTypographyProps<
11
+ TypographyProps<AllowedWeight, AllowedColors>
29
12
  >;
30
13
 
31
- // all the possible colors
32
- type AllowedColors =
33
- | AllowedBoldColors
34
- | AllowedSemiBoldColors
35
- | IOTheme["textHeading-default"];
36
-
37
- // all the possible weight
38
- type AllowedWeight = Extract<IOFontWeight, "Bold" | "SemiBold">;
39
-
40
- // these are the properties allowed only if weight is undefined or SemiBold
41
- type SemiBoldProps = {
42
- weight?: Extract<IOFontWeight, "SemiBold">;
43
- color?: AllowedSemiBoldColors | IOTheme["textHeading-default"];
44
- };
45
-
46
- // these are the properties allowed only if weight is Bold
47
- type BoldProps = {
48
- weight: Extract<IOFontWeight, "Bold">;
49
- color?: AllowedBoldColors | IOTheme["textHeading-default"];
50
- };
51
-
52
- type BoldKindProps = SemiBoldProps | BoldProps;
53
-
54
- type OwnProps = ExternalTypographyProps<BoldKindProps>;
55
-
56
- export const h3FontSize = 18;
57
- export const h3LineHeight = 22;
58
-
59
- /**
60
- * A custom function to calculate the values if no weight or color is provided.
61
- * The choose of the default color depends on the weight, for this reason cannot be used
62
- * the default calculateWeightColor with fallback if undefined.
63
- * @param weight
64
- * @param color
65
- */
66
- export const calculateH3WeightColor = (
67
- weight?: AllowedWeight,
68
- color?: AllowedColors
69
- ): RequiredTypographyProps<AllowedWeight, AllowedColors> => {
70
- const newWeight = weight ?? "SemiBold";
71
- const newColor =
72
- color !== undefined
73
- ? color
74
- : newWeight === "SemiBold"
75
- ? "bluegreyDark"
76
- : "white";
77
- return {
78
- weight: newWeight,
79
- color: newColor
80
- };
81
- };
14
+ /* Common typographic styles */
15
+ export const h3FontSize = 22;
16
+ export const h3LineHeight = 33;
17
+ /* New typographic styles */
18
+ const h3FontName: IOFontFamily = "ReadexPro";
19
+ const h3DefaultColor: AllowedColors = "black";
20
+ const h3DefaultWeight: AllowedWeight = "Regular";
82
21
 
83
22
  /**
84
- * Typography component to render `H3` text with font size {@link fontSize} and fontFamily {@link fontName}.
85
- * default values(if not defined) are weight: `SemiBold`, color: `bluegreyDark`
23
+ * Typography component to render `H2` text with font size {@link fontSize} and fontFamily {@link fontName}.
24
+ * default values(if not defined) are weight: `Bold`, color: `bluegreyDark`
86
25
  * @param props
87
26
  * @constructor
88
27
  */
89
- export const H3: React.FC<OwnProps> = (props) => {
90
- const fontName: FontFamily = "TitilliumWeb";
91
- const weightColorFactory = React.useCallback(
92
- () => calculateH3WeightColor(props.weight, props.color),
93
- [props.weight, props.color]
94
- );
95
- return useTypographyFactory<AllowedWeight, AllowedColors>({
96
- ...props,
97
- weightColorFactory,
98
- font: fontName,
99
- fontStyle: { fontSize: h3FontSize, lineHeight: h3LineHeight }
100
- });
101
- };
28
+ export const H3: React.FunctionComponent<OwnProps> = props =>
29
+ useTypographyFactory<AllowedWeight, AllowedColors>({
30
+ ...props,
31
+ defaultWeight: h3DefaultWeight,
32
+ defaultColor: h3DefaultColor,
33
+ font: h3FontName,
34
+ fontStyle: { fontSize: h3FontSize, lineHeight: h3LineHeight }
35
+ });
@@ -1,8 +1,8 @@
1
- import React from "react";
2
- import type { IOColors } from "../../core/IOColors";
3
- import { FontFamily, IOFontWeight } from "../../utils/fonts";
4
- import { useTypographyFactory } from "./Factory";
1
+ import * as React from "react";
2
+ import { IOFontFamily, IOFontWeight } from "../../utils/fonts";
3
+ import type { IOColors } from "../../core";
5
4
  import { ExternalTypographyProps, TypographyProps } from "./common";
5
+ import { useTypographyFactory } from "./Factory";
6
6
 
7
7
  type AllowedColors = IOColors;
8
8
  type AllowedWeight = Extract<IOFontWeight, "SemiBold" | "Bold">;
@@ -10,40 +10,33 @@ type FontSize = "regular" | "small";
10
10
  type AllowedFontSize = { fontSize?: FontSize };
11
11
 
12
12
  type OwnProps = ExternalTypographyProps<
13
- TypographyProps<AllowedWeight, AllowedColors>
13
+ TypographyProps<AllowedWeight, AllowedColors>
14
14
  > &
15
- AllowedFontSize;
15
+ AllowedFontSize;
16
+
17
+ const fontName: IOFontFamily = "TitilliumWeb";
18
+ const fontSizeMapping: Record<FontSize, number> = { regular: 16, small: 14 };
16
19
 
17
20
  export const linkDefaultColor: AllowedColors = "blueIO-500";
18
21
  export const linkDefaultWeight: AllowedWeight = "Bold";
19
22
 
20
23
  /**
21
24
  * Typography component to render `Link` text with font size {@link fontSize} and fontFamily {@link fontName}.
22
- * default values(if not defined) are weight: `Bold/SemiBold`, color: `blue/blueIO-500`
25
+ * default values(if not defined) are weight: `SemiBold`, color: `blue`
23
26
  * @param props`
24
27
  * @constructor
25
28
  */
26
- export const Link: React.FC<OwnProps> = (props) => {
27
- const fontName: FontFamily = "TitilliumWeb";
28
- const fontSizeMapping: Record<FontSize, number> = { regular: 16, small: 14 };
29
-
30
- const defaultWeight = linkDefaultWeight;
31
- const defaultColor = linkDefaultColor;
32
-
33
- const defaultFontSize = props.fontSize
29
+ export const Link: React.FunctionComponent<OwnProps> = props =>
30
+ useTypographyFactory<AllowedWeight, AllowedColors>({
31
+ accessibilityRole: props.onPress ? "link" : undefined,
32
+ ...props,
33
+ defaultWeight: linkDefaultWeight,
34
+ defaultColor: linkDefaultColor,
35
+ font: fontName,
36
+ fontStyle: {
37
+ fontSize: props.fontSize
34
38
  ? fontSizeMapping[props.fontSize]
35
- : fontSizeMapping.regular;
36
- const defaultTextDecorationLine = "underline";
37
-
38
- return useTypographyFactory<AllowedWeight, AllowedColors>({
39
- accessibilityRole: props.onPress ? "link" : undefined,
40
- ...props,
41
- defaultWeight,
42
- defaultColor,
43
- font: fontName,
44
- fontStyle: {
45
- fontSize: defaultFontSize,
46
- textDecorationLine: defaultTextDecorationLine
47
- },
48
- });
49
- };
39
+ : fontSizeMapping.regular,
40
+ textDecorationLine: "underline"
41
+ }
42
+ });