@momo-kits/foundation 0.169.18-beta.2 → 0.169.18-beta.3
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/Layout/screenFooter.tsx +9 -3
- package/Layout/screenTypes.ts +4 -4
- package/package.json +1 -1
package/Layout/screenFooter.tsx
CHANGED
|
@@ -250,10 +250,10 @@ const ScreenFooter = ({
|
|
|
250
250
|
hasBarMargin && styles.footerClip,
|
|
251
251
|
{ marginLeft: barMargin.left, marginRight: barMargin.right },
|
|
252
252
|
];
|
|
253
|
+
const configured = context?.designSystemConfig?.config?.footerSeparator;
|
|
254
|
+
const resolved = getFooterSeparator(separator, configured);
|
|
253
255
|
let surfaceStyle: StyleProp<ViewStyle> = styles.shadow;
|
|
254
256
|
if (kind === 'anchored') {
|
|
255
|
-
const configured = context?.designSystemConfig?.config?.footerSeparator;
|
|
256
|
-
const resolved = getFooterSeparator(separator, configured);
|
|
257
257
|
const separatorStyle = getSeparatorStyle(
|
|
258
258
|
resolved,
|
|
259
259
|
theme.colors.border.default,
|
|
@@ -262,7 +262,13 @@ const ScreenFooter = ({
|
|
|
262
262
|
}
|
|
263
263
|
if (kind === 'sheet') {
|
|
264
264
|
containerStyle = [containerStyle, { marginTop: -layout.overlap }];
|
|
265
|
-
|
|
265
|
+
// the sheet has no top line; `shadow` gives it the phone footer shadow
|
|
266
|
+
const hasShadow = resolved === 'shadow';
|
|
267
|
+
surfaceStyle = [
|
|
268
|
+
styles.footerSheet,
|
|
269
|
+
hasShadow && styles.shadow,
|
|
270
|
+
{ width: layout.width },
|
|
271
|
+
];
|
|
266
272
|
}
|
|
267
273
|
let surfaceColor: string | undefined;
|
|
268
274
|
if (layout.hasSurface) {
|
package/Layout/screenTypes.ts
CHANGED
|
@@ -74,10 +74,10 @@ export interface ScreenProps extends ViewProps {
|
|
|
74
74
|
footerStyle?: ScreenFooterStyle;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Optional. Top edge of the
|
|
78
|
-
* `shadow`, the phone footer's shadow
|
|
79
|
-
*
|
|
80
|
-
* draws neither.
|
|
77
|
+
* Optional. Top edge of the footer on foldables: `border`, a 1pt line on the
|
|
78
|
+
* `anchored` bar (none on a `sheet`), or `shadow`, the phone footer's shadow on
|
|
79
|
+
* either. Defaults to the host's design system config (`footerSeparator`), else
|
|
80
|
+
* `border`. Phones keep their shadow; an image background draws neither.
|
|
81
81
|
*/
|
|
82
82
|
footerSeparator?: ScreenFooterSeparator;
|
|
83
83
|
|