react-native-ui-lib 8.2.1 → 8.2.2-snapshot.7685

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 (125) hide show
  1. package/lib/components/HighlighterOverlayView/index.d.ts +2 -2
  2. package/lib/components/HighlighterOverlayView/index.web.d.ts +2 -2
  3. package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardViewBase.d.ts +1 -1
  4. package/lib/components/Keyboard/KeyboardAccessoryView/index.d.ts +2 -2
  5. package/lib/components/Keyboard/KeyboardAccessoryView/index.js +3 -1
  6. package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.js +3 -1
  7. package/lib/components/Keyboard/KeyboardTrackingView/index.d.ts +6 -2
  8. package/lib/components/Keyboard/KeyboardTrackingView/index.js +5 -4
  9. package/lib/components/Keyboard/index.d.ts +2 -1
  10. package/lib/package.json +4 -5
  11. package/package.json +19 -21
  12. package/scripts/release/prReleaseNotesCommon.js +12 -5
  13. package/src/commons/asBaseComponent.js +2 -1
  14. package/src/commons/baseComponent.js +0 -8
  15. package/src/commons/forwardRef.js +1 -4
  16. package/src/commons/modifiers.d.ts +0 -6
  17. package/src/commons/modifiers.js +0 -18
  18. package/src/commons/withScrollEnabler.js +0 -4
  19. package/src/commons/withScrollReached.js +0 -4
  20. package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +0 -7
  21. package/src/components/KeyboardAwareScrollView/KeyboardAwareFlatList.js +0 -6
  22. package/src/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +0 -6
  23. package/src/components/WheelPicker/WheelPicker.driver.d.ts +2 -2
  24. package/src/components/WheelPicker/index.d.ts +2 -2
  25. package/src/components/WheelPicker/index.js +1 -1
  26. package/src/components/WheelPicker/usePresenter.d.ts +1 -1
  27. package/src/components/actionSheet/index.d.ts +1 -1
  28. package/src/components/animatedImage/index.d.ts +1 -1
  29. package/src/components/animatedScanner/index.js +0 -37
  30. package/src/components/avatar/index.d.ts +1 -1
  31. package/src/components/badge/index.d.ts +4 -4
  32. package/src/components/baseInput/index.d.ts +0 -1
  33. package/src/components/baseInput/index.js +1 -49
  34. package/src/components/button/index.d.ts +4 -4
  35. package/src/components/button/types.d.ts +2 -2
  36. package/src/components/carousel/index.d.ts +8 -8
  37. package/src/components/carousel/types.d.ts +4 -1
  38. package/src/components/carousel/types.js +0 -2
  39. package/src/components/checkbox/index.d.ts +1 -1
  40. package/src/components/chip/index.d.ts +1 -1
  41. package/src/components/colorPalette/index.d.ts +1 -1
  42. package/src/components/dateTimePicker/index.d.ts +2 -2
  43. package/src/components/dateTimePicker/index.js +2 -2
  44. package/src/components/dialog/types.d.ts +4 -4
  45. package/src/components/drawer/index.d.ts +1 -1
  46. package/src/components/expandableSection/index.d.ts +2 -2
  47. package/src/components/fadedScrollView/index.js +1 -1
  48. package/src/components/featureHighlight/index.js +5 -7
  49. package/src/components/floatingButton/index.js +2 -2
  50. package/src/components/gridListItem/index.d.ts +7 -7
  51. package/src/components/gridListItem/index.js +1 -1
  52. package/src/components/gridView/index.d.ts +1 -1
  53. package/src/components/hint/HintBubble.d.ts +1 -1
  54. package/src/components/hint/HintOld.d.ts +10 -10
  55. package/src/components/hint/hooks/useHintLayout.d.ts +1 -1
  56. package/src/components/hint/index.d.ts +2 -2
  57. package/src/components/hint/types.d.ts +2 -2
  58. package/src/components/icon/index.js +0 -3
  59. package/src/components/image/index.d.ts +1 -1
  60. package/src/components/image/index.js +20 -17
  61. package/src/components/loaderScreen/index.d.ts +1 -1
  62. package/src/components/loaderScreen/types.d.ts +1 -1
  63. package/src/components/maskedInput/index.d.ts +21 -4
  64. package/src/components/maskedInput/index.js +78 -16
  65. package/src/components/maskedInput/maskedInput.api.json +0 -1
  66. package/src/components/modal/index.d.ts +3 -3
  67. package/src/components/numberInput/index.js +2 -2
  68. package/src/components/overlay/index.d.ts +1 -1
  69. package/src/components/picker/PickerDialog.android.js +0 -15
  70. package/src/components/picker/PickerDialog.js +0 -7
  71. package/src/components/picker/helpers/useImperativePickerHandle.d.ts +1 -1
  72. package/src/components/picker/helpers/useImperativePickerHandle.js +1 -1
  73. package/src/components/picker/types.d.ts +9 -9
  74. package/src/components/progressBar/index.d.ts +2 -2
  75. package/src/components/scrollBar/index.d.ts +11 -4
  76. package/src/components/searchInput/index.js +1 -1
  77. package/src/components/searchInput/types.d.ts +2 -2
  78. package/src/components/sectionsWheelPicker/SectionsWheelPicker.driver.d.ts +2 -2
  79. package/src/components/skeletonView/index.d.ts +4 -4
  80. package/src/components/slider/Thumb.d.ts +1 -1
  81. package/src/components/slider/types.d.ts +1 -1
  82. package/src/components/stackAggregator/index.d.ts +1 -1
  83. package/src/components/tabController/TabBarItem.d.ts +2 -2
  84. package/src/components/tabController/TabBarItem.js +1 -1
  85. package/src/components/tabController/TabPage.d.ts +2 -2
  86. package/src/components/tabController/useScrollToItem.d.ts +1 -1
  87. package/src/components/text/Text.driver.d.ts +1 -1
  88. package/src/components/textArea/index.js +0 -6
  89. package/src/components/textField/types.d.ts +4 -4
  90. package/src/components/textField/useImperativeInputHandle.d.ts +1 -1
  91. package/src/components/textField/useImperativeInputHandle.js +1 -1
  92. package/src/components/textField/usePreset.d.ts +20 -20
  93. package/src/components/timeline/index.js +1 -1
  94. package/src/components/toast/index.js +0 -69
  95. package/src/components/view/index.js +2 -5
  96. package/src/components/wizard/index.d.ts +1 -1
  97. package/src/components/wizard/types.d.ts +1 -1
  98. package/src/components/wizard/wizard.api.json +1 -1
  99. package/src/hooks/useCombinedRefs/index.js +1 -2
  100. package/src/hooks/useDebounce/index.js +1 -1
  101. package/src/hooks/useHiddenLocation/index.js +2 -2
  102. package/src/hooks/useHiddenLocation/index.web.js +2 -2
  103. package/src/hooks/useMeasure/index.d.ts +1 -1
  104. package/src/hooks/useMeasure/index.js +1 -1
  105. package/src/hooks/useScrollTo/index.d.ts +2 -2
  106. package/src/incubator/calendar/index.js +1 -1
  107. package/src/incubator/calendar/types.d.ts +2 -2
  108. package/src/incubator/expandableOverlay/index.d.ts +2 -2
  109. package/src/incubator/slider/Track.d.ts +1 -1
  110. package/src/incubator/slider/index.d.ts +1 -1
  111. package/src/incubator/toast/helpers/useToastTimer.js +1 -1
  112. package/src/incubator/toast/index.js +1 -1
  113. package/src/incubator/toast/types.d.ts +2 -2
  114. package/src/testkit/Component.driver.d.ts +1 -1
  115. package/src/testkit/drivers/TestingLibraryDriver.d.ts +1 -1
  116. package/src/typings/module.d.ts +12 -3
  117. package/ReactNativeUiLib.podspec +0 -22
  118. package/src/components/maskedInput/new.d.ts +0 -22
  119. package/src/components/maskedInput/new.js +0 -85
  120. package/src/components/maskedInput/old.js +0 -95
  121. package/src/components/textFieldOld/index.d.ts +0 -71
  122. package/src/components/textFieldOld/index.js +0 -807
  123. package/src/helpers/DocsGenerator.js +0 -61
  124. package/textFieldOld.d.ts +0 -2
  125. package/textFieldOld.js +0 -1
@@ -3,11 +3,8 @@ import _isString from "lodash/isString";
3
3
  import _isFunction from "lodash/isFunction";
4
4
  import _isArray from "lodash/isArray";
5
5
  import _get from "lodash/get";
6
- import _invoke from "lodash/invoke";
7
- import _values from "lodash/values"; // @ts-nocheck
8
- import PropTypes from 'prop-types';
6
+ import _invoke from "lodash/invoke"; // @ts-nocheck
9
7
  import 'react';
10
- import { ViewPropTypes, TextInputPropTypes } from 'deprecated-react-native-prop-types';
11
8
  import { Colors, Typography } from "../../style";
12
9
  import { BaseComponent } from "../../commons";
13
10
  import Validators from "./Validators";
@@ -20,51 +17,6 @@ const VALIDATORS = {
20
17
  };
21
18
  export default class BaseInput extends BaseComponent {
22
19
  static displayName = 'BaseInput';
23
- static propTypes = {
24
- ...TextInputPropTypes,
25
- // ...BaseComponent.propTypes,
26
- /**
27
- * text color
28
- */
29
- color: PropTypes.string,
30
- /**
31
- * text input container style
32
- */
33
- containerStyle: ViewPropTypes.style,
34
- /**
35
- * validator type or custom validator function
36
- */
37
- validate: PropTypes.oneOfType([PropTypes.oneOf(_values(VALIDATORS)),
38
- // enum
39
- PropTypes.func,
40
- // custom
41
- PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(_values(VALIDATORS)), PropTypes.func])) // array of validators
42
- ]),
43
- /**
44
- * Whether to mark required field with an asterisk
45
- */
46
- markRequired: PropTypes.bool,
47
- /**
48
- * the message to be displayed when the validation fails
49
- */
50
- errorMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
51
- /**
52
- * whether to run the validation on mount
53
- */
54
- validateOnStart: PropTypes.bool,
55
- /**
56
- * whether to run the validation on text changed
57
- */
58
- validateOnChange: PropTypes.bool,
59
- /**
60
- * whether to run the validation on blur
61
- */
62
- validateOnBlur: PropTypes.bool,
63
- /**
64
- * callback for validity change
65
- */
66
- onChangeValidity: PropTypes.func
67
- };
68
20
  static defaultProps = {
69
21
  validateOnBlur: true
70
22
  };
@@ -448,7 +448,7 @@ export { Button };
448
448
  declare const _default: React.ForwardRefExoticComponent<((import("../touchableOpacity").TouchableOpacityProps & Partial<Record<"text10" | "text20" | "text30" | "text40" | "text50" | "text60" | "text65" | "text70" | "text80" | "text90" | "text100" | "text10T" | "text10L" | "text10R" | "text10M" | "text10BO" | "text10H" | "text10BL" | "text20T" | "text20L" | "text20R" | "text20M" | "text20BO" | "text20H" | "text20BL" | "text30T" | "text30L" | "text30R" | "text30M" | "text30BO" | "text30H" | "text30BL" | "text40T" | "text40L" | "text40R" | "text40M" | "text40BO" | "text40H" | "text40BL" | "text50T" | "text50L" | "text50R" | "text50M" | "text50BO" | "text50H" | "text50BL" | "text60T" | "text60L" | "text60R" | "text60M" | "text60BO" | "text60H" | "text60BL" | "text65T" | "text65L" | "text65R" | "text65M" | "text65BO" | "text65H" | "text65BL" | "text70T" | "text70L" | "text70R" | "text70M" | "text70BO" | "text70H" | "text70BL" | "text80T" | "text80L" | "text80R" | "text80M" | "text80BO" | "text80H" | "text80BL" | "text90T" | "text90L" | "text90R" | "text90M" | "text90BO" | "text90H" | "text90BL" | "text100T" | "text100L" | "text100R" | "text100M" | "text100BO" | "text100H" | "text100BL", boolean>> & Partial<Record<"transparent" | "black" | "white" | "dark" | "$backgroundDefault" | "$backgroundElevated" | "$backgroundElevatedLight" | "$backgroundNeutralHeavy" | "$backgroundNeutralIdle" | "$backgroundNeutralMedium" | "$backgroundNeutral" | "$backgroundNeutralLight" | "$backgroundPrimaryHeavy" | "$backgroundPrimaryMedium" | "$backgroundPrimaryLight" | "$backgroundGeneralHeavy" | "$backgroundGeneralMedium" | "$backgroundGeneralLight" | "$backgroundSuccessHeavy" | "$backgroundSuccessLight" | "$backgroundWarningHeavy" | "$backgroundWarningLight" | "$backgroundMajorLight" | "$backgroundMajorHeavy" | "$backgroundDangerHeavy" | "$backgroundDangerLight" | "$backgroundDisabled" | "$backgroundDark" | "$backgroundDarkElevated" | "$backgroundDarkActive" | "$backgroundInverted" | "$textDisabled" | "$textDefault" | "$textNeutralHeavy" | "$textNeutral" | "$textNeutralLight" | "$textDefaultLight" | "$textPrimary" | "$textGeneral" | "$textSuccess" | "$textSuccessLight" | "$textMajor" | "$textDanger" | "$textDangerLight" | "$iconDefault" | "$iconNeutral" | "$iconDefaultLight" | "$iconPrimary" | "$iconPrimaryLight" | "$iconGeneral" | "$iconGeneralLight" | "$iconSuccess" | "$iconSuccessLight" | "$iconMajor" | "$iconDanger" | "$iconDangerLight" | "$iconDisabled" | "$outlineDefault" | "$outlineDisabled" | "$outlineDisabledHeavy" | "$outlineNeutral" | "$outlineNeutralHeavy" | "$outlinePrimary" | "$outlinePrimaryMedium" | "$outlineGeneral" | "$outlineWarning" | "$outlineDanger" | "$outlineInverted" | "$black" | "$white" | "grey1" | "grey5" | "grey10" | "grey20" | "grey30" | "grey40" | "grey50" | "grey60" | "grey70" | "grey80" | "blue1" | "blue5" | "blue10" | "blue20" | "blue30" | "blue40" | "blue50" | "blue60" | "blue70" | "blue80" | "cyan10" | "cyan20" | "cyan30" | "cyan40" | "cyan50" | "cyan60" | "cyan70" | "cyan80" | "green1" | "green5" | "green10" | "green20" | "green30" | "green40" | "green50" | "green60" | "green70" | "green80" | "yellow1" | "yellow5" | "yellow10" | "yellow20" | "yellow30" | "yellow40" | "yellow50" | "yellow60" | "yellow70" | "yellow80" | "orange1" | "orange5" | "orange10" | "orange20" | "orange30" | "orange40" | "orange50" | "orange60" | "orange70" | "orange80" | "red1" | "red5" | "red10" | "red20" | "red30" | "red40" | "red50" | "red60" | "red70" | "red80" | "purple1" | "purple5" | "purple10" | "purple20" | "purple30" | "purple40" | "purple50" | "purple60" | "purple70" | "purple80" | "violet1" | "violet5" | "violet10" | "violet20" | "violet30" | "violet40" | "violet50" | "violet60" | "violet70" | "violet80", boolean>> & Partial<Record<"bg-transparent" | "bg-black" | "bg-white" | "bg-dark" | "bg-$backgroundDefault" | "bg-$backgroundElevated" | "bg-$backgroundElevatedLight" | "bg-$backgroundNeutralHeavy" | "bg-$backgroundNeutralIdle" | "bg-$backgroundNeutralMedium" | "bg-$backgroundNeutral" | "bg-$backgroundNeutralLight" | "bg-$backgroundPrimaryHeavy" | "bg-$backgroundPrimaryMedium" | "bg-$backgroundPrimaryLight" | "bg-$backgroundGeneralHeavy" | "bg-$backgroundGeneralMedium" | "bg-$backgroundGeneralLight" | "bg-$backgroundSuccessHeavy" | "bg-$backgroundSuccessLight" | "bg-$backgroundWarningHeavy" | "bg-$backgroundWarningLight" | "bg-$backgroundMajorLight" | "bg-$backgroundMajorHeavy" | "bg-$backgroundDangerHeavy" | "bg-$backgroundDangerLight" | "bg-$backgroundDisabled" | "bg-$backgroundDark" | "bg-$backgroundDarkElevated" | "bg-$backgroundDarkActive" | "bg-$backgroundInverted" | "bg-$textDisabled" | "bg-$textDefault" | "bg-$textNeutralHeavy" | "bg-$textNeutral" | "bg-$textNeutralLight" | "bg-$textDefaultLight" | "bg-$textPrimary" | "bg-$textGeneral" | "bg-$textSuccess" | "bg-$textSuccessLight" | "bg-$textMajor" | "bg-$textDanger" | "bg-$textDangerLight" | "bg-$iconDefault" | "bg-$iconNeutral" | "bg-$iconDefaultLight" | "bg-$iconPrimary" | "bg-$iconPrimaryLight" | "bg-$iconGeneral" | "bg-$iconGeneralLight" | "bg-$iconSuccess" | "bg-$iconSuccessLight" | "bg-$iconMajor" | "bg-$iconDanger" | "bg-$iconDangerLight" | "bg-$iconDisabled" | "bg-$outlineDefault" | "bg-$outlineDisabled" | "bg-$outlineDisabledHeavy" | "bg-$outlineNeutral" | "bg-$outlineNeutralHeavy" | "bg-$outlinePrimary" | "bg-$outlinePrimaryMedium" | "bg-$outlineGeneral" | "bg-$outlineWarning" | "bg-$outlineDanger" | "bg-$outlineInverted" | "bg-$black" | "bg-$white" | "bg-grey1" | "bg-grey5" | "bg-grey10" | "bg-grey20" | "bg-grey30" | "bg-grey40" | "bg-grey50" | "bg-grey60" | "bg-grey70" | "bg-grey80" | "bg-blue1" | "bg-blue5" | "bg-blue10" | "bg-blue20" | "bg-blue30" | "bg-blue40" | "bg-blue50" | "bg-blue60" | "bg-blue70" | "bg-blue80" | "bg-cyan10" | "bg-cyan20" | "bg-cyan30" | "bg-cyan40" | "bg-cyan50" | "bg-cyan60" | "bg-cyan70" | "bg-cyan80" | "bg-green1" | "bg-green5" | "bg-green10" | "bg-green20" | "bg-green30" | "bg-green40" | "bg-green50" | "bg-green60" | "bg-green70" | "bg-green80" | "bg-yellow1" | "bg-yellow5" | "bg-yellow10" | "bg-yellow20" | "bg-yellow30" | "bg-yellow40" | "bg-yellow50" | "bg-yellow60" | "bg-yellow70" | "bg-yellow80" | "bg-orange1" | "bg-orange5" | "bg-orange10" | "bg-orange20" | "bg-orange30" | "bg-orange40" | "bg-orange50" | "bg-orange60" | "bg-orange70" | "bg-orange80" | "bg-red1" | "bg-red5" | "bg-red10" | "bg-red20" | "bg-red30" | "bg-red40" | "bg-red50" | "bg-red60" | "bg-red70" | "bg-red80" | "bg-purple1" | "bg-purple5" | "bg-purple10" | "bg-purple20" | "bg-purple30" | "bg-purple40" | "bg-purple50" | "bg-purple60" | "bg-purple70" | "bg-purple80" | "bg-violet1" | "bg-violet5" | "bg-violet10" | "bg-violet20" | "bg-violet30" | "bg-violet40" | "bg-violet50" | "bg-violet60" | "bg-violet70" | "bg-violet80", boolean>> & Partial<Record<"margin" | "marginL" | "marginT" | "marginR" | "marginB" | "marginH" | "marginV", boolean>> & {
449
449
  label?: string | undefined;
450
450
  color?: string | undefined;
451
- iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => JSX.Element) | null;
451
+ iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => React.JSX.Element) | null;
452
452
  iconStyle?: StyleProp<ImageStyle>;
453
453
  iconProps?: Partial<import("../icon").IconProps> | undefined;
454
454
  iconOnRight?: boolean | undefined;
@@ -479,7 +479,7 @@ declare const _default: React.ForwardRefExoticComponent<((import("../touchableOp
479
479
  }) | Omit<import("../touchableOpacity").TouchableOpacityProps & import("../../commons/modifiers").CustomModifier & Partial<Record<"bg-transparent" | "bg-black" | "bg-white" | "bg-dark" | "bg-$backgroundDefault" | "bg-$backgroundElevated" | "bg-$backgroundElevatedLight" | "bg-$backgroundNeutralHeavy" | "bg-$backgroundNeutralIdle" | "bg-$backgroundNeutralMedium" | "bg-$backgroundNeutral" | "bg-$backgroundNeutralLight" | "bg-$backgroundPrimaryHeavy" | "bg-$backgroundPrimaryMedium" | "bg-$backgroundPrimaryLight" | "bg-$backgroundGeneralHeavy" | "bg-$backgroundGeneralMedium" | "bg-$backgroundGeneralLight" | "bg-$backgroundSuccessHeavy" | "bg-$backgroundSuccessLight" | "bg-$backgroundWarningHeavy" | "bg-$backgroundWarningLight" | "bg-$backgroundMajorLight" | "bg-$backgroundMajorHeavy" | "bg-$backgroundDangerHeavy" | "bg-$backgroundDangerLight" | "bg-$backgroundDisabled" | "bg-$backgroundDark" | "bg-$backgroundDarkElevated" | "bg-$backgroundDarkActive" | "bg-$backgroundInverted" | "bg-$textDisabled" | "bg-$textDefault" | "bg-$textNeutralHeavy" | "bg-$textNeutral" | "bg-$textNeutralLight" | "bg-$textDefaultLight" | "bg-$textPrimary" | "bg-$textGeneral" | "bg-$textSuccess" | "bg-$textSuccessLight" | "bg-$textMajor" | "bg-$textDanger" | "bg-$textDangerLight" | "bg-$iconDefault" | "bg-$iconNeutral" | "bg-$iconDefaultLight" | "bg-$iconPrimary" | "bg-$iconPrimaryLight" | "bg-$iconGeneral" | "bg-$iconGeneralLight" | "bg-$iconSuccess" | "bg-$iconSuccessLight" | "bg-$iconMajor" | "bg-$iconDanger" | "bg-$iconDangerLight" | "bg-$iconDisabled" | "bg-$outlineDefault" | "bg-$outlineDisabled" | "bg-$outlineDisabledHeavy" | "bg-$outlineNeutral" | "bg-$outlineNeutralHeavy" | "bg-$outlinePrimary" | "bg-$outlinePrimaryMedium" | "bg-$outlineGeneral" | "bg-$outlineWarning" | "bg-$outlineDanger" | "bg-$outlineInverted" | "bg-$black" | "bg-$white" | "bg-grey1" | "bg-grey5" | "bg-grey10" | "bg-grey20" | "bg-grey30" | "bg-grey40" | "bg-grey50" | "bg-grey60" | "bg-grey70" | "bg-grey80" | "bg-blue1" | "bg-blue5" | "bg-blue10" | "bg-blue20" | "bg-blue30" | "bg-blue40" | "bg-blue50" | "bg-blue60" | "bg-blue70" | "bg-blue80" | "bg-cyan10" | "bg-cyan20" | "bg-cyan30" | "bg-cyan40" | "bg-cyan50" | "bg-cyan60" | "bg-cyan70" | "bg-cyan80" | "bg-green1" | "bg-green5" | "bg-green10" | "bg-green20" | "bg-green30" | "bg-green40" | "bg-green50" | "bg-green60" | "bg-green70" | "bg-green80" | "bg-yellow1" | "bg-yellow5" | "bg-yellow10" | "bg-yellow20" | "bg-yellow30" | "bg-yellow40" | "bg-yellow50" | "bg-yellow60" | "bg-yellow70" | "bg-yellow80" | "bg-orange1" | "bg-orange5" | "bg-orange10" | "bg-orange20" | "bg-orange30" | "bg-orange40" | "bg-orange50" | "bg-orange60" | "bg-orange70" | "bg-orange80" | "bg-red1" | "bg-red5" | "bg-red10" | "bg-red20" | "bg-red30" | "bg-red40" | "bg-red50" | "bg-red60" | "bg-red70" | "bg-red80" | "bg-purple1" | "bg-purple5" | "bg-purple10" | "bg-purple20" | "bg-purple30" | "bg-purple40" | "bg-purple50" | "bg-purple60" | "bg-purple70" | "bg-purple80" | "bg-violet1" | "bg-violet5" | "bg-violet10" | "bg-violet20" | "bg-violet30" | "bg-violet40" | "bg-violet50" | "bg-violet60" | "bg-violet70" | "bg-violet80", boolean>> & Partial<Record<"margin" | "marginL" | "marginT" | "marginR" | "marginB" | "marginH" | "marginV", boolean>> & {
480
480
  label?: string | undefined;
481
481
  color?: string | undefined;
482
- iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => JSX.Element) | null;
482
+ iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => React.JSX.Element) | null;
483
483
  iconStyle?: StyleProp<ImageStyle>;
484
484
  iconProps?: Partial<import("../icon").IconProps> | undefined;
485
485
  iconOnRight?: boolean | undefined;
@@ -510,7 +510,7 @@ declare const _default: React.ForwardRefExoticComponent<((import("../touchableOp
510
510
  }, "ref"> | Omit<import("../touchableOpacity").TouchableOpacityProps & import("../../commons/modifiers").CustomModifier & Partial<Record<"transparent" | "black" | "white" | "dark" | "$backgroundDefault" | "$backgroundElevated" | "$backgroundElevatedLight" | "$backgroundNeutralHeavy" | "$backgroundNeutralIdle" | "$backgroundNeutralMedium" | "$backgroundNeutral" | "$backgroundNeutralLight" | "$backgroundPrimaryHeavy" | "$backgroundPrimaryMedium" | "$backgroundPrimaryLight" | "$backgroundGeneralHeavy" | "$backgroundGeneralMedium" | "$backgroundGeneralLight" | "$backgroundSuccessHeavy" | "$backgroundSuccessLight" | "$backgroundWarningHeavy" | "$backgroundWarningLight" | "$backgroundMajorLight" | "$backgroundMajorHeavy" | "$backgroundDangerHeavy" | "$backgroundDangerLight" | "$backgroundDisabled" | "$backgroundDark" | "$backgroundDarkElevated" | "$backgroundDarkActive" | "$backgroundInverted" | "$textDisabled" | "$textDefault" | "$textNeutralHeavy" | "$textNeutral" | "$textNeutralLight" | "$textDefaultLight" | "$textPrimary" | "$textGeneral" | "$textSuccess" | "$textSuccessLight" | "$textMajor" | "$textDanger" | "$textDangerLight" | "$iconDefault" | "$iconNeutral" | "$iconDefaultLight" | "$iconPrimary" | "$iconPrimaryLight" | "$iconGeneral" | "$iconGeneralLight" | "$iconSuccess" | "$iconSuccessLight" | "$iconMajor" | "$iconDanger" | "$iconDangerLight" | "$iconDisabled" | "$outlineDefault" | "$outlineDisabled" | "$outlineDisabledHeavy" | "$outlineNeutral" | "$outlineNeutralHeavy" | "$outlinePrimary" | "$outlinePrimaryMedium" | "$outlineGeneral" | "$outlineWarning" | "$outlineDanger" | "$outlineInverted" | "$black" | "$white" | "grey1" | "grey5" | "grey10" | "grey20" | "grey30" | "grey40" | "grey50" | "grey60" | "grey70" | "grey80" | "blue1" | "blue5" | "blue10" | "blue20" | "blue30" | "blue40" | "blue50" | "blue60" | "blue70" | "blue80" | "cyan10" | "cyan20" | "cyan30" | "cyan40" | "cyan50" | "cyan60" | "cyan70" | "cyan80" | "green1" | "green5" | "green10" | "green20" | "green30" | "green40" | "green50" | "green60" | "green70" | "green80" | "yellow1" | "yellow5" | "yellow10" | "yellow20" | "yellow30" | "yellow40" | "yellow50" | "yellow60" | "yellow70" | "yellow80" | "orange1" | "orange5" | "orange10" | "orange20" | "orange30" | "orange40" | "orange50" | "orange60" | "orange70" | "orange80" | "red1" | "red5" | "red10" | "red20" | "red30" | "red40" | "red50" | "red60" | "red70" | "red80" | "purple1" | "purple5" | "purple10" | "purple20" | "purple30" | "purple40" | "purple50" | "purple60" | "purple70" | "purple80" | "violet1" | "violet5" | "violet10" | "violet20" | "violet30" | "violet40" | "violet50" | "violet60" | "violet70" | "violet80", boolean>> & Partial<Record<"bg-transparent" | "bg-black" | "bg-white" | "bg-dark" | "bg-$backgroundDefault" | "bg-$backgroundElevated" | "bg-$backgroundElevatedLight" | "bg-$backgroundNeutralHeavy" | "bg-$backgroundNeutralIdle" | "bg-$backgroundNeutralMedium" | "bg-$backgroundNeutral" | "bg-$backgroundNeutralLight" | "bg-$backgroundPrimaryHeavy" | "bg-$backgroundPrimaryMedium" | "bg-$backgroundPrimaryLight" | "bg-$backgroundGeneralHeavy" | "bg-$backgroundGeneralMedium" | "bg-$backgroundGeneralLight" | "bg-$backgroundSuccessHeavy" | "bg-$backgroundSuccessLight" | "bg-$backgroundWarningHeavy" | "bg-$backgroundWarningLight" | "bg-$backgroundMajorLight" | "bg-$backgroundMajorHeavy" | "bg-$backgroundDangerHeavy" | "bg-$backgroundDangerLight" | "bg-$backgroundDisabled" | "bg-$backgroundDark" | "bg-$backgroundDarkElevated" | "bg-$backgroundDarkActive" | "bg-$backgroundInverted" | "bg-$textDisabled" | "bg-$textDefault" | "bg-$textNeutralHeavy" | "bg-$textNeutral" | "bg-$textNeutralLight" | "bg-$textDefaultLight" | "bg-$textPrimary" | "bg-$textGeneral" | "bg-$textSuccess" | "bg-$textSuccessLight" | "bg-$textMajor" | "bg-$textDanger" | "bg-$textDangerLight" | "bg-$iconDefault" | "bg-$iconNeutral" | "bg-$iconDefaultLight" | "bg-$iconPrimary" | "bg-$iconPrimaryLight" | "bg-$iconGeneral" | "bg-$iconGeneralLight" | "bg-$iconSuccess" | "bg-$iconSuccessLight" | "bg-$iconMajor" | "bg-$iconDanger" | "bg-$iconDangerLight" | "bg-$iconDisabled" | "bg-$outlineDefault" | "bg-$outlineDisabled" | "bg-$outlineDisabledHeavy" | "bg-$outlineNeutral" | "bg-$outlineNeutralHeavy" | "bg-$outlinePrimary" | "bg-$outlinePrimaryMedium" | "bg-$outlineGeneral" | "bg-$outlineWarning" | "bg-$outlineDanger" | "bg-$outlineInverted" | "bg-$black" | "bg-$white" | "bg-grey1" | "bg-grey5" | "bg-grey10" | "bg-grey20" | "bg-grey30" | "bg-grey40" | "bg-grey50" | "bg-grey60" | "bg-grey70" | "bg-grey80" | "bg-blue1" | "bg-blue5" | "bg-blue10" | "bg-blue20" | "bg-blue30" | "bg-blue40" | "bg-blue50" | "bg-blue60" | "bg-blue70" | "bg-blue80" | "bg-cyan10" | "bg-cyan20" | "bg-cyan30" | "bg-cyan40" | "bg-cyan50" | "bg-cyan60" | "bg-cyan70" | "bg-cyan80" | "bg-green1" | "bg-green5" | "bg-green10" | "bg-green20" | "bg-green30" | "bg-green40" | "bg-green50" | "bg-green60" | "bg-green70" | "bg-green80" | "bg-yellow1" | "bg-yellow5" | "bg-yellow10" | "bg-yellow20" | "bg-yellow30" | "bg-yellow40" | "bg-yellow50" | "bg-yellow60" | "bg-yellow70" | "bg-yellow80" | "bg-orange1" | "bg-orange5" | "bg-orange10" | "bg-orange20" | "bg-orange30" | "bg-orange40" | "bg-orange50" | "bg-orange60" | "bg-orange70" | "bg-orange80" | "bg-red1" | "bg-red5" | "bg-red10" | "bg-red20" | "bg-red30" | "bg-red40" | "bg-red50" | "bg-red60" | "bg-red70" | "bg-red80" | "bg-purple1" | "bg-purple5" | "bg-purple10" | "bg-purple20" | "bg-purple30" | "bg-purple40" | "bg-purple50" | "bg-purple60" | "bg-purple70" | "bg-purple80" | "bg-violet1" | "bg-violet5" | "bg-violet10" | "bg-violet20" | "bg-violet30" | "bg-violet40" | "bg-violet50" | "bg-violet60" | "bg-violet70" | "bg-violet80", boolean>> & Partial<Record<"margin" | "marginL" | "marginT" | "marginR" | "marginB" | "marginH" | "marginV", boolean>> & {
511
511
  label?: string | undefined;
512
512
  color?: string | undefined;
513
- iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => JSX.Element) | null;
513
+ iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => React.JSX.Element) | null;
514
514
  iconStyle?: StyleProp<ImageStyle>;
515
515
  iconProps?: Partial<import("../icon").IconProps> | undefined;
516
516
  iconOnRight?: boolean | undefined;
@@ -541,7 +541,7 @@ declare const _default: React.ForwardRefExoticComponent<((import("../touchableOp
541
541
  }, "ref"> | Omit<import("../touchableOpacity").TouchableOpacityProps & Partial<Record<"text10" | "text20" | "text30" | "text40" | "text50" | "text60" | "text65" | "text70" | "text80" | "text90" | "text100" | "text10T" | "text10L" | "text10R" | "text10M" | "text10BO" | "text10H" | "text10BL" | "text20T" | "text20L" | "text20R" | "text20M" | "text20BO" | "text20H" | "text20BL" | "text30T" | "text30L" | "text30R" | "text30M" | "text30BO" | "text30H" | "text30BL" | "text40T" | "text40L" | "text40R" | "text40M" | "text40BO" | "text40H" | "text40BL" | "text50T" | "text50L" | "text50R" | "text50M" | "text50BO" | "text50H" | "text50BL" | "text60T" | "text60L" | "text60R" | "text60M" | "text60BO" | "text60H" | "text60BL" | "text65T" | "text65L" | "text65R" | "text65M" | "text65BO" | "text65H" | "text65BL" | "text70T" | "text70L" | "text70R" | "text70M" | "text70BO" | "text70H" | "text70BL" | "text80T" | "text80L" | "text80R" | "text80M" | "text80BO" | "text80H" | "text80BL" | "text90T" | "text90L" | "text90R" | "text90M" | "text90BO" | "text90H" | "text90BL" | "text100T" | "text100L" | "text100R" | "text100M" | "text100BO" | "text100H" | "text100BL", boolean>> & import("../../commons/modifiers").CustomModifier & Partial<Record<"bg-transparent" | "bg-black" | "bg-white" | "bg-dark" | "bg-$backgroundDefault" | "bg-$backgroundElevated" | "bg-$backgroundElevatedLight" | "bg-$backgroundNeutralHeavy" | "bg-$backgroundNeutralIdle" | "bg-$backgroundNeutralMedium" | "bg-$backgroundNeutral" | "bg-$backgroundNeutralLight" | "bg-$backgroundPrimaryHeavy" | "bg-$backgroundPrimaryMedium" | "bg-$backgroundPrimaryLight" | "bg-$backgroundGeneralHeavy" | "bg-$backgroundGeneralMedium" | "bg-$backgroundGeneralLight" | "bg-$backgroundSuccessHeavy" | "bg-$backgroundSuccessLight" | "bg-$backgroundWarningHeavy" | "bg-$backgroundWarningLight" | "bg-$backgroundMajorLight" | "bg-$backgroundMajorHeavy" | "bg-$backgroundDangerHeavy" | "bg-$backgroundDangerLight" | "bg-$backgroundDisabled" | "bg-$backgroundDark" | "bg-$backgroundDarkElevated" | "bg-$backgroundDarkActive" | "bg-$backgroundInverted" | "bg-$textDisabled" | "bg-$textDefault" | "bg-$textNeutralHeavy" | "bg-$textNeutral" | "bg-$textNeutralLight" | "bg-$textDefaultLight" | "bg-$textPrimary" | "bg-$textGeneral" | "bg-$textSuccess" | "bg-$textSuccessLight" | "bg-$textMajor" | "bg-$textDanger" | "bg-$textDangerLight" | "bg-$iconDefault" | "bg-$iconNeutral" | "bg-$iconDefaultLight" | "bg-$iconPrimary" | "bg-$iconPrimaryLight" | "bg-$iconGeneral" | "bg-$iconGeneralLight" | "bg-$iconSuccess" | "bg-$iconSuccessLight" | "bg-$iconMajor" | "bg-$iconDanger" | "bg-$iconDangerLight" | "bg-$iconDisabled" | "bg-$outlineDefault" | "bg-$outlineDisabled" | "bg-$outlineDisabledHeavy" | "bg-$outlineNeutral" | "bg-$outlineNeutralHeavy" | "bg-$outlinePrimary" | "bg-$outlinePrimaryMedium" | "bg-$outlineGeneral" | "bg-$outlineWarning" | "bg-$outlineDanger" | "bg-$outlineInverted" | "bg-$black" | "bg-$white" | "bg-grey1" | "bg-grey5" | "bg-grey10" | "bg-grey20" | "bg-grey30" | "bg-grey40" | "bg-grey50" | "bg-grey60" | "bg-grey70" | "bg-grey80" | "bg-blue1" | "bg-blue5" | "bg-blue10" | "bg-blue20" | "bg-blue30" | "bg-blue40" | "bg-blue50" | "bg-blue60" | "bg-blue70" | "bg-blue80" | "bg-cyan10" | "bg-cyan20" | "bg-cyan30" | "bg-cyan40" | "bg-cyan50" | "bg-cyan60" | "bg-cyan70" | "bg-cyan80" | "bg-green1" | "bg-green5" | "bg-green10" | "bg-green20" | "bg-green30" | "bg-green40" | "bg-green50" | "bg-green60" | "bg-green70" | "bg-green80" | "bg-yellow1" | "bg-yellow5" | "bg-yellow10" | "bg-yellow20" | "bg-yellow30" | "bg-yellow40" | "bg-yellow50" | "bg-yellow60" | "bg-yellow70" | "bg-yellow80" | "bg-orange1" | "bg-orange5" | "bg-orange10" | "bg-orange20" | "bg-orange30" | "bg-orange40" | "bg-orange50" | "bg-orange60" | "bg-orange70" | "bg-orange80" | "bg-red1" | "bg-red5" | "bg-red10" | "bg-red20" | "bg-red30" | "bg-red40" | "bg-red50" | "bg-red60" | "bg-red70" | "bg-red80" | "bg-purple1" | "bg-purple5" | "bg-purple10" | "bg-purple20" | "bg-purple30" | "bg-purple40" | "bg-purple50" | "bg-purple60" | "bg-purple70" | "bg-purple80" | "bg-violet1" | "bg-violet5" | "bg-violet10" | "bg-violet20" | "bg-violet30" | "bg-violet40" | "bg-violet50" | "bg-violet60" | "bg-violet70" | "bg-violet80", boolean>> & Partial<Record<"margin" | "marginL" | "marginT" | "marginR" | "marginB" | "marginH" | "marginV", boolean>> & {
542
542
  label?: string | undefined;
543
543
  color?: string | undefined;
544
- iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => JSX.Element) | null;
544
+ iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => React.JSX.Element) | null;
545
545
  iconStyle?: StyleProp<ImageStyle>;
546
546
  iconProps?: Partial<import("../icon").IconProps> | undefined;
547
547
  iconOnRight?: boolean | undefined;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { ImageStyle, TextStyle, StyleProp } from 'react-native';
3
2
  import { BaseComponentInjectedProps, ForwardRefInjectedProps, TypographyModifiers, ColorsModifiers, BackgroundColorModifier, MarginModifiers } from '../../commons/new';
4
3
  import { TouchableOpacityProps } from '../touchableOpacity';
4
+ import type { JSX } from 'react';
5
5
  import { TextProps } from '../text';
6
6
  import { ImageProps } from '../image';
7
7
  import type { IconProps } from '../icon';
@@ -140,7 +140,7 @@ export type ButtonProps = TouchableOpacityProps & TypographyModifiers & ColorsMo
140
140
  /**
141
141
  * Custom element to render as button background (takes precedence over backgroundColor)
142
142
  */
143
- customBackground?: React.ReactElement;
143
+ customBackground?: React.ReactElement<any>;
144
144
  };
145
145
  export type ButtonState = {
146
146
  size?: number;
@@ -1,4 +1,4 @@
1
- import React, { Component, RefObject, ReactNode, Key } from 'react';
1
+ import React, { Component, RefObject, ReactNode, Key, type JSX } from 'react';
2
2
  import { ScrollView, LayoutChangeEvent, NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
3
3
  import { CarouselProps, CarouselState, PageControlPosition } from './types';
4
4
  export { CarouselProps, PageControlPosition };
@@ -15,7 +15,7 @@ declare class Carousel extends Component<CarouselProps, CarouselState> {
15
15
  static displayName: string;
16
16
  static defaultProps: DefaultProps;
17
17
  static pageControlPositions: typeof PageControlPosition;
18
- carousel: RefObject<ScrollView>;
18
+ carousel: RefObject<ScrollView | null>;
19
19
  autoplayTimer?: ReturnType<typeof setTimeout>;
20
20
  orientationChange?: boolean;
21
21
  skippedInitialScroll?: boolean;
@@ -49,7 +49,7 @@ declare class Carousel extends Component<CarouselProps, CarouselState> {
49
49
  goToNextPage(): void;
50
50
  getCalcIndex(index: number): number;
51
51
  getSnapToOffsets: () => number[] | undefined;
52
- getInitialContentOffset: (snapToOffsets: number[] | undefined) => PointPropType;
52
+ getInitialContentOffset: (snapToOffsets: number[] | undefined) => import("./types").PointPropType;
53
53
  shouldUsePageWidth(): number | false | undefined;
54
54
  shouldEnablePagination(): boolean | undefined;
55
55
  shouldAllowAccessibilityLayout(): boolean | undefined;
@@ -60,11 +60,11 @@ declare class Carousel extends Component<CarouselProps, CarouselState> {
60
60
  onScrollEvent: (...args: any[]) => void;
61
61
  renderChild: (child: ReactNode, key: Key) => JSX.Element | undefined;
62
62
  renderChildren(): JSX.Element[] | null | undefined;
63
- renderPageControl(): React.JSX.Element | undefined;
64
- renderCounter(): React.JSX.Element | undefined;
65
- renderAccessibleLayout(): React.JSX.Element;
66
- renderCarousel(): React.JSX.Element;
67
- render(): React.JSX.Element;
63
+ renderPageControl(): JSX.Element | undefined;
64
+ renderCounter(): JSX.Element | undefined;
65
+ renderAccessibleLayout(): JSX.Element;
66
+ renderCarousel(): JSX.Element;
67
+ render(): JSX.Element;
68
68
  }
69
69
  export { Carousel };
70
70
  declare const _default: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<any>> & Carousel & {
@@ -1,10 +1,13 @@
1
1
  import { ScrollViewProps, StyleProp, ViewStyle, NativeSyntheticEvent, NativeScrollEvent, Animated } from 'react-native';
2
- import { PointPropType } from 'deprecated-react-native-prop-types';
3
2
  import { PageControlProps } from '../pageControl';
4
3
  export declare enum PageControlPosition {
5
4
  OVER = "over",
6
5
  UNDER = "under"
7
6
  }
7
+ export type PointPropType = {
8
+ x: number;
9
+ y: number;
10
+ };
8
11
  export interface CarouselProps extends ScrollViewProps {
9
12
  /**
10
13
  * the first page to start with
@@ -1,5 +1,3 @@
1
- // @ts-expect-error No typings available for 'deprecated-react-native-prop-types'
2
-
3
1
  export let PageControlPosition = /*#__PURE__*/function (PageControlPosition) {
4
2
  PageControlPosition["OVER"] = "over";
5
3
  PageControlPosition["UNDER"] = "under";
@@ -49,7 +49,7 @@ export interface CheckboxProps extends TouchableOpacityProps {
49
49
  /**
50
50
  * The label of the checkbox
51
51
  */
52
- label?: string;
52
+ label?: string | React.ReactElement<Text>;
53
53
  /**
54
54
  * The style of the label
55
55
  */
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { type JSX } from 'react';
2
2
  import { StyleProp, ViewStyle, ViewProps, ImageStyle, TextStyle, ImageSourcePropType } from 'react-native';
3
3
  import { AvatarProps } from '../avatar';
4
4
  import { BadgeProps } from '../badge';
@@ -73,7 +73,7 @@ declare class ColorPalette extends PureComponent<Props, State> {
73
73
  backgroundColor: string;
74
74
  };
75
75
  constructor(props: Props);
76
- carousel: React.RefObject<typeof Carousel>;
76
+ carousel: React.RefObject<typeof Carousel | null>;
77
77
  scrollBar: React.RefObject<any>;
78
78
  itemsRefs?: any;
79
79
  selectedColorIndex?: number;
@@ -66,7 +66,7 @@ export type DateTimePickerProps = OldApiProps & Omit<TextFieldProps, 'value' | '
66
66
  */
67
67
  renderInput?: (props: Omit<DateTimePickerProps, 'value'> & {
68
68
  value?: string;
69
- }) => React.ReactElement;
69
+ }) => React.ReactElement<any>;
70
70
  /**
71
71
  * Override system theme variant (dark or light mode) used by the date picker.
72
72
  */
@@ -164,7 +164,7 @@ declare const DateTimePicker: React.ForwardRefExoticComponent<OldApiProps & Omit
164
164
  */
165
165
  renderInput?: ((props: Omit<DateTimePickerProps, 'value'> & {
166
166
  value?: string;
167
- }) => React.ReactElement) | undefined;
167
+ }) => React.ReactElement<any>) | undefined;
168
168
  /**
169
169
  * Override system theme variant (dark or light mode) used by the date picker.
170
170
  */
@@ -53,8 +53,8 @@ const DateTimePicker = forwardRef((props, ref) => {
53
53
  } = props;
54
54
  const [value, setValue] = useState(propsValue);
55
55
  const chosenDate = useRef(propsValue);
56
- const expandable = useRef();
57
- const textField = useRef();
56
+ const expandable = useRef(undefined);
57
+ const textField = useRef(undefined);
58
58
  useImperativeHandle(ref, () => {
59
59
  return {
60
60
  isValid: () => textField.current?.isValid(),
@@ -45,19 +45,19 @@ export interface DialogHeaderProps extends ViewProps {
45
45
  /**
46
46
  * Pass to render a leading element
47
47
  */
48
- leadingAccessory?: ReactElement;
48
+ leadingAccessory?: ReactElement<any>;
49
49
  /**
50
50
  * Pass to render a trailing element
51
51
  */
52
- trailingAccessory?: ReactElement;
52
+ trailingAccessory?: ReactElement<any>;
53
53
  /**
54
54
  * Pass to render a top element above the title
55
55
  */
56
- topAccessory?: ReactElement;
56
+ topAccessory?: ReactElement<any>;
57
57
  /**
58
58
  * Pass to render a bottom element below the subtitle
59
59
  */
60
- bottomAccessory?: ReactElement;
60
+ bottomAccessory?: ReactElement<any>;
61
61
  /**
62
62
  * Style for the leading + content + trailing components (without the topAccessory\bottomAccessory)
63
63
  */
@@ -126,7 +126,7 @@ declare class Drawer extends PureComponent<DrawerProps> {
126
126
  };
127
127
  leftRender: SwipeableProps['renderLeftActions'];
128
128
  rightRender: SwipeableProps['renderLeftActions'];
129
- _swipeableRow: RefObject<Swipeable>;
129
+ _swipeableRow: RefObject<Swipeable | null>;
130
130
  animationOptions: SwipeableProps['animationOptions'];
131
131
  leftActionX: Animated.Value;
132
132
  constructor(props: DrawerProps);
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { type JSX } from 'react';
2
2
  export type ExpandableSectionProps = {
3
3
  /**
4
4
  * expandableSection header element
@@ -36,5 +36,5 @@ export type ExpandableSectionProps = {
36
36
  * @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/ExpandableSectionScreen.tsx
37
37
  * @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/ExpandableSection/ExpandableSection.gif?raw=true
38
38
  */
39
- declare function ExpandableSection(props: ExpandableSectionProps): React.JSX.Element;
39
+ declare function ExpandableSection(props: ExpandableSectionProps): JSX.Element;
40
40
  export default ExpandableSection;
@@ -20,7 +20,7 @@ const FadedScrollView = props => {
20
20
  ...others
21
21
  } = props;
22
22
  const ScrollView = useGesture ? GestureScrollView : RNScrollView;
23
- const scrollViewRef = useRef();
23
+ const scrollViewRef = useRef(undefined);
24
24
  const horizontal = propsHorizontal ?? false;
25
25
  const {
26
26
  onContentSizeChange,
@@ -200,16 +200,12 @@ class FeatureHighlight extends Component {
200
200
  {title && <Text text60 style={[styles.title, {
201
201
  color,
202
202
  marginBottom: message ? titleBottomMargin : messageBottomMargin
203
- }, titleStyle]} numberOfLines={titleNumberOfLines}
204
- // @ts-expect-error
205
- pointerEvents={'none'}>
203
+ }, titleStyle]} numberOfLines={titleNumberOfLines} pointerEvents={'none'}>
206
204
  {title}
207
205
  </Text>}
208
206
  {message && <Text text70 style={[styles.message, {
209
207
  color
210
- }, messageStyle]} numberOfLines={messageNumberOfLines}
211
- // @ts-expect-error
212
- pointerEvents={'none'}>
208
+ }, messageStyle]} numberOfLines={messageNumberOfLines} pointerEvents={'none'}>
213
209
  {message}
214
210
  </Text>}
215
211
  <Button label={defaultButtonLabel} size={ButtonSize.medium} labelStyle={{
@@ -244,7 +240,9 @@ class FeatureHighlight extends Component {
244
240
  {pageControlProps ? <View flex bottom>
245
241
  <PageControl {...pageControlProps} containerStyle={{
246
242
  marginBottom: 24
247
- }} ref={r => this.viewRef = r} />
243
+ }} ref={r => {
244
+ this.viewRef = r;
245
+ }} />
248
246
  <View accessible accessibilityLabel={'dismiss button'} />
249
247
  </View> : <View flex accessible accessibilityLabel={'dismiss'} accessibilityRole={'button'} />}
250
248
  </TouchableWithoutFeedback>
@@ -169,9 +169,9 @@ class FloatingButton extends PureComponent {
169
169
  }
170
170
  const styles = StyleSheet.create({
171
171
  container: {
172
- ...StyleSheet.absoluteFillObject,
172
+ // ...StyleSheet.absoluteFillObject, // TODO: this is breaking scenarios where the FloatingButton is inside a KeyboardTrackingView
173
173
  top: undefined,
174
- zIndex: Constants.isAndroid ? 99 : undefined
174
+ zIndex: 99
175
175
  },
176
176
  image: {
177
177
  ...StyleSheet.absoluteFillObject,
@@ -21,7 +21,7 @@ export interface GridListItemProps {
21
21
  /**
22
22
  * Custom GridListItem to be rendered in the GridView
23
23
  */
24
- renderCustomItem?: () => React.ReactElement;
24
+ renderCustomItem?: () => React.ReactElement<any>;
25
25
  /**
26
26
  * The item size
27
27
  */
@@ -29,7 +29,7 @@ export interface GridListItemProps {
29
29
  /**
30
30
  * Title content text
31
31
  */
32
- title?: string | React.ReactElement;
32
+ title?: string | React.ReactElement<any>;
33
33
  /**
34
34
  * Title content typography
35
35
  */
@@ -45,7 +45,7 @@ export interface GridListItemProps {
45
45
  /**
46
46
  * Subtitle content text
47
47
  */
48
- subtitle?: string | React.ReactElement;
48
+ subtitle?: string | React.ReactElement<any>;
49
49
  /**
50
50
  * Subtitle content typography
51
51
  */
@@ -61,7 +61,7 @@ export interface GridListItemProps {
61
61
  /**
62
62
  * Description content text
63
63
  */
64
- description?: string | React.ReactElement;
64
+ description?: string | React.ReactElement<any>;
65
65
  /**
66
66
  * Description content typography
67
67
  */
@@ -101,12 +101,12 @@ export interface GridListItemProps {
101
101
  /**
102
102
  * Renders an overlay on top of the image
103
103
  */
104
- renderOverlay?: () => React.ReactElement;
104
+ renderOverlay?: () => React.ReactElement<any>;
105
105
  /**
106
106
  * Test ID for component
107
107
  */
108
108
  testID?: string;
109
- children?: React.ReactElement | React.ReactElement[];
109
+ children?: React.ReactElement<any> | React.ReactElement<any>[];
110
110
  }
111
111
  /**
112
112
  * @description: A single grid view/list item component
@@ -122,7 +122,7 @@ declare class GridListItem extends Component<GridListItemProps> {
122
122
  onItemPress: () => void;
123
123
  getItemSizeObj(): ImageSize;
124
124
  getContainerHorizontalAlignment: (this: any, horizontalAlignment: any) => "center" | "flex-start" | "flex-end" | undefined;
125
- renderContent(text: string | React.ReactElement | undefined, textProps: Partial<TextProps>): React.JSX.Element | undefined;
125
+ renderContent(text: string | React.ReactElement<any> | undefined, textProps: Partial<TextProps>): React.JSX.Element | undefined;
126
126
  render(): React.JSX.Element;
127
127
  }
128
128
  export default GridListItem;
@@ -113,7 +113,7 @@ class GridListItem extends Component {
113
113
  alignItems
114
114
  }, {
115
115
  width
116
- }, containerStyle]} {...otherContainerProps} onPress={onPress && this.onItemPress} accessible={renderCustomItem ? true : undefined} {...Modifiers.extractAccessibilityProps(this.props)}>
116
+ }, containerStyle]} accessible={renderCustomItem ? true : undefined} {...otherContainerProps} onPress={onPress && this.onItemPress} {...Modifiers.extractAccessibilityProps(this.props)}>
117
117
  {imageProps && <Image {...imageProps} style={[itemSize, imageProps?.style]} customOverlayContent={children} />}
118
118
  {!_isNil(renderCustomItem) && <View style={{
119
119
  width
@@ -39,7 +39,7 @@ export interface GridViewProps {
39
39
  /**
40
40
  * Pass to render a custom item
41
41
  */
42
- renderCustomItem?: (item: GridListItemProps) => React.ReactElement;
42
+ renderCustomItem?: (item: GridListItemProps) => React.ReactElement<any>;
43
43
  }
44
44
  interface GridViewState {
45
45
  viewWidth: number;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { View as RNView, LayoutChangeEvent } from 'react-native';
3
3
  import { HintProps } from './types';
4
4
  interface HintBubbleProps extends Pick<HintProps, 'testID' | 'visible' | 'message' | 'messageStyle' | 'color' | 'removePaddings' | 'enableShadow' | 'borderRadius' | 'iconStyle' | 'icon' | 'customContent'> {
5
- hintRef: React.RefObject<RNView>;
5
+ hintRef: React.RefObject<RNView | null>;
6
6
  setHintLayout: (layoutChangeEvent: LayoutChangeEvent) => void;
7
7
  hintPositionStyle: {
8
8
  left: number;
@@ -1,4 +1,4 @@
1
- import React, { Component, ReactElement, ElementRef } from 'react';
1
+ import React, { Component, ReactElement, ElementRef, type JSX } from 'react';
2
2
  import { Animated, GestureResponderEvent, ImageSourcePropType, ImageStyle, StyleProp, TextStyle, ViewStyle, LayoutChangeEvent, View as RNView } from 'react-native';
3
3
  declare enum TARGET_POSITIONS {
4
4
  LEFT = "left",
@@ -18,7 +18,7 @@ interface HintTargetFrame {
18
18
  type Position = Pick<ViewStyle, 'top' | 'bottom' | 'left' | 'right'>;
19
19
  type HintPositionStyle = Position & Pick<ViewStyle, 'alignItems'>;
20
20
  type Paddings = Pick<ViewStyle, 'paddingLeft' | 'paddingRight' | 'paddingVertical' | 'paddingHorizontal'>;
21
- type ContentType = string | ReactElement;
21
+ type ContentType = string | ReactElement<any>;
22
22
  export interface HintProps {
23
23
  /**
24
24
  * Control the visibility of the hint
@@ -130,7 +130,7 @@ declare class Hint extends Component<HintProps, HintState> {
130
130
  };
131
131
  static positions: typeof HintPositions;
132
132
  targetRef: ElementRef<typeof RNView> | null;
133
- hintRef: React.RefObject<RNView>;
133
+ hintRef: React.RefObject<RNView | null>;
134
134
  animationDuration: number;
135
135
  state: {
136
136
  targetLayoutInWindow: {
@@ -183,14 +183,14 @@ declare class Hint extends Component<HintProps, HintState> {
183
183
  getTipPosition(): Position;
184
184
  getHintOffsetForShortMessage: () => number;
185
185
  isUsingModal: () => boolean | undefined;
186
- renderOverlay(): React.JSX.Element | undefined;
187
- renderHintTip(): React.JSX.Element;
188
- renderHint(): React.JSX.Element;
189
- renderHintContainer(): React.JSX.Element | undefined;
190
- renderHintAnchor(): React.JSX.Element;
191
- renderMockChildren(): React.JSX.Element | undefined;
186
+ renderOverlay(): JSX.Element | undefined;
187
+ renderHintTip(): JSX.Element;
188
+ renderHint(): JSX.Element;
189
+ renderHintContainer(): JSX.Element | undefined;
190
+ renderHintAnchor(): JSX.Element;
191
+ renderMockChildren(): JSX.Element | undefined;
192
192
  renderChildren(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
193
- render(): string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
193
+ render(): string | number | bigint | true | JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
194
194
  }
195
195
  declare const _default: React.ForwardRefExoticComponent<HintProps & React.RefAttributes<any>> & typeof Hint;
196
196
  export default _default;
@@ -6,7 +6,7 @@ export default function useHintLayout({ onBackgroundPress, targetFrame }: UseHin
6
6
  targetLayoutState: LayoutRectangle | undefined;
7
7
  targetLayoutInWindowState: LayoutRectangle | undefined;
8
8
  hintMessageWidth: number | undefined;
9
- targetRef: import("react").MutableRefObject<RNView | null>;
9
+ targetRef: import("react").RefObject<RNView | null>;
10
10
  onTargetLayout: ({ nativeEvent: { layout } }: LayoutChangeEvent) => void;
11
11
  setHintLayout: ({ nativeEvent: { layout } }: LayoutChangeEvent) => void;
12
12
  };
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { HintPositions, HintProps } from './types';
3
3
  declare const Hint: {
4
- (props: HintProps): string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
4
+ (props: HintProps): string | number | bigint | true | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
5
5
  displayName: string;
6
6
  positions: typeof HintPositions;
7
7
  };
8
8
  export { HintProps, Hint };
9
9
  declare const _default: React.ForwardRefExoticComponent<HintProps & React.RefAttributes<any>> & {
10
- (props: HintProps): string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
10
+ (props: HintProps): string | number | bigint | true | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
11
11
  displayName: string;
12
12
  positions: typeof HintPositions;
13
13
  };
@@ -1,9 +1,9 @@
1
- import type { ReactElement } from 'react';
1
+ import type { ReactElement, JSX } from 'react';
2
2
  import type { GestureResponderEvent, ImageSourcePropType, ImageStyle, LayoutRectangle, StyleProp, TextStyle, ViewStyle } from 'react-native';
3
3
  export type PositionStyle = Pick<ViewStyle, 'top' | 'bottom' | 'left' | 'right'>;
4
4
  export type LayoutStyle = PositionStyle & Pick<ViewStyle, 'alignItems'>;
5
5
  export type PaddingsStyle = Pick<ViewStyle, 'paddingLeft' | 'paddingRight' | 'paddingVertical' | 'paddingHorizontal'>;
6
- export type ContentType = string | ReactElement;
6
+ export type ContentType = string | ReactElement<any>;
7
7
  export declare enum TargetAlignments {
8
8
  LEFT = "left",
9
9
  RIGHT = "right",
@@ -74,9 +74,6 @@ const Icon = forwardRef((props, ref) => {
74
74
  </>;
75
75
  });
76
76
  Icon.displayName = 'Icon';
77
- Icon.defaultProps = {
78
- assetGroup: 'icons'
79
- };
80
77
  export default asBaseComponent(Icon, {
81
78
  modifiersOptions: {
82
79
  margins: true
@@ -50,7 +50,7 @@ export type ImageProps = Omit<RNImageProps, 'source'> & Pick<ImageBackgroundProp
50
50
  /**
51
51
  * Render an overlay with custom content
52
52
  */
53
- customOverlayContent?: React.ReactElement | React.ReactElement[];
53
+ customOverlayContent?: React.ReactElement<any> | React.ReactElement<any>[];
54
54
  /**
55
55
  * Default image source in case of an error
56
56
  */