@artsy/palette-mobile 11.0.20 → 11.0.22

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 CHANGED
@@ -1,3 +1,31 @@
1
+ # v11.0.22 (Wed May 03 2023)
2
+
3
+ :tada: This release contains work from a new contributor! :tada:
4
+
5
+ Thank you, Brian Beckerle ([@brainbicycle](https://github.com/brainbicycle)), for all your work!
6
+
7
+ #### 🐛 Bug Fix
8
+
9
+ - fix: crash in eigen caused by tooltip [#96](https://github.com/artsy/palette-mobile/pull/96) ([@brainbicycle](https://github.com/brainbicycle))
10
+
11
+ #### Authors: 1
12
+
13
+ - Brian Beckerle ([@brainbicycle](https://github.com/brainbicycle))
14
+
15
+ ---
16
+
17
+ # v11.0.21 (Wed May 03 2023)
18
+
19
+ #### 🐛 Bug Fix
20
+
21
+ - fix(import): fix super relative imports [#95](https://github.com/artsy/palette-mobile/pull/95) ([@damassi](https://github.com/damassi))
22
+
23
+ #### Authors: 1
24
+
25
+ - Christopher Pappas ([@damassi](https://github.com/damassi))
26
+
27
+ ---
28
+
1
29
  # v11.0.20 (Mon May 01 2023)
2
30
 
3
31
  #### 🐛 Bug Fix
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ButtonProps } from ".";
2
+ import { ButtonProps } from "../Button";
3
3
  type FollowButtonProps = Omit<ButtonProps, "variant" | "size" | "longestText" | "icon" | "children"> & {
4
4
  isFollowed: boolean;
5
5
  };
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FollowButton = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const _1 = require(".");
6
5
  const CheckIcon_1 = require("../../svgs/CheckIcon");
6
+ const Button_1 = require("../Button");
7
7
  const FollowButton = ({ isFollowed, ...restProps }) => {
8
- return ((0, jsx_runtime_1.jsx)(_1.Button, { variant: isFollowed ? "outline" : "outlineGray", size: "small", longestText: "Following", icon: isFollowed && (0, jsx_runtime_1.jsx)(CheckIcon_1.CheckIcon, { fill: "black60", width: "16px", height: "16px" }), ...restProps, children: isFollowed ? "Following" : "Follow" }));
8
+ return ((0, jsx_runtime_1.jsx)(Button_1.Button, { variant: isFollowed ? "outline" : "outlineGray", size: "small", longestText: "Following", icon: isFollowed && (0, jsx_runtime_1.jsx)(CheckIcon_1.CheckIcon, { fill: "black60", width: "16px", height: "16px" }), ...restProps, children: isFollowed ? "Following" : "Follow" }));
9
9
  };
10
10
  exports.FollowButton = FollowButton;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LinkButton = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const __1 = require("..");
6
5
  const Text_1 = require("../Text");
7
- const LinkButton = (props) => ((0, jsx_runtime_1.jsx)(__1.Touchable, { onPress: props.onPress, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { underline: true, ...props }) }));
6
+ const Touchable_1 = require("../Touchable");
7
+ const LinkButton = (props) => ((0, jsx_runtime_1.jsx)(Touchable_1.Touchable, { onPress: props.onPress, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { underline: true, ...props }) }));
8
8
  exports.LinkButton = LinkButton;
@@ -34,14 +34,17 @@ const Text_1 = require("../Text");
34
34
  const ToolTipFlyout = ({ containerStyle, tapToDismiss, height, width, onClose, onToolTipPress, testID, text, }) => {
35
35
  const initialBoxDimensions = { height: 0, width: 0 };
36
36
  const boxDimensions = (0, react_native_reanimated_1.useSharedValue)(initialBoxDimensions);
37
- const animationStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => ({
38
- height: (0, react_native_reanimated_1.withTiming)(boxDimensions.value.height, {
39
- duration: 500,
40
- }),
41
- width: (0, react_native_reanimated_1.withTiming)(boxDimensions.value.width, {
42
- duration: 500,
43
- }),
44
- }));
37
+ const animationStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
38
+ "worklet";
39
+ return {
40
+ height: (0, react_native_reanimated_1.withTiming)(boxDimensions.value.height, {
41
+ duration: 500,
42
+ }),
43
+ width: (0, react_native_reanimated_1.withTiming)(boxDimensions.value.width, {
44
+ duration: 500,
45
+ }),
46
+ };
47
+ });
45
48
  (0, react_1.useEffect)(() => {
46
49
  if (text) {
47
50
  boxDimensions.value = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "11.0.20",
3
+ "version": "11.0.22",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "react-native run-android",