@npm-zenwork/tax-remittance-ui 0.2.5 → 0.3.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/bankAccounts.d.ts +4 -4
- package/dist/api/dashboard.d.ts +3 -1
- package/dist/api/entities.d.ts +5 -5
- package/dist/api/remittancePayments.d.ts +2 -1
- package/dist/api/statePayments.d.ts +9 -0
- package/dist/api/taxAccounts.d.ts +10 -1
- package/dist/components/dashboard/DashboardKpiCards.d.ts +10 -0
- package/dist/components/dashboard/FederalPaymentsChartCard.d.ts +11 -0
- package/dist/components/dashboard/NeedAttentionCarousel.d.ts +6 -0
- package/dist/components/dashboard/PaymentsTypeCard.d.ts +7 -0
- package/dist/components/dashboard/RecentPaymentsCard.d.ts +6 -0
- package/dist/components/dashboard/RowActionsMenu.d.ts +13 -0
- package/dist/components/dashboard/StatePaymentsChartCard.d.ts +11 -0
- package/dist/components/dashboard/TaxYearSelect.d.ts +9 -0
- package/dist/components/dashboard/UpcomingPaymentsCard.d.ts +6 -0
- package/dist/components/dashboard/dashboardMockData.d.ts +63 -0
- package/dist/components/dashboard/dashboardOverviewMappers.d.ts +15 -0
- package/dist/components/dashboard/dashboardUtils.d.ts +18 -0
- package/dist/components/dashboard/useSetupProgress.d.ts +6 -1
- package/dist/components/entities/entityListUtils.d.ts +5 -14
- package/dist/components/forms/PhoneInputGroup.d.ts +5 -7
- package/dist/components/forms/SegmentedControl.d.ts +5 -5
- package/dist/components/onboarding/EntityAccountTypeRow.d.ts +5 -3
- package/dist/components/onboarding/EntityBusinessFields.d.ts +1 -3
- package/dist/components/onboarding/EntityPhoneField.d.ts +2 -3
- package/dist/components/onboarding/EntityPrimaryTaxpayerFields.d.ts +1 -2
- package/dist/components/onboarding/SecondaryTaxpayerSection.d.ts +4 -2
- package/dist/components/onboarding/SecondaryTaxpayerToggle.d.ts +10 -0
- package/dist/components/onboarding/useEntityForm.d.ts +5 -3
- package/dist/components/payments/FederalPaymentReviewPanel.d.ts +14 -0
- package/dist/components/payments/FederalPaymentReviewStep.d.ts +13 -0
- package/dist/components/payments/PaymentActionsFooter.d.ts +43 -0
- package/dist/components/payments/RecurringPaymentToggle.d.ts +4 -8
- package/dist/components/payments/RecurringPeriodRows.d.ts +4 -4
- package/dist/components/payments/eftpsIndividualEnrollmentConfig.d.ts +3 -3
- package/dist/components/settings/EditEntityForm.d.ts +12 -0
- package/dist/components/settings/TaxAccountDrawer.d.ts +2 -2
- package/dist/components/settings/taxAccountDrawerConfig.d.ts +0 -4
- package/dist/components/tax-forms/states/stateFormKit.d.ts +101 -0
- package/dist/components/tax-forms/states/virginia/VA15Form.d.ts +38 -0
- package/dist/components/tax-forms/states/virginia/VA15Form.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/virginia/VA16Form.d.ts +50 -0
- package/dist/components/tax-forms/states/virginia/VA16Form.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/virginia/VA5Form.d.ts +49 -0
- package/dist/components/tax-forms/states/virginia/VA5Form.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/virginia/VA6Form.d.ts +49 -0
- package/dist/components/tax-forms/states/virginia/VA6Form.preview.d.ts +2 -0
- package/dist/components/tax-forms/states/virginia/VA760ESForm.d.ts +54 -0
- package/dist/components/tax-forms/states/virginia/VA760ESForm.preview.d.ts +2 -0
- package/dist/components/ui/ToastProvider.d.ts +2 -2
- package/dist/embedded/EmbeddedContext.d.ts +4 -1
- package/dist/embedded/EmbeddedWidgetBase.d.ts +3 -1
- package/dist/embedded/TaxRemittanceEmbedded.d.ts +6 -0
- package/dist/embedded/pages/EmbeddedEntityEditPage.d.ts +6 -0
- package/dist/index.cjs +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +10850 -9252
- package/dist/index.mjs.map +1 -1
- package/dist/lib/entityFormUtils.d.ts +19 -7
- package/dist/lib/fieldRules.d.ts +92 -0
- package/dist/lib/fieldSchemas.d.ts +12 -0
- package/dist/lib/jwt.d.ts +10 -0
- package/dist/lib/paymentFrequency.d.ts +10 -0
- package/dist/lib/paymentStatus.d.ts +7 -0
- package/dist/lib/paymentsNavigation.d.ts +12 -0
- package/dist/lib/useElementWidth.d.ts +9 -0
- package/dist/pages/FederalPaymentReviewPage.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/dist/types/bankAccount.d.ts +2 -0
- package/dist/types/createBankAccount.d.ts +2 -0
- package/dist/types/dashboard.d.ts +59 -0
- package/dist/types/entity.d.ts +3 -2
- package/dist/types/statePayment.d.ts +29 -3
- package/dist/types/statePaymentFlow.d.ts +9 -0
- package/dist/types/taxAccountDetails.d.ts +33 -29
- package/package.json +1 -1
- package/dist/components/dashboard/MonthlyOverviewSection.d.ts +0 -8
- package/dist/components/dashboard/MyPaymentsTable.d.ts +0 -8
- package/dist/components/dashboard/PaymentSummaryCard.d.ts +0 -21
- package/dist/components/settings/AddTaxAccountForm.d.ts +0 -32
- package/dist/components/settings/EditEntityModal.d.ts +0 -8
- package/dist/components/settings/taxAccountFormConfig.d.ts +0 -18
- package/dist/pages/AddTaxAccountPage.d.ts +0 -1
- package/dist/types/taxAccount.d.ts +0 -9
|
@@ -17,10 +17,10 @@ interface RecurringPeriodRowsProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* Extra tax period / amount / date rows for a recurring schedule.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* Each row becomes its own occurrence in CreateStatePaymentRequest.occurrences on submit,
|
|
21
|
+
* alongside the primary row owned by the form itself — see AddStatePaymentForm's toDraft /
|
|
22
|
+
* statePaymentFlow's toCreateStatePaymentRequest. Using these rows takes over from the legacy
|
|
23
|
+
* server-generated Frequency/End Date schedule (they're mutually exclusive on the backend).
|
|
24
24
|
*/
|
|
25
25
|
export declare function RecurringPeriodRows({ rows, taxPeriodOptions, onChange, onRemove, onAdd, disabled, }: RecurringPeriodRowsProps): import("react").JSX.Element;
|
|
26
26
|
interface PeriodRowDeleteButtonProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const authorityToExecuteAgreement = "
|
|
1
|
+
export declare const disclosureAuthorizationAgreement = "I hereby authorize the contact person listed in item 5 on this form and financial institutions involved in the processing of my Electronic Federal Tax Payment System (EFTPS) payments to receive confidential information necessary to effect enrollment in EFTPS, electronic payment of taxes, answer inquiries and resolve issues related to enrollment and payments. This information includes, but is not limited to, passwords, payment instructions, taxpayer name and identifying number, and payment transaction details. This authorization is to remain in full force and effect until the designated Financial Agents of the U.S. Treasury have received written notification from me of termination in such time and in such manner to afford a reasonable opportunity to act on it.";
|
|
2
|
+
export declare const debitAuthorizationAgreement = "By completing the financial institution information in items 9-11 on this form, I authorize designated Financial Agents of the U.S. Treasury to initiate EFTPS debit entries to the financial institution account indicated above, for payment of federal taxes owed to the IRS upon request by Taxpayer or his/her representative, using the Electronic Federal Tax Payment System (EFTPS). I further authorize the financial institution named above to debit such entries to the financial institution account indicated above. All debits initiated by the U.S. Treasury designated Financial Agents pursuant to this authorization shall be made under U.S. Treasury regulations. This authorization is to remain in full force and effect until the designated Financial Agents of the U.S. Treasury have received written notification of termination in such time and in such manner as to afford a reasonable opportunity to act on it.";
|
|
3
|
+
export declare const authorityToExecuteAgreement = "If signed by a corporate officer, partner, or fiduciary on behalf of the taxpayer, I certify that I have the authority to have payments made from the taxpayer\u2019s account. If signed by a representative of the taxpayer, I certify that I have the authority to execute this authorization on behalf of the taxpayer (i.e., authority provided by Form 2848, Power of Attorney and Declaration of Representative, or Form 8655, Reporting Agent Authorization for Magnetic Tape/Electronic Filers)";
|
|
4
4
|
export declare const agiTaxYearOptions: string[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EntityDetailsResponse } from '../../types/entity';
|
|
2
|
+
interface EditEntityFormProps {
|
|
3
|
+
entity: EntityDetailsResponse;
|
|
4
|
+
onCancel: () => void;
|
|
5
|
+
onSaved: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Edit Entity form — same composition as the Add Entity form (EntityForm), with
|
|
9
|
+
* the identifier locked and no filing status, which the update payload omits.
|
|
10
|
+
*/
|
|
11
|
+
export declare function EditEntityForm({ entity, onCancel, onSaved }: EditEntityFormProps): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -3,9 +3,9 @@ import { TaxAccountDetailResponse } from '../../types/taxAccountDetails';
|
|
|
3
3
|
declare const taxAccountSchema: z.ZodObject<{
|
|
4
4
|
state: z.ZodString;
|
|
5
5
|
reasonForPayment: z.ZodString;
|
|
6
|
+
stateAccountId: z.ZodString;
|
|
6
7
|
accountId: z.ZodString;
|
|
7
|
-
|
|
8
|
-
taxYear: z.ZodOptional<z.ZodString>;
|
|
8
|
+
taxYear: z.ZodString;
|
|
9
9
|
frequency: z.ZodOptional<z.ZodString>;
|
|
10
10
|
status: z.ZodString;
|
|
11
11
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
/** Filing cadences offered for a tax account. */
|
|
2
|
-
export declare const TAX_ACCOUNT_FREQUENCIES: readonly ["Monthly", "Quarterly", "Semi-Annually", "Annually"];
|
|
3
1
|
export declare const TAX_ACCOUNT_STATUSES: readonly ["Active", "Inactive"];
|
|
4
|
-
/** Current year and the four before it — the years an account can be filed for. */
|
|
5
|
-
export declare function getTaxAccountYearOptions(): string[];
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface AmountParts {
|
|
3
|
+
dollars: string;
|
|
4
|
+
cents: string;
|
|
5
|
+
}
|
|
6
|
+
/** The white "paper" a return is laid out on. */
|
|
7
|
+
export declare function FormSheet({ children }: {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
/** Outer rule around a group of `BoxedRow`s. */
|
|
11
|
+
export declare function BoxedGroup({ children }: {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* One ruled row. `columns` is a grid template matching the printed cell widths.
|
|
16
|
+
* VA-15 runs its city/state/ZIP labels over a single unbroken fill, so the
|
|
17
|
+
* vertical rules are optional.
|
|
18
|
+
*/
|
|
19
|
+
export declare function BoxedRow({ columns, dividers, children, }: {
|
|
20
|
+
columns?: string;
|
|
21
|
+
dividers?: boolean;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
}): import("react").JSX.Element;
|
|
24
|
+
/**
|
|
25
|
+
* Caption-over-value cell — the agency's boxed field.
|
|
26
|
+
*
|
|
27
|
+
* `filled` draws the value on the pale blue band the fillable vouchers print
|
|
28
|
+
* (VA-15); without it the value sits on plain paper (VA-16).
|
|
29
|
+
*/
|
|
30
|
+
export declare function BoxedField({ label, value, filled, }: {
|
|
31
|
+
label: string;
|
|
32
|
+
value?: string;
|
|
33
|
+
filled?: boolean;
|
|
34
|
+
}): import("react").JSX.Element;
|
|
35
|
+
/** The OCR line the agency prints across the return. */
|
|
36
|
+
export declare function ScanLine({ value }: {
|
|
37
|
+
value: string;
|
|
38
|
+
}): import("react").JSX.Element;
|
|
39
|
+
/** Dollars box, decimal point, cents box — the split money field, read-only. */
|
|
40
|
+
export declare function AmountBox({ amount, label }: {
|
|
41
|
+
amount: AmountParts;
|
|
42
|
+
label: string;
|
|
43
|
+
}): import("react").JSX.Element;
|
|
44
|
+
/**
|
|
45
|
+
* The same field, filled in by the taxpayer. White rather than filled so a line
|
|
46
|
+
* that wants an entry reads differently from one the payment already answered.
|
|
47
|
+
*/
|
|
48
|
+
export declare function AmountInput({ amount, label, onChange, }: {
|
|
49
|
+
amount: AmountParts;
|
|
50
|
+
label: string;
|
|
51
|
+
onChange: (amount: AmountParts) => void;
|
|
52
|
+
}): import("react").JSX.Element;
|
|
53
|
+
/** Read-only box or input, chosen by whether the caller passes a handler. */
|
|
54
|
+
export declare function AmountField({ amount, label, onChange, }: {
|
|
55
|
+
amount: AmountParts;
|
|
56
|
+
label: string;
|
|
57
|
+
onChange?: (amount: AmountParts) => void;
|
|
58
|
+
}): import("react").JSX.Element;
|
|
59
|
+
/**
|
|
60
|
+
* A rule with its caption underneath, as the return prints it. Supply
|
|
61
|
+
* `onChange` for the lines the taxpayer signs and dates; leave it off for
|
|
62
|
+
* anything the payment already answered.
|
|
63
|
+
*/
|
|
64
|
+
export declare function SignatureLine({ caption, value, placeholder, onChange, maxLength, }: {
|
|
65
|
+
caption: string;
|
|
66
|
+
value?: string;
|
|
67
|
+
placeholder?: string;
|
|
68
|
+
onChange?: (value: string) => void;
|
|
69
|
+
maxLength?: number;
|
|
70
|
+
}): import("react").JSX.Element;
|
|
71
|
+
export type FormMode = 'preview' | 'edit';
|
|
72
|
+
/**
|
|
73
|
+
* A return opens in preview: nothing is editable and it cannot be submitted,
|
|
74
|
+
* so a filer reads what the payment produced before touching anything. Edit
|
|
75
|
+
* unlocks the taxpayer-entered fields and turns into Cancel.
|
|
76
|
+
*/
|
|
77
|
+
export declare function FormActions({ mode, onBack, onEdit, onCancel, onSubmit, submitLabel, isSubmitting, }: {
|
|
78
|
+
mode: FormMode;
|
|
79
|
+
onBack?: () => void;
|
|
80
|
+
onEdit: () => void;
|
|
81
|
+
onCancel: () => void;
|
|
82
|
+
onSubmit?: () => void;
|
|
83
|
+
submitLabel: string;
|
|
84
|
+
isSubmitting?: boolean;
|
|
85
|
+
}): import("react").JSX.Element;
|
|
86
|
+
/**
|
|
87
|
+
* One numbered money line: `3. Adjustment Total [ 2,450 . 00 ]`.
|
|
88
|
+
*
|
|
89
|
+
* `columns` lets a form match its own printed proportions — VA-5 gives the
|
|
90
|
+
* amount more room than VA-16 does.
|
|
91
|
+
*/
|
|
92
|
+
export declare function AmountLine({ number, label, hint, amount, onAmountChange, columns, }: {
|
|
93
|
+
number: number;
|
|
94
|
+
label: string;
|
|
95
|
+
/** Small print under the label, e.g. `(See Instructions)`. */
|
|
96
|
+
hint?: string;
|
|
97
|
+
amount: AmountParts;
|
|
98
|
+
/** Supplied for lines the taxpayer fills in; omitted for payment-bound lines. */
|
|
99
|
+
onAmountChange?: (amount: AmountParts) => void;
|
|
100
|
+
columns?: string;
|
|
101
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AmountParts } from '../stateFormKit';
|
|
2
|
+
/** Filled in from the state payment — displayed, never edited here. */
|
|
3
|
+
export interface VA15BoundData {
|
|
4
|
+
/** Printed under the title, e.g. `315`. */
|
|
5
|
+
docId: string;
|
|
6
|
+
/** The quarter this voucher falls in, as printed. */
|
|
7
|
+
quarterlyPeriodEnding: string;
|
|
8
|
+
/** The OCR line across the middle of the voucher. */
|
|
9
|
+
scanLine: string;
|
|
10
|
+
accountNumber: string;
|
|
11
|
+
name: string;
|
|
12
|
+
address: string;
|
|
13
|
+
city: string;
|
|
14
|
+
state: string;
|
|
15
|
+
zipCode: string;
|
|
16
|
+
/** The payment being remitted — the voucher's only figure. */
|
|
17
|
+
totalAmountDue: AmountParts;
|
|
18
|
+
}
|
|
19
|
+
/** What the taxpayer completes on the voucher. */
|
|
20
|
+
export interface VA15EditableValues {
|
|
21
|
+
signature: string;
|
|
22
|
+
signatureDate: string;
|
|
23
|
+
phoneNumber: string;
|
|
24
|
+
}
|
|
25
|
+
interface VA15FormProps {
|
|
26
|
+
data: VA15BoundData;
|
|
27
|
+
/** Starting entries — anything omitted starts blank. */
|
|
28
|
+
initialValues?: Partial<VA15EditableValues>;
|
|
29
|
+
/** Fires on every keystroke with the complete set of entries. */
|
|
30
|
+
onValuesChange?: (values: VA15EditableValues) => void;
|
|
31
|
+
/** Leaves the voucher. Omit to hide the Back button. */
|
|
32
|
+
onBack?: () => void;
|
|
33
|
+
/** Offered only once the voucher is in edit mode. */
|
|
34
|
+
onSubmit?: (values: VA15EditableValues) => void;
|
|
35
|
+
isSubmitting?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare function VA15Form({ data, initialValues, onValuesChange, onBack, onSubmit, isSubmitting, }: VA15FormProps): import("react").JSX.Element;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AmountParts } from '../stateFormKit';
|
|
2
|
+
/** Filled in from the state payment — displayed, never edited here. */
|
|
3
|
+
export interface VA16BoundData {
|
|
4
|
+
/** Printed top-right, e.g. `316`. */
|
|
5
|
+
docId: string;
|
|
6
|
+
/** Quarter end, as printed: `03 / 31 / 2026`. */
|
|
7
|
+
period: string;
|
|
8
|
+
dueDate: string;
|
|
9
|
+
/** The OCR line across the middle of the return. */
|
|
10
|
+
scanLine: string;
|
|
11
|
+
accountNumber: string;
|
|
12
|
+
fein: string;
|
|
13
|
+
name: string;
|
|
14
|
+
address: string;
|
|
15
|
+
city: string;
|
|
16
|
+
state: string;
|
|
17
|
+
zipCode: string;
|
|
18
|
+
/** Line 1 — the payment's withheld tax. */
|
|
19
|
+
incomeTaxWithheld: AmountParts;
|
|
20
|
+
}
|
|
21
|
+
/** Money lines 2–9, which the taxpayer completes. */
|
|
22
|
+
export interface VA16EditableAmounts {
|
|
23
|
+
previousPeriodAdjustments: AmountParts;
|
|
24
|
+
adjustedTotal: AmountParts;
|
|
25
|
+
paymentsMadeThisPeriod: AmountParts;
|
|
26
|
+
balanceOfTaxDue: AmountParts;
|
|
27
|
+
penalty: AmountParts;
|
|
28
|
+
interest: AmountParts;
|
|
29
|
+
paymentForFollowingMonth: AmountParts;
|
|
30
|
+
totalAmountDue: AmountParts;
|
|
31
|
+
}
|
|
32
|
+
export interface VA16EditableValues extends VA16EditableAmounts {
|
|
33
|
+
signature: string;
|
|
34
|
+
signatureDate: string;
|
|
35
|
+
phoneNumber: string;
|
|
36
|
+
}
|
|
37
|
+
interface VA16FormProps {
|
|
38
|
+
data: VA16BoundData;
|
|
39
|
+
/** Starting entries — anything omitted starts blank. */
|
|
40
|
+
initialValues?: Partial<VA16EditableValues>;
|
|
41
|
+
/** Fires on every keystroke with the complete set of entries. */
|
|
42
|
+
onValuesChange?: (values: VA16EditableValues) => void;
|
|
43
|
+
/** Leaves the return. Omit to hide the Back button. */
|
|
44
|
+
onBack?: () => void;
|
|
45
|
+
/** Offered only once the return is in edit mode. */
|
|
46
|
+
onSubmit?: (values: VA16EditableValues) => void;
|
|
47
|
+
isSubmitting?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare function VA16Form({ data, initialValues, onValuesChange, onBack, onSubmit, isSubmitting, }: VA16FormProps): import("react").JSX.Element;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AmountParts } from '../stateFormKit';
|
|
2
|
+
/** Filled in from the state payment — displayed, never edited here. */
|
|
3
|
+
export interface VA5BoundData {
|
|
4
|
+
/** Printed under the title, e.g. `355`. */
|
|
5
|
+
docId: string;
|
|
6
|
+
/** Filing frequency printed beside the Doc ID — `M` monthly, `Q` quarterly. */
|
|
7
|
+
filingFrequency: string;
|
|
8
|
+
/** Period end, as printed: `03 / 31 / 2026`. */
|
|
9
|
+
period: string;
|
|
10
|
+
dueDate: string;
|
|
11
|
+
/** The OCR line across the middle of the return. */
|
|
12
|
+
scanLine: string;
|
|
13
|
+
accountNumber: string;
|
|
14
|
+
fein: string;
|
|
15
|
+
name: string;
|
|
16
|
+
address: string;
|
|
17
|
+
city: string;
|
|
18
|
+
state: string;
|
|
19
|
+
zipCode: string;
|
|
20
|
+
/** Line 1 — the payment's withheld tax. */
|
|
21
|
+
incomeTaxWithheld: AmountParts;
|
|
22
|
+
}
|
|
23
|
+
/** Money lines 2–6, which the taxpayer completes. */
|
|
24
|
+
export interface VA5EditableAmounts {
|
|
25
|
+
previousPeriodAdjustments: AmountParts;
|
|
26
|
+
adjustmentTotal: AmountParts;
|
|
27
|
+
penalty: AmountParts;
|
|
28
|
+
interest: AmountParts;
|
|
29
|
+
totalAmountDue: AmountParts;
|
|
30
|
+
}
|
|
31
|
+
export interface VA5EditableValues extends VA5EditableAmounts {
|
|
32
|
+
signature: string;
|
|
33
|
+
signatureDate: string;
|
|
34
|
+
phoneNumber: string;
|
|
35
|
+
}
|
|
36
|
+
interface VA5FormProps {
|
|
37
|
+
data: VA5BoundData;
|
|
38
|
+
/** Starting entries — anything omitted starts blank. */
|
|
39
|
+
initialValues?: Partial<VA5EditableValues>;
|
|
40
|
+
/** Fires on every keystroke with the complete set of entries. */
|
|
41
|
+
onValuesChange?: (values: VA5EditableValues) => void;
|
|
42
|
+
/** Leaves the return. Omit to hide the Back button. */
|
|
43
|
+
onBack?: () => void;
|
|
44
|
+
/** Offered only once the return is in edit mode. */
|
|
45
|
+
onSubmit?: (values: VA5EditableValues) => void;
|
|
46
|
+
isSubmitting?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare function VA5Form({ data, initialValues, onValuesChange, onBack, onSubmit, isSubmitting, }: VA5FormProps): import("react").JSX.Element;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AmountParts } from '../stateFormKit';
|
|
2
|
+
/** Filled in from the state payment — displayed, never edited here. */
|
|
3
|
+
export interface VA6BoundData {
|
|
4
|
+
/** Printed under the title, e.g. `306`. */
|
|
5
|
+
docId: string;
|
|
6
|
+
/** The year being summarised, as printed. */
|
|
7
|
+
calendarYear: string;
|
|
8
|
+
dueDate: string;
|
|
9
|
+
/** The OCR line across the middle of the return. */
|
|
10
|
+
scanLine: string;
|
|
11
|
+
accountNumber: string;
|
|
12
|
+
fein: string;
|
|
13
|
+
name: string;
|
|
14
|
+
address: string;
|
|
15
|
+
city: string;
|
|
16
|
+
state: string;
|
|
17
|
+
zipCode: string;
|
|
18
|
+
}
|
|
19
|
+
/** What the taxpayer completes on the return. */
|
|
20
|
+
export interface VA6EditableValues {
|
|
21
|
+
/** Lines 1–12, one per month, January first. */
|
|
22
|
+
monthlyPayments: AmountParts[];
|
|
23
|
+
/** 13 — Add Lines 1–12. */
|
|
24
|
+
totalPayments: AmountParts;
|
|
25
|
+
/** 14 — Total VA Tax Withheld. */
|
|
26
|
+
totalTaxWithheld: AmountParts;
|
|
27
|
+
/** 15 — Lines 13–14. */
|
|
28
|
+
additionalPayment: AmountParts;
|
|
29
|
+
paidElectronically: boolean;
|
|
30
|
+
/** 16 — count of W-2 and 1099 statements, not a money value. */
|
|
31
|
+
statementCount: string;
|
|
32
|
+
signature: string;
|
|
33
|
+
signatureDate: string;
|
|
34
|
+
phoneNumber: string;
|
|
35
|
+
}
|
|
36
|
+
interface VA6FormProps {
|
|
37
|
+
data: VA6BoundData;
|
|
38
|
+
/** Starting entries — anything omitted starts blank. */
|
|
39
|
+
initialValues?: Partial<VA6EditableValues>;
|
|
40
|
+
/** Fires on every keystroke with the complete set of entries. */
|
|
41
|
+
onValuesChange?: (values: VA6EditableValues) => void;
|
|
42
|
+
/** Leaves the return. Omit to hide the Back button. */
|
|
43
|
+
onBack?: () => void;
|
|
44
|
+
/** Offered only once the return is in edit mode. */
|
|
45
|
+
onSubmit?: (values: VA6EditableValues) => void;
|
|
46
|
+
isSubmitting?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare function VA6Form({ data, initialValues, onValuesChange, onBack, onSubmit, isSubmitting, }: VA6FormProps): import("react").JSX.Element;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { AmountParts } from '../stateFormKit';
|
|
2
|
+
/** A Part I line is answered once per column. */
|
|
3
|
+
export interface ColumnPair {
|
|
4
|
+
/** Column A — spouse, when filing Status 4 on Form 760PY. */
|
|
5
|
+
a: AmountParts;
|
|
6
|
+
/** Column B — yourself; used by all other filers. */
|
|
7
|
+
b: AmountParts;
|
|
8
|
+
}
|
|
9
|
+
/** Filled in from the state payment — displayed, never edited here. */
|
|
10
|
+
export interface VA760ESBoundData {
|
|
11
|
+
/** The year being estimated. Every year printed on the worksheet derives from it. */
|
|
12
|
+
taxYear: string;
|
|
13
|
+
}
|
|
14
|
+
/** Part I — computed separately for each column. */
|
|
15
|
+
export interface VA760ESPairValues {
|
|
16
|
+
adjustedGrossIncome: ColumnPair;
|
|
17
|
+
itemizedDeductions: ColumnPair;
|
|
18
|
+
standardDeduction: ColumnPair;
|
|
19
|
+
childCareExpenses: ColumnPair;
|
|
20
|
+
personalExemptions: ColumnPair;
|
|
21
|
+
deductionsTotal: ColumnPair;
|
|
22
|
+
taxableIncome: ColumnPair;
|
|
23
|
+
incomeTax: ColumnPair;
|
|
24
|
+
taxAdjustments: ColumnPair;
|
|
25
|
+
estimatedIncomeTax: ColumnPair;
|
|
26
|
+
}
|
|
27
|
+
export interface VA760ESEditableValues extends VA760ESPairValues {
|
|
28
|
+
/** 10 — Line 9, Column A plus Column B. */
|
|
29
|
+
totalEstimatedTax: AmountParts;
|
|
30
|
+
/** 11 — the amount from Line 10. */
|
|
31
|
+
estimatedTax: AmountParts;
|
|
32
|
+
/** 12 — expected withholding for the year. */
|
|
33
|
+
expectedWithholding: AmountParts;
|
|
34
|
+
/** 13 — Line 11 less Line 12. */
|
|
35
|
+
estimatedTaxDue: AmountParts;
|
|
36
|
+
/** 14 — a count of payments, not a money value. */
|
|
37
|
+
numberOfPayments: string;
|
|
38
|
+
/** 15 — the installment to enclose payment for. */
|
|
39
|
+
installmentAmount: AmountParts;
|
|
40
|
+
}
|
|
41
|
+
interface VA760ESFormProps {
|
|
42
|
+
data: VA760ESBoundData;
|
|
43
|
+
/** Starting entries — anything omitted starts blank. */
|
|
44
|
+
initialValues?: Partial<VA760ESEditableValues>;
|
|
45
|
+
/** Fires on every keystroke with the complete set of entries. */
|
|
46
|
+
onValuesChange?: (values: VA760ESEditableValues) => void;
|
|
47
|
+
/** Leaves the worksheet. Omit to hide the Back button. */
|
|
48
|
+
onBack?: () => void;
|
|
49
|
+
/** Offered only once the worksheet is in edit mode. */
|
|
50
|
+
onSubmit?: (values: VA760ESEditableValues) => void;
|
|
51
|
+
isSubmitting?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export declare function VA760ESForm({ data, initialValues, onValuesChange, onBack, onSubmit, isSubmitting, }: VA760ESFormProps): import("react").JSX.Element;
|
|
54
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
interface ToastContextValue {
|
|
3
|
-
showSuccess: (title: string, message
|
|
4
|
-
showError: (title: string, message
|
|
3
|
+
showSuccess: (title: string, message?: string) => void;
|
|
4
|
+
showError: (title: string, message?: string) => void;
|
|
5
5
|
}
|
|
6
6
|
export declare function ToastProvider({ children }: {
|
|
7
7
|
children: ReactNode;
|
|
@@ -11,13 +11,16 @@ interface EmbeddedContextValue {
|
|
|
11
11
|
refetchEntities: () => Promise<void>;
|
|
12
12
|
enabledPayments: PaymentType[];
|
|
13
13
|
onPaymentRequired?: (info: PaymentRequiredInfo) => void;
|
|
14
|
+
/** Display name of the signed-in user, read from the access token. */
|
|
15
|
+
userName?: string;
|
|
14
16
|
}
|
|
15
17
|
interface EmbeddedContextProviderProps {
|
|
16
18
|
onOrganizationCreated?: (org: EntityDetailsResponse) => void;
|
|
17
19
|
enabledPayments?: PaymentType[];
|
|
18
20
|
onPaymentRequired?: (info: PaymentRequiredInfo) => void;
|
|
21
|
+
userName?: string;
|
|
19
22
|
children: ReactNode;
|
|
20
23
|
}
|
|
21
|
-
export declare function EmbeddedContextProvider({ onOrganizationCreated, enabledPayments, onPaymentRequired, children, }: EmbeddedContextProviderProps): import("react").JSX.Element;
|
|
24
|
+
export declare function EmbeddedContextProvider({ onOrganizationCreated, enabledPayments, onPaymentRequired, userName, children, }: EmbeddedContextProviderProps): import("react").JSX.Element;
|
|
22
25
|
export declare function useEmbeddedContext(): EmbeddedContextValue;
|
|
23
26
|
export {};
|
|
@@ -17,6 +17,8 @@ export interface EmbeddedWidgetBaseProps {
|
|
|
17
17
|
selectEntityFnRef: MutableRefObject<((id: number) => void) | null>;
|
|
18
18
|
/** Payment types this widget instance supports. Controls which dashboard action cards appear. */
|
|
19
19
|
enabledPayments?: PaymentType[];
|
|
20
|
+
/** Display name of the signed-in user, used to greet them on the dashboard. */
|
|
21
|
+
userName?: string;
|
|
20
22
|
/** The <Routes> subtree specific to this widget. */
|
|
21
23
|
children: ReactNode;
|
|
22
24
|
}
|
|
@@ -30,4 +32,4 @@ export interface EmbeddedWidgetBaseProps {
|
|
|
30
32
|
*
|
|
31
33
|
* Children should be a <Routes> element with the widget-specific route tree.
|
|
32
34
|
*/
|
|
33
|
-
export declare function EmbeddedWidgetBase({ appKey, accessToken, apiBaseUrl, theme, onSessionExpired, onOrganizationCreated, onNavigate, onPaymentRequired, navigateFnRef, selectEntityFnRef, enabledPayments, children, }: EmbeddedWidgetBaseProps): import("react").JSX.Element;
|
|
35
|
+
export declare function EmbeddedWidgetBase({ appKey, accessToken, apiBaseUrl, theme, onSessionExpired, onOrganizationCreated, onNavigate, onPaymentRequired, navigateFnRef, selectEntityFnRef, enabledPayments, userName, children, }: EmbeddedWidgetBaseProps): import("react").JSX.Element;
|
|
@@ -56,6 +56,12 @@ export interface TaxRemittanceEmbeddedProps {
|
|
|
56
56
|
apiBaseUrl: string;
|
|
57
57
|
/** Optional visual theme overrides. */
|
|
58
58
|
theme?: TaxRemittanceTheme;
|
|
59
|
+
/**
|
|
60
|
+
* Optional override for the dashboard greeting ("Welcome, Jane!").
|
|
61
|
+
* By default the widget reads the name from the access token's claims,
|
|
62
|
+
* so hosts don't need to pass this.
|
|
63
|
+
*/
|
|
64
|
+
userName?: string;
|
|
59
65
|
/**
|
|
60
66
|
* Called when the user's session expires (401/403 from the API).
|
|
61
67
|
* Use this to redirect to your own login page.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Full-page Edit Entity screen — the same shell as the Add Entity page
|
|
3
|
+
* (EmbeddedEntityFormPage), so both flows read identically.
|
|
4
|
+
* Top-left Back returns to the entity list (or state.from).
|
|
5
|
+
*/
|
|
6
|
+
export declare function EmbeddedEntityEditPage(): import("react").JSX.Element;
|