UNPKG

4.46 kBTypeScriptView Raw
1import React from 'react';
2import { OverlayProps } from '../overlay/Overlay';
3import { Theme } from '../config/theme';
4import DialogLoading from './DialogLoading';
5import DialogTitle from './DialogTitle';
6import DialogButton from './DialogButton';
7import DialogActions from './DialogActions';
8export declare type DialogProps = Omit<OverlayProps, 'fullScreen'> & {
9 theme?: Theme;
10 children?: any;
11};
12interface Dialog extends React.FunctionComponent<DialogProps> {
13 Loading: typeof DialogLoading;
14 Title: typeof DialogTitle;
15 Actions: typeof DialogActions;
16 Button: typeof DialogButton;
17}
18declare const Dialog: Dialog;
19export { Dialog };
20declare const ThemedDialog: (React.FunctionComponent<Omit<Omit<OverlayProps, "fullScreen"> & {
21 theme?: Theme;
22 children?: any;
23}, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<Omit<OverlayProps, "fullScreen"> & {
24 theme?: Theme;
25 children?: any;
26}>) & {
27 Loading: React.FunctionComponent<Omit<import("./DialogLoading").DialogLoadingProps, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<import("./DialogLoading").DialogLoadingProps>;
28 Title: React.FunctionComponent<Omit<import("./DialogTitle").DialogTitleProps, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<import("./DialogTitle").DialogTitleProps>;
29 Actions: React.FunctionComponent<Omit<import("./DialogActions").DialogActionsProps, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<import("./DialogActions").DialogActionsProps>;
30 Button: React.FunctionComponent<Omit<import("react-native").TouchableOpacityProps & import("react-native").TouchableNativeFeedbackProps & {
31 title?: string | React.ReactElement<{}, string | React.JSXElementConstructor<any>>;
32 titleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
33 titleProps?: import("..").TextProps;
34 buttonStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
35 type?: "solid" | "clear" | "outline";
36 loading?: boolean;
37 loadingStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
38 loadingProps?: import("react-native").ActivityIndicatorProps;
39 containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
40 icon?: import("../icons/Icon").IconNode;
41 iconContainerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
42 iconRight?: boolean;
43 linearGradientProps?: object;
44 TouchableComponent?: typeof React.Component;
45 ViewComponent?: typeof React.Component;
46 disabled?: boolean;
47 disabledStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
48 disabledTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
49 raised?: boolean;
50 iconPosition?: "bottom" | "left" | "right" | "top";
51 }, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<import("react-native").TouchableOpacityProps & import("react-native").TouchableNativeFeedbackProps & {
52 title?: string | React.ReactElement<{}, string | React.JSXElementConstructor<any>>;
53 titleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
54 titleProps?: import("..").TextProps;
55 buttonStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
56 type?: "solid" | "clear" | "outline";
57 loading?: boolean;
58 loadingStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
59 loadingProps?: import("react-native").ActivityIndicatorProps;
60 containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
61 icon?: import("../icons/Icon").IconNode;
62 iconContainerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
63 iconRight?: boolean;
64 linearGradientProps?: object;
65 TouchableComponent?: typeof React.Component;
66 ViewComponent?: typeof React.Component;
67 disabled?: boolean;
68 disabledStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
69 disabledTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
70 raised?: boolean;
71 iconPosition?: "bottom" | "left" | "right" | "top";
72 }>;
73};
74export default ThemedDialog;