Fork of the emoji-button package to remove FontAwesome.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

53 lines
1.1 KiB

import { Placement } from '@popperjs/core';
export interface EmojiRecord {
n: string[];
e: string;
c: number;
ver: string;
v: { [key: string]: EmojiVariation };
}
export interface EmojiData {
categories: string[];
emojiData: EmojiRecord[];
}
export interface EmojiVariation {
k: string;
n: string;
e: string;
}
export interface RecentEmoji {
e: string;
n: string;
k: string;
}
export interface EmojiButtonOptions {
position?: Placement;
autoHide?: boolean;
autoFocusSearch?: boolean;
showPreview?: boolean;
showSearch?: boolean;
showRecents?: boolean;
showVariants?: boolean;
recentsCount?: number;
rootElement?: HTMLElement;
emojiVersion?: EmojiVersion;
i18n?: I18NStrings;
zIndex?: number;
}
export type EmojiVersion = '0.0' | '2.0' | '4.0' | '5.0' | '11.0' | '12.1';
export type I18NCategory = 'recents' | 'smileys' | 'animals' | 'food' | 'activities' | 'travel' | 'objects' | 'symbols' | 'flags';
export interface I18NStrings {
search: string;
categories: {
[key in I18NCategory]: string;
}
notFound: string;
}