UNPKG

@essential-js/ui

Version:

EssentialJS UI

81 lines (71 loc) 2.7 kB
/************ Processor: ts ************/ import * as dependency_0 from 'react'; // FILE: controller\index.d.tsx declare namespace ns_controller_index { /// <reference types="react" /> interface Props { template: Array<any> | any; } function Controller({ template }: Props): JSX.Element; } // FILE: controller\model.d.ts declare namespace ns_controller_model { import React = dependency_0; class FormController { textarea: React.FC; radioItem: React.FC; checkItem: React.FC; default: React.FC; setComponent(type: string, component: React.Component): void; } const formController: FormController; } // FILE: input.d.tsx declare namespace ns_input { import InputHTMLAttributes = dependency_0.InputHTMLAttributes; interface Props extends Partial<InputHTMLAttributes<HTMLInputElement>> { label: string; inputClassName: string; after?: any; before?: any; } function Input({ label, after, before, inputClassName, ...props }: Props): JSX.Element; } // FILE: swtich.d.tsx declare namespace ns_swtich { import ButtonHTMLAttributes = dependency_0.ButtonHTMLAttributes; interface Props extends Partial<ButtonHTMLAttributes<HTMLButtonElement>> { checked: boolean; } function Switch({ checked, ...props }: Props): JSX.Element; } // FILE: textarea.d.tsx declare namespace ns_textarea { import TextareaHTMLAttributes = dependency_0.TextareaHTMLAttributes; interface Props extends Partial<TextareaHTMLAttributes<HTMLTextAreaElement>> { label: string; inputClassName?: string; } function Textarea({ label, inputClassName, ...props }: Props): JSX.Element; } // FILE: validate-input.d.tsx declare namespace ns_validateinput { import InputHTMLAttributes = dependency_0.InputHTMLAttributes; interface Props extends Partial<InputHTMLAttributes<HTMLInputElement>> { label: string; errorMessage: string; successMessage: string; isOk: boolean; inputClassName: string; } function ValidateInput({ isOk, label, errorMessage, successMessage, inputClassName, ...props }: Props): JSX.Element; } export import Controller = ns_controller_index.Controller; export import formController = ns_controller_model.formController; export import Input = ns_input.Input; export import Switch = ns_swtich.Switch; export import Textarea = ns_textarea.Textarea; export import ValidateInput = ns_validateinput.ValidateInput; export declare const hmr: {on: (event: string, listener: any) => void, off: (event: string, listener: any) => void };