@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,206 +3,290 @@
3
3
  exports[`SectionHeading allows to customise the icon 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "alignContent": "center",
9
- "backgroundColor": "#f6f6f7",
10
- "display": "flex",
11
- "flexDirection": "row",
12
- "justifyContent": "space-between",
13
- "marginBottom": 16,
14
- "paddingHorizontal": 16,
15
- "paddingVertical": 8,
16
- },
17
- undefined,
18
- ]
6
+ {
7
+ "flex": 1,
8
+ }
19
9
  }
20
- themeSize="medium"
21
10
  >
22
11
  <View
23
12
  style={
24
13
  [
25
14
  {
26
- "alignItems": "center",
15
+ "alignContent": "center",
16
+ "backgroundColor": "#f6f6f7",
27
17
  "display": "flex",
28
18
  "flexDirection": "row",
19
+ "justifyContent": "space-between",
20
+ "marginBottom": 16,
21
+ "paddingHorizontal": 16,
22
+ "paddingVertical": 8,
29
23
  },
30
24
  undefined,
31
25
  ]
32
26
  }
27
+ themeSize="medium"
33
28
  >
34
29
  <View
35
30
  style={
36
31
  [
37
32
  {
38
- "marginRight": 12,
33
+ "alignItems": "center",
34
+ "display": "flex",
35
+ "flexDirection": "row",
39
36
  },
40
37
  undefined,
41
38
  ]
42
39
  }
43
40
  >
44
- <HeroIcon
45
- name="home"
41
+ <View
46
42
  style={
47
43
  [
48
44
  {
49
- "color": "#cb300a",
50
- "fontSize": 24,
45
+ "marginRight": 12,
51
46
  },
52
47
  undefined,
53
48
  ]
54
49
  }
55
- themeIntent="danger"
56
- themeSize="medium"
57
- />
50
+ >
51
+ <HeroIcon
52
+ name="home"
53
+ style={
54
+ [
55
+ {
56
+ "color": "#cb300a",
57
+ "fontSize": 24,
58
+ },
59
+ undefined,
60
+ ]
61
+ }
62
+ themeIntent="danger"
63
+ themeSize="medium"
64
+ />
65
+ </View>
66
+ <Text
67
+ allowFontScaling={false}
68
+ style={
69
+ [
70
+ {
71
+ "color": "#401960",
72
+ "fontFamily": "BeVietnamPro-Regular",
73
+ "fontSize": 14,
74
+ "letterSpacing": 0.48,
75
+ "lineHeight": 22,
76
+ },
77
+ undefined,
78
+ ]
79
+ }
80
+ themeIntent="primary"
81
+ themeTypeface="neutral"
82
+ themeVariant="small"
83
+ >
84
+ test demo
85
+ </Text>
58
86
  </View>
59
- <Text
60
- allowFontScaling={false}
61
- style={
62
- [
63
- {
64
- "color": "#401960",
65
- "fontFamily": "BeVietnamPro-Regular",
66
- "fontSize": 14,
67
- "letterSpacing": 0.48,
68
- "lineHeight": 22,
69
- },
70
- undefined,
71
- ]
72
- }
73
- themeIntent="primary"
74
- themeTypeface="neutral"
75
- themeVariant="small"
76
- >
77
- test demo
78
- </Text>
79
87
  </View>
88
+ <View
89
+ pointerEvents="box-none"
90
+ position="bottom"
91
+ style={
92
+ [
93
+ {
94
+ "bottom": 0,
95
+ "elevation": 9999,
96
+ "flexDirection": "column-reverse",
97
+ "left": 0,
98
+ "paddingHorizontal": 24,
99
+ "paddingVertical": 16,
100
+ "position": "absolute",
101
+ "right": 0,
102
+ "top": 0,
103
+ },
104
+ undefined,
105
+ ]
106
+ }
107
+ />
80
108
  </View>
81
109
  `;
82
110
 
83
111
  exports[`SectionHeading render icon correctly 1`] = `
84
112
  <View
85
113
  style={
86
- [
87
- {
88
- "alignContent": "center",
89
- "backgroundColor": "#f6f6f7",
90
- "display": "flex",
91
- "flexDirection": "row",
92
- "justifyContent": "space-between",
93
- "marginBottom": 16,
94
- "paddingHorizontal": 16,
95
- "paddingVertical": 8,
96
- },
97
- undefined,
98
- ]
114
+ {
115
+ "flex": 1,
116
+ }
99
117
  }
100
- testID="sectionHeading"
101
- themeSize="medium"
102
118
  >
103
119
  <View
104
120
  style={
105
121
  [
106
122
  {
107
- "alignItems": "center",
123
+ "alignContent": "center",
124
+ "backgroundColor": "#f6f6f7",
108
125
  "display": "flex",
109
126
  "flexDirection": "row",
127
+ "justifyContent": "space-between",
128
+ "marginBottom": 16,
129
+ "paddingHorizontal": 16,
130
+ "paddingVertical": 8,
110
131
  },
111
132
  undefined,
112
133
  ]
113
134
  }
135
+ testID="sectionHeading"
136
+ themeSize="medium"
114
137
  >
115
138
  <View
116
139
  style={
117
140
  [
118
141
  {
119
- "marginRight": 12,
142
+ "alignItems": "center",
143
+ "display": "flex",
144
+ "flexDirection": "row",
120
145
  },
121
146
  undefined,
122
147
  ]
123
148
  }
124
149
  >
125
- <HeroIcon
126
- name="document"
150
+ <View
151
+ style={
152
+ [
153
+ {
154
+ "marginRight": 12,
155
+ },
156
+ undefined,
157
+ ]
158
+ }
159
+ >
160
+ <HeroIcon
161
+ name="document"
162
+ style={
163
+ [
164
+ {
165
+ "color": "#001f23",
166
+ "fontSize": 24,
167
+ },
168
+ undefined,
169
+ ]
170
+ }
171
+ themeIntent="text"
172
+ themeSize="medium"
173
+ />
174
+ </View>
175
+ <Text
176
+ allowFontScaling={false}
127
177
  style={
128
178
  [
129
179
  {
130
180
  "color": "#001f23",
131
- "fontSize": 24,
181
+ "fontFamily": "BeVietnamPro-Regular",
182
+ "fontSize": 14,
183
+ "letterSpacing": 0.48,
184
+ "lineHeight": 22,
132
185
  },
133
186
  undefined,
134
187
  ]
135
188
  }
136
- themeIntent="text"
137
- themeSize="medium"
138
- />
189
+ themeIntent="body"
190
+ themeTypeface="neutral"
191
+ themeVariant="small"
192
+ >
193
+ test demo
194
+ </Text>
139
195
  </View>
140
- <Text
141
- allowFontScaling={false}
142
- style={
143
- [
144
- {
145
- "color": "#001f23",
146
- "fontFamily": "BeVietnamPro-Regular",
147
- "fontSize": 14,
148
- "letterSpacing": 0.48,
149
- "lineHeight": 22,
150
- },
151
- undefined,
152
- ]
153
- }
154
- themeIntent="body"
155
- themeTypeface="neutral"
156
- themeVariant="small"
157
- >
158
- test demo
159
- </Text>
160
196
  </View>
197
+ <View
198
+ pointerEvents="box-none"
199
+ position="bottom"
200
+ style={
201
+ [
202
+ {
203
+ "bottom": 0,
204
+ "elevation": 9999,
205
+ "flexDirection": "column-reverse",
206
+ "left": 0,
207
+ "paddingHorizontal": 24,
208
+ "paddingVertical": 16,
209
+ "position": "absolute",
210
+ "right": 0,
211
+ "top": 0,
212
+ },
213
+ undefined,
214
+ ]
215
+ }
216
+ />
161
217
  </View>
162
218
  `;
163
219
 
164
220
  exports[`SectionHeading render right children correctly 1`] = `
165
221
  <View
166
222
  style={
167
- [
168
- {
169
- "alignContent": "center",
170
- "backgroundColor": "#f6f6f7",
171
- "display": "flex",
172
- "flexDirection": "row",
173
- "justifyContent": "space-between",
174
- "marginBottom": 16,
175
- "paddingHorizontal": 16,
176
- "paddingVertical": 8,
177
- },
178
- undefined,
179
- ]
223
+ {
224
+ "flex": 1,
225
+ }
180
226
  }
181
- testID="sectionHeading"
182
- themeSize="medium"
183
227
  >
184
228
  <View
185
229
  style={
186
230
  [
187
231
  {
188
- "alignItems": "center",
232
+ "alignContent": "center",
233
+ "backgroundColor": "#f6f6f7",
189
234
  "display": "flex",
190
235
  "flexDirection": "row",
236
+ "justifyContent": "space-between",
237
+ "marginBottom": 16,
238
+ "paddingHorizontal": 16,
239
+ "paddingVertical": 8,
191
240
  },
192
241
  undefined,
193
242
  ]
194
243
  }
244
+ testID="sectionHeading"
245
+ themeSize="medium"
195
246
  >
196
247
  <View
197
248
  style={
198
249
  [
199
250
  {
200
- "marginRight": 12,
251
+ "alignItems": "center",
252
+ "display": "flex",
253
+ "flexDirection": "row",
201
254
  },
202
255
  undefined,
203
256
  ]
204
257
  }
205
- />
258
+ >
259
+ <View
260
+ style={
261
+ [
262
+ {
263
+ "marginRight": 12,
264
+ },
265
+ undefined,
266
+ ]
267
+ }
268
+ />
269
+ <Text
270
+ allowFontScaling={false}
271
+ style={
272
+ [
273
+ {
274
+ "color": "#001f23",
275
+ "fontFamily": "BeVietnamPro-Regular",
276
+ "fontSize": 14,
277
+ "letterSpacing": 0.48,
278
+ "lineHeight": 22,
279
+ },
280
+ undefined,
281
+ ]
282
+ }
283
+ themeIntent="body"
284
+ themeTypeface="neutral"
285
+ themeVariant="small"
286
+ >
287
+ test demo
288
+ </Text>
289
+ </View>
206
290
  <Text
207
291
  allowFontScaling={false}
208
292
  style={
@@ -221,223 +305,307 @@ exports[`SectionHeading render right children correctly 1`] = `
221
305
  themeTypeface="neutral"
222
306
  themeVariant="small"
223
307
  >
224
- test demo
308
+ right children
225
309
  </Text>
226
310
  </View>
227
- <Text
228
- allowFontScaling={false}
311
+ <View
312
+ pointerEvents="box-none"
313
+ position="bottom"
229
314
  style={
230
315
  [
231
316
  {
232
- "color": "#001f23",
233
- "fontFamily": "BeVietnamPro-Regular",
234
- "fontSize": 14,
235
- "letterSpacing": 0.48,
236
- "lineHeight": 22,
317
+ "bottom": 0,
318
+ "elevation": 9999,
319
+ "flexDirection": "column-reverse",
320
+ "left": 0,
321
+ "paddingHorizontal": 24,
322
+ "paddingVertical": 16,
323
+ "position": "absolute",
324
+ "right": 0,
325
+ "top": 0,
237
326
  },
238
327
  undefined,
239
328
  ]
240
329
  }
241
- themeIntent="body"
242
- themeTypeface="neutral"
243
- themeVariant="small"
244
- >
245
- right children
246
- </Text>
330
+ />
247
331
  </View>
248
332
  `;
249
333
 
250
334
  exports[`SectionHeading renders correct style with medium 1`] = `
251
335
  <View
252
336
  style={
253
- [
254
- {
255
- "alignContent": "center",
256
- "backgroundColor": "#f6f6f7",
257
- "display": "flex",
258
- "flexDirection": "row",
259
- "justifyContent": "space-between",
260
- "marginBottom": 16,
261
- "paddingHorizontal": 16,
262
- "paddingVertical": 8,
263
- },
264
- undefined,
265
- ]
337
+ {
338
+ "flex": 1,
339
+ }
266
340
  }
267
- themeSize="medium"
268
341
  >
269
342
  <View
270
343
  style={
271
344
  [
272
345
  {
273
- "alignItems": "center",
346
+ "alignContent": "center",
347
+ "backgroundColor": "#f6f6f7",
274
348
  "display": "flex",
275
349
  "flexDirection": "row",
350
+ "justifyContent": "space-between",
351
+ "marginBottom": 16,
352
+ "paddingHorizontal": 16,
353
+ "paddingVertical": 8,
276
354
  },
277
355
  undefined,
278
356
  ]
279
357
  }
358
+ themeSize="medium"
280
359
  >
281
360
  <View
282
361
  style={
283
362
  [
284
363
  {
285
- "marginRight": 12,
364
+ "alignItems": "center",
365
+ "display": "flex",
366
+ "flexDirection": "row",
286
367
  },
287
368
  undefined,
288
369
  ]
289
370
  }
290
- />
291
- <Text
292
- allowFontScaling={false}
293
- style={
294
- [
295
- {
296
- "color": "#001f23",
297
- "fontFamily": "BeVietnamPro-Regular",
298
- "fontSize": 14,
299
- "letterSpacing": 0.48,
300
- "lineHeight": 22,
301
- },
302
- undefined,
303
- ]
304
- }
305
- themeIntent="body"
306
- themeTypeface="neutral"
307
- themeVariant="small"
308
371
  >
309
- Section Heading
310
- </Text>
372
+ <View
373
+ style={
374
+ [
375
+ {
376
+ "marginRight": 12,
377
+ },
378
+ undefined,
379
+ ]
380
+ }
381
+ />
382
+ <Text
383
+ allowFontScaling={false}
384
+ style={
385
+ [
386
+ {
387
+ "color": "#001f23",
388
+ "fontFamily": "BeVietnamPro-Regular",
389
+ "fontSize": 14,
390
+ "letterSpacing": 0.48,
391
+ "lineHeight": 22,
392
+ },
393
+ undefined,
394
+ ]
395
+ }
396
+ themeIntent="body"
397
+ themeTypeface="neutral"
398
+ themeVariant="small"
399
+ >
400
+ Section Heading
401
+ </Text>
402
+ </View>
311
403
  </View>
404
+ <View
405
+ pointerEvents="box-none"
406
+ position="bottom"
407
+ style={
408
+ [
409
+ {
410
+ "bottom": 0,
411
+ "elevation": 9999,
412
+ "flexDirection": "column-reverse",
413
+ "left": 0,
414
+ "paddingHorizontal": 24,
415
+ "paddingVertical": 16,
416
+ "position": "absolute",
417
+ "right": 0,
418
+ "top": 0,
419
+ },
420
+ undefined,
421
+ ]
422
+ }
423
+ />
312
424
  </View>
313
425
  `;
314
426
 
315
427
  exports[`SectionHeading renders correct style with small 1`] = `
316
428
  <View
317
429
  style={
318
- [
319
- {
320
- "alignContent": "center",
321
- "backgroundColor": "#ccd2d3",
322
- "display": "flex",
323
- "flexDirection": "row",
324
- "justifyContent": "space-between",
325
- "marginBottom": 16,
326
- "paddingHorizontal": 16,
327
- "paddingVertical": 8,
328
- },
329
- undefined,
330
- ]
430
+ {
431
+ "flex": 1,
432
+ }
331
433
  }
332
- themeSize="small"
333
434
  >
334
435
  <View
335
436
  style={
336
437
  [
337
438
  {
338
- "alignItems": "center",
439
+ "alignContent": "center",
440
+ "backgroundColor": "#ccd2d3",
339
441
  "display": "flex",
340
442
  "flexDirection": "row",
443
+ "justifyContent": "space-between",
444
+ "marginBottom": 16,
445
+ "paddingHorizontal": 16,
446
+ "paddingVertical": 8,
341
447
  },
342
448
  undefined,
343
449
  ]
344
450
  }
451
+ themeSize="small"
345
452
  >
346
453
  <View
347
454
  style={
348
455
  [
349
456
  {
350
- "marginRight": 12,
457
+ "alignItems": "center",
458
+ "display": "flex",
459
+ "flexDirection": "row",
351
460
  },
352
461
  undefined,
353
462
  ]
354
463
  }
355
- />
356
- <Text
357
- allowFontScaling={false}
358
- style={
359
- [
360
- {
361
- "color": "#001f23",
362
- "fontFamily": "BeVietnamPro-Regular",
363
- "fontSize": 12,
364
- "letterSpacing": 0.48,
365
- "lineHeight": 16,
366
- },
367
- undefined,
368
- ]
369
- }
370
- themeFontWeight="regular"
371
- themeIntent="body"
372
464
  >
373
- Section Heading
374
- </Text>
465
+ <View
466
+ style={
467
+ [
468
+ {
469
+ "marginRight": 12,
470
+ },
471
+ undefined,
472
+ ]
473
+ }
474
+ />
475
+ <Text
476
+ allowFontScaling={false}
477
+ style={
478
+ [
479
+ {
480
+ "color": "#001f23",
481
+ "fontFamily": "BeVietnamPro-Regular",
482
+ "fontSize": 12,
483
+ "letterSpacing": 0.48,
484
+ "lineHeight": 16,
485
+ },
486
+ undefined,
487
+ ]
488
+ }
489
+ themeFontWeight="regular"
490
+ themeIntent="body"
491
+ >
492
+ Section Heading
493
+ </Text>
494
+ </View>
375
495
  </View>
496
+ <View
497
+ pointerEvents="box-none"
498
+ position="bottom"
499
+ style={
500
+ [
501
+ {
502
+ "bottom": 0,
503
+ "elevation": 9999,
504
+ "flexDirection": "column-reverse",
505
+ "left": 0,
506
+ "paddingHorizontal": 24,
507
+ "paddingVertical": 16,
508
+ "position": "absolute",
509
+ "right": 0,
510
+ "top": 0,
511
+ },
512
+ undefined,
513
+ ]
514
+ }
515
+ />
376
516
  </View>
377
517
  `;
378
518
 
379
519
  exports[`SectionHeading renders correctly 1`] = `
380
520
  <View
381
521
  style={
382
- [
383
- {
384
- "alignContent": "center",
385
- "backgroundColor": "#f6f6f7",
386
- "display": "flex",
387
- "flexDirection": "row",
388
- "justifyContent": "space-between",
389
- "marginBottom": 16,
390
- "paddingHorizontal": 16,
391
- "paddingVertical": 8,
392
- },
393
- undefined,
394
- ]
522
+ {
523
+ "flex": 1,
524
+ }
395
525
  }
396
- testID="sectionHeading"
397
- themeSize="medium"
398
526
  >
399
527
  <View
400
528
  style={
401
529
  [
402
530
  {
403
- "alignItems": "center",
531
+ "alignContent": "center",
532
+ "backgroundColor": "#f6f6f7",
404
533
  "display": "flex",
405
534
  "flexDirection": "row",
535
+ "justifyContent": "space-between",
536
+ "marginBottom": 16,
537
+ "paddingHorizontal": 16,
538
+ "paddingVertical": 8,
406
539
  },
407
540
  undefined,
408
541
  ]
409
542
  }
543
+ testID="sectionHeading"
544
+ themeSize="medium"
410
545
  >
411
546
  <View
412
547
  style={
413
548
  [
414
549
  {
415
- "marginRight": 12,
550
+ "alignItems": "center",
551
+ "display": "flex",
552
+ "flexDirection": "row",
416
553
  },
417
554
  undefined,
418
555
  ]
419
556
  }
420
- />
421
- <Text
422
- allowFontScaling={false}
423
- style={
424
- [
425
- {
426
- "color": "#001f23",
427
- "fontFamily": "BeVietnamPro-Regular",
428
- "fontSize": 14,
429
- "letterSpacing": 0.48,
430
- "lineHeight": 22,
431
- },
432
- undefined,
433
- ]
434
- }
435
- themeIntent="body"
436
- themeTypeface="neutral"
437
- themeVariant="small"
438
557
  >
439
- test demo
440
- </Text>
558
+ <View
559
+ style={
560
+ [
561
+ {
562
+ "marginRight": 12,
563
+ },
564
+ undefined,
565
+ ]
566
+ }
567
+ />
568
+ <Text
569
+ allowFontScaling={false}
570
+ style={
571
+ [
572
+ {
573
+ "color": "#001f23",
574
+ "fontFamily": "BeVietnamPro-Regular",
575
+ "fontSize": 14,
576
+ "letterSpacing": 0.48,
577
+ "lineHeight": 22,
578
+ },
579
+ undefined,
580
+ ]
581
+ }
582
+ themeIntent="body"
583
+ themeTypeface="neutral"
584
+ themeVariant="small"
585
+ >
586
+ test demo
587
+ </Text>
588
+ </View>
441
589
  </View>
590
+ <View
591
+ pointerEvents="box-none"
592
+ position="bottom"
593
+ style={
594
+ [
595
+ {
596
+ "bottom": 0,
597
+ "elevation": 9999,
598
+ "flexDirection": "column-reverse",
599
+ "left": 0,
600
+ "paddingHorizontal": 24,
601
+ "paddingVertical": 16,
602
+ "position": "absolute",
603
+ "right": 0,
604
+ "top": 0,
605
+ },
606
+ undefined,
607
+ ]
608
+ }
609
+ />
442
610
  </View>
443
611
  `;