@hero-design/rn 8.52.1 → 8.52.2-rc2.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 (177) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +20 -0
  3. package/es/index.js +397 -687
  4. package/lib/index.js +395 -686
  5. package/package.json +7 -7
  6. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +0 -4
  7. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +0 -2
  8. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  9. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
  10. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  11. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +0 -2
  12. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  13. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +0 -3
  14. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  15. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +0 -6
  16. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +0 -2
  17. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +32 -21
  18. package/src/components/BottomSheet/index.tsx +1 -1
  19. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +0 -21
  20. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +0 -10
  21. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -10
  22. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  23. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +0 -16
  24. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +0 -1
  25. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +0 -32
  26. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +0 -5
  27. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +0 -7
  28. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +0 -5
  29. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -1
  30. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  31. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +0 -2
  32. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +0 -4
  33. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +0 -1
  34. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1 -803
  35. package/src/components/Carousel/__tests__/index.spec.tsx +37 -47
  36. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +0 -8
  37. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  38. package/src/components/Checkbox/index.tsx +1 -13
  39. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
  40. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +0 -2
  41. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  42. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -1
  43. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  44. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +0 -15
  45. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +0 -1
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +0 -1
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +309 -329
  48. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +0 -12
  49. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  50. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  51. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  52. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  53. package/src/components/Error/index.tsx +3 -20
  54. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  55. package/src/components/FAB/ActionGroup/index.tsx +1 -14
  56. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +0 -2
  57. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +0 -3
  58. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  59. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  60. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  61. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  62. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +0 -2
  63. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +0 -4
  64. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +0 -4
  65. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +0 -9
  66. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  67. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  68. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +0 -5
  69. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  70. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  71. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +0 -5
  72. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +0 -2
  73. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +0 -1
  74. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  75. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  76. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +0 -1
  77. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +0 -1
  78. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +0 -2
  79. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +0 -4
  80. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  81. package/src/components/SectionHeading/__tests__/index.spec.tsx +0 -1
  82. package/src/components/SectionHeading/index.tsx +32 -57
  83. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
  84. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -4
  85. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +128 -42
  86. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
  87. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -4
  88. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +96 -35
  89. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
  90. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  91. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +0 -1
  92. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +0 -24
  93. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  94. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  95. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +0 -3
  96. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  97. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +0 -4
  98. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  99. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +0 -5
  100. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  101. package/src/components/Tabs/__tests__/SceneView.spec.tsx +1 -1
  102. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +0 -4
  103. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +0 -3
  104. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +0 -1
  105. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +0 -2
  106. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  107. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +0 -10
  108. package/src/components/Tag/index.tsx +0 -12
  109. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +0 -21
  110. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -17
  111. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +0 -2
  112. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +309 -330
  113. package/src/components/Toast/StyledToast.tsx +7 -9
  114. package/src/components/Toast/Toast.tsx +1 -4
  115. package/src/components/Toast/ToastContainer.tsx +2 -6
  116. package/src/components/Toast/ToastContext.ts +2 -5
  117. package/src/components/Toast/ToastProvider.tsx +2 -19
  118. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +12 -15
  119. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +0 -7
  120. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +6 -14
  121. package/src/components/Toast/types.ts +1 -5
  122. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +0 -3
  123. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +0 -8
  124. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +0 -16
  125. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +0 -19
  126. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +0 -10
  127. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +0 -13
  128. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +0 -8
  129. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +0 -11
  130. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +0 -20
  131. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +0 -20
  132. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +0 -23
  133. package/src/index.ts +0 -2
  134. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +0 -102
  135. package/src/theme/components/badge.ts +1 -28
  136. package/src/theme/components/button.ts +0 -24
  137. package/src/theme/components/carousel.ts +1 -28
  138. package/src/theme/components/empty.ts +1 -23
  139. package/src/theme/components/error.ts +1 -32
  140. package/src/theme/components/fab.ts +2 -13
  141. package/src/theme/components/pinInput.ts +0 -32
  142. package/src/theme/components/success.ts +1 -23
  143. package/src/theme/components/tag.ts +1 -28
  144. package/src/theme/components/textInput.ts +0 -5
  145. package/src/theme/getTheme.ts +18 -21
  146. package/src/types.ts +0 -2
  147. package/types/components/Checkbox/index.d.ts +1 -6
  148. package/types/components/Error/index.d.ts +3 -9
  149. package/types/components/FAB/ActionGroup/index.d.ts +0 -5
  150. package/types/components/SectionHeading/index.d.ts +1 -11
  151. package/types/components/Tag/index.d.ts +1 -6
  152. package/types/components/Toast/StyledToast.d.ts +0 -2
  153. package/types/components/Toast/ToastContext.d.ts +2 -2
  154. package/types/components/Toast/ToastProvider.d.ts +1 -1
  155. package/types/components/Toast/index.d.ts +1 -1
  156. package/types/components/Toast/types.d.ts +1 -5
  157. package/types/index.d.ts +1 -2
  158. package/types/theme/components/badge.d.ts +0 -24
  159. package/types/theme/components/button.d.ts +0 -20
  160. package/types/theme/components/carousel.d.ts +0 -24
  161. package/types/theme/components/empty.d.ts +0 -19
  162. package/types/theme/components/error.d.ts +0 -27
  163. package/types/theme/components/fab.d.ts +8 -19
  164. package/types/theme/components/pinInput.d.ts +0 -27
  165. package/types/theme/components/success.d.ts +0 -19
  166. package/types/theme/components/tag.d.ts +0 -24
  167. package/types/theme/components/textInput.d.ts +0 -5
  168. package/types/theme/getTheme.d.ts +18 -20
  169. package/types/types.d.ts +1 -2
  170. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +0 -60
  171. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +0 -413
  172. package/src/components/BottomNavigation/__tests__/index.spec.tsx +0 -97
  173. package/src/components/BottomNavigation/index.tsx +0 -166
  174. package/src/theme/components/bottomNavigation.ts +0 -27
  175. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
  176. package/types/components/BottomNavigation/index.d.ts +0 -45
  177. package/types/theme/components/bottomNavigation.d.ts +0 -23
package/lib/index.js CHANGED
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var reactNative = require('react-native');
6
6
  var React = require('react');
7
7
  var reactNativeVectorIcons = require('react-native-vector-icons');
8
- var reactNativeSafeAreaContext = require('react-native-safe-area-context');
9
8
  var reactNativeMonthYearPicker = require('@hero-design/react-native-month-year-picker');
10
9
  var DateTimePicker = require('@react-native-community/datetimepicker');
11
10
  var RnSlider = require('@react-native-community/slider');
12
11
  var reactNativeGestureHandler = require('react-native-gesture-handler');
13
12
  var LinearGradient = require('react-native-linear-gradient');
13
+ var reactNativeSafeAreaContext = require('react-native-safe-area-context');
14
14
  var PagerView = require('react-native-pager-view');
15
15
  var events = require('events');
16
16
  var reactNativeWebview = require('react-native-webview');
@@ -2200,15 +2200,6 @@ var getBadgeTheme = function getBadgeTheme(theme) {
2200
2200
  archived: theme.colors.onArchivedSurface,
2201
2201
  text: theme.colors.onDarkGlobalSurface
2202
2202
  };
2203
- var fonts = {
2204
- "default": theme.fonts.neutral.semiBold
2205
- };
2206
- var fontSizes = {
2207
- "default": theme.fontSizes.small
2208
- };
2209
- var lineHeights = {
2210
- "default": theme.lineHeights.small
2211
- };
2212
2203
  var sizes = {
2213
2204
  height: theme.fontSizes.small + theme.sizes.small,
2214
2205
  minWidth: theme.fontSizes.small + theme.sizes.small,
@@ -2222,37 +2213,6 @@ var getBadgeTheme = function getBadgeTheme(theme) {
2222
2213
  };
2223
2214
  return {
2224
2215
  colors: colors,
2225
- fonts: fonts,
2226
- fontSizes: fontSizes,
2227
- sizes: sizes,
2228
- space: space,
2229
- lineHeights: lineHeights
2230
- };
2231
- };
2232
-
2233
- var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
2234
- var colors = {
2235
- shadow: theme.colors.primary,
2236
- background: theme.colors.defaultGlobalSurface
2237
- };
2238
- var sizes = {
2239
- height: theme.sizes['6xlarge']
2240
- };
2241
- var shadows = {
2242
- offset: {
2243
- width: 0,
2244
- height: 3
2245
- },
2246
- opacity: 0.27,
2247
- radius: 4.65,
2248
- elevation: 10
2249
- };
2250
- var space = {
2251
- titleMarginTop: theme.space.xsmall
2252
- };
2253
- return {
2254
- colors: colors,
2255
- shadows: shadows,
2256
2216
  sizes: sizes,
2257
2217
  space: space
2258
2218
  };
@@ -2296,15 +2256,6 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
2296
2256
  };
2297
2257
 
2298
2258
  var getButtonTheme = function getButtonTheme(theme) {
2299
- var fonts = {
2300
- "default": theme.fonts.neutral.semiBold,
2301
- utility: theme.fonts.neutral.regular
2302
- };
2303
- var fontSize = {
2304
- "default": theme.fontSizes.xlarge,
2305
- utility: theme.fontSizes.large,
2306
- textVariant: theme.fontSizes.large
2307
- };
2308
2259
  var borderWidth = {
2309
2260
  "default": theme.space.xxsmall
2310
2261
  };
@@ -2351,8 +2302,6 @@ var getButtonTheme = function getButtonTheme(theme) {
2351
2302
  return {
2352
2303
  lineHeights: lineHeights,
2353
2304
  borderWidth: borderWidth,
2354
- fonts: fonts,
2355
- fontSize: fontSize,
2356
2305
  sizes: sizes,
2357
2306
  radii: radii,
2358
2307
  colors: colors,
@@ -2428,20 +2377,8 @@ var getCarouselTheme = function getCarouselTheme(theme) {
2428
2377
  pageControlPaddingVertical: theme.space.small,
2429
2378
  pageControlWrapperHeight: scale(48)
2430
2379
  };
2431
- var fontSizes = {
2432
- heading: theme.fontSizes['xxxxxlarge']
2433
- };
2434
- var fonts = {
2435
- heading: theme.fonts.playful.semiBold
2436
- };
2437
- var lineHeights = {
2438
- heading: theme.lineHeights['6xlarge']
2439
- };
2440
2380
  return {
2441
- space: space,
2442
- fonts: fonts,
2443
- fontSizes: fontSizes,
2444
- lineHeights: lineHeights
2381
+ space: space
2445
2382
  };
2446
2383
  };
2447
2384
 
@@ -2625,20 +2562,10 @@ var getEmptyTheme = function getEmptyTheme(theme) {
2625
2562
  subduedText: theme.colors.mutedOnDefaultGlobalSurface,
2626
2563
  invertedSubduedText: theme.colors.onDarkGlobalSurface
2627
2564
  };
2628
- var fontSizes = {
2629
- title: theme.fontSizes.xxxlarge,
2630
- description: theme.fontSizes.xlarge
2631
- };
2632
- var fonts = {
2633
- title: theme.fonts.playful.semiBold,
2634
- description: theme.fonts.playful.regular
2635
- };
2636
2565
  return {
2637
- fontSizes: fontSizes,
2638
2566
  colors: colors,
2639
2567
  sizes: sizes,
2640
- space: space,
2641
- fonts: fonts
2568
+ space: space
2642
2569
  };
2643
2570
  };
2644
2571
 
@@ -2663,25 +2590,10 @@ var getErrorTheme = function getErrorTheme(theme) {
2663
2590
  fullScreenBackground: theme.colors.decorativePrimarySurface,
2664
2591
  inPageBackground: theme.colors.neutralGlobalSurface
2665
2592
  };
2666
- var fontSizes = {
2667
- title: theme.fontSizes.xxxlarge,
2668
- description: theme.fontSizes.xlarge
2669
- };
2670
- var fonts = {
2671
- title: theme.fonts.playful.semiBold,
2672
- description: theme.fonts.playful.regular
2673
- };
2674
- var lineHeight = {
2675
- title: theme.lineHeights.xxxlarge,
2676
- description: theme.lineHeights.xlarge
2677
- };
2678
2593
  return {
2679
- fontSizes: fontSizes,
2680
2594
  colors: colors,
2681
2595
  sizes: sizes,
2682
- space: space,
2683
- fonts: fonts,
2684
- lineHeight: lineHeight
2596
+ space: space
2685
2597
  };
2686
2598
  };
2687
2599
 
@@ -2738,10 +2650,10 @@ var getFABTheme = function getFABTheme(theme) {
2738
2650
  };
2739
2651
  return {
2740
2652
  radii: radii,
2741
- fonts: fonts,
2742
- fontSizes: fontSizes,
2743
2653
  colors: colors,
2744
2654
  sizes: sizes,
2655
+ fonts: fonts,
2656
+ fontSizes: fontSizes,
2745
2657
  lineHeights: lineHeights,
2746
2658
  shadows: shadows,
2747
2659
  space: space
@@ -2866,18 +2778,6 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2866
2778
  error: theme.colors.onErrorSurface,
2867
2779
  disabled: theme.colors.disabledOnDefaultGlobalSurface
2868
2780
  };
2869
- var fonts = {
2870
- cellText: theme.fonts.neutral.semiBold,
2871
- errorMessage: theme.fonts.neutral.regular
2872
- };
2873
- var fontSizes = {
2874
- cellText: theme.fontSizes.xxxxlarge,
2875
- errorMessage: theme.fontSizes.small
2876
- };
2877
- var lineHeights = {
2878
- cellText: theme.lineHeights.xxxxlarge,
2879
- errorMessage: theme.fontSizes.small
2880
- };
2881
2781
  var sizes = {
2882
2782
  cellWidth: theme.sizes.xxlarge,
2883
2783
  cellHeight: theme.sizes.xxxlarge,
@@ -2893,10 +2793,7 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2893
2793
  };
2894
2794
  return {
2895
2795
  borderWidths: borderWidths,
2896
- lineHeights: lineHeights,
2897
2796
  colors: colors,
2898
- fonts: fonts,
2899
- fontSizes: fontSizes,
2900
2797
  sizes: sizes,
2901
2798
  space: space,
2902
2799
  radii: radii
@@ -3155,20 +3052,10 @@ var getSuccessTheme = function getSuccessTheme(theme) {
3155
3052
  fullScreenBackground: theme.colors.decorativePrimarySurface,
3156
3053
  inPageBackground: theme.colors.neutralGlobalSurface
3157
3054
  };
3158
- var fontSizes = {
3159
- title: theme.fontSizes.xxxlarge,
3160
- description: theme.fontSizes.xlarge
3161
- };
3162
- var fonts = {
3163
- title: theme.fonts.playful.semiBold,
3164
- description: theme.fonts.playful.regular
3165
- };
3166
3055
  return {
3167
- fontSizes: fontSizes,
3168
3056
  colors: colors,
3169
3057
  sizes: sizes,
3170
- space: space,
3171
- fonts: fonts
3058
+ space: space
3172
3059
  };
3173
3060
  };
3174
3061
 
@@ -3289,15 +3176,6 @@ var getTagTheme = function getTagTheme(theme) {
3289
3176
  archivedBackground: theme.colors.archivedSurface,
3290
3177
  text: theme.colors.onDefaultGlobalSurface
3291
3178
  };
3292
- var fonts = {
3293
- "default": theme.fonts.neutral.semiBold
3294
- };
3295
- var fontSizes = {
3296
- "default": theme.fontSizes.small
3297
- };
3298
- var lineHeights = {
3299
- "default": theme.lineHeights.small
3300
- };
3301
3179
  var space = {
3302
3180
  horizontalPadding: theme.space.small,
3303
3181
  verticalPadding: theme.space.xsmall
@@ -3308,11 +3186,8 @@ var getTagTheme = function getTagTheme(theme) {
3308
3186
  return {
3309
3187
  borderWidths: borderWidths,
3310
3188
  colors: colors,
3311
- fonts: fonts,
3312
- fontSizes: fontSizes,
3313
3189
  space: space,
3314
- radii: radii,
3315
- lineHeights: lineHeights
3190
+ radii: radii
3316
3191
  };
3317
3192
  };
3318
3193
 
@@ -3376,12 +3251,7 @@ var getTextInputTheme = function getTextInputTheme(theme) {
3376
3251
  text: theme.fonts.neutral.regular
3377
3252
  };
3378
3253
  var fontSizes = {
3379
- text: theme.fontSizes.large,
3380
- labelInsideTextInput: theme.fontSizes.large,
3381
- error: theme.fontSizes.small,
3382
- maxLength: theme.fontSizes.small,
3383
- asteriskLabel: theme.fontSizes.large,
3384
- topLabel: theme.fontSizes.small
3254
+ text: theme.fontSizes.large
3385
3255
  };
3386
3256
  var borderWidths = {
3387
3257
  container: {
@@ -3683,7 +3553,6 @@ var getTheme$1 = function getTheme() {
3683
3553
  attachment: getAttachmentTheme(globalTheme),
3684
3554
  avatar: getAvatarTheme(globalTheme),
3685
3555
  badge: getBadgeTheme(globalTheme),
3686
- bottomNavigation: getBottomNavigationTheme(globalTheme),
3687
3556
  bottomSheet: getBottomSheetTheme(globalTheme),
3688
3557
  button: getButtonTheme(globalTheme),
3689
3558
  calendar: getCalendarTheme(globalTheme),
@@ -6727,7 +6596,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
6727
6596
  });
6728
6597
  });
6729
6598
 
6730
- var _excluded$A = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6599
+ var _excluded$z = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6731
6600
  var Text = function Text(_ref) {
6732
6601
  var children = _ref.children,
6733
6602
  _ref$fontSize = _ref.fontSize,
@@ -6740,7 +6609,7 @@ var Text = function Text(_ref) {
6740
6609
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6741
6610
  _ref$allowFontScaling = _ref.allowFontScaling,
6742
6611
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6743
- nativeProps = _objectWithoutProperties(_ref, _excluded$A);
6612
+ nativeProps = _objectWithoutProperties(_ref, _excluded$z);
6744
6613
  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.');
6745
6614
  return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
6746
6615
  themeFontSize: fontSize,
@@ -6770,7 +6639,7 @@ var StyledCaption = index$a(reactNative.Text)(function (_ref) {
6770
6639
  };
6771
6640
  });
6772
6641
 
6773
- var _excluded$z = ["children", "fontWeight", "intent", "allowFontScaling"];
6642
+ var _excluded$y = ["children", "fontWeight", "intent", "allowFontScaling"];
6774
6643
  var Caption = function Caption(_ref) {
6775
6644
  var children = _ref.children,
6776
6645
  _ref$fontWeight = _ref.fontWeight,
@@ -6779,7 +6648,7 @@ var Caption = function Caption(_ref) {
6779
6648
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6780
6649
  _ref$allowFontScaling = _ref.allowFontScaling,
6781
6650
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6782
- nativeProps = _objectWithoutProperties(_ref, _excluded$z);
6651
+ nativeProps = _objectWithoutProperties(_ref, _excluded$y);
6783
6652
  return /*#__PURE__*/React__default["default"].createElement(StyledCaption, _extends$1({}, nativeProps, {
6784
6653
  themeFontWeight: fontWeight,
6785
6654
  themeIntent: intent,
@@ -6798,14 +6667,14 @@ var StyledLabel$1 = index$a(reactNative.Text)(function (_ref) {
6798
6667
  };
6799
6668
  });
6800
6669
 
6801
- var _excluded$y = ["children", "intent", "allowFontScaling"];
6670
+ var _excluded$x = ["children", "intent", "allowFontScaling"];
6802
6671
  var Label = function Label(_ref) {
6803
6672
  var children = _ref.children,
6804
6673
  _ref$intent = _ref.intent,
6805
6674
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6806
6675
  _ref$allowFontScaling = _ref.allowFontScaling,
6807
6676
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6808
- nativeProps = _objectWithoutProperties(_ref, _excluded$y);
6677
+ nativeProps = _objectWithoutProperties(_ref, _excluded$x);
6809
6678
  return /*#__PURE__*/React__default["default"].createElement(StyledLabel$1, _extends$1({}, nativeProps, {
6810
6679
  themeIntent: intent,
6811
6680
  allowFontScaling: allowFontScaling
@@ -6826,7 +6695,7 @@ var StyledTitle$1 = index$a(reactNative.Text)(function (_ref) {
6826
6695
  };
6827
6696
  });
6828
6697
 
6829
- var _excluded$x = ["children", "intent", "allowFontScaling", "level", "typeface"];
6698
+ var _excluded$w = ["children", "intent", "allowFontScaling", "level", "typeface"];
6830
6699
  var Title = function Title(_ref) {
6831
6700
  var children = _ref.children,
6832
6701
  _ref$intent = _ref.intent,
@@ -6837,7 +6706,7 @@ var Title = function Title(_ref) {
6837
6706
  level = _ref$level === void 0 ? 'h1' : _ref$level,
6838
6707
  _ref$typeface = _ref.typeface,
6839
6708
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6840
- nativeProps = _objectWithoutProperties(_ref, _excluded$x);
6709
+ nativeProps = _objectWithoutProperties(_ref, _excluded$w);
6841
6710
  return /*#__PURE__*/React__default["default"].createElement(StyledTitle$1, _extends$1({}, nativeProps, {
6842
6711
  themeLevel: level,
6843
6712
  themeTypeface: typeface,
@@ -6872,7 +6741,7 @@ var StyledBody = index$a(reactNative.Text)(function (_ref) {
6872
6741
  };
6873
6742
  });
6874
6743
 
6875
- var _excluded$w = ["children", "intent", "allowFontScaling", "typeface", "variant"];
6744
+ var _excluded$v = ["children", "intent", "allowFontScaling", "typeface", "variant"];
6876
6745
  var Body = function Body(_ref) {
6877
6746
  var children = _ref.children,
6878
6747
  _ref$intent = _ref.intent,
@@ -6883,7 +6752,7 @@ var Body = function Body(_ref) {
6883
6752
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6884
6753
  _ref$variant = _ref.variant,
6885
6754
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
6886
- nativeProps = _objectWithoutProperties(_ref, _excluded$w);
6755
+ nativeProps = _objectWithoutProperties(_ref, _excluded$v);
6887
6756
  return /*#__PURE__*/React__default["default"].createElement(StyledBody, _extends$1({}, nativeProps, {
6888
6757
  themeTypeface: typeface,
6889
6758
  themeIntent: intent,
@@ -7428,10 +7297,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
7428
7297
  };
7429
7298
  });
7430
7299
 
7431
- var _excluded$v = ["style"];
7300
+ var _excluded$u = ["style"];
7432
7301
  var AnimatedIcon = function AnimatedIcon(_ref) {
7433
7302
  var style = _ref.style,
7434
- otherProps = _objectWithoutProperties(_ref, _excluded$v);
7303
+ otherProps = _objectWithoutProperties(_ref, _excluded$u);
7435
7304
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
7436
7305
  React.useEffect(function () {
7437
7306
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
@@ -7536,7 +7405,7 @@ var AccordionItem = function AccordionItem(_ref) {
7536
7405
  }, content));
7537
7406
  };
7538
7407
 
7539
- var _excluded$u = ["key"];
7408
+ var _excluded$t = ["key"];
7540
7409
  var Accordion = function Accordion(_ref) {
7541
7410
  var items = _ref.items,
7542
7411
  activeItemKey = _ref.activeItemKey,
@@ -7557,7 +7426,7 @@ var Accordion = function Accordion(_ref) {
7557
7426
  testID: testID
7558
7427
  }, items.map(function (_ref2, index) {
7559
7428
  var key = _ref2.key,
7560
- props = _objectWithoutProperties(_ref2, _excluded$u);
7429
+ props = _objectWithoutProperties(_ref2, _excluded$t);
7561
7430
  var open = _activeItemKey === key;
7562
7431
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
7563
7432
  key: key
@@ -7835,7 +7704,7 @@ var Avatar = function Avatar(_ref) {
7835
7704
  }));
7836
7705
  };
7837
7706
 
7838
- var isIOS = reactNative.Platform.OS === 'ios';
7707
+ reactNative.Platform.OS === 'ios';
7839
7708
  var isAndroid = reactNative.Platform.OS === 'android';
7840
7709
  function pick(keys, obj) {
7841
7710
  return keys.filter(function (key) {
@@ -8027,7 +7896,7 @@ var borderWidths = {
8027
7896
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8028
7897
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8029
7898
 
8030
- var _excluded$t = ["theme"];
7899
+ var _excluded$s = ["theme"];
8031
7900
  var getThemeValue = function getThemeValue(theme, key, props) {
8032
7901
  var propConfig = config[key];
8033
7902
  var propValue = props[key];
@@ -8054,18 +7923,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8054
7923
  var configKeys = Object.keys(config);
8055
7924
  var StyledBox = index$a(reactNative.View)(function (_ref5) {
8056
7925
  var theme = _ref5.theme,
8057
- otherProps = _objectWithoutProperties(_ref5, _excluded$t);
7926
+ otherProps = _objectWithoutProperties(_ref5, _excluded$s);
8058
7927
  var styleProps = pick(configKeys, otherProps);
8059
7928
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8060
7929
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8061
7930
  });
8062
7931
 
8063
- var _excluded$s = ["children", "style", "testID"];
7932
+ var _excluded$r = ["children", "style", "testID"];
8064
7933
  var Box = function Box(_ref) {
8065
7934
  var children = _ref.children,
8066
7935
  style = _ref.style,
8067
7936
  testID = _ref.testID,
8068
- otherProps = _objectWithoutProperties(_ref, _excluded$s);
7937
+ otherProps = _objectWithoutProperties(_ref, _excluded$r);
8069
7938
  return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
8070
7939
  style: style,
8071
7940
  testID: testID
@@ -8279,7 +8148,7 @@ var StyledStatus = index$a(reactNative.Animated.View)(function (_ref3) {
8279
8148
  };
8280
8149
  });
8281
8150
 
8282
- var _excluded$r = ["children", "visible", "intent", "style", "testID"];
8151
+ var _excluded$q = ["children", "visible", "intent", "style", "testID"];
8283
8152
  var Status = function Status(_ref) {
8284
8153
  var children = _ref.children,
8285
8154
  _ref$visible = _ref.visible,
@@ -8288,7 +8157,7 @@ var Status = function Status(_ref) {
8288
8157
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8289
8158
  style = _ref.style,
8290
8159
  testID = _ref.testID,
8291
- nativeProps = _objectWithoutProperties(_ref, _excluded$r);
8160
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
8292
8161
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
8293
8162
  opacity = _React$useRef.current;
8294
8163
  var isFirstRendering = React__default["default"].useRef(true);
@@ -8321,7 +8190,7 @@ var Status = function Status(_ref) {
8321
8190
  }));
8322
8191
  };
8323
8192
 
8324
- var _excluded$q = ["content", "visible", "max", "intent", "style", "testID"];
8193
+ var _excluded$p = ["content", "visible", "max", "intent", "style", "testID"];
8325
8194
  var DEFAULT_MAX_NUMBER = 99;
8326
8195
  var getPaddingState = function getPaddingState(content) {
8327
8196
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -8336,7 +8205,7 @@ var Badge = function Badge(_ref) {
8336
8205
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8337
8206
  style = _ref.style,
8338
8207
  testID = _ref.testID,
8339
- nativeProps = _objectWithoutProperties(_ref, _excluded$q);
8208
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
8340
8209
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
8341
8210
  opacity = _React$useRef.current;
8342
8211
  var isFirstRendering = React__default["default"].useRef(true);
@@ -8372,136 +8241,6 @@ var Badge$1 = Object.assign(Badge, {
8372
8241
  Status: Status
8373
8242
  });
8374
8243
 
8375
- var isHeroIcon = function isHeroIcon(x) {
8376
- return IconList.includes(x);
8377
- };
8378
-
8379
- var BottomNavigationTab = index$a(reactNative.View)(function (_ref) {
8380
- var themeVisibility = _ref.themeVisibility;
8381
- return {
8382
- flex: 1,
8383
- display: themeVisibility === false ? 'none' : 'flex'
8384
- };
8385
- });
8386
- var BottomNavigationContainer = index$a(reactNative.View)({
8387
- flex: 1,
8388
- overflow: 'hidden'
8389
- });
8390
- var ContentWrapper$2 = index$a(reactNative.View)({
8391
- flex: 1
8392
- });
8393
- var BottomBarWrapper = index$a(reactNative.View)(function (_ref2) {
8394
- var themeInsets = _ref2.themeInsets,
8395
- theme = _ref2.theme;
8396
- return {
8397
- height: theme.__hd__.bottomNavigation.sizes.height + themeInsets.bottom,
8398
- paddingBottom: themeInsets.bottom,
8399
- paddingLeft: Math.max(themeInsets.left, themeInsets.right),
8400
- paddingRight: Math.max(themeInsets.left, themeInsets.right),
8401
- backgroundColor: theme.__hd__.bottomNavigation.colors.background,
8402
- shadowColor: theme.__hd__.bottomNavigation.colors.shadow,
8403
- shadowOffset: theme.__hd__.bottomNavigation.shadows.offset,
8404
- shadowOpacity: theme.__hd__.bottomNavigation.shadows.opacity,
8405
- shadowRadius: theme.__hd__.bottomNavigation.shadows.radius,
8406
- elevation: theme.__hd__.bottomNavigation.shadows.elevation
8407
- };
8408
- });
8409
- var BottomBar = index$a(reactNative.View)({
8410
- flex: 1,
8411
- flexDirection: 'row',
8412
- overflow: 'hidden',
8413
- alignItems: 'center'
8414
- });
8415
- var BottomBarItem = index$a(reactNative.View)({
8416
- flex: 1,
8417
- alignItems: 'center'
8418
- });
8419
- var StyledBottomBarText = index$a(Typography.Caption)(function (_ref3) {
8420
- var theme = _ref3.theme;
8421
- return {
8422
- marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
8423
- };
8424
- });
8425
-
8426
- var _excluded$p = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8427
- var getInactiveIcon = function getInactiveIcon(icon) {
8428
- var inactiveIcon = "".concat(icon, "-outlined");
8429
- return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
8430
- };
8431
- var BottomNavigation = function BottomNavigation(_ref) {
8432
- var onTabPress = _ref.onTabPress,
8433
- _ref$renderActiveTabO = _ref.renderActiveTabOnly,
8434
- renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
8435
- selectedTabKey = _ref.selectedTabKey,
8436
- tabs = _ref.tabs,
8437
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
8438
- useDeprecation('BottomNavigation is deprecated and will be removed in the next major release. Please remove it.');
8439
- var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
8440
- /**
8441
- * List of loaded tabs, tabs will be loaded when navigated to.
8442
- */
8443
- var _React$useState = React__default["default"].useState([selectedTabKey]),
8444
- _React$useState2 = _slicedToArray(_React$useState, 2),
8445
- loaded = _React$useState2[0],
8446
- setLoaded = _React$useState2[1];
8447
- if (!loaded.includes(selectedTabKey)) {
8448
- // Set the current tab to be loaded if it was not loaded before
8449
- setLoaded(function (loadedState) {
8450
- return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
8451
- });
8452
- }
8453
- return /*#__PURE__*/React__default["default"].createElement(BottomNavigationContainer, nativeProps, /*#__PURE__*/React__default["default"].createElement(ContentWrapper$2, null, tabs.map(function (tab) {
8454
- var key = tab.key,
8455
- component = tab.component,
8456
- testID = tab.testID;
8457
- var active = selectedTabKey === key;
8458
- if (renderActiveTabOnly && !active) {
8459
- return null;
8460
- }
8461
- if (!loaded.includes(key)) {
8462
- // Don't render a screen if we've never navigated to it
8463
- return null;
8464
- }
8465
- return /*#__PURE__*/React__default["default"].createElement(BottomNavigationTab, {
8466
- key: key,
8467
- testID: testID ? "route-screen-".concat(testID) : undefined,
8468
- pointerEvents: active ? 'auto' : 'none',
8469
- accessibilityElementsHidden: !active,
8470
- importantForAccessibility: active ? 'auto' : 'no-hide-descendants',
8471
- collapsable: false,
8472
- removeClippedSubviews:
8473
- // On iOS, set removeClippedSubviews to true only when not focused
8474
- // This is an workaround for a bug where the clipped view never re-appears.
8475
- isIOS ? selectedTabKey !== key : true,
8476
- themeVisibility: active
8477
- }, component);
8478
- })), /*#__PURE__*/React__default["default"].createElement(BottomBarWrapper, {
8479
- themeInsets: insets
8480
- }, /*#__PURE__*/React__default["default"].createElement(BottomBar, null, tabs.map(function (tab) {
8481
- var key = tab.key,
8482
- icon = tab.icon,
8483
- title = tab.title,
8484
- testID = tab.testID;
8485
- var active = selectedTabKey === key;
8486
- var inactiveIcon = getInactiveIcon(icon);
8487
- return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
8488
- key: key,
8489
- onPress: function onPress() {
8490
- return onTabPress(key);
8491
- },
8492
- testID: testID
8493
- }, /*#__PURE__*/React__default["default"].createElement(BottomBarItem, null, /*#__PURE__*/React__default["default"].createElement(Icon, {
8494
- icon: active ? icon : inactiveIcon,
8495
- intent: active ? 'primary' : 'text',
8496
- testID: "hero-icon-".concat(icon)
8497
- }), !!title && /*#__PURE__*/React__default["default"].createElement(StyledBottomBarText, {
8498
- fontWeight: "semi-bold",
8499
- intent: active ? 'primary' : 'body',
8500
- numberOfLines: 1
8501
- }, title)));
8502
- }))));
8503
- };
8504
-
8505
8244
  var BottomSheetContext = /*#__PURE__*/React.createContext({});
8506
8245
 
8507
8246
  var StyledDivider = index$a(reactNative.View)(function (_ref) {
@@ -9155,6 +8894,332 @@ var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
9155
8894
  }));
9156
8895
  };
9157
8896
 
8897
+ var customAlphabet = function customAlphabet(alphabet) {
8898
+ var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
8899
+ return function () {
8900
+ var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
8901
+ var id = '';
8902
+ var i = size;
8903
+ while (i--) {
8904
+ id += alphabet[Math.random() * alphabet.length | 0];
8905
+ }
8906
+ return id;
8907
+ };
8908
+ };
8909
+
8910
+ var ACTIONS;
8911
+ (function (ACTIONS) {
8912
+ ACTIONS[ACTIONS["REGISTER_HOST"] = 0] = "REGISTER_HOST";
8913
+ ACTIONS[ACTIONS["DEREGISTER_HOST"] = 1] = "DEREGISTER_HOST";
8914
+ ACTIONS[ACTIONS["ADD_UPDATE_PORTAL"] = 2] = "ADD_UPDATE_PORTAL";
8915
+ ACTIONS[ACTIONS["REMOVE_PORTAL"] = 3] = "REMOVE_PORTAL";
8916
+ })(ACTIONS || (ACTIONS = {}));
8917
+ var INITIAL_STATE = {};
8918
+
8919
+ var PortalStateContext = /*#__PURE__*/React.createContext(null);
8920
+ var PortalDispatchContext = /*#__PURE__*/React.createContext(null);
8921
+
8922
+ var usePortal = function usePortal() {
8923
+ var hostName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'root';
8924
+ var dispatch = React.useContext(PortalDispatchContext);
8925
+ if (dispatch === null) {
8926
+ throw new Error("You must add 'PortalProvider' to the root component.");
8927
+ }
8928
+ var registerHost = React.useCallback(function () {
8929
+ dispatch({
8930
+ type: ACTIONS.REGISTER_HOST,
8931
+ hostName: hostName
8932
+ });
8933
+ }, []);
8934
+ var deregisterHost = React.useCallback(function () {
8935
+ dispatch({
8936
+ type: ACTIONS.DEREGISTER_HOST,
8937
+ hostName: hostName
8938
+ });
8939
+ }, []);
8940
+ var addUpdatePortal = React.useCallback(function (name, node) {
8941
+ dispatch({
8942
+ type: ACTIONS.ADD_UPDATE_PORTAL,
8943
+ hostName: hostName,
8944
+ portalName: name,
8945
+ node: node
8946
+ });
8947
+ }, []);
8948
+ var removePortal = React.useCallback(function (name) {
8949
+ dispatch({
8950
+ type: ACTIONS.REMOVE_PORTAL,
8951
+ hostName: hostName,
8952
+ portalName: name
8953
+ });
8954
+ }, []);
8955
+ return {
8956
+ registerHost: registerHost,
8957
+ deregisterHost: deregisterHost,
8958
+ addPortal: addUpdatePortal,
8959
+ updatePortal: addUpdatePortal,
8960
+ removePortal: removePortal
8961
+ };
8962
+ };
8963
+
8964
+ var usePortalState = function usePortalState(hostName) {
8965
+ var state = React.useContext(PortalStateContext);
8966
+ if (state === null) {
8967
+ throw new Error("You must add 'PortalProvider' to the root component.");
8968
+ }
8969
+ return state[hostName] || [];
8970
+ };
8971
+
8972
+ var PortalHostComponent = function PortalHostComponent(_ref) {
8973
+ var name = _ref.name;
8974
+ var state = usePortalState(name);
8975
+ var _usePortal = usePortal(name),
8976
+ registerHost = _usePortal.registerHost,
8977
+ deregisterHost = _usePortal.deregisterHost;
8978
+ React.useEffect(function () {
8979
+ registerHost();
8980
+ return function () {
8981
+ deregisterHost();
8982
+ };
8983
+ }, []);
8984
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, state.map(function (item) {
8985
+ return item.node;
8986
+ }));
8987
+ };
8988
+ var PortalHost = /*#__PURE__*/React.memo(PortalHostComponent);
8989
+ PortalHost.displayName = 'PortalHost';
8990
+
8991
+ var registerHostIfNotExist = function registerHostIfNotExist(state, hostName) {
8992
+ if (!(hostName in state)) {
8993
+ return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, []));
8994
+ }
8995
+ return _objectSpread2({}, state);
8996
+ };
8997
+ var deregisterHost = function deregisterHost(state, hostName) {
8998
+ return _objectSpread2({}, omit([hostName], state));
8999
+ };
9000
+ var addUpdatePortal = function addUpdatePortal(state, hostName, portalName, node) {
9001
+ var newState = registerHostIfNotExist(state, hostName);
9002
+ var index = newState[hostName].findIndex(function (item) {
9003
+ return item.name === portalName;
9004
+ });
9005
+ if (index !== -1) {
9006
+ return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, newState[hostName].map(function (item, i) {
9007
+ if (index === i) {
9008
+ return _objectSpread2(_objectSpread2({}, item), {}, {
9009
+ node: node
9010
+ });
9011
+ }
9012
+ return item;
9013
+ })));
9014
+ }
9015
+ return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, [].concat(_toConsumableArray(newState[hostName]), [{
9016
+ name: portalName,
9017
+ node: node
9018
+ }])));
9019
+ };
9020
+ var removePortal = function removePortal(state, hostName, portalName) {
9021
+ if (!(hostName in state)) {
9022
+ return _objectSpread2({}, state);
9023
+ }
9024
+ return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, state[hostName].filter(function (item) {
9025
+ return item.name !== portalName;
9026
+ })));
9027
+ };
9028
+ var reducer = function reducer(state, action) {
9029
+ var type = action.type;
9030
+ switch (type) {
9031
+ case ACTIONS.REGISTER_HOST:
9032
+ return registerHostIfNotExist(state, action.hostName);
9033
+ case ACTIONS.DEREGISTER_HOST:
9034
+ return deregisterHost(state, action.hostName);
9035
+ case ACTIONS.ADD_UPDATE_PORTAL:
9036
+ return addUpdatePortal(state, action.hostName, action.portalName, action.node);
9037
+ case ACTIONS.REMOVE_PORTAL:
9038
+ return removePortal(state, action.hostName, action.portalName);
9039
+ default:
9040
+ return _objectSpread2({}, state);
9041
+ }
9042
+ };
9043
+
9044
+ var PortalProviderComponent = function PortalProviderComponent(_ref) {
9045
+ var _ref$rootHostName = _ref.rootHostName,
9046
+ rootHostName = _ref$rootHostName === void 0 ? 'root' : _ref$rootHostName,
9047
+ children = _ref.children;
9048
+ var _useReducer = React.useReducer(reducer, INITIAL_STATE),
9049
+ _useReducer2 = _slicedToArray(_useReducer, 2),
9050
+ state = _useReducer2[0],
9051
+ dispatch = _useReducer2[1];
9052
+ return /*#__PURE__*/React__default["default"].createElement(PortalDispatchContext.Provider, {
9053
+ value: dispatch
9054
+ }, /*#__PURE__*/React__default["default"].createElement(PortalStateContext.Provider, {
9055
+ value: state
9056
+ }, children, /*#__PURE__*/React__default["default"].createElement(PortalHost, {
9057
+ name: rootHostName
9058
+ })));
9059
+ };
9060
+ var PortalProvider = /*#__PURE__*/React.memo(PortalProviderComponent);
9061
+ PortalProvider.displayName = 'PortalProvider';
9062
+
9063
+ var nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
9064
+ var PortalComponent = function PortalComponent(_ref) {
9065
+ var name = _ref.name,
9066
+ hostName = _ref.hostName,
9067
+ children = _ref.children,
9068
+ theme = _ref.theme;
9069
+ var defaultTheme = useTheme();
9070
+ var _usePortal = usePortal(hostName),
9071
+ addUpdatePortal = _usePortal.addPortal,
9072
+ removePortal = _usePortal.removePortal;
9073
+ var nameOrRandom = React.useMemo(function () {
9074
+ return name || nanoid();
9075
+ }, [name]);
9076
+ var ChildrenComponent = React.useMemo(function () {
9077
+ return /*#__PURE__*/React__default["default"].createElement(ThemeProvider, {
9078
+ theme: theme || defaultTheme
9079
+ }, children);
9080
+ }, [theme, children, defaultTheme]);
9081
+ React.useLayoutEffect(function () {
9082
+ addUpdatePortal(nameOrRandom, ChildrenComponent);
9083
+ return function () {
9084
+ removePortal(nameOrRandom);
9085
+ };
9086
+ }, [addUpdatePortal]);
9087
+ React.useLayoutEffect(function () {
9088
+ addUpdatePortal(nameOrRandom, ChildrenComponent);
9089
+ }, [ChildrenComponent]);
9090
+ return null;
9091
+ };
9092
+ var Portal = /*#__PURE__*/React.memo(PortalComponent);
9093
+ Portal.displayName = 'Portal';
9094
+ var Portal$1 = Object.assign(Portal, {
9095
+ Provider: PortalProvider,
9096
+ Host: PortalHost
9097
+ });
9098
+
9099
+ var _excluded$l = ["visible"];
9100
+ var DEFAULT_BACKDROP_OPACITY = 0.4;
9101
+ var DEFAULT_ANIMATION_CONFIG = {
9102
+ easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
9103
+ useNativeDriver: reactNative.Platform.OS !== 'web',
9104
+ duration: 400
9105
+ };
9106
+ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
9107
+ var children = _ref.children,
9108
+ onShow = _ref.onShow,
9109
+ onRequestClose = _ref.onRequestClose,
9110
+ testID = _ref.testID,
9111
+ _ref$animationType = _ref.animationType,
9112
+ animationType = _ref$animationType === void 0 ? 'none' : _ref$animationType,
9113
+ _ref$transparent = _ref.transparent,
9114
+ transparent = _ref$transparent === void 0 ? false : _ref$transparent,
9115
+ onDismiss = _ref.onDismiss;
9116
+ var theme = useTheme();
9117
+ var animatedBackdropValue = React.useRef(new reactNative.Animated.Value(0)).current;
9118
+ var animatedModalValue = React.useRef(new reactNative.Animated.Value(0)).current;
9119
+ // Show or hide the backdrop and modal content
9120
+ var animateBackdropAndContent = React.useCallback(function (_ref2) {
9121
+ var toValue = _ref2.toValue,
9122
+ callback = _ref2.callback;
9123
+ if (animationType !== 'none') {
9124
+ // Backdrop animation
9125
+ if (!transparent) {
9126
+ reactNative.Animated.timing(animatedBackdropValue, _objectSpread2({
9127
+ toValue: toValue
9128
+ }, DEFAULT_ANIMATION_CONFIG)).start();
9129
+ }
9130
+ // Modal content animation
9131
+ reactNative.Animated.timing(animatedModalValue, _objectSpread2({
9132
+ toValue: toValue
9133
+ }, DEFAULT_ANIMATION_CONFIG)).start(callback);
9134
+ } else {
9135
+ callback === null || callback === void 0 || callback();
9136
+ }
9137
+ }, [animationType, onShow, transparent]);
9138
+ var backdropOpacityAnimation = animatedBackdropValue.interpolate({
9139
+ inputRange: [0, 1],
9140
+ outputRange: [0, DEFAULT_BACKDROP_OPACITY]
9141
+ });
9142
+ var modalAnimation = animatedModalValue.interpolate({
9143
+ inputRange: [0, 1],
9144
+ outputRange: animationType === 'slide' ? [reactNative.Dimensions.get('window').height, 0] : [0, 1]
9145
+ });
9146
+ React.useImperativeHandle(ref, function () {
9147
+ return {
9148
+ show: function show() {
9149
+ animateBackdropAndContent({
9150
+ toValue: 1,
9151
+ callback: onShow
9152
+ });
9153
+ },
9154
+ hide: function hide(wrapperCallback) {
9155
+ animateBackdropAndContent({
9156
+ toValue: 0,
9157
+ callback: function callback() {
9158
+ if (reactNative.Platform.OS === 'ios') {
9159
+ onDismiss === null || onDismiss === void 0 || onDismiss();
9160
+ }
9161
+ wrapperCallback();
9162
+ }
9163
+ });
9164
+ }
9165
+ };
9166
+ }, [onDismiss, onShow, animateBackdropAndContent]);
9167
+ // Back button handler
9168
+ React.useEffect(function () {
9169
+ var backHandler = reactNative.BackHandler.addEventListener('hardwareBackPress', function () {
9170
+ onRequestClose === null || onRequestClose === void 0 || onRequestClose();
9171
+ return true;
9172
+ });
9173
+ return function () {
9174
+ return backHandler.remove();
9175
+ };
9176
+ }, [onRequestClose]);
9177
+ return /*#__PURE__*/React__default["default"].createElement(Portal$1, null, /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
9178
+ style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
9179
+ backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
9180
+ opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
9181
+ })
9182
+ }), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
9183
+ testID: testID,
9184
+ style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
9185
+ opacity: animationType === 'fade' ? modalAnimation : 1,
9186
+ transform: [{
9187
+ translateY: animationType === 'slide' ? modalAnimation : 0
9188
+ }]
9189
+ })
9190
+ }, children));
9191
+ });
9192
+ var ModalWrapper = function ModalWrapper(_ref3) {
9193
+ var _ref3$visible = _ref3.visible,
9194
+ visible = _ref3$visible === void 0 ? true : _ref3$visible,
9195
+ props = _objectWithoutProperties(_ref3, _excluded$l);
9196
+ var modalRef = React.useRef(null);
9197
+ var _useState = React.useState(visible),
9198
+ _useState2 = _slicedToArray(_useState, 2),
9199
+ internalVisible = _useState2[0],
9200
+ setInternalVisible = _useState2[1];
9201
+ React.useEffect(function () {
9202
+ if (visible) {
9203
+ setInternalVisible(true);
9204
+ } else {
9205
+ var _modalRef$current;
9206
+ // Wait for animation to finish before hiding the modal
9207
+ (_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 || _modalRef$current.hide(function () {
9208
+ return setInternalVisible(false);
9209
+ });
9210
+ }
9211
+ }, [visible]);
9212
+ React.useEffect(function () {
9213
+ if (internalVisible) {
9214
+ var _modalRef$current2;
9215
+ (_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
9216
+ }
9217
+ }, [internalVisible]);
9218
+ return internalVisible ? /*#__PURE__*/React__default["default"].createElement(Modal, _extends$1({
9219
+ ref: modalRef
9220
+ }, props)) : null;
9221
+ };
9222
+
9158
9223
  var BottomSheet = function BottomSheet(_ref) {
9159
9224
  var open = _ref.open,
9160
9225
  header = _ref.header,
@@ -9231,7 +9296,7 @@ var BottomSheet = function BottomSheet(_ref) {
9231
9296
  setInternalShowDivider: setInternalShowDivider
9232
9297
  };
9233
9298
  }, [setInternalShowDivider]);
9234
- return /*#__PURE__*/React__default["default"].createElement(reactNative.Modal, {
9299
+ return /*#__PURE__*/React__default["default"].createElement(ModalWrapper, {
9235
9300
  visible: visible,
9236
9301
  onRequestClose: onRequestClose,
9237
9302
  transparent: true,
@@ -11920,12 +11985,12 @@ var Indicator = index$a(reactNative.View)(function (_ref2) {
11920
11985
  };
11921
11986
  });
11922
11987
 
11923
- var _excluded$l = ["intent", "children"];
11988
+ var _excluded$k = ["intent", "children"];
11924
11989
  var DataCard = function DataCard(_ref) {
11925
11990
  var _ref$intent = _ref.intent,
11926
11991
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
11927
11992
  children = _ref.children,
11928
- nativeProps = _objectWithoutProperties(_ref, _excluded$l);
11993
+ nativeProps = _objectWithoutProperties(_ref, _excluded$k);
11929
11994
  return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
11930
11995
  themeIntent: intent,
11931
11996
  testID: "data-card-indicator"
@@ -11943,11 +12008,11 @@ var StyledCard$1 = index$a(reactNative.View)(function (_ref) {
11943
12008
  });
11944
12009
  });
11945
12010
 
11946
- var _excluded$k = ["intent", "children"];
12011
+ var _excluded$j = ["intent", "children"];
11947
12012
  var Card = function Card(_ref) {
11948
12013
  var intent = _ref.intent,
11949
12014
  children = _ref.children,
11950
- nativeProps = _objectWithoutProperties(_ref, _excluded$k);
12015
+ nativeProps = _objectWithoutProperties(_ref, _excluded$j);
11951
12016
  return /*#__PURE__*/React__default["default"].createElement(StyledCard$1, _extends$1({}, nativeProps, {
11952
12017
  themeIntent: intent
11953
12018
  }), children);
@@ -12212,7 +12277,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12212
12277
  });
12213
12278
  CardCarousel.displayName = 'CardCarousel';
12214
12279
 
12215
- var _excluded$j = ["rounded", "size", "testID", "style"];
12280
+ var _excluded$i = ["rounded", "size", "testID", "style"];
12216
12281
  var Image = function Image(_ref) {
12217
12282
  var _ref$rounded = _ref.rounded,
12218
12283
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -12220,7 +12285,7 @@ var Image = function Image(_ref) {
12220
12285
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
12221
12286
  testID = _ref.testID,
12222
12287
  style = _ref.style,
12223
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$j);
12288
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$i);
12224
12289
  var theme = useTheme();
12225
12290
  var imageSize = theme.__hd__.image.sizes[size];
12226
12291
  return /*#__PURE__*/React__default["default"].createElement(reactNative.Image, _extends$1({
@@ -12340,7 +12405,7 @@ var CarouselItem = function CarouselItem(_ref) {
12340
12405
  }, heading), body ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, null, body) : null));
12341
12406
  };
12342
12407
 
12343
- var _excluded$i = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12408
+ var _excluded$h = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12344
12409
  function useStateFromProp(initialValue) {
12345
12410
  var _useState = React.useState(initialValue),
12346
12411
  _useState2 = _slicedToArray(_useState, 2),
@@ -12367,7 +12432,7 @@ var Carousel = function Carousel(_ref) {
12367
12432
  testID = _ref.testID,
12368
12433
  _ref$pageControlPosit = _ref.pageControlPosition,
12369
12434
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
12370
- nativeProps = _objectWithoutProperties(_ref, _excluded$i);
12435
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
12371
12436
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
12372
12437
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
12373
12438
  var theme = useTheme();
@@ -12562,7 +12627,7 @@ var StyledIcon$1 = index$a(Icon)(function (_ref4) {
12562
12627
  };
12563
12628
  });
12564
12629
 
12565
- var _excluded$h = ["label", "variant", "selected", "icon", "onPress"];
12630
+ var _excluded$g = ["label", "variant", "selected", "icon", "onPress"];
12566
12631
  var Chip = function Chip(_ref) {
12567
12632
  var label = _ref.label,
12568
12633
  _ref$variant = _ref.variant,
@@ -12571,7 +12636,7 @@ var Chip = function Chip(_ref) {
12571
12636
  selected = _ref$selected === void 0 ? false : _ref$selected,
12572
12637
  icon = _ref.icon,
12573
12638
  onPress = _ref.onPress,
12574
- otherProps = _objectWithoutProperties(_ref, _excluded$h);
12639
+ otherProps = _objectWithoutProperties(_ref, _excluded$g);
12575
12640
  var internalIcon = React__default["default"].useMemo(function () {
12576
12641
  if (icon && variant === 'filled') {
12577
12642
  return icon;
@@ -12658,8 +12723,6 @@ var getThemeState = function getThemeState(_ref) {
12658
12723
  var Checkbox = function Checkbox(_ref2) {
12659
12724
  var checked = _ref2.checked,
12660
12725
  description = _ref2.description,
12661
- _ref2$withBorder = _ref2.withBorder,
12662
- withBorder = _ref2$withBorder === void 0 ? false : _ref2$withBorder,
12663
12726
  _ref2$disabled = _ref2.disabled,
12664
12727
  disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
12665
12728
  onPress = _ref2.onPress,
@@ -12667,7 +12730,6 @@ var Checkbox = function Checkbox(_ref2) {
12667
12730
  testID = _ref2.testID,
12668
12731
  _ref2$readonly = _ref2.readonly,
12669
12732
  readonly = _ref2$readonly === void 0 ? false : _ref2$readonly;
12670
- useDeprecation("Checkbox's withBorder prop will be removed in the next major release, all checkboxes will have border by default. Please remove it.", withBorder === true);
12671
12733
  var themeState = getThemeState({
12672
12734
  disabled: disabled,
12673
12735
  readonly: readonly
@@ -12818,7 +12880,7 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
12818
12880
  };
12819
12881
  });
12820
12882
 
12821
- var _excluded$g = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
12883
+ var _excluded$f = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
12822
12884
  var getState$1 = function getState(_ref) {
12823
12885
  var disabled = _ref.disabled,
12824
12886
  error = _ref.error,
@@ -12871,7 +12933,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
12871
12933
  allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
12872
12934
  _ref2$variant = _ref2.variant,
12873
12935
  variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
12874
- nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
12936
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
12875
12937
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
12876
12938
  var isEmptyValue = displayText.length === 0;
12877
12939
  var actualSuffix = loading ? 'loading' : suffix;
@@ -13416,11 +13478,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
13416
13478
  }))));
13417
13479
  };
13418
13480
 
13419
- var _excluded$f = ["variant"];
13481
+ var _excluded$e = ["variant"];
13420
13482
  var DatePicker = function DatePicker(_ref) {
13421
13483
  var _ref$variant = _ref.variant,
13422
13484
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
13423
- props = _objectWithoutProperties(_ref, _excluded$f);
13485
+ props = _objectWithoutProperties(_ref, _excluded$e);
13424
13486
  if (variant === 'calendar') {
13425
13487
  return /*#__PURE__*/React__default["default"].createElement(DatePickerCalendar, props);
13426
13488
  }
@@ -13772,332 +13834,6 @@ var Empty = function Empty(_ref) {
13772
13834
  }, description));
13773
13835
  };
13774
13836
 
13775
- var customAlphabet = function customAlphabet(alphabet) {
13776
- var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
13777
- return function () {
13778
- var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
13779
- var id = '';
13780
- var i = size;
13781
- while (i--) {
13782
- id += alphabet[Math.random() * alphabet.length | 0];
13783
- }
13784
- return id;
13785
- };
13786
- };
13787
-
13788
- var ACTIONS;
13789
- (function (ACTIONS) {
13790
- ACTIONS[ACTIONS["REGISTER_HOST"] = 0] = "REGISTER_HOST";
13791
- ACTIONS[ACTIONS["DEREGISTER_HOST"] = 1] = "DEREGISTER_HOST";
13792
- ACTIONS[ACTIONS["ADD_UPDATE_PORTAL"] = 2] = "ADD_UPDATE_PORTAL";
13793
- ACTIONS[ACTIONS["REMOVE_PORTAL"] = 3] = "REMOVE_PORTAL";
13794
- })(ACTIONS || (ACTIONS = {}));
13795
- var INITIAL_STATE = {};
13796
-
13797
- var PortalStateContext = /*#__PURE__*/React.createContext(null);
13798
- var PortalDispatchContext = /*#__PURE__*/React.createContext(null);
13799
-
13800
- var usePortal = function usePortal() {
13801
- var hostName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'root';
13802
- var dispatch = React.useContext(PortalDispatchContext);
13803
- if (dispatch === null) {
13804
- throw new Error("You must add 'PortalProvider' to the root component.");
13805
- }
13806
- var registerHost = React.useCallback(function () {
13807
- dispatch({
13808
- type: ACTIONS.REGISTER_HOST,
13809
- hostName: hostName
13810
- });
13811
- }, []);
13812
- var deregisterHost = React.useCallback(function () {
13813
- dispatch({
13814
- type: ACTIONS.DEREGISTER_HOST,
13815
- hostName: hostName
13816
- });
13817
- }, []);
13818
- var addUpdatePortal = React.useCallback(function (name, node) {
13819
- dispatch({
13820
- type: ACTIONS.ADD_UPDATE_PORTAL,
13821
- hostName: hostName,
13822
- portalName: name,
13823
- node: node
13824
- });
13825
- }, []);
13826
- var removePortal = React.useCallback(function (name) {
13827
- dispatch({
13828
- type: ACTIONS.REMOVE_PORTAL,
13829
- hostName: hostName,
13830
- portalName: name
13831
- });
13832
- }, []);
13833
- return {
13834
- registerHost: registerHost,
13835
- deregisterHost: deregisterHost,
13836
- addPortal: addUpdatePortal,
13837
- updatePortal: addUpdatePortal,
13838
- removePortal: removePortal
13839
- };
13840
- };
13841
-
13842
- var usePortalState = function usePortalState(hostName) {
13843
- var state = React.useContext(PortalStateContext);
13844
- if (state === null) {
13845
- throw new Error("You must add 'PortalProvider' to the root component.");
13846
- }
13847
- return state[hostName] || [];
13848
- };
13849
-
13850
- var PortalHostComponent = function PortalHostComponent(_ref) {
13851
- var name = _ref.name;
13852
- var state = usePortalState(name);
13853
- var _usePortal = usePortal(name),
13854
- registerHost = _usePortal.registerHost,
13855
- deregisterHost = _usePortal.deregisterHost;
13856
- React.useEffect(function () {
13857
- registerHost();
13858
- return function () {
13859
- deregisterHost();
13860
- };
13861
- }, []);
13862
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, state.map(function (item) {
13863
- return item.node;
13864
- }));
13865
- };
13866
- var PortalHost = /*#__PURE__*/React.memo(PortalHostComponent);
13867
- PortalHost.displayName = 'PortalHost';
13868
-
13869
- var registerHostIfNotExist = function registerHostIfNotExist(state, hostName) {
13870
- if (!(hostName in state)) {
13871
- return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, []));
13872
- }
13873
- return _objectSpread2({}, state);
13874
- };
13875
- var deregisterHost = function deregisterHost(state, hostName) {
13876
- return _objectSpread2({}, omit([hostName], state));
13877
- };
13878
- var addUpdatePortal = function addUpdatePortal(state, hostName, portalName, node) {
13879
- var newState = registerHostIfNotExist(state, hostName);
13880
- var index = newState[hostName].findIndex(function (item) {
13881
- return item.name === portalName;
13882
- });
13883
- if (index !== -1) {
13884
- return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, newState[hostName].map(function (item, i) {
13885
- if (index === i) {
13886
- return _objectSpread2(_objectSpread2({}, item), {}, {
13887
- node: node
13888
- });
13889
- }
13890
- return item;
13891
- })));
13892
- }
13893
- return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, [].concat(_toConsumableArray(newState[hostName]), [{
13894
- name: portalName,
13895
- node: node
13896
- }])));
13897
- };
13898
- var removePortal = function removePortal(state, hostName, portalName) {
13899
- if (!(hostName in state)) {
13900
- return _objectSpread2({}, state);
13901
- }
13902
- return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, state[hostName].filter(function (item) {
13903
- return item.name !== portalName;
13904
- })));
13905
- };
13906
- var reducer = function reducer(state, action) {
13907
- var type = action.type;
13908
- switch (type) {
13909
- case ACTIONS.REGISTER_HOST:
13910
- return registerHostIfNotExist(state, action.hostName);
13911
- case ACTIONS.DEREGISTER_HOST:
13912
- return deregisterHost(state, action.hostName);
13913
- case ACTIONS.ADD_UPDATE_PORTAL:
13914
- return addUpdatePortal(state, action.hostName, action.portalName, action.node);
13915
- case ACTIONS.REMOVE_PORTAL:
13916
- return removePortal(state, action.hostName, action.portalName);
13917
- default:
13918
- return _objectSpread2({}, state);
13919
- }
13920
- };
13921
-
13922
- var PortalProviderComponent = function PortalProviderComponent(_ref) {
13923
- var _ref$rootHostName = _ref.rootHostName,
13924
- rootHostName = _ref$rootHostName === void 0 ? 'root' : _ref$rootHostName,
13925
- children = _ref.children;
13926
- var _useReducer = React.useReducer(reducer, INITIAL_STATE),
13927
- _useReducer2 = _slicedToArray(_useReducer, 2),
13928
- state = _useReducer2[0],
13929
- dispatch = _useReducer2[1];
13930
- return /*#__PURE__*/React__default["default"].createElement(PortalDispatchContext.Provider, {
13931
- value: dispatch
13932
- }, /*#__PURE__*/React__default["default"].createElement(PortalStateContext.Provider, {
13933
- value: state
13934
- }, children, /*#__PURE__*/React__default["default"].createElement(PortalHost, {
13935
- name: rootHostName
13936
- })));
13937
- };
13938
- var PortalProvider = /*#__PURE__*/React.memo(PortalProviderComponent);
13939
- PortalProvider.displayName = 'PortalProvider';
13940
-
13941
- var nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
13942
- var PortalComponent = function PortalComponent(_ref) {
13943
- var name = _ref.name,
13944
- hostName = _ref.hostName,
13945
- children = _ref.children,
13946
- theme = _ref.theme;
13947
- var defaultTheme = useTheme();
13948
- var _usePortal = usePortal(hostName),
13949
- addUpdatePortal = _usePortal.addPortal,
13950
- removePortal = _usePortal.removePortal;
13951
- var nameOrRandom = React.useMemo(function () {
13952
- return name || nanoid();
13953
- }, [name]);
13954
- var ChildrenComponent = React.useMemo(function () {
13955
- return /*#__PURE__*/React__default["default"].createElement(ThemeProvider, {
13956
- theme: theme || defaultTheme
13957
- }, children);
13958
- }, [theme, children, defaultTheme]);
13959
- React.useLayoutEffect(function () {
13960
- addUpdatePortal(nameOrRandom, ChildrenComponent);
13961
- return function () {
13962
- removePortal(nameOrRandom);
13963
- };
13964
- }, [addUpdatePortal]);
13965
- React.useLayoutEffect(function () {
13966
- addUpdatePortal(nameOrRandom, ChildrenComponent);
13967
- }, [ChildrenComponent]);
13968
- return null;
13969
- };
13970
- var Portal = /*#__PURE__*/React.memo(PortalComponent);
13971
- Portal.displayName = 'Portal';
13972
- var Portal$1 = Object.assign(Portal, {
13973
- Provider: PortalProvider,
13974
- Host: PortalHost
13975
- });
13976
-
13977
- var _excluded$e = ["visible"];
13978
- var DEFAULT_BACKDROP_OPACITY = 0.4;
13979
- var DEFAULT_ANIMATION_CONFIG = {
13980
- easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
13981
- useNativeDriver: reactNative.Platform.OS !== 'web',
13982
- duration: 400
13983
- };
13984
- var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
13985
- var children = _ref.children,
13986
- onShow = _ref.onShow,
13987
- onRequestClose = _ref.onRequestClose,
13988
- testID = _ref.testID,
13989
- _ref$animationType = _ref.animationType,
13990
- animationType = _ref$animationType === void 0 ? 'none' : _ref$animationType,
13991
- _ref$transparent = _ref.transparent,
13992
- transparent = _ref$transparent === void 0 ? false : _ref$transparent,
13993
- onDismiss = _ref.onDismiss;
13994
- var theme = useTheme();
13995
- var animatedBackdropValue = React.useRef(new reactNative.Animated.Value(0)).current;
13996
- var animatedModalValue = React.useRef(new reactNative.Animated.Value(0)).current;
13997
- // Show or hide the backdrop and modal content
13998
- var animateBackdropAndContent = React.useCallback(function (_ref2) {
13999
- var toValue = _ref2.toValue,
14000
- callback = _ref2.callback;
14001
- if (animationType !== 'none') {
14002
- // Backdrop animation
14003
- if (!transparent) {
14004
- reactNative.Animated.timing(animatedBackdropValue, _objectSpread2({
14005
- toValue: toValue
14006
- }, DEFAULT_ANIMATION_CONFIG)).start();
14007
- }
14008
- // Modal content animation
14009
- reactNative.Animated.timing(animatedModalValue, _objectSpread2({
14010
- toValue: toValue
14011
- }, DEFAULT_ANIMATION_CONFIG)).start(callback);
14012
- } else {
14013
- callback === null || callback === void 0 || callback();
14014
- }
14015
- }, [animationType, onShow, transparent]);
14016
- var backdropOpacityAnimation = animatedBackdropValue.interpolate({
14017
- inputRange: [0, 1],
14018
- outputRange: [0, DEFAULT_BACKDROP_OPACITY]
14019
- });
14020
- var modalAnimation = animatedModalValue.interpolate({
14021
- inputRange: [0, 1],
14022
- outputRange: animationType === 'slide' ? [reactNative.Dimensions.get('window').height, 0] : [0, 1]
14023
- });
14024
- React.useImperativeHandle(ref, function () {
14025
- return {
14026
- show: function show() {
14027
- animateBackdropAndContent({
14028
- toValue: 1,
14029
- callback: onShow
14030
- });
14031
- },
14032
- hide: function hide(wrapperCallback) {
14033
- animateBackdropAndContent({
14034
- toValue: 0,
14035
- callback: function callback() {
14036
- if (reactNative.Platform.OS === 'ios') {
14037
- onDismiss === null || onDismiss === void 0 || onDismiss();
14038
- }
14039
- wrapperCallback();
14040
- }
14041
- });
14042
- }
14043
- };
14044
- }, [onDismiss, onShow, animateBackdropAndContent]);
14045
- // Back button handler
14046
- React.useEffect(function () {
14047
- var backHandler = reactNative.BackHandler.addEventListener('hardwareBackPress', function () {
14048
- onRequestClose === null || onRequestClose === void 0 || onRequestClose();
14049
- return true;
14050
- });
14051
- return function () {
14052
- return backHandler.remove();
14053
- };
14054
- }, [onRequestClose]);
14055
- return /*#__PURE__*/React__default["default"].createElement(Portal$1, null, /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
14056
- style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
14057
- backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
14058
- opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
14059
- })
14060
- }), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
14061
- testID: testID,
14062
- style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
14063
- opacity: animationType === 'fade' ? modalAnimation : 1,
14064
- transform: [{
14065
- translateY: animationType === 'slide' ? modalAnimation : 0
14066
- }]
14067
- })
14068
- }, children));
14069
- });
14070
- var ModalWrapper = function ModalWrapper(_ref3) {
14071
- var _ref3$visible = _ref3.visible,
14072
- visible = _ref3$visible === void 0 ? true : _ref3$visible,
14073
- props = _objectWithoutProperties(_ref3, _excluded$e);
14074
- var modalRef = React.useRef(null);
14075
- var _useState = React.useState(visible),
14076
- _useState2 = _slicedToArray(_useState, 2),
14077
- internalVisible = _useState2[0],
14078
- setInternalVisible = _useState2[1];
14079
- React.useEffect(function () {
14080
- if (visible) {
14081
- setInternalVisible(true);
14082
- } else {
14083
- var _modalRef$current;
14084
- // Wait for animation to finish before hiding the modal
14085
- (_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 || _modalRef$current.hide(function () {
14086
- return setInternalVisible(false);
14087
- });
14088
- }
14089
- }, [visible]);
14090
- React.useEffect(function () {
14091
- if (internalVisible) {
14092
- var _modalRef$current2;
14093
- (_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
14094
- }
14095
- }, [internalVisible]);
14096
- return internalVisible ? /*#__PURE__*/React__default["default"].createElement(Modal, _extends$1({
14097
- ref: modalRef
14098
- }, props)) : null;
14099
- };
14100
-
14101
13837
  var StyledErrorModal = index$a(ModalWrapper)({
14102
13838
  height: '100%',
14103
13839
  width: '100%'
@@ -14181,7 +13917,7 @@ var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
14181
13917
  });
14182
13918
 
14183
13919
  var _excluded$d = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14184
- _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
13920
+ _excluded2 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
14185
13921
  var renderImage$1 = function renderImage(image) {
14186
13922
  if ( /*#__PURE__*/React.isValidElement(image)) {
14187
13923
  return /*#__PURE__*/React__default["default"].cloneElement(image, {
@@ -14235,9 +13971,7 @@ var ErrorPage = function ErrorPage(_ref) {
14235
13971
  * @return {*} {ReactElement}
14236
13972
  */
14237
13973
  var Error$1 = function Error(_ref2) {
14238
- var _ref2$visible = _ref2.visible,
14239
- visible = _ref2$visible === void 0 ? true : _ref2$visible,
14240
- _ref2$variant = _ref2.variant,
13974
+ var _ref2$variant = _ref2.variant,
14241
13975
  variant = _ref2$variant === void 0 ? 'in-page' : _ref2$variant,
14242
13976
  title = _ref2.title,
14243
13977
  description = _ref2.description,
@@ -14248,8 +13982,7 @@ var Error$1 = function Error(_ref2) {
14248
13982
  secondaryCtaText = _ref2.secondaryCtaText,
14249
13983
  onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
14250
13984
  nativeProps = _objectWithoutProperties(_ref2, _excluded2);
14251
- useDeprecation("Visible prop is deprecated. Use conditional rendering instead", visible);
14252
- var _useState = React.useState(visible),
13985
+ var _useState = React.useState(true),
14253
13986
  _useState2 = _slicedToArray(_useState, 2),
14254
13987
  isVisible = _useState2[0],
14255
13988
  setIsVisible = _useState2[1];
@@ -14266,9 +13999,6 @@ var Error$1 = function Error(_ref2) {
14266
13999
  }
14267
14000
  setCtaPressed(null);
14268
14001
  }, [ctaPressed, onCtaPress, onSecondaryCtaPress]);
14269
- React.useEffect(function () {
14270
- setIsVisible(visible);
14271
- }, [visible]);
14272
14002
  // These useEffect lines prevents race condition error when callback contains navigation logic
14273
14003
  React.useEffect(function () {
14274
14004
  if (ctaPressed) {
@@ -14625,8 +14355,7 @@ var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
14625
14355
  });
14626
14356
 
14627
14357
  var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14628
- var headerTitle = _ref.headerTitle,
14629
- onPress = _ref.onPress,
14358
+ var onPress = _ref.onPress,
14630
14359
  active = _ref.active,
14631
14360
  style = _ref.style,
14632
14361
  items = _ref.items,
@@ -14635,7 +14364,6 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14635
14364
  onBackdropPress = _ref.onBackdropPress,
14636
14365
  _ref$fabIcon = _ref.fabIcon,
14637
14366
  fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon;
14638
- useDeprecation("FAB.ActionGroup's headerTitle prop will be removed in the next major release. Please remove it.", headerTitle !== undefined);
14639
14367
  var fabRef = React.useRef(null);
14640
14368
  var tranlateXAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
14641
14369
  React__default["default"].useImperativeHandle(ref, function () {
@@ -14730,12 +14458,11 @@ var index$6 = Object.assign(FAB, {
14730
14458
  });
14731
14459
 
14732
14460
  var ToastContainerWrapper = index$a(reactNative.View)(function (_ref) {
14733
- var theme = _ref.theme,
14734
- position = _ref.position;
14461
+ var theme = _ref.theme;
14735
14462
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
14736
14463
  paddingHorizontal: theme.__hd__.toast.space.wrapperVerticalPadding,
14737
14464
  paddingVertical: theme.__hd__.toast.space.wrapperHorizontalPadding,
14738
- flexDirection: position === 'bottom' ? 'column-reverse' : 'column',
14465
+ flexDirection: 'column-reverse',
14739
14466
  elevation: 9999
14740
14467
  });
14741
14468
  });
@@ -14788,15 +14515,6 @@ var CTAWrapper = index$a(reactNative.TouchableOpacity)(function (_ref6) {
14788
14515
  };
14789
14516
  });
14790
14517
 
14791
- var ToastContext = /*#__PURE__*/React.createContext({});
14792
- var ToastConfigContext = /*#__PURE__*/React.createContext({});
14793
- var useToastConfig = function useToastConfig() {
14794
- return React.useContext(ToastConfigContext);
14795
- };
14796
- var useToast = function useToast() {
14797
- return React.useContext(ToastContext);
14798
- };
14799
-
14800
14518
  var getIntentIcon = function getIntentIcon(intent) {
14801
14519
  switch (intent) {
14802
14520
  case 'success':
@@ -14840,7 +14558,6 @@ var Toast$1 = function Toast(_ref2) {
14840
14558
  _ref2$distance = _ref2.distance,
14841
14559
  distance = _ref2$distance === void 0 ? 0 : _ref2$distance;
14842
14560
  var animatedValue = React.useRef(new reactNative.Animated.Value(0)).current;
14843
- var toastConfig = useToastConfig();
14844
14561
  React.useEffect(function () {
14845
14562
  if (autoDismiss && duration >= 0) {
14846
14563
  var id = setTimeout(function () {
@@ -14866,7 +14583,7 @@ var Toast$1 = function Toast(_ref2) {
14866
14583
  });
14867
14584
  var interpolateY = animatedValue.interpolate({
14868
14585
  inputRange: [0, 1],
14869
- outputRange: toastConfig.position === 'top' ? [-20, distance] : [20, -distance]
14586
+ outputRange: [20, -distance]
14870
14587
  });
14871
14588
  return /*#__PURE__*/React__default["default"].createElement(Container, {
14872
14589
  themeVariant: variant,
@@ -14924,8 +14641,6 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
14924
14641
  var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function (_ref2, ref) {
14925
14642
  var _ref2$displayType = _ref2.displayType,
14926
14643
  displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
14927
- _ref2$position = _ref2.position,
14928
- position = _ref2$position === void 0 ? 'bottom' : _ref2$position,
14929
14644
  style = _ref2.style;
14930
14645
  var theme = useTheme$1();
14931
14646
  var _useState = React.useState([]),
@@ -14958,7 +14673,6 @@ var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function
14958
14673
  });
14959
14674
  return /*#__PURE__*/React__default["default"].createElement(ToastContainerWrapper, {
14960
14675
  pointerEvents: "box-none",
14961
- position: position,
14962
14676
  style: style
14963
14677
  }, displayType === 'single' ? /*#__PURE__*/React__default["default"].createElement(SingleToastDisplay, {
14964
14678
  toastList: toastList,
@@ -14985,13 +14699,16 @@ var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function
14985
14699
  });
14986
14700
  ToastContainer.displayName = 'ToastContainer';
14987
14701
 
14702
+ var ToastContext = /*#__PURE__*/React.createContext({});
14703
+ var ToastConfigContext = /*#__PURE__*/React.createContext({});
14704
+ var useToast = function useToast() {
14705
+ return React.useContext(ToastContext);
14706
+ };
14707
+
14988
14708
  var ToastProvider = function ToastProvider(_ref) {
14989
14709
  var children = _ref.children,
14990
14710
  _ref$displayType = _ref.displayType,
14991
- displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType,
14992
- _position = _ref.position;
14993
- var position = _position === undefined ? 'bottom' : _position;
14994
- useDeprecation("Toast's position prop is deprecated and will be removed in the next major release.\nPlease remove it.", _position !== undefined);
14711
+ displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType;
14995
14712
  var toastRef = React.useRef(null);
14996
14713
  // @ts-expect-error: TODO: @tungv Fix this type error
14997
14714
  var _useState = React.useState(null),
@@ -15005,10 +14722,9 @@ var ToastProvider = function ToastProvider(_ref) {
15005
14722
  }, []);
15006
14723
  var config = React.useMemo(function () {
15007
14724
  return {
15008
- displayType: displayType,
15009
- position: position
14725
+ displayType: displayType
15010
14726
  };
15011
- }, [displayType, position]);
14727
+ }, [displayType]);
15012
14728
  return /*#__PURE__*/React__default["default"].createElement(ToastContext.Provider, {
15013
14729
  value: refState
15014
14730
  }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
@@ -15019,8 +14735,7 @@ var ToastProvider = function ToastProvider(_ref) {
15019
14735
  value: config
15020
14736
  }, /*#__PURE__*/React__default["default"].createElement(ToastContainer, {
15021
14737
  ref: toastRef,
15022
- displayType: displayType,
15023
- position: position
14738
+ displayType: displayType
15024
14739
  }))));
15025
14740
  };
15026
14741
 
@@ -16127,18 +15842,12 @@ var SectionHeading = function SectionHeading(_ref) {
16127
15842
  var icon = _ref.icon,
16128
15843
  text = _ref.text,
16129
15844
  rightChildren = _ref.rightChildren,
16130
- _ref$fontSize = _ref.fontSize,
16131
- fontSize = _ref$fontSize === void 0 ? 'large' : _ref$fontSize,
16132
15845
  _ref$intent = _ref.intent,
16133
15846
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
16134
- _ref$fontWeight = _ref.fontWeight,
16135
- fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
16136
15847
  _ref$size = _ref.size,
16137
15848
  size = _ref$size === void 0 ? 'medium' : _ref$size,
16138
15849
  style = _ref.style,
16139
15850
  testID = _ref.testID;
16140
- useDeprecation("SectionHeading's fontSize prop is deprecated and will be removed in the next major release, please remove it.", fontSize !== undefined);
16141
- useDeprecation("SectionHeading's fontWeight prop is deprecated and will be removed in the next major release, please remove it.", fontWeight !== undefined);
16142
15851
  return /*#__PURE__*/React__default["default"].createElement(StyledHeading, {
16143
15852
  themeSize: size,
16144
15853
  style: style,
@@ -17351,6 +17060,10 @@ var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
17351
17060
  return refs.current;
17352
17061
  };
17353
17062
 
17063
+ var isHeroIcon = function isHeroIcon(x) {
17064
+ return IconList.includes(x);
17065
+ };
17066
+
17354
17067
  var TabWithBadge = function TabWithBadge(_ref) {
17355
17068
  var config = _ref.config,
17356
17069
  tabItem = _ref.tabItem;
@@ -17771,17 +17484,14 @@ var StyledText = index$a(Typography.Caption)(function (_ref2) {
17771
17484
  };
17772
17485
  });
17773
17486
 
17774
- var _excluded$2 = ["content", "variant", "intent", "style", "testID"];
17487
+ var _excluded$2 = ["content", "intent", "style", "testID"];
17775
17488
  var Tag = function Tag(_ref) {
17776
17489
  var content = _ref.content,
17777
- _ref$variant = _ref.variant,
17778
- variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,
17779
17490
  _ref$intent = _ref.intent,
17780
17491
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
17781
17492
  style = _ref.style,
17782
17493
  testID = _ref.testID,
17783
17494
  nativeProps = _objectWithoutProperties(_ref, _excluded$2);
17784
- useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
17785
17495
  return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
17786
17496
  themeIntent: intent,
17787
17497
  style: style,
@@ -34341,7 +34051,6 @@ exports.Alert = Alert;
34341
34051
  exports.Attachment = Attachment;
34342
34052
  exports.Avatar = index$9;
34343
34053
  exports.Badge = Badge$1;
34344
- exports.BottomNavigation = BottomNavigation;
34345
34054
  exports.BottomSheet = BottomSheet$1;
34346
34055
  exports.Box = Box;
34347
34056
  exports.Button = CompoundButton;