emoji-picker-react 4.6.0 → 4.6.1-rc.1

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.0",
2
+ "version": "4.6.1-rc.1",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -96,5 +96,8 @@
96
96
  "tsdx": "^0.14.1",
97
97
  "tslib": "^2.4.0",
98
98
  "typescript": "^4.7.4"
99
+ },
100
+ "dependencies": {
101
+ "flairup": "^0.0.7-rc"
99
102
  }
100
103
  }
@@ -0,0 +1,3 @@
1
+ import { createSheet } from 'flairup';
2
+
3
+ export const stylesheet = createSheet('epr');
@@ -1,6 +1,8 @@
1
+ import { cx } from 'flairup';
1
2
  import * as React from 'react';
2
3
 
3
4
  import { ClassNames } from '../../DomUtils/classNames';
5
+ import { stylesheet } from '../../Stylesheet/stylesheet';
4
6
  import { useOnMouseMove } from '../../hooks/useDisallowMouseMove';
5
7
  import { useMouseDownHandlers } from '../../hooks/useMouseDownHandlers';
6
8
  import { useOnScroll } from '../../hooks/useOnScroll';
@@ -9,8 +11,6 @@ import { useBodyRef } from '../context/ElementRefContext';
9
11
  import { EmojiList } from './EmojiList';
10
12
  import { EmojiVariationPicker } from './EmojiVariationPicker';
11
13
 
12
- import './Body.css';
13
-
14
14
  export function Body() {
15
15
  const BodyRef = useBodyRef();
16
16
  useOnScroll(BodyRef);
@@ -18,9 +18,19 @@ export function Body() {
18
18
  useOnMouseMove();
19
19
 
20
20
  return (
21
- <div className={ClassNames.scrollBody} ref={BodyRef}>
21
+ <div className={cx(styles.body)} ref={BodyRef}>
22
22
  <EmojiVariationPicker />
23
23
  <EmojiList />
24
24
  </div>
25
25
  );
26
26
  }
27
+
28
+ const styles = stylesheet.create({
29
+ body: {
30
+ '.': ClassNames.scrollBody,
31
+ flex: 1,
32
+ overflowY: 'scroll',
33
+ overflowX: 'hidden',
34
+ position: 'relative'
35
+ }
36
+ });
@@ -87,6 +87,8 @@ export function Search() {
87
87
  <Button
88
88
  className={clsx('epr-btn-clear-search', 'epr-visible-on-search-only')}
89
89
  onClick={clearSearch}
90
+ aria-label="Clear"
91
+ title="Clear"
90
92
  >
91
93
  <div className="epr-icn-clear-search" />
92
94
  </Button>
@@ -1,6 +0,0 @@
1
- .EmojiPickerReact .epr-body {
2
- position: relative;
3
- flex: 1;
4
- overflow-y: scroll;
5
- overflow-x: hidden;
6
- }