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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +30 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +2773 -2662
  5. package/jest-setup.ts +2 -0
  6. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  7. package/lib/index.js +2776 -2666
  8. package/package.json +23 -24
  9. package/rollup.config.js +0 -1
  10. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -384
  11. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
  12. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +791 -605
  13. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -567
  14. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +172 -110
  15. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -70
  16. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -581
  17. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +158 -57
  18. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -153
  19. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
  20. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
  21. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -242
  22. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -183
  23. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
  24. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
  25. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -140
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -880
  27. package/src/components/Button/StyledButton.tsx +4 -0
  28. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -106
  29. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1675 -1125
  30. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +71 -26
  31. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1651 -665
  32. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -330
  33. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
  34. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
  35. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
  36. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
  37. package/src/components/Carousel/CardCarousel.tsx +10 -7
  38. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -406
  39. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +197 -70
  40. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
  41. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1742 -1526
  42. package/src/components/Carousel/__tests__/index.spec.tsx +50 -3
  43. package/src/components/Carousel/index.tsx +16 -22
  44. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +404 -112
  45. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -334
  46. package/src/components/Chip/StyledChip.tsx +121 -0
  47. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1483 -0
  48. package/src/components/Chip/__tests__/index.spec.tsx +136 -0
  49. package/src/components/Chip/index.tsx +82 -0
  50. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
  51. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
  52. package/src/components/Collapse/index.tsx +1 -1
  53. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
  54. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +424 -268
  55. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -466
  56. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -160
  57. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -152
  58. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -389
  59. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
  60. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
  61. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -192
  62. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
  63. package/src/components/Error/StyledError.tsx +2 -1
  64. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +390 -262
  65. package/src/components/Error/__tests__/index.spec.tsx +9 -6
  66. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +860 -723
  67. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
  68. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +199 -99
  69. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +293 -185
  70. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
  71. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  72. package/src/components/Icon/IconList.ts +3 -0
  73. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
  74. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
  75. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -170
  76. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +760 -588
  77. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +272 -128
  78. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +477 -193
  79. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +169 -0
  80. package/src/components/Modal/__tests__/index.spec.tsx +99 -0
  81. package/src/components/Modal/index.tsx +178 -82
  82. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +84 -41
  83. package/src/components/PageControl/index.tsx +1 -0
  84. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
  85. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
  86. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
  87. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
  88. package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
  89. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
  90. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
  91. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -116
  92. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +257 -205
  93. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -600
  94. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
  95. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
  96. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
  97. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +413 -266
  98. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -35
  99. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -297
  100. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
  101. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
  102. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -57
  103. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2387 -2151
  104. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +621 -28
  105. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
  106. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -37
  107. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2321 -2085
  108. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +473 -23
  109. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
  110. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
  111. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
  112. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
  113. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
  114. package/src/components/Success/StyledSuccess.tsx +2 -1
  115. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +388 -258
  116. package/src/components/Success/__tests__/index.spec.tsx +9 -6
  117. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -75
  118. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
  119. package/src/components/Swipeable/index.tsx +3 -3
  120. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
  121. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +146 -109
  122. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
  123. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -68
  124. package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
  125. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
  126. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2217 -1962
  127. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -455
  128. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
  129. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1641 -1398
  130. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
  131. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
  132. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
  133. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -310
  134. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -540
  135. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -573
  136. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
  137. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -426
  138. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -363
  139. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
  140. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
  141. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
  142. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
  143. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
  144. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
  145. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
  146. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
  147. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
  148. package/src/index.ts +2 -2
  149. package/src/testHelpers/renderWithTheme.tsx +2 -2
  150. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +38 -1
  151. package/src/theme/components/button.ts +0 -1
  152. package/src/theme/components/chip.ts +47 -0
  153. package/src/theme/getTheme.ts +3 -0
  154. package/testUtils/setup.tsx +0 -18
  155. package/tsconfig.json +4 -1
  156. package/types/components/Accordion/AccordionItem.d.ts +2 -1
  157. package/types/components/Accordion/index.d.ts +1 -1
  158. package/types/components/Attachment/index.d.ts +2 -1
  159. package/types/components/Avatar/Avatar.d.ts +2 -1
  160. package/types/components/Avatar/AvatarStack/index.d.ts +2 -2
  161. package/types/components/Avatar/index.d.ts +3 -2
  162. package/types/components/Badge/StyledBadge.d.ts +0 -4
  163. package/types/components/BottomSheet/Footer.d.ts +2 -1
  164. package/types/components/BottomSheet/Header.d.ts +2 -1
  165. package/types/components/BottomSheet/ScrollView.d.ts +1 -0
  166. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -4
  167. package/types/components/Box/index.d.ts +2 -1
  168. package/types/components/Button/IconButton.d.ts +2 -1
  169. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -3
  170. package/types/components/Button/LoadingIndicator/index.d.ts +2 -1
  171. package/types/components/Button/UtilityButton/index.d.ts +2 -1
  172. package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
  173. package/types/components/Calendar/StyledCalendar.d.ts +1 -1
  174. package/types/components/Calendar/index.d.ts +2 -1
  175. package/types/components/Carousel/CardCarousel.d.ts +1 -1
  176. package/types/components/Carousel/CarouselItem.d.ts +2 -1
  177. package/types/components/Carousel/index.d.ts +2 -2
  178. package/types/components/Checkbox/index.d.ts +2 -1
  179. package/types/components/Chip/StyledChip.d.ts +31 -0
  180. package/types/components/Chip/index.d.ts +27 -0
  181. package/types/components/Collapse/StyledCollapse.d.ts +0 -2
  182. package/types/components/Collapse/index.d.ts +2 -1
  183. package/types/components/ContentNavigator/index.d.ts +2 -1
  184. package/types/components/DatePicker/DatePickerAndroid.d.ts +2 -1
  185. package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -1
  186. package/types/components/DatePicker/DatePickerIOS.d.ts +2 -1
  187. package/types/components/DatePicker/index.d.ts +2 -1
  188. package/types/components/Divider/index.d.ts +2 -1
  189. package/types/components/Drawer/StyledDrawer.d.ts +0 -6
  190. package/types/components/Error/StyledError.d.ts +3 -9
  191. package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -1
  192. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -4
  193. package/types/components/FAB/AnimatedFABIcon.d.ts +2 -1
  194. package/types/components/HeroDesignProvider/index.d.ts +2 -1
  195. package/types/components/Icon/AnimatedIcon.d.ts +2 -1
  196. package/types/components/Icon/IconList.d.ts +1 -1
  197. package/types/components/Icon/index.d.ts +3 -2
  198. package/types/components/Icon/utils.d.ts +1 -1
  199. package/types/components/Image/index.d.ts +1 -0
  200. package/types/components/Modal/index.d.ts +12 -8
  201. package/types/components/PageControl/StyledPageControl.d.ts +0 -2
  202. package/types/components/PageControl/index.d.ts +2 -1
  203. package/types/components/PinInput/PinCell.d.ts +2 -1
  204. package/types/components/Portal/PortalHost.d.ts +1 -1
  205. package/types/components/Portal/PortalProvider.d.ts +1 -1
  206. package/types/components/Portal/index.d.ts +2 -2
  207. package/types/components/Progress/ProgressBar.d.ts +1 -0
  208. package/types/components/Progress/StyledProgressBar.d.ts +0 -2
  209. package/types/components/Progress/index.d.ts +1 -0
  210. package/types/components/Rate/StyledRate.d.ts +0 -2
  211. package/types/components/Rate/index.d.ts +2 -1
  212. package/types/components/RefreshControl/index.d.ts +2 -1
  213. package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -1
  214. package/types/components/RichTextEditor/MentionList.d.ts +2 -1
  215. package/types/components/RichTextEditor/index.d.ts +2 -2
  216. package/types/components/Select/BaseOptionList.d.ts +1 -1
  217. package/types/components/Select/Footer.d.ts +2 -1
  218. package/types/components/Select/MultiSelect/Option.d.ts +2 -1
  219. package/types/components/Select/MultiSelect/OptionList.d.ts +2 -1
  220. package/types/components/Select/MultiSelect/index.d.ts +1 -1
  221. package/types/components/Select/SingleSelect/Option.d.ts +2 -1
  222. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  223. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
  224. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  225. package/types/components/Select/helpers.d.ts +1 -2
  226. package/types/components/Select/index.d.ts +2 -1
  227. package/types/components/Skeleton/index.d.ts +2 -1
  228. package/types/components/Slider/index.d.ts +2 -1
  229. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  230. package/types/components/Success/StyledSuccess.d.ts +3 -7
  231. package/types/components/Swipeable/SwipeableAction.d.ts +2 -2
  232. package/types/components/Swipeable/index.d.ts +3 -3
  233. package/types/components/Switch/SelectorSwitch/Option.d.ts +2 -1
  234. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -6
  235. package/types/components/Switch/StyledSwitch.d.ts +0 -2
  236. package/types/components/Tabs/ActiveTabIndicator.d.ts +2 -1
  237. package/types/components/Tabs/SceneView.d.ts +1 -1
  238. package/types/components/Tabs/ScrollableTabs.d.ts +2 -1
  239. package/types/components/Tabs/ScrollableTabsHeader.d.ts +2 -1
  240. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -4
  241. package/types/components/Tabs/StyledTabs.d.ts +0 -4
  242. package/types/components/Tabs/TabWithBadge.d.ts +2 -2
  243. package/types/components/Tabs/index.d.ts +2 -1
  244. package/types/components/TextInput/StyledTextInput.d.ts +1 -1
  245. package/types/components/TextInput/index.d.ts +1 -1
  246. package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -1
  247. package/types/components/TimePicker/TimePickerIOS.d.ts +2 -1
  248. package/types/components/TimePicker/index.d.ts +2 -1
  249. package/types/components/Toast/StyledToast.d.ts +0 -2
  250. package/types/components/Toast/Toast.d.ts +1 -0
  251. package/types/components/Toast/ToastProvider.d.ts +2 -1
  252. package/types/components/Toast/index.d.ts +1 -1
  253. package/types/components/Toolbar/ToolbarGroup.d.ts +2 -1
  254. package/types/components/Toolbar/ToolbarItem.d.ts +2 -1
  255. package/types/components/Toolbar/index.d.ts +3 -2
  256. package/types/components/Typography/Body/index.d.ts +2 -1
  257. package/types/components/Typography/Caption/index.d.ts +2 -1
  258. package/types/components/Typography/Label/index.d.ts +2 -1
  259. package/types/components/Typography/Text/index.d.ts +2 -1
  260. package/types/components/Typography/Title/index.d.ts +2 -1
  261. package/types/index.d.ts +2 -2
  262. package/types/testHelpers/renderWithTheme.d.ts +1 -0
  263. package/types/theme/ThemeSwitcher.d.ts +2 -2
  264. package/types/theme/components/button.d.ts +0 -1
  265. package/types/theme/components/chip.d.ts +40 -0
  266. package/types/theme/getTheme.d.ts +2 -0
  267. package/.turbo/turbo-publish:npm.log +0 -0
  268. package/src/components/Modal/ModalContentWrapper.tsx +0 -112
  269. package/src/components/Modal/ModalPresenter/ModalPresenter.tsx +0 -135
  270. package/src/components/Modal/ModalPresenter/index.tsx +0 -9
  271. package/src/components/Modal/ModalProvider.tsx +0 -8
  272. package/types/components/Modal/ModalContentWrapper.d.ts +0 -16
  273. package/types/components/Modal/ModalPresenter/ModalPresenter.d.ts +0 -34
  274. package/types/components/Modal/ModalPresenter/index.d.ts +0 -3
  275. package/types/components/Modal/ModalProvider.d.ts +0 -5
@@ -3,925 +3,1206 @@
3
3
  exports[`Alert Icon render custom icon correctly 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "backgroundColor": "#b5c3fd",
9
- "borderRadius": 16,
10
- "flexDirection": "row",
11
- "minHeight": 48,
12
- },
13
- undefined,
14
- ]
6
+ {
7
+ "flex": 1,
8
+ }
15
9
  }
16
- themeIntent="info"
17
- themeVariant="rounded"
18
10
  >
19
11
  <View
20
- showDivider={false}
21
12
  style={
22
13
  [
23
14
  {
24
- "borderColor": "#e8e9ea",
25
- "borderRightWidth": 0,
26
- "flex": 1,
15
+ "backgroundColor": "#b5c3fd",
16
+ "borderRadius": 16,
27
17
  "flexDirection": "row",
28
- "paddingVertical": 12,
18
+ "minHeight": 48,
29
19
  },
30
20
  undefined,
31
21
  ]
32
22
  }
23
+ themeIntent="info"
24
+ themeVariant="rounded"
33
25
  >
34
26
  <View
27
+ showDivider={false}
35
28
  style={
36
29
  [
37
30
  {
38
- "alignItems": "center",
39
- "paddingLeft": 12,
31
+ "borderColor": "#e8e9ea",
32
+ "borderRightWidth": 0,
33
+ "flex": 1,
34
+ "flexDirection": "row",
35
+ "paddingVertical": 12,
40
36
  },
41
37
  undefined,
42
38
  ]
43
39
  }
44
- testID="alert-left-icon"
45
40
  >
46
- <HeroIcon
47
- name="home"
41
+ <View
48
42
  style={
49
43
  [
50
44
  {
51
- "color": "#001f23",
52
- "fontSize": 20,
45
+ "alignItems": "center",
46
+ "paddingLeft": 12,
53
47
  },
54
48
  undefined,
55
49
  ]
56
50
  }
57
- themeIntent="text"
58
- themeSize="small"
59
- />
60
- </View>
61
- <View
62
- style={
63
- [
64
- {
65
- "flex": 1,
66
- "paddingHorizontal": 12,
67
- },
68
- undefined,
69
- ]
70
- }
71
- >
72
- <Text
73
- allowFontScaling={false}
51
+ testID="alert-left-icon"
52
+ >
53
+ <HeroIcon
54
+ name="home"
55
+ style={
56
+ [
57
+ {
58
+ "color": "#001f23",
59
+ "fontSize": 20,
60
+ },
61
+ undefined,
62
+ ]
63
+ }
64
+ themeIntent="text"
65
+ themeSize="small"
66
+ />
67
+ </View>
68
+ <View
74
69
  style={
75
70
  [
76
71
  {
77
- "color": "#001f23",
78
- "fontFamily": "BeVietnamPro-Regular",
79
- "fontSize": 14,
80
- "letterSpacing": 0.48,
81
- "lineHeight": 22,
72
+ "flex": 1,
73
+ "paddingHorizontal": 12,
82
74
  },
83
75
  undefined,
84
76
  ]
85
77
  }
86
- themeIntent="body"
87
- themeTypeface="neutral"
88
- themeVariant="small"
89
78
  >
90
- Content
91
- </Text>
79
+ <Text
80
+ allowFontScaling={false}
81
+ style={
82
+ [
83
+ {
84
+ "color": "#001f23",
85
+ "fontFamily": "BeVietnamPro-Regular",
86
+ "fontSize": 14,
87
+ "letterSpacing": 0.48,
88
+ "lineHeight": 22,
89
+ },
90
+ undefined,
91
+ ]
92
+ }
93
+ themeIntent="body"
94
+ themeTypeface="neutral"
95
+ themeVariant="small"
96
+ >
97
+ Content
98
+ </Text>
99
+ </View>
92
100
  </View>
93
101
  </View>
102
+ <View
103
+ pointerEvents="box-none"
104
+ position="bottom"
105
+ style={
106
+ [
107
+ {
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,
117
+ },
118
+ undefined,
119
+ ]
120
+ }
121
+ />
94
122
  </View>
95
123
  `;
96
124
 
97
125
  exports[`Alert renders correctly when intent is error 1`] = `
98
126
  <View
99
127
  style={
100
- [
101
- {
102
- "backgroundColor": "#f46363",
103
- "borderRadius": 16,
104
- "flexDirection": "row",
105
- "minHeight": 48,
106
- },
107
- undefined,
108
- ]
128
+ {
129
+ "flex": 1,
130
+ }
109
131
  }
110
- themeIntent="error"
111
- themeVariant="rounded"
112
132
  >
113
133
  <View
114
- showDivider={true}
115
134
  style={
116
135
  [
117
136
  {
118
- "borderColor": "#e8e9ea",
119
- "borderRightWidth": 1,
120
- "flex": 1,
137
+ "backgroundColor": "#f46363",
138
+ "borderRadius": 16,
121
139
  "flexDirection": "row",
122
- "paddingVertical": 12,
140
+ "minHeight": 48,
123
141
  },
124
142
  undefined,
125
143
  ]
126
144
  }
145
+ themeIntent="error"
146
+ themeVariant="rounded"
127
147
  >
128
148
  <View
149
+ showDivider={true}
129
150
  style={
130
151
  [
131
152
  {
132
- "alignItems": "center",
133
- "paddingLeft": 12,
153
+ "borderColor": "#e8e9ea",
154
+ "borderRightWidth": 1,
155
+ "flex": 1,
156
+ "flexDirection": "row",
157
+ "paddingVertical": 12,
134
158
  },
135
159
  undefined,
136
160
  ]
137
161
  }
138
- testID="alert-left-icon"
139
162
  >
140
- <HeroIcon
141
- name="circle-warning"
163
+ <View
142
164
  style={
143
165
  [
144
166
  {
145
- "color": "#001f23",
146
- "fontSize": 20,
167
+ "alignItems": "center",
168
+ "paddingLeft": 12,
147
169
  },
148
170
  undefined,
149
171
  ]
150
172
  }
151
- themeIntent="text"
152
- themeSize="small"
153
- />
154
- </View>
155
- <View
156
- style={
157
- [
158
- {
159
- "flex": 1,
160
- "paddingHorizontal": 12,
161
- },
162
- undefined,
163
- ]
164
- }
165
- >
166
- <Text
167
- allowFontScaling={false}
173
+ testID="alert-left-icon"
174
+ >
175
+ <HeroIcon
176
+ name="circle-warning"
177
+ style={
178
+ [
179
+ {
180
+ "color": "#001f23",
181
+ "fontSize": 20,
182
+ },
183
+ undefined,
184
+ ]
185
+ }
186
+ themeIntent="text"
187
+ themeSize="small"
188
+ />
189
+ </View>
190
+ <View
168
191
  style={
169
192
  [
170
193
  {
171
- "color": "#001f23",
172
- "fontFamily": "BeVietnamPro-SemiBold",
173
- "fontSize": 14,
174
- "letterSpacing": 0.24,
175
- "lineHeight": 22,
194
+ "flex": 1,
195
+ "paddingHorizontal": 12,
176
196
  },
177
197
  undefined,
178
198
  ]
179
199
  }
180
- themeIntent="body"
181
- themeTypeface="neutral"
182
- themeVariant="small-bold"
183
200
  >
184
- Title
185
- </Text>
186
- <Text
187
- allowFontScaling={false}
201
+ <Text
202
+ allowFontScaling={false}
203
+ style={
204
+ [
205
+ {
206
+ "color": "#001f23",
207
+ "fontFamily": "BeVietnamPro-SemiBold",
208
+ "fontSize": 14,
209
+ "letterSpacing": 0.24,
210
+ "lineHeight": 22,
211
+ },
212
+ undefined,
213
+ ]
214
+ }
215
+ themeIntent="body"
216
+ themeTypeface="neutral"
217
+ themeVariant="small-bold"
218
+ >
219
+ Title
220
+ </Text>
221
+ <Text
222
+ allowFontScaling={false}
223
+ style={
224
+ [
225
+ {
226
+ "color": "#001f23",
227
+ "fontFamily": "BeVietnamPro-Regular",
228
+ "fontSize": 14,
229
+ "letterSpacing": 0.48,
230
+ "lineHeight": 22,
231
+ },
232
+ undefined,
233
+ ]
234
+ }
235
+ themeIntent="body"
236
+ themeTypeface="neutral"
237
+ themeVariant="small"
238
+ >
239
+ Content
240
+ </Text>
241
+ </View>
242
+ </View>
243
+ <View
244
+ accessibilityState={
245
+ {
246
+ "busy": undefined,
247
+ "checked": undefined,
248
+ "disabled": undefined,
249
+ "expanded": undefined,
250
+ "selected": undefined,
251
+ }
252
+ }
253
+ accessibilityValue={
254
+ {
255
+ "max": undefined,
256
+ "min": undefined,
257
+ "now": undefined,
258
+ "text": undefined,
259
+ }
260
+ }
261
+ accessible={true}
262
+ collapsable={false}
263
+ focusable={true}
264
+ onClick={[Function]}
265
+ onResponderGrant={[Function]}
266
+ onResponderMove={[Function]}
267
+ onResponderRelease={[Function]}
268
+ onResponderTerminate={[Function]}
269
+ onResponderTerminationRequest={[Function]}
270
+ onStartShouldSetResponder={[Function]}
271
+ style={
272
+ {
273
+ "justifyContent": "center",
274
+ "opacity": 1,
275
+ "paddingHorizontal": 12,
276
+ }
277
+ }
278
+ testID="alert-close-icon"
279
+ >
280
+ <HeroIcon
281
+ name="cancel"
188
282
  style={
189
283
  [
190
284
  {
191
285
  "color": "#001f23",
192
- "fontFamily": "BeVietnamPro-Regular",
193
- "fontSize": 14,
194
- "letterSpacing": 0.48,
195
- "lineHeight": 22,
286
+ "fontSize": 20,
196
287
  },
197
288
  undefined,
198
289
  ]
199
290
  }
200
- themeIntent="body"
201
- themeTypeface="neutral"
202
- themeVariant="small"
203
- >
204
- Content
205
- </Text>
291
+ themeIntent="text"
292
+ themeSize="small"
293
+ />
206
294
  </View>
207
295
  </View>
208
296
  <View
209
- accessible={true}
210
- collapsable={false}
211
- focusable={true}
212
- onClick={[Function]}
213
- onResponderGrant={[Function]}
214
- onResponderMove={[Function]}
215
- onResponderRelease={[Function]}
216
- onResponderTerminate={[Function]}
217
- onResponderTerminationRequest={[Function]}
218
- onStartShouldSetResponder={[Function]}
297
+ pointerEvents="box-none"
298
+ position="bottom"
219
299
  style={
220
- {
221
- "justifyContent": "center",
222
- "opacity": 1,
223
- "paddingHorizontal": 12,
224
- }
300
+ [
301
+ {
302
+ "bottom": 0,
303
+ "elevation": 9999,
304
+ "flexDirection": "column-reverse",
305
+ "left": 0,
306
+ "paddingHorizontal": 24,
307
+ "paddingVertical": 16,
308
+ "position": "absolute",
309
+ "right": 0,
310
+ "top": 0,
311
+ },
312
+ undefined,
313
+ ]
225
314
  }
226
- testID="alert-close-icon"
227
- >
228
- <HeroIcon
229
- name="cancel"
230
- style={
231
- [
232
- {
233
- "color": "#001f23",
234
- "fontSize": 20,
235
- },
236
- undefined,
237
- ]
238
- }
239
- themeIntent="text"
240
- themeSize="small"
241
- />
242
- </View>
315
+ />
243
316
  </View>
244
317
  `;
245
318
 
246
319
  exports[`Alert renders correctly when intent is info 1`] = `
247
320
  <View
248
321
  style={
249
- [
250
- {
251
- "backgroundColor": "#b5c3fd",
252
- "borderRadius": 16,
253
- "flexDirection": "row",
254
- "minHeight": 48,
255
- },
256
- undefined,
257
- ]
322
+ {
323
+ "flex": 1,
324
+ }
258
325
  }
259
- themeIntent="info"
260
- themeVariant="rounded"
261
326
  >
262
327
  <View
263
- showDivider={true}
264
328
  style={
265
329
  [
266
330
  {
267
- "borderColor": "#e8e9ea",
268
- "borderRightWidth": 1,
269
- "flex": 1,
331
+ "backgroundColor": "#b5c3fd",
332
+ "borderRadius": 16,
270
333
  "flexDirection": "row",
271
- "paddingVertical": 12,
334
+ "minHeight": 48,
272
335
  },
273
336
  undefined,
274
337
  ]
275
338
  }
339
+ themeIntent="info"
340
+ themeVariant="rounded"
276
341
  >
277
342
  <View
343
+ showDivider={true}
278
344
  style={
279
345
  [
280
346
  {
281
- "alignItems": "center",
282
- "paddingLeft": 12,
347
+ "borderColor": "#e8e9ea",
348
+ "borderRightWidth": 1,
349
+ "flex": 1,
350
+ "flexDirection": "row",
351
+ "paddingVertical": 12,
283
352
  },
284
353
  undefined,
285
354
  ]
286
355
  }
287
- testID="alert-left-icon"
288
356
  >
289
- <HeroIcon
290
- name="circle-info"
357
+ <View
291
358
  style={
292
359
  [
293
360
  {
294
- "color": "#001f23",
295
- "fontSize": 20,
361
+ "alignItems": "center",
362
+ "paddingLeft": 12,
296
363
  },
297
364
  undefined,
298
365
  ]
299
366
  }
300
- themeIntent="text"
301
- themeSize="small"
302
- />
303
- </View>
304
- <View
305
- style={
306
- [
307
- {
308
- "flex": 1,
309
- "paddingHorizontal": 12,
310
- },
311
- undefined,
312
- ]
313
- }
314
- >
315
- <Text
316
- allowFontScaling={false}
367
+ testID="alert-left-icon"
368
+ >
369
+ <HeroIcon
370
+ name="circle-info"
371
+ style={
372
+ [
373
+ {
374
+ "color": "#001f23",
375
+ "fontSize": 20,
376
+ },
377
+ undefined,
378
+ ]
379
+ }
380
+ themeIntent="text"
381
+ themeSize="small"
382
+ />
383
+ </View>
384
+ <View
317
385
  style={
318
386
  [
319
387
  {
320
- "color": "#001f23",
321
- "fontFamily": "BeVietnamPro-SemiBold",
322
- "fontSize": 14,
323
- "letterSpacing": 0.24,
324
- "lineHeight": 22,
388
+ "flex": 1,
389
+ "paddingHorizontal": 12,
325
390
  },
326
391
  undefined,
327
392
  ]
328
393
  }
329
- themeIntent="body"
330
- themeTypeface="neutral"
331
- themeVariant="small-bold"
332
394
  >
333
- Title
334
- </Text>
335
- <Text
336
- allowFontScaling={false}
395
+ <Text
396
+ allowFontScaling={false}
397
+ style={
398
+ [
399
+ {
400
+ "color": "#001f23",
401
+ "fontFamily": "BeVietnamPro-SemiBold",
402
+ "fontSize": 14,
403
+ "letterSpacing": 0.24,
404
+ "lineHeight": 22,
405
+ },
406
+ undefined,
407
+ ]
408
+ }
409
+ themeIntent="body"
410
+ themeTypeface="neutral"
411
+ themeVariant="small-bold"
412
+ >
413
+ Title
414
+ </Text>
415
+ <Text
416
+ allowFontScaling={false}
417
+ style={
418
+ [
419
+ {
420
+ "color": "#001f23",
421
+ "fontFamily": "BeVietnamPro-Regular",
422
+ "fontSize": 14,
423
+ "letterSpacing": 0.48,
424
+ "lineHeight": 22,
425
+ },
426
+ undefined,
427
+ ]
428
+ }
429
+ themeIntent="body"
430
+ themeTypeface="neutral"
431
+ themeVariant="small"
432
+ >
433
+ Content
434
+ </Text>
435
+ </View>
436
+ </View>
437
+ <View
438
+ accessibilityState={
439
+ {
440
+ "busy": undefined,
441
+ "checked": undefined,
442
+ "disabled": undefined,
443
+ "expanded": undefined,
444
+ "selected": undefined,
445
+ }
446
+ }
447
+ accessibilityValue={
448
+ {
449
+ "max": undefined,
450
+ "min": undefined,
451
+ "now": undefined,
452
+ "text": undefined,
453
+ }
454
+ }
455
+ accessible={true}
456
+ collapsable={false}
457
+ focusable={true}
458
+ onClick={[Function]}
459
+ onResponderGrant={[Function]}
460
+ onResponderMove={[Function]}
461
+ onResponderRelease={[Function]}
462
+ onResponderTerminate={[Function]}
463
+ onResponderTerminationRequest={[Function]}
464
+ onStartShouldSetResponder={[Function]}
465
+ style={
466
+ {
467
+ "justifyContent": "center",
468
+ "opacity": 1,
469
+ "paddingHorizontal": 12,
470
+ }
471
+ }
472
+ testID="alert-close-icon"
473
+ >
474
+ <HeroIcon
475
+ name="cancel"
337
476
  style={
338
477
  [
339
478
  {
340
479
  "color": "#001f23",
341
- "fontFamily": "BeVietnamPro-Regular",
342
- "fontSize": 14,
343
- "letterSpacing": 0.48,
344
- "lineHeight": 22,
480
+ "fontSize": 20,
345
481
  },
346
482
  undefined,
347
483
  ]
348
484
  }
349
- themeIntent="body"
350
- themeTypeface="neutral"
351
- themeVariant="small"
352
- >
353
- Content
354
- </Text>
485
+ themeIntent="text"
486
+ themeSize="small"
487
+ />
355
488
  </View>
356
489
  </View>
357
490
  <View
358
- accessible={true}
359
- collapsable={false}
360
- focusable={true}
361
- onClick={[Function]}
362
- onResponderGrant={[Function]}
363
- onResponderMove={[Function]}
364
- onResponderRelease={[Function]}
365
- onResponderTerminate={[Function]}
366
- onResponderTerminationRequest={[Function]}
367
- onStartShouldSetResponder={[Function]}
491
+ pointerEvents="box-none"
492
+ position="bottom"
368
493
  style={
369
- {
370
- "justifyContent": "center",
371
- "opacity": 1,
372
- "paddingHorizontal": 12,
373
- }
494
+ [
495
+ {
496
+ "bottom": 0,
497
+ "elevation": 9999,
498
+ "flexDirection": "column-reverse",
499
+ "left": 0,
500
+ "paddingHorizontal": 24,
501
+ "paddingVertical": 16,
502
+ "position": "absolute",
503
+ "right": 0,
504
+ "top": 0,
505
+ },
506
+ undefined,
507
+ ]
374
508
  }
375
- testID="alert-close-icon"
376
- >
377
- <HeroIcon
378
- name="cancel"
379
- style={
380
- [
381
- {
382
- "color": "#001f23",
383
- "fontSize": 20,
384
- },
385
- undefined,
386
- ]
387
- }
388
- themeIntent="text"
389
- themeSize="small"
390
- />
391
- </View>
509
+ />
392
510
  </View>
393
511
  `;
394
512
 
395
513
  exports[`Alert renders correctly when intent is notification 1`] = `
396
514
  <View
397
515
  style={
398
- [
399
- {
400
- "backgroundColor": "#ffffff",
401
- "borderRadius": 16,
402
- "flexDirection": "row",
403
- "minHeight": 48,
404
- },
405
- undefined,
406
- ]
516
+ {
517
+ "flex": 1,
518
+ }
407
519
  }
408
- themeIntent="notification"
409
- themeVariant="rounded"
410
520
  >
411
521
  <View
412
- showDivider={true}
413
522
  style={
414
523
  [
415
524
  {
416
- "borderColor": "#e8e9ea",
417
- "borderRightWidth": 1,
418
- "flex": 1,
525
+ "backgroundColor": "#ffffff",
526
+ "borderRadius": 16,
419
527
  "flexDirection": "row",
420
- "paddingVertical": 12,
528
+ "minHeight": 48,
421
529
  },
422
530
  undefined,
423
531
  ]
424
532
  }
533
+ themeIntent="notification"
534
+ themeVariant="rounded"
425
535
  >
426
536
  <View
537
+ showDivider={true}
427
538
  style={
428
539
  [
429
540
  {
541
+ "borderColor": "#e8e9ea",
542
+ "borderRightWidth": 1,
430
543
  "flex": 1,
431
- "paddingHorizontal": 12,
544
+ "flexDirection": "row",
545
+ "paddingVertical": 12,
432
546
  },
433
547
  undefined,
434
548
  ]
435
549
  }
436
550
  >
437
- <Text
438
- allowFontScaling={false}
551
+ <View
439
552
  style={
440
553
  [
441
554
  {
442
- "color": "#001f23",
443
- "fontFamily": "BeVietnamPro-SemiBold",
444
- "fontSize": 14,
445
- "letterSpacing": 0.24,
446
- "lineHeight": 22,
555
+ "flex": 1,
556
+ "paddingHorizontal": 12,
447
557
  },
448
558
  undefined,
449
559
  ]
450
560
  }
451
- themeIntent="body"
452
- themeTypeface="neutral"
453
- themeVariant="small-bold"
454
561
  >
455
- Title
456
- </Text>
457
- <Text
458
- allowFontScaling={false}
562
+ <Text
563
+ allowFontScaling={false}
564
+ style={
565
+ [
566
+ {
567
+ "color": "#001f23",
568
+ "fontFamily": "BeVietnamPro-SemiBold",
569
+ "fontSize": 14,
570
+ "letterSpacing": 0.24,
571
+ "lineHeight": 22,
572
+ },
573
+ undefined,
574
+ ]
575
+ }
576
+ themeIntent="body"
577
+ themeTypeface="neutral"
578
+ themeVariant="small-bold"
579
+ >
580
+ Title
581
+ </Text>
582
+ <Text
583
+ allowFontScaling={false}
584
+ style={
585
+ [
586
+ {
587
+ "color": "#001f23",
588
+ "fontFamily": "BeVietnamPro-Regular",
589
+ "fontSize": 14,
590
+ "letterSpacing": 0.48,
591
+ "lineHeight": 22,
592
+ },
593
+ undefined,
594
+ ]
595
+ }
596
+ themeIntent="body"
597
+ themeTypeface="neutral"
598
+ themeVariant="small"
599
+ >
600
+ Content
601
+ </Text>
602
+ </View>
603
+ </View>
604
+ <View
605
+ accessibilityState={
606
+ {
607
+ "busy": undefined,
608
+ "checked": undefined,
609
+ "disabled": undefined,
610
+ "expanded": undefined,
611
+ "selected": undefined,
612
+ }
613
+ }
614
+ accessibilityValue={
615
+ {
616
+ "max": undefined,
617
+ "min": undefined,
618
+ "now": undefined,
619
+ "text": undefined,
620
+ }
621
+ }
622
+ accessible={true}
623
+ collapsable={false}
624
+ focusable={true}
625
+ onClick={[Function]}
626
+ onResponderGrant={[Function]}
627
+ onResponderMove={[Function]}
628
+ onResponderRelease={[Function]}
629
+ onResponderTerminate={[Function]}
630
+ onResponderTerminationRequest={[Function]}
631
+ onStartShouldSetResponder={[Function]}
632
+ style={
633
+ {
634
+ "justifyContent": "center",
635
+ "opacity": 1,
636
+ "paddingHorizontal": 12,
637
+ }
638
+ }
639
+ testID="alert-close-icon"
640
+ >
641
+ <HeroIcon
642
+ name="cancel"
459
643
  style={
460
644
  [
461
645
  {
462
646
  "color": "#001f23",
463
- "fontFamily": "BeVietnamPro-Regular",
464
- "fontSize": 14,
465
- "letterSpacing": 0.48,
466
- "lineHeight": 22,
647
+ "fontSize": 20,
467
648
  },
468
649
  undefined,
469
650
  ]
470
651
  }
471
- themeIntent="body"
472
- themeTypeface="neutral"
473
- themeVariant="small"
474
- >
475
- Content
476
- </Text>
652
+ themeIntent="text"
653
+ themeSize="small"
654
+ />
477
655
  </View>
478
656
  </View>
479
657
  <View
480
- accessible={true}
481
- collapsable={false}
482
- focusable={true}
483
- onClick={[Function]}
484
- onResponderGrant={[Function]}
485
- onResponderMove={[Function]}
486
- onResponderRelease={[Function]}
487
- onResponderTerminate={[Function]}
488
- onResponderTerminationRequest={[Function]}
489
- onStartShouldSetResponder={[Function]}
658
+ pointerEvents="box-none"
659
+ position="bottom"
490
660
  style={
491
- {
492
- "justifyContent": "center",
493
- "opacity": 1,
494
- "paddingHorizontal": 12,
495
- }
661
+ [
662
+ {
663
+ "bottom": 0,
664
+ "elevation": 9999,
665
+ "flexDirection": "column-reverse",
666
+ "left": 0,
667
+ "paddingHorizontal": 24,
668
+ "paddingVertical": 16,
669
+ "position": "absolute",
670
+ "right": 0,
671
+ "top": 0,
672
+ },
673
+ undefined,
674
+ ]
496
675
  }
497
- testID="alert-close-icon"
498
- >
499
- <HeroIcon
500
- name="cancel"
501
- style={
502
- [
503
- {
504
- "color": "#001f23",
505
- "fontSize": 20,
506
- },
507
- undefined,
508
- ]
509
- }
510
- themeIntent="text"
511
- themeSize="small"
512
- />
513
- </View>
676
+ />
514
677
  </View>
515
678
  `;
516
679
 
517
680
  exports[`Alert renders correctly when intent is success 1`] = `
518
681
  <View
519
682
  style={
520
- [
521
- {
522
- "backgroundColor": "#5ace7d",
523
- "borderRadius": 16,
524
- "flexDirection": "row",
525
- "minHeight": 48,
526
- },
527
- undefined,
528
- ]
683
+ {
684
+ "flex": 1,
685
+ }
529
686
  }
530
- themeIntent="success"
531
- themeVariant="rounded"
532
687
  >
533
688
  <View
534
- showDivider={true}
535
689
  style={
536
690
  [
537
691
  {
538
- "borderColor": "#e8e9ea",
539
- "borderRightWidth": 1,
540
- "flex": 1,
692
+ "backgroundColor": "#5ace7d",
693
+ "borderRadius": 16,
541
694
  "flexDirection": "row",
542
- "paddingVertical": 12,
695
+ "minHeight": 48,
543
696
  },
544
697
  undefined,
545
698
  ]
546
699
  }
700
+ themeIntent="success"
701
+ themeVariant="rounded"
547
702
  >
548
703
  <View
704
+ showDivider={true}
549
705
  style={
550
706
  [
551
707
  {
552
- "alignItems": "center",
553
- "paddingLeft": 12,
708
+ "borderColor": "#e8e9ea",
709
+ "borderRightWidth": 1,
710
+ "flex": 1,
711
+ "flexDirection": "row",
712
+ "paddingVertical": 12,
554
713
  },
555
714
  undefined,
556
715
  ]
557
716
  }
558
- testID="alert-left-icon"
559
717
  >
560
- <HeroIcon
561
- name="circle-ok"
718
+ <View
562
719
  style={
563
720
  [
564
721
  {
565
- "color": "#001f23",
566
- "fontSize": 20,
722
+ "alignItems": "center",
723
+ "paddingLeft": 12,
567
724
  },
568
725
  undefined,
569
726
  ]
570
727
  }
571
- themeIntent="text"
572
- themeSize="small"
573
- />
574
- </View>
575
- <View
576
- style={
577
- [
578
- {
579
- "flex": 1,
580
- "paddingHorizontal": 12,
581
- },
582
- undefined,
583
- ]
584
- }
585
- >
586
- <Text
587
- allowFontScaling={false}
728
+ testID="alert-left-icon"
729
+ >
730
+ <HeroIcon
731
+ name="circle-ok"
732
+ style={
733
+ [
734
+ {
735
+ "color": "#001f23",
736
+ "fontSize": 20,
737
+ },
738
+ undefined,
739
+ ]
740
+ }
741
+ themeIntent="text"
742
+ themeSize="small"
743
+ />
744
+ </View>
745
+ <View
588
746
  style={
589
747
  [
590
748
  {
591
- "color": "#001f23",
592
- "fontFamily": "BeVietnamPro-SemiBold",
593
- "fontSize": 14,
594
- "letterSpacing": 0.24,
595
- "lineHeight": 22,
749
+ "flex": 1,
750
+ "paddingHorizontal": 12,
596
751
  },
597
752
  undefined,
598
753
  ]
599
754
  }
600
- themeIntent="body"
601
- themeTypeface="neutral"
602
- themeVariant="small-bold"
603
755
  >
604
- Title
605
- </Text>
606
- <Text
607
- allowFontScaling={false}
756
+ <Text
757
+ allowFontScaling={false}
758
+ style={
759
+ [
760
+ {
761
+ "color": "#001f23",
762
+ "fontFamily": "BeVietnamPro-SemiBold",
763
+ "fontSize": 14,
764
+ "letterSpacing": 0.24,
765
+ "lineHeight": 22,
766
+ },
767
+ undefined,
768
+ ]
769
+ }
770
+ themeIntent="body"
771
+ themeTypeface="neutral"
772
+ themeVariant="small-bold"
773
+ >
774
+ Title
775
+ </Text>
776
+ <Text
777
+ allowFontScaling={false}
778
+ style={
779
+ [
780
+ {
781
+ "color": "#001f23",
782
+ "fontFamily": "BeVietnamPro-Regular",
783
+ "fontSize": 14,
784
+ "letterSpacing": 0.48,
785
+ "lineHeight": 22,
786
+ },
787
+ undefined,
788
+ ]
789
+ }
790
+ themeIntent="body"
791
+ themeTypeface="neutral"
792
+ themeVariant="small"
793
+ >
794
+ Content
795
+ </Text>
796
+ </View>
797
+ </View>
798
+ <View
799
+ accessibilityState={
800
+ {
801
+ "busy": undefined,
802
+ "checked": undefined,
803
+ "disabled": undefined,
804
+ "expanded": undefined,
805
+ "selected": undefined,
806
+ }
807
+ }
808
+ accessibilityValue={
809
+ {
810
+ "max": undefined,
811
+ "min": undefined,
812
+ "now": undefined,
813
+ "text": undefined,
814
+ }
815
+ }
816
+ accessible={true}
817
+ collapsable={false}
818
+ focusable={true}
819
+ onClick={[Function]}
820
+ onResponderGrant={[Function]}
821
+ onResponderMove={[Function]}
822
+ onResponderRelease={[Function]}
823
+ onResponderTerminate={[Function]}
824
+ onResponderTerminationRequest={[Function]}
825
+ onStartShouldSetResponder={[Function]}
826
+ style={
827
+ {
828
+ "justifyContent": "center",
829
+ "opacity": 1,
830
+ "paddingHorizontal": 12,
831
+ }
832
+ }
833
+ testID="alert-close-icon"
834
+ >
835
+ <HeroIcon
836
+ name="cancel"
608
837
  style={
609
838
  [
610
839
  {
611
840
  "color": "#001f23",
612
- "fontFamily": "BeVietnamPro-Regular",
613
- "fontSize": 14,
614
- "letterSpacing": 0.48,
615
- "lineHeight": 22,
841
+ "fontSize": 20,
616
842
  },
617
843
  undefined,
618
844
  ]
619
845
  }
620
- themeIntent="body"
621
- themeTypeface="neutral"
622
- themeVariant="small"
623
- >
624
- Content
625
- </Text>
846
+ themeIntent="text"
847
+ themeSize="small"
848
+ />
626
849
  </View>
627
850
  </View>
628
851
  <View
629
- accessible={true}
630
- collapsable={false}
631
- focusable={true}
632
- onClick={[Function]}
633
- onResponderGrant={[Function]}
634
- onResponderMove={[Function]}
635
- onResponderRelease={[Function]}
636
- onResponderTerminate={[Function]}
637
- onResponderTerminationRequest={[Function]}
638
- onStartShouldSetResponder={[Function]}
852
+ pointerEvents="box-none"
853
+ position="bottom"
639
854
  style={
640
- {
641
- "justifyContent": "center",
642
- "opacity": 1,
643
- "paddingHorizontal": 12,
644
- }
855
+ [
856
+ {
857
+ "bottom": 0,
858
+ "elevation": 9999,
859
+ "flexDirection": "column-reverse",
860
+ "left": 0,
861
+ "paddingHorizontal": 24,
862
+ "paddingVertical": 16,
863
+ "position": "absolute",
864
+ "right": 0,
865
+ "top": 0,
866
+ },
867
+ undefined,
868
+ ]
645
869
  }
646
- testID="alert-close-icon"
647
- >
648
- <HeroIcon
649
- name="cancel"
650
- style={
651
- [
652
- {
653
- "color": "#001f23",
654
- "fontSize": 20,
655
- },
656
- undefined,
657
- ]
658
- }
659
- themeIntent="text"
660
- themeSize="small"
661
- />
662
- </View>
870
+ />
663
871
  </View>
664
872
  `;
665
873
 
666
874
  exports[`Alert renders correctly when intent is warning 1`] = `
667
875
  <View
668
876
  style={
669
- [
670
- {
671
- "backgroundColor": "#ffbe71",
672
- "borderRadius": 16,
673
- "flexDirection": "row",
674
- "minHeight": 48,
675
- },
676
- undefined,
677
- ]
877
+ {
878
+ "flex": 1,
879
+ }
678
880
  }
679
- themeIntent="warning"
680
- themeVariant="rounded"
681
881
  >
682
882
  <View
683
- showDivider={true}
684
883
  style={
685
884
  [
686
885
  {
687
- "borderColor": "#e8e9ea",
688
- "borderRightWidth": 1,
689
- "flex": 1,
886
+ "backgroundColor": "#ffbe71",
887
+ "borderRadius": 16,
690
888
  "flexDirection": "row",
691
- "paddingVertical": 12,
889
+ "minHeight": 48,
692
890
  },
693
891
  undefined,
694
892
  ]
695
893
  }
894
+ themeIntent="warning"
895
+ themeVariant="rounded"
696
896
  >
697
897
  <View
898
+ showDivider={true}
698
899
  style={
699
900
  [
700
901
  {
701
- "alignItems": "center",
702
- "paddingLeft": 12,
902
+ "borderColor": "#e8e9ea",
903
+ "borderRightWidth": 1,
904
+ "flex": 1,
905
+ "flexDirection": "row",
906
+ "paddingVertical": 12,
703
907
  },
704
908
  undefined,
705
909
  ]
706
910
  }
707
- testID="alert-left-icon"
708
911
  >
709
- <HeroIcon
710
- name="warning"
912
+ <View
711
913
  style={
712
914
  [
713
915
  {
714
- "color": "#001f23",
715
- "fontSize": 20,
916
+ "alignItems": "center",
917
+ "paddingLeft": 12,
716
918
  },
717
919
  undefined,
718
920
  ]
719
921
  }
720
- themeIntent="text"
721
- themeSize="small"
722
- />
723
- </View>
724
- <View
725
- style={
726
- [
727
- {
728
- "flex": 1,
729
- "paddingHorizontal": 12,
730
- },
731
- undefined,
732
- ]
733
- }
734
- >
735
- <Text
736
- allowFontScaling={false}
922
+ testID="alert-left-icon"
923
+ >
924
+ <HeroIcon
925
+ name="warning"
926
+ style={
927
+ [
928
+ {
929
+ "color": "#001f23",
930
+ "fontSize": 20,
931
+ },
932
+ undefined,
933
+ ]
934
+ }
935
+ themeIntent="text"
936
+ themeSize="small"
937
+ />
938
+ </View>
939
+ <View
737
940
  style={
738
941
  [
739
942
  {
740
- "color": "#001f23",
741
- "fontFamily": "BeVietnamPro-SemiBold",
742
- "fontSize": 14,
743
- "letterSpacing": 0.24,
744
- "lineHeight": 22,
943
+ "flex": 1,
944
+ "paddingHorizontal": 12,
745
945
  },
746
946
  undefined,
747
947
  ]
748
948
  }
749
- themeIntent="body"
750
- themeTypeface="neutral"
751
- themeVariant="small-bold"
752
949
  >
753
- Title
754
- </Text>
755
- <Text
756
- allowFontScaling={false}
950
+ <Text
951
+ allowFontScaling={false}
952
+ style={
953
+ [
954
+ {
955
+ "color": "#001f23",
956
+ "fontFamily": "BeVietnamPro-SemiBold",
957
+ "fontSize": 14,
958
+ "letterSpacing": 0.24,
959
+ "lineHeight": 22,
960
+ },
961
+ undefined,
962
+ ]
963
+ }
964
+ themeIntent="body"
965
+ themeTypeface="neutral"
966
+ themeVariant="small-bold"
967
+ >
968
+ Title
969
+ </Text>
970
+ <Text
971
+ allowFontScaling={false}
972
+ style={
973
+ [
974
+ {
975
+ "color": "#001f23",
976
+ "fontFamily": "BeVietnamPro-Regular",
977
+ "fontSize": 14,
978
+ "letterSpacing": 0.48,
979
+ "lineHeight": 22,
980
+ },
981
+ undefined,
982
+ ]
983
+ }
984
+ themeIntent="body"
985
+ themeTypeface="neutral"
986
+ themeVariant="small"
987
+ >
988
+ Content
989
+ </Text>
990
+ </View>
991
+ </View>
992
+ <View
993
+ accessibilityState={
994
+ {
995
+ "busy": undefined,
996
+ "checked": undefined,
997
+ "disabled": undefined,
998
+ "expanded": undefined,
999
+ "selected": undefined,
1000
+ }
1001
+ }
1002
+ accessibilityValue={
1003
+ {
1004
+ "max": undefined,
1005
+ "min": undefined,
1006
+ "now": undefined,
1007
+ "text": undefined,
1008
+ }
1009
+ }
1010
+ accessible={true}
1011
+ collapsable={false}
1012
+ focusable={true}
1013
+ onClick={[Function]}
1014
+ onResponderGrant={[Function]}
1015
+ onResponderMove={[Function]}
1016
+ onResponderRelease={[Function]}
1017
+ onResponderTerminate={[Function]}
1018
+ onResponderTerminationRequest={[Function]}
1019
+ onStartShouldSetResponder={[Function]}
1020
+ style={
1021
+ {
1022
+ "justifyContent": "center",
1023
+ "opacity": 1,
1024
+ "paddingHorizontal": 12,
1025
+ }
1026
+ }
1027
+ testID="alert-close-icon"
1028
+ >
1029
+ <HeroIcon
1030
+ name="cancel"
757
1031
  style={
758
1032
  [
759
1033
  {
760
1034
  "color": "#001f23",
761
- "fontFamily": "BeVietnamPro-Regular",
762
- "fontSize": 14,
763
- "letterSpacing": 0.48,
764
- "lineHeight": 22,
1035
+ "fontSize": 20,
765
1036
  },
766
1037
  undefined,
767
1038
  ]
768
1039
  }
769
- themeIntent="body"
770
- themeTypeface="neutral"
771
- themeVariant="small"
772
- >
773
- Content
774
- </Text>
1040
+ themeIntent="text"
1041
+ themeSize="small"
1042
+ />
775
1043
  </View>
776
1044
  </View>
777
1045
  <View
778
- accessible={true}
779
- collapsable={false}
780
- focusable={true}
781
- onClick={[Function]}
782
- onResponderGrant={[Function]}
783
- onResponderMove={[Function]}
784
- onResponderRelease={[Function]}
785
- onResponderTerminate={[Function]}
786
- onResponderTerminationRequest={[Function]}
787
- onStartShouldSetResponder={[Function]}
1046
+ pointerEvents="box-none"
1047
+ position="bottom"
788
1048
  style={
789
- {
790
- "justifyContent": "center",
791
- "opacity": 1,
792
- "paddingHorizontal": 12,
793
- }
1049
+ [
1050
+ {
1051
+ "bottom": 0,
1052
+ "elevation": 9999,
1053
+ "flexDirection": "column-reverse",
1054
+ "left": 0,
1055
+ "paddingHorizontal": 24,
1056
+ "paddingVertical": 16,
1057
+ "position": "absolute",
1058
+ "right": 0,
1059
+ "top": 0,
1060
+ },
1061
+ undefined,
1062
+ ]
794
1063
  }
795
- testID="alert-close-icon"
796
- >
797
- <HeroIcon
798
- name="cancel"
799
- style={
800
- [
801
- {
802
- "color": "#001f23",
803
- "fontSize": 20,
804
- },
805
- undefined,
806
- ]
807
- }
808
- themeIntent="text"
809
- themeSize="small"
810
- />
811
- </View>
1064
+ />
812
1065
  </View>
813
1066
  `;
814
1067
 
815
1068
  exports[`Alert renders correctly without rounded 1`] = `
816
1069
  <View
817
1070
  style={
818
- [
819
- {
820
- "backgroundColor": "#b5c3fd",
821
- "borderRadius": 0,
822
- "flexDirection": "row",
823
- "minHeight": 48,
824
- },
825
- undefined,
826
- ]
1071
+ {
1072
+ "flex": 1,
1073
+ }
827
1074
  }
828
- themeIntent="info"
829
- themeVariant="unrounded"
830
1075
  >
831
1076
  <View
832
- showDivider={false}
833
1077
  style={
834
1078
  [
835
1079
  {
836
- "borderColor": "#e8e9ea",
837
- "borderRightWidth": 0,
838
- "flex": 1,
1080
+ "backgroundColor": "#b5c3fd",
1081
+ "borderRadius": 0,
839
1082
  "flexDirection": "row",
840
- "paddingVertical": 12,
1083
+ "minHeight": 48,
841
1084
  },
842
1085
  undefined,
843
1086
  ]
844
1087
  }
1088
+ themeIntent="info"
1089
+ themeVariant="unrounded"
845
1090
  >
846
1091
  <View
1092
+ showDivider={false}
847
1093
  style={
848
1094
  [
849
1095
  {
850
- "alignItems": "center",
851
- "paddingLeft": 12,
852
- },
853
- undefined,
854
- ]
855
- }
856
- testID="alert-left-icon"
857
- >
858
- <HeroIcon
859
- name="circle-info"
860
- style={
861
- [
862
- {
863
- "color": "#001f23",
864
- "fontSize": 20,
865
- },
866
- undefined,
867
- ]
868
- }
869
- themeIntent="text"
870
- themeSize="small"
871
- />
872
- </View>
873
- <View
874
- style={
875
- [
876
- {
1096
+ "borderColor": "#e8e9ea",
1097
+ "borderRightWidth": 0,
877
1098
  "flex": 1,
878
- "paddingHorizontal": 12,
1099
+ "flexDirection": "row",
1100
+ "paddingVertical": 12,
879
1101
  },
880
1102
  undefined,
881
1103
  ]
882
1104
  }
883
1105
  >
884
- <Text
885
- allowFontScaling={false}
1106
+ <View
886
1107
  style={
887
1108
  [
888
1109
  {
889
- "color": "#001f23",
890
- "fontFamily": "BeVietnamPro-SemiBold",
891
- "fontSize": 14,
892
- "letterSpacing": 0.24,
893
- "lineHeight": 22,
1110
+ "alignItems": "center",
1111
+ "paddingLeft": 12,
894
1112
  },
895
1113
  undefined,
896
1114
  ]
897
1115
  }
898
- themeIntent="body"
899
- themeTypeface="neutral"
900
- themeVariant="small-bold"
1116
+ testID="alert-left-icon"
901
1117
  >
902
- Title
903
- </Text>
904
- <Text
905
- allowFontScaling={false}
1118
+ <HeroIcon
1119
+ name="circle-info"
1120
+ style={
1121
+ [
1122
+ {
1123
+ "color": "#001f23",
1124
+ "fontSize": 20,
1125
+ },
1126
+ undefined,
1127
+ ]
1128
+ }
1129
+ themeIntent="text"
1130
+ themeSize="small"
1131
+ />
1132
+ </View>
1133
+ <View
906
1134
  style={
907
1135
  [
908
1136
  {
909
- "color": "#001f23",
910
- "fontFamily": "BeVietnamPro-Regular",
911
- "fontSize": 14,
912
- "letterSpacing": 0.48,
913
- "lineHeight": 22,
1137
+ "flex": 1,
1138
+ "paddingHorizontal": 12,
914
1139
  },
915
1140
  undefined,
916
1141
  ]
917
1142
  }
918
- themeIntent="body"
919
- themeTypeface="neutral"
920
- themeVariant="small"
921
1143
  >
922
- Content
923
- </Text>
1144
+ <Text
1145
+ allowFontScaling={false}
1146
+ style={
1147
+ [
1148
+ {
1149
+ "color": "#001f23",
1150
+ "fontFamily": "BeVietnamPro-SemiBold",
1151
+ "fontSize": 14,
1152
+ "letterSpacing": 0.24,
1153
+ "lineHeight": 22,
1154
+ },
1155
+ undefined,
1156
+ ]
1157
+ }
1158
+ themeIntent="body"
1159
+ themeTypeface="neutral"
1160
+ themeVariant="small-bold"
1161
+ >
1162
+ Title
1163
+ </Text>
1164
+ <Text
1165
+ allowFontScaling={false}
1166
+ style={
1167
+ [
1168
+ {
1169
+ "color": "#001f23",
1170
+ "fontFamily": "BeVietnamPro-Regular",
1171
+ "fontSize": 14,
1172
+ "letterSpacing": 0.48,
1173
+ "lineHeight": 22,
1174
+ },
1175
+ undefined,
1176
+ ]
1177
+ }
1178
+ themeIntent="body"
1179
+ themeTypeface="neutral"
1180
+ themeVariant="small"
1181
+ >
1182
+ Content
1183
+ </Text>
1184
+ </View>
924
1185
  </View>
925
1186
  </View>
1187
+ <View
1188
+ pointerEvents="box-none"
1189
+ position="bottom"
1190
+ style={
1191
+ [
1192
+ {
1193
+ "bottom": 0,
1194
+ "elevation": 9999,
1195
+ "flexDirection": "column-reverse",
1196
+ "left": 0,
1197
+ "paddingHorizontal": 24,
1198
+ "paddingVertical": 16,
1199
+ "position": "absolute",
1200
+ "right": 0,
1201
+ "top": 0,
1202
+ },
1203
+ undefined,
1204
+ ]
1205
+ }
1206
+ />
926
1207
  </View>
927
1208
  `;