emoji-picker-react 4.7.1 → 4.7.3

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.
@@ -7,7 +7,8 @@ declare type ClickableEmojiButtonProps = Readonly<{
7
7
  children: React.ReactNode;
8
8
  hasVariations: boolean;
9
9
  unified?: string;
10
- round?: boolean;
10
+ noBackground?: 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, noBackground }: ClickableEmojiButtonProps): JSX.Element;
13
14
  export {};
@@ -7,7 +7,7 @@ declare type ClickableEmojiProps = Readonly<BaseEmojiProps & {
7
7
  hiddenOnSearch?: boolean;
8
8
  emoji: DataEmoji;
9
9
  className?: string;
10
- round?: boolean;
10
+ noBackground?: 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, noBackground }: 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
- _ref$round = _ref.round,
17854
- round = _ref$round === void 0 ? false : _ref$round;
17853
+ className = _ref.className,
17854
+ _ref$noBackground = _ref.noBackground,
17855
+ noBackground = _ref$noBackground === void 0 ? false : _ref$noBackground;
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, noBackground && styles$1.noBackground, className),
17857
17858
  "data-unified": unified,
17858
17859
  "aria-label": emojiNames[0],
17859
17860
  "data-full-name": emojiNames
@@ -17881,8 +17882,16 @@ var styles$1 = /*#__PURE__*/stylesheet.create({
17881
17882
  backgroundColor: 'var(--epr-focus-bg-color)'
17882
17883
  }
17883
17884
  },
17884
- round: {
17885
- borderRadius: '50%'
17885
+ noBackground: {
17886
+ background: 'none',
17887
+ ':hover': {
17888
+ backgroundColor: 'transparent',
17889
+ background: 'none'
17890
+ },
17891
+ ':focus': {
17892
+ backgroundColor: 'transparent',
17893
+ background: 'none'
17894
+ }
17886
17895
  },
17887
17896
  hasVariations: {
17888
17897
  '.': ClassNames.emojiHasVariations,
@@ -18032,8 +18041,9 @@ function ClickableEmoji(_ref) {
18032
18041
  size = _ref.size,
18033
18042
  lazyLoad = _ref.lazyLoad,
18034
18043
  getEmojiUrl = _ref.getEmojiUrl,
18035
- _ref$round = _ref.round,
18036
- round = _ref$round === void 0 ? false : _ref$round;
18044
+ className = _ref.className,
18045
+ _ref$noBackground = _ref.noBackground,
18046
+ noBackground = _ref$noBackground === void 0 ? false : _ref$noBackground;
18037
18047
  var hasVariations = emojiHasVariations(emoji);
18038
18048
  return React.createElement(ClickableEmojiButton, {
18039
18049
  hasVariations: hasVariations,
@@ -18042,14 +18052,15 @@ function ClickableEmoji(_ref) {
18042
18052
  hiddenOnSearch: hiddenOnSearch,
18043
18053
  emojiNames: emojiNames(emoji),
18044
18054
  unified: unified,
18045
- round: round
18055
+ noBackground: noBackground
18046
18056
  }, React.createElement(ViewOnlyEmoji, {
18047
18057
  unified: unified,
18048
18058
  emoji: emoji,
18049
18059
  size: size,
18050
18060
  emojiStyle: emojiStyle,
18051
18061
  lazyLoad: lazyLoad,
18052
- getEmojiUrl: getEmojiUrl
18062
+ getEmojiUrl: getEmojiUrl,
18063
+ className: className
18053
18064
  }));
18054
18065
  }
18055
18066
 
@@ -18097,7 +18108,8 @@ var styles$4 = /*#__PURE__*/stylesheet.create({
18097
18108
  backgroundColor: 'var(--epr-hover-bg-color)',
18098
18109
  // @ts-ignore
18099
18110
  ':after': {
18100
- backgroundPositionY: '-20px'
18111
+ backgroundPositionY: '-20px',
18112
+ transform: 'scale(1.2)'
18101
18113
  }
18102
18114
  },
18103
18115
  ':focus': {
@@ -18154,7 +18166,8 @@ function Reactions() {
18154
18166
  emojiStyle: emojiStyle,
18155
18167
  unified: reaction,
18156
18168
  showVariations: false,
18157
- round: true
18169
+ className: flairup.cx(styles$5.emojiButton),
18170
+ noBackground: true
18158
18171
  }));
18159
18172
  }), React.createElement("li", null, React.createElement(BtnPlus, null)));
18160
18173
  }
@@ -18167,6 +18180,12 @@ var styles$5 = /*#__PURE__*/stylesheet.create({
18167
18180
  justifyContent: 'space-between',
18168
18181
  alignItems: 'center',
18169
18182
  height: '100%'
18183
+ },
18184
+ emojiButton: {
18185
+ ':hover': {
18186
+ transform: 'scale(1.2)'
18187
+ },
18188
+ transition: 'transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.5)'
18170
18189
  }
18171
18190
  });
18172
18191