@hero-design/rn 7.28.0 → 7.29.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 (80) hide show
  1. package/.eslintrc.js +2 -1
  2. package/.turbo/turbo-build.log +9 -9
  3. package/es/index.js +119 -95
  4. package/lib/index.js +119 -95
  5. package/package.json +5 -4
  6. package/src/components/Alert/index.tsx +1 -0
  7. package/src/components/BottomSheet/Header.tsx +1 -1
  8. package/src/components/BottomSheet/StyledBottomSheet.tsx +1 -2
  9. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +12 -14
  10. package/src/components/DatePicker/DatePickerIOS.tsx +5 -11
  11. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  12. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +35 -16
  13. package/src/components/Empty/StyledEmpty.tsx +1 -1
  14. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  15. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  16. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  17. package/src/components/List/ListItem.tsx +2 -2
  18. package/src/components/Progress/ProgressCircle.tsx +1 -1
  19. package/src/components/Select/{StyledOptionList.tsx → BaseOptionList.tsx} +6 -6
  20. package/src/components/Select/Footer.tsx +2 -7
  21. package/src/components/Select/MultiSelect/Option.tsx +24 -11
  22. package/src/components/Select/MultiSelect/OptionList.tsx +3 -2
  23. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +3 -2
  24. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +47 -21
  25. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +204 -107
  26. package/src/components/Select/MultiSelect/index.tsx +16 -0
  27. package/src/components/Select/SingleSelect/Option.tsx +12 -12
  28. package/src/components/Select/SingleSelect/OptionList.tsx +3 -2
  29. package/src/components/Select/SingleSelect/StyledSingleSelect.tsx +6 -0
  30. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
  31. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +32 -16
  32. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +70 -54
  33. package/src/components/Select/SingleSelect/index.tsx +16 -0
  34. package/src/components/Select/StyledSelect.tsx +6 -7
  35. package/src/components/Select/types.ts +1 -0
  36. package/src/components/Tabs/ScrollableTabs.tsx +1 -1
  37. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +9 -3
  38. package/src/components/Tag/index.tsx +2 -2
  39. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  40. package/src/components/TextInput/__tests__/index.spec.tsx +4 -2
  41. package/src/components/TextInput/index.tsx +7 -1
  42. package/src/components/TimePicker/TimePickerIOS.tsx +5 -11
  43. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
  44. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +35 -16
  45. package/src/components/Toast/ToastContainer.tsx +1 -1
  46. package/src/components/Toast/ToastProvider.tsx +10 -1
  47. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +5 -5
  48. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +4 -4
  49. package/src/components/Typography/Text/StyledText.tsx +2 -1
  50. package/src/components/Typography/Text/index.tsx +2 -1
  51. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +19 -15
  52. package/src/theme/components/bottomSheet.ts +4 -5
  53. package/src/theme/components/empty.ts +6 -5
  54. package/src/theme/components/fab.ts +1 -1
  55. package/src/theme/components/select.ts +4 -6
  56. package/src/theme/components/typography.ts +2 -0
  57. package/src/theme/global/colors/global.ts +1 -0
  58. package/src/theme/global/colors/types.ts +1 -0
  59. package/src/theme/global/typography.ts +4 -1
  60. package/types/components/Alert/index.d.ts +1 -0
  61. package/types/components/List/ListItem.d.ts +2 -2
  62. package/types/components/Select/{StyledOptionList.d.ts → BaseOptionList.d.ts} +3 -3
  63. package/types/components/Select/MultiSelect/Option.d.ts +2 -1
  64. package/types/components/Select/SingleSelect/Option.d.ts +2 -1
  65. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -0
  66. package/types/components/Select/StyledSelect.d.ts +3 -6
  67. package/types/components/Select/types.d.ts +1 -0
  68. package/types/components/Toast/ToastProvider.d.ts +1 -1
  69. package/types/components/Toast/index.d.ts +1 -1
  70. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  71. package/types/components/Typography/Text/index.d.ts +1 -1
  72. package/types/theme/components/bottomSheet.d.ts +0 -1
  73. package/types/theme/components/empty.d.ts +1 -0
  74. package/types/theme/components/select.d.ts +3 -4
  75. package/types/theme/components/typography.d.ts +2 -0
  76. package/types/theme/global/colors/types.d.ts +1 -0
  77. package/types/theme/global/index.d.ts +1 -0
  78. package/types/theme/global/typography.d.ts +1 -0
  79. package/src/components/Select/__tests__/StyledSelect.spec.tsx +0 -14
  80. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +0 -29
package/.eslintrc.js CHANGED
@@ -4,7 +4,8 @@ module.exports = {
4
4
  tsconfigRootDir: __dirname,
5
5
  project: ['./tsconfig.json'],
6
6
  },
7
- extends: ['hd'],
7
+ extends: ['hd', 'plugin:@hero-design/recommendedRn'],
8
+ plugins: ['@hero-design'],
8
9
  rules: {
9
10
  'no-underscore-dangle': [2, { allow: ['__hd__'] }],
10
11
  },
@@ -1,9 +1,9 @@
1
- @hero-design/rn:build: cache hit, replaying output 8ade5cdfeb1cbdab
2
- @hero-design/rn:build: $ yarn build:js && yarn build:types
3
- @hero-design/rn:build: $ rollup -c
4
- @hero-design/rn:build: 
5
- @hero-design/rn:build: src/index.ts → lib/index.js, es/index.js...
6
- @hero-design/rn:build: (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
- @hero-design/rn:build: (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
8
- @hero-design/rn:build: created lib/index.js, es/index.js in 32.3s
9
- @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
1
+ @hero-design/rn:build: cache hit, replaying output d9bdf9ebe573456b
2
+ @hero-design/rn:build: $ yarn build:js && yarn build:types
3
+ @hero-design/rn:build: $ rollup -c
4
+ @hero-design/rn:build: 
5
+ @hero-design/rn:build: src/index.ts → lib/index.js, es/index.js...
6
+ @hero-design/rn:build: (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
+ @hero-design/rn:build: (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
8
+ @hero-design/rn:build: created lib/index.js, es/index.js in 27s
9
+ @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
package/es/index.js CHANGED
@@ -1231,6 +1231,7 @@ var globalPalette = {
1231
1231
  disabledOnDefaultGlobalSurface: palette$6.greyLight30,
1232
1232
  darkGlobalSurface: palette$6.maasstrichtBlue,
1233
1233
  onDarkGlobalSurface: palette$6.white,
1234
+ overlayGlobalSurface: palette$6.black,
1234
1235
  // Outlines
1235
1236
  primaryOutline: palette$6.maasstrichtBlue,
1236
1237
  secondaryOutline: palette$6.greyLight75,
@@ -1416,7 +1417,7 @@ var getFonts = function getFonts(_ref) {
1416
1417
  };
1417
1418
  };
1418
1419
  var getFontSizes = function getFontSizes(baseFontSize) {
1419
- var fontSizes = Array.from(new Array(9));
1420
+ var fontSizes = Array.from(new Array(11));
1420
1421
  fontSizes.forEach(function (_, index) {
1421
1422
  if (index === 0) {
1422
1423
  fontSizes[0] = baseFontSize;
@@ -1426,6 +1427,7 @@ var getFontSizes = function getFontSizes(baseFontSize) {
1426
1427
  return undefined;
1427
1428
  });
1428
1429
  return {
1430
+ '7xlarge': scale(fontSizes[10]),
1429
1431
  xxxxxlarge: scale(fontSizes[8]),
1430
1432
  xxxxlarge: scale(fontSizes[7]),
1431
1433
  xxxlarge: scale(fontSizes[6]),
@@ -1441,6 +1443,7 @@ var getFontSizes = function getFontSizes(baseFontSize) {
1441
1443
  var getLineHeights = function getLineHeights(fontSizes) {
1442
1444
  var additionalSpace = 8;
1443
1445
  return {
1446
+ '7xlarge': fontSizes['7xlarge'] + additionalSpace,
1444
1447
  xxxxxlarge: fontSizes.xxxxxlarge + additionalSpace,
1445
1448
  xxxxlarge: fontSizes.xxxxlarge + additionalSpace,
1446
1449
  xxxlarge: fontSizes.xxxlarge + additionalSpace,
@@ -1706,17 +1709,16 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
1706
1709
  var colors = {
1707
1710
  shadow: theme.colors.primaryOutline,
1708
1711
  background: theme.colors.defaultGlobalSurface,
1709
- backdrop: theme.colors.darkGlobalSurface
1712
+ backdrop: theme.colors.overlayGlobalSurface
1710
1713
  };
1711
1714
  var sizes = {
1712
- sectionHeight: theme.sizes.xxxxxlarge,
1713
1715
  closeIcon: theme.sizes.xxxlarge
1714
1716
  };
1715
1717
  var space = {
1716
1718
  headerWrapperVerticalPadding: theme.space.small,
1717
1719
  headerWrapperHorizontalPadding: theme.space.medium,
1718
1720
  closeIconMargin: theme.space.smallMedium,
1719
- footerVerticalPadding: theme.space.small,
1721
+ footerVerticalPadding: theme.space.xxsmall,
1720
1722
  footerHorizontalPadding: theme.space.smallMedium
1721
1723
  };
1722
1724
  var shadows = {
@@ -1724,8 +1726,8 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
1724
1726
  width: 0,
1725
1727
  height: 3
1726
1728
  },
1727
- opacity: 0.27,
1728
- radius: 4.65,
1729
+ opacity: 0.4,
1730
+ radius: theme.radii.xlarge,
1729
1731
  elevation: 10
1730
1732
  };
1731
1733
  var radii = {
@@ -1964,15 +1966,16 @@ var getEmptyTheme = function getEmptyTheme(theme) {
1964
1966
  var colors = {
1965
1967
  text: theme.colors.onDefaultGlobalSurface,
1966
1968
  invertedText: theme.colors.onDarkGlobalSurface,
1967
- subduedText: theme.colors.disabledOnDefaultGlobalSurface
1969
+ subduedText: theme.colors.mutedOnDefaultGlobalSurface,
1970
+ invertedSubduedText: theme.colors.onDarkGlobalSurface
1968
1971
  };
1969
1972
  var fontSizes = {
1970
- title: theme.fontSizes.xxxxlarge,
1971
- description: theme.fontSizes.large
1973
+ title: theme.fontSizes.xxxlarge,
1974
+ description: theme.fontSizes.xlarge
1972
1975
  };
1973
1976
  var fonts = {
1974
- title: theme.fonts.neutral.semiBold,
1975
- description: theme.fonts.neutral.light
1977
+ title: theme.fonts.playful.semiBold,
1978
+ description: theme.fonts.playful.regular
1976
1979
  };
1977
1980
  return {
1978
1981
  fontSizes: fontSizes,
@@ -1989,7 +1992,7 @@ var getFABTheme = function getFABTheme(theme) {
1989
1992
  icon: theme.colors.onPrimary,
1990
1993
  headerText: theme.colors.onDarkGlobalSurface,
1991
1994
  actionItemBackground: theme.colors.primary,
1992
- backdropBackground: theme.colors.darkGlobalSurface,
1995
+ backdropBackground: theme.colors.overlayGlobalSurface,
1993
1996
  titleText: theme.colors.onDarkGlobalSurface,
1994
1997
  actionItemText: theme.colors.onPrimary
1995
1998
  };
@@ -2303,24 +2306,22 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
2303
2306
  };
2304
2307
 
2305
2308
  var getSelectTheme = function getSelectTheme(theme) {
2306
- var colors = {
2307
- footerText: theme.colors.secondary
2308
- };
2309
2309
  var space = {
2310
2310
  minimumOptionListHeight: theme.space.xxxxlarge * 5,
2311
2311
  sectionSpacing: theme.space.smallMedium,
2312
2312
  optionSpacing: theme.space.xsmall,
2313
- optionHorizontalMargin: theme.space.smallMedium,
2313
+ optionListHorizontalPadding: theme.space.smallMedium,
2314
2314
  searchBarMarginTopSpacing: theme.space.small,
2315
2315
  searchBarHorizontalSpacing: theme.space.medium,
2316
- searchBarBottomSpacing: theme.space.small
2316
+ searchBarBottomSpacing: theme.space.small,
2317
+ singleSelectContentPaddingBottom: theme.space.medium,
2318
+ suffixMarginRight: theme.space.smallMedium
2317
2319
  };
2318
2320
  var radii = {
2319
2321
  option: theme.radii.base
2320
2322
  };
2321
2323
  return {
2322
2324
  space: space,
2323
- colors: colors,
2324
2325
  radii: radii
2325
2326
  };
2326
2327
  };
@@ -2689,7 +2690,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
2689
2690
  large: theme.fontSizes.large,
2690
2691
  xlarge: theme.fontSizes.xlarge,
2691
2692
  xxxlarge: theme.fontSizes.xxxlarge,
2692
- xxxxxlarge: theme.fontSizes.xxxxxlarge
2693
+ xxxxxlarge: theme.fontSizes.xxxxxlarge,
2694
+ '7xlarge': theme.fontSizes['7xlarge']
2693
2695
  };
2694
2696
  var lineHeights = {
2695
2697
  small: theme.lineHeights.small,
@@ -2697,7 +2699,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
2697
2699
  large: theme.lineHeights.large,
2698
2700
  xlarge: theme.lineHeights.xlarge,
2699
2701
  xxxlarge: theme.lineHeights.xxxlarge,
2700
- xxxxxlarge: theme.lineHeights.xxxxxlarge
2702
+ xxxxxlarge: theme.lineHeights.xxxxxlarge,
2703
+ '7xlarge': theme.lineHeights['7xlarge']
2701
2704
  };
2702
2705
  return {
2703
2706
  colors: colors,
@@ -7044,7 +7047,7 @@ var StyledBackdrop$2 = index$a(AnimatedPressable$1)(function (_ref2) {
7044
7047
  var theme = _ref2.theme;
7045
7048
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
7046
7049
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
7047
- opacity: 0.48
7050
+ opacity: 0.4
7048
7051
  });
7049
7052
  });
7050
7053
  var StyledHeaderWrapper = index$a(View)(function (_ref3) {
@@ -7064,7 +7067,6 @@ var StyledFooter = index$a(View)(function (_ref4) {
7064
7067
  return {
7065
7068
  paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
7066
7069
  paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
7067
- minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
7068
7070
  alignItems: 'center',
7069
7071
  justifyContent: 'flex-end',
7070
7072
  flexDirection: 'row'
@@ -7597,7 +7599,7 @@ var Header = function Header(_ref) {
7597
7599
  onPress: onRequestClose,
7598
7600
  intent: "text",
7599
7601
  testID: "bottom-sheet-close-icon",
7600
- size: "small"
7602
+ size: "xsmall"
7601
7603
  })) : null), showDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
7602
7604
  };
7603
7605
 
@@ -10795,6 +10797,9 @@ var getVariant$1 = function getVariant(_ref) {
10795
10797
  }
10796
10798
  return 'default';
10797
10799
  };
10800
+ // Fix issue: Placeholder is not shown on iOS when multiline is true
10801
+ // https://github.com/callstack/react-native-paper/pull/3331
10802
+ var EMPTY_PLACEHOLDER_VALUE = ' ';
10798
10803
  var TextInput = function TextInput(_ref2) {
10799
10804
  var _ref3;
10800
10805
  var label = _ref2.label,
@@ -10880,7 +10885,7 @@ var TextInput = function TextInput(_ref2) {
10880
10885
  (_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
10881
10886
  },
10882
10887
  defaultValue: defaultValue,
10883
- placeholder: isFocused || label === undefined ? nativeProps.placeholder : undefined
10888
+ placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
10884
10889
  });
10885
10890
  return /*#__PURE__*/React.createElement(StyledContainer$3, {
10886
10891
  style: style,
@@ -11042,18 +11047,16 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
11042
11047
  return setOpen(false);
11043
11048
  },
11044
11049
  header: label,
11045
- footer: /*#__PURE__*/React.createElement(TouchableOpacity, {
11050
+ footer: /*#__PURE__*/React.createElement(CompoundButton, {
11051
+ variant: "text",
11052
+ text: confirmLabel,
11046
11053
  onPress: function onPress() {
11047
11054
  if (selectingDate) {
11048
11055
  onChange(selectingDate);
11049
11056
  }
11050
11057
  setOpen(false);
11051
11058
  }
11052
- }, /*#__PURE__*/React.createElement(Typography.Text, {
11053
- fontSize: "large",
11054
- fontWeight: "semi-bold",
11055
- intent: "primary"
11056
- }, confirmLabel))
11059
+ })
11057
11060
  }, /*#__PURE__*/React.createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React.createElement(DateTimePicker, {
11058
11061
  testID: "datePickerIOS",
11059
11062
  value: selectingDate,
@@ -11393,7 +11396,7 @@ var StyledDescription = index$a(Text$1)(function (_ref3) {
11393
11396
  fontFamily: theme.__hd__.empty.fonts.description,
11394
11397
  fontSize: theme.__hd__.empty.fontSizes.description,
11395
11398
  textAlign: 'center',
11396
- color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.subduedText
11399
+ color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedSubduedText : theme.__hd__.empty.colors.subduedText
11397
11400
  };
11398
11401
  });
11399
11402
 
@@ -11664,7 +11667,7 @@ var ActionGroup = function ActionGroup(_ref2) {
11664
11667
  });
11665
11668
  var interpolatedBackdropOpacityAnimation = tranlateXAnimation.current.interpolate({
11666
11669
  inputRange: [0, 1],
11667
- outputRange: [0, 0.9]
11670
+ outputRange: [0, 0.4]
11668
11671
  });
11669
11672
  var interpolatedActionGroupOpacityAnimation = tranlateXAnimation.current.interpolate({
11670
11673
  inputRange: [0, 1],
@@ -12818,42 +12821,14 @@ var SectionHeading = function SectionHeading(_ref) {
12818
12821
  }, text)), rightChildren);
12819
12822
  };
12820
12823
 
12821
- var SectionSpacer = index$a(View)(function (_ref) {
12822
- var theme = _ref.theme;
12823
- return {
12824
- marginTop: theme.__hd__.select.space.sectionSpacing
12825
- };
12826
- });
12827
- var OptionSpacer = index$a(View)(function (_ref2) {
12828
- var theme = _ref2.theme;
12829
- return {
12830
- marginTop: theme.__hd__.select.space.optionSpacing
12831
- };
12832
- });
12833
- var FooterText = index$a(Typography.Text)(function (_ref3) {
12834
- var theme = _ref3.theme;
12835
- return {
12836
- color: theme.__hd__.select.colors.footerText
12837
- };
12838
- });
12839
- var StyledSearchBar = index$a(View)(function (_ref4) {
12840
- var theme = _ref4.theme;
12841
- return {
12842
- marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
12843
- paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
12844
- paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
12845
- };
12846
- });
12847
-
12848
12824
  var Footer = function Footer(_ref) {
12849
12825
  var label = _ref.label,
12850
12826
  onPress = _ref.onPress;
12851
- return /*#__PURE__*/React.createElement(TouchableOpacity, {
12827
+ return /*#__PURE__*/React.createElement(CompoundButton, {
12828
+ variant: "text",
12829
+ text: label,
12852
12830
  onPress: onPress
12853
- }, /*#__PURE__*/React.createElement(FooterText, {
12854
- fontSize: "large",
12855
- fontWeight: "semi-bold"
12856
- }, label));
12831
+ });
12857
12832
  };
12858
12833
 
12859
12834
  var isSections = function isSections(options) {
@@ -12918,7 +12893,34 @@ var useKeyboard = function useKeyboard() {
12918
12893
  };
12919
12894
  };
12920
12895
 
12921
- var StyledOptionList = function StyledOptionList(_ref) {
12896
+ var SectionSpacer = index$a(View)(function (_ref) {
12897
+ var theme = _ref.theme;
12898
+ return {
12899
+ marginTop: theme.__hd__.select.space.sectionSpacing
12900
+ };
12901
+ });
12902
+ var OptionSpacer = index$a(View)(function (_ref2) {
12903
+ var theme = _ref2.theme;
12904
+ return {
12905
+ marginTop: theme.__hd__.select.space.optionSpacing
12906
+ };
12907
+ });
12908
+ var StyledSearchBar = index$a(View)(function (_ref3) {
12909
+ var theme = _ref3.theme;
12910
+ return {
12911
+ marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
12912
+ paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
12913
+ paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
12914
+ };
12915
+ });
12916
+ var StyledSectionList = index$a(SectionList)(function (_ref4) {
12917
+ var theme = _ref4.theme;
12918
+ return {
12919
+ paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
12920
+ };
12921
+ });
12922
+
12923
+ var BaseOptionList = function BaseOptionList(_ref) {
12922
12924
  var keyExtractor = _ref.keyExtractor,
12923
12925
  loading = _ref.loading,
12924
12926
  onEndReached = _ref.onEndReached,
@@ -12931,7 +12933,7 @@ var StyledOptionList = function StyledOptionList(_ref) {
12931
12933
  _useState2 = _slicedToArray(_useState, 2),
12932
12934
  onEndReachedCalled = _useState2[0],
12933
12935
  setOnEndReachedCalled = _useState2[1];
12934
- return /*#__PURE__*/React.createElement(SectionList, {
12936
+ return /*#__PURE__*/React.createElement(StyledSectionList, {
12935
12937
  ref: sectionListRef,
12936
12938
  style: _objectSpread2({}, onQueryChange ? {
12937
12939
  height: Dimensions.get('screen').height
@@ -12973,18 +12975,25 @@ var Option$2 = function Option(_ref) {
12973
12975
  _ref$disabled = _ref.disabled,
12974
12976
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
12975
12977
  selected = _ref.selected,
12976
- onPress = _ref.onPress;
12978
+ onPress = _ref.onPress,
12979
+ _ref$highlighted = _ref.highlighted,
12980
+ highlighted = _ref$highlighted === void 0 ? false : _ref$highlighted;
12977
12981
  var theme = useTheme();
12978
- return /*#__PURE__*/React.createElement(List.BasicItem, {
12982
+ var props = {
12979
12983
  selected: selected,
12980
12984
  disabled: disabled,
12981
12985
  onPress: onPress,
12982
12986
  title: text,
12983
- suffix: selected ? 'checkmark' : undefined,
12984
- style: {
12985
- marginHorizontal: theme.__hd__.select.space.optionHorizontalMargin
12986
- }
12987
- });
12987
+ suffix: selected === true ? /*#__PURE__*/React.createElement(Icon, {
12988
+ icon: "checkmark",
12989
+ intent: disabled ? 'disabled-text' : 'primary',
12990
+ size: "small",
12991
+ style: {
12992
+ marginRight: theme.__hd__.select.space.suffixMarginRight
12993
+ }
12994
+ }) : undefined
12995
+ };
12996
+ return highlighted === true ? /*#__PURE__*/React.createElement(List.Item, props) : /*#__PURE__*/React.createElement(List.BasicItem, props);
12988
12997
  };
12989
12998
 
12990
12999
  var OptionList$1 = function OptionList(_ref) {
@@ -13016,10 +13025,11 @@ var OptionList$1 = function OptionList(_ref) {
13016
13025
  selected: selected,
13017
13026
  text: item.text,
13018
13027
  disabled: item.disabled,
13019
- onPress: onItemPress
13028
+ onPress: onItemPress,
13029
+ highlighted: item.highlighted
13020
13030
  });
13021
13031
  };
13022
- return /*#__PURE__*/React.createElement(StyledOptionList, {
13032
+ return /*#__PURE__*/React.createElement(BaseOptionList, {
13023
13033
  keyExtractor: keyExtractor,
13024
13034
  loading: loading,
13025
13035
  onEndReached: onEndReached,
@@ -13074,6 +13084,9 @@ function MultiSelect(_ref) {
13074
13084
  }).map(function (opt) {
13075
13085
  return opt.text;
13076
13086
  }).join(', ');
13087
+ useDeprecation("Select's onDimiss is deprecated and will be removed in the next major release. Please use onDismiss instead.", onDimiss !== undefined);
13088
+ useDeprecation("Select's numberOfLines is deprecated and will be removed in the next major release. Please use inputProps.numberOfLines instead.", numberOfLines !== undefined);
13089
+ useDeprecation("Select's inputProps.required is deprecated and will be removed in the next major release. Please use Select's required prop instead.", (inputProps === null || inputProps === void 0 ? void 0 : inputProps.required) !== undefined);
13077
13090
  useEffect(function () {
13078
13091
  setSelectingValue(value);
13079
13092
  }, [open]);
@@ -13158,19 +13171,25 @@ var Option$1 = function Option(_ref) {
13158
13171
  _ref$disabled = _ref.disabled,
13159
13172
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
13160
13173
  selected = _ref.selected,
13161
- onPress = _ref.onPress;
13162
- var theme = useTheme();
13163
- return /*#__PURE__*/React.createElement(List.BasicItem, {
13174
+ onPress = _ref.onPress,
13175
+ _ref$highlighted = _ref.highlighted,
13176
+ highlighted = _ref$highlighted === void 0 ? false : _ref$highlighted;
13177
+ var props = {
13164
13178
  selected: selected,
13165
13179
  disabled: disabled,
13166
13180
  onPress: onPress,
13167
- title: text,
13168
- style: {
13169
- marginHorizontal: theme.__hd__.select.space.optionHorizontalMargin
13170
- }
13171
- });
13181
+ title: text
13182
+ };
13183
+ return highlighted === true ? /*#__PURE__*/React.createElement(List.Item, props) : /*#__PURE__*/React.createElement(List.BasicItem, props);
13172
13184
  };
13173
13185
 
13186
+ var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
13187
+ var theme = _ref.theme;
13188
+ return {
13189
+ paddingBottom: theme.__hd__.select.space.singleSelectContentPaddingBottom
13190
+ };
13191
+ });
13192
+
13174
13193
  var OptionList = function OptionList(_ref) {
13175
13194
  var keyExtractor = _ref.keyExtractor,
13176
13195
  loading = _ref.loading,
@@ -13198,7 +13217,8 @@ var OptionList = function OptionList(_ref) {
13198
13217
  selected: selected,
13199
13218
  text: item.text,
13200
13219
  disabled: item.disabled,
13201
- onPress: onItemPress
13220
+ onPress: onItemPress,
13221
+ highlighted: item.highlighted
13202
13222
  });
13203
13223
  };
13204
13224
  return /*#__PURE__*/React.createElement(StyledOptionList, {
@@ -13250,6 +13270,9 @@ var SingleSelect = function SingleSelect(_ref) {
13250
13270
  var displayedValue = (_flatOptions$find = flatOptions.find(function (opt) {
13251
13271
  return value === opt.value;
13252
13272
  })) === null || _flatOptions$find === void 0 ? void 0 : _flatOptions$find.text;
13273
+ useDeprecation("Select's onDimiss is deprecated and will be removed in the next major release. Please use onDismiss instead.", onDimiss !== undefined);
13274
+ useDeprecation("Select's numberOfLines is deprecated and will be removed in the next major release. Please use inputProps.numberOfLines instead.", numberOfLines !== undefined);
13275
+ useDeprecation("Select's inputProps.required is deprecated and will be removed in the next major release. Please use Select's required prop instead.", (inputProps === null || inputProps === void 0 ? void 0 : inputProps.required) !== undefined);
13253
13276
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(View, {
13254
13277
  pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
13255
13278
  }, /*#__PURE__*/React.createElement(TouchableOpacity, {
@@ -13665,7 +13688,9 @@ var getTabItem$1 = function getTabItem(_ref) {
13665
13688
  icon: item,
13666
13689
  testID: "hero-icon-".concat(item),
13667
13690
  size: "small",
13668
- intent: active ? 'info' : 'text'
13691
+ style: {
13692
+ color: color
13693
+ }
13669
13694
  });
13670
13695
  }
13671
13696
  if (typeof item === 'string') {
@@ -14014,7 +14039,7 @@ var Tag = function Tag(_ref) {
14014
14039
  style = _ref.style,
14015
14040
  testID = _ref.testID,
14016
14041
  nativeProps = _objectWithoutProperties(_ref, _excluded);
14017
- useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use other intents instead.", intent !== 'default');
14042
+ useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent === 'default');
14018
14043
  return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
14019
14044
  themeIntent: intent,
14020
14045
  themeVariant: variant,
@@ -14138,18 +14163,16 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
14138
14163
  return setOpen(false);
14139
14164
  },
14140
14165
  header: label,
14141
- footer: /*#__PURE__*/React.createElement(TouchableOpacity, {
14166
+ footer: /*#__PURE__*/React.createElement(CompoundButton, {
14167
+ variant: "text",
14168
+ text: confirmLabel,
14142
14169
  onPress: function onPress() {
14143
14170
  if (selectingDate) {
14144
14171
  onChange(selectingDate);
14145
14172
  }
14146
14173
  setOpen(false);
14147
14174
  }
14148
- }, /*#__PURE__*/React.createElement(Typography.Text, {
14149
- fontSize: "large",
14150
- fontWeight: "semi-bold",
14151
- intent: "primary"
14152
- }, confirmLabel))
14175
+ })
14153
14176
  }, /*#__PURE__*/React.createElement(StyledPickerWrapper, null, /*#__PURE__*/React.createElement(DateTimePicker, {
14154
14177
  testID: "timePickerIOS",
14155
14178
  value: selectingDate,
@@ -14370,7 +14393,7 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
14370
14393
  var _ref2$displayType = _ref2.displayType,
14371
14394
  displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
14372
14395
  _ref2$position = _ref2.position,
14373
- position = _ref2$position === void 0 ? 'top' : _ref2$position,
14396
+ position = _ref2$position === void 0 ? 'bottom' : _ref2$position,
14374
14397
  style = _ref2.style;
14375
14398
  var theme = useTheme$1();
14376
14399
  var _useState = useState([]),
@@ -14433,8 +14456,9 @@ var ToastProvider = function ToastProvider(_ref) {
14433
14456
  var children = _ref.children,
14434
14457
  _ref$displayType = _ref.displayType,
14435
14458
  displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType,
14436
- _ref$position = _ref.position,
14437
- position = _ref$position === void 0 ? 'top' : _ref$position;
14459
+ _position = _ref.position;
14460
+ var position = _position === undefined ? 'bottom' : _position;
14461
+ useDeprecation("Toast's position prop is deprecated and will be removed in the next major release.\nPlease remove it.", _position !== undefined);
14438
14462
  var toastRef = useRef(null);
14439
14463
  // @ts-expect-error: TODO: @tungv Fix this type error
14440
14464
  var _useState = useState(null),