@pagopa/io-app-design-system 1.18.0 → 1.20.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 (250) hide show
  1. package/lib/commonjs/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +110 -0
  2. package/lib/commonjs/components/Advice/__test__/advice.test.js +9 -0
  3. package/lib/commonjs/components/Advice/__test__/advice.test.js.map +1 -1
  4. package/lib/commonjs/components/accordion/AccordionItem.js +25 -9
  5. package/lib/commonjs/components/accordion/AccordionItem.js.map +1 -1
  6. package/lib/commonjs/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +37 -0
  7. package/lib/commonjs/components/avatar/__test__/avatar.test.js +13 -0
  8. package/lib/commonjs/components/avatar/__test__/avatar.test.js.map +1 -1
  9. package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +46 -0
  10. package/lib/commonjs/components/badge/__test__/badge.test.js +10 -0
  11. package/lib/commonjs/components/badge/__test__/badge.test.js.map +1 -1
  12. package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +315 -0
  13. package/lib/commonjs/components/banner/__test__/banner.test.js +15 -0
  14. package/lib/commonjs/components/banner/__test__/banner.test.js.map +1 -1
  15. package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +862 -0
  16. package/lib/commonjs/components/buttons/__test__/button.test.js +57 -0
  17. package/lib/commonjs/components/buttons/__test__/button.test.js.map +1 -1
  18. package/lib/commonjs/components/endOfPage/EndOfPage.js +36 -0
  19. package/lib/commonjs/components/endOfPage/EndOfPage.js.map +1 -0
  20. package/lib/commonjs/components/endOfPage/index.js +17 -0
  21. package/lib/commonjs/components/endOfPage/index.js.map +1 -0
  22. package/lib/commonjs/components/icons/Icon.js +15 -13
  23. package/lib/commonjs/components/icons/Icon.js.map +1 -1
  24. package/lib/commonjs/components/icons/svg/IconSystemLocationiOS.js +34 -0
  25. package/lib/commonjs/components/icons/svg/IconSystemLocationiOS.js.map +1 -0
  26. package/lib/commonjs/components/icons/svg/IconSystemNotificationsInstructions.js +1 -0
  27. package/lib/commonjs/components/icons/svg/IconSystemNotificationsInstructions.js.map +1 -1
  28. package/lib/commonjs/components/icons/svg/IconSystemPhotosiOS.js +105 -0
  29. package/lib/commonjs/components/icons/svg/IconSystemPhotosiOS.js.map +1 -0
  30. package/lib/commonjs/components/icons/svg/IconSystemPrivacyiOS.js +34 -0
  31. package/lib/commonjs/components/icons/svg/IconSystemPrivacyiOS.js.map +1 -0
  32. package/lib/commonjs/components/icons/svg/originals/IconSystemLocationiOS.svg +7 -0
  33. package/lib/commonjs/components/icons/svg/originals/IconSystemNotificationsInstructions.svg +22 -0
  34. package/lib/commonjs/components/icons/svg/originals/IconSystemPhotosiOS.svg +99 -0
  35. package/lib/commonjs/components/icons/svg/originals/IconSystemPrivacyiOS.svg +14 -0
  36. package/lib/commonjs/components/image/Image.js +47 -0
  37. package/lib/commonjs/components/image/Image.js.map +1 -0
  38. package/lib/commonjs/components/image/index.js +17 -0
  39. package/lib/commonjs/components/image/index.js.map +1 -0
  40. package/lib/commonjs/components/index.js +22 -0
  41. package/lib/commonjs/components/index.js.map +1 -1
  42. package/lib/commonjs/components/layout/HeaderSecondLevel.js +9 -3
  43. package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
  44. package/lib/commonjs/components/listitems/ListItemHeader.js +4 -3
  45. package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -1
  46. package/lib/commonjs/components/listitems/ListItemNav.js +18 -4
  47. package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
  48. package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js +7 -2
  49. package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js.map +1 -1
  50. package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +1733 -4
  51. package/lib/commonjs/components/listitems/__test__/listitem.test.js +83 -3
  52. package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
  53. package/lib/commonjs/components/radio/RadioGroup.js +25 -21
  54. package/lib/commonjs/components/radio/RadioGroup.js.map +1 -1
  55. package/lib/commonjs/components/tabs/TabItem.js +13 -6
  56. package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
  57. package/lib/commonjs/components/typography/LabelHeader.js +6 -4
  58. package/lib/commonjs/components/typography/LabelHeader.js.map +1 -1
  59. package/lib/commonjs/core/IODSExperimentalContextProvider.js +9 -9
  60. package/lib/commonjs/core/IODSExperimentalContextProvider.js.map +1 -1
  61. package/lib/commonjs/utils/testing.js +15 -0
  62. package/lib/commonjs/utils/testing.js.map +1 -0
  63. package/lib/module/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +110 -0
  64. package/lib/module/components/Advice/__test__/advice.test.js +9 -0
  65. package/lib/module/components/Advice/__test__/advice.test.js.map +1 -1
  66. package/lib/module/components/accordion/AccordionItem.js +27 -11
  67. package/lib/module/components/accordion/AccordionItem.js.map +1 -1
  68. package/lib/module/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +37 -0
  69. package/lib/module/components/avatar/__test__/avatar.test.js +13 -0
  70. package/lib/module/components/avatar/__test__/avatar.test.js.map +1 -1
  71. package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +46 -0
  72. package/lib/module/components/badge/__test__/badge.test.js +10 -0
  73. package/lib/module/components/badge/__test__/badge.test.js.map +1 -1
  74. package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +315 -0
  75. package/lib/module/components/banner/__test__/banner.test.js +15 -0
  76. package/lib/module/components/banner/__test__/banner.test.js.map +1 -1
  77. package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +862 -0
  78. package/lib/module/components/buttons/__test__/button.test.js +57 -0
  79. package/lib/module/components/buttons/__test__/button.test.js.map +1 -1
  80. package/lib/module/components/endOfPage/EndOfPage.js +28 -0
  81. package/lib/module/components/endOfPage/EndOfPage.js.map +1 -0
  82. package/lib/module/components/endOfPage/index.js +2 -0
  83. package/lib/module/components/endOfPage/index.js.map +1 -0
  84. package/lib/module/components/icons/Icon.js +15 -13
  85. package/lib/module/components/icons/Icon.js.map +1 -1
  86. package/lib/module/components/icons/svg/IconSystemLocationiOS.js +26 -0
  87. package/lib/module/components/icons/svg/IconSystemLocationiOS.js.map +1 -0
  88. package/lib/module/components/icons/svg/IconSystemNotificationsInstructions.js +2 -1
  89. package/lib/module/components/icons/svg/IconSystemNotificationsInstructions.js.map +1 -1
  90. package/lib/module/components/icons/svg/IconSystemPhotosiOS.js +97 -0
  91. package/lib/module/components/icons/svg/IconSystemPhotosiOS.js.map +1 -0
  92. package/lib/module/components/icons/svg/IconSystemPrivacyiOS.js +26 -0
  93. package/lib/module/components/icons/svg/IconSystemPrivacyiOS.js.map +1 -0
  94. package/lib/module/components/icons/svg/originals/IconSystemLocationiOS.svg +7 -0
  95. package/lib/module/components/icons/svg/originals/IconSystemNotificationsInstructions.svg +22 -0
  96. package/lib/module/components/icons/svg/originals/IconSystemPhotosiOS.svg +99 -0
  97. package/lib/module/components/icons/svg/originals/IconSystemPrivacyiOS.svg +14 -0
  98. package/lib/module/components/image/Image.js +39 -0
  99. package/lib/module/components/image/Image.js.map +1 -0
  100. package/lib/module/components/image/index.js +2 -0
  101. package/lib/module/components/image/index.js.map +1 -0
  102. package/lib/module/components/index.js +2 -0
  103. package/lib/module/components/index.js.map +1 -1
  104. package/lib/module/components/layout/HeaderSecondLevel.js +9 -3
  105. package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -1
  106. package/lib/module/components/listitems/ListItemHeader.js +4 -3
  107. package/lib/module/components/listitems/ListItemHeader.js.map +1 -1
  108. package/lib/module/components/listitems/ListItemNav.js +20 -6
  109. package/lib/module/components/listitems/ListItemNav.js.map +1 -1
  110. package/lib/module/components/listitems/ListItemRadioWithAmount.js +7 -2
  111. package/lib/module/components/listitems/ListItemRadioWithAmount.js.map +1 -1
  112. package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +1733 -4
  113. package/lib/module/components/listitems/__test__/listitem.test.js +83 -3
  114. package/lib/module/components/listitems/__test__/listitem.test.js.map +1 -1
  115. package/lib/module/components/radio/RadioGroup.js +25 -21
  116. package/lib/module/components/radio/RadioGroup.js.map +1 -1
  117. package/lib/module/components/tabs/TabItem.js +13 -6
  118. package/lib/module/components/tabs/TabItem.js.map +1 -1
  119. package/lib/module/components/typography/LabelHeader.js +6 -4
  120. package/lib/module/components/typography/LabelHeader.js.map +1 -1
  121. package/lib/module/core/IODSExperimentalContextProvider.js +3 -3
  122. package/lib/module/core/IODSExperimentalContextProvider.js.map +1 -1
  123. package/lib/module/utils/testing.js +7 -0
  124. package/lib/module/utils/testing.js.map +1 -0
  125. package/lib/typescript/components/accordion/AccordionItem.d.ts +3 -1
  126. package/lib/typescript/components/accordion/AccordionItem.d.ts.map +1 -1
  127. package/lib/typescript/components/endOfPage/EndOfPage.d.ts +23 -0
  128. package/lib/typescript/components/endOfPage/EndOfPage.d.ts.map +1 -0
  129. package/lib/typescript/components/endOfPage/index.d.ts +2 -0
  130. package/lib/typescript/components/endOfPage/index.d.ts.map +1 -0
  131. package/lib/typescript/components/icons/Icon.d.ts +6 -5
  132. package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
  133. package/lib/typescript/components/icons/svg/IconSystemLocationiOS.d.ts +5 -0
  134. package/lib/typescript/components/icons/svg/IconSystemLocationiOS.d.ts.map +1 -0
  135. package/lib/typescript/components/icons/svg/IconSystemNotificationsInstructions.d.ts.map +1 -1
  136. package/lib/typescript/components/icons/svg/IconSystemPhotosiOS.d.ts +5 -0
  137. package/lib/typescript/components/icons/svg/IconSystemPhotosiOS.d.ts.map +1 -0
  138. package/lib/typescript/components/icons/svg/IconSystemPrivacyiOS.d.ts +5 -0
  139. package/lib/typescript/components/icons/svg/IconSystemPrivacyiOS.d.ts.map +1 -0
  140. package/lib/typescript/components/image/Image.d.ts +17 -0
  141. package/lib/typescript/components/image/Image.d.ts.map +1 -0
  142. package/lib/typescript/components/image/index.d.ts +2 -0
  143. package/lib/typescript/components/image/index.d.ts.map +1 -0
  144. package/lib/typescript/components/index.d.ts +2 -0
  145. package/lib/typescript/components/index.d.ts.map +1 -1
  146. package/lib/typescript/components/layout/HeaderSecondLevel.d.ts +10 -4
  147. package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -1
  148. package/lib/typescript/components/listitems/ListItemHeader.d.ts +2 -2
  149. package/lib/typescript/components/listitems/ListItemHeader.d.ts.map +1 -1
  150. package/lib/typescript/components/listitems/ListItemNav.d.ts +9 -2
  151. package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
  152. package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts +1 -0
  153. package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts.map +1 -1
  154. package/lib/typescript/components/radio/RadioGroup.d.ts +22 -9
  155. package/lib/typescript/components/radio/RadioGroup.d.ts.map +1 -1
  156. package/lib/typescript/components/tabs/TabItem.d.ts +2 -1
  157. package/lib/typescript/components/tabs/TabItem.d.ts.map +1 -1
  158. package/lib/typescript/components/typography/LabelHeader.d.ts +1 -1
  159. package/lib/typescript/components/typography/LabelHeader.d.ts.map +1 -1
  160. package/lib/typescript/core/IODSExperimentalContextProvider.d.ts +5 -1
  161. package/lib/typescript/core/IODSExperimentalContextProvider.d.ts.map +1 -1
  162. package/lib/typescript/utils/testing.d.ts +4 -0
  163. package/lib/typescript/utils/testing.d.ts.map +1 -0
  164. package/package.json +1 -5
  165. package/src/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +110 -0
  166. package/src/components/Advice/__test__/advice.test.tsx +10 -0
  167. package/src/components/accordion/AccordionItem.tsx +33 -13
  168. package/src/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +37 -0
  169. package/src/components/avatar/__test__/avatar.test.tsx +10 -0
  170. package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +46 -0
  171. package/src/components/badge/__test__/badge.test.tsx +10 -0
  172. package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +315 -0
  173. package/src/components/banner/__test__/banner.test.tsx +18 -0
  174. package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +862 -0
  175. package/src/components/buttons/__test__/button.test.tsx +77 -1
  176. package/src/components/endOfPage/EndOfPage.tsx +55 -0
  177. package/src/components/endOfPage/index.tsx +1 -0
  178. package/src/components/icons/Icon.tsx +15 -13
  179. package/src/components/icons/svg/IconSystemLocationiOS.tsx +15 -0
  180. package/src/components/icons/svg/IconSystemNotificationsInstructions.tsx +2 -1
  181. package/src/components/icons/svg/IconSystemPhotosiOS.tsx +114 -0
  182. package/src/components/icons/svg/IconSystemPrivacyiOS.tsx +15 -0
  183. package/src/components/icons/svg/originals/IconSystemLocationiOS.svg +7 -0
  184. package/src/components/icons/svg/originals/IconSystemNotificationsInstructions.svg +22 -0
  185. package/src/components/icons/svg/originals/IconSystemPhotosiOS.svg +99 -0
  186. package/src/components/icons/svg/originals/IconSystemPrivacyiOS.svg +14 -0
  187. package/src/components/image/Image.tsx +49 -0
  188. package/src/components/image/index.tsx +1 -0
  189. package/src/components/index.tsx +2 -0
  190. package/src/components/layout/HeaderSecondLevel.tsx +28 -10
  191. package/src/components/listitems/ListItemHeader.tsx +6 -3
  192. package/src/components/listitems/ListItemNav.tsx +35 -9
  193. package/src/components/listitems/ListItemRadioWithAmount.tsx +6 -2
  194. package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +1733 -4
  195. package/src/components/listitems/__test__/listitem.test.tsx +104 -3
  196. package/src/components/radio/RadioGroup.tsx +61 -11
  197. package/src/components/tabs/TabItem.tsx +22 -6
  198. package/src/components/typography/LabelHeader.tsx +11 -6
  199. package/src/core/IODSExperimentalContextProvider.tsx +3 -3
  200. package/src/utils/testing.tsx +14 -0
  201. package/lib/commonjs/components/icons/svg/IconAgreement.js +0 -32
  202. package/lib/commonjs/components/icons/svg/IconAgreement.js.map +0 -1
  203. package/lib/commonjs/components/icons/svg/IconDocument.js +0 -34
  204. package/lib/commonjs/components/icons/svg/IconDocument.js.map +0 -1
  205. package/lib/commonjs/components/icons/svg/IconDocumentSign.js +0 -42
  206. package/lib/commonjs/components/icons/svg/IconDocumentSign.js.map +0 -1
  207. package/lib/commonjs/components/icons/svg/IconProfileAlt.js +0 -29
  208. package/lib/commonjs/components/icons/svg/IconProfileAlt.js.map +0 -1
  209. package/lib/commonjs/components/icons/svg/IconProfileFilled.js +0 -31
  210. package/lib/commonjs/components/icons/svg/IconProfileFilled.js.map +0 -1
  211. package/lib/commonjs/components/icons/svg/originals/IconAgreement.svg +0 -10
  212. package/lib/commonjs/components/icons/svg/originals/IconDocument.svg +0 -12
  213. package/lib/commonjs/components/icons/svg/originals/IconDocumentSign.svg +0 -22
  214. package/lib/commonjs/components/icons/svg/originals/IconProfileAlt.svg +0 -6
  215. package/lib/commonjs/components/icons/svg/originals/IconProfileFilled.svg +0 -8
  216. package/lib/module/components/icons/svg/IconAgreement.js +0 -24
  217. package/lib/module/components/icons/svg/IconAgreement.js.map +0 -1
  218. package/lib/module/components/icons/svg/IconDocument.js +0 -26
  219. package/lib/module/components/icons/svg/IconDocument.js.map +0 -1
  220. package/lib/module/components/icons/svg/IconDocumentSign.js +0 -34
  221. package/lib/module/components/icons/svg/IconDocumentSign.js.map +0 -1
  222. package/lib/module/components/icons/svg/IconProfileAlt.js +0 -21
  223. package/lib/module/components/icons/svg/IconProfileAlt.js.map +0 -1
  224. package/lib/module/components/icons/svg/IconProfileFilled.js +0 -23
  225. package/lib/module/components/icons/svg/IconProfileFilled.js.map +0 -1
  226. package/lib/module/components/icons/svg/originals/IconAgreement.svg +0 -10
  227. package/lib/module/components/icons/svg/originals/IconDocument.svg +0 -12
  228. package/lib/module/components/icons/svg/originals/IconDocumentSign.svg +0 -22
  229. package/lib/module/components/icons/svg/originals/IconProfileAlt.svg +0 -6
  230. package/lib/module/components/icons/svg/originals/IconProfileFilled.svg +0 -8
  231. package/lib/typescript/components/icons/svg/IconAgreement.d.ts +0 -5
  232. package/lib/typescript/components/icons/svg/IconAgreement.d.ts.map +0 -1
  233. package/lib/typescript/components/icons/svg/IconDocument.d.ts +0 -5
  234. package/lib/typescript/components/icons/svg/IconDocument.d.ts.map +0 -1
  235. package/lib/typescript/components/icons/svg/IconDocumentSign.d.ts +0 -5
  236. package/lib/typescript/components/icons/svg/IconDocumentSign.d.ts.map +0 -1
  237. package/lib/typescript/components/icons/svg/IconProfileAlt.d.ts +0 -5
  238. package/lib/typescript/components/icons/svg/IconProfileAlt.d.ts.map +0 -1
  239. package/lib/typescript/components/icons/svg/IconProfileFilled.d.ts +0 -5
  240. package/lib/typescript/components/icons/svg/IconProfileFilled.d.ts.map +0 -1
  241. package/src/components/icons/svg/IconAgreement.tsx +0 -18
  242. package/src/components/icons/svg/IconDocument.tsx +0 -20
  243. package/src/components/icons/svg/IconDocumentSign.tsx +0 -30
  244. package/src/components/icons/svg/IconProfileAlt.tsx +0 -14
  245. package/src/components/icons/svg/IconProfileFilled.tsx +0 -16
  246. package/src/components/icons/svg/originals/IconAgreement.svg +0 -10
  247. package/src/components/icons/svg/originals/IconDocument.svg +0 -12
  248. package/src/components/icons/svg/originals/IconDocumentSign.svg +0 -22
  249. package/src/components/icons/svg/originals/IconProfileAlt.svg +0 -6
  250. package/src/components/icons/svg/originals/IconProfileFilled.svg +0 -8
@@ -1,5 +1,320 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`Test Banner Components - Experimental Enabled Banner Snapshot 1`] = `
4
+ <View
5
+ accessibilityState={
6
+ {
7
+ "busy": undefined,
8
+ "checked": undefined,
9
+ "disabled": undefined,
10
+ "expanded": undefined,
11
+ "selected": undefined,
12
+ }
13
+ }
14
+ accessibilityValue={
15
+ {
16
+ "max": undefined,
17
+ "min": undefined,
18
+ "now": undefined,
19
+ "text": undefined,
20
+ }
21
+ }
22
+ accessible={false}
23
+ collapsable={false}
24
+ focusable={true}
25
+ onBlur={[Function]}
26
+ onClick={[Function]}
27
+ onFocus={[Function]}
28
+ onResponderGrant={[Function]}
29
+ onResponderMove={[Function]}
30
+ onResponderRelease={[Function]}
31
+ onResponderTerminate={[Function]}
32
+ onResponderTerminationRequest={[Function]}
33
+ onStartShouldSetResponder={[Function]}
34
+ >
35
+ <View
36
+ style={
37
+ [
38
+ {
39
+ "alignContent": "center",
40
+ "alignItems": "flex-start",
41
+ "borderRadius": 8,
42
+ "flexDirection": "row",
43
+ },
44
+ {
45
+ "backgroundColor": "#F4F5F8",
46
+ "paddingHorizontal": 16,
47
+ "paddingVertical": 16,
48
+ },
49
+ {
50
+ "transform": [
51
+ {
52
+ "scale": undefined,
53
+ },
54
+ ],
55
+ },
56
+ ]
57
+ }
58
+ >
59
+ <View
60
+ accessibilityRole="button"
61
+ accessible={true}
62
+ style={
63
+ [
64
+ {
65
+ "flex": 1,
66
+ },
67
+ {
68
+ "alignSelf": "center",
69
+ },
70
+ ]
71
+ }
72
+ >
73
+ <Text
74
+ allowFontScaling={false}
75
+ color="blueIO-850"
76
+ defaultColor="black"
77
+ defaultWeight="Regular"
78
+ font="ReadexPro"
79
+ fontStyle={
80
+ {
81
+ "fontSize": 16,
82
+ "lineHeight": 24,
83
+ }
84
+ }
85
+ style={
86
+ [
87
+ {
88
+ "fontSize": 16,
89
+ "lineHeight": 24,
90
+ },
91
+ {
92
+ "color": "#031344",
93
+ "fontFamily": "Readex Pro",
94
+ "fontStyle": "normal",
95
+ "fontWeight": "400",
96
+ },
97
+ ]
98
+ }
99
+ weight="Regular"
100
+ >
101
+ Banner title
102
+ </Text>
103
+ <View
104
+ style={
105
+ {
106
+ "height": 4,
107
+ }
108
+ }
109
+ />
110
+ <View
111
+ pointerEvents="none"
112
+ >
113
+ <View
114
+ style={
115
+ {
116
+ "height": 4,
117
+ }
118
+ }
119
+ />
120
+ <View
121
+ accessibilityRole="button"
122
+ accessibilityState={
123
+ {
124
+ "busy": undefined,
125
+ "checked": undefined,
126
+ "disabled": false,
127
+ "expanded": undefined,
128
+ "selected": undefined,
129
+ }
130
+ }
131
+ accessibilityValue={
132
+ {
133
+ "max": undefined,
134
+ "min": undefined,
135
+ "now": undefined,
136
+ "text": undefined,
137
+ }
138
+ }
139
+ accessible={true}
140
+ collapsable={false}
141
+ focusable={true}
142
+ hitSlop={
143
+ {
144
+ "bottom": 14,
145
+ "left": 24,
146
+ "right": 24,
147
+ "top": 14,
148
+ }
149
+ }
150
+ onBlur={[Function]}
151
+ onClick={[Function]}
152
+ onFocus={[Function]}
153
+ onResponderGrant={[Function]}
154
+ onResponderMove={[Function]}
155
+ onResponderRelease={[Function]}
156
+ onResponderTerminate={[Function]}
157
+ onResponderTerminationRequest={[Function]}
158
+ onStartShouldSetResponder={[Function]}
159
+ onTouchEnd={[Function]}
160
+ style={
161
+ {
162
+ "alignSelf": "flex-start",
163
+ }
164
+ }
165
+ >
166
+ <View
167
+ style={
168
+ [
169
+ {
170
+ "alignItems": "center",
171
+ "elevation": 0,
172
+ "flexDirection": "row",
173
+ "justifyContent": "center",
174
+ "textAlignVertical": "center",
175
+ },
176
+ false,
177
+ {},
178
+ {
179
+ "transform": [
180
+ {
181
+ "scale": undefined,
182
+ },
183
+ ],
184
+ },
185
+ ]
186
+ }
187
+ >
188
+ <Text
189
+ allowFontScaling={true}
190
+ ellipsizeMode="tail"
191
+ maxFontSizeMultiplier={1.3}
192
+ numberOfLines={1}
193
+ style={
194
+ [
195
+ {
196
+ "fontFamily": "Readex Pro",
197
+ "fontSize": 16,
198
+ "fontStyle": "normal",
199
+ "fontWeight": "400",
200
+ },
201
+ {
202
+ "color": "#0B3EE3",
203
+ },
204
+ {
205
+ "color": undefined,
206
+ },
207
+ ]
208
+ }
209
+ >
210
+ Action text
211
+ </Text>
212
+ </View>
213
+ </View>
214
+ </View>
215
+ </View>
216
+ <View
217
+ style={
218
+ [
219
+ {
220
+ "marginRight": -16,
221
+ },
222
+ {
223
+ "alignSelf": "center",
224
+ },
225
+ ]
226
+ }
227
+ >
228
+ <RNSVGSvgView
229
+ align="xMidYMid"
230
+ bbHeight={80}
231
+ bbWidth={80}
232
+ color={4278240714}
233
+ focusable={false}
234
+ height={80}
235
+ meetOrSlice={0}
236
+ minX={0}
237
+ minY={0}
238
+ style={
239
+ [
240
+ {
241
+ "backgroundColor": "transparent",
242
+ "borderWidth": 0,
243
+ },
244
+ {
245
+ "flex": 0,
246
+ "height": 80,
247
+ "width": 80,
248
+ },
249
+ ]
250
+ }
251
+ tintColor={4278240714}
252
+ vbHeight={240}
253
+ vbWidth={240}
254
+ width={80}
255
+ >
256
+ <RNSVGGroup>
257
+ <RNSVGPath
258
+ d="M133.46 173.8c-2.88 0-5.61-1.57-7.03-4.28-1.01-1.92-1.2-4.11-.53-6.18.66-2.04 2.07-3.69 3.98-4.64 6.87-3.44 17.93-6.91 24.11-8.73-2.58-2.4-4.34-6.01-4.32-9.54 0-2.68 1.14-9.19 11.43-11.65 16.11-3.86 78.12 18.71 80.75 19.67l-1.37 3.76c-.16-.06-16.14-5.89-33.81-11.18-29.21-8.75-40.4-9.37-44.64-8.36-5.38 1.29-8.35 4.05-8.36 7.77-.01 3.88 3.08 7.55 5.86 8.23.88.22 1.51 1.01 1.52 1.92 0 .91-.6 1.71-1.48 1.95-.18.05-18.53 5.04-27.9 9.73-.94.47-1.64 1.28-1.96 2.29-.33 1.03-.24 2.13.27 3.09.96 1.83 3.13 2.61 5.04 1.82 9.17-3.8 21.12-8.32 26.15-8.25l-.06 4h-.08c-3.38 0-12.29 2.89-24.47 7.94-1.01.42-2.05.62-3.08.62l-.02.02Z"
259
+ fill={4278927075}
260
+ propList={
261
+ [
262
+ "fill",
263
+ ]
264
+ }
265
+ />
266
+ <RNSVGPath
267
+ d="M137.37 190.23c-3.78 0-7.45-2.01-9.39-5.54-2.16-3.92-1.62-8.82 1.33-12.19l1.47-1.68 3.01 2.63-1.47 1.68c-1.84 2.11-2.18 5.17-.83 7.63 1.76 3.21 5.81 4.41 9.02 2.67 12.01-6.5 20.08-9.56 23.94-9.11l-.47 3.97c-2.88-.34-10.93 2.9-21.57 8.66-1.6.87-3.33 1.28-5.04 1.28Z"
268
+ fill={4278927075}
269
+ propList={
270
+ [
271
+ "fill",
272
+ ]
273
+ }
274
+ />
275
+ <RNSVGPath
276
+ d="M240.29 213.7c-39.81-19.17-81.44-13.87-92.88-10.51-2.82.83-5.84.2-8.1-1.68-2.34-1.95-3.52-5.04-3.07-8.05l.77-5.2 3.96.59-.77 5.2c-.25 1.64.4 3.33 1.67 4.39 1.23 1.03 2.88 1.37 4.41.92 11.83-3.48 54.81-8.97 95.75 10.74l-1.73 3.6h-.01ZM169.508 150.199l-.698 3.939 10.348 1.834.698-3.939-10.348-1.834Z"
277
+ fill={4278927075}
278
+ propList={
279
+ [
280
+ "fill",
281
+ ]
282
+ }
283
+ />
284
+ <RNSVGPath
285
+ d="M191.07 170.8c-10.44-5.97-15.77-22.75-15.99-23.46l3.82-1.19c.05.16 5.09 15.99 14.16 21.18l-1.99 3.47ZM163.258 156.644l-3.982.38 2.844 29.854 3.982-.379-2.844-29.855Z"
286
+ fill={4278927075}
287
+ propList={
288
+ [
289
+ "fill",
290
+ ]
291
+ }
292
+ />
293
+ <RNSVGPath
294
+ d="M133.75 39.82c-4.15-4.68-9.41-8.27-15.31-10.44-5.9-2.18-12.26-2.88-18.5099-2.03-3.78.51-7.45 1.58-10.89 3.15-4.49 2.05-7.86 5.81-10.65 9.88l-3.1 4.53c-3.74-2.62-7.92-4.57-12.35-5.72-4.86-1.26-9.92-1.56-14.89-.88-4.97.68-9.77 2.33-14.1 4.86-4.33 2.52-8.13 5.87-11.16 9.85-3.04 3.98-5.25 8.52-6.53 13.35-1.28 4.83-1.59 9.87-.91 14.81.68 4.95 2.34 9.71 4.87 14.02 2.53 4.31 5.9 8.08 9.89 11.09L103.6 145.21l26.72-45.64 10.54-20.04c1.85-4.42 3.76-12.92 1.34-23.34-1.41-6.07-4.32-11.7-8.47-16.38l.02.01Z"
295
+ fill={4289392367}
296
+ propList={
297
+ [
298
+ "fill",
299
+ ]
300
+ }
301
+ />
302
+ <RNSVGPath
303
+ d="M25.2295 81.79c-.79 0-1.45-.62-1.5-1.42-1.37-25.26 18.17-33.75 28.7-34.71.83-.08 1.55.53 1.63 1.36.08.83-.53 1.55-1.35 1.63-1.12.11-27.54 2.92-25.98 31.56.04.83-.59 1.53-1.42 1.58h-.08Z"
304
+ fill={4278240714}
305
+ propList={
306
+ [
307
+ "fill",
308
+ ]
309
+ }
310
+ />
311
+ </RNSVGGroup>
312
+ </RNSVGSvgView>
313
+ </View>
314
+ </View>
315
+ </View>
316
+ `;
317
+
3
318
  exports[`Test Banner Components Banner Snapshot 1`] = `
4
319
  <View
5
320
  accessibilityState={
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { Alert, View } from "react-native";
3
3
  import * as TestRenderer from "react-test-renderer";
4
+ import { TestRendererWithExperimentalEnabledContextProvider } from "../../../utils/testing";
4
5
  import { Banner } from "../Banner";
5
6
 
6
7
  const viewRef = React.createRef<View>();
@@ -24,3 +25,20 @@ describe("Test Banner Components", () => {
24
25
  expect(advice).toMatchSnapshot();
25
26
  });
26
27
  });
28
+
29
+ describe("Test Banner Components - Experimental Enabled", () => {
30
+ it("Banner Snapshot", () => {
31
+ const advice = TestRendererWithExperimentalEnabledContextProvider(
32
+ <Banner
33
+ viewRef={viewRef}
34
+ color="neutral"
35
+ size="big"
36
+ title="Banner title"
37
+ pictogramName="charity"
38
+ action="Action text"
39
+ onPress={onLinkPress}
40
+ />
41
+ ).toJSON();
42
+ expect(advice).toMatchSnapshot();
43
+ });
44
+ });