@artsy/palette-mobile 11.2.14 → 11.2.16
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/Pill/Pill.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v11.2.16 (Wed Aug 02 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- fix(Pill): animate moti using worklet [#135](https://github.com/artsy/palette-mobile/pull/135) ([@araujobarret](https://github.com/araujobarret))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Carlos Alberto de Araujo Barreto ([@araujobarret](https://github.com/araujobarret))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v11.2.15 (Wed Aug 02 2023)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- fix(Pill): remove animation from MotiPressable [#134](https://github.com/artsy/palette-mobile/pull/134) ([@araujobarret](https://github.com/araujobarret))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Carlos Alberto de Araujo Barreto ([@araujobarret](https://github.com/araujobarret))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v11.2.14 (Wed Aug 02 2023)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
|
@@ -41,6 +41,7 @@ const Pill = ({ variant = "default", src, selected, disabled, Icon, children, on
|
|
|
41
41
|
const stateString = selected ? "selected" : disabled ? "disabled" : "default";
|
|
42
42
|
const color = TEXT_COLOR[variant][stateString];
|
|
43
43
|
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { ...rest, children: (0, jsx_runtime_1.jsxs)(Container, { variant: variant, selected: selected, disabled: disabled, onPress: onPress, animate: (0, react_1.useMemo)(() => ({ hovered, pressed }) => {
|
|
44
|
+
"worklet";
|
|
44
45
|
return {
|
|
45
46
|
opacity: hovered || pressed ? 0.5 : 1,
|
|
46
47
|
};
|