@hero-design/rn 7.10.1 → 7.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +8 -8
- package/es/index.js +26 -35
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +26 -35
- package/package.json +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +240 -214
- package/src/components/Select/MultiSelect/index.tsx +11 -16
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +240 -214
- package/src/components/Select/SingleSelect/index.tsx +11 -16
- package/src/components/TextInput/StyledTextInput.tsx +7 -4
- package/src/components/TextInput/__tests__/.log/ti-10343.log +62 -0
- package/src/components/TextInput/__tests__/.log/tsserver.log +15584 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +0 -1
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +727 -132
- package/src/components/TextInput/__tests__/index.spec.tsx +44 -0
- package/src/components/TextInput/index.tsx +24 -19
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +1 -1
- package/src/theme/components/textInput.ts +1 -1
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/__tests__/index.spec.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
- package/types/components/Avatar/__tests__/index.spec.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -0
- package/types/components/Badge/__tests__/Status.spec.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/__tests__/index.spec.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/UtilityButton/styled.d.ts +0 -0
- package/types/components/Button/__tests__/Button.spec.d.ts +0 -0
- package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -0
- package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/__tests__/StyledDataCard.spec.d.ts +0 -0
- package/types/components/Card/DataCard/__tests__/index.spec.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
- package/types/components/Card/__tests__/index.spec.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +0 -0
- package/types/components/Checkbox/__tests__/index.spec.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
- package/types/components/Collapse/__tests__/index.spec.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -0
- package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/__tests__/index.spec.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +0 -0
- package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
- package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
- package/types/components/FAB/__tests__/index.spec.d.ts +0 -0
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/__tests__/index.spec.d.ts +0 -0
- package/types/components/Icon/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/__tests__/BasicListItem.spec.d.ts +0 -0
- package/types/components/List/__tests__/ListItem.spec.d.ts +0 -0
- package/types/components/List/__tests__/StyledBasicListItem.spec.d.ts +0 -0
- package/types/components/List/__tests__/StyledListItem.spec.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -0
- package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -0
- package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/__tests__/Option.spec.d.ts +0 -0
- package/types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts +0 -0
- package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/__tests__/Option.spec.d.ts +0 -0
- package/types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts +0 -0
- package/types/components/Select/SingleSelect/__tests__/index.spec.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +0 -0
- package/types/components/Select/__tests__/StyledSelect.spec.d.ts +0 -0
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -0
- package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -0
- package/types/components/Spinner/__tests__/index.spec.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -0
- package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +0 -0
- package/types/components/Switch/__tests__/index.spec.d.ts +0 -0
- package/types/components/Switch/index.d.ts +0 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
- package/types/components/Tabs/__tests__/index.spec.d.ts +0 -0
- package/types/components/Tabs/index.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +0 -0
- package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -0
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +7 -1
- package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -0
- package/types/components/TextInput/__tests__/index.spec.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/__tests__/Toast.spec.d.ts +0 -0
- package/types/components/Toast/__tests__/ToastContainer.spec.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts +0 -0
- package/types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
- package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/__tests__/index.spec.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +1 -1
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors.d.ts +0 -0
- package/types/theme/global/index.d.ts +0 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +0 -0
- package/types/types.d.ts +0 -0
- package/types/utils/__tests__/scale.spec.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
|
@@ -1,5 +1,512 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
pointerEvents="auto"
|
|
6
|
+
style={
|
|
7
|
+
Array [
|
|
8
|
+
Object {
|
|
9
|
+
"marginVertical": 8,
|
|
10
|
+
"width": "100%",
|
|
11
|
+
},
|
|
12
|
+
undefined,
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
>
|
|
16
|
+
<View
|
|
17
|
+
style={
|
|
18
|
+
Array [
|
|
19
|
+
Object {
|
|
20
|
+
"alignItems": "center",
|
|
21
|
+
"flexDirection": "row",
|
|
22
|
+
"padding": 16,
|
|
23
|
+
},
|
|
24
|
+
undefined,
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
>
|
|
28
|
+
<View
|
|
29
|
+
style={
|
|
30
|
+
Array [
|
|
31
|
+
Object {
|
|
32
|
+
"borderColor": "#292a2b",
|
|
33
|
+
"borderRadius": 8,
|
|
34
|
+
"borderWidth": 1,
|
|
35
|
+
"bottom": 0,
|
|
36
|
+
"left": 0,
|
|
37
|
+
"position": "absolute",
|
|
38
|
+
"right": 0,
|
|
39
|
+
"top": 0,
|
|
40
|
+
},
|
|
41
|
+
undefined,
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
themeVariant="filled"
|
|
45
|
+
/>
|
|
46
|
+
<View
|
|
47
|
+
pointerEvents="none"
|
|
48
|
+
style={
|
|
49
|
+
Array [
|
|
50
|
+
Object {
|
|
51
|
+
"backgroundColor": "#ffffff",
|
|
52
|
+
"flexDirection": "row",
|
|
53
|
+
"left": 16,
|
|
54
|
+
"paddingHorizontal": 4,
|
|
55
|
+
"position": "absolute",
|
|
56
|
+
"top": -10,
|
|
57
|
+
"zIndex": 1,
|
|
58
|
+
},
|
|
59
|
+
undefined,
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
>
|
|
63
|
+
<Text
|
|
64
|
+
style={
|
|
65
|
+
Array [
|
|
66
|
+
Object {
|
|
67
|
+
"color": "#292a2b",
|
|
68
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
69
|
+
"fontSize": 12,
|
|
70
|
+
"letterSpacing": 0.36,
|
|
71
|
+
"lineHeight": 20,
|
|
72
|
+
},
|
|
73
|
+
Array [
|
|
74
|
+
Object {
|
|
75
|
+
"color": "#de350b",
|
|
76
|
+
},
|
|
77
|
+
undefined,
|
|
78
|
+
],
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
themeFontSize="small"
|
|
82
|
+
themeFontWeight="regular"
|
|
83
|
+
themeIntent="body"
|
|
84
|
+
themeVariant="filled"
|
|
85
|
+
>
|
|
86
|
+
*
|
|
87
|
+
</Text>
|
|
88
|
+
<Text
|
|
89
|
+
style={
|
|
90
|
+
Array [
|
|
91
|
+
Object {
|
|
92
|
+
"color": "#292a2b",
|
|
93
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
94
|
+
"fontSize": 12,
|
|
95
|
+
"letterSpacing": 0.36,
|
|
96
|
+
"lineHeight": 20,
|
|
97
|
+
},
|
|
98
|
+
Array [
|
|
99
|
+
Object {
|
|
100
|
+
"color": "#292a2b",
|
|
101
|
+
},
|
|
102
|
+
undefined,
|
|
103
|
+
],
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
testID="input-label"
|
|
107
|
+
themeFontSize="small"
|
|
108
|
+
themeFontWeight="regular"
|
|
109
|
+
themeIntent="body"
|
|
110
|
+
themeVariant="filled"
|
|
111
|
+
>
|
|
112
|
+
Amount (AUD)
|
|
113
|
+
</Text>
|
|
114
|
+
</View>
|
|
115
|
+
<HeroIcon
|
|
116
|
+
name="dollar-sign"
|
|
117
|
+
style={
|
|
118
|
+
Array [
|
|
119
|
+
Object {
|
|
120
|
+
"color": "#292a2b",
|
|
121
|
+
"fontSize": 16,
|
|
122
|
+
},
|
|
123
|
+
undefined,
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
testID="input-prefix"
|
|
127
|
+
themeIntent="text"
|
|
128
|
+
themeSize="xsmall"
|
|
129
|
+
/>
|
|
130
|
+
<View
|
|
131
|
+
style={
|
|
132
|
+
Array [
|
|
133
|
+
Object {
|
|
134
|
+
"alignItems": "center",
|
|
135
|
+
"alignSelf": "stretch",
|
|
136
|
+
"flexDirection": "row",
|
|
137
|
+
"flexGrow": 2,
|
|
138
|
+
},
|
|
139
|
+
undefined,
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
>
|
|
143
|
+
<TextInput
|
|
144
|
+
accessibilityState={
|
|
145
|
+
Object {
|
|
146
|
+
"disabled": false,
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
defaultValue="1000"
|
|
150
|
+
editable={true}
|
|
151
|
+
maxLength={255}
|
|
152
|
+
onBlur={[Function]}
|
|
153
|
+
onChangeText={[Function]}
|
|
154
|
+
onFocus={[Function]}
|
|
155
|
+
style={
|
|
156
|
+
Array [
|
|
157
|
+
Object {
|
|
158
|
+
"alignSelf": "stretch",
|
|
159
|
+
"flexGrow": 2,
|
|
160
|
+
"fontSize": 14,
|
|
161
|
+
"marginHorizontal": 8,
|
|
162
|
+
"textAlignVertical": "center",
|
|
163
|
+
},
|
|
164
|
+
Object {
|
|
165
|
+
"color": "#292a2b",
|
|
166
|
+
},
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
testID="text-input"
|
|
170
|
+
/>
|
|
171
|
+
</View>
|
|
172
|
+
</View>
|
|
173
|
+
<View
|
|
174
|
+
style={
|
|
175
|
+
Array [
|
|
176
|
+
Object {
|
|
177
|
+
"paddingLeft": 16,
|
|
178
|
+
},
|
|
179
|
+
undefined,
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
>
|
|
183
|
+
<View
|
|
184
|
+
style={
|
|
185
|
+
Array [
|
|
186
|
+
Object {
|
|
187
|
+
"flexDirection": "row",
|
|
188
|
+
"justifyContent": "space-between",
|
|
189
|
+
},
|
|
190
|
+
undefined,
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
>
|
|
194
|
+
<Text
|
|
195
|
+
style={
|
|
196
|
+
Array [
|
|
197
|
+
Object {
|
|
198
|
+
"color": "#292a2b",
|
|
199
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
200
|
+
"fontSize": 12,
|
|
201
|
+
"letterSpacing": 0.36,
|
|
202
|
+
"lineHeight": 20,
|
|
203
|
+
},
|
|
204
|
+
Array [
|
|
205
|
+
Object {
|
|
206
|
+
"alignSelf": "flex-end",
|
|
207
|
+
"color": "#292a2b",
|
|
208
|
+
"flex": 1,
|
|
209
|
+
"flexGrow": 1,
|
|
210
|
+
"fontSize": 12,
|
|
211
|
+
"marginRight": 4,
|
|
212
|
+
"textAlign": "right",
|
|
213
|
+
},
|
|
214
|
+
undefined,
|
|
215
|
+
],
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
themeFontSize="small"
|
|
219
|
+
themeFontWeight="regular"
|
|
220
|
+
themeIntent="body"
|
|
221
|
+
themeVariant="filled"
|
|
222
|
+
>
|
|
223
|
+
4
|
|
224
|
+
/
|
|
225
|
+
255
|
|
226
|
+
</Text>
|
|
227
|
+
</View>
|
|
228
|
+
<Text
|
|
229
|
+
style={
|
|
230
|
+
Array [
|
|
231
|
+
Object {
|
|
232
|
+
"color": "#292a2b",
|
|
233
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
234
|
+
"fontSize": 14,
|
|
235
|
+
"letterSpacing": 0.42,
|
|
236
|
+
"lineHeight": 22,
|
|
237
|
+
},
|
|
238
|
+
Array [
|
|
239
|
+
Object {
|
|
240
|
+
"fontSize": 12,
|
|
241
|
+
},
|
|
242
|
+
undefined,
|
|
243
|
+
],
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
themeFontSize="medium"
|
|
247
|
+
themeFontWeight="regular"
|
|
248
|
+
themeIntent="body"
|
|
249
|
+
>
|
|
250
|
+
This is helper text
|
|
251
|
+
</Text>
|
|
252
|
+
</View>
|
|
253
|
+
</View>
|
|
254
|
+
`;
|
|
255
|
+
|
|
256
|
+
exports[`TextInput defaultValue default Value and Value renders correctly with 2000 1`] = `
|
|
257
|
+
<View
|
|
258
|
+
pointerEvents="auto"
|
|
259
|
+
style={
|
|
260
|
+
Array [
|
|
261
|
+
Object {
|
|
262
|
+
"marginVertical": 8,
|
|
263
|
+
"width": "100%",
|
|
264
|
+
},
|
|
265
|
+
undefined,
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
>
|
|
269
|
+
<View
|
|
270
|
+
style={
|
|
271
|
+
Array [
|
|
272
|
+
Object {
|
|
273
|
+
"alignItems": "center",
|
|
274
|
+
"flexDirection": "row",
|
|
275
|
+
"padding": 16,
|
|
276
|
+
},
|
|
277
|
+
undefined,
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
>
|
|
281
|
+
<View
|
|
282
|
+
style={
|
|
283
|
+
Array [
|
|
284
|
+
Object {
|
|
285
|
+
"borderColor": "#292a2b",
|
|
286
|
+
"borderRadius": 8,
|
|
287
|
+
"borderWidth": 1,
|
|
288
|
+
"bottom": 0,
|
|
289
|
+
"left": 0,
|
|
290
|
+
"position": "absolute",
|
|
291
|
+
"right": 0,
|
|
292
|
+
"top": 0,
|
|
293
|
+
},
|
|
294
|
+
undefined,
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
themeVariant="filled"
|
|
298
|
+
/>
|
|
299
|
+
<View
|
|
300
|
+
pointerEvents="none"
|
|
301
|
+
style={
|
|
302
|
+
Array [
|
|
303
|
+
Object {
|
|
304
|
+
"backgroundColor": "#ffffff",
|
|
305
|
+
"flexDirection": "row",
|
|
306
|
+
"left": 16,
|
|
307
|
+
"paddingHorizontal": 4,
|
|
308
|
+
"position": "absolute",
|
|
309
|
+
"top": -10,
|
|
310
|
+
"zIndex": 1,
|
|
311
|
+
},
|
|
312
|
+
undefined,
|
|
313
|
+
]
|
|
314
|
+
}
|
|
315
|
+
>
|
|
316
|
+
<Text
|
|
317
|
+
style={
|
|
318
|
+
Array [
|
|
319
|
+
Object {
|
|
320
|
+
"color": "#292a2b",
|
|
321
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
322
|
+
"fontSize": 12,
|
|
323
|
+
"letterSpacing": 0.36,
|
|
324
|
+
"lineHeight": 20,
|
|
325
|
+
},
|
|
326
|
+
Array [
|
|
327
|
+
Object {
|
|
328
|
+
"color": "#de350b",
|
|
329
|
+
},
|
|
330
|
+
undefined,
|
|
331
|
+
],
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
themeFontSize="small"
|
|
335
|
+
themeFontWeight="regular"
|
|
336
|
+
themeIntent="body"
|
|
337
|
+
themeVariant="filled"
|
|
338
|
+
>
|
|
339
|
+
*
|
|
340
|
+
</Text>
|
|
341
|
+
<Text
|
|
342
|
+
style={
|
|
343
|
+
Array [
|
|
344
|
+
Object {
|
|
345
|
+
"color": "#292a2b",
|
|
346
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
347
|
+
"fontSize": 12,
|
|
348
|
+
"letterSpacing": 0.36,
|
|
349
|
+
"lineHeight": 20,
|
|
350
|
+
},
|
|
351
|
+
Array [
|
|
352
|
+
Object {
|
|
353
|
+
"color": "#292a2b",
|
|
354
|
+
},
|
|
355
|
+
undefined,
|
|
356
|
+
],
|
|
357
|
+
]
|
|
358
|
+
}
|
|
359
|
+
testID="input-label"
|
|
360
|
+
themeFontSize="small"
|
|
361
|
+
themeFontWeight="regular"
|
|
362
|
+
themeIntent="body"
|
|
363
|
+
themeVariant="filled"
|
|
364
|
+
>
|
|
365
|
+
Amount (AUD)
|
|
366
|
+
</Text>
|
|
367
|
+
</View>
|
|
368
|
+
<HeroIcon
|
|
369
|
+
name="dollar-sign"
|
|
370
|
+
style={
|
|
371
|
+
Array [
|
|
372
|
+
Object {
|
|
373
|
+
"color": "#292a2b",
|
|
374
|
+
"fontSize": 16,
|
|
375
|
+
},
|
|
376
|
+
undefined,
|
|
377
|
+
]
|
|
378
|
+
}
|
|
379
|
+
testID="input-prefix"
|
|
380
|
+
themeIntent="text"
|
|
381
|
+
themeSize="xsmall"
|
|
382
|
+
/>
|
|
383
|
+
<View
|
|
384
|
+
style={
|
|
385
|
+
Array [
|
|
386
|
+
Object {
|
|
387
|
+
"alignItems": "center",
|
|
388
|
+
"alignSelf": "stretch",
|
|
389
|
+
"flexDirection": "row",
|
|
390
|
+
"flexGrow": 2,
|
|
391
|
+
},
|
|
392
|
+
undefined,
|
|
393
|
+
]
|
|
394
|
+
}
|
|
395
|
+
>
|
|
396
|
+
<TextInput
|
|
397
|
+
accessibilityState={
|
|
398
|
+
Object {
|
|
399
|
+
"disabled": false,
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
defaultValue="1000"
|
|
403
|
+
editable={true}
|
|
404
|
+
maxLength={255}
|
|
405
|
+
onBlur={[Function]}
|
|
406
|
+
onChangeText={[Function]}
|
|
407
|
+
onFocus={[Function]}
|
|
408
|
+
style={
|
|
409
|
+
Array [
|
|
410
|
+
Object {
|
|
411
|
+
"alignSelf": "stretch",
|
|
412
|
+
"flexGrow": 2,
|
|
413
|
+
"fontSize": 14,
|
|
414
|
+
"marginHorizontal": 8,
|
|
415
|
+
"textAlignVertical": "center",
|
|
416
|
+
},
|
|
417
|
+
Object {
|
|
418
|
+
"color": "#292a2b",
|
|
419
|
+
},
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
testID="text-input"
|
|
423
|
+
value="2000"
|
|
424
|
+
/>
|
|
425
|
+
</View>
|
|
426
|
+
</View>
|
|
427
|
+
<View
|
|
428
|
+
style={
|
|
429
|
+
Array [
|
|
430
|
+
Object {
|
|
431
|
+
"paddingLeft": 16,
|
|
432
|
+
},
|
|
433
|
+
undefined,
|
|
434
|
+
]
|
|
435
|
+
}
|
|
436
|
+
>
|
|
437
|
+
<View
|
|
438
|
+
style={
|
|
439
|
+
Array [
|
|
440
|
+
Object {
|
|
441
|
+
"flexDirection": "row",
|
|
442
|
+
"justifyContent": "space-between",
|
|
443
|
+
},
|
|
444
|
+
undefined,
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
>
|
|
448
|
+
<Text
|
|
449
|
+
style={
|
|
450
|
+
Array [
|
|
451
|
+
Object {
|
|
452
|
+
"color": "#292a2b",
|
|
453
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
454
|
+
"fontSize": 12,
|
|
455
|
+
"letterSpacing": 0.36,
|
|
456
|
+
"lineHeight": 20,
|
|
457
|
+
},
|
|
458
|
+
Array [
|
|
459
|
+
Object {
|
|
460
|
+
"alignSelf": "flex-end",
|
|
461
|
+
"color": "#292a2b",
|
|
462
|
+
"flex": 1,
|
|
463
|
+
"flexGrow": 1,
|
|
464
|
+
"fontSize": 12,
|
|
465
|
+
"marginRight": 4,
|
|
466
|
+
"textAlign": "right",
|
|
467
|
+
},
|
|
468
|
+
undefined,
|
|
469
|
+
],
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
themeFontSize="small"
|
|
473
|
+
themeFontWeight="regular"
|
|
474
|
+
themeIntent="body"
|
|
475
|
+
themeVariant="filled"
|
|
476
|
+
>
|
|
477
|
+
4
|
|
478
|
+
/
|
|
479
|
+
255
|
|
480
|
+
</Text>
|
|
481
|
+
</View>
|
|
482
|
+
<Text
|
|
483
|
+
style={
|
|
484
|
+
Array [
|
|
485
|
+
Object {
|
|
486
|
+
"color": "#292a2b",
|
|
487
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
488
|
+
"fontSize": 14,
|
|
489
|
+
"letterSpacing": 0.42,
|
|
490
|
+
"lineHeight": 22,
|
|
491
|
+
},
|
|
492
|
+
Array [
|
|
493
|
+
Object {
|
|
494
|
+
"fontSize": 12,
|
|
495
|
+
},
|
|
496
|
+
undefined,
|
|
497
|
+
],
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
themeFontSize="medium"
|
|
501
|
+
themeFontWeight="regular"
|
|
502
|
+
themeIntent="body"
|
|
503
|
+
>
|
|
504
|
+
This is helper text
|
|
505
|
+
</Text>
|
|
506
|
+
</View>
|
|
507
|
+
</View>
|
|
508
|
+
`;
|
|
509
|
+
|
|
3
510
|
exports[`TextInput disabled renders correctly 1`] = `
|
|
4
511
|
<View
|
|
5
512
|
pointerEvents="none"
|
|
@@ -159,14 +666,24 @@ exports[`TextInput disabled renders correctly 1`] = `
|
|
|
159
666
|
style={
|
|
160
667
|
Array [
|
|
161
668
|
Object {
|
|
162
|
-
"
|
|
163
|
-
"flexDirection": "row",
|
|
164
|
-
"justifyContent": "space-between",
|
|
669
|
+
"paddingLeft": 16,
|
|
165
670
|
},
|
|
166
671
|
undefined,
|
|
167
672
|
]
|
|
168
673
|
}
|
|
169
|
-
|
|
674
|
+
>
|
|
675
|
+
<View
|
|
676
|
+
style={
|
|
677
|
+
Array [
|
|
678
|
+
Object {
|
|
679
|
+
"flexDirection": "row",
|
|
680
|
+
"justifyContent": "space-between",
|
|
681
|
+
},
|
|
682
|
+
undefined,
|
|
683
|
+
]
|
|
684
|
+
}
|
|
685
|
+
/>
|
|
686
|
+
</View>
|
|
170
687
|
</View>
|
|
171
688
|
`;
|
|
172
689
|
|
|
@@ -341,7 +858,6 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
341
858
|
]
|
|
342
859
|
}
|
|
343
860
|
testID="text-input"
|
|
344
|
-
value=""
|
|
345
861
|
/>
|
|
346
862
|
</View>
|
|
347
863
|
</View>
|
|
@@ -349,9 +865,7 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
349
865
|
style={
|
|
350
866
|
Array [
|
|
351
867
|
Object {
|
|
352
|
-
"
|
|
353
|
-
"flexDirection": "row",
|
|
354
|
-
"justifyContent": "space-between",
|
|
868
|
+
"paddingLeft": 16,
|
|
355
869
|
},
|
|
356
870
|
undefined,
|
|
357
871
|
]
|
|
@@ -361,59 +875,70 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
361
875
|
style={
|
|
362
876
|
Array [
|
|
363
877
|
Object {
|
|
364
|
-
"alignItems": "center",
|
|
365
|
-
"flex": 1,
|
|
366
878
|
"flexDirection": "row",
|
|
367
|
-
"
|
|
368
|
-
"marginLeft": 16,
|
|
369
|
-
"marginRight": 4,
|
|
879
|
+
"justifyContent": "space-between",
|
|
370
880
|
},
|
|
371
881
|
undefined,
|
|
372
882
|
]
|
|
373
883
|
}
|
|
374
884
|
>
|
|
375
|
-
<
|
|
376
|
-
name="circle-info"
|
|
885
|
+
<View
|
|
377
886
|
style={
|
|
378
887
|
Array [
|
|
379
888
|
Object {
|
|
380
|
-
"
|
|
381
|
-
"
|
|
889
|
+
"alignItems": "center",
|
|
890
|
+
"flex": 1,
|
|
891
|
+
"flexDirection": "row",
|
|
892
|
+
"flexGrow": 4,
|
|
893
|
+
"marginRight": 4,
|
|
382
894
|
},
|
|
383
895
|
undefined,
|
|
384
896
|
]
|
|
385
897
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
<Text
|
|
391
|
-
style={
|
|
392
|
-
Array [
|
|
393
|
-
Object {
|
|
394
|
-
"color": "#292a2b",
|
|
395
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
396
|
-
"fontSize": 14,
|
|
397
|
-
"letterSpacing": 0.42,
|
|
398
|
-
"lineHeight": 22,
|
|
399
|
-
},
|
|
898
|
+
>
|
|
899
|
+
<HeroIcon
|
|
900
|
+
name="circle-info"
|
|
901
|
+
style={
|
|
400
902
|
Array [
|
|
401
903
|
Object {
|
|
402
904
|
"color": "#de350b",
|
|
403
|
-
"fontSize":
|
|
404
|
-
"marginLeft": 4,
|
|
905
|
+
"fontSize": 16,
|
|
405
906
|
},
|
|
406
907
|
undefined,
|
|
407
|
-
]
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
908
|
+
]
|
|
909
|
+
}
|
|
910
|
+
testID="input-error-icon"
|
|
911
|
+
themeIntent="danger"
|
|
912
|
+
themeSize="xsmall"
|
|
913
|
+
/>
|
|
914
|
+
<Text
|
|
915
|
+
style={
|
|
916
|
+
Array [
|
|
917
|
+
Object {
|
|
918
|
+
"color": "#292a2b",
|
|
919
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
920
|
+
"fontSize": 14,
|
|
921
|
+
"letterSpacing": 0.42,
|
|
922
|
+
"lineHeight": 22,
|
|
923
|
+
},
|
|
924
|
+
Array [
|
|
925
|
+
Object {
|
|
926
|
+
"color": "#de350b",
|
|
927
|
+
"fontSize": 12,
|
|
928
|
+
"marginLeft": 4,
|
|
929
|
+
},
|
|
930
|
+
undefined,
|
|
931
|
+
],
|
|
932
|
+
]
|
|
933
|
+
}
|
|
934
|
+
testID="input-error-message"
|
|
935
|
+
themeFontSize="medium"
|
|
936
|
+
themeFontWeight="regular"
|
|
937
|
+
themeIntent="body"
|
|
938
|
+
>
|
|
939
|
+
This field is required
|
|
940
|
+
</Text>
|
|
941
|
+
</View>
|
|
417
942
|
</View>
|
|
418
943
|
</View>
|
|
419
944
|
</View>
|
|
@@ -582,14 +1107,24 @@ exports[`TextInput filled renders correctly 1`] = `
|
|
|
582
1107
|
style={
|
|
583
1108
|
Array [
|
|
584
1109
|
Object {
|
|
585
|
-
"
|
|
586
|
-
"flexDirection": "row",
|
|
587
|
-
"justifyContent": "space-between",
|
|
1110
|
+
"paddingLeft": 16,
|
|
588
1111
|
},
|
|
589
1112
|
undefined,
|
|
590
1113
|
]
|
|
591
1114
|
}
|
|
592
|
-
|
|
1115
|
+
>
|
|
1116
|
+
<View
|
|
1117
|
+
style={
|
|
1118
|
+
Array [
|
|
1119
|
+
Object {
|
|
1120
|
+
"flexDirection": "row",
|
|
1121
|
+
"justifyContent": "space-between",
|
|
1122
|
+
},
|
|
1123
|
+
undefined,
|
|
1124
|
+
]
|
|
1125
|
+
}
|
|
1126
|
+
/>
|
|
1127
|
+
</View>
|
|
593
1128
|
</View>
|
|
594
1129
|
`;
|
|
595
1130
|
|
|
@@ -764,7 +1299,6 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
764
1299
|
]
|
|
765
1300
|
}
|
|
766
1301
|
testID="text-input"
|
|
767
|
-
value=""
|
|
768
1302
|
/>
|
|
769
1303
|
</View>
|
|
770
1304
|
</View>
|
|
@@ -772,14 +1306,23 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
772
1306
|
style={
|
|
773
1307
|
Array [
|
|
774
1308
|
Object {
|
|
775
|
-
"
|
|
776
|
-
"flexDirection": "row",
|
|
777
|
-
"justifyContent": "space-between",
|
|
1309
|
+
"paddingLeft": 16,
|
|
778
1310
|
},
|
|
779
1311
|
undefined,
|
|
780
1312
|
]
|
|
781
1313
|
}
|
|
782
1314
|
>
|
|
1315
|
+
<View
|
|
1316
|
+
style={
|
|
1317
|
+
Array [
|
|
1318
|
+
Object {
|
|
1319
|
+
"flexDirection": "row",
|
|
1320
|
+
"justifyContent": "space-between",
|
|
1321
|
+
},
|
|
1322
|
+
undefined,
|
|
1323
|
+
]
|
|
1324
|
+
}
|
|
1325
|
+
/>
|
|
783
1326
|
<Text
|
|
784
1327
|
style={
|
|
785
1328
|
Array [
|
|
@@ -793,7 +1336,6 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
793
1336
|
Array [
|
|
794
1337
|
Object {
|
|
795
1338
|
"fontSize": 12,
|
|
796
|
-
"marginLeft": 4,
|
|
797
1339
|
},
|
|
798
1340
|
undefined,
|
|
799
1341
|
],
|
|
@@ -955,7 +1497,6 @@ exports[`TextInput idle renders correctly 1`] = `
|
|
|
955
1497
|
]
|
|
956
1498
|
}
|
|
957
1499
|
testID="text-input"
|
|
958
|
-
value=""
|
|
959
1500
|
/>
|
|
960
1501
|
</View>
|
|
961
1502
|
<HeroIcon
|
|
@@ -978,14 +1519,24 @@ exports[`TextInput idle renders correctly 1`] = `
|
|
|
978
1519
|
style={
|
|
979
1520
|
Array [
|
|
980
1521
|
Object {
|
|
981
|
-
"
|
|
982
|
-
"flexDirection": "row",
|
|
983
|
-
"justifyContent": "space-between",
|
|
1522
|
+
"paddingLeft": 16,
|
|
984
1523
|
},
|
|
985
1524
|
undefined,
|
|
986
1525
|
]
|
|
987
1526
|
}
|
|
988
|
-
|
|
1527
|
+
>
|
|
1528
|
+
<View
|
|
1529
|
+
style={
|
|
1530
|
+
Array [
|
|
1531
|
+
Object {
|
|
1532
|
+
"flexDirection": "row",
|
|
1533
|
+
"justifyContent": "space-between",
|
|
1534
|
+
},
|
|
1535
|
+
undefined,
|
|
1536
|
+
]
|
|
1537
|
+
}
|
|
1538
|
+
/>
|
|
1539
|
+
</View>
|
|
989
1540
|
</View>
|
|
990
1541
|
`;
|
|
991
1542
|
|
|
@@ -1160,7 +1711,6 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
|
|
|
1160
1711
|
]
|
|
1161
1712
|
}
|
|
1162
1713
|
testID="text-input"
|
|
1163
|
-
value=""
|
|
1164
1714
|
/>
|
|
1165
1715
|
</View>
|
|
1166
1716
|
<HeroIcon
|
|
@@ -1183,14 +1733,24 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
|
|
|
1183
1733
|
style={
|
|
1184
1734
|
Array [
|
|
1185
1735
|
Object {
|
|
1186
|
-
"
|
|
1187
|
-
"flexDirection": "row",
|
|
1188
|
-
"justifyContent": "space-between",
|
|
1736
|
+
"paddingLeft": 16,
|
|
1189
1737
|
},
|
|
1190
1738
|
undefined,
|
|
1191
1739
|
]
|
|
1192
1740
|
}
|
|
1193
|
-
|
|
1741
|
+
>
|
|
1742
|
+
<View
|
|
1743
|
+
style={
|
|
1744
|
+
Array [
|
|
1745
|
+
Object {
|
|
1746
|
+
"flexDirection": "row",
|
|
1747
|
+
"justifyContent": "space-between",
|
|
1748
|
+
},
|
|
1749
|
+
undefined,
|
|
1750
|
+
]
|
|
1751
|
+
}
|
|
1752
|
+
/>
|
|
1753
|
+
</View>
|
|
1194
1754
|
</View>
|
|
1195
1755
|
`;
|
|
1196
1756
|
|
|
@@ -1354,9 +1914,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
1354
1914
|
style={
|
|
1355
1915
|
Array [
|
|
1356
1916
|
Object {
|
|
1357
|
-
"
|
|
1358
|
-
"flexDirection": "row",
|
|
1359
|
-
"justifyContent": "space-between",
|
|
1917
|
+
"paddingLeft": 16,
|
|
1360
1918
|
},
|
|
1361
1919
|
undefined,
|
|
1362
1920
|
]
|
|
@@ -1366,93 +1924,104 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
1366
1924
|
style={
|
|
1367
1925
|
Array [
|
|
1368
1926
|
Object {
|
|
1369
|
-
"alignItems": "center",
|
|
1370
|
-
"flex": 1,
|
|
1371
1927
|
"flexDirection": "row",
|
|
1372
|
-
"
|
|
1373
|
-
"marginLeft": 16,
|
|
1374
|
-
"marginRight": 4,
|
|
1928
|
+
"justifyContent": "space-between",
|
|
1375
1929
|
},
|
|
1376
1930
|
undefined,
|
|
1377
1931
|
]
|
|
1378
1932
|
}
|
|
1379
1933
|
>
|
|
1380
|
-
<
|
|
1381
|
-
name="circle-info"
|
|
1934
|
+
<View
|
|
1382
1935
|
style={
|
|
1383
1936
|
Array [
|
|
1384
1937
|
Object {
|
|
1385
|
-
"
|
|
1386
|
-
"
|
|
1938
|
+
"alignItems": "center",
|
|
1939
|
+
"flex": 1,
|
|
1940
|
+
"flexDirection": "row",
|
|
1941
|
+
"flexGrow": 4,
|
|
1942
|
+
"marginRight": 4,
|
|
1387
1943
|
},
|
|
1388
1944
|
undefined,
|
|
1389
1945
|
]
|
|
1390
1946
|
}
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1947
|
+
>
|
|
1948
|
+
<HeroIcon
|
|
1949
|
+
name="circle-info"
|
|
1950
|
+
style={
|
|
1951
|
+
Array [
|
|
1952
|
+
Object {
|
|
1953
|
+
"color": "#de350b",
|
|
1954
|
+
"fontSize": 16,
|
|
1955
|
+
},
|
|
1956
|
+
undefined,
|
|
1957
|
+
]
|
|
1958
|
+
}
|
|
1959
|
+
testID="input-error-icon"
|
|
1960
|
+
themeIntent="danger"
|
|
1961
|
+
themeSize="xsmall"
|
|
1962
|
+
/>
|
|
1963
|
+
<Text
|
|
1964
|
+
style={
|
|
1965
|
+
Array [
|
|
1966
|
+
Object {
|
|
1967
|
+
"color": "#292a2b",
|
|
1968
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
1969
|
+
"fontSize": 14,
|
|
1970
|
+
"letterSpacing": 0.42,
|
|
1971
|
+
"lineHeight": 22,
|
|
1972
|
+
},
|
|
1973
|
+
Array [
|
|
1974
|
+
Object {
|
|
1975
|
+
"color": "#de350b",
|
|
1976
|
+
"fontSize": 12,
|
|
1977
|
+
"marginLeft": 4,
|
|
1978
|
+
},
|
|
1979
|
+
undefined,
|
|
1980
|
+
],
|
|
1981
|
+
]
|
|
1982
|
+
}
|
|
1983
|
+
testID="input-error-message"
|
|
1984
|
+
themeFontSize="medium"
|
|
1985
|
+
themeFontWeight="regular"
|
|
1986
|
+
themeIntent="body"
|
|
1987
|
+
>
|
|
1988
|
+
must not exceed character limit
|
|
1989
|
+
</Text>
|
|
1990
|
+
</View>
|
|
1395
1991
|
<Text
|
|
1396
1992
|
style={
|
|
1397
1993
|
Array [
|
|
1398
1994
|
Object {
|
|
1399
1995
|
"color": "#292a2b",
|
|
1400
1996
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1401
|
-
"fontSize":
|
|
1402
|
-
"letterSpacing": 0.
|
|
1403
|
-
"lineHeight":
|
|
1997
|
+
"fontSize": 12,
|
|
1998
|
+
"letterSpacing": 0.36,
|
|
1999
|
+
"lineHeight": 20,
|
|
1404
2000
|
},
|
|
1405
2001
|
Array [
|
|
1406
2002
|
Object {
|
|
2003
|
+
"alignSelf": "flex-end",
|
|
1407
2004
|
"color": "#de350b",
|
|
2005
|
+
"flex": 1,
|
|
2006
|
+
"flexGrow": 1,
|
|
1408
2007
|
"fontSize": 12,
|
|
1409
|
-
"
|
|
2008
|
+
"marginRight": 4,
|
|
2009
|
+
"textAlign": "right",
|
|
1410
2010
|
},
|
|
1411
2011
|
undefined,
|
|
1412
2012
|
],
|
|
1413
2013
|
]
|
|
1414
2014
|
}
|
|
1415
|
-
|
|
1416
|
-
themeFontSize="medium"
|
|
2015
|
+
themeFontSize="small"
|
|
1417
2016
|
themeFontWeight="regular"
|
|
1418
2017
|
themeIntent="body"
|
|
2018
|
+
themeVariant="error"
|
|
1419
2019
|
>
|
|
1420
|
-
|
|
2020
|
+
18
|
|
2021
|
+
/
|
|
2022
|
+
255
|
|
1421
2023
|
</Text>
|
|
1422
2024
|
</View>
|
|
1423
|
-
<Text
|
|
1424
|
-
style={
|
|
1425
|
-
Array [
|
|
1426
|
-
Object {
|
|
1427
|
-
"color": "#292a2b",
|
|
1428
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
1429
|
-
"fontSize": 12,
|
|
1430
|
-
"letterSpacing": 0.36,
|
|
1431
|
-
"lineHeight": 20,
|
|
1432
|
-
},
|
|
1433
|
-
Array [
|
|
1434
|
-
Object {
|
|
1435
|
-
"alignSelf": "flex-end",
|
|
1436
|
-
"color": "#de350b",
|
|
1437
|
-
"flex": 1,
|
|
1438
|
-
"flexGrow": 1,
|
|
1439
|
-
"fontSize": 12,
|
|
1440
|
-
"marginRight": 4,
|
|
1441
|
-
"textAlign": "right",
|
|
1442
|
-
},
|
|
1443
|
-
undefined,
|
|
1444
|
-
],
|
|
1445
|
-
]
|
|
1446
|
-
}
|
|
1447
|
-
themeFontSize="small"
|
|
1448
|
-
themeFontWeight="regular"
|
|
1449
|
-
themeIntent="body"
|
|
1450
|
-
themeVariant="error"
|
|
1451
|
-
>
|
|
1452
|
-
18
|
|
1453
|
-
/
|
|
1454
|
-
255
|
|
1455
|
-
</Text>
|
|
1456
2025
|
</View>
|
|
1457
2026
|
</View>
|
|
1458
2027
|
`;
|
|
@@ -1628,7 +2197,6 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
1628
2197
|
]
|
|
1629
2198
|
}
|
|
1630
2199
|
testID="text-input"
|
|
1631
|
-
value=""
|
|
1632
2200
|
/>
|
|
1633
2201
|
</View>
|
|
1634
2202
|
</View>
|
|
@@ -1636,14 +2204,23 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
1636
2204
|
style={
|
|
1637
2205
|
Array [
|
|
1638
2206
|
Object {
|
|
1639
|
-
"
|
|
1640
|
-
"flexDirection": "row",
|
|
1641
|
-
"justifyContent": "space-between",
|
|
2207
|
+
"paddingLeft": 16,
|
|
1642
2208
|
},
|
|
1643
2209
|
undefined,
|
|
1644
2210
|
]
|
|
1645
2211
|
}
|
|
1646
2212
|
>
|
|
2213
|
+
<View
|
|
2214
|
+
style={
|
|
2215
|
+
Array [
|
|
2216
|
+
Object {
|
|
2217
|
+
"flexDirection": "row",
|
|
2218
|
+
"justifyContent": "space-between",
|
|
2219
|
+
},
|
|
2220
|
+
undefined,
|
|
2221
|
+
]
|
|
2222
|
+
}
|
|
2223
|
+
/>
|
|
1647
2224
|
<Text
|
|
1648
2225
|
style={
|
|
1649
2226
|
Array [
|
|
@@ -1657,7 +2234,6 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
1657
2234
|
Array [
|
|
1658
2235
|
Object {
|
|
1659
2236
|
"fontSize": 12,
|
|
1660
|
-
"marginLeft": 4,
|
|
1661
2237
|
},
|
|
1662
2238
|
undefined,
|
|
1663
2239
|
],
|
|
@@ -1861,14 +2437,24 @@ exports[`TextInput readonly renders correctly 1`] = `
|
|
|
1861
2437
|
style={
|
|
1862
2438
|
Array [
|
|
1863
2439
|
Object {
|
|
1864
|
-
"
|
|
1865
|
-
"flexDirection": "row",
|
|
1866
|
-
"justifyContent": "space-between",
|
|
2440
|
+
"paddingLeft": 16,
|
|
1867
2441
|
},
|
|
1868
2442
|
undefined,
|
|
1869
2443
|
]
|
|
1870
2444
|
}
|
|
1871
|
-
|
|
2445
|
+
>
|
|
2446
|
+
<View
|
|
2447
|
+
style={
|
|
2448
|
+
Array [
|
|
2449
|
+
Object {
|
|
2450
|
+
"flexDirection": "row",
|
|
2451
|
+
"justifyContent": "space-between",
|
|
2452
|
+
},
|
|
2453
|
+
undefined,
|
|
2454
|
+
]
|
|
2455
|
+
}
|
|
2456
|
+
/>
|
|
2457
|
+
</View>
|
|
1872
2458
|
</View>
|
|
1873
2459
|
`;
|
|
1874
2460
|
|
|
@@ -2043,7 +2629,6 @@ exports[`TextInput required renders correctly 1`] = `
|
|
|
2043
2629
|
]
|
|
2044
2630
|
}
|
|
2045
2631
|
testID="text-input"
|
|
2046
|
-
value=""
|
|
2047
2632
|
/>
|
|
2048
2633
|
</View>
|
|
2049
2634
|
<HeroIcon
|
|
@@ -2066,13 +2651,23 @@ exports[`TextInput required renders correctly 1`] = `
|
|
|
2066
2651
|
style={
|
|
2067
2652
|
Array [
|
|
2068
2653
|
Object {
|
|
2069
|
-
"
|
|
2070
|
-
"flexDirection": "row",
|
|
2071
|
-
"justifyContent": "space-between",
|
|
2654
|
+
"paddingLeft": 16,
|
|
2072
2655
|
},
|
|
2073
2656
|
undefined,
|
|
2074
2657
|
]
|
|
2075
2658
|
}
|
|
2076
|
-
|
|
2659
|
+
>
|
|
2660
|
+
<View
|
|
2661
|
+
style={
|
|
2662
|
+
Array [
|
|
2663
|
+
Object {
|
|
2664
|
+
"flexDirection": "row",
|
|
2665
|
+
"justifyContent": "space-between",
|
|
2666
|
+
},
|
|
2667
|
+
undefined,
|
|
2668
|
+
]
|
|
2669
|
+
}
|
|
2670
|
+
/>
|
|
2671
|
+
</View>
|
|
2077
2672
|
</View>
|
|
2078
2673
|
`;
|