@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
@@ -3,1010 +3,1206 @@
3
3
  exports[`Alert Icon render custom icon correctly 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "backgroundColor": "#b5c3fd",
9
- "borderRadius": 16,
10
- "flexDirection": "row",
11
- "minHeight": 48,
12
- },
13
- undefined,
14
- ]
6
+ {
7
+ "flex": 1,
8
+ }
15
9
  }
16
- themeIntent="info"
17
- themeVariant="rounded"
18
10
  >
19
11
  <View
20
- showDivider={false}
21
12
  style={
22
13
  [
23
14
  {
24
- "borderColor": "#e8e9ea",
25
- "borderRightWidth": 0,
26
- "flex": 1,
15
+ "backgroundColor": "#b5c3fd",
16
+ "borderRadius": 16,
27
17
  "flexDirection": "row",
28
- "paddingVertical": 12,
18
+ "minHeight": 48,
29
19
  },
30
20
  undefined,
31
21
  ]
32
22
  }
23
+ themeIntent="info"
24
+ themeVariant="rounded"
33
25
  >
34
26
  <View
27
+ showDivider={false}
35
28
  style={
36
29
  [
37
30
  {
38
- "alignItems": "center",
39
- "paddingLeft": 12,
31
+ "borderColor": "#e8e9ea",
32
+ "borderRightWidth": 0,
33
+ "flex": 1,
34
+ "flexDirection": "row",
35
+ "paddingVertical": 12,
40
36
  },
41
37
  undefined,
42
38
  ]
43
39
  }
44
- testID="alert-left-icon"
45
40
  >
46
- <HeroIcon
47
- name="home"
41
+ <View
48
42
  style={
49
43
  [
50
44
  {
51
- "color": "#001f23",
52
- "fontSize": 20,
45
+ "alignItems": "center",
46
+ "paddingLeft": 12,
53
47
  },
54
48
  undefined,
55
49
  ]
56
50
  }
57
- themeIntent="text"
58
- themeSize="small"
59
- />
60
- </View>
61
- <View
62
- style={
63
- [
64
- {
65
- "flex": 1,
66
- "paddingHorizontal": 12,
67
- },
68
- undefined,
69
- ]
70
- }
71
- >
72
- <Text
73
- allowFontScaling={false}
51
+ testID="alert-left-icon"
52
+ >
53
+ <HeroIcon
54
+ name="home"
55
+ style={
56
+ [
57
+ {
58
+ "color": "#001f23",
59
+ "fontSize": 20,
60
+ },
61
+ undefined,
62
+ ]
63
+ }
64
+ themeIntent="text"
65
+ themeSize="small"
66
+ />
67
+ </View>
68
+ <View
74
69
  style={
75
70
  [
76
71
  {
77
- "color": "#001f23",
78
- "fontFamily": "BeVietnamPro-Regular",
79
- "fontSize": 14,
80
- "letterSpacing": 0.48,
81
- "lineHeight": 22,
72
+ "flex": 1,
73
+ "paddingHorizontal": 12,
82
74
  },
83
75
  undefined,
84
76
  ]
85
77
  }
86
- themeIntent="body"
87
- themeTypeface="neutral"
88
- themeVariant="small"
89
78
  >
90
- Content
91
- </Text>
79
+ <Text
80
+ allowFontScaling={false}
81
+ style={
82
+ [
83
+ {
84
+ "color": "#001f23",
85
+ "fontFamily": "BeVietnamPro-Regular",
86
+ "fontSize": 14,
87
+ "letterSpacing": 0.48,
88
+ "lineHeight": 22,
89
+ },
90
+ undefined,
91
+ ]
92
+ }
93
+ themeIntent="body"
94
+ themeTypeface="neutral"
95
+ themeVariant="small"
96
+ >
97
+ Content
98
+ </Text>
99
+ </View>
92
100
  </View>
93
101
  </View>
102
+ <View
103
+ pointerEvents="box-none"
104
+ position="bottom"
105
+ style={
106
+ [
107
+ {
108
+ "bottom": 0,
109
+ "elevation": 9999,
110
+ "flexDirection": "column-reverse",
111
+ "left": 0,
112
+ "paddingHorizontal": 24,
113
+ "paddingVertical": 16,
114
+ "position": "absolute",
115
+ "right": 0,
116
+ "top": 0,
117
+ },
118
+ undefined,
119
+ ]
120
+ }
121
+ />
94
122
  </View>
95
123
  `;
96
124
 
97
125
  exports[`Alert renders correctly when intent is error 1`] = `
98
126
  <View
99
127
  style={
100
- [
101
- {
102
- "backgroundColor": "#f46363",
103
- "borderRadius": 16,
104
- "flexDirection": "row",
105
- "minHeight": 48,
106
- },
107
- undefined,
108
- ]
128
+ {
129
+ "flex": 1,
130
+ }
109
131
  }
110
- themeIntent="error"
111
- themeVariant="rounded"
112
132
  >
113
133
  <View
114
- showDivider={true}
115
134
  style={
116
135
  [
117
136
  {
118
- "borderColor": "#e8e9ea",
119
- "borderRightWidth": 1,
120
- "flex": 1,
137
+ "backgroundColor": "#f46363",
138
+ "borderRadius": 16,
121
139
  "flexDirection": "row",
122
- "paddingVertical": 12,
140
+ "minHeight": 48,
123
141
  },
124
142
  undefined,
125
143
  ]
126
144
  }
145
+ themeIntent="error"
146
+ themeVariant="rounded"
127
147
  >
128
148
  <View
149
+ showDivider={true}
129
150
  style={
130
151
  [
131
152
  {
132
- "alignItems": "center",
133
- "paddingLeft": 12,
153
+ "borderColor": "#e8e9ea",
154
+ "borderRightWidth": 1,
155
+ "flex": 1,
156
+ "flexDirection": "row",
157
+ "paddingVertical": 12,
134
158
  },
135
159
  undefined,
136
160
  ]
137
161
  }
138
- testID="alert-left-icon"
139
162
  >
140
- <HeroIcon
141
- name="circle-warning"
163
+ <View
142
164
  style={
143
165
  [
144
166
  {
145
- "color": "#001f23",
146
- "fontSize": 20,
167
+ "alignItems": "center",
168
+ "paddingLeft": 12,
147
169
  },
148
170
  undefined,
149
171
  ]
150
172
  }
151
- themeIntent="text"
152
- themeSize="small"
153
- />
154
- </View>
155
- <View
156
- style={
157
- [
158
- {
159
- "flex": 1,
160
- "paddingHorizontal": 12,
161
- },
162
- undefined,
163
- ]
164
- }
165
- >
166
- <Text
167
- allowFontScaling={false}
173
+ testID="alert-left-icon"
174
+ >
175
+ <HeroIcon
176
+ name="circle-warning"
177
+ style={
178
+ [
179
+ {
180
+ "color": "#001f23",
181
+ "fontSize": 20,
182
+ },
183
+ undefined,
184
+ ]
185
+ }
186
+ themeIntent="text"
187
+ themeSize="small"
188
+ />
189
+ </View>
190
+ <View
168
191
  style={
169
192
  [
170
193
  {
171
- "color": "#001f23",
172
- "fontFamily": "BeVietnamPro-SemiBold",
173
- "fontSize": 14,
174
- "letterSpacing": 0.24,
175
- "lineHeight": 22,
194
+ "flex": 1,
195
+ "paddingHorizontal": 12,
176
196
  },
177
197
  undefined,
178
198
  ]
179
199
  }
180
- themeIntent="body"
181
- themeTypeface="neutral"
182
- themeVariant="small-bold"
183
200
  >
184
- Title
185
- </Text>
186
- <Text
187
- allowFontScaling={false}
201
+ <Text
202
+ allowFontScaling={false}
203
+ style={
204
+ [
205
+ {
206
+ "color": "#001f23",
207
+ "fontFamily": "BeVietnamPro-SemiBold",
208
+ "fontSize": 14,
209
+ "letterSpacing": 0.24,
210
+ "lineHeight": 22,
211
+ },
212
+ undefined,
213
+ ]
214
+ }
215
+ themeIntent="body"
216
+ themeTypeface="neutral"
217
+ themeVariant="small-bold"
218
+ >
219
+ Title
220
+ </Text>
221
+ <Text
222
+ allowFontScaling={false}
223
+ style={
224
+ [
225
+ {
226
+ "color": "#001f23",
227
+ "fontFamily": "BeVietnamPro-Regular",
228
+ "fontSize": 14,
229
+ "letterSpacing": 0.48,
230
+ "lineHeight": 22,
231
+ },
232
+ undefined,
233
+ ]
234
+ }
235
+ themeIntent="body"
236
+ themeTypeface="neutral"
237
+ themeVariant="small"
238
+ >
239
+ Content
240
+ </Text>
241
+ </View>
242
+ </View>
243
+ <View
244
+ accessibilityState={
245
+ {
246
+ "busy": undefined,
247
+ "checked": undefined,
248
+ "disabled": undefined,
249
+ "expanded": undefined,
250
+ "selected": undefined,
251
+ }
252
+ }
253
+ accessibilityValue={
254
+ {
255
+ "max": undefined,
256
+ "min": undefined,
257
+ "now": undefined,
258
+ "text": undefined,
259
+ }
260
+ }
261
+ accessible={true}
262
+ collapsable={false}
263
+ focusable={true}
264
+ onClick={[Function]}
265
+ onResponderGrant={[Function]}
266
+ onResponderMove={[Function]}
267
+ onResponderRelease={[Function]}
268
+ onResponderTerminate={[Function]}
269
+ onResponderTerminationRequest={[Function]}
270
+ onStartShouldSetResponder={[Function]}
271
+ style={
272
+ {
273
+ "justifyContent": "center",
274
+ "opacity": 1,
275
+ "paddingHorizontal": 12,
276
+ }
277
+ }
278
+ testID="alert-close-icon"
279
+ >
280
+ <HeroIcon
281
+ name="cancel"
188
282
  style={
189
283
  [
190
284
  {
191
285
  "color": "#001f23",
192
- "fontFamily": "BeVietnamPro-Regular",
193
- "fontSize": 14,
194
- "letterSpacing": 0.48,
195
- "lineHeight": 22,
286
+ "fontSize": 20,
196
287
  },
197
288
  undefined,
198
289
  ]
199
290
  }
200
- themeIntent="body"
201
- themeTypeface="neutral"
202
- themeVariant="small"
203
- >
204
- Content
205
- </Text>
291
+ themeIntent="text"
292
+ themeSize="small"
293
+ />
206
294
  </View>
207
295
  </View>
208
296
  <View
209
- accessibilityState={
210
- {
211
- "busy": undefined,
212
- "checked": undefined,
213
- "disabled": undefined,
214
- "expanded": undefined,
215
- "selected": undefined,
216
- }
217
- }
218
- accessibilityValue={
219
- {
220
- "max": undefined,
221
- "min": undefined,
222
- "now": undefined,
223
- "text": undefined,
224
- }
225
- }
226
- accessible={true}
227
- collapsable={false}
228
- focusable={true}
229
- onClick={[Function]}
230
- onResponderGrant={[Function]}
231
- onResponderMove={[Function]}
232
- onResponderRelease={[Function]}
233
- onResponderTerminate={[Function]}
234
- onResponderTerminationRequest={[Function]}
235
- onStartShouldSetResponder={[Function]}
297
+ pointerEvents="box-none"
298
+ position="bottom"
236
299
  style={
237
- {
238
- "justifyContent": "center",
239
- "opacity": 1,
240
- "paddingHorizontal": 12,
241
- }
300
+ [
301
+ {
302
+ "bottom": 0,
303
+ "elevation": 9999,
304
+ "flexDirection": "column-reverse",
305
+ "left": 0,
306
+ "paddingHorizontal": 24,
307
+ "paddingVertical": 16,
308
+ "position": "absolute",
309
+ "right": 0,
310
+ "top": 0,
311
+ },
312
+ undefined,
313
+ ]
242
314
  }
243
- testID="alert-close-icon"
244
- >
245
- <HeroIcon
246
- name="cancel"
247
- style={
248
- [
249
- {
250
- "color": "#001f23",
251
- "fontSize": 20,
252
- },
253
- undefined,
254
- ]
255
- }
256
- themeIntent="text"
257
- themeSize="small"
258
- />
259
- </View>
315
+ />
260
316
  </View>
261
317
  `;
262
318
 
263
319
  exports[`Alert renders correctly when intent is info 1`] = `
264
320
  <View
265
321
  style={
266
- [
267
- {
268
- "backgroundColor": "#b5c3fd",
269
- "borderRadius": 16,
270
- "flexDirection": "row",
271
- "minHeight": 48,
272
- },
273
- undefined,
274
- ]
322
+ {
323
+ "flex": 1,
324
+ }
275
325
  }
276
- themeIntent="info"
277
- themeVariant="rounded"
278
326
  >
279
327
  <View
280
- showDivider={true}
281
328
  style={
282
329
  [
283
330
  {
284
- "borderColor": "#e8e9ea",
285
- "borderRightWidth": 1,
286
- "flex": 1,
331
+ "backgroundColor": "#b5c3fd",
332
+ "borderRadius": 16,
287
333
  "flexDirection": "row",
288
- "paddingVertical": 12,
334
+ "minHeight": 48,
289
335
  },
290
336
  undefined,
291
337
  ]
292
338
  }
339
+ themeIntent="info"
340
+ themeVariant="rounded"
293
341
  >
294
342
  <View
343
+ showDivider={true}
295
344
  style={
296
345
  [
297
346
  {
298
- "alignItems": "center",
299
- "paddingLeft": 12,
347
+ "borderColor": "#e8e9ea",
348
+ "borderRightWidth": 1,
349
+ "flex": 1,
350
+ "flexDirection": "row",
351
+ "paddingVertical": 12,
300
352
  },
301
353
  undefined,
302
354
  ]
303
355
  }
304
- testID="alert-left-icon"
305
356
  >
306
- <HeroIcon
307
- name="circle-info"
357
+ <View
308
358
  style={
309
359
  [
310
360
  {
311
- "color": "#001f23",
312
- "fontSize": 20,
361
+ "alignItems": "center",
362
+ "paddingLeft": 12,
313
363
  },
314
364
  undefined,
315
365
  ]
316
366
  }
317
- themeIntent="text"
318
- themeSize="small"
319
- />
320
- </View>
321
- <View
322
- style={
323
- [
324
- {
325
- "flex": 1,
326
- "paddingHorizontal": 12,
327
- },
328
- undefined,
329
- ]
330
- }
331
- >
332
- <Text
333
- allowFontScaling={false}
367
+ testID="alert-left-icon"
368
+ >
369
+ <HeroIcon
370
+ name="circle-info"
371
+ style={
372
+ [
373
+ {
374
+ "color": "#001f23",
375
+ "fontSize": 20,
376
+ },
377
+ undefined,
378
+ ]
379
+ }
380
+ themeIntent="text"
381
+ themeSize="small"
382
+ />
383
+ </View>
384
+ <View
334
385
  style={
335
386
  [
336
387
  {
337
- "color": "#001f23",
338
- "fontFamily": "BeVietnamPro-SemiBold",
339
- "fontSize": 14,
340
- "letterSpacing": 0.24,
341
- "lineHeight": 22,
388
+ "flex": 1,
389
+ "paddingHorizontal": 12,
342
390
  },
343
391
  undefined,
344
392
  ]
345
393
  }
346
- themeIntent="body"
347
- themeTypeface="neutral"
348
- themeVariant="small-bold"
349
394
  >
350
- Title
351
- </Text>
352
- <Text
353
- allowFontScaling={false}
395
+ <Text
396
+ allowFontScaling={false}
397
+ style={
398
+ [
399
+ {
400
+ "color": "#001f23",
401
+ "fontFamily": "BeVietnamPro-SemiBold",
402
+ "fontSize": 14,
403
+ "letterSpacing": 0.24,
404
+ "lineHeight": 22,
405
+ },
406
+ undefined,
407
+ ]
408
+ }
409
+ themeIntent="body"
410
+ themeTypeface="neutral"
411
+ themeVariant="small-bold"
412
+ >
413
+ Title
414
+ </Text>
415
+ <Text
416
+ allowFontScaling={false}
417
+ style={
418
+ [
419
+ {
420
+ "color": "#001f23",
421
+ "fontFamily": "BeVietnamPro-Regular",
422
+ "fontSize": 14,
423
+ "letterSpacing": 0.48,
424
+ "lineHeight": 22,
425
+ },
426
+ undefined,
427
+ ]
428
+ }
429
+ themeIntent="body"
430
+ themeTypeface="neutral"
431
+ themeVariant="small"
432
+ >
433
+ Content
434
+ </Text>
435
+ </View>
436
+ </View>
437
+ <View
438
+ accessibilityState={
439
+ {
440
+ "busy": undefined,
441
+ "checked": undefined,
442
+ "disabled": undefined,
443
+ "expanded": undefined,
444
+ "selected": undefined,
445
+ }
446
+ }
447
+ accessibilityValue={
448
+ {
449
+ "max": undefined,
450
+ "min": undefined,
451
+ "now": undefined,
452
+ "text": undefined,
453
+ }
454
+ }
455
+ accessible={true}
456
+ collapsable={false}
457
+ focusable={true}
458
+ onClick={[Function]}
459
+ onResponderGrant={[Function]}
460
+ onResponderMove={[Function]}
461
+ onResponderRelease={[Function]}
462
+ onResponderTerminate={[Function]}
463
+ onResponderTerminationRequest={[Function]}
464
+ onStartShouldSetResponder={[Function]}
465
+ style={
466
+ {
467
+ "justifyContent": "center",
468
+ "opacity": 1,
469
+ "paddingHorizontal": 12,
470
+ }
471
+ }
472
+ testID="alert-close-icon"
473
+ >
474
+ <HeroIcon
475
+ name="cancel"
354
476
  style={
355
477
  [
356
478
  {
357
479
  "color": "#001f23",
358
- "fontFamily": "BeVietnamPro-Regular",
359
- "fontSize": 14,
360
- "letterSpacing": 0.48,
361
- "lineHeight": 22,
480
+ "fontSize": 20,
362
481
  },
363
482
  undefined,
364
483
  ]
365
484
  }
366
- themeIntent="body"
367
- themeTypeface="neutral"
368
- themeVariant="small"
369
- >
370
- Content
371
- </Text>
485
+ themeIntent="text"
486
+ themeSize="small"
487
+ />
372
488
  </View>
373
489
  </View>
374
490
  <View
375
- accessibilityState={
376
- {
377
- "busy": undefined,
378
- "checked": undefined,
379
- "disabled": undefined,
380
- "expanded": undefined,
381
- "selected": undefined,
382
- }
383
- }
384
- accessibilityValue={
385
- {
386
- "max": undefined,
387
- "min": undefined,
388
- "now": undefined,
389
- "text": undefined,
390
- }
391
- }
392
- accessible={true}
393
- collapsable={false}
394
- focusable={true}
395
- onClick={[Function]}
396
- onResponderGrant={[Function]}
397
- onResponderMove={[Function]}
398
- onResponderRelease={[Function]}
399
- onResponderTerminate={[Function]}
400
- onResponderTerminationRequest={[Function]}
401
- onStartShouldSetResponder={[Function]}
491
+ pointerEvents="box-none"
492
+ position="bottom"
402
493
  style={
403
- {
404
- "justifyContent": "center",
405
- "opacity": 1,
406
- "paddingHorizontal": 12,
407
- }
494
+ [
495
+ {
496
+ "bottom": 0,
497
+ "elevation": 9999,
498
+ "flexDirection": "column-reverse",
499
+ "left": 0,
500
+ "paddingHorizontal": 24,
501
+ "paddingVertical": 16,
502
+ "position": "absolute",
503
+ "right": 0,
504
+ "top": 0,
505
+ },
506
+ undefined,
507
+ ]
408
508
  }
409
- testID="alert-close-icon"
410
- >
411
- <HeroIcon
412
- name="cancel"
413
- style={
414
- [
415
- {
416
- "color": "#001f23",
417
- "fontSize": 20,
418
- },
419
- undefined,
420
- ]
421
- }
422
- themeIntent="text"
423
- themeSize="small"
424
- />
425
- </View>
509
+ />
426
510
  </View>
427
511
  `;
428
512
 
429
513
  exports[`Alert renders correctly when intent is notification 1`] = `
430
514
  <View
431
515
  style={
432
- [
433
- {
434
- "backgroundColor": "#ffffff",
435
- "borderRadius": 16,
436
- "flexDirection": "row",
437
- "minHeight": 48,
438
- },
439
- undefined,
440
- ]
516
+ {
517
+ "flex": 1,
518
+ }
441
519
  }
442
- themeIntent="notification"
443
- themeVariant="rounded"
444
520
  >
445
521
  <View
446
- showDivider={true}
447
522
  style={
448
523
  [
449
524
  {
450
- "borderColor": "#e8e9ea",
451
- "borderRightWidth": 1,
452
- "flex": 1,
525
+ "backgroundColor": "#ffffff",
526
+ "borderRadius": 16,
453
527
  "flexDirection": "row",
454
- "paddingVertical": 12,
528
+ "minHeight": 48,
455
529
  },
456
530
  undefined,
457
531
  ]
458
532
  }
533
+ themeIntent="notification"
534
+ themeVariant="rounded"
459
535
  >
460
536
  <View
537
+ showDivider={true}
461
538
  style={
462
539
  [
463
540
  {
541
+ "borderColor": "#e8e9ea",
542
+ "borderRightWidth": 1,
464
543
  "flex": 1,
465
- "paddingHorizontal": 12,
544
+ "flexDirection": "row",
545
+ "paddingVertical": 12,
466
546
  },
467
547
  undefined,
468
548
  ]
469
549
  }
470
550
  >
471
- <Text
472
- allowFontScaling={false}
551
+ <View
473
552
  style={
474
553
  [
475
554
  {
476
- "color": "#001f23",
477
- "fontFamily": "BeVietnamPro-SemiBold",
478
- "fontSize": 14,
479
- "letterSpacing": 0.24,
480
- "lineHeight": 22,
555
+ "flex": 1,
556
+ "paddingHorizontal": 12,
481
557
  },
482
558
  undefined,
483
559
  ]
484
560
  }
485
- themeIntent="body"
486
- themeTypeface="neutral"
487
- themeVariant="small-bold"
488
561
  >
489
- Title
490
- </Text>
491
- <Text
492
- allowFontScaling={false}
562
+ <Text
563
+ allowFontScaling={false}
564
+ style={
565
+ [
566
+ {
567
+ "color": "#001f23",
568
+ "fontFamily": "BeVietnamPro-SemiBold",
569
+ "fontSize": 14,
570
+ "letterSpacing": 0.24,
571
+ "lineHeight": 22,
572
+ },
573
+ undefined,
574
+ ]
575
+ }
576
+ themeIntent="body"
577
+ themeTypeface="neutral"
578
+ themeVariant="small-bold"
579
+ >
580
+ Title
581
+ </Text>
582
+ <Text
583
+ allowFontScaling={false}
584
+ style={
585
+ [
586
+ {
587
+ "color": "#001f23",
588
+ "fontFamily": "BeVietnamPro-Regular",
589
+ "fontSize": 14,
590
+ "letterSpacing": 0.48,
591
+ "lineHeight": 22,
592
+ },
593
+ undefined,
594
+ ]
595
+ }
596
+ themeIntent="body"
597
+ themeTypeface="neutral"
598
+ themeVariant="small"
599
+ >
600
+ Content
601
+ </Text>
602
+ </View>
603
+ </View>
604
+ <View
605
+ accessibilityState={
606
+ {
607
+ "busy": undefined,
608
+ "checked": undefined,
609
+ "disabled": undefined,
610
+ "expanded": undefined,
611
+ "selected": undefined,
612
+ }
613
+ }
614
+ accessibilityValue={
615
+ {
616
+ "max": undefined,
617
+ "min": undefined,
618
+ "now": undefined,
619
+ "text": undefined,
620
+ }
621
+ }
622
+ accessible={true}
623
+ collapsable={false}
624
+ focusable={true}
625
+ onClick={[Function]}
626
+ onResponderGrant={[Function]}
627
+ onResponderMove={[Function]}
628
+ onResponderRelease={[Function]}
629
+ onResponderTerminate={[Function]}
630
+ onResponderTerminationRequest={[Function]}
631
+ onStartShouldSetResponder={[Function]}
632
+ style={
633
+ {
634
+ "justifyContent": "center",
635
+ "opacity": 1,
636
+ "paddingHorizontal": 12,
637
+ }
638
+ }
639
+ testID="alert-close-icon"
640
+ >
641
+ <HeroIcon
642
+ name="cancel"
493
643
  style={
494
644
  [
495
645
  {
496
646
  "color": "#001f23",
497
- "fontFamily": "BeVietnamPro-Regular",
498
- "fontSize": 14,
499
- "letterSpacing": 0.48,
500
- "lineHeight": 22,
647
+ "fontSize": 20,
501
648
  },
502
649
  undefined,
503
650
  ]
504
651
  }
505
- themeIntent="body"
506
- themeTypeface="neutral"
507
- themeVariant="small"
508
- >
509
- Content
510
- </Text>
652
+ themeIntent="text"
653
+ themeSize="small"
654
+ />
511
655
  </View>
512
656
  </View>
513
657
  <View
514
- accessibilityState={
515
- {
516
- "busy": undefined,
517
- "checked": undefined,
518
- "disabled": undefined,
519
- "expanded": undefined,
520
- "selected": undefined,
521
- }
522
- }
523
- accessibilityValue={
524
- {
525
- "max": undefined,
526
- "min": undefined,
527
- "now": undefined,
528
- "text": undefined,
529
- }
530
- }
531
- accessible={true}
532
- collapsable={false}
533
- focusable={true}
534
- onClick={[Function]}
535
- onResponderGrant={[Function]}
536
- onResponderMove={[Function]}
537
- onResponderRelease={[Function]}
538
- onResponderTerminate={[Function]}
539
- onResponderTerminationRequest={[Function]}
540
- onStartShouldSetResponder={[Function]}
658
+ pointerEvents="box-none"
659
+ position="bottom"
541
660
  style={
542
- {
543
- "justifyContent": "center",
544
- "opacity": 1,
545
- "paddingHorizontal": 12,
546
- }
661
+ [
662
+ {
663
+ "bottom": 0,
664
+ "elevation": 9999,
665
+ "flexDirection": "column-reverse",
666
+ "left": 0,
667
+ "paddingHorizontal": 24,
668
+ "paddingVertical": 16,
669
+ "position": "absolute",
670
+ "right": 0,
671
+ "top": 0,
672
+ },
673
+ undefined,
674
+ ]
547
675
  }
548
- testID="alert-close-icon"
549
- >
550
- <HeroIcon
551
- name="cancel"
552
- style={
553
- [
554
- {
555
- "color": "#001f23",
556
- "fontSize": 20,
557
- },
558
- undefined,
559
- ]
560
- }
561
- themeIntent="text"
562
- themeSize="small"
563
- />
564
- </View>
676
+ />
565
677
  </View>
566
678
  `;
567
679
 
568
680
  exports[`Alert renders correctly when intent is success 1`] = `
569
681
  <View
570
682
  style={
571
- [
572
- {
573
- "backgroundColor": "#5ace7d",
574
- "borderRadius": 16,
575
- "flexDirection": "row",
576
- "minHeight": 48,
577
- },
578
- undefined,
579
- ]
683
+ {
684
+ "flex": 1,
685
+ }
580
686
  }
581
- themeIntent="success"
582
- themeVariant="rounded"
583
687
  >
584
688
  <View
585
- showDivider={true}
586
689
  style={
587
690
  [
588
691
  {
589
- "borderColor": "#e8e9ea",
590
- "borderRightWidth": 1,
591
- "flex": 1,
692
+ "backgroundColor": "#5ace7d",
693
+ "borderRadius": 16,
592
694
  "flexDirection": "row",
593
- "paddingVertical": 12,
695
+ "minHeight": 48,
594
696
  },
595
697
  undefined,
596
698
  ]
597
699
  }
700
+ themeIntent="success"
701
+ themeVariant="rounded"
598
702
  >
599
703
  <View
704
+ showDivider={true}
600
705
  style={
601
706
  [
602
707
  {
603
- "alignItems": "center",
604
- "paddingLeft": 12,
708
+ "borderColor": "#e8e9ea",
709
+ "borderRightWidth": 1,
710
+ "flex": 1,
711
+ "flexDirection": "row",
712
+ "paddingVertical": 12,
605
713
  },
606
714
  undefined,
607
715
  ]
608
716
  }
609
- testID="alert-left-icon"
610
717
  >
611
- <HeroIcon
612
- name="circle-ok"
718
+ <View
613
719
  style={
614
720
  [
615
721
  {
616
- "color": "#001f23",
617
- "fontSize": 20,
722
+ "alignItems": "center",
723
+ "paddingLeft": 12,
618
724
  },
619
725
  undefined,
620
726
  ]
621
727
  }
622
- themeIntent="text"
623
- themeSize="small"
624
- />
625
- </View>
626
- <View
627
- style={
628
- [
629
- {
630
- "flex": 1,
631
- "paddingHorizontal": 12,
632
- },
633
- undefined,
634
- ]
635
- }
636
- >
637
- <Text
638
- allowFontScaling={false}
728
+ testID="alert-left-icon"
729
+ >
730
+ <HeroIcon
731
+ name="circle-ok"
732
+ style={
733
+ [
734
+ {
735
+ "color": "#001f23",
736
+ "fontSize": 20,
737
+ },
738
+ undefined,
739
+ ]
740
+ }
741
+ themeIntent="text"
742
+ themeSize="small"
743
+ />
744
+ </View>
745
+ <View
639
746
  style={
640
747
  [
641
748
  {
642
- "color": "#001f23",
643
- "fontFamily": "BeVietnamPro-SemiBold",
644
- "fontSize": 14,
645
- "letterSpacing": 0.24,
646
- "lineHeight": 22,
749
+ "flex": 1,
750
+ "paddingHorizontal": 12,
647
751
  },
648
752
  undefined,
649
753
  ]
650
754
  }
651
- themeIntent="body"
652
- themeTypeface="neutral"
653
- themeVariant="small-bold"
654
755
  >
655
- Title
656
- </Text>
657
- <Text
658
- allowFontScaling={false}
756
+ <Text
757
+ allowFontScaling={false}
758
+ style={
759
+ [
760
+ {
761
+ "color": "#001f23",
762
+ "fontFamily": "BeVietnamPro-SemiBold",
763
+ "fontSize": 14,
764
+ "letterSpacing": 0.24,
765
+ "lineHeight": 22,
766
+ },
767
+ undefined,
768
+ ]
769
+ }
770
+ themeIntent="body"
771
+ themeTypeface="neutral"
772
+ themeVariant="small-bold"
773
+ >
774
+ Title
775
+ </Text>
776
+ <Text
777
+ allowFontScaling={false}
778
+ style={
779
+ [
780
+ {
781
+ "color": "#001f23",
782
+ "fontFamily": "BeVietnamPro-Regular",
783
+ "fontSize": 14,
784
+ "letterSpacing": 0.48,
785
+ "lineHeight": 22,
786
+ },
787
+ undefined,
788
+ ]
789
+ }
790
+ themeIntent="body"
791
+ themeTypeface="neutral"
792
+ themeVariant="small"
793
+ >
794
+ Content
795
+ </Text>
796
+ </View>
797
+ </View>
798
+ <View
799
+ accessibilityState={
800
+ {
801
+ "busy": undefined,
802
+ "checked": undefined,
803
+ "disabled": undefined,
804
+ "expanded": undefined,
805
+ "selected": undefined,
806
+ }
807
+ }
808
+ accessibilityValue={
809
+ {
810
+ "max": undefined,
811
+ "min": undefined,
812
+ "now": undefined,
813
+ "text": undefined,
814
+ }
815
+ }
816
+ accessible={true}
817
+ collapsable={false}
818
+ focusable={true}
819
+ onClick={[Function]}
820
+ onResponderGrant={[Function]}
821
+ onResponderMove={[Function]}
822
+ onResponderRelease={[Function]}
823
+ onResponderTerminate={[Function]}
824
+ onResponderTerminationRequest={[Function]}
825
+ onStartShouldSetResponder={[Function]}
826
+ style={
827
+ {
828
+ "justifyContent": "center",
829
+ "opacity": 1,
830
+ "paddingHorizontal": 12,
831
+ }
832
+ }
833
+ testID="alert-close-icon"
834
+ >
835
+ <HeroIcon
836
+ name="cancel"
659
837
  style={
660
838
  [
661
839
  {
662
840
  "color": "#001f23",
663
- "fontFamily": "BeVietnamPro-Regular",
664
- "fontSize": 14,
665
- "letterSpacing": 0.48,
666
- "lineHeight": 22,
841
+ "fontSize": 20,
667
842
  },
668
843
  undefined,
669
844
  ]
670
845
  }
671
- themeIntent="body"
672
- themeTypeface="neutral"
673
- themeVariant="small"
674
- >
675
- Content
676
- </Text>
846
+ themeIntent="text"
847
+ themeSize="small"
848
+ />
677
849
  </View>
678
850
  </View>
679
851
  <View
680
- accessibilityState={
681
- {
682
- "busy": undefined,
683
- "checked": undefined,
684
- "disabled": undefined,
685
- "expanded": undefined,
686
- "selected": undefined,
687
- }
688
- }
689
- accessibilityValue={
690
- {
691
- "max": undefined,
692
- "min": undefined,
693
- "now": undefined,
694
- "text": undefined,
695
- }
696
- }
697
- accessible={true}
698
- collapsable={false}
699
- focusable={true}
700
- onClick={[Function]}
701
- onResponderGrant={[Function]}
702
- onResponderMove={[Function]}
703
- onResponderRelease={[Function]}
704
- onResponderTerminate={[Function]}
705
- onResponderTerminationRequest={[Function]}
706
- onStartShouldSetResponder={[Function]}
852
+ pointerEvents="box-none"
853
+ position="bottom"
707
854
  style={
708
- {
709
- "justifyContent": "center",
710
- "opacity": 1,
711
- "paddingHorizontal": 12,
712
- }
855
+ [
856
+ {
857
+ "bottom": 0,
858
+ "elevation": 9999,
859
+ "flexDirection": "column-reverse",
860
+ "left": 0,
861
+ "paddingHorizontal": 24,
862
+ "paddingVertical": 16,
863
+ "position": "absolute",
864
+ "right": 0,
865
+ "top": 0,
866
+ },
867
+ undefined,
868
+ ]
713
869
  }
714
- testID="alert-close-icon"
715
- >
716
- <HeroIcon
717
- name="cancel"
718
- style={
719
- [
720
- {
721
- "color": "#001f23",
722
- "fontSize": 20,
723
- },
724
- undefined,
725
- ]
726
- }
727
- themeIntent="text"
728
- themeSize="small"
729
- />
730
- </View>
870
+ />
731
871
  </View>
732
872
  `;
733
873
 
734
874
  exports[`Alert renders correctly when intent is warning 1`] = `
735
875
  <View
736
876
  style={
737
- [
738
- {
739
- "backgroundColor": "#ffbe71",
740
- "borderRadius": 16,
741
- "flexDirection": "row",
742
- "minHeight": 48,
743
- },
744
- undefined,
745
- ]
877
+ {
878
+ "flex": 1,
879
+ }
746
880
  }
747
- themeIntent="warning"
748
- themeVariant="rounded"
749
881
  >
750
882
  <View
751
- showDivider={true}
752
883
  style={
753
884
  [
754
885
  {
755
- "borderColor": "#e8e9ea",
756
- "borderRightWidth": 1,
757
- "flex": 1,
886
+ "backgroundColor": "#ffbe71",
887
+ "borderRadius": 16,
758
888
  "flexDirection": "row",
759
- "paddingVertical": 12,
889
+ "minHeight": 48,
760
890
  },
761
891
  undefined,
762
892
  ]
763
893
  }
894
+ themeIntent="warning"
895
+ themeVariant="rounded"
764
896
  >
765
897
  <View
898
+ showDivider={true}
766
899
  style={
767
900
  [
768
901
  {
769
- "alignItems": "center",
770
- "paddingLeft": 12,
902
+ "borderColor": "#e8e9ea",
903
+ "borderRightWidth": 1,
904
+ "flex": 1,
905
+ "flexDirection": "row",
906
+ "paddingVertical": 12,
771
907
  },
772
908
  undefined,
773
909
  ]
774
910
  }
775
- testID="alert-left-icon"
776
911
  >
777
- <HeroIcon
778
- name="warning"
912
+ <View
779
913
  style={
780
914
  [
781
915
  {
782
- "color": "#001f23",
783
- "fontSize": 20,
916
+ "alignItems": "center",
917
+ "paddingLeft": 12,
784
918
  },
785
919
  undefined,
786
920
  ]
787
921
  }
788
- themeIntent="text"
789
- themeSize="small"
790
- />
791
- </View>
792
- <View
793
- style={
794
- [
795
- {
796
- "flex": 1,
797
- "paddingHorizontal": 12,
798
- },
799
- undefined,
800
- ]
801
- }
802
- >
803
- <Text
804
- allowFontScaling={false}
922
+ testID="alert-left-icon"
923
+ >
924
+ <HeroIcon
925
+ name="warning"
926
+ style={
927
+ [
928
+ {
929
+ "color": "#001f23",
930
+ "fontSize": 20,
931
+ },
932
+ undefined,
933
+ ]
934
+ }
935
+ themeIntent="text"
936
+ themeSize="small"
937
+ />
938
+ </View>
939
+ <View
805
940
  style={
806
941
  [
807
942
  {
808
- "color": "#001f23",
809
- "fontFamily": "BeVietnamPro-SemiBold",
810
- "fontSize": 14,
811
- "letterSpacing": 0.24,
812
- "lineHeight": 22,
943
+ "flex": 1,
944
+ "paddingHorizontal": 12,
813
945
  },
814
946
  undefined,
815
947
  ]
816
948
  }
817
- themeIntent="body"
818
- themeTypeface="neutral"
819
- themeVariant="small-bold"
820
949
  >
821
- Title
822
- </Text>
823
- <Text
824
- allowFontScaling={false}
950
+ <Text
951
+ allowFontScaling={false}
952
+ style={
953
+ [
954
+ {
955
+ "color": "#001f23",
956
+ "fontFamily": "BeVietnamPro-SemiBold",
957
+ "fontSize": 14,
958
+ "letterSpacing": 0.24,
959
+ "lineHeight": 22,
960
+ },
961
+ undefined,
962
+ ]
963
+ }
964
+ themeIntent="body"
965
+ themeTypeface="neutral"
966
+ themeVariant="small-bold"
967
+ >
968
+ Title
969
+ </Text>
970
+ <Text
971
+ allowFontScaling={false}
972
+ style={
973
+ [
974
+ {
975
+ "color": "#001f23",
976
+ "fontFamily": "BeVietnamPro-Regular",
977
+ "fontSize": 14,
978
+ "letterSpacing": 0.48,
979
+ "lineHeight": 22,
980
+ },
981
+ undefined,
982
+ ]
983
+ }
984
+ themeIntent="body"
985
+ themeTypeface="neutral"
986
+ themeVariant="small"
987
+ >
988
+ Content
989
+ </Text>
990
+ </View>
991
+ </View>
992
+ <View
993
+ accessibilityState={
994
+ {
995
+ "busy": undefined,
996
+ "checked": undefined,
997
+ "disabled": undefined,
998
+ "expanded": undefined,
999
+ "selected": undefined,
1000
+ }
1001
+ }
1002
+ accessibilityValue={
1003
+ {
1004
+ "max": undefined,
1005
+ "min": undefined,
1006
+ "now": undefined,
1007
+ "text": undefined,
1008
+ }
1009
+ }
1010
+ accessible={true}
1011
+ collapsable={false}
1012
+ focusable={true}
1013
+ onClick={[Function]}
1014
+ onResponderGrant={[Function]}
1015
+ onResponderMove={[Function]}
1016
+ onResponderRelease={[Function]}
1017
+ onResponderTerminate={[Function]}
1018
+ onResponderTerminationRequest={[Function]}
1019
+ onStartShouldSetResponder={[Function]}
1020
+ style={
1021
+ {
1022
+ "justifyContent": "center",
1023
+ "opacity": 1,
1024
+ "paddingHorizontal": 12,
1025
+ }
1026
+ }
1027
+ testID="alert-close-icon"
1028
+ >
1029
+ <HeroIcon
1030
+ name="cancel"
825
1031
  style={
826
1032
  [
827
1033
  {
828
1034
  "color": "#001f23",
829
- "fontFamily": "BeVietnamPro-Regular",
830
- "fontSize": 14,
831
- "letterSpacing": 0.48,
832
- "lineHeight": 22,
1035
+ "fontSize": 20,
833
1036
  },
834
1037
  undefined,
835
1038
  ]
836
1039
  }
837
- themeIntent="body"
838
- themeTypeface="neutral"
839
- themeVariant="small"
840
- >
841
- Content
842
- </Text>
1040
+ themeIntent="text"
1041
+ themeSize="small"
1042
+ />
843
1043
  </View>
844
1044
  </View>
845
1045
  <View
846
- accessibilityState={
847
- {
848
- "busy": undefined,
849
- "checked": undefined,
850
- "disabled": undefined,
851
- "expanded": undefined,
852
- "selected": undefined,
853
- }
854
- }
855
- accessibilityValue={
856
- {
857
- "max": undefined,
858
- "min": undefined,
859
- "now": undefined,
860
- "text": undefined,
861
- }
862
- }
863
- accessible={true}
864
- collapsable={false}
865
- focusable={true}
866
- onClick={[Function]}
867
- onResponderGrant={[Function]}
868
- onResponderMove={[Function]}
869
- onResponderRelease={[Function]}
870
- onResponderTerminate={[Function]}
871
- onResponderTerminationRequest={[Function]}
872
- onStartShouldSetResponder={[Function]}
1046
+ pointerEvents="box-none"
1047
+ position="bottom"
873
1048
  style={
874
- {
875
- "justifyContent": "center",
876
- "opacity": 1,
877
- "paddingHorizontal": 12,
878
- }
1049
+ [
1050
+ {
1051
+ "bottom": 0,
1052
+ "elevation": 9999,
1053
+ "flexDirection": "column-reverse",
1054
+ "left": 0,
1055
+ "paddingHorizontal": 24,
1056
+ "paddingVertical": 16,
1057
+ "position": "absolute",
1058
+ "right": 0,
1059
+ "top": 0,
1060
+ },
1061
+ undefined,
1062
+ ]
879
1063
  }
880
- testID="alert-close-icon"
881
- >
882
- <HeroIcon
883
- name="cancel"
884
- style={
885
- [
886
- {
887
- "color": "#001f23",
888
- "fontSize": 20,
889
- },
890
- undefined,
891
- ]
892
- }
893
- themeIntent="text"
894
- themeSize="small"
895
- />
896
- </View>
1064
+ />
897
1065
  </View>
898
1066
  `;
899
1067
 
900
1068
  exports[`Alert renders correctly without rounded 1`] = `
901
1069
  <View
902
1070
  style={
903
- [
904
- {
905
- "backgroundColor": "#b5c3fd",
906
- "borderRadius": 0,
907
- "flexDirection": "row",
908
- "minHeight": 48,
909
- },
910
- undefined,
911
- ]
1071
+ {
1072
+ "flex": 1,
1073
+ }
912
1074
  }
913
- themeIntent="info"
914
- themeVariant="unrounded"
915
1075
  >
916
1076
  <View
917
- showDivider={false}
918
1077
  style={
919
1078
  [
920
1079
  {
921
- "borderColor": "#e8e9ea",
922
- "borderRightWidth": 0,
923
- "flex": 1,
1080
+ "backgroundColor": "#b5c3fd",
1081
+ "borderRadius": 0,
924
1082
  "flexDirection": "row",
925
- "paddingVertical": 12,
1083
+ "minHeight": 48,
926
1084
  },
927
1085
  undefined,
928
1086
  ]
929
1087
  }
1088
+ themeIntent="info"
1089
+ themeVariant="unrounded"
930
1090
  >
931
1091
  <View
1092
+ showDivider={false}
932
1093
  style={
933
1094
  [
934
1095
  {
935
- "alignItems": "center",
936
- "paddingLeft": 12,
937
- },
938
- undefined,
939
- ]
940
- }
941
- testID="alert-left-icon"
942
- >
943
- <HeroIcon
944
- name="circle-info"
945
- style={
946
- [
947
- {
948
- "color": "#001f23",
949
- "fontSize": 20,
950
- },
951
- undefined,
952
- ]
953
- }
954
- themeIntent="text"
955
- themeSize="small"
956
- />
957
- </View>
958
- <View
959
- style={
960
- [
961
- {
1096
+ "borderColor": "#e8e9ea",
1097
+ "borderRightWidth": 0,
962
1098
  "flex": 1,
963
- "paddingHorizontal": 12,
1099
+ "flexDirection": "row",
1100
+ "paddingVertical": 12,
964
1101
  },
965
1102
  undefined,
966
1103
  ]
967
1104
  }
968
1105
  >
969
- <Text
970
- allowFontScaling={false}
1106
+ <View
971
1107
  style={
972
1108
  [
973
1109
  {
974
- "color": "#001f23",
975
- "fontFamily": "BeVietnamPro-SemiBold",
976
- "fontSize": 14,
977
- "letterSpacing": 0.24,
978
- "lineHeight": 22,
1110
+ "alignItems": "center",
1111
+ "paddingLeft": 12,
979
1112
  },
980
1113
  undefined,
981
1114
  ]
982
1115
  }
983
- themeIntent="body"
984
- themeTypeface="neutral"
985
- themeVariant="small-bold"
1116
+ testID="alert-left-icon"
986
1117
  >
987
- Title
988
- </Text>
989
- <Text
990
- allowFontScaling={false}
1118
+ <HeroIcon
1119
+ name="circle-info"
1120
+ style={
1121
+ [
1122
+ {
1123
+ "color": "#001f23",
1124
+ "fontSize": 20,
1125
+ },
1126
+ undefined,
1127
+ ]
1128
+ }
1129
+ themeIntent="text"
1130
+ themeSize="small"
1131
+ />
1132
+ </View>
1133
+ <View
991
1134
  style={
992
1135
  [
993
1136
  {
994
- "color": "#001f23",
995
- "fontFamily": "BeVietnamPro-Regular",
996
- "fontSize": 14,
997
- "letterSpacing": 0.48,
998
- "lineHeight": 22,
1137
+ "flex": 1,
1138
+ "paddingHorizontal": 12,
999
1139
  },
1000
1140
  undefined,
1001
1141
  ]
1002
1142
  }
1003
- themeIntent="body"
1004
- themeTypeface="neutral"
1005
- themeVariant="small"
1006
1143
  >
1007
- Content
1008
- </Text>
1144
+ <Text
1145
+ allowFontScaling={false}
1146
+ style={
1147
+ [
1148
+ {
1149
+ "color": "#001f23",
1150
+ "fontFamily": "BeVietnamPro-SemiBold",
1151
+ "fontSize": 14,
1152
+ "letterSpacing": 0.24,
1153
+ "lineHeight": 22,
1154
+ },
1155
+ undefined,
1156
+ ]
1157
+ }
1158
+ themeIntent="body"
1159
+ themeTypeface="neutral"
1160
+ themeVariant="small-bold"
1161
+ >
1162
+ Title
1163
+ </Text>
1164
+ <Text
1165
+ allowFontScaling={false}
1166
+ style={
1167
+ [
1168
+ {
1169
+ "color": "#001f23",
1170
+ "fontFamily": "BeVietnamPro-Regular",
1171
+ "fontSize": 14,
1172
+ "letterSpacing": 0.48,
1173
+ "lineHeight": 22,
1174
+ },
1175
+ undefined,
1176
+ ]
1177
+ }
1178
+ themeIntent="body"
1179
+ themeTypeface="neutral"
1180
+ themeVariant="small"
1181
+ >
1182
+ Content
1183
+ </Text>
1184
+ </View>
1009
1185
  </View>
1010
1186
  </View>
1187
+ <View
1188
+ pointerEvents="box-none"
1189
+ position="bottom"
1190
+ style={
1191
+ [
1192
+ {
1193
+ "bottom": 0,
1194
+ "elevation": 9999,
1195
+ "flexDirection": "column-reverse",
1196
+ "left": 0,
1197
+ "paddingHorizontal": 24,
1198
+ "paddingVertical": 16,
1199
+ "position": "absolute",
1200
+ "right": 0,
1201
+ "top": 0,
1202
+ },
1203
+ undefined,
1204
+ ]
1205
+ }
1206
+ />
1011
1207
  </View>
1012
1208
  `;