@terreno/ui 0.25.0 → 0.27.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 (130) hide show
  1. package/.ai/guidelines/core.md +1 -0
  2. package/dist/ActionSheet.js.map +1 -1
  3. package/dist/AiSuggestionBox.js +1 -1
  4. package/dist/AiSuggestionBox.js.map +1 -1
  5. package/dist/Avatar.js +4 -1
  6. package/dist/Avatar.js.map +1 -1
  7. package/dist/BooleanField.js +2 -1
  8. package/dist/BooleanField.js.map +1 -1
  9. package/dist/Box.js +2 -0
  10. package/dist/Box.js.map +1 -1
  11. package/dist/Common.d.ts +7 -1
  12. package/dist/Common.js +1 -1
  13. package/dist/Common.js.map +1 -1
  14. package/dist/ConsentNavigator.js.map +1 -1
  15. package/dist/CustomSelectField.js +1 -1
  16. package/dist/CustomSelectField.js.map +1 -1
  17. package/dist/DateTimeField.js +4 -1
  18. package/dist/DateTimeField.js.map +1 -1
  19. package/dist/EmailField.js +1 -1
  20. package/dist/EmailField.js.map +1 -1
  21. package/dist/HeightField.js +3 -1
  22. package/dist/HeightField.js.map +1 -1
  23. package/dist/IconButton.js +10 -1
  24. package/dist/IconButton.js.map +1 -1
  25. package/dist/MarkdownEditorField.js +3 -1
  26. package/dist/MarkdownEditorField.js.map +1 -1
  27. package/dist/Modal.js +7 -2
  28. package/dist/Modal.js.map +1 -1
  29. package/dist/MultiselectField.js +2 -1
  30. package/dist/MultiselectField.js.map +1 -1
  31. package/dist/Page.js +1 -0
  32. package/dist/Page.js.map +1 -1
  33. package/dist/Permissions.d.ts +1 -1
  34. package/dist/Permissions.js +2 -2
  35. package/dist/Permissions.js.map +1 -1
  36. package/dist/SelectField.js +3 -1
  37. package/dist/SelectField.js.map +1 -1
  38. package/dist/SplitPage.js +3 -0
  39. package/dist/SplitPage.js.map +1 -1
  40. package/dist/SplitPage.native.js +2 -0
  41. package/dist/SplitPage.native.js.map +1 -1
  42. package/dist/TapToEdit.js +1 -0
  43. package/dist/TapToEdit.js.map +1 -1
  44. package/dist/TextField.js +3 -1
  45. package/dist/TextField.js.map +1 -1
  46. package/dist/ToastNotifications.js.map +1 -1
  47. package/dist/Unifier.js.map +1 -1
  48. package/dist/index.d.ts +8 -2
  49. package/dist/index.js +6 -2
  50. package/dist/index.js.map +1 -1
  51. package/dist/useSubmitConsent.d.ts +1 -1
  52. package/dist/useSubmitConsent.js +1 -1
  53. package/dist/useSubmitConsent.js.map +1 -1
  54. package/package.json +2 -2
  55. package/src/ActionSheet.test.tsx +1 -0
  56. package/src/ActionSheet.tsx +2 -0
  57. package/src/AiSuggestionBox.tsx +1 -1
  58. package/src/Avatar.tsx +4 -1
  59. package/src/Badge.test.tsx +1 -2
  60. package/src/BooleanField.tsx +2 -1
  61. package/src/Box.test.tsx +56 -0
  62. package/src/Box.tsx +4 -0
  63. package/src/Button.test.tsx +34 -0
  64. package/src/Common.ts +31 -1
  65. package/src/ConsentNavigator.test.tsx +1 -0
  66. package/src/ConsentNavigator.tsx +1 -0
  67. package/src/CustomSelectField.tsx +1 -1
  68. package/src/DataTable.test.tsx +1 -0
  69. package/src/DateTimeField.test.tsx +1 -0
  70. package/src/DateTimeField.tsx +4 -1
  71. package/src/EmailField.tsx +1 -1
  72. package/src/HeightField.tsx +3 -1
  73. package/src/IconButton.test.tsx +26 -0
  74. package/src/IconButton.tsx +10 -0
  75. package/src/MarkdownEditorField.tsx +3 -1
  76. package/src/Modal.test.tsx +261 -66
  77. package/src/Modal.tsx +7 -2
  78. package/src/ModalSheet.test.tsx +7 -6
  79. package/src/MultiselectField.tsx +2 -1
  80. package/src/Page.tsx +1 -0
  81. package/src/Permissions.ts +2 -2
  82. package/src/PickerSelect.test.tsx +1 -0
  83. package/src/SelectBadge.test.tsx +1 -2
  84. package/src/SelectField.tsx +3 -1
  85. package/src/Signature.test.tsx +52 -0
  86. package/src/SplitPage.native.tsx +2 -0
  87. package/src/SplitPage.test.tsx +6 -4
  88. package/src/SplitPage.tsx +3 -0
  89. package/src/TapToEdit.test.tsx +1 -0
  90. package/src/TapToEdit.tsx +2 -0
  91. package/src/Text.test.tsx +29 -0
  92. package/src/TextField.test.tsx +57 -1
  93. package/src/TextField.tsx +3 -1
  94. package/src/ToastNotifications.test.tsx +1 -0
  95. package/src/ToastNotifications.tsx +1 -0
  96. package/src/Tooltip.test.tsx +1 -1
  97. package/src/Unifier.ts +1 -0
  98. package/src/UpgradeRequiredScreen.test.tsx +40 -0
  99. package/src/UserInactivity.test.tsx +44 -1
  100. package/src/WebDropdownMenu.test.tsx +116 -1
  101. package/src/__snapshots__/DataTable.test.tsx.snap +0 -148
  102. package/src/__snapshots__/IconButton.test.tsx.snap +4 -0
  103. package/src/__snapshots__/InfoModalIcon.test.tsx.snap +255 -1088
  104. package/src/__snapshots__/Modal.test.tsx.snap +950 -1108
  105. package/src/bunSetup.ts +24 -0
  106. package/src/createWebPortal.test.tsx +17 -0
  107. package/src/index.tsx +18 -2
  108. package/src/types/react-native-swiper-flatlist.d.ts +1 -0
  109. package/src/useSubmitConsent.test.ts +2 -1
  110. package/src/useSubmitConsent.ts +2 -2
  111. package/dist/fieldElements/index.d.ts +0 -3
  112. package/dist/fieldElements/index.js +0 -4
  113. package/dist/fieldElements/index.js.map +0 -1
  114. package/dist/icons/index.d.ts +0 -5
  115. package/dist/icons/index.js +0 -6
  116. package/dist/icons/index.js.map +0 -1
  117. package/dist/login/index.d.ts +0 -2
  118. package/dist/login/index.js +0 -2
  119. package/dist/login/index.js.map +0 -1
  120. package/dist/signUp/index.d.ts +0 -6
  121. package/dist/signUp/index.js +0 -6
  122. package/dist/signUp/index.js.map +0 -1
  123. package/dist/testing/index.d.ts +0 -2
  124. package/dist/testing/index.js +0 -3
  125. package/dist/testing/index.js.map +0 -1
  126. package/src/fieldElements/index.tsx +0 -3
  127. package/src/icons/index.ts +0 -5
  128. package/src/login/index.ts +0 -2
  129. package/src/signUp/index.ts +0 -13
  130. package/src/testing/index.ts +0 -2
@@ -7,324 +7,149 @@ exports[`Modal renders correctly when visible 1`] = `
7
7
  {
8
8
  "$$typeof": Symbol(react.test.json),
9
9
  "children": [
10
+ {
11
+ "$$typeof": Symbol(react.test.json),
12
+ "children": null,
13
+ "props": {
14
+ "accessibilityHint": "Pull down to close the modal",
15
+ "aria-label": "Pull down bar",
16
+ "aria-role": "adjustable",
17
+ "hitSlop": {
18
+ "bottom": 20,
19
+ "left": 50,
20
+ "right": 50,
21
+ "top": 20,
22
+ },
23
+ "style": {
24
+ "alignItems": "center",
25
+ "alignSelf": "center",
26
+ "backgroundColor": "#9A9A9A",
27
+ "borderRadius": 5,
28
+ "height": 3,
29
+ "justifyContent": "center",
30
+ "marginTop": 10,
31
+ "padding": 2,
32
+ "width": "30%",
33
+ },
34
+ "testID": undefined,
35
+ },
36
+ "type": "View",
37
+ },
10
38
  {
11
39
  "$$typeof": Symbol(react.test.json),
12
40
  "children": [
13
41
  {
14
42
  "$$typeof": Symbol(react.test.json),
15
43
  "children": [
16
- {
17
- "$$typeof": Symbol(react.test.json),
18
- "children": [
19
- {
20
- "$$typeof": Symbol(react.test.json),
21
- "children": null,
22
- "props": {
23
- "accessibilityHint": "Closes the modal",
24
- "aria-label": "Close modal",
25
- "aria-role": "button",
26
- "onPress": [Function],
27
- "style": {
28
- "alignItems": "center",
29
- "bottom": -8,
30
- "flex": 1,
31
- "justifyContent": "center",
32
- "left": -8,
33
- "position": "absolute",
34
- "right": -8,
35
- "top": -8,
36
- },
37
- },
38
- "type": "Pressable",
39
- },
40
- ],
41
- "props": {
42
- "style": {
43
- "alignSelf": "flex-end",
44
- "position": "relative",
45
- },
46
- "testID": undefined,
47
- },
48
- "type": "View",
49
- },
50
- {
51
- "$$typeof": Symbol(react.test.json),
52
- "children": [
53
- {
54
- "$$typeof": Symbol(react.test.json),
55
- "children": [
56
- "Test Modal",
57
- ],
58
- "props": {
59
- "numberOfLines": 0,
60
- "style": {
61
- "color": "#1C1C1C",
62
- "fontFamily": "heading-bold",
63
- "fontSize": 20,
64
- },
65
- "testID": undefined,
66
- },
67
- "type": "Text",
68
- },
69
- ],
70
- "props": {
71
- "accessibilityHint": "Modal title",
72
- "aria-label": "Test Modal",
73
- "aria-role": "header",
74
- "style": {
75
- "alignSelf": "flex-start",
76
- },
77
- "testID": undefined,
78
- },
79
- "type": "View",
80
- },
81
- {
82
- "$$typeof": Symbol(react.test.json),
83
- "children": [
84
- {
85
- "$$typeof": Symbol(react.test.json),
86
- "children": [
87
- {
88
- "$$typeof": Symbol(react.test.json),
89
- "children": [
90
- "Modal content",
91
- ],
92
- "props": {
93
- "numberOfLines": 0,
94
- "selectable": undefined,
95
- "style": {
96
- "color": "#1C1C1C",
97
- "fontFamily": "text-regular",
98
- "fontSize": 14,
99
- "textAlign": "left",
100
- },
101
- "testID": undefined,
102
- },
103
- "type": "Text",
104
- },
105
- ],
106
- "props": {},
107
- "type": "View",
108
- },
109
- ],
110
- "props": {
111
- "style": {
112
- "flex": 1,
113
- "marginTop": 12,
114
- "width": "100%",
115
- },
116
- "testID": undefined,
117
- },
118
- "type": "View",
119
- },
120
44
  {
121
45
  "$$typeof": Symbol(react.test.json),
122
46
  "children": null,
123
47
  "props": {
48
+ "accessibilityHint": "Closes the modal",
49
+ "aria-label": "Close modal",
50
+ "aria-role": "button",
51
+ "onPress": [Function],
124
52
  "style": {
125
- "alignSelf": "flex-end",
126
- "flexDirection": "row",
127
- "marginTop": 32,
53
+ "alignItems": "center",
54
+ "bottom": -8,
55
+ "flex": 1,
56
+ "justifyContent": "center",
57
+ "left": -8,
58
+ "position": "absolute",
59
+ "right": -8,
60
+ "top": -8,
128
61
  },
129
- "testID": undefined,
130
62
  },
131
- "type": "View",
63
+ "type": "Pressable",
132
64
  },
133
65
  ],
134
66
  "props": {
135
67
  "style": {
136
- "alignItems": "center",
137
- "alignSelf": "center",
138
- "backgroundColor": "#FFFFFF",
139
- "borderRadius": 4,
140
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
141
- "elevation": 24,
142
- "margin": "auto",
143
- "maxHeight": "100%",
144
- "padding": 32,
145
- "width": "90%",
146
- "zIndex": 1,
68
+ "alignSelf": "flex-end",
69
+ "position": "relative",
147
70
  },
148
71
  "testID": undefined,
149
72
  },
150
73
  "type": "View",
151
74
  },
152
- ],
153
- "props": {
154
- "onPress": [Function],
155
- "style": {
156
- "cursor": "auto",
157
- },
158
- },
159
- "type": "Pressable",
160
- },
161
- ],
162
- "props": {
163
- "onPress": [Function],
164
- "style": {
165
- "alignItems": "center",
166
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
167
- "flex": 1,
168
- "justifyContent": "center",
169
- },
170
- },
171
- "type": "Pressable",
172
- },
173
- ],
174
- "props": {
175
- "animationType": "none",
176
- "onRequestClose": [Function],
177
- "transparent": true,
178
- "visible": true,
179
- },
180
- "type": "Modal",
181
- }
182
- `;
183
-
184
- exports[`Modal does not show content when not visible 1`] = `
185
- {
186
- "$$typeof": Symbol(react.test.json),
187
- "children": [
188
- {
189
- "$$typeof": Symbol(react.test.json),
190
- "children": [
191
- {
192
- "$$typeof": Symbol(react.test.json),
193
- "children": [
194
75
  {
195
76
  "$$typeof": Symbol(react.test.json),
196
77
  "children": [
197
78
  {
198
79
  "$$typeof": Symbol(react.test.json),
199
80
  "children": [
200
- {
201
- "$$typeof": Symbol(react.test.json),
202
- "children": null,
203
- "props": {
204
- "accessibilityHint": "Closes the modal",
205
- "aria-label": "Close modal",
206
- "aria-role": "button",
207
- "onPress": [Function],
208
- "style": {
209
- "alignItems": "center",
210
- "bottom": -8,
211
- "flex": 1,
212
- "justifyContent": "center",
213
- "left": -8,
214
- "position": "absolute",
215
- "right": -8,
216
- "top": -8,
217
- },
218
- },
219
- "type": "Pressable",
220
- },
81
+ "Test Modal",
221
82
  ],
222
83
  "props": {
84
+ "numberOfLines": 0,
223
85
  "style": {
224
- "alignSelf": "flex-end",
225
- "position": "relative",
86
+ "color": "#1C1C1C",
87
+ "fontFamily": "heading-bold",
88
+ "fontSize": 20,
226
89
  },
227
90
  "testID": undefined,
228
91
  },
229
- "type": "View",
92
+ "type": "Text",
230
93
  },
94
+ ],
95
+ "props": {
96
+ "accessibilityHint": "Modal title",
97
+ "aria-label": "Test Modal",
98
+ "aria-role": "header",
99
+ "style": {
100
+ "alignSelf": "flex-start",
101
+ },
102
+ "testID": undefined,
103
+ },
104
+ "type": "View",
105
+ },
106
+ {
107
+ "$$typeof": Symbol(react.test.json),
108
+ "children": [
231
109
  {
232
110
  "$$typeof": Symbol(react.test.json),
233
111
  "children": [
234
112
  {
235
113
  "$$typeof": Symbol(react.test.json),
236
114
  "children": [
237
- "Test Modal",
115
+ "Modal content",
238
116
  ],
239
117
  "props": {
240
118
  "numberOfLines": 0,
119
+ "selectable": undefined,
241
120
  "style": {
242
121
  "color": "#1C1C1C",
243
- "fontFamily": "heading-bold",
244
- "fontSize": 20,
122
+ "fontFamily": "text-regular",
123
+ "fontSize": 14,
124
+ "textAlign": "left",
245
125
  },
246
126
  "testID": undefined,
247
127
  },
248
128
  "type": "Text",
249
129
  },
250
130
  ],
251
- "props": {
252
- "accessibilityHint": "Modal title",
253
- "aria-label": "Test Modal",
254
- "aria-role": "header",
255
- "style": {
256
- "alignSelf": "flex-start",
257
- },
258
- "testID": undefined,
259
- },
260
- "type": "View",
261
- },
262
- {
263
- "$$typeof": Symbol(react.test.json),
264
- "children": [
265
- {
266
- "$$typeof": Symbol(react.test.json),
267
- "children": [
268
- {
269
- "$$typeof": Symbol(react.test.json),
270
- "children": [
271
- "Modal content",
272
- ],
273
- "props": {
274
- "numberOfLines": 0,
275
- "selectable": undefined,
276
- "style": {
277
- "color": "#1C1C1C",
278
- "fontFamily": "text-regular",
279
- "fontSize": 14,
280
- "textAlign": "left",
281
- },
282
- "testID": undefined,
283
- },
284
- "type": "Text",
285
- },
286
- ],
287
- "props": {},
288
- "type": "View",
289
- },
290
- ],
291
- "props": {
292
- "style": {
293
- "flex": 1,
294
- "marginTop": 12,
295
- "width": "100%",
296
- },
297
- "testID": undefined,
298
- },
299
- "type": "View",
300
- },
301
- {
302
- "$$typeof": Symbol(react.test.json),
303
- "children": null,
304
- "props": {
305
- "style": {
306
- "alignSelf": "flex-end",
307
- "flexDirection": "row",
308
- "marginTop": 32,
309
- },
310
- "testID": undefined,
311
- },
131
+ "props": {},
312
132
  "type": "View",
313
133
  },
314
134
  ],
315
135
  "props": {
316
136
  "style": {
317
- "alignItems": "center",
318
- "alignSelf": "center",
319
- "backgroundColor": "#FFFFFF",
320
- "borderRadius": 4,
321
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
322
- "elevation": 24,
323
- "margin": "auto",
324
- "maxHeight": "100%",
325
- "padding": 32,
326
- "width": "90%",
327
- "zIndex": 1,
137
+ "flex": undefined,
138
+ "marginTop": 12,
139
+ "width": "100%",
140
+ },
141
+ "testID": undefined,
142
+ },
143
+ "type": "View",
144
+ },
145
+ {
146
+ "$$typeof": Symbol(react.test.json),
147
+ "children": null,
148
+ "props": {
149
+ "style": {
150
+ "alignSelf": "flex-end",
151
+ "flexDirection": "row",
152
+ "marginTop": 32,
328
153
  },
329
154
  "testID": undefined,
330
155
  },
@@ -332,36 +157,35 @@ exports[`Modal does not show content when not visible 1`] = `
332
157
  },
333
158
  ],
334
159
  "props": {
335
- "onPress": [Function],
336
160
  "style": {
337
- "cursor": "auto",
161
+ "alignItems": "center",
162
+ "alignSelf": "center",
163
+ "backgroundColor": "#FFFFFF",
164
+ "borderRadius": 4,
165
+ "maxHeight": "100%",
166
+ "padding": 32,
167
+ "width": "90%",
168
+ "zIndex": 1,
338
169
  },
170
+ "testID": undefined,
339
171
  },
340
- "type": "Pressable",
172
+ "type": "View",
341
173
  },
342
174
  ],
343
175
  "props": {
344
- "onPress": [Function],
345
- "style": {
346
- "alignItems": "center",
347
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
348
- "flex": 1,
349
- "justifyContent": "center",
350
- },
176
+ "style": undefined,
177
+ "testID": undefined,
351
178
  },
352
- "type": "Pressable",
179
+ "type": "View",
353
180
  },
354
181
  ],
355
- "props": {
356
- "animationType": "none",
357
- "onRequestClose": [Function],
358
- "transparent": true,
359
- "visible": false,
360
- },
361
- "type": "Modal",
182
+ "props": {},
183
+ "type": "ActionSheetMock",
362
184
  }
363
185
  `;
364
186
 
187
+ exports[`Modal does not show content when not visible 1`] = `null`;
188
+
365
189
  exports[`Modal renders with both buttons 1`] = `
366
190
  {
367
191
  "$$typeof": Symbol(react.test.json),
@@ -369,6 +193,34 @@ exports[`Modal renders with both buttons 1`] = `
369
193
  {
370
194
  "$$typeof": Symbol(react.test.json),
371
195
  "children": [
196
+ {
197
+ "$$typeof": Symbol(react.test.json),
198
+ "children": null,
199
+ "props": {
200
+ "accessibilityHint": "Pull down to close the modal",
201
+ "aria-label": "Pull down bar",
202
+ "aria-role": "adjustable",
203
+ "hitSlop": {
204
+ "bottom": 20,
205
+ "left": 50,
206
+ "right": 50,
207
+ "top": 20,
208
+ },
209
+ "style": {
210
+ "alignItems": "center",
211
+ "alignSelf": "center",
212
+ "backgroundColor": "#9A9A9A",
213
+ "borderRadius": 5,
214
+ "height": 3,
215
+ "justifyContent": "center",
216
+ "marginTop": 10,
217
+ "padding": 2,
218
+ "width": "30%",
219
+ },
220
+ "testID": undefined,
221
+ },
222
+ "type": "View",
223
+ },
372
224
  {
373
225
  "$$typeof": Symbol(react.test.json),
374
226
  "children": [
@@ -377,108 +229,108 @@ exports[`Modal renders with both buttons 1`] = `
377
229
  "children": [
378
230
  {
379
231
  "$$typeof": Symbol(react.test.json),
380
- "children": [
381
- {
382
- "$$typeof": Symbol(react.test.json),
383
- "children": null,
384
- "props": {
385
- "accessibilityHint": "Closes the modal",
386
- "aria-label": "Close modal",
387
- "aria-role": "button",
388
- "onPress": [Function],
389
- "style": {
390
- "alignItems": "center",
391
- "bottom": -8,
392
- "flex": 1,
393
- "justifyContent": "center",
394
- "left": -8,
395
- "position": "absolute",
396
- "right": -8,
397
- "top": -8,
398
- },
399
- },
400
- "type": "Pressable",
232
+ "children": null,
233
+ "props": {
234
+ "accessibilityHint": "Closes the modal",
235
+ "aria-label": "Close modal",
236
+ "aria-role": "button",
237
+ "onPress": [Function],
238
+ "style": {
239
+ "alignItems": "center",
240
+ "bottom": -8,
241
+ "flex": 1,
242
+ "justifyContent": "center",
243
+ "left": -8,
244
+ "position": "absolute",
245
+ "right": -8,
246
+ "top": -8,
401
247
  },
248
+ },
249
+ "type": "Pressable",
250
+ },
251
+ ],
252
+ "props": {
253
+ "style": {
254
+ "alignSelf": "flex-end",
255
+ "position": "relative",
256
+ },
257
+ "testID": undefined,
258
+ },
259
+ "type": "View",
260
+ },
261
+ {
262
+ "$$typeof": Symbol(react.test.json),
263
+ "children": [
264
+ {
265
+ "$$typeof": Symbol(react.test.json),
266
+ "children": [
267
+ "Confirm Action",
402
268
  ],
403
269
  "props": {
270
+ "numberOfLines": 0,
404
271
  "style": {
405
- "alignSelf": "flex-end",
406
- "position": "relative",
272
+ "color": "#1C1C1C",
273
+ "fontFamily": "heading-bold",
274
+ "fontSize": 20,
407
275
  },
408
276
  "testID": undefined,
409
277
  },
410
- "type": "View",
278
+ "type": "Text",
411
279
  },
280
+ ],
281
+ "props": {
282
+ "accessibilityHint": "Modal title",
283
+ "aria-label": "Confirm Action",
284
+ "aria-role": "header",
285
+ "style": {
286
+ "alignSelf": "flex-start",
287
+ },
288
+ "testID": undefined,
289
+ },
290
+ "type": "View",
291
+ },
292
+ {
293
+ "$$typeof": Symbol(react.test.json),
294
+ "children": [
412
295
  {
413
296
  "$$typeof": Symbol(react.test.json),
414
297
  "children": [
415
298
  {
416
299
  "$$typeof": Symbol(react.test.json),
417
300
  "children": [
418
- "Confirm Action",
301
+ "Are you sure?",
419
302
  ],
420
303
  "props": {
421
304
  "numberOfLines": 0,
305
+ "selectable": undefined,
422
306
  "style": {
423
307
  "color": "#1C1C1C",
424
- "fontFamily": "heading-bold",
425
- "fontSize": 20,
308
+ "fontFamily": "text-regular",
309
+ "fontSize": 14,
310
+ "textAlign": "left",
426
311
  },
427
312
  "testID": undefined,
428
313
  },
429
314
  "type": "Text",
430
315
  },
431
316
  ],
432
- "props": {
433
- "accessibilityHint": "Modal title",
434
- "aria-label": "Confirm Action",
435
- "aria-role": "header",
436
- "style": {
437
- "alignSelf": "flex-start",
438
- },
439
- "testID": undefined,
440
- },
317
+ "props": {},
441
318
  "type": "View",
442
319
  },
443
- {
444
- "$$typeof": Symbol(react.test.json),
445
- "children": [
446
- {
447
- "$$typeof": Symbol(react.test.json),
448
- "children": [
449
- {
450
- "$$typeof": Symbol(react.test.json),
451
- "children": [
452
- "Are you sure?",
453
- ],
454
- "props": {
455
- "numberOfLines": 0,
456
- "selectable": undefined,
457
- "style": {
458
- "color": "#1C1C1C",
459
- "fontFamily": "text-regular",
460
- "fontSize": 14,
461
- "textAlign": "left",
462
- },
463
- "testID": undefined,
464
- },
465
- "type": "Text",
466
- },
467
- ],
468
- "props": {},
469
- "type": "View",
470
- },
471
- ],
472
- "props": {
473
- "style": {
474
- "flex": 1,
475
- "marginTop": 12,
476
- "width": "100%",
477
- },
478
- "testID": undefined,
479
- },
480
- "type": "View",
320
+ ],
321
+ "props": {
322
+ "style": {
323
+ "flex": undefined,
324
+ "marginTop": 12,
325
+ "width": "100%",
481
326
  },
327
+ "testID": undefined,
328
+ },
329
+ "type": "View",
330
+ },
331
+ {
332
+ "$$typeof": Symbol(react.test.json),
333
+ "children": [
482
334
  {
483
335
  "$$typeof": Symbol(react.test.json),
484
336
  "children": [
@@ -494,92 +346,11 @@ exports[`Modal renders with both buttons 1`] = `
494
346
  {
495
347
  "$$typeof": Symbol(react.test.json),
496
348
  "children": [
497
- {
498
- "$$typeof": Symbol(react.test.json),
499
- "children": [
500
- "Cancel",
501
- ],
502
- "props": {
503
- "style": {
504
- "color": "#353535",
505
- "fontSize": 16,
506
- "fontWeight": "700",
507
- },
508
- },
509
- "type": "Text",
510
- },
349
+ "Cancel",
511
350
  ],
512
351
  "props": {
513
352
  "style": {
514
- "flexDirection": "row",
515
- },
516
- "testID": undefined,
517
- },
518
- "type": "View",
519
- },
520
- ],
521
- "props": {
522
- "style": {
523
- "flexDirection": "row",
524
- },
525
- "testID": undefined,
526
- },
527
- "type": "View",
528
- },
529
- ],
530
- "props": {
531
- "accessibilityHint": "Press to perform action",
532
- "accessibilityLabel": "Cancel",
533
- "accessibilityRole": "button",
534
- "accessibilityState": {
535
- "disabled": false,
536
- },
537
- "disabled": false,
538
- "onPress": [Function: debounced],
539
- "style": {
540
- "alignItems": "center",
541
- "alignSelf": "flex-start",
542
- "backgroundColor": "#B6CDD5",
543
- "borderColor": undefined,
544
- "borderRadius": 360,
545
- "borderWidth": undefined,
546
- "flexDirection": "column",
547
- "height": undefined,
548
- "justifyContent": "center",
549
- "paddingHorizontal": 20,
550
- "paddingVertical": 8,
551
- "width": "auto",
552
- },
553
- "testID": undefined,
554
- },
555
- "type": "PressableScale",
556
- },
557
- ],
558
- "props": {
559
- "style": {
560
- "marginRight": 20,
561
- },
562
- "testID": undefined,
563
- },
564
- "type": "View",
565
- },
566
- {
567
- "$$typeof": Symbol(react.test.json),
568
- "children": [
569
- {
570
- "$$typeof": Symbol(react.test.json),
571
- "children": [
572
- {
573
- "$$typeof": Symbol(react.test.json),
574
- "children": [
575
- {
576
- "$$typeof": Symbol(react.test.json),
577
- "children": [
578
- "Save",
579
- ],
580
- "props": {
581
- "style": {
582
- "color": "#FFFFFF",
353
+ "color": "#353535",
583
354
  "fontSize": 16,
584
355
  "fontWeight": "700",
585
356
  },
@@ -607,7 +378,7 @@ exports[`Modal renders with both buttons 1`] = `
607
378
  ],
608
379
  "props": {
609
380
  "accessibilityHint": "Press to perform action",
610
- "accessibilityLabel": "Save",
381
+ "accessibilityLabel": "Cancel",
611
382
  "accessibilityRole": "button",
612
383
  "accessibilityState": {
613
384
  "disabled": false,
@@ -617,7 +388,7 @@ exports[`Modal renders with both buttons 1`] = `
617
388
  "style": {
618
389
  "alignItems": "center",
619
390
  "alignSelf": "flex-start",
620
- "backgroundColor": "#0E9DCD",
391
+ "backgroundColor": "#B6CDD5",
621
392
  "borderColor": undefined,
622
393
  "borderRadius": 360,
623
394
  "borderWidth": undefined,
@@ -635,177 +406,7 @@ exports[`Modal renders with both buttons 1`] = `
635
406
  ],
636
407
  "props": {
637
408
  "style": {
638
- "alignSelf": "flex-end",
639
- "flexDirection": "row",
640
- "marginTop": 32,
641
- },
642
- "testID": undefined,
643
- },
644
- "type": "View",
645
- },
646
- ],
647
- "props": {
648
- "style": {
649
- "alignItems": "center",
650
- "alignSelf": "center",
651
- "backgroundColor": "#FFFFFF",
652
- "borderRadius": 4,
653
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
654
- "elevation": 24,
655
- "margin": "auto",
656
- "maxHeight": "100%",
657
- "padding": 32,
658
- "width": "90%",
659
- "zIndex": 1,
660
- },
661
- "testID": undefined,
662
- },
663
- "type": "View",
664
- },
665
- ],
666
- "props": {
667
- "onPress": [Function],
668
- "style": {
669
- "cursor": "auto",
670
- },
671
- },
672
- "type": "Pressable",
673
- },
674
- ],
675
- "props": {
676
- "onPress": [Function],
677
- "style": {
678
- "alignItems": "center",
679
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
680
- "flex": 1,
681
- "justifyContent": "center",
682
- },
683
- },
684
- "type": "Pressable",
685
- },
686
- ],
687
- "props": {
688
- "animationType": "none",
689
- "onRequestClose": [Function],
690
- "transparent": true,
691
- "visible": true,
692
- },
693
- "type": "Modal",
694
- }
695
- `;
696
-
697
- exports[`Modal renders with disabled primary button 1`] = `
698
- {
699
- "$$typeof": Symbol(react.test.json),
700
- "children": [
701
- {
702
- "$$typeof": Symbol(react.test.json),
703
- "children": [
704
- {
705
- "$$typeof": Symbol(react.test.json),
706
- "children": [
707
- {
708
- "$$typeof": Symbol(react.test.json),
709
- "children": [
710
- {
711
- "$$typeof": Symbol(react.test.json),
712
- "children": [
713
- {
714
- "$$typeof": Symbol(react.test.json),
715
- "children": null,
716
- "props": {
717
- "accessibilityHint": "Closes the modal",
718
- "aria-label": "Close modal",
719
- "aria-role": "button",
720
- "onPress": [Function],
721
- "style": {
722
- "alignItems": "center",
723
- "bottom": -8,
724
- "flex": 1,
725
- "justifyContent": "center",
726
- "left": -8,
727
- "position": "absolute",
728
- "right": -8,
729
- "top": -8,
730
- },
731
- },
732
- "type": "Pressable",
733
- },
734
- ],
735
- "props": {
736
- "style": {
737
- "alignSelf": "flex-end",
738
- "position": "relative",
739
- },
740
- "testID": undefined,
741
- },
742
- "type": "View",
743
- },
744
- {
745
- "$$typeof": Symbol(react.test.json),
746
- "children": [
747
- {
748
- "$$typeof": Symbol(react.test.json),
749
- "children": [
750
- "Title",
751
- ],
752
- "props": {
753
- "numberOfLines": 0,
754
- "style": {
755
- "color": "#1C1C1C",
756
- "fontFamily": "heading-bold",
757
- "fontSize": 20,
758
- },
759
- "testID": undefined,
760
- },
761
- "type": "Text",
762
- },
763
- ],
764
- "props": {
765
- "accessibilityHint": "Modal title",
766
- "aria-label": "Title",
767
- "aria-role": "header",
768
- "style": {
769
- "alignSelf": "flex-start",
770
- },
771
- "testID": undefined,
772
- },
773
- "type": "View",
774
- },
775
- {
776
- "$$typeof": Symbol(react.test.json),
777
- "children": [
778
- {
779
- "$$typeof": Symbol(react.test.json),
780
- "children": [
781
- {
782
- "$$typeof": Symbol(react.test.json),
783
- "children": [
784
- "Content",
785
- ],
786
- "props": {
787
- "numberOfLines": 0,
788
- "selectable": undefined,
789
- "style": {
790
- "color": "#1C1C1C",
791
- "fontFamily": "text-regular",
792
- "fontSize": 14,
793
- "textAlign": "left",
794
- },
795
- "testID": undefined,
796
- },
797
- "type": "Text",
798
- },
799
- ],
800
- "props": {},
801
- "type": "View",
802
- },
803
- ],
804
- "props": {
805
- "style": {
806
- "flex": 1,
807
- "marginTop": 12,
808
- "width": "100%",
409
+ "marginRight": 20,
809
410
  },
810
411
  "testID": undefined,
811
412
  },
@@ -823,28 +424,16 @@ exports[`Modal renders with disabled primary button 1`] = `
823
424
  {
824
425
  "$$typeof": Symbol(react.test.json),
825
426
  "children": [
826
- {
827
- "$$typeof": Symbol(react.test.json),
828
- "children": [
829
- "Save",
830
- ],
831
- "props": {
832
- "style": {
833
- "color": "#FFFFFF",
834
- "fontSize": 16,
835
- "fontWeight": "700",
836
- },
837
- },
838
- "type": "Text",
839
- },
427
+ "Save",
840
428
  ],
841
429
  "props": {
842
430
  "style": {
843
- "flexDirection": "row",
431
+ "color": "#FFFFFF",
432
+ "fontSize": 16,
433
+ "fontWeight": "700",
844
434
  },
845
- "testID": undefined,
846
435
  },
847
- "type": "View",
436
+ "type": "Text",
848
437
  },
849
438
  ],
850
439
  "props": {
@@ -857,57 +446,47 @@ exports[`Modal renders with disabled primary button 1`] = `
857
446
  },
858
447
  ],
859
448
  "props": {
860
- "accessibilityHint": "Press to perform action",
861
- "accessibilityLabel": "Save",
862
- "accessibilityRole": "button",
863
- "accessibilityState": {
864
- "disabled": true,
865
- },
866
- "disabled": true,
867
- "onPress": [Function: debounced],
868
449
  "style": {
869
- "alignItems": "center",
870
- "alignSelf": "flex-start",
871
- "backgroundColor": "#9A9A9A",
872
- "borderColor": undefined,
873
- "borderRadius": 360,
874
- "borderWidth": undefined,
875
- "flexDirection": "column",
876
- "height": undefined,
877
- "justifyContent": "center",
878
- "paddingHorizontal": 20,
879
- "paddingVertical": 8,
880
- "width": "auto",
450
+ "flexDirection": "row",
881
451
  },
882
452
  "testID": undefined,
883
453
  },
884
- "type": "Pressable",
454
+ "type": "View",
885
455
  },
886
456
  ],
887
457
  "props": {
458
+ "accessibilityHint": "Press to perform action",
459
+ "accessibilityLabel": "Save",
460
+ "accessibilityRole": "button",
461
+ "accessibilityState": {
462
+ "disabled": false,
463
+ },
464
+ "disabled": false,
465
+ "onPress": [Function: debounced],
888
466
  "style": {
889
- "alignSelf": "flex-end",
890
- "flexDirection": "row",
891
- "marginTop": 32,
467
+ "alignItems": "center",
468
+ "alignSelf": "flex-start",
469
+ "backgroundColor": "#0E9DCD",
470
+ "borderColor": undefined,
471
+ "borderRadius": 360,
472
+ "borderWidth": undefined,
473
+ "flexDirection": "column",
474
+ "height": undefined,
475
+ "justifyContent": "center",
476
+ "paddingHorizontal": 20,
477
+ "paddingVertical": 8,
478
+ "width": "auto",
892
479
  },
893
480
  "testID": undefined,
894
481
  },
895
- "type": "View",
482
+ "type": "PressableScale",
896
483
  },
897
484
  ],
898
485
  "props": {
899
486
  "style": {
900
- "alignItems": "center",
901
- "alignSelf": "center",
902
- "backgroundColor": "#FFFFFF",
903
- "borderRadius": 4,
904
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
905
- "elevation": 24,
906
- "margin": "auto",
907
- "maxHeight": "100%",
908
- "padding": 32,
909
- "width": "90%",
910
- "zIndex": 1,
487
+ "alignSelf": "flex-end",
488
+ "flexDirection": "row",
489
+ "marginTop": 32,
911
490
  },
912
491
  "testID": undefined,
913
492
  },
@@ -915,43 +494,68 @@ exports[`Modal renders with disabled primary button 1`] = `
915
494
  },
916
495
  ],
917
496
  "props": {
918
- "onPress": [Function],
919
497
  "style": {
920
- "cursor": "auto",
498
+ "alignItems": "center",
499
+ "alignSelf": "center",
500
+ "backgroundColor": "#FFFFFF",
501
+ "borderRadius": 4,
502
+ "maxHeight": "100%",
503
+ "padding": 32,
504
+ "width": "90%",
505
+ "zIndex": 1,
921
506
  },
507
+ "testID": undefined,
922
508
  },
923
- "type": "Pressable",
509
+ "type": "View",
924
510
  },
925
511
  ],
926
512
  "props": {
927
- "onPress": [Function],
928
- "style": {
929
- "alignItems": "center",
930
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
931
- "flex": 1,
932
- "justifyContent": "center",
933
- },
513
+ "style": undefined,
514
+ "testID": undefined,
934
515
  },
935
- "type": "Pressable",
516
+ "type": "View",
936
517
  },
937
518
  ],
938
- "props": {
939
- "animationType": "none",
940
- "onRequestClose": [Function],
941
- "transparent": true,
942
- "visible": true,
943
- },
944
- "type": "Modal",
519
+ "props": {},
520
+ "type": "ActionSheetMock",
945
521
  }
946
522
  `;
947
523
 
948
- exports[`Modal renders with small size 1`] = `
524
+ exports[`Modal renders with disabled primary button 1`] = `
949
525
  {
950
526
  "$$typeof": Symbol(react.test.json),
951
527
  "children": [
952
528
  {
953
529
  "$$typeof": Symbol(react.test.json),
954
530
  "children": [
531
+ {
532
+ "$$typeof": Symbol(react.test.json),
533
+ "children": null,
534
+ "props": {
535
+ "accessibilityHint": "Pull down to close the modal",
536
+ "aria-label": "Pull down bar",
537
+ "aria-role": "adjustable",
538
+ "hitSlop": {
539
+ "bottom": 20,
540
+ "left": 50,
541
+ "right": 50,
542
+ "top": 20,
543
+ },
544
+ "style": {
545
+ "alignItems": "center",
546
+ "alignSelf": "center",
547
+ "backgroundColor": "#9A9A9A",
548
+ "borderRadius": 5,
549
+ "height": 3,
550
+ "justifyContent": "center",
551
+ "marginTop": 10,
552
+ "padding": 2,
553
+ "width": "30%",
554
+ },
555
+ "testID": undefined,
556
+ },
557
+ "type": "View",
558
+ },
955
559
  {
956
560
  "$$typeof": Symbol(react.test.json),
957
561
  "children": [
@@ -960,69 +564,108 @@ exports[`Modal renders with small size 1`] = `
960
564
  "children": [
961
565
  {
962
566
  "$$typeof": Symbol(react.test.json),
963
- "children": [
964
- {
965
- "$$typeof": Symbol(react.test.json),
966
- "children": null,
967
- "props": {
968
- "accessibilityHint": "Closes the modal",
969
- "aria-label": "Close modal",
970
- "aria-role": "button",
971
- "onPress": [Function],
972
- "style": {
973
- "alignItems": "center",
974
- "bottom": -8,
975
- "flex": 1,
976
- "justifyContent": "center",
977
- "left": -8,
978
- "position": "absolute",
979
- "right": -8,
980
- "top": -8,
981
- },
982
- },
983
- "type": "Pressable",
567
+ "children": null,
568
+ "props": {
569
+ "accessibilityHint": "Closes the modal",
570
+ "aria-label": "Close modal",
571
+ "aria-role": "button",
572
+ "onPress": [Function],
573
+ "style": {
574
+ "alignItems": "center",
575
+ "bottom": -8,
576
+ "flex": 1,
577
+ "justifyContent": "center",
578
+ "left": -8,
579
+ "position": "absolute",
580
+ "right": -8,
581
+ "top": -8,
984
582
  },
583
+ },
584
+ "type": "Pressable",
585
+ },
586
+ ],
587
+ "props": {
588
+ "style": {
589
+ "alignSelf": "flex-end",
590
+ "position": "relative",
591
+ },
592
+ "testID": undefined,
593
+ },
594
+ "type": "View",
595
+ },
596
+ {
597
+ "$$typeof": Symbol(react.test.json),
598
+ "children": [
599
+ {
600
+ "$$typeof": Symbol(react.test.json),
601
+ "children": [
602
+ "Title",
985
603
  ],
986
604
  "props": {
605
+ "numberOfLines": 0,
987
606
  "style": {
988
- "alignSelf": "flex-end",
989
- "position": "relative",
607
+ "color": "#1C1C1C",
608
+ "fontFamily": "heading-bold",
609
+ "fontSize": 20,
990
610
  },
991
611
  "testID": undefined,
992
612
  },
993
- "type": "View",
613
+ "type": "Text",
614
+ },
615
+ ],
616
+ "props": {
617
+ "accessibilityHint": "Modal title",
618
+ "aria-label": "Title",
619
+ "aria-role": "header",
620
+ "style": {
621
+ "alignSelf": "flex-start",
994
622
  },
623
+ "testID": undefined,
624
+ },
625
+ "type": "View",
626
+ },
627
+ {
628
+ "$$typeof": Symbol(react.test.json),
629
+ "children": [
995
630
  {
996
631
  "$$typeof": Symbol(react.test.json),
997
632
  "children": [
998
633
  {
999
634
  "$$typeof": Symbol(react.test.json),
1000
635
  "children": [
1001
- "Small Modal",
636
+ "Content",
1002
637
  ],
1003
638
  "props": {
1004
639
  "numberOfLines": 0,
640
+ "selectable": undefined,
1005
641
  "style": {
1006
642
  "color": "#1C1C1C",
1007
- "fontFamily": "heading-bold",
1008
- "fontSize": 20,
643
+ "fontFamily": "text-regular",
644
+ "fontSize": 14,
645
+ "textAlign": "left",
1009
646
  },
1010
647
  "testID": undefined,
1011
648
  },
1012
649
  "type": "Text",
1013
650
  },
1014
651
  ],
1015
- "props": {
1016
- "accessibilityHint": "Modal title",
1017
- "aria-label": "Small Modal",
1018
- "aria-role": "header",
1019
- "style": {
1020
- "alignSelf": "flex-start",
1021
- },
1022
- "testID": undefined,
1023
- },
652
+ "props": {},
1024
653
  "type": "View",
1025
654
  },
655
+ ],
656
+ "props": {
657
+ "style": {
658
+ "flex": undefined,
659
+ "marginTop": 12,
660
+ "width": "100%",
661
+ },
662
+ "testID": undefined,
663
+ },
664
+ "type": "View",
665
+ },
666
+ {
667
+ "$$typeof": Symbol(react.test.json),
668
+ "children": [
1026
669
  {
1027
670
  "$$typeof": Symbol(react.test.json),
1028
671
  "children": [
@@ -1032,63 +675,72 @@ exports[`Modal renders with small size 1`] = `
1032
675
  {
1033
676
  "$$typeof": Symbol(react.test.json),
1034
677
  "children": [
1035
- "Content",
678
+ {
679
+ "$$typeof": Symbol(react.test.json),
680
+ "children": [
681
+ "Save",
682
+ ],
683
+ "props": {
684
+ "style": {
685
+ "color": "#FFFFFF",
686
+ "fontSize": 16,
687
+ "fontWeight": "700",
688
+ },
689
+ },
690
+ "type": "Text",
691
+ },
1036
692
  ],
1037
693
  "props": {
1038
- "numberOfLines": 0,
1039
- "selectable": undefined,
1040
694
  "style": {
1041
- "color": "#1C1C1C",
1042
- "fontFamily": "text-regular",
1043
- "fontSize": 14,
1044
- "textAlign": "left",
695
+ "flexDirection": "row",
1045
696
  },
1046
697
  "testID": undefined,
1047
698
  },
1048
- "type": "Text",
699
+ "type": "View",
1049
700
  },
1050
701
  ],
1051
- "props": {},
702
+ "props": {
703
+ "style": {
704
+ "flexDirection": "row",
705
+ },
706
+ "testID": undefined,
707
+ },
1052
708
  "type": "View",
1053
709
  },
1054
710
  ],
1055
711
  "props": {
1056
- "style": {
1057
- "flex": 1,
1058
- "marginTop": 12,
1059
- "width": "100%",
712
+ "accessibilityHint": "Press to perform action",
713
+ "accessibilityLabel": "Save",
714
+ "accessibilityRole": "button",
715
+ "accessibilityState": {
716
+ "disabled": true,
1060
717
  },
1061
- "testID": undefined,
1062
- },
1063
- "type": "View",
1064
- },
1065
- {
1066
- "$$typeof": Symbol(react.test.json),
1067
- "children": null,
1068
- "props": {
718
+ "disabled": true,
719
+ "onPress": [Function: debounced],
1069
720
  "style": {
1070
- "alignSelf": "flex-end",
1071
- "flexDirection": "row",
1072
- "marginTop": 32,
721
+ "alignItems": "center",
722
+ "alignSelf": "flex-start",
723
+ "backgroundColor": "#9A9A9A",
724
+ "borderColor": undefined,
725
+ "borderRadius": 360,
726
+ "borderWidth": undefined,
727
+ "flexDirection": "column",
728
+ "height": undefined,
729
+ "justifyContent": "center",
730
+ "paddingHorizontal": 20,
731
+ "paddingVertical": 8,
732
+ "width": "auto",
1073
733
  },
1074
734
  "testID": undefined,
1075
735
  },
1076
- "type": "View",
736
+ "type": "Pressable",
1077
737
  },
1078
738
  ],
1079
739
  "props": {
1080
740
  "style": {
1081
- "alignItems": "center",
1082
- "alignSelf": "center",
1083
- "backgroundColor": "#FFFFFF",
1084
- "borderRadius": 4,
1085
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
1086
- "elevation": 24,
1087
- "margin": "auto",
1088
- "maxHeight": "100%",
1089
- "padding": 32,
1090
- "width": "90%",
1091
- "zIndex": 1,
741
+ "alignSelf": "flex-end",
742
+ "flexDirection": "row",
743
+ "marginTop": 32,
1092
744
  },
1093
745
  "testID": undefined,
1094
746
  },
@@ -1096,43 +748,68 @@ exports[`Modal renders with small size 1`] = `
1096
748
  },
1097
749
  ],
1098
750
  "props": {
1099
- "onPress": [Function],
1100
751
  "style": {
1101
- "cursor": "auto",
752
+ "alignItems": "center",
753
+ "alignSelf": "center",
754
+ "backgroundColor": "#FFFFFF",
755
+ "borderRadius": 4,
756
+ "maxHeight": "100%",
757
+ "padding": 32,
758
+ "width": "90%",
759
+ "zIndex": 1,
1102
760
  },
761
+ "testID": undefined,
1103
762
  },
1104
- "type": "Pressable",
763
+ "type": "View",
1105
764
  },
1106
765
  ],
1107
766
  "props": {
1108
- "onPress": [Function],
1109
- "style": {
1110
- "alignItems": "center",
1111
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
1112
- "flex": 1,
1113
- "justifyContent": "center",
1114
- },
767
+ "style": undefined,
768
+ "testID": undefined,
1115
769
  },
1116
- "type": "Pressable",
770
+ "type": "View",
1117
771
  },
1118
772
  ],
1119
- "props": {
1120
- "animationType": "none",
1121
- "onRequestClose": [Function],
1122
- "transparent": true,
1123
- "visible": true,
1124
- },
1125
- "type": "Modal",
773
+ "props": {},
774
+ "type": "ActionSheetMock",
1126
775
  }
1127
776
  `;
1128
777
 
1129
- exports[`Modal renders with medium size 1`] = `
778
+ exports[`Modal renders with small size 1`] = `
1130
779
  {
1131
780
  "$$typeof": Symbol(react.test.json),
1132
781
  "children": [
1133
782
  {
1134
783
  "$$typeof": Symbol(react.test.json),
1135
784
  "children": [
785
+ {
786
+ "$$typeof": Symbol(react.test.json),
787
+ "children": null,
788
+ "props": {
789
+ "accessibilityHint": "Pull down to close the modal",
790
+ "aria-label": "Pull down bar",
791
+ "aria-role": "adjustable",
792
+ "hitSlop": {
793
+ "bottom": 20,
794
+ "left": 50,
795
+ "right": 50,
796
+ "top": 20,
797
+ },
798
+ "style": {
799
+ "alignItems": "center",
800
+ "alignSelf": "center",
801
+ "backgroundColor": "#9A9A9A",
802
+ "borderRadius": 5,
803
+ "height": 3,
804
+ "justifyContent": "center",
805
+ "marginTop": 10,
806
+ "padding": 2,
807
+ "width": "30%",
808
+ },
809
+ "testID": undefined,
810
+ },
811
+ "type": "View",
812
+ },
1136
813
  {
1137
814
  "$$typeof": Symbol(react.test.json),
1138
815
  "children": [
@@ -1141,135 +818,297 @@ exports[`Modal renders with medium size 1`] = `
1141
818
  "children": [
1142
819
  {
1143
820
  "$$typeof": Symbol(react.test.json),
1144
- "children": [
1145
- {
1146
- "$$typeof": Symbol(react.test.json),
1147
- "children": null,
1148
- "props": {
1149
- "accessibilityHint": "Closes the modal",
1150
- "aria-label": "Close modal",
1151
- "aria-role": "button",
1152
- "onPress": [Function],
1153
- "style": {
1154
- "alignItems": "center",
1155
- "bottom": -8,
1156
- "flex": 1,
1157
- "justifyContent": "center",
1158
- "left": -8,
1159
- "position": "absolute",
1160
- "right": -8,
1161
- "top": -8,
1162
- },
1163
- },
1164
- "type": "Pressable",
821
+ "children": null,
822
+ "props": {
823
+ "accessibilityHint": "Closes the modal",
824
+ "aria-label": "Close modal",
825
+ "aria-role": "button",
826
+ "onPress": [Function],
827
+ "style": {
828
+ "alignItems": "center",
829
+ "bottom": -8,
830
+ "flex": 1,
831
+ "justifyContent": "center",
832
+ "left": -8,
833
+ "position": "absolute",
834
+ "right": -8,
835
+ "top": -8,
1165
836
  },
837
+ },
838
+ "type": "Pressable",
839
+ },
840
+ ],
841
+ "props": {
842
+ "style": {
843
+ "alignSelf": "flex-end",
844
+ "position": "relative",
845
+ },
846
+ "testID": undefined,
847
+ },
848
+ "type": "View",
849
+ },
850
+ {
851
+ "$$typeof": Symbol(react.test.json),
852
+ "children": [
853
+ {
854
+ "$$typeof": Symbol(react.test.json),
855
+ "children": [
856
+ "Small Modal",
1166
857
  ],
1167
858
  "props": {
859
+ "numberOfLines": 0,
1168
860
  "style": {
1169
- "alignSelf": "flex-end",
1170
- "position": "relative",
861
+ "color": "#1C1C1C",
862
+ "fontFamily": "heading-bold",
863
+ "fontSize": 20,
1171
864
  },
1172
865
  "testID": undefined,
1173
866
  },
1174
- "type": "View",
867
+ "type": "Text",
868
+ },
869
+ ],
870
+ "props": {
871
+ "accessibilityHint": "Modal title",
872
+ "aria-label": "Small Modal",
873
+ "aria-role": "header",
874
+ "style": {
875
+ "alignSelf": "flex-start",
1175
876
  },
877
+ "testID": undefined,
878
+ },
879
+ "type": "View",
880
+ },
881
+ {
882
+ "$$typeof": Symbol(react.test.json),
883
+ "children": [
1176
884
  {
1177
885
  "$$typeof": Symbol(react.test.json),
1178
886
  "children": [
1179
887
  {
1180
888
  "$$typeof": Symbol(react.test.json),
1181
889
  "children": [
1182
- "Medium Modal",
890
+ "Content",
1183
891
  ],
1184
892
  "props": {
1185
893
  "numberOfLines": 0,
894
+ "selectable": undefined,
1186
895
  "style": {
1187
896
  "color": "#1C1C1C",
1188
- "fontFamily": "heading-bold",
1189
- "fontSize": 20,
897
+ "fontFamily": "text-regular",
898
+ "fontSize": 14,
899
+ "textAlign": "left",
1190
900
  },
1191
901
  "testID": undefined,
1192
902
  },
1193
903
  "type": "Text",
1194
904
  },
1195
905
  ],
1196
- "props": {
1197
- "accessibilityHint": "Modal title",
1198
- "aria-label": "Medium Modal",
1199
- "aria-role": "header",
1200
- "style": {
1201
- "alignSelf": "flex-start",
1202
- },
1203
- "testID": undefined,
1204
- },
906
+ "props": {},
1205
907
  "type": "View",
1206
908
  },
909
+ ],
910
+ "props": {
911
+ "style": {
912
+ "flex": undefined,
913
+ "marginTop": 12,
914
+ "width": "100%",
915
+ },
916
+ "testID": undefined,
917
+ },
918
+ "type": "View",
919
+ },
920
+ {
921
+ "$$typeof": Symbol(react.test.json),
922
+ "children": null,
923
+ "props": {
924
+ "style": {
925
+ "alignSelf": "flex-end",
926
+ "flexDirection": "row",
927
+ "marginTop": 32,
928
+ },
929
+ "testID": undefined,
930
+ },
931
+ "type": "View",
932
+ },
933
+ ],
934
+ "props": {
935
+ "style": {
936
+ "alignItems": "center",
937
+ "alignSelf": "center",
938
+ "backgroundColor": "#FFFFFF",
939
+ "borderRadius": 4,
940
+ "maxHeight": "100%",
941
+ "padding": 32,
942
+ "width": "90%",
943
+ "zIndex": 1,
944
+ },
945
+ "testID": undefined,
946
+ },
947
+ "type": "View",
948
+ },
949
+ ],
950
+ "props": {
951
+ "style": undefined,
952
+ "testID": undefined,
953
+ },
954
+ "type": "View",
955
+ },
956
+ ],
957
+ "props": {},
958
+ "type": "ActionSheetMock",
959
+ }
960
+ `;
961
+
962
+ exports[`Modal renders with medium size 1`] = `
963
+ {
964
+ "$$typeof": Symbol(react.test.json),
965
+ "children": [
966
+ {
967
+ "$$typeof": Symbol(react.test.json),
968
+ "children": [
969
+ {
970
+ "$$typeof": Symbol(react.test.json),
971
+ "children": null,
972
+ "props": {
973
+ "accessibilityHint": "Pull down to close the modal",
974
+ "aria-label": "Pull down bar",
975
+ "aria-role": "adjustable",
976
+ "hitSlop": {
977
+ "bottom": 20,
978
+ "left": 50,
979
+ "right": 50,
980
+ "top": 20,
981
+ },
982
+ "style": {
983
+ "alignItems": "center",
984
+ "alignSelf": "center",
985
+ "backgroundColor": "#9A9A9A",
986
+ "borderRadius": 5,
987
+ "height": 3,
988
+ "justifyContent": "center",
989
+ "marginTop": 10,
990
+ "padding": 2,
991
+ "width": "30%",
992
+ },
993
+ "testID": undefined,
994
+ },
995
+ "type": "View",
996
+ },
997
+ {
998
+ "$$typeof": Symbol(react.test.json),
999
+ "children": [
1000
+ {
1001
+ "$$typeof": Symbol(react.test.json),
1002
+ "children": [
1207
1003
  {
1208
1004
  "$$typeof": Symbol(react.test.json),
1209
- "children": [
1210
- {
1211
- "$$typeof": Symbol(react.test.json),
1212
- "children": [
1213
- {
1214
- "$$typeof": Symbol(react.test.json),
1215
- "children": [
1216
- "Content",
1217
- ],
1218
- "props": {
1219
- "numberOfLines": 0,
1220
- "selectable": undefined,
1221
- "style": {
1222
- "color": "#1C1C1C",
1223
- "fontFamily": "text-regular",
1224
- "fontSize": 14,
1225
- "textAlign": "left",
1226
- },
1227
- "testID": undefined,
1228
- },
1229
- "type": "Text",
1230
- },
1231
- ],
1232
- "props": {},
1233
- "type": "View",
1005
+ "children": null,
1006
+ "props": {
1007
+ "accessibilityHint": "Closes the modal",
1008
+ "aria-label": "Close modal",
1009
+ "aria-role": "button",
1010
+ "onPress": [Function],
1011
+ "style": {
1012
+ "alignItems": "center",
1013
+ "bottom": -8,
1014
+ "flex": 1,
1015
+ "justifyContent": "center",
1016
+ "left": -8,
1017
+ "position": "absolute",
1018
+ "right": -8,
1019
+ "top": -8,
1234
1020
  },
1021
+ },
1022
+ "type": "Pressable",
1023
+ },
1024
+ ],
1025
+ "props": {
1026
+ "style": {
1027
+ "alignSelf": "flex-end",
1028
+ "position": "relative",
1029
+ },
1030
+ "testID": undefined,
1031
+ },
1032
+ "type": "View",
1033
+ },
1034
+ {
1035
+ "$$typeof": Symbol(react.test.json),
1036
+ "children": [
1037
+ {
1038
+ "$$typeof": Symbol(react.test.json),
1039
+ "children": [
1040
+ "Medium Modal",
1235
1041
  ],
1236
1042
  "props": {
1043
+ "numberOfLines": 0,
1237
1044
  "style": {
1238
- "flex": 1,
1239
- "marginTop": 12,
1240
- "width": "100%",
1045
+ "color": "#1C1C1C",
1046
+ "fontFamily": "heading-bold",
1047
+ "fontSize": 20,
1241
1048
  },
1242
1049
  "testID": undefined,
1243
1050
  },
1244
- "type": "View",
1051
+ "type": "Text",
1052
+ },
1053
+ ],
1054
+ "props": {
1055
+ "accessibilityHint": "Modal title",
1056
+ "aria-label": "Medium Modal",
1057
+ "aria-role": "header",
1058
+ "style": {
1059
+ "alignSelf": "flex-start",
1245
1060
  },
1061
+ "testID": undefined,
1062
+ },
1063
+ "type": "View",
1064
+ },
1065
+ {
1066
+ "$$typeof": Symbol(react.test.json),
1067
+ "children": [
1246
1068
  {
1247
1069
  "$$typeof": Symbol(react.test.json),
1248
- "children": null,
1249
- "props": {
1250
- "style": {
1251
- "alignSelf": "flex-end",
1252
- "flexDirection": "row",
1253
- "marginTop": 32,
1070
+ "children": [
1071
+ {
1072
+ "$$typeof": Symbol(react.test.json),
1073
+ "children": [
1074
+ "Content",
1075
+ ],
1076
+ "props": {
1077
+ "numberOfLines": 0,
1078
+ "selectable": undefined,
1079
+ "style": {
1080
+ "color": "#1C1C1C",
1081
+ "fontFamily": "text-regular",
1082
+ "fontSize": 14,
1083
+ "textAlign": "left",
1084
+ },
1085
+ "testID": undefined,
1086
+ },
1087
+ "type": "Text",
1254
1088
  },
1255
- "testID": undefined,
1256
- },
1089
+ ],
1090
+ "props": {},
1257
1091
  "type": "View",
1258
1092
  },
1259
1093
  ],
1260
1094
  "props": {
1261
1095
  "style": {
1262
- "alignItems": "center",
1263
- "alignSelf": "center",
1264
- "backgroundColor": "#FFFFFF",
1265
- "borderRadius": 4,
1266
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
1267
- "elevation": 24,
1268
- "margin": "auto",
1269
- "maxHeight": "100%",
1270
- "padding": 32,
1271
- "width": "90%",
1272
- "zIndex": 1,
1096
+ "flex": undefined,
1097
+ "marginTop": 12,
1098
+ "width": "100%",
1099
+ },
1100
+ "testID": undefined,
1101
+ },
1102
+ "type": "View",
1103
+ },
1104
+ {
1105
+ "$$typeof": Symbol(react.test.json),
1106
+ "children": null,
1107
+ "props": {
1108
+ "style": {
1109
+ "alignSelf": "flex-end",
1110
+ "flexDirection": "row",
1111
+ "marginTop": 32,
1273
1112
  },
1274
1113
  "testID": undefined,
1275
1114
  },
@@ -1277,33 +1116,30 @@ exports[`Modal renders with medium size 1`] = `
1277
1116
  },
1278
1117
  ],
1279
1118
  "props": {
1280
- "onPress": [Function],
1281
1119
  "style": {
1282
- "cursor": "auto",
1120
+ "alignItems": "center",
1121
+ "alignSelf": "center",
1122
+ "backgroundColor": "#FFFFFF",
1123
+ "borderRadius": 4,
1124
+ "maxHeight": "100%",
1125
+ "padding": 32,
1126
+ "width": "90%",
1127
+ "zIndex": 1,
1283
1128
  },
1129
+ "testID": undefined,
1284
1130
  },
1285
- "type": "Pressable",
1131
+ "type": "View",
1286
1132
  },
1287
1133
  ],
1288
1134
  "props": {
1289
- "onPress": [Function],
1290
- "style": {
1291
- "alignItems": "center",
1292
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
1293
- "flex": 1,
1294
- "justifyContent": "center",
1295
- },
1135
+ "style": undefined,
1136
+ "testID": undefined,
1296
1137
  },
1297
- "type": "Pressable",
1138
+ "type": "View",
1298
1139
  },
1299
1140
  ],
1300
- "props": {
1301
- "animationType": "none",
1302
- "onRequestClose": [Function],
1303
- "transparent": true,
1304
- "visible": true,
1305
- },
1306
- "type": "Modal",
1141
+ "props": {},
1142
+ "type": "ActionSheetMock",
1307
1143
  }
1308
1144
  `;
1309
1145
 
@@ -1314,6 +1150,34 @@ exports[`Modal renders with large size 1`] = `
1314
1150
  {
1315
1151
  "$$typeof": Symbol(react.test.json),
1316
1152
  "children": [
1153
+ {
1154
+ "$$typeof": Symbol(react.test.json),
1155
+ "children": null,
1156
+ "props": {
1157
+ "accessibilityHint": "Pull down to close the modal",
1158
+ "aria-label": "Pull down bar",
1159
+ "aria-role": "adjustable",
1160
+ "hitSlop": {
1161
+ "bottom": 20,
1162
+ "left": 50,
1163
+ "right": 50,
1164
+ "top": 20,
1165
+ },
1166
+ "style": {
1167
+ "alignItems": "center",
1168
+ "alignSelf": "center",
1169
+ "backgroundColor": "#9A9A9A",
1170
+ "borderRadius": 5,
1171
+ "height": 3,
1172
+ "justifyContent": "center",
1173
+ "marginTop": 10,
1174
+ "padding": 2,
1175
+ "width": "30%",
1176
+ },
1177
+ "testID": undefined,
1178
+ },
1179
+ "type": "View",
1180
+ },
1317
1181
  {
1318
1182
  "$$typeof": Symbol(react.test.json),
1319
1183
  "children": [
@@ -1322,135 +1186,113 @@ exports[`Modal renders with large size 1`] = `
1322
1186
  "children": [
1323
1187
  {
1324
1188
  "$$typeof": Symbol(react.test.json),
1325
- "children": [
1326
- {
1327
- "$$typeof": Symbol(react.test.json),
1328
- "children": null,
1329
- "props": {
1330
- "accessibilityHint": "Closes the modal",
1331
- "aria-label": "Close modal",
1332
- "aria-role": "button",
1333
- "onPress": [Function],
1334
- "style": {
1335
- "alignItems": "center",
1336
- "bottom": -8,
1337
- "flex": 1,
1338
- "justifyContent": "center",
1339
- "left": -8,
1340
- "position": "absolute",
1341
- "right": -8,
1342
- "top": -8,
1343
- },
1344
- },
1345
- "type": "Pressable",
1189
+ "children": null,
1190
+ "props": {
1191
+ "accessibilityHint": "Closes the modal",
1192
+ "aria-label": "Close modal",
1193
+ "aria-role": "button",
1194
+ "onPress": [Function],
1195
+ "style": {
1196
+ "alignItems": "center",
1197
+ "bottom": -8,
1198
+ "flex": 1,
1199
+ "justifyContent": "center",
1200
+ "left": -8,
1201
+ "position": "absolute",
1202
+ "right": -8,
1203
+ "top": -8,
1346
1204
  },
1205
+ },
1206
+ "type": "Pressable",
1207
+ },
1208
+ ],
1209
+ "props": {
1210
+ "style": {
1211
+ "alignSelf": "flex-end",
1212
+ "position": "relative",
1213
+ },
1214
+ "testID": undefined,
1215
+ },
1216
+ "type": "View",
1217
+ },
1218
+ {
1219
+ "$$typeof": Symbol(react.test.json),
1220
+ "children": [
1221
+ {
1222
+ "$$typeof": Symbol(react.test.json),
1223
+ "children": [
1224
+ "Large Modal",
1347
1225
  ],
1348
1226
  "props": {
1227
+ "numberOfLines": 0,
1349
1228
  "style": {
1350
- "alignSelf": "flex-end",
1351
- "position": "relative",
1229
+ "color": "#1C1C1C",
1230
+ "fontFamily": "heading-bold",
1231
+ "fontSize": 20,
1352
1232
  },
1353
1233
  "testID": undefined,
1354
1234
  },
1355
- "type": "View",
1235
+ "type": "Text",
1356
1236
  },
1237
+ ],
1238
+ "props": {
1239
+ "accessibilityHint": "Modal title",
1240
+ "aria-label": "Large Modal",
1241
+ "aria-role": "header",
1242
+ "style": {
1243
+ "alignSelf": "flex-start",
1244
+ },
1245
+ "testID": undefined,
1246
+ },
1247
+ "type": "View",
1248
+ },
1249
+ {
1250
+ "$$typeof": Symbol(react.test.json),
1251
+ "children": [
1357
1252
  {
1358
1253
  "$$typeof": Symbol(react.test.json),
1359
1254
  "children": [
1360
1255
  {
1361
1256
  "$$typeof": Symbol(react.test.json),
1362
1257
  "children": [
1363
- "Large Modal",
1258
+ "Content",
1364
1259
  ],
1365
1260
  "props": {
1366
1261
  "numberOfLines": 0,
1262
+ "selectable": undefined,
1367
1263
  "style": {
1368
1264
  "color": "#1C1C1C",
1369
- "fontFamily": "heading-bold",
1370
- "fontSize": 20,
1265
+ "fontFamily": "text-regular",
1266
+ "fontSize": 14,
1267
+ "textAlign": "left",
1371
1268
  },
1372
1269
  "testID": undefined,
1373
1270
  },
1374
1271
  "type": "Text",
1375
1272
  },
1376
1273
  ],
1377
- "props": {
1378
- "accessibilityHint": "Modal title",
1379
- "aria-label": "Large Modal",
1380
- "aria-role": "header",
1381
- "style": {
1382
- "alignSelf": "flex-start",
1383
- },
1384
- "testID": undefined,
1385
- },
1386
- "type": "View",
1387
- },
1388
- {
1389
- "$$typeof": Symbol(react.test.json),
1390
- "children": [
1391
- {
1392
- "$$typeof": Symbol(react.test.json),
1393
- "children": [
1394
- {
1395
- "$$typeof": Symbol(react.test.json),
1396
- "children": [
1397
- "Content",
1398
- ],
1399
- "props": {
1400
- "numberOfLines": 0,
1401
- "selectable": undefined,
1402
- "style": {
1403
- "color": "#1C1C1C",
1404
- "fontFamily": "text-regular",
1405
- "fontSize": 14,
1406
- "textAlign": "left",
1407
- },
1408
- "testID": undefined,
1409
- },
1410
- "type": "Text",
1411
- },
1412
- ],
1413
- "props": {},
1414
- "type": "View",
1415
- },
1416
- ],
1417
- "props": {
1418
- "style": {
1419
- "flex": 1,
1420
- "marginTop": 12,
1421
- "width": "100%",
1422
- },
1423
- "testID": undefined,
1424
- },
1425
- "type": "View",
1426
- },
1427
- {
1428
- "$$typeof": Symbol(react.test.json),
1429
- "children": null,
1430
- "props": {
1431
- "style": {
1432
- "alignSelf": "flex-end",
1433
- "flexDirection": "row",
1434
- "marginTop": 32,
1435
- },
1436
- "testID": undefined,
1437
- },
1274
+ "props": {},
1438
1275
  "type": "View",
1439
1276
  },
1440
1277
  ],
1441
1278
  "props": {
1442
1279
  "style": {
1443
- "alignItems": "center",
1444
- "alignSelf": "center",
1445
- "backgroundColor": "#FFFFFF",
1446
- "borderRadius": 4,
1447
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
1448
- "elevation": 24,
1449
- "margin": "auto",
1450
- "maxHeight": "100%",
1451
- "padding": 32,
1452
- "width": "90%",
1453
- "zIndex": 1,
1280
+ "flex": undefined,
1281
+ "marginTop": 12,
1282
+ "width": "100%",
1283
+ },
1284
+ "testID": undefined,
1285
+ },
1286
+ "type": "View",
1287
+ },
1288
+ {
1289
+ "$$typeof": Symbol(react.test.json),
1290
+ "children": null,
1291
+ "props": {
1292
+ "style": {
1293
+ "alignSelf": "flex-end",
1294
+ "flexDirection": "row",
1295
+ "marginTop": 32,
1454
1296
  },
1455
1297
  "testID": undefined,
1456
1298
  },
@@ -1458,33 +1300,30 @@ exports[`Modal renders with large size 1`] = `
1458
1300
  },
1459
1301
  ],
1460
1302
  "props": {
1461
- "onPress": [Function],
1462
1303
  "style": {
1463
- "cursor": "auto",
1304
+ "alignItems": "center",
1305
+ "alignSelf": "center",
1306
+ "backgroundColor": "#FFFFFF",
1307
+ "borderRadius": 4,
1308
+ "maxHeight": "100%",
1309
+ "padding": 32,
1310
+ "width": "90%",
1311
+ "zIndex": 1,
1464
1312
  },
1313
+ "testID": undefined,
1465
1314
  },
1466
- "type": "Pressable",
1315
+ "type": "View",
1467
1316
  },
1468
1317
  ],
1469
1318
  "props": {
1470
- "onPress": [Function],
1471
- "style": {
1472
- "alignItems": "center",
1473
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
1474
- "flex": 1,
1475
- "justifyContent": "center",
1476
- },
1319
+ "style": undefined,
1320
+ "testID": undefined,
1477
1321
  },
1478
- "type": "Pressable",
1322
+ "type": "View",
1479
1323
  },
1480
1324
  ],
1481
- "props": {
1482
- "animationType": "none",
1483
- "onRequestClose": [Function],
1484
- "transparent": true,
1485
- "visible": true,
1486
- },
1487
- "type": "Modal",
1325
+ "props": {},
1326
+ "type": "ActionSheetMock",
1488
1327
  }
1489
1328
  `;
1490
1329
 
@@ -1495,6 +1334,34 @@ exports[`Modal renders with persistOnBackgroundClick 1`] = `
1495
1334
  {
1496
1335
  "$$typeof": Symbol(react.test.json),
1497
1336
  "children": [
1337
+ {
1338
+ "$$typeof": Symbol(react.test.json),
1339
+ "children": null,
1340
+ "props": {
1341
+ "accessibilityHint": "Pull down to close the modal",
1342
+ "aria-label": "Pull down bar",
1343
+ "aria-role": "adjustable",
1344
+ "hitSlop": {
1345
+ "bottom": 20,
1346
+ "left": 50,
1347
+ "right": 50,
1348
+ "top": 20,
1349
+ },
1350
+ "style": {
1351
+ "alignItems": "center",
1352
+ "alignSelf": "center",
1353
+ "backgroundColor": "#9A9A9A",
1354
+ "borderRadius": 5,
1355
+ "height": 3,
1356
+ "justifyContent": "center",
1357
+ "marginTop": 10,
1358
+ "padding": 2,
1359
+ "width": "30%",
1360
+ },
1361
+ "testID": undefined,
1362
+ },
1363
+ "type": "View",
1364
+ },
1498
1365
  {
1499
1366
  "$$typeof": Symbol(react.test.json),
1500
1367
  "children": [
@@ -1503,135 +1370,113 @@ exports[`Modal renders with persistOnBackgroundClick 1`] = `
1503
1370
  "children": [
1504
1371
  {
1505
1372
  "$$typeof": Symbol(react.test.json),
1506
- "children": [
1507
- {
1508
- "$$typeof": Symbol(react.test.json),
1509
- "children": null,
1510
- "props": {
1511
- "accessibilityHint": "Closes the modal",
1512
- "aria-label": "Close modal",
1513
- "aria-role": "button",
1514
- "onPress": [Function],
1515
- "style": {
1516
- "alignItems": "center",
1517
- "bottom": -8,
1518
- "flex": 1,
1519
- "justifyContent": "center",
1520
- "left": -8,
1521
- "position": "absolute",
1522
- "right": -8,
1523
- "top": -8,
1524
- },
1525
- },
1526
- "type": "Pressable",
1373
+ "children": null,
1374
+ "props": {
1375
+ "accessibilityHint": "Closes the modal",
1376
+ "aria-label": "Close modal",
1377
+ "aria-role": "button",
1378
+ "onPress": [Function],
1379
+ "style": {
1380
+ "alignItems": "center",
1381
+ "bottom": -8,
1382
+ "flex": 1,
1383
+ "justifyContent": "center",
1384
+ "left": -8,
1385
+ "position": "absolute",
1386
+ "right": -8,
1387
+ "top": -8,
1527
1388
  },
1389
+ },
1390
+ "type": "Pressable",
1391
+ },
1392
+ ],
1393
+ "props": {
1394
+ "style": {
1395
+ "alignSelf": "flex-end",
1396
+ "position": "relative",
1397
+ },
1398
+ "testID": undefined,
1399
+ },
1400
+ "type": "View",
1401
+ },
1402
+ {
1403
+ "$$typeof": Symbol(react.test.json),
1404
+ "children": [
1405
+ {
1406
+ "$$typeof": Symbol(react.test.json),
1407
+ "children": [
1408
+ "Persistent",
1528
1409
  ],
1529
1410
  "props": {
1411
+ "numberOfLines": 0,
1530
1412
  "style": {
1531
- "alignSelf": "flex-end",
1532
- "position": "relative",
1413
+ "color": "#1C1C1C",
1414
+ "fontFamily": "heading-bold",
1415
+ "fontSize": 20,
1533
1416
  },
1534
1417
  "testID": undefined,
1535
1418
  },
1536
- "type": "View",
1419
+ "type": "Text",
1420
+ },
1421
+ ],
1422
+ "props": {
1423
+ "accessibilityHint": "Modal title",
1424
+ "aria-label": "Persistent",
1425
+ "aria-role": "header",
1426
+ "style": {
1427
+ "alignSelf": "flex-start",
1537
1428
  },
1429
+ "testID": undefined,
1430
+ },
1431
+ "type": "View",
1432
+ },
1433
+ {
1434
+ "$$typeof": Symbol(react.test.json),
1435
+ "children": [
1538
1436
  {
1539
1437
  "$$typeof": Symbol(react.test.json),
1540
1438
  "children": [
1541
1439
  {
1542
1440
  "$$typeof": Symbol(react.test.json),
1543
1441
  "children": [
1544
- "Persistent",
1442
+ "Content",
1545
1443
  ],
1546
1444
  "props": {
1547
1445
  "numberOfLines": 0,
1446
+ "selectable": undefined,
1548
1447
  "style": {
1549
1448
  "color": "#1C1C1C",
1550
- "fontFamily": "heading-bold",
1551
- "fontSize": 20,
1449
+ "fontFamily": "text-regular",
1450
+ "fontSize": 14,
1451
+ "textAlign": "left",
1552
1452
  },
1553
1453
  "testID": undefined,
1554
1454
  },
1555
1455
  "type": "Text",
1556
1456
  },
1557
1457
  ],
1558
- "props": {
1559
- "accessibilityHint": "Modal title",
1560
- "aria-label": "Persistent",
1561
- "aria-role": "header",
1562
- "style": {
1563
- "alignSelf": "flex-start",
1564
- },
1565
- "testID": undefined,
1566
- },
1567
- "type": "View",
1568
- },
1569
- {
1570
- "$$typeof": Symbol(react.test.json),
1571
- "children": [
1572
- {
1573
- "$$typeof": Symbol(react.test.json),
1574
- "children": [
1575
- {
1576
- "$$typeof": Symbol(react.test.json),
1577
- "children": [
1578
- "Content",
1579
- ],
1580
- "props": {
1581
- "numberOfLines": 0,
1582
- "selectable": undefined,
1583
- "style": {
1584
- "color": "#1C1C1C",
1585
- "fontFamily": "text-regular",
1586
- "fontSize": 14,
1587
- "textAlign": "left",
1588
- },
1589
- "testID": undefined,
1590
- },
1591
- "type": "Text",
1592
- },
1593
- ],
1594
- "props": {},
1595
- "type": "View",
1596
- },
1597
- ],
1598
- "props": {
1599
- "style": {
1600
- "flex": 1,
1601
- "marginTop": 12,
1602
- "width": "100%",
1603
- },
1604
- "testID": undefined,
1605
- },
1606
- "type": "View",
1607
- },
1608
- {
1609
- "$$typeof": Symbol(react.test.json),
1610
- "children": null,
1611
- "props": {
1612
- "style": {
1613
- "alignSelf": "flex-end",
1614
- "flexDirection": "row",
1615
- "marginTop": 32,
1616
- },
1617
- "testID": undefined,
1618
- },
1458
+ "props": {},
1619
1459
  "type": "View",
1620
1460
  },
1621
1461
  ],
1622
1462
  "props": {
1623
1463
  "style": {
1624
- "alignItems": "center",
1625
- "alignSelf": "center",
1626
- "backgroundColor": "#FFFFFF",
1627
- "borderRadius": 4,
1628
- "boxShadow": "0px 4px 24px rgba(0, 0, 0, 0.5)",
1629
- "elevation": 24,
1630
- "margin": "auto",
1631
- "maxHeight": "100%",
1632
- "padding": 32,
1633
- "width": "90%",
1634
- "zIndex": 1,
1464
+ "flex": undefined,
1465
+ "marginTop": 12,
1466
+ "width": "100%",
1467
+ },
1468
+ "testID": undefined,
1469
+ },
1470
+ "type": "View",
1471
+ },
1472
+ {
1473
+ "$$typeof": Symbol(react.test.json),
1474
+ "children": null,
1475
+ "props": {
1476
+ "style": {
1477
+ "alignSelf": "flex-end",
1478
+ "flexDirection": "row",
1479
+ "marginTop": 32,
1635
1480
  },
1636
1481
  "testID": undefined,
1637
1482
  },
@@ -1639,32 +1484,29 @@ exports[`Modal renders with persistOnBackgroundClick 1`] = `
1639
1484
  },
1640
1485
  ],
1641
1486
  "props": {
1642
- "onPress": [Function],
1643
1487
  "style": {
1644
- "cursor": "auto",
1488
+ "alignItems": "center",
1489
+ "alignSelf": "center",
1490
+ "backgroundColor": "#FFFFFF",
1491
+ "borderRadius": 4,
1492
+ "maxHeight": "100%",
1493
+ "padding": 32,
1494
+ "width": "90%",
1495
+ "zIndex": 1,
1645
1496
  },
1497
+ "testID": undefined,
1646
1498
  },
1647
- "type": "Pressable",
1499
+ "type": "View",
1648
1500
  },
1649
1501
  ],
1650
1502
  "props": {
1651
- "onPress": undefined,
1652
- "style": {
1653
- "alignItems": "center",
1654
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
1655
- "flex": 1,
1656
- "justifyContent": "center",
1657
- },
1503
+ "style": undefined,
1504
+ "testID": undefined,
1658
1505
  },
1659
- "type": "Pressable",
1506
+ "type": "View",
1660
1507
  },
1661
1508
  ],
1662
- "props": {
1663
- "animationType": "none",
1664
- "onRequestClose": [Function],
1665
- "transparent": true,
1666
- "visible": true,
1667
- },
1668
- "type": "Modal",
1509
+ "props": {},
1510
+ "type": "ActionSheetMock",
1669
1511
  }
1670
1512
  `;