@artsy/palette-mobile 3.2.0 → 3.3.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.
@@ -1,7 +1,6 @@
1
- interface BackButtonProps {
1
+ export interface BackButtonProps {
2
2
  onPress?: () => void;
3
3
  showX?: boolean;
4
4
  }
5
5
  export declare const BackButton: ({ onPress, showX }: BackButtonProps) => JSX.Element;
6
6
  export declare const BackButtonWithBackground: ({ onPress, showX }: BackButtonProps) => JSX.Element;
7
- export {};
@@ -7,5 +7,5 @@ const svgs_1 = require("../../svgs");
7
7
  const Flex_1 = require("../Flex");
8
8
  const BackButton = ({ onPress, showX = false }) => ((0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { onPress: onPress, children: showX ? ((0, jsx_runtime_1.jsx)(svgs_1.CloseIcon, { fill: "onBackgroundHigh", width: 26, height: 26 })) : ((0, jsx_runtime_1.jsx)(svgs_1.ChevronIcon, { direction: "left", fill: "onBackgroundHigh" })) }));
9
9
  exports.BackButton = BackButton;
10
- const BackButtonWithBackground = ({ onPress, showX = false }) => ((0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { onPress: onPress, children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { backgroundColor: "white100", width: 40, height: 40, borderRadius: 20, alignItems: "center", justifyContent: "center", children: showX ? ((0, jsx_runtime_1.jsx)(svgs_1.CloseIcon, { fill: "onBackgroundHigh", width: 26, height: 26 })) : ((0, jsx_runtime_1.jsx)(svgs_1.ChevronIcon, { fill: "onBackgroundHigh", direction: "left" })) }) }));
10
+ const BackButtonWithBackground = ({ onPress, showX = false }) => ((0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { onPress: onPress, children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { backgroundColor: "background", width: 40, height: 40, borderRadius: 20, alignItems: "center", justifyContent: "center", children: showX ? ((0, jsx_runtime_1.jsx)(svgs_1.CloseIcon, { fill: "onBackgroundHigh", width: 26, height: 26 })) : ((0, jsx_runtime_1.jsx)(svgs_1.ChevronIcon, { fill: "onBackgroundHigh", direction: "left" })) }) }));
11
11
  exports.BackButtonWithBackground = BackButtonWithBackground;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: ({ onPress, showX }: import("./BackButton").BackButtonProps) => JSX.Element;
4
+ };
5
+ export default _default;
6
+ export declare const Styled: () => JSX.Element;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Styled = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const Flex_1 = require("../../atoms/Flex");
6
+ const Text_1 = require("../../elements/Text");
7
+ const storybookHelpers_1 = require("../../storybookHelpers");
8
+ const BackButton_1 = require("./BackButton");
9
+ exports.default = {
10
+ title: "BackButton",
11
+ component: BackButton_1.BackButton,
12
+ };
13
+ const Styled = () => ((0, jsx_runtime_1.jsxs)(storybookHelpers_1.List, { style: { marginLeft: 50 }, contentContainerStyle: { alignItems: "flex-start" }, children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { children: "Back button" }), (0, jsx_runtime_1.jsx)(BackButton_1.BackButton, {}), (0, jsx_runtime_1.jsx)(Text_1.Text, { children: "Back button with background" }), (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { backgroundColor: "red", width: 50, height: 50, position: "absolute" }), (0, jsx_runtime_1.jsx)(BackButton_1.BackButtonWithBackground, {})] })] }));
14
+ exports.Styled = Styled;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "install:all": "yarn install && yarn bundle-install && yarn pod-install",
@@ -75,9 +75,11 @@
75
75
  "eslint-plugin-import": "^2.26.0",
76
76
  "eslint-plugin-prettier": "^4.2.1",
77
77
  "jest": "^29.2.1",
78
+ "jotai": "^1.12.0",
78
79
  "metro-react-native-babel-preset": "^0.72.1",
79
80
  "react": "18.2.0",
80
81
  "react-native": "0.69.5",
82
+ "react-native-flipper": "^0.176.1",
81
83
  "react-native-haptic-feedback": "^1.14.0",
82
84
  "react-native-linear-gradient": "^2.6.2",
83
85
  "react-native-reanimated": "^2.12.0",
@@ -85,6 +87,7 @@
85
87
  "react-native-svg": "^13.4.0",
86
88
  "react-test-renderer": "^18.2.0",
87
89
  "rimraf": "^3.0.2",
90
+ "rn-flipper-async-storage-advanced": "^1.0.4",
88
91
  "typescript": "^4.8.4"
89
92
  },
90
93
  "files": [