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
|
@@ -17850,10 +17850,10 @@ function ClickableEmojiButton(_ref) {
|
|
|
17850
17850
|
hasVariations = _ref.hasVariations,
|
|
17851
17851
|
children = _ref.children,
|
|
17852
17852
|
className = _ref.className,
|
|
17853
|
-
_ref$
|
|
17854
|
-
|
|
17853
|
+
_ref$noBackground = _ref.noBackground,
|
|
17854
|
+
noBackground = _ref$noBackground === void 0 ? false : _ref$noBackground;
|
|
17855
17855
|
return createElement(Button, {
|
|
17856
|
-
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),
|
|
17857
17857
|
"data-unified": unified,
|
|
17858
17858
|
"aria-label": emojiNames[0],
|
|
17859
17859
|
"data-full-name": emojiNames
|
|
@@ -17881,8 +17881,16 @@ var styles$1 = /*#__PURE__*/stylesheet.create({
|
|
|
17881
17881
|
backgroundColor: 'var(--epr-focus-bg-color)'
|
|
17882
17882
|
}
|
|
17883
17883
|
},
|
|
17884
|
-
|
|
17885
|
-
|
|
17884
|
+
noBackground: {
|
|
17885
|
+
background: 'none',
|
|
17886
|
+
':hover': {
|
|
17887
|
+
backgroundColor: 'transparent',
|
|
17888
|
+
background: 'none'
|
|
17889
|
+
},
|
|
17890
|
+
':focus': {
|
|
17891
|
+
backgroundColor: 'transparent',
|
|
17892
|
+
background: 'none'
|
|
17893
|
+
}
|
|
17886
17894
|
},
|
|
17887
17895
|
hasVariations: {
|
|
17888
17896
|
'.': ClassNames.emojiHasVariations,
|
|
@@ -18033,8 +18041,8 @@ function ClickableEmoji(_ref) {
|
|
|
18033
18041
|
lazyLoad = _ref.lazyLoad,
|
|
18034
18042
|
getEmojiUrl = _ref.getEmojiUrl,
|
|
18035
18043
|
className = _ref.className,
|
|
18036
|
-
_ref$
|
|
18037
|
-
|
|
18044
|
+
_ref$noBackground = _ref.noBackground,
|
|
18045
|
+
noBackground = _ref$noBackground === void 0 ? false : _ref$noBackground;
|
|
18038
18046
|
var hasVariations = emojiHasVariations(emoji);
|
|
18039
18047
|
return createElement(ClickableEmojiButton, {
|
|
18040
18048
|
hasVariations: hasVariations,
|
|
@@ -18043,7 +18051,7 @@ function ClickableEmoji(_ref) {
|
|
|
18043
18051
|
hiddenOnSearch: hiddenOnSearch,
|
|
18044
18052
|
emojiNames: emojiNames(emoji),
|
|
18045
18053
|
unified: unified,
|
|
18046
|
-
|
|
18054
|
+
noBackground: noBackground
|
|
18047
18055
|
}, createElement(ViewOnlyEmoji, {
|
|
18048
18056
|
unified: unified,
|
|
18049
18057
|
emoji: emoji,
|
|
@@ -18099,7 +18107,8 @@ var styles$4 = /*#__PURE__*/stylesheet.create({
|
|
|
18099
18107
|
backgroundColor: 'var(--epr-hover-bg-color)',
|
|
18100
18108
|
// @ts-ignore
|
|
18101
18109
|
':after': {
|
|
18102
|
-
backgroundPositionY: '-20px'
|
|
18110
|
+
backgroundPositionY: '-20px',
|
|
18111
|
+
transform: 'scale(1.2)'
|
|
18103
18112
|
}
|
|
18104
18113
|
},
|
|
18105
18114
|
':focus': {
|
|
@@ -18157,7 +18166,7 @@ function Reactions() {
|
|
|
18157
18166
|
unified: reaction,
|
|
18158
18167
|
showVariations: false,
|
|
18159
18168
|
className: cx(styles$5.emojiButton),
|
|
18160
|
-
|
|
18169
|
+
noBackground: true
|
|
18161
18170
|
}));
|
|
18162
18171
|
}), createElement("li", null, createElement(BtnPlus, null)));
|
|
18163
18172
|
}
|
|
@@ -18175,6 +18184,12 @@ var styles$5 = /*#__PURE__*/stylesheet.create({
|
|
|
18175
18184
|
':hover': {
|
|
18176
18185
|
transform: 'scale(1.2)'
|
|
18177
18186
|
},
|
|
18187
|
+
':focus': {
|
|
18188
|
+
transform: 'scale(1.2)'
|
|
18189
|
+
},
|
|
18190
|
+
':active': {
|
|
18191
|
+
transform: 'scale(1.1)'
|
|
18192
|
+
},
|
|
18178
18193
|
transition: 'transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.5)'
|
|
18179
18194
|
}
|
|
18180
18195
|
});
|