@artsy/palette-mobile 11.0.13 → 11.0.15
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/Button/Button.js +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v11.0.15 (Fri Apr 14 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- fix(button): fix worklet crash error in eigen [#88](https://github.com/artsy/palette-mobile/pull/88) ([@damassi](https://github.com/damassi))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Christopher Pappas ([@damassi](https://github.com/damassi))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v11.0.14 (Fri Apr 14 2023)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- fix: reanimated button crash fix [#87](https://github.com/artsy/palette-mobile/pull/87) ([@gkartalis](https://github.com/gkartalis))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- George Kartalis ([@gkartalis](https://github.com/gkartalis))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v11.0.13 (Thu Apr 13 2023)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
|
@@ -89,6 +89,7 @@ const Button = ({ children, disabled: disabledProp, haptic, icon, iconPosition =
|
|
|
89
89
|
};
|
|
90
90
|
});
|
|
91
91
|
const textAnim = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
|
|
92
|
+
"worklet";
|
|
92
93
|
const colors = colorsForVariantAndState[variant];
|
|
93
94
|
if (loading) {
|
|
94
95
|
return { color: "rgba(0, 0, 0, 0)" };
|
|
@@ -118,6 +119,12 @@ const useStateWithProp = (prop) => {
|
|
|
118
119
|
(0, react_1.useEffect)(() => {
|
|
119
120
|
setState(!!prop);
|
|
120
121
|
}, [prop]);
|
|
121
|
-
const stateV = (0, react_native_reanimated_1.useDerivedValue)(() =>
|
|
122
|
+
const stateV = (0, react_native_reanimated_1.useDerivedValue)(() => {
|
|
123
|
+
"worklet";
|
|
124
|
+
if (!!state) {
|
|
125
|
+
return 1;
|
|
126
|
+
}
|
|
127
|
+
return 0;
|
|
128
|
+
}, [state]);
|
|
122
129
|
return [state, setState, stateV];
|
|
123
130
|
};
|