emoji-picker-react 4.6.7 → 4.6.8-rc.2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.6.7",
2
+ "version": "4.6.8-rc.2",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -92,6 +92,7 @@
92
92
  "react-dom": "^18.2.0",
93
93
  "react-is": "^18.2.0",
94
94
  "rollup-plugin-postcss": "^4.0.2",
95
+ "rollup-plugin-svg-import": "^1.6.0",
95
96
  "size-limit": "^8.0.1",
96
97
  "tiny-invariant": "^1.2.0",
97
98
  "tsdx": "^0.14.1",
@@ -1,5 +1,5 @@
1
1
  aside.EmojiPickerReact .epr-cat-btn {
2
- background-image: svg-load(./svg/CategoryNav.svg);
2
+ /* background-image: svg-load(./svg/CategoryNav.svg); */
3
3
  }
4
4
 
5
5
  aside.EmojiPickerReact.epr-main:has(input:not(:placeholder-shown))
@@ -18,6 +18,8 @@ import { isCustomCategory } from '../../typeRefinements/typeRefinements';
18
18
  import { Button } from '../atoms/Button';
19
19
  import { useCategoryNavigationRef } from '../context/ElementRefContext';
20
20
 
21
+ import CatNavBtn from './svg/CategoryNav.svg';
22
+
21
23
  export function CategoryNavigation() {
22
24
  const [activeCategory, setActiveCategory] = useState<string | null>(null);
23
25
  const scrollCategoryIntoView = useScrollCategoryIntoView();
@@ -96,6 +98,7 @@ const styles = stylesheet.create({
96
98
  height: 'var(--epr-category-navigation-button-size)',
97
99
  width: 'var(--epr-category-navigation-button-size)',
98
100
  backgroundSize: 'calc(var(--epr-category-navigation-button-size) * 10)',
101
+ backgroundImage: `url(${CatNavBtn})`,
99
102
  outline: 'none',
100
103
  backgroundPosition: '0 0',
101
104
  ':focus:before': {