UNPKG

@canard/schema-form

Version:

React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components

95 lines (94 loc) 3.77 kB
export declare const formTypeDefinitions: ({ Component: ({ node, readOnly, disabled, ChildNodeComponents, style, }: import("../types").FormTypeInputProps<any[]>) => import("react/jsx-runtime").JSX.Element; test: { type: "array"; }; } | { Component: ({ path, name, readOnly, disabled, defaultValue, onChange, style, className, }: import("../types").FormTypeInputProps<boolean>) => import("react/jsx-runtime").JSX.Element; test: { type: "boolean"; }; } | { Component: ({ path, name, jsonSchema, readOnly, disabled, defaultValue, onChange, style, className, }: import("../types").FormTypeInputPropsWithSchema<string, { type: "string"; format: "month" | "week" | "date" | "date-time" | "time"; options?: { minimum?: string; maximum?: string; }; }>) => import("react/jsx-runtime").JSX.Element; test: ({ jsonSchema }: import("../types").Hint) => boolean; } | { Component: ({ path, name, jsonSchema, readOnly, disabled, defaultValue, onChange, style, className, }: import("../types").FormTypeInputProps<number>) => import("react/jsx-runtime").JSX.Element; test: { type: ("number" | "integer")[]; }; } | { Component: ({ ChildNodeComponents, }: import("../types").FormTypeInputProps<object>) => import("react/jsx-runtime").JSX.Element; test: { type: "object"; }; } | { Component: ({ path, name, readOnly, disabled, jsonSchema, defaultValue, onChange, style, className, }: import("../types").FormTypeInputProps<string>) => import("react/jsx-runtime").JSX.Element; test: { type: "string"; }; } | { Component: ({ path, name, jsonSchema, readOnly, disabled, defaultValue, onChange, context, style, className, }: import("../types").FormTypeInputPropsWithSchema<string[], { type: "array"; items: { type: "string"; enum?: string[]; options?: { alias?: { [label: string]: import("react").ReactNode; }; }; }; options?: { alias?: { [label: string]: import("react").ReactNode; }; }; }, { checkboxLabels?: { [label: string]: import("react").ReactNode; }; }>) => import("react/jsx-runtime").JSX.Element; test: ({ jsonSchema }: import("../types").Hint) => boolean; } | { Component: ({ path, name, jsonSchema, defaultValue, onChange, readOnly, disabled, context, style, className, }: import("../types").FormTypeInputPropsWithSchema<string, { type: "string"; enum?: string[]; options?: { alias?: { [label: string]: import("react").ReactNode; }; }; }, { enumLabels?: { [label: string]: import("react").ReactNode; }; }>) => import("react/jsx-runtime").JSX.Element; test: ({ jsonSchema }: import("../types").Hint) => boolean; } | { Component: ({ path, name, jsonSchema, readOnly, disabled, defaultValue, onChange, context, style, className, }: import("../types").FormTypeInputPropsWithSchema<string, { type: "string"; enum?: string[]; options?: { alias?: { [label: string]: import("react").ReactNode; }; }; }, { radioLabels?: { [label: string]: import("react").ReactNode; }; }>) => import("react/jsx-runtime").JSX.Element; test: ({ jsonSchema }: import("../types").Hint) => boolean; } | { Component: ({ ChildNodeComponents, }: import("../types").FormTypeInputProps<object>) => import("react/jsx-runtime").JSX.Element; test: { type: "virtual"; }; })[];