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