@artsy/palette-mobile 22.2.0--canary.425.5115.0 → 22.2.0--canary.425.5134.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.
|
@@ -3,7 +3,7 @@ import { CloseIcon } from "@artsy/icons/native";
|
|
|
3
3
|
import themeGet from "@styled-system/theme-get";
|
|
4
4
|
import { MotiPressable } from "moti/interactions";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
|
-
import { PixelRatio } from "react-native";
|
|
6
|
+
import { PixelRatio, Platform } from "react-native";
|
|
7
7
|
import styled, { css } from "styled-components";
|
|
8
8
|
import { Flex } from "../Flex";
|
|
9
9
|
import { Image } from "../Image";
|
|
@@ -27,7 +27,7 @@ export const Pill = ({ variant = "default", src, selected, disabled, Icon, child
|
|
|
27
27
|
return {
|
|
28
28
|
opacity: hovered || pressed ? 0.5 : 1,
|
|
29
29
|
};
|
|
30
|
-
}, []), children: [variant === "profile" && src && (_jsx(Flex, { overflow: "hidden", borderRadius: 50, height: 30, width: 30, mr: 1, children: _jsx(Thumbnail, { src: src, height: 30, width: 30 }) })), Icon && _jsx(Icon, { fill: color, ml: -0.5, mr: 0.5 }), _jsx(Text, { variant: "xs", color: color, style: { marginBottom: 2 }, children: children }), showCloseIcon && _jsx(CloseIcon, { fill: color, ml: 0.5, width: 15, height: 15 })] }) }));
|
|
30
|
+
}, []), children: [variant === "profile" && src && (_jsx(Flex, { overflow: "hidden", borderRadius: 50, height: 30, width: 30, mr: 1, children: _jsx(Thumbnail, { src: src, height: 30, width: 30 }) })), Icon && _jsx(Icon, { fill: color, ml: -0.5, mr: 0.5 }), _jsx(Flex, { height: "100%", justifyContent: "center", children: _jsx(Text, { variant: "xs", color: color, style: { marginBottom: Platform.OS === "ios" ? 2 : -2 }, children: children }) }), showCloseIcon && _jsx(CloseIcon, { fill: color, ml: 0.5, width: 15, height: 15 })] }) }));
|
|
31
31
|
};
|
|
32
32
|
const Container = styled(MotiPressable) `
|
|
33
33
|
align-items: center;
|
|
@@ -52,7 +52,7 @@ const PILL_STATES = {
|
|
|
52
52
|
default: css `
|
|
53
53
|
border-radius: 15px;
|
|
54
54
|
height: ${PixelRatio.getFontScale() * 30}px;
|
|
55
|
-
padding:
|
|
55
|
+
padding-horizontal: 15px;
|
|
56
56
|
`,
|
|
57
57
|
selected: css `
|
|
58
58
|
border-color: ${themeGet("colors.blue100")};
|
|
@@ -29,7 +29,7 @@ export const Skeleton = ({ children }) => {
|
|
|
29
29
|
};
|
|
30
30
|
export const SkeletonText = ({ children, ...rest }) => {
|
|
31
31
|
const color = useColor();
|
|
32
|
-
return (_jsx(Flex, { alignSelf: "flex-start", children: _jsx(Text, { ...rest, bg: color("mono10"), color: "
|
|
32
|
+
return (_jsx(Flex, { alignSelf: "flex-start", children: _jsx(Text, { ...rest, bg: color("mono10"), color: "rgb(251, 0, 0, 0)", children: children }) }));
|
|
33
33
|
};
|
|
34
34
|
export const SkeletonBox = ({ children, ...rest }) => {
|
|
35
35
|
const color = useColor();
|