@hero-design/rn 8.12.0 → 8.12.2

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 (56) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/es/index.js +121 -34
  3. package/lib/index.js +120 -33
  4. package/package.json +5 -5
  5. package/src/components/Button/Button.tsx +42 -2
  6. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +1 -1
  7. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +1 -1
  8. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  9. package/src/components/Button/StyledButton.tsx +21 -14
  10. package/src/components/Button/__tests__/Button.spec.tsx +46 -1
  11. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1564 -0
  12. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +126 -110
  13. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +24 -22
  14. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +17 -3
  15. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +29 -12
  16. package/src/components/FAB/ActionGroup/ActionItem.tsx +17 -6
  17. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +15 -17
  18. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +170 -160
  19. package/src/components/FAB/FAB.tsx +3 -1
  20. package/src/components/List/BasicListItem.tsx +6 -0
  21. package/src/components/List/ListItem.tsx +6 -0
  22. package/src/components/List/StyledBasicListItem.tsx +2 -2
  23. package/src/components/List/StyledListItem.tsx +2 -2
  24. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +22 -18
  25. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +32 -28
  26. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +44 -36
  27. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -46
  28. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +22 -18
  29. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +33 -27
  30. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
  31. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -9
  32. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +132 -108
  33. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +268 -166
  34. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -9
  35. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +132 -108
  36. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +232 -139
  37. package/src/components/TextInput/StyledTextInput.tsx +3 -0
  38. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +466 -28
  39. package/src/components/TextInput/__tests__/index.spec.tsx +32 -0
  40. package/src/components/TextInput/index.tsx +32 -4
  41. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +34 -6
  42. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +46 -15
  43. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +18 -0
  44. package/src/theme/components/button.ts +16 -2
  45. package/src/theme/components/fab.ts +2 -0
  46. package/src/theme/components/textInput.ts +1 -0
  47. package/src/theme/global/borders.ts +2 -0
  48. package/types/components/Button/Button.d.ts +1 -1
  49. package/types/components/Button/StyledButton.d.ts +4 -3
  50. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +3 -3
  51. package/types/components/List/StyledBasicListItem.d.ts +3 -3
  52. package/types/components/List/StyledListItem.d.ts +3 -3
  53. package/types/theme/components/button.d.ts +14 -0
  54. package/types/theme/components/fab.d.ts +2 -0
  55. package/types/theme/components/textInput.d.ts +1 -0
  56. package/types/theme/global/borders.d.ts +1 -0
@@ -1,5 +1,282 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`TextInput backgroundColor renders correctly 1`] = `
4
+ <View
5
+ pointerEvents="auto"
6
+ style={
7
+ Array [
8
+ Object {
9
+ "marginTop": 8,
10
+ "width": "100%",
11
+ },
12
+ Object {},
13
+ ]
14
+ }
15
+ >
16
+ <View
17
+ style={
18
+ Array [
19
+ Object {
20
+ "alignItems": "center",
21
+ "backgroundColor": "#ffffff",
22
+ "borderRadius": 8,
23
+ "flexDirection": "row",
24
+ "padding": 16,
25
+ },
26
+ undefined,
27
+ ]
28
+ }
29
+ >
30
+ <View
31
+ style={
32
+ Array [
33
+ Object {
34
+ "borderColor": "#001f23",
35
+ "borderRadius": 8,
36
+ "borderWidth": 1,
37
+ "bottom": 0,
38
+ "left": 0,
39
+ "position": "absolute",
40
+ "right": 0,
41
+ "top": 0,
42
+ },
43
+ Array [
44
+ Object {
45
+ "backgroundColor": "#f6f6f7",
46
+ },
47
+ undefined,
48
+ ],
49
+ ]
50
+ }
51
+ testID="text-input-border"
52
+ themeFocused={false}
53
+ themeVariant="filled"
54
+ />
55
+ <View
56
+ pointerEvents="none"
57
+ style={
58
+ Array [
59
+ Object {
60
+ "backgroundColor": "#ffffff",
61
+ "flexDirection": "row",
62
+ "left": 16,
63
+ "paddingHorizontal": 4,
64
+ "position": "absolute",
65
+ "top": -10,
66
+ "zIndex": 1,
67
+ },
68
+ Object {
69
+ "backgroundColor": "#f6f6f7",
70
+ },
71
+ ]
72
+ }
73
+ testID="label-container"
74
+ >
75
+ <Text
76
+ style={
77
+ Array [
78
+ Object {
79
+ "color": "#001f23",
80
+ "fontFamily": "BeVietnamPro-Regular",
81
+ "fontSize": 12,
82
+ "letterSpacing": 0.36,
83
+ "lineHeight": 20,
84
+ },
85
+ Array [
86
+ Object {
87
+ "color": "#de350b",
88
+ },
89
+ undefined,
90
+ ],
91
+ ]
92
+ }
93
+ themeFontSize="small"
94
+ themeFontWeight="regular"
95
+ themeIntent="body"
96
+ themeTypeface="neutral"
97
+ themeVariant="filled"
98
+ >
99
+ *
100
+ </Text>
101
+ <Text
102
+ style={
103
+ Array [
104
+ Object {
105
+ "color": "#001f23",
106
+ "fontFamily": "BeVietnamPro-Regular",
107
+ "fontSize": 12,
108
+ "letterSpacing": 0.36,
109
+ "lineHeight": 20,
110
+ },
111
+ Array [
112
+ Object {
113
+ "color": "#001f23",
114
+ },
115
+ Object {
116
+ "backgroundColor": "#f6f6f7",
117
+ },
118
+ ],
119
+ ]
120
+ }
121
+ testID="input-label"
122
+ themeFontSize="small"
123
+ themeFontWeight="regular"
124
+ themeIntent="body"
125
+ themeTypeface="neutral"
126
+ themeVariant="filled"
127
+ >
128
+ Amount (AUD)
129
+ </Text>
130
+ </View>
131
+ <HeroIcon
132
+ name="dollar-sign"
133
+ style={
134
+ Array [
135
+ Object {
136
+ "color": "#001f23",
137
+ "fontSize": 16,
138
+ },
139
+ undefined,
140
+ ]
141
+ }
142
+ testID="input-prefix"
143
+ themeIntent="text"
144
+ themeSize="xsmall"
145
+ />
146
+ <View
147
+ style={
148
+ Array [
149
+ Object {
150
+ "alignItems": "center",
151
+ "alignSelf": "stretch",
152
+ "flexDirection": "row",
153
+ "flexGrow": 2,
154
+ "flexShrink": 1,
155
+ },
156
+ undefined,
157
+ ]
158
+ }
159
+ >
160
+ <TextInput
161
+ accessibilityState={
162
+ Object {
163
+ "disabled": false,
164
+ }
165
+ }
166
+ defaultValue="1000"
167
+ editable={true}
168
+ maxLength={255}
169
+ onBlur={[Function]}
170
+ onChangeText={[Function]}
171
+ onFocus={[Function]}
172
+ placeholder=" "
173
+ style={
174
+ Array [
175
+ Object {
176
+ "alignSelf": "stretch",
177
+ "flexGrow": 2,
178
+ "fontSize": 14,
179
+ "marginHorizontal": 8,
180
+ "paddingVertical": 0,
181
+ "textAlignVertical": "center",
182
+ },
183
+ Object {
184
+ "backgroundColor": "#f6f6f7",
185
+ "color": "#001f23",
186
+ },
187
+ ]
188
+ }
189
+ testID="text-input"
190
+ value="2000"
191
+ />
192
+ </View>
193
+ </View>
194
+ <View
195
+ style={
196
+ Array [
197
+ Object {
198
+ "minHeight": 16,
199
+ "paddingLeft": 16,
200
+ },
201
+ undefined,
202
+ ]
203
+ }
204
+ >
205
+ <View
206
+ style={
207
+ Array [
208
+ Object {
209
+ "flexDirection": "row",
210
+ "justifyContent": "space-between",
211
+ },
212
+ undefined,
213
+ ]
214
+ }
215
+ >
216
+ <Text
217
+ style={
218
+ Array [
219
+ Object {
220
+ "color": "#001f23",
221
+ "fontFamily": "BeVietnamPro-Regular",
222
+ "fontSize": 14,
223
+ "letterSpacing": 0.42,
224
+ "lineHeight": 22,
225
+ },
226
+ Array [
227
+ Object {
228
+ "fontSize": 12,
229
+ },
230
+ undefined,
231
+ ],
232
+ ]
233
+ }
234
+ themeFontSize="medium"
235
+ themeFontWeight="regular"
236
+ themeIntent="body"
237
+ themeTypeface="neutral"
238
+ >
239
+ This is helper text
240
+ </Text>
241
+ <Text
242
+ style={
243
+ Array [
244
+ Object {
245
+ "color": "#001f23",
246
+ "fontFamily": "BeVietnamPro-Regular",
247
+ "fontSize": 12,
248
+ "letterSpacing": 0.36,
249
+ "lineHeight": 20,
250
+ },
251
+ Array [
252
+ Object {
253
+ "alignSelf": "flex-end",
254
+ "color": "#001f23",
255
+ "flex": 1,
256
+ "flexGrow": 1,
257
+ "fontSize": 12,
258
+ "marginRight": 4,
259
+ "textAlign": "right",
260
+ },
261
+ undefined,
262
+ ],
263
+ ]
264
+ }
265
+ themeFontSize="small"
266
+ themeFontWeight="regular"
267
+ themeIntent="body"
268
+ themeTypeface="neutral"
269
+ themeVariant="filled"
270
+ >
271
+ 4
272
+ /
273
+ 255
274
+ </Text>
275
+ </View>
276
+ </View>
277
+ </View>
278
+ `;
279
+
3
280
  exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
4
281
  <View
5
282
  pointerEvents="auto"
@@ -18,6 +295,8 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
18
295
  Array [
19
296
  Object {
20
297
  "alignItems": "center",
298
+ "backgroundColor": "#ffffff",
299
+ "borderRadius": 8,
21
300
  "flexDirection": "row",
22
301
  "padding": 16,
23
302
  },
@@ -38,9 +317,15 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
38
317
  "right": 0,
39
318
  "top": 0,
40
319
  },
41
- undefined,
320
+ Array [
321
+ Object {
322
+ "backgroundColor": "#ffffff",
323
+ },
324
+ undefined,
325
+ ],
42
326
  ]
43
327
  }
328
+ testID="text-input-border"
44
329
  themeFocused={false}
45
330
  themeVariant="filled"
46
331
  />
@@ -57,9 +342,12 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
57
342
  "top": -10,
58
343
  "zIndex": 1,
59
344
  },
60
- undefined,
345
+ Object {
346
+ "backgroundColor": "#ffffff",
347
+ },
61
348
  ]
62
349
  }
350
+ testID="label-container"
63
351
  >
64
352
  <Text
65
353
  style={
@@ -101,7 +389,9 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
101
389
  Object {
102
390
  "color": "#001f23",
103
391
  },
104
- undefined,
392
+ Object {
393
+ "backgroundColor": "#ffffff",
394
+ },
105
395
  ],
106
396
  ]
107
397
  }
@@ -168,6 +458,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
168
458
  "textAlignVertical": "center",
169
459
  },
170
460
  Object {
461
+ "backgroundColor": "#ffffff",
171
462
  "color": "#001f23",
172
463
  },
173
464
  ]
@@ -280,6 +571,8 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
280
571
  Array [
281
572
  Object {
282
573
  "alignItems": "center",
574
+ "backgroundColor": "#ffffff",
575
+ "borderRadius": 8,
283
576
  "flexDirection": "row",
284
577
  "padding": 16,
285
578
  },
@@ -300,9 +593,15 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
300
593
  "right": 0,
301
594
  "top": 0,
302
595
  },
303
- undefined,
596
+ Array [
597
+ Object {
598
+ "backgroundColor": "#ffffff",
599
+ },
600
+ undefined,
601
+ ],
304
602
  ]
305
603
  }
604
+ testID="text-input-border"
306
605
  themeFocused={false}
307
606
  themeVariant="filled"
308
607
  />
@@ -319,9 +618,12 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
319
618
  "top": -10,
320
619
  "zIndex": 1,
321
620
  },
322
- undefined,
621
+ Object {
622
+ "backgroundColor": "#ffffff",
623
+ },
323
624
  ]
324
625
  }
626
+ testID="label-container"
325
627
  >
326
628
  <Text
327
629
  style={
@@ -363,7 +665,9 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
363
665
  Object {
364
666
  "color": "#001f23",
365
667
  },
366
- undefined,
668
+ Object {
669
+ "backgroundColor": "#ffffff",
670
+ },
367
671
  ],
368
672
  ]
369
673
  }
@@ -430,6 +734,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
430
734
  "textAlignVertical": "center",
431
735
  },
432
736
  Object {
737
+ "backgroundColor": "#ffffff",
433
738
  "color": "#001f23",
434
739
  },
435
740
  ]
@@ -544,6 +849,8 @@ exports[`TextInput disabled renders correctly 1`] = `
544
849
  Array [
545
850
  Object {
546
851
  "alignItems": "center",
852
+ "backgroundColor": "#ffffff",
853
+ "borderRadius": 8,
547
854
  "flexDirection": "row",
548
855
  "padding": 16,
549
856
  },
@@ -564,9 +871,15 @@ exports[`TextInput disabled renders correctly 1`] = `
564
871
  "right": 0,
565
872
  "top": 0,
566
873
  },
567
- undefined,
874
+ Array [
875
+ Object {
876
+ "backgroundColor": "#ffffff",
877
+ },
878
+ undefined,
879
+ ],
568
880
  ]
569
881
  }
882
+ testID="text-input-border"
570
883
  themeFocused={false}
571
884
  themeVariant="disabled"
572
885
  />
@@ -583,9 +896,12 @@ exports[`TextInput disabled renders correctly 1`] = `
583
896
  "top": -10,
584
897
  "zIndex": 1,
585
898
  },
586
- undefined,
899
+ Object {
900
+ "backgroundColor": "#ffffff",
901
+ },
587
902
  ]
588
903
  }
904
+ testID="label-container"
589
905
  >
590
906
  <Text
591
907
  style={
@@ -627,7 +943,9 @@ exports[`TextInput disabled renders correctly 1`] = `
627
943
  Object {
628
944
  "color": "#bfc1c5",
629
945
  },
630
- undefined,
946
+ Object {
947
+ "backgroundColor": "#ffffff",
948
+ },
631
949
  ],
632
950
  ]
633
951
  }
@@ -677,6 +995,7 @@ exports[`TextInput disabled renders correctly 1`] = `
677
995
  "textAlignVertical": "center",
678
996
  },
679
997
  Object {
998
+ "backgroundColor": "#ffffff",
680
999
  "color": "#001f23",
681
1000
  },
682
1001
  ]
@@ -730,6 +1049,8 @@ exports[`TextInput error renders correctly 1`] = `
730
1049
  Array [
731
1050
  Object {
732
1051
  "alignItems": "center",
1052
+ "backgroundColor": "#ffffff",
1053
+ "borderRadius": 8,
733
1054
  "flexDirection": "row",
734
1055
  "padding": 16,
735
1056
  },
@@ -750,9 +1071,15 @@ exports[`TextInput error renders correctly 1`] = `
750
1071
  "right": 0,
751
1072
  "top": 0,
752
1073
  },
753
- undefined,
1074
+ Array [
1075
+ Object {
1076
+ "backgroundColor": "#ffffff",
1077
+ },
1078
+ undefined,
1079
+ ],
754
1080
  ]
755
1081
  }
1082
+ testID="text-input-border"
756
1083
  themeFocused={false}
757
1084
  themeVariant="error"
758
1085
  />
@@ -885,6 +1212,7 @@ exports[`TextInput error renders correctly 1`] = `
885
1212
  "textAlignVertical": "center",
886
1213
  },
887
1214
  Object {
1215
+ "backgroundColor": "#ffffff",
888
1216
  "color": "#001f23",
889
1217
  },
890
1218
  ]
@@ -996,6 +1324,8 @@ exports[`TextInput filled renders correctly 1`] = `
996
1324
  Array [
997
1325
  Object {
998
1326
  "alignItems": "center",
1327
+ "backgroundColor": "#ffffff",
1328
+ "borderRadius": 8,
999
1329
  "flexDirection": "row",
1000
1330
  "padding": 16,
1001
1331
  },
@@ -1016,9 +1346,15 @@ exports[`TextInput filled renders correctly 1`] = `
1016
1346
  "right": 0,
1017
1347
  "top": 0,
1018
1348
  },
1019
- undefined,
1349
+ Array [
1350
+ Object {
1351
+ "backgroundColor": "#ffffff",
1352
+ },
1353
+ undefined,
1354
+ ],
1020
1355
  ]
1021
1356
  }
1357
+ testID="text-input-border"
1022
1358
  themeFocused={false}
1023
1359
  themeVariant="filled"
1024
1360
  />
@@ -1035,9 +1371,12 @@ exports[`TextInput filled renders correctly 1`] = `
1035
1371
  "top": -10,
1036
1372
  "zIndex": 1,
1037
1373
  },
1038
- undefined,
1374
+ Object {
1375
+ "backgroundColor": "#ffffff",
1376
+ },
1039
1377
  ]
1040
1378
  }
1379
+ testID="label-container"
1041
1380
  >
1042
1381
  <Text
1043
1382
  style={
@@ -1053,7 +1392,9 @@ exports[`TextInput filled renders correctly 1`] = `
1053
1392
  Object {
1054
1393
  "color": "#001f23",
1055
1394
  },
1056
- undefined,
1395
+ Object {
1396
+ "backgroundColor": "#ffffff",
1397
+ },
1057
1398
  ],
1058
1399
  ]
1059
1400
  }
@@ -1118,6 +1459,7 @@ exports[`TextInput filled renders correctly 1`] = `
1118
1459
  "textAlignVertical": "center",
1119
1460
  },
1120
1461
  Object {
1462
+ "backgroundColor": "#ffffff",
1121
1463
  "color": "#001f23",
1122
1464
  },
1123
1465
  ]
@@ -1186,6 +1528,8 @@ exports[`TextInput helper text renders correctly 1`] = `
1186
1528
  Array [
1187
1529
  Object {
1188
1530
  "alignItems": "center",
1531
+ "backgroundColor": "#ffffff",
1532
+ "borderRadius": 8,
1189
1533
  "flexDirection": "row",
1190
1534
  "padding": 16,
1191
1535
  },
@@ -1206,9 +1550,15 @@ exports[`TextInput helper text renders correctly 1`] = `
1206
1550
  "right": 0,
1207
1551
  "top": 0,
1208
1552
  },
1209
- undefined,
1553
+ Array [
1554
+ Object {
1555
+ "backgroundColor": "#ffffff",
1556
+ },
1557
+ undefined,
1558
+ ],
1210
1559
  ]
1211
1560
  }
1561
+ testID="text-input-border"
1212
1562
  themeFocused={false}
1213
1563
  themeVariant="default"
1214
1564
  />
@@ -1341,6 +1691,7 @@ exports[`TextInput helper text renders correctly 1`] = `
1341
1691
  "textAlignVertical": "center",
1342
1692
  },
1343
1693
  Object {
1694
+ "backgroundColor": "#ffffff",
1344
1695
  "color": "#001f23",
1345
1696
  },
1346
1697
  ]
@@ -1422,6 +1773,8 @@ exports[`TextInput idle renders correctly 1`] = `
1422
1773
  Array [
1423
1774
  Object {
1424
1775
  "alignItems": "center",
1776
+ "backgroundColor": "#ffffff",
1777
+ "borderRadius": 8,
1425
1778
  "flexDirection": "row",
1426
1779
  "padding": 16,
1427
1780
  },
@@ -1442,9 +1795,15 @@ exports[`TextInput idle renders correctly 1`] = `
1442
1795
  "right": 0,
1443
1796
  "top": 0,
1444
1797
  },
1445
- undefined,
1798
+ Array [
1799
+ Object {
1800
+ "backgroundColor": "#ffffff",
1801
+ },
1802
+ undefined,
1803
+ ],
1446
1804
  ]
1447
1805
  }
1806
+ testID="text-input-border"
1448
1807
  themeFocused={false}
1449
1808
  themeVariant="default"
1450
1809
  />
@@ -1550,6 +1909,7 @@ exports[`TextInput idle renders correctly 1`] = `
1550
1909
  "textAlignVertical": "center",
1551
1910
  },
1552
1911
  Object {
1912
+ "backgroundColor": "#ffffff",
1553
1913
  "color": "#001f23",
1554
1914
  },
1555
1915
  ]
@@ -1617,6 +1977,8 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
1617
1977
  Array [
1618
1978
  Object {
1619
1979
  "alignItems": "center",
1980
+ "backgroundColor": "#ffffff",
1981
+ "borderRadius": 8,
1620
1982
  "flexDirection": "row",
1621
1983
  "padding": 16,
1622
1984
  },
@@ -1637,9 +1999,15 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
1637
1999
  "right": 0,
1638
2000
  "top": 0,
1639
2001
  },
1640
- undefined,
2002
+ Array [
2003
+ Object {
2004
+ "backgroundColor": "#ffffff",
2005
+ },
2006
+ undefined,
2007
+ ],
1641
2008
  ]
1642
2009
  }
2010
+ testID="text-input-border"
1643
2011
  themeFocused={false}
1644
2012
  themeVariant="default"
1645
2013
  />
@@ -1772,6 +2140,7 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
1772
2140
  "textAlignVertical": "center",
1773
2141
  },
1774
2142
  Object {
2143
+ "backgroundColor": "#ffffff",
1775
2144
  "color": "#001f23",
1776
2145
  },
1777
2146
  ]
@@ -1839,6 +2208,8 @@ exports[`TextInput loading renders correctly 1`] = `
1839
2208
  Array [
1840
2209
  Object {
1841
2210
  "alignItems": "center",
2211
+ "backgroundColor": "#ffffff",
2212
+ "borderRadius": 8,
1842
2213
  "flexDirection": "row",
1843
2214
  "padding": 16,
1844
2215
  },
@@ -1859,9 +2230,15 @@ exports[`TextInput loading renders correctly 1`] = `
1859
2230
  "right": 0,
1860
2231
  "top": 0,
1861
2232
  },
1862
- undefined,
2233
+ Array [
2234
+ Object {
2235
+ "backgroundColor": "#ffffff",
2236
+ },
2237
+ undefined,
2238
+ ],
1863
2239
  ]
1864
2240
  }
2241
+ testID="text-input-border"
1865
2242
  themeFocused={false}
1866
2243
  themeVariant="readonly"
1867
2244
  />
@@ -1918,6 +2295,7 @@ exports[`TextInput loading renders correctly 1`] = `
1918
2295
  "textAlignVertical": "center",
1919
2296
  },
1920
2297
  Object {
2298
+ "backgroundColor": "#ffffff",
1921
2299
  "color": "#001f23",
1922
2300
  },
1923
2301
  ]
@@ -1998,6 +2376,8 @@ exports[`TextInput max length renders correctly 1`] = `
1998
2376
  Array [
1999
2377
  Object {
2000
2378
  "alignItems": "center",
2379
+ "backgroundColor": "#ffffff",
2380
+ "borderRadius": 8,
2001
2381
  "flexDirection": "row",
2002
2382
  "padding": 16,
2003
2383
  },
@@ -2018,9 +2398,15 @@ exports[`TextInput max length renders correctly 1`] = `
2018
2398
  "right": 0,
2019
2399
  "top": 0,
2020
2400
  },
2021
- undefined,
2401
+ Array [
2402
+ Object {
2403
+ "backgroundColor": "#ffffff",
2404
+ },
2405
+ undefined,
2406
+ ],
2022
2407
  ]
2023
2408
  }
2409
+ testID="text-input-border"
2024
2410
  themeFocused={false}
2025
2411
  themeVariant="error"
2026
2412
  />
@@ -2037,9 +2423,12 @@ exports[`TextInput max length renders correctly 1`] = `
2037
2423
  "top": -10,
2038
2424
  "zIndex": 1,
2039
2425
  },
2040
- undefined,
2426
+ Object {
2427
+ "backgroundColor": "#ffffff",
2428
+ },
2041
2429
  ]
2042
2430
  }
2431
+ testID="label-container"
2043
2432
  >
2044
2433
  <Text
2045
2434
  style={
@@ -2081,7 +2470,9 @@ exports[`TextInput max length renders correctly 1`] = `
2081
2470
  Object {
2082
2471
  "color": "#001f23",
2083
2472
  },
2084
- undefined,
2473
+ Object {
2474
+ "backgroundColor": "#ffffff",
2475
+ },
2085
2476
  ],
2086
2477
  ]
2087
2478
  }
@@ -2133,6 +2524,7 @@ exports[`TextInput max length renders correctly 1`] = `
2133
2524
  "textAlignVertical": "center",
2134
2525
  },
2135
2526
  Object {
2527
+ "backgroundColor": "#ffffff",
2136
2528
  "color": "#001f23",
2137
2529
  },
2138
2530
  ]
@@ -2279,6 +2671,8 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
2279
2671
  Array [
2280
2672
  Object {
2281
2673
  "alignItems": "center",
2674
+ "backgroundColor": "#ffffff",
2675
+ "borderRadius": 8,
2282
2676
  "flexDirection": "row",
2283
2677
  "padding": 16,
2284
2678
  },
@@ -2299,9 +2693,15 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
2299
2693
  "right": 0,
2300
2694
  "top": 0,
2301
2695
  },
2302
- undefined,
2696
+ Array [
2697
+ Object {
2698
+ "backgroundColor": "#ffffff",
2699
+ },
2700
+ undefined,
2701
+ ],
2303
2702
  ]
2304
2703
  }
2704
+ testID="text-input-border"
2305
2705
  themeFocused={false}
2306
2706
  themeVariant="default"
2307
2707
  />
@@ -2434,6 +2834,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
2434
2834
  "textAlignVertical": "center",
2435
2835
  },
2436
2836
  Object {
2837
+ "backgroundColor": "#ffffff",
2437
2838
  "color": "#001f23",
2438
2839
  },
2439
2840
  ]
@@ -2512,6 +2913,8 @@ exports[`TextInput readonly renders correctly 1`] = `
2512
2913
  Array [
2513
2914
  Object {
2514
2915
  "alignItems": "center",
2916
+ "backgroundColor": "#ffffff",
2917
+ "borderRadius": 8,
2515
2918
  "flexDirection": "row",
2516
2919
  "padding": 16,
2517
2920
  },
@@ -2532,9 +2935,15 @@ exports[`TextInput readonly renders correctly 1`] = `
2532
2935
  "right": 0,
2533
2936
  "top": 0,
2534
2937
  },
2535
- undefined,
2938
+ Array [
2939
+ Object {
2940
+ "backgroundColor": "#ffffff",
2941
+ },
2942
+ undefined,
2943
+ ],
2536
2944
  ]
2537
2945
  }
2946
+ testID="text-input-border"
2538
2947
  themeFocused={false}
2539
2948
  themeVariant="readonly"
2540
2949
  />
@@ -2551,9 +2960,12 @@ exports[`TextInput readonly renders correctly 1`] = `
2551
2960
  "top": -10,
2552
2961
  "zIndex": 1,
2553
2962
  },
2554
- undefined,
2963
+ Object {
2964
+ "backgroundColor": "#ffffff",
2965
+ },
2555
2966
  ]
2556
2967
  }
2968
+ testID="label-container"
2557
2969
  >
2558
2970
  <Text
2559
2971
  style={
@@ -2595,7 +3007,9 @@ exports[`TextInput readonly renders correctly 1`] = `
2595
3007
  Object {
2596
3008
  "color": "#808f91",
2597
3009
  },
2598
- undefined,
3010
+ Object {
3011
+ "backgroundColor": "#ffffff",
3012
+ },
2599
3013
  ],
2600
3014
  ]
2601
3015
  }
@@ -2660,6 +3074,7 @@ exports[`TextInput readonly renders correctly 1`] = `
2660
3074
  "textAlignVertical": "center",
2661
3075
  },
2662
3076
  Object {
3077
+ "backgroundColor": "#ffffff",
2663
3078
  "color": "#001f23",
2664
3079
  },
2665
3080
  ]
@@ -2728,6 +3143,8 @@ exports[`TextInput ref ref methods work correctly 1`] = `
2728
3143
  Array [
2729
3144
  Object {
2730
3145
  "alignItems": "center",
3146
+ "backgroundColor": "#ffffff",
3147
+ "borderRadius": 8,
2731
3148
  "flexDirection": "row",
2732
3149
  "padding": 16,
2733
3150
  },
@@ -2748,9 +3165,15 @@ exports[`TextInput ref ref methods work correctly 1`] = `
2748
3165
  "right": 0,
2749
3166
  "top": 0,
2750
3167
  },
2751
- undefined,
3168
+ Array [
3169
+ Object {
3170
+ "backgroundColor": "#ffffff",
3171
+ },
3172
+ undefined,
3173
+ ],
2752
3174
  ]
2753
3175
  }
3176
+ testID="text-input-border"
2754
3177
  themeFocused={false}
2755
3178
  themeVariant="filled"
2756
3179
  />
@@ -2767,9 +3190,12 @@ exports[`TextInput ref ref methods work correctly 1`] = `
2767
3190
  "top": -10,
2768
3191
  "zIndex": 1,
2769
3192
  },
2770
- undefined,
3193
+ Object {
3194
+ "backgroundColor": "#ffffff",
3195
+ },
2771
3196
  ]
2772
3197
  }
3198
+ testID="label-container"
2773
3199
  >
2774
3200
  <Text
2775
3201
  style={
@@ -2785,7 +3211,9 @@ exports[`TextInput ref ref methods work correctly 1`] = `
2785
3211
  Object {
2786
3212
  "color": "#001f23",
2787
3213
  },
2788
- undefined,
3214
+ Object {
3215
+ "backgroundColor": "#ffffff",
3216
+ },
2789
3217
  ],
2790
3218
  ]
2791
3219
  }
@@ -2835,6 +3263,7 @@ exports[`TextInput ref ref methods work correctly 1`] = `
2835
3263
  "textAlignVertical": "center",
2836
3264
  },
2837
3265
  Object {
3266
+ "backgroundColor": "#ffffff",
2838
3267
  "color": "#001f23",
2839
3268
  },
2840
3269
  ]
@@ -2888,6 +3317,8 @@ exports[`TextInput required renders correctly 1`] = `
2888
3317
  Array [
2889
3318
  Object {
2890
3319
  "alignItems": "center",
3320
+ "backgroundColor": "#ffffff",
3321
+ "borderRadius": 8,
2891
3322
  "flexDirection": "row",
2892
3323
  "padding": 16,
2893
3324
  },
@@ -2908,9 +3339,15 @@ exports[`TextInput required renders correctly 1`] = `
2908
3339
  "right": 0,
2909
3340
  "top": 0,
2910
3341
  },
2911
- undefined,
3342
+ Array [
3343
+ Object {
3344
+ "backgroundColor": "#ffffff",
3345
+ },
3346
+ undefined,
3347
+ ],
2912
3348
  ]
2913
3349
  }
3350
+ testID="text-input-border"
2914
3351
  themeFocused={false}
2915
3352
  themeVariant="default"
2916
3353
  />
@@ -3043,6 +3480,7 @@ exports[`TextInput required renders correctly 1`] = `
3043
3480
  "textAlignVertical": "center",
3044
3481
  },
3045
3482
  Object {
3483
+ "backgroundColor": "#ffffff",
3046
3484
  "color": "#001f23",
3047
3485
  },
3048
3486
  ]