@taxbit/react-sdk 0.6.2 → 1.0.0-beta.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/README.md +61 -53
- package/dist/src/components/Address/Address.d.ts +1 -2
- package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +1 -2
- package/dist/src/components/Form/Form.d.ts +2 -1
- package/dist/src/components/Form/index.d.ts +1 -1
- package/dist/src/contexts/QuestionnaireUI/QuestionnaireUIProvider.d.ts +6 -0
- package/dist/src/contexts/QuestionnaireUI/getLocal.d.ts +19 -0
- package/dist/src/contexts/{FormUI → QuestionnaireUI}/index.d.ts +3 -3
- package/dist/src/contexts/{FormUI/useFormUI.d.ts → QuestionnaireUI/useQuestionnaireUI.d.ts} +6 -6
- package/dist/src/contexts/{FormUI/useFormUIContext.d.ts → QuestionnaireUI/useQuestionnaireUIContext.d.ts} +18 -18
- package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +7 -0
- package/dist/src/contexts/TaxDocumentation/index.d.ts +1 -1
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +13 -15
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +24 -30
- package/dist/src/contexts/index.d.ts +2 -2
- package/dist/src/entry/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +9 -0
- package/dist/src/entry/TaxbitQuestionnaire/index.d.ts +1 -0
- package/dist/src/entry/index.d.ts +4 -6
- package/dist/src/hooks/index.d.ts +1 -1
- package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +2 -0
- package/dist/src/hooks/{useTaxBit → useTaxbit}/__tests__/serverTaxDocumentation.d.ts +1 -1
- package/dist/src/hooks/useTaxbit/index.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +9 -0
- package/dist/src/hooks/useTaxbit/useTaxbitConnect.d.ts +8 -0
- package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +8 -0
- package/dist/src/i18n/index.d.ts +1 -1
- package/dist/src/i18n/locales/bg.d.ts +1 -0
- package/dist/src/i18n/locales/cs.d.ts +1 -0
- package/dist/src/i18n/locales/da.d.ts +1 -0
- package/dist/src/i18n/locales/de-at.d.ts +1 -2
- package/dist/src/i18n/locales/de.d.ts +3 -0
- package/dist/src/i18n/locales/el-cy.d.ts +3 -2
- package/dist/src/i18n/locales/el.d.ts +3 -0
- package/dist/src/i18n/locales/{bg-bg.d.ts → en-nz.d.ts} +1 -1
- package/dist/src/i18n/locales/{cs-cz.d.ts → en.d.ts} +1 -1
- package/dist/src/i18n/locales/{da-dk.d.ts → es.d.ts} +1 -1
- package/dist/src/i18n/locales/et.d.ts +1 -0
- package/dist/src/i18n/locales/fi.d.ts +1 -0
- package/dist/src/i18n/locales/{de-de.d.ts → fr-ca.d.ts} +1 -1
- package/dist/src/i18n/locales/fr-lu.d.ts +1 -2
- package/dist/src/i18n/locales/fr.d.ts +2 -0
- package/dist/src/i18n/locales/ga.d.ts +2 -0
- package/dist/src/i18n/locales/hr.d.ts +1 -0
- package/dist/src/i18n/locales/hu.d.ts +1 -0
- package/dist/src/i18n/locales/index.d.ts +33 -30
- package/dist/src/i18n/locales/it.d.ts +1 -0
- package/dist/src/i18n/locales/lt.d.ts +3 -0
- package/dist/src/i18n/locales/lv.d.ts +1 -0
- package/dist/src/i18n/locales/mergePropertyFiles.d.ts +6 -0
- package/dist/src/i18n/locales/mt.d.ts +1 -0
- package/dist/src/i18n/locales/nl-be.d.ts +3 -2
- package/dist/src/i18n/locales/nl.d.ts +1 -0
- package/dist/src/i18n/locales/no.d.ts +1 -0
- package/dist/src/i18n/locales/pl.d.ts +3 -0
- package/dist/src/i18n/locales/pt.d.ts +1 -0
- package/dist/src/i18n/locales/ro.d.ts +1 -0
- package/dist/src/i18n/locales/sk.d.ts +1 -0
- package/dist/src/i18n/locales/sl.d.ts +1 -0
- package/dist/src/i18n/locales/sv.d.ts +1 -0
- package/dist/src/i18n/locales/translation-missing.d.ts +5 -0
- package/dist/src/i18n/localizationFileMap.d.ts +7 -0
- package/dist/src/i18n/types/LocalizationKey.d.ts +8 -8
- package/dist/src/i18n/types/PropertyFile.d.ts +23 -19
- package/dist/src/i18n/utils/getText.d.ts +2 -9
- package/dist/src/lookups/countryOptions.d.ts +1 -7
- package/dist/src/lookups/dayOptions.d.ts +1 -1
- package/dist/src/lookups/fatcaCodeOptions.d.ts +2 -2
- package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +3 -15
- package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +3 -17
- package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +3 -11
- package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +3 -9
- package/dist/src/lookups/index.d.ts +13 -16
- package/dist/src/lookups/localeOptions.d.ts +5 -1
- package/dist/src/lookups/payeeCodeOptions.d.ts +2 -2
- package/dist/src/lookups/toOptions.d.ts +1 -1
- package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +3 -23
- package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +3 -9
- package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +3 -15
- package/dist/src/services/api.d.ts +7 -2
- package/dist/src/test/Wrapper.d.ts +3 -3
- package/dist/src/test/getWrapper.d.ts +3 -3
- package/dist/src/test/utils/helpers.d.ts +7 -2
- package/dist/src/types/InputStep.d.ts +2 -2
- package/dist/src/types/Locale.d.ts +1 -1
- package/dist/src/types/Questionnaire.d.ts +1 -0
- package/dist/src/types/StepId.d.ts +1 -1
- package/dist/src/types/TaxDocumentation.d.ts +30 -30
- package/dist/src/types/client/ClientTaxDocumentationStatus.d.ts +12 -3
- package/dist/src/types/client/index.d.ts +0 -1
- package/dist/src/types/index.d.ts +1 -6
- package/dist/src/types/server/TaxDocumentationStatus.d.ts +12 -3
- package/dist/src/types/server/index.d.ts +0 -1
- package/dist/src/ui/ActionButton/index.d.ts +1 -1
- package/dist/src/ui/CheckBox/CheckBox.d.ts +2 -1
- package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +1 -2
- package/dist/src/ui/DateOfBirthInput/index.d.ts +1 -1
- package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +2 -2
- package/dist/src/ui/FormattedInput/FormattedInput.d.ts +11 -0
- package/dist/src/ui/FormattedInput/index.d.ts +1 -0
- package/dist/src/ui/PasswordInput/PasswordInput.d.ts +9 -0
- package/dist/src/ui/PasswordInput/index.d.ts +1 -0
- package/dist/src/ui/RadioButtons/index.d.ts +1 -1
- package/dist/src/ui/Select/index.d.ts +1 -1
- package/dist/src/ui/{MaskedInput/MaskedInput.d.ts → ShowHideInput/ShowHideInput.d.ts} +2 -3
- package/dist/src/ui/ShowHideInput/index.d.ts +1 -0
- package/dist/src/ui/TextInput/TextInput.d.ts +1 -2
- package/dist/src/ui/TextInput/index.d.ts +1 -1
- package/dist/src/ui/index.d.ts +3 -1
- package/dist/src/utils/formatUsTin.d.ts +5 -0
- package/dist/src/utils/getFieldsState.d.ts +16 -10
- package/dist/src/utils/getMaskedContent.d.ts +1 -0
- package/dist/src/utils/getPromptKeyMap.d.ts +22 -22
- package/dist/src/utils/index.d.ts +3 -2
- package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +1 -1
- package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +1 -1
- package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +2 -0
- package/dist/src/utils/transformForClient/index.d.ts +1 -1
- package/dist/src/utils/transformForClient/transformForClient.d.ts +3 -2
- package/dist/src/utils/transformForClient/transformForClientAccoutHolder.d.ts +1 -53
- package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +1 -36
- package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +1 -1
- package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +1 -1
- package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +1 -1
- package/dist/src/utils/transformInbound/getLLCClassification.d.ts +1 -1
- package/dist/src/utils/transformInbound/getUsAccountType.d.ts +1 -1
- package/dist/src/utils/transformInbound/transformInbound.d.ts +3 -3
- package/dist/src/utils/uppercase.d.ts +1 -0
- package/dist/src/validations/getInvalidFields.d.ts +2 -2
- package/dist/src/validations/getRequiredFields.d.ts +2 -2
- package/dist/src/validations/getSupportedFields.d.ts +2 -2
- package/dist/src/validations/getVisibleFields.d.ts +2 -2
- package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +5 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/index.d.ts +2 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +25 -0
- package/dist/src/widgets/index.d.ts +1 -1
- package/dist/src/wizard/AddressInput/AddressInput.d.ts +2 -1
- package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +4 -1
- package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +1 -2
- package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +4 -3
- package/dist/src/wizard/RowInput/DateOfBirthRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/ErrorRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +2 -2
- package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +11 -0
- package/dist/src/wizard/RowInput/ShowHideInputRow/index.d.ts +1 -0
- package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +3 -4
- package/dist/src/wizard/RowInput/index.d.ts +1 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxClarification/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +6 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/index.d.ts +1 -0
- package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/steps.d.ts +0 -1
- package/dist/src/wizard/index.d.ts +1 -1
- package/dist/taxbit-react-sdk.js +5805 -16660
- package/dist/taxbit-react-sdk.umd.cjs +10 -10
- package/package.json +10 -18
- package/style/basic.css +32 -13
- package/style/inline.css +32 -13
- package/dist/src/contexts/FormUI/FormUIProvider.d.ts +0 -6
- package/dist/src/contexts/FormUI/getLocal.d.ts +0 -20
- package/dist/src/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +0 -7
- package/dist/src/hooks/useTaxBit/__tests__/clientTaxDocumentation.d.ts +0 -2
- package/dist/src/hooks/useTaxBit/index.d.ts +0 -1
- package/dist/src/hooks/useTaxBit/useTaxBit.d.ts +0 -7
- package/dist/src/i18n/i18n.d.ts +0 -7
- package/dist/src/i18n/locales/el-gr.d.ts +0 -2
- package/dist/src/i18n/locales/es-es.d.ts +0 -2
- package/dist/src/i18n/locales/et-ee.d.ts +0 -2
- package/dist/src/i18n/locales/fi-fi.d.ts +0 -2
- package/dist/src/i18n/locales/fr-fr.d.ts +0 -2
- package/dist/src/i18n/locales/ga-ie.d.ts +0 -2
- package/dist/src/i18n/locales/hr-hr.d.ts +0 -2
- package/dist/src/i18n/locales/hu-hu.d.ts +0 -2
- package/dist/src/i18n/locales/it-it.d.ts +0 -2
- package/dist/src/i18n/locales/lt-lt.d.ts +0 -2
- package/dist/src/i18n/locales/lv-lv.d.ts +0 -2
- package/dist/src/i18n/locales/mt-mt.d.ts +0 -2
- package/dist/src/i18n/locales/nl-nl.d.ts +0 -2
- package/dist/src/i18n/locales/no-no.d.ts +0 -2
- package/dist/src/i18n/locales/pl-pl.d.ts +0 -2
- package/dist/src/i18n/locales/pt-pt.d.ts +0 -2
- package/dist/src/i18n/locales/ro-ro.d.ts +0 -2
- package/dist/src/i18n/locales/sk-sk.d.ts +0 -2
- package/dist/src/i18n/locales/sl-si.d.ts +0 -2
- package/dist/src/i18n/locales/sv-se.d.ts +0 -2
- package/dist/src/lookups/caProvinceOptions.d.ts +0 -4
- package/dist/src/lookups/monthOptions.d.ts +0 -4
- package/dist/src/lookups/usStateOptions.d.ts +0 -4
- package/dist/src/types/AccountType.d.ts +0 -6
- package/dist/src/types/CaProvinceCode.d.ts +0 -1
- package/dist/src/types/CountryCode.d.ts +0 -3
- package/dist/src/types/MonthCode.d.ts +0 -1
- package/dist/src/types/TaxForm.d.ts +0 -1
- package/dist/src/types/UsStateCode.d.ts +0 -1
- package/dist/src/types/client/ClientTaxDocumentation.d.ts +0 -84
- package/dist/src/types/server/ComprehensiveTaxDocumentation.d.ts +0 -84
- package/dist/src/ui/MaskedInput/index.d.ts +0 -1
- package/dist/src/ui/Password/Password.d.ts +0 -12
- package/dist/src/ui/Password/index.d.ts +0 -1
- package/dist/src/utils/date.d.ts +0 -4
- package/dist/src/utils/getHintKeyMap.d.ts +0 -113
- package/dist/src/utils/getVerboseDate.d.ts +0 -1
- package/dist/src/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +0 -4
- package/dist/src/widgets/TaxBitForm/TaxBitForm.d.ts +0 -5
- package/dist/src/widgets/TaxBitForm/index.d.ts +0 -2
- package/dist/src/widgets/TaxBitForm/useTaxBitForm.d.ts +0 -22
- package/dist/src/wizard/PlaceOfBirthInput/PlaceOfBirthInput.d.ts +0 -2
- package/dist/src/wizard/PlaceOfBirthInput/index.d.ts +0 -1
- package/dist/src/wizard/RowInput/MaskedInputRow/MaskedInputRow.d.ts +0 -11
- package/dist/src/wizard/RowInput/MaskedInputRow/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/AccountHolderClassification/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/AccountHolderContact/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/AccountHolderTax/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/AccountHolderTaxClarification/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/AppError/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/Exemptions/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +0 -2
- package/dist/src/wizard/TaxBitFormUI/RegardedOwnerClassification/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/RegardedOwnerContact/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/RegardedOwnerTax/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/Summary/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +0 -4
- package/dist/src/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +0 -6
- package/dist/src/wizard/TaxBitFormUI/index.d.ts +0 -2
- /package/dist/src/contexts/{FormUI → QuestionnaireUI}/shiftResidence.d.ts +0 -0
- /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitDAC7Form.loaded.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts} +0 -0
- /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitForm.complete.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts} +0 -0
- /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitForm.loaded.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts} +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderClassification/AccountHolderClassification.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderContact/AccountHolderContact.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderTax/AccountHolderTax.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AppError/AppError.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Confirmation/Confirmation.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Confirmation/index.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Exemptions/Exemptions.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/RegardedOwnerContact/RegardedOwnerContact.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/RegardedOwnerTax/RegardedOwnerTax.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Summary/Recap.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Summary/Summary.d.ts +0 -0
- /package/dist/src/{widgets/TaxBitForm/__tests__/TaxBitForm.loading.test.d.ts → wizard/TaxbitQuestionnaireUI/__tests__/TaxbitDPSQuestionnaireUI.test.d.ts} +0 -0
- /package/dist/src/wizard/{TaxBitFormUI/__tests__/TaxBitDAC7FormUI.test.d.ts → TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts} +0 -0
- /package/dist/src/wizard/{TaxBitFormUI/__tests__/TaxBitFormUI.test.d.ts → TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts} +0 -0
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
export declare const foreignOtherClassificationOptions:
|
|
2
|
-
|
|
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: ("estate" | "taxExemptOrganization" | "privateFoundation" | "internationalOrganization" | "centralBankOfIssue" | "foreignGovernmentControlledEntity" | "foreignGovernmentIntegralPart")[];
|
|
17
|
-
export type ForeignOtherClassification = (typeof foreignOtherClassificationOptions)[number]["value"];
|
|
1
|
+
export declare const foreignOtherClassificationOptions: {
|
|
2
|
+
value: "TAX_EXEMPT_ORGANIZATION" | "PRIVATE_FOUNDATION" | "INTERNATIONAL_ORGANIZATION" | "CENTRAL_BANK_OF_ISSUE" | "FOREIGN_GOVERNMENT_CONTROLLED_ENTITY" | "FOREIGN_GOVERNMENT_INTEGRAL_PART" | "ESTATE";
|
|
3
|
+
}[];
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
export declare const foreignRegardedOwnerAccountTypeOptions:
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
readonly value: "corporation";
|
|
5
|
-
}, {
|
|
6
|
-
readonly value: "partnership";
|
|
7
|
-
}, {
|
|
8
|
-
readonly value: "trust";
|
|
9
|
-
}, {
|
|
10
|
-
readonly value: "other";
|
|
11
|
-
}];
|
|
1
|
+
export declare const foreignRegardedOwnerAccountTypeOptions: {
|
|
2
|
+
value: "INDIVIDUAL" | "CORPORATION" | "PARTNERSHIP" | "TRUST" | "OTHER";
|
|
3
|
+
}[];
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export declare const foreignTrustClassificationOptions:
|
|
2
|
-
|
|
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"];
|
|
1
|
+
export declare const foreignTrustClassificationOptions: {
|
|
2
|
+
value: "SIMPLE_TRUST" | "COMPLEX_TRUST" | "GRANTOR_TRUST";
|
|
3
|
+
}[];
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from "./usRegardedOwnerAccountTypeOptions";
|
|
15
|
-
export * from "./usStateOptions";
|
|
16
|
-
export * from "./yearOptions";
|
|
1
|
+
export * from './countryOptions';
|
|
2
|
+
export * from './dayOptions';
|
|
3
|
+
export * from './fatcaCodeOptions';
|
|
4
|
+
export * from './foreignAccountHolderAccountTypeOptions';
|
|
5
|
+
export * from './foreignOtherClassificationOptions';
|
|
6
|
+
export * from './foreignRegardedOwnerAccountTypeOptions';
|
|
7
|
+
export * from './foreignTrustClassificationOptions';
|
|
8
|
+
export * from './localeOptions';
|
|
9
|
+
export * from './payeeCodeOptions';
|
|
10
|
+
export * from './usAccountHolderAccountTypeOptions';
|
|
11
|
+
export * from './usLlcAccountTypeOptions';
|
|
12
|
+
export * from './usRegardedOwnerAccountTypeOptions';
|
|
13
|
+
export * from './yearOptions';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type PayeeCode = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M";
|
|
2
1
|
export declare const payeeCodeOptions: {
|
|
3
|
-
|
|
2
|
+
label: "10" | "11" | "12" | "13" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
3
|
+
value: "10" | "11" | "12" | "13" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
4
4
|
}[];
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
export declare const usAccountHolderAccountTypeOptions:
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
readonly value: "soleProprietor";
|
|
5
|
-
}, {
|
|
6
|
-
readonly value: "llc";
|
|
7
|
-
}, {
|
|
8
|
-
readonly value: "smllc";
|
|
9
|
-
}, {
|
|
10
|
-
readonly value: "cCorporation";
|
|
11
|
-
}, {
|
|
12
|
-
readonly value: "sCorporation";
|
|
13
|
-
}, {
|
|
14
|
-
readonly value: "partnership";
|
|
15
|
-
}, {
|
|
16
|
-
readonly value: "trustEstate";
|
|
17
|
-
}, {
|
|
18
|
-
readonly value: "other";
|
|
19
|
-
}, {
|
|
20
|
-
readonly value: "disregardedEntity";
|
|
21
|
-
}];
|
|
22
|
-
export declare const usAccountHolderAccountTypes: ("individual" | "smllc" | "llc" | "other" | "partnership" | "disregardedEntity" | "soleProprietor" | "cCorporation" | "sCorporation" | "trustEstate")[];
|
|
23
|
-
export type UsAccountHolderAccountType = (typeof usAccountHolderAccountTypeOptions)[number]["value"];
|
|
1
|
+
export declare const usAccountHolderAccountTypeOptions: {
|
|
2
|
+
value: "INDIVIDUAL" | "PARTNERSHIP" | "OTHER" | "DISREGARDED_ENTITY" | "SOLE_PROPRIETOR" | "LLC" | "SM_LLC" | "C_CORPORATION" | "S_CORPORATION" | "TRUST_ESTATE";
|
|
3
|
+
}[];
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export declare const usLlcAccountTypeOptions:
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
readonly value: "sCorporation";
|
|
5
|
-
}, {
|
|
6
|
-
readonly value: "partnership";
|
|
7
|
-
}];
|
|
8
|
-
export declare const usLlcAccountTypes: ("partnership" | "cCorporation" | "sCorporation")[];
|
|
9
|
-
export type UsLLCAccountType = (typeof usLlcAccountTypeOptions)[number]["value"];
|
|
1
|
+
export declare const usLlcAccountTypeOptions: {
|
|
2
|
+
value: "PARTNERSHIP" | "C_CORPORATION" | "S_CORPORATION";
|
|
3
|
+
}[];
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
export declare const usRegardedOwnerAccountTypeOptions:
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
readonly value: "llc";
|
|
5
|
-
}, {
|
|
6
|
-
readonly value: "cCorporation";
|
|
7
|
-
}, {
|
|
8
|
-
readonly value: "sCorporation";
|
|
9
|
-
}, {
|
|
10
|
-
readonly value: "partnership";
|
|
11
|
-
}, {
|
|
12
|
-
readonly value: "trustEstate";
|
|
13
|
-
}, {
|
|
14
|
-
readonly value: "other";
|
|
15
|
-
}];
|
|
1
|
+
export declare const usRegardedOwnerAccountTypeOptions: {
|
|
2
|
+
value: "INDIVIDUAL" | "PARTNERSHIP" | "OTHER" | "LLC" | "C_CORPORATION" | "S_CORPORATION" | "TRUST_ESTATE";
|
|
3
|
+
}[];
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { Questionnaire } from 'types';
|
|
1
2
|
export declare const api: {
|
|
2
|
-
|
|
3
|
+
taxDocumentationSubmissions: {
|
|
3
4
|
post: (environment: 'PRODUCTION' | 'STAGING') => string;
|
|
4
|
-
get: (environment: 'PRODUCTION' | 'STAGING') => string;
|
|
5
|
+
get: (environment: 'PRODUCTION' | 'STAGING', questionnaire: Questionnaire) => string;
|
|
5
6
|
};
|
|
6
7
|
taxDocumentationStatus: {
|
|
7
8
|
get: (environment: 'PRODUCTION' | 'STAGING') => string;
|
|
8
9
|
};
|
|
10
|
+
taxDocument: {
|
|
11
|
+
post: (environment: 'PRODUCTION' | 'STAGING') => string;
|
|
12
|
+
get: (documentId: string, environment: 'PRODUCTION' | 'STAGING') => string;
|
|
13
|
+
};
|
|
9
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ClientTaxDocumentation } from '@taxbit/utilities';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { TaxForm } from '../types';
|
|
3
|
+
import { Questionnaire } from '../types';
|
|
4
4
|
export declare const Wrapper: React.FC<React.PropsWithChildren & {
|
|
5
5
|
initialData?: ClientTaxDocumentation;
|
|
6
|
-
|
|
6
|
+
questionnaire?: Questionnaire;
|
|
7
7
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { ClientTaxDocumentation } from '@taxbit/utilities';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare const getWrapper: (initialData?: ClientTaxDocumentation, taxForms?: TaxForm[]) => ({ children }: React.PropsWithChildren) => React.ReactNode;
|
|
3
|
+
import { Questionnaire } from '../types';
|
|
4
|
+
export declare const getWrapper: (initialData?: ClientTaxDocumentation, questionnaire?: Questionnaire) => ({ children }: React.PropsWithChildren) => React.ReactNode;
|
|
@@ -3,8 +3,10 @@ export declare const expectRowErrorText: (prompt: string, text: string) => void;
|
|
|
3
3
|
export declare const expectNoRowError: (prompt: string) => void;
|
|
4
4
|
export declare const expectText: (text: string, length?: number) => void;
|
|
5
5
|
export declare const expectNullInput: (ariaLabel: string) => void;
|
|
6
|
+
export declare const expectDisabledInput: (ariaLabel: string) => void;
|
|
6
7
|
export declare const expectInputValue: (ariaLabel: string, value: string) => void;
|
|
7
8
|
export declare const clickLabel: (ariaLabel: string) => void;
|
|
9
|
+
export declare const clickShow: (text: string) => void;
|
|
8
10
|
export declare const changeInput: (ariaLabel: string, value: string) => void;
|
|
9
11
|
export declare const clickInput: (ariaLabel: string) => void;
|
|
10
12
|
export declare const clickEdit: (ariaLabel: string) => void;
|
|
@@ -12,5 +14,8 @@ export declare const clickBack: () => void;
|
|
|
12
14
|
export declare const clickNext: () => void;
|
|
13
15
|
export declare const clickSubmit: () => void;
|
|
14
16
|
export declare const clickAddAdditionalResidence: () => void;
|
|
15
|
-
export declare const setBusinessNameAndAddress: () => void;
|
|
16
|
-
export declare const setIndividualNameAndAddress: () => void;
|
|
17
|
+
export declare const setBusinessNameAndAddress: (prefix?: string) => void;
|
|
18
|
+
export declare const setIndividualNameAndAddress: (prefix?: string) => void;
|
|
19
|
+
export declare const setUSIndividualNameAndAddress: (prefix?: string) => void;
|
|
20
|
+
export declare const setIndividualNameAndAddressAndBirthDate: (prefix?: string) => void;
|
|
21
|
+
export declare const setUSIndividualNameAndAddressAndBirthDate: (prefix?: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const inputSteps: readonly ["AccountHolderClassification", "AccountHolderContact", "AccountHolderTax", "AccountHolderTaxClarification", "Confirmation", "Exemptions", "
|
|
1
|
+
declare const inputSteps: readonly ["AccountHolderClassification", "AccountHolderContact", "AccountHolderTax", "AccountHolderTaxClarification", "Confirmation", "Exemptions", "RegardedOwnerContact", "RegardedOwnerTax", "Summary"];
|
|
2
2
|
export type InputStep = (typeof inputSteps)[number];
|
|
3
|
-
export declare const isInputStep: (step: string) => step is "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "
|
|
3
|
+
export declare const isInputStep: (step: string) => step is "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
|
|
4
4
|
export declare const confirmInputStep: (step: string) => InputStep;
|
|
5
5
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Locale =
|
|
1
|
+
export type Locale = 'bg' | 'cs' | 'da' | 'de' | 'de-at' | 'el' | 'el-cy' | 'en' | 'en-gb' | 'en-nz' | 'en-us' | 'es' | 'et' | 'fi' | 'fr' | 'fr-ca' | 'fr-lu' | 'ga' | 'hr' | 'hu' | 'it' | 'lt' | 'lv' | 'mt' | 'nl' | 'nl-be' | 'no' | 'pl' | 'pt' | 'ro' | 'sk' | 'sl' | 'sv';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Questionnaire = 'W-FORM' | 'DPS';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type StepId = 'accountHolderContactInformation' | 'accountHolderTaxInformation' | '
|
|
1
|
+
export type StepId = 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderClassification' | 'accountHolderTaxClarification' | 'confirmation' | 'exemptions' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'summary';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ForeignAccountHolderAccountType, ForeignOtherClassification, ForeignRegardedOwnerAccountType, ForeignTrustClassification, UsAccountHolderAccountType, UsLLCAccountType, UsRegardedOwnerAccountType } from '@taxbit/utilities';
|
|
2
2
|
import type { Yes } from './Yes';
|
|
3
3
|
import type { YesNo } from './YesNo';
|
|
4
4
|
export type AccountHolderClassificationData = {
|
|
5
5
|
accountHolderIsIndividual?: YesNo;
|
|
6
|
-
accountHolderIsEuResident?: YesNo;
|
|
7
6
|
accountHolderUsPerson?: YesNo;
|
|
8
|
-
accountHolderUsAccountType?:
|
|
7
|
+
accountHolderUsAccountType?: UsAccountHolderAccountType;
|
|
9
8
|
accountHolderUsSmllcElection?: YesNo;
|
|
10
|
-
accountHolderUsLlcClassification?:
|
|
9
|
+
accountHolderUsLlcClassification?: UsLLCAccountType;
|
|
11
10
|
accountHolderUsOtherClassification?: string;
|
|
12
11
|
accountHolderUsTrustEstateEin?: YesNo;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
accountHolderUsSoleProprietorEin?: YesNo;
|
|
13
|
+
accountHolderForeignAccountType?: ForeignAccountHolderAccountType;
|
|
14
|
+
accountHolderForeignTrustClassification?: ForeignTrustClassification;
|
|
15
|
+
accountHolderForeignOtherClassification?: ForeignOtherClassification;
|
|
16
16
|
};
|
|
17
17
|
export type AccountHolderContactData = {
|
|
18
18
|
accountHolderAddressCity?: string;
|
|
@@ -36,30 +36,30 @@ export type AccountHolderContactData = {
|
|
|
36
36
|
accountHolderName?: string;
|
|
37
37
|
};
|
|
38
38
|
export type AccountHolderTaxData = {
|
|
39
|
-
accountHolderFinancialAccountIdentifier?: string;
|
|
40
|
-
accountHolderFinancialAccountName?: string;
|
|
41
39
|
accountHolderForeignTin?: string;
|
|
42
40
|
accountHolderForeignTinIsNotRequired?: Yes;
|
|
41
|
+
accountHolderUsTin?: string;
|
|
42
|
+
accountHolderFinancialAccountIdentifier?: string;
|
|
43
|
+
accountHolderFinancialAccountName?: string;
|
|
43
44
|
accountHolderTaxResidenceCountry1?: string;
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
accountHolderTaxResidenceTin1?: string;
|
|
46
|
+
accountHolderTaxResidenceTin1IsNotRequired?: Yes;
|
|
46
47
|
accountHolderTaxResidenceCountry2?: string;
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
accountHolderTaxResidenceTin2?: string;
|
|
49
|
+
accountHolderTaxResidenceTin2IsNotRequired?: Yes;
|
|
49
50
|
accountHolderTaxResidenceCountry3?: string;
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
accountHolderTaxResidenceTin3?: string;
|
|
52
|
+
accountHolderTaxResidenceTin3IsNotRequired?: Yes;
|
|
52
53
|
accountHolderTaxResidenceCountry4?: string;
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
accountHolderTaxResidenceTin4?: string;
|
|
55
|
+
accountHolderTaxResidenceTin4IsNotRequired?: Yes;
|
|
55
56
|
accountHolderTaxResidenceCountry5?: string;
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
accountHolderTaxResidenceTin5?: string;
|
|
58
|
+
accountHolderTaxResidenceTin5IsNotRequired?: Yes;
|
|
58
59
|
accountHolderShowTaxResidence2?: YesNo;
|
|
59
60
|
accountHolderShowTaxResidence3?: YesNo;
|
|
60
61
|
accountHolderShowTaxResidence4?: YesNo;
|
|
61
62
|
accountHolderShowTaxResidence5?: YesNo;
|
|
62
|
-
accountHolderUsTin?: string;
|
|
63
63
|
accountHolderVatIdentificationNumber?: string;
|
|
64
64
|
accountHolderVatIsNotRequired?: Yes;
|
|
65
65
|
accountHolderVatCountry?: string;
|
|
@@ -68,13 +68,12 @@ export type AccountHolderTaxData = {
|
|
|
68
68
|
};
|
|
69
69
|
export type RegardedOwnerClassificationData = {
|
|
70
70
|
regardedOwnerUsPerson?: YesNo;
|
|
71
|
-
regardedOwnerUsAccountType?:
|
|
72
|
-
regardedOwnerUsLlcClassification?:
|
|
71
|
+
regardedOwnerUsAccountType?: UsRegardedOwnerAccountType;
|
|
72
|
+
regardedOwnerUsLlcClassification?: UsLLCAccountType;
|
|
73
73
|
regardedOwnerUsOtherClassification?: string;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
regardedOwnerForeignOtherClassification?: ForeignOtherAccountType;
|
|
74
|
+
regardedOwnerForeignAccountType?: ForeignRegardedOwnerAccountType;
|
|
75
|
+
regardedOwnerForeignTrustClassification?: ForeignTrustClassification;
|
|
76
|
+
regardedOwnerForeignOtherClassification?: ForeignOtherClassification;
|
|
78
77
|
};
|
|
79
78
|
export type RegardedOwnerContactData = {
|
|
80
79
|
regardedOwnerAddressCity?: string;
|
|
@@ -103,7 +102,7 @@ export type RegardedOwnerTaxData = {
|
|
|
103
102
|
export type SummaryData = {
|
|
104
103
|
exemptFatcaCode?: string;
|
|
105
104
|
exemptPayeeCode?: string;
|
|
106
|
-
|
|
105
|
+
iAcknowledgeESignIsOk?: Yes;
|
|
107
106
|
iAmACitizenOfTheUs?: Yes;
|
|
108
107
|
iAmExemptFromFatcaReporting?: Yes;
|
|
109
108
|
iAmNotSubjectToBackupWithholding?: Yes;
|
|
@@ -111,11 +110,12 @@ export type SummaryData = {
|
|
|
111
110
|
iCertifyToAll?: Yes;
|
|
112
111
|
iConfirmIncomeIsNonUs?: Yes;
|
|
113
112
|
iConfirmTheBeneficialOwnerIsExempt?: Yes;
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
iConfirmNotAUsPerson?: Yes;
|
|
114
|
+
iConfirmTheBeneficialOwner?: Yes;
|
|
115
|
+
iConfirmTheIndividualIsResidentOfTreatyCountry?: Yes;
|
|
116
116
|
iConfirmTheInformationIsCorrectComplete?: Yes;
|
|
117
117
|
iConfirmTheTaxIdIsCorrect?: Yes;
|
|
118
|
-
|
|
118
|
+
iHaveCapacityToSign?: Yes;
|
|
119
119
|
signature?: string;
|
|
120
120
|
source?: string;
|
|
121
121
|
};
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
export type ClientTaxDocumentationStatus = {
|
|
2
2
|
status: 'UNDOCUMENTED' | 'UNDETERMINED';
|
|
3
3
|
submissionStatus: 'SUBMITTED' | 'NOT_SUBMITTED';
|
|
4
|
-
|
|
4
|
+
dpsQuestionnaire?: {
|
|
5
5
|
dataCollectionStatus: 'COMPLETE' | 'INCOMPLETE';
|
|
6
|
-
vatStatus
|
|
7
|
-
|
|
6
|
+
vatStatus?: 'PENDING' | 'VALID' | 'INVALID' | 'INSUFFICIENT_DATA' | 'NOT_REQUIRED';
|
|
7
|
+
vatValidationDate?: string;
|
|
8
|
+
expirationDate?: string;
|
|
9
|
+
};
|
|
10
|
+
wFormQuestionnaire?: {
|
|
11
|
+
dataCollectionStatus: 'COMPLETE' | 'INCOMPLETE';
|
|
12
|
+
type: 'W-9' | 'W-8BEN' | 'W-8BEN-E';
|
|
13
|
+
expirationDate?: string;
|
|
14
|
+
tinStatus?: string;
|
|
15
|
+
tinValidationDate?: string;
|
|
16
|
+
needsResubmission: boolean;
|
|
8
17
|
};
|
|
9
18
|
};
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
export * from './AccountType';
|
|
2
|
-
export * from './CaProvinceCode';
|
|
3
1
|
export * from './CamelCaseKeys';
|
|
4
|
-
export * from './CountryCode';
|
|
5
2
|
export * from './InputStep';
|
|
6
3
|
export * from './Locale';
|
|
7
|
-
export * from './MonthCode';
|
|
8
4
|
export * from './Progress';
|
|
5
|
+
export * from './Questionnaire';
|
|
9
6
|
export * from './TaxDocumentation';
|
|
10
|
-
export * from './TaxForm';
|
|
11
|
-
export * from './UsStateCode';
|
|
12
7
|
export * from './Utilities';
|
|
13
8
|
export * from './Yes';
|
|
14
9
|
export * from './YesNo';
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
export type TaxDocumentationStatus = {
|
|
2
2
|
status: 'UNDOCUMENTED' | 'UNDETERMINED';
|
|
3
3
|
submission_status: 'SUBMITTED' | 'NOT_SUBMITTED';
|
|
4
|
-
|
|
4
|
+
dps_questionnaire?: {
|
|
5
5
|
data_collection_status: 'COMPLETE' | 'INCOMPLETE';
|
|
6
|
-
vat_status
|
|
7
|
-
|
|
6
|
+
vat_status?: 'PENDING' | 'VALID' | 'INVALID' | 'INSUFFICIENT_DATA' | 'NOT_REQUIRED';
|
|
7
|
+
vat_validation_date?: string;
|
|
8
|
+
expiration_date?: string;
|
|
9
|
+
};
|
|
10
|
+
w_form_questionnaire?: {
|
|
11
|
+
data_collection_status: 'COMPLETE' | 'INCOMPLETE';
|
|
12
|
+
type: 'W-9' | 'W-8BEN' | 'W-8BEN-E';
|
|
13
|
+
expiration_date?: string;
|
|
14
|
+
tin_status?: string;
|
|
15
|
+
tin_validation_date?: string;
|
|
16
|
+
needs_resubmission: boolean;
|
|
8
17
|
};
|
|
9
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './ActionButton';
|
|
@@ -6,5 +6,6 @@ export type CheckBoxProps = {
|
|
|
6
6
|
subLabel?: boolean;
|
|
7
7
|
name: TaxDocumentationKey;
|
|
8
8
|
onClick?: (val: Yes | undefined) => void;
|
|
9
|
+
disabled?: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare const CheckBox: ({ label, subLabel, name, onClick }: CheckBoxProps) => React.JSX.Element;
|
|
11
|
+
export declare const CheckBox: ({ label, subLabel, name, onClick, disabled, }: CheckBoxProps) => React.JSX.Element;
|
|
@@ -3,6 +3,5 @@ import { TaxDocumentationKey } from 'types/TaxDocumentation';
|
|
|
3
3
|
export type DateOfBirthInputProps = {
|
|
4
4
|
name: TaxDocumentationKey;
|
|
5
5
|
className?: string;
|
|
6
|
-
hint?: true;
|
|
7
6
|
};
|
|
8
|
-
export declare const DateOfBirthInput: ({ name, className,
|
|
7
|
+
export declare const DateOfBirthInput: ({ name, className, }: DateOfBirthInputProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './DateOfBirthInput';
|
|
@@ -8,13 +8,13 @@ export declare const useDateOfBirthInput: (name: TaxDocumentationKey) => {
|
|
|
8
8
|
handleMonthChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
9
9
|
handleYearChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
10
10
|
dayOptions: {
|
|
11
|
-
value: "
|
|
11
|
+
value: "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31";
|
|
12
12
|
}[];
|
|
13
13
|
birthYearOptions: {
|
|
14
14
|
value: number;
|
|
15
15
|
}[];
|
|
16
16
|
monthOptions: {
|
|
17
|
+
value: string;
|
|
17
18
|
label: string;
|
|
18
|
-
value: import("types").MonthCode;
|
|
19
19
|
}[];
|
|
20
20
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TaxDocumentationKey } from '../../types';
|
|
3
|
+
type FormattedInputProps = {
|
|
4
|
+
name: TaxDocumentationKey;
|
|
5
|
+
format: (s: string) => string;
|
|
6
|
+
unformat: (s: string) => string;
|
|
7
|
+
formatUnpadded: (s: string) => string;
|
|
8
|
+
onChange?: (val: string) => string;
|
|
9
|
+
};
|
|
10
|
+
export declare const FormattedInput: ({ name, onChange, format, formatUnpadded, unformat, }: FormattedInputProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormattedInput';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TaxDocumentationKey } from 'types';
|
|
3
|
+
export type PasswordInputProps = {
|
|
4
|
+
name: TaxDocumentationKey;
|
|
5
|
+
className?: string;
|
|
6
|
+
onChange?: (val: string) => string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const PasswordInput: ({ name, className, onChange, disabled, }: PasswordInputProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PasswordInput';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './RadioButtons
|
|
1
|
+
export * from './RadioButtons';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Select
|
|
1
|
+
export * from './Select';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TaxDocumentationKey } from 'types/TaxDocumentation';
|
|
3
|
-
export type
|
|
3
|
+
export type ShowHideInputProps = {
|
|
4
4
|
name: TaxDocumentationKey;
|
|
5
5
|
className?: string;
|
|
6
6
|
onChange?: (val: string) => string;
|
|
7
|
-
hint?: true;
|
|
8
7
|
children?: React.ReactNode;
|
|
9
8
|
disabled?: boolean;
|
|
10
9
|
};
|
|
11
|
-
export declare const
|
|
10
|
+
export declare const ShowHideInput: ({ name, className, onChange, children, disabled, }: ShowHideInputProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ShowHideInput';
|
|
@@ -4,9 +4,8 @@ export type TextInputProps = {
|
|
|
4
4
|
name: TaxDocumentationKey;
|
|
5
5
|
className?: string;
|
|
6
6
|
onChange?: (val: string) => string;
|
|
7
|
-
hint?: true;
|
|
8
7
|
disabled?: boolean;
|
|
9
8
|
children?: React.ReactNode;
|
|
10
9
|
defaultValue?: string;
|
|
11
10
|
};
|
|
12
|
-
export declare const TextInput: ({ name, className, onChange,
|
|
11
|
+
export declare const TextInput: ({ name, className, onChange, children, disabled, defaultValue, }: TextInputProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './TextInput
|
|
1
|
+
export * from './TextInput';
|
package/dist/src/ui/index.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ export * from './ActionButton';
|
|
|
2
2
|
export * from './Actions';
|
|
3
3
|
export * from './CheckBox';
|
|
4
4
|
export * from './DateOfBirthInput';
|
|
5
|
+
export * from './FormattedInput';
|
|
5
6
|
export * from './HideShowButton';
|
|
6
7
|
export * from './InputValue';
|
|
7
8
|
export * from './MaskedContent';
|
|
8
|
-
export * from './
|
|
9
|
+
export * from './PasswordInput';
|
|
9
10
|
export * from './RadioButtons';
|
|
10
11
|
export * from './Select';
|
|
12
|
+
export * from './ShowHideInput';
|
|
11
13
|
export * from './TextInput';
|
|
12
14
|
export * from './ToggleButton';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const formatSSN: (str: string, padChar?: string) => string;
|
|
2
|
+
export declare const formatSSNUnpadded: (str: string) => string;
|
|
3
|
+
export declare const formatEIN: (str: string, padChar?: string) => string;
|
|
4
|
+
export declare const formatEINUnpadded: (str: string) => string;
|
|
5
|
+
export declare const normalizeUSTin: (str: string) => string;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { TaxDocumentation } from 'types/TaxDocumentation';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
export declare const getFieldsState: (fields: TaxDocumentation) => {
|
|
3
|
+
hasNoEuTaxId: boolean;
|
|
4
|
+
hasEuResidence: boolean;
|
|
5
|
+
isBuildingDPS: boolean;
|
|
6
|
+
isBuildingW9: boolean;
|
|
7
|
+
isBuildingW8: boolean;
|
|
8
|
+
isBuildingW8Ben: boolean;
|
|
9
|
+
isBuildingW8BenE: boolean;
|
|
10
|
+
isBuildingWForm: boolean;
|
|
11
|
+
isDre: boolean;
|
|
12
12
|
isIndividual: boolean;
|
|
13
|
+
residenceCountryCodes: string[];
|
|
14
|
+
residences: {
|
|
15
|
+
country: string | undefined;
|
|
16
|
+
tin: string | undefined;
|
|
17
|
+
tinNotRequired: "yes" | undefined;
|
|
18
|
+
}[];
|
|
13
19
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getMaskedContent: (text: string | undefined) => string;
|