@hero-design/rn 8.52.2-rc2.0 → 8.53.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 (184) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +4 -16
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +997 -700
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +996 -698
  7. package/package.json +7 -7
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -0
  9. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +2 -0
  10. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
  12. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -0
  14. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  15. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -0
  16. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +6 -0
  18. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -0
  19. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +60 -0
  20. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +413 -0
  21. package/src/components/BottomNavigation/__tests__/index.spec.tsx +97 -0
  22. package/src/components/BottomNavigation/index.tsx +166 -0
  23. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +21 -32
  24. package/src/components/BottomSheet/index.tsx +1 -1
  25. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +21 -0
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +10 -0
  27. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +10 -0
  28. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  29. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +16 -0
  30. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -0
  31. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +32 -0
  32. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
  33. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +7 -0
  34. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
  35. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -0
  36. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  37. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +2 -0
  38. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +4 -0
  39. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +1 -0
  40. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +803 -1
  41. package/src/components/Carousel/__tests__/index.spec.tsx +47 -37
  42. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +8 -0
  43. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  44. package/src/components/Checkbox/index.tsx +13 -1
  45. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  46. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +2 -0
  47. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  48. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -0
  49. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  50. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +15 -0
  51. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  52. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +1 -0
  53. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +329 -309
  54. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -0
  55. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  56. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  57. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  58. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  59. package/src/components/Error/index.tsx +20 -3
  60. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  61. package/src/components/FAB/ActionGroup/index.tsx +14 -1
  62. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -0
  63. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -0
  64. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  65. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  66. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  67. package/src/components/Icon/IconList.ts +7 -0
  68. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  69. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  70. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -0
  71. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +4 -0
  72. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
  73. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +9 -0
  74. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  75. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  76. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +5 -0
  77. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  78. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  79. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -0
  80. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -0
  81. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1 -0
  82. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  83. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  84. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +1 -0
  85. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +1 -0
  86. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -0
  87. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +4 -0
  88. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  89. package/src/components/SectionHeading/__tests__/index.spec.tsx +1 -0
  90. package/src/components/SectionHeading/index.tsx +57 -32
  91. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  92. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -0
  93. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +42 -128
  94. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  95. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -0
  96. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +35 -96
  97. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
  98. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  99. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +1 -0
  100. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +24 -0
  101. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  102. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  103. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
  104. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  105. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +4 -0
  106. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  107. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +5 -0
  108. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  109. package/src/components/Tabs/__tests__/SceneView.spec.tsx +1 -1
  110. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +4 -0
  111. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -0
  112. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +1 -0
  113. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +2 -0
  114. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  115. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +10 -0
  116. package/src/components/Tag/index.tsx +12 -0
  117. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +21 -0
  118. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +17 -0
  119. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
  120. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +330 -309
  121. package/src/components/Toast/StyledToast.tsx +9 -7
  122. package/src/components/Toast/Toast.tsx +4 -1
  123. package/src/components/Toast/ToastContainer.tsx +6 -2
  124. package/src/components/Toast/ToastContext.ts +5 -2
  125. package/src/components/Toast/ToastProvider.tsx +19 -2
  126. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +15 -12
  127. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -0
  128. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +14 -6
  129. package/src/components/Toast/types.ts +5 -1
  130. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +3 -0
  131. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -0
  132. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +16 -0
  133. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +19 -0
  134. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +10 -0
  135. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
  136. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +8 -0
  137. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +11 -0
  138. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +20 -0
  139. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +20 -0
  140. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +23 -0
  141. package/src/index.ts +2 -0
  142. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +102 -0
  143. package/src/theme/components/badge.ts +28 -1
  144. package/src/theme/components/bottomNavigation.ts +27 -0
  145. package/src/theme/components/button.ts +24 -0
  146. package/src/theme/components/carousel.ts +28 -1
  147. package/src/theme/components/empty.ts +23 -1
  148. package/src/theme/components/error.ts +32 -1
  149. package/src/theme/components/fab.ts +13 -2
  150. package/src/theme/components/pinInput.ts +32 -0
  151. package/src/theme/components/success.ts +23 -1
  152. package/src/theme/components/tag.ts +28 -1
  153. package/src/theme/components/textInput.ts +5 -0
  154. package/src/theme/getTheme.ts +21 -18
  155. package/src/types.ts +2 -0
  156. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
  157. package/types/components/BottomNavigation/index.d.ts +45 -0
  158. package/types/components/Checkbox/index.d.ts +6 -1
  159. package/types/components/Error/index.d.ts +9 -3
  160. package/types/components/FAB/ActionGroup/index.d.ts +5 -0
  161. package/types/components/Icon/IconList.d.ts +1 -1
  162. package/types/components/Icon/index.d.ts +1 -1
  163. package/types/components/Icon/utils.d.ts +1 -1
  164. package/types/components/SectionHeading/index.d.ts +11 -1
  165. package/types/components/Tag/index.d.ts +6 -1
  166. package/types/components/Toast/StyledToast.d.ts +2 -0
  167. package/types/components/Toast/ToastContext.d.ts +2 -2
  168. package/types/components/Toast/ToastProvider.d.ts +1 -1
  169. package/types/components/Toast/index.d.ts +1 -1
  170. package/types/components/Toast/types.d.ts +5 -1
  171. package/types/index.d.ts +2 -1
  172. package/types/theme/components/badge.d.ts +24 -0
  173. package/types/theme/components/bottomNavigation.d.ts +23 -0
  174. package/types/theme/components/button.d.ts +20 -0
  175. package/types/theme/components/carousel.d.ts +24 -0
  176. package/types/theme/components/empty.d.ts +19 -0
  177. package/types/theme/components/error.d.ts +27 -0
  178. package/types/theme/components/fab.d.ts +19 -8
  179. package/types/theme/components/pinInput.d.ts +27 -0
  180. package/types/theme/components/success.d.ts +19 -0
  181. package/types/theme/components/tag.d.ts +24 -0
  182. package/types/theme/components/textInput.d.ts +5 -0
  183. package/types/theme/getTheme.d.ts +20 -18
  184. package/types/types.d.ts +2 -1
@@ -1,6 +1,806 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Carousel renders correctly 1`] = `
3
+ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
4
+ <View
5
+ style={
6
+ {
7
+ "flex": 1,
8
+ }
9
+ }
10
+ >
11
+ <View
12
+ testID="carousel"
13
+ >
14
+ <View
15
+ style={
16
+ [
17
+ {
18
+ "backgroundColor": "#ece8ef",
19
+ "bottom": 0,
20
+ "left": 0,
21
+ "position": "absolute",
22
+ "right": 0,
23
+ "top": 0,
24
+ },
25
+ undefined,
26
+ ]
27
+ }
28
+ themeSlideBackground="#ece8ef"
29
+ />
30
+ <View
31
+ style={
32
+ [
33
+ {
34
+ "alignItems": "center",
35
+ "height": 48,
36
+ "justifyContent": "center",
37
+ },
38
+ undefined,
39
+ ]
40
+ }
41
+ />
42
+ <View
43
+ style={
44
+ [
45
+ {
46
+ "flexGrow": 2,
47
+ "justifyContent": "space-between",
48
+ },
49
+ undefined,
50
+ ]
51
+ }
52
+ >
53
+ <RCTScrollView
54
+ bounces={false}
55
+ data={
56
+ [
57
+ {
58
+ "background": "#ece8ef",
59
+ "body": "Access your Work, Money and Benefits in the palm of your hand.",
60
+ "heading": "Welcome to the new Employment Hero app",
61
+ "image": 1,
62
+ },
63
+ {
64
+ "background": "#ccd2d3",
65
+ "body": "Our app now has a new bright clean modern look and feel with the same great features.",
66
+ "content": <Image
67
+ source={
68
+ {
69
+ "uri": "https://picsum.photos/30",
70
+ }
71
+ }
72
+ />,
73
+ "heading": "Same app with a new look!",
74
+ "image": "https://picsum.photos/800/1200",
75
+ },
76
+ {
77
+ "background": "#ccd2d3",
78
+ "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vitae pulvinar quam, ac facilisis massa. Aliquam facilisis nisi eu justo dignissim, vel tempus justo iaculis.",
79
+ "heading": "Easier to get around",
80
+ "image": {
81
+ "height": 100,
82
+ "resizeMode": "cover",
83
+ "uri": "https://picsum.photos/1200/800",
84
+ "width": 30,
85
+ },
86
+ },
87
+ {
88
+ "background": "#ccd2d3",
89
+ "heading": "Test slide 4",
90
+ "image": {
91
+ "height": 100,
92
+ "uri": "https://picsum.photos/1200/800",
93
+ "width": 30,
94
+ },
95
+ },
96
+ ]
97
+ }
98
+ getItem={[Function]}
99
+ getItemCount={[Function]}
100
+ horizontal={true}
101
+ keyExtractor={[Function]}
102
+ onContentSizeChange={[Function]}
103
+ onLayout={[Function]}
104
+ onMomentumScrollBegin={[Function]}
105
+ onMomentumScrollEnd={[Function]}
106
+ onScroll={[Function]}
107
+ onScrollBeginDrag={[Function]}
108
+ onScrollEndDrag={[Function]}
109
+ onViewableItemsChanged={[Function]}
110
+ pagingEnabled={true}
111
+ removeClippedSubviews={false}
112
+ renderItem={[Function]}
113
+ scrollEventThrottle={32}
114
+ showsHorizontalScrollIndicator={false}
115
+ stickyHeaderIndices={[]}
116
+ testID="carousel_flatlist"
117
+ viewabilityConfig={
118
+ {
119
+ "viewAreaCoveragePercentThreshold": 50,
120
+ }
121
+ }
122
+ viewabilityConfigCallbackPairs={
123
+ [
124
+ {
125
+ "onViewableItemsChanged": [Function],
126
+ "viewabilityConfig": {
127
+ "viewAreaCoveragePercentThreshold": 50,
128
+ },
129
+ },
130
+ ]
131
+ }
132
+ >
133
+ <View>
134
+ <View
135
+ onFocusCapture={[Function]}
136
+ onLayout={[Function]}
137
+ style={
138
+ [
139
+ {
140
+ "flexDirection": "row",
141
+ },
142
+ null,
143
+ ]
144
+ }
145
+ >
146
+ <View
147
+ style={
148
+ [
149
+ {},
150
+ {
151
+ "width": 750,
152
+ },
153
+ ]
154
+ }
155
+ >
156
+ <Image
157
+ source={1}
158
+ style={
159
+ [
160
+ {
161
+ "borderRadius": 0,
162
+ "height": 72,
163
+ "width": 72,
164
+ },
165
+ [
166
+ {
167
+ "flex": 1,
168
+ "flexGrow": 2,
169
+ "resizeMode": "contain",
170
+ "width": "100%",
171
+ },
172
+ undefined,
173
+ ],
174
+ ]
175
+ }
176
+ />
177
+ <View
178
+ marginTop="large"
179
+ paddingHorizontal="large"
180
+ style={
181
+ [
182
+ {
183
+ "marginTop": 24,
184
+ "paddingHorizontal": 24,
185
+ },
186
+ [
187
+ {
188
+ "width": 750,
189
+ },
190
+ undefined,
191
+ ],
192
+ ]
193
+ }
194
+ width={750}
195
+ >
196
+ <Text
197
+ allowFontScaling={false}
198
+ style={
199
+ [
200
+ {
201
+ "color": "#001f23",
202
+ "fontFamily": "RebondGrotesque-SemiBold",
203
+ "fontSize": 36,
204
+ "letterSpacing": 1.5,
205
+ "lineHeight": 44,
206
+ },
207
+ [
208
+ {
209
+ "marginBottom": 16,
210
+ "marginTop": 8,
211
+ },
212
+ undefined,
213
+ ],
214
+ ]
215
+ }
216
+ themeIntent="body"
217
+ themeLevel="h1"
218
+ themeTypeface="playful"
219
+ >
220
+ Welcome to the new Employment Hero app
221
+ </Text>
222
+ <Text
223
+ allowFontScaling={false}
224
+ style={
225
+ [
226
+ {
227
+ "color": "#001f23",
228
+ "fontFamily": "BeVietnamPro-Regular",
229
+ "fontSize": 16,
230
+ "letterSpacing": 0.48,
231
+ "lineHeight": 24,
232
+ },
233
+ undefined,
234
+ ]
235
+ }
236
+ themeIntent="body"
237
+ themeTypeface="neutral"
238
+ themeVariant="regular"
239
+ >
240
+ Access your Work, Money and Benefits in the palm of your hand.
241
+ </Text>
242
+ </View>
243
+ </View>
244
+ </View>
245
+ <View
246
+ onFocusCapture={[Function]}
247
+ onLayout={[Function]}
248
+ style={
249
+ [
250
+ {
251
+ "flexDirection": "row",
252
+ },
253
+ null,
254
+ ]
255
+ }
256
+ >
257
+ <View
258
+ style={
259
+ [
260
+ {},
261
+ {
262
+ "width": 750,
263
+ },
264
+ ]
265
+ }
266
+ >
267
+ <Image
268
+ source={
269
+ {
270
+ "uri": "https://picsum.photos/800/1200",
271
+ }
272
+ }
273
+ style={
274
+ [
275
+ {
276
+ "borderRadius": 0,
277
+ "height": 72,
278
+ "width": 72,
279
+ },
280
+ [
281
+ {
282
+ "flex": 1,
283
+ "flexGrow": 2,
284
+ "resizeMode": "contain",
285
+ "width": "100%",
286
+ },
287
+ undefined,
288
+ ],
289
+ ]
290
+ }
291
+ />
292
+ <View
293
+ marginTop="large"
294
+ paddingHorizontal="large"
295
+ style={
296
+ [
297
+ {
298
+ "marginTop": 24,
299
+ "paddingHorizontal": 24,
300
+ },
301
+ [
302
+ {
303
+ "width": 750,
304
+ },
305
+ undefined,
306
+ ],
307
+ ]
308
+ }
309
+ width={750}
310
+ >
311
+ <Image
312
+ source={
313
+ {
314
+ "uri": "https://picsum.photos/30",
315
+ }
316
+ }
317
+ style={
318
+ [
319
+ {
320
+ "borderRadius": 0,
321
+ "height": 72,
322
+ "width": 72,
323
+ },
324
+ undefined,
325
+ ]
326
+ }
327
+ />
328
+ <Text
329
+ allowFontScaling={false}
330
+ style={
331
+ [
332
+ {
333
+ "color": "#001f23",
334
+ "fontFamily": "RebondGrotesque-SemiBold",
335
+ "fontSize": 36,
336
+ "letterSpacing": 1.5,
337
+ "lineHeight": 44,
338
+ },
339
+ [
340
+ {
341
+ "marginBottom": 16,
342
+ "marginTop": 8,
343
+ },
344
+ undefined,
345
+ ],
346
+ ]
347
+ }
348
+ themeIntent="body"
349
+ themeLevel="h1"
350
+ themeTypeface="playful"
351
+ >
352
+ Same app with a new look!
353
+ </Text>
354
+ <Text
355
+ allowFontScaling={false}
356
+ style={
357
+ [
358
+ {
359
+ "color": "#001f23",
360
+ "fontFamily": "BeVietnamPro-Regular",
361
+ "fontSize": 16,
362
+ "letterSpacing": 0.48,
363
+ "lineHeight": 24,
364
+ },
365
+ undefined,
366
+ ]
367
+ }
368
+ themeIntent="body"
369
+ themeTypeface="neutral"
370
+ themeVariant="regular"
371
+ >
372
+ Our app now has a new bright clean modern look and feel with the same great features.
373
+ </Text>
374
+ </View>
375
+ </View>
376
+ </View>
377
+ <View
378
+ onFocusCapture={[Function]}
379
+ onLayout={[Function]}
380
+ style={
381
+ [
382
+ {
383
+ "flexDirection": "row",
384
+ },
385
+ null,
386
+ ]
387
+ }
388
+ >
389
+ <View
390
+ style={
391
+ [
392
+ {},
393
+ {
394
+ "width": 750,
395
+ },
396
+ ]
397
+ }
398
+ >
399
+ <Image
400
+ height={100}
401
+ resizeMode="cover"
402
+ source={
403
+ {
404
+ "height": 100,
405
+ "resizeMode": "cover",
406
+ "uri": "https://picsum.photos/1200/800",
407
+ "width": 30,
408
+ }
409
+ }
410
+ style={
411
+ [
412
+ {
413
+ "borderRadius": 0,
414
+ "height": 72,
415
+ "width": 72,
416
+ },
417
+ [
418
+ {
419
+ "alignSelf": "center",
420
+ "height": 100,
421
+ "resizeMode": "cover",
422
+ "width": 30,
423
+ },
424
+ undefined,
425
+ ],
426
+ ]
427
+ }
428
+ width={30}
429
+ />
430
+ <View
431
+ marginTop="large"
432
+ paddingHorizontal="large"
433
+ style={
434
+ [
435
+ {
436
+ "marginTop": 24,
437
+ "paddingHorizontal": 24,
438
+ },
439
+ [
440
+ {
441
+ "width": 750,
442
+ },
443
+ undefined,
444
+ ],
445
+ ]
446
+ }
447
+ width={750}
448
+ >
449
+ <Text
450
+ allowFontScaling={false}
451
+ style={
452
+ [
453
+ {
454
+ "color": "#001f23",
455
+ "fontFamily": "RebondGrotesque-SemiBold",
456
+ "fontSize": 36,
457
+ "letterSpacing": 1.5,
458
+ "lineHeight": 44,
459
+ },
460
+ [
461
+ {
462
+ "marginBottom": 16,
463
+ "marginTop": 8,
464
+ },
465
+ undefined,
466
+ ],
467
+ ]
468
+ }
469
+ themeIntent="body"
470
+ themeLevel="h1"
471
+ themeTypeface="playful"
472
+ >
473
+ Easier to get around
474
+ </Text>
475
+ <Text
476
+ allowFontScaling={false}
477
+ style={
478
+ [
479
+ {
480
+ "color": "#001f23",
481
+ "fontFamily": "BeVietnamPro-Regular",
482
+ "fontSize": 16,
483
+ "letterSpacing": 0.48,
484
+ "lineHeight": 24,
485
+ },
486
+ undefined,
487
+ ]
488
+ }
489
+ themeIntent="body"
490
+ themeTypeface="neutral"
491
+ themeVariant="regular"
492
+ >
493
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vitae pulvinar quam, ac facilisis massa. Aliquam facilisis nisi eu justo dignissim, vel tempus justo iaculis.
494
+ </Text>
495
+ </View>
496
+ </View>
497
+ </View>
498
+ <View
499
+ onFocusCapture={[Function]}
500
+ onLayout={[Function]}
501
+ style={
502
+ [
503
+ {
504
+ "flexDirection": "row",
505
+ },
506
+ null,
507
+ ]
508
+ }
509
+ >
510
+ <View
511
+ style={
512
+ [
513
+ {},
514
+ {
515
+ "width": 750,
516
+ },
517
+ ]
518
+ }
519
+ >
520
+ <Image
521
+ height={100}
522
+ source={
523
+ {
524
+ "height": 100,
525
+ "uri": "https://picsum.photos/1200/800",
526
+ "width": 30,
527
+ }
528
+ }
529
+ style={
530
+ [
531
+ {
532
+ "borderRadius": 0,
533
+ "height": 72,
534
+ "width": 72,
535
+ },
536
+ [
537
+ {
538
+ "alignSelf": "center",
539
+ "height": 100,
540
+ "resizeMode": "contain",
541
+ "width": 30,
542
+ },
543
+ undefined,
544
+ ],
545
+ ]
546
+ }
547
+ width={30}
548
+ />
549
+ <View
550
+ marginTop="large"
551
+ paddingHorizontal="large"
552
+ style={
553
+ [
554
+ {
555
+ "marginTop": 24,
556
+ "paddingHorizontal": 24,
557
+ },
558
+ [
559
+ {
560
+ "width": 750,
561
+ },
562
+ undefined,
563
+ ],
564
+ ]
565
+ }
566
+ width={750}
567
+ >
568
+ <Text
569
+ allowFontScaling={false}
570
+ style={
571
+ [
572
+ {
573
+ "color": "#001f23",
574
+ "fontFamily": "RebondGrotesque-SemiBold",
575
+ "fontSize": 36,
576
+ "letterSpacing": 1.5,
577
+ "lineHeight": 44,
578
+ },
579
+ [
580
+ {
581
+ "marginBottom": 16,
582
+ "marginTop": 8,
583
+ },
584
+ undefined,
585
+ ],
586
+ ]
587
+ }
588
+ themeIntent="body"
589
+ themeLevel="h1"
590
+ themeTypeface="playful"
591
+ >
592
+ Test slide 4
593
+ </Text>
594
+ </View>
595
+ </View>
596
+ </View>
597
+ </View>
598
+ </RCTScrollView>
599
+ <View
600
+ style={
601
+ [
602
+ {
603
+ "flexDirection": "row",
604
+ "justifyContent": "space-between",
605
+ "marginBottom": 24,
606
+ "paddingHorizontal": 24,
607
+ "paddingVertical": 16,
608
+ },
609
+ undefined,
610
+ ]
611
+ }
612
+ >
613
+ <View
614
+ accessibilityState={
615
+ {
616
+ "disabled": false,
617
+ }
618
+ }
619
+ accessibilityValue={
620
+ {
621
+ "max": undefined,
622
+ "min": undefined,
623
+ "now": undefined,
624
+ "text": undefined,
625
+ }
626
+ }
627
+ accessible={true}
628
+ focusable={true}
629
+ onClick={[Function]}
630
+ onResponderGrant={[Function]}
631
+ onResponderMove={[Function]}
632
+ onResponderRelease={[Function]}
633
+ onResponderTerminate={[Function]}
634
+ onResponderTerminationRequest={[Function]}
635
+ onStartShouldSetResponder={[Function]}
636
+ style={
637
+ [
638
+ {
639
+ "alignItems": "center",
640
+ "alignSelf": "stretch",
641
+ "backgroundColor": "#401960",
642
+ "borderRadius": 32,
643
+ "flexDirection": "row",
644
+ "height": 60,
645
+ "justifyContent": "center",
646
+ "padding": 16,
647
+ },
648
+ undefined,
649
+ ]
650
+ }
651
+ >
652
+ <Text
653
+ allowFontScaling={false}
654
+ disabled={false}
655
+ ellipsizeMode="tail"
656
+ numberOfLines={1}
657
+ style={
658
+ [
659
+ {
660
+ "color": "#001f23",
661
+ "fontFamily": "BeVietnamPro-SemiBold",
662
+ "fontSize": 18,
663
+ "letterSpacing": 0.24,
664
+ "lineHeight": 28,
665
+ },
666
+ [
667
+ {
668
+ "color": "#ffffff",
669
+ "flexShrink": 1,
670
+ "textAlign": "center",
671
+ },
672
+ undefined,
673
+ ],
674
+ ]
675
+ }
676
+ themeButtonVariant="filled-primary"
677
+ themeIntent="body"
678
+ themeLevel="h5"
679
+ themeTypeface="neutral"
680
+ >
681
+ Skip
682
+ </Text>
683
+ </View>
684
+ <View
685
+ style={
686
+ [
687
+ {
688
+ "alignItems": "center",
689
+ "flexDirection": "row",
690
+ },
691
+ [
692
+ {
693
+ "paddingVertical": 8,
694
+ },
695
+ undefined,
696
+ ],
697
+ ]
698
+ }
699
+ >
700
+ <View
701
+ accessibilityState={
702
+ {
703
+ "selected": true,
704
+ }
705
+ }
706
+ collapsable={false}
707
+ style={
708
+ {
709
+ "backgroundColor": "#401960",
710
+ "borderRadius": 999,
711
+ "height": 8,
712
+ "marginHorizontal": 8,
713
+ "opacity": 1,
714
+ "width": 24,
715
+ }
716
+ }
717
+ testID="page-control-indicator0"
718
+ />
719
+ <View
720
+ accessibilityState={
721
+ {
722
+ "selected": false,
723
+ }
724
+ }
725
+ collapsable={false}
726
+ style={
727
+ {
728
+ "backgroundColor": "#401960",
729
+ "borderRadius": 999,
730
+ "height": 8,
731
+ "marginHorizontal": 8,
732
+ "opacity": 0.5,
733
+ "width": 8,
734
+ }
735
+ }
736
+ testID="page-control-indicator1"
737
+ />
738
+ <View
739
+ accessibilityState={
740
+ {
741
+ "selected": false,
742
+ }
743
+ }
744
+ collapsable={false}
745
+ style={
746
+ {
747
+ "backgroundColor": "#401960",
748
+ "borderRadius": 999,
749
+ "height": 8,
750
+ "marginHorizontal": 8,
751
+ "opacity": 0.5,
752
+ "width": 8,
753
+ }
754
+ }
755
+ testID="page-control-indicator2"
756
+ />
757
+ <View
758
+ accessibilityState={
759
+ {
760
+ "selected": false,
761
+ }
762
+ }
763
+ collapsable={false}
764
+ style={
765
+ {
766
+ "backgroundColor": "#401960",
767
+ "borderRadius": 999,
768
+ "height": 8,
769
+ "marginHorizontal": 8,
770
+ "opacity": 0.5,
771
+ "width": 8,
772
+ }
773
+ }
774
+ testID="page-control-indicator3"
775
+ />
776
+ </View>
777
+ </View>
778
+ </View>
779
+ </View>
780
+ <View
781
+ pointerEvents="box-none"
782
+ position="bottom"
783
+ style={
784
+ [
785
+ {
786
+ "bottom": 0,
787
+ "elevation": 9999,
788
+ "flexDirection": "column-reverse",
789
+ "left": 0,
790
+ "paddingHorizontal": 24,
791
+ "paddingVertical": 16,
792
+ "position": "absolute",
793
+ "right": 0,
794
+ "top": 0,
795
+ },
796
+ undefined,
797
+ ]
798
+ }
799
+ />
800
+ </View>
801
+ `;
802
+
803
+ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
4
804
  <View
5
805
  style={
6
806
  {
@@ -780,6 +1580,7 @@ exports[`Carousel renders correctly 1`] = `
780
1580
  </View>
781
1581
  <View
782
1582
  pointerEvents="box-none"
1583
+ position="bottom"
783
1584
  style={
784
1585
  [
785
1586
  {
@@ -1580,6 +2381,7 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1580
2381
  </View>
1581
2382
  <View
1582
2383
  pointerEvents="box-none"
2384
+ position="bottom"
1583
2385
  style={
1584
2386
  [
1585
2387
  {