UNPKG

@blocktion/json-to-table

Version:

A powerful, modular React component for converting JSON data to navigable tables with advanced features like automatic column detection, theming, and sub-table navigation. Part of the Blocktion SaaS project ecosystem.

18 lines (17 loc) 1.1 kB
import React from "react"; import { EditableColumn } from "../types/editing"; interface FieldEditorProps { value: unknown; onChange: (value: unknown) => void; onKeyDown?: (e: React.KeyboardEvent) => void; onBlur?: () => void; className?: string; [key: string]: any; } export declare const TextEditor: React.ForwardRefExoticComponent<Omit<FieldEditorProps, "ref"> & React.RefAttributes<HTMLInputElement>>; export declare const NumberEditor: React.ForwardRefExoticComponent<Omit<FieldEditorProps, "ref"> & React.RefAttributes<HTMLInputElement>>; export declare const BooleanEditor: React.ForwardRefExoticComponent<Omit<FieldEditorProps, "ref"> & React.RefAttributes<HTMLSelectElement>>; export declare const DateEditor: React.ForwardRefExoticComponent<Omit<FieldEditorProps, "ref"> & React.RefAttributes<HTMLInputElement>>; export declare const SelectEditor: React.ForwardRefExoticComponent<Omit<FieldEditorProps, "ref"> & React.RefAttributes<HTMLSelectElement>>; export declare const createFieldEditor: (column: EditableColumn) => React.ComponentType<FieldEditorProps>; export {};