@pagopa/io-app-design-system 1.7.1 → 1.9.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 (685) hide show
  1. package/lib/commonjs/components/alert/Alert.js +9 -1
  2. package/lib/commonjs/components/alert/Alert.js.map +1 -1
  3. package/lib/commonjs/components/badge/Badge.js +11 -2
  4. package/lib/commonjs/components/badge/Badge.js.map +1 -1
  5. package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +5 -3
  6. package/lib/commonjs/components/banner/Banner.js +0 -1
  7. package/lib/commonjs/components/banner/Banner.js.map +1 -1
  8. package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +5 -5
  9. package/lib/commonjs/components/buttons/ButtonExtendedOutline.js +1 -1
  10. package/lib/commonjs/components/buttons/ButtonExtendedOutline.js.map +1 -1
  11. package/lib/commonjs/components/buttons/ButtonLink.js +3 -2
  12. package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
  13. package/lib/commonjs/components/buttons/ButtonOutline.js +8 -48
  14. package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
  15. package/lib/commonjs/components/buttons/ButtonSolid.js +5 -7
  16. package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
  17. package/lib/commonjs/components/buttons/IconButtonSolid.js +54 -29
  18. package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -1
  19. package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +23 -21
  20. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +14 -2
  21. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
  22. package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js +11 -3
  23. package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
  24. package/lib/commonjs/components/checkbox/CheckboxLabel.js +31 -8
  25. package/lib/commonjs/components/checkbox/CheckboxLabel.js.map +1 -1
  26. package/lib/commonjs/components/featureInfo/FeatureInfo.js +55 -0
  27. package/lib/commonjs/components/featureInfo/FeatureInfo.js.map +1 -0
  28. package/lib/commonjs/components/featureInfo/index.js +17 -0
  29. package/lib/commonjs/components/featureInfo/index.js.map +1 -0
  30. package/lib/commonjs/components/icons/Icon.js +35 -15
  31. package/lib/commonjs/components/icons/Icon.js.map +1 -1
  32. package/lib/commonjs/components/icons/IconContained.js +59 -0
  33. package/lib/commonjs/components/icons/IconContained.js.map +1 -0
  34. package/lib/commonjs/components/icons/index.js +11 -0
  35. package/lib/commonjs/components/icons/index.js.map +1 -1
  36. package/lib/commonjs/components/icons/svg/IconChange.js +31 -0
  37. package/lib/commonjs/components/icons/svg/IconChange.js.map +1 -0
  38. package/lib/commonjs/components/icons/svg/IconContactless.js +31 -0
  39. package/lib/commonjs/components/icons/svg/IconContactless.js.map +1 -0
  40. package/lib/commonjs/components/icons/svg/IconDisabilityCard.js +31 -0
  41. package/lib/commonjs/components/icons/svg/IconDisabilityCard.js.map +1 -0
  42. package/lib/commonjs/components/icons/svg/IconDriverLicense.js +31 -0
  43. package/lib/commonjs/components/icons/svg/IconDriverLicense.js.map +1 -0
  44. package/lib/commonjs/components/icons/svg/IconHealthCard.js +31 -0
  45. package/lib/commonjs/components/icons/svg/IconHealthCard.js.map +1 -0
  46. package/lib/commonjs/components/icons/svg/IconKey.js +31 -0
  47. package/lib/commonjs/components/icons/svg/IconKey.js.map +1 -0
  48. package/lib/commonjs/components/icons/svg/IconKeyboard.js +31 -0
  49. package/lib/commonjs/components/icons/svg/IconKeyboard.js.map +1 -0
  50. package/lib/commonjs/components/icons/svg/IconNotification.js +31 -0
  51. package/lib/commonjs/components/icons/svg/IconNotification.js.map +1 -0
  52. package/lib/commonjs/components/icons/svg/IconOption.js +31 -0
  53. package/lib/commonjs/components/icons/svg/IconOption.js.map +1 -0
  54. package/lib/commonjs/components/icons/svg/IconTransactions.js +1 -1
  55. package/lib/commonjs/components/icons/svg/IconTransactions.js.map +1 -1
  56. package/lib/commonjs/components/icons/svg/IconTransactionsBoxed.js +31 -0
  57. package/lib/commonjs/components/icons/svg/IconTransactionsBoxed.js.map +1 -0
  58. package/lib/commonjs/components/icons/svg/originals/IconChange.svg +3 -0
  59. package/lib/commonjs/components/icons/svg/originals/IconContactless.svg +3 -0
  60. package/lib/commonjs/components/icons/svg/originals/IconDisabilityCard.svg +7 -0
  61. package/lib/commonjs/components/icons/svg/originals/IconDriverLicense.svg +8 -0
  62. package/lib/commonjs/components/icons/svg/originals/IconHealthCard.svg +7 -0
  63. package/lib/commonjs/components/icons/svg/originals/IconKey.svg +7 -0
  64. package/lib/commonjs/components/icons/svg/originals/IconKeyboard.svg +3 -0
  65. package/lib/commonjs/components/icons/svg/originals/IconNotification.svg +7 -0
  66. package/lib/commonjs/components/icons/svg/originals/IconOption.svg +7 -0
  67. package/lib/commonjs/components/icons/svg/originals/IconTransactions.svg +8 -0
  68. package/lib/commonjs/components/icons/svg/originals/IconTransactionsBoxed.svg +8 -0
  69. package/lib/commonjs/components/index.js +22 -0
  70. package/lib/commonjs/components/index.js.map +1 -1
  71. package/lib/commonjs/components/listitems/ListItemAction.js +38 -8
  72. package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
  73. package/lib/commonjs/components/listitems/ListItemInfo.js +31 -7
  74. package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
  75. package/lib/commonjs/components/listitems/ListItemInfoCopy.js +40 -10
  76. package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
  77. package/lib/commonjs/components/listitems/ListItemNav.js +30 -7
  78. package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
  79. package/lib/commonjs/components/listitems/ListItemNavAlert.js +32 -7
  80. package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
  81. package/lib/commonjs/components/listitems/ListItemSwitch.js +1 -1
  82. package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
  83. package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +75 -108
  84. package/lib/commonjs/components/listitems/__test__/listitem.test.js +2 -2
  85. package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
  86. package/lib/commonjs/components/listitems/index.js +4 -4
  87. package/lib/commonjs/components/listitems/index.js.map +1 -1
  88. package/lib/commonjs/components/{listitems/ListItemIDP.js → modules/ModuleIDP.js} +19 -12
  89. package/lib/commonjs/components/modules/ModuleIDP.js.map +1 -0
  90. package/lib/commonjs/components/modules/index.js +17 -0
  91. package/lib/commonjs/components/modules/index.js.map +1 -0
  92. package/lib/commonjs/components/pictograms/Pictogram.js +53 -12
  93. package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
  94. package/lib/commonjs/components/pictograms/svg/PictogramBleedCie.js +47 -0
  95. package/lib/commonjs/components/pictograms/svg/PictogramBleedCie.js.map +1 -0
  96. package/lib/commonjs/components/pictograms/svg/PictogramBleedFeature.js +50 -0
  97. package/lib/commonjs/components/pictograms/svg/PictogramBleedFeature.js.map +1 -0
  98. package/lib/commonjs/components/pictograms/svg/PictogramBleedSecurity.js +44 -0
  99. package/lib/commonjs/components/pictograms/svg/{PictogramFollowMessage.js.map → PictogramBleedSecurity.js.map} +1 -1
  100. package/lib/commonjs/components/pictograms/svg/PictogramCie.js +47 -0
  101. package/lib/commonjs/components/pictograms/svg/PictogramCie.js.map +1 -0
  102. package/lib/commonjs/components/pictograms/svg/PictogramFeature.js +50 -0
  103. package/lib/commonjs/components/pictograms/svg/PictogramFeature.js.map +1 -0
  104. package/lib/commonjs/components/pictograms/svg/PictogramObjClock.js +34 -0
  105. package/lib/commonjs/components/pictograms/svg/PictogramObjClock.js.map +1 -0
  106. package/lib/commonjs/components/pictograms/svg/PictogramObjFlyingMessage.js +34 -0
  107. package/lib/commonjs/components/pictograms/svg/PictogramObjFlyingMessage.js.map +1 -0
  108. package/lib/commonjs/components/pictograms/svg/{PictogramFollowMessage.js → PictogramObjFollowMessage.js} +3 -3
  109. package/lib/commonjs/components/pictograms/svg/PictogramObjFollowMessage.js.map +1 -0
  110. package/lib/commonjs/components/pictograms/svg/PictogramObjIbanCard.js +76 -0
  111. package/lib/commonjs/components/pictograms/svg/PictogramObjIbanCard.js.map +1 -0
  112. package/lib/commonjs/components/pictograms/svg/PictogramObjKey.js +36 -0
  113. package/lib/commonjs/components/pictograms/svg/{PictogramManual.js.map → PictogramObjKey.js.map} +1 -1
  114. package/lib/commonjs/components/pictograms/svg/{PictogramManual.js → PictogramObjManual.js} +3 -3
  115. package/lib/commonjs/components/pictograms/svg/PictogramObjManual.js.map +1 -0
  116. package/lib/commonjs/components/pictograms/svg/{PictogramTrash.js → PictogramObjTrash.js} +3 -3
  117. package/lib/commonjs/components/pictograms/svg/PictogramObjTrash.js.map +1 -0
  118. package/lib/commonjs/components/pictograms/svg/PictogramSecurity.js +47 -0
  119. package/lib/commonjs/components/pictograms/svg/PictogramSecurity.js.map +1 -0
  120. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedCie.svg +30 -0
  121. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedFeature.svg +34 -0
  122. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedSecurity.svg +26 -0
  123. package/lib/commonjs/components/pictograms/svg/originals/PictogramCie.svg +30 -0
  124. package/lib/commonjs/components/pictograms/svg/originals/PictogramFeature.svg +34 -0
  125. package/lib/commonjs/components/pictograms/svg/originals/PictogramObjClock.svg +12 -0
  126. package/lib/commonjs/components/pictograms/svg/originals/PictogramObjFlyingMessage.svg +12 -0
  127. package/lib/commonjs/components/pictograms/svg/originals/PictogramObjIbanCard.svg +59 -0
  128. package/lib/commonjs/components/pictograms/svg/originals/PictogramObjKey.svg +14 -0
  129. package/lib/commonjs/components/pictograms/svg/originals/PictogramSecurity.svg +30 -0
  130. package/lib/commonjs/components/radio/AnimatedRadio.js +14 -2
  131. package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
  132. package/lib/commonjs/components/switch/NativeSwitch.js +19 -5
  133. package/lib/commonjs/components/switch/NativeSwitch.js.map +1 -1
  134. package/lib/commonjs/components/switch/SwitchLabel.js +31 -8
  135. package/lib/commonjs/components/switch/SwitchLabel.js.map +1 -1
  136. package/lib/commonjs/components/tag/Tag.js +16 -8
  137. package/lib/commonjs/components/tag/Tag.js.map +1 -1
  138. package/lib/commonjs/components/textInput/TextInputBase.js +11 -2
  139. package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
  140. package/lib/commonjs/components/typography/Body.js +1 -4
  141. package/lib/commonjs/components/typography/Body.js.map +1 -1
  142. package/lib/commonjs/components/typography/BodyMonospace.js +28 -0
  143. package/lib/commonjs/components/typography/BodyMonospace.js.map +1 -0
  144. package/lib/commonjs/components/typography/ButtonText.js +39 -0
  145. package/lib/commonjs/components/typography/ButtonText.js.map +1 -0
  146. package/lib/commonjs/components/typography/Caption.js +37 -0
  147. package/lib/commonjs/components/typography/Caption.js.map +1 -0
  148. package/lib/commonjs/components/typography/Chip.js +34 -0
  149. package/lib/commonjs/components/typography/Chip.js.map +1 -0
  150. package/lib/commonjs/components/typography/H1.js +18 -15
  151. package/lib/commonjs/components/typography/H1.js.map +1 -1
  152. package/lib/commonjs/components/typography/H2.js +18 -15
  153. package/lib/commonjs/components/typography/H2.js.map +1 -1
  154. package/lib/commonjs/components/typography/H3.js +24 -18
  155. package/lib/commonjs/components/typography/H3.js.map +1 -1
  156. package/lib/commonjs/components/typography/H4.js +18 -14
  157. package/lib/commonjs/components/typography/H4.js.map +1 -1
  158. package/lib/commonjs/components/typography/H5.js +19 -33
  159. package/lib/commonjs/components/typography/H5.js.map +1 -1
  160. package/lib/commonjs/components/typography/H6.js +15 -13
  161. package/lib/commonjs/components/typography/H6.js.map +1 -1
  162. package/lib/commonjs/components/typography/Hero.js +38 -0
  163. package/lib/commonjs/components/typography/Hero.js.map +1 -0
  164. package/lib/commonjs/components/typography/Label.js +13 -10
  165. package/lib/commonjs/components/typography/Label.js.map +1 -1
  166. package/lib/commonjs/components/typography/LabelHeader.js +19 -16
  167. package/lib/commonjs/components/typography/LabelHeader.js.map +1 -1
  168. package/lib/commonjs/components/typography/{Link.js → LabelLink.js} +9 -14
  169. package/lib/commonjs/components/typography/LabelLink.js.map +1 -0
  170. package/lib/commonjs/components/typography/LabelSmall.js +18 -22
  171. package/lib/commonjs/components/typography/LabelSmall.js.map +1 -1
  172. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +195 -379
  173. package/lib/commonjs/components/typography/__test__/typography.test.js +10 -42
  174. package/lib/commonjs/components/typography/__test__/typography.test.js.map +1 -1
  175. package/lib/commonjs/components/typography/common.js +18 -1
  176. package/lib/commonjs/components/typography/common.js.map +1 -1
  177. package/lib/commonjs/components/typography/index.js +45 -12
  178. package/lib/commonjs/components/typography/index.js.map +1 -1
  179. package/lib/commonjs/core/IOShapes.js +3 -3
  180. package/lib/commonjs/core/IOShapes.js.map +1 -1
  181. package/lib/commonjs/core/IOSpacing.js +8 -8
  182. package/lib/commonjs/core/IOSpacing.js.map +1 -1
  183. package/lib/commonjs/core/IOStyles.js +2 -8
  184. package/lib/commonjs/core/IOStyles.js.map +1 -1
  185. package/lib/commonjs/stories/Link.stories.js +1 -1
  186. package/lib/commonjs/stories/Link.stories.js.map +1 -1
  187. package/lib/commonjs/stories/Monospace.stories.js +1 -1
  188. package/lib/commonjs/stories/Monospace.stories.js.map +1 -1
  189. package/lib/commonjs/utils/fonts.js +8 -6
  190. package/lib/commonjs/utils/fonts.js.map +1 -1
  191. package/lib/module/components/alert/Alert.js +9 -1
  192. package/lib/module/components/alert/Alert.js.map +1 -1
  193. package/lib/module/components/badge/Badge.js +12 -3
  194. package/lib/module/components/badge/Badge.js.map +1 -1
  195. package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +5 -3
  196. package/lib/module/components/banner/Banner.js +0 -1
  197. package/lib/module/components/banner/Banner.js.map +1 -1
  198. package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +5 -5
  199. package/lib/module/components/buttons/ButtonExtendedOutline.js +2 -2
  200. package/lib/module/components/buttons/ButtonExtendedOutline.js.map +1 -1
  201. package/lib/module/components/buttons/ButtonLink.js +3 -2
  202. package/lib/module/components/buttons/ButtonLink.js.map +1 -1
  203. package/lib/module/components/buttons/ButtonOutline.js +8 -48
  204. package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
  205. package/lib/module/components/buttons/ButtonSolid.js +5 -7
  206. package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
  207. package/lib/module/components/buttons/IconButtonSolid.js +55 -30
  208. package/lib/module/components/buttons/IconButtonSolid.js.map +1 -1
  209. package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +23 -21
  210. package/lib/module/components/checkbox/AnimatedCheckbox.js +15 -3
  211. package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
  212. package/lib/module/components/checkbox/AnimatedMessageCheckbox.js +13 -5
  213. package/lib/module/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
  214. package/lib/module/components/checkbox/CheckboxLabel.js +32 -9
  215. package/lib/module/components/checkbox/CheckboxLabel.js.map +1 -1
  216. package/lib/module/components/featureInfo/FeatureInfo.js +47 -0
  217. package/lib/module/components/featureInfo/FeatureInfo.js.map +1 -0
  218. package/lib/module/components/featureInfo/index.js +2 -0
  219. package/lib/module/components/featureInfo/index.js.map +1 -0
  220. package/lib/module/components/icons/Icon.js +35 -15
  221. package/lib/module/components/icons/Icon.js.map +1 -1
  222. package/lib/module/components/icons/IconContained.js +51 -0
  223. package/lib/module/components/icons/IconContained.js.map +1 -0
  224. package/lib/module/components/icons/index.js +1 -0
  225. package/lib/module/components/icons/index.js.map +1 -1
  226. package/lib/module/components/icons/svg/IconChange.js +23 -0
  227. package/lib/module/components/icons/svg/IconChange.js.map +1 -0
  228. package/lib/module/components/icons/svg/IconContactless.js +23 -0
  229. package/lib/module/components/icons/svg/IconContactless.js.map +1 -0
  230. package/lib/module/components/icons/svg/IconDisabilityCard.js +23 -0
  231. package/lib/module/components/icons/svg/IconDisabilityCard.js.map +1 -0
  232. package/lib/module/components/icons/svg/IconDriverLicense.js +23 -0
  233. package/lib/module/components/icons/svg/IconDriverLicense.js.map +1 -0
  234. package/lib/module/components/icons/svg/IconHealthCard.js +23 -0
  235. package/lib/module/components/icons/svg/IconHealthCard.js.map +1 -0
  236. package/lib/module/components/icons/svg/IconKey.js +23 -0
  237. package/lib/module/components/icons/svg/IconKey.js.map +1 -0
  238. package/lib/module/components/icons/svg/IconKeyboard.js +23 -0
  239. package/lib/module/components/icons/svg/IconKeyboard.js.map +1 -0
  240. package/lib/module/components/icons/svg/IconNotification.js +23 -0
  241. package/lib/module/components/icons/svg/IconNotification.js.map +1 -0
  242. package/lib/module/components/icons/svg/IconOption.js +23 -0
  243. package/lib/module/components/icons/svg/IconOption.js.map +1 -0
  244. package/lib/module/components/icons/svg/IconTransactions.js +1 -1
  245. package/lib/module/components/icons/svg/IconTransactions.js.map +1 -1
  246. package/lib/module/components/icons/svg/IconTransactionsBoxed.js +23 -0
  247. package/lib/module/components/icons/svg/IconTransactionsBoxed.js.map +1 -0
  248. package/lib/module/components/icons/svg/originals/IconChange.svg +3 -0
  249. package/lib/module/components/icons/svg/originals/IconContactless.svg +3 -0
  250. package/lib/module/components/icons/svg/originals/IconDisabilityCard.svg +7 -0
  251. package/lib/module/components/icons/svg/originals/IconDriverLicense.svg +8 -0
  252. package/lib/module/components/icons/svg/originals/IconHealthCard.svg +7 -0
  253. package/lib/module/components/icons/svg/originals/IconKey.svg +7 -0
  254. package/lib/module/components/icons/svg/originals/IconKeyboard.svg +3 -0
  255. package/lib/module/components/icons/svg/originals/IconNotification.svg +7 -0
  256. package/lib/module/components/icons/svg/originals/IconOption.svg +7 -0
  257. package/lib/module/components/icons/svg/originals/IconTransactions.svg +8 -0
  258. package/lib/module/components/icons/svg/originals/IconTransactionsBoxed.svg +8 -0
  259. package/lib/module/components/index.js +2 -0
  260. package/lib/module/components/index.js.map +1 -1
  261. package/lib/module/components/listitems/ListItemAction.js +40 -10
  262. package/lib/module/components/listitems/ListItemAction.js.map +1 -1
  263. package/lib/module/components/listitems/ListItemInfo.js +34 -10
  264. package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
  265. package/lib/module/components/listitems/ListItemInfoCopy.js +43 -13
  266. package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
  267. package/lib/module/components/listitems/ListItemNav.js +34 -10
  268. package/lib/module/components/listitems/ListItemNav.js.map +1 -1
  269. package/lib/module/components/listitems/ListItemNavAlert.js +35 -10
  270. package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
  271. package/lib/module/components/listitems/ListItemSwitch.js +2 -2
  272. package/lib/module/components/listitems/ListItemSwitch.js.map +1 -1
  273. package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +75 -108
  274. package/lib/module/components/listitems/__test__/listitem.test.js +1 -1
  275. package/lib/module/components/listitems/__test__/listitem.test.js.map +1 -1
  276. package/lib/module/components/listitems/index.js +1 -1
  277. package/lib/module/components/listitems/index.js.map +1 -1
  278. package/lib/module/components/{listitems/ListItemIDP.js → modules/ModuleIDP.js} +18 -11
  279. package/lib/module/components/modules/ModuleIDP.js.map +1 -0
  280. package/lib/module/components/modules/index.js +2 -0
  281. package/lib/module/components/modules/index.js.map +1 -0
  282. package/lib/module/components/pictograms/Pictogram.js +51 -10
  283. package/lib/module/components/pictograms/Pictogram.js.map +1 -1
  284. package/lib/module/components/pictograms/svg/PictogramBleedCie.js +39 -0
  285. package/lib/module/components/pictograms/svg/PictogramBleedCie.js.map +1 -0
  286. package/lib/module/components/pictograms/svg/PictogramBleedFeature.js +42 -0
  287. package/lib/module/components/pictograms/svg/PictogramBleedFeature.js.map +1 -0
  288. package/lib/module/components/pictograms/svg/PictogramBleedSecurity.js +36 -0
  289. package/lib/module/components/pictograms/svg/PictogramBleedSecurity.js.map +1 -0
  290. package/lib/module/components/pictograms/svg/PictogramCie.js +39 -0
  291. package/lib/module/components/pictograms/svg/PictogramCie.js.map +1 -0
  292. package/lib/module/components/pictograms/svg/PictogramFeature.js +42 -0
  293. package/lib/module/components/pictograms/svg/PictogramFeature.js.map +1 -0
  294. package/lib/module/components/pictograms/svg/PictogramObjClock.js +26 -0
  295. package/lib/module/components/pictograms/svg/PictogramObjClock.js.map +1 -0
  296. package/lib/module/components/pictograms/svg/PictogramObjFlyingMessage.js +26 -0
  297. package/lib/module/components/pictograms/svg/PictogramObjFlyingMessage.js.map +1 -0
  298. package/lib/module/components/pictograms/svg/{PictogramFollowMessage.js → PictogramObjFollowMessage.js} +3 -3
  299. package/lib/module/components/pictograms/svg/PictogramObjFollowMessage.js.map +1 -0
  300. package/lib/module/components/pictograms/svg/PictogramObjIbanCard.js +68 -0
  301. package/lib/module/components/pictograms/svg/PictogramObjIbanCard.js.map +1 -0
  302. package/lib/module/components/pictograms/svg/PictogramObjKey.js +28 -0
  303. package/lib/module/components/pictograms/svg/{PictogramManual.js.map → PictogramObjKey.js.map} +1 -1
  304. package/lib/module/components/pictograms/svg/{PictogramManual.js → PictogramObjManual.js} +3 -3
  305. package/lib/module/components/pictograms/svg/PictogramObjManual.js.map +1 -0
  306. package/lib/module/components/pictograms/svg/{PictogramTrash.js → PictogramObjTrash.js} +3 -3
  307. package/lib/module/components/pictograms/svg/PictogramObjTrash.js.map +1 -0
  308. package/lib/module/components/pictograms/svg/PictogramSecurity.js +39 -0
  309. package/lib/module/components/pictograms/svg/PictogramSecurity.js.map +1 -0
  310. package/lib/module/components/pictograms/svg/originals/PictogramBleedCie.svg +30 -0
  311. package/lib/module/components/pictograms/svg/originals/PictogramBleedFeature.svg +34 -0
  312. package/lib/module/components/pictograms/svg/originals/PictogramBleedSecurity.svg +26 -0
  313. package/lib/module/components/pictograms/svg/originals/PictogramCie.svg +30 -0
  314. package/lib/module/components/pictograms/svg/originals/PictogramFeature.svg +34 -0
  315. package/lib/module/components/pictograms/svg/originals/PictogramObjClock.svg +12 -0
  316. package/lib/module/components/pictograms/svg/originals/PictogramObjFlyingMessage.svg +12 -0
  317. package/lib/module/components/pictograms/svg/originals/PictogramObjIbanCard.svg +59 -0
  318. package/lib/module/components/pictograms/svg/originals/PictogramObjKey.svg +14 -0
  319. package/lib/module/components/pictograms/svg/originals/PictogramSecurity.svg +30 -0
  320. package/lib/module/components/radio/AnimatedRadio.js +15 -3
  321. package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
  322. package/lib/module/components/switch/NativeSwitch.js +20 -6
  323. package/lib/module/components/switch/NativeSwitch.js.map +1 -1
  324. package/lib/module/components/switch/SwitchLabel.js +32 -9
  325. package/lib/module/components/switch/SwitchLabel.js.map +1 -1
  326. package/lib/module/components/tag/Tag.js +12 -4
  327. package/lib/module/components/tag/Tag.js.map +1 -1
  328. package/lib/module/components/textInput/TextInputBase.js +12 -3
  329. package/lib/module/components/textInput/TextInputBase.js.map +1 -1
  330. package/lib/module/components/typography/Body.js +1 -4
  331. package/lib/module/components/typography/Body.js.map +1 -1
  332. package/lib/module/components/typography/BodyMonospace.js +21 -0
  333. package/lib/module/components/typography/BodyMonospace.js.map +1 -0
  334. package/lib/module/components/typography/ButtonText.js +31 -0
  335. package/lib/module/components/typography/ButtonText.js.map +1 -0
  336. package/lib/module/components/typography/Caption.js +29 -0
  337. package/lib/module/components/typography/Caption.js.map +1 -0
  338. package/lib/module/components/typography/Chip.js +27 -0
  339. package/lib/module/components/typography/Chip.js.map +1 -0
  340. package/lib/module/components/typography/H1.js +17 -12
  341. package/lib/module/components/typography/H1.js.map +1 -1
  342. package/lib/module/components/typography/H2.js +17 -12
  343. package/lib/module/components/typography/H2.js.map +1 -1
  344. package/lib/module/components/typography/H3.js +24 -18
  345. package/lib/module/components/typography/H3.js.map +1 -1
  346. package/lib/module/components/typography/H4.js +17 -13
  347. package/lib/module/components/typography/H4.js.map +1 -1
  348. package/lib/module/components/typography/H5.js +17 -31
  349. package/lib/module/components/typography/H5.js.map +1 -1
  350. package/lib/module/components/typography/H6.js +15 -11
  351. package/lib/module/components/typography/H6.js.map +1 -1
  352. package/lib/module/components/typography/Hero.js +29 -0
  353. package/lib/module/components/typography/Hero.js.map +1 -0
  354. package/lib/module/components/typography/Label.js +13 -10
  355. package/lib/module/components/typography/Label.js.map +1 -1
  356. package/lib/module/components/typography/LabelHeader.js +20 -17
  357. package/lib/module/components/typography/LabelHeader.js.map +1 -1
  358. package/lib/module/components/typography/{Link.js → LabelLink.js} +6 -11
  359. package/lib/module/components/typography/LabelLink.js.map +1 -0
  360. package/lib/module/components/typography/LabelSmall.js +18 -22
  361. package/lib/module/components/typography/LabelSmall.js.map +1 -1
  362. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +195 -379
  363. package/lib/module/components/typography/__test__/typography.test.js +10 -42
  364. package/lib/module/components/typography/__test__/typography.test.js.map +1 -1
  365. package/lib/module/components/typography/common.js +15 -0
  366. package/lib/module/components/typography/common.js.map +1 -1
  367. package/lib/module/components/typography/index.js +6 -3
  368. package/lib/module/components/typography/index.js.map +1 -1
  369. package/lib/module/core/IOShapes.js +1 -1
  370. package/lib/module/core/IOShapes.js.map +1 -1
  371. package/lib/module/core/IOSpacing.js +4 -4
  372. package/lib/module/core/IOSpacing.js.map +1 -1
  373. package/lib/module/core/IOStyles.js +2 -8
  374. package/lib/module/core/IOStyles.js.map +1 -1
  375. package/lib/module/stories/Link.stories.js +2 -2
  376. package/lib/module/stories/Link.stories.js.map +1 -1
  377. package/lib/module/stories/Monospace.stories.js +2 -2
  378. package/lib/module/stories/Monospace.stories.js.map +1 -1
  379. package/lib/module/utils/fonts.js +8 -6
  380. package/lib/module/utils/fonts.js.map +1 -1
  381. package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
  382. package/lib/typescript/components/badge/Badge.d.ts.map +1 -1
  383. package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
  384. package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
  385. package/lib/typescript/components/buttons/ButtonOutline.d.ts +2 -3
  386. package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
  387. package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
  388. package/lib/typescript/components/buttons/IconButtonSolid.d.ts.map +1 -1
  389. package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
  390. package/lib/typescript/components/checkbox/AnimatedMessageCheckbox.d.ts.map +1 -1
  391. package/lib/typescript/components/checkbox/CheckboxLabel.d.ts.map +1 -1
  392. package/lib/typescript/components/featureInfo/FeatureInfo.d.ts +24 -0
  393. package/lib/typescript/components/featureInfo/FeatureInfo.d.ts.map +1 -0
  394. package/lib/typescript/components/featureInfo/index.d.ts +2 -0
  395. package/lib/typescript/components/featureInfo/index.d.ts.map +1 -0
  396. package/lib/typescript/components/icons/Icon.d.ts +11 -1
  397. package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
  398. package/lib/typescript/components/icons/IconContained.d.ts +10 -0
  399. package/lib/typescript/components/icons/IconContained.d.ts.map +1 -0
  400. package/lib/typescript/components/icons/index.d.ts +1 -0
  401. package/lib/typescript/components/icons/index.d.ts.map +1 -1
  402. package/lib/typescript/components/icons/svg/IconChange.d.ts +5 -0
  403. package/lib/typescript/components/icons/svg/IconChange.d.ts.map +1 -0
  404. package/lib/typescript/components/icons/svg/IconContactless.d.ts +5 -0
  405. package/lib/typescript/components/icons/svg/IconContactless.d.ts.map +1 -0
  406. package/lib/typescript/components/icons/svg/IconDisabilityCard.d.ts +5 -0
  407. package/lib/typescript/components/icons/svg/IconDisabilityCard.d.ts.map +1 -0
  408. package/lib/typescript/components/icons/svg/IconDriverLicense.d.ts +5 -0
  409. package/lib/typescript/components/icons/svg/IconDriverLicense.d.ts.map +1 -0
  410. package/lib/typescript/components/icons/svg/IconHealthCard.d.ts +5 -0
  411. package/lib/typescript/components/icons/svg/IconHealthCard.d.ts.map +1 -0
  412. package/lib/typescript/components/icons/svg/IconKey.d.ts +5 -0
  413. package/lib/typescript/components/icons/svg/IconKey.d.ts.map +1 -0
  414. package/lib/typescript/components/icons/svg/IconKeyboard.d.ts +5 -0
  415. package/lib/typescript/components/icons/svg/IconKeyboard.d.ts.map +1 -0
  416. package/lib/typescript/components/icons/svg/IconNotification.d.ts +5 -0
  417. package/lib/typescript/components/icons/svg/IconNotification.d.ts.map +1 -0
  418. package/lib/typescript/components/icons/svg/IconOption.d.ts +5 -0
  419. package/lib/typescript/components/icons/svg/IconOption.d.ts.map +1 -0
  420. package/lib/typescript/components/icons/svg/IconTransactionsBoxed.d.ts +5 -0
  421. package/lib/typescript/components/icons/svg/IconTransactionsBoxed.d.ts.map +1 -0
  422. package/lib/typescript/components/index.d.ts +2 -0
  423. package/lib/typescript/components/index.d.ts.map +1 -1
  424. package/lib/typescript/components/listitems/ListItemAction.d.ts.map +1 -1
  425. package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
  426. package/lib/typescript/components/listitems/ListItemInfoCopy.d.ts.map +1 -1
  427. package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
  428. package/lib/typescript/components/listitems/ListItemNavAlert.d.ts.map +1 -1
  429. package/lib/typescript/components/listitems/ListItemSwitch.d.ts +1 -1
  430. package/lib/typescript/components/listitems/ListItemSwitch.d.ts.map +1 -1
  431. package/lib/typescript/components/listitems/index.d.ts +1 -1
  432. package/lib/typescript/components/listitems/index.d.ts.map +1 -1
  433. package/lib/typescript/components/{listitems/ListItemIDP.d.ts → modules/ModuleIDP.d.ts} +4 -4
  434. package/lib/typescript/components/modules/ModuleIDP.d.ts.map +1 -0
  435. package/lib/typescript/components/modules/index.d.ts +2 -0
  436. package/lib/typescript/components/modules/index.d.ts.map +1 -0
  437. package/lib/typescript/components/pictograms/Pictogram.d.ts +21 -5
  438. package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
  439. package/lib/typescript/components/pictograms/svg/PictogramBleedCie.d.ts +5 -0
  440. package/lib/typescript/components/pictograms/svg/PictogramBleedCie.d.ts.map +1 -0
  441. package/lib/typescript/components/pictograms/svg/PictogramBleedFeature.d.ts +5 -0
  442. package/lib/typescript/components/pictograms/svg/PictogramBleedFeature.d.ts.map +1 -0
  443. package/lib/typescript/components/pictograms/svg/PictogramBleedSecurity.d.ts +5 -0
  444. package/lib/typescript/components/pictograms/svg/PictogramBleedSecurity.d.ts.map +1 -0
  445. package/lib/typescript/components/pictograms/svg/PictogramCie.d.ts +5 -0
  446. package/lib/typescript/components/pictograms/svg/PictogramCie.d.ts.map +1 -0
  447. package/lib/typescript/components/pictograms/svg/PictogramFeature.d.ts +5 -0
  448. package/lib/typescript/components/pictograms/svg/PictogramFeature.d.ts.map +1 -0
  449. package/lib/typescript/components/pictograms/svg/PictogramObjClock.d.ts +5 -0
  450. package/lib/typescript/components/pictograms/svg/PictogramObjClock.d.ts.map +1 -0
  451. package/lib/typescript/components/pictograms/svg/PictogramObjFlyingMessage.d.ts +5 -0
  452. package/lib/typescript/components/pictograms/svg/PictogramObjFlyingMessage.d.ts.map +1 -0
  453. package/lib/typescript/components/pictograms/svg/PictogramObjFollowMessage.d.ts +5 -0
  454. package/lib/typescript/components/pictograms/svg/PictogramObjFollowMessage.d.ts.map +1 -0
  455. package/lib/typescript/components/pictograms/svg/PictogramObjIbanCard.d.ts +5 -0
  456. package/lib/typescript/components/pictograms/svg/PictogramObjIbanCard.d.ts.map +1 -0
  457. package/lib/typescript/components/pictograms/svg/PictogramObjKey.d.ts +5 -0
  458. package/lib/typescript/components/pictograms/svg/PictogramObjKey.d.ts.map +1 -0
  459. package/lib/typescript/components/pictograms/svg/PictogramObjManual.d.ts +5 -0
  460. package/lib/typescript/components/pictograms/svg/PictogramObjManual.d.ts.map +1 -0
  461. package/lib/typescript/components/pictograms/svg/PictogramObjTrash.d.ts +5 -0
  462. package/lib/typescript/components/pictograms/svg/PictogramObjTrash.d.ts.map +1 -0
  463. package/lib/typescript/components/pictograms/svg/PictogramSecurity.d.ts +5 -0
  464. package/lib/typescript/components/pictograms/svg/PictogramSecurity.d.ts.map +1 -0
  465. package/lib/typescript/components/radio/AnimatedRadio.d.ts.map +1 -1
  466. package/lib/typescript/components/switch/NativeSwitch.d.ts.map +1 -1
  467. package/lib/typescript/components/switch/SwitchLabel.d.ts.map +1 -1
  468. package/lib/typescript/components/tag/Tag.d.ts.map +1 -1
  469. package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
  470. package/lib/typescript/components/typography/Body.d.ts +4 -7
  471. package/lib/typescript/components/typography/Body.d.ts.map +1 -1
  472. package/lib/typescript/components/typography/BodyMonospace.d.ts +13 -0
  473. package/lib/typescript/components/typography/BodyMonospace.d.ts.map +1 -0
  474. package/lib/typescript/components/typography/ButtonText.d.ts +14 -0
  475. package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -0
  476. package/lib/typescript/components/typography/Caption.d.ts +14 -0
  477. package/lib/typescript/components/typography/Caption.d.ts.map +1 -0
  478. package/lib/typescript/components/typography/Chip.d.ts +13 -0
  479. package/lib/typescript/components/typography/Chip.d.ts.map +1 -0
  480. package/lib/typescript/components/typography/H1.d.ts +9 -15
  481. package/lib/typescript/components/typography/H1.d.ts.map +1 -1
  482. package/lib/typescript/components/typography/H2.d.ts +9 -15
  483. package/lib/typescript/components/typography/H2.d.ts.map +1 -1
  484. package/lib/typescript/components/typography/H3.d.ts +7 -10
  485. package/lib/typescript/components/typography/H3.d.ts.map +1 -1
  486. package/lib/typescript/components/typography/H4.d.ts +8 -11
  487. package/lib/typescript/components/typography/H4.d.ts.map +1 -1
  488. package/lib/typescript/components/typography/H5.d.ts +9 -24
  489. package/lib/typescript/components/typography/H5.d.ts.map +1 -1
  490. package/lib/typescript/components/typography/H6.d.ts +7 -12
  491. package/lib/typescript/components/typography/H6.d.ts.map +1 -1
  492. package/lib/typescript/components/typography/Hero.d.ts +15 -0
  493. package/lib/typescript/components/typography/Hero.d.ts.map +1 -0
  494. package/lib/typescript/components/typography/Label.d.ts +8 -9
  495. package/lib/typescript/components/typography/Label.d.ts.map +1 -1
  496. package/lib/typescript/components/typography/LabelHeader.d.ts +4 -7
  497. package/lib/typescript/components/typography/LabelHeader.d.ts.map +1 -1
  498. package/lib/typescript/components/typography/LabelLink.d.ts +18 -0
  499. package/lib/typescript/components/typography/LabelLink.d.ts.map +1 -0
  500. package/lib/typescript/components/typography/LabelSmall.d.ts +4 -7
  501. package/lib/typescript/components/typography/LabelSmall.d.ts.map +1 -1
  502. package/lib/typescript/components/typography/common.d.ts +6 -0
  503. package/lib/typescript/components/typography/common.d.ts.map +1 -1
  504. package/lib/typescript/components/typography/index.d.ts +6 -3
  505. package/lib/typescript/components/typography/index.d.ts.map +1 -1
  506. package/lib/typescript/core/IOShapes.d.ts +1 -1
  507. package/lib/typescript/core/IOShapes.d.ts.map +1 -1
  508. package/lib/typescript/core/IOSpacing.d.ts +5 -5
  509. package/lib/typescript/core/IOSpacing.d.ts.map +1 -1
  510. package/lib/typescript/core/IOStyles.d.ts +1 -6
  511. package/lib/typescript/core/IOStyles.d.ts.map +1 -1
  512. package/lib/typescript/stories/H1.stories.d.ts +2 -2
  513. package/lib/typescript/stories/H2.stories.d.ts +2 -2
  514. package/lib/typescript/stories/H3.stories.d.ts +2 -2
  515. package/lib/typescript/stories/H4.stories.d.ts +2 -2
  516. package/lib/typescript/stories/H5.stories.d.ts +2 -10
  517. package/lib/typescript/stories/H5.stories.d.ts.map +1 -1
  518. package/lib/typescript/stories/H6.stories.d.ts +2 -2
  519. package/lib/typescript/stories/Label.stories.d.ts +4 -2
  520. package/lib/typescript/stories/Label.stories.d.ts.map +1 -1
  521. package/lib/typescript/stories/LabelSmall.stories.d.ts +2 -2
  522. package/lib/typescript/stories/Link.stories.d.ts +3 -3
  523. package/lib/typescript/stories/Link.stories.d.ts.map +1 -1
  524. package/lib/typescript/stories/Monospace.stories.d.ts +2 -2
  525. package/lib/typescript/stories/Monospace.stories.d.ts.map +1 -1
  526. package/lib/typescript/utils/fonts.d.ts +3 -3
  527. package/lib/typescript/utils/fonts.d.ts.map +1 -1
  528. package/package.json +1 -1
  529. package/src/components/alert/Alert.tsx +7 -1
  530. package/src/components/badge/Badge.tsx +30 -19
  531. package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +5 -3
  532. package/src/components/banner/Banner.tsx +1 -3
  533. package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +5 -5
  534. package/src/components/buttons/ButtonExtendedOutline.tsx +2 -2
  535. package/src/components/buttons/ButtonLink.tsx +3 -2
  536. package/src/components/buttons/ButtonOutline.tsx +6 -53
  537. package/src/components/buttons/ButtonSolid.tsx +8 -17
  538. package/src/components/buttons/IconButtonSolid.tsx +43 -13
  539. package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +23 -21
  540. package/src/components/checkbox/AnimatedCheckbox.tsx +26 -5
  541. package/src/components/checkbox/AnimatedMessageCheckbox.tsx +20 -10
  542. package/src/components/checkbox/CheckboxLabel.tsx +33 -6
  543. package/src/components/featureInfo/FeatureInfo.tsx +85 -0
  544. package/src/components/featureInfo/index.tsx +1 -0
  545. package/src/components/icons/Icon.tsx +35 -15
  546. package/src/components/icons/IconContained.tsx +76 -0
  547. package/src/components/icons/index.tsx +1 -0
  548. package/src/components/icons/svg/IconChange.tsx +16 -0
  549. package/src/components/icons/svg/IconContactless.tsx +16 -0
  550. package/src/components/icons/svg/IconDisabilityCard.tsx +16 -0
  551. package/src/components/icons/svg/IconDriverLicense.tsx +16 -0
  552. package/src/components/icons/svg/IconHealthCard.tsx +16 -0
  553. package/src/components/icons/svg/IconKey.tsx +16 -0
  554. package/src/components/icons/svg/IconKeyboard.tsx +16 -0
  555. package/src/components/icons/svg/IconNotification.tsx +16 -0
  556. package/src/components/icons/svg/IconOption.tsx +16 -0
  557. package/src/components/icons/svg/IconTransactions.tsx +1 -1
  558. package/src/components/icons/svg/IconTransactionsBoxed.tsx +16 -0
  559. package/src/components/icons/svg/originals/IconChange.svg +3 -0
  560. package/src/components/icons/svg/originals/IconContactless.svg +3 -0
  561. package/src/components/icons/svg/originals/IconDisabilityCard.svg +7 -0
  562. package/src/components/icons/svg/originals/IconDriverLicense.svg +8 -0
  563. package/src/components/icons/svg/originals/IconHealthCard.svg +7 -0
  564. package/src/components/icons/svg/originals/IconKey.svg +7 -0
  565. package/src/components/icons/svg/originals/IconKeyboard.svg +3 -0
  566. package/src/components/icons/svg/originals/IconNotification.svg +7 -0
  567. package/src/components/icons/svg/originals/IconOption.svg +7 -0
  568. package/src/components/icons/svg/originals/IconTransactions.svg +8 -0
  569. package/src/components/icons/svg/originals/IconTransactionsBoxed.svg +8 -0
  570. package/src/components/index.tsx +2 -0
  571. package/src/components/listitems/ListItemAction.tsx +53 -11
  572. package/src/components/listitems/ListItemInfo.tsx +55 -11
  573. package/src/components/listitems/ListItemInfoCopy.tsx +67 -18
  574. package/src/components/listitems/ListItemNav.tsx +60 -12
  575. package/src/components/listitems/ListItemNavAlert.tsx +50 -9
  576. package/src/components/listitems/ListItemSwitch.tsx +4 -4
  577. package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +75 -108
  578. package/src/components/listitems/__test__/listitem.test.tsx +1 -1
  579. package/src/components/listitems/index.tsx +1 -1
  580. package/src/components/{listitems/ListItemIDP.tsx → modules/ModuleIDP.tsx} +29 -16
  581. package/src/components/modules/index.tsx +1 -0
  582. package/src/components/pictograms/Pictogram.tsx +48 -11
  583. package/src/components/pictograms/svg/PictogramBleedCie.tsx +38 -0
  584. package/src/components/pictograms/svg/PictogramBleedFeature.tsx +46 -0
  585. package/src/components/pictograms/svg/PictogramBleedSecurity.tsx +38 -0
  586. package/src/components/pictograms/svg/PictogramCie.tsx +38 -0
  587. package/src/components/pictograms/svg/PictogramFeature.tsx +42 -0
  588. package/src/components/pictograms/svg/PictogramObjClock.tsx +20 -0
  589. package/src/components/pictograms/svg/PictogramObjFlyingMessage.tsx +24 -0
  590. package/src/components/pictograms/svg/{PictogramFollowMessage.tsx → PictogramObjFollowMessage.tsx} +2 -2
  591. package/src/components/pictograms/svg/PictogramObjIbanCard.tsx +67 -0
  592. package/src/components/pictograms/svg/PictogramObjKey.tsx +22 -0
  593. package/src/components/pictograms/svg/{PictogramManual.tsx → PictogramObjManual.tsx} +2 -2
  594. package/src/components/pictograms/svg/{PictogramTrash.tsx → PictogramObjTrash.tsx} +2 -2
  595. package/src/components/pictograms/svg/PictogramSecurity.tsx +38 -0
  596. package/src/components/pictograms/svg/originals/PictogramBleedCie.svg +30 -0
  597. package/src/components/pictograms/svg/originals/PictogramBleedFeature.svg +34 -0
  598. package/src/components/pictograms/svg/originals/PictogramBleedSecurity.svg +26 -0
  599. package/src/components/pictograms/svg/originals/PictogramCie.svg +30 -0
  600. package/src/components/pictograms/svg/originals/PictogramFeature.svg +34 -0
  601. package/src/components/pictograms/svg/originals/PictogramObjClock.svg +12 -0
  602. package/src/components/pictograms/svg/originals/PictogramObjFlyingMessage.svg +12 -0
  603. package/src/components/pictograms/svg/originals/PictogramObjIbanCard.svg +59 -0
  604. package/src/components/pictograms/svg/originals/PictogramObjKey.svg +14 -0
  605. package/src/components/pictograms/svg/originals/PictogramSecurity.svg +30 -0
  606. package/src/components/radio/AnimatedRadio.tsx +26 -5
  607. package/src/components/switch/NativeSwitch.tsx +35 -13
  608. package/src/components/switch/SwitchLabel.tsx +33 -6
  609. package/src/components/tag/Tag.tsx +39 -24
  610. package/src/components/textInput/TextInputBase.tsx +20 -3
  611. package/src/components/typography/Body.tsx +3 -7
  612. package/src/components/typography/BodyMonospace.tsx +29 -0
  613. package/src/components/typography/ButtonText.tsx +45 -0
  614. package/src/components/typography/Caption.tsx +37 -0
  615. package/src/components/typography/Chip.tsx +33 -0
  616. package/src/components/typography/H1.tsx +20 -29
  617. package/src/components/typography/H2.tsx +20 -29
  618. package/src/components/typography/H3.tsx +21 -20
  619. package/src/components/typography/H4.tsx +19 -20
  620. package/src/components/typography/H5.tsx +22 -54
  621. package/src/components/typography/H6.tsx +17 -15
  622. package/src/components/typography/Hero.tsx +34 -0
  623. package/src/components/typography/Label.tsx +23 -21
  624. package/src/components/typography/LabelHeader.tsx +12 -12
  625. package/src/components/typography/{Link.tsx → LabelLink.tsx} +15 -12
  626. package/src/components/typography/LabelSmall.tsx +13 -14
  627. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +195 -379
  628. package/src/components/typography/__test__/typography.test.tsx +12 -50
  629. package/src/components/typography/common.tsx +16 -0
  630. package/src/components/typography/index.tsx +6 -3
  631. package/src/core/IOShapes.ts +1 -1
  632. package/src/core/IOSpacing.ts +6 -6
  633. package/src/core/IOStyles.ts +3 -8
  634. package/src/stories/Link.stories.ts +5 -5
  635. package/src/stories/Monospace.stories.ts +5 -5
  636. package/src/utils/fonts.ts +8 -6
  637. package/lib/commonjs/components/listitems/ListItemIDP.js.map +0 -1
  638. package/lib/commonjs/components/pictograms/svg/PictogramIBANCard.js +0 -75
  639. package/lib/commonjs/components/pictograms/svg/PictogramIBANCard.js.map +0 -1
  640. package/lib/commonjs/components/pictograms/svg/PictogramTrash.js.map +0 -1
  641. package/lib/commonjs/components/pictograms/svg/originals/PictogramIBANCard.svg +0 -15
  642. package/lib/commonjs/components/typography/CTA.js +0 -34
  643. package/lib/commonjs/components/typography/CTA.js.map +0 -1
  644. package/lib/commonjs/components/typography/Link.js.map +0 -1
  645. package/lib/commonjs/components/typography/Monospace.js +0 -30
  646. package/lib/commonjs/components/typography/Monospace.js.map +0 -1
  647. package/lib/module/components/listitems/ListItemIDP.js.map +0 -1
  648. package/lib/module/components/pictograms/svg/PictogramFollowMessage.js.map +0 -1
  649. package/lib/module/components/pictograms/svg/PictogramIBANCard.js +0 -67
  650. package/lib/module/components/pictograms/svg/PictogramIBANCard.js.map +0 -1
  651. package/lib/module/components/pictograms/svg/PictogramTrash.js.map +0 -1
  652. package/lib/module/components/pictograms/svg/originals/PictogramIBANCard.svg +0 -15
  653. package/lib/module/components/typography/CTA.js +0 -27
  654. package/lib/module/components/typography/CTA.js.map +0 -1
  655. package/lib/module/components/typography/Link.js.map +0 -1
  656. package/lib/module/components/typography/Monospace.js +0 -23
  657. package/lib/module/components/typography/Monospace.js.map +0 -1
  658. package/lib/typescript/components/listitems/ListItemIDP.d.ts.map +0 -1
  659. package/lib/typescript/components/pictograms/svg/PictogramFollowMessage.d.ts +0 -5
  660. package/lib/typescript/components/pictograms/svg/PictogramFollowMessage.d.ts.map +0 -1
  661. package/lib/typescript/components/pictograms/svg/PictogramIBANCard.d.ts +0 -5
  662. package/lib/typescript/components/pictograms/svg/PictogramIBANCard.d.ts.map +0 -1
  663. package/lib/typescript/components/pictograms/svg/PictogramManual.d.ts +0 -5
  664. package/lib/typescript/components/pictograms/svg/PictogramManual.d.ts.map +0 -1
  665. package/lib/typescript/components/pictograms/svg/PictogramTrash.d.ts +0 -5
  666. package/lib/typescript/components/pictograms/svg/PictogramTrash.d.ts.map +0 -1
  667. package/lib/typescript/components/typography/CTA.d.ts +0 -16
  668. package/lib/typescript/components/typography/CTA.d.ts.map +0 -1
  669. package/lib/typescript/components/typography/Link.d.ts +0 -22
  670. package/lib/typescript/components/typography/Link.d.ts.map +0 -1
  671. package/lib/typescript/components/typography/Monospace.d.ts +0 -16
  672. package/lib/typescript/components/typography/Monospace.d.ts.map +0 -1
  673. package/src/components/pictograms/svg/PictogramIBANCard.tsx +0 -67
  674. package/src/components/pictograms/svg/originals/PictogramIBANCard.svg +0 -15
  675. package/src/components/typography/CTA.tsx +0 -35
  676. package/src/components/typography/Monospace.tsx +0 -34
  677. /package/lib/commonjs/components/pictograms/svg/originals/{PictogramFollowMessage.svg → PictogramObjFollowMessage.svg} +0 -0
  678. /package/lib/commonjs/components/pictograms/svg/originals/{PictogramManual.svg → PictogramObjManual.svg} +0 -0
  679. /package/lib/commonjs/components/pictograms/svg/originals/{PictogramTrash.svg → PictogramObjTrash.svg} +0 -0
  680. /package/lib/module/components/pictograms/svg/originals/{PictogramFollowMessage.svg → PictogramObjFollowMessage.svg} +0 -0
  681. /package/lib/module/components/pictograms/svg/originals/{PictogramManual.svg → PictogramObjManual.svg} +0 -0
  682. /package/lib/module/components/pictograms/svg/originals/{PictogramTrash.svg → PictogramObjTrash.svg} +0 -0
  683. /package/src/components/pictograms/svg/originals/{PictogramFollowMessage.svg → PictogramObjFollowMessage.svg} +0 -0
  684. /package/src/components/pictograms/svg/originals/{PictogramManual.svg → PictogramObjManual.svg} +0 -0
  685. /package/src/components/pictograms/svg/originals/{PictogramTrash.svg → PictogramObjTrash.svg} +0 -0
@@ -23,11 +23,12 @@ import {
23
23
  IOSpringValues,
24
24
  IOStyles,
25
25
  hexToRgba,
26
+ useIOExperimentalDesign,
26
27
  useIOTheme
27
28
  } from "../../core";
28
29
  import { makeFontStyleObject } from "../../utils/fonts";
29
30
  import { WithTestID } from "../../utils/types";
30
- import { AnimatedIcon, IOIcons } from "../icons";
31
+ import { AnimatedIcon, IOIcons, Icon } from "../icons";
31
32
 
32
33
  export type ListItemAction = WithTestID<{
33
34
  label: string;
@@ -46,6 +47,15 @@ const styles = StyleSheet.create({
46
47
  }
47
48
  });
48
49
 
50
+ // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
51
+ const legacyStyles = StyleSheet.create({
52
+ labelLegacy: {
53
+ fontSize: 18,
54
+ lineHeight: 24,
55
+ ...makeFontStyleObject("SemiBold", false, "TitilliumWeb")
56
+ }
57
+ });
58
+
49
59
  export const ListItemAction = ({
50
60
  variant,
51
61
  label,
@@ -56,6 +66,7 @@ export const ListItemAction = ({
56
66
  }: ListItemAction) => {
57
67
  const isPressed = useSharedValue(0);
58
68
 
69
+ const { isExperimental } = useIOExperimentalDesign();
59
70
  const theme = useIOTheme();
60
71
 
61
72
  const mapBackgroundStates: Record<string, string> = {
@@ -63,6 +74,14 @@ export const ListItemAction = ({
63
74
  pressed: IOColors[theme["listItem-pressed"]]
64
75
  };
65
76
 
77
+ const mapLegacyForegroundColor: Record<
78
+ NonNullable<ListItemAction["variant"]>,
79
+ IOColors
80
+ > = {
81
+ primary: "blue",
82
+ danger: "error-850"
83
+ };
84
+
66
85
  const mapForegroundColor: Record<
67
86
  NonNullable<ListItemAction["variant"]>,
68
87
  string
@@ -71,6 +90,37 @@ export const ListItemAction = ({
71
90
  danger: IOColors[theme.errorText]
72
91
  };
73
92
 
93
+ // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
94
+ const legacyItemActionIcon = (icon: IOIcons) => (
95
+ <Icon
96
+ name={icon}
97
+ color={mapLegacyForegroundColor[variant]}
98
+ size={IOListItemVisualParams.iconSize}
99
+ />
100
+ );
101
+
102
+ const itemActionIcon = (icon: IOIcons) => (
103
+ <>
104
+ <AnimatedIcon
105
+ name={icon}
106
+ color={mapForegroundColor[variant] as IOColors}
107
+ size={IOListItemVisualParams.iconSize}
108
+ />
109
+ </>
110
+ );
111
+
112
+ const itemActionIconComponent = (icon: IOIcons) =>
113
+ isExperimental ? itemActionIcon(icon) : legacyItemActionIcon(icon);
114
+
115
+ const textStyle = [styles.label, { color: mapForegroundColor[variant] }];
116
+
117
+ const legacyTextStyle = [
118
+ legacyStyles.labelLegacy,
119
+ { color: IOColors[mapLegacyForegroundColor[variant]] }
120
+ ];
121
+
122
+ const textStyleComponent = isExperimental ? textStyle : legacyTextStyle;
123
+
74
124
  // Scaling transformation applied when the button is pressed
75
125
  const animationScaleValue = IOScaleValues?.basicButton?.pressedState;
76
126
 
@@ -132,19 +182,11 @@ export const ListItemAction = ({
132
182
  >
133
183
  {icon && (
134
184
  <View style={{ marginRight: IOListItemVisualParams.iconMargin }}>
135
- <AnimatedIcon
136
- name={icon}
137
- color={mapForegroundColor[variant] as IOColors}
138
- size={IOListItemVisualParams.iconSize}
139
- />
185
+ {itemActionIconComponent(icon)}
140
186
  </View>
141
187
  )}
142
188
  <View style={IOStyles.flex}>
143
- <Text
144
- style={[styles.label, { color: mapForegroundColor[variant] }]}
145
- >
146
- {label}
147
- </Text>
189
+ <Text style={textStyleComponent}>{label}</Text>
148
190
  </View>
149
191
  </Animated.View>
150
192
  </Animated.View>
@@ -1,14 +1,17 @@
1
1
  import React from "react";
2
- import { View } from "react-native";
2
+ import { StyleSheet, Text, View } from "react-native";
3
3
  import {
4
+ IOColors,
4
5
  IOListItemStyles,
5
6
  IOListItemVisualParams,
6
7
  IOStyles,
8
+ useIOExperimentalDesign,
7
9
  useIOTheme
8
10
  } from "../../core";
11
+ import { makeFontStyleObject } from "../../utils/fonts";
9
12
  import { WithTestID } from "../../utils/types";
10
- import { Icon, IOIcons } from "../icons";
11
- import { H6, LabelSmall } from "../typography";
13
+ import { IOIcons, Icon } from "../icons";
14
+ import { Body, H6, LabelSmall } from "../typography";
12
15
 
13
16
  export type ListItemInfo = WithTestID<{
14
17
  label: string;
@@ -22,6 +25,15 @@ export type ListItemInfo = WithTestID<{
22
25
  accessibilityLabel: string;
23
26
  }>;
24
27
 
28
+ // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
29
+ const legacyStyles = StyleSheet.create({
30
+ textValue: {
31
+ fontSize: 18,
32
+ lineHeight: 24,
33
+ ...makeFontStyleObject("SemiBold", undefined, "TitilliumWeb")
34
+ }
35
+ });
36
+
25
37
  export const ListItemInfo = ({
26
38
  label,
27
39
  value,
@@ -31,7 +43,46 @@ export const ListItemInfo = ({
31
43
  accessibilityLabel,
32
44
  testID
33
45
  }: ListItemInfo) => {
46
+ const { isExperimental } = useIOExperimentalDesign();
34
47
  const theme = useIOTheme();
48
+
49
+ // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
50
+ const legacyItemInfoText = (
51
+ <>
52
+ {/* Let developer using a custom component (e.g: skeleton) */}
53
+ {typeof label === "string" ? (
54
+ <Body weight="Regular">{label}</Body>
55
+ ) : (
56
+ label
57
+ )}
58
+ {typeof value === "string" ? (
59
+ <Text
60
+ style={[legacyStyles.textValue, { color: IOColors.bluegreyDark }]}
61
+ numberOfLines={numberOfLines}
62
+ >
63
+ {value}
64
+ </Text>
65
+ ) : (
66
+ value
67
+ )}
68
+ </>
69
+ );
70
+
71
+ const itemInfoText = (
72
+ <>
73
+ <LabelSmall weight="Regular" color={theme["textBody-tertiary"]}>
74
+ {label}
75
+ </LabelSmall>
76
+ <H6 color={theme["textBody-default"]} numberOfLines={numberOfLines}>
77
+ {value}
78
+ </H6>
79
+ </>
80
+ );
81
+
82
+ const itemInfoTextComponent = isExperimental
83
+ ? itemInfoText
84
+ : legacyItemInfoText;
85
+
35
86
  return (
36
87
  <View
37
88
  style={IOListItemStyles.listItem}
@@ -49,14 +100,7 @@ export const ListItemInfo = ({
49
100
  />
50
101
  </View>
51
102
  )}
52
- <View style={IOStyles.flex}>
53
- <LabelSmall weight="Regular" color={theme["textBody-tertiary"]}>
54
- {label}
55
- </LabelSmall>
56
- <H6 color={theme["textBody-default"]} numberOfLines={numberOfLines}>
57
- {value}
58
- </H6>
59
- </View>
103
+ <View style={IOStyles.flex}>{itemInfoTextComponent}</View>
60
104
  {action && (
61
105
  <View style={{ marginLeft: IOListItemVisualParams.actionMargin }}>
62
106
  {action}
@@ -1,5 +1,11 @@
1
1
  import React, { useCallback } from "react";
2
- import { GestureResponderEvent, Pressable, View } from "react-native";
2
+ import {
3
+ GestureResponderEvent,
4
+ Pressable,
5
+ StyleSheet,
6
+ Text,
7
+ View
8
+ } from "react-native";
3
9
  import Animated, {
4
10
  Extrapolate,
5
11
  interpolate,
@@ -17,11 +23,14 @@ import {
17
23
  IOSpringValues,
18
24
  IOStyles,
19
25
  hexToRgba,
26
+ useIOExperimentalDesign,
20
27
  useIOTheme
21
28
  } from "../../core";
29
+ import { makeFontStyleObject } from "../../utils/fonts";
22
30
  import { WithTestID } from "../../utils/types";
23
31
  import { IOIcons, Icon } from "../icons";
24
- import { H6, LabelSmall } from "../typography";
32
+ import { VSpacer } from "../spacer";
33
+ import { Body, H6, LabelSmall } from "../typography";
25
34
 
26
35
  export type ListItemInfoCopy = WithTestID<{
27
36
  label: string;
@@ -33,6 +42,15 @@ export type ListItemInfoCopy = WithTestID<{
33
42
  accessibilityLabel: string;
34
43
  }>;
35
44
 
45
+ // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
46
+ const legacyStyles = StyleSheet.create({
47
+ textValue: {
48
+ fontSize: 18,
49
+ lineHeight: 24,
50
+ ...makeFontStyleObject("SemiBold", undefined, "TitilliumWeb")
51
+ }
52
+ });
53
+
36
54
  export const ListItemInfoCopy = ({
37
55
  label,
38
56
  value,
@@ -43,9 +61,53 @@ export const ListItemInfoCopy = ({
43
61
  testID
44
62
  }: ListItemInfoCopy) => {
45
63
  const isPressed = useSharedValue(0);
46
-
64
+ const { isExperimental } = useIOExperimentalDesign();
47
65
  const theme = useIOTheme();
48
66
 
67
+ // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
68
+ const legacyInfoCopyText = (
69
+ <>
70
+ <Body weight="Regular">{label}</Body>
71
+ <VSpacer size={4} />
72
+ {/* Let developer using a custom component (e.g: skeleton) */}
73
+ {typeof value === "string" ? (
74
+ <Text
75
+ style={[legacyStyles.textValue, { color: IOColors.blue }]}
76
+ numberOfLines={numberOfLines}
77
+ >
78
+ {value}
79
+ </Text>
80
+ ) : (
81
+ { value }
82
+ )}
83
+ </>
84
+ );
85
+
86
+ const infoCopyText = (
87
+ <>
88
+ <LabelSmall weight="Regular" color={theme["textBody-tertiary"]}>
89
+ {label}
90
+ </LabelSmall>
91
+ {/* Let developer using a custom component (e.g: skeleton) */}
92
+ {typeof value === "string" ? (
93
+ <H6
94
+ color={theme["interactiveElem-default"]}
95
+ numberOfLines={numberOfLines}
96
+ >
97
+ {value}
98
+ </H6>
99
+ ) : (
100
+ { value }
101
+ )}
102
+ </>
103
+ );
104
+
105
+ const infoCopyTextComponent = isExperimental
106
+ ? infoCopyText
107
+ : legacyInfoCopyText;
108
+
109
+ const iconColor = isExperimental ? theme["interactiveElem-default"] : "blue";
110
+
49
111
  const mapBackgroundStates: Record<string, string> = {
50
112
  default: hexToRgba(IOColors[theme["listItem-pressed"]], 0),
51
113
  pressed: IOColors[theme["listItem-pressed"]]
@@ -119,25 +181,12 @@ export const ListItemInfoCopy = ({
119
181
  </View>
120
182
  )}
121
183
  <View style={IOStyles.flex}>
122
- <LabelSmall weight="Regular" color={theme["textBody-tertiary"]}>
123
- {label}
124
- </LabelSmall>
125
- {/* Let developer using a custom component (e.g: skeleton) */}
126
- {typeof value === "string" ? (
127
- <H6
128
- color={theme["interactiveElem-default"]}
129
- numberOfLines={numberOfLines}
130
- >
131
- {value}
132
- </H6>
133
- ) : (
134
- { value }
135
- )}
184
+ {infoCopyTextComponent}
136
185
  </View>
137
186
  <View style={{ marginLeft: IOListItemVisualParams.iconMargin }}>
138
187
  <Icon
139
188
  name="copy"
140
- color={theme["interactiveElem-default"]}
189
+ color={iconColor}
141
190
  size={IOListItemVisualParams.chevronSize}
142
191
  />
143
192
  </View>
@@ -1,5 +1,11 @@
1
1
  import React, { useCallback } from "react";
2
- import { GestureResponderEvent, Pressable, View } from "react-native";
2
+ import {
3
+ GestureResponderEvent,
4
+ Pressable,
5
+ StyleSheet,
6
+ Text,
7
+ View
8
+ } from "react-native";
3
9
  import Animated, {
4
10
  Extrapolate,
5
11
  interpolate,
@@ -17,11 +23,23 @@ import {
17
23
  IOSpringValues,
18
24
  IOStyles,
19
25
  hexToRgba,
26
+ useIOExperimentalDesign,
20
27
  useIOTheme
21
28
  } from "../../core";
29
+ import { makeFontStyleObject } from "../../utils/fonts";
22
30
  import { WithTestID } from "../../utils/types";
23
31
  import { IOIcons, Icon } from "../icons";
24
- import { H6, LabelSmall } from "../typography";
32
+ import { Body, H6, LabelSmall } from "../typography";
33
+
34
+ // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
35
+ const legacyStyles = StyleSheet.create({
36
+ textValue: {
37
+ fontSize: 18,
38
+ lineHeight: 24,
39
+ color: IOColors.bluegreyDark,
40
+ ...makeFontStyleObject("SemiBold", undefined, "TitilliumWeb")
41
+ }
42
+ });
25
43
 
26
44
  export type ListItemNav = WithTestID<{
27
45
  value: string | React.ReactNode;
@@ -41,14 +59,51 @@ export const ListItemNav = ({
41
59
  testID
42
60
  }: ListItemNav) => {
43
61
  const isPressed = useSharedValue(0);
44
-
62
+ const { isExperimental } = useIOExperimentalDesign();
45
63
  const theme = useIOTheme();
46
64
 
65
+ // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
66
+ const legacyNavText = (
67
+ <>
68
+ {/* Let developer using a custom component (e.g: skeleton) */}
69
+ {typeof value === "string" ? (
70
+ <Text style={legacyStyles.textValue}>{value}</Text>
71
+ ) : (
72
+ value
73
+ )}
74
+ {description && (
75
+ <>
76
+ {typeof description === "string" ? (
77
+ <Body weight="Regular">{description}</Body>
78
+ ) : (
79
+ description
80
+ )}
81
+ </>
82
+ )}
83
+ </>
84
+ );
85
+
86
+ const navText = (
87
+ <>
88
+ <H6 color={theme["textBody-default"]}>{value}</H6>
89
+ {description && (
90
+ <LabelSmall weight="Regular" color={theme["textBody-tertiary"]}>
91
+ {description}
92
+ </LabelSmall>
93
+ )}
94
+ </>
95
+ );
96
+
97
+ const navTextComponent = isExperimental
98
+ ? navText
99
+ : legacyNavText;
47
100
  const mapBackgroundStates: Record<string, string> = {
48
101
  default: hexToRgba(IOColors[theme["listItem-pressed"]], 0),
49
102
  pressed: IOColors[theme["listItem-pressed"]]
50
103
  };
51
104
 
105
+ const iconColor = isExperimental ? theme["interactiveElem-default"] : "blue";
106
+
52
107
  // Scaling transformation applied when the button is pressed
53
108
  const animationScaleValue = IOScaleValues?.basicButton?.pressedState;
54
109
 
@@ -116,18 +171,11 @@ export const ListItemNav = ({
116
171
  />
117
172
  </View>
118
173
  )}
119
- <View style={IOStyles.flex}>
120
- <H6 color={theme["textBody-default"]}>{value}</H6>
121
- {description && (
122
- <LabelSmall weight="Regular" color={theme["textBody-tertiary"]}>
123
- {description}
124
- </LabelSmall>
125
- )}
126
- </View>
174
+ <View style={IOStyles.flex}>{navTextComponent}</View>
127
175
  <View style={{ marginLeft: IOListItemVisualParams.iconMargin }}>
128
176
  <Icon
129
177
  name="chevronRightListItem"
130
- color={theme["interactiveElem-default"]}
178
+ color={iconColor}
131
179
  size={IOListItemVisualParams.chevronSize}
132
180
  />
133
181
  </View>
@@ -1,5 +1,11 @@
1
1
  import React, { useCallback } from "react";
2
- import { GestureResponderEvent, Pressable, View } from "react-native";
2
+ import {
3
+ GestureResponderEvent,
4
+ Pressable,
5
+ StyleSheet,
6
+ Text,
7
+ View
8
+ } from "react-native";
3
9
  import Animated, {
4
10
  Extrapolate,
5
11
  interpolate,
@@ -17,11 +23,13 @@ import {
17
23
  IOSpringValues,
18
24
  IOStyles,
19
25
  hexToRgba,
26
+ useIOExperimentalDesign,
20
27
  useIOTheme
21
28
  } from "../../core";
29
+ import { makeFontStyleObject } from "../../utils/fonts";
22
30
  import { WithTestID } from "../../utils/types";
23
31
  import { Icon } from "../icons";
24
- import { H6, LabelSmall } from "../typography";
32
+ import { Body, H6, LabelSmall } from "../typography";
25
33
 
26
34
  export type ListItemNavAlert = WithTestID<{
27
35
  value: string;
@@ -32,6 +40,15 @@ export type ListItemNavAlert = WithTestID<{
32
40
  accessibilityLabel: string;
33
41
  }>;
34
42
 
43
+ // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
44
+ const legacyStyles = StyleSheet.create({
45
+ textValue: {
46
+ fontSize: 18,
47
+ lineHeight: 24,
48
+ ...makeFontStyleObject("SemiBold", undefined, "TitilliumWeb")
49
+ }
50
+ });
51
+
35
52
  export const ListItemNavAlert = ({
36
53
  value,
37
54
  description,
@@ -41,9 +58,38 @@ export const ListItemNavAlert = ({
41
58
  testID
42
59
  }: ListItemNavAlert) => {
43
60
  const isPressed: Animated.SharedValue<number> = useSharedValue(0);
61
+ const { isExperimental } = useIOExperimentalDesign();
44
62
 
45
63
  const theme = useIOTheme();
46
64
 
65
+ // TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
66
+ const legacyNavAlertText = (
67
+ <>
68
+ <Text style={[legacyStyles.textValue, { color: IOColors.bluegreyDark }]}>
69
+ {value}
70
+ </Text>
71
+ {description && (
72
+ <Body weight="SemiBold" color={theme.errorText}>
73
+ {description}
74
+ </Body>
75
+ )}
76
+ </>
77
+ );
78
+
79
+ const navAlertText = (
80
+ <>
81
+ <H6 color={theme["textBody-default"]}>{value}</H6>
82
+ {description && (
83
+ <LabelSmall weight="SemiBold" color={theme.errorText}>
84
+ {description}
85
+ </LabelSmall>
86
+ )}
87
+ </>
88
+ );
89
+
90
+ const navAlertTextComponent = isExperimental ? navAlertText : legacyNavAlertText;
91
+ const iconColor = isExperimental ? theme["interactiveElem-default"] : "blue";
92
+
47
93
  const mapBackgroundStates: Record<string, string> = {
48
94
  default: hexToRgba(IOColors[theme["listItem-pressed"]], 0),
49
95
  pressed: IOColors[theme["listItem-pressed"]]
@@ -117,17 +163,12 @@ export const ListItemNavAlert = ({
117
163
  </View>
118
164
  )}
119
165
  <View style={IOStyles.flex}>
120
- <H6 color={theme["textBody-default"]}>{value}</H6>
121
- {description && (
122
- <LabelSmall weight="SemiBold" color={theme.errorText}>
123
- {description}
124
- </LabelSmall>
125
- )}
166
+ {navAlertTextComponent}
126
167
  </View>
127
168
  <View style={{ marginLeft: IOListItemVisualParams.iconMargin }}>
128
169
  <Icon
129
170
  name="chevronRightListItem"
130
- color={theme["interactiveElem-default"]}
171
+ color={iconColor}
131
172
  size={IOListItemVisualParams.chevronSize}
132
173
  />
133
174
  </View>
@@ -8,7 +8,7 @@ import {
8
8
  } from "../../core";
9
9
  import { IOIcons, Icon } from "../icons";
10
10
  import { HSpacer, VSpacer } from "../spacer";
11
- import { H6, LabelSmall, Link } from "../typography";
11
+ import { H6, LabelSmall, LabelLink } from "../typography";
12
12
  import { NativeSwitch } from "../switch/NativeSwitch";
13
13
 
14
14
  type Props = {
@@ -19,7 +19,7 @@ type Props = {
19
19
  action?: SwitchAction;
20
20
  };
21
21
 
22
- type SwitchAction = {
22
+ export type SwitchAction = {
23
23
  label: string;
24
24
  onPress: (event: GestureResponderEvent) => void;
25
25
  };
@@ -91,9 +91,9 @@ export const ListItemSwitch = React.memo(
91
91
  {action && (
92
92
  <>
93
93
  <VSpacer size={IOSelectionListItemVisualParams.actionMargin} />
94
- <Link fontSize="small" onPress={action.onPress}>
94
+ <LabelLink fontSize="small" onPress={action.onPress}>
95
95
  {action.label}
96
- </Link>
96
+ </LabelLink>
97
97
  </>
98
98
  )}
99
99
  </View>