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