UNPKG

5.86 kBTypeScriptView Raw
1import type { Assign } from "@ark-ui/react";
2import { Menu as ArkMenu } from "@ark-ui/react/menu";
3import { type HTMLChakraProps, type SlotRecipeProps, type UnstyledProp } from "../../styled-system";
4declare const useMenuStyles: () => Record<string, import("../..").SystemStyleObject>;
5export { useMenuStyles };
6export interface MenuRootProviderBaseProps extends Assign<ArkMenu.RootProviderBaseProps, SlotRecipeProps<"menu">>, UnstyledProp {
7}
8export interface MenuRootProviderProps extends MenuRootProviderBaseProps {
9 children: React.ReactNode;
10}
11export declare const MenuRootProvider: import("react").FC<MenuRootProviderProps>;
12export interface MenuRootBaseProps extends Assign<ArkMenu.RootBaseProps, SlotRecipeProps<"menu">>, UnstyledProp {
13}
14export interface MenuRootProps extends MenuRootBaseProps {
15 children: React.ReactNode;
16}
17export declare const MenuRoot: import("react").FC<MenuRootProps>;
18export declare const MenuPropsProvider: React.Provider<MenuRootBaseProps>;
19export interface MenuTriggerProps extends HTMLChakraProps<"button", ArkMenu.TriggerBaseProps> {
20}
21export declare const MenuTrigger: import("react").ForwardRefExoticComponent<MenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
22export interface MenuContextTriggerProps extends HTMLChakraProps<"div", ArkMenu.ContextTriggerBaseProps> {
23}
24export declare const MenuContextTrigger: import("react").ForwardRefExoticComponent<MenuContextTriggerProps & import("react").RefAttributes<HTMLElement>>;
25export interface MenuPositionerProps extends HTMLChakraProps<"div", ArkMenu.PositionerBaseProps> {
26}
27export declare const MenuPositioner: import("react").ForwardRefExoticComponent<MenuPositionerProps & import("react").RefAttributes<HTMLDivElement>>;
28export interface MenuSeparatorProps extends HTMLChakraProps<"div", ArkMenu.SeparatorBaseProps> {
29}
30export declare const MenuSeparator: import("react").ForwardRefExoticComponent<MenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>>;
31export interface MenuContentProps extends HTMLChakraProps<"div", ArkMenu.ContentBaseProps> {
32}
33export declare const MenuContent: import("react").ForwardRefExoticComponent<MenuContentProps & import("react").RefAttributes<HTMLDivElement>>;
34export interface MenuArrowProps extends HTMLChakraProps<"div", ArkMenu.ArrowBaseProps> {
35}
36export declare const MenuArrow: import("react").ForwardRefExoticComponent<MenuArrowProps & import("react").RefAttributes<HTMLDivElement>>;
37export interface MenuArrowTipProps extends HTMLChakraProps<"div", ArkMenu.ArrowTipBaseProps> {
38}
39export declare const MenuArrowTip: import("react").ForwardRefExoticComponent<MenuArrowTipProps & import("react").RefAttributes<HTMLDivElement>>;
40export interface MenuIndicatorProps extends HTMLChakraProps<"div", ArkMenu.IndicatorBaseProps> {
41}
42export declare const MenuIndicator: import("react").ForwardRefExoticComponent<MenuIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
43export interface MenuItemGroupProps extends HTMLChakraProps<"div", ArkMenu.ItemGroupBaseProps> {
44}
45export declare const MenuItemGroup: import("react").ForwardRefExoticComponent<MenuItemGroupProps & import("react").RefAttributes<HTMLDivElement>>;
46export interface MenuItemGroupLabelProps extends HTMLChakraProps<"div", ArkMenu.ItemGroupLabelBaseProps> {
47}
48export declare const MenuItemGroupLabel: import("react").ForwardRefExoticComponent<MenuItemGroupLabelProps & import("react").RefAttributes<HTMLDivElement>>;
49export interface MenuItemProps extends HTMLChakraProps<"div", ArkMenu.ItemBaseProps> {
50}
51export declare const MenuItem: import("react").ForwardRefExoticComponent<MenuItemProps & import("react").RefAttributes<HTMLDivElement>>;
52export interface MenuTriggerItemProps extends HTMLChakraProps<"div", ArkMenu.TriggerItemBaseProps> {
53}
54export declare const MenuTriggerItem: import("react").ForwardRefExoticComponent<MenuTriggerItemProps & import("react").RefAttributes<HTMLDivElement>>;
55export interface MenuItemTextProps extends HTMLChakraProps<"div", ArkMenu.ItemTextBaseProps> {
56}
57export declare const MenuItemText: import("react").ForwardRefExoticComponent<MenuItemTextProps & import("react").RefAttributes<HTMLDivElement>>;
58export interface MenuItemCommandProps extends HTMLChakraProps<"kbd"> {
59}
60export declare const MenuItemCommand: import("react").ForwardRefExoticComponent<MenuItemCommandProps & import("react").RefAttributes<HTMLElement>>;
61export interface MenuItemIndicatorProps extends HTMLChakraProps<"div", ArkMenu.ItemIndicatorBaseProps> {
62}
63export declare const MenuItemIndicator: import("react").ForwardRefExoticComponent<MenuItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
64export interface MenuCheckboxItemProps extends HTMLChakraProps<"div", ArkMenu.CheckboxItemBaseProps> {
65}
66export declare const MenuCheckboxItem: import("react").ForwardRefExoticComponent<MenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>>;
67export interface MenuRadioItemGroupProps extends HTMLChakraProps<"div", ArkMenu.RadioItemGroupBaseProps> {
68}
69export declare const MenuRadioItemGroup: import("react").ForwardRefExoticComponent<MenuRadioItemGroupProps & import("react").RefAttributes<HTMLDivElement>>;
70export interface MenuRadioItemProps extends HTMLChakraProps<"div", ArkMenu.RadioItemBaseProps> {
71}
72export declare const MenuRadioItem: import("react").ForwardRefExoticComponent<MenuRadioItemProps & import("react").RefAttributes<HTMLDivElement>>;
73export declare const MenuContext: (props: ArkMenu.ContextProps) => import("react").ReactNode;
74export declare const MenuItemContext: (props: ArkMenu.ItemContextProps) => import("react").ReactNode;
75export interface MenuOpenChangeDetails extends ArkMenu.OpenChangeDetails {
76}
77export interface MenuSelectionDetails extends ArkMenu.SelectionDetails {
78}
79export interface MenuHighlightChangeDetails extends ArkMenu.HighlightChangeDetails {
80}