UNPKG

3.86 kBTypeScriptView Raw
1import type { Assign } from "@ark-ui/react";
2import { Dialog as ArkDialog } from "@ark-ui/react/dialog";
3import { type HTMLChakraProps, type SlotRecipeProps, type UnstyledProp } from "../../styled-system";
4declare const useDialogStyles: () => Record<string, import("../..").SystemStyleObject>;
5export { useDialogStyles };
6export interface DialogRootProviderBaseProps extends Assign<ArkDialog.RootProviderProps, SlotRecipeProps<"dialog">>, UnstyledProp {
7}
8export interface DialogRootProviderProps extends DialogRootProviderBaseProps {
9 children: React.ReactNode;
10}
11export declare const DialogRootProvider: import("react").FC<DialogRootProviderProps>;
12export interface DialogRootBaseProps extends Assign<ArkDialog.RootProps, SlotRecipeProps<"dialog">>, UnstyledProp {
13}
14export interface DialogRootProps extends DialogRootBaseProps {
15 children: React.ReactNode;
16}
17export declare const DialogRoot: import("react").FC<DialogRootProps>;
18export declare const DialogPropsProvider: React.Provider<DialogRootBaseProps>;
19export interface DialogTriggerProps extends HTMLChakraProps<"button", ArkDialog.TriggerBaseProps> {
20}
21export declare const DialogTrigger: import("react").ForwardRefExoticComponent<DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
22export interface DialogPositionerProps extends HTMLChakraProps<"div", ArkDialog.PositionerBaseProps> {
23}
24export declare const DialogPositioner: import("react").ForwardRefExoticComponent<DialogPositionerProps & import("react").RefAttributes<HTMLDivElement>>;
25export interface DialogContentProps extends HTMLChakraProps<"section", ArkDialog.ContentBaseProps> {
26}
27export declare const DialogContent: import("react").ForwardRefExoticComponent<DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
28export interface DialogDescriptionProps extends HTMLChakraProps<"p", ArkDialog.DescriptionBaseProps> {
29}
30export declare const DialogDescription: import("react").ForwardRefExoticComponent<DialogDescriptionProps & import("react").RefAttributes<HTMLDivElement>>;
31export interface DialogTitleProps extends HTMLChakraProps<"h2", ArkDialog.TitleBaseProps> {
32}
33export declare const DialogTitle: import("react").ForwardRefExoticComponent<DialogTitleProps & import("react").RefAttributes<HTMLDivElement>>;
34export interface DialogCloseTriggerProps extends HTMLChakraProps<"button", ArkDialog.CloseTriggerBaseProps> {
35}
36export declare const DialogCloseTrigger: import("react").ForwardRefExoticComponent<DialogCloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
37export interface DialogActionTriggerProps extends HTMLChakraProps<"button"> {
38}
39export declare const DialogActionTrigger: import("react").ForwardRefExoticComponent<DialogActionTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
40export interface DialogBackdropProps extends HTMLChakraProps<"div", ArkDialog.BackdropBaseProps> {
41}
42export declare const DialogBackdrop: import("react").ForwardRefExoticComponent<DialogBackdropProps & import("react").RefAttributes<HTMLDivElement>>;
43export interface DialogBodyProps extends HTMLChakraProps<"div"> {
44}
45export declare const DialogBody: import("react").ForwardRefExoticComponent<DialogBodyProps & import("react").RefAttributes<HTMLDivElement>>;
46export interface DialogFooterProps extends HTMLChakraProps<"footer"> {
47}
48export declare const DialogFooter: import("react").ForwardRefExoticComponent<DialogFooterProps & import("react").RefAttributes<HTMLDivElement>>;
49export interface DialogHeaderProps extends HTMLChakraProps<"div"> {
50}
51export declare const DialogHeader: import("react").ForwardRefExoticComponent<DialogHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
52export declare const DialogContext: (props: ArkDialog.ContextProps) => import("react").ReactNode;
53export interface DialogOpenChangeDetails extends ArkDialog.OpenChangeDetails {
54}