@mercoa/react 0.0.47-rc1 → 0.0.47
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/InvoiceComments.d.ts +9 -2
- package/dist/components/PayableDetails.d.ts +29 -2
- package/dist/index.es.js +11829 -11762
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +58 -58
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Mercoa } from '@mercoa/javascript';
|
|
3
|
+
export type InvoiceCommentsChildrenProps = {
|
|
4
|
+
comments: Mercoa.CommentResponse[];
|
|
5
|
+
addComment: (comment: string) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function InvoiceComments({ readOnly, children, }: {
|
|
2
8
|
readOnly?: boolean;
|
|
3
|
-
|
|
9
|
+
children?: (props: InvoiceCommentsChildrenProps) => JSX.Element;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -130,8 +130,27 @@ export declare function PayableActions({ approveButton, rejectButton, nonApprove
|
|
|
130
130
|
}) => JSX.Element;
|
|
131
131
|
admin?: boolean;
|
|
132
132
|
}): import("react/jsx-runtime").JSX.Element;
|
|
133
|
-
export
|
|
133
|
+
export type PayableOverviewChildrenProps = {
|
|
134
134
|
readOnly?: boolean;
|
|
135
|
+
amount?: number;
|
|
136
|
+
setAmount?: (amount: number) => void;
|
|
137
|
+
supportedCurrencies?: Array<Mercoa.CurrencyCode>;
|
|
138
|
+
currency?: Mercoa.CurrencyCode;
|
|
139
|
+
setCurrency?: (currency: Mercoa.CurrencyCode) => void;
|
|
140
|
+
dueDate?: Date;
|
|
141
|
+
setDueDate?: (dueDate: Date) => void;
|
|
142
|
+
invoiceDate?: Date;
|
|
143
|
+
setInvoiceDate?: (invoiceDate: Date) => void;
|
|
144
|
+
schedulePaymentDate?: Date;
|
|
145
|
+
setSchedulePaymentDate?: (schedulePaymentDate: Date) => void;
|
|
146
|
+
invoiceNumber?: string;
|
|
147
|
+
setInvoiceNumber?: (invoiceNumber: string) => void;
|
|
148
|
+
description?: string;
|
|
149
|
+
setDescription?: (description: string) => void;
|
|
150
|
+
};
|
|
151
|
+
export declare function PayableOverview({ readOnly, children, }: {
|
|
152
|
+
readOnly?: boolean;
|
|
153
|
+
children?: (props: PayableOverviewChildrenProps) => JSX.Element;
|
|
135
154
|
}): import("react/jsx-runtime").JSX.Element;
|
|
136
155
|
export declare function PayableSelectPaymentMethod({ isSource, isDestination, disableCreation, readOnly, }: {
|
|
137
156
|
isSource?: boolean;
|
|
@@ -190,8 +209,16 @@ export declare function MetadataSelection({ schema, field, skipValidation, readO
|
|
|
190
209
|
lineItem?: boolean;
|
|
191
210
|
hideLabel?: boolean;
|
|
192
211
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
193
|
-
export
|
|
212
|
+
export type PayableLineItemChildrenProps = {
|
|
213
|
+
readOnly?: boolean;
|
|
214
|
+
items: Mercoa.InvoiceLineItemRequest[];
|
|
215
|
+
addItem: () => void;
|
|
216
|
+
updateItem: (index: number, item: Mercoa.InvoiceLineItemRequest) => void;
|
|
217
|
+
removeItem: (index: number) => void;
|
|
218
|
+
};
|
|
219
|
+
export declare function PayableLineItems({ readOnly, children, }: {
|
|
194
220
|
readOnly?: boolean;
|
|
221
|
+
children?: (props: PayableLineItemChildrenProps) => JSX.Element;
|
|
195
222
|
}): import("react/jsx-runtime").JSX.Element;
|
|
196
223
|
export declare function PayableFees({ children, }: {
|
|
197
224
|
children?: ({ fees }: {
|