@pagopa/io-app-design-system 5.0.0-2 → 5.0.0-3

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 (204) hide show
  1. package/lib/commonjs/components/alert/Alert.js.map +1 -1
  2. package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +0 -4
  3. package/lib/commonjs/components/buttons/ButtonOutline.js +8 -8
  4. package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
  5. package/lib/commonjs/components/buttons/IconButton.js +1 -1
  6. package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
  7. package/lib/commonjs/components/buttons/IconButtonContained.js +3 -3
  8. package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -1
  9. package/lib/commonjs/components/icons/Icon.js +2 -2
  10. package/lib/commonjs/components/icons/Icon.js.map +1 -1
  11. package/lib/commonjs/components/icons/README.md +1 -1
  12. package/lib/commonjs/components/layout/HeaderFirstLevel.js +35 -15
  13. package/lib/commonjs/components/layout/HeaderFirstLevel.js.map +1 -1
  14. package/lib/commonjs/components/listitems/ListItemHeader.js +9 -20
  15. package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -1
  16. package/lib/commonjs/components/listitems/ListItemInfo.js +47 -13
  17. package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
  18. package/lib/commonjs/components/listitems/PressableListItemBase.js.map +1 -1
  19. package/lib/commonjs/components/modules/PressableModuleBase.js +10 -2
  20. package/lib/commonjs/components/modules/PressableModuleBase.js.map +1 -1
  21. package/lib/commonjs/components/numberpad/NumberButton.js +12 -2
  22. package/lib/commonjs/components/numberpad/NumberButton.js.map +1 -1
  23. package/lib/commonjs/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
  24. package/lib/commonjs/components/otpInput/OTPInput.js +2 -1
  25. package/lib/commonjs/components/otpInput/OTPInput.js.map +1 -1
  26. package/lib/commonjs/components/pictograms/Pictogram.js +3 -24
  27. package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
  28. package/lib/commonjs/components/pictograms/svg/{PictogramUmbrellaNew.js → PictogramUmbrella.js} +3 -3
  29. package/lib/commonjs/components/pictograms/svg/PictogramUmbrella.js.map +1 -0
  30. package/lib/commonjs/components/searchInput/SearchInput.js +15 -4
  31. package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -1
  32. package/lib/commonjs/components/spacer/Spacer.js +1 -1
  33. package/lib/commonjs/components/spacer/Spacer.js.map +1 -1
  34. package/lib/commonjs/components/textInput/TextInputBase.js +18 -15
  35. package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
  36. package/lib/commonjs/components/textInput/TextInputValidation.js +8 -6
  37. package/lib/commonjs/components/textInput/TextInputValidation.js.map +1 -1
  38. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +7 -7
  39. package/lib/commonjs/components/typography/__test__/typography.test.js +13 -13
  40. package/lib/commonjs/components/typography/__test__/typography.test.js.map +1 -1
  41. package/lib/commonjs/core/IOColors.js +21 -105
  42. package/lib/commonjs/core/IOColors.js.map +1 -1
  43. package/lib/commonjs/core/IOThemeContextProvider.js +14 -9
  44. package/lib/commonjs/core/IOThemeContextProvider.js.map +1 -1
  45. package/lib/module/components/alert/Alert.js.map +1 -1
  46. package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +0 -4
  47. package/lib/module/components/buttons/ButtonOutline.js +8 -8
  48. package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
  49. package/lib/module/components/buttons/IconButton.js +1 -1
  50. package/lib/module/components/buttons/IconButton.js.map +1 -1
  51. package/lib/module/components/buttons/IconButtonContained.js +3 -3
  52. package/lib/module/components/buttons/IconButtonContained.js.map +1 -1
  53. package/lib/module/components/icons/Icon.js +2 -2
  54. package/lib/module/components/icons/Icon.js.map +1 -1
  55. package/lib/module/components/icons/README.md +1 -1
  56. package/lib/module/components/layout/HeaderFirstLevel.js +37 -17
  57. package/lib/module/components/layout/HeaderFirstLevel.js.map +1 -1
  58. package/lib/module/components/listitems/ListItemHeader.js +9 -20
  59. package/lib/module/components/listitems/ListItemHeader.js.map +1 -1
  60. package/lib/module/components/listitems/ListItemInfo.js +48 -15
  61. package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
  62. package/lib/module/components/listitems/PressableListItemBase.js.map +1 -1
  63. package/lib/module/components/modules/PressableModuleBase.js +10 -2
  64. package/lib/module/components/modules/PressableModuleBase.js.map +1 -1
  65. package/lib/module/components/numberpad/NumberButton.js +14 -4
  66. package/lib/module/components/numberpad/NumberButton.js.map +1 -1
  67. package/lib/module/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
  68. package/lib/module/components/otpInput/OTPInput.js +2 -1
  69. package/lib/module/components/otpInput/OTPInput.js.map +1 -1
  70. package/lib/module/components/pictograms/Pictogram.js +2 -22
  71. package/lib/module/components/pictograms/Pictogram.js.map +1 -1
  72. package/lib/module/components/pictograms/svg/{PictogramUmbrellaNew.js → PictogramUmbrella.js} +3 -3
  73. package/lib/module/components/pictograms/svg/PictogramUmbrella.js.map +1 -0
  74. package/lib/module/components/searchInput/SearchInput.js +15 -4
  75. package/lib/module/components/searchInput/SearchInput.js.map +1 -1
  76. package/lib/module/components/spacer/Spacer.js +1 -1
  77. package/lib/module/components/spacer/Spacer.js.map +1 -1
  78. package/lib/module/components/textInput/TextInputBase.js +19 -16
  79. package/lib/module/components/textInput/TextInputBase.js.map +1 -1
  80. package/lib/module/components/textInput/TextInputValidation.js +8 -6
  81. package/lib/module/components/textInput/TextInputValidation.js.map +1 -1
  82. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +7 -7
  83. package/lib/module/components/typography/__test__/typography.test.js +13 -13
  84. package/lib/module/components/typography/__test__/typography.test.js.map +1 -1
  85. package/lib/module/core/IOColors.js +20 -103
  86. package/lib/module/core/IOColors.js.map +1 -1
  87. package/lib/module/core/IOThemeContextProvider.js +12 -8
  88. package/lib/module/core/IOThemeContextProvider.js.map +1 -1
  89. package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
  90. package/lib/typescript/components/layout/HeaderFirstLevel.d.ts +8 -28
  91. package/lib/typescript/components/layout/HeaderFirstLevel.d.ts.map +1 -1
  92. package/lib/typescript/components/listitems/ListItemHeader.d.ts.map +1 -1
  93. package/lib/typescript/components/listitems/ListItemInfo.d.ts +13 -11
  94. package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
  95. package/lib/typescript/components/listitems/PressableListItemBase.d.ts +2 -2
  96. package/lib/typescript/components/listitems/PressableListItemBase.d.ts.map +1 -1
  97. package/lib/typescript/components/modules/PressableModuleBase.d.ts.map +1 -1
  98. package/lib/typescript/components/numberpad/NumberButton.d.ts.map +1 -1
  99. package/lib/typescript/components/otpInput/OTPInput.d.ts.map +1 -1
  100. package/lib/typescript/components/pictograms/Pictogram.d.ts +3 -12
  101. package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
  102. package/lib/typescript/components/pictograms/svg/PictogramUmbrella.d.ts +5 -0
  103. package/lib/typescript/components/pictograms/svg/PictogramUmbrella.d.ts.map +1 -0
  104. package/lib/typescript/components/pictograms/types.d.ts +0 -1
  105. package/lib/typescript/components/pictograms/types.d.ts.map +1 -1
  106. package/lib/typescript/components/searchInput/SearchInput.d.ts.map +1 -1
  107. package/lib/typescript/components/textInput/TextInputBase.d.ts +2 -2
  108. package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
  109. package/lib/typescript/components/textInput/TextInputValidation.d.ts.map +1 -1
  110. package/lib/typescript/components/tooltip/styles.d.ts +2 -2
  111. package/lib/typescript/components/typography/BodyMonospace.d.ts +1 -1
  112. package/lib/typescript/components/typography/ButtonText.d.ts +1 -1
  113. package/lib/typescript/components/typography/Caption.d.ts +1 -1
  114. package/lib/typescript/components/typography/H1.d.ts +1 -1
  115. package/lib/typescript/components/typography/H2.d.ts +1 -1
  116. package/lib/typescript/components/typography/H3.d.ts +1 -1
  117. package/lib/typescript/components/typography/H4.d.ts +1 -1
  118. package/lib/typescript/components/typography/H5.d.ts +1 -1
  119. package/lib/typescript/components/typography/H6.d.ts +1 -1
  120. package/lib/typescript/components/typography/Hero.d.ts +1 -1
  121. package/lib/typescript/components/typography/markdown/MdH1.d.ts +1 -1
  122. package/lib/typescript/components/typography/markdown/MdH2.d.ts +1 -1
  123. package/lib/typescript/components/typography/markdown/MdH3.d.ts +1 -1
  124. package/lib/typescript/core/IOColors.d.ts +1 -40
  125. package/lib/typescript/core/IOColors.d.ts.map +1 -1
  126. package/lib/typescript/core/IOStyles.d.ts +2 -2
  127. package/lib/typescript/core/IOThemeContextProvider.d.ts +6 -6
  128. package/lib/typescript/core/IOThemeContextProvider.d.ts.map +1 -1
  129. package/lib/typescript/utils/fonts.d.ts +1 -1
  130. package/package.json +3 -3
  131. package/src/components/alert/Alert.tsx +3 -2
  132. package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +0 -4
  133. package/src/components/buttons/ButtonOutline.tsx +8 -8
  134. package/src/components/buttons/IconButton.tsx +1 -1
  135. package/src/components/buttons/IconButtonContained.tsx +3 -3
  136. package/src/components/icons/Icon.tsx +2 -2
  137. package/src/components/icons/README.md +1 -1
  138. package/src/components/layout/HeaderFirstLevel.tsx +50 -68
  139. package/src/components/listitems/ListItemHeader.tsx +9 -34
  140. package/src/components/listitems/ListItemInfo.tsx +107 -53
  141. package/src/components/listitems/PressableListItemBase.tsx +3 -2
  142. package/src/components/modules/PressableModuleBase.tsx +15 -4
  143. package/src/components/numberpad/NumberButton.tsx +19 -3
  144. package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
  145. package/src/components/otpInput/OTPInput.tsx +1 -0
  146. package/src/components/pictograms/Pictogram.tsx +2 -24
  147. package/src/components/pictograms/svg/{PictogramUmbrellaNew.tsx → PictogramUmbrella.tsx} +2 -2
  148. package/src/components/pictograms/types.ts +0 -1
  149. package/src/components/searchInput/SearchInput.tsx +25 -3
  150. package/src/components/spacer/Spacer.tsx +1 -1
  151. package/src/components/textInput/TextInputBase.tsx +28 -15
  152. package/src/components/textInput/TextInputValidation.tsx +18 -10
  153. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +7 -7
  154. package/src/components/typography/__test__/typography.test.tsx +18 -16
  155. package/src/core/IOColors.ts +24 -104
  156. package/src/core/IOThemeContextProvider.tsx +25 -15
  157. package/lib/commonjs/components/Advice/Advice.js +0 -42
  158. package/lib/commonjs/components/Advice/Advice.js.map +0 -1
  159. package/lib/commonjs/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +0 -213
  160. package/lib/commonjs/components/Advice/__test__/advice.test.js +0 -26
  161. package/lib/commonjs/components/Advice/__test__/advice.test.js.map +0 -1
  162. package/lib/commonjs/components/Advice/index.js +0 -17
  163. package/lib/commonjs/components/Advice/index.js.map +0 -1
  164. package/lib/commonjs/components/pictograms/svg/PictogramCompleted.js +0 -33
  165. package/lib/commonjs/components/pictograms/svg/PictogramCompleted.js.map +0 -1
  166. package/lib/commonjs/components/pictograms/svg/PictogramProcessing.js +0 -33
  167. package/lib/commonjs/components/pictograms/svg/PictogramProcessing.js.map +0 -1
  168. package/lib/commonjs/components/pictograms/svg/PictogramUmbrellaNew.js.map +0 -1
  169. package/lib/commonjs/components/pictograms/svg/originals/PictogramCompleted.svg +0 -14
  170. package/lib/module/components/Advice/Advice.js +0 -34
  171. package/lib/module/components/Advice/Advice.js.map +0 -1
  172. package/lib/module/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +0 -213
  173. package/lib/module/components/Advice/__test__/advice.test.js +0 -21
  174. package/lib/module/components/Advice/__test__/advice.test.js.map +0 -1
  175. package/lib/module/components/Advice/index.js +0 -2
  176. package/lib/module/components/Advice/index.js.map +0 -1
  177. package/lib/module/components/pictograms/svg/PictogramCompleted.js +0 -25
  178. package/lib/module/components/pictograms/svg/PictogramCompleted.js.map +0 -1
  179. package/lib/module/components/pictograms/svg/PictogramProcessing.js +0 -25
  180. package/lib/module/components/pictograms/svg/PictogramProcessing.js.map +0 -1
  181. package/lib/module/components/pictograms/svg/PictogramUmbrellaNew.js.map +0 -1
  182. package/lib/module/components/pictograms/svg/originals/PictogramCompleted.svg +0 -14
  183. package/lib/typescript/components/Advice/Advice.d.ts +0 -16
  184. package/lib/typescript/components/Advice/Advice.d.ts.map +0 -1
  185. package/lib/typescript/components/Advice/__test__/advice.test.d.ts +0 -2
  186. package/lib/typescript/components/Advice/__test__/advice.test.d.ts.map +0 -1
  187. package/lib/typescript/components/Advice/index.d.ts +0 -2
  188. package/lib/typescript/components/Advice/index.d.ts.map +0 -1
  189. package/lib/typescript/components/pictograms/svg/PictogramCompleted.d.ts +0 -5
  190. package/lib/typescript/components/pictograms/svg/PictogramCompleted.d.ts.map +0 -1
  191. package/lib/typescript/components/pictograms/svg/PictogramProcessing.d.ts +0 -5
  192. package/lib/typescript/components/pictograms/svg/PictogramProcessing.d.ts.map +0 -1
  193. package/lib/typescript/components/pictograms/svg/PictogramUmbrellaNew.d.ts +0 -5
  194. package/lib/typescript/components/pictograms/svg/PictogramUmbrellaNew.d.ts.map +0 -1
  195. package/src/components/Advice/Advice.tsx +0 -42
  196. package/src/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +0 -213
  197. package/src/components/Advice/__test__/advice.test.tsx +0 -22
  198. package/src/components/Advice/index.tsx +0 -1
  199. package/src/components/pictograms/svg/PictogramCompleted.tsx +0 -22
  200. package/src/components/pictograms/svg/PictogramProcessing.tsx +0 -22
  201. package/src/components/pictograms/svg/originals/PictogramCompleted.svg +0 -14
  202. /package/lib/commonjs/components/pictograms/svg/originals/{PictogramUmbrellaNew.svg → PictogramUmbrella.svg} +0 -0
  203. /package/lib/module/components/pictograms/svg/originals/{PictogramUmbrellaNew.svg → PictogramUmbrella.svg} +0 -0
  204. /package/src/components/pictograms/svg/originals/{PictogramUmbrellaNew.svg → PictogramUmbrella.svg} +0 -0
@@ -93,7 +93,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
93
93
  >
94
94
  <Text
95
95
  allowFontScaling={true}
96
- dynamicTypeRamp="title2"
97
96
  maxFontSizeMultiplier={1.5}
98
97
  style={
99
98
  [
@@ -104,7 +103,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
104
103
  "fontSize": 22,
105
104
  "fontStyle": "normal",
106
105
  "fontWeight": "600",
107
- "lineHeight": 33,
106
+ "lineHeight": undefined,
107
+ },
108
+ {
109
+ "textAlignVertical": "center",
108
110
  },
109
111
  ]
110
112
  }
@@ -174,7 +176,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
174
176
  >
175
177
  <Text
176
178
  allowFontScaling={true}
177
- dynamicTypeRamp="title2"
178
179
  maxFontSizeMultiplier={1.5}
179
180
  style={
180
181
  [
@@ -185,7 +186,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
185
186
  "fontSize": 22,
186
187
  "fontStyle": "normal",
187
188
  "fontWeight": "600",
188
- "lineHeight": 33,
189
+ "lineHeight": undefined,
190
+ },
191
+ {
192
+ "textAlignVertical": "center",
189
193
  },
190
194
  ]
191
195
  }
@@ -255,7 +259,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
255
259
  >
256
260
  <Text
257
261
  allowFontScaling={true}
258
- dynamicTypeRamp="title2"
259
262
  maxFontSizeMultiplier={1.5}
260
263
  style={
261
264
  [
@@ -266,7 +269,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
266
269
  "fontSize": 22,
267
270
  "fontStyle": "normal",
268
271
  "fontWeight": "600",
269
- "lineHeight": 33,
272
+ "lineHeight": undefined,
273
+ },
274
+ {
275
+ "textAlignVertical": "center",
270
276
  },
271
277
  ]
272
278
  }
@@ -352,7 +358,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
352
358
  >
353
359
  <Text
354
360
  allowFontScaling={true}
355
- dynamicTypeRamp="title2"
356
361
  maxFontSizeMultiplier={1.5}
357
362
  style={
358
363
  [
@@ -363,7 +368,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
363
368
  "fontSize": 22,
364
369
  "fontStyle": "normal",
365
370
  "fontWeight": "600",
366
- "lineHeight": 33,
371
+ "lineHeight": undefined,
372
+ },
373
+ {
374
+ "textAlignVertical": "center",
367
375
  },
368
376
  ]
369
377
  }
@@ -433,7 +441,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
433
441
  >
434
442
  <Text
435
443
  allowFontScaling={true}
436
- dynamicTypeRamp="title2"
437
444
  maxFontSizeMultiplier={1.5}
438
445
  style={
439
446
  [
@@ -444,7 +451,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
444
451
  "fontSize": 22,
445
452
  "fontStyle": "normal",
446
453
  "fontWeight": "600",
447
- "lineHeight": 33,
454
+ "lineHeight": undefined,
455
+ },
456
+ {
457
+ "textAlignVertical": "center",
448
458
  },
449
459
  ]
450
460
  }
@@ -514,7 +524,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
514
524
  >
515
525
  <Text
516
526
  allowFontScaling={true}
517
- dynamicTypeRamp="title2"
518
527
  maxFontSizeMultiplier={1.5}
519
528
  style={
520
529
  [
@@ -525,7 +534,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
525
534
  "fontSize": 22,
526
535
  "fontStyle": "normal",
527
536
  "fontWeight": "600",
528
- "lineHeight": 33,
537
+ "lineHeight": undefined,
538
+ },
539
+ {
540
+ "textAlignVertical": "center",
529
541
  },
530
542
  ]
531
543
  }
@@ -611,7 +623,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
611
623
  >
612
624
  <Text
613
625
  allowFontScaling={true}
614
- dynamicTypeRamp="title2"
615
626
  maxFontSizeMultiplier={1.5}
616
627
  style={
617
628
  [
@@ -622,7 +633,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
622
633
  "fontSize": 22,
623
634
  "fontStyle": "normal",
624
635
  "fontWeight": "600",
625
- "lineHeight": 33,
636
+ "lineHeight": undefined,
637
+ },
638
+ {
639
+ "textAlignVertical": "center",
626
640
  },
627
641
  ]
628
642
  }
@@ -692,7 +706,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
692
706
  >
693
707
  <Text
694
708
  allowFontScaling={true}
695
- dynamicTypeRamp="title2"
696
709
  maxFontSizeMultiplier={1.5}
697
710
  style={
698
711
  [
@@ -703,7 +716,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
703
716
  "fontSize": 22,
704
717
  "fontStyle": "normal",
705
718
  "fontWeight": "600",
706
- "lineHeight": 33,
719
+ "lineHeight": undefined,
720
+ },
721
+ {
722
+ "textAlignVertical": "center",
707
723
  },
708
724
  ]
709
725
  }
@@ -773,7 +789,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
773
789
  >
774
790
  <Text
775
791
  allowFontScaling={true}
776
- dynamicTypeRamp="title2"
777
792
  maxFontSizeMultiplier={1.5}
778
793
  style={
779
794
  [
@@ -784,7 +799,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
784
799
  "fontSize": 22,
785
800
  "fontStyle": "normal",
786
801
  "fontWeight": "600",
787
- "lineHeight": 33,
802
+ "lineHeight": undefined,
803
+ },
804
+ {
805
+ "textAlignVertical": "center",
788
806
  },
789
807
  ]
790
808
  }
@@ -1011,7 +1029,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
1011
1029
  >
1012
1030
  <Text
1013
1031
  allowFontScaling={true}
1014
- dynamicTypeRamp="title2"
1015
1032
  maxFontSizeMultiplier={1.5}
1016
1033
  style={
1017
1034
  [
@@ -1022,7 +1039,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
1022
1039
  "fontSize": 22,
1023
1040
  "fontStyle": "normal",
1024
1041
  "fontWeight": "600",
1025
- "lineHeight": 33,
1042
+ "lineHeight": undefined,
1043
+ },
1044
+ {
1045
+ "textAlignVertical": "center",
1026
1046
  },
1027
1047
  ]
1028
1048
  }
@@ -149,6 +149,7 @@ export const OTPInput = React.forwardRef<View, Props>(
149
149
  inputAccessoryViewID={inputAccessoryViewID}
150
150
  accessible={true}
151
151
  autoFocus={autoFocus}
152
+ secureTextEntry={true}
152
153
  />
153
154
  {[...Array(length)].map((_, i) => (
154
155
  <BoxedInput
@@ -12,7 +12,6 @@ import PictogramCameraDenied from "./svg/PictogramCameraDenied";
12
12
  import PictogramCameraRequest from "./svg/PictogramCameraRequest";
13
13
  import PictogramCharity from "./svg/PictogramCharity";
14
14
  import PictogramCie from "./svg/PictogramCie";
15
- import PictogramCompleted from "./svg/PictogramCompleted";
16
15
  import PictogramComunicationProblem from "./svg/PictogramComunicationProblem";
17
16
  import PictogramEmpty from "./svg/PictogramEmpty";
18
17
  import PictogramEmptyArchive from "./svg/PictogramEmptyArchive";
@@ -36,12 +35,11 @@ import PictogramObjManual from "./svg/PictogramObjManual";
36
35
  import PictogramObjTrash from "./svg/PictogramObjTrash";
37
36
  import PictogramPasscode from "./svg/PictogramPasscode";
38
37
  import PictogramPayments from "./svg/PictogramPayments";
39
- import PictogramProcessing from "./svg/PictogramProcessing";
40
38
  import PictogramSecurity from "./svg/PictogramSecurity";
41
39
  import PictogramStopSecurity from "./svg/PictogramStopSecurity";
42
40
  import PictogramSuccess from "./svg/PictogramSuccess";
43
41
  import PictogramTime from "./svg/PictogramTime";
44
- import PictogramUmbrellaNew from "./svg/PictogramUmbrellaNew";
42
+ import PictogramUmbrella from "./svg/PictogramUmbrella";
45
43
  import PictogramUpdateOS from "./svg/PictogramUpdateOS";
46
44
  import PictogramWorkInProgress from "./svg/PictogramWorkInProgress";
47
45
  /* Bleed Pictograms */
@@ -117,17 +115,13 @@ import PictogramWalletDoc from "./svg/PictogramWalletDoc";
117
115
  import { SVGPictogramProps } from "./types";
118
116
 
119
117
  export const IOPictograms = {
120
- // Start legacy pictograms //
121
- processing: PictogramProcessing,
122
- completed: PictogramCompleted,
123
- // End legacy pictograms
124
118
  empty: PictogramEmpty,
125
119
  feature: PictogramFeature,
126
120
  charity: PictogramCharity,
127
121
  attention: PictogramAttention,
128
122
  message: PictogramMessage,
129
123
  emptyArchive: PictogramEmptyArchive,
130
- umbrellaNew: PictogramUmbrellaNew,
124
+ umbrella: PictogramUmbrella,
131
125
  feedback: PictogramFeedback,
132
126
  idea: PictogramIdea,
133
127
  cameraRequest: PictogramCameraRequest,
@@ -197,7 +191,6 @@ export type IOPictogramSizeScale = 48 | 64 | 72 | 80 | 120 | 180;
197
191
 
198
192
  type IOPictogramsProps = {
199
193
  name: IOPictograms;
200
- color?: IOColors;
201
194
  /* Not too happy about the API choice,
202
195
  but at least we have the same <StatusBar …>
203
196
  component props. */
@@ -215,7 +208,6 @@ type PictogramPalette = {
215
208
 
216
209
  export const Pictogram = ({
217
210
  name,
218
- color = "aqua",
219
211
  pictogramStyle = "default",
220
212
  size = 120,
221
213
  allowFontScaling = false,
@@ -256,7 +248,6 @@ export const Pictogram = ({
256
248
  <PictogramElement
257
249
  {...props}
258
250
  size={pictogramSize}
259
- color={IOColors[color]}
260
251
  colorValues={colorValues}
261
252
  />
262
253
  );
@@ -365,7 +356,6 @@ export const IOPictogramsBleed: {
365
356
 
366
357
  export const PictogramBleed = ({
367
358
  name,
368
- color = "aqua",
369
359
  size = 80,
370
360
  pictogramStyle = "default",
371
361
  allowFontScaling = false,
@@ -406,7 +396,6 @@ export const PictogramBleed = ({
406
396
  <PictogramElement
407
397
  {...props}
408
398
  size={pictogramSize}
409
- color={IOColors[color]}
410
399
  colorValues={colorValues}
411
400
  />
412
401
  );
@@ -428,14 +417,3 @@ export const IOPictogramsObject = {
428
417
  } as const;
429
418
 
430
419
  export type IOPictogramsObject = keyof typeof IOPictogramsObject;
431
-
432
- /* Legacy pictograms */
433
-
434
- const { processing, completed } = IOPictograms;
435
-
436
- export const IOPictogramsLegacy = {
437
- processing,
438
- completed
439
- } as const;
440
-
441
- export type IOPictogramsLegacy = keyof typeof IOPictogramsLegacy;
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import Svg, { Path } from "react-native-svg";
3
3
  import { SVGPictogramProps } from "../types";
4
4
 
5
- const PictogramUmbrellaNew = ({
5
+ const PictogramUmbrella = ({
6
6
  size,
7
7
  colorValues,
8
8
  ...props
@@ -51,4 +51,4 @@ const PictogramUmbrellaNew = ({
51
51
  </Svg>
52
52
  );
53
53
 
54
- export default PictogramUmbrellaNew;
54
+ export default PictogramUmbrella;
@@ -2,6 +2,5 @@ import { ColorValue } from "react-native";
2
2
 
3
3
  export type SVGPictogramProps = {
4
4
  size: number | "100%";
5
- color: ColorValue;
6
5
  colorValues: Record<string, ColorValue>;
7
6
  };
@@ -37,8 +37,12 @@ import {
37
37
  useIOTheme
38
38
  } from "../../core";
39
39
  import { IOFontSize, makeFontStyleObject } from "../../utils/fonts";
40
- import { ButtonLink } from "../buttons";
41
- import { IOIconSizeScale, Icon } from "../icons";
40
+ import { Icon, IOIconSizeScale } from "../icons";
41
+ import {
42
+ buttonTextFontSize,
43
+ buttonTextLineHeight,
44
+ IOText
45
+ } from "../typography";
42
46
 
43
47
  /* Component visual attributes */
44
48
  const inputPaddingHorizontal: IOSpacingScale = 12;
@@ -287,7 +291,25 @@ export const SearchInput = forwardRef<SearchInputRef, SearchInputProps>(
287
291
  onLayout={getCancelButtonWidth}
288
292
  style={[styles.cancelButton, cancelButtonAnimatedStyle]}
289
293
  >
290
- <ButtonLink label={cancelButtonLabel} onPress={cancel} />
294
+ <Pressable
295
+ accessibilityRole="button"
296
+ accessibilityLabel={cancelButtonLabel}
297
+ onPress={cancel}
298
+ >
299
+ <IOText
300
+ color={theme["interactiveElem-default"]}
301
+ font={newTypefaceEnabled ? "Titillio" : "TitilliumSansPro"}
302
+ weight={"Semibold"}
303
+ size={buttonTextFontSize}
304
+ lineHeight={buttonTextLineHeight}
305
+ numberOfLines={1}
306
+ accessible={false}
307
+ accessibilityElementsHidden
308
+ importantForAccessibility="no-hide-descendants"
309
+ >
310
+ {cancelButtonLabel}
311
+ </IOText>
312
+ </Pressable>
291
313
  </Animated.View>
292
314
  </Animated.View>
293
315
  );
@@ -18,7 +18,7 @@ const DEFAULT_SIZE: IOSpacer = 16;
18
18
 
19
19
  /* Debug Mode */
20
20
  const debugMode = false;
21
- const debugBg = hexToRgba(IOColors.red, 0.2);
21
+ const debugBg = hexToRgba(IOColors["error-600"], 0.2);
22
22
 
23
23
  /**
24
24
  Native `Spacer` component
@@ -1,5 +1,12 @@
1
1
  /* eslint-disable functional/immutable-data */
2
- import React, { useCallback, useEffect, useMemo, useRef } from "react";
2
+ import React, {
3
+ ReactNode,
4
+ useCallback,
5
+ useEffect,
6
+ useMemo,
7
+ useRef,
8
+ useState
9
+ } from "react";
3
10
  import {
4
11
  ColorValue,
5
12
  LayoutChangeEvent,
@@ -46,7 +53,7 @@ type InputTextProps = WithTestID<{
46
53
  inputType?: InputType;
47
54
  status?: InputStatus;
48
55
  icon?: IOIcons;
49
- rightElement?: React.ReactNode;
56
+ rightElement?: ReactNode;
50
57
  counterLimit?: number;
51
58
  bottomMessage?: string;
52
59
  bottomMessageColor?: IOColors;
@@ -67,12 +74,8 @@ const inputLabelScaleFactor: number = 0.75; /* 16pt becomes 12pt */
67
74
  const inputLabelFontSize: IOFontSize = 16;
68
75
  const inputDisabledOpacity: number = 0.5;
69
76
  const inputRightElementMargin: IOSpacingScale = 8;
70
- const iconColor: IOColors = "grey-300";
71
77
  const iconSize: IOIconSizeScale = 24;
72
78
  const iconMargin: IOSpacingScale = 8;
73
- const inputLabelColor: ColorValue = IOColors["grey-700"];
74
- const inputTextColor: ColorValue = IOColors.black;
75
- const inputDisabledTextColor: ColorValue = IOColors["grey-850"];
76
79
 
77
80
  const styles = StyleSheet.create({
78
81
  textInput: {
@@ -124,10 +127,15 @@ const HelperRow = ({
124
127
  value,
125
128
  counterLimit,
126
129
  bottomMessage,
127
- bottomMessageColor = "grey-700"
130
+ bottomMessageColor
128
131
  }: InputTextHelperRow) => {
132
+ const theme = useIOTheme();
129
133
  const valueCount = useMemo(() => value.length, [value]);
130
134
 
135
+ const bottomMessageColorDefault: IOColors = theme["textBody-tertiary"];
136
+ const bottomMessageColorValue =
137
+ bottomMessageColor ?? bottomMessageColorDefault;
138
+
131
139
  const helperRowStyle: ViewStyle = useMemo(() => {
132
140
  if (counterLimit && bottomMessage) {
133
141
  return {
@@ -164,14 +172,14 @@ const HelperRow = ({
164
172
  }
165
173
  >
166
174
  {bottomMessage && (
167
- <BodySmall weight="Regular" color={bottomMessageColor}>
175
+ <BodySmall weight="Regular" color={bottomMessageColorValue}>
168
176
  {bottomMessage}
169
177
  </BodySmall>
170
178
  )}
171
179
  {counterLimit && (
172
180
  <BodySmall
173
181
  weight="Regular"
174
- color="grey-700"
182
+ color={bottomMessageColorValue}
175
183
  >{`${valueCount} / ${counterLimit}`}</BodySmall>
176
184
  )}
177
185
  </View>
@@ -201,18 +209,23 @@ export const TextInputBase = ({
201
209
  }: InputTextProps) => {
202
210
  const inputRef = useRef<TextInput>(null);
203
211
  const isSecretInput = useMemo(() => isPassword, [isPassword]);
204
- const [inputStatus, setInputStatus] = React.useState<InputStatus>(
212
+ const [inputStatus, setInputStatus] = useState<InputStatus>(
205
213
  disabled ? "disabled" : "initial"
206
214
  );
207
215
  const focusedState = useSharedValue<number>(0);
208
216
 
217
+ const { newTypefaceEnabled } = useIONewTypeface();
209
218
  const { dynamicFontScale, spacingScaleMultiplier } = useIOFontDynamicScale();
210
219
 
211
220
  const theme = useIOTheme();
212
- const { newTypefaceEnabled } = useIONewTypeface();
221
+ const iconColor: IOColors = theme["icon-decorative"];
222
+ const inputLabelColor: ColorValue = IOColors[theme["textInputLabel-default"]];
223
+ const inputTextColor: ColorValue = IOColors[theme["textInputValue-default"]];
224
+ const inputDisabledTextColor: ColorValue =
225
+ IOColors[theme["textInputValue-disabled"]];
213
226
 
214
227
  /* Get the label width to enable the correct translation */
215
- const [labelWidth, setLabelWidth] = React.useState<number>(0);
228
+ const [labelWidth, setLabelWidth] = useState<number>(0);
216
229
 
217
230
  const getLabelWidth = ({ nativeEvent }: LayoutChangeEvent) => {
218
231
  setLabelWidth(nativeEvent.layout.width);
@@ -231,10 +244,10 @@ export const TextInputBase = ({
231
244
 
232
245
  const borderColorMap: Record<InputStatus, string> = useMemo(
233
246
  () => ({
234
- initial: IOColors["grey-200"],
235
- disabled: IOColors["grey-200"],
247
+ initial: IOColors[theme["textInputBorder-default"]],
248
+ disabled: IOColors[theme["textInputBorder-default"]],
236
249
  focused: IOColors[theme["interactiveElem-default"]],
237
- error: IOColors["error-600"]
250
+ error: IOColors[theme.errorText]
238
251
  }),
239
252
  [theme]
240
253
  );
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  import { useCallback, useMemo, useState } from "react";
3
3
  import { AccessibilityInfo, View } from "react-native";
4
4
  import Animated from "react-native-reanimated";
5
+ import { useIOTheme } from "../../core";
5
6
  import { IOColors } from "../../core/IOColors";
6
7
  import {
7
8
  enterTransitionInputIcon,
@@ -18,8 +19,8 @@ type TextInputValidationProps = Omit<
18
19
  "rightElement" | "status" | "bottomMessageColor" | "isPassword"
19
20
  > & {
20
21
  /**
21
- * This function can return either a `boolean` or a `ValidationWithOptions` object.
22
- * If a `boolean` is returned and the field is not valid, the value of the errorMessage prop will be displayed/announced.
22
+ * This function can return either a `boolean` or a `ValidationWithOptions` object.
23
+ * If a `boolean` is returned and the field is not valid, the value of the errorMessage prop will be displayed/announced.
23
24
  * If a `ValidationWithOptions` object is returned and the field is not valid, the value displayed/announced will be the one contained within this object.
24
25
  */
25
26
  onValidate: (value: string) => boolean | ValidationWithOptions;
@@ -29,8 +30,14 @@ type TextInputValidationProps = Omit<
29
30
  errorMessage: string;
30
31
  };
31
32
 
32
- function isValidationWithOptions(validation: boolean | ValidationWithOptions): validation is ValidationWithOptions {
33
- return typeof validation === 'object' && 'isValid' in validation && 'errorMessage' in validation;
33
+ function isValidationWithOptions(
34
+ validation: boolean | ValidationWithOptions
35
+ ): validation is ValidationWithOptions {
36
+ return (
37
+ typeof validation === "object" &&
38
+ "isValid" in validation &&
39
+ "errorMessage" in validation
40
+ );
34
41
  }
35
42
 
36
43
  const feedbackIconSize: IOIconSizeScale = 24;
@@ -44,6 +51,7 @@ export const TextInputValidation = ({
44
51
  onFocus,
45
52
  ...props
46
53
  }: TextInputValidationProps) => {
54
+ const theme = useIOTheme();
47
55
  const [isValid, setIsValid] = useState<boolean | undefined>(undefined);
48
56
  const [errMessage, setErrMessage] = useState(errorMessage);
49
57
 
@@ -78,13 +86,13 @@ export const TextInputValidation = ({
78
86
  }, [onFocus]);
79
87
 
80
88
  const labelError = useMemo(
81
- () => (isValid === false && errMessage ? errMessage : bottomMessage),
89
+ () => (!isValid && errMessage ? errMessage : bottomMessage),
82
90
  [isValid, errMessage, bottomMessage]
83
91
  );
84
92
 
85
93
  const labelErrorColor: IOColors | undefined = useMemo(
86
- () => (isValid === false && errMessage ? "error-600" : undefined),
87
- [isValid, errMessage]
94
+ () => (!isValid && errMessage ? theme.errorText : undefined),
95
+ [isValid, errMessage, theme.errorText]
88
96
  );
89
97
 
90
98
  const feedbackIconAttrMap: Record<
@@ -94,14 +102,14 @@ export const TextInputValidation = ({
94
102
  () => ({
95
103
  valid: {
96
104
  name: "success",
97
- color: "green"
105
+ color: theme.successIcon
98
106
  },
99
107
  notValid: {
100
108
  name: "errorFilled",
101
- color: "error-600"
109
+ color: theme.errorIcon
102
110
  }
103
111
  }),
104
- []
112
+ [theme]
105
113
  );
106
114
 
107
115
  const feedbackIcon = useMemo(() => {
@@ -80,7 +80,7 @@ exports[`Test Typography Components BodySmall Snapshot 2`] = `
80
80
  [
81
81
  {},
82
82
  {
83
- "color": "#0073E6",
83
+ "color": "#0B3EE3",
84
84
  "fontFamily": "Titillio",
85
85
  "fontSize": 14,
86
86
  "fontStyle": "normal",
@@ -103,7 +103,7 @@ exports[`Test Typography Components BodySmall Snapshot 3`] = `
103
103
  [
104
104
  {},
105
105
  {
106
- "color": "#475A6D",
106
+ "color": "#555C70",
107
107
  "fontFamily": "Titillio",
108
108
  "fontSize": 14,
109
109
  "fontStyle": "normal",
@@ -126,7 +126,7 @@ exports[`Test Typography Components BodySmall Snapshot 4`] = `
126
126
  [
127
127
  {},
128
128
  {
129
- "color": "#C02927",
129
+ "color": "#D13333",
130
130
  "fontFamily": "Titillio",
131
131
  "fontSize": 14,
132
132
  "fontStyle": "normal",
@@ -286,7 +286,7 @@ exports[`Test Typography Components H3 Snapshot 2`] = `
286
286
  [
287
287
  {},
288
288
  {
289
- "color": "#CCD4DC",
289
+ "color": "#D2D6E3",
290
290
  "fontFamily": "Titillio",
291
291
  "fontSize": 22,
292
292
  "fontStyle": "normal",
@@ -401,7 +401,7 @@ exports[`Test Typography Components H4 Snapshot 2`] = `
401
401
  [
402
402
  {},
403
403
  {
404
- "color": "#0073E6",
404
+ "color": "#0B3EE3",
405
405
  "fontFamily": "Titillio",
406
406
  "fontSize": 20,
407
407
  "fontStyle": "normal",
@@ -476,7 +476,7 @@ exports[`Test Typography Components H5 Snapshot 2`] = `
476
476
  "textTransform": "uppercase",
477
477
  },
478
478
  {
479
- "color": "#475A6D",
479
+ "color": "#555C70",
480
480
  "fontFamily": "Titillio",
481
481
  "fontSize": 14,
482
482
  "fontStyle": "normal",
@@ -502,7 +502,7 @@ exports[`Test Typography Components H5 Snapshot 3`] = `
502
502
  "textTransform": "uppercase",
503
503
  },
504
504
  {
505
- "color": "#0073E6",
505
+ "color": "#0B3EE3",
506
506
  "fontFamily": "Titillio",
507
507
  "fontSize": 14,
508
508
  "fontStyle": "normal",