@hero-design/rn 7.9.0 → 7.10.2-rc.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 (62) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +733 -252
  4. package/lib/assets/fonts/hero-icons.ttf +0 -0
  5. package/lib/index.js +732 -251
  6. package/package.json +2 -2
  7. package/src/components/Button/Button.tsx +10 -2
  8. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +7 -1
  9. package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +3 -0
  10. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +60 -0
  11. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +363 -0
  12. package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +3 -0
  13. package/src/components/Button/LoadingIndicator/index.tsx +4 -1
  14. package/src/components/Button/StyledButton.tsx +57 -1
  15. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +167 -0
  16. package/src/components/Button/UtilityButton/__tests__/index.spec.tsx +55 -0
  17. package/src/components/Button/UtilityButton/index.tsx +53 -0
  18. package/src/components/Button/UtilityButton/styled.tsx +25 -0
  19. package/src/components/Button/__tests__/Button.spec.tsx +3 -0
  20. package/src/components/Button/__tests__/StyledButton.spec.tsx +18 -0
  21. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +468 -0
  22. package/src/components/Button/index.tsx +3 -0
  23. package/src/components/Icon/HeroIcon/selection.json +1 -1
  24. package/src/components/Icon/IconList.ts +2 -0
  25. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +248 -94
  26. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +248 -94
  27. package/src/components/TextInput/StyledTextInput.tsx +133 -11
  28. package/src/components/TextInput/__tests__/.log/ti-10343.log +62 -0
  29. package/src/components/TextInput/__tests__/.log/tsserver.log +6983 -0
  30. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +143 -7
  31. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +922 -15
  32. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +2561 -0
  33. package/src/components/TextInput/__tests__/index.spec.tsx +346 -11
  34. package/src/components/TextInput/index.tsx +235 -28
  35. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +69 -3
  36. package/src/theme/components/button.ts +6 -0
  37. package/src/theme/components/textInput.ts +62 -3
  38. package/src/theme/global/colors.ts +1 -0
  39. package/src/types.ts +8 -1
  40. package/types/components/Button/Button.d.ts +2 -2
  41. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
  42. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  43. package/types/components/Button/StyledButton.d.ts +1 -1
  44. package/types/components/Button/UtilityButton/__tests__/index.spec.d.ts +1 -0
  45. package/types/components/Button/UtilityButton/index.d.ts +23 -0
  46. package/types/components/Button/UtilityButton/styled.d.ts +17 -0
  47. package/types/components/Button/index.d.ts +2 -0
  48. package/types/components/Icon/IconList.d.ts +1 -1
  49. package/types/components/Icon/utils.d.ts +1 -1
  50. package/types/components/TextInput/StyledTextInput.d.ts +82 -3
  51. package/types/components/TextInput/index.d.ts +33 -5
  52. package/types/theme/components/button.d.ts +6 -0
  53. package/types/theme/components/textInput.d.ts +61 -2
  54. package/types/theme/global/colors.d.ts +1 -0
  55. package/types/theme/global/index.d.ts +1 -0
  56. package/types/types.d.ts +2 -1
  57. package/.expo/README.md +0 -15
  58. package/.expo/packager-info.json +0 -10
  59. package/.expo/prebuild/cached-packages.json +0 -4
  60. package/.expo/settings.json +0 -10
  61. package/.expo/xcodebuild-error.log +0 -2
  62. package/.expo/xcodebuild.log +0 -11199
@@ -0,0 +1,2561 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
4
+ <View
5
+ pointerEvents="auto"
6
+ style={
7
+ Array [
8
+ Object {
9
+ "marginVertical": 8,
10
+ "width": "100%",
11
+ },
12
+ undefined,
13
+ ]
14
+ }
15
+ >
16
+ <View
17
+ style={
18
+ Array [
19
+ Object {
20
+ "alignItems": "center",
21
+ "flexDirection": "row",
22
+ "padding": 16,
23
+ },
24
+ undefined,
25
+ ]
26
+ }
27
+ >
28
+ <View
29
+ style={
30
+ Array [
31
+ Object {
32
+ "borderColor": "#292a2b",
33
+ "borderRadius": 8,
34
+ "borderWidth": 1,
35
+ "bottom": 0,
36
+ "left": 0,
37
+ "position": "absolute",
38
+ "right": 0,
39
+ "top": 0,
40
+ },
41
+ undefined,
42
+ ]
43
+ }
44
+ themeVariant="filled"
45
+ />
46
+ <View
47
+ pointerEvents="none"
48
+ style={
49
+ Array [
50
+ Object {
51
+ "backgroundColor": "#ffffff",
52
+ "flexDirection": "row",
53
+ "left": 16,
54
+ "paddingHorizontal": 4,
55
+ "position": "absolute",
56
+ "top": -10,
57
+ "zIndex": 1,
58
+ },
59
+ undefined,
60
+ ]
61
+ }
62
+ >
63
+ <Text
64
+ style={
65
+ Array [
66
+ Object {
67
+ "color": "#292a2b",
68
+ "fontFamily": "BeVietnamPro-Regular",
69
+ "fontSize": 12,
70
+ "letterSpacing": 0.36,
71
+ "lineHeight": 20,
72
+ },
73
+ Array [
74
+ Object {
75
+ "color": "#de350b",
76
+ },
77
+ undefined,
78
+ ],
79
+ ]
80
+ }
81
+ themeFontSize="small"
82
+ themeFontWeight="regular"
83
+ themeIntent="body"
84
+ themeVariant="filled"
85
+ >
86
+ *
87
+ </Text>
88
+ <Text
89
+ style={
90
+ Array [
91
+ Object {
92
+ "color": "#292a2b",
93
+ "fontFamily": "BeVietnamPro-Regular",
94
+ "fontSize": 12,
95
+ "letterSpacing": 0.36,
96
+ "lineHeight": 20,
97
+ },
98
+ Array [
99
+ Object {
100
+ "color": "#292a2b",
101
+ },
102
+ undefined,
103
+ ],
104
+ ]
105
+ }
106
+ testID="input-label"
107
+ themeFontSize="small"
108
+ themeFontWeight="regular"
109
+ themeIntent="body"
110
+ themeVariant="filled"
111
+ >
112
+ Amount (AUD)
113
+ </Text>
114
+ </View>
115
+ <HeroIcon
116
+ name="dollar-sign"
117
+ style={
118
+ Array [
119
+ Object {
120
+ "color": "#292a2b",
121
+ "fontSize": 16,
122
+ },
123
+ undefined,
124
+ ]
125
+ }
126
+ testID="input-prefix"
127
+ themeIntent="text"
128
+ themeSize="xsmall"
129
+ />
130
+ <View
131
+ style={
132
+ Array [
133
+ Object {
134
+ "alignItems": "center",
135
+ "alignSelf": "stretch",
136
+ "flexDirection": "row",
137
+ "flexGrow": 2,
138
+ },
139
+ undefined,
140
+ ]
141
+ }
142
+ >
143
+ <TextInput
144
+ accessibilityState={
145
+ Object {
146
+ "disabled": false,
147
+ }
148
+ }
149
+ defaultValue="1000"
150
+ editable={true}
151
+ maxLength={255}
152
+ onBlur={[Function]}
153
+ onChangeText={[Function]}
154
+ onFocus={[Function]}
155
+ style={
156
+ Array [
157
+ Object {
158
+ "alignSelf": "stretch",
159
+ "flexGrow": 2,
160
+ "fontSize": 14,
161
+ "marginHorizontal": 8,
162
+ "textAlignVertical": "center",
163
+ },
164
+ Object {
165
+ "color": "#292a2b",
166
+ },
167
+ ]
168
+ }
169
+ testID="text-input"
170
+ />
171
+ </View>
172
+ </View>
173
+ <View
174
+ style={
175
+ Array [
176
+ Object {
177
+ "flex": 1,
178
+ "flexDirection": "row",
179
+ "justifyContent": "space-between",
180
+ },
181
+ undefined,
182
+ ]
183
+ }
184
+ >
185
+ <Text
186
+ style={
187
+ Array [
188
+ Object {
189
+ "color": "#292a2b",
190
+ "fontFamily": "BeVietnamPro-Regular",
191
+ "fontSize": 12,
192
+ "letterSpacing": 0.36,
193
+ "lineHeight": 20,
194
+ },
195
+ Array [
196
+ Object {
197
+ "alignSelf": "flex-end",
198
+ "color": "#292a2b",
199
+ "flex": 1,
200
+ "flexGrow": 1,
201
+ "fontSize": 12,
202
+ "marginRight": 4,
203
+ "textAlign": "right",
204
+ },
205
+ undefined,
206
+ ],
207
+ ]
208
+ }
209
+ themeFontSize="small"
210
+ themeFontWeight="regular"
211
+ themeIntent="body"
212
+ themeVariant="filled"
213
+ >
214
+ 4
215
+ /
216
+ 255
217
+ </Text>
218
+ <Text
219
+ style={
220
+ Array [
221
+ Object {
222
+ "color": "#292a2b",
223
+ "fontFamily": "BeVietnamPro-Regular",
224
+ "fontSize": 14,
225
+ "letterSpacing": 0.42,
226
+ "lineHeight": 22,
227
+ },
228
+ Array [
229
+ Object {
230
+ "fontSize": 12,
231
+ "marginLeft": 4,
232
+ },
233
+ undefined,
234
+ ],
235
+ ]
236
+ }
237
+ themeFontSize="medium"
238
+ themeFontWeight="regular"
239
+ themeIntent="body"
240
+ >
241
+ This is helper text
242
+ </Text>
243
+ </View>
244
+ </View>
245
+ `;
246
+
247
+ exports[`TextInput defaultValue default Value and Value renders correctly with 2000 1`] = `
248
+ <View
249
+ pointerEvents="auto"
250
+ style={
251
+ Array [
252
+ Object {
253
+ "marginVertical": 8,
254
+ "width": "100%",
255
+ },
256
+ undefined,
257
+ ]
258
+ }
259
+ >
260
+ <View
261
+ style={
262
+ Array [
263
+ Object {
264
+ "alignItems": "center",
265
+ "flexDirection": "row",
266
+ "padding": 16,
267
+ },
268
+ undefined,
269
+ ]
270
+ }
271
+ >
272
+ <View
273
+ style={
274
+ Array [
275
+ Object {
276
+ "borderColor": "#292a2b",
277
+ "borderRadius": 8,
278
+ "borderWidth": 1,
279
+ "bottom": 0,
280
+ "left": 0,
281
+ "position": "absolute",
282
+ "right": 0,
283
+ "top": 0,
284
+ },
285
+ undefined,
286
+ ]
287
+ }
288
+ themeVariant="filled"
289
+ />
290
+ <View
291
+ pointerEvents="none"
292
+ style={
293
+ Array [
294
+ Object {
295
+ "backgroundColor": "#ffffff",
296
+ "flexDirection": "row",
297
+ "left": 16,
298
+ "paddingHorizontal": 4,
299
+ "position": "absolute",
300
+ "top": -10,
301
+ "zIndex": 1,
302
+ },
303
+ undefined,
304
+ ]
305
+ }
306
+ >
307
+ <Text
308
+ style={
309
+ Array [
310
+ Object {
311
+ "color": "#292a2b",
312
+ "fontFamily": "BeVietnamPro-Regular",
313
+ "fontSize": 12,
314
+ "letterSpacing": 0.36,
315
+ "lineHeight": 20,
316
+ },
317
+ Array [
318
+ Object {
319
+ "color": "#de350b",
320
+ },
321
+ undefined,
322
+ ],
323
+ ]
324
+ }
325
+ themeFontSize="small"
326
+ themeFontWeight="regular"
327
+ themeIntent="body"
328
+ themeVariant="filled"
329
+ >
330
+ *
331
+ </Text>
332
+ <Text
333
+ style={
334
+ Array [
335
+ Object {
336
+ "color": "#292a2b",
337
+ "fontFamily": "BeVietnamPro-Regular",
338
+ "fontSize": 12,
339
+ "letterSpacing": 0.36,
340
+ "lineHeight": 20,
341
+ },
342
+ Array [
343
+ Object {
344
+ "color": "#292a2b",
345
+ },
346
+ undefined,
347
+ ],
348
+ ]
349
+ }
350
+ testID="input-label"
351
+ themeFontSize="small"
352
+ themeFontWeight="regular"
353
+ themeIntent="body"
354
+ themeVariant="filled"
355
+ >
356
+ Amount (AUD)
357
+ </Text>
358
+ </View>
359
+ <HeroIcon
360
+ name="dollar-sign"
361
+ style={
362
+ Array [
363
+ Object {
364
+ "color": "#292a2b",
365
+ "fontSize": 16,
366
+ },
367
+ undefined,
368
+ ]
369
+ }
370
+ testID="input-prefix"
371
+ themeIntent="text"
372
+ themeSize="xsmall"
373
+ />
374
+ <View
375
+ style={
376
+ Array [
377
+ Object {
378
+ "alignItems": "center",
379
+ "alignSelf": "stretch",
380
+ "flexDirection": "row",
381
+ "flexGrow": 2,
382
+ },
383
+ undefined,
384
+ ]
385
+ }
386
+ >
387
+ <TextInput
388
+ accessibilityState={
389
+ Object {
390
+ "disabled": false,
391
+ }
392
+ }
393
+ defaultValue="1000"
394
+ editable={true}
395
+ maxLength={255}
396
+ onBlur={[Function]}
397
+ onChangeText={[Function]}
398
+ onFocus={[Function]}
399
+ style={
400
+ Array [
401
+ Object {
402
+ "alignSelf": "stretch",
403
+ "flexGrow": 2,
404
+ "fontSize": 14,
405
+ "marginHorizontal": 8,
406
+ "textAlignVertical": "center",
407
+ },
408
+ Object {
409
+ "color": "#292a2b",
410
+ },
411
+ ]
412
+ }
413
+ testID="text-input"
414
+ value="2000"
415
+ />
416
+ </View>
417
+ </View>
418
+ <View
419
+ style={
420
+ Array [
421
+ Object {
422
+ "flex": 1,
423
+ "flexDirection": "row",
424
+ "justifyContent": "space-between",
425
+ },
426
+ undefined,
427
+ ]
428
+ }
429
+ >
430
+ <Text
431
+ style={
432
+ Array [
433
+ Object {
434
+ "color": "#292a2b",
435
+ "fontFamily": "BeVietnamPro-Regular",
436
+ "fontSize": 12,
437
+ "letterSpacing": 0.36,
438
+ "lineHeight": 20,
439
+ },
440
+ Array [
441
+ Object {
442
+ "alignSelf": "flex-end",
443
+ "color": "#292a2b",
444
+ "flex": 1,
445
+ "flexGrow": 1,
446
+ "fontSize": 12,
447
+ "marginRight": 4,
448
+ "textAlign": "right",
449
+ },
450
+ undefined,
451
+ ],
452
+ ]
453
+ }
454
+ themeFontSize="small"
455
+ themeFontWeight="regular"
456
+ themeIntent="body"
457
+ themeVariant="filled"
458
+ >
459
+ 4
460
+ /
461
+ 255
462
+ </Text>
463
+ <Text
464
+ style={
465
+ Array [
466
+ Object {
467
+ "color": "#292a2b",
468
+ "fontFamily": "BeVietnamPro-Regular",
469
+ "fontSize": 14,
470
+ "letterSpacing": 0.42,
471
+ "lineHeight": 22,
472
+ },
473
+ Array [
474
+ Object {
475
+ "fontSize": 12,
476
+ "marginLeft": 4,
477
+ },
478
+ undefined,
479
+ ],
480
+ ]
481
+ }
482
+ themeFontSize="medium"
483
+ themeFontWeight="regular"
484
+ themeIntent="body"
485
+ >
486
+ This is helper text
487
+ </Text>
488
+ </View>
489
+ </View>
490
+ `;
491
+
492
+ exports[`TextInput disabled renders correctly 1`] = `
493
+ <View
494
+ pointerEvents="none"
495
+ style={
496
+ Array [
497
+ Object {
498
+ "marginVertical": 8,
499
+ "width": "100%",
500
+ },
501
+ undefined,
502
+ ]
503
+ }
504
+ testID="disabled-text-input"
505
+ >
506
+ <View
507
+ style={
508
+ Array [
509
+ Object {
510
+ "alignItems": "center",
511
+ "flexDirection": "row",
512
+ "padding": 16,
513
+ },
514
+ undefined,
515
+ ]
516
+ }
517
+ >
518
+ <View
519
+ style={
520
+ Array [
521
+ Object {
522
+ "borderColor": "#ccced1",
523
+ "borderRadius": 8,
524
+ "borderWidth": 1,
525
+ "bottom": 0,
526
+ "left": 0,
527
+ "position": "absolute",
528
+ "right": 0,
529
+ "top": 0,
530
+ },
531
+ undefined,
532
+ ]
533
+ }
534
+ themeVariant="disabled"
535
+ />
536
+ <View
537
+ pointerEvents="none"
538
+ style={
539
+ Array [
540
+ Object {
541
+ "backgroundColor": "#ffffff",
542
+ "flexDirection": "row",
543
+ "left": 16,
544
+ "paddingHorizontal": 4,
545
+ "position": "absolute",
546
+ "top": -10,
547
+ "zIndex": 1,
548
+ },
549
+ undefined,
550
+ ]
551
+ }
552
+ >
553
+ <Text
554
+ style={
555
+ Array [
556
+ Object {
557
+ "color": "#292a2b",
558
+ "fontFamily": "BeVietnamPro-Regular",
559
+ "fontSize": 12,
560
+ "letterSpacing": 0.36,
561
+ "lineHeight": 20,
562
+ },
563
+ Array [
564
+ Object {
565
+ "color": "#ccced1",
566
+ },
567
+ undefined,
568
+ ],
569
+ ]
570
+ }
571
+ themeFontSize="small"
572
+ themeFontWeight="regular"
573
+ themeIntent="body"
574
+ themeVariant="disabled"
575
+ >
576
+ *
577
+ </Text>
578
+ <Text
579
+ style={
580
+ Array [
581
+ Object {
582
+ "color": "#292a2b",
583
+ "fontFamily": "BeVietnamPro-Regular",
584
+ "fontSize": 12,
585
+ "letterSpacing": 0.36,
586
+ "lineHeight": 20,
587
+ },
588
+ Array [
589
+ Object {
590
+ "color": "#ccced1",
591
+ },
592
+ undefined,
593
+ ],
594
+ ]
595
+ }
596
+ testID="input-label"
597
+ themeFontSize="small"
598
+ themeFontWeight="regular"
599
+ themeIntent="body"
600
+ themeVariant="disabled"
601
+ >
602
+ Amount (AUD)
603
+ </Text>
604
+ </View>
605
+ <View
606
+ style={
607
+ Array [
608
+ Object {
609
+ "alignItems": "center",
610
+ "alignSelf": "stretch",
611
+ "flexDirection": "row",
612
+ "flexGrow": 2,
613
+ },
614
+ undefined,
615
+ ]
616
+ }
617
+ >
618
+ <TextInput
619
+ accessibilityState={
620
+ Object {
621
+ "disabled": true,
622
+ }
623
+ }
624
+ editable={true}
625
+ onBlur={[Function]}
626
+ onChangeText={[Function]}
627
+ onFocus={[Function]}
628
+ style={
629
+ Array [
630
+ Object {
631
+ "alignSelf": "stretch",
632
+ "flexGrow": 2,
633
+ "fontSize": 14,
634
+ "marginHorizontal": 8,
635
+ "textAlignVertical": "center",
636
+ },
637
+ Object {
638
+ "color": "#292a2b",
639
+ },
640
+ ]
641
+ }
642
+ testID="text-input"
643
+ value="100"
644
+ />
645
+ </View>
646
+ </View>
647
+ <View
648
+ style={
649
+ Array [
650
+ Object {
651
+ "flex": 1,
652
+ "flexDirection": "row",
653
+ "justifyContent": "space-between",
654
+ },
655
+ undefined,
656
+ ]
657
+ }
658
+ />
659
+ </View>
660
+ `;
661
+
662
+ exports[`TextInput error renders correctly 1`] = `
663
+ <View
664
+ pointerEvents="auto"
665
+ style={
666
+ Array [
667
+ Object {
668
+ "marginVertical": 8,
669
+ "width": "100%",
670
+ },
671
+ undefined,
672
+ ]
673
+ }
674
+ >
675
+ <View
676
+ style={
677
+ Array [
678
+ Object {
679
+ "alignItems": "center",
680
+ "flexDirection": "row",
681
+ "padding": 16,
682
+ },
683
+ undefined,
684
+ ]
685
+ }
686
+ >
687
+ <View
688
+ style={
689
+ Array [
690
+ Object {
691
+ "borderColor": "#de350b",
692
+ "borderRadius": 8,
693
+ "borderWidth": 1,
694
+ "bottom": 0,
695
+ "left": 0,
696
+ "position": "absolute",
697
+ "right": 0,
698
+ "top": 0,
699
+ },
700
+ undefined,
701
+ ]
702
+ }
703
+ themeVariant="error"
704
+ />
705
+ <HeroIcon
706
+ name="dollar-sign"
707
+ style={
708
+ Array [
709
+ Object {
710
+ "color": "#292a2b",
711
+ "fontSize": 16,
712
+ },
713
+ undefined,
714
+ ]
715
+ }
716
+ testID="input-prefix"
717
+ themeIntent="text"
718
+ themeSize="xsmall"
719
+ />
720
+ <View
721
+ style={
722
+ Array [
723
+ Object {
724
+ "alignItems": "center",
725
+ "alignSelf": "stretch",
726
+ "flexDirection": "row",
727
+ "flexGrow": 2,
728
+ },
729
+ undefined,
730
+ ]
731
+ }
732
+ >
733
+ <View
734
+ pointerEvents="none"
735
+ style={
736
+ Array [
737
+ Object {
738
+ "alignItems": "center",
739
+ "bottom": 0,
740
+ "flexDirection": "row",
741
+ "left": 0,
742
+ "position": "absolute",
743
+ "right": 0,
744
+ "top": 0,
745
+ "zIndex": 9999,
746
+ },
747
+ undefined,
748
+ ]
749
+ }
750
+ >
751
+ <Text
752
+ style={
753
+ Array [
754
+ Object {
755
+ "color": "#292a2b",
756
+ "fontFamily": "BeVietnamPro-Regular",
757
+ "fontSize": 14,
758
+ "letterSpacing": 0.42,
759
+ "lineHeight": 22,
760
+ },
761
+ Array [
762
+ Object {
763
+ "color": "#de350b",
764
+ "fontSize": 14,
765
+ },
766
+ undefined,
767
+ ],
768
+ ]
769
+ }
770
+ themeFontSize="medium"
771
+ themeFontWeight="regular"
772
+ themeIntent="body"
773
+ themeVariant="error"
774
+ >
775
+ *
776
+ </Text>
777
+ <Text
778
+ style={
779
+ Array [
780
+ Object {
781
+ "color": "#292a2b",
782
+ "fontFamily": "BeVietnamPro-Regular",
783
+ "fontSize": 14,
784
+ "letterSpacing": 0.42,
785
+ "lineHeight": 22,
786
+ },
787
+ Array [
788
+ Object {
789
+ "alignContent": "center",
790
+ "alignItems": "center",
791
+ "color": "#292a2b",
792
+ "fontSize": 14,
793
+ "textAlignVertical": "center",
794
+ },
795
+ undefined,
796
+ ],
797
+ ]
798
+ }
799
+ testID="input-label"
800
+ themeFontSize="medium"
801
+ themeFontWeight="regular"
802
+ themeIntent="body"
803
+ themeVariant="error"
804
+ >
805
+ Amount (AUD)
806
+ </Text>
807
+ </View>
808
+ <TextInput
809
+ accessibilityState={
810
+ Object {
811
+ "disabled": false,
812
+ }
813
+ }
814
+ editable={true}
815
+ onBlur={[Function]}
816
+ onChangeText={[Function]}
817
+ onFocus={[Function]}
818
+ style={
819
+ Array [
820
+ Object {
821
+ "alignSelf": "stretch",
822
+ "flexGrow": 2,
823
+ "fontSize": 14,
824
+ "marginHorizontal": 8,
825
+ "textAlignVertical": "center",
826
+ },
827
+ Object {
828
+ "color": "#292a2b",
829
+ },
830
+ ]
831
+ }
832
+ testID="text-input"
833
+ />
834
+ </View>
835
+ </View>
836
+ <View
837
+ style={
838
+ Array [
839
+ Object {
840
+ "flex": 1,
841
+ "flexDirection": "row",
842
+ "justifyContent": "space-between",
843
+ },
844
+ undefined,
845
+ ]
846
+ }
847
+ >
848
+ <View
849
+ style={
850
+ Array [
851
+ Object {
852
+ "alignItems": "center",
853
+ "flex": 1,
854
+ "flexDirection": "row",
855
+ "flexGrow": 4,
856
+ "marginLeft": 16,
857
+ "marginRight": 4,
858
+ },
859
+ undefined,
860
+ ]
861
+ }
862
+ >
863
+ <HeroIcon
864
+ name="circle-info"
865
+ style={
866
+ Array [
867
+ Object {
868
+ "color": "#de350b",
869
+ "fontSize": 16,
870
+ },
871
+ undefined,
872
+ ]
873
+ }
874
+ testID="input-error-icon"
875
+ themeIntent="danger"
876
+ themeSize="xsmall"
877
+ />
878
+ <Text
879
+ style={
880
+ Array [
881
+ Object {
882
+ "color": "#292a2b",
883
+ "fontFamily": "BeVietnamPro-Regular",
884
+ "fontSize": 14,
885
+ "letterSpacing": 0.42,
886
+ "lineHeight": 22,
887
+ },
888
+ Array [
889
+ Object {
890
+ "color": "#de350b",
891
+ "fontSize": 12,
892
+ "marginLeft": 4,
893
+ },
894
+ undefined,
895
+ ],
896
+ ]
897
+ }
898
+ testID="input-error-message"
899
+ themeFontSize="medium"
900
+ themeFontWeight="regular"
901
+ themeIntent="body"
902
+ >
903
+ This field is required
904
+ </Text>
905
+ </View>
906
+ </View>
907
+ </View>
908
+ `;
909
+
910
+ exports[`TextInput filled renders correctly 1`] = `
911
+ <View
912
+ pointerEvents="auto"
913
+ style={
914
+ Array [
915
+ Object {
916
+ "marginVertical": 8,
917
+ "width": "100%",
918
+ },
919
+ undefined,
920
+ ]
921
+ }
922
+ >
923
+ <View
924
+ style={
925
+ Array [
926
+ Object {
927
+ "alignItems": "center",
928
+ "flexDirection": "row",
929
+ "padding": 16,
930
+ },
931
+ undefined,
932
+ ]
933
+ }
934
+ >
935
+ <View
936
+ style={
937
+ Array [
938
+ Object {
939
+ "borderColor": "#292a2b",
940
+ "borderRadius": 8,
941
+ "borderWidth": 1,
942
+ "bottom": 0,
943
+ "left": 0,
944
+ "position": "absolute",
945
+ "right": 0,
946
+ "top": 0,
947
+ },
948
+ undefined,
949
+ ]
950
+ }
951
+ themeVariant="filled"
952
+ />
953
+ <View
954
+ pointerEvents="none"
955
+ style={
956
+ Array [
957
+ Object {
958
+ "backgroundColor": "#ffffff",
959
+ "flexDirection": "row",
960
+ "left": 16,
961
+ "paddingHorizontal": 4,
962
+ "position": "absolute",
963
+ "top": -10,
964
+ "zIndex": 1,
965
+ },
966
+ undefined,
967
+ ]
968
+ }
969
+ >
970
+ <Text
971
+ style={
972
+ Array [
973
+ Object {
974
+ "color": "#292a2b",
975
+ "fontFamily": "BeVietnamPro-Regular",
976
+ "fontSize": 12,
977
+ "letterSpacing": 0.36,
978
+ "lineHeight": 20,
979
+ },
980
+ Array [
981
+ Object {
982
+ "color": "#292a2b",
983
+ },
984
+ undefined,
985
+ ],
986
+ ]
987
+ }
988
+ testID="input-label"
989
+ themeFontSize="small"
990
+ themeFontWeight="regular"
991
+ themeIntent="body"
992
+ themeVariant="filled"
993
+ >
994
+ Amount (AUD)
995
+ </Text>
996
+ </View>
997
+ <HeroIcon
998
+ name="dollar-sign"
999
+ style={
1000
+ Array [
1001
+ Object {
1002
+ "color": "#292a2b",
1003
+ "fontSize": 16,
1004
+ },
1005
+ undefined,
1006
+ ]
1007
+ }
1008
+ testID="input-prefix"
1009
+ themeIntent="text"
1010
+ themeSize="xsmall"
1011
+ />
1012
+ <View
1013
+ style={
1014
+ Array [
1015
+ Object {
1016
+ "alignItems": "center",
1017
+ "alignSelf": "stretch",
1018
+ "flexDirection": "row",
1019
+ "flexGrow": 2,
1020
+ },
1021
+ undefined,
1022
+ ]
1023
+ }
1024
+ >
1025
+ <TextInput
1026
+ accessibilityState={
1027
+ Object {
1028
+ "disabled": false,
1029
+ }
1030
+ }
1031
+ editable={true}
1032
+ onBlur={[Function]}
1033
+ onChangeText={[Function]}
1034
+ onFocus={[Function]}
1035
+ style={
1036
+ Array [
1037
+ Object {
1038
+ "alignSelf": "stretch",
1039
+ "flexGrow": 2,
1040
+ "fontSize": 14,
1041
+ "marginHorizontal": 8,
1042
+ "textAlignVertical": "center",
1043
+ },
1044
+ Object {
1045
+ "color": "#292a2b",
1046
+ },
1047
+ ]
1048
+ }
1049
+ testID="text-input"
1050
+ value="100"
1051
+ />
1052
+ </View>
1053
+ <HeroIcon
1054
+ name="arrow-down"
1055
+ style={
1056
+ Array [
1057
+ Object {
1058
+ "color": "#292a2b",
1059
+ "fontSize": 16,
1060
+ },
1061
+ undefined,
1062
+ ]
1063
+ }
1064
+ testID="input-suffix"
1065
+ themeIntent="text"
1066
+ themeSize="xsmall"
1067
+ />
1068
+ </View>
1069
+ <View
1070
+ style={
1071
+ Array [
1072
+ Object {
1073
+ "flex": 1,
1074
+ "flexDirection": "row",
1075
+ "justifyContent": "space-between",
1076
+ },
1077
+ undefined,
1078
+ ]
1079
+ }
1080
+ />
1081
+ </View>
1082
+ `;
1083
+
1084
+ exports[`TextInput helper text renders correctly 1`] = `
1085
+ <View
1086
+ pointerEvents="auto"
1087
+ style={
1088
+ Array [
1089
+ Object {
1090
+ "marginVertical": 8,
1091
+ "width": "100%",
1092
+ },
1093
+ undefined,
1094
+ ]
1095
+ }
1096
+ >
1097
+ <View
1098
+ style={
1099
+ Array [
1100
+ Object {
1101
+ "alignItems": "center",
1102
+ "flexDirection": "row",
1103
+ "padding": 16,
1104
+ },
1105
+ undefined,
1106
+ ]
1107
+ }
1108
+ >
1109
+ <View
1110
+ style={
1111
+ Array [
1112
+ Object {
1113
+ "borderColor": "#292a2b",
1114
+ "borderRadius": 8,
1115
+ "borderWidth": 1,
1116
+ "bottom": 0,
1117
+ "left": 0,
1118
+ "position": "absolute",
1119
+ "right": 0,
1120
+ "top": 0,
1121
+ },
1122
+ undefined,
1123
+ ]
1124
+ }
1125
+ themeVariant="default"
1126
+ />
1127
+ <HeroIcon
1128
+ name="dollar-sign"
1129
+ style={
1130
+ Array [
1131
+ Object {
1132
+ "color": "#292a2b",
1133
+ "fontSize": 16,
1134
+ },
1135
+ undefined,
1136
+ ]
1137
+ }
1138
+ testID="input-prefix"
1139
+ themeIntent="text"
1140
+ themeSize="xsmall"
1141
+ />
1142
+ <View
1143
+ style={
1144
+ Array [
1145
+ Object {
1146
+ "alignItems": "center",
1147
+ "alignSelf": "stretch",
1148
+ "flexDirection": "row",
1149
+ "flexGrow": 2,
1150
+ },
1151
+ undefined,
1152
+ ]
1153
+ }
1154
+ >
1155
+ <View
1156
+ pointerEvents="none"
1157
+ style={
1158
+ Array [
1159
+ Object {
1160
+ "alignItems": "center",
1161
+ "bottom": 0,
1162
+ "flexDirection": "row",
1163
+ "left": 0,
1164
+ "position": "absolute",
1165
+ "right": 0,
1166
+ "top": 0,
1167
+ "zIndex": 9999,
1168
+ },
1169
+ undefined,
1170
+ ]
1171
+ }
1172
+ >
1173
+ <Text
1174
+ style={
1175
+ Array [
1176
+ Object {
1177
+ "color": "#292a2b",
1178
+ "fontFamily": "BeVietnamPro-Regular",
1179
+ "fontSize": 14,
1180
+ "letterSpacing": 0.42,
1181
+ "lineHeight": 22,
1182
+ },
1183
+ Array [
1184
+ Object {
1185
+ "color": "#de350b",
1186
+ "fontSize": 14,
1187
+ },
1188
+ undefined,
1189
+ ],
1190
+ ]
1191
+ }
1192
+ themeFontSize="medium"
1193
+ themeFontWeight="regular"
1194
+ themeIntent="body"
1195
+ themeVariant="default"
1196
+ >
1197
+ *
1198
+ </Text>
1199
+ <Text
1200
+ style={
1201
+ Array [
1202
+ Object {
1203
+ "color": "#292a2b",
1204
+ "fontFamily": "BeVietnamPro-Regular",
1205
+ "fontSize": 14,
1206
+ "letterSpacing": 0.42,
1207
+ "lineHeight": 22,
1208
+ },
1209
+ Array [
1210
+ Object {
1211
+ "alignContent": "center",
1212
+ "alignItems": "center",
1213
+ "color": "#292a2b",
1214
+ "fontSize": 14,
1215
+ "textAlignVertical": "center",
1216
+ },
1217
+ undefined,
1218
+ ],
1219
+ ]
1220
+ }
1221
+ testID="input-label"
1222
+ themeFontSize="medium"
1223
+ themeFontWeight="regular"
1224
+ themeIntent="body"
1225
+ themeVariant="default"
1226
+ >
1227
+ Amount (AUD)
1228
+ </Text>
1229
+ </View>
1230
+ <TextInput
1231
+ accessibilityState={
1232
+ Object {
1233
+ "disabled": false,
1234
+ }
1235
+ }
1236
+ editable={true}
1237
+ onBlur={[Function]}
1238
+ onChangeText={[Function]}
1239
+ onFocus={[Function]}
1240
+ style={
1241
+ Array [
1242
+ Object {
1243
+ "alignSelf": "stretch",
1244
+ "flexGrow": 2,
1245
+ "fontSize": 14,
1246
+ "marginHorizontal": 8,
1247
+ "textAlignVertical": "center",
1248
+ },
1249
+ Object {
1250
+ "color": "#292a2b",
1251
+ },
1252
+ ]
1253
+ }
1254
+ testID="text-input"
1255
+ />
1256
+ </View>
1257
+ </View>
1258
+ <View
1259
+ style={
1260
+ Array [
1261
+ Object {
1262
+ "flex": 1,
1263
+ "flexDirection": "row",
1264
+ "justifyContent": "space-between",
1265
+ },
1266
+ undefined,
1267
+ ]
1268
+ }
1269
+ >
1270
+ <Text
1271
+ style={
1272
+ Array [
1273
+ Object {
1274
+ "color": "#292a2b",
1275
+ "fontFamily": "BeVietnamPro-Regular",
1276
+ "fontSize": 14,
1277
+ "letterSpacing": 0.42,
1278
+ "lineHeight": 22,
1279
+ },
1280
+ Array [
1281
+ Object {
1282
+ "fontSize": 12,
1283
+ "marginLeft": 4,
1284
+ },
1285
+ undefined,
1286
+ ],
1287
+ ]
1288
+ }
1289
+ themeFontSize="medium"
1290
+ themeFontWeight="regular"
1291
+ themeIntent="body"
1292
+ >
1293
+ This is helper text
1294
+ </Text>
1295
+ </View>
1296
+ </View>
1297
+ `;
1298
+
1299
+ exports[`TextInput idle renders correctly 1`] = `
1300
+ <View
1301
+ pointerEvents="auto"
1302
+ style={
1303
+ Array [
1304
+ Object {
1305
+ "marginVertical": 8,
1306
+ "width": "100%",
1307
+ },
1308
+ undefined,
1309
+ ]
1310
+ }
1311
+ testID="idle-text-input"
1312
+ >
1313
+ <View
1314
+ style={
1315
+ Array [
1316
+ Object {
1317
+ "alignItems": "center",
1318
+ "flexDirection": "row",
1319
+ "padding": 16,
1320
+ },
1321
+ undefined,
1322
+ ]
1323
+ }
1324
+ >
1325
+ <View
1326
+ style={
1327
+ Array [
1328
+ Object {
1329
+ "borderColor": "#292a2b",
1330
+ "borderRadius": 8,
1331
+ "borderWidth": 1,
1332
+ "bottom": 0,
1333
+ "left": 0,
1334
+ "position": "absolute",
1335
+ "right": 0,
1336
+ "top": 0,
1337
+ },
1338
+ undefined,
1339
+ ]
1340
+ }
1341
+ themeVariant="default"
1342
+ />
1343
+ <HeroIcon
1344
+ name="dollar-sign"
1345
+ style={
1346
+ Array [
1347
+ Object {
1348
+ "color": "#292a2b",
1349
+ "fontSize": 16,
1350
+ },
1351
+ undefined,
1352
+ ]
1353
+ }
1354
+ testID="input-prefix"
1355
+ themeIntent="text"
1356
+ themeSize="xsmall"
1357
+ />
1358
+ <View
1359
+ style={
1360
+ Array [
1361
+ Object {
1362
+ "alignItems": "center",
1363
+ "alignSelf": "stretch",
1364
+ "flexDirection": "row",
1365
+ "flexGrow": 2,
1366
+ },
1367
+ undefined,
1368
+ ]
1369
+ }
1370
+ >
1371
+ <View
1372
+ pointerEvents="none"
1373
+ style={
1374
+ Array [
1375
+ Object {
1376
+ "alignItems": "center",
1377
+ "bottom": 0,
1378
+ "flexDirection": "row",
1379
+ "left": 0,
1380
+ "position": "absolute",
1381
+ "right": 0,
1382
+ "top": 0,
1383
+ "zIndex": 9999,
1384
+ },
1385
+ undefined,
1386
+ ]
1387
+ }
1388
+ >
1389
+ <Text
1390
+ style={
1391
+ Array [
1392
+ Object {
1393
+ "color": "#292a2b",
1394
+ "fontFamily": "BeVietnamPro-Regular",
1395
+ "fontSize": 14,
1396
+ "letterSpacing": 0.42,
1397
+ "lineHeight": 22,
1398
+ },
1399
+ Array [
1400
+ Object {
1401
+ "alignContent": "center",
1402
+ "alignItems": "center",
1403
+ "color": "#292a2b",
1404
+ "fontSize": 14,
1405
+ "textAlignVertical": "center",
1406
+ },
1407
+ undefined,
1408
+ ],
1409
+ ]
1410
+ }
1411
+ testID="input-label"
1412
+ themeFontSize="medium"
1413
+ themeFontWeight="regular"
1414
+ themeIntent="body"
1415
+ themeVariant="default"
1416
+ >
1417
+ Amount (AUD)
1418
+ </Text>
1419
+ </View>
1420
+ <TextInput
1421
+ accessibilityState={
1422
+ Object {
1423
+ "disabled": false,
1424
+ }
1425
+ }
1426
+ editable={true}
1427
+ onBlur={[Function]}
1428
+ onChangeText={[Function]}
1429
+ onFocus={[Function]}
1430
+ style={
1431
+ Array [
1432
+ Object {
1433
+ "alignSelf": "stretch",
1434
+ "flexGrow": 2,
1435
+ "fontSize": 14,
1436
+ "marginHorizontal": 8,
1437
+ "textAlignVertical": "center",
1438
+ },
1439
+ Object {
1440
+ "color": "#292a2b",
1441
+ },
1442
+ ]
1443
+ }
1444
+ testID="text-input"
1445
+ />
1446
+ </View>
1447
+ <HeroIcon
1448
+ name="arrow-down"
1449
+ style={
1450
+ Array [
1451
+ Object {
1452
+ "color": "#292a2b",
1453
+ "fontSize": 16,
1454
+ },
1455
+ undefined,
1456
+ ]
1457
+ }
1458
+ testID="input-suffix"
1459
+ themeIntent="text"
1460
+ themeSize="xsmall"
1461
+ />
1462
+ </View>
1463
+ <View
1464
+ style={
1465
+ Array [
1466
+ Object {
1467
+ "flex": 1,
1468
+ "flexDirection": "row",
1469
+ "justifyContent": "space-between",
1470
+ },
1471
+ undefined,
1472
+ ]
1473
+ }
1474
+ />
1475
+ </View>
1476
+ `;
1477
+
1478
+ exports[`TextInput idle with suffix and prefix are React Element renders correctly 1`] = `
1479
+ <View
1480
+ pointerEvents="auto"
1481
+ style={
1482
+ Array [
1483
+ Object {
1484
+ "marginVertical": 8,
1485
+ "width": "100%",
1486
+ },
1487
+ undefined,
1488
+ ]
1489
+ }
1490
+ >
1491
+ <View
1492
+ style={
1493
+ Array [
1494
+ Object {
1495
+ "alignItems": "center",
1496
+ "flexDirection": "row",
1497
+ "padding": 16,
1498
+ },
1499
+ undefined,
1500
+ ]
1501
+ }
1502
+ >
1503
+ <View
1504
+ style={
1505
+ Array [
1506
+ Object {
1507
+ "borderColor": "#292a2b",
1508
+ "borderRadius": 8,
1509
+ "borderWidth": 1,
1510
+ "bottom": 0,
1511
+ "left": 0,
1512
+ "position": "absolute",
1513
+ "right": 0,
1514
+ "top": 0,
1515
+ },
1516
+ undefined,
1517
+ ]
1518
+ }
1519
+ themeVariant="default"
1520
+ />
1521
+ <HeroIcon
1522
+ name="eye-circle"
1523
+ style={
1524
+ Array [
1525
+ Object {
1526
+ "color": "#292a2b",
1527
+ "fontSize": 24,
1528
+ },
1529
+ undefined,
1530
+ ]
1531
+ }
1532
+ testID="prefix-element"
1533
+ themeIntent="text"
1534
+ themeSize="medium"
1535
+ />
1536
+ <View
1537
+ style={
1538
+ Array [
1539
+ Object {
1540
+ "alignItems": "center",
1541
+ "alignSelf": "stretch",
1542
+ "flexDirection": "row",
1543
+ "flexGrow": 2,
1544
+ },
1545
+ undefined,
1546
+ ]
1547
+ }
1548
+ >
1549
+ <View
1550
+ pointerEvents="none"
1551
+ style={
1552
+ Array [
1553
+ Object {
1554
+ "alignItems": "center",
1555
+ "bottom": 0,
1556
+ "flexDirection": "row",
1557
+ "left": 0,
1558
+ "position": "absolute",
1559
+ "right": 0,
1560
+ "top": 0,
1561
+ "zIndex": 9999,
1562
+ },
1563
+ undefined,
1564
+ ]
1565
+ }
1566
+ >
1567
+ <Text
1568
+ style={
1569
+ Array [
1570
+ Object {
1571
+ "color": "#292a2b",
1572
+ "fontFamily": "BeVietnamPro-Regular",
1573
+ "fontSize": 14,
1574
+ "letterSpacing": 0.42,
1575
+ "lineHeight": 22,
1576
+ },
1577
+ Array [
1578
+ Object {
1579
+ "color": "#de350b",
1580
+ "fontSize": 14,
1581
+ },
1582
+ undefined,
1583
+ ],
1584
+ ]
1585
+ }
1586
+ themeFontSize="medium"
1587
+ themeFontWeight="regular"
1588
+ themeIntent="body"
1589
+ themeVariant="default"
1590
+ >
1591
+ *
1592
+ </Text>
1593
+ <Text
1594
+ style={
1595
+ Array [
1596
+ Object {
1597
+ "color": "#292a2b",
1598
+ "fontFamily": "BeVietnamPro-Regular",
1599
+ "fontSize": 14,
1600
+ "letterSpacing": 0.42,
1601
+ "lineHeight": 22,
1602
+ },
1603
+ Array [
1604
+ Object {
1605
+ "alignContent": "center",
1606
+ "alignItems": "center",
1607
+ "color": "#292a2b",
1608
+ "fontSize": 14,
1609
+ "textAlignVertical": "center",
1610
+ },
1611
+ undefined,
1612
+ ],
1613
+ ]
1614
+ }
1615
+ testID="input-label"
1616
+ themeFontSize="medium"
1617
+ themeFontWeight="regular"
1618
+ themeIntent="body"
1619
+ themeVariant="default"
1620
+ >
1621
+ Amount (AUD)
1622
+ </Text>
1623
+ </View>
1624
+ <TextInput
1625
+ accessibilityState={
1626
+ Object {
1627
+ "disabled": false,
1628
+ }
1629
+ }
1630
+ editable={true}
1631
+ onBlur={[Function]}
1632
+ onChangeText={[Function]}
1633
+ onFocus={[Function]}
1634
+ style={
1635
+ Array [
1636
+ Object {
1637
+ "alignSelf": "stretch",
1638
+ "flexGrow": 2,
1639
+ "fontSize": 14,
1640
+ "marginHorizontal": 8,
1641
+ "textAlignVertical": "center",
1642
+ },
1643
+ Object {
1644
+ "color": "#292a2b",
1645
+ },
1646
+ ]
1647
+ }
1648
+ testID="text-input"
1649
+ />
1650
+ </View>
1651
+ <HeroIcon
1652
+ name="eye-invisible"
1653
+ style={
1654
+ Array [
1655
+ Object {
1656
+ "color": "#292a2b",
1657
+ "fontSize": 24,
1658
+ },
1659
+ undefined,
1660
+ ]
1661
+ }
1662
+ testID="suffix-element"
1663
+ themeIntent="text"
1664
+ themeSize="medium"
1665
+ />
1666
+ </View>
1667
+ <View
1668
+ style={
1669
+ Array [
1670
+ Object {
1671
+ "flex": 1,
1672
+ "flexDirection": "row",
1673
+ "justifyContent": "space-between",
1674
+ },
1675
+ undefined,
1676
+ ]
1677
+ }
1678
+ />
1679
+ </View>
1680
+ `;
1681
+
1682
+ exports[`TextInput max length renders correctly 1`] = `
1683
+ <View
1684
+ pointerEvents="auto"
1685
+ style={
1686
+ Array [
1687
+ Object {
1688
+ "marginVertical": 8,
1689
+ "width": "100%",
1690
+ },
1691
+ undefined,
1692
+ ]
1693
+ }
1694
+ >
1695
+ <View
1696
+ style={
1697
+ Array [
1698
+ Object {
1699
+ "alignItems": "center",
1700
+ "flexDirection": "row",
1701
+ "padding": 16,
1702
+ },
1703
+ undefined,
1704
+ ]
1705
+ }
1706
+ >
1707
+ <View
1708
+ style={
1709
+ Array [
1710
+ Object {
1711
+ "borderColor": "#de350b",
1712
+ "borderRadius": 8,
1713
+ "borderWidth": 1,
1714
+ "bottom": 0,
1715
+ "left": 0,
1716
+ "position": "absolute",
1717
+ "right": 0,
1718
+ "top": 0,
1719
+ },
1720
+ undefined,
1721
+ ]
1722
+ }
1723
+ themeVariant="error"
1724
+ />
1725
+ <View
1726
+ pointerEvents="none"
1727
+ style={
1728
+ Array [
1729
+ Object {
1730
+ "backgroundColor": "#ffffff",
1731
+ "flexDirection": "row",
1732
+ "left": 16,
1733
+ "paddingHorizontal": 4,
1734
+ "position": "absolute",
1735
+ "top": -10,
1736
+ "zIndex": 1,
1737
+ },
1738
+ undefined,
1739
+ ]
1740
+ }
1741
+ >
1742
+ <Text
1743
+ style={
1744
+ Array [
1745
+ Object {
1746
+ "color": "#292a2b",
1747
+ "fontFamily": "BeVietnamPro-Regular",
1748
+ "fontSize": 12,
1749
+ "letterSpacing": 0.36,
1750
+ "lineHeight": 20,
1751
+ },
1752
+ Array [
1753
+ Object {
1754
+ "color": "#de350b",
1755
+ },
1756
+ undefined,
1757
+ ],
1758
+ ]
1759
+ }
1760
+ themeFontSize="small"
1761
+ themeFontWeight="regular"
1762
+ themeIntent="body"
1763
+ themeVariant="error"
1764
+ >
1765
+ *
1766
+ </Text>
1767
+ <Text
1768
+ style={
1769
+ Array [
1770
+ Object {
1771
+ "color": "#292a2b",
1772
+ "fontFamily": "BeVietnamPro-Regular",
1773
+ "fontSize": 12,
1774
+ "letterSpacing": 0.36,
1775
+ "lineHeight": 20,
1776
+ },
1777
+ Array [
1778
+ Object {
1779
+ "color": "#292a2b",
1780
+ },
1781
+ undefined,
1782
+ ],
1783
+ ]
1784
+ }
1785
+ testID="input-label"
1786
+ themeFontSize="small"
1787
+ themeFontWeight="regular"
1788
+ themeIntent="body"
1789
+ themeVariant="error"
1790
+ >
1791
+ Shout out
1792
+ </Text>
1793
+ </View>
1794
+ <View
1795
+ style={
1796
+ Array [
1797
+ Object {
1798
+ "alignItems": "center",
1799
+ "alignSelf": "stretch",
1800
+ "flexDirection": "row",
1801
+ "flexGrow": 2,
1802
+ },
1803
+ undefined,
1804
+ ]
1805
+ }
1806
+ >
1807
+ <TextInput
1808
+ accessibilityState={
1809
+ Object {
1810
+ "disabled": false,
1811
+ }
1812
+ }
1813
+ editable={true}
1814
+ maxLength={255}
1815
+ multiline={true}
1816
+ onBlur={[Function]}
1817
+ onChangeText={[Function]}
1818
+ onFocus={[Function]}
1819
+ style={
1820
+ Array [
1821
+ Object {
1822
+ "alignSelf": "stretch",
1823
+ "flexGrow": 2,
1824
+ "fontSize": 14,
1825
+ "marginHorizontal": 8,
1826
+ "textAlignVertical": "center",
1827
+ },
1828
+ Object {
1829
+ "color": "#292a2b",
1830
+ },
1831
+ ]
1832
+ }
1833
+ testID="text-input"
1834
+ value="shout out Tung Van"
1835
+ />
1836
+ </View>
1837
+ </View>
1838
+ <View
1839
+ style={
1840
+ Array [
1841
+ Object {
1842
+ "flex": 1,
1843
+ "flexDirection": "row",
1844
+ "justifyContent": "space-between",
1845
+ },
1846
+ undefined,
1847
+ ]
1848
+ }
1849
+ >
1850
+ <View
1851
+ style={
1852
+ Array [
1853
+ Object {
1854
+ "alignItems": "center",
1855
+ "flex": 1,
1856
+ "flexDirection": "row",
1857
+ "flexGrow": 4,
1858
+ "marginLeft": 16,
1859
+ "marginRight": 4,
1860
+ },
1861
+ undefined,
1862
+ ]
1863
+ }
1864
+ >
1865
+ <HeroIcon
1866
+ name="circle-info"
1867
+ style={
1868
+ Array [
1869
+ Object {
1870
+ "color": "#de350b",
1871
+ "fontSize": 16,
1872
+ },
1873
+ undefined,
1874
+ ]
1875
+ }
1876
+ testID="input-error-icon"
1877
+ themeIntent="danger"
1878
+ themeSize="xsmall"
1879
+ />
1880
+ <Text
1881
+ style={
1882
+ Array [
1883
+ Object {
1884
+ "color": "#292a2b",
1885
+ "fontFamily": "BeVietnamPro-Regular",
1886
+ "fontSize": 14,
1887
+ "letterSpacing": 0.42,
1888
+ "lineHeight": 22,
1889
+ },
1890
+ Array [
1891
+ Object {
1892
+ "color": "#de350b",
1893
+ "fontSize": 12,
1894
+ "marginLeft": 4,
1895
+ },
1896
+ undefined,
1897
+ ],
1898
+ ]
1899
+ }
1900
+ testID="input-error-message"
1901
+ themeFontSize="medium"
1902
+ themeFontWeight="regular"
1903
+ themeIntent="body"
1904
+ >
1905
+ must not exceed character limit
1906
+ </Text>
1907
+ </View>
1908
+ <Text
1909
+ style={
1910
+ Array [
1911
+ Object {
1912
+ "color": "#292a2b",
1913
+ "fontFamily": "BeVietnamPro-Regular",
1914
+ "fontSize": 12,
1915
+ "letterSpacing": 0.36,
1916
+ "lineHeight": 20,
1917
+ },
1918
+ Array [
1919
+ Object {
1920
+ "alignSelf": "flex-end",
1921
+ "color": "#de350b",
1922
+ "flex": 1,
1923
+ "flexGrow": 1,
1924
+ "fontSize": 12,
1925
+ "marginRight": 4,
1926
+ "textAlign": "right",
1927
+ },
1928
+ undefined,
1929
+ ],
1930
+ ]
1931
+ }
1932
+ themeFontSize="small"
1933
+ themeFontWeight="regular"
1934
+ themeIntent="body"
1935
+ themeVariant="error"
1936
+ >
1937
+ 18
1938
+ /
1939
+ 255
1940
+ </Text>
1941
+ </View>
1942
+ </View>
1943
+ `;
1944
+
1945
+ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
1946
+ <View
1947
+ pointerEvents="auto"
1948
+ style={
1949
+ Array [
1950
+ Object {
1951
+ "marginVertical": 8,
1952
+ "width": "100%",
1953
+ },
1954
+ undefined,
1955
+ ]
1956
+ }
1957
+ >
1958
+ <View
1959
+ style={
1960
+ Array [
1961
+ Object {
1962
+ "alignItems": "center",
1963
+ "flexDirection": "row",
1964
+ "padding": 16,
1965
+ },
1966
+ undefined,
1967
+ ]
1968
+ }
1969
+ >
1970
+ <View
1971
+ style={
1972
+ Array [
1973
+ Object {
1974
+ "borderColor": "#292a2b",
1975
+ "borderRadius": 8,
1976
+ "borderWidth": 1,
1977
+ "bottom": 0,
1978
+ "left": 0,
1979
+ "position": "absolute",
1980
+ "right": 0,
1981
+ "top": 0,
1982
+ },
1983
+ undefined,
1984
+ ]
1985
+ }
1986
+ themeVariant="default"
1987
+ />
1988
+ <HeroIcon
1989
+ name="dollar-sign"
1990
+ style={
1991
+ Array [
1992
+ Object {
1993
+ "color": "#292a2b",
1994
+ "fontSize": 16,
1995
+ },
1996
+ undefined,
1997
+ ]
1998
+ }
1999
+ testID="input-prefix"
2000
+ themeIntent="text"
2001
+ themeSize="xsmall"
2002
+ />
2003
+ <View
2004
+ style={
2005
+ Array [
2006
+ Object {
2007
+ "alignItems": "center",
2008
+ "alignSelf": "stretch",
2009
+ "flexDirection": "row",
2010
+ "flexGrow": 2,
2011
+ },
2012
+ undefined,
2013
+ ]
2014
+ }
2015
+ >
2016
+ <View
2017
+ pointerEvents="none"
2018
+ style={
2019
+ Array [
2020
+ Object {
2021
+ "alignItems": "center",
2022
+ "bottom": 0,
2023
+ "flexDirection": "row",
2024
+ "left": 0,
2025
+ "position": "absolute",
2026
+ "right": 0,
2027
+ "top": 0,
2028
+ "zIndex": 9999,
2029
+ },
2030
+ undefined,
2031
+ ]
2032
+ }
2033
+ >
2034
+ <Text
2035
+ style={
2036
+ Array [
2037
+ Object {
2038
+ "color": "#292a2b",
2039
+ "fontFamily": "BeVietnamPro-Regular",
2040
+ "fontSize": 14,
2041
+ "letterSpacing": 0.42,
2042
+ "lineHeight": 22,
2043
+ },
2044
+ Array [
2045
+ Object {
2046
+ "color": "#de350b",
2047
+ "fontSize": 14,
2048
+ },
2049
+ undefined,
2050
+ ],
2051
+ ]
2052
+ }
2053
+ themeFontSize="medium"
2054
+ themeFontWeight="regular"
2055
+ themeIntent="body"
2056
+ themeVariant="default"
2057
+ >
2058
+ *
2059
+ </Text>
2060
+ <Text
2061
+ style={
2062
+ Array [
2063
+ Object {
2064
+ "color": "#292a2b",
2065
+ "fontFamily": "BeVietnamPro-Regular",
2066
+ "fontSize": 14,
2067
+ "letterSpacing": 0.42,
2068
+ "lineHeight": 22,
2069
+ },
2070
+ Array [
2071
+ Object {
2072
+ "alignContent": "center",
2073
+ "alignItems": "center",
2074
+ "color": "#292a2b",
2075
+ "fontSize": 14,
2076
+ "textAlignVertical": "center",
2077
+ },
2078
+ undefined,
2079
+ ],
2080
+ ]
2081
+ }
2082
+ testID="input-label"
2083
+ themeFontSize="medium"
2084
+ themeFontWeight="regular"
2085
+ themeIntent="body"
2086
+ themeVariant="default"
2087
+ >
2088
+ Amount (AUD)
2089
+ </Text>
2090
+ </View>
2091
+ <TextInput
2092
+ accessibilityState={
2093
+ Object {
2094
+ "disabled": false,
2095
+ }
2096
+ }
2097
+ editable={true}
2098
+ onBlur={[Function]}
2099
+ onChangeText={[Function]}
2100
+ onFocus={[Function]}
2101
+ style={
2102
+ Array [
2103
+ Object {
2104
+ "alignSelf": "stretch",
2105
+ "flexGrow": 2,
2106
+ "fontSize": 14,
2107
+ "marginHorizontal": 8,
2108
+ "textAlignVertical": "center",
2109
+ },
2110
+ Object {
2111
+ "color": "#292a2b",
2112
+ },
2113
+ ]
2114
+ }
2115
+ testID="text-input"
2116
+ />
2117
+ </View>
2118
+ </View>
2119
+ <View
2120
+ style={
2121
+ Array [
2122
+ Object {
2123
+ "flex": 1,
2124
+ "flexDirection": "row",
2125
+ "justifyContent": "space-between",
2126
+ },
2127
+ undefined,
2128
+ ]
2129
+ }
2130
+ >
2131
+ <Text
2132
+ style={
2133
+ Array [
2134
+ Object {
2135
+ "color": "#292a2b",
2136
+ "fontFamily": "BeVietnamPro-Regular",
2137
+ "fontSize": 14,
2138
+ "letterSpacing": 0.42,
2139
+ "lineHeight": 22,
2140
+ },
2141
+ Array [
2142
+ Object {
2143
+ "fontSize": 12,
2144
+ "marginLeft": 4,
2145
+ },
2146
+ undefined,
2147
+ ],
2148
+ ]
2149
+ }
2150
+ themeFontSize="medium"
2151
+ themeFontWeight="regular"
2152
+ themeIntent="body"
2153
+ >
2154
+ This is helper text
2155
+ </Text>
2156
+ </View>
2157
+ </View>
2158
+ `;
2159
+
2160
+ exports[`TextInput readonly renders correctly 1`] = `
2161
+ <View
2162
+ pointerEvents="auto"
2163
+ style={
2164
+ Array [
2165
+ Object {
2166
+ "marginVertical": 8,
2167
+ "width": "100%",
2168
+ },
2169
+ undefined,
2170
+ ]
2171
+ }
2172
+ >
2173
+ <View
2174
+ style={
2175
+ Array [
2176
+ Object {
2177
+ "alignItems": "center",
2178
+ "flexDirection": "row",
2179
+ "padding": 16,
2180
+ },
2181
+ undefined,
2182
+ ]
2183
+ }
2184
+ >
2185
+ <View
2186
+ style={
2187
+ Array [
2188
+ Object {
2189
+ "borderColor": "#8b8d92",
2190
+ "borderRadius": 8,
2191
+ "borderWidth": 1,
2192
+ "bottom": 0,
2193
+ "left": 0,
2194
+ "position": "absolute",
2195
+ "right": 0,
2196
+ "top": 0,
2197
+ },
2198
+ undefined,
2199
+ ]
2200
+ }
2201
+ themeVariant="readonly"
2202
+ />
2203
+ <View
2204
+ pointerEvents="none"
2205
+ style={
2206
+ Array [
2207
+ Object {
2208
+ "backgroundColor": "#ffffff",
2209
+ "flexDirection": "row",
2210
+ "left": 16,
2211
+ "paddingHorizontal": 4,
2212
+ "position": "absolute",
2213
+ "top": -10,
2214
+ "zIndex": 1,
2215
+ },
2216
+ undefined,
2217
+ ]
2218
+ }
2219
+ >
2220
+ <Text
2221
+ style={
2222
+ Array [
2223
+ Object {
2224
+ "color": "#292a2b",
2225
+ "fontFamily": "BeVietnamPro-Regular",
2226
+ "fontSize": 12,
2227
+ "letterSpacing": 0.36,
2228
+ "lineHeight": 20,
2229
+ },
2230
+ Array [
2231
+ Object {
2232
+ "color": "#8b8d92",
2233
+ },
2234
+ undefined,
2235
+ ],
2236
+ ]
2237
+ }
2238
+ themeFontSize="small"
2239
+ themeFontWeight="regular"
2240
+ themeIntent="body"
2241
+ themeVariant="readonly"
2242
+ >
2243
+ *
2244
+ </Text>
2245
+ <Text
2246
+ style={
2247
+ Array [
2248
+ Object {
2249
+ "color": "#292a2b",
2250
+ "fontFamily": "BeVietnamPro-Regular",
2251
+ "fontSize": 12,
2252
+ "letterSpacing": 0.36,
2253
+ "lineHeight": 20,
2254
+ },
2255
+ Array [
2256
+ Object {
2257
+ "color": "#8b8d92",
2258
+ },
2259
+ undefined,
2260
+ ],
2261
+ ]
2262
+ }
2263
+ testID="input-label"
2264
+ themeFontSize="small"
2265
+ themeFontWeight="regular"
2266
+ themeIntent="body"
2267
+ themeVariant="readonly"
2268
+ >
2269
+ Amount (AUD)
2270
+ </Text>
2271
+ </View>
2272
+ <HeroIcon
2273
+ name="dollar-sign"
2274
+ style={
2275
+ Array [
2276
+ Object {
2277
+ "color": "#292a2b",
2278
+ "fontSize": 16,
2279
+ },
2280
+ undefined,
2281
+ ]
2282
+ }
2283
+ testID="input-prefix"
2284
+ themeIntent="text"
2285
+ themeSize="xsmall"
2286
+ />
2287
+ <View
2288
+ style={
2289
+ Array [
2290
+ Object {
2291
+ "alignItems": "center",
2292
+ "alignSelf": "stretch",
2293
+ "flexDirection": "row",
2294
+ "flexGrow": 2,
2295
+ },
2296
+ undefined,
2297
+ ]
2298
+ }
2299
+ >
2300
+ <TextInput
2301
+ accessibilityState={
2302
+ Object {
2303
+ "disabled": false,
2304
+ }
2305
+ }
2306
+ editable={false}
2307
+ onBlur={[Function]}
2308
+ onChangeText={[Function]}
2309
+ onFocus={[Function]}
2310
+ style={
2311
+ Array [
2312
+ Object {
2313
+ "alignSelf": "stretch",
2314
+ "flexGrow": 2,
2315
+ "fontSize": 14,
2316
+ "marginHorizontal": 8,
2317
+ "textAlignVertical": "center",
2318
+ },
2319
+ Object {
2320
+ "color": "#292a2b",
2321
+ },
2322
+ ]
2323
+ }
2324
+ testID="text-input"
2325
+ value="100"
2326
+ />
2327
+ </View>
2328
+ <HeroIcon
2329
+ name="arrow-down"
2330
+ style={
2331
+ Array [
2332
+ Object {
2333
+ "color": "#292a2b",
2334
+ "fontSize": 16,
2335
+ },
2336
+ undefined,
2337
+ ]
2338
+ }
2339
+ testID="input-suffix"
2340
+ themeIntent="text"
2341
+ themeSize="xsmall"
2342
+ />
2343
+ </View>
2344
+ <View
2345
+ style={
2346
+ Array [
2347
+ Object {
2348
+ "flex": 1,
2349
+ "flexDirection": "row",
2350
+ "justifyContent": "space-between",
2351
+ },
2352
+ undefined,
2353
+ ]
2354
+ }
2355
+ />
2356
+ </View>
2357
+ `;
2358
+
2359
+ exports[`TextInput required renders correctly 1`] = `
2360
+ <View
2361
+ pointerEvents="auto"
2362
+ style={
2363
+ Array [
2364
+ Object {
2365
+ "marginVertical": 8,
2366
+ "width": "100%",
2367
+ },
2368
+ undefined,
2369
+ ]
2370
+ }
2371
+ >
2372
+ <View
2373
+ style={
2374
+ Array [
2375
+ Object {
2376
+ "alignItems": "center",
2377
+ "flexDirection": "row",
2378
+ "padding": 16,
2379
+ },
2380
+ undefined,
2381
+ ]
2382
+ }
2383
+ >
2384
+ <View
2385
+ style={
2386
+ Array [
2387
+ Object {
2388
+ "borderColor": "#292a2b",
2389
+ "borderRadius": 8,
2390
+ "borderWidth": 1,
2391
+ "bottom": 0,
2392
+ "left": 0,
2393
+ "position": "absolute",
2394
+ "right": 0,
2395
+ "top": 0,
2396
+ },
2397
+ undefined,
2398
+ ]
2399
+ }
2400
+ themeVariant="default"
2401
+ />
2402
+ <HeroIcon
2403
+ name="dollar-sign"
2404
+ style={
2405
+ Array [
2406
+ Object {
2407
+ "color": "#292a2b",
2408
+ "fontSize": 16,
2409
+ },
2410
+ undefined,
2411
+ ]
2412
+ }
2413
+ testID="input-prefix"
2414
+ themeIntent="text"
2415
+ themeSize="xsmall"
2416
+ />
2417
+ <View
2418
+ style={
2419
+ Array [
2420
+ Object {
2421
+ "alignItems": "center",
2422
+ "alignSelf": "stretch",
2423
+ "flexDirection": "row",
2424
+ "flexGrow": 2,
2425
+ },
2426
+ undefined,
2427
+ ]
2428
+ }
2429
+ >
2430
+ <View
2431
+ pointerEvents="none"
2432
+ style={
2433
+ Array [
2434
+ Object {
2435
+ "alignItems": "center",
2436
+ "bottom": 0,
2437
+ "flexDirection": "row",
2438
+ "left": 0,
2439
+ "position": "absolute",
2440
+ "right": 0,
2441
+ "top": 0,
2442
+ "zIndex": 9999,
2443
+ },
2444
+ undefined,
2445
+ ]
2446
+ }
2447
+ >
2448
+ <Text
2449
+ style={
2450
+ Array [
2451
+ Object {
2452
+ "color": "#292a2b",
2453
+ "fontFamily": "BeVietnamPro-Regular",
2454
+ "fontSize": 14,
2455
+ "letterSpacing": 0.42,
2456
+ "lineHeight": 22,
2457
+ },
2458
+ Array [
2459
+ Object {
2460
+ "color": "#de350b",
2461
+ "fontSize": 14,
2462
+ },
2463
+ undefined,
2464
+ ],
2465
+ ]
2466
+ }
2467
+ themeFontSize="medium"
2468
+ themeFontWeight="regular"
2469
+ themeIntent="body"
2470
+ themeVariant="default"
2471
+ >
2472
+ *
2473
+ </Text>
2474
+ <Text
2475
+ style={
2476
+ Array [
2477
+ Object {
2478
+ "color": "#292a2b",
2479
+ "fontFamily": "BeVietnamPro-Regular",
2480
+ "fontSize": 14,
2481
+ "letterSpacing": 0.42,
2482
+ "lineHeight": 22,
2483
+ },
2484
+ Array [
2485
+ Object {
2486
+ "alignContent": "center",
2487
+ "alignItems": "center",
2488
+ "color": "#292a2b",
2489
+ "fontSize": 14,
2490
+ "textAlignVertical": "center",
2491
+ },
2492
+ undefined,
2493
+ ],
2494
+ ]
2495
+ }
2496
+ testID="input-label"
2497
+ themeFontSize="medium"
2498
+ themeFontWeight="regular"
2499
+ themeIntent="body"
2500
+ themeVariant="default"
2501
+ >
2502
+ Amount (AUD)
2503
+ </Text>
2504
+ </View>
2505
+ <TextInput
2506
+ accessibilityState={
2507
+ Object {
2508
+ "disabled": false,
2509
+ }
2510
+ }
2511
+ editable={true}
2512
+ onBlur={[Function]}
2513
+ onChangeText={[Function]}
2514
+ onFocus={[Function]}
2515
+ style={
2516
+ Array [
2517
+ Object {
2518
+ "alignSelf": "stretch",
2519
+ "flexGrow": 2,
2520
+ "fontSize": 14,
2521
+ "marginHorizontal": 8,
2522
+ "textAlignVertical": "center",
2523
+ },
2524
+ Object {
2525
+ "color": "#292a2b",
2526
+ },
2527
+ ]
2528
+ }
2529
+ testID="text-input"
2530
+ />
2531
+ </View>
2532
+ <HeroIcon
2533
+ name="arrow-down"
2534
+ style={
2535
+ Array [
2536
+ Object {
2537
+ "color": "#292a2b",
2538
+ "fontSize": 16,
2539
+ },
2540
+ undefined,
2541
+ ]
2542
+ }
2543
+ testID="input-suffix"
2544
+ themeIntent="text"
2545
+ themeSize="xsmall"
2546
+ />
2547
+ </View>
2548
+ <View
2549
+ style={
2550
+ Array [
2551
+ Object {
2552
+ "flex": 1,
2553
+ "flexDirection": "row",
2554
+ "justifyContent": "space-between",
2555
+ },
2556
+ undefined,
2557
+ ]
2558
+ }
2559
+ />
2560
+ </View>
2561
+ `;