@artsy/palette-mobile 11.0.36 → 11.0.38

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.38 (Thu Jun 08 2023)
2
+
3
+ #### ⚠️ Pushed to `main`
4
+
5
+ - Update TabsContainer.tsx ([@damassi](https://github.com/damassi))
6
+
7
+ #### Authors: 1
8
+
9
+ - Christopher Pappas ([@damassi](https://github.com/damassi))
10
+
11
+ ---
12
+
13
+ # v11.0.37 (Wed Jun 07 2023)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - refactor: adjust tab header animation [#111](https://github.com/artsy/palette-mobile/pull/111) ([@gkartalis](https://github.com/gkartalis))
18
+
19
+ #### Authors: 1
20
+
21
+ - George Kartalis ([@gkartalis](https://github.com/gkartalis))
22
+
23
+ ---
24
+
1
25
  # v11.0.36 (Wed Jun 07 2023)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -53,14 +53,14 @@ const Header = ({ animated = false, hideLeftElements, hideRightElements, hideTit
53
53
  return null;
54
54
  }
55
55
  if (!animated) {
56
- return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: 1, justifySelf: "stretch", ...titleProps, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { variant: "md", numberOfLines: 1, children: title }) }));
56
+ return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: 1, justifySelf: "stretch", ...titleProps, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { variant: "sm-display", numberOfLines: 1, children: title }) }));
57
57
  }
58
58
  // Show / hide the title to avoid rerenders, which retrigger the animation
59
59
  const display = scrollY < constants_1.NAVBAR_HEIGHT ? "none" : "flex";
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: {
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.FadeIn.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", width: "100%", ...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: "sm-display", numberOfLines: 1, children: title }) }) }) }));
64
64
  };
65
65
  const Right = () => {
66
66
  if (hideRightElements) {
@@ -30,7 +30,7 @@ const TabsContainer = ({ children, indicators = [], initialTabName, renderHeader
30
30
  const Indicator = indicators.find((indicator) => {
31
31
  return indicator.tabName === props.name;
32
32
  });
33
- 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, children: "hi 2" })] }));
33
+ 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 })] }));
34
34
  }, contentContainerStyle: {}, activeColor: color("onBackground"), inactiveColor: color("onBackgroundMedium"), labelStyle: { marginTop: 0 }, indicatorStyle: {
35
35
  backgroundColor: color("onBackground"),
36
36
  height: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "11.0.36",
3
+ "version": "11.0.38",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "react-native run-android",