@essential-js/ui
Version:
EssentialJS UI
83 lines (73 loc) • 2.53 kB
TypeScript
/************
Processor: ts
************/
import * as dependency_0 from 'react';
// FILE: confirm.d.tsx
declare namespace ns_confirm {
/// <reference types="react" />
interface Props extends Partial<HTMLElement> {
title: string;
onHide: () => void;
onConfirm: () => void;
onCancel: () => void;
cancelText: string;
confirmText: string;
children: any;
}
function ConfirmModal({ children, title, onConfirm, onCancel, cancelText, confirmText, onHide, }: Props): JSX.Element;
}
// FILE: error.d.tsx
declare namespace ns_error {
/// <reference types="react" />
interface Props extends Partial<HTMLElement> {
title: string;
onHide: () => void;
children: any;
}
function ErrorModal({ children, title, onHide }: Props): JSX.Element;
}
// FILE: header.d.tsx
declare namespace ns_header {
import HTMLAttributes = dependency_0.HTMLAttributes;
interface Props extends Partial<HTMLAttributes<HTMLElement>> {
title: string;
onHide: () => void;
closeable?: boolean;
icon?: any;
}
function Header({ title, icon, onHide, className, closeable, ...props }: Props): JSX.Element;
}
// FILE: index.d.tsx
declare namespace ns_index {
import HTMLAttributes = dependency_0.HTMLAttributes;
interface Props extends Partial<HTMLAttributes<HTMLElement>> {
onHide?: () => void;
}
function Modal({ onHide, children, className, ...props }: Props): JSX.Element;
}
// FILE: info.d.tsx
declare namespace ns_info {
/// <reference types="react" />
interface Props extends Partial<HTMLElement> {
title: string;
children: any;
onHide: () => void;
}
function InfoModal({ children, title, onHide }: Props): JSX.Element;
}
// FILE: success.d.tsx
declare namespace ns_success {
/// <reference types="react" />
interface Props extends Partial<HTMLElement> {
title: string;
onHide: () => void;
children: any;
}
function SuccessModal({ children, title, onHide }: Props): JSX.Element;
}
export import ConfirmModal = ns_confirm.ConfirmModal;
export import ErrorModal = ns_error.ErrorModal;
export import Modal = ns_index.Modal;
export import InfoModal = ns_info.InfoModal;
export import SuccessModal = ns_success.SuccessModal;
export declare const hmr: {on: (event: string, listener: any) => void, off: (event: string, listener: any) => void };