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