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