@npm-zenwork/tax-remittance-ui 0.14.0 → 0.14.2

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.
@@ -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,15 @@ 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
+ * Subcategory amounts accept 0, mirroring EFTPS: a subcategory that doesn't
20
+ * apply to the filing is entered as 0.00 rather than left blank. The
21
+ * subcategory total must still equal the payment amount, which stays > 0.
22
+ */
23
+ export declare const SUBCATEGORY_AMOUNT_FIELD_VALIDATION: {
24
+ readonly regex: RegExp;
25
+ readonly errorMessage: "Amount must be a number of 0 or more, can include up to 2 decimal places, and must not exceed 100,000,000 (one hundred million).";
26
+ };
18
27
  export declare function isSubcategoryFieldsActive(taxFormType: string, taxTypeCode: string): boolean;
19
28
  export declare function isCt1SubcategoryFieldsActive(taxFormType: string, taxTypeCode: string): boolean;
20
29
  export declare function is941Or944SubcategoryMode(taxFormType: string, taxTypeCode: string): boolean;
@@ -24,8 +33,10 @@ export declare function getSubcategoryCodeLabels(taxFormType: string): {
24
33
  code3: string;
25
34
  };
26
35
  export declare function isValidAmountField(value: string): boolean;
36
+ export declare function isValidSubcategoryAmountField(value: string): boolean;
27
37
  export declare function sanitizeFederalAmountInput(raw: string): string;
28
38
  export declare function parseAmountField(value: string): number | null;
39
+ export declare function parseSubcategoryAmountField(value: string): number | null;
29
40
  /**
30
41
  * Settle a half-typed amount when the field loses focus: `123` becomes
31
42
  * `123.00`, `123.4` becomes `123.40`, `12.` becomes `12.00`. An empty field is