@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.
Files changed (133) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +10 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +366 -359
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +366 -359
  7. package/package.json +1 -1
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -452
  9. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
  10. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +790 -706
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -652
  12. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +170 -142
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -82
  14. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -689
  15. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +157 -73
  16. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -189
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
  18. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
  19. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -278
  20. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -233
  21. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
  22. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -120
  23. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -810
  24. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -140
  25. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1666 -1218
  26. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +70 -42
  27. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1623 -727
  28. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -415
  29. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
  30. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
  31. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
  32. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
  33. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -430
  34. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +196 -84
  35. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
  36. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1720 -1636
  37. package/src/components/Carousel/__tests__/index.spec.tsx +7 -6
  38. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +400 -176
  39. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -406
  40. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1170 -834
  41. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
  42. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
  43. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +421 -337
  45. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -502
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -172
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -164
  48. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -443
  49. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
  50. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
  51. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -243
  52. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
  53. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  54. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +845 -789
  55. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
  56. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +197 -113
  57. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +290 -206
  58. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
  59. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  60. package/src/components/Icon/IconList.ts +2 -0
  61. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
  62. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
  63. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -186
  64. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +761 -649
  65. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +268 -156
  66. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +473 -221
  67. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +60 -8
  68. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +83 -55
  69. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
  70. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
  71. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
  72. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
  73. package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
  74. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
  75. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
  76. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -132
  77. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +256 -228
  78. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -780
  79. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
  80. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
  81. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
  82. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +406 -378
  83. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -36
  84. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -315
  85. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
  86. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
  87. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -65
  88. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2402 -2290
  89. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +180 -24
  90. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
  91. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -45
  92. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2309 -2197
  93. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +150 -20
  94. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
  95. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
  96. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
  97. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
  98. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
  99. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  100. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -126
  101. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
  102. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
  103. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +145 -117
  104. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
  105. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -76
  106. package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
  107. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
  108. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2214 -2130
  109. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -495
  110. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
  111. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1637 -1553
  112. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
  113. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
  114. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
  115. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -334
  116. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -606
  117. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -675
  118. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
  119. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -498
  120. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -459
  121. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
  122. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
  123. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
  124. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
  125. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
  126. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
  127. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
  128. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
  129. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
  130. package/src/testHelpers/renderWithTheme.tsx +2 -2
  131. package/types/components/Icon/IconList.d.ts +1 -1
  132. package/types/components/Icon/index.d.ts +1 -1
  133. 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
- "backgroundColor": "#f6f6f7",
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
- "alignItems": "center",
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
- "height": 176,
199
- "marginBottom": 32,
200
- "width": 176,
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
- <Image
207
- source={
208
- {
209
- "uri": "path_to_image",
210
- }
211
- }
227
+ <View
212
228
  style={
213
229
  [
214
230
  {
215
- "borderRadius": 0,
216
- "height": 72,
217
- "width": 72,
231
+ "height": 176,
232
+ "marginBottom": 32,
233
+ "width": 176,
218
234
  },
219
235
  undefined,
220
236
  ]
221
237
  }
222
- testID="success-image"
223
- />
224
- </View>
225
- <Text
226
- allowFontScaling={false}
227
- style={
228
- [
229
- {
230
- "color": "#001f23",
231
- "fontFamily": "RebondGrotesque-SemiBold",
232
- "fontSize": 24,
233
- "letterSpacing": 0.24,
234
- "lineHeight": 32,
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
- "marginBottom": 8,
240
- "textAlign": "center",
264
+ "fontFamily": "RebondGrotesque-SemiBold",
265
+ "fontSize": 24,
266
+ "letterSpacing": 0.24,
267
+ "lineHeight": 32,
241
268
  },
242
- undefined,
243
- ],
244
- ]
245
- }
246
- themeIntent="body"
247
- themeLevel="h4"
248
- themeTypeface="playful"
249
- >
250
- We’re sorry, something went wrong
251
- </Text>
252
- <Text
253
- allowFontScaling={false}
254
- style={
255
- [
256
- {
257
- "color": "#001f23",
258
- "fontFamily": "BeVietnamPro-Regular",
259
- "fontSize": 16,
260
- "letterSpacing": 0.48,
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": "#4d6265",
266
- "textAlign": "center",
290
+ "color": "#001f23",
291
+ "fontFamily": "BeVietnamPro-Regular",
292
+ "fontSize": 16,
293
+ "letterSpacing": 0.48,
294
+ "lineHeight": 24,
267
295
  },
268
- undefined,
269
- ],
270
- ]
271
- }
272
- themeIntent="body"
273
- themeTypeface="neutral"
274
- themeVariant="regular"
275
- >
276
- Please try again later
277
- </Text>
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
- "backgroundColor": "#f6f6f7",
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
- "alignItems": "center",
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
- "height": 176,
317
- "marginBottom": 32,
318
- "width": 176,
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
- <Image
325
- source={
326
- {
327
- "uri": "path_to_image",
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
- "borderRadius": 0,
334
- "height": 72,
335
- "width": 72,
417
+ "color": "#001f23",
418
+ "fontFamily": "RebondGrotesque-SemiBold",
419
+ "fontSize": 24,
420
+ "letterSpacing": 0.24,
421
+ "lineHeight": 32,
336
422
  },
337
423
  [
338
424
  {
339
- "height": 176,
340
- "marginBottom": 32,
341
- "resizeMode": "contain",
342
- "width": 176,
425
+ "color": "#001f23",
426
+ "marginBottom": 8,
427
+ "textAlign": "center",
343
428
  },
344
429
  undefined,
345
430
  ],
346
431
  ]
347
432
  }
348
- testID="success-image"
349
- />
350
- </View>
351
- <Text
352
- allowFontScaling={false}
353
- style={
354
- [
355
- {
356
- "color": "#001f23",
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
- "marginBottom": 8,
366
- "textAlign": "center",
367
- },
368
- undefined,
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
- undefined,
395
- ],
396
- ]
397
- }
398
- themeIntent="body"
399
- themeTypeface="neutral"
400
- themeVariant="regular"
401
- >
402
- Please try again later
403
- </Text>
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
- "backgroundColor": "#f6f6f7",
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
- "alignItems": "center",
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
- <Text
439
- allowFontScaling={false}
512
+ <View
440
513
  style={
441
514
  [
442
515
  {
443
- "color": "#001f23",
444
- "fontFamily": "RebondGrotesque-SemiBold",
445
- "fontSize": 24,
446
- "letterSpacing": 0.24,
447
- "lineHeight": 32,
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
- "marginBottom": 8,
453
- "textAlign": "center",
533
+ "fontFamily": "RebondGrotesque-SemiBold",
534
+ "fontSize": 24,
535
+ "letterSpacing": 0.24,
536
+ "lineHeight": 32,
454
537
  },
455
- undefined,
456
- ],
457
- ]
458
- }
459
- themeIntent="body"
460
- themeLevel="h4"
461
- themeTypeface="playful"
462
- >
463
- We’re sorry, something went wrong
464
- </Text>
465
- <Text
466
- allowFontScaling={false}
467
- style={
468
- [
469
- {
470
- "color": "#001f23",
471
- "fontFamily": "BeVietnamPro-Regular",
472
- "fontSize": 16,
473
- "letterSpacing": 0.48,
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": "#4d6265",
479
- "textAlign": "center",
559
+ "color": "#001f23",
560
+ "fontFamily": "BeVietnamPro-Regular",
561
+ "fontSize": 16,
562
+ "letterSpacing": 0.48,
563
+ "lineHeight": 24,
480
564
  },
481
- undefined,
482
- ],
483
- ]
484
- }
485
- themeIntent="body"
486
- themeTypeface="neutral"
487
- themeVariant="regular"
488
- >
489
- Please try again later
490
- </Text>
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
  `;