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