UNPKG

3.49 kBTypeScriptView Raw
1import type { Assign } from "@ark-ui/react";
2import { Editable as ArkEditable } from "@ark-ui/react/editable";
3import { type HTMLChakraProps, type SlotRecipeProps, type UnstyledProp } from "../../styled-system";
4declare const useEditableStyles: () => Record<string, import("../..").SystemStyleObject>;
5export { useEditableStyles };
6export interface EditableRootProviderBaseProps extends Assign<ArkEditable.RootProviderBaseProps, SlotRecipeProps<"editable">>, UnstyledProp {
7}
8export interface EditableRootProviderProps extends HTMLChakraProps<"div", EditableRootProviderBaseProps> {
9}
10export declare const EditableRootProvider: import("react").ForwardRefExoticComponent<EditableRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
11export interface EditableRootBaseProps extends Assign<ArkEditable.RootBaseProps, SlotRecipeProps<"editable">>, UnstyledProp {
12}
13export interface EditableRootProps extends HTMLChakraProps<"div", EditableRootBaseProps> {
14}
15export declare const EditableRoot: import("react").ForwardRefExoticComponent<EditableRootProps & import("react").RefAttributes<HTMLDivElement>>;
16export declare const EditablePropsProvider: React.Provider<EditableRootBaseProps>;
17export interface EditablePreviewProps extends HTMLChakraProps<"span", ArkEditable.PreviewBaseProps> {
18}
19export declare const EditablePreview: import("react").ForwardRefExoticComponent<EditablePreviewProps & import("react").RefAttributes<HTMLSpanElement>>;
20export interface EditableInputProps extends HTMLChakraProps<"input", ArkEditable.InputBaseProps> {
21}
22export declare const EditableInput: import("react").ForwardRefExoticComponent<EditableInputProps & import("react").RefAttributes<HTMLInputElement>>;
23export interface EditableTextareaProps extends HTMLChakraProps<"textarea", ArkEditable.InputBaseProps> {
24}
25export declare const EditableTextarea: import("react").ForwardRefExoticComponent<EditableTextareaProps & import("react").RefAttributes<HTMLInputElement>>;
26export interface EditableControlProps extends HTMLChakraProps<"div", ArkEditable.ControlBaseProps> {
27}
28export declare const EditableControl: import("react").ForwardRefExoticComponent<EditableControlProps & import("react").RefAttributes<HTMLDivElement>>;
29export interface EditableAreaProps extends HTMLChakraProps<"div", ArkEditable.AreaBaseProps> {
30}
31export declare const EditableArea: import("react").ForwardRefExoticComponent<EditableAreaProps & import("react").RefAttributes<HTMLDivElement>>;
32export interface EditableEditTriggerProps extends HTMLChakraProps<"button", ArkEditable.EditTriggerBaseProps> {
33}
34export declare const EditableEditTrigger: import("react").ForwardRefExoticComponent<EditableEditTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
35export interface EditableSubmitTriggerProps extends HTMLChakraProps<"button", ArkEditable.SubmitTriggerBaseProps> {
36}
37export declare const EditableSubmitTrigger: import("react").ForwardRefExoticComponent<EditableSubmitTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
38export interface EditableCancelTriggerProps extends HTMLChakraProps<"button", ArkEditable.CancelTriggerBaseProps> {
39}
40export declare const EditableCancelTrigger: import("react").ForwardRefExoticComponent<EditableCancelTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
41export declare const EditableContext: (props: ArkEditable.ContextProps) => import("react").ReactNode;
42export interface EditableValueChangeDetails extends ArkEditable.ValueChangeDetails {
43}