emoji-picker-react 4.19.4 → 4.20.0
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/emoji-picker-react.cjs.development.js +11 -2
- 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 +11 -2
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/atoms/Button.tsx +6 -1
- package/src/components/emoji/NativeEmoji.tsx +5 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.
|
|
2
|
+
"version": "4.20.0",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -116,6 +116,6 @@
|
|
|
116
116
|
"vitest": "^2.0.5"
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"flairup": "1.
|
|
119
|
+
"flairup": "1.1.1"
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -27,7 +27,12 @@ const styles = stylesheet.create({
|
|
|
27
27
|
'.': 'epr-btn',
|
|
28
28
|
cursor: 'pointer',
|
|
29
29
|
border: '0',
|
|
30
|
-
background: 'none'
|
|
30
|
+
// Longhand, not `background: 'none'`: a shorthand reset shares its
|
|
31
|
+
// conflict keys with every background longhand, so cx() would drop
|
|
32
|
+
// this whole class wherever a later class sets background-image
|
|
33
|
+
// (e.g. the category nav sprite) and the native button face would
|
|
34
|
+
// show through.
|
|
35
|
+
backgroundColor: 'transparent',
|
|
31
36
|
outline: 'none',
|
|
32
37
|
},
|
|
33
38
|
});
|
|
@@ -18,9 +18,12 @@ export function NativeEmoji({
|
|
|
18
18
|
return (
|
|
19
19
|
<span
|
|
20
20
|
className={cx(
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
// Order matters: cx() lets the later class win same-property
|
|
22
|
+
// conflicts, so the zeroing reset must come first and the real
|
|
23
|
+
// font-size last — otherwise the emoji renders at 0px.
|
|
23
24
|
emojiStyles.external,
|
|
25
|
+
emojiStyles.common,
|
|
26
|
+
styles.nativeEmoji,
|
|
24
27
|
className,
|
|
25
28
|
)}
|
|
26
29
|
data-unified={unified}
|