@hero-design/rn 8.42.4 → 8.43.1

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 (202) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +20 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +2174 -1988
  5. package/jest-setup.ts +2 -0
  6. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  7. package/lib/index.js +2173 -1986
  8. package/package.json +20 -20
  9. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +68 -0
  10. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +102 -0
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +85 -0
  12. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +34 -0
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +12 -0
  14. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +108 -0
  15. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +17 -0
  16. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +36 -0
  17. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +36 -0
  18. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +247 -211
  19. package/src/components/BottomSheet/index.tsx +1 -1
  20. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
  21. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +0 -20
  22. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -70
  23. package/src/components/Button/StyledButton.tsx +4 -0
  24. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +34 -0
  25. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +144 -42
  26. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +17 -0
  27. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +90 -0
  28. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +85 -0
  29. package/src/components/Carousel/CardCarousel.tsx +10 -7
  30. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -0
  31. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +39 -0
  32. package/src/components/Carousel/__tests__/index.spec.tsx +8 -10
  33. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +68 -0
  34. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +72 -0
  35. package/src/components/Chip/StyledChip.tsx +121 -0
  36. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1147 -0
  37. package/src/components/Chip/__tests__/index.spec.tsx +136 -0
  38. package/src/components/Chip/index.tsx +82 -0
  39. package/src/components/Collapse/index.tsx +1 -1
  40. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +72 -0
  41. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +48 -0
  42. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +12 -0
  43. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +12 -0
  44. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +470 -399
  45. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
  46. package/src/components/Error/__tests__/index.spec.tsx +9 -6
  47. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +81 -0
  48. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +16 -0
  49. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +24 -0
  50. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  51. package/src/components/Icon/IconList.ts +1 -0
  52. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +16 -0
  53. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +60 -0
  54. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +32 -0
  55. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +32 -0
  56. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +16 -0
  57. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +24 -0
  58. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +180 -0
  59. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +8 -10
  60. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +119 -0
  61. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +1 -0
  62. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +18 -0
  63. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +8 -0
  64. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +124 -0
  65. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +804 -455
  66. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -10
  67. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +8 -0
  68. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +124 -0
  69. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +790 -532
  70. package/src/components/Success/__tests__/index.spec.tsx +9 -6
  71. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +51 -0
  72. package/src/components/Swipeable/index.tsx +3 -3
  73. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +9 -0
  74. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
  75. package/src/components/Tabs/__tests__/SceneView.spec.tsx +19 -23
  76. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +171 -0
  77. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +40 -0
  78. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +159 -0
  79. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +24 -0
  80. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +482 -399
  81. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +102 -0
  82. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +72 -0
  83. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +96 -0
  84. package/src/index.ts +2 -0
  85. package/src/testHelpers/renderWithTheme.tsx +1 -7
  86. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +38 -1
  87. package/src/theme/components/button.ts +0 -1
  88. package/src/theme/components/chip.ts +47 -0
  89. package/src/theme/getTheme.ts +3 -0
  90. package/tsconfig.json +4 -1
  91. package/types/components/Accordion/AccordionItem.d.ts +2 -1
  92. package/types/components/Accordion/index.d.ts +1 -1
  93. package/types/components/Attachment/index.d.ts +2 -1
  94. package/types/components/Avatar/Avatar.d.ts +2 -1
  95. package/types/components/Avatar/AvatarStack/index.d.ts +2 -2
  96. package/types/components/Avatar/index.d.ts +3 -2
  97. package/types/components/Badge/StyledBadge.d.ts +0 -4
  98. package/types/components/BottomSheet/Footer.d.ts +2 -1
  99. package/types/components/BottomSheet/Header.d.ts +2 -1
  100. package/types/components/BottomSheet/ScrollView.d.ts +1 -0
  101. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -4
  102. package/types/components/Box/index.d.ts +2 -1
  103. package/types/components/Button/IconButton.d.ts +2 -1
  104. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -3
  105. package/types/components/Button/LoadingIndicator/index.d.ts +2 -1
  106. package/types/components/Button/UtilityButton/index.d.ts +2 -1
  107. package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
  108. package/types/components/Calendar/StyledCalendar.d.ts +1 -1
  109. package/types/components/Calendar/index.d.ts +2 -1
  110. package/types/components/Carousel/CardCarousel.d.ts +1 -1
  111. package/types/components/Carousel/CarouselItem.d.ts +2 -1
  112. package/types/components/Carousel/index.d.ts +2 -2
  113. package/types/components/Checkbox/index.d.ts +2 -1
  114. package/types/components/Chip/StyledChip.d.ts +31 -0
  115. package/types/components/Chip/index.d.ts +27 -0
  116. package/types/components/Collapse/StyledCollapse.d.ts +0 -2
  117. package/types/components/Collapse/index.d.ts +2 -1
  118. package/types/components/ContentNavigator/index.d.ts +2 -1
  119. package/types/components/DatePicker/DatePickerAndroid.d.ts +2 -1
  120. package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -1
  121. package/types/components/DatePicker/DatePickerIOS.d.ts +2 -1
  122. package/types/components/DatePicker/index.d.ts +2 -1
  123. package/types/components/Divider/index.d.ts +2 -1
  124. package/types/components/Drawer/StyledDrawer.d.ts +0 -6
  125. package/types/components/Error/StyledError.d.ts +0 -4
  126. package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -1
  127. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -4
  128. package/types/components/FAB/AnimatedFABIcon.d.ts +2 -1
  129. package/types/components/HeroDesignProvider/index.d.ts +2 -1
  130. package/types/components/Icon/AnimatedIcon.d.ts +2 -1
  131. package/types/components/Icon/IconList.d.ts +1 -1
  132. package/types/components/Icon/index.d.ts +3 -2
  133. package/types/components/Icon/utils.d.ts +1 -1
  134. package/types/components/Image/index.d.ts +1 -0
  135. package/types/components/Modal/index.d.ts +2 -2
  136. package/types/components/PageControl/StyledPageControl.d.ts +0 -2
  137. package/types/components/PageControl/index.d.ts +2 -1
  138. package/types/components/PinInput/PinCell.d.ts +2 -1
  139. package/types/components/Portal/PortalHost.d.ts +1 -1
  140. package/types/components/Portal/PortalProvider.d.ts +1 -1
  141. package/types/components/Portal/index.d.ts +2 -2
  142. package/types/components/Progress/ProgressBar.d.ts +1 -0
  143. package/types/components/Progress/StyledProgressBar.d.ts +0 -2
  144. package/types/components/Progress/index.d.ts +1 -0
  145. package/types/components/Rate/StyledRate.d.ts +0 -2
  146. package/types/components/Rate/index.d.ts +2 -1
  147. package/types/components/RefreshControl/index.d.ts +2 -1
  148. package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -1
  149. package/types/components/RichTextEditor/MentionList.d.ts +2 -1
  150. package/types/components/RichTextEditor/index.d.ts +2 -2
  151. package/types/components/Select/BaseOptionList.d.ts +1 -1
  152. package/types/components/Select/Footer.d.ts +2 -1
  153. package/types/components/Select/MultiSelect/Option.d.ts +2 -1
  154. package/types/components/Select/MultiSelect/OptionList.d.ts +2 -1
  155. package/types/components/Select/MultiSelect/index.d.ts +1 -1
  156. package/types/components/Select/SingleSelect/Option.d.ts +2 -1
  157. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  158. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
  159. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  160. package/types/components/Select/helpers.d.ts +1 -2
  161. package/types/components/Select/index.d.ts +2 -1
  162. package/types/components/Skeleton/index.d.ts +2 -1
  163. package/types/components/Slider/index.d.ts +2 -1
  164. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  165. package/types/components/Success/StyledSuccess.d.ts +0 -2
  166. package/types/components/Swipeable/SwipeableAction.d.ts +2 -2
  167. package/types/components/Swipeable/index.d.ts +3 -3
  168. package/types/components/Switch/SelectorSwitch/Option.d.ts +2 -1
  169. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -6
  170. package/types/components/Switch/StyledSwitch.d.ts +0 -2
  171. package/types/components/Tabs/ActiveTabIndicator.d.ts +2 -1
  172. package/types/components/Tabs/SceneView.d.ts +1 -1
  173. package/types/components/Tabs/ScrollableTabs.d.ts +2 -1
  174. package/types/components/Tabs/ScrollableTabsHeader.d.ts +2 -1
  175. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -4
  176. package/types/components/Tabs/StyledTabs.d.ts +0 -4
  177. package/types/components/Tabs/TabWithBadge.d.ts +2 -2
  178. package/types/components/Tabs/index.d.ts +2 -1
  179. package/types/components/TextInput/StyledTextInput.d.ts +1 -1
  180. package/types/components/TextInput/index.d.ts +1 -1
  181. package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -1
  182. package/types/components/TimePicker/TimePickerIOS.d.ts +2 -1
  183. package/types/components/TimePicker/index.d.ts +2 -1
  184. package/types/components/Toast/StyledToast.d.ts +0 -2
  185. package/types/components/Toast/Toast.d.ts +1 -0
  186. package/types/components/Toast/ToastProvider.d.ts +2 -1
  187. package/types/components/Toast/index.d.ts +1 -1
  188. package/types/components/Toolbar/ToolbarGroup.d.ts +2 -1
  189. package/types/components/Toolbar/ToolbarItem.d.ts +2 -1
  190. package/types/components/Toolbar/index.d.ts +3 -2
  191. package/types/components/Typography/Body/index.d.ts +2 -1
  192. package/types/components/Typography/Caption/index.d.ts +2 -1
  193. package/types/components/Typography/Label/index.d.ts +2 -1
  194. package/types/components/Typography/Text/index.d.ts +2 -1
  195. package/types/components/Typography/Title/index.d.ts +2 -1
  196. package/types/index.d.ts +2 -1
  197. package/types/testHelpers/renderWithTheme.d.ts +1 -0
  198. package/types/theme/ThemeSwitcher.d.ts +2 -2
  199. package/types/theme/components/button.d.ts +0 -1
  200. package/types/theme/components/chip.d.ts +40 -0
  201. package/types/theme/getTheme.d.ts +2 -0
  202. package/.turbo/turbo-publish:npm.log +0 -0
@@ -4,7 +4,19 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
4
4
  <View
5
5
  accessibilityState={
6
6
  {
7
+ "busy": undefined,
8
+ "checked": undefined,
7
9
  "disabled": false,
10
+ "expanded": undefined,
11
+ "selected": undefined,
12
+ }
13
+ }
14
+ accessibilityValue={
15
+ {
16
+ "max": undefined,
17
+ "min": undefined,
18
+ "now": undefined,
19
+ "text": undefined,
8
20
  }
9
21
  }
10
22
  accessible={true}
@@ -229,40 +241,65 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
229
241
  `;
230
242
 
231
243
  exports[`TimePickerIOS renders correctly 1`] = `
232
- [
233
- <View
234
- accessibilityState={
235
- {
236
- "disabled": false,
237
- }
244
+ <View
245
+ accessibilityState={
246
+ {
247
+ "busy": undefined,
248
+ "checked": undefined,
249
+ "disabled": false,
250
+ "expanded": undefined,
251
+ "selected": undefined,
238
252
  }
239
- accessible={true}
240
- collapsable={false}
241
- focusable={true}
242
- onClick={[Function]}
243
- onResponderGrant={[Function]}
244
- onResponderMove={[Function]}
245
- onResponderRelease={[Function]}
246
- onResponderTerminate={[Function]}
247
- onResponderTerminationRequest={[Function]}
248
- onStartShouldSetResponder={[Function]}
249
- style={
250
- {
251
- "opacity": 1,
252
- }
253
+ }
254
+ accessibilityValue={
255
+ {
256
+ "max": undefined,
257
+ "min": undefined,
258
+ "now": undefined,
259
+ "text": undefined,
253
260
  }
261
+ }
262
+ accessible={true}
263
+ collapsable={false}
264
+ focusable={true}
265
+ onClick={[Function]}
266
+ onResponderGrant={[Function]}
267
+ onResponderMove={[Function]}
268
+ onResponderRelease={[Function]}
269
+ onResponderTerminate={[Function]}
270
+ onResponderTerminationRequest={[Function]}
271
+ onStartShouldSetResponder={[Function]}
272
+ style={
273
+ {
274
+ "opacity": 1,
275
+ }
276
+ }
277
+ >
278
+ <View
279
+ pointerEvents="none"
280
+ testID="timePickerInputIOS"
254
281
  >
255
282
  <View
256
- pointerEvents="none"
257
- testID="timePickerInputIOS"
283
+ pointerEvents="auto"
284
+ style={
285
+ [
286
+ {
287
+ "marginTop": 8,
288
+ "width": "100%",
289
+ },
290
+ undefined,
291
+ ]
292
+ }
258
293
  >
259
294
  <View
260
- pointerEvents="auto"
261
295
  style={
262
296
  [
263
297
  {
264
- "marginTop": 8,
265
- "width": "100%",
298
+ "alignItems": "center",
299
+ "backgroundColor": "#ffffff",
300
+ "borderRadius": 8,
301
+ "flexDirection": "row",
302
+ "padding": 16,
266
303
  },
267
304
  undefined,
268
305
  ]
@@ -272,444 +309,274 @@ exports[`TimePickerIOS renders correctly 1`] = `
272
309
  style={
273
310
  [
274
311
  {
275
- "alignItems": "center",
276
- "backgroundColor": "#ffffff",
312
+ "borderColor": "#001f23",
277
313
  "borderRadius": 8,
314
+ "borderWidth": 1,
315
+ "bottom": 0,
316
+ "left": 0,
317
+ "position": "absolute",
318
+ "right": 0,
319
+ "top": 0,
320
+ },
321
+ [
322
+ {
323
+ "backgroundColor": "#ffffff",
324
+ },
325
+ undefined,
326
+ ],
327
+ ]
328
+ }
329
+ testID="text-input-border"
330
+ themeFocused={false}
331
+ themeState="filled"
332
+ />
333
+ <View
334
+ pointerEvents="none"
335
+ style={
336
+ [
337
+ {
338
+ "backgroundColor": "#ffffff",
278
339
  "flexDirection": "row",
279
- "padding": 16,
340
+ "left": 16,
341
+ "paddingHorizontal": 4,
342
+ "position": "absolute",
343
+ "top": -4,
344
+ "zIndex": 1,
345
+ },
346
+ {
347
+ "backgroundColor": "#ffffff",
280
348
  },
281
- undefined,
282
349
  ]
283
350
  }
351
+ testID="label-container"
284
352
  >
285
- <View
353
+ <Text
354
+ allowFontScaling={false}
286
355
  style={
287
356
  [
288
357
  {
289
- "borderColor": "#001f23",
290
- "borderRadius": 8,
291
- "borderWidth": 1,
292
- "bottom": 0,
293
- "left": 0,
294
- "position": "absolute",
295
- "right": 0,
296
- "top": 0,
358
+ "color": "#001f23",
359
+ "fontFamily": "BeVietnamPro-Regular",
360
+ "fontSize": 12,
361
+ "letterSpacing": 0.48,
362
+ "lineHeight": 16,
297
363
  },
298
364
  [
365
+ {
366
+ "color": "#001f23",
367
+ "lineHeight": 12,
368
+ },
299
369
  {
300
370
  "backgroundColor": "#ffffff",
301
371
  },
302
- undefined,
303
372
  ],
304
373
  ]
305
374
  }
306
- testID="text-input-border"
307
- themeFocused={false}
375
+ testID="input-label"
376
+ themeFontWeight="regular"
377
+ themeIntent="body"
308
378
  themeState="filled"
309
- />
310
- <View
311
- pointerEvents="none"
312
- style={
313
- [
314
- {
315
- "backgroundColor": "#ffffff",
316
- "flexDirection": "row",
317
- "left": 16,
318
- "paddingHorizontal": 4,
319
- "position": "absolute",
320
- "top": -4,
321
- "zIndex": 1,
322
- },
323
- {
324
- "backgroundColor": "#ffffff",
325
- },
326
- ]
327
- }
328
- testID="label-container"
329
379
  >
330
- <Text
331
- allowFontScaling={false}
332
- style={
333
- [
334
- {
335
- "color": "#001f23",
336
- "fontFamily": "BeVietnamPro-Regular",
337
- "fontSize": 12,
338
- "letterSpacing": 0.48,
339
- "lineHeight": 16,
340
- },
341
- [
342
- {
343
- "color": "#001f23",
344
- "lineHeight": 12,
345
- },
346
- {
347
- "backgroundColor": "#ffffff",
348
- },
349
- ],
350
- ]
380
+ Break time
381
+ </Text>
382
+ </View>
383
+ <View
384
+ style={
385
+ [
386
+ {
387
+ "alignItems": "center",
388
+ "alignSelf": "stretch",
389
+ "flexDirection": "row",
390
+ "flexGrow": 2,
391
+ "flexShrink": 1,
392
+ },
393
+ undefined,
394
+ ]
395
+ }
396
+ >
397
+ <TextInput
398
+ accessibilityState={
399
+ {
400
+ "disabled": false,
351
401
  }
352
- testID="input-label"
353
- themeFontWeight="regular"
354
- themeIntent="body"
355
- themeState="filled"
356
- >
357
- Break time
358
- </Text>
359
- </View>
360
- <View
402
+ }
403
+ allowFontScaling={false}
404
+ editable={true}
405
+ onBlur={[Function]}
406
+ onChangeText={[Function]}
407
+ onFocus={[Function]}
408
+ placeholder=" "
361
409
  style={
362
410
  [
363
411
  {
364
- "alignItems": "center",
365
412
  "alignSelf": "stretch",
366
- "flexDirection": "row",
367
413
  "flexGrow": 2,
368
- "flexShrink": 1,
414
+ "fontFamily": "BeVietnamPro-Regular",
415
+ "fontSize": 16,
416
+ "height": undefined,
417
+ "marginHorizontal": 8,
418
+ "maxHeight": 144,
419
+ "paddingVertical": 0,
420
+ "textAlignVertical": "center",
369
421
  },
370
- undefined,
371
- ]
372
- }
373
- >
374
- <TextInput
375
- accessibilityState={
376
- {
377
- "disabled": false,
378
- }
379
- }
380
- allowFontScaling={false}
381
- editable={true}
382
- onBlur={[Function]}
383
- onChangeText={[Function]}
384
- onFocus={[Function]}
385
- placeholder=" "
386
- style={
387
- [
388
- {
389
- "alignSelf": "stretch",
390
- "flexGrow": 2,
391
- "fontFamily": "BeVietnamPro-Regular",
392
- "fontSize": 16,
393
- "height": undefined,
394
- "marginHorizontal": 8,
395
- "maxHeight": 144,
396
- "paddingVertical": 0,
397
- "textAlignVertical": "center",
398
- },
399
- {
400
- "backgroundColor": "#ffffff",
401
- "color": "#001f23",
402
- },
403
- ]
404
- }
405
- testID="text-input"
406
- themeVariant="text"
407
- value="03:24 AM"
408
- />
409
- </View>
410
- <HeroIcon
411
- name="clock-3"
412
- style={
413
- [
414
422
  {
423
+ "backgroundColor": "#ffffff",
415
424
  "color": "#001f23",
416
- "fontSize": 24,
417
425
  },
418
- undefined,
419
426
  ]
420
427
  }
421
- testID="input-suffix"
422
- themeIntent="text"
423
- themeSize="medium"
428
+ testID="text-input"
429
+ themeVariant="text"
430
+ value="03:24 AM"
424
431
  />
425
432
  </View>
433
+ <HeroIcon
434
+ name="clock-3"
435
+ style={
436
+ [
437
+ {
438
+ "color": "#001f23",
439
+ "fontSize": 24,
440
+ },
441
+ undefined,
442
+ ]
443
+ }
444
+ testID="input-suffix"
445
+ themeIntent="text"
446
+ themeSize="medium"
447
+ />
448
+ </View>
449
+ <View
450
+ style={
451
+ [
452
+ {
453
+ "minHeight": 16,
454
+ "paddingLeft": 16,
455
+ "paddingTop": 2,
456
+ },
457
+ undefined,
458
+ ]
459
+ }
460
+ >
426
461
  <View
427
462
  style={
428
463
  [
429
464
  {
430
- "minHeight": 16,
431
- "paddingLeft": 16,
432
- "paddingTop": 2,
465
+ "flexDirection": "row",
466
+ "justifyContent": "space-between",
433
467
  },
434
468
  undefined,
435
469
  ]
436
470
  }
437
- >
438
- <View
439
- style={
440
- [
441
- {
442
- "flexDirection": "row",
443
- "justifyContent": "space-between",
444
- },
445
- undefined,
446
- ]
447
- }
448
- />
449
- </View>
471
+ />
450
472
  </View>
451
473
  </View>
452
- </View>,
453
- <View
454
- collapsable={false}
455
- style={
456
- {
457
- "backgroundColor": "transparent",
458
- "bottom": 0,
459
- "left": 0,
460
- "opacity": 0.4,
461
- "position": "absolute",
462
- "right": 0,
463
- "top": 0,
464
- }
465
- }
466
- />,
467
- <View
468
- collapsable={false}
474
+ </View>
475
+ <RCTModalHostView
476
+ animationType="none"
477
+ hardwareAccelerated={false}
478
+ identifier={0}
479
+ onDismiss={[Function]}
480
+ onRequestClose={[Function]}
481
+ onStartShouldSetResponder={[Function]}
482
+ presentationStyle="overFullScreen"
469
483
  style={
470
484
  {
471
- "bottom": 0,
472
- "left": 0,
473
- "opacity": 1,
474
485
  "position": "absolute",
475
- "right": 0,
476
- "top": 0,
477
- "transform": [
478
- {
479
- "translateY": 0,
480
- },
481
- ],
482
486
  }
483
487
  }
488
+ transparent={true}
489
+ visible={true}
484
490
  >
485
491
  <View
486
- pointerEvents="box-none"
492
+ collapsable={false}
487
493
  style={
488
494
  [
489
495
  {
490
- "bottom": 0,
491
- "flexDirection": "column-reverse",
496
+ "flex": 1,
492
497
  "left": 0,
493
- "position": "absolute",
494
- "right": 0,
495
498
  "top": 0,
496
499
  },
497
- undefined,
500
+ {
501
+ "backgroundColor": "transparent",
502
+ },
498
503
  ]
499
504
  }
500
505
  >
501
506
  <View
502
- onLayout={[Function]}
507
+ pointerEvents="box-none"
503
508
  style={
504
- [
505
- [
506
- {
507
- "flex": 1,
508
- "flexDirection": "column-reverse",
509
- },
510
- undefined,
511
- ],
512
- {
513
- "paddingBottom": 0,
514
- },
515
- ]
509
+ {
510
+ "flex": 1,
511
+ }
516
512
  }
517
513
  >
518
514
  <View
519
- accessible={true}
520
- collapsable={false}
521
- focusable={true}
522
- onBlur={[Function]}
523
- onClick={[Function]}
524
- onFocus={[Function]}
525
- onResponderGrant={[Function]}
526
- onResponderMove={[Function]}
527
- onResponderRelease={[Function]}
528
- onResponderTerminate={[Function]}
529
- onResponderTerminationRequest={[Function]}
530
- onStartShouldSetResponder={[Function]}
531
- style={
532
- {
533
- "backgroundColor": "#000000",
534
- "bottom": 0,
535
- "left": 0,
536
- "opacity": 0.48,
537
- "position": "absolute",
538
- "right": 0,
539
- "top": 0,
540
- }
541
- }
542
- />
543
- <RCTSafeAreaView
544
- collapsable={false}
545
- emulateUnlessSupported={true}
515
+ collapsable={true}
516
+ pointerEvents="box-none"
546
517
  style={
547
518
  {
548
- "backgroundColor": "#ffffff",
549
- "borderTopLeftRadius": 16,
550
- "borderTopRightRadius": 16,
551
- "elevation": 10,
552
- "maxHeight": "94%",
553
- "shadowColor": "#001f23",
554
- "shadowOffset": {
555
- "height": 3,
556
- "width": 0,
557
- },
558
- "shadowOpacity": 0.4,
559
- "shadowRadius": 16,
560
- "transform": [
561
- {
562
- "scaleY": 1,
563
- },
564
- {
565
- "translateY": 0,
566
- },
567
- ],
568
- "width": "100%",
519
+ "flex": 1,
569
520
  }
570
521
  }
571
522
  >
572
523
  <View
524
+ pointerEvents="box-none"
573
525
  style={
574
526
  [
575
527
  {
576
- "flexDirection": "row",
577
- "paddingHorizontal": 16,
578
- "paddingVertical": 8,
528
+ "bottom": 0,
529
+ "flexDirection": "column-reverse",
530
+ "left": 0,
531
+ "position": "absolute",
532
+ "right": 0,
533
+ "top": 0,
579
534
  },
580
535
  undefined,
581
536
  ]
582
537
  }
583
538
  >
584
539
  <View
540
+ onLayout={[Function]}
585
541
  style={
586
542
  [
587
- {
588
- "flex": 1,
589
- "justifyContent": "center",
590
- },
591
- undefined,
592
- ]
593
- }
594
- >
595
- <Text
596
- allowFontScaling={false}
597
- style={
598
543
  [
599
544
  {
600
- "color": "#001f23",
601
- "fontFamily": "BeVietnamPro-SemiBold",
602
- "fontSize": 16,
603
- "letterSpacing": 0.24,
604
- "lineHeight": 24,
545
+ "flex": 1,
546
+ "flexDirection": "column-reverse",
605
547
  },
606
548
  undefined,
607
- ]
608
- }
609
- themeIntent="body"
610
- themeTypeface="neutral"
611
- themeVariant="regular-bold"
612
- >
613
- Break time
614
- </Text>
615
- </View>
616
- <View
617
- style={
618
- [
549
+ ],
619
550
  {
620
- "alignItems": "center",
621
- "height": 48,
622
- "justifyContent": "center",
623
- "marginLeft": 12,
624
- "width": 48,
551
+ "paddingBottom": 0,
625
552
  },
626
- undefined,
627
553
  ]
628
554
  }
629
555
  >
630
556
  <View
631
- accessible={true}
632
- collapsable={false}
633
- focusable={true}
634
- onClick={[Function]}
635
- onResponderGrant={[Function]}
636
- onResponderMove={[Function]}
637
- onResponderRelease={[Function]}
638
- onResponderTerminate={[Function]}
639
- onResponderTerminationRequest={[Function]}
640
- onStartShouldSetResponder={[Function]}
641
- style={
557
+ accessibilityState={
642
558
  {
643
- "opacity": 1,
559
+ "busy": undefined,
560
+ "checked": undefined,
561
+ "disabled": undefined,
562
+ "expanded": undefined,
563
+ "selected": undefined,
644
564
  }
645
565
  }
646
- testID="bottom-sheet-close-icon"
647
- >
648
- <HeroIcon
649
- name="cancel"
650
- style={
651
- [
652
- {
653
- "color": "#001f23",
654
- "fontSize": 16,
655
- },
656
- undefined,
657
- ]
658
- }
659
- themeIntent="text"
660
- themeSize="xsmall"
661
- />
662
- </View>
663
- </View>
664
- </View>
665
- <View
666
- style={
667
- [
668
- {
669
- "height": 176,
670
- },
671
- undefined,
672
- ]
673
- }
674
- >
675
- <Picker
676
- display="spinner"
677
- mode="time"
678
- onChange={[Function]}
679
- style={
680
- {
681
- "flex": 1,
682
- }
683
- }
684
- testID="timePickerIOS"
685
- textColor="#001f23"
686
- value={1995-12-17T03:24:00.000Z}
687
- />
688
- </View>
689
- <View>
690
- <View
691
- style={
692
- [
566
+ accessibilityValue={
693
567
  {
694
- "alignItems": "center",
695
- "flexDirection": "row",
696
- "justifyContent": "flex-end",
697
- "paddingHorizontal": 12,
698
- "paddingVertical": 2,
699
- },
700
- undefined,
701
- ]
702
- }
703
- >
704
- <View
705
- accessibilityState={
706
- {
707
- "disabled": false,
568
+ "max": undefined,
569
+ "min": undefined,
570
+ "now": undefined,
571
+ "text": undefined,
708
572
  }
709
573
  }
710
574
  accessible={true}
575
+ collapsable={false}
711
576
  focusable={true}
577
+ onBlur={[Function]}
712
578
  onClick={[Function]}
579
+ onFocus={[Function]}
713
580
  onResponderGrant={[Function]}
714
581
  onResponderMove={[Function]}
715
582
  onResponderRelease={[Function]}
@@ -717,58 +584,274 @@ exports[`TimePickerIOS renders correctly 1`] = `
717
584
  onResponderTerminationRequest={[Function]}
718
585
  onStartShouldSetResponder={[Function]}
719
586
  style={
720
- [
721
- {
722
- "alignItems": "center",
723
- "backgroundColor": "transparent",
724
- "borderRadius": 4,
725
- "borderWidth": 0,
726
- "flexDirection": "row",
727
- "justifyContent": "center",
728
- "padding": 12,
587
+ {
588
+ "backgroundColor": "#000000",
589
+ "bottom": 0,
590
+ "left": 0,
591
+ "opacity": 0.48,
592
+ "position": "absolute",
593
+ "right": 0,
594
+ "top": 0,
595
+ }
596
+ }
597
+ />
598
+ <RCTSafeAreaView
599
+ collapsable={false}
600
+ style={
601
+ {
602
+ "backgroundColor": "#ffffff",
603
+ "borderTopLeftRadius": 16,
604
+ "borderTopRightRadius": 16,
605
+ "elevation": 10,
606
+ "maxHeight": "94%",
607
+ "shadowColor": "#001f23",
608
+ "shadowOffset": {
609
+ "height": 3,
610
+ "width": 0,
729
611
  },
730
- undefined,
731
- ]
612
+ "shadowOpacity": 0.4,
613
+ "shadowRadius": 16,
614
+ "transform": [
615
+ {
616
+ "scaleY": 1,
617
+ },
618
+ {
619
+ "translateY": 0,
620
+ },
621
+ ],
622
+ "width": "100%",
623
+ }
732
624
  }
733
625
  >
734
- <Text
735
- allowFontScaling={false}
736
- disabled={false}
737
- ellipsizeMode="tail"
738
- numberOfLines={1}
626
+ <View
739
627
  style={
740
628
  [
741
629
  {
742
- "color": "#001f23",
743
- "fontFamily": "BeVietnamPro-SemiBold",
744
- "fontSize": 16,
745
- "letterSpacing": 0.24,
746
- "lineHeight": 24,
630
+ "flexDirection": "row",
631
+ "paddingHorizontal": 16,
632
+ "paddingVertical": 8,
747
633
  },
634
+ undefined,
635
+ ]
636
+ }
637
+ >
638
+ <View
639
+ style={
640
+ [
641
+ {
642
+ "flex": 1,
643
+ "justifyContent": "center",
644
+ },
645
+ undefined,
646
+ ]
647
+ }
648
+ >
649
+ <Text
650
+ allowFontScaling={false}
651
+ style={
652
+ [
653
+ {
654
+ "color": "#001f23",
655
+ "fontFamily": "BeVietnamPro-SemiBold",
656
+ "fontSize": 16,
657
+ "letterSpacing": 0.24,
658
+ "lineHeight": 24,
659
+ },
660
+ undefined,
661
+ ]
662
+ }
663
+ themeIntent="body"
664
+ themeTypeface="neutral"
665
+ themeVariant="regular-bold"
666
+ >
667
+ Break time
668
+ </Text>
669
+ </View>
670
+ <View
671
+ style={
748
672
  [
749
673
  {
750
- "color": "#401960",
751
- "flexShrink": 1,
752
- "lineHeight": 22,
753
- "textAlign": "center",
674
+ "alignItems": "center",
675
+ "height": 48,
676
+ "justifyContent": "center",
677
+ "marginLeft": 12,
678
+ "width": 48,
754
679
  },
755
680
  undefined,
756
- ],
681
+ ]
682
+ }
683
+ >
684
+ <View
685
+ accessibilityState={
686
+ {
687
+ "busy": undefined,
688
+ "checked": undefined,
689
+ "disabled": undefined,
690
+ "expanded": undefined,
691
+ "selected": undefined,
692
+ }
693
+ }
694
+ accessibilityValue={
695
+ {
696
+ "max": undefined,
697
+ "min": undefined,
698
+ "now": undefined,
699
+ "text": undefined,
700
+ }
701
+ }
702
+ accessible={true}
703
+ collapsable={false}
704
+ focusable={true}
705
+ onClick={[Function]}
706
+ onResponderGrant={[Function]}
707
+ onResponderMove={[Function]}
708
+ onResponderRelease={[Function]}
709
+ onResponderTerminate={[Function]}
710
+ onResponderTerminationRequest={[Function]}
711
+ onStartShouldSetResponder={[Function]}
712
+ style={
713
+ {
714
+ "opacity": 1,
715
+ }
716
+ }
717
+ testID="bottom-sheet-close-icon"
718
+ >
719
+ <HeroIcon
720
+ name="cancel"
721
+ style={
722
+ [
723
+ {
724
+ "color": "#001f23",
725
+ "fontSize": 16,
726
+ },
727
+ undefined,
728
+ ]
729
+ }
730
+ themeIntent="text"
731
+ themeSize="xsmall"
732
+ />
733
+ </View>
734
+ </View>
735
+ </View>
736
+ <View
737
+ style={
738
+ [
739
+ {
740
+ "height": 176,
741
+ },
742
+ undefined,
757
743
  ]
758
744
  }
759
- themeButtonVariant="text-primary"
760
- themeIntent="body"
761
- themeTypeface="neutral"
762
- themeVariant="regular-bold"
763
745
  >
764
- Confirm
765
- </Text>
766
- </View>
746
+ <Picker
747
+ display="spinner"
748
+ mode="time"
749
+ onChange={[Function]}
750
+ style={
751
+ {
752
+ "flex": 1,
753
+ }
754
+ }
755
+ testID="timePickerIOS"
756
+ textColor="#001f23"
757
+ value={1995-12-17T03:24:00.000Z}
758
+ />
759
+ </View>
760
+ <View>
761
+ <View
762
+ style={
763
+ [
764
+ {
765
+ "alignItems": "center",
766
+ "flexDirection": "row",
767
+ "justifyContent": "flex-end",
768
+ "paddingHorizontal": 12,
769
+ "paddingVertical": 2,
770
+ },
771
+ undefined,
772
+ ]
773
+ }
774
+ >
775
+ <View
776
+ accessibilityState={
777
+ {
778
+ "disabled": false,
779
+ }
780
+ }
781
+ accessibilityValue={
782
+ {
783
+ "max": undefined,
784
+ "min": undefined,
785
+ "now": undefined,
786
+ "text": undefined,
787
+ }
788
+ }
789
+ accessible={true}
790
+ focusable={true}
791
+ onClick={[Function]}
792
+ onResponderGrant={[Function]}
793
+ onResponderMove={[Function]}
794
+ onResponderRelease={[Function]}
795
+ onResponderTerminate={[Function]}
796
+ onResponderTerminationRequest={[Function]}
797
+ onStartShouldSetResponder={[Function]}
798
+ style={
799
+ [
800
+ {
801
+ "alignItems": "center",
802
+ "backgroundColor": "transparent",
803
+ "borderRadius": 4,
804
+ "borderWidth": 0,
805
+ "flexDirection": "row",
806
+ "height": 60,
807
+ "justifyContent": "center",
808
+ "padding": 12,
809
+ },
810
+ undefined,
811
+ ]
812
+ }
813
+ >
814
+ <Text
815
+ allowFontScaling={false}
816
+ disabled={false}
817
+ ellipsizeMode="tail"
818
+ numberOfLines={1}
819
+ style={
820
+ [
821
+ {
822
+ "color": "#001f23",
823
+ "fontFamily": "BeVietnamPro-SemiBold",
824
+ "fontSize": 16,
825
+ "letterSpacing": 0.24,
826
+ "lineHeight": 24,
827
+ },
828
+ [
829
+ {
830
+ "color": "#401960",
831
+ "flexShrink": 1,
832
+ "lineHeight": 22,
833
+ "textAlign": "center",
834
+ },
835
+ undefined,
836
+ ],
837
+ ]
838
+ }
839
+ themeButtonVariant="text-primary"
840
+ themeIntent="body"
841
+ themeTypeface="neutral"
842
+ themeVariant="regular-bold"
843
+ >
844
+ Confirm
845
+ </Text>
846
+ </View>
847
+ </View>
848
+ </View>
849
+ </RCTSafeAreaView>
767
850
  </View>
768
851
  </View>
769
- </RCTSafeAreaView>
852
+ </View>
770
853
  </View>
771
854
  </View>
772
- </View>,
773
- ]
855
+ </RCTModalHostView>
856
+ </View>
774
857
  `;