UNPKG

@tomino/dynamic-form-semantic-ui

Version:

Semantic UI form renderer based on dynamic form generation

38 lines (37 loc) 1.26 kB
import * as React from 'react'; import { RouteComponentProps } from 'react-router-dom'; import { FormComponentProps, FormComponent } from '@tomino/dynamic-form'; export declare type ReactRouterProps = { disable: boolean; testRoute: string; }; export declare const ReactRouterProvider: React.FC<FormComponentProps<ReactRouterProps>>; export declare type RouteProps = { path: string; page: string; exact?: boolean; }; declare type PropAssignProps = FormComponentProps & RouteComponentProps<any> & { Component: any; }; export declare class PageView extends React.PureComponent<PropAssignProps> { assignParams(): void; componentWillMount(): void; componentWillUpdate(): void; render(): JSX.Element; } export declare const ReactRouterRoute: React.FC<FormComponentProps<RouteProps>>; export declare type SwitchProps = { config: RouteProps[]; }; export declare const ReactRouterSwitch: React.FC<FormComponentProps<SwitchProps>>; export declare type LinkProps = { text: string; url: string; }; export declare const ReactRouterLinkView: FormComponent<LinkProps>; export declare type RedirectProps = { url: string; }; export declare const ReactRouterRedirect: React.FC<FormComponentProps<LinkProps>>; export {};