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.
@@ -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
- '.epr-dark-theme': {
18125
- plusSign: {
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();
@@ -19658,7 +19642,7 @@ function IcnSearch() {
19658
19642
  className: cx(styles$h.icnSearch)
19659
19643
  });
19660
19644
  }
19661
- var styles$h = /*#__PURE__*/stylesheet.create({
19645
+ var styles$h = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
19662
19646
  icnSearch: {
19663
19647
  '.': 'epr-icn-search',
19664
19648
  content: '',
@@ -19672,20 +19656,10 @@ var styles$h = /*#__PURE__*/stylesheet.create({
19672
19656
  backgroundPosition: '0 0',
19673
19657
  backgroundSize: '20px',
19674
19658
  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
19659
  }
19688
- });
19660
+ }, /*#__PURE__*/darkMode('icnSearch', {
19661
+ backgroundPositionY: '-20px'
19662
+ })));
19689
19663
 
19690
19664
  function SearchContainer() {
19691
19665
  var searchDisabled = useSearchDisabledConfig();