emoji-picker-react 4.7.2 → 4.7.4
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/dist/components/emoji/ClickableEmojiButton.d.ts +2 -2
- package/dist/components/emoji/Emoji.d.ts +2 -2
- package/dist/emoji-picker-react.cjs.development.js +25 -10
- package/dist/emoji-picker-react.cjs.development.js.map +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js.map +1 -1
- package/dist/emoji-picker-react.esm.js +25 -10
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Reactions/BtnPlus.tsx +2 -1
- package/src/components/Reactions/Reactions.tsx +7 -2
- package/src/components/emoji/ClickableEmojiButton.tsx +13 -5
- package/src/components/emoji/Emoji.tsx +3 -3
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@ export function Reactions() {
|
|
|
40
40
|
unified={reaction}
|
|
41
41
|
showVariations={false}
|
|
42
42
|
className={cx(styles.emojiButton)}
|
|
43
|
-
|
|
43
|
+
noBackground
|
|
44
44
|
/>
|
|
45
45
|
</li>
|
|
46
46
|
))}
|
|
@@ -65,7 +65,12 @@ const styles = stylesheet.create({
|
|
|
65
65
|
':hover': {
|
|
66
66
|
transform: 'scale(1.2)'
|
|
67
67
|
},
|
|
68
|
-
|
|
68
|
+
':focus': {
|
|
69
|
+
transform: 'scale(1.2)'
|
|
70
|
+
},
|
|
71
|
+
':active': {
|
|
72
|
+
transform: 'scale(1.1)'
|
|
73
|
+
},
|
|
69
74
|
transition: 'transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.5)'
|
|
70
75
|
}
|
|
71
76
|
});
|
|
@@ -17,7 +17,7 @@ type ClickableEmojiButtonProps = Readonly<{
|
|
|
17
17
|
children: React.ReactNode;
|
|
18
18
|
hasVariations: boolean;
|
|
19
19
|
unified?: string;
|
|
20
|
-
|
|
20
|
+
noBackground?: boolean;
|
|
21
21
|
className?: string;
|
|
22
22
|
}>;
|
|
23
23
|
|
|
@@ -30,7 +30,7 @@ export function ClickableEmojiButton({
|
|
|
30
30
|
hasVariations,
|
|
31
31
|
children,
|
|
32
32
|
className,
|
|
33
|
-
|
|
33
|
+
noBackground = false
|
|
34
34
|
}: ClickableEmojiButtonProps) {
|
|
35
35
|
return (
|
|
36
36
|
<Button
|
|
@@ -42,7 +42,7 @@ export function ClickableEmojiButton({
|
|
|
42
42
|
[ClassNames.visible]: !hidden && !hiddenOnSearch
|
|
43
43
|
},
|
|
44
44
|
!!(hasVariations && showVariations) && styles.hasVariations,
|
|
45
|
-
|
|
45
|
+
noBackground && styles.noBackground,
|
|
46
46
|
className
|
|
47
47
|
)}
|
|
48
48
|
data-unified={unified}
|
|
@@ -76,8 +76,16 @@ const styles = stylesheet.create({
|
|
|
76
76
|
backgroundColor: 'var(--epr-focus-bg-color)'
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
noBackground: {
|
|
80
|
+
background: 'none',
|
|
81
|
+
':hover': {
|
|
82
|
+
backgroundColor: 'transparent',
|
|
83
|
+
background: 'none'
|
|
84
|
+
},
|
|
85
|
+
':focus': {
|
|
86
|
+
backgroundColor: 'transparent',
|
|
87
|
+
background: 'none'
|
|
88
|
+
}
|
|
81
89
|
},
|
|
82
90
|
hasVariations: {
|
|
83
91
|
'.': ClassNames.emojiHasVariations,
|
|
@@ -14,7 +14,7 @@ type ClickableEmojiProps = Readonly<
|
|
|
14
14
|
hiddenOnSearch?: boolean;
|
|
15
15
|
emoji: DataEmoji;
|
|
16
16
|
className?: string;
|
|
17
|
-
|
|
17
|
+
noBackground?: boolean;
|
|
18
18
|
}
|
|
19
19
|
>;
|
|
20
20
|
|
|
@@ -29,7 +29,7 @@ export function ClickableEmoji({
|
|
|
29
29
|
lazyLoad,
|
|
30
30
|
getEmojiUrl,
|
|
31
31
|
className,
|
|
32
|
-
|
|
32
|
+
noBackground = false
|
|
33
33
|
}: ClickableEmojiProps) {
|
|
34
34
|
const hasVariations = emojiHasVariations(emoji);
|
|
35
35
|
|
|
@@ -41,7 +41,7 @@ export function ClickableEmoji({
|
|
|
41
41
|
hiddenOnSearch={hiddenOnSearch}
|
|
42
42
|
emojiNames={emojiNames(emoji)}
|
|
43
43
|
unified={unified}
|
|
44
|
-
|
|
44
|
+
noBackground={noBackground}
|
|
45
45
|
>
|
|
46
46
|
<ViewOnlyEmoji
|
|
47
47
|
unified={unified}
|