[WEB-4844] fix: export prople package dist (#7712)

* fix: export prople package dist

* fix: code refactor
This commit is contained in:
sriram veeraghanta 2025-09-03 17:25:31 +05:30 committed by GitHub
parent 59ace4f411
commit 473535fcfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 42 additions and 43 deletions

View file

@ -1,23 +1,25 @@
import { TPlacement, TSide, TAlign } from "../utils/placement";
export enum EmojiIconPickerTypes {
EMOJI = "emoji",
ICON = "icon",
}
export const EmojiIconPickerTypes = {
EMOJI: "emoji",
ICON: "icon",
} as const;
export type TChangeHandlerProps =
| {
type: EmojiIconPickerTypes.EMOJI;
type: typeof EmojiIconPickerTypes.EMOJI;
value: string;
}
| {
type: EmojiIconPickerTypes.ICON;
type: typeof EmojiIconPickerTypes.ICON;
value: {
name: string;
color: string;
};
};
export type TEmojiIconPickerTypes = typeof EmojiIconPickerTypes.EMOJI | typeof EmojiIconPickerTypes.ICON;
export type TCustomEmojiPicker = {
isOpen: boolean;
handleToggle: (value: boolean) => void;
@ -25,7 +27,7 @@ export type TCustomEmojiPicker = {
className?: string;
closeOnSelect?: boolean;
defaultIconColor?: string;
defaultOpen?: EmojiIconPickerTypes;
defaultOpen?: TEmojiIconPickerTypes;
disabled?: boolean;
dropdownClassName?: string;
label: React.ReactNode;