@terreno/ui 0.26.0 → 0.28.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 (83) hide show
  1. package/dist/ActionSheet.js.map +1 -1
  2. package/dist/Box.js +2 -0
  3. package/dist/Box.js.map +1 -1
  4. package/dist/Common.d.ts +8 -7
  5. package/dist/Common.js.map +1 -1
  6. package/dist/ConsentNavigator.js.map +1 -1
  7. package/dist/CustomSelectField.js +2 -2
  8. package/dist/CustomSelectField.js.map +1 -1
  9. package/dist/DateTimeField.js +1 -0
  10. package/dist/DateTimeField.js.map +1 -1
  11. package/dist/EmailField.js +1 -1
  12. package/dist/EmailField.js.map +1 -1
  13. package/dist/Modal.js +7 -2
  14. package/dist/Modal.js.map +1 -1
  15. package/dist/Page.js +1 -0
  16. package/dist/Page.js.map +1 -1
  17. package/dist/PickerSelect.d.ts +4 -5
  18. package/dist/PickerSelect.js +4 -3
  19. package/dist/PickerSelect.js.map +1 -1
  20. package/dist/SelectBadge.js +1 -1
  21. package/dist/SelectBadge.js.map +1 -1
  22. package/dist/SelectField.js +3 -3
  23. package/dist/SelectField.js.map +1 -1
  24. package/dist/SplitPage.js +3 -0
  25. package/dist/SplitPage.js.map +1 -1
  26. package/dist/SplitPage.native.js +2 -0
  27. package/dist/SplitPage.native.js.map +1 -1
  28. package/dist/TapToEdit.js +1 -0
  29. package/dist/TapToEdit.js.map +1 -1
  30. package/dist/ToastNotifications.js.map +1 -1
  31. package/dist/Unifier.js.map +1 -1
  32. package/dist/WebDropdownMenu.d.ts +7 -8
  33. package/dist/WebDropdownMenu.js +4 -3
  34. package/dist/WebDropdownMenu.js.map +1 -1
  35. package/dist/useSubmitConsent.d.ts +1 -1
  36. package/dist/useSubmitConsent.js +1 -1
  37. package/dist/useSubmitConsent.js.map +1 -1
  38. package/package.json +2 -2
  39. package/src/ActionSheet.test.tsx +1 -0
  40. package/src/ActionSheet.tsx +2 -0
  41. package/src/Box.test.tsx +56 -0
  42. package/src/Box.tsx +4 -0
  43. package/src/Button.test.tsx +34 -0
  44. package/src/Common.ts +31 -7
  45. package/src/ConsentNavigator.test.tsx +1 -0
  46. package/src/ConsentNavigator.tsx +1 -0
  47. package/src/CustomSelectField.test.tsx +3 -8
  48. package/src/CustomSelectField.tsx +2 -2
  49. package/src/DataTable.test.tsx +1 -0
  50. package/src/DateTimeField.test.tsx +1 -0
  51. package/src/DateTimeField.tsx +1 -0
  52. package/src/EmailField.tsx +1 -1
  53. package/src/Modal.test.tsx +261 -66
  54. package/src/Modal.tsx +7 -2
  55. package/src/ModalSheet.test.tsx +7 -6
  56. package/src/Page.tsx +1 -0
  57. package/src/PickerSelect.test.tsx +23 -18
  58. package/src/PickerSelect.tsx +6 -6
  59. package/src/SelectBadge.test.tsx +1 -2
  60. package/src/SelectBadge.tsx +1 -1
  61. package/src/SelectField.tsx +2 -2
  62. package/src/SplitPage.native.tsx +2 -0
  63. package/src/SplitPage.test.tsx +6 -4
  64. package/src/SplitPage.tsx +3 -0
  65. package/src/TapToEdit.test.tsx +1 -0
  66. package/src/TapToEdit.tsx +2 -0
  67. package/src/Text.test.tsx +29 -0
  68. package/src/TextField.test.tsx +57 -1
  69. package/src/ToastNotifications.test.tsx +1 -0
  70. package/src/ToastNotifications.tsx +1 -0
  71. package/src/Tooltip.test.tsx +1 -1
  72. package/src/Unifier.ts +1 -0
  73. package/src/UpgradeRequiredScreen.test.tsx +40 -0
  74. package/src/UserInactivity.test.tsx +44 -1
  75. package/src/WebDropdownMenu.test.tsx +14 -19
  76. package/src/WebDropdownMenu.tsx +8 -8
  77. package/src/__snapshots__/DataTable.test.tsx.snap +0 -148
  78. package/src/__snapshots__/InfoModalIcon.test.tsx.snap +255 -1088
  79. package/src/__snapshots__/Modal.test.tsx.snap +950 -1108
  80. package/src/bunSetup.ts +24 -0
  81. package/src/types/react-native-swiper-flatlist.d.ts +1 -0
  82. package/src/useSubmitConsent.test.ts +2 -1
  83. package/src/useSubmitConsent.ts +2 -2
@@ -1,956 +1,120 @@
1
1
  // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
2
 
3
3
  exports[`InfoModalIcon renders correctly with required props 1`] = `
4
- [
5
- {
6
- "$$typeof": Symbol(react.test.json),
7
- "children": [
8
- {
9
- "$$typeof": Symbol(react.test.json),
10
- "children": [
11
- {
12
- "$$typeof": Symbol(react.test.json),
13
- "children": [
14
- {
15
- "$$typeof": Symbol(react.test.json),
16
- "children": [
17
- {
18
- "$$typeof": Symbol(react.test.json),
19
- "children": [
20
- {
21
- "$$typeof": Symbol(react.test.json),
22
- "children": null,
23
- "props": {
24
- "accessibilityHint": "Closes the modal",
25
- "aria-label": "Close modal",
26
- "aria-role": "button",
27
- "onPress": [Function],
28
- "style": {
29
- "alignItems": "center",
30
- "bottom": -8,
31
- "flex": 1,
32
- "justifyContent": "center",
33
- "left": -8,
34
- "position": "absolute",
35
- "right": -8,
36
- "top": -8,
37
- },
38
- },
39
- "type": "Pressable",
40
- },
41
- ],
42
- "props": {
43
- "style": {
44
- "alignSelf": "flex-end",
45
- "position": "relative",
46
- },
47
- "testID": undefined,
48
- },
49
- "type": "View",
50
- },
51
- {
52
- "$$typeof": Symbol(react.test.json),
53
- "children": [
54
- {
55
- "$$typeof": Symbol(react.test.json),
56
- "children": [
57
- "Info Title",
58
- ],
59
- "props": {
60
- "numberOfLines": 0,
61
- "style": {
62
- "color": "#1C1C1C",
63
- "fontFamily": "heading-bold",
64
- "fontSize": 20,
65
- },
66
- "testID": undefined,
67
- },
68
- "type": "Text",
69
- },
70
- ],
71
- "props": {
72
- "accessibilityHint": "Modal title",
73
- "aria-label": "Info Title",
74
- "aria-role": "header",
75
- "style": {
76
- "alignSelf": "flex-start",
77
- },
78
- "testID": undefined,
79
- },
80
- "type": "View",
81
- },
82
- {
83
- "$$typeof": Symbol(react.test.json),
84
- "children": [
85
- {
86
- "$$typeof": Symbol(react.test.json),
87
- "children": [
88
- {
89
- "$$typeof": Symbol(react.test.json),
90
- "children": [
91
- "This is information text",
92
- ],
93
- "props": {
94
- "numberOfLines": 0,
95
- "selectable": undefined,
96
- "style": {
97
- "color": "#1C1C1C",
98
- "fontFamily": "text-regular",
99
- "fontSize": 14,
100
- "textAlign": "left",
101
- },
102
- "testID": undefined,
103
- },
104
- "type": "Text",
105
- },
106
- ],
107
- "props": {},
108
- "type": "View",
109
- },
110
- ],
111
- "props": {
112
- "accessibilityHint": "Modal body text",
113
- "aria-label": "This is information text",
114
- "aria-role": "text",
115
- "style": {
116
- "alignSelf": "flex-start",
117
- "marginVertical": 12,
118
- },
119
- "testID": undefined,
120
- },
121
- "type": "View",
122
- },
123
- {
124
- "$$typeof": Symbol(react.test.json),
125
- "children": [
126
- {
127
- "$$typeof": Symbol(react.test.json),
128
- "children": [
129
- {
130
- "$$typeof": Symbol(react.test.json),
131
- "children": [
132
- {
133
- "$$typeof": Symbol(react.test.json),
134
- "children": [
135
- {
136
- "$$typeof": Symbol(react.test.json),
137
- "children": [
138
- "Close",
139
- ],
140
- "props": {
141
- "style": {
142
- "color": "#FFFFFF",
143
- "fontSize": 16,
144
- "fontWeight": "700",
145
- },
146
- },
147
- "type": "Text",
148
- },
149
- ],
150
- "props": {
151
- "style": {
152
- "flexDirection": "row",
153
- },
154
- "testID": undefined,
155
- },
156
- "type": "View",
157
- },
158
- ],
159
- "props": {
160
- "style": {
161
- "flexDirection": "row",
162
- },
163
- "testID": undefined,
164
- },
165
- "type": "View",
166
- },
167
- ],
168
- "props": {
169
- "accessibilityHint": "Press to perform action",
170
- "accessibilityLabel": "Close",
171
- "accessibilityRole": "button",
172
- "accessibilityState": {
173
- "disabled": false,
174
- },
175
- "disabled": false,
176
- "onPress": [Function: debounced],
177
- "style": {
178
- "alignItems": "center",
179
- "alignSelf": "flex-start",
180
- "backgroundColor": "#0E9DCD",
181
- "borderColor": undefined,
182
- "borderRadius": 360,
183
- "borderWidth": undefined,
184
- "flexDirection": "column",
185
- "height": undefined,
186
- "justifyContent": "center",
187
- "paddingHorizontal": 20,
188
- "paddingVertical": 8,
189
- "width": "auto",
190
- },
191
- "testID": undefined,
192
- },
193
- "type": "PressableScale",
194
- },
195
- ],
196
- "props": {
197
- "style": {
198
- "alignSelf": "flex-end",
199
- "flexDirection": "row",
200
- "marginTop": 20,
201
- },
202
- "testID": undefined,
203
- },
204
- "type": "View",
205
- },
206
- ],
207
- "props": {
208
- "style": {
209
- "alignItems": "center",
210
- "alignSelf": "center",
211
- "backgroundColor": "#FFFFFF",
212
- "borderRadius": 4,
213
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
214
- "elevation": 24,
215
- "margin": "auto",
216
- "maxHeight": "100%",
217
- "padding": 32,
218
- "width": "90%",
219
- "zIndex": 1,
220
- },
221
- "testID": undefined,
222
- },
223
- "type": "View",
224
- },
225
- ],
226
- "props": {
227
- "onPress": [Function],
228
- "style": {
229
- "cursor": "auto",
230
- },
231
- },
232
- "type": "Pressable",
233
- },
234
- ],
235
- "props": {
236
- "onPress": [Function],
237
- "style": {
238
- "alignItems": "center",
239
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
240
- "flex": 1,
241
- "justifyContent": "center",
242
- },
243
- },
244
- "type": "Pressable",
245
- },
246
- ],
247
- "props": {
248
- "animationType": "none",
249
- "onRequestClose": [Function],
250
- "transparent": true,
251
- "visible": false,
252
- },
253
- "type": "Modal",
254
- },
255
- {
256
- "$$typeof": Symbol(react.test.json),
257
- "children": [
258
- {
259
- "$$typeof": Symbol(react.test.json),
260
- "children": [
261
- "ⓘ",
262
- ],
263
- "props": {
264
- "numberOfLines": 0,
265
- "style": {
266
- "color": "#686868",
267
- "fontFamily": "heading-semibold",
268
- "fontSize": 14,
269
- },
270
- "testID": undefined,
271
- },
272
- "type": "Text",
273
- },
274
- ],
275
- "props": {
276
- "aria-role": "button",
277
- "hitSlop": {
278
- "bottom": 10,
279
- "left": 10,
280
- "right": 10,
281
- "top": 10,
282
- },
283
- "onPress": [Function],
284
- "style": {
285
- "marginLeft": 8,
286
- },
287
- "testID": "info-icon",
288
- },
289
- "type": "Pressable",
290
- },
291
- ]
292
- `;
293
-
294
- exports[`InfoModalIcon renders with subtitle 1`] = `
295
- [
296
- {
297
- "$$typeof": Symbol(react.test.json),
298
- "children": [
299
- {
300
- "$$typeof": Symbol(react.test.json),
301
- "children": [
302
- {
303
- "$$typeof": Symbol(react.test.json),
304
- "children": [
305
- {
306
- "$$typeof": Symbol(react.test.json),
307
- "children": [
308
- {
309
- "$$typeof": Symbol(react.test.json),
310
- "children": [
311
- {
312
- "$$typeof": Symbol(react.test.json),
313
- "children": null,
314
- "props": {
315
- "accessibilityHint": "Closes the modal",
316
- "aria-label": "Close modal",
317
- "aria-role": "button",
318
- "onPress": [Function],
319
- "style": {
320
- "alignItems": "center",
321
- "bottom": -8,
322
- "flex": 1,
323
- "justifyContent": "center",
324
- "left": -8,
325
- "position": "absolute",
326
- "right": -8,
327
- "top": -8,
328
- },
329
- },
330
- "type": "Pressable",
331
- },
332
- ],
333
- "props": {
334
- "style": {
335
- "alignSelf": "flex-end",
336
- "position": "relative",
337
- },
338
- "testID": undefined,
339
- },
340
- "type": "View",
341
- },
342
- {
343
- "$$typeof": Symbol(react.test.json),
344
- "children": [
345
- {
346
- "$$typeof": Symbol(react.test.json),
347
- "children": [
348
- "Title",
349
- ],
350
- "props": {
351
- "numberOfLines": 0,
352
- "style": {
353
- "color": "#1C1C1C",
354
- "fontFamily": "heading-bold",
355
- "fontSize": 20,
356
- },
357
- "testID": undefined,
358
- },
359
- "type": "Text",
360
- },
361
- ],
362
- "props": {
363
- "accessibilityHint": "Modal title",
364
- "aria-label": "Title",
365
- "aria-role": "header",
366
- "style": {
367
- "alignSelf": "flex-start",
368
- },
369
- "testID": undefined,
370
- },
371
- "type": "View",
372
- },
373
- {
374
- "$$typeof": Symbol(react.test.json),
375
- "children": [
376
- {
377
- "$$typeof": Symbol(react.test.json),
378
- "children": [
379
- {
380
- "$$typeof": Symbol(react.test.json),
381
- "children": [
382
- "Subtitle text",
383
- ],
384
- "props": {
385
- "numberOfLines": 0,
386
- "selectable": undefined,
387
- "style": {
388
- "color": "#1C1C1C",
389
- "fontFamily": "text-medium",
390
- "fontSize": 16,
391
- "textAlign": "left",
392
- },
393
- "testID": undefined,
394
- },
395
- "type": "Text",
396
- },
397
- ],
398
- "props": {},
399
- "type": "View",
400
- },
401
- ],
402
- "props": {
403
- "accessibilityHint": "Modal Sub Heading Text",
404
- "aria-label": "Subtitle text",
405
- "aria-role": "text",
406
- "style": {
407
- "alignSelf": "flex-start",
408
- "marginTop": 8,
409
- },
410
- "testID": undefined,
411
- },
412
- "type": "View",
413
- },
414
- {
415
- "$$typeof": Symbol(react.test.json),
416
- "children": [
417
- {
418
- "$$typeof": Symbol(react.test.json),
419
- "children": [
420
- {
421
- "$$typeof": Symbol(react.test.json),
422
- "children": [
423
- "Main text content",
424
- ],
425
- "props": {
426
- "numberOfLines": 0,
427
- "selectable": undefined,
428
- "style": {
429
- "color": "#1C1C1C",
430
- "fontFamily": "text-regular",
431
- "fontSize": 14,
432
- "textAlign": "left",
433
- },
434
- "testID": undefined,
435
- },
436
- "type": "Text",
437
- },
438
- ],
439
- "props": {},
440
- "type": "View",
441
- },
442
- ],
443
- "props": {
444
- "accessibilityHint": "Modal body text",
445
- "aria-label": "Main text content",
446
- "aria-role": "text",
447
- "style": {
448
- "alignSelf": "flex-start",
449
- "marginVertical": 12,
450
- },
451
- "testID": undefined,
452
- },
453
- "type": "View",
454
- },
455
- {
456
- "$$typeof": Symbol(react.test.json),
457
- "children": [
458
- {
459
- "$$typeof": Symbol(react.test.json),
460
- "children": [
461
- {
462
- "$$typeof": Symbol(react.test.json),
463
- "children": [
464
- {
465
- "$$typeof": Symbol(react.test.json),
466
- "children": [
467
- {
468
- "$$typeof": Symbol(react.test.json),
469
- "children": [
470
- "Close",
471
- ],
472
- "props": {
473
- "style": {
474
- "color": "#FFFFFF",
475
- "fontSize": 16,
476
- "fontWeight": "700",
477
- },
478
- },
479
- "type": "Text",
480
- },
481
- ],
482
- "props": {
483
- "style": {
484
- "flexDirection": "row",
485
- },
486
- "testID": undefined,
487
- },
488
- "type": "View",
489
- },
490
- ],
491
- "props": {
492
- "style": {
493
- "flexDirection": "row",
494
- },
495
- "testID": undefined,
496
- },
497
- "type": "View",
498
- },
499
- ],
500
- "props": {
501
- "accessibilityHint": "Press to perform action",
502
- "accessibilityLabel": "Close",
503
- "accessibilityRole": "button",
504
- "accessibilityState": {
505
- "disabled": false,
506
- },
507
- "disabled": false,
508
- "onPress": [Function: debounced],
509
- "style": {
510
- "alignItems": "center",
511
- "alignSelf": "flex-start",
512
- "backgroundColor": "#0E9DCD",
513
- "borderColor": undefined,
514
- "borderRadius": 360,
515
- "borderWidth": undefined,
516
- "flexDirection": "column",
517
- "height": undefined,
518
- "justifyContent": "center",
519
- "paddingHorizontal": 20,
520
- "paddingVertical": 8,
521
- "width": "auto",
522
- },
523
- "testID": undefined,
524
- },
525
- "type": "PressableScale",
526
- },
527
- ],
528
- "props": {
529
- "style": {
530
- "alignSelf": "flex-end",
531
- "flexDirection": "row",
532
- "marginTop": 20,
533
- },
534
- "testID": undefined,
535
- },
536
- "type": "View",
537
- },
538
- ],
539
- "props": {
540
- "style": {
541
- "alignItems": "center",
542
- "alignSelf": "center",
543
- "backgroundColor": "#FFFFFF",
544
- "borderRadius": 4,
545
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
546
- "elevation": 24,
547
- "margin": "auto",
548
- "maxHeight": "100%",
549
- "padding": 32,
550
- "width": "90%",
551
- "zIndex": 1,
552
- },
553
- "testID": undefined,
554
- },
555
- "type": "View",
556
- },
557
- ],
558
- "props": {
559
- "onPress": [Function],
560
- "style": {
561
- "cursor": "auto",
562
- },
563
- },
564
- "type": "Pressable",
565
- },
566
- ],
567
- "props": {
568
- "onPress": [Function],
569
- "style": {
570
- "alignItems": "center",
571
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
572
- "flex": 1,
573
- "justifyContent": "center",
574
- },
575
- },
576
- "type": "Pressable",
577
- },
578
- ],
579
- "props": {
580
- "animationType": "none",
581
- "onRequestClose": [Function],
582
- "transparent": true,
583
- "visible": false,
584
- },
585
- "type": "Modal",
586
- },
587
- {
588
- "$$typeof": Symbol(react.test.json),
589
- "children": [
590
- {
591
- "$$typeof": Symbol(react.test.json),
592
- "children": [
593
- "ⓘ",
594
- ],
595
- "props": {
596
- "numberOfLines": 0,
597
- "style": {
598
- "color": "#686868",
599
- "fontFamily": "heading-semibold",
600
- "fontSize": 14,
601
- },
602
- "testID": undefined,
603
- },
604
- "type": "Text",
605
- },
606
- ],
607
- "props": {
608
- "aria-role": "button",
609
- "hitSlop": {
610
- "bottom": 10,
611
- "left": 10,
612
- "right": 10,
613
- "top": 10,
614
- },
615
- "onPress": [Function],
616
- "style": {
617
- "marginLeft": 8,
618
- },
619
- "testID": "info-icon",
620
- },
621
- "type": "Pressable",
622
- },
623
- ]
624
- `;
625
-
626
- exports[`InfoModalIcon renders with children content 1`] = `
627
- [
628
- {
629
- "$$typeof": Symbol(react.test.json),
630
- "children": [
631
- {
632
- "$$typeof": Symbol(react.test.json),
633
- "children": [
634
- {
635
- "$$typeof": Symbol(react.test.json),
636
- "children": [
637
- {
638
- "$$typeof": Symbol(react.test.json),
639
- "children": [
640
- {
641
- "$$typeof": Symbol(react.test.json),
642
- "children": [
643
- {
644
- "$$typeof": Symbol(react.test.json),
645
- "children": null,
646
- "props": {
647
- "accessibilityHint": "Closes the modal",
648
- "aria-label": "Close modal",
649
- "aria-role": "button",
650
- "onPress": [Function],
651
- "style": {
652
- "alignItems": "center",
653
- "bottom": -8,
654
- "flex": 1,
655
- "justifyContent": "center",
656
- "left": -8,
657
- "position": "absolute",
658
- "right": -8,
659
- "top": -8,
660
- },
661
- },
662
- "type": "Pressable",
663
- },
664
- ],
665
- "props": {
666
- "style": {
667
- "alignSelf": "flex-end",
668
- "position": "relative",
669
- },
670
- "testID": undefined,
671
- },
672
- "type": "View",
673
- },
674
- {
675
- "$$typeof": Symbol(react.test.json),
676
- "children": [
677
- {
678
- "$$typeof": Symbol(react.test.json),
679
- "children": [
680
- "Title",
681
- ],
682
- "props": {
683
- "numberOfLines": 0,
684
- "style": {
685
- "color": "#1C1C1C",
686
- "fontFamily": "heading-bold",
687
- "fontSize": 20,
688
- },
689
- "testID": undefined,
690
- },
691
- "type": "Text",
692
- },
693
- ],
694
- "props": {
695
- "accessibilityHint": "Modal title",
696
- "aria-label": "Title",
697
- "aria-role": "header",
698
- "style": {
699
- "alignSelf": "flex-start",
700
- },
701
- "testID": undefined,
702
- },
703
- "type": "View",
704
- },
705
- {
706
- "$$typeof": Symbol(react.test.json),
707
- "children": [
708
- {
709
- "$$typeof": Symbol(react.test.json),
710
- "children": [
711
- {
712
- "$$typeof": Symbol(react.test.json),
713
- "children": [
714
- "Text content",
715
- ],
716
- "props": {
717
- "numberOfLines": 0,
718
- "selectable": undefined,
719
- "style": {
720
- "color": "#1C1C1C",
721
- "fontFamily": "text-regular",
722
- "fontSize": 14,
723
- "textAlign": "left",
724
- },
725
- "testID": undefined,
726
- },
727
- "type": "Text",
728
- },
729
- ],
730
- "props": {},
731
- "type": "View",
732
- },
733
- ],
734
- "props": {
735
- "accessibilityHint": "Modal body text",
736
- "aria-label": "Text content",
737
- "aria-role": "text",
738
- "style": {
739
- "alignSelf": "flex-start",
740
- "marginVertical": 12,
741
- },
742
- "testID": undefined,
743
- },
744
- "type": "View",
745
- },
746
- {
747
- "$$typeof": Symbol(react.test.json),
748
- "children": [
749
- {
750
- "$$typeof": Symbol(react.test.json),
751
- "children": [
752
- {
753
- "$$typeof": Symbol(react.test.json),
754
- "children": [
755
- "Custom children content",
756
- ],
757
- "props": {
758
- "numberOfLines": 0,
759
- "selectable": undefined,
760
- "style": {
761
- "color": "#1C1C1C",
762
- "fontFamily": "text-regular",
763
- "fontSize": 14,
764
- "textAlign": "left",
765
- },
766
- "testID": undefined,
767
- },
768
- "type": "Text",
769
- },
770
- ],
771
- "props": {},
772
- "type": "View",
773
- },
774
- ],
775
- "props": {
776
- "style": {
777
- "flex": 1,
778
- "marginTop": 0,
779
- "width": "100%",
780
- },
781
- "testID": undefined,
782
- },
783
- "type": "View",
784
- },
785
- {
786
- "$$typeof": Symbol(react.test.json),
787
- "children": [
788
- {
789
- "$$typeof": Symbol(react.test.json),
790
- "children": [
791
- {
792
- "$$typeof": Symbol(react.test.json),
793
- "children": [
794
- {
795
- "$$typeof": Symbol(react.test.json),
796
- "children": [
797
- {
798
- "$$typeof": Symbol(react.test.json),
799
- "children": [
800
- "Close",
801
- ],
802
- "props": {
803
- "style": {
804
- "color": "#FFFFFF",
805
- "fontSize": 16,
806
- "fontWeight": "700",
807
- },
808
- },
809
- "type": "Text",
810
- },
811
- ],
812
- "props": {
813
- "style": {
814
- "flexDirection": "row",
815
- },
816
- "testID": undefined,
817
- },
818
- "type": "View",
819
- },
820
- ],
821
- "props": {
822
- "style": {
823
- "flexDirection": "row",
824
- },
825
- "testID": undefined,
826
- },
827
- "type": "View",
828
- },
829
- ],
830
- "props": {
831
- "accessibilityHint": "Press to perform action",
832
- "accessibilityLabel": "Close",
833
- "accessibilityRole": "button",
834
- "accessibilityState": {
835
- "disabled": false,
836
- },
837
- "disabled": false,
838
- "onPress": [Function: debounced],
839
- "style": {
840
- "alignItems": "center",
841
- "alignSelf": "flex-start",
842
- "backgroundColor": "#0E9DCD",
843
- "borderColor": undefined,
844
- "borderRadius": 360,
845
- "borderWidth": undefined,
846
- "flexDirection": "column",
847
- "height": undefined,
848
- "justifyContent": "center",
849
- "paddingHorizontal": 20,
850
- "paddingVertical": 8,
851
- "width": "auto",
852
- },
853
- "testID": undefined,
854
- },
855
- "type": "PressableScale",
856
- },
857
- ],
858
- "props": {
859
- "style": {
860
- "alignSelf": "flex-end",
861
- "flexDirection": "row",
862
- "marginTop": 32,
863
- },
864
- "testID": undefined,
865
- },
866
- "type": "View",
867
- },
868
- ],
869
- "props": {
870
- "style": {
871
- "alignItems": "center",
872
- "alignSelf": "center",
873
- "backgroundColor": "#FFFFFF",
874
- "borderRadius": 4,
875
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
876
- "elevation": 24,
877
- "margin": "auto",
878
- "maxHeight": "100%",
879
- "padding": 32,
880
- "width": "90%",
881
- "zIndex": 1,
882
- },
883
- "testID": undefined,
884
- },
885
- "type": "View",
886
- },
887
- ],
888
- "props": {
889
- "onPress": [Function],
890
- "style": {
891
- "cursor": "auto",
892
- },
893
- },
894
- "type": "Pressable",
895
- },
896
- ],
897
- "props": {
898
- "onPress": [Function],
899
- "style": {
900
- "alignItems": "center",
901
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
902
- "flex": 1,
903
- "justifyContent": "center",
904
- },
4
+ {
5
+ "$$typeof": Symbol(react.test.json),
6
+ "children": [
7
+ {
8
+ "$$typeof": Symbol(react.test.json),
9
+ "children": [
10
+ "ⓘ",
11
+ ],
12
+ "props": {
13
+ "numberOfLines": 0,
14
+ "style": {
15
+ "color": "#686868",
16
+ "fontFamily": "heading-semibold",
17
+ "fontSize": 14,
905
18
  },
906
- "type": "Pressable",
19
+ "testID": undefined,
907
20
  },
908
- ],
909
- "props": {
910
- "animationType": "none",
911
- "onRequestClose": [Function],
912
- "transparent": true,
913
- "visible": false,
21
+ "type": "Text",
22
+ },
23
+ ],
24
+ "props": {
25
+ "aria-role": "button",
26
+ "hitSlop": {
27
+ "bottom": 10,
28
+ "left": 10,
29
+ "right": 10,
30
+ "top": 10,
31
+ },
32
+ "onPress": [Function],
33
+ "style": {
34
+ "marginLeft": 8,
914
35
  },
915
- "type": "Modal",
36
+ "testID": "info-icon",
916
37
  },
917
- {
918
- "$$typeof": Symbol(react.test.json),
919
- "children": [
920
- {
921
- "$$typeof": Symbol(react.test.json),
922
- "children": [
923
- "ⓘ",
924
- ],
925
- "props": {
926
- "numberOfLines": 0,
927
- "style": {
928
- "color": "#686868",
929
- "fontFamily": "heading-semibold",
930
- "fontSize": 14,
931
- },
932
- "testID": undefined,
38
+ "type": "Pressable",
39
+ }
40
+ `;
41
+
42
+ exports[`InfoModalIcon renders with subtitle 1`] = `
43
+ {
44
+ "$$typeof": Symbol(react.test.json),
45
+ "children": [
46
+ {
47
+ "$$typeof": Symbol(react.test.json),
48
+ "children": [
49
+ "ⓘ",
50
+ ],
51
+ "props": {
52
+ "numberOfLines": 0,
53
+ "style": {
54
+ "color": "#686868",
55
+ "fontFamily": "heading-semibold",
56
+ "fontSize": 14,
933
57
  },
934
- "type": "Text",
935
- },
936
- ],
937
- "props": {
938
- "aria-role": "button",
939
- "hitSlop": {
940
- "bottom": 10,
941
- "left": 10,
942
- "right": 10,
943
- "top": 10,
58
+ "testID": undefined,
944
59
  },
945
- "onPress": [Function],
946
- "style": {
947
- "marginLeft": 8,
60
+ "type": "Text",
61
+ },
62
+ ],
63
+ "props": {
64
+ "aria-role": "button",
65
+ "hitSlop": {
66
+ "bottom": 10,
67
+ "left": 10,
68
+ "right": 10,
69
+ "top": 10,
70
+ },
71
+ "onPress": [Function],
72
+ "style": {
73
+ "marginLeft": 8,
74
+ },
75
+ "testID": "info-icon",
76
+ },
77
+ "type": "Pressable",
78
+ }
79
+ `;
80
+
81
+ exports[`InfoModalIcon renders with children content 1`] = `
82
+ {
83
+ "$$typeof": Symbol(react.test.json),
84
+ "children": [
85
+ {
86
+ "$$typeof": Symbol(react.test.json),
87
+ "children": [
88
+ "ⓘ",
89
+ ],
90
+ "props": {
91
+ "numberOfLines": 0,
92
+ "style": {
93
+ "color": "#686868",
94
+ "fontFamily": "heading-semibold",
95
+ "fontSize": 14,
96
+ },
97
+ "testID": undefined,
948
98
  },
949
- "testID": "info-icon",
99
+ "type": "Text",
950
100
  },
951
- "type": "Pressable",
101
+ ],
102
+ "props": {
103
+ "aria-role": "button",
104
+ "hitSlop": {
105
+ "bottom": 10,
106
+ "left": 10,
107
+ "right": 10,
108
+ "top": 10,
109
+ },
110
+ "onPress": [Function],
111
+ "style": {
112
+ "marginLeft": 8,
113
+ },
114
+ "testID": "info-icon",
952
115
  },
953
- ]
116
+ "type": "Pressable",
117
+ }
954
118
  `;
955
119
 
956
120
  exports[`InfoModalIcon opens modal when pressed 1`] = `
@@ -961,6 +125,34 @@ exports[`InfoModalIcon opens modal when pressed 1`] = `
961
125
  {
962
126
  "$$typeof": Symbol(react.test.json),
963
127
  "children": [
128
+ {
129
+ "$$typeof": Symbol(react.test.json),
130
+ "children": null,
131
+ "props": {
132
+ "accessibilityHint": "Pull down to close the modal",
133
+ "aria-label": "Pull down bar",
134
+ "aria-role": "adjustable",
135
+ "hitSlop": {
136
+ "bottom": 20,
137
+ "left": 50,
138
+ "right": 50,
139
+ "top": 20,
140
+ },
141
+ "style": {
142
+ "alignItems": "center",
143
+ "alignSelf": "center",
144
+ "backgroundColor": "#9A9A9A",
145
+ "borderRadius": 5,
146
+ "height": 3,
147
+ "justifyContent": "center",
148
+ "marginTop": 10,
149
+ "padding": 2,
150
+ "width": "30%",
151
+ },
152
+ "testID": undefined,
153
+ },
154
+ "type": "View",
155
+ },
964
156
  {
965
157
  "$$typeof": Symbol(react.test.json),
966
158
  "children": [
@@ -969,110 +161,110 @@ exports[`InfoModalIcon opens modal when pressed 1`] = `
969
161
  "children": [
970
162
  {
971
163
  "$$typeof": Symbol(react.test.json),
972
- "children": [
973
- {
974
- "$$typeof": Symbol(react.test.json),
975
- "children": null,
976
- "props": {
977
- "accessibilityHint": "Closes the modal",
978
- "aria-label": "Close modal",
979
- "aria-role": "button",
980
- "onPress": [Function],
981
- "style": {
982
- "alignItems": "center",
983
- "bottom": -8,
984
- "flex": 1,
985
- "justifyContent": "center",
986
- "left": -8,
987
- "position": "absolute",
988
- "right": -8,
989
- "top": -8,
990
- },
991
- },
992
- "type": "Pressable",
164
+ "children": null,
165
+ "props": {
166
+ "accessibilityHint": "Closes the modal",
167
+ "aria-label": "Close modal",
168
+ "aria-role": "button",
169
+ "onPress": [Function],
170
+ "style": {
171
+ "alignItems": "center",
172
+ "bottom": -8,
173
+ "flex": 1,
174
+ "justifyContent": "center",
175
+ "left": -8,
176
+ "position": "absolute",
177
+ "right": -8,
178
+ "top": -8,
993
179
  },
180
+ },
181
+ "type": "Pressable",
182
+ },
183
+ ],
184
+ "props": {
185
+ "style": {
186
+ "alignSelf": "flex-end",
187
+ "position": "relative",
188
+ },
189
+ "testID": undefined,
190
+ },
191
+ "type": "View",
192
+ },
193
+ {
194
+ "$$typeof": Symbol(react.test.json),
195
+ "children": [
196
+ {
197
+ "$$typeof": Symbol(react.test.json),
198
+ "children": [
199
+ "Modal Title",
994
200
  ],
995
201
  "props": {
202
+ "numberOfLines": 0,
996
203
  "style": {
997
- "alignSelf": "flex-end",
998
- "position": "relative",
204
+ "color": "#1C1C1C",
205
+ "fontFamily": "heading-bold",
206
+ "fontSize": 20,
999
207
  },
1000
208
  "testID": undefined,
1001
209
  },
1002
- "type": "View",
210
+ "type": "Text",
1003
211
  },
212
+ ],
213
+ "props": {
214
+ "accessibilityHint": "Modal title",
215
+ "aria-label": "Modal Title",
216
+ "aria-role": "header",
217
+ "style": {
218
+ "alignSelf": "flex-start",
219
+ },
220
+ "testID": undefined,
221
+ },
222
+ "type": "View",
223
+ },
224
+ {
225
+ "$$typeof": Symbol(react.test.json),
226
+ "children": [
1004
227
  {
1005
228
  "$$typeof": Symbol(react.test.json),
1006
229
  "children": [
1007
230
  {
1008
231
  "$$typeof": Symbol(react.test.json),
1009
232
  "children": [
1010
- "Modal Title",
233
+ "Modal text",
1011
234
  ],
1012
235
  "props": {
1013
236
  "numberOfLines": 0,
237
+ "selectable": undefined,
1014
238
  "style": {
1015
239
  "color": "#1C1C1C",
1016
- "fontFamily": "heading-bold",
1017
- "fontSize": 20,
240
+ "fontFamily": "text-regular",
241
+ "fontSize": 14,
242
+ "textAlign": "left",
1018
243
  },
1019
244
  "testID": undefined,
1020
245
  },
1021
246
  "type": "Text",
1022
247
  },
1023
248
  ],
1024
- "props": {
1025
- "accessibilityHint": "Modal title",
1026
- "aria-label": "Modal Title",
1027
- "aria-role": "header",
1028
- "style": {
1029
- "alignSelf": "flex-start",
1030
- },
1031
- "testID": undefined,
1032
- },
249
+ "props": {},
1033
250
  "type": "View",
1034
251
  },
1035
- {
1036
- "$$typeof": Symbol(react.test.json),
1037
- "children": [
1038
- {
1039
- "$$typeof": Symbol(react.test.json),
1040
- "children": [
1041
- {
1042
- "$$typeof": Symbol(react.test.json),
1043
- "children": [
1044
- "Modal text",
1045
- ],
1046
- "props": {
1047
- "numberOfLines": 0,
1048
- "selectable": undefined,
1049
- "style": {
1050
- "color": "#1C1C1C",
1051
- "fontFamily": "text-regular",
1052
- "fontSize": 14,
1053
- "textAlign": "left",
1054
- },
1055
- "testID": undefined,
1056
- },
1057
- "type": "Text",
1058
- },
1059
- ],
1060
- "props": {},
1061
- "type": "View",
1062
- },
1063
- ],
1064
- "props": {
1065
- "accessibilityHint": "Modal body text",
1066
- "aria-label": "Modal text",
1067
- "aria-role": "text",
1068
- "style": {
1069
- "alignSelf": "flex-start",
1070
- "marginVertical": 12,
1071
- },
1072
- "testID": undefined,
1073
- },
1074
- "type": "View",
252
+ ],
253
+ "props": {
254
+ "accessibilityHint": "Modal body text",
255
+ "aria-label": "Modal text",
256
+ "aria-role": "text",
257
+ "style": {
258
+ "alignSelf": "flex-start",
259
+ "marginVertical": 12,
1075
260
  },
261
+ "testID": undefined,
262
+ },
263
+ "type": "View",
264
+ },
265
+ {
266
+ "$$typeof": Symbol(react.test.json),
267
+ "children": [
1076
268
  {
1077
269
  "$$typeof": Symbol(react.test.json),
1078
270
  "children": [
@@ -1085,28 +277,16 @@ exports[`InfoModalIcon opens modal when pressed 1`] = `
1085
277
  {
1086
278
  "$$typeof": Symbol(react.test.json),
1087
279
  "children": [
1088
- {
1089
- "$$typeof": Symbol(react.test.json),
1090
- "children": [
1091
- "Close",
1092
- ],
1093
- "props": {
1094
- "style": {
1095
- "color": "#FFFFFF",
1096
- "fontSize": 16,
1097
- "fontWeight": "700",
1098
- },
1099
- },
1100
- "type": "Text",
1101
- },
280
+ "Close",
1102
281
  ],
1103
282
  "props": {
1104
283
  "style": {
1105
- "flexDirection": "row",
284
+ "color": "#FFFFFF",
285
+ "fontSize": 16,
286
+ "fontWeight": "700",
1106
287
  },
1107
- "testID": undefined,
1108
288
  },
1109
- "type": "View",
289
+ "type": "Text",
1110
290
  },
1111
291
  ],
1112
292
  "props": {
@@ -1119,57 +299,47 @@ exports[`InfoModalIcon opens modal when pressed 1`] = `
1119
299
  },
1120
300
  ],
1121
301
  "props": {
1122
- "accessibilityHint": "Press to perform action",
1123
- "accessibilityLabel": "Close",
1124
- "accessibilityRole": "button",
1125
- "accessibilityState": {
1126
- "disabled": false,
1127
- },
1128
- "disabled": false,
1129
- "onPress": [Function: debounced],
1130
302
  "style": {
1131
- "alignItems": "center",
1132
- "alignSelf": "flex-start",
1133
- "backgroundColor": "#0E9DCD",
1134
- "borderColor": undefined,
1135
- "borderRadius": 360,
1136
- "borderWidth": undefined,
1137
- "flexDirection": "column",
1138
- "height": undefined,
1139
- "justifyContent": "center",
1140
- "paddingHorizontal": 20,
1141
- "paddingVertical": 8,
1142
- "width": "auto",
303
+ "flexDirection": "row",
1143
304
  },
1144
305
  "testID": undefined,
1145
306
  },
1146
- "type": "PressableScale",
307
+ "type": "View",
1147
308
  },
1148
309
  ],
1149
310
  "props": {
311
+ "accessibilityHint": "Press to perform action",
312
+ "accessibilityLabel": "Close",
313
+ "accessibilityRole": "button",
314
+ "accessibilityState": {
315
+ "disabled": false,
316
+ },
317
+ "disabled": false,
318
+ "onPress": [Function: debounced],
1150
319
  "style": {
1151
- "alignSelf": "flex-end",
1152
- "flexDirection": "row",
1153
- "marginTop": 20,
320
+ "alignItems": "center",
321
+ "alignSelf": "flex-start",
322
+ "backgroundColor": "#0E9DCD",
323
+ "borderColor": undefined,
324
+ "borderRadius": 360,
325
+ "borderWidth": undefined,
326
+ "flexDirection": "column",
327
+ "height": undefined,
328
+ "justifyContent": "center",
329
+ "paddingHorizontal": 20,
330
+ "paddingVertical": 8,
331
+ "width": "auto",
1154
332
  },
1155
333
  "testID": undefined,
1156
334
  },
1157
- "type": "View",
335
+ "type": "PressableScale",
1158
336
  },
1159
337
  ],
1160
338
  "props": {
1161
339
  "style": {
1162
- "alignItems": "center",
1163
- "alignSelf": "center",
1164
- "backgroundColor": "#FFFFFF",
1165
- "borderRadius": 4,
1166
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
1167
- "elevation": 24,
1168
- "margin": "auto",
1169
- "maxHeight": "100%",
1170
- "padding": 32,
1171
- "width": "90%",
1172
- "zIndex": 1,
340
+ "alignSelf": "flex-end",
341
+ "flexDirection": "row",
342
+ "marginTop": 20,
1173
343
  },
1174
344
  "testID": undefined,
1175
345
  },
@@ -1177,33 +347,30 @@ exports[`InfoModalIcon opens modal when pressed 1`] = `
1177
347
  },
1178
348
  ],
1179
349
  "props": {
1180
- "onPress": [Function],
1181
350
  "style": {
1182
- "cursor": "auto",
351
+ "alignItems": "center",
352
+ "alignSelf": "center",
353
+ "backgroundColor": "#FFFFFF",
354
+ "borderRadius": 4,
355
+ "maxHeight": "100%",
356
+ "padding": 32,
357
+ "width": "90%",
358
+ "zIndex": 1,
1183
359
  },
360
+ "testID": undefined,
1184
361
  },
1185
- "type": "Pressable",
362
+ "type": "View",
1186
363
  },
1187
364
  ],
1188
365
  "props": {
1189
- "onPress": [Function],
1190
- "style": {
1191
- "alignItems": "center",
1192
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
1193
- "flex": 1,
1194
- "justifyContent": "center",
1195
- },
366
+ "style": undefined,
367
+ "testID": undefined,
1196
368
  },
1197
- "type": "Pressable",
369
+ "type": "View",
1198
370
  },
1199
371
  ],
1200
- "props": {
1201
- "animationType": "none",
1202
- "onRequestClose": [Function],
1203
- "transparent": true,
1204
- "visible": true,
1205
- },
1206
- "type": "Modal",
372
+ "props": {},
373
+ "type": "ActionSheetMock",
1207
374
  },
1208
375
  {
1209
376
  "$$typeof": Symbol(react.test.json),