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,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ViewStyle, ViewProps, View as RNView } from 'react-native';
|
|
3
|
-
export interface ThumbProps extends ViewProps {
|
|
4
|
-
/**
|
|
5
|
-
* The thumb style
|
|
6
|
-
*/
|
|
7
|
-
thumbStyle?: ViewStyle;
|
|
8
|
-
/**
|
|
9
|
-
* The active (during press) thumb style
|
|
10
|
-
*/
|
|
11
|
-
activeThumbStyle?: ViewStyle;
|
|
12
|
-
/**
|
|
13
|
-
* If true the Slider will not change it's style on press
|
|
14
|
-
*/
|
|
15
|
-
disableActiveStyling?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Defines how far a touch event can start away from the thumb.
|
|
18
|
-
*/
|
|
19
|
-
thumbHitSlop?: ViewProps['hitSlop'];
|
|
20
|
-
/**
|
|
21
|
-
* Thumb color
|
|
22
|
-
*/
|
|
23
|
-
thumbTintColor?: string;
|
|
24
|
-
/**
|
|
25
|
-
* If true the Slider will be disabled and will appear in disabled color
|
|
26
|
-
*/
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
/** ref to thumb component */
|
|
29
|
-
ref?: React.RefObject<RNView>;
|
|
30
|
-
}
|
|
31
|
-
declare const Thumb: React.ForwardRefExoticComponent<Omit<ThumbProps, "ref"> & React.RefAttributes<unknown>>;
|
|
32
|
-
export default Thumb;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Omit<import("./Thumb").ThumbProps, "ref"> & {
|
|
4
|
-
value?: number | undefined;
|
|
5
|
-
minimumValue?: number | undefined;
|
|
6
|
-
maximumValue?: number | undefined;
|
|
7
|
-
initialMinimumValue?: number | undefined;
|
|
8
|
-
initialMaximumValue?: number | undefined;
|
|
9
|
-
step?: number | undefined;
|
|
10
|
-
minimumTrackTintColor?: string | undefined;
|
|
11
|
-
maximumTrackTintColor?: string | undefined;
|
|
12
|
-
renderTrack?: (() => React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[]) | undefined;
|
|
13
|
-
onValueChange?: import("./types").SliderOnValueChange | undefined;
|
|
14
|
-
onSeekStart?: (() => void) | undefined;
|
|
15
|
-
onSeekEnd?: (() => void) | undefined;
|
|
16
|
-
onReset?: (() => void) | undefined;
|
|
17
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
18
|
-
trackStyle?: StyleProp<ViewStyle>;
|
|
19
|
-
disabled?: boolean | undefined;
|
|
20
|
-
useRange?: boolean | undefined;
|
|
21
|
-
useGap?: boolean | undefined;
|
|
22
|
-
onRangeChange?: import("./types").SliderOnRangeChange | undefined;
|
|
23
|
-
disableRTL?: boolean | undefined;
|
|
24
|
-
accessible?: boolean | undefined;
|
|
25
|
-
testID?: string | undefined;
|
|
26
|
-
migrate?: boolean | undefined;
|
|
27
|
-
enableThumbShadow?: boolean | undefined;
|
|
28
|
-
disabledThumbTintColor?: string | undefined;
|
|
29
|
-
throttleTime?: number | undefined;
|
|
30
|
-
} & React.RefAttributes<any>>;
|
|
31
|
-
export default _default;
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import tinycolor from 'tinycolor2';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
4
|
-
import { ThumbProps } from './Thumb';
|
|
5
|
-
export type HSLA = tinycolor.ColorFormats.HSLA;
|
|
6
|
-
export type SliderOnValueChange = (value: number) => void;
|
|
7
|
-
export type SliderOnRangeChange = (values: {
|
|
8
|
-
min: number;
|
|
9
|
-
max: number;
|
|
10
|
-
}) => void;
|
|
11
|
-
export type SliderProps = Omit<ThumbProps, 'ref'> & {
|
|
12
|
-
/**
|
|
13
|
-
* Initial value
|
|
14
|
-
*/
|
|
15
|
-
value?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Track minimum value
|
|
18
|
-
*/
|
|
19
|
-
minimumValue?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Track maximum value
|
|
22
|
-
*/
|
|
23
|
-
maximumValue?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Initial minimum value (when useRange is true)
|
|
26
|
-
*/
|
|
27
|
-
initialMinimumValue?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Initial maximum value (when useRange is true)
|
|
30
|
-
*/
|
|
31
|
-
initialMaximumValue?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Step value of the slider. The value should be between 0 and (maximumValue - minimumValue)
|
|
34
|
-
*/
|
|
35
|
-
step?: number;
|
|
36
|
-
/**
|
|
37
|
-
* The color used for the track from minimum value to current value
|
|
38
|
-
*/
|
|
39
|
-
minimumTrackTintColor?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The track color
|
|
42
|
-
*/
|
|
43
|
-
maximumTrackTintColor?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Custom render instead of rendering the track
|
|
46
|
-
*/
|
|
47
|
-
renderTrack?: () => ReactElement | ReactElement[];
|
|
48
|
-
/**
|
|
49
|
-
* Callback for onValueChange
|
|
50
|
-
*/
|
|
51
|
-
onValueChange?: SliderOnValueChange;
|
|
52
|
-
/**
|
|
53
|
-
* Callback that notifies about slider seeking is started
|
|
54
|
-
*/
|
|
55
|
-
onSeekStart?: () => void;
|
|
56
|
-
/**
|
|
57
|
-
* Callback that notifies about slider seeking is finished
|
|
58
|
-
*/
|
|
59
|
-
onSeekEnd?: () => void;
|
|
60
|
-
/**
|
|
61
|
-
* Callback that notifies when the reset function was invoked
|
|
62
|
-
*/
|
|
63
|
-
onReset?: () => void;
|
|
64
|
-
/**
|
|
65
|
-
* The container style
|
|
66
|
-
*/
|
|
67
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
68
|
-
/**
|
|
69
|
-
* The track style
|
|
70
|
-
*/
|
|
71
|
-
trackStyle?: StyleProp<ViewStyle>;
|
|
72
|
-
/**
|
|
73
|
-
* If true the Slider will be disabled and will appear in disabled color
|
|
74
|
-
*/
|
|
75
|
-
disabled?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* If true the Slider will display a second thumb for the min value
|
|
78
|
-
*/
|
|
79
|
-
useRange?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* If true the min and max thumbs will not overlap
|
|
82
|
-
*/
|
|
83
|
-
useGap?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Callback for onRangeChange. Returns values object with the min and max values
|
|
86
|
-
*/
|
|
87
|
-
onRangeChange?: SliderOnRangeChange;
|
|
88
|
-
/**
|
|
89
|
-
* If true the Slider will stay in LTR mode even if the app is on RTL mode
|
|
90
|
-
*/
|
|
91
|
-
disableRTL?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* If true the component will have accessibility features enabled
|
|
94
|
-
*/
|
|
95
|
-
accessible?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* The slider's test identifier
|
|
98
|
-
*/
|
|
99
|
-
testID?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Whether to use the new Slider implementation using Reanimated
|
|
102
|
-
*/
|
|
103
|
-
migrate?: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Whether the thumb will have a shadow. default is true. (only when migrate = true)
|
|
106
|
-
*/
|
|
107
|
-
enableThumbShadow?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Disabled thumb tint color (only when migrate = true)
|
|
110
|
-
*/
|
|
111
|
-
disabledThumbTintColor?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Control the throttle time of the onValueChange and onRangeChange callbacks (only when migrate = true)
|
|
114
|
-
*/
|
|
115
|
-
throttleTime?: number;
|
|
116
|
-
};
|
|
117
|
-
export declare enum GradientSliderTypes {
|
|
118
|
-
DEFAULT = "default",
|
|
119
|
-
HUE = "hue",
|
|
120
|
-
LIGHTNESS = "lightness",
|
|
121
|
-
SATURATION = "saturation"
|
|
122
|
-
}
|
|
123
|
-
export type GradientSliderProps<T> = Omit<SliderProps, 'onValueChange'> & {
|
|
124
|
-
/**
|
|
125
|
-
* The gradient color
|
|
126
|
-
*/
|
|
127
|
-
color?: T;
|
|
128
|
-
/**
|
|
129
|
-
* The gradient type (default, hue, lightness, saturation)
|
|
130
|
-
*/
|
|
131
|
-
type?: GradientSliderTypes | `${GradientSliderTypes}`;
|
|
132
|
-
/**
|
|
133
|
-
* The gradient steps
|
|
134
|
-
*/
|
|
135
|
-
gradientSteps?: number;
|
|
136
|
-
/**
|
|
137
|
-
* Callback for onValueChange, returns the updated color
|
|
138
|
-
*/
|
|
139
|
-
onValueChange?: (value: string, alfa: number) => void;
|
|
140
|
-
/**
|
|
141
|
-
* If true the component will have accessibility features enabled
|
|
142
|
-
*/
|
|
143
|
-
accessible?: boolean;
|
|
144
|
-
/**
|
|
145
|
-
* The container style
|
|
146
|
-
*/
|
|
147
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
148
|
-
/**
|
|
149
|
-
* If true the Slider will be disabled and will appear in disabled color
|
|
150
|
-
*/
|
|
151
|
-
disabled?: boolean;
|
|
152
|
-
};
|
|
153
|
-
export type ColorSliderGroupProps<T> = {
|
|
154
|
-
/**
|
|
155
|
-
* The gradient color
|
|
156
|
-
*/
|
|
157
|
-
initialColor: T;
|
|
158
|
-
/**
|
|
159
|
-
* Callback for onValueChange returns the new hex color
|
|
160
|
-
*/
|
|
161
|
-
onValueChange?: (value: T) => void;
|
|
162
|
-
/**
|
|
163
|
-
* Group container style
|
|
164
|
-
*/
|
|
165
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
166
|
-
/**
|
|
167
|
-
* Sliders style
|
|
168
|
-
*/
|
|
169
|
-
sliderContainerStyle?: StyleProp<ViewStyle>;
|
|
170
|
-
/**
|
|
171
|
-
* Show the sliders labels (defaults are: Hue, Lightness, Saturation)
|
|
172
|
-
*/
|
|
173
|
-
showLabels?: boolean;
|
|
174
|
-
/**
|
|
175
|
-
* In case you would like to change the default labels (translations etc.), you can provide
|
|
176
|
-
* this prop with a map to the relevant labels ({hue: ..., lightness: ..., saturation: ...}).
|
|
177
|
-
*/
|
|
178
|
-
labels?: {
|
|
179
|
-
[key in GradientSliderTypes]: string;
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* The labels style
|
|
183
|
-
*/
|
|
184
|
-
labelsStyle?: StyleProp<TextStyle>;
|
|
185
|
-
/**
|
|
186
|
-
* If true the component will have accessibility features enabled
|
|
187
|
-
*/
|
|
188
|
-
accessible?: boolean;
|
|
189
|
-
/**
|
|
190
|
-
* Whether to use the new Slider implementation using Reanimated
|
|
191
|
-
*/
|
|
192
|
-
migrate?: boolean;
|
|
193
|
-
/**
|
|
194
|
-
* Pass props to the sliders
|
|
195
|
-
*/
|
|
196
|
-
sliderProps?: Omit<SliderProps, 'migrate' | 'containerStyle' | 'accessible' | 'onReset' | 'renderTrack' | 'step' | 'maximumValue' | 'value' | 'onValueChange' | 'disabled' | 'useRange'>;
|
|
197
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import usePresenter from './usePresenter';
|
|
3
|
-
import { SortableItemProps } from './types';
|
|
4
|
-
declare function SortableItem(props: PropsWithChildren<SortableItemProps & ReturnType<typeof usePresenter>>): React.JSX.Element;
|
|
5
|
-
declare const _default: React.MemoExoticComponent<typeof SortableItem>;
|
|
6
|
-
export default _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { FlatListProps, ScrollViewProps, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import Animated from 'react-native-reanimated';
|
|
3
|
-
import { GridListBaseProps } from '../gridList';
|
|
4
|
-
export type ItemLayout = {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
} | undefined;
|
|
8
|
-
export type ItemsOrder = string[];
|
|
9
|
-
export type ItemProps<T> = T & {
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
|
-
export interface SortableGridListProps<T = any> extends GridListBaseProps, ScrollViewProps {
|
|
13
|
-
data: FlatListProps<ItemProps<T>>['data'];
|
|
14
|
-
renderItem: FlatListProps<ItemProps<T>>['renderItem'];
|
|
15
|
-
onOrderChange?: (newData: ItemProps<T>[], newOrder: ItemsOrder) => void;
|
|
16
|
-
extraData?: any;
|
|
17
|
-
/**
|
|
18
|
-
* Temporary migration flag for enabling flex on the container of the list (like it should be by default)
|
|
19
|
-
*/
|
|
20
|
-
flexMigration?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Wether to reorder the items by index instead of by replacing locations.
|
|
23
|
-
* Items will move to the new index by pushing other items ahead or aback instead of swapping places with the item at the new index.
|
|
24
|
-
*/
|
|
25
|
-
orderByIndex?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface SortableItemProps {
|
|
28
|
-
id: string;
|
|
29
|
-
data: any;
|
|
30
|
-
itemsOrder: Animated.SharedValue<ItemsOrder>;
|
|
31
|
-
onChange: () => void;
|
|
32
|
-
style: StyleProp<ViewStyle>;
|
|
33
|
-
orderByIndex?: boolean;
|
|
34
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ItemsOrder } from './types';
|
|
2
|
-
export declare const WINDOW_WIDTH: number;
|
|
3
|
-
export declare const DEFAULT_NO_OF_COLUMNS = 3;
|
|
4
|
-
export declare const animationConfig: {
|
|
5
|
-
easing: import("react-native-reanimated").EasingFunction;
|
|
6
|
-
duration: number;
|
|
7
|
-
};
|
|
8
|
-
declare const usePresenter: (numOfColumns: number, itemSize: number, itemSpacing: number) => {
|
|
9
|
-
updateItemLayout: (layout: {
|
|
10
|
-
width: number;
|
|
11
|
-
height: number;
|
|
12
|
-
}) => void;
|
|
13
|
-
getTranslationByOrderChange: (newOrder: number, oldOrder: number) => {
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
};
|
|
17
|
-
getOrderByPosition: (positionX: number, positionY: number) => number;
|
|
18
|
-
getItemOrderById: (itemsOrder: ItemsOrder, itemId: string) => number;
|
|
19
|
-
getIdByItemOrder: (itemsOrder: ItemsOrder, orderIndex: number) => string;
|
|
20
|
-
};
|
|
21
|
-
export default usePresenter;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { ViewProps, FlatListProps } from 'react-native';
|
|
3
|
-
import { SharedValue } from 'react-native-reanimated';
|
|
4
|
-
import type { Dictionary } from '../../typings/common';
|
|
5
|
-
import { Data, OrderChangeInfo, SortableListItemProps, SortableListProps } from './types';
|
|
6
|
-
export interface SortableListContextType<ItemT extends SortableListItemProps> {
|
|
7
|
-
data: Data<ItemT>;
|
|
8
|
-
itemsOrder: SharedValue<string[]>;
|
|
9
|
-
lockedIds: SharedValue<Dictionary<boolean>>;
|
|
10
|
-
onChange: (info: OrderChangeInfo) => void;
|
|
11
|
-
itemSize: SharedValue<number>;
|
|
12
|
-
horizontal?: FlatListProps<ItemT>['horizontal'];
|
|
13
|
-
onItemLayout: ViewProps['onLayout'];
|
|
14
|
-
enableHaptic?: boolean;
|
|
15
|
-
scale?: number;
|
|
16
|
-
itemProps?: SortableListProps<ItemT>['itemProps'];
|
|
17
|
-
}
|
|
18
|
-
declare const SortableListContext: import("react").Context<SortableListContextType<SortableListItemProps>>;
|
|
19
|
-
export default SortableListContext;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
export interface InternalSortableListItemProps {
|
|
3
|
-
index: number;
|
|
4
|
-
}
|
|
5
|
-
type Props = PropsWithChildren<InternalSortableListItemProps>;
|
|
6
|
-
export declare const DEFAULT_LIST_ITEM_SIZE = 52;
|
|
7
|
-
declare const _default: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;
|
|
8
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from '../../testkit/new/Component.driver';
|
|
2
|
-
export declare const SortableListItemDriver: (props: ComponentProps) => {
|
|
3
|
-
dragUp: (indices: number) => Promise<void>;
|
|
4
|
-
dragDown: (indices: number) => Promise<void>;
|
|
5
|
-
dragLeft: (indices: number) => Promise<void>;
|
|
6
|
-
dragRight: (indices: number) => Promise<void>;
|
|
7
|
-
drag: (distanceOrEvent: number | import("../../testkit/new/useDraggable.driver").DragEvent | import("../../testkit/new/useDraggable.driver").DragEvent[]) => void;
|
|
8
|
-
getElement: () => import("react-test-renderer").ReactTestInstance;
|
|
9
|
-
queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
|
|
10
|
-
exists: () => boolean;
|
|
11
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SortableListProps, SortableListItemProps } from './types';
|
|
3
|
-
export { SortableListProps, SortableListItemProps };
|
|
4
|
-
declare const SortableList: <ItemT extends SortableListItemProps>(props: SortableListProps<ItemT>) => React.JSX.Element;
|
|
5
|
-
export default SortableList;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ForwardedRef } from 'react';
|
|
2
|
-
import { FlatListProps, FlatList } from 'react-native';
|
|
3
|
-
import { SortableListContextType } from './SortableListContext';
|
|
4
|
-
export interface SortableListItemProps {
|
|
5
|
-
id: string;
|
|
6
|
-
locked?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type Data<ItemT extends SortableListItemProps> = ArrayLike<ItemT>;
|
|
9
|
-
export type OrderChangeInfo = {
|
|
10
|
-
from: number;
|
|
11
|
-
to: number;
|
|
12
|
-
};
|
|
13
|
-
export interface SortableListProps<ItemT extends SortableListItemProps> extends Omit<FlatListProps<ItemT>, 'extraData' | 'data'>, Pick<SortableListContextType<ItemT>, 'scale'> {
|
|
14
|
-
/**
|
|
15
|
-
* The data of the list.
|
|
16
|
-
IMPORTANT: Do not update 'data' in 'onOrderChange' (i.e. for each order change); only update it when you change the items (i.g. adding and removing an item).
|
|
17
|
-
*/
|
|
18
|
-
data: Data<ItemT>;
|
|
19
|
-
/**
|
|
20
|
-
* A callback to get the new order (or swapped items).
|
|
21
|
-
*/
|
|
22
|
-
onOrderChange: (data: ItemT[], info: OrderChangeInfo) => void;
|
|
23
|
-
/**
|
|
24
|
-
* Whether to enable the haptic feedback
|
|
25
|
-
* (please note that react-native-haptic-feedback does not support the specific haptic type on Android starting on an unknown version, you can use 1.8.2 for it to work properly)
|
|
26
|
-
*/
|
|
27
|
-
enableHaptic?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Extra props for the item
|
|
30
|
-
*/
|
|
31
|
-
itemProps?: {
|
|
32
|
-
backgroundColor?: string;
|
|
33
|
-
margins?: {
|
|
34
|
-
marginTop?: number;
|
|
35
|
-
marginBottom?: number;
|
|
36
|
-
marginLeft?: number;
|
|
37
|
-
marginRight?: number;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* List forwarded ref.
|
|
42
|
-
*/
|
|
43
|
-
listRef?: ForwardedRef<FlatList<ItemT>>;
|
|
44
|
-
/**
|
|
45
|
-
* Temporary migration flag for enabling flex on the container of the list (like it should be by default)
|
|
46
|
-
*/
|
|
47
|
-
flexMigration?: boolean;
|
|
48
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const animationConfig: {
|
|
2
|
-
easing: import("react-native-reanimated").EasingFunction;
|
|
3
|
-
duration: number;
|
|
4
|
-
};
|
|
5
|
-
type ItemsOrder = string[];
|
|
6
|
-
declare const usePresenter: () => {
|
|
7
|
-
getTranslationByIndexChange: (newIndex: number, oldIndex: number, itemSize: number) => number;
|
|
8
|
-
getIndexByPosition: (position: number, itemSize: number) => number;
|
|
9
|
-
getItemIndexById: (itemsOrder: ItemsOrder, itemId: string) => number;
|
|
10
|
-
getIdByItemIndex: (itemsOrder: ItemsOrder, orderIndex: number) => string;
|
|
11
|
-
};
|
|
12
|
-
export default usePresenter;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { ViewProps } from '../view';
|
|
4
|
-
import { ButtonProps } from '../button';
|
|
5
|
-
export type StackAggregatorProps = ViewProps & {
|
|
6
|
-
/**
|
|
7
|
-
* The initial state of the stack
|
|
8
|
-
*/
|
|
9
|
-
collapsed?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Component Children
|
|
12
|
-
*/
|
|
13
|
-
children: JSX.Element | JSX.Element[];
|
|
14
|
-
/**
|
|
15
|
-
* The container style
|
|
16
|
-
*/
|
|
17
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
18
|
-
/**
|
|
19
|
-
* The content container style
|
|
20
|
-
*/
|
|
21
|
-
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
22
|
-
/**
|
|
23
|
-
* The items border radius
|
|
24
|
-
*/
|
|
25
|
-
itemBorderRadius?: number;
|
|
26
|
-
/**
|
|
27
|
-
* Props passed to the 'show less' button
|
|
28
|
-
*/
|
|
29
|
-
buttonProps?: ButtonProps;
|
|
30
|
-
/**
|
|
31
|
-
* A callback for item press
|
|
32
|
-
*/
|
|
33
|
-
onItemPress?: (index: number) => void;
|
|
34
|
-
/**
|
|
35
|
-
* A callback for collapse state will change (value is future collapsed state)
|
|
36
|
-
*/
|
|
37
|
-
onCollapseWillChange?: (changed: boolean) => void;
|
|
38
|
-
/**
|
|
39
|
-
* A callback for collapse state change (value is collapsed state)
|
|
40
|
-
*/
|
|
41
|
-
onCollapseChanged?: (changed: boolean) => void;
|
|
42
|
-
/**
|
|
43
|
-
* A setting that disables the cards' onPress
|
|
44
|
-
*/
|
|
45
|
-
disablePresses?: boolean;
|
|
46
|
-
};
|
|
47
|
-
declare const _default: React.ForwardRefExoticComponent<ViewProps & {
|
|
48
|
-
/**
|
|
49
|
-
* The initial state of the stack
|
|
50
|
-
*/
|
|
51
|
-
collapsed?: boolean | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Component Children
|
|
54
|
-
*/
|
|
55
|
-
children: JSX.Element | JSX.Element[];
|
|
56
|
-
/**
|
|
57
|
-
* The container style
|
|
58
|
-
*/
|
|
59
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
60
|
-
/**
|
|
61
|
-
* The content container style
|
|
62
|
-
*/
|
|
63
|
-
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
64
|
-
/**
|
|
65
|
-
* The items border radius
|
|
66
|
-
*/
|
|
67
|
-
itemBorderRadius?: number | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* Props passed to the 'show less' button
|
|
70
|
-
*/
|
|
71
|
-
buttonProps?: ButtonProps | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* A callback for item press
|
|
74
|
-
*/
|
|
75
|
-
onItemPress?: ((index: number) => void) | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* A callback for collapse state will change (value is future collapsed state)
|
|
78
|
-
*/
|
|
79
|
-
onCollapseWillChange?: ((changed: boolean) => void) | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* A callback for collapse state change (value is collapsed state)
|
|
82
|
-
*/
|
|
83
|
-
onCollapseChanged?: ((changed: boolean) => void) | undefined;
|
|
84
|
-
/**
|
|
85
|
-
* A setting that disables the cards' onPress
|
|
86
|
-
*/
|
|
87
|
-
disablePresses?: boolean | undefined;
|
|
88
|
-
} & React.RefAttributes<any>>;
|
|
89
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ImageURISource } from 'react-native';
|
|
3
|
-
export type StateScreenProps = {
|
|
4
|
-
/**
|
|
5
|
-
* The image source that's showing at the top. use an image that was required locally
|
|
6
|
-
*/
|
|
7
|
-
imageSource?: ImageURISource;
|
|
8
|
-
source?: ImageURISource;
|
|
9
|
-
/**
|
|
10
|
-
* To to show as the title
|
|
11
|
-
*/
|
|
12
|
-
title: string;
|
|
13
|
-
/**
|
|
14
|
-
* Text to to show as the subtitle
|
|
15
|
-
*/
|
|
16
|
-
subtitle?: string | React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Text to to show in the "call to action" button
|
|
19
|
-
*/
|
|
20
|
-
ctaLabel?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Action handler for "call to action" button
|
|
23
|
-
*/
|
|
24
|
-
onCtaPress?: () => void;
|
|
25
|
-
/**
|
|
26
|
-
* Use to identify the container in tests
|
|
27
|
-
*/
|
|
28
|
-
testId?: string;
|
|
29
|
-
testID?: string;
|
|
30
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type StepperType = 'default' | 'floating';
|
|
3
|
-
interface Props {
|
|
4
|
-
/**
|
|
5
|
-
* Stepper style type
|
|
6
|
-
*/
|
|
7
|
-
type?: StepperType;
|
|
8
|
-
/**
|
|
9
|
-
* Stepper value.
|
|
10
|
-
*/
|
|
11
|
-
value?: number;
|
|
12
|
-
/**
|
|
13
|
-
* Minimum value.
|
|
14
|
-
*/
|
|
15
|
-
minValue?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Maximum value.
|
|
18
|
-
*/
|
|
19
|
-
maxValue?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The step to increase and decrease by (default is 1)
|
|
22
|
-
*/
|
|
23
|
-
step?: number;
|
|
24
|
-
/**
|
|
25
|
-
* On value change callback function
|
|
26
|
-
*/
|
|
27
|
-
onValueChange?: (value: number, testID?: string) => void;
|
|
28
|
-
/**
|
|
29
|
-
* disables interaction with the stepper
|
|
30
|
-
*/
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Renders a small sized Stepper
|
|
34
|
-
*/
|
|
35
|
-
small?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Component accessibility label
|
|
38
|
-
*/
|
|
39
|
-
accessibilityLabel?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Test id for component
|
|
42
|
-
*/
|
|
43
|
-
testID?: string;
|
|
44
|
-
}
|
|
45
|
-
export type StepperProps = Props;
|
|
46
|
-
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<any>>;
|
|
47
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface SvgImageProps {
|
|
3
|
-
/**
|
|
4
|
-
* the asset tint
|
|
5
|
-
*/
|
|
6
|
-
tintColor?: string | null;
|
|
7
|
-
data: any;
|
|
8
|
-
}
|
|
9
|
-
declare function SvgImage(props: SvgImageProps): React.JSX.Element | null;
|
|
10
|
-
declare namespace SvgImage {
|
|
11
|
-
var displayName: string;
|
|
12
|
-
var isSvg: typeof import("../../utils/imageUtils").isSvg;
|
|
13
|
-
}
|
|
14
|
-
export default SvgImage;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface SvgImageProps {
|
|
3
|
-
/**
|
|
4
|
-
* the asset tint
|
|
5
|
-
*/
|
|
6
|
-
tintColor?: string | null;
|
|
7
|
-
data: any;
|
|
8
|
-
style?: object[];
|
|
9
|
-
height?: number;
|
|
10
|
-
width?: number;
|
|
11
|
-
id?: string;
|
|
12
|
-
}
|
|
13
|
-
declare function SvgImage(props: SvgImageProps): React.JSX.Element | null;
|
|
14
|
-
declare namespace SvgImage {
|
|
15
|
-
var displayName: string;
|
|
16
|
-
var isSvg: typeof import("../../utils/imageUtils").isSvg;
|
|
17
|
-
}
|
|
18
|
-
export default SvgImage;
|