@pagopa/io-app-design-system 1.42.0 → 2.0.0-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 (349) hide show
  1. package/lib/commonjs/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +8 -32
  2. package/lib/commonjs/components/accordion/AccordionItem.js +1 -10
  3. package/lib/commonjs/components/accordion/AccordionItem.js.map +1 -1
  4. package/lib/commonjs/components/alert/Alert.js +3 -16
  5. package/lib/commonjs/components/alert/Alert.js.map +1 -1
  6. package/lib/commonjs/components/badge/Badge.js +13 -21
  7. package/lib/commonjs/components/badge/Badge.js.map +1 -1
  8. package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +16 -16
  9. package/lib/commonjs/components/badge/__test__/badge.test.js.map +1 -1
  10. package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +14 -38
  11. package/lib/commonjs/components/buttons/ButtonLink.js +10 -24
  12. package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
  13. package/lib/commonjs/components/buttons/ButtonOutline.js +14 -24
  14. package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
  15. package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +45 -60
  16. package/lib/commonjs/components/featureInfo/FeatureInfo.js +6 -7
  17. package/lib/commonjs/components/featureInfo/FeatureInfo.js.map +1 -1
  18. package/lib/commonjs/components/layout/HeaderSecondLevel.js +10 -15
  19. package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
  20. package/lib/commonjs/components/listitems/ListItemAction.js +12 -50
  21. package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
  22. package/lib/commonjs/components/listitems/ListItemAmount.js +2 -5
  23. package/lib/commonjs/components/listitems/ListItemAmount.js.map +1 -1
  24. package/lib/commonjs/components/listitems/ListItemSwitch.js +2 -2
  25. package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
  26. package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +83 -347
  27. package/lib/commonjs/components/modules/ModuleIDP.js +13 -20
  28. package/lib/commonjs/components/modules/ModuleIDP.js.map +1 -1
  29. package/lib/commonjs/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +30 -150
  30. package/lib/commonjs/components/searchInput/SearchInput.js +2 -4
  31. package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -1
  32. package/lib/commonjs/components/switch/SwitchLabel.js +7 -29
  33. package/lib/commonjs/components/switch/SwitchLabel.js.map +1 -1
  34. package/lib/commonjs/components/tabs/TabItem.js +3 -2
  35. package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
  36. package/lib/commonjs/components/tag/Tag.js +14 -18
  37. package/lib/commonjs/components/tag/Tag.js.map +1 -1
  38. package/lib/commonjs/components/textInput/TextInputBase.js +4 -6
  39. package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
  40. package/lib/commonjs/components/typography/BaseTypography.js +5 -1
  41. package/lib/commonjs/components/typography/BaseTypography.js.map +1 -1
  42. package/lib/commonjs/components/typography/Body.js +34 -26
  43. package/lib/commonjs/components/typography/Body.js.map +1 -1
  44. package/lib/commonjs/components/typography/BodyMonospace.js +26 -24
  45. package/lib/commonjs/components/typography/BodyMonospace.js.map +1 -1
  46. package/lib/commonjs/components/typography/ButtonText.js +25 -19
  47. package/lib/commonjs/components/typography/ButtonText.js.map +1 -1
  48. package/lib/commonjs/components/typography/Caption.js +29 -19
  49. package/lib/commonjs/components/typography/Caption.js.map +1 -1
  50. package/lib/commonjs/components/typography/Chip.js +24 -21
  51. package/lib/commonjs/components/typography/Chip.js.map +1 -1
  52. package/lib/commonjs/components/typography/Factory.js +1 -0
  53. package/lib/commonjs/components/typography/Factory.js.map +1 -1
  54. package/lib/commonjs/components/typography/H1.js +27 -20
  55. package/lib/commonjs/components/typography/H1.js.map +1 -1
  56. package/lib/commonjs/components/typography/H2.js +27 -20
  57. package/lib/commonjs/components/typography/H2.js.map +1 -1
  58. package/lib/commonjs/components/typography/H3.js +27 -19
  59. package/lib/commonjs/components/typography/H3.js.map +1 -1
  60. package/lib/commonjs/components/typography/H4.js +27 -21
  61. package/lib/commonjs/components/typography/H4.js.map +1 -1
  62. package/lib/commonjs/components/typography/H5.js +26 -22
  63. package/lib/commonjs/components/typography/H5.js.map +1 -1
  64. package/lib/commonjs/components/typography/H6.js +25 -20
  65. package/lib/commonjs/components/typography/H6.js.map +1 -1
  66. package/lib/commonjs/components/typography/Hero.js +25 -17
  67. package/lib/commonjs/components/typography/Hero.js.map +1 -1
  68. package/lib/commonjs/components/typography/IOText.js +104 -0
  69. package/lib/commonjs/components/typography/IOText.js.map +1 -0
  70. package/lib/commonjs/components/typography/Label.js +28 -26
  71. package/lib/commonjs/components/typography/Label.js.map +1 -1
  72. package/lib/commonjs/components/typography/LabelMini.js +45 -0
  73. package/lib/commonjs/components/typography/LabelMini.js.map +1 -0
  74. package/lib/commonjs/components/typography/LabelSmall.js +30 -30
  75. package/lib/commonjs/components/typography/LabelSmall.js.map +1 -1
  76. package/lib/commonjs/components/typography/LabelSmallAlt.js +25 -20
  77. package/lib/commonjs/components/typography/LabelSmallAlt.js.map +1 -1
  78. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +92 -557
  79. package/lib/commonjs/components/typography/__test__/typography.test.js +6 -25
  80. package/lib/commonjs/components/typography/__test__/typography.test.js.map +1 -1
  81. package/lib/commonjs/components/typography/index.js +15 -37
  82. package/lib/commonjs/components/typography/index.js.map +1 -1
  83. package/lib/commonjs/components/typography/markdown/MdH1.js +27 -16
  84. package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -1
  85. package/lib/commonjs/components/typography/markdown/MdH2.js +28 -18
  86. package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -1
  87. package/lib/commonjs/components/typography/markdown/MdH3.js +26 -16
  88. package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -1
  89. package/lib/commonjs/core/IOColors.js +19 -2
  90. package/lib/commonjs/core/IOColors.js.map +1 -1
  91. package/lib/commonjs/core/IOStyles.js +0 -1
  92. package/lib/commonjs/core/IOStyles.js.map +1 -1
  93. package/lib/commonjs/utils/accessibility.js +24 -1
  94. package/lib/commonjs/utils/accessibility.js.map +1 -1
  95. package/lib/commonjs/utils/fonts.js +72 -40
  96. package/lib/commonjs/utils/fonts.js.map +1 -1
  97. package/lib/module/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +8 -32
  98. package/lib/module/components/accordion/AccordionItem.js +3 -12
  99. package/lib/module/components/accordion/AccordionItem.js.map +1 -1
  100. package/lib/module/components/alert/Alert.js +5 -18
  101. package/lib/module/components/alert/Alert.js.map +1 -1
  102. package/lib/module/components/badge/Badge.js +15 -23
  103. package/lib/module/components/badge/Badge.js.map +1 -1
  104. package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +16 -16
  105. package/lib/module/components/badge/__test__/badge.test.js.map +1 -1
  106. package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +14 -38
  107. package/lib/module/components/buttons/ButtonLink.js +12 -26
  108. package/lib/module/components/buttons/ButtonLink.js.map +1 -1
  109. package/lib/module/components/buttons/ButtonOutline.js +15 -25
  110. package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
  111. package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +45 -60
  112. package/lib/module/components/featureInfo/FeatureInfo.js +7 -8
  113. package/lib/module/components/featureInfo/FeatureInfo.js.map +1 -1
  114. package/lib/module/components/layout/HeaderSecondLevel.js +10 -15
  115. package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -1
  116. package/lib/module/components/listitems/ListItemAction.js +16 -54
  117. package/lib/module/components/listitems/ListItemAction.js.map +1 -1
  118. package/lib/module/components/listitems/ListItemAmount.js +2 -5
  119. package/lib/module/components/listitems/ListItemAmount.js.map +1 -1
  120. package/lib/module/components/listitems/ListItemSwitch.js +3 -3
  121. package/lib/module/components/listitems/ListItemSwitch.js.map +1 -1
  122. package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +83 -347
  123. package/lib/module/components/modules/ModuleIDP.js +15 -22
  124. package/lib/module/components/modules/ModuleIDP.js.map +1 -1
  125. package/lib/module/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +30 -150
  126. package/lib/module/components/searchInput/SearchInput.js +2 -4
  127. package/lib/module/components/searchInput/SearchInput.js.map +1 -1
  128. package/lib/module/components/switch/SwitchLabel.js +9 -31
  129. package/lib/module/components/switch/SwitchLabel.js.map +1 -1
  130. package/lib/module/components/tabs/TabItem.js +3 -2
  131. package/lib/module/components/tabs/TabItem.js.map +1 -1
  132. package/lib/module/components/tag/Tag.js +16 -20
  133. package/lib/module/components/tag/Tag.js.map +1 -1
  134. package/lib/module/components/textInput/TextInputBase.js +4 -6
  135. package/lib/module/components/textInput/TextInputBase.js.map +1 -1
  136. package/lib/module/components/typography/BaseTypography.js +5 -1
  137. package/lib/module/components/typography/BaseTypography.js.map +1 -1
  138. package/lib/module/components/typography/Body.js +31 -22
  139. package/lib/module/components/typography/Body.js.map +1 -1
  140. package/lib/module/components/typography/BodyMonospace.js +25 -23
  141. package/lib/module/components/typography/BodyMonospace.js.map +1 -1
  142. package/lib/module/components/typography/ButtonText.js +24 -19
  143. package/lib/module/components/typography/ButtonText.js.map +1 -1
  144. package/lib/module/components/typography/Caption.js +28 -19
  145. package/lib/module/components/typography/Caption.js.map +1 -1
  146. package/lib/module/components/typography/Chip.js +23 -21
  147. package/lib/module/components/typography/Chip.js.map +1 -1
  148. package/lib/module/components/typography/Factory.js +1 -0
  149. package/lib/module/components/typography/Factory.js.map +1 -1
  150. package/lib/module/components/typography/H1.js +26 -20
  151. package/lib/module/components/typography/H1.js.map +1 -1
  152. package/lib/module/components/typography/H2.js +26 -20
  153. package/lib/module/components/typography/H2.js.map +1 -1
  154. package/lib/module/components/typography/H3.js +26 -19
  155. package/lib/module/components/typography/H3.js.map +1 -1
  156. package/lib/module/components/typography/H4.js +26 -21
  157. package/lib/module/components/typography/H4.js.map +1 -1
  158. package/lib/module/components/typography/H5.js +24 -21
  159. package/lib/module/components/typography/H5.js.map +1 -1
  160. package/lib/module/components/typography/H6.js +24 -21
  161. package/lib/module/components/typography/H6.js.map +1 -1
  162. package/lib/module/components/typography/Hero.js +24 -17
  163. package/lib/module/components/typography/Hero.js.map +1 -1
  164. package/lib/module/components/typography/IOText.js +96 -0
  165. package/lib/module/components/typography/IOText.js.map +1 -0
  166. package/lib/module/components/typography/Label.js +27 -26
  167. package/lib/module/components/typography/Label.js.map +1 -1
  168. package/lib/module/components/typography/LabelMini.js +36 -0
  169. package/lib/module/components/typography/LabelMini.js.map +1 -0
  170. package/lib/module/components/typography/LabelSmall.js +29 -30
  171. package/lib/module/components/typography/LabelSmall.js.map +1 -1
  172. package/lib/module/components/typography/LabelSmallAlt.js +24 -20
  173. package/lib/module/components/typography/LabelSmallAlt.js.map +1 -1
  174. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +92 -557
  175. package/lib/module/components/typography/__test__/typography.test.js +6 -25
  176. package/lib/module/components/typography/__test__/typography.test.js.map +1 -1
  177. package/lib/module/components/typography/index.js +2 -4
  178. package/lib/module/components/typography/index.js.map +1 -1
  179. package/lib/module/components/typography/markdown/MdH1.js +25 -15
  180. package/lib/module/components/typography/markdown/MdH1.js.map +1 -1
  181. package/lib/module/components/typography/markdown/MdH2.js +26 -17
  182. package/lib/module/components/typography/markdown/MdH2.js.map +1 -1
  183. package/lib/module/components/typography/markdown/MdH3.js +24 -15
  184. package/lib/module/components/typography/markdown/MdH3.js.map +1 -1
  185. package/lib/module/core/IOColors.js +17 -1
  186. package/lib/module/core/IOColors.js.map +1 -1
  187. package/lib/module/core/IOStyles.js +0 -1
  188. package/lib/module/core/IOStyles.js.map +1 -1
  189. package/lib/module/utils/accessibility.js +22 -0
  190. package/lib/module/utils/accessibility.js.map +1 -1
  191. package/lib/module/utils/fonts.js +70 -36
  192. package/lib/module/utils/fonts.js.map +1 -1
  193. package/lib/typescript/components/accordion/AccordionItem.d.ts.map +1 -1
  194. package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
  195. package/lib/typescript/components/badge/Badge.d.ts.map +1 -1
  196. package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
  197. package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
  198. package/lib/typescript/components/featureInfo/FeatureInfo.d.ts +6 -5
  199. package/lib/typescript/components/featureInfo/FeatureInfo.d.ts.map +1 -1
  200. package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -1
  201. package/lib/typescript/components/listitems/ListItemAction.d.ts.map +1 -1
  202. package/lib/typescript/components/listitems/ListItemAmount.d.ts.map +1 -1
  203. package/lib/typescript/components/modules/ModuleIDP.d.ts.map +1 -1
  204. package/lib/typescript/components/switch/SwitchLabel.d.ts.map +1 -1
  205. package/lib/typescript/components/tabs/TabItem.d.ts.map +1 -1
  206. package/lib/typescript/components/tag/Tag.d.ts.map +1 -1
  207. package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
  208. package/lib/typescript/components/typography/BaseTypography.d.ts +3 -2
  209. package/lib/typescript/components/typography/BaseTypography.d.ts.map +1 -1
  210. package/lib/typescript/components/typography/Body.d.ts +5 -10
  211. package/lib/typescript/components/typography/Body.d.ts.map +1 -1
  212. package/lib/typescript/components/typography/BodyMonospace.d.ts +7 -7
  213. package/lib/typescript/components/typography/BodyMonospace.d.ts.map +1 -1
  214. package/lib/typescript/components/typography/ButtonText.d.ts +9 -10
  215. package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -1
  216. package/lib/typescript/components/typography/Caption.d.ts +9 -5
  217. package/lib/typescript/components/typography/Caption.d.ts.map +1 -1
  218. package/lib/typescript/components/typography/Chip.d.ts +7 -7
  219. package/lib/typescript/components/typography/Chip.d.ts.map +1 -1
  220. package/lib/typescript/components/typography/Factory.d.ts +1 -0
  221. package/lib/typescript/components/typography/Factory.d.ts.map +1 -1
  222. package/lib/typescript/components/typography/H1.d.ts +9 -8
  223. package/lib/typescript/components/typography/H1.d.ts.map +1 -1
  224. package/lib/typescript/components/typography/H2.d.ts +9 -8
  225. package/lib/typescript/components/typography/H2.d.ts.map +1 -1
  226. package/lib/typescript/components/typography/H3.d.ts +9 -8
  227. package/lib/typescript/components/typography/H3.d.ts.map +1 -1
  228. package/lib/typescript/components/typography/H4.d.ts +9 -8
  229. package/lib/typescript/components/typography/H4.d.ts.map +1 -1
  230. package/lib/typescript/components/typography/H5.d.ts +9 -5
  231. package/lib/typescript/components/typography/H5.d.ts.map +1 -1
  232. package/lib/typescript/components/typography/H6.d.ts +9 -10
  233. package/lib/typescript/components/typography/H6.d.ts.map +1 -1
  234. package/lib/typescript/components/typography/Hero.d.ts +9 -8
  235. package/lib/typescript/components/typography/Hero.d.ts.map +1 -1
  236. package/lib/typescript/components/typography/IOText.d.ts +54 -0
  237. package/lib/typescript/components/typography/IOText.d.ts.map +1 -0
  238. package/lib/typescript/components/typography/Label.d.ts +6 -10
  239. package/lib/typescript/components/typography/Label.d.ts.map +1 -1
  240. package/lib/typescript/components/typography/LabelMini.d.ts +13 -0
  241. package/lib/typescript/components/typography/LabelMini.d.ts.map +1 -0
  242. package/lib/typescript/components/typography/LabelSmall.d.ts +5 -11
  243. package/lib/typescript/components/typography/LabelSmall.d.ts.map +1 -1
  244. package/lib/typescript/components/typography/LabelSmallAlt.d.ts +7 -10
  245. package/lib/typescript/components/typography/LabelSmallAlt.d.ts.map +1 -1
  246. package/lib/typescript/components/typography/index.d.ts +2 -4
  247. package/lib/typescript/components/typography/index.d.ts.map +1 -1
  248. package/lib/typescript/components/typography/markdown/MdH1.d.ts +9 -9
  249. package/lib/typescript/components/typography/markdown/MdH1.d.ts.map +1 -1
  250. package/lib/typescript/components/typography/markdown/MdH2.d.ts +9 -9
  251. package/lib/typescript/components/typography/markdown/MdH2.d.ts.map +1 -1
  252. package/lib/typescript/components/typography/markdown/MdH3.d.ts +9 -9
  253. package/lib/typescript/components/typography/markdown/MdH3.d.ts.map +1 -1
  254. package/lib/typescript/core/IOColors.d.ts +3 -20
  255. package/lib/typescript/core/IOColors.d.ts.map +1 -1
  256. package/lib/typescript/core/IOStyles.d.ts +0 -3
  257. package/lib/typescript/core/IOStyles.d.ts.map +1 -1
  258. package/lib/typescript/utils/accessibility.d.ts +5 -0
  259. package/lib/typescript/utils/accessibility.d.ts.map +1 -1
  260. package/lib/typescript/utils/fonts.d.ts +19 -23
  261. package/lib/typescript/utils/fonts.d.ts.map +1 -1
  262. package/package.json +1 -1
  263. package/src/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +8 -32
  264. package/src/components/accordion/AccordionItem.tsx +2 -14
  265. package/src/components/alert/Alert.tsx +5 -18
  266. package/src/components/badge/Badge.tsx +15 -28
  267. package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +16 -16
  268. package/src/components/badge/__test__/badge.test.tsx +2 -2
  269. package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +14 -38
  270. package/src/components/buttons/ButtonLink.tsx +12 -35
  271. package/src/components/buttons/ButtonOutline.tsx +14 -25
  272. package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +45 -60
  273. package/src/components/featureInfo/FeatureInfo.tsx +13 -13
  274. package/src/components/layout/HeaderSecondLevel.tsx +9 -18
  275. package/src/components/listitems/ListItemAction.tsx +13 -75
  276. package/src/components/listitems/ListItemAmount.tsx +2 -5
  277. package/src/components/listitems/ListItemSwitch.tsx +3 -3
  278. package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +83 -347
  279. package/src/components/modules/ModuleIDP.tsx +15 -32
  280. package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +30 -150
  281. package/src/components/searchInput/SearchInput.tsx +14 -6
  282. package/src/components/switch/SwitchLabel.tsx +6 -32
  283. package/src/components/tabs/TabItem.tsx +4 -2
  284. package/src/components/tag/Tag.tsx +22 -24
  285. package/src/components/textInput/TextInputBase.tsx +21 -8
  286. package/src/components/typography/BaseTypography.tsx +13 -4
  287. package/src/components/typography/Body.tsx +43 -38
  288. package/src/components/typography/BodyMonospace.tsx +24 -37
  289. package/src/components/typography/ButtonText.tsx +25 -35
  290. package/src/components/typography/Caption.tsx +31 -33
  291. package/src/components/typography/Chip.tsx +25 -37
  292. package/src/components/typography/Factory.tsx +1 -0
  293. package/src/components/typography/H1.tsx +31 -36
  294. package/src/components/typography/H2.tsx +31 -36
  295. package/src/components/typography/H3.tsx +30 -35
  296. package/src/components/typography/H4.tsx +31 -36
  297. package/src/components/typography/H5.tsx +26 -32
  298. package/src/components/typography/H6.tsx +30 -41
  299. package/src/components/typography/Hero.tsx +30 -33
  300. package/src/components/typography/IOText.tsx +157 -0
  301. package/src/components/typography/Label.tsx +41 -48
  302. package/src/components/typography/LabelMini.tsx +52 -0
  303. package/src/components/typography/LabelSmall.tsx +41 -63
  304. package/src/components/typography/LabelSmallAlt.tsx +28 -48
  305. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +92 -557
  306. package/src/components/typography/__test__/typography.test.tsx +7 -31
  307. package/src/components/typography/index.tsx +2 -4
  308. package/src/components/typography/markdown/MdH1.tsx +26 -28
  309. package/src/components/typography/markdown/MdH2.tsx +27 -30
  310. package/src/components/typography/markdown/MdH3.tsx +25 -28
  311. package/src/core/IOColors.ts +31 -21
  312. package/src/core/IOStyles.ts +1 -5
  313. package/src/utils/accessibility.ts +31 -0
  314. package/src/utils/fonts.ts +94 -50
  315. package/lib/commonjs/components/typography/LabelHeader.js +0 -44
  316. package/lib/commonjs/components/typography/LabelHeader.js.map +0 -1
  317. package/lib/commonjs/components/typography/LabelLink.js +0 -44
  318. package/lib/commonjs/components/typography/LabelLink.js.map +0 -1
  319. package/lib/commonjs/components/typography/markdown/MdH4.js +0 -30
  320. package/lib/commonjs/components/typography/markdown/MdH4.js.map +0 -1
  321. package/lib/commonjs/components/typography/markdown/MdH5.js +0 -28
  322. package/lib/commonjs/components/typography/markdown/MdH5.js.map +0 -1
  323. package/lib/commonjs/components/typography/markdown/MdH6.js +0 -29
  324. package/lib/commonjs/components/typography/markdown/MdH6.js.map +0 -1
  325. package/lib/module/components/typography/LabelHeader.js +0 -33
  326. package/lib/module/components/typography/LabelHeader.js.map +0 -1
  327. package/lib/module/components/typography/LabelLink.js +0 -33
  328. package/lib/module/components/typography/LabelLink.js.map +0 -1
  329. package/lib/module/components/typography/markdown/MdH4.js +0 -23
  330. package/lib/module/components/typography/markdown/MdH4.js.map +0 -1
  331. package/lib/module/components/typography/markdown/MdH5.js +0 -21
  332. package/lib/module/components/typography/markdown/MdH5.js.map +0 -1
  333. package/lib/module/components/typography/markdown/MdH6.js +0 -22
  334. package/lib/module/components/typography/markdown/MdH6.js.map +0 -1
  335. package/lib/typescript/components/typography/LabelHeader.d.ts +0 -18
  336. package/lib/typescript/components/typography/LabelHeader.d.ts.map +0 -1
  337. package/lib/typescript/components/typography/LabelLink.d.ts +0 -20
  338. package/lib/typescript/components/typography/LabelLink.d.ts.map +0 -1
  339. package/lib/typescript/components/typography/markdown/MdH4.d.ts +0 -13
  340. package/lib/typescript/components/typography/markdown/MdH4.d.ts.map +0 -1
  341. package/lib/typescript/components/typography/markdown/MdH5.d.ts +0 -13
  342. package/lib/typescript/components/typography/markdown/MdH5.d.ts.map +0 -1
  343. package/lib/typescript/components/typography/markdown/MdH6.d.ts +0 -13
  344. package/lib/typescript/components/typography/markdown/MdH6.d.ts.map +0 -1
  345. package/src/components/typography/LabelHeader.tsx +0 -56
  346. package/src/components/typography/LabelLink.tsx +0 -61
  347. package/src/components/typography/markdown/MdH4.tsx +0 -34
  348. package/src/components/typography/markdown/MdH5.tsx +0 -32
  349. package/src/components/typography/markdown/MdH6.tsx +0 -33
@@ -1,13 +1,13 @@
1
- /// <reference types="react" />
2
- import { IOColors, IOTheme } from "../../../core";
3
- import { IOFontWeight } from "../../../utils/fonts";
4
- import { ExternalTypographyProps, TypographyProps } from "../common";
5
- type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
6
- type AllowedWeight = Extract<IOFontWeight, "Regular">;
7
- type MdH3Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ import { IOTextProps } from "../IOText";
8
4
  /**
9
5
  * `MdH3` typographic style
10
6
  */
11
- export declare const MdH3: (props: MdH3Props) => import("react").JSX.Element;
12
- export {};
7
+ export declare const MdH3: React.ForwardRefExoticComponent<Omit<IOTextProps, "style" | "size" | "color" | "font" | "fontStyle" | "lineHeight" | "weight"> & {
8
+ textStyle?: import("../IOText").IOTextStyle | undefined;
9
+ style?: import("../IOText").IOTextStyle | undefined;
10
+ } & {
11
+ color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-450" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-50" | "greyUltraLight" | "greyLight" | "bluegreyLight" | "grey" | "bluegrey" | "bluegreyDark" | "blue" | "blueUltraLight" | "aqua" | "aquaUltraLight" | "antiqueFuchsia" | "orange" | "red" | "green" | "greenLight" | undefined;
12
+ } & React.RefAttributes<View>>;
13
13
  //# sourceMappingURL=MdH3.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MdH3.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH3.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAc,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGrE,KAAK,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC;AACxE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAEtD,KAAK,SAAS,GAAG,uBAAuB,CACtC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAQF;;GAEG;AACH,eAAO,MAAM,IAAI,UAAW,SAAS,gCAUjC,CAAC"}
1
+ {"version":3,"file":"MdH3.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH3.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAU,WAAW,EAAyB,MAAM,WAAW,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;8BAoBhB,CAAC"}
@@ -180,27 +180,9 @@ export declare const IOColorsExtra: {
180
180
  "blue-50": string;
181
181
  };
182
182
  export type IOColorsExtra = keyof typeof IOColorsExtra;
183
+ declare const themeKeys: readonly ["appBackground-primary", "appBackground-secondary", "appBackground-tertiary", "appBackground-accent", "interactiveElem-default", "interactiveElem-pressed", "listItem-pressed", "textHeading-default", "textHeading-secondary", "textHeading-tertiary", "textBody-default", "textBody-secondary", "textBody-tertiary", "cardBorder-default", "icon-default", "icon-decorative", "divider-default", "errorIcon", "errorText", "pictogram-hands", "pictogram-tint-main", "pictogram-tint-secondary"];
183
184
  export type IOTheme = {
184
- "appBackground-primary": IOColors;
185
- "appBackground-secondary": IOColors;
186
- "appBackground-tertiary": IOColors;
187
- "appBackground-accent": IOColors;
188
- "interactiveElem-default": IOColors;
189
- "interactiveElem-pressed": IOColors;
190
- "listItem-pressed": IOColors;
191
- "textHeading-default": IOColors;
192
- "textBody-default": IOColors;
193
- "textBody-secondary": IOColors;
194
- "textBody-tertiary": IOColors;
195
- "cardBorder-default": IOColors;
196
- "icon-default": IOColors;
197
- "icon-decorative": IOColors;
198
- "divider-default": IOColors;
199
- errorIcon: IOColors;
200
- errorText: IOColors;
201
- "pictogram-hands": IOColors;
202
- "pictogram-tint-main": IOColors;
203
- "pictogram-tint-secondary": IOColors;
185
+ [K in (typeof themeKeys)[number]]: IOColors;
204
186
  };
205
187
  export declare const IOThemeLight: IOTheme;
206
188
  export declare const IOThemeLightLegacy: IOTheme;
@@ -232,4 +214,5 @@ Return the color value with RGBA format (RGB + Alpha transparency), starting fro
232
214
  @param opacity Opacity value that range from 0 to 1. Default value = 1.
233
215
  */
234
216
  export declare const hexToRgba: (hexCode: ColorValue, opacity?: number) => string;
217
+ export {};
235
218
  //# sourceMappingURL=IOColors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IOColors.d.ts","sourceRoot":"","sources":["../../../src/core/IOColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,8BAA8B,CAAC;AAyB/D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2EnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;CAgB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,gBA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AAE,OAKhC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OA4BzB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;CAiBrC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GACpC,MAAM,OAAO,0BAA0B,CAAC;AAE1C,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAC5C,WAAW,CAAC,0BAA0B,CAAC,EACvC,cAAc,CAkBf,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAM/E;;;;GAIG;AAEH,eAAO,MAAM,SAAS,YAAa,UAAU,YAAW,MAAM,WAQ7D,CAAC"}
@@ -1,5 +1,3 @@
1
- import { Text } from "react-native";
2
- import { ComponentProps } from "react";
3
1
  import { IOIconSizeScale } from "../components/icons";
4
2
  import { IOColors } from "./IOColors";
5
3
  import { IOAppMargin, IOSpacer, IOSpacingScale } from "./IOSpacing";
@@ -9,7 +7,6 @@ import { IOAppMargin, IOSpacer, IOSpacingScale } from "./IOSpacing";
9
7
  interface IOVisualCostants {
10
8
  appMarginDefault: IOAppMargin;
11
9
  headerHeight: number;
12
- maxFontSizeMultiplier: ComponentProps<typeof Text>["maxFontSizeMultiplier"];
13
10
  avatarSizeSmall: number;
14
11
  avatarSizeMedium: number;
15
12
  avatarRadiusSizeSmall: number;
@@ -1 +1 @@
1
- {"version":3,"file":"IOStyles.d.ts","sourceRoot":"","sources":["../../../src/core/IOStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,IAAI,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EACL,WAAW,EAGX,QAAQ,EACR,cAAc,EACf,MAAM,aAAa,CAAC;AAErB;;GAEG;AAEH,UAAU,gBAAgB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  export declare const getAccessibleAmountText: (amount?: string) => string | undefined;
6
+ /**
7
+ * Query whether a bold text is currently enabled. The result is true
8
+ * when bold text is enabled and false otherwise.
9
+ */
10
+ export declare const useBoldTextEnabled: () => boolean;
6
11
  //# sourceMappingURL=accessibility.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accessibility.d.ts","sourceRoot":"","sources":["../../../src/utils/accessibility.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,uBAQpD,CAAC"}
1
+ {"version":3,"file":"accessibility.d.ts","sourceRoot":"","sources":["../../../src/utils/accessibility.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,uBAQpD,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,kBAAkB,eAuB9B,CAAC"}
@@ -3,39 +3,34 @@
3
3
  * Fonts are managed differently on Android and iOS. Read the Font section of the
4
4
  * README file included in this repository.
5
5
  */
6
+ import { TextStyle } from "react-native";
6
7
  /**
7
8
  * Choose the font name based on the platform
8
9
  */
9
10
  declare const fonts: {
10
- TitilliumSansPro: string | undefined;
11
- ReadexPro: string | undefined;
12
- DMMono: string | undefined;
11
+ TitilliumSansPro: string;
12
+ ReadexPro: string;
13
+ DMMono: string;
13
14
  };
14
15
  export type IOFontFamily = keyof typeof fonts;
16
+ declare const allFontSizes: (22 | 16 | 12 | 20 | 32 | 14 | 18 | 28 | 26 | 31 | 35)[];
17
+ export type IOFontSize = (typeof allFontSizes)[number];
15
18
  declare const weights: readonly ["Light", "Regular", "Medium", "Semibold", "Bold"];
16
19
  export type IOFontWeight = (typeof weights)[number];
17
20
  declare const weightValues: readonly ["300", "400", "500", "600", "700"];
18
- export type FontWeightValue = (typeof weightValues)[number];
21
+ export type IOFontWeightNumeric = (typeof weightValues)[number];
19
22
  /**
20
23
  * Mapping between the nominal description of the weight (also the postfix used on Android) and the numeric value
21
24
  * used on iOS
22
25
  */
23
- export declare const fontWeights: Record<IOFontWeight, FontWeightValue>;
24
- export type FontFamily = keyof typeof fonts;
25
- export type FontWeight = keyof typeof fontWeights;
26
- /**
27
- * Mapping between the nominal description of the weight (also the postfix used on Android) and the numeric value
28
- * used on iOS
29
- */
30
- export declare const fontWeightsMap: Record<IOFontWeight, FontWeightValue>;
31
- export declare enum FontStyle {
32
- "normal" = "normal",
33
- "italic" = "italic"
34
- }
26
+ export declare const fontWeights: Record<IOFontWeight, IOFontWeightNumeric>;
35
27
  type FontStyleObject = {
36
- fontFamily: string;
37
- fontWeight?: FontWeightValue;
38
- fontStyle?: FontStyle;
28
+ fontSize: IOFontSize;
29
+ fontFamily: string | IOFontFamily;
30
+ fontWeight?: IOFontWeightNumeric;
31
+ lineHeight?: TextStyle["lineHeight"];
32
+ fontStyle?: TextStyle["fontStyle"];
33
+ boldEnabled?: boolean;
39
34
  };
40
35
  /**
41
36
  * Get the correct `fontFamily` name on both Android and iOS.
@@ -43,13 +38,14 @@ type FontStyleObject = {
43
38
  * @param weight
44
39
  * @param isItalic
45
40
  */
46
- export declare const makeFontFamilyName: (font: FontFamily, weight?: IOFontWeight, isItalic?: boolean) => string;
41
+ export declare const makeFontFamilyName: (font: IOFontFamily, weight?: IOFontWeight, fontStyle?: TextStyle["fontStyle"]) => FontStyleObject["fontFamily"];
47
42
  /**
48
43
  * Return a {@link FontStyleObject} with the fields filled based on the platform (iOS or Android).
49
- * @param weight
50
- * @param isItalic
44
+ * @param size
51
45
  * @param font
46
+ * @param weight
47
+ * @param fontStyle
52
48
  */
53
- export declare const makeFontStyleObject: (weight?: IOFontWeight | undefined, isItalic?: boolean | undefined, font?: FontFamily | undefined) => FontStyleObject;
49
+ export declare const makeFontStyleObject: (size: 22 | 16 | 12 | 20 | 32 | 14 | 18 | 28 | 26 | 31 | 35 | undefined, font: "TitilliumSansPro" | "ReadexPro" | "DMMono" | undefined, lineHeight: TextStyle["lineHeight"], weight?: IOFontWeight, fontStyle?: TextStyle["fontStyle"], boldEnabled?: boolean) => FontStyleObject;
54
50
  export {};
55
51
  //# sourceMappingURL=fonts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/utils/fonts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;GAEG;AACH,QAAA,MAAM,KAAK;;;;CAgBV,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,KAAK,CAAC;AAE9C,QAAA,MAAM,OAAO,6DAA8D,CAAC;AAC5E,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,QAAA,MAAM,YAAY,8CAA+C,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,eAAe,CAM7D,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,KAAK,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,eAAe,CAMhE,CAAC;AAEF,oBAAY,SAAS;IACnB,QAAQ,WAAW;IACnB,QAAQ,WAAW;CACpB;AAED,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,SACvB,UAAU,WACP,YAAY,aACX,OAAO,KAChB,MAMC,CAAC;AAEL;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,YACtB,YAAY,GAAG,SAAS,aACtB,OAAO,GAAG,SAAS,SACvB,UAAU,GAAG,SAAS,KAC3B,eAiBC,CAAC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AAW,CAAC,gBACpB,OAAO,KACnB,eAkCF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-app-design-system",
3
- "version": "1.42.0",
3
+ "version": "2.0.0-1",
4
4
  "description": "The library defining the core components of the design system of @pagopa/io-app",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -85,33 +85,21 @@ exports[`Test Advice Components - Experimental Enabled Advice Snapshot 1`] = `
85
85
  />
86
86
  <Text
87
87
  allowFontScaling={true}
88
- color="bluegrey"
89
- defaultColor="bluegrey"
90
- defaultWeight="Regular"
91
88
  dynamicTypeRamp="body"
92
- font="TitilliumSansPro"
93
- fontStyle={
94
- {
95
- "fontSize": 16,
96
- "lineHeight": 24,
97
- }
98
- }
99
89
  maxFontSizeMultiplier={1.25}
100
90
  style={
101
91
  [
92
+ {},
102
93
  {
103
- "fontSize": 16,
104
- "lineHeight": 24,
105
- },
106
- {
107
- "color": "#475A6D",
94
+ "color": "#555C70",
108
95
  "fontFamily": "Titillium Sans Pro",
96
+ "fontSize": 16,
109
97
  "fontStyle": "normal",
110
98
  "fontWeight": "400",
99
+ "lineHeight": 24,
111
100
  },
112
101
  ]
113
102
  }
114
- weight="Regular"
115
103
  >
116
104
  Text
117
105
  </Text>
@@ -203,33 +191,21 @@ exports[`Test Advice Components Advice Snapshot 1`] = `
203
191
  />
204
192
  <Text
205
193
  allowFontScaling={false}
206
- color="bluegrey"
207
- defaultColor="bluegrey"
208
- defaultWeight="Regular"
209
194
  dynamicTypeRamp="body"
210
- font="TitilliumSansPro"
211
- fontStyle={
212
- {
213
- "fontSize": 16,
214
- "lineHeight": 24,
215
- }
216
- }
217
195
  maxFontSizeMultiplier={1.25}
218
196
  style={
219
197
  [
198
+ {},
220
199
  {
221
- "fontSize": 16,
222
- "lineHeight": 24,
223
- },
224
- {
225
- "color": "#475A6D",
200
+ "color": "#555C70",
226
201
  "fontFamily": "Titillium Sans Pro",
202
+ "fontSize": 16,
227
203
  "fontStyle": "normal",
228
204
  "fontWeight": "400",
205
+ "lineHeight": 24,
229
206
  },
230
207
  ]
231
208
  }
232
- weight="Regular"
233
209
  >
234
210
  Text
235
211
  </Text>
@@ -2,7 +2,6 @@ import React, { useState } from "react";
2
2
  import {
3
3
  LayoutChangeEvent,
4
4
  StyleSheet,
5
- Text,
6
5
  TouchableWithoutFeedback,
7
6
  View
8
7
  } from "react-native";
@@ -19,9 +18,8 @@ import {
19
18
  } from "../../core";
20
19
  import { IOSpringValues } from "../../core/IOAnimations";
21
20
  import { IOColors, hexToRgba } from "../../core/IOColors";
22
- import { makeFontStyleObject } from "../../utils/fonts";
23
21
  import { IOIconSizeScale, IOIcons, Icon } from "../icons/Icon";
24
- import { H6 } from "../typography";
22
+ import { Body, H6 } from "../typography";
25
23
 
26
24
  export type AccordionItem = {
27
25
  title: string;
@@ -158,11 +156,7 @@ export const AccordionItem = ({
158
156
  </TouchableWithoutFeedback>
159
157
 
160
158
  <AccordionBody expanded={expanded}>
161
- {typeof body === "string" ? (
162
- <Text style={styles.accordionBodyText}>{body}</Text>
163
- ) : (
164
- body
165
- )}
159
+ {typeof body === "string" ? <Body>{body}</Body> : body}
166
160
  </AccordionBody>
167
161
  {/* This gradient adds a smooth end to the content. If it is missing,
168
162
  the content will be cut sharply during the height transition. */}
@@ -199,12 +193,6 @@ const styles = StyleSheet.create({
199
193
  padding: accordionBodySpacing,
200
194
  paddingTop: 0
201
195
  },
202
- accordionBodyText: {
203
- fontSize: 14,
204
- lineHeight: 21,
205
- color: IOColors["grey-700"],
206
- ...makeFontStyleObject("Regular", undefined, "TitilliumSansPro")
207
- },
208
196
  textContainer: {
209
197
  padding: accordionBodySpacing,
210
198
  flexDirection: "row",
@@ -4,7 +4,6 @@ import {
4
4
  PixelRatio,
5
5
  Pressable,
6
6
  StyleSheet,
7
- Text,
8
7
  View
9
8
  } from "react-native";
10
9
  import Animated, {
@@ -15,7 +14,7 @@ import Animated, {
15
14
  useSharedValue,
16
15
  withSpring
17
16
  } from "react-native-reanimated";
18
- import { IOVisualCostants, useIOExperimentalDesign } from "../../core";
17
+ import { IOVisualCostants } from "../../core";
19
18
  import { IOScaleValues, IOSpringValues } from "../../core/IOAnimations";
20
19
  import {
21
20
  IOColors,
@@ -24,10 +23,10 @@ import {
24
23
  } from "../../core/IOColors";
25
24
  import { IOAlertRadius } from "../../core/IOShapes";
26
25
  import { IOAlertSpacing } from "../../core/IOSpacing";
27
- import { makeFontStyleObject } from "../../utils/fonts";
28
26
  import { WithTestID } from "../../utils/types";
29
27
  import { IOIconSizeScale, IOIcons, Icon } from "../icons";
30
28
  import { VSpacer } from "../spacer";
29
+ import { ButtonText } from "../typography";
31
30
  import { H4 } from "../typography/H4";
32
31
  import { Label } from "../typography/Label";
33
32
 
@@ -48,14 +47,6 @@ const styles = StyleSheet.create({
48
47
  },
49
48
  spacingFullWidth: {
50
49
  padding: spacingFullWidth
51
- },
52
- label: {
53
- fontSize: 16,
54
- ...makeFontStyleObject("Regular", false, "ReadexPro")
55
- },
56
- labelLegacy: {
57
- fontSize: 16,
58
- ...makeFontStyleObject("Bold", false, "TitilliumSansPro")
59
50
  }
60
51
  });
61
52
 
@@ -129,7 +120,6 @@ export const Alert = React.forwardRef<View, AlertType>(
129
120
  viewRef
130
121
  ): JSX.Element => {
131
122
  const isPressed: Animated.SharedValue<number> = useSharedValue(0);
132
- const { isExperimental } = useIOExperimentalDesign();
133
123
 
134
124
  // Scaling transformation applied when the button is pressed
135
125
  const animationScaleValue = IOScaleValues?.magnifiedButton?.pressedState;
@@ -198,16 +188,13 @@ export const Alert = React.forwardRef<View, AlertType>(
198
188
  {action && (
199
189
  <>
200
190
  <VSpacer size={8} />
201
- <Text
202
- style={[
203
- isExperimental ? styles.label : styles.labelLegacy,
204
- { color: IOColors[mapVariantStates[variant].foreground] }
205
- ]}
191
+ <ButtonText
192
+ color={mapVariantStates[variant].foreground}
206
193
  numberOfLines={1}
207
194
  ellipsizeMode="tail"
208
195
  >
209
196
  {action}
210
- </Text>
197
+ </ButtonText>
211
198
  </>
212
199
  )}
213
200
  </View>
@@ -1,16 +1,15 @@
1
1
  import React from "react";
2
- import { Platform, StyleSheet, Text, View } from "react-native";
2
+ import { Platform, StyleSheet, View } from "react-native";
3
3
  import {
4
4
  IOBadgeHSpacing,
5
5
  IOBadgeRadius,
6
6
  IOBadgeVSpacing,
7
7
  IOColors,
8
- IOVisualCostants,
9
8
  useIOExperimentalDesign,
10
9
  useIOTheme
11
10
  } from "../../core";
12
- import { makeFontStyleObject } from "../../utils/fonts";
13
11
  import { WithTestID } from "../../utils/types";
12
+ import { IOText } from "../typography";
14
13
 
15
14
  export type Badge = WithTestID<{
16
15
  outline?: boolean;
@@ -52,20 +51,6 @@ const styles = StyleSheet.create({
52
51
  borderRadius: IOBadgeRadius,
53
52
  paddingHorizontal: IOBadgeHSpacing,
54
53
  paddingVertical: IOBadgeVSpacing
55
- },
56
- label: {
57
- fontSize: 12,
58
- lineHeight: 16,
59
- alignSelf: "center",
60
- textTransform: "uppercase",
61
- flexShrink: 1
62
- },
63
- labelFont: {
64
- ...makeFontStyleObject("Regular", false, "ReadexPro")
65
- },
66
- // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
67
- legacyLabelFont: {
68
- ...makeFontStyleObject("Semibold", false, "TitilliumSansPro")
69
54
  }
70
55
  });
71
56
 
@@ -177,21 +162,23 @@ export const Badge = ({ text, outline = false, variant, testID }: Badge) => {
177
162
  }
178
163
  ]}
179
164
  >
180
- <Text
165
+ <IOText
166
+ font={isExperimental ? "ReadexPro" : "TitilliumSansPro"}
167
+ weight={isExperimental ? "Regular" : "Semibold"}
168
+ size={12}
169
+ lineHeight={16}
170
+ color={foreground}
181
171
  numberOfLines={1}
182
172
  ellipsizeMode="tail"
183
- allowFontScaling={isExperimental}
184
- maxFontSizeMultiplier={IOVisualCostants.maxFontSizeMultiplier}
185
- style={[
186
- styles.label,
187
- isExperimental ? styles.labelFont : styles.legacyLabelFont,
188
- {
189
- color: IOColors[foreground]
190
- }
191
- ]}
173
+ style={{
174
+ alignSelf: "center",
175
+ textTransform: "uppercase",
176
+ letterSpacing: 0.5,
177
+ flexShrink: 1
178
+ }}
192
179
  >
193
180
  {text}
194
- </Text>
181
+ </IOText>
195
182
  </View>
196
183
  );
197
184
  };
@@ -26,20 +26,20 @@ exports[`Test Badge Components - Experimental Enabled Badge Snapshot 1`] = `
26
26
  numberOfLines={1}
27
27
  style={
28
28
  [
29
+ {},
29
30
  {
30
- "alignSelf": "center",
31
- "flexShrink": 1,
32
- "fontSize": 12,
33
- "lineHeight": 16,
34
- "textTransform": "uppercase",
35
- },
36
- {
31
+ "color": "#555C70",
37
32
  "fontFamily": "Readex Pro",
33
+ "fontSize": 12,
38
34
  "fontStyle": "normal",
39
35
  "fontWeight": "400",
36
+ "lineHeight": 16,
40
37
  },
41
38
  {
42
- "color": "#555C70",
39
+ "alignSelf": "center",
40
+ "flexShrink": 1,
41
+ "letterSpacing": 0.5,
42
+ "textTransform": "uppercase",
43
43
  },
44
44
  ]
45
45
  }
@@ -75,20 +75,20 @@ exports[`Test Badge Components Badge Snapshot 1`] = `
75
75
  numberOfLines={1}
76
76
  style={
77
77
  [
78
+ {},
78
79
  {
79
- "alignSelf": "center",
80
- "flexShrink": 1,
81
- "fontSize": 12,
82
- "lineHeight": 16,
83
- "textTransform": "uppercase",
84
- },
85
- {
80
+ "color": "#555C70",
86
81
  "fontFamily": "Titillium Sans Pro",
82
+ "fontSize": 12,
87
83
  "fontStyle": "normal",
88
84
  "fontWeight": "600",
85
+ "lineHeight": 16,
89
86
  },
90
87
  {
91
- "color": "#555C70",
88
+ "alignSelf": "center",
89
+ "flexShrink": 1,
90
+ "letterSpacing": 0.5,
91
+ "textTransform": "uppercase",
92
92
  },
93
93
  ]
94
94
  }
@@ -6,7 +6,7 @@ import { Badge } from "../Badge";
6
6
  describe("Test Badge Components", () => {
7
7
  it("Badge Snapshot", () => {
8
8
  const badge = TestRenderer.create(
9
- <Badge text={"text"} variant={"default"}></Badge>
9
+ <Badge text={"text"} variant={"default"} />
10
10
  ).toJSON();
11
11
  expect(badge).toMatchSnapshot();
12
12
  });
@@ -15,7 +15,7 @@ describe("Test Badge Components", () => {
15
15
  describe("Test Badge Components - Experimental Enabled", () => {
16
16
  it("Badge Snapshot", () => {
17
17
  const badge = TestRendererWithExperimentalEnabledContextProvider(
18
- <Badge text={"text"} variant={"default"}></Badge>
18
+ <Badge text={"text"} variant={"default"} />
19
19
  ).toJSON();
20
20
  expect(badge).toMatchSnapshot();
21
21
  });