emoji-picker-react 4.7.8 → 4.7.9
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/Stylesheet/stylesheet.d.ts +17 -0
- package/dist/emoji-picker-react.cjs.development.js +25 -51
- 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 -51
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/Stylesheet/stylesheet.tsx +14 -1
- package/src/components/Reactions/BtnPlus.tsx +5 -15
- package/src/components/body/EmojiVariationPicker.tsx +4 -13
- package/src/components/header/Search/IcnSearch.tsx +4 -13
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.7.
|
|
2
|
+
"version": "4.7.9",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -98,6 +98,6 @@
|
|
|
98
98
|
"rollup-plugin-svg": "^2.0.0"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
|
-
"flairup": "0.0.
|
|
101
|
+
"flairup": "0.0.35"
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSheet } from 'flairup';
|
|
1
|
+
import { Styles, createSheet } from 'flairup';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
import { ClassNames } from '../DomUtils/classNames';
|
|
@@ -84,3 +84,16 @@ export const commonInteractionStyles = stylesheet.create({
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
|
+
|
|
88
|
+
export function darkMode(key: string, value: Styles) {
|
|
89
|
+
return {
|
|
90
|
+
'.epr-dark-theme': {
|
|
91
|
+
[key]: value
|
|
92
|
+
},
|
|
93
|
+
'.epr-auto-theme': {
|
|
94
|
+
[key]: {
|
|
95
|
+
'@media (prefers-color-scheme: dark)': value
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cx } from 'flairup';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
-
import { stylesheet } from '../../Stylesheet/stylesheet';
|
|
4
|
+
import { darkMode, stylesheet } from '../../Stylesheet/stylesheet';
|
|
5
5
|
import { Button } from '../atoms/Button';
|
|
6
6
|
import { useReactionsModeState } from '../context/PickerContext';
|
|
7
7
|
|
|
@@ -61,18 +61,8 @@ const styles = stylesheet.create({
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
'
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
'.epr-auto-theme': {
|
|
71
|
-
plusSign: {
|
|
72
|
-
'@media (prefers-color-scheme: dark)': {
|
|
73
|
-
':after': { backgroundPositionY: '-40px' },
|
|
74
|
-
':hover:after': { backgroundPositionY: '-60px' }
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
64
|
+
...darkMode('plusSign', {
|
|
65
|
+
':after': { backgroundPositionY: '-40px' },
|
|
66
|
+
':hover:after': { backgroundPositionY: '-60px' }
|
|
67
|
+
})
|
|
78
68
|
});
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
emojiTrueOffsetTop,
|
|
11
11
|
emojiTruOffsetLeft
|
|
12
12
|
} from '../../DomUtils/selectors';
|
|
13
|
-
import { stylesheet } from '../../Stylesheet/stylesheet';
|
|
13
|
+
import { darkMode, stylesheet } from '../../Stylesheet/stylesheet';
|
|
14
14
|
import {
|
|
15
15
|
useEmojiStyleConfig,
|
|
16
16
|
useGetEmojiUrlConfig
|
|
@@ -230,16 +230,7 @@ const styles = stylesheet.create({
|
|
|
230
230
|
transform: 'translateX(-18px)',
|
|
231
231
|
backgroundImage: `url(${SVGTriangle})`
|
|
232
232
|
},
|
|
233
|
-
'
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
'.epr-auto-theme': {
|
|
239
|
-
pointer: {
|
|
240
|
-
'@media (prefers-color-scheme: dark)': {
|
|
241
|
-
backgroundPosition: '-25px 0'
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
233
|
+
...darkMode('pointer', {
|
|
234
|
+
backgroundPosition: '-25px 0'
|
|
235
|
+
})
|
|
245
236
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cx } from 'flairup';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
-
import { stylesheet } from '../../../Stylesheet/stylesheet';
|
|
4
|
+
import { darkMode, stylesheet } from '../../../Stylesheet/stylesheet';
|
|
5
5
|
|
|
6
6
|
import SVGMagnifier from './svg/magnifier.svg';
|
|
7
7
|
|
|
@@ -24,16 +24,7 @@ const styles = stylesheet.create({
|
|
|
24
24
|
backgroundSize: '20px',
|
|
25
25
|
backgroundImage: `url(${SVGMagnifier})`
|
|
26
26
|
},
|
|
27
|
-
'
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
'.epr-auto-theme': {
|
|
33
|
-
icnSearch: {
|
|
34
|
-
'@media (prefers-color-scheme: dark)': {
|
|
35
|
-
backgroundPositionY: '-20px'
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
27
|
+
...darkMode('icnSearch', {
|
|
28
|
+
backgroundPositionY: '-20px'
|
|
29
|
+
})
|
|
39
30
|
});
|