@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/es/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import * as reactNative from 'react-native';
2
- import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, UIManager, LayoutAnimation, TouchableOpacity, Text as Text$1, Easing, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, TouchableHighlight, ScrollView, Modal as Modal$1, FlatList, useWindowDimensions, TextInput as TextInput$1, PanResponder, BackHandler, InteractionManager, Keyboard, SectionList, RefreshControl as RefreshControl$1 } from 'react-native';
2
+ import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, UIManager, LayoutAnimation, TouchableOpacity, Text as Text$1, Easing, Image as Image$1, Pressable, SafeAreaView, KeyboardAvoidingView, TouchableHighlight, ScrollView, BackHandler, FlatList, useWindowDimensions, TextInput as TextInput$1, PanResponder, Modal as Modal$1, InteractionManager, Keyboard, SectionList, TouchableWithoutFeedback, RefreshControl as RefreshControl$1 } from 'react-native';
3
3
  import React, { useContext, createContext, createElement, useMemo, forwardRef, useEffect, useCallback, useRef, useState, memo, useReducer, useLayoutEffect, useImperativeHandle, isValidElement } from 'react';
4
4
  import { createIconSet } from 'react-native-vector-icons';
5
- import { useSafeAreaInsets } from 'react-native-safe-area-context';
6
5
  import { MonthYearPickerViewIOS, MonthYearPickerDialogueAndroid } from '@hero-design/react-native-month-year-picker';
7
6
  import DateTimePicker from '@react-native-community/datetimepicker';
8
7
  import RnSlider from '@react-native-community/slider';
9
8
  import { RectButton, GestureHandlerRootView, Swipeable as Swipeable$1 } from 'react-native-gesture-handler';
10
9
  import LinearGradient from 'react-native-linear-gradient';
10
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
11
11
  import PagerView from 'react-native-pager-view';
12
12
  import { EventEmitter } from 'events';
13
13
  import { WebView } from 'react-native-webview';
@@ -2170,15 +2170,6 @@ var getBadgeTheme = function getBadgeTheme(theme) {
2170
2170
  archived: theme.colors.onArchivedSurface,
2171
2171
  text: theme.colors.onDarkGlobalSurface
2172
2172
  };
2173
- var fonts = {
2174
- "default": theme.fonts.neutral.semiBold
2175
- };
2176
- var fontSizes = {
2177
- "default": theme.fontSizes.small
2178
- };
2179
- var lineHeights = {
2180
- "default": theme.lineHeights.small
2181
- };
2182
2173
  var sizes = {
2183
2174
  height: theme.fontSizes.small + theme.sizes.small,
2184
2175
  minWidth: theme.fontSizes.small + theme.sizes.small,
@@ -2192,37 +2183,6 @@ var getBadgeTheme = function getBadgeTheme(theme) {
2192
2183
  };
2193
2184
  return {
2194
2185
  colors: colors,
2195
- fonts: fonts,
2196
- fontSizes: fontSizes,
2197
- sizes: sizes,
2198
- space: space,
2199
- lineHeights: lineHeights
2200
- };
2201
- };
2202
-
2203
- var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
2204
- var colors = {
2205
- shadow: theme.colors.primary,
2206
- background: theme.colors.defaultGlobalSurface
2207
- };
2208
- var sizes = {
2209
- height: theme.sizes['6xlarge']
2210
- };
2211
- var shadows = {
2212
- offset: {
2213
- width: 0,
2214
- height: 3
2215
- },
2216
- opacity: 0.27,
2217
- radius: 4.65,
2218
- elevation: 10
2219
- };
2220
- var space = {
2221
- titleMarginTop: theme.space.xsmall
2222
- };
2223
- return {
2224
- colors: colors,
2225
- shadows: shadows,
2226
2186
  sizes: sizes,
2227
2187
  space: space
2228
2188
  };
@@ -2266,15 +2226,6 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
2266
2226
  };
2267
2227
 
2268
2228
  var getButtonTheme = function getButtonTheme(theme) {
2269
- var fonts = {
2270
- "default": theme.fonts.neutral.semiBold,
2271
- utility: theme.fonts.neutral.regular
2272
- };
2273
- var fontSize = {
2274
- "default": theme.fontSizes.xlarge,
2275
- utility: theme.fontSizes.large,
2276
- textVariant: theme.fontSizes.large
2277
- };
2278
2229
  var borderWidth = {
2279
2230
  "default": theme.space.xxsmall
2280
2231
  };
@@ -2321,8 +2272,6 @@ var getButtonTheme = function getButtonTheme(theme) {
2321
2272
  return {
2322
2273
  lineHeights: lineHeights,
2323
2274
  borderWidth: borderWidth,
2324
- fonts: fonts,
2325
- fontSize: fontSize,
2326
2275
  sizes: sizes,
2327
2276
  radii: radii,
2328
2277
  colors: colors,
@@ -2398,20 +2347,8 @@ var getCarouselTheme = function getCarouselTheme(theme) {
2398
2347
  pageControlPaddingVertical: theme.space.small,
2399
2348
  pageControlWrapperHeight: scale(48)
2400
2349
  };
2401
- var fontSizes = {
2402
- heading: theme.fontSizes['xxxxxlarge']
2403
- };
2404
- var fonts = {
2405
- heading: theme.fonts.playful.semiBold
2406
- };
2407
- var lineHeights = {
2408
- heading: theme.lineHeights['6xlarge']
2409
- };
2410
2350
  return {
2411
- space: space,
2412
- fonts: fonts,
2413
- fontSizes: fontSizes,
2414
- lineHeights: lineHeights
2351
+ space: space
2415
2352
  };
2416
2353
  };
2417
2354
 
@@ -2595,20 +2532,10 @@ var getEmptyTheme = function getEmptyTheme(theme) {
2595
2532
  subduedText: theme.colors.mutedOnDefaultGlobalSurface,
2596
2533
  invertedSubduedText: theme.colors.onDarkGlobalSurface
2597
2534
  };
2598
- var fontSizes = {
2599
- title: theme.fontSizes.xxxlarge,
2600
- description: theme.fontSizes.xlarge
2601
- };
2602
- var fonts = {
2603
- title: theme.fonts.playful.semiBold,
2604
- description: theme.fonts.playful.regular
2605
- };
2606
2535
  return {
2607
- fontSizes: fontSizes,
2608
2536
  colors: colors,
2609
2537
  sizes: sizes,
2610
- space: space,
2611
- fonts: fonts
2538
+ space: space
2612
2539
  };
2613
2540
  };
2614
2541
 
@@ -2633,25 +2560,10 @@ var getErrorTheme = function getErrorTheme(theme) {
2633
2560
  fullScreenBackground: theme.colors.decorativePrimarySurface,
2634
2561
  inPageBackground: theme.colors.neutralGlobalSurface
2635
2562
  };
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
- var lineHeight = {
2645
- title: theme.lineHeights.xxxlarge,
2646
- description: theme.lineHeights.xlarge
2647
- };
2648
2563
  return {
2649
- fontSizes: fontSizes,
2650
2564
  colors: colors,
2651
2565
  sizes: sizes,
2652
- space: space,
2653
- fonts: fonts,
2654
- lineHeight: lineHeight
2566
+ space: space
2655
2567
  };
2656
2568
  };
2657
2569
 
@@ -2708,10 +2620,10 @@ var getFABTheme = function getFABTheme(theme) {
2708
2620
  };
2709
2621
  return {
2710
2622
  radii: radii,
2711
- fonts: fonts,
2712
- fontSizes: fontSizes,
2713
2623
  colors: colors,
2714
2624
  sizes: sizes,
2625
+ fonts: fonts,
2626
+ fontSizes: fontSizes,
2715
2627
  lineHeights: lineHeights,
2716
2628
  shadows: shadows,
2717
2629
  space: space
@@ -2836,18 +2748,6 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2836
2748
  error: theme.colors.onErrorSurface,
2837
2749
  disabled: theme.colors.disabledOnDefaultGlobalSurface
2838
2750
  };
2839
- var fonts = {
2840
- cellText: theme.fonts.neutral.semiBold,
2841
- errorMessage: theme.fonts.neutral.regular
2842
- };
2843
- var fontSizes = {
2844
- cellText: theme.fontSizes.xxxxlarge,
2845
- errorMessage: theme.fontSizes.small
2846
- };
2847
- var lineHeights = {
2848
- cellText: theme.lineHeights.xxxxlarge,
2849
- errorMessage: theme.fontSizes.small
2850
- };
2851
2751
  var sizes = {
2852
2752
  cellWidth: theme.sizes.xxlarge,
2853
2753
  cellHeight: theme.sizes.xxxlarge,
@@ -2863,10 +2763,7 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2863
2763
  };
2864
2764
  return {
2865
2765
  borderWidths: borderWidths,
2866
- lineHeights: lineHeights,
2867
2766
  colors: colors,
2868
- fonts: fonts,
2869
- fontSizes: fontSizes,
2870
2767
  sizes: sizes,
2871
2768
  space: space,
2872
2769
  radii: radii
@@ -3125,20 +3022,10 @@ var getSuccessTheme = function getSuccessTheme(theme) {
3125
3022
  fullScreenBackground: theme.colors.decorativePrimarySurface,
3126
3023
  inPageBackground: theme.colors.neutralGlobalSurface
3127
3024
  };
3128
- var fontSizes = {
3129
- title: theme.fontSizes.xxxlarge,
3130
- description: theme.fontSizes.xlarge
3131
- };
3132
- var fonts = {
3133
- title: theme.fonts.playful.semiBold,
3134
- description: theme.fonts.playful.regular
3135
- };
3136
3025
  return {
3137
- fontSizes: fontSizes,
3138
3026
  colors: colors,
3139
3027
  sizes: sizes,
3140
- space: space,
3141
- fonts: fonts
3028
+ space: space
3142
3029
  };
3143
3030
  };
3144
3031
 
@@ -3259,15 +3146,6 @@ var getTagTheme = function getTagTheme(theme) {
3259
3146
  archivedBackground: theme.colors.archivedSurface,
3260
3147
  text: theme.colors.onDefaultGlobalSurface
3261
3148
  };
3262
- var fonts = {
3263
- "default": theme.fonts.neutral.semiBold
3264
- };
3265
- var fontSizes = {
3266
- "default": theme.fontSizes.small
3267
- };
3268
- var lineHeights = {
3269
- "default": theme.lineHeights.small
3270
- };
3271
3149
  var space = {
3272
3150
  horizontalPadding: theme.space.small,
3273
3151
  verticalPadding: theme.space.xsmall
@@ -3278,11 +3156,8 @@ var getTagTheme = function getTagTheme(theme) {
3278
3156
  return {
3279
3157
  borderWidths: borderWidths,
3280
3158
  colors: colors,
3281
- fonts: fonts,
3282
- fontSizes: fontSizes,
3283
3159
  space: space,
3284
- radii: radii,
3285
- lineHeights: lineHeights
3160
+ radii: radii
3286
3161
  };
3287
3162
  };
3288
3163
 
@@ -3346,12 +3221,7 @@ var getTextInputTheme = function getTextInputTheme(theme) {
3346
3221
  text: theme.fonts.neutral.regular
3347
3222
  };
3348
3223
  var fontSizes = {
3349
- text: theme.fontSizes.large,
3350
- labelInsideTextInput: theme.fontSizes.large,
3351
- error: theme.fontSizes.small,
3352
- maxLength: theme.fontSizes.small,
3353
- asteriskLabel: theme.fontSizes.large,
3354
- topLabel: theme.fontSizes.small
3224
+ text: theme.fontSizes.large
3355
3225
  };
3356
3226
  var borderWidths = {
3357
3227
  container: {
@@ -3653,7 +3523,6 @@ var getTheme$1 = function getTheme() {
3653
3523
  attachment: getAttachmentTheme(globalTheme),
3654
3524
  avatar: getAvatarTheme(globalTheme),
3655
3525
  badge: getBadgeTheme(globalTheme),
3656
- bottomNavigation: getBottomNavigationTheme(globalTheme),
3657
3526
  bottomSheet: getBottomSheetTheme(globalTheme),
3658
3527
  button: getButtonTheme(globalTheme),
3659
3528
  calendar: getCalendarTheme(globalTheme),
@@ -6697,7 +6566,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
6697
6566
  });
6698
6567
  });
6699
6568
 
6700
- var _excluded$A = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6569
+ var _excluded$z = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6701
6570
  var Text = function Text(_ref) {
6702
6571
  var children = _ref.children,
6703
6572
  _ref$fontSize = _ref.fontSize,
@@ -6710,7 +6579,7 @@ var Text = function Text(_ref) {
6710
6579
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6711
6580
  _ref$allowFontScaling = _ref.allowFontScaling,
6712
6581
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6713
- nativeProps = _objectWithoutProperties(_ref, _excluded$A);
6582
+ nativeProps = _objectWithoutProperties(_ref, _excluded$z);
6714
6583
  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.');
6715
6584
  return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
6716
6585
  themeFontSize: fontSize,
@@ -6740,7 +6609,7 @@ var StyledCaption = index$a(Text$1)(function (_ref) {
6740
6609
  };
6741
6610
  });
6742
6611
 
6743
- var _excluded$z = ["children", "fontWeight", "intent", "allowFontScaling"];
6612
+ var _excluded$y = ["children", "fontWeight", "intent", "allowFontScaling"];
6744
6613
  var Caption = function Caption(_ref) {
6745
6614
  var children = _ref.children,
6746
6615
  _ref$fontWeight = _ref.fontWeight,
@@ -6749,7 +6618,7 @@ var Caption = function Caption(_ref) {
6749
6618
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6750
6619
  _ref$allowFontScaling = _ref.allowFontScaling,
6751
6620
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6752
- nativeProps = _objectWithoutProperties(_ref, _excluded$z);
6621
+ nativeProps = _objectWithoutProperties(_ref, _excluded$y);
6753
6622
  return /*#__PURE__*/React.createElement(StyledCaption, _extends$1({}, nativeProps, {
6754
6623
  themeFontWeight: fontWeight,
6755
6624
  themeIntent: intent,
@@ -6768,14 +6637,14 @@ var StyledLabel$1 = index$a(Text$1)(function (_ref) {
6768
6637
  };
6769
6638
  });
6770
6639
 
6771
- var _excluded$y = ["children", "intent", "allowFontScaling"];
6640
+ var _excluded$x = ["children", "intent", "allowFontScaling"];
6772
6641
  var Label = function Label(_ref) {
6773
6642
  var children = _ref.children,
6774
6643
  _ref$intent = _ref.intent,
6775
6644
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6776
6645
  _ref$allowFontScaling = _ref.allowFontScaling,
6777
6646
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6778
- nativeProps = _objectWithoutProperties(_ref, _excluded$y);
6647
+ nativeProps = _objectWithoutProperties(_ref, _excluded$x);
6779
6648
  return /*#__PURE__*/React.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
6780
6649
  themeIntent: intent,
6781
6650
  allowFontScaling: allowFontScaling
@@ -6796,7 +6665,7 @@ var StyledTitle$1 = index$a(Text$1)(function (_ref) {
6796
6665
  };
6797
6666
  });
6798
6667
 
6799
- var _excluded$x = ["children", "intent", "allowFontScaling", "level", "typeface"];
6668
+ var _excluded$w = ["children", "intent", "allowFontScaling", "level", "typeface"];
6800
6669
  var Title = function Title(_ref) {
6801
6670
  var children = _ref.children,
6802
6671
  _ref$intent = _ref.intent,
@@ -6807,7 +6676,7 @@ var Title = function Title(_ref) {
6807
6676
  level = _ref$level === void 0 ? 'h1' : _ref$level,
6808
6677
  _ref$typeface = _ref.typeface,
6809
6678
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6810
- nativeProps = _objectWithoutProperties(_ref, _excluded$x);
6679
+ nativeProps = _objectWithoutProperties(_ref, _excluded$w);
6811
6680
  return /*#__PURE__*/React.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
6812
6681
  themeLevel: level,
6813
6682
  themeTypeface: typeface,
@@ -6842,7 +6711,7 @@ var StyledBody = index$a(Text$1)(function (_ref) {
6842
6711
  };
6843
6712
  });
6844
6713
 
6845
- var _excluded$w = ["children", "intent", "allowFontScaling", "typeface", "variant"];
6714
+ var _excluded$v = ["children", "intent", "allowFontScaling", "typeface", "variant"];
6846
6715
  var Body = function Body(_ref) {
6847
6716
  var children = _ref.children,
6848
6717
  _ref$intent = _ref.intent,
@@ -6853,7 +6722,7 @@ var Body = function Body(_ref) {
6853
6722
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6854
6723
  _ref$variant = _ref.variant,
6855
6724
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
6856
- nativeProps = _objectWithoutProperties(_ref, _excluded$w);
6725
+ nativeProps = _objectWithoutProperties(_ref, _excluded$v);
6857
6726
  return /*#__PURE__*/React.createElement(StyledBody, _extends$1({}, nativeProps, {
6858
6727
  themeTypeface: typeface,
6859
6728
  themeIntent: intent,
@@ -7398,10 +7267,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
7398
7267
  };
7399
7268
  });
7400
7269
 
7401
- var _excluded$v = ["style"];
7270
+ var _excluded$u = ["style"];
7402
7271
  var AnimatedIcon = function AnimatedIcon(_ref) {
7403
7272
  var style = _ref.style,
7404
- otherProps = _objectWithoutProperties(_ref, _excluded$v);
7273
+ otherProps = _objectWithoutProperties(_ref, _excluded$u);
7405
7274
  var rotateAnimation = useRef(new Animated.Value(0));
7406
7275
  useEffect(function () {
7407
7276
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -7506,7 +7375,7 @@ var AccordionItem = function AccordionItem(_ref) {
7506
7375
  }, content));
7507
7376
  };
7508
7377
 
7509
- var _excluded$u = ["key"];
7378
+ var _excluded$t = ["key"];
7510
7379
  var Accordion = function Accordion(_ref) {
7511
7380
  var items = _ref.items,
7512
7381
  activeItemKey = _ref.activeItemKey,
@@ -7527,7 +7396,7 @@ var Accordion = function Accordion(_ref) {
7527
7396
  testID: testID
7528
7397
  }, items.map(function (_ref2, index) {
7529
7398
  var key = _ref2.key,
7530
- props = _objectWithoutProperties(_ref2, _excluded$u);
7399
+ props = _objectWithoutProperties(_ref2, _excluded$t);
7531
7400
  var open = _activeItemKey === key;
7532
7401
  return /*#__PURE__*/React.createElement(React.Fragment, {
7533
7402
  key: key
@@ -7805,7 +7674,7 @@ var Avatar = function Avatar(_ref) {
7805
7674
  }));
7806
7675
  };
7807
7676
 
7808
- var isIOS = Platform.OS === 'ios';
7677
+ Platform.OS === 'ios';
7809
7678
  var isAndroid = Platform.OS === 'android';
7810
7679
  function pick(keys, obj) {
7811
7680
  return keys.filter(function (key) {
@@ -7997,7 +7866,7 @@ var borderWidths = {
7997
7866
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
7998
7867
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
7999
7868
 
8000
- var _excluded$t = ["theme"];
7869
+ var _excluded$s = ["theme"];
8001
7870
  var getThemeValue = function getThemeValue(theme, key, props) {
8002
7871
  var propConfig = config[key];
8003
7872
  var propValue = props[key];
@@ -8024,18 +7893,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8024
7893
  var configKeys = Object.keys(config);
8025
7894
  var StyledBox = index$a(View)(function (_ref5) {
8026
7895
  var theme = _ref5.theme,
8027
- otherProps = _objectWithoutProperties(_ref5, _excluded$t);
7896
+ otherProps = _objectWithoutProperties(_ref5, _excluded$s);
8028
7897
  var styleProps = pick(configKeys, otherProps);
8029
7898
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8030
7899
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8031
7900
  });
8032
7901
 
8033
- var _excluded$s = ["children", "style", "testID"];
7902
+ var _excluded$r = ["children", "style", "testID"];
8034
7903
  var Box = function Box(_ref) {
8035
7904
  var children = _ref.children,
8036
7905
  style = _ref.style,
8037
7906
  testID = _ref.testID,
8038
- otherProps = _objectWithoutProperties(_ref, _excluded$s);
7907
+ otherProps = _objectWithoutProperties(_ref, _excluded$r);
8039
7908
  return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
8040
7909
  style: style,
8041
7910
  testID: testID
@@ -8249,7 +8118,7 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
8249
8118
  };
8250
8119
  });
8251
8120
 
8252
- var _excluded$r = ["children", "visible", "intent", "style", "testID"];
8121
+ var _excluded$q = ["children", "visible", "intent", "style", "testID"];
8253
8122
  var Status = function Status(_ref) {
8254
8123
  var children = _ref.children,
8255
8124
  _ref$visible = _ref.visible,
@@ -8258,7 +8127,7 @@ var Status = function Status(_ref) {
8258
8127
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8259
8128
  style = _ref.style,
8260
8129
  testID = _ref.testID,
8261
- nativeProps = _objectWithoutProperties(_ref, _excluded$r);
8130
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
8262
8131
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
8263
8132
  opacity = _React$useRef.current;
8264
8133
  var isFirstRendering = React.useRef(true);
@@ -8291,7 +8160,7 @@ var Status = function Status(_ref) {
8291
8160
  }));
8292
8161
  };
8293
8162
 
8294
- var _excluded$q = ["content", "visible", "max", "intent", "style", "testID"];
8163
+ var _excluded$p = ["content", "visible", "max", "intent", "style", "testID"];
8295
8164
  var DEFAULT_MAX_NUMBER = 99;
8296
8165
  var getPaddingState = function getPaddingState(content) {
8297
8166
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -8306,7 +8175,7 @@ var Badge = function Badge(_ref) {
8306
8175
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8307
8176
  style = _ref.style,
8308
8177
  testID = _ref.testID,
8309
- nativeProps = _objectWithoutProperties(_ref, _excluded$q);
8178
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
8310
8179
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
8311
8180
  opacity = _React$useRef.current;
8312
8181
  var isFirstRendering = React.useRef(true);
@@ -8342,136 +8211,6 @@ var Badge$1 = Object.assign(Badge, {
8342
8211
  Status: Status
8343
8212
  });
8344
8213
 
8345
- var isHeroIcon = function isHeroIcon(x) {
8346
- return IconList.includes(x);
8347
- };
8348
-
8349
- var BottomNavigationTab = index$a(View)(function (_ref) {
8350
- var themeVisibility = _ref.themeVisibility;
8351
- return {
8352
- flex: 1,
8353
- display: themeVisibility === false ? 'none' : 'flex'
8354
- };
8355
- });
8356
- var BottomNavigationContainer = index$a(View)({
8357
- flex: 1,
8358
- overflow: 'hidden'
8359
- });
8360
- var ContentWrapper$2 = index$a(View)({
8361
- flex: 1
8362
- });
8363
- var BottomBarWrapper = index$a(View)(function (_ref2) {
8364
- var themeInsets = _ref2.themeInsets,
8365
- theme = _ref2.theme;
8366
- return {
8367
- height: theme.__hd__.bottomNavigation.sizes.height + themeInsets.bottom,
8368
- paddingBottom: themeInsets.bottom,
8369
- paddingLeft: Math.max(themeInsets.left, themeInsets.right),
8370
- paddingRight: Math.max(themeInsets.left, themeInsets.right),
8371
- backgroundColor: theme.__hd__.bottomNavigation.colors.background,
8372
- shadowColor: theme.__hd__.bottomNavigation.colors.shadow,
8373
- shadowOffset: theme.__hd__.bottomNavigation.shadows.offset,
8374
- shadowOpacity: theme.__hd__.bottomNavigation.shadows.opacity,
8375
- shadowRadius: theme.__hd__.bottomNavigation.shadows.radius,
8376
- elevation: theme.__hd__.bottomNavigation.shadows.elevation
8377
- };
8378
- });
8379
- var BottomBar = index$a(View)({
8380
- flex: 1,
8381
- flexDirection: 'row',
8382
- overflow: 'hidden',
8383
- alignItems: 'center'
8384
- });
8385
- var BottomBarItem = index$a(View)({
8386
- flex: 1,
8387
- alignItems: 'center'
8388
- });
8389
- var StyledBottomBarText = index$a(Typography.Caption)(function (_ref3) {
8390
- var theme = _ref3.theme;
8391
- return {
8392
- marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
8393
- };
8394
- });
8395
-
8396
- var _excluded$p = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8397
- var getInactiveIcon = function getInactiveIcon(icon) {
8398
- var inactiveIcon = "".concat(icon, "-outlined");
8399
- return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
8400
- };
8401
- var BottomNavigation = function BottomNavigation(_ref) {
8402
- var onTabPress = _ref.onTabPress,
8403
- _ref$renderActiveTabO = _ref.renderActiveTabOnly,
8404
- renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
8405
- selectedTabKey = _ref.selectedTabKey,
8406
- tabs = _ref.tabs,
8407
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
8408
- useDeprecation('BottomNavigation is deprecated and will be removed in the next major release. Please remove it.');
8409
- var insets = useSafeAreaInsets();
8410
- /**
8411
- * List of loaded tabs, tabs will be loaded when navigated to.
8412
- */
8413
- var _React$useState = React.useState([selectedTabKey]),
8414
- _React$useState2 = _slicedToArray(_React$useState, 2),
8415
- loaded = _React$useState2[0],
8416
- setLoaded = _React$useState2[1];
8417
- if (!loaded.includes(selectedTabKey)) {
8418
- // Set the current tab to be loaded if it was not loaded before
8419
- setLoaded(function (loadedState) {
8420
- return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
8421
- });
8422
- }
8423
- return /*#__PURE__*/React.createElement(BottomNavigationContainer, nativeProps, /*#__PURE__*/React.createElement(ContentWrapper$2, null, tabs.map(function (tab) {
8424
- var key = tab.key,
8425
- component = tab.component,
8426
- testID = tab.testID;
8427
- var active = selectedTabKey === key;
8428
- if (renderActiveTabOnly && !active) {
8429
- return null;
8430
- }
8431
- if (!loaded.includes(key)) {
8432
- // Don't render a screen if we've never navigated to it
8433
- return null;
8434
- }
8435
- return /*#__PURE__*/React.createElement(BottomNavigationTab, {
8436
- key: key,
8437
- testID: testID ? "route-screen-".concat(testID) : undefined,
8438
- pointerEvents: active ? 'auto' : 'none',
8439
- accessibilityElementsHidden: !active,
8440
- importantForAccessibility: active ? 'auto' : 'no-hide-descendants',
8441
- collapsable: false,
8442
- removeClippedSubviews:
8443
- // On iOS, set removeClippedSubviews to true only when not focused
8444
- // This is an workaround for a bug where the clipped view never re-appears.
8445
- isIOS ? selectedTabKey !== key : true,
8446
- themeVisibility: active
8447
- }, component);
8448
- })), /*#__PURE__*/React.createElement(BottomBarWrapper, {
8449
- themeInsets: insets
8450
- }, /*#__PURE__*/React.createElement(BottomBar, null, tabs.map(function (tab) {
8451
- var key = tab.key,
8452
- icon = tab.icon,
8453
- title = tab.title,
8454
- testID = tab.testID;
8455
- var active = selectedTabKey === key;
8456
- var inactiveIcon = getInactiveIcon(icon);
8457
- return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
8458
- key: key,
8459
- onPress: function onPress() {
8460
- return onTabPress(key);
8461
- },
8462
- testID: testID
8463
- }, /*#__PURE__*/React.createElement(BottomBarItem, null, /*#__PURE__*/React.createElement(Icon, {
8464
- icon: active ? icon : inactiveIcon,
8465
- intent: active ? 'primary' : 'text',
8466
- testID: "hero-icon-".concat(icon)
8467
- }), !!title && /*#__PURE__*/React.createElement(StyledBottomBarText, {
8468
- fontWeight: "semi-bold",
8469
- intent: active ? 'primary' : 'body',
8470
- numberOfLines: 1
8471
- }, title)));
8472
- }))));
8473
- };
8474
-
8475
8214
  var BottomSheetContext = /*#__PURE__*/createContext({});
8476
8215
 
8477
8216
  var StyledDivider = index$a(View)(function (_ref) {
@@ -9125,6 +8864,332 @@ var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
9125
8864
  }));
9126
8865
  };
9127
8866
 
8867
+ var customAlphabet = function customAlphabet(alphabet) {
8868
+ var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
8869
+ return function () {
8870
+ var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
8871
+ var id = '';
8872
+ var i = size;
8873
+ while (i--) {
8874
+ id += alphabet[Math.random() * alphabet.length | 0];
8875
+ }
8876
+ return id;
8877
+ };
8878
+ };
8879
+
8880
+ var ACTIONS;
8881
+ (function (ACTIONS) {
8882
+ ACTIONS[ACTIONS["REGISTER_HOST"] = 0] = "REGISTER_HOST";
8883
+ ACTIONS[ACTIONS["DEREGISTER_HOST"] = 1] = "DEREGISTER_HOST";
8884
+ ACTIONS[ACTIONS["ADD_UPDATE_PORTAL"] = 2] = "ADD_UPDATE_PORTAL";
8885
+ ACTIONS[ACTIONS["REMOVE_PORTAL"] = 3] = "REMOVE_PORTAL";
8886
+ })(ACTIONS || (ACTIONS = {}));
8887
+ var INITIAL_STATE = {};
8888
+
8889
+ var PortalStateContext = /*#__PURE__*/createContext(null);
8890
+ var PortalDispatchContext = /*#__PURE__*/createContext(null);
8891
+
8892
+ var usePortal = function usePortal() {
8893
+ var hostName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'root';
8894
+ var dispatch = useContext(PortalDispatchContext);
8895
+ if (dispatch === null) {
8896
+ throw new Error("You must add 'PortalProvider' to the root component.");
8897
+ }
8898
+ var registerHost = useCallback(function () {
8899
+ dispatch({
8900
+ type: ACTIONS.REGISTER_HOST,
8901
+ hostName: hostName
8902
+ });
8903
+ }, []);
8904
+ var deregisterHost = useCallback(function () {
8905
+ dispatch({
8906
+ type: ACTIONS.DEREGISTER_HOST,
8907
+ hostName: hostName
8908
+ });
8909
+ }, []);
8910
+ var addUpdatePortal = useCallback(function (name, node) {
8911
+ dispatch({
8912
+ type: ACTIONS.ADD_UPDATE_PORTAL,
8913
+ hostName: hostName,
8914
+ portalName: name,
8915
+ node: node
8916
+ });
8917
+ }, []);
8918
+ var removePortal = useCallback(function (name) {
8919
+ dispatch({
8920
+ type: ACTIONS.REMOVE_PORTAL,
8921
+ hostName: hostName,
8922
+ portalName: name
8923
+ });
8924
+ }, []);
8925
+ return {
8926
+ registerHost: registerHost,
8927
+ deregisterHost: deregisterHost,
8928
+ addPortal: addUpdatePortal,
8929
+ updatePortal: addUpdatePortal,
8930
+ removePortal: removePortal
8931
+ };
8932
+ };
8933
+
8934
+ var usePortalState = function usePortalState(hostName) {
8935
+ var state = useContext(PortalStateContext);
8936
+ if (state === null) {
8937
+ throw new Error("You must add 'PortalProvider' to the root component.");
8938
+ }
8939
+ return state[hostName] || [];
8940
+ };
8941
+
8942
+ var PortalHostComponent = function PortalHostComponent(_ref) {
8943
+ var name = _ref.name;
8944
+ var state = usePortalState(name);
8945
+ var _usePortal = usePortal(name),
8946
+ registerHost = _usePortal.registerHost,
8947
+ deregisterHost = _usePortal.deregisterHost;
8948
+ useEffect(function () {
8949
+ registerHost();
8950
+ return function () {
8951
+ deregisterHost();
8952
+ };
8953
+ }, []);
8954
+ return /*#__PURE__*/React.createElement(React.Fragment, null, state.map(function (item) {
8955
+ return item.node;
8956
+ }));
8957
+ };
8958
+ var PortalHost = /*#__PURE__*/memo(PortalHostComponent);
8959
+ PortalHost.displayName = 'PortalHost';
8960
+
8961
+ var registerHostIfNotExist = function registerHostIfNotExist(state, hostName) {
8962
+ if (!(hostName in state)) {
8963
+ return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, []));
8964
+ }
8965
+ return _objectSpread2({}, state);
8966
+ };
8967
+ var deregisterHost = function deregisterHost(state, hostName) {
8968
+ return _objectSpread2({}, omit([hostName], state));
8969
+ };
8970
+ var addUpdatePortal = function addUpdatePortal(state, hostName, portalName, node) {
8971
+ var newState = registerHostIfNotExist(state, hostName);
8972
+ var index = newState[hostName].findIndex(function (item) {
8973
+ return item.name === portalName;
8974
+ });
8975
+ if (index !== -1) {
8976
+ return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, newState[hostName].map(function (item, i) {
8977
+ if (index === i) {
8978
+ return _objectSpread2(_objectSpread2({}, item), {}, {
8979
+ node: node
8980
+ });
8981
+ }
8982
+ return item;
8983
+ })));
8984
+ }
8985
+ return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, [].concat(_toConsumableArray(newState[hostName]), [{
8986
+ name: portalName,
8987
+ node: node
8988
+ }])));
8989
+ };
8990
+ var removePortal = function removePortal(state, hostName, portalName) {
8991
+ if (!(hostName in state)) {
8992
+ return _objectSpread2({}, state);
8993
+ }
8994
+ return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, state[hostName].filter(function (item) {
8995
+ return item.name !== portalName;
8996
+ })));
8997
+ };
8998
+ var reducer = function reducer(state, action) {
8999
+ var type = action.type;
9000
+ switch (type) {
9001
+ case ACTIONS.REGISTER_HOST:
9002
+ return registerHostIfNotExist(state, action.hostName);
9003
+ case ACTIONS.DEREGISTER_HOST:
9004
+ return deregisterHost(state, action.hostName);
9005
+ case ACTIONS.ADD_UPDATE_PORTAL:
9006
+ return addUpdatePortal(state, action.hostName, action.portalName, action.node);
9007
+ case ACTIONS.REMOVE_PORTAL:
9008
+ return removePortal(state, action.hostName, action.portalName);
9009
+ default:
9010
+ return _objectSpread2({}, state);
9011
+ }
9012
+ };
9013
+
9014
+ var PortalProviderComponent = function PortalProviderComponent(_ref) {
9015
+ var _ref$rootHostName = _ref.rootHostName,
9016
+ rootHostName = _ref$rootHostName === void 0 ? 'root' : _ref$rootHostName,
9017
+ children = _ref.children;
9018
+ var _useReducer = useReducer(reducer, INITIAL_STATE),
9019
+ _useReducer2 = _slicedToArray(_useReducer, 2),
9020
+ state = _useReducer2[0],
9021
+ dispatch = _useReducer2[1];
9022
+ return /*#__PURE__*/React.createElement(PortalDispatchContext.Provider, {
9023
+ value: dispatch
9024
+ }, /*#__PURE__*/React.createElement(PortalStateContext.Provider, {
9025
+ value: state
9026
+ }, children, /*#__PURE__*/React.createElement(PortalHost, {
9027
+ name: rootHostName
9028
+ })));
9029
+ };
9030
+ var PortalProvider = /*#__PURE__*/memo(PortalProviderComponent);
9031
+ PortalProvider.displayName = 'PortalProvider';
9032
+
9033
+ var nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
9034
+ var PortalComponent = function PortalComponent(_ref) {
9035
+ var name = _ref.name,
9036
+ hostName = _ref.hostName,
9037
+ children = _ref.children,
9038
+ theme = _ref.theme;
9039
+ var defaultTheme = useTheme();
9040
+ var _usePortal = usePortal(hostName),
9041
+ addUpdatePortal = _usePortal.addPortal,
9042
+ removePortal = _usePortal.removePortal;
9043
+ var nameOrRandom = useMemo(function () {
9044
+ return name || nanoid();
9045
+ }, [name]);
9046
+ var ChildrenComponent = useMemo(function () {
9047
+ return /*#__PURE__*/React.createElement(ThemeProvider, {
9048
+ theme: theme || defaultTheme
9049
+ }, children);
9050
+ }, [theme, children, defaultTheme]);
9051
+ useLayoutEffect(function () {
9052
+ addUpdatePortal(nameOrRandom, ChildrenComponent);
9053
+ return function () {
9054
+ removePortal(nameOrRandom);
9055
+ };
9056
+ }, [addUpdatePortal]);
9057
+ useLayoutEffect(function () {
9058
+ addUpdatePortal(nameOrRandom, ChildrenComponent);
9059
+ }, [ChildrenComponent]);
9060
+ return null;
9061
+ };
9062
+ var Portal = /*#__PURE__*/memo(PortalComponent);
9063
+ Portal.displayName = 'Portal';
9064
+ var Portal$1 = Object.assign(Portal, {
9065
+ Provider: PortalProvider,
9066
+ Host: PortalHost
9067
+ });
9068
+
9069
+ var _excluded$l = ["visible"];
9070
+ var DEFAULT_BACKDROP_OPACITY = 0.4;
9071
+ var DEFAULT_ANIMATION_CONFIG = {
9072
+ easing: Easing.inOut(Easing.cubic),
9073
+ useNativeDriver: Platform.OS !== 'web',
9074
+ duration: 400
9075
+ };
9076
+ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
9077
+ var children = _ref.children,
9078
+ onShow = _ref.onShow,
9079
+ onRequestClose = _ref.onRequestClose,
9080
+ testID = _ref.testID,
9081
+ _ref$animationType = _ref.animationType,
9082
+ animationType = _ref$animationType === void 0 ? 'none' : _ref$animationType,
9083
+ _ref$transparent = _ref.transparent,
9084
+ transparent = _ref$transparent === void 0 ? false : _ref$transparent,
9085
+ onDismiss = _ref.onDismiss;
9086
+ var theme = useTheme();
9087
+ var animatedBackdropValue = useRef(new Animated.Value(0)).current;
9088
+ var animatedModalValue = useRef(new Animated.Value(0)).current;
9089
+ // Show or hide the backdrop and modal content
9090
+ var animateBackdropAndContent = useCallback(function (_ref2) {
9091
+ var toValue = _ref2.toValue,
9092
+ callback = _ref2.callback;
9093
+ if (animationType !== 'none') {
9094
+ // Backdrop animation
9095
+ if (!transparent) {
9096
+ Animated.timing(animatedBackdropValue, _objectSpread2({
9097
+ toValue: toValue
9098
+ }, DEFAULT_ANIMATION_CONFIG)).start();
9099
+ }
9100
+ // Modal content animation
9101
+ Animated.timing(animatedModalValue, _objectSpread2({
9102
+ toValue: toValue
9103
+ }, DEFAULT_ANIMATION_CONFIG)).start(callback);
9104
+ } else {
9105
+ callback === null || callback === void 0 || callback();
9106
+ }
9107
+ }, [animationType, onShow, transparent]);
9108
+ var backdropOpacityAnimation = animatedBackdropValue.interpolate({
9109
+ inputRange: [0, 1],
9110
+ outputRange: [0, DEFAULT_BACKDROP_OPACITY]
9111
+ });
9112
+ var modalAnimation = animatedModalValue.interpolate({
9113
+ inputRange: [0, 1],
9114
+ outputRange: animationType === 'slide' ? [Dimensions.get('window').height, 0] : [0, 1]
9115
+ });
9116
+ useImperativeHandle(ref, function () {
9117
+ return {
9118
+ show: function show() {
9119
+ animateBackdropAndContent({
9120
+ toValue: 1,
9121
+ callback: onShow
9122
+ });
9123
+ },
9124
+ hide: function hide(wrapperCallback) {
9125
+ animateBackdropAndContent({
9126
+ toValue: 0,
9127
+ callback: function callback() {
9128
+ if (Platform.OS === 'ios') {
9129
+ onDismiss === null || onDismiss === void 0 || onDismiss();
9130
+ }
9131
+ wrapperCallback();
9132
+ }
9133
+ });
9134
+ }
9135
+ };
9136
+ }, [onDismiss, onShow, animateBackdropAndContent]);
9137
+ // Back button handler
9138
+ useEffect(function () {
9139
+ var backHandler = BackHandler.addEventListener('hardwareBackPress', function () {
9140
+ onRequestClose === null || onRequestClose === void 0 || onRequestClose();
9141
+ return true;
9142
+ });
9143
+ return function () {
9144
+ return backHandler.remove();
9145
+ };
9146
+ }, [onRequestClose]);
9147
+ return /*#__PURE__*/React.createElement(Portal$1, null, /*#__PURE__*/React.createElement(Animated.View, {
9148
+ style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
9149
+ backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
9150
+ opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
9151
+ })
9152
+ }), /*#__PURE__*/React.createElement(Animated.View, {
9153
+ testID: testID,
9154
+ style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
9155
+ opacity: animationType === 'fade' ? modalAnimation : 1,
9156
+ transform: [{
9157
+ translateY: animationType === 'slide' ? modalAnimation : 0
9158
+ }]
9159
+ })
9160
+ }, children));
9161
+ });
9162
+ var ModalWrapper = function ModalWrapper(_ref3) {
9163
+ var _ref3$visible = _ref3.visible,
9164
+ visible = _ref3$visible === void 0 ? true : _ref3$visible,
9165
+ props = _objectWithoutProperties(_ref3, _excluded$l);
9166
+ var modalRef = useRef(null);
9167
+ var _useState = useState(visible),
9168
+ _useState2 = _slicedToArray(_useState, 2),
9169
+ internalVisible = _useState2[0],
9170
+ setInternalVisible = _useState2[1];
9171
+ useEffect(function () {
9172
+ if (visible) {
9173
+ setInternalVisible(true);
9174
+ } else {
9175
+ var _modalRef$current;
9176
+ // Wait for animation to finish before hiding the modal
9177
+ (_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 || _modalRef$current.hide(function () {
9178
+ return setInternalVisible(false);
9179
+ });
9180
+ }
9181
+ }, [visible]);
9182
+ useEffect(function () {
9183
+ if (internalVisible) {
9184
+ var _modalRef$current2;
9185
+ (_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
9186
+ }
9187
+ }, [internalVisible]);
9188
+ return internalVisible ? /*#__PURE__*/React.createElement(Modal, _extends$1({
9189
+ ref: modalRef
9190
+ }, props)) : null;
9191
+ };
9192
+
9128
9193
  var BottomSheet = function BottomSheet(_ref) {
9129
9194
  var open = _ref.open,
9130
9195
  header = _ref.header,
@@ -9201,7 +9266,7 @@ var BottomSheet = function BottomSheet(_ref) {
9201
9266
  setInternalShowDivider: setInternalShowDivider
9202
9267
  };
9203
9268
  }, [setInternalShowDivider]);
9204
- return /*#__PURE__*/React.createElement(Modal$1, {
9269
+ return /*#__PURE__*/React.createElement(ModalWrapper, {
9205
9270
  visible: visible,
9206
9271
  onRequestClose: onRequestClose,
9207
9272
  transparent: true,
@@ -11890,12 +11955,12 @@ var Indicator = index$a(View)(function (_ref2) {
11890
11955
  };
11891
11956
  });
11892
11957
 
11893
- var _excluded$l = ["intent", "children"];
11958
+ var _excluded$k = ["intent", "children"];
11894
11959
  var DataCard = function DataCard(_ref) {
11895
11960
  var _ref$intent = _ref.intent,
11896
11961
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
11897
11962
  children = _ref.children,
11898
- nativeProps = _objectWithoutProperties(_ref, _excluded$l);
11963
+ nativeProps = _objectWithoutProperties(_ref, _excluded$k);
11899
11964
  return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
11900
11965
  themeIntent: intent,
11901
11966
  testID: "data-card-indicator"
@@ -11913,11 +11978,11 @@ var StyledCard$1 = index$a(View)(function (_ref) {
11913
11978
  });
11914
11979
  });
11915
11980
 
11916
- var _excluded$k = ["intent", "children"];
11981
+ var _excluded$j = ["intent", "children"];
11917
11982
  var Card = function Card(_ref) {
11918
11983
  var intent = _ref.intent,
11919
11984
  children = _ref.children,
11920
- nativeProps = _objectWithoutProperties(_ref, _excluded$k);
11985
+ nativeProps = _objectWithoutProperties(_ref, _excluded$j);
11921
11986
  return /*#__PURE__*/React.createElement(StyledCard$1, _extends$1({}, nativeProps, {
11922
11987
  themeIntent: intent
11923
11988
  }), children);
@@ -12182,7 +12247,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
12182
12247
  });
12183
12248
  CardCarousel.displayName = 'CardCarousel';
12184
12249
 
12185
- var _excluded$j = ["rounded", "size", "testID", "style"];
12250
+ var _excluded$i = ["rounded", "size", "testID", "style"];
12186
12251
  var Image = function Image(_ref) {
12187
12252
  var _ref$rounded = _ref.rounded,
12188
12253
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -12190,7 +12255,7 @@ var Image = function Image(_ref) {
12190
12255
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
12191
12256
  testID = _ref.testID,
12192
12257
  style = _ref.style,
12193
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$j);
12258
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$i);
12194
12259
  var theme = useTheme();
12195
12260
  var imageSize = theme.__hd__.image.sizes[size];
12196
12261
  return /*#__PURE__*/React.createElement(Image$1, _extends$1({
@@ -12310,7 +12375,7 @@ var CarouselItem = function CarouselItem(_ref) {
12310
12375
  }, heading), body ? /*#__PURE__*/React.createElement(Typography.Body, null, body) : null));
12311
12376
  };
12312
12377
 
12313
- var _excluded$i = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12378
+ var _excluded$h = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12314
12379
  function useStateFromProp(initialValue) {
12315
12380
  var _useState = useState(initialValue),
12316
12381
  _useState2 = _slicedToArray(_useState, 2),
@@ -12337,7 +12402,7 @@ var Carousel = function Carousel(_ref) {
12337
12402
  testID = _ref.testID,
12338
12403
  _ref$pageControlPosit = _ref.pageControlPosition,
12339
12404
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
12340
- nativeProps = _objectWithoutProperties(_ref, _excluded$i);
12405
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
12341
12406
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
12342
12407
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
12343
12408
  var theme = useTheme();
@@ -12532,7 +12597,7 @@ var StyledIcon$1 = index$a(Icon)(function (_ref4) {
12532
12597
  };
12533
12598
  });
12534
12599
 
12535
- var _excluded$h = ["label", "variant", "selected", "icon", "onPress"];
12600
+ var _excluded$g = ["label", "variant", "selected", "icon", "onPress"];
12536
12601
  var Chip = function Chip(_ref) {
12537
12602
  var label = _ref.label,
12538
12603
  _ref$variant = _ref.variant,
@@ -12541,7 +12606,7 @@ var Chip = function Chip(_ref) {
12541
12606
  selected = _ref$selected === void 0 ? false : _ref$selected,
12542
12607
  icon = _ref.icon,
12543
12608
  onPress = _ref.onPress,
12544
- otherProps = _objectWithoutProperties(_ref, _excluded$h);
12609
+ otherProps = _objectWithoutProperties(_ref, _excluded$g);
12545
12610
  var internalIcon = React.useMemo(function () {
12546
12611
  if (icon && variant === 'filled') {
12547
12612
  return icon;
@@ -12628,8 +12693,6 @@ var getThemeState = function getThemeState(_ref) {
12628
12693
  var Checkbox = function Checkbox(_ref2) {
12629
12694
  var checked = _ref2.checked,
12630
12695
  description = _ref2.description,
12631
- _ref2$withBorder = _ref2.withBorder,
12632
- withBorder = _ref2$withBorder === void 0 ? false : _ref2$withBorder,
12633
12696
  _ref2$disabled = _ref2.disabled,
12634
12697
  disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
12635
12698
  onPress = _ref2.onPress,
@@ -12637,7 +12700,6 @@ var Checkbox = function Checkbox(_ref2) {
12637
12700
  testID = _ref2.testID,
12638
12701
  _ref2$readonly = _ref2.readonly,
12639
12702
  readonly = _ref2$readonly === void 0 ? false : _ref2$readonly;
12640
- 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);
12641
12703
  var themeState = getThemeState({
12642
12704
  disabled: disabled,
12643
12705
  readonly: readonly
@@ -12788,7 +12850,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
12788
12850
  };
12789
12851
  });
12790
12852
 
12791
- var _excluded$g = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
12853
+ var _excluded$f = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
12792
12854
  var getState$1 = function getState(_ref) {
12793
12855
  var disabled = _ref.disabled,
12794
12856
  error = _ref.error,
@@ -12841,7 +12903,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12841
12903
  allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
12842
12904
  _ref2$variant = _ref2.variant,
12843
12905
  variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
12844
- nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
12906
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
12845
12907
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
12846
12908
  var isEmptyValue = displayText.length === 0;
12847
12909
  var actualSuffix = loading ? 'loading' : suffix;
@@ -13386,11 +13448,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
13386
13448
  }))));
13387
13449
  };
13388
13450
 
13389
- var _excluded$f = ["variant"];
13451
+ var _excluded$e = ["variant"];
13390
13452
  var DatePicker = function DatePicker(_ref) {
13391
13453
  var _ref$variant = _ref.variant,
13392
13454
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
13393
- props = _objectWithoutProperties(_ref, _excluded$f);
13455
+ props = _objectWithoutProperties(_ref, _excluded$e);
13394
13456
  if (variant === 'calendar') {
13395
13457
  return /*#__PURE__*/React.createElement(DatePickerCalendar, props);
13396
13458
  }
@@ -13742,332 +13804,6 @@ var Empty = function Empty(_ref) {
13742
13804
  }, description));
13743
13805
  };
13744
13806
 
13745
- var customAlphabet = function customAlphabet(alphabet) {
13746
- var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
13747
- return function () {
13748
- var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
13749
- var id = '';
13750
- var i = size;
13751
- while (i--) {
13752
- id += alphabet[Math.random() * alphabet.length | 0];
13753
- }
13754
- return id;
13755
- };
13756
- };
13757
-
13758
- var ACTIONS;
13759
- (function (ACTIONS) {
13760
- ACTIONS[ACTIONS["REGISTER_HOST"] = 0] = "REGISTER_HOST";
13761
- ACTIONS[ACTIONS["DEREGISTER_HOST"] = 1] = "DEREGISTER_HOST";
13762
- ACTIONS[ACTIONS["ADD_UPDATE_PORTAL"] = 2] = "ADD_UPDATE_PORTAL";
13763
- ACTIONS[ACTIONS["REMOVE_PORTAL"] = 3] = "REMOVE_PORTAL";
13764
- })(ACTIONS || (ACTIONS = {}));
13765
- var INITIAL_STATE = {};
13766
-
13767
- var PortalStateContext = /*#__PURE__*/createContext(null);
13768
- var PortalDispatchContext = /*#__PURE__*/createContext(null);
13769
-
13770
- var usePortal = function usePortal() {
13771
- var hostName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'root';
13772
- var dispatch = useContext(PortalDispatchContext);
13773
- if (dispatch === null) {
13774
- throw new Error("You must add 'PortalProvider' to the root component.");
13775
- }
13776
- var registerHost = useCallback(function () {
13777
- dispatch({
13778
- type: ACTIONS.REGISTER_HOST,
13779
- hostName: hostName
13780
- });
13781
- }, []);
13782
- var deregisterHost = useCallback(function () {
13783
- dispatch({
13784
- type: ACTIONS.DEREGISTER_HOST,
13785
- hostName: hostName
13786
- });
13787
- }, []);
13788
- var addUpdatePortal = useCallback(function (name, node) {
13789
- dispatch({
13790
- type: ACTIONS.ADD_UPDATE_PORTAL,
13791
- hostName: hostName,
13792
- portalName: name,
13793
- node: node
13794
- });
13795
- }, []);
13796
- var removePortal = useCallback(function (name) {
13797
- dispatch({
13798
- type: ACTIONS.REMOVE_PORTAL,
13799
- hostName: hostName,
13800
- portalName: name
13801
- });
13802
- }, []);
13803
- return {
13804
- registerHost: registerHost,
13805
- deregisterHost: deregisterHost,
13806
- addPortal: addUpdatePortal,
13807
- updatePortal: addUpdatePortal,
13808
- removePortal: removePortal
13809
- };
13810
- };
13811
-
13812
- var usePortalState = function usePortalState(hostName) {
13813
- var state = useContext(PortalStateContext);
13814
- if (state === null) {
13815
- throw new Error("You must add 'PortalProvider' to the root component.");
13816
- }
13817
- return state[hostName] || [];
13818
- };
13819
-
13820
- var PortalHostComponent = function PortalHostComponent(_ref) {
13821
- var name = _ref.name;
13822
- var state = usePortalState(name);
13823
- var _usePortal = usePortal(name),
13824
- registerHost = _usePortal.registerHost,
13825
- deregisterHost = _usePortal.deregisterHost;
13826
- useEffect(function () {
13827
- registerHost();
13828
- return function () {
13829
- deregisterHost();
13830
- };
13831
- }, []);
13832
- return /*#__PURE__*/React.createElement(React.Fragment, null, state.map(function (item) {
13833
- return item.node;
13834
- }));
13835
- };
13836
- var PortalHost = /*#__PURE__*/memo(PortalHostComponent);
13837
- PortalHost.displayName = 'PortalHost';
13838
-
13839
- var registerHostIfNotExist = function registerHostIfNotExist(state, hostName) {
13840
- if (!(hostName in state)) {
13841
- return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, []));
13842
- }
13843
- return _objectSpread2({}, state);
13844
- };
13845
- var deregisterHost = function deregisterHost(state, hostName) {
13846
- return _objectSpread2({}, omit([hostName], state));
13847
- };
13848
- var addUpdatePortal = function addUpdatePortal(state, hostName, portalName, node) {
13849
- var newState = registerHostIfNotExist(state, hostName);
13850
- var index = newState[hostName].findIndex(function (item) {
13851
- return item.name === portalName;
13852
- });
13853
- if (index !== -1) {
13854
- return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, newState[hostName].map(function (item, i) {
13855
- if (index === i) {
13856
- return _objectSpread2(_objectSpread2({}, item), {}, {
13857
- node: node
13858
- });
13859
- }
13860
- return item;
13861
- })));
13862
- }
13863
- return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, [].concat(_toConsumableArray(newState[hostName]), [{
13864
- name: portalName,
13865
- node: node
13866
- }])));
13867
- };
13868
- var removePortal = function removePortal(state, hostName, portalName) {
13869
- if (!(hostName in state)) {
13870
- return _objectSpread2({}, state);
13871
- }
13872
- return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, state[hostName].filter(function (item) {
13873
- return item.name !== portalName;
13874
- })));
13875
- };
13876
- var reducer = function reducer(state, action) {
13877
- var type = action.type;
13878
- switch (type) {
13879
- case ACTIONS.REGISTER_HOST:
13880
- return registerHostIfNotExist(state, action.hostName);
13881
- case ACTIONS.DEREGISTER_HOST:
13882
- return deregisterHost(state, action.hostName);
13883
- case ACTIONS.ADD_UPDATE_PORTAL:
13884
- return addUpdatePortal(state, action.hostName, action.portalName, action.node);
13885
- case ACTIONS.REMOVE_PORTAL:
13886
- return removePortal(state, action.hostName, action.portalName);
13887
- default:
13888
- return _objectSpread2({}, state);
13889
- }
13890
- };
13891
-
13892
- var PortalProviderComponent = function PortalProviderComponent(_ref) {
13893
- var _ref$rootHostName = _ref.rootHostName,
13894
- rootHostName = _ref$rootHostName === void 0 ? 'root' : _ref$rootHostName,
13895
- children = _ref.children;
13896
- var _useReducer = useReducer(reducer, INITIAL_STATE),
13897
- _useReducer2 = _slicedToArray(_useReducer, 2),
13898
- state = _useReducer2[0],
13899
- dispatch = _useReducer2[1];
13900
- return /*#__PURE__*/React.createElement(PortalDispatchContext.Provider, {
13901
- value: dispatch
13902
- }, /*#__PURE__*/React.createElement(PortalStateContext.Provider, {
13903
- value: state
13904
- }, children, /*#__PURE__*/React.createElement(PortalHost, {
13905
- name: rootHostName
13906
- })));
13907
- };
13908
- var PortalProvider = /*#__PURE__*/memo(PortalProviderComponent);
13909
- PortalProvider.displayName = 'PortalProvider';
13910
-
13911
- var nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
13912
- var PortalComponent = function PortalComponent(_ref) {
13913
- var name = _ref.name,
13914
- hostName = _ref.hostName,
13915
- children = _ref.children,
13916
- theme = _ref.theme;
13917
- var defaultTheme = useTheme();
13918
- var _usePortal = usePortal(hostName),
13919
- addUpdatePortal = _usePortal.addPortal,
13920
- removePortal = _usePortal.removePortal;
13921
- var nameOrRandom = useMemo(function () {
13922
- return name || nanoid();
13923
- }, [name]);
13924
- var ChildrenComponent = useMemo(function () {
13925
- return /*#__PURE__*/React.createElement(ThemeProvider, {
13926
- theme: theme || defaultTheme
13927
- }, children);
13928
- }, [theme, children, defaultTheme]);
13929
- useLayoutEffect(function () {
13930
- addUpdatePortal(nameOrRandom, ChildrenComponent);
13931
- return function () {
13932
- removePortal(nameOrRandom);
13933
- };
13934
- }, [addUpdatePortal]);
13935
- useLayoutEffect(function () {
13936
- addUpdatePortal(nameOrRandom, ChildrenComponent);
13937
- }, [ChildrenComponent]);
13938
- return null;
13939
- };
13940
- var Portal = /*#__PURE__*/memo(PortalComponent);
13941
- Portal.displayName = 'Portal';
13942
- var Portal$1 = Object.assign(Portal, {
13943
- Provider: PortalProvider,
13944
- Host: PortalHost
13945
- });
13946
-
13947
- var _excluded$e = ["visible"];
13948
- var DEFAULT_BACKDROP_OPACITY = 0.4;
13949
- var DEFAULT_ANIMATION_CONFIG = {
13950
- easing: Easing.inOut(Easing.cubic),
13951
- useNativeDriver: Platform.OS !== 'web',
13952
- duration: 400
13953
- };
13954
- var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
13955
- var children = _ref.children,
13956
- onShow = _ref.onShow,
13957
- onRequestClose = _ref.onRequestClose,
13958
- testID = _ref.testID,
13959
- _ref$animationType = _ref.animationType,
13960
- animationType = _ref$animationType === void 0 ? 'none' : _ref$animationType,
13961
- _ref$transparent = _ref.transparent,
13962
- transparent = _ref$transparent === void 0 ? false : _ref$transparent,
13963
- onDismiss = _ref.onDismiss;
13964
- var theme = useTheme();
13965
- var animatedBackdropValue = useRef(new Animated.Value(0)).current;
13966
- var animatedModalValue = useRef(new Animated.Value(0)).current;
13967
- // Show or hide the backdrop and modal content
13968
- var animateBackdropAndContent = useCallback(function (_ref2) {
13969
- var toValue = _ref2.toValue,
13970
- callback = _ref2.callback;
13971
- if (animationType !== 'none') {
13972
- // Backdrop animation
13973
- if (!transparent) {
13974
- Animated.timing(animatedBackdropValue, _objectSpread2({
13975
- toValue: toValue
13976
- }, DEFAULT_ANIMATION_CONFIG)).start();
13977
- }
13978
- // Modal content animation
13979
- Animated.timing(animatedModalValue, _objectSpread2({
13980
- toValue: toValue
13981
- }, DEFAULT_ANIMATION_CONFIG)).start(callback);
13982
- } else {
13983
- callback === null || callback === void 0 || callback();
13984
- }
13985
- }, [animationType, onShow, transparent]);
13986
- var backdropOpacityAnimation = animatedBackdropValue.interpolate({
13987
- inputRange: [0, 1],
13988
- outputRange: [0, DEFAULT_BACKDROP_OPACITY]
13989
- });
13990
- var modalAnimation = animatedModalValue.interpolate({
13991
- inputRange: [0, 1],
13992
- outputRange: animationType === 'slide' ? [Dimensions.get('window').height, 0] : [0, 1]
13993
- });
13994
- useImperativeHandle(ref, function () {
13995
- return {
13996
- show: function show() {
13997
- animateBackdropAndContent({
13998
- toValue: 1,
13999
- callback: onShow
14000
- });
14001
- },
14002
- hide: function hide(wrapperCallback) {
14003
- animateBackdropAndContent({
14004
- toValue: 0,
14005
- callback: function callback() {
14006
- if (Platform.OS === 'ios') {
14007
- onDismiss === null || onDismiss === void 0 || onDismiss();
14008
- }
14009
- wrapperCallback();
14010
- }
14011
- });
14012
- }
14013
- };
14014
- }, [onDismiss, onShow, animateBackdropAndContent]);
14015
- // Back button handler
14016
- useEffect(function () {
14017
- var backHandler = BackHandler.addEventListener('hardwareBackPress', function () {
14018
- onRequestClose === null || onRequestClose === void 0 || onRequestClose();
14019
- return true;
14020
- });
14021
- return function () {
14022
- return backHandler.remove();
14023
- };
14024
- }, [onRequestClose]);
14025
- return /*#__PURE__*/React.createElement(Portal$1, null, /*#__PURE__*/React.createElement(Animated.View, {
14026
- style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
14027
- backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
14028
- opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
14029
- })
14030
- }), /*#__PURE__*/React.createElement(Animated.View, {
14031
- testID: testID,
14032
- style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
14033
- opacity: animationType === 'fade' ? modalAnimation : 1,
14034
- transform: [{
14035
- translateY: animationType === 'slide' ? modalAnimation : 0
14036
- }]
14037
- })
14038
- }, children));
14039
- });
14040
- var ModalWrapper = function ModalWrapper(_ref3) {
14041
- var _ref3$visible = _ref3.visible,
14042
- visible = _ref3$visible === void 0 ? true : _ref3$visible,
14043
- props = _objectWithoutProperties(_ref3, _excluded$e);
14044
- var modalRef = useRef(null);
14045
- var _useState = useState(visible),
14046
- _useState2 = _slicedToArray(_useState, 2),
14047
- internalVisible = _useState2[0],
14048
- setInternalVisible = _useState2[1];
14049
- useEffect(function () {
14050
- if (visible) {
14051
- setInternalVisible(true);
14052
- } else {
14053
- var _modalRef$current;
14054
- // Wait for animation to finish before hiding the modal
14055
- (_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 || _modalRef$current.hide(function () {
14056
- return setInternalVisible(false);
14057
- });
14058
- }
14059
- }, [visible]);
14060
- useEffect(function () {
14061
- if (internalVisible) {
14062
- var _modalRef$current2;
14063
- (_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
14064
- }
14065
- }, [internalVisible]);
14066
- return internalVisible ? /*#__PURE__*/React.createElement(Modal, _extends$1({
14067
- ref: modalRef
14068
- }, props)) : null;
14069
- };
14070
-
14071
13807
  var StyledErrorModal = index$a(ModalWrapper)({
14072
13808
  height: '100%',
14073
13809
  width: '100%'
@@ -14151,7 +13887,7 @@ var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
14151
13887
  });
14152
13888
 
14153
13889
  var _excluded$d = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14154
- _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
13890
+ _excluded2 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
14155
13891
  var renderImage$1 = function renderImage(image) {
14156
13892
  if ( /*#__PURE__*/isValidElement(image)) {
14157
13893
  return /*#__PURE__*/React.cloneElement(image, {
@@ -14205,9 +13941,7 @@ var ErrorPage = function ErrorPage(_ref) {
14205
13941
  * @return {*} {ReactElement}
14206
13942
  */
14207
13943
  var Error$1 = function Error(_ref2) {
14208
- var _ref2$visible = _ref2.visible,
14209
- visible = _ref2$visible === void 0 ? true : _ref2$visible,
14210
- _ref2$variant = _ref2.variant,
13944
+ var _ref2$variant = _ref2.variant,
14211
13945
  variant = _ref2$variant === void 0 ? 'in-page' : _ref2$variant,
14212
13946
  title = _ref2.title,
14213
13947
  description = _ref2.description,
@@ -14218,8 +13952,7 @@ var Error$1 = function Error(_ref2) {
14218
13952
  secondaryCtaText = _ref2.secondaryCtaText,
14219
13953
  onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
14220
13954
  nativeProps = _objectWithoutProperties(_ref2, _excluded2);
14221
- useDeprecation("Visible prop is deprecated. Use conditional rendering instead", visible);
14222
- var _useState = useState(visible),
13955
+ var _useState = useState(true),
14223
13956
  _useState2 = _slicedToArray(_useState, 2),
14224
13957
  isVisible = _useState2[0],
14225
13958
  setIsVisible = _useState2[1];
@@ -14236,9 +13969,6 @@ var Error$1 = function Error(_ref2) {
14236
13969
  }
14237
13970
  setCtaPressed(null);
14238
13971
  }, [ctaPressed, onCtaPress, onSecondaryCtaPress]);
14239
- useEffect(function () {
14240
- setIsVisible(visible);
14241
- }, [visible]);
14242
13972
  // These useEffect lines prevents race condition error when callback contains navigation logic
14243
13973
  useEffect(function () {
14244
13974
  if (ctaPressed) {
@@ -14595,8 +14325,7 @@ var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
14595
14325
  });
14596
14326
 
14597
14327
  var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
14598
- var headerTitle = _ref.headerTitle,
14599
- onPress = _ref.onPress,
14328
+ var onPress = _ref.onPress,
14600
14329
  active = _ref.active,
14601
14330
  style = _ref.style,
14602
14331
  items = _ref.items,
@@ -14605,7 +14334,6 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
14605
14334
  onBackdropPress = _ref.onBackdropPress,
14606
14335
  _ref$fabIcon = _ref.fabIcon,
14607
14336
  fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon;
14608
- useDeprecation("FAB.ActionGroup's headerTitle prop will be removed in the next major release. Please remove it.", headerTitle !== undefined);
14609
14337
  var fabRef = useRef(null);
14610
14338
  var tranlateXAnimation = useRef(new Animated.Value(active ? 1 : 0));
14611
14339
  React.useImperativeHandle(ref, function () {
@@ -14700,12 +14428,11 @@ var index$6 = Object.assign(FAB, {
14700
14428
  });
14701
14429
 
14702
14430
  var ToastContainerWrapper = index$a(View)(function (_ref) {
14703
- var theme = _ref.theme,
14704
- position = _ref.position;
14431
+ var theme = _ref.theme;
14705
14432
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
14706
14433
  paddingHorizontal: theme.__hd__.toast.space.wrapperVerticalPadding,
14707
14434
  paddingVertical: theme.__hd__.toast.space.wrapperHorizontalPadding,
14708
- flexDirection: position === 'bottom' ? 'column-reverse' : 'column',
14435
+ flexDirection: 'column-reverse',
14709
14436
  elevation: 9999
14710
14437
  });
14711
14438
  });
@@ -14758,15 +14485,6 @@ var CTAWrapper = index$a(TouchableOpacity)(function (_ref6) {
14758
14485
  };
14759
14486
  });
14760
14487
 
14761
- var ToastContext = /*#__PURE__*/createContext({});
14762
- var ToastConfigContext = /*#__PURE__*/createContext({});
14763
- var useToastConfig = function useToastConfig() {
14764
- return useContext(ToastConfigContext);
14765
- };
14766
- var useToast = function useToast() {
14767
- return useContext(ToastContext);
14768
- };
14769
-
14770
14488
  var getIntentIcon = function getIntentIcon(intent) {
14771
14489
  switch (intent) {
14772
14490
  case 'success':
@@ -14810,7 +14528,6 @@ var Toast$1 = function Toast(_ref2) {
14810
14528
  _ref2$distance = _ref2.distance,
14811
14529
  distance = _ref2$distance === void 0 ? 0 : _ref2$distance;
14812
14530
  var animatedValue = useRef(new Animated.Value(0)).current;
14813
- var toastConfig = useToastConfig();
14814
14531
  useEffect(function () {
14815
14532
  if (autoDismiss && duration >= 0) {
14816
14533
  var id = setTimeout(function () {
@@ -14836,7 +14553,7 @@ var Toast$1 = function Toast(_ref2) {
14836
14553
  });
14837
14554
  var interpolateY = animatedValue.interpolate({
14838
14555
  inputRange: [0, 1],
14839
- outputRange: toastConfig.position === 'top' ? [-20, distance] : [20, -distance]
14556
+ outputRange: [20, -distance]
14840
14557
  });
14841
14558
  return /*#__PURE__*/React.createElement(Container, {
14842
14559
  themeVariant: variant,
@@ -14894,8 +14611,6 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
14894
14611
  var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
14895
14612
  var _ref2$displayType = _ref2.displayType,
14896
14613
  displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
14897
- _ref2$position = _ref2.position,
14898
- position = _ref2$position === void 0 ? 'bottom' : _ref2$position,
14899
14614
  style = _ref2.style;
14900
14615
  var theme = useTheme$1();
14901
14616
  var _useState = useState([]),
@@ -14928,7 +14643,6 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
14928
14643
  });
14929
14644
  return /*#__PURE__*/React.createElement(ToastContainerWrapper, {
14930
14645
  pointerEvents: "box-none",
14931
- position: position,
14932
14646
  style: style
14933
14647
  }, displayType === 'single' ? /*#__PURE__*/React.createElement(SingleToastDisplay, {
14934
14648
  toastList: toastList,
@@ -14955,13 +14669,16 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
14955
14669
  });
14956
14670
  ToastContainer.displayName = 'ToastContainer';
14957
14671
 
14672
+ var ToastContext = /*#__PURE__*/createContext({});
14673
+ var ToastConfigContext = /*#__PURE__*/createContext({});
14674
+ var useToast = function useToast() {
14675
+ return useContext(ToastContext);
14676
+ };
14677
+
14958
14678
  var ToastProvider = function ToastProvider(_ref) {
14959
14679
  var children = _ref.children,
14960
14680
  _ref$displayType = _ref.displayType,
14961
- displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType,
14962
- _position = _ref.position;
14963
- var position = _position === undefined ? 'bottom' : _position;
14964
- useDeprecation("Toast's position prop is deprecated and will be removed in the next major release.\nPlease remove it.", _position !== undefined);
14681
+ displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType;
14965
14682
  var toastRef = useRef(null);
14966
14683
  // @ts-expect-error: TODO: @tungv Fix this type error
14967
14684
  var _useState = useState(null),
@@ -14975,10 +14692,9 @@ var ToastProvider = function ToastProvider(_ref) {
14975
14692
  }, []);
14976
14693
  var config = useMemo(function () {
14977
14694
  return {
14978
- displayType: displayType,
14979
- position: position
14695
+ displayType: displayType
14980
14696
  };
14981
- }, [displayType, position]);
14697
+ }, [displayType]);
14982
14698
  return /*#__PURE__*/React.createElement(ToastContext.Provider, {
14983
14699
  value: refState
14984
14700
  }, /*#__PURE__*/React.createElement(View, {
@@ -14989,8 +14705,7 @@ var ToastProvider = function ToastProvider(_ref) {
14989
14705
  value: config
14990
14706
  }, /*#__PURE__*/React.createElement(ToastContainer, {
14991
14707
  ref: toastRef,
14992
- displayType: displayType,
14993
- position: position
14708
+ displayType: displayType
14994
14709
  }))));
14995
14710
  };
14996
14711
 
@@ -16097,18 +15812,12 @@ var SectionHeading = function SectionHeading(_ref) {
16097
15812
  var icon = _ref.icon,
16098
15813
  text = _ref.text,
16099
15814
  rightChildren = _ref.rightChildren,
16100
- _ref$fontSize = _ref.fontSize,
16101
- fontSize = _ref$fontSize === void 0 ? 'large' : _ref$fontSize,
16102
15815
  _ref$intent = _ref.intent,
16103
15816
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
16104
- _ref$fontWeight = _ref.fontWeight,
16105
- fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
16106
15817
  _ref$size = _ref.size,
16107
15818
  size = _ref$size === void 0 ? 'medium' : _ref$size,
16108
15819
  style = _ref.style,
16109
15820
  testID = _ref.testID;
16110
- useDeprecation("SectionHeading's fontSize prop is deprecated and will be removed in the next major release, please remove it.", fontSize !== undefined);
16111
- useDeprecation("SectionHeading's fontWeight prop is deprecated and will be removed in the next major release, please remove it.", fontWeight !== undefined);
16112
15821
  return /*#__PURE__*/React.createElement(StyledHeading, {
16113
15822
  themeSize: size,
16114
15823
  style: style,
@@ -17321,6 +17030,10 @@ var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
17321
17030
  return refs.current;
17322
17031
  };
17323
17032
 
17033
+ var isHeroIcon = function isHeroIcon(x) {
17034
+ return IconList.includes(x);
17035
+ };
17036
+
17324
17037
  var TabWithBadge = function TabWithBadge(_ref) {
17325
17038
  var config = _ref.config,
17326
17039
  tabItem = _ref.tabItem;
@@ -17741,17 +17454,14 @@ var StyledText = index$a(Typography.Caption)(function (_ref2) {
17741
17454
  };
17742
17455
  });
17743
17456
 
17744
- var _excluded$2 = ["content", "variant", "intent", "style", "testID"];
17457
+ var _excluded$2 = ["content", "intent", "style", "testID"];
17745
17458
  var Tag = function Tag(_ref) {
17746
17459
  var content = _ref.content,
17747
- _ref$variant = _ref.variant,
17748
- variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,
17749
17460
  _ref$intent = _ref.intent,
17750
17461
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
17751
17462
  style = _ref.style,
17752
17463
  testID = _ref.testID,
17753
17464
  nativeProps = _objectWithoutProperties(_ref, _excluded$2);
17754
- useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
17755
17465
  return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
17756
17466
  themeIntent: intent,
17757
17467
  style: style,
@@ -34306,4 +34016,4 @@ var index = Object.assign(RichTextEditorWithRef, {
34306
34016
  Toolbar: EditorToolbar
34307
34017
  });
34308
34018
 
34309
- export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
34019
+ export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };