@hero-design/rn 8.52.0 → 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 (182) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +26 -0
  3. package/es/index.js +399 -709
  4. package/lib/index.js +397 -708
  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/CardCarousel.tsx +1 -5
  32. package/src/components/Carousel/StyledCardCarousel.tsx +1 -16
  33. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +92 -174
  34. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +0 -4
  35. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +0 -1
  36. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1 -803
  37. package/src/components/Carousel/__tests__/index.spec.tsx +37 -47
  38. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +0 -8
  39. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  40. package/src/components/Checkbox/index.tsx +1 -13
  41. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
  42. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +0 -2
  43. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -1
  45. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +0 -15
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +0 -1
  48. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +0 -1
  49. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +309 -329
  50. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +0 -12
  51. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  52. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  53. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  54. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  55. package/src/components/Error/index.tsx +3 -20
  56. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  57. package/src/components/FAB/ActionGroup/index.tsx +1 -14
  58. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +0 -2
  59. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +0 -3
  60. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  61. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  62. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  63. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  64. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +0 -2
  65. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +0 -4
  66. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +0 -4
  67. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +0 -9
  68. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  69. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  70. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +0 -5
  71. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  72. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  73. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +0 -5
  74. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +0 -2
  75. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +0 -1
  76. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  77. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  78. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +0 -1
  79. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +0 -1
  80. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +0 -2
  81. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +0 -4
  82. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  83. package/src/components/SectionHeading/__tests__/index.spec.tsx +0 -1
  84. package/src/components/SectionHeading/index.tsx +32 -57
  85. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
  86. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -4
  87. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +128 -42
  88. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
  89. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -4
  90. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +96 -35
  91. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
  92. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  93. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +0 -1
  94. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +0 -24
  95. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  96. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  97. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +0 -3
  98. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  99. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +0 -4
  100. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  101. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +0 -5
  102. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  103. package/src/components/Tabs/__tests__/SceneView.spec.tsx +1 -1
  104. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +0 -4
  105. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +0 -3
  106. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +0 -1
  107. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +0 -2
  108. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
  109. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +0 -10
  110. package/src/components/Tag/index.tsx +0 -12
  111. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +0 -21
  112. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -17
  113. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +0 -2
  114. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +309 -330
  115. package/src/components/Toast/StyledToast.tsx +7 -9
  116. package/src/components/Toast/Toast.tsx +1 -4
  117. package/src/components/Toast/ToastContainer.tsx +2 -6
  118. package/src/components/Toast/ToastContext.ts +2 -5
  119. package/src/components/Toast/ToastProvider.tsx +2 -19
  120. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +12 -15
  121. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +0 -7
  122. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +6 -14
  123. package/src/components/Toast/types.ts +1 -5
  124. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +0 -3
  125. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +0 -8
  126. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +0 -16
  127. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +0 -19
  128. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +0 -10
  129. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +0 -13
  130. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +0 -8
  131. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +0 -11
  132. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +0 -20
  133. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +0 -20
  134. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +0 -23
  135. package/src/index.ts +0 -2
  136. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +0 -112
  137. package/src/theme/components/badge.ts +1 -28
  138. package/src/theme/components/button.ts +0 -24
  139. package/src/theme/components/cardCarousel.ts +1 -8
  140. package/src/theme/components/carousel.ts +1 -28
  141. package/src/theme/components/empty.ts +1 -23
  142. package/src/theme/components/error.ts +1 -32
  143. package/src/theme/components/fab.ts +2 -13
  144. package/src/theme/components/pinInput.ts +0 -32
  145. package/src/theme/components/success.ts +1 -23
  146. package/src/theme/components/tag.ts +1 -28
  147. package/src/theme/components/textInput.ts +0 -5
  148. package/src/theme/getTheme.ts +18 -21
  149. package/src/types.ts +0 -2
  150. package/types/components/Carousel/StyledCardCarousel.d.ts +1 -7
  151. package/types/components/Checkbox/index.d.ts +1 -6
  152. package/types/components/Error/index.d.ts +3 -9
  153. package/types/components/FAB/ActionGroup/index.d.ts +0 -5
  154. package/types/components/SectionHeading/index.d.ts +1 -11
  155. package/types/components/Tag/index.d.ts +1 -6
  156. package/types/components/Toast/StyledToast.d.ts +0 -2
  157. package/types/components/Toast/ToastContext.d.ts +2 -2
  158. package/types/components/Toast/ToastProvider.d.ts +1 -1
  159. package/types/components/Toast/index.d.ts +1 -1
  160. package/types/components/Toast/types.d.ts +1 -5
  161. package/types/index.d.ts +1 -2
  162. package/types/theme/components/badge.d.ts +0 -24
  163. package/types/theme/components/button.d.ts +0 -20
  164. package/types/theme/components/cardCarousel.d.ts +0 -10
  165. package/types/theme/components/carousel.d.ts +0 -24
  166. package/types/theme/components/empty.d.ts +0 -19
  167. package/types/theme/components/error.d.ts +0 -27
  168. package/types/theme/components/fab.d.ts +8 -19
  169. package/types/theme/components/pinInput.d.ts +0 -27
  170. package/types/theme/components/success.d.ts +0 -19
  171. package/types/theme/components/tag.d.ts +0 -24
  172. package/types/theme/components/textInput.d.ts +0 -5
  173. package/types/theme/getTheme.d.ts +18 -20
  174. package/types/types.d.ts +1 -2
  175. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +0 -60
  176. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +0 -413
  177. package/src/components/BottomNavigation/__tests__/index.spec.tsx +0 -97
  178. package/src/components/BottomNavigation/index.tsx +0 -166
  179. package/src/theme/components/bottomNavigation.ts +0 -27
  180. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
  181. package/types/components/BottomNavigation/index.d.ts +0 -45
  182. 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
 
@@ -2454,18 +2391,10 @@ var getCardCarouselTheme = function getCardCarouselTheme(theme) {
2454
2391
  var colors = {
2455
2392
  carouselItemBackground: theme.colors.defaultSurface
2456
2393
  };
2457
- var shadows = {
2458
- color: theme.shadows["default"].shadowColor,
2459
- offset: theme.shadows["default"].shadowOffset,
2460
- opacity: theme.shadows["default"].shadowOpacity,
2461
- radius: theme.shadows["default"].shadowRadius,
2462
- elevation: theme.shadows["default"].elevation
2463
- };
2464
2394
  var radii = {
2465
2395
  card: theme.radii.medium
2466
2396
  };
2467
2397
  return {
2468
- shadows: shadows,
2469
2398
  colors: colors,
2470
2399
  space: space,
2471
2400
  radii: radii
@@ -2633,20 +2562,10 @@ var getEmptyTheme = function getEmptyTheme(theme) {
2633
2562
  subduedText: theme.colors.mutedOnDefaultGlobalSurface,
2634
2563
  invertedSubduedText: theme.colors.onDarkGlobalSurface
2635
2564
  };
2636
- var fontSizes = {
2637
- title: theme.fontSizes.xxxlarge,
2638
- description: theme.fontSizes.xlarge
2639
- };
2640
- var fonts = {
2641
- title: theme.fonts.playful.semiBold,
2642
- description: theme.fonts.playful.regular
2643
- };
2644
2565
  return {
2645
- fontSizes: fontSizes,
2646
2566
  colors: colors,
2647
2567
  sizes: sizes,
2648
- space: space,
2649
- fonts: fonts
2568
+ space: space
2650
2569
  };
2651
2570
  };
2652
2571
 
@@ -2671,25 +2590,10 @@ var getErrorTheme = function getErrorTheme(theme) {
2671
2590
  fullScreenBackground: theme.colors.decorativePrimarySurface,
2672
2591
  inPageBackground: theme.colors.neutralGlobalSurface
2673
2592
  };
2674
- var fontSizes = {
2675
- title: theme.fontSizes.xxxlarge,
2676
- description: theme.fontSizes.xlarge
2677
- };
2678
- var fonts = {
2679
- title: theme.fonts.playful.semiBold,
2680
- description: theme.fonts.playful.regular
2681
- };
2682
- var lineHeight = {
2683
- title: theme.lineHeights.xxxlarge,
2684
- description: theme.lineHeights.xlarge
2685
- };
2686
2593
  return {
2687
- fontSizes: fontSizes,
2688
2594
  colors: colors,
2689
2595
  sizes: sizes,
2690
- space: space,
2691
- fonts: fonts,
2692
- lineHeight: lineHeight
2596
+ space: space
2693
2597
  };
2694
2598
  };
2695
2599
 
@@ -2746,10 +2650,10 @@ var getFABTheme = function getFABTheme(theme) {
2746
2650
  };
2747
2651
  return {
2748
2652
  radii: radii,
2749
- fonts: fonts,
2750
- fontSizes: fontSizes,
2751
2653
  colors: colors,
2752
2654
  sizes: sizes,
2655
+ fonts: fonts,
2656
+ fontSizes: fontSizes,
2753
2657
  lineHeights: lineHeights,
2754
2658
  shadows: shadows,
2755
2659
  space: space
@@ -2874,18 +2778,6 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2874
2778
  error: theme.colors.onErrorSurface,
2875
2779
  disabled: theme.colors.disabledOnDefaultGlobalSurface
2876
2780
  };
2877
- var fonts = {
2878
- cellText: theme.fonts.neutral.semiBold,
2879
- errorMessage: theme.fonts.neutral.regular
2880
- };
2881
- var fontSizes = {
2882
- cellText: theme.fontSizes.xxxxlarge,
2883
- errorMessage: theme.fontSizes.small
2884
- };
2885
- var lineHeights = {
2886
- cellText: theme.lineHeights.xxxxlarge,
2887
- errorMessage: theme.fontSizes.small
2888
- };
2889
2781
  var sizes = {
2890
2782
  cellWidth: theme.sizes.xxlarge,
2891
2783
  cellHeight: theme.sizes.xxxlarge,
@@ -2901,10 +2793,7 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2901
2793
  };
2902
2794
  return {
2903
2795
  borderWidths: borderWidths,
2904
- lineHeights: lineHeights,
2905
2796
  colors: colors,
2906
- fonts: fonts,
2907
- fontSizes: fontSizes,
2908
2797
  sizes: sizes,
2909
2798
  space: space,
2910
2799
  radii: radii
@@ -3163,20 +3052,10 @@ var getSuccessTheme = function getSuccessTheme(theme) {
3163
3052
  fullScreenBackground: theme.colors.decorativePrimarySurface,
3164
3053
  inPageBackground: theme.colors.neutralGlobalSurface
3165
3054
  };
3166
- var fontSizes = {
3167
- title: theme.fontSizes.xxxlarge,
3168
- description: theme.fontSizes.xlarge
3169
- };
3170
- var fonts = {
3171
- title: theme.fonts.playful.semiBold,
3172
- description: theme.fonts.playful.regular
3173
- };
3174
3055
  return {
3175
- fontSizes: fontSizes,
3176
3056
  colors: colors,
3177
3057
  sizes: sizes,
3178
- space: space,
3179
- fonts: fonts
3058
+ space: space
3180
3059
  };
3181
3060
  };
3182
3061
 
@@ -3297,15 +3176,6 @@ var getTagTheme = function getTagTheme(theme) {
3297
3176
  archivedBackground: theme.colors.archivedSurface,
3298
3177
  text: theme.colors.onDefaultGlobalSurface
3299
3178
  };
3300
- var fonts = {
3301
- "default": theme.fonts.neutral.semiBold
3302
- };
3303
- var fontSizes = {
3304
- "default": theme.fontSizes.small
3305
- };
3306
- var lineHeights = {
3307
- "default": theme.lineHeights.small
3308
- };
3309
3179
  var space = {
3310
3180
  horizontalPadding: theme.space.small,
3311
3181
  verticalPadding: theme.space.xsmall
@@ -3316,11 +3186,8 @@ var getTagTheme = function getTagTheme(theme) {
3316
3186
  return {
3317
3187
  borderWidths: borderWidths,
3318
3188
  colors: colors,
3319
- fonts: fonts,
3320
- fontSizes: fontSizes,
3321
3189
  space: space,
3322
- radii: radii,
3323
- lineHeights: lineHeights
3190
+ radii: radii
3324
3191
  };
3325
3192
  };
3326
3193
 
@@ -3384,12 +3251,7 @@ var getTextInputTheme = function getTextInputTheme(theme) {
3384
3251
  text: theme.fonts.neutral.regular
3385
3252
  };
3386
3253
  var fontSizes = {
3387
- text: theme.fontSizes.large,
3388
- labelInsideTextInput: theme.fontSizes.large,
3389
- error: theme.fontSizes.small,
3390
- maxLength: theme.fontSizes.small,
3391
- asteriskLabel: theme.fontSizes.large,
3392
- topLabel: theme.fontSizes.small
3254
+ text: theme.fontSizes.large
3393
3255
  };
3394
3256
  var borderWidths = {
3395
3257
  container: {
@@ -3691,7 +3553,6 @@ var getTheme$1 = function getTheme() {
3691
3553
  attachment: getAttachmentTheme(globalTheme),
3692
3554
  avatar: getAvatarTheme(globalTheme),
3693
3555
  badge: getBadgeTheme(globalTheme),
3694
- bottomNavigation: getBottomNavigationTheme(globalTheme),
3695
3556
  bottomSheet: getBottomSheetTheme(globalTheme),
3696
3557
  button: getButtonTheme(globalTheme),
3697
3558
  calendar: getCalendarTheme(globalTheme),
@@ -6735,7 +6596,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
6735
6596
  });
6736
6597
  });
6737
6598
 
6738
- var _excluded$A = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6599
+ var _excluded$z = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6739
6600
  var Text = function Text(_ref) {
6740
6601
  var children = _ref.children,
6741
6602
  _ref$fontSize = _ref.fontSize,
@@ -6748,7 +6609,7 @@ var Text = function Text(_ref) {
6748
6609
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6749
6610
  _ref$allowFontScaling = _ref.allowFontScaling,
6750
6611
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6751
- nativeProps = _objectWithoutProperties(_ref, _excluded$A);
6612
+ nativeProps = _objectWithoutProperties(_ref, _excluded$z);
6752
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.');
6753
6614
  return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
6754
6615
  themeFontSize: fontSize,
@@ -6778,7 +6639,7 @@ var StyledCaption = index$a(reactNative.Text)(function (_ref) {
6778
6639
  };
6779
6640
  });
6780
6641
 
6781
- var _excluded$z = ["children", "fontWeight", "intent", "allowFontScaling"];
6642
+ var _excluded$y = ["children", "fontWeight", "intent", "allowFontScaling"];
6782
6643
  var Caption = function Caption(_ref) {
6783
6644
  var children = _ref.children,
6784
6645
  _ref$fontWeight = _ref.fontWeight,
@@ -6787,7 +6648,7 @@ var Caption = function Caption(_ref) {
6787
6648
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6788
6649
  _ref$allowFontScaling = _ref.allowFontScaling,
6789
6650
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6790
- nativeProps = _objectWithoutProperties(_ref, _excluded$z);
6651
+ nativeProps = _objectWithoutProperties(_ref, _excluded$y);
6791
6652
  return /*#__PURE__*/React__default["default"].createElement(StyledCaption, _extends$1({}, nativeProps, {
6792
6653
  themeFontWeight: fontWeight,
6793
6654
  themeIntent: intent,
@@ -6806,14 +6667,14 @@ var StyledLabel$1 = index$a(reactNative.Text)(function (_ref) {
6806
6667
  };
6807
6668
  });
6808
6669
 
6809
- var _excluded$y = ["children", "intent", "allowFontScaling"];
6670
+ var _excluded$x = ["children", "intent", "allowFontScaling"];
6810
6671
  var Label = function Label(_ref) {
6811
6672
  var children = _ref.children,
6812
6673
  _ref$intent = _ref.intent,
6813
6674
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6814
6675
  _ref$allowFontScaling = _ref.allowFontScaling,
6815
6676
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6816
- nativeProps = _objectWithoutProperties(_ref, _excluded$y);
6677
+ nativeProps = _objectWithoutProperties(_ref, _excluded$x);
6817
6678
  return /*#__PURE__*/React__default["default"].createElement(StyledLabel$1, _extends$1({}, nativeProps, {
6818
6679
  themeIntent: intent,
6819
6680
  allowFontScaling: allowFontScaling
@@ -6834,7 +6695,7 @@ var StyledTitle$1 = index$a(reactNative.Text)(function (_ref) {
6834
6695
  };
6835
6696
  });
6836
6697
 
6837
- var _excluded$x = ["children", "intent", "allowFontScaling", "level", "typeface"];
6698
+ var _excluded$w = ["children", "intent", "allowFontScaling", "level", "typeface"];
6838
6699
  var Title = function Title(_ref) {
6839
6700
  var children = _ref.children,
6840
6701
  _ref$intent = _ref.intent,
@@ -6845,7 +6706,7 @@ var Title = function Title(_ref) {
6845
6706
  level = _ref$level === void 0 ? 'h1' : _ref$level,
6846
6707
  _ref$typeface = _ref.typeface,
6847
6708
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6848
- nativeProps = _objectWithoutProperties(_ref, _excluded$x);
6709
+ nativeProps = _objectWithoutProperties(_ref, _excluded$w);
6849
6710
  return /*#__PURE__*/React__default["default"].createElement(StyledTitle$1, _extends$1({}, nativeProps, {
6850
6711
  themeLevel: level,
6851
6712
  themeTypeface: typeface,
@@ -6880,7 +6741,7 @@ var StyledBody = index$a(reactNative.Text)(function (_ref) {
6880
6741
  };
6881
6742
  });
6882
6743
 
6883
- var _excluded$w = ["children", "intent", "allowFontScaling", "typeface", "variant"];
6744
+ var _excluded$v = ["children", "intent", "allowFontScaling", "typeface", "variant"];
6884
6745
  var Body = function Body(_ref) {
6885
6746
  var children = _ref.children,
6886
6747
  _ref$intent = _ref.intent,
@@ -6891,7 +6752,7 @@ var Body = function Body(_ref) {
6891
6752
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6892
6753
  _ref$variant = _ref.variant,
6893
6754
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
6894
- nativeProps = _objectWithoutProperties(_ref, _excluded$w);
6755
+ nativeProps = _objectWithoutProperties(_ref, _excluded$v);
6895
6756
  return /*#__PURE__*/React__default["default"].createElement(StyledBody, _extends$1({}, nativeProps, {
6896
6757
  themeTypeface: typeface,
6897
6758
  themeIntent: intent,
@@ -7436,10 +7297,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
7436
7297
  };
7437
7298
  });
7438
7299
 
7439
- var _excluded$v = ["style"];
7300
+ var _excluded$u = ["style"];
7440
7301
  var AnimatedIcon = function AnimatedIcon(_ref) {
7441
7302
  var style = _ref.style,
7442
- otherProps = _objectWithoutProperties(_ref, _excluded$v);
7303
+ otherProps = _objectWithoutProperties(_ref, _excluded$u);
7443
7304
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
7444
7305
  React.useEffect(function () {
7445
7306
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
@@ -7544,7 +7405,7 @@ var AccordionItem = function AccordionItem(_ref) {
7544
7405
  }, content));
7545
7406
  };
7546
7407
 
7547
- var _excluded$u = ["key"];
7408
+ var _excluded$t = ["key"];
7548
7409
  var Accordion = function Accordion(_ref) {
7549
7410
  var items = _ref.items,
7550
7411
  activeItemKey = _ref.activeItemKey,
@@ -7565,7 +7426,7 @@ var Accordion = function Accordion(_ref) {
7565
7426
  testID: testID
7566
7427
  }, items.map(function (_ref2, index) {
7567
7428
  var key = _ref2.key,
7568
- props = _objectWithoutProperties(_ref2, _excluded$u);
7429
+ props = _objectWithoutProperties(_ref2, _excluded$t);
7569
7430
  var open = _activeItemKey === key;
7570
7431
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
7571
7432
  key: key
@@ -7843,7 +7704,7 @@ var Avatar = function Avatar(_ref) {
7843
7704
  }));
7844
7705
  };
7845
7706
 
7846
- var isIOS = reactNative.Platform.OS === 'ios';
7707
+ reactNative.Platform.OS === 'ios';
7847
7708
  var isAndroid = reactNative.Platform.OS === 'android';
7848
7709
  function pick(keys, obj) {
7849
7710
  return keys.filter(function (key) {
@@ -8035,7 +7896,7 @@ var borderWidths = {
8035
7896
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8036
7897
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8037
7898
 
8038
- var _excluded$t = ["theme"];
7899
+ var _excluded$s = ["theme"];
8039
7900
  var getThemeValue = function getThemeValue(theme, key, props) {
8040
7901
  var propConfig = config[key];
8041
7902
  var propValue = props[key];
@@ -8062,18 +7923,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8062
7923
  var configKeys = Object.keys(config);
8063
7924
  var StyledBox = index$a(reactNative.View)(function (_ref5) {
8064
7925
  var theme = _ref5.theme,
8065
- otherProps = _objectWithoutProperties(_ref5, _excluded$t);
7926
+ otherProps = _objectWithoutProperties(_ref5, _excluded$s);
8066
7927
  var styleProps = pick(configKeys, otherProps);
8067
7928
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8068
7929
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8069
7930
  });
8070
7931
 
8071
- var _excluded$s = ["children", "style", "testID"];
7932
+ var _excluded$r = ["children", "style", "testID"];
8072
7933
  var Box = function Box(_ref) {
8073
7934
  var children = _ref.children,
8074
7935
  style = _ref.style,
8075
7936
  testID = _ref.testID,
8076
- otherProps = _objectWithoutProperties(_ref, _excluded$s);
7937
+ otherProps = _objectWithoutProperties(_ref, _excluded$r);
8077
7938
  return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
8078
7939
  style: style,
8079
7940
  testID: testID
@@ -8287,7 +8148,7 @@ var StyledStatus = index$a(reactNative.Animated.View)(function (_ref3) {
8287
8148
  };
8288
8149
  });
8289
8150
 
8290
- var _excluded$r = ["children", "visible", "intent", "style", "testID"];
8151
+ var _excluded$q = ["children", "visible", "intent", "style", "testID"];
8291
8152
  var Status = function Status(_ref) {
8292
8153
  var children = _ref.children,
8293
8154
  _ref$visible = _ref.visible,
@@ -8296,7 +8157,7 @@ var Status = function Status(_ref) {
8296
8157
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8297
8158
  style = _ref.style,
8298
8159
  testID = _ref.testID,
8299
- nativeProps = _objectWithoutProperties(_ref, _excluded$r);
8160
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
8300
8161
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
8301
8162
  opacity = _React$useRef.current;
8302
8163
  var isFirstRendering = React__default["default"].useRef(true);
@@ -8329,7 +8190,7 @@ var Status = function Status(_ref) {
8329
8190
  }));
8330
8191
  };
8331
8192
 
8332
- var _excluded$q = ["content", "visible", "max", "intent", "style", "testID"];
8193
+ var _excluded$p = ["content", "visible", "max", "intent", "style", "testID"];
8333
8194
  var DEFAULT_MAX_NUMBER = 99;
8334
8195
  var getPaddingState = function getPaddingState(content) {
8335
8196
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -8344,7 +8205,7 @@ var Badge = function Badge(_ref) {
8344
8205
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8345
8206
  style = _ref.style,
8346
8207
  testID = _ref.testID,
8347
- nativeProps = _objectWithoutProperties(_ref, _excluded$q);
8208
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
8348
8209
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
8349
8210
  opacity = _React$useRef.current;
8350
8211
  var isFirstRendering = React__default["default"].useRef(true);
@@ -8380,136 +8241,6 @@ var Badge$1 = Object.assign(Badge, {
8380
8241
  Status: Status
8381
8242
  });
8382
8243
 
8383
- var isHeroIcon = function isHeroIcon(x) {
8384
- return IconList.includes(x);
8385
- };
8386
-
8387
- var BottomNavigationTab = index$a(reactNative.View)(function (_ref) {
8388
- var themeVisibility = _ref.themeVisibility;
8389
- return {
8390
- flex: 1,
8391
- display: themeVisibility === false ? 'none' : 'flex'
8392
- };
8393
- });
8394
- var BottomNavigationContainer = index$a(reactNative.View)({
8395
- flex: 1,
8396
- overflow: 'hidden'
8397
- });
8398
- var ContentWrapper$2 = index$a(reactNative.View)({
8399
- flex: 1
8400
- });
8401
- var BottomBarWrapper = index$a(reactNative.View)(function (_ref2) {
8402
- var themeInsets = _ref2.themeInsets,
8403
- theme = _ref2.theme;
8404
- return {
8405
- height: theme.__hd__.bottomNavigation.sizes.height + themeInsets.bottom,
8406
- paddingBottom: themeInsets.bottom,
8407
- paddingLeft: Math.max(themeInsets.left, themeInsets.right),
8408
- paddingRight: Math.max(themeInsets.left, themeInsets.right),
8409
- backgroundColor: theme.__hd__.bottomNavigation.colors.background,
8410
- shadowColor: theme.__hd__.bottomNavigation.colors.shadow,
8411
- shadowOffset: theme.__hd__.bottomNavigation.shadows.offset,
8412
- shadowOpacity: theme.__hd__.bottomNavigation.shadows.opacity,
8413
- shadowRadius: theme.__hd__.bottomNavigation.shadows.radius,
8414
- elevation: theme.__hd__.bottomNavigation.shadows.elevation
8415
- };
8416
- });
8417
- var BottomBar = index$a(reactNative.View)({
8418
- flex: 1,
8419
- flexDirection: 'row',
8420
- overflow: 'hidden',
8421
- alignItems: 'center'
8422
- });
8423
- var BottomBarItem = index$a(reactNative.View)({
8424
- flex: 1,
8425
- alignItems: 'center'
8426
- });
8427
- var StyledBottomBarText = index$a(Typography.Caption)(function (_ref3) {
8428
- var theme = _ref3.theme;
8429
- return {
8430
- marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
8431
- };
8432
- });
8433
-
8434
- var _excluded$p = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8435
- var getInactiveIcon = function getInactiveIcon(icon) {
8436
- var inactiveIcon = "".concat(icon, "-outlined");
8437
- return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
8438
- };
8439
- var BottomNavigation = function BottomNavigation(_ref) {
8440
- var onTabPress = _ref.onTabPress,
8441
- _ref$renderActiveTabO = _ref.renderActiveTabOnly,
8442
- renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
8443
- selectedTabKey = _ref.selectedTabKey,
8444
- tabs = _ref.tabs,
8445
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
8446
- useDeprecation('BottomNavigation is deprecated and will be removed in the next major release. Please remove it.');
8447
- var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
8448
- /**
8449
- * List of loaded tabs, tabs will be loaded when navigated to.
8450
- */
8451
- var _React$useState = React__default["default"].useState([selectedTabKey]),
8452
- _React$useState2 = _slicedToArray(_React$useState, 2),
8453
- loaded = _React$useState2[0],
8454
- setLoaded = _React$useState2[1];
8455
- if (!loaded.includes(selectedTabKey)) {
8456
- // Set the current tab to be loaded if it was not loaded before
8457
- setLoaded(function (loadedState) {
8458
- return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
8459
- });
8460
- }
8461
- return /*#__PURE__*/React__default["default"].createElement(BottomNavigationContainer, nativeProps, /*#__PURE__*/React__default["default"].createElement(ContentWrapper$2, null, tabs.map(function (tab) {
8462
- var key = tab.key,
8463
- component = tab.component,
8464
- testID = tab.testID;
8465
- var active = selectedTabKey === key;
8466
- if (renderActiveTabOnly && !active) {
8467
- return null;
8468
- }
8469
- if (!loaded.includes(key)) {
8470
- // Don't render a screen if we've never navigated to it
8471
- return null;
8472
- }
8473
- return /*#__PURE__*/React__default["default"].createElement(BottomNavigationTab, {
8474
- key: key,
8475
- testID: testID ? "route-screen-".concat(testID) : undefined,
8476
- pointerEvents: active ? 'auto' : 'none',
8477
- accessibilityElementsHidden: !active,
8478
- importantForAccessibility: active ? 'auto' : 'no-hide-descendants',
8479
- collapsable: false,
8480
- removeClippedSubviews:
8481
- // On iOS, set removeClippedSubviews to true only when not focused
8482
- // This is an workaround for a bug where the clipped view never re-appears.
8483
- isIOS ? selectedTabKey !== key : true,
8484
- themeVisibility: active
8485
- }, component);
8486
- })), /*#__PURE__*/React__default["default"].createElement(BottomBarWrapper, {
8487
- themeInsets: insets
8488
- }, /*#__PURE__*/React__default["default"].createElement(BottomBar, null, tabs.map(function (tab) {
8489
- var key = tab.key,
8490
- icon = tab.icon,
8491
- title = tab.title,
8492
- testID = tab.testID;
8493
- var active = selectedTabKey === key;
8494
- var inactiveIcon = getInactiveIcon(icon);
8495
- return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
8496
- key: key,
8497
- onPress: function onPress() {
8498
- return onTabPress(key);
8499
- },
8500
- testID: testID
8501
- }, /*#__PURE__*/React__default["default"].createElement(BottomBarItem, null, /*#__PURE__*/React__default["default"].createElement(Icon, {
8502
- icon: active ? icon : inactiveIcon,
8503
- intent: active ? 'primary' : 'text',
8504
- testID: "hero-icon-".concat(icon)
8505
- }), !!title && /*#__PURE__*/React__default["default"].createElement(StyledBottomBarText, {
8506
- fontWeight: "semi-bold",
8507
- intent: active ? 'primary' : 'body',
8508
- numberOfLines: 1
8509
- }, title)));
8510
- }))));
8511
- };
8512
-
8513
8244
  var BottomSheetContext = /*#__PURE__*/React.createContext({});
8514
8245
 
8515
8246
  var StyledDivider = index$a(reactNative.View)(function (_ref) {
@@ -9163,6 +8894,332 @@ var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
9163
8894
  }));
9164
8895
  };
9165
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
+
9166
9223
  var BottomSheet = function BottomSheet(_ref) {
9167
9224
  var open = _ref.open,
9168
9225
  header = _ref.header,
@@ -9239,7 +9296,7 @@ var BottomSheet = function BottomSheet(_ref) {
9239
9296
  setInternalShowDivider: setInternalShowDivider
9240
9297
  };
9241
9298
  }, [setInternalShowDivider]);
9242
- return /*#__PURE__*/React__default["default"].createElement(reactNative.Modal, {
9299
+ return /*#__PURE__*/React__default["default"].createElement(ModalWrapper, {
9243
9300
  visible: visible,
9244
9301
  onRequestClose: onRequestClose,
9245
9302
  transparent: true,
@@ -11928,12 +11985,12 @@ var Indicator = index$a(reactNative.View)(function (_ref2) {
11928
11985
  };
11929
11986
  });
11930
11987
 
11931
- var _excluded$l = ["intent", "children"];
11988
+ var _excluded$k = ["intent", "children"];
11932
11989
  var DataCard = function DataCard(_ref) {
11933
11990
  var _ref$intent = _ref.intent,
11934
11991
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
11935
11992
  children = _ref.children,
11936
- nativeProps = _objectWithoutProperties(_ref, _excluded$l);
11993
+ nativeProps = _objectWithoutProperties(_ref, _excluded$k);
11937
11994
  return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
11938
11995
  themeIntent: intent,
11939
11996
  testID: "data-card-indicator"
@@ -11951,11 +12008,11 @@ var StyledCard$1 = index$a(reactNative.View)(function (_ref) {
11951
12008
  });
11952
12009
  });
11953
12010
 
11954
- var _excluded$k = ["intent", "children"];
12011
+ var _excluded$j = ["intent", "children"];
11955
12012
  var Card = function Card(_ref) {
11956
12013
  var intent = _ref.intent,
11957
12014
  children = _ref.children,
11958
- nativeProps = _objectWithoutProperties(_ref, _excluded$k);
12015
+ nativeProps = _objectWithoutProperties(_ref, _excluded$j);
11959
12016
  return /*#__PURE__*/React__default["default"].createElement(StyledCard$1, _extends$1({}, nativeProps, {
11960
12017
  themeIntent: intent
11961
12018
  }), children);
@@ -12040,20 +12097,8 @@ var StyledCard = index$a(Card$1)(function (_ref2) {
12040
12097
  flex: 1
12041
12098
  };
12042
12099
  });
12043
- var StyledShadow = index$a(reactNative.View)(function (_ref3) {
12100
+ var StyledItemWrapper = index$a(reactNative.View)(function (_ref3) {
12044
12101
  var theme = _ref3.theme;
12045
- return {
12046
- borderRadius: theme.__hd__.cardCarousel.radii.card,
12047
- shadowColor: theme.__hd__.cardCarousel.shadows.color,
12048
- shadowOffset: theme.__hd__.cardCarousel.shadows.offset,
12049
- shadowRadius: theme.__hd__.cardCarousel.shadows.radius,
12050
- shadowOpacity: theme.__hd__.cardCarousel.shadows.opacity,
12051
- elevation: theme.__hd__.cardCarousel.shadows.elevation,
12052
- flex: 1
12053
- };
12054
- });
12055
- var StyledItemWrapper = index$a(reactNative.View)(function (_ref4) {
12056
- var theme = _ref4.theme;
12057
12102
  return {
12058
12103
  padding: theme.__hd__.cardCarousel.space.carouselItemSpacing
12059
12104
  };
@@ -12174,7 +12219,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12174
12219
  style: {
12175
12220
  width: itemWidth
12176
12221
  }
12177
- }, /*#__PURE__*/React__default["default"].createElement(StyledShadow, null, /*#__PURE__*/React__default["default"].createElement(StyledCard, null, item)));
12222
+ }, /*#__PURE__*/React__default["default"].createElement(StyledCard, null, item));
12178
12223
  }, [itemWidth]);
12179
12224
  var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
12180
12225
  return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$8, {
@@ -12232,7 +12277,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12232
12277
  });
12233
12278
  CardCarousel.displayName = 'CardCarousel';
12234
12279
 
12235
- var _excluded$j = ["rounded", "size", "testID", "style"];
12280
+ var _excluded$i = ["rounded", "size", "testID", "style"];
12236
12281
  var Image = function Image(_ref) {
12237
12282
  var _ref$rounded = _ref.rounded,
12238
12283
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -12240,7 +12285,7 @@ var Image = function Image(_ref) {
12240
12285
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
12241
12286
  testID = _ref.testID,
12242
12287
  style = _ref.style,
12243
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$j);
12288
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$i);
12244
12289
  var theme = useTheme();
12245
12290
  var imageSize = theme.__hd__.image.sizes[size];
12246
12291
  return /*#__PURE__*/React__default["default"].createElement(reactNative.Image, _extends$1({
@@ -12360,7 +12405,7 @@ var CarouselItem = function CarouselItem(_ref) {
12360
12405
  }, heading), body ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, null, body) : null));
12361
12406
  };
12362
12407
 
12363
- var _excluded$i = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12408
+ var _excluded$h = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12364
12409
  function useStateFromProp(initialValue) {
12365
12410
  var _useState = React.useState(initialValue),
12366
12411
  _useState2 = _slicedToArray(_useState, 2),
@@ -12387,7 +12432,7 @@ var Carousel = function Carousel(_ref) {
12387
12432
  testID = _ref.testID,
12388
12433
  _ref$pageControlPosit = _ref.pageControlPosition,
12389
12434
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
12390
- nativeProps = _objectWithoutProperties(_ref, _excluded$i);
12435
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
12391
12436
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
12392
12437
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
12393
12438
  var theme = useTheme();
@@ -12582,7 +12627,7 @@ var StyledIcon$1 = index$a(Icon)(function (_ref4) {
12582
12627
  };
12583
12628
  });
12584
12629
 
12585
- var _excluded$h = ["label", "variant", "selected", "icon", "onPress"];
12630
+ var _excluded$g = ["label", "variant", "selected", "icon", "onPress"];
12586
12631
  var Chip = function Chip(_ref) {
12587
12632
  var label = _ref.label,
12588
12633
  _ref$variant = _ref.variant,
@@ -12591,7 +12636,7 @@ var Chip = function Chip(_ref) {
12591
12636
  selected = _ref$selected === void 0 ? false : _ref$selected,
12592
12637
  icon = _ref.icon,
12593
12638
  onPress = _ref.onPress,
12594
- otherProps = _objectWithoutProperties(_ref, _excluded$h);
12639
+ otherProps = _objectWithoutProperties(_ref, _excluded$g);
12595
12640
  var internalIcon = React__default["default"].useMemo(function () {
12596
12641
  if (icon && variant === 'filled') {
12597
12642
  return icon;
@@ -12678,8 +12723,6 @@ var getThemeState = function getThemeState(_ref) {
12678
12723
  var Checkbox = function Checkbox(_ref2) {
12679
12724
  var checked = _ref2.checked,
12680
12725
  description = _ref2.description,
12681
- _ref2$withBorder = _ref2.withBorder,
12682
- withBorder = _ref2$withBorder === void 0 ? false : _ref2$withBorder,
12683
12726
  _ref2$disabled = _ref2.disabled,
12684
12727
  disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
12685
12728
  onPress = _ref2.onPress,
@@ -12687,7 +12730,6 @@ var Checkbox = function Checkbox(_ref2) {
12687
12730
  testID = _ref2.testID,
12688
12731
  _ref2$readonly = _ref2.readonly,
12689
12732
  readonly = _ref2$readonly === void 0 ? false : _ref2$readonly;
12690
- 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);
12691
12733
  var themeState = getThemeState({
12692
12734
  disabled: disabled,
12693
12735
  readonly: readonly
@@ -12838,7 +12880,7 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
12838
12880
  };
12839
12881
  });
12840
12882
 
12841
- 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"];
12842
12884
  var getState$1 = function getState(_ref) {
12843
12885
  var disabled = _ref.disabled,
12844
12886
  error = _ref.error,
@@ -12891,7 +12933,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
12891
12933
  allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
12892
12934
  _ref2$variant = _ref2.variant,
12893
12935
  variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
12894
- nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
12936
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
12895
12937
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
12896
12938
  var isEmptyValue = displayText.length === 0;
12897
12939
  var actualSuffix = loading ? 'loading' : suffix;
@@ -13436,11 +13478,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
13436
13478
  }))));
13437
13479
  };
13438
13480
 
13439
- var _excluded$f = ["variant"];
13481
+ var _excluded$e = ["variant"];
13440
13482
  var DatePicker = function DatePicker(_ref) {
13441
13483
  var _ref$variant = _ref.variant,
13442
13484
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
13443
- props = _objectWithoutProperties(_ref, _excluded$f);
13485
+ props = _objectWithoutProperties(_ref, _excluded$e);
13444
13486
  if (variant === 'calendar') {
13445
13487
  return /*#__PURE__*/React__default["default"].createElement(DatePickerCalendar, props);
13446
13488
  }
@@ -13792,332 +13834,6 @@ var Empty = function Empty(_ref) {
13792
13834
  }, description));
13793
13835
  };
13794
13836
 
13795
- var customAlphabet = function customAlphabet(alphabet) {
13796
- var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
13797
- return function () {
13798
- var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
13799
- var id = '';
13800
- var i = size;
13801
- while (i--) {
13802
- id += alphabet[Math.random() * alphabet.length | 0];
13803
- }
13804
- return id;
13805
- };
13806
- };
13807
-
13808
- var ACTIONS;
13809
- (function (ACTIONS) {
13810
- ACTIONS[ACTIONS["REGISTER_HOST"] = 0] = "REGISTER_HOST";
13811
- ACTIONS[ACTIONS["DEREGISTER_HOST"] = 1] = "DEREGISTER_HOST";
13812
- ACTIONS[ACTIONS["ADD_UPDATE_PORTAL"] = 2] = "ADD_UPDATE_PORTAL";
13813
- ACTIONS[ACTIONS["REMOVE_PORTAL"] = 3] = "REMOVE_PORTAL";
13814
- })(ACTIONS || (ACTIONS = {}));
13815
- var INITIAL_STATE = {};
13816
-
13817
- var PortalStateContext = /*#__PURE__*/React.createContext(null);
13818
- var PortalDispatchContext = /*#__PURE__*/React.createContext(null);
13819
-
13820
- var usePortal = function usePortal() {
13821
- var hostName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'root';
13822
- var dispatch = React.useContext(PortalDispatchContext);
13823
- if (dispatch === null) {
13824
- throw new Error("You must add 'PortalProvider' to the root component.");
13825
- }
13826
- var registerHost = React.useCallback(function () {
13827
- dispatch({
13828
- type: ACTIONS.REGISTER_HOST,
13829
- hostName: hostName
13830
- });
13831
- }, []);
13832
- var deregisterHost = React.useCallback(function () {
13833
- dispatch({
13834
- type: ACTIONS.DEREGISTER_HOST,
13835
- hostName: hostName
13836
- });
13837
- }, []);
13838
- var addUpdatePortal = React.useCallback(function (name, node) {
13839
- dispatch({
13840
- type: ACTIONS.ADD_UPDATE_PORTAL,
13841
- hostName: hostName,
13842
- portalName: name,
13843
- node: node
13844
- });
13845
- }, []);
13846
- var removePortal = React.useCallback(function (name) {
13847
- dispatch({
13848
- type: ACTIONS.REMOVE_PORTAL,
13849
- hostName: hostName,
13850
- portalName: name
13851
- });
13852
- }, []);
13853
- return {
13854
- registerHost: registerHost,
13855
- deregisterHost: deregisterHost,
13856
- addPortal: addUpdatePortal,
13857
- updatePortal: addUpdatePortal,
13858
- removePortal: removePortal
13859
- };
13860
- };
13861
-
13862
- var usePortalState = function usePortalState(hostName) {
13863
- var state = React.useContext(PortalStateContext);
13864
- if (state === null) {
13865
- throw new Error("You must add 'PortalProvider' to the root component.");
13866
- }
13867
- return state[hostName] || [];
13868
- };
13869
-
13870
- var PortalHostComponent = function PortalHostComponent(_ref) {
13871
- var name = _ref.name;
13872
- var state = usePortalState(name);
13873
- var _usePortal = usePortal(name),
13874
- registerHost = _usePortal.registerHost,
13875
- deregisterHost = _usePortal.deregisterHost;
13876
- React.useEffect(function () {
13877
- registerHost();
13878
- return function () {
13879
- deregisterHost();
13880
- };
13881
- }, []);
13882
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, state.map(function (item) {
13883
- return item.node;
13884
- }));
13885
- };
13886
- var PortalHost = /*#__PURE__*/React.memo(PortalHostComponent);
13887
- PortalHost.displayName = 'PortalHost';
13888
-
13889
- var registerHostIfNotExist = function registerHostIfNotExist(state, hostName) {
13890
- if (!(hostName in state)) {
13891
- return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, []));
13892
- }
13893
- return _objectSpread2({}, state);
13894
- };
13895
- var deregisterHost = function deregisterHost(state, hostName) {
13896
- return _objectSpread2({}, omit([hostName], state));
13897
- };
13898
- var addUpdatePortal = function addUpdatePortal(state, hostName, portalName, node) {
13899
- var newState = registerHostIfNotExist(state, hostName);
13900
- var index = newState[hostName].findIndex(function (item) {
13901
- return item.name === portalName;
13902
- });
13903
- if (index !== -1) {
13904
- return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, newState[hostName].map(function (item, i) {
13905
- if (index === i) {
13906
- return _objectSpread2(_objectSpread2({}, item), {}, {
13907
- node: node
13908
- });
13909
- }
13910
- return item;
13911
- })));
13912
- }
13913
- return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, [].concat(_toConsumableArray(newState[hostName]), [{
13914
- name: portalName,
13915
- node: node
13916
- }])));
13917
- };
13918
- var removePortal = function removePortal(state, hostName, portalName) {
13919
- if (!(hostName in state)) {
13920
- return _objectSpread2({}, state);
13921
- }
13922
- return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, state[hostName].filter(function (item) {
13923
- return item.name !== portalName;
13924
- })));
13925
- };
13926
- var reducer = function reducer(state, action) {
13927
- var type = action.type;
13928
- switch (type) {
13929
- case ACTIONS.REGISTER_HOST:
13930
- return registerHostIfNotExist(state, action.hostName);
13931
- case ACTIONS.DEREGISTER_HOST:
13932
- return deregisterHost(state, action.hostName);
13933
- case ACTIONS.ADD_UPDATE_PORTAL:
13934
- return addUpdatePortal(state, action.hostName, action.portalName, action.node);
13935
- case ACTIONS.REMOVE_PORTAL:
13936
- return removePortal(state, action.hostName, action.portalName);
13937
- default:
13938
- return _objectSpread2({}, state);
13939
- }
13940
- };
13941
-
13942
- var PortalProviderComponent = function PortalProviderComponent(_ref) {
13943
- var _ref$rootHostName = _ref.rootHostName,
13944
- rootHostName = _ref$rootHostName === void 0 ? 'root' : _ref$rootHostName,
13945
- children = _ref.children;
13946
- var _useReducer = React.useReducer(reducer, INITIAL_STATE),
13947
- _useReducer2 = _slicedToArray(_useReducer, 2),
13948
- state = _useReducer2[0],
13949
- dispatch = _useReducer2[1];
13950
- return /*#__PURE__*/React__default["default"].createElement(PortalDispatchContext.Provider, {
13951
- value: dispatch
13952
- }, /*#__PURE__*/React__default["default"].createElement(PortalStateContext.Provider, {
13953
- value: state
13954
- }, children, /*#__PURE__*/React__default["default"].createElement(PortalHost, {
13955
- name: rootHostName
13956
- })));
13957
- };
13958
- var PortalProvider = /*#__PURE__*/React.memo(PortalProviderComponent);
13959
- PortalProvider.displayName = 'PortalProvider';
13960
-
13961
- var nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
13962
- var PortalComponent = function PortalComponent(_ref) {
13963
- var name = _ref.name,
13964
- hostName = _ref.hostName,
13965
- children = _ref.children,
13966
- theme = _ref.theme;
13967
- var defaultTheme = useTheme();
13968
- var _usePortal = usePortal(hostName),
13969
- addUpdatePortal = _usePortal.addPortal,
13970
- removePortal = _usePortal.removePortal;
13971
- var nameOrRandom = React.useMemo(function () {
13972
- return name || nanoid();
13973
- }, [name]);
13974
- var ChildrenComponent = React.useMemo(function () {
13975
- return /*#__PURE__*/React__default["default"].createElement(ThemeProvider, {
13976
- theme: theme || defaultTheme
13977
- }, children);
13978
- }, [theme, children, defaultTheme]);
13979
- React.useLayoutEffect(function () {
13980
- addUpdatePortal(nameOrRandom, ChildrenComponent);
13981
- return function () {
13982
- removePortal(nameOrRandom);
13983
- };
13984
- }, [addUpdatePortal]);
13985
- React.useLayoutEffect(function () {
13986
- addUpdatePortal(nameOrRandom, ChildrenComponent);
13987
- }, [ChildrenComponent]);
13988
- return null;
13989
- };
13990
- var Portal = /*#__PURE__*/React.memo(PortalComponent);
13991
- Portal.displayName = 'Portal';
13992
- var Portal$1 = Object.assign(Portal, {
13993
- Provider: PortalProvider,
13994
- Host: PortalHost
13995
- });
13996
-
13997
- var _excluded$e = ["visible"];
13998
- var DEFAULT_BACKDROP_OPACITY = 0.4;
13999
- var DEFAULT_ANIMATION_CONFIG = {
14000
- easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
14001
- useNativeDriver: reactNative.Platform.OS !== 'web',
14002
- duration: 400
14003
- };
14004
- var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14005
- var children = _ref.children,
14006
- onShow = _ref.onShow,
14007
- onRequestClose = _ref.onRequestClose,
14008
- testID = _ref.testID,
14009
- _ref$animationType = _ref.animationType,
14010
- animationType = _ref$animationType === void 0 ? 'none' : _ref$animationType,
14011
- _ref$transparent = _ref.transparent,
14012
- transparent = _ref$transparent === void 0 ? false : _ref$transparent,
14013
- onDismiss = _ref.onDismiss;
14014
- var theme = useTheme();
14015
- var animatedBackdropValue = React.useRef(new reactNative.Animated.Value(0)).current;
14016
- var animatedModalValue = React.useRef(new reactNative.Animated.Value(0)).current;
14017
- // Show or hide the backdrop and modal content
14018
- var animateBackdropAndContent = React.useCallback(function (_ref2) {
14019
- var toValue = _ref2.toValue,
14020
- callback = _ref2.callback;
14021
- if (animationType !== 'none') {
14022
- // Backdrop animation
14023
- if (!transparent) {
14024
- reactNative.Animated.timing(animatedBackdropValue, _objectSpread2({
14025
- toValue: toValue
14026
- }, DEFAULT_ANIMATION_CONFIG)).start();
14027
- }
14028
- // Modal content animation
14029
- reactNative.Animated.timing(animatedModalValue, _objectSpread2({
14030
- toValue: toValue
14031
- }, DEFAULT_ANIMATION_CONFIG)).start(callback);
14032
- } else {
14033
- callback === null || callback === void 0 || callback();
14034
- }
14035
- }, [animationType, onShow, transparent]);
14036
- var backdropOpacityAnimation = animatedBackdropValue.interpolate({
14037
- inputRange: [0, 1],
14038
- outputRange: [0, DEFAULT_BACKDROP_OPACITY]
14039
- });
14040
- var modalAnimation = animatedModalValue.interpolate({
14041
- inputRange: [0, 1],
14042
- outputRange: animationType === 'slide' ? [reactNative.Dimensions.get('window').height, 0] : [0, 1]
14043
- });
14044
- React.useImperativeHandle(ref, function () {
14045
- return {
14046
- show: function show() {
14047
- animateBackdropAndContent({
14048
- toValue: 1,
14049
- callback: onShow
14050
- });
14051
- },
14052
- hide: function hide(wrapperCallback) {
14053
- animateBackdropAndContent({
14054
- toValue: 0,
14055
- callback: function callback() {
14056
- if (reactNative.Platform.OS === 'ios') {
14057
- onDismiss === null || onDismiss === void 0 || onDismiss();
14058
- }
14059
- wrapperCallback();
14060
- }
14061
- });
14062
- }
14063
- };
14064
- }, [onDismiss, onShow, animateBackdropAndContent]);
14065
- // Back button handler
14066
- React.useEffect(function () {
14067
- var backHandler = reactNative.BackHandler.addEventListener('hardwareBackPress', function () {
14068
- onRequestClose === null || onRequestClose === void 0 || onRequestClose();
14069
- return true;
14070
- });
14071
- return function () {
14072
- return backHandler.remove();
14073
- };
14074
- }, [onRequestClose]);
14075
- return /*#__PURE__*/React__default["default"].createElement(Portal$1, null, /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
14076
- style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
14077
- backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
14078
- opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
14079
- })
14080
- }), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
14081
- testID: testID,
14082
- style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
14083
- opacity: animationType === 'fade' ? modalAnimation : 1,
14084
- transform: [{
14085
- translateY: animationType === 'slide' ? modalAnimation : 0
14086
- }]
14087
- })
14088
- }, children));
14089
- });
14090
- var ModalWrapper = function ModalWrapper(_ref3) {
14091
- var _ref3$visible = _ref3.visible,
14092
- visible = _ref3$visible === void 0 ? true : _ref3$visible,
14093
- props = _objectWithoutProperties(_ref3, _excluded$e);
14094
- var modalRef = React.useRef(null);
14095
- var _useState = React.useState(visible),
14096
- _useState2 = _slicedToArray(_useState, 2),
14097
- internalVisible = _useState2[0],
14098
- setInternalVisible = _useState2[1];
14099
- React.useEffect(function () {
14100
- if (visible) {
14101
- setInternalVisible(true);
14102
- } else {
14103
- var _modalRef$current;
14104
- // Wait for animation to finish before hiding the modal
14105
- (_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 || _modalRef$current.hide(function () {
14106
- return setInternalVisible(false);
14107
- });
14108
- }
14109
- }, [visible]);
14110
- React.useEffect(function () {
14111
- if (internalVisible) {
14112
- var _modalRef$current2;
14113
- (_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
14114
- }
14115
- }, [internalVisible]);
14116
- return internalVisible ? /*#__PURE__*/React__default["default"].createElement(Modal, _extends$1({
14117
- ref: modalRef
14118
- }, props)) : null;
14119
- };
14120
-
14121
13837
  var StyledErrorModal = index$a(ModalWrapper)({
14122
13838
  height: '100%',
14123
13839
  width: '100%'
@@ -14201,7 +13917,7 @@ var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
14201
13917
  });
14202
13918
 
14203
13919
  var _excluded$d = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14204
- _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
13920
+ _excluded2 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
14205
13921
  var renderImage$1 = function renderImage(image) {
14206
13922
  if ( /*#__PURE__*/React.isValidElement(image)) {
14207
13923
  return /*#__PURE__*/React__default["default"].cloneElement(image, {
@@ -14255,9 +13971,7 @@ var ErrorPage = function ErrorPage(_ref) {
14255
13971
  * @return {*} {ReactElement}
14256
13972
  */
14257
13973
  var Error$1 = function Error(_ref2) {
14258
- var _ref2$visible = _ref2.visible,
14259
- visible = _ref2$visible === void 0 ? true : _ref2$visible,
14260
- _ref2$variant = _ref2.variant,
13974
+ var _ref2$variant = _ref2.variant,
14261
13975
  variant = _ref2$variant === void 0 ? 'in-page' : _ref2$variant,
14262
13976
  title = _ref2.title,
14263
13977
  description = _ref2.description,
@@ -14268,8 +13982,7 @@ var Error$1 = function Error(_ref2) {
14268
13982
  secondaryCtaText = _ref2.secondaryCtaText,
14269
13983
  onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
14270
13984
  nativeProps = _objectWithoutProperties(_ref2, _excluded2);
14271
- useDeprecation("Visible prop is deprecated. Use conditional rendering instead", visible);
14272
- var _useState = React.useState(visible),
13985
+ var _useState = React.useState(true),
14273
13986
  _useState2 = _slicedToArray(_useState, 2),
14274
13987
  isVisible = _useState2[0],
14275
13988
  setIsVisible = _useState2[1];
@@ -14286,9 +13999,6 @@ var Error$1 = function Error(_ref2) {
14286
13999
  }
14287
14000
  setCtaPressed(null);
14288
14001
  }, [ctaPressed, onCtaPress, onSecondaryCtaPress]);
14289
- React.useEffect(function () {
14290
- setIsVisible(visible);
14291
- }, [visible]);
14292
14002
  // These useEffect lines prevents race condition error when callback contains navigation logic
14293
14003
  React.useEffect(function () {
14294
14004
  if (ctaPressed) {
@@ -14645,8 +14355,7 @@ var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
14645
14355
  });
14646
14356
 
14647
14357
  var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14648
- var headerTitle = _ref.headerTitle,
14649
- onPress = _ref.onPress,
14358
+ var onPress = _ref.onPress,
14650
14359
  active = _ref.active,
14651
14360
  style = _ref.style,
14652
14361
  items = _ref.items,
@@ -14655,7 +14364,6 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14655
14364
  onBackdropPress = _ref.onBackdropPress,
14656
14365
  _ref$fabIcon = _ref.fabIcon,
14657
14366
  fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon;
14658
- useDeprecation("FAB.ActionGroup's headerTitle prop will be removed in the next major release. Please remove it.", headerTitle !== undefined);
14659
14367
  var fabRef = React.useRef(null);
14660
14368
  var tranlateXAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
14661
14369
  React__default["default"].useImperativeHandle(ref, function () {
@@ -14750,12 +14458,11 @@ var index$6 = Object.assign(FAB, {
14750
14458
  });
14751
14459
 
14752
14460
  var ToastContainerWrapper = index$a(reactNative.View)(function (_ref) {
14753
- var theme = _ref.theme,
14754
- position = _ref.position;
14461
+ var theme = _ref.theme;
14755
14462
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
14756
14463
  paddingHorizontal: theme.__hd__.toast.space.wrapperVerticalPadding,
14757
14464
  paddingVertical: theme.__hd__.toast.space.wrapperHorizontalPadding,
14758
- flexDirection: position === 'bottom' ? 'column-reverse' : 'column',
14465
+ flexDirection: 'column-reverse',
14759
14466
  elevation: 9999
14760
14467
  });
14761
14468
  });
@@ -14808,15 +14515,6 @@ var CTAWrapper = index$a(reactNative.TouchableOpacity)(function (_ref6) {
14808
14515
  };
14809
14516
  });
14810
14517
 
14811
- var ToastContext = /*#__PURE__*/React.createContext({});
14812
- var ToastConfigContext = /*#__PURE__*/React.createContext({});
14813
- var useToastConfig = function useToastConfig() {
14814
- return React.useContext(ToastConfigContext);
14815
- };
14816
- var useToast = function useToast() {
14817
- return React.useContext(ToastContext);
14818
- };
14819
-
14820
14518
  var getIntentIcon = function getIntentIcon(intent) {
14821
14519
  switch (intent) {
14822
14520
  case 'success':
@@ -14860,7 +14558,6 @@ var Toast$1 = function Toast(_ref2) {
14860
14558
  _ref2$distance = _ref2.distance,
14861
14559
  distance = _ref2$distance === void 0 ? 0 : _ref2$distance;
14862
14560
  var animatedValue = React.useRef(new reactNative.Animated.Value(0)).current;
14863
- var toastConfig = useToastConfig();
14864
14561
  React.useEffect(function () {
14865
14562
  if (autoDismiss && duration >= 0) {
14866
14563
  var id = setTimeout(function () {
@@ -14886,7 +14583,7 @@ var Toast$1 = function Toast(_ref2) {
14886
14583
  });
14887
14584
  var interpolateY = animatedValue.interpolate({
14888
14585
  inputRange: [0, 1],
14889
- outputRange: toastConfig.position === 'top' ? [-20, distance] : [20, -distance]
14586
+ outputRange: [20, -distance]
14890
14587
  });
14891
14588
  return /*#__PURE__*/React__default["default"].createElement(Container, {
14892
14589
  themeVariant: variant,
@@ -14944,8 +14641,6 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
14944
14641
  var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function (_ref2, ref) {
14945
14642
  var _ref2$displayType = _ref2.displayType,
14946
14643
  displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
14947
- _ref2$position = _ref2.position,
14948
- position = _ref2$position === void 0 ? 'bottom' : _ref2$position,
14949
14644
  style = _ref2.style;
14950
14645
  var theme = useTheme$1();
14951
14646
  var _useState = React.useState([]),
@@ -14978,7 +14673,6 @@ var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function
14978
14673
  });
14979
14674
  return /*#__PURE__*/React__default["default"].createElement(ToastContainerWrapper, {
14980
14675
  pointerEvents: "box-none",
14981
- position: position,
14982
14676
  style: style
14983
14677
  }, displayType === 'single' ? /*#__PURE__*/React__default["default"].createElement(SingleToastDisplay, {
14984
14678
  toastList: toastList,
@@ -15005,13 +14699,16 @@ var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function
15005
14699
  });
15006
14700
  ToastContainer.displayName = 'ToastContainer';
15007
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
+
15008
14708
  var ToastProvider = function ToastProvider(_ref) {
15009
14709
  var children = _ref.children,
15010
14710
  _ref$displayType = _ref.displayType,
15011
- displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType,
15012
- _position = _ref.position;
15013
- var position = _position === undefined ? 'bottom' : _position;
15014
- 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;
15015
14712
  var toastRef = React.useRef(null);
15016
14713
  // @ts-expect-error: TODO: @tungv Fix this type error
15017
14714
  var _useState = React.useState(null),
@@ -15025,10 +14722,9 @@ var ToastProvider = function ToastProvider(_ref) {
15025
14722
  }, []);
15026
14723
  var config = React.useMemo(function () {
15027
14724
  return {
15028
- displayType: displayType,
15029
- position: position
14725
+ displayType: displayType
15030
14726
  };
15031
- }, [displayType, position]);
14727
+ }, [displayType]);
15032
14728
  return /*#__PURE__*/React__default["default"].createElement(ToastContext.Provider, {
15033
14729
  value: refState
15034
14730
  }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
@@ -15039,8 +14735,7 @@ var ToastProvider = function ToastProvider(_ref) {
15039
14735
  value: config
15040
14736
  }, /*#__PURE__*/React__default["default"].createElement(ToastContainer, {
15041
14737
  ref: toastRef,
15042
- displayType: displayType,
15043
- position: position
14738
+ displayType: displayType
15044
14739
  }))));
15045
14740
  };
15046
14741
 
@@ -16147,18 +15842,12 @@ var SectionHeading = function SectionHeading(_ref) {
16147
15842
  var icon = _ref.icon,
16148
15843
  text = _ref.text,
16149
15844
  rightChildren = _ref.rightChildren,
16150
- _ref$fontSize = _ref.fontSize,
16151
- fontSize = _ref$fontSize === void 0 ? 'large' : _ref$fontSize,
16152
15845
  _ref$intent = _ref.intent,
16153
15846
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
16154
- _ref$fontWeight = _ref.fontWeight,
16155
- fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
16156
15847
  _ref$size = _ref.size,
16157
15848
  size = _ref$size === void 0 ? 'medium' : _ref$size,
16158
15849
  style = _ref.style,
16159
15850
  testID = _ref.testID;
16160
- useDeprecation("SectionHeading's fontSize prop is deprecated and will be removed in the next major release, please remove it.", fontSize !== undefined);
16161
- useDeprecation("SectionHeading's fontWeight prop is deprecated and will be removed in the next major release, please remove it.", fontWeight !== undefined);
16162
15851
  return /*#__PURE__*/React__default["default"].createElement(StyledHeading, {
16163
15852
  themeSize: size,
16164
15853
  style: style,
@@ -17371,6 +17060,10 @@ var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
17371
17060
  return refs.current;
17372
17061
  };
17373
17062
 
17063
+ var isHeroIcon = function isHeroIcon(x) {
17064
+ return IconList.includes(x);
17065
+ };
17066
+
17374
17067
  var TabWithBadge = function TabWithBadge(_ref) {
17375
17068
  var config = _ref.config,
17376
17069
  tabItem = _ref.tabItem;
@@ -17791,17 +17484,14 @@ var StyledText = index$a(Typography.Caption)(function (_ref2) {
17791
17484
  };
17792
17485
  });
17793
17486
 
17794
- var _excluded$2 = ["content", "variant", "intent", "style", "testID"];
17487
+ var _excluded$2 = ["content", "intent", "style", "testID"];
17795
17488
  var Tag = function Tag(_ref) {
17796
17489
  var content = _ref.content,
17797
- _ref$variant = _ref.variant,
17798
- variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,
17799
17490
  _ref$intent = _ref.intent,
17800
17491
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
17801
17492
  style = _ref.style,
17802
17493
  testID = _ref.testID,
17803
17494
  nativeProps = _objectWithoutProperties(_ref, _excluded$2);
17804
- useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
17805
17495
  return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
17806
17496
  themeIntent: intent,
17807
17497
  style: style,
@@ -34361,7 +34051,6 @@ exports.Alert = Alert;
34361
34051
  exports.Attachment = Attachment;
34362
34052
  exports.Avatar = index$9;
34363
34053
  exports.Badge = Badge$1;
34364
- exports.BottomNavigation = BottomNavigation;
34365
34054
  exports.BottomSheet = BottomSheet$1;
34366
34055
  exports.Box = Box;
34367
34056
  exports.Button = CompoundButton;