@taxbit/react-sdk 0.0.14 → 0.0.16
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/README.md +88 -10
- package/dist/basic.css +21 -2
- package/dist/components/Notification/Notification.d.ts +5 -0
- package/dist/components/Notification/index.d.ts +1 -0
- package/dist/components/Section/Section.d.ts +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/contexts/FormUI/useFormUI.d.ts +9 -2
- package/dist/contexts/FormUI/useFormUIContext.d.ts +22 -2
- package/dist/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +2 -1
- package/dist/contexts/TaxDocumentation/useTaxDocumentation.d.ts +5 -4
- package/dist/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +110 -6
- package/dist/entry/index.d.ts +1 -0
- package/dist/i18n/i18n.d.ts +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/index.d.ts +1 -0
- package/dist/i18n/locales/pt-pt.d.ts +2 -0
- package/dist/i18n/types/Locale.d.ts +1 -1
- package/dist/i18n/types/LocalizationKey.d.ts +7 -5
- package/dist/i18n/types/PropertyFile.d.ts +11 -1
- package/dist/i18n/utils/getText.d.ts +5 -2
- package/dist/inline.css +21 -3
- package/dist/lookups/dayOptions.d.ts +3 -0
- package/dist/lookups/foreignAccountHolderAccountTypeOptions.d.ts +2 -0
- package/dist/lookups/foreignOtherClassificationOptions.d.ts +17 -0
- package/dist/lookups/foreignTrustClassificationOptions.d.ts +9 -0
- package/dist/lookups/index.d.ts +5 -2
- package/dist/lookups/monthOptions.d.ts +4 -0
- package/dist/lookups/usAccountHolderAccountTypeOptions.d.ts +2 -0
- package/dist/lookups/usLlcAccountTypeOptions.d.ts +2 -0
- package/dist/lookups/yearOptions.d.ts +4 -0
- package/dist/minimal.css +3 -0
- package/dist/paths/FinancialAccountInput/FinancialAccountInput.d.ts +1 -5
- package/dist/paths/ResidenceInput/ResidenceInput.d.ts +5 -2
- package/dist/paths/RowInput/CheckBoxRow/CheckBoxRow.d.ts +1 -1
- package/dist/paths/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +10 -0
- package/dist/paths/RowInput/DateOfBirthRow/index.d.ts +1 -0
- package/dist/paths/RowInput/TextInputRow/TextInputRow.d.ts +1 -1
- package/dist/paths/RowInput/VisibleRow/VisibleRow.d.ts +2 -1
- package/dist/paths/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +2 -1
- package/dist/paths/TaxBitFormUI/TaxBitFormUI.d.ts +2 -1
- package/dist/taxbit-react-sdk.es.js +7665 -6509
- package/dist/taxbit-react-sdk.umd.js +10 -10
- package/dist/types/AccountType.d.ts +3 -3
- package/dist/types/MonthCode.d.ts +1 -0
- package/dist/types/TaxDocumentation.d.ts +2 -0
- package/dist/types/external/ComprehensiveTaxDocumentation.d.ts +69 -63
- package/dist/types/index.d.ts +1 -0
- package/dist/ui/ActionButton/ActionButton.d.ts +7 -0
- package/dist/ui/ActionButton/index.d.ts +1 -0
- package/dist/ui/CheckBox/CheckBox.d.ts +2 -1
- package/dist/ui/DateOfBirthInput/DateOfBirthInput.d.ts +9 -0
- package/dist/ui/DateOfBirthInput/index.d.ts +1 -0
- package/dist/ui/TextInput/TextInput.d.ts +3 -1
- package/dist/ui/index.d.ts +2 -0
- package/dist/utils/getForeignAccountType.d.ts +2 -0
- package/dist/utils/getForeignOtherClassification.d.ts +2 -0
- package/dist/utils/getForeignTrustClassification.d.ts +2 -0
- package/dist/utils/getHintKeyMap.d.ts +2 -0
- package/dist/utils/getLLCClassification.d.ts +2 -0
- package/dist/utils/getNotifications.d.ts +10 -0
- package/dist/utils/getPromptKeyMap.d.ts +2 -0
- package/dist/utils/getUsAccountType.d.ts +2 -0
- package/dist/utils/index.d.ts +6 -1
- package/dist/utils/isBlank.d.ts +2 -2
- package/dist/utils/transformInbound.d.ts +2 -1
- package/dist/utils/transformOutbound.d.ts +2 -2
- package/dist/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +2 -2
- package/dist/widgets/TaxBitForm/TaxBitForm.d.ts +3 -2
- package/package.json +3 -2
- package/dist/lookups/foreignOtherAccountTypeOptions.d.ts +0 -15
- package/dist/lookups/foreignTrustAccountTypeOptions.d.ts +0 -7
- package/dist/validations/__tests__/validations.test.d.ts +0 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export type ButtonKey = "edit" | "back" | "next" | "reset" | "submit" | "cancel";
|
|
2
|
-
export type ErrorKey = "required" | "invalid" | "invalidDate" | "mustBeSixCharacters" | "mustBeNineDigits" | "mustBeFiveOrNineDigits" | "mustMatchName" | "mustBeInDateFormat" | "mustBeValidBirthDate";
|
|
2
|
+
export type ErrorKey = "required" | "invalid" | "invalidDate" | "mustBeSixCharacters" | "mustBeNineDigits" | "mustBeFiveOrNineDigits" | "mustMatchName" | "mustBeInDateFormat" | "mustBeValidBirthDate" | "mustBeAResidenceCountry" | "mustNotMatchVatin";
|
|
3
|
+
export type NotificationKey = "vatUnexpectedFormat";
|
|
3
4
|
export type OptionKey = "usPerson_yes" | "usPerson_no" | "regardedOwnerUsPerson_yes" | "regardedOwnerUsPerson_no" | "isIndividual_yes" | "isIndividual_no" | "cCorporation" | "centralBankOfIssue" | "complexTrust" | "corporation" | "disregardedEntity" | "estate" | "foreignGovernmentControlledEntity" | "foreignGovernmentIntegralPart" | "grantorTrust" | "individual" | "internationalOrganization" | "llc" | "no" | "other" | "partnership" | "privateFoundation" | "sCorporation" | "simpleTrust" | "smllc" | "soleProprietor" | "taxExemptOrganization" | "trust" | "trustEstate" | "yes";
|
|
4
|
-
export type PromptKey = "addAdditional" | "address" | "businessRegistrationNumber" | "city" | "cityOfBirth" | "country" | "countryOfBirth" | "countryOfCitizenship" | "dateOfBirth" | "dbaName" | "exemptPayeeCode" | "exemptFatcaCode" | "financialAccountIdentifier" | "financialAccountName" | "foreignAccountType" | "foreignOtherClassification" | "foreignTin" | "foreignTinIsNotRequired" | "foreignTrustClassification" | "isEuResident" | "isIndividual" | "iAcknowlegeESignIsOk" | "iAmACitizenOfTheUs" | "iAmExemptFromFatcaReporting" | "iAmNotSubjectToBackupWithholding" | "iAuthorizeWithholdingAgent" | "iCertifyToAll" | "iConfirmIncomeIsNonUs" | "iConfirmTheBeneficialOwnerIsExempt" | "iConfirmTheEntityIsNotAUsPerson" | "iConfirmTheEntityIsTheBeneficialOwner" | "iConfirmTheTaxIdIsCorrect" | "iHaveLegalCapacityToSign" | "mailingAddress" | "mailingAddressIsDifferent" | "name" | "nameOfBusiness" | "nameOfCCorporation" | "nameOfCorporation" | "nameOfIndividual" | "nameOfLlc" | "nameOfOrganization" | "nameOfPartnership" | "nameOfSCorporation" | "nameOfSoleProprietor" | "nameOfTrustEstate" | "nameOfTrust" | "province" | "regardedOwnerUsPerson" | "removeAdditional" | "signature" | "smllcElection" | "state" | "stateProvince" | "street" | "street2" | "taxIdNumber" | "taxIdNumberIsNotRequired" | "tin" | "usAccountType" | "usLlcClassification" | "usOtherClassification" | "usPerson" | "usEin" | "usSsn" | "usTin" | "usTrustEstateEin" | "vatIdentificationNumber" | "vatCountry" | "zip";
|
|
5
|
-
export type SubPromptKey = "smllcElection" | "iConfirmIncomeIsNonUs";
|
|
6
|
-
export type TitleKey = "accountHolder" | "accountHolderClassification" | "accountHolderContactInformation" | "accountHolderTaxInformation" | "address" | "mailingAddress" | "
|
|
7
|
-
export type
|
|
5
|
+
export type PromptKey = "addAdditional" | "address" | "businessRegistrationNumber" | "city" | "cityOfBirth" | "country" | "countryOfBirth" | "countryOfCitizenship" | "dateOfBirth" | "day" | "dbaName" | "exemptPayeeCode" | "exemptFatcaCode" | "financialAccountIdentifier" | "financialAccountName" | "financialAccountNameSameAsAccountHolderName" | "foreignAccountType" | "foreignOtherClassification" | "foreignTin" | "foreignTinIsNotRequired" | "foreignTrustClassification" | "isEuResident" | "isIndividual" | "iAcknowlegeESignIsOk" | "iAmACitizenOfTheUs" | "iAmExemptFromFatcaReporting" | "iAmNotSubjectToBackupWithholding" | "iAuthorizeWithholdingAgent" | "iCertifyToAll" | "iConfirmIncomeIsNonUs" | "iConfirmTheBeneficialOwnerIsExempt" | "iConfirmTheEntityIsNotAUsPerson" | "iConfirmTheEntityIsTheBeneficialOwner" | "iConfirmTheTaxIdIsCorrect" | "iHaveLegalCapacityToSign" | "mailingAddress" | "mailingAddressIsDifferent" | "month" | "name" | "nameOfBusiness" | "nameOfCCorporation" | "nameOfCorporation" | "nameOfIndividual" | "nameOfLlc" | "nameOfOrganization" | "nameOfPartnership" | "nameOfSCorporation" | "nameOfSoleProprietor" | "nameOfTrustEstate" | "nameOfTrust" | "province" | "regardedOwnerUsPerson" | "removeAdditional" | "signature" | "smllcElection" | "state" | "stateProvince" | "street" | "street2" | "taxIdNumber" | "taxIdNumberIsNotRequired" | "tin" | "usAccountType" | "usLlcClassification" | "usOtherClassification" | "usPerson" | "usEin" | "usSsn" | "usTin" | "usTrustEstateEin" | "vatIdentificationNumber" | "vatIdentificationNumberIsNotRequired" | "vatCountry" | "year" | "zip";
|
|
6
|
+
export type SubPromptKey = "smllcElection" | "iConfirmIncomeIsNonUs" | "isEuResident" | "financialAccountIdentifier" | "financialAccountName" | "vatIdentificationNumber" | "placeOfBirth";
|
|
7
|
+
export type TitleKey = "accountHolder" | "accountHolderClassification" | "accountHolderContactInformation" | "accountHolderTaxInformation" | "address" | "mailingAddress" | "primaryAddress" | "placeOfBirth" | "regardedOwner" | "regardedOwnerClassification" | "regardedOwnerContactInformation" | "regardedOwnerTaxInformation" | "signature" | "summary" | "taxResidences" | "taxResidence1" | "taxResidence2" | "taxResidence3" | "taxResidence4" | "taxResidence5";
|
|
8
|
+
export type SubTitleKey = "taxResidence1";
|
|
9
|
+
export type TextKey = "eSignActReference" | "notRequired" | "interviewIsComplete" | "retrievingInterviewStatus";
|
|
8
10
|
export type HintKey = "dateOfBirth";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ButtonKey, ErrorKey, HintKey, OptionKey, PromptKey, SubPromptKey, TextKey, TitleKey } from "./LocalizationKey";
|
|
1
|
+
import { ButtonKey, ErrorKey, HintKey, NotificationKey, OptionKey, PromptKey, SubPromptKey, SubTitleKey, TextKey, TitleKey } from "./LocalizationKey";
|
|
2
2
|
import { CountryCode } from "types/CountryCode";
|
|
3
3
|
import { UsStateCode } from "types/UsStateCode";
|
|
4
4
|
import { CaProvinceCode } from "types/CaProvinceCode";
|
|
5
|
+
import { MonthCode } from "../../types";
|
|
5
6
|
export type PropertyFile = {
|
|
6
7
|
button: {
|
|
7
8
|
[key in ButtonKey]: string;
|
|
@@ -18,9 +19,15 @@ export type PropertyFile = {
|
|
|
18
19
|
title: {
|
|
19
20
|
[key in TitleKey]: string;
|
|
20
21
|
};
|
|
22
|
+
subTitle: {
|
|
23
|
+
[key in SubTitleKey]: string;
|
|
24
|
+
};
|
|
21
25
|
option: {
|
|
22
26
|
[key in OptionKey]: string;
|
|
23
27
|
};
|
|
28
|
+
notification: {
|
|
29
|
+
[key in NotificationKey]: string;
|
|
30
|
+
};
|
|
24
31
|
country: {
|
|
25
32
|
[key in CountryCode]: string;
|
|
26
33
|
};
|
|
@@ -36,4 +43,7 @@ export type PropertyFile = {
|
|
|
36
43
|
hint: {
|
|
37
44
|
[key in HintKey]: string;
|
|
38
45
|
};
|
|
46
|
+
month: {
|
|
47
|
+
[key in MonthCode]: string;
|
|
48
|
+
};
|
|
39
49
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubPromptKey, TextKey, TitleKey } from "../types";
|
|
1
|
+
import { ButtonKey, ErrorKey, NotificationKey, OptionKey, PromptKey, SubPromptKey, TextKey, TitleKey } from "../types";
|
|
2
2
|
import { CountryCode } from "types/CountryCode";
|
|
3
3
|
import { UsStateCode } from "types/UsStateCode";
|
|
4
4
|
import { CaProvinceCode } from "types/CaProvinceCode";
|
|
5
|
-
import { Locale } from "../types
|
|
5
|
+
import { Locale } from "../types";
|
|
6
6
|
export declare const getPromptText: (key: PromptKey, locale?: Locale | undefined) => string;
|
|
7
7
|
export declare const getSubPromptText: (key: SubPromptKey, locale?: Locale | undefined) => string;
|
|
8
8
|
export declare const getErrorText: (key: ErrorKey, locale?: Locale | undefined) => string;
|
|
9
9
|
export declare const getHintText: (key: string | undefined, locale?: Locale | undefined) => string | undefined;
|
|
10
10
|
export declare const getTextText: (key: TextKey, locale?: Locale | undefined) => string;
|
|
11
11
|
export declare const getTitleText: (key: TitleKey, locale?: Locale | undefined) => string;
|
|
12
|
+
export declare const getSubTitleText: (key: string, locale?: Locale | undefined) => string;
|
|
12
13
|
export declare const getButtonText: (key: ButtonKey, locale?: Locale | undefined) => string;
|
|
13
14
|
export declare const getOptionText: (key: OptionKey | undefined, locale?: Locale | undefined) => string;
|
|
15
|
+
export declare const getNotificationText: (key: NotificationKey | undefined, locale?: Locale | undefined) => string;
|
|
14
16
|
export declare const getCountryText: (key: CountryCode, locale?: Locale | undefined) => string;
|
|
15
17
|
export declare const getUsStateText: (key: UsStateCode, locale?: Locale | undefined) => string;
|
|
16
18
|
export declare const getCaProvinceText: (key: CaProvinceCode, locale?: Locale | undefined) => string;
|
|
19
|
+
export declare const getMonthText: (key: string, locale?: Locale | undefined) => string;
|
package/dist/inline.css
CHANGED
|
@@ -50,6 +50,11 @@ button:focus-visible {
|
|
|
50
50
|
margin-bottom: 8px;
|
|
51
51
|
opacity: .8;
|
|
52
52
|
}
|
|
53
|
+
.taxbit-section-sub-title {
|
|
54
|
+
font-size: .8em;
|
|
55
|
+
opacity: .7;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
}
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
.taxbit-row {
|
|
@@ -66,6 +71,10 @@ button:focus-visible {
|
|
|
66
71
|
color: red;
|
|
67
72
|
font-size: .8em;
|
|
68
73
|
}
|
|
74
|
+
.taxbit-notification {
|
|
75
|
+
color: blue;
|
|
76
|
+
font-size: .8em;
|
|
77
|
+
}
|
|
69
78
|
.taxbit-hint {
|
|
70
79
|
font-size: .8em;
|
|
71
80
|
opacity: .7;
|
|
@@ -75,7 +84,7 @@ button:focus-visible {
|
|
|
75
84
|
.taxbit-row-actions {
|
|
76
85
|
flex: 0 0 10%;
|
|
77
86
|
}
|
|
78
|
-
.taxbit-row-action-button
|
|
87
|
+
.taxbit-row-action-button {
|
|
79
88
|
font-size: .8em;
|
|
80
89
|
padding: 0.2em 1em;
|
|
81
90
|
}
|
|
@@ -83,8 +92,9 @@ button:focus-visible {
|
|
|
83
92
|
.taxbit-label {
|
|
84
93
|
flex: 0 0 40%;
|
|
85
94
|
font-weight: 500;
|
|
86
|
-
.
|
|
87
|
-
|
|
95
|
+
line-height: 1.25em;
|
|
96
|
+
.taxbit-sub-label {
|
|
97
|
+
font-size: 0.8em;
|
|
88
98
|
opacity: 0.7;
|
|
89
99
|
font-weight: 400;
|
|
90
100
|
}
|
|
@@ -118,6 +128,14 @@ button:focus-visible {
|
|
|
118
128
|
width: 100%;
|
|
119
129
|
}
|
|
120
130
|
|
|
131
|
+
.taxbit-placeholder {
|
|
132
|
+
color: #aaa;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.taxbit-input-status-footer {
|
|
136
|
+
margin-top: 5px
|
|
137
|
+
}
|
|
138
|
+
|
|
121
139
|
.taxbit-row-value {
|
|
122
140
|
display: flex;
|
|
123
141
|
flex: 1;
|
|
@@ -11,3 +11,5 @@ export declare const foreignAccountHolderAccountTypeOptions: readonly [{
|
|
|
11
11
|
}, {
|
|
12
12
|
readonly value: "disregardedEntity";
|
|
13
13
|
}];
|
|
14
|
+
export declare const foreignAccountHolderAccountTypes: ("individual" | "corporation" | "partnership" | "trust" | "other" | "disregardedEntity")[];
|
|
15
|
+
export type ForeignAccountHolderAccountType = (typeof foreignAccountHolderAccountTypeOptions)[number]["value"];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const foreignOtherClassificationOptions: readonly [{
|
|
2
|
+
readonly value: "taxExemptOrganization";
|
|
3
|
+
}, {
|
|
4
|
+
readonly value: "privateFoundation";
|
|
5
|
+
}, {
|
|
6
|
+
readonly value: "internationalOrganization";
|
|
7
|
+
}, {
|
|
8
|
+
readonly value: "centralBankOfIssue";
|
|
9
|
+
}, {
|
|
10
|
+
readonly value: "foreignGovernmentControlledEntity";
|
|
11
|
+
}, {
|
|
12
|
+
readonly value: "foreignGovernmentIntegralPart";
|
|
13
|
+
}, {
|
|
14
|
+
readonly value: "estate";
|
|
15
|
+
}];
|
|
16
|
+
export declare const foreignOtherClassifications: ("taxExemptOrganization" | "privateFoundation" | "internationalOrganization" | "centralBankOfIssue" | "foreignGovernmentControlledEntity" | "foreignGovernmentIntegralPart" | "estate")[];
|
|
17
|
+
export type ForeignOtherClassification = (typeof foreignOtherClassificationOptions)[number]["value"];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const foreignTrustClassificationOptions: readonly [{
|
|
2
|
+
readonly value: "simpleTrust";
|
|
3
|
+
}, {
|
|
4
|
+
readonly value: "complexTrust";
|
|
5
|
+
}, {
|
|
6
|
+
readonly value: "grantorTrust";
|
|
7
|
+
}];
|
|
8
|
+
export declare const foreignTrustClassifications: ("simpleTrust" | "complexTrust" | "grantorTrust")[];
|
|
9
|
+
export type ForeignTrustClassification = (typeof foreignTrustClassificationOptions)[number]["value"];
|
package/dist/lookups/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export * from "./caProvinceOptions";
|
|
2
2
|
export * from "./countryOptions";
|
|
3
|
+
export * from "./dayOptions";
|
|
3
4
|
export * from "./fatcaCodeOptions";
|
|
4
5
|
export * from "./foreignAccountHolderAccountTypeOptions";
|
|
5
|
-
export * from "./
|
|
6
|
+
export * from "./foreignOtherClassificationOptions.ts";
|
|
6
7
|
export * from "./foreignRegardedOwnerAccountTypeOptions";
|
|
7
|
-
export * from "./
|
|
8
|
+
export * from "./foreignTrustClassificationOptions.ts";
|
|
9
|
+
export * from "./monthOptions";
|
|
8
10
|
export * from "./payeeCodeOptions";
|
|
9
11
|
export * from "./usAccountHolderAccountTypeOptions";
|
|
10
12
|
export * from "./usLlcAccountTypeOptions";
|
|
11
13
|
export * from "./usRegardedOwnerAccountTypeOptions";
|
|
12
14
|
export * from "./usStateOptions";
|
|
15
|
+
export * from "./yearOptions";
|
|
@@ -19,3 +19,5 @@ export declare const usAccountHolderAccountTypeOptions: readonly [{
|
|
|
19
19
|
}, {
|
|
20
20
|
readonly value: "disregardedEntity";
|
|
21
21
|
}];
|
|
22
|
+
export declare const usAccountHolderAccountTypes: ("individual" | "partnership" | "other" | "disregardedEntity" | "soleProprietor" | "llc" | "smllc" | "cCorporation" | "sCorporation" | "trustEstate")[];
|
|
23
|
+
export type UsAccountHolderAccountType = (typeof usAccountHolderAccountTypeOptions)[number]["value"];
|
|
@@ -5,3 +5,5 @@ export declare const usLlcAccountTypeOptions: readonly [{
|
|
|
5
5
|
}, {
|
|
6
6
|
readonly value: "partnership";
|
|
7
7
|
}];
|
|
8
|
+
export declare const usLlcAccountTypes: ("partnership" | "cCorporation" | "sCorporation")[];
|
|
9
|
+
export type UsLLCAccountType = (typeof usLlcAccountTypeOptions)[number]["value"];
|
package/dist/minimal.css
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { CountryCode } from "types";
|
|
3
3
|
type AddressProps = {
|
|
4
4
|
index: 1 | 2 | 3 | 4 | 5;
|
|
5
5
|
showIf?: boolean;
|
|
6
6
|
more?: true;
|
|
7
|
-
countryOptions:
|
|
7
|
+
countryOptions: ReadonlyArray<{
|
|
8
|
+
value: CountryCode;
|
|
9
|
+
label: string;
|
|
10
|
+
}>;
|
|
8
11
|
};
|
|
9
12
|
export declare const ResidenceInput: ({ index, showIf, more, countryOptions, }: AddressProps) => React.JSX.Element | undefined;
|
|
10
13
|
export {};
|
|
@@ -4,5 +4,5 @@ type CheckBoxRowProps = {
|
|
|
4
4
|
label?: true;
|
|
5
5
|
subLabel?: true;
|
|
6
6
|
};
|
|
7
|
-
export declare const CheckBoxRow: ({ name, label, subLabel, }: CheckBoxProps & CheckBoxRowProps) => React.JSX.Element;
|
|
7
|
+
export declare const CheckBoxRow: ({ name, label, subLabel, onClick, }: CheckBoxProps & CheckBoxRowProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DateOfBirthInputProps } from "ui";
|
|
3
|
+
import { TaxDocumentationKey } from "types";
|
|
4
|
+
type DateOfBirthRowProps = {
|
|
5
|
+
name: TaxDocumentationKey;
|
|
6
|
+
label?: true;
|
|
7
|
+
subLabel?: true;
|
|
8
|
+
};
|
|
9
|
+
export declare const DateOfBirthRow: ({ name, label, subLabel, }: DateOfBirthRowProps & DateOfBirthInputProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DateOfBirthRow.tsx";
|
|
@@ -6,5 +6,5 @@ type TextInputRowProps = {
|
|
|
6
6
|
hint?: true;
|
|
7
7
|
onChange?: (val: string) => string;
|
|
8
8
|
};
|
|
9
|
-
export declare const TextInputRow: ({ name, label, hint, subLabel, onChange, }: TextInputProps & TextInputRowProps) => React.JSX.Element;
|
|
9
|
+
export declare const TextInputRow: ({ name, label, hint, subLabel, onChange, disabled, }: TextInputProps & TextInputRowProps) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TaxDocumentationKey } from "types";
|
|
3
|
-
export declare const VisibleRow: ({ label, subLabel, name, children, onEdit, }: {
|
|
3
|
+
export declare const VisibleRow: ({ label, subLabel, name, children, onEdit, notification, }: {
|
|
4
4
|
label?: boolean | undefined;
|
|
5
5
|
subLabel?: boolean | undefined;
|
|
6
|
+
notification?: boolean | undefined;
|
|
6
7
|
name: TaxDocumentationKey;
|
|
7
8
|
children: React.ReactNode;
|
|
8
9
|
onEdit?: (() => void) | undefined;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { Locale } from "../../i18n";
|
|
3
3
|
import type { TaxDocumentation } from "../../types";
|
|
4
|
+
import { ClientTaxDocumentation } from "../../types/external";
|
|
4
5
|
type TaxDocumentationDAC7PathProps = {
|
|
5
|
-
data?:
|
|
6
|
+
data?: ClientTaxDocumentation;
|
|
6
7
|
onSubmit: (data: TaxDocumentation) => void;
|
|
7
8
|
language?: Locale;
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { Locale } from "../../i18n";
|
|
3
3
|
import type { TaxForm, TaxDocumentation } from "../../types";
|
|
4
|
+
import { ClientTaxDocumentation } from "../../types/external";
|
|
4
5
|
type TaxBitFormUIProps = {
|
|
5
|
-
data?:
|
|
6
|
+
data?: ClientTaxDocumentation;
|
|
6
7
|
onSubmit: (data: TaxDocumentation) => void;
|
|
7
8
|
language?: Locale;
|
|
8
9
|
taxForms?: TaxForm[];
|