UNPKG

5.28 kBTypeScriptView Raw
1import type { Assign } from "@ark-ui/react";
2import { FileUpload as ArkFileUpload } from "@ark-ui/react/file-upload";
3import { type HTMLChakraProps, type SlotRecipeProps, type UnstyledProp } from "../../styled-system";
4declare const useFileUploadStyles: () => Record<string, import("../..").SystemStyleObject>;
5export { useFileUploadStyles };
6export interface FileUploadRootProviderBaseProps extends Assign<ArkFileUpload.RootProviderBaseProps, SlotRecipeProps<"fileUpload">>, UnstyledProp {
7}
8export interface FileUploadRootProviderProps extends HTMLChakraProps<"div", FileUploadRootProviderBaseProps> {
9}
10export declare const FileUploadRootProvider: import("react").ForwardRefExoticComponent<FileUploadRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
11export interface FileUploadRootBaseProps extends Assign<ArkFileUpload.RootBaseProps, SlotRecipeProps<"fileUpload">>, UnstyledProp {
12}
13export interface FileUploadRootProps extends HTMLChakraProps<"div", FileUploadRootBaseProps> {
14}
15export declare const FileUploadRoot: import("react").ForwardRefExoticComponent<FileUploadRootProps & import("react").RefAttributes<HTMLDivElement>>;
16export declare const FileUploadPropsProvider: React.Provider<FileUploadRootBaseProps>;
17export interface FileUploadClearTriggerProps extends HTMLChakraProps<"button"> {
18}
19export declare const FileUploadClearTrigger: import("react").ForwardRefExoticComponent<FileUploadClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
20export interface FileUploadDropzoneProps extends HTMLChakraProps<"li", ArkFileUpload.DropzoneBaseProps> {
21}
22export declare const FileUploadDropzone: import("react").ForwardRefExoticComponent<FileUploadDropzoneProps & import("react").RefAttributes<HTMLDivElement>>;
23export interface FileUploadDropzoneContentProps extends HTMLChakraProps<"div"> {
24}
25export declare const FileUploadDropzoneContent: import("react").ForwardRefExoticComponent<FileUploadDropzoneContentProps & import("react").RefAttributes<HTMLDivElement>>;
26export interface FileUploadItemProps extends HTMLChakraProps<"li", ArkFileUpload.ItemBaseProps> {
27}
28export declare const FileUploadItem: import("react").ForwardRefExoticComponent<FileUploadItemProps & import("react").RefAttributes<HTMLLIElement>>;
29export interface FileUploadItemContentProps extends HTMLChakraProps<"div"> {
30}
31export declare const FileUploadItemContent: import("react").ForwardRefExoticComponent<FileUploadItemContentProps & import("react").RefAttributes<HTMLDivElement>>;
32export interface FileUploadItemDeleteTriggerProps extends HTMLChakraProps<"button", ArkFileUpload.ItemDeleteTriggerBaseProps> {
33}
34export declare const FileUploadItemDeleteTrigger: import("react").ForwardRefExoticComponent<FileUploadItemDeleteTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
35export interface FileUploadItemGroupProps extends HTMLChakraProps<"ul", ArkFileUpload.ItemGroupBaseProps> {
36}
37export declare const FileUploadItemGroup: import("react").ForwardRefExoticComponent<FileUploadItemGroupProps & import("react").RefAttributes<HTMLUListElement>>;
38export interface FileUploadItemNameProps extends HTMLChakraProps<"span", ArkFileUpload.ItemNameBaseProps> {
39}
40export declare const FileUploadItemName: import("react").ForwardRefExoticComponent<FileUploadItemNameProps & import("react").RefAttributes<HTMLSpanElement>>;
41export interface FileUploadItemPreviewProps extends HTMLChakraProps<"div", ArkFileUpload.ItemPreviewBaseProps> {
42}
43export declare const FileUploadItemPreview: import("react").ForwardRefExoticComponent<FileUploadItemPreviewProps & import("react").RefAttributes<HTMLDivElement>>;
44export interface FileUploadItemPreviewImageProps extends HTMLChakraProps<"img", ArkFileUpload.ItemPreviewImageBaseProps> {
45}
46export declare const FileUploadItemPreviewImage: import("react").ForwardRefExoticComponent<FileUploadItemPreviewImageProps & import("react").RefAttributes<HTMLImageElement>>;
47export interface FileUploadItemSizeTextProps extends HTMLChakraProps<"span", ArkFileUpload.ItemSizeTextBaseProps> {
48}
49export declare const FileUploadItemSizeText: import("react").ForwardRefExoticComponent<FileUploadItemSizeTextProps & import("react").RefAttributes<HTMLSpanElement>>;
50export interface FileUploadLabelProps extends HTMLChakraProps<"label", ArkFileUpload.LabelBaseProps> {
51}
52export declare const FileUploadLabel: import("react").ForwardRefExoticComponent<FileUploadLabelProps & import("react").RefAttributes<HTMLLabelElement>>;
53export interface FileUploadTriggerProps extends HTMLChakraProps<"button", ArkFileUpload.TriggerBaseProps> {
54}
55export declare const FileUploadTrigger: import("react").ForwardRefExoticComponent<FileUploadTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
56export declare const FileUploadContext: (props: ArkFileUpload.ContextProps) => import("react").ReactNode;
57export declare const FileUploadHiddenInput: import("react").ForwardRefExoticComponent<ArkFileUpload.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
58export interface FileUploadFileAcceptDetails extends ArkFileUpload.FileAcceptDetails {
59}
60export interface FileUploadFileRejectDetails extends ArkFileUpload.FileRejectDetails {
61}
62export interface FileUploadFileChangeDetails extends ArkFileUpload.FileChangeDetails {
63}