react-native-ui-lib 8.4.0 → 8.4.1-snapshot.7904
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/components/HighlighterOverlayView/index.d.ts +2 -2
- package/lib/components/HighlighterOverlayView/index.web.d.ts +2 -2
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardViewBase.d.ts +1 -1
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardRegistry/index.js +5 -1
- package/lib/components/Keyboard/KeyboardAccessoryView/index.d.ts +2 -2
- package/lib/components/Keyboard/KeyboardAccessoryView/index.js +3 -1
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.js +3 -1
- package/lib/components/Keyboard/KeyboardTrackingView/index.d.ts +6 -2
- package/lib/components/Keyboard/KeyboardTrackingView/index.js +5 -4
- package/lib/components/Keyboard/index.d.ts +2 -1
- package/lib/package.json +20 -21
- package/lib/react-native.config.js +1 -1
- package/package.json +161 -164
- package/src/commons/asBaseComponent.js +2 -1
- package/src/commons/baseComponent.js +0 -8
- package/src/commons/forwardRef.js +1 -4
- package/src/commons/modifiers.d.ts +0 -6
- package/src/commons/modifiers.js +0 -18
- package/src/commons/withScrollEnabler.js +0 -4
- package/src/commons/withScrollReached.js +0 -4
- package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +0 -7
- package/src/components/KeyboardAwareScrollView/KeyboardAwareFlatList.js +0 -6
- package/src/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +0 -6
- package/src/components/WheelPicker/WheelPicker.driver.d.ts +2 -2
- package/src/components/WheelPicker/index.d.ts +2 -2
- package/src/components/WheelPicker/index.js +1 -1
- package/src/components/WheelPicker/usePresenter.d.ts +1 -1
- package/src/components/actionSheet/index.d.ts +1 -1
- package/src/components/animatedImage/index.d.ts +1 -1
- package/src/components/animatedScanner/index.js +0 -37
- package/src/components/avatar/index.d.ts +1 -1
- package/src/components/badge/index.d.ts +4 -4
- package/src/components/baseInput/index.d.ts +0 -1
- package/src/components/baseInput/index.js +1 -49
- package/src/components/button/index.d.ts +4 -4
- package/src/components/button/types.d.ts +2 -2
- package/src/components/carousel/index.d.ts +8 -8
- package/src/components/carousel/types.d.ts +4 -1
- package/src/components/carousel/types.js +0 -2
- package/src/components/checkbox/index.d.ts +1 -1
- package/src/components/chip/index.d.ts +1 -1
- package/src/components/chipsInput/index.d.ts +2 -0
- package/src/components/colorPalette/index.d.ts +1 -1
- package/src/components/dateTimePicker/index.d.ts +2 -2
- package/src/components/dateTimePicker/index.js +2 -2
- package/src/components/dialog/types.d.ts +4 -4
- package/src/components/dialog/useDialogContent.d.ts +1 -1
- package/src/components/drawer/index.d.ts +1 -1
- package/src/components/expandableSection/index.d.ts +2 -2
- package/src/components/fadedScrollView/index.js +1 -1
- package/src/components/featureHighlight/index.js +5 -7
- package/src/components/floatingButton/index.d.ts +2 -1
- package/src/components/floatingButton/index.js +12 -8
- package/src/components/gridListItem/index.d.ts +7 -7
- package/src/components/gridView/index.d.ts +1 -1
- package/src/components/hint/HintBubble.d.ts +1 -1
- package/src/components/hint/HintOld.d.ts +10 -10
- package/src/components/hint/hooks/useHintLayout.d.ts +1 -1
- package/src/components/hint/index.d.ts +2 -2
- package/src/components/hint/types.d.ts +2 -2
- package/src/components/icon/index.js +0 -3
- package/src/components/image/index.d.ts +1 -1
- package/src/components/image/index.js +20 -17
- package/src/components/loaderScreen/index.d.ts +1 -1
- package/src/components/loaderScreen/types.d.ts +1 -1
- package/src/components/maskedInput/index.d.ts +21 -4
- package/src/components/maskedInput/index.js +78 -16
- package/src/components/maskedInput/maskedInput.api.json +0 -1
- package/src/components/modal/index.d.ts +3 -3
- package/src/components/numberInput/index.js +2 -2
- package/src/components/overlay/index.d.ts +1 -1
- package/src/components/picker/PickerDialog.android.js +0 -15
- package/src/components/picker/PickerDialog.js +0 -7
- package/src/components/picker/helpers/useImperativePickerHandle.d.ts +1 -1
- package/src/components/picker/helpers/useImperativePickerHandle.js +1 -1
- package/src/components/picker/types.d.ts +9 -9
- package/src/components/progressBar/index.d.ts +2 -2
- package/src/components/screenFooter/index.js +6 -1
- package/src/components/screenFooter/screenFooter.api.json +5 -0
- package/src/components/screenFooter/types.d.ts +5 -0
- package/src/components/scrollBar/index.d.ts +11 -4
- package/src/components/searchInput/index.js +1 -1
- package/src/components/searchInput/types.d.ts +2 -2
- package/src/components/sectionsWheelPicker/SectionsWheelPicker.driver.d.ts +2 -2
- package/src/components/skeletonView/index.d.ts +4 -4
- package/src/components/slider/Thumb.d.ts +1 -1
- package/src/components/slider/types.d.ts +1 -1
- package/src/components/stackAggregator/index.d.ts +1 -1
- package/src/components/tabController/TabBarItem.d.ts +2 -2
- package/src/components/tabController/TabBarItem.js +1 -1
- package/src/components/tabController/TabPage.d.ts +2 -2
- package/src/components/tabController/useScrollToItem.d.ts +1 -1
- package/src/components/text/Text.driver.d.ts +1 -1
- package/src/components/textArea/index.js +0 -6
- package/src/components/textField/types.d.ts +4 -4
- package/src/components/textField/useImperativeInputHandle.d.ts +1 -1
- package/src/components/textField/useImperativeInputHandle.js +1 -1
- package/src/components/textField/usePreset.d.ts +36 -36
- package/src/components/timeline/index.js +1 -1
- package/src/components/toast/index.js +0 -69
- package/src/components/wizard/index.d.ts +1 -1
- package/src/components/wizard/types.d.ts +1 -1
- package/src/components/wizard/wizard.api.json +1 -1
- package/src/hooks/useCombinedRefs/index.js +1 -2
- package/src/hooks/useDebounce/index.js +1 -1
- package/src/hooks/useHiddenLocation/index.js +2 -2
- package/src/hooks/useHiddenLocation/index.web.js +2 -2
- package/src/hooks/useMeasure/index.d.ts +1 -1
- package/src/hooks/useMeasure/index.js +1 -1
- package/src/hooks/useScrollTo/index.d.ts +2 -2
- package/src/incubator/calendar/index.js +1 -1
- package/src/incubator/calendar/types.d.ts +2 -2
- package/src/incubator/expandableOverlay/index.d.ts +2 -2
- package/src/incubator/index.d.ts +1 -0
- package/src/incubator/index.js +2 -1
- package/src/{components → incubator}/marquee/index.js +2 -2
- package/src/{components → incubator}/marquee/marquee.api.json +1 -1
- package/src/{components → incubator}/marquee/types.d.ts +2 -2
- package/src/incubator/slider/Thumb.js +1 -1
- package/src/incubator/slider/Track.d.ts +1 -1
- package/src/incubator/slider/index.d.ts +1 -1
- package/src/incubator/toast/helpers/useToastTimer.js +1 -1
- package/src/incubator/toast/index.js +1 -1
- package/src/incubator/toast/types.d.ts +2 -2
- package/src/index.d.ts +2 -3
- package/src/index.js +18 -18
- package/src/testkit/Component.driver.d.ts +1 -1
- package/src/testkit/drivers/TestingLibraryDriver.d.ts +1 -1
- package/src/typings/module.d.ts +12 -3
- package/ReactNativeUiLib.podspec +0 -22
- package/marquee.d.ts +0 -2
- package/marquee.js +0 -1
- package/src/components/maskedInput/new.d.ts +0 -22
- package/src/components/maskedInput/new.js +0 -85
- package/src/components/maskedInput/old.js +0 -95
- package/src/components/textFieldOld/index.d.ts +0 -71
- package/src/components/textFieldOld/index.js +0 -807
- package/src/helpers/DocsGenerator.js +0 -61
- package/textFieldOld.d.ts +0 -2
- package/textFieldOld.js +0 -1
- /package/src/{components → incubator}/marquee/index.d.ts +0 -0
- /package/src/{components → incubator}/marquee/types.js +0 -0
|
@@ -31,19 +31,15 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
31
31
|
start: number;
|
|
32
32
|
end?: number | undefined;
|
|
33
33
|
} | undefined;
|
|
34
|
-
children?: import("react").ReactNode;
|
|
35
34
|
style?: import("react-native/types").StyleProp<import("react-native/types").TextStyle>;
|
|
36
|
-
|
|
37
|
-
removeClippedSubviews?: boolean | undefined;
|
|
38
|
-
onLayout?: ((event: import("react-native/types").LayoutChangeEvent) => void) | undefined;
|
|
39
|
-
onContentSizeChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
40
|
-
onScroll?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputScrollEventData>) => void) | undefined;
|
|
41
|
-
scrollEnabled?: boolean | undefined;
|
|
35
|
+
children?: import("react").ReactNode;
|
|
42
36
|
hitSlop?: number | import("react-native/types").Insets | null | undefined;
|
|
43
37
|
id?: string | undefined;
|
|
44
38
|
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
39
|
+
onLayout?: ((event: import("react-native/types").LayoutChangeEvent) => void) | undefined;
|
|
40
|
+
removeClippedSubviews?: boolean | undefined;
|
|
41
|
+
testID?: string | undefined;
|
|
45
42
|
nativeID?: string | undefined;
|
|
46
|
-
experimental_layoutConformance?: "strict" | "classic" | undefined;
|
|
47
43
|
collapsable?: boolean | undefined;
|
|
48
44
|
collapsableChildren?: boolean | undefined;
|
|
49
45
|
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
@@ -123,6 +119,8 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
123
119
|
accessibilityLanguage?: string | undefined;
|
|
124
120
|
accessibilityShowsLargeContentViewer?: boolean | undefined;
|
|
125
121
|
accessibilityLargeContentTitle?: string | undefined;
|
|
122
|
+
scrollEnabled?: boolean | undefined;
|
|
123
|
+
onContentSizeChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
126
124
|
onPress?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
127
125
|
onPressIn?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
128
126
|
onPressOut?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
@@ -136,7 +134,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
136
134
|
selectionColor?: import("react-native/types").ColorValue | undefined;
|
|
137
135
|
textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
|
|
138
136
|
autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
|
|
139
|
-
autoComplete?: "
|
|
137
|
+
autoComplete?: "off" | "name" | "email" | "url" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "username" | "username-new" | undefined;
|
|
140
138
|
autoCorrect?: boolean | undefined;
|
|
141
139
|
autoFocus?: boolean | undefined;
|
|
142
140
|
blurOnSubmit?: boolean | undefined;
|
|
@@ -154,6 +152,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
154
152
|
onEndEditing?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputEndEditingEventData>) => void) | undefined;
|
|
155
153
|
onSelectionChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputSelectionChangeEventData>) => void) | undefined;
|
|
156
154
|
onSubmitEditing?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputSubmitEditingEventData>) => void) | undefined;
|
|
155
|
+
onScroll?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputScrollEventData>) => void) | undefined;
|
|
157
156
|
onKeyPress?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputKeyPressEventData>) => void) | undefined;
|
|
158
157
|
placeholder?: string | undefined;
|
|
159
158
|
readOnly?: boolean | undefined;
|
|
@@ -162,6 +161,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
162
161
|
secureTextEntry?: boolean | undefined;
|
|
163
162
|
selectTextOnFocus?: boolean | undefined;
|
|
164
163
|
inputAccessoryViewID?: string | undefined;
|
|
164
|
+
disableKeyboardShortcuts?: boolean | undefined;
|
|
165
165
|
clearButtonMode?: "always" | "never" | "while-editing" | "unless-editing" | undefined;
|
|
166
166
|
clearTextOnFocus?: boolean | undefined;
|
|
167
167
|
dataDetectorTypes?: import("react-native/types").DataDetectorTypes | import("react-native/types").DataDetectorTypes[] | undefined;
|
|
@@ -502,19 +502,15 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
502
502
|
start: number;
|
|
503
503
|
end?: number | undefined;
|
|
504
504
|
} | undefined;
|
|
505
|
-
children?: import("react").ReactNode;
|
|
506
505
|
style?: import("react-native/types").StyleProp<import("react-native/types").TextStyle>;
|
|
507
|
-
|
|
508
|
-
removeClippedSubviews?: boolean | undefined;
|
|
509
|
-
onLayout?: ((event: import("react-native/types").LayoutChangeEvent) => void) | undefined;
|
|
510
|
-
onContentSizeChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
511
|
-
onScroll?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputScrollEventData>) => void) | undefined;
|
|
512
|
-
scrollEnabled?: boolean | undefined;
|
|
506
|
+
children?: import("react").ReactNode;
|
|
513
507
|
hitSlop?: number | import("react-native/types").Insets | null | undefined;
|
|
514
508
|
id?: string | undefined;
|
|
515
509
|
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
510
|
+
onLayout?: ((event: import("react-native/types").LayoutChangeEvent) => void) | undefined;
|
|
511
|
+
removeClippedSubviews?: boolean | undefined;
|
|
512
|
+
testID?: string | undefined;
|
|
516
513
|
nativeID?: string | undefined;
|
|
517
|
-
experimental_layoutConformance?: "strict" | "classic" | undefined;
|
|
518
514
|
collapsable?: boolean | undefined;
|
|
519
515
|
collapsableChildren?: boolean | undefined;
|
|
520
516
|
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
@@ -594,6 +590,8 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
594
590
|
accessibilityLanguage?: string | undefined;
|
|
595
591
|
accessibilityShowsLargeContentViewer?: boolean | undefined;
|
|
596
592
|
accessibilityLargeContentTitle?: string | undefined;
|
|
593
|
+
scrollEnabled?: boolean | undefined;
|
|
594
|
+
onContentSizeChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
597
595
|
onPress?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
598
596
|
onPressIn?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
599
597
|
onPressOut?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
@@ -607,7 +605,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
607
605
|
selectionColor?: import("react-native/types").ColorValue | undefined;
|
|
608
606
|
textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
|
|
609
607
|
autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
|
|
610
|
-
autoComplete?: "
|
|
608
|
+
autoComplete?: "off" | "name" | "email" | "url" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "username" | "username-new" | undefined;
|
|
611
609
|
autoCorrect?: boolean | undefined;
|
|
612
610
|
autoFocus?: boolean | undefined;
|
|
613
611
|
blurOnSubmit?: boolean | undefined;
|
|
@@ -625,6 +623,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
625
623
|
onEndEditing?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputEndEditingEventData>) => void) | undefined;
|
|
626
624
|
onSelectionChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputSelectionChangeEventData>) => void) | undefined;
|
|
627
625
|
onSubmitEditing?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputSubmitEditingEventData>) => void) | undefined;
|
|
626
|
+
onScroll?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputScrollEventData>) => void) | undefined;
|
|
628
627
|
onKeyPress?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputKeyPressEventData>) => void) | undefined;
|
|
629
628
|
placeholder?: string | undefined;
|
|
630
629
|
readOnly?: boolean | undefined;
|
|
@@ -633,6 +632,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
633
632
|
secureTextEntry?: boolean | undefined;
|
|
634
633
|
selectTextOnFocus?: boolean | undefined;
|
|
635
634
|
inputAccessoryViewID?: string | undefined;
|
|
635
|
+
disableKeyboardShortcuts?: boolean | undefined;
|
|
636
636
|
clearButtonMode?: "always" | "never" | "while-editing" | "unless-editing" | undefined;
|
|
637
637
|
clearTextOnFocus?: boolean | undefined;
|
|
638
638
|
dataDetectorTypes?: import("react-native/types").DataDetectorTypes | import("react-native/types").DataDetectorTypes[] | undefined;
|
|
@@ -989,19 +989,15 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
989
989
|
start: number;
|
|
990
990
|
end?: number | undefined;
|
|
991
991
|
} | undefined;
|
|
992
|
-
children?: import("react").ReactNode;
|
|
993
992
|
style: false | "" | import("react-native/types").TextStyle | import("react-native/types").RegisteredStyle<import("react-native/types").TextStyle> | import("react-native/types").RecursiveArray<import("react-native/types").TextStyle | import("react-native/types").Falsy | import("react-native/types").RegisteredStyle<import("react-native/types").TextStyle>> | null;
|
|
994
|
-
|
|
995
|
-
removeClippedSubviews?: boolean | undefined;
|
|
996
|
-
onLayout?: ((event: import("react-native/types").LayoutChangeEvent) => void) | undefined;
|
|
997
|
-
onContentSizeChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
998
|
-
onScroll?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputScrollEventData>) => void) | undefined;
|
|
999
|
-
scrollEnabled?: boolean | undefined;
|
|
993
|
+
children?: import("react").ReactNode;
|
|
1000
994
|
hitSlop?: number | import("react-native/types").Insets | null | undefined;
|
|
1001
995
|
id?: string | undefined;
|
|
1002
996
|
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
997
|
+
onLayout?: ((event: import("react-native/types").LayoutChangeEvent) => void) | undefined;
|
|
998
|
+
removeClippedSubviews?: boolean | undefined;
|
|
999
|
+
testID?: string | undefined;
|
|
1003
1000
|
nativeID?: string | undefined;
|
|
1004
|
-
experimental_layoutConformance?: "strict" | "classic" | undefined;
|
|
1005
1001
|
collapsable?: boolean | undefined;
|
|
1006
1002
|
collapsableChildren?: boolean | undefined;
|
|
1007
1003
|
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
@@ -1081,6 +1077,8 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
1081
1077
|
accessibilityLanguage?: string | undefined;
|
|
1082
1078
|
accessibilityShowsLargeContentViewer?: boolean | undefined;
|
|
1083
1079
|
accessibilityLargeContentTitle?: string | undefined;
|
|
1080
|
+
scrollEnabled?: boolean | undefined;
|
|
1081
|
+
onContentSizeChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
1084
1082
|
onPress?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
1085
1083
|
onPressIn?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
1086
1084
|
onPressOut?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
@@ -1094,7 +1092,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
1094
1092
|
selectionColor?: import("react-native/types").ColorValue | undefined;
|
|
1095
1093
|
textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
|
|
1096
1094
|
autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
|
|
1097
|
-
autoComplete?: "
|
|
1095
|
+
autoComplete?: "off" | "name" | "email" | "url" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "username" | "username-new" | undefined;
|
|
1098
1096
|
autoCorrect?: boolean | undefined;
|
|
1099
1097
|
autoFocus?: boolean | undefined;
|
|
1100
1098
|
blurOnSubmit?: boolean | undefined;
|
|
@@ -1112,6 +1110,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
1112
1110
|
onEndEditing?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputEndEditingEventData>) => void) | undefined;
|
|
1113
1111
|
onSelectionChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputSelectionChangeEventData>) => void) | undefined;
|
|
1114
1112
|
onSubmitEditing?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputSubmitEditingEventData>) => void) | undefined;
|
|
1113
|
+
onScroll?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputScrollEventData>) => void) | undefined;
|
|
1115
1114
|
onKeyPress?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputKeyPressEventData>) => void) | undefined;
|
|
1116
1115
|
placeholder?: string | undefined;
|
|
1117
1116
|
readOnly?: boolean | undefined;
|
|
@@ -1120,6 +1119,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
1120
1119
|
secureTextEntry?: boolean | undefined;
|
|
1121
1120
|
selectTextOnFocus?: boolean | undefined;
|
|
1122
1121
|
inputAccessoryViewID?: string | undefined;
|
|
1122
|
+
disableKeyboardShortcuts?: boolean | undefined;
|
|
1123
1123
|
clearButtonMode?: "always" | "never" | "while-editing" | "unless-editing" | undefined;
|
|
1124
1124
|
clearTextOnFocus?: boolean | undefined;
|
|
1125
1125
|
dataDetectorTypes?: import("react-native/types").DataDetectorTypes | import("react-native/types").DataDetectorTypes[] | undefined;
|
|
@@ -1487,19 +1487,15 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
1487
1487
|
start: number;
|
|
1488
1488
|
end?: number | undefined;
|
|
1489
1489
|
} | undefined;
|
|
1490
|
-
children?: import("react").ReactNode;
|
|
1491
1490
|
style: false | "" | import("react-native/types").TextStyle | import("react-native/types").RegisteredStyle<import("react-native/types").TextStyle> | import("react-native/types").RecursiveArray<import("react-native/types").TextStyle | import("react-native/types").Falsy | import("react-native/types").RegisteredStyle<import("react-native/types").TextStyle>> | null;
|
|
1492
|
-
|
|
1493
|
-
removeClippedSubviews?: boolean | undefined;
|
|
1494
|
-
onLayout?: ((event: import("react-native/types").LayoutChangeEvent) => void) | undefined;
|
|
1495
|
-
onContentSizeChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
1496
|
-
onScroll?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputScrollEventData>) => void) | undefined;
|
|
1497
|
-
scrollEnabled?: boolean | undefined;
|
|
1491
|
+
children?: import("react").ReactNode;
|
|
1498
1492
|
hitSlop?: number | import("react-native/types").Insets | null | undefined;
|
|
1499
1493
|
id?: string | undefined;
|
|
1500
1494
|
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
1495
|
+
onLayout?: ((event: import("react-native/types").LayoutChangeEvent) => void) | undefined;
|
|
1496
|
+
removeClippedSubviews?: boolean | undefined;
|
|
1497
|
+
testID?: string | undefined;
|
|
1501
1498
|
nativeID?: string | undefined;
|
|
1502
|
-
experimental_layoutConformance?: "strict" | "classic" | undefined;
|
|
1503
1499
|
collapsable?: boolean | undefined;
|
|
1504
1500
|
collapsableChildren?: boolean | undefined;
|
|
1505
1501
|
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
@@ -1579,6 +1575,8 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
1579
1575
|
accessibilityLanguage?: string | undefined;
|
|
1580
1576
|
accessibilityShowsLargeContentViewer?: boolean | undefined;
|
|
1581
1577
|
accessibilityLargeContentTitle?: string | undefined;
|
|
1578
|
+
scrollEnabled?: boolean | undefined;
|
|
1579
|
+
onContentSizeChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
1582
1580
|
onPress?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
1583
1581
|
onPressIn?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
1584
1582
|
onPressOut?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").NativeTouchEvent>) => void) | undefined;
|
|
@@ -1592,7 +1590,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
1592
1590
|
selectionColor?: import("react-native/types").ColorValue | undefined;
|
|
1593
1591
|
textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
|
|
1594
1592
|
autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
|
|
1595
|
-
autoComplete?: "
|
|
1593
|
+
autoComplete?: "off" | "name" | "email" | "url" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "username" | "username-new" | undefined;
|
|
1596
1594
|
autoCorrect?: boolean | undefined;
|
|
1597
1595
|
autoFocus?: boolean | undefined;
|
|
1598
1596
|
blurOnSubmit?: boolean | undefined;
|
|
@@ -1610,6 +1608,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
1610
1608
|
onEndEditing?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputEndEditingEventData>) => void) | undefined;
|
|
1611
1609
|
onSelectionChange?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputSelectionChangeEventData>) => void) | undefined;
|
|
1612
1610
|
onSubmitEditing?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputSubmitEditingEventData>) => void) | undefined;
|
|
1611
|
+
onScroll?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputScrollEventData>) => void) | undefined;
|
|
1613
1612
|
onKeyPress?: ((e: import("react-native/types").NativeSyntheticEvent<import("react-native/types").TextInputKeyPressEventData>) => void) | undefined;
|
|
1614
1613
|
placeholder?: string | undefined;
|
|
1615
1614
|
readOnly?: boolean | undefined;
|
|
@@ -1618,6 +1617,7 @@ export default function usePreset({ preset, ...props }: InternalTextFieldProps):
|
|
|
1618
1617
|
secureTextEntry?: boolean | undefined;
|
|
1619
1618
|
selectTextOnFocus?: boolean | undefined;
|
|
1620
1619
|
inputAccessoryViewID?: string | undefined;
|
|
1620
|
+
disableKeyboardShortcuts?: boolean | undefined;
|
|
1621
1621
|
clearButtonMode?: "always" | "never" | "while-editing" | "unless-editing" | undefined;
|
|
1622
1622
|
clearTextOnFocus?: boolean | undefined;
|
|
1623
1623
|
dataDetectorTypes?: import("react-native/types").DataDetectorTypes | import("react-native/types").DataDetectorTypes[] | undefined;
|
|
@@ -21,7 +21,7 @@ const Timeline = props => {
|
|
|
21
21
|
const [anchorMeasurements, setAnchorMeasurements] = useState();
|
|
22
22
|
const [contentContainerMeasurements, setContentContainerMeasurements] = useState();
|
|
23
23
|
const [pointMeasurements, setPointMeasurements] = useState();
|
|
24
|
-
const contentContainerRef = useRef();
|
|
24
|
+
const contentContainerRef = useRef(undefined);
|
|
25
25
|
const onMeasure = (x, y, width, height) => {
|
|
26
26
|
setAnchorMeasurements({
|
|
27
27
|
x,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import {AccessibilityInfo, findNodeHandle, StyleSheet, Animated, Easing, ActivityIndicator} from 'react-native';
|
|
5
4
|
import {PureBaseComponent} from '../../commons';
|
|
@@ -21,74 +20,6 @@ const COLOR = Colors.white;
|
|
|
21
20
|
export default class Toast extends PureBaseComponent {
|
|
22
21
|
static displayName = 'Toast';
|
|
23
22
|
|
|
24
|
-
static propTypes = {
|
|
25
|
-
/**
|
|
26
|
-
* Whether to show or hide the toast
|
|
27
|
-
*/
|
|
28
|
-
visible: PropTypes.bool,
|
|
29
|
-
/**
|
|
30
|
-
* The position of the toast. 'top' or 'bottom'.
|
|
31
|
-
*/
|
|
32
|
-
position: PropTypes.oneOf(['top', 'bottom']),
|
|
33
|
-
/**
|
|
34
|
-
* custom zIndex for toast
|
|
35
|
-
*/
|
|
36
|
-
zIndex: PropTypes.number,
|
|
37
|
-
/**
|
|
38
|
-
* The background color of the toast
|
|
39
|
-
*/
|
|
40
|
-
backgroundColor: PropTypes.string,
|
|
41
|
-
/**
|
|
42
|
-
* the toast content color (message, actions labels)
|
|
43
|
-
*/
|
|
44
|
-
color: PropTypes.string,
|
|
45
|
-
/**
|
|
46
|
-
* the toast message
|
|
47
|
-
*/
|
|
48
|
-
message: PropTypes.string,
|
|
49
|
-
/**
|
|
50
|
-
* should message be centered in the toast
|
|
51
|
-
*/
|
|
52
|
-
centerMessage: PropTypes.bool,
|
|
53
|
-
/**
|
|
54
|
-
* a left icon
|
|
55
|
-
*/
|
|
56
|
-
icon: PropTypes.oneOfType([PropTypes.object, PropTypes.number]),
|
|
57
|
-
/**
|
|
58
|
-
* a single action for the user
|
|
59
|
-
*/
|
|
60
|
-
action: PropTypes.shape(Button.propTypes),
|
|
61
|
-
/**
|
|
62
|
-
* should show a loader (showDismiss must be false)
|
|
63
|
-
*/
|
|
64
|
-
showLoader: PropTypes.bool,
|
|
65
|
-
/**
|
|
66
|
-
* callback for dismiss action
|
|
67
|
-
*/
|
|
68
|
-
onDismiss: PropTypes.func,
|
|
69
|
-
/**
|
|
70
|
-
* number of milliseconds to automatically invoke the onDismiss callback
|
|
71
|
-
*/
|
|
72
|
-
autoDismiss: PropTypes.number,
|
|
73
|
-
/**
|
|
74
|
-
* show dismiss action (right 'X' button)
|
|
75
|
-
*/
|
|
76
|
-
showDismiss: PropTypes.bool,
|
|
77
|
-
/**
|
|
78
|
-
* callback for end of component animation
|
|
79
|
-
*/
|
|
80
|
-
onAnimationEnd: PropTypes.func,
|
|
81
|
-
/**
|
|
82
|
-
* render a custom view that will appear permanently above or below a Toast,
|
|
83
|
-
* depends on the Toast's position, and animate with it when the Toast is made visible or dismissed
|
|
84
|
-
*/
|
|
85
|
-
renderAttachment: PropTypes.elementType,
|
|
86
|
-
/**
|
|
87
|
-
* render a custom loader component instead of the default when passing showLoader
|
|
88
|
-
*/
|
|
89
|
-
customLoader: PropTypes.func
|
|
90
|
-
};
|
|
91
|
-
|
|
92
23
|
static defaultProps = {
|
|
93
24
|
position: 'top',
|
|
94
25
|
zIndex: 100
|
|
@@ -24,7 +24,7 @@ declare class Wizard extends Component<WizardProps, State> {
|
|
|
24
24
|
componentWillUnmount(): void;
|
|
25
25
|
onOrientationChange: () => void;
|
|
26
26
|
getMaxWidth(): number;
|
|
27
|
-
renderChildren(): React.DetailedReactHTMLElement<
|
|
27
|
+
renderChildren(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>[] | null | undefined;
|
|
28
28
|
render(): React.JSX.Element;
|
|
29
29
|
}
|
|
30
30
|
declare const _default: React.ForwardRefExoticComponent<WizardProps & React.RefAttributes<any>> & typeof Wizard;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
const useCombinedRefs = (...refs) => {
|
|
3
|
-
const targetRef = React.useRef();
|
|
3
|
+
const targetRef = React.useRef(undefined);
|
|
4
4
|
React.useEffect(() => {
|
|
5
5
|
refs.forEach(ref => {
|
|
6
6
|
if (!ref) {
|
|
@@ -9,7 +9,6 @@ const useCombinedRefs = (...refs) => {
|
|
|
9
9
|
if (typeof ref === 'function') {
|
|
10
10
|
ref(targetRef.current);
|
|
11
11
|
} else {
|
|
12
|
-
// @ts-expect-error
|
|
13
12
|
ref.current = targetRef.current;
|
|
14
13
|
}
|
|
15
14
|
});
|
|
@@ -4,7 +4,7 @@ import { useCallback, useRef } from 'react';
|
|
|
4
4
|
* This hook is used to debounce a function call
|
|
5
5
|
*/
|
|
6
6
|
function useDebounce(func, timeout = 300) {
|
|
7
|
-
const handler = useRef();
|
|
7
|
+
const handler = useRef(undefined);
|
|
8
8
|
const debouncedFunction = useCallback(args => {
|
|
9
9
|
if (handler.current) {
|
|
10
10
|
clearTimeout(handler.current);
|
|
@@ -20,8 +20,8 @@ export default function useHiddenLocation() {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
const [hiddenLocation, setHiddenLocation] = useState(getHiddenLocation({}));
|
|
23
|
-
const ref = useRef();
|
|
24
|
-
const layoutData = useRef();
|
|
23
|
+
const ref = useRef(undefined);
|
|
24
|
+
const layoutData = useRef(undefined);
|
|
25
25
|
const wasMeasured = useRef(wasMeasuredDefaultValue);
|
|
26
26
|
const measure = useCallback(() => {
|
|
27
27
|
if (ref.current && layoutData.current && layoutData.current.width > 0 && layoutData.current.height > 0) {
|
|
@@ -16,8 +16,8 @@ export default function useHiddenLocation() {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
const [hiddenLocation, setHiddenLocation] = useState(getHiddenLocation({}));
|
|
19
|
-
const ref = useRef();
|
|
20
|
-
const layoutData = useRef();
|
|
19
|
+
const ref = useRef(undefined);
|
|
20
|
+
const layoutData = useRef(undefined);
|
|
21
21
|
const wasMeasured = useRef(wasMeasuredDefaultValue);
|
|
22
22
|
const measure = useCallback(() => {
|
|
23
23
|
if (ref.current) {
|
|
@@ -9,7 +9,7 @@ interface Measurements {
|
|
|
9
9
|
pageY: number;
|
|
10
10
|
}
|
|
11
11
|
declare const _default: () => {
|
|
12
|
-
ref: import("react").
|
|
12
|
+
ref: import("react").RefObject<RNView | undefined>;
|
|
13
13
|
measurements: Measurements | undefined;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react';
|
|
2
2
|
export default () => {
|
|
3
|
-
const ref = useRef();
|
|
3
|
+
const ref = useRef(undefined);
|
|
4
4
|
const [measurements, setMeasurements] = useState();
|
|
5
5
|
const onMeasure = (x, y, width, height, pageX, pageY) => {
|
|
6
6
|
setMeasurements({
|
|
@@ -5,7 +5,7 @@ export type ScrollToProps<T extends ScrollToSupportedViews> = {
|
|
|
5
5
|
/**
|
|
6
6
|
* A reference to the ScrollView (or FlatList) which the items are in
|
|
7
7
|
*/
|
|
8
|
-
scrollViewRef?: RefObject<T>;
|
|
8
|
+
scrollViewRef?: RefObject<T | null>;
|
|
9
9
|
/**
|
|
10
10
|
* Is the scroll view horizontal (default is true)
|
|
11
11
|
*/
|
|
@@ -15,7 +15,7 @@ export type ScrollToResultProps<T extends ScrollToSupportedViews> = {
|
|
|
15
15
|
/**
|
|
16
16
|
* A reference to the ScrollView (or FlatList) which the items are in (from the props or a created one)
|
|
17
17
|
*/
|
|
18
|
-
scrollViewRef: RefObject<T>;
|
|
18
|
+
scrollViewRef: RefObject<T | null>;
|
|
19
19
|
/**
|
|
20
20
|
* scrollTo callback.
|
|
21
21
|
* offset - the x or y to scroll to.
|
|
@@ -42,7 +42,7 @@ function Calendar(props) {
|
|
|
42
42
|
}
|
|
43
43
|
return -1;
|
|
44
44
|
}, [monthItems]);
|
|
45
|
-
const flashListRef = useRef();
|
|
45
|
+
const flashListRef = useRef(undefined);
|
|
46
46
|
const current = useSharedValue(new Date(initialDate).setHours(0, 0, 0, 0));
|
|
47
47
|
const initialMonthIndex = useRef(getItemIndex(current.value));
|
|
48
48
|
const lastUpdateSource = useSharedValue(UpdateSource.INIT);
|
|
@@ -111,8 +111,8 @@ export interface CalendarProps {
|
|
|
111
111
|
showExtraDays?: boolean;
|
|
112
112
|
}
|
|
113
113
|
export interface AgendaProps {
|
|
114
|
-
renderEvent?: (event: Event) => React.ReactElement | null;
|
|
115
|
-
renderHeader?: (header: DateSectionHeader) => React.ReactElement | null;
|
|
114
|
+
renderEvent?: (event: Event) => React.ReactElement<any> | null;
|
|
115
|
+
renderHeader?: (header: DateSectionHeader) => React.ReactElement<any> | null;
|
|
116
116
|
showLoader?: boolean;
|
|
117
117
|
onEndReached?: (date: number) => void;
|
|
118
118
|
}
|
|
@@ -14,7 +14,7 @@ export type ExpandableOverlayProps = TouchableOpacityProps & PropsWithChildren<{
|
|
|
14
14
|
/**
|
|
15
15
|
* The content to render inside the expandable modal/dialog
|
|
16
16
|
*/
|
|
17
|
-
expandableContent?: React.ReactElement
|
|
17
|
+
expandableContent?: React.ReactElement<any>;
|
|
18
18
|
/**
|
|
19
19
|
* Whether to use a dialog as expandable container (by default the container will be a full screen modal)
|
|
20
20
|
*/
|
|
@@ -38,7 +38,7 @@ export type ExpandableOverlayProps = TouchableOpacityProps & PropsWithChildren<{
|
|
|
38
38
|
/**
|
|
39
39
|
* A custom overlay to render instead of Modal or Dialog components
|
|
40
40
|
*/
|
|
41
|
-
renderCustomOverlay?: (props: RenderCustomOverlayProps) => React.ReactElement | undefined | null;
|
|
41
|
+
renderCustomOverlay?: (props: RenderCustomOverlayProps) => React.ReactElement<any> | undefined | null;
|
|
42
42
|
/**
|
|
43
43
|
* Disabled opening expandable overlay
|
|
44
44
|
*/
|
package/src/incubator/index.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export { default as Slider, SliderRef, SliderProps } from './slider';
|
|
|
7
7
|
export { default as ChipsInput, ChipsInputProps, ChipsInputChangeReason, ChipsInputChipProps } from '../components/chipsInput';
|
|
8
8
|
export { default as WheelPicker, WheelPickerProps, WheelPickerItemProps, WheelPickerAlign, WheelPickerItemValue } from '../components/WheelPicker';
|
|
9
9
|
export { default as Gradient, GradientProps } from './gradient';
|
|
10
|
+
export { default as Marquee, MarqueeDirections, MarqueeProps } from './marquee';
|
package/src/incubator/index.js
CHANGED
|
@@ -8,4 +8,5 @@ export { default as Slider, SliderRef, SliderProps } from "./slider";
|
|
|
8
8
|
// TODO: delete exports after fully removing from private
|
|
9
9
|
export { default as ChipsInput, ChipsInputProps, ChipsInputChangeReason, ChipsInputChipProps } from "../components/chipsInput";
|
|
10
10
|
export { default as WheelPicker, WheelPickerProps, WheelPickerItemProps, WheelPickerAlign, WheelPickerItemValue } from "../components/WheelPicker";
|
|
11
|
-
export { default as Gradient, GradientProps } from "./gradient";
|
|
11
|
+
export { default as Gradient, GradientProps } from "./gradient";
|
|
12
|
+
export { default as Marquee, MarqueeDirections, MarqueeProps } from "./marquee";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
import { useSharedValue, useAnimatedStyle, withTiming, withRepeat, Easing } from 'react-native-reanimated';
|
|
4
|
-
import View from "
|
|
5
|
-
import Text from "
|
|
4
|
+
import View from "../../components/view";
|
|
5
|
+
import Text from "../../components/text";
|
|
6
6
|
import { MarqueeDirections, MarqueeProps } from "./types";
|
|
7
7
|
const DEFAULT_DURATION = 3000;
|
|
8
8
|
const DEFAULT_DURATION_PER_WORD = 250;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "Marquee",
|
|
3
3
|
"category": "media",
|
|
4
4
|
"description": "Marquee component for sliding text",
|
|
5
|
-
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/
|
|
5
|
+
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/incubatorScreens/IncubatorMarqueeScreen.tsx",
|
|
6
6
|
"props": [
|
|
7
7
|
{"name": "label", "type": "string", "description": "Marquee label"},
|
|
8
8
|
{"name": "labelStyle", "type": "TextProps['style']", "description": "Marquee label style"},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import { TextProps } from '
|
|
3
|
-
import { ViewProps } from '
|
|
2
|
+
import { TextProps } from '../../components/text';
|
|
3
|
+
import { ViewProps } from '../../components/view';
|
|
4
4
|
export declare enum MarqueeDirections {
|
|
5
5
|
RIGHT = "RIGHT",
|
|
6
6
|
LEFT = "LEFT",
|
|
@@ -40,7 +40,7 @@ const Thumb = props => {
|
|
|
40
40
|
height: THUMB_SIZE
|
|
41
41
|
});
|
|
42
42
|
const lastOffset = useSharedValue(0);
|
|
43
|
-
const gesture = Gesture.Pan().onBegin(() => {
|
|
43
|
+
const gesture = Gesture.Pan().hitSlop(hitSlop).onBegin(() => {
|
|
44
44
|
onSeekStart?.();
|
|
45
45
|
isPressed.value = true;
|
|
46
46
|
lastOffset.value = offset.value;
|
|
@@ -6,7 +6,7 @@ export interface Props extends ViewProps {
|
|
|
6
6
|
maximumTrackTintColor?: string;
|
|
7
7
|
minimumTrackTintColor?: string;
|
|
8
8
|
trackStyle?: StyleProp<ViewStyle>;
|
|
9
|
-
renderTrack?: () => ReactElement | ReactElement[];
|
|
9
|
+
renderTrack?: () => ReactElement<any> | ReactElement<any>[];
|
|
10
10
|
onPress?: ((event: GestureResponderEvent) => void) | undefined;
|
|
11
11
|
}
|
|
12
12
|
declare const Track: (props: Props) => React.JSX.Element;
|
|
@@ -62,7 +62,7 @@ export interface SliderProps extends AccessibilityProps {
|
|
|
62
62
|
/**
|
|
63
63
|
* Custom render instead of rendering the track
|
|
64
64
|
*/
|
|
65
|
-
renderTrack?: () => ReactElement | ReactElement[];
|
|
65
|
+
renderTrack?: () => ReactElement<any> | ReactElement<any>[];
|
|
66
66
|
/**
|
|
67
67
|
* The thumb style
|
|
68
68
|
*/
|
|
@@ -43,7 +43,7 @@ const Toast = props => {
|
|
|
43
43
|
testID
|
|
44
44
|
} = props;
|
|
45
45
|
const directions = useRef([props.position === 'bottom' ? PanView.directions.DOWN : PanView.directions.UP, PanView.directions.LEFT, PanView.directions.RIGHT]);
|
|
46
|
-
const viewRef = useRef();
|
|
46
|
+
const viewRef = useRef(undefined);
|
|
47
47
|
const [toastHeight, setToastHeight] = useState();
|
|
48
48
|
const {
|
|
49
49
|
clearTimer,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
1
|
+
import { ReactElement, ReactNode, type JSX } from 'react';
|
|
2
2
|
import { ImageSourcePropType, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
3
|
import { ButtonProps } from '../../components/button';
|
|
4
4
|
import { TextProps } from '../../components/text';
|
|
@@ -52,7 +52,7 @@ export interface ToastProps {
|
|
|
52
52
|
/**
|
|
53
53
|
* should show a loader
|
|
54
54
|
*/
|
|
55
|
-
loaderElement?: ReactElement
|
|
55
|
+
loaderElement?: ReactElement<any>;
|
|
56
56
|
/**
|
|
57
57
|
* callback for dismiss action
|
|
58
58
|
*/
|