@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.
@@ -1,3 +1,10 @@
1
- export declare function InvoiceComments({ readOnly }: {
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
- }): import("react/jsx-runtime").JSX.Element;
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 declare function PayableOverview({ readOnly }: {
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 declare function PayableLineItems({ readOnly }: {
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 }: {