@artsy/palette-mobile 13.0.10 → 13.0.12
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 +24 -0
- package/dist/elements/Popover/Popover.js +4 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v13.0.12 (Tue Sep 19 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- feat: change port to avoid conflict with Eigen [#152](https://github.com/artsy/palette-mobile/pull/152) ([@anandaroop](https://github.com/anandaroop))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Anandaroop Roy ([@anandaroop](https://github.com/anandaroop))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v13.0.11 (Tue Sep 19 2023)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- fix: progressive onboarding positioning on android [#153](https://github.com/artsy/palette-mobile/pull/153) ([@MounirDhahri](https://github.com/MounirDhahri))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Mounir Dhahri ([@MounirDhahri](https://github.com/MounirDhahri))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v13.0.10 (Mon Sep 18 2023)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.POPOVER_VARIANTS = exports.Popover = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const palette_tokens_1 = require("@artsy/palette-tokens");
|
|
9
|
+
const react_native_1 = require("react-native");
|
|
9
10
|
const react_native_popover_view_1 = __importDefault(require("react-native-popover-view"));
|
|
10
11
|
const react_native_reanimated_1 = require("react-native-reanimated");
|
|
11
12
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
@@ -14,7 +15,9 @@ const Flex_1 = require("../Flex");
|
|
|
14
15
|
const Touchable_1 = require("../Touchable");
|
|
15
16
|
const Popover = ({ variant = "dark", children, visible, onPressOutside, onDismiss, onCloseComplete, placement = "top", title, content, noCloseIcon, }) => {
|
|
16
17
|
const style = exports.POPOVER_VARIANTS[variant];
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(react_native_popover_view_1.default, { backgroundStyle: { opacity: 0.5, backgroundColor: palette_tokens_1.THEME.colors["black100"] }, popoverStyle: [{ backgroundColor: style.backgroundColor }, style.shadow], from: children, isVisible: visible,
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(react_native_popover_view_1.default, { backgroundStyle: { opacity: 0.5, backgroundColor: palette_tokens_1.THEME.colors["black100"] }, popoverStyle: [{ backgroundColor: style.backgroundColor }, style.shadow], from: children, isVisible: visible,
|
|
19
|
+
// this is required to make sure that the popover is positioned correctly on android
|
|
20
|
+
verticalOffset: react_native_1.Platform.OS === "android" ? -(react_native_1.StatusBar.currentHeight ?? 0) : 0, onCloseComplete: onCloseComplete, onRequestClose: onPressOutside, placement: placement, arrowSize: { height: 11, width: 22 }, animationConfig: {
|
|
18
21
|
duration: 400,
|
|
19
22
|
easing: react_native_reanimated_1.Easing.out(react_native_reanimated_1.Easing.exp),
|
|
20
23
|
}, children: (0, jsx_runtime_1.jsxs)(Container, { variant: variant, p: 1, children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", justifyContent: "space-between", alignItems: "center", children: [title ? title : (0, jsx_runtime_1.jsx)(Flex_1.Flex, {}), !noCloseIcon && ((0, jsx_runtime_1.jsx)(Touchable_1.Touchable, { onPress: onDismiss, children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { ml: 0.5, children: (0, jsx_runtime_1.jsx)(svgs_1.CloseIcon, { width: 18, height: 18, fill: style.fill }) }) }))] }), content] }) }));
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artsy/palette-mobile",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.12",
|
|
4
4
|
"description": "Artsy's design system for React Native",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"android": "react-native run-android",
|
|
6
|
+
"android": "RCT_METRO_PORT=8082 react-native run-android --port 8082",
|
|
7
7
|
"beta:ios": "bundle e fastlane ios beta",
|
|
8
8
|
"bundle-install": "bundle install",
|
|
9
9
|
"clean": "rimraf dist",
|
|
10
10
|
"compile": "tsc",
|
|
11
11
|
"install:all": "yarn install && yarn bundle-install && yarn pod-install",
|
|
12
|
-
"ios": "react-native run-ios",
|
|
12
|
+
"ios": "RCT_METRO_PORT=8082 react-native run-ios --port 8082",
|
|
13
13
|
"lint:all": "yarn lint .",
|
|
14
14
|
"lint": "eslint --cache --cache-location '.cache/eslint/' --ext .ts,.tsx --fix",
|
|
15
15
|
"local-palette-dev": "./scripts/sync-after-change",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"release:canary": "auto canary",
|
|
23
23
|
"release": "auto shipit",
|
|
24
24
|
"setup:artsy": "./scripts/download-fonts",
|
|
25
|
-
"start:reset-cache": "react-native start --reset-cache",
|
|
26
|
-
"start": "react-native start",
|
|
25
|
+
"start:reset-cache": "react-native start --reset-cache --port 8082",
|
|
26
|
+
"start": "react-native start --port 8082",
|
|
27
27
|
"storybook-watcher": "sb-rn-watcher",
|
|
28
28
|
"test": "jest",
|
|
29
29
|
"type-check": "tsc --noEmit"
|