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,9 +0,0 @@
|
|
|
1
|
-
declare const validators: {
|
|
2
|
-
required: (value?: string) => boolean;
|
|
3
|
-
email: (value?: string) => boolean;
|
|
4
|
-
optionalEmail: (value?: string) => boolean;
|
|
5
|
-
url: (value?: string) => boolean;
|
|
6
|
-
number: (value?: string) => boolean;
|
|
7
|
-
price: (value?: string) => boolean;
|
|
8
|
-
};
|
|
9
|
-
export default validators;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import BaseInput from '../baseInput';
|
|
3
|
-
/**
|
|
4
|
-
* @description: A wrapper for TextInput component with extra functionality like floating placeholder and validations (This is an uncontrolled component)
|
|
5
|
-
* @modifiers: Typography
|
|
6
|
-
* @extends: TextInput
|
|
7
|
-
* @extendsLink: https://reactnative.dev/docs/textinput
|
|
8
|
-
* @gif: https://media.giphy.com/media/xULW8su8Cs5Z9Fq4PS/giphy.gif, https://media.giphy.com/media/3ohc1dhDcLS9FvWLJu/giphy.gif, https://media.giphy.com/media/oNUSOxnHdMP5ZnKYsh/giphy.gif
|
|
9
|
-
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/TextFieldScreen/BasicTextFieldScreen.js
|
|
10
|
-
*/
|
|
11
|
-
export default class TextField extends BaseInput {
|
|
12
|
-
static displayName: string;
|
|
13
|
-
static propTypes: any;
|
|
14
|
-
static defaultProps: {
|
|
15
|
-
enableErrors: boolean;
|
|
16
|
-
validateOnBlur: boolean;
|
|
17
|
-
};
|
|
18
|
-
constructor(props: any);
|
|
19
|
-
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
20
|
-
componentDidUpdate(_prevProps: any, prevState: any): void;
|
|
21
|
-
onPlaceholderLayout: (event: any) => void;
|
|
22
|
-
/** Actions */
|
|
23
|
-
generatePropsWarnings(props: any): void;
|
|
24
|
-
generateStyles(): void;
|
|
25
|
-
getAccessibilityInfo(): {
|
|
26
|
-
accessibilityLabel: any;
|
|
27
|
-
accessibilityState: {
|
|
28
|
-
disabled: boolean;
|
|
29
|
-
} | undefined;
|
|
30
|
-
};
|
|
31
|
-
toggleExpandableModal: (value: any) => void;
|
|
32
|
-
updateFloatingPlaceholderState: (withoutAnimation: any) => void;
|
|
33
|
-
getPlaceholderText: (this: any, placeholder: any, helperText: any) => any;
|
|
34
|
-
getStateColor(colorProp?: {}): any;
|
|
35
|
-
getCharCount(): any;
|
|
36
|
-
setCharCountColor(key: any): void;
|
|
37
|
-
getCharCountColor(): any;
|
|
38
|
-
getTopPaddings(): 25 | undefined;
|
|
39
|
-
getTopErrorsPosition(): {
|
|
40
|
-
top: number;
|
|
41
|
-
} | undefined;
|
|
42
|
-
isDisabled(): boolean;
|
|
43
|
-
isCounterLimit(): boolean;
|
|
44
|
-
hasText(value: any): boolean;
|
|
45
|
-
shouldShowHelperText(): any;
|
|
46
|
-
shouldFloatOnFocus(): any;
|
|
47
|
-
shouldFloatPlaceholder(text: any): any;
|
|
48
|
-
shouldFakePlaceholder(): boolean;
|
|
49
|
-
shouldShowError(): any;
|
|
50
|
-
getErrorMessage(): any;
|
|
51
|
-
shouldShowTopError(): any;
|
|
52
|
-
shouldDisplayRightButton(): any;
|
|
53
|
-
shouldRenderTitle(): any;
|
|
54
|
-
onPressRightButton: () => void;
|
|
55
|
-
/** Renders */
|
|
56
|
-
renderPlaceholder(): React.JSX.Element | undefined;
|
|
57
|
-
renderPrefix(): React.JSX.Element | undefined;
|
|
58
|
-
renderTitle(): React.JSX.Element | undefined;
|
|
59
|
-
renderCharCounter(): React.JSX.Element | undefined;
|
|
60
|
-
renderError(visible: any): React.JSX.Element | undefined;
|
|
61
|
-
renderExpandableModal(): any;
|
|
62
|
-
renderExpandableInput(): any;
|
|
63
|
-
renderTextInput(): React.JSX.Element;
|
|
64
|
-
renderRightButton(): React.JSX.Element | undefined;
|
|
65
|
-
renderRightIcon(): React.JSX.Element | undefined;
|
|
66
|
-
render(): React.JSX.Element;
|
|
67
|
-
/** Events */
|
|
68
|
-
onDoneEditingExpandableInput: () => void;
|
|
69
|
-
onKeyPress: (event: any) => void;
|
|
70
|
-
onChangeText: (text: any) => void;
|
|
71
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ViewStyle } from 'react-native';
|
|
3
|
-
import { LineProps } from './types';
|
|
4
|
-
type LinePropsInternal = LineProps & {
|
|
5
|
-
top?: boolean;
|
|
6
|
-
style?: ViewStyle;
|
|
7
|
-
testID?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const Line: React.MemoExoticComponent<(props: LinePropsInternal) => React.JSX.Element>;
|
|
10
|
-
export default Line;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LayoutChangeEvent } from 'react-native';
|
|
3
|
-
import { PointProps } from './types';
|
|
4
|
-
type PointPropsInternal = PointProps & {
|
|
5
|
-
onLayout?: (event: LayoutChangeEvent) => void;
|
|
6
|
-
testID?: string;
|
|
7
|
-
};
|
|
8
|
-
declare const Point: (props: PointPropsInternal) => React.JSX.Element;
|
|
9
|
-
export default Point;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TimelineProps, PointProps, LineProps, StateTypes, PointTypes, LineTypes } from './types';
|
|
3
|
-
export { TimelineProps, PointProps as TimelinePointProps, LineProps as TimelineLineProps, StateTypes as TimelineStateTypes, PointTypes as TimelinePointTypes, LineTypes as TimelineLineTypes };
|
|
4
|
-
declare const Timeline: {
|
|
5
|
-
(props: TimelineProps): React.JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
states: typeof StateTypes;
|
|
8
|
-
lineTypes: typeof LineTypes;
|
|
9
|
-
pointTypes: typeof PointTypes;
|
|
10
|
-
};
|
|
11
|
-
export default Timeline;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from '../../testkit/new/Component.driver';
|
|
2
|
-
export declare const LineDriver: (props: ComponentProps) => {
|
|
3
|
-
getLine: () => {
|
|
4
|
-
exists: () => boolean;
|
|
5
|
-
getStyle: () => any;
|
|
6
|
-
isVisible: () => boolean;
|
|
7
|
-
isEntryPointExists: () => boolean;
|
|
8
|
-
getEntryPointStyle: () => any;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from '../../testkit/new/Component.driver';
|
|
2
|
-
export declare const TimelineDriver: (props: ComponentProps) => {
|
|
3
|
-
getPoint: () => {
|
|
4
|
-
exists: () => boolean;
|
|
5
|
-
getStyle: () => any;
|
|
6
|
-
getContentStyle: () => any;
|
|
7
|
-
};
|
|
8
|
-
getTopLine: () => {
|
|
9
|
-
exists: () => boolean;
|
|
10
|
-
getStyle: () => any;
|
|
11
|
-
isVisible: () => boolean;
|
|
12
|
-
isEntryPointExists: () => boolean;
|
|
13
|
-
getEntryPointStyle: () => any;
|
|
14
|
-
};
|
|
15
|
-
getBottomLine: () => {
|
|
16
|
-
exists: () => boolean;
|
|
17
|
-
getStyle: () => any;
|
|
18
|
-
isVisible: () => boolean;
|
|
19
|
-
isEntryPointExists: () => boolean;
|
|
20
|
-
getEntryPointStyle: () => any;
|
|
21
|
-
};
|
|
22
|
-
getElement: () => import("react-test-renderer").ReactTestInstance;
|
|
23
|
-
queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
|
|
24
|
-
exists: () => boolean;
|
|
25
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { ImageRequireSource } from 'react-native';
|
|
3
|
-
import { IconProps } from '../icon';
|
|
4
|
-
export declare enum StateTypes {
|
|
5
|
-
CURRENT = "current",
|
|
6
|
-
NEXT = "next",
|
|
7
|
-
ERROR = "error",
|
|
8
|
-
SUCCESS = "success"
|
|
9
|
-
}
|
|
10
|
-
export declare enum LineTypes {
|
|
11
|
-
SOLID = "solid",
|
|
12
|
-
DASHED = "dashed"
|
|
13
|
-
}
|
|
14
|
-
export declare enum PointTypes {
|
|
15
|
-
BULLET = "bullet",
|
|
16
|
-
CIRCLE = "circle",
|
|
17
|
-
OUTLINE = "outline"
|
|
18
|
-
}
|
|
19
|
-
export type LineProps = {
|
|
20
|
-
state?: StateTypes;
|
|
21
|
-
type?: LineTypes | `${LineTypes}`;
|
|
22
|
-
color?: string;
|
|
23
|
-
/** to mark as entry point */
|
|
24
|
-
entry?: boolean;
|
|
25
|
-
width?: number;
|
|
26
|
-
};
|
|
27
|
-
export type PointProps = {
|
|
28
|
-
state?: StateTypes | `${StateTypes}`;
|
|
29
|
-
type?: PointTypes | `${PointTypes}`;
|
|
30
|
-
color?: string;
|
|
31
|
-
icon?: ImageRequireSource;
|
|
32
|
-
iconProps?: IconProps;
|
|
33
|
-
removeIconBackground?: boolean;
|
|
34
|
-
label?: number;
|
|
35
|
-
labelColor?: string;
|
|
36
|
-
/** to align point to this view's center */
|
|
37
|
-
anchorRef?: React.MutableRefObject<undefined>;
|
|
38
|
-
};
|
|
39
|
-
export type Layout = {
|
|
40
|
-
x: number;
|
|
41
|
-
y: number;
|
|
42
|
-
width: number;
|
|
43
|
-
height: number;
|
|
44
|
-
};
|
|
45
|
-
export type TimelineProps = PropsWithChildren<{
|
|
46
|
-
topLine?: LineProps;
|
|
47
|
-
bottomLine?: LineProps;
|
|
48
|
-
point?: PointProps;
|
|
49
|
-
testID?: string;
|
|
50
|
-
}>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { GestureResponderEvent, TouchableOpacityProps as RNTouchableOpacityProps } from 'react-native';
|
|
3
|
-
import { ContainerModifiers, BackgroundColorModifier } from '../../commons/new';
|
|
4
|
-
import { RecorderProps } from '../../typings/recorderTypes';
|
|
5
|
-
import { ViewProps } from '../view';
|
|
6
|
-
export interface TouchableOpacityProps extends Omit<RNTouchableOpacityProps, 'style' | 'onPress' | 'onPressIn' | 'onPressOut' | 'onLongPress'>, ContainerModifiers, BackgroundColorModifier, RecorderProps {
|
|
7
|
-
/**
|
|
8
|
-
* background color for TouchableOpacity
|
|
9
|
-
*/
|
|
10
|
-
backgroundColor?: string;
|
|
11
|
-
/**
|
|
12
|
-
* throttle time in MS for onPress callback
|
|
13
|
-
*/
|
|
14
|
-
throttleTime?: number;
|
|
15
|
-
/**
|
|
16
|
-
* throttle options {leading, trailing}
|
|
17
|
-
*/
|
|
18
|
-
throttleOptions?: {
|
|
19
|
-
leading: boolean;
|
|
20
|
-
trailing: boolean;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Apply background color on TouchableOpacity when active (press is on)
|
|
24
|
-
*/
|
|
25
|
-
activeBackgroundColor?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Will apply scale press feedback. This will enforce the useNative prop
|
|
28
|
-
*/
|
|
29
|
-
activeScale?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Should use a more native touchable opacity component
|
|
32
|
-
*/
|
|
33
|
-
useNative?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Custom value of any type to pass on to TouchableOpacity and receive back in onPress callback
|
|
36
|
-
*/
|
|
37
|
-
customValue?: any;
|
|
38
|
-
style?: ViewProps['style'];
|
|
39
|
-
onPress?: (props?: (TouchableOpacityProps & {
|
|
40
|
-
event: GestureResponderEvent;
|
|
41
|
-
}) | any) => void;
|
|
42
|
-
onPressIn?: (props?: TouchableOpacityProps | GestureResponderEvent | any) => void | RNTouchableOpacityProps['onPressIn'];
|
|
43
|
-
onPressOut?: (props?: TouchableOpacityProps | GestureResponderEvent | any) => void | RNTouchableOpacityProps['onPressOut'];
|
|
44
|
-
onLongPress?: (props?: (TouchableOpacityProps & {
|
|
45
|
-
event: GestureResponderEvent;
|
|
46
|
-
}) | any) => void | RNTouchableOpacityProps['onLongPress'];
|
|
47
|
-
nativeID?: string;
|
|
48
|
-
}
|
|
49
|
-
declare const _default: React.ForwardRefExoticComponent<TouchableOpacityProps & React.RefAttributes<any>>;
|
|
50
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from '../../testkit/new/Component.driver';
|
|
2
|
-
export declare const ViewDriver: (props: ComponentProps) => {
|
|
3
|
-
getStyle: (flatten?: boolean) => any;
|
|
4
|
-
getElement: () => import("react-test-renderer").ReactTestInstance;
|
|
5
|
-
queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
|
|
6
|
-
exists: () => boolean;
|
|
7
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View as RNView, Animated, ViewProps as RNViewProps, type StyleProp, type ViewStyle, type DimensionValue } from 'react-native';
|
|
3
|
-
import type { AnimateProps as RNReanimatedProps } from 'react-native-reanimated';
|
|
4
|
-
import { ContainerModifiers } from '../../commons/new';
|
|
5
|
-
import type { RecorderProps } from '../../typings/recorderTypes';
|
|
6
|
-
/**
|
|
7
|
-
* Extra props when using reanimated (only non experimental props)
|
|
8
|
-
*/
|
|
9
|
-
type ReanimatedProps = Partial<Pick<RNReanimatedProps<object>, 'entering' | 'exiting' | 'layout'>>;
|
|
10
|
-
export interface ViewProps extends Omit<RNViewProps, 'style'>, ReanimatedProps, ContainerModifiers, RecorderProps {
|
|
11
|
-
/**
|
|
12
|
-
* If true, will render as SafeAreaView
|
|
13
|
-
*/
|
|
14
|
-
useSafeArea?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Use Animate.View as a container
|
|
17
|
-
*/
|
|
18
|
-
animated?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Use Animate.View (from react-native-reanimated) as a container
|
|
21
|
-
*/
|
|
22
|
-
reanimated?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Turn off accessibility for this view and its nested children
|
|
25
|
-
*/
|
|
26
|
-
inaccessible?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* TODO: probably isn't needed
|
|
29
|
-
*/
|
|
30
|
-
width?: DimensionValue;
|
|
31
|
-
/**
|
|
32
|
-
* TODO: probably isn't needed
|
|
33
|
-
*/
|
|
34
|
-
height?: DimensionValue;
|
|
35
|
-
/**
|
|
36
|
-
* Experimental: Pass time in ms to delay render
|
|
37
|
-
*/
|
|
38
|
-
renderDelay?: number;
|
|
39
|
-
/**
|
|
40
|
-
* Set background color
|
|
41
|
-
*/
|
|
42
|
-
backgroundColor?: string;
|
|
43
|
-
style?: StyleProp<ViewStyle | Animated.AnimatedProps<ViewStyle>>;
|
|
44
|
-
}
|
|
45
|
-
declare const _default: React.ForwardRefExoticComponent<ViewProps & React.RefAttributes<RNView>>;
|
|
46
|
-
export default _default;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import WizardStep from './WizardStep';
|
|
3
|
-
import { WizardProps, WizardStepProps, WizardStepStates, WizardStepConfig, WizardStepsConfig } from './types';
|
|
4
|
-
export { WizardProps, WizardStepProps, WizardStepStates, WizardStepConfig, WizardStepsConfig };
|
|
5
|
-
interface State {
|
|
6
|
-
maxWidth: number;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @description: Wizard Component: a wizard presents a series of steps in prescribed order
|
|
10
|
-
* that the user needs to complete in order to accomplish a goal (e.g. purchase a product).
|
|
11
|
-
*
|
|
12
|
-
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/WizardScreen.tsx
|
|
13
|
-
* @notes: Use Wizard with nested Wizard.Step(s) to achieve the desired result.
|
|
14
|
-
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Wizard/Wizard.gif?raw=true
|
|
15
|
-
* @image: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Wizard/WizardPresets.png?raw=true
|
|
16
|
-
*/
|
|
17
|
-
declare class Wizard extends Component<WizardProps, State> {
|
|
18
|
-
static displayName: string;
|
|
19
|
-
static Step: typeof WizardStep;
|
|
20
|
-
static States: typeof WizardStepStates;
|
|
21
|
-
private dimensionsChangeListener;
|
|
22
|
-
constructor(props: WizardProps);
|
|
23
|
-
componentDidMount(): void;
|
|
24
|
-
componentWillUnmount(): void;
|
|
25
|
-
onOrientationChange: () => void;
|
|
26
|
-
getMaxWidth(): number;
|
|
27
|
-
renderChildren(): React.DetailedReactHTMLElement<any, HTMLElement>[] | null | undefined;
|
|
28
|
-
render(): React.JSX.Element;
|
|
29
|
-
}
|
|
30
|
-
declare const _default: React.ForwardRefExoticComponent<WizardProps & React.RefAttributes<any>> & typeof Wizard;
|
|
31
|
-
export default _default;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ImageProps } from '../image';
|
|
3
|
-
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
4
|
-
export declare enum WizardStepStates {
|
|
5
|
-
ENABLED = "enabled",
|
|
6
|
-
DISABLED = "disabled",
|
|
7
|
-
ERROR = "error",
|
|
8
|
-
SKIPPED = "skipped",
|
|
9
|
-
COMPLETED = "completed"
|
|
10
|
-
}
|
|
11
|
-
export interface WizardStepProps {
|
|
12
|
-
/**
|
|
13
|
-
* The state of the step (Wizard.States.X)
|
|
14
|
-
*/
|
|
15
|
-
state: WizardStepStates | `${WizardStepStates}`;
|
|
16
|
-
/**
|
|
17
|
-
* The label of the item
|
|
18
|
-
*/
|
|
19
|
-
label?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Additional styles for the label
|
|
22
|
-
*/
|
|
23
|
-
labelStyle?: StyleProp<TextStyle>;
|
|
24
|
-
/**
|
|
25
|
-
* Additional styles for the connector
|
|
26
|
-
*/
|
|
27
|
-
connectorStyle?: StyleProp<ViewStyle>;
|
|
28
|
-
/**
|
|
29
|
-
* Color of the step index (or of the icon, when provided)
|
|
30
|
-
*/
|
|
31
|
-
color?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Color of the circle
|
|
34
|
-
*/
|
|
35
|
-
circleColor?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The step's circle size (diameter)
|
|
38
|
-
*/
|
|
39
|
-
circleSize?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Circle's background color
|
|
42
|
-
*/
|
|
43
|
-
circleBackgroundColor?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Icon to replace the (default) index
|
|
46
|
-
*/
|
|
47
|
-
icon?: ImageProps['source'];
|
|
48
|
-
/**
|
|
49
|
-
* Additional styles for the index's label (when icon is not provided)
|
|
50
|
-
*/
|
|
51
|
-
indexLabelStyle?: StyleProp<TextStyle>;
|
|
52
|
-
/**
|
|
53
|
-
* Whether the step should be enabled
|
|
54
|
-
*/
|
|
55
|
-
enabled?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Extra text to be read in accessibility mode
|
|
58
|
-
*/
|
|
59
|
-
accessibilityInfo?: string;
|
|
60
|
-
}
|
|
61
|
-
export type WizardStepConfig = Omit<WizardStepProps, 'state'>;
|
|
62
|
-
export interface WizardStepsConfig {
|
|
63
|
-
enabled?: WizardStepConfig;
|
|
64
|
-
disabled?: WizardStepConfig;
|
|
65
|
-
error?: WizardStepConfig;
|
|
66
|
-
skipped?: WizardStepConfig;
|
|
67
|
-
completed?: WizardStepConfig;
|
|
68
|
-
active?: WizardStepConfig;
|
|
69
|
-
}
|
|
70
|
-
export interface WizardProps {
|
|
71
|
-
/**
|
|
72
|
-
* The active step's index
|
|
73
|
-
*/
|
|
74
|
-
activeIndex: number;
|
|
75
|
-
/**
|
|
76
|
-
* The configuration of the active step (see Wizard.Step.propTypes)
|
|
77
|
-
*/
|
|
78
|
-
activeConfig?: WizardStepProps;
|
|
79
|
-
/**
|
|
80
|
-
* Callback that is called when the active step is changed (i.e. a step was clicked on).
|
|
81
|
-
* The new activeIndex will be the input of the callback.
|
|
82
|
-
*/
|
|
83
|
-
onActiveIndexChanged?: (index: number) => void;
|
|
84
|
-
/**
|
|
85
|
-
* Add or override style of the container
|
|
86
|
-
*/
|
|
87
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
88
|
-
testID?: string;
|
|
89
|
-
children?: React.ReactNode;
|
|
90
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare function getInitialsTypography(size: number): import("react-native/types").TextStyle | undefined;
|
|
2
|
-
export declare function hashStringToNumber(str?: string): number;
|
|
3
|
-
export declare function getAvatarColors(): string[];
|
|
4
|
-
export declare function getColorById(id: string, avatarColors?: string[]): string;
|
|
5
|
-
export declare function getInitials(name?: string, limit?: number): string;
|
|
6
|
-
export declare function getBackgroundColor(name?: string, avatarColors?: string[], hashFunction?: (name?: string) => number, defaultColor?: string): string | undefined;
|
|
7
|
-
export declare function isGravatarUrl(url: string): boolean;
|
|
8
|
-
export declare function isBlankGravatarUrl(url: string): boolean;
|
|
9
|
-
export declare function patchGravatarUrl(gravatarUrl: string): string;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { ProfilerProps as RProfilerProps, PropsWithChildren } from 'react';
|
|
2
|
-
export type ProfilerProps = Pick<RProfilerProps, 'id'>;
|
|
3
|
-
export default class Profiler extends React.Component<PropsWithChildren<ProfilerProps>> {
|
|
4
|
-
onRender: (...profileData: any[]) => void;
|
|
5
|
-
render(): React.JSX.Element;
|
|
6
|
-
}
|
|
7
|
-
export declare const getProfileData: ([id, phase, actualDuration, baseDuration, startTime, commitTime, interactions]: [any, any, any, any, any, any, any]) => {
|
|
8
|
-
id: any;
|
|
9
|
-
interactions: any;
|
|
10
|
-
phase: any;
|
|
11
|
-
actualDuration: number;
|
|
12
|
-
baseDuration: number;
|
|
13
|
-
commitTime: number;
|
|
14
|
-
cumulativeDuration: string;
|
|
15
|
-
startTime: number;
|
|
16
|
-
};
|
|
17
|
-
export declare const logProfileData: ({ id, actualDuration, cumulativeDuration, phase }: {
|
|
18
|
-
id: any;
|
|
19
|
-
actualDuration: any;
|
|
20
|
-
cumulativeDuration: any;
|
|
21
|
-
phase: any;
|
|
22
|
-
}) => void;
|
package/src/helpers/index.d.ts
DELETED
package/src/hooks/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { default as useCombinedRefs } from './useCombinedRefs';
|
|
2
|
-
export { default as useToggleValue } from './useToggleValue';
|
|
3
|
-
export { default as useDidUpdate } from './useDidUpdate';
|
|
4
|
-
export { default as useMeasure } from './useMeasure';
|
|
5
|
-
export { default as useModifiers } from './useModifiers';
|
|
6
|
-
export { default as useOrientation } from './useOrientation';
|
|
7
|
-
export { default as useScrollEnabler } from './useScrollEnabler';
|
|
8
|
-
export { default as useScrollReached } from './useScrollReached';
|
|
9
|
-
export { default as useScrollToItem } from './useScrollToItem';
|
|
10
|
-
export { default as useScrollTo } from './useScrollTo';
|
|
11
|
-
export { default as useThemeProps } from './useThemeProps';
|
|
12
|
-
export { default as useDebounce } from './useDebounce';
|
|
13
|
-
export { default as useKeyboardHeight } from './useKeyboardHeight';
|
|
14
|
-
export * from './useScrollTo';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RefCallback } from 'react';
|
|
2
|
-
import { View, LayoutChangeEvent } from 'react-native';
|
|
3
|
-
import { PanningDirectionsEnum } from '../../components/panView';
|
|
4
|
-
type HiddenLocationRecord = Record<PanningDirectionsEnum, number>;
|
|
5
|
-
export interface HiddenLocation extends HiddenLocationRecord {
|
|
6
|
-
wasMeasured: boolean;
|
|
7
|
-
}
|
|
8
|
-
export default function useHiddenLocation<T extends View>(): {
|
|
9
|
-
setRef: RefCallback<T>;
|
|
10
|
-
onLayout: (event: LayoutChangeEvent) => void;
|
|
11
|
-
hiddenLocation: HiddenLocation;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RefCallback } from 'react';
|
|
2
|
-
import { View, LayoutChangeEvent } from 'react-native';
|
|
3
|
-
import { PanningDirectionsEnum } from '../../components/panView';
|
|
4
|
-
type HiddenLocationRecord = Record<PanningDirectionsEnum, number>;
|
|
5
|
-
export interface HiddenLocation extends HiddenLocationRecord {
|
|
6
|
-
wasMeasured: boolean;
|
|
7
|
-
}
|
|
8
|
-
export default function useHiddenLocation<T extends View>(): {
|
|
9
|
-
setRef: RefCallback<T>;
|
|
10
|
-
onLayout: (event: LayoutChangeEvent) => void;
|
|
11
|
-
hiddenLocation: HiddenLocation;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { View as RNView } from 'react-native';
|
|
3
|
-
interface Measurements {
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
pageX: number;
|
|
9
|
-
pageY: number;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: () => {
|
|
12
|
-
ref: import("react").MutableRefObject<RNView | undefined>;
|
|
13
|
-
measurements: Measurements | undefined;
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { LayoutChangeEvent } from 'react-native';
|
|
2
|
-
export type ScrollEnablerProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Whether the scroll is horizontal (default is false).
|
|
5
|
-
*/
|
|
6
|
-
horizontal?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type ScrollEnablerResultProps = {
|
|
9
|
-
/**
|
|
10
|
-
* onContentSizeChange callback (should be set to your onContentSizeChange).
|
|
11
|
-
*/
|
|
12
|
-
onContentSizeChange: (contentWidth: number, contentHeight: number) => void;
|
|
13
|
-
/**
|
|
14
|
-
* onLayout callback (should be set to your onLayout).
|
|
15
|
-
*/
|
|
16
|
-
onLayout: (event: LayoutChangeEvent) => void;
|
|
17
|
-
/**
|
|
18
|
-
* Whether the scroll should be enabled (should be set to your scrollEnabled).
|
|
19
|
-
*/
|
|
20
|
-
scrollEnabled: boolean;
|
|
21
|
-
};
|
|
22
|
-
declare const useScrollEnabler: (props?: ScrollEnablerProps) => ScrollEnablerResultProps;
|
|
23
|
-
export default useScrollEnabler;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
|
|
2
|
-
export type ScrollEnablerProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Whether the scroll is horizontal (default is false).
|
|
5
|
-
*/
|
|
6
|
-
horizontal?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Allows to be notified prior to actually reaching the start \ end of the scroll (by the threshold).
|
|
9
|
-
* Should be a positive value.
|
|
10
|
-
*/
|
|
11
|
-
threshold?: number;
|
|
12
|
-
};
|
|
13
|
-
export type ScrollEnablerResultProps = {
|
|
14
|
-
/**
|
|
15
|
-
* onScroll callback (should be set to your onScroll).
|
|
16
|
-
*/
|
|
17
|
-
onScroll: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
18
|
-
/**
|
|
19
|
-
* Is the scroll at the start (or equal\smaller than the threshold if one was given)
|
|
20
|
-
*/
|
|
21
|
-
isScrollAtStart?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Is the scroll at the end (or equal\greater than the threshold if one was given)
|
|
24
|
-
*/
|
|
25
|
-
isScrollAtEnd?: boolean;
|
|
26
|
-
};
|
|
27
|
-
declare const useScrollReached: (props?: ScrollEnablerProps) => ScrollEnablerResultProps;
|
|
28
|
-
export default useScrollReached;
|