@npm-zenwork/tax-remittance-ui 0.14.1 → 0.14.3
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/payments/SignatureFieldGroup.d.ts +6 -1
- package/dist/components/payments/federalSubcategoryRules.d.ts +15 -0
- package/dist/index.cjs +32 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12077 -12029
- package/dist/index.mjs.map +1 -1
- package/dist/lib/signatureInputRules.d.ts +11 -0
- package/package.json +1 -1
|
@@ -9,6 +9,11 @@ interface SignatureFieldGroupProps {
|
|
|
9
9
|
signerName?: UseFormRegisterReturn;
|
|
10
10
|
signerNameCaption?: string;
|
|
11
11
|
signerNamePlaceholder?: string;
|
|
12
|
+
/** Caps on what the backing columns accept. The title limit differs per form
|
|
13
|
+
* — state authorization 100, Form 9783 50, Form 8655 20 — so each caller
|
|
14
|
+
* passes its own instead of the group assuming a single number. */
|
|
15
|
+
signerNameMaxLength?: number;
|
|
16
|
+
titleMaxLength?: number;
|
|
12
17
|
signatureValue: string;
|
|
13
18
|
dateValue?: string;
|
|
14
19
|
dateReadOnly?: boolean;
|
|
@@ -20,5 +25,5 @@ interface SignatureFieldGroupProps {
|
|
|
20
25
|
};
|
|
21
26
|
signatureCaption?: string;
|
|
22
27
|
}
|
|
23
|
-
export declare function SignatureFieldGroup({ label, required, signature, title, date, signerName, signerNameCaption, signerNamePlaceholder, signatureValue, dateValue, dateReadOnly, errors, signatureCaption, }: SignatureFieldGroupProps): import("react").JSX.Element;
|
|
28
|
+
export declare function SignatureFieldGroup({ label, required, signature, title, date, signerName, signerNameCaption, signerNamePlaceholder, signerNameMaxLength, titleMaxLength, signatureValue, dateValue, dateReadOnly, errors, signatureCaption, }: SignatureFieldGroupProps): import("react").JSX.Element;
|
|
24
29
|
export {};
|
|
@@ -15,6 +15,19 @@ export declare const AMOUNT_FIELD_VALIDATION: {
|
|
|
15
15
|
readonly regex: RegExp;
|
|
16
16
|
readonly errorMessage: "Payment amount must be a number greater than 0, can include up to 2 decimal places, and must not exceed 100,000,000 (one hundred million).";
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* EFTPS takes no subcategory below $0.01, so 0.00 is not a way to say "this
|
|
20
|
+
* category does not apply" — the breakdown has to be a real split of the
|
|
21
|
+
* payment. At two decimal places a $0.01 floor is the same rule as "greater
|
|
22
|
+
* than zero"; it is written as the floor because that is how EFTPS states it.
|
|
23
|
+
*
|
|
24
|
+
* Kept separate from AMOUNT_FIELD_VALIDATION for the message alone: both reject
|
|
25
|
+
* 0, and the wording here is the business team's.
|
|
26
|
+
*/
|
|
27
|
+
export declare const SUBCATEGORY_AMOUNT_FIELD_VALIDATION: {
|
|
28
|
+
readonly regex: RegExp;
|
|
29
|
+
readonly errorMessage: "Please enter a valid payment amount. The amount must be at least $0.01 and cannot exceed $100,000,000.00.";
|
|
30
|
+
};
|
|
18
31
|
export declare function isSubcategoryFieldsActive(taxFormType: string, taxTypeCode: string): boolean;
|
|
19
32
|
export declare function isCt1SubcategoryFieldsActive(taxFormType: string, taxTypeCode: string): boolean;
|
|
20
33
|
export declare function is941Or944SubcategoryMode(taxFormType: string, taxTypeCode: string): boolean;
|
|
@@ -24,8 +37,10 @@ export declare function getSubcategoryCodeLabels(taxFormType: string): {
|
|
|
24
37
|
code3: string;
|
|
25
38
|
};
|
|
26
39
|
export declare function isValidAmountField(value: string): boolean;
|
|
40
|
+
export declare function isValidSubcategoryAmountField(value: string): boolean;
|
|
27
41
|
export declare function sanitizeFederalAmountInput(raw: string): string;
|
|
28
42
|
export declare function parseAmountField(value: string): number | null;
|
|
43
|
+
export declare function parseSubcategoryAmountField(value: string): number | null;
|
|
29
44
|
/**
|
|
30
45
|
* Settle a half-typed amount when the field loses focus: `123` becomes
|
|
31
46
|
* `123.00`, `123.4` becomes `123.40`, `12.` becomes `12.00`. An empty field is
|