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