@hero-design/rn 8.44.0-alpha.0 → 8.44.0

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