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