@hero-design/rn 8.43.1 → 8.44.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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +10 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +366 -359
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +366 -359
- package/package.json +1 -1
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -452
- package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +790 -706
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -652
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +170 -142
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -82
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -689
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +157 -73
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -189
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -278
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -233
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -120
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -810
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -140
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1666 -1218
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +70 -42
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1623 -727
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -415
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -430
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +196 -84
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1720 -1636
- package/src/components/Carousel/__tests__/index.spec.tsx +7 -6
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +400 -176
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -406
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1170 -834
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +421 -337
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -502
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -172
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -164
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -443
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -243
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +845 -789
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +197 -113
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +290 -206
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
- package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -186
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +761 -649
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +268 -156
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +473 -221
- package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +60 -8
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +83 -55
- package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
- package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
- package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
- package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -132
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +256 -228
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -780
- package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
- package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +406 -378
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -36
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -315
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -65
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2402 -2290
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +180 -24
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -45
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2309 -2197
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +150 -20
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -126
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +145 -117
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -76
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2214 -2130
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -495
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1637 -1553
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -334
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -606
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -675
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -498
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -459
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
- package/src/testHelpers/renderWithTheme.tsx +2 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Success renders full screen success page correctly 1`] = `
|
|
4
|
-
|
|
4
|
+
<View
|
|
5
|
+
style={
|
|
6
|
+
{
|
|
7
|
+
"flex": 1,
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
>
|
|
5
11
|
<View
|
|
6
12
|
collapsable={false}
|
|
7
13
|
style={
|
|
@@ -15,7 +21,7 @@ exports[`Success renders full screen success page correctly 1`] = `
|
|
|
15
21
|
"top": 0,
|
|
16
22
|
}
|
|
17
23
|
}
|
|
18
|
-
|
|
24
|
+
/>
|
|
19
25
|
<View
|
|
20
26
|
collapsable={false}
|
|
21
27
|
style={
|
|
@@ -157,337 +163,441 @@ exports[`Success renders full screen success page correctly 1`] = `
|
|
|
157
163
|
</Text>
|
|
158
164
|
</View>
|
|
159
165
|
</View>
|
|
160
|
-
</View
|
|
161
|
-
|
|
166
|
+
</View>
|
|
167
|
+
<View
|
|
168
|
+
pointerEvents="box-none"
|
|
169
|
+
position="bottom"
|
|
170
|
+
style={
|
|
171
|
+
[
|
|
172
|
+
{
|
|
173
|
+
"bottom": 0,
|
|
174
|
+
"elevation": 9999,
|
|
175
|
+
"flexDirection": "column-reverse",
|
|
176
|
+
"left": 0,
|
|
177
|
+
"paddingHorizontal": 24,
|
|
178
|
+
"paddingVertical": 16,
|
|
179
|
+
"position": "absolute",
|
|
180
|
+
"right": 0,
|
|
181
|
+
"top": 0,
|
|
182
|
+
},
|
|
183
|
+
undefined,
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
/>
|
|
187
|
+
</View>
|
|
162
188
|
`;
|
|
163
189
|
|
|
164
190
|
exports[`Success renders succe screen with custom image element correctly 1`] = `
|
|
165
191
|
<View
|
|
166
192
|
style={
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
"display": "flex",
|
|
171
|
-
"flex": 1,
|
|
172
|
-
"flexDirection": "column",
|
|
173
|
-
},
|
|
174
|
-
undefined,
|
|
175
|
-
]
|
|
193
|
+
{
|
|
194
|
+
"flex": 1,
|
|
195
|
+
}
|
|
176
196
|
}
|
|
177
|
-
themeVariant="in-page"
|
|
178
197
|
>
|
|
179
198
|
<View
|
|
180
199
|
style={
|
|
181
200
|
[
|
|
182
201
|
{
|
|
183
|
-
"
|
|
202
|
+
"backgroundColor": "#f6f6f7",
|
|
184
203
|
"display": "flex",
|
|
185
204
|
"flex": 1,
|
|
186
205
|
"flexDirection": "column",
|
|
187
|
-
"justifyContent": "center",
|
|
188
|
-
"padding": 24,
|
|
189
206
|
},
|
|
190
207
|
undefined,
|
|
191
208
|
]
|
|
192
209
|
}
|
|
210
|
+
themeVariant="in-page"
|
|
193
211
|
>
|
|
194
212
|
<View
|
|
195
213
|
style={
|
|
196
214
|
[
|
|
197
215
|
{
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
216
|
+
"alignItems": "center",
|
|
217
|
+
"display": "flex",
|
|
218
|
+
"flex": 1,
|
|
219
|
+
"flexDirection": "column",
|
|
220
|
+
"justifyContent": "center",
|
|
221
|
+
"padding": 24,
|
|
201
222
|
},
|
|
202
223
|
undefined,
|
|
203
224
|
]
|
|
204
225
|
}
|
|
205
226
|
>
|
|
206
|
-
<
|
|
207
|
-
source={
|
|
208
|
-
{
|
|
209
|
-
"uri": "path_to_image",
|
|
210
|
-
}
|
|
211
|
-
}
|
|
227
|
+
<View
|
|
212
228
|
style={
|
|
213
229
|
[
|
|
214
230
|
{
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"width":
|
|
231
|
+
"height": 176,
|
|
232
|
+
"marginBottom": 32,
|
|
233
|
+
"width": 176,
|
|
218
234
|
},
|
|
219
235
|
undefined,
|
|
220
236
|
]
|
|
221
237
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
{
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
238
|
+
>
|
|
239
|
+
<Image
|
|
240
|
+
source={
|
|
241
|
+
{
|
|
242
|
+
"uri": "path_to_image",
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
style={
|
|
246
|
+
[
|
|
247
|
+
{
|
|
248
|
+
"borderRadius": 0,
|
|
249
|
+
"height": 72,
|
|
250
|
+
"width": 72,
|
|
251
|
+
},
|
|
252
|
+
undefined,
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
testID="success-image"
|
|
256
|
+
/>
|
|
257
|
+
</View>
|
|
258
|
+
<Text
|
|
259
|
+
allowFontScaling={false}
|
|
260
|
+
style={
|
|
236
261
|
[
|
|
237
262
|
{
|
|
238
263
|
"color": "#001f23",
|
|
239
|
-
"
|
|
240
|
-
"
|
|
264
|
+
"fontFamily": "RebondGrotesque-SemiBold",
|
|
265
|
+
"fontSize": 24,
|
|
266
|
+
"letterSpacing": 0.24,
|
|
267
|
+
"lineHeight": 32,
|
|
241
268
|
},
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
"lineHeight": 24,
|
|
262
|
-
},
|
|
269
|
+
[
|
|
270
|
+
{
|
|
271
|
+
"color": "#001f23",
|
|
272
|
+
"marginBottom": 8,
|
|
273
|
+
"textAlign": "center",
|
|
274
|
+
},
|
|
275
|
+
undefined,
|
|
276
|
+
],
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
themeIntent="body"
|
|
280
|
+
themeLevel="h4"
|
|
281
|
+
themeTypeface="playful"
|
|
282
|
+
>
|
|
283
|
+
We’re sorry, something went wrong
|
|
284
|
+
</Text>
|
|
285
|
+
<Text
|
|
286
|
+
allowFontScaling={false}
|
|
287
|
+
style={
|
|
263
288
|
[
|
|
264
289
|
{
|
|
265
|
-
"color": "#
|
|
266
|
-
"
|
|
290
|
+
"color": "#001f23",
|
|
291
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
292
|
+
"fontSize": 16,
|
|
293
|
+
"letterSpacing": 0.48,
|
|
294
|
+
"lineHeight": 24,
|
|
267
295
|
},
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
296
|
+
[
|
|
297
|
+
{
|
|
298
|
+
"color": "#4d6265",
|
|
299
|
+
"textAlign": "center",
|
|
300
|
+
},
|
|
301
|
+
undefined,
|
|
302
|
+
],
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
themeIntent="body"
|
|
306
|
+
themeTypeface="neutral"
|
|
307
|
+
themeVariant="regular"
|
|
308
|
+
>
|
|
309
|
+
Please try again later
|
|
310
|
+
</Text>
|
|
311
|
+
</View>
|
|
278
312
|
</View>
|
|
313
|
+
<View
|
|
314
|
+
pointerEvents="box-none"
|
|
315
|
+
position="bottom"
|
|
316
|
+
style={
|
|
317
|
+
[
|
|
318
|
+
{
|
|
319
|
+
"bottom": 0,
|
|
320
|
+
"elevation": 9999,
|
|
321
|
+
"flexDirection": "column-reverse",
|
|
322
|
+
"left": 0,
|
|
323
|
+
"paddingHorizontal": 24,
|
|
324
|
+
"paddingVertical": 16,
|
|
325
|
+
"position": "absolute",
|
|
326
|
+
"right": 0,
|
|
327
|
+
"top": 0,
|
|
328
|
+
},
|
|
329
|
+
undefined,
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
/>
|
|
279
333
|
</View>
|
|
280
334
|
`;
|
|
281
335
|
|
|
282
336
|
exports[`Success renders success screen with image correctly 1`] = `
|
|
283
337
|
<View
|
|
284
338
|
style={
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
"display": "flex",
|
|
289
|
-
"flex": 1,
|
|
290
|
-
"flexDirection": "column",
|
|
291
|
-
},
|
|
292
|
-
undefined,
|
|
293
|
-
]
|
|
339
|
+
{
|
|
340
|
+
"flex": 1,
|
|
341
|
+
}
|
|
294
342
|
}
|
|
295
|
-
themeVariant="in-page"
|
|
296
343
|
>
|
|
297
344
|
<View
|
|
298
345
|
style={
|
|
299
346
|
[
|
|
300
347
|
{
|
|
301
|
-
"
|
|
348
|
+
"backgroundColor": "#f6f6f7",
|
|
302
349
|
"display": "flex",
|
|
303
350
|
"flex": 1,
|
|
304
351
|
"flexDirection": "column",
|
|
305
|
-
"justifyContent": "center",
|
|
306
|
-
"padding": 24,
|
|
307
352
|
},
|
|
308
353
|
undefined,
|
|
309
354
|
]
|
|
310
355
|
}
|
|
356
|
+
themeVariant="in-page"
|
|
311
357
|
>
|
|
312
358
|
<View
|
|
313
359
|
style={
|
|
314
360
|
[
|
|
315
361
|
{
|
|
316
|
-
"
|
|
317
|
-
"
|
|
318
|
-
"
|
|
362
|
+
"alignItems": "center",
|
|
363
|
+
"display": "flex",
|
|
364
|
+
"flex": 1,
|
|
365
|
+
"flexDirection": "column",
|
|
366
|
+
"justifyContent": "center",
|
|
367
|
+
"padding": 24,
|
|
319
368
|
},
|
|
320
369
|
undefined,
|
|
321
370
|
]
|
|
322
371
|
}
|
|
323
372
|
>
|
|
324
|
-
<
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
373
|
+
<View
|
|
374
|
+
style={
|
|
375
|
+
[
|
|
376
|
+
{
|
|
377
|
+
"height": 176,
|
|
378
|
+
"marginBottom": 32,
|
|
379
|
+
"width": 176,
|
|
380
|
+
},
|
|
381
|
+
undefined,
|
|
382
|
+
]
|
|
329
383
|
}
|
|
384
|
+
>
|
|
385
|
+
<Image
|
|
386
|
+
source={
|
|
387
|
+
{
|
|
388
|
+
"uri": "path_to_image",
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
style={
|
|
392
|
+
[
|
|
393
|
+
{
|
|
394
|
+
"borderRadius": 0,
|
|
395
|
+
"height": 72,
|
|
396
|
+
"width": 72,
|
|
397
|
+
},
|
|
398
|
+
[
|
|
399
|
+
{
|
|
400
|
+
"height": 176,
|
|
401
|
+
"marginBottom": 32,
|
|
402
|
+
"resizeMode": "contain",
|
|
403
|
+
"width": 176,
|
|
404
|
+
},
|
|
405
|
+
undefined,
|
|
406
|
+
],
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
testID="success-image"
|
|
410
|
+
/>
|
|
411
|
+
</View>
|
|
412
|
+
<Text
|
|
413
|
+
allowFontScaling={false}
|
|
330
414
|
style={
|
|
331
415
|
[
|
|
332
416
|
{
|
|
333
|
-
"
|
|
334
|
-
"
|
|
335
|
-
"
|
|
417
|
+
"color": "#001f23",
|
|
418
|
+
"fontFamily": "RebondGrotesque-SemiBold",
|
|
419
|
+
"fontSize": 24,
|
|
420
|
+
"letterSpacing": 0.24,
|
|
421
|
+
"lineHeight": 32,
|
|
336
422
|
},
|
|
337
423
|
[
|
|
338
424
|
{
|
|
339
|
-
"
|
|
340
|
-
"marginBottom":
|
|
341
|
-
"
|
|
342
|
-
"width": 176,
|
|
425
|
+
"color": "#001f23",
|
|
426
|
+
"marginBottom": 8,
|
|
427
|
+
"textAlign": "center",
|
|
343
428
|
},
|
|
344
429
|
undefined,
|
|
345
430
|
],
|
|
346
431
|
]
|
|
347
432
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
"fontFamily": "RebondGrotesque-SemiBold",
|
|
358
|
-
"fontSize": 24,
|
|
359
|
-
"letterSpacing": 0.24,
|
|
360
|
-
"lineHeight": 32,
|
|
361
|
-
},
|
|
433
|
+
themeIntent="body"
|
|
434
|
+
themeLevel="h4"
|
|
435
|
+
themeTypeface="playful"
|
|
436
|
+
>
|
|
437
|
+
We’re sorry, something went wrong
|
|
438
|
+
</Text>
|
|
439
|
+
<Text
|
|
440
|
+
allowFontScaling={false}
|
|
441
|
+
style={
|
|
362
442
|
[
|
|
363
443
|
{
|
|
364
444
|
"color": "#001f23",
|
|
365
|
-
"
|
|
366
|
-
"
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
],
|
|
370
|
-
]
|
|
371
|
-
}
|
|
372
|
-
themeIntent="body"
|
|
373
|
-
themeLevel="h4"
|
|
374
|
-
themeTypeface="playful"
|
|
375
|
-
>
|
|
376
|
-
We’re sorry, something went wrong
|
|
377
|
-
</Text>
|
|
378
|
-
<Text
|
|
379
|
-
allowFontScaling={false}
|
|
380
|
-
style={
|
|
381
|
-
[
|
|
382
|
-
{
|
|
383
|
-
"color": "#001f23",
|
|
384
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
385
|
-
"fontSize": 16,
|
|
386
|
-
"letterSpacing": 0.48,
|
|
387
|
-
"lineHeight": 24,
|
|
388
|
-
},
|
|
389
|
-
[
|
|
390
|
-
{
|
|
391
|
-
"color": "#4d6265",
|
|
392
|
-
"textAlign": "center",
|
|
445
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
446
|
+
"fontSize": 16,
|
|
447
|
+
"letterSpacing": 0.48,
|
|
448
|
+
"lineHeight": 24,
|
|
393
449
|
},
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
450
|
+
[
|
|
451
|
+
{
|
|
452
|
+
"color": "#4d6265",
|
|
453
|
+
"textAlign": "center",
|
|
454
|
+
},
|
|
455
|
+
undefined,
|
|
456
|
+
],
|
|
457
|
+
]
|
|
458
|
+
}
|
|
459
|
+
themeIntent="body"
|
|
460
|
+
themeTypeface="neutral"
|
|
461
|
+
themeVariant="regular"
|
|
462
|
+
>
|
|
463
|
+
Please try again later
|
|
464
|
+
</Text>
|
|
465
|
+
</View>
|
|
404
466
|
</View>
|
|
467
|
+
<View
|
|
468
|
+
pointerEvents="box-none"
|
|
469
|
+
position="bottom"
|
|
470
|
+
style={
|
|
471
|
+
[
|
|
472
|
+
{
|
|
473
|
+
"bottom": 0,
|
|
474
|
+
"elevation": 9999,
|
|
475
|
+
"flexDirection": "column-reverse",
|
|
476
|
+
"left": 0,
|
|
477
|
+
"paddingHorizontal": 24,
|
|
478
|
+
"paddingVertical": 16,
|
|
479
|
+
"position": "absolute",
|
|
480
|
+
"right": 0,
|
|
481
|
+
"top": 0,
|
|
482
|
+
},
|
|
483
|
+
undefined,
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
/>
|
|
405
487
|
</View>
|
|
406
488
|
`;
|
|
407
489
|
|
|
408
490
|
exports[`Success renders title only correctly 1`] = `
|
|
409
491
|
<View
|
|
410
492
|
style={
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
"display": "flex",
|
|
415
|
-
"flex": 1,
|
|
416
|
-
"flexDirection": "column",
|
|
417
|
-
},
|
|
418
|
-
undefined,
|
|
419
|
-
]
|
|
493
|
+
{
|
|
494
|
+
"flex": 1,
|
|
495
|
+
}
|
|
420
496
|
}
|
|
421
|
-
themeVariant="in-page"
|
|
422
497
|
>
|
|
423
498
|
<View
|
|
424
499
|
style={
|
|
425
500
|
[
|
|
426
501
|
{
|
|
427
|
-
"
|
|
502
|
+
"backgroundColor": "#f6f6f7",
|
|
428
503
|
"display": "flex",
|
|
429
504
|
"flex": 1,
|
|
430
505
|
"flexDirection": "column",
|
|
431
|
-
"justifyContent": "center",
|
|
432
|
-
"padding": 24,
|
|
433
506
|
},
|
|
434
507
|
undefined,
|
|
435
508
|
]
|
|
436
509
|
}
|
|
510
|
+
themeVariant="in-page"
|
|
437
511
|
>
|
|
438
|
-
<
|
|
439
|
-
allowFontScaling={false}
|
|
512
|
+
<View
|
|
440
513
|
style={
|
|
441
514
|
[
|
|
442
515
|
{
|
|
443
|
-
"
|
|
444
|
-
"
|
|
445
|
-
"
|
|
446
|
-
"
|
|
447
|
-
"
|
|
516
|
+
"alignItems": "center",
|
|
517
|
+
"display": "flex",
|
|
518
|
+
"flex": 1,
|
|
519
|
+
"flexDirection": "column",
|
|
520
|
+
"justifyContent": "center",
|
|
521
|
+
"padding": 24,
|
|
448
522
|
},
|
|
523
|
+
undefined,
|
|
524
|
+
]
|
|
525
|
+
}
|
|
526
|
+
>
|
|
527
|
+
<Text
|
|
528
|
+
allowFontScaling={false}
|
|
529
|
+
style={
|
|
449
530
|
[
|
|
450
531
|
{
|
|
451
532
|
"color": "#001f23",
|
|
452
|
-
"
|
|
453
|
-
"
|
|
533
|
+
"fontFamily": "RebondGrotesque-SemiBold",
|
|
534
|
+
"fontSize": 24,
|
|
535
|
+
"letterSpacing": 0.24,
|
|
536
|
+
"lineHeight": 32,
|
|
454
537
|
},
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
"lineHeight": 24,
|
|
475
|
-
},
|
|
538
|
+
[
|
|
539
|
+
{
|
|
540
|
+
"color": "#001f23",
|
|
541
|
+
"marginBottom": 8,
|
|
542
|
+
"textAlign": "center",
|
|
543
|
+
},
|
|
544
|
+
undefined,
|
|
545
|
+
],
|
|
546
|
+
]
|
|
547
|
+
}
|
|
548
|
+
themeIntent="body"
|
|
549
|
+
themeLevel="h4"
|
|
550
|
+
themeTypeface="playful"
|
|
551
|
+
>
|
|
552
|
+
We’re sorry, something went wrong
|
|
553
|
+
</Text>
|
|
554
|
+
<Text
|
|
555
|
+
allowFontScaling={false}
|
|
556
|
+
style={
|
|
476
557
|
[
|
|
477
558
|
{
|
|
478
|
-
"color": "#
|
|
479
|
-
"
|
|
559
|
+
"color": "#001f23",
|
|
560
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
561
|
+
"fontSize": 16,
|
|
562
|
+
"letterSpacing": 0.48,
|
|
563
|
+
"lineHeight": 24,
|
|
480
564
|
},
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
565
|
+
[
|
|
566
|
+
{
|
|
567
|
+
"color": "#4d6265",
|
|
568
|
+
"textAlign": "center",
|
|
569
|
+
},
|
|
570
|
+
undefined,
|
|
571
|
+
],
|
|
572
|
+
]
|
|
573
|
+
}
|
|
574
|
+
themeIntent="body"
|
|
575
|
+
themeTypeface="neutral"
|
|
576
|
+
themeVariant="regular"
|
|
577
|
+
>
|
|
578
|
+
Please try again later
|
|
579
|
+
</Text>
|
|
580
|
+
</View>
|
|
491
581
|
</View>
|
|
582
|
+
<View
|
|
583
|
+
pointerEvents="box-none"
|
|
584
|
+
position="bottom"
|
|
585
|
+
style={
|
|
586
|
+
[
|
|
587
|
+
{
|
|
588
|
+
"bottom": 0,
|
|
589
|
+
"elevation": 9999,
|
|
590
|
+
"flexDirection": "column-reverse",
|
|
591
|
+
"left": 0,
|
|
592
|
+
"paddingHorizontal": 24,
|
|
593
|
+
"paddingVertical": 16,
|
|
594
|
+
"position": "absolute",
|
|
595
|
+
"right": 0,
|
|
596
|
+
"top": 0,
|
|
597
|
+
},
|
|
598
|
+
undefined,
|
|
599
|
+
]
|
|
600
|
+
}
|
|
601
|
+
/>
|
|
492
602
|
</View>
|
|
493
603
|
`;
|