@pagopa/io-app-design-system 2.1.0-3 → 2.1.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 (204) hide show
  1. package/lib/commonjs/components/alert/Alert.js +12 -5
  2. package/lib/commonjs/components/alert/Alert.js.map +1 -1
  3. package/lib/commonjs/components/banner/Banner.js +5 -1
  4. package/lib/commonjs/components/banner/Banner.js.map +1 -1
  5. package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -0
  6. package/lib/commonjs/components/banner/__test__/banner.test.js +4 -2
  7. package/lib/commonjs/components/banner/__test__/banner.test.js.map +1 -1
  8. package/lib/commonjs/components/codeInput/CodeInput.js +1 -1
  9. package/lib/commonjs/components/common/LogoPaymentWithFallback.js +20 -11
  10. package/lib/commonjs/components/common/LogoPaymentWithFallback.js.map +1 -1
  11. package/lib/commonjs/components/icons/Icon.js +6 -2
  12. package/lib/commonjs/components/icons/Icon.js.map +1 -1
  13. package/lib/commonjs/components/icons/svg/IconNavQrWallet.js +28 -0
  14. package/lib/commonjs/components/icons/svg/IconNavQrWallet.js.map +1 -0
  15. package/lib/commonjs/components/icons/svg/originals/IconNavQrWallet.svg +1 -0
  16. package/lib/commonjs/components/listitems/ListItemInfo.js +6 -4
  17. package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
  18. package/lib/commonjs/components/listitems/ListItemTransaction.js +27 -25
  19. package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
  20. package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +0 -10
  21. package/lib/commonjs/components/listitems/__test__/listitem.test.js +10 -4
  22. package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
  23. package/lib/commonjs/components/modules/ModuleIDP.js +2 -9
  24. package/lib/commonjs/components/modules/ModuleIDP.js.map +1 -1
  25. package/lib/commonjs/components/modules/ModulePaymentNotice.js +8 -6
  26. package/lib/commonjs/components/modules/ModulePaymentNotice.js.map +1 -1
  27. package/lib/commonjs/components/otpInput/BoxedInput.js +1 -1
  28. package/lib/commonjs/components/pictograms/Pictogram.js +4 -0
  29. package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
  30. package/lib/commonjs/components/pictograms/svg/PictogramEmptyWallet.js +43 -0
  31. package/lib/commonjs/components/pictograms/svg/PictogramEmptyWallet.js.map +1 -0
  32. package/lib/commonjs/components/pictograms/svg/PictogramMeterLimit.js +46 -0
  33. package/lib/commonjs/components/pictograms/svg/PictogramMeterLimit.js.map +1 -0
  34. package/lib/commonjs/components/pictograms/svg/originals/PictogramEmptyWallet.svg +1 -0
  35. package/lib/commonjs/components/pictograms/svg/originals/PictogramMeterLimit.svg +1 -0
  36. package/lib/commonjs/components/tag/Tag.js +4 -11
  37. package/lib/commonjs/components/tag/Tag.js.map +1 -1
  38. package/lib/commonjs/components/typography/ComposedBodyFromArray.js +26 -0
  39. package/lib/commonjs/components/typography/ComposedBodyFromArray.js.map +1 -0
  40. package/lib/commonjs/components/typography/H2.js +2 -2
  41. package/lib/commonjs/components/typography/IOText.js +4 -2
  42. package/lib/commonjs/components/typography/IOText.js.map +1 -1
  43. package/lib/commonjs/components/typography/__test__/ComposedBodyFromArray.test.js +107 -0
  44. package/lib/commonjs/components/typography/__test__/ComposedBodyFromArray.test.js.map +1 -0
  45. package/lib/commonjs/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +895 -0
  46. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +1 -1
  47. package/lib/commonjs/components/typography/index.js +11 -0
  48. package/lib/commonjs/components/typography/index.js.map +1 -1
  49. package/lib/commonjs/core/IODSExperimentalContextProvider.js +1 -2
  50. package/lib/commonjs/core/IODSExperimentalContextProvider.js.map +1 -1
  51. package/lib/commonjs/core/IOThemeContextProvider.js +1 -2
  52. package/lib/commonjs/core/IOThemeContextProvider.js.map +1 -1
  53. package/lib/commonjs/utils/accessibility.js +1 -14
  54. package/lib/commonjs/utils/accessibility.js.map +1 -1
  55. package/lib/commonjs/utils/image.js +23 -14
  56. package/lib/commonjs/utils/image.js.map +1 -1
  57. package/lib/commonjs/utils/object.js +10 -5
  58. package/lib/commonjs/utils/object.js.map +1 -1
  59. package/lib/module/components/alert/Alert.js +14 -7
  60. package/lib/module/components/alert/Alert.js.map +1 -1
  61. package/lib/module/components/banner/Banner.js +5 -1
  62. package/lib/module/components/banner/Banner.js.map +1 -1
  63. package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -0
  64. package/lib/module/components/banner/__test__/banner.test.js +4 -2
  65. package/lib/module/components/banner/__test__/banner.test.js.map +1 -1
  66. package/lib/module/components/codeInput/CodeInput.js +1 -1
  67. package/lib/module/components/common/LogoPaymentWithFallback.js +20 -11
  68. package/lib/module/components/common/LogoPaymentWithFallback.js.map +1 -1
  69. package/lib/module/components/featureInfo/FeatureInfo.js.map +1 -1
  70. package/lib/module/components/icons/Icon.js +7 -3
  71. package/lib/module/components/icons/Icon.js.map +1 -1
  72. package/lib/module/components/icons/svg/IconNavQrWallet.js +20 -0
  73. package/lib/module/components/icons/svg/IconNavQrWallet.js.map +1 -0
  74. package/lib/module/components/icons/svg/originals/IconNavQrWallet.svg +1 -0
  75. package/lib/module/components/listitems/ListItemInfo.js +6 -4
  76. package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
  77. package/lib/module/components/listitems/ListItemTransaction.js +27 -23
  78. package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
  79. package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +0 -10
  80. package/lib/module/components/listitems/__test__/listitem.test.js +10 -4
  81. package/lib/module/components/listitems/__test__/listitem.test.js.map +1 -1
  82. package/lib/module/components/modules/ModuleIDP.js +3 -10
  83. package/lib/module/components/modules/ModuleIDP.js.map +1 -1
  84. package/lib/module/components/modules/ModulePaymentNotice.js +8 -6
  85. package/lib/module/components/modules/ModulePaymentNotice.js.map +1 -1
  86. package/lib/module/components/otpInput/BoxedInput.js +1 -1
  87. package/lib/module/components/pictograms/Pictogram.js +4 -0
  88. package/lib/module/components/pictograms/Pictogram.js.map +1 -1
  89. package/lib/module/components/pictograms/svg/PictogramEmptyWallet.js +35 -0
  90. package/lib/module/components/pictograms/svg/PictogramEmptyWallet.js.map +1 -0
  91. package/lib/module/components/pictograms/svg/PictogramMeterLimit.js +38 -0
  92. package/lib/module/components/pictograms/svg/PictogramMeterLimit.js.map +1 -0
  93. package/lib/module/components/pictograms/svg/originals/PictogramEmptyWallet.svg +1 -0
  94. package/lib/module/components/pictograms/svg/originals/PictogramMeterLimit.svg +1 -0
  95. package/lib/module/components/tag/Tag.js +4 -9
  96. package/lib/module/components/tag/Tag.js.map +1 -1
  97. package/lib/module/components/typography/ComposedBodyFromArray.js +18 -0
  98. package/lib/module/components/typography/ComposedBodyFromArray.js.map +1 -0
  99. package/lib/module/components/typography/H2.js +2 -2
  100. package/lib/module/components/typography/IOText.js +4 -2
  101. package/lib/module/components/typography/IOText.js.map +1 -1
  102. package/lib/module/components/typography/__test__/ComposedBodyFromArray.test.js +104 -0
  103. package/lib/module/components/typography/__test__/ComposedBodyFromArray.test.js.map +1 -0
  104. package/lib/module/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +895 -0
  105. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +1 -1
  106. package/lib/module/components/typography/index.js +1 -0
  107. package/lib/module/components/typography/index.js.map +1 -1
  108. package/lib/module/core/IODSExperimentalContextProvider.js +1 -2
  109. package/lib/module/core/IODSExperimentalContextProvider.js.map +1 -1
  110. package/lib/module/core/IOThemeContextProvider.js +1 -2
  111. package/lib/module/core/IOThemeContextProvider.js.map +1 -1
  112. package/lib/module/utils/accessibility.js +0 -9
  113. package/lib/module/utils/accessibility.js.map +1 -1
  114. package/lib/module/utils/image.js +23 -12
  115. package/lib/module/utils/image.js.map +1 -1
  116. package/lib/module/utils/object.js +10 -3
  117. package/lib/module/utils/object.js.map +1 -1
  118. package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
  119. package/lib/typescript/components/banner/Banner.d.ts +1 -1
  120. package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
  121. package/lib/typescript/components/buttons/ButtonLink.d.ts +1 -1
  122. package/lib/typescript/components/buttons/ButtonOutline.d.ts +1 -1
  123. package/lib/typescript/components/buttons/ButtonSolid.d.ts +1 -1
  124. package/lib/typescript/components/common/LogoPaymentWithFallback.d.ts.map +1 -1
  125. package/lib/typescript/components/featureInfo/FeatureInfo.d.ts +2 -2
  126. package/lib/typescript/components/featureInfo/FeatureInfo.d.ts.map +1 -1
  127. package/lib/typescript/components/icons/Icon.d.ts +2 -0
  128. package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
  129. package/lib/typescript/components/icons/svg/IconNavQrWallet.d.ts +5 -0
  130. package/lib/typescript/components/icons/svg/IconNavQrWallet.d.ts.map +1 -0
  131. package/lib/typescript/components/listitems/ListItemInfo.d.ts +5 -3
  132. package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
  133. package/lib/typescript/components/listitems/ListItemTransaction.d.ts +11 -5
  134. package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
  135. package/lib/typescript/components/modules/ModuleIDP.d.ts.map +1 -1
  136. package/lib/typescript/components/modules/ModulePaymentNotice.d.ts +10 -4
  137. package/lib/typescript/components/modules/ModulePaymentNotice.d.ts.map +1 -1
  138. package/lib/typescript/components/pictograms/Pictogram.d.ts +2 -0
  139. package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
  140. package/lib/typescript/components/pictograms/svg/PictogramEmptyWallet.d.ts +5 -0
  141. package/lib/typescript/components/pictograms/svg/PictogramEmptyWallet.d.ts.map +1 -0
  142. package/lib/typescript/components/pictograms/svg/PictogramMeterLimit.d.ts +5 -0
  143. package/lib/typescript/components/pictograms/svg/PictogramMeterLimit.d.ts.map +1 -0
  144. package/lib/typescript/components/tag/Tag.d.ts.map +1 -1
  145. package/lib/typescript/components/typography/ComposedBodyFromArray.d.ts +13 -0
  146. package/lib/typescript/components/typography/ComposedBodyFromArray.d.ts.map +1 -0
  147. package/lib/typescript/components/typography/H2.d.ts +1 -1
  148. package/lib/typescript/components/typography/IOText.d.ts +1 -1
  149. package/lib/typescript/components/typography/IOText.d.ts.map +1 -1
  150. package/lib/typescript/components/typography/__test__/ComposedBodyFromArray.test.d.ts +2 -0
  151. package/lib/typescript/components/typography/__test__/ComposedBodyFromArray.test.d.ts.map +1 -0
  152. package/lib/typescript/components/typography/index.d.ts +1 -0
  153. package/lib/typescript/components/typography/index.d.ts.map +1 -1
  154. package/lib/typescript/core/IODSExperimentalContextProvider.d.ts.map +1 -1
  155. package/lib/typescript/core/IOThemeContextProvider.d.ts.map +1 -1
  156. package/lib/typescript/utils/accessibility.d.ts +0 -5
  157. package/lib/typescript/utils/accessibility.d.ts.map +1 -1
  158. package/lib/typescript/utils/image.d.ts +2 -2
  159. package/lib/typescript/utils/image.d.ts.map +1 -1
  160. package/lib/typescript/utils/object.d.ts +1 -2
  161. package/lib/typescript/utils/object.d.ts.map +1 -1
  162. package/package.json +2 -5
  163. package/src/components/alert/Alert.tsx +27 -7
  164. package/src/components/banner/Banner.tsx +6 -2
  165. package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -0
  166. package/src/components/banner/__test__/banner.test.tsx +2 -0
  167. package/src/components/codeInput/CodeInput.tsx +1 -1
  168. package/src/components/common/LogoPaymentWithFallback.tsx +15 -17
  169. package/src/components/featureInfo/FeatureInfo.tsx +2 -2
  170. package/src/components/icons/Icon.tsx +7 -3
  171. package/src/components/icons/svg/IconNavQrWallet.tsx +16 -0
  172. package/src/components/icons/svg/originals/IconNavQrWallet.svg +1 -0
  173. package/src/components/listitems/ListItemInfo.tsx +7 -4
  174. package/src/components/listitems/ListItemTransaction.tsx +40 -46
  175. package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +0 -10
  176. package/src/components/listitems/__test__/listitem.test.tsx +10 -4
  177. package/src/components/modules/ModuleIDP.tsx +4 -13
  178. package/src/components/modules/ModulePaymentNotice.tsx +14 -10
  179. package/src/components/otpInput/BoxedInput.tsx +1 -1
  180. package/src/components/pictograms/Pictogram.tsx +4 -0
  181. package/src/components/pictograms/svg/PictogramEmptyWallet.tsx +42 -0
  182. package/src/components/pictograms/svg/PictogramMeterLimit.tsx +46 -0
  183. package/src/components/pictograms/svg/originals/PictogramEmptyWallet.svg +1 -0
  184. package/src/components/pictograms/svg/originals/PictogramMeterLimit.svg +1 -0
  185. package/src/components/tag/Tag.tsx +10 -19
  186. package/src/components/typography/ComposedBodyFromArray.tsx +25 -0
  187. package/src/components/typography/H2.tsx +2 -2
  188. package/src/components/typography/IOText.tsx +5 -6
  189. package/src/components/typography/__test__/ComposedBodyFromArray.test.tsx +99 -0
  190. package/src/components/typography/__test__/__snapshots__/ComposedBodyFromArray.test.tsx.snap +895 -0
  191. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +1 -1
  192. package/src/components/typography/index.tsx +1 -0
  193. package/src/core/IODSExperimentalContextProvider.tsx +1 -2
  194. package/src/core/IOThemeContextProvider.tsx +1 -2
  195. package/src/utils/accessibility.ts +0 -17
  196. package/src/utils/image.ts +28 -28
  197. package/src/utils/object.ts +13 -12
  198. package/lib/commonjs/utils/dates.js +0 -20
  199. package/lib/commonjs/utils/dates.js.map +0 -1
  200. package/lib/module/utils/dates.js +0 -11
  201. package/lib/module/utils/dates.js.map +0 -1
  202. package/lib/typescript/utils/dates.d.ts +0 -9
  203. package/lib/typescript/utils/dates.d.ts.map +0 -1
  204. package/src/utils/dates.ts +0 -18
@@ -0,0 +1,895 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`ComposedBodyFromArray should match snapshot, empty body, auto text align 1`] = `
4
+ <Text
5
+ allowFontScaling={false}
6
+ dynamicTypeRamp="body"
7
+ maxFontSizeMultiplier={1.25}
8
+ style={
9
+ [
10
+ {},
11
+ {
12
+ "color": "#555C70",
13
+ "fontFamily": "Titillium Sans Pro",
14
+ "fontSize": 16,
15
+ "fontStyle": "normal",
16
+ "fontWeight": "400",
17
+ "lineHeight": 24,
18
+ },
19
+ {
20
+ "textAlign": "auto",
21
+ },
22
+ ]
23
+ }
24
+ />
25
+ `;
26
+
27
+ exports[`ComposedBodyFromArray should match snapshot, empty body, center text align 1`] = `
28
+ <Text
29
+ allowFontScaling={false}
30
+ dynamicTypeRamp="body"
31
+ maxFontSizeMultiplier={1.25}
32
+ style={
33
+ [
34
+ {},
35
+ {
36
+ "color": "#555C70",
37
+ "fontFamily": "Titillium Sans Pro",
38
+ "fontSize": 16,
39
+ "fontStyle": "normal",
40
+ "fontWeight": "400",
41
+ "lineHeight": 24,
42
+ },
43
+ {
44
+ "textAlign": "center",
45
+ },
46
+ ]
47
+ }
48
+ />
49
+ `;
50
+
51
+ exports[`ComposedBodyFromArray should match snapshot, empty body, default text align 1`] = `
52
+ <Text
53
+ allowFontScaling={false}
54
+ dynamicTypeRamp="body"
55
+ maxFontSizeMultiplier={1.25}
56
+ style={
57
+ [
58
+ {},
59
+ {
60
+ "color": "#555C70",
61
+ "fontFamily": "Titillium Sans Pro",
62
+ "fontSize": 16,
63
+ "fontStyle": "normal",
64
+ "fontWeight": "400",
65
+ "lineHeight": 24,
66
+ },
67
+ {
68
+ "textAlign": "center",
69
+ },
70
+ ]
71
+ }
72
+ />
73
+ `;
74
+
75
+ exports[`ComposedBodyFromArray should match snapshot, empty body, justify text align 1`] = `
76
+ <Text
77
+ allowFontScaling={false}
78
+ dynamicTypeRamp="body"
79
+ maxFontSizeMultiplier={1.25}
80
+ style={
81
+ [
82
+ {},
83
+ {
84
+ "color": "#555C70",
85
+ "fontFamily": "Titillium Sans Pro",
86
+ "fontSize": 16,
87
+ "fontStyle": "normal",
88
+ "fontWeight": "400",
89
+ "lineHeight": 24,
90
+ },
91
+ {
92
+ "textAlign": "justify",
93
+ },
94
+ ]
95
+ }
96
+ />
97
+ `;
98
+
99
+ exports[`ComposedBodyFromArray should match snapshot, empty body, left text align 1`] = `
100
+ <Text
101
+ allowFontScaling={false}
102
+ dynamicTypeRamp="body"
103
+ maxFontSizeMultiplier={1.25}
104
+ style={
105
+ [
106
+ {},
107
+ {
108
+ "color": "#555C70",
109
+ "fontFamily": "Titillium Sans Pro",
110
+ "fontSize": 16,
111
+ "fontStyle": "normal",
112
+ "fontWeight": "400",
113
+ "lineHeight": 24,
114
+ },
115
+ {
116
+ "textAlign": "left",
117
+ },
118
+ ]
119
+ }
120
+ />
121
+ `;
122
+
123
+ exports[`ComposedBodyFromArray should match snapshot, empty body, right text align 1`] = `
124
+ <Text
125
+ allowFontScaling={false}
126
+ dynamicTypeRamp="body"
127
+ maxFontSizeMultiplier={1.25}
128
+ style={
129
+ [
130
+ {},
131
+ {
132
+ "color": "#555C70",
133
+ "fontFamily": "Titillium Sans Pro",
134
+ "fontSize": 16,
135
+ "fontStyle": "normal",
136
+ "fontWeight": "400",
137
+ "lineHeight": 24,
138
+ },
139
+ {
140
+ "textAlign": "right",
141
+ },
142
+ ]
143
+ }
144
+ />
145
+ `;
146
+
147
+ exports[`ComposedBodyFromArray should match snapshot, multiple items body, auto text align 1`] = `
148
+ <Text
149
+ allowFontScaling={false}
150
+ dynamicTypeRamp="body"
151
+ maxFontSizeMultiplier={1.25}
152
+ style={
153
+ [
154
+ {},
155
+ {
156
+ "color": "#555C70",
157
+ "fontFamily": "Titillium Sans Pro",
158
+ "fontSize": 16,
159
+ "fontStyle": "normal",
160
+ "fontWeight": "400",
161
+ "lineHeight": 24,
162
+ },
163
+ {
164
+ "textAlign": "auto",
165
+ },
166
+ ]
167
+ }
168
+ >
169
+ <Text
170
+ allowFontScaling={false}
171
+ dynamicTypeRamp="body"
172
+ maxFontSizeMultiplier={1.25}
173
+ style={
174
+ [
175
+ {},
176
+ {
177
+ "color": "#555C70",
178
+ "fontFamily": "Titillium Sans Pro",
179
+ "fontSize": 16,
180
+ "fontStyle": "normal",
181
+ "fontWeight": "400",
182
+ "lineHeight": 24,
183
+ },
184
+ ]
185
+ }
186
+ >
187
+ Multiple
188
+ </Text>
189
+ <Text
190
+ allowFontScaling={false}
191
+ dynamicTypeRamp="body"
192
+ maxFontSizeMultiplier={1.25}
193
+ style={
194
+ [
195
+ {},
196
+ {
197
+ "color": "#555C70",
198
+ "fontFamily": "Titillium Sans Pro",
199
+ "fontSize": 16,
200
+ "fontStyle": "normal",
201
+ "fontWeight": "700",
202
+ "lineHeight": 24,
203
+ },
204
+ ]
205
+ }
206
+ >
207
+ styles
208
+ </Text>
209
+ <Text
210
+ allowFontScaling={false}
211
+ dynamicTypeRamp="body"
212
+ maxFontSizeMultiplier={1.25}
213
+ style={
214
+ [
215
+ {},
216
+ {
217
+ "color": "#555C70",
218
+ "fontFamily": "Titillium Sans Pro",
219
+ "fontSize": 16,
220
+ "fontStyle": "normal",
221
+ "fontWeight": "300",
222
+ "lineHeight": 24,
223
+ },
224
+ ]
225
+ }
226
+ >
227
+ text
228
+ </Text>
229
+ <Text
230
+ allowFontScaling={false}
231
+ dynamicTypeRamp="body"
232
+ maxFontSizeMultiplier={1.25}
233
+ style={
234
+ [
235
+ {},
236
+ {
237
+ "color": "#555C70",
238
+ "fontFamily": "Titillium Sans Pro",
239
+ "fontSize": 16,
240
+ "fontStyle": "normal",
241
+ "fontWeight": "500",
242
+ "lineHeight": 24,
243
+ },
244
+ ]
245
+ }
246
+ >
247
+ just
248
+ </Text>
249
+ <Text
250
+ allowFontScaling={false}
251
+ dynamicTypeRamp="body"
252
+ maxFontSizeMultiplier={1.25}
253
+ style={
254
+ [
255
+ {},
256
+ {
257
+ "color": "#555C70",
258
+ "fontFamily": "Titillium Sans Pro",
259
+ "fontSize": 16,
260
+ "fontStyle": "normal",
261
+ "fontWeight": "600",
262
+ "lineHeight": 24,
263
+ },
264
+ ]
265
+ }
266
+ >
267
+ weights
268
+ </Text>
269
+ </Text>
270
+ `;
271
+
272
+ exports[`ComposedBodyFromArray should match snapshot, multiple items body, center text align 1`] = `
273
+ <Text
274
+ allowFontScaling={false}
275
+ dynamicTypeRamp="body"
276
+ maxFontSizeMultiplier={1.25}
277
+ style={
278
+ [
279
+ {},
280
+ {
281
+ "color": "#555C70",
282
+ "fontFamily": "Titillium Sans Pro",
283
+ "fontSize": 16,
284
+ "fontStyle": "normal",
285
+ "fontWeight": "400",
286
+ "lineHeight": 24,
287
+ },
288
+ {
289
+ "textAlign": "center",
290
+ },
291
+ ]
292
+ }
293
+ >
294
+ <Text
295
+ allowFontScaling={false}
296
+ dynamicTypeRamp="body"
297
+ maxFontSizeMultiplier={1.25}
298
+ style={
299
+ [
300
+ {},
301
+ {
302
+ "color": "#555C70",
303
+ "fontFamily": "Titillium Sans Pro",
304
+ "fontSize": 16,
305
+ "fontStyle": "normal",
306
+ "fontWeight": "400",
307
+ "lineHeight": 24,
308
+ },
309
+ ]
310
+ }
311
+ >
312
+ Multiple
313
+ </Text>
314
+ <Text
315
+ allowFontScaling={false}
316
+ dynamicTypeRamp="body"
317
+ maxFontSizeMultiplier={1.25}
318
+ style={
319
+ [
320
+ {},
321
+ {
322
+ "color": "#555C70",
323
+ "fontFamily": "Titillium Sans Pro",
324
+ "fontSize": 16,
325
+ "fontStyle": "normal",
326
+ "fontWeight": "700",
327
+ "lineHeight": 24,
328
+ },
329
+ ]
330
+ }
331
+ >
332
+ styles
333
+ </Text>
334
+ <Text
335
+ allowFontScaling={false}
336
+ dynamicTypeRamp="body"
337
+ maxFontSizeMultiplier={1.25}
338
+ style={
339
+ [
340
+ {},
341
+ {
342
+ "color": "#555C70",
343
+ "fontFamily": "Titillium Sans Pro",
344
+ "fontSize": 16,
345
+ "fontStyle": "normal",
346
+ "fontWeight": "300",
347
+ "lineHeight": 24,
348
+ },
349
+ ]
350
+ }
351
+ >
352
+ text
353
+ </Text>
354
+ <Text
355
+ allowFontScaling={false}
356
+ dynamicTypeRamp="body"
357
+ maxFontSizeMultiplier={1.25}
358
+ style={
359
+ [
360
+ {},
361
+ {
362
+ "color": "#555C70",
363
+ "fontFamily": "Titillium Sans Pro",
364
+ "fontSize": 16,
365
+ "fontStyle": "normal",
366
+ "fontWeight": "500",
367
+ "lineHeight": 24,
368
+ },
369
+ ]
370
+ }
371
+ >
372
+ just
373
+ </Text>
374
+ <Text
375
+ allowFontScaling={false}
376
+ dynamicTypeRamp="body"
377
+ maxFontSizeMultiplier={1.25}
378
+ style={
379
+ [
380
+ {},
381
+ {
382
+ "color": "#555C70",
383
+ "fontFamily": "Titillium Sans Pro",
384
+ "fontSize": 16,
385
+ "fontStyle": "normal",
386
+ "fontWeight": "600",
387
+ "lineHeight": 24,
388
+ },
389
+ ]
390
+ }
391
+ >
392
+ weights
393
+ </Text>
394
+ </Text>
395
+ `;
396
+
397
+ exports[`ComposedBodyFromArray should match snapshot, multiple items body, default text align 1`] = `
398
+ <Text
399
+ allowFontScaling={false}
400
+ dynamicTypeRamp="body"
401
+ maxFontSizeMultiplier={1.25}
402
+ style={
403
+ [
404
+ {},
405
+ {
406
+ "color": "#555C70",
407
+ "fontFamily": "Titillium Sans Pro",
408
+ "fontSize": 16,
409
+ "fontStyle": "normal",
410
+ "fontWeight": "400",
411
+ "lineHeight": 24,
412
+ },
413
+ {
414
+ "textAlign": "center",
415
+ },
416
+ ]
417
+ }
418
+ >
419
+ <Text
420
+ allowFontScaling={false}
421
+ dynamicTypeRamp="body"
422
+ maxFontSizeMultiplier={1.25}
423
+ style={
424
+ [
425
+ {},
426
+ {
427
+ "color": "#555C70",
428
+ "fontFamily": "Titillium Sans Pro",
429
+ "fontSize": 16,
430
+ "fontStyle": "normal",
431
+ "fontWeight": "400",
432
+ "lineHeight": 24,
433
+ },
434
+ ]
435
+ }
436
+ >
437
+ Multiple
438
+ </Text>
439
+ <Text
440
+ allowFontScaling={false}
441
+ dynamicTypeRamp="body"
442
+ maxFontSizeMultiplier={1.25}
443
+ style={
444
+ [
445
+ {},
446
+ {
447
+ "color": "#555C70",
448
+ "fontFamily": "Titillium Sans Pro",
449
+ "fontSize": 16,
450
+ "fontStyle": "normal",
451
+ "fontWeight": "700",
452
+ "lineHeight": 24,
453
+ },
454
+ ]
455
+ }
456
+ >
457
+ styles
458
+ </Text>
459
+ <Text
460
+ allowFontScaling={false}
461
+ dynamicTypeRamp="body"
462
+ maxFontSizeMultiplier={1.25}
463
+ style={
464
+ [
465
+ {},
466
+ {
467
+ "color": "#555C70",
468
+ "fontFamily": "Titillium Sans Pro",
469
+ "fontSize": 16,
470
+ "fontStyle": "normal",
471
+ "fontWeight": "300",
472
+ "lineHeight": 24,
473
+ },
474
+ ]
475
+ }
476
+ >
477
+ text
478
+ </Text>
479
+ <Text
480
+ allowFontScaling={false}
481
+ dynamicTypeRamp="body"
482
+ maxFontSizeMultiplier={1.25}
483
+ style={
484
+ [
485
+ {},
486
+ {
487
+ "color": "#555C70",
488
+ "fontFamily": "Titillium Sans Pro",
489
+ "fontSize": 16,
490
+ "fontStyle": "normal",
491
+ "fontWeight": "500",
492
+ "lineHeight": 24,
493
+ },
494
+ ]
495
+ }
496
+ >
497
+ just
498
+ </Text>
499
+ <Text
500
+ allowFontScaling={false}
501
+ dynamicTypeRamp="body"
502
+ maxFontSizeMultiplier={1.25}
503
+ style={
504
+ [
505
+ {},
506
+ {
507
+ "color": "#555C70",
508
+ "fontFamily": "Titillium Sans Pro",
509
+ "fontSize": 16,
510
+ "fontStyle": "normal",
511
+ "fontWeight": "600",
512
+ "lineHeight": 24,
513
+ },
514
+ ]
515
+ }
516
+ >
517
+ weights
518
+ </Text>
519
+ </Text>
520
+ `;
521
+
522
+ exports[`ComposedBodyFromArray should match snapshot, multiple items body, justify text align 1`] = `
523
+ <Text
524
+ allowFontScaling={false}
525
+ dynamicTypeRamp="body"
526
+ maxFontSizeMultiplier={1.25}
527
+ style={
528
+ [
529
+ {},
530
+ {
531
+ "color": "#555C70",
532
+ "fontFamily": "Titillium Sans Pro",
533
+ "fontSize": 16,
534
+ "fontStyle": "normal",
535
+ "fontWeight": "400",
536
+ "lineHeight": 24,
537
+ },
538
+ {
539
+ "textAlign": "justify",
540
+ },
541
+ ]
542
+ }
543
+ >
544
+ <Text
545
+ allowFontScaling={false}
546
+ dynamicTypeRamp="body"
547
+ maxFontSizeMultiplier={1.25}
548
+ style={
549
+ [
550
+ {},
551
+ {
552
+ "color": "#555C70",
553
+ "fontFamily": "Titillium Sans Pro",
554
+ "fontSize": 16,
555
+ "fontStyle": "normal",
556
+ "fontWeight": "400",
557
+ "lineHeight": 24,
558
+ },
559
+ ]
560
+ }
561
+ >
562
+ Multiple
563
+ </Text>
564
+ <Text
565
+ allowFontScaling={false}
566
+ dynamicTypeRamp="body"
567
+ maxFontSizeMultiplier={1.25}
568
+ style={
569
+ [
570
+ {},
571
+ {
572
+ "color": "#555C70",
573
+ "fontFamily": "Titillium Sans Pro",
574
+ "fontSize": 16,
575
+ "fontStyle": "normal",
576
+ "fontWeight": "700",
577
+ "lineHeight": 24,
578
+ },
579
+ ]
580
+ }
581
+ >
582
+ styles
583
+ </Text>
584
+ <Text
585
+ allowFontScaling={false}
586
+ dynamicTypeRamp="body"
587
+ maxFontSizeMultiplier={1.25}
588
+ style={
589
+ [
590
+ {},
591
+ {
592
+ "color": "#555C70",
593
+ "fontFamily": "Titillium Sans Pro",
594
+ "fontSize": 16,
595
+ "fontStyle": "normal",
596
+ "fontWeight": "300",
597
+ "lineHeight": 24,
598
+ },
599
+ ]
600
+ }
601
+ >
602
+ text
603
+ </Text>
604
+ <Text
605
+ allowFontScaling={false}
606
+ dynamicTypeRamp="body"
607
+ maxFontSizeMultiplier={1.25}
608
+ style={
609
+ [
610
+ {},
611
+ {
612
+ "color": "#555C70",
613
+ "fontFamily": "Titillium Sans Pro",
614
+ "fontSize": 16,
615
+ "fontStyle": "normal",
616
+ "fontWeight": "500",
617
+ "lineHeight": 24,
618
+ },
619
+ ]
620
+ }
621
+ >
622
+ just
623
+ </Text>
624
+ <Text
625
+ allowFontScaling={false}
626
+ dynamicTypeRamp="body"
627
+ maxFontSizeMultiplier={1.25}
628
+ style={
629
+ [
630
+ {},
631
+ {
632
+ "color": "#555C70",
633
+ "fontFamily": "Titillium Sans Pro",
634
+ "fontSize": 16,
635
+ "fontStyle": "normal",
636
+ "fontWeight": "600",
637
+ "lineHeight": 24,
638
+ },
639
+ ]
640
+ }
641
+ >
642
+ weights
643
+ </Text>
644
+ </Text>
645
+ `;
646
+
647
+ exports[`ComposedBodyFromArray should match snapshot, multiple items body, left text align 1`] = `
648
+ <Text
649
+ allowFontScaling={false}
650
+ dynamicTypeRamp="body"
651
+ maxFontSizeMultiplier={1.25}
652
+ style={
653
+ [
654
+ {},
655
+ {
656
+ "color": "#555C70",
657
+ "fontFamily": "Titillium Sans Pro",
658
+ "fontSize": 16,
659
+ "fontStyle": "normal",
660
+ "fontWeight": "400",
661
+ "lineHeight": 24,
662
+ },
663
+ {
664
+ "textAlign": "left",
665
+ },
666
+ ]
667
+ }
668
+ >
669
+ <Text
670
+ allowFontScaling={false}
671
+ dynamicTypeRamp="body"
672
+ maxFontSizeMultiplier={1.25}
673
+ style={
674
+ [
675
+ {},
676
+ {
677
+ "color": "#555C70",
678
+ "fontFamily": "Titillium Sans Pro",
679
+ "fontSize": 16,
680
+ "fontStyle": "normal",
681
+ "fontWeight": "400",
682
+ "lineHeight": 24,
683
+ },
684
+ ]
685
+ }
686
+ >
687
+ Multiple
688
+ </Text>
689
+ <Text
690
+ allowFontScaling={false}
691
+ dynamicTypeRamp="body"
692
+ maxFontSizeMultiplier={1.25}
693
+ style={
694
+ [
695
+ {},
696
+ {
697
+ "color": "#555C70",
698
+ "fontFamily": "Titillium Sans Pro",
699
+ "fontSize": 16,
700
+ "fontStyle": "normal",
701
+ "fontWeight": "700",
702
+ "lineHeight": 24,
703
+ },
704
+ ]
705
+ }
706
+ >
707
+ styles
708
+ </Text>
709
+ <Text
710
+ allowFontScaling={false}
711
+ dynamicTypeRamp="body"
712
+ maxFontSizeMultiplier={1.25}
713
+ style={
714
+ [
715
+ {},
716
+ {
717
+ "color": "#555C70",
718
+ "fontFamily": "Titillium Sans Pro",
719
+ "fontSize": 16,
720
+ "fontStyle": "normal",
721
+ "fontWeight": "300",
722
+ "lineHeight": 24,
723
+ },
724
+ ]
725
+ }
726
+ >
727
+ text
728
+ </Text>
729
+ <Text
730
+ allowFontScaling={false}
731
+ dynamicTypeRamp="body"
732
+ maxFontSizeMultiplier={1.25}
733
+ style={
734
+ [
735
+ {},
736
+ {
737
+ "color": "#555C70",
738
+ "fontFamily": "Titillium Sans Pro",
739
+ "fontSize": 16,
740
+ "fontStyle": "normal",
741
+ "fontWeight": "500",
742
+ "lineHeight": 24,
743
+ },
744
+ ]
745
+ }
746
+ >
747
+ just
748
+ </Text>
749
+ <Text
750
+ allowFontScaling={false}
751
+ dynamicTypeRamp="body"
752
+ maxFontSizeMultiplier={1.25}
753
+ style={
754
+ [
755
+ {},
756
+ {
757
+ "color": "#555C70",
758
+ "fontFamily": "Titillium Sans Pro",
759
+ "fontSize": 16,
760
+ "fontStyle": "normal",
761
+ "fontWeight": "600",
762
+ "lineHeight": 24,
763
+ },
764
+ ]
765
+ }
766
+ >
767
+ weights
768
+ </Text>
769
+ </Text>
770
+ `;
771
+
772
+ exports[`ComposedBodyFromArray should match snapshot, multiple items body, right text align 1`] = `
773
+ <Text
774
+ allowFontScaling={false}
775
+ dynamicTypeRamp="body"
776
+ maxFontSizeMultiplier={1.25}
777
+ style={
778
+ [
779
+ {},
780
+ {
781
+ "color": "#555C70",
782
+ "fontFamily": "Titillium Sans Pro",
783
+ "fontSize": 16,
784
+ "fontStyle": "normal",
785
+ "fontWeight": "400",
786
+ "lineHeight": 24,
787
+ },
788
+ {
789
+ "textAlign": "right",
790
+ },
791
+ ]
792
+ }
793
+ >
794
+ <Text
795
+ allowFontScaling={false}
796
+ dynamicTypeRamp="body"
797
+ maxFontSizeMultiplier={1.25}
798
+ style={
799
+ [
800
+ {},
801
+ {
802
+ "color": "#555C70",
803
+ "fontFamily": "Titillium Sans Pro",
804
+ "fontSize": 16,
805
+ "fontStyle": "normal",
806
+ "fontWeight": "400",
807
+ "lineHeight": 24,
808
+ },
809
+ ]
810
+ }
811
+ >
812
+ Multiple
813
+ </Text>
814
+ <Text
815
+ allowFontScaling={false}
816
+ dynamicTypeRamp="body"
817
+ maxFontSizeMultiplier={1.25}
818
+ style={
819
+ [
820
+ {},
821
+ {
822
+ "color": "#555C70",
823
+ "fontFamily": "Titillium Sans Pro",
824
+ "fontSize": 16,
825
+ "fontStyle": "normal",
826
+ "fontWeight": "700",
827
+ "lineHeight": 24,
828
+ },
829
+ ]
830
+ }
831
+ >
832
+ styles
833
+ </Text>
834
+ <Text
835
+ allowFontScaling={false}
836
+ dynamicTypeRamp="body"
837
+ maxFontSizeMultiplier={1.25}
838
+ style={
839
+ [
840
+ {},
841
+ {
842
+ "color": "#555C70",
843
+ "fontFamily": "Titillium Sans Pro",
844
+ "fontSize": 16,
845
+ "fontStyle": "normal",
846
+ "fontWeight": "300",
847
+ "lineHeight": 24,
848
+ },
849
+ ]
850
+ }
851
+ >
852
+ text
853
+ </Text>
854
+ <Text
855
+ allowFontScaling={false}
856
+ dynamicTypeRamp="body"
857
+ maxFontSizeMultiplier={1.25}
858
+ style={
859
+ [
860
+ {},
861
+ {
862
+ "color": "#555C70",
863
+ "fontFamily": "Titillium Sans Pro",
864
+ "fontSize": 16,
865
+ "fontStyle": "normal",
866
+ "fontWeight": "500",
867
+ "lineHeight": 24,
868
+ },
869
+ ]
870
+ }
871
+ >
872
+ just
873
+ </Text>
874
+ <Text
875
+ allowFontScaling={false}
876
+ dynamicTypeRamp="body"
877
+ maxFontSizeMultiplier={1.25}
878
+ style={
879
+ [
880
+ {},
881
+ {
882
+ "color": "#555C70",
883
+ "fontFamily": "Titillium Sans Pro",
884
+ "fontSize": 16,
885
+ "fontStyle": "normal",
886
+ "fontWeight": "600",
887
+ "lineHeight": 24,
888
+ },
889
+ ]
890
+ }
891
+ >
892
+ weights
893
+ </Text>
894
+ </Text>
895
+ `;