@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
@@ -1,883 +1,1162 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Label renders correctly with themeState default 1`] = `
4
- <Text
5
- allowFontScaling={false}
3
+ exports[`LabelInsideTextInput renders correctly with themeState default 1`] = `
4
+ <View
6
5
  style={
7
- [
8
- {
9
- "color": "#001f23",
10
- "fontFamily": "BeVietnamPro-Regular",
11
- "fontSize": 12,
12
- "letterSpacing": 0.48,
13
- "lineHeight": 16,
14
- },
6
+ {
7
+ "flex": 1,
8
+ }
9
+ }
10
+ >
11
+ <Text
12
+ allowFontScaling={false}
13
+ style={
15
14
  [
16
15
  {
17
16
  "color": "#001f23",
18
- "lineHeight": 12,
17
+ "fontFamily": "BeVietnamPro-Regular",
18
+ "fontSize": 16,
19
+ "letterSpacing": 0.48,
20
+ "lineHeight": 24,
19
21
  },
20
- undefined,
21
- ],
22
- ]
23
- }
24
- themeFontWeight="regular"
25
- themeIntent="body"
26
- themeState="default"
27
- >
28
- Label
29
- </Text>
30
- `;
31
-
32
- exports[`Label renders correctly with themeState disabled 1`] = `
33
- <Text
34
- allowFontScaling={false}
35
- style={
36
- [
37
- {
38
- "color": "#001f23",
39
- "fontFamily": "BeVietnamPro-Regular",
40
- "fontSize": 12,
41
- "letterSpacing": 0.48,
42
- "lineHeight": 16,
43
- },
22
+ [
23
+ {
24
+ "alignContent": "center",
25
+ "alignItems": "center",
26
+ "color": "#001f23",
27
+ "marginTop": -2,
28
+ "textAlignVertical": "center",
29
+ },
30
+ undefined,
31
+ ],
32
+ ]
33
+ }
34
+ themeIntent="body"
35
+ themeState="default"
36
+ themeTypeface="neutral"
37
+ themeVariant="regular"
38
+ >
39
+ Label
40
+ </Text>
41
+ <View
42
+ pointerEvents="box-none"
43
+ position="bottom"
44
+ style={
44
45
  [
45
46
  {
46
- "color": "#bfc1c5",
47
- "lineHeight": 12,
47
+ "bottom": 0,
48
+ "elevation": 9999,
49
+ "flexDirection": "column-reverse",
50
+ "left": 0,
51
+ "paddingHorizontal": 24,
52
+ "paddingVertical": 16,
53
+ "position": "absolute",
54
+ "right": 0,
55
+ "top": 0,
48
56
  },
49
57
  undefined,
50
- ],
51
- ]
52
- }
53
- themeFontWeight="regular"
54
- themeIntent="body"
55
- themeState="disabled"
56
- >
57
- Label
58
- </Text>
58
+ ]
59
+ }
60
+ />
61
+ </View>
59
62
  `;
60
63
 
61
- exports[`Label renders correctly with themeState error 1`] = `
62
- <Text
63
- allowFontScaling={false}
64
+ exports[`LabelInsideTextInput renders correctly with themeState disabled 1`] = `
65
+ <View
64
66
  style={
65
- [
66
- {
67
- "color": "#001f23",
68
- "fontFamily": "BeVietnamPro-Regular",
69
- "fontSize": 12,
70
- "letterSpacing": 0.48,
71
- "lineHeight": 16,
72
- },
73
- [
74
- {
75
- "color": "#001f23",
76
- "lineHeight": 12,
77
- },
78
- undefined,
79
- ],
80
- ]
67
+ {
68
+ "flex": 1,
69
+ }
81
70
  }
82
- themeFontWeight="regular"
83
- themeIntent="body"
84
- themeState="error"
85
71
  >
86
- Label
87
- </Text>
88
- `;
89
-
90
- exports[`Label renders correctly with themeState filled 1`] = `
91
- <Text
92
- allowFontScaling={false}
93
- style={
94
- [
95
- {
96
- "color": "#001f23",
97
- "fontFamily": "BeVietnamPro-Regular",
98
- "fontSize": 12,
99
- "letterSpacing": 0.48,
100
- "lineHeight": 16,
101
- },
72
+ <Text
73
+ allowFontScaling={false}
74
+ style={
102
75
  [
103
76
  {
104
77
  "color": "#001f23",
105
- "lineHeight": 12,
78
+ "fontFamily": "BeVietnamPro-Regular",
79
+ "fontSize": 16,
80
+ "letterSpacing": 0.48,
81
+ "lineHeight": 24,
106
82
  },
107
- undefined,
108
- ],
109
- ]
110
- }
111
- themeFontWeight="regular"
112
- themeIntent="body"
113
- themeState="filled"
114
- >
115
- Label
116
- </Text>
117
- `;
118
-
119
- exports[`Label renders correctly with themeState readonly 1`] = `
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
- },
83
+ [
84
+ {
85
+ "alignContent": "center",
86
+ "alignItems": "center",
87
+ "color": "#bfc1c5",
88
+ "marginTop": -2,
89
+ "textAlignVertical": "center",
90
+ },
91
+ undefined,
92
+ ],
93
+ ]
94
+ }
95
+ themeIntent="body"
96
+ themeState="disabled"
97
+ themeTypeface="neutral"
98
+ themeVariant="regular"
99
+ >
100
+ Label
101
+ </Text>
102
+ <View
103
+ pointerEvents="box-none"
104
+ position="bottom"
105
+ style={
131
106
  [
132
107
  {
133
- "color": "#808f91",
134
- "lineHeight": 12,
108
+ "bottom": 0,
109
+ "elevation": 9999,
110
+ "flexDirection": "column-reverse",
111
+ "left": 0,
112
+ "paddingHorizontal": 24,
113
+ "paddingVertical": 16,
114
+ "position": "absolute",
115
+ "right": 0,
116
+ "top": 0,
135
117
  },
136
118
  undefined,
137
- ],
138
- ]
139
- }
140
- themeFontWeight="regular"
141
- themeIntent="body"
142
- themeState="readonly"
143
- >
144
- Label
145
- </Text>
119
+ ]
120
+ }
121
+ />
122
+ </View>
146
123
  `;
147
124
 
148
- exports[`LabelContainer renders correctly 1`] = `
125
+ exports[`LabelInsideTextInput renders correctly with themeState error 1`] = `
149
126
  <View
150
127
  style={
151
- [
152
- {
153
- "backgroundColor": "#ffffff",
154
- "flexDirection": "row",
155
- "left": 16,
156
- "paddingHorizontal": 4,
157
- "position": "absolute",
158
- "top": -4,
159
- "zIndex": 1,
160
- },
161
- undefined,
162
- ]
128
+ {
129
+ "flex": 1,
130
+ }
163
131
  }
164
- />
165
- `;
166
-
167
- exports[`LabelInsideTextInput renders correctly with themeState default 1`] = `
168
- <Text
169
- allowFontScaling={false}
170
- style={
171
- [
172
- {
173
- "color": "#001f23",
174
- "fontFamily": "BeVietnamPro-Regular",
175
- "fontSize": 16,
176
- "letterSpacing": 0.48,
177
- "lineHeight": 24,
178
- },
132
+ >
133
+ <Text
134
+ allowFontScaling={false}
135
+ style={
179
136
  [
180
137
  {
181
- "alignContent": "center",
182
- "alignItems": "center",
183
138
  "color": "#001f23",
184
- "marginTop": -2,
185
- "textAlignVertical": "center",
139
+ "fontFamily": "BeVietnamPro-Regular",
140
+ "fontSize": 16,
141
+ "letterSpacing": 0.48,
142
+ "lineHeight": 24,
186
143
  },
187
- undefined,
188
- ],
189
- ]
190
- }
191
- themeIntent="body"
192
- themeState="default"
193
- themeTypeface="neutral"
194
- themeVariant="regular"
195
- >
196
- Label
197
- </Text>
198
- `;
199
-
200
- exports[`LabelInsideTextInput renders correctly with themeState disabled 1`] = `
201
- <Text
202
- allowFontScaling={false}
203
- style={
204
- [
205
- {
206
- "color": "#001f23",
207
- "fontFamily": "BeVietnamPro-Regular",
208
- "fontSize": 16,
209
- "letterSpacing": 0.48,
210
- "lineHeight": 24,
211
- },
144
+ [
145
+ {
146
+ "alignContent": "center",
147
+ "alignItems": "center",
148
+ "color": "#001f23",
149
+ "marginTop": -2,
150
+ "textAlignVertical": "center",
151
+ },
152
+ undefined,
153
+ ],
154
+ ]
155
+ }
156
+ themeIntent="body"
157
+ themeState="error"
158
+ themeTypeface="neutral"
159
+ themeVariant="regular"
160
+ >
161
+ Label
162
+ </Text>
163
+ <View
164
+ pointerEvents="box-none"
165
+ position="bottom"
166
+ style={
212
167
  [
213
168
  {
214
- "alignContent": "center",
215
- "alignItems": "center",
216
- "color": "#bfc1c5",
217
- "marginTop": -2,
218
- "textAlignVertical": "center",
169
+ "bottom": 0,
170
+ "elevation": 9999,
171
+ "flexDirection": "column-reverse",
172
+ "left": 0,
173
+ "paddingHorizontal": 24,
174
+ "paddingVertical": 16,
175
+ "position": "absolute",
176
+ "right": 0,
177
+ "top": 0,
219
178
  },
220
179
  undefined,
221
- ],
222
- ]
223
- }
224
- themeIntent="body"
225
- themeState="disabled"
226
- themeTypeface="neutral"
227
- themeVariant="regular"
228
- >
229
- Label
230
- </Text>
180
+ ]
181
+ }
182
+ />
183
+ </View>
231
184
  `;
232
185
 
233
- exports[`LabelInsideTextInput renders correctly with themeState error 1`] = `
234
- <Text
235
- allowFontScaling={false}
186
+ exports[`LabelInsideTextInput renders correctly with themeState filled 1`] = `
187
+ <View
236
188
  style={
237
- [
238
- {
239
- "color": "#001f23",
240
- "fontFamily": "BeVietnamPro-Regular",
241
- "fontSize": 16,
242
- "letterSpacing": 0.48,
243
- "lineHeight": 24,
244
- },
189
+ {
190
+ "flex": 1,
191
+ }
192
+ }
193
+ >
194
+ <Text
195
+ allowFontScaling={false}
196
+ style={
245
197
  [
246
198
  {
247
- "alignContent": "center",
248
- "alignItems": "center",
249
199
  "color": "#001f23",
250
- "marginTop": -2,
251
- "textAlignVertical": "center",
200
+ "fontFamily": "BeVietnamPro-Regular",
201
+ "fontSize": 16,
202
+ "letterSpacing": 0.48,
203
+ "lineHeight": 24,
252
204
  },
253
- undefined,
254
- ],
255
- ]
256
- }
257
- themeIntent="body"
258
- themeState="error"
259
- themeTypeface="neutral"
260
- themeVariant="regular"
261
- >
262
- Label
263
- </Text>
264
- `;
265
-
266
- exports[`LabelInsideTextInput renders correctly with themeState filled 1`] = `
267
- <Text
268
- allowFontScaling={false}
269
- style={
270
- [
271
- {
272
- "color": "#001f23",
273
- "fontFamily": "BeVietnamPro-Regular",
274
- "fontSize": 16,
275
- "letterSpacing": 0.48,
276
- "lineHeight": 24,
277
- },
205
+ [
206
+ {
207
+ "alignContent": "center",
208
+ "alignItems": "center",
209
+ "color": "#001f23",
210
+ "marginTop": -2,
211
+ "textAlignVertical": "center",
212
+ },
213
+ undefined,
214
+ ],
215
+ ]
216
+ }
217
+ themeIntent="body"
218
+ themeState="filled"
219
+ themeTypeface="neutral"
220
+ themeVariant="regular"
221
+ >
222
+ Label
223
+ </Text>
224
+ <View
225
+ pointerEvents="box-none"
226
+ position="bottom"
227
+ style={
278
228
  [
279
229
  {
280
- "alignContent": "center",
281
- "alignItems": "center",
282
- "color": "#001f23",
283
- "marginTop": -2,
284
- "textAlignVertical": "center",
230
+ "bottom": 0,
231
+ "elevation": 9999,
232
+ "flexDirection": "column-reverse",
233
+ "left": 0,
234
+ "paddingHorizontal": 24,
235
+ "paddingVertical": 16,
236
+ "position": "absolute",
237
+ "right": 0,
238
+ "top": 0,
285
239
  },
286
240
  undefined,
287
- ],
288
- ]
289
- }
290
- themeIntent="body"
291
- themeState="filled"
292
- themeTypeface="neutral"
293
- themeVariant="regular"
294
- >
295
- Label
296
- </Text>
241
+ ]
242
+ }
243
+ />
244
+ </View>
297
245
  `;
298
246
 
299
247
  exports[`LabelInsideTextInput renders correctly with themeState readonly 1`] = `
300
- <Text
301
- allowFontScaling={false}
248
+ <View
302
249
  style={
303
- [
304
- {
305
- "color": "#001f23",
306
- "fontFamily": "BeVietnamPro-Regular",
307
- "fontSize": 16,
308
- "letterSpacing": 0.48,
309
- "lineHeight": 24,
310
- },
250
+ {
251
+ "flex": 1,
252
+ }
253
+ }
254
+ >
255
+ <Text
256
+ allowFontScaling={false}
257
+ style={
311
258
  [
312
259
  {
313
- "alignContent": "center",
314
- "alignItems": "center",
315
- "color": "#808f91",
316
- "marginTop": -2,
317
- "textAlignVertical": "center",
260
+ "color": "#001f23",
261
+ "fontFamily": "BeVietnamPro-Regular",
262
+ "fontSize": 16,
263
+ "letterSpacing": 0.48,
264
+ "lineHeight": 24,
318
265
  },
319
- undefined,
320
- ],
321
- ]
322
- }
323
- themeIntent="body"
324
- themeState="readonly"
325
- themeTypeface="neutral"
326
- themeVariant="regular"
327
- >
328
- Label
329
- </Text>
330
- `;
331
-
332
- exports[`StyledAsteriskLabel renders correctly with themeState default 1`] = `
333
- <Text
334
- allowFontScaling={false}
335
- style={
336
- [
337
- {
338
- "color": "#001f23",
339
- "fontFamily": "BeVietnamPro-Regular",
340
- "fontSize": 12,
341
- "letterSpacing": 0.48,
342
- "lineHeight": 16,
343
- },
266
+ [
267
+ {
268
+ "alignContent": "center",
269
+ "alignItems": "center",
270
+ "color": "#808f91",
271
+ "marginTop": -2,
272
+ "textAlignVertical": "center",
273
+ },
274
+ undefined,
275
+ ],
276
+ ]
277
+ }
278
+ themeIntent="body"
279
+ themeState="readonly"
280
+ themeTypeface="neutral"
281
+ themeVariant="regular"
282
+ >
283
+ Label
284
+ </Text>
285
+ <View
286
+ pointerEvents="box-none"
287
+ position="bottom"
288
+ style={
344
289
  [
345
290
  {
346
- "color": "#cb300a",
347
- "lineHeight": 12,
291
+ "bottom": 0,
292
+ "elevation": 9999,
293
+ "flexDirection": "column-reverse",
294
+ "left": 0,
295
+ "paddingHorizontal": 24,
296
+ "paddingVertical": 16,
297
+ "position": "absolute",
298
+ "right": 0,
299
+ "top": 0,
348
300
  },
349
301
  undefined,
350
- ],
351
- ]
352
- }
353
- themeFontWeight="regular"
354
- themeIntent="body"
355
- themeState="default"
356
- >
357
- *
358
- </Text>
302
+ ]
303
+ }
304
+ />
305
+ </View>
359
306
  `;
360
307
 
361
- exports[`StyledAsteriskLabel renders correctly with themeState disabled 1`] = `
362
- <Text
363
- allowFontScaling={false}
308
+ exports[`StyledBorderBackDrop renders correctly when focused 1`] = `
309
+ <View
364
310
  style={
365
- [
366
- {
367
- "color": "#001f23",
368
- "fontFamily": "BeVietnamPro-Regular",
369
- "fontSize": 12,
370
- "letterSpacing": 0.48,
371
- "lineHeight": 16,
372
- },
311
+ {
312
+ "flex": 1,
313
+ }
314
+ }
315
+ >
316
+ <View
317
+ style={
373
318
  [
374
319
  {
375
- "color": "#bfc1c5",
376
- "lineHeight": 12,
320
+ "borderColor": "#cb300a",
321
+ "borderRadius": 8,
322
+ "borderWidth": 2,
323
+ "bottom": 0,
324
+ "left": 0,
325
+ "position": "absolute",
326
+ "right": 0,
327
+ "top": 0,
377
328
  },
378
329
  undefined,
379
- ],
380
- ]
381
- }
382
- themeFontWeight="regular"
383
- themeIntent="body"
384
- themeState="disabled"
385
- >
386
- *
387
- </Text>
388
- `;
389
-
390
- exports[`StyledAsteriskLabel renders correctly with themeState error 1`] = `
391
- <Text
392
- allowFontScaling={false}
393
- style={
394
- [
395
- {
396
- "color": "#001f23",
397
- "fontFamily": "BeVietnamPro-Regular",
398
- "fontSize": 12,
399
- "letterSpacing": 0.48,
400
- "lineHeight": 16,
401
- },
330
+ ]
331
+ }
332
+ themeFocused={true}
333
+ themeState="error"
334
+ />
335
+ <View
336
+ pointerEvents="box-none"
337
+ position="bottom"
338
+ style={
402
339
  [
403
340
  {
404
- "color": "#cb300a",
405
- "lineHeight": 12,
341
+ "bottom": 0,
342
+ "elevation": 9999,
343
+ "flexDirection": "column-reverse",
344
+ "left": 0,
345
+ "paddingHorizontal": 24,
346
+ "paddingVertical": 16,
347
+ "position": "absolute",
348
+ "right": 0,
349
+ "top": 0,
406
350
  },
407
351
  undefined,
408
- ],
409
- ]
410
- }
411
- themeFontWeight="regular"
412
- themeIntent="body"
413
- themeState="error"
414
- >
415
- *
416
- </Text>
352
+ ]
353
+ }
354
+ />
355
+ </View>
417
356
  `;
418
357
 
419
- exports[`StyledAsteriskLabel renders correctly with themeState filled 1`] = `
420
- <Text
421
- allowFontScaling={false}
358
+ exports[`StyledBorderBackDrop renders correctly with themeState default 1`] = `
359
+ <View
422
360
  style={
423
- [
424
- {
425
- "color": "#001f23",
426
- "fontFamily": "BeVietnamPro-Regular",
427
- "fontSize": 12,
428
- "letterSpacing": 0.48,
429
- "lineHeight": 16,
430
- },
361
+ {
362
+ "flex": 1,
363
+ }
364
+ }
365
+ >
366
+ <View
367
+ style={
431
368
  [
432
369
  {
433
- "color": "#cb300a",
434
- "lineHeight": 12,
370
+ "borderColor": "#001f23",
371
+ "borderRadius": 8,
372
+ "borderWidth": 1,
373
+ "bottom": 0,
374
+ "left": 0,
375
+ "position": "absolute",
376
+ "right": 0,
377
+ "top": 0,
435
378
  },
436
379
  undefined,
437
- ],
438
- ]
439
- }
440
- themeFontWeight="regular"
441
- themeIntent="body"
442
- themeState="filled"
443
- >
444
- *
445
- </Text>
446
- `;
447
-
448
- exports[`StyledAsteriskLabel renders correctly with themeState readonly 1`] = `
449
- <Text
450
- allowFontScaling={false}
451
- style={
452
- [
453
- {
454
- "color": "#001f23",
455
- "fontFamily": "BeVietnamPro-Regular",
456
- "fontSize": 12,
457
- "letterSpacing": 0.48,
458
- "lineHeight": 16,
459
- },
380
+ ]
381
+ }
382
+ themeFocused={false}
383
+ themeState="default"
384
+ />
385
+ <View
386
+ pointerEvents="box-none"
387
+ position="bottom"
388
+ style={
460
389
  [
461
390
  {
462
- "color": "#808f91",
463
- "lineHeight": 12,
391
+ "bottom": 0,
392
+ "elevation": 9999,
393
+ "flexDirection": "column-reverse",
394
+ "left": 0,
395
+ "paddingHorizontal": 24,
396
+ "paddingVertical": 16,
397
+ "position": "absolute",
398
+ "right": 0,
399
+ "top": 0,
464
400
  },
465
401
  undefined,
466
- ],
467
- ]
468
- }
469
- themeFontWeight="regular"
470
- themeIntent="body"
471
- themeState="readonly"
472
- >
473
- *
474
- </Text>
475
- `;
476
-
477
- exports[`StyledBorderBackDrop renders correctly when focused 1`] = `
478
- <View
479
- style={
480
- [
481
- {
482
- "borderColor": "#cb300a",
483
- "borderRadius": 8,
484
- "borderWidth": 2,
485
- "bottom": 0,
486
- "left": 0,
487
- "position": "absolute",
488
- "right": 0,
489
- "top": 0,
490
- },
491
- undefined,
492
- ]
493
- }
494
- themeFocused={true}
495
- themeState="error"
496
- />
497
- `;
498
-
499
- exports[`StyledBorderBackDrop renders correctly with themeState default 1`] = `
500
- <View
501
- style={
502
- [
503
- {
504
- "borderColor": "#001f23",
505
- "borderRadius": 8,
506
- "borderWidth": 1,
507
- "bottom": 0,
508
- "left": 0,
509
- "position": "absolute",
510
- "right": 0,
511
- "top": 0,
512
- },
513
- undefined,
514
- ]
515
- }
516
- themeFocused={false}
517
- themeState="default"
518
- />
402
+ ]
403
+ }
404
+ />
405
+ </View>
519
406
  `;
520
407
 
521
408
  exports[`StyledBorderBackDrop renders correctly with themeState disabled 1`] = `
522
409
  <View
523
410
  style={
524
- [
525
- {
526
- "borderColor": "#bfc1c5",
527
- "borderRadius": 8,
528
- "borderWidth": 1,
529
- "bottom": 0,
530
- "left": 0,
531
- "position": "absolute",
532
- "right": 0,
533
- "top": 0,
534
- },
535
- undefined,
536
- ]
411
+ {
412
+ "flex": 1,
413
+ }
537
414
  }
538
- themeFocused={false}
539
- themeState="disabled"
540
- />
415
+ >
416
+ <View
417
+ style={
418
+ [
419
+ {
420
+ "borderColor": "#bfc1c5",
421
+ "borderRadius": 8,
422
+ "borderWidth": 1,
423
+ "bottom": 0,
424
+ "left": 0,
425
+ "position": "absolute",
426
+ "right": 0,
427
+ "top": 0,
428
+ },
429
+ undefined,
430
+ ]
431
+ }
432
+ themeFocused={false}
433
+ themeState="disabled"
434
+ />
435
+ <View
436
+ pointerEvents="box-none"
437
+ position="bottom"
438
+ style={
439
+ [
440
+ {
441
+ "bottom": 0,
442
+ "elevation": 9999,
443
+ "flexDirection": "column-reverse",
444
+ "left": 0,
445
+ "paddingHorizontal": 24,
446
+ "paddingVertical": 16,
447
+ "position": "absolute",
448
+ "right": 0,
449
+ "top": 0,
450
+ },
451
+ undefined,
452
+ ]
453
+ }
454
+ />
455
+ </View>
541
456
  `;
542
457
 
543
458
  exports[`StyledBorderBackDrop renders correctly with themeState error 1`] = `
544
459
  <View
545
460
  style={
546
- [
547
- {
548
- "borderColor": "#cb300a",
549
- "borderRadius": 8,
550
- "borderWidth": 1,
551
- "bottom": 0,
552
- "left": 0,
553
- "position": "absolute",
554
- "right": 0,
555
- "top": 0,
556
- },
557
- undefined,
558
- ]
461
+ {
462
+ "flex": 1,
463
+ }
559
464
  }
560
- themeFocused={false}
561
- themeState="error"
562
- />
465
+ >
466
+ <View
467
+ style={
468
+ [
469
+ {
470
+ "borderColor": "#cb300a",
471
+ "borderRadius": 8,
472
+ "borderWidth": 1,
473
+ "bottom": 0,
474
+ "left": 0,
475
+ "position": "absolute",
476
+ "right": 0,
477
+ "top": 0,
478
+ },
479
+ undefined,
480
+ ]
481
+ }
482
+ themeFocused={false}
483
+ themeState="error"
484
+ />
485
+ <View
486
+ pointerEvents="box-none"
487
+ position="bottom"
488
+ style={
489
+ [
490
+ {
491
+ "bottom": 0,
492
+ "elevation": 9999,
493
+ "flexDirection": "column-reverse",
494
+ "left": 0,
495
+ "paddingHorizontal": 24,
496
+ "paddingVertical": 16,
497
+ "position": "absolute",
498
+ "right": 0,
499
+ "top": 0,
500
+ },
501
+ undefined,
502
+ ]
503
+ }
504
+ />
505
+ </View>
563
506
  `;
564
507
 
565
508
  exports[`StyledBorderBackDrop renders correctly with themeState filled 1`] = `
566
509
  <View
567
510
  style={
568
- [
569
- {
570
- "borderColor": "#001f23",
571
- "borderRadius": 8,
572
- "borderWidth": 1,
573
- "bottom": 0,
574
- "left": 0,
575
- "position": "absolute",
576
- "right": 0,
577
- "top": 0,
578
- },
579
- undefined,
580
- ]
511
+ {
512
+ "flex": 1,
513
+ }
581
514
  }
582
- themeFocused={false}
583
- themeState="filled"
584
- />
515
+ >
516
+ <View
517
+ style={
518
+ [
519
+ {
520
+ "borderColor": "#001f23",
521
+ "borderRadius": 8,
522
+ "borderWidth": 1,
523
+ "bottom": 0,
524
+ "left": 0,
525
+ "position": "absolute",
526
+ "right": 0,
527
+ "top": 0,
528
+ },
529
+ undefined,
530
+ ]
531
+ }
532
+ themeFocused={false}
533
+ themeState="filled"
534
+ />
535
+ <View
536
+ pointerEvents="box-none"
537
+ position="bottom"
538
+ style={
539
+ [
540
+ {
541
+ "bottom": 0,
542
+ "elevation": 9999,
543
+ "flexDirection": "column-reverse",
544
+ "left": 0,
545
+ "paddingHorizontal": 24,
546
+ "paddingVertical": 16,
547
+ "position": "absolute",
548
+ "right": 0,
549
+ "top": 0,
550
+ },
551
+ undefined,
552
+ ]
553
+ }
554
+ />
555
+ </View>
585
556
  `;
586
557
 
587
558
  exports[`StyledBorderBackDrop renders correctly with themeState readonly 1`] = `
588
559
  <View
589
560
  style={
590
- [
591
- {
592
- "borderColor": "#808f91",
593
- "borderRadius": 8,
594
- "borderWidth": 1,
595
- "bottom": 0,
596
- "left": 0,
597
- "position": "absolute",
598
- "right": 0,
599
- "top": 0,
600
- },
601
- undefined,
602
- ]
561
+ {
562
+ "flex": 1,
563
+ }
603
564
  }
604
- themeFocused={false}
605
- themeState="readonly"
606
- />
565
+ >
566
+ <View
567
+ style={
568
+ [
569
+ {
570
+ "borderColor": "#808f91",
571
+ "borderRadius": 8,
572
+ "borderWidth": 1,
573
+ "bottom": 0,
574
+ "left": 0,
575
+ "position": "absolute",
576
+ "right": 0,
577
+ "top": 0,
578
+ },
579
+ undefined,
580
+ ]
581
+ }
582
+ themeFocused={false}
583
+ themeState="readonly"
584
+ />
585
+ <View
586
+ pointerEvents="box-none"
587
+ position="bottom"
588
+ style={
589
+ [
590
+ {
591
+ "bottom": 0,
592
+ "elevation": 9999,
593
+ "flexDirection": "column-reverse",
594
+ "left": 0,
595
+ "paddingHorizontal": 24,
596
+ "paddingVertical": 16,
597
+ "position": "absolute",
598
+ "right": 0,
599
+ "top": 0,
600
+ },
601
+ undefined,
602
+ ]
603
+ }
604
+ />
605
+ </View>
607
606
  `;
608
607
 
609
608
  exports[`StyledErrorMessage renders correctly 1`] = `
610
- <Text
611
- allowFontScaling={false}
609
+ <View
612
610
  style={
613
- [
614
- {
615
- "color": "#001f23",
616
- "fontFamily": "BeVietnamPro-Regular",
617
- "fontSize": 12,
618
- "letterSpacing": 0.48,
619
- "lineHeight": 16,
620
- },
611
+ {
612
+ "flex": 1,
613
+ }
614
+ }
615
+ >
616
+ <Text
617
+ allowFontScaling={false}
618
+ style={
619
+ [
620
+ {
621
+ "color": "#001f23",
622
+ "fontFamily": "BeVietnamPro-Regular",
623
+ "fontSize": 12,
624
+ "letterSpacing": 0.48,
625
+ "lineHeight": 16,
626
+ },
627
+ [
628
+ {
629
+ "color": "#cb300a",
630
+ "marginLeft": 4,
631
+ },
632
+ undefined,
633
+ ],
634
+ ]
635
+ }
636
+ themeFontWeight="regular"
637
+ themeIntent="body"
638
+ >
639
+ must not exceed character limit
640
+ </Text>
641
+ <View
642
+ pointerEvents="box-none"
643
+ position="bottom"
644
+ style={
621
645
  [
622
646
  {
623
- "color": "#cb300a",
624
- "marginLeft": 4,
647
+ "bottom": 0,
648
+ "elevation": 9999,
649
+ "flexDirection": "column-reverse",
650
+ "left": 0,
651
+ "paddingHorizontal": 24,
652
+ "paddingVertical": 16,
653
+ "position": "absolute",
654
+ "right": 0,
655
+ "top": 0,
625
656
  },
626
657
  undefined,
627
- ],
628
- ]
629
- }
630
- themeFontWeight="regular"
631
- themeIntent="body"
632
- >
633
- must not exceed character limit
634
- </Text>
658
+ ]
659
+ }
660
+ />
661
+ </View>
635
662
  `;
636
663
 
637
664
  exports[`StyledErrorMessageContainer renders correctly 1`] = `
638
665
  <View
639
666
  style={
640
- [
641
- {
642
- "alignItems": "center",
643
- "flex": 1,
644
- "flexDirection": "row",
645
- "flexGrow": 4,
646
- "marginRight": 4,
647
- },
648
- undefined,
649
- ]
667
+ {
668
+ "flex": 1,
669
+ }
650
670
  }
651
- />
671
+ >
672
+ <View
673
+ style={
674
+ [
675
+ {
676
+ "alignItems": "center",
677
+ "flex": 1,
678
+ "flexDirection": "row",
679
+ "flexGrow": 4,
680
+ "marginRight": 4,
681
+ },
682
+ undefined,
683
+ ]
684
+ }
685
+ />
686
+ <View
687
+ pointerEvents="box-none"
688
+ position="bottom"
689
+ style={
690
+ [
691
+ {
692
+ "bottom": 0,
693
+ "elevation": 9999,
694
+ "flexDirection": "column-reverse",
695
+ "left": 0,
696
+ "paddingHorizontal": 24,
697
+ "paddingVertical": 16,
698
+ "position": "absolute",
699
+ "right": 0,
700
+ "top": 0,
701
+ },
702
+ undefined,
703
+ ]
704
+ }
705
+ />
706
+ </View>
652
707
  `;
653
708
 
654
709
  exports[`StyledHelperText renders correctly 1`] = `
655
- <Text
656
- allowFontScaling={false}
710
+ <View
657
711
  style={
658
- [
659
- {
660
- "color": "#001f23",
661
- "fontFamily": "BeVietnamPro-Regular",
662
- "fontSize": 12,
663
- "letterSpacing": 0.48,
664
- "lineHeight": 16,
665
- },
666
- undefined,
667
- ]
712
+ {
713
+ "flex": 1,
714
+ }
668
715
  }
669
- themeFontWeight="regular"
670
- themeIntent="body"
671
716
  >
672
- helper text
673
- </Text>
717
+ <Text
718
+ allowFontScaling={false}
719
+ style={
720
+ [
721
+ {
722
+ "color": "#001f23",
723
+ "fontFamily": "BeVietnamPro-Regular",
724
+ "fontSize": 12,
725
+ "letterSpacing": 0.48,
726
+ "lineHeight": 16,
727
+ },
728
+ undefined,
729
+ ]
730
+ }
731
+ themeFontWeight="regular"
732
+ themeIntent="body"
733
+ >
734
+ helper text
735
+ </Text>
736
+ <View
737
+ pointerEvents="box-none"
738
+ position="bottom"
739
+ style={
740
+ [
741
+ {
742
+ "bottom": 0,
743
+ "elevation": 9999,
744
+ "flexDirection": "column-reverse",
745
+ "left": 0,
746
+ "paddingHorizontal": 24,
747
+ "paddingVertical": 16,
748
+ "position": "absolute",
749
+ "right": 0,
750
+ "top": 0,
751
+ },
752
+ undefined,
753
+ ]
754
+ }
755
+ />
756
+ </View>
674
757
  `;
675
758
 
676
759
  exports[`StyledMaxLengthMessage renders correctly with themeState default 1`] = `
677
- <Text
678
- allowFontScaling={false}
760
+ <View
679
761
  style={
680
- [
681
- {
682
- "color": "#001f23",
683
- "fontFamily": "BeVietnamPro-Regular",
684
- "fontSize": 12,
685
- "letterSpacing": 0.48,
686
- "lineHeight": 16,
687
- },
762
+ {
763
+ "flex": 1,
764
+ }
765
+ }
766
+ >
767
+ <Text
768
+ allowFontScaling={false}
769
+ style={
688
770
  [
689
771
  {
690
- "alignSelf": "flex-end",
691
772
  "color": "#001f23",
692
- "flex": 1,
693
- "flexGrow": 1,
694
- "marginRight": 4,
695
- "textAlign": "right",
773
+ "fontFamily": "BeVietnamPro-Regular",
774
+ "fontSize": 12,
775
+ "letterSpacing": 0.48,
776
+ "lineHeight": 16,
777
+ },
778
+ [
779
+ {
780
+ "alignSelf": "flex-end",
781
+ "color": "#001f23",
782
+ "flex": 1,
783
+ "flexGrow": 1,
784
+ "marginRight": 4,
785
+ "textAlign": "right",
786
+ },
787
+ undefined,
788
+ ],
789
+ ]
790
+ }
791
+ themeFontWeight="regular"
792
+ themeIntent="body"
793
+ themeState="default"
794
+ >
795
+ 100/255
796
+ </Text>
797
+ <View
798
+ pointerEvents="box-none"
799
+ position="bottom"
800
+ style={
801
+ [
802
+ {
803
+ "bottom": 0,
804
+ "elevation": 9999,
805
+ "flexDirection": "column-reverse",
806
+ "left": 0,
807
+ "paddingHorizontal": 24,
808
+ "paddingVertical": 16,
809
+ "position": "absolute",
810
+ "right": 0,
811
+ "top": 0,
696
812
  },
697
813
  undefined,
698
- ],
699
- ]
700
- }
701
- themeFontWeight="regular"
702
- themeIntent="body"
703
- themeState="default"
704
- >
705
- 100/255
706
- </Text>
814
+ ]
815
+ }
816
+ />
817
+ </View>
707
818
  `;
708
819
 
709
820
  exports[`StyledMaxLengthMessage renders correctly with themeState disabled 1`] = `
710
- <Text
711
- allowFontScaling={false}
821
+ <View
712
822
  style={
713
- [
714
- {
715
- "color": "#001f23",
716
- "fontFamily": "BeVietnamPro-Regular",
717
- "fontSize": 12,
718
- "letterSpacing": 0.48,
719
- "lineHeight": 16,
720
- },
721
- [
722
- {
723
- "alignSelf": "flex-end",
724
- "color": "#bfc1c5",
725
- "flex": 1,
726
- "flexGrow": 1,
727
- "marginRight": 4,
728
- "textAlign": "right",
729
- },
730
- undefined,
731
- ],
732
- ]
823
+ {
824
+ "flex": 1,
825
+ }
733
826
  }
734
- themeFontWeight="regular"
735
- themeIntent="body"
736
- themeState="disabled"
737
827
  >
738
- 100/255
739
- </Text>
828
+ <Text
829
+ allowFontScaling={false}
830
+ style={
831
+ [
832
+ {
833
+ "color": "#001f23",
834
+ "fontFamily": "BeVietnamPro-Regular",
835
+ "fontSize": 12,
836
+ "letterSpacing": 0.48,
837
+ "lineHeight": 16,
838
+ },
839
+ [
840
+ {
841
+ "alignSelf": "flex-end",
842
+ "color": "#bfc1c5",
843
+ "flex": 1,
844
+ "flexGrow": 1,
845
+ "marginRight": 4,
846
+ "textAlign": "right",
847
+ },
848
+ undefined,
849
+ ],
850
+ ]
851
+ }
852
+ themeFontWeight="regular"
853
+ themeIntent="body"
854
+ themeState="disabled"
855
+ >
856
+ 100/255
857
+ </Text>
858
+ <View
859
+ pointerEvents="box-none"
860
+ position="bottom"
861
+ style={
862
+ [
863
+ {
864
+ "bottom": 0,
865
+ "elevation": 9999,
866
+ "flexDirection": "column-reverse",
867
+ "left": 0,
868
+ "paddingHorizontal": 24,
869
+ "paddingVertical": 16,
870
+ "position": "absolute",
871
+ "right": 0,
872
+ "top": 0,
873
+ },
874
+ undefined,
875
+ ]
876
+ }
877
+ />
878
+ </View>
740
879
  `;
741
880
 
742
881
  exports[`StyledMaxLengthMessage renders correctly with themeState error 1`] = `
743
- <Text
744
- allowFontScaling={false}
882
+ <View
745
883
  style={
746
- [
747
- {
748
- "color": "#001f23",
749
- "fontFamily": "BeVietnamPro-Regular",
750
- "fontSize": 12,
751
- "letterSpacing": 0.48,
752
- "lineHeight": 16,
753
- },
754
- [
755
- {
756
- "alignSelf": "flex-end",
757
- "color": "#cb300a",
758
- "flex": 1,
759
- "flexGrow": 1,
760
- "marginRight": 4,
761
- "textAlign": "right",
762
- },
763
- undefined,
764
- ],
765
- ]
884
+ {
885
+ "flex": 1,
886
+ }
766
887
  }
767
- themeFontWeight="regular"
768
- themeIntent="body"
769
- themeState="error"
770
888
  >
771
- 100/255
772
- </Text>
889
+ <Text
890
+ allowFontScaling={false}
891
+ style={
892
+ [
893
+ {
894
+ "color": "#001f23",
895
+ "fontFamily": "BeVietnamPro-Regular",
896
+ "fontSize": 12,
897
+ "letterSpacing": 0.48,
898
+ "lineHeight": 16,
899
+ },
900
+ [
901
+ {
902
+ "alignSelf": "flex-end",
903
+ "color": "#cb300a",
904
+ "flex": 1,
905
+ "flexGrow": 1,
906
+ "marginRight": 4,
907
+ "textAlign": "right",
908
+ },
909
+ undefined,
910
+ ],
911
+ ]
912
+ }
913
+ themeFontWeight="regular"
914
+ themeIntent="body"
915
+ themeState="error"
916
+ >
917
+ 100/255
918
+ </Text>
919
+ <View
920
+ pointerEvents="box-none"
921
+ position="bottom"
922
+ style={
923
+ [
924
+ {
925
+ "bottom": 0,
926
+ "elevation": 9999,
927
+ "flexDirection": "column-reverse",
928
+ "left": 0,
929
+ "paddingHorizontal": 24,
930
+ "paddingVertical": 16,
931
+ "position": "absolute",
932
+ "right": 0,
933
+ "top": 0,
934
+ },
935
+ undefined,
936
+ ]
937
+ }
938
+ />
939
+ </View>
773
940
  `;
774
941
 
775
942
  exports[`StyledMaxLengthMessage renders correctly with themeState filled 1`] = `
776
- <Text
777
- allowFontScaling={false}
943
+ <View
778
944
  style={
779
- [
780
- {
781
- "color": "#001f23",
782
- "fontFamily": "BeVietnamPro-Regular",
783
- "fontSize": 12,
784
- "letterSpacing": 0.48,
785
- "lineHeight": 16,
786
- },
945
+ {
946
+ "flex": 1,
947
+ }
948
+ }
949
+ >
950
+ <Text
951
+ allowFontScaling={false}
952
+ style={
787
953
  [
788
954
  {
789
- "alignSelf": "flex-end",
790
955
  "color": "#001f23",
791
- "flex": 1,
792
- "flexGrow": 1,
793
- "marginRight": 4,
794
- "textAlign": "right",
956
+ "fontFamily": "BeVietnamPro-Regular",
957
+ "fontSize": 12,
958
+ "letterSpacing": 0.48,
959
+ "lineHeight": 16,
960
+ },
961
+ [
962
+ {
963
+ "alignSelf": "flex-end",
964
+ "color": "#001f23",
965
+ "flex": 1,
966
+ "flexGrow": 1,
967
+ "marginRight": 4,
968
+ "textAlign": "right",
969
+ },
970
+ undefined,
971
+ ],
972
+ ]
973
+ }
974
+ themeFontWeight="regular"
975
+ themeIntent="body"
976
+ themeState="filled"
977
+ >
978
+ 100/255
979
+ </Text>
980
+ <View
981
+ pointerEvents="box-none"
982
+ position="bottom"
983
+ style={
984
+ [
985
+ {
986
+ "bottom": 0,
987
+ "elevation": 9999,
988
+ "flexDirection": "column-reverse",
989
+ "left": 0,
990
+ "paddingHorizontal": 24,
991
+ "paddingVertical": 16,
992
+ "position": "absolute",
993
+ "right": 0,
994
+ "top": 0,
795
995
  },
796
996
  undefined,
797
- ],
798
- ]
799
- }
800
- themeFontWeight="regular"
801
- themeIntent="body"
802
- themeState="filled"
803
- >
804
- 100/255
805
- </Text>
997
+ ]
998
+ }
999
+ />
1000
+ </View>
806
1001
  `;
807
1002
 
808
1003
  exports[`StyledMaxLengthMessage renders correctly with themeState readonly 1`] = `
809
- <Text
810
- allowFontScaling={false}
1004
+ <View
811
1005
  style={
812
- [
813
- {
814
- "color": "#001f23",
815
- "fontFamily": "BeVietnamPro-Regular",
816
- "fontSize": 12,
817
- "letterSpacing": 0.48,
818
- "lineHeight": 16,
819
- },
820
- [
821
- {
822
- "alignSelf": "flex-end",
823
- "color": "#808f91",
824
- "flex": 1,
825
- "flexGrow": 1,
826
- "marginRight": 4,
827
- "textAlign": "right",
828
- },
829
- undefined,
830
- ],
831
- ]
1006
+ {
1007
+ "flex": 1,
1008
+ }
832
1009
  }
833
- themeFontWeight="regular"
834
- themeIntent="body"
835
- themeState="readonly"
836
1010
  >
837
- 100/255
838
- </Text>
1011
+ <Text
1012
+ allowFontScaling={false}
1013
+ style={
1014
+ [
1015
+ {
1016
+ "color": "#001f23",
1017
+ "fontFamily": "BeVietnamPro-Regular",
1018
+ "fontSize": 12,
1019
+ "letterSpacing": 0.48,
1020
+ "lineHeight": 16,
1021
+ },
1022
+ [
1023
+ {
1024
+ "alignSelf": "flex-end",
1025
+ "color": "#808f91",
1026
+ "flex": 1,
1027
+ "flexGrow": 1,
1028
+ "marginRight": 4,
1029
+ "textAlign": "right",
1030
+ },
1031
+ undefined,
1032
+ ],
1033
+ ]
1034
+ }
1035
+ themeFontWeight="regular"
1036
+ themeIntent="body"
1037
+ themeState="readonly"
1038
+ >
1039
+ 100/255
1040
+ </Text>
1041
+ <View
1042
+ pointerEvents="box-none"
1043
+ position="bottom"
1044
+ style={
1045
+ [
1046
+ {
1047
+ "bottom": 0,
1048
+ "elevation": 9999,
1049
+ "flexDirection": "column-reverse",
1050
+ "left": 0,
1051
+ "paddingHorizontal": 24,
1052
+ "paddingVertical": 16,
1053
+ "position": "absolute",
1054
+ "right": 0,
1055
+ "top": 0,
1056
+ },
1057
+ undefined,
1058
+ ]
1059
+ }
1060
+ />
1061
+ </View>
839
1062
  `;
840
1063
 
841
1064
  exports[`StyledTextInput renders correctly with $themeState state 1`] = `
842
- <TextInput
1065
+ <View
843
1066
  style={
844
- [
845
- {
846
- "alignSelf": "stretch",
847
- "flexGrow": 2,
848
- "fontFamily": "BeVietnamPro-Regular",
849
- "fontSize": 16,
850
- "height": undefined,
851
- "marginHorizontal": 8,
852
- "maxHeight": 144,
853
- "paddingVertical": 0,
854
- "textAlignVertical": "center",
855
- },
856
- undefined,
857
- ]
1067
+ {
1068
+ "flex": 1,
1069
+ }
858
1070
  }
859
- themeVariant="text"
860
- />
1071
+ >
1072
+ <TextInput
1073
+ style={
1074
+ [
1075
+ {
1076
+ "alignSelf": "stretch",
1077
+ "flexGrow": 2,
1078
+ "fontFamily": "BeVietnamPro-Regular",
1079
+ "fontSize": 16,
1080
+ "height": undefined,
1081
+ "marginHorizontal": 8,
1082
+ "maxHeight": 144,
1083
+ "paddingVertical": 0,
1084
+ "textAlignVertical": "center",
1085
+ },
1086
+ undefined,
1087
+ ]
1088
+ }
1089
+ themeVariant="text"
1090
+ />
1091
+ <View
1092
+ pointerEvents="box-none"
1093
+ position="bottom"
1094
+ style={
1095
+ [
1096
+ {
1097
+ "bottom": 0,
1098
+ "elevation": 9999,
1099
+ "flexDirection": "column-reverse",
1100
+ "left": 0,
1101
+ "paddingHorizontal": 24,
1102
+ "paddingVertical": 16,
1103
+ "position": "absolute",
1104
+ "right": 0,
1105
+ "top": 0,
1106
+ },
1107
+ undefined,
1108
+ ]
1109
+ }
1110
+ />
1111
+ </View>
861
1112
  `;
862
1113
 
863
1114
  exports[`StyledTextInput renders correctly with $themeState state 2`] = `
864
- <TextInput
1115
+ <View
865
1116
  style={
866
- [
867
- {
868
- "alignSelf": "stretch",
869
- "flexGrow": 2,
870
- "fontFamily": "BeVietnamPro-Regular",
871
- "fontSize": 16,
872
- "height": 144,
873
- "marginHorizontal": 8,
874
- "maxHeight": 144,
875
- "paddingVertical": 0,
876
- "textAlignVertical": "top",
877
- },
878
- undefined,
879
- ]
1117
+ {
1118
+ "flex": 1,
1119
+ }
880
1120
  }
881
- themeVariant="textarea"
882
- />
1121
+ >
1122
+ <TextInput
1123
+ style={
1124
+ [
1125
+ {
1126
+ "alignSelf": "stretch",
1127
+ "flexGrow": 2,
1128
+ "fontFamily": "BeVietnamPro-Regular",
1129
+ "fontSize": 16,
1130
+ "height": 144,
1131
+ "marginHorizontal": 8,
1132
+ "maxHeight": 144,
1133
+ "paddingVertical": 0,
1134
+ "textAlignVertical": "top",
1135
+ },
1136
+ undefined,
1137
+ ]
1138
+ }
1139
+ themeVariant="textarea"
1140
+ />
1141
+ <View
1142
+ pointerEvents="box-none"
1143
+ position="bottom"
1144
+ style={
1145
+ [
1146
+ {
1147
+ "bottom": 0,
1148
+ "elevation": 9999,
1149
+ "flexDirection": "column-reverse",
1150
+ "left": 0,
1151
+ "paddingHorizontal": 24,
1152
+ "paddingVertical": 16,
1153
+ "position": "absolute",
1154
+ "right": 0,
1155
+ "top": 0,
1156
+ },
1157
+ undefined,
1158
+ ]
1159
+ }
1160
+ />
1161
+ </View>
883
1162
  `;