@terreno/ui 0.24.0 → 0.25.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 (64) hide show
  1. package/dist/AIRequestExplorer.js +6 -1
  2. package/dist/AIRequestExplorer.js.map +1 -1
  3. package/dist/ActionSheet.d.ts +1 -0
  4. package/dist/ActionSheet.js +3 -0
  5. package/dist/ActionSheet.js.map +1 -1
  6. package/dist/Common.d.ts +16 -0
  7. package/dist/Common.js.map +1 -1
  8. package/dist/CustomSelectField.js +2 -2
  9. package/dist/CustomSelectField.js.map +1 -1
  10. package/dist/FilePickerButton.js +2 -1
  11. package/dist/FilePickerButton.js.map +1 -1
  12. package/dist/PickerSelect.d.ts +10 -2
  13. package/dist/PickerSelect.js +91 -17
  14. package/dist/PickerSelect.js.map +1 -1
  15. package/dist/SelectBadge.js +1 -1
  16. package/dist/SelectBadge.js.map +1 -1
  17. package/dist/SelectField.js +9 -9
  18. package/dist/SelectField.js.map +1 -1
  19. package/dist/WebDropdownMenu.d.ts +36 -5
  20. package/dist/WebDropdownMenu.js +211 -29
  21. package/dist/WebDropdownMenu.js.map +1 -1
  22. package/dist/createWebPortal.d.ts +7 -0
  23. package/dist/createWebPortal.js +3 -0
  24. package/dist/createWebPortal.js.map +1 -0
  25. package/dist/createWebPortal.native.d.ts +7 -0
  26. package/dist/createWebPortal.native.js +2 -0
  27. package/dist/createWebPortal.native.js.map +1 -0
  28. package/dist/fieldElements/FieldHelperText.js +1 -1
  29. package/dist/fieldElements/FieldHelperText.js.map +1 -1
  30. package/package.json +2 -2
  31. package/src/AIRequestExplorer.tsx +6 -1
  32. package/src/ActionSheet.test.tsx +103 -3
  33. package/src/ActionSheet.tsx +4 -0
  34. package/src/Common.ts +19 -0
  35. package/src/CustomSelectField.test.tsx +13 -3
  36. package/src/CustomSelectField.tsx +2 -0
  37. package/src/EmojiSelector.test.tsx +153 -0
  38. package/src/FilePickerButton.tsx +2 -1
  39. package/src/Modal.test.tsx +47 -0
  40. package/src/PickerSelect.test.tsx +253 -14
  41. package/src/PickerSelect.tsx +206 -49
  42. package/src/SelectBadge.tsx +1 -0
  43. package/src/SelectBadge.web.test.tsx +10 -0
  44. package/src/SelectField.tsx +19 -15
  45. package/src/WebDropdownMenu.test.tsx +449 -0
  46. package/src/WebDropdownMenu.tsx +405 -60
  47. package/src/__snapshots__/AddressField.test.tsx.snap +2088 -665
  48. package/src/__snapshots__/CustomSelectField.test.tsx.snap +2118 -1369
  49. package/src/__snapshots__/Field.test.tsx.snap +3787 -1806
  50. package/src/__snapshots__/HeightField.test.tsx.snap +3 -0
  51. package/src/__snapshots__/PickerSelect.test.tsx.snap +7 -7
  52. package/src/__snapshots__/SelectField.test.tsx.snap +1548 -1102
  53. package/src/__snapshots__/Slider.test.tsx.snap +3 -0
  54. package/src/__snapshots__/TextArea.test.tsx.snap +3 -0
  55. package/src/__snapshots__/TextField.test.tsx.snap +3 -0
  56. package/src/__snapshots__/TimezonePicker.test.tsx.snap +2499 -1353
  57. package/src/createWebPortal.native.ts +8 -0
  58. package/src/createWebPortal.test.tsx +13 -0
  59. package/src/createWebPortal.ts +10 -0
  60. package/src/fieldElements/FieldHelperText.tsx +4 -2
  61. package/src/fieldElements/__snapshots__/FieldHelperText.test.tsx.snap +3 -0
  62. package/src/table/TableBadge.test.tsx +19 -11
  63. package/src/table/__snapshots__/TableBadge.test.tsx.snap +226 -175
  64. package/src/types/react-dom.d.ts +5 -0
@@ -15,71 +15,36 @@ exports[`SelectField renders correctly with default props 1`] = `
15
15
  "children": [
16
16
  {
17
17
  "$$typeof": Symbol(react.test.json),
18
- "children": null,
18
+ "children": [
19
+ "Please select an option.",
20
+ ],
19
21
  "props": {
20
- "editable": false,
21
- "multiline": true,
22
+ "numberOfLines": 1,
22
23
  "style": {
23
24
  "color": "#1C1C1C",
24
25
  "flex": 1,
26
+ "fontFamily": "text",
27
+ "fontSize": 16,
28
+ "paddingRight": 8,
25
29
  },
26
30
  "testID": "text_input",
27
- "value": "Please select an option.",
28
- },
29
- "type": "TextInput",
30
- },
31
- {
32
- "$$typeof": Symbol(react.test.json),
33
- "children": null,
34
- "props": {
35
- "style": {
36
- "pointerEvents": "none",
37
- },
38
- "testID": "icon_container",
39
31
  },
40
- "type": "View",
32
+ "type": "Text",
41
33
  },
42
34
  ],
43
35
  "props": {
36
+ "aria-role": "button",
37
+ "disabled": false,
38
+ "onPress": [Function],
44
39
  "style": {
45
40
  "alignItems": "center",
46
41
  "flexDirection": "row",
47
- "pointerEvents": "box-only",
42
+ "justifyContent": "space-between",
43
+ "minHeight": 40,
44
+ "paddingHorizontal": 8,
48
45
  "width": "100%",
49
46
  },
50
- "testID": undefined,
51
- },
52
- "type": "View",
53
- },
54
- ],
55
- "props": {
56
- "disabled": false,
57
- "onPress": [Function],
58
- "style": {
59
- "alignItems": "center",
60
- "flexDirection": "row",
61
- "justifyContent": "center",
62
- "minHeight": 40,
63
- "paddingHorizontal": 8,
64
- "width": "100%",
65
- },
66
- "testID": "ios_touchable_wrapper",
67
- },
68
- "type": "Pressable",
69
- },
70
- {
71
- "$$typeof": Symbol(react.test.json),
72
- "children": [
73
- {
74
- "$$typeof": Symbol(react.test.json),
75
- "children": null,
76
- "props": {
77
- "aria-role": "button",
78
- "onPress": [Function],
79
- "style": {
80
- "flex": 1,
81
- },
82
- "testID": "ios_modal_top",
47
+ "testID": "web_picker",
83
48
  },
84
49
  "type": "Pressable",
85
50
  },
@@ -90,12 +55,15 @@ exports[`SelectField renders correctly with default props 1`] = `
90
55
  "$$typeof": Symbol(react.test.json),
91
56
  "children": null,
92
57
  "props": {
58
+ "aria-role": "button",
59
+ "onPress": [Function],
93
60
  "style": {
94
- "flexDirection": "row",
61
+ "flex": 1,
62
+ "zIndex": 0,
95
63
  },
96
- "testID": undefined,
64
+ "testID": "web_dropdown_backdrop",
97
65
  },
98
- "type": "View",
66
+ "type": "Pressable",
99
67
  },
100
68
  {
101
69
  "$$typeof": Symbol(react.test.json),
@@ -105,166 +73,276 @@ exports[`SelectField renders correctly with default props 1`] = `
105
73
  "children": [
106
74
  {
107
75
  "$$typeof": Symbol(react.test.json),
108
- "children": [
109
- "Done",
110
- ],
76
+ "children": null,
111
77
  "props": {
112
- "allowFontScaling": false,
113
- "style": [
114
- {
115
- "color": "#007aff",
116
- "fontSize": 17,
117
- "fontWeight": "600",
118
- "paddingRight": 11,
119
- "paddingTop": 1,
120
- },
121
- {},
122
- ],
123
- "testID": "done_text",
78
+ "autoFocus": true,
79
+ "onChangeText": [Function: dispatchSetState],
80
+ "placeholder": "Search...",
81
+ "placeholderTextColor": "#686868",
82
+ "ref": {
83
+ "current": null,
84
+ },
85
+ "style": {
86
+ "borderColor": "#9A9A9A",
87
+ "borderRadius": 4,
88
+ "borderWidth": 1,
89
+ "color": "#1C1C1C",
90
+ "fontSize": 14,
91
+ "paddingHorizontal": 8,
92
+ "paddingVertical": 4,
93
+ },
94
+ "testID": "web_dropdown_search",
95
+ "value": "",
124
96
  },
125
- "type": "Text",
97
+ "type": "TextInput",
126
98
  },
127
99
  ],
128
100
  "props": {
129
- "style": undefined,
130
- "testID": "needed_for_touchable",
101
+ "style": {
102
+ "borderBottomColor": "#CDCDCD",
103
+ "borderBottomWidth": 1,
104
+ "paddingHorizontal": 8,
105
+ "paddingVertical": 6,
106
+ },
107
+ "testID": undefined,
131
108
  },
132
109
  "type": "View",
133
110
  },
134
- ],
135
- "props": {
136
- "hitSlop": {
137
- "bottom": 4,
138
- "left": 4,
139
- "right": 4,
140
- "top": 4,
141
- },
142
- "onPress": [Function],
143
- "onPressIn": [Function],
144
- "onPressOut": [Function],
145
- "testID": "done_button",
146
- },
147
- "type": "Pressable",
148
- },
149
- ],
150
- "props": {
151
- "style": {
152
- "alignItems": "center",
153
- "backgroundColor": "#f8f8f8",
154
- "borderTopColor": "#dedede",
155
- "borderTopWidth": 1,
156
- "flexDirection": "row",
157
- "height": 45,
158
- "justifyContent": "space-between",
159
- "paddingHorizontal": 10,
160
- "zIndex": 2,
161
- },
162
- "testID": "input_accessory_view",
163
- },
164
- "type": "View",
165
- },
166
- {
167
- "$$typeof": Symbol(react.test.json),
168
- "children": [
169
- {
170
- "$$typeof": Symbol(react.test.json),
171
- "children": [
172
- {
173
- "$$typeof": Symbol(react.test.json),
174
- "children": null,
175
- "props": {
176
- "color": undefined,
177
- "label": "Please select an option.",
178
- "value": "",
179
- },
180
- "type": "Picker.Item",
181
- },
182
- {
183
- "$$typeof": Symbol(react.test.json),
184
- "children": null,
185
- "props": {
186
- "color": undefined,
187
- "label": "Option 1",
188
- "value": "opt1",
189
- },
190
- "type": "Picker.Item",
191
- },
192
- {
193
- "$$typeof": Symbol(react.test.json),
194
- "children": null,
195
- "props": {
196
- "color": undefined,
197
- "label": "Option 2",
198
- "value": "opt2",
199
- },
200
- "type": "Picker.Item",
201
- },
202
111
  {
203
112
  "$$typeof": Symbol(react.test.json),
204
- "children": null,
113
+ "children": [
114
+ {
115
+ "$$typeof": Symbol(react.test.json),
116
+ "children": [
117
+ {
118
+ "$$typeof": Symbol(react.test.json),
119
+ "children": [
120
+ {
121
+ "$$typeof": Symbol(react.test.json),
122
+ "children": [
123
+ "Please select an option.",
124
+ ],
125
+ "props": {
126
+ "style": {
127
+ "color": "#1C1C1C",
128
+ "fontWeight": "600",
129
+ },
130
+ },
131
+ "type": "Text",
132
+ },
133
+ ],
134
+ "props": {
135
+ "style": {
136
+ "alignSelf": "stretch",
137
+ },
138
+ "testID": undefined,
139
+ },
140
+ "type": "View",
141
+ },
142
+ ],
143
+ "props": {
144
+ "aria-role": "button",
145
+ "onLayout": [Function],
146
+ "onPress": [Function],
147
+ "style": [Function],
148
+ "testID": "web_dropdown_option_",
149
+ },
150
+ "type": "Pressable",
151
+ },
152
+ {
153
+ "$$typeof": Symbol(react.test.json),
154
+ "children": [
155
+ {
156
+ "$$typeof": Symbol(react.test.json),
157
+ "children": [
158
+ {
159
+ "$$typeof": Symbol(react.test.json),
160
+ "children": [
161
+ "Option 1",
162
+ ],
163
+ "props": {
164
+ "style": {
165
+ "color": "#1C1C1C",
166
+ "fontWeight": "400",
167
+ },
168
+ },
169
+ "type": "Text",
170
+ },
171
+ ],
172
+ "props": {
173
+ "style": {
174
+ "alignSelf": "stretch",
175
+ },
176
+ "testID": undefined,
177
+ },
178
+ "type": "View",
179
+ },
180
+ ],
181
+ "props": {
182
+ "aria-role": "button",
183
+ "onLayout": [Function],
184
+ "onPress": [Function],
185
+ "style": [Function],
186
+ "testID": "web_dropdown_option_opt1",
187
+ },
188
+ "type": "Pressable",
189
+ },
190
+ {
191
+ "$$typeof": Symbol(react.test.json),
192
+ "children": [
193
+ {
194
+ "$$typeof": Symbol(react.test.json),
195
+ "children": [
196
+ {
197
+ "$$typeof": Symbol(react.test.json),
198
+ "children": [
199
+ "Option 2",
200
+ ],
201
+ "props": {
202
+ "style": {
203
+ "color": "#1C1C1C",
204
+ "fontWeight": "400",
205
+ },
206
+ },
207
+ "type": "Text",
208
+ },
209
+ ],
210
+ "props": {
211
+ "style": {
212
+ "alignSelf": "stretch",
213
+ },
214
+ "testID": undefined,
215
+ },
216
+ "type": "View",
217
+ },
218
+ ],
219
+ "props": {
220
+ "aria-role": "button",
221
+ "onLayout": [Function],
222
+ "onPress": [Function],
223
+ "style": [Function],
224
+ "testID": "web_dropdown_option_opt2",
225
+ },
226
+ "type": "Pressable",
227
+ },
228
+ {
229
+ "$$typeof": Symbol(react.test.json),
230
+ "children": [
231
+ {
232
+ "$$typeof": Symbol(react.test.json),
233
+ "children": [
234
+ {
235
+ "$$typeof": Symbol(react.test.json),
236
+ "children": [
237
+ "Option 3",
238
+ ],
239
+ "props": {
240
+ "style": {
241
+ "color": "#1C1C1C",
242
+ "fontWeight": "400",
243
+ },
244
+ },
245
+ "type": "Text",
246
+ },
247
+ ],
248
+ "props": {
249
+ "style": {
250
+ "alignSelf": "stretch",
251
+ },
252
+ "testID": undefined,
253
+ },
254
+ "type": "View",
255
+ },
256
+ ],
257
+ "props": {
258
+ "aria-role": "button",
259
+ "onLayout": [Function],
260
+ "onPress": [Function],
261
+ "style": [Function],
262
+ "testID": "web_dropdown_option_opt3",
263
+ },
264
+ "type": "Pressable",
265
+ },
266
+ ],
205
267
  "props": {
206
- "color": undefined,
207
- "label": "Option 3",
208
- "value": "opt3",
268
+ "keyboardShouldPersistTaps": "handled",
269
+ "onLayout": [Function],
270
+ "ref": {
271
+ "current": null,
272
+ },
209
273
  },
210
- "type": "Picker.Item",
274
+ "type": "ScrollView",
211
275
  },
212
276
  ],
213
277
  "props": {
214
- "onValueChange": [Function],
215
- "selectedValue": "",
216
- "testID": "ios_picker",
278
+ "style": {
279
+ "backgroundColor": "#FFFFFF",
280
+ "borderColor": "#9A9A9A",
281
+ "borderRadius": 4,
282
+ "borderWidth": 1,
283
+ "left": 0,
284
+ "maxHeight": 300,
285
+ "minWidth": undefined,
286
+ "overflow": "hidden",
287
+ "position": "absolute",
288
+ "shadowColor": "#000",
289
+ "shadowOffset": {
290
+ "height": 2,
291
+ "width": 0,
292
+ },
293
+ "shadowOpacity": 0.15,
294
+ "shadowRadius": 8,
295
+ "top": 4,
296
+ "width": 0,
297
+ "zIndex": 1,
298
+ },
299
+ "testID": "web_dropdown_menu",
217
300
  },
218
- "type": "Picker",
301
+ "type": "View",
219
302
  },
220
303
  ],
221
304
  "props": {
222
- "style": [
223
- {
224
- "backgroundColor": "#d0d4da",
225
- "justifyContent": "center",
226
- },
227
- {
228
- "height": 215,
229
- },
230
- ],
231
- "testID": undefined,
305
+ "animationType": "fade",
306
+ "onRequestClose": [Function],
307
+ "testID": "web_dropdown_modal",
308
+ "transparent": true,
309
+ "visible": false,
232
310
  },
233
- "type": "View",
311
+ "type": "Modal",
234
312
  },
235
313
  ],
236
314
  "props": {
237
- "animationType": undefined,
238
- "onOrientationChange": [Function],
239
- "supportedOrientations": [
240
- "portrait",
241
- "landscape",
315
+ "ref": {
316
+ "current": null,
317
+ },
318
+ "style": [
319
+ {
320
+ "alignItems": "center",
321
+ "alignSelf": "stretch",
322
+ "borderRadius": 4,
323
+ "borderWidth": 1,
324
+ "flexDirection": "row",
325
+ "justifyContent": "flex-start",
326
+ "minHeight": 40,
327
+ "width": "100%",
328
+ },
329
+ {
330
+ "backgroundColor": "#FFFFFF",
331
+ "borderColor": "#9A9A9A",
332
+ },
333
+ false,
242
334
  ],
243
- "testID": "ios_modal",
244
- "transparent": true,
245
- "visible": false,
335
+ "testID": undefined,
246
336
  },
247
- "type": "Modal",
337
+ "type": "View",
248
338
  },
249
339
  ],
250
340
  "props": {
251
- "style": [
252
- {
253
- "alignItems": "center",
254
- "alignSelf": "stretch",
255
- "borderRadius": 4,
256
- "borderWidth": 1,
257
- "flexDirection": "row",
258
- "justifyContent": "center",
259
- "minHeight": 40,
260
- "width": "100%",
261
- },
262
- {
263
- "backgroundColor": "#FFFFFF",
264
- "borderColor": "#9A9A9A",
265
- },
266
- false,
267
- ],
341
+ "style": {
342
+ "alignSelf": "stretch",
343
+ "minWidth": 0,
344
+ "width": "100%",
345
+ },
268
346
  "testID": undefined,
269
347
  },
270
348
  "type": "View",
@@ -272,6 +350,7 @@ exports[`SelectField renders correctly with default props 1`] = `
272
350
  ],
273
351
  "props": {
274
352
  "style": {
353
+ "minWidth": 0,
275
354
  "width": "100%",
276
355
  },
277
356
  "testID": undefined,
@@ -310,71 +389,36 @@ exports[`SelectField renders with title 1`] = `
310
389
  "children": [
311
390
  {
312
391
  "$$typeof": Symbol(react.test.json),
313
- "children": null,
392
+ "children": [
393
+ "Please select an option.",
394
+ ],
314
395
  "props": {
315
- "editable": false,
316
- "multiline": true,
396
+ "numberOfLines": 1,
317
397
  "style": {
318
398
  "color": "#1C1C1C",
319
399
  "flex": 1,
400
+ "fontFamily": "text",
401
+ "fontSize": 16,
402
+ "paddingRight": 8,
320
403
  },
321
404
  "testID": "text_input",
322
- "value": "Please select an option.",
323
- },
324
- "type": "TextInput",
325
- },
326
- {
327
- "$$typeof": Symbol(react.test.json),
328
- "children": null,
329
- "props": {
330
- "style": {
331
- "pointerEvents": "none",
332
- },
333
- "testID": "icon_container",
334
405
  },
335
- "type": "View",
406
+ "type": "Text",
336
407
  },
337
408
  ],
338
409
  "props": {
410
+ "aria-role": "button",
411
+ "disabled": false,
412
+ "onPress": [Function],
339
413
  "style": {
340
414
  "alignItems": "center",
341
415
  "flexDirection": "row",
342
- "pointerEvents": "box-only",
416
+ "justifyContent": "space-between",
417
+ "minHeight": 40,
418
+ "paddingHorizontal": 8,
343
419
  "width": "100%",
344
420
  },
345
- "testID": undefined,
346
- },
347
- "type": "View",
348
- },
349
- ],
350
- "props": {
351
- "disabled": false,
352
- "onPress": [Function],
353
- "style": {
354
- "alignItems": "center",
355
- "flexDirection": "row",
356
- "justifyContent": "center",
357
- "minHeight": 40,
358
- "paddingHorizontal": 8,
359
- "width": "100%",
360
- },
361
- "testID": "ios_touchable_wrapper",
362
- },
363
- "type": "Pressable",
364
- },
365
- {
366
- "$$typeof": Symbol(react.test.json),
367
- "children": [
368
- {
369
- "$$typeof": Symbol(react.test.json),
370
- "children": null,
371
- "props": {
372
- "aria-role": "button",
373
- "onPress": [Function],
374
- "style": {
375
- "flex": 1,
376
- },
377
- "testID": "ios_modal_top",
421
+ "testID": "web_picker",
378
422
  },
379
423
  "type": "Pressable",
380
424
  },
@@ -385,12 +429,15 @@ exports[`SelectField renders with title 1`] = `
385
429
  "$$typeof": Symbol(react.test.json),
386
430
  "children": null,
387
431
  "props": {
432
+ "aria-role": "button",
433
+ "onPress": [Function],
388
434
  "style": {
389
- "flexDirection": "row",
435
+ "flex": 1,
436
+ "zIndex": 0,
390
437
  },
391
- "testID": undefined,
438
+ "testID": "web_dropdown_backdrop",
392
439
  },
393
- "type": "View",
440
+ "type": "Pressable",
394
441
  },
395
442
  {
396
443
  "$$typeof": Symbol(react.test.json),
@@ -400,166 +447,276 @@ exports[`SelectField renders with title 1`] = `
400
447
  "children": [
401
448
  {
402
449
  "$$typeof": Symbol(react.test.json),
403
- "children": [
404
- "Done",
405
- ],
450
+ "children": null,
406
451
  "props": {
407
- "allowFontScaling": false,
408
- "style": [
409
- {
410
- "color": "#007aff",
411
- "fontSize": 17,
412
- "fontWeight": "600",
413
- "paddingRight": 11,
414
- "paddingTop": 1,
415
- },
416
- {},
417
- ],
418
- "testID": "done_text",
452
+ "autoFocus": true,
453
+ "onChangeText": [Function: dispatchSetState],
454
+ "placeholder": "Search...",
455
+ "placeholderTextColor": "#686868",
456
+ "ref": {
457
+ "current": null,
458
+ },
459
+ "style": {
460
+ "borderColor": "#9A9A9A",
461
+ "borderRadius": 4,
462
+ "borderWidth": 1,
463
+ "color": "#1C1C1C",
464
+ "fontSize": 14,
465
+ "paddingHorizontal": 8,
466
+ "paddingVertical": 4,
467
+ },
468
+ "testID": "web_dropdown_search",
469
+ "value": "",
419
470
  },
420
- "type": "Text",
471
+ "type": "TextInput",
421
472
  },
422
473
  ],
423
474
  "props": {
424
- "style": undefined,
425
- "testID": "needed_for_touchable",
475
+ "style": {
476
+ "borderBottomColor": "#CDCDCD",
477
+ "borderBottomWidth": 1,
478
+ "paddingHorizontal": 8,
479
+ "paddingVertical": 6,
480
+ },
481
+ "testID": undefined,
426
482
  },
427
483
  "type": "View",
428
484
  },
429
- ],
430
- "props": {
431
- "hitSlop": {
432
- "bottom": 4,
433
- "left": 4,
434
- "right": 4,
435
- "top": 4,
436
- },
437
- "onPress": [Function],
438
- "onPressIn": [Function],
439
- "onPressOut": [Function],
440
- "testID": "done_button",
441
- },
442
- "type": "Pressable",
443
- },
444
- ],
445
- "props": {
446
- "style": {
447
- "alignItems": "center",
448
- "backgroundColor": "#f8f8f8",
449
- "borderTopColor": "#dedede",
450
- "borderTopWidth": 1,
451
- "flexDirection": "row",
452
- "height": 45,
453
- "justifyContent": "space-between",
454
- "paddingHorizontal": 10,
455
- "zIndex": 2,
456
- },
457
- "testID": "input_accessory_view",
458
- },
459
- "type": "View",
460
- },
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": null,
470
- "props": {
471
- "color": undefined,
472
- "label": "Please select an option.",
473
- "value": "",
474
- },
475
- "type": "Picker.Item",
476
- },
477
- {
478
- "$$typeof": Symbol(react.test.json),
479
- "children": null,
480
- "props": {
481
- "color": undefined,
482
- "label": "Option 1",
483
- "value": "opt1",
484
- },
485
- "type": "Picker.Item",
486
- },
487
485
  {
488
486
  "$$typeof": Symbol(react.test.json),
489
- "children": null,
490
- "props": {
491
- "color": undefined,
492
- "label": "Option 2",
493
- "value": "opt2",
494
- },
495
- "type": "Picker.Item",
496
- },
497
- {
498
- "$$typeof": Symbol(react.test.json),
499
- "children": null,
487
+ "children": [
488
+ {
489
+ "$$typeof": Symbol(react.test.json),
490
+ "children": [
491
+ {
492
+ "$$typeof": Symbol(react.test.json),
493
+ "children": [
494
+ {
495
+ "$$typeof": Symbol(react.test.json),
496
+ "children": [
497
+ "Please select an option.",
498
+ ],
499
+ "props": {
500
+ "style": {
501
+ "color": "#1C1C1C",
502
+ "fontWeight": "600",
503
+ },
504
+ },
505
+ "type": "Text",
506
+ },
507
+ ],
508
+ "props": {
509
+ "style": {
510
+ "alignSelf": "stretch",
511
+ },
512
+ "testID": undefined,
513
+ },
514
+ "type": "View",
515
+ },
516
+ ],
517
+ "props": {
518
+ "aria-role": "button",
519
+ "onLayout": [Function],
520
+ "onPress": [Function],
521
+ "style": [Function],
522
+ "testID": "web_dropdown_option_",
523
+ },
524
+ "type": "Pressable",
525
+ },
526
+ {
527
+ "$$typeof": Symbol(react.test.json),
528
+ "children": [
529
+ {
530
+ "$$typeof": Symbol(react.test.json),
531
+ "children": [
532
+ {
533
+ "$$typeof": Symbol(react.test.json),
534
+ "children": [
535
+ "Option 1",
536
+ ],
537
+ "props": {
538
+ "style": {
539
+ "color": "#1C1C1C",
540
+ "fontWeight": "400",
541
+ },
542
+ },
543
+ "type": "Text",
544
+ },
545
+ ],
546
+ "props": {
547
+ "style": {
548
+ "alignSelf": "stretch",
549
+ },
550
+ "testID": undefined,
551
+ },
552
+ "type": "View",
553
+ },
554
+ ],
555
+ "props": {
556
+ "aria-role": "button",
557
+ "onLayout": [Function],
558
+ "onPress": [Function],
559
+ "style": [Function],
560
+ "testID": "web_dropdown_option_opt1",
561
+ },
562
+ "type": "Pressable",
563
+ },
564
+ {
565
+ "$$typeof": Symbol(react.test.json),
566
+ "children": [
567
+ {
568
+ "$$typeof": Symbol(react.test.json),
569
+ "children": [
570
+ {
571
+ "$$typeof": Symbol(react.test.json),
572
+ "children": [
573
+ "Option 2",
574
+ ],
575
+ "props": {
576
+ "style": {
577
+ "color": "#1C1C1C",
578
+ "fontWeight": "400",
579
+ },
580
+ },
581
+ "type": "Text",
582
+ },
583
+ ],
584
+ "props": {
585
+ "style": {
586
+ "alignSelf": "stretch",
587
+ },
588
+ "testID": undefined,
589
+ },
590
+ "type": "View",
591
+ },
592
+ ],
593
+ "props": {
594
+ "aria-role": "button",
595
+ "onLayout": [Function],
596
+ "onPress": [Function],
597
+ "style": [Function],
598
+ "testID": "web_dropdown_option_opt2",
599
+ },
600
+ "type": "Pressable",
601
+ },
602
+ {
603
+ "$$typeof": Symbol(react.test.json),
604
+ "children": [
605
+ {
606
+ "$$typeof": Symbol(react.test.json),
607
+ "children": [
608
+ {
609
+ "$$typeof": Symbol(react.test.json),
610
+ "children": [
611
+ "Option 3",
612
+ ],
613
+ "props": {
614
+ "style": {
615
+ "color": "#1C1C1C",
616
+ "fontWeight": "400",
617
+ },
618
+ },
619
+ "type": "Text",
620
+ },
621
+ ],
622
+ "props": {
623
+ "style": {
624
+ "alignSelf": "stretch",
625
+ },
626
+ "testID": undefined,
627
+ },
628
+ "type": "View",
629
+ },
630
+ ],
631
+ "props": {
632
+ "aria-role": "button",
633
+ "onLayout": [Function],
634
+ "onPress": [Function],
635
+ "style": [Function],
636
+ "testID": "web_dropdown_option_opt3",
637
+ },
638
+ "type": "Pressable",
639
+ },
640
+ ],
500
641
  "props": {
501
- "color": undefined,
502
- "label": "Option 3",
503
- "value": "opt3",
642
+ "keyboardShouldPersistTaps": "handled",
643
+ "onLayout": [Function],
644
+ "ref": {
645
+ "current": null,
646
+ },
504
647
  },
505
- "type": "Picker.Item",
648
+ "type": "ScrollView",
506
649
  },
507
650
  ],
508
651
  "props": {
509
- "onValueChange": [Function],
510
- "selectedValue": "",
511
- "testID": "ios_picker",
652
+ "style": {
653
+ "backgroundColor": "#FFFFFF",
654
+ "borderColor": "#9A9A9A",
655
+ "borderRadius": 4,
656
+ "borderWidth": 1,
657
+ "left": 0,
658
+ "maxHeight": 300,
659
+ "minWidth": undefined,
660
+ "overflow": "hidden",
661
+ "position": "absolute",
662
+ "shadowColor": "#000",
663
+ "shadowOffset": {
664
+ "height": 2,
665
+ "width": 0,
666
+ },
667
+ "shadowOpacity": 0.15,
668
+ "shadowRadius": 8,
669
+ "top": 4,
670
+ "width": 0,
671
+ "zIndex": 1,
672
+ },
673
+ "testID": "web_dropdown_menu",
512
674
  },
513
- "type": "Picker",
675
+ "type": "View",
514
676
  },
515
677
  ],
516
678
  "props": {
517
- "style": [
518
- {
519
- "backgroundColor": "#d0d4da",
520
- "justifyContent": "center",
521
- },
522
- {
523
- "height": 215,
524
- },
525
- ],
526
- "testID": undefined,
679
+ "animationType": "fade",
680
+ "onRequestClose": [Function],
681
+ "testID": "web_dropdown_modal",
682
+ "transparent": true,
683
+ "visible": false,
527
684
  },
528
- "type": "View",
685
+ "type": "Modal",
529
686
  },
530
687
  ],
531
688
  "props": {
532
- "animationType": undefined,
533
- "onOrientationChange": [Function],
534
- "supportedOrientations": [
535
- "portrait",
536
- "landscape",
689
+ "ref": {
690
+ "current": null,
691
+ },
692
+ "style": [
693
+ {
694
+ "alignItems": "center",
695
+ "alignSelf": "stretch",
696
+ "borderRadius": 4,
697
+ "borderWidth": 1,
698
+ "flexDirection": "row",
699
+ "justifyContent": "flex-start",
700
+ "minHeight": 40,
701
+ "width": "100%",
702
+ },
703
+ {
704
+ "backgroundColor": "#FFFFFF",
705
+ "borderColor": "#9A9A9A",
706
+ },
707
+ false,
537
708
  ],
538
- "testID": "ios_modal",
539
- "transparent": true,
540
- "visible": false,
709
+ "testID": undefined,
541
710
  },
542
- "type": "Modal",
711
+ "type": "View",
543
712
  },
544
713
  ],
545
714
  "props": {
546
- "style": [
547
- {
548
- "alignItems": "center",
549
- "alignSelf": "stretch",
550
- "borderRadius": 4,
551
- "borderWidth": 1,
552
- "flexDirection": "row",
553
- "justifyContent": "center",
554
- "minHeight": 40,
555
- "width": "100%",
556
- },
557
- {
558
- "backgroundColor": "#FFFFFF",
559
- "borderColor": "#9A9A9A",
560
- },
561
- false,
562
- ],
715
+ "style": {
716
+ "alignSelf": "stretch",
717
+ "minWidth": 0,
718
+ "width": "100%",
719
+ },
563
720
  "testID": undefined,
564
721
  },
565
722
  "type": "View",
@@ -567,6 +724,7 @@ exports[`SelectField renders with title 1`] = `
567
724
  ],
568
725
  "props": {
569
726
  "style": {
727
+ "minWidth": 0,
570
728
  "width": "100%",
571
729
  },
572
730
  "testID": undefined,
@@ -590,71 +748,36 @@ exports[`SelectField renders with selected value 1`] = `
590
748
  "children": [
591
749
  {
592
750
  "$$typeof": Symbol(react.test.json),
593
- "children": null,
751
+ "children": [
752
+ "Option 2",
753
+ ],
594
754
  "props": {
595
- "editable": false,
596
- "multiline": true,
755
+ "numberOfLines": 1,
597
756
  "style": {
598
757
  "color": "#1C1C1C",
599
758
  "flex": 1,
759
+ "fontFamily": "text",
760
+ "fontSize": 16,
761
+ "paddingRight": 8,
600
762
  },
601
763
  "testID": "text_input",
602
- "value": "Option 2",
603
764
  },
604
- "type": "TextInput",
605
- },
606
- {
607
- "$$typeof": Symbol(react.test.json),
608
- "children": null,
609
- "props": {
610
- "style": {
611
- "pointerEvents": "none",
612
- },
613
- "testID": "icon_container",
614
- },
615
- "type": "View",
765
+ "type": "Text",
616
766
  },
617
767
  ],
618
768
  "props": {
769
+ "aria-role": "button",
770
+ "disabled": false,
771
+ "onPress": [Function],
619
772
  "style": {
620
773
  "alignItems": "center",
621
774
  "flexDirection": "row",
622
- "pointerEvents": "box-only",
775
+ "justifyContent": "space-between",
776
+ "minHeight": 40,
777
+ "paddingHorizontal": 8,
623
778
  "width": "100%",
624
779
  },
625
- "testID": undefined,
626
- },
627
- "type": "View",
628
- },
629
- ],
630
- "props": {
631
- "disabled": false,
632
- "onPress": [Function],
633
- "style": {
634
- "alignItems": "center",
635
- "flexDirection": "row",
636
- "justifyContent": "center",
637
- "minHeight": 40,
638
- "paddingHorizontal": 8,
639
- "width": "100%",
640
- },
641
- "testID": "ios_touchable_wrapper",
642
- },
643
- "type": "Pressable",
644
- },
645
- {
646
- "$$typeof": Symbol(react.test.json),
647
- "children": [
648
- {
649
- "$$typeof": Symbol(react.test.json),
650
- "children": null,
651
- "props": {
652
- "aria-role": "button",
653
- "onPress": [Function],
654
- "style": {
655
- "flex": 1,
656
- },
657
- "testID": "ios_modal_top",
780
+ "testID": "web_picker",
658
781
  },
659
782
  "type": "Pressable",
660
783
  },
@@ -665,12 +788,15 @@ exports[`SelectField renders with selected value 1`] = `
665
788
  "$$typeof": Symbol(react.test.json),
666
789
  "children": null,
667
790
  "props": {
791
+ "aria-role": "button",
792
+ "onPress": [Function],
668
793
  "style": {
669
- "flexDirection": "row",
794
+ "flex": 1,
795
+ "zIndex": 0,
670
796
  },
671
- "testID": undefined,
797
+ "testID": "web_dropdown_backdrop",
672
798
  },
673
- "type": "View",
799
+ "type": "Pressable",
674
800
  },
675
801
  {
676
802
  "$$typeof": Symbol(react.test.json),
@@ -680,166 +806,276 @@ exports[`SelectField renders with selected value 1`] = `
680
806
  "children": [
681
807
  {
682
808
  "$$typeof": Symbol(react.test.json),
683
- "children": [
684
- "Done",
685
- ],
809
+ "children": null,
686
810
  "props": {
687
- "allowFontScaling": false,
688
- "style": [
689
- {
690
- "color": "#007aff",
691
- "fontSize": 17,
692
- "fontWeight": "600",
693
- "paddingRight": 11,
694
- "paddingTop": 1,
695
- },
696
- {},
697
- ],
698
- "testID": "done_text",
811
+ "autoFocus": true,
812
+ "onChangeText": [Function: dispatchSetState],
813
+ "placeholder": "Search...",
814
+ "placeholderTextColor": "#686868",
815
+ "ref": {
816
+ "current": null,
817
+ },
818
+ "style": {
819
+ "borderColor": "#9A9A9A",
820
+ "borderRadius": 4,
821
+ "borderWidth": 1,
822
+ "color": "#1C1C1C",
823
+ "fontSize": 14,
824
+ "paddingHorizontal": 8,
825
+ "paddingVertical": 4,
826
+ },
827
+ "testID": "web_dropdown_search",
828
+ "value": "",
699
829
  },
700
- "type": "Text",
830
+ "type": "TextInput",
701
831
  },
702
832
  ],
703
833
  "props": {
704
- "style": undefined,
705
- "testID": "needed_for_touchable",
834
+ "style": {
835
+ "borderBottomColor": "#CDCDCD",
836
+ "borderBottomWidth": 1,
837
+ "paddingHorizontal": 8,
838
+ "paddingVertical": 6,
839
+ },
840
+ "testID": undefined,
706
841
  },
707
842
  "type": "View",
708
843
  },
709
- ],
710
- "props": {
711
- "hitSlop": {
712
- "bottom": 4,
713
- "left": 4,
714
- "right": 4,
715
- "top": 4,
716
- },
717
- "onPress": [Function],
718
- "onPressIn": [Function],
719
- "onPressOut": [Function],
720
- "testID": "done_button",
721
- },
722
- "type": "Pressable",
723
- },
724
- ],
725
- "props": {
726
- "style": {
727
- "alignItems": "center",
728
- "backgroundColor": "#f8f8f8",
729
- "borderTopColor": "#dedede",
730
- "borderTopWidth": 1,
731
- "flexDirection": "row",
732
- "height": 45,
733
- "justifyContent": "space-between",
734
- "paddingHorizontal": 10,
735
- "zIndex": 2,
736
- },
737
- "testID": "input_accessory_view",
738
- },
739
- "type": "View",
740
- },
741
- {
742
- "$$typeof": Symbol(react.test.json),
743
- "children": [
744
- {
745
- "$$typeof": Symbol(react.test.json),
746
- "children": [
747
- {
748
- "$$typeof": Symbol(react.test.json),
749
- "children": null,
750
- "props": {
751
- "color": undefined,
752
- "label": "Please select an option.",
753
- "value": "",
754
- },
755
- "type": "Picker.Item",
756
- },
757
844
  {
758
845
  "$$typeof": Symbol(react.test.json),
759
- "children": null,
760
- "props": {
761
- "color": undefined,
762
- "label": "Option 1",
763
- "value": "opt1",
764
- },
765
- "type": "Picker.Item",
766
- },
767
- {
768
- "$$typeof": Symbol(react.test.json),
769
- "children": null,
770
- "props": {
771
- "color": undefined,
772
- "label": "Option 2",
773
- "value": "opt2",
774
- },
775
- "type": "Picker.Item",
776
- },
777
- {
778
- "$$typeof": Symbol(react.test.json),
779
- "children": null,
846
+ "children": [
847
+ {
848
+ "$$typeof": Symbol(react.test.json),
849
+ "children": [
850
+ {
851
+ "$$typeof": Symbol(react.test.json),
852
+ "children": [
853
+ {
854
+ "$$typeof": Symbol(react.test.json),
855
+ "children": [
856
+ "Please select an option.",
857
+ ],
858
+ "props": {
859
+ "style": {
860
+ "color": "#1C1C1C",
861
+ "fontWeight": "400",
862
+ },
863
+ },
864
+ "type": "Text",
865
+ },
866
+ ],
867
+ "props": {
868
+ "style": {
869
+ "alignSelf": "stretch",
870
+ },
871
+ "testID": undefined,
872
+ },
873
+ "type": "View",
874
+ },
875
+ ],
876
+ "props": {
877
+ "aria-role": "button",
878
+ "onLayout": [Function],
879
+ "onPress": [Function],
880
+ "style": [Function],
881
+ "testID": "web_dropdown_option_",
882
+ },
883
+ "type": "Pressable",
884
+ },
885
+ {
886
+ "$$typeof": Symbol(react.test.json),
887
+ "children": [
888
+ {
889
+ "$$typeof": Symbol(react.test.json),
890
+ "children": [
891
+ {
892
+ "$$typeof": Symbol(react.test.json),
893
+ "children": [
894
+ "Option 1",
895
+ ],
896
+ "props": {
897
+ "style": {
898
+ "color": "#1C1C1C",
899
+ "fontWeight": "400",
900
+ },
901
+ },
902
+ "type": "Text",
903
+ },
904
+ ],
905
+ "props": {
906
+ "style": {
907
+ "alignSelf": "stretch",
908
+ },
909
+ "testID": undefined,
910
+ },
911
+ "type": "View",
912
+ },
913
+ ],
914
+ "props": {
915
+ "aria-role": "button",
916
+ "onLayout": [Function],
917
+ "onPress": [Function],
918
+ "style": [Function],
919
+ "testID": "web_dropdown_option_opt1",
920
+ },
921
+ "type": "Pressable",
922
+ },
923
+ {
924
+ "$$typeof": Symbol(react.test.json),
925
+ "children": [
926
+ {
927
+ "$$typeof": Symbol(react.test.json),
928
+ "children": [
929
+ {
930
+ "$$typeof": Symbol(react.test.json),
931
+ "children": [
932
+ "Option 2",
933
+ ],
934
+ "props": {
935
+ "style": {
936
+ "color": "#1C1C1C",
937
+ "fontWeight": "600",
938
+ },
939
+ },
940
+ "type": "Text",
941
+ },
942
+ ],
943
+ "props": {
944
+ "style": {
945
+ "alignSelf": "stretch",
946
+ },
947
+ "testID": undefined,
948
+ },
949
+ "type": "View",
950
+ },
951
+ ],
952
+ "props": {
953
+ "aria-role": "button",
954
+ "onLayout": [Function],
955
+ "onPress": [Function],
956
+ "style": [Function],
957
+ "testID": "web_dropdown_option_opt2",
958
+ },
959
+ "type": "Pressable",
960
+ },
961
+ {
962
+ "$$typeof": Symbol(react.test.json),
963
+ "children": [
964
+ {
965
+ "$$typeof": Symbol(react.test.json),
966
+ "children": [
967
+ {
968
+ "$$typeof": Symbol(react.test.json),
969
+ "children": [
970
+ "Option 3",
971
+ ],
972
+ "props": {
973
+ "style": {
974
+ "color": "#1C1C1C",
975
+ "fontWeight": "400",
976
+ },
977
+ },
978
+ "type": "Text",
979
+ },
980
+ ],
981
+ "props": {
982
+ "style": {
983
+ "alignSelf": "stretch",
984
+ },
985
+ "testID": undefined,
986
+ },
987
+ "type": "View",
988
+ },
989
+ ],
990
+ "props": {
991
+ "aria-role": "button",
992
+ "onLayout": [Function],
993
+ "onPress": [Function],
994
+ "style": [Function],
995
+ "testID": "web_dropdown_option_opt3",
996
+ },
997
+ "type": "Pressable",
998
+ },
999
+ ],
780
1000
  "props": {
781
- "color": undefined,
782
- "label": "Option 3",
783
- "value": "opt3",
1001
+ "keyboardShouldPersistTaps": "handled",
1002
+ "onLayout": [Function],
1003
+ "ref": {
1004
+ "current": null,
1005
+ },
784
1006
  },
785
- "type": "Picker.Item",
1007
+ "type": "ScrollView",
786
1008
  },
787
1009
  ],
788
1010
  "props": {
789
- "onValueChange": [Function],
790
- "selectedValue": "opt2",
791
- "testID": "ios_picker",
1011
+ "style": {
1012
+ "backgroundColor": "#FFFFFF",
1013
+ "borderColor": "#9A9A9A",
1014
+ "borderRadius": 4,
1015
+ "borderWidth": 1,
1016
+ "left": 0,
1017
+ "maxHeight": 300,
1018
+ "minWidth": undefined,
1019
+ "overflow": "hidden",
1020
+ "position": "absolute",
1021
+ "shadowColor": "#000",
1022
+ "shadowOffset": {
1023
+ "height": 2,
1024
+ "width": 0,
1025
+ },
1026
+ "shadowOpacity": 0.15,
1027
+ "shadowRadius": 8,
1028
+ "top": 4,
1029
+ "width": 0,
1030
+ "zIndex": 1,
1031
+ },
1032
+ "testID": "web_dropdown_menu",
792
1033
  },
793
- "type": "Picker",
1034
+ "type": "View",
794
1035
  },
795
1036
  ],
796
1037
  "props": {
797
- "style": [
798
- {
799
- "backgroundColor": "#d0d4da",
800
- "justifyContent": "center",
801
- },
802
- {
803
- "height": 215,
804
- },
805
- ],
806
- "testID": undefined,
1038
+ "animationType": "fade",
1039
+ "onRequestClose": [Function],
1040
+ "testID": "web_dropdown_modal",
1041
+ "transparent": true,
1042
+ "visible": false,
807
1043
  },
808
- "type": "View",
1044
+ "type": "Modal",
809
1045
  },
810
1046
  ],
811
1047
  "props": {
812
- "animationType": undefined,
813
- "onOrientationChange": [Function],
814
- "supportedOrientations": [
815
- "portrait",
816
- "landscape",
1048
+ "ref": {
1049
+ "current": null,
1050
+ },
1051
+ "style": [
1052
+ {
1053
+ "alignItems": "center",
1054
+ "alignSelf": "stretch",
1055
+ "borderRadius": 4,
1056
+ "borderWidth": 1,
1057
+ "flexDirection": "row",
1058
+ "justifyContent": "flex-start",
1059
+ "minHeight": 40,
1060
+ "width": "100%",
1061
+ },
1062
+ {
1063
+ "backgroundColor": "#FFFFFF",
1064
+ "borderColor": "#9A9A9A",
1065
+ },
1066
+ false,
817
1067
  ],
818
- "testID": "ios_modal",
819
- "transparent": true,
820
- "visible": false,
1068
+ "testID": undefined,
821
1069
  },
822
- "type": "Modal",
1070
+ "type": "View",
823
1071
  },
824
1072
  ],
825
1073
  "props": {
826
- "style": [
827
- {
828
- "alignItems": "center",
829
- "alignSelf": "stretch",
830
- "borderRadius": 4,
831
- "borderWidth": 1,
832
- "flexDirection": "row",
833
- "justifyContent": "center",
834
- "minHeight": 40,
835
- "width": "100%",
836
- },
837
- {
838
- "backgroundColor": "#FFFFFF",
839
- "borderColor": "#9A9A9A",
840
- },
841
- false,
842
- ],
1074
+ "style": {
1075
+ "alignSelf": "stretch",
1076
+ "minWidth": 0,
1077
+ "width": "100%",
1078
+ },
843
1079
  "testID": undefined,
844
1080
  },
845
1081
  "type": "View",
@@ -847,6 +1083,7 @@ exports[`SelectField renders with selected value 1`] = `
847
1083
  ],
848
1084
  "props": {
849
1085
  "style": {
1086
+ "minWidth": 0,
850
1087
  "width": "100%",
851
1088
  },
852
1089
  "testID": undefined,
@@ -870,71 +1107,36 @@ exports[`SelectField renders with custom placeholder 1`] = `
870
1107
  "children": [
871
1108
  {
872
1109
  "$$typeof": Symbol(react.test.json),
873
- "children": null,
1110
+ "children": [
1111
+ "Choose one...",
1112
+ ],
874
1113
  "props": {
875
- "editable": false,
876
- "multiline": true,
1114
+ "numberOfLines": 1,
877
1115
  "style": {
878
1116
  "color": "#1C1C1C",
879
1117
  "flex": 1,
1118
+ "fontFamily": "text",
1119
+ "fontSize": 16,
1120
+ "paddingRight": 8,
880
1121
  },
881
1122
  "testID": "text_input",
882
- "value": "Choose one...",
883
1123
  },
884
- "type": "TextInput",
885
- },
886
- {
887
- "$$typeof": Symbol(react.test.json),
888
- "children": null,
889
- "props": {
890
- "style": {
891
- "pointerEvents": "none",
892
- },
893
- "testID": "icon_container",
894
- },
895
- "type": "View",
1124
+ "type": "Text",
896
1125
  },
897
1126
  ],
898
1127
  "props": {
1128
+ "aria-role": "button",
1129
+ "disabled": false,
1130
+ "onPress": [Function],
899
1131
  "style": {
900
1132
  "alignItems": "center",
901
1133
  "flexDirection": "row",
902
- "pointerEvents": "box-only",
1134
+ "justifyContent": "space-between",
1135
+ "minHeight": 40,
1136
+ "paddingHorizontal": 8,
903
1137
  "width": "100%",
904
1138
  },
905
- "testID": undefined,
906
- },
907
- "type": "View",
908
- },
909
- ],
910
- "props": {
911
- "disabled": false,
912
- "onPress": [Function],
913
- "style": {
914
- "alignItems": "center",
915
- "flexDirection": "row",
916
- "justifyContent": "center",
917
- "minHeight": 40,
918
- "paddingHorizontal": 8,
919
- "width": "100%",
920
- },
921
- "testID": "ios_touchable_wrapper",
922
- },
923
- "type": "Pressable",
924
- },
925
- {
926
- "$$typeof": Symbol(react.test.json),
927
- "children": [
928
- {
929
- "$$typeof": Symbol(react.test.json),
930
- "children": null,
931
- "props": {
932
- "aria-role": "button",
933
- "onPress": [Function],
934
- "style": {
935
- "flex": 1,
936
- },
937
- "testID": "ios_modal_top",
1139
+ "testID": "web_picker",
938
1140
  },
939
1141
  "type": "Pressable",
940
1142
  },
@@ -945,12 +1147,15 @@ exports[`SelectField renders with custom placeholder 1`] = `
945
1147
  "$$typeof": Symbol(react.test.json),
946
1148
  "children": null,
947
1149
  "props": {
1150
+ "aria-role": "button",
1151
+ "onPress": [Function],
948
1152
  "style": {
949
- "flexDirection": "row",
1153
+ "flex": 1,
1154
+ "zIndex": 0,
950
1155
  },
951
- "testID": undefined,
1156
+ "testID": "web_dropdown_backdrop",
952
1157
  },
953
- "type": "View",
1158
+ "type": "Pressable",
954
1159
  },
955
1160
  {
956
1161
  "$$typeof": Symbol(react.test.json),
@@ -960,166 +1165,276 @@ exports[`SelectField renders with custom placeholder 1`] = `
960
1165
  "children": [
961
1166
  {
962
1167
  "$$typeof": Symbol(react.test.json),
963
- "children": [
964
- "Done",
965
- ],
1168
+ "children": null,
966
1169
  "props": {
967
- "allowFontScaling": false,
968
- "style": [
969
- {
970
- "color": "#007aff",
971
- "fontSize": 17,
972
- "fontWeight": "600",
973
- "paddingRight": 11,
974
- "paddingTop": 1,
975
- },
976
- {},
977
- ],
978
- "testID": "done_text",
1170
+ "autoFocus": true,
1171
+ "onChangeText": [Function: dispatchSetState],
1172
+ "placeholder": "Search...",
1173
+ "placeholderTextColor": "#686868",
1174
+ "ref": {
1175
+ "current": null,
1176
+ },
1177
+ "style": {
1178
+ "borderColor": "#9A9A9A",
1179
+ "borderRadius": 4,
1180
+ "borderWidth": 1,
1181
+ "color": "#1C1C1C",
1182
+ "fontSize": 14,
1183
+ "paddingHorizontal": 8,
1184
+ "paddingVertical": 4,
1185
+ },
1186
+ "testID": "web_dropdown_search",
1187
+ "value": "",
979
1188
  },
980
- "type": "Text",
1189
+ "type": "TextInput",
981
1190
  },
982
1191
  ],
983
1192
  "props": {
984
- "style": undefined,
985
- "testID": "needed_for_touchable",
1193
+ "style": {
1194
+ "borderBottomColor": "#CDCDCD",
1195
+ "borderBottomWidth": 1,
1196
+ "paddingHorizontal": 8,
1197
+ "paddingVertical": 6,
1198
+ },
1199
+ "testID": undefined,
986
1200
  },
987
1201
  "type": "View",
988
1202
  },
989
- ],
990
- "props": {
991
- "hitSlop": {
992
- "bottom": 4,
993
- "left": 4,
994
- "right": 4,
995
- "top": 4,
996
- },
997
- "onPress": [Function],
998
- "onPressIn": [Function],
999
- "onPressOut": [Function],
1000
- "testID": "done_button",
1001
- },
1002
- "type": "Pressable",
1003
- },
1004
- ],
1005
- "props": {
1006
- "style": {
1007
- "alignItems": "center",
1008
- "backgroundColor": "#f8f8f8",
1009
- "borderTopColor": "#dedede",
1010
- "borderTopWidth": 1,
1011
- "flexDirection": "row",
1012
- "height": 45,
1013
- "justifyContent": "space-between",
1014
- "paddingHorizontal": 10,
1015
- "zIndex": 2,
1016
- },
1017
- "testID": "input_accessory_view",
1018
- },
1019
- "type": "View",
1020
- },
1021
- {
1022
- "$$typeof": Symbol(react.test.json),
1023
- "children": [
1024
- {
1025
- "$$typeof": Symbol(react.test.json),
1026
- "children": [
1027
- {
1028
- "$$typeof": Symbol(react.test.json),
1029
- "children": null,
1030
- "props": {
1031
- "color": undefined,
1032
- "label": "Choose one...",
1033
- "value": "",
1034
- },
1035
- "type": "Picker.Item",
1036
- },
1037
1203
  {
1038
1204
  "$$typeof": Symbol(react.test.json),
1039
- "children": null,
1040
- "props": {
1041
- "color": undefined,
1042
- "label": "Option 1",
1043
- "value": "opt1",
1044
- },
1045
- "type": "Picker.Item",
1046
- },
1047
- {
1048
- "$$typeof": Symbol(react.test.json),
1049
- "children": null,
1205
+ "children": [
1206
+ {
1207
+ "$$typeof": Symbol(react.test.json),
1208
+ "children": [
1209
+ {
1210
+ "$$typeof": Symbol(react.test.json),
1211
+ "children": [
1212
+ {
1213
+ "$$typeof": Symbol(react.test.json),
1214
+ "children": [
1215
+ "Choose one...",
1216
+ ],
1217
+ "props": {
1218
+ "style": {
1219
+ "color": "#1C1C1C",
1220
+ "fontWeight": "600",
1221
+ },
1222
+ },
1223
+ "type": "Text",
1224
+ },
1225
+ ],
1226
+ "props": {
1227
+ "style": {
1228
+ "alignSelf": "stretch",
1229
+ },
1230
+ "testID": undefined,
1231
+ },
1232
+ "type": "View",
1233
+ },
1234
+ ],
1235
+ "props": {
1236
+ "aria-role": "button",
1237
+ "onLayout": [Function],
1238
+ "onPress": [Function],
1239
+ "style": [Function],
1240
+ "testID": "web_dropdown_option_",
1241
+ },
1242
+ "type": "Pressable",
1243
+ },
1244
+ {
1245
+ "$$typeof": Symbol(react.test.json),
1246
+ "children": [
1247
+ {
1248
+ "$$typeof": Symbol(react.test.json),
1249
+ "children": [
1250
+ {
1251
+ "$$typeof": Symbol(react.test.json),
1252
+ "children": [
1253
+ "Option 1",
1254
+ ],
1255
+ "props": {
1256
+ "style": {
1257
+ "color": "#1C1C1C",
1258
+ "fontWeight": "400",
1259
+ },
1260
+ },
1261
+ "type": "Text",
1262
+ },
1263
+ ],
1264
+ "props": {
1265
+ "style": {
1266
+ "alignSelf": "stretch",
1267
+ },
1268
+ "testID": undefined,
1269
+ },
1270
+ "type": "View",
1271
+ },
1272
+ ],
1273
+ "props": {
1274
+ "aria-role": "button",
1275
+ "onLayout": [Function],
1276
+ "onPress": [Function],
1277
+ "style": [Function],
1278
+ "testID": "web_dropdown_option_opt1",
1279
+ },
1280
+ "type": "Pressable",
1281
+ },
1282
+ {
1283
+ "$$typeof": Symbol(react.test.json),
1284
+ "children": [
1285
+ {
1286
+ "$$typeof": Symbol(react.test.json),
1287
+ "children": [
1288
+ {
1289
+ "$$typeof": Symbol(react.test.json),
1290
+ "children": [
1291
+ "Option 2",
1292
+ ],
1293
+ "props": {
1294
+ "style": {
1295
+ "color": "#1C1C1C",
1296
+ "fontWeight": "400",
1297
+ },
1298
+ },
1299
+ "type": "Text",
1300
+ },
1301
+ ],
1302
+ "props": {
1303
+ "style": {
1304
+ "alignSelf": "stretch",
1305
+ },
1306
+ "testID": undefined,
1307
+ },
1308
+ "type": "View",
1309
+ },
1310
+ ],
1311
+ "props": {
1312
+ "aria-role": "button",
1313
+ "onLayout": [Function],
1314
+ "onPress": [Function],
1315
+ "style": [Function],
1316
+ "testID": "web_dropdown_option_opt2",
1317
+ },
1318
+ "type": "Pressable",
1319
+ },
1320
+ {
1321
+ "$$typeof": Symbol(react.test.json),
1322
+ "children": [
1323
+ {
1324
+ "$$typeof": Symbol(react.test.json),
1325
+ "children": [
1326
+ {
1327
+ "$$typeof": Symbol(react.test.json),
1328
+ "children": [
1329
+ "Option 3",
1330
+ ],
1331
+ "props": {
1332
+ "style": {
1333
+ "color": "#1C1C1C",
1334
+ "fontWeight": "400",
1335
+ },
1336
+ },
1337
+ "type": "Text",
1338
+ },
1339
+ ],
1340
+ "props": {
1341
+ "style": {
1342
+ "alignSelf": "stretch",
1343
+ },
1344
+ "testID": undefined,
1345
+ },
1346
+ "type": "View",
1347
+ },
1348
+ ],
1349
+ "props": {
1350
+ "aria-role": "button",
1351
+ "onLayout": [Function],
1352
+ "onPress": [Function],
1353
+ "style": [Function],
1354
+ "testID": "web_dropdown_option_opt3",
1355
+ },
1356
+ "type": "Pressable",
1357
+ },
1358
+ ],
1050
1359
  "props": {
1051
- "color": undefined,
1052
- "label": "Option 2",
1053
- "value": "opt2",
1360
+ "keyboardShouldPersistTaps": "handled",
1361
+ "onLayout": [Function],
1362
+ "ref": {
1363
+ "current": null,
1364
+ },
1054
1365
  },
1055
- "type": "Picker.Item",
1366
+ "type": "ScrollView",
1056
1367
  },
1057
- {
1058
- "$$typeof": Symbol(react.test.json),
1059
- "children": null,
1060
- "props": {
1061
- "color": undefined,
1062
- "label": "Option 3",
1063
- "value": "opt3",
1368
+ ],
1369
+ "props": {
1370
+ "style": {
1371
+ "backgroundColor": "#FFFFFF",
1372
+ "borderColor": "#9A9A9A",
1373
+ "borderRadius": 4,
1374
+ "borderWidth": 1,
1375
+ "left": 0,
1376
+ "maxHeight": 300,
1377
+ "minWidth": undefined,
1378
+ "overflow": "hidden",
1379
+ "position": "absolute",
1380
+ "shadowColor": "#000",
1381
+ "shadowOffset": {
1382
+ "height": 2,
1383
+ "width": 0,
1064
1384
  },
1065
- "type": "Picker.Item",
1385
+ "shadowOpacity": 0.15,
1386
+ "shadowRadius": 8,
1387
+ "top": 4,
1388
+ "width": 0,
1389
+ "zIndex": 1,
1066
1390
  },
1067
- ],
1068
- "props": {
1069
- "onValueChange": [Function],
1070
- "selectedValue": "",
1071
- "testID": "ios_picker",
1391
+ "testID": "web_dropdown_menu",
1072
1392
  },
1073
- "type": "Picker",
1393
+ "type": "View",
1074
1394
  },
1075
1395
  ],
1076
1396
  "props": {
1077
- "style": [
1078
- {
1079
- "backgroundColor": "#d0d4da",
1080
- "justifyContent": "center",
1081
- },
1082
- {
1083
- "height": 215,
1084
- },
1085
- ],
1086
- "testID": undefined,
1397
+ "animationType": "fade",
1398
+ "onRequestClose": [Function],
1399
+ "testID": "web_dropdown_modal",
1400
+ "transparent": true,
1401
+ "visible": false,
1087
1402
  },
1088
- "type": "View",
1403
+ "type": "Modal",
1089
1404
  },
1090
1405
  ],
1091
1406
  "props": {
1092
- "animationType": undefined,
1093
- "onOrientationChange": [Function],
1094
- "supportedOrientations": [
1095
- "portrait",
1096
- "landscape",
1407
+ "ref": {
1408
+ "current": null,
1409
+ },
1410
+ "style": [
1411
+ {
1412
+ "alignItems": "center",
1413
+ "alignSelf": "stretch",
1414
+ "borderRadius": 4,
1415
+ "borderWidth": 1,
1416
+ "flexDirection": "row",
1417
+ "justifyContent": "flex-start",
1418
+ "minHeight": 40,
1419
+ "width": "100%",
1420
+ },
1421
+ {
1422
+ "backgroundColor": "#FFFFFF",
1423
+ "borderColor": "#9A9A9A",
1424
+ },
1425
+ false,
1097
1426
  ],
1098
- "testID": "ios_modal",
1099
- "transparent": true,
1100
- "visible": false,
1427
+ "testID": undefined,
1101
1428
  },
1102
- "type": "Modal",
1429
+ "type": "View",
1103
1430
  },
1104
1431
  ],
1105
1432
  "props": {
1106
- "style": [
1107
- {
1108
- "alignItems": "center",
1109
- "alignSelf": "stretch",
1110
- "borderRadius": 4,
1111
- "borderWidth": 1,
1112
- "flexDirection": "row",
1113
- "justifyContent": "center",
1114
- "minHeight": 40,
1115
- "width": "100%",
1116
- },
1117
- {
1118
- "backgroundColor": "#FFFFFF",
1119
- "borderColor": "#9A9A9A",
1120
- },
1121
- false,
1122
- ],
1433
+ "style": {
1434
+ "alignSelf": "stretch",
1435
+ "minWidth": 0,
1436
+ "width": "100%",
1437
+ },
1123
1438
  "testID": undefined,
1124
1439
  },
1125
1440
  "type": "View",
@@ -1127,6 +1442,7 @@ exports[`SelectField renders with custom placeholder 1`] = `
1127
1442
  ],
1128
1443
  "props": {
1129
1444
  "style": {
1445
+ "minWidth": 0,
1130
1446
  "width": "100%",
1131
1447
  },
1132
1448
  "testID": undefined,
@@ -1150,71 +1466,36 @@ exports[`SelectField renders disabled state 1`] = `
1150
1466
  "children": [
1151
1467
  {
1152
1468
  "$$typeof": Symbol(react.test.json),
1153
- "children": null,
1469
+ "children": [
1470
+ "Please select an option.",
1471
+ ],
1154
1472
  "props": {
1155
- "editable": false,
1156
- "multiline": true,
1473
+ "numberOfLines": undefined,
1157
1474
  "style": {
1158
1475
  "color": "#686868",
1159
1476
  "flex": 1,
1477
+ "fontFamily": "text",
1478
+ "fontSize": 16,
1479
+ "paddingRight": 8,
1160
1480
  },
1161
1481
  "testID": "text_input",
1162
- "value": "Please select an option.",
1163
1482
  },
1164
- "type": "TextInput",
1165
- },
1166
- {
1167
- "$$typeof": Symbol(react.test.json),
1168
- "children": null,
1169
- "props": {
1170
- "style": {
1171
- "pointerEvents": "none",
1172
- },
1173
- "testID": "icon_container",
1174
- },
1175
- "type": "View",
1483
+ "type": "Text",
1176
1484
  },
1177
1485
  ],
1178
1486
  "props": {
1487
+ "aria-role": "button",
1488
+ "disabled": true,
1489
+ "onPress": [Function],
1179
1490
  "style": {
1180
1491
  "alignItems": "center",
1181
1492
  "flexDirection": "row",
1182
- "pointerEvents": "box-only",
1493
+ "justifyContent": "space-between",
1494
+ "minHeight": 40,
1495
+ "paddingHorizontal": 8,
1183
1496
  "width": "100%",
1184
1497
  },
1185
- "testID": undefined,
1186
- },
1187
- "type": "View",
1188
- },
1189
- ],
1190
- "props": {
1191
- "disabled": true,
1192
- "onPress": [Function],
1193
- "style": {
1194
- "alignItems": "center",
1195
- "flexDirection": "row",
1196
- "justifyContent": "center",
1197
- "minHeight": 40,
1198
- "paddingHorizontal": 8,
1199
- "width": "100%",
1200
- },
1201
- "testID": "ios_touchable_wrapper",
1202
- },
1203
- "type": "Pressable",
1204
- },
1205
- {
1206
- "$$typeof": Symbol(react.test.json),
1207
- "children": [
1208
- {
1209
- "$$typeof": Symbol(react.test.json),
1210
- "children": null,
1211
- "props": {
1212
- "aria-role": "button",
1213
- "onPress": [Function],
1214
- "style": {
1215
- "flex": 1,
1216
- },
1217
- "testID": "ios_modal_top",
1498
+ "testID": "web_picker",
1218
1499
  },
1219
1500
  "type": "Pressable",
1220
1501
  },
@@ -1225,12 +1506,15 @@ exports[`SelectField renders disabled state 1`] = `
1225
1506
  "$$typeof": Symbol(react.test.json),
1226
1507
  "children": null,
1227
1508
  "props": {
1509
+ "aria-role": "button",
1510
+ "onPress": [Function],
1228
1511
  "style": {
1229
- "flexDirection": "row",
1512
+ "flex": 1,
1513
+ "zIndex": 0,
1230
1514
  },
1231
- "testID": undefined,
1515
+ "testID": "web_dropdown_backdrop",
1232
1516
  },
1233
- "type": "View",
1517
+ "type": "Pressable",
1234
1518
  },
1235
1519
  {
1236
1520
  "$$typeof": Symbol(react.test.json),
@@ -1240,168 +1524,278 @@ exports[`SelectField renders disabled state 1`] = `
1240
1524
  "children": [
1241
1525
  {
1242
1526
  "$$typeof": Symbol(react.test.json),
1243
- "children": [
1244
- "Done",
1245
- ],
1527
+ "children": null,
1246
1528
  "props": {
1247
- "allowFontScaling": false,
1248
- "style": [
1249
- {
1250
- "color": "#007aff",
1251
- "fontSize": 17,
1252
- "fontWeight": "600",
1253
- "paddingRight": 11,
1254
- "paddingTop": 1,
1255
- },
1256
- {},
1257
- ],
1258
- "testID": "done_text",
1529
+ "autoFocus": true,
1530
+ "onChangeText": [Function: dispatchSetState],
1531
+ "placeholder": "Search...",
1532
+ "placeholderTextColor": "#686868",
1533
+ "ref": {
1534
+ "current": null,
1535
+ },
1536
+ "style": {
1537
+ "borderColor": "#9A9A9A",
1538
+ "borderRadius": 4,
1539
+ "borderWidth": 1,
1540
+ "color": "#1C1C1C",
1541
+ "fontSize": 14,
1542
+ "paddingHorizontal": 8,
1543
+ "paddingVertical": 4,
1544
+ },
1545
+ "testID": "web_dropdown_search",
1546
+ "value": "",
1259
1547
  },
1260
- "type": "Text",
1548
+ "type": "TextInput",
1261
1549
  },
1262
1550
  ],
1263
1551
  "props": {
1264
- "style": undefined,
1265
- "testID": "needed_for_touchable",
1552
+ "style": {
1553
+ "borderBottomColor": "#CDCDCD",
1554
+ "borderBottomWidth": 1,
1555
+ "paddingHorizontal": 8,
1556
+ "paddingVertical": 6,
1557
+ },
1558
+ "testID": undefined,
1266
1559
  },
1267
1560
  "type": "View",
1268
1561
  },
1269
- ],
1270
- "props": {
1271
- "hitSlop": {
1272
- "bottom": 4,
1273
- "left": 4,
1274
- "right": 4,
1275
- "top": 4,
1276
- },
1277
- "onPress": [Function],
1278
- "onPressIn": [Function],
1279
- "onPressOut": [Function],
1280
- "testID": "done_button",
1281
- },
1282
- "type": "Pressable",
1283
- },
1284
- ],
1285
- "props": {
1286
- "style": {
1287
- "alignItems": "center",
1288
- "backgroundColor": "#f8f8f8",
1289
- "borderTopColor": "#dedede",
1290
- "borderTopWidth": 1,
1291
- "flexDirection": "row",
1292
- "height": 45,
1293
- "justifyContent": "space-between",
1294
- "paddingHorizontal": 10,
1295
- "zIndex": 2,
1296
- },
1297
- "testID": "input_accessory_view",
1298
- },
1299
- "type": "View",
1300
- },
1301
- {
1302
- "$$typeof": Symbol(react.test.json),
1303
- "children": [
1304
- {
1305
- "$$typeof": Symbol(react.test.json),
1306
- "children": [
1307
- {
1308
- "$$typeof": Symbol(react.test.json),
1309
- "children": null,
1310
- "props": {
1311
- "color": undefined,
1312
- "label": "Please select an option.",
1313
- "value": "",
1314
- },
1315
- "type": "Picker.Item",
1316
- },
1317
- {
1318
- "$$typeof": Symbol(react.test.json),
1319
- "children": null,
1320
- "props": {
1321
- "color": undefined,
1322
- "label": "Option 1",
1323
- "value": "opt1",
1324
- },
1325
- "type": "Picker.Item",
1326
- },
1327
- {
1328
- "$$typeof": Symbol(react.test.json),
1329
- "children": null,
1330
- "props": {
1331
- "color": undefined,
1332
- "label": "Option 2",
1333
- "value": "opt2",
1334
- },
1335
- "type": "Picker.Item",
1336
- },
1337
1562
  {
1338
1563
  "$$typeof": Symbol(react.test.json),
1339
- "children": null,
1564
+ "children": [
1565
+ {
1566
+ "$$typeof": Symbol(react.test.json),
1567
+ "children": [
1568
+ {
1569
+ "$$typeof": Symbol(react.test.json),
1570
+ "children": [
1571
+ {
1572
+ "$$typeof": Symbol(react.test.json),
1573
+ "children": [
1574
+ "Please select an option.",
1575
+ ],
1576
+ "props": {
1577
+ "style": {
1578
+ "color": "#1C1C1C",
1579
+ "fontWeight": "600",
1580
+ },
1581
+ },
1582
+ "type": "Text",
1583
+ },
1584
+ ],
1585
+ "props": {
1586
+ "style": {
1587
+ "alignSelf": "stretch",
1588
+ },
1589
+ "testID": undefined,
1590
+ },
1591
+ "type": "View",
1592
+ },
1593
+ ],
1594
+ "props": {
1595
+ "aria-role": "button",
1596
+ "onLayout": [Function],
1597
+ "onPress": [Function],
1598
+ "style": [Function],
1599
+ "testID": "web_dropdown_option_",
1600
+ },
1601
+ "type": "Pressable",
1602
+ },
1603
+ {
1604
+ "$$typeof": Symbol(react.test.json),
1605
+ "children": [
1606
+ {
1607
+ "$$typeof": Symbol(react.test.json),
1608
+ "children": [
1609
+ {
1610
+ "$$typeof": Symbol(react.test.json),
1611
+ "children": [
1612
+ "Option 1",
1613
+ ],
1614
+ "props": {
1615
+ "style": {
1616
+ "color": "#1C1C1C",
1617
+ "fontWeight": "400",
1618
+ },
1619
+ },
1620
+ "type": "Text",
1621
+ },
1622
+ ],
1623
+ "props": {
1624
+ "style": {
1625
+ "alignSelf": "stretch",
1626
+ },
1627
+ "testID": undefined,
1628
+ },
1629
+ "type": "View",
1630
+ },
1631
+ ],
1632
+ "props": {
1633
+ "aria-role": "button",
1634
+ "onLayout": [Function],
1635
+ "onPress": [Function],
1636
+ "style": [Function],
1637
+ "testID": "web_dropdown_option_opt1",
1638
+ },
1639
+ "type": "Pressable",
1640
+ },
1641
+ {
1642
+ "$$typeof": Symbol(react.test.json),
1643
+ "children": [
1644
+ {
1645
+ "$$typeof": Symbol(react.test.json),
1646
+ "children": [
1647
+ {
1648
+ "$$typeof": Symbol(react.test.json),
1649
+ "children": [
1650
+ "Option 2",
1651
+ ],
1652
+ "props": {
1653
+ "style": {
1654
+ "color": "#1C1C1C",
1655
+ "fontWeight": "400",
1656
+ },
1657
+ },
1658
+ "type": "Text",
1659
+ },
1660
+ ],
1661
+ "props": {
1662
+ "style": {
1663
+ "alignSelf": "stretch",
1664
+ },
1665
+ "testID": undefined,
1666
+ },
1667
+ "type": "View",
1668
+ },
1669
+ ],
1670
+ "props": {
1671
+ "aria-role": "button",
1672
+ "onLayout": [Function],
1673
+ "onPress": [Function],
1674
+ "style": [Function],
1675
+ "testID": "web_dropdown_option_opt2",
1676
+ },
1677
+ "type": "Pressable",
1678
+ },
1679
+ {
1680
+ "$$typeof": Symbol(react.test.json),
1681
+ "children": [
1682
+ {
1683
+ "$$typeof": Symbol(react.test.json),
1684
+ "children": [
1685
+ {
1686
+ "$$typeof": Symbol(react.test.json),
1687
+ "children": [
1688
+ "Option 3",
1689
+ ],
1690
+ "props": {
1691
+ "style": {
1692
+ "color": "#1C1C1C",
1693
+ "fontWeight": "400",
1694
+ },
1695
+ },
1696
+ "type": "Text",
1697
+ },
1698
+ ],
1699
+ "props": {
1700
+ "style": {
1701
+ "alignSelf": "stretch",
1702
+ },
1703
+ "testID": undefined,
1704
+ },
1705
+ "type": "View",
1706
+ },
1707
+ ],
1708
+ "props": {
1709
+ "aria-role": "button",
1710
+ "onLayout": [Function],
1711
+ "onPress": [Function],
1712
+ "style": [Function],
1713
+ "testID": "web_dropdown_option_opt3",
1714
+ },
1715
+ "type": "Pressable",
1716
+ },
1717
+ ],
1340
1718
  "props": {
1341
- "color": undefined,
1342
- "label": "Option 3",
1343
- "value": "opt3",
1719
+ "keyboardShouldPersistTaps": "handled",
1720
+ "onLayout": [Function],
1721
+ "ref": {
1722
+ "current": null,
1723
+ },
1344
1724
  },
1345
- "type": "Picker.Item",
1725
+ "type": "ScrollView",
1346
1726
  },
1347
1727
  ],
1348
1728
  "props": {
1349
- "onValueChange": [Function],
1350
- "selectedValue": "",
1351
- "testID": "ios_picker",
1729
+ "style": {
1730
+ "backgroundColor": "#FFFFFF",
1731
+ "borderColor": "#9A9A9A",
1732
+ "borderRadius": 4,
1733
+ "borderWidth": 1,
1734
+ "left": 0,
1735
+ "maxHeight": 300,
1736
+ "minWidth": undefined,
1737
+ "overflow": "hidden",
1738
+ "position": "absolute",
1739
+ "shadowColor": "#000",
1740
+ "shadowOffset": {
1741
+ "height": 2,
1742
+ "width": 0,
1743
+ },
1744
+ "shadowOpacity": 0.15,
1745
+ "shadowRadius": 8,
1746
+ "top": 4,
1747
+ "width": 0,
1748
+ "zIndex": 1,
1749
+ },
1750
+ "testID": "web_dropdown_menu",
1352
1751
  },
1353
- "type": "Picker",
1752
+ "type": "View",
1354
1753
  },
1355
1754
  ],
1356
1755
  "props": {
1357
- "style": [
1358
- {
1359
- "backgroundColor": "#d0d4da",
1360
- "justifyContent": "center",
1361
- },
1362
- {
1363
- "height": 215,
1364
- },
1365
- ],
1366
- "testID": undefined,
1756
+ "animationType": "fade",
1757
+ "onRequestClose": [Function],
1758
+ "testID": "web_dropdown_modal",
1759
+ "transparent": true,
1760
+ "visible": false,
1367
1761
  },
1368
- "type": "View",
1762
+ "type": "Modal",
1369
1763
  },
1370
1764
  ],
1371
1765
  "props": {
1372
- "animationType": undefined,
1373
- "onOrientationChange": [Function],
1374
- "supportedOrientations": [
1375
- "portrait",
1376
- "landscape",
1766
+ "ref": {
1767
+ "current": null,
1768
+ },
1769
+ "style": [
1770
+ {
1771
+ "alignItems": "center",
1772
+ "alignSelf": "stretch",
1773
+ "borderRadius": 4,
1774
+ "borderWidth": 1,
1775
+ "flexDirection": "row",
1776
+ "justifyContent": "flex-start",
1777
+ "minHeight": 40,
1778
+ "width": "100%",
1779
+ },
1780
+ {
1781
+ "backgroundColor": "#FFFFFF",
1782
+ "borderColor": "#9A9A9A",
1783
+ },
1784
+ {
1785
+ "backgroundColor": "#D9D9D9",
1786
+ },
1377
1787
  ],
1378
- "testID": "ios_modal",
1379
- "transparent": true,
1380
- "visible": false,
1788
+ "testID": undefined,
1381
1789
  },
1382
- "type": "Modal",
1790
+ "type": "View",
1383
1791
  },
1384
1792
  ],
1385
1793
  "props": {
1386
- "style": [
1387
- {
1388
- "alignItems": "center",
1389
- "alignSelf": "stretch",
1390
- "borderRadius": 4,
1391
- "borderWidth": 1,
1392
- "flexDirection": "row",
1393
- "justifyContent": "center",
1394
- "minHeight": 40,
1395
- "width": "100%",
1396
- },
1397
- {
1398
- "backgroundColor": "#FFFFFF",
1399
- "borderColor": "#9A9A9A",
1400
- },
1401
- {
1402
- "backgroundColor": "#D9D9D9",
1403
- },
1404
- ],
1794
+ "style": {
1795
+ "alignSelf": "stretch",
1796
+ "minWidth": 0,
1797
+ "width": "100%",
1798
+ },
1405
1799
  "testID": undefined,
1406
1800
  },
1407
1801
  "type": "View",
@@ -1409,6 +1803,7 @@ exports[`SelectField renders disabled state 1`] = `
1409
1803
  ],
1410
1804
  "props": {
1411
1805
  "style": {
1806
+ "minWidth": 0,
1412
1807
  "width": "100%",
1413
1808
  },
1414
1809
  "testID": undefined,
@@ -1432,71 +1827,36 @@ exports[`SelectField renders with requireValue (no clear option) 1`] = `
1432
1827
  "children": [
1433
1828
  {
1434
1829
  "$$typeof": Symbol(react.test.json),
1435
- "children": null,
1830
+ "children": [
1831
+ "Option 1",
1832
+ ],
1436
1833
  "props": {
1437
- "editable": false,
1438
- "multiline": true,
1834
+ "numberOfLines": 1,
1439
1835
  "style": {
1440
1836
  "color": "#1C1C1C",
1441
1837
  "flex": 1,
1838
+ "fontFamily": "text",
1839
+ "fontSize": 16,
1840
+ "paddingRight": 8,
1442
1841
  },
1443
1842
  "testID": "text_input",
1444
- "value": "Option 1",
1445
- },
1446
- "type": "TextInput",
1447
- },
1448
- {
1449
- "$$typeof": Symbol(react.test.json),
1450
- "children": null,
1451
- "props": {
1452
- "style": {
1453
- "pointerEvents": "none",
1454
- },
1455
- "testID": "icon_container",
1456
1843
  },
1457
- "type": "View",
1844
+ "type": "Text",
1458
1845
  },
1459
1846
  ],
1460
1847
  "props": {
1848
+ "aria-role": "button",
1849
+ "disabled": false,
1850
+ "onPress": [Function],
1461
1851
  "style": {
1462
1852
  "alignItems": "center",
1463
1853
  "flexDirection": "row",
1464
- "pointerEvents": "box-only",
1854
+ "justifyContent": "space-between",
1855
+ "minHeight": 40,
1856
+ "paddingHorizontal": 8,
1465
1857
  "width": "100%",
1466
1858
  },
1467
- "testID": undefined,
1468
- },
1469
- "type": "View",
1470
- },
1471
- ],
1472
- "props": {
1473
- "disabled": false,
1474
- "onPress": [Function],
1475
- "style": {
1476
- "alignItems": "center",
1477
- "flexDirection": "row",
1478
- "justifyContent": "center",
1479
- "minHeight": 40,
1480
- "paddingHorizontal": 8,
1481
- "width": "100%",
1482
- },
1483
- "testID": "ios_touchable_wrapper",
1484
- },
1485
- "type": "Pressable",
1486
- },
1487
- {
1488
- "$$typeof": Symbol(react.test.json),
1489
- "children": [
1490
- {
1491
- "$$typeof": Symbol(react.test.json),
1492
- "children": null,
1493
- "props": {
1494
- "aria-role": "button",
1495
- "onPress": [Function],
1496
- "style": {
1497
- "flex": 1,
1498
- },
1499
- "testID": "ios_modal_top",
1859
+ "testID": "web_picker",
1500
1860
  },
1501
1861
  "type": "Pressable",
1502
1862
  },
@@ -1507,12 +1867,15 @@ exports[`SelectField renders with requireValue (no clear option) 1`] = `
1507
1867
  "$$typeof": Symbol(react.test.json),
1508
1868
  "children": null,
1509
1869
  "props": {
1870
+ "aria-role": "button",
1871
+ "onPress": [Function],
1510
1872
  "style": {
1511
- "flexDirection": "row",
1873
+ "flex": 1,
1874
+ "zIndex": 0,
1512
1875
  },
1513
- "testID": undefined,
1876
+ "testID": "web_dropdown_backdrop",
1514
1877
  },
1515
- "type": "View",
1878
+ "type": "Pressable",
1516
1879
  },
1517
1880
  {
1518
1881
  "$$typeof": Symbol(react.test.json),
@@ -1522,156 +1885,238 @@ exports[`SelectField renders with requireValue (no clear option) 1`] = `
1522
1885
  "children": [
1523
1886
  {
1524
1887
  "$$typeof": Symbol(react.test.json),
1525
- "children": [
1526
- "Done",
1527
- ],
1888
+ "children": null,
1528
1889
  "props": {
1529
- "allowFontScaling": false,
1530
- "style": [
1531
- {
1532
- "color": "#007aff",
1533
- "fontSize": 17,
1534
- "fontWeight": "600",
1535
- "paddingRight": 11,
1536
- "paddingTop": 1,
1537
- },
1538
- {},
1539
- ],
1540
- "testID": "done_text",
1890
+ "autoFocus": true,
1891
+ "onChangeText": [Function: dispatchSetState],
1892
+ "placeholder": "Search...",
1893
+ "placeholderTextColor": "#686868",
1894
+ "ref": {
1895
+ "current": null,
1896
+ },
1897
+ "style": {
1898
+ "borderColor": "#9A9A9A",
1899
+ "borderRadius": 4,
1900
+ "borderWidth": 1,
1901
+ "color": "#1C1C1C",
1902
+ "fontSize": 14,
1903
+ "paddingHorizontal": 8,
1904
+ "paddingVertical": 4,
1905
+ },
1906
+ "testID": "web_dropdown_search",
1907
+ "value": "",
1541
1908
  },
1542
- "type": "Text",
1909
+ "type": "TextInput",
1543
1910
  },
1544
1911
  ],
1545
1912
  "props": {
1546
- "style": undefined,
1547
- "testID": "needed_for_touchable",
1913
+ "style": {
1914
+ "borderBottomColor": "#CDCDCD",
1915
+ "borderBottomWidth": 1,
1916
+ "paddingHorizontal": 8,
1917
+ "paddingVertical": 6,
1918
+ },
1919
+ "testID": undefined,
1548
1920
  },
1549
1921
  "type": "View",
1550
1922
  },
1551
- ],
1552
- "props": {
1553
- "hitSlop": {
1554
- "bottom": 4,
1555
- "left": 4,
1556
- "right": 4,
1557
- "top": 4,
1558
- },
1559
- "onPress": [Function],
1560
- "onPressIn": [Function],
1561
- "onPressOut": [Function],
1562
- "testID": "done_button",
1563
- },
1564
- "type": "Pressable",
1565
- },
1566
- ],
1567
- "props": {
1568
- "style": {
1569
- "alignItems": "center",
1570
- "backgroundColor": "#f8f8f8",
1571
- "borderTopColor": "#dedede",
1572
- "borderTopWidth": 1,
1573
- "flexDirection": "row",
1574
- "height": 45,
1575
- "justifyContent": "space-between",
1576
- "paddingHorizontal": 10,
1577
- "zIndex": 2,
1578
- },
1579
- "testID": "input_accessory_view",
1580
- },
1581
- "type": "View",
1582
- },
1583
- {
1584
- "$$typeof": Symbol(react.test.json),
1585
- "children": [
1586
- {
1587
- "$$typeof": Symbol(react.test.json),
1588
- "children": [
1589
- {
1590
- "$$typeof": Symbol(react.test.json),
1591
- "children": null,
1592
- "props": {
1593
- "color": undefined,
1594
- "label": "Option 1",
1595
- "value": "opt1",
1596
- },
1597
- "type": "Picker.Item",
1598
- },
1599
- {
1600
- "$$typeof": Symbol(react.test.json),
1601
- "children": null,
1602
- "props": {
1603
- "color": undefined,
1604
- "label": "Option 2",
1605
- "value": "opt2",
1606
- },
1607
- "type": "Picker.Item",
1608
- },
1609
1923
  {
1610
1924
  "$$typeof": Symbol(react.test.json),
1611
- "children": null,
1925
+ "children": [
1926
+ {
1927
+ "$$typeof": Symbol(react.test.json),
1928
+ "children": [
1929
+ {
1930
+ "$$typeof": Symbol(react.test.json),
1931
+ "children": [
1932
+ {
1933
+ "$$typeof": Symbol(react.test.json),
1934
+ "children": [
1935
+ "Option 1",
1936
+ ],
1937
+ "props": {
1938
+ "style": {
1939
+ "color": "#1C1C1C",
1940
+ "fontWeight": "600",
1941
+ },
1942
+ },
1943
+ "type": "Text",
1944
+ },
1945
+ ],
1946
+ "props": {
1947
+ "style": {
1948
+ "alignSelf": "stretch",
1949
+ },
1950
+ "testID": undefined,
1951
+ },
1952
+ "type": "View",
1953
+ },
1954
+ ],
1955
+ "props": {
1956
+ "aria-role": "button",
1957
+ "onLayout": [Function],
1958
+ "onPress": [Function],
1959
+ "style": [Function],
1960
+ "testID": "web_dropdown_option_opt1",
1961
+ },
1962
+ "type": "Pressable",
1963
+ },
1964
+ {
1965
+ "$$typeof": Symbol(react.test.json),
1966
+ "children": [
1967
+ {
1968
+ "$$typeof": Symbol(react.test.json),
1969
+ "children": [
1970
+ {
1971
+ "$$typeof": Symbol(react.test.json),
1972
+ "children": [
1973
+ "Option 2",
1974
+ ],
1975
+ "props": {
1976
+ "style": {
1977
+ "color": "#1C1C1C",
1978
+ "fontWeight": "400",
1979
+ },
1980
+ },
1981
+ "type": "Text",
1982
+ },
1983
+ ],
1984
+ "props": {
1985
+ "style": {
1986
+ "alignSelf": "stretch",
1987
+ },
1988
+ "testID": undefined,
1989
+ },
1990
+ "type": "View",
1991
+ },
1992
+ ],
1993
+ "props": {
1994
+ "aria-role": "button",
1995
+ "onLayout": [Function],
1996
+ "onPress": [Function],
1997
+ "style": [Function],
1998
+ "testID": "web_dropdown_option_opt2",
1999
+ },
2000
+ "type": "Pressable",
2001
+ },
2002
+ {
2003
+ "$$typeof": Symbol(react.test.json),
2004
+ "children": [
2005
+ {
2006
+ "$$typeof": Symbol(react.test.json),
2007
+ "children": [
2008
+ {
2009
+ "$$typeof": Symbol(react.test.json),
2010
+ "children": [
2011
+ "Option 3",
2012
+ ],
2013
+ "props": {
2014
+ "style": {
2015
+ "color": "#1C1C1C",
2016
+ "fontWeight": "400",
2017
+ },
2018
+ },
2019
+ "type": "Text",
2020
+ },
2021
+ ],
2022
+ "props": {
2023
+ "style": {
2024
+ "alignSelf": "stretch",
2025
+ },
2026
+ "testID": undefined,
2027
+ },
2028
+ "type": "View",
2029
+ },
2030
+ ],
2031
+ "props": {
2032
+ "aria-role": "button",
2033
+ "onLayout": [Function],
2034
+ "onPress": [Function],
2035
+ "style": [Function],
2036
+ "testID": "web_dropdown_option_opt3",
2037
+ },
2038
+ "type": "Pressable",
2039
+ },
2040
+ ],
1612
2041
  "props": {
1613
- "color": undefined,
1614
- "label": "Option 3",
1615
- "value": "opt3",
2042
+ "keyboardShouldPersistTaps": "handled",
2043
+ "onLayout": [Function],
2044
+ "ref": {
2045
+ "current": null,
2046
+ },
1616
2047
  },
1617
- "type": "Picker.Item",
2048
+ "type": "ScrollView",
1618
2049
  },
1619
2050
  ],
1620
2051
  "props": {
1621
- "onValueChange": [Function],
1622
- "selectedValue": "opt1",
1623
- "testID": "ios_picker",
2052
+ "style": {
2053
+ "backgroundColor": "#FFFFFF",
2054
+ "borderColor": "#9A9A9A",
2055
+ "borderRadius": 4,
2056
+ "borderWidth": 1,
2057
+ "left": 0,
2058
+ "maxHeight": 300,
2059
+ "minWidth": undefined,
2060
+ "overflow": "hidden",
2061
+ "position": "absolute",
2062
+ "shadowColor": "#000",
2063
+ "shadowOffset": {
2064
+ "height": 2,
2065
+ "width": 0,
2066
+ },
2067
+ "shadowOpacity": 0.15,
2068
+ "shadowRadius": 8,
2069
+ "top": 4,
2070
+ "width": 0,
2071
+ "zIndex": 1,
2072
+ },
2073
+ "testID": "web_dropdown_menu",
1624
2074
  },
1625
- "type": "Picker",
2075
+ "type": "View",
1626
2076
  },
1627
2077
  ],
1628
2078
  "props": {
1629
- "style": [
1630
- {
1631
- "backgroundColor": "#d0d4da",
1632
- "justifyContent": "center",
1633
- },
1634
- {
1635
- "height": 215,
1636
- },
1637
- ],
1638
- "testID": undefined,
2079
+ "animationType": "fade",
2080
+ "onRequestClose": [Function],
2081
+ "testID": "web_dropdown_modal",
2082
+ "transparent": true,
2083
+ "visible": false,
1639
2084
  },
1640
- "type": "View",
2085
+ "type": "Modal",
1641
2086
  },
1642
2087
  ],
1643
2088
  "props": {
1644
- "animationType": undefined,
1645
- "onOrientationChange": [Function],
1646
- "supportedOrientations": [
1647
- "portrait",
1648
- "landscape",
2089
+ "ref": {
2090
+ "current": null,
2091
+ },
2092
+ "style": [
2093
+ {
2094
+ "alignItems": "center",
2095
+ "alignSelf": "stretch",
2096
+ "borderRadius": 4,
2097
+ "borderWidth": 1,
2098
+ "flexDirection": "row",
2099
+ "justifyContent": "flex-start",
2100
+ "minHeight": 40,
2101
+ "width": "100%",
2102
+ },
2103
+ {
2104
+ "backgroundColor": "#FFFFFF",
2105
+ "borderColor": "#9A9A9A",
2106
+ },
2107
+ false,
1649
2108
  ],
1650
- "testID": "ios_modal",
1651
- "transparent": true,
1652
- "visible": false,
2109
+ "testID": undefined,
1653
2110
  },
1654
- "type": "Modal",
2111
+ "type": "View",
1655
2112
  },
1656
2113
  ],
1657
2114
  "props": {
1658
- "style": [
1659
- {
1660
- "alignItems": "center",
1661
- "alignSelf": "stretch",
1662
- "borderRadius": 4,
1663
- "borderWidth": 1,
1664
- "flexDirection": "row",
1665
- "justifyContent": "center",
1666
- "minHeight": 40,
1667
- "width": "100%",
1668
- },
1669
- {
1670
- "backgroundColor": "#FFFFFF",
1671
- "borderColor": "#9A9A9A",
1672
- },
1673
- false,
1674
- ],
2115
+ "style": {
2116
+ "alignSelf": "stretch",
2117
+ "minWidth": 0,
2118
+ "width": "100%",
2119
+ },
1675
2120
  "testID": undefined,
1676
2121
  },
1677
2122
  "type": "View",
@@ -1679,6 +2124,7 @@ exports[`SelectField renders with requireValue (no clear option) 1`] = `
1679
2124
  ],
1680
2125
  "props": {
1681
2126
  "style": {
2127
+ "minWidth": 0,
1682
2128
  "width": "100%",
1683
2129
  },
1684
2130
  "testID": undefined,