@hero-design/rn-work-uikit 1.3.0 → 1.4.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 (49) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/lib/index.js +48742 -29649
  3. package/package.json +5 -4
  4. package/src/__tests__/index-export.spec.ts +64 -0
  5. package/src/components/DatePicker/__tests__/__snapshots__/index.spec.tsx.snap +1602 -0
  6. package/src/components/DatePicker/__tests__/index.spec.tsx +56 -0
  7. package/src/components/DatePicker/index.tsx +12 -0
  8. package/src/components/FormGroup/__tests__/__snapshots__/index.spec.tsx.snap +880 -0
  9. package/src/components/FormGroup/__tests__/index.spec.tsx +179 -0
  10. package/src/components/FormGroup/__tests__/utils.spec.ts +73 -0
  11. package/src/components/FormGroup/index.tsx +97 -0
  12. package/src/components/FormGroup/utils.ts +67 -0
  13. package/src/components/RichTextEditor/EditorEvent.ts +7 -0
  14. package/src/components/RichTextEditor/EditorToolbar.tsx +216 -0
  15. package/src/components/RichTextEditor/MentionList.tsx +99 -0
  16. package/src/components/RichTextEditor/RichTextEditor.tsx +88 -0
  17. package/src/components/RichTextEditor/RichTextEditorInput.tsx +286 -0
  18. package/src/components/RichTextEditor/StyledRichTextEditor.tsx +18 -0
  19. package/src/components/RichTextEditor/StyledToolbar.ts +32 -0
  20. package/src/components/RichTextEditor/__mocks__/hero-editor.js +3 -0
  21. package/src/components/RichTextEditor/__mocks__/heroEditorApp.ts +2 -0
  22. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +144 -0
  23. package/src/components/RichTextEditor/__tests__/MentionList.spec.tsx +105 -0
  24. package/src/components/RichTextEditor/__tests__/RichTextEditorInput.spec.tsx +136 -0
  25. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +414 -0
  26. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +13 -0
  27. package/src/components/RichTextEditor/constants.ts +9 -0
  28. package/src/{hero-editor.d.ts → components/RichTextEditor/hero-editor.d.ts} +6 -0
  29. package/src/components/RichTextEditor/heroEditorApp.ts +3 -0
  30. package/src/components/RichTextEditor/index.tsx +20 -0
  31. package/src/components/RichTextEditor/types.ts +87 -0
  32. package/src/components/RichTextEditor/utils/events.ts +31 -0
  33. package/src/components/RichTextEditor/utils/rnWebView.tsx +30 -0
  34. package/src/components/Select/__tests__/__snapshots__/index.spec.tsx.snap +1293 -0
  35. package/src/components/Select/__tests__/index.spec.tsx +43 -0
  36. package/src/components/TextInput/Group/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  37. package/src/components/TextInput/InputComponent.tsx +59 -18
  38. package/src/components/TextInput/InputRow.tsx +13 -7
  39. package/src/components/TextInput/StyledTextInput.tsx +0 -1
  40. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -17
  41. package/src/components/TextInput/index.tsx +20 -11
  42. package/src/components/TextInput/types.ts +29 -4
  43. package/src/components/TimePicker/__tests__/index.spec.tsx +34 -0
  44. package/src/components/TimePicker/index.tsx +12 -0
  45. package/src/index.ts +4 -1
  46. package/src/utils/functions.ts +2 -0
  47. package/stats/1.3.0/rn-work-uikit-stats.html +1 -1
  48. package/stats/1.4.0/rn-work-uikit-stats.html +4844 -0
  49. package/src/__tests__/theme-export-override.spec.ts +0 -96
@@ -0,0 +1,1293 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`MultiSelect renders correctly (snapshot) 1`] = `
4
+ [
5
+ <View
6
+ pointerEvents="auto"
7
+ >
8
+ <TouchableOpacity
9
+ onPress={[Function]}
10
+ >
11
+ <View
12
+ pointerEvents="none"
13
+ >
14
+ <Pressable
15
+ accessibilityState={
16
+ {
17
+ "disabled": false,
18
+ }
19
+ }
20
+ disabled={false}
21
+ onPress={[Function]}
22
+ style={
23
+ [
24
+ [
25
+ {
26
+ "flexDirection": "row",
27
+ "marginTop": 7.846153846153847,
28
+ "minHeight": 54.92307692307692,
29
+ "paddingHorizontal": 15.692307692307693,
30
+ "width": "100%",
31
+ },
32
+ ],
33
+ {},
34
+ ]
35
+ }
36
+ themeFocused={false}
37
+ themeHasError={false}
38
+ themeUseGroupStyleEnabled={false}
39
+ >
40
+ <View
41
+ pointerEvents="none"
42
+ style={
43
+ [
44
+ [
45
+ {
46
+ "borderColor": "#e8e9ea",
47
+ "borderRadius": 8,
48
+ "borderWidth": 2,
49
+ },
50
+ ],
51
+ [
52
+ {
53
+ "backgroundColor": "#ffffff",
54
+ },
55
+ {},
56
+ ],
57
+ ]
58
+ }
59
+ testID="text-input-border"
60
+ themeFocused={false}
61
+ themeState="filled"
62
+ />
63
+ <View
64
+ style={
65
+ [
66
+ [
67
+ {
68
+ "backgroundColor": "transparent",
69
+ "borderRadius": 8,
70
+ "flex": 1,
71
+ "flexDirection": "column",
72
+ "marginBottom": 7.846153846153847,
73
+ "marginTop": 7.846153846153847,
74
+ "overflow": "hidden",
75
+ },
76
+ ],
77
+ undefined,
78
+ ]
79
+ }
80
+ >
81
+ <AnimatedView
82
+ style={
83
+ [
84
+ [
85
+ {
86
+ "alignItems": "center",
87
+ "backgroundColor": "transparent",
88
+ "flexDirection": "row",
89
+ },
90
+ ],
91
+ [
92
+ {
93
+ "transformOrigin": "left center",
94
+ },
95
+ {
96
+ "transform": [
97
+ {
98
+ "translateY": {
99
+ "addListener": [MockFunction],
100
+ "removeListener": [MockFunction],
101
+ "setValue": [MockFunction],
102
+ },
103
+ },
104
+ {
105
+ "scale": {
106
+ "addListener": [MockFunction],
107
+ "removeListener": [MockFunction],
108
+ "setValue": [MockFunction],
109
+ },
110
+ },
111
+ ],
112
+ },
113
+ ],
114
+ ]
115
+ }
116
+ testID="input-label"
117
+ themeVariant="text"
118
+ >
119
+ <AnimatedView
120
+ style={
121
+ {
122
+ "flexDirection": "row",
123
+ }
124
+ }
125
+ >
126
+ <Text
127
+ allowFontScaling={false}
128
+ numberOfLines={1}
129
+ style={
130
+ [
131
+ [
132
+ {
133
+ "color": "#001f23",
134
+ "fontFamily": "BeVietnamPro-Regular",
135
+ "fontSize": 11.76923076923077,
136
+ "letterSpacing": 0.36,
137
+ "lineHeight": 15.76923076923077,
138
+ },
139
+ ],
140
+ [
141
+ [
142
+ {
143
+ "color": "#808f91",
144
+ },
145
+ ],
146
+ {
147
+ "backgroundColor": "transparent",
148
+ },
149
+ ],
150
+ ]
151
+ }
152
+ testID="input-label-text"
153
+ themeFontWeight="regular"
154
+ themeIntent="body"
155
+ themeState="filled"
156
+ >
157
+ Select Label
158
+ </Text>
159
+ <Text
160
+ allowFontScaling={false}
161
+ style={
162
+ [
163
+ [
164
+ {
165
+ "color": "#001f23",
166
+ "fontFamily": "BeVietnamPro-Regular",
167
+ "fontSize": 11.76923076923077,
168
+ "letterSpacing": 0.36,
169
+ "lineHeight": 15.76923076923077,
170
+ },
171
+ ],
172
+ [
173
+ [
174
+ {
175
+ "color": "#808f91",
176
+ },
177
+ ],
178
+ undefined,
179
+ ],
180
+ ]
181
+ }
182
+ themeFontWeight="regular"
183
+ themeIntent="body"
184
+ themeState="filled"
185
+ >
186
+ (Optional)
187
+ </Text>
188
+ </AnimatedView>
189
+ </AnimatedView>
190
+ <Pressable
191
+ style={
192
+ [
193
+ [
194
+ {
195
+ "alignItems": "center",
196
+ "flexDirection": "row",
197
+ "flexGrow": 2,
198
+ "flexShrink": 1,
199
+ "opacity": 1,
200
+ },
201
+ ],
202
+ undefined,
203
+ ]
204
+ }
205
+ themeOpacity={1}
206
+ >
207
+ <View />
208
+ <View
209
+ accessibilityLabel="Text input field"
210
+ style={
211
+ {
212
+ "flex": 1,
213
+ }
214
+ }
215
+ testID="input-row-input-wrapper"
216
+ >
217
+ <TextInput
218
+ accessibilityState={
219
+ {
220
+ "disabled": false,
221
+ }
222
+ }
223
+ allowFontScaling={false}
224
+ editable={true}
225
+ multiline={true}
226
+ onBlur={[Function]}
227
+ onChangeText={[Function]}
228
+ onFocus={[Function]}
229
+ placeholder=" "
230
+ placeholderTextColor="#4d6265"
231
+ pointerEvents="none"
232
+ style={
233
+ [
234
+ [
235
+ {
236
+ "flexGrow": 2,
237
+ "fontFamily": "BeVietnamPro-Regular",
238
+ "fontSize": 15.692307692307693,
239
+ "height": undefined,
240
+ "maxHeight": 141.23076923076923,
241
+ "minHeight": 23.53846153846154,
242
+ "paddingVertical": 0,
243
+ "textAlignVertical": "center",
244
+ },
245
+ ],
246
+ [
247
+ {
248
+ "backgroundColor": "#ffffff",
249
+ "color": "#001f23",
250
+ },
251
+ {},
252
+ ],
253
+ ]
254
+ }
255
+ testID="text-input"
256
+ themeVariant="text"
257
+ value="Tuesday, Wednesday"
258
+ />
259
+ </View>
260
+ </Pressable>
261
+ <View
262
+ style={
263
+ [
264
+ [
265
+ {
266
+ "alignItems": "flex-start",
267
+ "flexDirection": "row",
268
+ "justifyContent": "space-between",
269
+ },
270
+ ],
271
+ undefined,
272
+ ]
273
+ }
274
+ />
275
+ </View>
276
+ <View
277
+ style={
278
+ [
279
+ [
280
+ {
281
+ "alignItems": "center",
282
+ "flexDirection": "row",
283
+ "justifyContent": "flex-end",
284
+ },
285
+ ],
286
+ undefined,
287
+ ]
288
+ }
289
+ >
290
+ <Text
291
+ accessibilityLabel="Suffix icon: arrow-down"
292
+ accessibilityRole="image"
293
+ allowFontScaling={false}
294
+ selectable={false}
295
+ style={
296
+ [
297
+ {
298
+ "color": undefined,
299
+ "fontSize": 12,
300
+ },
301
+ [
302
+ [
303
+ {
304
+ "color": "#001f23",
305
+ "fontSize": 23.53846153846154,
306
+ },
307
+ ],
308
+ undefined,
309
+ ],
310
+ {
311
+ "fontFamily": "hero-icons-mobile",
312
+ "fontStyle": "normal",
313
+ "fontWeight": "normal",
314
+ },
315
+ {},
316
+ ]
317
+ }
318
+ testID="input-suffix"
319
+ themeIntent="text"
320
+ themeSize="medium"
321
+ >
322
+
323
+ </Text>
324
+ </View>
325
+ </Pressable>
326
+ </View>
327
+ </TouchableOpacity>
328
+ </View>,
329
+ <Modal
330
+ onRequestClose={[Function]}
331
+ supportedOrientations={
332
+ [
333
+ "portrait",
334
+ ]
335
+ }
336
+ transparent={true}
337
+ visible={false}
338
+ >
339
+ <View
340
+ pointerEvents="box-none"
341
+ style={
342
+ [
343
+ [
344
+ {
345
+ "flexDirection": "column-reverse",
346
+ },
347
+ ],
348
+ undefined,
349
+ ]
350
+ }
351
+ >
352
+ <KeyboardAvoidingView
353
+ behavior="padding"
354
+ style={
355
+ [
356
+ [
357
+ {
358
+ "flex": 1,
359
+ "flexDirection": "column-reverse",
360
+ },
361
+ ],
362
+ undefined,
363
+ ]
364
+ }
365
+ >
366
+ <Pressable
367
+ onPress={[Function]}
368
+ style={
369
+ [
370
+ [
371
+ {
372
+ "backgroundColor": "#000000",
373
+ "opacity": 0.4,
374
+ },
375
+ ],
376
+ {
377
+ "opacity": {
378
+ "addListener": [MockFunction],
379
+ "removeListener": [MockFunction],
380
+ "setValue": [MockFunction],
381
+ },
382
+ },
383
+ ]
384
+ }
385
+ />
386
+ <SafeAreaView
387
+ style={
388
+ [
389
+ [
390
+ {
391
+ "backgroundColor": "#ffffff",
392
+ "borderTopLeftRadius": 16,
393
+ "borderTopRightRadius": 16,
394
+ "maxHeight": "94%",
395
+ "width": "100%",
396
+ },
397
+ ],
398
+ [
399
+ {
400
+ "paddingBottom": 0,
401
+ },
402
+ {
403
+ "transform": [
404
+ {
405
+ "scaleY": 1,
406
+ },
407
+ {
408
+ "translateY": {
409
+ "addListener": [MockFunction],
410
+ "removeListener": [MockFunction],
411
+ "setValue": [MockFunction],
412
+ },
413
+ },
414
+ ],
415
+ },
416
+ ],
417
+ ]
418
+ }
419
+ >
420
+ <View
421
+ style={
422
+ [
423
+ [
424
+ {
425
+ "flexDirection": "row",
426
+ "paddingHorizontal": 15.692307692307693,
427
+ "paddingVertical": 7.846153846153847,
428
+ },
429
+ ],
430
+ undefined,
431
+ ]
432
+ }
433
+ >
434
+ <View
435
+ style={
436
+ [
437
+ [
438
+ {
439
+ "flex": 1,
440
+ "justifyContent": "center",
441
+ },
442
+ ],
443
+ undefined,
444
+ ]
445
+ }
446
+ >
447
+ <Text
448
+ allowFontScaling={false}
449
+ style={
450
+ [
451
+ [
452
+ {
453
+ "color": "#001f23",
454
+ "fontFamily": "BeVietnamPro-SemiBold",
455
+ "fontSize": 15.692307692307693,
456
+ "letterSpacing": 0.24,
457
+ "lineHeight": 23.692307692307693,
458
+ },
459
+ ],
460
+ undefined,
461
+ ]
462
+ }
463
+ themeIntent="body"
464
+ themeTypeface="neutral"
465
+ themeVariant="regular-bold"
466
+ >
467
+ Select Label
468
+ </Text>
469
+ </View>
470
+ <View
471
+ style={
472
+ [
473
+ [
474
+ {
475
+ "alignItems": "flex-end",
476
+ "height": 47.07692307692308,
477
+ "justifyContent": "center",
478
+ "marginLeft": 11.76923076923077,
479
+ "width": 47.07692307692308,
480
+ },
481
+ ],
482
+ undefined,
483
+ ]
484
+ }
485
+ >
486
+ <TouchableOpacity
487
+ onPress={[Function]}
488
+ testID="bottom-sheet-close-icon"
489
+ >
490
+ <Text
491
+ allowFontScaling={false}
492
+ selectable={false}
493
+ style={
494
+ [
495
+ {
496
+ "color": undefined,
497
+ "fontSize": 12,
498
+ },
499
+ [
500
+ [
501
+ {
502
+ "color": "#001f23",
503
+ "fontSize": 15.692307692307693,
504
+ },
505
+ ],
506
+ undefined,
507
+ ],
508
+ {
509
+ "fontFamily": "hero-icons-mobile",
510
+ "fontStyle": "normal",
511
+ "fontWeight": "normal",
512
+ },
513
+ {},
514
+ ]
515
+ }
516
+ themeIntent="text"
517
+ themeSize="xsmall"
518
+ >
519
+
520
+ </Text>
521
+ </TouchableOpacity>
522
+ </View>
523
+ </View>
524
+ <SectionList
525
+ ItemSeparatorComponent={
526
+ {
527
+ "$$typeof": Symbol(react.forward_ref),
528
+ "render": [Function],
529
+ "withComponent": [Function],
530
+ }
531
+ }
532
+ ListFooterComponent={null}
533
+ SectionSeparatorComponent={
534
+ {
535
+ "$$typeof": Symbol(react.forward_ref),
536
+ "render": [Function],
537
+ "withComponent": [Function],
538
+ }
539
+ }
540
+ onEndReached={[Function]}
541
+ onEndReachedThreshold={0.1}
542
+ onMomentumScrollBegin={[Function]}
543
+ onScrollToIndexFailed={[Function]}
544
+ renderItem={[Function]}
545
+ renderSectionHeader={[Function]}
546
+ sections={
547
+ [
548
+ {
549
+ "category": "",
550
+ "data": [
551
+ {
552
+ "text": "Monday",
553
+ "value": "mon",
554
+ },
555
+ {
556
+ "text": "Tuesday",
557
+ "value": "tue",
558
+ },
559
+ {
560
+ "text": "Wednesday",
561
+ "value": "wed",
562
+ },
563
+ {
564
+ "text": "Thursday",
565
+ "value": "thu",
566
+ },
567
+ {
568
+ "text": "Friday",
569
+ "value": "fri",
570
+ },
571
+ {
572
+ "text": "Saturday",
573
+ "value": "sat",
574
+ },
575
+ {
576
+ "disabled": true,
577
+ "text": "Sunday",
578
+ "value": "sun",
579
+ },
580
+ ],
581
+ },
582
+ ]
583
+ }
584
+ style={
585
+ [
586
+ [
587
+ {
588
+ "paddingHorizontal": 11.76923076923077,
589
+ },
590
+ ],
591
+ {},
592
+ ]
593
+ }
594
+ />
595
+ <View>
596
+ <View
597
+ style={
598
+ [
599
+ [
600
+ {
601
+ "alignItems": "center",
602
+ "flexDirection": "row",
603
+ "justifyContent": "flex-end",
604
+ "paddingHorizontal": 11.76923076923077,
605
+ "paddingVertical": 1.9615384615384617,
606
+ },
607
+ ],
608
+ undefined,
609
+ ]
610
+ }
611
+ >
612
+ <TouchableHighlight
613
+ disabled={false}
614
+ loading={false}
615
+ onPress={[Function]}
616
+ onPressIn={[Function]}
617
+ onPressOut={[Function]}
618
+ style={
619
+ [
620
+ [
621
+ {
622
+ "alignItems": "center",
623
+ "backgroundColor": "transparent",
624
+ "borderRadius": 4,
625
+ "borderWidth": 0,
626
+ "flexDirection": "row",
627
+ "height": 58.84615384615385,
628
+ "justifyContent": "center",
629
+ "padding": 11.76923076923077,
630
+ },
631
+ ],
632
+ undefined,
633
+ ]
634
+ }
635
+ themeButtonVariant="text-primary"
636
+ themeInlineText={false}
637
+ themeIsCompact={false}
638
+ underlayColor="#ece8ef"
639
+ >
640
+ <Text
641
+ allowFontScaling={false}
642
+ disabled={false}
643
+ ellipsizeMode="tail"
644
+ numberOfLines={1}
645
+ style={
646
+ [
647
+ [
648
+ {
649
+ "color": "#001f23",
650
+ "fontFamily": "BeVietnamPro-SemiBold",
651
+ "fontSize": 15.692307692307693,
652
+ "letterSpacing": 0.24,
653
+ "lineHeight": 23.692307692307693,
654
+ },
655
+ ],
656
+ [
657
+ [
658
+ {
659
+ "color": "#401960",
660
+ "flexShrink": 1,
661
+ "lineHeight": 21.73076923076923,
662
+ "textAlign": "center",
663
+ "textAlignVertical": "center",
664
+ },
665
+ ],
666
+ undefined,
667
+ ],
668
+ ]
669
+ }
670
+ themeButtonVariant="text-primary"
671
+ themeIntent="body"
672
+ themeIsCompact={false}
673
+ themeIsPressed={false}
674
+ themeTypeface="neutral"
675
+ themeVariant="regular-bold"
676
+ >
677
+ Confirm
678
+ </Text>
679
+ </TouchableHighlight>
680
+ </View>
681
+ </View>
682
+ </SafeAreaView>
683
+ </KeyboardAvoidingView>
684
+ </View>
685
+ </Modal>,
686
+ ]
687
+ `;
688
+
689
+ exports[`Select renders correctly (snapshot) 1`] = `
690
+ [
691
+ <View
692
+ pointerEvents="auto"
693
+ >
694
+ <TouchableOpacity
695
+ onPress={[Function]}
696
+ >
697
+ <View
698
+ pointerEvents="none"
699
+ >
700
+ <Pressable
701
+ accessibilityState={
702
+ {
703
+ "disabled": false,
704
+ }
705
+ }
706
+ disabled={false}
707
+ onPress={[Function]}
708
+ style={
709
+ [
710
+ [
711
+ {
712
+ "flexDirection": "row",
713
+ "marginTop": 7.846153846153847,
714
+ "minHeight": 54.92307692307692,
715
+ "paddingHorizontal": 15.692307692307693,
716
+ "width": "100%",
717
+ },
718
+ ],
719
+ {},
720
+ ]
721
+ }
722
+ themeFocused={false}
723
+ themeHasError={false}
724
+ themeUseGroupStyleEnabled={false}
725
+ >
726
+ <View
727
+ pointerEvents="none"
728
+ style={
729
+ [
730
+ [
731
+ {
732
+ "borderColor": "#e8e9ea",
733
+ "borderRadius": 8,
734
+ "borderWidth": 2,
735
+ },
736
+ ],
737
+ [
738
+ {
739
+ "backgroundColor": "#ffffff",
740
+ },
741
+ {},
742
+ ],
743
+ ]
744
+ }
745
+ testID="text-input-border"
746
+ themeFocused={false}
747
+ themeState="filled"
748
+ />
749
+ <View
750
+ style={
751
+ [
752
+ [
753
+ {
754
+ "backgroundColor": "transparent",
755
+ "borderRadius": 8,
756
+ "flex": 1,
757
+ "flexDirection": "column",
758
+ "marginBottom": 7.846153846153847,
759
+ "marginTop": 7.846153846153847,
760
+ "overflow": "hidden",
761
+ },
762
+ ],
763
+ undefined,
764
+ ]
765
+ }
766
+ >
767
+ <AnimatedView
768
+ style={
769
+ [
770
+ [
771
+ {
772
+ "alignItems": "center",
773
+ "backgroundColor": "transparent",
774
+ "flexDirection": "row",
775
+ },
776
+ ],
777
+ [
778
+ {
779
+ "transformOrigin": "left center",
780
+ },
781
+ {
782
+ "transform": [
783
+ {
784
+ "translateY": {
785
+ "addListener": [MockFunction],
786
+ "removeListener": [MockFunction],
787
+ "setValue": [MockFunction],
788
+ },
789
+ },
790
+ {
791
+ "scale": {
792
+ "addListener": [MockFunction],
793
+ "removeListener": [MockFunction],
794
+ "setValue": [MockFunction],
795
+ },
796
+ },
797
+ ],
798
+ },
799
+ ],
800
+ ]
801
+ }
802
+ testID="input-label"
803
+ themeVariant="text"
804
+ >
805
+ <AnimatedView
806
+ style={
807
+ {
808
+ "flexDirection": "row",
809
+ }
810
+ }
811
+ >
812
+ <Text
813
+ allowFontScaling={false}
814
+ numberOfLines={1}
815
+ style={
816
+ [
817
+ [
818
+ {
819
+ "color": "#001f23",
820
+ "fontFamily": "BeVietnamPro-Regular",
821
+ "fontSize": 11.76923076923077,
822
+ "letterSpacing": 0.36,
823
+ "lineHeight": 15.76923076923077,
824
+ },
825
+ ],
826
+ [
827
+ [
828
+ {
829
+ "color": "#808f91",
830
+ },
831
+ ],
832
+ {
833
+ "backgroundColor": "transparent",
834
+ },
835
+ ],
836
+ ]
837
+ }
838
+ testID="input-label-text"
839
+ themeFontWeight="regular"
840
+ themeIntent="body"
841
+ themeState="filled"
842
+ >
843
+ Select Label
844
+ </Text>
845
+ <Text
846
+ allowFontScaling={false}
847
+ style={
848
+ [
849
+ [
850
+ {
851
+ "color": "#001f23",
852
+ "fontFamily": "BeVietnamPro-Regular",
853
+ "fontSize": 11.76923076923077,
854
+ "letterSpacing": 0.36,
855
+ "lineHeight": 15.76923076923077,
856
+ },
857
+ ],
858
+ [
859
+ [
860
+ {
861
+ "color": "#808f91",
862
+ },
863
+ ],
864
+ undefined,
865
+ ],
866
+ ]
867
+ }
868
+ themeFontWeight="regular"
869
+ themeIntent="body"
870
+ themeState="filled"
871
+ >
872
+ (Optional)
873
+ </Text>
874
+ </AnimatedView>
875
+ </AnimatedView>
876
+ <Pressable
877
+ style={
878
+ [
879
+ [
880
+ {
881
+ "alignItems": "center",
882
+ "flexDirection": "row",
883
+ "flexGrow": 2,
884
+ "flexShrink": 1,
885
+ "opacity": 1,
886
+ },
887
+ ],
888
+ undefined,
889
+ ]
890
+ }
891
+ themeOpacity={1}
892
+ >
893
+ <View />
894
+ <View
895
+ accessibilityLabel="Text input field"
896
+ style={
897
+ {
898
+ "flex": 1,
899
+ }
900
+ }
901
+ testID="input-row-input-wrapper"
902
+ >
903
+ <TextInput
904
+ accessibilityState={
905
+ {
906
+ "disabled": false,
907
+ }
908
+ }
909
+ allowFontScaling={false}
910
+ editable={true}
911
+ multiline={true}
912
+ onBlur={[Function]}
913
+ onChangeText={[Function]}
914
+ onFocus={[Function]}
915
+ placeholder=" "
916
+ placeholderTextColor="#4d6265"
917
+ pointerEvents="none"
918
+ style={
919
+ [
920
+ [
921
+ {
922
+ "flexGrow": 2,
923
+ "fontFamily": "BeVietnamPro-Regular",
924
+ "fontSize": 15.692307692307693,
925
+ "height": undefined,
926
+ "maxHeight": 141.23076923076923,
927
+ "minHeight": 23.53846153846154,
928
+ "paddingVertical": 0,
929
+ "textAlignVertical": "center",
930
+ },
931
+ ],
932
+ [
933
+ {
934
+ "backgroundColor": "#ffffff",
935
+ "color": "#001f23",
936
+ },
937
+ {},
938
+ ],
939
+ ]
940
+ }
941
+ testID="text-input"
942
+ themeVariant="text"
943
+ value="Monday"
944
+ />
945
+ </View>
946
+ </Pressable>
947
+ <View
948
+ style={
949
+ [
950
+ [
951
+ {
952
+ "alignItems": "flex-start",
953
+ "flexDirection": "row",
954
+ "justifyContent": "space-between",
955
+ },
956
+ ],
957
+ undefined,
958
+ ]
959
+ }
960
+ />
961
+ </View>
962
+ <View
963
+ style={
964
+ [
965
+ [
966
+ {
967
+ "alignItems": "center",
968
+ "flexDirection": "row",
969
+ "justifyContent": "flex-end",
970
+ },
971
+ ],
972
+ undefined,
973
+ ]
974
+ }
975
+ >
976
+ <Text
977
+ accessibilityLabel="Suffix icon: arrow-down"
978
+ accessibilityRole="image"
979
+ allowFontScaling={false}
980
+ selectable={false}
981
+ style={
982
+ [
983
+ {
984
+ "color": undefined,
985
+ "fontSize": 12,
986
+ },
987
+ [
988
+ [
989
+ {
990
+ "color": "#001f23",
991
+ "fontSize": 23.53846153846154,
992
+ },
993
+ ],
994
+ undefined,
995
+ ],
996
+ {
997
+ "fontFamily": "hero-icons-mobile",
998
+ "fontStyle": "normal",
999
+ "fontWeight": "normal",
1000
+ },
1001
+ {},
1002
+ ]
1003
+ }
1004
+ testID="input-suffix"
1005
+ themeIntent="text"
1006
+ themeSize="medium"
1007
+ >
1008
+
1009
+ </Text>
1010
+ </View>
1011
+ </Pressable>
1012
+ </View>
1013
+ </TouchableOpacity>
1014
+ </View>,
1015
+ <Modal
1016
+ onRequestClose={[Function]}
1017
+ supportedOrientations={
1018
+ [
1019
+ "portrait",
1020
+ ]
1021
+ }
1022
+ transparent={true}
1023
+ visible={false}
1024
+ >
1025
+ <View
1026
+ pointerEvents="box-none"
1027
+ style={
1028
+ [
1029
+ [
1030
+ {
1031
+ "flexDirection": "column-reverse",
1032
+ },
1033
+ ],
1034
+ undefined,
1035
+ ]
1036
+ }
1037
+ >
1038
+ <KeyboardAvoidingView
1039
+ behavior="padding"
1040
+ style={
1041
+ [
1042
+ [
1043
+ {
1044
+ "flex": 1,
1045
+ "flexDirection": "column-reverse",
1046
+ },
1047
+ ],
1048
+ undefined,
1049
+ ]
1050
+ }
1051
+ >
1052
+ <Pressable
1053
+ onPress={[Function]}
1054
+ style={
1055
+ [
1056
+ [
1057
+ {
1058
+ "backgroundColor": "#000000",
1059
+ "opacity": 0.4,
1060
+ },
1061
+ ],
1062
+ {
1063
+ "opacity": {
1064
+ "addListener": [MockFunction],
1065
+ "removeListener": [MockFunction],
1066
+ "setValue": [MockFunction],
1067
+ },
1068
+ },
1069
+ ]
1070
+ }
1071
+ />
1072
+ <SafeAreaView
1073
+ style={
1074
+ [
1075
+ [
1076
+ {
1077
+ "backgroundColor": "#ffffff",
1078
+ "borderTopLeftRadius": 16,
1079
+ "borderTopRightRadius": 16,
1080
+ "maxHeight": "94%",
1081
+ "width": "100%",
1082
+ },
1083
+ ],
1084
+ [
1085
+ {
1086
+ "paddingBottom": 0,
1087
+ },
1088
+ {
1089
+ "transform": [
1090
+ {
1091
+ "scaleY": 1,
1092
+ },
1093
+ {
1094
+ "translateY": {
1095
+ "addListener": [MockFunction],
1096
+ "removeListener": [MockFunction],
1097
+ "setValue": [MockFunction],
1098
+ },
1099
+ },
1100
+ ],
1101
+ },
1102
+ ],
1103
+ ]
1104
+ }
1105
+ >
1106
+ <View
1107
+ style={
1108
+ [
1109
+ [
1110
+ {
1111
+ "flexDirection": "row",
1112
+ "paddingHorizontal": 15.692307692307693,
1113
+ "paddingVertical": 7.846153846153847,
1114
+ },
1115
+ ],
1116
+ undefined,
1117
+ ]
1118
+ }
1119
+ >
1120
+ <View
1121
+ style={
1122
+ [
1123
+ [
1124
+ {
1125
+ "flex": 1,
1126
+ "justifyContent": "center",
1127
+ },
1128
+ ],
1129
+ undefined,
1130
+ ]
1131
+ }
1132
+ >
1133
+ <Text
1134
+ allowFontScaling={false}
1135
+ style={
1136
+ [
1137
+ [
1138
+ {
1139
+ "color": "#001f23",
1140
+ "fontFamily": "BeVietnamPro-SemiBold",
1141
+ "fontSize": 15.692307692307693,
1142
+ "letterSpacing": 0.24,
1143
+ "lineHeight": 23.692307692307693,
1144
+ },
1145
+ ],
1146
+ undefined,
1147
+ ]
1148
+ }
1149
+ themeIntent="body"
1150
+ themeTypeface="neutral"
1151
+ themeVariant="regular-bold"
1152
+ >
1153
+ Select Label
1154
+ </Text>
1155
+ </View>
1156
+ <View
1157
+ style={
1158
+ [
1159
+ [
1160
+ {
1161
+ "alignItems": "flex-end",
1162
+ "height": 47.07692307692308,
1163
+ "justifyContent": "center",
1164
+ "marginLeft": 11.76923076923077,
1165
+ "width": 47.07692307692308,
1166
+ },
1167
+ ],
1168
+ undefined,
1169
+ ]
1170
+ }
1171
+ >
1172
+ <TouchableOpacity
1173
+ onPress={[Function]}
1174
+ testID="bottom-sheet-close-icon"
1175
+ >
1176
+ <Text
1177
+ allowFontScaling={false}
1178
+ selectable={false}
1179
+ style={
1180
+ [
1181
+ {
1182
+ "color": undefined,
1183
+ "fontSize": 12,
1184
+ },
1185
+ [
1186
+ [
1187
+ {
1188
+ "color": "#001f23",
1189
+ "fontSize": 15.692307692307693,
1190
+ },
1191
+ ],
1192
+ undefined,
1193
+ ],
1194
+ {
1195
+ "fontFamily": "hero-icons-mobile",
1196
+ "fontStyle": "normal",
1197
+ "fontWeight": "normal",
1198
+ },
1199
+ {},
1200
+ ]
1201
+ }
1202
+ themeIntent="text"
1203
+ themeSize="xsmall"
1204
+ >
1205
+
1206
+ </Text>
1207
+ </TouchableOpacity>
1208
+ </View>
1209
+ </View>
1210
+ <SectionList
1211
+ ItemSeparatorComponent={
1212
+ {
1213
+ "$$typeof": Symbol(react.forward_ref),
1214
+ "render": [Function],
1215
+ "withComponent": [Function],
1216
+ }
1217
+ }
1218
+ ListFooterComponent={null}
1219
+ SectionSeparatorComponent={
1220
+ {
1221
+ "$$typeof": Symbol(react.forward_ref),
1222
+ "render": [Function],
1223
+ "withComponent": [Function],
1224
+ }
1225
+ }
1226
+ onEndReached={[Function]}
1227
+ onEndReachedThreshold={0.1}
1228
+ onMomentumScrollBegin={[Function]}
1229
+ onScrollToIndexFailed={[Function]}
1230
+ renderItem={[Function]}
1231
+ renderSectionHeader={[Function]}
1232
+ sections={
1233
+ [
1234
+ {
1235
+ "category": "",
1236
+ "data": [
1237
+ {
1238
+ "text": "Monday",
1239
+ "value": "mon",
1240
+ },
1241
+ {
1242
+ "text": "Tuesday",
1243
+ "value": "tue",
1244
+ },
1245
+ {
1246
+ "text": "Wednesday",
1247
+ "value": "wed",
1248
+ },
1249
+ {
1250
+ "text": "Thursday",
1251
+ "value": "thu",
1252
+ },
1253
+ {
1254
+ "text": "Friday",
1255
+ "value": "fri",
1256
+ },
1257
+ {
1258
+ "text": "Saturday",
1259
+ "value": "sat",
1260
+ },
1261
+ {
1262
+ "disabled": true,
1263
+ "text": "Sunday",
1264
+ "value": "sun",
1265
+ },
1266
+ ],
1267
+ },
1268
+ ]
1269
+ }
1270
+ style={
1271
+ [
1272
+ [
1273
+ {
1274
+ "paddingHorizontal": 11.76923076923077,
1275
+ },
1276
+ ],
1277
+ [
1278
+ [
1279
+ {
1280
+ "paddingBottom": 15.692307692307693,
1281
+ },
1282
+ ],
1283
+ {},
1284
+ ],
1285
+ ]
1286
+ }
1287
+ />
1288
+ </SafeAreaView>
1289
+ </KeyboardAvoidingView>
1290
+ </View>
1291
+ </Modal>,
1292
+ ]
1293
+ `;