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