@hero-design/rn 8.91.1 → 8.91.4

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 (106) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +27 -0
  3. package/es/index.js +170 -77
  4. package/lib/index.js +170 -77
  5. package/package.json +1 -1
  6. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +12 -12
  7. package/src/components/BottomSheet/StyledBottomSheet.tsx +0 -10
  8. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +0 -16
  9. package/src/components/Calendar/CalendarRange.tsx +5 -1
  10. package/src/components/Calendar/__tests__/helper.spec.ts +20 -8
  11. package/src/components/Calendar/helpers.ts +6 -2
  12. package/src/components/Checkbox/StyledCheckbox.tsx +3 -3
  13. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
  14. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  15. package/src/components/Checkbox/__tests__/index.spec.tsx +11 -7
  16. package/src/components/Checkbox/index.tsx +11 -2
  17. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  18. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +63 -3
  19. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +21 -1
  20. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +21 -1
  21. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +42 -18
  22. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -1
  23. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  24. package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  25. package/src/components/FAB/StyledFAB.tsx +1 -5
  26. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +4 -4
  27. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  28. package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  29. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +2 -1
  30. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
  31. package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  32. package/src/components/RichTextEditor/RichTextEditor.tsx +2 -1
  33. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +40 -2
  34. package/src/components/Search/SearchOneLine.tsx +3 -1
  35. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +7 -0
  36. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +147 -47
  37. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +126 -38
  38. package/src/components/Slider/__tests__/__snapshots__/RangeSlider.spec.tsx.snap +2 -2
  39. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  40. package/src/components/Switch/StyledSwitch.tsx +1 -0
  41. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +7 -3
  42. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  43. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +337 -16
  44. package/src/components/TextInput/__tests__/index.spec.tsx +2 -0
  45. package/src/components/TextInput/index.tsx +7 -2
  46. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +42 -2
  47. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +42 -10
  48. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -7
  49. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +52 -29
  50. package/src/theme/components/bottomSheet.ts +2 -9
  51. package/src/theme/components/checkbox.ts +7 -0
  52. package/src/theme/components/fab.ts +5 -9
  53. package/src/theme/components/switch.ts +5 -5
  54. package/src/theme/components/textInput.ts +1 -0
  55. package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +2 -0
  56. package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +2 -0
  57. package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +2 -0
  58. package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +2 -0
  59. package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +6 -3
  60. package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +5 -3
  61. package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +6 -3
  62. package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +2 -0
  63. package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +2 -0
  64. package/src/theme/global/colors/ehWorkDark.ts +1 -0
  65. package/src/theme/global/colors/global.ts +3 -0
  66. package/src/theme/global/colors/swagLight.ts +1 -0
  67. package/src/theme/global/colors/swagLightGlobal.ts +3 -3
  68. package/src/theme/global/colors/swagLightJobs.ts +3 -1
  69. package/src/theme/global/colors/types.ts +2 -0
  70. package/src/theme/global/shadows/__tests__/__snapshots__/ehWorkDark.spec.ts.snap +36 -0
  71. package/src/theme/global/shadows/__tests__/__snapshots__/swagLight.spec.ts.snap +36 -0
  72. package/src/theme/global/shadows/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +36 -0
  73. package/src/theme/global/shadows/__tests__/ehWorkDark.spec.ts +7 -0
  74. package/src/theme/global/shadows/__tests__/index.spec.ts +24 -0
  75. package/src/theme/global/shadows/__tests__/swagLight.spec.ts +7 -0
  76. package/src/theme/global/shadows/__tests__/swagLightJobs.spec.ts +7 -0
  77. package/src/theme/global/shadows/ehWorkDark.ts +37 -0
  78. package/src/theme/global/shadows/index.ts +23 -0
  79. package/src/theme/global/shadows/swagLight.ts +37 -0
  80. package/src/theme/global/shadows/swagLightJobs.ts +37 -0
  81. package/src/theme/global/shadows/types.ts +16 -0
  82. package/stats/8.91.2/rn-stats.html +4842 -0
  83. package/stats/8.91.3/rn-stats.html +4844 -0
  84. package/stats/8.91.4/rn-stats.html +4842 -0
  85. package/types/components/Calendar/helpers.d.ts +5 -2
  86. package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
  87. package/types/components/Checkbox/index.d.ts +2 -1
  88. package/types/components/TextInput/index.d.ts +3 -1
  89. package/types/theme/components/bottomSheet.d.ts +1 -10
  90. package/types/theme/components/checkbox.d.ts +7 -0
  91. package/types/theme/components/chip.d.ts +1 -10
  92. package/types/theme/components/fab.d.ts +2 -9
  93. package/types/theme/components/floatingIsland.d.ts +1 -10
  94. package/types/theme/components/slider.d.ts +1 -10
  95. package/types/theme/components/switch.d.ts +1 -1
  96. package/types/theme/components/textInput.d.ts +1 -0
  97. package/types/theme/global/colors/swagLightJobs.d.ts +2 -50
  98. package/types/theme/global/colors/types.d.ts +2 -0
  99. package/types/theme/global/index.d.ts +2 -12
  100. package/types/theme/global/shadows/ehWorkDark.d.ts +3 -0
  101. package/types/theme/global/shadows/index.d.ts +5 -0
  102. package/types/theme/global/shadows/swagLight.d.ts +3 -0
  103. package/types/theme/global/shadows/swagLightJobs.d.ts +3 -0
  104. package/types/theme/global/shadows/types.d.ts +15 -0
  105. package/src/theme/global/shadows.ts +0 -19
  106. package/types/theme/global/shadows.d.ts +0 -16
@@ -54,11 +54,12 @@ exports[`StyledWrapper renders correct style with variant checked 1`] = `
54
54
  style={
55
55
  [
56
56
  {
57
- "backgroundColor": "#401960",
57
+ "backgroundColor": "#33144d",
58
58
  "borderRadius": 999,
59
59
  "display": "flex",
60
60
  "height": 24,
61
61
  "justifyContent": "center",
62
+ "opacity": 1,
62
63
  "paddingHorizontal": 4,
63
64
  "width": 48,
64
65
  },
@@ -102,11 +103,12 @@ exports[`StyledWrapper renders correct style with variant disabled-checked 1`] =
102
103
  style={
103
104
  [
104
105
  {
105
- "backgroundColor": "#ece8ef",
106
+ "backgroundColor": "#808f91",
106
107
  "borderRadius": 999,
107
108
  "display": "flex",
108
109
  "height": 24,
109
110
  "justifyContent": "center",
111
+ "opacity": 0.4,
110
112
  "paddingHorizontal": 4,
111
113
  "width": 48,
112
114
  },
@@ -150,11 +152,12 @@ exports[`StyledWrapper renders correct style with variant disabled-unchecked 1`]
150
152
  style={
151
153
  [
152
154
  {
153
- "backgroundColor": "#4d6265",
155
+ "backgroundColor": "#808f91",
154
156
  "borderRadius": 999,
155
157
  "display": "flex",
156
158
  "height": 24,
157
159
  "justifyContent": "center",
160
+ "opacity": 0.4,
158
161
  "paddingHorizontal": 4,
159
162
  "width": 48,
160
163
  },
@@ -203,6 +206,7 @@ exports[`StyledWrapper renders correct style with variant unchecked 1`] = `
203
206
  "display": "flex",
204
207
  "height": 24,
205
208
  "justifyContent": "center",
209
+ "opacity": 1,
206
210
  "paddingHorizontal": 4,
207
211
  "width": 48,
208
212
  },
@@ -35,6 +35,7 @@ exports[`Switch renders correctly 1`] = `
35
35
  "display": "flex",
36
36
  "height": 24,
37
37
  "justifyContent": "center",
38
+ "opacity": 1,
38
39
  "paddingHorizontal": 4,
39
40
  "width": 48,
40
41
  },
@@ -115,6 +116,7 @@ exports[`Switch trigger press function correctly 1`] = `
115
116
  "display": "flex",
116
117
  "height": 24,
117
118
  "justifyContent": "center",
119
+ "opacity": 1,
118
120
  "paddingHorizontal": 4,
119
121
  "width": 48,
120
122
  },
@@ -169,7 +169,26 @@ exports[`TextInput backgroundColor renders correctly 1`] = `
169
169
  >
170
170
  *
171
171
  </Text>
172
- Amount (AUD)
172
+ <Text
173
+ allowFontScaling={false}
174
+ style={
175
+ [
176
+ {
177
+ "color": "#001f23",
178
+ "fontFamily": "BeVietnamPro-Regular",
179
+ "fontSize": 16,
180
+ "letterSpacing": 0.48,
181
+ "lineHeight": 24,
182
+ },
183
+ undefined,
184
+ ]
185
+ }
186
+ themeIntent="body"
187
+ themeTypeface="neutral"
188
+ themeVariant="regular"
189
+ >
190
+ Amount (AUD)
191
+ </Text>
173
192
  </Text>
174
193
  </View>
175
194
  <View
@@ -200,6 +219,7 @@ exports[`TextInput backgroundColor renders correctly 1`] = `
200
219
  onChangeText={[Function]}
201
220
  onFocus={[Function]}
202
221
  placeholder=" "
222
+ placeholderTextColor="#4d6265"
203
223
  style={
204
224
  [
205
225
  {
@@ -493,7 +513,26 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
493
513
  >
494
514
  *
495
515
  </Text>
496
- Amount (AUD)
516
+ <Text
517
+ allowFontScaling={false}
518
+ style={
519
+ [
520
+ {
521
+ "color": "#001f23",
522
+ "fontFamily": "BeVietnamPro-Regular",
523
+ "fontSize": 16,
524
+ "letterSpacing": 0.48,
525
+ "lineHeight": 24,
526
+ },
527
+ undefined,
528
+ ]
529
+ }
530
+ themeIntent="body"
531
+ themeTypeface="neutral"
532
+ themeVariant="regular"
533
+ >
534
+ Amount (AUD)
535
+ </Text>
497
536
  </Text>
498
537
  </View>
499
538
  <View
@@ -524,6 +563,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
524
563
  onChangeText={[Function]}
525
564
  onFocus={[Function]}
526
565
  placeholder=" "
566
+ placeholderTextColor="#4d6265"
527
567
  style={
528
568
  [
529
569
  {
@@ -816,7 +856,26 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
816
856
  >
817
857
  *
818
858
  </Text>
819
- Amount (AUD)
859
+ <Text
860
+ allowFontScaling={false}
861
+ style={
862
+ [
863
+ {
864
+ "color": "#001f23",
865
+ "fontFamily": "BeVietnamPro-Regular",
866
+ "fontSize": 16,
867
+ "letterSpacing": 0.48,
868
+ "lineHeight": 24,
869
+ },
870
+ undefined,
871
+ ]
872
+ }
873
+ themeIntent="body"
874
+ themeTypeface="neutral"
875
+ themeVariant="regular"
876
+ >
877
+ Amount (AUD)
878
+ </Text>
820
879
  </Text>
821
880
  </View>
822
881
  <View
@@ -847,6 +906,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
847
906
  onChangeText={[Function]}
848
907
  onFocus={[Function]}
849
908
  placeholder=" "
909
+ placeholderTextColor="#4d6265"
850
910
  style={
851
911
  [
852
912
  {
@@ -1125,7 +1185,26 @@ exports[`TextInput disabled renders correctly 1`] = `
1125
1185
  >
1126
1186
  *
1127
1187
  </Text>
1128
- Amount (AUD)
1188
+ <Text
1189
+ allowFontScaling={false}
1190
+ style={
1191
+ [
1192
+ {
1193
+ "color": "#001f23",
1194
+ "fontFamily": "BeVietnamPro-Regular",
1195
+ "fontSize": 16,
1196
+ "letterSpacing": 0.48,
1197
+ "lineHeight": 24,
1198
+ },
1199
+ undefined,
1200
+ ]
1201
+ }
1202
+ themeIntent="body"
1203
+ themeTypeface="neutral"
1204
+ themeVariant="regular"
1205
+ >
1206
+ Amount (AUD)
1207
+ </Text>
1129
1208
  </Text>
1130
1209
  </View>
1131
1210
  <View
@@ -1154,6 +1233,7 @@ exports[`TextInput disabled renders correctly 1`] = `
1154
1233
  onChangeText={[Function]}
1155
1234
  onFocus={[Function]}
1156
1235
  placeholder=" "
1236
+ placeholderTextColor="#4d6265"
1157
1237
  style={
1158
1238
  [
1159
1239
  {
@@ -1397,7 +1477,26 @@ exports[`TextInput error renders correctly 1`] = `
1397
1477
  >
1398
1478
  *
1399
1479
  </Text>
1400
- Amount (AUD)
1480
+ <Text
1481
+ allowFontScaling={false}
1482
+ style={
1483
+ [
1484
+ {
1485
+ "color": "#001f23",
1486
+ "fontFamily": "BeVietnamPro-Regular",
1487
+ "fontSize": 16,
1488
+ "letterSpacing": 0.48,
1489
+ "lineHeight": 24,
1490
+ },
1491
+ undefined,
1492
+ ]
1493
+ }
1494
+ themeIntent="body"
1495
+ themeTypeface="neutral"
1496
+ themeVariant="regular"
1497
+ >
1498
+ Amount (AUD)
1499
+ </Text>
1401
1500
  </Text>
1402
1501
  </View>
1403
1502
  <View
@@ -1426,6 +1525,7 @@ exports[`TextInput error renders correctly 1`] = `
1426
1525
  onChangeText={[Function]}
1427
1526
  onFocus={[Function]}
1428
1527
  placeholder=" "
1528
+ placeholderTextColor="#4d6265"
1429
1529
  style={
1430
1530
  [
1431
1531
  {
@@ -1696,7 +1796,26 @@ exports[`TextInput filled renders correctly 1`] = `
1696
1796
  themeTypeface="neutral"
1697
1797
  themeVariant="regular"
1698
1798
  >
1699
- Amount (AUD)
1799
+ <Text
1800
+ allowFontScaling={false}
1801
+ style={
1802
+ [
1803
+ {
1804
+ "color": "#001f23",
1805
+ "fontFamily": "BeVietnamPro-Regular",
1806
+ "fontSize": 16,
1807
+ "letterSpacing": 0.48,
1808
+ "lineHeight": 24,
1809
+ },
1810
+ undefined,
1811
+ ]
1812
+ }
1813
+ themeIntent="body"
1814
+ themeTypeface="neutral"
1815
+ themeVariant="regular"
1816
+ >
1817
+ Amount (AUD)
1818
+ </Text>
1700
1819
  </Text>
1701
1820
  </View>
1702
1821
  <View
@@ -1725,6 +1844,7 @@ exports[`TextInput filled renders correctly 1`] = `
1725
1844
  onChangeText={[Function]}
1726
1845
  onFocus={[Function]}
1727
1846
  placeholder=" "
1847
+ placeholderTextColor="#4d6265"
1728
1848
  style={
1729
1849
  [
1730
1850
  {
@@ -1983,7 +2103,26 @@ exports[`TextInput helper text renders correctly 1`] = `
1983
2103
  >
1984
2104
  *
1985
2105
  </Text>
1986
- Amount (AUD)
2106
+ <Text
2107
+ allowFontScaling={false}
2108
+ style={
2109
+ [
2110
+ {
2111
+ "color": "#001f23",
2112
+ "fontFamily": "BeVietnamPro-Regular",
2113
+ "fontSize": 16,
2114
+ "letterSpacing": 0.48,
2115
+ "lineHeight": 24,
2116
+ },
2117
+ undefined,
2118
+ ]
2119
+ }
2120
+ themeIntent="body"
2121
+ themeTypeface="neutral"
2122
+ themeVariant="regular"
2123
+ >
2124
+ Amount (AUD)
2125
+ </Text>
1987
2126
  </Text>
1988
2127
  </View>
1989
2128
  <View
@@ -2012,6 +2151,7 @@ exports[`TextInput helper text renders correctly 1`] = `
2012
2151
  onChangeText={[Function]}
2013
2152
  onFocus={[Function]}
2014
2153
  placeholder=" "
2154
+ placeholderTextColor="#4d6265"
2015
2155
  style={
2016
2156
  [
2017
2157
  {
@@ -2248,7 +2388,26 @@ exports[`TextInput idle renders correctly 1`] = `
2248
2388
  themeTypeface="neutral"
2249
2389
  themeVariant="regular"
2250
2390
  >
2251
- Amount (AUD)
2391
+ <Text
2392
+ allowFontScaling={false}
2393
+ style={
2394
+ [
2395
+ {
2396
+ "color": "#001f23",
2397
+ "fontFamily": "BeVietnamPro-Regular",
2398
+ "fontSize": 16,
2399
+ "letterSpacing": 0.48,
2400
+ "lineHeight": 24,
2401
+ },
2402
+ undefined,
2403
+ ]
2404
+ }
2405
+ themeIntent="body"
2406
+ themeTypeface="neutral"
2407
+ themeVariant="regular"
2408
+ >
2409
+ Amount (AUD)
2410
+ </Text>
2252
2411
  </Text>
2253
2412
  </View>
2254
2413
  <View
@@ -2277,6 +2436,7 @@ exports[`TextInput idle renders correctly 1`] = `
2277
2436
  onChangeText={[Function]}
2278
2437
  onFocus={[Function]}
2279
2438
  placeholder=" "
2439
+ placeholderTextColor="#4d6265"
2280
2440
  style={
2281
2441
  [
2282
2442
  {
@@ -2534,7 +2694,26 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
2534
2694
  >
2535
2695
  *
2536
2696
  </Text>
2537
- Amount (AUD)
2697
+ <Text
2698
+ allowFontScaling={false}
2699
+ style={
2700
+ [
2701
+ {
2702
+ "color": "#001f23",
2703
+ "fontFamily": "BeVietnamPro-Regular",
2704
+ "fontSize": 16,
2705
+ "letterSpacing": 0.48,
2706
+ "lineHeight": 24,
2707
+ },
2708
+ undefined,
2709
+ ]
2710
+ }
2711
+ themeIntent="body"
2712
+ themeTypeface="neutral"
2713
+ themeVariant="regular"
2714
+ >
2715
+ Amount (AUD)
2716
+ </Text>
2538
2717
  </Text>
2539
2718
  </View>
2540
2719
  <View
@@ -2563,6 +2742,7 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
2563
2742
  onChangeText={[Function]}
2564
2743
  onFocus={[Function]}
2565
2744
  placeholder=" "
2745
+ placeholderTextColor="#4d6265"
2566
2746
  style={
2567
2747
  [
2568
2748
  {
@@ -2765,6 +2945,7 @@ exports[`TextInput loading renders correctly 1`] = `
2765
2945
  onBlur={[Function]}
2766
2946
  onChangeText={[Function]}
2767
2947
  onFocus={[Function]}
2948
+ placeholderTextColor="#4d6265"
2768
2949
  style={
2769
2950
  [
2770
2951
  {
@@ -3019,7 +3200,26 @@ exports[`TextInput max length renders correctly 1`] = `
3019
3200
  >
3020
3201
  *
3021
3202
  </Text>
3022
- Shout out
3203
+ <Text
3204
+ allowFontScaling={false}
3205
+ style={
3206
+ [
3207
+ {
3208
+ "color": "#001f23",
3209
+ "fontFamily": "BeVietnamPro-Regular",
3210
+ "fontSize": 16,
3211
+ "letterSpacing": 0.48,
3212
+ "lineHeight": 24,
3213
+ },
3214
+ undefined,
3215
+ ]
3216
+ }
3217
+ themeIntent="body"
3218
+ themeTypeface="neutral"
3219
+ themeVariant="regular"
3220
+ >
3221
+ Shout out
3222
+ </Text>
3023
3223
  </Text>
3024
3224
  </View>
3025
3225
  <View
@@ -3050,6 +3250,7 @@ exports[`TextInput max length renders correctly 1`] = `
3050
3250
  onChangeText={[Function]}
3051
3251
  onFocus={[Function]}
3052
3252
  placeholder=" "
3253
+ placeholderTextColor="#4d6265"
3053
3254
  style={
3054
3255
  [
3055
3256
  {
@@ -3364,7 +3565,26 @@ exports[`TextInput max length renders correctly with hide character count 1`] =
3364
3565
  >
3365
3566
  *
3366
3567
  </Text>
3367
- Shout out
3568
+ <Text
3569
+ allowFontScaling={false}
3570
+ style={
3571
+ [
3572
+ {
3573
+ "color": "#001f23",
3574
+ "fontFamily": "BeVietnamPro-Regular",
3575
+ "fontSize": 16,
3576
+ "letterSpacing": 0.48,
3577
+ "lineHeight": 24,
3578
+ },
3579
+ undefined,
3580
+ ]
3581
+ }
3582
+ themeIntent="body"
3583
+ themeTypeface="neutral"
3584
+ themeVariant="regular"
3585
+ >
3586
+ Shout out
3587
+ </Text>
3368
3588
  </Text>
3369
3589
  </View>
3370
3590
  <View
@@ -3395,6 +3615,7 @@ exports[`TextInput max length renders correctly with hide character count 1`] =
3395
3615
  onChangeText={[Function]}
3396
3616
  onFocus={[Function]}
3397
3617
  placeholder=" "
3618
+ placeholderTextColor="#4d6265"
3398
3619
  style={
3399
3620
  [
3400
3621
  {
@@ -3695,7 +3916,26 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
3695
3916
  >
3696
3917
  *
3697
3918
  </Text>
3698
- Amount (AUD)
3919
+ <Text
3920
+ allowFontScaling={false}
3921
+ style={
3922
+ [
3923
+ {
3924
+ "color": "#001f23",
3925
+ "fontFamily": "BeVietnamPro-Regular",
3926
+ "fontSize": 16,
3927
+ "letterSpacing": 0.48,
3928
+ "lineHeight": 24,
3929
+ },
3930
+ undefined,
3931
+ ]
3932
+ }
3933
+ themeIntent="body"
3934
+ themeTypeface="neutral"
3935
+ themeVariant="regular"
3936
+ >
3937
+ Amount (AUD)
3938
+ </Text>
3699
3939
  </Text>
3700
3940
  </View>
3701
3941
  <View
@@ -3724,6 +3964,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
3724
3964
  onChangeText={[Function]}
3725
3965
  onFocus={[Function]}
3726
3966
  placeholder=" "
3967
+ placeholderTextColor="#4d6265"
3727
3968
  style={
3728
3969
  [
3729
3970
  {
@@ -3986,7 +4227,26 @@ exports[`TextInput readonly renders correctly 1`] = `
3986
4227
  >
3987
4228
  *
3988
4229
  </Text>
3989
- Amount (AUD)
4230
+ <Text
4231
+ allowFontScaling={false}
4232
+ style={
4233
+ [
4234
+ {
4235
+ "color": "#001f23",
4236
+ "fontFamily": "BeVietnamPro-Regular",
4237
+ "fontSize": 16,
4238
+ "letterSpacing": 0.48,
4239
+ "lineHeight": 24,
4240
+ },
4241
+ undefined,
4242
+ ]
4243
+ }
4244
+ themeIntent="body"
4245
+ themeTypeface="neutral"
4246
+ themeVariant="regular"
4247
+ >
4248
+ Amount (AUD)
4249
+ </Text>
3990
4250
  </Text>
3991
4251
  </View>
3992
4252
  <View
@@ -4015,6 +4275,7 @@ exports[`TextInput readonly renders correctly 1`] = `
4015
4275
  onChangeText={[Function]}
4016
4276
  onFocus={[Function]}
4017
4277
  placeholder=" "
4278
+ placeholderTextColor="#4d6265"
4018
4279
  style={
4019
4280
  [
4020
4281
  {
@@ -4228,7 +4489,26 @@ exports[`TextInput ref ref methods work correctly 1`] = `
4228
4489
  themeTypeface="neutral"
4229
4490
  themeVariant="regular"
4230
4491
  >
4231
- Amount (AUD)
4492
+ <Text
4493
+ allowFontScaling={false}
4494
+ style={
4495
+ [
4496
+ {
4497
+ "color": "#001f23",
4498
+ "fontFamily": "BeVietnamPro-Regular",
4499
+ "fontSize": 16,
4500
+ "letterSpacing": 0.48,
4501
+ "lineHeight": 24,
4502
+ },
4503
+ undefined,
4504
+ ]
4505
+ }
4506
+ themeIntent="body"
4507
+ themeTypeface="neutral"
4508
+ themeVariant="regular"
4509
+ >
4510
+ Amount (AUD)
4511
+ </Text>
4232
4512
  </Text>
4233
4513
  </View>
4234
4514
  <View
@@ -4257,6 +4537,7 @@ exports[`TextInput ref ref methods work correctly 1`] = `
4257
4537
  onChangeText={[Function]}
4258
4538
  onFocus={[Function]}
4259
4539
  placeholder=" "
4540
+ placeholderTextColor="#4d6265"
4260
4541
  style={
4261
4542
  [
4262
4543
  {
@@ -4500,7 +4781,26 @@ exports[`TextInput required renders correctly 1`] = `
4500
4781
  >
4501
4782
  *
4502
4783
  </Text>
4503
- Amount (AUD)
4784
+ <Text
4785
+ allowFontScaling={false}
4786
+ style={
4787
+ [
4788
+ {
4789
+ "color": "#001f23",
4790
+ "fontFamily": "BeVietnamPro-Regular",
4791
+ "fontSize": 16,
4792
+ "letterSpacing": 0.48,
4793
+ "lineHeight": 24,
4794
+ },
4795
+ undefined,
4796
+ ]
4797
+ }
4798
+ themeIntent="body"
4799
+ themeTypeface="neutral"
4800
+ themeVariant="regular"
4801
+ >
4802
+ Amount (AUD)
4803
+ </Text>
4504
4804
  </Text>
4505
4805
  </View>
4506
4806
  <View
@@ -4529,6 +4829,7 @@ exports[`TextInput required renders correctly 1`] = `
4529
4829
  onChangeText={[Function]}
4530
4830
  onFocus={[Function]}
4531
4831
  placeholder=" "
4832
+ placeholderTextColor="#4d6265"
4532
4833
  style={
4533
4834
  [
4534
4835
  {
@@ -4741,7 +5042,26 @@ exports[`TextInput variants renders textarea variant correctly 1`] = `
4741
5042
  themeTypeface="neutral"
4742
5043
  themeVariant="regular"
4743
5044
  >
4744
- Amount (AUD)
5045
+ <Text
5046
+ allowFontScaling={false}
5047
+ style={
5048
+ [
5049
+ {
5050
+ "color": "#001f23",
5051
+ "fontFamily": "BeVietnamPro-Regular",
5052
+ "fontSize": 16,
5053
+ "letterSpacing": 0.48,
5054
+ "lineHeight": 24,
5055
+ },
5056
+ undefined,
5057
+ ]
5058
+ }
5059
+ themeIntent="body"
5060
+ themeTypeface="neutral"
5061
+ themeVariant="regular"
5062
+ >
5063
+ Amount (AUD)
5064
+ </Text>
4745
5065
  </Text>
4746
5066
  </View>
4747
5067
  <View
@@ -4771,6 +5091,7 @@ exports[`TextInput variants renders textarea variant correctly 1`] = `
4771
5091
  onChangeText={[Function]}
4772
5092
  onFocus={[Function]}
4773
5093
  placeholder=" "
5094
+ placeholderTextColor="#4d6265"
4774
5095
  style={
4775
5096
  [
4776
5097
  {
@@ -545,6 +545,7 @@ describe('renderInput', () => {
545
545
  />
546
546
  );
547
547
  },
548
+ theme,
548
549
  })}
549
550
  </>
550
551
  );
@@ -562,6 +563,7 @@ describe('renderInput', () => {
562
563
  testID: 'text-input',
563
564
  value: 'text input value',
564
565
  },
566
+ theme,
565
567
  })}
566
568
  </>
567
569
  );
@@ -36,10 +36,11 @@ import {
36
36
  StyledHelperText,
37
37
  } from './StyledTextInput';
38
38
  import Icon from '../Icon';
39
- import { useTheme } from '../../theme';
39
+ import { Theme, useTheme } from '../../theme';
40
40
  import type { State } from './StyledTextInput';
41
41
  import type { IconName } from '../Icon';
42
42
  import { omit, pick } from '../../utils/helpers';
43
+ import Typography from '../Typography';
43
44
 
44
45
  export type TextInputHandles = Pick<
45
46
  RNTextInput,
@@ -191,12 +192,14 @@ export const renderInput = ({
191
192
  nativeInputProps,
192
193
  renderInputValue,
193
194
  ref,
195
+ theme,
194
196
  }: {
195
197
  variant: TextInputVariant;
196
198
  nativeInputProps: NativeTextInputProps;
197
199
  multiline?: boolean;
198
200
  renderInputValue?: (inputProps: NativeTextInputProps) => React.ReactNode;
199
201
  ref?: React.Ref<RNTextInput>;
202
+ theme: Theme;
200
203
  }) => {
201
204
  return renderInputValue ? (
202
205
  renderInputValue(nativeInputProps)
@@ -206,6 +209,7 @@ export const renderInput = ({
206
209
  themeVariant={variant}
207
210
  multiline={variant === 'textarea' || nativeInputProps.multiline}
208
211
  ref={ref}
212
+ placeholderTextColor={theme.__hd__.textInput.colors.placeholder}
209
213
  />
210
214
  );
211
215
  };
@@ -503,7 +507,7 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
503
507
  *
504
508
  </StyledAsteriskLabelInsideTextInput>
505
509
  )}
506
- {label}
510
+ <Typography.Body>{label}</Typography.Body>
507
511
  </StyledLabelInsideTextInput>
508
512
  )}
509
513
  </StyledLabelContainerInsideTextInput>
@@ -516,6 +520,7 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
516
520
  ref: (rnTextInputRef) => {
517
521
  innerTextInput.current = rnTextInputRef;
518
522
  },
523
+ theme,
519
524
  })}
520
525
  </StyledTextInputAndLabelContainer>
521
526
  {renderSuffix({ state, loading, suffix })}