emoji-picker-react 4.7.9 → 4.7.11
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 +2 -2
- package/dist/emoji-picker-react.cjs.development.js +33 -75
- 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 +34 -76
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/Stylesheet/stylesheet.tsx +3 -10
- package/src/components/header/Search/BtnClearSearch.tsx +5 -16
- package/src/components/header/Search/Search.tsx +8 -25
- package/src/components/navigation/CategoryButton.tsx +2 -4
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.7.
|
|
2
|
+
"version": "4.7.11",
|
|
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.37"
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -2,9 +2,8 @@ import { Styles, createSheet } from 'flairup';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
import { ClassNames } from '../DomUtils/classNames';
|
|
5
|
-
import { useIsEverMounted } from '../hooks/useIsEverMounted';
|
|
6
5
|
|
|
7
|
-
export const stylesheet = createSheet('epr');
|
|
6
|
+
export const stylesheet = createSheet('epr', null);
|
|
8
7
|
|
|
9
8
|
const hidden = {
|
|
10
9
|
display: 'none',
|
|
@@ -21,20 +20,14 @@ export const commonStyles = stylesheet.create({
|
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
22
|
|
|
24
|
-
export function PickerStyleTag() {
|
|
25
|
-
const isMounted = useIsEverMounted();
|
|
26
|
-
|
|
27
|
-
if (stylesheet.isApplied() && isMounted) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
|
|
23
|
+
export const PickerStyleTag = React.memo(function PickerStyleTag() {
|
|
31
24
|
return (
|
|
32
25
|
<style
|
|
33
26
|
suppressHydrationWarning
|
|
34
27
|
dangerouslySetInnerHTML={{ __html: stylesheet.getStyle() }}
|
|
35
28
|
/>
|
|
36
29
|
);
|
|
37
|
-
}
|
|
30
|
+
});
|
|
38
31
|
|
|
39
32
|
export const commonInteractionStyles = stylesheet.create({
|
|
40
33
|
'.epr-main': {
|
|
@@ -3,6 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
commonInteractionStyles,
|
|
6
|
+
darkMode,
|
|
6
7
|
stylesheet
|
|
7
8
|
} from '../../../Stylesheet/stylesheet';
|
|
8
9
|
import { useClearSearch } from '../../../hooks/useFilter';
|
|
@@ -72,20 +73,8 @@ const styles = stylesheet.create({
|
|
|
72
73
|
backgroundPositionY: '-20px'
|
|
73
74
|
}
|
|
74
75
|
},
|
|
75
|
-
'
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
btnClearSearch: HoverDark
|
|
80
|
-
},
|
|
81
|
-
'.epr-auto-theme': {
|
|
82
|
-
icnClearnSearch: {
|
|
83
|
-
'@media (prefers-color-scheme: dark)': {
|
|
84
|
-
backgroundPositionY: '-40px'
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
btnClearSearch: {
|
|
88
|
-
'@media (prefers-color-scheme: dark)': HoverDark
|
|
89
|
-
}
|
|
90
|
-
}
|
|
76
|
+
...darkMode('icnClearnSearch', {
|
|
77
|
+
backgroundPositionY: '-40px'
|
|
78
|
+
}),
|
|
79
|
+
...darkMode('btnClearSearch', HoverDark)
|
|
91
80
|
});
|
|
@@ -2,7 +2,7 @@ import { cx } from 'flairup';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import { stylesheet } from '../../../Stylesheet/stylesheet';
|
|
5
|
+
import { darkMode, stylesheet } from '../../../Stylesheet/stylesheet';
|
|
6
6
|
import {
|
|
7
7
|
useAutoFocusSearchConfig,
|
|
8
8
|
useSearchDisabledConfig,
|
|
@@ -161,29 +161,12 @@ const styles = stylesheet.create({
|
|
|
161
161
|
backgroundPositionY: '-20px'
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
|
-
'
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
backgroundPositionY: '-60px'
|
|
171
|
-
}
|
|
164
|
+
...darkMode('icnClearnSearch', {
|
|
165
|
+
backgroundPositionY: '-40px'
|
|
166
|
+
}),
|
|
167
|
+
...darkMode('btnClearSearch', {
|
|
168
|
+
':hover > .epr-icn-clear-search': {
|
|
169
|
+
backgroundPositionY: '-60px'
|
|
172
170
|
}
|
|
173
|
-
}
|
|
174
|
-
'.epr-auto-theme': {
|
|
175
|
-
icnClearnSearch: {
|
|
176
|
-
'@media (prefers-color-scheme: dark)': {
|
|
177
|
-
backgroundPositionY: '-40px'
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
btnClearSearch: {
|
|
181
|
-
'@media (prefers-color-scheme: dark)': {
|
|
182
|
-
// @ts-ignore
|
|
183
|
-
':hover > .epr-icn-clear-search': {
|
|
184
|
-
backgroundPositionY: '-60px'
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
171
|
+
})
|
|
189
172
|
});
|
|
@@ -4,6 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { ClassNames } from '../../DomUtils/classNames';
|
|
5
5
|
import {
|
|
6
6
|
commonInteractionStyles,
|
|
7
|
+
darkMode,
|
|
7
8
|
stylesheet
|
|
8
9
|
} from '../../Stylesheet/stylesheet';
|
|
9
10
|
import {
|
|
@@ -128,14 +129,11 @@ const styles = stylesheet.create({
|
|
|
128
129
|
'calc(var(--epr-category-navigation-button-size) * -3)'
|
|
129
130
|
}
|
|
130
131
|
},
|
|
132
|
+
...darkMode('catBtn', DarkPositionY),
|
|
131
133
|
'.epr-dark-theme': {
|
|
132
|
-
catBtn: DarkPositionY,
|
|
133
134
|
...DarkInactivePosition
|
|
134
135
|
},
|
|
135
136
|
'.epr-auto-theme': {
|
|
136
|
-
catBtn: {
|
|
137
|
-
'@media (prefers-color-scheme: dark)': DarkPositionY
|
|
138
|
-
},
|
|
139
137
|
...DarkInactivePosition
|
|
140
138
|
}
|
|
141
139
|
});
|