@hero-design/rn 8.22.0 → 8.24.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/.turbo/turbo-build:types.log +2 -0
  3. package/.turbo/turbo-lint.log +146 -0
  4. package/.turbo/turbo-publish:npm.log +9 -0
  5. package/.turbo/turbo-test.log +451 -0
  6. package/.turbo/turbo-type-check.log +1 -0
  7. package/es/index.js +527 -165
  8. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  9. package/lib/index.js +527 -164
  10. package/package.json +5 -5
  11. package/src/components/Alert/index.tsx +6 -0
  12. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +21 -9
  13. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +7 -3
  14. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +7 -3
  15. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +7 -3
  16. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  17. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
  18. package/src/components/List/ListItem.tsx +12 -8
  19. package/src/components/RichTextEditor/RichTextEditor.tsx +10 -7
  20. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +10 -8
  21. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +37 -16
  22. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +37 -16
  23. package/src/components/Success/StyledSuccess.tsx +87 -0
  24. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +497 -0
  25. package/src/components/Success/__tests__/index.spec.tsx +78 -0
  26. package/src/components/Success/index.tsx +129 -0
  27. package/src/components/Tabs/ScrollableTabs.tsx +10 -149
  28. package/src/components/Tabs/ScrollableTabsHeader.tsx +214 -0
  29. package/src/components/Tabs/ScrollableTabsV2/SceneView.tsx +61 -0
  30. package/src/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.tsx +120 -0
  31. package/src/components/Tabs/ScrollableTabsV2/__tests__/SceneView.spec.tsx +76 -0
  32. package/src/components/Tabs/ScrollableTabsV2/__tests__/ScrollableTabsV2.spec.tsx +166 -0
  33. package/src/components/Tabs/ScrollableTabsV2/__tests__/__snapshots__/SceneView.spec.tsx.snap +161 -0
  34. package/src/components/Tabs/ScrollableTabsV2/__tests__/__snapshots__/ScrollableTabsV2.spec.tsx.snap +2497 -0
  35. package/src/components/Tabs/ScrollableTabsV2/index.tsx +5 -0
  36. package/src/components/Tabs/__tests__/ScrollableTabsHeader.spec.tsx +80 -0
  37. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +587 -0
  38. package/src/components/Tabs/index.tsx +2 -0
  39. package/src/components/Tag/StyledTag.tsx +1 -1
  40. package/src/components/Tag/__tests__/Tag.spec.tsx +22 -71
  41. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +106 -53
  42. package/src/components/TextInput/StyledTextInput.tsx +40 -29
  43. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +48 -57
  44. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +84 -58
  45. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +587 -70
  46. package/src/components/TextInput/__tests__/index.spec.tsx +45 -4
  47. package/src/components/TextInput/index.tsx +31 -16
  48. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +14 -6
  49. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +14 -6
  50. package/src/index.ts +2 -0
  51. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +41 -6
  52. package/src/theme/components/empty.ts +1 -1
  53. package/src/theme/components/error.ts +1 -1
  54. package/src/theme/components/success.ts +40 -0
  55. package/src/theme/components/tag.ts +1 -1
  56. package/src/theme/components/textInput.ts +10 -4
  57. package/src/theme/getTheme.ts +3 -0
  58. package/src/utils/hooks.ts +1 -1
  59. package/testUtils/setup.tsx +6 -0
  60. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  61. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  62. package/types/components/Accordion/index.d.ts +0 -0
  63. package/types/components/Alert/StyledAlert.d.ts +0 -0
  64. package/types/components/Alert/index.d.ts +0 -0
  65. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  66. package/types/components/Attachment/index.d.ts +0 -0
  67. package/types/components/Avatar/Avatar.d.ts +0 -0
  68. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  69. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  70. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  71. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  72. package/types/components/Avatar/index.d.ts +0 -0
  73. package/types/components/Badge/Status.d.ts +0 -0
  74. package/types/components/Badge/StyledBadge.d.ts +0 -0
  75. package/types/components/Badge/index.d.ts +0 -0
  76. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  77. package/types/components/BottomNavigation/index.d.ts +0 -0
  78. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
  79. package/types/components/BottomSheet/Footer.d.ts +0 -0
  80. package/types/components/BottomSheet/Header.d.ts +0 -0
  81. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  82. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  83. package/types/components/BottomSheet/index.d.ts +0 -0
  84. package/types/components/Box/StyledBox.d.ts +0 -0
  85. package/types/components/Box/config.d.ts +0 -0
  86. package/types/components/Box/index.d.ts +0 -0
  87. package/types/components/Box/types.d.ts +0 -0
  88. package/types/components/Button/Button.d.ts +0 -0
  89. package/types/components/Button/IconButton.d.ts +0 -0
  90. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  91. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  92. package/types/components/Button/StyledButton.d.ts +0 -0
  93. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  94. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  95. package/types/components/Button/index.d.ts +0 -0
  96. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  97. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  98. package/types/components/Calendar/helpers.d.ts +0 -0
  99. package/types/components/Calendar/index.d.ts +0 -0
  100. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  101. package/types/components/Card/DataCard/index.d.ts +0 -0
  102. package/types/components/Card/StyledCard.d.ts +0 -0
  103. package/types/components/Card/index.d.ts +0 -0
  104. package/types/components/Carousel/CardCarousel.d.ts +0 -0
  105. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  106. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
  107. package/types/components/Carousel/StyledCarousel.d.ts +0 -0
  108. package/types/components/Carousel/contants.d.ts +0 -0
  109. package/types/components/Carousel/index.d.ts +0 -0
  110. package/types/components/Carousel/types.d.ts +0 -0
  111. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  112. package/types/components/Checkbox/index.d.ts +0 -0
  113. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  114. package/types/components/Collapse/index.d.ts +0 -0
  115. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  116. package/types/components/ContentNavigator/index.d.ts +0 -0
  117. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  118. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
  119. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  120. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  121. package/types/components/DatePicker/index.d.ts +0 -0
  122. package/types/components/DatePicker/types.d.ts +0 -0
  123. package/types/components/Divider/StyledDivider.d.ts +0 -0
  124. package/types/components/Divider/index.d.ts +0 -0
  125. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  126. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  127. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  128. package/types/components/Drawer/index.d.ts +0 -0
  129. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  130. package/types/components/Empty/index.d.ts +0 -0
  131. package/types/components/Error/StyledError.d.ts +0 -0
  132. package/types/components/Error/index.d.ts +0 -0
  133. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  134. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  135. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  136. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  137. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  138. package/types/components/FAB/FAB.d.ts +0 -0
  139. package/types/components/FAB/StyledFAB.d.ts +0 -0
  140. package/types/components/FAB/index.d.ts +0 -0
  141. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  142. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  143. package/types/components/Icon/IconList.d.ts +0 -0
  144. package/types/components/Icon/index.d.ts +0 -0
  145. package/types/components/Icon/utils.d.ts +0 -0
  146. package/types/components/Image/index.d.ts +0 -0
  147. package/types/components/List/BasicListItem.d.ts +0 -0
  148. package/types/components/List/ListItem.d.ts +0 -0
  149. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  150. package/types/components/List/StyledListItem.d.ts +0 -0
  151. package/types/components/List/index.d.ts +0 -0
  152. package/types/components/PageControl/StyledPageControl.d.ts +0 -0
  153. package/types/components/PageControl/index.d.ts +0 -0
  154. package/types/components/PinInput/PinCell.d.ts +0 -0
  155. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  156. package/types/components/PinInput/index.d.ts +0 -0
  157. package/types/components/Progress/ProgressBar.d.ts +0 -0
  158. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  159. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  160. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  161. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  162. package/types/components/Progress/constants.d.ts +0 -0
  163. package/types/components/Progress/index.d.ts +0 -0
  164. package/types/components/Progress/types.d.ts +0 -0
  165. package/types/components/Radio/Radio.d.ts +0 -0
  166. package/types/components/Radio/RadioGroup.d.ts +0 -0
  167. package/types/components/Radio/StyledRadio.d.ts +0 -0
  168. package/types/components/Radio/index.d.ts +0 -0
  169. package/types/components/Radio/types.d.ts +0 -0
  170. package/types/components/RefreshControl/index.d.ts +0 -0
  171. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  172. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  173. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  174. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  175. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  176. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  177. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  178. package/types/components/RichTextEditor/constants.d.ts +0 -0
  179. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  180. package/types/components/RichTextEditor/index.d.ts +0 -0
  181. package/types/components/RichTextEditor/types.d.ts +0 -0
  182. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  183. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  184. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  185. package/types/components/SectionHeading/index.d.ts +0 -0
  186. package/types/components/Select/BaseOptionList.d.ts +0 -0
  187. package/types/components/Select/Footer.d.ts +0 -0
  188. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  189. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  190. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  191. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  192. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  193. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
  194. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  195. package/types/components/Select/StyledSelect.d.ts +0 -0
  196. package/types/components/Select/helpers.d.ts +0 -0
  197. package/types/components/Select/index.d.ts +0 -0
  198. package/types/components/Select/types.d.ts +0 -0
  199. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
  200. package/types/components/Skeleton/index.d.ts +0 -0
  201. package/types/components/Slider/index.d.ts +0 -0
  202. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  203. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  204. package/types/components/Spinner/index.d.ts +0 -0
  205. package/types/components/Success/StyledSuccess.d.ts +54 -0
  206. package/types/components/Success/index.d.ts +42 -0
  207. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  208. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  209. package/types/components/Swipeable/index.d.ts +0 -0
  210. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  211. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  212. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  213. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  214. package/types/components/Switch/index.d.ts +0 -0
  215. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  216. package/types/components/Tabs/SceneView.d.ts +9 -0
  217. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  218. package/types/components/Tabs/ScrollableTabsHeader.d.ts +35 -0
  219. package/types/components/Tabs/ScrollableTabsV2/SceneView.d.ts +10 -0
  220. package/types/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.d.ts +9 -0
  221. package/types/components/Tabs/ScrollableTabsV2/index.d.ts +4 -0
  222. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  223. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  224. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  225. package/types/components/Tabs/index.d.ts +3 -0
  226. package/types/components/Tabs/utils.d.ts +0 -0
  227. package/types/components/Tag/StyledTag.d.ts +0 -0
  228. package/types/components/Tag/index.d.ts +0 -0
  229. package/types/components/TextInput/StyledTextInput.d.ts +12 -7
  230. package/types/components/TextInput/index.d.ts +12 -4
  231. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  232. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  233. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  234. package/types/components/TimePicker/index.d.ts +0 -0
  235. package/types/components/TimePicker/types.d.ts +0 -0
  236. package/types/components/Toast/StyledToast.d.ts +0 -0
  237. package/types/components/Toast/Toast.d.ts +0 -0
  238. package/types/components/Toast/ToastContainer.d.ts +0 -0
  239. package/types/components/Toast/ToastContext.d.ts +0 -0
  240. package/types/components/Toast/ToastProvider.d.ts +0 -0
  241. package/types/components/Toast/index.d.ts +0 -0
  242. package/types/components/Toast/types.d.ts +0 -0
  243. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  244. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  245. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  246. package/types/components/Toolbar/index.d.ts +0 -0
  247. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  248. package/types/components/Typography/Text/index.d.ts +0 -0
  249. package/types/components/Typography/index.d.ts +0 -0
  250. package/types/index.d.ts +2 -1
  251. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  252. package/types/theme/ThemeProvider.d.ts +0 -0
  253. package/types/theme/ThemeSwitcher.d.ts +0 -0
  254. package/types/theme/components/accordion.d.ts +0 -0
  255. package/types/theme/components/alert.d.ts +0 -0
  256. package/types/theme/components/attachment.d.ts +0 -0
  257. package/types/theme/components/avatar.d.ts +0 -0
  258. package/types/theme/components/badge.d.ts +0 -0
  259. package/types/theme/components/bottomNavigation.d.ts +0 -0
  260. package/types/theme/components/bottomSheet.d.ts +0 -0
  261. package/types/theme/components/button.d.ts +0 -0
  262. package/types/theme/components/calendar.d.ts +0 -0
  263. package/types/theme/components/card.d.ts +0 -0
  264. package/types/theme/components/cardCarousel.d.ts +0 -0
  265. package/types/theme/components/carousel.d.ts +0 -0
  266. package/types/theme/components/checkbox.d.ts +0 -0
  267. package/types/theme/components/contentNavigator.d.ts +0 -0
  268. package/types/theme/components/datePicker.d.ts +0 -0
  269. package/types/theme/components/divider.d.ts +0 -0
  270. package/types/theme/components/drawer.d.ts +0 -0
  271. package/types/theme/components/empty.d.ts +0 -0
  272. package/types/theme/components/error.d.ts +0 -0
  273. package/types/theme/components/fab.d.ts +0 -0
  274. package/types/theme/components/icon.d.ts +0 -0
  275. package/types/theme/components/image.d.ts +0 -0
  276. package/types/theme/components/list.d.ts +0 -0
  277. package/types/theme/components/pageControl.d.ts +0 -0
  278. package/types/theme/components/pinInput.d.ts +0 -0
  279. package/types/theme/components/progress.d.ts +0 -0
  280. package/types/theme/components/radio.d.ts +0 -0
  281. package/types/theme/components/refreshControl.d.ts +0 -0
  282. package/types/theme/components/richTextEditor.d.ts +0 -0
  283. package/types/theme/components/sectionHeading.d.ts +0 -0
  284. package/types/theme/components/select.d.ts +0 -0
  285. package/types/theme/components/skeleton.d.ts +0 -0
  286. package/types/theme/components/slider.d.ts +0 -0
  287. package/types/theme/components/spinner.d.ts +0 -0
  288. package/types/theme/components/success.d.ts +32 -0
  289. package/types/theme/components/swipeable.d.ts +0 -0
  290. package/types/theme/components/switch.d.ts +0 -0
  291. package/types/theme/components/tabs.d.ts +0 -0
  292. package/types/theme/components/tag.d.ts +0 -0
  293. package/types/theme/components/textInput.d.ts +5 -0
  294. package/types/theme/components/timePicker.d.ts +0 -0
  295. package/types/theme/components/toast.d.ts +0 -0
  296. package/types/theme/components/toolbar.d.ts +0 -0
  297. package/types/theme/components/typography.d.ts +0 -0
  298. package/types/theme/getTheme.d.ts +2 -0
  299. package/types/theme/global/borders.d.ts +0 -0
  300. package/types/theme/global/colors/eBens.d.ts +0 -0
  301. package/types/theme/global/colors/global.d.ts +0 -0
  302. package/types/theme/global/colors/globalDark.d.ts +0 -0
  303. package/types/theme/global/colors/jobs.d.ts +0 -0
  304. package/types/theme/global/colors/swag.d.ts +0 -0
  305. package/types/theme/global/colors/swagDark.d.ts +0 -0
  306. package/types/theme/global/colors/types.d.ts +0 -0
  307. package/types/theme/global/colors/wallet.d.ts +0 -0
  308. package/types/theme/global/colors/work.d.ts +0 -0
  309. package/types/theme/global/index.d.ts +0 -0
  310. package/types/theme/global/scale.d.ts +0 -0
  311. package/types/theme/global/sizes.d.ts +0 -0
  312. package/types/theme/global/space.d.ts +0 -0
  313. package/types/theme/global/typography.d.ts +0 -0
  314. package/types/theme/index.d.ts +0 -0
  315. package/types/types.d.ts +0 -0
  316. package/types/utils/functions.d.ts +0 -0
  317. package/types/utils/helpers.d.ts +0 -0
  318. package/types/utils/hooks.d.ts +0 -0
  319. package/types/utils/scale.d.ts +0 -0
package/es/index.js CHANGED
@@ -2181,7 +2181,7 @@ var getDrawerTheme = function getDrawerTheme(theme) {
2181
2181
 
2182
2182
  var getEmptyTheme = function getEmptyTheme(theme) {
2183
2183
  var space = {
2184
- titleMargin: theme.space.medium,
2184
+ titleMargin: theme.space.small,
2185
2185
  imageMargin: theme.space.large,
2186
2186
  wrapperPadding: theme.space.medium
2187
2187
  };
@@ -2214,7 +2214,7 @@ var getEmptyTheme = function getEmptyTheme(theme) {
2214
2214
  var getErrorTheme = function getErrorTheme(theme) {
2215
2215
  var space = {
2216
2216
  titleMarginBottom: theme.space.small,
2217
- imageMarginBottom: theme.space.xlarge,
2217
+ imageMarginBottom: theme.space.large,
2218
2218
  wrapperPadding: theme.space.large,
2219
2219
  button: {
2220
2220
  wrapperHorizontalPadding: theme.space.medium,
@@ -2693,6 +2693,44 @@ var getSpinnerTheme = function getSpinnerTheme(theme) {
2693
2693
  };
2694
2694
  };
2695
2695
 
2696
+ var getSuccessTheme = function getSuccessTheme(theme) {
2697
+ var space = {
2698
+ titleMarginBottom: theme.space.small,
2699
+ imageMarginBottom: theme.space.xlarge,
2700
+ wrapperPadding: theme.space.large,
2701
+ button: {
2702
+ wrapperHorizontalPadding: theme.space.medium,
2703
+ wrapperVerticalPadding: theme.space.xxxlarge,
2704
+ margin: theme.space.medium,
2705
+ padding: theme.space.medium
2706
+ }
2707
+ };
2708
+ var sizes = {
2709
+ image: theme.sizes['19xlarge']
2710
+ };
2711
+ var colors = {
2712
+ title: theme.colors.onDefaultGlobalSurface,
2713
+ description: theme.colors.mutedOnDefaultGlobalSurface,
2714
+ fullScreenBackground: theme.colors.decorativePrimarySurface,
2715
+ inPageBackground: theme.colors.neutralGlobalSurface
2716
+ };
2717
+ var fontSizes = {
2718
+ title: theme.fontSizes.xxxlarge,
2719
+ description: theme.fontSizes.xlarge
2720
+ };
2721
+ var fonts = {
2722
+ title: theme.fonts.playful.semiBold,
2723
+ description: theme.fonts.playful.regular
2724
+ };
2725
+ return {
2726
+ fontSizes: fontSizes,
2727
+ colors: colors,
2728
+ sizes: sizes,
2729
+ space: space,
2730
+ fonts: fonts
2731
+ };
2732
+ };
2733
+
2696
2734
  var getSwipeableTheme = function getSwipeableTheme(theme) {
2697
2735
  var colors = {
2698
2736
  success: theme.colors.success,
@@ -2787,7 +2825,7 @@ var getTagTheme = function getTagTheme(theme) {
2787
2825
  "default": theme.borderWidths.base
2788
2826
  };
2789
2827
  var colors = {
2790
- primary: theme.colors.primary,
2828
+ primary: theme.colors.onDefaultGlobalSurface,
2791
2829
  primaryBackground: undefined,
2792
2830
  info: theme.colors.onInfoSurface,
2793
2831
  infoBackground: theme.colors.infoSurface,
@@ -2880,12 +2918,15 @@ var getTextInputTheme = function getTextInputTheme(theme) {
2880
2918
  containerMarginTop: theme.space.small,
2881
2919
  labelInsideTextInputMarginTop: -theme.space.xxsmall
2882
2920
  };
2921
+ var fonts = {
2922
+ text: theme.fonts.neutral.regular
2923
+ };
2883
2924
  var fontSizes = {
2884
- text: theme.fontSizes.medium,
2885
- labelInsideTextInput: theme.fontSizes.medium,
2925
+ text: theme.fontSizes.large,
2926
+ labelInsideTextInput: theme.fontSizes.large,
2886
2927
  error: theme.fontSizes.small,
2887
2928
  maxLength: theme.fontSizes.small,
2888
- asteriskLabel: theme.fontSizes.medium
2929
+ asteriskLabel: theme.fontSizes.large
2889
2930
  };
2890
2931
  var borderWidths = {
2891
2932
  container: {
@@ -2897,11 +2938,14 @@ var getTextInputTheme = function getTextInputTheme(theme) {
2897
2938
  container: theme.radii.medium
2898
2939
  };
2899
2940
  var sizes = {
2900
- errorAndHelpTextContainerHeight: theme.sizes.medium
2941
+ errorAndHelpTextContainerHeight: theme.sizes.medium,
2942
+ textareaHeight: theme.sizes['15xlarge'],
2943
+ textInputMaxHeight: theme.sizes['15xlarge']
2901
2944
  };
2902
2945
  return {
2903
2946
  colors: colors,
2904
2947
  space: space,
2948
+ fonts: fonts,
2905
2949
  fontSizes: fontSizes,
2906
2950
  borderWidths: borderWidths,
2907
2951
  radii: radii,
@@ -3076,6 +3120,7 @@ var getTheme$1 = function getTheme() {
3076
3120
  skeleton: getSkeletonTheme(globalTheme),
3077
3121
  slider: getSliderTheme(globalTheme),
3078
3122
  spinner: getSpinnerTheme(globalTheme),
3123
+ success: getSuccessTheme(globalTheme),
3079
3124
  swipeable: getSwipeableTheme(globalTheme),
3080
3125
  "switch": getSwitchTheme(globalTheme),
3081
3126
  tabs: getTabsTheme(globalTheme),
@@ -6000,7 +6045,7 @@ var useDeprecation = function useDeprecation(message) {
6000
6045
  useEffect(function () {
6001
6046
  // eslint-disable-next-line no-console
6002
6047
  if (cond) {
6003
- console.error(message);
6048
+ console.warn(message);
6004
6049
  }
6005
6050
  }, [message, cond]);
6006
6051
  };
@@ -6096,7 +6141,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
6096
6141
  });
6097
6142
  });
6098
6143
 
6099
- var _excluded$s = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6144
+ var _excluded$t = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6100
6145
  var Text = function Text(_ref) {
6101
6146
  var children = _ref.children,
6102
6147
  _ref$fontSize = _ref.fontSize,
@@ -6109,7 +6154,7 @@ var Text = function Text(_ref) {
6109
6154
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6110
6155
  _ref$allowFontScaling = _ref.allowFontScaling,
6111
6156
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6112
- nativeProps = _objectWithoutProperties(_ref, _excluded$s);
6157
+ nativeProps = _objectWithoutProperties(_ref, _excluded$t);
6113
6158
  return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
6114
6159
  themeFontSize: fontSize,
6115
6160
  themeFontWeight: fontWeight,
@@ -6631,10 +6676,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
6631
6676
  };
6632
6677
  });
6633
6678
 
6634
- var _excluded$r = ["style"];
6679
+ var _excluded$s = ["style"];
6635
6680
  var AnimatedIcon = function AnimatedIcon(_ref) {
6636
6681
  var style = _ref.style,
6637
- otherProps = _objectWithoutProperties(_ref, _excluded$r);
6682
+ otherProps = _objectWithoutProperties(_ref, _excluded$s);
6638
6683
  var rotateAnimation = useRef(new Animated.Value(0));
6639
6684
  useEffect(function () {
6640
6685
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -6740,7 +6785,7 @@ var AccordionItem = function AccordionItem(_ref) {
6740
6785
  }, content));
6741
6786
  };
6742
6787
 
6743
- var _excluded$q = ["key"];
6788
+ var _excluded$r = ["key"];
6744
6789
  var Accordion = function Accordion(_ref) {
6745
6790
  var items = _ref.items,
6746
6791
  activeItemKey = _ref.activeItemKey,
@@ -6761,7 +6806,7 @@ var Accordion = function Accordion(_ref) {
6761
6806
  testID: testID
6762
6807
  }, items.map(function (_ref2, index) {
6763
6808
  var key = _ref2.key,
6764
- props = _objectWithoutProperties(_ref2, _excluded$q);
6809
+ props = _objectWithoutProperties(_ref2, _excluded$r);
6765
6810
  var open = _activeItemKey === key;
6766
6811
  return /*#__PURE__*/React.createElement(React.Fragment, {
6767
6812
  key: key
@@ -6856,6 +6901,7 @@ var Alert = function Alert(_ref2) {
6856
6901
  variant = _ref2$variant === void 0 ? 'rounded' : _ref2$variant,
6857
6902
  style = _ref2.style,
6858
6903
  testID = _ref2.testID;
6904
+ useDeprecation("Alert's notification intent is deprecated and will be removed in the next major release. Please use other intents instead.", intent === 'notification');
6859
6905
  return /*#__PURE__*/React.createElement(Container$1, {
6860
6906
  themeVariant: variant,
6861
6907
  themeIntent: intent,
@@ -7158,7 +7204,7 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
7158
7204
  };
7159
7205
  });
7160
7206
 
7161
- var _excluded$p = ["children", "visible", "intent", "style", "testID"];
7207
+ var _excluded$q = ["children", "visible", "intent", "style", "testID"];
7162
7208
  var Status = function Status(_ref) {
7163
7209
  var children = _ref.children,
7164
7210
  _ref$visible = _ref.visible,
@@ -7167,7 +7213,7 @@ var Status = function Status(_ref) {
7167
7213
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7168
7214
  style = _ref.style,
7169
7215
  testID = _ref.testID,
7170
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7216
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7171
7217
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
7172
7218
  opacity = _React$useRef.current;
7173
7219
  var isFirstRendering = React.useRef(true);
@@ -7200,7 +7246,7 @@ var Status = function Status(_ref) {
7200
7246
  }));
7201
7247
  };
7202
7248
 
7203
- var _excluded$o = ["content", "visible", "max", "intent", "style", "testID"];
7249
+ var _excluded$p = ["content", "visible", "max", "intent", "style", "testID"];
7204
7250
  var DEFAULT_MAX_NUMBER = 99;
7205
7251
  var getPaddingState = function getPaddingState(content) {
7206
7252
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -7215,7 +7261,7 @@ var Badge = function Badge(_ref) {
7215
7261
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7216
7262
  style = _ref.style,
7217
7263
  testID = _ref.testID,
7218
- nativeProps = _objectWithoutProperties(_ref, _excluded$o);
7264
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7219
7265
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
7220
7266
  opacity = _React$useRef.current;
7221
7267
  var isFirstRendering = React.useRef(true);
@@ -7319,7 +7365,7 @@ function omit(keys, obj) {
7319
7365
  return result;
7320
7366
  }
7321
7367
 
7322
- var _excluded$n = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7368
+ var _excluded$o = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7323
7369
  var getInactiveIcon = function getInactiveIcon(icon) {
7324
7370
  var inactiveIcon = "".concat(icon, "-outlined");
7325
7371
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -7330,7 +7376,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
7330
7376
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
7331
7377
  selectedTabKey = _ref.selectedTabKey,
7332
7378
  tabs = _ref.tabs,
7333
- nativeProps = _objectWithoutProperties(_ref, _excluded$n);
7379
+ nativeProps = _objectWithoutProperties(_ref, _excluded$o);
7334
7380
  var insets = useSafeAreaInsets();
7335
7381
  /**
7336
7382
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -7417,13 +7463,13 @@ var StyledDivider = index$a(View)(function (_ref) {
7417
7463
  }, horizontalMargin), verticalMargin);
7418
7464
  });
7419
7465
 
7420
- var _excluded$m = ["marginHorizontal", "marginVertical", "style", "testID"];
7466
+ var _excluded$n = ["marginHorizontal", "marginVertical", "style", "testID"];
7421
7467
  var Divider = function Divider(_ref) {
7422
7468
  var marginHorizontal = _ref.marginHorizontal,
7423
7469
  marginVertical = _ref.marginVertical,
7424
7470
  style = _ref.style,
7425
7471
  testID = _ref.testID,
7426
- nativeProps = _objectWithoutProperties(_ref, _excluded$m);
7472
+ nativeProps = _objectWithoutProperties(_ref, _excluded$n);
7427
7473
  return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
7428
7474
  themeMarginHorizontal: marginHorizontal,
7429
7475
  themeMarginVertical: marginVertical,
@@ -7553,7 +7599,7 @@ var StyledLoadingDot = index$a(View)(function (_ref2) {
7553
7599
  }, themeStyling());
7554
7600
  });
7555
7601
 
7556
- var _excluded$l = ["count", "size", "testID", "themeVariant"];
7602
+ var _excluded$m = ["count", "size", "testID", "themeVariant"];
7557
7603
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
7558
7604
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
7559
7605
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -7585,7 +7631,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
7585
7631
  size = _ref2$size === void 0 ? 12 : _ref2$size,
7586
7632
  testID = _ref2.testID,
7587
7633
  themeVariant = _ref2.themeVariant,
7588
- nativeProps = _objectWithoutProperties(_ref2, _excluded$l);
7634
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$m);
7589
7635
  var progressAnimation = useRef(new Animated.Value(0));
7590
7636
  useEffect(function () {
7591
7637
  var animation = Animated.loop(Animated.timing(progressAnimation.current, {
@@ -8012,11 +8058,11 @@ var Header = function Header(_ref) {
8012
8058
  })) : null), showDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
8013
8059
  };
8014
8060
 
8015
- var _excluded$k = ["scrollEventThrottle"];
8061
+ var _excluded$l = ["scrollEventThrottle"];
8016
8062
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
8017
8063
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
8018
8064
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
8019
- props = _objectWithoutProperties(_ref, _excluded$k);
8065
+ props = _objectWithoutProperties(_ref, _excluded$l);
8020
8066
  var _useContext = useContext(BottomSheetContext),
8021
8067
  setInternalShowDivider = _useContext.setInternalShowDivider;
8022
8068
  var onScrollBeginDrag = useCallback(function (e) {
@@ -8331,7 +8377,7 @@ var borderWidths = {
8331
8377
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8332
8378
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8333
8379
 
8334
- var _excluded$j = ["theme"];
8380
+ var _excluded$k = ["theme"];
8335
8381
  var getThemeValue = function getThemeValue(theme, key, props) {
8336
8382
  var propConfig = config[key];
8337
8383
  var propValue = props[key];
@@ -8358,18 +8404,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8358
8404
  var configKeys = Object.keys(config);
8359
8405
  var StyledBox = index$a(View)(function (_ref5) {
8360
8406
  var theme = _ref5.theme,
8361
- otherProps = _objectWithoutProperties(_ref5, _excluded$j);
8407
+ otherProps = _objectWithoutProperties(_ref5, _excluded$k);
8362
8408
  var styleProps = pick(configKeys, otherProps);
8363
8409
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8364
8410
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8365
8411
  });
8366
8412
 
8367
- var _excluded$i = ["children", "style", "testID"];
8413
+ var _excluded$j = ["children", "style", "testID"];
8368
8414
  var Box = function Box(_ref) {
8369
8415
  var children = _ref.children,
8370
8416
  style = _ref.style,
8371
8417
  testID = _ref.testID,
8372
- otherProps = _objectWithoutProperties(_ref, _excluded$i);
8418
+ otherProps = _objectWithoutProperties(_ref, _excluded$j);
8373
8419
  return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
8374
8420
  style: style,
8375
8421
  testID: testID
@@ -10937,7 +10983,7 @@ var Calendar = function Calendar(_ref) {
10937
10983
  })));
10938
10984
  };
10939
10985
 
10940
- var _excluded$h = ["rounded", "size", "testID", "style"];
10986
+ var _excluded$i = ["rounded", "size", "testID", "style"];
10941
10987
  var Image = function Image(_ref) {
10942
10988
  var _ref$rounded = _ref.rounded,
10943
10989
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -10945,7 +10991,7 @@ var Image = function Image(_ref) {
10945
10991
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
10946
10992
  testID = _ref.testID,
10947
10993
  style = _ref.style,
10948
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$h);
10994
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$i);
10949
10995
  var theme = useTheme();
10950
10996
  var imageSize = theme.__hd__.image.sizes[size];
10951
10997
  return /*#__PURE__*/React.createElement(Image$1, _extends$1({
@@ -11149,12 +11195,12 @@ var Indicator = index$a(View)(function (_ref2) {
11149
11195
  };
11150
11196
  });
11151
11197
 
11152
- var _excluded$g = ["intent", "children"];
11198
+ var _excluded$h = ["intent", "children"];
11153
11199
  var DataCard = function DataCard(_ref) {
11154
11200
  var _ref$intent = _ref.intent,
11155
11201
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
11156
11202
  children = _ref.children,
11157
- nativeProps = _objectWithoutProperties(_ref, _excluded$g);
11203
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11158
11204
  return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
11159
11205
  themeIntent: intent,
11160
11206
  testID: "data-card-indicator"
@@ -11172,11 +11218,11 @@ var StyledCard$1 = index$a(View)(function (_ref) {
11172
11218
  });
11173
11219
  });
11174
11220
 
11175
- var _excluded$f = ["intent", "children"];
11221
+ var _excluded$g = ["intent", "children"];
11176
11222
  var Card = function Card(_ref) {
11177
11223
  var intent = _ref.intent,
11178
11224
  children = _ref.children,
11179
- nativeProps = _objectWithoutProperties(_ref, _excluded$f);
11225
+ nativeProps = _objectWithoutProperties(_ref, _excluded$g);
11180
11226
  return /*#__PURE__*/React.createElement(StyledCard$1, _extends$1({}, nativeProps, {
11181
11227
  themeIntent: intent
11182
11228
  }), children);
@@ -11364,7 +11410,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
11364
11410
  }));
11365
11411
  });
11366
11412
 
11367
- var _excluded$e = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11413
+ var _excluded$f = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11368
11414
  function useStateFromProp(initialValue) {
11369
11415
  var _useState = useState(initialValue),
11370
11416
  _useState2 = _slicedToArray(_useState, 2),
@@ -11389,7 +11435,7 @@ var Carousel = function Carousel(_ref) {
11389
11435
  shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
11390
11436
  _ref$pageControlPosit = _ref.pageControlPosition,
11391
11437
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
11392
- nativeProps = _objectWithoutProperties(_ref, _excluded$e);
11438
+ nativeProps = _objectWithoutProperties(_ref, _excluded$f);
11393
11439
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
11394
11440
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
11395
11441
  var carouselRef = useRef(null);
@@ -11575,47 +11621,48 @@ var StyledLabelContainer = index$a(View)(function (_ref2) {
11575
11621
  });
11576
11622
  var StyledLabel = index$a(Typography.Text)(function (_ref3) {
11577
11623
  var theme = _ref3.theme,
11578
- themeVariant = _ref3.themeVariant;
11624
+ themeState = _ref3.themeState;
11579
11625
  return {
11580
- color: theme.__hd__.textInput.colors.labels[themeVariant]
11626
+ color: theme.__hd__.textInput.colors.labels[themeState]
11581
11627
  };
11582
11628
  });
11583
11629
  var StyledAsteriskLabel = index$a(Typography.Text)(function (_ref4) {
11584
11630
  var theme = _ref4.theme,
11585
- themeVariant = _ref4.themeVariant;
11631
+ themeState = _ref4.themeState;
11586
11632
  return {
11587
- color: theme.__hd__.textInput.colors.asterisks[themeVariant]
11633
+ color: theme.__hd__.textInput.colors.asterisks[themeState]
11588
11634
  };
11589
11635
  });
11590
- var StyledLabelContainerInsideTextInput = index$a(View)(function () {
11636
+ var StyledLabelContainerInsideTextInput = index$a(View)(function (_ref5) {
11637
+ var themeVariant = _ref5.themeVariant;
11591
11638
  return _objectSpread2({
11592
11639
  flexDirection: 'row',
11593
11640
  zIndex: 9999,
11594
- alignItems: 'center'
11641
+ alignItems: themeVariant === 'text' ? 'center' : 'flex-start'
11595
11642
  }, StyleSheet$1.absoluteFillObject);
11596
11643
  });
11597
- var StyledLabelInsideTextInput = index$a(Typography.Text)(function (_ref5) {
11598
- var theme = _ref5.theme,
11599
- themeVariant = _ref5.themeVariant;
11644
+ var StyledLabelInsideTextInput = index$a(Typography.Text)(function (_ref6) {
11645
+ var theme = _ref6.theme,
11646
+ themeState = _ref6.themeState;
11600
11647
  return {
11601
11648
  textAlignVertical: 'center',
11602
11649
  alignContent: 'center',
11603
11650
  fontSize: theme.__hd__.textInput.fontSizes.labelInsideTextInput,
11604
11651
  alignItems: 'center',
11605
- color: theme.__hd__.textInput.colors.labelsInsideTextInput[themeVariant],
11652
+ color: theme.__hd__.textInput.colors.labelsInsideTextInput[themeState],
11606
11653
  marginTop: theme.__hd__.textInput.space.labelInsideTextInputMarginTop
11607
11654
  };
11608
11655
  });
11609
- var StyledAsteriskLabelInsideTextInput = index$a(Typography.Text)(function (_ref6) {
11610
- var theme = _ref6.theme,
11611
- themeVariant = _ref6.themeVariant;
11656
+ var StyledAsteriskLabelInsideTextInput = index$a(Typography.Text)(function (_ref7) {
11657
+ var theme = _ref7.theme,
11658
+ themeState = _ref7.themeState;
11612
11659
  return {
11613
- color: theme.__hd__.textInput.colors.asterisks[themeVariant],
11660
+ color: theme.__hd__.textInput.colors.asterisks[themeState],
11614
11661
  fontSize: theme.__hd__.textInput.fontSizes.asteriskLabel
11615
11662
  };
11616
11663
  });
11617
- var StyledErrorContainer$2 = index$a(View)(function (_ref7) {
11618
- var theme = _ref7.theme;
11664
+ var StyledErrorContainer$2 = index$a(View)(function (_ref8) {
11665
+ var theme = _ref8.theme;
11619
11666
  return {
11620
11667
  marginRight: theme.__hd__.textInput.space.errorContainerMarginRight,
11621
11668
  flexDirection: 'row',
@@ -11624,19 +11671,19 @@ var StyledErrorContainer$2 = index$a(View)(function (_ref7) {
11624
11671
  flexGrow: 4
11625
11672
  };
11626
11673
  });
11627
- var StyledError = index$a(Typography.Text)(function (_ref8) {
11628
- var theme = _ref8.theme;
11674
+ var StyledError = index$a(Typography.Text)(function (_ref9) {
11675
+ var theme = _ref9.theme;
11629
11676
  return {
11630
11677
  color: theme.__hd__.textInput.colors.error,
11631
11678
  fontSize: theme.__hd__.textInput.fontSizes.error,
11632
11679
  marginLeft: theme.__hd__.textInput.space.errorMarginLeft
11633
11680
  };
11634
11681
  });
11635
- var StyledMaxLengthMessage = index$a(Typography.Text)(function (_ref9) {
11636
- var theme = _ref9.theme,
11637
- themeVariant = _ref9.themeVariant;
11682
+ var StyledMaxLengthMessage = index$a(Typography.Text)(function (_ref10) {
11683
+ var theme = _ref10.theme,
11684
+ themeState = _ref10.themeState;
11638
11685
  return {
11639
- color: theme.__hd__.textInput.colors.maxLengthLabels[themeVariant],
11686
+ color: theme.__hd__.textInput.colors.maxLengthLabels[themeState],
11640
11687
  fontSize: theme.__hd__.textInput.fontSizes.maxLength,
11641
11688
  marginRight: theme.__hd__.textInput.space.maxLengthLabelMarginLeft,
11642
11689
  alignSelf: 'flex-end',
@@ -11645,36 +11692,40 @@ var StyledMaxLengthMessage = index$a(Typography.Text)(function (_ref9) {
11645
11692
  textAlign: 'right'
11646
11693
  };
11647
11694
  });
11648
- var StyledHelperText = index$a(Typography.Text)(function (_ref10) {
11649
- var theme = _ref10.theme;
11695
+ var StyledHelperText = index$a(Typography.Text)(function (_ref11) {
11696
+ var theme = _ref11.theme;
11650
11697
  return {
11651
11698
  fontSize: theme.__hd__.textInput.fontSizes.error
11652
11699
  };
11653
11700
  });
11654
- var StyledTextInput = index$a(TextInput$1)(function (_ref11) {
11655
- var theme = _ref11.theme;
11701
+ var StyledTextInput = index$a(TextInput$1)(function (_ref12) {
11702
+ var theme = _ref12.theme,
11703
+ themeVariant = _ref12.themeVariant;
11656
11704
  return {
11657
- textAlignVertical: 'center',
11705
+ textAlignVertical: themeVariant === 'text' ? 'center' : 'top',
11658
11706
  fontSize: theme.__hd__.textInput.fontSizes.text,
11659
11707
  alignSelf: 'stretch',
11660
11708
  flexGrow: 2,
11661
11709
  marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin,
11662
- paddingVertical: 0
11710
+ paddingVertical: 0,
11711
+ maxHeight: theme.__hd__.textInput.sizes.textInputMaxHeight,
11712
+ height: themeVariant === 'text' ? undefined : theme.__hd__.textInput.sizes.textareaHeight,
11713
+ fontFamily: theme.__hd__.textInput.fonts.text
11663
11714
  };
11664
11715
  });
11665
- var StyledBorderBackDrop = index$a(View)(function (_ref12) {
11716
+ var StyledBorderBackDrop = index$a(View)(function (_ref13) {
11666
11717
  var _theme$__hd__$textInp;
11667
- var theme = _ref12.theme,
11668
- themeFocused = _ref12.themeFocused,
11669
- themeVariant = _ref12.themeVariant;
11718
+ var theme = _ref13.theme,
11719
+ themeFocused = _ref13.themeFocused,
11720
+ themeState = _ref13.themeState;
11670
11721
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
11671
11722
  borderWidth: themeFocused ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
11672
11723
  borderRadius: theme.__hd__.textInput.radii.container,
11673
- borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeVariant]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
11724
+ borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeState]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
11674
11725
  });
11675
11726
  });
11676
- var StyledTextInputContainer = index$a(View)(function (_ref13) {
11677
- var theme = _ref13.theme;
11727
+ var StyledTextInputContainer = index$a(View)(function (_ref14) {
11728
+ var theme = _ref14.theme;
11678
11729
  return {
11679
11730
  flexDirection: 'row',
11680
11731
  alignItems: 'center',
@@ -11692,8 +11743,8 @@ var StyledTextInputAndLabelContainer = index$a(View)(function () {
11692
11743
  flexShrink: 1
11693
11744
  };
11694
11745
  });
11695
- var StyledErrorAndHelpTextContainer = index$a(View)(function (_ref14) {
11696
- var theme = _ref14.theme;
11746
+ var StyledErrorAndHelpTextContainer = index$a(View)(function (_ref15) {
11747
+ var theme = _ref15.theme;
11697
11748
  return {
11698
11749
  paddingLeft: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft,
11699
11750
  minHeight: theme.__hd__.textInput.sizes.errorAndHelpTextContainerHeight
@@ -11706,8 +11757,8 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
11706
11757
  };
11707
11758
  });
11708
11759
 
11709
- var _excluded$d = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling"];
11710
- var getVariant$1 = function getVariant(_ref) {
11760
+ var _excluded$e = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
11761
+ var getState$1 = function getState(_ref) {
11711
11762
  var disabled = _ref.disabled,
11712
11763
  error = _ref.error,
11713
11764
  editable = _ref.editable,
@@ -11748,13 +11799,17 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11748
11799
  _ref2$loading = _ref2.loading,
11749
11800
  loading = _ref2$loading === void 0 ? false : _ref2$loading,
11750
11801
  maxLength = _ref2.maxLength,
11802
+ _ref2$hideCharacterCo = _ref2.hideCharacterCount,
11803
+ hideCharacterCount = _ref2$hideCharacterCo === void 0 ? false : _ref2$hideCharacterCo,
11751
11804
  helpText = _ref2.helpText,
11752
11805
  value = _ref2.value,
11753
11806
  defaultValue = _ref2.defaultValue,
11754
11807
  renderInputValue = _ref2.renderInputValue,
11755
11808
  _ref2$allowFontScalin = _ref2.allowFontScaling,
11756
11809
  allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
11757
- nativeProps = _objectWithoutProperties(_ref2, _excluded$d);
11810
+ _ref2$variant = _ref2.variant,
11811
+ variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
11812
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$e);
11758
11813
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
11759
11814
  var isEmptyValue = displayText.length === 0;
11760
11815
  var actualSuffix = loading ? 'loading' : suffix;
@@ -11762,7 +11817,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11762
11817
  _React$useState2 = _slicedToArray(_React$useState, 2),
11763
11818
  isFocused = _React$useState2[0],
11764
11819
  setIsFocused = _React$useState2[1];
11765
- var variant = getVariant$1({
11820
+ var state = getState$1({
11766
11821
  disabled: disabled,
11767
11822
  error: error,
11768
11823
  editable: editable,
@@ -11770,7 +11825,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11770
11825
  isFocused: isFocused,
11771
11826
  isEmptyValue: isEmptyValue
11772
11827
  });
11773
- var shouldShowMaxLength = maxLength !== undefined;
11828
+ var shouldShowMaxLength = maxLength !== undefined && !hideCharacterCount;
11774
11829
  var theme = useTheme();
11775
11830
  var innerTextInput = React.useRef();
11776
11831
  React.useImperativeHandle(ref, function () {
@@ -11838,7 +11893,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11838
11893
  }, textStyleWithoutBorderStyle]),
11839
11894
  testID: 'text-input',
11840
11895
  accessibilityState: {
11841
- disabled: variant === 'disabled' || variant === 'readonly'
11896
+ disabled: state === 'disabled' || state === 'readonly'
11842
11897
  },
11843
11898
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
11844
11899
  // @ts-ignore
@@ -11867,11 +11922,11 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11867
11922
  });
11868
11923
  return /*#__PURE__*/React.createElement(StyledContainer$4, {
11869
11924
  style: styleWithoutBackgroundColor,
11870
- pointerEvents: variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto',
11925
+ pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
11871
11926
  testID: testID
11872
11927
  }, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, /*#__PURE__*/React.createElement(StyledBorderBackDrop, {
11873
11928
  themeFocused: isFocused,
11874
- themeVariant: variant,
11929
+ themeState: state,
11875
11930
  testID: "text-input-border",
11876
11931
  style: [{
11877
11932
  backgroundColor: backgroundColor
@@ -11883,36 +11938,39 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11883
11938
  backgroundColor: backgroundColor
11884
11939
  }
11885
11940
  }, required && /*#__PURE__*/React.createElement(StyledAsteriskLabel, {
11886
- themeVariant: variant,
11941
+ themeState: state,
11887
11942
  fontSize: "small"
11888
11943
  }, "*"), !!label && /*#__PURE__*/React.createElement(StyledLabel, {
11889
11944
  nativeID: accessibilityLabelledBy,
11890
11945
  testID: "input-label",
11891
11946
  fontSize: "small",
11892
- themeVariant: variant,
11947
+ themeState: state,
11893
11948
  style: {
11894
11949
  backgroundColor: backgroundColor
11895
11950
  }
11896
11951
  }, label)), typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
11897
- intent: variant === 'disabled' ? 'disabled-text' : 'text',
11952
+ intent: state === 'disabled' ? 'disabled-text' : 'text',
11898
11953
  testID: "input-prefix",
11899
11954
  icon: prefix,
11900
11955
  size: "xsmall"
11901
11956
  }) : prefix, /*#__PURE__*/React.createElement(StyledTextInputAndLabelContainer, null, !isFocused && isEmptyValue && /*#__PURE__*/React.createElement(StyledLabelContainerInsideTextInput, {
11957
+ themeVariant: variant,
11902
11958
  pointerEvents: "none"
11903
11959
  }, required && /*#__PURE__*/React.createElement(StyledAsteriskLabelInsideTextInput, {
11904
- themeVariant: variant
11960
+ themeState: state
11905
11961
  }, "*"), !!label && /*#__PURE__*/React.createElement(StyledLabelInsideTextInput, {
11906
11962
  nativeID: accessibilityLabelledBy,
11907
11963
  testID: "input-label",
11908
11964
  fontSize: "medium",
11909
- themeVariant: variant
11965
+ themeState: state
11910
11966
  }, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React.createElement(StyledTextInput, _extends$1({}, nativeInputProps, {
11967
+ themeVariant: variant,
11968
+ multiline: variant === 'textarea' || nativeProps.multiline,
11911
11969
  ref: function ref(reference) {
11912
11970
  innerTextInput.current = reference;
11913
11971
  }
11914
11972
  }))), typeof actualSuffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
11915
- intent: variant === 'disabled' ? 'disabled-text' : 'text',
11973
+ intent: state === 'disabled' ? 'disabled-text' : 'text',
11916
11974
  testID: "input-suffix",
11917
11975
  icon: actualSuffix,
11918
11976
  spin: actualSuffix === 'loading',
@@ -11925,7 +11983,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11925
11983
  }), /*#__PURE__*/React.createElement(StyledError, {
11926
11984
  testID: "input-error-message"
11927
11985
  }, error)) : !!helpText && /*#__PURE__*/React.createElement(StyledHelperText, null, helpText), shouldShowMaxLength && /*#__PURE__*/React.createElement(StyledMaxLengthMessage, {
11928
- themeVariant: variant,
11986
+ themeState: state,
11929
11987
  fontSize: "small"
11930
11988
  }, displayText.length, "/", maxLength))));
11931
11989
  });
@@ -12179,11 +12237,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
12179
12237
  }))));
12180
12238
  };
12181
12239
 
12182
- var _excluded$c = ["variant"];
12240
+ var _excluded$d = ["variant"];
12183
12241
  var DatePicker = function DatePicker(_ref) {
12184
12242
  var _ref$variant = _ref.variant,
12185
12243
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
12186
- props = _objectWithoutProperties(_ref, _excluded$c);
12244
+ props = _objectWithoutProperties(_ref, _excluded$d);
12187
12245
  if (variant === 'calendar') {
12188
12246
  return /*#__PURE__*/React.createElement(DatePickerCalendar, props);
12189
12247
  }
@@ -12622,9 +12680,9 @@ var StyledErrorDescription = index$a(Typography.Text)(function (_ref9) {
12622
12680
  };
12623
12681
  });
12624
12682
 
12625
- var _excluded$b = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
12683
+ var _excluded$c = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
12626
12684
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
12627
- var renderImage = function renderImage(image) {
12685
+ var renderImage$1 = function renderImage(image) {
12628
12686
  if ( /*#__PURE__*/isValidElement(image)) {
12629
12687
  return /*#__PURE__*/React.cloneElement(image, {
12630
12688
  testID: 'error-image'
@@ -12648,14 +12706,14 @@ var ErrorPage = function ErrorPage(_ref) {
12648
12706
  onCtaPress = _ref.onCtaPress,
12649
12707
  secondaryCtaText = _ref.secondaryCtaText,
12650
12708
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
12651
- nativeProps = _objectWithoutProperties(_ref, _excluded$b);
12709
+ nativeProps = _objectWithoutProperties(_ref, _excluded$c);
12652
12710
  var showCta = ctaText && onCtaPress !== undefined;
12653
12711
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
12654
12712
  var showButtonContainer = showCta || showSecondaryCta;
12655
12713
  return /*#__PURE__*/React.createElement(StyledErrorContainer$1, _extends$1({
12656
12714
  testID: testID,
12657
12715
  themeVariant: variant
12658
- }, nativeProps), /*#__PURE__*/React.createElement(StyledErrorContent, null, image && /*#__PURE__*/React.createElement(StyledErrorImageContainer, null, renderImage(image)), /*#__PURE__*/React.createElement(StyledErrorTitle, null, title), description && /*#__PURE__*/React.createElement(StyledErrorDescription, null, description)), showButtonContainer && /*#__PURE__*/React.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React.createElement(StyledErrorButtonPrimary, {
12716
+ }, nativeProps), /*#__PURE__*/React.createElement(StyledErrorContent, null, image && /*#__PURE__*/React.createElement(StyledErrorImageContainer, null, renderImage$1(image)), /*#__PURE__*/React.createElement(StyledErrorTitle, null, title), description && /*#__PURE__*/React.createElement(StyledErrorDescription, null, description)), showButtonContainer && /*#__PURE__*/React.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React.createElement(StyledErrorButtonPrimary, {
12659
12717
  variant: "filled",
12660
12718
  text: ctaText,
12661
12719
  onPress: onCtaPress
@@ -12802,11 +12860,11 @@ var StyledFABContainer = index$a(Box)(function (_ref4) {
12802
12860
  };
12803
12861
  });
12804
12862
 
12805
- var _excluded$a = ["active"];
12863
+ var _excluded$b = ["active"];
12806
12864
  var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
12807
12865
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
12808
12866
  var active = _ref.active,
12809
- iconProps = _objectWithoutProperties(_ref, _excluded$a);
12867
+ iconProps = _objectWithoutProperties(_ref, _excluded$b);
12810
12868
  var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
12811
12869
  useEffect(function () {
12812
12870
  var animation = Animated.timing(rotateAnimation.current, {
@@ -13163,10 +13221,10 @@ var ListItem = function ListItem(_ref) {
13163
13221
  }, prefix && /*#__PURE__*/React.createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
13164
13222
  icon: prefix,
13165
13223
  intent: disabled ? 'disabled-text' : 'primary'
13166
- }) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer$1, null, /*#__PURE__*/React.createElement(Typography.Text, {
13224
+ }) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React.createElement(Typography.Text, {
13167
13225
  intent: "body",
13168
13226
  fontSize: "large"
13169
- }, title), !!subtitle && /*#__PURE__*/React.createElement(Typography.Text, {
13227
+ }, title) : title, !!subtitle && /*#__PURE__*/React.createElement(Typography.Text, {
13170
13228
  intent: "subdued",
13171
13229
  fontSize: "small"
13172
13230
  }, subtitle)), suffix && /*#__PURE__*/React.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
@@ -13546,7 +13604,7 @@ var StyledStrokeEnd = index$a(View)(function (_ref6) {
13546
13604
  };
13547
13605
  });
13548
13606
 
13549
- var _excluded$9 = ["value", "renderValue", "intent", "style", "testID"];
13607
+ var _excluded$a = ["value", "renderValue", "intent", "style", "testID"];
13550
13608
  var HalfCircle = function HalfCircle(_ref) {
13551
13609
  var type = _ref.type,
13552
13610
  themeIntent = _ref.themeIntent;
@@ -13567,7 +13625,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
13567
13625
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
13568
13626
  style = _ref2.style,
13569
13627
  testID = _ref2.testID,
13570
- nativeProps = _objectWithoutProperties(_ref2, _excluded$9);
13628
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
13571
13629
  var theme = useTheme$1();
13572
13630
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
13573
13631
  var progressAnimatedValue = useRef(new Animated.Value(0));
@@ -13684,14 +13742,14 @@ var StyledInner = index$a(Animated.View)(function (_ref2) {
13684
13742
  };
13685
13743
  });
13686
13744
 
13687
- var _excluded$8 = ["value", "intent", "style", "testID"];
13745
+ var _excluded$9 = ["value", "intent", "style", "testID"];
13688
13746
  var ProgressBar = function ProgressBar(_ref) {
13689
13747
  var value = _ref.value,
13690
13748
  _ref$intent = _ref.intent,
13691
13749
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
13692
13750
  style = _ref.style,
13693
13751
  testID = _ref.testID,
13694
- nativeProps = _objectWithoutProperties(_ref, _excluded$8);
13752
+ nativeProps = _objectWithoutProperties(_ref, _excluded$9);
13695
13753
  var _useState = useState(0),
13696
13754
  _useState2 = _slicedToArray(_useState, 2),
13697
13755
  width = _useState2[0],
@@ -13882,14 +13940,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
13882
13940
  }, dotProps))));
13883
13941
  };
13884
13942
 
13885
- var _excluded$7 = ["testID", "size", "intent"];
13943
+ var _excluded$8 = ["testID", "size", "intent"];
13886
13944
  var Spinner = function Spinner(_ref) {
13887
13945
  var testID = _ref.testID,
13888
13946
  _ref$size = _ref.size,
13889
13947
  size = _ref$size === void 0 ? 'medium' : _ref$size,
13890
13948
  _ref$intent = _ref.intent,
13891
13949
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
13892
- nativeProps = _objectWithoutProperties(_ref, _excluded$7);
13950
+ nativeProps = _objectWithoutProperties(_ref, _excluded$8);
13893
13951
  return /*#__PURE__*/React.createElement(StyledView$1, nativeProps, /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
13894
13952
  testID: testID
13895
13953
  }, /*#__PURE__*/React.createElement(AnimatedSpinner, {
@@ -13922,7 +13980,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
13922
13980
  }, children);
13923
13981
  };
13924
13982
 
13925
- var _excluded$6 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
13983
+ var _excluded$7 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
13926
13984
  var renderActions = function renderActions(actions, width, progress, direction) {
13927
13985
  var trans = progress.interpolate({
13928
13986
  inputRange: [0, 1],
@@ -13947,7 +14005,7 @@ var Swipeable = function Swipeable(_ref) {
13947
14005
  leftActionsWidth = _ref.leftActionsWidth,
13948
14006
  rightActions = _ref.rightActions,
13949
14007
  rightActionsWidth = _ref.rightActionsWidth,
13950
- swipeableProps = _objectWithoutProperties(_ref, _excluded$6);
14008
+ swipeableProps = _objectWithoutProperties(_ref, _excluded$7);
13951
14009
  var _useWindowDimensions = useWindowDimensions(),
13952
14010
  width = _useWindowDimensions.width;
13953
14011
  var swipeableRef = useRef(null);
@@ -14252,7 +14310,7 @@ var StyledSectionList = index$a(SectionList)(function (_ref4) {
14252
14310
  };
14253
14311
  });
14254
14312
 
14255
- var _excluded$5 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
14313
+ var _excluded$6 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
14256
14314
  var BaseOptionList = function BaseOptionList(_ref) {
14257
14315
  var keyExtractor = _ref.keyExtractor,
14258
14316
  loading = _ref.loading,
@@ -14261,7 +14319,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
14261
14319
  sections = _ref.sections,
14262
14320
  renderItem = _ref.renderItem,
14263
14321
  sectionListRef = _ref.sectionListRef,
14264
- rest = _objectWithoutProperties(_ref, _excluded$5);
14322
+ rest = _objectWithoutProperties(_ref, _excluded$6);
14265
14323
  var theme = useTheme$1();
14266
14324
  var _useState = useState(false),
14267
14325
  _useState2 = _slicedToArray(_useState, 2),
@@ -14330,7 +14388,7 @@ var Option$2 = function Option(_ref) {
14330
14388
  return highlighted === true ? /*#__PURE__*/React.createElement(List.Item, props) : /*#__PURE__*/React.createElement(List.BasicItem, props);
14331
14389
  };
14332
14390
 
14333
- var _excluded$4 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14391
+ var _excluded$5 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14334
14392
  var OptionList$1 = function OptionList(_ref) {
14335
14393
  var keyExtractor = _ref.keyExtractor,
14336
14394
  loading = _ref.loading,
@@ -14341,7 +14399,7 @@ var OptionList$1 = function OptionList(_ref) {
14341
14399
  renderOption = _ref.renderOption,
14342
14400
  value = _ref.value,
14343
14401
  sectionListRef = _ref.sectionListRef,
14344
- rest = _objectWithoutProperties(_ref, _excluded$4);
14402
+ rest = _objectWithoutProperties(_ref, _excluded$5);
14345
14403
  var renderItem = function renderItem(info) {
14346
14404
  var item = info.item;
14347
14405
  var selected = value.includes(info.item.value);
@@ -14529,7 +14587,7 @@ var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
14529
14587
  };
14530
14588
  });
14531
14589
 
14532
- var _excluded$3 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14590
+ var _excluded$4 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14533
14591
  var OptionList = function OptionList(_ref) {
14534
14592
  var keyExtractor = _ref.keyExtractor,
14535
14593
  loading = _ref.loading,
@@ -14540,7 +14598,7 @@ var OptionList = function OptionList(_ref) {
14540
14598
  renderOption = _ref.renderOption,
14541
14599
  value = _ref.value,
14542
14600
  sectionListRef = _ref.sectionListRef,
14543
- rest = _objectWithoutProperties(_ref, _excluded$3);
14601
+ rest = _objectWithoutProperties(_ref, _excluded$4);
14544
14602
  var renderItem = function renderItem(info) {
14545
14603
  var item = info.item;
14546
14604
  var selected = item.value === value;
@@ -14705,7 +14763,7 @@ var StyledGradientContainer = index$a(Box)(function (_ref2) {
14705
14763
  };
14706
14764
  });
14707
14765
 
14708
- var _excluded$2 = ["intent", "variant", "style", "onLayout"];
14766
+ var _excluded$3 = ["intent", "variant", "style", "onLayout"];
14709
14767
  var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
14710
14768
  var gradientPositions = {
14711
14769
  start: {
@@ -14737,7 +14795,7 @@ var Skeleton = function Skeleton(_ref) {
14737
14795
  variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
14738
14796
  style = _ref.style,
14739
14797
  onLayout = _ref.onLayout,
14740
- props = _objectWithoutProperties(_ref, _excluded$2);
14798
+ props = _objectWithoutProperties(_ref, _excluded$3);
14741
14799
  var theme = useTheme();
14742
14800
  var colors = useMemo(function () {
14743
14801
  return getGradientColors(theme, intent);
@@ -14801,6 +14859,134 @@ var Skeleton = function Skeleton(_ref) {
14801
14859
  })));
14802
14860
  };
14803
14861
 
14862
+ var StyledSuccessContainer = index$a(View)(function (_ref) {
14863
+ var theme = _ref.theme,
14864
+ themeVariant = _ref.themeVariant;
14865
+ return {
14866
+ display: 'flex',
14867
+ flex: 1,
14868
+ flexDirection: 'column',
14869
+ backgroundColor: themeVariant === 'in-page' ? theme.__hd__.success.colors.inPageBackground : theme.__hd__.success.colors.fullScreenBackground
14870
+ };
14871
+ });
14872
+ var StyledSuccessImage = index$a(Image)(function (_ref2) {
14873
+ var theme = _ref2.theme;
14874
+ return {
14875
+ marginBottom: theme.__hd__.success.space.imageMarginBottom,
14876
+ width: theme.__hd__.success.sizes.image,
14877
+ height: theme.__hd__.success.sizes.image,
14878
+ resizeMode: 'contain'
14879
+ };
14880
+ });
14881
+ var StyledSuccessContent = index$a(View)(function (_ref3) {
14882
+ var theme = _ref3.theme;
14883
+ return {
14884
+ display: 'flex',
14885
+ flex: 1,
14886
+ flexDirection: 'column',
14887
+ justifyContent: 'center',
14888
+ alignItems: 'center',
14889
+ padding: theme.__hd__.success.space.wrapperPadding
14890
+ };
14891
+ });
14892
+ var StyledSuccessImageContainer = index$a(View)(function (_ref4) {
14893
+ var theme = _ref4.theme;
14894
+ return {
14895
+ marginBottom: theme.__hd__.success.space.imageMarginBottom,
14896
+ width: theme.__hd__.success.sizes.image,
14897
+ height: theme.__hd__.success.sizes.image
14898
+ };
14899
+ });
14900
+ var StyledSuccessTitle = index$a(Typography.Text)(function (_ref5) {
14901
+ var theme = _ref5.theme;
14902
+ return {
14903
+ fontFamily: theme.__hd__.success.fonts.title,
14904
+ fontSize: theme.__hd__.success.fontSizes.title,
14905
+ textAlign: 'center',
14906
+ marginBottom: theme.__hd__.success.space.titleMarginBottom,
14907
+ color: theme.__hd__.success.colors.title
14908
+ };
14909
+ });
14910
+ var StyledSuccessDescription = index$a(Typography.Text)(function (_ref6) {
14911
+ var theme = _ref6.theme;
14912
+ return {
14913
+ fontFamily: theme.__hd__.success.fonts.description,
14914
+ fontSize: theme.__hd__.success.fontSizes.description,
14915
+ textAlign: 'center',
14916
+ color: theme.__hd__.success.colors.description
14917
+ };
14918
+ });
14919
+ var StyledSuccessButtonContainer = index$a(View)(function (_ref7) {
14920
+ var theme = _ref7.theme;
14921
+ return {
14922
+ display: 'flex',
14923
+ flexDirection: 'column',
14924
+ justifyContent: 'center',
14925
+ alignItems: 'center',
14926
+ paddingHorizontal: theme.__hd__.success.space.button.wrapperHorizontalPadding,
14927
+ paddingVertical: theme.__hd__.success.space.button.wrapperVerticalPadding
14928
+ };
14929
+ });
14930
+ var StyledSuccessButtonPrimary = index$a(CompoundButton)(function (_ref8) {
14931
+ var theme = _ref8.theme;
14932
+ return {
14933
+ padding: theme.__hd__.success.space.button.padding
14934
+ };
14935
+ });
14936
+ var StyledSuccessModal = index$a(Modal)({
14937
+ height: '100%',
14938
+ width: '100%'
14939
+ });
14940
+
14941
+ var _excluded$2 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress"];
14942
+ var renderImage = function renderImage(image) {
14943
+ if ( /*#__PURE__*/isValidElement(image)) {
14944
+ return /*#__PURE__*/React.cloneElement(image, {
14945
+ testID: 'success-image'
14946
+ });
14947
+ }
14948
+ return /*#__PURE__*/React.createElement(StyledSuccessImage, {
14949
+ source: typeof image === 'string' ? {
14950
+ uri: image
14951
+ } : image,
14952
+ testID: "success-image"
14953
+ });
14954
+ };
14955
+ var SuccessPage = function SuccessPage(_ref) {
14956
+ var _ref$variant = _ref.variant,
14957
+ variant = _ref$variant === void 0 ? 'in-page' : _ref$variant,
14958
+ title = _ref.title,
14959
+ description = _ref.description,
14960
+ image = _ref.image,
14961
+ testID = _ref.testID,
14962
+ ctaText = _ref.ctaText,
14963
+ _ref$onCtaPress = _ref.onCtaPress,
14964
+ onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
14965
+ nativeProps = _objectWithoutProperties(_ref, _excluded$2);
14966
+ return /*#__PURE__*/React.createElement(StyledSuccessContainer, _extends$1({
14967
+ testID: testID,
14968
+ themeVariant: variant
14969
+ }, nativeProps), /*#__PURE__*/React.createElement(StyledSuccessContent, null, !!image && /*#__PURE__*/React.createElement(StyledSuccessImageContainer, null, renderImage(image)), /*#__PURE__*/React.createElement(StyledSuccessTitle, null, title), !!description && /*#__PURE__*/React.createElement(StyledSuccessDescription, null, description)), !!ctaText && /*#__PURE__*/React.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React.createElement(StyledSuccessButtonPrimary, {
14970
+ text: ctaText,
14971
+ onPress: onCtaPress
14972
+ })));
14973
+ };
14974
+ /**
14975
+ * Renders success page
14976
+ *
14977
+ * @param {SuccessProps} props
14978
+ * @return {*} {ReactElement}
14979
+ */
14980
+ var Success = function Success(props) {
14981
+ var variant = props.variant;
14982
+ if (variant === 'full-screen') {
14983
+ return /*#__PURE__*/React.createElement(StyledSuccessModal, {
14984
+ animationType: "slide"
14985
+ }, /*#__PURE__*/React.createElement(SuccessPage, props));
14986
+ }
14987
+ return /*#__PURE__*/React.createElement(SuccessPage, props);
14988
+ };
14989
+
14804
14990
  var StyledWrapper$1 = index$a(View)(function (_ref) {
14805
14991
  var theme = _ref.theme;
14806
14992
  return {
@@ -15149,48 +15335,35 @@ var getTabItem$1 = function getTabItem(_ref) {
15149
15335
  color: color
15150
15336
  });
15151
15337
  };
15152
- var ScrollableTab = function ScrollableTab(_ref2) {
15338
+ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
15153
15339
  var onTabPress = _ref2.onTabPress,
15154
- selectedTabKey = _ref2.selectedTabKey,
15340
+ selectedIndex = _ref2.selectedIndex,
15155
15341
  tabs = _ref2.tabs,
15156
- containerStyle = _ref2.containerStyle,
15157
15342
  barStyle = _ref2.barStyle,
15158
- _ref2$lazy = _ref2.lazy,
15159
- lazy = _ref2$lazy === void 0 ? false : _ref2$lazy,
15160
- _ref2$lazyPreloadDist = _ref2.lazyPreloadDistance,
15161
- lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist,
15162
- _ref2$swipeEnabled = _ref2.swipeEnabled,
15163
- swipeEnabled = _ref2$swipeEnabled === void 0 ? true : _ref2$swipeEnabled,
15164
- componentTestID = _ref2.testID;
15343
+ testID = _ref2.testID,
15344
+ _ref2$insets = _ref2.insets,
15345
+ insets = _ref2$insets === void 0 ? {
15346
+ top: 0,
15347
+ bottom: 0,
15348
+ right: 0,
15349
+ left: 0
15350
+ } : _ref2$insets;
15165
15351
  var flatListRef = React.useRef(null);
15166
- var pagerViewRef = React.useRef(null);
15167
- var insets = useSafeAreaInsets();
15168
15352
  var theme = useTheme$1();
15169
- var selectedTabIndex = tabs.findIndex(function (item) {
15170
- return item.key === selectedTabKey;
15171
- });
15172
15353
  var tabsAnims = useAnimatedValueArray(tabs.map(function (_, i) {
15173
- return i === selectedTabIndex ? 1 : 0;
15354
+ return i === selectedIndex ? 1 : 0;
15174
15355
  }));
15175
15356
  React.useEffect(function () {
15176
- var timeoutHandle = null;
15177
- if (selectedTabIndex !== -1) {
15357
+ if (selectedIndex !== undefined && selectedIndex !== -1) {
15178
15358
  var _flatListRef$current;
15179
15359
  (_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 ? void 0 : _flatListRef$current.scrollToIndex({
15180
- index: selectedTabIndex,
15360
+ index: selectedIndex,
15181
15361
  viewPosition: 0.5
15182
15362
  });
15183
- // If the selected tab is changed too quickly, the setPage is crashed and not work anymore
15184
- // We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
15185
- timeoutHandle = setTimeout(function () {
15186
- var _pagerViewRef$current;
15187
- // use no animation to prevent unexpected behavior if users select tab too quickly
15188
- (_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPageWithoutAnimation(selectedTabIndex);
15189
- }, 200);
15190
15363
  }
15191
15364
  var animation = Animated.parallel(_toConsumableArray(tabs.map(function (_, i) {
15192
15365
  return Animated.timing(tabsAnims[i], {
15193
- toValue: i === selectedTabIndex ? 1 : 0,
15366
+ toValue: i === selectedIndex ? 1 : 0,
15194
15367
  duration: 150,
15195
15368
  useNativeDriver: true
15196
15369
  });
@@ -15198,19 +15371,13 @@ var ScrollableTab = function ScrollableTab(_ref2) {
15198
15371
  animation.start();
15199
15372
  return function () {
15200
15373
  animation.stop();
15201
- if (timeoutHandle) {
15202
- clearTimeout(timeoutHandle);
15203
- }
15204
15374
  };
15205
- }, [selectedTabIndex, pagerViewRef]);
15206
- return /*#__PURE__*/React.createElement(TabContainer, {
15207
- style: containerStyle,
15208
- testID: componentTestID
15209
- }, /*#__PURE__*/React.createElement(HeaderTabWrapper, {
15375
+ }, [selectedIndex]);
15376
+ return /*#__PURE__*/React.createElement(HeaderTabWrapper, {
15210
15377
  themeInsets: insets,
15211
15378
  style: barStyle
15212
15379
  }, /*#__PURE__*/React.createElement(FlatList, {
15213
- testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
15380
+ testID: testID,
15214
15381
  ref: flatListRef,
15215
15382
  horizontal: true,
15216
15383
  data: tabs,
@@ -15235,11 +15402,11 @@ var ScrollableTab = function ScrollableTab(_ref2) {
15235
15402
  var tab = _ref4.item,
15236
15403
  index = _ref4.index;
15237
15404
  var key = tab.key,
15238
- testID = tab.testID,
15405
+ tabItemTestID = tab.testID,
15239
15406
  activeItem = tab.activeItem,
15240
15407
  originalInactiveItem = tab.inactiveItem,
15241
15408
  badge = tab.badge;
15242
- var active = selectedTabKey === key;
15409
+ var active = selectedIndex === index;
15243
15410
  var activeAnimated = tabsAnims[index];
15244
15411
  var outlineScale = active ? activeAnimated.interpolate({
15245
15412
  inputRange: [0, 1],
@@ -15256,7 +15423,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
15256
15423
  onPress: function onPress() {
15257
15424
  onTabPress(key);
15258
15425
  },
15259
- testID: testID
15426
+ testID: tabItemTestID
15260
15427
  }, /*#__PURE__*/React.createElement(HeaderTabItem, {
15261
15428
  isFirstItem: index === 0
15262
15429
  }, /*#__PURE__*/React.createElement(HeaderTabItemOutlineWrapper, null, /*#__PURE__*/React.createElement(HeaderTabItemOutline, {
@@ -15272,7 +15439,55 @@ var ScrollableTab = function ScrollableTab(_ref2) {
15272
15439
  tabItem: tabItem
15273
15440
  }))));
15274
15441
  }
15275
- })), /*#__PURE__*/React.createElement(ContentWrapper, {
15442
+ }));
15443
+ };
15444
+
15445
+ var ScrollableTab$1 = function ScrollableTab(_ref) {
15446
+ var onTabPress = _ref.onTabPress,
15447
+ selectedTabKey = _ref.selectedTabKey,
15448
+ tabs = _ref.tabs,
15449
+ containerStyle = _ref.containerStyle,
15450
+ barStyle = _ref.barStyle,
15451
+ _ref$lazy = _ref.lazy,
15452
+ lazy = _ref$lazy === void 0 ? false : _ref$lazy,
15453
+ _ref$lazyPreloadDista = _ref.lazyPreloadDistance,
15454
+ lazyPreloadDistance = _ref$lazyPreloadDista === void 0 ? 1 : _ref$lazyPreloadDista,
15455
+ _ref$swipeEnabled = _ref.swipeEnabled,
15456
+ swipeEnabled = _ref$swipeEnabled === void 0 ? true : _ref$swipeEnabled,
15457
+ componentTestID = _ref.testID;
15458
+ var pagerViewRef = React.useRef(null);
15459
+ var insets = useSafeAreaInsets();
15460
+ var selectedTabIndex = tabs.findIndex(function (item) {
15461
+ return item.key === selectedTabKey;
15462
+ });
15463
+ React.useEffect(function () {
15464
+ var timeoutHandle = null;
15465
+ if (selectedTabIndex !== -1) {
15466
+ // If the selected tab is changed too quickly, the setPage is crashed and not work anymore
15467
+ // We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
15468
+ timeoutHandle = setTimeout(function () {
15469
+ var _pagerViewRef$current;
15470
+ // use no animation to prevent unexpected behavior if users select tab too quickly
15471
+ (_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPageWithoutAnimation(selectedTabIndex);
15472
+ }, 200);
15473
+ }
15474
+ return function () {
15475
+ if (timeoutHandle) {
15476
+ clearTimeout(timeoutHandle);
15477
+ }
15478
+ };
15479
+ }, [selectedTabIndex, pagerViewRef]);
15480
+ return /*#__PURE__*/React.createElement(TabContainer, {
15481
+ style: containerStyle,
15482
+ testID: componentTestID
15483
+ }, /*#__PURE__*/React.createElement(ScrollableTabHeader, {
15484
+ tabs: tabs,
15485
+ selectedIndex: selectedTabIndex,
15486
+ onTabPress: onTabPress,
15487
+ barStyle: barStyle,
15488
+ insets: insets,
15489
+ testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
15490
+ }), /*#__PURE__*/React.createElement(ContentWrapper, {
15276
15491
  initialPage: selectedTabIndex,
15277
15492
  ref: pagerViewRef,
15278
15493
  onPageSelected: function onPageSelected(e) {
@@ -15300,6 +15515,151 @@ var ScrollableTab = function ScrollableTab(_ref2) {
15300
15515
  })));
15301
15516
  };
15302
15517
 
15518
+ var SceneView = function SceneView(_ref) {
15519
+ var _ref$lazy = _ref.lazy,
15520
+ lazy = _ref$lazy === void 0 ? false : _ref$lazy,
15521
+ _ref$lazyPreloadDista = _ref.lazyPreloadDistance,
15522
+ lazyPreloadDistance = _ref$lazyPreloadDista === void 0 ? 1 : _ref$lazyPreloadDista,
15523
+ children = _ref.children,
15524
+ index = _ref.index,
15525
+ selectedIndex = _ref.selectedIndex,
15526
+ focused = _ref.focused,
15527
+ testID = _ref.testID;
15528
+ var _React$useState = React.useState(Math.abs(selectedIndex - index) > lazyPreloadDistance),
15529
+ _React$useState2 = _slicedToArray(_React$useState, 2),
15530
+ isLoading = _React$useState2[0],
15531
+ setIsLoading = _React$useState2[1];
15532
+ if (isLoading && Math.abs(selectedIndex - index) <= lazyPreloadDistance) {
15533
+ // Always render the route when it becomes focused
15534
+ setIsLoading(false);
15535
+ }
15536
+ if (lazy && isLoading) {
15537
+ console.error('Lazy loading is not supported in this version of Tabs');
15538
+ }
15539
+ React.useEffect(function () {
15540
+ var timer;
15541
+ if (!lazy && isLoading) {
15542
+ // If lazy mode is not enabled, render the scene with a delay if not loaded already
15543
+ // This improves the initial startup time as the scene is no longer blocking
15544
+ timer = setTimeout(function () {
15545
+ return setIsLoading(false);
15546
+ }, 0);
15547
+ }
15548
+ return function () {
15549
+ clearTimeout(timer);
15550
+ };
15551
+ }, [index, isLoading, lazy, focused]);
15552
+ return /*#__PURE__*/React.createElement(TabScreen, {
15553
+ accessibilityElementsHidden: !focused,
15554
+ importantForAccessibility: focused ? 'auto' : 'no-hide-descendants',
15555
+ style: [{
15556
+ flex: 1,
15557
+ overflow: 'hidden'
15558
+ }, focused ? StyleSheet$1.absoluteFill : null],
15559
+ testID: testID
15560
+ }, focused || !isLoading ? children : null);
15561
+ };
15562
+
15563
+ var TabContext = /*#__PURE__*/React.createContext(null);
15564
+ var ScreenContext = /*#__PURE__*/React.createContext(null);
15565
+ var useIsFocused = function useIsFocused() {
15566
+ var context = React.useContext(TabContext);
15567
+ var key = React.useContext(ScreenContext);
15568
+ if (!context || !key) {
15569
+ return;
15570
+ }
15571
+ var isFocused = context.selectedTabKey === key;
15572
+ return isFocused;
15573
+ };
15574
+ var ScrollableTab = function ScrollableTab(_ref) {
15575
+ var onTabPress = _ref.onTabPress,
15576
+ selectedTabKey = _ref.selectedTabKey,
15577
+ tabs = _ref.tabs,
15578
+ containerStyle = _ref.containerStyle,
15579
+ barStyle = _ref.barStyle,
15580
+ _ref$lazy = _ref.lazy,
15581
+ lazy = _ref$lazy === void 0 ? false : _ref$lazy,
15582
+ _ref$lazyPreloadDista = _ref.lazyPreloadDistance,
15583
+ lazyPreloadDistance = _ref$lazyPreloadDista === void 0 ? 1 : _ref$lazyPreloadDista,
15584
+ _ref$swipeEnabled = _ref.swipeEnabled,
15585
+ swipeEnabled = _ref$swipeEnabled === void 0 ? true : _ref$swipeEnabled,
15586
+ componentTestID = _ref.testID;
15587
+ var pagerViewRef = React.useRef(null);
15588
+ var insets = useSafeAreaInsets();
15589
+ var selectedTabIndex = tabs.findIndex(function (item) {
15590
+ return item.key === selectedTabKey;
15591
+ });
15592
+ React.useEffect(function () {
15593
+ var timeoutHandle = null;
15594
+ if (selectedTabIndex !== -1) {
15595
+ // If the selected tab is changed too quickly, the setPage is crashed and not work anymore
15596
+ // We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
15597
+ timeoutHandle = setTimeout(function () {
15598
+ var _pagerViewRef$current;
15599
+ // use no animation to prevent unexpected behavior if users select tab too quickly
15600
+ (_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPageWithoutAnimation(selectedTabIndex);
15601
+ }, 200);
15602
+ }
15603
+ return function () {
15604
+ if (timeoutHandle) {
15605
+ clearTimeout(timeoutHandle);
15606
+ }
15607
+ };
15608
+ }, [selectedTabIndex, pagerViewRef]);
15609
+ var indexRef = React.useRef(selectedTabIndex);
15610
+ var tabContextProviderValue = React.useMemo(function () {
15611
+ return {
15612
+ selectedTabKey: selectedTabKey
15613
+ };
15614
+ }, [selectedTabKey]);
15615
+ return /*#__PURE__*/React.createElement(TabContext.Provider, {
15616
+ value: tabContextProviderValue
15617
+ }, /*#__PURE__*/React.createElement(TabContainer, {
15618
+ style: containerStyle,
15619
+ testID: componentTestID
15620
+ }, /*#__PURE__*/React.createElement(ScrollableTabHeader, {
15621
+ tabs: tabs,
15622
+ selectedIndex: selectedTabIndex,
15623
+ onTabPress: onTabPress,
15624
+ barStyle: barStyle,
15625
+ insets: insets,
15626
+ testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
15627
+ }), /*#__PURE__*/React.createElement(ContentWrapper, {
15628
+ initialPage: selectedTabIndex,
15629
+ ref: pagerViewRef,
15630
+ onPageSelected: function onPageSelected(e) {
15631
+ var index = e.nativeEvent.position;
15632
+ var selectedItem = tabs[index];
15633
+ if (selectedItem) {
15634
+ setTimeout(function () {
15635
+ onTabPress(selectedItem.key);
15636
+ });
15637
+ }
15638
+ indexRef.current = index;
15639
+ },
15640
+ scrollEnabled: swipeEnabled
15641
+ }, tabs.map(function (tab, index) {
15642
+ var key = tab.key,
15643
+ component = tab.component,
15644
+ testID = tab.testID;
15645
+ return /*#__PURE__*/React.createElement(ScreenContext.Provider, {
15646
+ value: key
15647
+ }, /*#__PURE__*/React.createElement(SceneView, {
15648
+ testID: testID,
15649
+ key: key,
15650
+ index: index,
15651
+ selectedIndex: indexRef.current,
15652
+ lazy: lazy,
15653
+ lazyPreloadDistance: lazyPreloadDistance,
15654
+ focused: selectedTabKey === key
15655
+ }, component));
15656
+ }))));
15657
+ };
15658
+
15659
+ var ScrollableTabsV2 = Object.assign(ScrollableTab, {
15660
+ useIsFocused: useIsFocused
15661
+ });
15662
+
15303
15663
  var getTabItem = function getTabItem(_ref) {
15304
15664
  var item = _ref.item,
15305
15665
  color = _ref.color,
@@ -15426,12 +15786,13 @@ var Tabs = function Tabs(_ref2) {
15426
15786
  })));
15427
15787
  };
15428
15788
  var index$2 = Object.assign(Tabs, {
15429
- Scroll: ScrollableTab
15789
+ Scroll: ScrollableTab$1,
15790
+ ScrollV2: ScrollableTabsV2
15430
15791
  });
15431
15792
 
15432
15793
  var getFilledStyles = function getFilledStyles(themeIntent, theme) {
15433
15794
  return {
15434
- textColor: theme.__hd__.tag.colors.text,
15795
+ textColor: theme.__hd__.tag.colors[themeIntent],
15435
15796
  borderColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")],
15436
15797
  backgroundColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")]
15437
15798
  };
@@ -32281,7 +32642,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
32281
32642
  var isEmptyValue = useMemo(function () {
32282
32643
  return lib.exports.isEmptyContent(value);
32283
32644
  }, [value]);
32284
- var variant = useMemo(function () {
32645
+ var state = useMemo(function () {
32285
32646
  if (error) {
32286
32647
  return 'error';
32287
32648
  }
@@ -32389,25 +32750,26 @@ var RichTextEditor = function RichTextEditor(_ref) {
32389
32750
  return /*#__PURE__*/React.createElement(StyledContainer$4, {
32390
32751
  testID: testID
32391
32752
  }, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, /*#__PURE__*/React.createElement(StyledBorderBackDrop, {
32392
- themeVariant: variant,
32753
+ themeState: state,
32393
32754
  themeFocused: isFocused
32394
32755
  }), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React.createElement(StyledLabelContainer, {
32395
32756
  pointerEvents: "none"
32396
32757
  }, required && /*#__PURE__*/React.createElement(StyledAsteriskLabel, {
32397
- themeVariant: variant,
32758
+ themeState: state,
32398
32759
  fontSize: "small"
32399
32760
  }, "*"), !!label && /*#__PURE__*/React.createElement(StyledLabel, {
32400
32761
  testID: "input-label",
32401
32762
  fontSize: "small",
32402
- themeVariant: variant
32763
+ themeState: state
32403
32764
  }, label)), /*#__PURE__*/React.createElement(StyledTextInputAndLabelContainer, null, !isFocused && isEmptyValue && /*#__PURE__*/React.createElement(StyledLabelContainerInsideTextInput, {
32765
+ themeVariant: "text",
32404
32766
  pointerEvents: "none"
32405
32767
  }, required && /*#__PURE__*/React.createElement(StyledAsteriskLabelInsideTextInput, {
32406
- themeVariant: variant
32768
+ themeState: state
32407
32769
  }, "*"), !!label && /*#__PURE__*/React.createElement(StyledLabelInsideTextInput, {
32408
32770
  testID: "input-label",
32409
32771
  fontSize: "medium",
32410
- themeVariant: variant
32772
+ themeState: state
32411
32773
  }, label)), /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
32412
32774
  onPress: function onPress(e) {
32413
32775
  return e.stopPropagation();
@@ -32445,4 +32807,4 @@ var index = Object.assign(RichTextEditor$1, {
32445
32807
  Toolbar: EditorToolbar
32446
32808
  });
32447
32809
 
32448
- export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, Icon, Image, List, PageControl, PinInput, Progress, CompoundRadio as Radio, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
32810
+ export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, Icon, Image, List, PageControl, PinInput, Progress, CompoundRadio as Radio, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };