@artsy/palette-mobile 13.0.34 → 13.0.35
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.
|
@@ -4,6 +4,7 @@ exports.TabsContainer = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_native_1 = require("react-native");
|
|
6
6
|
const react_native_collapsible_tab_view_1 = require("react-native-collapsible-tab-view");
|
|
7
|
+
const constants_1 = require("../../constants");
|
|
7
8
|
const useColor_1 = require("../../utils/hooks/useColor");
|
|
8
9
|
const useSpace_1 = require("../../utils/hooks/useSpace");
|
|
9
10
|
const Box_1 = require("../Box");
|
|
@@ -32,7 +33,7 @@ const TabsContainer = ({ children, indicators = [], initialTabName, renderHeader
|
|
|
32
33
|
const Indicator = indicators.find((indicator) => {
|
|
33
34
|
return indicator.tabName === props.name;
|
|
34
35
|
});
|
|
35
|
-
return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { flex: 1, children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { position: "absolute", width: "100%", children: !!Indicator?.Component && (0, jsx_runtime_1.jsx)(Indicator.Component, { ...props }) }), (0, jsx_runtime_1.jsx)(react_native_collapsible_tab_view_1.MaterialTabItem, { ...props })] }));
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { flex: 1, children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { position: "absolute", width: "100%", children: !!Indicator?.Component && (0, jsx_runtime_1.jsx)(Indicator.Component, { ...props }) }), (0, jsx_runtime_1.jsx)(react_native_collapsible_tab_view_1.MaterialTabItem, { pressOpacity: constants_1.DEFAULT_ACTIVE_OPACITY, ...props })] }));
|
|
36
37
|
}, contentContainerStyle: {}, activeColor: color("onBackground"), inactiveColor: color("onBackgroundMedium"), labelStyle: { marginHorizontal: 0 }, indicatorStyle: {
|
|
37
38
|
backgroundColor: color("onBackground"),
|
|
38
39
|
height: 1,
|