react-native-ui-lib 8.1.1 → 8.1.7-snapshot.7597
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/lib/android/build.gradle +32 -0
- package/lib/android/src/main/AndroidManifest.xml +4 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/UiLibPackageList.java +28 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/dynamicfont/DynamicFontModule.java +139 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/dynamicfont/DynamicFontPackage.java +28 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlightFrame.java +33 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlightViewTagParams.java +50 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterView.java +167 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.java +131 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewPackage.java +28 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/UiUtils.java +50 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/AppContextHolder.java +52 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout.java +213 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootView.java +39 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewManager.java +29 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewShadow.java +29 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/KeyboardInputModule.java +34 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/KeyboardInputPackage.java +49 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/ReactContextHolder.java +16 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor.java +83 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor.java +163 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/PredicateFunc.java +5 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.java +33 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils.java +65 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/utils/LogForwarder.java +45 -0
- package/lib/android/src/main/res/layout/wheel_picker.xml +9 -0
- package/lib/android/src/main/res/values/colors.xml +9 -0
- package/lib/android/src/main/res/values/styles.xml +9 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardRegistry/keyboardRegistry.api.json +50 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/keyboardAccessoryView.api.json +58 -0
- package/lib/components/Keyboard/KeyboardAwareInsetsView/keyboardAwareInsetsView.api.json +14 -0
- package/lib/components/Keyboard/KeyboardTrackingView/keyboardTrackingView.api.json +86 -0
- package/lib/ios/reactnativeuilib/dynamicfont/DynamicFont.h +9 -0
- package/lib/ios/reactnativeuilib/dynamicfont/DynamicFont.m +115 -0
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterView.h +19 -0
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterView.m +216 -0
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterViewManager.h +6 -0
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterViewManager.m +28 -0
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/Color+Interpolation.h +39 -0
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/Color+Interpolation.m +160 -0
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNAnimatorTemp.h +36 -0
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNAnimatorTemp.m +121 -0
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNInterpolable.h +48 -0
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNInterpolable.m +27 -0
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNInterpolation.h +16 -0
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/NSValue+Interpolation.h +19 -0
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/NSValue+Interpolation.mm +155 -0
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.h +16 -0
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m +450 -0
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.h +18 -0
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.m +99 -0
- package/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.h +14 -0
- package/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.m +827 -0
- package/lib/ios/reactnativeuilib/keyboardtrackingview/ObservingInputAccessoryViewTemp.h +44 -0
- package/lib/ios/reactnativeuilib/keyboardtrackingview/ObservingInputAccessoryViewTemp.m +171 -0
- package/lib/ios/reactnativeuilib/keyboardtrackingview/UIResponder+FirstResponderTemp.h +6 -0
- package/lib/ios/reactnativeuilib/keyboardtrackingview/UIResponder+FirstResponderTemp.m +17 -0
- package/lib/ios/reactnativeuilib/safearea/SafeAreaManager.h +6 -0
- package/lib/ios/reactnativeuilib/safearea/SafeAreaManager.m +105 -0
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerShadowView.h +5 -0
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerShadowView.m +20 -0
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerView.h +7 -0
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerView.m +76 -0
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewLocalData.h +9 -0
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewLocalData.m +14 -0
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewManager.h +5 -0
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewManager.m +26 -0
- package/lib/ios/reactnativeuilib.xcodeproj/project.pbxproj +435 -0
- package/package.json +2 -3
- package/src/assets/Assets.d.ts +5 -0
- package/src/assets/emojis/index.d.ts +1343 -0
- package/src/assets/index.d.ts +3 -0
- package/src/assets/internal/index.d.ts +4 -0
- package/src/commons/Config.d.ts +24 -0
- package/src/commons/Constants.d.ts +54 -0
- package/src/commons/UIComponent.d.ts +4 -0
- package/src/commons/asBaseComponent.d.ts +15 -0
- package/src/commons/baseComponent.d.ts +2 -0
- package/src/commons/forwardRef.d.ts +8 -0
- package/src/commons/modifiers.d.ts +118 -0
- package/src/commons/new.d.ts +8 -0
- package/src/commons/withScrollEnabler.d.ts +13 -0
- package/src/commons/withScrollReached.d.ts +35 -0
- package/src/components/WheelPicker/Item.d.ts +28 -0
- package/src/components/WheelPicker/WheelPicker.driver.d.ts +18 -0
- package/src/components/WheelPicker/WheelPickerItem.driver.d.ts +8 -0
- package/src/components/WheelPicker/helpers/useListMiddleIndex.d.ts +6 -0
- package/src/components/WheelPicker/index.d.ts +88 -0
- package/src/components/WheelPicker/types.d.ts +6 -0
- package/src/components/WheelPicker/usePresenter.d.ts +21 -0
- package/src/components/actionBar/index.d.ts +35 -0
- package/src/components/actionSheet/index.d.ts +80 -0
- package/src/components/animatedImage/index.d.ts +28 -0
- package/src/components/avatar/index.d.ts +382 -0
- package/src/components/badge/index.d.ts +879 -0
- package/src/components/baseInput/Validators.d.ts +8 -0
- package/src/components/baseInput/index.d.ts +29 -0
- package/src/components/button/Button.driver.new.d.ts +34 -0
- package/src/components/button/ButtonConstants.d.ts +26 -0
- package/src/components/button/index.d.ts +573 -0
- package/src/components/button/types.d.ts +157 -0
- package/src/components/card/CardContext.d.ts +3 -0
- package/src/components/card/CardImage.d.ts +20 -0
- package/src/components/card/CardPresenter.d.ts +12 -0
- package/src/components/card/CardSection.d.ts +79 -0
- package/src/components/card/asCardChild.d.ts +6 -0
- package/src/components/card/index.d.ts +120 -0
- package/src/components/carousel/Carousel.driver.new.d.ts +9 -0
- package/src/components/carousel/CarouselPresenter.d.ts +9 -0
- package/src/components/carousel/index.d.ts +73 -0
- package/src/components/carousel/types.d.ts +107 -0
- package/src/components/checkbox/Checkbox.driver.d.ts +15 -0
- package/src/components/checkbox/index.d.ts +129 -0
- package/src/components/chip/chip.driver.d.ts +33 -0
- package/src/components/chip/index.d.ts +209 -0
- package/src/components/chipsInput/index.d.ts +55 -0
- package/src/components/colorPalette/index.d.ts +116 -0
- package/src/components/colorPicker/ColorPickerDialog.d.ts +39 -0
- package/src/components/colorPicker/ColorPickerDialogHeader.d.ts +9 -0
- package/src/components/colorPicker/ColorPickerDialogSliders.d.ts +10 -0
- package/src/components/colorPicker/ColorPickerPresenter.d.ts +16 -0
- package/src/components/colorPicker/ColorPickerPreview.d.ts +12 -0
- package/src/components/colorPicker/index.d.ts +45 -0
- package/src/components/colorSwatch/index.d.ts +50 -0
- package/src/components/connectionStatusBar/index.d.ts +33 -0
- package/src/components/connectionStatusBar/types.d.ts +28 -0
- package/src/components/dash/index.d.ts +19 -0
- package/src/components/dateTimePicker/DateTimePicker.driver.d.ts +7 -0
- package/src/components/dateTimePicker/index.d.ts +288 -0
- package/src/components/dateTimePicker/useOldApi.d.ts +27 -0
- package/src/components/dialog/Dialog.driver.new.d.ts +6 -0
- package/src/components/dialog/DialogHeader.d.ts +4 -0
- package/src/components/dialog/index.d.ts +15 -0
- package/src/components/dialog/types.d.ts +138 -0
- package/src/components/dialog/useDialogContent.d.ts +13 -0
- package/src/components/drawer/Swipeable.d.ts +94 -0
- package/src/components/drawer/index.d.ts +161 -0
- package/src/components/expandableSection/index.d.ts +40 -0
- package/src/components/fadedScrollView/index.d.ts +59 -0
- package/src/components/fader/index.d.ts +37 -0
- package/src/components/featureHighlight/index.d.ts +147 -0
- package/src/components/floatingButton/index.d.ts +89 -0
- package/src/components/gradient/index.d.ts +19 -0
- package/src/components/gridList/index.d.ts +5 -0
- package/src/components/gridList/types.d.ts +29 -0
- package/src/components/gridList/useGridLayout.d.ts +15 -0
- package/src/components/gridListItem/index.d.ts +132 -0
- package/src/components/gridView/index.d.ts +80 -0
- package/src/components/hint/Hint.driver.d.ts +6 -0
- package/src/components/hint/Hint.driver.new.d.ts +19 -0
- package/src/components/hint/HintAnchor.d.ts +13 -0
- package/src/components/hint/HintBubble.d.ts +12 -0
- package/src/components/hint/HintMockChildren.d.ts +8 -0
- package/src/components/hint/HintOld.d.ts +196 -0
- package/src/components/hint/hooks/useHintAccessibility.d.ts +10 -0
- package/src/components/hint/hooks/useHintLayout.d.ts +13 -0
- package/src/components/hint/hooks/useHintPosition.d.ts +29 -0
- package/src/components/hint/hooks/useHintVisibility.d.ts +6 -0
- package/src/components/hint/index.d.ts +14 -0
- package/src/components/hint/types.d.ts +106 -0
- package/src/components/icon/index.d.ts +97 -0
- package/src/components/image/Image.driver.d.ts +4 -0
- package/src/components/image/Image.driver.new.d.ts +2 -0
- package/src/components/image/index.d.ts +192 -0
- package/src/components/listItem/ListItemPart.d.ts +15 -0
- package/src/components/listItem/index.d.ts +52 -0
- package/src/components/listItem/types.d.ts +60 -0
- package/src/components/loaderScreen/index.d.ts +13 -0
- package/src/components/loaderScreen/types.d.ts +32 -0
- package/src/components/marquee/index.d.ts +5 -0
- package/src/components/marquee/types.d.ts +35 -0
- package/src/components/maskedInput/index.d.ts +5 -0
- package/src/components/maskedInput/new.d.ts +22 -0
- package/src/components/modal/Modal.driver.new.d.ts +8 -0
- package/src/components/modal/TopBar.d.ts +89 -0
- package/src/components/modal/index.d.ts +64 -0
- package/src/components/numberInput/NumberInput.driver.d.ts +6 -0
- package/src/components/numberInput/Presenter.d.ts +21 -0
- package/src/components/numberInput/index.d.ts +57 -0
- package/src/components/overlay/index.d.ts +68 -0
- package/src/components/pageControl/index.d.ts +56 -0
- package/src/components/panView/index.d.ts +21 -0
- package/src/components/panView/panningUtil.d.ts +38 -0
- package/src/components/panView/usePanGesture.d.ts +49 -0
- package/src/components/picker/Picker.driver.new.d.ts +44 -0
- package/src/components/picker/PickerContext.d.ts +4 -0
- package/src/components/picker/PickerItem.d.ts +11 -0
- package/src/components/picker/PickerItemsList.d.ts +4 -0
- package/src/components/picker/PickerPresenter.d.ts +7 -0
- package/src/components/picker/PickerSelectionStatusBar.d.ts +3 -0
- package/src/components/picker/helpers/useFieldType.d.ts +373 -0
- package/src/components/picker/helpers/useImperativePickerHandle.d.ts +5 -0
- package/src/components/picker/helpers/useNewPickerProps.d.ts +3 -0
- package/src/components/picker/helpers/usePickerLabel.d.ts +17 -0
- package/src/components/picker/helpers/usePickerMigrationWarnings.d.ts +4 -0
- package/src/components/picker/helpers/usePickerSearch.d.ts +9 -0
- package/src/components/picker/helpers/usePickerSelection.d.ts +16 -0
- package/src/components/picker/index.d.ts +15 -0
- package/src/components/picker/types.d.ts +321 -0
- package/src/components/pieChart/PieSegment.d.ts +34 -0
- package/src/components/pieChart/index.d.ts +15 -0
- package/src/components/progressBar/index.d.ts +65 -0
- package/src/components/progressiveImage/index.d.ts +23 -0
- package/src/components/radioButton/RadioButton.driver.d.ts +9 -0
- package/src/components/radioButton/index.d.ts +121 -0
- package/src/components/radioGroup/RadioGroup.driver.d.ts +13 -0
- package/src/components/radioGroup/RadioGroupContext.d.ts +14 -0
- package/src/components/radioGroup/asRadioGroupChild.d.ts +2 -0
- package/src/components/radioGroup/index.d.ts +47 -0
- package/src/components/scrollBar/index.d.ts +88 -0
- package/src/components/searchInput/index.d.ts +37 -0
- package/src/components/searchInput/types.d.ts +66 -0
- package/src/components/sectionsWheelPicker/SectionsWheelPicker.driver.d.ts +25 -0
- package/src/components/sectionsWheelPicker/index.d.ts +43 -0
- package/src/components/segmentedControl/index.d.ts +90 -0
- package/src/components/segmentedControl/segment.d.ts +111 -0
- package/src/components/segmentedControl/useSegmentedControlPreset.d.ts +10 -0
- package/src/components/skeletonView/index.d.ts +163 -0
- package/src/components/slider/ColorSliderGroup.d.ts +13 -0
- package/src/components/slider/GradientSlider.d.ts +20 -0
- package/src/components/slider/SliderContext.d.ts +8 -0
- package/src/components/slider/Thumb.d.ts +32 -0
- package/src/components/slider/index.d.ts +31 -0
- package/src/components/slider/slider.driver.d.ts +5 -0
- package/src/components/slider/types.d.ts +197 -0
- package/src/components/sortableGridList/SortableItem.d.ts +6 -0
- package/src/components/sortableGridList/index.d.ts +5 -0
- package/src/components/sortableGridList/types.d.ts +34 -0
- package/src/components/sortableGridList/usePresenter.d.ts +21 -0
- package/src/components/sortableList/SortableList.driver.new.d.ts +2 -0
- package/src/components/sortableList/SortableListContext.d.ts +19 -0
- package/src/components/sortableList/SortableListItem.d.ts +8 -0
- package/src/components/sortableList/SortableListItem.driver.new.d.ts +11 -0
- package/src/components/sortableList/index.d.ts +5 -0
- package/src/components/sortableList/types.d.ts +48 -0
- package/src/components/sortableList/usePresenter.d.ts +12 -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/stackAggregator/index.d.ts +89 -0
- package/src/components/stateScreen/index.d.ts +5 -0
- package/src/components/stateScreen/types.d.ts +30 -0
- package/src/components/stepper/index.d.ts +47 -0
- package/src/components/svgImage/index.d.ts +14 -0
- package/src/components/svgImage/index.web.d.ts +18 -0
- package/src/components/switch/index.d.ts +102 -0
- package/src/components/switch/switch.driver.d.ts +18 -0
- package/src/components/tabController/PageCarousel.d.ts +9 -0
- package/src/components/tabController/TabBar.d.ts +97 -0
- package/src/components/tabController/TabBarContext.d.ts +18 -0
- package/src/components/tabController/TabBarItem.d.ts +105 -0
- package/src/components/tabController/TabPage.d.ts +33 -0
- package/src/components/tabController/index.d.ts +48 -0
- package/src/components/tabController/useImperativeTabControllerHandle.d.ts +6 -0
- package/src/components/tabController/useScrollToItem.d.ts +79 -0
- package/src/components/text/Text.driver.d.ts +7 -0
- package/src/components/text/Text.driver.new.d.ts +17 -0
- package/src/components/text/index.d.ts +195 -0
- package/src/components/textField/CharCounter.d.ts +7 -0
- package/src/components/textField/ClearButton.d.ts +4 -0
- package/src/components/textField/FieldContext.d.ts +4 -0
- package/src/components/textField/FloatingPlaceholder.d.ts +7 -0
- package/src/components/textField/Input.d.ts +8 -0
- package/src/components/textField/Label.d.ts +7 -0
- package/src/components/textField/Presenter.d.ts +7 -0
- package/src/components/textField/TextField.driver.new.d.ts +129 -0
- package/src/components/textField/ValidationMessage.d.ts +7 -0
- package/src/components/textField/index.d.ts +114 -0
- package/src/components/textField/presets/outline.d.ts +737 -0
- package/src/components/textField/presets/underline.d.ts +735 -0
- package/src/components/textField/textInput/index.d.ts +1 -0
- package/src/components/textField/textInput/index.web.d.ts +3 -0
- package/src/components/textField/types.d.ts +287 -0
- package/src/components/textField/useFieldState.d.ts +16 -0
- package/src/components/textField/useImperativeInputHandle.d.ts +4 -0
- package/src/components/textField/usePreset.d.ts +1696 -0
- package/src/components/textField/validators.d.ts +9 -0
- package/src/components/textFieldOld/index.d.ts +71 -0
- package/src/components/timeline/Line.d.ts +10 -0
- package/src/components/timeline/Point.d.ts +9 -0
- package/src/components/timeline/index.d.ts +11 -0
- package/src/components/timeline/line.driver.d.ts +10 -0
- package/src/components/timeline/point.driver.d.ts +8 -0
- package/src/components/timeline/timeline.driver.d.ts +25 -0
- package/src/components/timeline/types.d.ts +50 -0
- package/src/components/touchableOpacity/index.d.ts +50 -0
- package/src/components/view/View.driver.new.d.ts +7 -0
- package/src/components/view/index.d.ts +46 -0
- package/src/components/wizard/WizardStates.d.ts +2 -0
- package/src/components/wizard/WizardStep.d.ts +4 -0
- package/src/components/wizard/index.d.ts +31 -0
- package/src/components/wizard/types.d.ts +90 -0
- package/src/helpers/AvatarHelper.d.ts +9 -0
- package/src/helpers/FormattingPresenter.d.ts +6 -0
- package/src/helpers/Profiler.d.ts +22 -0
- package/src/helpers/index.d.ts +3 -0
- package/src/hooks/index.d.ts +14 -0
- package/src/hooks/useCombinedRefs/index.d.ts +3 -0
- package/src/hooks/useDebounce/index.d.ts +5 -0
- package/src/hooks/useDidUpdate/index.d.ts +6 -0
- package/src/hooks/useHiddenLocation/index.d.ts +13 -0
- package/src/hooks/useHiddenLocation/index.web.d.ts +13 -0
- package/src/hooks/useKeyboardHeight/index.d.ts +5 -0
- package/src/hooks/useMeasure/index.d.ts +15 -0
- package/src/hooks/useModifiers/index.d.ts +3 -0
- package/src/hooks/useOrientation/index.d.ts +7 -0
- package/src/hooks/useScrollEnabler/index.d.ts +23 -0
- package/src/hooks/useScrollReached/index.d.ts +28 -0
- package/src/hooks/useScrollTo/index.d.ts +37 -0
- package/src/hooks/useScrollToItem/index.d.ts +65 -0
- package/src/hooks/useThemeProps/index.d.ts +2 -0
- package/src/hooks/useToggleValue/index.d.ts +2 -0
- package/src/incubator/TouchableOpacity.d.ts +52 -0
- package/src/incubator/calendar/Agenda.d.ts +4 -0
- package/src/incubator/calendar/CalendarContext.d.ts +4 -0
- package/src/incubator/calendar/CalendarItem.d.ts +5 -0
- package/src/incubator/calendar/Day.d.ts +4 -0
- package/src/incubator/calendar/Day_OLD.d.ts +4 -0
- package/src/incubator/calendar/Header.d.ts +4 -0
- package/src/incubator/calendar/Month.d.ts +4 -0
- package/src/incubator/calendar/TodayButton.d.ts +4 -0
- package/src/incubator/calendar/Week.d.ts +4 -0
- package/src/incubator/calendar/WeekDaysNames.d.ts +4 -0
- package/src/incubator/calendar/helpers/CalendarProcessor.d.ts +2 -0
- package/src/incubator/calendar/helpers/DataProcessor.d.ts +2 -0
- package/src/incubator/calendar/helpers/DateUtils.d.ts +23 -0
- package/src/incubator/calendar/index.d.ts +7 -0
- package/src/incubator/calendar/types.d.ts +118 -0
- package/src/incubator/expandableOverlay/ExpandableOverlay.driver.d.ts +7 -0
- package/src/incubator/expandableOverlay/index.d.ts +83 -0
- package/src/incubator/gradient/BorderGradient.d.ts +4 -0
- package/src/incubator/gradient/CircleGradient.d.ts +4 -0
- package/src/incubator/gradient/RectangleGradient.d.ts +4 -0
- package/src/incubator/gradient/index.d.ts +5 -0
- package/src/incubator/gradient/types.d.ts +26 -0
- package/src/incubator/gradient/useAngleTransform.d.ts +27 -0
- package/src/incubator/index.d.ts +9 -0
- package/src/incubator/slider/Slider.driver.d.ts +5 -0
- package/src/incubator/slider/SliderPresenter.d.ts +6 -0
- package/src/incubator/slider/Thumb.d.ts +24 -0
- package/src/incubator/slider/Track.d.ts +13 -0
- package/src/incubator/slider/index.d.ts +139 -0
- package/src/incubator/toast/Toast.driver.new.d.ts +54 -0
- package/src/incubator/toast/helpers/useToastAnimation.d.ts +22 -0
- package/src/incubator/toast/helpers/useToastPresets.d.ts +8 -0
- package/src/incubator/toast/helpers/useToastTimer.d.ts +6 -0
- package/src/incubator/toast/index.d.ts +9 -0
- package/src/incubator/toast/index.js +4 -1
- package/src/incubator/toast/types.d.ts +111 -0
- package/src/index.d.ts +92 -0
- package/src/optionalDependencies/BlurViewPackage.d.ts +2 -0
- package/src/optionalDependencies/BlurViewPackage.web.d.ts +2 -0
- package/src/optionalDependencies/DateTimePickerPackage.d.ts +2 -0
- package/src/optionalDependencies/FlashListPackage.d.ts +2 -0
- package/src/optionalDependencies/HapticFeedbackPackage.d.ts +2 -0
- package/src/optionalDependencies/LinearGradientPackage.d.ts +2 -0
- package/src/optionalDependencies/MomentPackage.d.ts +2 -0
- package/src/optionalDependencies/NetInfoPackage.d.ts +2 -0
- package/src/optionalDependencies/PostCssPackage.d.ts +5 -0
- package/src/optionalDependencies/ShimmerPackage.d.ts +2 -0
- package/src/optionalDependencies/SvgPackage.d.ts +3 -0
- package/src/optionalDependencies/index.d.ts +9 -0
- package/src/optionalDependencies/index.web.d.ts +7 -0
- package/src/services/HapticService.d.ts +15 -0
- package/src/services/LogService.d.ts +35 -0
- package/src/services/index.d.ts +2 -0
- package/src/style/borderRadiuses.d.ts +30 -0
- package/src/style/colorName.d.ts +8 -0
- package/src/style/colorNameMap.d.ts +2 -0
- package/src/style/colors.d.ts +274 -0
- package/src/style/colorsPalette.d.ts +101 -0
- package/src/style/components.d.ts +15 -0
- package/src/style/componentsColors.d.ts +5 -0
- package/src/style/designTokens.d.ts +69 -0
- package/src/style/designTokensDM.d.ts +69 -0
- package/src/style/dividers.d.ts +11 -0
- package/src/style/index.d.ts +13 -0
- package/src/style/scheme.d.ts +57 -0
- package/src/style/shadows.d.ts +223 -0
- package/src/style/spacings.d.ts +32 -0
- package/src/style/themeManager.d.ts +22 -0
- package/src/style/typography.d.ts +26 -0
- package/src/style/typographyPresets.d.ts +7 -0
- package/src/testkit/Component.driver.d.ts +30 -0
- package/src/testkit/DriverException.d.ts +12 -0
- package/src/testkit/UniDriver.d.ts +29 -0
- package/src/testkit/drivers/TestingLibraryDriver.d.ts +26 -0
- package/src/testkit/drivers/TestingLibraryDriver.js +1 -2
- package/src/testkit/index.d.ts +25 -0
- package/src/testkit/new/Component.driver.d.ts +16 -0
- package/src/testkit/new/useDraggable.driver.d.ts +15 -0
- package/src/testkit/new/usePressable.driver.d.ts +14 -0
- package/src/testkit/new/useScrollable.driver.d.ts +13 -0
- package/src/typings/assets.d.ts +52 -0
- package/src/typings/common.d.ts +12 -0
- package/src/typings/module.d.ts +13 -0
- package/src/typings/recorderTypes.d.ts +13 -0
- package/src/uilib-test-renderer/helper.d.ts +8 -0
- package/src/uilib-test-renderer/index.d.ts +4 -0
- package/src/uilib-test-renderer/scrollViewHelper.d.ts +9 -0
- package/src/utils/dateUtils.d.ts +2 -0
- package/src/utils/imageUtils.d.ts +5 -0
- package/src/utils/index.d.ts +4 -0
- package/src/utils/styleUtils.d.ts +7 -0
- package/src/utils/textUtils.d.ts +8 -0
- package/jestSetup/jest-setup.js +0 -154
- package/lib/components/DynamicFonts/FontDownloader.d.js +0 -1
- package/lib/components/DynamicFonts/FontLoader.d.js +0 -1
- package/lib/components/DynamicFonts/NoPermissionsAcquirer.d.js +0 -1
- package/lib/components/DynamicFonts/PermissionsAcquirer.android.d.js +0 -1
- package/lib/components/DynamicFonts/PermissionsAcquirer.ios.d.js +0 -2
- package/lib/components/DynamicFonts/PermissionsAcquirer.web.d.js +0 -2
- package/lib/components/DynamicFonts/RNFSPackage.d.js +0 -1
- package/lib/components/DynamicFonts/index.d.js +0 -3
- package/lib/components/HighlighterOverlayView/index.d.js +0 -1
- package/lib/components/HighlighterOverlayView/index.web.d.js +0 -1
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.android.d.js +0 -2
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.ios.d.js +0 -2
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardViewBase.d.js +0 -2
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/index.d.js +0 -1
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/index.web.d.js +0 -1
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.d.js +0 -1
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardRegistry/index.d.js +0 -5
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.d.js +0 -1
- package/lib/components/Keyboard/KeyboardAccessoryView/TextInputKeyboardManager/TextInputKeyboardManager.android.d.js +0 -1
- package/lib/components/Keyboard/KeyboardAccessoryView/TextInputKeyboardManager/TextInputKeyboardManager.ios.d.js +0 -1
- package/lib/components/Keyboard/KeyboardAccessoryView/TextInputKeyboardManager/index.d.js +0 -1
- package/lib/components/Keyboard/KeyboardAccessoryView/index.d.js +0 -7
- package/lib/components/Keyboard/KeyboardAwareInsetsView/index.d.js +0 -1
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.android.d.js +0 -1
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.d.js +0 -10
- package/lib/components/Keyboard/KeyboardTrackingView/index.d.js +0 -1
- package/lib/components/Keyboard/KeyboardTrackingView/index.web.d.js +0 -1
- package/lib/components/Keyboard/index.d.js +0 -4
- package/lib/components/SafeArea/SafeAreaInsetsManager.d.js +0 -1
- package/lib/components/SafeArea/SafeAreaSpacerView.d.js +0 -1
- package/lib/components/SafeArea/SafeAreaSpacerView.web.d.js +0 -1
- package/lib/components/SafeArea/index.d.js +0 -1
- package/lib/components/index.d.js +0 -6
- package/lib/scripts/releaseNative.js +0 -72
- package/lib/specs/HighlighterViewNativeComponent.d.js +0 -1
- package/lib/specs/HighlighterViewNativeComponent.d.ts +0 -61
- package/lib/specs/HighlighterViewNativeComponent.js +0 -8
- package/lib/specs/KeyboardTrackingViewNativeComponent.d.js +0 -1
- package/lib/specs/KeyboardTrackingViewNativeComponent.d.ts +0 -58
- package/lib/specs/KeyboardTrackingViewNativeComponent.js +0 -8
- package/scripts/build/.babelrc.exports.js +0 -6
- package/scripts/build/build.js +0 -35
- package/scripts/build/buildPackages/buildComponentsPackages.js +0 -18
- package/scripts/build/buildPackages/buildCustomPackages.js +0 -106
- package/scripts/build/buildPackages/index.js +0 -6
- package/scripts/createCalendarMockData.js +0 -37
- package/scripts/docs/buildDocs.js +0 -1
- package/scripts/prepush.js +0 -71
- package/scripts/release/prReleaseNotes.js +0 -6
- package/scripts/release/release.js +0 -99
- package/scripts/updateWebAssets.js +0 -88
- package/scripts/utils.js +0 -21
- package/src/assets/__tests__/Assets.spec.js +0 -110
- package/src/commons/__tests__/baseComponent.spec.js +0 -36
- package/src/commons/__tests__/constants.spec.js +0 -202
- package/src/commons/__tests__/modifiers.spec.js +0 -453
- package/src/components/WheelPicker/__tests__/index.spec.js +0 -121
- package/src/components/WheelPicker/__tests__/useListMiddleIndex.spec.js +0 -40
- package/src/components/WheelPicker/__tests__/usePresenter.spec.js +0 -87
- package/src/components/avatar/__tests__/index.spec.js +0 -25
- package/src/components/badge/__tests__/index.spec.js +0 -84
- package/src/components/button/__tests__/index.driver.spec.js +0 -209
- package/src/components/button/__tests__/index.spec.js +0 -287
- package/src/components/card/__tests__/CardPresenter.spec.js +0 -35
- package/src/components/carousel/__tests__/CarouselPresenter.spec.js +0 -52
- package/src/components/carousel/__tests__/index.spec.js +0 -89
- package/src/components/checkbox/__tests__/index.spec.js +0 -357
- package/src/components/chip/__tests__/index.spec.js +0 -63
- package/src/components/connectionStatusBar/__tests__/index.spec.js +0 -41
- package/src/components/dateTimePicker/__tests__/index.spec.js +0 -44
- package/src/components/dialog/__tests__/index.new.spec.js +0 -118
- package/src/components/featureHighlight/__tests__/index.spec.js +0 -76
- package/src/components/floatingButton/__tests__/index.spec.js +0 -229
- package/src/components/hint/__tests__/index.spec.js +0 -108
- package/src/components/image/__tests__/index.spec.js +0 -56
- package/src/components/maskedInput/__tests__/maskedInput.new.spec.js +0 -19
- package/src/components/maskedInput/__tests__/maskedInput.old.spec.js +0 -20
- package/src/components/modal/__tests__/index.spec.js +0 -58
- package/src/components/numberInput/__tests__/Presenter.spec.js +0 -374
- package/src/components/numberInput/__tests__/index.spec.js +0 -38
- package/src/components/panView/__tests__/panningUtil.spec.js +0 -693
- package/src/components/picker/__tests__/PickerPresenter.spec.js +0 -15
- package/src/components/picker/__tests__/index.spec.js +0 -364
- package/src/components/picker/helpers/__tests__/usePickerLabel.spec.js +0 -96
- package/src/components/radioButton/__tests__/index.spec.js +0 -43
- package/src/components/radioGroup/__tests__/index.spec.js +0 -96
- package/src/components/sectionsWheelPicker/__tests__/index.spec.js +0 -35
- package/src/components/sectionsWheelPicker/__tests__/mockSections.js +0 -28
- package/src/components/segmentedControl/__tests__/index.spec.js +0 -25
- package/src/components/slider/__tests__/index.spec.js +0 -35
- package/src/components/sortableGridList/__tests__/index.spec.js +0 -51
- package/src/components/sortableGridList/__tests__/usePresenter.spec.js +0 -231
- package/src/components/sortableList/__tests__/index.spec.js +0 -105
- package/src/components/switch/__tests__/index.spec.js +0 -96
- package/src/components/text/__tests__/index.driver.spec.js +0 -124
- package/src/components/text/__tests__/index.spec.js +0 -245
- package/src/components/textField/__tests__/Presenter.spec.js +0 -240
- package/src/components/textField/__tests__/index.driver.spec.js +0 -639
- package/src/components/timeline/__tests__/driver.index.spec.js +0 -133
- package/src/helpers/__tests__/AvatarHelper.spec.js +0 -170
- package/src/hooks/useDidUpdate/__tests__/useDidUpdate.spec.js +0 -80
- package/src/hooks/useOrientation/__tests__/useOrientation.spec.js +0 -70
- package/src/hooks/useToggleValue/__tests__/useToggleValue.spec.js +0 -89
- package/src/incubator/calendar/__tests__/DateUtils.spec.js +0 -367
- package/src/incubator/expandableOverlay/__tests__/index.spec.js +0 -114
- package/src/incubator/gradient/__tests__/useAngleTransform.spec.js +0 -126
- package/src/incubator/slider/__tests__/SliderPresenter.spec.js +0 -43
- package/src/incubator/slider/__tests__/index.spec.js +0 -34
- package/src/incubator/toast/__tests__/index.spec.js +0 -64
- package/src/style/__tests__/colors.spec.js +0 -313
- package/src/style/__tests__/scheme.spec.js +0 -119
- package/src/utils/__tests__/Playground.perf.js +0 -14
- package/src/utils/__tests__/imageUtils.spec.js +0 -54
- package/src/utils/__tests__/textUtils.spec.js +0 -446
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { ModalProps as RNModalProps, GestureResponderEvent, KeyboardAvoidingViewProps } from 'react-native';
|
|
3
|
+
import TopBar, { ModalTopBarProps } from './TopBar';
|
|
4
|
+
export { ModalTopBarProps };
|
|
5
|
+
export interface ModalProps extends RNModalProps {
|
|
6
|
+
/**
|
|
7
|
+
* Blurs the modal background when transparent (iOS only)
|
|
8
|
+
*/
|
|
9
|
+
enableModalBlur?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* A custom view to use as a BlueView instead of the default one
|
|
12
|
+
*/
|
|
13
|
+
blurView?: JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* allow dismissing a modal when clicking on its background
|
|
16
|
+
*/
|
|
17
|
+
onBackgroundPress?: (event: GestureResponderEvent) => void;
|
|
18
|
+
/**
|
|
19
|
+
* the background color of the overlay
|
|
20
|
+
*/
|
|
21
|
+
overlayBackgroundColor?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The modal's end-to-end test identifier
|
|
24
|
+
*/
|
|
25
|
+
testID?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Overrides the text that's read by the screen reader when the user interacts with the element. By default, the
|
|
28
|
+
* label is constructed by traversing all the children and accumulating all the Text nodes separated by space.
|
|
29
|
+
*/
|
|
30
|
+
accessibilityLabel?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Should add a GestureHandlerRootView
|
|
33
|
+
*/
|
|
34
|
+
useGestureHandlerRootView?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Should add a KeyboardAvoidingView (iOS only)
|
|
37
|
+
*/
|
|
38
|
+
useKeyboardAvoidingView?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Send additional props to the KeyboardAvoidingView (iOS only)
|
|
41
|
+
*/
|
|
42
|
+
keyboardAvoidingViewProps?: KeyboardAvoidingViewProps;
|
|
43
|
+
/**
|
|
44
|
+
* Fix RNModal's interaction with react-native-reanimated (Android only, default: true)
|
|
45
|
+
* See this https://github.com/software-mansion/react-native-reanimated/issues/6659#issuecomment-2704931585
|
|
46
|
+
*/
|
|
47
|
+
fixReanimatedInteraction?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @description: Component that present content on top of the invoking screen
|
|
51
|
+
* @extends: Modal
|
|
52
|
+
* @extendsLink: https://reactnative.dev/docs/modal
|
|
53
|
+
* @gif: https://media.giphy.com/media/3oFzmfSX8KgvctI4Ks/giphy.gif
|
|
54
|
+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/ModalScreen.tsx
|
|
55
|
+
*/
|
|
56
|
+
declare class Modal extends Component<ModalProps> {
|
|
57
|
+
static displayName: string;
|
|
58
|
+
static TopBar: typeof TopBar;
|
|
59
|
+
constructor(props: ModalProps);
|
|
60
|
+
renderTouchableOverlay(): React.JSX.Element | undefined;
|
|
61
|
+
render(): React.JSX.Element;
|
|
62
|
+
}
|
|
63
|
+
declare const _default: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<any>> & typeof Modal;
|
|
64
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type NumberInputData = {
|
|
2
|
+
type: 'valid';
|
|
3
|
+
userInput: string;
|
|
4
|
+
number: number;
|
|
5
|
+
formattedNumber: string;
|
|
6
|
+
} | {
|
|
7
|
+
type: 'error';
|
|
8
|
+
userInput: string;
|
|
9
|
+
};
|
|
10
|
+
export interface LocaleOptions {
|
|
11
|
+
locale: string;
|
|
12
|
+
decimalSeparator: string;
|
|
13
|
+
thousandSeparator: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Options {
|
|
16
|
+
localeOptions: LocaleOptions;
|
|
17
|
+
fractionDigits: number;
|
|
18
|
+
}
|
|
19
|
+
export declare function generateOptions(locale: string, fractionDigits: number): Options;
|
|
20
|
+
export declare function getInitialNumber(propsInitialNumber: number | undefined, options: Options): number;
|
|
21
|
+
export declare function parseInput(text: string, options: Options, initialNumber?: number): NumberInputData;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
import { TextFieldProps } from '../textField';
|
|
4
|
+
import { NumberInputData } from './Presenter';
|
|
5
|
+
export { NumberInputData };
|
|
6
|
+
type _TextFieldProps = Omit<TextFieldProps, 'leadingAccessory' | 'trailingAccessory' | 'value' | 'onChangeText' | 'placeholder' | 'placeholderTextColor' | 'floatingPlaceholder' | 'floatingPlaceholderColor' | 'floatingPlaceholderStyle' | 'contextMenuHidden'>;
|
|
7
|
+
type _NumberInputProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Pass additional props to the TextField
|
|
10
|
+
*/
|
|
11
|
+
textFieldProps?: _TextFieldProps;
|
|
12
|
+
/**
|
|
13
|
+
* Callback that is called when the number value has changed (undefined in both if the user has deleted the number).
|
|
14
|
+
*/
|
|
15
|
+
onChangeNumber: (data: NumberInputData) => void;
|
|
16
|
+
/**
|
|
17
|
+
* A valid number (in en locale, i.e. only digits and a decimal point).
|
|
18
|
+
*/
|
|
19
|
+
initialNumber?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
|
|
22
|
+
*/
|
|
23
|
+
fractionDigits?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The locale to show the number (default 'en')
|
|
26
|
+
* IMPORTANT: this might not work, depending on your intl\RN version\hermes configuration
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* A leading text
|
|
30
|
+
*/
|
|
31
|
+
leadingText?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The style of the leading text
|
|
34
|
+
*/
|
|
35
|
+
leadingTextStyle?: StyleProp<TextStyle>;
|
|
36
|
+
/**
|
|
37
|
+
* A trailing text
|
|
38
|
+
*/
|
|
39
|
+
trailingText?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The style of the trailing text
|
|
42
|
+
*/
|
|
43
|
+
trailingTextStyle?: StyleProp<TextStyle>;
|
|
44
|
+
/**
|
|
45
|
+
* Container style of the whole component
|
|
46
|
+
*/
|
|
47
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
48
|
+
/**
|
|
49
|
+
* If true, context menu is hidden. The default value is true.
|
|
50
|
+
* Requires @react-native-community/clipboard to be installed.
|
|
51
|
+
*/
|
|
52
|
+
contextMenuHidden?: boolean;
|
|
53
|
+
testID?: string;
|
|
54
|
+
};
|
|
55
|
+
export type NumberInputProps = React.PropsWithRef<_NumberInputProps>;
|
|
56
|
+
declare const _default: React.ForwardRefExoticComponent<_NumberInputProps & React.RefAttributes<TextFieldProps>>;
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import { ImageProps, ImageSourcePropType } from 'react-native';
|
|
3
|
+
declare const OVERLY_TYPES: {
|
|
4
|
+
VERTICAL: string;
|
|
5
|
+
TOP: string;
|
|
6
|
+
BOTTOM: string;
|
|
7
|
+
SOLID: string;
|
|
8
|
+
};
|
|
9
|
+
export declare enum OverlayIntensityType {
|
|
10
|
+
LOW = "low",
|
|
11
|
+
MEDIUM = "medium",
|
|
12
|
+
HIGH = "high"
|
|
13
|
+
}
|
|
14
|
+
export type OverlayTypeType = (typeof OVERLY_TYPES)[keyof typeof OVERLY_TYPES];
|
|
15
|
+
export type OverlayTypes = Pick<ImageProps, 'borderRadius'> & {
|
|
16
|
+
/**
|
|
17
|
+
* The type of overlay to set on top of the image
|
|
18
|
+
*/
|
|
19
|
+
type?: OverlayTypeType;
|
|
20
|
+
/**
|
|
21
|
+
* The intensity of the gradient, default is 'LOW'.
|
|
22
|
+
*/
|
|
23
|
+
intensity?: OverlayIntensityType | `${OverlayIntensityType}`;
|
|
24
|
+
/**
|
|
25
|
+
* The overlay color
|
|
26
|
+
*/
|
|
27
|
+
color?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Custom overlay content to be rendered on top of the image
|
|
30
|
+
*/
|
|
31
|
+
customContent?: React.ReactElement | React.ReactElement[];
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @description: Overlay view with types (default, top, bottom, solid)
|
|
35
|
+
* @extends: Image
|
|
36
|
+
* @extendsLink: https://reactnative.dev/docs/image
|
|
37
|
+
*/
|
|
38
|
+
declare class Overlay extends PureComponent<OverlayTypes> {
|
|
39
|
+
static displayName: string;
|
|
40
|
+
static overlayTypes: {
|
|
41
|
+
VERTICAL: string;
|
|
42
|
+
TOP: string;
|
|
43
|
+
BOTTOM: string;
|
|
44
|
+
SOLID: string;
|
|
45
|
+
};
|
|
46
|
+
static intensityTypes: typeof OverlayIntensityType;
|
|
47
|
+
getStyleByType(type?: string | undefined): ("" | {
|
|
48
|
+
bottom: undefined;
|
|
49
|
+
height: "75%";
|
|
50
|
+
} | {
|
|
51
|
+
tintColor: string;
|
|
52
|
+
} | undefined)[] | ("" | {
|
|
53
|
+
top: undefined;
|
|
54
|
+
transform: {
|
|
55
|
+
scaleY: number;
|
|
56
|
+
}[];
|
|
57
|
+
height: "75%";
|
|
58
|
+
} | {
|
|
59
|
+
tintColor: string;
|
|
60
|
+
} | undefined)[] | {
|
|
61
|
+
backgroundColor: string | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
renderCustomContent: () => React.JSX.Element;
|
|
64
|
+
renderImage: (style: any, source: ImageSourcePropType) => React.JSX.Element;
|
|
65
|
+
getImageSource: (type?: OverlayTypeType, intensity?: OverlayTypes['intensity']) => any;
|
|
66
|
+
render(): React.JSX.Element;
|
|
67
|
+
}
|
|
68
|
+
export default Overlay;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface PageControlProps {
|
|
4
|
+
/**
|
|
5
|
+
* Limit the number of page indicators shown.
|
|
6
|
+
* enlargeActive prop is disabled in this state,
|
|
7
|
+
* When set to true there will be maximum of 7 shown.
|
|
8
|
+
* Only relevant when numOfPages > 5.
|
|
9
|
+
*/
|
|
10
|
+
limitShownPages?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Additional styles for the top container
|
|
13
|
+
*/
|
|
14
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
15
|
+
/**
|
|
16
|
+
* Total number of pages
|
|
17
|
+
*/
|
|
18
|
+
numOfPages: number;
|
|
19
|
+
/**
|
|
20
|
+
* Zero-based index of the current page
|
|
21
|
+
*/
|
|
22
|
+
currentPage: number;
|
|
23
|
+
/**
|
|
24
|
+
* Action handler for clicking on a page indicator
|
|
25
|
+
*/
|
|
26
|
+
onPagePress?: (index: number) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Color of the selected page dot and, if inactiveColor not passed, the border of the not selected pages
|
|
29
|
+
*/
|
|
30
|
+
color?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Color of the unselected page dots and the border of the not selected pages
|
|
33
|
+
*/
|
|
34
|
+
inactiveColor?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The size of the page indicator.
|
|
37
|
+
* When setting limitShownPages the medium sized will be 2/3 of size and the small will be 1/3 of size.
|
|
38
|
+
* An alternative is to send an array [smallSize, mediumSize, largeSize].
|
|
39
|
+
*/
|
|
40
|
+
size?: number | [number, number, number];
|
|
41
|
+
/**
|
|
42
|
+
* Whether to enlarge the active page indicator
|
|
43
|
+
* Irrelevant when limitShownPages is in effect.
|
|
44
|
+
*/
|
|
45
|
+
enlargeActive?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The space between the siblings page indicators
|
|
48
|
+
*/
|
|
49
|
+
spacing?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Used to identify the pageControl in tests
|
|
52
|
+
*/
|
|
53
|
+
testID?: string;
|
|
54
|
+
}
|
|
55
|
+
declare const _default: React.ForwardRefExoticComponent<PageControlProps & React.RefAttributes<any>>;
|
|
56
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { ViewProps } from '../view';
|
|
4
|
+
import { PanningDirections, PanningDirectionsEnum } from './panningUtil';
|
|
5
|
+
import { PanGestureProps, PanViewDirections, PanViewDirectionsEnum, PanViewDismissThreshold } from './usePanGesture';
|
|
6
|
+
export { PanningDirections, PanningDirectionsEnum, PanViewDirections, PanViewDirectionsEnum, PanViewDismissThreshold };
|
|
7
|
+
export interface PanViewProps extends Omit<PanGestureProps, 'hiddenLocation'>, ViewProps {
|
|
8
|
+
/**
|
|
9
|
+
* Add a style to the container
|
|
10
|
+
*/
|
|
11
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
12
|
+
}
|
|
13
|
+
interface Props extends PanViewProps {
|
|
14
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
15
|
+
}
|
|
16
|
+
declare const _default: React.ForwardRefExoticComponent<PanViewProps & React.RefAttributes<any>> & {
|
|
17
|
+
(props: Props): React.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
directions: typeof PanningDirectionsEnum;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PanGestureHandlerEventPayload } from 'react-native-gesture-handler';
|
|
2
|
+
export declare enum PanningDirectionsEnum {
|
|
3
|
+
UP = "up",
|
|
4
|
+
DOWN = "down",
|
|
5
|
+
LEFT = "left",
|
|
6
|
+
RIGHT = "right"
|
|
7
|
+
}
|
|
8
|
+
export type PanningDirectionsUnion = `${PanningDirectionsEnum}`;
|
|
9
|
+
export type PanningDirections = PanningDirectionsEnum | PanningDirectionsUnion;
|
|
10
|
+
export interface PanningDismissThreshold {
|
|
11
|
+
/**
|
|
12
|
+
* The (positive) velocity of a drag\swipe past it the view will be dismissed.
|
|
13
|
+
*/
|
|
14
|
+
velocity?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The x translation from the start location past it the view will be dismissed.
|
|
17
|
+
*/
|
|
18
|
+
x?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The y translation from the start location past it the view will be dismissed.
|
|
21
|
+
*/
|
|
22
|
+
y?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface Frame {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
}
|
|
28
|
+
export interface TranslationOptions {
|
|
29
|
+
directionLock?: boolean;
|
|
30
|
+
currentTranslation: Frame;
|
|
31
|
+
}
|
|
32
|
+
export declare function getTranslationDirectionClamp(translation: Frame, options: TranslationOptions): Frame;
|
|
33
|
+
export declare function getTranslation(event: PanGestureHandlerEventPayload, initialTranslation: Frame, directions: PanningDirections[], options: TranslationOptions): Frame;
|
|
34
|
+
export declare const DEFAULT_THRESHOLD: Required<PanningDismissThreshold>;
|
|
35
|
+
/**
|
|
36
|
+
* Will return undefined if should not dismiss
|
|
37
|
+
*/
|
|
38
|
+
export declare function getDismissVelocity(event: PanGestureHandlerEventPayload, directions: PanningDirections[], options: TranslationOptions, threshold?: PanningDismissThreshold): Partial<Frame> | undefined;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { PanningDirections, PanningDirectionsEnum, PanningDismissThreshold } from './panningUtil';
|
|
2
|
+
import type { HiddenLocation } from '../../hooks/useHiddenLocation';
|
|
3
|
+
export type PanViewDirections = PanningDirections;
|
|
4
|
+
export declare const PanViewDirectionsEnum: typeof PanningDirectionsEnum;
|
|
5
|
+
export type PanViewDismissThreshold = PanningDismissThreshold;
|
|
6
|
+
export declare const DEFAULT_DIRECTIONS: PanningDirectionsEnum[];
|
|
7
|
+
export interface PanGestureProps {
|
|
8
|
+
/**
|
|
9
|
+
* The directions of the allowed pan (default is all)
|
|
10
|
+
* Types: UP, DOWN, LEFT and RIGHT (using PanView.directions.###)
|
|
11
|
+
*/
|
|
12
|
+
directions?: PanViewDirections[];
|
|
13
|
+
/**
|
|
14
|
+
* Dismiss the view if over the threshold (translation or velocity).
|
|
15
|
+
*/
|
|
16
|
+
dismissible?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Animate to start if not dismissed.
|
|
19
|
+
*/
|
|
20
|
+
animateToOrigin?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Callback to the dismiss animation end
|
|
23
|
+
*/
|
|
24
|
+
onDismiss?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Should the direction of dragging be locked once a drag has started.
|
|
27
|
+
*/
|
|
28
|
+
directionLock?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Object to adjust the dismiss threshold limits (eg {x, y, velocity}).
|
|
31
|
+
*/
|
|
32
|
+
threshold?: PanViewDismissThreshold;
|
|
33
|
+
hiddenLocation: HiddenLocation;
|
|
34
|
+
}
|
|
35
|
+
export declare const DEFAULT_ANIMATION_CONFIG: {
|
|
36
|
+
velocity: number;
|
|
37
|
+
damping: number;
|
|
38
|
+
stiffness: number;
|
|
39
|
+
mass: number;
|
|
40
|
+
};
|
|
41
|
+
declare const usePanGesture: (props: PanGestureProps) => {
|
|
42
|
+
translation: {
|
|
43
|
+
x: import("react-native-reanimated").SharedValue<number>;
|
|
44
|
+
y: import("react-native-reanimated").SharedValue<number>;
|
|
45
|
+
};
|
|
46
|
+
gesture: import("react-native-gesture-handler/lib/typescript/handlers/gestures/panGesture").PanGesture;
|
|
47
|
+
reset: () => void;
|
|
48
|
+
};
|
|
49
|
+
export default usePanGesture;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ComponentDriverOptions, ComponentProps } from '../../testkit/new/Component.driver';
|
|
2
|
+
export declare const PickerDriver: (props: ComponentProps, useDialog: boolean, options?: ComponentDriverOptions) => {
|
|
3
|
+
exists: () => boolean;
|
|
4
|
+
getValue: () => string | undefined;
|
|
5
|
+
open: () => void;
|
|
6
|
+
cancel: () => void;
|
|
7
|
+
done: () => void;
|
|
8
|
+
isOpen: () => boolean;
|
|
9
|
+
dismissDialog: () => void;
|
|
10
|
+
itemDriver: (testID: string) => {
|
|
11
|
+
press: () => void;
|
|
12
|
+
hasOnPress: () => boolean;
|
|
13
|
+
onPressIn: () => void;
|
|
14
|
+
hasOnPressIn: () => boolean;
|
|
15
|
+
onPressOut: () => void;
|
|
16
|
+
hasOnPressOut: () => boolean;
|
|
17
|
+
onLongPress: () => void;
|
|
18
|
+
hasOnLongPress: () => boolean;
|
|
19
|
+
getElement: () => import("react-test-renderer").ReactTestInstance;
|
|
20
|
+
queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
|
|
21
|
+
exists: () => boolean;
|
|
22
|
+
getStyle: () => any;
|
|
23
|
+
getLabel: () => {
|
|
24
|
+
getText: () => string | (string | import("react-test-renderer").ReactTestInstance)[];
|
|
25
|
+
getStyle: () => import("react-native/types").TextStyle;
|
|
26
|
+
press: () => void;
|
|
27
|
+
hasOnPress: () => boolean;
|
|
28
|
+
onPressIn: () => void;
|
|
29
|
+
hasOnPressIn: () => boolean;
|
|
30
|
+
onPressOut: () => void;
|
|
31
|
+
hasOnPressOut: () => boolean;
|
|
32
|
+
onLongPress: () => void;
|
|
33
|
+
hasOnLongPress: () => boolean;
|
|
34
|
+
getElement: () => import("react-test-renderer").ReactTestInstance;
|
|
35
|
+
queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
|
|
36
|
+
exists: () => boolean;
|
|
37
|
+
};
|
|
38
|
+
getLabelStyle: () => import("react-native/types").TextStyle;
|
|
39
|
+
getIconStyle: () => any;
|
|
40
|
+
getIcon: () => import("../../testkit/new/Component.driver").ComponentDriverResult;
|
|
41
|
+
isDisabled: () => boolean;
|
|
42
|
+
};
|
|
43
|
+
selectItem: (testID: string) => void;
|
|
44
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PickerItemProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* @description: Picker.Item, for configuring the Picker's selectable options
|
|
5
|
+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/PickerScreen.tsx
|
|
6
|
+
*/
|
|
7
|
+
declare const PickerItem: {
|
|
8
|
+
(props: PickerItemProps): React.JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export default PickerItem;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PickerProps, PickerSingleValue, PickerValue } from './types';
|
|
2
|
+
export declare function extractPickerItems(props: PickerProps): {
|
|
3
|
+
value: any;
|
|
4
|
+
label: any;
|
|
5
|
+
}[];
|
|
6
|
+
export declare function isItemSelected(childValue: PickerSingleValue, selectedValue?: PickerValue): boolean;
|
|
7
|
+
export declare function shouldFilterOut(searchValue: string, itemLabel?: string): boolean;
|