react-native-ui-lib 8.1.1 → 8.1.5
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/specs/HighlighterViewNativeComponent.ts +78 -0
- package/lib/specs/KeyboardTrackingViewNativeComponent.ts +74 -0
- package/package.json +2 -25
- 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/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/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.js +0 -8
- package/lib/specs/KeyboardTrackingViewNativeComponent.d.js +0 -1
- 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,88 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { Animated, FlatListProps, ImageSourcePropType, NativeSyntheticEvent, NativeScrollEvent, LayoutChangeEvent } from 'react-native';
|
|
3
|
+
import { ForwardRefInjectedProps } from '../../commons/new';
|
|
4
|
+
import { ComponentStatics } from '../../typings/common';
|
|
5
|
+
export interface ScrollBarProps extends FlatListProps<any> {
|
|
6
|
+
/**
|
|
7
|
+
* Whether to use a FlatList. NOTE: you must pass 'data' and 'renderItem' props as well
|
|
8
|
+
*/
|
|
9
|
+
useList?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The element to use as a container, instead of a View
|
|
12
|
+
*/
|
|
13
|
+
containerView?: React.ComponentClass;
|
|
14
|
+
/**
|
|
15
|
+
* The props to pass the container
|
|
16
|
+
*/
|
|
17
|
+
containerProps?: object;
|
|
18
|
+
/**
|
|
19
|
+
* The component's height
|
|
20
|
+
*/
|
|
21
|
+
height?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The gradient's height, defaults to the component's height
|
|
24
|
+
*/
|
|
25
|
+
gradientHeight?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The gradient's width
|
|
28
|
+
*/
|
|
29
|
+
gradientWidth?: number;
|
|
30
|
+
/**
|
|
31
|
+
* The gradient's margins for the edge
|
|
32
|
+
*/
|
|
33
|
+
gradientMargins?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The gradient's tint color
|
|
36
|
+
*/
|
|
37
|
+
gradientColor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The gradient's image, instead of the default image.
|
|
40
|
+
* NOTE: pass an image for the right-hand side and it will be flipped to match the left-hand side
|
|
41
|
+
*/
|
|
42
|
+
gradientImage?: ImageSourcePropType;
|
|
43
|
+
/**
|
|
44
|
+
* The index to currently focus on
|
|
45
|
+
*/
|
|
46
|
+
focusIndex?: number;
|
|
47
|
+
}
|
|
48
|
+
type Props = ScrollBarProps & ForwardRefInjectedProps;
|
|
49
|
+
type State = {
|
|
50
|
+
gradientOpacity: Animated.Value;
|
|
51
|
+
gradientOpacityLeft: Animated.Value;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @description: Scrollable container with animated gradient overlay for horizontal scroll
|
|
55
|
+
* @extends: ScrollView / FlatList
|
|
56
|
+
*/
|
|
57
|
+
declare class ScrollBar extends Component<Props, State> {
|
|
58
|
+
static displayName: string;
|
|
59
|
+
static defaultProps: {
|
|
60
|
+
gradientWidth: number;
|
|
61
|
+
gradientMargins: number;
|
|
62
|
+
gradientColor: string;
|
|
63
|
+
focusIndex: number;
|
|
64
|
+
};
|
|
65
|
+
static Item: typeof Item;
|
|
66
|
+
constructor(props: Props);
|
|
67
|
+
private scrollbar;
|
|
68
|
+
private itemsLayouts;
|
|
69
|
+
private contentOffset;
|
|
70
|
+
private scrollContentWidth;
|
|
71
|
+
private containerWidth;
|
|
72
|
+
componentDidUpdate(prevProps: Props): void;
|
|
73
|
+
focusIndex: (index?: number) => void;
|
|
74
|
+
animateGradientOpacity: (offsetX: number, contentWidth: number, containerWidth: number) => void;
|
|
75
|
+
onScroll: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
76
|
+
onContentSizeChange: (contentWidth: number, contentHeight: number) => void;
|
|
77
|
+
onLayout: (event: LayoutChangeEvent) => void;
|
|
78
|
+
onItemLayout: ({ layout, index }: any) => void;
|
|
79
|
+
renderScrollable(): React.JSX.Element;
|
|
80
|
+
renderGradient(left: boolean): React.JSX.Element;
|
|
81
|
+
render(): React.JSX.Element;
|
|
82
|
+
}
|
|
83
|
+
declare const Item: {
|
|
84
|
+
({ children, index, onLayout }: any): React.JSX.Element;
|
|
85
|
+
displayName: string;
|
|
86
|
+
};
|
|
87
|
+
declare const _default: React.ForwardRefExoticComponent<ScrollBarProps & React.RefAttributes<any>> & ComponentStatics<typeof ScrollBar>;
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SearchInputPresets, SearchInputProps, SearchInputRef } from './types';
|
|
3
|
+
declare const SearchInput: React.ForwardRefExoticComponent<import("react-native").TextInputProps & {
|
|
4
|
+
onClear?: (() => void) | undefined;
|
|
5
|
+
onDismiss?: (() => void) | undefined;
|
|
6
|
+
cancelButtonProps?: import("../button").ButtonProps | undefined;
|
|
7
|
+
customRightElement?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
8
|
+
showLoader?: boolean | undefined;
|
|
9
|
+
loaderProps?: import("react-native").ActivityIndicatorProps | undefined;
|
|
10
|
+
customLoader?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
11
|
+
invertColors?: boolean | undefined;
|
|
12
|
+
inaccessible?: boolean | undefined;
|
|
13
|
+
useSafeArea?: boolean | undefined;
|
|
14
|
+
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
|
15
|
+
containerStyle?: import("react-native").StyleProp<import("react-native").TextStyle | import("react-native").ViewStyle>;
|
|
16
|
+
preset?: "default" | "prominent" | SearchInputPresets | undefined;
|
|
17
|
+
} & React.RefAttributes<any>>;
|
|
18
|
+
interface StaticMembers {
|
|
19
|
+
presets: typeof SearchInputPresets;
|
|
20
|
+
}
|
|
21
|
+
export { SearchInput, SearchInputProps, SearchInputRef, SearchInputPresets };
|
|
22
|
+
declare const _default: React.ForwardRefExoticComponent<import("react-native").TextInputProps & {
|
|
23
|
+
onClear?: (() => void) | undefined;
|
|
24
|
+
onDismiss?: (() => void) | undefined;
|
|
25
|
+
cancelButtonProps?: import("../button").ButtonProps | undefined;
|
|
26
|
+
customRightElement?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
27
|
+
showLoader?: boolean | undefined;
|
|
28
|
+
loaderProps?: import("react-native").ActivityIndicatorProps | undefined;
|
|
29
|
+
customLoader?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
30
|
+
invertColors?: boolean | undefined;
|
|
31
|
+
inaccessible?: boolean | undefined;
|
|
32
|
+
useSafeArea?: boolean | undefined;
|
|
33
|
+
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
|
34
|
+
containerStyle?: import("react-native").StyleProp<import("react-native").TextStyle | import("react-native").ViewStyle>;
|
|
35
|
+
preset?: "default" | "prominent" | SearchInputPresets | undefined;
|
|
36
|
+
} & React.RefAttributes<any>> & StaticMembers;
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextInputProps, StyleProp, ViewStyle, TextStyle, ActivityIndicatorProps } from 'react-native';
|
|
3
|
+
import { ButtonProps } from '../button';
|
|
4
|
+
export declare enum SearchInputPresets {
|
|
5
|
+
DEFAULT = "default",
|
|
6
|
+
PROMINENT = "prominent"
|
|
7
|
+
}
|
|
8
|
+
export interface SearchInputRef {
|
|
9
|
+
blur: () => void;
|
|
10
|
+
clear: () => void;
|
|
11
|
+
focus: () => void;
|
|
12
|
+
}
|
|
13
|
+
export type SearchInputProps = TextInputProps & {
|
|
14
|
+
/**
|
|
15
|
+
* On clear button callback.
|
|
16
|
+
*/
|
|
17
|
+
onClear?: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* callback for dismiss action
|
|
20
|
+
*/
|
|
21
|
+
onDismiss?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Props for the cancel button
|
|
24
|
+
*/
|
|
25
|
+
cancelButtonProps?: ButtonProps;
|
|
26
|
+
/**
|
|
27
|
+
* Custom right element
|
|
28
|
+
*/
|
|
29
|
+
customRightElement?: React.ReactElement;
|
|
30
|
+
/**
|
|
31
|
+
* Whether to show a loader instead of the left search icon
|
|
32
|
+
*/
|
|
33
|
+
showLoader?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Loader props
|
|
36
|
+
*/
|
|
37
|
+
loaderProps?: ActivityIndicatorProps;
|
|
38
|
+
/**
|
|
39
|
+
* custom loader element
|
|
40
|
+
*/
|
|
41
|
+
customLoader?: React.ReactElement;
|
|
42
|
+
/**
|
|
43
|
+
* converts the colors of the search's input elements, icons and button to white
|
|
44
|
+
*/
|
|
45
|
+
invertColors?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Turn off accessibility for this view and its nested children
|
|
48
|
+
*/
|
|
49
|
+
inaccessible?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* in case the SearchInput is rendered in a safe area (top of the screen)
|
|
52
|
+
*/
|
|
53
|
+
useSafeArea?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Override styles for container
|
|
56
|
+
*/
|
|
57
|
+
style?: StyleProp<ViewStyle>;
|
|
58
|
+
/**
|
|
59
|
+
* Override styles for the input
|
|
60
|
+
*/
|
|
61
|
+
containerStyle?: StyleProp<ViewStyle | TextStyle>;
|
|
62
|
+
/**
|
|
63
|
+
* The preset for the search input: default or prominent
|
|
64
|
+
*/
|
|
65
|
+
preset?: SearchInputPresets | `${SearchInputPresets}`;
|
|
66
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactTestInstance } from 'react-test-renderer';
|
|
2
|
+
import { ComponentProps } from '../../testkit/new/Component.driver';
|
|
3
|
+
export declare const SectionsWheelPickerDriver: (props: ComponentProps) => {
|
|
4
|
+
sections: import("../WheelPicker").WheelPickerProps<import("../WheelPicker").WheelPickerItemValue>[] | undefined;
|
|
5
|
+
sectionsDrivers: {
|
|
6
|
+
getListHeight: () => any;
|
|
7
|
+
moveToItem: (index: number, itemHeight?: number, numberOfRows?: number) => void;
|
|
8
|
+
getLabel: () => string | (string | ReactTestInstance)[];
|
|
9
|
+
scroll: (contentOffset: Partial<import("react-native/types").NativeScrollPoint>, options?: {
|
|
10
|
+
contentInset: import("react-native/types").NativeScrollRectangle;
|
|
11
|
+
zoomScale: number;
|
|
12
|
+
layoutMeasurement: import("react-native/types").NativeScrollSize;
|
|
13
|
+
contentSize: import("react-native/types").NativeScrollSize;
|
|
14
|
+
velocity?: import("react-native/types").NativeScrollVelocity | undefined;
|
|
15
|
+
targetContentOffset?: import("react-native/types").NativeScrollPoint | undefined;
|
|
16
|
+
} | undefined) => void;
|
|
17
|
+
triggerEvent: (eventName?: string | undefined, event?: Partial<import("react-native/types").NativeScrollEvent> | undefined) => void;
|
|
18
|
+
getElement: () => ReactTestInstance;
|
|
19
|
+
queryElement: () => ReactTestInstance | undefined;
|
|
20
|
+
exists: () => boolean;
|
|
21
|
+
}[];
|
|
22
|
+
getElement: () => ReactTestInstance;
|
|
23
|
+
queryElement: () => ReactTestInstance | undefined;
|
|
24
|
+
exists: () => boolean;
|
|
25
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { TextStyle } from 'react-native';
|
|
3
|
+
import { WheelPickerProps, WheelPickerItemValue } from '../WheelPicker';
|
|
4
|
+
export type SectionsWheelPickerProps<T = WheelPickerItemValue> = PropsWithChildren<{
|
|
5
|
+
/**
|
|
6
|
+
* Array of sections.
|
|
7
|
+
*/
|
|
8
|
+
sections?: WheelPickerProps<T>[];
|
|
9
|
+
/**
|
|
10
|
+
* Describe the height of each item in the WheelPicker
|
|
11
|
+
* default value: 44
|
|
12
|
+
*/
|
|
13
|
+
itemHeight?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Describe the number of rows visible
|
|
16
|
+
* default value: 5
|
|
17
|
+
*/
|
|
18
|
+
numberOfVisibleRows?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Text color for the focused row
|
|
21
|
+
*/
|
|
22
|
+
activeTextColor?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Text color for other, non-focused rows
|
|
25
|
+
*/
|
|
26
|
+
inactiveTextColor?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Row text style
|
|
29
|
+
*/
|
|
30
|
+
textStyle?: TextStyle;
|
|
31
|
+
disableRTL?: boolean;
|
|
32
|
+
testID?: string;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* @description: SectionsWheelPicker component for presenting set of wheelPickers
|
|
36
|
+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/SectionsWheelPickerScreen.tsx
|
|
37
|
+
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/SectionsWheelPicker/SectionsWheelPicker.gif?raw=true
|
|
38
|
+
*/
|
|
39
|
+
declare const SectionsWheelPicker: {
|
|
40
|
+
<T extends WheelPickerItemValue>(props: SectionsWheelPickerProps<T>): React.JSX.Element;
|
|
41
|
+
displayName: string;
|
|
42
|
+
};
|
|
43
|
+
export default SectionsWheelPicker;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
import { SegmentedControlItemProps } from './segment';
|
|
4
|
+
import { TextProps } from '../text';
|
|
5
|
+
export declare enum SegmentedControlPreset {
|
|
6
|
+
DEFAULT = "default",
|
|
7
|
+
FORM = "form"
|
|
8
|
+
}
|
|
9
|
+
export { SegmentedControlItemProps };
|
|
10
|
+
export type SegmentedControlProps = {
|
|
11
|
+
/**
|
|
12
|
+
* Array on segments.
|
|
13
|
+
*/
|
|
14
|
+
segments: SegmentedControlItemProps[];
|
|
15
|
+
/**
|
|
16
|
+
* The color of the active segment label.
|
|
17
|
+
*/
|
|
18
|
+
activeColor?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The color of the inactive segments (label).
|
|
21
|
+
*/
|
|
22
|
+
inactiveColor?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Callback for when index has change.
|
|
25
|
+
*/
|
|
26
|
+
onChangeIndex?: (index: number) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Initial index to be active.
|
|
29
|
+
*/
|
|
30
|
+
initialIndex?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The segmentedControl borderRadius
|
|
33
|
+
*/
|
|
34
|
+
borderRadius?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The background color of the inactive segments
|
|
37
|
+
*/
|
|
38
|
+
backgroundColor?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The background color of the active segment
|
|
41
|
+
*/
|
|
42
|
+
activeBackgroundColor?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The color of the active segment outline
|
|
45
|
+
*/
|
|
46
|
+
outlineColor?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The width of the active segment outline
|
|
49
|
+
*/
|
|
50
|
+
outlineWidth?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Should the icon be on right of the label
|
|
53
|
+
*/
|
|
54
|
+
iconOnRight?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Trailing throttle time of changing index in ms.
|
|
57
|
+
*/
|
|
58
|
+
throttleTime?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Additional style for the segment
|
|
61
|
+
*/
|
|
62
|
+
segmentsStyle?: StyleProp<ViewStyle>;
|
|
63
|
+
/**
|
|
64
|
+
* Segment label style
|
|
65
|
+
*/
|
|
66
|
+
segmentLabelStyle?: StyleProp<TextStyle>;
|
|
67
|
+
/**
|
|
68
|
+
* Additional spacing styles for the container
|
|
69
|
+
*/
|
|
70
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
71
|
+
style?: StyleProp<ViewStyle>;
|
|
72
|
+
testID?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Preset type
|
|
75
|
+
*/
|
|
76
|
+
preset?: SegmentedControlPreset | `${SegmentedControlPreset}`;
|
|
77
|
+
/**
|
|
78
|
+
* SegmentedControl label
|
|
79
|
+
*/
|
|
80
|
+
label?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Pass props for the SegmentedControl label
|
|
83
|
+
*/
|
|
84
|
+
labelProps?: TextProps;
|
|
85
|
+
};
|
|
86
|
+
interface StaticMembers {
|
|
87
|
+
presets: typeof SegmentedControlPreset;
|
|
88
|
+
}
|
|
89
|
+
declare const _default: React.ForwardRefExoticComponent<SegmentedControlProps & React.RefAttributes<any>> & StaticMembers;
|
|
90
|
+
export default _default;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LayoutChangeEvent, ImageStyle, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import Reanimated from 'react-native-reanimated';
|
|
4
|
+
import { SegmentedControlProps } from './index';
|
|
5
|
+
import { IconProps } from '../icon';
|
|
6
|
+
export type SegmentedControlItemProps = Pick<SegmentedControlProps, 'segmentLabelStyle'> & {
|
|
7
|
+
/**
|
|
8
|
+
* The label of the segment.
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* An icon for the segment.
|
|
13
|
+
*/
|
|
14
|
+
iconSource?: IconProps['source'];
|
|
15
|
+
/**
|
|
16
|
+
* An icon for the segment.
|
|
17
|
+
*/
|
|
18
|
+
iconStyle?: StyleProp<ImageStyle>;
|
|
19
|
+
/**
|
|
20
|
+
* Should the icon be on right of the label
|
|
21
|
+
*/
|
|
22
|
+
iconOnRight?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Icon tint color
|
|
25
|
+
*/
|
|
26
|
+
iconTintColor?: string;
|
|
27
|
+
};
|
|
28
|
+
export type SegmentProps = SegmentedControlItemProps & {
|
|
29
|
+
/**
|
|
30
|
+
* Shared value of the current selected index.
|
|
31
|
+
*/
|
|
32
|
+
selectedIndex?: Reanimated.SharedValue<number>;
|
|
33
|
+
/**
|
|
34
|
+
* The color of the active segment (label and outline).
|
|
35
|
+
*/
|
|
36
|
+
activeColor?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The color of the inactive segment (label).
|
|
39
|
+
*/
|
|
40
|
+
inactiveColor?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Callback for when segment has pressed.
|
|
43
|
+
*/
|
|
44
|
+
onPress?: (index: number) => void;
|
|
45
|
+
/**
|
|
46
|
+
* The index of the segment.
|
|
47
|
+
*/
|
|
48
|
+
index: number;
|
|
49
|
+
/**
|
|
50
|
+
* onLayout function.
|
|
51
|
+
*/
|
|
52
|
+
onLayout?: (index: number, event: LayoutChangeEvent) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Additional style for the segment.
|
|
55
|
+
*/
|
|
56
|
+
style?: StyleProp<ViewStyle>;
|
|
57
|
+
testID?: string;
|
|
58
|
+
};
|
|
59
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<SegmentedControlProps, "segmentLabelStyle"> & {
|
|
60
|
+
/**
|
|
61
|
+
* The label of the segment.
|
|
62
|
+
*/
|
|
63
|
+
label?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* An icon for the segment.
|
|
66
|
+
*/
|
|
67
|
+
iconSource?: import("../image").ImageSourceType;
|
|
68
|
+
/**
|
|
69
|
+
* An icon for the segment.
|
|
70
|
+
*/
|
|
71
|
+
iconStyle?: StyleProp<ImageStyle>;
|
|
72
|
+
/**
|
|
73
|
+
* Should the icon be on right of the label
|
|
74
|
+
*/
|
|
75
|
+
iconOnRight?: boolean | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Icon tint color
|
|
78
|
+
*/
|
|
79
|
+
iconTintColor?: string | undefined;
|
|
80
|
+
} & {
|
|
81
|
+
/**
|
|
82
|
+
* Shared value of the current selected index.
|
|
83
|
+
*/
|
|
84
|
+
selectedIndex?: Reanimated.SharedValue<number> | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* The color of the active segment (label and outline).
|
|
87
|
+
*/
|
|
88
|
+
activeColor?: string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* The color of the inactive segment (label).
|
|
91
|
+
*/
|
|
92
|
+
inactiveColor?: string | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Callback for when segment has pressed.
|
|
95
|
+
*/
|
|
96
|
+
onPress?: ((index: number) => void) | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* The index of the segment.
|
|
99
|
+
*/
|
|
100
|
+
index: number;
|
|
101
|
+
/**
|
|
102
|
+
* onLayout function.
|
|
103
|
+
*/
|
|
104
|
+
onLayout?: ((index: number, event: LayoutChangeEvent) => void) | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Additional style for the segment.
|
|
107
|
+
*/
|
|
108
|
+
style?: StyleProp<ViewStyle>;
|
|
109
|
+
testID?: string | undefined;
|
|
110
|
+
} & React.RefAttributes<any>>;
|
|
111
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SegmentedControlProps } from './';
|
|
2
|
+
import { SegmentProps } from './segment';
|
|
3
|
+
import type { ColorValue } from 'react-native';
|
|
4
|
+
interface useSegmentedControlPresetProps extends SegmentedControlProps, Partial<SegmentProps> {
|
|
5
|
+
segmentDividerWidth: number;
|
|
6
|
+
segmentDividerColor: ColorValue;
|
|
7
|
+
iconTintColor?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const useSegmentedControlPreset: (props: SegmentedControlProps) => useSegmentedControlPresetProps;
|
|
10
|
+
export default useSegmentedControlPreset;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { Animated, StyleProp, ViewStyle, AccessibilityProps } from 'react-native';
|
|
3
|
+
import { AlignmentModifiers, PaddingModifiers, MarginModifiers } from '../../commons/new';
|
|
4
|
+
export declare enum Template {
|
|
5
|
+
LIST_ITEM = "listItem",
|
|
6
|
+
TEXT_CONTENT = "content"
|
|
7
|
+
}
|
|
8
|
+
export declare enum Size {
|
|
9
|
+
SMALL = "small",
|
|
10
|
+
LARGE = "large"
|
|
11
|
+
}
|
|
12
|
+
export declare enum ContentType {
|
|
13
|
+
AVATAR = "avatar",
|
|
14
|
+
THUMBNAIL = "thumbnail"
|
|
15
|
+
}
|
|
16
|
+
export interface SkeletonListProps {
|
|
17
|
+
/**
|
|
18
|
+
* The size of the skeleton view.
|
|
19
|
+
* Types: SMALL and LARGE (using SkeletonView.sizes.###)
|
|
20
|
+
*/
|
|
21
|
+
size?: Size | `${Size}`;
|
|
22
|
+
/**
|
|
23
|
+
* Add content to the skeleton.
|
|
24
|
+
* Types: AVATAR and THUMBNAIL (using SkeletonView.contentTypes.###)
|
|
25
|
+
*/
|
|
26
|
+
contentType?: ContentType | `${ContentType}`;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to hide the list item template separator
|
|
29
|
+
*/
|
|
30
|
+
hideSeparator?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to show the last list item template separator
|
|
33
|
+
*/
|
|
34
|
+
showLastSeparator?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Extra content to be rendered on the end of the list item
|
|
37
|
+
*/
|
|
38
|
+
renderEndContent?: () => React.ReactElement | undefined;
|
|
39
|
+
}
|
|
40
|
+
export interface SkeletonViewProps extends AccessibilityProps, AlignmentModifiers, PaddingModifiers, MarginModifiers {
|
|
41
|
+
/**
|
|
42
|
+
* The content has been loaded, start fading out the skeleton and fading in the content
|
|
43
|
+
*/
|
|
44
|
+
showContent?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* A function that will render the content once the content is ready (i.e. showContent is true).
|
|
47
|
+
* The method will be called with the Skeleton's customValue (i.e. renderContent(props?.customValue))
|
|
48
|
+
*/
|
|
49
|
+
renderContent?: (customValue?: any) => React.ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Custom value of any type to pass on to SkeletonView and receive back in the renderContent callback.
|
|
52
|
+
*/
|
|
53
|
+
customValue?: any;
|
|
54
|
+
/**
|
|
55
|
+
* The type of the skeleton view.
|
|
56
|
+
* Types: LIST_ITEM and TEXT_CONTENT (using SkeletonView.templates.###)
|
|
57
|
+
*/
|
|
58
|
+
template?: Template | `${Template}`;
|
|
59
|
+
/**
|
|
60
|
+
* Props that are available when using template={SkeletonView.templates.LIST_ITEM}
|
|
61
|
+
*/
|
|
62
|
+
listProps?: SkeletonListProps;
|
|
63
|
+
/**
|
|
64
|
+
* An object that holds the number of times the skeleton will appear, and (optionally) the key.
|
|
65
|
+
* The key will actually be `${key}-${index}` if a key is given or `${index}` if no key is given.
|
|
66
|
+
* IMPORTANT: your data (i.e. children \ renderContent) will NOT be duplicated.
|
|
67
|
+
* Note: testID will be `${testID}-${index}`
|
|
68
|
+
*/
|
|
69
|
+
times?: number;
|
|
70
|
+
/**
|
|
71
|
+
* A key for the duplicated SkeletonViews.
|
|
72
|
+
* This is needed because the `key` prop is not accessible.
|
|
73
|
+
*/
|
|
74
|
+
timesKey?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The height of the skeleton view
|
|
77
|
+
*/
|
|
78
|
+
height?: number;
|
|
79
|
+
/**
|
|
80
|
+
* The width of the skeleton view
|
|
81
|
+
*/
|
|
82
|
+
width?: number;
|
|
83
|
+
/**
|
|
84
|
+
* The colors of the skeleton view, the array length has to be >=2
|
|
85
|
+
* default: [Colors.grey70, Colors.grey60, Colors.grey70]
|
|
86
|
+
*/
|
|
87
|
+
colors?: string[];
|
|
88
|
+
/**
|
|
89
|
+
* The border radius of the skeleton view
|
|
90
|
+
*/
|
|
91
|
+
borderRadius?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the skeleton is a circle (will override the borderRadius)
|
|
94
|
+
*/
|
|
95
|
+
circle?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Additional style to the skeleton view
|
|
98
|
+
*/
|
|
99
|
+
shimmerStyle?: StyleProp<ViewStyle>;
|
|
100
|
+
/**
|
|
101
|
+
* Override container styles
|
|
102
|
+
*/
|
|
103
|
+
style?: StyleProp<ViewStyle>;
|
|
104
|
+
/**
|
|
105
|
+
* Used to locate this view in end-to-end tests
|
|
106
|
+
*/
|
|
107
|
+
testID?: string;
|
|
108
|
+
children?: React.ReactNode;
|
|
109
|
+
}
|
|
110
|
+
interface SkeletonState {
|
|
111
|
+
isAnimating: boolean;
|
|
112
|
+
opacity: Animated.Value;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* @description: Allows showing a temporary skeleton view while your real view is loading.
|
|
116
|
+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/SkeletonViewScreen.tsx
|
|
117
|
+
* @image: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Skeleton/Skeleton.gif?raw=true
|
|
118
|
+
* @notes: View requires installing the 'react-native-shimmer-placeholder' and 'react-native-linear-gradient' library
|
|
119
|
+
*/
|
|
120
|
+
declare class SkeletonView extends Component<SkeletonViewProps, SkeletonState> {
|
|
121
|
+
static displayName: string;
|
|
122
|
+
static defaultProps: {
|
|
123
|
+
size: Size;
|
|
124
|
+
borderRadius: number;
|
|
125
|
+
};
|
|
126
|
+
static templates: typeof Template;
|
|
127
|
+
static sizes: typeof Size;
|
|
128
|
+
static contentTypes: typeof ContentType;
|
|
129
|
+
fadeInAnimation?: Animated.CompositeAnimation;
|
|
130
|
+
contentAccessibilityProps?: AccessibilityProps;
|
|
131
|
+
listItemAccessibilityProps?: AccessibilityProps;
|
|
132
|
+
setAccessibilityProps(template?: SkeletonViewProps['template']): void;
|
|
133
|
+
constructor(props: SkeletonViewProps);
|
|
134
|
+
componentDidMount(): void;
|
|
135
|
+
componentDidUpdate(prevProps: SkeletonViewProps): void;
|
|
136
|
+
fade(isFadeIn: boolean, onAnimationEnd?: Animated.EndCallback): Animated.CompositeAnimation;
|
|
137
|
+
showChildren: () => void;
|
|
138
|
+
getDefaultSkeletonProps: (input?: {
|
|
139
|
+
circleOverride: boolean;
|
|
140
|
+
style: StyleProp<ViewStyle>;
|
|
141
|
+
}) => {
|
|
142
|
+
shimmerColors: string[];
|
|
143
|
+
isReversed: boolean;
|
|
144
|
+
style: StyleProp<ViewStyle>[];
|
|
145
|
+
width: number | undefined;
|
|
146
|
+
height: number;
|
|
147
|
+
shimmerStyle: StyleProp<ViewStyle>;
|
|
148
|
+
};
|
|
149
|
+
get contentSize(): 40 | 48;
|
|
150
|
+
renderListItemLeftContent: () => React.JSX.Element | undefined;
|
|
151
|
+
renderStrip: (isMain: boolean, length: number, marginTop: number) => React.JSX.Element;
|
|
152
|
+
renderListItemContentStrips: () => React.JSX.Element;
|
|
153
|
+
getListItemStyle: (this: any, style: any) => any[];
|
|
154
|
+
renderListItemTemplate: () => React.JSX.Element;
|
|
155
|
+
renderTextContentTemplate: () => React.JSX.Element;
|
|
156
|
+
renderTemplate: () => React.JSX.Element;
|
|
157
|
+
renderAdvanced: () => React.JSX.Element;
|
|
158
|
+
renderWithFading: (skeleton: any) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
159
|
+
renderSkeleton(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
160
|
+
renderNothing: () => null;
|
|
161
|
+
render(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
162
|
+
}
|
|
163
|
+
export default SkeletonView;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="tinycolor2" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ColorSliderGroupProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* @description: A Gradient Slider component
|
|
6
|
+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/SliderScreen.tsx
|
|
7
|
+
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/ColorSliderGroup/ColorSliderGroup.gif?raw=true
|
|
8
|
+
*/
|
|
9
|
+
declare const ColorSliderGroup: {
|
|
10
|
+
<T extends string | import("tinycolor2").ColorFormats.HSLA = string>(props: ColorSliderGroupProps<T>): React.JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default ColorSliderGroup;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="tinycolor2" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ForwardRefInjectedProps } from '../../commons/new';
|
|
4
|
+
import { ComponentStatics } from '../../typings/common';
|
|
5
|
+
import { GradientSliderProps, GradientSliderTypes } from './types';
|
|
6
|
+
type Props<T> = GradientSliderProps<T> & ForwardRefInjectedProps;
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("./types").SliderProps, "onValueChange"> & {
|
|
8
|
+
color?: string | import("tinycolor2").ColorFormats.HSLA | undefined;
|
|
9
|
+
type?: "default" | "hue" | "saturation" | "lightness" | GradientSliderTypes | undefined;
|
|
10
|
+
gradientSteps?: number | undefined;
|
|
11
|
+
onValueChange?: ((value: string, alfa: number) => void) | undefined;
|
|
12
|
+
accessible?: boolean | undefined;
|
|
13
|
+
containerStyle?: import("react-native/types").StyleProp<import("react-native/types").ViewStyle>;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
} & React.RefAttributes<any>> & ComponentStatics<{
|
|
16
|
+
<T extends string | import("tinycolor2").ColorFormats.HSLA = string>(props: Props<T>): React.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
types: typeof GradientSliderTypes;
|
|
19
|
+
}>;
|
|
20
|
+
export default _default;
|