react-native-ui-lib 8.3.3 → 8.3.4-snapshot.7783
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/android/build.gradle +3 -3
- 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/screenFooter.d.ts +2 -0
- package/screenFooter.js +1 -0
- package/scripts/release/prReleaseNotesCommon.js +2 -1
- package/src/assets/internal/images/bottomGradient.png +0 -0
- package/src/assets/internal/images/bottomGradient@1.5x.png +0 -0
- package/src/assets/internal/images/bottomGradient@2x.png +0 -0
- package/src/assets/internal/images/bottomGradient@3x.png +0 -0
- package/src/assets/internal/images/bottomGradient@4x.png +0 -0
- package/src/assets/internal/images/index.js +3 -0
- 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/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/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.d.ts +8 -0
- package/src/components/screenFooter/index.js +211 -0
- package/src/components/screenFooter/screenFooter.api.json +262 -0
- package/src/components/screenFooter/types.d.ts +100 -0
- package/src/components/screenFooter/types.js +39 -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/view/index.js +9 -6
- 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/index.d.ts +1 -0
- package/src/hooks/index.js +1 -0
- 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/hooks/useScrollToHide/index.d.ts +24 -0
- package/src/hooks/useScrollToHide/index.js +48 -0
- 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/expandableOverlay/index.js +7 -3
- 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 +1 -0
- package/src/index.js +70 -0
- 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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
1
|
+
import { PropsWithChildren, ReactNode, type JSX } from 'react';
|
|
2
2
|
import { FlatListProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
3
|
import { ExpandableOverlayProps, ExpandableOverlayMethods } from '../../incubator/expandableOverlay';
|
|
4
4
|
import { ModalTopBarProps } from '../modal/TopBar';
|
|
@@ -19,7 +19,7 @@ export type PickerSingleValue = string | number;
|
|
|
19
19
|
export type PickerMultiValue = PickerSingleValue[];
|
|
20
20
|
export type PickerValue = PickerSingleValue | PickerMultiValue | undefined;
|
|
21
21
|
type PickerFilteredItems = ReactNode | Pick<PickerItemProps, 'label' | 'value' | 'disabled'>[] | undefined;
|
|
22
|
-
type RenderPickerOverloads<ValueType> = ValueType extends PickerValue ? (value?: ValueType, label?: string) => React.ReactElement : never;
|
|
22
|
+
type RenderPickerOverloads<ValueType> = ValueType extends PickerValue ? (value?: ValueType, label?: string) => React.ReactElement<any> : never;
|
|
23
23
|
type RenderPicker = RenderPickerOverloads<PickerValue>;
|
|
24
24
|
export type RenderCustomModalProps = {
|
|
25
25
|
visible: boolean;
|
|
@@ -55,7 +55,7 @@ type PickerPropsDeprecation = {
|
|
|
55
55
|
renderCustomDialogHeader?: (callbacks: {
|
|
56
56
|
onDone?: () => void;
|
|
57
57
|
onCancel?: () => void;
|
|
58
|
-
}) => React.ReactElement
|
|
58
|
+
}) => React.ReactElement<any>;
|
|
59
59
|
/**
|
|
60
60
|
* @deprecated
|
|
61
61
|
* Render custom picker input (the value will be passed)
|
|
@@ -69,7 +69,7 @@ type PickerPropsDeprecation = {
|
|
|
69
69
|
* Render custom picker overlay (e.g ({visible, children, toggleModal}) => {...})
|
|
70
70
|
* instead use renderOverlay
|
|
71
71
|
*/
|
|
72
|
-
renderCustomModal?: (modalProps: RenderCustomModalProps) => React.ReactElement
|
|
72
|
+
renderCustomModal?: (modalProps: RenderCustomModalProps) => React.ReactElement<any>;
|
|
73
73
|
/**
|
|
74
74
|
* @deprecated
|
|
75
75
|
* Pass props to the picker modal
|
|
@@ -97,7 +97,7 @@ type PickerSearchProps = {
|
|
|
97
97
|
/**
|
|
98
98
|
* Render custom search input (only when passing showSearch)
|
|
99
99
|
*/
|
|
100
|
-
renderCustomSearch?: (props: PickerItemsListProps) => React.ReactElement
|
|
100
|
+
renderCustomSearch?: (props: PickerItemsListProps) => React.ReactElement<any>;
|
|
101
101
|
};
|
|
102
102
|
type PickerListProps = PickerSearchProps & {
|
|
103
103
|
/**
|
|
@@ -106,7 +106,7 @@ type PickerListProps = PickerSearchProps & {
|
|
|
106
106
|
renderHeader?: (callbacks: {
|
|
107
107
|
onDone?: () => void;
|
|
108
108
|
onCancel?: () => void;
|
|
109
|
-
}) => React.ReactElement
|
|
109
|
+
}) => React.ReactElement<any>;
|
|
110
110
|
/**
|
|
111
111
|
* Pass props to the list component that wraps the picker items (allows to control FlatList behavior)
|
|
112
112
|
*/
|
|
@@ -128,7 +128,7 @@ type PickerExpandableOverlayProps = {
|
|
|
128
128
|
/**
|
|
129
129
|
* Render custom picker overlay (e.g ({visible, children, toggleModal}) => {...})
|
|
130
130
|
*/
|
|
131
|
-
renderOverlay?: (modalProps: RenderCustomModalProps) => React.ReactElement
|
|
131
|
+
renderOverlay?: (modalProps: RenderCustomModalProps) => React.ReactElement<any>;
|
|
132
132
|
/**
|
|
133
133
|
* Add blur effect to picker modal (iOS only)
|
|
134
134
|
*/
|
|
@@ -213,11 +213,11 @@ export type PickerBaseProps = Omit<TextFieldProps, 'value' | 'onChange'> & Picke
|
|
|
213
213
|
renderItem?: (value: PickerValue, itemProps: PickerItemProps & {
|
|
214
214
|
isSelected: boolean;
|
|
215
215
|
isItemDisabled: boolean;
|
|
216
|
-
}, label?: string) => React.ReactElement
|
|
216
|
+
}, label?: string) => React.ReactElement<any>;
|
|
217
217
|
/**
|
|
218
218
|
* Render custom top element
|
|
219
219
|
*/
|
|
220
|
-
renderCustomTopElement?: (value?: PickerValue) => React.ReactElement
|
|
220
|
+
renderCustomTopElement?: (value?: PickerValue) => React.ReactElement<any>;
|
|
221
221
|
/**
|
|
222
222
|
* Selection status bar props
|
|
223
223
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { PureComponent } from 'react';
|
|
1
|
+
import React, { PureComponent, type JSX } from 'react';
|
|
2
2
|
import { Animated, StyleProp, ViewStyle, LayoutChangeEvent } from 'react-native';
|
|
3
3
|
/**
|
|
4
4
|
* @description: Progress bar
|
|
@@ -67,7 +67,7 @@ declare class ProgressBar extends PureComponent<Props, State> {
|
|
|
67
67
|
borderTopRightRadius: number;
|
|
68
68
|
};
|
|
69
69
|
renderCustomElement(): React.FunctionComponentElement<any> | undefined;
|
|
70
|
-
render():
|
|
70
|
+
render(): JSX.Element;
|
|
71
71
|
}
|
|
72
72
|
export { ProgressBar };
|
|
73
73
|
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<any>> & typeof ProgressBar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ScreenFooterProps, ScreenFooterLayouts, ScreenFooterBackgrounds, FooterAlignment, HorizontalItemsDistribution, ItemsFit, KeyboardBehavior, ScreenFooterShadow } from './types';
|
|
3
|
+
export { ScreenFooterProps, ScreenFooterLayouts, ScreenFooterBackgrounds, FooterAlignment, HorizontalItemsDistribution, ItemsFit, KeyboardBehavior, ScreenFooterShadow };
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<ScreenFooterProps & React.RefAttributes<any>> & {
|
|
5
|
+
(props: ScreenFooterProps): React.JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
import { Image } from 'react-native-ui-lib';
|
|
4
|
+
import Animated, { useAnimatedKeyboard, useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
5
|
+
import { Keyboard } from 'uilib-native';
|
|
6
|
+
import { SafeAreaContextPackage } from "../../optionalDependencies";
|
|
7
|
+
import View from "../view";
|
|
8
|
+
import Assets from "../../assets";
|
|
9
|
+
import { Colors, Shadows, Spacings } from "../../style";
|
|
10
|
+
import { asBaseComponent, Constants } from "../../commons/new";
|
|
11
|
+
import { useKeyboardHeight } from "../../hooks";
|
|
12
|
+
import { ScreenFooterProps, ScreenFooterLayouts, ScreenFooterBackgrounds, FooterAlignment, HorizontalItemsDistribution, ItemsFit, KeyboardBehavior, ScreenFooterShadow } from "./types";
|
|
13
|
+
export { ScreenFooterProps, ScreenFooterLayouts, ScreenFooterBackgrounds, FooterAlignment, HorizontalItemsDistribution, ItemsFit, KeyboardBehavior, ScreenFooterShadow };
|
|
14
|
+
const ScreenFooter = props => {
|
|
15
|
+
const {
|
|
16
|
+
testID,
|
|
17
|
+
layout,
|
|
18
|
+
alignment,
|
|
19
|
+
horizontalAlignment,
|
|
20
|
+
backgroundType,
|
|
21
|
+
children,
|
|
22
|
+
keyboardBehavior = KeyboardBehavior.STICKY,
|
|
23
|
+
itemsFit,
|
|
24
|
+
itemWidth,
|
|
25
|
+
horizontalItemsDistribution: distribution,
|
|
26
|
+
visible = true,
|
|
27
|
+
animationDuration = 200,
|
|
28
|
+
shadow = ScreenFooterShadow.SH20,
|
|
29
|
+
hideDivider = false
|
|
30
|
+
} = props;
|
|
31
|
+
const keyboard = useAnimatedKeyboard();
|
|
32
|
+
const [height, setHeight] = useState(0);
|
|
33
|
+
const visibilityTranslateY = useSharedValue(0);
|
|
34
|
+
|
|
35
|
+
// Update visibility translation when visible or height changes
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
visibilityTranslateY.value = withTiming(visible ? 0 : height, {
|
|
38
|
+
duration: animationDuration
|
|
39
|
+
});
|
|
40
|
+
}, [visible, height, animationDuration, visibilityTranslateY]);
|
|
41
|
+
|
|
42
|
+
// Animated style for STICKY behavior (counters Android system offset + visibility)
|
|
43
|
+
const stickyAnimatedStyle = useAnimatedStyle(() => {
|
|
44
|
+
const counterSystemOffset = Constants.isAndroid ? keyboard.height.value : 0;
|
|
45
|
+
return {
|
|
46
|
+
transform: [{
|
|
47
|
+
translateY: counterSystemOffset + visibilityTranslateY.value
|
|
48
|
+
}]
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// Animated style for HOISTED behavior (visibility only, keyboard handled by KeyboardAccessoryView)
|
|
53
|
+
const hoistedAnimatedStyle = useAnimatedStyle(() => {
|
|
54
|
+
return {
|
|
55
|
+
transform: [{
|
|
56
|
+
translateY: visibilityTranslateY.value
|
|
57
|
+
}]
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
const onLayout = useCallback(event => {
|
|
61
|
+
setHeight(event.nativeEvent.layout.height);
|
|
62
|
+
}, []);
|
|
63
|
+
const isSolid = backgroundType === ScreenFooterBackgrounds.SOLID;
|
|
64
|
+
const isFading = backgroundType === ScreenFooterBackgrounds.FADING;
|
|
65
|
+
const isHorizontal = layout === ScreenFooterLayouts.HORIZONTAL;
|
|
66
|
+
const childrenCount = React.Children.count(children);
|
|
67
|
+
const justifyContent = useMemo(() => {
|
|
68
|
+
if (isHorizontal) {
|
|
69
|
+
if (distribution === HorizontalItemsDistribution.SPREAD) {
|
|
70
|
+
return childrenCount === 1 ? 'center' : 'space-between';
|
|
71
|
+
}
|
|
72
|
+
switch (horizontalAlignment) {
|
|
73
|
+
case FooterAlignment.START:
|
|
74
|
+
return 'flex-start';
|
|
75
|
+
case FooterAlignment.END:
|
|
76
|
+
return 'flex-end';
|
|
77
|
+
default:
|
|
78
|
+
return 'center';
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return 'flex-start';
|
|
82
|
+
}, [isHorizontal, distribution, horizontalAlignment, childrenCount]);
|
|
83
|
+
const alignItems = useMemo(() => {
|
|
84
|
+
if (layout === ScreenFooterLayouts.VERTICAL) {
|
|
85
|
+
if (itemsFit === ItemsFit.STRETCH) {
|
|
86
|
+
return 'stretch';
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
switch (alignment) {
|
|
90
|
+
case FooterAlignment.START:
|
|
91
|
+
return 'flex-start';
|
|
92
|
+
case FooterAlignment.END:
|
|
93
|
+
return 'flex-end';
|
|
94
|
+
default:
|
|
95
|
+
return 'center';
|
|
96
|
+
}
|
|
97
|
+
}, [layout, itemsFit, alignment]);
|
|
98
|
+
const useSafeAreaInsets = SafeAreaContextPackage?.useSafeAreaInsets ?? (() => Constants.getSafeAreaInsets());
|
|
99
|
+
const insets = useSafeAreaInsets();
|
|
100
|
+
const keyboardHeight = useKeyboardHeight();
|
|
101
|
+
const isKeyboardVisible = keyboardHeight > 0;
|
|
102
|
+
const contentContainerStyle = useMemo(() => {
|
|
103
|
+
const style = [styles.contentContainer, layout === ScreenFooterLayouts.HORIZONTAL ? styles.horizontalContainer : styles.verticalContainer, {
|
|
104
|
+
alignItems,
|
|
105
|
+
justifyContent
|
|
106
|
+
}];
|
|
107
|
+
if (!isKeyboardVisible) {
|
|
108
|
+
style.push({
|
|
109
|
+
paddingBottom: insets.bottom
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
if (isSolid) {
|
|
113
|
+
const shadowStyle = Shadows[shadow]?.top;
|
|
114
|
+
const backgroundElevation = shadowStyle?.elevation || 0;
|
|
115
|
+
// When the background has a shadow (elevation on Android), it might render on top of the content
|
|
116
|
+
style.push({
|
|
117
|
+
elevation: backgroundElevation + 1
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
return style;
|
|
121
|
+
}, [layout, alignItems, justifyContent, insets.bottom, isSolid, shadow, isKeyboardVisible]);
|
|
122
|
+
const solidBackgroundStyle = useMemo(() => {
|
|
123
|
+
if (!isSolid) {
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
const shadowStyle = Shadows[shadow]?.top;
|
|
127
|
+
const dividerStyle = hideDivider ? undefined : {
|
|
128
|
+
borderTopWidth: 1,
|
|
129
|
+
borderColor: Colors.$outlineDefault
|
|
130
|
+
};
|
|
131
|
+
return [shadowStyle, dividerStyle];
|
|
132
|
+
}, [isSolid, shadow, hideDivider]);
|
|
133
|
+
const renderBackground = useCallback(() => {
|
|
134
|
+
if (isSolid) {
|
|
135
|
+
return <View testID={testID ? `${testID}.solidBackground` : undefined} absF bg-$backgroundElevated style={solidBackgroundStyle} pointerEvents="none" />;
|
|
136
|
+
}
|
|
137
|
+
if (isFading) {
|
|
138
|
+
return <View testID={testID ? `${testID}.fadingBackground` : undefined} absF pointerEvents="none">
|
|
139
|
+
<Image source={Assets.internal.images.bottomGradient} style={styles.background} resizeMode="stretch" tintColor={Colors.$backgroundDefault} />
|
|
140
|
+
</View>;
|
|
141
|
+
}
|
|
142
|
+
return null;
|
|
143
|
+
}, [testID, isSolid, isFading, solidBackgroundStyle]);
|
|
144
|
+
const renderChild = useCallback((child, index) => {
|
|
145
|
+
if (itemsFit === ItemsFit.FIXED && itemWidth) {
|
|
146
|
+
const fixedStyle = isHorizontal ? {
|
|
147
|
+
width: itemWidth,
|
|
148
|
+
flexShrink: 1,
|
|
149
|
+
overflow: 'hidden',
|
|
150
|
+
flexDirection: 'row',
|
|
151
|
+
justifyContent: 'center'
|
|
152
|
+
} : {
|
|
153
|
+
width: itemWidth,
|
|
154
|
+
maxWidth: '100%'
|
|
155
|
+
};
|
|
156
|
+
return <View key={index} style={fixedStyle}>
|
|
157
|
+
{child}
|
|
158
|
+
</View>;
|
|
159
|
+
}
|
|
160
|
+
if (isHorizontal && React.isValidElement(child) && itemsFit === ItemsFit.STRETCH) {
|
|
161
|
+
return <View flex row centerH key={index}>
|
|
162
|
+
{child}
|
|
163
|
+
</View>;
|
|
164
|
+
}
|
|
165
|
+
return child;
|
|
166
|
+
}, [itemsFit, itemWidth, isHorizontal]);
|
|
167
|
+
const childrenArray = React.Children.toArray(children).slice(0, 3).map(renderChild);
|
|
168
|
+
const renderFooterContent = useCallback(() => {
|
|
169
|
+
return <>
|
|
170
|
+
{renderBackground()}
|
|
171
|
+
<View testID={testID ? `${testID}.content` : undefined} style={contentContainerStyle}>
|
|
172
|
+
{childrenArray}
|
|
173
|
+
</View>
|
|
174
|
+
</>;
|
|
175
|
+
}, [renderBackground, testID, contentContainerStyle, childrenArray]);
|
|
176
|
+
if (keyboardBehavior === KeyboardBehavior.HOISTED) {
|
|
177
|
+
return <Animated.View style={[styles.container, hoistedAnimatedStyle]} pointerEvents={visible ? 'box-none' : 'none'}>
|
|
178
|
+
<Keyboard.KeyboardAccessoryView renderContent={renderFooterContent} kbInputRef={undefined} scrollBehavior={Keyboard.KeyboardAccessoryView.scrollBehaviors.FIXED_OFFSET} useSafeArea={false} manageScrollView={false} revealKeyboardInteractive onHeightChanged={setHeight} />
|
|
179
|
+
</Animated.View>;
|
|
180
|
+
}
|
|
181
|
+
return <Animated.View testID={testID} onLayout={onLayout} style={[styles.container, stickyAnimatedStyle]}>
|
|
182
|
+
{renderFooterContent()}
|
|
183
|
+
</Animated.View>;
|
|
184
|
+
};
|
|
185
|
+
ScreenFooter.displayName = 'ScreenFooter';
|
|
186
|
+
const styles = StyleSheet.create({
|
|
187
|
+
container: {
|
|
188
|
+
position: 'absolute',
|
|
189
|
+
bottom: 0,
|
|
190
|
+
left: 0,
|
|
191
|
+
right: 0
|
|
192
|
+
},
|
|
193
|
+
contentContainer: {
|
|
194
|
+
paddingTop: Spacings.s4,
|
|
195
|
+
paddingHorizontal: Spacings.s5,
|
|
196
|
+
paddingBottom: Spacings.s5
|
|
197
|
+
},
|
|
198
|
+
horizontalContainer: {
|
|
199
|
+
flexDirection: 'row',
|
|
200
|
+
gap: Spacings.s5
|
|
201
|
+
},
|
|
202
|
+
verticalContainer: {
|
|
203
|
+
flexDirection: 'column',
|
|
204
|
+
gap: Spacings.s3
|
|
205
|
+
},
|
|
206
|
+
background: {
|
|
207
|
+
width: '100%',
|
|
208
|
+
height: '100%'
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
export default asBaseComponent(ScreenFooter);
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ScreenFooter",
|
|
3
|
+
"category": "layout",
|
|
4
|
+
"description": "A flexible footer component that stays at the bottom of the screen with support for various layouts, backgrounds, and keyboard behaviors",
|
|
5
|
+
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/ScreenFooterScreen.tsx",
|
|
6
|
+
"images": [],
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "backgroundType",
|
|
10
|
+
"type": "ScreenFooterBackgrounds",
|
|
11
|
+
"description": "The background style of the footer [fading, solid, transparent]",
|
|
12
|
+
"default": "'solid'"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "layout",
|
|
16
|
+
"type": "ScreenFooterLayouts",
|
|
17
|
+
"description": "The layout direction of footer items [horizontal, vertical]",
|
|
18
|
+
"default": "'vertical'"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "alignment",
|
|
22
|
+
"type": "FooterAlignment",
|
|
23
|
+
"description": "Cross-axis alignment [start, center, end]. In vertical layout: controls horizontal position. In horizontal layout: controls vertical position",
|
|
24
|
+
"default": "'center'"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "horizontalAlignment",
|
|
28
|
+
"type": "FooterAlignment",
|
|
29
|
+
"description": "Main-axis alignment for horizontal layout only when distribution is STACK [start, center, end]",
|
|
30
|
+
"default": "'center'"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "horizontalItemsDistribution",
|
|
34
|
+
"type": "HorizontalItemsDistribution",
|
|
35
|
+
"description": "Distribution of items in horizontal layout [stack, spread]",
|
|
36
|
+
"default": "'spread'"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "itemsFit",
|
|
40
|
+
"type": "ItemsFit",
|
|
41
|
+
"description": "How items should fit in vertical layout [fit, fixed, stretch]",
|
|
42
|
+
"default": "'fit'"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "keyboardBehavior",
|
|
46
|
+
"type": "KeyboardBehavior",
|
|
47
|
+
"description": "The footer's keyboard behavior [sticky, hoisted]. Sticky: stays at bottom when keyboard opens. Hoisted: pushed up when keyboard opens",
|
|
48
|
+
"default": "'sticky'"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "itemWidth",
|
|
52
|
+
"type": "DimensionValue",
|
|
53
|
+
"description": "Fixed width for all items (used with ItemsFit.FIXED)"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "visible",
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"description": "If true, the footer is visible. If false, it slides down",
|
|
59
|
+
"default": "true"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "animationDuration",
|
|
63
|
+
"type": "number",
|
|
64
|
+
"description": "Duration of the show/hide animation in ms",
|
|
65
|
+
"default": "200"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "useSafeArea",
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"description": "If true, the footer will respect the safe area (add bottom padding)",
|
|
71
|
+
"default": "true"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "shadow",
|
|
75
|
+
"type": "ScreenFooterShadow",
|
|
76
|
+
"description": "Shadow preset for solid background [sh10, sh20, sh30]. Only applies when backgroundType is 'solid'",
|
|
77
|
+
"default": "'sh20'"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "hideDivider",
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"description": "If true, hides the top divider for solid background. Only applies when backgroundType is 'solid'",
|
|
83
|
+
"default": "false"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"snippet": [
|
|
87
|
+
"<View flex bg-$backgroundDefault>",
|
|
88
|
+
" <ScrollView>",
|
|
89
|
+
" {/* Screen content */}",
|
|
90
|
+
" </ScrollView>",
|
|
91
|
+
" <ScreenFooter>",
|
|
92
|
+
" <Button label=\"Primary Action\" />",
|
|
93
|
+
" <Button label=\"Secondary Action\" link />",
|
|
94
|
+
" </ScreenFooter>",
|
|
95
|
+
"</View>"
|
|
96
|
+
],
|
|
97
|
+
"docs": {
|
|
98
|
+
"hero": {
|
|
99
|
+
"title": "ScreenFooter",
|
|
100
|
+
"description": "The ScreenFooter component provides a flexible footer that stays at the bottom of the screen with support for various layouts, backgrounds, and keyboard behaviors. It's ideal for forms, checkout flows, and any screen requiring persistent bottom actions.",
|
|
101
|
+
"type": "hero",
|
|
102
|
+
"layout": "horizontal",
|
|
103
|
+
"content": [
|
|
104
|
+
{
|
|
105
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ScreenFooter/screenFooter_overview_preview.png"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"tabs": [
|
|
110
|
+
{
|
|
111
|
+
"title": "Overview",
|
|
112
|
+
"sections": [
|
|
113
|
+
{
|
|
114
|
+
"type": "section",
|
|
115
|
+
"title": "Use Examples",
|
|
116
|
+
"description": "The ScreenFooter can be used in various scenarios depending on the content and action hierarchy. Each layout type serves different use cases and provides different visual emphasis.",
|
|
117
|
+
"content": []
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "table",
|
|
121
|
+
"columns": [
|
|
122
|
+
"Layout Type",
|
|
123
|
+
"Use Case",
|
|
124
|
+
"Example"
|
|
125
|
+
],
|
|
126
|
+
"items": [
|
|
127
|
+
{
|
|
128
|
+
"title": "Horizontal - Spread",
|
|
129
|
+
"content": [
|
|
130
|
+
{
|
|
131
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ScreenFooter/screenFooter_horizontal_spread.png"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"description": "Best for two equally important actions positioned at opposite ends. Common in navigation flows or when presenting contrasting choices."
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"title": "Horizontal - Stacked Center",
|
|
138
|
+
"content": [
|
|
139
|
+
{
|
|
140
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ScreenFooter/screenFooter_horizontal_stacked.png"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"description": "Ideal for primary and secondary actions of similar importance that should be grouped together in the center."
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"title": "Horizontal - With Content",
|
|
147
|
+
"content": [
|
|
148
|
+
{
|
|
149
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ScreenFooter/screenFooter_horizontal_content.png"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"description": "Perfect for checkout or summary screens where you need to display information alongside actions. The footer can accommodate text, prices, or other content elements."
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"title": "Horizontal Layouts",
|
|
156
|
+
"description": "markdown: Horizontal layouts are best when screen content is abundant and vertical space is limited. They keep actions compact while maintaining good reachability. Use the `layout` prop set to `ScreenFooterLayouts.HORIZONTAL`."
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"type": "table",
|
|
160
|
+
"columns": [
|
|
161
|
+
"Layout Type",
|
|
162
|
+
"Use Case",
|
|
163
|
+
"Example"
|
|
164
|
+
],
|
|
165
|
+
"items": [
|
|
166
|
+
{
|
|
167
|
+
"title": "Vertical - Fit",
|
|
168
|
+
"content": [
|
|
169
|
+
{
|
|
170
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ScreenFooter/screenFooter_vertical_fit.png"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"description": "Buttons are sized based on their content. Best for clear action hierarchy with a prominent primary button and a subtle secondary link button."
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"title": "Vertical - Stretched",
|
|
177
|
+
"content": [
|
|
178
|
+
{
|
|
179
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ScreenFooter/screenFooter_vertical_stretched.png"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"description": "Full-width buttons provide maximum tap area and visual prominence. Recommended for forms and high-priority actions where accessibility is crucial."
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"title": "Vertical Layouts",
|
|
186
|
+
"description": "markdown: Vertical layouts provide better action prominence and are recommended when a single primary action needs emphasis, or when content can be obscured. Use `itemsFit` prop with `ItemsFit.STRETCH` for full-width buttons or `ItemsFit.FIT` for content-sized buttons."
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"type": "table",
|
|
190
|
+
"columns": [
|
|
191
|
+
"Background Type",
|
|
192
|
+
"Visual",
|
|
193
|
+
"When to Use"
|
|
194
|
+
],
|
|
195
|
+
"items": [
|
|
196
|
+
{
|
|
197
|
+
"title": "Solid",
|
|
198
|
+
"content": [
|
|
199
|
+
{
|
|
200
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ScreenFooter/screenFooter_background_solid.png"
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"description": "Provides clear separation with a solid background and optional shadow. Best for content-heavy screens where the footer needs to stand out."
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"title": "Fading",
|
|
207
|
+
"content": [
|
|
208
|
+
{
|
|
209
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ScreenFooter/screenFooter_background_fading.png"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"description": "Creates a subtle gradient overlay that doesn't obscure content completely. Ideal for minimal designs or when content should remain partially visible."
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"title": "Transparent",
|
|
216
|
+
"content": [
|
|
217
|
+
{
|
|
218
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ScreenFooter/screenFooter_background_transparent.png"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"description": "No background overlay. Use when the screen has minimal content or a solid background color, and separation isn't needed."
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"title": "Background Types",
|
|
225
|
+
"description": "markdown: Choose the background type based on your content density and visual hierarchy needs. Set using the `backgroundType` prop."
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"type": "table",
|
|
229
|
+
"columns": [
|
|
230
|
+
"Behavior",
|
|
231
|
+
"Description",
|
|
232
|
+
"Example"
|
|
233
|
+
],
|
|
234
|
+
"items": [
|
|
235
|
+
{
|
|
236
|
+
"title": "Sticky",
|
|
237
|
+
"content": [
|
|
238
|
+
{
|
|
239
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ScreenFooter/screenFooter_behavior_sticky.png"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"description": "The footer remains at the bottom of the screen even when the keyboard is open. Best for short forms or when the footer actions don't relate to keyboard input."
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"title": "Hoisted",
|
|
246
|
+
"content": [
|
|
247
|
+
{
|
|
248
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ScreenFooter/screenFooter_behavior_hoisted.png"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"description": "The footer moves up with the keyboard, staying above it. Recommended for forms where users need immediate access to submit actions while typing."
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"title": "Keyboard Behavior",
|
|
255
|
+
"description": "markdown: Control how the footer responds to the keyboard using the `keyboardBehavior` prop. Choose `KeyboardBehavior.STICKY` to keep it at the bottom, or `KeyboardBehavior.HOISTED` to move it above the keyboard."
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { DimensionValue } from 'react-native';
|
|
3
|
+
export declare enum ScreenFooterLayouts {
|
|
4
|
+
HORIZONTAL = "horizontal",
|
|
5
|
+
VERTICAL = "vertical"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ScreenFooterBackgrounds {
|
|
8
|
+
FADING = "fading",
|
|
9
|
+
SOLID = "solid",
|
|
10
|
+
TRANSPARENT = "transparent"
|
|
11
|
+
}
|
|
12
|
+
export declare enum FooterAlignment {
|
|
13
|
+
START = "start",
|
|
14
|
+
CENTER = "center",
|
|
15
|
+
END = "end"
|
|
16
|
+
}
|
|
17
|
+
export declare enum HorizontalItemsDistribution {
|
|
18
|
+
STACK = "stack",
|
|
19
|
+
SPREAD = "spread"
|
|
20
|
+
}
|
|
21
|
+
export declare enum ItemsFit {
|
|
22
|
+
FIT = "fit",
|
|
23
|
+
STRETCH = "stretch",
|
|
24
|
+
FIXED = "fixed"
|
|
25
|
+
}
|
|
26
|
+
export declare enum KeyboardBehavior {
|
|
27
|
+
STICKY = "sticky",
|
|
28
|
+
HOISTED = "hoisted"
|
|
29
|
+
}
|
|
30
|
+
export declare enum ScreenFooterShadow {
|
|
31
|
+
SH10 = "sh10",
|
|
32
|
+
SH20 = "sh20",
|
|
33
|
+
SH30 = "sh30"
|
|
34
|
+
}
|
|
35
|
+
export interface ScreenFooterProps extends PropsWithChildren<{}> {
|
|
36
|
+
/**
|
|
37
|
+
* Used as testing identifier
|
|
38
|
+
*/
|
|
39
|
+
testID?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The background style of the footer
|
|
42
|
+
*/
|
|
43
|
+
backgroundType?: ScreenFooterBackgrounds | `${ScreenFooterBackgrounds}`;
|
|
44
|
+
/**
|
|
45
|
+
* The layout direction of footer items
|
|
46
|
+
*/
|
|
47
|
+
layout?: ScreenFooterLayouts | `${ScreenFooterLayouts}`;
|
|
48
|
+
/**
|
|
49
|
+
* Cross-axis alignment:
|
|
50
|
+
* - Vertical layout: controls horizontal position (left/center/right)
|
|
51
|
+
* - Horizontal layout: controls vertical position (top/center/bottom)
|
|
52
|
+
*/
|
|
53
|
+
alignment?: FooterAlignment | `${FooterAlignment}`;
|
|
54
|
+
/**
|
|
55
|
+
* Main-axis alignment for horizontal layout only (when distribution is STACK):
|
|
56
|
+
* Controls horizontal position (left/center/right) of the stacked items
|
|
57
|
+
*/
|
|
58
|
+
horizontalAlignment?: FooterAlignment | `${FooterAlignment}`;
|
|
59
|
+
/**
|
|
60
|
+
* Distribution of items in horizontal layout (stack/spread)
|
|
61
|
+
*/
|
|
62
|
+
horizontalItemsDistribution?: HorizontalItemsDistribution | `${HorizontalItemsDistribution}`;
|
|
63
|
+
/**
|
|
64
|
+
* How items should fit in vertical layout (fit/fixed/stretch)
|
|
65
|
+
*/
|
|
66
|
+
itemsFit?: ItemsFit | `${ItemsFit}`;
|
|
67
|
+
/**
|
|
68
|
+
* The footer's keyboard behavior.
|
|
69
|
+
* When STICKY, the footer will stay at the bottom of the screen when keyboard is opened.
|
|
70
|
+
* When HOISTED, the footer will be pushed up when keyboard is opened.
|
|
71
|
+
*/
|
|
72
|
+
keyboardBehavior?: KeyboardBehavior | `${KeyboardBehavior}`;
|
|
73
|
+
/**
|
|
74
|
+
* Fixed width for all items (used with ItemsFit.FIXED)
|
|
75
|
+
*/
|
|
76
|
+
itemWidth?: DimensionValue;
|
|
77
|
+
/**
|
|
78
|
+
* If true, the footer is visible. If false, it slides down.
|
|
79
|
+
*/
|
|
80
|
+
visible?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Duration of the show/hide animation in ms.
|
|
83
|
+
* @default 200
|
|
84
|
+
*/
|
|
85
|
+
animationDuration?: number;
|
|
86
|
+
/**
|
|
87
|
+
* If true, the footer will respect the safe area (add bottom padding)
|
|
88
|
+
*/
|
|
89
|
+
useSafeArea?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Shadow preset for solid background (default: SH20)
|
|
92
|
+
* Only applies when backgroundType is 'solid'
|
|
93
|
+
*/
|
|
94
|
+
shadow?: ScreenFooterShadow | `${ScreenFooterShadow}`;
|
|
95
|
+
/**
|
|
96
|
+
* If true, hides the top divider for solid background (default: false)
|
|
97
|
+
* Only applies when backgroundType is 'solid'
|
|
98
|
+
*/
|
|
99
|
+
hideDivider?: boolean;
|
|
100
|
+
}
|