@hero-design/rn 7.4.0 → 7.5.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 (155) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +4117 -3926
  4. package/lib/assets/fonts/hero-icons.ttf +0 -0
  5. package/lib/index.js +4111 -3919
  6. package/package.json +2 -2
  7. package/playground/package.json +3 -3
  8. package/playground/src/Alert.tsx +80 -0
  9. package/playground/src/App.tsx +6 -0
  10. package/playground/src/MultipleThemes.tsx +34 -0
  11. package/src/components/Alert/StyledAlert.tsx +48 -0
  12. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +686 -0
  13. package/src/components/Alert/__tests__/index.spec.tsx +83 -0
  14. package/src/components/Alert/index.tsx +109 -0
  15. package/src/components/Icon/HeroIcon/selection.json +1 -1
  16. package/src/components/Icon/IconList.ts +2 -0
  17. package/src/index.ts +2 -0
  18. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +22 -0
  19. package/src/theme/components/alert.ts +32 -0
  20. package/src/theme/global/colors.ts +1 -0
  21. package/src/theme/index.ts +3 -0
  22. package/types/{src/components/Progress/StyledProgressCircle.d.ts → components/Alert/StyledAlert.d.ts} +13 -14
  23. package/types/{src/components/Avatar → components/Alert}/__tests__/index.spec.d.ts +0 -0
  24. package/types/components/Alert/index.d.ts +42 -0
  25. package/types/components/Icon/IconList.d.ts +1 -1
  26. package/types/components/Icon/utils.d.ts +1 -1
  27. package/types/index.d.ts +2 -1
  28. package/types/theme/components/alert.d.ts +23 -0
  29. package/types/theme/global/colors.d.ts +1 -0
  30. package/types/theme/global/index.d.ts +1 -0
  31. package/types/theme/index.d.ts +2 -0
  32. package/.turbo/turbo-build:types.log +0 -2
  33. package/.turbo/turbo-test.log +0 -131
  34. package/.turbo/turbo-type-check.log +0 -7
  35. package/playground/src/Button.tsx~origin_master +0 -170
  36. package/types/playground/components/Avatar.d.ts +0 -2
  37. package/types/playground/components/Badge.d.ts +0 -2
  38. package/types/playground/components/BottomNavigation.d.ts +0 -2
  39. package/types/playground/components/Button.d.ts +0 -2
  40. package/types/playground/components/Card.d.ts +0 -2
  41. package/types/playground/components/Collapse.d.ts +0 -2
  42. package/types/playground/components/Divider.d.ts +0 -2
  43. package/types/playground/components/Drawer.d.ts +0 -2
  44. package/types/playground/components/FAB.d.ts +0 -2
  45. package/types/playground/components/Icon.d.ts +0 -2
  46. package/types/playground/components/IconButton.d.ts +0 -2
  47. package/types/playground/components/Progress.d.ts +0 -2
  48. package/types/playground/components/Tabs.d.ts +0 -2
  49. package/types/playground/components/Tag.d.ts +0 -2
  50. package/types/playground/components/Typography.d.ts +0 -2
  51. package/types/playground/index.d.ts +0 -2
  52. package/types/src/components/Avatar/StyledAvatar.d.ts +0 -46
  53. package/types/src/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -1
  54. package/types/src/components/Avatar/index.d.ts +0 -25
  55. package/types/src/components/Badge/Status.d.ts +0 -24
  56. package/types/src/components/Badge/StyledBadge.d.ts +0 -28
  57. package/types/src/components/Badge/__tests__/Badge.spec.d.ts +0 -1
  58. package/types/src/components/Badge/__tests__/Status.spec.d.ts +0 -1
  59. package/types/src/components/Badge/index.d.ts +0 -32
  60. package/types/src/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
  61. package/types/src/components/BottomNavigation/__tests__/index.spec.d.ts +0 -1
  62. package/types/src/components/BottomNavigation/index.d.ts +0 -45
  63. package/types/src/components/Button/Button.d.ts +0 -57
  64. package/types/src/components/Button/IconButton.d.ts +0 -34
  65. package/types/src/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -20
  66. package/types/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -1
  67. package/types/src/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -1
  68. package/types/src/components/Button/LoadingIndicator/index.d.ts +0 -26
  69. package/types/src/components/Button/StyledButton.d.ts +0 -40
  70. package/types/src/components/Button/__tests__/Button.spec.d.ts +0 -1
  71. package/types/src/components/Button/__tests__/IconButton.spec.d.ts +0 -1
  72. package/types/src/components/Button/__tests__/StyledButton.spec.d.ts +0 -1
  73. package/types/src/components/Button/__tests__/index.spec.d.ts +0 -1
  74. package/types/src/components/Button/index.d.ts +0 -8
  75. package/types/src/components/Card/StyledCard.d.ts +0 -17
  76. package/types/src/components/Card/__tests__/StyledCard.spec.d.ts +0 -1
  77. package/types/src/components/Card/__tests__/index.spec.d.ts +0 -1
  78. package/types/src/components/Card/index.d.ts +0 -22
  79. package/types/src/components/Collapse/StyledCollapse.d.ts +0 -15
  80. package/types/src/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -1
  81. package/types/src/components/Collapse/__tests__/index.spec.d.ts +0 -1
  82. package/types/src/components/Collapse/index.d.ts +0 -23
  83. package/types/src/components/Divider/StyledDivider.d.ts +0 -13
  84. package/types/src/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -1
  85. package/types/src/components/Divider/index.d.ts +0 -21
  86. package/types/src/components/Drawer/StyledDrawer.d.ts +0 -25
  87. package/types/src/components/Drawer/__tests__/index.spec.d.ts +0 -1
  88. package/types/src/components/Drawer/index.d.ts +0 -25
  89. package/types/src/components/FAB/ActionGroup/ActionItem.d.ts +0 -12
  90. package/types/src/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -30
  91. package/types/src/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -13
  92. package/types/src/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -1
  93. package/types/src/components/FAB/ActionGroup/index.d.ts +0 -34
  94. package/types/src/components/FAB/AnimatedFABIcon.d.ts +0 -6
  95. package/types/src/components/FAB/FAB.d.ts +0 -34
  96. package/types/src/components/FAB/StyledFAB.d.ts +0 -20
  97. package/types/src/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -1
  98. package/types/src/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -1
  99. package/types/src/components/FAB/__tests__/index.spec.d.ts +0 -1
  100. package/types/src/components/FAB/index.d.ts +0 -4
  101. package/types/src/components/Icon/HeroIcon/index.d.ts +0 -13
  102. package/types/src/components/Icon/IconList.d.ts +0 -2
  103. package/types/src/components/Icon/__tests__/index.spec.d.ts +0 -1
  104. package/types/src/components/Icon/index.d.ts +0 -27
  105. package/types/src/components/Icon/utils.d.ts +0 -2
  106. package/types/src/components/Progress/ProgressBar.d.ts +0 -18
  107. package/types/src/components/Progress/ProgressCircle.d.ts +0 -18
  108. package/types/src/components/Progress/StyledProgressBar.d.ts +0 -18
  109. package/types/src/components/Progress/__tests__/index.spec.d.ts +0 -1
  110. package/types/src/components/Progress/index.d.ts +0 -5
  111. package/types/src/components/Progress/types.d.ts +0 -1
  112. package/types/src/components/Tabs/ActiveTabIndicator.d.ts +0 -8
  113. package/types/src/components/Tabs/ScrollableTabs.d.ts +0 -3
  114. package/types/src/components/Tabs/StyledScrollableTabs.d.ts +0 -61
  115. package/types/src/components/Tabs/StyledTabs.d.ts +0 -55
  116. package/types/src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -1
  117. package/types/src/components/Tabs/__tests__/index.spec.d.ts +0 -1
  118. package/types/src/components/Tabs/index.d.ts +0 -54
  119. package/types/src/components/Tabs/utils.d.ts +0 -2
  120. package/types/src/components/Tag/StyledTag.d.ts +0 -20
  121. package/types/src/components/Tag/__tests__/Tag.spec.d.ts +0 -1
  122. package/types/src/components/Tag/index.d.ts +0 -21
  123. package/types/src/components/Typography/Text/StyledText.d.ts +0 -13
  124. package/types/src/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -1
  125. package/types/src/components/Typography/Text/__tests__/index.spec.d.ts +0 -1
  126. package/types/src/components/Typography/Text/index.d.ts +0 -30
  127. package/types/src/components/Typography/index.d.ts +0 -6
  128. package/types/src/index.d.ts +0 -19
  129. package/types/src/testHelpers/renderWithTheme.d.ts +0 -3
  130. package/types/src/theme/__tests__/index.spec.d.ts +0 -1
  131. package/types/src/theme/components/avatar.d.ts +0 -32
  132. package/types/src/theme/components/badge.d.ts +0 -29
  133. package/types/src/theme/components/bottomNavigation.d.ts +0 -23
  134. package/types/src/theme/components/button.d.ts +0 -37
  135. package/types/src/theme/components/card.d.ts +0 -10
  136. package/types/src/theme/components/divider.d.ts +0 -17
  137. package/types/src/theme/components/drawer.d.ts +0 -21
  138. package/types/src/theme/components/fab.d.ts +0 -51
  139. package/types/src/theme/components/icon.d.ts +0 -19
  140. package/types/src/theme/components/progress.d.ts +0 -21
  141. package/types/src/theme/components/tabs.d.ts +0 -27
  142. package/types/src/theme/components/tag.d.ts +0 -30
  143. package/types/src/theme/components/typography.d.ts +0 -26
  144. package/types/src/theme/global/borders.d.ts +0 -11
  145. package/types/src/theme/global/colors.d.ts +0 -31
  146. package/types/src/theme/global/index.d.ts +0 -41
  147. package/types/src/theme/global/scale.d.ts +0 -9
  148. package/types/src/theme/global/space.d.ts +0 -13
  149. package/types/src/theme/global/typography.d.ts +0 -21
  150. package/types/src/theme/index.d.ts +0 -35
  151. package/types/src/types.d.ts +0 -5
  152. package/types/src/utils/__tests__/scale.spec.d.ts +0 -1
  153. package/types/src/utils/helpers.d.ts +0 -2
  154. package/types/src/utils/hooks.d.ts +0 -1
  155. package/types/src/utils/scale.d.ts +0 -3
@@ -0,0 +1,686 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Alert Icon render custom icon correctly 1`] = `
4
+ <View
5
+ style={
6
+ Array [
7
+ Object {
8
+ "backgroundColor": "#1dbeee",
9
+ "borderRadius": 0,
10
+ "flexDirection": "row",
11
+ "minHeight": 48,
12
+ },
13
+ undefined,
14
+ ]
15
+ }
16
+ themeIntent="info"
17
+ themeVariant="default"
18
+ >
19
+ <View
20
+ showDivider={false}
21
+ style={
22
+ Array [
23
+ Object {
24
+ "borderColor": "#fafbfb",
25
+ "borderRightWidth": 0,
26
+ "flex": 1,
27
+ "flexDirection": "row",
28
+ "paddingVertical": 16,
29
+ },
30
+ undefined,
31
+ ]
32
+ }
33
+ >
34
+ <View
35
+ style={
36
+ Array [
37
+ Object {
38
+ "alignItems": "center",
39
+ "paddingLeft": 16,
40
+ },
41
+ undefined,
42
+ ]
43
+ }
44
+ testID="alert-left-icon"
45
+ >
46
+ <HeroIcon
47
+ name="home"
48
+ style={
49
+ Array [
50
+ Object {
51
+ "color": "#292a2b",
52
+ "fontSize": 20,
53
+ },
54
+ undefined,
55
+ ]
56
+ }
57
+ themeIntent="text"
58
+ themeSize="small"
59
+ />
60
+ </View>
61
+ <View
62
+ style={
63
+ Array [
64
+ Object {
65
+ "flex": 1,
66
+ "paddingHorizontal": 16,
67
+ },
68
+ undefined,
69
+ ]
70
+ }
71
+ >
72
+ <Text
73
+ style={
74
+ Array [
75
+ Object {
76
+ "color": "#292a2b",
77
+ "fontFamily": "BeVietnamPro-Regular",
78
+ "fontSize": 14,
79
+ "letterSpacing": 0.42,
80
+ "lineHeight": 22,
81
+ },
82
+ undefined,
83
+ ]
84
+ }
85
+ themeFontSize="medium"
86
+ themeFontWeight="regular"
87
+ themeIntent="body"
88
+ >
89
+ Content
90
+ </Text>
91
+ </View>
92
+ </View>
93
+ </View>
94
+ `;
95
+
96
+ exports[`Alert renders correctly when intent is error 1`] = `
97
+ <View
98
+ style={
99
+ Array [
100
+ Object {
101
+ "backgroundColor": "#de350b",
102
+ "borderRadius": 0,
103
+ "flexDirection": "row",
104
+ "minHeight": 48,
105
+ },
106
+ undefined,
107
+ ]
108
+ }
109
+ themeIntent="error"
110
+ themeVariant="default"
111
+ >
112
+ <View
113
+ showDivider={true}
114
+ style={
115
+ Array [
116
+ Object {
117
+ "borderColor": "#fafbfb",
118
+ "borderRightWidth": 1,
119
+ "flex": 1,
120
+ "flexDirection": "row",
121
+ "paddingVertical": 16,
122
+ },
123
+ undefined,
124
+ ]
125
+ }
126
+ >
127
+ <View
128
+ style={
129
+ Array [
130
+ Object {
131
+ "alignItems": "center",
132
+ "paddingLeft": 16,
133
+ },
134
+ undefined,
135
+ ]
136
+ }
137
+ testID="alert-left-icon"
138
+ >
139
+ <HeroIcon
140
+ name="circle-warning"
141
+ style={
142
+ Array [
143
+ Object {
144
+ "color": "#292a2b",
145
+ "fontSize": 20,
146
+ },
147
+ undefined,
148
+ ]
149
+ }
150
+ themeIntent="text"
151
+ themeSize="small"
152
+ />
153
+ </View>
154
+ <View
155
+ style={
156
+ Array [
157
+ Object {
158
+ "flex": 1,
159
+ "paddingHorizontal": 16,
160
+ },
161
+ undefined,
162
+ ]
163
+ }
164
+ >
165
+ <Text
166
+ style={
167
+ Array [
168
+ Object {
169
+ "color": "#292a2b",
170
+ "fontFamily": "BeVietnamPro-SemiBold",
171
+ "fontSize": 14,
172
+ "letterSpacing": 0.42,
173
+ "lineHeight": 22,
174
+ },
175
+ undefined,
176
+ ]
177
+ }
178
+ themeFontSize="medium"
179
+ themeFontWeight="semi-bold"
180
+ themeIntent="body"
181
+ >
182
+ Title
183
+ </Text>
184
+ <Text
185
+ style={
186
+ Array [
187
+ Object {
188
+ "color": "#292a2b",
189
+ "fontFamily": "BeVietnamPro-Regular",
190
+ "fontSize": 14,
191
+ "letterSpacing": 0.42,
192
+ "lineHeight": 22,
193
+ },
194
+ undefined,
195
+ ]
196
+ }
197
+ themeFontSize="medium"
198
+ themeFontWeight="regular"
199
+ themeIntent="body"
200
+ >
201
+ Content
202
+ </Text>
203
+ </View>
204
+ </View>
205
+ <View
206
+ accessible={true}
207
+ collapsable={false}
208
+ focusable={true}
209
+ nativeID="animatedComponent"
210
+ onClick={[Function]}
211
+ onResponderGrant={[Function]}
212
+ onResponderMove={[Function]}
213
+ onResponderRelease={[Function]}
214
+ onResponderTerminate={[Function]}
215
+ onResponderTerminationRequest={[Function]}
216
+ onStartShouldSetResponder={[Function]}
217
+ style={
218
+ Object {
219
+ "justifyContent": "center",
220
+ "opacity": 1,
221
+ "paddingHorizontal": 16,
222
+ }
223
+ }
224
+ testID="alert-close-icon"
225
+ >
226
+ <HeroIcon
227
+ name="cancel"
228
+ style={
229
+ Array [
230
+ Object {
231
+ "color": "#292a2b",
232
+ "fontSize": 20,
233
+ },
234
+ undefined,
235
+ ]
236
+ }
237
+ themeIntent="text"
238
+ themeSize="small"
239
+ />
240
+ </View>
241
+ </View>
242
+ `;
243
+
244
+ exports[`Alert renders correctly when intent is info 1`] = `
245
+ <View
246
+ style={
247
+ Array [
248
+ Object {
249
+ "backgroundColor": "#1dbeee",
250
+ "borderRadius": 0,
251
+ "flexDirection": "row",
252
+ "minHeight": 48,
253
+ },
254
+ undefined,
255
+ ]
256
+ }
257
+ themeIntent="info"
258
+ themeVariant="default"
259
+ >
260
+ <View
261
+ showDivider={true}
262
+ style={
263
+ Array [
264
+ Object {
265
+ "borderColor": "#fafbfb",
266
+ "borderRightWidth": 1,
267
+ "flex": 1,
268
+ "flexDirection": "row",
269
+ "paddingVertical": 16,
270
+ },
271
+ undefined,
272
+ ]
273
+ }
274
+ >
275
+ <View
276
+ style={
277
+ Array [
278
+ Object {
279
+ "alignItems": "center",
280
+ "paddingLeft": 16,
281
+ },
282
+ undefined,
283
+ ]
284
+ }
285
+ testID="alert-left-icon"
286
+ >
287
+ <HeroIcon
288
+ name="circle-info"
289
+ style={
290
+ Array [
291
+ Object {
292
+ "color": "#292a2b",
293
+ "fontSize": 20,
294
+ },
295
+ undefined,
296
+ ]
297
+ }
298
+ themeIntent="text"
299
+ themeSize="small"
300
+ />
301
+ </View>
302
+ <View
303
+ style={
304
+ Array [
305
+ Object {
306
+ "flex": 1,
307
+ "paddingHorizontal": 16,
308
+ },
309
+ undefined,
310
+ ]
311
+ }
312
+ >
313
+ <Text
314
+ style={
315
+ Array [
316
+ Object {
317
+ "color": "#292a2b",
318
+ "fontFamily": "BeVietnamPro-SemiBold",
319
+ "fontSize": 14,
320
+ "letterSpacing": 0.42,
321
+ "lineHeight": 22,
322
+ },
323
+ undefined,
324
+ ]
325
+ }
326
+ themeFontSize="medium"
327
+ themeFontWeight="semi-bold"
328
+ themeIntent="body"
329
+ >
330
+ Title
331
+ </Text>
332
+ <Text
333
+ style={
334
+ Array [
335
+ Object {
336
+ "color": "#292a2b",
337
+ "fontFamily": "BeVietnamPro-Regular",
338
+ "fontSize": 14,
339
+ "letterSpacing": 0.42,
340
+ "lineHeight": 22,
341
+ },
342
+ undefined,
343
+ ]
344
+ }
345
+ themeFontSize="medium"
346
+ themeFontWeight="regular"
347
+ themeIntent="body"
348
+ >
349
+ Content
350
+ </Text>
351
+ </View>
352
+ </View>
353
+ <View
354
+ accessible={true}
355
+ collapsable={false}
356
+ focusable={true}
357
+ nativeID="animatedComponent"
358
+ onClick={[Function]}
359
+ onResponderGrant={[Function]}
360
+ onResponderMove={[Function]}
361
+ onResponderRelease={[Function]}
362
+ onResponderTerminate={[Function]}
363
+ onResponderTerminationRequest={[Function]}
364
+ onStartShouldSetResponder={[Function]}
365
+ style={
366
+ Object {
367
+ "justifyContent": "center",
368
+ "opacity": 1,
369
+ "paddingHorizontal": 16,
370
+ }
371
+ }
372
+ testID="alert-close-icon"
373
+ >
374
+ <HeroIcon
375
+ name="cancel"
376
+ style={
377
+ Array [
378
+ Object {
379
+ "color": "#292a2b",
380
+ "fontSize": 20,
381
+ },
382
+ undefined,
383
+ ]
384
+ }
385
+ themeIntent="text"
386
+ themeSize="small"
387
+ />
388
+ </View>
389
+ </View>
390
+ `;
391
+
392
+ exports[`Alert renders correctly when intent is success 1`] = `
393
+ <View
394
+ style={
395
+ Array [
396
+ Object {
397
+ "backgroundColor": "#01b39c",
398
+ "borderRadius": 0,
399
+ "flexDirection": "row",
400
+ "minHeight": 48,
401
+ },
402
+ undefined,
403
+ ]
404
+ }
405
+ themeIntent="success"
406
+ themeVariant="default"
407
+ >
408
+ <View
409
+ showDivider={true}
410
+ style={
411
+ Array [
412
+ Object {
413
+ "borderColor": "#fafbfb",
414
+ "borderRightWidth": 1,
415
+ "flex": 1,
416
+ "flexDirection": "row",
417
+ "paddingVertical": 16,
418
+ },
419
+ undefined,
420
+ ]
421
+ }
422
+ >
423
+ <View
424
+ style={
425
+ Array [
426
+ Object {
427
+ "alignItems": "center",
428
+ "paddingLeft": 16,
429
+ },
430
+ undefined,
431
+ ]
432
+ }
433
+ testID="alert-left-icon"
434
+ >
435
+ <HeroIcon
436
+ name="circle-ok"
437
+ style={
438
+ Array [
439
+ Object {
440
+ "color": "#292a2b",
441
+ "fontSize": 20,
442
+ },
443
+ undefined,
444
+ ]
445
+ }
446
+ themeIntent="text"
447
+ themeSize="small"
448
+ />
449
+ </View>
450
+ <View
451
+ style={
452
+ Array [
453
+ Object {
454
+ "flex": 1,
455
+ "paddingHorizontal": 16,
456
+ },
457
+ undefined,
458
+ ]
459
+ }
460
+ >
461
+ <Text
462
+ style={
463
+ Array [
464
+ Object {
465
+ "color": "#292a2b",
466
+ "fontFamily": "BeVietnamPro-SemiBold",
467
+ "fontSize": 14,
468
+ "letterSpacing": 0.42,
469
+ "lineHeight": 22,
470
+ },
471
+ undefined,
472
+ ]
473
+ }
474
+ themeFontSize="medium"
475
+ themeFontWeight="semi-bold"
476
+ themeIntent="body"
477
+ >
478
+ Title
479
+ </Text>
480
+ <Text
481
+ style={
482
+ Array [
483
+ Object {
484
+ "color": "#292a2b",
485
+ "fontFamily": "BeVietnamPro-Regular",
486
+ "fontSize": 14,
487
+ "letterSpacing": 0.42,
488
+ "lineHeight": 22,
489
+ },
490
+ undefined,
491
+ ]
492
+ }
493
+ themeFontSize="medium"
494
+ themeFontWeight="regular"
495
+ themeIntent="body"
496
+ >
497
+ Content
498
+ </Text>
499
+ </View>
500
+ </View>
501
+ <View
502
+ accessible={true}
503
+ collapsable={false}
504
+ focusable={true}
505
+ nativeID="animatedComponent"
506
+ onClick={[Function]}
507
+ onResponderGrant={[Function]}
508
+ onResponderMove={[Function]}
509
+ onResponderRelease={[Function]}
510
+ onResponderTerminate={[Function]}
511
+ onResponderTerminationRequest={[Function]}
512
+ onStartShouldSetResponder={[Function]}
513
+ style={
514
+ Object {
515
+ "justifyContent": "center",
516
+ "opacity": 1,
517
+ "paddingHorizontal": 16,
518
+ }
519
+ }
520
+ testID="alert-close-icon"
521
+ >
522
+ <HeroIcon
523
+ name="cancel"
524
+ style={
525
+ Array [
526
+ Object {
527
+ "color": "#292a2b",
528
+ "fontSize": 20,
529
+ },
530
+ undefined,
531
+ ]
532
+ }
533
+ themeIntent="text"
534
+ themeSize="small"
535
+ />
536
+ </View>
537
+ </View>
538
+ `;
539
+
540
+ exports[`Alert renders correctly when intent is warning 1`] = `
541
+ <View
542
+ style={
543
+ Array [
544
+ Object {
545
+ "backgroundColor": "#ffa234",
546
+ "borderRadius": 0,
547
+ "flexDirection": "row",
548
+ "minHeight": 48,
549
+ },
550
+ undefined,
551
+ ]
552
+ }
553
+ themeIntent="warning"
554
+ themeVariant="default"
555
+ >
556
+ <View
557
+ showDivider={true}
558
+ style={
559
+ Array [
560
+ Object {
561
+ "borderColor": "#fafbfb",
562
+ "borderRightWidth": 1,
563
+ "flex": 1,
564
+ "flexDirection": "row",
565
+ "paddingVertical": 16,
566
+ },
567
+ undefined,
568
+ ]
569
+ }
570
+ >
571
+ <View
572
+ style={
573
+ Array [
574
+ Object {
575
+ "alignItems": "center",
576
+ "paddingLeft": 16,
577
+ },
578
+ undefined,
579
+ ]
580
+ }
581
+ testID="alert-left-icon"
582
+ >
583
+ <HeroIcon
584
+ name="warning"
585
+ style={
586
+ Array [
587
+ Object {
588
+ "color": "#292a2b",
589
+ "fontSize": 20,
590
+ },
591
+ undefined,
592
+ ]
593
+ }
594
+ themeIntent="text"
595
+ themeSize="small"
596
+ />
597
+ </View>
598
+ <View
599
+ style={
600
+ Array [
601
+ Object {
602
+ "flex": 1,
603
+ "paddingHorizontal": 16,
604
+ },
605
+ undefined,
606
+ ]
607
+ }
608
+ >
609
+ <Text
610
+ style={
611
+ Array [
612
+ Object {
613
+ "color": "#292a2b",
614
+ "fontFamily": "BeVietnamPro-SemiBold",
615
+ "fontSize": 14,
616
+ "letterSpacing": 0.42,
617
+ "lineHeight": 22,
618
+ },
619
+ undefined,
620
+ ]
621
+ }
622
+ themeFontSize="medium"
623
+ themeFontWeight="semi-bold"
624
+ themeIntent="body"
625
+ >
626
+ Title
627
+ </Text>
628
+ <Text
629
+ style={
630
+ Array [
631
+ Object {
632
+ "color": "#292a2b",
633
+ "fontFamily": "BeVietnamPro-Regular",
634
+ "fontSize": 14,
635
+ "letterSpacing": 0.42,
636
+ "lineHeight": 22,
637
+ },
638
+ undefined,
639
+ ]
640
+ }
641
+ themeFontSize="medium"
642
+ themeFontWeight="regular"
643
+ themeIntent="body"
644
+ >
645
+ Content
646
+ </Text>
647
+ </View>
648
+ </View>
649
+ <View
650
+ accessible={true}
651
+ collapsable={false}
652
+ focusable={true}
653
+ nativeID="animatedComponent"
654
+ onClick={[Function]}
655
+ onResponderGrant={[Function]}
656
+ onResponderMove={[Function]}
657
+ onResponderRelease={[Function]}
658
+ onResponderTerminate={[Function]}
659
+ onResponderTerminationRequest={[Function]}
660
+ onStartShouldSetResponder={[Function]}
661
+ style={
662
+ Object {
663
+ "justifyContent": "center",
664
+ "opacity": 1,
665
+ "paddingHorizontal": 16,
666
+ }
667
+ }
668
+ testID="alert-close-icon"
669
+ >
670
+ <HeroIcon
671
+ name="cancel"
672
+ style={
673
+ Array [
674
+ Object {
675
+ "color": "#292a2b",
676
+ "fontSize": 20,
677
+ },
678
+ undefined,
679
+ ]
680
+ }
681
+ themeIntent="text"
682
+ themeSize="small"
683
+ />
684
+ </View>
685
+ </View>
686
+ `;