UNPKG

@tuwaio/nova-transactions

Version:

A React component library that provides the UI for @tuwaio/pulsar-core. Includes components, providers, and i18n support for transaction tracking.

38 lines (33 loc) 2.57 kB
import { N as NovaTransactionsLabels } from './TransactionsInfoModal-6RO18o9e.js'; export { a as HashLink, H as HashLinkProps, b as StatusAwareText, S as StatusAwareTextProps, n as StepProps, m as StepStatus, d as ToastTransaction, T as ToastTransactionCustomization, c as ToastTransactionProps, g as TrackingTxModal, e as TrackingTxModalCustomization, f as TrackingTxModalProps, u as TransactionHistoryItem, s as TransactionHistoryItemCustomization, t as TransactionHistoryItemProps, w as TransactionKey, v as TransactionKeyProps, E as TransactionStatusBadge, D as TransactionStatusBadgeProps, z as TransactionsHistory, x as TransactionsHistoryCustomization, y as TransactionsHistoryProps, C as TransactionsInfoModal, A as TransactionsInfoModalCustomization, B as TransactionsInfoModalProps, i as TxErrorBlock, h as TxErrorBlockProps, l as TxInfoBlock, j as TxInfoBlockCustomization, k as TxInfoBlockProps, p as TxProgressIndicator, o as TxProgressIndicatorProps, r as TxStatusVisual, q as TxStatusVisualProps } from './TransactionsInfoModal-6RO18o9e.js'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { Transaction, TransactionPool } from '@tuwaio/pulsar-core'; import { ButtonHTMLAttributes, ReactNode } from 'react'; import '@tuwaio/nova-core'; import '@tuwaio/orbit-core'; import 'react-toastify'; import 'framer-motion'; type TxActionButtonProps<T extends Transaction> = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> & { children: ReactNode; action: () => Promise<void>; getLastTxKey: () => string | undefined; transactionsPool: TransactionPool<T>; walletAddress?: string; loadingContent?: ReactNode; succeedContent?: ReactNode; failedContent?: ReactNode; replacedContent?: ReactNode; resetTimeout?: number; }; declare function TxActionButton<T extends Transaction>({ children, action, getLastTxKey, transactionsPool, walletAddress, loadingContent, succeedContent, failedContent, replacedContent, resetTimeout, className, ...props }: TxActionButtonProps<T>): react_jsx_runtime.JSX.Element; /** * @file This file contains the default English labels for all UI components. * It serves as the default language pack for the library. */ /** * An object containing the default English text for all labels used in the UI. * This object implements the `TuwaLabels` type and can be used as a template * for creating other language translations. */ declare const defaultLabels: NovaTransactionsLabels; export { NovaTransactionsLabels, TxActionButton, type TxActionButtonProps, defaultLabels };