@pagopa/io-app-design-system 4.4.1 → 5.0.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/lib/commonjs/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +1 -1
  2. package/lib/commonjs/components/accordion/index.js +0 -11
  3. package/lib/commonjs/components/accordion/index.js.map +1 -1
  4. package/lib/commonjs/components/badge/Badge.js +4 -4
  5. package/lib/commonjs/components/badge/Badge.js.map +1 -1
  6. package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +1 -1
  7. package/lib/commonjs/components/banner/Banner.js +4 -4
  8. package/lib/commonjs/components/banner/Banner.js.map +1 -1
  9. package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +3 -3
  10. package/lib/commonjs/components/buttons/ButtonLink.js +25 -32
  11. package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
  12. package/lib/commonjs/components/buttons/ButtonOutline.js +18 -86
  13. package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
  14. package/lib/commonjs/components/buttons/ButtonSolid.js +9 -53
  15. package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
  16. package/lib/commonjs/components/buttons/IconButton.js +6 -36
  17. package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
  18. package/lib/commonjs/components/buttons/IconButtonContained.js +5 -50
  19. package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -1
  20. package/lib/commonjs/components/buttons/IconButtonSolid.js +5 -36
  21. package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -1
  22. package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +29 -27
  23. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +5 -15
  24. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
  25. package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js +2 -9
  26. package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
  27. package/lib/commonjs/components/layout/FooterActions.js +1 -5
  28. package/lib/commonjs/components/layout/FooterActions.js.map +1 -1
  29. package/lib/commonjs/components/layout/HeaderSecondLevel.js +3 -3
  30. package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
  31. package/lib/commonjs/components/layout/ModalBSHeader.js +3 -15
  32. package/lib/commonjs/components/layout/ModalBSHeader.js.map +1 -1
  33. package/lib/commonjs/components/listitems/ListItemNav.js +18 -9
  34. package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
  35. package/lib/commonjs/components/listitems/ListItemNavAlert.js +1 -4
  36. package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
  37. package/lib/commonjs/components/listitems/ListItemTransaction.js +2 -4
  38. package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
  39. package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +31 -35
  40. package/lib/commonjs/components/modules/ModuleIDP.js +4 -5
  41. package/lib/commonjs/components/modules/ModuleIDP.js.map +1 -1
  42. package/lib/commonjs/components/numberpad/NumberButton.js +3 -18
  43. package/lib/commonjs/components/numberpad/NumberButton.js.map +1 -1
  44. package/lib/commonjs/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +10 -10
  45. package/lib/commonjs/components/radio/AnimatedRadio.js +4 -14
  46. package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
  47. package/lib/commonjs/components/searchInput/SearchInput.js +6 -10
  48. package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -1
  49. package/lib/commonjs/components/stepper/Stepper.js +1 -10
  50. package/lib/commonjs/components/stepper/Stepper.js.map +1 -1
  51. package/lib/commonjs/components/switch/NativeSwitch.js +2 -15
  52. package/lib/commonjs/components/switch/NativeSwitch.js.map +1 -1
  53. package/lib/commonjs/components/tabs/TabItem.js +6 -46
  54. package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
  55. package/lib/commonjs/components/tag/Tag.js +4 -4
  56. package/lib/commonjs/components/tag/Tag.js.map +1 -1
  57. package/lib/commonjs/components/textInput/TextInputBase.js +10 -20
  58. package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
  59. package/lib/commonjs/components/typography/Body.js +4 -6
  60. package/lib/commonjs/components/typography/Body.js.map +1 -1
  61. package/lib/commonjs/components/typography/BodySmall.js +3 -3
  62. package/lib/commonjs/components/typography/BodySmall.js.map +1 -1
  63. package/lib/commonjs/components/typography/ButtonText.js +6 -7
  64. package/lib/commonjs/components/typography/ButtonText.js.map +1 -1
  65. package/lib/commonjs/components/typography/Caption.js +6 -12
  66. package/lib/commonjs/components/typography/Caption.js.map +1 -1
  67. package/lib/commonjs/components/typography/H1.js +6 -13
  68. package/lib/commonjs/components/typography/H1.js.map +1 -1
  69. package/lib/commonjs/components/typography/H2.js +8 -17
  70. package/lib/commonjs/components/typography/H2.js.map +1 -1
  71. package/lib/commonjs/components/typography/H3.js +4 -8
  72. package/lib/commonjs/components/typography/H3.js.map +1 -1
  73. package/lib/commonjs/components/typography/H4.js +7 -14
  74. package/lib/commonjs/components/typography/H4.js.map +1 -1
  75. package/lib/commonjs/components/typography/H5.js +5 -10
  76. package/lib/commonjs/components/typography/H5.js.map +1 -1
  77. package/lib/commonjs/components/typography/H6.js +7 -10
  78. package/lib/commonjs/components/typography/H6.js.map +1 -1
  79. package/lib/commonjs/components/typography/Hero.js +8 -17
  80. package/lib/commonjs/components/typography/Hero.js.map +1 -1
  81. package/lib/commonjs/components/typography/LabelMini.js +4 -6
  82. package/lib/commonjs/components/typography/LabelMini.js.map +1 -1
  83. package/lib/commonjs/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +42 -42
  84. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +26 -26
  85. package/lib/commonjs/components/typography/markdown/MdH1.js +3 -3
  86. package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -1
  87. package/lib/commonjs/components/typography/markdown/MdH2.js +3 -3
  88. package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -1
  89. package/lib/commonjs/components/typography/markdown/MdH3.js +3 -3
  90. package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -1
  91. package/lib/commonjs/core/IOColors.js +1 -8
  92. package/lib/commonjs/core/IOColors.js.map +1 -1
  93. package/lib/commonjs/core/IODSExperimentalContextProvider.js +4 -3
  94. package/lib/commonjs/core/IODSExperimentalContextProvider.js.map +1 -1
  95. package/lib/commonjs/core/IONewTypefaceContextProvider.js +33 -0
  96. package/lib/commonjs/core/IONewTypefaceContextProvider.js.map +1 -0
  97. package/lib/commonjs/core/IOStyles.js +1 -49
  98. package/lib/commonjs/core/IOStyles.js.map +1 -1
  99. package/lib/commonjs/core/IOThemeContextProvider.js +4 -15
  100. package/lib/commonjs/core/IOThemeContextProvider.js.map +1 -1
  101. package/lib/commonjs/core/index.js +11 -0
  102. package/lib/commonjs/core/index.js.map +1 -1
  103. package/lib/module/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +1 -1
  104. package/lib/module/components/accordion/index.js +0 -1
  105. package/lib/module/components/accordion/index.js.map +1 -1
  106. package/lib/module/components/badge/Badge.js +5 -5
  107. package/lib/module/components/badge/Badge.js.map +1 -1
  108. package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +1 -1
  109. package/lib/module/components/banner/Banner.js +5 -5
  110. package/lib/module/components/banner/Banner.js.map +1 -1
  111. package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +3 -3
  112. package/lib/module/components/buttons/ButtonLink.js +28 -35
  113. package/lib/module/components/buttons/ButtonLink.js.map +1 -1
  114. package/lib/module/components/buttons/ButtonOutline.js +19 -87
  115. package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
  116. package/lib/module/components/buttons/ButtonSolid.js +10 -54
  117. package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
  118. package/lib/module/components/buttons/IconButton.js +6 -37
  119. package/lib/module/components/buttons/IconButton.js.map +1 -1
  120. package/lib/module/components/buttons/IconButtonContained.js +6 -51
  121. package/lib/module/components/buttons/IconButtonContained.js.map +1 -1
  122. package/lib/module/components/buttons/IconButtonSolid.js +6 -37
  123. package/lib/module/components/buttons/IconButtonSolid.js.map +1 -1
  124. package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +29 -27
  125. package/lib/module/components/checkbox/AnimatedCheckbox.js +6 -16
  126. package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
  127. package/lib/module/components/checkbox/AnimatedMessageCheckbox.js +3 -10
  128. package/lib/module/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
  129. package/lib/module/components/layout/FooterActions.js +2 -6
  130. package/lib/module/components/layout/FooterActions.js.map +1 -1
  131. package/lib/module/components/layout/HeaderSecondLevel.js +4 -4
  132. package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -1
  133. package/lib/module/components/layout/ModalBSHeader.js +5 -17
  134. package/lib/module/components/layout/ModalBSHeader.js.map +1 -1
  135. package/lib/module/components/listitems/ListItemNav.js +19 -10
  136. package/lib/module/components/listitems/ListItemNav.js.map +1 -1
  137. package/lib/module/components/listitems/ListItemNavAlert.js +2 -5
  138. package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
  139. package/lib/module/components/listitems/ListItemTransaction.js +3 -5
  140. package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
  141. package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +31 -35
  142. package/lib/module/components/modules/ModuleIDP.js +4 -5
  143. package/lib/module/components/modules/ModuleIDP.js.map +1 -1
  144. package/lib/module/components/numberpad/NumberButton.js +5 -20
  145. package/lib/module/components/numberpad/NumberButton.js.map +1 -1
  146. package/lib/module/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +10 -10
  147. package/lib/module/components/radio/AnimatedRadio.js +5 -15
  148. package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
  149. package/lib/module/components/searchInput/SearchInput.js +7 -11
  150. package/lib/module/components/searchInput/SearchInput.js.map +1 -1
  151. package/lib/module/components/stepper/Stepper.js +2 -11
  152. package/lib/module/components/stepper/Stepper.js.map +1 -1
  153. package/lib/module/components/switch/NativeSwitch.js +3 -16
  154. package/lib/module/components/switch/NativeSwitch.js.map +1 -1
  155. package/lib/module/components/tabs/TabItem.js +7 -47
  156. package/lib/module/components/tabs/TabItem.js.map +1 -1
  157. package/lib/module/components/tag/Tag.js +5 -5
  158. package/lib/module/components/tag/Tag.js.map +1 -1
  159. package/lib/module/components/textInput/TextInputBase.js +11 -21
  160. package/lib/module/components/textInput/TextInputBase.js.map +1 -1
  161. package/lib/module/components/typography/Body.js +5 -7
  162. package/lib/module/components/typography/Body.js.map +1 -1
  163. package/lib/module/components/typography/BodySmall.js +4 -4
  164. package/lib/module/components/typography/BodySmall.js.map +1 -1
  165. package/lib/module/components/typography/ButtonText.js +7 -8
  166. package/lib/module/components/typography/ButtonText.js.map +1 -1
  167. package/lib/module/components/typography/Caption.js +6 -12
  168. package/lib/module/components/typography/Caption.js.map +1 -1
  169. package/lib/module/components/typography/H1.js +6 -13
  170. package/lib/module/components/typography/H1.js.map +1 -1
  171. package/lib/module/components/typography/H2.js +8 -17
  172. package/lib/module/components/typography/H2.js.map +1 -1
  173. package/lib/module/components/typography/H3.js +4 -8
  174. package/lib/module/components/typography/H3.js.map +1 -1
  175. package/lib/module/components/typography/H4.js +7 -14
  176. package/lib/module/components/typography/H4.js.map +1 -1
  177. package/lib/module/components/typography/H5.js +6 -11
  178. package/lib/module/components/typography/H5.js.map +1 -1
  179. package/lib/module/components/typography/H6.js +7 -10
  180. package/lib/module/components/typography/H6.js.map +1 -1
  181. package/lib/module/components/typography/Hero.js +8 -17
  182. package/lib/module/components/typography/Hero.js.map +1 -1
  183. package/lib/module/components/typography/LabelMini.js +5 -7
  184. package/lib/module/components/typography/LabelMini.js.map +1 -1
  185. package/lib/module/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +42 -42
  186. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +26 -26
  187. package/lib/module/components/typography/markdown/MdH1.js +4 -4
  188. package/lib/module/components/typography/markdown/MdH1.js.map +1 -1
  189. package/lib/module/components/typography/markdown/MdH2.js +4 -4
  190. package/lib/module/components/typography/markdown/MdH2.js.map +1 -1
  191. package/lib/module/components/typography/markdown/MdH3.js +4 -4
  192. package/lib/module/components/typography/markdown/MdH3.js.map +1 -1
  193. package/lib/module/core/IOColors.js +0 -6
  194. package/lib/module/core/IOColors.js.map +1 -1
  195. package/lib/module/core/IODSExperimentalContextProvider.js +2 -2
  196. package/lib/module/core/IODSExperimentalContextProvider.js.map +1 -1
  197. package/lib/module/core/IONewTypefaceContextProvider.js +22 -0
  198. package/lib/module/core/IONewTypefaceContextProvider.js.map +1 -0
  199. package/lib/module/core/IOStyles.js +0 -46
  200. package/lib/module/core/IOStyles.js.map +1 -1
  201. package/lib/module/core/IOThemeContextProvider.js +3 -12
  202. package/lib/module/core/IOThemeContextProvider.js.map +1 -1
  203. package/lib/module/core/index.js +1 -0
  204. package/lib/module/core/index.js.map +1 -1
  205. package/lib/typescript/components/accordion/index.d.ts +0 -1
  206. package/lib/typescript/components/accordion/index.d.ts.map +1 -1
  207. package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
  208. package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
  209. package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
  210. package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
  211. package/lib/typescript/components/buttons/IconButton.d.ts.map +1 -1
  212. package/lib/typescript/components/buttons/IconButtonContained.d.ts.map +1 -1
  213. package/lib/typescript/components/buttons/IconButtonSolid.d.ts.map +1 -1
  214. package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
  215. package/lib/typescript/components/checkbox/AnimatedMessageCheckbox.d.ts.map +1 -1
  216. package/lib/typescript/components/layout/FooterActions.d.ts.map +1 -1
  217. package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -1
  218. package/lib/typescript/components/layout/ModalBSHeader.d.ts.map +1 -1
  219. package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
  220. package/lib/typescript/components/listitems/ListItemNavAlert.d.ts.map +1 -1
  221. package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
  222. package/lib/typescript/components/modules/ModuleIDP.d.ts.map +1 -1
  223. package/lib/typescript/components/numberpad/NumberButton.d.ts.map +1 -1
  224. package/lib/typescript/components/radio/AnimatedRadio.d.ts.map +1 -1
  225. package/lib/typescript/components/searchInput/SearchInput.d.ts.map +1 -1
  226. package/lib/typescript/components/stepper/Stepper.d.ts.map +1 -1
  227. package/lib/typescript/components/switch/NativeSwitch.d.ts.map +1 -1
  228. package/lib/typescript/components/tabs/TabItem.d.ts.map +1 -1
  229. package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
  230. package/lib/typescript/components/typography/Body.d.ts.map +1 -1
  231. package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -1
  232. package/lib/typescript/components/typography/Caption.d.ts.map +1 -1
  233. package/lib/typescript/components/typography/H1.d.ts.map +1 -1
  234. package/lib/typescript/components/typography/H2.d.ts +0 -3
  235. package/lib/typescript/components/typography/H2.d.ts.map +1 -1
  236. package/lib/typescript/components/typography/H3.d.ts.map +1 -1
  237. package/lib/typescript/components/typography/H4.d.ts.map +1 -1
  238. package/lib/typescript/components/typography/H5.d.ts.map +1 -1
  239. package/lib/typescript/components/typography/H6.d.ts.map +1 -1
  240. package/lib/typescript/components/typography/Hero.d.ts.map +1 -1
  241. package/lib/typescript/components/typography/LabelMini.d.ts.map +1 -1
  242. package/lib/typescript/core/IOColors.d.ts +0 -1
  243. package/lib/typescript/core/IOColors.d.ts.map +1 -1
  244. package/lib/typescript/core/IODSExperimentalContextProvider.d.ts.map +1 -1
  245. package/lib/typescript/core/IONewTypefaceContextProvider.d.ts +16 -0
  246. package/lib/typescript/core/IONewTypefaceContextProvider.d.ts.map +1 -0
  247. package/lib/typescript/core/IOStyles.d.ts +2 -32
  248. package/lib/typescript/core/IOStyles.d.ts.map +1 -1
  249. package/lib/typescript/core/IOThemeContextProvider.d.ts +0 -4
  250. package/lib/typescript/core/IOThemeContextProvider.d.ts.map +1 -1
  251. package/lib/typescript/core/index.d.ts +1 -0
  252. package/lib/typescript/core/index.d.ts.map +1 -1
  253. package/lib/typescript/utils/fonts.d.ts +1 -1
  254. package/package.json +1 -1
  255. package/src/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +1 -1
  256. package/src/components/accordion/index.tsx +0 -1
  257. package/src/components/badge/Badge.tsx +3 -3
  258. package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +1 -1
  259. package/src/components/banner/Banner.tsx +3 -4
  260. package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +3 -3
  261. package/src/components/buttons/ButtonLink.tsx +38 -41
  262. package/src/components/buttons/ButtonOutline.tsx +31 -103
  263. package/src/components/buttons/ButtonSolid.tsx +11 -69
  264. package/src/components/buttons/IconButton.tsx +5 -49
  265. package/src/components/buttons/IconButtonContained.tsx +11 -58
  266. package/src/components/buttons/IconButtonSolid.tsx +9 -47
  267. package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +29 -27
  268. package/src/components/checkbox/AnimatedCheckbox.tsx +6 -34
  269. package/src/components/checkbox/AnimatedMessageCheckbox.tsx +3 -14
  270. package/src/components/layout/FooterActions.tsx +1 -4
  271. package/src/components/layout/HeaderSecondLevel.tsx +4 -3
  272. package/src/components/layout/ModalBSHeader.tsx +11 -29
  273. package/src/components/listitems/ListItemNav.tsx +44 -31
  274. package/src/components/listitems/ListItemNavAlert.tsx +1 -4
  275. package/src/components/listitems/ListItemTransaction.tsx +2 -6
  276. package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +31 -35
  277. package/src/components/modules/ModuleIDP.tsx +3 -8
  278. package/src/components/numberpad/NumberButton.tsx +4 -27
  279. package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +10 -10
  280. package/src/components/radio/AnimatedRadio.tsx +5 -33
  281. package/src/components/searchInput/SearchInput.tsx +11 -20
  282. package/src/components/stepper/Stepper.tsx +2 -20
  283. package/src/components/switch/NativeSwitch.tsx +3 -21
  284. package/src/components/tabs/TabItem.tsx +14 -61
  285. package/src/components/tag/Tag.tsx +3 -3
  286. package/src/components/textInput/TextInputBase.tsx +19 -34
  287. package/src/components/typography/Body.tsx +4 -11
  288. package/src/components/typography/BodySmall.tsx +3 -3
  289. package/src/components/typography/ButtonText.tsx +6 -8
  290. package/src/components/typography/Caption.tsx +6 -13
  291. package/src/components/typography/H1.tsx +6 -14
  292. package/src/components/typography/H2.tsx +8 -18
  293. package/src/components/typography/H3.tsx +4 -8
  294. package/src/components/typography/H4.tsx +7 -15
  295. package/src/components/typography/H5.tsx +6 -14
  296. package/src/components/typography/H6.tsx +7 -11
  297. package/src/components/typography/Hero.tsx +8 -18
  298. package/src/components/typography/LabelMini.tsx +4 -11
  299. package/src/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +42 -42
  300. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +26 -26
  301. package/src/components/typography/markdown/MdH1.tsx +3 -3
  302. package/src/components/typography/markdown/MdH2.tsx +3 -3
  303. package/src/components/typography/markdown/MdH3.tsx +3 -3
  304. package/src/core/IOColors.ts +0 -7
  305. package/src/core/IODSExperimentalContextProvider.tsx +2 -2
  306. package/src/core/IONewTypefaceContextProvider.tsx +37 -0
  307. package/src/core/IOStyles.ts +0 -52
  308. package/src/core/IOThemeContextProvider.tsx +3 -16
  309. package/src/core/index.ts +1 -0
  310. package/lib/commonjs/components/accordion/RawAccordion.js +0 -93
  311. package/lib/commonjs/components/accordion/RawAccordion.js.map +0 -1
  312. package/lib/module/components/accordion/RawAccordion.js +0 -86
  313. package/lib/module/components/accordion/RawAccordion.js.map +0 -1
  314. package/lib/typescript/components/accordion/RawAccordion.d.ts +0 -17
  315. package/lib/typescript/components/accordion/RawAccordion.d.ts.map +0 -1
  316. package/src/components/accordion/RawAccordion.tsx +0 -116
@@ -6,7 +6,8 @@ import {
6
6
  IOListItemStyles,
7
7
  IOListItemVisualParams,
8
8
  IOSelectionListItemVisualParams,
9
- IOStyles,
9
+ IOSpacer,
10
+ IOVisualCostants,
10
11
  useIOTheme
11
12
  } from "../../core";
12
13
  import { useListItemAnimation } from "../../hooks";
@@ -95,8 +96,7 @@ export const ListItemNav = ({
95
96
  useListItemAnimation();
96
97
  const theme = useIOTheme();
97
98
 
98
- const { dynamicFontScale, spacingScaleMultiplier, hugeFontEnabled } =
99
- useIOFontDynamicScale();
99
+ const { dynamicFontScale, hugeFontEnabled } = useIOFontDynamicScale();
100
100
 
101
101
  const listItemNavContent = (
102
102
  <>
@@ -176,16 +176,7 @@ export const ListItemNav = ({
176
176
  style={[IOListItemStyles.listItem, backgroundAnimatedStyle]}
177
177
  >
178
178
  <Animated.View
179
- style={[
180
- IOListItemStyles.listItemInner,
181
- {
182
- columnGap:
183
- IOListItemVisualParams.iconMargin *
184
- dynamicFontScale *
185
- spacingScaleMultiplier
186
- },
187
- scaleAnimatedStyle
188
- ]}
179
+ style={[IOListItemStyles.listItemInner, scaleAnimatedStyle]}
189
180
  >
190
181
  {/* Possibile graphical assets
191
182
  - Icon
@@ -193,28 +184,50 @@ export const ListItemNav = ({
193
184
  - Avatar
194
185
  */}
195
186
  {icon && !hugeFontEnabled && (
196
- <Icon
197
- allowFontScaling
198
- name={icon}
199
- color={iconColor}
200
- size={IOListItemVisualParams.iconSize}
201
- />
187
+ <>
188
+ <Icon
189
+ allowFontScaling
190
+ name={icon}
191
+ color={iconColor}
192
+ size={IOListItemVisualParams.iconSize}
193
+ />
194
+ <HSpacer
195
+ allowScaleSpacing
196
+ size={IOVisualCostants.iconMargin as IOSpacer}
197
+ />
198
+ </>
202
199
  )}
203
200
  {paymentLogoUri && (
204
- <Image
205
- accessibilityIgnoresInvertColors
206
- source={{ uri: paymentLogoUri }}
207
- style={{
208
- width:
209
- IOSelectionListItemVisualParams.iconSize * dynamicFontScale,
210
- height:
211
- IOSelectionListItemVisualParams.iconSize * dynamicFontScale
212
- }}
213
- />
201
+ <>
202
+ <Image
203
+ accessibilityIgnoresInvertColors
204
+ source={{ uri: paymentLogoUri }}
205
+ style={{
206
+ width:
207
+ IOSelectionListItemVisualParams.iconSize * dynamicFontScale,
208
+ height:
209
+ IOSelectionListItemVisualParams.iconSize * dynamicFontScale
210
+ }}
211
+ />
212
+ <HSpacer
213
+ allowScaleSpacing
214
+ size={IOVisualCostants.iconMargin as IOSpacer}
215
+ />
216
+ </>
217
+ )}
218
+ {avatar && (
219
+ <>
220
+ <Avatar size="small" {...avatar} />
221
+ <HSpacer
222
+ allowScaleSpacing
223
+ size={IOVisualCostants.iconMargin as IOSpacer}
224
+ />
225
+ </>
214
226
  )}
215
- {avatar && <Avatar size="small" {...avatar} />}
216
227
 
217
- <View style={IOStyles.flex}>{listItemNavContent}</View>
228
+ <View style={{ flexGrow: 1, flexShrink: 1 }}>
229
+ {listItemNavContent}
230
+ </View>
218
231
  {loading && <LoadingSpinner color={interactiveColor} />}
219
232
  {!loading && !hideChevron && (
220
233
  <Icon
@@ -5,7 +5,6 @@ import {
5
5
  IOListItemStyles,
6
6
  IOListItemVisualParams,
7
7
  IOStyles,
8
- useIOExperimentalDesign,
9
8
  useIOTheme
10
9
  } from "../../core";
11
10
  import { useListItemAnimation } from "../../hooks";
@@ -38,7 +37,6 @@ export const ListItemNavAlert = ({
38
37
  const { onPressIn, onPressOut, scaleAnimatedStyle, backgroundAnimatedStyle } =
39
38
  useListItemAnimation();
40
39
  const { dynamicFontScale, spacingScaleMultiplier } = useIOFontDynamicScale();
41
- const { isExperimental } = useIOExperimentalDesign();
42
40
 
43
41
  const componentValueToAccessibility = typeof value === "string" ? value : "";
44
42
  const componentDescriptionToAccessibility =
@@ -71,7 +69,7 @@ export const ListItemNavAlert = ({
71
69
  </>
72
70
  );
73
71
 
74
- const iconColor = isExperimental ? theme["interactiveElem-default"] : "blue";
72
+ const iconColor = theme["interactiveElem-default"];
75
73
 
76
74
  return (
77
75
  <Pressable
@@ -111,7 +109,6 @@ export const ListItemNavAlert = ({
111
109
  />
112
110
  )}
113
111
  <View style={IOStyles.flex}>{listItemNavAlertContent}</View>
114
-
115
112
  <Icon
116
113
  allowFontScaling
117
114
  name="chevronRightListItem"
@@ -9,7 +9,6 @@ import {
9
9
  IOListItemVisualParams,
10
10
  IOStyles,
11
11
  IOVisualCostants,
12
- useIOExperimentalDesign,
13
12
  useIOTheme
14
13
  } from "../../core";
15
14
 
@@ -114,16 +113,13 @@ export const ListItemTransaction = ({
114
113
  numberOfLines = 2,
115
114
  accessible
116
115
  }: ListItemTransaction) => {
117
- const { isExperimental } = useIOExperimentalDesign();
118
116
  const theme = useIOTheme();
119
117
 
120
118
  if (isLoading) {
121
119
  return <SkeletonComponent />;
122
120
  }
123
121
 
124
- const interactiveColor: IOColors = isExperimental
125
- ? theme["interactiveElem-default"]
126
- : "blue";
122
+ const interactiveColor: IOColors = theme["interactiveElem-default"];
127
123
 
128
124
  const amountColorDefault: IOColors = theme["textBody-default"];
129
125
  const amountColorRefund: IOColors = theme.successText;
@@ -156,7 +152,7 @@ export const ListItemTransaction = ({
156
152
  </BodySmall>
157
153
  </View>
158
154
  </HStack>
159
- <HStack style={{ alignItems: "center" }}>
155
+ <HStack space={4} style={{ alignItems: "center" }}>
160
156
  {badge ? (
161
157
  <Badge variant={badge?.variant} text={badge?.text} />
162
158
  ) : (
@@ -530,9 +530,6 @@ exports[`Test List Item Components - Experimental Enabled ListItemNav Snapshot
530
530
  "flexDirection": "row",
531
531
  "justifyContent": "space-between",
532
532
  },
533
- {
534
- "columnGap": 12,
535
- },
536
533
  {
537
534
  "transform": [
538
535
  {
@@ -546,7 +543,8 @@ exports[`Test List Item Components - Experimental Enabled ListItemNav Snapshot
546
543
  <View
547
544
  style={
548
545
  {
549
- "flex": 1,
546
+ "flexGrow": 1,
547
+ "flexShrink": 1,
550
548
  }
551
549
  }
552
550
  >
@@ -1760,7 +1758,7 @@ exports[`Test List Item Components ListItemAction Snapshot 1`] = `
1760
1758
  {},
1761
1759
  {
1762
1760
  "color": "#0B3EE3",
1763
- "fontFamily": "Titillium Sans Pro",
1761
+ "fontFamily": "Titillio",
1764
1762
  "fontSize": 16,
1765
1763
  "fontStyle": "normal",
1766
1764
  "fontWeight": "600",
@@ -1852,7 +1850,7 @@ exports[`Test List Item Components ListItemIDP Snapshot 1`] = `
1852
1850
  },
1853
1851
  {
1854
1852
  "color": "#555C70",
1855
- "fontFamily": "Titillium Sans Pro",
1853
+ "fontFamily": "Titillio",
1856
1854
  "fontSize": 12,
1857
1855
  "fontStyle": "normal",
1858
1856
  "fontWeight": "600",
@@ -1921,7 +1919,7 @@ exports[`Test List Item Components ListItemInfo Snapshot 1`] = `
1921
1919
  {},
1922
1920
  {
1923
1921
  "color": "#555C70",
1924
- "fontFamily": "Titillium Sans Pro",
1922
+ "fontFamily": "Titillio",
1925
1923
  "fontSize": 14,
1926
1924
  "fontStyle": "normal",
1927
1925
  "fontWeight": "400",
@@ -1942,8 +1940,8 @@ exports[`Test List Item Components ListItemInfo Snapshot 1`] = `
1942
1940
  {},
1943
1941
  {
1944
1942
  "color": "#0E0F13",
1945
- "fontFamily": "Titillium Sans Pro",
1946
- "fontSize": 17,
1943
+ "fontFamily": "Titillio",
1944
+ "fontSize": 16,
1947
1945
  "fontStyle": "normal",
1948
1946
  "fontWeight": "600",
1949
1947
  "lineHeight": 24,
@@ -2047,7 +2045,7 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
2047
2045
  {},
2048
2046
  {
2049
2047
  "color": "#555C70",
2050
- "fontFamily": "Titillium Sans Pro",
2048
+ "fontFamily": "Titillio",
2051
2049
  "fontSize": 14,
2052
2050
  "fontStyle": "normal",
2053
2051
  "fontWeight": "400",
@@ -2068,8 +2066,8 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
2068
2066
  {},
2069
2067
  {
2070
2068
  "color": "#0B3EE3",
2071
- "fontFamily": "Titillium Sans Pro",
2072
- "fontSize": 17,
2069
+ "fontFamily": "Titillio",
2070
+ "fontSize": 16,
2073
2071
  "fontStyle": "normal",
2074
2072
  "fontWeight": "600",
2075
2073
  "lineHeight": 24,
@@ -2202,9 +2200,6 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
2202
2200
  "flexDirection": "row",
2203
2201
  "justifyContent": "space-between",
2204
2202
  },
2205
- {
2206
- "columnGap": 12,
2207
- },
2208
2203
  {
2209
2204
  "transform": [
2210
2205
  {
@@ -2218,7 +2213,8 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
2218
2213
  <View
2219
2214
  style={
2220
2215
  {
2221
- "flex": 1,
2216
+ "flexGrow": 1,
2217
+ "flexShrink": 1,
2222
2218
  }
2223
2219
  }
2224
2220
  >
@@ -2231,8 +2227,8 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
2231
2227
  {},
2232
2228
  {
2233
2229
  "color": "#0E0F13",
2234
- "fontFamily": "Titillium Sans Pro",
2235
- "fontSize": 17,
2230
+ "fontFamily": "Titillio",
2231
+ "fontSize": 16,
2236
2232
  "fontStyle": "normal",
2237
2233
  "fontWeight": "600",
2238
2234
  "lineHeight": 24,
@@ -2456,8 +2452,8 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
2456
2452
  {},
2457
2453
  {
2458
2454
  "color": "#0E0F13",
2459
- "fontFamily": "Titillium Sans Pro",
2460
- "fontSize": 17,
2455
+ "fontFamily": "Titillio",
2456
+ "fontSize": 16,
2461
2457
  "fontStyle": "normal",
2462
2458
  "fontWeight": "600",
2463
2459
  "lineHeight": 24,
@@ -2488,7 +2484,7 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
2488
2484
  "borderWidth": 0,
2489
2485
  },
2490
2486
  {
2491
- "color": "#0073E6",
2487
+ "color": "#0B3EE3",
2492
2488
  },
2493
2489
  {
2494
2490
  "flex": 0,
@@ -2497,7 +2493,7 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
2497
2493
  },
2498
2494
  ]
2499
2495
  }
2500
- tintColor="#0073E6"
2496
+ tintColor="#0B3EE3"
2501
2497
  vbHeight={24}
2502
2498
  vbWidth={24}
2503
2499
  width={24}
@@ -2619,8 +2615,8 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
2619
2615
  {},
2620
2616
  {
2621
2617
  "color": "#0E0F13",
2622
- "fontFamily": "Titillium Sans Pro",
2623
- "fontSize": 17,
2618
+ "fontFamily": "Titillio",
2619
+ "fontSize": 16,
2624
2620
  "fontStyle": "normal",
2625
2621
  "fontWeight": "600",
2626
2622
  "lineHeight": 24,
@@ -2706,7 +2702,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
2706
2702
  {},
2707
2703
  {
2708
2704
  "color": "#5517E3",
2709
- "fontFamily": "Titillium Sans Pro",
2705
+ "fontFamily": "Titillio",
2710
2706
  "fontSize": 14,
2711
2707
  "fontStyle": "normal",
2712
2708
  "fontWeight": "400",
@@ -2740,8 +2736,8 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
2740
2736
  {},
2741
2737
  {
2742
2738
  "color": "#0B3EE3",
2743
- "fontFamily": "Titillium Sans Pro",
2744
- "fontSize": 17,
2739
+ "fontFamily": "Titillio",
2740
+ "fontSize": 16,
2745
2741
  "fontStyle": "normal",
2746
2742
  "fontWeight": "600",
2747
2743
  "lineHeight": 24,
@@ -2804,7 +2800,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
2804
2800
  "width": 24,
2805
2801
  },
2806
2802
  {
2807
- "borderColor": "#475A6D",
2803
+ "borderColor": "#636B82",
2808
2804
  },
2809
2805
  ]
2810
2806
  }
@@ -2823,7 +2819,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 1`] = `
2823
2819
  "width": 24,
2824
2820
  },
2825
2821
  {
2826
- "backgroundColor": "#0073E6",
2822
+ "backgroundColor": "#0B3EE3",
2827
2823
  },
2828
2824
  {
2829
2825
  "opacity": 1,
@@ -2992,8 +2988,8 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 2`] = `
2992
2988
  {},
2993
2989
  {
2994
2990
  "color": "#0E0F13",
2995
- "fontFamily": "Titillium Sans Pro",
2996
- "fontSize": 17,
2991
+ "fontFamily": "Titillio",
2992
+ "fontSize": 16,
2997
2993
  "fontStyle": "normal",
2998
2994
  "fontWeight": "600",
2999
2995
  "lineHeight": 24,
@@ -3025,8 +3021,8 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 2`] = `
3025
3021
  {},
3026
3022
  {
3027
3023
  "color": "#0B3EE3",
3028
- "fontFamily": "Titillium Sans Pro",
3029
- "fontSize": 17,
3024
+ "fontFamily": "Titillio",
3025
+ "fontSize": 16,
3030
3026
  "fontStyle": "normal",
3031
3027
  "fontWeight": "600",
3032
3028
  "lineHeight": 24,
@@ -3089,7 +3085,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 2`] = `
3089
3085
  "width": 24,
3090
3086
  },
3091
3087
  {
3092
- "borderColor": "#475A6D",
3088
+ "borderColor": "#636B82",
3093
3089
  },
3094
3090
  ]
3095
3091
  }
@@ -3108,7 +3104,7 @@ exports[`Test List Item Components ListItemRadioWithAmount Snapshot 2`] = `
3108
3104
  "width": 24,
3109
3105
  },
3110
3106
  {
3111
- "backgroundColor": "#0073E6",
3107
+ "backgroundColor": "#0B3EE3",
3112
3108
  },
3113
3109
  {
3114
3110
  "opacity": 0,
@@ -1,11 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { Image, ImageSourcePropType, StyleSheet } from "react-native";
3
+ import { IOListItemLogoMargin, useIONewTypeface, useIOTheme } from "../../core";
3
4
  import { addCacheTimestampToUri } from "../../utils/image";
4
- import {
5
- IOListItemLogoMargin,
6
- useIOExperimentalDesign,
7
- useIOTheme
8
- } from "../../core";
9
5
  import { IOText } from "../typography";
10
6
  import {
11
7
  PressableModuleBase,
@@ -38,8 +34,7 @@ export const ModuleIDP = ({
38
34
  accessibilityLabel
39
35
  }: ModuleIDP) => {
40
36
  const theme = useIOTheme();
41
- const { isExperimental } = useIOExperimentalDesign();
42
-
37
+ const { newTypefaceEnabled } = useIONewTypeface();
43
38
  // eslint-disable-next-line no-console
44
39
  const urlLogoIDP = localLogo ? localLogo : addCacheTimestampToUri(logo);
45
40
 
@@ -50,7 +45,7 @@ export const ModuleIDP = ({
50
45
  withLooseSpacing={withLooseSpacing}
51
46
  >
52
47
  <IOText
53
- font={isExperimental ? "Titillio" : "TitilliumSansPro"}
48
+ font={newTypefaceEnabled ? "Titillio" : "TitilliumSansPro"}
54
49
  weight={"Semibold"}
55
50
  size={12}
56
51
  lineHeight={16}
@@ -1,16 +1,11 @@
1
- import React, { memo, useCallback, useMemo } from "react";
1
+ import React, { memo, useCallback } from "react";
2
2
  import { Pressable } from "react-native";
3
3
  import Animated, {
4
4
  interpolateColor,
5
5
  useAnimatedStyle,
6
6
  useReducedMotion
7
7
  } from "react-native-reanimated";
8
- import {
9
- IOColors,
10
- IONumberPadButtonStyles,
11
- hexToRgba,
12
- useIOExperimentalDesign
13
- } from "../../core";
8
+ import { IOColors, IONumberPadButtonStyles } from "../../core";
14
9
  import { useScaleAnimation } from "../../hooks";
15
10
  import { H3 } from "../typography";
16
11
 
@@ -52,18 +47,6 @@ const colorMap: Record<NumberButtonVariantType, ColorMapVariant> = {
52
47
  }
53
48
  };
54
49
 
55
- const legacyColorMap: Record<NumberButtonVariantType, ColorMapVariant> = {
56
- light: {
57
- background: IOColors["grey-100"],
58
- pressed: IOColors["grey-200"],
59
- foreground: "blue"
60
- },
61
- dark: {
62
- background: hexToRgba(IOColors.black, 0.1),
63
- pressed: hexToRgba(IOColors.white, 0.5),
64
- foreground: "white"
65
- }
66
- };
67
50
  /**
68
51
  * Based on a `Pressable` element, it displays a number button with animations on press In and Out.
69
52
  *
@@ -74,19 +57,13 @@ export const NumberButton = memo(
74
57
  const { progress, onPressIn, onPressOut, scaleAnimatedStyle } =
75
58
  useScaleAnimation("slight");
76
59
  const reducedMotion = useReducedMotion();
77
- const { isExperimental } = useIOExperimentalDesign();
78
-
79
- const colors = useMemo(
80
- () => (isExperimental ? colorMap[variant] : legacyColorMap[variant]),
81
- [variant, isExperimental]
82
- );
83
60
 
84
61
  // Interpolate animation values from `isPressed` values
85
62
  const pressedAnimationStyle = useAnimatedStyle(() => ({
86
63
  backgroundColor: interpolateColor(
87
64
  progress.value,
88
65
  [0, 1],
89
- [colors.background, colors.pressed]
66
+ [colorMap[variant].background, colorMap[variant].pressed]
90
67
  )
91
68
  }));
92
69
 
@@ -111,7 +88,7 @@ export const NumberButton = memo(
111
88
  !reducedMotion && scaleAnimatedStyle
112
89
  ]}
113
90
  >
114
- <H3 color={colors.foreground}>{number}</H3>
91
+ <H3 color={colorMap[variant].foreground}>{number}</H3>
115
92
  </Animated.View>
116
93
  </Pressable>
117
94
  );
@@ -100,7 +100,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
100
100
  {},
101
101
  {
102
102
  "color": "#FFFFFF",
103
- "fontFamily": "Titillium Sans Pro",
103
+ "fontFamily": "Titillio",
104
104
  "fontSize": 22,
105
105
  "fontStyle": "normal",
106
106
  "fontWeight": "600",
@@ -181,7 +181,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
181
181
  {},
182
182
  {
183
183
  "color": "#FFFFFF",
184
- "fontFamily": "Titillium Sans Pro",
184
+ "fontFamily": "Titillio",
185
185
  "fontSize": 22,
186
186
  "fontStyle": "normal",
187
187
  "fontWeight": "600",
@@ -262,7 +262,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
262
262
  {},
263
263
  {
264
264
  "color": "#FFFFFF",
265
- "fontFamily": "Titillium Sans Pro",
265
+ "fontFamily": "Titillio",
266
266
  "fontSize": 22,
267
267
  "fontStyle": "normal",
268
268
  "fontWeight": "600",
@@ -359,7 +359,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
359
359
  {},
360
360
  {
361
361
  "color": "#FFFFFF",
362
- "fontFamily": "Titillium Sans Pro",
362
+ "fontFamily": "Titillio",
363
363
  "fontSize": 22,
364
364
  "fontStyle": "normal",
365
365
  "fontWeight": "600",
@@ -440,7 +440,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
440
440
  {},
441
441
  {
442
442
  "color": "#FFFFFF",
443
- "fontFamily": "Titillium Sans Pro",
443
+ "fontFamily": "Titillio",
444
444
  "fontSize": 22,
445
445
  "fontStyle": "normal",
446
446
  "fontWeight": "600",
@@ -521,7 +521,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
521
521
  {},
522
522
  {
523
523
  "color": "#FFFFFF",
524
- "fontFamily": "Titillium Sans Pro",
524
+ "fontFamily": "Titillio",
525
525
  "fontSize": 22,
526
526
  "fontStyle": "normal",
527
527
  "fontWeight": "600",
@@ -618,7 +618,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
618
618
  {},
619
619
  {
620
620
  "color": "#FFFFFF",
621
- "fontFamily": "Titillium Sans Pro",
621
+ "fontFamily": "Titillio",
622
622
  "fontSize": 22,
623
623
  "fontStyle": "normal",
624
624
  "fontWeight": "600",
@@ -699,7 +699,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
699
699
  {},
700
700
  {
701
701
  "color": "#FFFFFF",
702
- "fontFamily": "Titillium Sans Pro",
702
+ "fontFamily": "Titillio",
703
703
  "fontSize": 22,
704
704
  "fontStyle": "normal",
705
705
  "fontWeight": "600",
@@ -780,7 +780,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
780
780
  {},
781
781
  {
782
782
  "color": "#FFFFFF",
783
- "fontFamily": "Titillium Sans Pro",
783
+ "fontFamily": "Titillio",
784
784
  "fontSize": 22,
785
785
  "fontStyle": "normal",
786
786
  "fontWeight": "600",
@@ -1018,7 +1018,7 @@ exports[`NumberPad Should match the snapshot 1`] = `
1018
1018
  {},
1019
1019
  {
1020
1020
  "color": "#FFFFFF",
1021
- "fontFamily": "Titillium Sans Pro",
1021
+ "fontFamily": "Titillio",
1022
1022
  "fontSize": 22,
1023
1023
  "fontStyle": "normal",
1024
1024
  "fontWeight": "600",
@@ -14,13 +14,9 @@ import Animated, {
14
14
  withSpring,
15
15
  withTiming
16
16
  } from "react-native-reanimated";
17
- import { useIOExperimentalDesign } from "../../core";
18
17
  import { IOSpringValues } from "../../core/IOAnimations";
19
18
  import { IOColors } from "../../core/IOColors";
20
- import {
21
- IOSelectionTickLegacyVisualParams,
22
- IOSelectionTickVisualParams
23
- } from "../../core/IOStyles";
19
+ import { IOSelectionTickVisualParams } from "../../core/IOStyles";
24
20
  import { AnimatedTick } from "../common/AnimatedTick";
25
21
 
26
22
  type Props = {
@@ -56,24 +52,8 @@ export const AnimatedRadio = ({
56
52
  }: OwnProps) => {
57
53
  const isChecked = checked ?? false;
58
54
 
59
- const { isExperimental } = useIOExperimentalDesign();
60
- const borderColorOffState =
61
- IOColors[IOSelectionTickVisualParams.borderColorOffState];
62
- // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
63
- const legacyBorderColorOffState =
64
- IOColors[IOSelectionTickLegacyVisualParams.borderColorOffState];
65
- const borderColorProp = isExperimental
66
- ? borderColorOffState
67
- : legacyBorderColorOffState;
68
-
69
- const backgroundColorOnState =
70
- IOColors[IOSelectionTickVisualParams.bgColorOnState];
71
- // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
72
- const legacyBackgroundColorOnState =
73
- IOColors[IOSelectionTickLegacyVisualParams.bgColorOnState];
74
- const backgroundColorProp = isExperimental
75
- ? backgroundColorOnState
76
- : legacyBackgroundColorOnState;
55
+ const borderColor = IOColors[IOSelectionTickVisualParams.borderColorOffState];
56
+ const backgroundColor = IOColors[IOSelectionTickVisualParams.bgColorOnState];
77
57
 
78
58
  const circleAnimationProgress = useSharedValue(checked ? 1 : 0);
79
59
  const tickAnimationProgress = useSharedValue(checked ? 1 : 0);
@@ -121,21 +101,13 @@ export const AnimatedRadio = ({
121
101
  style={radioButtonWrapperSizeStyle}
122
102
  >
123
103
  <View
124
- style={[
125
- styles.radioBorder,
126
- radioButtonSizeStyle,
127
- {
128
- borderColor: borderColorProp
129
- }
130
- ]}
104
+ style={[styles.radioBorder, radioButtonSizeStyle, { borderColor }]}
131
105
  />
132
106
  <Animated.View
133
107
  style={[
134
108
  styles.radioCircle,
135
109
  radioButtonSizeStyle,
136
- {
137
- backgroundColor: backgroundColorProp
138
- },
110
+ { backgroundColor },
139
111
  animatedCheckboxSquare
140
112
  ]}
141
113
  />