UNPKG

@devfamily/admiral

Version:

Admiral is a frontend framework for creating back office using React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.

45 lines (44 loc) 1.85 kB
import { SelectLocale } from '../ui/Select/interfaces'; import { PickerLocale } from '../ui/DatePicker/generatePicker/interfaces'; import { EditorLocaleType } from '../ui/Editor/interfaces'; import { UploadLocale } from '../ui/Upload/interfaces'; export declare type Locale = { successMessage: string; serverErrorMessage: string; fields: { array?: ArrayInputLocale; editor?: EditorLocaleType; datePicker?: PickerLocale; select?: SelectLocale; upload?: UploadLocale; }; }; export declare type ArrayInputLocale = { add: string; remove: string; }; export declare const INPUT_NAMES: { readonly array: "ArrayInput"; readonly boolean: "BooleanInput"; readonly colorPicker: "ColorPickerInput"; readonly datePicker: "DatePickerInput"; readonly dateRangePicker: "DateRangePickerInput"; readonly dragger: "DraggerInput"; readonly editor: "EditorInput"; readonly filePicture: "FilePictureInput"; readonly multilineText: "MultilineTextInput"; readonly password: "PasswordInput"; readonly select: "SelectInput"; readonly text: "TextInput"; readonly timePicker: "TimePickerInput"; readonly slug: "SlugInput"; readonly translatable: "TranslatableInput"; readonly ajaxSelectInput: "AjaxSelectInput"; readonly radio: "RadioInput"; }; declare const inputTypes: ("ArrayInput" | "BooleanInput" | "ColorPickerInput" | "DatePickerInput" | "DateRangePickerInput" | "DraggerInput" | "EditorInput" | "FilePictureInput" | "MultilineTextInput" | "PasswordInput" | "SelectInput" | "TextInput" | "TimePickerInput" | "SlugInput" | "TranslatableInput" | "AjaxSelectInput" | "RadioInput")[]; export declare type FormInputType = typeof inputTypes[number]; export declare type InputComponentWithName<T> = T & { inputName: FormInputType; }; export {};