react-native-ui-lib 7.46.2 → 7.46.3-snapshot.7341
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/babel.config.js +12 -0
- package/index.js +1 -0
- package/lib/android/build.gradle +5 -5
- package/lib/android/src/main/java/com/wix/reactnativeuilib/UiLibPackageList.java +0 -2
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.java +31 -23
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.java +1 -1
- package/lib/components/{HighlighterOverlayView.d.ts → HighlighterOverlayView/index.d.ts} +1 -1
- package/lib/components/HighlighterOverlayView/index.js +49 -0
- package/lib/components/{HighlighterOverlayView.web.d.ts → HighlighterOverlayView/index.web.d.ts} +1 -1
- package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/CustomKeyboardView.android.d.ts +5 -2
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.android.js +51 -0
- package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/CustomKeyboardView.ios.d.ts +1 -1
- package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/CustomKeyboardView.ios.js +3 -3
- package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView/CustomKeyboardView}/CustomKeyboardViewBase.d.ts +3 -0
- package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView/CustomKeyboardView}/CustomKeyboardViewBase.js +1 -1
- package/lib/components/Keyboard/{KeyboardInput/utils → KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager}/__tests__/EventEmitterManager.spec.js +1 -1
- package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView/KeyboardRegistry}/__tests__/KeyboardRegistry.spec.js +1 -1
- package/lib/components/Keyboard/{KeyboardInput/KeyboardRegistry.d.ts → KeyboardAccessoryView/KeyboardRegistry/index.d.ts} +1 -1
- package/lib/components/Keyboard/{KeyboardInput/KeyboardRegistry.js → KeyboardAccessoryView/KeyboardRegistry/index.js} +1 -1
- package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView/KeyboardRegistry}/keyboardRegistry.api.json +9 -9
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.d.ts +26 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.js +91 -0
- package/lib/components/Keyboard/{KeyboardInput/KeyboardAccessoryView.d.ts → KeyboardAccessoryView/index.d.ts} +11 -1
- package/lib/components/Keyboard/{KeyboardInput/KeyboardAccessoryView.js → KeyboardAccessoryView/index.js} +31 -5
- package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/keyboardAccessoryView.api.json +5 -5
- package/lib/components/Keyboard/{KeyboardTracking/KeyboardAwareInsetsView.d.ts → KeyboardAwareInsetsView/index.d.ts} +1 -1
- package/lib/components/Keyboard/{KeyboardTracking/KeyboardAwareInsetsView.js → KeyboardAwareInsetsView/index.js} +1 -1
- package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/KeyboardTrackingView.ios.d.ts +1 -4
- package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/KeyboardTrackingView.ios.js +5 -8
- package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/index.d.ts +2 -2
- package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/keyboardTrackingView.api.json +11 -20
- package/lib/components/Keyboard/index.d.ts +6 -6
- package/lib/components/Keyboard/index.js +6 -6
- package/lib/components/SafeArea/SafeAreaInsetsManager.d.ts +21 -7
- package/lib/components/SafeArea/SafeAreaInsetsManager.js +95 -31
- package/lib/components/SafeArea/SafeAreaSpacerView.d.ts +2 -2
- package/lib/components/SafeArea/SafeAreaSpacerView.js +63 -9
- package/lib/components/SafeArea/__tests__/SafeAreaInsetsManager.spec.js +274 -0
- package/lib/components/SafeArea/index.d.ts +10 -0
- package/lib/components/SafeArea/index.js +11 -0
- package/lib/components/index.d.ts +1 -1
- package/lib/components/index.js +1 -1
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m +52 -8
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.h +1 -7
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.m +1 -1
- package/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.m +109 -41
- package/lib/package.json +1 -1
- package/lib/react-native.config.js +1 -3
- package/metro.config.js +2 -2
- package/package.json +25 -25
- package/panView.d.ts +2 -0
- package/panView.js +1 -0
- package/react-native.config.js +1 -3
- package/src/commons/Constants.js +2 -5
- package/src/commons/modifiers.d.ts +1 -0
- package/src/commons/modifiers.js +5 -2
- package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +5 -1
- package/src/components/actionSheet/index.d.ts +2 -12
- package/src/components/actionSheet/index.js +3 -42
- package/src/components/badge/index.d.ts +107 -47
- package/src/components/button/button.api.json +6 -1
- package/src/components/button/index.d.ts +61 -23
- package/src/components/button/index.js +18 -1
- package/src/components/button/types.d.ts +4 -1
- package/src/components/colorPicker/ColorPickerDialog.d.ts +1 -1
- package/src/components/colorPicker/ColorPickerDialog.js +1 -1
- package/src/components/dateTimePicker/index.d.ts +186 -5
- package/src/components/dateTimePicker/index.js +3 -4
- package/src/components/dialog/dialog.api.json +31 -37
- package/src/{incubator → components}/dialog/dialogHeader.api.json +2 -2
- package/src/components/dialog/index.d.ts +13 -105
- package/src/components/dialog/index.js +204 -212
- package/src/{incubator → components}/dialog/types.d.ts +0 -19
- package/src/{incubator → components}/dialog/types.js +1 -3
- package/src/{incubator → components}/dialog/useDialogContent.d.ts +1 -1
- package/src/components/drawer/Swipeable.js +1 -2
- package/src/components/drawer/index.js +31 -25
- package/src/components/fadedScrollView/index.js +7 -2
- package/src/components/featureHighlight/index.d.ts +1 -1
- package/src/components/index.js +0 -19
- package/src/components/marquee/types.js +4 -1
- package/src/components/modal/index.d.ts +5 -0
- package/src/components/modal/index.js +14 -10
- package/src/components/modal/modal.api.json +5 -0
- package/src/{incubator → components}/panView/index.d.ts +3 -3
- package/src/{incubator → components}/panView/index.js +4 -4
- package/src/{incubator → components}/panView/usePanGesture.d.ts +1 -1
- package/src/components/picker/Picker.driver.new.d.ts +2 -2
- package/src/components/picker/Picker.driver.new.js +3 -3
- package/src/components/picker/PickerItem.js +6 -20
- package/src/components/picker/PickerPresenter.d.ts +0 -1
- package/src/components/picker/PickerPresenter.js +1 -23
- package/src/components/picker/api/picker.api.json +0 -1
- package/src/components/picker/api/pickerItem.api.json +0 -5
- package/src/components/picker/helpers/useFieldType.d.ts +53 -23
- package/src/components/picker/helpers/usePickerLabel.d.ts +1 -1
- package/src/components/picker/helpers/usePickerLabel.js +2 -3
- package/src/components/picker/helpers/usePickerMigrationWarnings.d.ts +1 -1
- package/src/components/picker/helpers/usePickerMigrationWarnings.js +0 -12
- package/src/components/picker/helpers/usePickerSearch.d.ts +1 -1
- package/src/components/picker/helpers/usePickerSearch.js +4 -8
- package/src/components/picker/helpers/usePickerSelection.d.ts +1 -1
- package/src/components/picker/helpers/usePickerSelection.js +2 -10
- package/src/components/picker/index.js +4 -22
- package/src/components/picker/types.d.ts +1 -24
- package/src/components/segmentedControl/index.js +3 -3
- package/src/components/slider/GradientSlider.d.ts +1 -1
- package/src/components/sortableGridList/SortableItem.js +13 -4
- package/src/components/sortableList/SortableListItem.js +13 -4
- package/src/components/stackAggregator/index.js +16 -11
- package/src/components/text/Text.driver.new.d.ts +2 -2
- package/src/components/text/Text.driver.new.js +2 -2
- package/src/components/textField/Input.js +0 -1
- package/src/components/textField/TextField.driver.new.d.ts +2 -2
- package/src/components/textField/TextField.driver.new.js +2 -2
- package/src/components/textField/presets/outline.d.ts +106 -46
- package/src/components/textField/presets/underline.d.ts +106 -46
- package/src/components/textField/types.js +1 -0
- package/src/components/textField/usePreset.d.ts +72 -44
- package/src/components/timeline/types.js +3 -0
- package/src/{incubator/hooks/useHiddenLocation.web.d.ts → hooks/useHiddenLocation/index.d.ts} +1 -1
- package/src/{incubator/hooks/useHiddenLocation.d.ts → hooks/useHiddenLocation/index.web.d.ts} +1 -1
- package/src/incubator/expandableOverlay/ExpandableOverlay.driver.js +1 -1
- package/src/incubator/expandableOverlay/index.d.ts +42 -3
- package/src/incubator/expandableOverlay/index.js +1 -4
- package/src/incubator/gradient/BorderGradient.d.ts +4 -0
- package/src/incubator/gradient/BorderGradient.js +45 -0
- package/src/incubator/gradient/CircleGradient.d.ts +4 -0
- package/src/incubator/gradient/CircleGradient.js +35 -0
- package/src/incubator/gradient/RectangleGradient.d.ts +4 -0
- package/src/incubator/gradient/RectangleGradient.js +32 -0
- package/src/incubator/gradient/index.d.ts +5 -0
- package/src/incubator/gradient/index.js +31 -0
- package/src/incubator/gradient/types.d.ts +26 -0
- package/src/incubator/gradient/types.js +1 -0
- package/src/incubator/gradient/useAngleTransform.d.ts +27 -0
- package/src/incubator/gradient/useAngleTransform.js +72 -0
- package/src/incubator/index.d.ts +1 -2
- package/src/incubator/index.js +2 -3
- package/src/incubator/toast/index.js +1 -1
- package/src/index.d.ts +3 -10
- package/src/index.js +42 -162
- package/src/optionalDependencies/LinearGradientPackage.d.ts +1 -1
- package/src/testkit/index.d.ts +1 -1
- package/src/testkit/index.js +1 -1
- package/src/testkit/new/Component.driver.d.ts +4 -1
- package/src/testkit/new/Component.driver.js +3 -3
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReactHacks.java +0 -30
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReflectionUtils.java +0 -34
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/DefaultKeyListener.java +0 -33
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/KeyListenerProxy.java +0 -53
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule.java +0 -54
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerPackage.java +0 -28
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/ViewUtils.java +0 -36
- package/lib/components/HighlighterOverlayView.js +0 -40
- package/lib/components/Keyboard/KeyboardInput/CustomKeyboardView/CustomKeyboardView.android.js +0 -28
- package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.d.ts +0 -11
- package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.js +0 -17
- package/panningViews.d.ts +0 -2
- package/panningViews.js +0 -1
- package/sharedTransition.d.ts +0 -2
- package/sharedTransition.js +0 -1
- package/src/components/dialog/DialogDismissibleView.d.ts +0 -34
- package/src/components/dialog/DialogDismissibleView.js +0 -184
- package/src/components/dialog/OverlayFadingBackground.d.ts +0 -14
- package/src/components/dialog/OverlayFadingBackground.js +0 -45
- package/src/components/panningViews/asPanViewConsumer.d.ts +0 -3
- package/src/components/panningViews/asPanViewConsumer.js +0 -16
- package/src/components/panningViews/panDismissibleView.d.ts +0 -51
- package/src/components/panningViews/panDismissibleView.js +0 -350
- package/src/components/panningViews/panGestureView.d.ts +0 -23
- package/src/components/panningViews/panGestureView.js +0 -156
- package/src/components/panningViews/panListenerView.d.ts +0 -66
- package/src/components/panningViews/panListenerView.js +0 -155
- package/src/components/panningViews/panResponderView.d.ts +0 -19
- package/src/components/panningViews/panResponderView.js +0 -79
- package/src/components/panningViews/panningContext.d.ts +0 -3
- package/src/components/panningViews/panningContext.js +0 -4
- package/src/components/panningViews/panningProvider.d.ts +0 -73
- package/src/components/panningViews/panningProvider.js +0 -101
- package/src/components/sharedTransition/ShareTransitionContext.js +0 -3
- package/src/components/sharedTransition/SharedArea.js +0 -153
- package/src/components/sharedTransition/SourceElement.js +0 -44
- package/src/components/sharedTransition/TargetElement.js +0 -38
- package/src/components/sharedTransition/index.js +0 -9
- package/src/incubator/dialog/dialog.api.json +0 -54
- package/src/incubator/dialog/index.d.ts +0 -15
- package/src/incubator/dialog/index.js +0 -218
- /package/lib/components/{HighlighterOverlayView.web.js → HighlighterOverlayView/index.web.js} +0 -0
- /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/index.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/index.js +0 -0
- /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/index.web.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/CustomKeyboardView/index.web.js +0 -0
- /package/lib/components/Keyboard/{KeyboardInput/utils/EventEmitterManager.d.ts → KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.d.ts} +0 -0
- /package/lib/components/Keyboard/{KeyboardInput/utils/EventEmitterManager.js → KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.js} +0 -0
- /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/TextInputKeyboardManager.android.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/TextInputKeyboardManager.android.js +0 -0
- /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/TextInputKeyboardManager.ios.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/TextInputKeyboardManager.ios.js +0 -0
- /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/index.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardInput → KeyboardAccessoryView}/TextInputKeyboardManager/index.js +0 -0
- /package/lib/components/Keyboard/{KeyboardTracking → KeyboardAwareInsetsView}/keyboardAwareInsetsView.api.json +0 -0
- /package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/KeyboardTrackingView.android.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/KeyboardTrackingView.android.js +0 -0
- /package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/index.js +0 -0
- /package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/index.web.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardTracking/KeyboardTrackingView → KeyboardTrackingView}/index.web.js +0 -0
- /package/src/{incubator → components}/dialog/Dialog.driver.new.d.ts +0 -0
- /package/src/{incubator → components}/dialog/Dialog.driver.new.js +0 -0
- /package/src/{incubator → components}/dialog/DialogHeader.d.ts +0 -0
- /package/src/{incubator → components}/dialog/DialogHeader.js +0 -0
- /package/src/{incubator → components}/dialog/useDialogContent.js +0 -0
- /package/src/{incubator → components}/panView/panningUtil.d.ts +0 -0
- /package/src/{incubator → components}/panView/panningUtil.js +0 -0
- /package/src/{incubator → components}/panView/usePanGesture.js +0 -0
- /package/src/{incubator/hooks/useHiddenLocation.js → hooks/useHiddenLocation/index.js} +0 -0
- /package/src/{incubator/hooks/useHiddenLocation.web.js → hooks/useHiddenLocation/index.web.js} +0 -0
|
@@ -109,7 +109,7 @@ declare function createStyles(props: BadgeProps): {
|
|
|
109
109
|
fontFamily?: string | undefined;
|
|
110
110
|
fontSize?: number | undefined;
|
|
111
111
|
fontStyle?: "normal" | "italic" | undefined;
|
|
112
|
-
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
112
|
+
fontWeight?: "black" | 900 | 600 | "light" | 100 | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 200 | 300 | 400 | 500 | 700 | 800 | "ultralight" | "thin" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | undefined;
|
|
113
113
|
letterSpacing?: number | undefined;
|
|
114
114
|
lineHeight?: number | undefined;
|
|
115
115
|
textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
|
|
@@ -131,31 +131,41 @@ declare function createStyles(props: BadgeProps): {
|
|
|
131
131
|
borderBlockEndColor?: import("react-native").ColorValue | undefined;
|
|
132
132
|
borderBlockStartColor?: import("react-native").ColorValue | undefined;
|
|
133
133
|
borderBottomColor?: import("react-native").ColorValue | undefined;
|
|
134
|
-
borderBottomEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
135
|
-
borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
136
|
-
borderBottomRightRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
137
|
-
borderBottomStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
134
|
+
borderBottomEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
135
|
+
borderBottomLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
136
|
+
borderBottomRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
137
|
+
borderBottomStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
138
138
|
borderColor?: import("react-native").ColorValue | undefined;
|
|
139
139
|
borderCurve?: "circular" | "continuous" | undefined;
|
|
140
140
|
borderEndColor?: import("react-native").ColorValue | undefined;
|
|
141
|
-
borderEndEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
142
|
-
borderEndStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
141
|
+
borderEndEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
142
|
+
borderEndStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
143
143
|
borderLeftColor?: import("react-native").ColorValue | undefined;
|
|
144
|
-
borderRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
144
|
+
borderRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
145
145
|
borderRightColor?: import("react-native").ColorValue | undefined;
|
|
146
146
|
borderStartColor?: import("react-native").ColorValue | undefined;
|
|
147
|
-
borderStartEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
148
|
-
borderStartStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
147
|
+
borderStartEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
148
|
+
borderStartStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
149
149
|
borderStyle?: "solid" | "dotted" | "dashed" | undefined;
|
|
150
150
|
borderTopColor?: import("react-native").ColorValue | undefined;
|
|
151
|
-
borderTopEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
152
|
-
borderTopLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
153
|
-
borderTopRightRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
154
|
-
borderTopStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
151
|
+
borderTopEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
152
|
+
borderTopLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
153
|
+
borderTopRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
154
|
+
borderTopStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
155
|
+
outlineColor?: import("react-native").ColorValue | undefined;
|
|
156
|
+
outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
|
|
157
|
+
outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
|
|
158
|
+
outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
|
|
155
159
|
opacity?: import("react-native").AnimatableNumericValue | undefined;
|
|
156
160
|
elevation?: number | undefined;
|
|
157
161
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
|
|
158
|
-
|
|
162
|
+
isolation?: "auto" | "isolate" | undefined;
|
|
163
|
+
cursor?: import("react-native").CursorValue | undefined;
|
|
164
|
+
boxShadow?: string | readonly import("react-native").BoxShadowValue[] | undefined;
|
|
165
|
+
filter?: string | readonly import("react-native").FilterFunction[] | undefined;
|
|
166
|
+
mixBlendMode?: import("react-native").BlendMode | undefined;
|
|
167
|
+
experimental_backgroundImage?: string | readonly import("react-native").GradientValue[] | undefined;
|
|
168
|
+
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
159
169
|
alignItems?: import("react-native").FlexAlignType | undefined;
|
|
160
170
|
alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
|
|
161
171
|
aspectRatio?: string | number | undefined;
|
|
@@ -167,14 +177,15 @@ declare function createStyles(props: BadgeProps): {
|
|
|
167
177
|
borderTopWidth?: number | undefined;
|
|
168
178
|
borderWidth?: number | undefined;
|
|
169
179
|
bottom?: import("react-native").DimensionValue | undefined;
|
|
170
|
-
|
|
180
|
+
boxSizing?: "border-box" | "content-box" | undefined;
|
|
181
|
+
display?: "none" | "flex" | "contents" | undefined;
|
|
171
182
|
end?: import("react-native").DimensionValue | undefined;
|
|
172
183
|
flex?: number | undefined;
|
|
173
184
|
flexBasis?: import("react-native").DimensionValue | undefined;
|
|
174
185
|
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
175
|
-
rowGap?: number | undefined;
|
|
176
|
-
gap?: number | undefined;
|
|
177
|
-
columnGap?: number | undefined;
|
|
186
|
+
rowGap?: string | number | undefined;
|
|
187
|
+
gap?: string | number | undefined;
|
|
188
|
+
columnGap?: string | number | undefined;
|
|
178
189
|
flexGrow?: number | undefined;
|
|
179
190
|
flexShrink?: number | undefined;
|
|
180
191
|
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
@@ -204,13 +215,32 @@ declare function createStyles(props: BadgeProps): {
|
|
|
204
215
|
paddingStart?: import("react-native").DimensionValue | undefined;
|
|
205
216
|
paddingTop?: import("react-native").DimensionValue | undefined;
|
|
206
217
|
paddingVertical?: import("react-native").DimensionValue | undefined;
|
|
207
|
-
position?: "absolute" | "relative" | undefined;
|
|
218
|
+
position?: "absolute" | "relative" | "static" | undefined;
|
|
208
219
|
right?: import("react-native").DimensionValue | undefined;
|
|
209
220
|
start?: import("react-native").DimensionValue | undefined;
|
|
210
221
|
top?: import("react-native").DimensionValue | undefined;
|
|
211
222
|
width?: import("react-native").DimensionValue | undefined;
|
|
212
223
|
zIndex?: number | undefined;
|
|
213
224
|
direction?: "ltr" | "rtl" | "inherit" | undefined;
|
|
225
|
+
inset?: import("react-native").DimensionValue | undefined;
|
|
226
|
+
insetBlock?: import("react-native").DimensionValue | undefined;
|
|
227
|
+
insetBlockEnd?: import("react-native").DimensionValue | undefined;
|
|
228
|
+
insetBlockStart?: import("react-native").DimensionValue | undefined;
|
|
229
|
+
insetInline?: import("react-native").DimensionValue | undefined;
|
|
230
|
+
insetInlineEnd?: import("react-native").DimensionValue | undefined;
|
|
231
|
+
insetInlineStart?: import("react-native").DimensionValue | undefined;
|
|
232
|
+
marginBlock?: import("react-native").DimensionValue | undefined;
|
|
233
|
+
marginBlockEnd?: import("react-native").DimensionValue | undefined;
|
|
234
|
+
marginBlockStart?: import("react-native").DimensionValue | undefined;
|
|
235
|
+
marginInline?: import("react-native").DimensionValue | undefined;
|
|
236
|
+
marginInlineEnd?: import("react-native").DimensionValue | undefined;
|
|
237
|
+
marginInlineStart?: import("react-native").DimensionValue | undefined;
|
|
238
|
+
paddingBlock?: import("react-native").DimensionValue | undefined;
|
|
239
|
+
paddingBlockEnd?: import("react-native").DimensionValue | undefined;
|
|
240
|
+
paddingBlockStart?: import("react-native").DimensionValue | undefined;
|
|
241
|
+
paddingInline?: import("react-native").DimensionValue | undefined;
|
|
242
|
+
paddingInlineEnd?: import("react-native").DimensionValue | undefined;
|
|
243
|
+
paddingInlineStart?: import("react-native").DimensionValue | undefined;
|
|
214
244
|
shadowColor?: import("react-native").ColorValue | undefined;
|
|
215
245
|
shadowOffset?: Readonly<{
|
|
216
246
|
width: number;
|
|
@@ -218,7 +248,7 @@ declare function createStyles(props: BadgeProps): {
|
|
|
218
248
|
}> | undefined;
|
|
219
249
|
shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
|
|
220
250
|
shadowRadius?: number | undefined;
|
|
221
|
-
transform?: string | (({
|
|
251
|
+
transform?: string | readonly (({
|
|
222
252
|
perspective: import("react-native").AnimatableNumericValue;
|
|
223
253
|
} & {
|
|
224
254
|
rotate?: undefined;
|
|
@@ -339,7 +369,7 @@ declare function createStyles(props: BadgeProps): {
|
|
|
339
369
|
skewY?: undefined;
|
|
340
370
|
matrix?: undefined;
|
|
341
371
|
}) | ({
|
|
342
|
-
translateX: import("react-native").AnimatableNumericValue
|
|
372
|
+
translateX: import("react-native").AnimatableNumericValue | `${number}%`;
|
|
343
373
|
} & {
|
|
344
374
|
perspective?: undefined;
|
|
345
375
|
rotate?: undefined;
|
|
@@ -354,7 +384,7 @@ declare function createStyles(props: BadgeProps): {
|
|
|
354
384
|
skewY?: undefined;
|
|
355
385
|
matrix?: undefined;
|
|
356
386
|
}) | ({
|
|
357
|
-
translateY: import("react-native").AnimatableNumericValue
|
|
387
|
+
translateY: import("react-native").AnimatableNumericValue | `${number}%`;
|
|
358
388
|
} & {
|
|
359
389
|
perspective?: undefined;
|
|
360
390
|
rotate?: undefined;
|
|
@@ -431,7 +461,7 @@ declare function createStyles(props: BadgeProps): {
|
|
|
431
461
|
fontFamily?: string | undefined;
|
|
432
462
|
fontSize?: number | undefined;
|
|
433
463
|
fontStyle?: "normal" | "italic" | undefined;
|
|
434
|
-
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
464
|
+
fontWeight?: "black" | 900 | 600 | "light" | 100 | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 200 | 300 | 400 | 500 | 700 | 800 | "ultralight" | "thin" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | undefined;
|
|
435
465
|
letterSpacing?: number | undefined;
|
|
436
466
|
textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
|
|
437
467
|
textDecorationLine?: "none" | "underline" | "line-through" | "underline line-through" | undefined;
|
|
@@ -453,31 +483,41 @@ declare function createStyles(props: BadgeProps): {
|
|
|
453
483
|
borderBlockEndColor?: import("react-native").ColorValue | undefined;
|
|
454
484
|
borderBlockStartColor?: import("react-native").ColorValue | undefined;
|
|
455
485
|
borderBottomColor?: import("react-native").ColorValue | undefined;
|
|
456
|
-
borderBottomEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
457
|
-
borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
458
|
-
borderBottomRightRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
459
|
-
borderBottomStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
486
|
+
borderBottomEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
487
|
+
borderBottomLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
488
|
+
borderBottomRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
489
|
+
borderBottomStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
460
490
|
borderColor?: import("react-native").ColorValue | undefined;
|
|
461
491
|
borderCurve?: "circular" | "continuous" | undefined;
|
|
462
492
|
borderEndColor?: import("react-native").ColorValue | undefined;
|
|
463
|
-
borderEndEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
464
|
-
borderEndStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
493
|
+
borderEndEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
494
|
+
borderEndStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
465
495
|
borderLeftColor?: import("react-native").ColorValue | undefined;
|
|
466
|
-
borderRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
496
|
+
borderRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
467
497
|
borderRightColor?: import("react-native").ColorValue | undefined;
|
|
468
498
|
borderStartColor?: import("react-native").ColorValue | undefined;
|
|
469
|
-
borderStartEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
470
|
-
borderStartStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
499
|
+
borderStartEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
500
|
+
borderStartStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
471
501
|
borderStyle?: "solid" | "dotted" | "dashed" | undefined;
|
|
472
502
|
borderTopColor?: import("react-native").ColorValue | undefined;
|
|
473
|
-
borderTopEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
474
|
-
borderTopLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
475
|
-
borderTopRightRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
476
|
-
borderTopStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
503
|
+
borderTopEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
504
|
+
borderTopLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
505
|
+
borderTopRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
506
|
+
borderTopStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
507
|
+
outlineColor?: import("react-native").ColorValue | undefined;
|
|
508
|
+
outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
|
|
509
|
+
outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
|
|
510
|
+
outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
|
|
477
511
|
opacity?: import("react-native").AnimatableNumericValue | undefined;
|
|
478
512
|
elevation?: number | undefined;
|
|
479
513
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
|
|
480
|
-
|
|
514
|
+
isolation?: "auto" | "isolate" | undefined;
|
|
515
|
+
cursor?: import("react-native").CursorValue | undefined;
|
|
516
|
+
boxShadow?: string | readonly import("react-native").BoxShadowValue[] | undefined;
|
|
517
|
+
filter?: string | readonly import("react-native").FilterFunction[] | undefined;
|
|
518
|
+
mixBlendMode?: import("react-native").BlendMode | undefined;
|
|
519
|
+
experimental_backgroundImage?: string | readonly import("react-native").GradientValue[] | undefined;
|
|
520
|
+
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
481
521
|
alignItems?: import("react-native").FlexAlignType | undefined;
|
|
482
522
|
alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
|
|
483
523
|
aspectRatio?: string | number | undefined;
|
|
@@ -489,14 +529,15 @@ declare function createStyles(props: BadgeProps): {
|
|
|
489
529
|
borderTopWidth?: number | undefined;
|
|
490
530
|
borderWidth?: number | undefined;
|
|
491
531
|
bottom?: import("react-native").DimensionValue | undefined;
|
|
492
|
-
|
|
532
|
+
boxSizing?: "border-box" | "content-box" | undefined;
|
|
533
|
+
display?: "none" | "flex" | "contents" | undefined;
|
|
493
534
|
end?: import("react-native").DimensionValue | undefined;
|
|
494
535
|
flex?: number | undefined;
|
|
495
536
|
flexBasis?: import("react-native").DimensionValue | undefined;
|
|
496
537
|
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
497
|
-
rowGap?: number | undefined;
|
|
498
|
-
gap?: number | undefined;
|
|
499
|
-
columnGap?: number | undefined;
|
|
538
|
+
rowGap?: string | number | undefined;
|
|
539
|
+
gap?: string | number | undefined;
|
|
540
|
+
columnGap?: string | number | undefined;
|
|
500
541
|
flexGrow?: number | undefined;
|
|
501
542
|
flexShrink?: number | undefined;
|
|
502
543
|
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
@@ -526,13 +567,32 @@ declare function createStyles(props: BadgeProps): {
|
|
|
526
567
|
paddingStart?: import("react-native").DimensionValue | undefined;
|
|
527
568
|
paddingTop?: import("react-native").DimensionValue | undefined;
|
|
528
569
|
paddingVertical?: import("react-native").DimensionValue | undefined;
|
|
529
|
-
position?: "absolute" | "relative" | undefined;
|
|
570
|
+
position?: "absolute" | "relative" | "static" | undefined;
|
|
530
571
|
right?: import("react-native").DimensionValue | undefined;
|
|
531
572
|
start?: import("react-native").DimensionValue | undefined;
|
|
532
573
|
top?: import("react-native").DimensionValue | undefined;
|
|
533
574
|
width?: import("react-native").DimensionValue | undefined;
|
|
534
575
|
zIndex?: number | undefined;
|
|
535
576
|
direction?: "ltr" | "rtl" | "inherit" | undefined;
|
|
577
|
+
inset?: import("react-native").DimensionValue | undefined;
|
|
578
|
+
insetBlock?: import("react-native").DimensionValue | undefined;
|
|
579
|
+
insetBlockEnd?: import("react-native").DimensionValue | undefined;
|
|
580
|
+
insetBlockStart?: import("react-native").DimensionValue | undefined;
|
|
581
|
+
insetInline?: import("react-native").DimensionValue | undefined;
|
|
582
|
+
insetInlineEnd?: import("react-native").DimensionValue | undefined;
|
|
583
|
+
insetInlineStart?: import("react-native").DimensionValue | undefined;
|
|
584
|
+
marginBlock?: import("react-native").DimensionValue | undefined;
|
|
585
|
+
marginBlockEnd?: import("react-native").DimensionValue | undefined;
|
|
586
|
+
marginBlockStart?: import("react-native").DimensionValue | undefined;
|
|
587
|
+
marginInline?: import("react-native").DimensionValue | undefined;
|
|
588
|
+
marginInlineEnd?: import("react-native").DimensionValue | undefined;
|
|
589
|
+
marginInlineStart?: import("react-native").DimensionValue | undefined;
|
|
590
|
+
paddingBlock?: import("react-native").DimensionValue | undefined;
|
|
591
|
+
paddingBlockEnd?: import("react-native").DimensionValue | undefined;
|
|
592
|
+
paddingBlockStart?: import("react-native").DimensionValue | undefined;
|
|
593
|
+
paddingInline?: import("react-native").DimensionValue | undefined;
|
|
594
|
+
paddingInlineEnd?: import("react-native").DimensionValue | undefined;
|
|
595
|
+
paddingInlineStart?: import("react-native").DimensionValue | undefined;
|
|
536
596
|
shadowColor?: import("react-native").ColorValue | undefined;
|
|
537
597
|
shadowOffset?: Readonly<{
|
|
538
598
|
width: number;
|
|
@@ -540,7 +600,7 @@ declare function createStyles(props: BadgeProps): {
|
|
|
540
600
|
}> | undefined;
|
|
541
601
|
shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
|
|
542
602
|
shadowRadius?: number | undefined;
|
|
543
|
-
transform?: string | (({
|
|
603
|
+
transform?: string | readonly (({
|
|
544
604
|
perspective: import("react-native").AnimatableNumericValue;
|
|
545
605
|
} & {
|
|
546
606
|
rotate?: undefined;
|
|
@@ -661,7 +721,7 @@ declare function createStyles(props: BadgeProps): {
|
|
|
661
721
|
skewY?: undefined;
|
|
662
722
|
matrix?: undefined;
|
|
663
723
|
}) | ({
|
|
664
|
-
translateX: import("react-native").AnimatableNumericValue
|
|
724
|
+
translateX: import("react-native").AnimatableNumericValue | `${number}%`;
|
|
665
725
|
} & {
|
|
666
726
|
perspective?: undefined;
|
|
667
727
|
rotate?: undefined;
|
|
@@ -676,7 +736,7 @@ declare function createStyles(props: BadgeProps): {
|
|
|
676
736
|
skewY?: undefined;
|
|
677
737
|
matrix?: undefined;
|
|
678
738
|
}) | ({
|
|
679
|
-
translateY: import("react-native").AnimatableNumericValue
|
|
739
|
+
translateY: import("react-native").AnimatableNumericValue | `${number}%`;
|
|
680
740
|
} & {
|
|
681
741
|
perspective?: undefined;
|
|
682
742
|
rotate?: undefined;
|
|
@@ -770,7 +830,7 @@ declare const _default: React.ForwardRefExoticComponent<ViewProps & TouchableOpa
|
|
|
770
830
|
/**
|
|
771
831
|
* Defines how far a touch event can start away from the badge.
|
|
772
832
|
*/
|
|
773
|
-
hitSlop?: import("react-native").Insets | undefined;
|
|
833
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
774
834
|
/**
|
|
775
835
|
* width of border around the badge
|
|
776
836
|
*/
|
|
@@ -155,12 +155,17 @@
|
|
|
155
155
|
{
|
|
156
156
|
"name": "animateLayout",
|
|
157
157
|
"type": "boolean",
|
|
158
|
-
"description": "should animate layout change
|
|
158
|
+
"description": "should animate layout change"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"name": "animateTo",
|
|
162
162
|
"type": "ButtonAnimationDirection",
|
|
163
163
|
"description": "the direction of the animation ('left' and 'right' will effect the button's own alignment)"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "customBackground",
|
|
167
|
+
"type": "React.ReactElement",
|
|
168
|
+
"description": "Custom element to render as button background (takes precedence over backgroundColor)"
|
|
164
169
|
}
|
|
165
170
|
],
|
|
166
171
|
"snippet": [
|
|
@@ -39,7 +39,7 @@ declare class Button extends PureComponent<Props, ButtonState> {
|
|
|
39
39
|
fontFamily?: string | undefined;
|
|
40
40
|
fontSize?: number | undefined;
|
|
41
41
|
fontStyle?: "normal" | "italic" | undefined;
|
|
42
|
-
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
42
|
+
fontWeight?: "black" | 900 | 600 | "light" | 100 | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 200 | 300 | 400 | 500 | 700 | 800 | "ultralight" | "thin" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | undefined;
|
|
43
43
|
letterSpacing?: number | undefined;
|
|
44
44
|
lineHeight?: number | undefined;
|
|
45
45
|
textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
|
|
@@ -62,31 +62,41 @@ declare class Button extends PureComponent<Props, ButtonState> {
|
|
|
62
62
|
borderBlockEndColor?: import("react-native").ColorValue | undefined;
|
|
63
63
|
borderBlockStartColor?: import("react-native").ColorValue | undefined;
|
|
64
64
|
borderBottomColor?: import("react-native").ColorValue | undefined;
|
|
65
|
-
borderBottomEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
66
|
-
borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
67
|
-
borderBottomRightRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
68
|
-
borderBottomStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
65
|
+
borderBottomEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
66
|
+
borderBottomLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
67
|
+
borderBottomRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
68
|
+
borderBottomStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
69
69
|
borderColor?: import("react-native").ColorValue | undefined;
|
|
70
70
|
borderCurve?: "circular" | "continuous" | undefined;
|
|
71
71
|
borderEndColor?: import("react-native").ColorValue | undefined;
|
|
72
|
-
borderEndEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
73
|
-
borderEndStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
72
|
+
borderEndEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
73
|
+
borderEndStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
74
74
|
borderLeftColor?: import("react-native").ColorValue | undefined;
|
|
75
|
-
borderRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
75
|
+
borderRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
76
76
|
borderRightColor?: import("react-native").ColorValue | undefined;
|
|
77
77
|
borderStartColor?: import("react-native").ColorValue | undefined;
|
|
78
|
-
borderStartEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
79
|
-
borderStartStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
78
|
+
borderStartEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
79
|
+
borderStartStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
80
80
|
borderStyle?: "solid" | "dotted" | "dashed" | undefined;
|
|
81
81
|
borderTopColor?: import("react-native").ColorValue | undefined;
|
|
82
|
-
borderTopEndRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
83
|
-
borderTopLeftRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
84
|
-
borderTopRightRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
85
|
-
borderTopStartRadius?: import("react-native").AnimatableNumericValue | undefined;
|
|
82
|
+
borderTopEndRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
83
|
+
borderTopLeftRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
84
|
+
borderTopRightRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
85
|
+
borderTopStartRadius?: string | import("react-native").AnimatableNumericValue | undefined;
|
|
86
|
+
outlineColor?: import("react-native").ColorValue | undefined;
|
|
87
|
+
outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
|
|
88
|
+
outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
|
|
89
|
+
outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
|
|
86
90
|
opacity?: import("react-native").AnimatableNumericValue | undefined;
|
|
87
91
|
elevation?: number | undefined;
|
|
88
92
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
|
|
89
|
-
|
|
93
|
+
isolation?: "auto" | "isolate" | undefined;
|
|
94
|
+
cursor?: import("react-native").CursorValue | undefined;
|
|
95
|
+
boxShadow?: string | readonly import("react-native").BoxShadowValue[] | undefined;
|
|
96
|
+
filter?: string | readonly import("react-native").FilterFunction[] | undefined;
|
|
97
|
+
mixBlendMode?: import("react-native").BlendMode | undefined;
|
|
98
|
+
experimental_backgroundImage?: string | readonly import("react-native").GradientValue[] | undefined;
|
|
99
|
+
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
90
100
|
alignItems?: import("react-native").FlexAlignType | undefined;
|
|
91
101
|
alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
|
|
92
102
|
aspectRatio?: string | number | undefined;
|
|
@@ -98,14 +108,15 @@ declare class Button extends PureComponent<Props, ButtonState> {
|
|
|
98
108
|
borderTopWidth?: number | undefined;
|
|
99
109
|
borderWidth?: number | undefined;
|
|
100
110
|
bottom?: import("react-native").DimensionValue | undefined;
|
|
101
|
-
|
|
111
|
+
boxSizing?: "border-box" | "content-box" | undefined;
|
|
112
|
+
display?: "none" | "flex" | "contents" | undefined;
|
|
102
113
|
end?: import("react-native").DimensionValue | undefined;
|
|
103
114
|
flex?: number | undefined;
|
|
104
115
|
flexBasis?: import("react-native").DimensionValue | undefined;
|
|
105
116
|
flexDirection: "row" | "column" | "row-reverse" | "column-reverse";
|
|
106
|
-
rowGap?: number | undefined;
|
|
107
|
-
gap?: number | undefined;
|
|
108
|
-
columnGap?: number | undefined;
|
|
117
|
+
rowGap?: string | number | undefined;
|
|
118
|
+
gap?: string | number | undefined;
|
|
119
|
+
columnGap?: string | number | undefined;
|
|
109
120
|
flexGrow?: number | undefined;
|
|
110
121
|
flexShrink?: number | undefined;
|
|
111
122
|
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
@@ -135,13 +146,32 @@ declare class Button extends PureComponent<Props, ButtonState> {
|
|
|
135
146
|
paddingStart?: import("react-native").DimensionValue | undefined;
|
|
136
147
|
paddingTop?: import("react-native").DimensionValue | undefined;
|
|
137
148
|
paddingVertical?: import("react-native").DimensionValue | undefined;
|
|
138
|
-
position?: "absolute" | "relative" | undefined;
|
|
149
|
+
position?: "absolute" | "relative" | "static" | undefined;
|
|
139
150
|
right?: import("react-native").DimensionValue | undefined;
|
|
140
151
|
start?: import("react-native").DimensionValue | undefined;
|
|
141
152
|
top?: import("react-native").DimensionValue | undefined;
|
|
142
153
|
width?: import("react-native").DimensionValue | undefined;
|
|
143
154
|
zIndex?: number | undefined;
|
|
144
155
|
direction?: "ltr" | "rtl" | "inherit" | undefined;
|
|
156
|
+
inset?: import("react-native").DimensionValue | undefined;
|
|
157
|
+
insetBlock?: import("react-native").DimensionValue | undefined;
|
|
158
|
+
insetBlockEnd?: import("react-native").DimensionValue | undefined;
|
|
159
|
+
insetBlockStart?: import("react-native").DimensionValue | undefined;
|
|
160
|
+
insetInline?: import("react-native").DimensionValue | undefined;
|
|
161
|
+
insetInlineEnd?: import("react-native").DimensionValue | undefined;
|
|
162
|
+
insetInlineStart?: import("react-native").DimensionValue | undefined;
|
|
163
|
+
marginBlock?: import("react-native").DimensionValue | undefined;
|
|
164
|
+
marginBlockEnd?: import("react-native").DimensionValue | undefined;
|
|
165
|
+
marginBlockStart?: import("react-native").DimensionValue | undefined;
|
|
166
|
+
marginInline?: import("react-native").DimensionValue | undefined;
|
|
167
|
+
marginInlineEnd?: import("react-native").DimensionValue | undefined;
|
|
168
|
+
marginInlineStart?: import("react-native").DimensionValue | undefined;
|
|
169
|
+
paddingBlock?: import("react-native").DimensionValue | undefined;
|
|
170
|
+
paddingBlockEnd?: import("react-native").DimensionValue | undefined;
|
|
171
|
+
paddingBlockStart?: import("react-native").DimensionValue | undefined;
|
|
172
|
+
paddingInline?: import("react-native").DimensionValue | undefined;
|
|
173
|
+
paddingInlineEnd?: import("react-native").DimensionValue | undefined;
|
|
174
|
+
paddingInlineStart?: import("react-native").DimensionValue | undefined;
|
|
145
175
|
shadowColor?: import("react-native").ColorValue | undefined;
|
|
146
176
|
shadowOffset?: Readonly<{
|
|
147
177
|
width: number;
|
|
@@ -149,7 +179,7 @@ declare class Button extends PureComponent<Props, ButtonState> {
|
|
|
149
179
|
}> | undefined;
|
|
150
180
|
shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
|
|
151
181
|
shadowRadius?: number | undefined;
|
|
152
|
-
transform?: string | (({
|
|
182
|
+
transform?: string | readonly (({
|
|
153
183
|
perspective: import("react-native").AnimatableNumericValue;
|
|
154
184
|
} & {
|
|
155
185
|
rotate?: undefined;
|
|
@@ -270,7 +300,7 @@ declare class Button extends PureComponent<Props, ButtonState> {
|
|
|
270
300
|
skewY?: undefined;
|
|
271
301
|
matrix?: undefined;
|
|
272
302
|
}) | ({
|
|
273
|
-
translateX: import("react-native").AnimatableNumericValue
|
|
303
|
+
translateX: import("react-native").AnimatableNumericValue | `${number}%`;
|
|
274
304
|
} & {
|
|
275
305
|
perspective?: undefined;
|
|
276
306
|
rotate?: undefined;
|
|
@@ -285,7 +315,7 @@ declare class Button extends PureComponent<Props, ButtonState> {
|
|
|
285
315
|
skewY?: undefined;
|
|
286
316
|
matrix?: undefined;
|
|
287
317
|
}) | ({
|
|
288
|
-
translateY: import("react-native").AnimatableNumericValue
|
|
318
|
+
translateY: import("react-native").AnimatableNumericValue | `${number}%`;
|
|
289
319
|
} & {
|
|
290
320
|
perspective?: undefined;
|
|
291
321
|
rotate?: undefined;
|
|
@@ -356,6 +386,9 @@ declare class Button extends PureComponent<Props, ButtonState> {
|
|
|
356
386
|
verticalAlign?: "auto" | "top" | "bottom" | "middle" | undefined;
|
|
357
387
|
includeFontPadding?: boolean | undefined;
|
|
358
388
|
};
|
|
389
|
+
backgroundElement: {
|
|
390
|
+
overflow: "hidden";
|
|
391
|
+
};
|
|
359
392
|
};
|
|
360
393
|
componentDidUpdate(prevProps: Props): void;
|
|
361
394
|
onLayout: (event: LayoutChangeEvent) => void;
|
|
@@ -407,6 +440,7 @@ declare class Button extends PureComponent<Props, ButtonState> {
|
|
|
407
440
|
left: number;
|
|
408
441
|
right: number;
|
|
409
442
|
};
|
|
443
|
+
renderCustomBackground(): React.JSX.Element | undefined;
|
|
410
444
|
render(): React.JSX.Element;
|
|
411
445
|
}
|
|
412
446
|
export { Button };
|
|
@@ -440,6 +474,7 @@ declare const _default: React.ForwardRefExoticComponent<((import("../touchableOp
|
|
|
440
474
|
getActiveBackgroundColor?: ((backgroundColor: string, props: any) => string) | undefined;
|
|
441
475
|
animateLayout?: boolean | undefined;
|
|
442
476
|
animateTo?: import("./types").ButtonAnimationDirectionProp | undefined;
|
|
477
|
+
customBackground?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
443
478
|
}) | Omit<import("../touchableOpacity").TouchableOpacityProps & import("../../commons/modifiers").CustomModifier & Partial<Record<"bg-transparent" | "bg-black" | "bg-white" | "bg-dark" | "bg-$backgroundDefault" | "bg-$backgroundElevated" | "bg-$backgroundElevatedLight" | "bg-$backgroundNeutralHeavy" | "bg-$backgroundNeutralIdle" | "bg-$backgroundNeutralMedium" | "bg-$backgroundNeutral" | "bg-$backgroundNeutralLight" | "bg-$backgroundPrimaryHeavy" | "bg-$backgroundPrimaryMedium" | "bg-$backgroundPrimaryLight" | "bg-$backgroundGeneralHeavy" | "bg-$backgroundGeneralMedium" | "bg-$backgroundGeneralLight" | "bg-$backgroundSuccessHeavy" | "bg-$backgroundSuccessLight" | "bg-$backgroundWarningHeavy" | "bg-$backgroundWarningLight" | "bg-$backgroundMajorLight" | "bg-$backgroundMajorHeavy" | "bg-$backgroundDangerHeavy" | "bg-$backgroundDangerLight" | "bg-$backgroundDisabled" | "bg-$backgroundDark" | "bg-$backgroundDarkElevated" | "bg-$backgroundDarkActive" | "bg-$backgroundInverted" | "bg-$textDisabled" | "bg-$textDefault" | "bg-$textNeutralHeavy" | "bg-$textNeutral" | "bg-$textNeutralLight" | "bg-$textDefaultLight" | "bg-$textPrimary" | "bg-$textGeneral" | "bg-$textSuccess" | "bg-$textSuccessLight" | "bg-$textMajor" | "bg-$textDanger" | "bg-$textDangerLight" | "bg-$iconDefault" | "bg-$iconNeutral" | "bg-$iconDefaultLight" | "bg-$iconPrimary" | "bg-$iconPrimaryLight" | "bg-$iconGeneral" | "bg-$iconGeneralLight" | "bg-$iconSuccess" | "bg-$iconSuccessLight" | "bg-$iconMajor" | "bg-$iconDanger" | "bg-$iconDangerLight" | "bg-$iconDisabled" | "bg-$outlineDefault" | "bg-$outlineDisabled" | "bg-$outlineDisabledHeavy" | "bg-$outlineNeutral" | "bg-$outlineNeutralHeavy" | "bg-$outlinePrimary" | "bg-$outlinePrimaryMedium" | "bg-$outlineGeneral" | "bg-$outlineWarning" | "bg-$outlineDanger" | "bg-$outlineInverted" | "bg-$black" | "bg-$white" | "bg-grey1" | "bg-grey5" | "bg-grey10" | "bg-grey20" | "bg-grey30" | "bg-grey40" | "bg-grey50" | "bg-grey60" | "bg-grey70" | "bg-grey80" | "bg-blue1" | "bg-blue5" | "bg-blue10" | "bg-blue20" | "bg-blue30" | "bg-blue40" | "bg-blue50" | "bg-blue60" | "bg-blue70" | "bg-blue80" | "bg-cyan10" | "bg-cyan20" | "bg-cyan30" | "bg-cyan40" | "bg-cyan50" | "bg-cyan60" | "bg-cyan70" | "bg-cyan80" | "bg-green1" | "bg-green5" | "bg-green10" | "bg-green20" | "bg-green30" | "bg-green40" | "bg-green50" | "bg-green60" | "bg-green70" | "bg-green80" | "bg-yellow1" | "bg-yellow5" | "bg-yellow10" | "bg-yellow20" | "bg-yellow30" | "bg-yellow40" | "bg-yellow50" | "bg-yellow60" | "bg-yellow70" | "bg-yellow80" | "bg-orange1" | "bg-orange5" | "bg-orange10" | "bg-orange20" | "bg-orange30" | "bg-orange40" | "bg-orange50" | "bg-orange60" | "bg-orange70" | "bg-orange80" | "bg-red1" | "bg-red5" | "bg-red10" | "bg-red20" | "bg-red30" | "bg-red40" | "bg-red50" | "bg-red60" | "bg-red70" | "bg-red80" | "bg-purple1" | "bg-purple5" | "bg-purple10" | "bg-purple20" | "bg-purple30" | "bg-purple40" | "bg-purple50" | "bg-purple60" | "bg-purple70" | "bg-purple80" | "bg-violet1" | "bg-violet5" | "bg-violet10" | "bg-violet20" | "bg-violet30" | "bg-violet40" | "bg-violet50" | "bg-violet60" | "bg-violet70" | "bg-violet80", boolean>> & Partial<Record<"margin" | "marginL" | "marginT" | "marginR" | "marginB" | "marginH" | "marginV", boolean>> & {
|
|
444
479
|
label?: string | undefined;
|
|
445
480
|
color?: string | undefined;
|
|
@@ -470,6 +505,7 @@ declare const _default: React.ForwardRefExoticComponent<((import("../touchableOp
|
|
|
470
505
|
getActiveBackgroundColor?: ((backgroundColor: string, props: any) => string) | undefined;
|
|
471
506
|
animateLayout?: boolean | undefined;
|
|
472
507
|
animateTo?: import("./types").ButtonAnimationDirectionProp | undefined;
|
|
508
|
+
customBackground?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
473
509
|
}, "ref"> | Omit<import("../touchableOpacity").TouchableOpacityProps & import("../../commons/modifiers").CustomModifier & Partial<Record<"transparent" | "black" | "white" | "dark" | "$backgroundDefault" | "$backgroundElevated" | "$backgroundElevatedLight" | "$backgroundNeutralHeavy" | "$backgroundNeutralIdle" | "$backgroundNeutralMedium" | "$backgroundNeutral" | "$backgroundNeutralLight" | "$backgroundPrimaryHeavy" | "$backgroundPrimaryMedium" | "$backgroundPrimaryLight" | "$backgroundGeneralHeavy" | "$backgroundGeneralMedium" | "$backgroundGeneralLight" | "$backgroundSuccessHeavy" | "$backgroundSuccessLight" | "$backgroundWarningHeavy" | "$backgroundWarningLight" | "$backgroundMajorLight" | "$backgroundMajorHeavy" | "$backgroundDangerHeavy" | "$backgroundDangerLight" | "$backgroundDisabled" | "$backgroundDark" | "$backgroundDarkElevated" | "$backgroundDarkActive" | "$backgroundInverted" | "$textDisabled" | "$textDefault" | "$textNeutralHeavy" | "$textNeutral" | "$textNeutralLight" | "$textDefaultLight" | "$textPrimary" | "$textGeneral" | "$textSuccess" | "$textSuccessLight" | "$textMajor" | "$textDanger" | "$textDangerLight" | "$iconDefault" | "$iconNeutral" | "$iconDefaultLight" | "$iconPrimary" | "$iconPrimaryLight" | "$iconGeneral" | "$iconGeneralLight" | "$iconSuccess" | "$iconSuccessLight" | "$iconMajor" | "$iconDanger" | "$iconDangerLight" | "$iconDisabled" | "$outlineDefault" | "$outlineDisabled" | "$outlineDisabledHeavy" | "$outlineNeutral" | "$outlineNeutralHeavy" | "$outlinePrimary" | "$outlinePrimaryMedium" | "$outlineGeneral" | "$outlineWarning" | "$outlineDanger" | "$outlineInverted" | "$black" | "$white" | "grey1" | "grey5" | "grey10" | "grey20" | "grey30" | "grey40" | "grey50" | "grey60" | "grey70" | "grey80" | "blue1" | "blue5" | "blue10" | "blue20" | "blue30" | "blue40" | "blue50" | "blue60" | "blue70" | "blue80" | "cyan10" | "cyan20" | "cyan30" | "cyan40" | "cyan50" | "cyan60" | "cyan70" | "cyan80" | "green1" | "green5" | "green10" | "green20" | "green30" | "green40" | "green50" | "green60" | "green70" | "green80" | "yellow1" | "yellow5" | "yellow10" | "yellow20" | "yellow30" | "yellow40" | "yellow50" | "yellow60" | "yellow70" | "yellow80" | "orange1" | "orange5" | "orange10" | "orange20" | "orange30" | "orange40" | "orange50" | "orange60" | "orange70" | "orange80" | "red1" | "red5" | "red10" | "red20" | "red30" | "red40" | "red50" | "red60" | "red70" | "red80" | "purple1" | "purple5" | "purple10" | "purple20" | "purple30" | "purple40" | "purple50" | "purple60" | "purple70" | "purple80" | "violet1" | "violet5" | "violet10" | "violet20" | "violet30" | "violet40" | "violet50" | "violet60" | "violet70" | "violet80", boolean>> & Partial<Record<"bg-transparent" | "bg-black" | "bg-white" | "bg-dark" | "bg-$backgroundDefault" | "bg-$backgroundElevated" | "bg-$backgroundElevatedLight" | "bg-$backgroundNeutralHeavy" | "bg-$backgroundNeutralIdle" | "bg-$backgroundNeutralMedium" | "bg-$backgroundNeutral" | "bg-$backgroundNeutralLight" | "bg-$backgroundPrimaryHeavy" | "bg-$backgroundPrimaryMedium" | "bg-$backgroundPrimaryLight" | "bg-$backgroundGeneralHeavy" | "bg-$backgroundGeneralMedium" | "bg-$backgroundGeneralLight" | "bg-$backgroundSuccessHeavy" | "bg-$backgroundSuccessLight" | "bg-$backgroundWarningHeavy" | "bg-$backgroundWarningLight" | "bg-$backgroundMajorLight" | "bg-$backgroundMajorHeavy" | "bg-$backgroundDangerHeavy" | "bg-$backgroundDangerLight" | "bg-$backgroundDisabled" | "bg-$backgroundDark" | "bg-$backgroundDarkElevated" | "bg-$backgroundDarkActive" | "bg-$backgroundInverted" | "bg-$textDisabled" | "bg-$textDefault" | "bg-$textNeutralHeavy" | "bg-$textNeutral" | "bg-$textNeutralLight" | "bg-$textDefaultLight" | "bg-$textPrimary" | "bg-$textGeneral" | "bg-$textSuccess" | "bg-$textSuccessLight" | "bg-$textMajor" | "bg-$textDanger" | "bg-$textDangerLight" | "bg-$iconDefault" | "bg-$iconNeutral" | "bg-$iconDefaultLight" | "bg-$iconPrimary" | "bg-$iconPrimaryLight" | "bg-$iconGeneral" | "bg-$iconGeneralLight" | "bg-$iconSuccess" | "bg-$iconSuccessLight" | "bg-$iconMajor" | "bg-$iconDanger" | "bg-$iconDangerLight" | "bg-$iconDisabled" | "bg-$outlineDefault" | "bg-$outlineDisabled" | "bg-$outlineDisabledHeavy" | "bg-$outlineNeutral" | "bg-$outlineNeutralHeavy" | "bg-$outlinePrimary" | "bg-$outlinePrimaryMedium" | "bg-$outlineGeneral" | "bg-$outlineWarning" | "bg-$outlineDanger" | "bg-$outlineInverted" | "bg-$black" | "bg-$white" | "bg-grey1" | "bg-grey5" | "bg-grey10" | "bg-grey20" | "bg-grey30" | "bg-grey40" | "bg-grey50" | "bg-grey60" | "bg-grey70" | "bg-grey80" | "bg-blue1" | "bg-blue5" | "bg-blue10" | "bg-blue20" | "bg-blue30" | "bg-blue40" | "bg-blue50" | "bg-blue60" | "bg-blue70" | "bg-blue80" | "bg-cyan10" | "bg-cyan20" | "bg-cyan30" | "bg-cyan40" | "bg-cyan50" | "bg-cyan60" | "bg-cyan70" | "bg-cyan80" | "bg-green1" | "bg-green5" | "bg-green10" | "bg-green20" | "bg-green30" | "bg-green40" | "bg-green50" | "bg-green60" | "bg-green70" | "bg-green80" | "bg-yellow1" | "bg-yellow5" | "bg-yellow10" | "bg-yellow20" | "bg-yellow30" | "bg-yellow40" | "bg-yellow50" | "bg-yellow60" | "bg-yellow70" | "bg-yellow80" | "bg-orange1" | "bg-orange5" | "bg-orange10" | "bg-orange20" | "bg-orange30" | "bg-orange40" | "bg-orange50" | "bg-orange60" | "bg-orange70" | "bg-orange80" | "bg-red1" | "bg-red5" | "bg-red10" | "bg-red20" | "bg-red30" | "bg-red40" | "bg-red50" | "bg-red60" | "bg-red70" | "bg-red80" | "bg-purple1" | "bg-purple5" | "bg-purple10" | "bg-purple20" | "bg-purple30" | "bg-purple40" | "bg-purple50" | "bg-purple60" | "bg-purple70" | "bg-purple80" | "bg-violet1" | "bg-violet5" | "bg-violet10" | "bg-violet20" | "bg-violet30" | "bg-violet40" | "bg-violet50" | "bg-violet60" | "bg-violet70" | "bg-violet80", boolean>> & Partial<Record<"margin" | "marginL" | "marginT" | "marginR" | "marginB" | "marginH" | "marginV", boolean>> & {
|
|
474
510
|
label?: string | undefined;
|
|
475
511
|
color?: string | undefined;
|
|
@@ -500,6 +536,7 @@ declare const _default: React.ForwardRefExoticComponent<((import("../touchableOp
|
|
|
500
536
|
getActiveBackgroundColor?: ((backgroundColor: string, props: any) => string) | undefined;
|
|
501
537
|
animateLayout?: boolean | undefined;
|
|
502
538
|
animateTo?: import("./types").ButtonAnimationDirectionProp | undefined;
|
|
539
|
+
customBackground?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
503
540
|
}, "ref"> | Omit<import("../touchableOpacity").TouchableOpacityProps & Partial<Record<"text10" | "text20" | "text30" | "text40" | "text50" | "text60" | "text65" | "text70" | "text80" | "text90" | "text100" | "text10T" | "text10L" | "text10R" | "text10M" | "text10BO" | "text10H" | "text10BL" | "text20T" | "text20L" | "text20R" | "text20M" | "text20BO" | "text20H" | "text20BL" | "text30T" | "text30L" | "text30R" | "text30M" | "text30BO" | "text30H" | "text30BL" | "text40T" | "text40L" | "text40R" | "text40M" | "text40BO" | "text40H" | "text40BL" | "text50T" | "text50L" | "text50R" | "text50M" | "text50BO" | "text50H" | "text50BL" | "text60T" | "text60L" | "text60R" | "text60M" | "text60BO" | "text60H" | "text60BL" | "text65T" | "text65L" | "text65R" | "text65M" | "text65BO" | "text65H" | "text65BL" | "text70T" | "text70L" | "text70R" | "text70M" | "text70BO" | "text70H" | "text70BL" | "text80T" | "text80L" | "text80R" | "text80M" | "text80BO" | "text80H" | "text80BL" | "text90T" | "text90L" | "text90R" | "text90M" | "text90BO" | "text90H" | "text90BL" | "text100T" | "text100L" | "text100R" | "text100M" | "text100BO" | "text100H" | "text100BL", boolean>> & import("../../commons/modifiers").CustomModifier & Partial<Record<"bg-transparent" | "bg-black" | "bg-white" | "bg-dark" | "bg-$backgroundDefault" | "bg-$backgroundElevated" | "bg-$backgroundElevatedLight" | "bg-$backgroundNeutralHeavy" | "bg-$backgroundNeutralIdle" | "bg-$backgroundNeutralMedium" | "bg-$backgroundNeutral" | "bg-$backgroundNeutralLight" | "bg-$backgroundPrimaryHeavy" | "bg-$backgroundPrimaryMedium" | "bg-$backgroundPrimaryLight" | "bg-$backgroundGeneralHeavy" | "bg-$backgroundGeneralMedium" | "bg-$backgroundGeneralLight" | "bg-$backgroundSuccessHeavy" | "bg-$backgroundSuccessLight" | "bg-$backgroundWarningHeavy" | "bg-$backgroundWarningLight" | "bg-$backgroundMajorLight" | "bg-$backgroundMajorHeavy" | "bg-$backgroundDangerHeavy" | "bg-$backgroundDangerLight" | "bg-$backgroundDisabled" | "bg-$backgroundDark" | "bg-$backgroundDarkElevated" | "bg-$backgroundDarkActive" | "bg-$backgroundInverted" | "bg-$textDisabled" | "bg-$textDefault" | "bg-$textNeutralHeavy" | "bg-$textNeutral" | "bg-$textNeutralLight" | "bg-$textDefaultLight" | "bg-$textPrimary" | "bg-$textGeneral" | "bg-$textSuccess" | "bg-$textSuccessLight" | "bg-$textMajor" | "bg-$textDanger" | "bg-$textDangerLight" | "bg-$iconDefault" | "bg-$iconNeutral" | "bg-$iconDefaultLight" | "bg-$iconPrimary" | "bg-$iconPrimaryLight" | "bg-$iconGeneral" | "bg-$iconGeneralLight" | "bg-$iconSuccess" | "bg-$iconSuccessLight" | "bg-$iconMajor" | "bg-$iconDanger" | "bg-$iconDangerLight" | "bg-$iconDisabled" | "bg-$outlineDefault" | "bg-$outlineDisabled" | "bg-$outlineDisabledHeavy" | "bg-$outlineNeutral" | "bg-$outlineNeutralHeavy" | "bg-$outlinePrimary" | "bg-$outlinePrimaryMedium" | "bg-$outlineGeneral" | "bg-$outlineWarning" | "bg-$outlineDanger" | "bg-$outlineInverted" | "bg-$black" | "bg-$white" | "bg-grey1" | "bg-grey5" | "bg-grey10" | "bg-grey20" | "bg-grey30" | "bg-grey40" | "bg-grey50" | "bg-grey60" | "bg-grey70" | "bg-grey80" | "bg-blue1" | "bg-blue5" | "bg-blue10" | "bg-blue20" | "bg-blue30" | "bg-blue40" | "bg-blue50" | "bg-blue60" | "bg-blue70" | "bg-blue80" | "bg-cyan10" | "bg-cyan20" | "bg-cyan30" | "bg-cyan40" | "bg-cyan50" | "bg-cyan60" | "bg-cyan70" | "bg-cyan80" | "bg-green1" | "bg-green5" | "bg-green10" | "bg-green20" | "bg-green30" | "bg-green40" | "bg-green50" | "bg-green60" | "bg-green70" | "bg-green80" | "bg-yellow1" | "bg-yellow5" | "bg-yellow10" | "bg-yellow20" | "bg-yellow30" | "bg-yellow40" | "bg-yellow50" | "bg-yellow60" | "bg-yellow70" | "bg-yellow80" | "bg-orange1" | "bg-orange5" | "bg-orange10" | "bg-orange20" | "bg-orange30" | "bg-orange40" | "bg-orange50" | "bg-orange60" | "bg-orange70" | "bg-orange80" | "bg-red1" | "bg-red5" | "bg-red10" | "bg-red20" | "bg-red30" | "bg-red40" | "bg-red50" | "bg-red60" | "bg-red70" | "bg-red80" | "bg-purple1" | "bg-purple5" | "bg-purple10" | "bg-purple20" | "bg-purple30" | "bg-purple40" | "bg-purple50" | "bg-purple60" | "bg-purple70" | "bg-purple80" | "bg-violet1" | "bg-violet5" | "bg-violet10" | "bg-violet20" | "bg-violet30" | "bg-violet40" | "bg-violet50" | "bg-violet60" | "bg-violet70" | "bg-violet80", boolean>> & Partial<Record<"margin" | "marginL" | "marginT" | "marginR" | "marginB" | "marginH" | "marginV", boolean>> & {
|
|
504
541
|
label?: string | undefined;
|
|
505
542
|
color?: string | undefined;
|
|
@@ -530,5 +567,6 @@ declare const _default: React.ForwardRefExoticComponent<((import("../touchableOp
|
|
|
530
567
|
getActiveBackgroundColor?: ((backgroundColor: string, props: any) => string) | undefined;
|
|
531
568
|
animateLayout?: boolean | undefined;
|
|
532
569
|
animateTo?: import("./types").ButtonAnimationDirectionProp | undefined;
|
|
570
|
+
customBackground?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
533
571
|
}, "ref">) & React.RefAttributes<{}>> & ComponentStatics<typeof Button>;
|
|
534
572
|
export default _default;
|
|
@@ -4,6 +4,7 @@ import { Platform, StyleSheet, LayoutAnimation } from 'react-native';
|
|
|
4
4
|
import { asBaseComponent, forwardRef, Constants } from "../../commons/new";
|
|
5
5
|
import { Colors, Typography, BorderRadiuses } from "../../style";
|
|
6
6
|
import TouchableOpacity from "../touchableOpacity";
|
|
7
|
+
import View from "../view";
|
|
7
8
|
import Text from "../text";
|
|
8
9
|
import Icon from "../icon";
|
|
9
10
|
import { ButtonSize, ButtonAnimationDirection, ButtonProps, DEFAULT_PROPS } from "./types";
|
|
@@ -358,6 +359,17 @@ class Button extends PureComponent {
|
|
|
358
359
|
right: horizontalHitslop
|
|
359
360
|
};
|
|
360
361
|
}
|
|
362
|
+
renderCustomBackground() {
|
|
363
|
+
const {
|
|
364
|
+
customBackground
|
|
365
|
+
} = this.props;
|
|
366
|
+
if (customBackground) {
|
|
367
|
+
const borderRadiusStyle = this.getBorderRadiusStyle();
|
|
368
|
+
return <View absF style={[this.styles.backgroundElement, borderRadiusStyle]}>
|
|
369
|
+
{customBackground}
|
|
370
|
+
</View>;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
361
373
|
render() {
|
|
362
374
|
const {
|
|
363
375
|
onPress,
|
|
@@ -368,6 +380,7 @@ class Button extends PureComponent {
|
|
|
368
380
|
modifiers,
|
|
369
381
|
forwardedRef,
|
|
370
382
|
hitSlop: hitSlopProp,
|
|
383
|
+
customBackground,
|
|
371
384
|
...others
|
|
372
385
|
} = this.props;
|
|
373
386
|
const shadowStyle = this.getShadowStyle();
|
|
@@ -375,13 +388,14 @@ class Button extends PureComponent {
|
|
|
375
388
|
margins,
|
|
376
389
|
paddings
|
|
377
390
|
} = modifiers;
|
|
378
|
-
const backgroundColor = this.getBackgroundColor();
|
|
391
|
+
const backgroundColor = customBackground ? undefined : this.getBackgroundColor();
|
|
379
392
|
const outlineStyle = this.getOutlineStyle();
|
|
380
393
|
const containerSizeStyle = this.getContainerSizeStyle();
|
|
381
394
|
const borderRadiusStyle = this.getBorderRadiusStyle();
|
|
382
395
|
return <TouchableOpacity row centerV style={[this.styles.container, animateLayout && this.getAnimationDirectionStyle(), containerSizeStyle, this.isLink && this.styles.innerContainerLink, shadowStyle, margins, paddings, {
|
|
383
396
|
backgroundColor
|
|
384
397
|
}, borderRadiusStyle, outlineStyle, style]} activeOpacity={0.6} activeBackgroundColor={this.getActiveBackgroundColor()} onLayout={this.onLayout} onPress={onPress} disabled={disabled} testID={testID} hitSlop={hitSlopProp ?? this.getAccessibleHitSlop()} {...others} ref={forwardedRef}>
|
|
398
|
+
{this.renderCustomBackground()}
|
|
385
399
|
{this.props.children}
|
|
386
400
|
{this.props.iconOnRight ? this.renderLabel() : this.renderIcon()}
|
|
387
401
|
{this.props.iconOnRight ? this.renderIcon() : this.renderLabel()}
|
|
@@ -415,6 +429,9 @@ function createStyles() {
|
|
|
415
429
|
backgroundColor: 'transparent',
|
|
416
430
|
flexDirection: 'row',
|
|
417
431
|
...Typography.text70
|
|
432
|
+
},
|
|
433
|
+
backgroundElement: {
|
|
434
|
+
overflow: 'hidden'
|
|
418
435
|
}
|
|
419
436
|
});
|
|
420
437
|
}
|