@hero-design/rn 7.20.1 → 7.22.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 (132) hide show
  1. package/.eslintrc.js +11 -0
  2. package/.turbo/turbo-build.log +9 -9
  3. package/babel.config.js +1 -1
  4. package/es/index.js +714 -471
  5. package/lib/index.js +720 -474
  6. package/package.json +9 -15
  7. package/rollup.config.js +1 -0
  8. package/src/components/BottomNavigation/__tests__/index.spec.tsx +1 -1
  9. package/src/components/BottomNavigation/index.tsx +3 -3
  10. package/src/components/BottomSheet/index.tsx +6 -1
  11. package/src/components/Box/helpers.ts +1 -1
  12. package/src/components/Calendar/index.tsx +9 -9
  13. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +4 -4
  14. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +13 -13
  15. package/src/components/Collapse/index.tsx +1 -1
  16. package/src/components/Drawer/DragableDrawer/helpers.ts +7 -3
  17. package/src/components/Empty/StyledEmpty.tsx +1 -9
  18. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +58 -5
  19. package/src/components/Empty/__tests__/index.spec.tsx +13 -0
  20. package/src/components/Empty/index.tsx +38 -18
  21. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  22. package/src/components/Icon/HeroIcon/selection.json +7029 -1
  23. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +81 -0
  24. package/src/components/Image/__tests__/index.spec.tsx +29 -0
  25. package/src/components/Image/index.tsx +46 -0
  26. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +5 -5
  27. package/src/components/PinInput/index.tsx +1 -1
  28. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +60 -60
  29. package/src/components/RichTextEditor/EditorToolbar.tsx +3 -3
  30. package/src/components/RichTextEditor/RichTextEditor.tsx +5 -5
  31. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +2 -2
  32. package/src/components/RichTextEditor/__tests__/MentionList.spec.tsx +1 -1
  33. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +2 -2
  34. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -2
  35. package/src/components/Select/MultiSelect/OptionList.tsx +5 -7
  36. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +21 -0
  37. package/src/components/Select/MultiSelect/index.tsx +35 -5
  38. package/src/components/Select/SingleSelect/OptionList.tsx +4 -5
  39. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +16 -0
  40. package/src/components/Select/SingleSelect/index.tsx +36 -6
  41. package/src/components/Select/StyledOptionList.tsx +3 -9
  42. package/src/components/Select/helpers.tsx +4 -4
  43. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +43 -0
  44. package/src/components/Slider/__tests__/index.spec.tsx +33 -0
  45. package/src/components/Slider/index.tsx +89 -0
  46. package/src/components/Switch/SelectorSwitch/Option.tsx +67 -0
  47. package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +25 -0
  48. package/src/components/Switch/SelectorSwitch/__tests__/Option.spec.tsx +61 -0
  49. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +195 -0
  50. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +121 -0
  51. package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +62 -0
  52. package/src/components/Switch/SelectorSwitch/index.tsx +60 -0
  53. package/src/components/Switch/StyledSwitch.tsx +4 -4
  54. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +10 -10
  55. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  56. package/src/components/Switch/index.tsx +9 -5
  57. package/src/components/Tabs/ScrollableTabs.tsx +12 -5
  58. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +1 -1
  59. package/src/components/Tabs/__tests__/index.spec.tsx +1 -1
  60. package/src/components/Tabs/index.tsx +13 -6
  61. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3 -1
  62. package/src/components/TextInput/__tests__/index.spec.tsx +114 -112
  63. package/src/components/TextInput/index.tsx +64 -59
  64. package/src/components/Toast/ToastContainer.tsx +6 -6
  65. package/src/index.ts +4 -0
  66. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +70 -23
  67. package/src/theme/components/alert.ts +1 -2
  68. package/src/theme/components/avatar.ts +8 -8
  69. package/src/theme/components/badge.ts +4 -4
  70. package/src/theme/components/bottomNavigation.ts +1 -1
  71. package/src/theme/components/bottomSheet.ts +2 -3
  72. package/src/theme/components/calendar.ts +9 -7
  73. package/src/theme/components/card.ts +1 -1
  74. package/src/theme/components/checkbox.ts +2 -5
  75. package/src/theme/components/datePicker.ts +3 -3
  76. package/src/theme/components/drawer.ts +2 -3
  77. package/src/theme/components/empty.ts +3 -8
  78. package/src/theme/components/fab.ts +2 -2
  79. package/src/theme/components/image.ts +12 -0
  80. package/src/theme/components/pinInput.ts +3 -3
  81. package/src/theme/components/progress.ts +2 -3
  82. package/src/theme/components/radio.ts +7 -3
  83. package/src/theme/components/richTextEditor.ts +4 -4
  84. package/src/theme/components/slider.ts +13 -0
  85. package/src/theme/components/switch.ts +28 -17
  86. package/src/theme/components/tabs.ts +1 -1
  87. package/src/theme/components/timePicker.ts +3 -3
  88. package/src/theme/components/toast.ts +1 -2
  89. package/src/theme/getTheme.ts +9 -2
  90. package/src/theme/global/colors/swag.ts +2 -0
  91. package/src/theme/global/colors/types.ts +2 -0
  92. package/src/theme/global/index.ts +3 -0
  93. package/src/theme/global/scale.ts +3 -0
  94. package/src/theme/global/sizes.ts +29 -0
  95. package/testUtils/setup.tsx +15 -1
  96. package/tsconfig.json +1 -1
  97. package/types/components/BottomSheet/index.d.ts +5 -1
  98. package/types/components/Empty/StyledEmpty.d.ts +1 -7
  99. package/types/components/Empty/index.d.ts +8 -2
  100. package/types/components/Image/__tests__/index.spec.d.ts +1 -0
  101. package/types/components/Image/index.d.ts +17 -0
  102. package/types/components/Select/MultiSelect/OptionList.d.ts +5 -2
  103. package/types/components/Select/MultiSelect/index.d.ts +7 -1
  104. package/types/components/Select/SingleSelect/OptionList.d.ts +5 -2
  105. package/types/components/Select/SingleSelect/index.d.ts +8 -2
  106. package/types/components/Select/StyledOptionList.d.ts +4 -3
  107. package/types/components/Select/index.d.ts +1 -1
  108. package/types/components/Slider/__tests__/index.spec.d.ts +1 -0
  109. package/types/components/Slider/index.d.ts +52 -0
  110. package/types/components/Switch/SelectorSwitch/Option.d.ts +10 -0
  111. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +19 -0
  112. package/types/components/Switch/SelectorSwitch/__tests__/Option.spec.d.ts +1 -0
  113. package/types/components/Switch/SelectorSwitch/__tests__/index.spec.d.ts +1 -0
  114. package/types/components/Switch/SelectorSwitch/index.d.ts +37 -0
  115. package/types/components/Switch/index.d.ts +5 -3
  116. package/types/components/Tabs/ScrollableTabs.d.ts +1 -1
  117. package/types/components/Tabs/index.d.ts +2 -2
  118. package/types/components/TextInput/index.d.ts +6 -5
  119. package/types/index.d.ts +3 -1
  120. package/types/theme/components/datePicker.d.ts +2 -1
  121. package/types/theme/components/empty.d.ts +2 -5
  122. package/types/theme/components/image.d.ts +8 -0
  123. package/types/theme/components/slider.d.ts +9 -0
  124. package/types/theme/components/switch.d.ts +27 -12
  125. package/types/theme/components/timePicker.d.ts +2 -1
  126. package/types/theme/getTheme.d.ts +4 -0
  127. package/types/theme/global/colors/types.d.ts +2 -0
  128. package/types/theme/global/index.d.ts +3 -0
  129. package/types/theme/global/scale.d.ts +1 -0
  130. package/types/theme/global/sizes.d.ts +14 -0
  131. package/.eslintrc.json +0 -61
  132. package/.prettierrc.json +0 -8
package/es/index.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as reactNative from 'react-native';
2
- import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, Easing, TouchableOpacity, Text as Text$1, Image, TouchableWithoutFeedback, Pressable, SafeAreaView, TouchableHighlight, Modal, TextInput as TextInput$1, PanResponder, InteractionManager, Keyboard, SectionList, FlatList, LayoutAnimation } from 'react-native';
2
+ import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, Easing, TouchableOpacity, Text as Text$1, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, TouchableHighlight, Modal, TextInput as TextInput$1, PanResponder, InteractionManager, SectionList, Keyboard, FlatList, LayoutAnimation } from 'react-native';
3
3
  import React, { useContext, createContext, createElement, forwardRef, useEffect, useCallback, useRef, useMemo, useState, useLayoutEffect, useImperativeHandle } from 'react';
4
4
  import { createIconSetFromIcoMoon } from 'react-native-vector-icons';
5
5
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
6
6
  import DateTimePicker from '@react-native-community/datetimepicker';
7
+ import RnSlider from '@react-native-community/slider';
7
8
  import PagerView from 'react-native-pager-view';
8
9
  import { EventEmitter } from 'events';
9
10
  import { WebView } from 'react-native-webview';
@@ -272,12 +273,14 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
272
273
 
273
274
  var BASE_BORDER_WIDTH = 1;
274
275
  var BASE_SPACE = 8;
276
+ var BASE_SIZE = 8;
275
277
  var BASE_FONT = 'BeVietnamPro';
276
278
  var BASE_FONT_SIZE = 10;
277
279
  var BASE_RADIUS = 4;
278
280
  var scale$1 = {
279
281
  borderWidth: BASE_BORDER_WIDTH,
280
282
  space: BASE_SPACE,
283
+ size: BASE_SIZE,
281
284
  font: BASE_FONT,
282
285
  fontSize: BASE_FONT_SIZE,
283
286
  radius: BASE_RADIUS
@@ -1309,6 +1312,7 @@ var swagSystemPalette = {
1309
1312
  shadow: palette$5.greyLight45,
1310
1313
  __alpha__globalPrimary: palette$5.maasstrichtBlue,
1311
1314
  __alpha__globalSecondary1: palette$5.maasstrichtBlueLight30,
1315
+ __alpha__globalSecondary4: palette$5.maasstrichtBlueLight90,
1312
1316
  __alpha__globalNeutral3: palette$5.greyLight90,
1313
1317
  __alpha__globalLabel1: palette$5.vermilion,
1314
1318
  __alpha__globalLabel2: palette$5.deepSaffron,
@@ -1319,6 +1323,7 @@ var swagSystemPalette = {
1319
1323
  __alpha__globalLabel7: palette$5.seashell,
1320
1324
  __alpha__globalLabel8: palette$5.honeydew,
1321
1325
  __alpha__globalLabel9: palette$5.aliceBlue,
1326
+ __alpha__primary1: palette$2.scarletGum,
1322
1327
  __alpha__primary2: palette$2.mauve,
1323
1328
  __alpha__secondary1: palette$2.scarletGumLight30,
1324
1329
  __alpha__secondary2: palette$2.scarletGumLight50,
@@ -1426,6 +1431,20 @@ var getSpace = function getSpace(baseSpace) {
1426
1431
  };
1427
1432
  };
1428
1433
 
1434
+ var getSizes = function getSizes(baseSize) {
1435
+ return _objectSpread2(_objectSpread2({}, getSpace(baseSize)), {}, {
1436
+ xxxxxlarge: scale(baseSize * 8),
1437
+ '6xlarge': scale(baseSize * 9),
1438
+ '7xlarge': scale(baseSize * 10),
1439
+ '9xlarge': scale(baseSize * 12),
1440
+ '14xlarge': scale(baseSize * 17),
1441
+ '15xlarge': scale(baseSize * 18),
1442
+ '18xlarge': scale(baseSize * 21),
1443
+ '19xlarge': scale(baseSize * 22) // 176
1444
+
1445
+ });
1446
+ };
1447
+
1429
1448
  var getBorderWidths = function getBorderWidths(baseBorderWidth) {
1430
1449
  return {
1431
1450
  base: baseBorderWidth,
@@ -1451,6 +1470,7 @@ var getGlobalTheme = function getGlobalTheme(scale, systemPalette) {
1451
1470
  var lineHeights = getLineHeights(fontSizes);
1452
1471
  var borderWidths = getBorderWidths(scale.borderWidth);
1453
1472
  var space = getSpace(scale.space);
1473
+ var sizes = getSizes(scale.size);
1454
1474
  var radii = getRadii(scale.radius);
1455
1475
  return {
1456
1476
  colors: _objectSpread2({}, systemPalette),
@@ -1459,6 +1479,7 @@ var getGlobalTheme = function getGlobalTheme(scale, systemPalette) {
1459
1479
  lineHeights: lineHeights,
1460
1480
  borderWidths: borderWidths,
1461
1481
  space: space,
1482
+ sizes: sizes,
1462
1483
  radii: radii
1463
1484
  };
1464
1485
  };
@@ -1490,7 +1511,7 @@ var getAlertTheme = function getAlertTheme(theme) {
1490
1511
  divider: theme.colors.outline
1491
1512
  };
1492
1513
  var sizes = {
1493
- height: scale(48)
1514
+ height: theme.sizes.xxxlarge
1494
1515
  };
1495
1516
  var space = {
1496
1517
  contentPaddingHorizontal: theme.space.smallMedium,
@@ -1522,14 +1543,14 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1522
1543
  warning: theme.colors.warning
1523
1544
  };
1524
1545
  var sizes = {
1525
- small: theme.space.xlarge,
1526
- medium: theme.space.xxlarge,
1527
- large: theme.space.xxxlarge,
1528
- xlarge: theme.space.xxxxlarge,
1529
- xxlarge: theme.space.xlarge * 2,
1530
- xxxlarge: theme.space.xxlarge * 2,
1531
- xxxxlarge: theme.space.xxxlarge * 2,
1532
- xxxxxlarge: theme.space.small * 17
1546
+ small: theme.sizes.xlarge,
1547
+ medium: theme.sizes.xxlarge,
1548
+ large: theme.sizes.xxxlarge,
1549
+ xlarge: theme.sizes.xxxxlarge,
1550
+ xxlarge: theme.sizes.xxxxxlarge,
1551
+ xxxlarge: theme.sizes['7xlarge'],
1552
+ xxxxlarge: theme.sizes['9xlarge'],
1553
+ xxxxxlarge: theme.sizes['14xlarge']
1533
1554
  };
1534
1555
  var fontSizes = {
1535
1556
  small: theme.fontSizes.large,
@@ -1572,10 +1593,10 @@ var getBadgeTheme = function getBadgeTheme(theme) {
1572
1593
  "default": theme.fontSizes.small
1573
1594
  };
1574
1595
  var sizes = {
1575
- height: theme.fontSizes.small + theme.space.small,
1576
- minWidth: theme.fontSizes.small + theme.space.small,
1577
- statusHeight: theme.space.small,
1578
- statusWidth: theme.space.small
1596
+ height: theme.fontSizes.small + theme.sizes.small,
1597
+ minWidth: theme.fontSizes.small + theme.sizes.small,
1598
+ statusHeight: theme.sizes.small,
1599
+ statusWidth: theme.sizes.small
1579
1600
  };
1580
1601
  var space = {
1581
1602
  horizontalPadding: theme.space.small,
@@ -1597,7 +1618,7 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
1597
1618
  background: theme.colors.platformBackground
1598
1619
  };
1599
1620
  var sizes = {
1600
- height: 72
1621
+ height: theme.sizes['6xlarge']
1601
1622
  };
1602
1623
  var shadows = {
1603
1624
  offset: {
@@ -1626,8 +1647,8 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
1626
1647
  backdrop: theme.colors.backgroundDark
1627
1648
  };
1628
1649
  var sizes = {
1629
- sectionHeight: scale(64),
1630
- closeIcon: scale(48)
1650
+ sectionHeight: theme.sizes.xxxxxlarge,
1651
+ closeIcon: theme.sizes.xxxlarge
1631
1652
  };
1632
1653
  var space = {
1633
1654
  headerWrapperVerticalPadding: theme.space.small,
@@ -1730,13 +1751,15 @@ var getCalendarTheme = function getCalendarTheme(theme) {
1730
1751
  primary: theme.colors.primary,
1731
1752
  inverted: theme.colors.invertedText
1732
1753
  };
1754
+ var cellSize = theme.sizes.xxxlarge;
1755
+ var markSize = theme.sizes.xsmall;
1733
1756
  var sizes = {
1734
- cellWidth: scale(48),
1735
- cellHeight: scale(48),
1736
- cellCircleWidth: scale(44),
1737
- cellCircleHeight: scale(44),
1738
- markWidth: scale(4),
1739
- markHeight: scale(4)
1757
+ cellWidth: cellSize,
1758
+ cellHeight: cellSize,
1759
+ cellCircleWidth: cellSize - markSize,
1760
+ cellCircleHeight: cellSize - markSize,
1761
+ markWidth: markSize,
1762
+ markHeight: markSize
1740
1763
  };
1741
1764
  var space = {
1742
1765
  rowVerticalPadding: theme.space.medium,
@@ -1765,7 +1788,7 @@ var getCardTheme = function getCardTheme(theme) {
1765
1788
  archived: theme.colors.archivedLight
1766
1789
  };
1767
1790
  var sizes = {
1768
- indicatorWidth: theme.space.medium
1791
+ indicatorWidth: theme.sizes.medium
1769
1792
  };
1770
1793
  var radii = {
1771
1794
  "default": theme.radii.large
@@ -1783,14 +1806,12 @@ var getCheckboxTheme = function getCheckboxTheme(theme) {
1783
1806
  disabledBorder: theme.colors.globalPrimaryLight
1784
1807
  };
1785
1808
  var space = {
1786
- // to remove the empty space above the check icon
1787
- // and also to center the check mark
1788
- iconTop: -scale(3),
1809
+ iconTop: 0,
1789
1810
  wrapperPadding: theme.space.medium,
1790
1811
  iconDescriptionPadding: theme.space.smallMedium
1791
1812
  };
1792
1813
  var sizes = {
1793
- icon: scale(20)
1814
+ icon: theme.sizes.large
1794
1815
  };
1795
1816
  var radii = {
1796
1817
  wrapper: theme.radii.medium,
@@ -1818,9 +1839,9 @@ var getContentNavigatorTheme = function getContentNavigatorTheme(theme) {
1818
1839
  };
1819
1840
  };
1820
1841
 
1821
- var getDatePickerTheme = function getDatePickerTheme() {
1842
+ var getDatePickerTheme = function getDatePickerTheme(theme) {
1822
1843
  var sizes = {
1823
- height: scale(176)
1844
+ height: theme.sizes['19xlarge']
1824
1845
  };
1825
1846
  return {
1826
1847
  sizes: sizes
@@ -1863,8 +1884,8 @@ var getDrawerTheme = function getDrawerTheme(theme) {
1863
1884
  handlerPaddingVertical: theme.space.small
1864
1885
  };
1865
1886
  var sizes = {
1866
- handlerWidth: scale(56),
1867
- handlerHeight: scale(4)
1887
+ handlerWidth: theme.sizes.xxxxlarge,
1888
+ handlerHeight: theme.sizes.xsmall
1868
1889
  };
1869
1890
  var shadows = {
1870
1891
  offset: {
@@ -1887,14 +1908,11 @@ var getDrawerTheme = function getDrawerTheme(theme) {
1887
1908
  var getEmptyTheme = function getEmptyTheme(theme) {
1888
1909
  var space = {
1889
1910
  titleMargin: theme.space.medium,
1890
- illustrationMargin: theme.space.large,
1911
+ imageMargin: theme.space.large,
1891
1912
  wrapperPadding: theme.space.medium
1892
1913
  };
1893
1914
  var sizes = {
1894
- illustration: scale(168)
1895
- };
1896
- var radii = {
1897
- illustration: theme.radii.rounded
1915
+ image: theme.sizes['18xlarge']
1898
1916
  };
1899
1917
  var colors = {
1900
1918
  text: theme.colors.text,
@@ -1915,8 +1933,7 @@ var getEmptyTheme = function getEmptyTheme(theme) {
1915
1933
  colors: colors,
1916
1934
  sizes: sizes,
1917
1935
  space: space,
1918
- fonts: fonts,
1919
- radii: radii
1936
+ fonts: fonts
1920
1937
  };
1921
1938
  };
1922
1939
 
@@ -1931,8 +1948,8 @@ var getFABTheme = function getFABTheme(theme) {
1931
1948
  actionItemText: theme.colors.invertedText
1932
1949
  };
1933
1950
  var sizes = {
1934
- width: 64,
1935
- height: 64
1951
+ width: theme.sizes.xxxxxlarge,
1952
+ height: theme.sizes.xxxxxlarge
1936
1953
  };
1937
1954
  var fonts = {
1938
1955
  header: theme.fonts.semiBold,
@@ -2004,6 +2021,16 @@ var getIconTheme = function getIconTheme(theme) {
2004
2021
  };
2005
2022
  };
2006
2023
 
2024
+ var getImageTheme = function getImageTheme(theme) {
2025
+ var sizes = {
2026
+ '6xlarge': theme.sizes['6xlarge'],
2027
+ '15xlarge': theme.sizes['15xlarge']
2028
+ };
2029
+ return {
2030
+ sizes: sizes
2031
+ };
2032
+ };
2033
+
2007
2034
  var getListTheme = function getListTheme(theme) {
2008
2035
  var colors = {
2009
2036
  checkedListItemContainerBackground: theme.colors.primaryBackground,
@@ -2073,9 +2100,9 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2073
2100
  errorMessage: theme.fontSizes.small
2074
2101
  };
2075
2102
  var sizes = {
2076
- cellWidth: theme.space.xxlarge,
2077
- cellHeight: theme.space.xxxlarge,
2078
- mask: theme.space.medium
2103
+ cellWidth: theme.sizes.xxlarge,
2104
+ cellHeight: theme.sizes.xxxlarge,
2105
+ mask: theme.sizes.medium
2079
2106
  };
2080
2107
  var space = {
2081
2108
  spacer: theme.space.medium,
@@ -2107,8 +2134,8 @@ var getProgressTheme = function getProgressTheme(theme) {
2107
2134
  innerBackground: theme.colors.platformBackground
2108
2135
  };
2109
2136
  var sizes = {
2110
- circleWidth: scale(76),
2111
- barHeight: scale(4)
2137
+ circleWidth: theme.sizes['6xlarge'],
2138
+ barHeight: theme.sizes.xsmall
2112
2139
  };
2113
2140
  var radii = {
2114
2141
  "default": theme.radii.rounded
@@ -2128,9 +2155,13 @@ var getRadioTheme = function getRadioTheme(theme) {
2128
2155
  circleLeftMargin: theme.space.small,
2129
2156
  groupTopMargin: theme.space.xsmall
2130
2157
  };
2158
+ var boundingBoxSize = theme.sizes.large;
2159
+ var innerPadding = theme.space.xsmall;
2160
+ var circle = boundingBoxSize - innerPadding;
2161
+ var innerCircle = circle / 2;
2131
2162
  var sizes = {
2132
- circle: scale(20),
2133
- innerCircle: scale(10)
2163
+ circle: circle,
2164
+ innerCircle: innerCircle
2134
2165
  };
2135
2166
  var borderWidths = {
2136
2167
  circle: theme.borderWidths.medium
@@ -2153,10 +2184,10 @@ var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
2153
2184
  webViewBorderBottomWidth: 0.8
2154
2185
  };
2155
2186
  var sizes = {
2156
- editorMinHeight: 21,
2157
- toolbarButtonSize: theme.space.xxxlarge,
2158
- toolbarSeparatorWidth: 1,
2159
- toolbarSeparatorHeight: theme.space.medium
2187
+ editorMinHeight: theme.sizes.large,
2188
+ toolbarButtonSize: theme.sizes.xxxlarge,
2189
+ toolbarSeparatorWidth: theme.sizes.xxsmall,
2190
+ toolbarSeparatorHeight: theme.sizes.medium
2160
2191
  };
2161
2192
  var fontSizes = {
2162
2193
  editor: theme.fontSizes.medium
@@ -2214,6 +2245,17 @@ var getSelectTheme = function getSelectTheme(theme) {
2214
2245
  };
2215
2246
  };
2216
2247
 
2248
+ var getSliderTheme = function getSliderTheme(theme) {
2249
+ var colors = {
2250
+ minimumTrackTint: theme.colors.__alpha__primary1,
2251
+ thumbTint: theme.colors.__alpha__globalSecondary4,
2252
+ maximumTrackTint: theme.colors.__alpha__secondary4
2253
+ };
2254
+ return {
2255
+ colors: colors
2256
+ };
2257
+ };
2258
+
2217
2259
  var getSpinnerTheme = function getSpinnerTheme(theme) {
2218
2260
  var colors = {
2219
2261
  dot1: theme.colors.__alpha__secondary1,
@@ -2253,33 +2295,46 @@ var getSwitchTheme = function getSwitchTheme(theme) {
2253
2295
  'disabled-checked': theme.colors.primaryLight,
2254
2296
  'disabled-unchecked': theme.colors.archived
2255
2297
  },
2256
- thumb: theme.colors.platformBackground
2257
- };
2258
- var thumbSizes = {
2259
- small: theme.space.medium,
2260
- medium: theme.space.medium * 1.3
2261
- };
2262
- var widths = {
2263
- small: theme.space.xxxlarge,
2264
- medium: theme.space.xxxxlarge
2298
+ thumb: theme.colors.platformBackground,
2299
+ selector: {
2300
+ background: theme.colors.__alpha__globalNeutral3,
2301
+ textBackground: theme.colors.__alpha__primary1
2302
+ }
2265
2303
  };
2266
- var heights = {
2267
- small: theme.space.large,
2268
- medium: theme.space.large * 1.2
2304
+ var sizes = {
2305
+ thumbs: {
2306
+ small: theme.sizes.medium,
2307
+ medium: theme.sizes.large
2308
+ },
2309
+ widths: {
2310
+ small: theme.sizes.xxxlarge,
2311
+ medium: theme.sizes.xxxxxlarge
2312
+ },
2313
+ heights: {
2314
+ small: theme.sizes.large,
2315
+ medium: theme.sizes.xlarge
2316
+ },
2317
+ selector: {
2318
+ height: theme.sizes.xxxxlarge
2319
+ }
2269
2320
  };
2270
2321
  var spaces = {
2271
2322
  small: theme.space.xsmall,
2272
2323
  medium: theme.space.xsmall,
2273
- inactive: 0
2324
+ selector: {
2325
+ iconPadding: theme.space.medium,
2326
+ wrapperPadding: theme.space.xsmall
2327
+ }
2274
2328
  };
2275
2329
  var radii = {
2276
- rounded: theme.radii.rounded
2330
+ rounded: theme.radii.rounded,
2331
+ selector: {
2332
+ "default": theme.radii.rounded
2333
+ }
2277
2334
  };
2278
2335
  return {
2279
2336
  colors: colors,
2280
- thumbSizes: thumbSizes,
2281
- widths: widths,
2282
- heights: heights,
2337
+ sizes: sizes,
2283
2338
  spaces: spaces,
2284
2339
  radii: radii
2285
2340
  };
@@ -2308,7 +2363,7 @@ var getTabsTheme = function getTabsTheme(theme) {
2308
2363
  headerBottom: theme.borderWidths.base
2309
2364
  };
2310
2365
  var sizes = {
2311
- indicator: theme.space.xxsmall
2366
+ indicator: theme.sizes.xxsmall
2312
2367
  };
2313
2368
  return {
2314
2369
  borderWidths: borderWidths,
@@ -2451,9 +2506,9 @@ var getTextInputTheme = function getTextInputTheme(theme) {
2451
2506
  };
2452
2507
  };
2453
2508
 
2454
- var getTimePickerTheme = function getTimePickerTheme() {
2509
+ var getTimePickerTheme = function getTimePickerTheme(theme) {
2455
2510
  var sizes = {
2456
- height: scale(176)
2511
+ height: theme.sizes['19xlarge']
2457
2512
  };
2458
2513
  return {
2459
2514
  sizes: sizes
@@ -2472,7 +2527,7 @@ var getToastTheme = function getToastTheme(theme) {
2472
2527
  shadow: theme.colors.backgroundDark
2473
2528
  };
2474
2529
  var sizes = {
2475
- height: scale(48)
2530
+ height: theme.sizes.xxxlarge
2476
2531
  };
2477
2532
  var space = {
2478
2533
  wrapperVerticalPadding: theme.space.large,
@@ -2589,12 +2644,13 @@ var getTheme$1 = function getTheme() {
2589
2644
  card: getCardTheme(globalTheme),
2590
2645
  checkbox: getCheckboxTheme(globalTheme),
2591
2646
  contentNavigator: getContentNavigatorTheme(globalTheme),
2592
- datePicker: getDatePickerTheme(),
2647
+ datePicker: getDatePickerTheme(globalTheme),
2593
2648
  divider: getDividerTheme(globalTheme),
2594
2649
  drawer: getDrawerTheme(globalTheme),
2595
2650
  empty: getEmptyTheme(globalTheme),
2596
2651
  fab: getFABTheme(globalTheme),
2597
2652
  icon: getIconTheme(globalTheme),
2653
+ image: getImageTheme(globalTheme),
2598
2654
  list: getListTheme(globalTheme),
2599
2655
  pinInput: getPinInputTheme(globalTheme),
2600
2656
  progress: getProgressTheme(globalTheme),
@@ -2602,12 +2658,13 @@ var getTheme$1 = function getTheme() {
2602
2658
  richTextEditor: getRichTextEditorTheme(globalTheme),
2603
2659
  sectionHeading: getSectionHeadingTheme(globalTheme),
2604
2660
  select: getSelectTheme(globalTheme),
2661
+ slider: getSliderTheme(globalTheme),
2605
2662
  spinner: getSpinnerTheme(globalTheme),
2606
2663
  "switch": getSwitchTheme(globalTheme),
2607
2664
  tabs: getTabsTheme(globalTheme),
2608
2665
  tag: getTagTheme(globalTheme),
2609
2666
  textInput: getTextInputTheme(globalTheme),
2610
- timePicker: getTimePickerTheme(),
2667
+ timePicker: getTimePickerTheme(globalTheme),
2611
2668
  toast: getToastTheme(globalTheme),
2612
2669
  toolbar: getToolbarTheme(globalTheme),
2613
2670
  typography: getTypographyTheme(globalTheme)
@@ -5842,7 +5899,7 @@ var getDisplayName = function getDisplayName(primitive) {
5842
5899
 
5843
5900
  var styled = createStyled(StyleSheet$1);
5844
5901
  var components = ['ActivityIndicator', 'Button', 'DatePickerIOS', 'DrawerLayoutAndroid', 'FlatList', 'Image', 'ImageBackground', 'KeyboardAvoidingView', 'ListView', 'Modal', 'NavigatorIOS', 'Picker', 'PickerIOS', 'Pressable', 'ProgressBarAndroid', 'ProgressViewIOS', 'RecyclerViewBackedScrollView', 'RefreshControl', 'SafeAreaView', 'ScrollView', 'SectionList', 'SegmentedControlIOS', 'Slider', 'SnapshotViewIOS', 'StatusBar', 'SwipeableListView', 'Switch', 'SwitchIOS', 'TabBarIOS', 'Text', 'TextInput', 'ToolbarAndroid', 'TouchableHighlight', 'TouchableNativeFeedback', 'TouchableOpacity', 'TouchableWithoutFeedback', 'View', 'ViewPagerAndroid'];
5845
- var index$7 = components.reduce(function (acc, comp) {
5902
+ var index$8 = components.reduce(function (acc, comp) {
5846
5903
  return Object.defineProperty(acc, comp, {
5847
5904
  enumerable: true,
5848
5905
  configurable: false,
@@ -5852,7 +5909,7 @@ var index$7 = components.reduce(function (acc, comp) {
5852
5909
  });
5853
5910
  }, styled);
5854
5911
 
5855
- var StyledWrapper$8 = index$7(Animated.View)(function () {
5912
+ var StyledWrapper$9 = index$8(Animated.View)(function () {
5856
5913
  return {
5857
5914
  margin: 0,
5858
5915
  padding: 0,
@@ -5865,12 +5922,12 @@ var StyledWrapper$8 = index$7(Animated.View)(function () {
5865
5922
  * to use with Animated.timing
5866
5923
  */
5867
5924
 
5868
- var StyledHiddenWrapper = index$7(View)(function () {
5925
+ var StyledHiddenWrapper = index$8(View)(function () {
5869
5926
  return {
5870
5927
  height: Dimensions.get('window').height
5871
5928
  };
5872
5929
  });
5873
- var StyledChildWrapper = index$7(View)(function () {
5930
+ var StyledChildWrapper = index$8(View)(function () {
5874
5931
  return {
5875
5932
  margin: 0,
5876
5933
  padding: 0
@@ -5912,7 +5969,7 @@ var Collapse = function Collapse(_ref) {
5912
5969
  var height = _ref2.height;
5913
5970
  setContentHeight(height);
5914
5971
  }, []);
5915
- return /*#__PURE__*/React.createElement(StyledWrapper$8, {
5972
+ return /*#__PURE__*/React.createElement(StyledWrapper$9, {
5916
5973
  style: {
5917
5974
  height: collapseAnim
5918
5975
  },
@@ -5925,10 +5982,10 @@ var Collapse = function Collapse(_ref) {
5925
5982
  }, children)));
5926
5983
  };
5927
5984
 
5928
- var StyledWrapper$7 = index$7(View)(function () {
5985
+ var StyledWrapper$8 = index$8(View)(function () {
5929
5986
  return {};
5930
5987
  });
5931
- var StyledItemWrapper = index$7(View)(function (_ref) {
5988
+ var StyledItemWrapper = index$8(View)(function (_ref) {
5932
5989
  var theme = _ref.theme,
5933
5990
  themeVariant = _ref.themeVariant;
5934
5991
  return {
@@ -5937,19 +5994,19 @@ var StyledItemWrapper = index$7(View)(function (_ref) {
5937
5994
  borderRadius: themeVariant === 'card' ? theme.__hd__.accordion.radii.card : 0
5938
5995
  };
5939
5996
  });
5940
- var StyledHeaderWrapper$1 = index$7(TouchableOpacity)(function () {
5997
+ var StyledHeaderWrapper$1 = index$8(TouchableOpacity)(function () {
5941
5998
  return {
5942
5999
  flexDirection: 'row',
5943
6000
  justifyContent: 'space-between'
5944
6001
  };
5945
6002
  });
5946
- var StyledCollapse = index$7(Collapse)(function (_ref2) {
6003
+ var StyledCollapse = index$8(Collapse)(function (_ref2) {
5947
6004
  var theme = _ref2.theme;
5948
6005
  return {
5949
6006
  paddingTop: theme.__hd__.accordion.space.padding
5950
6007
  };
5951
6008
  });
5952
- var Spacer$1 = index$7(View)(function (_ref3) {
6009
+ var Spacer$1 = index$8(View)(function (_ref3) {
5953
6010
  var theme = _ref3.theme;
5954
6011
  return {
5955
6012
  paddingTop: theme.__hd__.accordion.space.padding
@@ -5961,7 +6018,7 @@ var FONTWEIGHT_MAP = {
5961
6018
  regular: 'regular',
5962
6019
  'semi-bold': 'semiBold'
5963
6020
  };
5964
- var StyledText$3 = index$7(Text$1)(function (_ref) {
6021
+ var StyledText$3 = index$8(Text$1)(function (_ref) {
5965
6022
  var themeFontSize = _ref.themeFontSize,
5966
6023
  themeFontWeight = _ref.themeFontWeight,
5967
6024
  themeIntent = _ref.themeIntent,
@@ -5977,7 +6034,7 @@ var StyledText$3 = index$7(Text$1)(function (_ref) {
5977
6034
  });
5978
6035
  });
5979
6036
 
5980
- var _excluded$h = ["children", "fontSize", "fontWeight", "intent"];
6037
+ var _excluded$i = ["children", "fontSize", "fontWeight", "intent"];
5981
6038
 
5982
6039
  var Text = function Text(_ref) {
5983
6040
  var children = _ref.children,
@@ -5987,7 +6044,7 @@ var Text = function Text(_ref) {
5987
6044
  fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
5988
6045
  _ref$intent = _ref.intent,
5989
6046
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
5990
- nativeProps = _objectWithoutProperties(_ref, _excluded$h);
6047
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
5991
6048
 
5992
6049
  return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
5993
6050
  themeFontSize: fontSize,
@@ -14522,7 +14579,7 @@ var COLOR_INTENTS = {
14522
14579
  'disabled-text': 'disabledText',
14523
14580
  'text-inverted': 'invertedText'
14524
14581
  };
14525
- var StyledHeroIcon = index$7(HeroIcon)(function (_ref) {
14582
+ var StyledHeroIcon = index$8(HeroIcon)(function (_ref) {
14526
14583
  var themeIntent = _ref.themeIntent,
14527
14584
  themeSize = _ref.themeSize,
14528
14585
  theme = _ref.theme;
@@ -14532,11 +14589,11 @@ var StyledHeroIcon = index$7(HeroIcon)(function (_ref) {
14532
14589
  };
14533
14590
  });
14534
14591
 
14535
- var _excluded$g = ["style"];
14592
+ var _excluded$h = ["style"];
14536
14593
 
14537
14594
  var AnimatedIcon = function AnimatedIcon(_ref) {
14538
14595
  var style = _ref.style,
14539
- otherProps = _objectWithoutProperties(_ref, _excluded$g);
14596
+ otherProps = _objectWithoutProperties(_ref, _excluded$h);
14540
14597
 
14541
14598
  var rotateAnimation = useRef(new Animated.Value(0));
14542
14599
  useEffect(function () {
@@ -14626,7 +14683,7 @@ function usePropsOrInternalState(initialState, state, setState) {
14626
14683
  return [state || internalState, setState || setInternalState];
14627
14684
  }
14628
14685
 
14629
- var _excluded$f = ["key"];
14686
+ var _excluded$g = ["key"];
14630
14687
 
14631
14688
  var Accordion = function Accordion(_ref) {
14632
14689
  var items = _ref.items,
@@ -14645,12 +14702,12 @@ var Accordion = function Accordion(_ref) {
14645
14702
  _activeItemKey = _usePropsOrInternalSt2[0],
14646
14703
  _onItemPress = _usePropsOrInternalSt2[1];
14647
14704
 
14648
- return /*#__PURE__*/React.createElement(StyledWrapper$7, {
14705
+ return /*#__PURE__*/React.createElement(StyledWrapper$8, {
14649
14706
  style: style,
14650
14707
  testID: testID
14651
14708
  }, items.map(function (_ref2, index) {
14652
14709
  var key = _ref2.key,
14653
- props = _objectWithoutProperties(_ref2, _excluded$f);
14710
+ props = _objectWithoutProperties(_ref2, _excluded$g);
14654
14711
 
14655
14712
  var open = _activeItemKey === key;
14656
14713
  return /*#__PURE__*/React.createElement(React.Fragment, {
@@ -14667,7 +14724,7 @@ var Accordion = function Accordion(_ref) {
14667
14724
  }));
14668
14725
  };
14669
14726
 
14670
- var Container$1 = index$7(View)(function (_ref) {
14727
+ var Container$1 = index$8(View)(function (_ref) {
14671
14728
  var theme = _ref.theme,
14672
14729
  _ref$themeVariant = _ref.themeVariant,
14673
14730
  themeVariant = _ref$themeVariant === void 0 ? 'default' : _ref$themeVariant,
@@ -14679,21 +14736,21 @@ var Container$1 = index$7(View)(function (_ref) {
14679
14736
  flexDirection: 'row'
14680
14737
  };
14681
14738
  });
14682
- var IconContainer$1 = index$7(View)(function (_ref2) {
14739
+ var IconContainer$1 = index$8(View)(function (_ref2) {
14683
14740
  var theme = _ref2.theme;
14684
14741
  return {
14685
14742
  alignItems: 'center',
14686
14743
  paddingLeft: theme.__hd__.alert.space.iconLeftPadding
14687
14744
  };
14688
14745
  });
14689
- var TextContainer$1 = index$7(View)(function (_ref3) {
14746
+ var TextContainer$1 = index$8(View)(function (_ref3) {
14690
14747
  var theme = _ref3.theme;
14691
14748
  return {
14692
14749
  paddingHorizontal: theme.__hd__.alert.space.textPaddingHorizontal,
14693
14750
  flex: 1
14694
14751
  };
14695
14752
  });
14696
- var ContentContainer$1 = index$7(View)(function (_ref4) {
14753
+ var ContentContainer$1 = index$8(View)(function (_ref4) {
14697
14754
  var theme = _ref4.theme,
14698
14755
  showDivider = _ref4.showDivider;
14699
14756
  return {
@@ -14704,7 +14761,7 @@ var ContentContainer$1 = index$7(View)(function (_ref4) {
14704
14761
  flexDirection: 'row'
14705
14762
  };
14706
14763
  });
14707
- var CTAWrapper$1 = index$7(TouchableOpacity)(function (_ref5) {
14764
+ var CTAWrapper$1 = index$8(TouchableOpacity)(function (_ref5) {
14708
14765
  var theme = _ref5.theme;
14709
14766
  return {
14710
14767
  paddingHorizontal: theme.__hd__.alert.space.ctaPadding,
@@ -14772,7 +14829,7 @@ var Alert = function Alert(_ref2) {
14772
14829
  })) : null);
14773
14830
  };
14774
14831
 
14775
- var StyledPressable = index$7(TouchableOpacity)(function (_ref) {
14832
+ var StyledPressable = index$8(TouchableOpacity)(function (_ref) {
14776
14833
  var themeSize = _ref.themeSize,
14777
14834
  themeIntent = _ref.themeIntent,
14778
14835
  theme = _ref.theme;
@@ -14785,7 +14842,7 @@ var StyledPressable = index$7(TouchableOpacity)(function (_ref) {
14785
14842
  overflow: 'hidden'
14786
14843
  };
14787
14844
  });
14788
- var StyledView$3 = index$7(View)(function (_ref2) {
14845
+ var StyledView$3 = index$8(View)(function (_ref2) {
14789
14846
  var themeSize = _ref2.themeSize,
14790
14847
  themeIntent = _ref2.themeIntent,
14791
14848
  theme = _ref2.theme;
@@ -14798,7 +14855,7 @@ var StyledView$3 = index$7(View)(function (_ref2) {
14798
14855
  overflow: 'hidden'
14799
14856
  };
14800
14857
  });
14801
- var StyledTextWrapper = index$7(View)(function () {
14858
+ var StyledTextWrapper$1 = index$8(View)(function () {
14802
14859
  return {
14803
14860
  alignItems: 'center',
14804
14861
  justifyContent: 'center',
@@ -14807,7 +14864,7 @@ var StyledTextWrapper = index$7(View)(function () {
14807
14864
  height: '100%'
14808
14865
  };
14809
14866
  });
14810
- var StyledText$2 = index$7(Text$1)(function (_ref3) {
14867
+ var StyledText$2 = index$8(Text$1)(function (_ref3) {
14811
14868
  var themeSize = _ref3.themeSize,
14812
14869
  themeIntent = _ref3.themeIntent,
14813
14870
  theme = _ref3.theme;
@@ -14817,7 +14874,7 @@ var StyledText$2 = index$7(Text$1)(function (_ref3) {
14817
14874
  overflow: 'hidden'
14818
14875
  };
14819
14876
  });
14820
- var StyledImage = index$7(Image)(function (_ref4) {
14877
+ var StyledImage = index$8(Image$1)(function (_ref4) {
14821
14878
  var themeSize = _ref4.themeSize,
14822
14879
  theme = _ref4.theme;
14823
14880
  return {
@@ -14843,7 +14900,7 @@ var Avatar = function Avatar(_ref) {
14843
14900
  themeIntent: intent,
14844
14901
  themeSize: size,
14845
14902
  style: style
14846
- }, title !== undefined && source === undefined && /*#__PURE__*/React.createElement(StyledTextWrapper, null, /*#__PURE__*/React.createElement(StyledText$2, {
14903
+ }, title !== undefined && source === undefined && /*#__PURE__*/React.createElement(StyledTextWrapper$1, null, /*#__PURE__*/React.createElement(StyledText$2, {
14847
14904
  themeIntent: intent,
14848
14905
  themeSize: size
14849
14906
  }, title)), source !== undefined && /*#__PURE__*/React.createElement(StyledImage, {
@@ -14853,7 +14910,7 @@ var Avatar = function Avatar(_ref) {
14853
14910
  })) : null;
14854
14911
  };
14855
14912
 
14856
- var StyledView$2 = index$7(Animated.View)(function (_ref) {
14913
+ var StyledView$2 = index$8(Animated.View)(function (_ref) {
14857
14914
  var themeIntent = _ref.themeIntent,
14858
14915
  themePadding = _ref.themePadding,
14859
14916
  theme = _ref.theme;
@@ -14867,7 +14924,7 @@ var StyledView$2 = index$7(Animated.View)(function (_ref) {
14867
14924
  paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
14868
14925
  };
14869
14926
  });
14870
- var StyledText$1 = index$7(Text$1)(function (_ref2) {
14927
+ var StyledText$1 = index$8(Text$1)(function (_ref2) {
14871
14928
  var theme = _ref2.theme;
14872
14929
  return {
14873
14930
  fontFamily: theme.__hd__.badge.fonts["default"],
@@ -14878,7 +14935,7 @@ var StyledText$1 = index$7(Text$1)(function (_ref2) {
14878
14935
  textAlign: 'center'
14879
14936
  };
14880
14937
  });
14881
- var StyledStatus = index$7(Animated.View)(function (_ref3) {
14938
+ var StyledStatus = index$8(Animated.View)(function (_ref3) {
14882
14939
  var themeIntent = _ref3.themeIntent,
14883
14940
  theme = _ref3.theme;
14884
14941
  return {
@@ -14892,7 +14949,7 @@ var StyledStatus = index$7(Animated.View)(function (_ref3) {
14892
14949
  };
14893
14950
  });
14894
14951
 
14895
- var _excluded$e = ["children", "visible", "intent", "style", "testID"];
14952
+ var _excluded$f = ["children", "visible", "intent", "style", "testID"];
14896
14953
 
14897
14954
  var Status = function Status(_ref) {
14898
14955
  var children = _ref.children,
@@ -14902,7 +14959,7 @@ var Status = function Status(_ref) {
14902
14959
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14903
14960
  style = _ref.style,
14904
14961
  testID = _ref.testID,
14905
- nativeProps = _objectWithoutProperties(_ref, _excluded$e);
14962
+ nativeProps = _objectWithoutProperties(_ref, _excluded$f);
14906
14963
 
14907
14964
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
14908
14965
  opacity = _React$useRef.current;
@@ -14938,7 +14995,7 @@ var Status = function Status(_ref) {
14938
14995
  }));
14939
14996
  };
14940
14997
 
14941
- var _excluded$d = ["content", "visible", "max", "intent", "style", "testID"];
14998
+ var _excluded$e = ["content", "visible", "max", "intent", "style", "testID"];
14942
14999
  var DEFAULT_MAX_NUMBER = 99;
14943
15000
 
14944
15001
  var getPaddingState = function getPaddingState(content) {
@@ -14955,7 +15012,7 @@ var Badge = function Badge(_ref) {
14955
15012
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14956
15013
  style = _ref.style,
14957
15014
  testID = _ref.testID,
14958
- nativeProps = _objectWithoutProperties(_ref, _excluded$d);
15015
+ nativeProps = _objectWithoutProperties(_ref, _excluded$e);
14959
15016
 
14960
15017
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
14961
15018
  opacity = _React$useRef.current;
@@ -15001,21 +15058,21 @@ var isHeroIcon = function isHeroIcon(x) {
15001
15058
  return IconList.includes(x);
15002
15059
  };
15003
15060
 
15004
- var BottomNavigationTab = index$7(View)(function (_ref) {
15061
+ var BottomNavigationTab = index$8(View)(function (_ref) {
15005
15062
  var themeVisibility = _ref.themeVisibility;
15006
15063
  return {
15007
15064
  flex: 1,
15008
15065
  display: themeVisibility === false ? 'none' : 'flex'
15009
15066
  };
15010
15067
  });
15011
- var BottomNavigationContainer = index$7(View)({
15068
+ var BottomNavigationContainer = index$8(View)({
15012
15069
  flex: 1,
15013
15070
  overflow: 'hidden'
15014
15071
  });
15015
- var ContentWrapper$2 = index$7(View)({
15072
+ var ContentWrapper$2 = index$8(View)({
15016
15073
  flex: 1
15017
15074
  });
15018
- var BottomBarWrapper = index$7(View)(function (_ref2) {
15075
+ var BottomBarWrapper = index$8(View)(function (_ref2) {
15019
15076
  var themeInsets = _ref2.themeInsets,
15020
15077
  theme = _ref2.theme;
15021
15078
  return {
@@ -15031,17 +15088,17 @@ var BottomBarWrapper = index$7(View)(function (_ref2) {
15031
15088
  elevation: theme.__hd__.bottomNavigation.shadows.elevation
15032
15089
  };
15033
15090
  });
15034
- var BottomBar = index$7(View)({
15091
+ var BottomBar = index$8(View)({
15035
15092
  flex: 1,
15036
15093
  flexDirection: 'row',
15037
15094
  overflow: 'hidden',
15038
15095
  alignItems: 'center'
15039
15096
  });
15040
- var BottomBarItem = index$7(View)({
15097
+ var BottomBarItem = index$8(View)({
15041
15098
  flex: 1,
15042
15099
  alignItems: 'center'
15043
15100
  });
15044
- var StyledBottomBarText = index$7(Typography.Text)(function (_ref3) {
15101
+ var StyledBottomBarText = index$8(Typography.Text)(function (_ref3) {
15045
15102
  var theme = _ref3.theme;
15046
15103
  return {
15047
15104
  marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
@@ -15051,7 +15108,7 @@ var StyledBottomBarText = index$7(Typography.Text)(function (_ref3) {
15051
15108
  var isIOS = Platform.OS === 'ios';
15052
15109
  var isAndroid = Platform.OS === 'android';
15053
15110
 
15054
- var _excluded$c = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
15111
+ var _excluded$d = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
15055
15112
 
15056
15113
  var getInactiveIcon = function getInactiveIcon(icon) {
15057
15114
  var inactiveIcon = "".concat(icon, "-outlined");
@@ -15064,7 +15121,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
15064
15121
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
15065
15122
  selectedTabKey = _ref.selectedTabKey,
15066
15123
  tabs = _ref.tabs,
15067
- nativeProps = _objectWithoutProperties(_ref, _excluded$c);
15124
+ nativeProps = _objectWithoutProperties(_ref, _excluded$d);
15068
15125
 
15069
15126
  var insets = useSafeAreaInsets();
15070
15127
  /**
@@ -15138,7 +15195,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
15138
15195
  }))));
15139
15196
  };
15140
15197
 
15141
- var StyledDivider = index$7(View)(function (_ref) {
15198
+ var StyledDivider = index$8(View)(function (_ref) {
15142
15199
  var themeMarginHorizontal = _ref.themeMarginHorizontal,
15143
15200
  themeMarginVertical = _ref.themeMarginVertical,
15144
15201
  theme = _ref.theme;
@@ -15155,14 +15212,14 @@ var StyledDivider = index$7(View)(function (_ref) {
15155
15212
  }, horizontalMargin), verticalMargin);
15156
15213
  });
15157
15214
 
15158
- var _excluded$b = ["marginHorizontal", "marginVertical", "style", "testID"];
15215
+ var _excluded$c = ["marginHorizontal", "marginVertical", "style", "testID"];
15159
15216
 
15160
15217
  var Divider = function Divider(_ref) {
15161
15218
  var marginHorizontal = _ref.marginHorizontal,
15162
15219
  marginVertical = _ref.marginVertical,
15163
15220
  style = _ref.style,
15164
15221
  testID = _ref.testID,
15165
- nativeProps = _objectWithoutProperties(_ref, _excluded$b);
15222
+ nativeProps = _objectWithoutProperties(_ref, _excluded$c);
15166
15223
 
15167
15224
  return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
15168
15225
  themeMarginHorizontal: marginHorizontal,
@@ -15174,10 +15231,10 @@ var Divider = function Divider(_ref) {
15174
15231
 
15175
15232
  var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
15176
15233
  var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
15177
- var StyledWrapper$6 = index$7(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
15234
+ var StyledWrapper$7 = index$8(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
15178
15235
  flexDirection: 'column-reverse'
15179
15236
  }));
15180
- var StyledBottomSheet = index$7(AnimatedSafeAreaView)(function (_ref) {
15237
+ var StyledBottomSheet = index$8(AnimatedSafeAreaView)(function (_ref) {
15181
15238
  var theme = _ref.theme;
15182
15239
  return {
15183
15240
  borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
@@ -15192,14 +15249,14 @@ var StyledBottomSheet = index$7(AnimatedSafeAreaView)(function (_ref) {
15192
15249
  maxHeight: '94%'
15193
15250
  };
15194
15251
  });
15195
- var StyledBackdrop$2 = index$7(AnimatedPressable$1)(function (_ref2) {
15252
+ var StyledBackdrop$2 = index$8(AnimatedPressable$1)(function (_ref2) {
15196
15253
  var theme = _ref2.theme;
15197
15254
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
15198
15255
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
15199
15256
  opacity: 0.48
15200
15257
  });
15201
15258
  });
15202
- var StyledHeaderWrapper = index$7(View)(function (_ref3) {
15259
+ var StyledHeaderWrapper = index$8(View)(function (_ref3) {
15203
15260
  var theme = _ref3.theme;
15204
15261
  return {
15205
15262
  flexDirection: 'row',
@@ -15207,11 +15264,11 @@ var StyledHeaderWrapper = index$7(View)(function (_ref3) {
15207
15264
  paddingHorizontal: theme.__hd__.bottomSheet.space.headerWrapperHorizontalPadding
15208
15265
  };
15209
15266
  });
15210
- var StyledHeader = index$7(View)({
15267
+ var StyledHeader = index$8(View)({
15211
15268
  flex: 1,
15212
15269
  justifyContent: 'center'
15213
15270
  });
15214
- var StyledFooter = index$7(View)(function (_ref4) {
15271
+ var StyledFooter = index$8(View)(function (_ref4) {
15215
15272
  var theme = _ref4.theme;
15216
15273
  return {
15217
15274
  paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
@@ -15222,7 +15279,7 @@ var StyledFooter = index$7(View)(function (_ref4) {
15222
15279
  flexDirection: 'row'
15223
15280
  };
15224
15281
  });
15225
- var StyledIconWrapper$1 = index$7(View)(function (_ref5) {
15282
+ var StyledIconWrapper$2 = index$8(View)(function (_ref5) {
15226
15283
  var theme = _ref5.theme;
15227
15284
  return {
15228
15285
  alignItems: 'center',
@@ -15245,7 +15302,7 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
15245
15302
  };
15246
15303
  };
15247
15304
 
15248
- var StyledLoadingIndicatorWrapper = index$7(View)(function (_ref) {
15305
+ var StyledLoadingIndicatorWrapper = index$8(View)(function (_ref) {
15249
15306
  var theme = _ref.theme;
15250
15307
  return {
15251
15308
  flexDirection: 'row',
@@ -15254,7 +15311,7 @@ var StyledLoadingIndicatorWrapper = index$7(View)(function (_ref) {
15254
15311
  paddingVertical: theme.space.xxsmall
15255
15312
  };
15256
15313
  });
15257
- var StyledLoadingDot = index$7(View)(function (_ref2) {
15314
+ var StyledLoadingDot = index$8(View)(function (_ref2) {
15258
15315
  var _ref2$size = _ref2.size,
15259
15316
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15260
15317
  themeVariant = _ref2.themeVariant,
@@ -15294,7 +15351,7 @@ var StyledLoadingDot = index$7(View)(function (_ref2) {
15294
15351
  }, themeStyling());
15295
15352
  });
15296
15353
 
15297
- var _excluded$a = ["count", "size", "testID", "themeVariant"];
15354
+ var _excluded$b = ["count", "size", "testID", "themeVariant"];
15298
15355
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
15299
15356
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
15300
15357
 
@@ -15328,7 +15385,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
15328
15385
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15329
15386
  testID = _ref2.testID,
15330
15387
  themeVariant = _ref2.themeVariant,
15331
- nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
15388
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$b);
15332
15389
 
15333
15390
  var progressAnimation = useRef(new Animated.Value(0));
15334
15391
  useEffect(function () {
@@ -15505,7 +15562,7 @@ var genTextVariantTextStyles = function genTextVariantTextStyles(theme, intent,
15505
15562
  }, textColorStyling());
15506
15563
  };
15507
15564
 
15508
- var StyledButtonContainer = index$7(TouchableHighlight)(function (_ref) {
15565
+ var StyledButtonContainer = index$8(TouchableHighlight)(function (_ref) {
15509
15566
  var _ref$disabled = _ref.disabled,
15510
15567
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
15511
15568
  _ref$pressed = _ref.pressed,
@@ -15547,7 +15604,7 @@ var StyledButtonContainer = index$7(TouchableHighlight)(function (_ref) {
15547
15604
  };
15548
15605
  }
15549
15606
  });
15550
- var StyledButtonText = index$7(Typography.Text)(function (_ref2) {
15607
+ var StyledButtonText = index$8(Typography.Text)(function (_ref2) {
15551
15608
  var disabled = _ref2.disabled,
15552
15609
  pressed = _ref2.pressed,
15553
15610
  themeVariant = _ref2.themeVariant,
@@ -15597,7 +15654,7 @@ var StyledButtonText = index$7(Typography.Text)(function (_ref2) {
15597
15654
  fontFamily: theme.__hd__.button.fonts["default"]
15598
15655
  }, themeStyling());
15599
15656
  });
15600
- var StyledButtonIconWrapper = index$7(View)(function (_ref3) {
15657
+ var StyledButtonIconWrapper = index$8(View)(function (_ref3) {
15601
15658
  var themePosition = _ref3.themePosition,
15602
15659
  theme = _ref3.theme;
15603
15660
 
@@ -15613,7 +15670,7 @@ var StyledButtonIconWrapper = index$7(View)(function (_ref3) {
15613
15670
  };
15614
15671
  }
15615
15672
  });
15616
- var StyledButtonIcon = index$7(Icon)(function (_ref4) {
15673
+ var StyledButtonIcon = index$8(Icon)(function (_ref4) {
15617
15674
  var disabled = _ref4.disabled,
15618
15675
  pressed = _ref4.pressed,
15619
15676
  themeVariant = _ref4.themeVariant,
@@ -15781,7 +15838,7 @@ var IconButton = function IconButton(_ref) {
15781
15838
  }));
15782
15839
  };
15783
15840
 
15784
- var ButtonContainer = index$7(TouchableOpacity)(function (_ref) {
15841
+ var ButtonContainer = index$8(TouchableOpacity)(function (_ref) {
15785
15842
  var theme = _ref.theme;
15786
15843
  return {
15787
15844
  width: '100%',
@@ -15793,13 +15850,13 @@ var ButtonContainer = index$7(TouchableOpacity)(function (_ref) {
15793
15850
  backgroundColor: theme.__hd__.button.colors.utilityBackground
15794
15851
  };
15795
15852
  });
15796
- var IconWrapper = index$7(View)(function (_ref2) {
15853
+ var IconWrapper = index$8(View)(function (_ref2) {
15797
15854
  var theme = _ref2.theme;
15798
15855
  return {
15799
15856
  paddingRight: theme.__hd__.button.space.iconPadding
15800
15857
  };
15801
15858
  });
15802
- var ButtonText = index$7(Typography.Text)(function (_ref3) {
15859
+ var ButtonText = index$8(Typography.Text)(function (_ref3) {
15803
15860
  var theme = _ref3.theme;
15804
15861
  return {
15805
15862
  flexShrink: 1,
@@ -15854,7 +15911,7 @@ var Header = function Header(_ref) {
15854
15911
  style: {
15855
15912
  flex: 1
15856
15913
  }
15857
- }, content), showCloseButton ? /*#__PURE__*/React.createElement(StyledIconWrapper$1, null, /*#__PURE__*/React.createElement(CompoundButton.Icon, {
15914
+ }, content), showCloseButton ? /*#__PURE__*/React.createElement(StyledIconWrapper$2, null, /*#__PURE__*/React.createElement(CompoundButton.Icon, {
15858
15915
  icon: "cancel",
15859
15916
  onPress: onRequestClose,
15860
15917
  intent: "text",
@@ -15868,6 +15925,7 @@ var BottomSheet = function BottomSheet(_ref) {
15868
15925
  header = _ref.header,
15869
15926
  footer = _ref.footer,
15870
15927
  children = _ref.children,
15928
+ onAnimationEnd = _ref.onAnimationEnd,
15871
15929
  onOpen = _ref.onOpen,
15872
15930
  onRequestClose = _ref.onRequestClose,
15873
15931
  onDismiss = _ref.onDismiss,
@@ -15920,7 +15978,7 @@ var BottomSheet = function BottomSheet(_ref) {
15920
15978
  easing: Easing.inOut(Easing.cubic),
15921
15979
  useNativeDriver: true
15922
15980
  });
15923
- animation.start();
15981
+ animation.start(onAnimationEnd);
15924
15982
  return function () {
15925
15983
  return animation.stop();
15926
15984
  };
@@ -15940,7 +15998,7 @@ var BottomSheet = function BottomSheet(_ref) {
15940
15998
  transparent: true,
15941
15999
  testID: testID,
15942
16000
  onShow: onOpen
15943
- }, /*#__PURE__*/React.createElement(StyledWrapper$6, {
16001
+ }, /*#__PURE__*/React.createElement(StyledWrapper$7, {
15944
16002
  pointerEvents: "box-none"
15945
16003
  }, /*#__PURE__*/React.createElement(StyledBackdrop$2, {
15946
16004
  style: {
@@ -16154,7 +16212,7 @@ var pick = function pick(keys, props) {
16154
16212
  }, {});
16155
16213
  };
16156
16214
 
16157
- var _excluded$9 = ["theme"];
16215
+ var _excluded$a = ["theme"];
16158
16216
  var getThemeValue = function getThemeValue(theme, key, props) {
16159
16217
  var propConfig = config[key];
16160
16218
  var propValue = props[key];
@@ -16185,22 +16243,22 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
16185
16243
  };
16186
16244
 
16187
16245
  var configKeys = Object.keys(config);
16188
- var StyledBox = index$7(View)(function (_ref5) {
16246
+ var StyledBox = index$8(View)(function (_ref5) {
16189
16247
  var theme = _ref5.theme,
16190
- otherProps = _objectWithoutProperties(_ref5, _excluded$9);
16248
+ otherProps = _objectWithoutProperties(_ref5, _excluded$a);
16191
16249
 
16192
16250
  var styleProps = pick(configKeys, otherProps);
16193
16251
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
16194
16252
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
16195
16253
  });
16196
16254
 
16197
- var _excluded$8 = ["children", "style", "testID"];
16255
+ var _excluded$9 = ["children", "style", "testID"];
16198
16256
 
16199
16257
  var Box = function Box(_ref) {
16200
16258
  var children = _ref.children,
16201
16259
  style = _ref.style,
16202
16260
  testID = _ref.testID,
16203
- otherProps = _objectWithoutProperties(_ref, _excluded$8);
16261
+ otherProps = _objectWithoutProperties(_ref, _excluded$9);
16204
16262
 
16205
16263
  return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
16206
16264
  style: style,
@@ -18604,14 +18662,14 @@ function convertToFP(fn, arity, a) {
18604
18662
  var format = convertToFP(format$1, 2);
18605
18663
  var formatTime = format;
18606
18664
 
18607
- var Wrapper = index$7(View)(function () {
18665
+ var Wrapper = index$8(View)(function () {
18608
18666
  return {
18609
18667
  flex: 1,
18610
18668
  flexDirection: 'row',
18611
18669
  justifyContent: 'space-between'
18612
18670
  };
18613
18671
  });
18614
- var Value = index$7(Typography.Text)(function (_ref) {
18672
+ var Value = index$8(Typography.Text)(function (_ref) {
18615
18673
  var theme = _ref.theme;
18616
18674
  return {
18617
18675
  paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
@@ -18652,13 +18710,13 @@ function ContentNavigator(_ref) {
18652
18710
  }));
18653
18711
  }
18654
18712
 
18655
- var StyledContainer$4 = index$7(View)(function (_ref) {
18713
+ var StyledContainer$4 = index$8(View)(function (_ref) {
18656
18714
  var theme = _ref.theme;
18657
18715
  return {
18658
18716
  backgroundColor: theme.__hd__.calendar.colors.background
18659
18717
  };
18660
18718
  });
18661
- var StyledCalendarHeader = index$7(View)(function (_ref2) {
18719
+ var StyledCalendarHeader = index$8(View)(function (_ref2) {
18662
18720
  var theme = _ref2.theme;
18663
18721
  return {
18664
18722
  flexDirection: 'row',
@@ -18666,7 +18724,7 @@ var StyledCalendarHeader = index$7(View)(function (_ref2) {
18666
18724
  paddingVertical: theme.__hd__.calendar.space.headerVerticalPadding
18667
18725
  };
18668
18726
  });
18669
- var StyledCalendarDayNameCell = index$7(View)(function (_ref3) {
18727
+ var StyledCalendarDayNameCell = index$8(View)(function (_ref3) {
18670
18728
  var theme = _ref3.theme;
18671
18729
  return {
18672
18730
  width: theme.__hd__.calendar.sizes.cellWidth,
@@ -18675,7 +18733,7 @@ var StyledCalendarDayNameCell = index$7(View)(function (_ref3) {
18675
18733
  justifyContent: 'center'
18676
18734
  };
18677
18735
  });
18678
- var StyledCalendarCell = index$7(TouchableOpacity)(function (_ref4) {
18736
+ var StyledCalendarCell = index$8(TouchableOpacity)(function (_ref4) {
18679
18737
  var theme = _ref4.theme,
18680
18738
  _ref4$variant = _ref4.variant,
18681
18739
  variant = _ref4$variant === void 0 ? 'default' : _ref4$variant;
@@ -18690,7 +18748,7 @@ var StyledCalendarCell = index$7(TouchableOpacity)(function (_ref4) {
18690
18748
  height: theme.__hd__.calendar.sizes.cellCircleHeight
18691
18749
  };
18692
18750
  });
18693
- var StyledCalendarRow = index$7(View)(function (_ref5) {
18751
+ var StyledCalendarRow = index$8(View)(function (_ref5) {
18694
18752
  var theme = _ref5.theme;
18695
18753
  return {
18696
18754
  flexDirection: 'row',
@@ -18698,7 +18756,7 @@ var StyledCalendarRow = index$7(View)(function (_ref5) {
18698
18756
  flexWrap: 'wrap'
18699
18757
  };
18700
18758
  });
18701
- var StyledCalendarRowItem = index$7(View)(function (_ref6) {
18759
+ var StyledCalendarRowItem = index$8(View)(function (_ref6) {
18702
18760
  var theme = _ref6.theme;
18703
18761
  return {
18704
18762
  flexBasis: "".concat(Math.floor(100.0 / 7.0).toString(), "%"),
@@ -18708,7 +18766,7 @@ var StyledCalendarRowItem = index$7(View)(function (_ref6) {
18708
18766
  justifyContent: 'center'
18709
18767
  };
18710
18768
  });
18711
- var StyledDisabledCalendarRowItem = index$7(View)(function (_ref7) {
18769
+ var StyledDisabledCalendarRowItem = index$8(View)(function (_ref7) {
18712
18770
  var theme = _ref7.theme;
18713
18771
  return {
18714
18772
  flexBasis: "".concat(Math.floor(100.0 / 7.0).toString(), "%"),
@@ -18717,7 +18775,7 @@ var StyledDisabledCalendarRowItem = index$7(View)(function (_ref7) {
18717
18775
  height: theme.__hd__.calendar.sizes.cellHeight
18718
18776
  };
18719
18777
  });
18720
- var StyledMark = index$7(View)(function (_ref8) {
18778
+ var StyledMark = index$8(View)(function (_ref8) {
18721
18779
  var theme = _ref8.theme,
18722
18780
  _ref8$variant = _ref8.variant,
18723
18781
  variant = _ref8$variant === void 0 ? 'primary' : _ref8$variant;
@@ -18897,7 +18955,7 @@ var Calendar = function Calendar(_ref) {
18897
18955
  })));
18898
18956
  };
18899
18957
 
18900
- var StyledDataCard = index$7(View)(function (_ref) {
18958
+ var StyledDataCard = index$8(View)(function (_ref) {
18901
18959
  var theme = _ref.theme;
18902
18960
  return {
18903
18961
  borderRadius: theme.__hd__.card.radii["default"],
@@ -18905,7 +18963,7 @@ var StyledDataCard = index$7(View)(function (_ref) {
18905
18963
  flexDirection: 'row'
18906
18964
  };
18907
18965
  });
18908
- var Indicator = index$7(View)(function (_ref2) {
18966
+ var Indicator = index$8(View)(function (_ref2) {
18909
18967
  var theme = _ref2.theme,
18910
18968
  themeIntent = _ref2.themeIntent;
18911
18969
  return {
@@ -18915,13 +18973,13 @@ var Indicator = index$7(View)(function (_ref2) {
18915
18973
  };
18916
18974
  });
18917
18975
 
18918
- var _excluded$7 = ["intent", "children"];
18976
+ var _excluded$8 = ["intent", "children"];
18919
18977
 
18920
18978
  var DataCard = function DataCard(_ref) {
18921
18979
  var _ref$intent = _ref.intent,
18922
18980
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
18923
18981
  children = _ref.children,
18924
- nativeProps = _objectWithoutProperties(_ref, _excluded$7);
18982
+ nativeProps = _objectWithoutProperties(_ref, _excluded$8);
18925
18983
 
18926
18984
  return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
18927
18985
  themeIntent: intent,
@@ -18929,7 +18987,7 @@ var DataCard = function DataCard(_ref) {
18929
18987
  }), children);
18930
18988
  };
18931
18989
 
18932
- var StyledCard = index$7(View)(function (_ref) {
18990
+ var StyledCard = index$8(View)(function (_ref) {
18933
18991
  var themeVariant = _ref.themeVariant,
18934
18992
  theme = _ref.theme,
18935
18993
  themeIntent = _ref.themeIntent;
@@ -18943,7 +19001,7 @@ var StyledCard = index$7(View)(function (_ref) {
18943
19001
  });
18944
19002
  }); // DEPRECATED
18945
19003
 
18946
- var LeftDataCard = index$7(View)(function (_ref2) {
19004
+ var LeftDataCard = index$8(View)(function (_ref2) {
18947
19005
  var theme = _ref2.theme;
18948
19006
  return {
18949
19007
  backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
@@ -18952,14 +19010,14 @@ var LeftDataCard = index$7(View)(function (_ref2) {
18952
19010
  };
18953
19011
  });
18954
19012
 
18955
- var _excluded$6 = ["variant", "intent", "children"];
19013
+ var _excluded$7 = ["variant", "intent", "children"];
18956
19014
 
18957
19015
  var Card = function Card(_ref) {
18958
19016
  var _ref$variant = _ref.variant,
18959
19017
  variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
18960
19018
  intent = _ref.intent,
18961
19019
  children = _ref.children,
18962
- nativeProps = _objectWithoutProperties(_ref, _excluded$6);
19020
+ nativeProps = _objectWithoutProperties(_ref, _excluded$7);
18963
19021
 
18964
19022
  return /*#__PURE__*/React.createElement(StyledCard, _extends$1({}, nativeProps, {
18965
19023
  themeVariant: variant,
@@ -18969,11 +19027,11 @@ var Card = function Card(_ref) {
18969
19027
  }), children);
18970
19028
  };
18971
19029
 
18972
- var index$6 = Object.assign(Card, {
19030
+ var index$7 = Object.assign(Card, {
18973
19031
  Data: DataCard
18974
19032
  });
18975
19033
 
18976
- var StyledWrapper$5 = index$7(TouchableOpacity)(function (_ref) {
19034
+ var StyledWrapper$6 = index$8(TouchableOpacity)(function (_ref) {
18977
19035
  var theme = _ref.theme,
18978
19036
  themeWithBorder = _ref.themeWithBorder,
18979
19037
  themeDisabled = _ref.themeDisabled;
@@ -18987,14 +19045,14 @@ var StyledWrapper$5 = index$7(TouchableOpacity)(function (_ref) {
18987
19045
  flexDirection: 'row'
18988
19046
  }, themeWithBorder && borderStyle);
18989
19047
  });
18990
- var StyledDescription$1 = index$7(Typography.Text)(function (_ref2) {
19048
+ var StyledDescription$1 = index$8(Typography.Text)(function (_ref2) {
18991
19049
  var theme = _ref2.theme;
18992
19050
  return {
18993
19051
  paddingRight: theme.__hd__.checkbox.space.iconDescriptionPadding,
18994
19052
  flex: 1
18995
19053
  };
18996
19054
  });
18997
- var StyledCheckbox = index$7(View)(function (_ref3) {
19055
+ var StyledCheckbox = index$8(View)(function (_ref3) {
18998
19056
  var theme = _ref3.theme,
18999
19057
  themeDisabled = _ref3.themeDisabled;
19000
19058
  return {
@@ -19008,7 +19066,7 @@ var StyledCheckbox = index$7(View)(function (_ref3) {
19008
19066
  overflow: 'hidden'
19009
19067
  };
19010
19068
  });
19011
- var StyledCheckMark = index$7(Icon)(function (_ref4) {
19069
+ var StyledCheckMark = index$8(Icon)(function (_ref4) {
19012
19070
  var theme = _ref4.theme;
19013
19071
  return {
19014
19072
  position: 'absolute',
@@ -19026,7 +19084,7 @@ var Checkbox = function Checkbox(_ref) {
19026
19084
  onPress = _ref.onPress,
19027
19085
  style = _ref.style,
19028
19086
  testID = _ref.testID;
19029
- return /*#__PURE__*/React.createElement(StyledWrapper$5, {
19087
+ return /*#__PURE__*/React.createElement(StyledWrapper$6, {
19030
19088
  onPress: onPress,
19031
19089
  disabled: disabled,
19032
19090
  themeDisabled: disabled,
@@ -19044,14 +19102,14 @@ var Checkbox = function Checkbox(_ref) {
19044
19102
  })));
19045
19103
  };
19046
19104
 
19047
- var StyledContainer$3 = index$7(View)(function (_ref) {
19105
+ var StyledContainer$3 = index$8(View)(function (_ref) {
19048
19106
  var theme = _ref.theme;
19049
19107
  return {
19050
19108
  width: '100%',
19051
19109
  marginVertical: theme.__hd__.textInput.space.containerMarginVertical
19052
19110
  };
19053
19111
  });
19054
- var StyledLabelContainer = index$7(View)(function (_ref2) {
19112
+ var StyledLabelContainer = index$8(View)(function (_ref2) {
19055
19113
  var theme = _ref2.theme;
19056
19114
  return {
19057
19115
  position: 'absolute',
@@ -19063,28 +19121,28 @@ var StyledLabelContainer = index$7(View)(function (_ref2) {
19063
19121
  paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
19064
19122
  };
19065
19123
  });
19066
- var StyledLabel = index$7(Typography.Text)(function (_ref3) {
19124
+ var StyledLabel = index$8(Typography.Text)(function (_ref3) {
19067
19125
  var theme = _ref3.theme,
19068
19126
  themeVariant = _ref3.themeVariant;
19069
19127
  return {
19070
19128
  color: theme.__hd__.textInput.colors.labels[themeVariant]
19071
19129
  };
19072
19130
  });
19073
- var StyledAsteriskLabel = index$7(Typography.Text)(function (_ref4) {
19131
+ var StyledAsteriskLabel = index$8(Typography.Text)(function (_ref4) {
19074
19132
  var theme = _ref4.theme,
19075
19133
  themeVariant = _ref4.themeVariant;
19076
19134
  return {
19077
19135
  color: theme.__hd__.textInput.colors.asterisks[themeVariant]
19078
19136
  };
19079
19137
  });
19080
- var StyledLabelContainerInsideTextInput = index$7(View)(function () {
19138
+ var StyledLabelContainerInsideTextInput = index$8(View)(function () {
19081
19139
  return _objectSpread2({
19082
19140
  flexDirection: 'row',
19083
19141
  zIndex: 9999,
19084
19142
  alignItems: 'center'
19085
19143
  }, StyleSheet$1.absoluteFillObject);
19086
19144
  });
19087
- var StyledLabelInsideTextInput = index$7(Typography.Text)(function (_ref5) {
19145
+ var StyledLabelInsideTextInput = index$8(Typography.Text)(function (_ref5) {
19088
19146
  var theme = _ref5.theme,
19089
19147
  themeVariant = _ref5.themeVariant;
19090
19148
  return {
@@ -19095,7 +19153,7 @@ var StyledLabelInsideTextInput = index$7(Typography.Text)(function (_ref5) {
19095
19153
  color: theme.__hd__.textInput.colors.labelsInsideTextInput[themeVariant]
19096
19154
  };
19097
19155
  });
19098
- var StyledAsteriskLabelInsideTextInput = index$7(Typography.Text)(function (_ref6) {
19156
+ var StyledAsteriskLabelInsideTextInput = index$8(Typography.Text)(function (_ref6) {
19099
19157
  var theme = _ref6.theme,
19100
19158
  themeVariant = _ref6.themeVariant;
19101
19159
  return {
@@ -19103,7 +19161,7 @@ var StyledAsteriskLabelInsideTextInput = index$7(Typography.Text)(function (_ref
19103
19161
  fontSize: theme.__hd__.textInput.fontSizes.asteriskLabel
19104
19162
  };
19105
19163
  });
19106
- var StyledErrorContainer$1 = index$7(View)(function (_ref7) {
19164
+ var StyledErrorContainer$1 = index$8(View)(function (_ref7) {
19107
19165
  var theme = _ref7.theme;
19108
19166
  return {
19109
19167
  marginRight: theme.__hd__.textInput.space.errorContainerMarginRight,
@@ -19113,7 +19171,7 @@ var StyledErrorContainer$1 = index$7(View)(function (_ref7) {
19113
19171
  flexGrow: 4
19114
19172
  };
19115
19173
  });
19116
- var StyledError = index$7(Typography.Text)(function (_ref8) {
19174
+ var StyledError = index$8(Typography.Text)(function (_ref8) {
19117
19175
  var theme = _ref8.theme;
19118
19176
  return {
19119
19177
  color: theme.__hd__.textInput.colors.error,
@@ -19121,7 +19179,7 @@ var StyledError = index$7(Typography.Text)(function (_ref8) {
19121
19179
  marginLeft: theme.__hd__.textInput.space.errorMarginLeft
19122
19180
  };
19123
19181
  });
19124
- var StyledMaxLengthMessage = index$7(Typography.Text)(function (_ref9) {
19182
+ var StyledMaxLengthMessage = index$8(Typography.Text)(function (_ref9) {
19125
19183
  var theme = _ref9.theme,
19126
19184
  themeVariant = _ref9.themeVariant;
19127
19185
  return {
@@ -19134,13 +19192,13 @@ var StyledMaxLengthMessage = index$7(Typography.Text)(function (_ref9) {
19134
19192
  textAlign: 'right'
19135
19193
  };
19136
19194
  });
19137
- var StyledHelperText = index$7(Typography.Text)(function (_ref10) {
19195
+ var StyledHelperText = index$8(Typography.Text)(function (_ref10) {
19138
19196
  var theme = _ref10.theme;
19139
19197
  return {
19140
19198
  fontSize: theme.__hd__.textInput.fontSizes.error
19141
19199
  };
19142
19200
  });
19143
- var StyledTextInput = index$7(TextInput$1)(function (_ref11) {
19201
+ var StyledTextInput = index$8(TextInput$1)(function (_ref11) {
19144
19202
  var theme = _ref11.theme;
19145
19203
  return {
19146
19204
  textAlignVertical: 'center',
@@ -19150,7 +19208,7 @@ var StyledTextInput = index$7(TextInput$1)(function (_ref11) {
19150
19208
  marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin
19151
19209
  };
19152
19210
  });
19153
- var StyledBorderBackDrop = index$7(View)(function (_ref12) {
19211
+ var StyledBorderBackDrop = index$8(View)(function (_ref12) {
19154
19212
  var _theme$__hd__$textInp;
19155
19213
 
19156
19214
  var theme = _ref12.theme,
@@ -19161,7 +19219,7 @@ var StyledBorderBackDrop = index$7(View)(function (_ref12) {
19161
19219
  borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeVariant]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
19162
19220
  });
19163
19221
  });
19164
- var StyledTextInputContainer = index$7(View)(function (_ref13) {
19222
+ var StyledTextInputContainer = index$8(View)(function (_ref13) {
19165
19223
  var theme = _ref13.theme;
19166
19224
  return {
19167
19225
  flexDirection: 'row',
@@ -19169,7 +19227,7 @@ var StyledTextInputContainer = index$7(View)(function (_ref13) {
19169
19227
  padding: theme.__hd__.textInput.space.containerPadding
19170
19228
  };
19171
19229
  });
19172
- var StyledTextInputAndLabelContainer = index$7(View)(function () {
19230
+ var StyledTextInputAndLabelContainer = index$8(View)(function () {
19173
19231
  return {
19174
19232
  flexDirection: 'row',
19175
19233
  alignItems: 'center',
@@ -19178,20 +19236,20 @@ var StyledTextInputAndLabelContainer = index$7(View)(function () {
19178
19236
  flexShrink: 1
19179
19237
  };
19180
19238
  });
19181
- var StyledErrorAndHelpTextContainer = index$7(View)(function (_ref14) {
19239
+ var StyledErrorAndHelpTextContainer = index$8(View)(function (_ref14) {
19182
19240
  var theme = _ref14.theme;
19183
19241
  return {
19184
19242
  paddingLeft: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft
19185
19243
  };
19186
19244
  });
19187
- var StyledErrorAndMaxLengthContainer = index$7(View)(function () {
19245
+ var StyledErrorAndMaxLengthContainer = index$8(View)(function () {
19188
19246
  return {
19189
19247
  flexDirection: 'row',
19190
19248
  justifyContent: 'space-between'
19191
19249
  };
19192
19250
  });
19193
19251
 
19194
- var _excluded$5 = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue"];
19252
+ var _excluded$6 = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
19195
19253
  var getVariant$1 = function getVariant(_ref) {
19196
19254
  var disabled = _ref.disabled,
19197
19255
  error = _ref.error,
@@ -19201,26 +19259,26 @@ var getVariant$1 = function getVariant(_ref) {
19201
19259
  isEmptyValue = _ref.isEmptyValue;
19202
19260
 
19203
19261
  if (disabled) {
19204
- return 'disabled';
19262
+ return "disabled";
19205
19263
  }
19206
19264
 
19207
19265
  if (error) {
19208
- return 'error';
19266
+ return "error";
19209
19267
  }
19210
19268
 
19211
19269
  if (!editable || loading) {
19212
- return 'readonly';
19270
+ return "readonly";
19213
19271
  }
19214
19272
 
19215
19273
  if (isFocused) {
19216
- return 'focused';
19274
+ return "focused";
19217
19275
  }
19218
19276
 
19219
19277
  if (!isEmptyValue) {
19220
- return 'filled';
19278
+ return "filled";
19221
19279
  }
19222
19280
 
19223
- return 'default';
19281
+ return "default";
19224
19282
  };
19225
19283
 
19226
19284
  var TextInput = function TextInput(_ref2) {
@@ -19245,12 +19303,12 @@ var TextInput = function TextInput(_ref2) {
19245
19303
  helpText = _ref2.helpText,
19246
19304
  value = _ref2.value,
19247
19305
  defaultValue = _ref2.defaultValue,
19248
- nativeProps = _objectWithoutProperties(_ref2, _excluded$5);
19306
+ renderInputValue = _ref2.renderInputValue,
19307
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$6);
19249
19308
 
19250
- var textInputReference = useRef(null);
19251
- var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
19309
+ var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : "";
19252
19310
  var isEmptyValue = displayText.length === 0;
19253
- var actualSuffix = loading ? 'loading' : suffix;
19311
+ var actualSuffix = loading ? "loading" : suffix;
19254
19312
 
19255
19313
  var _React$useState = React.useState(false),
19256
19314
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -19267,49 +19325,18 @@ var TextInput = function TextInput(_ref2) {
19267
19325
  });
19268
19326
  var shouldShowMaxLength = maxLength !== undefined;
19269
19327
  var theme = useTheme();
19270
- return /*#__PURE__*/React.createElement(StyledContainer$3, {
19271
- style: style,
19272
- pointerEvents: variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto',
19273
- testID: testID
19274
- }, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, /*#__PURE__*/React.createElement(StyledBorderBackDrop, {
19275
- themeVariant: variant
19276
- }), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React.createElement(StyledLabelContainer, {
19277
- pointerEvents: "none"
19278
- }, required && /*#__PURE__*/React.createElement(StyledAsteriskLabel, {
19279
- themeVariant: variant,
19280
- fontSize: "small"
19281
- }, "*"), !!label && /*#__PURE__*/React.createElement(StyledLabel, {
19282
- nativeID: accessibilityLabelledBy,
19283
- testID: "input-label",
19284
- fontSize: "small",
19285
- themeVariant: variant
19286
- }, label)), typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
19287
- intent: variant === 'disabled' ? 'disabled-text' : 'text',
19288
- testID: "input-prefix",
19289
- icon: prefix,
19290
- size: "xsmall"
19291
- }) : prefix, /*#__PURE__*/React.createElement(StyledTextInputAndLabelContainer, null, !isFocused && isEmptyValue && /*#__PURE__*/React.createElement(StyledLabelContainerInsideTextInput, {
19292
- pointerEvents: "none"
19293
- }, required && /*#__PURE__*/React.createElement(StyledAsteriskLabelInsideTextInput, {
19294
- themeVariant: variant
19295
- }, "*"), !!label && /*#__PURE__*/React.createElement(StyledLabelInsideTextInput, {
19296
- nativeID: accessibilityLabelledBy,
19297
- testID: "input-label",
19298
- fontSize: "medium",
19299
- themeVariant: variant
19300
- }, label)), /*#__PURE__*/React.createElement(StyledTextInput // when input is not editable on Android, the text color is gray
19301
- // hence, adding this to make the text color the same as iOS
19302
- , _extends$1({
19328
+
19329
+ var nativeInputProps = _objectSpread2(_objectSpread2({
19303
19330
  style: StyleSheet$1.flatten([{
19304
19331
  color: theme.__hd__.textInput.colors.text
19305
19332
  }, textStyle]),
19306
19333
  testID: "text-input",
19307
19334
  accessibilityState: {
19308
- disabled: variant === 'disabled' || variant === 'readonly'
19309
- } // @ts-ignore
19310
- ,
19335
+ disabled: variant === "disabled" || variant === "readonly"
19336
+ },
19337
+ // @ts-ignore
19311
19338
  accessibilityLabelledBy: accessibilityLabelledBy
19312
- }, nativeProps, {
19339
+ }, nativeProps), {}, {
19313
19340
  onFocus: function onFocus(event) {
19314
19341
  var _nativeProps$onFocus;
19315
19342
 
@@ -19322,7 +19349,6 @@ var TextInput = function TextInput(_ref2) {
19322
19349
  setIsFocused(false);
19323
19350
  (_nativeProps$onBlur = nativeProps.onBlur) === null || _nativeProps$onBlur === void 0 ? void 0 : _nativeProps$onBlur.call(nativeProps, event);
19324
19351
  },
19325
- ref: textInputReference,
19326
19352
  editable: editable,
19327
19353
  maxLength: maxLength,
19328
19354
  value: value,
@@ -19332,12 +19358,44 @@ var TextInput = function TextInput(_ref2) {
19332
19358
  (_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
19333
19359
  },
19334
19360
  defaultValue: defaultValue,
19335
- placeholder: variant === 'focused' ? nativeProps.placeholder : undefined
19336
- }))), typeof actualSuffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
19337
- intent: variant === 'disabled' ? 'disabled-text' : 'text',
19361
+ placeholder: variant === "focused" ? nativeProps.placeholder : undefined
19362
+ });
19363
+
19364
+ return /*#__PURE__*/React.createElement(StyledContainer$3, {
19365
+ pointerEvents: variant === "disabled" || variant === "readonly" ? "none" : "auto",
19366
+ testID: testID
19367
+ }, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, /*#__PURE__*/React.createElement(StyledBorderBackDrop, {
19368
+ themeVariant: variant,
19369
+ style: style
19370
+ }), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React.createElement(StyledLabelContainer, {
19371
+ pointerEvents: "none"
19372
+ }, required && /*#__PURE__*/React.createElement(StyledAsteriskLabel, {
19373
+ themeVariant: variant,
19374
+ fontSize: "small"
19375
+ }, "*"), !!label && /*#__PURE__*/React.createElement(StyledLabel, {
19376
+ nativeID: accessibilityLabelledBy,
19377
+ testID: "input-label",
19378
+ fontSize: "small",
19379
+ themeVariant: variant
19380
+ }, label)), typeof prefix === "string" ? /*#__PURE__*/React.createElement(Icon, {
19381
+ intent: variant === "disabled" ? "disabled-text" : "text",
19382
+ testID: "input-prefix",
19383
+ icon: prefix,
19384
+ size: "xsmall"
19385
+ }) : prefix, /*#__PURE__*/React.createElement(StyledTextInputAndLabelContainer, null, !isFocused && isEmptyValue && /*#__PURE__*/React.createElement(StyledLabelContainerInsideTextInput, {
19386
+ pointerEvents: "none"
19387
+ }, required && /*#__PURE__*/React.createElement(StyledAsteriskLabelInsideTextInput, {
19388
+ themeVariant: variant
19389
+ }, "*"), !!label && /*#__PURE__*/React.createElement(StyledLabelInsideTextInput, {
19390
+ nativeID: accessibilityLabelledBy,
19391
+ testID: "input-label",
19392
+ fontSize: "medium",
19393
+ themeVariant: variant
19394
+ }, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React.createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix === "string" ? /*#__PURE__*/React.createElement(Icon, {
19395
+ intent: variant === "disabled" ? "disabled-text" : "text",
19338
19396
  testID: "input-suffix",
19339
19397
  icon: actualSuffix,
19340
- spin: actualSuffix === 'loading',
19398
+ spin: actualSuffix === "loading",
19341
19399
  size: "xsmall"
19342
19400
  }) : suffix), /*#__PURE__*/React.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React.createElement(StyledErrorAndMaxLengthContainer, null, !!error && /*#__PURE__*/React.createElement(StyledErrorContainer$1, null, /*#__PURE__*/React.createElement(Icon, {
19343
19401
  testID: "input-error-icon",
@@ -19408,7 +19466,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
19408
19466
  }) : null);
19409
19467
  };
19410
19468
 
19411
- var StyledPickerWrapper$1 = index$7(View)(function (_ref) {
19469
+ var StyledPickerWrapper$1 = index$8(View)(function (_ref) {
19412
19470
  var theme = _ref.theme;
19413
19471
  return {
19414
19472
  height: theme.__hd__.datePicker.sizes.height
@@ -19505,7 +19563,7 @@ var DatePicker = function DatePicker(props) {
19505
19563
  };
19506
19564
 
19507
19565
  var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
19508
- var StyledContainer$2 = index$7(View)(function (_ref) {
19566
+ var StyledContainer$2 = index$8(View)(function (_ref) {
19509
19567
  var theme = _ref.theme,
19510
19568
  enableShadow = _ref.enableShadow;
19511
19569
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
@@ -19518,7 +19576,7 @@ var StyledContainer$2 = index$7(View)(function (_ref) {
19518
19576
  elevation: 9999
19519
19577
  });
19520
19578
  });
19521
- var StyledDragableContainer = index$7(View)(function (_ref2) {
19579
+ var StyledDragableContainer = index$8(View)(function (_ref2) {
19522
19580
  var theme = _ref2.theme,
19523
19581
  enableShadow = _ref2.enableShadow;
19524
19582
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
@@ -19532,13 +19590,13 @@ var StyledDragableContainer = index$7(View)(function (_ref2) {
19532
19590
  flexDirection: 'column-reverse'
19533
19591
  });
19534
19592
  });
19535
- var StyledBackdrop$1 = index$7(AnimatedPressable)(function (_ref3) {
19593
+ var StyledBackdrop$1 = index$8(AnimatedPressable)(function (_ref3) {
19536
19594
  var theme = _ref3.theme;
19537
19595
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
19538
19596
  backgroundColor: theme.__hd__.drawer.colors.backdrop
19539
19597
  });
19540
19598
  });
19541
- var StyledDrawerContainer = index$7(Animated.View)(function (_ref4) {
19599
+ var StyledDrawerContainer = index$8(Animated.View)(function (_ref4) {
19542
19600
  var theme = _ref4.theme,
19543
19601
  enableShadow = _ref4.enableShadow;
19544
19602
  return {
@@ -19549,7 +19607,7 @@ var StyledDrawerContainer = index$7(Animated.View)(function (_ref4) {
19549
19607
  overflow: 'hidden'
19550
19608
  };
19551
19609
  });
19552
- var StyledDragableDrawerContainer = index$7(Animated.View)(function (_ref5) {
19610
+ var StyledDragableDrawerContainer = index$8(Animated.View)(function (_ref5) {
19553
19611
  var theme = _ref5.theme,
19554
19612
  enableShadow = _ref5.enableShadow;
19555
19613
  return {
@@ -19561,7 +19619,7 @@ var StyledDragableDrawerContainer = index$7(Animated.View)(function (_ref5) {
19561
19619
  maxHeight: '100%'
19562
19620
  };
19563
19621
  });
19564
- var StyledHandlerContainer = index$7(View)(function (_ref6) {
19622
+ var StyledHandlerContainer = index$8(View)(function (_ref6) {
19565
19623
  var theme = _ref6.theme;
19566
19624
  return {
19567
19625
  backgroundColor: theme.__hd__.drawer.colors.background,
@@ -19569,7 +19627,7 @@ var StyledHandlerContainer = index$7(View)(function (_ref6) {
19569
19627
  alignItems: 'center'
19570
19628
  };
19571
19629
  });
19572
- var StyledHandler = index$7(View)(function (_ref7) {
19630
+ var StyledHandler = index$8(View)(function (_ref7) {
19573
19631
  var theme = _ref7.theme;
19574
19632
  return {
19575
19633
  width: theme.__hd__.drawer.sizes.handlerWidth,
@@ -19800,11 +19858,11 @@ var Drawer = function Drawer(_ref) {
19800
19858
  }, children));
19801
19859
  };
19802
19860
 
19803
- var index$5 = Object.assign(Drawer, {
19861
+ var index$6 = Object.assign(Drawer, {
19804
19862
  Dragable: DragableDrawer
19805
19863
  });
19806
19864
 
19807
- var StyledWrapper$4 = index$7(View)(function (_ref) {
19865
+ var StyledWrapper$5 = index$8(View)(function (_ref) {
19808
19866
  var theme = _ref.theme;
19809
19867
  return {
19810
19868
  display: 'flex',
@@ -19815,19 +19873,9 @@ var StyledWrapper$4 = index$7(View)(function (_ref) {
19815
19873
  padding: theme.__hd__.empty.space.wrapperPadding
19816
19874
  };
19817
19875
  });
19818
- var StyledIllustration = index$7(View)(function (_ref2) {
19819
- var theme = _ref2.theme;
19820
- return {
19821
- height: theme.__hd__.empty.sizes.illustration,
19822
- width: theme.__hd__.empty.sizes.illustration,
19823
- borderRadius: theme.__hd__.empty.radii.illustration,
19824
- backgroundColor: theme.__hd__.empty.colors.illustrationBackground,
19825
- marginBottom: theme.__hd__.empty.space.illustrationMargin
19826
- };
19827
- });
19828
- var StyledTitle = index$7(Text$1)(function (_ref3) {
19829
- var theme = _ref3.theme,
19830
- themeVariant = _ref3.themeVariant;
19876
+ var StyledTitle = index$8(Text$1)(function (_ref2) {
19877
+ var theme = _ref2.theme,
19878
+ themeVariant = _ref2.themeVariant;
19831
19879
  return {
19832
19880
  fontFamily: theme.__hd__.empty.fonts.title,
19833
19881
  fontSize: theme.__hd__.empty.fontSizes.title,
@@ -19836,9 +19884,9 @@ var StyledTitle = index$7(Text$1)(function (_ref3) {
19836
19884
  color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
19837
19885
  };
19838
19886
  });
19839
- var StyledDescription = index$7(Text$1)(function (_ref4) {
19840
- var theme = _ref4.theme,
19841
- themeVariant = _ref4.themeVariant;
19887
+ var StyledDescription = index$8(Text$1)(function (_ref3) {
19888
+ var theme = _ref3.theme,
19889
+ themeVariant = _ref3.themeVariant;
19842
19890
  return {
19843
19891
  fontFamily: theme.__hd__.empty.fonts.description,
19844
19892
  fontSize: theme.__hd__.empty.fontSizes.description,
@@ -19848,23 +19896,29 @@ var StyledDescription = index$7(Text$1)(function (_ref4) {
19848
19896
  });
19849
19897
 
19850
19898
  var Empty = function Empty(_ref) {
19851
- var title = _ref.title,
19899
+ var image = _ref.image,
19900
+ title = _ref.title,
19852
19901
  description = _ref.description,
19853
19902
  style = _ref.style,
19854
19903
  testID = _ref.testID,
19855
19904
  _ref$variant = _ref.variant,
19856
19905
  variant = _ref$variant === void 0 ? 'light' : _ref$variant;
19857
- return /*#__PURE__*/React.createElement(StyledWrapper$4, {
19906
+ var theme = useTheme();
19907
+ return /*#__PURE__*/React.createElement(StyledWrapper$5, {
19858
19908
  style: style,
19859
19909
  testID: testID
19860
- }, /*#__PURE__*/React.createElement(StyledIllustration, null), /*#__PURE__*/React.createElement(StyledTitle, {
19910
+ }, image !== undefined && /*#__PURE__*/React.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
19911
+ style: [{
19912
+ marginBottom: theme.__hd__.empty.space.imageMargin
19913
+ }, image.props.style]
19914
+ })), /*#__PURE__*/React.createElement(StyledTitle, {
19861
19915
  themeVariant: variant
19862
19916
  }, title), !!description && /*#__PURE__*/React.createElement(StyledDescription, {
19863
19917
  themeVariant: variant
19864
19918
  }, description));
19865
19919
  };
19866
19920
 
19867
- var StyledFABContainer = index$7(TouchableHighlight)(function (_ref) {
19921
+ var StyledFABContainer = index$8(TouchableHighlight)(function (_ref) {
19868
19922
  var theme = _ref.theme;
19869
19923
  return {
19870
19924
  backgroundColor: theme.__hd__.fab.colors.buttonBackground,
@@ -19878,7 +19932,7 @@ var StyledFABContainer = index$7(TouchableHighlight)(function (_ref) {
19878
19932
  flexDirection: 'row'
19879
19933
  };
19880
19934
  });
19881
- var StyledFABIcon = index$7(Icon)(function (_ref2) {
19935
+ var StyledFABIcon = index$8(Icon)(function (_ref2) {
19882
19936
  var theme = _ref2.theme;
19883
19937
  return {
19884
19938
  color: theme.__hd__.fab.colors.icon,
@@ -19887,7 +19941,7 @@ var StyledFABIcon = index$7(Icon)(function (_ref2) {
19887
19941
  textAlign: 'center'
19888
19942
  };
19889
19943
  });
19890
- var StyledFABText = index$7(Text$1)(function (_ref3) {
19944
+ var StyledFABText = index$8(Text$1)(function (_ref3) {
19891
19945
  var theme = _ref3.theme;
19892
19946
  return {
19893
19947
  fontFamily: theme.__hd__.fab.fonts.title,
@@ -19900,12 +19954,12 @@ var StyledFABText = index$7(Text$1)(function (_ref3) {
19900
19954
  };
19901
19955
  });
19902
19956
 
19903
- var _excluded$4 = ["active"];
19957
+ var _excluded$5 = ["active"];
19904
19958
  var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
19905
19959
 
19906
19960
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
19907
19961
  var active = _ref.active,
19908
- iconProps = _objectWithoutProperties(_ref, _excluded$4);
19962
+ iconProps = _objectWithoutProperties(_ref, _excluded$5);
19909
19963
 
19910
19964
  var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
19911
19965
  useEffect(function () {
@@ -19984,7 +20038,7 @@ var FAB = function FAB(_ref3) {
19984
20038
  }));
19985
20039
  };
19986
20040
 
19987
- var StyledActionItem = index$7(TouchableOpacity)(function (_ref) {
20041
+ var StyledActionItem = index$8(TouchableOpacity)(function (_ref) {
19988
20042
  var theme = _ref.theme;
19989
20043
  return {
19990
20044
  paddingLeft: theme.__hd__.fab.space.actionItemPaddingLeft,
@@ -20001,7 +20055,7 @@ var StyledActionItem = index$7(TouchableOpacity)(function (_ref) {
20001
20055
  overflow: 'hidden'
20002
20056
  };
20003
20057
  });
20004
- var StyledActionItemText = index$7(Typography.Text)(function (_ref2) {
20058
+ var StyledActionItemText = index$8(Typography.Text)(function (_ref2) {
20005
20059
  var theme = _ref2.theme;
20006
20060
  return {
20007
20061
  paddingLeft: theme.__hd__.fab.space.actionItemTextPaddingLeft,
@@ -20011,7 +20065,7 @@ var StyledActionItemText = index$7(Typography.Text)(function (_ref2) {
20011
20065
  color: theme.__hd__.fab.colors.actionItemText
20012
20066
  };
20013
20067
  });
20014
- var StyledIcon = index$7(Icon)(function (_ref3) {
20068
+ var StyledIcon = index$8(Icon)(function (_ref3) {
20015
20069
  var theme = _ref3.theme;
20016
20070
  return {
20017
20071
  color: theme.__hd__.fab.colors.actionItemText
@@ -20033,7 +20087,7 @@ var ActionItem = function ActionItem(_ref) {
20033
20087
  }), /*#__PURE__*/React.createElement(StyledActionItemText, null, title));
20034
20088
  };
20035
20089
 
20036
- var StyledContainer$1 = index$7(View)({
20090
+ var StyledContainer$1 = index$8(View)({
20037
20091
  position: 'absolute',
20038
20092
  left: 0,
20039
20093
  right: 0,
@@ -20042,12 +20096,12 @@ var StyledContainer$1 = index$7(View)({
20042
20096
  alignItems: 'flex-end',
20043
20097
  justifyContent: 'flex-end'
20044
20098
  });
20045
- var StyledActionGroupContainer = index$7(Animated.View)({
20099
+ var StyledActionGroupContainer = index$8(Animated.View)({
20046
20100
  alignItems: 'flex-end',
20047
20101
  justifyContent: 'flex-end',
20048
20102
  width: '70%'
20049
20103
  });
20050
- var StyledFAB = index$7(FAB)(function (_ref) {
20104
+ var StyledFAB = index$8(FAB)(function (_ref) {
20051
20105
  var theme = _ref.theme;
20052
20106
  return {
20053
20107
  marginRight: theme.__hd__.fab.space.buttonMarginRight,
@@ -20055,7 +20109,7 @@ var StyledFAB = index$7(FAB)(function (_ref) {
20055
20109
  alignSelf: 'flex-end'
20056
20110
  };
20057
20111
  });
20058
- var StyledBackdrop = index$7(Animated.View)(function (_ref2) {
20112
+ var StyledBackdrop = index$8(Animated.View)(function (_ref2) {
20059
20113
  var theme = _ref2.theme;
20060
20114
  return {
20061
20115
  position: 'absolute',
@@ -20066,7 +20120,7 @@ var StyledBackdrop = index$7(Animated.View)(function (_ref2) {
20066
20120
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
20067
20121
  };
20068
20122
  });
20069
- var StyledHeaderText = index$7(Typography.Text)(function (_ref3) {
20123
+ var StyledHeaderText = index$8(Typography.Text)(function (_ref3) {
20070
20124
  var theme = _ref3.theme;
20071
20125
  return {
20072
20126
  fontSize: theme.__hd__.fab.fontSizes.header,
@@ -20154,11 +20208,34 @@ var ActionGroup = function ActionGroup(_ref2) {
20154
20208
  }));
20155
20209
  };
20156
20210
 
20157
- var index$4 = Object.assign(FAB, {
20211
+ var index$5 = Object.assign(FAB, {
20158
20212
  ActionGroup: ActionGroup
20159
20213
  });
20160
20214
 
20161
- var StyledListItemContainer$1 = index$7(TouchableHighlight)(function (_ref) {
20215
+ var _excluded$4 = ["rounded", "size", "testID", "style"];
20216
+
20217
+ var Image = function Image(_ref) {
20218
+ var _ref$rounded = _ref.rounded,
20219
+ rounded = _ref$rounded === void 0 ? false : _ref$rounded,
20220
+ _ref$size = _ref.size,
20221
+ size = _ref$size === void 0 ? '6xlarge' : _ref$size,
20222
+ testID = _ref.testID,
20223
+ style = _ref.style,
20224
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$4);
20225
+
20226
+ var theme = useTheme();
20227
+ var imageSize = theme.__hd__.image.sizes[size];
20228
+ return /*#__PURE__*/React.createElement(Image$1, _extends$1({
20229
+ testID: testID,
20230
+ style: [{
20231
+ width: imageSize,
20232
+ height: imageSize,
20233
+ borderRadius: rounded ? imageSize / 2 : 0
20234
+ }, style]
20235
+ }, imageNativeProps));
20236
+ };
20237
+
20238
+ var StyledListItemContainer$1 = index$8(TouchableHighlight)(function (_ref) {
20162
20239
  var theme = _ref.theme,
20163
20240
  _ref$themeSelected = _ref.themeSelected,
20164
20241
  themeSelected = _ref$themeSelected === void 0 ? false : _ref$themeSelected,
@@ -20189,21 +20266,21 @@ var StyledListItemContainer$1 = index$7(TouchableHighlight)(function (_ref) {
20189
20266
  return sharedStyles;
20190
20267
  }
20191
20268
  });
20192
- var StyledContentContainer = index$7(View)(function () {
20269
+ var StyledContentContainer = index$8(View)(function () {
20193
20270
  return {
20194
20271
  flexDirection: 'column',
20195
20272
  flex: 1,
20196
20273
  flexGrow: 2
20197
20274
  };
20198
20275
  });
20199
- var StyledChildrenContainer = index$7(View)(function () {
20276
+ var StyledChildrenContainer = index$8(View)(function () {
20200
20277
  return {
20201
20278
  flexDirection: 'column',
20202
20279
  justifyContent: 'flex-start',
20203
20280
  alignItems: 'flex-start'
20204
20281
  };
20205
20282
  });
20206
- var StyledLeadingStatus = index$7(View)(function (_ref2) {
20283
+ var StyledLeadingStatus = index$8(View)(function (_ref2) {
20207
20284
  var theme = _ref2.theme,
20208
20285
  themeLeadingStatusIntent = _ref2.themeLeadingStatusIntent;
20209
20286
  return {
@@ -20213,19 +20290,19 @@ var StyledLeadingStatus = index$7(View)(function (_ref2) {
20213
20290
  backgroundColor: theme.__hd__.list.colors.leadingStatus[themeLeadingStatusIntent]
20214
20291
  };
20215
20292
  });
20216
- var StyledPrefixContainer$1 = index$7(View)(function (_ref3) {
20293
+ var StyledPrefixContainer$1 = index$8(View)(function (_ref3) {
20217
20294
  var theme = _ref3.theme;
20218
20295
  return {
20219
20296
  marginRight: theme.__hd__.list.space.prefixContainerMarginRight
20220
20297
  };
20221
20298
  });
20222
- var StyledSuffixContainer$1 = index$7(View)(function (_ref4) {
20299
+ var StyledSuffixContainer$1 = index$8(View)(function (_ref4) {
20223
20300
  var theme = _ref4.theme;
20224
20301
  return {
20225
20302
  marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
20226
20303
  };
20227
20304
  });
20228
- var StyledTitleContainer$1 = index$7(View)(function () {
20305
+ var StyledTitleContainer$1 = index$8(View)(function () {
20229
20306
  return {
20230
20307
  flex: 1
20231
20308
  };
@@ -20280,24 +20357,24 @@ var ListItem = function ListItem(_ref) {
20280
20357
  }) : suffix)), children && /*#__PURE__*/React.createElement(StyledChildrenContainer, null, children))));
20281
20358
  };
20282
20359
 
20283
- var StyledPrefixContainer = index$7(View)(function (_ref) {
20360
+ var StyledPrefixContainer = index$8(View)(function (_ref) {
20284
20361
  var theme = _ref.theme;
20285
20362
  return {
20286
20363
  marginRight: theme.__hd__.list.space.prefixContainerMarginRight
20287
20364
  };
20288
20365
  });
20289
- var StyledSuffixContainer = index$7(View)(function (_ref2) {
20366
+ var StyledSuffixContainer = index$8(View)(function (_ref2) {
20290
20367
  var theme = _ref2.theme;
20291
20368
  return {
20292
20369
  marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
20293
20370
  };
20294
20371
  });
20295
- var StyledTitleContainer = index$7(View)(function () {
20372
+ var StyledTitleContainer = index$8(View)(function () {
20296
20373
  return {
20297
20374
  flex: 1
20298
20375
  };
20299
20376
  });
20300
- var StyledListItemContainer = index$7(TouchableHighlight)(function (_ref3) {
20377
+ var StyledListItemContainer = index$8(TouchableHighlight)(function (_ref3) {
20301
20378
  var theme = _ref3.theme,
20302
20379
  themeSelected = _ref3.themeSelected,
20303
20380
  themeDisabled = _ref3.themeDisabled;
@@ -20351,17 +20428,17 @@ var List = {
20351
20428
  BasicItem: BasicListItem
20352
20429
  };
20353
20430
 
20354
- var StyledWrapper$3 = index$7(View)(function () {
20431
+ var StyledWrapper$4 = index$8(View)(function () {
20355
20432
  return {
20356
20433
  alignContent: 'flex-start'
20357
20434
  };
20358
20435
  });
20359
- var StyledPinWrapper = index$7(View)(function () {
20436
+ var StyledPinWrapper = index$8(View)(function () {
20360
20437
  return {
20361
20438
  flexDirection: 'row'
20362
20439
  };
20363
20440
  });
20364
- var StyledCell = index$7(View)(function (_ref) {
20441
+ var StyledCell = index$8(View)(function (_ref) {
20365
20442
  var theme = _ref.theme,
20366
20443
  themeFocused = _ref.themeFocused,
20367
20444
  themeState = _ref.themeState;
@@ -20375,7 +20452,7 @@ var StyledCell = index$7(View)(function (_ref) {
20375
20452
  borderColor: theme.__hd__.pinInput.colors[themeState]
20376
20453
  };
20377
20454
  });
20378
- var StyledCellText = index$7(Text$1)(function (_ref2) {
20455
+ var StyledCellText = index$8(Text$1)(function (_ref2) {
20379
20456
  var theme = _ref2.theme,
20380
20457
  themeState = _ref2.themeState;
20381
20458
  return {
@@ -20384,13 +20461,13 @@ var StyledCellText = index$7(Text$1)(function (_ref2) {
20384
20461
  color: theme.__hd__.pinInput.colors[themeState]
20385
20462
  };
20386
20463
  });
20387
- var StyledSpacer = index$7(View)(function (_ref3) {
20464
+ var StyledSpacer = index$8(View)(function (_ref3) {
20388
20465
  var theme = _ref3.theme;
20389
20466
  return {
20390
20467
  marginLeft: theme.__hd__.pinInput.space.spacer
20391
20468
  };
20392
20469
  });
20393
- var StyledMask = index$7(View)(function (_ref4) {
20470
+ var StyledMask = index$8(View)(function (_ref4) {
20394
20471
  var theme = _ref4.theme,
20395
20472
  themeState = _ref4.themeState;
20396
20473
  return {
@@ -20401,7 +20478,7 @@ var StyledMask = index$7(View)(function (_ref4) {
20401
20478
  borderColor: theme.__hd__.pinInput.colors[themeState]
20402
20479
  };
20403
20480
  });
20404
- var StyledFilledMask = index$7(View)(function (_ref5) {
20481
+ var StyledFilledMask = index$8(View)(function (_ref5) {
20405
20482
  var theme = _ref5.theme,
20406
20483
  themeState = _ref5.themeState;
20407
20484
  return {
@@ -20413,7 +20490,7 @@ var StyledFilledMask = index$7(View)(function (_ref5) {
20413
20490
  backgroundColor: theme.__hd__.pinInput.colors[themeState]
20414
20491
  };
20415
20492
  });
20416
- var StyledHiddenInput = index$7(TextInput$1)(function (_ref6) {
20493
+ var StyledHiddenInput = index$8(TextInput$1)(function (_ref6) {
20417
20494
  var themePinLength = _ref6.themePinLength,
20418
20495
  theme = _ref6.theme;
20419
20496
  var cellWidth = theme.__hd__.pinInput.sizes.cellWidth;
@@ -20427,14 +20504,14 @@ var StyledHiddenInput = index$7(TextInput$1)(function (_ref6) {
20427
20504
  height: '100%'
20428
20505
  };
20429
20506
  });
20430
- var StyledErrorContainer = index$7(View)(function (_ref7) {
20507
+ var StyledErrorContainer = index$8(View)(function (_ref7) {
20431
20508
  var theme = _ref7.theme;
20432
20509
  return {
20433
20510
  flexDirection: 'row',
20434
20511
  paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
20435
20512
  };
20436
20513
  });
20437
- var StyledErrorMessage = index$7(Text$1)(function (_ref8) {
20514
+ var StyledErrorMessage = index$8(Text$1)(function (_ref8) {
20438
20515
  var theme = _ref8.theme;
20439
20516
  return {
20440
20517
  fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
@@ -20537,7 +20614,7 @@ function PinInput(_ref2) {
20537
20614
  InteractionManager.runAfterInteractions(focus);
20538
20615
  }
20539
20616
  }, [inputRef]);
20540
- return /*#__PURE__*/React.createElement(StyledWrapper$3, {
20617
+ return /*#__PURE__*/React.createElement(StyledWrapper$4, {
20541
20618
  style: style,
20542
20619
  testID: testID
20543
20620
  }, /*#__PURE__*/React.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
@@ -20576,14 +20653,14 @@ var INNER_CIRCLE_PERCENTAGE = 0.85; // 85% width according to design
20576
20653
 
20577
20654
  var STROKE_WIDTH_PERCENTAGE = 0.075; // 7.5% width according to design
20578
20655
 
20579
- var StyledContainer = index$7(View)(function (_ref) {
20656
+ var StyledContainer = index$8(View)(function (_ref) {
20580
20657
  var theme = _ref.theme;
20581
20658
  return {
20582
20659
  flexDirection: 'row',
20583
20660
  borderRadius: theme.__hd__.progress.radii["default"]
20584
20661
  };
20585
20662
  });
20586
- var StyledHalfCircleWrapper = index$7(View)(function (_ref2) {
20663
+ var StyledHalfCircleWrapper = index$8(View)(function (_ref2) {
20587
20664
  var theme = _ref2.theme;
20588
20665
  return {
20589
20666
  width: theme.__hd__.progress.sizes.circleWidth / 2,
@@ -20591,7 +20668,7 @@ var StyledHalfCircleWrapper = index$7(View)(function (_ref2) {
20591
20668
  overflow: 'hidden'
20592
20669
  };
20593
20670
  });
20594
- var StyledHalfCircleInnerFG = index$7(View)(function (_ref3) {
20671
+ var StyledHalfCircleInnerFG = index$8(View)(function (_ref3) {
20595
20672
  var theme = _ref3.theme,
20596
20673
  themeIntent = _ref3.themeIntent;
20597
20674
  return {
@@ -20601,7 +20678,7 @@ var StyledHalfCircleInnerFG = index$7(View)(function (_ref3) {
20601
20678
  borderRadius: theme.__hd__.progress.radii["default"]
20602
20679
  };
20603
20680
  });
20604
- var StyledHalfCircleInnerBG = index$7(View)(function (_ref4) {
20681
+ var StyledHalfCircleInnerBG = index$8(View)(function (_ref4) {
20605
20682
  var theme = _ref4.theme;
20606
20683
  return {
20607
20684
  width: theme.__hd__.progress.sizes.circleWidth,
@@ -20610,7 +20687,7 @@ var StyledHalfCircleInnerBG = index$7(View)(function (_ref4) {
20610
20687
  borderRadius: theme.__hd__.progress.radii["default"]
20611
20688
  };
20612
20689
  });
20613
- var StyledDonutCircle = index$7(View)(function (_ref5) {
20690
+ var StyledDonutCircle = index$8(View)(function (_ref5) {
20614
20691
  var theme = _ref5.theme;
20615
20692
  return {
20616
20693
  position: 'absolute',
@@ -20625,7 +20702,7 @@ var StyledDonutCircle = index$7(View)(function (_ref5) {
20625
20702
  justifyContent: 'center'
20626
20703
  };
20627
20704
  });
20628
- var StyledStrokeEnd = index$7(View)(function (_ref6) {
20705
+ var StyledStrokeEnd = index$8(View)(function (_ref6) {
20629
20706
  var theme = _ref6.theme,
20630
20707
  themeIntent = _ref6.themeIntent;
20631
20708
  return {
@@ -20753,7 +20830,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
20753
20830
  }, "".concat(value, "%")))));
20754
20831
  };
20755
20832
 
20756
- var StyledWrapper$2 = index$7(View)(function (_ref) {
20833
+ var StyledWrapper$3 = index$8(View)(function (_ref) {
20757
20834
  var theme = _ref.theme;
20758
20835
  return {
20759
20836
  height: theme.__hd__.progress.sizes.barHeight,
@@ -20762,7 +20839,7 @@ var StyledWrapper$2 = index$7(View)(function (_ref) {
20762
20839
  overflow: 'hidden'
20763
20840
  };
20764
20841
  });
20765
- var StyledInner = index$7(Animated.View)(function (_ref2) {
20842
+ var StyledInner = index$8(Animated.View)(function (_ref2) {
20766
20843
  var theme = _ref2.theme,
20767
20844
  themeIntent = _ref2.themeIntent;
20768
20845
  return {
@@ -20808,7 +20885,7 @@ var ProgressBar = function ProgressBar(_ref) {
20808
20885
  outputRange: [999, 0],
20809
20886
  extrapolate: 'clamp'
20810
20887
  });
20811
- return /*#__PURE__*/React.createElement(StyledWrapper$2, _extends$1({}, nativeProps, {
20888
+ return /*#__PURE__*/React.createElement(StyledWrapper$3, _extends$1({}, nativeProps, {
20812
20889
  testID: testID,
20813
20890
  style: style
20814
20891
  }), /*#__PURE__*/React.createElement(StyledInner, {
@@ -20832,13 +20909,47 @@ var Progress = {
20832
20909
  Bar: ProgressBar
20833
20910
  };
20834
20911
 
20835
- var StyledView$1 = index$7(View)();
20836
- var StyledSpinnerContainer = index$7(View)({
20912
+ var Slider = function Slider(_ref) {
20913
+ var _ref$minimumValue = _ref.minimumValue,
20914
+ minimumValue = _ref$minimumValue === void 0 ? 0 : _ref$minimumValue,
20915
+ _ref$maximumValue = _ref.maximumValue,
20916
+ maximumValue = _ref$maximumValue === void 0 ? 1 : _ref$maximumValue,
20917
+ _ref$step = _ref.step,
20918
+ step = _ref$step === void 0 ? 0 : _ref$step,
20919
+ _ref$value = _ref.value,
20920
+ value = _ref$value === void 0 ? 0 : _ref$value,
20921
+ onValueChange = _ref.onValueChange,
20922
+ onSlidingStart = _ref.onSlidingStart,
20923
+ onSlidingComplete = _ref.onSlidingComplete,
20924
+ _ref$disabled = _ref.disabled,
20925
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
20926
+ style = _ref.style,
20927
+ testID = _ref.testID;
20928
+ var theme = useTheme();
20929
+ return /*#__PURE__*/React.createElement(RnSlider, {
20930
+ minimumValue: minimumValue,
20931
+ maximumValue: maximumValue,
20932
+ step: step,
20933
+ value: value,
20934
+ onValueChange: onValueChange,
20935
+ onSlidingStart: onSlidingStart,
20936
+ onSlidingComplete: onSlidingComplete,
20937
+ disabled: disabled,
20938
+ minimumTrackTintColor: theme.__hd__.slider.colors.minimumTrackTint,
20939
+ thumbTintColor: theme.__hd__.slider.colors.thumbTint,
20940
+ maximumTrackTintColor: theme.__hd__.slider.colors.maximumTrackTint,
20941
+ style: style,
20942
+ testID: testID
20943
+ });
20944
+ };
20945
+
20946
+ var StyledView$1 = index$8(View)();
20947
+ var StyledSpinnerContainer = index$8(View)({
20837
20948
  height: '100%',
20838
20949
  justifyContent: 'center',
20839
20950
  alignItems: 'center'
20840
20951
  });
20841
- var StyledSpinnerRow = index$7(View)(function (_ref) {
20952
+ var StyledSpinnerRow = index$8(View)(function (_ref) {
20842
20953
  var themePosition = _ref.themePosition,
20843
20954
  _ref$themeSize = _ref.themeSize,
20844
20955
  themeSize = _ref$themeSize === void 0 ? 'medium' : _ref$themeSize,
@@ -20848,7 +20959,7 @@ var StyledSpinnerRow = index$7(View)(function (_ref) {
20848
20959
  marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding[themeSize] : 0
20849
20960
  };
20850
20961
  });
20851
- var StyledSpinnerDot = index$7(View)(function (_ref2) {
20962
+ var StyledSpinnerDot = index$8(View)(function (_ref2) {
20852
20963
  var themePosition = _ref2.themePosition,
20853
20964
  _ref2$themeSize = _ref2.themeSize,
20854
20965
  themeSize = _ref2$themeSize === void 0 ? 'medium' : _ref2$themeSize,
@@ -20952,7 +21063,7 @@ var Spinner = function Spinner(_ref) {
20952
21063
  })));
20953
21064
  };
20954
21065
 
20955
- var Circle = index$7(View)(function (_ref) {
21066
+ var Circle = index$8(View)(function (_ref) {
20956
21067
  var theme = _ref.theme;
20957
21068
  return {
20958
21069
  height: theme.__hd__.radio.sizes.circle,
@@ -20964,7 +21075,7 @@ var Circle = index$7(View)(function (_ref) {
20964
21075
  justifyContent: 'center'
20965
21076
  };
20966
21077
  });
20967
- var InnerCircle = index$7(View)(function (_ref2) {
21078
+ var InnerCircle = index$8(View)(function (_ref2) {
20968
21079
  var theme = _ref2.theme;
20969
21080
  return {
20970
21081
  height: theme.__hd__.radio.sizes.innerCircle,
@@ -20973,7 +21084,7 @@ var InnerCircle = index$7(View)(function (_ref2) {
20973
21084
  backgroundColor: theme.__hd__.radio.colors.circle
20974
21085
  };
20975
21086
  });
20976
- var Spacer = index$7(View)(function (_ref3) {
21087
+ var Spacer = index$8(View)(function (_ref3) {
20977
21088
  var theme = _ref3.theme;
20978
21089
  return {
20979
21090
  marginTop: theme.__hd__.radio.space.groupTopMargin
@@ -21049,7 +21160,7 @@ var CompoundRadio = {
21049
21160
  Group: RadioGroup
21050
21161
  };
21051
21162
 
21052
- var StyledHeading = index$7(View)(function (_ref) {
21163
+ var StyledHeading = index$8(View)(function (_ref) {
21053
21164
  var theme = _ref.theme;
21054
21165
  return {
21055
21166
  paddingVertical: theme.__hd__.sectionHeading.space.headingVerticalPadding,
@@ -21062,13 +21173,13 @@ var StyledHeading = index$7(View)(function (_ref) {
21062
21173
  justifyContent: 'space-between'
21063
21174
  };
21064
21175
  });
21065
- var StyledIconWrapper = index$7(View)(function (_ref2) {
21176
+ var StyledIconWrapper$1 = index$8(View)(function (_ref2) {
21066
21177
  var theme = _ref2.theme;
21067
21178
  return {
21068
21179
  marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
21069
21180
  };
21070
21181
  });
21071
- var StyledWrapper$1 = index$7(View)(function () {
21182
+ var StyledWrapper$2 = index$8(View)(function () {
21072
21183
  return {
21073
21184
  display: 'flex',
21074
21185
  flexDirection: 'row'
@@ -21102,7 +21213,7 @@ var SectionHeading = function SectionHeading(_ref) {
21102
21213
  return /*#__PURE__*/React.createElement(StyledHeading, {
21103
21214
  style: style,
21104
21215
  testID: testID
21105
- }, /*#__PURE__*/React.createElement(StyledWrapper$1, null, /*#__PURE__*/React.createElement(StyledIconWrapper, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React.createElement(Icon, {
21216
+ }, /*#__PURE__*/React.createElement(StyledWrapper$2, null, /*#__PURE__*/React.createElement(StyledIconWrapper$1, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React.createElement(Icon, {
21106
21217
  icon: icon,
21107
21218
  size: ICON_SIZE_MAP[fontSize],
21108
21219
  intent: ICON_INTENT_MAP[intent]
@@ -21116,25 +21227,25 @@ var SectionHeading = function SectionHeading(_ref) {
21116
21227
  }, text)), rightChildren);
21117
21228
  };
21118
21229
 
21119
- var SectionSpacer = index$7(View)(function (_ref) {
21230
+ var SectionSpacer = index$8(View)(function (_ref) {
21120
21231
  var theme = _ref.theme;
21121
21232
  return {
21122
21233
  marginTop: theme.__hd__.select.space.sectionSpacing
21123
21234
  };
21124
21235
  });
21125
- var OptionSpacer = index$7(View)(function (_ref2) {
21236
+ var OptionSpacer = index$8(View)(function (_ref2) {
21126
21237
  var theme = _ref2.theme;
21127
21238
  return {
21128
21239
  marginTop: theme.__hd__.select.space.optionSpacing
21129
21240
  };
21130
21241
  });
21131
- var FooterText = index$7(Typography.Text)(function (_ref3) {
21242
+ var FooterText = index$8(Typography.Text)(function (_ref3) {
21132
21243
  var theme = _ref3.theme;
21133
21244
  return {
21134
21245
  color: theme.__hd__.select.colors.footerText
21135
21246
  };
21136
21247
  });
21137
- var StyledSearchBar = index$7(View)(function (_ref4) {
21248
+ var StyledSearchBar = index$8(View)(function (_ref4) {
21138
21249
  var theme = _ref4.theme;
21139
21250
  return {
21140
21251
  marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
@@ -21154,72 +21265,6 @@ var Footer = function Footer(_ref) {
21154
21265
  }, label));
21155
21266
  };
21156
21267
 
21157
- var isSections = function isSections(options) {
21158
- var firstOption = options[0];
21159
- return firstOption !== undefined && firstOption.category !== undefined;
21160
- };
21161
- var toSections = function toSections(options) {
21162
- if (isSections(options)) {
21163
- return options;
21164
- }
21165
-
21166
- return [{
21167
- category: '',
21168
- data: options
21169
- }];
21170
- };
21171
- var toFlatOptions = function toFlatOptions(options) {
21172
- if (isSections(options)) {
21173
- return options.flatMap(function (opt) {
21174
- return opt.data;
21175
- });
21176
- }
21177
-
21178
- return options;
21179
- };
21180
- var getScrollParams = function getScrollParams(value, sections) {
21181
- var itemIndex = -1;
21182
- var sectionIndex = sections.findIndex(function (section) {
21183
- itemIndex = section.data.findIndex(function (opt) {
21184
- return opt.value === value;
21185
- });
21186
- return itemIndex !== -1;
21187
- });
21188
- return {
21189
- sectionIndex: sectionIndex < 0 ? 0 : sectionIndex,
21190
- itemIndex: itemIndex < 0 ? 0 : itemIndex
21191
- };
21192
- };
21193
- var useKeyboard = function useKeyboard() {
21194
- var _useState = useState(false),
21195
- _useState2 = _slicedToArray(_useState, 2),
21196
- isKeyboardVisible = _useState2[0],
21197
- setKeyboardVisible = _useState2[1];
21198
-
21199
- var _useState3 = useState(0),
21200
- _useState4 = _slicedToArray(_useState3, 2),
21201
- keyboardHeight = _useState4[0],
21202
- setKeyboardHeight = _useState4[1];
21203
-
21204
- useEffect(function () {
21205
- var keyboardWillShowListener = Keyboard.addListener('keyboardWillShow', function (e) {
21206
- setKeyboardVisible(true);
21207
- setKeyboardHeight(e.endCoordinates.height);
21208
- });
21209
- var keyboardWillHideListener = Keyboard.addListener('keyboardWillHide', function () {
21210
- setKeyboardVisible(false);
21211
- });
21212
- return function () {
21213
- keyboardWillShowListener.remove();
21214
- keyboardWillHideListener.remove();
21215
- };
21216
- }, []);
21217
- return {
21218
- isKeyboardVisible: isKeyboardVisible,
21219
- keyboardHeight: keyboardHeight
21220
- };
21221
- };
21222
-
21223
21268
  var StyledOptionList = function StyledOptionList(_ref) {
21224
21269
  var keyExtractor = _ref.keyExtractor,
21225
21270
  loading = _ref.loading,
@@ -21227,9 +21272,8 @@ var StyledOptionList = function StyledOptionList(_ref) {
21227
21272
  onQueryChange = _ref.onQueryChange,
21228
21273
  sections = _ref.sections,
21229
21274
  renderItem = _ref.renderItem,
21230
- scrollParams = _ref.scrollParams;
21275
+ sectionListRef = _ref.sectionListRef;
21231
21276
  var theme = useTheme$1();
21232
- var sectionListRef = useRef(null);
21233
21277
 
21234
21278
  var _useState = useState(false),
21235
21279
  _useState2 = _slicedToArray(_useState, 2),
@@ -21248,11 +21292,6 @@ var StyledOptionList = function StyledOptionList(_ref) {
21248
21292
  return setOnEndReachedCalled(true);
21249
21293
  },
21250
21294
  onScrollToIndexFailed: function onScrollToIndexFailed() {},
21251
- onContentSizeChange: function onContentSizeChange() {
21252
- var _sectionListRef$curre;
21253
-
21254
- return sections.length && ((_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 ? void 0 : _sectionListRef$curre.scrollToLocation(scrollParams));
21255
- },
21256
21295
  onMomentumScrollBegin: function onMomentumScrollBegin() {
21257
21296
  if (onEndReached && onEndReachedCalled && !loading) onEndReached();
21258
21297
  setOnEndReachedCalled(false);
@@ -21279,7 +21318,7 @@ var StyledOptionList = function StyledOptionList(_ref) {
21279
21318
  });
21280
21319
  };
21281
21320
 
21282
- var Option$1 = function Option(_ref) {
21321
+ var Option$2 = function Option(_ref) {
21283
21322
  var text = _ref.text,
21284
21323
  _ref$disabled = _ref.disabled,
21285
21324
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
@@ -21306,9 +21345,8 @@ var OptionList$1 = function OptionList(_ref) {
21306
21345
  onQueryChange = _ref.onQueryChange,
21307
21346
  sections = _ref.sections,
21308
21347
  renderOption = _ref.renderOption,
21309
- value = _ref.value;
21310
- var firstValue = value === null || value === void 0 ? void 0 : value[0];
21311
- var scrollParams = getScrollParams(firstValue, sections);
21348
+ value = _ref.value,
21349
+ sectionListRef = _ref.sectionListRef;
21312
21350
 
21313
21351
  var renderItem = function renderItem(info) {
21314
21352
  var item = info.item;
@@ -21327,7 +21365,7 @@ var OptionList$1 = function OptionList(_ref) {
21327
21365
  return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
21328
21366
  selected: selected,
21329
21367
  onPress: onItemPress
21330
- })) : /*#__PURE__*/React.createElement(Option$1, {
21368
+ })) : /*#__PURE__*/React.createElement(Option$2, {
21331
21369
  selected: selected,
21332
21370
  text: item.text,
21333
21371
  disabled: item.disabled,
@@ -21342,10 +21380,76 @@ var OptionList$1 = function OptionList(_ref) {
21342
21380
  onQueryChange: onQueryChange,
21343
21381
  sections: sections,
21344
21382
  renderItem: renderItem,
21345
- scrollParams: scrollParams
21383
+ sectionListRef: sectionListRef
21346
21384
  });
21347
21385
  };
21348
21386
 
21387
+ var isSections = function isSections(options) {
21388
+ var firstOption = options[0];
21389
+ return firstOption !== undefined && firstOption.category !== undefined;
21390
+ };
21391
+ var toSections = function toSections(options) {
21392
+ if (isSections(options)) {
21393
+ return options;
21394
+ }
21395
+
21396
+ return [{
21397
+ category: '',
21398
+ data: options
21399
+ }];
21400
+ };
21401
+ var toFlatOptions = function toFlatOptions(options) {
21402
+ if (isSections(options)) {
21403
+ return options.flatMap(function (opt) {
21404
+ return opt.data;
21405
+ });
21406
+ }
21407
+
21408
+ return options;
21409
+ };
21410
+ var getScrollParams = function getScrollParams(value, sections) {
21411
+ var itemIndex = -1;
21412
+ var sectionIndex = sections.findIndex(function (section) {
21413
+ itemIndex = section.data.findIndex(function (opt) {
21414
+ return opt.value === value;
21415
+ });
21416
+ return itemIndex !== -1;
21417
+ });
21418
+ return {
21419
+ sectionIndex: sectionIndex < 0 ? 0 : sectionIndex,
21420
+ itemIndex: itemIndex < 0 ? 0 : itemIndex
21421
+ };
21422
+ };
21423
+ var useKeyboard = function useKeyboard() {
21424
+ var _useState = useState(false),
21425
+ _useState2 = _slicedToArray(_useState, 2),
21426
+ isKeyboardVisible = _useState2[0],
21427
+ setKeyboardVisible = _useState2[1];
21428
+
21429
+ var _useState3 = useState(0),
21430
+ _useState4 = _slicedToArray(_useState3, 2),
21431
+ keyboardHeight = _useState4[0],
21432
+ setKeyboardHeight = _useState4[1];
21433
+
21434
+ useEffect(function () {
21435
+ var keyboardWillShowListener = Keyboard.addListener('keyboardWillShow', function (e) {
21436
+ setKeyboardVisible(true);
21437
+ setKeyboardHeight(e.endCoordinates.height);
21438
+ });
21439
+ var keyboardWillHideListener = Keyboard.addListener('keyboardWillHide', function () {
21440
+ setKeyboardVisible(false);
21441
+ });
21442
+ return function () {
21443
+ keyboardWillShowListener.remove();
21444
+ keyboardWillHideListener.remove();
21445
+ };
21446
+ }, []);
21447
+ return {
21448
+ isKeyboardVisible: isKeyboardVisible,
21449
+ keyboardHeight: keyboardHeight
21450
+ };
21451
+ };
21452
+
21349
21453
  function MultiSelect(_ref) {
21350
21454
  var footerLabel = _ref.footerLabel,
21351
21455
  label = _ref.label,
@@ -21358,6 +21462,7 @@ function MultiSelect(_ref) {
21358
21462
  onQueryChange = _ref.onQueryChange,
21359
21463
  options = _ref.options,
21360
21464
  renderOption = _ref.renderOption,
21465
+ renderSelectedValue = _ref.renderSelectedValue,
21361
21466
  query = _ref.query,
21362
21467
  error = _ref.error,
21363
21468
  _ref$editable = _ref.editable,
@@ -21383,6 +21488,7 @@ function MultiSelect(_ref) {
21383
21488
  selectingValue = _useState4[0],
21384
21489
  setSelectingValue = _useState4[1];
21385
21490
 
21491
+ var sectionListRef = useRef(null);
21386
21492
  var sections = toSections(options);
21387
21493
  var flatOptions = toFlatOptions(options);
21388
21494
  var displayedValue = flatOptions.filter(function (opt) {
@@ -21410,7 +21516,10 @@ function MultiSelect(_ref) {
21410
21516
  numberOfLines: numberOfLines,
21411
21517
  pointerEvents: "none",
21412
21518
  style: style,
21413
- testID: testID
21519
+ testID: testID,
21520
+ renderInputValue: renderSelectedValue !== undefined ? function (props) {
21521
+ return renderSelectedValue(value, props);
21522
+ } : undefined
21414
21523
  })))), /*#__PURE__*/React.createElement(BottomSheet, {
21415
21524
  open: open,
21416
21525
  onRequestClose: function onRequestClose() {
@@ -21427,7 +21536,15 @@ function MultiSelect(_ref) {
21427
21536
  setOpen(false);
21428
21537
  onConfirm(selectingValue);
21429
21538
  }
21430
- })
21539
+ }),
21540
+ onAnimationEnd: function onAnimationEnd() {
21541
+ if (open === true) {
21542
+ var _sectionListRef$curre;
21543
+
21544
+ var scrollParams = getScrollParams(value === null || value === void 0 ? void 0 : value[0], sections);
21545
+ (_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 ? void 0 : _sectionListRef$curre.scrollToLocation(scrollParams);
21546
+ }
21547
+ }
21431
21548
  }, onQueryChange && /*#__PURE__*/React.createElement(StyledSearchBar, null, /*#__PURE__*/React.createElement(TextInput, {
21432
21549
  editable: true,
21433
21550
  placeholder: "Search",
@@ -21441,11 +21558,12 @@ function MultiSelect(_ref) {
21441
21558
  sections: sections,
21442
21559
  renderOption: renderOption,
21443
21560
  value: selectingValue,
21444
- onPress: setSelectingValue
21561
+ onPress: setSelectingValue,
21562
+ sectionListRef: sectionListRef
21445
21563
  })));
21446
21564
  }
21447
21565
 
21448
- var Option = function Option(_ref) {
21566
+ var Option$1 = function Option(_ref) {
21449
21567
  var text = _ref.text,
21450
21568
  _ref$disabled = _ref.disabled,
21451
21569
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
@@ -21471,8 +21589,8 @@ var OptionList = function OptionList(_ref) {
21471
21589
  onQueryChange = _ref.onQueryChange,
21472
21590
  sections = _ref.sections,
21473
21591
  renderOption = _ref.renderOption,
21474
- value = _ref.value;
21475
- var scrollParams = getScrollParams(value, sections);
21592
+ value = _ref.value,
21593
+ sectionListRef = _ref.sectionListRef;
21476
21594
 
21477
21595
  var renderItem = function renderItem(info) {
21478
21596
  var item = info.item;
@@ -21489,7 +21607,7 @@ var OptionList = function OptionList(_ref) {
21489
21607
  return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
21490
21608
  selected: selected,
21491
21609
  onPress: onItemPress
21492
- })) : /*#__PURE__*/React.createElement(Option, {
21610
+ })) : /*#__PURE__*/React.createElement(Option$1, {
21493
21611
  selected: selected,
21494
21612
  text: item.text,
21495
21613
  disabled: item.disabled,
@@ -21504,7 +21622,7 @@ var OptionList = function OptionList(_ref) {
21504
21622
  onQueryChange: onQueryChange,
21505
21623
  sections: sections,
21506
21624
  renderItem: renderItem,
21507
- scrollParams: scrollParams
21625
+ sectionListRef: sectionListRef
21508
21626
  });
21509
21627
  };
21510
21628
 
@@ -21521,6 +21639,7 @@ var SingleSelect = function SingleSelect(_ref) {
21521
21639
  onQueryChange = _ref.onQueryChange,
21522
21640
  options = _ref.options,
21523
21641
  renderOption = _ref.renderOption,
21642
+ renderSelectedValue = _ref.renderSelectedValue,
21524
21643
  query = _ref.query,
21525
21644
  error = _ref.error,
21526
21645
  _ref$editable = _ref.editable,
@@ -21541,6 +21660,7 @@ var SingleSelect = function SingleSelect(_ref) {
21541
21660
  open = _useState2[0],
21542
21661
  setOpen = _useState2[1];
21543
21662
 
21663
+ var sectionListRef = useRef(null);
21544
21664
  var sections = toSections(options);
21545
21665
  var flatOptions = toFlatOptions(options);
21546
21666
  var displayedValue = (_flatOptions$find = flatOptions.find(function (opt) {
@@ -21566,7 +21686,10 @@ var SingleSelect = function SingleSelect(_ref) {
21566
21686
  numberOfLines: numberOfLines,
21567
21687
  pointerEvents: "none",
21568
21688
  style: style,
21569
- testID: testID
21689
+ testID: testID,
21690
+ renderInputValue: renderSelectedValue !== undefined ? function (props) {
21691
+ return renderSelectedValue(value, props);
21692
+ } : undefined
21570
21693
  })))), /*#__PURE__*/React.createElement(BottomSheet, {
21571
21694
  open: open,
21572
21695
  onRequestClose: function onRequestClose() {
@@ -21576,6 +21699,14 @@ var SingleSelect = function SingleSelect(_ref) {
21576
21699
  header: label,
21577
21700
  style: {
21578
21701
  paddingBottom: isKeyboardVisible ? keyboardHeight : 0
21702
+ },
21703
+ onAnimationEnd: function onAnimationEnd() {
21704
+ if (open === true) {
21705
+ var _sectionListRef$curre;
21706
+
21707
+ var scrollParams = getScrollParams(value, sections);
21708
+ (_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 ? void 0 : _sectionListRef$curre.scrollToLocation(scrollParams);
21709
+ }
21579
21710
  }
21580
21711
  }, onQueryChange && /*#__PURE__*/React.createElement(StyledSearchBar, null, /*#__PURE__*/React.createElement(TextInput, {
21581
21712
  editable: true,
@@ -21593,21 +21724,22 @@ var SingleSelect = function SingleSelect(_ref) {
21593
21724
  onPress: function onPress(selectedValue) {
21594
21725
  setOpen(false);
21595
21726
  onConfirm(selectedValue);
21596
- }
21727
+ },
21728
+ sectionListRef: sectionListRef
21597
21729
  })));
21598
21730
  };
21599
21731
 
21600
- var index$3 = Object.assign(SingleSelect, {
21732
+ var index$4 = Object.assign(SingleSelect, {
21601
21733
  Multi: MultiSelect
21602
21734
  });
21603
21735
 
21604
- var StyledWrapper = index$7(View)(function (_ref) {
21736
+ var StyledWrapper$1 = index$8(View)(function (_ref) {
21605
21737
  var theme = _ref.theme,
21606
21738
  themeVariant = _ref.themeVariant,
21607
21739
  themeSize = _ref.themeSize;
21608
21740
  return {
21609
- height: theme.__hd__["switch"].heights[themeSize],
21610
- width: theme.__hd__["switch"].widths[themeSize],
21741
+ height: theme.__hd__["switch"].sizes.heights[themeSize],
21742
+ width: theme.__hd__["switch"].sizes.widths[themeSize],
21611
21743
  paddingHorizontal: theme.__hd__["switch"].spaces[themeSize],
21612
21744
  borderRadius: theme.__hd__["switch"].radii.rounded,
21613
21745
  backgroundColor: theme.__hd__["switch"].colors.backgroundColors[themeVariant],
@@ -21615,17 +21747,118 @@ var StyledWrapper = index$7(View)(function (_ref) {
21615
21747
  justifyContent: 'center'
21616
21748
  };
21617
21749
  });
21618
- var StyledKnot = index$7(Animated.View)(function (_ref2) {
21750
+ var StyledKnot = index$8(Animated.View)(function (_ref2) {
21619
21751
  var theme = _ref2.theme,
21620
21752
  themeSize = _ref2.themeSize;
21621
21753
  return {
21622
- width: theme.__hd__["switch"].thumbSizes[themeSize],
21623
- height: theme.__hd__["switch"].thumbSizes[themeSize],
21754
+ width: theme.__hd__["switch"].sizes.thumbs[themeSize],
21755
+ height: theme.__hd__["switch"].sizes.thumbs[themeSize],
21624
21756
  backgroundColor: theme.__hd__["switch"].colors.thumb,
21625
21757
  borderRadius: theme.__hd__["switch"].radii.rounded
21626
21758
  };
21627
21759
  });
21628
21760
 
21761
+ var StyledWrapper = index$8(View)(function (_ref) {
21762
+ var theme = _ref.theme;
21763
+ return {
21764
+ flexDirection: 'row',
21765
+ width: '100%',
21766
+ height: theme.__hd__["switch"].sizes.selector.height,
21767
+ borderRadius: theme.__hd__["switch"].radii.selector["default"],
21768
+ backgroundColor: theme.__hd__["switch"].colors.selector.background,
21769
+ padding: theme.__hd__["switch"].spaces.selector.wrapperPadding
21770
+ };
21771
+ });
21772
+ var StyledTextWrapper = index$8(View)(function (_ref2) {
21773
+ var theme = _ref2.theme;
21774
+ return {
21775
+ flex: 1,
21776
+ borderRadius: theme.__hd__["switch"].radii.selector["default"],
21777
+ backgroundColor: theme.__hd__["switch"].colors.selector.textBackground,
21778
+ justifyContent: 'center',
21779
+ alignItems: 'center'
21780
+ };
21781
+ });
21782
+ var StyledIconWrapper = index$8(View)(function (_ref3) {
21783
+ var theme = _ref3.theme;
21784
+ return {
21785
+ paddingHorizontal: theme.__hd__["switch"].spaces.selector.iconPadding,
21786
+ justifyContent: 'center',
21787
+ alignItems: 'center'
21788
+ };
21789
+ });
21790
+
21791
+ var OptionContent = function OptionContent(_ref) {
21792
+ var content = _ref.content,
21793
+ badge = _ref.badge;
21794
+ var theme = useTheme();
21795
+
21796
+ if (!badge) {
21797
+ return content;
21798
+ }
21799
+
21800
+ if (badge.type === 'status') {
21801
+ return /*#__PURE__*/React.createElement(Badge$1.Status, {
21802
+ visible: true,
21803
+ style: {
21804
+ paddingHorizontal: theme.space.small
21805
+ },
21806
+ testID: "selector-switch-status-badge"
21807
+ }, content);
21808
+ }
21809
+
21810
+ return content;
21811
+ };
21812
+
21813
+ var Option = function Option(_ref2) {
21814
+ var text = _ref2.text,
21815
+ icon = _ref2.icon,
21816
+ badge = _ref2.badge,
21817
+ selected = _ref2.selected;
21818
+
21819
+ if (selected) {
21820
+ return /*#__PURE__*/React.createElement(StyledTextWrapper, null, /*#__PURE__*/React.createElement(OptionContent, {
21821
+ content: /*#__PURE__*/React.createElement(Typography.Text, {
21822
+ fontSize: "large",
21823
+ intent: "inverted"
21824
+ }, text),
21825
+ badge: badge
21826
+ }));
21827
+ }
21828
+
21829
+ return /*#__PURE__*/React.createElement(StyledIconWrapper, null, /*#__PURE__*/React.createElement(OptionContent, {
21830
+ content: /*#__PURE__*/React.createElement(Icon, {
21831
+ icon: icon
21832
+ }),
21833
+ badge: badge
21834
+ }));
21835
+ };
21836
+
21837
+ var SelectorSwitch = function SelectorSwitch(_ref) {
21838
+ var options = _ref.options,
21839
+ value = _ref.value,
21840
+ _onPress = _ref.onPress,
21841
+ style = _ref.style,
21842
+ testID = _ref.testID;
21843
+ return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
21844
+ onPress: function onPress() {
21845
+ return _onPress(value);
21846
+ },
21847
+ testID: testID
21848
+ }, /*#__PURE__*/React.createElement(StyledWrapper, {
21849
+ style: style
21850
+ }, options.map(function (opt, index) {
21851
+ return (
21852
+ /*#__PURE__*/
21853
+ // eslint-disable-next-line react/no-array-index-key
21854
+ React.createElement(Option, _extends$1({}, opt, {
21855
+ selected: opt.value === value,
21856
+ key: index
21857
+ }))
21858
+ );
21859
+ })));
21860
+ };
21861
+
21629
21862
  var getVariant = function getVariant(_ref) {
21630
21863
  var disabled = _ref.disabled,
21631
21864
  checked = _ref.checked;
@@ -21652,7 +21885,7 @@ var Switch = function Switch(_ref2) {
21652
21885
  disabled: disabled,
21653
21886
  checked: checked
21654
21887
  });
21655
- var offset = checked ? theme.__hd__["switch"].widths[size] - theme.__hd__["switch"].thumbSizes[size] - theme.__hd__["switch"].spaces[size] * 2 : theme.__hd__["switch"].spaces.inactive;
21888
+ var offset = checked ? (theme.__hd__["switch"].sizes.widths[size] - theme.__hd__["switch"].sizes.thumbs[size]) / 2 + theme.__hd__["switch"].sizes.thumbs[size] / 2 : 0;
21656
21889
 
21657
21890
  var _useState = useState(function () {
21658
21891
  return new Animated.Value(offset);
@@ -21671,7 +21904,7 @@ var Switch = function Switch(_ref2) {
21671
21904
  testID: testID,
21672
21905
  onPress: onPress,
21673
21906
  disabled: disabled
21674
- }, /*#__PURE__*/React.createElement(StyledWrapper, {
21907
+ }, /*#__PURE__*/React.createElement(StyledWrapper$1, {
21675
21908
  themeVariant: variant,
21676
21909
  themeSize: size,
21677
21910
  style: style
@@ -21683,12 +21916,16 @@ var Switch = function Switch(_ref2) {
21683
21916
  })));
21684
21917
  };
21685
21918
 
21919
+ var index$3 = Object.assign(Switch, {
21920
+ Selector: SelectorSwitch
21921
+ });
21922
+
21686
21923
  var AnimatedPagerView = Animated.createAnimatedComponent(PagerView);
21687
- var TabContainer$1 = index$7(View)({
21924
+ var TabContainer$1 = index$8(View)({
21688
21925
  flex: 1,
21689
21926
  overflow: 'hidden'
21690
21927
  });
21691
- var HeaderTabWrapper$1 = index$7(View)(function (_ref) {
21928
+ var HeaderTabWrapper$1 = index$8(View)(function (_ref) {
21692
21929
  var theme = _ref.theme,
21693
21930
  themeInsets = _ref.themeInsets;
21694
21931
  return {
@@ -21697,10 +21934,10 @@ var HeaderTabWrapper$1 = index$7(View)(function (_ref) {
21697
21934
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
21698
21935
  };
21699
21936
  });
21700
- var HeaderTab = index$7(View)({
21937
+ var HeaderTab = index$8(View)({
21701
21938
  flexDirection: 'row'
21702
21939
  });
21703
- var HeaderTabItem$1 = index$7(View)(function (_ref2) {
21940
+ var HeaderTabItem$1 = index$8(View)(function (_ref2) {
21704
21941
  var theme = _ref2.theme;
21705
21942
  return {
21706
21943
  flex: 1,
@@ -21708,13 +21945,13 @@ var HeaderTabItem$1 = index$7(View)(function (_ref2) {
21708
21945
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21709
21946
  };
21710
21947
  });
21711
- var ContentWrapper$1 = index$7(AnimatedPagerView)({
21948
+ var ContentWrapper$1 = index$8(AnimatedPagerView)({
21712
21949
  flex: 1
21713
21950
  });
21714
- var TabScreen$1 = index$7(View)({
21951
+ var TabScreen$1 = index$8(View)({
21715
21952
  flex: 1
21716
21953
  });
21717
- var StyledIndicator = index$7(Animated.View)(function (_ref3) {
21954
+ var StyledIndicator = index$8(Animated.View)(function (_ref3) {
21718
21955
  var theme = _ref3.theme,
21719
21956
  themeWidth = _ref3.themeWidth;
21720
21957
  return {
@@ -21725,7 +21962,7 @@ var StyledIndicator = index$7(Animated.View)(function (_ref3) {
21725
21962
  bottom: 0
21726
21963
  };
21727
21964
  });
21728
- var StyledBadgeWrapper = index$7(View)({
21965
+ var StyledBadgeWrapper = index$8(View)({
21729
21966
  flexDirection: 'row',
21730
21967
  alignItems: 'center'
21731
21968
  });
@@ -21751,17 +21988,17 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
21751
21988
  });
21752
21989
  };
21753
21990
 
21754
- var TabScreen = index$7(View)({
21991
+ var TabScreen = index$8(View)({
21755
21992
  flex: 1
21756
21993
  });
21757
- var TabContainer = index$7(View)({
21994
+ var TabContainer = index$8(View)({
21758
21995
  flex: 1,
21759
21996
  overflow: 'hidden'
21760
21997
  });
21761
- var ContentWrapper = index$7(PagerView)({
21998
+ var ContentWrapper = index$8(PagerView)({
21762
21999
  flex: 1
21763
22000
  });
21764
- var HeaderTabWrapper = index$7(View)(function (_ref) {
22001
+ var HeaderTabWrapper = index$8(View)(function (_ref) {
21765
22002
  var theme = _ref.theme,
21766
22003
  themeInsets = _ref.themeInsets;
21767
22004
  return {
@@ -21770,7 +22007,7 @@ var HeaderTabWrapper = index$7(View)(function (_ref) {
21770
22007
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
21771
22008
  };
21772
22009
  });
21773
- var HeaderTabItem = index$7(Animated.View)(function (_ref2) {
22010
+ var HeaderTabItem = index$8(Animated.View)(function (_ref2) {
21774
22011
  var theme = _ref2.theme,
21775
22012
  isFirstItem = _ref2.isFirstItem;
21776
22013
  return {
@@ -21778,13 +22015,13 @@ var HeaderTabItem = index$7(Animated.View)(function (_ref2) {
21778
22015
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21779
22016
  };
21780
22017
  });
21781
- var HeaderTabItemOutlineWrapper = index$7(View)(function (_ref3) {
22018
+ var HeaderTabItemOutlineWrapper = index$8(View)(function (_ref3) {
21782
22019
  var theme = _ref3.theme;
21783
22020
  return _objectSpread2({
21784
22021
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21785
22022
  }, StyleSheet$1.absoluteFillObject);
21786
22023
  });
21787
- var HeaderTabItemOutline = index$7(Animated.View)(function (_ref4) {
22024
+ var HeaderTabItemOutline = index$8(Animated.View)(function (_ref4) {
21788
22025
  var theme = _ref4.theme,
21789
22026
  themeActive = _ref4.themeActive;
21790
22027
  return {
@@ -21792,7 +22029,7 @@ var HeaderTabItemOutline = index$7(Animated.View)(function (_ref4) {
21792
22029
  backgroundColor: themeActive ? theme.__hd__.tabs.colors.activeBackground : undefined
21793
22030
  };
21794
22031
  });
21795
- var HeaderTabItemWrapper = index$7(View)(function (_ref5) {
22032
+ var HeaderTabItemWrapper = index$8(View)(function (_ref5) {
21796
22033
  var theme = _ref5.theme;
21797
22034
  return {
21798
22035
  paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
@@ -21890,7 +22127,8 @@ var ScrollableTab = function ScrollableTab(_ref2) {
21890
22127
  _ref2$lazy = _ref2.lazy,
21891
22128
  lazy = _ref2$lazy === void 0 ? false : _ref2$lazy,
21892
22129
  _ref2$lazyPreloadDist = _ref2.lazyPreloadDistance,
21893
- lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist;
22130
+ lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist,
22131
+ componentTestID = _ref2.testID;
21894
22132
  var flatListRef = React.useRef(null);
21895
22133
  var pagerViewRef = React.useRef(null);
21896
22134
  var insets = useSafeAreaInsets();
@@ -21925,10 +22163,12 @@ var ScrollableTab = function ScrollableTab(_ref2) {
21925
22163
  };
21926
22164
  }, [selectedTabIndex]);
21927
22165
  return /*#__PURE__*/React.createElement(TabContainer, {
21928
- style: containerStyle
22166
+ style: containerStyle,
22167
+ testID: componentTestID
21929
22168
  }, /*#__PURE__*/React.createElement(HeaderTabWrapper, {
21930
22169
  themeInsets: insets,
21931
- style: barStyle
22170
+ style: barStyle,
22171
+ testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
21932
22172
  }, /*#__PURE__*/React.createElement(FlatList, {
21933
22173
  ref: flatListRef,
21934
22174
  horizontal: true,
@@ -22051,7 +22291,8 @@ var Tabs = function Tabs(_ref2) {
22051
22291
  _ref2$lazy = _ref2.lazy,
22052
22292
  lazy = _ref2$lazy === void 0 ? false : _ref2$lazy,
22053
22293
  _ref2$lazyPreloadDist = _ref2.lazyPreloadDistance,
22054
- lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist;
22294
+ lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist,
22295
+ componentTestID = _ref2.testID;
22055
22296
  var theme = useTheme$1();
22056
22297
  var insets = useSafeAreaInsets();
22057
22298
  var pagerViewRef = React.useRef(null);
@@ -22074,10 +22315,12 @@ var Tabs = function Tabs(_ref2) {
22074
22315
  }
22075
22316
  }, [selectedTabIndex]);
22076
22317
  return /*#__PURE__*/React.createElement(TabContainer$1, {
22077
- style: containerStyle
22318
+ style: containerStyle,
22319
+ testID: componentTestID
22078
22320
  }, /*#__PURE__*/React.createElement(HeaderTabWrapper$1, {
22079
22321
  themeInsets: insets,
22080
- style: barStyle
22322
+ style: barStyle,
22323
+ testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
22081
22324
  }, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(HeaderTab, {
22082
22325
  onLayout: function onLayout(e) {
22083
22326
  var width = e.nativeEvent.layout.width;
@@ -22156,7 +22399,7 @@ var index$2 = Object.assign(Tabs, {
22156
22399
  Scroll: ScrollableTab
22157
22400
  });
22158
22401
 
22159
- var StyledView = index$7(View)(function (_ref) {
22402
+ var StyledView = index$8(View)(function (_ref) {
22160
22403
  var themeIntent = _ref.themeIntent,
22161
22404
  theme = _ref.theme;
22162
22405
  return {
@@ -22168,7 +22411,7 @@ var StyledView = index$7(View)(function (_ref) {
22168
22411
  backgroundColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")]
22169
22412
  };
22170
22413
  });
22171
- var StyledText = index$7(Text$1)(function (_ref2) {
22414
+ var StyledText = index$8(Text$1)(function (_ref2) {
22172
22415
  var themeIntent = _ref2.themeIntent,
22173
22416
  theme = _ref2.theme;
22174
22417
  return {
@@ -22258,7 +22501,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
22258
22501
  }) : null);
22259
22502
  };
22260
22503
 
22261
- var StyledPickerWrapper = index$7(View)(function (_ref) {
22504
+ var StyledPickerWrapper = index$8(View)(function (_ref) {
22262
22505
  var theme = _ref.theme;
22263
22506
  return {
22264
22507
  height: theme.__hd__.timePicker.sizes.height
@@ -22358,7 +22601,7 @@ var TimePicker = function TimePicker(props) {
22358
22601
  return /*#__PURE__*/React.createElement(TimePickerAndroid, props);
22359
22602
  };
22360
22603
 
22361
- var ToastContainerWrapper = index$7(View)(function (_ref) {
22604
+ var ToastContainerWrapper = index$8(View)(function (_ref) {
22362
22605
  var theme = _ref.theme,
22363
22606
  position = _ref.position;
22364
22607
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
@@ -22368,7 +22611,7 @@ var ToastContainerWrapper = index$7(View)(function (_ref) {
22368
22611
  elevation: 9999
22369
22612
  });
22370
22613
  });
22371
- var Container = index$7(Animated.View)(function (_ref2) {
22614
+ var Container = index$8(Animated.View)(function (_ref2) {
22372
22615
  var theme = _ref2.theme,
22373
22616
  themeVariant = _ref2.themeVariant,
22374
22617
  themeIntent = _ref2.themeIntent;
@@ -22384,21 +22627,21 @@ var Container = index$7(Animated.View)(function (_ref2) {
22384
22627
  elevation: theme.__hd__.toast.shadows.elevation
22385
22628
  };
22386
22629
  });
22387
- var IconContainer = index$7(View)(function (_ref3) {
22630
+ var IconContainer = index$8(View)(function (_ref3) {
22388
22631
  var theme = _ref3.theme;
22389
22632
  return {
22390
22633
  alignItems: 'center',
22391
22634
  paddingLeft: theme.__hd__.toast.space.iconLeftPadding
22392
22635
  };
22393
22636
  });
22394
- var TextContainer = index$7(View)(function (_ref4) {
22637
+ var TextContainer = index$8(View)(function (_ref4) {
22395
22638
  var theme = _ref4.theme;
22396
22639
  return {
22397
22640
  paddingHorizontal: theme.__hd__.toast.space.textHorizontalPadding,
22398
22641
  flex: 1
22399
22642
  };
22400
22643
  });
22401
- var ContentContainer = index$7(View)(function (_ref5) {
22644
+ var ContentContainer = index$8(View)(function (_ref5) {
22402
22645
  var theme = _ref5.theme,
22403
22646
  showDivider = _ref5.showDivider;
22404
22647
  return {
@@ -22409,7 +22652,7 @@ var ContentContainer = index$7(View)(function (_ref5) {
22409
22652
  flexDirection: 'row'
22410
22653
  };
22411
22654
  });
22412
- var CTAWrapper = index$7(TouchableOpacity)(function (_ref6) {
22655
+ var CTAWrapper = index$8(TouchableOpacity)(function (_ref6) {
22413
22656
  var theme = _ref6.theme;
22414
22657
  return {
22415
22658
  paddingHorizontal: theme.__hd__.toast.space.ctaPadding,
@@ -22670,7 +22913,7 @@ var Toast = {
22670
22913
  useToast: useToast
22671
22914
  };
22672
22915
 
22673
- var ToolbarWrapper = index$7(View)(function (_ref) {
22916
+ var ToolbarWrapper = index$8(View)(function (_ref) {
22674
22917
  var theme = _ref.theme;
22675
22918
  return {
22676
22919
  position: 'absolute',
@@ -22694,7 +22937,7 @@ var alignment = {
22694
22937
  center: 'center',
22695
22938
  right: 'flex-end'
22696
22939
  };
22697
- var ToolbarGroupWrapper = index$7(View)(function (_ref2) {
22940
+ var ToolbarGroupWrapper = index$8(View)(function (_ref2) {
22698
22941
  var align = _ref2.align;
22699
22942
  return {
22700
22943
  flex: 1,
@@ -22703,7 +22946,7 @@ var ToolbarGroupWrapper = index$7(View)(function (_ref2) {
22703
22946
  alignItems: 'center'
22704
22947
  };
22705
22948
  });
22706
- var ToolbarItemWrapper = index$7(TouchableOpacity)(function (_ref3) {
22949
+ var ToolbarItemWrapper = index$8(TouchableOpacity)(function (_ref3) {
22707
22950
  var theme = _ref3.theme;
22708
22951
  return {
22709
22952
  paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
@@ -22783,7 +23026,7 @@ var ToolbarEvents;
22783
23026
  var emitter = new EventEmitter();
22784
23027
  emitter.setMaxListeners(20);
22785
23028
 
22786
- var StyledToolbarButton = index$7(TouchableOpacity)(function (_ref) {
23029
+ var StyledToolbarButton = index$8(TouchableOpacity)(function (_ref) {
22787
23030
  var theme = _ref.theme,
22788
23031
  selected = _ref.selected;
22789
23032
  return {
@@ -22794,7 +23037,7 @@ var StyledToolbarButton = index$7(TouchableOpacity)(function (_ref) {
22794
23037
  backgroundColor: selected ? theme.__hd__.richTextEditor.colors.toolbarButtonSelectedBackground : undefined
22795
23038
  };
22796
23039
  });
22797
- var StyledToolbar = index$7(View)(function (_ref2) {
23040
+ var StyledToolbar = index$8(View)(function (_ref2) {
22798
23041
  var theme = _ref2.theme;
22799
23042
  return {
22800
23043
  flexDirection: 'row',
@@ -22805,7 +23048,7 @@ var StyledToolbar = index$7(View)(function (_ref2) {
22805
23048
  paddingHorizontal: theme.__hd__.richTextEditor.space.toolbarHorizontalPadding
22806
23049
  };
22807
23050
  });
22808
- var StyledSeparator = index$7(View)(function (_ref3) {
23051
+ var StyledSeparator = index$8(View)(function (_ref3) {
22809
23052
  var theme = _ref3.theme;
22810
23053
  return {
22811
23054
  width: theme.__hd__.richTextEditor.sizes.toolbarSeparatorWidth,
@@ -40776,13 +41019,13 @@ function checkDCE() {
40776
41019
  });
40777
41020
  })(lib);
40778
41021
 
40779
- index$7(View)(function (_ref) {
41022
+ index$8(View)(function (_ref) {
40780
41023
  var theme = _ref.theme;
40781
41024
  return {
40782
41025
  marginBottom: theme.__hd__.richTextEditor.space.wrapperMarginBottom
40783
41026
  };
40784
41027
  });
40785
- var StyledWebView = index$7(WebView)(function (_ref2) {
41028
+ var StyledWebView = index$8(WebView)(function (_ref2) {
40786
41029
  var height = _ref2.height,
40787
41030
  theme = _ref2.theme;
40788
41031
  return {
@@ -41036,4 +41279,4 @@ var index = Object.assign(RichTextEditor$1, {
41036
41279
  Toolbar: EditorToolbar
41037
41280
  });
41038
41281
 
41039
- export { Accordion, Alert, Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet, Box, CompoundButton as Button, Calendar, index$6 as Card, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$5 as Drawer, Empty, index$4 as FAB, Icon, List, PinInput, Progress, CompoundRadio as Radio, index as RichTextEditor, SectionHeading, index$3 as Select, Spinner, Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, TimePicker, Toast, index$1 as Toolbar, Typography, getTheme$1 as getTheme, scale, swagSystemPalette, defaultTheme as theme, useTheme, workSystemPalette };
41282
+ export { Accordion, Alert, Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet, Box, CompoundButton as Button, Calendar, index$7 as Card, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty, index$5 as FAB, Icon, Image, List, PinInput, Progress, CompoundRadio as Radio, index as RichTextEditor, SectionHeading, index$4 as Select, Slider, Spinner, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, TimePicker, Toast, index$1 as Toolbar, Typography, getTheme$1 as getTheme, scale, swagSystemPalette, defaultTheme as theme, useTheme, workSystemPalette };