@npm-zenwork/tax-remittance-ui 0.12.2 → 0.13.0
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/federalPayments.d.ts +1 -0
- package/dist/api/statePayments.d.ts +1 -0
- package/dist/components/payments/PaymentRowMenu.d.ts +1 -0
- package/dist/components/payments/PaymentTableRow.d.ts +2 -1
- package/dist/components/payments/paymentsTableConfig.d.ts +1 -1
- package/dist/components/ui/ConfirmDialog.d.ts +26 -0
- package/dist/index.cjs +21 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9079 -8916
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -22,3 +22,4 @@ export declare function getFederalTaxTypeCodes(formType: string): Promise<Federa
|
|
|
22
22
|
export declare function createFederalPayment(request: CreateFederalPaymentRequest): Promise<FederalPaymentResponse>;
|
|
23
23
|
export declare function updateFederalPayment(federalPaymentId: number, request: UpdateFederalPaymentRequest): Promise<FederalPaymentResponse>;
|
|
24
24
|
export declare function submitFederalPayment(federalPaymentId: number): Promise<FederalPaymentResponse>;
|
|
25
|
+
export declare function blockFederalPayment(federalPaymentId: number): Promise<FederalPaymentResponse>;
|
|
@@ -41,3 +41,4 @@ export declare function getStatePaymentById(statePaymentDetailId: number): Promi
|
|
|
41
41
|
export declare function createStatePayment(request: CreateStatePaymentRequest): Promise<StatePaymentResponse>;
|
|
42
42
|
export declare function updateStatePayment(statePaymentDetailId: number, request: UpdateStatePaymentRequest): Promise<StatePaymentResponse>;
|
|
43
43
|
export declare function submitStatePayment(statePaymentDetailId: number, authorization?: StatePaymentAuthorizationRequest): Promise<StatePaymentResponse>;
|
|
44
|
+
export declare function blockStatePayment(statePaymentDetailId: number): Promise<StatePaymentResponse>;
|
|
@@ -9,6 +9,7 @@ interface PaymentTableRowProps {
|
|
|
9
9
|
onEdit: () => void;
|
|
10
10
|
onViewPdf: () => void;
|
|
11
11
|
onSubmit: () => void;
|
|
12
|
+
onCancel?: () => void;
|
|
12
13
|
}
|
|
13
|
-
export declare function PaymentTableRow({ row, layout, isSubmitting, isViewPdfLoading, onView, onEdit, onViewPdf, onSubmit, }: PaymentTableRowProps): import("react").JSX.Element;
|
|
14
|
+
export declare function PaymentTableRow({ row, layout, isSubmitting, isViewPdfLoading, onView, onEdit, onViewPdf, onSubmit, onCancel, }: PaymentTableRowProps): import("react").JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -3,7 +3,7 @@ import { ComponentType, SVGProps } from 'react';
|
|
|
3
3
|
export type PaymentStatus = 'drafts' | 'scheduled' | 'submitted' | 'rejected' | 'paid';
|
|
4
4
|
/** Tabs on the Tax Payments table — every bucket, plus the unfiltered "All". */
|
|
5
5
|
export type PaymentTab = 'all' | PaymentStatus;
|
|
6
|
-
export type PaymentActionType = 'draft-actions' | 'view-pdf' | 'view-link' | 'rejected-actions';
|
|
6
|
+
export type PaymentActionType = 'draft-actions' | 'view-pdf' | 'view-link' | 'rejected-actions' | 'cancel-only';
|
|
7
7
|
export declare const statusTabs: {
|
|
8
8
|
key: PaymentTab;
|
|
9
9
|
label: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface ConfirmDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
confirmLabel: string;
|
|
6
|
+
cancelLabel: string;
|
|
7
|
+
onConfirm: () => void;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
/** Destructive styling on the confirm button — red outline, not filled, so the safer
|
|
10
|
+
* Cancel path stays the visually prominent one. Defaults to true — this component only
|
|
11
|
+
* exists today for destructive confirmations. */
|
|
12
|
+
danger?: boolean;
|
|
13
|
+
/** Disables both buttons and shows a spinner on confirm while a request is
|
|
14
|
+
* in flight, so a second click can't fire a duplicate submission. */
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Generic confirm/cancel modal — same portal + escape-to-close + role="dialog" shape as
|
|
19
|
+
* BankConnectionMethodModal.tsx, generalized for any destructive confirmation (first use:
|
|
20
|
+
* "Block this scheduled payment?"). Layout follows the design reference: centered warning
|
|
21
|
+
* badge, centered title/description, and the destructive action rendered as a lighter
|
|
22
|
+
* outlined button (left) next to the prominent solid Cancel button (right) — the safe path
|
|
23
|
+
* stays visually dominant, not the destructive one.
|
|
24
|
+
*/
|
|
25
|
+
export declare function ConfirmDialog({ open, title, description, confirmLabel, cancelLabel, onConfirm, onCancel, danger, isLoading, }: ConfirmDialogProps): import('react').ReactPortal | null;
|
|
26
|
+
export {};
|