UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

34 lines (33 loc) 1.29 kB
import * as React from "react"; import { Entity, ResolvedArrayProperty, ResolvedStringProperty } from "../../../types"; import { PreviewSize } from "../../../preview"; /** * Field that allows to upload files to Google Cloud Storage. * * This is one of the internal components that get mapped natively inside forms * and tables to the specified properties. * @group Form fields */ export declare function TableStorageUpload(props: { propertyKey: string; error: Error | undefined; disabled: boolean; value: string | string[] | null; updateValue: (newValue: (string | string[] | null)) => void; selected: boolean; focused: boolean; property: ResolvedStringProperty | ResolvedArrayProperty<string[]>; entity: Entity<any>; path: string; previewSize: PreviewSize; openPopup?: (cellRect?: DOMRect) => void; onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>; }): import("react/jsx-runtime").JSX.Element; interface TableStorageItemPreviewProps { property: ResolvedStringProperty; value: string; size: PreviewSize; entity: Entity<any>; } export declare function TableStorageItemPreview({ property, value, size, entity }: TableStorageItemPreviewProps): import("react/jsx-runtime").JSX.Element; export {};