@hero-design/rn 8.12.3 → 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.
- package/.turbo/turbo-build.log +2 -2
- package/es/index.js +47 -15
- package/lib/index.js +47 -15
- package/package.json +5 -5
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -0
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +21 -4
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +189 -36
- package/src/components/Avatar/StyledAvatar.tsx +11 -4
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +21 -4
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +42 -8
- package/src/components/Badge/StyledBadge.tsx +4 -2
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +132 -42
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -0
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +10 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +10 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +2 -0
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +16 -0
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +4 -0
- package/src/components/Empty/StyledEmpty.tsx +14 -13
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +76 -20
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +56 -16
- package/src/components/FAB/StyledFAB.tsx +3 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -0
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +22 -8
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +53 -8
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -0
- package/src/components/PinInput/StyledPinInput.tsx +6 -3
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +93 -18
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +73 -13
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -0
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -0
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +23 -1
- package/src/components/SectionHeading/__tests__/index.spec.tsx +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +38 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +35 -0
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +24 -7
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +22 -7
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +27 -7
- package/src/components/Tag/StyledTag.tsx +3 -2
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +167 -62
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +22 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
- package/src/components/TextInput/index.tsx +2 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +5 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +7 -0
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +13 -0
- package/src/components/Typography/Text/index.tsx +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +17 -0
- package/src/theme/components/avatar.ts +11 -1
- package/src/theme/components/badge.ts +5 -1
- package/src/theme/components/pinInput.ts +14 -1
- package/types/components/Avatar/StyledAvatar.d.ts +4 -5
- package/types/components/Badge/StyledBadge.d.ts +3 -5
- package/types/components/Empty/StyledEmpty.d.ts +5 -9
- package/types/components/FAB/StyledFAB.d.ts +3 -5
- package/types/components/PinInput/StyledPinInput.d.ts +5 -9
- package/types/components/Tag/StyledTag.d.ts +3 -5
- package/types/components/Typography/Text/index.d.ts +1 -1
- package/types/theme/components/avatar.d.ts +10 -0
- package/types/theme/components/badge.d.ts +3 -0
- package/types/theme/components/pinInput.d.ts +4 -0
|
@@ -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 {
|
|
@@ -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
|
|
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)<{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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": "
|
|
25
|
-
"fontSize":
|
|
26
|
-
"
|
|
27
|
-
"
|
|
25
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
26
|
+
"fontSize": 14,
|
|
27
|
+
"letterSpacing": 0.42,
|
|
28
|
+
"lineHeight": 22,
|
|
28
29
|
},
|
|
29
|
-
|
|
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": "#
|
|
41
|
-
"fontFamily": "
|
|
42
|
-
"fontSize":
|
|
43
|
-
"
|
|
55
|
+
"color": "#001f23",
|
|
56
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
57
|
+
"fontSize": 14,
|
|
58
|
+
"letterSpacing": 0.42,
|
|
59
|
+
"lineHeight": 22,
|
|
44
60
|
},
|
|
45
|
-
|
|
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": "
|
|
92
|
-
"fontSize":
|
|
93
|
-
"
|
|
94
|
-
"
|
|
120
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
121
|
+
"fontSize": 14,
|
|
122
|
+
"letterSpacing": 0.42,
|
|
123
|
+
"lineHeight": 22,
|
|
95
124
|
},
|
|
96
|
-
|
|
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": "#
|
|
108
|
-
"fontFamily": "
|
|
109
|
-
"fontSize":
|
|
110
|
-
"
|
|
150
|
+
"color": "#001f23",
|
|
151
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
152
|
+
"fontSize": 14,
|
|
153
|
+
"letterSpacing": 0.42,
|
|
154
|
+
"lineHeight": 22,
|
|
111
155
|
},
|
|
112
|
-
|
|
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": "#
|
|
553
|
-
"fontFamily": "BeVietnamPro-
|
|
554
|
-
"fontSize":
|
|
555
|
-
"
|
|
556
|
-
"
|
|
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
|
-
|
|
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": "#
|
|
1120
|
-
"fontFamily": "BeVietnamPro-
|
|
1121
|
-
"fontSize":
|
|
1122
|
-
"
|
|
1123
|
-
"
|
|
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
|
-
|
|
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 {
|
|
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,
|
|
@@ -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": "#
|
|
186
|
-
"fontFamily": "BeVietnamPro-
|
|
187
|
-
"fontSize":
|
|
188
|
-
"
|
|
189
|
-
"
|
|
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
|
-
|
|
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>
|
|
@@ -67,6 +67,7 @@ exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`
|
|
|
67
67
|
}
|
|
68
68
|
>
|
|
69
69
|
<Text
|
|
70
|
+
allowFontScaling={false}
|
|
70
71
|
style={
|
|
71
72
|
Array [
|
|
72
73
|
Object {
|
|
@@ -87,6 +88,7 @@ exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`
|
|
|
87
88
|
List item
|
|
88
89
|
</Text>
|
|
89
90
|
<Text
|
|
91
|
+
allowFontScaling={false}
|
|
90
92
|
style={
|
|
91
93
|
Array [
|
|
92
94
|
Object {
|
|
@@ -203,6 +205,7 @@ exports[`BasicListItem when suffix and prefix are react element renders correctl
|
|
|
203
205
|
}
|
|
204
206
|
>
|
|
205
207
|
<Text
|
|
208
|
+
allowFontScaling={false}
|
|
206
209
|
style={
|
|
207
210
|
Array [
|
|
208
211
|
Object {
|
|
@@ -223,6 +226,7 @@ exports[`BasicListItem when suffix and prefix are react element renders correctl
|
|
|
223
226
|
List item
|
|
224
227
|
</Text>
|
|
225
228
|
<Text
|
|
229
|
+
allowFontScaling={false}
|
|
226
230
|
style={
|
|
227
231
|
Array [
|
|
228
232
|
Object {
|