mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-07 14:13:58 -05:00
Fix broken types in imported library
This commit is contained in:
32
lib/types/ModalTypes.ts
Normal file
32
lib/types/ModalTypes.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
export type ModalBackgroundType = "darken" | "lighten" | "blur" | "darken-blur" | "lighten-blur" | "darken-blur-radial" | "lighten-blur-radial" | "transparent" | "none";
|
||||
|
||||
|
||||
export interface ModalHeaderProps {
|
||||
onClose?: () => void;
|
||||
className?: string;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export interface ModalFooterProps {
|
||||
className?: string;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export interface ModalBodyProps {
|
||||
className?: string;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export interface ModalProps {
|
||||
display: boolean;
|
||||
onClose: () => void;
|
||||
className?: string;
|
||||
backgroundType?: ModalBackgroundType;
|
||||
top?: boolean;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export interface ModalBackgroundProps {
|
||||
backgroundType?: ModalBackgroundType;
|
||||
close: () => void;
|
||||
}
|
||||
Reference in New Issue
Block a user