@npm-zenwork/tax-remittance-ui 0.7.0 → 0.9.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/stateForms.d.ts +20 -0
- package/dist/api/taxForms.d.ts +46 -0
- package/dist/components/tax-forms/TaxFormDetailPanel.d.ts +6 -0
- package/dist/components/tax-forms/TaxFormRecordView.d.ts +4 -0
- package/dist/components/tax-forms/TaxFormStatusBadge.d.ts +8 -0
- package/dist/components/tax-forms/TaxFormsWorklist.d.ts +8 -0
- package/dist/components/tax-forms/states/TaxFormEntitySelect.d.ts +13 -0
- package/dist/components/tax-forms/states/alabama/AL40ESForm.autofill.d.ts +26 -0
- package/dist/components/tax-forms/states/alabama/AL40ESForm.d.ts +50 -0
- package/dist/components/tax-forms/states/alabama/AL40ESForm.payload.d.ts +44 -0
- package/dist/components/tax-forms/states/alabama/AL40ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/alabama/AL40ESForm.schema.d.ts +43 -0
- package/dist/components/tax-forms/states/alabama/ALA3Form.autofill.d.ts +14 -0
- package/dist/components/tax-forms/states/alabama/ALA3Form.calc.d.ts +25 -0
- package/dist/components/tax-forms/states/alabama/ALA3Form.d.ts +39 -0
- package/dist/components/tax-forms/states/alabama/ALA3Form.payload.d.ts +32 -0
- package/dist/components/tax-forms/states/alabama/ALA3Form.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/alabama/ALA3Form.schema.d.ts +32 -0
- package/dist/components/tax-forms/states/alabama/ALEmployerReturnForm.autofill.d.ts +8 -0
- package/dist/components/tax-forms/states/alabama/ALEmployerReturnForm.calc.d.ts +33 -0
- package/dist/components/tax-forms/states/alabama/ALEmployerReturnForm.d.ts +47 -0
- package/dist/components/tax-forms/states/alabama/ALEmployerReturnForm.payload.d.ts +37 -0
- package/dist/components/tax-forms/states/alabama/ALEmployerReturnForm.preview.d.ts +3 -0
- package/dist/components/tax-forms/states/alabama/ALEmployerReturnForm.schema.d.ts +45 -0
- package/dist/components/tax-forms/states/alabama/ALWithholding.shared.d.ts +97 -0
- package/dist/components/tax-forms/states/alabama/ALWithholdingParts.d.ts +92 -0
- package/dist/components/tax-forms/states/arizona/AZ120ESForm.autofill.d.ts +25 -0
- package/dist/components/tax-forms/states/arizona/AZ120ESForm.d.ts +57 -0
- package/dist/components/tax-forms/states/arizona/AZ120ESForm.payload.d.ts +44 -0
- package/dist/components/tax-forms/states/arizona/AZ120ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/arizona/AZ120ESForm.schema.d.ts +42 -0
- package/dist/components/tax-forms/states/arizona/AZ140ESForm.autofill.d.ts +26 -0
- package/dist/components/tax-forms/states/arizona/AZ140ESForm.d.ts +54 -0
- package/dist/components/tax-forms/states/arizona/AZ140ESForm.payload.d.ts +46 -0
- package/dist/components/tax-forms/states/arizona/AZ140ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/arizona/AZ140ESForm.schema.d.ts +81 -0
- package/dist/components/tax-forms/states/arizona/AZA1QRTForm.autofill.d.ts +14 -0
- package/dist/components/tax-forms/states/arizona/AZA1QRTForm.calc.d.ts +26 -0
- package/dist/components/tax-forms/states/arizona/AZA1QRTForm.d.ts +89 -0
- package/dist/components/tax-forms/states/arizona/AZA1QRTForm.payload.d.ts +91 -0
- package/dist/components/tax-forms/states/arizona/AZA1QRTForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/arizona/AZA1QRTForm.schema.d.ts +165 -0
- package/dist/components/tax-forms/states/arizona/AZA1RForm.autofill.d.ts +13 -0
- package/dist/components/tax-forms/states/arizona/AZA1RForm.calc.d.ts +15 -0
- package/dist/components/tax-forms/states/arizona/AZA1RForm.d.ts +50 -0
- package/dist/components/tax-forms/states/arizona/AZA1RForm.payload.d.ts +47 -0
- package/dist/components/tax-forms/states/arizona/AZA1RForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/arizona/AZA1RForm.schema.d.ts +46 -0
- package/dist/components/tax-forms/states/arizona/AZA1WPForm.autofill.d.ts +15 -0
- package/dist/components/tax-forms/states/arizona/AZA1WPForm.d.ts +29 -0
- package/dist/components/tax-forms/states/arizona/AZA1WPForm.payload.d.ts +17 -0
- package/dist/components/tax-forms/states/arizona/AZA1WPForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/arizona/AZA1WPForm.schema.d.ts +11 -0
- package/dist/components/tax-forms/states/arizona/AZWithholding.shared.d.ts +114 -0
- package/dist/components/tax-forms/states/arizona/AZWithholdingParts.d.ts +63 -0
- package/dist/components/tax-forms/states/arkansas/AR1000ESForm.autofill.d.ts +26 -0
- package/dist/components/tax-forms/states/arkansas/AR1000ESForm.d.ts +48 -0
- package/dist/components/tax-forms/states/arkansas/AR1000ESForm.payload.d.ts +39 -0
- package/dist/components/tax-forms/states/arkansas/AR1000ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/arkansas/AR1000ESForm.schema.d.ts +28 -0
- package/dist/components/tax-forms/states/arkansas/AR1100ESCTForm.autofill.d.ts +25 -0
- package/dist/components/tax-forms/states/arkansas/AR1100ESCTForm.d.ts +46 -0
- package/dist/components/tax-forms/states/arkansas/AR1100ESCTForm.payload.d.ts +34 -0
- package/dist/components/tax-forms/states/arkansas/AR1100ESCTForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/arkansas/AR1100ESCTForm.schema.d.ts +29 -0
- package/dist/components/tax-forms/states/arkansas/AR941MForm.autofill.d.ts +29 -0
- package/dist/components/tax-forms/states/arkansas/AR941MForm.calc.d.ts +24 -0
- package/dist/components/tax-forms/states/arkansas/AR941MForm.d.ts +52 -0
- package/dist/components/tax-forms/states/arkansas/AR941MForm.payload.d.ts +49 -0
- package/dist/components/tax-forms/states/arkansas/AR941MForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/arkansas/AR941MForm.schema.d.ts +69 -0
- package/dist/components/tax-forms/states/california/CA100ESForm.autofill.d.ts +25 -0
- package/dist/components/tax-forms/states/california/CA100ESForm.d.ts +58 -0
- package/dist/components/tax-forms/states/california/CA100ESForm.payload.d.ts +43 -0
- package/dist/components/tax-forms/states/california/CA100ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/california/CA100ESForm.schema.d.ts +53 -0
- package/dist/components/tax-forms/states/california/CA540ESForm.autofill.d.ts +25 -0
- package/dist/components/tax-forms/states/california/CA540ESForm.d.ts +50 -0
- package/dist/components/tax-forms/states/california/CA540ESForm.payload.d.ts +42 -0
- package/dist/components/tax-forms/states/california/CA540ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/california/CA540ESForm.schema.d.ts +48 -0
- package/dist/components/tax-forms/states/colorado/COAnnualTransmittalForm.autofill.d.ts +36 -0
- package/dist/components/tax-forms/states/colorado/COAnnualTransmittalForm.calc.d.ts +37 -0
- package/dist/components/tax-forms/states/colorado/COAnnualTransmittalForm.d.ts +63 -0
- package/dist/components/tax-forms/states/colorado/COAnnualTransmittalForm.payload.d.ts +66 -0
- package/dist/components/tax-forms/states/colorado/COAnnualTransmittalForm.preview.d.ts +3 -0
- package/dist/components/tax-forms/states/colorado/COAnnualTransmittalForm.schema.d.ts +41 -0
- package/dist/components/tax-forms/states/colorado/COWithholding.shared.d.ts +14 -0
- package/dist/components/tax-forms/states/colorado/COWithholdingParts.d.ts +36 -0
- package/dist/components/tax-forms/states/colorado/DR0104EPForm.autofill.d.ts +24 -0
- package/dist/components/tax-forms/states/colorado/DR0104EPForm.d.ts +44 -0
- package/dist/components/tax-forms/states/colorado/DR0104EPForm.payload.d.ts +35 -0
- package/dist/components/tax-forms/states/colorado/DR0104EPForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/colorado/DR0104EPForm.schema.d.ts +21 -0
- package/dist/components/tax-forms/states/colorado/DR0112EPForm.autofill.d.ts +24 -0
- package/dist/components/tax-forms/states/colorado/DR0112EPForm.d.ts +51 -0
- package/dist/components/tax-forms/states/colorado/DR0112EPForm.payload.d.ts +37 -0
- package/dist/components/tax-forms/states/colorado/DR0112EPForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/colorado/DR0112EPForm.schema.d.ts +40 -0
- package/dist/components/tax-forms/states/colorado/DR1094Form.autofill.d.ts +36 -0
- package/dist/components/tax-forms/states/colorado/DR1094Form.calc.d.ts +20 -0
- package/dist/components/tax-forms/states/colorado/DR1094Form.d.ts +82 -0
- package/dist/components/tax-forms/states/colorado/DR1094Form.payload.d.ts +55 -0
- package/dist/components/tax-forms/states/colorado/DR1094Form.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/colorado/DR1094Form.schema.d.ts +37 -0
- package/dist/components/tax-forms/states/connecticut/CT1040ESForm.autofill.d.ts +25 -0
- package/dist/components/tax-forms/states/connecticut/CT1040ESForm.d.ts +47 -0
- package/dist/components/tax-forms/states/connecticut/CT1040ESForm.payload.d.ts +39 -0
- package/dist/components/tax-forms/states/connecticut/CT1040ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/connecticut/CT1040ESForm.schema.d.ts +21 -0
- package/dist/components/tax-forms/states/connecticut/CT1040ESForm.shared.d.ts +35 -0
- package/dist/components/tax-forms/states/connecticut/CT1120ESForm.autofill.d.ts +24 -0
- package/dist/components/tax-forms/states/connecticut/CT1120ESForm.d.ts +48 -0
- package/dist/components/tax-forms/states/connecticut/CT1120ESForm.payload.d.ts +35 -0
- package/dist/components/tax-forms/states/connecticut/CT1120ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/connecticut/CT1120ESForm.schema.d.ts +21 -0
- package/dist/components/tax-forms/states/connecticut/CT1120ESForm.shared.d.ts +54 -0
- package/dist/components/tax-forms/states/delaware/DECMPESTForm.autofill.d.ts +32 -0
- package/dist/components/tax-forms/states/delaware/DECMPESTForm.d.ts +48 -0
- package/dist/components/tax-forms/states/delaware/DECMPESTForm.payload.d.ts +38 -0
- package/dist/components/tax-forms/states/delaware/DECMPESTForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/delaware/DECMPESTForm.schema.d.ts +20 -0
- package/dist/components/tax-forms/states/delaware/DEEstimated.shared.d.ts +31 -0
- package/dist/components/tax-forms/states/delaware/DEPITESTForm.autofill.d.ts +25 -0
- package/dist/components/tax-forms/states/delaware/DEPITESTForm.d.ts +43 -0
- package/dist/components/tax-forms/states/delaware/DEPITESTForm.payload.d.ts +37 -0
- package/dist/components/tax-forms/states/delaware/DEPITESTForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/delaware/DEPITESTForm.schema.d.ts +17 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCBusinessEstimatedForm.autofill.d.ts +24 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCBusinessEstimatedForm.d.ts +49 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCBusinessEstimatedForm.payload.d.ts +35 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCBusinessEstimatedForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCBusinessEstimatedForm.schema.d.ts +18 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCD40ESForm.autofill.d.ts +25 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCD40ESForm.d.ts +47 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCD40ESForm.payload.d.ts +39 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCD40ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCD40ESForm.schema.d.ts +21 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCEstimated.shared.d.ts +21 -0
- package/dist/components/tax-forms/states/district-of-columbia/DCEstimatedParts.d.ts +5 -0
- package/dist/components/tax-forms/states/estimatedFormParts.d.ts +125 -0
- package/dist/components/tax-forms/states/georgia/GA500ESForm.autofill.d.ts +25 -0
- package/dist/components/tax-forms/states/georgia/GA500ESForm.d.ts +49 -0
- package/dist/components/tax-forms/states/georgia/GA500ESForm.payload.d.ts +37 -0
- package/dist/components/tax-forms/states/georgia/GA500ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/georgia/GA500ESForm.schema.d.ts +26 -0
- package/dist/components/tax-forms/states/georgia/GA602ESForm.autofill.d.ts +33 -0
- package/dist/components/tax-forms/states/georgia/GA602ESForm.d.ts +54 -0
- package/dist/components/tax-forms/states/georgia/GA602ESForm.payload.d.ts +44 -0
- package/dist/components/tax-forms/states/georgia/GA602ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/georgia/GA602ESForm.schema.d.ts +32 -0
- package/dist/components/tax-forms/states/georgia/GAEstimated.shared.d.ts +14 -0
- package/dist/components/tax-forms/states/hawaii/HIN200VForm.autofill.d.ts +19 -0
- package/dist/components/tax-forms/states/hawaii/HIN200VForm.d.ts +43 -0
- package/dist/components/tax-forms/states/hawaii/HIN200VForm.payload.d.ts +30 -0
- package/dist/components/tax-forms/states/hawaii/HIN200VForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/hawaii/HIN200VForm.schema.d.ts +18 -0
- package/dist/components/tax-forms/states/hawaii/HIN201VForm.autofill.d.ts +20 -0
- package/dist/components/tax-forms/states/hawaii/HIN201VForm.d.ts +39 -0
- package/dist/components/tax-forms/states/hawaii/HIN201VForm.payload.d.ts +25 -0
- package/dist/components/tax-forms/states/hawaii/HIN201VForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/hawaii/HIN201VForm.schema.d.ts +31 -0
- package/dist/components/tax-forms/states/hawaii/HIPaymentVoucher.shared.d.ts +13 -0
- package/dist/components/tax-forms/states/hawaii/HIPaymentVoucherParts.d.ts +23 -0
- package/dist/components/tax-forms/states/idaho/IDEstimated.shared.d.ts +9 -0
- package/dist/components/tax-forms/states/idaho/IDForm51.autofill.d.ts +25 -0
- package/dist/components/tax-forms/states/idaho/IDForm51.d.ts +46 -0
- package/dist/components/tax-forms/states/idaho/IDForm51.payload.d.ts +40 -0
- package/dist/components/tax-forms/states/idaho/IDForm51.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/idaho/IDForm51.schema.d.ts +20 -0
- package/dist/components/tax-forms/states/illinois/ILEstimated.shared.d.ts +24 -0
- package/dist/components/tax-forms/states/illinois/ILIL1040ESForm.autofill.d.ts +25 -0
- package/dist/components/tax-forms/states/illinois/ILIL1040ESForm.d.ts +46 -0
- package/dist/components/tax-forms/states/illinois/ILIL1040ESForm.payload.d.ts +41 -0
- package/dist/components/tax-forms/states/illinois/ILIL1040ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/illinois/ILIL1040ESForm.schema.d.ts +19 -0
- package/dist/components/tax-forms/states/illinois/ILIL1120VForm.autofill.d.ts +24 -0
- package/dist/components/tax-forms/states/illinois/ILIL1120VForm.d.ts +46 -0
- package/dist/components/tax-forms/states/illinois/ILIL1120VForm.payload.d.ts +33 -0
- package/dist/components/tax-forms/states/illinois/ILIL1120VForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/illinois/ILIL1120VForm.schema.d.ts +19 -0
- package/dist/components/tax-forms/states/south-carolina/SCWithholding.shared.d.ts +34 -0
- package/dist/components/tax-forms/states/south-carolina/SCWithholdingParts.d.ts +70 -0
- package/dist/components/tax-forms/states/south-carolina/SCWithholdingReturnForm.autofill.d.ts +33 -0
- package/dist/components/tax-forms/states/south-carolina/SCWithholdingReturnForm.calc.d.ts +60 -0
- package/dist/components/tax-forms/states/south-carolina/SCWithholdingReturnForm.d.ts +68 -0
- package/dist/components/tax-forms/states/south-carolina/SCWithholdingReturnForm.payload.d.ts +74 -0
- package/dist/components/tax-forms/states/south-carolina/SCWithholdingReturnForm.preview.d.ts +3 -0
- package/dist/components/tax-forms/states/south-carolina/SCWithholdingReturnForm.schema.d.ts +70 -0
- package/dist/components/tax-forms/states/stateFormKit.d.ts +88 -9
- package/dist/components/tax-forms/states/useStateTaxForm.d.ts +65 -0
- package/dist/components/tax-forms/states/virginia/VA15Form.autofill.d.ts +31 -0
- package/dist/components/tax-forms/states/virginia/VA16Form.autofill.d.ts +33 -0
- package/dist/components/tax-forms/states/virginia/VA500ESForm.autofill.d.ts +27 -0
- package/dist/components/tax-forms/states/virginia/VA500ESForm.d.ts +52 -0
- package/dist/components/tax-forms/states/virginia/VA500ESForm.payload.d.ts +43 -0
- package/dist/components/tax-forms/states/virginia/VA500ESForm.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/virginia/VA500ESForm.schema.d.ts +24 -0
- package/dist/components/tax-forms/states/virginia/VA5Form.autofill.d.ts +34 -0
- package/dist/components/tax-forms/states/virginia/VA6Form.autofill.d.ts +32 -0
- package/dist/components/tax-forms/states/virginia/VA760ESForm.autofill.d.ts +26 -0
- package/dist/components/tax-forms/states/virginia/VA760ESForm.d.ts +43 -43
- package/dist/components/tax-forms/states/virginia/VA760ESForm.payload.d.ts +45 -0
- package/dist/components/tax-forms/states/virginia/VA760ESForm.schema.d.ts +26 -0
- package/dist/components/tax-forms/states/virginia/VAEstimated.shared.d.ts +26 -0
- package/dist/components/tax-forms/states/virginia/VAWithholdingBoundForms.d.ts +39 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101AForm.autofill.d.ts +4 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101AForm.calc.d.ts +14 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101AForm.d.ts +19 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101AForm.payload.d.ts +26 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101AForm.schema.d.ts +38 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101QForm.autofill.d.ts +4 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101QForm.calc.d.ts +41 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101QForm.d.ts +23 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101QForm.payload.d.ts +30 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101QForm.schema.d.ts +43 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101VForm.autofill.d.ts +4 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101VForm.calc.d.ts +3 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101VForm.d.ts +12 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101VForm.payload.d.ts +15 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT101VForm.schema.d.ts +16 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT103Form.autofill.d.ts +4 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT103Form.calc.d.ts +13 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT103Form.d.ts +22 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT103Form.payload.d.ts +29 -0
- package/dist/components/tax-forms/states/west-virginia/WVIT103Form.schema.d.ts +36 -0
- package/dist/components/tax-forms/states/west-virginia/WVWithholding.preview.d.ts +5 -0
- package/dist/components/tax-forms/states/west-virginia/WVWithholding.shared.d.ts +170 -0
- package/dist/components/tax-forms/states/west-virginia/WVWithholdingParts.d.ts +129 -0
- package/dist/components/tax-forms/states/west-virginia/useWVWithholdingForm.d.ts +62 -0
- package/dist/components/tax-forms/taxFormReason.d.ts +9 -0
- package/dist/components/tax-forms/taxFormRegistry.d.ts +45 -0
- package/dist/components/ui/CalendarPicker.d.ts +17 -0
- package/dist/index.cjs +33 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +26095 -9745
- package/dist/index.mjs.map +1 -1
- package/dist/lib/fieldRules.d.ts +42 -0
- package/dist/lib/fieldSchemas.d.ts +39 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { AmountParts } from '../../../../lib/fieldRules';
|
|
2
|
+
import { StateFormSubmitResponse } from '../../../../api/stateForms';
|
|
3
|
+
import { EntityDetailsResponse } from '../../../../types/entity';
|
|
4
|
+
/**
|
|
5
|
+
* Ids the backend issues once a return exists, sent back on submit so it
|
|
6
|
+
* updates that record. Absent (`null`) for a new return. Never shown. The
|
|
7
|
+
* same for all four forms.
|
|
8
|
+
*/
|
|
9
|
+
export interface WVBoundData {
|
|
10
|
+
payerDetailId?: number | null;
|
|
11
|
+
formRecordId?: number | null;
|
|
12
|
+
statePayrollFormId?: number | null;
|
|
13
|
+
}
|
|
14
|
+
/** The props every WV form takes — the same shape every other state form's component takes. */
|
|
15
|
+
export interface WVFormProps<V> {
|
|
16
|
+
data: WVBoundData;
|
|
17
|
+
/** Starting entries — anything omitted starts blank. */
|
|
18
|
+
initialValues?: Partial<V>;
|
|
19
|
+
/** Fires on every change with the complete set of entries. */
|
|
20
|
+
onValuesChange?: (values: V) => void;
|
|
21
|
+
/** Leaves the form. Omit to hide the Back button. */
|
|
22
|
+
onBack?: () => void;
|
|
23
|
+
/** Fires after a successful submit, with the API's response. */
|
|
24
|
+
onSubmitted?: (response: StateFormSubmitResponse) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function buildIdsPayload(data: WVBoundData): {
|
|
27
|
+
payerDetailId: number | null;
|
|
28
|
+
formRecordId: number | null;
|
|
29
|
+
statePayrollFormId: number | null;
|
|
30
|
+
};
|
|
31
|
+
/** `(path, ok, message)` — how every WV schema's `superRefine` reports an issue. */
|
|
32
|
+
export type Check = (path: (string | number)[], ok: boolean, message: string) => void;
|
|
33
|
+
/** WV withholding account number: 8 digits (STATE_PAYMENT_VALIDATION_GUIDE.md). */
|
|
34
|
+
export declare const WV_ACCOUNT_NUMBER_PATTERN: RegExp;
|
|
35
|
+
/** 1099-only filers may use their FEIN instead. */
|
|
36
|
+
export declare const WV_FEIN_PATTERN: RegExp;
|
|
37
|
+
export declare const WV_ACCOUNT_NUMBER_MAX_LENGTH = 10;
|
|
38
|
+
export declare function checkAccountNumber(value: string, check: Check, { allowFein }?: {
|
|
39
|
+
allowFein?: boolean;
|
|
40
|
+
}): void;
|
|
41
|
+
export interface WVBusinessValues {
|
|
42
|
+
/** The chosen Dashboard entity. `null` until one is chosen. */
|
|
43
|
+
payerId: number | null;
|
|
44
|
+
name: string;
|
|
45
|
+
address: string;
|
|
46
|
+
city: string;
|
|
47
|
+
state: string;
|
|
48
|
+
zipCode: string;
|
|
49
|
+
}
|
|
50
|
+
export declare const EMPTY_WV_BUSINESS_VALUES: WVBusinessValues;
|
|
51
|
+
/** Every field an entity fills — cleared from the error list as soon as one is chosen. */
|
|
52
|
+
export declare const WV_ENTITY_FIELDS: string[];
|
|
53
|
+
/**
|
|
54
|
+
* The business block + signature line's share of the backend's canonical auto-fill JSON
|
|
55
|
+
* (`TaxFormService.BuildAutoFillJson`) — every WV withholding form's own `.autofill.ts` calls
|
|
56
|
+
* these for its common fields, then adds whatever its own worksheet needs.
|
|
57
|
+
*/
|
|
58
|
+
export interface WVWithholdingAutoFillJson {
|
|
59
|
+
entityId?: number;
|
|
60
|
+
payer?: {
|
|
61
|
+
firstName?: string;
|
|
62
|
+
lastName?: string;
|
|
63
|
+
tradeName?: string | null;
|
|
64
|
+
accountType?: string;
|
|
65
|
+
address1?: string;
|
|
66
|
+
address2?: string | null;
|
|
67
|
+
city?: string;
|
|
68
|
+
state?: string;
|
|
69
|
+
zipCode?: string;
|
|
70
|
+
phone?: string;
|
|
71
|
+
email?: string;
|
|
72
|
+
};
|
|
73
|
+
payment?: {
|
|
74
|
+
taxYear?: string;
|
|
75
|
+
taxPeriod?: string | null;
|
|
76
|
+
paymentDate?: string | null;
|
|
77
|
+
stateAccountId?: string | null;
|
|
78
|
+
amount?: number;
|
|
79
|
+
};
|
|
80
|
+
authorization?: {
|
|
81
|
+
signerName?: string | null;
|
|
82
|
+
title?: string | null;
|
|
83
|
+
signature?: string | null;
|
|
84
|
+
signatureDate?: string | null;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export declare function wvBusinessFieldsFromAutoFill(autoFill: WVWithholdingAutoFillJson): WVBusinessValues;
|
|
88
|
+
export declare function wvSignerFieldsFromAutoFill(autoFill: WVWithholdingAutoFillJson): Partial<WVSignerValues>;
|
|
89
|
+
export declare function wvBusinessFieldsFromEntity(entity: EntityDetailsResponse): WVBusinessValues;
|
|
90
|
+
/** These come only from the entity, so a gap means the entity needs editing — not this return. */
|
|
91
|
+
export declare function checkBusiness(values: WVBusinessValues, check: Check): void;
|
|
92
|
+
export declare function buildBusinessPayload(values: WVBusinessValues): {
|
|
93
|
+
payerId: number;
|
|
94
|
+
business: {
|
|
95
|
+
name: string;
|
|
96
|
+
address: string;
|
|
97
|
+
city: string;
|
|
98
|
+
state: string;
|
|
99
|
+
zipCode: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export interface WVStoppedWagesValues {
|
|
103
|
+
hasStoppedWages: boolean;
|
|
104
|
+
/** MM/DD/YYYY — the final date wages were paid. */
|
|
105
|
+
finalWagesDate: string;
|
|
106
|
+
}
|
|
107
|
+
export declare const EMPTY_WV_STOPPED_WAGES_VALUES: WVStoppedWagesValues;
|
|
108
|
+
export declare function checkStoppedWages(values: WVStoppedWagesValues, check: Check): void;
|
|
109
|
+
export interface WVSignerValues {
|
|
110
|
+
signature: string;
|
|
111
|
+
signerName: string;
|
|
112
|
+
title: string;
|
|
113
|
+
signatureDate: string;
|
|
114
|
+
contactPerson: string;
|
|
115
|
+
contactPhone: string;
|
|
116
|
+
/** Printed on IT-101A and IT-103 only. */
|
|
117
|
+
email: string;
|
|
118
|
+
preparerSignature: string;
|
|
119
|
+
preparerAddress: string;
|
|
120
|
+
preparerDate: string;
|
|
121
|
+
}
|
|
122
|
+
export declare const EMPTY_WV_SIGNER_VALUES: WVSignerValues;
|
|
123
|
+
export declare const SIGNER_MAX_LENGTH = 60;
|
|
124
|
+
/**
|
|
125
|
+
* "An unsigned return is not a valid return!" — signature, name, title, date
|
|
126
|
+
* and a telephone number are required. The preparer line is all-or-nothing:
|
|
127
|
+
* blank is fine, but once any of it is filled the signature and date are
|
|
128
|
+
* needed.
|
|
129
|
+
*/
|
|
130
|
+
export declare function checkSigner(values: WVSignerValues, check: Check, { withEmail }: {
|
|
131
|
+
withEmail: boolean;
|
|
132
|
+
}): void;
|
|
133
|
+
export declare function buildSignerPayload(values: WVSignerValues, { withEmail }: {
|
|
134
|
+
withEmail: boolean;
|
|
135
|
+
}): {
|
|
136
|
+
declaration: {
|
|
137
|
+
signature: string;
|
|
138
|
+
name: string;
|
|
139
|
+
title: string;
|
|
140
|
+
signatureDate: string;
|
|
141
|
+
contactPerson: string;
|
|
142
|
+
contactPhone: string;
|
|
143
|
+
email: string | null;
|
|
144
|
+
};
|
|
145
|
+
preparer: {
|
|
146
|
+
signature: string;
|
|
147
|
+
address: string;
|
|
148
|
+
date: string;
|
|
149
|
+
} | null;
|
|
150
|
+
};
|
|
151
|
+
export declare const COUNT_MAX_LENGTH = 7;
|
|
152
|
+
/** "If none, enter zero" — WV's amount lines are required, and 0.00 is a valid entry. */
|
|
153
|
+
export declare function checkAmount(path: (string | number)[], amount: AmountParts, label: string, check: Check, { required }?: {
|
|
154
|
+
required?: boolean | undefined;
|
|
155
|
+
}): void;
|
|
156
|
+
/** A whole-number count box ("Number of employees…"). Blank is rejected; 0 is fine. */
|
|
157
|
+
export declare function checkCount(key: string, value: string, label: string, check: Check, { required }?: {
|
|
158
|
+
required?: boolean | undefined;
|
|
159
|
+
}): void;
|
|
160
|
+
export declare const MIN_TAX_YEAR = 2000;
|
|
161
|
+
export declare function checkTaxYear(key: string, value: string, check: Check, label?: string): void;
|
|
162
|
+
/** `"monthLiability.1"` -> message, the first issue per field. Amount issues point at `.dollars`, which is dropped. */
|
|
163
|
+
export declare function toFieldErrors(issues: {
|
|
164
|
+
path: PropertyKey[];
|
|
165
|
+
message: string;
|
|
166
|
+
}[]): Record<string, string>;
|
|
167
|
+
export declare function formatDollars(cents: number): string;
|
|
168
|
+
/** `MM/DD/YYYY`. */
|
|
169
|
+
export declare function formatDate(date: Date): string;
|
|
170
|
+
export declare const dollars: (cents: number) => number;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FormMode } from '../stateFormKit';
|
|
3
|
+
import { EntityDetailsResponse } from '../../../../types/entity';
|
|
4
|
+
import { WVSignerValues } from './WVWithholding.shared';
|
|
5
|
+
export interface InputProps {
|
|
6
|
+
value: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
onBlur?: () => void;
|
|
10
|
+
error?: string;
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
inputMode?: 'numeric' | 'text' | 'email' | 'tel';
|
|
13
|
+
}
|
|
14
|
+
export interface DateProps {
|
|
15
|
+
value: string;
|
|
16
|
+
onChange?: (value: string) => void;
|
|
17
|
+
onBlur?: () => void;
|
|
18
|
+
error?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function FieldError({ message }: {
|
|
21
|
+
message?: string;
|
|
22
|
+
}): import("react").JSX.Element | null;
|
|
23
|
+
/** `STATE OF WEST VIRGINIA / State Tax Department …` over `WV/IT-101Q WEST VIRGINIA EMPLOYER'S …`. */
|
|
24
|
+
export declare function FormMasthead({ formNumber, title, subtitle }: {
|
|
25
|
+
formNumber: string;
|
|
26
|
+
title: string;
|
|
27
|
+
subtitle?: ReactNode;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
29
|
+
/** A typed-in box — live input in edit mode, plain text in preview (or when the value comes from the entity). */
|
|
30
|
+
export declare function TextBox({ ariaLabel, value, placeholder, onChange, onBlur, error, maxLength, inputMode }: InputProps & {
|
|
31
|
+
ariaLabel: string;
|
|
32
|
+
}): import("react").JSX.Element;
|
|
33
|
+
/** Caption over a `TextBox` — the header cells ("Account #:", "Tax Year Ending:"). */
|
|
34
|
+
export declare function LabeledBox({ label, className, ...props }: InputProps & {
|
|
35
|
+
label: string;
|
|
36
|
+
className?: string;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
38
|
+
/** A date entry — the calendar picker while editing, plain text otherwise. */
|
|
39
|
+
export declare function DateBox({ ariaLabel, value, onChange, onBlur, error }: DateProps & {
|
|
40
|
+
ariaLabel: string;
|
|
41
|
+
}): import("react").JSX.Element;
|
|
42
|
+
/** A read-only header value — "Quarter Ending", "Due Date" — derived from the period. */
|
|
43
|
+
export declare function HeaderValue({ label, value, placeholder }: {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string | null;
|
|
46
|
+
placeholder: string;
|
|
47
|
+
}): import("react").JSX.Element;
|
|
48
|
+
export declare function CheckBox({ checked, onToggle, label }: {
|
|
49
|
+
checked: boolean;
|
|
50
|
+
onToggle?: () => void;
|
|
51
|
+
label: ReactNode;
|
|
52
|
+
}): import("react").JSX.Element;
|
|
53
|
+
/** The grey bar each part starts with — "Part 1: Complete Lines 1-10". */
|
|
54
|
+
export declare function PartHeading({ children }: {
|
|
55
|
+
children: ReactNode;
|
|
56
|
+
}): import("react").JSX.Element;
|
|
57
|
+
/** The ruled box the parts sit in. */
|
|
58
|
+
export declare function FormBox({ children }: {
|
|
59
|
+
children: ReactNode;
|
|
60
|
+
}): import("react").JSX.Element;
|
|
61
|
+
/**
|
|
62
|
+
* `2. Wages, tips and other compensation for the quarter │ [ amount ]` — one
|
|
63
|
+
* ruled row, the entry in the right-hand column as the return prints it. On
|
|
64
|
+
* a phone the entry drops below the label.
|
|
65
|
+
*/
|
|
66
|
+
export declare function LineRow({ number, label, hint, children }: {
|
|
67
|
+
number?: number | string;
|
|
68
|
+
label: ReactNode;
|
|
69
|
+
hint?: ReactNode;
|
|
70
|
+
children?: ReactNode;
|
|
71
|
+
}): import("react").JSX.Element;
|
|
72
|
+
/**
|
|
73
|
+
* Name / Address / City · State · Zip — filled from the "Filing for" entity
|
|
74
|
+
* and read-only here (the entity is edited from its own screen, never from a
|
|
75
|
+
* return), with the Account # the filer types beside it.
|
|
76
|
+
*/
|
|
77
|
+
export declare function BusinessBlock({ payerId, onSelectEntity, entityError, fields, accountNumber, accountNumberPlaceholder, }: {
|
|
78
|
+
payerId: number | null;
|
|
79
|
+
onSelectEntity: (entity: EntityDetailsResponse) => void;
|
|
80
|
+
entityError?: string;
|
|
81
|
+
fields: Record<'name' | 'address' | 'city' | 'state' | 'zipCode', {
|
|
82
|
+
value: string;
|
|
83
|
+
error?: string;
|
|
84
|
+
}>;
|
|
85
|
+
accountNumber: InputProps;
|
|
86
|
+
accountNumberPlaceholder?: string;
|
|
87
|
+
}): import("react").JSX.Element;
|
|
88
|
+
/** Part 2 — "If your business has stopped paying wages, check here and enter final date you paid wages". */
|
|
89
|
+
export declare function StoppedWagesRow({ checked, onToggle, date }: {
|
|
90
|
+
checked: boolean;
|
|
91
|
+
onToggle?: () => void;
|
|
92
|
+
date: DateProps;
|
|
93
|
+
}): import("react").JSX.Element;
|
|
94
|
+
/**
|
|
95
|
+
* Part 3 — the declaration, then the three rows of signature lines with their
|
|
96
|
+
* captions beneath. `bind` is the form's own field binder (the hook's `text`),
|
|
97
|
+
* so each entry saves, validates and locks like every other field.
|
|
98
|
+
*/
|
|
99
|
+
export declare function SignBlock({ bind, withEmail, }: {
|
|
100
|
+
bind: (key: keyof WVSignerValues, format?: (value: string) => string) => InputProps;
|
|
101
|
+
/** IT-101A and IT-103 print an E-mail address line; IT-101Q doesn't. */
|
|
102
|
+
withEmail: boolean;
|
|
103
|
+
}): import("react").JSX.Element;
|
|
104
|
+
/** The boxed "MAIL TO" panel at the foot of the page. */
|
|
105
|
+
export declare function MailToBox({ poBox, note }: {
|
|
106
|
+
poBox?: string;
|
|
107
|
+
note?: ReactNode;
|
|
108
|
+
}): import("react").JSX.Element;
|
|
109
|
+
/** The summary box every WV form closes its sheet with — totals and the due date. */
|
|
110
|
+
export declare function SummaryBox({ children }: {
|
|
111
|
+
children: ReactNode;
|
|
112
|
+
}): import("react").JSX.Element;
|
|
113
|
+
/**
|
|
114
|
+
* The page around a return: its heading, the white sheet, the "Fix the
|
|
115
|
+
* highlighted fields" line and the Back / Edit / Submit bar.
|
|
116
|
+
*/
|
|
117
|
+
export declare function WVFormFrame({ heading, form, children, }: {
|
|
118
|
+
heading: string;
|
|
119
|
+
form: {
|
|
120
|
+
mode: FormMode;
|
|
121
|
+
hasErrors: boolean;
|
|
122
|
+
isSubmitting: boolean;
|
|
123
|
+
startEditing: () => void;
|
|
124
|
+
cancelEditing: () => void;
|
|
125
|
+
submitForm: () => void;
|
|
126
|
+
onBack?: () => void;
|
|
127
|
+
};
|
|
128
|
+
children: ReactNode;
|
|
129
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { StateFormSubmitResponse } from '../../../../api/stateForms';
|
|
3
|
+
import { AmountParts, FormMode } from '../stateFormKit';
|
|
4
|
+
import { EntityDetailsResponse } from '../../../../types/entity';
|
|
5
|
+
import { WVBusinessValues } from './WVWithholding.shared';
|
|
6
|
+
/** The keys of `V` whose values are a `T` — e.g. every text box, every amount line. */
|
|
7
|
+
type KeysOfType<V, T> = {
|
|
8
|
+
[K in keyof V]: V[K] extends T ? K : never;
|
|
9
|
+
}[keyof V] & string;
|
|
10
|
+
interface FieldOptions {
|
|
11
|
+
/** `false` locks the field even while editing — e.g. a date whose check box is unticked. */
|
|
12
|
+
enabled?: boolean;
|
|
13
|
+
/** Other fields whose rules depend on this one, re-checked when it's left. */
|
|
14
|
+
alsoCheck?: string[];
|
|
15
|
+
}
|
|
16
|
+
interface Options<V extends WVBusinessValues, P extends {
|
|
17
|
+
formCode: string;
|
|
18
|
+
state: string;
|
|
19
|
+
}> {
|
|
20
|
+
formLabel: string;
|
|
21
|
+
schema: z.ZodType;
|
|
22
|
+
initialValues: V;
|
|
23
|
+
buildPayload: (values: V) => P;
|
|
24
|
+
/** Clears whatever the new entries switch off (e.g. a date whose checkbox was unticked) before they're saved. */
|
|
25
|
+
normalize?: (values: V) => V;
|
|
26
|
+
onValuesChange?: (values: V) => void;
|
|
27
|
+
onSubmitted?: (response: StateFormSubmitResponse) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare function useWVWithholdingForm<V extends WVBusinessValues, P extends {
|
|
30
|
+
formCode: string;
|
|
31
|
+
state: string;
|
|
32
|
+
}>({ formLabel, schema, initialValues, buildPayload, normalize, onValuesChange, onSubmitted, }: Options<V, P>): {
|
|
33
|
+
values: V;
|
|
34
|
+
mode: FormMode;
|
|
35
|
+
isEditing: boolean;
|
|
36
|
+
fieldErrors: Record<string, string>;
|
|
37
|
+
hasErrors: boolean;
|
|
38
|
+
commit: (raw: V) => void;
|
|
39
|
+
validateOnBlur: (...keys: string[]) => () => void;
|
|
40
|
+
text: (key: KeysOfType<V, string>, { format, enabled, alsoCheck }?: FieldOptions & {
|
|
41
|
+
format?: (value: string) => string;
|
|
42
|
+
}) => {
|
|
43
|
+
value: string;
|
|
44
|
+
onChange: ((value: string) => void) | undefined;
|
|
45
|
+
onBlur: () => void;
|
|
46
|
+
error: string;
|
|
47
|
+
};
|
|
48
|
+
amount: (key: KeysOfType<V, AmountParts>, label: string, { enabled, alsoCheck }?: FieldOptions) => {
|
|
49
|
+
label: string;
|
|
50
|
+
amount: AmountParts;
|
|
51
|
+
onChange: ((next: AmountParts) => void) | undefined;
|
|
52
|
+
onBlur: () => void;
|
|
53
|
+
error: string;
|
|
54
|
+
};
|
|
55
|
+
toggle: (key: KeysOfType<V, boolean>, enabled?: boolean) => (() => void) | undefined;
|
|
56
|
+
applyEntity: (entity: EntityDetailsResponse) => void;
|
|
57
|
+
startEditing: () => void;
|
|
58
|
+
cancelEditing: () => void;
|
|
59
|
+
submitForm: () => void;
|
|
60
|
+
isSubmitting: boolean;
|
|
61
|
+
};
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `StatePayrollForm.reason` comes back as the catalog's display label ("Withholding Tax"), not its
|
|
3
|
+
* code ("WITHHOLDING_TAX") — `StatePaymentDetails.ReasonForPayment` is persisted as the label (see
|
|
4
|
+
* `StatePaymentService`'s `reasonLabel`). Normalizing the same way `StatePaymentCatalog.
|
|
5
|
+
* NormalizeReasonCode` does lets either form match.
|
|
6
|
+
*/
|
|
7
|
+
export declare function normalizeReasonCode(reason: string): string;
|
|
8
|
+
/** Estimated/Income Tax reasons — the ones a payment-status-derived badge applies to (see `TaxFormStatusBadge`). */
|
|
9
|
+
export declare function isReadOnlyFormReason(reason: string): boolean;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StateFormSubmitResponse } from '../../api/stateForms';
|
|
3
|
+
export interface UsState {
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
/** The 50 states plus DC, alphabetical by name. */
|
|
8
|
+
export declare const US_STATES: UsState[];
|
|
9
|
+
/**
|
|
10
|
+
* `individual` — a person's own income tax (estimated payments).
|
|
11
|
+
* `business` — a business's own income tax (corporate estimated payments).
|
|
12
|
+
* `withholding` — an employer's returns/payments of tax withheld from employees.
|
|
13
|
+
*/
|
|
14
|
+
export type TaxFormCategory = 'individual' | 'business' | 'withholding';
|
|
15
|
+
export interface TaxFormListing {
|
|
16
|
+
/** URL-safe id, used in `?form=`. */
|
|
17
|
+
id: string;
|
|
18
|
+
stateCode: string;
|
|
19
|
+
category: TaxFormCategory;
|
|
20
|
+
formNumber: string;
|
|
21
|
+
/**
|
|
22
|
+
* The exact code `StatePayrollForm.formCode` resolves to (`StatePaymentFormReferenceCatalog`'s
|
|
23
|
+
* seeded `FormName`), when it differs from `formNumber`'s display spelling — e.g. a voucher
|
|
24
|
+
* covering multiple return types ("120/165ES") that the catalog only ever resolves to one of
|
|
25
|
+
* them ("120ES"). `TaxFormRecordView` matches on this before falling back to `formNumber`.
|
|
26
|
+
*/
|
|
27
|
+
formCode?: string;
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
/** How often it's filed, shown as a pill. */
|
|
31
|
+
frequency: string;
|
|
32
|
+
/** Catalog browsing (preview-bound) — see TaxFormsCatalogBrowser in TaxFormsPage.tsx. */
|
|
33
|
+
render: (onBack: () => void) => ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* A real, created tax form record, bound to its actual data — see `TaxFormRecordView.tsx`.
|
|
36
|
+
* Optional while each form gets its own auto-fill mapper (see `AL40ESForm.autofill.ts`);
|
|
37
|
+
* a listing without one falls back to the generic `TaxFormDetailPanel`.
|
|
38
|
+
*/
|
|
39
|
+
renderBound?: (ids: {
|
|
40
|
+
payerDetailId: number | null;
|
|
41
|
+
formRecordId: number | null;
|
|
42
|
+
statePayrollFormId: number | null;
|
|
43
|
+
}, autoFillJson: unknown, onBack: () => void, onSubmitted: (response: StateFormSubmitResponse) => void) => ReactNode;
|
|
44
|
+
}
|
|
45
|
+
export declare const TAX_FORM_LISTINGS: TaxFormListing[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface CalendarPickerProps {
|
|
2
|
+
/** The field's current text, in whatever format the caller's `parseValue`/`formatValue` use. */
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
onBlur?: () => void;
|
|
6
|
+
/** Turns the display text into a `Date`; return `null`/`undefined` while it isn't a complete valid date yet. */
|
|
7
|
+
parseValue: (value: string) => Date | null | undefined;
|
|
8
|
+
/** Turns a picked calendar day back into the display text. */
|
|
9
|
+
formatValue: (date: Date) => string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
hasError?: boolean;
|
|
13
|
+
/** Grays out and disallows picking a date the caller doesn't consider valid (e.g. weekends, an out-of-range date). */
|
|
14
|
+
isDateSelectable?: (date: Date) => boolean;
|
|
15
|
+
monthLabel?: (year: number, monthIndex: number) => string;
|
|
16
|
+
}
|
|
17
|
+
export declare function CalendarPicker({ value, onChange, onBlur, parseValue, formatValue, placeholder, disabled, hasError, isDateSelectable, monthLabel, }: CalendarPickerProps): import("react").JSX.Element;
|