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.
- package/dist/components/emoji/ClickableEmojiButton.d.ts +3 -2
- package/dist/components/emoji/Emoji.d.ts +2 -2
- package/dist/emoji-picker-react.cjs.development.js +30 -11
- 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 +30 -11
- 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 +9 -1
- package/src/components/emoji/ClickableEmojiButton.tsx +16 -5
- package/src/components/emoji/Emoji.tsx +5 -3
|
@@ -17849,10 +17849,11 @@ function ClickableEmojiButton(_ref) {
|
|
|
17849
17849
|
showVariations = _ref$showVariations === void 0 ? true : _ref$showVariations,
|
|
17850
17850
|
hasVariations = _ref.hasVariations,
|
|
17851
17851
|
children = _ref.children,
|
|
17852
|
-
|
|
17853
|
-
|
|
17852
|
+
className = _ref.className,
|
|
17853
|
+
_ref$noBackground = _ref.noBackground,
|
|
17854
|
+
noBackground = _ref$noBackground === void 0 ? false : _ref$noBackground;
|
|
17854
17855
|
return createElement(Button, {
|
|
17855
|
-
className: cx(styles$1.emoji, hidden && commonStyles.hidden, hiddenOnSearch && commonInteractionStyles.hiddenOnSearch, (_cx = {}, _cx[ClassNames.visible] = !hidden && !hiddenOnSearch, _cx), !!(hasVariations && showVariations) && styles$1.hasVariations,
|
|
17856
|
+
className: 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),
|
|
17856
17857
|
"data-unified": unified,
|
|
17857
17858
|
"aria-label": emojiNames[0],
|
|
17858
17859
|
"data-full-name": emojiNames
|
|
@@ -17880,8 +17881,16 @@ var styles$1 = /*#__PURE__*/stylesheet.create({
|
|
|
17880
17881
|
backgroundColor: 'var(--epr-focus-bg-color)'
|
|
17881
17882
|
}
|
|
17882
17883
|
},
|
|
17883
|
-
|
|
17884
|
-
|
|
17884
|
+
noBackground: {
|
|
17885
|
+
background: 'none',
|
|
17886
|
+
':hover': {
|
|
17887
|
+
backgroundColor: 'transparent',
|
|
17888
|
+
background: 'none'
|
|
17889
|
+
},
|
|
17890
|
+
':focus': {
|
|
17891
|
+
backgroundColor: 'transparent',
|
|
17892
|
+
background: 'none'
|
|
17893
|
+
}
|
|
17885
17894
|
},
|
|
17886
17895
|
hasVariations: {
|
|
17887
17896
|
'.': ClassNames.emojiHasVariations,
|
|
@@ -18031,8 +18040,9 @@ function ClickableEmoji(_ref) {
|
|
|
18031
18040
|
size = _ref.size,
|
|
18032
18041
|
lazyLoad = _ref.lazyLoad,
|
|
18033
18042
|
getEmojiUrl = _ref.getEmojiUrl,
|
|
18034
|
-
|
|
18035
|
-
|
|
18043
|
+
className = _ref.className,
|
|
18044
|
+
_ref$noBackground = _ref.noBackground,
|
|
18045
|
+
noBackground = _ref$noBackground === void 0 ? false : _ref$noBackground;
|
|
18036
18046
|
var hasVariations = emojiHasVariations(emoji);
|
|
18037
18047
|
return createElement(ClickableEmojiButton, {
|
|
18038
18048
|
hasVariations: hasVariations,
|
|
@@ -18041,14 +18051,15 @@ function ClickableEmoji(_ref) {
|
|
|
18041
18051
|
hiddenOnSearch: hiddenOnSearch,
|
|
18042
18052
|
emojiNames: emojiNames(emoji),
|
|
18043
18053
|
unified: unified,
|
|
18044
|
-
|
|
18054
|
+
noBackground: noBackground
|
|
18045
18055
|
}, createElement(ViewOnlyEmoji, {
|
|
18046
18056
|
unified: unified,
|
|
18047
18057
|
emoji: emoji,
|
|
18048
18058
|
size: size,
|
|
18049
18059
|
emojiStyle: emojiStyle,
|
|
18050
18060
|
lazyLoad: lazyLoad,
|
|
18051
|
-
getEmojiUrl: getEmojiUrl
|
|
18061
|
+
getEmojiUrl: getEmojiUrl,
|
|
18062
|
+
className: className
|
|
18052
18063
|
}));
|
|
18053
18064
|
}
|
|
18054
18065
|
|
|
@@ -18096,7 +18107,8 @@ var styles$4 = /*#__PURE__*/stylesheet.create({
|
|
|
18096
18107
|
backgroundColor: 'var(--epr-hover-bg-color)',
|
|
18097
18108
|
// @ts-ignore
|
|
18098
18109
|
':after': {
|
|
18099
|
-
backgroundPositionY: '-20px'
|
|
18110
|
+
backgroundPositionY: '-20px',
|
|
18111
|
+
transform: 'scale(1.2)'
|
|
18100
18112
|
}
|
|
18101
18113
|
},
|
|
18102
18114
|
':focus': {
|
|
@@ -18153,7 +18165,8 @@ function Reactions() {
|
|
|
18153
18165
|
emojiStyle: emojiStyle,
|
|
18154
18166
|
unified: reaction,
|
|
18155
18167
|
showVariations: false,
|
|
18156
|
-
|
|
18168
|
+
className: cx(styles$5.emojiButton),
|
|
18169
|
+
noBackground: true
|
|
18157
18170
|
}));
|
|
18158
18171
|
}), createElement("li", null, createElement(BtnPlus, null)));
|
|
18159
18172
|
}
|
|
@@ -18166,6 +18179,12 @@ var styles$5 = /*#__PURE__*/stylesheet.create({
|
|
|
18166
18179
|
justifyContent: 'space-between',
|
|
18167
18180
|
alignItems: 'center',
|
|
18168
18181
|
height: '100%'
|
|
18182
|
+
},
|
|
18183
|
+
emojiButton: {
|
|
18184
|
+
':hover': {
|
|
18185
|
+
transform: 'scale(1.2)'
|
|
18186
|
+
},
|
|
18187
|
+
transition: 'transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.5)'
|
|
18169
18188
|
}
|
|
18170
18189
|
});
|
|
18171
18190
|
|