Blame view

天文台pc/tianwentai-ui/node_modules/@radix-ui/react-dialog/dist/index.d.ts 5.08 KB
bc518174   王天杨   提交两个项目文件
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
  import * as _radix_ui_react_context from '@radix-ui/react-context';
  import * as React from 'react';
  import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
  import { FocusScope } from '@radix-ui/react-focus-scope';
  import { Portal as Portal$1 } from '@radix-ui/react-portal';
  import { Primitive } from '@radix-ui/react-primitive';
  
  declare const createDialogScope: _radix_ui_react_context.CreateScope;
  interface DialogProps {
      children?: React.ReactNode;
      open?: boolean;
      defaultOpen?: boolean;
      onOpenChange?(open: boolean): void;
      modal?: boolean;
  }
  declare const Dialog: React.FC<DialogProps>;
  type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
  interface DialogTriggerProps extends PrimitiveButtonProps {
  }
  declare const DialogTrigger: React.ForwardRefExoticComponent<DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
  type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>;
  interface DialogPortalProps {
      children?: React.ReactNode;
      /**
       * Specify a container element to portal the content into.
       */
      container?: PortalProps['container'];
      /**
       * Used to force mounting when more control is needed. Useful when
       * controlling animation with React animation libraries.
       */
      forceMount?: true;
  }
  declare const DialogPortal: React.FC<DialogPortalProps>;
  interface DialogOverlayProps extends DialogOverlayImplProps {
      /**
       * Used to force mounting when more control is needed. Useful when
       * controlling animation with React animation libraries.
       */
      forceMount?: true;
  }
  declare const DialogOverlay: React.ForwardRefExoticComponent<DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
  type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
  interface DialogOverlayImplProps extends PrimitiveDivProps {
  }
  interface DialogContentProps extends DialogContentTypeProps {
      /**
       * Used to force mounting when more control is needed. Useful when
       * controlling animation with React animation libraries.
       */
      forceMount?: true;
  }
  declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
  interface DialogContentTypeProps extends Omit<DialogContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
  }
  type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
  type FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>;
  interface DialogContentImplProps extends Omit<DismissableLayerProps, 'onDismiss'> {
      /**
       * When `true`, focus cannot escape the `Content` via keyboard,
       * pointer, or a programmatic focus.
       * @defaultValue false
       */
      trapFocus?: FocusScopeProps['trapped'];
      /**
       * Event handler called when auto-focusing on open.
       * Can be prevented.
       */
      onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
      /**
       * Event handler called when auto-focusing on close.
       * Can be prevented.
       */
      onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
  }
  type PrimitiveHeading2Props = React.ComponentPropsWithoutRef<typeof Primitive.h2>;
  interface DialogTitleProps extends PrimitiveHeading2Props {
  }
  declare const DialogTitle: React.ForwardRefExoticComponent<DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
  type PrimitiveParagraphProps = React.ComponentPropsWithoutRef<typeof Primitive.p>;
  interface DialogDescriptionProps extends PrimitiveParagraphProps {
  }
  declare const DialogDescription: React.ForwardRefExoticComponent<DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
  interface DialogCloseProps extends PrimitiveButtonProps {
  }
  declare const DialogClose: React.ForwardRefExoticComponent<DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
  declare const WarningProvider: React.FC<{
      contentName: string;
      titleName: string;
      docsSlug: string;
  } & {
      children: React.ReactNode;
  }>;
  declare const Root: React.FC<DialogProps>;
  declare const Trigger: React.ForwardRefExoticComponent<DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
  declare const Portal: React.FC<DialogPortalProps>;
  declare const Overlay: React.ForwardRefExoticComponent<DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
  declare const Content: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
  declare const Title: React.ForwardRefExoticComponent<DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
  declare const Description: React.ForwardRefExoticComponent<DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
  declare const Close: React.ForwardRefExoticComponent<DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
  
  export { Close, Content, Description, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Overlay, Portal, Root, Title, Trigger, WarningProvider, createDialogScope };