@artsy/palette-mobile 11.0.32 → 11.0.34

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,27 @@
1
+ # v11.0.34 (Tue Jun 06 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - build(deps): add react-native-pager-view [#108](https://github.com/artsy/palette-mobile/pull/108) ([@gkartalis](https://github.com/gkartalis))
6
+
7
+ #### Authors: 1
8
+
9
+ - George Kartalis ([@gkartalis](https://github.com/gkartalis))
10
+
11
+ ---
12
+
13
+ # v11.0.33 (Mon Jun 05 2023)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - fix(tabs): Ensure title content is properly centered [#107](https://github.com/artsy/palette-mobile/pull/107) ([@damassi](https://github.com/damassi))
18
+
19
+ #### Authors: 1
20
+
21
+ - Christopher Pappas ([@damassi](https://github.com/damassi))
22
+
23
+ ---
24
+
1
25
  # v11.0.32 (Fri Jun 02 2023)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -44,7 +44,7 @@ const Header = ({ animated = false, hideLeftElements, hideRightElements, hideTit
44
44
  if (hideLeftElements) {
45
45
  return null;
46
46
  }
47
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { pr: 1, children: [leftElements ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: leftElements })) : (
47
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { pr: 1, width: 50, children: [leftElements ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: leftElements })) : (
48
48
  // If no left elements passed, show back button
49
49
  (0, jsx_runtime_1.jsx)(Touchable_1.Touchable, { onPress: onBack, underlayColor: "transparent", hitSlop: constants_2.DEFAULT_HIT_SLOP, children: (0, jsx_runtime_1.jsx)(ArrowLeftIcon_1.ArrowLeftIcon, { fill: "onBackgroundHigh", top: "2px" }) })), (0, jsx_runtime_1.jsx)(Spacer_1.Spacer, { x: 1 })] }));
50
50
  };
@@ -60,14 +60,14 @@ const Header = ({ animated = false, hideLeftElements, hideRightElements, hideTit
60
60
  return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: 1, flexDirection: "row", children: (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { entering: react_native_reanimated_1.FadeInDown.duration(400).easing(react_native_reanimated_1.Easing.out(react_native_reanimated_1.Easing.exp)), exiting: react_native_reanimated_1.FadeOut.duration(400).easing(react_native_reanimated_1.Easing.out(react_native_reanimated_1.Easing.exp)), style: {
61
61
  display,
62
62
  flex: 1,
63
- }, children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", ...titleProps, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { variant: "md", numberOfLines: 1, children: title }) }) }) }));
63
+ }, children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", width: "100%", ...titleProps, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { variant: "md", numberOfLines: 1, children: title }) }) }) }));
64
64
  };
65
65
  const Right = () => {
66
66
  if (hideRightElements) {
67
67
  return null;
68
68
  }
69
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { pl: 1, children: [(0, jsx_runtime_1.jsx)(Spacer_1.Spacer, { x: 1 }), rightElements] }));
69
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { width: 50, alignItems: "flex-end", children: [(0, jsx_runtime_1.jsx)(Spacer_1.Spacer, { x: 1 }), rightElements] }));
70
70
  };
71
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { height: constants_1.NAVBAR_HEIGHT, flexDirection: "row", px: 2, py: 1, zIndex: constants_1.ZINDEX.header, backgroundColor: "background", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Left, {}), (0, jsx_runtime_1.jsx)(Center, {}), (0, jsx_runtime_1.jsx)(Right, {})] }));
71
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { height: constants_1.NAVBAR_HEIGHT, flexDirection: "row", px: 2, py: 1, zIndex: constants_1.ZINDEX.header, backgroundColor: "background", alignItems: "center", width: "100%", children: [(0, jsx_runtime_1.jsx)(Left, {}), (0, jsx_runtime_1.jsx)(Center, {}), (0, jsx_runtime_1.jsx)(Right, {})] }));
72
72
  };
73
73
  exports.Header = Header;
@@ -24,9 +24,7 @@ const TabsContainer = ({ children, initialTabName, renderHeader, tabScrollEnable
24
24
  height: TAB_BAR_HEIGHT,
25
25
  borderBottomWidth: 1,
26
26
  borderColor: color("black30"),
27
- }, contentContainerStyle: {}, activeColor: color("onBackground"), inactiveColor: color("onBackgroundMedium"), labelStyle: { marginTop: 0 }, tabStyle: {
28
- marginHorizontal: 10,
29
- }, indicatorStyle: {
27
+ }, contentContainerStyle: {}, activeColor: color("onBackground"), inactiveColor: color("onBackgroundMedium"), labelStyle: { marginTop: 0 }, indicatorStyle: {
30
28
  backgroundColor: color("onBackground"),
31
29
  height: 1,
32
30
  } }) }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "11.0.32",
3
+ "version": "11.0.34",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "react-native run-android",
@@ -41,6 +41,7 @@
41
41
  "moti": "^0.25.3",
42
42
  "react-nanny": "^2.15.0",
43
43
  "react-native-collapsible-tab-view": "^6.1.4",
44
+ "react-native-pager-view": "^6.2.0",
44
45
  "react-spring": "8.0.23",
45
46
  "styled-system": "^5.1.5"
46
47
  },