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.
@@ -8,6 +8,7 @@ declare type ClickableEmojiButtonProps = Readonly<{
8
8
  hasVariations: boolean;
9
9
  unified?: string;
10
10
  round?: boolean;
11
+ className?: string;
11
12
  }>;
12
- export declare function ClickableEmojiButton({ emojiNames, unified, hidden, hiddenOnSearch, showVariations, hasVariations, children, round }: ClickableEmojiButtonProps): JSX.Element;
13
+ export declare function ClickableEmojiButton({ emojiNames, unified, hidden, hiddenOnSearch, showVariations, hasVariations, children, className, round }: ClickableEmojiButtonProps): JSX.Element;
13
14
  export {};
@@ -9,5 +9,5 @@ declare type ClickableEmojiProps = Readonly<BaseEmojiProps & {
9
9
  className?: string;
10
10
  round?: boolean;
11
11
  }>;
12
- export declare function ClickableEmoji({ emoji, unified, hidden, hiddenOnSearch, emojiStyle, showVariations, size, lazyLoad, getEmojiUrl, round }: ClickableEmojiProps): JSX.Element;
12
+ export declare function ClickableEmoji({ emoji, unified, hidden, hiddenOnSearch, emojiStyle, showVariations, size, lazyLoad, getEmojiUrl, className, round }: ClickableEmojiProps): JSX.Element;
13
13
  export {};
@@ -17850,10 +17850,11 @@ function ClickableEmojiButton(_ref) {
17850
17850
  showVariations = _ref$showVariations === void 0 ? true : _ref$showVariations,
17851
17851
  hasVariations = _ref.hasVariations,
17852
17852
  children = _ref.children,
17853
+ className = _ref.className,
17853
17854
  _ref$round = _ref.round,
17854
17855
  round = _ref$round === void 0 ? false : _ref$round;
17855
17856
  return React.createElement(Button, {
17856
- className: flairup.cx(styles$1.emoji, hidden && commonStyles.hidden, hiddenOnSearch && commonInteractionStyles.hiddenOnSearch, (_cx = {}, _cx[ClassNames.visible] = !hidden && !hiddenOnSearch, _cx), !!(hasVariations && showVariations) && styles$1.hasVariations, round && styles$1.round),
17857
+ className: flairup.cx(styles$1.emoji, hidden && commonStyles.hidden, hiddenOnSearch && commonInteractionStyles.hiddenOnSearch, (_cx = {}, _cx[ClassNames.visible] = !hidden && !hiddenOnSearch, _cx), !!(hasVariations && showVariations) && styles$1.hasVariations, round && styles$1.round, className),
17857
17858
  "data-unified": unified,
17858
17859
  "aria-label": emojiNames[0],
17859
17860
  "data-full-name": emojiNames
@@ -18032,6 +18033,7 @@ function ClickableEmoji(_ref) {
18032
18033
  size = _ref.size,
18033
18034
  lazyLoad = _ref.lazyLoad,
18034
18035
  getEmojiUrl = _ref.getEmojiUrl,
18036
+ className = _ref.className,
18035
18037
  _ref$round = _ref.round,
18036
18038
  round = _ref$round === void 0 ? false : _ref$round;
18037
18039
  var hasVariations = emojiHasVariations(emoji);
@@ -18049,7 +18051,8 @@ function ClickableEmoji(_ref) {
18049
18051
  size: size,
18050
18052
  emojiStyle: emojiStyle,
18051
18053
  lazyLoad: lazyLoad,
18052
- getEmojiUrl: getEmojiUrl
18054
+ getEmojiUrl: getEmojiUrl,
18055
+ className: className
18053
18056
  }));
18054
18057
  }
18055
18058
 
@@ -18154,6 +18157,7 @@ function Reactions() {
18154
18157
  emojiStyle: emojiStyle,
18155
18158
  unified: reaction,
18156
18159
  showVariations: false,
18160
+ className: flairup.cx(styles$5.emojiButton),
18157
18161
  round: true
18158
18162
  }));
18159
18163
  }), React.createElement("li", null, React.createElement(BtnPlus, null)));
@@ -18167,6 +18171,12 @@ var styles$5 = /*#__PURE__*/stylesheet.create({
18167
18171
  justifyContent: 'space-between',
18168
18172
  alignItems: 'center',
18169
18173
  height: '100%'
18174
+ },
18175
+ emojiButton: {
18176
+ ':hover': {
18177
+ transform: 'scale(1.2)'
18178
+ },
18179
+ transition: 'transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.5)'
18170
18180
  }
18171
18181
  });
18172
18182