UNPKG

3.87 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 useDrawerStyles: () => Record<string, import("../..").SystemStyleObject>;
5export { useDrawerStyles };
6export interface DrawerRootProviderBaseProps extends Assign<ArkDialog.RootProviderBaseProps, SlotRecipeProps<"drawer">>, UnstyledProp {
7}
8export interface DrawerRootProviderProps extends DrawerRootProviderBaseProps {
9 children: React.ReactNode;
10}
11export declare const DrawerRootProvider: import("react").FC<DrawerRootProviderProps>;
12export interface DrawerRootBaseProps extends Assign<ArkDialog.RootBaseProps, SlotRecipeProps<"drawer">>, UnstyledProp {
13}
14export interface DrawerRootProps extends DrawerRootBaseProps {
15 children: React.ReactNode;
16}
17export declare const DrawerRoot: import("react").FC<DrawerRootProps>;
18export declare const DrawerRootPropsProvider: React.Provider<DrawerRootBaseProps>;
19export interface DrawerTriggerProps extends HTMLChakraProps<"button", ArkDialog.TriggerBaseProps> {
20}
21export declare const DrawerTrigger: import("react").ForwardRefExoticComponent<DrawerTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
22export interface DrawerPositionerProps extends HTMLChakraProps<"div", ArkDialog.PositionerBaseProps> {
23}
24export declare const DrawerPositioner: import("react").ForwardRefExoticComponent<DrawerPositionerProps & import("react").RefAttributes<HTMLDivElement>>;
25export interface DrawerContentProps extends HTMLChakraProps<"section", ArkDialog.ContentBaseProps> {
26}
27export declare const DrawerContent: import("react").ForwardRefExoticComponent<DrawerContentProps & import("react").RefAttributes<HTMLDivElement>>;
28export interface DrawerDescriptionProps extends HTMLChakraProps<"p", ArkDialog.DescriptionBaseProps> {
29}
30export declare const DrawerDescription: import("react").ForwardRefExoticComponent<DrawerDescriptionProps & import("react").RefAttributes<HTMLDivElement>>;
31export interface DrawerTitleProps extends HTMLChakraProps<"h2", ArkDialog.TitleBaseProps> {
32}
33export declare const DrawerTitle: import("react").ForwardRefExoticComponent<DrawerTitleProps & import("react").RefAttributes<HTMLDivElement>>;
34export interface DrawerCloseTriggerProps extends HTMLChakraProps<"button", ArkDialog.CloseTriggerBaseProps> {
35}
36export declare const DrawerCloseTrigger: import("react").ForwardRefExoticComponent<DrawerCloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
37export interface DrawerActionTriggerProps extends HTMLChakraProps<"button"> {
38}
39export declare const DrawerActionTrigger: import("react").ForwardRefExoticComponent<DrawerActionTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
40export interface DrawerBackdropProps extends HTMLChakraProps<"div", ArkDialog.BackdropBaseProps> {
41}
42export declare const DrawerBackdrop: import("react").ForwardRefExoticComponent<DrawerBackdropProps & import("react").RefAttributes<HTMLDivElement>>;
43export interface DrawerBodyProps extends HTMLChakraProps<"div"> {
44}
45export declare const DrawerBody: import("react").ForwardRefExoticComponent<DrawerBodyProps & import("react").RefAttributes<HTMLDivElement>>;
46export interface DrawerFooterProps extends HTMLChakraProps<"footer"> {
47}
48export declare const DrawerFooter: import("react").ForwardRefExoticComponent<DrawerFooterProps & import("react").RefAttributes<HTMLDivElement>>;
49export interface DrawerHeaderProps extends HTMLChakraProps<"div"> {
50}
51export declare const DrawerHeader: import("react").ForwardRefExoticComponent<DrawerHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
52export declare const DrawerContext: (props: ArkDialog.ContextProps) => import("react").ReactNode;
53export interface DrawerOpenChangeDetails extends ArkDialog.OpenChangeDetails {
54}