@hero-design/rn 8.20.0 → 8.22.0-alpha.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 (288) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/.turbo/turbo-build:types.log +2 -0
  3. package/.turbo/turbo-lint.log +146 -0
  4. package/.turbo/turbo-publish:npm.log +9 -0
  5. package/.turbo/turbo-test.log +451 -0
  6. package/.turbo/turbo-type-check.log +2 -0
  7. package/es/index.js +236 -64
  8. package/lib/index.js +236 -64
  9. package/package.json +5 -5
  10. package/src/components/Button/Button.tsx +1 -1
  11. package/src/components/Button/StyledButton.tsx +0 -3
  12. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +0 -10
  13. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +0 -16
  14. package/src/components/Calendar/index.tsx +7 -2
  15. package/src/components/Carousel/StyledCarousel.tsx +12 -5
  16. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +793 -14
  17. package/src/components/Carousel/__tests__/index.spec.tsx +41 -31
  18. package/src/components/Carousel/index.tsx +39 -7
  19. package/src/components/DatePicker/DatePickerAndroid.tsx +1 -1
  20. package/src/components/DatePicker/DatePickerCalendar.tsx +110 -0
  21. package/src/components/DatePicker/DatePickerIOS.tsx +1 -1
  22. package/src/components/DatePicker/__tests__/DatePicker.spec.tsx +27 -8
  23. package/src/components/DatePicker/__tests__/DatePickerCalendar.spec.tsx +61 -0
  24. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +670 -0
  25. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +220 -0
  26. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +0 -1
  27. package/src/components/DatePicker/index.tsx +5 -1
  28. package/src/components/DatePicker/types.ts +7 -1
  29. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  30. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +0 -1
  31. package/src/components/TimePicker/types.ts +1 -1
  32. package/src/components/Toast/Toast.tsx +3 -1
  33. package/src/components/Toast/types.ts +4 -0
  34. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +2 -3
  35. package/src/theme/components/button.ts +0 -5
  36. package/src/theme/components/carousel.ts +3 -0
  37. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  38. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  39. package/types/components/Accordion/index.d.ts +0 -0
  40. package/types/components/Alert/StyledAlert.d.ts +0 -0
  41. package/types/components/Alert/index.d.ts +0 -0
  42. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  43. package/types/components/Attachment/index.d.ts +0 -0
  44. package/types/components/Avatar/Avatar.d.ts +0 -0
  45. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  46. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  47. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  48. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  49. package/types/components/Avatar/index.d.ts +0 -0
  50. package/types/components/Badge/Status.d.ts +0 -0
  51. package/types/components/Badge/StyledBadge.d.ts +0 -0
  52. package/types/components/Badge/index.d.ts +0 -0
  53. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  54. package/types/components/BottomNavigation/index.d.ts +0 -0
  55. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
  56. package/types/components/BottomSheet/Footer.d.ts +0 -0
  57. package/types/components/BottomSheet/Header.d.ts +0 -0
  58. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  59. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  60. package/types/components/BottomSheet/index.d.ts +0 -0
  61. package/types/components/Box/StyledBox.d.ts +0 -0
  62. package/types/components/Box/config.d.ts +0 -0
  63. package/types/components/Box/index.d.ts +0 -0
  64. package/types/components/Box/types.d.ts +0 -0
  65. package/types/components/Button/Button.d.ts +0 -0
  66. package/types/components/Button/IconButton.d.ts +0 -0
  67. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  68. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  69. package/types/components/Button/StyledButton.d.ts +0 -0
  70. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  71. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  72. package/types/components/Button/index.d.ts +0 -0
  73. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  74. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  75. package/types/components/Calendar/helpers.d.ts +0 -0
  76. package/types/components/Calendar/index.d.ts +6 -2
  77. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  78. package/types/components/Card/DataCard/index.d.ts +0 -0
  79. package/types/components/Card/StyledCard.d.ts +0 -0
  80. package/types/components/Card/index.d.ts +0 -0
  81. package/types/components/Carousel/CardCarousel.d.ts +0 -0
  82. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  83. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
  84. package/types/components/Carousel/StyledCarousel.d.ts +7 -1
  85. package/types/components/Carousel/contants.d.ts +0 -0
  86. package/types/components/Carousel/index.d.ts +7 -1
  87. package/types/components/Carousel/types.d.ts +0 -0
  88. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  89. package/types/components/Checkbox/index.d.ts +0 -0
  90. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  91. package/types/components/Collapse/index.d.ts +0 -0
  92. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  93. package/types/components/ContentNavigator/index.d.ts +0 -0
  94. package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
  95. package/types/components/DatePicker/DatePickerCalendar.d.ts +3 -0
  96. package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
  97. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  98. package/types/components/DatePicker/index.d.ts +1 -1
  99. package/types/components/DatePicker/types.d.ts +7 -1
  100. package/types/components/Divider/StyledDivider.d.ts +0 -0
  101. package/types/components/Divider/index.d.ts +0 -0
  102. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  103. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  104. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  105. package/types/components/Drawer/index.d.ts +0 -0
  106. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  107. package/types/components/Empty/index.d.ts +0 -0
  108. package/types/components/Error/StyledError.d.ts +0 -0
  109. package/types/components/Error/index.d.ts +0 -0
  110. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  111. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  112. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  113. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  114. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  115. package/types/components/FAB/FAB.d.ts +0 -0
  116. package/types/components/FAB/StyledFAB.d.ts +0 -0
  117. package/types/components/FAB/index.d.ts +0 -0
  118. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  119. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  120. package/types/components/Icon/IconList.d.ts +0 -0
  121. package/types/components/Icon/index.d.ts +0 -0
  122. package/types/components/Icon/utils.d.ts +0 -0
  123. package/types/components/Image/index.d.ts +0 -0
  124. package/types/components/List/BasicListItem.d.ts +0 -0
  125. package/types/components/List/ListItem.d.ts +0 -0
  126. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  127. package/types/components/List/StyledListItem.d.ts +0 -0
  128. package/types/components/List/index.d.ts +0 -0
  129. package/types/components/PageControl/StyledPageControl.d.ts +0 -0
  130. package/types/components/PageControl/index.d.ts +0 -0
  131. package/types/components/PinInput/PinCell.d.ts +0 -0
  132. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  133. package/types/components/PinInput/index.d.ts +0 -0
  134. package/types/components/Progress/ProgressBar.d.ts +0 -0
  135. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  136. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  137. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  138. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  139. package/types/components/Progress/constants.d.ts +0 -0
  140. package/types/components/Progress/index.d.ts +0 -0
  141. package/types/components/Progress/types.d.ts +0 -0
  142. package/types/components/Radio/Radio.d.ts +0 -0
  143. package/types/components/Radio/RadioGroup.d.ts +0 -0
  144. package/types/components/Radio/StyledRadio.d.ts +0 -0
  145. package/types/components/Radio/index.d.ts +0 -0
  146. package/types/components/Radio/types.d.ts +0 -0
  147. package/types/components/RefreshControl/index.d.ts +0 -0
  148. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  149. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  150. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  151. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  152. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  153. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  154. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  155. package/types/components/RichTextEditor/constants.d.ts +0 -0
  156. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  157. package/types/components/RichTextEditor/index.d.ts +0 -0
  158. package/types/components/RichTextEditor/types.d.ts +0 -0
  159. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  160. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  161. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  162. package/types/components/SectionHeading/index.d.ts +0 -0
  163. package/types/components/Select/BaseOptionList.d.ts +0 -0
  164. package/types/components/Select/Footer.d.ts +0 -0
  165. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  166. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  167. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  168. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  169. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  170. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
  171. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  172. package/types/components/Select/StyledSelect.d.ts +0 -0
  173. package/types/components/Select/helpers.d.ts +0 -0
  174. package/types/components/Select/index.d.ts +0 -0
  175. package/types/components/Select/types.d.ts +0 -0
  176. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
  177. package/types/components/Skeleton/index.d.ts +0 -0
  178. package/types/components/Slider/index.d.ts +0 -0
  179. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  180. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  181. package/types/components/Spinner/index.d.ts +0 -0
  182. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  183. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  184. package/types/components/Swipeable/index.d.ts +0 -0
  185. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  186. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  187. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  188. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  189. package/types/components/Switch/index.d.ts +0 -0
  190. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  191. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  192. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  193. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  194. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  195. package/types/components/Tabs/index.d.ts +0 -0
  196. package/types/components/Tabs/utils.d.ts +0 -0
  197. package/types/components/Tag/StyledTag.d.ts +0 -0
  198. package/types/components/Tag/index.d.ts +0 -0
  199. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  200. package/types/components/TextInput/index.d.ts +0 -0
  201. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  202. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  203. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  204. package/types/components/TimePicker/index.d.ts +0 -0
  205. package/types/components/TimePicker/types.d.ts +1 -1
  206. package/types/components/Toast/StyledToast.d.ts +0 -0
  207. package/types/components/Toast/Toast.d.ts +1 -1
  208. package/types/components/Toast/ToastContainer.d.ts +0 -0
  209. package/types/components/Toast/ToastContext.d.ts +0 -0
  210. package/types/components/Toast/ToastProvider.d.ts +0 -0
  211. package/types/components/Toast/index.d.ts +0 -0
  212. package/types/components/Toast/types.d.ts +4 -0
  213. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  214. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  215. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  216. package/types/components/Toolbar/index.d.ts +0 -0
  217. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  218. package/types/components/Typography/Text/index.d.ts +0 -0
  219. package/types/components/Typography/index.d.ts +0 -0
  220. package/types/index.d.ts +0 -0
  221. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  222. package/types/theme/ThemeProvider.d.ts +0 -0
  223. package/types/theme/ThemeSwitcher.d.ts +0 -0
  224. package/types/theme/components/accordion.d.ts +0 -0
  225. package/types/theme/components/alert.d.ts +0 -0
  226. package/types/theme/components/attachment.d.ts +0 -0
  227. package/types/theme/components/avatar.d.ts +0 -0
  228. package/types/theme/components/badge.d.ts +0 -0
  229. package/types/theme/components/bottomNavigation.d.ts +0 -0
  230. package/types/theme/components/bottomSheet.d.ts +0 -0
  231. package/types/theme/components/button.d.ts +0 -3
  232. package/types/theme/components/calendar.d.ts +0 -0
  233. package/types/theme/components/card.d.ts +0 -0
  234. package/types/theme/components/cardCarousel.d.ts +0 -0
  235. package/types/theme/components/carousel.d.ts +2 -0
  236. package/types/theme/components/checkbox.d.ts +0 -0
  237. package/types/theme/components/contentNavigator.d.ts +0 -0
  238. package/types/theme/components/datePicker.d.ts +0 -0
  239. package/types/theme/components/divider.d.ts +0 -0
  240. package/types/theme/components/drawer.d.ts +0 -0
  241. package/types/theme/components/empty.d.ts +0 -0
  242. package/types/theme/components/error.d.ts +0 -0
  243. package/types/theme/components/fab.d.ts +0 -0
  244. package/types/theme/components/icon.d.ts +0 -0
  245. package/types/theme/components/image.d.ts +0 -0
  246. package/types/theme/components/list.d.ts +0 -0
  247. package/types/theme/components/pageControl.d.ts +0 -0
  248. package/types/theme/components/pinInput.d.ts +0 -0
  249. package/types/theme/components/progress.d.ts +0 -0
  250. package/types/theme/components/radio.d.ts +0 -0
  251. package/types/theme/components/refreshControl.d.ts +0 -0
  252. package/types/theme/components/richTextEditor.d.ts +0 -0
  253. package/types/theme/components/sectionHeading.d.ts +0 -0
  254. package/types/theme/components/select.d.ts +0 -0
  255. package/types/theme/components/skeleton.d.ts +0 -0
  256. package/types/theme/components/slider.d.ts +0 -0
  257. package/types/theme/components/spinner.d.ts +0 -0
  258. package/types/theme/components/swipeable.d.ts +0 -0
  259. package/types/theme/components/switch.d.ts +0 -0
  260. package/types/theme/components/tabs.d.ts +0 -0
  261. package/types/theme/components/tag.d.ts +0 -0
  262. package/types/theme/components/textInput.d.ts +0 -0
  263. package/types/theme/components/timePicker.d.ts +0 -0
  264. package/types/theme/components/toast.d.ts +0 -0
  265. package/types/theme/components/toolbar.d.ts +0 -0
  266. package/types/theme/components/typography.d.ts +0 -0
  267. package/types/theme/getTheme.d.ts +0 -0
  268. package/types/theme/global/borders.d.ts +0 -0
  269. package/types/theme/global/colors/eBens.d.ts +0 -0
  270. package/types/theme/global/colors/global.d.ts +0 -0
  271. package/types/theme/global/colors/globalDark.d.ts +0 -0
  272. package/types/theme/global/colors/jobs.d.ts +0 -0
  273. package/types/theme/global/colors/swag.d.ts +0 -0
  274. package/types/theme/global/colors/swagDark.d.ts +0 -0
  275. package/types/theme/global/colors/types.d.ts +0 -0
  276. package/types/theme/global/colors/wallet.d.ts +0 -0
  277. package/types/theme/global/colors/work.d.ts +0 -0
  278. package/types/theme/global/index.d.ts +0 -0
  279. package/types/theme/global/scale.d.ts +0 -0
  280. package/types/theme/global/sizes.d.ts +0 -0
  281. package/types/theme/global/space.d.ts +0 -0
  282. package/types/theme/global/typography.d.ts +0 -0
  283. package/types/theme/index.d.ts +0 -0
  284. package/types/types.d.ts +0 -0
  285. package/types/utils/functions.d.ts +0 -0
  286. package/types/utils/helpers.d.ts +0 -0
  287. package/types/utils/hooks.d.ts +0 -0
  288. package/types/utils/scale.d.ts +0 -0
@@ -0,0 +1,670 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`DatePicker renders DatePickerAndroid when OS is android 1`] = `
4
+ <View
5
+ accessibilityState={
6
+ Object {
7
+ "disabled": false,
8
+ }
9
+ }
10
+ accessible={true}
11
+ collapsable={false}
12
+ focusable={true}
13
+ onClick={[Function]}
14
+ onResponderGrant={[Function]}
15
+ onResponderMove={[Function]}
16
+ onResponderRelease={[Function]}
17
+ onResponderTerminate={[Function]}
18
+ onResponderTerminationRequest={[Function]}
19
+ onStartShouldSetResponder={[Function]}
20
+ style={
21
+ Object {
22
+ "opacity": 1,
23
+ }
24
+ }
25
+ >
26
+ <View
27
+ pointerEvents="none"
28
+ testID="datePickerInputAndroid"
29
+ >
30
+ <View
31
+ pointerEvents="auto"
32
+ style={
33
+ Array [
34
+ Object {
35
+ "marginTop": 8,
36
+ "width": "100%",
37
+ },
38
+ undefined,
39
+ ]
40
+ }
41
+ >
42
+ <View
43
+ style={
44
+ Array [
45
+ Object {
46
+ "alignItems": "center",
47
+ "backgroundColor": "#ffffff",
48
+ "borderRadius": 8,
49
+ "flexDirection": "row",
50
+ "padding": 16,
51
+ },
52
+ undefined,
53
+ ]
54
+ }
55
+ >
56
+ <View
57
+ style={
58
+ Array [
59
+ Object {
60
+ "borderColor": "#001f23",
61
+ "borderRadius": 8,
62
+ "borderWidth": 1,
63
+ "bottom": 0,
64
+ "left": 0,
65
+ "position": "absolute",
66
+ "right": 0,
67
+ "top": 0,
68
+ },
69
+ Array [
70
+ Object {
71
+ "backgroundColor": "#ffffff",
72
+ },
73
+ undefined,
74
+ ],
75
+ ]
76
+ }
77
+ testID="text-input-border"
78
+ themeFocused={false}
79
+ themeVariant="filled"
80
+ />
81
+ <View
82
+ pointerEvents="none"
83
+ style={
84
+ Array [
85
+ Object {
86
+ "backgroundColor": "#ffffff",
87
+ "flexDirection": "row",
88
+ "left": 16,
89
+ "paddingHorizontal": 4,
90
+ "position": "absolute",
91
+ "top": -10,
92
+ "zIndex": 1,
93
+ },
94
+ Object {
95
+ "backgroundColor": "#ffffff",
96
+ },
97
+ ]
98
+ }
99
+ testID="label-container"
100
+ >
101
+ <Text
102
+ allowFontScaling={false}
103
+ style={
104
+ Array [
105
+ Object {
106
+ "color": "#001f23",
107
+ "fontFamily": "BeVietnamPro-Regular",
108
+ "fontSize": 12,
109
+ "letterSpacing": 0.36,
110
+ "lineHeight": 20,
111
+ },
112
+ Array [
113
+ Object {
114
+ "color": "#001f23",
115
+ },
116
+ Object {
117
+ "backgroundColor": "#ffffff",
118
+ },
119
+ ],
120
+ ]
121
+ }
122
+ testID="input-label"
123
+ themeFontSize="small"
124
+ themeFontWeight="regular"
125
+ themeIntent="body"
126
+ themeTypeface="neutral"
127
+ themeVariant="filled"
128
+ >
129
+ Start date
130
+ </Text>
131
+ </View>
132
+ <View
133
+ style={
134
+ Array [
135
+ Object {
136
+ "alignItems": "center",
137
+ "alignSelf": "stretch",
138
+ "flexDirection": "row",
139
+ "flexGrow": 2,
140
+ "flexShrink": 1,
141
+ },
142
+ undefined,
143
+ ]
144
+ }
145
+ >
146
+ <TextInput
147
+ accessibilityState={
148
+ Object {
149
+ "disabled": false,
150
+ }
151
+ }
152
+ allowFontScaling={false}
153
+ editable={true}
154
+ onBlur={[Function]}
155
+ onChangeText={[Function]}
156
+ onFocus={[Function]}
157
+ placeholder=" "
158
+ style={
159
+ Array [
160
+ Object {
161
+ "alignSelf": "stretch",
162
+ "flexGrow": 2,
163
+ "fontSize": 14,
164
+ "marginHorizontal": 8,
165
+ "paddingVertical": 0,
166
+ "textAlignVertical": "center",
167
+ },
168
+ Object {
169
+ "backgroundColor": "#ffffff",
170
+ "color": "#001f23",
171
+ },
172
+ ]
173
+ }
174
+ testID="text-input"
175
+ value="17/12/1995"
176
+ />
177
+ </View>
178
+ <HeroIcon
179
+ name="calendar-dates-outlined"
180
+ style={
181
+ Array [
182
+ Object {
183
+ "color": "#001f23",
184
+ "fontSize": 16,
185
+ },
186
+ undefined,
187
+ ]
188
+ }
189
+ testID="input-suffix"
190
+ themeIntent="text"
191
+ themeSize="xsmall"
192
+ />
193
+ </View>
194
+ <View
195
+ style={
196
+ Array [
197
+ Object {
198
+ "minHeight": 16,
199
+ "paddingLeft": 16,
200
+ },
201
+ undefined,
202
+ ]
203
+ }
204
+ >
205
+ <View
206
+ style={
207
+ Array [
208
+ Object {
209
+ "flexDirection": "row",
210
+ "justifyContent": "space-between",
211
+ },
212
+ undefined,
213
+ ]
214
+ }
215
+ />
216
+ </View>
217
+ </View>
218
+ </View>
219
+ </View>
220
+ `;
221
+
222
+ exports[`DatePicker renders DatePickerIOS when OS is iOS 1`] = `
223
+ <View
224
+ accessibilityState={
225
+ Object {
226
+ "disabled": false,
227
+ }
228
+ }
229
+ accessible={true}
230
+ collapsable={false}
231
+ focusable={true}
232
+ onClick={[Function]}
233
+ onResponderGrant={[Function]}
234
+ onResponderMove={[Function]}
235
+ onResponderRelease={[Function]}
236
+ onResponderTerminate={[Function]}
237
+ onResponderTerminationRequest={[Function]}
238
+ onStartShouldSetResponder={[Function]}
239
+ style={
240
+ Object {
241
+ "opacity": 1,
242
+ }
243
+ }
244
+ >
245
+ <View
246
+ pointerEvents="none"
247
+ testID="datePickerInputIOS"
248
+ >
249
+ <View
250
+ pointerEvents="auto"
251
+ style={
252
+ Array [
253
+ Object {
254
+ "marginTop": 8,
255
+ "width": "100%",
256
+ },
257
+ undefined,
258
+ ]
259
+ }
260
+ >
261
+ <View
262
+ style={
263
+ Array [
264
+ Object {
265
+ "alignItems": "center",
266
+ "backgroundColor": "#ffffff",
267
+ "borderRadius": 8,
268
+ "flexDirection": "row",
269
+ "padding": 16,
270
+ },
271
+ undefined,
272
+ ]
273
+ }
274
+ >
275
+ <View
276
+ style={
277
+ Array [
278
+ Object {
279
+ "borderColor": "#001f23",
280
+ "borderRadius": 8,
281
+ "borderWidth": 1,
282
+ "bottom": 0,
283
+ "left": 0,
284
+ "position": "absolute",
285
+ "right": 0,
286
+ "top": 0,
287
+ },
288
+ Array [
289
+ Object {
290
+ "backgroundColor": "#ffffff",
291
+ },
292
+ undefined,
293
+ ],
294
+ ]
295
+ }
296
+ testID="text-input-border"
297
+ themeFocused={false}
298
+ themeVariant="filled"
299
+ />
300
+ <View
301
+ pointerEvents="none"
302
+ style={
303
+ Array [
304
+ Object {
305
+ "backgroundColor": "#ffffff",
306
+ "flexDirection": "row",
307
+ "left": 16,
308
+ "paddingHorizontal": 4,
309
+ "position": "absolute",
310
+ "top": -10,
311
+ "zIndex": 1,
312
+ },
313
+ Object {
314
+ "backgroundColor": "#ffffff",
315
+ },
316
+ ]
317
+ }
318
+ testID="label-container"
319
+ >
320
+ <Text
321
+ allowFontScaling={false}
322
+ style={
323
+ Array [
324
+ Object {
325
+ "color": "#001f23",
326
+ "fontFamily": "BeVietnamPro-Regular",
327
+ "fontSize": 12,
328
+ "letterSpacing": 0.36,
329
+ "lineHeight": 20,
330
+ },
331
+ Array [
332
+ Object {
333
+ "color": "#001f23",
334
+ },
335
+ Object {
336
+ "backgroundColor": "#ffffff",
337
+ },
338
+ ],
339
+ ]
340
+ }
341
+ testID="input-label"
342
+ themeFontSize="small"
343
+ themeFontWeight="regular"
344
+ themeIntent="body"
345
+ themeTypeface="neutral"
346
+ themeVariant="filled"
347
+ >
348
+ Start date
349
+ </Text>
350
+ </View>
351
+ <View
352
+ style={
353
+ Array [
354
+ Object {
355
+ "alignItems": "center",
356
+ "alignSelf": "stretch",
357
+ "flexDirection": "row",
358
+ "flexGrow": 2,
359
+ "flexShrink": 1,
360
+ },
361
+ undefined,
362
+ ]
363
+ }
364
+ >
365
+ <TextInput
366
+ accessibilityState={
367
+ Object {
368
+ "disabled": false,
369
+ }
370
+ }
371
+ allowFontScaling={false}
372
+ editable={true}
373
+ onBlur={[Function]}
374
+ onChangeText={[Function]}
375
+ onFocus={[Function]}
376
+ placeholder=" "
377
+ style={
378
+ Array [
379
+ Object {
380
+ "alignSelf": "stretch",
381
+ "flexGrow": 2,
382
+ "fontSize": 14,
383
+ "marginHorizontal": 8,
384
+ "paddingVertical": 0,
385
+ "textAlignVertical": "center",
386
+ },
387
+ Object {
388
+ "backgroundColor": "#ffffff",
389
+ "color": "#001f23",
390
+ },
391
+ ]
392
+ }
393
+ testID="text-input"
394
+ value="17/12/1995"
395
+ />
396
+ </View>
397
+ <HeroIcon
398
+ name="calendar-dates-outlined"
399
+ style={
400
+ Array [
401
+ Object {
402
+ "color": "#001f23",
403
+ "fontSize": 16,
404
+ },
405
+ undefined,
406
+ ]
407
+ }
408
+ testID="input-suffix"
409
+ themeIntent="text"
410
+ themeSize="xsmall"
411
+ />
412
+ </View>
413
+ <View
414
+ style={
415
+ Array [
416
+ Object {
417
+ "minHeight": 16,
418
+ "paddingLeft": 16,
419
+ },
420
+ undefined,
421
+ ]
422
+ }
423
+ >
424
+ <View
425
+ style={
426
+ Array [
427
+ Object {
428
+ "flexDirection": "row",
429
+ "justifyContent": "space-between",
430
+ },
431
+ undefined,
432
+ ]
433
+ }
434
+ />
435
+ </View>
436
+ </View>
437
+ </View>
438
+ <Modal
439
+ hardwareAccelerated={false}
440
+ onRequestClose={[Function]}
441
+ transparent={true}
442
+ visible={false}
443
+ />
444
+ </View>
445
+ `;
446
+
447
+ exports[`DatePicker renders variant Calendar 1`] = `
448
+ <View
449
+ accessibilityState={
450
+ Object {
451
+ "disabled": false,
452
+ }
453
+ }
454
+ accessible={true}
455
+ collapsable={false}
456
+ focusable={true}
457
+ onClick={[Function]}
458
+ onResponderGrant={[Function]}
459
+ onResponderMove={[Function]}
460
+ onResponderRelease={[Function]}
461
+ onResponderTerminate={[Function]}
462
+ onResponderTerminationRequest={[Function]}
463
+ onStartShouldSetResponder={[Function]}
464
+ style={
465
+ Object {
466
+ "opacity": 1,
467
+ }
468
+ }
469
+ >
470
+ <View
471
+ pointerEvents="none"
472
+ testID="datePickerCalendar"
473
+ >
474
+ <View
475
+ pointerEvents="auto"
476
+ style={
477
+ Array [
478
+ Object {
479
+ "marginTop": 8,
480
+ "width": "100%",
481
+ },
482
+ undefined,
483
+ ]
484
+ }
485
+ >
486
+ <View
487
+ style={
488
+ Array [
489
+ Object {
490
+ "alignItems": "center",
491
+ "backgroundColor": "#ffffff",
492
+ "borderRadius": 8,
493
+ "flexDirection": "row",
494
+ "padding": 16,
495
+ },
496
+ undefined,
497
+ ]
498
+ }
499
+ >
500
+ <View
501
+ style={
502
+ Array [
503
+ Object {
504
+ "borderColor": "#001f23",
505
+ "borderRadius": 8,
506
+ "borderWidth": 1,
507
+ "bottom": 0,
508
+ "left": 0,
509
+ "position": "absolute",
510
+ "right": 0,
511
+ "top": 0,
512
+ },
513
+ Array [
514
+ Object {
515
+ "backgroundColor": "#ffffff",
516
+ },
517
+ undefined,
518
+ ],
519
+ ]
520
+ }
521
+ testID="text-input-border"
522
+ themeFocused={false}
523
+ themeVariant="filled"
524
+ />
525
+ <View
526
+ pointerEvents="none"
527
+ style={
528
+ Array [
529
+ Object {
530
+ "backgroundColor": "#ffffff",
531
+ "flexDirection": "row",
532
+ "left": 16,
533
+ "paddingHorizontal": 4,
534
+ "position": "absolute",
535
+ "top": -10,
536
+ "zIndex": 1,
537
+ },
538
+ Object {
539
+ "backgroundColor": "#ffffff",
540
+ },
541
+ ]
542
+ }
543
+ testID="label-container"
544
+ >
545
+ <Text
546
+ allowFontScaling={false}
547
+ style={
548
+ Array [
549
+ Object {
550
+ "color": "#001f23",
551
+ "fontFamily": "BeVietnamPro-Regular",
552
+ "fontSize": 12,
553
+ "letterSpacing": 0.36,
554
+ "lineHeight": 20,
555
+ },
556
+ Array [
557
+ Object {
558
+ "color": "#001f23",
559
+ },
560
+ Object {
561
+ "backgroundColor": "#ffffff",
562
+ },
563
+ ],
564
+ ]
565
+ }
566
+ testID="input-label"
567
+ themeFontSize="small"
568
+ themeFontWeight="regular"
569
+ themeIntent="body"
570
+ themeTypeface="neutral"
571
+ themeVariant="filled"
572
+ >
573
+ Start date
574
+ </Text>
575
+ </View>
576
+ <View
577
+ style={
578
+ Array [
579
+ Object {
580
+ "alignItems": "center",
581
+ "alignSelf": "stretch",
582
+ "flexDirection": "row",
583
+ "flexGrow": 2,
584
+ "flexShrink": 1,
585
+ },
586
+ undefined,
587
+ ]
588
+ }
589
+ >
590
+ <TextInput
591
+ accessibilityState={
592
+ Object {
593
+ "disabled": false,
594
+ }
595
+ }
596
+ allowFontScaling={false}
597
+ editable={true}
598
+ onBlur={[Function]}
599
+ onChangeText={[Function]}
600
+ onFocus={[Function]}
601
+ placeholder=" "
602
+ style={
603
+ Array [
604
+ Object {
605
+ "alignSelf": "stretch",
606
+ "flexGrow": 2,
607
+ "fontSize": 14,
608
+ "marginHorizontal": 8,
609
+ "paddingVertical": 0,
610
+ "textAlignVertical": "center",
611
+ },
612
+ Object {
613
+ "backgroundColor": "#ffffff",
614
+ "color": "#001f23",
615
+ },
616
+ ]
617
+ }
618
+ testID="text-input"
619
+ value="17/12/1995"
620
+ />
621
+ </View>
622
+ <HeroIcon
623
+ name="calendar-dates-outlined"
624
+ style={
625
+ Array [
626
+ Object {
627
+ "color": "#001f23",
628
+ "fontSize": 16,
629
+ },
630
+ undefined,
631
+ ]
632
+ }
633
+ testID="input-suffix"
634
+ themeIntent="text"
635
+ themeSize="xsmall"
636
+ />
637
+ </View>
638
+ <View
639
+ style={
640
+ Array [
641
+ Object {
642
+ "minHeight": 16,
643
+ "paddingLeft": 16,
644
+ },
645
+ undefined,
646
+ ]
647
+ }
648
+ >
649
+ <View
650
+ style={
651
+ Array [
652
+ Object {
653
+ "flexDirection": "row",
654
+ "justifyContent": "space-between",
655
+ },
656
+ undefined,
657
+ ]
658
+ }
659
+ />
660
+ </View>
661
+ </View>
662
+ </View>
663
+ <Modal
664
+ hardwareAccelerated={false}
665
+ onRequestClose={[Function]}
666
+ transparent={true}
667
+ visible={false}
668
+ />
669
+ </View>
670
+ `;