react-native-ui-lib 8.0.1 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jestSetup/jest-setup.js +154 -0
- package/lib/components/DynamicFonts/FontDownloader.d.js +1 -0
- package/lib/components/DynamicFonts/FontLoader.d.js +1 -0
- package/lib/components/DynamicFonts/NoPermissionsAcquirer.d.js +1 -0
- package/lib/components/DynamicFonts/PermissionsAcquirer.android.d.js +1 -0
- package/lib/components/DynamicFonts/PermissionsAcquirer.ios.d.js +2 -0
- package/lib/components/DynamicFonts/PermissionsAcquirer.web.d.js +2 -0
- package/lib/components/DynamicFonts/RNFSPackage.d.js +1 -0
- package/lib/components/DynamicFonts/index.d.js +3 -0
- package/lib/components/HighlighterOverlayView/index.d.js +1 -0
- package/lib/components/HighlighterOverlayView/index.web.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.android.d.js +2 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.ios.d.js +2 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardViewBase.d.js +2 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/index.web.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardRegistry/index.d.js +5 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/TextInputKeyboardManager/TextInputKeyboardManager.android.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/TextInputKeyboardManager/TextInputKeyboardManager.ios.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/TextInputKeyboardManager/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/index.d.js +7 -0
- package/lib/components/Keyboard/KeyboardAwareInsetsView/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.android.d.js +1 -0
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.d.js +10 -0
- package/lib/components/Keyboard/KeyboardTrackingView/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardTrackingView/index.web.d.js +1 -0
- package/lib/components/Keyboard/index.d.js +4 -0
- package/lib/components/SafeArea/SafeAreaInsetsManager.d.js +1 -0
- package/lib/components/SafeArea/SafeAreaSpacerView.d.js +1 -0
- package/lib/components/SafeArea/SafeAreaSpacerView.web.d.js +1 -0
- package/lib/components/SafeArea/index.d.js +1 -0
- package/lib/components/index.d.js +6 -0
- package/lib/scripts/releaseNative.js +72 -0
- package/lib/specs/HighlighterViewNativeComponent.d.js +1 -0
- package/lib/specs/HighlighterViewNativeComponent.d.ts +61 -0
- package/lib/specs/HighlighterViewNativeComponent.js +8 -0
- package/lib/specs/KeyboardTrackingViewNativeComponent.d.js +1 -0
- package/lib/specs/KeyboardTrackingViewNativeComponent.d.ts +58 -0
- package/lib/specs/KeyboardTrackingViewNativeComponent.js +8 -0
- package/package.json +7 -31
- package/scripts/build/build.js +35 -0
- package/scripts/build/buildPackages/buildComponentsPackages.js +18 -0
- package/scripts/build/buildPackages/buildCustomPackages.js +106 -0
- package/scripts/build/buildPackages/index.js +6 -0
- package/scripts/createCalendarMockData.js +37 -0
- package/scripts/docs/buildDocs.js +1 -0
- package/scripts/prepush.js +71 -0
- package/scripts/release/prReleaseNotes.js +6 -0
- package/scripts/release/release.js +99 -0
- package/scripts/updateWebAssets.js +88 -0
- package/scripts/utils.js +21 -0
- package/src/assets/__tests__/Assets.spec.js +110 -0
- package/src/commons/__tests__/baseComponent.spec.js +36 -0
- package/src/commons/__tests__/constants.spec.js +202 -0
- package/src/commons/__tests__/modifiers.spec.js +453 -0
- package/src/components/WheelPicker/__tests__/index.spec.js +121 -0
- package/src/components/WheelPicker/__tests__/useListMiddleIndex.spec.js +40 -0
- package/src/components/WheelPicker/__tests__/usePresenter.spec.js +87 -0
- package/src/components/avatar/__tests__/index.spec.js +25 -0
- package/src/components/badge/__tests__/index.spec.js +84 -0
- package/src/components/button/__tests__/index.driver.spec.js +209 -0
- package/src/components/button/__tests__/index.spec.js +287 -0
- package/src/components/button/index.js +30 -8
- package/src/components/card/__tests__/CardPresenter.spec.js +35 -0
- package/src/components/carousel/__tests__/CarouselPresenter.spec.js +52 -0
- package/src/components/carousel/__tests__/index.spec.js +89 -0
- package/src/components/carousel/index.js +2 -1
- package/src/components/checkbox/__tests__/index.spec.js +357 -0
- package/src/components/chip/__tests__/index.spec.js +63 -0
- package/src/components/colorSwatch/index.js +1 -1
- package/src/components/connectionStatusBar/__tests__/index.spec.js +41 -0
- package/src/components/dateTimePicker/__tests__/index.spec.js +44 -0
- package/src/components/dialog/__tests__/index.new.spec.js +118 -0
- package/src/components/featureHighlight/__tests__/index.spec.js +76 -0
- package/src/components/floatingButton/__tests__/index.spec.js +229 -0
- package/src/components/floatingButton/index.js +66 -35
- package/src/components/hint/__tests__/index.spec.js +108 -0
- package/src/components/image/__tests__/index.spec.js +56 -0
- package/src/components/image/image.api.json +193 -1
- package/src/components/maskedInput/__tests__/maskedInput.new.spec.js +19 -0
- package/src/components/maskedInput/__tests__/maskedInput.old.spec.js +20 -0
- package/src/components/modal/__tests__/index.spec.js +58 -0
- package/src/components/numberInput/__tests__/Presenter.spec.js +374 -0
- package/src/components/numberInput/__tests__/index.spec.js +38 -0
- package/src/components/numberInput/numberInput.api.json +131 -6
- package/src/components/overlay/index.js +2 -1
- package/src/components/pageControl/pageControl.api.json +175 -1
- package/src/components/panView/__tests__/panningUtil.spec.js +693 -0
- package/src/components/picker/__tests__/PickerPresenter.spec.js +15 -0
- package/src/components/picker/__tests__/index.spec.js +364 -0
- package/src/components/picker/helpers/__tests__/usePickerLabel.spec.js +96 -0
- package/src/components/radioButton/__tests__/index.spec.js +43 -0
- package/src/components/radioGroup/__tests__/index.spec.js +96 -0
- package/src/components/sectionsWheelPicker/__tests__/index.spec.js +35 -0
- package/src/components/sectionsWheelPicker/__tests__/mockSections.js +28 -0
- package/src/components/segmentedControl/__tests__/index.spec.js +25 -0
- package/src/components/slider/__tests__/index.spec.js +35 -0
- package/src/components/slider/index.js +12 -1
- package/src/components/slider/slider.api.json +11 -0
- package/src/components/sortableGridList/__tests__/index.spec.js +51 -0
- package/src/components/sortableGridList/__tests__/usePresenter.spec.js +231 -0
- package/src/components/sortableGridList/sortableGridList.api.json +44 -1
- package/src/components/sortableList/SortableList.api.json +51 -3
- package/src/components/sortableList/__tests__/index.spec.js +105 -0
- package/src/components/stackAggregator/assets/arrow-down.png +0 -0
- package/src/components/stackAggregator/assets/arrow-down@2x.png +0 -0
- package/src/components/stackAggregator/assets/arrow-down@3x.png +0 -0
- package/src/components/switch/__tests__/index.spec.js +96 -0
- package/src/components/text/__tests__/index.driver.spec.js +124 -0
- package/src/components/text/__tests__/index.spec.js +245 -0
- package/src/components/textField/__tests__/Presenter.spec.js +240 -0
- package/src/components/textField/__tests__/index.driver.spec.js +639 -0
- package/src/components/timeline/__tests__/driver.index.spec.js +133 -0
- package/src/helpers/__tests__/AvatarHelper.spec.js +170 -0
- package/src/hooks/useDidUpdate/__tests__/useDidUpdate.spec.js +80 -0
- package/src/hooks/useOrientation/__tests__/useOrientation.spec.js +70 -0
- package/src/hooks/useToggleValue/__tests__/useToggleValue.spec.js +89 -0
- package/src/incubator/calendar/__tests__/DateUtils.spec.js +367 -0
- package/src/incubator/expandableOverlay/__tests__/index.spec.js +114 -0
- package/src/incubator/gradient/__tests__/useAngleTransform.spec.js +126 -0
- package/src/incubator/slider/__tests__/SliderPresenter.spec.js +43 -0
- package/src/incubator/slider/__tests__/index.spec.js +34 -0
- package/src/incubator/slider/slider.api.json +11 -0
- package/src/incubator/toast/__tests__/index.spec.js +64 -0
- package/src/style/__tests__/colors.spec.js +313 -0
- package/src/style/__tests__/scheme.spec.js +119 -0
- package/src/style/typographyPresets.js +26 -23
- package/src/utils/__tests__/Playground.perf.js +14 -0
- package/src/utils/__tests__/imageUtils.spec.js +54 -0
- package/src/utils/__tests__/textUtils.spec.js +446 -0
- package/.eslintrc.js +0 -56
- package/babel.config.js +0 -35
- package/index.js +0 -10
- package/lib/android/build.gradle +0 -32
- package/lib/android/src/main/AndroidManifest.xml +0 -4
- package/lib/android/src/main/java/com/wix/reactnativeuilib/UiLibPackageList.java +0 -28
- package/lib/android/src/main/java/com/wix/reactnativeuilib/dynamicfont/DynamicFontModule.java +0 -139
- package/lib/android/src/main/java/com/wix/reactnativeuilib/dynamicfont/DynamicFontPackage.java +0 -28
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlightFrame.java +0 -33
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlightViewTagParams.java +0 -50
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterView.java +0 -167
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.java +0 -131
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewPackage.java +0 -28
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/UiUtils.java +0 -50
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/AppContextHolder.java +0 -52
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout.java +0 -213
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootView.java +0 -39
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewManager.java +0 -29
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewShadow.java +0 -29
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/KeyboardInputModule.java +0 -34
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/KeyboardInputPackage.java +0 -49
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/ReactContextHolder.java +0 -16
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor.java +0 -83
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor.java +0 -163
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/PredicateFunc.java +0 -5
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.java +0 -33
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils.java +0 -65
- package/lib/android/src/main/java/com/wix/reactnativeuilib/utils/LogForwarder.java +0 -45
- package/lib/android/src/main/res/layout/wheel_picker.xml +0 -9
- package/lib/android/src/main/res/values/colors.xml +0 -9
- package/lib/android/src/main/res/values/styles.xml +0 -9
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardRegistry/keyboardRegistry.api.json +0 -50
- package/lib/components/Keyboard/KeyboardAccessoryView/keyboardAccessoryView.api.json +0 -58
- package/lib/components/Keyboard/KeyboardAwareInsetsView/keyboardAwareInsetsView.api.json +0 -14
- package/lib/components/Keyboard/KeyboardTrackingView/keyboardTrackingView.api.json +0 -86
- package/lib/ios/reactnativeuilib/dynamicfont/DynamicFont.h +0 -9
- package/lib/ios/reactnativeuilib/dynamicfont/DynamicFont.m +0 -115
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterView.h +0 -19
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterView.m +0 -216
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterViewManager.h +0 -6
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterViewManager.m +0 -28
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/Color+Interpolation.h +0 -39
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/Color+Interpolation.m +0 -160
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNAnimatorTemp.h +0 -36
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNAnimatorTemp.m +0 -121
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNInterpolable.h +0 -48
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNInterpolable.m +0 -27
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNInterpolation.h +0 -16
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/NSValue+Interpolation.h +0 -19
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/NSValue+Interpolation.mm +0 -155
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.h +0 -16
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m +0 -450
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.h +0 -18
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.m +0 -99
- package/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.h +0 -14
- package/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.m +0 -827
- package/lib/ios/reactnativeuilib/keyboardtrackingview/ObservingInputAccessoryViewTemp.h +0 -44
- package/lib/ios/reactnativeuilib/keyboardtrackingview/ObservingInputAccessoryViewTemp.m +0 -171
- package/lib/ios/reactnativeuilib/keyboardtrackingview/UIResponder+FirstResponderTemp.h +0 -6
- package/lib/ios/reactnativeuilib/keyboardtrackingview/UIResponder+FirstResponderTemp.m +0 -17
- package/lib/ios/reactnativeuilib/safearea/SafeAreaManager.h +0 -6
- package/lib/ios/reactnativeuilib/safearea/SafeAreaManager.m +0 -105
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerShadowView.h +0 -5
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerShadowView.m +0 -20
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerView.h +0 -7
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerView.m +0 -76
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewLocalData.h +0 -9
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewLocalData.m +0 -14
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewManager.h +0 -5
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewManager.m +0 -26
- package/lib/ios/reactnativeuilib.xcodeproj/project.pbxproj +0 -435
- package/metro.config.js +0 -23
- package/src/.babelrc.json +0 -23
- package/src/assets/Assets.d.ts +0 -5
- package/src/assets/emojis/index.d.ts +0 -1343
- package/src/assets/index.d.ts +0 -3
- package/src/assets/internal/index.d.ts +0 -4
- package/src/commons/Config.d.ts +0 -24
- package/src/commons/Constants.d.ts +0 -54
- package/src/commons/UIComponent.d.ts +0 -4
- package/src/commons/asBaseComponent.d.ts +0 -15
- package/src/commons/baseComponent.d.ts +0 -2
- package/src/commons/forwardRef.d.ts +0 -8
- package/src/commons/modifiers.d.ts +0 -118
- package/src/commons/new.d.ts +0 -8
- package/src/commons/withScrollEnabler.d.ts +0 -13
- package/src/commons/withScrollReached.d.ts +0 -35
- package/src/components/WheelPicker/Item.d.ts +0 -28
- package/src/components/WheelPicker/WheelPicker.driver.d.ts +0 -18
- package/src/components/WheelPicker/WheelPickerItem.driver.d.ts +0 -8
- package/src/components/WheelPicker/helpers/useListMiddleIndex.d.ts +0 -6
- package/src/components/WheelPicker/index.d.ts +0 -88
- package/src/components/WheelPicker/types.d.ts +0 -6
- package/src/components/WheelPicker/usePresenter.d.ts +0 -21
- package/src/components/actionBar/index.d.ts +0 -35
- package/src/components/actionSheet/index.d.ts +0 -80
- package/src/components/animatedImage/index.d.ts +0 -28
- package/src/components/avatar/index.d.ts +0 -382
- package/src/components/badge/index.d.ts +0 -879
- package/src/components/baseInput/Validators.d.ts +0 -8
- package/src/components/baseInput/index.d.ts +0 -29
- package/src/components/button/Button.driver.new.d.ts +0 -34
- package/src/components/button/ButtonConstants.d.ts +0 -26
- package/src/components/button/index.d.ts +0 -572
- package/src/components/button/types.d.ts +0 -153
- package/src/components/card/CardContext.d.ts +0 -3
- package/src/components/card/CardImage.d.ts +0 -20
- package/src/components/card/CardPresenter.d.ts +0 -12
- package/src/components/card/CardSection.d.ts +0 -79
- package/src/components/card/asCardChild.d.ts +0 -6
- package/src/components/card/index.d.ts +0 -120
- package/src/components/carousel/Carousel.driver.new.d.ts +0 -9
- package/src/components/carousel/CarouselPresenter.d.ts +0 -9
- package/src/components/carousel/index.d.ts +0 -73
- package/src/components/carousel/types.d.ts +0 -107
- package/src/components/checkbox/Checkbox.driver.d.ts +0 -15
- package/src/components/checkbox/index.d.ts +0 -129
- package/src/components/chip/chip.driver.d.ts +0 -33
- package/src/components/chip/index.d.ts +0 -209
- package/src/components/chipsInput/index.d.ts +0 -55
- package/src/components/colorPalette/index.d.ts +0 -116
- package/src/components/colorPicker/ColorPickerDialog.d.ts +0 -39
- package/src/components/colorPicker/ColorPickerDialogHeader.d.ts +0 -9
- package/src/components/colorPicker/ColorPickerDialogSliders.d.ts +0 -10
- package/src/components/colorPicker/ColorPickerPresenter.d.ts +0 -16
- package/src/components/colorPicker/ColorPickerPreview.d.ts +0 -12
- package/src/components/colorPicker/index.d.ts +0 -45
- package/src/components/colorSwatch/index.d.ts +0 -50
- package/src/components/connectionStatusBar/index.d.ts +0 -33
- package/src/components/connectionStatusBar/types.d.ts +0 -28
- package/src/components/dash/index.d.ts +0 -19
- package/src/components/dateTimePicker/DateTimePicker.driver.d.ts +0 -7
- package/src/components/dateTimePicker/index.d.ts +0 -288
- package/src/components/dateTimePicker/useOldApi.d.ts +0 -27
- package/src/components/dialog/Dialog.driver.new.d.ts +0 -6
- package/src/components/dialog/DialogHeader.d.ts +0 -4
- package/src/components/dialog/index.d.ts +0 -15
- package/src/components/dialog/types.d.ts +0 -138
- package/src/components/dialog/useDialogContent.d.ts +0 -13
- package/src/components/drawer/Swipeable.d.ts +0 -94
- package/src/components/drawer/index.d.ts +0 -161
- package/src/components/expandableSection/index.d.ts +0 -40
- package/src/components/fadedScrollView/index.d.ts +0 -59
- package/src/components/fader/index.d.ts +0 -37
- package/src/components/featureHighlight/index.d.ts +0 -147
- package/src/components/floatingButton/index.d.ts +0 -85
- package/src/components/gradient/index.d.ts +0 -19
- package/src/components/gridList/index.d.ts +0 -5
- package/src/components/gridList/types.d.ts +0 -29
- package/src/components/gridList/useGridLayout.d.ts +0 -15
- package/src/components/gridListItem/index.d.ts +0 -132
- package/src/components/gridView/index.d.ts +0 -80
- package/src/components/hint/Hint.driver.d.ts +0 -6
- package/src/components/hint/Hint.driver.new.d.ts +0 -19
- package/src/components/hint/HintAnchor.d.ts +0 -13
- package/src/components/hint/HintBubble.d.ts +0 -12
- package/src/components/hint/HintMockChildren.d.ts +0 -8
- package/src/components/hint/HintOld.d.ts +0 -196
- package/src/components/hint/hooks/useHintAccessibility.d.ts +0 -10
- package/src/components/hint/hooks/useHintLayout.d.ts +0 -13
- package/src/components/hint/hooks/useHintPosition.d.ts +0 -29
- package/src/components/hint/hooks/useHintVisibility.d.ts +0 -6
- package/src/components/hint/index.d.ts +0 -14
- package/src/components/hint/types.d.ts +0 -106
- package/src/components/icon/index.d.ts +0 -97
- package/src/components/image/Image.driver.d.ts +0 -4
- package/src/components/image/Image.driver.new.d.ts +0 -2
- package/src/components/image/index.d.ts +0 -192
- package/src/components/listItem/ListItemPart.d.ts +0 -15
- package/src/components/listItem/index.d.ts +0 -52
- package/src/components/listItem/types.d.ts +0 -60
- package/src/components/loaderScreen/index.d.ts +0 -13
- package/src/components/loaderScreen/types.d.ts +0 -32
- package/src/components/marquee/index.d.ts +0 -5
- package/src/components/marquee/types.d.ts +0 -35
- package/src/components/maskedInput/index.d.ts +0 -5
- package/src/components/maskedInput/new.d.ts +0 -22
- package/src/components/modal/Modal.driver.new.d.ts +0 -8
- package/src/components/modal/TopBar.d.ts +0 -89
- package/src/components/modal/index.d.ts +0 -64
- package/src/components/numberInput/NumberInput.driver.d.ts +0 -6
- package/src/components/numberInput/Presenter.d.ts +0 -21
- package/src/components/numberInput/index.d.ts +0 -57
- package/src/components/overlay/index.d.ts +0 -68
- package/src/components/pageControl/index.d.ts +0 -56
- package/src/components/panView/index.d.ts +0 -21
- package/src/components/panView/panningUtil.d.ts +0 -38
- package/src/components/panView/usePanGesture.d.ts +0 -49
- package/src/components/picker/Picker.driver.new.d.ts +0 -44
- package/src/components/picker/PickerContext.d.ts +0 -4
- package/src/components/picker/PickerItem.d.ts +0 -11
- package/src/components/picker/PickerItemsList.d.ts +0 -4
- package/src/components/picker/PickerPresenter.d.ts +0 -7
- package/src/components/picker/PickerSelectionStatusBar.d.ts +0 -3
- package/src/components/picker/helpers/useFieldType.d.ts +0 -373
- package/src/components/picker/helpers/useImperativePickerHandle.d.ts +0 -5
- package/src/components/picker/helpers/useNewPickerProps.d.ts +0 -3
- package/src/components/picker/helpers/usePickerLabel.d.ts +0 -17
- package/src/components/picker/helpers/usePickerMigrationWarnings.d.ts +0 -4
- package/src/components/picker/helpers/usePickerSearch.d.ts +0 -9
- package/src/components/picker/helpers/usePickerSelection.d.ts +0 -16
- package/src/components/picker/index.d.ts +0 -15
- package/src/components/picker/types.d.ts +0 -321
- package/src/components/pieChart/PieSegment.d.ts +0 -34
- package/src/components/pieChart/index.d.ts +0 -15
- package/src/components/progressBar/index.d.ts +0 -65
- package/src/components/progressiveImage/index.d.ts +0 -23
- package/src/components/radioButton/RadioButton.driver.d.ts +0 -9
- package/src/components/radioButton/index.d.ts +0 -121
- package/src/components/radioGroup/RadioGroup.driver.d.ts +0 -13
- package/src/components/radioGroup/RadioGroupContext.d.ts +0 -14
- package/src/components/radioGroup/asRadioGroupChild.d.ts +0 -2
- package/src/components/radioGroup/index.d.ts +0 -47
- package/src/components/scrollBar/index.d.ts +0 -88
- package/src/components/searchInput/index.d.ts +0 -37
- package/src/components/searchInput/types.d.ts +0 -66
- package/src/components/sectionsWheelPicker/SectionsWheelPicker.driver.d.ts +0 -25
- package/src/components/sectionsWheelPicker/index.d.ts +0 -43
- package/src/components/segmentedControl/index.d.ts +0 -90
- package/src/components/segmentedControl/segment.d.ts +0 -111
- package/src/components/segmentedControl/useSegmentedControlPreset.d.ts +0 -10
- package/src/components/skeletonView/index.d.ts +0 -163
- package/src/components/slider/ColorSliderGroup.d.ts +0 -13
- package/src/components/slider/GradientSlider.d.ts +0 -20
- package/src/components/slider/SliderContext.d.ts +0 -8
- package/src/components/slider/Thumb.d.ts +0 -32
- package/src/components/slider/index.d.ts +0 -31
- package/src/components/slider/slider.driver.d.ts +0 -5
- package/src/components/slider/types.d.ts +0 -197
- package/src/components/sortableGridList/SortableItem.d.ts +0 -6
- package/src/components/sortableGridList/index.d.ts +0 -5
- package/src/components/sortableGridList/types.d.ts +0 -34
- package/src/components/sortableGridList/usePresenter.d.ts +0 -21
- package/src/components/sortableList/SortableList.driver.new.d.ts +0 -2
- package/src/components/sortableList/SortableListContext.d.ts +0 -19
- package/src/components/sortableList/SortableListItem.d.ts +0 -8
- package/src/components/sortableList/SortableListItem.driver.new.d.ts +0 -11
- package/src/components/sortableList/index.d.ts +0 -5
- package/src/components/sortableList/types.d.ts +0 -48
- package/src/components/sortableList/usePresenter.d.ts +0 -12
- package/src/components/stackAggregator/index.d.ts +0 -89
- package/src/components/stateScreen/index.d.ts +0 -5
- package/src/components/stateScreen/types.d.ts +0 -30
- package/src/components/stepper/index.d.ts +0 -47
- package/src/components/svgImage/index.d.ts +0 -14
- package/src/components/svgImage/index.web.d.ts +0 -18
- package/src/components/switch/index.d.ts +0 -102
- package/src/components/switch/switch.driver.d.ts +0 -18
- package/src/components/tabController/PageCarousel.d.ts +0 -9
- package/src/components/tabController/TabBar.d.ts +0 -97
- package/src/components/tabController/TabBarContext.d.ts +0 -18
- package/src/components/tabController/TabBarItem.d.ts +0 -105
- package/src/components/tabController/TabPage.d.ts +0 -33
- package/src/components/tabController/index.d.ts +0 -48
- package/src/components/tabController/useImperativeTabControllerHandle.d.ts +0 -6
- package/src/components/tabController/useScrollToItem.d.ts +0 -79
- package/src/components/text/Text.driver.d.ts +0 -7
- package/src/components/text/Text.driver.new.d.ts +0 -17
- package/src/components/text/index.d.ts +0 -195
- package/src/components/textField/CharCounter.d.ts +0 -7
- package/src/components/textField/ClearButton.d.ts +0 -4
- package/src/components/textField/FieldContext.d.ts +0 -4
- package/src/components/textField/FloatingPlaceholder.d.ts +0 -7
- package/src/components/textField/Input.d.ts +0 -8
- package/src/components/textField/Label.d.ts +0 -7
- package/src/components/textField/Presenter.d.ts +0 -7
- package/src/components/textField/TextField.driver.new.d.ts +0 -129
- package/src/components/textField/ValidationMessage.d.ts +0 -7
- package/src/components/textField/index.d.ts +0 -114
- package/src/components/textField/presets/outline.d.ts +0 -737
- package/src/components/textField/presets/underline.d.ts +0 -735
- package/src/components/textField/textInput/index.d.ts +0 -1
- package/src/components/textField/textInput/index.web.d.ts +0 -3
- package/src/components/textField/types.d.ts +0 -287
- package/src/components/textField/useFieldState.d.ts +0 -16
- package/src/components/textField/useImperativeInputHandle.d.ts +0 -4
- package/src/components/textField/usePreset.d.ts +0 -1696
- package/src/components/textField/validators.d.ts +0 -9
- package/src/components/textFieldOld/index.d.ts +0 -71
- package/src/components/timeline/Line.d.ts +0 -10
- package/src/components/timeline/Point.d.ts +0 -9
- package/src/components/timeline/index.d.ts +0 -11
- package/src/components/timeline/line.driver.d.ts +0 -10
- package/src/components/timeline/point.driver.d.ts +0 -8
- package/src/components/timeline/timeline.driver.d.ts +0 -25
- package/src/components/timeline/types.d.ts +0 -50
- package/src/components/touchableOpacity/index.d.ts +0 -50
- package/src/components/view/View.driver.new.d.ts +0 -7
- package/src/components/view/index.d.ts +0 -46
- package/src/components/wizard/WizardStates.d.ts +0 -2
- package/src/components/wizard/WizardStep.d.ts +0 -4
- package/src/components/wizard/index.d.ts +0 -31
- package/src/components/wizard/types.d.ts +0 -90
- package/src/helpers/AvatarHelper.d.ts +0 -9
- package/src/helpers/FormattingPresenter.d.ts +0 -6
- package/src/helpers/Profiler.d.ts +0 -22
- package/src/helpers/index.d.ts +0 -3
- package/src/hooks/index.d.ts +0 -14
- package/src/hooks/useCombinedRefs/index.d.ts +0 -3
- package/src/hooks/useDebounce/index.d.ts +0 -5
- package/src/hooks/useDidUpdate/index.d.ts +0 -6
- package/src/hooks/useHiddenLocation/index.d.ts +0 -13
- package/src/hooks/useHiddenLocation/index.web.d.ts +0 -13
- package/src/hooks/useKeyboardHeight/index.d.ts +0 -5
- package/src/hooks/useMeasure/index.d.ts +0 -15
- package/src/hooks/useModifiers/index.d.ts +0 -3
- package/src/hooks/useOrientation/index.d.ts +0 -7
- package/src/hooks/useScrollEnabler/index.d.ts +0 -23
- package/src/hooks/useScrollReached/index.d.ts +0 -28
- package/src/hooks/useScrollTo/index.d.ts +0 -37
- package/src/hooks/useScrollToItem/index.d.ts +0 -65
- package/src/hooks/useThemeProps/index.d.ts +0 -2
- package/src/hooks/useToggleValue/index.d.ts +0 -2
- package/src/incubator/TouchableOpacity.d.ts +0 -52
- package/src/incubator/calendar/Agenda.d.ts +0 -4
- package/src/incubator/calendar/CalendarContext.d.ts +0 -4
- package/src/incubator/calendar/CalendarItem.d.ts +0 -5
- package/src/incubator/calendar/Day.d.ts +0 -4
- package/src/incubator/calendar/Day_OLD.d.ts +0 -4
- package/src/incubator/calendar/Header.d.ts +0 -4
- package/src/incubator/calendar/Month.d.ts +0 -4
- package/src/incubator/calendar/TodayButton.d.ts +0 -4
- package/src/incubator/calendar/Week.d.ts +0 -4
- package/src/incubator/calendar/WeekDaysNames.d.ts +0 -4
- package/src/incubator/calendar/helpers/CalendarProcessor.d.ts +0 -2
- package/src/incubator/calendar/helpers/DataProcessor.d.ts +0 -2
- package/src/incubator/calendar/helpers/DateUtils.d.ts +0 -23
- package/src/incubator/calendar/index.d.ts +0 -7
- package/src/incubator/calendar/types.d.ts +0 -118
- package/src/incubator/expandableOverlay/ExpandableOverlay.driver.d.ts +0 -7
- package/src/incubator/expandableOverlay/index.d.ts +0 -83
- package/src/incubator/gradient/BorderGradient.d.ts +0 -4
- package/src/incubator/gradient/CircleGradient.d.ts +0 -4
- package/src/incubator/gradient/RectangleGradient.d.ts +0 -4
- package/src/incubator/gradient/index.d.ts +0 -5
- package/src/incubator/gradient/types.d.ts +0 -26
- package/src/incubator/gradient/useAngleTransform.d.ts +0 -27
- package/src/incubator/index.d.ts +0 -9
- package/src/incubator/slider/Slider.driver.d.ts +0 -5
- package/src/incubator/slider/SliderPresenter.d.ts +0 -6
- package/src/incubator/slider/Thumb.d.ts +0 -24
- package/src/incubator/slider/Track.d.ts +0 -13
- package/src/incubator/slider/index.d.ts +0 -139
- package/src/incubator/toast/Toast.driver.new.d.ts +0 -54
- package/src/incubator/toast/helpers/useToastAnimation.d.ts +0 -22
- package/src/incubator/toast/helpers/useToastPresets.d.ts +0 -8
- package/src/incubator/toast/helpers/useToastTimer.d.ts +0 -6
- package/src/incubator/toast/index.d.ts +0 -9
- package/src/incubator/toast/types.d.ts +0 -111
- package/src/index.d.ts +0 -92
- package/src/optionalDependencies/BlurViewPackage.d.ts +0 -2
- package/src/optionalDependencies/BlurViewPackage.web.d.ts +0 -2
- package/src/optionalDependencies/DateTimePickerPackage.d.ts +0 -2
- package/src/optionalDependencies/FlashListPackage.d.ts +0 -2
- package/src/optionalDependencies/HapticFeedbackPackage.d.ts +0 -2
- package/src/optionalDependencies/LinearGradientPackage.d.ts +0 -2
- package/src/optionalDependencies/MomentPackage.d.ts +0 -2
- package/src/optionalDependencies/NetInfoPackage.d.ts +0 -2
- package/src/optionalDependencies/PostCssPackage.d.ts +0 -5
- package/src/optionalDependencies/ShimmerPackage.d.ts +0 -2
- package/src/optionalDependencies/SvgPackage.d.ts +0 -3
- package/src/optionalDependencies/index.d.ts +0 -9
- package/src/optionalDependencies/index.web.d.ts +0 -7
- package/src/services/HapticService.d.ts +0 -15
- package/src/services/LogService.d.ts +0 -35
- package/src/services/index.d.ts +0 -2
- package/src/style/borderRadiuses.d.ts +0 -30
- package/src/style/colorName.d.ts +0 -8
- package/src/style/colorNameMap.d.ts +0 -2
- package/src/style/colors.d.ts +0 -274
- package/src/style/colorsPalette.d.ts +0 -101
- package/src/style/components.d.ts +0 -15
- package/src/style/componentsColors.d.ts +0 -5
- package/src/style/designTokens.d.ts +0 -69
- package/src/style/designTokensDM.d.ts +0 -69
- package/src/style/dividers.d.ts +0 -11
- package/src/style/index.d.ts +0 -13
- package/src/style/scheme.d.ts +0 -57
- package/src/style/shadows.d.ts +0 -223
- package/src/style/spacings.d.ts +0 -32
- package/src/style/themeManager.d.ts +0 -22
- package/src/style/typography.d.ts +0 -26
- package/src/style/typographyPresets.d.ts +0 -7
- package/src/testkit/Component.driver.d.ts +0 -30
- package/src/testkit/DriverException.d.ts +0 -12
- package/src/testkit/UniDriver.d.ts +0 -29
- package/src/testkit/drivers/TestingLibraryDriver.d.ts +0 -26
- package/src/testkit/index.d.ts +0 -25
- package/src/testkit/new/Component.driver.d.ts +0 -16
- package/src/testkit/new/useDraggable.driver.d.ts +0 -15
- package/src/testkit/new/usePressable.driver.d.ts +0 -14
- package/src/testkit/new/useScrollable.driver.d.ts +0 -13
- package/src/typings/assets.d.ts +0 -52
- package/src/typings/common.d.ts +0 -12
- package/src/typings/module.d.ts +0 -13
- package/src/typings/recorderTypes.d.ts +0 -13
- package/src/uilib-test-renderer/helper.d.ts +0 -8
- package/src/uilib-test-renderer/index.d.ts +0 -4
- package/src/uilib-test-renderer/scrollViewHelper.d.ts +0 -9
- package/src/utils/dateUtils.d.ts +0 -2
- package/src/utils/imageUtils.d.ts +0 -5
- package/src/utils/index.d.ts +0 -4
- package/src/utils/styleUtils.d.ts +0 -7
- package/src/utils/textUtils.d.ts +0 -8
- /package/{src → scripts/build}/.babelrc.exports.js +0 -0
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GridListBaseProps } from './types';
|
|
2
|
-
export declare const DEFAULT_NUM_COLUMNS = 3;
|
|
3
|
-
export declare const DEFAULT_ITEM_SPACINGS: number;
|
|
4
|
-
declare const useGridLayout: (props: GridListBaseProps) => {
|
|
5
|
-
itemContainerStyle: {
|
|
6
|
-
width: number;
|
|
7
|
-
};
|
|
8
|
-
numberOfColumns: number;
|
|
9
|
-
itemWidth: number;
|
|
10
|
-
itemSpacing: number;
|
|
11
|
-
listStyle: import("react-native/types").StyleProp<import("react-native/types").ViewStyle>[];
|
|
12
|
-
listContentStyle: import("react-native/types").StyleProp<import("react-native/types").ViewStyle>[];
|
|
13
|
-
listColumnWrapperStyle: import("react-native/types").StyleProp<import("react-native/types").ViewStyle>[];
|
|
14
|
-
};
|
|
15
|
-
export default useGridLayout;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import { type DimensionValue, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { ViewProps } from '../view';
|
|
4
|
-
import { TouchableOpacityProps } from '../touchableOpacity';
|
|
5
|
-
import { type TextProps } from '../text';
|
|
6
|
-
import { ImageProps } from '../image';
|
|
7
|
-
export declare enum HorizontalAlignment {
|
|
8
|
-
left = "left",
|
|
9
|
-
center = "center",
|
|
10
|
-
right = "right"
|
|
11
|
-
}
|
|
12
|
-
export interface GridListItemProps {
|
|
13
|
-
/**
|
|
14
|
-
* Image props object for rendering an image item
|
|
15
|
-
*/
|
|
16
|
-
imageProps?: ImageProps;
|
|
17
|
-
/**
|
|
18
|
-
* Props to pass on to the touchable container
|
|
19
|
-
*/
|
|
20
|
-
containerProps?: Omit<TouchableOpacityProps | ViewProps, 'style'>;
|
|
21
|
-
/**
|
|
22
|
-
* Custom GridListItem to be rendered in the GridView
|
|
23
|
-
*/
|
|
24
|
-
renderCustomItem?: () => React.ReactElement;
|
|
25
|
-
/**
|
|
26
|
-
* The item size
|
|
27
|
-
*/
|
|
28
|
-
itemSize?: number | ImageSize;
|
|
29
|
-
/**
|
|
30
|
-
* Title content text
|
|
31
|
-
*/
|
|
32
|
-
title?: string | React.ReactElement;
|
|
33
|
-
/**
|
|
34
|
-
* Title content typography
|
|
35
|
-
*/
|
|
36
|
-
titleTypography?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Title content color
|
|
39
|
-
*/
|
|
40
|
-
titleColor?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Title content number of lines
|
|
43
|
-
*/
|
|
44
|
-
titleLines?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Subtitle content text
|
|
47
|
-
*/
|
|
48
|
-
subtitle?: string | React.ReactElement;
|
|
49
|
-
/**
|
|
50
|
-
* Subtitle content typography
|
|
51
|
-
*/
|
|
52
|
-
subtitleTypography?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Subtitle content color
|
|
55
|
-
*/
|
|
56
|
-
subtitleColor?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Subtitle content number of lines
|
|
59
|
-
*/
|
|
60
|
-
subtitleLines?: number;
|
|
61
|
-
/**
|
|
62
|
-
* Description content text
|
|
63
|
-
*/
|
|
64
|
-
description?: string | React.ReactElement;
|
|
65
|
-
/**
|
|
66
|
-
* Description content typography
|
|
67
|
-
*/
|
|
68
|
-
descriptionTypography?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Description content color
|
|
71
|
-
*/
|
|
72
|
-
descriptionColor?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Description content number of lines
|
|
75
|
-
*/
|
|
76
|
-
descriptionLines?: number;
|
|
77
|
-
/**
|
|
78
|
-
* Renders the title, subtitle and description inside the item
|
|
79
|
-
*/
|
|
80
|
-
overlayText?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Custom container styling for inline text
|
|
83
|
-
*/
|
|
84
|
-
overlayTextContainerStyle?: StyleProp<ViewStyle>;
|
|
85
|
-
/**
|
|
86
|
-
* Should content be align to start (default is center)
|
|
87
|
-
*/
|
|
88
|
-
alignToStart?: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Content horizontal alignment (default is center)
|
|
91
|
-
*/
|
|
92
|
-
horizontalAlignment?: HorizontalAlignment | `${HorizontalAlignment}`;
|
|
93
|
-
/**
|
|
94
|
-
* Custom container style
|
|
95
|
-
*/
|
|
96
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
97
|
-
/**
|
|
98
|
-
* The item's action handler
|
|
99
|
-
*/
|
|
100
|
-
onPress?: TouchableOpacityProps['onPress'];
|
|
101
|
-
/**
|
|
102
|
-
* Renders an overlay on top of the image
|
|
103
|
-
*/
|
|
104
|
-
renderOverlay?: () => React.ReactElement;
|
|
105
|
-
/**
|
|
106
|
-
* Test ID for component
|
|
107
|
-
*/
|
|
108
|
-
testID?: string;
|
|
109
|
-
children?: React.ReactElement | React.ReactElement[];
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* @description: A single grid view/list item component
|
|
113
|
-
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/GridViewScreen.tsx
|
|
114
|
-
*/
|
|
115
|
-
declare class GridListItem extends Component<GridListItemProps> {
|
|
116
|
-
static displayName: string;
|
|
117
|
-
static horizontalAlignment: typeof HorizontalAlignment;
|
|
118
|
-
static defaultProps: {
|
|
119
|
-
itemSize: number;
|
|
120
|
-
};
|
|
121
|
-
state: {};
|
|
122
|
-
onItemPress: () => void;
|
|
123
|
-
getItemSizeObj(): ImageSize;
|
|
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;
|
|
126
|
-
render(): React.JSX.Element;
|
|
127
|
-
}
|
|
128
|
-
export default GridListItem;
|
|
129
|
-
interface ImageSize {
|
|
130
|
-
width?: DimensionValue;
|
|
131
|
-
height?: DimensionValue;
|
|
132
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import UIComponent from '../../commons/UIComponent';
|
|
3
|
-
import { GridListItemProps } from '../gridListItem';
|
|
4
|
-
export interface GridViewProps {
|
|
5
|
-
/**
|
|
6
|
-
* The list of items based on GridListItem props
|
|
7
|
-
*/
|
|
8
|
-
items?: GridListItemProps[];
|
|
9
|
-
/**
|
|
10
|
-
* pass the desired grid view width (will improve loading time)
|
|
11
|
-
*/
|
|
12
|
-
viewWidth?: number;
|
|
13
|
-
/**
|
|
14
|
-
* Allow a responsive item width to the maximum item width
|
|
15
|
-
*/
|
|
16
|
-
maxItemWidth?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Number of items to show in a row (ignored when passing maxItemWidth)
|
|
19
|
-
*/
|
|
20
|
-
numColumns?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Spacing between each item
|
|
23
|
-
*/
|
|
24
|
-
itemSpacing?: number;
|
|
25
|
-
/**
|
|
26
|
-
* overlay label for the last item
|
|
27
|
-
*/
|
|
28
|
-
lastItemLabel?: string | number;
|
|
29
|
-
/**
|
|
30
|
-
* color of overlay label for the last item
|
|
31
|
-
*/
|
|
32
|
-
lastItemOverlayColor?: string;
|
|
33
|
-
/**
|
|
34
|
-
* whether to keep the items initial size when orientation changes,
|
|
35
|
-
* in which case the apt number of columns will be calculated automatically.
|
|
36
|
-
* Ignored when passing 'maxItemWidth'
|
|
37
|
-
*/
|
|
38
|
-
keepItemSize?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Pass to render a custom item
|
|
41
|
-
*/
|
|
42
|
-
renderCustomItem?: (item: GridListItemProps) => React.ReactElement;
|
|
43
|
-
}
|
|
44
|
-
interface GridViewState {
|
|
45
|
-
viewWidth: number;
|
|
46
|
-
numColumns: number;
|
|
47
|
-
itemSize: number;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* @description: A auto-generated grid view that calculate item size according to given props
|
|
51
|
-
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/GridViewScreen.tsx
|
|
52
|
-
*/
|
|
53
|
-
declare class GridView extends UIComponent<GridViewProps, GridViewState> {
|
|
54
|
-
static displayName: string;
|
|
55
|
-
static defaultProps: {
|
|
56
|
-
numColumns: number;
|
|
57
|
-
itemSpacing: number;
|
|
58
|
-
};
|
|
59
|
-
private dimensionsChangeListener;
|
|
60
|
-
state: {
|
|
61
|
-
viewWidth: number;
|
|
62
|
-
numColumns: number;
|
|
63
|
-
itemSize: number;
|
|
64
|
-
};
|
|
65
|
-
static getDerivedStateFromProps(nextProps: GridViewProps, prevState: GridViewState): {
|
|
66
|
-
viewWidth: number;
|
|
67
|
-
numColumns: number | undefined;
|
|
68
|
-
} | null;
|
|
69
|
-
componentDidMount(): void;
|
|
70
|
-
componentWillUnmount(): void;
|
|
71
|
-
onOrientationChanged: () => void;
|
|
72
|
-
getDefaultViewWidth(): number;
|
|
73
|
-
getGridContainerWidth(): number;
|
|
74
|
-
calcNumberOfColumns(): number;
|
|
75
|
-
calcItemSize(): number;
|
|
76
|
-
renderLastItemOverlay(): React.JSX.Element | undefined;
|
|
77
|
-
renderItem: (item: GridListItemProps, index: number) => React.JSX.Element;
|
|
78
|
-
render(): React.JSX.Element;
|
|
79
|
-
}
|
|
80
|
-
export default GridView;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from '../../testkit/new/Component.driver';
|
|
2
|
-
export declare const HintDriver: (props: ComponentProps) => {
|
|
3
|
-
getHintBubble: () => {
|
|
4
|
-
getStyle: (flatten?: boolean) => any;
|
|
5
|
-
getElement: () => import("react-test-renderer").ReactTestInstance;
|
|
6
|
-
queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
|
|
7
|
-
exists: () => boolean;
|
|
8
|
-
};
|
|
9
|
-
getModal: () => {
|
|
10
|
-
isVisible: () => boolean;
|
|
11
|
-
pressOnBackground: () => void;
|
|
12
|
-
getElement: () => import("react-test-renderer").ReactTestInstance;
|
|
13
|
-
queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
|
|
14
|
-
exists: () => boolean;
|
|
15
|
-
};
|
|
16
|
-
getElement: () => import("react-test-renderer").ReactTestInstance;
|
|
17
|
-
queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
|
|
18
|
-
exists: () => boolean;
|
|
19
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type LayoutRectangle } from 'react-native';
|
|
3
|
-
import { LayoutStyle, HintProps, PaddingsStyle } from './types';
|
|
4
|
-
interface HintAnchorProps extends HintProps {
|
|
5
|
-
showHint: boolean;
|
|
6
|
-
isUsingModal: boolean;
|
|
7
|
-
targetLayout?: LayoutRectangle;
|
|
8
|
-
hintContainerLayout: LayoutStyle;
|
|
9
|
-
hintPadding: PaddingsStyle;
|
|
10
|
-
hintAnimatedStyle: any;
|
|
11
|
-
}
|
|
12
|
-
export default function HintAnchor({ children, showHint, isUsingModal, targetLayout, containerWidth, testID, hintContainerLayout, hintPadding, hintAnimatedStyle, style, ...others }: HintAnchorProps): React.JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View as RNView, LayoutChangeEvent } from 'react-native';
|
|
3
|
-
import { HintProps } from './types';
|
|
4
|
-
interface HintBubbleProps extends Pick<HintProps, 'testID' | 'visible' | 'message' | 'messageStyle' | 'color' | 'removePaddings' | 'enableShadow' | 'borderRadius' | 'iconStyle' | 'icon' | 'customContent'> {
|
|
5
|
-
hintRef: React.RefObject<RNView>;
|
|
6
|
-
setHintLayout: (layoutChangeEvent: LayoutChangeEvent) => void;
|
|
7
|
-
hintPositionStyle: {
|
|
8
|
-
left: number;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export default function HintBubble({ visible, message, messageStyle, icon, iconStyle, borderRadius, removePaddings, enableShadow, color, customContent, testID, hintRef, hintPositionStyle, setHintLayout }: HintBubbleProps): React.JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LayoutRectangle } from 'react-native';
|
|
3
|
-
import { HintProps } from './types';
|
|
4
|
-
interface HintMockChildrenProps extends Pick<HintProps, 'children' | 'backdropColor'> {
|
|
5
|
-
targetLayout?: LayoutRectangle;
|
|
6
|
-
}
|
|
7
|
-
export default function HintMockChildren({ children, backdropColor, targetLayout }: HintMockChildrenProps): React.JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import React, { Component, ReactElement, ElementRef } from 'react';
|
|
2
|
-
import { Animated, GestureResponderEvent, ImageSourcePropType, ImageStyle, StyleProp, TextStyle, ViewStyle, LayoutChangeEvent, View as RNView } from 'react-native';
|
|
3
|
-
declare enum TARGET_POSITIONS {
|
|
4
|
-
LEFT = "left",
|
|
5
|
-
RIGHT = "right",
|
|
6
|
-
CENTER = "center"
|
|
7
|
-
}
|
|
8
|
-
declare enum HintPositions {
|
|
9
|
-
TOP = "top",
|
|
10
|
-
BOTTOM = "bottom"
|
|
11
|
-
}
|
|
12
|
-
interface HintTargetFrame {
|
|
13
|
-
x?: number;
|
|
14
|
-
y?: number;
|
|
15
|
-
width?: number;
|
|
16
|
-
height?: number;
|
|
17
|
-
}
|
|
18
|
-
type Position = Pick<ViewStyle, 'top' | 'bottom' | 'left' | 'right'>;
|
|
19
|
-
type HintPositionStyle = Position & Pick<ViewStyle, 'alignItems'>;
|
|
20
|
-
type Paddings = Pick<ViewStyle, 'paddingLeft' | 'paddingRight' | 'paddingVertical' | 'paddingHorizontal'>;
|
|
21
|
-
type ContentType = string | ReactElement;
|
|
22
|
-
export interface HintProps {
|
|
23
|
-
/**
|
|
24
|
-
* Control the visibility of the hint
|
|
25
|
-
*/
|
|
26
|
-
visible?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* The hint background color
|
|
29
|
-
*/
|
|
30
|
-
color?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The hint message
|
|
33
|
-
*/
|
|
34
|
-
message?: ContentType | ContentType[];
|
|
35
|
-
/**
|
|
36
|
-
* The hint message custom style
|
|
37
|
-
*/
|
|
38
|
-
messageStyle?: StyleProp<TextStyle>;
|
|
39
|
-
/**
|
|
40
|
-
* Icon to show next to the hint's message
|
|
41
|
-
*/
|
|
42
|
-
icon?: ImageSourcePropType;
|
|
43
|
-
/**
|
|
44
|
-
* The icon's style
|
|
45
|
-
*/
|
|
46
|
-
iconStyle?: StyleProp<ImageStyle>;
|
|
47
|
-
/**
|
|
48
|
-
* The hint's position
|
|
49
|
-
*/
|
|
50
|
-
position?: HintPositions;
|
|
51
|
-
/**
|
|
52
|
-
* Provide custom target position instead of wrapping a child
|
|
53
|
-
*/
|
|
54
|
-
targetFrame?: HintTargetFrame;
|
|
55
|
-
/**
|
|
56
|
-
* Open the hint using a Modal component
|
|
57
|
-
*/
|
|
58
|
-
useModal?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Show side tips instead of the middle tip
|
|
61
|
-
*/
|
|
62
|
-
useSideTip?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* The hint's border radius
|
|
65
|
-
*/
|
|
66
|
-
borderRadius?: number;
|
|
67
|
-
/**
|
|
68
|
-
* Hint margins from screen edges
|
|
69
|
-
*/
|
|
70
|
-
edgeMargins?: number;
|
|
71
|
-
/**
|
|
72
|
-
* Hint offset from target
|
|
73
|
-
*/
|
|
74
|
-
offset?: number;
|
|
75
|
-
/**
|
|
76
|
-
* Callback for Hint press
|
|
77
|
-
*/
|
|
78
|
-
onPress?: () => void;
|
|
79
|
-
/**
|
|
80
|
-
* Callback for the background press
|
|
81
|
-
*/
|
|
82
|
-
onBackgroundPress?: (event: GestureResponderEvent) => void;
|
|
83
|
-
/**
|
|
84
|
-
* Color for background overlay (require onBackgroundPress)
|
|
85
|
-
*/
|
|
86
|
-
backdropColor?: string;
|
|
87
|
-
/**
|
|
88
|
-
* The hint container width
|
|
89
|
-
*/
|
|
90
|
-
containerWidth?: number;
|
|
91
|
-
/**
|
|
92
|
-
* Custom content element to render inside the hint container
|
|
93
|
-
*/
|
|
94
|
-
customContent?: JSX.Element;
|
|
95
|
-
/**
|
|
96
|
-
* Remove all hint's paddings
|
|
97
|
-
*/
|
|
98
|
-
removePaddings?: boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Enable shadow (for hint with white background only)
|
|
101
|
-
*/
|
|
102
|
-
enableShadow?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* The hint's test identifier
|
|
105
|
-
*/
|
|
106
|
-
testID?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Additional styling
|
|
109
|
-
*/
|
|
110
|
-
style?: StyleProp<ViewStyle>;
|
|
111
|
-
children?: React.ReactNode;
|
|
112
|
-
}
|
|
113
|
-
interface HintState {
|
|
114
|
-
targetLayout?: HintTargetFrame;
|
|
115
|
-
targetLayoutInWindow?: HintTargetFrame;
|
|
116
|
-
hintUnmounted: boolean;
|
|
117
|
-
hintMessageWidth?: number;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* @description: Hint component for displaying a tooltip over wrapped component
|
|
121
|
-
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/HintsScreen.tsx
|
|
122
|
-
* @notes: You can either wrap a component or pass a specific targetFrame
|
|
123
|
-
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Hint/Hint.gif?raw=true
|
|
124
|
-
*/
|
|
125
|
-
declare class Hint extends Component<HintProps, HintState> {
|
|
126
|
-
static displayName: string;
|
|
127
|
-
static defaultProps: {
|
|
128
|
-
position: HintPositions;
|
|
129
|
-
useModal: boolean;
|
|
130
|
-
};
|
|
131
|
-
static positions: typeof HintPositions;
|
|
132
|
-
targetRef: ElementRef<typeof RNView> | null;
|
|
133
|
-
hintRef: React.RefObject<RNView>;
|
|
134
|
-
animationDuration: number;
|
|
135
|
-
state: {
|
|
136
|
-
targetLayoutInWindow: {
|
|
137
|
-
x: number;
|
|
138
|
-
y: number;
|
|
139
|
-
width: number;
|
|
140
|
-
height: number;
|
|
141
|
-
} | undefined;
|
|
142
|
-
targetLayout: HintTargetFrame | undefined;
|
|
143
|
-
hintUnmounted: boolean;
|
|
144
|
-
hintMessageWidth: undefined;
|
|
145
|
-
};
|
|
146
|
-
visibleAnimated: Animated.Value;
|
|
147
|
-
componentDidMount(): void;
|
|
148
|
-
componentDidUpdate(prevProps: HintProps): void;
|
|
149
|
-
animateHint: () => void;
|
|
150
|
-
toggleAnimationEndedToRemoveHint: () => void;
|
|
151
|
-
focusAccessibilityOnHint: () => void;
|
|
152
|
-
setTargetRef: (ref: ElementRef<typeof RNView>) => void;
|
|
153
|
-
setHintLayout: ({ nativeEvent: { layout } }: LayoutChangeEvent) => void;
|
|
154
|
-
onTargetLayout: ({ nativeEvent: { layout } }: LayoutChangeEvent) => void;
|
|
155
|
-
getAccessibilityInfo(): {
|
|
156
|
-
accessible: boolean;
|
|
157
|
-
accessibilityLabel: string;
|
|
158
|
-
} | undefined;
|
|
159
|
-
get containerWidth(): number;
|
|
160
|
-
get targetLayout(): HintTargetFrame | undefined;
|
|
161
|
-
get showHint(): boolean;
|
|
162
|
-
get tipSize(): {
|
|
163
|
-
width: number;
|
|
164
|
-
height: number;
|
|
165
|
-
};
|
|
166
|
-
get hintOffset(): number;
|
|
167
|
-
get edgeMargins(): number;
|
|
168
|
-
get shouldUseSideTip(): boolean;
|
|
169
|
-
get isShortMessage(): undefined;
|
|
170
|
-
getTargetPositionOnScreen(): TARGET_POSITIONS;
|
|
171
|
-
getContainerPosition(): {
|
|
172
|
-
top: number | undefined;
|
|
173
|
-
left: number | undefined;
|
|
174
|
-
} | undefined;
|
|
175
|
-
getHintPosition(): HintPositionStyle;
|
|
176
|
-
getHintPadding(): Paddings;
|
|
177
|
-
getHintAnimatedStyle: () => {
|
|
178
|
-
opacity: Animated.Value;
|
|
179
|
-
transform: {
|
|
180
|
-
translateY: Animated.AnimatedInterpolation<string | number>;
|
|
181
|
-
}[];
|
|
182
|
-
};
|
|
183
|
-
getTipPosition(): Position;
|
|
184
|
-
getHintOffsetForShortMessage: () => number;
|
|
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;
|
|
192
|
-
renderChildren(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
193
|
-
render(): string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
|
|
194
|
-
}
|
|
195
|
-
declare const _default: React.ForwardRefExoticComponent<HintProps & React.RefAttributes<any>> & typeof Hint;
|
|
196
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from 'react';
|
|
2
|
-
import { View as RNView } from 'react-native';
|
|
3
|
-
import { HintProps } from '../types';
|
|
4
|
-
export default function useHintAccessibility(message?: HintProps['message']): {
|
|
5
|
-
focusAccessibilityOnHint: (targetRef: ElementRef<typeof RNView>, hintRef: ElementRef<typeof RNView>) => void;
|
|
6
|
-
accessibilityInfo: {
|
|
7
|
-
accessible: boolean;
|
|
8
|
-
accessibilityLabel: string;
|
|
9
|
-
} | undefined;
|
|
10
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { LayoutChangeEvent, LayoutRectangle, View as RNView } from 'react-native';
|
|
3
|
-
import { HintProps } from '../types';
|
|
4
|
-
type UseHintLayoutProps = Pick<HintProps, 'onBackgroundPress' | 'targetFrame'>;
|
|
5
|
-
export default function useHintLayout({ onBackgroundPress, targetFrame }: UseHintLayoutProps): {
|
|
6
|
-
targetLayoutState: LayoutRectangle | undefined;
|
|
7
|
-
targetLayoutInWindowState: LayoutRectangle | undefined;
|
|
8
|
-
hintMessageWidth: number | undefined;
|
|
9
|
-
targetRef: import("react").MutableRefObject<RNView | null>;
|
|
10
|
-
onTargetLayout: ({ nativeEvent: { layout } }: LayoutChangeEvent) => void;
|
|
11
|
-
setHintLayout: ({ nativeEvent: { layout } }: LayoutChangeEvent) => void;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { LayoutRectangle } from 'react-native';
|
|
2
|
-
import { LayoutStyle, PositionStyle, PaddingsStyle, TargetAlignments, HintProps } from '../types';
|
|
3
|
-
interface UseHintPositionProps extends Pick<HintProps, 'position' | 'useSideTip'> {
|
|
4
|
-
isUsingModal: boolean;
|
|
5
|
-
targetLayoutState?: LayoutRectangle;
|
|
6
|
-
targetLayoutInWindowState?: LayoutRectangle;
|
|
7
|
-
containerWidth: number;
|
|
8
|
-
edgeMargins: number;
|
|
9
|
-
offset: number;
|
|
10
|
-
hintMessageWidth?: number;
|
|
11
|
-
}
|
|
12
|
-
export default function useHintPosition({ isUsingModal, targetLayoutState, targetLayoutInWindowState, position, containerWidth, useSideTip, offset, edgeMargins, hintMessageWidth }: UseHintPositionProps): {
|
|
13
|
-
tipSize: {
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
16
|
-
};
|
|
17
|
-
targetAlignmentOnScreen: TargetAlignments;
|
|
18
|
-
hintContainerLayout: LayoutStyle;
|
|
19
|
-
tipPositionStyle: PositionStyle;
|
|
20
|
-
hintPadding: PaddingsStyle;
|
|
21
|
-
hintPositionStyle: {
|
|
22
|
-
left: number;
|
|
23
|
-
};
|
|
24
|
-
targetScreenToRelativeOffset: {
|
|
25
|
-
left: number;
|
|
26
|
-
top: number;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { HintPositions, HintProps } from './types';
|
|
3
|
-
declare const Hint: {
|
|
4
|
-
(props: HintProps): string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
|
|
5
|
-
displayName: string;
|
|
6
|
-
positions: typeof HintPositions;
|
|
7
|
-
};
|
|
8
|
-
export { HintProps, Hint };
|
|
9
|
-
declare const _default: React.ForwardRefExoticComponent<HintProps & React.RefAttributes<any>> & {
|
|
10
|
-
(props: HintProps): string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
|
|
11
|
-
displayName: string;
|
|
12
|
-
positions: typeof HintPositions;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
|
-
import type { GestureResponderEvent, ImageSourcePropType, ImageStyle, LayoutRectangle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
-
export type PositionStyle = Pick<ViewStyle, 'top' | 'bottom' | 'left' | 'right'>;
|
|
4
|
-
export type LayoutStyle = PositionStyle & Pick<ViewStyle, 'alignItems'>;
|
|
5
|
-
export type PaddingsStyle = Pick<ViewStyle, 'paddingLeft' | 'paddingRight' | 'paddingVertical' | 'paddingHorizontal'>;
|
|
6
|
-
export type ContentType = string | ReactElement;
|
|
7
|
-
export declare enum TargetAlignments {
|
|
8
|
-
LEFT = "left",
|
|
9
|
-
RIGHT = "right",
|
|
10
|
-
CENTER = "center"
|
|
11
|
-
}
|
|
12
|
-
export declare enum HintPositions {
|
|
13
|
-
TOP = "top",
|
|
14
|
-
BOTTOM = "bottom"
|
|
15
|
-
}
|
|
16
|
-
export interface HintProps {
|
|
17
|
-
/**
|
|
18
|
-
* Control the visibility of the hint
|
|
19
|
-
*/
|
|
20
|
-
visible?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* The hint background color
|
|
23
|
-
*/
|
|
24
|
-
color?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The hint message
|
|
27
|
-
*/
|
|
28
|
-
message?: ContentType | ContentType[];
|
|
29
|
-
/**
|
|
30
|
-
* The hint message custom style
|
|
31
|
-
*/
|
|
32
|
-
messageStyle?: StyleProp<TextStyle>;
|
|
33
|
-
/**
|
|
34
|
-
* Icon to show next to the hint's message
|
|
35
|
-
*/
|
|
36
|
-
icon?: ImageSourcePropType;
|
|
37
|
-
/**
|
|
38
|
-
* The icon's style
|
|
39
|
-
*/
|
|
40
|
-
iconStyle?: StyleProp<ImageStyle>;
|
|
41
|
-
/**
|
|
42
|
-
* The hint's position
|
|
43
|
-
*/
|
|
44
|
-
position?: HintPositions;
|
|
45
|
-
/**
|
|
46
|
-
* Provide custom target position instead of wrapping a child
|
|
47
|
-
*/
|
|
48
|
-
targetFrame?: LayoutRectangle;
|
|
49
|
-
/**
|
|
50
|
-
* Open the hint using a Modal component
|
|
51
|
-
*/
|
|
52
|
-
useModal?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Show side tips instead of the middle tip
|
|
55
|
-
*/
|
|
56
|
-
useSideTip?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* The hint's border radius
|
|
59
|
-
*/
|
|
60
|
-
borderRadius?: number;
|
|
61
|
-
/**
|
|
62
|
-
* Hint margins from screen edges
|
|
63
|
-
*/
|
|
64
|
-
edgeMargins?: number;
|
|
65
|
-
/**
|
|
66
|
-
* Hint offset from target
|
|
67
|
-
*/
|
|
68
|
-
offset?: number;
|
|
69
|
-
/**
|
|
70
|
-
* Callback for Hint press
|
|
71
|
-
*/
|
|
72
|
-
onPress?: () => void;
|
|
73
|
-
/**
|
|
74
|
-
* Callback for the background press
|
|
75
|
-
*/
|
|
76
|
-
onBackgroundPress?: (event: GestureResponderEvent) => void;
|
|
77
|
-
/**
|
|
78
|
-
* Color for background overlay (require onBackgroundPress)
|
|
79
|
-
*/
|
|
80
|
-
backdropColor?: string;
|
|
81
|
-
/**
|
|
82
|
-
* The hint container width
|
|
83
|
-
*/
|
|
84
|
-
containerWidth?: number;
|
|
85
|
-
/**
|
|
86
|
-
* Custom content element to render inside the hint container
|
|
87
|
-
*/
|
|
88
|
-
customContent?: JSX.Element;
|
|
89
|
-
/**
|
|
90
|
-
* Remove all hint's paddings
|
|
91
|
-
*/
|
|
92
|
-
removePaddings?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Enable shadow (for hint with white background only)
|
|
95
|
-
*/
|
|
96
|
-
enableShadow?: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* The hint's test identifier
|
|
99
|
-
*/
|
|
100
|
-
testID?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Additional styling
|
|
103
|
-
*/
|
|
104
|
-
style?: StyleProp<ViewStyle>;
|
|
105
|
-
children?: React.ReactNode;
|
|
106
|
-
}
|