UNPKG

@amsterdam/bmi-component-library

Version:

A React component library based on ASC and Material-UI aimed at repurposing and sharing components across BMI projects

91 lines 4.38 kB
/// <reference types="react" /> import type { Meta } from '@storybook/react'; import FileUpload from './FileUpload'; import { CustomFileOrRejection } from './hooks'; declare const meta: Meta<typeof FileUpload>; export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, { getPostUrl: (file: import("./hooks").CustomFile) => Promise<string>; getHeaders: () => Promise<{ [key: string]: string; }>; placeholder: string; droppingLabel: string; removeLabel: string; cancelLabel: string; selectFilesLabel: string; fileUploadErrorLabel: string; fileUploadInProgressLabel: string; fileListTitle?: string | undefined; removeCompletedFromList?: boolean | undefined; onFileNameClick?: ((file: import("./hooks").CustomFile) => void) | undefined; onFileRemove?: ((file: CustomFileOrRejection) => void) | undefined; onFileSuccess?: ((file: import("./hooks").CustomFile) => void) | undefined; options?: import("react-dropzone").DropzoneOptions | undefined; storedFiles?: CustomFileOrRejection[] | undefined; httpMethod?: "POST" | "PUT" | undefined; } & import("react").HTMLAttributes<HTMLDivElement>>; export declare const SingleFile: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, { getPostUrl: (file: import("./hooks").CustomFile) => Promise<string>; getHeaders: () => Promise<{ [key: string]: string; }>; placeholder: string; droppingLabel: string; removeLabel: string; cancelLabel: string; selectFilesLabel: string; fileUploadErrorLabel: string; fileUploadInProgressLabel: string; fileListTitle?: string | undefined; removeCompletedFromList?: boolean | undefined; onFileNameClick?: ((file: import("./hooks").CustomFile) => void) | undefined; onFileRemove?: ((file: CustomFileOrRejection) => void) | undefined; onFileSuccess?: ((file: import("./hooks").CustomFile) => void) | undefined; options?: import("react-dropzone").DropzoneOptions | undefined; storedFiles?: CustomFileOrRejection[] | undefined; httpMethod?: "POST" | "PUT" | undefined; } & import("react").HTMLAttributes<HTMLDivElement>>; export declare const Prepopulated: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, { getPostUrl: (file: import("./hooks").CustomFile) => Promise<string>; getHeaders: () => Promise<{ [key: string]: string; }>; placeholder: string; droppingLabel: string; removeLabel: string; cancelLabel: string; selectFilesLabel: string; fileUploadErrorLabel: string; fileUploadInProgressLabel: string; fileListTitle?: string | undefined; removeCompletedFromList?: boolean | undefined; onFileNameClick?: ((file: import("./hooks").CustomFile) => void) | undefined; onFileRemove?: ((file: CustomFileOrRejection) => void) | undefined; onFileSuccess?: ((file: import("./hooks").CustomFile) => void) | undefined; options?: import("react-dropzone").DropzoneOptions | undefined; storedFiles?: CustomFileOrRejection[] | undefined; httpMethod?: "POST" | "PUT" | undefined; } & import("react").HTMLAttributes<HTMLDivElement>>; export declare const RemoveCompleted: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, { getPostUrl: (file: import("./hooks").CustomFile) => Promise<string>; getHeaders: () => Promise<{ [key: string]: string; }>; placeholder: string; droppingLabel: string; removeLabel: string; cancelLabel: string; selectFilesLabel: string; fileUploadErrorLabel: string; fileUploadInProgressLabel: string; fileListTitle?: string | undefined; removeCompletedFromList?: boolean | undefined; onFileNameClick?: ((file: import("./hooks").CustomFile) => void) | undefined; onFileRemove?: ((file: CustomFileOrRejection) => void) | undefined; onFileSuccess?: ((file: import("./hooks").CustomFile) => void) | undefined; options?: import("react-dropzone").DropzoneOptions | undefined; storedFiles?: CustomFileOrRejection[] | undefined; httpMethod?: "POST" | "PUT" | undefined; } & import("react").HTMLAttributes<HTMLDivElement>>; export default meta; //# sourceMappingURL=FileUpload.stories.d.ts.map