@hero-design/rn 8.43.1 → 8.44.0
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/CHANGELOG.md +10 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +366 -359
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +366 -359
- package/package.json +1 -1
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -452
- package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +790 -706
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -652
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +170 -142
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -82
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -689
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +157 -73
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -189
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -278
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -233
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -120
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -810
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -140
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1666 -1218
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +70 -42
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1623 -727
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -415
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -430
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +196 -84
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1720 -1636
- package/src/components/Carousel/__tests__/index.spec.tsx +7 -6
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +400 -176
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -406
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1170 -834
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +421 -337
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -502
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -172
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -164
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -443
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -243
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +845 -789
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +197 -113
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +290 -206
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
- package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -186
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +761 -649
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +268 -156
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +473 -221
- package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +60 -8
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +83 -55
- package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
- package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
- package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
- package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -132
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +256 -228
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -780
- package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
- package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +406 -378
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -36
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -315
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -65
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2402 -2290
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +180 -24
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -45
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2309 -2197
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +150 -20
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -126
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +145 -117
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -76
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2214 -2130
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -495
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1637 -1553
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -334
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -606
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -675
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -498
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -459
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
- package/src/testHelpers/renderWithTheme.tsx +2 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
|
@@ -3,219 +3,387 @@
|
|
|
3
3
|
exports[`Card renders correctly when intent is archived 1`] = `
|
|
4
4
|
<View
|
|
5
5
|
style={
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"borderRadius": 12,
|
|
10
|
-
"overflow": "hidden",
|
|
11
|
-
},
|
|
12
|
-
undefined,
|
|
13
|
-
]
|
|
6
|
+
{
|
|
7
|
+
"flex": 1,
|
|
8
|
+
}
|
|
14
9
|
}
|
|
15
|
-
themeIntent="archived"
|
|
16
10
|
>
|
|
17
|
-
<
|
|
18
|
-
allowFontScaling={false}
|
|
11
|
+
<View
|
|
19
12
|
style={
|
|
20
13
|
[
|
|
21
14
|
{
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"letterSpacing": 0.48,
|
|
26
|
-
"lineHeight": 22,
|
|
15
|
+
"backgroundColor": "#abacaf",
|
|
16
|
+
"borderRadius": 12,
|
|
17
|
+
"overflow": "hidden",
|
|
27
18
|
},
|
|
28
19
|
undefined,
|
|
29
20
|
]
|
|
30
21
|
}
|
|
31
|
-
themeIntent="
|
|
32
|
-
themeTypeface="neutral"
|
|
33
|
-
themeVariant="small"
|
|
22
|
+
themeIntent="archived"
|
|
34
23
|
>
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
<Text
|
|
25
|
+
allowFontScaling={false}
|
|
26
|
+
style={
|
|
27
|
+
[
|
|
28
|
+
{
|
|
29
|
+
"color": "#001f23",
|
|
30
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
31
|
+
"fontSize": 14,
|
|
32
|
+
"letterSpacing": 0.48,
|
|
33
|
+
"lineHeight": 22,
|
|
34
|
+
},
|
|
35
|
+
undefined,
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
themeIntent="body"
|
|
39
|
+
themeTypeface="neutral"
|
|
40
|
+
themeVariant="small"
|
|
41
|
+
>
|
|
42
|
+
Card Content
|
|
43
|
+
</Text>
|
|
44
|
+
</View>
|
|
45
|
+
<View
|
|
46
|
+
pointerEvents="box-none"
|
|
47
|
+
position="bottom"
|
|
48
|
+
style={
|
|
49
|
+
[
|
|
50
|
+
{
|
|
51
|
+
"bottom": 0,
|
|
52
|
+
"elevation": 9999,
|
|
53
|
+
"flexDirection": "column-reverse",
|
|
54
|
+
"left": 0,
|
|
55
|
+
"paddingHorizontal": 24,
|
|
56
|
+
"paddingVertical": 16,
|
|
57
|
+
"position": "absolute",
|
|
58
|
+
"right": 0,
|
|
59
|
+
"top": 0,
|
|
60
|
+
},
|
|
61
|
+
undefined,
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
/>
|
|
37
65
|
</View>
|
|
38
66
|
`;
|
|
39
67
|
|
|
40
68
|
exports[`Card renders correctly when intent is danger 1`] = `
|
|
41
69
|
<View
|
|
42
70
|
style={
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"borderRadius": 12,
|
|
47
|
-
"overflow": "hidden",
|
|
48
|
-
},
|
|
49
|
-
undefined,
|
|
50
|
-
]
|
|
71
|
+
{
|
|
72
|
+
"flex": 1,
|
|
73
|
+
}
|
|
51
74
|
}
|
|
52
|
-
themeIntent="danger"
|
|
53
75
|
>
|
|
54
|
-
<
|
|
55
|
-
allowFontScaling={false}
|
|
76
|
+
<View
|
|
56
77
|
style={
|
|
57
78
|
[
|
|
58
79
|
{
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"letterSpacing": 0.48,
|
|
63
|
-
"lineHeight": 22,
|
|
80
|
+
"backgroundColor": "#f46363",
|
|
81
|
+
"borderRadius": 12,
|
|
82
|
+
"overflow": "hidden",
|
|
64
83
|
},
|
|
65
84
|
undefined,
|
|
66
85
|
]
|
|
67
86
|
}
|
|
68
|
-
themeIntent="
|
|
69
|
-
themeTypeface="neutral"
|
|
70
|
-
themeVariant="small"
|
|
87
|
+
themeIntent="danger"
|
|
71
88
|
>
|
|
72
|
-
|
|
73
|
-
|
|
89
|
+
<Text
|
|
90
|
+
allowFontScaling={false}
|
|
91
|
+
style={
|
|
92
|
+
[
|
|
93
|
+
{
|
|
94
|
+
"color": "#001f23",
|
|
95
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
96
|
+
"fontSize": 14,
|
|
97
|
+
"letterSpacing": 0.48,
|
|
98
|
+
"lineHeight": 22,
|
|
99
|
+
},
|
|
100
|
+
undefined,
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
themeIntent="body"
|
|
104
|
+
themeTypeface="neutral"
|
|
105
|
+
themeVariant="small"
|
|
106
|
+
>
|
|
107
|
+
Card Content
|
|
108
|
+
</Text>
|
|
109
|
+
</View>
|
|
110
|
+
<View
|
|
111
|
+
pointerEvents="box-none"
|
|
112
|
+
position="bottom"
|
|
113
|
+
style={
|
|
114
|
+
[
|
|
115
|
+
{
|
|
116
|
+
"bottom": 0,
|
|
117
|
+
"elevation": 9999,
|
|
118
|
+
"flexDirection": "column-reverse",
|
|
119
|
+
"left": 0,
|
|
120
|
+
"paddingHorizontal": 24,
|
|
121
|
+
"paddingVertical": 16,
|
|
122
|
+
"position": "absolute",
|
|
123
|
+
"right": 0,
|
|
124
|
+
"top": 0,
|
|
125
|
+
},
|
|
126
|
+
undefined,
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
/>
|
|
74
130
|
</View>
|
|
75
131
|
`;
|
|
76
132
|
|
|
77
133
|
exports[`Card renders correctly when intent is info 1`] = `
|
|
78
134
|
<View
|
|
79
135
|
style={
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"borderRadius": 12,
|
|
84
|
-
"overflow": "hidden",
|
|
85
|
-
},
|
|
86
|
-
undefined,
|
|
87
|
-
]
|
|
136
|
+
{
|
|
137
|
+
"flex": 1,
|
|
138
|
+
}
|
|
88
139
|
}
|
|
89
|
-
themeIntent="info"
|
|
90
140
|
>
|
|
91
|
-
<
|
|
92
|
-
allowFontScaling={false}
|
|
141
|
+
<View
|
|
93
142
|
style={
|
|
94
143
|
[
|
|
95
144
|
{
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"letterSpacing": 0.48,
|
|
100
|
-
"lineHeight": 22,
|
|
145
|
+
"backgroundColor": "#b5c3fd",
|
|
146
|
+
"borderRadius": 12,
|
|
147
|
+
"overflow": "hidden",
|
|
101
148
|
},
|
|
102
149
|
undefined,
|
|
103
150
|
]
|
|
104
151
|
}
|
|
105
|
-
themeIntent="
|
|
106
|
-
themeTypeface="neutral"
|
|
107
|
-
themeVariant="small"
|
|
152
|
+
themeIntent="info"
|
|
108
153
|
>
|
|
109
|
-
|
|
110
|
-
|
|
154
|
+
<Text
|
|
155
|
+
allowFontScaling={false}
|
|
156
|
+
style={
|
|
157
|
+
[
|
|
158
|
+
{
|
|
159
|
+
"color": "#001f23",
|
|
160
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
161
|
+
"fontSize": 14,
|
|
162
|
+
"letterSpacing": 0.48,
|
|
163
|
+
"lineHeight": 22,
|
|
164
|
+
},
|
|
165
|
+
undefined,
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
themeIntent="body"
|
|
169
|
+
themeTypeface="neutral"
|
|
170
|
+
themeVariant="small"
|
|
171
|
+
>
|
|
172
|
+
Card Content
|
|
173
|
+
</Text>
|
|
174
|
+
</View>
|
|
175
|
+
<View
|
|
176
|
+
pointerEvents="box-none"
|
|
177
|
+
position="bottom"
|
|
178
|
+
style={
|
|
179
|
+
[
|
|
180
|
+
{
|
|
181
|
+
"bottom": 0,
|
|
182
|
+
"elevation": 9999,
|
|
183
|
+
"flexDirection": "column-reverse",
|
|
184
|
+
"left": 0,
|
|
185
|
+
"paddingHorizontal": 24,
|
|
186
|
+
"paddingVertical": 16,
|
|
187
|
+
"position": "absolute",
|
|
188
|
+
"right": 0,
|
|
189
|
+
"top": 0,
|
|
190
|
+
},
|
|
191
|
+
undefined,
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
/>
|
|
111
195
|
</View>
|
|
112
196
|
`;
|
|
113
197
|
|
|
114
198
|
exports[`Card renders correctly when intent is primary 1`] = `
|
|
115
199
|
<View
|
|
116
200
|
style={
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"borderRadius": 12,
|
|
121
|
-
"overflow": "hidden",
|
|
122
|
-
},
|
|
123
|
-
undefined,
|
|
124
|
-
]
|
|
201
|
+
{
|
|
202
|
+
"flex": 1,
|
|
203
|
+
}
|
|
125
204
|
}
|
|
126
|
-
themeIntent="primary"
|
|
127
205
|
>
|
|
128
|
-
<
|
|
129
|
-
allowFontScaling={false}
|
|
206
|
+
<View
|
|
130
207
|
style={
|
|
131
208
|
[
|
|
132
209
|
{
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"letterSpacing": 0.48,
|
|
137
|
-
"lineHeight": 22,
|
|
210
|
+
"backgroundColor": "#401960",
|
|
211
|
+
"borderRadius": 12,
|
|
212
|
+
"overflow": "hidden",
|
|
138
213
|
},
|
|
139
214
|
undefined,
|
|
140
215
|
]
|
|
141
216
|
}
|
|
142
|
-
themeIntent="
|
|
143
|
-
themeTypeface="neutral"
|
|
144
|
-
themeVariant="small"
|
|
217
|
+
themeIntent="primary"
|
|
145
218
|
>
|
|
146
|
-
|
|
147
|
-
|
|
219
|
+
<Text
|
|
220
|
+
allowFontScaling={false}
|
|
221
|
+
style={
|
|
222
|
+
[
|
|
223
|
+
{
|
|
224
|
+
"color": "#001f23",
|
|
225
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
226
|
+
"fontSize": 14,
|
|
227
|
+
"letterSpacing": 0.48,
|
|
228
|
+
"lineHeight": 22,
|
|
229
|
+
},
|
|
230
|
+
undefined,
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
themeIntent="body"
|
|
234
|
+
themeTypeface="neutral"
|
|
235
|
+
themeVariant="small"
|
|
236
|
+
>
|
|
237
|
+
Card Content
|
|
238
|
+
</Text>
|
|
239
|
+
</View>
|
|
240
|
+
<View
|
|
241
|
+
pointerEvents="box-none"
|
|
242
|
+
position="bottom"
|
|
243
|
+
style={
|
|
244
|
+
[
|
|
245
|
+
{
|
|
246
|
+
"bottom": 0,
|
|
247
|
+
"elevation": 9999,
|
|
248
|
+
"flexDirection": "column-reverse",
|
|
249
|
+
"left": 0,
|
|
250
|
+
"paddingHorizontal": 24,
|
|
251
|
+
"paddingVertical": 16,
|
|
252
|
+
"position": "absolute",
|
|
253
|
+
"right": 0,
|
|
254
|
+
"top": 0,
|
|
255
|
+
},
|
|
256
|
+
undefined,
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
/>
|
|
148
260
|
</View>
|
|
149
261
|
`;
|
|
150
262
|
|
|
151
263
|
exports[`Card renders correctly when intent is success 1`] = `
|
|
152
264
|
<View
|
|
153
265
|
style={
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"borderRadius": 12,
|
|
158
|
-
"overflow": "hidden",
|
|
159
|
-
},
|
|
160
|
-
undefined,
|
|
161
|
-
]
|
|
266
|
+
{
|
|
267
|
+
"flex": 1,
|
|
268
|
+
}
|
|
162
269
|
}
|
|
163
|
-
themeIntent="success"
|
|
164
270
|
>
|
|
165
|
-
<
|
|
166
|
-
allowFontScaling={false}
|
|
271
|
+
<View
|
|
167
272
|
style={
|
|
168
273
|
[
|
|
169
274
|
{
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"letterSpacing": 0.48,
|
|
174
|
-
"lineHeight": 22,
|
|
275
|
+
"backgroundColor": "#5ace7d",
|
|
276
|
+
"borderRadius": 12,
|
|
277
|
+
"overflow": "hidden",
|
|
175
278
|
},
|
|
176
279
|
undefined,
|
|
177
280
|
]
|
|
178
281
|
}
|
|
179
|
-
themeIntent="
|
|
180
|
-
themeTypeface="neutral"
|
|
181
|
-
themeVariant="small"
|
|
282
|
+
themeIntent="success"
|
|
182
283
|
>
|
|
183
|
-
|
|
184
|
-
|
|
284
|
+
<Text
|
|
285
|
+
allowFontScaling={false}
|
|
286
|
+
style={
|
|
287
|
+
[
|
|
288
|
+
{
|
|
289
|
+
"color": "#001f23",
|
|
290
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
291
|
+
"fontSize": 14,
|
|
292
|
+
"letterSpacing": 0.48,
|
|
293
|
+
"lineHeight": 22,
|
|
294
|
+
},
|
|
295
|
+
undefined,
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
themeIntent="body"
|
|
299
|
+
themeTypeface="neutral"
|
|
300
|
+
themeVariant="small"
|
|
301
|
+
>
|
|
302
|
+
Card Content
|
|
303
|
+
</Text>
|
|
304
|
+
</View>
|
|
305
|
+
<View
|
|
306
|
+
pointerEvents="box-none"
|
|
307
|
+
position="bottom"
|
|
308
|
+
style={
|
|
309
|
+
[
|
|
310
|
+
{
|
|
311
|
+
"bottom": 0,
|
|
312
|
+
"elevation": 9999,
|
|
313
|
+
"flexDirection": "column-reverse",
|
|
314
|
+
"left": 0,
|
|
315
|
+
"paddingHorizontal": 24,
|
|
316
|
+
"paddingVertical": 16,
|
|
317
|
+
"position": "absolute",
|
|
318
|
+
"right": 0,
|
|
319
|
+
"top": 0,
|
|
320
|
+
},
|
|
321
|
+
undefined,
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
/>
|
|
185
325
|
</View>
|
|
186
326
|
`;
|
|
187
327
|
|
|
188
328
|
exports[`Card renders correctly when intent is undefined 1`] = `
|
|
189
329
|
<View
|
|
190
330
|
style={
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
"overflow": "hidden",
|
|
195
|
-
},
|
|
196
|
-
undefined,
|
|
197
|
-
]
|
|
331
|
+
{
|
|
332
|
+
"flex": 1,
|
|
333
|
+
}
|
|
198
334
|
}
|
|
199
335
|
>
|
|
200
|
-
<
|
|
201
|
-
allowFontScaling={false}
|
|
336
|
+
<View
|
|
202
337
|
style={
|
|
203
338
|
[
|
|
204
339
|
{
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"fontSize": 14,
|
|
208
|
-
"letterSpacing": 0.48,
|
|
209
|
-
"lineHeight": 22,
|
|
340
|
+
"borderRadius": 12,
|
|
341
|
+
"overflow": "hidden",
|
|
210
342
|
},
|
|
211
343
|
undefined,
|
|
212
344
|
]
|
|
213
345
|
}
|
|
214
|
-
themeIntent="body"
|
|
215
|
-
themeTypeface="neutral"
|
|
216
|
-
themeVariant="small"
|
|
217
346
|
>
|
|
218
|
-
|
|
219
|
-
|
|
347
|
+
<Text
|
|
348
|
+
allowFontScaling={false}
|
|
349
|
+
style={
|
|
350
|
+
[
|
|
351
|
+
{
|
|
352
|
+
"color": "#001f23",
|
|
353
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
354
|
+
"fontSize": 14,
|
|
355
|
+
"letterSpacing": 0.48,
|
|
356
|
+
"lineHeight": 22,
|
|
357
|
+
},
|
|
358
|
+
undefined,
|
|
359
|
+
]
|
|
360
|
+
}
|
|
361
|
+
themeIntent="body"
|
|
362
|
+
themeTypeface="neutral"
|
|
363
|
+
themeVariant="small"
|
|
364
|
+
>
|
|
365
|
+
Card Content
|
|
366
|
+
</Text>
|
|
367
|
+
</View>
|
|
368
|
+
<View
|
|
369
|
+
pointerEvents="box-none"
|
|
370
|
+
position="bottom"
|
|
371
|
+
style={
|
|
372
|
+
[
|
|
373
|
+
{
|
|
374
|
+
"bottom": 0,
|
|
375
|
+
"elevation": 9999,
|
|
376
|
+
"flexDirection": "column-reverse",
|
|
377
|
+
"left": 0,
|
|
378
|
+
"paddingHorizontal": 24,
|
|
379
|
+
"paddingVertical": 16,
|
|
380
|
+
"position": "absolute",
|
|
381
|
+
"right": 0,
|
|
382
|
+
"top": 0,
|
|
383
|
+
},
|
|
384
|
+
undefined,
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
/>
|
|
220
388
|
</View>
|
|
221
389
|
`;
|