@artsy/palette-mobile 17.3.0 → 17.4.1

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.
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import themeGet from "@styled-system/theme-get";
3
3
  import { MotiPressable } from "moti/interactions";
4
4
  import { useMemo } from "react";
5
+ import { PixelRatio } from "react-native";
5
6
  import styled, { css } from "styled-components";
6
7
  import { CloseIcon } from "../../svgs";
7
8
  import { Flex } from "../Flex";
@@ -50,7 +51,7 @@ const Thumbnail = styled(Image) `
50
51
  const PILL_STATES = {
51
52
  default: css `
52
53
  border-radius: 15px;
53
- height: 30px;
54
+ height: ${PixelRatio.getFontScale() * 30}px;
54
55
  padding: 0 15px;
55
56
  `,
56
57
  selected: css `
@@ -34,5 +34,5 @@ export const StickySubHeader = ({ title, largeTitle = false, separatorComponent
34
34
  ],
35
35
  };
36
36
  }, [visible.value, stickyBarHeight]);
37
- return (_jsxs(Flex, { children: [stickyBarHeight === null && (_jsx(Flex, { onLayout: (event) => handleLayout(event), position: "absolute", backgroundColor: "mono0", zIndex: -1000, style: sharedStyles, children: _jsxs(Flex, { mb: 1, children: [_jsx(Text, { variant: largeTitle ? "xl" : "lg-display", color: "mono0", children: title }), !!subTitle && (_jsx(Text, { variant: "xs", mt: 0.5, color: "mono0", children: subTitle })), Component] }) })), _jsx(Animated.View, { style: [sharedStyles, animatedStyles], children: _jsxs(Flex, { style: { height: stickyBarHeight }, mb: 1, children: [_jsx(Text, { variant: largeTitle ? "xl" : "lg-display", children: title }), subTitle && (_jsx(Text, { variant: "xs", mt: 0.5, children: subTitle })), Component] }) }), children, children !== undefined && separatorComponent] }));
37
+ return (_jsxs(Flex, { children: [stickyBarHeight === null && (_jsx(Flex, { onLayout: (event) => handleLayout(event), position: "absolute", backgroundColor: "mono0", zIndex: -1000, style: sharedStyles, children: _jsxs(Flex, { mb: 2, children: [_jsx(Text, { variant: largeTitle ? "xl" : "lg-display", color: "mono0", children: title }), !!subTitle && (_jsx(Text, { variant: "xs", mt: 0.5, color: "mono0", children: subTitle })), Component] }) })), _jsx(Animated.View, { style: [sharedStyles, animatedStyles], children: _jsxs(Flex, { style: { height: stickyBarHeight }, mb: 2, children: [_jsx(Text, { variant: largeTitle ? "xl" : "lg-display", children: title }), subTitle && (_jsx(Text, { variant: "xs", mt: 0.5, children: subTitle })), Component] }) }), children, children !== undefined && separatorComponent] }));
38
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "17.3.0",
3
+ "version": "17.4.1",
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 --terminal terminal",