forked from ealush/emoji-picker-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemoji-picker-react.d.ts
44 lines (38 loc) · 1.22 KB
/
emoji-picker-react.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
declare module 'emoji-picker-react' {
import * as React from 'react';
export const SKIN_TONE_NEUTRAL = 'neutral';
export const SKIN_TONE_LIGHT = '1f3fb';
export const SKIN_TONE_MEDIUM_LIGHT = '1f3fc';
export const SKIN_TONE_MEDIUM = '1f3fe';
export const SKIN_TONE_MEDIUM_DARK = '1f3ff';
export const SKIN_TONE_DARK = '1f3fd';
export type SkinTones =
| typeof SKIN_TONE_NEUTRAL
| typeof SKIN_TONE_LIGHT
| typeof SKIN_TONE_MEDIUM_LIGHT
| typeof SKIN_TONE_MEDIUM
| typeof SKIN_TONE_MEDIUM_DARK
| typeof SKIN_TONE_DARK;
export interface IEmojiData {
unified: string;
originalUnified: string;
names: Array<string>;
emoji: string;
activeSkinTone: SkinTones;
}
export interface IEmojiPickerProps {
onEmojiClick: (event: React.MouseEvent, data: IEmojiData) => void;
emojiUrl?: string;
preload?: boolean;
skinTone?: SkinTones;
disableAutoFocus?: boolean;
disableSearchBar?: boolean;
disableSkinTonePicker?: boolean;
pickerStyle?: { [property: string]: string };
groupNames?: Record<string, string>;
groupVisibility?: Record<string, boolean>;
native?: boolean;
}
const EmojiPicker: React.FC<IEmojiPickerProps>;
export default EmojiPicker;
}