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