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
package/src/assets/index.d.ts
DELETED
package/src/commons/Config.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { SchemeType } from '../style';
|
|
2
|
-
interface ConfigOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Should use platform colors for design tokens
|
|
5
|
-
*/
|
|
6
|
-
usePlatformColors?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Whether to scheme from local storage
|
|
9
|
-
*/
|
|
10
|
-
useLocalScheme?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* The app's colors scheme (default | light | dark)
|
|
13
|
-
*/
|
|
14
|
-
appScheme?: SchemeType;
|
|
15
|
-
}
|
|
16
|
-
declare class Config {
|
|
17
|
-
usePlatformColors?: boolean;
|
|
18
|
-
useLocalScheme?: boolean;
|
|
19
|
-
appScheme: SchemeType;
|
|
20
|
-
constructor();
|
|
21
|
-
setConfig(options: ConfigOptions): Promise<void>;
|
|
22
|
-
}
|
|
23
|
-
declare const _default: Config;
|
|
24
|
-
export default _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export declare enum orientations {
|
|
2
|
-
PORTRAIT = "portrait",
|
|
3
|
-
LANDSCAPE = "landscape"
|
|
4
|
-
}
|
|
5
|
-
export interface Breakpoint {
|
|
6
|
-
breakpoint: number;
|
|
7
|
-
pageMargin: number;
|
|
8
|
-
}
|
|
9
|
-
declare let defaultMargin: number;
|
|
10
|
-
export declare function updateConstants(dimensions: any): void;
|
|
11
|
-
declare const constants: {
|
|
12
|
-
orientations: typeof orientations;
|
|
13
|
-
isAndroid: boolean;
|
|
14
|
-
isIOS: boolean;
|
|
15
|
-
isWeb: boolean;
|
|
16
|
-
getAndroidVersion: () => number | undefined;
|
|
17
|
-
readonly statusBarHeight: number;
|
|
18
|
-
isRTL: boolean;
|
|
19
|
-
readonly orientation: orientations;
|
|
20
|
-
readonly isLandscape: boolean;
|
|
21
|
-
readonly screenWidth: number;
|
|
22
|
-
readonly screenHeight: number;
|
|
23
|
-
readonly windowWidth: number;
|
|
24
|
-
readonly windowHeight: number;
|
|
25
|
-
readonly isSmallWindow: boolean;
|
|
26
|
-
readonly isSmallScreen: boolean;
|
|
27
|
-
readonly isShortScreen: boolean;
|
|
28
|
-
readonly isWideScreen: boolean;
|
|
29
|
-
readonly screenAspectRatio: number;
|
|
30
|
-
isTablet: boolean;
|
|
31
|
-
setBreakpoints(value: Breakpoint[], options?: {
|
|
32
|
-
defaultMargin: number;
|
|
33
|
-
}): void;
|
|
34
|
-
getPageMargins(): number;
|
|
35
|
-
getSafeAreaInsets: () => {
|
|
36
|
-
left: number;
|
|
37
|
-
right: number;
|
|
38
|
-
bottom: number;
|
|
39
|
-
top: number;
|
|
40
|
-
};
|
|
41
|
-
readonly isIphoneX: boolean;
|
|
42
|
-
dimensionsEventListener: undefined;
|
|
43
|
-
addDimensionsEventListener: (callback: any) => import("react-native").EmitterSubscription;
|
|
44
|
-
removeDimensionsEventListener: (callback: any) => void;
|
|
45
|
-
readonly accessibility: {
|
|
46
|
-
isReduceMotionEnabled: boolean;
|
|
47
|
-
isScreenReaderEnabled: boolean;
|
|
48
|
-
};
|
|
49
|
-
backspaceKey: string;
|
|
50
|
-
enterKey: string;
|
|
51
|
-
getFontScale: () => number;
|
|
52
|
-
};
|
|
53
|
-
export default constants;
|
|
54
|
-
export declare const _reset: () => void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as Modifiers from './modifiers';
|
|
3
|
-
export interface BaseComponentInjectedProps {
|
|
4
|
-
/**
|
|
5
|
-
* All generated styles from the modifiers props
|
|
6
|
-
*/
|
|
7
|
-
modifiers: ReturnType<typeof Modifiers.generateModifiersStyle>;
|
|
8
|
-
}
|
|
9
|
-
export interface AsBaseComponentOptions {
|
|
10
|
-
ignoreModifiers?: boolean;
|
|
11
|
-
ignoreTheme?: boolean;
|
|
12
|
-
modifiersOptions?: Modifiers.ModifiersOptions;
|
|
13
|
-
}
|
|
14
|
-
declare function asBaseComponent<PROPS, STATICS = {}, RefInterface = any>(WrappedComponent: React.ComponentType<any>, options?: AsBaseComponentOptions): React.ForwardRefExoticComponent<React.PropsWithoutRef<PROPS> & React.RefAttributes<RefInterface>> & STATICS;
|
|
15
|
-
export default asBaseComponent;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { ComponentType, ForwardedRef } from 'react';
|
|
2
|
-
export interface ForwardRefInjectedProps<T = any> {
|
|
3
|
-
/**
|
|
4
|
-
* The forwarded ref of the containing element
|
|
5
|
-
*/
|
|
6
|
-
forwardedRef: ForwardedRef<T>;
|
|
7
|
-
}
|
|
8
|
-
export default function forwardRef<P, STATICS = {}, RefInterface = any>(WrappedComponent: ComponentType<P & ForwardRefInjectedProps<RefInterface>>): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<RefInterface>> & STATICS;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import _ from 'lodash';
|
|
2
|
-
import { DesignTokens } from '../style';
|
|
3
|
-
import { BorderRadiusesLiterals } from '../style/borderRadiuses';
|
|
4
|
-
import TypographyPresets from '../style/typographyPresets';
|
|
5
|
-
import { colorsPalette } from '../style/colorsPalette';
|
|
6
|
-
import type { Dictionary } from '../typings/common';
|
|
7
|
-
export declare const FLEX_KEY_PATTERN: RegExp;
|
|
8
|
-
export declare const PADDING_KEY_PATTERN: RegExp;
|
|
9
|
-
export declare const MARGIN_KEY_PATTERN: RegExp;
|
|
10
|
-
export declare const ALIGNMENT_KEY_PATTERN: RegExp;
|
|
11
|
-
export declare const POSITION_KEY_PATTERN: RegExp;
|
|
12
|
-
export declare const GAP_KEY_PATTERN: RegExp;
|
|
13
|
-
export interface AlteredOptions {
|
|
14
|
-
flex?: boolean;
|
|
15
|
-
alignments?: boolean;
|
|
16
|
-
paddings?: boolean;
|
|
17
|
-
margins?: boolean;
|
|
18
|
-
backgroundColor?: boolean;
|
|
19
|
-
position?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface ExtractedStyle {
|
|
22
|
-
color?: ReturnType<typeof extractColorValue>;
|
|
23
|
-
typography?: ReturnType<typeof extractTypographyValue>;
|
|
24
|
-
backgroundColor?: ReturnType<typeof extractBackgroundColorValue>;
|
|
25
|
-
borderRadius?: ReturnType<typeof extractBorderRadiusValue>;
|
|
26
|
-
paddings?: ReturnType<typeof extractPaddingValues>;
|
|
27
|
-
margins?: ReturnType<typeof extractMarginValues>;
|
|
28
|
-
alignments?: ReturnType<typeof extractAlignmentsValues>;
|
|
29
|
-
flexStyle?: ReturnType<typeof extractFlexStyle>;
|
|
30
|
-
positionStyle?: ReturnType<typeof extractPositionStyle>;
|
|
31
|
-
gap?: ReturnType<typeof extractGapValues>;
|
|
32
|
-
}
|
|
33
|
-
export type ModifiersOptions = {
|
|
34
|
-
color?: boolean;
|
|
35
|
-
typography?: boolean;
|
|
36
|
-
backgroundColor?: boolean;
|
|
37
|
-
borderRadius?: boolean;
|
|
38
|
-
paddings?: boolean;
|
|
39
|
-
margins?: boolean;
|
|
40
|
-
alignments?: boolean;
|
|
41
|
-
flex?: boolean;
|
|
42
|
-
position?: boolean;
|
|
43
|
-
gap?: boolean;
|
|
44
|
-
};
|
|
45
|
-
declare const PADDING_VARIATIONS: {
|
|
46
|
-
readonly padding: "padding";
|
|
47
|
-
readonly paddingL: "paddingLeft";
|
|
48
|
-
readonly paddingT: "paddingTop";
|
|
49
|
-
readonly paddingR: "paddingRight";
|
|
50
|
-
readonly paddingB: "paddingBottom";
|
|
51
|
-
readonly paddingH: "paddingHorizontal";
|
|
52
|
-
readonly paddingV: "paddingVertical";
|
|
53
|
-
};
|
|
54
|
-
declare const MARGIN_VARIATIONS: {
|
|
55
|
-
readonly margin: "margin";
|
|
56
|
-
readonly marginL: "marginLeft";
|
|
57
|
-
readonly marginT: "marginTop";
|
|
58
|
-
readonly marginR: "marginRight";
|
|
59
|
-
readonly marginB: "marginBottom";
|
|
60
|
-
readonly marginH: "marginHorizontal";
|
|
61
|
-
readonly marginV: "marginVertical";
|
|
62
|
-
};
|
|
63
|
-
declare const STYLE_KEY_CONVERTERS: {
|
|
64
|
-
readonly flex: "flex";
|
|
65
|
-
readonly flexG: "flexGrow";
|
|
66
|
-
readonly flexS: "flexShrink";
|
|
67
|
-
};
|
|
68
|
-
export type PaddingLiterals = keyof typeof PADDING_VARIATIONS;
|
|
69
|
-
export type NativePaddingKeyType = (typeof PADDING_VARIATIONS)[PaddingLiterals];
|
|
70
|
-
export type MarginLiterals = keyof typeof MARGIN_VARIATIONS;
|
|
71
|
-
export type NativeMarginModifierKeyType = (typeof MARGIN_VARIATIONS)[MarginLiterals];
|
|
72
|
-
export type FlexLiterals = keyof typeof STYLE_KEY_CONVERTERS;
|
|
73
|
-
export type NativeFlexModifierKeyType = (typeof STYLE_KEY_CONVERTERS)[FlexLiterals];
|
|
74
|
-
export type ColorLiterals = keyof (typeof colorsPalette & typeof DesignTokens);
|
|
75
|
-
export type TypographyLiterals = keyof typeof TypographyPresets;
|
|
76
|
-
export type BorderRadiusLiterals = keyof typeof BorderRadiusesLiterals;
|
|
77
|
-
export type AlignmentLiterals = 'row' | 'spread' | 'center' | 'centerH' | 'centerV' | 'left' | 'right' | 'top' | 'bottom';
|
|
78
|
-
export type PositionLiterals = 'absF' | 'absL' | 'absR' | 'absT' | 'absB' | 'absV' | 'absH';
|
|
79
|
-
export type GapLiterals = 'gap';
|
|
80
|
-
export type Modifier<T extends string> = Partial<Record<T, boolean>>;
|
|
81
|
-
export type CustomModifier = {
|
|
82
|
-
[key: string]: boolean;
|
|
83
|
-
};
|
|
84
|
-
export type TypographyModifiers = Modifier<TypographyLiterals> | CustomModifier;
|
|
85
|
-
export type ColorsModifiers = Modifier<ColorLiterals> | CustomModifier;
|
|
86
|
-
export type BackgroundColorModifier = Modifier<`bg-${ColorLiterals}`>;
|
|
87
|
-
export type AlignmentModifiers = Modifier<AlignmentLiterals>;
|
|
88
|
-
export type PositionModifiers = Modifier<PositionLiterals>;
|
|
89
|
-
export type PaddingModifiers = Modifier<PaddingLiterals>;
|
|
90
|
-
export type MarginModifiers = Modifier<MarginLiterals>;
|
|
91
|
-
export type FlexModifiers = Modifier<FlexLiterals>;
|
|
92
|
-
export type BorderRadiusModifiers = Modifier<BorderRadiusLiterals>;
|
|
93
|
-
export type GapModifiers = Modifier<GapLiterals>;
|
|
94
|
-
export type ContainerModifiers = AlignmentModifiers & PositionModifiers & PaddingModifiers & MarginModifiers & FlexModifiers & BorderRadiusModifiers & BackgroundColorModifier & GapModifiers;
|
|
95
|
-
export declare function extractColorValue(props: Dictionary<any>): any;
|
|
96
|
-
export declare function extractBackgroundColorValue(props: Dictionary<any>): any;
|
|
97
|
-
export declare function extractTypographyValue(props: Dictionary<any>): object | undefined;
|
|
98
|
-
export declare function extractPaddingValues(props: Dictionary<any>): Partial<Record<NativePaddingKeyType, number>>;
|
|
99
|
-
export declare function extractMarginValues(props: Dictionary<any>): Partial<Record<NativeMarginModifierKeyType, number>>;
|
|
100
|
-
export declare function extractGapValues(props: Dictionary<any>): number | undefined;
|
|
101
|
-
export declare function extractAlignmentsValues(props: Dictionary<any>): any;
|
|
102
|
-
export declare function extractPositionStyle(props: Dictionary<any>): {} | undefined;
|
|
103
|
-
export declare function extractFlexStyle(props: Dictionary<any>): Partial<Record<NativeFlexModifierKeyType, number>> | undefined;
|
|
104
|
-
export declare function extractAccessibilityProps(props?: any): Partial<any>;
|
|
105
|
-
export declare function extractAnimationProps(props?: any): Pick<any, "animation" | "duration" | "delay" | "direction" | "easing" | "iterationCount" | "transition" | "onAnimationBegin" | "onAnimationEnd" | "useNativeDriver">;
|
|
106
|
-
export declare function extractBorderRadiusValue(props: Dictionary<any>): number | undefined;
|
|
107
|
-
export declare function extractModifierProps(props: Dictionary<any>): _.Dictionary<any>;
|
|
108
|
-
/**
|
|
109
|
-
* TODO:
|
|
110
|
-
* @deprecated switch to Modifiers#extractComponentProps
|
|
111
|
-
*/
|
|
112
|
-
export declare function extractOwnProps(props: Dictionary<any>, ignoreProps: string[]): _.Omit<_.Dictionary<any>, string>;
|
|
113
|
-
export declare function extractComponentProps(component: any, props: Dictionary<any>, ignoreProps?: string[]): _.Omit<_.Dictionary<any>, string>;
|
|
114
|
-
export declare function getComponentName(componentDisplayName: string): any;
|
|
115
|
-
export declare function getThemeProps<T extends object>(props?: T, context?: any, componentDisplayName?: string): T;
|
|
116
|
-
export declare function generateModifiersStyle(options: ModifiersOptions | undefined, props: Dictionary<any>): ExtractedStyle;
|
|
117
|
-
export declare function getAlteredModifiersOptions(currentProps: any, nextProps: any): AlteredOptions;
|
|
118
|
-
export {};
|
package/src/commons/new.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as UIComponent } from './UIComponent';
|
|
2
|
-
export { default as asBaseComponent, BaseComponentInjectedProps } from './asBaseComponent';
|
|
3
|
-
export { default as forwardRef, ForwardRefInjectedProps } from './forwardRef';
|
|
4
|
-
export { default as withScrollEnabler, WithScrollEnablerProps } from './withScrollEnabler';
|
|
5
|
-
export { default as withScrollReached, WithScrollReachedProps } from './withScrollReached';
|
|
6
|
-
export { default as Constants } from './Constants';
|
|
7
|
-
export { default as Config } from './Config';
|
|
8
|
-
export { ContainerModifiers, AlignmentModifiers, MarginModifiers, PaddingModifiers, TypographyModifiers, ColorsModifiers, BackgroundColorModifier, FlexModifiers } from './modifiers';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LayoutChangeEvent } from 'react-native';
|
|
3
|
-
type ScrollEnablerProps = {
|
|
4
|
-
onContentSizeChange: (contentWidth: number, contentHeight: number) => void;
|
|
5
|
-
onLayout: (event: LayoutChangeEvent) => void;
|
|
6
|
-
scrollEnabled: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type WithScrollEnablerProps = {
|
|
9
|
-
scrollEnablerProps: ScrollEnablerProps;
|
|
10
|
-
ref?: any;
|
|
11
|
-
};
|
|
12
|
-
declare function withScrollEnabler<PROPS, STATICS = {}>(WrappedComponent: React.ComponentType<PROPS & WithScrollEnablerProps>): React.ComponentType<PROPS> & STATICS;
|
|
13
|
-
export default withScrollEnabler;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
|
|
3
|
-
type ScrollReachedProps = {
|
|
4
|
-
onScroll: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
5
|
-
/**
|
|
6
|
-
* Is the scroll at the start (or equal\smaller than the threshold if one was given)
|
|
7
|
-
*/
|
|
8
|
-
isScrollAtStart?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Is the scroll at the end (or equal\greater than the threshold if one was given)
|
|
11
|
-
*/
|
|
12
|
-
isScrollAtEnd?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export type WithScrollReachedOptionsProps = {
|
|
15
|
-
/**
|
|
16
|
-
* Whether the scroll is horizontal.
|
|
17
|
-
*/
|
|
18
|
-
horizontal?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Allows to be notified prior to actually reaching the start \ end of the scroll (by the threshold).
|
|
21
|
-
* Should be a positive value.
|
|
22
|
-
*/
|
|
23
|
-
threshold?: number;
|
|
24
|
-
};
|
|
25
|
-
export type WithScrollReachedProps = {
|
|
26
|
-
scrollReachedProps: ScrollReachedProps;
|
|
27
|
-
ref?: any;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @description: Add scroll reached which notifies on reaching start \ end of ScrollView \ FlatList
|
|
31
|
-
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/WithScrollReachedScreen.tsx
|
|
32
|
-
* @notes: Send `props.scrollReachedProps.onScroll` to your onScroll and receive via props.scrollReachedProps.isScrollAtStart props.scrollReachedProps.isScrollAtEnd
|
|
33
|
-
*/
|
|
34
|
-
declare function withScrollReached<PROPS, STATICS = {}>(WrappedComponent: React.ComponentType<PROPS & WithScrollReachedProps>, options?: WithScrollReachedOptionsProps): React.ComponentType<PROPS> & STATICS;
|
|
35
|
-
export default withScrollReached;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TextStyle } from 'react-native';
|
|
3
|
-
import Animated from 'react-native-reanimated';
|
|
4
|
-
import { TextProps } from '../text';
|
|
5
|
-
import { WheelPickerAlign, WheelPickerItemValue } from './types';
|
|
6
|
-
export interface WheelPickerItemProps<T = WheelPickerItemValue> {
|
|
7
|
-
label: string;
|
|
8
|
-
value: T;
|
|
9
|
-
align?: WheelPickerAlign;
|
|
10
|
-
disableRTL?: boolean;
|
|
11
|
-
}
|
|
12
|
-
interface InternalProps<T> extends WheelPickerItemProps<T> {
|
|
13
|
-
index: number;
|
|
14
|
-
offset: Animated.SharedValue<number>;
|
|
15
|
-
itemHeight: number;
|
|
16
|
-
activeColor?: string;
|
|
17
|
-
inactiveColor?: string;
|
|
18
|
-
style?: TextStyle;
|
|
19
|
-
onSelect: (index: number) => void;
|
|
20
|
-
onPress?: () => void;
|
|
21
|
-
centerH?: boolean;
|
|
22
|
-
fakeLabel?: string;
|
|
23
|
-
fakeLabelStyle?: TextStyle;
|
|
24
|
-
fakeLabelProps?: TextProps;
|
|
25
|
-
testID?: string;
|
|
26
|
-
}
|
|
27
|
-
declare const _default: React.MemoExoticComponent<(<T extends WheelPickerItemValue = number>(props: InternalProps<T>) => React.JSX.Element)>;
|
|
28
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from '../../testkit/new/Component.driver';
|
|
2
|
-
export declare const WheelPickerDriver: (props: ComponentProps) => {
|
|
3
|
-
getListHeight: () => any;
|
|
4
|
-
moveToItem: (index: number, itemHeight?: number, numberOfRows?: number) => void;
|
|
5
|
-
getLabel: () => string | (string | import("react-test-renderer").ReactTestInstance)[];
|
|
6
|
-
scroll: (contentOffset: Partial<import("react-native/types").NativeScrollPoint>, options?: {
|
|
7
|
-
contentInset: import("react-native/types").NativeScrollRectangle;
|
|
8
|
-
zoomScale: number;
|
|
9
|
-
layoutMeasurement: import("react-native/types").NativeScrollSize;
|
|
10
|
-
contentSize: import("react-native/types").NativeScrollSize;
|
|
11
|
-
velocity?: import("react-native/types").NativeScrollVelocity | undefined;
|
|
12
|
-
targetContentOffset?: import("react-native/types").NativeScrollPoint | undefined;
|
|
13
|
-
} | undefined) => void;
|
|
14
|
-
triggerEvent: (eventName?: string | undefined, event?: Partial<import("react-native/types").NativeScrollEvent> | undefined) => void;
|
|
15
|
-
getElement: () => import("react-test-renderer").ReactTestInstance;
|
|
16
|
-
queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
|
|
17
|
-
exists: () => boolean;
|
|
18
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from '../../testkit/new/Component.driver';
|
|
2
|
-
export declare const WheelPickerItemDriver: (props: ComponentProps) => {
|
|
3
|
-
getLabel: () => string | (string | import("react-test-renderer").ReactTestInstance)[];
|
|
4
|
-
getLabelStyle: () => import("react-native/types").TextStyle;
|
|
5
|
-
getElement: () => import("react-test-renderer").ReactTestInstance;
|
|
6
|
-
queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
|
|
7
|
-
exists: () => boolean;
|
|
8
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TextStyle, ViewStyle, FlatListProps } from 'react-native';
|
|
3
|
-
import { TextProps } from '../text';
|
|
4
|
-
import { FaderProps } from '../fader';
|
|
5
|
-
import { WheelPickerItemProps } from './Item';
|
|
6
|
-
import { WheelPickerAlign, WheelPickerItemValue } from './types';
|
|
7
|
-
export { WheelPickerAlign, WheelPickerItemValue };
|
|
8
|
-
export declare const ITEM_HEIGHT = 44;
|
|
9
|
-
export type WheelPickerProps<T = WheelPickerItemValue> = {
|
|
10
|
-
/**
|
|
11
|
-
* Initial value
|
|
12
|
-
*/
|
|
13
|
-
initialValue?: T;
|
|
14
|
-
/**
|
|
15
|
-
* Data source for WheelPicker
|
|
16
|
-
*/
|
|
17
|
-
items?: WheelPickerItemProps<T>[];
|
|
18
|
-
/**
|
|
19
|
-
* Describe the height of each item in the WheelPicker
|
|
20
|
-
* default value: 44
|
|
21
|
-
*/
|
|
22
|
-
itemHeight?: number;
|
|
23
|
-
/**
|
|
24
|
-
* Describe the number of rows visible
|
|
25
|
-
* default value: 5
|
|
26
|
-
*/
|
|
27
|
-
numberOfVisibleRows?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Text color for the focused row
|
|
30
|
-
*/
|
|
31
|
-
activeTextColor?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Text color for other, non-focused rows
|
|
34
|
-
*/
|
|
35
|
-
inactiveTextColor?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Row text style
|
|
38
|
-
*/
|
|
39
|
-
textStyle?: Omit<TextStyle, 'color'>;
|
|
40
|
-
/**
|
|
41
|
-
* Additional label on the right of the item text
|
|
42
|
-
*/
|
|
43
|
-
label?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The Additional label's style
|
|
46
|
-
*/
|
|
47
|
-
labelStyle?: TextStyle;
|
|
48
|
-
/**
|
|
49
|
-
* The Additional label's props
|
|
50
|
-
*/
|
|
51
|
-
labelProps?: TextProps;
|
|
52
|
-
/**
|
|
53
|
-
* Event, on active row change
|
|
54
|
-
*/
|
|
55
|
-
onChange?: (item: T, index: number) => void;
|
|
56
|
-
/**
|
|
57
|
-
* Container's ViewStyle, height is computed according to itemHeight * numberOfVisibleRows
|
|
58
|
-
*/
|
|
59
|
-
style?: Omit<ViewStyle, 'height'>;
|
|
60
|
-
/**
|
|
61
|
-
* Support passing items as children props
|
|
62
|
-
*/
|
|
63
|
-
children?: JSX.Element | JSX.Element[];
|
|
64
|
-
/**
|
|
65
|
-
* Align the content to center, right ot left (default: center)
|
|
66
|
-
*/
|
|
67
|
-
align?: WheelPickerAlign;
|
|
68
|
-
disableRTL?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Extra style for the separators
|
|
71
|
-
*/
|
|
72
|
-
separatorsStyle?: ViewStyle;
|
|
73
|
-
testID?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Change the default (white) tint color of the fade view.
|
|
76
|
-
*/
|
|
77
|
-
faderProps?: Omit<FaderProps, 'visible' | 'position'>;
|
|
78
|
-
/**
|
|
79
|
-
* Props to be sent to the FlatList
|
|
80
|
-
*/
|
|
81
|
-
flatListProps?: Partial<FlatListProps<WheelPickerItemProps<T>>>;
|
|
82
|
-
};
|
|
83
|
-
declare const WheelPicker: {
|
|
84
|
-
<T extends WheelPickerItemValue>(props: WheelPickerProps<T>): React.JSX.Element;
|
|
85
|
-
alignments: typeof WheelPickerAlign;
|
|
86
|
-
};
|
|
87
|
-
export default WheelPicker;
|
|
88
|
-
export { WheelPickerItemProps };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { WheelPickerItemValue } from './types';
|
|
3
|
-
import { WheelPickerItemProps } from './Item';
|
|
4
|
-
type PropTypes<T> = {
|
|
5
|
-
initialValue?: T;
|
|
6
|
-
children?: JSX.Element | JSX.Element[];
|
|
7
|
-
items?: WheelPickerItemProps<T>[];
|
|
8
|
-
itemHeight: number;
|
|
9
|
-
preferredNumVisibleRows: number;
|
|
10
|
-
};
|
|
11
|
-
type RowItem<T> = {
|
|
12
|
-
value: T;
|
|
13
|
-
index: number;
|
|
14
|
-
};
|
|
15
|
-
declare const usePresenter: <T extends WheelPickerItemValue>({ initialValue, children, items: propItems, itemHeight, preferredNumVisibleRows }: PropTypes<T>) => {
|
|
16
|
-
index: number | undefined;
|
|
17
|
-
items: WheelPickerItemProps<T>[];
|
|
18
|
-
height: number;
|
|
19
|
-
getRowItemAtOffset: (offset: number) => RowItem<T>;
|
|
20
|
-
};
|
|
21
|
-
export default usePresenter;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ViewStyle } from 'react-native';
|
|
3
|
-
import { ButtonProps } from '../button';
|
|
4
|
-
export type ActionBarProps = {
|
|
5
|
-
/**
|
|
6
|
-
* action bar height
|
|
7
|
-
*/
|
|
8
|
-
height?: number;
|
|
9
|
-
/**
|
|
10
|
-
* action bar background color
|
|
11
|
-
*/
|
|
12
|
-
backgroundColor?: string;
|
|
13
|
-
/**
|
|
14
|
-
* actions for the action bar
|
|
15
|
-
*/
|
|
16
|
-
actions: ButtonProps[];
|
|
17
|
-
/**
|
|
18
|
-
* should action be equally centered
|
|
19
|
-
*/
|
|
20
|
-
centered?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* use safe area, in case action bar attached to the bottom (default: true)
|
|
23
|
-
*/
|
|
24
|
-
useSafeArea?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* keep the action bar position relative instead of it absolute position
|
|
27
|
-
*/
|
|
28
|
-
keepRelative?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* style the action bar
|
|
31
|
-
*/
|
|
32
|
-
style?: ViewStyle;
|
|
33
|
-
};
|
|
34
|
-
declare const _default: React.ForwardRefExoticComponent<ActionBarProps & React.RefAttributes<any>>;
|
|
35
|
-
export default _default;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { ButtonProps } from '../button';
|
|
4
|
-
import { type DialogProps } from '../dialog';
|
|
5
|
-
type ActionSheetOnOptionPress = (index: number) => void;
|
|
6
|
-
type ActionSheetProps = {
|
|
7
|
-
/**
|
|
8
|
-
* Whether to show the action sheet or not
|
|
9
|
-
*/
|
|
10
|
-
visible: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Title of the action sheet. Note: if both title and message are not passed will not render the title view at all
|
|
13
|
-
*/
|
|
14
|
-
title?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Message of the action sheet
|
|
17
|
-
*/
|
|
18
|
-
message?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Index of the option represents the cancel action (to be displayed as the separated bottom bold button)
|
|
21
|
-
*/
|
|
22
|
-
cancelButtonIndex?: number;
|
|
23
|
-
/**
|
|
24
|
-
* Index of the option represents the destructive action (will display red text. Usually used for 'delete' or
|
|
25
|
-
* 'abort' actions)
|
|
26
|
-
*/
|
|
27
|
-
destructiveButtonIndex?: number;
|
|
28
|
-
/**
|
|
29
|
-
* List of options for the action sheet, follows the Button prop types (supply 'label' string and 'onPress'
|
|
30
|
-
* function)
|
|
31
|
-
*/
|
|
32
|
-
options?: Array<ButtonProps>;
|
|
33
|
-
/**
|
|
34
|
-
* callback for when dismissing the action sheet, usually used for setting visible prop to false
|
|
35
|
-
*/
|
|
36
|
-
onDismiss?: DialogProps['onDismiss'];
|
|
37
|
-
/**
|
|
38
|
-
* Should use the native action sheet for iOS
|
|
39
|
-
*/
|
|
40
|
-
useNativeIOS?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* When passed (only with useNativeIOS), will display a cancel button at the bottom (overrides cancelButtonIndex)
|
|
43
|
-
*/
|
|
44
|
-
showCancelButton?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Add or override style of the action sheet (wraps the title and actions)
|
|
47
|
-
*/
|
|
48
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
49
|
-
/**
|
|
50
|
-
* Add or override style of the dialog wrapping the action sheet
|
|
51
|
-
*/
|
|
52
|
-
dialogStyle?: StyleProp<ViewStyle>;
|
|
53
|
-
/**
|
|
54
|
-
* Add or override style of the options list
|
|
55
|
-
*/
|
|
56
|
-
optionsStyle?: StyleProp<ViewStyle>;
|
|
57
|
-
/**
|
|
58
|
-
* Render custom title
|
|
59
|
-
*/
|
|
60
|
-
renderTitle?: () => JSX.Element;
|
|
61
|
-
/**
|
|
62
|
-
* Render custom action
|
|
63
|
-
* Note: you will need to call onOptionPress so the option's onPress will be called
|
|
64
|
-
*/
|
|
65
|
-
renderAction?: (option: ButtonProps, index: number, onOptionPress: ActionSheetOnOptionPress) => JSX.Element;
|
|
66
|
-
/**
|
|
67
|
-
* Whether or not to handle SafeArea
|
|
68
|
-
*/
|
|
69
|
-
useSafeArea?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Additional props to send to the Dialog
|
|
72
|
-
*/
|
|
73
|
-
dialogProps?: Omit<DialogProps, 'useSafeArea' | 'testID' | 'containerStyle' | 'visible' | 'onDismiss' | 'onDialogDismissed'> | DialogProps;
|
|
74
|
-
/**
|
|
75
|
-
* testID for e2e tests
|
|
76
|
-
*/
|
|
77
|
-
testID?: string;
|
|
78
|
-
};
|
|
79
|
-
declare const _default: React.ForwardRefExoticComponent<ActionSheetProps & React.RefAttributes<any>>;
|
|
80
|
-
export default _default;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { ImageProps } from '../../components/image';
|
|
4
|
-
export interface AnimatedImageProps extends ImageProps {
|
|
5
|
-
/**
|
|
6
|
-
* Additional spacing styles for the container
|
|
7
|
-
*/
|
|
8
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
9
|
-
/**
|
|
10
|
-
* Duration for the fade animation when the image is loaded
|
|
11
|
-
*/
|
|
12
|
-
animationDuration?: number;
|
|
13
|
-
/**
|
|
14
|
-
* A component to render while the image is loading
|
|
15
|
-
*/
|
|
16
|
-
loader?: React.ReactElement;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @description: Image component that fades-in the image with animation once it's loaded
|
|
20
|
-
* @extends: Animated.Image
|
|
21
|
-
* @gif: https://media.giphy.com/media/l0HU7jj0ivEFyZIA0/giphy.gif
|
|
22
|
-
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/AnimatedImageScreen.js
|
|
23
|
-
*/
|
|
24
|
-
declare const AnimatedImage: {
|
|
25
|
-
(props: AnimatedImageProps): React.JSX.Element;
|
|
26
|
-
displayName: string;
|
|
27
|
-
};
|
|
28
|
-
export default AnimatedImage;
|