emoji-picker-react 4.7.1 → 4.7.2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.7.1",
2
+ "version": "4.7.2",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -39,6 +39,7 @@ export function Reactions() {
39
39
  emojiStyle={emojiStyle}
40
40
  unified={reaction}
41
41
  showVariations={false}
42
+ className={cx(styles.emojiButton)}
42
43
  round
43
44
  />
44
45
  </li>
@@ -59,5 +60,12 @@ const styles = stylesheet.create({
59
60
  justifyContent: 'space-between',
60
61
  alignItems: 'center',
61
62
  height: '100%'
63
+ },
64
+ emojiButton: {
65
+ ':hover': {
66
+ transform: 'scale(1.2)'
67
+ },
68
+
69
+ transition: 'transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.5)'
62
70
  }
63
71
  });
@@ -18,6 +18,7 @@ type ClickableEmojiButtonProps = Readonly<{
18
18
  hasVariations: boolean;
19
19
  unified?: string;
20
20
  round?: boolean;
21
+ className?: string;
21
22
  }>;
22
23
 
23
24
  export function ClickableEmojiButton({
@@ -28,6 +29,7 @@ export function ClickableEmojiButton({
28
29
  showVariations = true,
29
30
  hasVariations,
30
31
  children,
32
+ className,
31
33
  round = false
32
34
  }: ClickableEmojiButtonProps) {
33
35
  return (
@@ -40,7 +42,8 @@ export function ClickableEmojiButton({
40
42
  [ClassNames.visible]: !hidden && !hiddenOnSearch
41
43
  },
42
44
  !!(hasVariations && showVariations) && styles.hasVariations,
43
- round && styles.round
45
+ round && styles.round,
46
+ className
44
47
  )}
45
48
  data-unified={unified}
46
49
  aria-label={emojiNames[0]}
@@ -28,6 +28,7 @@ export function ClickableEmoji({
28
28
  size,
29
29
  lazyLoad,
30
30
  getEmojiUrl,
31
+ className,
31
32
  round = false
32
33
  }: ClickableEmojiProps) {
33
34
  const hasVariations = emojiHasVariations(emoji);
@@ -49,6 +50,7 @@ export function ClickableEmoji({
49
50
  emojiStyle={emojiStyle}
50
51
  lazyLoad={lazyLoad}
51
52
  getEmojiUrl={getEmojiUrl}
53
+ className={className}
52
54
  />
53
55
  </ClickableEmojiButton>
54
56
  );