@hero-design/rn 7.10.2 → 7.12.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 (103) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +3778 -728
  4. package/global-setup.js +3 -0
  5. package/jest.config.js +1 -0
  6. package/lib/assets/fonts/hero-icons.ttf +0 -0
  7. package/lib/index.js +3779 -726
  8. package/package.json +7 -3
  9. package/rollup.config.js +8 -1
  10. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  11. package/src/components/ContentNavigator/__tests__/index.spec.tsx +19 -2
  12. package/src/components/ContentNavigator/index.tsx +12 -1
  13. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  14. package/src/components/FAB/ActionGroup/index.tsx +16 -5
  15. package/src/components/Icon/HeroIcon/selection.json +1 -1
  16. package/src/components/Icon/IconList.ts +1 -0
  17. package/src/components/PinInput/PinCell.tsx +34 -0
  18. package/src/components/PinInput/StyledPinInput.tsx +88 -0
  19. package/src/components/PinInput/__tests__/PinCell.spec.tsx +48 -0
  20. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +22 -0
  21. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +186 -0
  22. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +58 -0
  23. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +1028 -0
  24. package/src/components/PinInput/__tests__/index.spec.tsx +91 -0
  25. package/src/components/PinInput/index.tsx +173 -0
  26. package/src/components/Select/MultiSelect/Option.tsx +1 -1
  27. package/src/components/Select/MultiSelect/OptionList.tsx +48 -26
  28. package/src/components/Select/MultiSelect/__tests__/OptionList.spec.tsx +13 -0
  29. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1062 -556
  30. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +983 -889
  31. package/src/components/Select/MultiSelect/index.tsx +59 -31
  32. package/src/components/Select/SingleSelect/OptionList.tsx +45 -26
  33. package/src/components/Select/SingleSelect/__tests__/OptionList.spec.tsx +8 -0
  34. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +992 -500
  35. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +880 -786
  36. package/src/components/Select/SingleSelect/index.tsx +60 -31
  37. package/src/components/Select/StyledOptionList.tsx +88 -0
  38. package/src/components/Select/StyledSelect.tsx +18 -16
  39. package/src/components/Select/__tests__/StyledSelect.spec.tsx +1 -14
  40. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +0 -13
  41. package/src/components/Select/types.tsx +47 -0
  42. package/src/components/TextInput/__tests__/index.spec.tsx +15 -0
  43. package/src/components/TextInput/index.tsx +20 -16
  44. package/src/components/TimePicker/StyledTimePicker.tsx +8 -0
  45. package/src/components/TimePicker/TimePickerAndroid.tsx +61 -0
  46. package/src/components/TimePicker/TimePickerIOS.tsx +91 -0
  47. package/src/components/TimePicker/__tests__/TimePicker.spec.tsx +34 -0
  48. package/src/components/TimePicker/__tests__/TimePickerAndroid.spec.tsx +39 -0
  49. package/src/components/TimePicker/__tests__/TimePickerIOS.spec.tsx +46 -0
  50. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +200 -0
  51. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +513 -0
  52. package/src/components/TimePicker/index.tsx +15 -0
  53. package/src/components/TimePicker/types.ts +50 -0
  54. package/src/components/Typography/Text/StyledText.tsx +1 -1
  55. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +1 -0
  56. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +22 -0
  57. package/src/components/Typography/Text/index.tsx +1 -1
  58. package/src/index.ts +4 -0
  59. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +44 -0
  60. package/src/theme/components/pinInput.ts +45 -0
  61. package/src/theme/components/select.ts +4 -0
  62. package/src/theme/components/timePicker.ts +11 -0
  63. package/src/theme/components/typography.ts +2 -0
  64. package/src/theme/global/colors.ts +1 -1
  65. package/src/theme/global/space.ts +10 -10
  66. package/src/theme/index.ts +9 -3
  67. package/testUtils/setup.tsx +10 -0
  68. package/types/components/ContentNavigator/index.d.ts +5 -1
  69. package/types/components/Icon/IconList.d.ts +1 -1
  70. package/types/components/Icon/utils.d.ts +1 -1
  71. package/types/components/PinInput/PinCell.d.ts +8 -0
  72. package/types/components/PinInput/StyledPinInput.d.ts +73 -0
  73. package/types/components/PinInput/__tests__/PinCell.spec.d.ts +1 -0
  74. package/types/components/PinInput/__tests__/StyledPinInput.spec.d.ts +1 -0
  75. package/types/components/PinInput/__tests__/index.spec.d.ts +1 -0
  76. package/types/components/PinInput/index.d.ts +48 -0
  77. package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
  78. package/types/components/Select/MultiSelect/index.d.ts +3 -25
  79. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  80. package/types/components/Select/SingleSelect/index.d.ts +4 -26
  81. package/types/components/Select/StyledOptionList.d.ts +17 -0
  82. package/types/components/Select/StyledSelect.d.ts +7 -7
  83. package/types/components/Select/index.d.ts +1 -1
  84. package/types/components/Select/types.d.ts +44 -0
  85. package/types/components/TimePicker/StyledTimePicker.d.ts +8 -0
  86. package/types/components/TimePicker/TimePickerAndroid.d.ts +3 -0
  87. package/types/components/TimePicker/TimePickerIOS.d.ts +3 -0
  88. package/types/components/TimePicker/__tests__/TimePicker.spec.d.ts +1 -0
  89. package/types/components/TimePicker/__tests__/TimePickerAndroid.spec.d.ts +1 -0
  90. package/types/components/TimePicker/__tests__/TimePickerIOS.spec.d.ts +1 -0
  91. package/types/components/TimePicker/index.d.ts +3 -0
  92. package/types/components/TimePicker/types.d.ts +49 -0
  93. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  94. package/types/components/Typography/Text/index.d.ts +1 -1
  95. package/types/index.d.ts +3 -1
  96. package/types/theme/components/pinInput.d.ts +35 -0
  97. package/types/theme/components/select.d.ts +4 -0
  98. package/types/theme/components/timePicker.d.ts +6 -0
  99. package/types/theme/components/typography.d.ts +2 -0
  100. package/types/theme/index.d.ts +6 -2
  101. package/src/components/Select/types.ts +0 -1
  102. package/src/components/TextInput/__tests__/.log/ti-10343.log +0 -62
  103. package/src/components/TextInput/__tests__/.log/tsserver.log +0 -15584
@@ -0,0 +1,1028 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`rendering renders correctly 1`] = `
4
+ <View
5
+ style={
6
+ Array [
7
+ Object {
8
+ "alignContent": "flex-start",
9
+ },
10
+ undefined,
11
+ ]
12
+ }
13
+ >
14
+ <View
15
+ style={
16
+ Array [
17
+ Object {
18
+ "flexDirection": "row",
19
+ },
20
+ undefined,
21
+ ]
22
+ }
23
+ >
24
+ <View
25
+ style={
26
+ Array [
27
+ Object {
28
+ "alignItems": "center",
29
+ "borderColor": "#292a2b",
30
+ "borderRadius": 8,
31
+ "borderWidth": 1,
32
+ "height": 48,
33
+ "justifyContent": "center",
34
+ "width": 40,
35
+ },
36
+ undefined,
37
+ ]
38
+ }
39
+ themeFocused={false}
40
+ themeState="default"
41
+ >
42
+ <View
43
+ style={
44
+ Array [
45
+ Object {
46
+ "backgroundColor": "#292a2b",
47
+ "borderColor": "#292a2b",
48
+ "borderRadius": 999,
49
+ "borderWidth": 1,
50
+ "height": 16,
51
+ "width": 16,
52
+ },
53
+ undefined,
54
+ ]
55
+ }
56
+ testID="pin-cell-filled-mask"
57
+ themeState="default"
58
+ />
59
+ </View>
60
+ <View
61
+ style={
62
+ Array [
63
+ Object {
64
+ "marginLeft": 16,
65
+ },
66
+ undefined,
67
+ ]
68
+ }
69
+ />
70
+ <View
71
+ style={
72
+ Array [
73
+ Object {
74
+ "alignItems": "center",
75
+ "borderColor": "#292a2b",
76
+ "borderRadius": 8,
77
+ "borderWidth": 1,
78
+ "height": 48,
79
+ "justifyContent": "center",
80
+ "width": 40,
81
+ },
82
+ undefined,
83
+ ]
84
+ }
85
+ themeFocused={false}
86
+ themeState="default"
87
+ >
88
+ <View
89
+ style={
90
+ Array [
91
+ Object {
92
+ "backgroundColor": "#292a2b",
93
+ "borderColor": "#292a2b",
94
+ "borderRadius": 999,
95
+ "borderWidth": 1,
96
+ "height": 16,
97
+ "width": 16,
98
+ },
99
+ undefined,
100
+ ]
101
+ }
102
+ testID="pin-cell-filled-mask"
103
+ themeState="default"
104
+ />
105
+ </View>
106
+ <View
107
+ style={
108
+ Array [
109
+ Object {
110
+ "marginLeft": 16,
111
+ },
112
+ undefined,
113
+ ]
114
+ }
115
+ />
116
+ <View
117
+ style={
118
+ Array [
119
+ Object {
120
+ "alignItems": "center",
121
+ "borderColor": "#292a2b",
122
+ "borderRadius": 8,
123
+ "borderWidth": 1,
124
+ "height": 48,
125
+ "justifyContent": "center",
126
+ "width": 40,
127
+ },
128
+ undefined,
129
+ ]
130
+ }
131
+ themeFocused={false}
132
+ themeState="default"
133
+ >
134
+ <View
135
+ style={
136
+ Array [
137
+ Object {
138
+ "borderColor": "#292a2b",
139
+ "borderRadius": 999,
140
+ "borderWidth": 1,
141
+ "height": 16,
142
+ "width": 16,
143
+ },
144
+ undefined,
145
+ ]
146
+ }
147
+ testID="pin-cell-mask"
148
+ themeState="default"
149
+ />
150
+ </View>
151
+ <View
152
+ style={
153
+ Array [
154
+ Object {
155
+ "marginLeft": 16,
156
+ },
157
+ undefined,
158
+ ]
159
+ }
160
+ />
161
+ <View
162
+ style={
163
+ Array [
164
+ Object {
165
+ "alignItems": "center",
166
+ "borderColor": "#292a2b",
167
+ "borderRadius": 8,
168
+ "borderWidth": 1,
169
+ "height": 48,
170
+ "justifyContent": "center",
171
+ "width": 40,
172
+ },
173
+ undefined,
174
+ ]
175
+ }
176
+ themeFocused={false}
177
+ themeState="default"
178
+ >
179
+ <View
180
+ style={
181
+ Array [
182
+ Object {
183
+ "borderColor": "#292a2b",
184
+ "borderRadius": 999,
185
+ "borderWidth": 1,
186
+ "height": 16,
187
+ "width": 16,
188
+ },
189
+ undefined,
190
+ ]
191
+ }
192
+ testID="pin-cell-mask"
193
+ themeState="default"
194
+ />
195
+ </View>
196
+ </View>
197
+ <TextInput
198
+ autoFocus={false}
199
+ caretHidden={true}
200
+ contextMenuHidden={true}
201
+ editable={true}
202
+ keyboardType="numeric"
203
+ maxLength={4}
204
+ onBlur={[Function]}
205
+ onChangeText={[Function]}
206
+ onFocus={[Function]}
207
+ secureTextEntry={true}
208
+ style={
209
+ Array [
210
+ Object {
211
+ "height": "100%",
212
+ "left": 0,
213
+ "opacity": 0,
214
+ "position": "absolute",
215
+ "top": 0,
216
+ "width": 208,
217
+ },
218
+ undefined,
219
+ ]
220
+ }
221
+ testID="pin-hidden-input"
222
+ themePinLength={4}
223
+ value="12"
224
+ />
225
+ </View>
226
+ `;
227
+
228
+ exports[`rendering renders correctly when disabled 1`] = `
229
+ <View
230
+ style={
231
+ Array [
232
+ Object {
233
+ "alignContent": "flex-start",
234
+ },
235
+ undefined,
236
+ ]
237
+ }
238
+ >
239
+ <View
240
+ style={
241
+ Array [
242
+ Object {
243
+ "flexDirection": "row",
244
+ },
245
+ undefined,
246
+ ]
247
+ }
248
+ >
249
+ <View
250
+ style={
251
+ Array [
252
+ Object {
253
+ "alignItems": "center",
254
+ "borderColor": "#bfc1c5",
255
+ "borderRadius": 8,
256
+ "borderWidth": 1,
257
+ "height": 48,
258
+ "justifyContent": "center",
259
+ "width": 40,
260
+ },
261
+ undefined,
262
+ ]
263
+ }
264
+ themeFocused={false}
265
+ themeState="disabled"
266
+ >
267
+ <View
268
+ style={
269
+ Array [
270
+ Object {
271
+ "backgroundColor": "#bfc1c5",
272
+ "borderColor": "#bfc1c5",
273
+ "borderRadius": 999,
274
+ "borderWidth": 1,
275
+ "height": 16,
276
+ "width": 16,
277
+ },
278
+ undefined,
279
+ ]
280
+ }
281
+ testID="pin-cell-filled-mask"
282
+ themeState="disabled"
283
+ />
284
+ </View>
285
+ <View
286
+ style={
287
+ Array [
288
+ Object {
289
+ "marginLeft": 16,
290
+ },
291
+ undefined,
292
+ ]
293
+ }
294
+ />
295
+ <View
296
+ style={
297
+ Array [
298
+ Object {
299
+ "alignItems": "center",
300
+ "borderColor": "#bfc1c5",
301
+ "borderRadius": 8,
302
+ "borderWidth": 1,
303
+ "height": 48,
304
+ "justifyContent": "center",
305
+ "width": 40,
306
+ },
307
+ undefined,
308
+ ]
309
+ }
310
+ themeFocused={false}
311
+ themeState="disabled"
312
+ >
313
+ <View
314
+ style={
315
+ Array [
316
+ Object {
317
+ "backgroundColor": "#bfc1c5",
318
+ "borderColor": "#bfc1c5",
319
+ "borderRadius": 999,
320
+ "borderWidth": 1,
321
+ "height": 16,
322
+ "width": 16,
323
+ },
324
+ undefined,
325
+ ]
326
+ }
327
+ testID="pin-cell-filled-mask"
328
+ themeState="disabled"
329
+ />
330
+ </View>
331
+ <View
332
+ style={
333
+ Array [
334
+ Object {
335
+ "marginLeft": 16,
336
+ },
337
+ undefined,
338
+ ]
339
+ }
340
+ />
341
+ <View
342
+ style={
343
+ Array [
344
+ Object {
345
+ "alignItems": "center",
346
+ "borderColor": "#bfc1c5",
347
+ "borderRadius": 8,
348
+ "borderWidth": 1,
349
+ "height": 48,
350
+ "justifyContent": "center",
351
+ "width": 40,
352
+ },
353
+ undefined,
354
+ ]
355
+ }
356
+ themeFocused={false}
357
+ themeState="disabled"
358
+ >
359
+ <View
360
+ style={
361
+ Array [
362
+ Object {
363
+ "borderColor": "#bfc1c5",
364
+ "borderRadius": 999,
365
+ "borderWidth": 1,
366
+ "height": 16,
367
+ "width": 16,
368
+ },
369
+ undefined,
370
+ ]
371
+ }
372
+ testID="pin-cell-mask"
373
+ themeState="disabled"
374
+ />
375
+ </View>
376
+ <View
377
+ style={
378
+ Array [
379
+ Object {
380
+ "marginLeft": 16,
381
+ },
382
+ undefined,
383
+ ]
384
+ }
385
+ />
386
+ <View
387
+ style={
388
+ Array [
389
+ Object {
390
+ "alignItems": "center",
391
+ "borderColor": "#bfc1c5",
392
+ "borderRadius": 8,
393
+ "borderWidth": 1,
394
+ "height": 48,
395
+ "justifyContent": "center",
396
+ "width": 40,
397
+ },
398
+ undefined,
399
+ ]
400
+ }
401
+ themeFocused={false}
402
+ themeState="disabled"
403
+ >
404
+ <View
405
+ style={
406
+ Array [
407
+ Object {
408
+ "borderColor": "#bfc1c5",
409
+ "borderRadius": 999,
410
+ "borderWidth": 1,
411
+ "height": 16,
412
+ "width": 16,
413
+ },
414
+ undefined,
415
+ ]
416
+ }
417
+ testID="pin-cell-mask"
418
+ themeState="disabled"
419
+ />
420
+ </View>
421
+ </View>
422
+ <TextInput
423
+ autoFocus={false}
424
+ caretHidden={true}
425
+ contextMenuHidden={true}
426
+ editable={false}
427
+ keyboardType="numeric"
428
+ maxLength={4}
429
+ onBlur={[Function]}
430
+ onChangeText={[Function]}
431
+ onFocus={[Function]}
432
+ secureTextEntry={true}
433
+ style={
434
+ Array [
435
+ Object {
436
+ "height": "100%",
437
+ "left": 0,
438
+ "opacity": 0,
439
+ "position": "absolute",
440
+ "top": 0,
441
+ "width": 208,
442
+ },
443
+ undefined,
444
+ ]
445
+ }
446
+ testID="pin-hidden-input"
447
+ themePinLength={4}
448
+ value="12"
449
+ />
450
+ </View>
451
+ `;
452
+
453
+ exports[`rendering renders correctly when length is 6 and secure is false 1`] = `
454
+ <View
455
+ style={
456
+ Array [
457
+ Object {
458
+ "alignContent": "flex-start",
459
+ },
460
+ undefined,
461
+ ]
462
+ }
463
+ >
464
+ <View
465
+ style={
466
+ Array [
467
+ Object {
468
+ "flexDirection": "row",
469
+ },
470
+ undefined,
471
+ ]
472
+ }
473
+ >
474
+ <View
475
+ style={
476
+ Array [
477
+ Object {
478
+ "alignItems": "center",
479
+ "borderColor": "#292a2b",
480
+ "borderRadius": 8,
481
+ "borderWidth": 1,
482
+ "height": 48,
483
+ "justifyContent": "center",
484
+ "width": 40,
485
+ },
486
+ undefined,
487
+ ]
488
+ }
489
+ themeFocused={false}
490
+ themeState="default"
491
+ >
492
+ <Text
493
+ style={
494
+ Array [
495
+ Object {
496
+ "color": "#292a2b",
497
+ "fontFamily": "BeVietnamPro-SemiBold",
498
+ "fontSize": 28,
499
+ },
500
+ undefined,
501
+ ]
502
+ }
503
+ themeState="default"
504
+ >
505
+ 1
506
+ </Text>
507
+ </View>
508
+ <View
509
+ style={
510
+ Array [
511
+ Object {
512
+ "marginLeft": 16,
513
+ },
514
+ undefined,
515
+ ]
516
+ }
517
+ />
518
+ <View
519
+ style={
520
+ Array [
521
+ Object {
522
+ "alignItems": "center",
523
+ "borderColor": "#292a2b",
524
+ "borderRadius": 8,
525
+ "borderWidth": 1,
526
+ "height": 48,
527
+ "justifyContent": "center",
528
+ "width": 40,
529
+ },
530
+ undefined,
531
+ ]
532
+ }
533
+ themeFocused={false}
534
+ themeState="default"
535
+ >
536
+ <Text
537
+ style={
538
+ Array [
539
+ Object {
540
+ "color": "#292a2b",
541
+ "fontFamily": "BeVietnamPro-SemiBold",
542
+ "fontSize": 28,
543
+ },
544
+ undefined,
545
+ ]
546
+ }
547
+ themeState="default"
548
+ >
549
+ 2
550
+ </Text>
551
+ </View>
552
+ <View
553
+ style={
554
+ Array [
555
+ Object {
556
+ "marginLeft": 16,
557
+ },
558
+ undefined,
559
+ ]
560
+ }
561
+ />
562
+ <View
563
+ style={
564
+ Array [
565
+ Object {
566
+ "alignItems": "center",
567
+ "borderColor": "#292a2b",
568
+ "borderRadius": 8,
569
+ "borderWidth": 1,
570
+ "height": 48,
571
+ "justifyContent": "center",
572
+ "width": 40,
573
+ },
574
+ undefined,
575
+ ]
576
+ }
577
+ themeFocused={false}
578
+ themeState="default"
579
+ >
580
+ <Text
581
+ style={
582
+ Array [
583
+ Object {
584
+ "color": "#292a2b",
585
+ "fontFamily": "BeVietnamPro-SemiBold",
586
+ "fontSize": 28,
587
+ },
588
+ undefined,
589
+ ]
590
+ }
591
+ themeState="default"
592
+ >
593
+ 3
594
+ </Text>
595
+ </View>
596
+ <View
597
+ style={
598
+ Array [
599
+ Object {
600
+ "marginLeft": 16,
601
+ },
602
+ undefined,
603
+ ]
604
+ }
605
+ />
606
+ <View
607
+ style={
608
+ Array [
609
+ Object {
610
+ "alignItems": "center",
611
+ "borderColor": "#292a2b",
612
+ "borderRadius": 8,
613
+ "borderWidth": 1,
614
+ "height": 48,
615
+ "justifyContent": "center",
616
+ "width": 40,
617
+ },
618
+ undefined,
619
+ ]
620
+ }
621
+ themeFocused={false}
622
+ themeState="default"
623
+ >
624
+ <View
625
+ style={
626
+ Array [
627
+ Object {
628
+ "borderColor": "#292a2b",
629
+ "borderRadius": 999,
630
+ "borderWidth": 1,
631
+ "height": 16,
632
+ "width": 16,
633
+ },
634
+ undefined,
635
+ ]
636
+ }
637
+ testID="pin-cell-mask"
638
+ themeState="default"
639
+ />
640
+ </View>
641
+ <View
642
+ style={
643
+ Array [
644
+ Object {
645
+ "marginLeft": 16,
646
+ },
647
+ undefined,
648
+ ]
649
+ }
650
+ />
651
+ <View
652
+ style={
653
+ Array [
654
+ Object {
655
+ "alignItems": "center",
656
+ "borderColor": "#292a2b",
657
+ "borderRadius": 8,
658
+ "borderWidth": 1,
659
+ "height": 48,
660
+ "justifyContent": "center",
661
+ "width": 40,
662
+ },
663
+ undefined,
664
+ ]
665
+ }
666
+ themeFocused={false}
667
+ themeState="default"
668
+ >
669
+ <View
670
+ style={
671
+ Array [
672
+ Object {
673
+ "borderColor": "#292a2b",
674
+ "borderRadius": 999,
675
+ "borderWidth": 1,
676
+ "height": 16,
677
+ "width": 16,
678
+ },
679
+ undefined,
680
+ ]
681
+ }
682
+ testID="pin-cell-mask"
683
+ themeState="default"
684
+ />
685
+ </View>
686
+ <View
687
+ style={
688
+ Array [
689
+ Object {
690
+ "marginLeft": 16,
691
+ },
692
+ undefined,
693
+ ]
694
+ }
695
+ />
696
+ <View
697
+ style={
698
+ Array [
699
+ Object {
700
+ "alignItems": "center",
701
+ "borderColor": "#292a2b",
702
+ "borderRadius": 8,
703
+ "borderWidth": 1,
704
+ "height": 48,
705
+ "justifyContent": "center",
706
+ "width": 40,
707
+ },
708
+ undefined,
709
+ ]
710
+ }
711
+ themeFocused={false}
712
+ themeState="default"
713
+ >
714
+ <View
715
+ style={
716
+ Array [
717
+ Object {
718
+ "borderColor": "#292a2b",
719
+ "borderRadius": 999,
720
+ "borderWidth": 1,
721
+ "height": 16,
722
+ "width": 16,
723
+ },
724
+ undefined,
725
+ ]
726
+ }
727
+ testID="pin-cell-mask"
728
+ themeState="default"
729
+ />
730
+ </View>
731
+ </View>
732
+ <TextInput
733
+ autoFocus={false}
734
+ caretHidden={true}
735
+ contextMenuHidden={true}
736
+ editable={true}
737
+ keyboardType="numeric"
738
+ maxLength={6}
739
+ onBlur={[Function]}
740
+ onChangeText={[Function]}
741
+ onFocus={[Function]}
742
+ secureTextEntry={false}
743
+ style={
744
+ Array [
745
+ Object {
746
+ "height": "100%",
747
+ "left": 0,
748
+ "opacity": 0,
749
+ "position": "absolute",
750
+ "top": 0,
751
+ "width": 320,
752
+ },
753
+ undefined,
754
+ ]
755
+ }
756
+ testID="pin-hidden-input"
757
+ themePinLength={6}
758
+ value="123"
759
+ />
760
+ </View>
761
+ `;
762
+
763
+ exports[`rendering renders correctly when there is error 1`] = `
764
+ <View
765
+ style={
766
+ Array [
767
+ Object {
768
+ "alignContent": "flex-start",
769
+ },
770
+ undefined,
771
+ ]
772
+ }
773
+ >
774
+ <View
775
+ style={
776
+ Array [
777
+ Object {
778
+ "flexDirection": "row",
779
+ },
780
+ undefined,
781
+ ]
782
+ }
783
+ >
784
+ <View
785
+ style={
786
+ Array [
787
+ Object {
788
+ "alignItems": "center",
789
+ "borderColor": "#de350b",
790
+ "borderRadius": 8,
791
+ "borderWidth": 1,
792
+ "height": 48,
793
+ "justifyContent": "center",
794
+ "width": 40,
795
+ },
796
+ undefined,
797
+ ]
798
+ }
799
+ themeFocused={false}
800
+ themeState="error"
801
+ >
802
+ <View
803
+ style={
804
+ Array [
805
+ Object {
806
+ "backgroundColor": "#de350b",
807
+ "borderColor": "#de350b",
808
+ "borderRadius": 999,
809
+ "borderWidth": 1,
810
+ "height": 16,
811
+ "width": 16,
812
+ },
813
+ undefined,
814
+ ]
815
+ }
816
+ testID="pin-cell-filled-mask"
817
+ themeState="error"
818
+ />
819
+ </View>
820
+ <View
821
+ style={
822
+ Array [
823
+ Object {
824
+ "marginLeft": 16,
825
+ },
826
+ undefined,
827
+ ]
828
+ }
829
+ />
830
+ <View
831
+ style={
832
+ Array [
833
+ Object {
834
+ "alignItems": "center",
835
+ "borderColor": "#de350b",
836
+ "borderRadius": 8,
837
+ "borderWidth": 1,
838
+ "height": 48,
839
+ "justifyContent": "center",
840
+ "width": 40,
841
+ },
842
+ undefined,
843
+ ]
844
+ }
845
+ themeFocused={false}
846
+ themeState="error"
847
+ >
848
+ <View
849
+ style={
850
+ Array [
851
+ Object {
852
+ "backgroundColor": "#de350b",
853
+ "borderColor": "#de350b",
854
+ "borderRadius": 999,
855
+ "borderWidth": 1,
856
+ "height": 16,
857
+ "width": 16,
858
+ },
859
+ undefined,
860
+ ]
861
+ }
862
+ testID="pin-cell-filled-mask"
863
+ themeState="error"
864
+ />
865
+ </View>
866
+ <View
867
+ style={
868
+ Array [
869
+ Object {
870
+ "marginLeft": 16,
871
+ },
872
+ undefined,
873
+ ]
874
+ }
875
+ />
876
+ <View
877
+ style={
878
+ Array [
879
+ Object {
880
+ "alignItems": "center",
881
+ "borderColor": "#de350b",
882
+ "borderRadius": 8,
883
+ "borderWidth": 1,
884
+ "height": 48,
885
+ "justifyContent": "center",
886
+ "width": 40,
887
+ },
888
+ undefined,
889
+ ]
890
+ }
891
+ themeFocused={false}
892
+ themeState="error"
893
+ >
894
+ <View
895
+ style={
896
+ Array [
897
+ Object {
898
+ "borderColor": "#de350b",
899
+ "borderRadius": 999,
900
+ "borderWidth": 1,
901
+ "height": 16,
902
+ "width": 16,
903
+ },
904
+ undefined,
905
+ ]
906
+ }
907
+ testID="pin-cell-mask"
908
+ themeState="error"
909
+ />
910
+ </View>
911
+ <View
912
+ style={
913
+ Array [
914
+ Object {
915
+ "marginLeft": 16,
916
+ },
917
+ undefined,
918
+ ]
919
+ }
920
+ />
921
+ <View
922
+ style={
923
+ Array [
924
+ Object {
925
+ "alignItems": "center",
926
+ "borderColor": "#de350b",
927
+ "borderRadius": 8,
928
+ "borderWidth": 1,
929
+ "height": 48,
930
+ "justifyContent": "center",
931
+ "width": 40,
932
+ },
933
+ undefined,
934
+ ]
935
+ }
936
+ themeFocused={false}
937
+ themeState="error"
938
+ >
939
+ <View
940
+ style={
941
+ Array [
942
+ Object {
943
+ "borderColor": "#de350b",
944
+ "borderRadius": 999,
945
+ "borderWidth": 1,
946
+ "height": 16,
947
+ "width": 16,
948
+ },
949
+ undefined,
950
+ ]
951
+ }
952
+ testID="pin-cell-mask"
953
+ themeState="error"
954
+ />
955
+ </View>
956
+ </View>
957
+ <View
958
+ style={
959
+ Array [
960
+ Object {
961
+ "flexDirection": "row",
962
+ "paddingTop": 4,
963
+ },
964
+ undefined,
965
+ ]
966
+ }
967
+ >
968
+ <HeroIcon
969
+ name="circle-info"
970
+ style={
971
+ Array [
972
+ Object {
973
+ "color": "#de350b",
974
+ "fontSize": 16,
975
+ },
976
+ undefined,
977
+ ]
978
+ }
979
+ testID="pin-error-icon"
980
+ themeIntent="danger"
981
+ themeSize="xsmall"
982
+ />
983
+ <Text
984
+ style={
985
+ Array [
986
+ Object {
987
+ "color": "#de350b",
988
+ "fontFamily": "BeVietnamPro-Regular",
989
+ "fontSize": 12,
990
+ "paddingLeft": 4,
991
+ },
992
+ undefined,
993
+ ]
994
+ }
995
+ >
996
+ PIN is not correct
997
+ </Text>
998
+ </View>
999
+ <TextInput
1000
+ autoFocus={false}
1001
+ caretHidden={true}
1002
+ contextMenuHidden={true}
1003
+ editable={true}
1004
+ keyboardType="numeric"
1005
+ maxLength={4}
1006
+ onBlur={[Function]}
1007
+ onChangeText={[Function]}
1008
+ onFocus={[Function]}
1009
+ secureTextEntry={true}
1010
+ style={
1011
+ Array [
1012
+ Object {
1013
+ "height": "100%",
1014
+ "left": 0,
1015
+ "opacity": 0,
1016
+ "position": "absolute",
1017
+ "top": 0,
1018
+ "width": 208,
1019
+ },
1020
+ undefined,
1021
+ ]
1022
+ }
1023
+ testID="pin-hidden-input"
1024
+ themePinLength={4}
1025
+ value="12"
1026
+ />
1027
+ </View>
1028
+ `;