1 | import React from 'react';
|
2 | import { OverlayProps } from '../overlay/Overlay';
|
3 | import { Theme } from '../config/theme';
|
4 | import DialogLoading from './DialogLoading';
|
5 | import DialogTitle from './DialogTitle';
|
6 | import DialogButton from './DialogButton';
|
7 | import DialogActions from './DialogActions';
|
8 | export declare type DialogProps = Omit<OverlayProps, 'fullScreen'> & {
|
9 | theme?: Theme;
|
10 | children?: any;
|
11 | };
|
12 | interface Dialog extends React.FunctionComponent<DialogProps> {
|
13 | Loading: typeof DialogLoading;
|
14 | Title: typeof DialogTitle;
|
15 | Actions: typeof DialogActions;
|
16 | Button: typeof DialogButton;
|
17 | }
|
18 | declare const Dialog: Dialog;
|
19 | export { Dialog };
|
20 | declare const ThemedDialog: (React.FunctionComponent<Pick<DialogProps, "style" | "onLayout" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "visible" | "nativeID" | "hitSlop" | "hasTVPreferredFocus" | "tvParallaxProperties" | "transparent" | "children" | "pointerEvents" | "removeClippedSubviews" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "isVisible" | "animated" | "animationType" | "onRequestClose" | "onShow" | "presentationStyle" | "supportedOrientations" | "onDismiss" | "onOrientationChange" | "hardwareAccelerated" | "statusBarTranslucent" | "backdropStyle" | "overlayStyle" | "onBackdropPress" | "ModalComponent">> & {
|
21 | Loading: React.FunctionComponent<Pick<import("./DialogLoading").DialogLoadingProps, "loadingStyle" | "loadingProps">> | React.ForwardRefExoticComponent<import("./DialogLoading").DialogLoadingProps>;
|
22 | Title: React.FunctionComponent<Pick<import("./DialogTitle").DialogTitleProps, "title" | "titleStyle" | "titleProps">> | React.ForwardRefExoticComponent<import("./DialogTitle").DialogTitleProps>;
|
23 | Actions: React.FunctionComponent<Pick<import("./DialogActions").DialogActionsProps, "children">> | React.ForwardRefExoticComponent<import("./DialogActions").DialogActionsProps>;
|
24 | Button: React.FunctionComponent<Pick<import("..").ButtonProps, "style" | "onLayout" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "raised" | "disabled" | "onPress" | "onLongPress" | "activeOpacity" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "hitSlop" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "pressRetentionOffset" | "hasTVPreferredFocus" | "tvParallaxProperties" | "touchSoundDisabled" | "background" | "useForeground" | "type" | "containerStyle" | "disabledStyle" | "title" | "icon" | "titleStyle" | "loading" | "titleProps" | "buttonStyle" | "loadingStyle" | "loadingProps" | "iconContainerStyle" | "iconRight" | "linearGradientProps" | "TouchableComponent" | "ViewComponent" | "disabledTitleStyle" | "iconPosition">> | React.ForwardRefExoticComponent<import("..").ButtonProps>;
|
25 | }) | (React.ForwardRefExoticComponent<DialogProps> & {
|
26 | Loading: React.FunctionComponent<Pick<import("./DialogLoading").DialogLoadingProps, "loadingStyle" | "loadingProps">> | React.ForwardRefExoticComponent<import("./DialogLoading").DialogLoadingProps>;
|
27 | Title: React.FunctionComponent<Pick<import("./DialogTitle").DialogTitleProps, "title" | "titleStyle" | "titleProps">> | React.ForwardRefExoticComponent<import("./DialogTitle").DialogTitleProps>;
|
28 | Actions: React.FunctionComponent<Pick<import("./DialogActions").DialogActionsProps, "children">> | React.ForwardRefExoticComponent<import("./DialogActions").DialogActionsProps>;
|
29 | Button: React.FunctionComponent<Pick<import("..").ButtonProps, "style" | "onLayout" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "raised" | "disabled" | "onPress" | "onLongPress" | "activeOpacity" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "hitSlop" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "pressRetentionOffset" | "hasTVPreferredFocus" | "tvParallaxProperties" | "touchSoundDisabled" | "background" | "useForeground" | "type" | "containerStyle" | "disabledStyle" | "title" | "icon" | "titleStyle" | "loading" | "titleProps" | "buttonStyle" | "loadingStyle" | "loadingProps" | "iconContainerStyle" | "iconRight" | "linearGradientProps" | "TouchableComponent" | "ViewComponent" | "disabledTitleStyle" | "iconPosition">> | React.ForwardRefExoticComponent<import("..").ButtonProps>;
|
30 | });
|
31 | export default ThemedDialog;
|