@pagopa/io-app-design-system 1.16.1 → 1.17.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 (485) hide show
  1. package/README.md +131 -54
  2. package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +4 -4
  3. package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +4 -4
  4. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +6 -2
  5. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
  6. package/lib/commonjs/components/codeInput/CodeInput.js +107 -0
  7. package/lib/commonjs/components/codeInput/CodeInput.js.map +1 -0
  8. package/lib/commonjs/components/codeInput/index.js +17 -0
  9. package/lib/commonjs/components/codeInput/index.js.map +1 -0
  10. package/lib/commonjs/components/icons/Icon.js +2 -0
  11. package/lib/commonjs/components/icons/Icon.js.map +1 -1
  12. package/lib/commonjs/components/icons/README.md +79 -19
  13. package/lib/commonjs/components/icons/svg/IconSparkles.js +30 -0
  14. package/lib/commonjs/components/icons/svg/IconSparkles.js.map +1 -0
  15. package/lib/commonjs/components/icons/svg/originals/IconSparkles.svg +3 -0
  16. package/lib/commonjs/components/index.js +48 -26
  17. package/lib/commonjs/components/index.js.map +1 -1
  18. package/lib/commonjs/components/layout/HeaderSecondLevel.js +5 -4
  19. package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
  20. package/lib/commonjs/components/listitems/ListItemAction.js +4 -3
  21. package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
  22. package/lib/commonjs/components/listitems/ListItemHeader.js +87 -0
  23. package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -0
  24. package/lib/commonjs/components/listitems/ListItemInfoCopy.js +5 -30
  25. package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
  26. package/lib/commonjs/components/listitems/ListItemNav.js +15 -23
  27. package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
  28. package/lib/commonjs/components/listitems/ListItemNavAlert.js +4 -22
  29. package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
  30. package/lib/commonjs/components/listitems/ListItemRadio.js +69 -10
  31. package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
  32. package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js +64 -0
  33. package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js.map +1 -0
  34. package/lib/commonjs/components/listitems/ListItemTransaction.js +8 -5
  35. package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
  36. package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +684 -34
  37. package/lib/commonjs/components/listitems/__test__/listitem.test.js +17 -0
  38. package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
  39. package/lib/commonjs/components/listitems/index.js +22 -0
  40. package/lib/commonjs/components/listitems/index.js.map +1 -1
  41. package/lib/commonjs/components/modules/ModuleCheckout.js +103 -0
  42. package/lib/commonjs/components/modules/ModuleCheckout.js.map +1 -0
  43. package/lib/commonjs/components/modules/index.js +11 -0
  44. package/lib/commonjs/components/modules/index.js.map +1 -1
  45. package/lib/commonjs/components/numberpad/NumberButton.js +1 -16
  46. package/lib/commonjs/components/numberpad/NumberButton.js.map +1 -1
  47. package/lib/commonjs/components/numberpad/NumberPad.js +10 -12
  48. package/lib/commonjs/components/numberpad/NumberPad.js.map +1 -1
  49. package/lib/commonjs/components/pictograms/Pictogram.js +19 -1
  50. package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
  51. package/lib/commonjs/components/pictograms/README.md +103 -14
  52. package/lib/commonjs/components/pictograms/svg/PictogramBiometric.js +82 -0
  53. package/lib/commonjs/components/pictograms/svg/PictogramBiometric.js.map +1 -0
  54. package/lib/commonjs/components/pictograms/svg/PictogramBleedEnded.js +43 -0
  55. package/lib/commonjs/components/pictograms/svg/PictogramBleedEnded.js.map +1 -0
  56. package/lib/commonjs/components/pictograms/svg/PictogramBleedLostConnection.js +64 -0
  57. package/lib/commonjs/components/pictograms/svg/PictogramBleedLostConnection.js.map +1 -0
  58. package/lib/commonjs/components/pictograms/svg/PictogramBleedPending.js +15 -9
  59. package/lib/commonjs/components/pictograms/svg/PictogramBleedPending.js.map +1 -1
  60. package/lib/commonjs/components/pictograms/svg/PictogramBleedQrCode.js +79 -0
  61. package/lib/commonjs/components/pictograms/svg/PictogramBleedQrCode.js.map +1 -0
  62. package/lib/commonjs/components/pictograms/svg/PictogramEmailDotCheck.js +60 -0
  63. package/lib/commonjs/components/pictograms/svg/PictogramEmailDotCheck.js.map +1 -0
  64. package/lib/commonjs/components/pictograms/svg/PictogramEmailDotNotif.js +58 -0
  65. package/lib/commonjs/components/pictograms/svg/PictogramEmailDotNotif.js.map +1 -0
  66. package/lib/commonjs/components/pictograms/svg/PictogramEnded.js +43 -0
  67. package/lib/commonjs/components/pictograms/svg/PictogramEnded.js.map +1 -0
  68. package/lib/commonjs/components/pictograms/svg/PictogramLostConnection.js +58 -0
  69. package/lib/commonjs/components/pictograms/svg/PictogramLostConnection.js.map +1 -0
  70. package/lib/commonjs/components/pictograms/svg/PictogramPending.js +15 -9
  71. package/lib/commonjs/components/pictograms/svg/PictogramPending.js.map +1 -1
  72. package/lib/commonjs/components/pictograms/svg/PictogramQrCode.js +91 -0
  73. package/lib/commonjs/components/pictograms/svg/PictogramQrCode.js.map +1 -0
  74. package/lib/commonjs/components/pictograms/svg/originals/PictogramBiometric.svg +1 -0
  75. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedEnded.svg +1 -0
  76. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedLostConnection.svg +1 -0
  77. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedPending.svg +1 -1
  78. package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedQrCode.svg +1 -0
  79. package/lib/commonjs/components/pictograms/svg/originals/PictogramEmailDotCheck.svg +41 -0
  80. package/lib/commonjs/components/pictograms/svg/originals/PictogramEmailDotNotif.svg +35 -0
  81. package/lib/commonjs/components/pictograms/svg/originals/PictogramEnded.svg +1 -0
  82. package/lib/commonjs/components/pictograms/svg/originals/PictogramLostConnection.svg +1 -0
  83. package/lib/commonjs/components/pictograms/svg/originals/PictogramPending.svg +1 -1
  84. package/lib/commonjs/components/pictograms/svg/originals/PictogramQrCode.svg +1 -0
  85. package/lib/commonjs/components/radio/RadioGroup.js +2 -1
  86. package/lib/commonjs/components/radio/RadioGroup.js.map +1 -1
  87. package/lib/commonjs/components/stepper/Stepper.js +52 -0
  88. package/lib/commonjs/components/stepper/Stepper.js.map +1 -0
  89. package/lib/commonjs/components/stepper/index.js +17 -0
  90. package/lib/commonjs/components/stepper/index.js.map +1 -0
  91. package/lib/commonjs/components/textInput/TextInputBase.js +1 -0
  92. package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
  93. package/lib/commonjs/components/toast/ToastProvider.js +17 -16
  94. package/lib/commonjs/components/toast/ToastProvider.js.map +1 -1
  95. package/lib/commonjs/components/typography/H1.js +5 -3
  96. package/lib/commonjs/components/typography/H1.js.map +1 -1
  97. package/lib/commonjs/components/typography/H2.js +5 -3
  98. package/lib/commonjs/components/typography/H2.js.map +1 -1
  99. package/lib/commonjs/components/typography/H3.js +5 -3
  100. package/lib/commonjs/components/typography/H3.js.map +1 -1
  101. package/lib/commonjs/components/typography/H4.js +2 -1
  102. package/lib/commonjs/components/typography/H4.js.map +1 -1
  103. package/lib/commonjs/components/typography/H6.js +4 -2
  104. package/lib/commonjs/components/typography/H6.js.map +1 -1
  105. package/lib/commonjs/components/typography/Hero.js +7 -3
  106. package/lib/commonjs/components/typography/Hero.js.map +1 -1
  107. package/lib/commonjs/components/typography/LabelSmall.js +6 -1
  108. package/lib/commonjs/components/typography/LabelSmall.js.map +1 -1
  109. package/lib/commonjs/components/typography/LabelSmallAlt.js +39 -0
  110. package/lib/commonjs/components/typography/LabelSmallAlt.js.map +1 -0
  111. package/lib/commonjs/components/typography/README.md +23 -0
  112. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +84 -74
  113. package/lib/commonjs/components/typography/index.js +11 -0
  114. package/lib/commonjs/components/typography/index.js.map +1 -1
  115. package/lib/commonjs/core/IOSpacing.js +1 -1
  116. package/lib/commonjs/core/IOSpacing.js.map +1 -1
  117. package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +4 -4
  118. package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +4 -4
  119. package/lib/module/components/checkbox/AnimatedCheckbox.js +6 -2
  120. package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
  121. package/lib/module/components/codeInput/CodeInput.js +98 -0
  122. package/lib/module/components/codeInput/CodeInput.js.map +1 -0
  123. package/lib/module/components/codeInput/index.js +2 -0
  124. package/lib/module/components/codeInput/index.js.map +1 -0
  125. package/lib/module/components/icons/Icon.js +2 -0
  126. package/lib/module/components/icons/Icon.js.map +1 -1
  127. package/lib/module/components/icons/README.md +79 -19
  128. package/lib/module/components/icons/svg/IconSparkles.js +21 -0
  129. package/lib/module/components/icons/svg/IconSparkles.js.map +1 -0
  130. package/lib/module/components/icons/svg/originals/IconSparkles.svg +3 -0
  131. package/lib/module/components/index.js +5 -3
  132. package/lib/module/components/index.js.map +1 -1
  133. package/lib/module/components/layout/HeaderSecondLevel.js +5 -4
  134. package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -1
  135. package/lib/module/components/listitems/ListItemAction.js +4 -3
  136. package/lib/module/components/listitems/ListItemAction.js.map +1 -1
  137. package/lib/module/components/listitems/ListItemHeader.js +77 -0
  138. package/lib/module/components/listitems/ListItemHeader.js.map +1 -0
  139. package/lib/module/components/listitems/ListItemInfoCopy.js +7 -32
  140. package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
  141. package/lib/module/components/listitems/ListItemNav.js +17 -26
  142. package/lib/module/components/listitems/ListItemNav.js.map +1 -1
  143. package/lib/module/components/listitems/ListItemNavAlert.js +6 -24
  144. package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
  145. package/lib/module/components/listitems/ListItemRadio.js +69 -10
  146. package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
  147. package/lib/module/components/listitems/ListItemRadioWithAmount.js +54 -0
  148. package/lib/module/components/listitems/ListItemRadioWithAmount.js.map +1 -0
  149. package/lib/module/components/listitems/ListItemTransaction.js +10 -7
  150. package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
  151. package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +684 -34
  152. package/lib/module/components/listitems/__test__/listitem.test.js +17 -0
  153. package/lib/module/components/listitems/__test__/listitem.test.js.map +1 -1
  154. package/lib/module/components/listitems/index.js +2 -0
  155. package/lib/module/components/listitems/index.js.map +1 -1
  156. package/lib/module/components/modules/ModuleCheckout.js +95 -0
  157. package/lib/module/components/modules/ModuleCheckout.js.map +1 -0
  158. package/lib/module/components/modules/index.js +1 -0
  159. package/lib/module/components/modules/index.js.map +1 -1
  160. package/lib/module/components/numberpad/NumberButton.js +2 -17
  161. package/lib/module/components/numberpad/NumberButton.js.map +1 -1
  162. package/lib/module/components/numberpad/NumberPad.js +9 -9
  163. package/lib/module/components/numberpad/NumberPad.js.map +1 -1
  164. package/lib/module/components/pictograms/Pictogram.js +19 -1
  165. package/lib/module/components/pictograms/Pictogram.js.map +1 -1
  166. package/lib/module/components/pictograms/README.md +103 -14
  167. package/lib/module/components/pictograms/svg/PictogramBiometric.js +74 -0
  168. package/lib/module/components/pictograms/svg/PictogramBiometric.js.map +1 -0
  169. package/lib/module/components/pictograms/svg/PictogramBleedEnded.js +35 -0
  170. package/lib/module/components/pictograms/svg/PictogramBleedEnded.js.map +1 -0
  171. package/lib/module/components/pictograms/svg/PictogramBleedLostConnection.js +56 -0
  172. package/lib/module/components/pictograms/svg/PictogramBleedLostConnection.js.map +1 -0
  173. package/lib/module/components/pictograms/svg/PictogramBleedPending.js +15 -9
  174. package/lib/module/components/pictograms/svg/PictogramBleedPending.js.map +1 -1
  175. package/lib/module/components/pictograms/svg/PictogramBleedQrCode.js +71 -0
  176. package/lib/module/components/pictograms/svg/PictogramBleedQrCode.js.map +1 -0
  177. package/lib/module/components/pictograms/svg/PictogramEmailDotCheck.js +52 -0
  178. package/lib/module/components/pictograms/svg/PictogramEmailDotCheck.js.map +1 -0
  179. package/lib/module/components/pictograms/svg/PictogramEmailDotNotif.js +50 -0
  180. package/lib/module/components/pictograms/svg/PictogramEmailDotNotif.js.map +1 -0
  181. package/lib/module/components/pictograms/svg/PictogramEnded.js +35 -0
  182. package/lib/module/components/pictograms/svg/PictogramEnded.js.map +1 -0
  183. package/lib/module/components/pictograms/svg/PictogramLostConnection.js +50 -0
  184. package/lib/module/components/pictograms/svg/PictogramLostConnection.js.map +1 -0
  185. package/lib/module/components/pictograms/svg/PictogramPending.js +15 -9
  186. package/lib/module/components/pictograms/svg/PictogramPending.js.map +1 -1
  187. package/lib/module/components/pictograms/svg/PictogramQrCode.js +83 -0
  188. package/lib/module/components/pictograms/svg/PictogramQrCode.js.map +1 -0
  189. package/lib/module/components/pictograms/svg/originals/PictogramBiometric.svg +1 -0
  190. package/lib/module/components/pictograms/svg/originals/PictogramBleedEnded.svg +1 -0
  191. package/lib/module/components/pictograms/svg/originals/PictogramBleedLostConnection.svg +1 -0
  192. package/lib/module/components/pictograms/svg/originals/PictogramBleedPending.svg +1 -1
  193. package/lib/module/components/pictograms/svg/originals/PictogramBleedQrCode.svg +1 -0
  194. package/lib/module/components/pictograms/svg/originals/PictogramEmailDotCheck.svg +41 -0
  195. package/lib/module/components/pictograms/svg/originals/PictogramEmailDotNotif.svg +35 -0
  196. package/lib/module/components/pictograms/svg/originals/PictogramEnded.svg +1 -0
  197. package/lib/module/components/pictograms/svg/originals/PictogramLostConnection.svg +1 -0
  198. package/lib/module/components/pictograms/svg/originals/PictogramPending.svg +1 -1
  199. package/lib/module/components/pictograms/svg/originals/PictogramQrCode.svg +1 -0
  200. package/lib/module/components/radio/RadioGroup.js +2 -1
  201. package/lib/module/components/radio/RadioGroup.js.map +1 -1
  202. package/lib/module/components/stepper/Stepper.js +43 -0
  203. package/lib/module/components/stepper/Stepper.js.map +1 -0
  204. package/lib/module/components/stepper/index.js +2 -0
  205. package/lib/module/components/stepper/index.js.map +1 -0
  206. package/lib/module/components/textInput/TextInputBase.js +1 -0
  207. package/lib/module/components/textInput/TextInputBase.js.map +1 -1
  208. package/lib/module/components/toast/ToastProvider.js +17 -16
  209. package/lib/module/components/toast/ToastProvider.js.map +1 -1
  210. package/lib/module/components/typography/H1.js +5 -3
  211. package/lib/module/components/typography/H1.js.map +1 -1
  212. package/lib/module/components/typography/H2.js +5 -3
  213. package/lib/module/components/typography/H2.js.map +1 -1
  214. package/lib/module/components/typography/H3.js +5 -3
  215. package/lib/module/components/typography/H3.js.map +1 -1
  216. package/lib/module/components/typography/H4.js +2 -1
  217. package/lib/module/components/typography/H4.js.map +1 -1
  218. package/lib/module/components/typography/H6.js +4 -2
  219. package/lib/module/components/typography/H6.js.map +1 -1
  220. package/lib/module/components/typography/Hero.js +7 -3
  221. package/lib/module/components/typography/Hero.js.map +1 -1
  222. package/lib/module/components/typography/LabelSmall.js +6 -1
  223. package/lib/module/components/typography/LabelSmall.js.map +1 -1
  224. package/lib/module/components/typography/LabelSmallAlt.js +32 -0
  225. package/lib/module/components/typography/LabelSmallAlt.js.map +1 -0
  226. package/lib/module/components/typography/README.md +23 -0
  227. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +84 -74
  228. package/lib/module/components/typography/index.js +1 -0
  229. package/lib/module/components/typography/index.js.map +1 -1
  230. package/lib/module/core/IOSpacing.js +1 -1
  231. package/lib/module/core/IOSpacing.js.map +1 -1
  232. package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
  233. package/lib/typescript/components/codeInput/CodeInput.d.ts +11 -0
  234. package/lib/typescript/components/codeInput/CodeInput.d.ts.map +1 -0
  235. package/lib/typescript/components/codeInput/index.d.ts +2 -0
  236. package/lib/typescript/components/codeInput/index.d.ts.map +1 -0
  237. package/lib/typescript/components/icons/Icon.d.ts +1 -0
  238. package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
  239. package/lib/typescript/components/icons/svg/IconSparkles.d.ts +5 -0
  240. package/lib/typescript/components/icons/svg/IconSparkles.d.ts.map +1 -0
  241. package/lib/typescript/components/index.d.ts +5 -3
  242. package/lib/typescript/components/index.d.ts.map +1 -1
  243. package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -1
  244. package/lib/typescript/components/listitems/ListItemAction.d.ts.map +1 -1
  245. package/lib/typescript/components/listitems/ListItemHeader.d.ts +34 -0
  246. package/lib/typescript/components/listitems/ListItemHeader.d.ts.map +1 -0
  247. package/lib/typescript/components/listitems/ListItemInfoCopy.d.ts.map +1 -1
  248. package/lib/typescript/components/listitems/ListItemNav.d.ts +4 -1
  249. package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
  250. package/lib/typescript/components/listitems/ListItemNavAlert.d.ts +2 -2
  251. package/lib/typescript/components/listitems/ListItemNavAlert.d.ts.map +1 -1
  252. package/lib/typescript/components/listitems/ListItemRadio.d.ts +21 -3
  253. package/lib/typescript/components/listitems/ListItemRadio.d.ts.map +1 -1
  254. package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts +13 -0
  255. package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts.map +1 -0
  256. package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
  257. package/lib/typescript/components/listitems/index.d.ts +2 -0
  258. package/lib/typescript/components/listitems/index.d.ts.map +1 -1
  259. package/lib/typescript/components/modules/ModuleCheckout.d.ts +21 -0
  260. package/lib/typescript/components/modules/ModuleCheckout.d.ts.map +1 -0
  261. package/lib/typescript/components/modules/index.d.ts +1 -0
  262. package/lib/typescript/components/modules/index.d.ts.map +1 -1
  263. package/lib/typescript/components/numberpad/NumberButton.d.ts.map +1 -1
  264. package/lib/typescript/components/numberpad/NumberPad.d.ts +2 -1
  265. package/lib/typescript/components/numberpad/NumberPad.d.ts.map +1 -1
  266. package/lib/typescript/components/pictograms/Pictogram.d.ts +7 -1
  267. package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
  268. package/lib/typescript/components/pictograms/svg/PictogramBiometric.d.ts +5 -0
  269. package/lib/typescript/components/pictograms/svg/PictogramBiometric.d.ts.map +1 -0
  270. package/lib/typescript/components/pictograms/svg/PictogramBleedEnded.d.ts +5 -0
  271. package/lib/typescript/components/pictograms/svg/PictogramBleedEnded.d.ts.map +1 -0
  272. package/lib/typescript/components/pictograms/svg/PictogramBleedLostConnection.d.ts +5 -0
  273. package/lib/typescript/components/pictograms/svg/PictogramBleedLostConnection.d.ts.map +1 -0
  274. package/lib/typescript/components/pictograms/svg/PictogramBleedPending.d.ts.map +1 -1
  275. package/lib/typescript/components/pictograms/svg/PictogramBleedQrCode.d.ts +5 -0
  276. package/lib/typescript/components/pictograms/svg/PictogramBleedQrCode.d.ts.map +1 -0
  277. package/lib/typescript/components/pictograms/svg/PictogramEmailDotCheck.d.ts +5 -0
  278. package/lib/typescript/components/pictograms/svg/PictogramEmailDotCheck.d.ts.map +1 -0
  279. package/lib/typescript/components/pictograms/svg/PictogramEmailDotNotif.d.ts +5 -0
  280. package/lib/typescript/components/pictograms/svg/PictogramEmailDotNotif.d.ts.map +1 -0
  281. package/lib/typescript/components/pictograms/svg/PictogramEnded.d.ts +5 -0
  282. package/lib/typescript/components/pictograms/svg/PictogramEnded.d.ts.map +1 -0
  283. package/lib/typescript/components/pictograms/svg/PictogramLostConnection.d.ts +5 -0
  284. package/lib/typescript/components/pictograms/svg/PictogramLostConnection.d.ts.map +1 -0
  285. package/lib/typescript/components/pictograms/svg/PictogramPending.d.ts.map +1 -1
  286. package/lib/typescript/components/pictograms/svg/PictogramQrCode.d.ts +5 -0
  287. package/lib/typescript/components/pictograms/svg/PictogramQrCode.d.ts.map +1 -0
  288. package/lib/typescript/components/radio/RadioGroup.d.ts +4 -3
  289. package/lib/typescript/components/radio/RadioGroup.d.ts.map +1 -1
  290. package/lib/typescript/components/stepper/Stepper.d.ts +8 -0
  291. package/lib/typescript/components/stepper/Stepper.d.ts.map +1 -0
  292. package/lib/typescript/components/stepper/index.d.ts +2 -0
  293. package/lib/typescript/components/stepper/index.d.ts.map +1 -0
  294. package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
  295. package/lib/typescript/components/toast/ToastProvider.d.ts.map +1 -1
  296. package/lib/typescript/components/typography/H1.d.ts +1 -1
  297. package/lib/typescript/components/typography/H1.d.ts.map +1 -1
  298. package/lib/typescript/components/typography/H2.d.ts +1 -1
  299. package/lib/typescript/components/typography/H2.d.ts.map +1 -1
  300. package/lib/typescript/components/typography/H3.d.ts +1 -1
  301. package/lib/typescript/components/typography/H3.d.ts.map +1 -1
  302. package/lib/typescript/components/typography/H4.d.ts.map +1 -1
  303. package/lib/typescript/components/typography/H6.d.ts.map +1 -1
  304. package/lib/typescript/components/typography/Hero.d.ts +1 -1
  305. package/lib/typescript/components/typography/Hero.d.ts.map +1 -1
  306. package/lib/typescript/components/typography/LabelSmall.d.ts.map +1 -1
  307. package/lib/typescript/components/typography/LabelSmallAlt.d.ts +14 -0
  308. package/lib/typescript/components/typography/LabelSmallAlt.d.ts.map +1 -0
  309. package/lib/typescript/components/typography/index.d.ts +1 -0
  310. package/lib/typescript/components/typography/index.d.ts.map +1 -1
  311. package/lib/typescript/core/IOSpacing.d.ts +1 -1
  312. package/lib/typescript/core/IOSpacing.d.ts.map +1 -1
  313. package/package.json +9 -2
  314. package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +4 -4
  315. package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +4 -4
  316. package/src/components/checkbox/AnimatedCheckbox.tsx +6 -4
  317. package/src/components/codeInput/CodeInput.tsx +134 -0
  318. package/src/components/codeInput/index.tsx +1 -0
  319. package/src/components/icons/Icon.tsx +2 -0
  320. package/src/components/icons/README.md +79 -19
  321. package/src/components/icons/svg/IconSparkles.tsx +14 -0
  322. package/src/components/icons/svg/originals/IconSparkles.svg +3 -0
  323. package/src/components/index.tsx +5 -3
  324. package/src/components/layout/HeaderSecondLevel.tsx +6 -9
  325. package/src/components/listitems/ListItemAction.tsx +4 -3
  326. package/src/components/listitems/ListItemHeader.tsx +146 -0
  327. package/src/components/listitems/ListItemInfoCopy.tsx +14 -57
  328. package/src/components/listitems/ListItemNav.tsx +32 -44
  329. package/src/components/listitems/ListItemNavAlert.tsx +21 -42
  330. package/src/components/listitems/ListItemRadio.tsx +99 -12
  331. package/src/components/listitems/ListItemRadioWithAmount.tsx +69 -0
  332. package/src/components/listitems/ListItemTransaction.tsx +12 -7
  333. package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +684 -34
  334. package/src/components/listitems/__test__/listitem.test.tsx +21 -0
  335. package/src/components/listitems/index.tsx +2 -0
  336. package/src/components/modules/ModuleCheckout.tsx +105 -0
  337. package/src/components/modules/index.tsx +1 -0
  338. package/src/components/numberpad/NumberButton.tsx +2 -21
  339. package/src/components/numberpad/NumberPad.tsx +12 -10
  340. package/src/components/pictograms/Pictogram.tsx +23 -2
  341. package/src/components/pictograms/README.md +103 -14
  342. package/src/components/pictograms/svg/PictogramBiometric.tsx +78 -0
  343. package/src/components/pictograms/svg/PictogramBleedEnded.tsx +38 -0
  344. package/src/components/pictograms/svg/PictogramBleedLostConnection.tsx +66 -0
  345. package/src/components/pictograms/svg/PictogramBleedPending.tsx +17 -9
  346. package/src/components/pictograms/svg/PictogramBleedQrCode.tsx +86 -0
  347. package/src/components/pictograms/svg/PictogramEmailDotCheck.tsx +53 -0
  348. package/src/components/pictograms/svg/PictogramEmailDotNotif.tsx +51 -0
  349. package/src/components/pictograms/svg/PictogramEnded.tsx +34 -0
  350. package/src/components/pictograms/svg/PictogramLostConnection.tsx +58 -0
  351. package/src/components/pictograms/svg/PictogramPending.tsx +17 -9
  352. package/src/components/pictograms/svg/PictogramQrCode.tsx +102 -0
  353. package/src/components/pictograms/svg/originals/PictogramBiometric.svg +1 -0
  354. package/src/components/pictograms/svg/originals/PictogramBleedEnded.svg +1 -0
  355. package/src/components/pictograms/svg/originals/PictogramBleedLostConnection.svg +1 -0
  356. package/src/components/pictograms/svg/originals/PictogramBleedPending.svg +1 -1
  357. package/src/components/pictograms/svg/originals/PictogramBleedQrCode.svg +1 -0
  358. package/src/components/pictograms/svg/originals/PictogramEmailDotCheck.svg +41 -0
  359. package/src/components/pictograms/svg/originals/PictogramEmailDotNotif.svg +35 -0
  360. package/src/components/pictograms/svg/originals/PictogramEnded.svg +1 -0
  361. package/src/components/pictograms/svg/originals/PictogramLostConnection.svg +1 -0
  362. package/src/components/pictograms/svg/originals/PictogramPending.svg +1 -1
  363. package/src/components/pictograms/svg/originals/PictogramQrCode.svg +1 -0
  364. package/src/components/radio/RadioGroup.tsx +5 -4
  365. package/src/components/stepper/Stepper.tsx +62 -0
  366. package/src/components/stepper/index.tsx +1 -0
  367. package/src/components/textInput/TextInputBase.tsx +1 -0
  368. package/src/components/toast/ToastProvider.tsx +12 -17
  369. package/src/components/typography/H1.tsx +8 -3
  370. package/src/components/typography/H2.tsx +8 -3
  371. package/src/components/typography/H3.tsx +8 -3
  372. package/src/components/typography/H4.tsx +5 -1
  373. package/src/components/typography/H6.tsx +6 -1
  374. package/src/components/typography/Hero.tsx +10 -3
  375. package/src/components/typography/LabelSmall.tsx +8 -1
  376. package/src/components/typography/LabelSmallAlt.tsx +51 -0
  377. package/src/components/typography/README.md +23 -0
  378. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +84 -74
  379. package/src/components/typography/index.tsx +1 -0
  380. package/src/core/IOSpacing.ts +4 -2
  381. package/lib/commonjs/components/icons/generateNewIcons.js +0 -165
  382. package/lib/commonjs/components/icons/generateNewIcons.js.map +0 -1
  383. package/lib/commonjs/components/icons/generateNewTimestamp.js +0 -8
  384. package/lib/commonjs/components/icons/generateNewTimestamp.js.map +0 -1
  385. package/lib/commonjs/components/icons/timestamp.txt +0 -1
  386. package/lib/commonjs/components/pictograms/generateNewPictograms.js +0 -163
  387. package/lib/commonjs/components/pictograms/generateNewPictograms.js.map +0 -1
  388. package/lib/commonjs/components/pictograms/timestamp.txt +0 -1
  389. package/lib/commonjs/stories/ButtonDS.stories.js +0 -34
  390. package/lib/commonjs/stories/ButtonDS.stories.js.map +0 -1
  391. package/lib/commonjs/stories/H1.stories.js +0 -33
  392. package/lib/commonjs/stories/H1.stories.js.map +0 -1
  393. package/lib/commonjs/stories/H2.stories.js +0 -33
  394. package/lib/commonjs/stories/H2.stories.js.map +0 -1
  395. package/lib/commonjs/stories/H3.stories.js +0 -33
  396. package/lib/commonjs/stories/H3.stories.js.map +0 -1
  397. package/lib/commonjs/stories/H4.stories.js +0 -33
  398. package/lib/commonjs/stories/H4.stories.js.map +0 -1
  399. package/lib/commonjs/stories/H5.stories.js +0 -33
  400. package/lib/commonjs/stories/H5.stories.js.map +0 -1
  401. package/lib/commonjs/stories/H6.stories.js +0 -33
  402. package/lib/commonjs/stories/H6.stories.js.map +0 -1
  403. package/lib/commonjs/stories/Label.stories.js +0 -33
  404. package/lib/commonjs/stories/Label.stories.js.map +0 -1
  405. package/lib/commonjs/stories/LabelSmall.stories.js +0 -33
  406. package/lib/commonjs/stories/LabelSmall.stories.js.map +0 -1
  407. package/lib/commonjs/stories/Link.stories.js +0 -33
  408. package/lib/commonjs/stories/Link.stories.js.map +0 -1
  409. package/lib/commonjs/stories/ModuleIDP.stories.js +0 -45
  410. package/lib/commonjs/stories/ModuleIDP.stories.js.map +0 -1
  411. package/lib/commonjs/stories/Monospace.stories.js +0 -33
  412. package/lib/commonjs/stories/Monospace.stories.js.map +0 -1
  413. package/lib/module/components/icons/generateNewIcons.js +0 -163
  414. package/lib/module/components/icons/generateNewIcons.js.map +0 -1
  415. package/lib/module/components/icons/generateNewTimestamp.js +0 -6
  416. package/lib/module/components/icons/generateNewTimestamp.js.map +0 -1
  417. package/lib/module/components/icons/timestamp.txt +0 -1
  418. package/lib/module/components/pictograms/generateNewPictograms.js +0 -161
  419. package/lib/module/components/pictograms/generateNewPictograms.js.map +0 -1
  420. package/lib/module/components/pictograms/timestamp.txt +0 -1
  421. package/lib/module/stories/ButtonDS.stories.js +0 -27
  422. package/lib/module/stories/ButtonDS.stories.js.map +0 -1
  423. package/lib/module/stories/H1.stories.js +0 -26
  424. package/lib/module/stories/H1.stories.js.map +0 -1
  425. package/lib/module/stories/H2.stories.js +0 -26
  426. package/lib/module/stories/H2.stories.js.map +0 -1
  427. package/lib/module/stories/H3.stories.js +0 -26
  428. package/lib/module/stories/H3.stories.js.map +0 -1
  429. package/lib/module/stories/H4.stories.js +0 -26
  430. package/lib/module/stories/H4.stories.js.map +0 -1
  431. package/lib/module/stories/H5.stories.js +0 -26
  432. package/lib/module/stories/H5.stories.js.map +0 -1
  433. package/lib/module/stories/H6.stories.js +0 -26
  434. package/lib/module/stories/H6.stories.js.map +0 -1
  435. package/lib/module/stories/Label.stories.js +0 -26
  436. package/lib/module/stories/Label.stories.js.map +0 -1
  437. package/lib/module/stories/LabelSmall.stories.js +0 -26
  438. package/lib/module/stories/LabelSmall.stories.js.map +0 -1
  439. package/lib/module/stories/Link.stories.js +0 -26
  440. package/lib/module/stories/Link.stories.js.map +0 -1
  441. package/lib/module/stories/ModuleIDP.stories.js +0 -37
  442. package/lib/module/stories/ModuleIDP.stories.js.map +0 -1
  443. package/lib/module/stories/Monospace.stories.js +0 -26
  444. package/lib/module/stories/Monospace.stories.js.map +0 -1
  445. package/lib/typescript/stories/ButtonDS.stories.d.ts +0 -14
  446. package/lib/typescript/stories/ButtonDS.stories.d.ts.map +0 -1
  447. package/lib/typescript/stories/H1.stories.d.ts +0 -19
  448. package/lib/typescript/stories/H1.stories.d.ts.map +0 -1
  449. package/lib/typescript/stories/H2.stories.d.ts +0 -19
  450. package/lib/typescript/stories/H2.stories.d.ts.map +0 -1
  451. package/lib/typescript/stories/H3.stories.d.ts +0 -19
  452. package/lib/typescript/stories/H3.stories.d.ts.map +0 -1
  453. package/lib/typescript/stories/H4.stories.d.ts +0 -19
  454. package/lib/typescript/stories/H4.stories.d.ts.map +0 -1
  455. package/lib/typescript/stories/H5.stories.d.ts +0 -19
  456. package/lib/typescript/stories/H5.stories.d.ts.map +0 -1
  457. package/lib/typescript/stories/H6.stories.d.ts +0 -19
  458. package/lib/typescript/stories/H6.stories.d.ts.map +0 -1
  459. package/lib/typescript/stories/Label.stories.d.ts +0 -21
  460. package/lib/typescript/stories/Label.stories.d.ts.map +0 -1
  461. package/lib/typescript/stories/LabelSmall.stories.d.ts +0 -21
  462. package/lib/typescript/stories/LabelSmall.stories.d.ts.map +0 -1
  463. package/lib/typescript/stories/Link.stories.d.ts +0 -21
  464. package/lib/typescript/stories/Link.stories.d.ts.map +0 -1
  465. package/lib/typescript/stories/ModuleIDP.stories.d.ts +0 -24
  466. package/lib/typescript/stories/ModuleIDP.stories.d.ts.map +0 -1
  467. package/lib/typescript/stories/Monospace.stories.d.ts +0 -19
  468. package/lib/typescript/stories/Monospace.stories.d.ts.map +0 -1
  469. package/src/components/icons/generateNewIcons.js +0 -186
  470. package/src/components/icons/generateNewTimestamp.js +0 -7
  471. package/src/components/icons/timestamp.txt +0 -1
  472. package/src/components/pictograms/generateNewPictograms.js +0 -181
  473. package/src/components/pictograms/timestamp.txt +0 -1
  474. package/src/stories/ButtonDS.stories.ts +0 -31
  475. package/src/stories/H1.stories.ts +0 -28
  476. package/src/stories/H2.stories.ts +0 -28
  477. package/src/stories/H3.stories.ts +0 -28
  478. package/src/stories/H4.stories.ts +0 -28
  479. package/src/stories/H5.stories.ts +0 -28
  480. package/src/stories/H6.stories.ts +0 -28
  481. package/src/stories/Label.stories.ts +0 -28
  482. package/src/stories/LabelSmall.stories.ts +0 -28
  483. package/src/stories/Link.stories.ts +0 -28
  484. package/src/stories/ModuleIDP.stories.tsx +0 -44
  485. package/src/stories/Monospace.stories.ts +0 -28
@@ -0,0 +1,69 @@
1
+ import * as React from "react";
2
+ import { StyleSheet, View } from "react-native";
3
+ import RNReactNativeHapticFeedback from "react-native-haptic-feedback";
4
+ import { IOColors, useIOExperimentalDesign } from "../../core";
5
+ import { Icon } from "../icons";
6
+ import { AnimatedRadio } from "../radio/AnimatedRadio";
7
+ import { HSpacer, VSpacer } from "../spacer";
8
+ import { H6, LabelSmallAlt } from "../typography";
9
+ import { LabelSmall } from "../typography/LabelSmall";
10
+ import { PressableListItemBase } from "./PressableListItemsBase";
11
+
12
+ export type ListItemRadioWithAmountProps = {
13
+ selected?: boolean;
14
+ label: string;
15
+ formattedAmountString: string;
16
+ } & (
17
+ | {
18
+ isSuggested?: false;
19
+ }
20
+ | {
21
+ isSuggested: true;
22
+ suggestReason: string;
23
+ }
24
+ );
25
+ export const ListItemRadioWithAmount = (
26
+ props: ListItemRadioWithAmountProps
27
+ ) => {
28
+ const [toggleValue, setToggleValue] = React.useState(props.selected ?? false);
29
+ const pressHandler = () => {
30
+ RNReactNativeHapticFeedback.trigger("impactLight");
31
+ setToggleValue(val => !val);
32
+ };
33
+ const isExperimental = useIOExperimentalDesign();
34
+
35
+ const interactiveColor: IOColors = isExperimental ? "blueIO-500" : "blue";
36
+ const suggestColor: IOColors = "hanPurple-500";
37
+
38
+ return (
39
+ <PressableListItemBase onPress={pressHandler}>
40
+ <View>
41
+ <LabelSmallAlt>{props.label}</LabelSmallAlt>
42
+ {props.isSuggested && (
43
+ <>
44
+ <VSpacer size={4} />
45
+ <View style={styles.rowCenter}>
46
+ <Icon name="sparkles" size={16} color={suggestColor} />
47
+ <HSpacer size={4} />
48
+ <LabelSmall weight="Regular" color={suggestColor}>
49
+ {props.suggestReason}
50
+ </LabelSmall>
51
+ </View>
52
+ </>
53
+ )}
54
+ </View>
55
+ <View pointerEvents="none" style={{ flexDirection: "row" }}>
56
+ <H6 color={interactiveColor}>{props.formattedAmountString}</H6>
57
+ <HSpacer size={8} />
58
+ <AnimatedRadio checked={toggleValue} />
59
+ </View>
60
+ </PressableListItemBase>
61
+ );
62
+ };
63
+
64
+ const styles = StyleSheet.create({
65
+ rowCenter: {
66
+ flexDirection: "row",
67
+ alignItems: "center"
68
+ }
69
+ });
@@ -11,6 +11,7 @@ import {
11
11
  IOListItemVisualParams,
12
12
  IOStyles,
13
13
  IOVisualCostants,
14
+ useIOExperimentalDesign,
14
15
  useIOTheme
15
16
  } from "../../core";
16
17
 
@@ -23,7 +24,7 @@ import { LogoPaymentWithFallback } from "../common/LogoPaymentWithFallback";
23
24
  import { IOIconSizeScale, Icon } from "../icons";
24
25
  import { IOLogoPaymentType } from "../logos";
25
26
  import { VSpacer } from "../spacer";
26
- import { H6, LabelSmall } from "../typography";
27
+ import { H6, LabelSmall, LabelSmallAlt } from "../typography";
27
28
  import {
28
29
  PressableBaseProps,
29
30
  PressableListItemBase
@@ -118,6 +119,7 @@ export const ListItemTransaction = ({
118
119
  transactionStatus = "success",
119
120
  accessible
120
121
  }: ListItemTransaction) => {
122
+ const { isExperimental } = useIOExperimentalDesign();
121
123
  const theme = useIOTheme();
122
124
 
123
125
  const maybeBadgeText = pipe(
@@ -130,7 +132,10 @@ export const ListItemTransaction = ({
130
132
  return <SkeletonComponent />;
131
133
  }
132
134
 
133
- const designSystemBlue: IOColors = "blueIO-500";
135
+ const interactiveColor: IOColors = isExperimental
136
+ ? theme["interactiveElem-default"]
137
+ : "blue";
138
+
134
139
  const ListItemTransactionContent = () => {
135
140
  const TransactionAmountOrBadgeComponent = () => {
136
141
  switch (transactionStatus) {
@@ -138,7 +143,7 @@ export const ListItemTransaction = ({
138
143
  return (
139
144
  <H6
140
145
  accessibilityLabel={getAccessibleAmountText(transactionAmount)}
141
- color={hasChevronRight ? designSystemBlue : "black"}
146
+ color={hasChevronRight ? interactiveColor : "black"}
142
147
  >
143
148
  {transactionAmount || ""}
144
149
  </H6>
@@ -147,7 +152,7 @@ export const ListItemTransaction = ({
147
152
  return (
148
153
  <H6
149
154
  accessibilityLabel={getAccessibleAmountText(transactionAmount)}
150
- color={hasChevronRight ? designSystemBlue : "success-700"}
155
+ color={hasChevronRight ? interactiveColor : "success-700"}
151
156
  >
152
157
  {transactionAmount || ""}
153
158
  </H6>
@@ -176,9 +181,9 @@ export const ListItemTransaction = ({
176
181
  </View>
177
182
  )}
178
183
  <View style={IOStyles.flex}>
179
- <LabelSmall numberOfLines={2} color={theme["textBody-default"]}>
184
+ <LabelSmallAlt numberOfLines={2} color={theme["textBody-default"]}>
180
185
  {title}
181
- </LabelSmall>
186
+ </LabelSmallAlt>
182
187
  <LabelSmall weight="Regular" color={theme["textBody-tertiary"]}>
183
188
  {subtitle}
184
189
  </LabelSmall>
@@ -188,7 +193,7 @@ export const ListItemTransaction = ({
188
193
  {hasChevronRight && (
189
194
  <Icon
190
195
  name="chevronRightListItem"
191
- color={designSystemBlue}
196
+ color={interactiveColor}
192
197
  size={IOListItemVisualParams.chevronSize}
193
198
  />
194
199
  )}