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