@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,20 +1,12 @@
1
1
  import * as React from "react";
2
+ import { Image, ImageSourcePropType, Platform, StyleSheet } from "react-native";
2
3
  import {
3
- Image,
4
- ImageSourcePropType,
5
- Platform,
6
- StyleSheet,
7
- Text
8
- } from "react-native";
9
- import {
10
- IOColors,
11
4
  IOListItemLogoMargin,
12
- IOVisualCostants,
13
5
  useIOExperimentalDesign,
14
6
  useIOTheme
15
7
  } from "../../core";
16
8
  import { toAndroidCacheTimestamp } from "../../utils/dates";
17
- import { makeFontStyleObject } from "../../utils/fonts";
9
+ import { IOText } from "../typography";
18
10
  import {
19
11
  PressableModuleBase,
20
12
  PressableModuleBaseProps
@@ -28,19 +20,6 @@ interface ModuleIDP extends PressableModuleBaseProps {
28
20
  }
29
21
 
30
22
  const styles = StyleSheet.create({
31
- idpName: {
32
- fontSize: 12,
33
- lineHeight: 16,
34
- alignSelf: "center",
35
- textTransform: "uppercase",
36
- flexShrink: 1
37
- },
38
- idpNameFont: {
39
- ...makeFontStyleObject("Regular", false, "ReadexPro")
40
- },
41
- idpLegacyNameFont: {
42
- ...makeFontStyleObject("Semibold", false, "TitilliumSansPro")
43
- },
44
23
  idpLogo: {
45
24
  marginStart: IOListItemLogoMargin,
46
25
  width: 120,
@@ -79,18 +58,22 @@ export const ModuleIDP = ({
79
58
  testID={testID}
80
59
  withLooseSpacing={withLooseSpacing}
81
60
  >
82
- <Text
83
- allowFontScaling={isExperimental}
84
- maxFontSizeMultiplier={IOVisualCostants.maxFontSizeMultiplier}
85
- style={[
86
- styles.idpName,
87
- { color: IOColors[theme["textBody-tertiary"]] },
88
- isExperimental ? styles.idpNameFont : styles.idpLegacyNameFont
89
- ]}
61
+ <IOText
62
+ font={isExperimental ? "ReadexPro" : "TitilliumSansPro"}
63
+ weight={isExperimental ? "Regular" : "Semibold"}
64
+ size={12}
65
+ lineHeight={16}
66
+ color={theme["textBody-tertiary"]}
67
+ textStyle={{
68
+ alignSelf: "center",
69
+ textTransform: "uppercase",
70
+ letterSpacing: 0.5,
71
+ flexShrink: 1
72
+ }}
90
73
  accessibilityLabel={accessibilityLabel ?? name}
91
74
  >
92
75
  {name}
93
- </Text>
76
+ </IOText>
94
77
  <Image
95
78
  accessibilityIgnoresInvertColors
96
79
  source={urlLogoIDP}
@@ -82,33 +82,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
82
82
  >
83
83
  <Text
84
84
  allowFontScaling={false}
85
- color="white"
86
- defaultColor="bluegreyDark"
87
- defaultWeight="Semibold"
88
85
  dynamicTypeRamp="title2"
89
- font="TitilliumSansPro"
90
- fontStyle={
91
- {
92
- "fontSize": 22,
93
- "lineHeight": 33,
94
- }
95
- }
96
86
  maxFontSizeMultiplier={1.25}
97
87
  style={
98
88
  [
99
- {
100
- "fontSize": 22,
101
- "lineHeight": 33,
102
- },
89
+ {},
103
90
  {
104
91
  "color": "#FFFFFF",
105
92
  "fontFamily": "Titillium Sans Pro",
93
+ "fontSize": 22,
106
94
  "fontStyle": "normal",
107
95
  "fontWeight": "600",
96
+ "lineHeight": 33,
108
97
  },
109
98
  ]
110
99
  }
111
- weight="Semibold"
112
100
  >
113
101
  1
114
102
  </Text>
@@ -173,33 +161,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
173
161
  >
174
162
  <Text
175
163
  allowFontScaling={false}
176
- color="white"
177
- defaultColor="bluegreyDark"
178
- defaultWeight="Semibold"
179
164
  dynamicTypeRamp="title2"
180
- font="TitilliumSansPro"
181
- fontStyle={
182
- {
183
- "fontSize": 22,
184
- "lineHeight": 33,
185
- }
186
- }
187
165
  maxFontSizeMultiplier={1.25}
188
166
  style={
189
167
  [
190
- {
191
- "fontSize": 22,
192
- "lineHeight": 33,
193
- },
168
+ {},
194
169
  {
195
170
  "color": "#FFFFFF",
196
171
  "fontFamily": "Titillium Sans Pro",
172
+ "fontSize": 22,
197
173
  "fontStyle": "normal",
198
174
  "fontWeight": "600",
175
+ "lineHeight": 33,
199
176
  },
200
177
  ]
201
178
  }
202
- weight="Semibold"
203
179
  >
204
180
  2
205
181
  </Text>
@@ -264,33 +240,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
264
240
  >
265
241
  <Text
266
242
  allowFontScaling={false}
267
- color="white"
268
- defaultColor="bluegreyDark"
269
- defaultWeight="Semibold"
270
243
  dynamicTypeRamp="title2"
271
- font="TitilliumSansPro"
272
- fontStyle={
273
- {
274
- "fontSize": 22,
275
- "lineHeight": 33,
276
- }
277
- }
278
244
  maxFontSizeMultiplier={1.25}
279
245
  style={
280
246
  [
281
- {
282
- "fontSize": 22,
283
- "lineHeight": 33,
284
- },
247
+ {},
285
248
  {
286
249
  "color": "#FFFFFF",
287
250
  "fontFamily": "Titillium Sans Pro",
251
+ "fontSize": 22,
288
252
  "fontStyle": "normal",
289
253
  "fontWeight": "600",
254
+ "lineHeight": 33,
290
255
  },
291
256
  ]
292
257
  }
293
- weight="Semibold"
294
258
  >
295
259
  3
296
260
  </Text>
@@ -378,33 +342,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
378
342
  >
379
343
  <Text
380
344
  allowFontScaling={false}
381
- color="white"
382
- defaultColor="bluegreyDark"
383
- defaultWeight="Semibold"
384
345
  dynamicTypeRamp="title2"
385
- font="TitilliumSansPro"
386
- fontStyle={
387
- {
388
- "fontSize": 22,
389
- "lineHeight": 33,
390
- }
391
- }
392
346
  maxFontSizeMultiplier={1.25}
393
347
  style={
394
348
  [
395
- {
396
- "fontSize": 22,
397
- "lineHeight": 33,
398
- },
349
+ {},
399
350
  {
400
351
  "color": "#FFFFFF",
401
352
  "fontFamily": "Titillium Sans Pro",
353
+ "fontSize": 22,
402
354
  "fontStyle": "normal",
403
355
  "fontWeight": "600",
356
+ "lineHeight": 33,
404
357
  },
405
358
  ]
406
359
  }
407
- weight="Semibold"
408
360
  >
409
361
  4
410
362
  </Text>
@@ -469,33 +421,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
469
421
  >
470
422
  <Text
471
423
  allowFontScaling={false}
472
- color="white"
473
- defaultColor="bluegreyDark"
474
- defaultWeight="Semibold"
475
424
  dynamicTypeRamp="title2"
476
- font="TitilliumSansPro"
477
- fontStyle={
478
- {
479
- "fontSize": 22,
480
- "lineHeight": 33,
481
- }
482
- }
483
425
  maxFontSizeMultiplier={1.25}
484
426
  style={
485
427
  [
486
- {
487
- "fontSize": 22,
488
- "lineHeight": 33,
489
- },
428
+ {},
490
429
  {
491
430
  "color": "#FFFFFF",
492
431
  "fontFamily": "Titillium Sans Pro",
432
+ "fontSize": 22,
493
433
  "fontStyle": "normal",
494
434
  "fontWeight": "600",
435
+ "lineHeight": 33,
495
436
  },
496
437
  ]
497
438
  }
498
- weight="Semibold"
499
439
  >
500
440
  5
501
441
  </Text>
@@ -560,33 +500,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
560
500
  >
561
501
  <Text
562
502
  allowFontScaling={false}
563
- color="white"
564
- defaultColor="bluegreyDark"
565
- defaultWeight="Semibold"
566
503
  dynamicTypeRamp="title2"
567
- font="TitilliumSansPro"
568
- fontStyle={
569
- {
570
- "fontSize": 22,
571
- "lineHeight": 33,
572
- }
573
- }
574
504
  maxFontSizeMultiplier={1.25}
575
505
  style={
576
506
  [
577
- {
578
- "fontSize": 22,
579
- "lineHeight": 33,
580
- },
507
+ {},
581
508
  {
582
509
  "color": "#FFFFFF",
583
510
  "fontFamily": "Titillium Sans Pro",
511
+ "fontSize": 22,
584
512
  "fontStyle": "normal",
585
513
  "fontWeight": "600",
514
+ "lineHeight": 33,
586
515
  },
587
516
  ]
588
517
  }
589
- weight="Semibold"
590
518
  >
591
519
  6
592
520
  </Text>
@@ -674,33 +602,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
674
602
  >
675
603
  <Text
676
604
  allowFontScaling={false}
677
- color="white"
678
- defaultColor="bluegreyDark"
679
- defaultWeight="Semibold"
680
605
  dynamicTypeRamp="title2"
681
- font="TitilliumSansPro"
682
- fontStyle={
683
- {
684
- "fontSize": 22,
685
- "lineHeight": 33,
686
- }
687
- }
688
606
  maxFontSizeMultiplier={1.25}
689
607
  style={
690
608
  [
691
- {
692
- "fontSize": 22,
693
- "lineHeight": 33,
694
- },
609
+ {},
695
610
  {
696
611
  "color": "#FFFFFF",
697
612
  "fontFamily": "Titillium Sans Pro",
613
+ "fontSize": 22,
698
614
  "fontStyle": "normal",
699
615
  "fontWeight": "600",
616
+ "lineHeight": 33,
700
617
  },
701
618
  ]
702
619
  }
703
- weight="Semibold"
704
620
  >
705
621
  7
706
622
  </Text>
@@ -765,33 +681,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
765
681
  >
766
682
  <Text
767
683
  allowFontScaling={false}
768
- color="white"
769
- defaultColor="bluegreyDark"
770
- defaultWeight="Semibold"
771
684
  dynamicTypeRamp="title2"
772
- font="TitilliumSansPro"
773
- fontStyle={
774
- {
775
- "fontSize": 22,
776
- "lineHeight": 33,
777
- }
778
- }
779
685
  maxFontSizeMultiplier={1.25}
780
686
  style={
781
687
  [
782
- {
783
- "fontSize": 22,
784
- "lineHeight": 33,
785
- },
688
+ {},
786
689
  {
787
690
  "color": "#FFFFFF",
788
691
  "fontFamily": "Titillium Sans Pro",
692
+ "fontSize": 22,
789
693
  "fontStyle": "normal",
790
694
  "fontWeight": "600",
695
+ "lineHeight": 33,
791
696
  },
792
697
  ]
793
698
  }
794
- weight="Semibold"
795
699
  >
796
700
  8
797
701
  </Text>
@@ -856,33 +760,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
856
760
  >
857
761
  <Text
858
762
  allowFontScaling={false}
859
- color="white"
860
- defaultColor="bluegreyDark"
861
- defaultWeight="Semibold"
862
763
  dynamicTypeRamp="title2"
863
- font="TitilliumSansPro"
864
- fontStyle={
865
- {
866
- "fontSize": 22,
867
- "lineHeight": 33,
868
- }
869
- }
870
764
  maxFontSizeMultiplier={1.25}
871
765
  style={
872
766
  [
873
- {
874
- "fontSize": 22,
875
- "lineHeight": 33,
876
- },
767
+ {},
877
768
  {
878
769
  "color": "#FFFFFF",
879
770
  "fontFamily": "Titillium Sans Pro",
771
+ "fontSize": 22,
880
772
  "fontStyle": "normal",
881
773
  "fontWeight": "600",
774
+ "lineHeight": 33,
882
775
  },
883
776
  ]
884
777
  }
885
- weight="Semibold"
886
778
  >
887
779
  9
888
780
  </Text>
@@ -1111,33 +1003,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
1111
1003
  >
1112
1004
  <Text
1113
1005
  allowFontScaling={false}
1114
- color="white"
1115
- defaultColor="bluegreyDark"
1116
- defaultWeight="Semibold"
1117
1006
  dynamicTypeRamp="title2"
1118
- font="TitilliumSansPro"
1119
- fontStyle={
1120
- {
1121
- "fontSize": 22,
1122
- "lineHeight": 33,
1123
- }
1124
- }
1125
1007
  maxFontSizeMultiplier={1.25}
1126
1008
  style={
1127
1009
  [
1128
- {
1129
- "fontSize": 22,
1130
- "lineHeight": 33,
1131
- },
1010
+ {},
1132
1011
  {
1133
1012
  "color": "#FFFFFF",
1134
1013
  "fontFamily": "Titillium Sans Pro",
1014
+ "fontSize": 22,
1135
1015
  "fontStyle": "normal",
1136
1016
  "fontWeight": "600",
1017
+ "lineHeight": 33,
1137
1018
  },
1138
1019
  ]
1139
1020
  }
1140
- weight="Semibold"
1141
1021
  >
1142
1022
  0
1143
1023
  </Text>
@@ -36,7 +36,7 @@ import {
36
36
  useIOExperimentalDesign,
37
37
  useIOTheme
38
38
  } from "../../core";
39
- import { makeFontStyleObject } from "../../utils/fonts";
39
+ import { IOFontSize, makeFontStyleObject } from "../../utils/fonts";
40
40
  import { ButtonLink } from "../buttons";
41
41
  import { IOIconSizeScale, Icon } from "../icons";
42
42
 
@@ -51,7 +51,7 @@ const iconMargin: IOSpacingScale = 8;
51
51
  const iconColor: IOColors = "grey-700";
52
52
  const iconSize: IOIconSizeScale = 16;
53
53
  const iconCloseSize: IOIconSizeScale = 24;
54
- const inputFontSizePlaceholder: number = 14;
54
+ const inputFontSizePlaceholder: IOFontSize = 14;
55
55
  const cancelButtonMargin: IOSpacingScale = 16;
56
56
  const inputTransitionDuration: number = 250;
57
57
  const inputHeightIOS: number = 36;
@@ -324,12 +324,20 @@ const styles = StyleSheet.create({
324
324
  marginRight: iconMargin
325
325
  },
326
326
  placeholder: {
327
- fontSize: inputFontSizePlaceholder,
328
- ...makeFontStyleObject("Regular", false, "ReadexPro")
327
+ ...makeFontStyleObject(
328
+ inputFontSizePlaceholder,
329
+ "ReadexPro",
330
+ undefined,
331
+ "Regular"
332
+ )
329
333
  },
330
334
  placeholderLegacy: {
331
- fontSize: inputFontSizePlaceholder,
332
- ...makeFontStyleObject("Regular", false, "TitilliumSansPro")
335
+ ...makeFontStyleObject(
336
+ inputFontSizePlaceholder,
337
+ "TitilliumSansPro",
338
+ undefined,
339
+ "Regular"
340
+ )
333
341
  },
334
342
  cancelButton: {
335
343
  position: "absolute",
@@ -1,10 +1,9 @@
1
1
  import * as React from "react";
2
2
  import { useState } from "react";
3
- import { Pressable, StyleSheet, Text, View } from "react-native";
4
- import { IOColors, useIOExperimentalDesign, useIOTheme } from "../../core";
3
+ import { Pressable, View } from "react-native";
4
+ import { useIOTheme } from "../../core";
5
5
  import { IOStyles } from "../../core/IOStyles";
6
6
  import { triggerHaptic } from "../../functions/haptic-feedback/hapticFeedback";
7
- import { makeFontStyleObject } from "../../utils/fonts";
8
7
  import { HSpacer } from "../spacer/Spacer";
9
8
  import { H6 } from "../typography/H6";
10
9
  import { AnimatedSwitch } from "./AnimatedSwitch";
@@ -23,17 +22,6 @@ type OwnProps = Props &
23
22
  Pick<React.ComponentProps<typeof AnimatedSwitch>, "disabled" | "checked"> &
24
23
  Pick<React.ComponentProps<typeof Pressable>, "onPress">;
25
24
 
26
- // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
27
- const styles = StyleSheet.create({
28
- legacyTextValue: {
29
- fontSize: 16,
30
- lineHeight: 24,
31
- color: IOColors.bluegreyDark,
32
- flexShrink: 1,
33
- ...makeFontStyleObject("Semibold", undefined, "TitilliumSansPro")
34
- }
35
- });
36
-
37
25
  /**
38
26
  * A checkbox with the automatic state management that uses a {@link AnimatedCheckBox}
39
27
  * The toggleValue change when a `onPress` event is received and dispatch the `onValueChange`.
@@ -47,24 +35,8 @@ export const SwitchLabel = ({
47
35
  disabled,
48
36
  onValueChange
49
37
  }: OwnProps) => {
50
- const [toggleValue, setToggleValue] = useState(checked ?? false);
51
38
  const theme = useIOTheme();
52
-
53
- const { isExperimental } = useIOExperimentalDesign();
54
- const switchLabelText = (
55
- <H6 style={{ flexShrink: 1 }} color={theme["textBody-default"]}>
56
- {label}
57
- </H6>
58
- );
59
-
60
- // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
61
- const legacySwitchlabelText = (
62
- <Text style={styles.legacyTextValue}>{label}</Text>
63
- );
64
-
65
- const switchLabelTextComponent = isExperimental
66
- ? switchLabelText
67
- : legacySwitchlabelText;
39
+ const [toggleValue, setToggleValue] = useState(checked ?? false);
68
40
 
69
41
  const toggleCheckbox = () => {
70
42
  triggerHaptic("impactLight");
@@ -99,7 +71,9 @@ export const SwitchLabel = ({
99
71
  <AnimatedSwitch checked={checked ?? toggleValue} />
100
72
  </View>
101
73
  <HSpacer size={8} />
102
- {switchLabelTextComponent}
74
+ <H6 style={{ flexShrink: 1 }} color={theme["textBody-default"]}>
75
+ {label}
76
+ </H6>
103
77
  </View>
104
78
  </Pressable>
105
79
  );
@@ -20,7 +20,7 @@ import { useSpringPressProgressValue } from "../../utils/hooks/useSpringPressPro
20
20
  import { WithTestID } from "../../utils/types";
21
21
  import { IOIcons, Icon } from "../icons";
22
22
  import { HSpacer } from "../spacer";
23
- import { LabelHeader } from "../typography/LabelHeader";
23
+ import { LabelSmall } from "../typography";
24
24
 
25
25
  type ColorMode = "light" | "dark";
26
26
 
@@ -257,7 +257,9 @@ const TabItem = ({
257
257
  <HSpacer size={4} />
258
258
  </>
259
259
  )}
260
- <LabelHeader color={foregroundColor}>{label}</LabelHeader>
260
+ <LabelSmall weight="Semibold" color={foregroundColor}>
261
+ {label}
262
+ </LabelSmall>
261
263
  </Animated.View>
262
264
  </Pressable>
263
265
  );
@@ -1,16 +1,21 @@
1
1
  import * as O from "fp-ts/lib/Option";
2
2
  import { pipe } from "fp-ts/lib/function";
3
3
  import React from "react";
4
- import { Platform, StyleSheet, Text, View } from "react-native";
5
- import { IOColors, IOTagRadius, useIOExperimentalDesign } from "../../core";
4
+ import { Platform, StyleSheet, View } from "react-native";
5
+ import {
6
+ IOColors,
7
+ IOTagRadius,
8
+ useIOExperimentalDesign,
9
+ useIOTheme
10
+ } from "../../core";
6
11
  import {
7
12
  IOSpacingScale,
8
13
  IOTagHSpacing,
9
14
  IOTagVSpacing
10
15
  } from "../../core/IOSpacing";
11
- import { makeFontStyleObject } from "../../utils/fonts";
12
16
  import { WithTestID } from "../../utils/types";
13
17
  import { IOIconSizeScale, IOIcons, Icon } from "../icons";
18
+ import { IOText } from "../typography";
14
19
 
15
20
  type VariantProps = {
16
21
  iconColor: IOColors;
@@ -74,21 +79,6 @@ const styles = StyleSheet.create({
74
79
  },
75
80
  spacer: {
76
81
  width: IOTagIconMargin
77
- },
78
- label: {
79
- fontSize: 12,
80
- lineHeight: 16,
81
- alignSelf: "center",
82
- textTransform: "uppercase",
83
- color: IOColors["grey-700"],
84
- flexShrink: 1
85
- },
86
- labelFont: {
87
- ...makeFontStyleObject("Regular", false, "ReadexPro")
88
- },
89
- // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
90
- legacyLabelFont: {
91
- ...makeFontStyleObject("Semibold", false, "TitilliumSansPro")
92
82
  }
93
83
  });
94
84
 
@@ -151,6 +141,7 @@ export const Tag = ({
151
141
  customIconProps,
152
142
  iconAccessibilityLabel
153
143
  }: Tag) => {
144
+ const theme = useIOTheme();
154
145
  const { isExperimental } = useIOExperimentalDesign();
155
146
 
156
147
  const variantProps = getVariantProps(variant, customIconProps);
@@ -177,16 +168,23 @@ export const Tag = ({
177
168
  )}
178
169
  {variantProps && text && <View style={styles.spacer} />}
179
170
  {text && (
180
- <Text
171
+ <IOText
172
+ font={isExperimental ? "ReadexPro" : "TitilliumSansPro"}
173
+ weight={isExperimental ? "Regular" : "Semibold"}
174
+ size={12}
175
+ lineHeight={16}
176
+ color={theme["textBody-tertiary"]}
181
177
  numberOfLines={1}
182
178
  ellipsizeMode="tail"
183
- style={[
184
- styles.label,
185
- isExperimental ? styles.labelFont : styles.legacyLabelFont
186
- ]}
179
+ style={{
180
+ alignSelf: "center",
181
+ textTransform: "uppercase",
182
+ letterSpacing: 0.5,
183
+ flexShrink: 1
184
+ }}
187
185
  >
188
186
  {text}
189
- </Text>
187
+ </IOText>
190
188
  )}
191
189
  </View>
192
190
  );