UNPKG

reakit

Version:

Toolkit for building accessible rich web apps with React

34 lines (33 loc) 2.44 kB
import * as React from "react"; import { DisclosureOptions, DisclosureHTMLProps } from "../Disclosure/Disclosure"; import { DialogStateReturn } from "./DialogState"; export declare type DialogDisclosureOptions = DisclosureOptions & Pick<Partial<DialogStateReturn>, "unstable_disclosureRef"> & Pick<DialogStateReturn, "toggle">; export declare type DialogDisclosureHTMLProps = DisclosureHTMLProps; export declare type DialogDisclosureProps = DialogDisclosureOptions & DialogDisclosureHTMLProps; export declare const useDialogDisclosure: { (options?: DialogDisclosureOptions | undefined, htmlProps?: import("..").ButtonHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): import("..").ButtonHTMLProps; unstable_propsAreEqual: (prev: import("..").RoleOptions & { disabled?: boolean | undefined; focusable?: boolean | undefined; } & { unstable_clickOnEnter?: boolean | undefined; unstable_clickOnSpace?: boolean | undefined; } & Pick<Partial<import("..").DisclosureStateReturn>, "visible"> & Pick<import("..").DisclosureStateReturn, "toggle" | "baseId"> & Pick<Partial<DialogStateReturn>, "unstable_disclosureRef"> & Pick<DialogStateReturn, "toggle"> & React.HTMLAttributes<any> & React.RefAttributes<any> & { wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined; } & { disabled?: boolean | undefined; } & React.ButtonHTMLAttributes<any>, next: import("..").RoleOptions & { disabled?: boolean | undefined; focusable?: boolean | undefined; } & { unstable_clickOnEnter?: boolean | undefined; unstable_clickOnSpace?: boolean | undefined; } & Pick<Partial<import("..").DisclosureStateReturn>, "visible"> & Pick<import("..").DisclosureStateReturn, "toggle" | "baseId"> & Pick<Partial<DialogStateReturn>, "unstable_disclosureRef"> & Pick<DialogStateReturn, "toggle"> & React.HTMLAttributes<any> & React.RefAttributes<any> & { wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined; } & { disabled?: boolean | undefined; } & React.ButtonHTMLAttributes<any>) => boolean; __keys: readonly any[]; __useOptions: (options: DialogDisclosureOptions, htmlProps: import("..").ButtonHTMLProps) => DialogDisclosureOptions; }; export declare const DialogDisclosure: import("reakit-system/ts/createComponent").Component<"button", DialogDisclosureOptions>;