eros-sdk-react
Version:
eros sdk
39 lines (31 loc) • 1.96 kB
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import React__default, { ReactNode, PropsWithChildren } from 'react';
import { i as InputProps, B as ButtonProps, j as ModalProps, M as ModalWithHeaderProps, k as PopoverProps } from './types-BrVeC0c8.js';
declare function Field({ label, children, error, required, className }: {
label: ReactNode;
error?: ReactNode;
required?: boolean;
className?: string;
} & PropsWithChildren): react_jsx_runtime.JSX.Element;
declare function Input({ onChange, type, after, showLength, showClear, className, rows, maxRows, children, ...props }: InputProps & PropsWithChildren): react_jsx_runtime.JSX.Element;
declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style, dataset }: ButtonProps & {
dataset?: {
[key: string]: string;
};
}): react_jsx_runtime.JSX.Element;
declare function Modal({ children, isOpen, width, zIndex, className }: ModalProps): react_jsx_runtime.JSX.Element;
declare function ModalWithHeader({ children, onBack, onClose, title, showBorder, showClose, ...props }: ModalWithHeaderProps): react_jsx_runtime.JSX.Element;
declare function ConfirmModal({ title, children, onClose, onConfirm, isOpen, confirmText, zIndex }: {
title?: string;
onClose: () => void;
onConfirm: () => Promise<void>;
isOpen: boolean;
confirmText?: React__default.ReactNode;
zIndex?: number;
} & PropsWithChildren): react_jsx_runtime.JSX.Element;
declare function Popover({ children, content, position, type, className, gap }: PopoverProps): false | "" | 0 | react_jsx_runtime.JSX.Element | null | undefined;
declare function Overlay({ isOpen, children, zIndex, }: {
isOpen?: boolean;
zIndex?: number;
} & PropsWithChildren): react_jsx_runtime.JSX.Element;
export { Button as B, ConfirmModal as C, Field as F, Input as I, Modal as M, Overlay as O, Popover as P, ModalWithHeader as a };