UNPKG

4.46 kBTypeScriptView Raw
1import type { Assign } from "@ark-ui/react";
2import { Popover as ArkPopover } from "@ark-ui/react/popover";
3import { type HTMLChakraProps, type SlotRecipeProps, type UnstyledProp } from "../../styled-system";
4declare const usePopoverStyles: () => Record<string, import("../..").SystemStyleObject>;
5export { usePopoverStyles };
6export interface PopoverRootProviderBaseProps extends Assign<ArkPopover.RootProviderBaseProps, SlotRecipeProps<"popover">>, UnstyledProp {
7}
8export interface PopoverRootProviderProps extends PopoverRootProviderBaseProps {
9 children: React.ReactNode;
10}
11export declare const PopoverRootProvider: import("react").FC<PopoverRootProviderProps>;
12export interface PopoverRootBaseProps extends Assign<ArkPopover.RootBaseProps, SlotRecipeProps<"popover">>, UnstyledProp {
13}
14export interface PopoverRootProps extends PopoverRootBaseProps {
15 children: React.ReactNode;
16}
17export declare const PopoverRoot: import("react").FC<PopoverRootProps>;
18export declare const PopoverPropsProvider: React.Provider<PopoverRootBaseProps>;
19export interface PopoverTriggerProps extends HTMLChakraProps<"button", ArkPopover.TriggerBaseProps> {
20}
21export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
22export interface PopoverPositionerProps extends HTMLChakraProps<"div", ArkPopover.PositionerBaseProps> {
23}
24export declare const PopoverPositioner: import("react").ForwardRefExoticComponent<PopoverPositionerProps & import("react").RefAttributes<HTMLDivElement>>;
25export interface PopoverContentProps extends HTMLChakraProps<"div", ArkPopover.ContentBaseProps> {
26}
27export declare const PopoverContent: import("react").ForwardRefExoticComponent<PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>;
28export interface PopoverArrowProps extends HTMLChakraProps<"div", ArkPopover.ArrowBaseProps> {
29}
30export declare const PopoverArrow: import("react").ForwardRefExoticComponent<PopoverArrowProps & import("react").RefAttributes<HTMLDivElement>>;
31export interface PopoverArrowTipProps extends HTMLChakraProps<"div", ArkPopover.ArrowTipBaseProps> {
32}
33export declare const PopoverArrowTip: import("react").ForwardRefExoticComponent<PopoverArrowTipProps & import("react").RefAttributes<HTMLDivElement>>;
34export interface PopoverCloseTriggerProps extends HTMLChakraProps<"button", ArkPopover.CloseTriggerBaseProps> {
35}
36export declare const PopoverCloseTrigger: import("react").ForwardRefExoticComponent<PopoverCloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
37export interface PopoverIndicatorProps extends HTMLChakraProps<"div", ArkPopover.IndicatorBaseProps> {
38}
39export declare const PopoverIndicator: import("react").ForwardRefExoticComponent<PopoverIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
40export interface PopoverTitleProps extends HTMLChakraProps<"div", ArkPopover.TitleBaseProps> {
41}
42export declare const PopoverTitle: import("react").ForwardRefExoticComponent<PopoverTitleProps & import("react").RefAttributes<HTMLDivElement>>;
43export interface PopoverDescriptionProps extends HTMLChakraProps<"div", ArkPopover.DescriptionBaseProps> {
44}
45export declare const PopoverDescription: import("react").ForwardRefExoticComponent<PopoverDescriptionProps & import("react").RefAttributes<HTMLDivElement>>;
46export interface PopoverFooterProps extends HTMLChakraProps<"footer"> {
47}
48export declare const PopoverFooter: import("react").ForwardRefExoticComponent<PopoverFooterProps & import("react").RefAttributes<HTMLDivElement>>;
49export interface PopoverHeaderProps extends HTMLChakraProps<"div", ArkPopover.TitleBaseProps> {
50}
51export declare const PopoverHeader: import("react").ForwardRefExoticComponent<PopoverHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
52export interface PopoverBodyProps extends HTMLChakraProps<"div"> {
53}
54export declare const PopoverBody: import("react").ForwardRefExoticComponent<PopoverBodyProps & import("react").RefAttributes<HTMLDivElement>>;
55export interface PopoverAnchorProps extends HTMLChakraProps<"div", ArkPopover.AnchorBaseProps> {
56}
57export declare const PopoverAnchor: import("react").ForwardRefExoticComponent<PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
58export declare const PopoverContext: (props: ArkPopover.ContextProps) => import("react").ReactNode;
59export interface PopoverOpenChangeDetails extends ArkPopover.OpenChangeDetails {
60}