@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,287 +1,651 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Caption has archived intent style 1`] = `
4
- <Text
5
- allowFontScaling={false}
4
+ <View
6
5
  style={
7
- [
8
- {
9
- "color": "#606065",
10
- "fontFamily": "BeVietnamPro-Regular",
11
- "fontSize": 12,
12
- "letterSpacing": 0.48,
13
- "lineHeight": 16,
14
- },
15
- undefined,
16
- ]
6
+ {
7
+ "flex": 1,
8
+ }
17
9
  }
18
- themeFontWeight="regular"
19
- themeIntent="archived"
20
10
  >
21
- This is a test
22
- </Text>
11
+ <Text
12
+ allowFontScaling={false}
13
+ style={
14
+ [
15
+ {
16
+ "color": "#606065",
17
+ "fontFamily": "BeVietnamPro-Regular",
18
+ "fontSize": 12,
19
+ "letterSpacing": 0.48,
20
+ "lineHeight": 16,
21
+ },
22
+ undefined,
23
+ ]
24
+ }
25
+ themeFontWeight="regular"
26
+ themeIntent="archived"
27
+ >
28
+ This is a test
29
+ </Text>
30
+ <View
31
+ pointerEvents="box-none"
32
+ position="bottom"
33
+ style={
34
+ [
35
+ {
36
+ "bottom": 0,
37
+ "elevation": 9999,
38
+ "flexDirection": "column-reverse",
39
+ "left": 0,
40
+ "paddingHorizontal": 24,
41
+ "paddingVertical": 16,
42
+ "position": "absolute",
43
+ "right": 0,
44
+ "top": 0,
45
+ },
46
+ undefined,
47
+ ]
48
+ }
49
+ />
50
+ </View>
23
51
  `;
24
52
 
25
53
  exports[`Caption has body intent style 1`] = `
26
- <Text
27
- allowFontScaling={false}
54
+ <View
28
55
  style={
29
- [
30
- {
31
- "color": "#001f23",
32
- "fontFamily": "BeVietnamPro-Regular",
33
- "fontSize": 12,
34
- "letterSpacing": 0.48,
35
- "lineHeight": 16,
36
- },
37
- undefined,
38
- ]
56
+ {
57
+ "flex": 1,
58
+ }
39
59
  }
40
- themeFontWeight="regular"
41
- themeIntent="body"
42
60
  >
43
- This is a test
44
- </Text>
61
+ <Text
62
+ allowFontScaling={false}
63
+ style={
64
+ [
65
+ {
66
+ "color": "#001f23",
67
+ "fontFamily": "BeVietnamPro-Regular",
68
+ "fontSize": 12,
69
+ "letterSpacing": 0.48,
70
+ "lineHeight": 16,
71
+ },
72
+ undefined,
73
+ ]
74
+ }
75
+ themeFontWeight="regular"
76
+ themeIntent="body"
77
+ >
78
+ This is a test
79
+ </Text>
80
+ <View
81
+ pointerEvents="box-none"
82
+ position="bottom"
83
+ style={
84
+ [
85
+ {
86
+ "bottom": 0,
87
+ "elevation": 9999,
88
+ "flexDirection": "column-reverse",
89
+ "left": 0,
90
+ "paddingHorizontal": 24,
91
+ "paddingVertical": 16,
92
+ "position": "absolute",
93
+ "right": 0,
94
+ "top": 0,
95
+ },
96
+ undefined,
97
+ ]
98
+ }
99
+ />
100
+ </View>
45
101
  `;
46
102
 
47
103
  exports[`Caption has danger intent style 1`] = `
48
- <Text
49
- allowFontScaling={false}
104
+ <View
50
105
  style={
51
- [
52
- {
53
- "color": "#f46363",
54
- "fontFamily": "BeVietnamPro-Regular",
55
- "fontSize": 12,
56
- "letterSpacing": 0.48,
57
- "lineHeight": 16,
58
- },
59
- undefined,
60
- ]
106
+ {
107
+ "flex": 1,
108
+ }
61
109
  }
62
- themeFontWeight="regular"
63
- themeIntent="danger"
64
110
  >
65
- This is a test
66
- </Text>
111
+ <Text
112
+ allowFontScaling={false}
113
+ style={
114
+ [
115
+ {
116
+ "color": "#f46363",
117
+ "fontFamily": "BeVietnamPro-Regular",
118
+ "fontSize": 12,
119
+ "letterSpacing": 0.48,
120
+ "lineHeight": 16,
121
+ },
122
+ undefined,
123
+ ]
124
+ }
125
+ themeFontWeight="regular"
126
+ themeIntent="danger"
127
+ >
128
+ This is a test
129
+ </Text>
130
+ <View
131
+ pointerEvents="box-none"
132
+ position="bottom"
133
+ style={
134
+ [
135
+ {
136
+ "bottom": 0,
137
+ "elevation": 9999,
138
+ "flexDirection": "column-reverse",
139
+ "left": 0,
140
+ "paddingHorizontal": 24,
141
+ "paddingVertical": 16,
142
+ "position": "absolute",
143
+ "right": 0,
144
+ "top": 0,
145
+ },
146
+ undefined,
147
+ ]
148
+ }
149
+ />
150
+ </View>
67
151
  `;
68
152
 
69
153
  exports[`Caption has disabled intent style 1`] = `
70
- <Text
71
- allowFontScaling={false}
154
+ <View
72
155
  style={
73
- [
74
- {
75
- "color": "#bfc1c5",
76
- "fontFamily": "BeVietnamPro-Regular",
77
- "fontSize": 12,
78
- "letterSpacing": 0.48,
79
- "lineHeight": 16,
80
- },
81
- undefined,
82
- ]
156
+ {
157
+ "flex": 1,
158
+ }
83
159
  }
84
- themeFontWeight="regular"
85
- themeIntent="disabled"
86
160
  >
87
- This is a test
88
- </Text>
161
+ <Text
162
+ allowFontScaling={false}
163
+ style={
164
+ [
165
+ {
166
+ "color": "#bfc1c5",
167
+ "fontFamily": "BeVietnamPro-Regular",
168
+ "fontSize": 12,
169
+ "letterSpacing": 0.48,
170
+ "lineHeight": 16,
171
+ },
172
+ undefined,
173
+ ]
174
+ }
175
+ themeFontWeight="regular"
176
+ themeIntent="disabled"
177
+ >
178
+ This is a test
179
+ </Text>
180
+ <View
181
+ pointerEvents="box-none"
182
+ position="bottom"
183
+ style={
184
+ [
185
+ {
186
+ "bottom": 0,
187
+ "elevation": 9999,
188
+ "flexDirection": "column-reverse",
189
+ "left": 0,
190
+ "paddingHorizontal": 24,
191
+ "paddingVertical": 16,
192
+ "position": "absolute",
193
+ "right": 0,
194
+ "top": 0,
195
+ },
196
+ undefined,
197
+ ]
198
+ }
199
+ />
200
+ </View>
89
201
  `;
90
202
 
91
203
  exports[`Caption has info intent style 1`] = `
92
- <Text
93
- allowFontScaling={false}
204
+ <View
94
205
  style={
95
- [
96
- {
97
- "color": "#355bfb",
98
- "fontFamily": "BeVietnamPro-Regular",
99
- "fontSize": 12,
100
- "letterSpacing": 0.48,
101
- "lineHeight": 16,
102
- },
103
- undefined,
104
- ]
206
+ {
207
+ "flex": 1,
208
+ }
105
209
  }
106
- themeFontWeight="regular"
107
- themeIntent="info"
108
210
  >
109
- This is a test
110
- </Text>
211
+ <Text
212
+ allowFontScaling={false}
213
+ style={
214
+ [
215
+ {
216
+ "color": "#355bfb",
217
+ "fontFamily": "BeVietnamPro-Regular",
218
+ "fontSize": 12,
219
+ "letterSpacing": 0.48,
220
+ "lineHeight": 16,
221
+ },
222
+ undefined,
223
+ ]
224
+ }
225
+ themeFontWeight="regular"
226
+ themeIntent="info"
227
+ >
228
+ This is a test
229
+ </Text>
230
+ <View
231
+ pointerEvents="box-none"
232
+ position="bottom"
233
+ style={
234
+ [
235
+ {
236
+ "bottom": 0,
237
+ "elevation": 9999,
238
+ "flexDirection": "column-reverse",
239
+ "left": 0,
240
+ "paddingHorizontal": 24,
241
+ "paddingVertical": 16,
242
+ "position": "absolute",
243
+ "right": 0,
244
+ "top": 0,
245
+ },
246
+ undefined,
247
+ ]
248
+ }
249
+ />
250
+ </View>
111
251
  `;
112
252
 
113
253
  exports[`Caption has inverted intent style 1`] = `
114
- <Text
115
- allowFontScaling={false}
254
+ <View
116
255
  style={
117
- [
118
- {
119
- "color": "#ffffff",
120
- "fontFamily": "BeVietnamPro-Regular",
121
- "fontSize": 12,
122
- "letterSpacing": 0.48,
123
- "lineHeight": 16,
124
- },
125
- undefined,
126
- ]
256
+ {
257
+ "flex": 1,
258
+ }
127
259
  }
128
- themeFontWeight="regular"
129
- themeIntent="inverted"
130
260
  >
131
- This is a test
132
- </Text>
261
+ <Text
262
+ allowFontScaling={false}
263
+ style={
264
+ [
265
+ {
266
+ "color": "#ffffff",
267
+ "fontFamily": "BeVietnamPro-Regular",
268
+ "fontSize": 12,
269
+ "letterSpacing": 0.48,
270
+ "lineHeight": 16,
271
+ },
272
+ undefined,
273
+ ]
274
+ }
275
+ themeFontWeight="regular"
276
+ themeIntent="inverted"
277
+ >
278
+ This is a test
279
+ </Text>
280
+ <View
281
+ pointerEvents="box-none"
282
+ position="bottom"
283
+ style={
284
+ [
285
+ {
286
+ "bottom": 0,
287
+ "elevation": 9999,
288
+ "flexDirection": "column-reverse",
289
+ "left": 0,
290
+ "paddingHorizontal": 24,
291
+ "paddingVertical": 16,
292
+ "position": "absolute",
293
+ "right": 0,
294
+ "top": 0,
295
+ },
296
+ undefined,
297
+ ]
298
+ }
299
+ />
300
+ </View>
133
301
  `;
134
302
 
135
303
  exports[`Caption has primary intent style 1`] = `
136
- <Text
137
- allowFontScaling={false}
304
+ <View
138
305
  style={
139
- [
140
- {
141
- "color": "#401960",
142
- "fontFamily": "BeVietnamPro-Regular",
143
- "fontSize": 12,
144
- "letterSpacing": 0.48,
145
- "lineHeight": 16,
146
- },
147
- undefined,
148
- ]
306
+ {
307
+ "flex": 1,
308
+ }
149
309
  }
150
- themeFontWeight="regular"
151
- themeIntent="primary"
152
310
  >
153
- This is a test
154
- </Text>
311
+ <Text
312
+ allowFontScaling={false}
313
+ style={
314
+ [
315
+ {
316
+ "color": "#401960",
317
+ "fontFamily": "BeVietnamPro-Regular",
318
+ "fontSize": 12,
319
+ "letterSpacing": 0.48,
320
+ "lineHeight": 16,
321
+ },
322
+ undefined,
323
+ ]
324
+ }
325
+ themeFontWeight="regular"
326
+ themeIntent="primary"
327
+ >
328
+ This is a test
329
+ </Text>
330
+ <View
331
+ pointerEvents="box-none"
332
+ position="bottom"
333
+ style={
334
+ [
335
+ {
336
+ "bottom": 0,
337
+ "elevation": 9999,
338
+ "flexDirection": "column-reverse",
339
+ "left": 0,
340
+ "paddingHorizontal": 24,
341
+ "paddingVertical": 16,
342
+ "position": "absolute",
343
+ "right": 0,
344
+ "top": 0,
345
+ },
346
+ undefined,
347
+ ]
348
+ }
349
+ />
350
+ </View>
155
351
  `;
156
352
 
157
353
  exports[`Caption has regular fontWeight style 1`] = `
158
- <Text
159
- allowFontScaling={false}
354
+ <View
160
355
  style={
161
- [
162
- {
163
- "color": "#001f23",
164
- "fontFamily": "BeVietnamPro-Regular",
165
- "fontSize": 12,
166
- "letterSpacing": 0.48,
167
- "lineHeight": 16,
168
- },
169
- undefined,
170
- ]
356
+ {
357
+ "flex": 1,
358
+ }
171
359
  }
172
- themeFontWeight="regular"
173
- themeIntent="body"
174
360
  >
175
- This is a test
176
- </Text>
361
+ <Text
362
+ allowFontScaling={false}
363
+ style={
364
+ [
365
+ {
366
+ "color": "#001f23",
367
+ "fontFamily": "BeVietnamPro-Regular",
368
+ "fontSize": 12,
369
+ "letterSpacing": 0.48,
370
+ "lineHeight": 16,
371
+ },
372
+ undefined,
373
+ ]
374
+ }
375
+ themeFontWeight="regular"
376
+ themeIntent="body"
377
+ >
378
+ This is a test
379
+ </Text>
380
+ <View
381
+ pointerEvents="box-none"
382
+ position="bottom"
383
+ style={
384
+ [
385
+ {
386
+ "bottom": 0,
387
+ "elevation": 9999,
388
+ "flexDirection": "column-reverse",
389
+ "left": 0,
390
+ "paddingHorizontal": 24,
391
+ "paddingVertical": 16,
392
+ "position": "absolute",
393
+ "right": 0,
394
+ "top": 0,
395
+ },
396
+ undefined,
397
+ ]
398
+ }
399
+ />
400
+ </View>
177
401
  `;
178
402
 
179
403
  exports[`Caption has secondary intent style 1`] = `
180
- <Text
181
- allowFontScaling={false}
404
+ <View
182
405
  style={
183
- [
184
- {
185
- "color": "#795e90",
186
- "fontFamily": "BeVietnamPro-Regular",
187
- "fontSize": 12,
188
- "letterSpacing": 0.48,
189
- "lineHeight": 16,
190
- },
191
- undefined,
192
- ]
406
+ {
407
+ "flex": 1,
408
+ }
193
409
  }
194
- themeFontWeight="regular"
195
- themeIntent="secondary"
196
410
  >
197
- This is a test
198
- </Text>
411
+ <Text
412
+ allowFontScaling={false}
413
+ style={
414
+ [
415
+ {
416
+ "color": "#795e90",
417
+ "fontFamily": "BeVietnamPro-Regular",
418
+ "fontSize": 12,
419
+ "letterSpacing": 0.48,
420
+ "lineHeight": 16,
421
+ },
422
+ undefined,
423
+ ]
424
+ }
425
+ themeFontWeight="regular"
426
+ themeIntent="secondary"
427
+ >
428
+ This is a test
429
+ </Text>
430
+ <View
431
+ pointerEvents="box-none"
432
+ position="bottom"
433
+ style={
434
+ [
435
+ {
436
+ "bottom": 0,
437
+ "elevation": 9999,
438
+ "flexDirection": "column-reverse",
439
+ "left": 0,
440
+ "paddingHorizontal": 24,
441
+ "paddingVertical": 16,
442
+ "position": "absolute",
443
+ "right": 0,
444
+ "top": 0,
445
+ },
446
+ undefined,
447
+ ]
448
+ }
449
+ />
450
+ </View>
199
451
  `;
200
452
 
201
453
  exports[`Caption has semi-bold fontWeight style 1`] = `
202
- <Text
203
- allowFontScaling={false}
454
+ <View
204
455
  style={
205
- [
206
- {
207
- "color": "#001f23",
208
- "fontFamily": "BeVietnamPro-SemiBold",
209
- "fontSize": 12,
210
- "letterSpacing": 0.24,
211
- "lineHeight": 16,
212
- },
213
- undefined,
214
- ]
456
+ {
457
+ "flex": 1,
458
+ }
215
459
  }
216
- themeFontWeight="semi-bold"
217
- themeIntent="body"
218
460
  >
219
- This is a test
220
- </Text>
461
+ <Text
462
+ allowFontScaling={false}
463
+ style={
464
+ [
465
+ {
466
+ "color": "#001f23",
467
+ "fontFamily": "BeVietnamPro-SemiBold",
468
+ "fontSize": 12,
469
+ "letterSpacing": 0.24,
470
+ "lineHeight": 16,
471
+ },
472
+ undefined,
473
+ ]
474
+ }
475
+ themeFontWeight="semi-bold"
476
+ themeIntent="body"
477
+ >
478
+ This is a test
479
+ </Text>
480
+ <View
481
+ pointerEvents="box-none"
482
+ position="bottom"
483
+ style={
484
+ [
485
+ {
486
+ "bottom": 0,
487
+ "elevation": 9999,
488
+ "flexDirection": "column-reverse",
489
+ "left": 0,
490
+ "paddingHorizontal": 24,
491
+ "paddingVertical": 16,
492
+ "position": "absolute",
493
+ "right": 0,
494
+ "top": 0,
495
+ },
496
+ undefined,
497
+ ]
498
+ }
499
+ />
500
+ </View>
221
501
  `;
222
502
 
223
503
  exports[`Caption has subdued intent style 1`] = `
224
- <Text
225
- allowFontScaling={false}
504
+ <View
226
505
  style={
227
- [
228
- {
229
- "color": "#4d6265",
230
- "fontFamily": "BeVietnamPro-Regular",
231
- "fontSize": 12,
232
- "letterSpacing": 0.48,
233
- "lineHeight": 16,
234
- },
235
- undefined,
236
- ]
506
+ {
507
+ "flex": 1,
508
+ }
237
509
  }
238
- themeFontWeight="regular"
239
- themeIntent="subdued"
240
510
  >
241
- This is a test
242
- </Text>
511
+ <Text
512
+ allowFontScaling={false}
513
+ style={
514
+ [
515
+ {
516
+ "color": "#4d6265",
517
+ "fontFamily": "BeVietnamPro-Regular",
518
+ "fontSize": 12,
519
+ "letterSpacing": 0.48,
520
+ "lineHeight": 16,
521
+ },
522
+ undefined,
523
+ ]
524
+ }
525
+ themeFontWeight="regular"
526
+ themeIntent="subdued"
527
+ >
528
+ This is a test
529
+ </Text>
530
+ <View
531
+ pointerEvents="box-none"
532
+ position="bottom"
533
+ style={
534
+ [
535
+ {
536
+ "bottom": 0,
537
+ "elevation": 9999,
538
+ "flexDirection": "column-reverse",
539
+ "left": 0,
540
+ "paddingHorizontal": 24,
541
+ "paddingVertical": 16,
542
+ "position": "absolute",
543
+ "right": 0,
544
+ "top": 0,
545
+ },
546
+ undefined,
547
+ ]
548
+ }
549
+ />
550
+ </View>
243
551
  `;
244
552
 
245
553
  exports[`Caption has success intent style 1`] = `
246
- <Text
247
- allowFontScaling={false}
554
+ <View
248
555
  style={
249
- [
250
- {
251
- "color": "#5ace7d",
252
- "fontFamily": "BeVietnamPro-Regular",
253
- "fontSize": 12,
254
- "letterSpacing": 0.48,
255
- "lineHeight": 16,
256
- },
257
- undefined,
258
- ]
556
+ {
557
+ "flex": 1,
558
+ }
259
559
  }
260
- themeFontWeight="regular"
261
- themeIntent="success"
262
560
  >
263
- This is a test
264
- </Text>
561
+ <Text
562
+ allowFontScaling={false}
563
+ style={
564
+ [
565
+ {
566
+ "color": "#5ace7d",
567
+ "fontFamily": "BeVietnamPro-Regular",
568
+ "fontSize": 12,
569
+ "letterSpacing": 0.48,
570
+ "lineHeight": 16,
571
+ },
572
+ undefined,
573
+ ]
574
+ }
575
+ themeFontWeight="regular"
576
+ themeIntent="success"
577
+ >
578
+ This is a test
579
+ </Text>
580
+ <View
581
+ pointerEvents="box-none"
582
+ position="bottom"
583
+ style={
584
+ [
585
+ {
586
+ "bottom": 0,
587
+ "elevation": 9999,
588
+ "flexDirection": "column-reverse",
589
+ "left": 0,
590
+ "paddingHorizontal": 24,
591
+ "paddingVertical": 16,
592
+ "position": "absolute",
593
+ "right": 0,
594
+ "top": 0,
595
+ },
596
+ undefined,
597
+ ]
598
+ }
599
+ />
600
+ </View>
265
601
  `;
266
602
 
267
603
  exports[`Caption has warning intent style 1`] = `
268
- <Text
269
- allowFontScaling={false}
604
+ <View
270
605
  style={
271
- [
272
- {
273
- "color": "#ffbe71",
274
- "fontFamily": "BeVietnamPro-Regular",
275
- "fontSize": 12,
276
- "letterSpacing": 0.48,
277
- "lineHeight": 16,
278
- },
279
- undefined,
280
- ]
606
+ {
607
+ "flex": 1,
608
+ }
281
609
  }
282
- themeFontWeight="regular"
283
- themeIntent="warning"
284
610
  >
285
- This is a test
286
- </Text>
611
+ <Text
612
+ allowFontScaling={false}
613
+ style={
614
+ [
615
+ {
616
+ "color": "#ffbe71",
617
+ "fontFamily": "BeVietnamPro-Regular",
618
+ "fontSize": 12,
619
+ "letterSpacing": 0.48,
620
+ "lineHeight": 16,
621
+ },
622
+ undefined,
623
+ ]
624
+ }
625
+ themeFontWeight="regular"
626
+ themeIntent="warning"
627
+ >
628
+ This is a test
629
+ </Text>
630
+ <View
631
+ pointerEvents="box-none"
632
+ position="bottom"
633
+ style={
634
+ [
635
+ {
636
+ "bottom": 0,
637
+ "elevation": 9999,
638
+ "flexDirection": "column-reverse",
639
+ "left": 0,
640
+ "paddingHorizontal": 24,
641
+ "paddingVertical": 16,
642
+ "position": "absolute",
643
+ "right": 0,
644
+ "top": 0,
645
+ },
646
+ undefined,
647
+ ]
648
+ }
649
+ />
650
+ </View>
287
651
  `;