emoji-picker-react 4.7.8 → 4.7.10
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 +43 -107
- 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 +43 -107
- 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/BtnClearSearch.tsx +5 -16
- package/src/components/header/Search/IcnSearch.tsx +4 -13
- package/src/components/header/Search/Search.tsx +8 -25
- package/src/components/navigation/CategoryButton.tsx +2 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Styles } from 'flairup';
|
|
2
3
|
export declare const stylesheet: {
|
|
3
4
|
create: <K extends string>(styles: Partial<{ [k in K]: Partial<Partial<CSSStyleDeclaration> & Partial<{
|
|
4
5
|
'.'?: string | string[] | undefined;
|
|
@@ -10,3 +11,19 @@ export declare const stylesheet: {
|
|
|
10
11
|
export declare const commonStyles: Record<never, Set<string>>;
|
|
11
12
|
export declare function PickerStyleTag(): JSX.Element | null;
|
|
12
13
|
export declare const commonInteractionStyles: Record<never, Set<string>>;
|
|
14
|
+
export declare function darkMode(key: string, value: Styles): {
|
|
15
|
+
'.epr-dark-theme': {
|
|
16
|
+
[x: string]: Partial<Partial<CSSStyleDeclaration> & Partial<{
|
|
17
|
+
'.'?: string | string[] | undefined;
|
|
18
|
+
'--'?: any;
|
|
19
|
+
}>>;
|
|
20
|
+
};
|
|
21
|
+
'.epr-auto-theme': {
|
|
22
|
+
[x: string]: {
|
|
23
|
+
'@media (prefers-color-scheme: dark)': Partial<Partial<CSSStyleDeclaration> & Partial<{
|
|
24
|
+
'.'?: string | string[] | undefined;
|
|
25
|
+
'--'?: any;
|
|
26
|
+
}>>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -193,6 +193,15 @@ var commonInteractionStyles = /*#__PURE__*/stylesheet.create({
|
|
|
193
193
|
}, hidden)
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
|
+
function darkMode(key, value) {
|
|
197
|
+
var _eprDarkTheme, _eprAutoTheme;
|
|
198
|
+
return {
|
|
199
|
+
'.epr-dark-theme': (_eprDarkTheme = {}, _eprDarkTheme[key] = value, _eprDarkTheme),
|
|
200
|
+
'.epr-auto-theme': (_eprAutoTheme = {}, _eprAutoTheme[key] = {
|
|
201
|
+
'@media (prefers-color-scheme: dark)': value
|
|
202
|
+
}, _eprAutoTheme)
|
|
203
|
+
};
|
|
204
|
+
}
|
|
196
205
|
|
|
197
206
|
var DEFAULT_REACTIONS = ['1f44d', '2764-fe0f', '1f603', '1f622', '1f64f', '1f44e', '1f621' // 😡
|
|
198
207
|
];
|
|
@@ -18081,7 +18090,7 @@ function BtnPlus() {
|
|
|
18081
18090
|
}
|
|
18082
18091
|
});
|
|
18083
18092
|
}
|
|
18084
|
-
var styles$4 = /*#__PURE__*/stylesheet.create({
|
|
18093
|
+
var styles$4 = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
18085
18094
|
plusSign: {
|
|
18086
18095
|
fontSize: '20px',
|
|
18087
18096
|
padding: '17px',
|
|
@@ -18121,30 +18130,15 @@ var styles$4 = /*#__PURE__*/stylesheet.create({
|
|
|
18121
18130
|
backgroundPositionY: '-40px'
|
|
18122
18131
|
}
|
|
18123
18132
|
}
|
|
18133
|
+
}
|
|
18134
|
+
}, /*#__PURE__*/darkMode('plusSign', {
|
|
18135
|
+
':after': {
|
|
18136
|
+
backgroundPositionY: '-40px'
|
|
18124
18137
|
},
|
|
18125
|
-
'
|
|
18126
|
-
|
|
18127
|
-
':after': {
|
|
18128
|
-
backgroundPositionY: '-40px'
|
|
18129
|
-
},
|
|
18130
|
-
':hover:after': {
|
|
18131
|
-
backgroundPositionY: '-60px'
|
|
18132
|
-
}
|
|
18133
|
-
}
|
|
18134
|
-
},
|
|
18135
|
-
'.epr-auto-theme': {
|
|
18136
|
-
plusSign: {
|
|
18137
|
-
'@media (prefers-color-scheme: dark)': {
|
|
18138
|
-
':after': {
|
|
18139
|
-
backgroundPositionY: '-40px'
|
|
18140
|
-
},
|
|
18141
|
-
':hover:after': {
|
|
18142
|
-
backgroundPositionY: '-60px'
|
|
18143
|
-
}
|
|
18144
|
-
}
|
|
18145
|
-
}
|
|
18138
|
+
':hover:after': {
|
|
18139
|
+
backgroundPositionY: '-60px'
|
|
18146
18140
|
}
|
|
18147
|
-
});
|
|
18141
|
+
})));
|
|
18148
18142
|
|
|
18149
18143
|
function Reactions() {
|
|
18150
18144
|
var _useReactionsModeStat = useReactionsModeState(),
|
|
@@ -18850,7 +18844,7 @@ function useVariationPickerTop(VariationPickerRef) {
|
|
|
18850
18844
|
return emojiOffsetTop - height;
|
|
18851
18845
|
}
|
|
18852
18846
|
}
|
|
18853
|
-
var styles$8 = /*#__PURE__*/stylesheet.create({
|
|
18847
|
+
var styles$8 = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
18854
18848
|
variationPicker: {
|
|
18855
18849
|
'.': ClassNames.variationPicker,
|
|
18856
18850
|
position: 'absolute',
|
|
@@ -18902,20 +18896,10 @@ var styles$8 = /*#__PURE__*/stylesheet.create({
|
|
|
18902
18896
|
top: '100%',
|
|
18903
18897
|
transform: 'translateX(-18px)',
|
|
18904
18898
|
backgroundImage: "url(" + SVGTriangle + ")"
|
|
18905
|
-
},
|
|
18906
|
-
'.epr-dark-theme': {
|
|
18907
|
-
pointer: {
|
|
18908
|
-
backgroundPosition: '-25px 0'
|
|
18909
|
-
}
|
|
18910
|
-
},
|
|
18911
|
-
'.epr-auto-theme': {
|
|
18912
|
-
pointer: {
|
|
18913
|
-
'@media (prefers-color-scheme: dark)': {
|
|
18914
|
-
backgroundPosition: '-25px 0'
|
|
18915
|
-
}
|
|
18916
|
-
}
|
|
18917
18899
|
}
|
|
18918
|
-
}
|
|
18900
|
+
}, /*#__PURE__*/darkMode('pointer', {
|
|
18901
|
+
backgroundPosition: '-25px 0'
|
|
18902
|
+
})));
|
|
18919
18903
|
|
|
18920
18904
|
function Body() {
|
|
18921
18905
|
var BodyRef = useBodyRef();
|
|
@@ -19439,7 +19423,7 @@ var DarkInactivePosition = {
|
|
|
19439
19423
|
}
|
|
19440
19424
|
}
|
|
19441
19425
|
};
|
|
19442
|
-
var styles$e = /*#__PURE__*/stylesheet.create({
|
|
19426
|
+
var styles$e = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
19443
19427
|
catBtn: {
|
|
19444
19428
|
'.': 'epr-cat-btn',
|
|
19445
19429
|
display: 'inline-block',
|
|
@@ -19492,16 +19476,11 @@ var styles$e = /*#__PURE__*/stylesheet.create({
|
|
|
19492
19476
|
'&.epr-icn-travel_places': {
|
|
19493
19477
|
backgroundPositionX: 'calc(var(--epr-category-navigation-button-size) * -3)'
|
|
19494
19478
|
}
|
|
19495
|
-
}
|
|
19496
|
-
|
|
19497
|
-
|
|
19498
|
-
}, DarkInactivePosition)
|
|
19499
|
-
|
|
19500
|
-
catBtn: {
|
|
19501
|
-
'@media (prefers-color-scheme: dark)': DarkPositionY
|
|
19502
|
-
}
|
|
19503
|
-
}, DarkInactivePosition)
|
|
19504
|
-
});
|
|
19479
|
+
}
|
|
19480
|
+
}, /*#__PURE__*/darkMode('catBtn', DarkPositionY), {
|
|
19481
|
+
'.epr-dark-theme': /*#__PURE__*/_extends({}, DarkInactivePosition),
|
|
19482
|
+
'.epr-auto-theme': /*#__PURE__*/_extends({}, DarkInactivePosition)
|
|
19483
|
+
}));
|
|
19505
19484
|
|
|
19506
19485
|
function CategoryNavigation() {
|
|
19507
19486
|
var _useState = React.useState(null),
|
|
@@ -19583,7 +19562,7 @@ var HoverDark = {
|
|
|
19583
19562
|
}
|
|
19584
19563
|
}
|
|
19585
19564
|
};
|
|
19586
|
-
var styles$g = /*#__PURE__*/stylesheet.create({
|
|
19565
|
+
var styles$g = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
19587
19566
|
btnClearSearch: {
|
|
19588
19567
|
'.': 'epr-btn-clear-search',
|
|
19589
19568
|
position: 'absolute',
|
|
@@ -19618,24 +19597,10 @@ var styles$g = /*#__PURE__*/stylesheet.create({
|
|
|
19618
19597
|
':focus': {
|
|
19619
19598
|
backgroundPositionY: '-20px'
|
|
19620
19599
|
}
|
|
19621
|
-
},
|
|
19622
|
-
'.epr-dark-theme': {
|
|
19623
|
-
icnClearnSearch: {
|
|
19624
|
-
backgroundPositionY: '-40px'
|
|
19625
|
-
},
|
|
19626
|
-
btnClearSearch: HoverDark
|
|
19627
|
-
},
|
|
19628
|
-
'.epr-auto-theme': {
|
|
19629
|
-
icnClearnSearch: {
|
|
19630
|
-
'@media (prefers-color-scheme: dark)': {
|
|
19631
|
-
backgroundPositionY: '-40px'
|
|
19632
|
-
}
|
|
19633
|
-
},
|
|
19634
|
-
btnClearSearch: {
|
|
19635
|
-
'@media (prefers-color-scheme: dark)': HoverDark
|
|
19636
|
-
}
|
|
19637
19600
|
}
|
|
19638
|
-
}
|
|
19601
|
+
}, /*#__PURE__*/darkMode('icnClearnSearch', {
|
|
19602
|
+
backgroundPositionY: '-40px'
|
|
19603
|
+
}), /*#__PURE__*/darkMode('btnClearSearch', HoverDark)));
|
|
19639
19604
|
|
|
19640
19605
|
var SCOPE = /*#__PURE__*/asSelectors(ClassNames.emojiPicker) + " " + /*#__PURE__*/asSelectors(ClassNames.emojiList);
|
|
19641
19606
|
var EMOJI_BUTTON = /*#__PURE__*/['button', asSelectors(ClassNames.emoji)].join('');
|
|
@@ -19659,7 +19624,7 @@ function IcnSearch() {
|
|
|
19659
19624
|
className: flairup.cx(styles$h.icnSearch)
|
|
19660
19625
|
});
|
|
19661
19626
|
}
|
|
19662
|
-
var styles$h = /*#__PURE__*/stylesheet.create({
|
|
19627
|
+
var styles$h = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
19663
19628
|
icnSearch: {
|
|
19664
19629
|
'.': 'epr-icn-search',
|
|
19665
19630
|
content: '',
|
|
@@ -19673,20 +19638,10 @@ var styles$h = /*#__PURE__*/stylesheet.create({
|
|
|
19673
19638
|
backgroundPosition: '0 0',
|
|
19674
19639
|
backgroundSize: '20px',
|
|
19675
19640
|
backgroundImage: "url(" + SVGMagnifier + ")"
|
|
19676
|
-
},
|
|
19677
|
-
'.epr-dark-theme': {
|
|
19678
|
-
icnSearch: {
|
|
19679
|
-
backgroundPositionY: '-20px'
|
|
19680
|
-
}
|
|
19681
|
-
},
|
|
19682
|
-
'.epr-auto-theme': {
|
|
19683
|
-
icnSearch: {
|
|
19684
|
-
'@media (prefers-color-scheme: dark)': {
|
|
19685
|
-
backgroundPositionY: '-20px'
|
|
19686
|
-
}
|
|
19687
|
-
}
|
|
19688
19641
|
}
|
|
19689
|
-
}
|
|
19642
|
+
}, /*#__PURE__*/darkMode('icnSearch', {
|
|
19643
|
+
backgroundPositionY: '-20px'
|
|
19644
|
+
})));
|
|
19690
19645
|
|
|
19691
19646
|
function SearchContainer() {
|
|
19692
19647
|
var searchDisabled = useSearchDisabledConfig();
|
|
@@ -19741,7 +19696,7 @@ function Search() {
|
|
|
19741
19696
|
"aria-atomic": "true"
|
|
19742
19697
|
}, statusSearchResults) : null, React.createElement(IcnSearch, null), React.createElement(BtnClearSearch, null));
|
|
19743
19698
|
}
|
|
19744
|
-
var styles$i = /*#__PURE__*/stylesheet.create({
|
|
19699
|
+
var styles$i = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
19745
19700
|
overlay: {
|
|
19746
19701
|
padding: 'var(--epr-header-padding)',
|
|
19747
19702
|
zIndex: 'var(--epr-header-overlay-z-index)'
|
|
@@ -19813,33 +19768,14 @@ var styles$i = /*#__PURE__*/stylesheet.create({
|
|
|
19813
19768
|
':focus': {
|
|
19814
19769
|
backgroundPositionY: '-20px'
|
|
19815
19770
|
}
|
|
19816
|
-
},
|
|
19817
|
-
'.epr-dark-theme': {
|
|
19818
|
-
icnClearnSearch: {
|
|
19819
|
-
backgroundPositionY: '-40px'
|
|
19820
|
-
},
|
|
19821
|
-
btnClearSearch: {
|
|
19822
|
-
':hover > .epr-icn-clear-search': {
|
|
19823
|
-
backgroundPositionY: '-60px'
|
|
19824
|
-
}
|
|
19825
|
-
}
|
|
19826
|
-
},
|
|
19827
|
-
'.epr-auto-theme': {
|
|
19828
|
-
icnClearnSearch: {
|
|
19829
|
-
'@media (prefers-color-scheme: dark)': {
|
|
19830
|
-
backgroundPositionY: '-40px'
|
|
19831
|
-
}
|
|
19832
|
-
},
|
|
19833
|
-
btnClearSearch: {
|
|
19834
|
-
'@media (prefers-color-scheme: dark)': {
|
|
19835
|
-
// @ts-ignore
|
|
19836
|
-
':hover > .epr-icn-clear-search': {
|
|
19837
|
-
backgroundPositionY: '-60px'
|
|
19838
|
-
}
|
|
19839
|
-
}
|
|
19840
|
-
}
|
|
19841
19771
|
}
|
|
19842
|
-
}
|
|
19772
|
+
}, /*#__PURE__*/darkMode('icnClearnSearch', {
|
|
19773
|
+
backgroundPositionY: '-40px'
|
|
19774
|
+
}), /*#__PURE__*/darkMode('btnClearSearch', {
|
|
19775
|
+
':hover > .epr-icn-clear-search': {
|
|
19776
|
+
backgroundPositionY: '-60px'
|
|
19777
|
+
}
|
|
19778
|
+
})));
|
|
19843
19779
|
|
|
19844
19780
|
function Header() {
|
|
19845
19781
|
return React.createElement(Relative, {
|