@artsy/palette-mobile 13.0.34 → 13.0.36

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.
@@ -10,7 +10,7 @@ export interface HeaderProps {
10
10
  rightElements?: React.ReactNode;
11
11
  scrollY?: number;
12
12
  scrollYOffset?: number;
13
- title?: string;
13
+ title?: string | JSX.Element;
14
14
  titleProps?: FlexProps;
15
15
  titleShown?: boolean;
16
16
  }
@@ -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,
@@ -3,7 +3,7 @@ import { CollapsibleProps } from "react-native-collapsible-tab-view";
3
3
  import { TabsContainerProps } from "./TabsContainer";
4
4
  import { HeaderProps } from "../Screen/Header";
5
5
  export interface TabsWithHeaderProps extends TabsContainerProps {
6
- title: string;
6
+ title: string | JSX.Element;
7
7
  BelowTitleHeaderComponent?: () => JSX.Element;
8
8
  headerProps?: HeaderProps;
9
9
  showLargeHeaderText?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "13.0.34",
3
+ "version": "13.0.36",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "RCT_METRO_PORT=8082 react-native run-android --port 8082",