react-native-ui-lib 8.1.8-snapshot.7635 → 8.1.8-snapshot.7643

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 (123) hide show
  1. package/ReactNativeUiLib.podspec +22 -0
  2. package/lib/components/HighlighterOverlayView/index.d.ts +2 -2
  3. package/lib/components/HighlighterOverlayView/index.web.d.ts +2 -2
  4. package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardViewBase.d.ts +1 -1
  5. package/lib/components/Keyboard/KeyboardAccessoryView/index.d.ts +2 -2
  6. package/lib/components/Keyboard/KeyboardAccessoryView/index.js +1 -3
  7. package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.js +1 -3
  8. package/lib/components/Keyboard/KeyboardTrackingView/index.d.ts +2 -6
  9. package/lib/components/Keyboard/KeyboardTrackingView/index.js +4 -5
  10. package/lib/components/Keyboard/index.d.ts +1 -2
  11. package/lib/package.json +5 -4
  12. package/package.json +19 -17
  13. package/src/commons/asBaseComponent.js +1 -2
  14. package/src/commons/baseComponent.js +8 -0
  15. package/src/commons/forwardRef.js +5 -0
  16. package/src/commons/modifiers.d.ts +6 -0
  17. package/src/commons/modifiers.js +18 -0
  18. package/src/commons/withScrollEnabler.js +4 -0
  19. package/src/commons/withScrollReached.js +4 -0
  20. package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +7 -0
  21. package/src/components/KeyboardAwareScrollView/KeyboardAwareFlatList.js +6 -0
  22. package/src/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +6 -0
  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 +37 -0
  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 +1 -0
  33. package/src/components/baseInput/index.js +49 -1
  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 +1 -4
  38. package/src/components/carousel/types.js +2 -0
  39. package/src/components/chip/index.d.ts +1 -1
  40. package/src/components/colorPalette/index.d.ts +1 -1
  41. package/src/components/dateTimePicker/index.d.ts +2 -2
  42. package/src/components/dateTimePicker/index.js +2 -2
  43. package/src/components/dialog/types.d.ts +4 -4
  44. package/src/components/drawer/index.d.ts +1 -1
  45. package/src/components/expandableSection/index.d.ts +2 -2
  46. package/src/components/fadedScrollView/index.js +1 -1
  47. package/src/components/featureHighlight/index.js +7 -5
  48. package/src/components/gridListItem/index.d.ts +7 -7
  49. package/src/components/gridView/index.d.ts +1 -1
  50. package/src/components/hint/HintBubble.d.ts +1 -1
  51. package/src/components/hint/HintOld.d.ts +10 -10
  52. package/src/components/hint/hooks/useHintLayout.d.ts +1 -1
  53. package/src/components/hint/index.d.ts +2 -2
  54. package/src/components/hint/types.d.ts +2 -2
  55. package/src/components/icon/index.js +3 -0
  56. package/src/components/image/index.d.ts +1 -1
  57. package/src/components/image/index.js +17 -20
  58. package/src/components/loaderScreen/index.d.ts +1 -1
  59. package/src/components/loaderScreen/types.d.ts +1 -1
  60. package/src/components/maskedInput/index.d.ts +4 -21
  61. package/src/components/maskedInput/index.js +16 -78
  62. package/src/components/maskedInput/maskedInput.api.json +1 -0
  63. package/src/components/maskedInput/new.d.ts +22 -0
  64. package/src/components/maskedInput/new.js +85 -0
  65. package/src/components/maskedInput/old.js +95 -0
  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 +15 -0
  70. package/src/components/picker/PickerDialog.js +7 -0
  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 +11 -2
  75. package/src/components/progressBar/index.js +10 -7
  76. package/src/components/progressBar/progressBar.api.json +6 -1
  77. package/src/components/scrollBar/index.d.ts +4 -11
  78. package/src/components/searchInput/index.js +1 -1
  79. package/src/components/searchInput/types.d.ts +2 -2
  80. package/src/components/sectionsWheelPicker/SectionsWheelPicker.driver.d.ts +2 -2
  81. package/src/components/skeletonView/index.d.ts +4 -4
  82. package/src/components/slider/Thumb.d.ts +1 -1
  83. package/src/components/slider/types.d.ts +1 -1
  84. package/src/components/stackAggregator/index.d.ts +1 -1
  85. package/src/components/tabController/TabBarItem.d.ts +2 -2
  86. package/src/components/tabController/TabBarItem.js +1 -1
  87. package/src/components/tabController/TabPage.d.ts +2 -2
  88. package/src/components/tabController/useScrollToItem.d.ts +1 -1
  89. package/src/components/text/Text.driver.d.ts +1 -1
  90. package/src/components/textArea/index.js +6 -0
  91. package/src/components/textField/types.d.ts +4 -4
  92. package/src/components/textField/useImperativeInputHandle.d.ts +1 -1
  93. package/src/components/textField/useImperativeInputHandle.js +1 -1
  94. package/src/components/textField/usePreset.d.ts +20 -20
  95. package/src/components/textFieldOld/index.d.ts +71 -0
  96. package/src/components/textFieldOld/index.js +807 -0
  97. package/src/components/timeline/index.js +1 -1
  98. package/src/components/toast/index.js +69 -0
  99. package/src/components/view/index.js +5 -2
  100. package/src/components/wizard/index.d.ts +1 -1
  101. package/src/components/wizard/types.d.ts +1 -1
  102. package/src/components/wizard/wizard.api.json +1 -1
  103. package/src/helpers/DocsGenerator.js +61 -0
  104. package/src/hooks/useCombinedRefs/index.js +2 -1
  105. package/src/hooks/useDebounce/index.js +1 -1
  106. package/src/hooks/useHiddenLocation/index.js +2 -2
  107. package/src/hooks/useHiddenLocation/index.web.js +2 -2
  108. package/src/hooks/useMeasure/index.d.ts +1 -1
  109. package/src/hooks/useMeasure/index.js +1 -1
  110. package/src/hooks/useScrollTo/index.d.ts +2 -2
  111. package/src/incubator/calendar/index.js +1 -1
  112. package/src/incubator/calendar/types.d.ts +2 -2
  113. package/src/incubator/expandableOverlay/index.d.ts +2 -2
  114. package/src/incubator/slider/Track.d.ts +1 -1
  115. package/src/incubator/slider/index.d.ts +1 -1
  116. package/src/incubator/toast/helpers/useToastTimer.js +1 -1
  117. package/src/incubator/toast/index.js +1 -1
  118. package/src/incubator/toast/types.d.ts +2 -2
  119. package/src/testkit/Component.driver.d.ts +1 -1
  120. package/src/testkit/drivers/TestingLibraryDriver.d.ts +1 -1
  121. package/src/typings/module.d.ts +3 -12
  122. package/textFieldOld.d.ts +2 -0
  123. package/textFieldOld.js +1 -0
@@ -3,8 +3,11 @@ 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"; // @ts-nocheck
6
+ import _invoke from "lodash/invoke";
7
+ import _values from "lodash/values"; // @ts-nocheck
8
+ import PropTypes from 'prop-types';
7
9
  import 'react';
10
+ import { ViewPropTypes, TextInputPropTypes } from 'deprecated-react-native-prop-types';
8
11
  import { Colors, Typography } from "../../style";
9
12
  import { BaseComponent } from "../../commons";
10
13
  import Validators from "./Validators";
@@ -17,6 +20,51 @@ const VALIDATORS = {
17
20
  };
18
21
  export default class BaseInput extends BaseComponent {
19
22
  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
+ };
20
68
  static defaultProps = {
21
69
  validateOnBlur: true
22
70
  };
@@ -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) => React.JSX.Element) | null;
451
+ iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => 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) => React.JSX.Element) | null;
482
+ iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => 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) => React.JSX.Element) | null;
513
+ iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => 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) => React.JSX.Element) | null;
544
+ iconSource?: import("../image").ImageSourceType | ((iconStyle?: StyleProp<ImageStyle>[] | undefined) => 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" />
1
2
  import { ImageStyle, TextStyle, StyleProp } from 'react-native';
2
3
  import { BaseComponentInjectedProps, ForwardRefInjectedProps, TypographyModifiers, ColorsModifiers, BackgroundColorModifier, MarginModifiers } from '../../commons/new';
3
4
  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<any>;
143
+ customBackground?: React.ReactElement;
144
144
  };
145
145
  export type ButtonState = {
146
146
  size?: number;
@@ -1,4 +1,4 @@
1
- import React, { Component, RefObject, ReactNode, Key, type JSX } from 'react';
1
+ import React, { Component, RefObject, ReactNode, Key } 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 | null>;
18
+ carousel: RefObject<ScrollView>;
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) => import("./types").PointPropType;
52
+ getInitialContentOffset: (snapToOffsets: number[] | undefined) => 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(): JSX.Element | undefined;
64
- renderCounter(): JSX.Element | undefined;
65
- renderAccessibleLayout(): JSX.Element;
66
- renderCarousel(): JSX.Element;
67
- render(): JSX.Element;
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;
68
68
  }
69
69
  export { Carousel };
70
70
  declare const _default: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<any>> & Carousel & {
@@ -1,13 +1,10 @@
1
1
  import { ScrollViewProps, StyleProp, ViewStyle, NativeSyntheticEvent, NativeScrollEvent, Animated } from 'react-native';
2
+ import { PointPropType } from 'deprecated-react-native-prop-types';
2
3
  import { PageControlProps } from '../pageControl';
3
4
  export declare enum PageControlPosition {
4
5
  OVER = "over",
5
6
  UNDER = "under"
6
7
  }
7
- export type PointPropType = {
8
- x: number;
9
- y: number;
10
- };
11
8
  export interface CarouselProps extends ScrollViewProps {
12
9
  /**
13
10
  * the first page to start with
@@ -1,3 +1,5 @@
1
+ // @ts-expect-error No typings available for 'deprecated-react-native-prop-types'
2
+
1
3
  export let PageControlPosition = /*#__PURE__*/function (PageControlPosition) {
2
4
  PageControlPosition["OVER"] = "over";
3
5
  PageControlPosition["UNDER"] = "under";
@@ -1,4 +1,4 @@
1
- import React, { type JSX } from 'react';
1
+ import React 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 | null>;
76
+ carousel: React.RefObject<typeof Carousel>;
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<any>;
69
+ }) => React.ReactElement;
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<any>) | undefined;
167
+ }) => React.ReactElement) | 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(undefined);
57
- const textField = useRef(undefined);
56
+ const expandable = useRef();
57
+ const textField = useRef();
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<any>;
48
+ leadingAccessory?: ReactElement;
49
49
  /**
50
50
  * Pass to render a trailing element
51
51
  */
52
- trailingAccessory?: ReactElement<any>;
52
+ trailingAccessory?: ReactElement;
53
53
  /**
54
54
  * Pass to render a top element above the title
55
55
  */
56
- topAccessory?: ReactElement<any>;
56
+ topAccessory?: ReactElement;
57
57
  /**
58
58
  * Pass to render a bottom element below the subtitle
59
59
  */
60
- bottomAccessory?: ReactElement<any>;
60
+ bottomAccessory?: ReactElement;
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 | null>;
129
+ _swipeableRow: RefObject<Swipeable>;
130
130
  animationOptions: SwipeableProps['animationOptions'];
131
131
  leftActionX: Animated.Value;
132
132
  constructor(props: DrawerProps);
@@ -1,4 +1,4 @@
1
- import React, { type JSX } from 'react';
1
+ import React 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): JSX.Element;
39
+ declare function ExpandableSection(props: ExpandableSectionProps): React.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(undefined);
23
+ const scrollViewRef = useRef();
24
24
  const horizontal = propsHorizontal ?? false;
25
25
  const {
26
26
  onContentSizeChange,
@@ -200,12 +200,16 @@ 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} pointerEvents={'none'}>
203
+ }, titleStyle]} numberOfLines={titleNumberOfLines}
204
+ // @ts-expect-error
205
+ pointerEvents={'none'}>
204
206
  {title}
205
207
  </Text>}
206
208
  {message && <Text text70 style={[styles.message, {
207
209
  color
208
- }, messageStyle]} numberOfLines={messageNumberOfLines} pointerEvents={'none'}>
210
+ }, messageStyle]} numberOfLines={messageNumberOfLines}
211
+ // @ts-expect-error
212
+ pointerEvents={'none'}>
209
213
  {message}
210
214
  </Text>}
211
215
  <Button label={defaultButtonLabel} size={ButtonSize.medium} labelStyle={{
@@ -240,9 +244,7 @@ class FeatureHighlight extends Component {
240
244
  {pageControlProps ? <View flex bottom>
241
245
  <PageControl {...pageControlProps} containerStyle={{
242
246
  marginBottom: 24
243
- }} ref={r => {
244
- this.viewRef = r;
245
- }} />
247
+ }} ref={r => this.viewRef = r} />
246
248
  <View accessible accessibilityLabel={'dismiss button'} />
247
249
  </View> : <View flex accessible accessibilityLabel={'dismiss'} accessibilityRole={'button'} />}
248
250
  </TouchableWithoutFeedback>
@@ -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<any>;
24
+ renderCustomItem?: () => React.ReactElement;
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<any>;
32
+ title?: string | React.ReactElement;
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<any>;
48
+ subtitle?: string | React.ReactElement;
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<any>;
64
+ description?: string | React.ReactElement;
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<any>;
104
+ renderOverlay?: () => React.ReactElement;
105
105
  /**
106
106
  * Test ID for component
107
107
  */
108
108
  testID?: string;
109
- children?: React.ReactElement<any> | React.ReactElement<any>[];
109
+ children?: React.ReactElement | React.ReactElement[];
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<any> | undefined, textProps: Partial<TextProps>): React.JSX.Element | undefined;
125
+ renderContent(text: string | React.ReactElement | undefined, textProps: Partial<TextProps>): React.JSX.Element | undefined;
126
126
  render(): React.JSX.Element;
127
127
  }
128
128
  export default GridListItem;
@@ -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<any>;
42
+ renderCustomItem?: (item: GridListItemProps) => React.ReactElement;
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 | null>;
5
+ hintRef: React.RefObject<RNView>;
6
6
  setHintLayout: (layoutChangeEvent: LayoutChangeEvent) => void;
7
7
  hintPositionStyle: {
8
8
  left: number;
@@ -1,4 +1,4 @@
1
- import React, { Component, ReactElement, ElementRef, type JSX } from 'react';
1
+ import React, { Component, ReactElement, ElementRef } 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<any>;
21
+ type ContentType = string | ReactElement;
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 | null>;
133
+ hintRef: React.RefObject<RNView>;
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(): 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;
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;
192
192
  renderChildren(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
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;
193
+ render(): string | number | true | React.JSX.Element | Iterable<React.ReactNode> | 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").RefObject<RNView | null>;
9
+ targetRef: import("react").MutableRefObject<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 | 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;
4
+ (props: HintProps): string | number | true | React.JSX.Element | Iterable<React.ReactNode> | 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 | 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;
10
+ (props: HintProps): string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
11
11
  displayName: string;
12
12
  positions: typeof HintPositions;
13
13
  };
@@ -1,9 +1,9 @@
1
- import type { ReactElement, JSX } from 'react';
1
+ import type { ReactElement } 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<any>;
6
+ export type ContentType = string | ReactElement;
7
7
  export declare enum TargetAlignments {
8
8
  LEFT = "left",
9
9
  RIGHT = "right",
@@ -74,6 +74,9 @@ const Icon = forwardRef((props, ref) => {
74
74
  </>;
75
75
  });
76
76
  Icon.displayName = 'Icon';
77
+ Icon.defaultProps = {
78
+ assetGroup: 'icons'
79
+ };
77
80
  export default asBaseComponent(Icon, {
78
81
  modifiersOptions: {
79
82
  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<any> | React.ReactElement<any>[];
53
+ customOverlayContent?: React.ReactElement | React.ReactElement[];
54
54
  /**
55
55
  * Default image source in case of an error
56
56
  */
@@ -158,27 +158,24 @@ class Image extends PureComponent {
158
158
  const {
159
159
  margins
160
160
  } = modifiers;
161
- return <ImageView
162
- // @ts-expect-error TODO: this error emanates from the fact that
163
- // RNImage does not support `resizeMode` inside styles.containImage
164
- // I think this is too complex for TS to handle as using inline style
165
- // solves it. It is probably possible to refactor and solve it, but
166
- // I feel it is not worth the risk ATM.
167
- style={[tintColor && {
168
- tintColor
169
- }, shouldFlipRTL && styles.rtlFlipped, width ? {
170
- width
171
- } : undefined, height ? {
172
- height
173
- } : undefined, borderRadius ? {
174
- borderRadius
175
- } : undefined, cover && styles.coverImage, this.isGif() && styles.gifImage, aspectRatio ? {
176
- aspectRatio
177
- } : undefined, !useImageInsideContainer && margins, useImageInsideContainer && styles.containImage, style, useImageInsideContainer && styles.shrink]} accessible={false} accessibilityRole={'image'} fsTagName={recorderTag} {...others}
178
- // NOTE: imageStyle prop is only relevant for when rendering ImageBackground component
179
- imageStyle={this.getImageStyle()} onError={this.onError} source={source}>
161
+ return (
162
+ // @ts-ignore
163
+ <ImageView style={[tintColor && {
164
+ tintColor
165
+ }, shouldFlipRTL && styles.rtlFlipped, width && {
166
+ width
167
+ }, height && {
168
+ height
169
+ }, borderRadius && {
170
+ borderRadius
171
+ }, cover && styles.coverImage, this.isGif() && styles.gifImage, aspectRatio && {
172
+ aspectRatio
173
+ }, !useImageInsideContainer && margins, useImageInsideContainer && styles.containImage, style, useImageInsideContainer && styles.shrink]} accessible={false} accessibilityRole={'image'} fsTagName={recorderTag} {...others}
174
+ // NOTE: imageStyle prop is only relevant for when rendering ImageBackground component
175
+ imageStyle={this.getImageStyle()} onError={this.onError} source={source}>
180
176
  {(overlayType || customOverlayContent) && <Overlay type={overlayType} intensity={overlayIntensity} color={overlayColor} customContent={customOverlayContent} borderRadius={borderRadius} />}
181
- </ImageView>;
177
+ </ImageView>
178
+ );
182
179
  };
183
180
  renderRegularImage() {
184
181
  const {