@tender-cash/agent-sdk-react 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/Palantir.png +0 -0
- package/dist/assets/icons/completed.svg +52 -0
- package/dist/assets/icons/tender.svg +55 -2
- package/dist/assets/icons/tender0.svg +3 -0
- package/dist/style.css +1 -1
- package/dist/tender-cash-agent-sdk-react.cjs.js +50 -54
- package/dist/tender-cash-agent-sdk-react.cjs.js.map +1 -1
- package/dist/tender-cash-agent-sdk-react.es.js +4845 -3931
- package/dist/tender-cash-agent-sdk-react.es.js.map +1 -1
- package/dist/types/module/_components/layout.d.ts +4 -3
- package/dist/types/module/screens/details.d.ts +1 -1
- package/dist/types/module/screens/info.d.ts +7 -1
- package/dist/types/module/types.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { FormFooterProps, FormHeaderProps } from '../types';
|
|
3
|
-
declare const FormFooter: ({ children }: FormFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const FormHeader: ({ title, description, icon }: FormHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare const FormBody: ({ children }: {
|
|
3
|
+
declare const FormFooter: ({ children, className }: FormFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const FormHeader: ({ title, description, icon, className, isInfo }: FormHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const FormBody: ({ children, className, }: {
|
|
6
6
|
children: ReactNode;
|
|
7
|
+
className?: string;
|
|
7
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export { FormFooter, FormHeader, FormBody };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { paymentResponseProps, paymentDetailsProps } from '../types';
|
|
2
|
-
declare const PaymentDetails: ({ address, amount, amountPaid, coin, chain, loading, status, balance, excess, cancelPayment, confirmPayment, expirePayment, }: paymentResponseProps & paymentDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const PaymentDetails: ({ address, amount, amountPaid, coin, chain, loading, status, balance, excess, cancelPayment, confirmPayment, expirePayment, coinIcon, chainIcon, }: paymentResponseProps & paymentDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default PaymentDetails;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
declare const InfoScreen: ({ title, message }: {
|
|
1
|
+
declare const InfoScreen: ({ title, message, dataToView, }: {
|
|
2
2
|
title?: string;
|
|
3
3
|
message?: string;
|
|
4
|
+
dataToView?: {
|
|
5
|
+
network: string;
|
|
6
|
+
coin: string;
|
|
7
|
+
amount: string;
|
|
8
|
+
address: string;
|
|
9
|
+
};
|
|
4
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
11
|
export default InfoScreen;
|
|
@@ -44,9 +44,12 @@ interface FormHeaderProps {
|
|
|
44
44
|
title: string;
|
|
45
45
|
description: string;
|
|
46
46
|
icon?: string;
|
|
47
|
+
className?: string;
|
|
48
|
+
isInfo?: boolean;
|
|
47
49
|
}
|
|
48
50
|
interface FormFooterProps {
|
|
49
51
|
children: ReactNode;
|
|
52
|
+
className?: string;
|
|
50
53
|
}
|
|
51
54
|
interface IPaymentData {
|
|
52
55
|
id?: string;
|
|
@@ -70,6 +73,8 @@ interface paymentResponseProps {
|
|
|
70
73
|
status?: PaymentStatusProps;
|
|
71
74
|
balance?: string;
|
|
72
75
|
excess?: string;
|
|
76
|
+
coinIcon?: string;
|
|
77
|
+
chainIcon?: string;
|
|
73
78
|
}
|
|
74
79
|
declare enum PAYMENT_RESPONSES {
|
|
75
80
|
partial = "Please complete the remaining payment to finalize this transaction. If the full amount is not received within 24 hours, the transaction will be canceled. For a refund, please contact the Merchant.",
|