@hero-design/rn 8.27.1 → 8.27.3
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 +1 -1
- package/es/index.js +44 -76
- package/lib/index.js +44 -76
- package/package.json +5 -5
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -0
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +6 -6
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Collapse/index.tsx +25 -4
- package/src/components/DatePicker/DatePickerIOS.tsx +19 -1
- package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +25 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +9 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +3 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +3 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +3 -3
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +3 -17
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +1065 -557
- package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +15 -9
- package/src/components/FAB/ActionGroup/index.tsx +35 -97
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +3 -3
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -3
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Tag/StyledTag.tsx +1 -0
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +19 -10
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1 -1
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +24 -24
- package/src/components/TextInput/index.tsx +1 -1
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +4 -4
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +4 -4
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +2 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +10 -8
- package/src/theme/components/fab.ts +0 -1
- package/src/theme/components/tag.ts +5 -2
- package/src/theme/global/typography.ts +2 -2
- package/types/components/Collapse/index.d.ts +1 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +1 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +1 -7
- package/types/theme/components/fab.d.ts +0 -1
- package/types/theme/components/tag.d.ts +3 -0
|
@@ -10,7 +10,7 @@ describe('ActionGroup', () => {
|
|
|
10
10
|
${true}
|
|
11
11
|
${false}
|
|
12
12
|
`('has active $active', ({ active }) => {
|
|
13
|
-
const { toJSON,
|
|
13
|
+
const { toJSON, getByTestId, getByText } = renderWithTheme(
|
|
14
14
|
<ActionGroup
|
|
15
15
|
fabTitle="Shout out"
|
|
16
16
|
active={active}
|
|
@@ -39,19 +39,25 @@ describe('ActionGroup', () => {
|
|
|
39
39
|
|
|
40
40
|
expect(toJSON()).toMatchSnapshot();
|
|
41
41
|
|
|
42
|
-
expect(
|
|
43
|
-
expect(
|
|
44
|
-
expect(
|
|
45
|
-
expect(
|
|
46
|
-
expect(
|
|
47
|
-
expect(
|
|
42
|
+
expect(getByText('What would you like to create?')).toBeDefined();
|
|
43
|
+
expect(getByText('Shout out')).toBeDefined();
|
|
44
|
+
expect(getByTestId('speaker-action-item')).toBeDefined();
|
|
45
|
+
expect(getByTestId('target-action-item')).toBeDefined();
|
|
46
|
+
expect(getByTestId('plane-action-item')).toBeDefined();
|
|
47
|
+
expect(getByTestId('health-bag-action-item')).toBeDefined();
|
|
48
48
|
|
|
49
49
|
if (active) {
|
|
50
50
|
// verify action group appears
|
|
51
|
-
expect(
|
|
51
|
+
expect(getByTestId('action-group')).toHaveStyle({
|
|
52
52
|
transform: [{ translateX: 0 }],
|
|
53
53
|
});
|
|
54
|
-
expect(
|
|
54
|
+
expect(getByTestId('back-drop')).toHaveProp('pointerEvents', 'auto');
|
|
55
|
+
} else {
|
|
56
|
+
// verify action group disappears
|
|
57
|
+
expect(getByTestId('action-group')).toHaveStyle({
|
|
58
|
+
transform: [{ translateX: 400 }],
|
|
59
|
+
});
|
|
60
|
+
expect(getByTestId('back-drop')).toHaveProp('pointerEvents', 'box-none');
|
|
55
61
|
}
|
|
56
62
|
});
|
|
57
63
|
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { Animated, Easing, Platform, View } from 'react-native';
|
|
2
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { Animated, Easing, Modal, Platform, View } from 'react-native';
|
|
4
|
-
import { useTheme } from '../../../theme';
|
|
5
|
-
import type { IconName } from '../../Icon';
|
|
6
|
-
import type { ActionItemProps } from './ActionItem';
|
|
7
4
|
import ActionItem from './ActionItem';
|
|
8
5
|
import {
|
|
9
|
-
StyledActionGroupContainer,
|
|
10
6
|
StyledBackdrop,
|
|
11
7
|
StyledContainer,
|
|
12
8
|
StyledFAB,
|
|
13
9
|
StyledHeaderText,
|
|
14
|
-
|
|
10
|
+
StyledActionGroupContainer,
|
|
15
11
|
} from './StyledActionGroup';
|
|
12
|
+
import type { IconName } from '../../Icon';
|
|
13
|
+
import type { ActionItemProps } from './ActionItem';
|
|
16
14
|
|
|
17
15
|
type ActionItemsContainerProps = {
|
|
18
16
|
style?: StyleProp<ViewStyle>;
|
|
@@ -76,7 +74,6 @@ export interface ActionGroupProps {
|
|
|
76
74
|
|
|
77
75
|
testID?: string;
|
|
78
76
|
}
|
|
79
|
-
|
|
80
77
|
const ActionGroup = ({
|
|
81
78
|
headerTitle,
|
|
82
79
|
onPress,
|
|
@@ -87,48 +84,18 @@ const ActionGroup = ({
|
|
|
87
84
|
fabTitle,
|
|
88
85
|
fabIcon = 'add',
|
|
89
86
|
}: ActionGroupProps) => {
|
|
90
|
-
const theme = useTheme();
|
|
91
|
-
// Internal state to control the animation of the action group
|
|
92
|
-
const [visible, setVisibility] = useState(active);
|
|
93
87
|
const tranlateXAnimation = useRef<Animated.Value>(
|
|
94
88
|
new Animated.Value(active ? 1 : 0)
|
|
95
89
|
);
|
|
96
|
-
|
|
97
|
-
useEffect(() => {
|
|
98
|
-
if (active && !visible) {
|
|
99
|
-
setVisibility(true);
|
|
100
|
-
}
|
|
101
|
-
}, [active]);
|
|
102
|
-
|
|
103
90
|
useEffect(() => {
|
|
104
|
-
if (active) {
|
|
105
|
-
const animation = Animated.timing(tranlateXAnimation.current, {
|
|
106
|
-
toValue: 1,
|
|
107
|
-
useNativeDriver: Platform.OS === 'ios' || Platform.OS === 'android',
|
|
108
|
-
easing: Easing.inOut(Easing.cubic),
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
animation.start();
|
|
112
|
-
}
|
|
113
|
-
}, [active]);
|
|
114
|
-
|
|
115
|
-
// Make sure the animation finishes running before closing the modal
|
|
116
|
-
const onInternalFABPress = useCallback(() => {
|
|
117
|
-
if (!onPress) {
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
91
|
const animation = Animated.timing(tranlateXAnimation.current, {
|
|
122
|
-
toValue: 0,
|
|
92
|
+
toValue: active ? 1 : 0,
|
|
123
93
|
useNativeDriver: Platform.OS === 'ios' || Platform.OS === 'android',
|
|
124
94
|
easing: Easing.inOut(Easing.cubic),
|
|
125
95
|
});
|
|
126
96
|
|
|
127
|
-
animation.start(
|
|
128
|
-
|
|
129
|
-
onPress();
|
|
130
|
-
});
|
|
131
|
-
}, [visible]);
|
|
97
|
+
animation.start();
|
|
98
|
+
}, [active]);
|
|
132
99
|
|
|
133
100
|
const interpolatedTranlateXAnimation = tranlateXAnimation.current.interpolate(
|
|
134
101
|
{
|
|
@@ -150,63 +117,34 @@ const ActionGroup = ({
|
|
|
150
117
|
|
|
151
118
|
return (
|
|
152
119
|
<StyledContainer testID={testID} pointerEvents="box-none" style={style}>
|
|
153
|
-
<
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
120
|
+
<StyledBackdrop
|
|
121
|
+
pointerEvents={active ? 'auto' : 'box-none'}
|
|
122
|
+
testID="back-drop"
|
|
123
|
+
style={{ opacity: interpolatedBackdropOpacityAnimation }}
|
|
124
|
+
/>
|
|
125
|
+
<StyledActionGroupContainer
|
|
126
|
+
pointerEvents={active ? 'auto' : 'none'}
|
|
127
|
+
testID="action-group"
|
|
128
|
+
style={{
|
|
129
|
+
opacity: interpolatedActionGroupOpacityAnimation,
|
|
130
|
+
transform: [{ translateX: interpolatedTranlateXAnimation }],
|
|
131
|
+
}}
|
|
158
132
|
>
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}}
|
|
175
|
-
>
|
|
176
|
-
{!!headerTitle && (
|
|
177
|
-
<StyledHeaderText testID="header-text">
|
|
178
|
-
{headerTitle}
|
|
179
|
-
</StyledHeaderText>
|
|
180
|
-
)}
|
|
181
|
-
<ActionItemsListComponent items={items} />
|
|
182
|
-
</StyledActionGroupContainer>
|
|
183
|
-
|
|
184
|
-
{active && (
|
|
185
|
-
<StyledFAB
|
|
186
|
-
testID="fab"
|
|
187
|
-
icon={fabIcon}
|
|
188
|
-
onPress={onInternalFABPress}
|
|
189
|
-
animated
|
|
190
|
-
active={active}
|
|
191
|
-
title={fabTitle}
|
|
192
|
-
style={{
|
|
193
|
-
marginBottom: theme.__hd__.fab.space.internalFABMarginBottom,
|
|
194
|
-
}}
|
|
195
|
-
/>
|
|
196
|
-
)}
|
|
197
|
-
</StyledModalView>
|
|
198
|
-
</Modal>
|
|
199
|
-
|
|
200
|
-
{!active && (
|
|
201
|
-
<StyledFAB
|
|
202
|
-
testID="fab"
|
|
203
|
-
icon={fabIcon}
|
|
204
|
-
onPress={onPress}
|
|
205
|
-
animated
|
|
206
|
-
active={active}
|
|
207
|
-
title={fabTitle}
|
|
208
|
-
/>
|
|
209
|
-
)}
|
|
133
|
+
{!!headerTitle && (
|
|
134
|
+
<StyledHeaderText testID="header-text">
|
|
135
|
+
{headerTitle}
|
|
136
|
+
</StyledHeaderText>
|
|
137
|
+
)}
|
|
138
|
+
<ActionItemsListComponent items={items} />
|
|
139
|
+
</StyledActionGroupContainer>
|
|
140
|
+
<StyledFAB
|
|
141
|
+
testID="fab"
|
|
142
|
+
icon={fabIcon}
|
|
143
|
+
onPress={onPress}
|
|
144
|
+
animated
|
|
145
|
+
active={active}
|
|
146
|
+
title={fabTitle}
|
|
147
|
+
/>
|
|
210
148
|
</StyledContainer>
|
|
211
149
|
);
|
|
212
150
|
};
|
|
@@ -96,7 +96,7 @@ exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`
|
|
|
96
96
|
"fontFamily": "BeVietnamPro-Regular",
|
|
97
97
|
"fontSize": 12,
|
|
98
98
|
"letterSpacing": 0.36,
|
|
99
|
-
"lineHeight":
|
|
99
|
+
"lineHeight": 16,
|
|
100
100
|
},
|
|
101
101
|
undefined,
|
|
102
102
|
]
|
|
@@ -234,7 +234,7 @@ exports[`BasicListItem when suffix and prefix are react element renders correctl
|
|
|
234
234
|
"fontFamily": "BeVietnamPro-Regular",
|
|
235
235
|
"fontSize": 12,
|
|
236
236
|
"letterSpacing": 0.36,
|
|
237
|
-
"lineHeight":
|
|
237
|
+
"lineHeight": 16,
|
|
238
238
|
},
|
|
239
239
|
undefined,
|
|
240
240
|
]
|
|
@@ -173,7 +173,7 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
173
173
|
"fontFamily": "BeVietnamPro-Regular",
|
|
174
174
|
"fontSize": 12,
|
|
175
175
|
"letterSpacing": 0.36,
|
|
176
|
-
"lineHeight":
|
|
176
|
+
"lineHeight": 16,
|
|
177
177
|
},
|
|
178
178
|
undefined,
|
|
179
179
|
]
|
|
@@ -421,7 +421,7 @@ exports[`ListItem renders correctly ListItem with icon 1`] = `
|
|
|
421
421
|
"fontFamily": "BeVietnamPro-Regular",
|
|
422
422
|
"fontSize": 12,
|
|
423
423
|
"letterSpacing": 0.36,
|
|
424
|
-
"lineHeight":
|
|
424
|
+
"lineHeight": 16,
|
|
425
425
|
},
|
|
426
426
|
undefined,
|
|
427
427
|
]
|
|
@@ -762,7 +762,7 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
|
|
|
762
762
|
"fontFamily": "BeVietnamPro-Regular",
|
|
763
763
|
"fontSize": 12,
|
|
764
764
|
"letterSpacing": 0.36,
|
|
765
|
-
"lineHeight":
|
|
765
|
+
"lineHeight": 16,
|
|
766
766
|
},
|
|
767
767
|
undefined,
|
|
768
768
|
]
|
|
@@ -187,14 +187,14 @@ Array [
|
|
|
187
187
|
Array [
|
|
188
188
|
Object {
|
|
189
189
|
"color": "#001f23",
|
|
190
|
-
"fontSize":
|
|
190
|
+
"fontSize": 24,
|
|
191
191
|
},
|
|
192
192
|
undefined,
|
|
193
193
|
]
|
|
194
194
|
}
|
|
195
195
|
testID="input-suffix"
|
|
196
196
|
themeIntent="text"
|
|
197
|
-
themeSize="
|
|
197
|
+
themeSize="medium"
|
|
198
198
|
/>
|
|
199
199
|
</View>
|
|
200
200
|
<View
|
|
@@ -1486,7 +1486,7 @@ Array [
|
|
|
1486
1486
|
"left": 16,
|
|
1487
1487
|
"paddingHorizontal": 4,
|
|
1488
1488
|
"position": "absolute",
|
|
1489
|
-
"top": -
|
|
1489
|
+
"top": -4,
|
|
1490
1490
|
"zIndex": 1,
|
|
1491
1491
|
},
|
|
1492
1492
|
Object {
|
|
@@ -1587,14 +1587,14 @@ Array [
|
|
|
1587
1587
|
Array [
|
|
1588
1588
|
Object {
|
|
1589
1589
|
"color": "#001f23",
|
|
1590
|
-
"fontSize":
|
|
1590
|
+
"fontSize": 24,
|
|
1591
1591
|
},
|
|
1592
1592
|
undefined,
|
|
1593
1593
|
]
|
|
1594
1594
|
}
|
|
1595
1595
|
testID="input-suffix"
|
|
1596
1596
|
themeIntent="text"
|
|
1597
|
-
themeSize="
|
|
1597
|
+
themeSize="medium"
|
|
1598
1598
|
/>
|
|
1599
1599
|
</View>
|
|
1600
1600
|
<View
|
|
@@ -1719,7 +1719,7 @@ Array [
|
|
|
1719
1719
|
"left": 16,
|
|
1720
1720
|
"paddingHorizontal": 4,
|
|
1721
1721
|
"position": "absolute",
|
|
1722
|
-
"top": -
|
|
1722
|
+
"top": -4,
|
|
1723
1723
|
"zIndex": 1,
|
|
1724
1724
|
},
|
|
1725
1725
|
Object {
|
|
@@ -1820,14 +1820,14 @@ Array [
|
|
|
1820
1820
|
Array [
|
|
1821
1821
|
Object {
|
|
1822
1822
|
"color": "#001f23",
|
|
1823
|
-
"fontSize":
|
|
1823
|
+
"fontSize": 24,
|
|
1824
1824
|
},
|
|
1825
1825
|
undefined,
|
|
1826
1826
|
]
|
|
1827
1827
|
}
|
|
1828
1828
|
testID="input-suffix"
|
|
1829
1829
|
themeIntent="text"
|
|
1830
|
-
themeSize="
|
|
1830
|
+
themeSize="medium"
|
|
1831
1831
|
/>
|
|
1832
1832
|
</View>
|
|
1833
1833
|
<View
|
|
@@ -3299,7 +3299,7 @@ Array [
|
|
|
3299
3299
|
"left": 16,
|
|
3300
3300
|
"paddingHorizontal": 4,
|
|
3301
3301
|
"position": "absolute",
|
|
3302
|
-
"top": -
|
|
3302
|
+
"top": -4,
|
|
3303
3303
|
"zIndex": 1,
|
|
3304
3304
|
},
|
|
3305
3305
|
Object {
|
|
@@ -3412,14 +3412,14 @@ Array [
|
|
|
3412
3412
|
Array [
|
|
3413
3413
|
Object {
|
|
3414
3414
|
"color": "#001f23",
|
|
3415
|
-
"fontSize":
|
|
3415
|
+
"fontSize": 24,
|
|
3416
3416
|
},
|
|
3417
3417
|
undefined,
|
|
3418
3418
|
]
|
|
3419
3419
|
}
|
|
3420
3420
|
testID="input-suffix"
|
|
3421
3421
|
themeIntent="text"
|
|
3422
|
-
themeSize="
|
|
3422
|
+
themeSize="medium"
|
|
3423
3423
|
/>
|
|
3424
3424
|
</View>
|
|
3425
3425
|
</View>
|
|
@@ -3545,7 +3545,7 @@ Array [
|
|
|
3545
3545
|
"left": 16,
|
|
3546
3546
|
"paddingHorizontal": 4,
|
|
3547
3547
|
"position": "absolute",
|
|
3548
|
-
"top": -
|
|
3548
|
+
"top": -4,
|
|
3549
3549
|
"zIndex": 1,
|
|
3550
3550
|
},
|
|
3551
3551
|
Object {
|
|
@@ -3646,14 +3646,14 @@ Array [
|
|
|
3646
3646
|
Array [
|
|
3647
3647
|
Object {
|
|
3648
3648
|
"color": "#001f23",
|
|
3649
|
-
"fontSize":
|
|
3649
|
+
"fontSize": 24,
|
|
3650
3650
|
},
|
|
3651
3651
|
undefined,
|
|
3652
3652
|
]
|
|
3653
3653
|
}
|
|
3654
3654
|
testID="input-suffix"
|
|
3655
3655
|
themeIntent="text"
|
|
3656
|
-
themeSize="
|
|
3656
|
+
themeSize="medium"
|
|
3657
3657
|
/>
|
|
3658
3658
|
</View>
|
|
3659
3659
|
<View
|
|
@@ -186,14 +186,14 @@ Array [
|
|
|
186
186
|
Array [
|
|
187
187
|
Object {
|
|
188
188
|
"color": "#001f23",
|
|
189
|
-
"fontSize":
|
|
189
|
+
"fontSize": 24,
|
|
190
190
|
},
|
|
191
191
|
undefined,
|
|
192
192
|
]
|
|
193
193
|
}
|
|
194
194
|
testID="input-suffix"
|
|
195
195
|
themeIntent="text"
|
|
196
|
-
themeSize="
|
|
196
|
+
themeSize="medium"
|
|
197
197
|
/>
|
|
198
198
|
</View>
|
|
199
199
|
<View
|
|
@@ -1408,7 +1408,7 @@ Array [
|
|
|
1408
1408
|
"left": 16,
|
|
1409
1409
|
"paddingHorizontal": 4,
|
|
1410
1410
|
"position": "absolute",
|
|
1411
|
-
"top": -
|
|
1411
|
+
"top": -4,
|
|
1412
1412
|
"zIndex": 1,
|
|
1413
1413
|
},
|
|
1414
1414
|
Object {
|
|
@@ -1509,14 +1509,14 @@ Array [
|
|
|
1509
1509
|
Array [
|
|
1510
1510
|
Object {
|
|
1511
1511
|
"color": "#001f23",
|
|
1512
|
-
"fontSize":
|
|
1512
|
+
"fontSize": 24,
|
|
1513
1513
|
},
|
|
1514
1514
|
undefined,
|
|
1515
1515
|
]
|
|
1516
1516
|
}
|
|
1517
1517
|
testID="input-suffix"
|
|
1518
1518
|
themeIntent="text"
|
|
1519
|
-
themeSize="
|
|
1519
|
+
themeSize="medium"
|
|
1520
1520
|
/>
|
|
1521
1521
|
</View>
|
|
1522
1522
|
<View
|
|
@@ -1641,7 +1641,7 @@ Array [
|
|
|
1641
1641
|
"left": 16,
|
|
1642
1642
|
"paddingHorizontal": 4,
|
|
1643
1643
|
"position": "absolute",
|
|
1644
|
-
"top": -
|
|
1644
|
+
"top": -4,
|
|
1645
1645
|
"zIndex": 1,
|
|
1646
1646
|
},
|
|
1647
1647
|
Object {
|
|
@@ -1742,14 +1742,14 @@ Array [
|
|
|
1742
1742
|
Array [
|
|
1743
1743
|
Object {
|
|
1744
1744
|
"color": "#001f23",
|
|
1745
|
-
"fontSize":
|
|
1745
|
+
"fontSize": 24,
|
|
1746
1746
|
},
|
|
1747
1747
|
undefined,
|
|
1748
1748
|
]
|
|
1749
1749
|
}
|
|
1750
1750
|
testID="input-suffix"
|
|
1751
1751
|
themeIntent="text"
|
|
1752
|
-
themeSize="
|
|
1752
|
+
themeSize="medium"
|
|
1753
1753
|
/>
|
|
1754
1754
|
</View>
|
|
1755
1755
|
<View
|
|
@@ -3090,7 +3090,7 @@ Array [
|
|
|
3090
3090
|
"left": 16,
|
|
3091
3091
|
"paddingHorizontal": 4,
|
|
3092
3092
|
"position": "absolute",
|
|
3093
|
-
"top": -
|
|
3093
|
+
"top": -4,
|
|
3094
3094
|
"zIndex": 1,
|
|
3095
3095
|
},
|
|
3096
3096
|
Object {
|
|
@@ -3203,14 +3203,14 @@ Array [
|
|
|
3203
3203
|
Array [
|
|
3204
3204
|
Object {
|
|
3205
3205
|
"color": "#001f23",
|
|
3206
|
-
"fontSize":
|
|
3206
|
+
"fontSize": 24,
|
|
3207
3207
|
},
|
|
3208
3208
|
undefined,
|
|
3209
3209
|
]
|
|
3210
3210
|
}
|
|
3211
3211
|
testID="input-suffix"
|
|
3212
3212
|
themeIntent="text"
|
|
3213
|
-
themeSize="
|
|
3213
|
+
themeSize="medium"
|
|
3214
3214
|
/>
|
|
3215
3215
|
</View>
|
|
3216
3216
|
</View>
|
|
@@ -3336,7 +3336,7 @@ Array [
|
|
|
3336
3336
|
"left": 16,
|
|
3337
3337
|
"paddingHorizontal": 4,
|
|
3338
3338
|
"position": "absolute",
|
|
3339
|
-
"top": -
|
|
3339
|
+
"top": -4,
|
|
3340
3340
|
"zIndex": 1,
|
|
3341
3341
|
},
|
|
3342
3342
|
Object {
|
|
@@ -3437,14 +3437,14 @@ Array [
|
|
|
3437
3437
|
Array [
|
|
3438
3438
|
Object {
|
|
3439
3439
|
"color": "#001f23",
|
|
3440
|
-
"fontSize":
|
|
3440
|
+
"fontSize": 24,
|
|
3441
3441
|
},
|
|
3442
3442
|
undefined,
|
|
3443
3443
|
]
|
|
3444
3444
|
}
|
|
3445
3445
|
testID="input-suffix"
|
|
3446
3446
|
themeIntent="text"
|
|
3447
|
-
themeSize="
|
|
3447
|
+
themeSize="medium"
|
|
3448
3448
|
/>
|
|
3449
3449
|
</View>
|
|
3450
3450
|
<View
|
|
@@ -651,7 +651,7 @@ exports[`Tabs.Scroll lazy not render lazy screen: xxx 1`] = `
|
|
|
651
651
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
652
652
|
"fontSize": 12,
|
|
653
653
|
"includeFontPadding": false,
|
|
654
|
-
"lineHeight":
|
|
654
|
+
"lineHeight": 16,
|
|
655
655
|
"textAlign": "center",
|
|
656
656
|
"textAlignVertical": "center",
|
|
657
657
|
},
|
|
@@ -1479,7 +1479,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
1479
1479
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
1480
1480
|
"fontSize": 12,
|
|
1481
1481
|
"includeFontPadding": false,
|
|
1482
|
-
"lineHeight":
|
|
1482
|
+
"lineHeight": 16,
|
|
1483
1483
|
"textAlign": "center",
|
|
1484
1484
|
"textAlignVertical": "center",
|
|
1485
1485
|
},
|
|
@@ -2307,7 +2307,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
2307
2307
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
2308
2308
|
"fontSize": 12,
|
|
2309
2309
|
"includeFontPadding": false,
|
|
2310
|
-
"lineHeight":
|
|
2310
|
+
"lineHeight": 16,
|
|
2311
2311
|
"textAlign": "center",
|
|
2312
2312
|
"textAlignVertical": "center",
|
|
2313
2313
|
},
|
|
@@ -560,7 +560,7 @@ exports[`ScrollableTabsHeader renders correctly 1`] = `
|
|
|
560
560
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
561
561
|
"fontSize": 12,
|
|
562
562
|
"includeFontPadding": false,
|
|
563
|
-
"lineHeight":
|
|
563
|
+
"lineHeight": 16,
|
|
564
564
|
"textAlign": "center",
|
|
565
565
|
"textAlignVertical": "center",
|
|
566
566
|
},
|
|
@@ -53,7 +53,7 @@ exports[`TabWithBadge renders correctly with counter badge config 1`] = `
|
|
|
53
53
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
54
54
|
"fontSize": 12,
|
|
55
55
|
"includeFontPadding": false,
|
|
56
|
-
"lineHeight":
|
|
56
|
+
"lineHeight": 16,
|
|
57
57
|
"textAlign": "center",
|
|
58
58
|
"textAlignVertical": "center",
|
|
59
59
|
},
|
|
@@ -402,7 +402,7 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
402
402
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
403
403
|
"fontSize": 12,
|
|
404
404
|
"includeFontPadding": false,
|
|
405
|
-
"lineHeight":
|
|
405
|
+
"lineHeight": 16,
|
|
406
406
|
"textAlign": "center",
|
|
407
407
|
"textAlignVertical": "center",
|
|
408
408
|
},
|
|
@@ -997,7 +997,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
997
997
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
998
998
|
"fontSize": 12,
|
|
999
999
|
"includeFontPadding": false,
|
|
1000
|
-
"lineHeight":
|
|
1000
|
+
"lineHeight": 16,
|
|
1001
1001
|
"textAlign": "center",
|
|
1002
1002
|
"textAlignVertical": "center",
|
|
1003
1003
|
},
|
|
@@ -1592,7 +1592,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1592
1592
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
1593
1593
|
"fontSize": 12,
|
|
1594
1594
|
"includeFontPadding": false,
|
|
1595
|
-
"lineHeight":
|
|
1595
|
+
"lineHeight": 16,
|
|
1596
1596
|
"textAlign": "center",
|
|
1597
1597
|
"textAlignVertical": "center",
|
|
1598
1598
|
},
|
|
@@ -56,6 +56,7 @@ const StyledText = styled(Typography.Text)<{
|
|
|
56
56
|
return {
|
|
57
57
|
fontFamily: theme.__hd__.tag.fonts.default,
|
|
58
58
|
fontSize: theme.__hd__.tag.fontSizes.default,
|
|
59
|
+
lineHeight: theme.__hd__.tag.lineHeights.default,
|
|
59
60
|
color: textColor,
|
|
60
61
|
includeFontPadding: false,
|
|
61
62
|
textAlignVertical: 'center',
|