@npm-zenwork/tax-remittance-ui 0.1.9 → 0.1.10
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/api/client.d.ts +1 -0
- package/dist/api/paymentPdf.d.ts +4 -0
- package/dist/components/payments/PaymentRowActions.d.ts +3 -1
- package/dist/components/pdf/PaymentPdfModal.d.ts +12 -0
- package/dist/index.cjs +33 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3878 -3655
- package/dist/index.mjs.map +1 -1
- package/dist/pages/PaymentsPage.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/dist/types/federalPayment.d.ts +1 -0
- package/dist/types/statePayment.d.ts +1 -0
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type RequestOptions = Omit<RequestInit, 'body'> & {
|
|
2
2
|
body?: unknown;
|
|
3
3
|
auth?: boolean;
|
|
4
|
+
responseType?: 'json' | 'blob' | 'text';
|
|
4
5
|
};
|
|
5
6
|
export declare function apiRequest<T>(path: string, options?: RequestOptions): Promise<T>;
|
|
6
7
|
export declare function apiData<T>(path: string, options?: RequestOptions): Promise<T>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function fetchFederalPaymentPdf(federalPaymentId: number): Promise<Blob>;
|
|
2
|
+
export declare function fetchStatePaymentPdf(statePaymentDetailId: number): Promise<Blob>;
|
|
3
|
+
export declare function fetchFederalPaymentPdfHtml(federalPaymentId: number): Promise<string>;
|
|
4
|
+
export declare function fetchStatePaymentPdfHtml(statePaymentDetailId: number): Promise<string>;
|
|
@@ -2,10 +2,12 @@ import { PaymentActionType } from './paymentsTableConfig';
|
|
|
2
2
|
interface PaymentRowActionsProps {
|
|
3
3
|
actionType: PaymentActionType;
|
|
4
4
|
onView?: () => void;
|
|
5
|
+
onViewPdf?: () => void;
|
|
5
6
|
onEdit?: () => void;
|
|
6
7
|
onSubmit?: () => void;
|
|
7
8
|
isSubmitting?: boolean;
|
|
9
|
+
isViewPdfLoading?: boolean;
|
|
8
10
|
}
|
|
9
11
|
/** Row actions per tab — used when payment list API is wired. */
|
|
10
|
-
export declare function PaymentRowActions({ actionType, onView, onEdit, onSubmit, isSubmitting, }: PaymentRowActionsProps): import("react").JSX.Element;
|
|
12
|
+
export declare function PaymentRowActions({ actionType, onView, onViewPdf, onEdit, onSubmit, isSubmitting, isViewPdfLoading, }: PaymentRowActionsProps): import("react").JSX.Element;
|
|
11
13
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface PaymentPdfModalProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
title: string;
|
|
4
|
+
html: string | null;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
error?: string | null;
|
|
7
|
+
downloadFileName?: string;
|
|
8
|
+
onDownload?: () => Promise<Blob>;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function PaymentPdfModal({ open, title, html, isLoading, error, downloadFileName, onDownload, onClose, }: PaymentPdfModalProps): import("react").JSX.Element | null;
|
|
12
|
+
export {};
|