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.
Files changed (35) hide show
  1. package/README.md +71 -147
  2. package/dist/DomUtils/classNames.d.ts +5 -0
  3. package/dist/DomUtils/emojiElementRef.d.ts +10 -0
  4. package/dist/components/body/EmojiCategory.d.ts +2 -1
  5. package/dist/components/context/PickerContext.d.ts +1 -1
  6. package/dist/components/emoji/Emoji.d.ts +3 -1
  7. package/dist/config/categoryConfig.d.ts +2 -11
  8. package/dist/emoji-picker-react.cjs.development.css +1 -1
  9. package/dist/emoji-picker-react.cjs.development.js +407 -322
  10. package/dist/emoji-picker-react.cjs.development.js.map +1 -1
  11. package/dist/emoji-picker-react.cjs.production.min.js +1 -1
  12. package/dist/emoji-picker-react.cjs.production.min.js.map +1 -1
  13. package/dist/emoji-picker-react.esm.js +390 -303
  14. package/dist/emoji-picker-react.esm.js.map +1 -1
  15. package/dist/hooks/useDebouncedState.d.ts +1 -0
  16. package/dist/hooks/useFilter.d.ts +2 -0
  17. package/dist/index.d.ts +1 -1
  18. package/dist/types/exposedTypes.d.ts +11 -0
  19. package/package.json +1 -1
  20. package/src/DomUtils/classNames.ts +5 -0
  21. package/src/DomUtils/emojiElementRef.ts +40 -0
  22. package/src/EmojiPickerReact.css +8 -1
  23. package/src/components/body/EmojiCategory.tsx +15 -2
  24. package/src/components/body/EmojiList.tsx +3 -0
  25. package/src/components/body/RecentlyUsed.tsx +1 -1
  26. package/src/components/context/PickerContext.tsx +7 -3
  27. package/src/components/emoji/Emoji.tsx +8 -2
  28. package/src/components/header/Search.tsx +7 -3
  29. package/src/components/main/PickerMain.tsx +2 -1
  30. package/src/config/categoryConfig.ts +3 -11
  31. package/src/dataUtils/recentlyUsed.ts +8 -5
  32. package/src/hooks/useDebouncedState.ts +21 -0
  33. package/src/hooks/useFilter.ts +51 -23
  34. package/src/index.tsx +1 -1
  35. package/src/types/exposedTypes.ts +12 -0
package/README.md CHANGED
@@ -1,181 +1,105 @@
1
- # TSDX React w/ Storybook User Guide
1
+ # Emoji Picker React (v4)
2
2
 
3
- Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.
3
+ An emoji picker component for React applications.
4
4
 
5
- > This TSDX setup is meant for developing React component libraries (not apps!) that can be published to NPM. If you’re looking to build a React-based app, you should use `create-react-app`, `razzle`, `nextjs`, `gatsby`, or `react-static`.
5
+ [Try it live](https://codesandbox.io/s/floral-rgb-z2gkzp?file=/src/App.tsx)
6
6
 
7
- > If you’re new to TypeScript and React, checkout [this handy cheatsheet](https://github.com/sw-yx/react-typescript-cheatsheet/)
7
+ ## What to know before using
8
8
 
9
- ## Commands
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
- TSDX scaffolds your new library inside `/src`, and also sets up a [Parcel-based](https://parceljs.org) playground for it inside `/example`.
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
- The default example imports and live reloads whatever is in `/dist`, so if you are seeing an out of date component, make sure TSDX is running in watch mode like we recommend above. **No symlinking required**, we use [Parcel's aliasing](https://parceljs.org/module_resolution.html#aliases).
17
+ ## Features
46
18
 
47
- To do a one-off build, use `npm run build` or `yarn build`.
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
- To run tests, use `npm test` or `yarn test`.
27
+ ## Config Props
50
28
 
51
- ## Configuration
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
- Code quality is set up for you with `prettier`, `husky`, and `lint-staged`. Adjust the respective fields in `package.json` accordingly.
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
- ### Jest
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
- Jest tests are set up to run with `npm test` or `yarn test`.
44
+ ```ts
45
+ import { Theme } from 'emoji-picker-react';
46
+ ```
58
47
 
59
- ### Bundle analysis
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
- Calculates the real cost of your library using [size-limit](https://github.com/ai/size-limit) with `npm run size` and visulize it with `npm run analyze`.
51
+ ```ts
52
+ import { EmojiStyle } from 'emoji-picker-react';
53
+ ```
62
54
 
63
- #### Setup Files
55
+ * _autoFocusSearch_: `boolean` - Whether to focus the search input on mount. Defaults to `true`.
64
56
 
65
- This is the folder structure we set up for you:
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
- #### React Testing Library
89
-
90
- We do not set up `react-testing-library` for you yet, we welcome contributions and documentation on this.
91
-
92
- ### Rollup
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
- You can also choose to install and use [invariant](https://github.com/palmerhq/tsdx#invariant) and [warning](https://github.com/palmerhq/tsdx#warning) functions.
68
+ The skin tones typescript enum can be imported directly from the package:
124
69
 
125
- ## Module Formats
70
+ ```ts
71
+ import { SkinTones } from 'emoji-picker-react';
72
+ ```
126
73
 
127
- CJS, ESModules, and UMD module formats are supported.
74
+ - _skinTonesDisabled_: `boolean` - Whether to disable the skin tone selection. Defaults to `false`.
128
75
 
129
- The appropriate paths are configured in `package.json` and `dist/index.js` accordingly. Please report if any issues are found.
76
+ - _showPreview_: `boolean` - Whether to show the preview of the selected emoji. Defaults to `true`.
130
77
 
131
- ## Deploying the Example Playground
78
+ - _searchPlaceholder_: `string` - The placeholder text for the search input. Defaults to `Search`.
132
79
 
133
- The Playground is just a simple [Parcel](https://parceljs.org) app, you can deploy it anywhere you would normally deploy that. Here are some guidelines for **manually** deploying with the Netlify CLI (`npm i -g netlify-cli`):
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
- Alternatively, if you already have a git repo connected, you can set up continuous deployment with Netlify:
142
-
143
- ```bash
144
- netlify init
145
- # build command: yarn build && cd example && yarn && yarn build
146
- # directory to deploy: example/dist
147
- # pick yes for netlify.toml
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
- ## Named Exports
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
- ## Including Styles
155
-
156
- There are many ways to ship styles, including with CSS-in-JS. TSDX has no opinion on this, configure how you like.
157
-
158
- For vanilla CSS, you can include it at the root directory and add it to the `files` section in your `package.json`, so that it can be imported separately by your users and run through their bundler's loader.
159
-
160
- ## Publishing to NPM
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,5 @@
1
+ export declare enum ClassNames {
2
+ hiddenOnSearch = "epr-hidden-on-search",
3
+ searchActive = "epr-search-active",
4
+ hidden = "epr-hidden"
5
+ }
@@ -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(): ReactState<string>;
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
- export declare enum Categories {
2
- RECENTLY_USED = "recently_used",
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}