@hero-design/rn-work-uikit 1.3.0 → 1.3.1

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