emoji-picker-react 4.0.0-rc.3 → 4.0.0-rc.6
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/README.md +71 -147
- package/dist/DomUtils/classNames.d.ts +5 -0
- package/dist/DomUtils/emojiElementRef.d.ts +10 -0
- package/dist/components/body/EmojiCategory.d.ts +2 -1
- package/dist/components/context/PickerContext.d.ts +1 -1
- package/dist/components/emoji/Emoji.d.ts +3 -1
- package/dist/config/categoryConfig.d.ts +2 -11
- package/dist/emoji-picker-react.cjs.development.css +1 -1
- package/dist/emoji-picker-react.cjs.development.js +407 -322
- 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 +390 -303
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/dist/hooks/useDebouncedState.d.ts +1 -0
- package/dist/hooks/useFilter.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/types/exposedTypes.d.ts +11 -0
- package/package.json +1 -1
- package/src/DomUtils/classNames.ts +5 -0
- package/src/DomUtils/emojiElementRef.ts +40 -0
- package/src/EmojiPickerReact.css +8 -1
- package/src/components/body/EmojiCategory.tsx +15 -2
- package/src/components/body/EmojiList.tsx +3 -0
- package/src/components/body/RecentlyUsed.tsx +1 -1
- package/src/components/context/PickerContext.tsx +7 -3
- package/src/components/emoji/Emoji.tsx +8 -2
- package/src/components/header/Search.tsx +7 -3
- package/src/components/main/PickerMain.tsx +2 -1
- package/src/config/categoryConfig.ts +3 -11
- package/src/dataUtils/recentlyUsed.ts +8 -5
- package/src/hooks/useDebouncedState.ts +21 -0
- package/src/hooks/useFilter.ts +51 -23
- package/src/index.tsx +1 -1
- package/src/types/exposedTypes.ts +12 -0
package/README.md
CHANGED
|
@@ -1,181 +1,105 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Emoji Picker React (v4)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An emoji picker component for React applications.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[Try it live](https://codesandbox.io/s/floral-rgb-z2gkzp?file=/src/App.tsx)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## What to know before using
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- This package assumes it runs in the browser. I have taken many steps to prevent it from failing on the server, but still, it is recommended to only render the component on the client.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Installation
|
|
12
12
|
|
|
13
|
-
The recommended workflow is to run TSDX in one terminal:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm start # or yarn start
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
This builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.
|
|
20
|
-
|
|
21
|
-
Then run either Storybook or the example playground:
|
|
22
|
-
|
|
23
|
-
### Storybook
|
|
24
|
-
|
|
25
|
-
Run inside another terminal:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
yarn storybook
|
|
29
13
|
```
|
|
30
|
-
|
|
31
|
-
This loads the stories from `./stories`.
|
|
32
|
-
|
|
33
|
-
> NOTE: Stories should reference the components as if using the library, similar to the example playground. This means importing from the root project directory. This has been aliased in the tsconfig and the storybook webpack config as a helper.
|
|
34
|
-
|
|
35
|
-
### Example
|
|
36
|
-
|
|
37
|
-
Then run the example inside another:
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
cd example
|
|
41
|
-
npm i # or yarn to install dependencies
|
|
42
|
-
npm start # or yarn start
|
|
14
|
+
npm install emoji-picker-react
|
|
43
15
|
```
|
|
44
16
|
|
|
45
|
-
|
|
17
|
+
## Features
|
|
46
18
|
|
|
47
|
-
|
|
19
|
+
- Custom click handler
|
|
20
|
+
- Dark mode
|
|
21
|
+
- Customizable styles via css variables
|
|
22
|
+
- Default skin tone selection
|
|
23
|
+
- Skin tone change
|
|
24
|
+
- Different emoji sets (Google, Apple, Facebook, Twitter)
|
|
25
|
+
- Native Emoji support
|
|
48
26
|
|
|
49
|
-
|
|
27
|
+
## Config Props
|
|
50
28
|
|
|
51
|
-
|
|
29
|
+
- _onEmojiClick_ `(event: MouseEvent, emoji: EmojiClickData) => void` - Callback function when an emoji is clicked. The callback receives the event and the emoji data. The emoji data is comprised of the following properties:
|
|
52
30
|
|
|
53
|
-
|
|
31
|
+
```ts{
|
|
32
|
+
activeSkinTone: SkinTones;
|
|
33
|
+
unified: string;
|
|
34
|
+
unifiedWithoutSkinTone: string;
|
|
35
|
+
emoji: string;
|
|
36
|
+
names: string[];
|
|
37
|
+
getImageUrl: (emojiStyle: EmojiStyle) => string;
|
|
38
|
+
}
|
|
39
|
+
```
|
|
54
40
|
|
|
55
|
-
|
|
41
|
+
- _theme_ `Theme` - The theme of the picker. Can be either `light` or `dark`. Default is `light`.
|
|
42
|
+
The `Theme` enum can be imported from the package.
|
|
56
43
|
|
|
57
|
-
|
|
44
|
+
```ts
|
|
45
|
+
import { Theme } from 'emoji-picker-react';
|
|
46
|
+
```
|
|
58
47
|
|
|
59
|
-
|
|
48
|
+
- _emojiStyle_ `EmojiStyle` - The emoji style to use. Can be either `apple`, `google`, `facebook`, `twitter` or `native`. Default is `apple`.
|
|
49
|
+
The `EmojiStyle` enum can be imported from the package.
|
|
60
50
|
|
|
61
|
-
|
|
51
|
+
```ts
|
|
52
|
+
import { EmojiStyle } from 'emoji-picker-react';
|
|
53
|
+
```
|
|
62
54
|
|
|
63
|
-
|
|
55
|
+
* _autoFocusSearch_: `boolean` - Whether to focus the search input on mount. Defaults to `true`.
|
|
64
56
|
|
|
65
|
-
|
|
57
|
+
* _defaultSkinTone_: `SkinTones` - The default skin tone to use when an emoji is clicked. Defaults to `SkinTones.Neutral`. Possible skin tones are:
|
|
66
58
|
|
|
67
|
-
```txt
|
|
68
|
-
/example
|
|
69
|
-
index.html
|
|
70
|
-
index.tsx # test your component here in a demo app
|
|
71
|
-
package.json
|
|
72
|
-
tsconfig.json
|
|
73
|
-
/src
|
|
74
|
-
index.tsx # EDIT THIS
|
|
75
|
-
/test
|
|
76
|
-
blah.test.tsx # EDIT THIS
|
|
77
|
-
/stories
|
|
78
|
-
Thing.stories.tsx # EDIT THIS
|
|
79
|
-
/.storybook
|
|
80
|
-
main.js
|
|
81
|
-
preview.js
|
|
82
|
-
.gitignore
|
|
83
|
-
package.json
|
|
84
|
-
README.md # EDIT THIS
|
|
85
|
-
tsconfig.json
|
|
86
59
|
```
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
TSDX uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.
|
|
95
|
-
|
|
96
|
-
### TypeScript
|
|
97
|
-
|
|
98
|
-
`tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. Adjust according to your needs.
|
|
99
|
-
|
|
100
|
-
## Continuous Integration
|
|
101
|
-
|
|
102
|
-
### GitHub Actions
|
|
103
|
-
|
|
104
|
-
Two actions are added by default:
|
|
105
|
-
|
|
106
|
-
- `main` which installs deps w/ cache, lints, tests, and builds on all pushes against a Node and OS matrix
|
|
107
|
-
- `size` which comments cost comparison of your library on every pull request using [size-limit](https://github.com/ai/size-limit)
|
|
108
|
-
|
|
109
|
-
## Optimizations
|
|
110
|
-
|
|
111
|
-
Please see the main `tsdx` [optimizations docs](https://github.com/palmerhq/tsdx#optimizations). In particular, know that you can take advantage of development-only optimizations:
|
|
112
|
-
|
|
113
|
-
```js
|
|
114
|
-
// ./types/index.d.ts
|
|
115
|
-
declare var __DEV__: boolean;
|
|
116
|
-
|
|
117
|
-
// inside your code...
|
|
118
|
-
if (__DEV__) {
|
|
119
|
-
console.log('foo');
|
|
120
|
-
}
|
|
60
|
+
✋ NEUTRAL = 'neutral'
|
|
61
|
+
✋🏻 LIGHT = '1f3fb'
|
|
62
|
+
✋🏼 MEDIUM_LIGHT = '1f3fc'
|
|
63
|
+
✋🏽 MEDIUM = '1f3fd'
|
|
64
|
+
✋🏾 MEDIUM_DARK = '1f3fe'
|
|
65
|
+
✋🏿 DARK = '1f3ff'
|
|
121
66
|
```
|
|
122
67
|
|
|
123
|
-
|
|
68
|
+
The skin tones typescript enum can be imported directly from the package:
|
|
124
69
|
|
|
125
|
-
|
|
70
|
+
```ts
|
|
71
|
+
import { SkinTones } from 'emoji-picker-react';
|
|
72
|
+
```
|
|
126
73
|
|
|
127
|
-
|
|
74
|
+
- _skinTonesDisabled_: `boolean` - Whether to disable the skin tone selection. Defaults to `false`.
|
|
128
75
|
|
|
129
|
-
|
|
76
|
+
- _showPreview_: `boolean` - Whether to show the preview of the selected emoji. Defaults to `true`.
|
|
130
77
|
|
|
131
|
-
|
|
78
|
+
- _searchPlaceholder_: `string` - The placeholder text for the search input. Defaults to `Search`.
|
|
132
79
|
|
|
133
|
-
|
|
80
|
+
- categories: Allows full config over ordering, naming and display of categories.
|
|
81
|
+
To only sort/omit categories, you can simply pass an array of category names to display:
|
|
134
82
|
|
|
135
|
-
```bash
|
|
136
|
-
cd example # if not already in the example folder
|
|
137
|
-
npm run build # builds to dist
|
|
138
|
-
netlify deploy # deploy the dist folder
|
|
139
83
|
```
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
84
|
+
RECENTLY_USED = 'recently_used',
|
|
85
|
+
SMILEYS_PEOPLE = 'smileys_people',
|
|
86
|
+
ANIMALS_NATURE = 'animals_nature',
|
|
87
|
+
FOOD_DRINK = 'food_drink',
|
|
88
|
+
TRAVEL_PLACES = 'travel_places',
|
|
89
|
+
ACTIVITIES = 'activities',
|
|
90
|
+
OBJECTS = 'objects',
|
|
91
|
+
SYMBOLS = 'symbols',
|
|
92
|
+
FLAGS = 'flags'
|
|
148
93
|
```
|
|
149
94
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Per Palmer Group guidelines, [always use named exports.](https://github.com/palmerhq/typescript#exports) Code split inside your React app instead of your React library.
|
|
95
|
+
For a more in-depth configuration, you can pass an array with category config:
|
|
153
96
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
We recommend using [np](https://github.com/sindresorhus/np).
|
|
163
|
-
|
|
164
|
-
## Usage with Lerna
|
|
165
|
-
|
|
166
|
-
When creating a new package with TSDX within a project set up with Lerna, you might encounter a `Cannot resolve dependency` error when trying to run the `example` project. To fix that you will need to make changes to the `package.json` file _inside the `example` directory_.
|
|
167
|
-
|
|
168
|
-
The problem is that due to the nature of how dependencies are installed in Lerna projects, the aliases in the example project's `package.json` might not point to the right place, as those dependencies might have been installed in the root of your Lerna project.
|
|
169
|
-
|
|
170
|
-
Change the `alias` to point to where those packages are actually installed. This depends on the directory structure of your Lerna project, so the actual path might be different from the diff below.
|
|
171
|
-
|
|
172
|
-
```diff
|
|
173
|
-
"alias": {
|
|
174
|
-
- "react": "../node_modules/react",
|
|
175
|
-
- "react-dom": "../node_modules/react-dom"
|
|
176
|
-
+ "react": "../../../node_modules/react",
|
|
177
|
-
+ "react-dom": "../../../node_modules/react-dom"
|
|
178
|
-
},
|
|
97
|
+
```ts
|
|
98
|
+
[{
|
|
99
|
+
category: Categories.RECENTLY_USED;
|
|
100
|
+
name: "Recently Used";
|
|
101
|
+
}, {
|
|
102
|
+
category: Categories.SMILEYS_PEOPLE;
|
|
103
|
+
name: "Faces...";
|
|
104
|
+
}]
|
|
179
105
|
```
|
|
180
|
-
|
|
181
|
-
An alternative to fixing this problem would be to remove aliases altogether and define the dependencies referenced as aliases as dev dependencies instead. [However, that might cause other problems.](https://github.com/palmerhq/tsdx/issues/64)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type EmojiRef = {
|
|
2
|
+
current: null | HTMLElement;
|
|
3
|
+
};
|
|
4
|
+
export declare const emojiRef: Record<string, EmojiRef>;
|
|
5
|
+
export declare function getEmojiRef(unified: string): EmojiRef;
|
|
6
|
+
export declare function iterateEmojiRef(callback: (ref: HTMLElement, unified: string) => void): void;
|
|
7
|
+
export declare function hideEmoji(unified: string): void;
|
|
8
|
+
export declare function showEmoji(unified: string): void;
|
|
9
|
+
export declare function hideElement(element: HTMLElement | null): void;
|
|
10
|
+
export declare function showElement(element: HTMLElement | null): void;
|
|
@@ -5,6 +5,7 @@ declare type Props = Readonly<{
|
|
|
5
5
|
categoryConfig: CategoryConfig;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
hidden?: boolean;
|
|
8
|
+
hiddenOnSearch?: boolean;
|
|
8
9
|
}>;
|
|
9
|
-
export declare function EmojiCategory({ categoryConfig, children, hidden }: Props): JSX.Element;
|
|
10
|
+
export declare function EmojiCategory({ categoryConfig, children, hidden, hiddenOnSearch }: Props): JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -9,7 +9,7 @@ declare type Props = Readonly<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export declare function useFilterRef(): React.MutableRefObject<Record<string, Record<string, DataEmoji>>>;
|
|
11
11
|
export declare function useDisallowClickRef(): React.MutableRefObject<boolean>;
|
|
12
|
-
export declare function useSearchTermState():
|
|
12
|
+
export declare function useSearchTermState(): [string, (term: string) => void];
|
|
13
13
|
export declare function useActiveCategoryState(): [ActiveCategoryState, (nextActive: string) => void, (nextActive: string) => void];
|
|
14
14
|
export declare function useActiveSkinToneState(): [SkinTones, (skinTone: SkinTones) => void];
|
|
15
15
|
export declare function useEmojisThatFailedToLoadState(): ReactState<Set<string>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DataEmoji } from '../../dataUtils/DataTypes';
|
|
3
|
+
import { EmojiRef } from '../../DomUtils/emojiElementRef';
|
|
3
4
|
import { EmojiStyle } from '../../types/exposedTypes';
|
|
4
5
|
import './Emoji.css';
|
|
5
6
|
declare type Props = Readonly<{
|
|
@@ -9,6 +10,7 @@ declare type Props = Readonly<{
|
|
|
9
10
|
unified: string;
|
|
10
11
|
showVariations?: boolean;
|
|
11
12
|
size?: number;
|
|
13
|
+
emojiRef?: EmojiRef;
|
|
12
14
|
}>;
|
|
13
|
-
export declare function Emoji({ emoji, unified, hidden, emojiStyle, showVariations, size }: Props): JSX.Element;
|
|
15
|
+
export declare function Emoji({ emoji, unified, hidden, emojiStyle, showVariations, size, emojiRef }: Props): JSX.Element;
|
|
14
16
|
export {};
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
SMILEYS_PEOPLE = "smileys_people",
|
|
4
|
-
ANIMALS_NATURE = "animals_nature",
|
|
5
|
-
FOOD_DRINK = "food_drink",
|
|
6
|
-
TRAVEL_PLACES = "travel_places",
|
|
7
|
-
ACTIVITIES = "activities",
|
|
8
|
-
OBJECTS = "objects",
|
|
9
|
-
SYMBOLS = "symbols",
|
|
10
|
-
FLAGS = "flags"
|
|
11
|
-
}
|
|
1
|
+
import { Categories } from '../types/exposedTypes';
|
|
2
|
+
export { Categories };
|
|
12
3
|
export declare const baseCategoriesConfig: CategoryConfig[];
|
|
13
4
|
export declare function categoryFromCategoryConfig(category: CategoryConfig): Categories;
|
|
14
5
|
export declare function categoryNameFromCategoryConfig(category: CategoryConfig): string;
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
.EmojiPickerReact .epr-skin-tones{align-items:center;display:flex;flex-basis:30px;justify-content:flex-end;transition:all .3s ease-in-out}.EmojiPickerReact .epr-skin-tones.open{flex-basis:170px}.EmojiPickerReact .epr-skin-tone-select{height:16px;position:relative;width:16px}.EmojiPickerReact .epr-skin-tones.open .epr-tone{transition:transform .3s ease-in-out,opacity .3s ease-in-out}.EmojiPickerReact .epr-skin-tones:not(.open) .epr-tone{opacity:0;z-index:0}.EmojiPickerReact .epr-skin-tones .epr-tone{border-radius:4px;box-shadow:0 0 0 0 var(--epr-active-skin-hover-color);cursor:pointer;display:block;height:100%;position:absolute;right:0;transition:transform .3s ease-in-out,opacity .5s ease-in-out;width:100%;z-index:1}.EmojiPickerReact .epr-skin-tones .epr-tone:hover{box-shadow:0 0 0 5px var(--epr-active-skin-hover-color)}.EmojiPickerReact .epr-skin-tones.open .epr-skin-tone-select .epr-tone.active:after{border:1px solid var(--epr-active-skin-tone-indicator-border-color);border-radius:5px;bottom:-2px;content:"";left:-2px;position:absolute;right:-2px;top:-2px}.EmojiPickerReact .epr-skin-tones .epr-tone.active{opacity:1;z-index:1}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-neutral{background-color:#ffd225}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fb{background-color:#ffdfbd}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fc{background-color:#e9c197}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fd{background-color:#c88e62}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fe{background-color:#a86637}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3ff{background-color:#60463a}
|
|
11
11
|
.EmojiPickerReact .epr-header .epr-header-overlay{padding:var(--epr-header-padding);z-index:var(--epr-header-overlay-z-index)}
|
|
12
12
|
aside.EmojiPickerReact.epr-main{border-color:var(--epr-picker-border-color);border-radius:var(--epr-picker-border-radius);border-style:solid;border-width:1px;display:flex;flex-direction:column;height:var(--epr-picker-height);position:relative;width:var(--epr-picker-width)}
|
|
13
|
-
.EmojiPickerReact{--highlight-color:#007aeb;--hover-backdrop-color:#f1f8ff;--text-color-base:#858585;--epr-header-height:70px;--epr-picker-width:350px;--epr-picker-height:500px;--epr-emoji-size:33px;--epr-category-navigation-button-size:30px;--epr-emoji-variation-picker-bg-color:var(--epr-background-color);--epr-emoji-variation-picker-height:55px;--epr-preview-height:70px;--epr-preview-text-color:var(--text-color-base);--epr-preview-text-size:14px;--epr-preview-text-padding:0 10px;--epr-search-bar-bg-color:#f6f6f6;--epr-active-category-indicator-color:var(--highlight-color);--epr-active-skin-tone-indicator-border-color:var(--highlight-color);--epr-search-border-color:var(--highlight-color);--epr-active-skin-hover-color:var(--hover-backdrop-color);--epr-emoji-hover-color:var(--hover-backdrop-color);--epr-category-label-text-color:var(--text-color-base);--epr-category-label-background-color:#ffffffe6;--epr-emoji-padding:5px;--epr-header-padding:15px 10px;--epr-emoji-gap:4px;--epr-category-padding:0 10px;--epr-search-input-padding:0 30px;--epr-search-input-border-radius:8px;--epr-search-input-height:40px;--epr-category-label-padding:0 10px;--epr-category-label-height:40px;--epr-header-overlay-z-index:3;--epr-emoji-variations-indictator-z-index:1;--epr-category-label-z-index:2;--epr-skin-variation-picker-z-index:5;--epr-picker-border-radius:8px;--epr-search-bar-text-color:var(--text-color-base);--epr-search-bar-placeholder-color:var(--text-color-base);--epr-picker-border-color:#e7e7e7;--epr-background-color:#fff;--epr-preview-border-color:var(--epr-picker-border-color);--epr-search-bar-bg-color-active:var(--epr-search-bar-bg-color);--epr-emoji-variation-indicator-color:rgba(0,0,0,.1);--epr-emoji-variation-indicator-color-hover:rgba(0,0,0,.4)}.EmojiPickerReact.epr-dark-theme{--epr-emoji-variation-picker-bg-color:#000;--highlight-color:silver;--text-color-base:var(--highlight-color);--hover-backdrop-color:#363636f6;--epr-search-bar-bg-color:#333;--epr-category-label-background-color:#222222e6;--epr-picker-border-color:#151617;--epr-background-color:#222;--epr-search-bar-bg-color-active:#000;--epr-emoji-variation-indicator-color:hsla(0,0%,100%,.1);--epr-emoji-variation-indicator-color-hover:hsla(0,0%,100%,.4)}.EmojiPickerReact{background-color:var(--epr-background-color);overflow:hidden}.EmojiPickerReact .hidden{display:none!important;opacity:0!important;pointer-events:none!important;visibility:hidden!important}.EmojiPickerReact *{box-sizing:border-box;font-family:sans-serif}.EmojiPickerReact button{background:none;border:0;cursor:pointer}
|
|
13
|
+
.EmojiPickerReact{--highlight-color:#007aeb;--hover-backdrop-color:#f1f8ff;--text-color-base:#858585;--epr-header-height:70px;--epr-picker-width:350px;--epr-picker-height:500px;--epr-emoji-size:33px;--epr-category-navigation-button-size:30px;--epr-emoji-variation-picker-bg-color:var(--epr-background-color);--epr-emoji-variation-picker-height:55px;--epr-preview-height:70px;--epr-preview-text-color:var(--text-color-base);--epr-preview-text-size:14px;--epr-preview-text-padding:0 10px;--epr-search-bar-bg-color:#f6f6f6;--epr-active-category-indicator-color:var(--highlight-color);--epr-active-skin-tone-indicator-border-color:var(--highlight-color);--epr-search-border-color:var(--highlight-color);--epr-active-skin-hover-color:var(--hover-backdrop-color);--epr-emoji-hover-color:var(--hover-backdrop-color);--epr-category-label-text-color:var(--text-color-base);--epr-category-label-background-color:#ffffffe6;--epr-emoji-padding:5px;--epr-header-padding:15px 10px;--epr-emoji-gap:4px;--epr-category-padding:0 10px;--epr-search-input-padding:0 30px;--epr-search-input-border-radius:8px;--epr-search-input-height:40px;--epr-category-label-padding:0 10px;--epr-category-label-height:40px;--epr-header-overlay-z-index:3;--epr-emoji-variations-indictator-z-index:1;--epr-category-label-z-index:2;--epr-skin-variation-picker-z-index:5;--epr-picker-border-radius:8px;--epr-search-bar-text-color:var(--text-color-base);--epr-search-bar-placeholder-color:var(--text-color-base);--epr-picker-border-color:#e7e7e7;--epr-background-color:#fff;--epr-preview-border-color:var(--epr-picker-border-color);--epr-search-bar-bg-color-active:var(--epr-search-bar-bg-color);--epr-emoji-variation-indicator-color:rgba(0,0,0,.1);--epr-emoji-variation-indicator-color-hover:rgba(0,0,0,.4)}.EmojiPickerReact.epr-dark-theme{--epr-emoji-variation-picker-bg-color:#000;--highlight-color:silver;--text-color-base:var(--highlight-color);--hover-backdrop-color:#363636f6;--epr-search-bar-bg-color:#333;--epr-category-label-background-color:#222222e6;--epr-picker-border-color:#151617;--epr-background-color:#222;--epr-search-bar-bg-color-active:#000;--epr-emoji-variation-indicator-color:hsla(0,0%,100%,.1);--epr-emoji-variation-indicator-color-hover:hsla(0,0%,100%,.4)}.EmojiPickerReact{background-color:var(--epr-background-color);overflow:hidden}.EmojiPickerReact .epr-hidden,.EmojiPickerReact.epr-search-active .epr-hidden-on-search{display:none!important;opacity:0!important;pointer-events:none!important;visibility:hidden!important}.EmojiPickerReact *{box-sizing:border-box;font-family:sans-serif}.EmojiPickerReact button{background:none;border:0;cursor:pointer}
|