@hero-design/rn 7.21.0 → 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 (58) 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 +357 -247
  5. package/lib/index.js +361 -251
  6. package/package.json +7 -15
  7. package/src/components/BottomNavigation/__tests__/index.spec.tsx +1 -1
  8. package/src/components/BottomNavigation/index.tsx +3 -3
  9. package/src/components/Box/helpers.ts +1 -1
  10. package/src/components/Calendar/index.tsx +9 -9
  11. package/src/components/Collapse/index.tsx +1 -1
  12. package/src/components/Drawer/DragableDrawer/helpers.ts +7 -3
  13. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  14. package/src/components/Icon/HeroIcon/selection.json +7029 -1
  15. package/src/components/PinInput/index.tsx +1 -1
  16. package/src/components/RichTextEditor/EditorToolbar.tsx +3 -3
  17. package/src/components/RichTextEditor/RichTextEditor.tsx +5 -5
  18. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +2 -2
  19. package/src/components/RichTextEditor/__tests__/MentionList.spec.tsx +1 -1
  20. package/src/components/Select/MultiSelect/OptionList.tsx +1 -1
  21. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +1 -1
  22. package/src/components/Select/MultiSelect/index.tsx +3 -3
  23. package/src/components/Select/SingleSelect/index.tsx +3 -3
  24. package/src/components/Select/helpers.tsx +4 -4
  25. package/src/components/Slider/index.tsx +1 -1
  26. package/src/components/Switch/SelectorSwitch/Option.tsx +67 -0
  27. package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +25 -0
  28. package/src/components/Switch/SelectorSwitch/__tests__/Option.spec.tsx +61 -0
  29. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +195 -0
  30. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +121 -0
  31. package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +62 -0
  32. package/src/components/Switch/SelectorSwitch/index.tsx +60 -0
  33. package/src/components/Switch/index.tsx +4 -1
  34. package/src/components/Tabs/ScrollableTabs.tsx +12 -5
  35. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +1 -1
  36. package/src/components/Tabs/__tests__/index.spec.tsx +1 -1
  37. package/src/components/Tabs/index.tsx +13 -6
  38. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3 -1
  39. package/src/components/TextInput/__tests__/index.spec.tsx +114 -112
  40. package/src/components/TextInput/index.tsx +29 -30
  41. package/src/components/Toast/ToastContainer.tsx +6 -6
  42. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +14 -12
  43. package/src/theme/components/switch.ts +14 -18
  44. package/testUtils/setup.tsx +1 -1
  45. package/tsconfig.json +1 -1
  46. package/types/components/Slider/index.d.ts +1 -1
  47. package/types/components/Switch/SelectorSwitch/Option.d.ts +10 -0
  48. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +19 -0
  49. package/types/components/Switch/SelectorSwitch/__tests__/Option.spec.d.ts +1 -0
  50. package/types/components/Switch/SelectorSwitch/__tests__/index.spec.d.ts +1 -0
  51. package/types/components/Switch/SelectorSwitch/index.d.ts +37 -0
  52. package/types/components/Switch/index.d.ts +5 -3
  53. package/types/components/Tabs/ScrollableTabs.d.ts +1 -1
  54. package/types/components/Tabs/index.d.ts +2 -2
  55. package/types/components/TextInput/index.d.ts +4 -4
  56. package/types/theme/components/switch.d.ts +14 -12
  57. package/.eslintrc.json +0 -62
  58. package/.prettierrc.json +0 -8
package/lib/index.js CHANGED
@@ -2324,19 +2324,11 @@ var getSwitchTheme = function getSwitchTheme(theme) {
2324
2324
  'disabled-checked': theme.colors.primaryLight,
2325
2325
  'disabled-unchecked': theme.colors.archived
2326
2326
  },
2327
- thumb: theme.colors.platformBackground
2328
- };
2329
- var thumbSizes = {
2330
- small: theme.space.medium,
2331
- medium: theme.space.medium * 1.3
2332
- };
2333
- var widths = {
2334
- small: theme.space.xxxlarge,
2335
- medium: theme.space.xxxxlarge
2336
- };
2337
- var heights = {
2338
- small: theme.space.large,
2339
- medium: theme.space.large * 1.2
2327
+ thumb: theme.colors.platformBackground,
2328
+ selector: {
2329
+ background: theme.colors.__alpha__globalNeutral3,
2330
+ textBackground: theme.colors.__alpha__primary1
2331
+ }
2340
2332
  };
2341
2333
  var sizes = {
2342
2334
  thumbs: {
@@ -2350,21 +2342,28 @@ var getSwitchTheme = function getSwitchTheme(theme) {
2350
2342
  heights: {
2351
2343
  small: theme.sizes.large,
2352
2344
  medium: theme.sizes.xlarge
2345
+ },
2346
+ selector: {
2347
+ height: theme.sizes.xxxxlarge
2353
2348
  }
2354
2349
  };
2355
2350
  var spaces = {
2356
2351
  small: theme.space.xsmall,
2357
- medium: theme.space.xsmall
2352
+ medium: theme.space.xsmall,
2353
+ selector: {
2354
+ iconPadding: theme.space.medium,
2355
+ wrapperPadding: theme.space.xsmall
2356
+ }
2358
2357
  };
2359
2358
  var radii = {
2360
- rounded: theme.radii.rounded
2359
+ rounded: theme.radii.rounded,
2360
+ selector: {
2361
+ "default": theme.radii.rounded
2362
+ }
2361
2363
  };
2362
2364
  return {
2363
2365
  colors: colors,
2364
2366
  sizes: sizes,
2365
- thumbSizes: thumbSizes,
2366
- widths: widths,
2367
- heights: heights,
2368
2367
  spaces: spaces,
2369
2368
  radii: radii
2370
2369
  };
@@ -5929,7 +5928,7 @@ var getDisplayName = function getDisplayName(primitive) {
5929
5928
 
5930
5929
  var styled = createStyled(reactNative.StyleSheet);
5931
5930
  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'];
5932
- var index$7 = components.reduce(function (acc, comp) {
5931
+ var index$8 = components.reduce(function (acc, comp) {
5933
5932
  return Object.defineProperty(acc, comp, {
5934
5933
  enumerable: true,
5935
5934
  configurable: false,
@@ -5939,7 +5938,7 @@ var index$7 = components.reduce(function (acc, comp) {
5939
5938
  });
5940
5939
  }, styled);
5941
5940
 
5942
- var StyledWrapper$8 = index$7(reactNative.Animated.View)(function () {
5941
+ var StyledWrapper$9 = index$8(reactNative.Animated.View)(function () {
5943
5942
  return {
5944
5943
  margin: 0,
5945
5944
  padding: 0,
@@ -5952,12 +5951,12 @@ var StyledWrapper$8 = index$7(reactNative.Animated.View)(function () {
5952
5951
  * to use with Animated.timing
5953
5952
  */
5954
5953
 
5955
- var StyledHiddenWrapper = index$7(reactNative.View)(function () {
5954
+ var StyledHiddenWrapper = index$8(reactNative.View)(function () {
5956
5955
  return {
5957
5956
  height: reactNative.Dimensions.get('window').height
5958
5957
  };
5959
5958
  });
5960
- var StyledChildWrapper = index$7(reactNative.View)(function () {
5959
+ var StyledChildWrapper = index$8(reactNative.View)(function () {
5961
5960
  return {
5962
5961
  margin: 0,
5963
5962
  padding: 0
@@ -5999,7 +5998,7 @@ var Collapse = function Collapse(_ref) {
5999
5998
  var height = _ref2.height;
6000
5999
  setContentHeight(height);
6001
6000
  }, []);
6002
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$8, {
6001
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$9, {
6003
6002
  style: {
6004
6003
  height: collapseAnim
6005
6004
  },
@@ -6012,10 +6011,10 @@ var Collapse = function Collapse(_ref) {
6012
6011
  }, children)));
6013
6012
  };
6014
6013
 
6015
- var StyledWrapper$7 = index$7(reactNative.View)(function () {
6014
+ var StyledWrapper$8 = index$8(reactNative.View)(function () {
6016
6015
  return {};
6017
6016
  });
6018
- var StyledItemWrapper = index$7(reactNative.View)(function (_ref) {
6017
+ var StyledItemWrapper = index$8(reactNative.View)(function (_ref) {
6019
6018
  var theme = _ref.theme,
6020
6019
  themeVariant = _ref.themeVariant;
6021
6020
  return {
@@ -6024,19 +6023,19 @@ var StyledItemWrapper = index$7(reactNative.View)(function (_ref) {
6024
6023
  borderRadius: themeVariant === 'card' ? theme.__hd__.accordion.radii.card : 0
6025
6024
  };
6026
6025
  });
6027
- var StyledHeaderWrapper$1 = index$7(reactNative.TouchableOpacity)(function () {
6026
+ var StyledHeaderWrapper$1 = index$8(reactNative.TouchableOpacity)(function () {
6028
6027
  return {
6029
6028
  flexDirection: 'row',
6030
6029
  justifyContent: 'space-between'
6031
6030
  };
6032
6031
  });
6033
- var StyledCollapse = index$7(Collapse)(function (_ref2) {
6032
+ var StyledCollapse = index$8(Collapse)(function (_ref2) {
6034
6033
  var theme = _ref2.theme;
6035
6034
  return {
6036
6035
  paddingTop: theme.__hd__.accordion.space.padding
6037
6036
  };
6038
6037
  });
6039
- var Spacer$1 = index$7(reactNative.View)(function (_ref3) {
6038
+ var Spacer$1 = index$8(reactNative.View)(function (_ref3) {
6040
6039
  var theme = _ref3.theme;
6041
6040
  return {
6042
6041
  paddingTop: theme.__hd__.accordion.space.padding
@@ -6048,7 +6047,7 @@ var FONTWEIGHT_MAP = {
6048
6047
  regular: 'regular',
6049
6048
  'semi-bold': 'semiBold'
6050
6049
  };
6051
- var StyledText$3 = index$7(reactNative.Text)(function (_ref) {
6050
+ var StyledText$3 = index$8(reactNative.Text)(function (_ref) {
6052
6051
  var themeFontSize = _ref.themeFontSize,
6053
6052
  themeFontWeight = _ref.themeFontWeight,
6054
6053
  themeIntent = _ref.themeIntent,
@@ -14609,7 +14608,7 @@ var COLOR_INTENTS = {
14609
14608
  'disabled-text': 'disabledText',
14610
14609
  'text-inverted': 'invertedText'
14611
14610
  };
14612
- var StyledHeroIcon = index$7(HeroIcon)(function (_ref) {
14611
+ var StyledHeroIcon = index$8(HeroIcon)(function (_ref) {
14613
14612
  var themeIntent = _ref.themeIntent,
14614
14613
  themeSize = _ref.themeSize,
14615
14614
  theme = _ref.theme;
@@ -14732,7 +14731,7 @@ var Accordion = function Accordion(_ref) {
14732
14731
  _activeItemKey = _usePropsOrInternalSt2[0],
14733
14732
  _onItemPress = _usePropsOrInternalSt2[1];
14734
14733
 
14735
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$7, {
14734
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$8, {
14736
14735
  style: style,
14737
14736
  testID: testID
14738
14737
  }, items.map(function (_ref2, index) {
@@ -14754,7 +14753,7 @@ var Accordion = function Accordion(_ref) {
14754
14753
  }));
14755
14754
  };
14756
14755
 
14757
- var Container$1 = index$7(reactNative.View)(function (_ref) {
14756
+ var Container$1 = index$8(reactNative.View)(function (_ref) {
14758
14757
  var theme = _ref.theme,
14759
14758
  _ref$themeVariant = _ref.themeVariant,
14760
14759
  themeVariant = _ref$themeVariant === void 0 ? 'default' : _ref$themeVariant,
@@ -14766,21 +14765,21 @@ var Container$1 = index$7(reactNative.View)(function (_ref) {
14766
14765
  flexDirection: 'row'
14767
14766
  };
14768
14767
  });
14769
- var IconContainer$1 = index$7(reactNative.View)(function (_ref2) {
14768
+ var IconContainer$1 = index$8(reactNative.View)(function (_ref2) {
14770
14769
  var theme = _ref2.theme;
14771
14770
  return {
14772
14771
  alignItems: 'center',
14773
14772
  paddingLeft: theme.__hd__.alert.space.iconLeftPadding
14774
14773
  };
14775
14774
  });
14776
- var TextContainer$1 = index$7(reactNative.View)(function (_ref3) {
14775
+ var TextContainer$1 = index$8(reactNative.View)(function (_ref3) {
14777
14776
  var theme = _ref3.theme;
14778
14777
  return {
14779
14778
  paddingHorizontal: theme.__hd__.alert.space.textPaddingHorizontal,
14780
14779
  flex: 1
14781
14780
  };
14782
14781
  });
14783
- var ContentContainer$1 = index$7(reactNative.View)(function (_ref4) {
14782
+ var ContentContainer$1 = index$8(reactNative.View)(function (_ref4) {
14784
14783
  var theme = _ref4.theme,
14785
14784
  showDivider = _ref4.showDivider;
14786
14785
  return {
@@ -14791,7 +14790,7 @@ var ContentContainer$1 = index$7(reactNative.View)(function (_ref4) {
14791
14790
  flexDirection: 'row'
14792
14791
  };
14793
14792
  });
14794
- var CTAWrapper$1 = index$7(reactNative.TouchableOpacity)(function (_ref5) {
14793
+ var CTAWrapper$1 = index$8(reactNative.TouchableOpacity)(function (_ref5) {
14795
14794
  var theme = _ref5.theme;
14796
14795
  return {
14797
14796
  paddingHorizontal: theme.__hd__.alert.space.ctaPadding,
@@ -14859,7 +14858,7 @@ var Alert = function Alert(_ref2) {
14859
14858
  })) : null);
14860
14859
  };
14861
14860
 
14862
- var StyledPressable = index$7(reactNative.TouchableOpacity)(function (_ref) {
14861
+ var StyledPressable = index$8(reactNative.TouchableOpacity)(function (_ref) {
14863
14862
  var themeSize = _ref.themeSize,
14864
14863
  themeIntent = _ref.themeIntent,
14865
14864
  theme = _ref.theme;
@@ -14872,7 +14871,7 @@ var StyledPressable = index$7(reactNative.TouchableOpacity)(function (_ref) {
14872
14871
  overflow: 'hidden'
14873
14872
  };
14874
14873
  });
14875
- var StyledView$3 = index$7(reactNative.View)(function (_ref2) {
14874
+ var StyledView$3 = index$8(reactNative.View)(function (_ref2) {
14876
14875
  var themeSize = _ref2.themeSize,
14877
14876
  themeIntent = _ref2.themeIntent,
14878
14877
  theme = _ref2.theme;
@@ -14885,7 +14884,7 @@ var StyledView$3 = index$7(reactNative.View)(function (_ref2) {
14885
14884
  overflow: 'hidden'
14886
14885
  };
14887
14886
  });
14888
- var StyledTextWrapper = index$7(reactNative.View)(function () {
14887
+ var StyledTextWrapper$1 = index$8(reactNative.View)(function () {
14889
14888
  return {
14890
14889
  alignItems: 'center',
14891
14890
  justifyContent: 'center',
@@ -14894,7 +14893,7 @@ var StyledTextWrapper = index$7(reactNative.View)(function () {
14894
14893
  height: '100%'
14895
14894
  };
14896
14895
  });
14897
- var StyledText$2 = index$7(reactNative.Text)(function (_ref3) {
14896
+ var StyledText$2 = index$8(reactNative.Text)(function (_ref3) {
14898
14897
  var themeSize = _ref3.themeSize,
14899
14898
  themeIntent = _ref3.themeIntent,
14900
14899
  theme = _ref3.theme;
@@ -14904,7 +14903,7 @@ var StyledText$2 = index$7(reactNative.Text)(function (_ref3) {
14904
14903
  overflow: 'hidden'
14905
14904
  };
14906
14905
  });
14907
- var StyledImage = index$7(reactNative.Image)(function (_ref4) {
14906
+ var StyledImage = index$8(reactNative.Image)(function (_ref4) {
14908
14907
  var themeSize = _ref4.themeSize,
14909
14908
  theme = _ref4.theme;
14910
14909
  return {
@@ -14930,7 +14929,7 @@ var Avatar = function Avatar(_ref) {
14930
14929
  themeIntent: intent,
14931
14930
  themeSize: size,
14932
14931
  style: style
14933
- }, title !== undefined && source === undefined && /*#__PURE__*/React__default["default"].createElement(StyledTextWrapper, null, /*#__PURE__*/React__default["default"].createElement(StyledText$2, {
14932
+ }, title !== undefined && source === undefined && /*#__PURE__*/React__default["default"].createElement(StyledTextWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(StyledText$2, {
14934
14933
  themeIntent: intent,
14935
14934
  themeSize: size
14936
14935
  }, title)), source !== undefined && /*#__PURE__*/React__default["default"].createElement(StyledImage, {
@@ -14940,7 +14939,7 @@ var Avatar = function Avatar(_ref) {
14940
14939
  })) : null;
14941
14940
  };
14942
14941
 
14943
- var StyledView$2 = index$7(reactNative.Animated.View)(function (_ref) {
14942
+ var StyledView$2 = index$8(reactNative.Animated.View)(function (_ref) {
14944
14943
  var themeIntent = _ref.themeIntent,
14945
14944
  themePadding = _ref.themePadding,
14946
14945
  theme = _ref.theme;
@@ -14954,7 +14953,7 @@ var StyledView$2 = index$7(reactNative.Animated.View)(function (_ref) {
14954
14953
  paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
14955
14954
  };
14956
14955
  });
14957
- var StyledText$1 = index$7(reactNative.Text)(function (_ref2) {
14956
+ var StyledText$1 = index$8(reactNative.Text)(function (_ref2) {
14958
14957
  var theme = _ref2.theme;
14959
14958
  return {
14960
14959
  fontFamily: theme.__hd__.badge.fonts["default"],
@@ -14965,7 +14964,7 @@ var StyledText$1 = index$7(reactNative.Text)(function (_ref2) {
14965
14964
  textAlign: 'center'
14966
14965
  };
14967
14966
  });
14968
- var StyledStatus = index$7(reactNative.Animated.View)(function (_ref3) {
14967
+ var StyledStatus = index$8(reactNative.Animated.View)(function (_ref3) {
14969
14968
  var themeIntent = _ref3.themeIntent,
14970
14969
  theme = _ref3.theme;
14971
14970
  return {
@@ -15088,21 +15087,21 @@ var isHeroIcon = function isHeroIcon(x) {
15088
15087
  return IconList.includes(x);
15089
15088
  };
15090
15089
 
15091
- var BottomNavigationTab = index$7(reactNative.View)(function (_ref) {
15090
+ var BottomNavigationTab = index$8(reactNative.View)(function (_ref) {
15092
15091
  var themeVisibility = _ref.themeVisibility;
15093
15092
  return {
15094
15093
  flex: 1,
15095
15094
  display: themeVisibility === false ? 'none' : 'flex'
15096
15095
  };
15097
15096
  });
15098
- var BottomNavigationContainer = index$7(reactNative.View)({
15097
+ var BottomNavigationContainer = index$8(reactNative.View)({
15099
15098
  flex: 1,
15100
15099
  overflow: 'hidden'
15101
15100
  });
15102
- var ContentWrapper$2 = index$7(reactNative.View)({
15101
+ var ContentWrapper$2 = index$8(reactNative.View)({
15103
15102
  flex: 1
15104
15103
  });
15105
- var BottomBarWrapper = index$7(reactNative.View)(function (_ref2) {
15104
+ var BottomBarWrapper = index$8(reactNative.View)(function (_ref2) {
15106
15105
  var themeInsets = _ref2.themeInsets,
15107
15106
  theme = _ref2.theme;
15108
15107
  return {
@@ -15118,17 +15117,17 @@ var BottomBarWrapper = index$7(reactNative.View)(function (_ref2) {
15118
15117
  elevation: theme.__hd__.bottomNavigation.shadows.elevation
15119
15118
  };
15120
15119
  });
15121
- var BottomBar = index$7(reactNative.View)({
15120
+ var BottomBar = index$8(reactNative.View)({
15122
15121
  flex: 1,
15123
15122
  flexDirection: 'row',
15124
15123
  overflow: 'hidden',
15125
15124
  alignItems: 'center'
15126
15125
  });
15127
- var BottomBarItem = index$7(reactNative.View)({
15126
+ var BottomBarItem = index$8(reactNative.View)({
15128
15127
  flex: 1,
15129
15128
  alignItems: 'center'
15130
15129
  });
15131
- var StyledBottomBarText = index$7(Typography.Text)(function (_ref3) {
15130
+ var StyledBottomBarText = index$8(Typography.Text)(function (_ref3) {
15132
15131
  var theme = _ref3.theme;
15133
15132
  return {
15134
15133
  marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
@@ -15225,7 +15224,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
15225
15224
  }))));
15226
15225
  };
15227
15226
 
15228
- var StyledDivider = index$7(reactNative.View)(function (_ref) {
15227
+ var StyledDivider = index$8(reactNative.View)(function (_ref) {
15229
15228
  var themeMarginHorizontal = _ref.themeMarginHorizontal,
15230
15229
  themeMarginVertical = _ref.themeMarginVertical,
15231
15230
  theme = _ref.theme;
@@ -15261,10 +15260,10 @@ var Divider = function Divider(_ref) {
15261
15260
 
15262
15261
  var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
15263
15262
  var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNative.SafeAreaView);
15264
- var StyledWrapper$6 = index$7(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
15263
+ var StyledWrapper$7 = index$8(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
15265
15264
  flexDirection: 'column-reverse'
15266
15265
  }));
15267
- var StyledBottomSheet = index$7(AnimatedSafeAreaView)(function (_ref) {
15266
+ var StyledBottomSheet = index$8(AnimatedSafeAreaView)(function (_ref) {
15268
15267
  var theme = _ref.theme;
15269
15268
  return {
15270
15269
  borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
@@ -15279,14 +15278,14 @@ var StyledBottomSheet = index$7(AnimatedSafeAreaView)(function (_ref) {
15279
15278
  maxHeight: '94%'
15280
15279
  };
15281
15280
  });
15282
- var StyledBackdrop$2 = index$7(AnimatedPressable$1)(function (_ref2) {
15281
+ var StyledBackdrop$2 = index$8(AnimatedPressable$1)(function (_ref2) {
15283
15282
  var theme = _ref2.theme;
15284
15283
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
15285
15284
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
15286
15285
  opacity: 0.48
15287
15286
  });
15288
15287
  });
15289
- var StyledHeaderWrapper = index$7(reactNative.View)(function (_ref3) {
15288
+ var StyledHeaderWrapper = index$8(reactNative.View)(function (_ref3) {
15290
15289
  var theme = _ref3.theme;
15291
15290
  return {
15292
15291
  flexDirection: 'row',
@@ -15294,11 +15293,11 @@ var StyledHeaderWrapper = index$7(reactNative.View)(function (_ref3) {
15294
15293
  paddingHorizontal: theme.__hd__.bottomSheet.space.headerWrapperHorizontalPadding
15295
15294
  };
15296
15295
  });
15297
- var StyledHeader = index$7(reactNative.View)({
15296
+ var StyledHeader = index$8(reactNative.View)({
15298
15297
  flex: 1,
15299
15298
  justifyContent: 'center'
15300
15299
  });
15301
- var StyledFooter = index$7(reactNative.View)(function (_ref4) {
15300
+ var StyledFooter = index$8(reactNative.View)(function (_ref4) {
15302
15301
  var theme = _ref4.theme;
15303
15302
  return {
15304
15303
  paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
@@ -15309,7 +15308,7 @@ var StyledFooter = index$7(reactNative.View)(function (_ref4) {
15309
15308
  flexDirection: 'row'
15310
15309
  };
15311
15310
  });
15312
- var StyledIconWrapper$1 = index$7(reactNative.View)(function (_ref5) {
15311
+ var StyledIconWrapper$2 = index$8(reactNative.View)(function (_ref5) {
15313
15312
  var theme = _ref5.theme;
15314
15313
  return {
15315
15314
  alignItems: 'center',
@@ -15332,7 +15331,7 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
15332
15331
  };
15333
15332
  };
15334
15333
 
15335
- var StyledLoadingIndicatorWrapper = index$7(reactNative.View)(function (_ref) {
15334
+ var StyledLoadingIndicatorWrapper = index$8(reactNative.View)(function (_ref) {
15336
15335
  var theme = _ref.theme;
15337
15336
  return {
15338
15337
  flexDirection: 'row',
@@ -15341,7 +15340,7 @@ var StyledLoadingIndicatorWrapper = index$7(reactNative.View)(function (_ref) {
15341
15340
  paddingVertical: theme.space.xxsmall
15342
15341
  };
15343
15342
  });
15344
- var StyledLoadingDot = index$7(reactNative.View)(function (_ref2) {
15343
+ var StyledLoadingDot = index$8(reactNative.View)(function (_ref2) {
15345
15344
  var _ref2$size = _ref2.size,
15346
15345
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15347
15346
  themeVariant = _ref2.themeVariant,
@@ -15592,7 +15591,7 @@ var genTextVariantTextStyles = function genTextVariantTextStyles(theme, intent,
15592
15591
  }, textColorStyling());
15593
15592
  };
15594
15593
 
15595
- var StyledButtonContainer = index$7(reactNative.TouchableHighlight)(function (_ref) {
15594
+ var StyledButtonContainer = index$8(reactNative.TouchableHighlight)(function (_ref) {
15596
15595
  var _ref$disabled = _ref.disabled,
15597
15596
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
15598
15597
  _ref$pressed = _ref.pressed,
@@ -15634,7 +15633,7 @@ var StyledButtonContainer = index$7(reactNative.TouchableHighlight)(function (_r
15634
15633
  };
15635
15634
  }
15636
15635
  });
15637
- var StyledButtonText = index$7(Typography.Text)(function (_ref2) {
15636
+ var StyledButtonText = index$8(Typography.Text)(function (_ref2) {
15638
15637
  var disabled = _ref2.disabled,
15639
15638
  pressed = _ref2.pressed,
15640
15639
  themeVariant = _ref2.themeVariant,
@@ -15684,7 +15683,7 @@ var StyledButtonText = index$7(Typography.Text)(function (_ref2) {
15684
15683
  fontFamily: theme.__hd__.button.fonts["default"]
15685
15684
  }, themeStyling());
15686
15685
  });
15687
- var StyledButtonIconWrapper = index$7(reactNative.View)(function (_ref3) {
15686
+ var StyledButtonIconWrapper = index$8(reactNative.View)(function (_ref3) {
15688
15687
  var themePosition = _ref3.themePosition,
15689
15688
  theme = _ref3.theme;
15690
15689
 
@@ -15700,7 +15699,7 @@ var StyledButtonIconWrapper = index$7(reactNative.View)(function (_ref3) {
15700
15699
  };
15701
15700
  }
15702
15701
  });
15703
- var StyledButtonIcon = index$7(Icon)(function (_ref4) {
15702
+ var StyledButtonIcon = index$8(Icon)(function (_ref4) {
15704
15703
  var disabled = _ref4.disabled,
15705
15704
  pressed = _ref4.pressed,
15706
15705
  themeVariant = _ref4.themeVariant,
@@ -15868,7 +15867,7 @@ var IconButton = function IconButton(_ref) {
15868
15867
  }));
15869
15868
  };
15870
15869
 
15871
- var ButtonContainer = index$7(reactNative.TouchableOpacity)(function (_ref) {
15870
+ var ButtonContainer = index$8(reactNative.TouchableOpacity)(function (_ref) {
15872
15871
  var theme = _ref.theme;
15873
15872
  return {
15874
15873
  width: '100%',
@@ -15880,13 +15879,13 @@ var ButtonContainer = index$7(reactNative.TouchableOpacity)(function (_ref) {
15880
15879
  backgroundColor: theme.__hd__.button.colors.utilityBackground
15881
15880
  };
15882
15881
  });
15883
- var IconWrapper = index$7(reactNative.View)(function (_ref2) {
15882
+ var IconWrapper = index$8(reactNative.View)(function (_ref2) {
15884
15883
  var theme = _ref2.theme;
15885
15884
  return {
15886
15885
  paddingRight: theme.__hd__.button.space.iconPadding
15887
15886
  };
15888
15887
  });
15889
- var ButtonText = index$7(Typography.Text)(function (_ref3) {
15888
+ var ButtonText = index$8(Typography.Text)(function (_ref3) {
15890
15889
  var theme = _ref3.theme;
15891
15890
  return {
15892
15891
  flexShrink: 1,
@@ -15941,7 +15940,7 @@ var Header = function Header(_ref) {
15941
15940
  style: {
15942
15941
  flex: 1
15943
15942
  }
15944
- }, content), showCloseButton ? /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(CompoundButton.Icon, {
15943
+ }, content), showCloseButton ? /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$2, null, /*#__PURE__*/React__default["default"].createElement(CompoundButton.Icon, {
15945
15944
  icon: "cancel",
15946
15945
  onPress: onRequestClose,
15947
15946
  intent: "text",
@@ -16028,7 +16027,7 @@ var BottomSheet = function BottomSheet(_ref) {
16028
16027
  transparent: true,
16029
16028
  testID: testID,
16030
16029
  onShow: onOpen
16031
- }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$6, {
16030
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$7, {
16032
16031
  pointerEvents: "box-none"
16033
16032
  }, /*#__PURE__*/React__default["default"].createElement(StyledBackdrop$2, {
16034
16033
  style: {
@@ -16273,7 +16272,7 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
16273
16272
  };
16274
16273
 
16275
16274
  var configKeys = Object.keys(config);
16276
- var StyledBox = index$7(reactNative.View)(function (_ref5) {
16275
+ var StyledBox = index$8(reactNative.View)(function (_ref5) {
16277
16276
  var theme = _ref5.theme,
16278
16277
  otherProps = _objectWithoutProperties(_ref5, _excluded$a);
16279
16278
 
@@ -18692,14 +18691,14 @@ function convertToFP(fn, arity, a) {
18692
18691
  var format = convertToFP(format$1, 2);
18693
18692
  var formatTime = format;
18694
18693
 
18695
- var Wrapper = index$7(reactNative.View)(function () {
18694
+ var Wrapper = index$8(reactNative.View)(function () {
18696
18695
  return {
18697
18696
  flex: 1,
18698
18697
  flexDirection: 'row',
18699
18698
  justifyContent: 'space-between'
18700
18699
  };
18701
18700
  });
18702
- var Value = index$7(Typography.Text)(function (_ref) {
18701
+ var Value = index$8(Typography.Text)(function (_ref) {
18703
18702
  var theme = _ref.theme;
18704
18703
  return {
18705
18704
  paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
@@ -18740,13 +18739,13 @@ function ContentNavigator(_ref) {
18740
18739
  }));
18741
18740
  }
18742
18741
 
18743
- var StyledContainer$4 = index$7(reactNative.View)(function (_ref) {
18742
+ var StyledContainer$4 = index$8(reactNative.View)(function (_ref) {
18744
18743
  var theme = _ref.theme;
18745
18744
  return {
18746
18745
  backgroundColor: theme.__hd__.calendar.colors.background
18747
18746
  };
18748
18747
  });
18749
- var StyledCalendarHeader = index$7(reactNative.View)(function (_ref2) {
18748
+ var StyledCalendarHeader = index$8(reactNative.View)(function (_ref2) {
18750
18749
  var theme = _ref2.theme;
18751
18750
  return {
18752
18751
  flexDirection: 'row',
@@ -18754,7 +18753,7 @@ var StyledCalendarHeader = index$7(reactNative.View)(function (_ref2) {
18754
18753
  paddingVertical: theme.__hd__.calendar.space.headerVerticalPadding
18755
18754
  };
18756
18755
  });
18757
- var StyledCalendarDayNameCell = index$7(reactNative.View)(function (_ref3) {
18756
+ var StyledCalendarDayNameCell = index$8(reactNative.View)(function (_ref3) {
18758
18757
  var theme = _ref3.theme;
18759
18758
  return {
18760
18759
  width: theme.__hd__.calendar.sizes.cellWidth,
@@ -18763,7 +18762,7 @@ var StyledCalendarDayNameCell = index$7(reactNative.View)(function (_ref3) {
18763
18762
  justifyContent: 'center'
18764
18763
  };
18765
18764
  });
18766
- var StyledCalendarCell = index$7(reactNative.TouchableOpacity)(function (_ref4) {
18765
+ var StyledCalendarCell = index$8(reactNative.TouchableOpacity)(function (_ref4) {
18767
18766
  var theme = _ref4.theme,
18768
18767
  _ref4$variant = _ref4.variant,
18769
18768
  variant = _ref4$variant === void 0 ? 'default' : _ref4$variant;
@@ -18778,7 +18777,7 @@ var StyledCalendarCell = index$7(reactNative.TouchableOpacity)(function (_ref4)
18778
18777
  height: theme.__hd__.calendar.sizes.cellCircleHeight
18779
18778
  };
18780
18779
  });
18781
- var StyledCalendarRow = index$7(reactNative.View)(function (_ref5) {
18780
+ var StyledCalendarRow = index$8(reactNative.View)(function (_ref5) {
18782
18781
  var theme = _ref5.theme;
18783
18782
  return {
18784
18783
  flexDirection: 'row',
@@ -18786,7 +18785,7 @@ var StyledCalendarRow = index$7(reactNative.View)(function (_ref5) {
18786
18785
  flexWrap: 'wrap'
18787
18786
  };
18788
18787
  });
18789
- var StyledCalendarRowItem = index$7(reactNative.View)(function (_ref6) {
18788
+ var StyledCalendarRowItem = index$8(reactNative.View)(function (_ref6) {
18790
18789
  var theme = _ref6.theme;
18791
18790
  return {
18792
18791
  flexBasis: "".concat(Math.floor(100.0 / 7.0).toString(), "%"),
@@ -18796,7 +18795,7 @@ var StyledCalendarRowItem = index$7(reactNative.View)(function (_ref6) {
18796
18795
  justifyContent: 'center'
18797
18796
  };
18798
18797
  });
18799
- var StyledDisabledCalendarRowItem = index$7(reactNative.View)(function (_ref7) {
18798
+ var StyledDisabledCalendarRowItem = index$8(reactNative.View)(function (_ref7) {
18800
18799
  var theme = _ref7.theme;
18801
18800
  return {
18802
18801
  flexBasis: "".concat(Math.floor(100.0 / 7.0).toString(), "%"),
@@ -18805,7 +18804,7 @@ var StyledDisabledCalendarRowItem = index$7(reactNative.View)(function (_ref7) {
18805
18804
  height: theme.__hd__.calendar.sizes.cellHeight
18806
18805
  };
18807
18806
  });
18808
- var StyledMark = index$7(reactNative.View)(function (_ref8) {
18807
+ var StyledMark = index$8(reactNative.View)(function (_ref8) {
18809
18808
  var theme = _ref8.theme,
18810
18809
  _ref8$variant = _ref8.variant,
18811
18810
  variant = _ref8$variant === void 0 ? 'primary' : _ref8$variant;
@@ -18985,7 +18984,7 @@ var Calendar = function Calendar(_ref) {
18985
18984
  })));
18986
18985
  };
18987
18986
 
18988
- var StyledDataCard = index$7(reactNative.View)(function (_ref) {
18987
+ var StyledDataCard = index$8(reactNative.View)(function (_ref) {
18989
18988
  var theme = _ref.theme;
18990
18989
  return {
18991
18990
  borderRadius: theme.__hd__.card.radii["default"],
@@ -18993,7 +18992,7 @@ var StyledDataCard = index$7(reactNative.View)(function (_ref) {
18993
18992
  flexDirection: 'row'
18994
18993
  };
18995
18994
  });
18996
- var Indicator = index$7(reactNative.View)(function (_ref2) {
18995
+ var Indicator = index$8(reactNative.View)(function (_ref2) {
18997
18996
  var theme = _ref2.theme,
18998
18997
  themeIntent = _ref2.themeIntent;
18999
18998
  return {
@@ -19017,7 +19016,7 @@ var DataCard = function DataCard(_ref) {
19017
19016
  }), children);
19018
19017
  };
19019
19018
 
19020
- var StyledCard = index$7(reactNative.View)(function (_ref) {
19019
+ var StyledCard = index$8(reactNative.View)(function (_ref) {
19021
19020
  var themeVariant = _ref.themeVariant,
19022
19021
  theme = _ref.theme,
19023
19022
  themeIntent = _ref.themeIntent;
@@ -19031,7 +19030,7 @@ var StyledCard = index$7(reactNative.View)(function (_ref) {
19031
19030
  });
19032
19031
  }); // DEPRECATED
19033
19032
 
19034
- var LeftDataCard = index$7(reactNative.View)(function (_ref2) {
19033
+ var LeftDataCard = index$8(reactNative.View)(function (_ref2) {
19035
19034
  var theme = _ref2.theme;
19036
19035
  return {
19037
19036
  backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
@@ -19057,11 +19056,11 @@ var Card = function Card(_ref) {
19057
19056
  }), children);
19058
19057
  };
19059
19058
 
19060
- var index$6 = Object.assign(Card, {
19059
+ var index$7 = Object.assign(Card, {
19061
19060
  Data: DataCard
19062
19061
  });
19063
19062
 
19064
- var StyledWrapper$5 = index$7(reactNative.TouchableOpacity)(function (_ref) {
19063
+ var StyledWrapper$6 = index$8(reactNative.TouchableOpacity)(function (_ref) {
19065
19064
  var theme = _ref.theme,
19066
19065
  themeWithBorder = _ref.themeWithBorder,
19067
19066
  themeDisabled = _ref.themeDisabled;
@@ -19075,14 +19074,14 @@ var StyledWrapper$5 = index$7(reactNative.TouchableOpacity)(function (_ref) {
19075
19074
  flexDirection: 'row'
19076
19075
  }, themeWithBorder && borderStyle);
19077
19076
  });
19078
- var StyledDescription$1 = index$7(Typography.Text)(function (_ref2) {
19077
+ var StyledDescription$1 = index$8(Typography.Text)(function (_ref2) {
19079
19078
  var theme = _ref2.theme;
19080
19079
  return {
19081
19080
  paddingRight: theme.__hd__.checkbox.space.iconDescriptionPadding,
19082
19081
  flex: 1
19083
19082
  };
19084
19083
  });
19085
- var StyledCheckbox = index$7(reactNative.View)(function (_ref3) {
19084
+ var StyledCheckbox = index$8(reactNative.View)(function (_ref3) {
19086
19085
  var theme = _ref3.theme,
19087
19086
  themeDisabled = _ref3.themeDisabled;
19088
19087
  return {
@@ -19096,7 +19095,7 @@ var StyledCheckbox = index$7(reactNative.View)(function (_ref3) {
19096
19095
  overflow: 'hidden'
19097
19096
  };
19098
19097
  });
19099
- var StyledCheckMark = index$7(Icon)(function (_ref4) {
19098
+ var StyledCheckMark = index$8(Icon)(function (_ref4) {
19100
19099
  var theme = _ref4.theme;
19101
19100
  return {
19102
19101
  position: 'absolute',
@@ -19114,7 +19113,7 @@ var Checkbox = function Checkbox(_ref) {
19114
19113
  onPress = _ref.onPress,
19115
19114
  style = _ref.style,
19116
19115
  testID = _ref.testID;
19117
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$5, {
19116
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$6, {
19118
19117
  onPress: onPress,
19119
19118
  disabled: disabled,
19120
19119
  themeDisabled: disabled,
@@ -19132,14 +19131,14 @@ var Checkbox = function Checkbox(_ref) {
19132
19131
  })));
19133
19132
  };
19134
19133
 
19135
- var StyledContainer$3 = index$7(reactNative.View)(function (_ref) {
19134
+ var StyledContainer$3 = index$8(reactNative.View)(function (_ref) {
19136
19135
  var theme = _ref.theme;
19137
19136
  return {
19138
19137
  width: '100%',
19139
19138
  marginVertical: theme.__hd__.textInput.space.containerMarginVertical
19140
19139
  };
19141
19140
  });
19142
- var StyledLabelContainer = index$7(reactNative.View)(function (_ref2) {
19141
+ var StyledLabelContainer = index$8(reactNative.View)(function (_ref2) {
19143
19142
  var theme = _ref2.theme;
19144
19143
  return {
19145
19144
  position: 'absolute',
@@ -19151,28 +19150,28 @@ var StyledLabelContainer = index$7(reactNative.View)(function (_ref2) {
19151
19150
  paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
19152
19151
  };
19153
19152
  });
19154
- var StyledLabel = index$7(Typography.Text)(function (_ref3) {
19153
+ var StyledLabel = index$8(Typography.Text)(function (_ref3) {
19155
19154
  var theme = _ref3.theme,
19156
19155
  themeVariant = _ref3.themeVariant;
19157
19156
  return {
19158
19157
  color: theme.__hd__.textInput.colors.labels[themeVariant]
19159
19158
  };
19160
19159
  });
19161
- var StyledAsteriskLabel = index$7(Typography.Text)(function (_ref4) {
19160
+ var StyledAsteriskLabel = index$8(Typography.Text)(function (_ref4) {
19162
19161
  var theme = _ref4.theme,
19163
19162
  themeVariant = _ref4.themeVariant;
19164
19163
  return {
19165
19164
  color: theme.__hd__.textInput.colors.asterisks[themeVariant]
19166
19165
  };
19167
19166
  });
19168
- var StyledLabelContainerInsideTextInput = index$7(reactNative.View)(function () {
19167
+ var StyledLabelContainerInsideTextInput = index$8(reactNative.View)(function () {
19169
19168
  return _objectSpread2({
19170
19169
  flexDirection: 'row',
19171
19170
  zIndex: 9999,
19172
19171
  alignItems: 'center'
19173
19172
  }, reactNative.StyleSheet.absoluteFillObject);
19174
19173
  });
19175
- var StyledLabelInsideTextInput = index$7(Typography.Text)(function (_ref5) {
19174
+ var StyledLabelInsideTextInput = index$8(Typography.Text)(function (_ref5) {
19176
19175
  var theme = _ref5.theme,
19177
19176
  themeVariant = _ref5.themeVariant;
19178
19177
  return {
@@ -19183,7 +19182,7 @@ var StyledLabelInsideTextInput = index$7(Typography.Text)(function (_ref5) {
19183
19182
  color: theme.__hd__.textInput.colors.labelsInsideTextInput[themeVariant]
19184
19183
  };
19185
19184
  });
19186
- var StyledAsteriskLabelInsideTextInput = index$7(Typography.Text)(function (_ref6) {
19185
+ var StyledAsteriskLabelInsideTextInput = index$8(Typography.Text)(function (_ref6) {
19187
19186
  var theme = _ref6.theme,
19188
19187
  themeVariant = _ref6.themeVariant;
19189
19188
  return {
@@ -19191,7 +19190,7 @@ var StyledAsteriskLabelInsideTextInput = index$7(Typography.Text)(function (_ref
19191
19190
  fontSize: theme.__hd__.textInput.fontSizes.asteriskLabel
19192
19191
  };
19193
19192
  });
19194
- var StyledErrorContainer$1 = index$7(reactNative.View)(function (_ref7) {
19193
+ var StyledErrorContainer$1 = index$8(reactNative.View)(function (_ref7) {
19195
19194
  var theme = _ref7.theme;
19196
19195
  return {
19197
19196
  marginRight: theme.__hd__.textInput.space.errorContainerMarginRight,
@@ -19201,7 +19200,7 @@ var StyledErrorContainer$1 = index$7(reactNative.View)(function (_ref7) {
19201
19200
  flexGrow: 4
19202
19201
  };
19203
19202
  });
19204
- var StyledError = index$7(Typography.Text)(function (_ref8) {
19203
+ var StyledError = index$8(Typography.Text)(function (_ref8) {
19205
19204
  var theme = _ref8.theme;
19206
19205
  return {
19207
19206
  color: theme.__hd__.textInput.colors.error,
@@ -19209,7 +19208,7 @@ var StyledError = index$7(Typography.Text)(function (_ref8) {
19209
19208
  marginLeft: theme.__hd__.textInput.space.errorMarginLeft
19210
19209
  };
19211
19210
  });
19212
- var StyledMaxLengthMessage = index$7(Typography.Text)(function (_ref9) {
19211
+ var StyledMaxLengthMessage = index$8(Typography.Text)(function (_ref9) {
19213
19212
  var theme = _ref9.theme,
19214
19213
  themeVariant = _ref9.themeVariant;
19215
19214
  return {
@@ -19222,13 +19221,13 @@ var StyledMaxLengthMessage = index$7(Typography.Text)(function (_ref9) {
19222
19221
  textAlign: 'right'
19223
19222
  };
19224
19223
  });
19225
- var StyledHelperText = index$7(Typography.Text)(function (_ref10) {
19224
+ var StyledHelperText = index$8(Typography.Text)(function (_ref10) {
19226
19225
  var theme = _ref10.theme;
19227
19226
  return {
19228
19227
  fontSize: theme.__hd__.textInput.fontSizes.error
19229
19228
  };
19230
19229
  });
19231
- var StyledTextInput = index$7(reactNative.TextInput)(function (_ref11) {
19230
+ var StyledTextInput = index$8(reactNative.TextInput)(function (_ref11) {
19232
19231
  var theme = _ref11.theme;
19233
19232
  return {
19234
19233
  textAlignVertical: 'center',
@@ -19238,7 +19237,7 @@ var StyledTextInput = index$7(reactNative.TextInput)(function (_ref11) {
19238
19237
  marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin
19239
19238
  };
19240
19239
  });
19241
- var StyledBorderBackDrop = index$7(reactNative.View)(function (_ref12) {
19240
+ var StyledBorderBackDrop = index$8(reactNative.View)(function (_ref12) {
19242
19241
  var _theme$__hd__$textInp;
19243
19242
 
19244
19243
  var theme = _ref12.theme,
@@ -19249,7 +19248,7 @@ var StyledBorderBackDrop = index$7(reactNative.View)(function (_ref12) {
19249
19248
  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"]
19250
19249
  });
19251
19250
  });
19252
- var StyledTextInputContainer = index$7(reactNative.View)(function (_ref13) {
19251
+ var StyledTextInputContainer = index$8(reactNative.View)(function (_ref13) {
19253
19252
  var theme = _ref13.theme;
19254
19253
  return {
19255
19254
  flexDirection: 'row',
@@ -19257,7 +19256,7 @@ var StyledTextInputContainer = index$7(reactNative.View)(function (_ref13) {
19257
19256
  padding: theme.__hd__.textInput.space.containerPadding
19258
19257
  };
19259
19258
  });
19260
- var StyledTextInputAndLabelContainer = index$7(reactNative.View)(function () {
19259
+ var StyledTextInputAndLabelContainer = index$8(reactNative.View)(function () {
19261
19260
  return {
19262
19261
  flexDirection: 'row',
19263
19262
  alignItems: 'center',
@@ -19266,13 +19265,13 @@ var StyledTextInputAndLabelContainer = index$7(reactNative.View)(function () {
19266
19265
  flexShrink: 1
19267
19266
  };
19268
19267
  });
19269
- var StyledErrorAndHelpTextContainer = index$7(reactNative.View)(function (_ref14) {
19268
+ var StyledErrorAndHelpTextContainer = index$8(reactNative.View)(function (_ref14) {
19270
19269
  var theme = _ref14.theme;
19271
19270
  return {
19272
19271
  paddingLeft: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft
19273
19272
  };
19274
19273
  });
19275
- var StyledErrorAndMaxLengthContainer = index$7(reactNative.View)(function () {
19274
+ var StyledErrorAndMaxLengthContainer = index$8(reactNative.View)(function () {
19276
19275
  return {
19277
19276
  flexDirection: 'row',
19278
19277
  justifyContent: 'space-between'
@@ -19289,26 +19288,26 @@ var getVariant$1 = function getVariant(_ref) {
19289
19288
  isEmptyValue = _ref.isEmptyValue;
19290
19289
 
19291
19290
  if (disabled) {
19292
- return 'disabled';
19291
+ return "disabled";
19293
19292
  }
19294
19293
 
19295
19294
  if (error) {
19296
- return 'error';
19295
+ return "error";
19297
19296
  }
19298
19297
 
19299
19298
  if (!editable || loading) {
19300
- return 'readonly';
19299
+ return "readonly";
19301
19300
  }
19302
19301
 
19303
19302
  if (isFocused) {
19304
- return 'focused';
19303
+ return "focused";
19305
19304
  }
19306
19305
 
19307
19306
  if (!isEmptyValue) {
19308
- return 'filled';
19307
+ return "filled";
19309
19308
  }
19310
19309
 
19311
- return 'default';
19310
+ return "default";
19312
19311
  };
19313
19312
 
19314
19313
  var TextInput = function TextInput(_ref2) {
@@ -19336,9 +19335,9 @@ var TextInput = function TextInput(_ref2) {
19336
19335
  renderInputValue = _ref2.renderInputValue,
19337
19336
  nativeProps = _objectWithoutProperties(_ref2, _excluded$6);
19338
19337
 
19339
- var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
19338
+ var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : "";
19340
19339
  var isEmptyValue = displayText.length === 0;
19341
- var actualSuffix = loading ? 'loading' : suffix;
19340
+ var actualSuffix = loading ? "loading" : suffix;
19342
19341
 
19343
19342
  var _React$useState = React__default["default"].useState(false),
19344
19343
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -19360,9 +19359,9 @@ var TextInput = function TextInput(_ref2) {
19360
19359
  style: reactNative.StyleSheet.flatten([{
19361
19360
  color: theme.__hd__.textInput.colors.text
19362
19361
  }, textStyle]),
19363
- testID: 'text-input',
19362
+ testID: "text-input",
19364
19363
  accessibilityState: {
19365
- disabled: variant === 'disabled' || variant === 'readonly'
19364
+ disabled: variant === "disabled" || variant === "readonly"
19366
19365
  },
19367
19366
  // @ts-ignore
19368
19367
  accessibilityLabelledBy: accessibilityLabelledBy
@@ -19388,15 +19387,15 @@ var TextInput = function TextInput(_ref2) {
19388
19387
  (_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
19389
19388
  },
19390
19389
  defaultValue: defaultValue,
19391
- placeholder: variant === 'focused' ? nativeProps.placeholder : undefined
19390
+ placeholder: variant === "focused" ? nativeProps.placeholder : undefined
19392
19391
  });
19393
19392
 
19394
19393
  return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, {
19395
- style: style,
19396
- pointerEvents: variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto',
19394
+ pointerEvents: variant === "disabled" || variant === "readonly" ? "none" : "auto",
19397
19395
  testID: testID
19398
19396
  }, /*#__PURE__*/React__default["default"].createElement(StyledTextInputContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledBorderBackDrop, {
19399
- themeVariant: variant
19397
+ themeVariant: variant,
19398
+ style: style
19400
19399
  }), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainer, {
19401
19400
  pointerEvents: "none"
19402
19401
  }, required && /*#__PURE__*/React__default["default"].createElement(StyledAsteriskLabel, {
@@ -19407,8 +19406,8 @@ var TextInput = function TextInput(_ref2) {
19407
19406
  testID: "input-label",
19408
19407
  fontSize: "small",
19409
19408
  themeVariant: variant
19410
- }, label)), typeof prefix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
19411
- intent: variant === 'disabled' ? 'disabled-text' : 'text',
19409
+ }, label)), typeof prefix === "string" ? /*#__PURE__*/React__default["default"].createElement(Icon, {
19410
+ intent: variant === "disabled" ? "disabled-text" : "text",
19412
19411
  testID: "input-prefix",
19413
19412
  icon: prefix,
19414
19413
  size: "xsmall"
@@ -19421,11 +19420,11 @@ var TextInput = function TextInput(_ref2) {
19421
19420
  testID: "input-label",
19422
19421
  fontSize: "medium",
19423
19422
  themeVariant: variant
19424
- }, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__default["default"].createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
19425
- intent: variant === 'disabled' ? 'disabled-text' : 'text',
19423
+ }, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__default["default"].createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix === "string" ? /*#__PURE__*/React__default["default"].createElement(Icon, {
19424
+ intent: variant === "disabled" ? "disabled-text" : "text",
19426
19425
  testID: "input-suffix",
19427
19426
  icon: actualSuffix,
19428
- spin: actualSuffix === 'loading',
19427
+ spin: actualSuffix === "loading",
19429
19428
  size: "xsmall"
19430
19429
  }) : suffix), /*#__PURE__*/React__default["default"].createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledErrorAndMaxLengthContainer, null, !!error && /*#__PURE__*/React__default["default"].createElement(StyledErrorContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Icon, {
19431
19430
  testID: "input-error-icon",
@@ -19496,7 +19495,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
19496
19495
  }) : null);
19497
19496
  };
19498
19497
 
19499
- var StyledPickerWrapper$1 = index$7(reactNative.View)(function (_ref) {
19498
+ var StyledPickerWrapper$1 = index$8(reactNative.View)(function (_ref) {
19500
19499
  var theme = _ref.theme;
19501
19500
  return {
19502
19501
  height: theme.__hd__.datePicker.sizes.height
@@ -19593,7 +19592,7 @@ var DatePicker = function DatePicker(props) {
19593
19592
  };
19594
19593
 
19595
19594
  var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
19596
- var StyledContainer$2 = index$7(reactNative.View)(function (_ref) {
19595
+ var StyledContainer$2 = index$8(reactNative.View)(function (_ref) {
19597
19596
  var theme = _ref.theme,
19598
19597
  enableShadow = _ref.enableShadow;
19599
19598
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
@@ -19606,7 +19605,7 @@ var StyledContainer$2 = index$7(reactNative.View)(function (_ref) {
19606
19605
  elevation: 9999
19607
19606
  });
19608
19607
  });
19609
- var StyledDragableContainer = index$7(reactNative.View)(function (_ref2) {
19608
+ var StyledDragableContainer = index$8(reactNative.View)(function (_ref2) {
19610
19609
  var theme = _ref2.theme,
19611
19610
  enableShadow = _ref2.enableShadow;
19612
19611
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
@@ -19620,13 +19619,13 @@ var StyledDragableContainer = index$7(reactNative.View)(function (_ref2) {
19620
19619
  flexDirection: 'column-reverse'
19621
19620
  });
19622
19621
  });
19623
- var StyledBackdrop$1 = index$7(AnimatedPressable)(function (_ref3) {
19622
+ var StyledBackdrop$1 = index$8(AnimatedPressable)(function (_ref3) {
19624
19623
  var theme = _ref3.theme;
19625
19624
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
19626
19625
  backgroundColor: theme.__hd__.drawer.colors.backdrop
19627
19626
  });
19628
19627
  });
19629
- var StyledDrawerContainer = index$7(reactNative.Animated.View)(function (_ref4) {
19628
+ var StyledDrawerContainer = index$8(reactNative.Animated.View)(function (_ref4) {
19630
19629
  var theme = _ref4.theme,
19631
19630
  enableShadow = _ref4.enableShadow;
19632
19631
  return {
@@ -19637,7 +19636,7 @@ var StyledDrawerContainer = index$7(reactNative.Animated.View)(function (_ref4)
19637
19636
  overflow: 'hidden'
19638
19637
  };
19639
19638
  });
19640
- var StyledDragableDrawerContainer = index$7(reactNative.Animated.View)(function (_ref5) {
19639
+ var StyledDragableDrawerContainer = index$8(reactNative.Animated.View)(function (_ref5) {
19641
19640
  var theme = _ref5.theme,
19642
19641
  enableShadow = _ref5.enableShadow;
19643
19642
  return {
@@ -19649,7 +19648,7 @@ var StyledDragableDrawerContainer = index$7(reactNative.Animated.View)(function
19649
19648
  maxHeight: '100%'
19650
19649
  };
19651
19650
  });
19652
- var StyledHandlerContainer = index$7(reactNative.View)(function (_ref6) {
19651
+ var StyledHandlerContainer = index$8(reactNative.View)(function (_ref6) {
19653
19652
  var theme = _ref6.theme;
19654
19653
  return {
19655
19654
  backgroundColor: theme.__hd__.drawer.colors.background,
@@ -19657,7 +19656,7 @@ var StyledHandlerContainer = index$7(reactNative.View)(function (_ref6) {
19657
19656
  alignItems: 'center'
19658
19657
  };
19659
19658
  });
19660
- var StyledHandler = index$7(reactNative.View)(function (_ref7) {
19659
+ var StyledHandler = index$8(reactNative.View)(function (_ref7) {
19661
19660
  var theme = _ref7.theme;
19662
19661
  return {
19663
19662
  width: theme.__hd__.drawer.sizes.handlerWidth,
@@ -19888,11 +19887,11 @@ var Drawer = function Drawer(_ref) {
19888
19887
  }, children));
19889
19888
  };
19890
19889
 
19891
- var index$5 = Object.assign(Drawer, {
19890
+ var index$6 = Object.assign(Drawer, {
19892
19891
  Dragable: DragableDrawer
19893
19892
  });
19894
19893
 
19895
- var StyledWrapper$4 = index$7(reactNative.View)(function (_ref) {
19894
+ var StyledWrapper$5 = index$8(reactNative.View)(function (_ref) {
19896
19895
  var theme = _ref.theme;
19897
19896
  return {
19898
19897
  display: 'flex',
@@ -19903,7 +19902,7 @@ var StyledWrapper$4 = index$7(reactNative.View)(function (_ref) {
19903
19902
  padding: theme.__hd__.empty.space.wrapperPadding
19904
19903
  };
19905
19904
  });
19906
- var StyledTitle = index$7(reactNative.Text)(function (_ref2) {
19905
+ var StyledTitle = index$8(reactNative.Text)(function (_ref2) {
19907
19906
  var theme = _ref2.theme,
19908
19907
  themeVariant = _ref2.themeVariant;
19909
19908
  return {
@@ -19914,7 +19913,7 @@ var StyledTitle = index$7(reactNative.Text)(function (_ref2) {
19914
19913
  color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
19915
19914
  };
19916
19915
  });
19917
- var StyledDescription = index$7(reactNative.Text)(function (_ref3) {
19916
+ var StyledDescription = index$8(reactNative.Text)(function (_ref3) {
19918
19917
  var theme = _ref3.theme,
19919
19918
  themeVariant = _ref3.themeVariant;
19920
19919
  return {
@@ -19934,7 +19933,7 @@ var Empty = function Empty(_ref) {
19934
19933
  _ref$variant = _ref.variant,
19935
19934
  variant = _ref$variant === void 0 ? 'light' : _ref$variant;
19936
19935
  var theme = useTheme();
19937
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, {
19936
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$5, {
19938
19937
  style: style,
19939
19938
  testID: testID
19940
19939
  }, image !== undefined && /*#__PURE__*/React__default["default"].cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
@@ -19948,7 +19947,7 @@ var Empty = function Empty(_ref) {
19948
19947
  }, description));
19949
19948
  };
19950
19949
 
19951
- var StyledFABContainer = index$7(reactNative.TouchableHighlight)(function (_ref) {
19950
+ var StyledFABContainer = index$8(reactNative.TouchableHighlight)(function (_ref) {
19952
19951
  var theme = _ref.theme;
19953
19952
  return {
19954
19953
  backgroundColor: theme.__hd__.fab.colors.buttonBackground,
@@ -19962,7 +19961,7 @@ var StyledFABContainer = index$7(reactNative.TouchableHighlight)(function (_ref)
19962
19961
  flexDirection: 'row'
19963
19962
  };
19964
19963
  });
19965
- var StyledFABIcon = index$7(Icon)(function (_ref2) {
19964
+ var StyledFABIcon = index$8(Icon)(function (_ref2) {
19966
19965
  var theme = _ref2.theme;
19967
19966
  return {
19968
19967
  color: theme.__hd__.fab.colors.icon,
@@ -19971,7 +19970,7 @@ var StyledFABIcon = index$7(Icon)(function (_ref2) {
19971
19970
  textAlign: 'center'
19972
19971
  };
19973
19972
  });
19974
- var StyledFABText = index$7(reactNative.Text)(function (_ref3) {
19973
+ var StyledFABText = index$8(reactNative.Text)(function (_ref3) {
19975
19974
  var theme = _ref3.theme;
19976
19975
  return {
19977
19976
  fontFamily: theme.__hd__.fab.fonts.title,
@@ -20068,7 +20067,7 @@ var FAB = function FAB(_ref3) {
20068
20067
  }));
20069
20068
  };
20070
20069
 
20071
- var StyledActionItem = index$7(reactNative.TouchableOpacity)(function (_ref) {
20070
+ var StyledActionItem = index$8(reactNative.TouchableOpacity)(function (_ref) {
20072
20071
  var theme = _ref.theme;
20073
20072
  return {
20074
20073
  paddingLeft: theme.__hd__.fab.space.actionItemPaddingLeft,
@@ -20085,7 +20084,7 @@ var StyledActionItem = index$7(reactNative.TouchableOpacity)(function (_ref) {
20085
20084
  overflow: 'hidden'
20086
20085
  };
20087
20086
  });
20088
- var StyledActionItemText = index$7(Typography.Text)(function (_ref2) {
20087
+ var StyledActionItemText = index$8(Typography.Text)(function (_ref2) {
20089
20088
  var theme = _ref2.theme;
20090
20089
  return {
20091
20090
  paddingLeft: theme.__hd__.fab.space.actionItemTextPaddingLeft,
@@ -20095,7 +20094,7 @@ var StyledActionItemText = index$7(Typography.Text)(function (_ref2) {
20095
20094
  color: theme.__hd__.fab.colors.actionItemText
20096
20095
  };
20097
20096
  });
20098
- var StyledIcon = index$7(Icon)(function (_ref3) {
20097
+ var StyledIcon = index$8(Icon)(function (_ref3) {
20099
20098
  var theme = _ref3.theme;
20100
20099
  return {
20101
20100
  color: theme.__hd__.fab.colors.actionItemText
@@ -20117,7 +20116,7 @@ var ActionItem = function ActionItem(_ref) {
20117
20116
  }), /*#__PURE__*/React__default["default"].createElement(StyledActionItemText, null, title));
20118
20117
  };
20119
20118
 
20120
- var StyledContainer$1 = index$7(reactNative.View)({
20119
+ var StyledContainer$1 = index$8(reactNative.View)({
20121
20120
  position: 'absolute',
20122
20121
  left: 0,
20123
20122
  right: 0,
@@ -20126,12 +20125,12 @@ var StyledContainer$1 = index$7(reactNative.View)({
20126
20125
  alignItems: 'flex-end',
20127
20126
  justifyContent: 'flex-end'
20128
20127
  });
20129
- var StyledActionGroupContainer = index$7(reactNative.Animated.View)({
20128
+ var StyledActionGroupContainer = index$8(reactNative.Animated.View)({
20130
20129
  alignItems: 'flex-end',
20131
20130
  justifyContent: 'flex-end',
20132
20131
  width: '70%'
20133
20132
  });
20134
- var StyledFAB = index$7(FAB)(function (_ref) {
20133
+ var StyledFAB = index$8(FAB)(function (_ref) {
20135
20134
  var theme = _ref.theme;
20136
20135
  return {
20137
20136
  marginRight: theme.__hd__.fab.space.buttonMarginRight,
@@ -20139,7 +20138,7 @@ var StyledFAB = index$7(FAB)(function (_ref) {
20139
20138
  alignSelf: 'flex-end'
20140
20139
  };
20141
20140
  });
20142
- var StyledBackdrop = index$7(reactNative.Animated.View)(function (_ref2) {
20141
+ var StyledBackdrop = index$8(reactNative.Animated.View)(function (_ref2) {
20143
20142
  var theme = _ref2.theme;
20144
20143
  return {
20145
20144
  position: 'absolute',
@@ -20150,7 +20149,7 @@ var StyledBackdrop = index$7(reactNative.Animated.View)(function (_ref2) {
20150
20149
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
20151
20150
  };
20152
20151
  });
20153
- var StyledHeaderText = index$7(Typography.Text)(function (_ref3) {
20152
+ var StyledHeaderText = index$8(Typography.Text)(function (_ref3) {
20154
20153
  var theme = _ref3.theme;
20155
20154
  return {
20156
20155
  fontSize: theme.__hd__.fab.fontSizes.header,
@@ -20238,7 +20237,7 @@ var ActionGroup = function ActionGroup(_ref2) {
20238
20237
  }));
20239
20238
  };
20240
20239
 
20241
- var index$4 = Object.assign(FAB, {
20240
+ var index$5 = Object.assign(FAB, {
20242
20241
  ActionGroup: ActionGroup
20243
20242
  });
20244
20243
 
@@ -20265,7 +20264,7 @@ var Image = function Image(_ref) {
20265
20264
  }, imageNativeProps));
20266
20265
  };
20267
20266
 
20268
- var StyledListItemContainer$1 = index$7(reactNative.TouchableHighlight)(function (_ref) {
20267
+ var StyledListItemContainer$1 = index$8(reactNative.TouchableHighlight)(function (_ref) {
20269
20268
  var theme = _ref.theme,
20270
20269
  _ref$themeSelected = _ref.themeSelected,
20271
20270
  themeSelected = _ref$themeSelected === void 0 ? false : _ref$themeSelected,
@@ -20296,21 +20295,21 @@ var StyledListItemContainer$1 = index$7(reactNative.TouchableHighlight)(function
20296
20295
  return sharedStyles;
20297
20296
  }
20298
20297
  });
20299
- var StyledContentContainer = index$7(reactNative.View)(function () {
20298
+ var StyledContentContainer = index$8(reactNative.View)(function () {
20300
20299
  return {
20301
20300
  flexDirection: 'column',
20302
20301
  flex: 1,
20303
20302
  flexGrow: 2
20304
20303
  };
20305
20304
  });
20306
- var StyledChildrenContainer = index$7(reactNative.View)(function () {
20305
+ var StyledChildrenContainer = index$8(reactNative.View)(function () {
20307
20306
  return {
20308
20307
  flexDirection: 'column',
20309
20308
  justifyContent: 'flex-start',
20310
20309
  alignItems: 'flex-start'
20311
20310
  };
20312
20311
  });
20313
- var StyledLeadingStatus = index$7(reactNative.View)(function (_ref2) {
20312
+ var StyledLeadingStatus = index$8(reactNative.View)(function (_ref2) {
20314
20313
  var theme = _ref2.theme,
20315
20314
  themeLeadingStatusIntent = _ref2.themeLeadingStatusIntent;
20316
20315
  return {
@@ -20320,19 +20319,19 @@ var StyledLeadingStatus = index$7(reactNative.View)(function (_ref2) {
20320
20319
  backgroundColor: theme.__hd__.list.colors.leadingStatus[themeLeadingStatusIntent]
20321
20320
  };
20322
20321
  });
20323
- var StyledPrefixContainer$1 = index$7(reactNative.View)(function (_ref3) {
20322
+ var StyledPrefixContainer$1 = index$8(reactNative.View)(function (_ref3) {
20324
20323
  var theme = _ref3.theme;
20325
20324
  return {
20326
20325
  marginRight: theme.__hd__.list.space.prefixContainerMarginRight
20327
20326
  };
20328
20327
  });
20329
- var StyledSuffixContainer$1 = index$7(reactNative.View)(function (_ref4) {
20328
+ var StyledSuffixContainer$1 = index$8(reactNative.View)(function (_ref4) {
20330
20329
  var theme = _ref4.theme;
20331
20330
  return {
20332
20331
  marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
20333
20332
  };
20334
20333
  });
20335
- var StyledTitleContainer$1 = index$7(reactNative.View)(function () {
20334
+ var StyledTitleContainer$1 = index$8(reactNative.View)(function () {
20336
20335
  return {
20337
20336
  flex: 1
20338
20337
  };
@@ -20387,24 +20386,24 @@ var ListItem = function ListItem(_ref) {
20387
20386
  }) : suffix)), children && /*#__PURE__*/React__default["default"].createElement(StyledChildrenContainer, null, children))));
20388
20387
  };
20389
20388
 
20390
- var StyledPrefixContainer = index$7(reactNative.View)(function (_ref) {
20389
+ var StyledPrefixContainer = index$8(reactNative.View)(function (_ref) {
20391
20390
  var theme = _ref.theme;
20392
20391
  return {
20393
20392
  marginRight: theme.__hd__.list.space.prefixContainerMarginRight
20394
20393
  };
20395
20394
  });
20396
- var StyledSuffixContainer = index$7(reactNative.View)(function (_ref2) {
20395
+ var StyledSuffixContainer = index$8(reactNative.View)(function (_ref2) {
20397
20396
  var theme = _ref2.theme;
20398
20397
  return {
20399
20398
  marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
20400
20399
  };
20401
20400
  });
20402
- var StyledTitleContainer = index$7(reactNative.View)(function () {
20401
+ var StyledTitleContainer = index$8(reactNative.View)(function () {
20403
20402
  return {
20404
20403
  flex: 1
20405
20404
  };
20406
20405
  });
20407
- var StyledListItemContainer = index$7(reactNative.TouchableHighlight)(function (_ref3) {
20406
+ var StyledListItemContainer = index$8(reactNative.TouchableHighlight)(function (_ref3) {
20408
20407
  var theme = _ref3.theme,
20409
20408
  themeSelected = _ref3.themeSelected,
20410
20409
  themeDisabled = _ref3.themeDisabled;
@@ -20458,17 +20457,17 @@ var List = {
20458
20457
  BasicItem: BasicListItem
20459
20458
  };
20460
20459
 
20461
- var StyledWrapper$3 = index$7(reactNative.View)(function () {
20460
+ var StyledWrapper$4 = index$8(reactNative.View)(function () {
20462
20461
  return {
20463
20462
  alignContent: 'flex-start'
20464
20463
  };
20465
20464
  });
20466
- var StyledPinWrapper = index$7(reactNative.View)(function () {
20465
+ var StyledPinWrapper = index$8(reactNative.View)(function () {
20467
20466
  return {
20468
20467
  flexDirection: 'row'
20469
20468
  };
20470
20469
  });
20471
- var StyledCell = index$7(reactNative.View)(function (_ref) {
20470
+ var StyledCell = index$8(reactNative.View)(function (_ref) {
20472
20471
  var theme = _ref.theme,
20473
20472
  themeFocused = _ref.themeFocused,
20474
20473
  themeState = _ref.themeState;
@@ -20482,7 +20481,7 @@ var StyledCell = index$7(reactNative.View)(function (_ref) {
20482
20481
  borderColor: theme.__hd__.pinInput.colors[themeState]
20483
20482
  };
20484
20483
  });
20485
- var StyledCellText = index$7(reactNative.Text)(function (_ref2) {
20484
+ var StyledCellText = index$8(reactNative.Text)(function (_ref2) {
20486
20485
  var theme = _ref2.theme,
20487
20486
  themeState = _ref2.themeState;
20488
20487
  return {
@@ -20491,13 +20490,13 @@ var StyledCellText = index$7(reactNative.Text)(function (_ref2) {
20491
20490
  color: theme.__hd__.pinInput.colors[themeState]
20492
20491
  };
20493
20492
  });
20494
- var StyledSpacer = index$7(reactNative.View)(function (_ref3) {
20493
+ var StyledSpacer = index$8(reactNative.View)(function (_ref3) {
20495
20494
  var theme = _ref3.theme;
20496
20495
  return {
20497
20496
  marginLeft: theme.__hd__.pinInput.space.spacer
20498
20497
  };
20499
20498
  });
20500
- var StyledMask = index$7(reactNative.View)(function (_ref4) {
20499
+ var StyledMask = index$8(reactNative.View)(function (_ref4) {
20501
20500
  var theme = _ref4.theme,
20502
20501
  themeState = _ref4.themeState;
20503
20502
  return {
@@ -20508,7 +20507,7 @@ var StyledMask = index$7(reactNative.View)(function (_ref4) {
20508
20507
  borderColor: theme.__hd__.pinInput.colors[themeState]
20509
20508
  };
20510
20509
  });
20511
- var StyledFilledMask = index$7(reactNative.View)(function (_ref5) {
20510
+ var StyledFilledMask = index$8(reactNative.View)(function (_ref5) {
20512
20511
  var theme = _ref5.theme,
20513
20512
  themeState = _ref5.themeState;
20514
20513
  return {
@@ -20520,7 +20519,7 @@ var StyledFilledMask = index$7(reactNative.View)(function (_ref5) {
20520
20519
  backgroundColor: theme.__hd__.pinInput.colors[themeState]
20521
20520
  };
20522
20521
  });
20523
- var StyledHiddenInput = index$7(reactNative.TextInput)(function (_ref6) {
20522
+ var StyledHiddenInput = index$8(reactNative.TextInput)(function (_ref6) {
20524
20523
  var themePinLength = _ref6.themePinLength,
20525
20524
  theme = _ref6.theme;
20526
20525
  var cellWidth = theme.__hd__.pinInput.sizes.cellWidth;
@@ -20534,14 +20533,14 @@ var StyledHiddenInput = index$7(reactNative.TextInput)(function (_ref6) {
20534
20533
  height: '100%'
20535
20534
  };
20536
20535
  });
20537
- var StyledErrorContainer = index$7(reactNative.View)(function (_ref7) {
20536
+ var StyledErrorContainer = index$8(reactNative.View)(function (_ref7) {
20538
20537
  var theme = _ref7.theme;
20539
20538
  return {
20540
20539
  flexDirection: 'row',
20541
20540
  paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
20542
20541
  };
20543
20542
  });
20544
- var StyledErrorMessage = index$7(reactNative.Text)(function (_ref8) {
20543
+ var StyledErrorMessage = index$8(reactNative.Text)(function (_ref8) {
20545
20544
  var theme = _ref8.theme;
20546
20545
  return {
20547
20546
  fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
@@ -20644,7 +20643,7 @@ function PinInput(_ref2) {
20644
20643
  reactNative.InteractionManager.runAfterInteractions(focus);
20645
20644
  }
20646
20645
  }, [inputRef]);
20647
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$3, {
20646
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, {
20648
20647
  style: style,
20649
20648
  testID: testID
20650
20649
  }, /*#__PURE__*/React__default["default"].createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
@@ -20683,14 +20682,14 @@ var INNER_CIRCLE_PERCENTAGE = 0.85; // 85% width according to design
20683
20682
 
20684
20683
  var STROKE_WIDTH_PERCENTAGE = 0.075; // 7.5% width according to design
20685
20684
 
20686
- var StyledContainer = index$7(reactNative.View)(function (_ref) {
20685
+ var StyledContainer = index$8(reactNative.View)(function (_ref) {
20687
20686
  var theme = _ref.theme;
20688
20687
  return {
20689
20688
  flexDirection: 'row',
20690
20689
  borderRadius: theme.__hd__.progress.radii["default"]
20691
20690
  };
20692
20691
  });
20693
- var StyledHalfCircleWrapper = index$7(reactNative.View)(function (_ref2) {
20692
+ var StyledHalfCircleWrapper = index$8(reactNative.View)(function (_ref2) {
20694
20693
  var theme = _ref2.theme;
20695
20694
  return {
20696
20695
  width: theme.__hd__.progress.sizes.circleWidth / 2,
@@ -20698,7 +20697,7 @@ var StyledHalfCircleWrapper = index$7(reactNative.View)(function (_ref2) {
20698
20697
  overflow: 'hidden'
20699
20698
  };
20700
20699
  });
20701
- var StyledHalfCircleInnerFG = index$7(reactNative.View)(function (_ref3) {
20700
+ var StyledHalfCircleInnerFG = index$8(reactNative.View)(function (_ref3) {
20702
20701
  var theme = _ref3.theme,
20703
20702
  themeIntent = _ref3.themeIntent;
20704
20703
  return {
@@ -20708,7 +20707,7 @@ var StyledHalfCircleInnerFG = index$7(reactNative.View)(function (_ref3) {
20708
20707
  borderRadius: theme.__hd__.progress.radii["default"]
20709
20708
  };
20710
20709
  });
20711
- var StyledHalfCircleInnerBG = index$7(reactNative.View)(function (_ref4) {
20710
+ var StyledHalfCircleInnerBG = index$8(reactNative.View)(function (_ref4) {
20712
20711
  var theme = _ref4.theme;
20713
20712
  return {
20714
20713
  width: theme.__hd__.progress.sizes.circleWidth,
@@ -20717,7 +20716,7 @@ var StyledHalfCircleInnerBG = index$7(reactNative.View)(function (_ref4) {
20717
20716
  borderRadius: theme.__hd__.progress.radii["default"]
20718
20717
  };
20719
20718
  });
20720
- var StyledDonutCircle = index$7(reactNative.View)(function (_ref5) {
20719
+ var StyledDonutCircle = index$8(reactNative.View)(function (_ref5) {
20721
20720
  var theme = _ref5.theme;
20722
20721
  return {
20723
20722
  position: 'absolute',
@@ -20732,7 +20731,7 @@ var StyledDonutCircle = index$7(reactNative.View)(function (_ref5) {
20732
20731
  justifyContent: 'center'
20733
20732
  };
20734
20733
  });
20735
- var StyledStrokeEnd = index$7(reactNative.View)(function (_ref6) {
20734
+ var StyledStrokeEnd = index$8(reactNative.View)(function (_ref6) {
20736
20735
  var theme = _ref6.theme,
20737
20736
  themeIntent = _ref6.themeIntent;
20738
20737
  return {
@@ -20860,7 +20859,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
20860
20859
  }, "".concat(value, "%")))));
20861
20860
  };
20862
20861
 
20863
- var StyledWrapper$2 = index$7(reactNative.View)(function (_ref) {
20862
+ var StyledWrapper$3 = index$8(reactNative.View)(function (_ref) {
20864
20863
  var theme = _ref.theme;
20865
20864
  return {
20866
20865
  height: theme.__hd__.progress.sizes.barHeight,
@@ -20869,7 +20868,7 @@ var StyledWrapper$2 = index$7(reactNative.View)(function (_ref) {
20869
20868
  overflow: 'hidden'
20870
20869
  };
20871
20870
  });
20872
- var StyledInner = index$7(reactNative.Animated.View)(function (_ref2) {
20871
+ var StyledInner = index$8(reactNative.Animated.View)(function (_ref2) {
20873
20872
  var theme = _ref2.theme,
20874
20873
  themeIntent = _ref2.themeIntent;
20875
20874
  return {
@@ -20915,7 +20914,7 @@ var ProgressBar = function ProgressBar(_ref) {
20915
20914
  outputRange: [999, 0],
20916
20915
  extrapolate: 'clamp'
20917
20916
  });
20918
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$2, _extends$1({}, nativeProps, {
20917
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$3, _extends$1({}, nativeProps, {
20919
20918
  testID: testID,
20920
20919
  style: style
20921
20920
  }), /*#__PURE__*/React__default["default"].createElement(StyledInner, {
@@ -20973,13 +20972,13 @@ var Slider = function Slider(_ref) {
20973
20972
  });
20974
20973
  };
20975
20974
 
20976
- var StyledView$1 = index$7(reactNative.View)();
20977
- var StyledSpinnerContainer = index$7(reactNative.View)({
20975
+ var StyledView$1 = index$8(reactNative.View)();
20976
+ var StyledSpinnerContainer = index$8(reactNative.View)({
20978
20977
  height: '100%',
20979
20978
  justifyContent: 'center',
20980
20979
  alignItems: 'center'
20981
20980
  });
20982
- var StyledSpinnerRow = index$7(reactNative.View)(function (_ref) {
20981
+ var StyledSpinnerRow = index$8(reactNative.View)(function (_ref) {
20983
20982
  var themePosition = _ref.themePosition,
20984
20983
  _ref$themeSize = _ref.themeSize,
20985
20984
  themeSize = _ref$themeSize === void 0 ? 'medium' : _ref$themeSize,
@@ -20989,7 +20988,7 @@ var StyledSpinnerRow = index$7(reactNative.View)(function (_ref) {
20989
20988
  marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding[themeSize] : 0
20990
20989
  };
20991
20990
  });
20992
- var StyledSpinnerDot = index$7(reactNative.View)(function (_ref2) {
20991
+ var StyledSpinnerDot = index$8(reactNative.View)(function (_ref2) {
20993
20992
  var themePosition = _ref2.themePosition,
20994
20993
  _ref2$themeSize = _ref2.themeSize,
20995
20994
  themeSize = _ref2$themeSize === void 0 ? 'medium' : _ref2$themeSize,
@@ -21093,7 +21092,7 @@ var Spinner = function Spinner(_ref) {
21093
21092
  })));
21094
21093
  };
21095
21094
 
21096
- var Circle = index$7(reactNative.View)(function (_ref) {
21095
+ var Circle = index$8(reactNative.View)(function (_ref) {
21097
21096
  var theme = _ref.theme;
21098
21097
  return {
21099
21098
  height: theme.__hd__.radio.sizes.circle,
@@ -21105,7 +21104,7 @@ var Circle = index$7(reactNative.View)(function (_ref) {
21105
21104
  justifyContent: 'center'
21106
21105
  };
21107
21106
  });
21108
- var InnerCircle = index$7(reactNative.View)(function (_ref2) {
21107
+ var InnerCircle = index$8(reactNative.View)(function (_ref2) {
21109
21108
  var theme = _ref2.theme;
21110
21109
  return {
21111
21110
  height: theme.__hd__.radio.sizes.innerCircle,
@@ -21114,7 +21113,7 @@ var InnerCircle = index$7(reactNative.View)(function (_ref2) {
21114
21113
  backgroundColor: theme.__hd__.radio.colors.circle
21115
21114
  };
21116
21115
  });
21117
- var Spacer = index$7(reactNative.View)(function (_ref3) {
21116
+ var Spacer = index$8(reactNative.View)(function (_ref3) {
21118
21117
  var theme = _ref3.theme;
21119
21118
  return {
21120
21119
  marginTop: theme.__hd__.radio.space.groupTopMargin
@@ -21190,7 +21189,7 @@ var CompoundRadio = {
21190
21189
  Group: RadioGroup
21191
21190
  };
21192
21191
 
21193
- var StyledHeading = index$7(reactNative.View)(function (_ref) {
21192
+ var StyledHeading = index$8(reactNative.View)(function (_ref) {
21194
21193
  var theme = _ref.theme;
21195
21194
  return {
21196
21195
  paddingVertical: theme.__hd__.sectionHeading.space.headingVerticalPadding,
@@ -21203,13 +21202,13 @@ var StyledHeading = index$7(reactNative.View)(function (_ref) {
21203
21202
  justifyContent: 'space-between'
21204
21203
  };
21205
21204
  });
21206
- var StyledIconWrapper = index$7(reactNative.View)(function (_ref2) {
21205
+ var StyledIconWrapper$1 = index$8(reactNative.View)(function (_ref2) {
21207
21206
  var theme = _ref2.theme;
21208
21207
  return {
21209
21208
  marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
21210
21209
  };
21211
21210
  });
21212
- var StyledWrapper$1 = index$7(reactNative.View)(function () {
21211
+ var StyledWrapper$2 = index$8(reactNative.View)(function () {
21213
21212
  return {
21214
21213
  display: 'flex',
21215
21214
  flexDirection: 'row'
@@ -21243,7 +21242,7 @@ var SectionHeading = function SectionHeading(_ref) {
21243
21242
  return /*#__PURE__*/React__default["default"].createElement(StyledHeading, {
21244
21243
  style: style,
21245
21244
  testID: testID
21246
- }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
21245
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$2, null, /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$1, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
21247
21246
  icon: icon,
21248
21247
  size: ICON_SIZE_MAP[fontSize],
21249
21248
  intent: ICON_INTENT_MAP[intent]
@@ -21257,25 +21256,25 @@ var SectionHeading = function SectionHeading(_ref) {
21257
21256
  }, text)), rightChildren);
21258
21257
  };
21259
21258
 
21260
- var SectionSpacer = index$7(reactNative.View)(function (_ref) {
21259
+ var SectionSpacer = index$8(reactNative.View)(function (_ref) {
21261
21260
  var theme = _ref.theme;
21262
21261
  return {
21263
21262
  marginTop: theme.__hd__.select.space.sectionSpacing
21264
21263
  };
21265
21264
  });
21266
- var OptionSpacer = index$7(reactNative.View)(function (_ref2) {
21265
+ var OptionSpacer = index$8(reactNative.View)(function (_ref2) {
21267
21266
  var theme = _ref2.theme;
21268
21267
  return {
21269
21268
  marginTop: theme.__hd__.select.space.optionSpacing
21270
21269
  };
21271
21270
  });
21272
- var FooterText = index$7(Typography.Text)(function (_ref3) {
21271
+ var FooterText = index$8(Typography.Text)(function (_ref3) {
21273
21272
  var theme = _ref3.theme;
21274
21273
  return {
21275
21274
  color: theme.__hd__.select.colors.footerText
21276
21275
  };
21277
21276
  });
21278
- var StyledSearchBar = index$7(reactNative.View)(function (_ref4) {
21277
+ var StyledSearchBar = index$8(reactNative.View)(function (_ref4) {
21279
21278
  var theme = _ref4.theme;
21280
21279
  return {
21281
21280
  marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
@@ -21348,7 +21347,7 @@ var StyledOptionList = function StyledOptionList(_ref) {
21348
21347
  });
21349
21348
  };
21350
21349
 
21351
- var Option$1 = function Option(_ref) {
21350
+ var Option$2 = function Option(_ref) {
21352
21351
  var text = _ref.text,
21353
21352
  _ref$disabled = _ref.disabled,
21354
21353
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
@@ -21395,7 +21394,7 @@ var OptionList$1 = function OptionList(_ref) {
21395
21394
  return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
21396
21395
  selected: selected,
21397
21396
  onPress: onItemPress
21398
- })) : /*#__PURE__*/React__default["default"].createElement(Option$1, {
21397
+ })) : /*#__PURE__*/React__default["default"].createElement(Option$2, {
21399
21398
  selected: selected,
21400
21399
  text: item.text,
21401
21400
  disabled: item.disabled,
@@ -21593,7 +21592,7 @@ function MultiSelect(_ref) {
21593
21592
  })));
21594
21593
  }
21595
21594
 
21596
- var Option = function Option(_ref) {
21595
+ var Option$1 = function Option(_ref) {
21597
21596
  var text = _ref.text,
21598
21597
  _ref$disabled = _ref.disabled,
21599
21598
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
@@ -21637,7 +21636,7 @@ var OptionList = function OptionList(_ref) {
21637
21636
  return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
21638
21637
  selected: selected,
21639
21638
  onPress: onItemPress
21640
- })) : /*#__PURE__*/React__default["default"].createElement(Option, {
21639
+ })) : /*#__PURE__*/React__default["default"].createElement(Option$1, {
21641
21640
  selected: selected,
21642
21641
  text: item.text,
21643
21642
  disabled: item.disabled,
@@ -21759,11 +21758,11 @@ var SingleSelect = function SingleSelect(_ref) {
21759
21758
  })));
21760
21759
  };
21761
21760
 
21762
- var index$3 = Object.assign(SingleSelect, {
21761
+ var index$4 = Object.assign(SingleSelect, {
21763
21762
  Multi: MultiSelect
21764
21763
  });
21765
21764
 
21766
- var StyledWrapper = index$7(reactNative.View)(function (_ref) {
21765
+ var StyledWrapper$1 = index$8(reactNative.View)(function (_ref) {
21767
21766
  var theme = _ref.theme,
21768
21767
  themeVariant = _ref.themeVariant,
21769
21768
  themeSize = _ref.themeSize;
@@ -21777,7 +21776,7 @@ var StyledWrapper = index$7(reactNative.View)(function (_ref) {
21777
21776
  justifyContent: 'center'
21778
21777
  };
21779
21778
  });
21780
- var StyledKnot = index$7(reactNative.Animated.View)(function (_ref2) {
21779
+ var StyledKnot = index$8(reactNative.Animated.View)(function (_ref2) {
21781
21780
  var theme = _ref2.theme,
21782
21781
  themeSize = _ref2.themeSize;
21783
21782
  return {
@@ -21788,6 +21787,107 @@ var StyledKnot = index$7(reactNative.Animated.View)(function (_ref2) {
21788
21787
  };
21789
21788
  });
21790
21789
 
21790
+ var StyledWrapper = index$8(reactNative.View)(function (_ref) {
21791
+ var theme = _ref.theme;
21792
+ return {
21793
+ flexDirection: 'row',
21794
+ width: '100%',
21795
+ height: theme.__hd__["switch"].sizes.selector.height,
21796
+ borderRadius: theme.__hd__["switch"].radii.selector["default"],
21797
+ backgroundColor: theme.__hd__["switch"].colors.selector.background,
21798
+ padding: theme.__hd__["switch"].spaces.selector.wrapperPadding
21799
+ };
21800
+ });
21801
+ var StyledTextWrapper = index$8(reactNative.View)(function (_ref2) {
21802
+ var theme = _ref2.theme;
21803
+ return {
21804
+ flex: 1,
21805
+ borderRadius: theme.__hd__["switch"].radii.selector["default"],
21806
+ backgroundColor: theme.__hd__["switch"].colors.selector.textBackground,
21807
+ justifyContent: 'center',
21808
+ alignItems: 'center'
21809
+ };
21810
+ });
21811
+ var StyledIconWrapper = index$8(reactNative.View)(function (_ref3) {
21812
+ var theme = _ref3.theme;
21813
+ return {
21814
+ paddingHorizontal: theme.__hd__["switch"].spaces.selector.iconPadding,
21815
+ justifyContent: 'center',
21816
+ alignItems: 'center'
21817
+ };
21818
+ });
21819
+
21820
+ var OptionContent = function OptionContent(_ref) {
21821
+ var content = _ref.content,
21822
+ badge = _ref.badge;
21823
+ var theme = useTheme();
21824
+
21825
+ if (!badge) {
21826
+ return content;
21827
+ }
21828
+
21829
+ if (badge.type === 'status') {
21830
+ return /*#__PURE__*/React__default["default"].createElement(Badge$1.Status, {
21831
+ visible: true,
21832
+ style: {
21833
+ paddingHorizontal: theme.space.small
21834
+ },
21835
+ testID: "selector-switch-status-badge"
21836
+ }, content);
21837
+ }
21838
+
21839
+ return content;
21840
+ };
21841
+
21842
+ var Option = function Option(_ref2) {
21843
+ var text = _ref2.text,
21844
+ icon = _ref2.icon,
21845
+ badge = _ref2.badge,
21846
+ selected = _ref2.selected;
21847
+
21848
+ if (selected) {
21849
+ return /*#__PURE__*/React__default["default"].createElement(StyledTextWrapper, null, /*#__PURE__*/React__default["default"].createElement(OptionContent, {
21850
+ content: /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
21851
+ fontSize: "large",
21852
+ intent: "inverted"
21853
+ }, text),
21854
+ badge: badge
21855
+ }));
21856
+ }
21857
+
21858
+ return /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper, null, /*#__PURE__*/React__default["default"].createElement(OptionContent, {
21859
+ content: /*#__PURE__*/React__default["default"].createElement(Icon, {
21860
+ icon: icon
21861
+ }),
21862
+ badge: badge
21863
+ }));
21864
+ };
21865
+
21866
+ var SelectorSwitch = function SelectorSwitch(_ref) {
21867
+ var options = _ref.options,
21868
+ value = _ref.value,
21869
+ _onPress = _ref.onPress,
21870
+ style = _ref.style,
21871
+ testID = _ref.testID;
21872
+ return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
21873
+ onPress: function onPress() {
21874
+ return _onPress(value);
21875
+ },
21876
+ testID: testID
21877
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
21878
+ style: style
21879
+ }, options.map(function (opt, index) {
21880
+ return (
21881
+ /*#__PURE__*/
21882
+ // eslint-disable-next-line react/no-array-index-key
21883
+ React__default["default"].createElement(Option, _extends$1({}, opt, {
21884
+ selected: opt.value === value,
21885
+ key: index
21886
+ }))
21887
+ );
21888
+ })));
21889
+ };
21890
+
21791
21891
  var getVariant = function getVariant(_ref) {
21792
21892
  var disabled = _ref.disabled,
21793
21893
  checked = _ref.checked;
@@ -21833,7 +21933,7 @@ var Switch = function Switch(_ref2) {
21833
21933
  testID: testID,
21834
21934
  onPress: onPress,
21835
21935
  disabled: disabled
21836
- }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
21936
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$1, {
21837
21937
  themeVariant: variant,
21838
21938
  themeSize: size,
21839
21939
  style: style
@@ -21845,12 +21945,16 @@ var Switch = function Switch(_ref2) {
21845
21945
  })));
21846
21946
  };
21847
21947
 
21948
+ var index$3 = Object.assign(Switch, {
21949
+ Selector: SelectorSwitch
21950
+ });
21951
+
21848
21952
  var AnimatedPagerView = reactNative.Animated.createAnimatedComponent(PagerView__default["default"]);
21849
- var TabContainer$1 = index$7(reactNative.View)({
21953
+ var TabContainer$1 = index$8(reactNative.View)({
21850
21954
  flex: 1,
21851
21955
  overflow: 'hidden'
21852
21956
  });
21853
- var HeaderTabWrapper$1 = index$7(reactNative.View)(function (_ref) {
21957
+ var HeaderTabWrapper$1 = index$8(reactNative.View)(function (_ref) {
21854
21958
  var theme = _ref.theme,
21855
21959
  themeInsets = _ref.themeInsets;
21856
21960
  return {
@@ -21859,10 +21963,10 @@ var HeaderTabWrapper$1 = index$7(reactNative.View)(function (_ref) {
21859
21963
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
21860
21964
  };
21861
21965
  });
21862
- var HeaderTab = index$7(reactNative.View)({
21966
+ var HeaderTab = index$8(reactNative.View)({
21863
21967
  flexDirection: 'row'
21864
21968
  });
21865
- var HeaderTabItem$1 = index$7(reactNative.View)(function (_ref2) {
21969
+ var HeaderTabItem$1 = index$8(reactNative.View)(function (_ref2) {
21866
21970
  var theme = _ref2.theme;
21867
21971
  return {
21868
21972
  flex: 1,
@@ -21870,13 +21974,13 @@ var HeaderTabItem$1 = index$7(reactNative.View)(function (_ref2) {
21870
21974
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21871
21975
  };
21872
21976
  });
21873
- var ContentWrapper$1 = index$7(AnimatedPagerView)({
21977
+ var ContentWrapper$1 = index$8(AnimatedPagerView)({
21874
21978
  flex: 1
21875
21979
  });
21876
- var TabScreen$1 = index$7(reactNative.View)({
21980
+ var TabScreen$1 = index$8(reactNative.View)({
21877
21981
  flex: 1
21878
21982
  });
21879
- var StyledIndicator = index$7(reactNative.Animated.View)(function (_ref3) {
21983
+ var StyledIndicator = index$8(reactNative.Animated.View)(function (_ref3) {
21880
21984
  var theme = _ref3.theme,
21881
21985
  themeWidth = _ref3.themeWidth;
21882
21986
  return {
@@ -21887,7 +21991,7 @@ var StyledIndicator = index$7(reactNative.Animated.View)(function (_ref3) {
21887
21991
  bottom: 0
21888
21992
  };
21889
21993
  });
21890
- var StyledBadgeWrapper = index$7(reactNative.View)({
21994
+ var StyledBadgeWrapper = index$8(reactNative.View)({
21891
21995
  flexDirection: 'row',
21892
21996
  alignItems: 'center'
21893
21997
  });
@@ -21913,17 +22017,17 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
21913
22017
  });
21914
22018
  };
21915
22019
 
21916
- var TabScreen = index$7(reactNative.View)({
22020
+ var TabScreen = index$8(reactNative.View)({
21917
22021
  flex: 1
21918
22022
  });
21919
- var TabContainer = index$7(reactNative.View)({
22023
+ var TabContainer = index$8(reactNative.View)({
21920
22024
  flex: 1,
21921
22025
  overflow: 'hidden'
21922
22026
  });
21923
- var ContentWrapper = index$7(PagerView__default["default"])({
22027
+ var ContentWrapper = index$8(PagerView__default["default"])({
21924
22028
  flex: 1
21925
22029
  });
21926
- var HeaderTabWrapper = index$7(reactNative.View)(function (_ref) {
22030
+ var HeaderTabWrapper = index$8(reactNative.View)(function (_ref) {
21927
22031
  var theme = _ref.theme,
21928
22032
  themeInsets = _ref.themeInsets;
21929
22033
  return {
@@ -21932,7 +22036,7 @@ var HeaderTabWrapper = index$7(reactNative.View)(function (_ref) {
21932
22036
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
21933
22037
  };
21934
22038
  });
21935
- var HeaderTabItem = index$7(reactNative.Animated.View)(function (_ref2) {
22039
+ var HeaderTabItem = index$8(reactNative.Animated.View)(function (_ref2) {
21936
22040
  var theme = _ref2.theme,
21937
22041
  isFirstItem = _ref2.isFirstItem;
21938
22042
  return {
@@ -21940,13 +22044,13 @@ var HeaderTabItem = index$7(reactNative.Animated.View)(function (_ref2) {
21940
22044
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21941
22045
  };
21942
22046
  });
21943
- var HeaderTabItemOutlineWrapper = index$7(reactNative.View)(function (_ref3) {
22047
+ var HeaderTabItemOutlineWrapper = index$8(reactNative.View)(function (_ref3) {
21944
22048
  var theme = _ref3.theme;
21945
22049
  return _objectSpread2({
21946
22050
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21947
22051
  }, reactNative.StyleSheet.absoluteFillObject);
21948
22052
  });
21949
- var HeaderTabItemOutline = index$7(reactNative.Animated.View)(function (_ref4) {
22053
+ var HeaderTabItemOutline = index$8(reactNative.Animated.View)(function (_ref4) {
21950
22054
  var theme = _ref4.theme,
21951
22055
  themeActive = _ref4.themeActive;
21952
22056
  return {
@@ -21954,7 +22058,7 @@ var HeaderTabItemOutline = index$7(reactNative.Animated.View)(function (_ref4) {
21954
22058
  backgroundColor: themeActive ? theme.__hd__.tabs.colors.activeBackground : undefined
21955
22059
  };
21956
22060
  });
21957
- var HeaderTabItemWrapper = index$7(reactNative.View)(function (_ref5) {
22061
+ var HeaderTabItemWrapper = index$8(reactNative.View)(function (_ref5) {
21958
22062
  var theme = _ref5.theme;
21959
22063
  return {
21960
22064
  paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
@@ -22052,7 +22156,8 @@ var ScrollableTab = function ScrollableTab(_ref2) {
22052
22156
  _ref2$lazy = _ref2.lazy,
22053
22157
  lazy = _ref2$lazy === void 0 ? false : _ref2$lazy,
22054
22158
  _ref2$lazyPreloadDist = _ref2.lazyPreloadDistance,
22055
- lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist;
22159
+ lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist,
22160
+ componentTestID = _ref2.testID;
22056
22161
  var flatListRef = React__default["default"].useRef(null);
22057
22162
  var pagerViewRef = React__default["default"].useRef(null);
22058
22163
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
@@ -22087,10 +22192,12 @@ var ScrollableTab = function ScrollableTab(_ref2) {
22087
22192
  };
22088
22193
  }, [selectedTabIndex]);
22089
22194
  return /*#__PURE__*/React__default["default"].createElement(TabContainer, {
22090
- style: containerStyle
22195
+ style: containerStyle,
22196
+ testID: componentTestID
22091
22197
  }, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper, {
22092
22198
  themeInsets: insets,
22093
- style: barStyle
22199
+ style: barStyle,
22200
+ testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
22094
22201
  }, /*#__PURE__*/React__default["default"].createElement(reactNative.FlatList, {
22095
22202
  ref: flatListRef,
22096
22203
  horizontal: true,
@@ -22213,7 +22320,8 @@ var Tabs = function Tabs(_ref2) {
22213
22320
  _ref2$lazy = _ref2.lazy,
22214
22321
  lazy = _ref2$lazy === void 0 ? false : _ref2$lazy,
22215
22322
  _ref2$lazyPreloadDist = _ref2.lazyPreloadDistance,
22216
- lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist;
22323
+ lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist,
22324
+ componentTestID = _ref2.testID;
22217
22325
  var theme = useTheme$1();
22218
22326
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
22219
22327
  var pagerViewRef = React__default["default"].useRef(null);
@@ -22236,10 +22344,12 @@ var Tabs = function Tabs(_ref2) {
22236
22344
  }
22237
22345
  }, [selectedTabIndex]);
22238
22346
  return /*#__PURE__*/React__default["default"].createElement(TabContainer$1, {
22239
- style: containerStyle
22347
+ style: containerStyle,
22348
+ testID: componentTestID
22240
22349
  }, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper$1, {
22241
22350
  themeInsets: insets,
22242
- style: barStyle
22351
+ style: barStyle,
22352
+ testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
22243
22353
  }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HeaderTab, {
22244
22354
  onLayout: function onLayout(e) {
22245
22355
  var width = e.nativeEvent.layout.width;
@@ -22318,7 +22428,7 @@ var index$2 = Object.assign(Tabs, {
22318
22428
  Scroll: ScrollableTab
22319
22429
  });
22320
22430
 
22321
- var StyledView = index$7(reactNative.View)(function (_ref) {
22431
+ var StyledView = index$8(reactNative.View)(function (_ref) {
22322
22432
  var themeIntent = _ref.themeIntent,
22323
22433
  theme = _ref.theme;
22324
22434
  return {
@@ -22330,7 +22440,7 @@ var StyledView = index$7(reactNative.View)(function (_ref) {
22330
22440
  backgroundColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")]
22331
22441
  };
22332
22442
  });
22333
- var StyledText = index$7(reactNative.Text)(function (_ref2) {
22443
+ var StyledText = index$8(reactNative.Text)(function (_ref2) {
22334
22444
  var themeIntent = _ref2.themeIntent,
22335
22445
  theme = _ref2.theme;
22336
22446
  return {
@@ -22420,7 +22530,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
22420
22530
  }) : null);
22421
22531
  };
22422
22532
 
22423
- var StyledPickerWrapper = index$7(reactNative.View)(function (_ref) {
22533
+ var StyledPickerWrapper = index$8(reactNative.View)(function (_ref) {
22424
22534
  var theme = _ref.theme;
22425
22535
  return {
22426
22536
  height: theme.__hd__.timePicker.sizes.height
@@ -22520,7 +22630,7 @@ var TimePicker = function TimePicker(props) {
22520
22630
  return /*#__PURE__*/React__default["default"].createElement(TimePickerAndroid, props);
22521
22631
  };
22522
22632
 
22523
- var ToastContainerWrapper = index$7(reactNative.View)(function (_ref) {
22633
+ var ToastContainerWrapper = index$8(reactNative.View)(function (_ref) {
22524
22634
  var theme = _ref.theme,
22525
22635
  position = _ref.position;
22526
22636
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
@@ -22530,7 +22640,7 @@ var ToastContainerWrapper = index$7(reactNative.View)(function (_ref) {
22530
22640
  elevation: 9999
22531
22641
  });
22532
22642
  });
22533
- var Container = index$7(reactNative.Animated.View)(function (_ref2) {
22643
+ var Container = index$8(reactNative.Animated.View)(function (_ref2) {
22534
22644
  var theme = _ref2.theme,
22535
22645
  themeVariant = _ref2.themeVariant,
22536
22646
  themeIntent = _ref2.themeIntent;
@@ -22546,21 +22656,21 @@ var Container = index$7(reactNative.Animated.View)(function (_ref2) {
22546
22656
  elevation: theme.__hd__.toast.shadows.elevation
22547
22657
  };
22548
22658
  });
22549
- var IconContainer = index$7(reactNative.View)(function (_ref3) {
22659
+ var IconContainer = index$8(reactNative.View)(function (_ref3) {
22550
22660
  var theme = _ref3.theme;
22551
22661
  return {
22552
22662
  alignItems: 'center',
22553
22663
  paddingLeft: theme.__hd__.toast.space.iconLeftPadding
22554
22664
  };
22555
22665
  });
22556
- var TextContainer = index$7(reactNative.View)(function (_ref4) {
22666
+ var TextContainer = index$8(reactNative.View)(function (_ref4) {
22557
22667
  var theme = _ref4.theme;
22558
22668
  return {
22559
22669
  paddingHorizontal: theme.__hd__.toast.space.textHorizontalPadding,
22560
22670
  flex: 1
22561
22671
  };
22562
22672
  });
22563
- var ContentContainer = index$7(reactNative.View)(function (_ref5) {
22673
+ var ContentContainer = index$8(reactNative.View)(function (_ref5) {
22564
22674
  var theme = _ref5.theme,
22565
22675
  showDivider = _ref5.showDivider;
22566
22676
  return {
@@ -22571,7 +22681,7 @@ var ContentContainer = index$7(reactNative.View)(function (_ref5) {
22571
22681
  flexDirection: 'row'
22572
22682
  };
22573
22683
  });
22574
- var CTAWrapper = index$7(reactNative.TouchableOpacity)(function (_ref6) {
22684
+ var CTAWrapper = index$8(reactNative.TouchableOpacity)(function (_ref6) {
22575
22685
  var theme = _ref6.theme;
22576
22686
  return {
22577
22687
  paddingHorizontal: theme.__hd__.toast.space.ctaPadding,
@@ -22832,7 +22942,7 @@ var Toast = {
22832
22942
  useToast: useToast
22833
22943
  };
22834
22944
 
22835
- var ToolbarWrapper = index$7(reactNative.View)(function (_ref) {
22945
+ var ToolbarWrapper = index$8(reactNative.View)(function (_ref) {
22836
22946
  var theme = _ref.theme;
22837
22947
  return {
22838
22948
  position: 'absolute',
@@ -22856,7 +22966,7 @@ var alignment = {
22856
22966
  center: 'center',
22857
22967
  right: 'flex-end'
22858
22968
  };
22859
- var ToolbarGroupWrapper = index$7(reactNative.View)(function (_ref2) {
22969
+ var ToolbarGroupWrapper = index$8(reactNative.View)(function (_ref2) {
22860
22970
  var align = _ref2.align;
22861
22971
  return {
22862
22972
  flex: 1,
@@ -22865,7 +22975,7 @@ var ToolbarGroupWrapper = index$7(reactNative.View)(function (_ref2) {
22865
22975
  alignItems: 'center'
22866
22976
  };
22867
22977
  });
22868
- var ToolbarItemWrapper = index$7(reactNative.TouchableOpacity)(function (_ref3) {
22978
+ var ToolbarItemWrapper = index$8(reactNative.TouchableOpacity)(function (_ref3) {
22869
22979
  var theme = _ref3.theme;
22870
22980
  return {
22871
22981
  paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
@@ -22945,7 +23055,7 @@ var ToolbarEvents;
22945
23055
  var emitter = new events.EventEmitter();
22946
23056
  emitter.setMaxListeners(20);
22947
23057
 
22948
- var StyledToolbarButton = index$7(reactNative.TouchableOpacity)(function (_ref) {
23058
+ var StyledToolbarButton = index$8(reactNative.TouchableOpacity)(function (_ref) {
22949
23059
  var theme = _ref.theme,
22950
23060
  selected = _ref.selected;
22951
23061
  return {
@@ -22956,7 +23066,7 @@ var StyledToolbarButton = index$7(reactNative.TouchableOpacity)(function (_ref)
22956
23066
  backgroundColor: selected ? theme.__hd__.richTextEditor.colors.toolbarButtonSelectedBackground : undefined
22957
23067
  };
22958
23068
  });
22959
- var StyledToolbar = index$7(reactNative.View)(function (_ref2) {
23069
+ var StyledToolbar = index$8(reactNative.View)(function (_ref2) {
22960
23070
  var theme = _ref2.theme;
22961
23071
  return {
22962
23072
  flexDirection: 'row',
@@ -22967,7 +23077,7 @@ var StyledToolbar = index$7(reactNative.View)(function (_ref2) {
22967
23077
  paddingHorizontal: theme.__hd__.richTextEditor.space.toolbarHorizontalPadding
22968
23078
  };
22969
23079
  });
22970
- var StyledSeparator = index$7(reactNative.View)(function (_ref3) {
23080
+ var StyledSeparator = index$8(reactNative.View)(function (_ref3) {
22971
23081
  var theme = _ref3.theme;
22972
23082
  return {
22973
23083
  width: theme.__hd__.richTextEditor.sizes.toolbarSeparatorWidth,
@@ -40938,13 +41048,13 @@ function checkDCE() {
40938
41048
  });
40939
41049
  })(lib);
40940
41050
 
40941
- index$7(reactNative.View)(function (_ref) {
41051
+ index$8(reactNative.View)(function (_ref) {
40942
41052
  var theme = _ref.theme;
40943
41053
  return {
40944
41054
  marginBottom: theme.__hd__.richTextEditor.space.wrapperMarginBottom
40945
41055
  };
40946
41056
  });
40947
- var StyledWebView = index$7(reactNativeWebview.WebView)(function (_ref2) {
41057
+ var StyledWebView = index$8(reactNativeWebview.WebView)(function (_ref2) {
40948
41058
  var height = _ref2.height,
40949
41059
  theme = _ref2.theme;
40950
41060
  return {
@@ -41207,15 +41317,15 @@ exports.BottomSheet = BottomSheet;
41207
41317
  exports.Box = Box;
41208
41318
  exports.Button = CompoundButton;
41209
41319
  exports.Calendar = Calendar;
41210
- exports.Card = index$6;
41320
+ exports.Card = index$7;
41211
41321
  exports.Checkbox = Checkbox;
41212
41322
  exports.Collapse = Collapse;
41213
41323
  exports.ContentNavigator = ContentNavigator;
41214
41324
  exports.DatePicker = DatePicker;
41215
41325
  exports.Divider = Divider;
41216
- exports.Drawer = index$5;
41326
+ exports.Drawer = index$6;
41217
41327
  exports.Empty = Empty;
41218
- exports.FAB = index$4;
41328
+ exports.FAB = index$5;
41219
41329
  exports.Icon = Icon;
41220
41330
  exports.Image = Image;
41221
41331
  exports.List = List;
@@ -41224,10 +41334,10 @@ exports.Progress = Progress;
41224
41334
  exports.Radio = CompoundRadio;
41225
41335
  exports.RichTextEditor = index;
41226
41336
  exports.SectionHeading = SectionHeading;
41227
- exports.Select = index$3;
41337
+ exports.Select = index$4;
41228
41338
  exports.Slider = Slider;
41229
41339
  exports.Spinner = Spinner;
41230
- exports.Switch = Switch;
41340
+ exports.Switch = index$3;
41231
41341
  exports.Tabs = index$2;
41232
41342
  exports.Tag = Tag;
41233
41343
  exports.TextInput = TextInput;