All files / molecules/DialogBox/mobile DialogBox.native.types.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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                                                                           
import { ReactNode } from 'react';
import { StyleProp, TouchableWithoutFeedbackProps, ViewStyle } from 'react-native';
 
export type NativeDialogBoxSize = 'small' | 'default' | 'large';
export type NativeDialogBoxAnimation = 'slide' | 'fade' | 'none';
export type NativeDialogBoxPadding = 'none' | 'small' | 'default' | 'large';
export type NativeDialogBoxVariant = 'default' | 'warning' | 'error' | 'success' | 'info';
 
export interface DialogBoxNativeProps extends TouchableWithoutFeedbackProps {
  id: string;
  style?: StyleProp<ViewStyle>;
  isOpen: boolean;
  className?: string;
  autoCloseTimeout?: number;
  title?: string;
  content: string | ReactNode;
  variant?: NativeDialogBoxVariant;
  size?: NativeDialogBoxSize;
  closable?: boolean;
  onClose: () => void;
  onConfirm?: () => void;
  onCancel?: () => void;
  confirmButtonLabel?: string;
  cancelButtonLabel?: string;
  showCloseIcon?: boolean;
  paddingSize?: NativeDialogBoxPadding;
  backdropClickClose?: boolean;
  icon?: ReactNode;
  headerTemplate?: ReactNode;
  footerTemplateOutside?: ReactNode;
  footerTemplate?: ReactNode;
  headerStyle?: string;
  footerStyle?: string;
  animation?: NativeDialogBoxAnimation;
  showFooterButtons?: boolean;
  addContentSpacing?: boolean;
}