@artsy/palette-mobile 11.0.41 → 11.1.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v11.1.0 (Thu Jun 15 2023)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat(screen): Make FloatingHeader more customizable [#116](https://github.com/artsy/palette-mobile/pull/116) ([@damassi](https://github.com/damassi))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Christopher Pappas ([@damassi](https://github.com/damassi))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v11.0.41 (Thu Jun 15 2023)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { FlexProps } from "../Flex";
|
|
3
|
+
export interface FloatingHeaderProps extends FlexProps {
|
|
3
4
|
onBack?: () => void;
|
|
4
5
|
rightElements?: React.ReactNode;
|
|
5
6
|
}
|
|
6
|
-
export declare const FloatingHeader:
|
|
7
|
+
export declare const FloatingHeader: React.FC<FloatingHeaderProps>;
|
|
@@ -7,8 +7,8 @@ const constants_1 = require("./constants");
|
|
|
7
7
|
const BackButton_1 = require("../BackButton");
|
|
8
8
|
const Flex_1 = require("../Flex");
|
|
9
9
|
const Spacer_1 = require("../Spacer");
|
|
10
|
-
const FloatingHeader = ({ onBack, rightElements }) => {
|
|
10
|
+
const FloatingHeader = ({ onBack, rightElements, ...flexProps }) => {
|
|
11
11
|
const insets = (0, react_native_safe_area_context_1.useSafeAreaInsets)();
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { position: "absolute", pointerEvents: "box-none", top: insets.top, left: 0, right: 0, zIndex: constants_1.ZINDEX.floatingHeader, px: 1, py: 1, flexDirection: "row", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(BackButton_1.BackButtonWithBackground, { onPress: onBack }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: 1 }), rightElements && ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Spacer_1.Spacer, { x: 1 }), rightElements] }))] }));
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { position: "absolute", pointerEvents: "box-none", top: insets.top, left: 0, right: 0, zIndex: constants_1.ZINDEX.floatingHeader, px: 1, py: 1, flexDirection: "row", alignItems: "center", ...flexProps, children: [(0, jsx_runtime_1.jsx)(BackButton_1.BackButtonWithBackground, { onPress: onBack }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: 1 }), rightElements && ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Spacer_1.Spacer, { x: 1 }), rightElements] }))] }));
|
|
13
13
|
};
|
|
14
14
|
exports.FloatingHeader = FloatingHeader;
|
|
@@ -9,7 +9,7 @@ export declare const Screen: import("react").FC<import("./ScreenBase").ScreenBas
|
|
|
9
9
|
Body: import("react").FC<import("./Body").BodyProps>;
|
|
10
10
|
BottomView: import("react").FC<import("./BottomView").BottomViewProps>;
|
|
11
11
|
FlatList: typeof ScreenFlatList;
|
|
12
|
-
FloatingHeader: (
|
|
12
|
+
FloatingHeader: import("react").FC<import("./FloatingHeader").FloatingHeaderProps>;
|
|
13
13
|
FullWidthDivider: import("react").FC<import("..").BoxProps>;
|
|
14
14
|
FullWidthItem: import("react").FC<import("..").BoxProps>;
|
|
15
15
|
Header: import("react").FC<import("./Header").HeaderProps>;
|