@mercoa/react 0.0.39-rc2 → 0.0.39-rc4
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/components/BankAccounts.d.ts +1 -1
- package/dist/components/{CreditCard.d.ts → Card.d.ts} +3 -3
- package/dist/components/Checks.d.ts +1 -1
- package/dist/components/Counterparties.d.ts +12 -11
- package/dist/components/Payables.d.ts +14 -13
- package/dist/components/index.d.ts +1 -1
- package/dist/index.es.js +5787 -5775
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +40 -40
- package/dist/index.umd.js.map +1 -1
- package/dist/mercoa.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -23
|
@@ -9,7 +9,7 @@ export declare function BankAccounts({ children, onSelect, showAdd, showEdit, ve
|
|
|
9
9
|
showEdit?: boolean;
|
|
10
10
|
verifiedOnly?: boolean;
|
|
11
11
|
}): any;
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function BankAccount({ children, account, onSelect, showEdit, selected, }: {
|
|
13
13
|
children?: Function;
|
|
14
14
|
account?: Mercoa.PaymentMethodResponse.BankAccount;
|
|
15
15
|
onSelect?: (value?: Mercoa.PaymentMethodResponse.BankAccount) => void;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Mercoa } from '@mercoa/javascript';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function Cards({ children, onSelect, showAdd, showEdit, }: {
|
|
4
4
|
children?: Function;
|
|
5
5
|
onSelect?: (value?: Mercoa.PaymentMethodResponse.Card) => void;
|
|
6
6
|
showAdd?: boolean;
|
|
7
7
|
showEdit?: boolean;
|
|
8
8
|
}): any;
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function AddCard({ onSubmit, title, actions, }: {
|
|
10
10
|
onSubmit: (data: Mercoa.PaymentMethodResponse.Card) => void;
|
|
11
11
|
title?: ReactNode;
|
|
12
12
|
actions?: ReactNode;
|
|
13
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function Card({ children, account, onSelect, showEdit, selected, }: {
|
|
15
15
|
children?: Function;
|
|
16
16
|
account?: Mercoa.PaymentMethodResponse.Card;
|
|
17
17
|
onSelect?: (value?: Mercoa.PaymentMethodResponse.Card) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Mercoa } from '@mercoa/javascript';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { UseFormRegister } from 'react-hook-form';
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function Check({ account, onSelect, showEdit, selected, }: {
|
|
5
5
|
children?: Function;
|
|
6
6
|
account?: Mercoa.PaymentMethodResponse.Check;
|
|
7
7
|
onSelect?: (value?: Mercoa.PaymentMethodResponse.Check) => void;
|
|
@@ -6,20 +6,21 @@ export declare function CounterpartySearch({ counterparty, onSelect, type, netwo
|
|
|
6
6
|
type: 'payee' | 'payor';
|
|
7
7
|
network?: Mercoa.CounterpartyNetworkType[];
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type CounterpartiesChildrenProps = {
|
|
10
|
+
setSearch: (search: string) => void;
|
|
11
|
+
dataLoaded: boolean;
|
|
12
|
+
hasNext: boolean;
|
|
13
|
+
getNext: () => void;
|
|
14
|
+
hasPrevious: boolean;
|
|
15
|
+
getPrevious: () => void;
|
|
16
|
+
resultsPerPage: number;
|
|
17
|
+
setResultsPerPage: (value: number) => void;
|
|
18
|
+
counterparties: Mercoa.CounterpartyResponse[];
|
|
19
|
+
};
|
|
9
20
|
export declare function Counterparties({ type, admin, children, }: {
|
|
10
21
|
type: 'payor' | 'payee';
|
|
11
22
|
admin?: boolean;
|
|
12
|
-
children?: ({ setSearch, dataLoaded, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, counterparties, }:
|
|
13
|
-
setSearch: (search: string) => void;
|
|
14
|
-
dataLoaded: boolean;
|
|
15
|
-
hasNext: boolean;
|
|
16
|
-
getNext: () => void;
|
|
17
|
-
hasPrevious: boolean;
|
|
18
|
-
getPrevious: () => void;
|
|
19
|
-
resultsPerPage: number;
|
|
20
|
-
setResultsPerPage: (value: number) => void;
|
|
21
|
-
counterparties: Mercoa.CounterpartyResponse[];
|
|
22
|
-
}) => JSX.Element;
|
|
23
|
+
children?: ({ setSearch, dataLoaded, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, counterparties, }: CounterpartiesChildrenProps) => JSX.Element;
|
|
23
24
|
}): import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
export declare function AddCounterpartyModal({ type, show, setShow, }: {
|
|
25
26
|
type: 'payor' | 'payee';
|
|
@@ -6,6 +6,19 @@ export type InvoiceTableColumn = {
|
|
|
6
6
|
orderBy?: Mercoa.InvoiceOrderByField;
|
|
7
7
|
format?: (value: string | number | Date, invoice: Mercoa.InvoiceResponse) => string | ReactElement | null;
|
|
8
8
|
};
|
|
9
|
+
export type PayablesTableChildrenProps = {
|
|
10
|
+
dataLoaded: boolean;
|
|
11
|
+
invoices: Mercoa.InvoiceResponse[];
|
|
12
|
+
hasNext: boolean;
|
|
13
|
+
getNext: () => void;
|
|
14
|
+
hasPrevious: boolean;
|
|
15
|
+
getPrevious: () => void;
|
|
16
|
+
resultsPerPage: number;
|
|
17
|
+
setResultsPerPage: (value: number) => void;
|
|
18
|
+
selectedInvoiceStatuses: Mercoa.InvoiceStatus[];
|
|
19
|
+
setSelectedInvoiceStatues: (statuses: Mercoa.InvoiceStatus[]) => void;
|
|
20
|
+
downloadCSV: () => void;
|
|
21
|
+
};
|
|
9
22
|
export declare function PayablesTable({ statuses, search, metadata, startDate, endDate, onSelectInvoice, columns, children, }: {
|
|
10
23
|
statuses: Mercoa.InvoiceStatus[];
|
|
11
24
|
search?: string;
|
|
@@ -14,19 +27,7 @@ export declare function PayablesTable({ statuses, search, metadata, startDate, e
|
|
|
14
27
|
endDate?: Date;
|
|
15
28
|
onSelectInvoice?: (invoice: Mercoa.InvoiceResponse) => any;
|
|
16
29
|
columns?: InvoiceTableColumn[];
|
|
17
|
-
children?: ({ dataLoaded, invoices, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, selectedInvoiceStatuses, setSelectedInvoiceStatues, downloadCSV, }:
|
|
18
|
-
dataLoaded: boolean;
|
|
19
|
-
invoices: Mercoa.InvoiceResponse[];
|
|
20
|
-
hasNext: boolean;
|
|
21
|
-
getNext: () => void;
|
|
22
|
-
hasPrevious: boolean;
|
|
23
|
-
getPrevious: () => void;
|
|
24
|
-
resultsPerPage: number;
|
|
25
|
-
setResultsPerPage: (value: number) => void;
|
|
26
|
-
selectedInvoiceStatuses: Mercoa.InvoiceStatus[];
|
|
27
|
-
setSelectedInvoiceStatues: (statuses: Mercoa.InvoiceStatus[]) => void;
|
|
28
|
-
downloadCSV: () => void;
|
|
29
|
-
}) => ReactElement | null;
|
|
30
|
+
children?: ({ dataLoaded, invoices, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, selectedInvoiceStatuses, setSelectedInvoiceStatues, downloadCSV, }: PayablesTableChildrenProps) => ReactElement | null;
|
|
30
31
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
31
32
|
export declare function InvoiceStatusPill({ invoice, type, }: {
|
|
32
33
|
invoice: Mercoa.InvoiceResponse;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Mercoa } from '@mercoa/javascript';
|
|
2
2
|
export * from './ApprovalPolicy';
|
|
3
3
|
export * from './BankAccounts';
|
|
4
|
+
export * from './Card';
|
|
4
5
|
export * from './Checks';
|
|
5
6
|
export * from './Counterparties';
|
|
6
|
-
export * from './CreditCard';
|
|
7
7
|
export * from './CustomPaymentMethod';
|
|
8
8
|
export * from './DisbursementMethods';
|
|
9
9
|
export * from './EntityDetails';
|