@artsy/palette-mobile 22.2.0--canary.425.5168.0 → 22.2.0--canary.425.5173.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.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Use to position content directly below the tab bar
3
+ * on android this is a simple view that is positioned absolutely below the tab bar
4
+ * We don't animate it because it's currently broken in react-native-reanimated after the new architecture update
5
+ * See https://github.com/software-mansion/react-native-reanimated/issues/7460
6
+ */
7
+ export declare const SubTabBar: React.FC<React.PropsWithChildren<{}>>;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { View } from "react-native";
3
+ import { useSpace } from "../../utils/hooks/useSpace";
4
+ /**
5
+ * Use to position content directly below the tab bar
6
+ * on android this is a simple view that is positioned absolutely below the tab bar
7
+ * We don't animate it because it's currently broken in react-native-reanimated after the new architecture update
8
+ * See https://github.com/software-mansion/react-native-reanimated/issues/7460
9
+ */
10
+ export const SubTabBar = ({ children }) => {
11
+ const space = useSpace();
12
+ return _jsx(View, { style: [{ zIndex: 1, marginHorizontal: -space(2) }], children: children });
13
+ };
@@ -16,9 +16,7 @@ export declare const Tabs: import("react").FC<import("./TabsContainer").TabsCont
16
16
  SectionList: <T>(p: import("react-native").SectionListProps<T> & {
17
17
  ref?: React.Ref<import("react-native").SectionList<T>>;
18
18
  }) => React.ReactElement;
19
- SubTabBar: import("react").FC<{
20
- children?: import("react").ReactNode | undefined;
21
- }>;
19
+ SubTabBar: any;
22
20
  Tab: typeof import("react-native-collapsible-tab-view").Tab;
23
21
  TabsWithHeader: import("react").FC<import("./TabsWithHeader").TabsWithHeaderProps>;
24
22
  useAnimatedTabIndex: typeof useAnimatedTabIndex;
@@ -1,4 +1,5 @@
1
1
  import { Tabs as BaseTabs, useAnimatedTabIndex, useCurrentTabScrollY, useFocusedTab, useHeaderMeasurements, } from "react-native-collapsible-tab-view";
2
+ // @ts-ignore
2
3
  import { SubTabBar } from "./SubTabBar";
3
4
  import { TabFlashList } from "./TabFlashList";
4
5
  import { TabFlatList } from "./TabFlatList";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "22.2.0--canary.425.5168.0",
3
+ "version": "22.2.0--canary.425.5173.0",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "workspaces": [
6
6
  "Example"