@hero-design/rn 8.34.2 → 8.35.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/.tool-versions +1 -0
  2. package/.turbo/turbo-build.log +2 -2
  3. package/.turbo/turbo-build:types.log +9 -0
  4. package/.turbo/turbo-lint.log +163 -0
  5. package/.turbo/turbo-publish:npm.log +9 -0
  6. package/.turbo/turbo-test.log +725 -0
  7. package/.turbo/turbo-type-check.log +1 -0
  8. package/es/index.js +235 -93
  9. package/lib/index.js +235 -92
  10. package/package.json +9 -8
  11. package/src/components/FAB/ActionGroup/FABModal.tsx +63 -0
  12. package/src/components/FAB/ActionGroup/FABModalContentWrapper.tsx +31 -0
  13. package/src/components/FAB/ActionGroup/ModalPresenter/ModalPresenter.tsx +133 -0
  14. package/src/components/FAB/ActionGroup/ModalPresenter/index.tsx +13 -0
  15. package/src/components/FAB/ActionGroup/index.tsx +55 -35
  16. package/src/components/FAB/FAB.tsx +10 -1
  17. package/src/components/Progress/StyledProgressBar.tsx +0 -1
  18. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +44 -46
  19. package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +7 -4
  20. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  21. package/src/components/Switch/SelectorSwitch/index.tsx +15 -7
  22. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +12 -12
  23. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +4 -4
  24. package/src/index.ts +2 -0
  25. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +7 -7
  26. package/src/theme/components/progress.ts +2 -2
  27. package/src/theme/components/switch.ts +4 -4
  28. package/src/theme/components/tabs.ts +1 -1
  29. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  30. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  31. package/types/components/Accordion/index.d.ts +0 -0
  32. package/types/components/Alert/StyledAlert.d.ts +0 -0
  33. package/types/components/Alert/index.d.ts +0 -0
  34. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  35. package/types/components/Attachment/index.d.ts +0 -0
  36. package/types/components/Avatar/Avatar.d.ts +0 -0
  37. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  38. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  39. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  40. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  41. package/types/components/Avatar/index.d.ts +0 -0
  42. package/types/components/Badge/Status.d.ts +0 -0
  43. package/types/components/Badge/StyledBadge.d.ts +0 -0
  44. package/types/components/Badge/index.d.ts +0 -0
  45. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  46. package/types/components/BottomNavigation/index.d.ts +0 -0
  47. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
  48. package/types/components/BottomSheet/Footer.d.ts +0 -0
  49. package/types/components/BottomSheet/Header.d.ts +0 -0
  50. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  51. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  52. package/types/components/BottomSheet/index.d.ts +0 -0
  53. package/types/components/Box/StyledBox.d.ts +0 -0
  54. package/types/components/Box/config.d.ts +0 -0
  55. package/types/components/Box/index.d.ts +0 -0
  56. package/types/components/Box/types.d.ts +0 -0
  57. package/types/components/Button/Button.d.ts +0 -0
  58. package/types/components/Button/IconButton.d.ts +0 -0
  59. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  60. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  61. package/types/components/Button/StyledButton.d.ts +0 -0
  62. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  63. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  64. package/types/components/Button/index.d.ts +0 -0
  65. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  66. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  67. package/types/components/Calendar/helpers.d.ts +0 -0
  68. package/types/components/Calendar/index.d.ts +0 -0
  69. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  70. package/types/components/Card/DataCard/index.d.ts +0 -0
  71. package/types/components/Card/StyledCard.d.ts +0 -0
  72. package/types/components/Card/index.d.ts +0 -0
  73. package/types/components/Carousel/CardCarousel.d.ts +0 -0
  74. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  75. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
  76. package/types/components/Carousel/StyledCarousel.d.ts +0 -0
  77. package/types/components/Carousel/contants.d.ts +0 -0
  78. package/types/components/Carousel/index.d.ts +0 -0
  79. package/types/components/Carousel/types.d.ts +0 -0
  80. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  81. package/types/components/Checkbox/index.d.ts +0 -0
  82. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  83. package/types/components/Collapse/index.d.ts +0 -0
  84. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  85. package/types/components/ContentNavigator/index.d.ts +0 -0
  86. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  87. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
  88. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  89. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  90. package/types/components/DatePicker/index.d.ts +0 -0
  91. package/types/components/DatePicker/types.d.ts +0 -0
  92. package/types/components/Divider/StyledDivider.d.ts +0 -0
  93. package/types/components/Divider/index.d.ts +0 -0
  94. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  95. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  96. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  97. package/types/components/Drawer/index.d.ts +0 -0
  98. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  99. package/types/components/Empty/index.d.ts +0 -0
  100. package/types/components/Error/StyledError.d.ts +0 -0
  101. package/types/components/Error/index.d.ts +0 -0
  102. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  103. package/types/components/FAB/ActionGroup/FABModal.d.ts +21 -0
  104. package/types/components/FAB/ActionGroup/FABModalContentWrapper.d.ts +18 -0
  105. package/types/components/FAB/ActionGroup/FABProvider.d.ts +5 -0
  106. package/types/components/FAB/ActionGroup/ModalPresenter/ModalPresenter.d.ts +34 -0
  107. package/types/components/FAB/ActionGroup/ModalPresenter/index.d.ts +3 -0
  108. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  109. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  110. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  111. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  112. package/types/components/FAB/FAB.d.ts +0 -0
  113. package/types/components/FAB/StyledFAB.d.ts +0 -0
  114. package/types/components/FAB/index.d.ts +0 -0
  115. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  116. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  117. package/types/components/Icon/IconList.d.ts +0 -0
  118. package/types/components/Icon/index.d.ts +0 -0
  119. package/types/components/Icon/utils.d.ts +0 -0
  120. package/types/components/Image/index.d.ts +0 -0
  121. package/types/components/List/BasicListItem.d.ts +0 -0
  122. package/types/components/List/ListItem.d.ts +0 -0
  123. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  124. package/types/components/List/StyledListItem.d.ts +0 -0
  125. package/types/components/List/index.d.ts +0 -0
  126. package/types/components/PageControl/StyledPageControl.d.ts +0 -0
  127. package/types/components/PageControl/index.d.ts +0 -0
  128. package/types/components/PinInput/PinCell.d.ts +0 -0
  129. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  130. package/types/components/PinInput/index.d.ts +0 -0
  131. package/types/components/Progress/ProgressBar.d.ts +0 -0
  132. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  133. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  134. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  135. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  136. package/types/components/Progress/constants.d.ts +0 -0
  137. package/types/components/Progress/index.d.ts +0 -0
  138. package/types/components/Progress/types.d.ts +0 -0
  139. package/types/components/Radio/Radio.d.ts +0 -0
  140. package/types/components/Radio/RadioGroup.d.ts +0 -0
  141. package/types/components/Radio/StyledRadio.d.ts +0 -0
  142. package/types/components/Radio/index.d.ts +0 -0
  143. package/types/components/Radio/types.d.ts +0 -0
  144. package/types/components/RefreshControl/index.d.ts +0 -0
  145. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  146. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  147. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  148. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  149. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  150. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  151. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  152. package/types/components/RichTextEditor/constants.d.ts +0 -0
  153. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  154. package/types/components/RichTextEditor/index.d.ts +0 -0
  155. package/types/components/RichTextEditor/types.d.ts +0 -0
  156. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  157. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  158. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  159. package/types/components/SectionHeading/index.d.ts +0 -0
  160. package/types/components/Select/BaseOptionList.d.ts +0 -0
  161. package/types/components/Select/Footer.d.ts +0 -0
  162. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  163. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  164. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  165. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  166. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  167. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
  168. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  169. package/types/components/Select/StyledSelect.d.ts +0 -0
  170. package/types/components/Select/helpers.d.ts +0 -0
  171. package/types/components/Select/index.d.ts +0 -0
  172. package/types/components/Select/types.d.ts +0 -0
  173. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
  174. package/types/components/Skeleton/index.d.ts +0 -0
  175. package/types/components/Slider/index.d.ts +0 -0
  176. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  177. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  178. package/types/components/Spinner/index.d.ts +0 -0
  179. package/types/components/Success/StyledSuccess.d.ts +0 -0
  180. package/types/components/Success/index.d.ts +0 -0
  181. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  182. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  183. package/types/components/Swipeable/index.d.ts +0 -0
  184. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  185. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  186. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  187. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  188. package/types/components/Switch/index.d.ts +0 -0
  189. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  190. package/types/components/Tabs/SceneView.d.ts +0 -0
  191. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  192. package/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -0
  193. package/types/components/Tabs/ScrollableTabsV2/SceneView.d.ts +10 -0
  194. package/types/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.d.ts +9 -0
  195. package/types/components/Tabs/ScrollableTabsV2/index.d.ts +4 -0
  196. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  197. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  198. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  199. package/types/components/Tabs/index.d.ts +0 -0
  200. package/types/components/Tabs/useIsFocused.d.ts +0 -0
  201. package/types/components/Tabs/utils.d.ts +0 -0
  202. package/types/components/Tag/StyledTag.d.ts +0 -0
  203. package/types/components/Tag/index.d.ts +0 -0
  204. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  205. package/types/components/TextInput/index.d.ts +0 -0
  206. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  207. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  208. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  209. package/types/components/TimePicker/index.d.ts +0 -0
  210. package/types/components/TimePicker/types.d.ts +0 -0
  211. package/types/components/Toast/StyledToast.d.ts +0 -0
  212. package/types/components/Toast/Toast.d.ts +0 -0
  213. package/types/components/Toast/ToastContainer.d.ts +0 -0
  214. package/types/components/Toast/ToastContext.d.ts +0 -0
  215. package/types/components/Toast/ToastProvider.d.ts +0 -0
  216. package/types/components/Toast/index.d.ts +0 -0
  217. package/types/components/Toast/types.d.ts +0 -0
  218. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  219. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  220. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  221. package/types/components/Toolbar/index.d.ts +0 -0
  222. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  223. package/types/components/Typography/Text/index.d.ts +0 -0
  224. package/types/components/Typography/index.d.ts +0 -0
  225. package/types/index.d.ts +2 -1
  226. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  227. package/types/theme/ThemeProvider.d.ts +0 -0
  228. package/types/theme/ThemeSwitcher.d.ts +0 -0
  229. package/types/theme/components/accordion.d.ts +0 -0
  230. package/types/theme/components/alert.d.ts +0 -0
  231. package/types/theme/components/attachment.d.ts +0 -0
  232. package/types/theme/components/avatar.d.ts +0 -0
  233. package/types/theme/components/badge.d.ts +0 -0
  234. package/types/theme/components/bottomNavigation.d.ts +0 -0
  235. package/types/theme/components/bottomSheet.d.ts +0 -0
  236. package/types/theme/components/button.d.ts +0 -0
  237. package/types/theme/components/calendar.d.ts +0 -0
  238. package/types/theme/components/card.d.ts +0 -0
  239. package/types/theme/components/cardCarousel.d.ts +0 -0
  240. package/types/theme/components/carousel.d.ts +0 -0
  241. package/types/theme/components/checkbox.d.ts +0 -0
  242. package/types/theme/components/contentNavigator.d.ts +0 -0
  243. package/types/theme/components/datePicker.d.ts +0 -0
  244. package/types/theme/components/divider.d.ts +0 -0
  245. package/types/theme/components/drawer.d.ts +0 -0
  246. package/types/theme/components/empty.d.ts +0 -0
  247. package/types/theme/components/error.d.ts +0 -0
  248. package/types/theme/components/fab.d.ts +0 -0
  249. package/types/theme/components/icon.d.ts +0 -0
  250. package/types/theme/components/image.d.ts +0 -0
  251. package/types/theme/components/list.d.ts +0 -0
  252. package/types/theme/components/pageControl.d.ts +0 -0
  253. package/types/theme/components/pinInput.d.ts +0 -0
  254. package/types/theme/components/progress.d.ts +0 -0
  255. package/types/theme/components/radio.d.ts +0 -0
  256. package/types/theme/components/refreshControl.d.ts +0 -0
  257. package/types/theme/components/richTextEditor.d.ts +0 -0
  258. package/types/theme/components/sectionHeading.d.ts +0 -0
  259. package/types/theme/components/select.d.ts +0 -0
  260. package/types/theme/components/skeleton.d.ts +0 -0
  261. package/types/theme/components/slider.d.ts +0 -0
  262. package/types/theme/components/spinner.d.ts +0 -0
  263. package/types/theme/components/success.d.ts +0 -0
  264. package/types/theme/components/swipeable.d.ts +0 -0
  265. package/types/theme/components/switch.d.ts +1 -1
  266. package/types/theme/components/tabs.d.ts +0 -0
  267. package/types/theme/components/tag.d.ts +0 -0
  268. package/types/theme/components/textInput.d.ts +0 -0
  269. package/types/theme/components/timePicker.d.ts +0 -0
  270. package/types/theme/components/toast.d.ts +0 -0
  271. package/types/theme/components/toolbar.d.ts +0 -0
  272. package/types/theme/components/typography.d.ts +0 -0
  273. package/types/theme/getTheme.d.ts +0 -0
  274. package/types/theme/global/borders.d.ts +0 -0
  275. package/types/theme/global/colors/eBens.d.ts +0 -0
  276. package/types/theme/global/colors/global.d.ts +0 -0
  277. package/types/theme/global/colors/globalDark.d.ts +0 -0
  278. package/types/theme/global/colors/jobs.d.ts +0 -0
  279. package/types/theme/global/colors/swag.d.ts +0 -0
  280. package/types/theme/global/colors/swagDark.d.ts +0 -0
  281. package/types/theme/global/colors/types.d.ts +0 -0
  282. package/types/theme/global/colors/wallet.d.ts +0 -0
  283. package/types/theme/global/colors/work.d.ts +0 -0
  284. package/types/theme/global/index.d.ts +0 -0
  285. package/types/theme/global/scale.d.ts +0 -0
  286. package/types/theme/global/sizes.d.ts +0 -0
  287. package/types/theme/global/space.d.ts +0 -0
  288. package/types/theme/global/typography.d.ts +0 -0
  289. package/types/theme/index.d.ts +0 -0
  290. package/types/types.d.ts +0 -0
  291. package/types/utils/functions.d.ts +0 -0
  292. package/types/utils/helpers.d.ts +0 -0
  293. package/types/utils/hooks.d.ts +0 -0
  294. package/types/utils/scale.d.ts +0 -0
package/es/index.js CHANGED
@@ -2523,8 +2523,8 @@ var getProgressTheme = function getProgressTheme(theme) {
2523
2523
  };
2524
2524
  var sizes = {
2525
2525
  circleDiameter: theme.sizes['6xlarge'],
2526
- circleCompletenessHeight: theme.sizes.small,
2527
- barHeight: theme.sizes.small
2526
+ circleCompletenessHeight: theme.sizes.xsmall,
2527
+ barHeight: theme.sizes.xsmall
2528
2528
  };
2529
2529
  var radii = {
2530
2530
  "default": theme.radii.rounded
@@ -2778,8 +2778,8 @@ var getSwitchTheme = function getSwitchTheme(theme) {
2778
2778
  },
2779
2779
  thumb: theme.colors.onSecondary,
2780
2780
  selector: {
2781
- background: theme.colors.defaultGlobalSurface,
2782
- textBackground: theme.colors.decorativePrimarySurface
2781
+ background: theme.colors.neutralGlobalSurface,
2782
+ textBackground: theme.colors.decorativePrimary
2783
2783
  }
2784
2784
  };
2785
2785
  var sizes = {
@@ -2787,14 +2787,14 @@ var getSwitchTheme = function getSwitchTheme(theme) {
2787
2787
  width: theme.sizes.xxxlarge,
2788
2788
  height: theme.sizes.large,
2789
2789
  selector: {
2790
- height: theme.sizes.xxlarge
2790
+ height: theme.sizes.xxxxlarge
2791
2791
  }
2792
2792
  };
2793
2793
  var spaces = {
2794
2794
  paddingHorizontal: theme.space.xsmall,
2795
2795
  selector: {
2796
2796
  iconPadding: theme.space.medium,
2797
- wrapperHorizontalPadding: theme.space.xsmall
2797
+ wrapperPadding: theme.space.xsmall
2798
2798
  }
2799
2799
  };
2800
2800
  var radii = {
@@ -2829,7 +2829,7 @@ var getTabsTheme = function getTabsTheme(theme) {
2829
2829
  outlineVerticalPadding: theme.space.xsmall
2830
2830
  };
2831
2831
  var radii = {
2832
- outline: theme.radii.xlarge
2832
+ outline: theme.radii.medium
2833
2833
  };
2834
2834
  var borderWidths = {
2835
2835
  headerBottom: theme.borderWidths.base
@@ -6324,7 +6324,7 @@ var StyledText$3 = index$b(Text$1)(function (_ref) {
6324
6324
  });
6325
6325
  });
6326
6326
 
6327
- var _excluded$z = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6327
+ var _excluded$A = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6328
6328
  var Text = function Text(_ref) {
6329
6329
  var children = _ref.children,
6330
6330
  _ref$fontSize = _ref.fontSize,
@@ -6337,7 +6337,7 @@ var Text = function Text(_ref) {
6337
6337
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6338
6338
  _ref$allowFontScaling = _ref.allowFontScaling,
6339
6339
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6340
- nativeProps = _objectWithoutProperties(_ref, _excluded$z);
6340
+ nativeProps = _objectWithoutProperties(_ref, _excluded$A);
6341
6341
  useDeprecation('Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.');
6342
6342
  return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
6343
6343
  themeFontSize: fontSize,
@@ -6367,7 +6367,7 @@ var StyledCaption = index$b(Text$1)(function (_ref) {
6367
6367
  };
6368
6368
  });
6369
6369
 
6370
- var _excluded$y = ["children", "fontWeight", "intent", "allowFontScaling"];
6370
+ var _excluded$z = ["children", "fontWeight", "intent", "allowFontScaling"];
6371
6371
  var Caption = function Caption(_ref) {
6372
6372
  var children = _ref.children,
6373
6373
  _ref$fontWeight = _ref.fontWeight,
@@ -6376,7 +6376,7 @@ var Caption = function Caption(_ref) {
6376
6376
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6377
6377
  _ref$allowFontScaling = _ref.allowFontScaling,
6378
6378
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6379
- nativeProps = _objectWithoutProperties(_ref, _excluded$y);
6379
+ nativeProps = _objectWithoutProperties(_ref, _excluded$z);
6380
6380
  return /*#__PURE__*/React.createElement(StyledCaption, _extends$1({}, nativeProps, {
6381
6381
  themeFontWeight: fontWeight,
6382
6382
  themeIntent: intent,
@@ -6395,14 +6395,14 @@ var StyledLabel$1 = index$b(Text$1)(function (_ref) {
6395
6395
  };
6396
6396
  });
6397
6397
 
6398
- var _excluded$x = ["children", "intent", "allowFontScaling"];
6398
+ var _excluded$y = ["children", "intent", "allowFontScaling"];
6399
6399
  var Label = function Label(_ref) {
6400
6400
  var children = _ref.children,
6401
6401
  _ref$intent = _ref.intent,
6402
6402
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6403
6403
  _ref$allowFontScaling = _ref.allowFontScaling,
6404
6404
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6405
- nativeProps = _objectWithoutProperties(_ref, _excluded$x);
6405
+ nativeProps = _objectWithoutProperties(_ref, _excluded$y);
6406
6406
  return /*#__PURE__*/React.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
6407
6407
  themeIntent: intent,
6408
6408
  allowFontScaling: allowFontScaling
@@ -6423,7 +6423,7 @@ var StyledTitle$1 = index$b(Text$1)(function (_ref) {
6423
6423
  };
6424
6424
  });
6425
6425
 
6426
- var _excluded$w = ["children", "intent", "allowFontScaling", "level", "typeface"];
6426
+ var _excluded$x = ["children", "intent", "allowFontScaling", "level", "typeface"];
6427
6427
  var Title = function Title(_ref) {
6428
6428
  var children = _ref.children,
6429
6429
  _ref$intent = _ref.intent,
@@ -6434,7 +6434,7 @@ var Title = function Title(_ref) {
6434
6434
  level = _ref$level === void 0 ? 'h1' : _ref$level,
6435
6435
  _ref$typeface = _ref.typeface,
6436
6436
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6437
- nativeProps = _objectWithoutProperties(_ref, _excluded$w);
6437
+ nativeProps = _objectWithoutProperties(_ref, _excluded$x);
6438
6438
  return /*#__PURE__*/React.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
6439
6439
  themeLevel: level,
6440
6440
  themeTypeface: typeface,
@@ -6469,7 +6469,7 @@ var StyledBody = index$b(Text$1)(function (_ref) {
6469
6469
  };
6470
6470
  });
6471
6471
 
6472
- var _excluded$v = ["children", "intent", "allowFontScaling", "typeface", "variant"];
6472
+ var _excluded$w = ["children", "intent", "allowFontScaling", "typeface", "variant"];
6473
6473
  var Body = function Body(_ref) {
6474
6474
  var children = _ref.children,
6475
6475
  _ref$intent = _ref.intent,
@@ -6480,7 +6480,7 @@ var Body = function Body(_ref) {
6480
6480
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6481
6481
  _ref$variant = _ref.variant,
6482
6482
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
6483
- nativeProps = _objectWithoutProperties(_ref, _excluded$v);
6483
+ nativeProps = _objectWithoutProperties(_ref, _excluded$w);
6484
6484
  return /*#__PURE__*/React.createElement(StyledBody, _extends$1({}, nativeProps, {
6485
6485
  themeTypeface: typeface,
6486
6486
  themeIntent: intent,
@@ -7010,10 +7010,10 @@ var StyledHeroIcon = index$b(HeroIcon)(function (_ref) {
7010
7010
  };
7011
7011
  });
7012
7012
 
7013
- var _excluded$u = ["style"];
7013
+ var _excluded$v = ["style"];
7014
7014
  var AnimatedIcon = function AnimatedIcon(_ref) {
7015
7015
  var style = _ref.style,
7016
- otherProps = _objectWithoutProperties(_ref, _excluded$u);
7016
+ otherProps = _objectWithoutProperties(_ref, _excluded$v);
7017
7017
  var rotateAnimation = useRef(new Animated.Value(0));
7018
7018
  useEffect(function () {
7019
7019
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -7118,7 +7118,7 @@ var AccordionItem = function AccordionItem(_ref) {
7118
7118
  }, content));
7119
7119
  };
7120
7120
 
7121
- var _excluded$t = ["key"];
7121
+ var _excluded$u = ["key"];
7122
7122
  var Accordion = function Accordion(_ref) {
7123
7123
  var items = _ref.items,
7124
7124
  activeItemKey = _ref.activeItemKey,
@@ -7139,7 +7139,7 @@ var Accordion = function Accordion(_ref) {
7139
7139
  testID: testID
7140
7140
  }, items.map(function (_ref2, index) {
7141
7141
  var key = _ref2.key,
7142
- props = _objectWithoutProperties(_ref2, _excluded$t);
7142
+ props = _objectWithoutProperties(_ref2, _excluded$u);
7143
7143
  var open = _activeItemKey === key;
7144
7144
  return /*#__PURE__*/React.createElement(React.Fragment, {
7145
7145
  key: key
@@ -7537,7 +7537,7 @@ var StyledStatus = index$b(Animated.View)(function (_ref3) {
7537
7537
  };
7538
7538
  });
7539
7539
 
7540
- var _excluded$s = ["children", "visible", "intent", "style", "testID"];
7540
+ var _excluded$t = ["children", "visible", "intent", "style", "testID"];
7541
7541
  var Status = function Status(_ref) {
7542
7542
  var children = _ref.children,
7543
7543
  _ref$visible = _ref.visible,
@@ -7546,7 +7546,7 @@ var Status = function Status(_ref) {
7546
7546
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7547
7547
  style = _ref.style,
7548
7548
  testID = _ref.testID,
7549
- nativeProps = _objectWithoutProperties(_ref, _excluded$s);
7549
+ nativeProps = _objectWithoutProperties(_ref, _excluded$t);
7550
7550
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
7551
7551
  opacity = _React$useRef.current;
7552
7552
  var isFirstRendering = React.useRef(true);
@@ -7579,7 +7579,7 @@ var Status = function Status(_ref) {
7579
7579
  }));
7580
7580
  };
7581
7581
 
7582
- var _excluded$r = ["content", "visible", "max", "intent", "style", "testID"];
7582
+ var _excluded$s = ["content", "visible", "max", "intent", "style", "testID"];
7583
7583
  var DEFAULT_MAX_NUMBER = 99;
7584
7584
  var getPaddingState = function getPaddingState(content) {
7585
7585
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -7594,7 +7594,7 @@ var Badge = function Badge(_ref) {
7594
7594
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7595
7595
  style = _ref.style,
7596
7596
  testID = _ref.testID,
7597
- nativeProps = _objectWithoutProperties(_ref, _excluded$r);
7597
+ nativeProps = _objectWithoutProperties(_ref, _excluded$s);
7598
7598
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
7599
7599
  opacity = _React$useRef.current;
7600
7600
  var isFirstRendering = React.useRef(true);
@@ -7698,7 +7698,7 @@ function omit(keys, obj) {
7698
7698
  return result;
7699
7699
  }
7700
7700
 
7701
- var _excluded$q = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7701
+ var _excluded$r = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7702
7702
  var getInactiveIcon = function getInactiveIcon(icon) {
7703
7703
  var inactiveIcon = "".concat(icon, "-outlined");
7704
7704
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -7709,7 +7709,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
7709
7709
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
7710
7710
  selectedTabKey = _ref.selectedTabKey,
7711
7711
  tabs = _ref.tabs,
7712
- nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7712
+ nativeProps = _objectWithoutProperties(_ref, _excluded$r);
7713
7713
  var insets = useSafeAreaInsets();
7714
7714
  /**
7715
7715
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -7795,13 +7795,13 @@ var StyledDivider = index$b(View)(function (_ref) {
7795
7795
  }, horizontalMargin), verticalMargin);
7796
7796
  });
7797
7797
 
7798
- var _excluded$p = ["marginHorizontal", "marginVertical", "style", "testID"];
7798
+ var _excluded$q = ["marginHorizontal", "marginVertical", "style", "testID"];
7799
7799
  var Divider = function Divider(_ref) {
7800
7800
  var marginHorizontal = _ref.marginHorizontal,
7801
7801
  marginVertical = _ref.marginVertical,
7802
7802
  style = _ref.style,
7803
7803
  testID = _ref.testID,
7804
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7804
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7805
7805
  return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
7806
7806
  themeMarginHorizontal: marginHorizontal,
7807
7807
  themeMarginVertical: marginVertical,
@@ -7931,7 +7931,7 @@ var StyledLoadingDot = index$b(View)(function (_ref2) {
7931
7931
  }, themeStyling());
7932
7932
  });
7933
7933
 
7934
- var _excluded$o = ["count", "size", "testID", "themeVariant"];
7934
+ var _excluded$p = ["count", "size", "testID", "themeVariant"];
7935
7935
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
7936
7936
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
7937
7937
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -7963,7 +7963,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
7963
7963
  size = _ref2$size === void 0 ? 12 : _ref2$size,
7964
7964
  testID = _ref2.testID,
7965
7965
  themeVariant = _ref2.themeVariant,
7966
- nativeProps = _objectWithoutProperties(_ref2, _excluded$o);
7966
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$p);
7967
7967
  var progressAnimation = useRef(new Animated.Value(0));
7968
7968
  useEffect(function () {
7969
7969
  var animation = Animated.loop(Animated.timing(progressAnimation.current, {
@@ -8402,11 +8402,11 @@ var Header = function Header(_ref) {
8402
8402
  })) : null), showDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
8403
8403
  };
8404
8404
 
8405
- var _excluded$n = ["scrollEventThrottle"];
8405
+ var _excluded$o = ["scrollEventThrottle"];
8406
8406
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
8407
8407
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
8408
8408
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
8409
- props = _objectWithoutProperties(_ref, _excluded$n);
8409
+ props = _objectWithoutProperties(_ref, _excluded$o);
8410
8410
  var _useContext = useContext(BottomSheetContext),
8411
8411
  setInternalShowDivider = _useContext.setInternalShowDivider;
8412
8412
  var onScrollBeginDrag = useCallback(function (e) {
@@ -8721,7 +8721,7 @@ var borderWidths = {
8721
8721
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8722
8722
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8723
8723
 
8724
- var _excluded$m = ["theme"];
8724
+ var _excluded$n = ["theme"];
8725
8725
  var getThemeValue = function getThemeValue(theme, key, props) {
8726
8726
  var propConfig = config[key];
8727
8727
  var propValue = props[key];
@@ -8748,18 +8748,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8748
8748
  var configKeys = Object.keys(config);
8749
8749
  var StyledBox = index$b(View)(function (_ref5) {
8750
8750
  var theme = _ref5.theme,
8751
- otherProps = _objectWithoutProperties(_ref5, _excluded$m);
8751
+ otherProps = _objectWithoutProperties(_ref5, _excluded$n);
8752
8752
  var styleProps = pick(configKeys, otherProps);
8753
8753
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8754
8754
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8755
8755
  });
8756
8756
 
8757
- var _excluded$l = ["children", "style", "testID"];
8757
+ var _excluded$m = ["children", "style", "testID"];
8758
8758
  var Box = function Box(_ref) {
8759
8759
  var children = _ref.children,
8760
8760
  style = _ref.style,
8761
8761
  testID = _ref.testID,
8762
- otherProps = _objectWithoutProperties(_ref, _excluded$l);
8762
+ otherProps = _objectWithoutProperties(_ref, _excluded$m);
8763
8763
  return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
8764
8764
  style: style,
8765
8765
  testID: testID
@@ -11395,7 +11395,7 @@ var Calendar = function Calendar(_ref) {
11395
11395
  })));
11396
11396
  };
11397
11397
 
11398
- var _excluded$k = ["rounded", "size", "testID", "style"];
11398
+ var _excluded$l = ["rounded", "size", "testID", "style"];
11399
11399
  var Image = function Image(_ref) {
11400
11400
  var _ref$rounded = _ref.rounded,
11401
11401
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -11403,7 +11403,7 @@ var Image = function Image(_ref) {
11403
11403
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
11404
11404
  testID = _ref.testID,
11405
11405
  style = _ref.style,
11406
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$k);
11406
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$l);
11407
11407
  var theme = useTheme();
11408
11408
  var imageSize = theme.__hd__.image.sizes[size];
11409
11409
  return /*#__PURE__*/React.createElement(Image$1, _extends$1({
@@ -11605,12 +11605,12 @@ var Indicator = index$b(View)(function (_ref2) {
11605
11605
  };
11606
11606
  });
11607
11607
 
11608
- var _excluded$j = ["intent", "children"];
11608
+ var _excluded$k = ["intent", "children"];
11609
11609
  var DataCard = function DataCard(_ref) {
11610
11610
  var _ref$intent = _ref.intent,
11611
11611
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
11612
11612
  children = _ref.children,
11613
- nativeProps = _objectWithoutProperties(_ref, _excluded$j);
11613
+ nativeProps = _objectWithoutProperties(_ref, _excluded$k);
11614
11614
  return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
11615
11615
  themeIntent: intent,
11616
11616
  testID: "data-card-indicator"
@@ -11628,11 +11628,11 @@ var StyledCard$1 = index$b(View)(function (_ref) {
11628
11628
  });
11629
11629
  });
11630
11630
 
11631
- var _excluded$i = ["intent", "children"];
11631
+ var _excluded$j = ["intent", "children"];
11632
11632
  var Card = function Card(_ref) {
11633
11633
  var intent = _ref.intent,
11634
11634
  children = _ref.children,
11635
- nativeProps = _objectWithoutProperties(_ref, _excluded$i);
11635
+ nativeProps = _objectWithoutProperties(_ref, _excluded$j);
11636
11636
  return /*#__PURE__*/React.createElement(StyledCard$1, _extends$1({}, nativeProps, {
11637
11637
  themeIntent: intent
11638
11638
  }), children);
@@ -11839,7 +11839,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
11839
11839
  });
11840
11840
  CardCarousel.displayName = 'CardCarousel';
11841
11841
 
11842
- var _excluded$h = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11842
+ var _excluded$i = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11843
11843
  function useStateFromProp(initialValue) {
11844
11844
  var _useState = useState(initialValue),
11845
11845
  _useState2 = _slicedToArray(_useState, 2),
@@ -11864,7 +11864,7 @@ var Carousel = function Carousel(_ref) {
11864
11864
  shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
11865
11865
  _ref$pageControlPosit = _ref.pageControlPosition,
11866
11866
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
11867
- nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11867
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
11868
11868
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
11869
11869
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
11870
11870
  var carouselRef = useRef(null);
@@ -12187,7 +12187,7 @@ var StyledErrorAndMaxLengthContainer = index$b(View)(function () {
12187
12187
  };
12188
12188
  });
12189
12189
 
12190
- var _excluded$g = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
12190
+ var _excluded$h = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
12191
12191
  var getState$1 = function getState(_ref) {
12192
12192
  var disabled = _ref.disabled,
12193
12193
  error = _ref.error,
@@ -12239,7 +12239,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12239
12239
  allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
12240
12240
  _ref2$variant = _ref2.variant,
12241
12241
  variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
12242
- nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
12242
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$h);
12243
12243
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
12244
12244
  var isEmptyValue = displayText.length === 0;
12245
12245
  var actualSuffix = loading ? 'loading' : suffix;
@@ -12683,11 +12683,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
12683
12683
  }))));
12684
12684
  };
12685
12685
 
12686
- var _excluded$f = ["variant"];
12686
+ var _excluded$g = ["variant"];
12687
12687
  var DatePicker = function DatePicker(_ref) {
12688
12688
  var _ref$variant = _ref.variant,
12689
12689
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
12690
- props = _objectWithoutProperties(_ref, _excluded$f);
12690
+ props = _objectWithoutProperties(_ref, _excluded$g);
12691
12691
  if (variant === 'calendar') {
12692
12692
  return /*#__PURE__*/React.createElement(DatePickerCalendar, props);
12693
12693
  }
@@ -13121,7 +13121,7 @@ var StyledErrorDescription = index$b(Typography.Body)(function (_ref9) {
13121
13121
  };
13122
13122
  });
13123
13123
 
13124
- var _excluded$e = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
13124
+ var _excluded$f = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
13125
13125
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
13126
13126
  var renderImage$1 = function renderImage(image) {
13127
13127
  if ( /*#__PURE__*/isValidElement(image)) {
@@ -13147,7 +13147,7 @@ var ErrorPage = function ErrorPage(_ref) {
13147
13147
  onCtaPress = _ref.onCtaPress,
13148
13148
  secondaryCtaText = _ref.secondaryCtaText,
13149
13149
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
13150
- nativeProps = _objectWithoutProperties(_ref, _excluded$e);
13150
+ nativeProps = _objectWithoutProperties(_ref, _excluded$f);
13151
13151
  var showCta = ctaText && onCtaPress !== undefined;
13152
13152
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
13153
13153
  var showButtonContainer = showCta || showSecondaryCta;
@@ -13306,11 +13306,11 @@ var StyledIconContainer = index$b(Box)(function (_ref4) {
13306
13306
  };
13307
13307
  });
13308
13308
 
13309
- var _excluded$d = ["active"];
13309
+ var _excluded$e = ["active"];
13310
13310
  var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
13311
13311
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
13312
13312
  var active = _ref.active,
13313
- iconProps = _objectWithoutProperties(_ref, _excluded$d);
13313
+ iconProps = _objectWithoutProperties(_ref, _excluded$e);
13314
13314
  var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
13315
13315
  useEffect(function () {
13316
13316
  var animation = Animated.spring(rotateAnimation.current, {
@@ -13432,10 +13432,17 @@ var FAB = /*#__PURE__*/forwardRef(function (_ref3, ref) {
13432
13432
  return /*#__PURE__*/React.createElement(StyledFAB$1
13433
13433
  /** Add a small timeout before executing animation to prevent flakiness */, {
13434
13434
  onLayout: function onLayout() {
13435
- return setTimeout(function () {
13435
+ setTimeout(function () {
13436
13436
  return setCanAnimate(true);
13437
13437
  }, 500);
13438
13438
  },
13439
+ ref: function ref(_ref4) {
13440
+ if (_ref4) {
13441
+ _ref4.measureInWindow(function (x, y, width, height) {
13442
+ console.log('measureInWindow', x, y, width, height);
13443
+ });
13444
+ }
13445
+ },
13439
13446
  underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
13440
13447
  onPress: onPress,
13441
13448
  style: [style, {
@@ -13916,11 +13923,11 @@ var ModalProvider = function ModalProvider(_ref) {
13916
13923
  return /*#__PURE__*/React.createElement(RootSiblingParent, null, children);
13917
13924
  };
13918
13925
 
13919
- var _excluded$c = ["style", "children"];
13926
+ var _excluded$d = ["style", "children"];
13920
13927
  var ModalPresenter = /*#__PURE__*/forwardRef(function (_ref2, ref) {
13921
13928
  var style = _ref2.style,
13922
13929
  children = _ref2.children,
13923
- props = _objectWithoutProperties(_ref2, _excluded$c);
13930
+ props = _objectWithoutProperties(_ref2, _excluded$d);
13924
13931
  var animatedOpacity = useRef(new Animated.Value(0));
13925
13932
  var theme = useTheme();
13926
13933
  React.useEffect(function () {
@@ -14004,7 +14011,7 @@ var showModal = function showModal(content) {
14004
14011
  };
14005
14012
  ModalPresenter.displayName = 'ModalPresenter';
14006
14013
 
14007
- var wrapperStyle = {
14014
+ var wrapperStyle$1 = {
14008
14015
  width: Dimensions.get('window').width,
14009
14016
  height: Dimensions.get('window').height
14010
14017
  };
@@ -14025,11 +14032,11 @@ var Modal = function Modal(_ref) {
14025
14032
  var getModalContent = React.useCallback(function () {
14026
14033
  var isUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
14027
14034
  return animationType === 'none' ? /*#__PURE__*/React.createElement(View, {
14028
- style: wrapperStyle,
14035
+ style: wrapperStyle$1,
14029
14036
  testID: testID
14030
14037
  }, children) : /*#__PURE__*/React.createElement(ModalContentWrapper, {
14031
14038
  visible: visible,
14032
- style: wrapperStyle,
14039
+ style: wrapperStyle$1,
14033
14040
  animationType: animationType,
14034
14041
  testID: testID,
14035
14042
  onShow: onShow,
@@ -14378,7 +14385,7 @@ var StyledStrokeEnd = index$b(View)(function (_ref6) {
14378
14385
  };
14379
14386
  });
14380
14387
 
14381
- var _excluded$b = ["value", "renderValue", "intent", "style", "testID"];
14388
+ var _excluded$c = ["value", "renderValue", "intent", "style", "testID"];
14382
14389
  var HalfCircle = function HalfCircle(_ref) {
14383
14390
  var type = _ref.type,
14384
14391
  themeIntent = _ref.themeIntent;
@@ -14399,7 +14406,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
14399
14406
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
14400
14407
  style = _ref2.style,
14401
14408
  testID = _ref2.testID,
14402
- nativeProps = _objectWithoutProperties(_ref2, _excluded$b);
14409
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$c);
14403
14410
  var theme = useTheme$1();
14404
14411
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
14405
14412
  var progressAnimatedValue = useRef(new Animated.Value(0));
@@ -14501,8 +14508,7 @@ var StyledWrapper$4 = index$b(View)(function (_ref) {
14501
14508
  height: theme.__hd__.progress.sizes.barHeight,
14502
14509
  alignSelf: 'stretch',
14503
14510
  backgroundColor: theme.__hd__.progress.colors.incompleteness[THEME_INTENT_MAP[themeIntent]],
14504
- overflow: 'hidden',
14505
- borderRadius: theme.__hd__.progress.radii["default"]
14511
+ overflow: 'hidden'
14506
14512
  };
14507
14513
  });
14508
14514
  var StyledInner = index$b(Animated.View)(function (_ref2) {
@@ -14515,14 +14521,14 @@ var StyledInner = index$b(Animated.View)(function (_ref2) {
14515
14521
  };
14516
14522
  });
14517
14523
 
14518
- var _excluded$a = ["value", "intent", "style", "testID"];
14524
+ var _excluded$b = ["value", "intent", "style", "testID"];
14519
14525
  var ProgressBar = function ProgressBar(_ref) {
14520
14526
  var value = _ref.value,
14521
14527
  _ref$intent = _ref.intent,
14522
14528
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
14523
14529
  style = _ref.style,
14524
14530
  testID = _ref.testID,
14525
- nativeProps = _objectWithoutProperties(_ref, _excluded$a);
14531
+ nativeProps = _objectWithoutProperties(_ref, _excluded$b);
14526
14532
  var _useState = useState(0),
14527
14533
  _useState2 = _slicedToArray(_useState, 2),
14528
14534
  width = _useState2[0],
@@ -14713,14 +14719,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
14713
14719
  }, dotProps))));
14714
14720
  };
14715
14721
 
14716
- var _excluded$9 = ["testID", "size", "intent"];
14722
+ var _excluded$a = ["testID", "size", "intent"];
14717
14723
  var Spinner = function Spinner(_ref) {
14718
14724
  var testID = _ref.testID,
14719
14725
  _ref$size = _ref.size,
14720
14726
  size = _ref$size === void 0 ? 'medium' : _ref$size,
14721
14727
  _ref$intent = _ref.intent,
14722
14728
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
14723
- nativeProps = _objectWithoutProperties(_ref, _excluded$9);
14729
+ nativeProps = _objectWithoutProperties(_ref, _excluded$a);
14724
14730
  return /*#__PURE__*/React.createElement(StyledView$1, nativeProps, /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
14725
14731
  testID: testID
14726
14732
  }, /*#__PURE__*/React.createElement(AnimatedSpinner, {
@@ -14753,7 +14759,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
14753
14759
  }, children);
14754
14760
  };
14755
14761
 
14756
- var _excluded$8 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
14762
+ var _excluded$9 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
14757
14763
  var renderActions = function renderActions(actions, width, progress, direction) {
14758
14764
  var trans = progress.interpolate({
14759
14765
  inputRange: [0, 1],
@@ -14778,7 +14784,7 @@ var Swipeable = function Swipeable(_ref) {
14778
14784
  leftActionsWidth = _ref.leftActionsWidth,
14779
14785
  rightActions = _ref.rightActions,
14780
14786
  rightActionsWidth = _ref.rightActionsWidth,
14781
- swipeableProps = _objectWithoutProperties(_ref, _excluded$8);
14787
+ swipeableProps = _objectWithoutProperties(_ref, _excluded$9);
14782
14788
  var _useWindowDimensions = useWindowDimensions(),
14783
14789
  width = _useWindowDimensions.width;
14784
14790
  var swipeableRef = useRef(null);
@@ -15083,7 +15089,7 @@ var StyledSectionList = index$b(SectionList)(function (_ref4) {
15083
15089
  };
15084
15090
  });
15085
15091
 
15086
- var _excluded$7 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
15092
+ var _excluded$8 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
15087
15093
  var BaseOptionList = function BaseOptionList(_ref) {
15088
15094
  var keyExtractor = _ref.keyExtractor,
15089
15095
  loading = _ref.loading,
@@ -15092,7 +15098,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
15092
15098
  sections = _ref.sections,
15093
15099
  renderItem = _ref.renderItem,
15094
15100
  sectionListRef = _ref.sectionListRef,
15095
- rest = _objectWithoutProperties(_ref, _excluded$7);
15101
+ rest = _objectWithoutProperties(_ref, _excluded$8);
15096
15102
  var theme = useTheme$1();
15097
15103
  var _useState = useState(false),
15098
15104
  _useState2 = _slicedToArray(_useState, 2),
@@ -15162,7 +15168,7 @@ var Option$2 = function Option(_ref) {
15162
15168
  return highlighted === true ? /*#__PURE__*/React.createElement(List.Item, props) : /*#__PURE__*/React.createElement(List.BasicItem, props);
15163
15169
  };
15164
15170
 
15165
- var _excluded$6 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
15171
+ var _excluded$7 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
15166
15172
  var OptionList$1 = function OptionList(_ref) {
15167
15173
  var keyExtractor = _ref.keyExtractor,
15168
15174
  loading = _ref.loading,
@@ -15173,7 +15179,7 @@ var OptionList$1 = function OptionList(_ref) {
15173
15179
  renderOption = _ref.renderOption,
15174
15180
  value = _ref.value,
15175
15181
  sectionListRef = _ref.sectionListRef,
15176
- rest = _objectWithoutProperties(_ref, _excluded$6);
15182
+ rest = _objectWithoutProperties(_ref, _excluded$7);
15177
15183
  var renderItem = function renderItem(info) {
15178
15184
  var item = info.item;
15179
15185
  var selected = value.includes(info.item.value);
@@ -15361,7 +15367,7 @@ var StyledOptionList = index$b(BaseOptionList)(function (_ref) {
15361
15367
  };
15362
15368
  });
15363
15369
 
15364
- var _excluded$5 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
15370
+ var _excluded$6 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
15365
15371
  var OptionList = function OptionList(_ref) {
15366
15372
  var keyExtractor = _ref.keyExtractor,
15367
15373
  loading = _ref.loading,
@@ -15372,7 +15378,7 @@ var OptionList = function OptionList(_ref) {
15372
15378
  renderOption = _ref.renderOption,
15373
15379
  value = _ref.value,
15374
15380
  sectionListRef = _ref.sectionListRef,
15375
- rest = _objectWithoutProperties(_ref, _excluded$5);
15381
+ rest = _objectWithoutProperties(_ref, _excluded$6);
15376
15382
  var renderItem = function renderItem(info) {
15377
15383
  var item = info.item;
15378
15384
  var selected = item.value === value;
@@ -15537,7 +15543,7 @@ var StyledGradientContainer = index$b(Box)(function (_ref2) {
15537
15543
  };
15538
15544
  });
15539
15545
 
15540
- var _excluded$4 = ["intent", "variant", "style", "onLayout"];
15546
+ var _excluded$5 = ["intent", "variant", "style", "onLayout"];
15541
15547
  var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
15542
15548
  var gradientPositions = {
15543
15549
  start: {
@@ -15569,7 +15575,7 @@ var Skeleton = function Skeleton(_ref) {
15569
15575
  variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
15570
15576
  style = _ref.style,
15571
15577
  onLayout = _ref.onLayout,
15572
- props = _objectWithoutProperties(_ref, _excluded$4);
15578
+ props = _objectWithoutProperties(_ref, _excluded$5);
15573
15579
  var theme = useTheme();
15574
15580
  var colors = useMemo(function () {
15575
15581
  return getGradientColors(theme, intent);
@@ -15701,7 +15707,7 @@ var StyledSuccessModal = index$b(Modal$1)({
15701
15707
  width: '100%'
15702
15708
  });
15703
15709
 
15704
- var _excluded$3 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
15710
+ var _excluded$4 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
15705
15711
  var renderImage = function renderImage(image) {
15706
15712
  if ( /*#__PURE__*/isValidElement(image)) {
15707
15713
  return /*#__PURE__*/React.cloneElement(image, {
@@ -15727,7 +15733,7 @@ var SuccessPage = function SuccessPage(_ref) {
15727
15733
  onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
15728
15734
  secondaryCtaText = _ref.secondaryCtaText,
15729
15735
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
15730
- nativeProps = _objectWithoutProperties(_ref, _excluded$3);
15736
+ nativeProps = _objectWithoutProperties(_ref, _excluded$4);
15731
15737
  var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
15732
15738
  return /*#__PURE__*/React.createElement(StyledSuccessContainer, _extends$1({
15733
15739
  testID: testID,
@@ -15769,7 +15775,7 @@ var StyledWrapper$2 = index$b(View)(function (_ref) {
15769
15775
  height: theme.__hd__["switch"].sizes.selector.height,
15770
15776
  borderRadius: theme.__hd__["switch"].radii.selector["default"],
15771
15777
  backgroundColor: theme.__hd__["switch"].colors.selector.background,
15772
- paddingHorizontal: theme.__hd__["switch"].spaces.selector.wrapperHorizontalPadding,
15778
+ padding: theme.__hd__["switch"].spaces.selector.wrapperPadding,
15773
15779
  position: 'relative'
15774
15780
  };
15775
15781
  });
@@ -15794,10 +15800,15 @@ var StyledIconWrapper$1 = index$b(AnimatedView)(function (_ref3) {
15794
15800
  });
15795
15801
  var StyledKnot$1 = index$b(AnimatedView)(function (_ref4) {
15796
15802
  var theme = _ref4.theme;
15797
- return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
15803
+ return {
15798
15804
  borderRadius: theme.__hd__["switch"].radii.selector["default"],
15799
- backgroundColor: theme.__hd__["switch"].colors.selector.textBackground
15800
- });
15805
+ backgroundColor: theme.__hd__["switch"].colors.selector.textBackground,
15806
+ position: 'absolute',
15807
+ top: theme.__hd__["switch"].spaces.selector.wrapperPadding,
15808
+ bottom: theme.__hd__["switch"].spaces.selector.wrapperPadding,
15809
+ left: theme.__hd__["switch"].spaces.selector.wrapperPadding,
15810
+ right: theme.__hd__["switch"].spaces.selector.wrapperPadding
15811
+ };
15801
15812
  });
15802
15813
 
15803
15814
  var OptionContent = function OptionContent(_ref) {
@@ -15873,6 +15884,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
15873
15884
  _onPress = _ref.onPress,
15874
15885
  style = _ref.style,
15875
15886
  testID = _ref.testID;
15887
+ var theme = useTheme$1();
15876
15888
  var _useState = useState(0),
15877
15889
  _useState2 = _slicedToArray(_useState, 2),
15878
15890
  knotWidth = _useState2[0],
@@ -15884,7 +15896,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
15884
15896
  var animatedValue = useRef(new Animated.Value(0)).current;
15885
15897
  var translateX = animatedValue.interpolate({
15886
15898
  inputRange: [0, 1],
15887
- outputRange: [0, Math.floor(containerWidth - knotWidth)]
15899
+ outputRange: [0, Math.floor(containerWidth - knotWidth - theme.space.small)]
15888
15900
  });
15889
15901
  useEffect(function () {
15890
15902
  Animated.timing(animatedValue, {
@@ -15893,10 +15905,10 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
15893
15905
  easing: Easing.inOut(Easing.ease),
15894
15906
  useNativeDriver: Platform.OS === 'ios' || Platform.OS === 'android'
15895
15907
  }).start();
15896
- }, [value, animatedValue, options]);
15908
+ }, [value]);
15897
15909
  var onContainerLayout = useCallback(function (e) {
15898
15910
  setContainerWidth(e.nativeEvent.layout.width);
15899
- }, []);
15911
+ }, [options]);
15900
15912
  var onItemLayout = useCallback(function (e, optionValue) {
15901
15913
  if (optionValue === value) {
15902
15914
  setKnotWidth(e.nativeEvent.layout.width);
@@ -16611,7 +16623,7 @@ var StyledText = index$b(Typography.Caption)(function (_ref3) {
16611
16623
  };
16612
16624
  });
16613
16625
 
16614
- var _excluded$2 = ["content", "variant", "intent", "style", "testID"];
16626
+ var _excluded$3 = ["content", "variant", "intent", "style", "testID"];
16615
16627
  var Tag = function Tag(_ref) {
16616
16628
  var content = _ref.content,
16617
16629
  _ref$variant = _ref.variant,
@@ -16620,7 +16632,7 @@ var Tag = function Tag(_ref) {
16620
16632
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16621
16633
  style = _ref.style,
16622
16634
  testID = _ref.testID,
16623
- nativeProps = _objectWithoutProperties(_ref, _excluded$2);
16635
+ nativeProps = _objectWithoutProperties(_ref, _excluded$3);
16624
16636
  return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
16625
16637
  themeIntent: intent,
16626
16638
  themeVariant: variant,
@@ -17237,10 +17249,10 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
17237
17249
  }));
17238
17250
  };
17239
17251
 
17240
- var _excluded$1 = ["children"];
17252
+ var _excluded$2 = ["children"];
17241
17253
  var Toolbar = function Toolbar(_ref) {
17242
17254
  var children = _ref.children,
17243
- rest = _objectWithoutProperties(_ref, _excluded$1);
17255
+ rest = _objectWithoutProperties(_ref, _excluded$2);
17244
17256
  return /*#__PURE__*/React.createElement(ToolbarWrapper, rest, children);
17245
17257
  };
17246
17258
  var index$1 = Object.assign(Toolbar, {
@@ -17259,7 +17271,7 @@ var StyledIconWrapper = index$b(AnimatedBox)(function (_ref) {
17259
17271
  };
17260
17272
  });
17261
17273
 
17262
- var _excluded = ["options", "value", "onChange", "readonly", "disabled"];
17274
+ var _excluded$1 = ["options", "value", "onChange", "readonly", "disabled"];
17263
17275
  var Rate = function Rate(_ref) {
17264
17276
  var options = _ref.options,
17265
17277
  value = _ref.value,
@@ -17268,7 +17280,7 @@ var Rate = function Rate(_ref) {
17268
17280
  readonly = _ref$readonly === void 0 ? false : _ref$readonly,
17269
17281
  _ref$disabled = _ref.disabled,
17270
17282
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
17271
- otherProps = _objectWithoutProperties(_ref, _excluded);
17283
+ otherProps = _objectWithoutProperties(_ref, _excluded$1);
17272
17284
  var valueIndex = useMemo(function () {
17273
17285
  return options.findIndex(function (item) {
17274
17286
  return item.value === value;
@@ -33691,4 +33703,134 @@ var index = Object.assign(RichTextEditorWithRef, {
33691
33703
  Toolbar: EditorToolbar
33692
33704
  });
33693
33705
 
33694
- export { Accordion, Alert, Attachment, index$a as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$9 as Carousel, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$8 as Drawer, Empty, Error$1 as Error, index$7 as FAB, Icon, Image, List, index$6 as Modal, PageControl, PinInput, Progress, CompoundRadio as Radio, Rate, 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 };
33706
+ var _excluded = ["style", "children"];
33707
+ var FABModalPresenter = /*#__PURE__*/forwardRef(function (_ref2, ref) {
33708
+ var style = _ref2.style,
33709
+ children = _ref2.children,
33710
+ props = _objectWithoutProperties(_ref2, _excluded);
33711
+ var animatedOpacity = useRef(new Animated.Value(0));
33712
+ React.useEffect(function () {
33713
+ Animated.spring(animatedOpacity.current, {
33714
+ toValue: 1,
33715
+ useNativeDriver: true
33716
+ }).start();
33717
+ }, []);
33718
+ React.useImperativeHandle(ref, function () {
33719
+ return {
33720
+ animatedOut: function animatedOut(completion) {
33721
+ Animated.spring(animatedOpacity.current, {
33722
+ toValue: 0,
33723
+ useNativeDriver: true
33724
+ }).start(function () {
33725
+ completion === null || completion === void 0 ? void 0 : completion();
33726
+ });
33727
+ }
33728
+ };
33729
+ });
33730
+ return /*#__PURE__*/React.createElement(Box, {
33731
+ style: StyleSheet$1.absoluteFill,
33732
+ pointerEvents: "box-none"
33733
+ }, /*#__PURE__*/React.createElement(Animated.View, _extends$1({
33734
+ style: [{
33735
+ width: '100%',
33736
+ height: '100%',
33737
+ justifyContent: 'center',
33738
+ alignItems: 'center',
33739
+ opacity: animatedOpacity.current
33740
+ }, style]
33741
+ }, props, {
33742
+ pointerEvents: "box-none"
33743
+ }), children));
33744
+ });
33745
+ /**
33746
+ * Present a modal on screen immediately.
33747
+ *
33748
+ * The new presented modal will be on top of existing modals if there are any.
33749
+ *
33750
+ * @param Content A component to be presented as a modal on screen.
33751
+ * This component will be centered horizontally and vertically on screen with
33752
+ * a semitransparent black overlay underneath.
33753
+ * @param contentProps Props for this modal component.
33754
+ * @returns A `ModalHandler` you can use to dismiss the modal.
33755
+ */
33756
+ var showFABModal = function showFABModal(content) {
33757
+ var _ref3 = null;
33758
+ var rootSiblings = null;
33759
+ var dismiss = function dismiss(onDismiss) {
33760
+ if (rootSiblings) {
33761
+ var cleanup = function cleanup() {
33762
+ var _rootSiblings;
33763
+ (_rootSiblings = rootSiblings) === null || _rootSiblings === void 0 ? void 0 : _rootSiblings.destroy();
33764
+ rootSiblings = null;
33765
+ _ref3 = null;
33766
+ onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
33767
+ };
33768
+ if (_ref3) {
33769
+ _ref3.animatedOut(cleanup);
33770
+ } else {
33771
+ cleanup();
33772
+ }
33773
+ }
33774
+ };
33775
+ var update = function update(newContent) {
33776
+ var _rootSiblings2;
33777
+ (_rootSiblings2 = rootSiblings) === null || _rootSiblings2 === void 0 ? void 0 : _rootSiblings2.update( /*#__PURE__*/React.createElement(FABModalPresenter, {
33778
+ ref: function ref(_ref) {
33779
+ _ref3 = _ref;
33780
+ }
33781
+ }, newContent));
33782
+ };
33783
+ rootSiblings = new RootSiblings( /*#__PURE__*/React.createElement(FABModalPresenter, {
33784
+ ref: function ref(_ref) {
33785
+ _ref3 = _ref;
33786
+ }
33787
+ }, content));
33788
+ return {
33789
+ dismiss: dismiss,
33790
+ update: update
33791
+ };
33792
+ };
33793
+ FABModalPresenter.displayName = 'FABModalPresenter';
33794
+
33795
+ var wrapperStyle = {
33796
+ width: Dimensions.get('window').width,
33797
+ height: Dimensions.get('window').height
33798
+ };
33799
+ var fABModal = function fABModal(_ref) {
33800
+ var children = _ref.children,
33801
+ onShow = _ref.onShow,
33802
+ testID = _ref.testID,
33803
+ _ref$visible = _ref.visible,
33804
+ visible = _ref$visible === void 0 ? true : _ref$visible;
33805
+ var _React$useState = React.useState(),
33806
+ _React$useState2 = _slicedToArray(_React$useState, 2),
33807
+ modalHandler = _React$useState2[0],
33808
+ setModalHandler = _React$useState2[1];
33809
+ var getModalContent = React.useCallback(function () {
33810
+ return /*#__PURE__*/React.createElement(View, {
33811
+ pointerEvents: "box-none",
33812
+ style: wrapperStyle,
33813
+ testID: testID
33814
+ }, children);
33815
+ }, [visible, children, onShow, testID]);
33816
+ React.useEffect(function () {
33817
+ if (visible) {
33818
+ // Modal does not exist, create a new one
33819
+ if (!modalHandler) {
33820
+ var newModalHandler = showFABModal(getModalContent());
33821
+ setModalHandler(newModalHandler);
33822
+ onShow === null || onShow === void 0 ? void 0 : onShow();
33823
+ }
33824
+ // Modal already exists, update it
33825
+ else {
33826
+ modalHandler.update(getModalContent());
33827
+ }
33828
+ } else {
33829
+ modalHandler === null || modalHandler === void 0 ? void 0 : modalHandler.dismiss();
33830
+ setModalHandler(undefined);
33831
+ }
33832
+ }, [getModalContent]);
33833
+ return null;
33834
+ };
33835
+
33836
+ export { Accordion, Alert, Attachment, index$a as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$9 as Carousel, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$8 as Drawer, Empty, Error$1 as Error, index$7 as FAB, fABModal as FABModal, Icon, Image, List, index$6 as Modal, PageControl, PinInput, Progress, CompoundRadio as Radio, Rate, 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 };