emoji-picker-react 4.7.7 → 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,10 +18089,10 @@ 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
- padding: '18px',
18095
+ padding: '17px',
18087
18096
  color: 'var(--epr-text-color)',
18088
18097
  borderRadius: '50%',
18089
18098
  textAlign: 'center',
@@ -18093,7 +18102,7 @@ var styles$4 = /*#__PURE__*/stylesheet.create({
18093
18102
  display: 'flex',
18094
18103
  justifyContent: 'center',
18095
18104
  alignItems: 'center',
18096
- transition: 'background-color 0.1s ease-in-out',
18105
+ transition: 'background-color 0.2s ease-in-out',
18097
18106
  ':after': {
18098
18107
  content: '',
18099
18108
  minWidth: '20px',
@@ -18106,45 +18115,29 @@ var styles$4 = /*#__PURE__*/stylesheet.create({
18106
18115
  },
18107
18116
  ':hover': {
18108
18117
  color: 'var(--epr-highlight-color)',
18109
- backgroundColor: 'var(--epr-hover-bg-color)',
18118
+ backgroundColor: 'var(--epr-hover-bg-color-reduced-opacity)',
18110
18119
  // @ts-ignore
18111
18120
  ':after': {
18112
- backgroundPositionY: '-20px',
18113
- transform: 'scale(1.2)'
18121
+ backgroundPositionY: '-20px'
18114
18122
  }
18115
18123
  },
18116
18124
  ':focus': {
18117
18125
  color: 'var(--epr-highlight-color)',
18118
- backgroundColor: 'var(--epr-hover-bg-color)',
18126
+ backgroundColor: 'var(--epr-hover-bg-color-reduced-opacity)',
18119
18127
  // @ts-ignore
18120
18128
  ':after': {
18121
18129
  backgroundPositionY: '-40px'
18122
18130
  }
18123
18131
  }
18132
+ }
18133
+ }, /*#__PURE__*/darkMode('plusSign', {
18134
+ ':after': {
18135
+ backgroundPositionY: '-40px'
18124
18136
  },
18125
- '.epr-dark-theme': {
18126
- plusSign: {
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
- }
18137
+ ':hover:after': {
18138
+ backgroundPositionY: '-60px'
18146
18139
  }
18147
- });
18140
+ })));
18148
18141
 
18149
18142
  function Reactions() {
18150
18143
  var _useReactionsModeStat = useReactionsModeState(),
@@ -18850,7 +18843,7 @@ function useVariationPickerTop(VariationPickerRef) {
18850
18843
  return emojiOffsetTop - height;
18851
18844
  }
18852
18845
  }
18853
- var styles$8 = /*#__PURE__*/stylesheet.create({
18846
+ var styles$8 = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
18854
18847
  variationPicker: {
18855
18848
  '.': ClassNames.variationPicker,
18856
18849
  position: 'absolute',
@@ -18902,20 +18895,10 @@ var styles$8 = /*#__PURE__*/stylesheet.create({
18902
18895
  top: '100%',
18903
18896
  transform: 'translateX(-18px)',
18904
18897
  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
18898
  }
18918
- });
18899
+ }, /*#__PURE__*/darkMode('pointer', {
18900
+ backgroundPosition: '-25px 0'
18901
+ })));
18919
18902
 
18920
18903
  function Body() {
18921
18904
  var BodyRef = useBodyRef();
@@ -19659,7 +19642,7 @@ function IcnSearch() {
19659
19642
  className: cx(styles$h.icnSearch)
19660
19643
  });
19661
19644
  }
19662
- var styles$h = /*#__PURE__*/stylesheet.create({
19645
+ var styles$h = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
19663
19646
  icnSearch: {
19664
19647
  '.': 'epr-icn-search',
19665
19648
  content: '',
@@ -19673,20 +19656,10 @@ var styles$h = /*#__PURE__*/stylesheet.create({
19673
19656
  backgroundPosition: '0 0',
19674
19657
  backgroundSize: '20px',
19675
19658
  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
19659
  }
19689
- });
19660
+ }, /*#__PURE__*/darkMode('icnSearch', {
19661
+ backgroundPositionY: '-20px'
19662
+ })));
19690
19663
 
19691
19664
  function SearchContainer() {
19692
19665
  var searchDisabled = useSearchDisabledConfig();
@@ -20280,6 +20253,7 @@ function PickerRootElement(_ref2) {
20280
20253
  }
20281
20254
  var DarkTheme = {
20282
20255
  '--epr-emoji-variation-picker-bg-color': 'var(--epr-dark-emoji-variation-picker-bg-color)',
20256
+ '--epr-hover-bg-color-reduced-opacity': 'var(--epr-dark-hover-bg-color-reduced-opacity)',
20283
20257
  '--epr-highlight-color': 'var(--epr-dark-highlight-color)',
20284
20258
  '--epr-text-color': 'var(--epr-dark-text-color)',
20285
20259
  '--epr-hover-bg-color': 'var(--epr-dark-hover-bg-color)',
@@ -20317,6 +20291,7 @@ var styles$j = /*#__PURE__*/stylesheet.create({
20317
20291
  '--': {
20318
20292
  '--epr-highlight-color': '#007aeb',
20319
20293
  '--epr-hover-bg-color': '#f1f8ff',
20294
+ '--epr-hover-bg-color-reduced-opacity': '#f1f8ff80',
20320
20295
  '--epr-focus-bg-color': '#e0f0ff',
20321
20296
  '--epr-text-color': '#858585',
20322
20297
  '--epr-search-input-bg-color': '#f6f6f6',
@@ -20378,6 +20353,7 @@ var styles$j = /*#__PURE__*/stylesheet.create({
20378
20353
  '--epr-dark-highlight-color': '#c0c0c0',
20379
20354
  '--epr-dark-text-color': 'var(--epr-highlight-color)',
20380
20355
  '--epr-dark-hover-bg-color': '#363636f6',
20356
+ '--epr-dark-hover-bg-color-reduced-opacity': '#36363680',
20381
20357
  '--epr-dark-focus-bg-color': '#474747',
20382
20358
  '--epr-dark-search-input-bg-color': '#333333',
20383
20359
  '--epr-dark-category-label-bg-color': '#222222e6',