@hero-design/rn 8.12.2 → 8.12.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 (93) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/es/index.js +70 -36
  3. package/lib/index.js +70 -36
  4. package/package.json +5 -5
  5. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -0
  6. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  7. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
  8. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  9. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +21 -4
  10. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +189 -36
  11. package/src/components/Avatar/StyledAvatar.tsx +11 -4
  12. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +21 -4
  13. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +42 -8
  14. package/src/components/Badge/StyledBadge.tsx +4 -2
  15. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +132 -42
  16. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -0
  17. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  18. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  19. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  20. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +10 -0
  21. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +10 -0
  22. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
  23. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  24. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +2 -0
  25. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +16 -0
  26. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  27. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -0
  28. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  29. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -0
  30. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +4 -0
  31. package/src/components/Empty/StyledEmpty.tsx +14 -13
  32. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +76 -20
  33. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +56 -16
  34. package/src/components/FAB/StyledFAB.tsx +3 -2
  35. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -0
  36. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +22 -8
  37. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -0
  38. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +53 -8
  39. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
  40. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -0
  41. package/src/components/PinInput/StyledPinInput.tsx +6 -3
  42. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +93 -18
  43. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +73 -13
  44. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -0
  45. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -0
  46. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -0
  47. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
  48. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +23 -1
  49. package/src/components/SectionHeading/__tests__/index.spec.tsx +2 -2
  50. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  51. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
  52. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +38 -0
  53. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  54. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
  55. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +35 -0
  56. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
  57. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  58. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  59. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  60. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +24 -7
  61. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +22 -7
  62. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +29 -9
  63. package/src/components/Tabs/__tests__/index.spec.tsx +5 -5
  64. package/src/components/Tag/StyledTag.tsx +3 -2
  65. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +167 -62
  66. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +22 -0
  67. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
  68. package/src/components/TextInput/index.tsx +2 -0
  69. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +5 -0
  70. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +7 -0
  71. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +13 -0
  72. package/src/components/Typography/Text/StyledText.tsx +1 -0
  73. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +1 -0
  74. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +23 -0
  75. package/src/components/Typography/Text/index.tsx +3 -0
  76. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +19 -0
  77. package/src/theme/components/avatar.ts +11 -1
  78. package/src/theme/components/badge.ts +5 -1
  79. package/src/theme/components/pinInput.ts +14 -1
  80. package/src/theme/components/typography.ts +2 -0
  81. package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +4 -4
  82. package/types/components/Avatar/StyledAvatar.d.ts +4 -5
  83. package/types/components/Badge/StyledBadge.d.ts +3 -5
  84. package/types/components/Empty/StyledEmpty.d.ts +5 -9
  85. package/types/components/FAB/StyledFAB.d.ts +3 -5
  86. package/types/components/PinInput/StyledPinInput.d.ts +5 -9
  87. package/types/components/Tag/StyledTag.d.ts +3 -5
  88. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  89. package/types/components/Typography/Text/index.d.ts +2 -2
  90. package/types/theme/components/avatar.d.ts +10 -0
  91. package/types/theme/components/badge.d.ts +3 -0
  92. package/types/theme/components/pinInput.d.ts +4 -0
  93. package/types/theme/components/typography.d.ts +2 -0
@@ -133,6 +133,7 @@ exports[`CardCarousel should render correctly 1`] = `
133
133
  }
134
134
  >
135
135
  <Text
136
+ allowFontScaling={false}
136
137
  style={
137
138
  Array [
138
139
  Object {
@@ -216,6 +217,7 @@ exports[`CardCarousel should render correctly 1`] = `
216
217
  }
217
218
  >
218
219
  <Text
220
+ allowFontScaling={false}
219
221
  style={
220
222
  Array [
221
223
  Object {
@@ -173,6 +173,7 @@ exports[`Carousel renders basic carousel 1`] = `
173
173
  width={750}
174
174
  >
175
175
  <Text
176
+ allowFontScaling={false}
176
177
  style={
177
178
  Array [
178
179
  Object {
@@ -202,6 +203,7 @@ exports[`Carousel renders basic carousel 1`] = `
202
203
  Welcome to the new Employment Hero app
203
204
  </Text>
204
205
  <Text
206
+ allowFontScaling={false}
205
207
  style={
206
208
  Array [
207
209
  Object {
@@ -307,6 +309,7 @@ exports[`Carousel renders basic carousel 1`] = `
307
309
  }
308
310
  />
309
311
  <Text
312
+ allowFontScaling={false}
310
313
  style={
311
314
  Array [
312
315
  Object {
@@ -336,6 +339,7 @@ exports[`Carousel renders basic carousel 1`] = `
336
339
  Same app with a new look!
337
340
  </Text>
338
341
  <Text
342
+ allowFontScaling={false}
339
343
  style={
340
344
  Array [
341
345
  Object {
@@ -431,6 +435,7 @@ exports[`Carousel renders basic carousel 1`] = `
431
435
  width={750}
432
436
  >
433
437
  <Text
438
+ allowFontScaling={false}
434
439
  style={
435
440
  Array [
436
441
  Object {
@@ -460,6 +465,7 @@ exports[`Carousel renders basic carousel 1`] = `
460
465
  Easier to get around
461
466
  </Text>
462
467
  <Text
468
+ allowFontScaling={false}
463
469
  style={
464
470
  Array [
465
471
  Object {
@@ -553,6 +559,7 @@ exports[`Carousel renders basic carousel 1`] = `
553
559
  width={750}
554
560
  >
555
561
  <Text
562
+ allowFontScaling={false}
556
563
  style={
557
564
  Array [
558
565
  Object {
@@ -631,6 +638,7 @@ exports[`Carousel renders basic carousel 1`] = `
631
638
  }
632
639
  >
633
640
  <Text
641
+ allowFontScaling={false}
634
642
  disabled={false}
635
643
  ellipsizeMode="tail"
636
644
  numberOfLines={1}
@@ -916,6 +924,7 @@ exports[`Carousel should call skip call back when press skip 1`] = `
916
924
  width={750}
917
925
  >
918
926
  <Text
927
+ allowFontScaling={false}
919
928
  style={
920
929
  Array [
921
930
  Object {
@@ -945,6 +954,7 @@ exports[`Carousel should call skip call back when press skip 1`] = `
945
954
  Welcome to the new Employment Hero app
946
955
  </Text>
947
956
  <Text
957
+ allowFontScaling={false}
948
958
  style={
949
959
  Array [
950
960
  Object {
@@ -1050,6 +1060,7 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1050
1060
  }
1051
1061
  />
1052
1062
  <Text
1063
+ allowFontScaling={false}
1053
1064
  style={
1054
1065
  Array [
1055
1066
  Object {
@@ -1079,6 +1090,7 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1079
1090
  Same app with a new look!
1080
1091
  </Text>
1081
1092
  <Text
1093
+ allowFontScaling={false}
1082
1094
  style={
1083
1095
  Array [
1084
1096
  Object {
@@ -1174,6 +1186,7 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1174
1186
  width={750}
1175
1187
  >
1176
1188
  <Text
1189
+ allowFontScaling={false}
1177
1190
  style={
1178
1191
  Array [
1179
1192
  Object {
@@ -1203,6 +1216,7 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1203
1216
  Easier to get around
1204
1217
  </Text>
1205
1218
  <Text
1219
+ allowFontScaling={false}
1206
1220
  style={
1207
1221
  Array [
1208
1222
  Object {
@@ -1296,6 +1310,7 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1296
1310
  width={750}
1297
1311
  >
1298
1312
  <Text
1313
+ allowFontScaling={false}
1299
1314
  style={
1300
1315
  Array [
1301
1316
  Object {
@@ -1374,6 +1389,7 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1374
1389
  }
1375
1390
  >
1376
1391
  <Text
1392
+ allowFontScaling={false}
1377
1393
  disabled={false}
1378
1394
  ellipsizeMode="tail"
1379
1395
  numberOfLines={1}
@@ -154,6 +154,7 @@ exports[`Checkbox renders correctly when disabled is false, withBorder is false
154
154
  }
155
155
  >
156
156
  <Text
157
+ allowFontScaling={false}
157
158
  style={
158
159
  Array [
159
160
  Object {
@@ -238,6 +239,7 @@ exports[`Checkbox renders correctly when disabled is false, withBorder is true 1
238
239
  }
239
240
  >
240
241
  <Text
242
+ allowFontScaling={false}
241
243
  style={
242
244
  Array [
243
245
  Object {
@@ -318,6 +320,7 @@ exports[`Checkbox renders correctly when disabled is true, withBorder is false 1
318
320
  }
319
321
  >
320
322
  <Text
323
+ allowFontScaling={false}
321
324
  style={
322
325
  Array [
323
326
  Object {
@@ -402,6 +405,7 @@ exports[`Checkbox renders correctly when disabled is true, withBorder is true 1`
402
405
  }
403
406
  >
404
407
  <Text
408
+ allowFontScaling={false}
405
409
  style={
406
410
  Array [
407
411
  Object {
@@ -2,6 +2,7 @@
2
2
 
3
3
  exports[`Value has correct style 1`] = `
4
4
  <Text
5
+ allowFontScaling={false}
5
6
  style={
6
7
  Array [
7
8
  Object {
@@ -52,6 +52,7 @@ exports[`rendering renders correctly 1`] = `
52
52
  />
53
53
  </View>
54
54
  <Text
55
+ allowFontScaling={false}
55
56
  style={
56
57
  Array [
57
58
  Object {
@@ -170,6 +171,7 @@ exports[`rendering renders correctly when icon buttons are disabled 1`] = `
170
171
  />
171
172
  </View>
172
173
  <Text
174
+ allowFontScaling={false}
173
175
  style={
174
176
  Array [
175
177
  Object {
@@ -99,6 +99,7 @@ exports[`DatePickerAndroid renders correctly 1`] = `
99
99
  testID="label-container"
100
100
  >
101
101
  <Text
102
+ allowFontScaling={false}
102
103
  style={
103
104
  Array [
104
105
  Object {
@@ -148,6 +149,7 @@ exports[`DatePickerAndroid renders correctly 1`] = `
148
149
  "disabled": false,
149
150
  }
150
151
  }
152
+ allowFontScaling={false}
151
153
  editable={true}
152
154
  onBlur={[Function]}
153
155
  onChangeText={[Function]}
@@ -99,6 +99,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
99
99
  testID="label-container"
100
100
  >
101
101
  <Text
102
+ allowFontScaling={false}
102
103
  style={
103
104
  Array [
104
105
  Object {
@@ -148,6 +149,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
148
149
  "disabled": false,
149
150
  }
150
151
  }
152
+ allowFontScaling={false}
151
153
  editable={true}
152
154
  onBlur={[Function]}
153
155
  onChangeText={[Function]}
@@ -373,6 +375,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
373
375
  }
374
376
  >
375
377
  <Text
378
+ allowFontScaling={false}
376
379
  style={
377
380
  Array [
378
381
  Object {
@@ -512,6 +515,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
512
515
  }
513
516
  >
514
517
  <Text
518
+ allowFontScaling={false}
515
519
  disabled={false}
516
520
  ellipsizeMode="tail"
517
521
  numberOfLines={1}
@@ -1,5 +1,6 @@
1
- import { View, Text } from 'react-native';
1
+ import { View } from 'react-native';
2
2
  import styled from '@emotion/native';
3
+ import Typography from '../Typography';
3
4
 
4
5
  type ThemeVariant = 'light' | 'dark';
5
6
 
@@ -12,7 +13,7 @@ const StyledWrapper = styled(View)(({ theme }) => ({
12
13
  padding: theme.__hd__.empty.space.wrapperPadding,
13
14
  }));
14
15
 
15
- const StyledTitle = styled(Text)<{ themeVariant: ThemeVariant }>(
16
+ const StyledTitle = styled(Typography.Text)<{ themeVariant: ThemeVariant }>(
16
17
  ({ theme, themeVariant }) => ({
17
18
  fontFamily: theme.__hd__.empty.fonts.title,
18
19
  fontSize: theme.__hd__.empty.fontSizes.title,
@@ -25,16 +26,16 @@ const StyledTitle = styled(Text)<{ themeVariant: ThemeVariant }>(
25
26
  })
26
27
  );
27
28
 
28
- const StyledDescription = styled(Text)<{ themeVariant: ThemeVariant }>(
29
- ({ theme, themeVariant }) => ({
30
- fontFamily: theme.__hd__.empty.fonts.description,
31
- fontSize: theme.__hd__.empty.fontSizes.description,
32
- textAlign: 'center',
33
- color:
34
- themeVariant === 'dark'
35
- ? theme.__hd__.empty.colors.invertedSubduedText
36
- : theme.__hd__.empty.colors.subduedText,
37
- })
38
- );
29
+ const StyledDescription = styled(Typography.Text)<{
30
+ themeVariant: ThemeVariant;
31
+ }>(({ theme, themeVariant }) => ({
32
+ fontFamily: theme.__hd__.empty.fonts.description,
33
+ fontSize: theme.__hd__.empty.fontSizes.description,
34
+ textAlign: 'center',
35
+ color:
36
+ themeVariant === 'dark'
37
+ ? theme.__hd__.empty.colors.invertedSubduedText
38
+ : theme.__hd__.empty.colors.subduedText,
39
+ }));
39
40
 
40
41
  export { StyledWrapper, StyledTitle, StyledDescription };
@@ -17,34 +17,62 @@ exports[`Empty renders empty state content correctly 1`] = `
17
17
  }
18
18
  >
19
19
  <Text
20
+ allowFontScaling={false}
20
21
  style={
21
22
  Array [
22
23
  Object {
23
24
  "color": "#001f23",
24
- "fontFamily": "RebondGrotesque-SemiBold",
25
- "fontSize": 24,
26
- "marginBottom": 16,
27
- "textAlign": "center",
25
+ "fontFamily": "BeVietnamPro-Regular",
26
+ "fontSize": 14,
27
+ "letterSpacing": 0.42,
28
+ "lineHeight": 22,
28
29
  },
29
- undefined,
30
+ Array [
31
+ Object {
32
+ "color": "#001f23",
33
+ "fontFamily": "RebondGrotesque-SemiBold",
34
+ "fontSize": 24,
35
+ "marginBottom": 16,
36
+ "textAlign": "center",
37
+ },
38
+ undefined,
39
+ ],
30
40
  ]
31
41
  }
42
+ themeFontSize="medium"
43
+ themeFontWeight="regular"
44
+ themeIntent="body"
45
+ themeTypeface="neutral"
32
46
  themeVariant="light"
33
47
  >
34
48
  You have no notification at this time
35
49
  </Text>
36
50
  <Text
51
+ allowFontScaling={false}
37
52
  style={
38
53
  Array [
39
54
  Object {
40
- "color": "#4d6265",
41
- "fontFamily": "RebondGrotesque",
42
- "fontSize": 18,
43
- "textAlign": "center",
55
+ "color": "#001f23",
56
+ "fontFamily": "BeVietnamPro-Regular",
57
+ "fontSize": 14,
58
+ "letterSpacing": 0.42,
59
+ "lineHeight": 22,
44
60
  },
45
- undefined,
61
+ Array [
62
+ Object {
63
+ "color": "#4d6265",
64
+ "fontFamily": "RebondGrotesque",
65
+ "fontSize": 18,
66
+ "textAlign": "center",
67
+ },
68
+ undefined,
69
+ ],
46
70
  ]
47
71
  }
72
+ themeFontSize="medium"
73
+ themeFontWeight="regular"
74
+ themeIntent="body"
75
+ themeTypeface="neutral"
48
76
  themeVariant="light"
49
77
  >
50
78
  We'll notify you later.
@@ -84,34 +112,62 @@ exports[`Empty renders empty state with image correctly 1`] = `
84
112
  }
85
113
  />
86
114
  <Text
115
+ allowFontScaling={false}
87
116
  style={
88
117
  Array [
89
118
  Object {
90
119
  "color": "#001f23",
91
- "fontFamily": "RebondGrotesque-SemiBold",
92
- "fontSize": 24,
93
- "marginBottom": 16,
94
- "textAlign": "center",
120
+ "fontFamily": "BeVietnamPro-Regular",
121
+ "fontSize": 14,
122
+ "letterSpacing": 0.42,
123
+ "lineHeight": 22,
95
124
  },
96
- undefined,
125
+ Array [
126
+ Object {
127
+ "color": "#001f23",
128
+ "fontFamily": "RebondGrotesque-SemiBold",
129
+ "fontSize": 24,
130
+ "marginBottom": 16,
131
+ "textAlign": "center",
132
+ },
133
+ undefined,
134
+ ],
97
135
  ]
98
136
  }
137
+ themeFontSize="medium"
138
+ themeFontWeight="regular"
139
+ themeIntent="body"
140
+ themeTypeface="neutral"
99
141
  themeVariant="light"
100
142
  >
101
143
  You have no notification at this time
102
144
  </Text>
103
145
  <Text
146
+ allowFontScaling={false}
104
147
  style={
105
148
  Array [
106
149
  Object {
107
- "color": "#4d6265",
108
- "fontFamily": "RebondGrotesque",
109
- "fontSize": 18,
110
- "textAlign": "center",
150
+ "color": "#001f23",
151
+ "fontFamily": "BeVietnamPro-Regular",
152
+ "fontSize": 14,
153
+ "letterSpacing": 0.42,
154
+ "lineHeight": 22,
111
155
  },
112
- undefined,
156
+ Array [
157
+ Object {
158
+ "color": "#4d6265",
159
+ "fontFamily": "RebondGrotesque",
160
+ "fontSize": 18,
161
+ "textAlign": "center",
162
+ },
163
+ undefined,
164
+ ],
113
165
  ]
114
166
  }
167
+ themeFontSize="medium"
168
+ themeFontWeight="regular"
169
+ themeIntent="body"
170
+ themeTypeface="neutral"
115
171
  themeVariant="light"
116
172
  >
117
173
  We'll notify you later.
@@ -53,6 +53,7 @@ exports[`ActionGroup has active false 1`] = `
53
53
  testID="action-group"
54
54
  >
55
55
  <Text
56
+ allowFontScaling={false}
56
57
  style={
57
58
  Array [
58
59
  Object {
@@ -136,6 +137,7 @@ exports[`ActionGroup has active false 1`] = `
136
137
  themeSize="medium"
137
138
  />
138
139
  <Text
140
+ allowFontScaling={false}
139
141
  style={
140
142
  Array [
141
143
  Object {
@@ -216,6 +218,7 @@ exports[`ActionGroup has active false 1`] = `
216
218
  themeSize="medium"
217
219
  />
218
220
  <Text
221
+ allowFontScaling={false}
219
222
  style={
220
223
  Array [
221
224
  Object {
@@ -296,6 +299,7 @@ exports[`ActionGroup has active false 1`] = `
296
299
  themeSize="medium"
297
300
  />
298
301
  <Text
302
+ allowFontScaling={false}
299
303
  style={
300
304
  Array [
301
305
  Object {
@@ -376,6 +380,7 @@ exports[`ActionGroup has active false 1`] = `
376
380
  themeSize="medium"
377
381
  />
378
382
  <Text
383
+ allowFontScaling={false}
379
384
  style={
380
385
  Array [
381
386
  Object {
@@ -456,6 +461,7 @@ exports[`ActionGroup has active false 1`] = `
456
461
  themeSize="medium"
457
462
  />
458
463
  <Text
464
+ allowFontScaling={false}
459
465
  style={
460
466
  Array [
461
467
  Object {
@@ -546,20 +552,34 @@ exports[`ActionGroup has active false 1`] = `
546
552
  themeSize="xsmall"
547
553
  />
548
554
  <Text
555
+ allowFontScaling={false}
549
556
  style={
550
557
  Array [
551
558
  Object {
552
- "color": "#ffffff",
553
- "fontFamily": "BeVietnamPro-SemiBold",
554
- "fontSize": 16,
555
- "lineHeight": 24,
556
- "marginHorizontal": 8,
557
- "textAlign": "center",
558
- "textAlignVertical": "center",
559
+ "color": "#001f23",
560
+ "fontFamily": "BeVietnamPro-Regular",
561
+ "fontSize": 14,
562
+ "letterSpacing": 0.42,
563
+ "lineHeight": 22,
559
564
  },
560
- undefined,
565
+ Array [
566
+ Object {
567
+ "color": "#ffffff",
568
+ "fontFamily": "BeVietnamPro-SemiBold",
569
+ "fontSize": 16,
570
+ "lineHeight": 24,
571
+ "marginHorizontal": 8,
572
+ "textAlign": "center",
573
+ "textAlignVertical": "center",
574
+ },
575
+ undefined,
576
+ ],
561
577
  ]
562
578
  }
579
+ themeFontSize="medium"
580
+ themeFontWeight="regular"
581
+ themeIntent="body"
582
+ themeTypeface="neutral"
563
583
  >
564
584
  Shout out
565
585
  </Text>
@@ -620,6 +640,7 @@ exports[`ActionGroup has active true 1`] = `
620
640
  testID="action-group"
621
641
  >
622
642
  <Text
643
+ allowFontScaling={false}
623
644
  style={
624
645
  Array [
625
646
  Object {
@@ -703,6 +724,7 @@ exports[`ActionGroup has active true 1`] = `
703
724
  themeSize="medium"
704
725
  />
705
726
  <Text
727
+ allowFontScaling={false}
706
728
  style={
707
729
  Array [
708
730
  Object {
@@ -783,6 +805,7 @@ exports[`ActionGroup has active true 1`] = `
783
805
  themeSize="medium"
784
806
  />
785
807
  <Text
808
+ allowFontScaling={false}
786
809
  style={
787
810
  Array [
788
811
  Object {
@@ -863,6 +886,7 @@ exports[`ActionGroup has active true 1`] = `
863
886
  themeSize="medium"
864
887
  />
865
888
  <Text
889
+ allowFontScaling={false}
866
890
  style={
867
891
  Array [
868
892
  Object {
@@ -943,6 +967,7 @@ exports[`ActionGroup has active true 1`] = `
943
967
  themeSize="medium"
944
968
  />
945
969
  <Text
970
+ allowFontScaling={false}
946
971
  style={
947
972
  Array [
948
973
  Object {
@@ -1023,6 +1048,7 @@ exports[`ActionGroup has active true 1`] = `
1023
1048
  themeSize="medium"
1024
1049
  />
1025
1050
  <Text
1051
+ allowFontScaling={false}
1026
1052
  style={
1027
1053
  Array [
1028
1054
  Object {
@@ -1113,20 +1139,34 @@ exports[`ActionGroup has active true 1`] = `
1113
1139
  themeSize="xsmall"
1114
1140
  />
1115
1141
  <Text
1142
+ allowFontScaling={false}
1116
1143
  style={
1117
1144
  Array [
1118
1145
  Object {
1119
- "color": "#ffffff",
1120
- "fontFamily": "BeVietnamPro-SemiBold",
1121
- "fontSize": 16,
1122
- "lineHeight": 24,
1123
- "marginHorizontal": 8,
1124
- "textAlign": "center",
1125
- "textAlignVertical": "center",
1146
+ "color": "#001f23",
1147
+ "fontFamily": "BeVietnamPro-Regular",
1148
+ "fontSize": 14,
1149
+ "letterSpacing": 0.42,
1150
+ "lineHeight": 22,
1126
1151
  },
1127
- undefined,
1152
+ Array [
1153
+ Object {
1154
+ "color": "#ffffff",
1155
+ "fontFamily": "BeVietnamPro-SemiBold",
1156
+ "fontSize": 16,
1157
+ "lineHeight": 24,
1158
+ "marginHorizontal": 8,
1159
+ "textAlign": "center",
1160
+ "textAlignVertical": "center",
1161
+ },
1162
+ undefined,
1163
+ ],
1128
1164
  ]
1129
1165
  }
1166
+ themeFontSize="medium"
1167
+ themeFontWeight="regular"
1168
+ themeIntent="body"
1169
+ themeTypeface="neutral"
1130
1170
  >
1131
1171
  Shout out
1132
1172
  </Text>
@@ -1,8 +1,9 @@
1
- import { Text, TouchableHighlight } from 'react-native';
1
+ import { TouchableHighlight } from 'react-native';
2
2
  import styled from '@emotion/native';
3
3
  import type { TextProps, TouchableHighlightProps } from 'react-native';
4
4
  import Icon from '../Icon';
5
5
  import type { IconProps } from '../Icon';
6
+ import Typography from '../Typography';
6
7
 
7
8
  const StyledFABContainer = styled(TouchableHighlight)<TouchableHighlightProps>(
8
9
  ({ theme }) => ({
@@ -25,7 +26,7 @@ const StyledFABIcon = styled(Icon)<IconProps>(({ theme }) => ({
25
26
  textAlign: 'center',
26
27
  }));
27
28
 
28
- const StyledFABText = styled(Text)<TextProps>(({ theme }) => ({
29
+ const StyledFABText = styled(Typography.Text)<TextProps>(({ theme }) => ({
29
30
  fontFamily: theme.__hd__.fab.fonts.title,
30
31
  fontSize: theme.__hd__.fab.fontSizes.title,
31
32
  lineHeight: theme.__hd__.fab.lineHeights.title,
@@ -29,6 +29,7 @@ exports[`StyledFABContainer renders correctly 1`] = `
29
29
  }
30
30
  >
31
31
  <Text
32
+ allowFontScaling={false}
32
33
  style={
33
34
  Array [
34
35
  Object {
@@ -179,20 +179,34 @@ exports[`FAB when title has value renders correctly 1`] = `
179
179
  themeSize="xsmall"
180
180
  />
181
181
  <Text
182
+ allowFontScaling={false}
182
183
  style={
183
184
  Array [
184
185
  Object {
185
- "color": "#ffffff",
186
- "fontFamily": "BeVietnamPro-SemiBold",
187
- "fontSize": 16,
188
- "lineHeight": 24,
189
- "marginHorizontal": 8,
190
- "textAlign": "center",
191
- "textAlignVertical": "center",
186
+ "color": "#001f23",
187
+ "fontFamily": "BeVietnamPro-Regular",
188
+ "fontSize": 14,
189
+ "letterSpacing": 0.42,
190
+ "lineHeight": 22,
192
191
  },
193
- undefined,
192
+ Array [
193
+ Object {
194
+ "color": "#ffffff",
195
+ "fontFamily": "BeVietnamPro-SemiBold",
196
+ "fontSize": 16,
197
+ "lineHeight": 24,
198
+ "marginHorizontal": 8,
199
+ "textAlign": "center",
200
+ "textAlignVertical": "center",
201
+ },
202
+ undefined,
203
+ ],
194
204
  ]
195
205
  }
206
+ themeFontSize="medium"
207
+ themeFontWeight="regular"
208
+ themeIntent="body"
209
+ themeTypeface="neutral"
196
210
  >
197
211
  Shout out
198
212
  </Text>